summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2022-03-29 10:27:10 +0100
committerSam James <sam@gentoo.org>2022-04-17 12:53:05 +0100
commit085bde903b9e684c3c1160e4df912bea9a660997 (patch)
treec4f5e6e9f2422e869ca5bc0b944520d451001282
parentImport Ghostscript 9.55 (diff)
downloadghostscript-gpl-patches-085bde903b9e684c3c1160e4df912bea9a660997.tar.gz
ghostscript-gpl-patches-085bde903b9e684c3c1160e4df912bea9a660997.tar.bz2
ghostscript-gpl-patches-085bde903b9e684c3c1160e4df912bea9a660997.zip
Import Ghostscript 9.56.0ghostscript-9.56
Signed-off-by: Sam James <sam@gentoo.org>
-rw-r--r--Makefile.in3
-rw-r--r--Resource/Init/Fontmap.GS6
-rw-r--r--Resource/Init/cidfmap7
-rw-r--r--Resource/Init/gs_dps1.ps2
-rw-r--r--Resource/Init/gs_fonts.ps7
-rw-r--r--Resource/Init/gs_init.ps3
-rw-r--r--Resource/Init/gs_pdfwr.ps34
-rw-r--r--Resource/Init/gs_res.ps9
-rw-r--r--Resource/Init/pdf_base.ps26
-rw-r--r--Resource/Init/pdf_draw.ps203
-rw-r--r--Resource/Init/pdf_font.ps27
-rw-r--r--Resource/Init/pdf_main.ps156
-rw-r--r--Resource/Init/pdf_ops.ps16
-rw-r--r--base/fapi_ft.c129
-rw-r--r--base/fapibstm.c2
-rw-r--r--base/fapiufst.c15
-rw-r--r--base/freetype.mak23
-rw-r--r--base/gdebug.h4
-rw-r--r--base/gdevdbit.c2
-rw-r--r--base/gdevdevn.c14
-rw-r--r--base/gdevdflt.c15
-rw-r--r--base/gdevdrop.c265
-rw-r--r--base/gdevm1.c16
-rw-r--r--base/gdevm24.c8
-rw-r--r--base/gdevm40.c8
-rw-r--r--base/gdevm48.c8
-rw-r--r--base/gdevm56.c8
-rw-r--r--base/gdevm64.c8
-rw-r--r--base/gdevmem.c12
-rw-r--r--base/gdevmpla.c18
-rw-r--r--base/gdevmx.c4
-rw-r--r--base/gdevnfwd.c4
-rw-r--r--base/gdevp14.c399
-rw-r--r--base/gdevp14.h14
-rw-r--r--base/gdevprn.c49
-rw-r--r--base/gdevsclass.c4
-rw-r--r--base/globals.h41
-rw-r--r--base/gp.h15
-rw-r--r--base/gp_mspol.c5
-rw-r--r--base/gp_mswin.c14
-rw-r--r--base/gp_nsync.c25
-rw-r--r--base/gp_psync.c73
-rw-r--r--base/gp_strdl.c2
-rw-r--r--base/gp_wsync.c146
-rw-r--r--base/gs.mak5
-rw-r--r--base/gsalloc.c71
-rw-r--r--base/gsargs.c29
-rw-r--r--base/gscdefs.h4
-rw-r--r--base/gscdevn.c7
-rw-r--r--base/gscedata.c4
-rw-r--r--base/gscedata.h6
-rw-r--r--base/gscoord.c2
-rw-r--r--base/gscpixel.c4
-rw-r--r--base/gscsepr.c6
-rw-r--r--base/gsdcolor.h1
-rw-r--r--base/gsdevice.c48
-rw-r--r--base/gsdparam.c6
-rw-r--r--base/gsequivc.c10
-rw-r--r--base/gsequivc.h3
-rw-r--r--base/gserrors.h107
-rw-r--r--base/gsfcmap.c4
-rw-r--r--base/gsfcmap1.c37
-rw-r--r--base/gsfont.c31
-rw-r--r--base/gsfont.h3
-rw-r--r--base/gshsb.c2
-rw-r--r--base/gsht.c70
-rw-r--r--base/gshtscr.c2
-rw-r--r--base/gsicc_cache.c118
-rw-r--r--base/gsicc_cache.h4
-rw-r--r--base/gsicc_cms.h6
-rw-r--r--base/gsicc_create.c19
-rw-r--r--base/gsicc_lcms2.c17
-rw-r--r--base/gsicc_lcms2mt.c15
-rw-r--r--base/gsicc_manage.c260
-rw-r--r--base/gsicc_profilecache.c6
-rw-r--r--base/gsiodisk.c12
-rw-r--r--base/gslibctx.c151
-rw-r--r--base/gslibctx.h24
-rw-r--r--base/gsmalloc.c1
-rw-r--r--base/gsmchunk.c2
-rw-r--r--base/gsmisc.c40
-rw-r--r--base/gspaint.c4
-rw-r--r--base/gsparaml.c16
-rw-r--r--base/gspcolor.c4
-rw-r--r--base/gspmdrv.c34
-rw-r--r--base/gsptype1.c151
-rw-r--r--base/gsptype2.c4
-rw-r--r--base/gsrefct.h3
-rw-r--r--base/gsstate.c13
-rw-r--r--base/gstext.c4
-rw-r--r--base/gstrans.c20
-rw-r--r--base/gxacpath.c10
-rw-r--r--base/gxbcache.c34
-rw-r--r--base/gxbcache.h9
-rw-r--r--base/gxblend.c46
-rw-r--r--base/gxblend1.c6
-rw-r--r--base/gxccman.c70
-rw-r--r--base/gxchar.c22
-rw-r--r--base/gxchar.h4
-rw-r--r--base/gxcht.c44
-rw-r--r--base/gxclbits.c158
-rw-r--r--base/gxcldev.h310
-rw-r--r--base/gxclfile.c14
-rw-r--r--base/gxclimag.c67
-rw-r--r--base/gxclio.h5
-rw-r--r--base/gxclip.c6
-rw-r--r--base/gxclip2.c4
-rw-r--r--base/gxclist.c33
-rw-r--r--base/gxclmem.c16
-rw-r--r--base/gxclpage.c2
-rw-r--r--base/gxclpath.c188
-rw-r--r--base/gxclpath.h171
-rw-r--r--base/gxclrast.c269
-rw-r--r--base/gxclread.c239
-rw-r--r--base/gxclrect.c78
-rw-r--r--base/gxclthrd.c4
-rw-r--r--base/gxclutil.c346
-rw-r--r--base/gxcmap.c2
-rw-r--r--base/gxcpath.c7
-rw-r--r--base/gxdcolor.c30
-rw-r--r--base/gxdcolor.h2
-rw-r--r--base/gxdevcli.h2
-rw-r--r--base/gxdevice.h12
-rw-r--r--base/gxdevsop.h10
-rw-r--r--base/gxdhtserial.c29
-rw-r--r--base/gxdownscale.c180
-rw-r--r--base/gxdownscale.h18
-rw-r--r--base/gxfapi.c248
-rw-r--r--base/gxfapi.h2
-rw-r--r--base/gxfcache.h6
-rw-r--r--base/gxfill.c177
-rw-r--r--base/gxfill.h4
-rw-r--r--base/gxhldevc.c4
-rw-r--r--base/gxht.c67
-rw-r--r--base/gxht_thresh.c2
-rw-r--r--base/gxicolor.c14
-rw-r--r--base/gxifast.c6
-rw-r--r--base/gximage1.c3
-rw-r--r--base/gximage3.c10
-rw-r--r--base/gximage4.c4
-rw-r--r--base/gximono.c16
-rw-r--r--base/gxobj.h37
-rw-r--r--base/gxp1fill.c7
-rw-r--r--base/gxpath.c11
-rw-r--r--base/gxpcmap.c43
-rw-r--r--base/gxpflat.c10
-rw-r--r--base/gxshade4.c6
-rw-r--r--base/gxstroke.c98
-rw-r--r--base/gxtype1.c2
-rw-r--r--base/gzcpath.h3
-rw-r--r--base/lcups.mak14
-rw-r--r--base/lib.mak30
-rw-r--r--base/memento.c1245
-rw-r--r--base/memento.h15
-rw-r--r--base/mkromfs.c21
-rw-r--r--base/msvccmd.mak16
-rw-r--r--base/msvclib.mak26
-rw-r--r--base/openvms.mak4
-rw-r--r--base/openvms.mmk4
-rw-r--r--base/sa85d.c7
-rw-r--r--base/scfe.c13
-rw-r--r--base/scommon.h9
-rw-r--r--base/sdcparam.c8
-rw-r--r--base/sfxcommon.c5
-rw-r--r--base/shc.h2
-rw-r--r--base/sjbig2.c4
-rw-r--r--base/sjpx_openjpeg.c5
-rw-r--r--base/spprint.c16
-rw-r--r--base/std.h146
-rw-r--r--base/stdint_.h25
-rw-r--r--base/stdio_.h4
-rw-r--r--base/ttinterp.c16
-rw-r--r--base/unix-dll.mak11
-rw-r--r--base/unix-gcc.mak7
-rw-r--r--base/unixansi.mak8
-rw-r--r--base/unixlink.mak20
-rw-r--r--base/version.mak6
-rw-r--r--base/winplat.mak2
-rw-r--r--base/write_t1.c13
-rw-r--r--base/write_t2.c4
-rwxr-xr-xconfigure119
-rw-r--r--configure.ac118
-rw-r--r--contrib/eplaser/gdevescv.c98
-rw-r--r--contrib/gdevcd8.c4
-rw-r--r--contrib/gdevdj9.c2
-rw-r--r--contrib/gdevhl12.c2
-rw-r--r--contrib/gdevxes.c6
-rw-r--r--contrib/japanese/gdevfmlbp.c8
-rw-r--r--contrib/japanese/gdevfmpr.c4
-rw-r--r--contrib/japanese/gdevj100.c8
-rw-r--r--contrib/japanese/gdevlbp3.c4
-rw-r--r--contrib/japanese/gdevnpdl.c19
-rw-r--r--contrib/lips4/gdevl4r.c10
-rw-r--r--contrib/lips4/gdevl4v.c98
-rw-r--r--contrib/opvp/README.txt18
-rwxr-xr-xcontrib/opvp/build_opv_harness.sh4
-rw-r--r--contrib/opvp/gdevopvp.c1893
-rw-r--r--contrib/opvp/opvp.h9
-rw-r--r--contrib/opvp/opvp_0_2_0.h4
-rw-r--r--contrib/opvp/opvpharness.c947
-rw-r--r--contrib/pcl3/eprn/eprnparm.c6
-rw-r--r--contrib/pcl3/eprn/gdeveprn.h4
-rw-r--r--contrib/pcl3/eprn/mediasize.c35
-rw-r--r--contrib/pcl3/eprn/mediasize.h12
-rw-r--r--contrib/pcl3/src/gdevpcl3.c7
-rw-r--r--contrib/pcl3/src/pcl3opts.c3
-rw-r--r--contrib/pcl3/src/pclcap.c11
-rw-r--r--contrib/pcl3/src/pclsize.c51
-rw-r--r--contrib/pcl3/src/pclsize.h25
-rw-r--r--cups/gdevcups.c22
-rw-r--r--demos/MATLAB/ghostpdl.m85
-rw-r--r--demos/MATLAB/gs_displaydevice.c514
-rw-r--r--demos/c/Makefile14
-rw-r--r--demos/c/ReadMe.txt40
-rw-r--r--demos/c/multi_test.c191
-rw-r--r--demos/c/multi_test.vcxproj239
-rw-r--r--demos/c/multi_test.vcxproj.filters14
-rw-r--r--demos/java/README.txt9
-rw-r--r--demos/java/gsjava/build_darwin.sh2
-rw-r--r--demos/java/gsjava/build_linux.sh2
-rw-r--r--demos/java/gsjava/build_win32.bat4
-rw-r--r--demos/java/gsjava/src/com/artifex/gsjava/GSAPI.java10
-rw-r--r--demos/java/gsjava/src/com/artifex/gsjava/GSInstance.java22
-rw-r--r--demos/java/gsviewer/README.txt10
-rwxr-xr-x[-rw-r--r--]demos/java/gsviewer/build_darwin.sh16
-rwxr-xr-x[-rw-r--r--]demos/java/gsviewer/build_linux.sh16
-rwxr-xr-x[-rw-r--r--]demos/java/gsviewer/build_win32.bat0
-rwxr-xr-x[-rw-r--r--]demos/java/gsviewer/start_darwin.sh0
-rwxr-xr-x[-rw-r--r--]demos/java/gsviewer/start_linux.sh0
-rw-r--r--demos/java/jni/gs_jni/build_darwin.sh11
-rw-r--r--demos/java/jni/gs_jni/build_linux.sh21
-rw-r--r--demos/java/jni/gs_jni/callbacks.cpp337
-rw-r--r--demos/java/jni/gs_jni/callbacks.h12
-rw-r--r--demos/java/jni/gs_jni/com_artifex_gsjava_GSAPI.cpp235
-rw-r--r--demos/java/jni/gs_jni/com_artifex_gsjava_GSAPI.h2
-rw-r--r--demos/java/jni/gs_jni/com_artifex_gsjava_util_NativePointer.cpp20
-rw-r--r--demos/java/jni/gs_jni/com_artifex_gsjava_util_NativePointer.h2
-rw-r--r--demos/java/jni/gs_jni/gs_jni.vcxproj8
-rw-r--r--demos/java/jni/gs_jni/gs_jni.vcxproj.filters9
-rw-r--r--demos/java/jni/gs_jni/install_linux.sh15
-rw-r--r--demos/java/jni/gs_jni/instance_data.cpp64
-rw-r--r--demos/java/jni/gs_jni/instance_data.h35
-rw-r--r--demos/java/jni/gs_jni/jni_util.cpp6
-rw-r--r--demos/java/jni/gs_jni/jni_util.h4
-rw-r--r--demos/java/jni/gs_jni/settings.h5
-rw-r--r--demos/java/mtdemo/Main.java51
-rw-r--r--demos/java/mtdemo/README.txt53
-rw-r--r--demos/java/mtdemo/Worker.java127
-rwxr-xr-xdemos/java/mtdemo/build_darwin.sh28
-rwxr-xr-xdemos/java/mtdemo/build_linux.sh28
-rwxr-xr-xdemos/java/mtdemo/build_win32.bat15
-rwxr-xr-xdemos/java/mtdemo/runmtd_darwin.sh5
-rwxr-xr-xdemos/java/mtdemo/runmtd_linux.sh3
-rwxr-xr-xdemos/java/mtdemo/runmtd_win32.bat3
-rwxr-xr-xdemos/python/examples.py7
-rwxr-xr-xdemos/python/gsapi.py24
-rw-r--r--devices/devs.mak48
-rw-r--r--devices/extract.mak10
-rw-r--r--devices/gdev8510.c4
-rw-r--r--devices/gdevccr.c8
-rw-r--r--devices/gdevcdj.c4
-rw-r--r--devices/gdevchameleon.c304
-rw-r--r--devices/gdevdjet.c22
-rw-r--r--devices/gdevdsp.c15
-rw-r--r--devices/gdevfpng.c18
-rw-r--r--devices/gdevijs.c18
-rw-r--r--devices/gdevl31s.c8
-rw-r--r--devices/gdevpdfimg.c154
-rw-r--r--devices/gdevpdfocr.c18
-rw-r--r--devices/gdevplan.c178
-rw-r--r--devices/gdevpng.c40
-rw-r--r--devices/gdevpsd.c328
-rw-r--r--devices/gdevtifs.c54
-rw-r--r--devices/gdevtsep.c97
-rw-r--r--devices/gdevupd.c21
-rw-r--r--devices/gdevwpr2.c26
-rw-r--r--devices/gdevxini.c19
-rw-r--r--devices/gxfcopy.c17
-rw-r--r--devices/vector/gdevdocxw.c39
-rw-r--r--devices/vector/gdevpdf.c85
-rw-r--r--devices/vector/gdevpdfb.h1
-rw-r--r--devices/vector/gdevpdfd.c4
-rw-r--r--devices/vector/gdevpdfe.c11
-rw-r--r--devices/vector/gdevpdfg.c78
-rw-r--r--devices/vector/gdevpdfi.c6
-rw-r--r--devices/vector/gdevpdfm.c112
-rw-r--r--devices/vector/gdevpdfo.c6
-rw-r--r--devices/vector/gdevpdfr.c8
-rw-r--r--devices/vector/gdevpdft.c6
-rw-r--r--devices/vector/gdevpdfu.c34
-rw-r--r--devices/vector/gdevpdfv.c18
-rw-r--r--devices/vector/gdevpdfx.h1
-rw-r--r--devices/vector/gdevpdtb.c6
-rw-r--r--devices/vector/gdevpdtc.c51
-rw-r--r--devices/vector/gdevpdte.c30
-rw-r--r--devices/vector/gdevpdtf.c55
-rw-r--r--devices/vector/gdevpdtf.h25
-rw-r--r--devices/vector/gdevpdti.c24
-rw-r--r--devices/vector/gdevpdtt.c59
-rw-r--r--devices/vector/gdevpdtv.c274
-rw-r--r--devices/vector/gdevpdtv.h6
-rw-r--r--devices/vector/gdevpdtw.c24
-rw-r--r--devices/vector/gdevpsf1.c6
-rw-r--r--devices/vector/gdevpsf2.c88
-rw-r--r--devices/vector/gdevtxtw.c55
-rw-r--r--devices/vector/gdevxps.c38
-rw-r--r--doc/API.htm212
-rw-r--r--doc/C-style.htm262
-rw-r--r--doc/DLL.htm213
-rw-r--r--doc/Deprecated.htm1437
-rw-r--r--doc/Develop.htm515
-rw-r--r--doc/Devices.htm325
-rw-r--r--doc/Drivers.htm491
-rw-r--r--doc/Fonts.htm173
-rw-r--r--doc/GPDL.htm195
-rw-r--r--doc/History9.htm215
-rw-r--r--doc/Install.htm154
-rw-r--r--doc/Internal.htm112
-rw-r--r--doc/Language.htm647
-rw-r--r--doc/Lib.htm440
-rw-r--r--doc/Make.htm368
-rw-r--r--doc/News.htm167
-rw-r--r--doc/Ps-style.htm152
-rw-r--r--doc/Ps2epsi.htm134
-rw-r--r--doc/Psfiles.htm132
-rw-r--r--doc/Readme.htm382
-rw-r--r--doc/Release.htm168
-rw-r--r--doc/SavedPages.htm107
-rw-r--r--doc/Search.htm188
-rw-r--r--doc/Source.htm185
-rw-r--r--doc/Unix-lpr.htm143
-rw-r--r--doc/Use.htm713
-rw-r--r--doc/VectorDevices.htm635
-rw-r--r--doc/WhatIsGS.htm122
-rw-r--r--doc/default.css362
-rw-r--r--doc/gs-vms.hlp2
-rw-r--r--doc/images/favicon.svg39
-rw-r--r--doc/images/icon-search.pngbin0 -> 3122 bytes
-rw-r--r--doc/index.html18
-rw-r--r--doc/language-bindings/c-sharp-ghost-api.html2
-rw-r--r--doc/language-bindings/c-sharp-ghost-mono.html2
-rw-r--r--doc/language-bindings/c-sharp-ghost-net.html2
-rw-r--r--doc/language-bindings/c-sharp-intro.html2
-rw-r--r--doc/language-bindings/css/default.css7
-rw-r--r--doc/language-bindings/demo-code.html2
-rw-r--r--doc/language-bindings/index.html2
-rw-r--r--doc/language-bindings/java-gsjavajar.html2
-rw-r--r--doc/language-bindings/java-intro.html2
-rw-r--r--doc/language-bindings/md/images/export-jar.pngbin322111 -> 203606 bytes
-rw-r--r--doc/language-bindings/md/images/ghostnet-wpf-example.pngbin490641 -> 353078 bytes
-rw-r--r--doc/language-bindings/md/images/gsviewer.pngbin147343 -> 63958 bytes
-rw-r--r--doc/language-bindings/md/images/linking-jar.pngbin155039 -> 112169 bytes
-rw-r--r--doc/language-bindings/python-gsapi.html2
-rw-r--r--doc/language-bindings/python-intro.html2
-rw-r--r--doc/sample_downscale_device.htm114
-rw-r--r--doc/site.js14
-rw-r--r--doc/subclass.htm115
-rw-r--r--doc/thirdparty.htm159
-rw-r--r--extract/Makefile232
-rw-r--r--extract/README40
-rw-r--r--extract/include/extract.h179
-rw-r--r--extract/include/extract_alloc.h18
-rw-r--r--extract/include/extract_buffer.h20
-rw-r--r--extract/include/extract_buffer_impl.h4
-rw-r--r--extract/src/astring.c127
-rw-r--r--extract/src/astring.h28
-rw-r--r--extract/src/buffer-test.c2
-rw-r--r--extract/src/buffer.c2
-rw-r--r--extract/src/document.c88
-rw-r--r--extract/src/document.h137
-rw-r--r--extract/src/docx.c598
-rw-r--r--extract/src/docx.h4
-rwxr-xr-xextract/src/docx_template_build.py30
-rw-r--r--extract/src/extract-exe.c3
-rw-r--r--extract/src/extract.c891
-rw-r--r--extract/src/html.c314
-rw-r--r--extract/src/html.h23
-rw-r--r--extract/src/join.c1241
-rw-r--r--extract/src/mem.c22
-rw-r--r--extract/src/mem.h13
-rwxr-xr-xextract/src/memento.py39
-rw-r--r--extract/src/misc-test.c58
-rw-r--r--extract/src/odt.c627
-rw-r--r--extract/src/outf.c10
-rw-r--r--extract/src/outf.h40
-rw-r--r--extract/src/sys.c2
-rw-r--r--extract/src/text.c22
-rw-r--r--extract/src/xml.c16
-rw-r--r--extract/src/xml.h6
-rw-r--r--extract/src/zip.c43
-rw-r--r--extract/test/Python2.pdf.gs.docx.dir.ref/word/document.xml358
-rw-r--r--extract/test/Python2.pdf.intermediate-gs.xml.extract-autosplit.docx.dir.ref/word/document.xml214
-rw-r--r--extract/test/Python2.pdf.intermediate-gs.xml.extract-rotate-spacing.docx.dir.ref/word/document.xml378
-rw-r--r--extract/test/Python2.pdf.intermediate-gs.xml.extract-rotate.docx.dir.ref/word/document.xml378
-rw-r--r--extract/test/Python2.pdf.intermediate-gs.xml.extract.docx.dir.ref/word/document.xml214
-rw-r--r--extract/test/Python2.pdf.intermediate-mu.xml.extract-autosplit.docx.dir.ref/word/document.xml64
-rw-r--r--extract/test/Python2.pdf.intermediate-mu.xml.extract-rotate-spacing.docx.dir.ref/word/document.xml78
-rw-r--r--extract/test/Python2.pdf.intermediate-mu.xml.extract-rotate.docx.dir.ref/word/document.xml78
-rw-r--r--extract/test/Python2.pdf.intermediate-mu.xml.extract.docx.dir.ref/word/document.xml64
-rw-r--r--extract/test/Python2.pdf.mutool-norotate.docx.dir.ref/word/document.xml36
-rw-r--r--extract/test/Python2.pdf.mutool.docx.dir.ref/word/document.xml78
-rw-r--r--extract/test/Python2.pdf.mutool.odt.dir.ref/content.xml23
-rw-r--r--extract/test/Python2.pdf.mutool.text.ref39
-rw-r--r--extract/test/Python2clipped.pdf.intermediate-gs.xml.extract-autosplit.docx.dir.ref/word/document.xml214
-rw-r--r--extract/test/Python2clipped.pdf.intermediate-gs.xml.extract-rotate-spacing.docx.dir.ref/word/document.xml378
-rw-r--r--extract/test/Python2clipped.pdf.intermediate-gs.xml.extract-rotate.docx.dir.ref/word/document.xml378
-rw-r--r--extract/test/Python2clipped.pdf.intermediate-gs.xml.extract.docx.dir.ref/word/document.xml214
-rw-r--r--extract/test/Python2clipped.pdf.intermediate-mu.xml.extract-autosplit.docx.dir.ref/word/document.xml64
-rw-r--r--extract/test/Python2clipped.pdf.intermediate-mu.xml.extract-rotate-spacing.docx.dir.ref/word/document.xml78
-rw-r--r--extract/test/Python2clipped.pdf.intermediate-mu.xml.extract-rotate.docx.dir.ref/word/document.xml78
-rw-r--r--extract/test/Python2clipped.pdf.intermediate-mu.xml.extract.docx.dir.ref/word/document.xml64
-rw-r--r--extract/test/Python2clipped.pdf.mutool-norotate.docx.dir.ref/word/document.xml42
-rw-r--r--extract/test/Python2clipped.pdf.mutool.docx.dir.ref/word/document.xml90
-rw-r--r--extract/test/Python2clipped.pdf.mutool.odt.dir.ref/content.xml23
-rw-r--r--extract/test/Python2clipped.pdf.mutool.text.ref39
-rwxr-xr-xextract/test/agstat.pdfbin0 -> 15695 bytes
-rw-r--r--extract/test/agstat.pdf.mutool.docx.dir.ref/[Content_Types].xml2
-rw-r--r--extract/test/agstat.pdf.mutool.docx.dir.ref/_rels/.rels2
-rw-r--r--extract/test/agstat.pdf.mutool.docx.dir.ref/docProps/app.xml2
-rw-r--r--extract/test/agstat.pdf.mutool.docx.dir.ref/docProps/core.xml2
-rw-r--r--extract/test/agstat.pdf.mutool.docx.dir.ref/word/_rels/document.xml.rels2
-rw-r--r--extract/test/agstat.pdf.mutool.docx.dir.ref/word/document.xml5217
-rw-r--r--extract/test/agstat.pdf.mutool.docx.dir.ref/word/fontTable.xml2
-rw-r--r--extract/test/agstat.pdf.mutool.docx.dir.ref/word/settings.xml2
-rw-r--r--extract/test/agstat.pdf.mutool.docx.dir.ref/word/styles.xml2
-rw-r--r--extract/test/agstat.pdf.mutool.docx.dir.ref/word/theme/theme1.xml2
-rw-r--r--extract/test/agstat.pdf.mutool.docx.dir.ref/word/webSettings.xml2
-rw-r--r--extract/test/agstat.pdf.mutool.html.ref122
-rw-r--r--extract/test/agstat.pdf.mutool.odt.dir.ref/META-INF/manifest.xml11
-rw-r--r--extract/test/agstat.pdf.mutool.odt.dir.ref/Thumbnails/thumbnail.png2
-rw-r--r--extract/test/agstat.pdf.mutool.odt.dir.ref/content.xml1916
-rw-r--r--extract/test/agstat.pdf.mutool.odt.dir.ref/manifest.rdf18
-rw-r--r--extract/test/agstat.pdf.mutool.odt.dir.ref/meta.xml2
-rw-r--r--extract/test/agstat.pdf.mutool.odt.dir.ref/mimetype1
-rw-r--r--extract/test/agstat.pdf.mutool.odt.dir.ref/settings.xml2
-rw-r--r--extract/test/agstat.pdf.mutool.odt.dir.ref/styles.xml2
-rwxr-xr-xextract/test/background_lines_1.pdfbin0 -> 85183 bytes
-rw-r--r--extract/test/background_lines_1.pdf.mutool-0.csv.ref8
-rw-r--r--extract/test/background_lines_1.pdf.mutool.docx.dir.ref/[Content_Types].xml2
-rw-r--r--extract/test/background_lines_1.pdf.mutool.docx.dir.ref/_rels/.rels2
-rw-r--r--extract/test/background_lines_1.pdf.mutool.docx.dir.ref/docProps/app.xml2
-rw-r--r--extract/test/background_lines_1.pdf.mutool.docx.dir.ref/docProps/core.xml2
-rw-r--r--extract/test/background_lines_1.pdf.mutool.docx.dir.ref/word/_rels/document.xml.rels2
-rw-r--r--extract/test/background_lines_1.pdf.mutool.docx.dir.ref/word/document.xml1069
-rw-r--r--extract/test/background_lines_1.pdf.mutool.docx.dir.ref/word/fontTable.xml2
-rw-r--r--extract/test/background_lines_1.pdf.mutool.docx.dir.ref/word/media/image11.jpegbin0 -> 8781 bytes
-rw-r--r--extract/test/background_lines_1.pdf.mutool.docx.dir.ref/word/settings.xml2
-rw-r--r--extract/test/background_lines_1.pdf.mutool.docx.dir.ref/word/styles.xml2
-rw-r--r--extract/test/background_lines_1.pdf.mutool.docx.dir.ref/word/theme/theme1.xml2
-rw-r--r--extract/test/background_lines_1.pdf.mutool.docx.dir.ref/word/webSettings.xml2
-rw-r--r--extract/test/background_lines_1.pdf.mutool.html.ref51
-rw-r--r--extract/test/background_lines_1.pdf.mutool.odt.dir.ref/META-INF/manifest.xml12
-rw-r--r--extract/test/background_lines_1.pdf.mutool.odt.dir.ref/Pictures/image11.jpegbin0 -> 8781 bytes
-rw-r--r--extract/test/background_lines_1.pdf.mutool.odt.dir.ref/Thumbnails/thumbnail.png2
-rw-r--r--extract/test/background_lines_1.pdf.mutool.odt.dir.ref/content.xml359
-rw-r--r--extract/test/background_lines_1.pdf.mutool.odt.dir.ref/manifest.rdf18
-rw-r--r--extract/test/background_lines_1.pdf.mutool.odt.dir.ref/meta.xml2
-rw-r--r--extract/test/background_lines_1.pdf.mutool.odt.dir.ref/mimetype1
-rw-r--r--extract/test/background_lines_1.pdf.mutool.odt.dir.ref/settings.xml2
-rw-r--r--extract/test/background_lines_1.pdf.mutool.odt.dir.ref/styles.xml2
-rwxr-xr-xextract/test/background_lines_2.pdfbin0 -> 40680 bytes
-rw-r--r--extract/test/background_lines_2.pdf.mutool.docx.dir.ref/[Content_Types].xml2
-rw-r--r--extract/test/background_lines_2.pdf.mutool.docx.dir.ref/_rels/.rels2
-rw-r--r--extract/test/background_lines_2.pdf.mutool.docx.dir.ref/docProps/app.xml2
-rw-r--r--extract/test/background_lines_2.pdf.mutool.docx.dir.ref/docProps/core.xml2
-rw-r--r--extract/test/background_lines_2.pdf.mutool.docx.dir.ref/word/_rels/document.xml.rels2
-rw-r--r--extract/test/background_lines_2.pdf.mutool.docx.dir.ref/word/document.xml1028
-rw-r--r--extract/test/background_lines_2.pdf.mutool.docx.dir.ref/word/fontTable.xml2
-rw-r--r--extract/test/background_lines_2.pdf.mutool.docx.dir.ref/word/settings.xml2
-rw-r--r--extract/test/background_lines_2.pdf.mutool.docx.dir.ref/word/styles.xml2
-rw-r--r--extract/test/background_lines_2.pdf.mutool.docx.dir.ref/word/theme/theme1.xml2
-rw-r--r--extract/test/background_lines_2.pdf.mutool.docx.dir.ref/word/webSettings.xml2
-rw-r--r--extract/test/background_lines_2.pdf.mutool.html.ref87
-rw-r--r--extract/test/background_lines_2.pdf.mutool.odt.dir.ref/META-INF/manifest.xml11
-rw-r--r--extract/test/background_lines_2.pdf.mutool.odt.dir.ref/Thumbnails/thumbnail.png2
-rw-r--r--extract/test/background_lines_2.pdf.mutool.odt.dir.ref/content.xml575
-rw-r--r--extract/test/background_lines_2.pdf.mutool.odt.dir.ref/manifest.rdf18
-rw-r--r--extract/test/background_lines_2.pdf.mutool.odt.dir.ref/meta.xml2
-rw-r--r--extract/test/background_lines_2.pdf.mutool.odt.dir.ref/mimetype1
-rw-r--r--extract/test/background_lines_2.pdf.mutool.odt.dir.ref/settings.xml2
-rw-r--r--extract/test/background_lines_2.pdf.mutool.odt.dir.ref/styles.xml2
-rwxr-xr-xextract/test/column_span_1.pdfbin0 -> 15014 bytes
-rw-r--r--extract/test/column_span_1.pdf.mutool.docx.dir.ref/[Content_Types].xml2
-rw-r--r--extract/test/column_span_1.pdf.mutool.docx.dir.ref/_rels/.rels2
-rw-r--r--extract/test/column_span_1.pdf.mutool.docx.dir.ref/docProps/app.xml2
-rw-r--r--extract/test/column_span_1.pdf.mutool.docx.dir.ref/docProps/core.xml2
-rw-r--r--extract/test/column_span_1.pdf.mutool.docx.dir.ref/word/_rels/document.xml.rels2
-rw-r--r--extract/test/column_span_1.pdf.mutool.docx.dir.ref/word/document.xml6936
-rw-r--r--extract/test/column_span_1.pdf.mutool.docx.dir.ref/word/fontTable.xml2
-rw-r--r--extract/test/column_span_1.pdf.mutool.docx.dir.ref/word/settings.xml2
-rw-r--r--extract/test/column_span_1.pdf.mutool.docx.dir.ref/word/styles.xml2
-rw-r--r--extract/test/column_span_1.pdf.mutool.docx.dir.ref/word/theme/theme1.xml2
-rw-r--r--extract/test/column_span_1.pdf.mutool.docx.dir.ref/word/webSettings.xml2
-rw-r--r--extract/test/column_span_1.pdf.mutool.html.ref165
-rw-r--r--extract/test/column_span_1.pdf.mutool.odt.dir.ref/META-INF/manifest.xml11
-rw-r--r--extract/test/column_span_1.pdf.mutool.odt.dir.ref/Thumbnails/thumbnail.png2
-rw-r--r--extract/test/column_span_1.pdf.mutool.odt.dir.ref/content.xml2211
-rw-r--r--extract/test/column_span_1.pdf.mutool.odt.dir.ref/manifest.rdf18
-rw-r--r--extract/test/column_span_1.pdf.mutool.odt.dir.ref/meta.xml2
-rw-r--r--extract/test/column_span_1.pdf.mutool.odt.dir.ref/mimetype1
-rw-r--r--extract/test/column_span_1.pdf.mutool.odt.dir.ref/settings.xml2
-rw-r--r--extract/test/column_span_1.pdf.mutool.odt.dir.ref/styles.xml2
-rwxr-xr-xextract/test/column_span_2.pdfbin0 -> 24313 bytes
-rw-r--r--extract/test/column_span_2.pdf.mutool-0.csv.ref11
-rw-r--r--extract/test/column_span_2.pdf.mutool.docx.dir.ref/[Content_Types].xml2
-rw-r--r--extract/test/column_span_2.pdf.mutool.docx.dir.ref/_rels/.rels2
-rw-r--r--extract/test/column_span_2.pdf.mutool.docx.dir.ref/docProps/app.xml2
-rw-r--r--extract/test/column_span_2.pdf.mutool.docx.dir.ref/docProps/core.xml2
-rw-r--r--extract/test/column_span_2.pdf.mutool.docx.dir.ref/word/_rels/document.xml.rels2
-rw-r--r--extract/test/column_span_2.pdf.mutool.docx.dir.ref/word/document.xml950
-rw-r--r--extract/test/column_span_2.pdf.mutool.docx.dir.ref/word/fontTable.xml2
-rw-r--r--extract/test/column_span_2.pdf.mutool.docx.dir.ref/word/settings.xml2
-rw-r--r--extract/test/column_span_2.pdf.mutool.docx.dir.ref/word/styles.xml2
-rw-r--r--extract/test/column_span_2.pdf.mutool.docx.dir.ref/word/theme/theme1.xml2
-rw-r--r--extract/test/column_span_2.pdf.mutool.docx.dir.ref/word/webSettings.xml2
-rw-r--r--extract/test/column_span_2.pdf.mutool.html.ref81
-rw-r--r--extract/test/column_span_2.pdf.mutool.odt.dir.ref/META-INF/manifest.xml11
-rw-r--r--extract/test/column_span_2.pdf.mutool.odt.dir.ref/Thumbnails/thumbnail.png2
-rw-r--r--extract/test/column_span_2.pdf.mutool.odt.dir.ref/content.xml333
-rw-r--r--extract/test/column_span_2.pdf.mutool.odt.dir.ref/manifest.rdf18
-rw-r--r--extract/test/column_span_2.pdf.mutool.odt.dir.ref/meta.xml2
-rw-r--r--extract/test/column_span_2.pdf.mutool.odt.dir.ref/mimetype1
-rw-r--r--extract/test/column_span_2.pdf.mutool.odt.dir.ref/settings.xml2
-rw-r--r--extract/test/column_span_2.pdf.mutool.odt.dir.ref/styles.xml2
-rwxr-xr-xextract/test/electoral_roll.pdfbin0 -> 156772 bytes
-rw-r--r--extract/test/electoral_roll.pdf.mutool-0.csv.ref2
-rw-r--r--extract/test/electoral_roll.pdf.mutool.docx.dir.ref/[Content_Types].xml2
-rw-r--r--extract/test/electoral_roll.pdf.mutool.docx.dir.ref/_rels/.rels2
-rw-r--r--extract/test/electoral_roll.pdf.mutool.docx.dir.ref/docProps/app.xml2
-rw-r--r--extract/test/electoral_roll.pdf.mutool.docx.dir.ref/docProps/core.xml2
-rw-r--r--extract/test/electoral_roll.pdf.mutool.docx.dir.ref/word/_rels/document.xml.rels2
-rw-r--r--extract/test/electoral_roll.pdf.mutool.docx.dir.ref/word/document.xml2918
-rw-r--r--extract/test/electoral_roll.pdf.mutool.docx.dir.ref/word/fontTable.xml2
-rw-r--r--extract/test/electoral_roll.pdf.mutool.docx.dir.ref/word/settings.xml2
-rw-r--r--extract/test/electoral_roll.pdf.mutool.docx.dir.ref/word/styles.xml2
-rw-r--r--extract/test/electoral_roll.pdf.mutool.docx.dir.ref/word/theme/theme1.xml2
-rw-r--r--extract/test/electoral_roll.pdf.mutool.docx.dir.ref/word/webSettings.xml2
-rw-r--r--extract/test/electoral_roll.pdf.mutool.html.ref81
-rw-r--r--extract/test/electoral_roll.pdf.mutool.odt.dir.ref/META-INF/manifest.xml11
-rw-r--r--extract/test/electoral_roll.pdf.mutool.odt.dir.ref/Thumbnails/thumbnail.png2
-rw-r--r--extract/test/electoral_roll.pdf.mutool.odt.dir.ref/content.xml850
-rw-r--r--extract/test/electoral_roll.pdf.mutool.odt.dir.ref/manifest.rdf18
-rw-r--r--extract/test/electoral_roll.pdf.mutool.odt.dir.ref/meta.xml2
-rw-r--r--extract/test/electoral_roll.pdf.mutool.odt.dir.ref/mimetype1
-rw-r--r--extract/test/electoral_roll.pdf.mutool.odt.dir.ref/settings.xml2
-rw-r--r--extract/test/electoral_roll.pdf.mutool.odt.dir.ref/styles.xml2
-rwxr-xr-xextract/test/rotated.pdfbin0 -> 16638 bytes
-rw-r--r--extract/test/rotated.pdf.mutool.docx.dir.ref/[Content_Types].xml2
-rw-r--r--extract/test/rotated.pdf.mutool.docx.dir.ref/_rels/.rels2
-rw-r--r--extract/test/rotated.pdf.mutool.docx.dir.ref/docProps/app.xml2
-rw-r--r--extract/test/rotated.pdf.mutool.docx.dir.ref/docProps/core.xml2
-rw-r--r--extract/test/rotated.pdf.mutool.docx.dir.ref/word/_rels/document.xml.rels2
-rw-r--r--extract/test/rotated.pdf.mutool.docx.dir.ref/word/document.xml2216
-rw-r--r--extract/test/rotated.pdf.mutool.docx.dir.ref/word/fontTable.xml2
-rw-r--r--extract/test/rotated.pdf.mutool.docx.dir.ref/word/settings.xml2
-rw-r--r--extract/test/rotated.pdf.mutool.docx.dir.ref/word/styles.xml2
-rw-r--r--extract/test/rotated.pdf.mutool.docx.dir.ref/word/theme/theme1.xml2
-rw-r--r--extract/test/rotated.pdf.mutool.docx.dir.ref/word/webSettings.xml2
-rw-r--r--extract/test/rotated.pdf.mutool.html.ref48
-rw-r--r--extract/test/rotated.pdf.mutool.odt.dir.ref/META-INF/manifest.xml11
-rw-r--r--extract/test/rotated.pdf.mutool.odt.dir.ref/Thumbnails/thumbnail.png2
-rw-r--r--extract/test/rotated.pdf.mutool.odt.dir.ref/content.xml751
-rw-r--r--extract/test/rotated.pdf.mutool.odt.dir.ref/manifest.rdf18
-rw-r--r--extract/test/rotated.pdf.mutool.odt.dir.ref/meta.xml2
-rw-r--r--extract/test/rotated.pdf.mutool.odt.dir.ref/mimetype1
-rw-r--r--extract/test/rotated.pdf.mutool.odt.dir.ref/settings.xml2
-rw-r--r--extract/test/rotated.pdf.mutool.odt.dir.ref/styles.xml2
-rwxr-xr-xextract/test/row_span.pdfbin0 -> 33228 bytes
-rw-r--r--extract/test/row_span.pdf.mutool-0.csv.ref40
-rw-r--r--extract/test/row_span.pdf.mutool.docx.dir.ref/[Content_Types].xml2
-rw-r--r--extract/test/row_span.pdf.mutool.docx.dir.ref/_rels/.rels2
-rw-r--r--extract/test/row_span.pdf.mutool.docx.dir.ref/docProps/app.xml2
-rw-r--r--extract/test/row_span.pdf.mutool.docx.dir.ref/docProps/core.xml2
-rw-r--r--extract/test/row_span.pdf.mutool.docx.dir.ref/word/_rels/document.xml.rels2
-rw-r--r--extract/test/row_span.pdf.mutool.docx.dir.ref/word/document.xml2133
-rw-r--r--extract/test/row_span.pdf.mutool.docx.dir.ref/word/fontTable.xml2
-rw-r--r--extract/test/row_span.pdf.mutool.docx.dir.ref/word/settings.xml2
-rw-r--r--extract/test/row_span.pdf.mutool.docx.dir.ref/word/styles.xml2
-rw-r--r--extract/test/row_span.pdf.mutool.docx.dir.ref/word/theme/theme1.xml2
-rw-r--r--extract/test/row_span.pdf.mutool.docx.dir.ref/word/webSettings.xml2
-rw-r--r--extract/test/row_span.pdf.mutool.html.ref132
-rw-r--r--extract/test/row_span.pdf.mutool.odt.dir.ref/META-INF/manifest.xml11
-rw-r--r--extract/test/row_span.pdf.mutool.odt.dir.ref/Thumbnails/thumbnail.png2
-rw-r--r--extract/test/row_span.pdf.mutool.odt.dir.ref/content.xml639
-rw-r--r--extract/test/row_span.pdf.mutool.odt.dir.ref/manifest.rdf18
-rw-r--r--extract/test/row_span.pdf.mutool.odt.dir.ref/meta.xml2
-rw-r--r--extract/test/row_span.pdf.mutool.odt.dir.ref/mimetype1
-rw-r--r--extract/test/row_span.pdf.mutool.odt.dir.ref/settings.xml2
-rw-r--r--extract/test/row_span.pdf.mutool.odt.dir.ref/styles.xml2
-rw-r--r--extract/test/table.pdfbin0 -> 84158 bytes
-rw-r--r--extract/test/table.pdf.mutool-0.csv.ref7
-rw-r--r--extract/test/table.pdf.mutool.docx.dir.ref/[Content_Types].xml2
-rw-r--r--extract/test/table.pdf.mutool.docx.dir.ref/_rels/.rels2
-rw-r--r--extract/test/table.pdf.mutool.docx.dir.ref/docProps/app.xml2
-rw-r--r--extract/test/table.pdf.mutool.docx.dir.ref/docProps/core.xml2
-rw-r--r--extract/test/table.pdf.mutool.docx.dir.ref/word/_rels/document.xml.rels2
-rw-r--r--extract/test/table.pdf.mutool.docx.dir.ref/word/document.xml738
-rw-r--r--extract/test/table.pdf.mutool.docx.dir.ref/word/fontTable.xml2
-rw-r--r--extract/test/table.pdf.mutool.docx.dir.ref/word/settings.xml2
-rw-r--r--extract/test/table.pdf.mutool.docx.dir.ref/word/styles.xml2
-rw-r--r--extract/test/table.pdf.mutool.docx.dir.ref/word/theme/theme1.xml2
-rw-r--r--extract/test/table.pdf.mutool.docx.dir.ref/word/webSettings.xml2
-rw-r--r--extract/test/table.pdf.mutool.html.ref72
-rw-r--r--extract/test/table.pdf.mutool.odt.dir.ref/META-INF/manifest.xml11
-rw-r--r--extract/test/table.pdf.mutool.odt.dir.ref/Thumbnails/thumbnail.png2
-rw-r--r--extract/test/table.pdf.mutool.odt.dir.ref/content.xml287
-rw-r--r--extract/test/table.pdf.mutool.odt.dir.ref/manifest.rdf18
-rw-r--r--extract/test/table.pdf.mutool.odt.dir.ref/meta.xml2
-rw-r--r--extract/test/table.pdf.mutool.odt.dir.ref/mimetype1
-rw-r--r--extract/test/table.pdf.mutool.odt.dir.ref/settings.xml2
-rw-r--r--extract/test/table.pdf.mutool.odt.dir.ref/styles.xml2
-rw-r--r--extract/test/text_graphic_image.pdf.gs.docx.dir.ref/word/document.xml2
-rw-r--r--extract/test/text_graphic_image.pdf.intermediate-gs.xml.extract-autosplit.docx.dir.ref/word/document.xml2
-rw-r--r--extract/test/text_graphic_image.pdf.intermediate-gs.xml.extract-rotate-spacing.docx.dir.ref/word/document.xml2
-rw-r--r--extract/test/text_graphic_image.pdf.intermediate-gs.xml.extract-rotate.docx.dir.ref/word/document.xml2
-rw-r--r--extract/test/text_graphic_image.pdf.intermediate-gs.xml.extract.docx.dir.ref/word/document.xml2
-rw-r--r--extract/test/text_graphic_image.pdf.intermediate-mu.xml.extract-autosplit.docx.dir.ref/word/document.xml2
-rw-r--r--extract/test/text_graphic_image.pdf.intermediate-mu.xml.extract-rotate-spacing.docx.dir.ref/word/document.xml2
-rw-r--r--extract/test/text_graphic_image.pdf.intermediate-mu.xml.extract-rotate.docx.dir.ref/word/document.xml2
-rw-r--r--extract/test/text_graphic_image.pdf.intermediate-mu.xml.extract.docx.dir.ref/word/document.xml2
-rw-r--r--extract/test/text_graphic_image.pdf.mutool-norotate.docx.dir.ref/word/document.xml2
-rw-r--r--extract/test/text_graphic_image.pdf.mutool.docx.dir.ref/word/document.xml2
-rw-r--r--extract/test/text_graphic_image.pdf.mutool.odt.dir.ref/content.xml7
-rw-r--r--extract/test/text_graphic_image.pdf.mutool.text.ref3
-rwxr-xr-xextract/test/twotables_1.pdfbin0 -> 14445 bytes
-rw-r--r--extract/test/twotables_1.pdf.mutool-0.csv.ref7
-rw-r--r--extract/test/twotables_1.pdf.mutool.docx.dir.ref/[Content_Types].xml2
-rw-r--r--extract/test/twotables_1.pdf.mutool.docx.dir.ref/_rels/.rels2
-rw-r--r--extract/test/twotables_1.pdf.mutool.docx.dir.ref/docProps/app.xml2
-rw-r--r--extract/test/twotables_1.pdf.mutool.docx.dir.ref/docProps/core.xml2
-rw-r--r--extract/test/twotables_1.pdf.mutool.docx.dir.ref/word/_rels/document.xml.rels2
-rw-r--r--extract/test/twotables_1.pdf.mutool.docx.dir.ref/word/document.xml2464
-rw-r--r--extract/test/twotables_1.pdf.mutool.docx.dir.ref/word/fontTable.xml2
-rw-r--r--extract/test/twotables_1.pdf.mutool.docx.dir.ref/word/settings.xml2
-rw-r--r--extract/test/twotables_1.pdf.mutool.docx.dir.ref/word/styles.xml2
-rw-r--r--extract/test/twotables_1.pdf.mutool.docx.dir.ref/word/theme/theme1.xml2
-rw-r--r--extract/test/twotables_1.pdf.mutool.docx.dir.ref/word/webSettings.xml2
-rw-r--r--extract/test/twotables_1.pdf.mutool.html.ref83
-rw-r--r--extract/test/twotables_1.pdf.mutool.odt.dir.ref/META-INF/manifest.xml11
-rw-r--r--extract/test/twotables_1.pdf.mutool.odt.dir.ref/Thumbnails/thumbnail.png2
-rw-r--r--extract/test/twotables_1.pdf.mutool.odt.dir.ref/content.xml576
-rw-r--r--extract/test/twotables_1.pdf.mutool.odt.dir.ref/manifest.rdf18
-rw-r--r--extract/test/twotables_1.pdf.mutool.odt.dir.ref/meta.xml2
-rw-r--r--extract/test/twotables_1.pdf.mutool.odt.dir.ref/mimetype1
-rw-r--r--extract/test/twotables_1.pdf.mutool.odt.dir.ref/settings.xml2
-rw-r--r--extract/test/twotables_1.pdf.mutool.odt.dir.ref/styles.xml2
-rwxr-xr-xextract/test/twotables_2.pdfbin0 -> 23667 bytes
-rw-r--r--extract/test/twotables_2.pdf.mutool-0.csv.ref0
-rw-r--r--extract/test/twotables_2.pdf.mutool.docx.dir.ref/[Content_Types].xml2
-rw-r--r--extract/test/twotables_2.pdf.mutool.docx.dir.ref/_rels/.rels2
-rw-r--r--extract/test/twotables_2.pdf.mutool.docx.dir.ref/docProps/app.xml2
-rw-r--r--extract/test/twotables_2.pdf.mutool.docx.dir.ref/docProps/core.xml2
-rw-r--r--extract/test/twotables_2.pdf.mutool.docx.dir.ref/word/_rels/document.xml.rels2
-rw-r--r--extract/test/twotables_2.pdf.mutool.docx.dir.ref/word/document.xml2866
-rw-r--r--extract/test/twotables_2.pdf.mutool.docx.dir.ref/word/fontTable.xml2
-rw-r--r--extract/test/twotables_2.pdf.mutool.docx.dir.ref/word/settings.xml2
-rw-r--r--extract/test/twotables_2.pdf.mutool.docx.dir.ref/word/styles.xml2
-rw-r--r--extract/test/twotables_2.pdf.mutool.docx.dir.ref/word/theme/theme1.xml2
-rw-r--r--extract/test/twotables_2.pdf.mutool.docx.dir.ref/word/webSettings.xml2
-rw-r--r--extract/test/twotables_2.pdf.mutool.html.ref101
-rw-r--r--extract/test/twotables_2.pdf.mutool.odt.dir.ref/META-INF/manifest.xml11
-rw-r--r--extract/test/twotables_2.pdf.mutool.odt.dir.ref/Thumbnails/thumbnail.png2
-rw-r--r--extract/test/twotables_2.pdf.mutool.odt.dir.ref/content.xml1084
-rw-r--r--extract/test/twotables_2.pdf.mutool.odt.dir.ref/manifest.rdf18
-rw-r--r--extract/test/twotables_2.pdf.mutool.odt.dir.ref/meta.xml2
-rw-r--r--extract/test/twotables_2.pdf.mutool.odt.dir.ref/mimetype1
-rw-r--r--extract/test/twotables_2.pdf.mutool.odt.dir.ref/settings.xml2
-rw-r--r--extract/test/twotables_2.pdf.mutool.odt.dir.ref/styles.xml2
-rw-r--r--extract/test/zlib.3.pdf.mutool.odt.dir.ref/content.xml5
-rw-r--r--extract/test/zlib.3.pdf.mutool.text.ref34
-rw-r--r--freetype/CMakeLists.txt242
-rw-r--r--freetype/ChangeLog5437
-rw-r--r--freetype/LICENSE.TXT42
-rw-r--r--freetype/Makefile2
-rw-r--r--freetype/README112
-rw-r--r--freetype/README.git80
-rwxr-xr-xfreetype/autogen.sh51
-rw-r--r--freetype/builds/amiga/README2
-rw-r--r--freetype/builds/amiga/include/config/ftconfig.h2
-rw-r--r--freetype/builds/amiga/include/config/ftmodule.h2
-rw-r--r--freetype/builds/amiga/makefile2
-rw-r--r--freetype/builds/amiga/makefile.os42
-rw-r--r--freetype/builds/amiga/smakefile2
-rw-r--r--freetype/builds/amiga/src/base/ftdebug.c2
-rw-r--r--freetype/builds/amiga/src/base/ftsystem.c4
-rw-r--r--freetype/builds/ansi/ansi-def.mk16
-rw-r--r--freetype/builds/ansi/ansi.mk2
-rw-r--r--freetype/builds/atari/README.TXT4
-rw-r--r--freetype/builds/beos/beos-def.mk16
-rw-r--r--freetype/builds/beos/beos.mk2
-rw-r--r--freetype/builds/beos/detect.mk12
-rw-r--r--freetype/builds/cmake/FindBrotliDec.cmake7
-rw-r--r--freetype/builds/cmake/FindHarfBuzz.cmake210
-rw-r--r--freetype/builds/cmake/iOS.cmake2
-rwxr-xr-xfreetype/builds/cmake/testbuild.sh2
-rw-r--r--freetype/builds/compiler/ansi-cc.mk6
-rw-r--r--freetype/builds/compiler/bcc-dev.mk6
-rw-r--r--freetype/builds/compiler/bcc.mk6
-rw-r--r--freetype/builds/compiler/emx.mk6
-rw-r--r--freetype/builds/compiler/gcc-dev.mk7
-rw-r--r--freetype/builds/compiler/gcc.mk6
-rw-r--r--freetype/builds/compiler/intelc.mk6
-rw-r--r--freetype/builds/compiler/unix-lcc.mk6
-rw-r--r--freetype/builds/compiler/visualage.mk2
-rw-r--r--freetype/builds/compiler/visualc.mk6
-rw-r--r--freetype/builds/compiler/watcom.mk6
-rw-r--r--freetype/builds/compiler/win-lcc.mk6
-rw-r--r--freetype/builds/detect.mk10
-rw-r--r--freetype/builds/dos/detect.mk2
-rw-r--r--freetype/builds/dos/dos-def.mk12
-rw-r--r--freetype/builds/dos/dos-emx.mk2
-rw-r--r--freetype/builds/dos/dos-gcc.mk2
-rw-r--r--freetype/builds/dos/dos-wat.mk2
-rw-r--r--freetype/builds/exports.mk2
-rw-r--r--freetype/builds/freetype.mk27
-rw-r--r--freetype/builds/link_dos.mk2
-rw-r--r--freetype/builds/link_std.mk2
-rw-r--r--freetype/builds/mac/ftmac.c10
-rw-r--r--freetype/builds/meson/extract_freetype_version.py10
-rw-r--r--freetype/builds/meson/extract_libtool_version.py10
-rw-r--r--freetype/builds/meson/generate_reference_docs.py10
-rw-r--r--freetype/builds/meson/parse_modules_cfg.py10
-rw-r--r--freetype/builds/meson/process_ftoption_h.py14
-rw-r--r--freetype/builds/modules.mk2
-rw-r--r--freetype/builds/os2/detect.mk2
-rw-r--r--freetype/builds/os2/os2-def.mk12
-rw-r--r--freetype/builds/os2/os2-dev.mk2
-rw-r--r--freetype/builds/os2/os2-gcc.mk2
-rw-r--r--freetype/builds/symbian/bld.inf2
-rw-r--r--freetype/builds/symbian/freetype.mmp2
-rw-r--r--freetype/builds/toplevel.mk51
-rw-r--r--freetype/builds/unix/aclocal.m4119
-rw-r--r--freetype/builds/unix/ax_pthread.m4522
-rw-r--r--freetype/builds/unix/configure.ac185
-rw-r--r--freetype/builds/unix/configure.raw183
-rw-r--r--freetype/builds/unix/detect.mk2
-rw-r--r--freetype/builds/unix/freetype-config.in2
-rw-r--r--freetype/builds/unix/freetype2.m414
-rw-r--r--freetype/builds/unix/ft-munmap.m42
-rw-r--r--freetype/builds/unix/ftconfig.h.in12
-rw-r--r--freetype/builds/unix/ftsystem.c244
-rw-r--r--freetype/builds/unix/install.mk4
-rw-r--r--freetype/builds/unix/unix-cc.in6
-rw-r--r--freetype/builds/unix/unix-def.in4
-rw-r--r--freetype/builds/unix/unix-dev.mk2
-rw-r--r--freetype/builds/unix/unix-lcc.mk2
-rw-r--r--freetype/builds/unix/unix.mk10
-rw-r--r--freetype/builds/unix/unixddef.mk5
-rw-r--r--freetype/builds/vms/ftconfig.h2
-rw-r--r--freetype/builds/vms/ftsystem.c10
-rw-r--r--freetype/builds/wince/ftdebug.c4
-rw-r--r--freetype/builds/wince/vc2005-ce/index.html2
-rw-r--r--freetype/builds/wince/vc2008-ce/index.html2
-rw-r--r--freetype/builds/windows/detect.mk6
-rw-r--r--freetype/builds/windows/ftdebug.c394
-rw-r--r--freetype/builds/windows/ftsystem.c436
-rw-r--r--freetype/builds/windows/vc2010/freetype.sln39
-rw-r--r--freetype/builds/windows/vc2010/freetype.vcxproj231
-rw-r--r--freetype/builds/windows/vc2010/freetype.vcxproj.filters12
-rw-r--r--freetype/builds/windows/vc2010/index.html2
-rw-r--r--freetype/builds/windows/visualc/freetype.dsp2
-rw-r--r--freetype/builds/windows/visualc/freetype.vcproj46
-rw-r--r--freetype/builds/windows/visualc/index.html2
-rw-r--r--freetype/builds/windows/visualce/index.html2
-rw-r--r--freetype/builds/windows/w32-bcc.mk2
-rw-r--r--freetype/builds/windows/w32-bccd.mk2
-rw-r--r--freetype/builds/windows/w32-dev.mk2
-rw-r--r--freetype/builds/windows/w32-gcc.mk2
-rw-r--r--freetype/builds/windows/w32-icc.mk2
-rw-r--r--freetype/builds/windows/w32-intl.mk2
-rw-r--r--freetype/builds/windows/w32-lcc.mk2
-rw-r--r--freetype/builds/windows/w32-mingw32.mk2
-rw-r--r--freetype/builds/windows/w32-vcc.mk2
-rw-r--r--freetype/builds/windows/w32-wat.mk2
-rw-r--r--freetype/builds/windows/win32-def.mk12
-rw-r--r--freetype/devel/ft2build.h2
-rw-r--r--freetype/devel/ftoption.h53
-rw-r--r--freetype/docs/CHANGES224
-rw-r--r--freetype/docs/CUSTOMIZE2
-rw-r--r--freetype/docs/DEBUG96
-rw-r--r--freetype/docs/DOCGUIDE6
-rw-r--r--freetype/docs/INSTALL82
-rw-r--r--freetype/docs/INSTALL.ANY17
-rw-r--r--freetype/docs/INSTALL.CROSS2
-rw-r--r--freetype/docs/INSTALL.GNU30
-rw-r--r--freetype/docs/INSTALL.UNIX27
-rw-r--r--freetype/docs/INSTALL.VMS2
-rw-r--r--freetype/docs/TODO2
-rw-r--r--freetype/docs/VERSIONS.TXT4
-rw-r--r--freetype/docs/formats.txt17
-rw-r--r--freetype/docs/freetype-config.12
-rw-r--r--freetype/docs/oldlogs/ChangeLog.202613
-rw-r--r--freetype/docs/oldlogs/ChangeLog.219438
-rw-r--r--freetype/docs/oldlogs/ChangeLog.2107815
-rw-r--r--freetype/docs/oldlogs/ChangeLog.222837
-rw-r--r--freetype/docs/oldlogs/ChangeLog.237948
-rw-r--r--freetype/docs/oldlogs/ChangeLog.246360
-rw-r--r--freetype/docs/oldlogs/ChangeLog.255161
-rw-r--r--freetype/docs/oldlogs/ChangeLog.265711
-rw-r--r--freetype/docs/oldlogs/ChangeLog.272106
-rw-r--r--freetype/docs/oldlogs/ChangeLog.283136
-rw-r--r--freetype/docs/oldlogs/ChangeLog.292352
-rw-r--r--freetype/docs/raster.txt2
-rw-r--r--freetype/docs/reference/404.html1522
-rw-r--r--freetype/docs/reference/assets/images/favicon.pngbin521 -> 1870 bytes
-rw-r--r--freetype/docs/reference/assets/javascripts/bundle.82b56eb2.min.js29
-rw-r--r--freetype/docs/reference/assets/javascripts/bundle.82b56eb2.min.js.map7
-rw-r--r--freetype/docs/reference/assets/javascripts/lunr/min/lunr.ar.min.js1
-rw-r--r--freetype/docs/reference/assets/javascripts/lunr/min/lunr.da.min.js18
-rw-r--r--freetype/docs/reference/assets/javascripts/lunr/min/lunr.de.min.js18
-rw-r--r--freetype/docs/reference/assets/javascripts/lunr/min/lunr.du.min.js18
-rw-r--r--freetype/docs/reference/assets/javascripts/lunr/min/lunr.es.min.js18
-rw-r--r--freetype/docs/reference/assets/javascripts/lunr/min/lunr.fi.min.js18
-rw-r--r--freetype/docs/reference/assets/javascripts/lunr/min/lunr.fr.min.js18
-rw-r--r--freetype/docs/reference/assets/javascripts/lunr/min/lunr.hi.min.js1
-rw-r--r--freetype/docs/reference/assets/javascripts/lunr/min/lunr.hu.min.js18
-rw-r--r--freetype/docs/reference/assets/javascripts/lunr/min/lunr.it.min.js18
-rw-r--r--freetype/docs/reference/assets/javascripts/lunr/min/lunr.ja.min.js1
-rw-r--r--freetype/docs/reference/assets/javascripts/lunr/min/lunr.jp.min.js1
-rw-r--r--freetype/docs/reference/assets/javascripts/lunr/min/lunr.multi.min.js1
-rw-r--r--freetype/docs/reference/assets/javascripts/lunr/min/lunr.nl.min.js18
-rw-r--r--freetype/docs/reference/assets/javascripts/lunr/min/lunr.no.min.js18
-rw-r--r--freetype/docs/reference/assets/javascripts/lunr/min/lunr.pt.min.js18
-rw-r--r--freetype/docs/reference/assets/javascripts/lunr/min/lunr.ro.min.js18
-rw-r--r--freetype/docs/reference/assets/javascripts/lunr/min/lunr.ru.min.js18
-rw-r--r--freetype/docs/reference/assets/javascripts/lunr/min/lunr.stemmer.support.min.js1
-rw-r--r--freetype/docs/reference/assets/javascripts/lunr/min/lunr.sv.min.js18
-rw-r--r--freetype/docs/reference/assets/javascripts/lunr/min/lunr.th.min.js1
-rw-r--r--freetype/docs/reference/assets/javascripts/lunr/min/lunr.tr.min.js18
-rw-r--r--freetype/docs/reference/assets/javascripts/lunr/min/lunr.vi.min.js1
-rw-r--r--freetype/docs/reference/assets/javascripts/lunr/min/lunr.zh.min.js1
-rw-r--r--freetype/docs/reference/assets/javascripts/lunr/tinyseg.js207
-rw-r--r--freetype/docs/reference/assets/javascripts/lunr/wordcut.js6709
-rw-r--r--freetype/docs/reference/assets/javascripts/workers/search.477d984a.min.js48
-rw-r--r--freetype/docs/reference/assets/javascripts/workers/search.477d984a.min.js.map7
-rw-r--r--freetype/docs/reference/assets/stylesheets/main.ca7ac06f.min.css2
-rw-r--r--freetype/docs/reference/assets/stylesheets/main.ca7ac06f.min.css.map1
-rw-r--r--freetype/docs/reference/assets/stylesheets/palette.f1a3b89f.min.css2
-rw-r--r--freetype/docs/reference/assets/stylesheets/palette.f1a3b89f.min.css.map1
-rw-r--r--freetype/docs/reference/ft2-auto_hinter.html1643
-rw-r--r--freetype/docs/reference/ft2-base_interface.html1826
-rw-r--r--freetype/docs/reference/ft2-basic_types.html1680
-rw-r--r--freetype/docs/reference/ft2-bdf_fonts.html1649
-rw-r--r--freetype/docs/reference/ft2-bitmap_handling.html1653
-rw-r--r--freetype/docs/reference/ft2-bzip2.html1644
-rw-r--r--freetype/docs/reference/ft2-cache_subsystem.html1673
-rw-r--r--freetype/docs/reference/ft2-cff_driver.html1647
-rw-r--r--freetype/docs/reference/ft2-cid_fonts.html1647
-rw-r--r--freetype/docs/reference/ft2-color_management.html1649
-rw-r--r--freetype/docs/reference/ft2-computations.html1666
-rw-r--r--freetype/docs/reference/ft2-debugging_apis.html1401
-rw-r--r--freetype/docs/reference/ft2-error_code_values.html1642
-rw-r--r--freetype/docs/reference/ft2-error_enumerations.html1654
-rw-r--r--freetype/docs/reference/ft2-font_formats.html1643
-rw-r--r--freetype/docs/reference/ft2-gasp_table.html1643
-rw-r--r--freetype/docs/reference/ft2-glyph_management.html1672
-rw-r--r--freetype/docs/reference/ft2-glyph_stroker.html1667
-rw-r--r--freetype/docs/reference/ft2-glyph_variants.html1646
-rw-r--r--freetype/docs/reference/ft2-gx_validation.html1649
-rw-r--r--freetype/docs/reference/ft2-gzip.html1645
-rw-r--r--freetype/docs/reference/ft2-header_file_macros.html1641
-rw-r--r--freetype/docs/reference/ft2-header_inclusion.html1641
-rw-r--r--freetype/docs/reference/ft2-incremental.html1654
-rw-r--r--freetype/docs/reference/ft2-index.html1686
-rw-r--r--freetype/docs/reference/ft2-layer_management.html3027
-rw-r--r--freetype/docs/reference/ft2-lcd_rendering.html1652
-rw-r--r--freetype/docs/reference/ft2-list_processing.html1653
-rw-r--r--freetype/docs/reference/ft2-lzw.html1642
-rw-r--r--freetype/docs/reference/ft2-mac_specific.html1656
-rw-r--r--freetype/docs/reference/ft2-module_management.html1704
-rw-r--r--freetype/docs/reference/ft2-multiple_masters.html1669
-rw-r--r--freetype/docs/reference/ft2-ot_validation.html1622
-rw-r--r--freetype/docs/reference/ft2-outline_processing.html1675
-rw-r--r--freetype/docs/reference/ft2-parameter_tags.html1643
-rw-r--r--freetype/docs/reference/ft2-pcf_driver.html1641
-rw-r--r--freetype/docs/reference/ft2-pfr_fonts.html1647
-rw-r--r--freetype/docs/reference/ft2-preamble.html1233
-rw-r--r--freetype/docs/reference/ft2-properties.html1683
-rw-r--r--freetype/docs/reference/ft2-quick_advance.html1645
-rw-r--r--freetype/docs/reference/ft2-raster.html1718
-rw-r--r--freetype/docs/reference/ft2-sfnt_names.html1648
-rw-r--r--freetype/docs/reference/ft2-sizes_management.html1645
-rw-r--r--freetype/docs/reference/ft2-system_interface.html1648
-rw-r--r--freetype/docs/reference/ft2-t1_cid_driver.html1641
-rw-r--r--freetype/docs/reference/ft2-truetype_engine.html1643
-rw-r--r--freetype/docs/reference/ft2-truetype_tables.html1665
-rw-r--r--freetype/docs/reference/ft2-tt_driver.html1641
-rw-r--r--freetype/docs/reference/ft2-type1_tables.html1659
-rw-r--r--freetype/docs/reference/ft2-user_allocation.html1641
-rw-r--r--freetype/docs/reference/ft2-version.html1650
-rw-r--r--freetype/docs/reference/ft2-winfnt_fonts.html1644
-rw-r--r--freetype/docs/reference/index.html1602
-rw-r--r--freetype/docs/reference/search/search_index.json2
-rw-r--r--freetype/docs/reference/sitemap.xml469
-rw-r--r--freetype/docs/reference/sitemap.xml.gzbin219 -> 226 bytes
-rw-r--r--freetype/docs/reference/stylesheets/extra.css6
-rw-r--r--freetype/docs/release76
-rw-r--r--freetype/include/dlg/dlg.h270
-rw-r--r--freetype/include/dlg/output.h172
-rw-r--r--freetype/include/freetype/config/ftconfig.h2
-rw-r--r--freetype/include/freetype/config/ftheader.h2
-rw-r--r--freetype/include/freetype/config/ftmodule.h6
-rw-r--r--freetype/include/freetype/config/ftoption.h55
-rw-r--r--freetype/include/freetype/config/ftstdlib.h14
-rw-r--r--freetype/include/freetype/config/integer-types.h40
-rw-r--r--freetype/include/freetype/config/mac-support.h2
-rw-r--r--freetype/include/freetype/config/public-macros.h20
-rw-r--r--freetype/include/freetype/freetype.h343
-rw-r--r--freetype/include/freetype/ftadvanc.h2
-rw-r--r--freetype/include/freetype/ftbbox.h2
-rw-r--r--freetype/include/freetype/ftbdf.h2
-rw-r--r--freetype/include/freetype/ftbitmap.h2
-rw-r--r--freetype/include/freetype/ftbzip2.h2
-rw-r--r--freetype/include/freetype/ftcache.h6
-rw-r--r--freetype/include/freetype/ftchapters.h2
-rw-r--r--freetype/include/freetype/ftcid.h2
-rw-r--r--freetype/include/freetype/ftcolor.h1407
-rw-r--r--freetype/include/freetype/ftdriver.h74
-rw-r--r--freetype/include/freetype/fterrdef.h2
-rw-r--r--freetype/include/freetype/fterrors.h4
-rw-r--r--freetype/include/freetype/ftfntfmt.h2
-rw-r--r--freetype/include/freetype/ftgasp.h2
-rw-r--r--freetype/include/freetype/ftglyph.h16
-rw-r--r--freetype/include/freetype/ftgxval.h2
-rw-r--r--freetype/include/freetype/ftgzip.h2
-rw-r--r--freetype/include/freetype/ftimage.h114
-rw-r--r--freetype/include/freetype/ftincrem.h17
-rw-r--r--freetype/include/freetype/ftlcdfil.h21
-rw-r--r--freetype/include/freetype/ftlist.h2
-rw-r--r--freetype/include/freetype/ftlogging.h184
-rw-r--r--freetype/include/freetype/ftlzw.h2
-rw-r--r--freetype/include/freetype/ftmac.h2
-rw-r--r--freetype/include/freetype/ftmm.h2
-rw-r--r--freetype/include/freetype/ftmodapi.h35
-rw-r--r--freetype/include/freetype/ftmoderr.h3
-rw-r--r--freetype/include/freetype/ftotval.h2
-rw-r--r--freetype/include/freetype/ftoutln.h2
-rw-r--r--freetype/include/freetype/ftparams.h2
-rw-r--r--freetype/include/freetype/ftpfr.h2
-rw-r--r--freetype/include/freetype/ftrender.h2
-rw-r--r--freetype/include/freetype/ftsizes.h2
-rw-r--r--freetype/include/freetype/ftsnames.h2
-rw-r--r--freetype/include/freetype/ftstroke.h2
-rw-r--r--freetype/include/freetype/ftsynth.h2
-rw-r--r--freetype/include/freetype/ftsystem.h2
-rw-r--r--freetype/include/freetype/fttrigon.h2
-rw-r--r--freetype/include/freetype/fttypes.h19
-rw-r--r--freetype/include/freetype/ftwinfnt.h4
-rw-r--r--freetype/include/freetype/internal/autohint.h2
-rw-r--r--freetype/include/freetype/internal/cffotypes.h2
-rw-r--r--freetype/include/freetype/internal/cfftypes.h2
-rw-r--r--freetype/include/freetype/internal/compiler-macros.h152
-rw-r--r--freetype/include/freetype/internal/ftcalc.h45
-rw-r--r--freetype/include/freetype/internal/ftdebug.h171
-rw-r--r--freetype/include/freetype/internal/ftdrv.h2
-rw-r--r--freetype/include/freetype/internal/ftgloadr.h3
-rw-r--r--freetype/include/freetype/internal/ftmemory.h13
-rw-r--r--freetype/include/freetype/internal/ftobjs.h4
-rw-r--r--freetype/include/freetype/internal/ftpsprop.h2
-rw-r--r--freetype/include/freetype/internal/ftrfork.h2
-rw-r--r--freetype/include/freetype/internal/ftserv.h2
-rw-r--r--freetype/include/freetype/internal/ftstream.h32
-rw-r--r--freetype/include/freetype/internal/fttrace.h22
-rw-r--r--freetype/include/freetype/internal/ftvalid.h2
-rw-r--r--freetype/include/freetype/internal/psaux.h2
-rw-r--r--freetype/include/freetype/internal/pshints.h2
-rw-r--r--freetype/include/freetype/internal/services/svbdf.h2
-rw-r--r--freetype/include/freetype/internal/services/svcfftl.h2
-rw-r--r--freetype/include/freetype/internal/services/svcid.h2
-rw-r--r--freetype/include/freetype/internal/services/svfntfmt.h2
-rw-r--r--freetype/include/freetype/internal/services/svgldict.h2
-rw-r--r--freetype/include/freetype/internal/services/svgxval.h2
-rw-r--r--freetype/include/freetype/internal/services/svkern.h2
-rw-r--r--freetype/include/freetype/internal/services/svmetric.h2
-rw-r--r--freetype/include/freetype/internal/services/svmm.h2
-rw-r--r--freetype/include/freetype/internal/services/svotval.h2
-rw-r--r--freetype/include/freetype/internal/services/svpfr.h2
-rw-r--r--freetype/include/freetype/internal/services/svpostnm.h2
-rw-r--r--freetype/include/freetype/internal/services/svprop.h2
-rw-r--r--freetype/include/freetype/internal/services/svpscmap.h2
-rw-r--r--freetype/include/freetype/internal/services/svpsinfo.h2
-rw-r--r--freetype/include/freetype/internal/services/svsfnt.h2
-rw-r--r--freetype/include/freetype/internal/services/svttcmap.h2
-rw-r--r--freetype/include/freetype/internal/services/svtteng.h2
-rw-r--r--freetype/include/freetype/internal/services/svttglyf.h2
-rw-r--r--freetype/include/freetype/internal/services/svwinfnt.h2
-rw-r--r--freetype/include/freetype/internal/sfnt.h253
-rw-r--r--freetype/include/freetype/internal/t1types.h2
-rw-r--r--freetype/include/freetype/internal/tttypes.h8
-rw-r--r--freetype/include/freetype/internal/wofftypes.h6
-rw-r--r--freetype/include/freetype/t1tables.h10
-rw-r--r--freetype/include/freetype/ttnameid.h4
-rw-r--r--freetype/include/freetype/tttables.h2
-rw-r--r--freetype/include/freetype/tttags.h2
-rw-r--r--freetype/include/ft2build.h2
-rw-r--r--freetype/meson.build265
-rw-r--r--freetype/meson_options.txt40
-rw-r--r--freetype/modules.cfg9
-rw-r--r--freetype/src/autofit/afblue.c2
-rw-r--r--freetype/src/autofit/afblue.cin2
-rw-r--r--freetype/src/autofit/afblue.dat2
-rw-r--r--freetype/src/autofit/afblue.h2
-rw-r--r--freetype/src/autofit/afblue.hin2
-rw-r--r--freetype/src/autofit/afcjk.c66
-rw-r--r--freetype/src/autofit/afcjk.h2
-rw-r--r--freetype/src/autofit/afcover.h2
-rw-r--r--freetype/src/autofit/afdummy.c2
-rw-r--r--freetype/src/autofit/afdummy.h2
-rw-r--r--freetype/src/autofit/aferrors.h2
-rw-r--r--freetype/src/autofit/afglobal.c22
-rw-r--r--freetype/src/autofit/afglobal.h2
-rw-r--r--freetype/src/autofit/afhints.c150
-rw-r--r--freetype/src/autofit/afhints.h17
-rw-r--r--freetype/src/autofit/afindic.c7
-rw-r--r--freetype/src/autofit/afindic.h2
-rw-r--r--freetype/src/autofit/aflatin.c127
-rw-r--r--freetype/src/autofit/aflatin.h2
-rw-r--r--freetype/src/autofit/afloader.c39
-rw-r--r--freetype/src/autofit/afloader.h4
-rw-r--r--freetype/src/autofit/afmodule.c56
-rw-r--r--freetype/src/autofit/afmodule.h5
-rw-r--r--freetype/src/autofit/afranges.c2
-rw-r--r--freetype/src/autofit/afranges.h2
-rw-r--r--freetype/src/autofit/afscript.h2
-rw-r--r--freetype/src/autofit/afshaper.c57
-rw-r--r--freetype/src/autofit/afshaper.h2
-rw-r--r--freetype/src/autofit/afstyles.h11
-rw-r--r--freetype/src/autofit/aftypes.h65
-rw-r--r--freetype/src/autofit/afws-decl.h33
-rw-r--r--freetype/src/autofit/afws-iter.h31
-rw-r--r--freetype/src/autofit/autofit.c5
-rw-r--r--freetype/src/autofit/module.mk2
-rw-r--r--freetype/src/autofit/rules.mk21
-rw-r--r--freetype/src/base/ftadvanc.c2
-rw-r--r--freetype/src/base/ftbase.c2
-rw-r--r--freetype/src/base/ftbase.h2
-rw-r--r--freetype/src/base/ftbbox.c2
-rw-r--r--freetype/src/base/ftbdf.c2
-rw-r--r--freetype/src/base/ftbitmap.c10
-rw-r--r--freetype/src/base/ftcalc.c18
-rw-r--r--freetype/src/base/ftcid.c2
-rw-r--r--freetype/src/base/ftcolor.c2
-rw-r--r--freetype/src/base/ftdbgmem.c94
-rw-r--r--freetype/src/base/ftdebug.c334
-rw-r--r--freetype/src/base/fterrors.c2
-rw-r--r--freetype/src/base/ftfntfmt.c2
-rw-r--r--freetype/src/base/ftfstype.c2
-rw-r--r--freetype/src/base/ftgasp.c2
-rw-r--r--freetype/src/base/ftgloadr.c2
-rw-r--r--freetype/src/base/ftglyph.c20
-rw-r--r--freetype/src/base/ftgxval.c2
-rw-r--r--freetype/src/base/ftinit.c10
-rw-r--r--freetype/src/base/ftlcdfil.c10
-rw-r--r--freetype/src/base/ftmac.c8
-rw-r--r--freetype/src/base/ftmm.c2
-rw-r--r--freetype/src/base/ftobjs.c349
-rw-r--r--freetype/src/base/ftotval.c2
-rw-r--r--freetype/src/base/ftoutln.c2
-rw-r--r--freetype/src/base/ftpatent.c2
-rw-r--r--freetype/src/base/ftpfr.c2
-rw-r--r--freetype/src/base/ftpsprop.c6
-rw-r--r--freetype/src/base/ftrfork.c28
-rw-r--r--freetype/src/base/ftsnames.c6
-rw-r--r--freetype/src/base/ftstream.c85
-rw-r--r--freetype/src/base/ftstroke.c47
-rw-r--r--freetype/src/base/ftsynth.c2
-rw-r--r--freetype/src/base/ftsystem.c4
-rw-r--r--freetype/src/base/fttrigon.c8
-rw-r--r--freetype/src/base/fttype1.c2
-rw-r--r--freetype/src/base/ftutil.c2
-rw-r--r--freetype/src/base/ftver.rc8
-rw-r--r--freetype/src/base/ftwinfnt.c2
-rw-r--r--freetype/src/base/rules.mk2
-rw-r--r--freetype/src/bdf/bdfdrivr.c10
-rw-r--r--freetype/src/bdf/bdflib.c190
-rw-r--r--freetype/src/bzip2/ftbzip2.c11
-rw-r--r--freetype/src/bzip2/rules.mk2
-rw-r--r--freetype/src/cache/ftcache.c2
-rw-r--r--freetype/src/cache/ftcbasic.c12
-rw-r--r--freetype/src/cache/ftccache.c26
-rw-r--r--freetype/src/cache/ftccache.h4
-rw-r--r--freetype/src/cache/ftccback.h2
-rw-r--r--freetype/src/cache/ftccmap.c9
-rw-r--r--freetype/src/cache/ftcerror.h2
-rw-r--r--freetype/src/cache/ftcglyph.c2
-rw-r--r--freetype/src/cache/ftcglyph.h2
-rw-r--r--freetype/src/cache/ftcimage.c2
-rw-r--r--freetype/src/cache/ftcimage.h2
-rw-r--r--freetype/src/cache/ftcmanag.c12
-rw-r--r--freetype/src/cache/ftcmanag.h2
-rw-r--r--freetype/src/cache/ftcmru.c4
-rw-r--r--freetype/src/cache/ftcmru.h2
-rw-r--r--freetype/src/cache/ftcsbits.c37
-rw-r--r--freetype/src/cache/ftcsbits.h2
-rw-r--r--freetype/src/cache/rules.mk2
-rw-r--r--freetype/src/cff/cff.c2
-rw-r--r--freetype/src/cff/cffcmap.c2
-rw-r--r--freetype/src/cff/cffcmap.h2
-rw-r--r--freetype/src/cff/cffdrivr.c24
-rw-r--r--freetype/src/cff/cffdrivr.h2
-rw-r--r--freetype/src/cff/cfferrs.h2
-rw-r--r--freetype/src/cff/cffgload.c6
-rw-r--r--freetype/src/cff/cffgload.h2
-rw-r--r--freetype/src/cff/cffload.c110
-rw-r--r--freetype/src/cff/cffload.h2
-rw-r--r--freetype/src/cff/cffobjs.c31
-rw-r--r--freetype/src/cff/cffobjs.h2
-rw-r--r--freetype/src/cff/cffparse.c12
-rw-r--r--freetype/src/cff/cffparse.h2
-rw-r--r--freetype/src/cff/cfftoken.h2
-rw-r--r--freetype/src/cff/module.mk2
-rw-r--r--freetype/src/cff/rules.mk2
-rw-r--r--freetype/src/cid/ciderrs.h2
-rw-r--r--freetype/src/cid/cidgload.c42
-rw-r--r--freetype/src/cid/cidgload.h2
-rw-r--r--freetype/src/cid/cidload.c126
-rw-r--r--freetype/src/cid/cidload.h4
-rw-r--r--freetype/src/cid/cidobjs.c17
-rw-r--r--freetype/src/cid/cidobjs.h2
-rw-r--r--freetype/src/cid/cidparse.c8
-rw-r--r--freetype/src/cid/cidparse.h4
-rw-r--r--freetype/src/cid/cidriver.c2
-rw-r--r--freetype/src/cid/cidriver.h2
-rw-r--r--freetype/src/cid/cidtoken.h2
-rw-r--r--freetype/src/cid/module.mk2
-rw-r--r--freetype/src/cid/rules.mk2
-rw-r--r--freetype/src/cid/type1cid.c2
-rw-r--r--freetype/src/dlg/dlg.c803
-rw-r--r--freetype/src/dlg/dlgwrap.c32
-rw-r--r--freetype/src/dlg/rules.mk70
-rw-r--r--freetype/src/gxvalid/README2
-rw-r--r--freetype/src/gxvalid/gxvalid.c2
-rw-r--r--freetype/src/gxvalid/gxvalid.h2
-rw-r--r--freetype/src/gxvalid/gxvbsln.c2
-rw-r--r--freetype/src/gxvalid/gxvcommn.c59
-rw-r--r--freetype/src/gxvalid/gxvcommn.h37
-rw-r--r--freetype/src/gxvalid/gxverror.h2
-rw-r--r--freetype/src/gxvalid/gxvfeat.c4
-rw-r--r--freetype/src/gxvalid/gxvfeat.h2
-rw-r--r--freetype/src/gxvalid/gxvfgen.c2
-rw-r--r--freetype/src/gxvalid/gxvjust.c23
-rw-r--r--freetype/src/gxvalid/gxvkern.c14
-rw-r--r--freetype/src/gxvalid/gxvlcar.c2
-rw-r--r--freetype/src/gxvalid/gxvmod.c50
-rw-r--r--freetype/src/gxvalid/gxvmod.h2
-rw-r--r--freetype/src/gxvalid/gxvmort.c4
-rw-r--r--freetype/src/gxvalid/gxvmort.h2
-rw-r--r--freetype/src/gxvalid/gxvmort0.c2
-rw-r--r--freetype/src/gxvalid/gxvmort1.c2
-rw-r--r--freetype/src/gxvalid/gxvmort2.c14
-rw-r--r--freetype/src/gxvalid/gxvmort4.c2
-rw-r--r--freetype/src/gxvalid/gxvmort5.c4
-rw-r--r--freetype/src/gxvalid/gxvmorx.c8
-rw-r--r--freetype/src/gxvalid/gxvmorx.h2
-rw-r--r--freetype/src/gxvalid/gxvmorx0.c2
-rw-r--r--freetype/src/gxvalid/gxvmorx1.c2
-rw-r--r--freetype/src/gxvalid/gxvmorx2.c30
-rw-r--r--freetype/src/gxvalid/gxvmorx4.c2
-rw-r--r--freetype/src/gxvalid/gxvmorx5.c2
-rw-r--r--freetype/src/gxvalid/gxvopbd.c4
-rw-r--r--freetype/src/gxvalid/gxvprop.c6
-rw-r--r--freetype/src/gxvalid/gxvtrak.c6
-rw-r--r--freetype/src/gxvalid/module.mk2
-rw-r--r--freetype/src/gxvalid/rules.mk2
-rw-r--r--freetype/src/gzip/ftgzip.c42
-rw-r--r--freetype/src/gzip/rules.mk2
-rw-r--r--freetype/src/lzw/ftlzw.c4
-rw-r--r--freetype/src/lzw/ftzopen.c9
-rw-r--r--freetype/src/lzw/ftzopen.h2
-rw-r--r--freetype/src/lzw/rules.mk2
-rw-r--r--freetype/src/otvalid/module.mk2
-rw-r--r--freetype/src/otvalid/otvalid.c2
-rw-r--r--freetype/src/otvalid/otvalid.h2
-rw-r--r--freetype/src/otvalid/otvbase.c2
-rw-r--r--freetype/src/otvalid/otvcommn.c2
-rw-r--r--freetype/src/otvalid/otvcommn.h40
-rw-r--r--freetype/src/otvalid/otverror.h2
-rw-r--r--freetype/src/otvalid/otvgdef.c2
-rw-r--r--freetype/src/otvalid/otvgpos.c2
-rw-r--r--freetype/src/otvalid/otvgpos.h2
-rw-r--r--freetype/src/otvalid/otvgsub.c2
-rw-r--r--freetype/src/otvalid/otvjstf.c2
-rw-r--r--freetype/src/otvalid/otvmath.c4
-rw-r--r--freetype/src/otvalid/otvmod.c6
-rw-r--r--freetype/src/otvalid/otvmod.h2
-rw-r--r--freetype/src/otvalid/rules.mk2
-rw-r--r--freetype/src/pcf/pcfdrivr.c6
-rw-r--r--freetype/src/pcf/pcfread.c85
-rw-r--r--freetype/src/pfr/module.mk2
-rw-r--r--freetype/src/pfr/pfr.c2
-rw-r--r--freetype/src/pfr/pfrcmap.c2
-rw-r--r--freetype/src/pfr/pfrcmap.h2
-rw-r--r--freetype/src/pfr/pfrdrivr.c2
-rw-r--r--freetype/src/pfr/pfrdrivr.h2
-rw-r--r--freetype/src/pfr/pfrerror.h2
-rw-r--r--freetype/src/pfr/pfrgload.c2
-rw-r--r--freetype/src/pfr/pfrgload.h2
-rw-r--r--freetype/src/pfr/pfrload.c10
-rw-r--r--freetype/src/pfr/pfrload.h2
-rw-r--r--freetype/src/pfr/pfrobjs.c8
-rw-r--r--freetype/src/pfr/pfrobjs.h2
-rw-r--r--freetype/src/pfr/pfrsbit.c10
-rw-r--r--freetype/src/pfr/pfrsbit.h2
-rw-r--r--freetype/src/pfr/pfrtypes.h4
-rw-r--r--freetype/src/pfr/rules.mk2
-rw-r--r--freetype/src/psaux/afmparse.c130
-rw-r--r--freetype/src/psaux/afmparse.h2
-rw-r--r--freetype/src/psaux/cffdecode.c33
-rw-r--r--freetype/src/psaux/cffdecode.h2
-rw-r--r--freetype/src/psaux/module.mk2
-rw-r--r--freetype/src/psaux/psarrst.c7
-rw-r--r--freetype/src/psaux/psarrst.h1
-rw-r--r--freetype/src/psaux/psaux.c2
-rw-r--r--freetype/src/psaux/psauxerr.h2
-rw-r--r--freetype/src/psaux/psauxmod.c2
-rw-r--r--freetype/src/psaux/psauxmod.h2
-rw-r--r--freetype/src/psaux/psblues.c3
-rw-r--r--freetype/src/psaux/psconv.c2
-rw-r--r--freetype/src/psaux/psconv.h2
-rw-r--r--freetype/src/psaux/psft.c6
-rw-r--r--freetype/src/psaux/pshints.c60
-rw-r--r--freetype/src/psaux/psintrp.c57
-rw-r--r--freetype/src/psaux/psintrp.h2
-rw-r--r--freetype/src/psaux/psobjs.c26
-rw-r--r--freetype/src/psaux/psobjs.h2
-rw-r--r--freetype/src/psaux/psstack.c8
-rw-r--r--freetype/src/psaux/rules.mk2
-rw-r--r--freetype/src/psaux/t1cmap.c2
-rw-r--r--freetype/src/psaux/t1cmap.h2
-rw-r--r--freetype/src/psaux/t1decode.c33
-rw-r--r--freetype/src/psaux/t1decode.h2
-rw-r--r--freetype/src/pshinter/module.mk2
-rw-r--r--freetype/src/pshinter/pshalgo.c100
-rw-r--r--freetype/src/pshinter/pshalgo.h32
-rw-r--r--freetype/src/pshinter/pshglob.c2
-rw-r--r--freetype/src/pshinter/pshglob.h2
-rw-r--r--freetype/src/pshinter/pshinter.c2
-rw-r--r--freetype/src/pshinter/pshmod.c2
-rw-r--r--freetype/src/pshinter/pshmod.h2
-rw-r--r--freetype/src/pshinter/pshnterr.h2
-rw-r--r--freetype/src/pshinter/pshrec.c19
-rw-r--r--freetype/src/pshinter/pshrec.h2
-rw-r--r--freetype/src/pshinter/rules.mk2
-rw-r--r--freetype/src/psnames/module.mk2
-rw-r--r--freetype/src/psnames/psmodule.c42
-rw-r--r--freetype/src/psnames/psmodule.h2
-rw-r--r--freetype/src/psnames/psnamerr.h2
-rw-r--r--freetype/src/psnames/psnames.c2
-rw-r--r--freetype/src/psnames/pstables.h2
-rw-r--r--freetype/src/psnames/rules.mk2
-rw-r--r--freetype/src/raster/ftmisc.h9
-rw-r--r--freetype/src/raster/ftraster.c323
-rw-r--r--freetype/src/raster/ftraster.h2
-rw-r--r--freetype/src/raster/ftrend1.c2
-rw-r--r--freetype/src/raster/ftrend1.h2
-rw-r--r--freetype/src/raster/module.mk2
-rw-r--r--freetype/src/raster/raster.c2
-rw-r--r--freetype/src/raster/rasterrs.h2
-rw-r--r--freetype/src/raster/rules.mk2
-rw-r--r--freetype/src/sdf/ftbsdf.c1347
-rw-r--r--freetype/src/sdf/ftsdf.c3872
-rw-r--r--freetype/src/sdf/ftsdf.h97
-rw-r--r--freetype/src/sdf/ftsdfcommon.c147
-rw-r--r--freetype/src/sdf/ftsdfcommon.h139
-rw-r--r--freetype/src/sdf/ftsdferrs.h37
-rw-r--r--freetype/src/sdf/ftsdfrend.c614
-rw-r--r--freetype/src/sdf/ftsdfrend.h118
-rw-r--r--freetype/src/sdf/module.mk29
-rw-r--r--freetype/src/sdf/rules.mk78
-rw-r--r--freetype/src/sdf/sdf.c29
-rw-r--r--freetype/src/sfnt/module.mk2
-rw-r--r--freetype/src/sfnt/pngshim.c13
-rw-r--r--freetype/src/sfnt/pngshim.h2
-rw-r--r--freetype/src/sfnt/rules.mk2
-rw-r--r--freetype/src/sfnt/sfdriver.c43
-rw-r--r--freetype/src/sfnt/sfdriver.h2
-rw-r--r--freetype/src/sfnt/sferrors.h2
-rw-r--r--freetype/src/sfnt/sfnt.c2
-rw-r--r--freetype/src/sfnt/sfobjs.c39
-rw-r--r--freetype/src/sfnt/sfobjs.h2
-rw-r--r--freetype/src/sfnt/sfwoff.c35
-rw-r--r--freetype/src/sfnt/sfwoff.h5
-rw-r--r--freetype/src/sfnt/sfwoff2.c76
-rw-r--r--freetype/src/sfnt/sfwoff2.h4
-rw-r--r--freetype/src/sfnt/ttbdf.c2
-rw-r--r--freetype/src/sfnt/ttbdf.h2
-rw-r--r--freetype/src/sfnt/ttcmap.c12
-rw-r--r--freetype/src/sfnt/ttcmap.h2
-rw-r--r--freetype/src/sfnt/ttcmapc.h2
-rw-r--r--freetype/src/sfnt/ttcolr.c877
-rw-r--r--freetype/src/sfnt/ttcolr.h28
-rw-r--r--freetype/src/sfnt/ttcpal.c2
-rw-r--r--freetype/src/sfnt/ttcpal.h2
-rw-r--r--freetype/src/sfnt/ttkern.c2
-rw-r--r--freetype/src/sfnt/ttkern.h2
-rw-r--r--freetype/src/sfnt/ttload.c89
-rw-r--r--freetype/src/sfnt/ttload.h2
-rw-r--r--freetype/src/sfnt/ttmtx.c2
-rw-r--r--freetype/src/sfnt/ttmtx.h2
-rw-r--r--freetype/src/sfnt/ttpost.c111
-rw-r--r--freetype/src/sfnt/ttpost.h2
-rw-r--r--freetype/src/sfnt/ttsbit.c22
-rw-r--r--freetype/src/sfnt/ttsbit.h2
-rw-r--r--freetype/src/sfnt/woff2tags.c16
-rw-r--r--freetype/src/sfnt/woff2tags.h8
-rw-r--r--freetype/src/smooth/ftgrays.c827
-rw-r--r--freetype/src/smooth/ftgrays.h2
-rw-r--r--freetype/src/smooth/ftsmerrs.h2
-rw-r--r--freetype/src/smooth/ftsmooth.c2
-rw-r--r--freetype/src/smooth/ftsmooth.h2
-rw-r--r--freetype/src/smooth/module.mk2
-rw-r--r--freetype/src/smooth/rules.mk2
-rw-r--r--freetype/src/smooth/smooth.c2
-rw-r--r--freetype/src/tools/afblue.pl2
-rw-r--r--freetype/src/tools/apinames.c22
-rwxr-xr-xfreetype/src/tools/chktrcmp.py4
-rw-r--r--freetype/src/tools/ftrandom/ftrandom.c2
-rw-r--r--freetype/src/tools/glnames.py2
-rw-r--r--freetype/src/tools/no-copyright4
-rwxr-xr-xfreetype/src/tools/update-copyright-year65
-rw-r--r--freetype/src/truetype/module.mk2
-rw-r--r--freetype/src/truetype/rules.mk2
-rw-r--r--freetype/src/truetype/truetype.c2
-rw-r--r--freetype/src/truetype/ttdriver.c18
-rw-r--r--freetype/src/truetype/ttdriver.h2
-rw-r--r--freetype/src/truetype/tterrors.h2
-rw-r--r--freetype/src/truetype/ttgload.c69
-rw-r--r--freetype/src/truetype/ttgload.h2
-rw-r--r--freetype/src/truetype/ttgxvar.c304
-rw-r--r--freetype/src/truetype/ttgxvar.h8
-rw-r--r--freetype/src/truetype/ttinterp.c192
-rw-r--r--freetype/src/truetype/ttinterp.h97
-rw-r--r--freetype/src/truetype/ttobjs.c92
-rw-r--r--freetype/src/truetype/ttobjs.h2
-rw-r--r--freetype/src/truetype/ttpload.c83
-rw-r--r--freetype/src/truetype/ttpload.h2
-rw-r--r--freetype/src/truetype/ttsubpix.c8
-rw-r--r--freetype/src/truetype/ttsubpix.h2
-rw-r--r--freetype/src/type1/module.mk2
-rw-r--r--freetype/src/type1/rules.mk2
-rw-r--r--freetype/src/type1/t1afm.c4
-rw-r--r--freetype/src/type1/t1afm.h2
-rw-r--r--freetype/src/type1/t1driver.c2
-rw-r--r--freetype/src/type1/t1driver.h2
-rw-r--r--freetype/src/type1/t1errors.h2
-rw-r--r--freetype/src/type1/t1gload.c4
-rw-r--r--freetype/src/type1/t1gload.h2
-rw-r--r--freetype/src/type1/t1load.c112
-rw-r--r--freetype/src/type1/t1load.h2
-rw-r--r--freetype/src/type1/t1objs.c16
-rw-r--r--freetype/src/type1/t1objs.h2
-rw-r--r--freetype/src/type1/t1parse.c10
-rw-r--r--freetype/src/type1/t1parse.h2
-rw-r--r--freetype/src/type1/t1tokens.h2
-rw-r--r--freetype/src/type1/type1.c2
-rw-r--r--freetype/src/type42/module.mk2
-rw-r--r--freetype/src/type42/rules.mk2
-rw-r--r--freetype/src/type42/t42drivr.c2
-rw-r--r--freetype/src/type42/t42drivr.h2
-rw-r--r--freetype/src/type42/t42error.h2
-rw-r--r--freetype/src/type42/t42objs.c18
-rw-r--r--freetype/src/type42/t42objs.h2
-rw-r--r--freetype/src/type42/t42parse.c31
-rw-r--r--freetype/src/type42/t42parse.h2
-rw-r--r--freetype/src/type42/t42types.h2
-rw-r--r--freetype/src/type42/type42.c2
-rw-r--r--freetype/src/winfonts/fnterrs.h2
-rw-r--r--freetype/src/winfonts/module.mk2
-rw-r--r--freetype/src/winfonts/rules.mk2
-rw-r--r--freetype/src/winfonts/winfnt.c32
-rw-r--r--freetype/src/winfonts/winfnt.h2
-rw-r--r--freetype/tests/README.md22
-rw-r--r--freetype/tests/issue-1063/main.c48
-rw-r--r--freetype/tests/meson.build14
-rwxr-xr-xfreetype/tests/scripts/download-test-fonts.py302
-rw-r--r--freetype/vms_make.com2
-rw-r--r--lib/gslp.ps20
-rw-r--r--lib/gssetgs.bat2
-rw-r--r--lib/viewjpeg.ps2
-rw-r--r--man/dvipdf.14
-rw-r--r--man/gs.14
-rw-r--r--man/gslp.14
-rw-r--r--man/gsnd.14
-rw-r--r--man/pdf2dsc.14
-rw-r--r--man/pdf2ps.14
-rw-r--r--man/pf2afm.14
-rw-r--r--man/pfbtopfa.14
-rw-r--r--man/printafm.14
-rw-r--r--man/ps2ascii.14
-rw-r--r--man/ps2epsi.14
-rw-r--r--man/ps2pdf.14
-rw-r--r--man/ps2pdfwr.14
-rw-r--r--man/ps2ps.14
-rw-r--r--pdf/ghostpdf.c283
-rw-r--r--pdf/ghostpdf.h141
-rw-r--r--pdf/pdf.mak113
-rw-r--r--pdf/pdf_annot.c215
-rw-r--r--pdf/pdf_array.c31
-rw-r--r--pdf/pdf_array.h17
-rw-r--r--pdf/pdf_check.c92
-rw-r--r--pdf/pdf_cmap.c93
-rw-r--r--pdf/pdf_colour.c397
-rw-r--r--pdf/pdf_colour.h45
-rw-r--r--pdf/pdf_deref.c248
-rw-r--r--pdf/pdf_deref.h4
-rw-r--r--pdf/pdf_device.c6
-rw-r--r--pdf/pdf_dict.c516
-rw-r--r--pdf/pdf_dict.h19
-rw-r--r--pdf/pdf_doc.c201
-rw-r--r--pdf/pdf_errors.h56
-rw-r--r--pdf/pdf_fapi.c82
-rw-r--r--pdf/pdf_file.c175
-rw-r--r--pdf/pdf_file.h6
-rw-r--r--pdf/pdf_fmap.c948
-rw-r--r--pdf/pdf_fmap.h8
-rw-r--r--pdf/pdf_font.c494
-rw-r--r--pdf/pdf_font.h1
-rw-r--r--pdf/pdf_font0.c100
-rw-r--r--pdf/pdf_font0.h2
-rw-r--r--pdf/pdf_font1.c42
-rw-r--r--pdf/pdf_font11.c56
-rw-r--r--pdf/pdf_font1C.c746
-rw-r--r--pdf/pdf_font3.c42
-rw-r--r--pdf/pdf_fontTT.c46
-rw-r--r--pdf/pdf_fontTT.h2
-rw-r--r--pdf/pdf_fontps.c1013
-rw-r--r--pdf/pdf_fontps.h5
-rw-r--r--pdf/pdf_func.c72
-rw-r--r--pdf/pdf_gstate.c114
-rw-r--r--pdf/pdf_gstate.h3
-rw-r--r--pdf/pdf_image.c253
-rw-r--r--pdf/pdf_int.c858
-rw-r--r--pdf/pdf_loop_detect.c4
-rw-r--r--pdf/pdf_mark.c166
-rw-r--r--pdf/pdf_mark.h23
-rw-r--r--pdf/pdf_misc.c4
-rw-r--r--pdf/pdf_obj.c73
-rw-r--r--pdf/pdf_optcontent.c169
-rw-r--r--pdf/pdf_optcontent.h2
-rw-r--r--pdf/pdf_page.c97
-rw-r--r--pdf/pdf_path.c49
-rw-r--r--pdf/pdf_pattern.c47
-rw-r--r--pdf/pdf_repair.c80
-rw-r--r--pdf/pdf_sec.c147
-rw-r--r--pdf/pdf_shading.c21
-rw-r--r--pdf/pdf_text.c30
-rw-r--r--pdf/pdf_trans.c103
-rw-r--r--pdf/pdf_trans.h4
-rw-r--r--pdf/pdf_types.h31
-rw-r--r--pdf/pdf_warnings.h62
-rw-r--r--pdf/pdf_xref.c156
-rw-r--r--pdf/pdfromfs.mak2
-rw-r--r--pdf/pdftop.c71
-rw-r--r--psi/bfont.h2
-rw-r--r--psi/dmmain.c6
-rw-r--r--psi/dpmain.c52
-rw-r--r--psi/dscparse.c8
-rw-r--r--psi/iapi.c51
-rw-r--r--psi/iapi.h15
-rw-r--r--psi/idebug.c4
-rw-r--r--psi/idict.c4
-rw-r--r--psi/idstack.c6
-rw-r--r--psi/igc.c3
-rw-r--r--psi/igcstr.c29
-rw-r--r--psi/imain.c2
-rw-r--r--psi/imainarg.c7
-rw-r--r--psi/interp.c7
-rw-r--r--psi/iparam.c4
-rw-r--r--psi/iref.h8
-rw-r--r--psi/iscan.c27
-rw-r--r--psi/iscan.h16
-rw-r--r--psi/iutil.c29
-rw-r--r--psi/iutil2.c4
-rw-r--r--psi/msvc.mak153
-rw-r--r--psi/nsisinst.nsi37
-rw-r--r--psi/os2.mak4
-rw-r--r--psi/psapi.c27
-rw-r--r--psi/winint.mak4
-rw-r--r--psi/zbfont.c11
-rw-r--r--psi/zcolor.c3
-rw-r--r--psi/zdevice.c152
-rw-r--r--psi/zdouble.c10
-rw-r--r--psi/zfapi.c25
-rw-r--r--psi/zfarc4.c3
-rw-r--r--psi/zfile.c17
-rw-r--r--psi/zfont2.c4
-rw-r--r--psi/zht.c4
-rw-r--r--psi/zpcolor.c4
-rw-r--r--psi/zpdfops.c690
-rw-r--r--toolbin/bmpcmp.c83
-rw-r--r--toolbin/encs2c.ps26
-rwxr-xr-xtoolbin/localcluster/clusterpush.pl10
-rw-r--r--windows/ghostpdf.vcproj28
-rw-r--r--windows/ghostpdf.vcxproj31
-rw-r--r--windows/ghostpdf.vcxproj.filters9
-rw-r--r--windows/ghostscript.vcxproj5
-rw-r--r--windows/ghostscript.vcxproj.filters22
1497 files changed, 201359 insertions, 66616 deletions
diff --git a/Makefile.in b/Makefile.in
index bb655433..ff786e2b 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -1,4 +1,4 @@
-# Copyright (C) 2001-2021 Artifex Software, Inc.
+# Copyright (C) 2001-2022 Artifex Software, Inc.
# All Rights Reserved.
#
# This software is provided AS-IS with no warranty, either express or
@@ -381,6 +381,7 @@ CUPSPDFTORASTER=@CUPSPDFTORASTER@
SHARE_LCUPS=@SHARELCUPS@
LCUPS_NAME=cups
LCUPSSRCDIR=@CUPS_DIR@
+LIBCUPSSRCDIR=@LIB_CUPS_DIR@
LCUPSBUILDTYPE=@LCUPSBUILDTYPE@
CUPS_CC=$(CC)
diff --git a/Resource/Init/Fontmap.GS b/Resource/Init/Fontmap.GS
index b6fce711..65598343 100644
--- a/Resource/Init/Fontmap.GS
+++ b/Resource/Init/Fontmap.GS
@@ -82,7 +82,11 @@
% as well as with PostScript interpreters; .gsf fonts are compatible with
% PostScript interpreters, but not with ATM or similar programs.
-%
+% NOTE: (as of 9.56.0) The use of Postscript operators in the cidfmap file is now deprecated, for
+% compatibility with (and security of) the PDF interpreter implemented in C (rather than Postscript).
+% Thus operations such as "getenv", "cvn" and ".concatstrings" are no longer supported.
+
+%
%
% Fonts contributed by:
% URW++ Design and Development Incorporated
diff --git a/Resource/Init/cidfmap b/Resource/Init/cidfmap
index bed221ac..df9b6250 100644
--- a/Resource/Init/cidfmap
+++ b/Resource/Init/cidfmap
@@ -36,10 +36,11 @@
%
% /ShinGo-Bold /HeiseiKakuGo-W5 ;
% /Ryumin-Medium << /FileType /TrueType /Path (H:/AuxFiles/Fonts/BATANG.TTC) /SubfontID 3 /CSI [(Japan1) 2] >> ;
-% /Ryumin-Medium << /FileType /TrueType /Path (windir) getenv not {(c:/windows)}if (/Fonts/BATANG.TTC)concatstrings /SubfontID 3 /CSI [(Japan1) 2] >> ;
+% /Ryumin-Medium << /FileType /TrueType /Path (c:/windows/Fonts/BATANG.TTC) /SubfontID 3 /CSI [(Japan1) 2] >> ;
%
-% NOTE: getenv returns a boolean to indicate success of or failure, as well as the value on success. In the example, it uses this
-% to include a default value should getenv fail.
+% NOTE: (as of 9.56.0) The use of Postscript operators in the cidfmap file is now deprecated, for compatibility
+% with (and security of) the PDF interpreter implemented in C (rather than Postscript). Thus operations such
+% as "getenv", "cvn" and ".concatstrings" are no longer supported.
%
% (Century Gothic) << /FileType /TrueType /Path (/usr/share/fonts/truetype/fonts-japanese-gothic.ttf) /CSI [(Identity) 1] >> ;
%
diff --git a/Resource/Init/gs_dps1.ps b/Resource/Init/gs_dps1.ps
index ba5b9b54..50d9bfb7 100644
--- a/Resource/Init/gs_dps1.ps
+++ b/Resource/Init/gs_dps1.ps
@@ -95,7 +95,7 @@ level2dict begin
if
}
ifelse pop
- } odef
+ } .bind odef
% If we load a font into global VM within an inner save, the restore
% will delete it from FontDirectory but not from SharedFontDirectory.
diff --git a/Resource/Init/gs_fonts.ps b/Resource/Init/gs_fonts.ps
index f1e26b09..aaee616f 100644
--- a/Resource/Init/gs_fonts.ps
+++ b/Resource/Init/gs_fonts.ps
@@ -429,6 +429,11 @@ FONTPATH
%END FONTPATH
+/FONTMAP where
+{
+ dup /FONTMAP get /FONTMAP exch [ exch //.pathlist exec] put
+} if
+
% Try to enumerate native fonts registered with the os
% and add them to the fontmap. This relies on a custom
% operator which calls platform-specific C code. It
@@ -1315,7 +1320,7 @@ FAKEFONTS { exch } if pop def % don't bind, .current/setglobal get redefined
/.loadinitialfonts
{ NOFONTMAP not
{ /FONTMAP where
- { pop [ FONTMAP //.pathlist exec]
+ { pop FONTMAP
{ dup VMDEBUG findlibfile
{ exch pop //.loadFontmap exec }
{ /undefinedfilename signalerror }
diff --git a/Resource/Init/gs_init.ps b/Resource/Init/gs_init.ps
index e3d65eca..3bf729d7 100644
--- a/Resource/Init/gs_init.ps
+++ b/Resource/Init/gs_init.ps
@@ -34,7 +34,7 @@
% Interpreter library version number
% NOTE: the interpreter code requires that the first non-comment token
% in this file be an integer, and that it match the compiled-in version!
-9550
+9560
% Check the interpreter revision.
dup revision ne
@@ -2464,7 +2464,6 @@ currentdict /.locksafeglobal .undef
/.init_otto_font_file
/.composefontdict
/.type1build
- /.origdefinefont /.origundefinefont /.origfindfont
/.buildnativefontmap
/.completefont
/.definefakefonts
diff --git a/Resource/Init/gs_pdfwr.ps b/Resource/Init/gs_pdfwr.ps
index ef468522..7945a322 100644
--- a/Resource/Init/gs_pdfwr.ps
+++ b/Resource/Init/gs_pdfwr.ps
@@ -691,13 +691,33 @@ currentdict /.pdf_hook_DSC_Creator undef
pop
3000 % priority
{
- currentglobal //true setglobal
- 2 dict dup .initialize_dsc_parser readonly
- currentuserparams /ProcessDSCComment get
- 1 array astore % in case the value is executable
- //.pdfdsc /exec load 4 array astore cvx readonly
- << /ProcessDSCComment 3 -1 roll >> setuserparams
- setglobal
+ % When running gpdl, due to the way gpdl has to do job encapsulation
+ % the scheduled initialisation procedures get run at the start of each
+ % job. Because this patches the existing procedure, it could end up
+ % patching itself, so the procedure got larger/deeper with each job.
+ % Eventually, copying the user params (see /.setuserparams2 in gs_lev2.ps)
+ % would end up overflowing the exec stack.
+ % So, as part of the patching, we push and pop a sacrificial name object
+ % at the start of the executable array and before patching, we check that
+ % first element, and if it is that name, we skip the patching
+ currentuserparams /ProcessDSCComment .knownget
+ {
+ dup type /arraytype eq
+ {
+ 0 get /.pdf_hook_DSC_Creator eq
+ { //false } { //true } ifelse
+ } { //true } ifelse
+ } { //true } ifelse
+
+ {
+ currentglobal //true setglobal
+ 2 dict dup .initialize_dsc_parser readonly
+ currentuserparams /ProcessDSCComment get
+ 1 array astore % in case the value is executable
+ /.pdf_hook_DSC_Creator /pop load 4 2 roll //.pdfdsc /exec load 6 array astore cvx readonly
+ << /ProcessDSCComment 3 -1 roll >> setuserparams
+ setglobal
+ } if
} bind .schedule_init
} if
diff --git a/Resource/Init/gs_res.ps b/Resource/Init/gs_res.ps
index c531b366..7316e32e 100644
--- a/Resource/Init/gs_res.ps
+++ b/Resource/Init/gs_res.ps
@@ -1054,15 +1054,6 @@ currentdict /.fontstatusaux .undef
//.definefontmap exec
} bind def
-% Make sure the old definitions are still in systemdict so that
-% they will get bound properly.
-% NOTE: Mystery code... I can't just delete this, but don't understand why.
-% Instead we will undef these three operators in gs_init.ps after all the initialization is done.
- systemdict begin
- /.origdefinefont /definefont load def
- /.origundefinefont /undefinefont load def
- /.origfindfont /findfont load def
-end
/definefont {
{ /Font defineresource } stopped {
/definefont cvx $error /errorname get signalerror
diff --git a/Resource/Init/pdf_base.ps b/Resource/Init/pdf_base.ps
index 2453b6bc..87b9650d 100644
--- a/Resource/Init/pdf_base.ps
+++ b/Resource/Init/pdf_base.ps
@@ -1401,15 +1401,23 @@ currentdict /pdf_rules_dict undef
} bind executeonly def
/.leafget { % <key> <pairs> .leafget <obj|null>
- dup length 2 eq {
- dup 0 get 2 index eq { 1 oget } { pop //null } ifelse
- exch pop
- } {
- dup length -1 bitshift -2 and 2 copy oget
- % Stack: key pairs mid pairs[mid]
- 3 index gt { 0 exch } { 1 index length 1 index sub } ifelse
- getinterval .leafget
- } ifelse
+ null % <key> [pairs] null
+ 0 2 3 index length 1 sub % <key> [pairs] null 0 2 length([pairs])
+ { % <key> [pairs] null index
+ 2 index % <key> [pairs] null index [pairs]
+ exch % <key> [pairs] null [pairs] index
+ 2 getinterval % <key> [pairs] null [<key1> <value>]
+ dup 0 get % <key> [pairs] null [<key1> <value>] <key1>
+ 4 index % <key> [pairs] null [<key1> <value>] <key1> <key>
+ eq
+ { % <key> [pairs] null [<key1> <value>]
+ exch pop 1 oget exit % <key> [pairs] <obj>
+ } {
+ pop % <key> [pairs] null
+ }ifelse
+ } for
+ % <key> [pairs] <obj|null>
+ 3 1 roll pop pop % <obj|null>
} bind executeonly def
% The following variants return tree entry whose key is closest but
diff --git a/Resource/Init/pdf_draw.ps b/Resource/Init/pdf_draw.ps
index 6ee8f7e7..691a8bd6 100644
--- a/Resource/Init/pdf_draw.ps
+++ b/Resource/Init/pdf_draw.ps
@@ -1,4 +1,4 @@
-% Copyright (C) 2001-2021 Artifex Software, Inc.
+% Copyright (C) 2001-2022 Artifex Software, Inc.
% All Rights Reserved.
%
% This software is provided AS-IS with no warranty, either express or
@@ -366,12 +366,21 @@ drawopdict begin
/q { q } executeonly def
/Q { Q } executeonly def
% Graphics state setting
- /cm { //cmmatrix astore
+ /cm {
+ //cmmatrix astore
+ % If inside a BT/ET block, we need to undo the text matrix, then apply
+ % the cm, then re-apply the text matrix :-( Of course the spec says
+ % this isn't even legal.
+ currentdict /TextSaveMatrix .knownget {
+ pop
+ unsettextmatrix
+ } if
.getpath
exch concat
newpath { exec } forall
% If inside a BT/ET block, we need to update the TextSaveMatrix
currentdict /TextSaveMatrix .knownget {
+ settextmatrix
//cmmatrix exch dup concatmatrix pop
} if
% And if we ha\ve done a gsave inside a text block, we need to update
@@ -1198,41 +1207,90 @@ currentdict end readonly def
%% finished running the PaintProc.
/.actual_pdfpaintproc { % <patdict> <resdict> .pdfpaintproc -
- PDFDEBUG { //pdfdict /PDFSTEPcount .knownget { 1 le } { //true } ifelse { (%Begin PaintProc) print dup === flush } if } if
- PDFfile fileposition 3 1 roll
- q
- 1 index /PaintType oget 1 eq {
- % For colored patterns, set default fill and stroke colors.
- 0 g 0 G
- } {
- % For uncolored patterns, we have to unbind the current
- % color and color space before running the PaintProc.
- % Not true since moving the ExtGState parameters into the gstate.
- % //null sc1 //null SC1
+ % Check the object number of the pattern, from the pattern dictionary. Somehow
+ % there is a means to get here with no object number set, I have no idea how
+ % but this solves the immediate problem. Hopefully good enough until we drop
+ % this code. Fixes bug #704487 which is recursion caused by a pattern
+ % referenced via resolving a name from a Page as it is not defined in the Form
+ % which uses it.
+ 1 index /.gs.pdfobj# known {
+ 1 index /.gs.pdfobj# get
+ }
+ {
+ 0
} ifelse
+ 3 1 roll
+ NestedPatterns 3 index known 3 index 0 ne and
+ {
+ PDFSTOPONERROR not {
+ ( **** Error: Attempting to run a Pattern while already executing that Pattern.\n Ignoring this pattern, output may be incorrect.\n) pdfformaterror
+ pop pop pop
+ }
+ {
+ /PaintProc cvx /circular_reference signalerror
+ } ifelse
+ }
+ {
+ % Store the currnet object number in the dictionary just so we can find it later.
+ NestedPatterns 3 index null put
+ PDFDEBUG { //pdfdict /PDFSTEPcount .knownget { 1 le } { //true } ifelse { (%Begin PaintProc) print dup === flush } if } if
+ PDFfile fileposition 3 1 roll
+ q
+ 1 index /PaintType oget 1 eq {
+ % For colored patterns, set default fill and stroke colors.
+ 0 g 0 G
+ } {
+ % For uncolored patterns, we have to unbind the current
+ % color and color space before running the PaintProc.
+ % Not true since moving the ExtGState parameters into the gstate.
+ % //null sc1 //null SC1
+ } ifelse
- % Save old values on opstack, set pdfemptycount to new value.
- pdfemptycount countdictstack mark
+ % Save old values on opstack, set pdfemptycount to new value.
+ pdfemptycount countdictstack mark
- %% We can't simply 'def' into the dictionary saved by 'q' above, we need to
- %% call gput to copy it and store inside it. Stupid or what....
- /pdfemptycount count 3 sub gput 5 3 roll
- %
- % Stack: ... <old emptycount> <dictcount> mark <patdict> <resdict>
- % |
- % New empty count points here -----------+
+ %% We can't simply 'def' into the dictionary saved by 'q' above, we need to
+ %% call gput to copy it and store inside it. Stupid or what....
+ /pdfemptycount count 3 sub gput 5 3 roll
+ %
+ % Stack: ... <old emptycount> <dictcount> mark <patdict> <resdict>
+ % |
+ % New empty count points here -----------+
- exch //false resolvestream pdfopdict .pdfruncontext
- cleartomark
+ exch //false resolvestream pdfopdict .pdfruncontext
+ cleartomark
- //false
- { countdictstack
- 2 index le { exit } if
- currentdict /n known not or
- currentdict /n known currentdict /self known or{
- Q
- }{
- (\n **** Error: File has unbalanced q/Q operators \(too many Q's\)\n Output may be incorrect.\n)
+ //false
+ { countdictstack
+ 2 index le { exit } if
+ currentdict /n known not or
+ currentdict /n known currentdict /self known or{
+ Q
+ }{
+ (\n **** Error: File has unbalanced q/Q operators \(too many Q's\)\n Output may be incorrect.\n)
+ //pdfdict /.Qqwarning_issued .knownget
+ {
+ {
+ pop
+ }
+ {
+ currentglobal //pdfdict gcheck .setglobal
+ //pdfdict /.Qqwarning_issued //true .forceput
+ .setglobal
+ pdfformaterror
+ } executeonly ifelse
+ } executeonly
+ {
+ currentglobal //pdfdict gcheck .setglobal
+ //pdfdict /.Qqwarning_issued //true .forceput
+ .setglobal
+ pdfformaterror
+ } executeonly ifelse
+ end
+ } executeonly ifelse
+ } executeonly loop
+ {
+ (\n **** Error: File has unbalanced q/Q operators \(too many q's\)\n Output may be incorrect.\n)
//pdfdict /.Qqwarning_issued .knownget
{
{
@@ -1251,41 +1309,26 @@ currentdict end readonly def
.setglobal
pdfformaterror
} executeonly ifelse
- end
- } executeonly ifelse
- } executeonly loop
- {
- (\n **** Error: File has unbalanced q/Q operators \(too many q's\)\n Output may be incorrect.\n)
- //pdfdict /.Qqwarning_issued .knownget
- {
- {
- pop
- }
- {
- currentglobal //pdfdict gcheck .setglobal
- //pdfdict /.Qqwarning_issued //true .forceput
- .setglobal
- pdfformaterror
- } executeonly ifelse
- } executeonly
- {
- currentglobal //pdfdict gcheck .setglobal
- //pdfdict /.Qqwarning_issued //true .forceput
- .setglobal
- pdfformaterror
- } executeonly ifelse
- } executeonly if
- pop
+ } executeonly if
+ pop
- % restore pdfemptycount
- /pdfemptycount exch def
+ % restore pdfemptycount
+ /pdfemptycount exch def
- Q
- PDFDEBUG { //pdfdict /PDFSTEPcount .knownget { 1 le } { //true } ifelse { (%End PaintProc) print dup === flush } if } if
- PDFfile exch setfileposition
+ Q
+ PDFDEBUG { //pdfdict /PDFSTEPcount .knownget { 1 le } { //true } ifelse { (%End PaintProc) print dup === flush } if } if
+ PDFfile exch setfileposition
+ NestedPatterns exch undef
+ }ifelse
} bind executeonly odef
/.pdfpaintproc {
+ % Copy the pattern dictionary, we need it to rewind the /File if it is a file
+ % rather than a string, after we've run .actual_pdfpaintproc. If we don't reset
+ % the file position then if we try to run the PaintProc again we will already be
+ % at EOF and nothing will be executed.
+ 1 index 3 1 roll
+
%% Get the /m from pdfopdict (must be present)
%% and check its a packedarray
pdfopdict /m get dup type /packedarraytype eq {
@@ -1307,13 +1350,28 @@ currentdict end readonly def
} ifelse
%% rearrange the operands, move the boolean to the back
3 1 roll
- %% Uncopnditionally use the normal marking ops
+ %% Unconditionally use the normal marking ops
switch_to_normal_marking_ops
.actual_pdfpaintproc
%% If we were in a text block, restore the text marking ops.
{
switch_to_text_marking_ops
} if
+
+ % If the pattern dictionary has a /File (it should always but let's be safe)
+ % *and* the /File is a file object, not a string, then we need to set the
+ % position of that file (it's a subfiledecode filter) back to 0 so we can
+ % run the PaintProc again, should we need to.
+ % cf bug #704388
+ /File .knownget {
+ dup type /filetype eq
+ {
+ 0 setfileposition
+ }
+ {
+ pop
+ } ifelse
+ } if
}bind executeonly odef
/resolvepattern { % <patternstreamdict> resolvepattern <patterndict>
@@ -1352,6 +1410,25 @@ currentdict end readonly def
] cvx put
dup /BBox 2 copy knownoget { normrect FixPatternBBox put } { pop pop } ifelse
dup /.pattern_uses_transparency 1 index patternusestransparency put
+
+ % Regardless of whether we are using transparency, if we are doing Overprint
+ % simulation we still need to have the pattern code push the pdf14 compositor.
+ % We consider we are doing overprint simulation if:
+ % The current page device has /Overprint set to /simulate
+ % The current page device does NOT contain PageSpotColors (spot-capable devices can overprint)
+ % The current page device has a /PageUsesOverprint key (set by the interpreter) and it is set to true
+ % If all these conditions are true then we set /.pattern_uses_transparency, otherwise we leave it
+ % untouched as set above.
+ %
+ currentpagedevice dup
+ /Overprint get /simulate eq
+ 1 index /PageSpotColors known not and
+ exch /PageUsesOverprint .knownget not { //false } if
+ and
+ {
+ dup /.pattern_uses_transparency //true put
+ } if
+
PDFDEBUG { //pdfdict /PDFSTEPcount .knownget { 1 le } { //true } ifelse { (%Pattern: ) print dup === flush } if } if
} bind executeonly def
diff --git a/Resource/Init/pdf_font.ps b/Resource/Init/pdf_font.ps
index b42cd4cf..1be2871b 100644
--- a/Resource/Init/pdf_font.ps
+++ b/Resource/Init/pdf_font.ps
@@ -1,4 +1,4 @@
-% Copyright (C) 2001-2021 Artifex Software, Inc.
+% Copyright (C) 2001-2022 Artifex Software, Inc.
% All Rights Reserved.
%
% This software is provided AS-IS with no warranty, either express or
@@ -1622,7 +1622,6 @@ currentdict end readonly def
% Following Acrobat we ignore everything outside
% begincodespacerange .. endcmap.
/read_CMap_stream { % <info> <wmode> <name> <stream> read_CMap <CMap>
- dup 0 (begincodespacerange) /SubFileDecode filter flushfile
//CMap_read_dict begin
/CIDInit /ProcSet findresource begin
12 dict begin
@@ -1641,7 +1640,29 @@ currentdict end readonly def
dup //null eq { pop } { /CIDSystemInfo exch def } ifelse
/CMapType 1 def
/.last_CMap_def currentdict def % establish binding
- mark exch % emulate 'begincodespacerange'
+
+ % The stream may not be seekable, push a ReusableStream to make it seekable.
+ /ReusableStreamDecode filter
+
+ % Try to skip past the 'header' portion of the PDF file to the body
+ % If the CMap doesn't have a begincodespacerange (eg it uses /UseCMap)
+ % then this will leave us at EOF.
+ dup 0 (begincodespacerange) /SubFileDecode filter flushfile
+ % See if we have anything left in the file
+ dup bytesavailable 0 eq
+ {
+ % We discarded all the file contents, so there was no begincodespacerange
+ % Rewind the file to the beginning
+ dup 0 setfileposition
+ % And try again, this time only discarding to the 'begincmap'
+ dup 0 (begincmap) /SubFileDecode filter flushfile
+ }
+ {
+ % Everything worked as expected, because we have consumed the
+ % begincodespacerange from the file, emulate it
+ mark exch
+ } ifelse
+
0 (endcmap) /SubFileDecode filter cvx /begincmap cvx exch 2 .execn
currentdict /o.endmapvalue undef
endcmap
diff --git a/Resource/Init/pdf_main.ps b/Resource/Init/pdf_main.ps
index 038c19d1..3259c0fe 100644
--- a/Resource/Init/pdf_main.ps
+++ b/Resource/Init/pdf_main.ps
@@ -1,4 +1,4 @@
-% Copyright (C) 2001-2021 Artifex Software, Inc.
+% Copyright (C) 2001-2022 Artifex Software, Inc.
% All Rights Reserved.
%
% This software is provided AS-IS with no warranty, either express or
@@ -218,7 +218,7 @@ DingbatsEncoding pop
% Redefine 'run' so it recognizes PDF files.
systemdict begin
-systemdict /NEWPDF known not {/NEWPDF //false def} if
+systemdict /NEWPDF known not {/NEWPDF //true def} if
% PostScript interface to the ghostpdf C-based interpreter
%
@@ -405,8 +405,7 @@ systemdict /NEWPDF known not {/NEWPDF //false def} if
% Stack - box boxwidth boxheight mediawidth mediaheight
% Incorporate up any offset from 0,0
- 4 index aload pop pop pop neg exch neg exch
- 2 copy exch
+ 4 index aload pop pop pop neg exch neg
translate
% Now use the box and media values to calculate the required x/y scale factors
@@ -419,7 +418,6 @@ systemdict /NEWPDF known not {/NEWPDF //false def} if
gt {exch} if % select smallest scale factor
pop %
dup scale % and scale page isomorphically
- pop pop
} bind def
/newpdf_get_media_box { % <pagedict> get_media_box <box> <bool>
@@ -444,32 +442,78 @@ systemdict /NEWPDF known not {/NEWPDF //false def} if
( Output may be incorrect.\n) newpdf_pdfformaterror
[ 0 0 currentpagedevice /PageSize get aload pop ] //false
} ifelse
-%(newpdf_get_media_box end) == flush
+} bind executeonly def
+
+% [llx lly urx ury] newpdf_check_empty_box [llx lly urx ury] true | false
+% rturns true and the original array if its valid, otherwise returns false
+/newpdf_check_empty_box
+{
+ dup type /arraytype eq
+ {
+ dup aload pop
+ dup 3 index eq
+ {
+ //true
+ }
+ {
+ 1 index 4 index eq
+ } ifelse
+ {
+ pop pop pop pop
+ ( **** Warning: File has an empty Box parameter.\n) print
+ ( Using the MediaBox instead.\n) print
+ ( Output may be incorrect.\n) print flush
+ pop //false
+ }
+ {
+ pop pop pop pop
+ //true
+ } ifelse
+ }
+ {
+ ( **** Warning: File has an invalid Box parameter.\n) print
+ ( Using the MediaBox instead.\n) print
+ ( Output may be incorrect.\n) print flush
+ pop //false
+ } ifelse
} bind executeonly def
/newpdf_get_any_box { % <pagedict> get_any_box <box name> <box>
-%(newpdf_get_any_box start) == flush
//systemdict /UseBleedBox .knownget dup { and } if {
- dup /BleedBox get {
- /BleedBox exch
+ dup /BleedBox .knownget {
+ newpdf_check_empty_box
+ {
+ /BleedBox exch
+ } if
} if
} if
- //systemdict /UseTrimBox .knownget dup { and } if {
- dup /TrimBox get {
- /TrimBox exch
+ dup type /arraytype ne {
+ //systemdict /UseTrimBox .knownget dup { and } if {
+ dup /TrimBox .knownget {
+ newpdf_check_empty_box
+ {
+ /TrimBox exch
+ } if
+ } if
} if
} if
dup type /arraytype ne {
//systemdict /UseArtBox .knownget dup { and } if {
- dup /ArtBox get {
- /ArtBox exch
+ dup /ArtBox .knownget {
+ newpdf_check_empty_box
+ {
+ /ArtBox exch
+ } if
} if
} if
} if
dup type /arraytype ne {
//systemdict /UseCropBox .knownget dup { and } if {
- dup /CropBox get {
- /CropBox exch
+ dup /CropBox .knownget {
+ newpdf_check_empty_box
+ {
+ /CropBox exch
+ } if
} if
} if
} if
@@ -484,6 +528,7 @@ systemdict /NEWPDF known not {/NEWPDF //false def} if
%% content when we st up the CTM, but we do need to make sure that we clamp
%% the BoundingBox, and that means we need to take direcitonality into account...
+ aload pop
6 -1 roll newpdf_get_media_box { % /SomeBox x0 y0 x1 y1 [MediaBox]
aload pop % /SomeBox x0 y0 x1 y1 X0 Y0 X1 Y1
@@ -556,6 +601,30 @@ systemdict /NEWPDF known not {/NEWPDF //false def} if
dup
dup newpdf_get_any_box % Stack: pdfpagedict pdfpagedict /BoxName [box]
+ % Check that the box is 'normal' and make it so if not
+ % Also check the array is 4 elements and if it isn't then use the
+ % current PageSize. The normalise arithmetic assumes the array is a 4
+ % element array.
+ dup length 4 ne {
+ % Invalid size of mediabox
+ pop currentpagedevice /PageSize get
+ } {
+ aload 5 1 roll % array x1 y1 x2 y2
+ exch % array x1 y1 y2 x2
+ 4 -1 roll % array y1 y2 x2 x1
+ 2 copy gt {
+ exch % array y1 y2 xmin xmax
+ } if
+ 4 -2 roll % array xmin xmax y1 y2
+ 2 copy gt {
+ exch % array xmin xmax ymin ymax
+ } if
+ 4 1 roll
+ exch 4 -1 roll
+ 5 -1 roll
+ astore
+ } ifelse
+
//systemdict /PDFFitPage known {
NewPDF_FitPage
} {
@@ -688,7 +757,9 @@ systemdict /NEWPDF known not {/NEWPDF //false def} if
} {
pop
} ifelse
- } if
+ } {
+ pop
+ }ifelse
pop
} bind executeonly def
@@ -704,10 +775,11 @@ systemdict /NEWPDF known not {/NEWPDF //false def} if
/newpdf_gather_parameters
{
10 dict begin
- /PDFSwitches [ /PDFPassword /PDFDEBUG /PDFSTOPONERROR /PDFSTOPONWARNING /NOTRANSPARENCY /FirstPage /LastPage
- /NOCIDFALLBACK /NO_PDFMARK_OUTLINES /NO_PDFMARK_DESTS /PDFFitPage /Printed
+ /PDFSwitches [ /QUIET /PDFPassword /PDFDEBUG /PDFSTOPONERROR /PDFSTOPONWARNING /NOTRANSPARENCY /FirstPage /LastPage
+ /PDFNOCIDFALLBACK /NO_PDFMARK_OUTLINES /NO_PDFMARK_DESTS /PDFFitPage /Printed /UsePDFX3Profile
/UseBleedBox /UseCropBox /UseArtBox /UseTrimBox /ShowAcroForm /ShowAnnots /PreserveAnnots
- /NoUserUnit /RENDERTTNOTDEF /DOPDFMARKS /PDFINFO /SHOWANNOTTYPES /PRESERVEANNOTTYPES] def
+ /NoUserUnit /RENDERTTNOTDEF /DOPDFMARKS /PDFINFO /SHOWANNOTTYPES /PRESERVEANNOTTYPES
+ /CIDSubstPath /CIDSubstFont /IgnoreToUnicode /NONATIVEFONTMAP ] def
0 1 PDFSwitches length 1 sub {
PDFSwitches exch get dup where {
@@ -935,8 +1007,8 @@ systemdict /NEWPDF known not {/NEWPDF //false def} if
% These are also for the benefit of pdf2dsc, which assumes they
% are available.
- /knownoget {2 copy known {get //true}{pop //false}ifelse} bind def
- /pget {2 copy known {get //true}{pop //false}ifelse}bind def
+ /knownoget {2 copy known {get //true}{pop pop //false}ifelse} bind def
+ /pget {2 copy known {get //true}{pop pop //false}ifelse}bind def
newpdf_gather_parameters
{.PDFInit} stopped
@@ -986,7 +1058,11 @@ systemdict /NEWPDF known not {/NEWPDF //false def} if
( **** Error: Page drawing error occured.\n) newpdf_pdfformaterror
( Output may be incorrect.\n) newpdf_pdfformaterror
} if
- showpage
+ {showpage} stopped
+ {
+ ( **** Error: Page drawing error occured.\n) newpdf_pdfformaterror
+ ( Could not draw this page at all, page will be missing in the output.\n) newpdf_pdfformaterror
+ } if
grestore
} bind def
@@ -1053,7 +1129,6 @@ systemdict /NEWPDF known not {/NEWPDF //false def} if
{//true} ifelse
{
- QUIET not { (Page ) print dup //== exec flush } if
dup pdfgetpage
dup //null ne {
exch 1 index
@@ -3567,11 +3642,9 @@ currentdict /PDF2PS_matrix_key undef
% the pages resources. It may be high if a spot color is in a resource but
% is not actually used on the page.
currentpagedevice /PageSpotColors known {
- /PageSpotColors 2 index countspotcolors
- userdict /PageSpotColors 2 index put
- def
+ /PageSpotColors 2 index countspotcolors def
+ /SeparationColorNames userdict 1 index get def
} if
-
% If the user told us to use a named OutputIntent
systemdict /UseOutputIntent .knownget {
cvn
@@ -3640,7 +3713,7 @@ currentdict /PDF2PS_matrix_key undef
% Overprint is /enable, so the device might need the overprint compositor
% if it does not support spot colors, thus check if overprint is used so
% overprint simulation can be done with the pdf14 compositor
- 1 index countspotcolors userdict exch /PageSpotColors exch put % save it in a known place
+ 1 index countspotcolors pop
1 index pageusesoverprint
1 index /ProcessColorModel get /DeviceCMYK eq {
PageSpotColors 0 gt % count of colorants NOT including CMYK
@@ -3949,9 +4022,11 @@ currentdict /PDF2PS_matrix_key undef
not
and
//systemdict /PreserveAnnots .knownget not {//true} if and {
- mark exch {preserveannot} PDFSTOPONERROR {exec}{stopped {(Error: Ignoring invalid annotation, output may be incorrect.\n) pdfformaterror} if} ifelse {cleartomark} stopped pop
+ mark exch {preserveannot} PDFSTOPONERROR {exec}{stopped {(Error: Ignoring invalid annotation, output may be incorrect.\n) pdfformaterror} if} ifelse {cleartomark} stopped
+ {(Error: Failed to clean up after annotation, output may be incorrect.\n) pdfformaterror}if
}{
- mark exch {drawannot} PDFSTOPONERROR {exec}{stopped {(Error: Ignoring invalid annotation, output may be incorrect.\n) pdfformaterror} if} ifelse {cleartomark} stopped pop
+ mark exch {drawannot} PDFSTOPONERROR {exec}{stopped {(Error: Ignoring invalid annotation, output may be incorrect.\n) pdfformaterror} if} ifelse {cleartomark} stopped
+ {(Error: Failed to clean up after annotation, output may be incorrect.\n) pdfformaterror}if
} ifelse
} {
pop
@@ -4497,11 +4572,22 @@ currentdict /PDF2PS_matrix_key undef
% Note: This count does not include Cyan, Magenta, Yellow, or Black
/countspotcolors { % <pagedict> countspotcolors <count>
pagespotcolors % Get dict with all spot colors
- dup length % spot color dict length
% Remove CMYK from the spot color count.
[ /Cyan /Magenta /Yellow /Black ]
- { 2 index exch known { 1 sub } if } forall
- exch pop % Remove spot color dict
+ {
+ dup 2 index exch known {
+ 1 index exch undef
+ } {
+ pop
+ } ifelse
+ } forall
+ dup length dup
+ userdict exch /PageSpotColors exch put % save it in a known place
+ exch
+ userdict /SeparationColorNames 2 index
+ [ exch { pop } forall ]
+ put % and save the SpotColorNames array in a known place
+ pop % done with spot color dict
} bind executeonly def
% ------ ColorSpace substitution support ------ %
@@ -4834,6 +4920,8 @@ currentdict /PDF2PS_matrix_key undef
pop
}bind readonly def
+/NestedPatterns <<>> def
+
end % pdfdict
diff --git a/Resource/Init/pdf_ops.ps b/Resource/Init/pdf_ops.ps
index 27c20680..a00356c7 100644
--- a/Resource/Init/pdf_ops.ps
+++ b/Resource/Init/pdf_ops.ps
@@ -1,4 +1,4 @@
-% Copyright (C) 2001-2021 Artifex Software, Inc.
+% Copyright (C) 2001-2022 Artifex Software, Inc.
% All Rights Reserved.
%
% This software is provided AS-IS with no warranty, either express or
@@ -716,7 +716,8 @@ end
//false
} ifelse
.currentSMask //null ne or { % push a group for OP or SMask
- mark /Subtype /Group /Isolated .currentSMask //null ne .dicttomark
+ % It should only be isolated if there is a softmask and the blend mode is not normal (or compatible)
+ mark /Subtype /Group /Isolated .currentSMask //null ne .currentblendmode /Normal ne and .currentblendmode /Compatible ne and .dicttomark
2 index aload pop % pathbbox
.begintransparencygroup
% After group pushed, set alphas and blendmode
@@ -1026,6 +1027,17 @@ end readonly def
translate } if
} bind executeonly def
+/unsettextmatrix {
+ .currenttextrise 0 ne {
+ 0 .currenttextrise neg translate
+ } if
+ .currenttexthscaling 1 ne {
+ 1 .currenttexthscaling div 1 scale
+ } if
+ matrix currentmatrix
+ matrix .currenttextmatrix matrix invertmatrix concat setmatrix
+} bind executeonly def
+
/settextstate {
% The text state can be set even outside BT/ET.
currentdict /TextSaveMatrix known {
diff --git a/base/fapi_ft.c b/base/fapi_ft.c
index 4b4b6857..c7cb22ea 100644
--- a/base/fapi_ft.c
+++ b/base/fapi_ft.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 2001-2021 Artifex Software, Inc.
+/* Copyright (C) 2001-2022 Artifex Software, Inc.
All Rights Reserved.
This software is provided AS-IS with no warranty, either express or
@@ -59,6 +59,7 @@
#include FT_TRUETYPE_TABLES_H
#include FT_MULTIPLE_MASTERS_H
#include FT_TYPE1_TABLES_H
+#include FT_SIZES_H
/* Note: structure definitions here start with FF_, which stands for 'FAPI FreeType". */
@@ -642,14 +643,15 @@ load_glyph(gs_fapi_server * a_server, gs_fapi_font * a_fapi_font,
data. (NOTE: if those do not match the original font's metrics, again, the hinting
can be distorted)
*/
- if (a_char_ref->metrics_type == gs_fapi_metrics_replace && !a_fapi_font->is_mtx_skipped)
- face->ft_inc_int->object->metrics_type = gs_fapi_metrics_replace_width;
- else
+ if (a_char_ref->metrics_type == gs_fapi_metrics_replace && !a_fapi_font->is_mtx_skipped) {
+ face->ft_inc_int->object->glyph_metrics_index = 0xFFFFFFFF;
+ delta.x = FT_MulFix(a_char_ref->sb_x >> 16, ft_face->size->metrics.x_scale);
+ delta.y = FT_MulFix(a_char_ref->sb_y >> 16, ft_face->size->metrics.y_scale);
+ FT_Vector_Transform( &delta, &face->ft_transform);
+ }
+ else {
face->ft_inc_int->object->metrics_type = a_char_ref->metrics_type;
-
- delta.x = FT_MulFix(a_char_ref->sb_x >> 16, ft_face->size->metrics.x_scale);
- delta.y = FT_MulFix(a_char_ref->sb_y >> 16, ft_face->size->metrics.y_scale);
- FT_Vector_Transform( &delta, &face->ft_transform);
+ }
}
else if (face->ft_inc_int)
/* Make sure we don't leave this set to the last value, as we may then use inappropriate metrics values */
@@ -705,6 +707,20 @@ load_glyph(gs_fapi_server * a_server, gs_fapi_font * a_fapi_font,
if (ft_error == FT_Err_Out_Of_Memory
|| ft_error == FT_Err_Array_Too_Large) {
+ /* An out of memory error can leave the FT TTF hinting context in a partially initialized state.
+ Meaning bad things can happen if we try to render another glyph using the same context.
+ Ideally this would be handled by FT internally, but that means some implications for supporting
+ out of spec fonts, and performance.
+ By destroying, recreating and resetting the size, it invalidates the (possibly corrupt) hinting
+ context, and ensures a fresh start in any subsequent call.
+ */
+ FT_Size ftsize = NULL;
+ FT_Done_Size(ft_face->size);
+ FT_New_Size(face->ft_face, &ftsize);
+ FT_Activate_Size(ftsize);
+ ft_error = FT_Set_Char_Size(face->ft_face, face->width, face->height, face->horz_res, face->vert_res);
+ if (ft_error != 0) return_error(gs_error_invalidfont);
+
return (gs_error_VMerror);
}
@@ -809,6 +825,10 @@ load_glyph(gs_fapi_server * a_server, gs_fapi_font * a_fapi_font,
FT_Render_Mode mode = FT_RENDER_MODE_MONO;
ft_error = FT_Render_Glyph(ft_face->glyph, mode);
+ if (ft_error != 0) {
+ (*a_glyph) = NULL;
+ return (gs_error_VMerror);
+ }
}
else {
(*a_glyph) = NULL;
@@ -1072,8 +1092,8 @@ transform_decompose(FT_Matrix * a_transform, FT_UInt * xresp, FT_UInt * yresp,
* scalex/y we calculate will be >64 after rounding.
*/
- if (scalex < 10.0) {
- fact = 10.016 / scalex;
+ if (scalex < 1.0) {
+ fact = 1.016 / scalex;
scalex = scalex * fact;
scaley = scaley * fact;
}
@@ -1330,6 +1350,50 @@ gs_fapi_ft_get_scaled_font(gs_fapi_server * a_server, gs_fapi_font * a_font,
return_error(gs_error_VMerror);
}
a_font->server_font_data = face;
+
+ if (!a_font->is_type1) {
+ for (i = 0; i < GS_FAPI_NUM_TTF_CMAP_REQ && !cmap; i++) {
+ if (a_font->ttf_cmap_req[i].platform_id > 0) {
+ for (j = 0; j < face->ft_face->num_charmaps; j++) {
+ if (FT_Get_CMap_Format(face->ft_face->charmaps[j]) >= 0
+ && face->ft_face->charmaps[j]->platform_id == a_font->ttf_cmap_req[i].platform_id
+ && face->ft_face->charmaps[j]->encoding_id == a_font->ttf_cmap_req[i].encoding_id) {
+
+ cmap = face->ft_face->charmaps[j];
+ break;
+ }
+ }
+ }
+ else {
+ break;
+ }
+ }
+ if (cmap) {
+ (void)FT_Set_Charmap(face->ft_face, cmap);
+ }
+ else if (a_font->full_font_buf != NULL || a_font->font_file_path != NULL) {
+ /* If we've passed a complete TTF to Freetype, but *haven't* requested a
+ * specific cmap table above, try to use a Unicode one
+ * If that doesn't work, just leave the default in place.
+ */
+ (void)FT_Select_Charmap(face->ft_face, ft_encoding_unicode);
+ }
+ /* For PDF, we have to know which cmap table actually was selected */
+ if (face->ft_face->charmap != NULL) {
+ a_font->ttf_cmap_selected.platform_id = face->ft_face->charmap->platform_id;
+ a_font->ttf_cmap_selected.encoding_id = face->ft_face->charmap->encoding_id;
+ }
+ else {
+ /* Just in case */
+ a_font->ttf_cmap_selected.platform_id = -1;
+ a_font->ttf_cmap_selected.encoding_id = -1;
+ }
+ }
+ else {
+ /* Just in case */
+ a_font->ttf_cmap_selected.platform_id = -1;
+ a_font->ttf_cmap_selected.encoding_id = -1;
+ }
}
else
a_font->server_font_data = NULL;
@@ -1378,49 +1442,6 @@ gs_fapi_ft_get_scaled_font(gs_fapi_server * a_server, gs_fapi_font * a_font,
FT_Set_Transform(face->ft_face, &face->ft_transform, NULL);
- if (!a_font->is_type1) {
- for (i = 0; i < GS_FAPI_NUM_TTF_CMAP_REQ && !cmap; i++) {
- if (a_font->ttf_cmap_req[i].platform_id > 0) {
- for (j = 0; j < face->ft_face->num_charmaps; j++) {
- if (FT_Get_CMap_Format(face->ft_face->charmaps[j]) >= 0
- && face->ft_face->charmaps[j]->platform_id == a_font->ttf_cmap_req[i].platform_id
- && face->ft_face->charmaps[j]->encoding_id == a_font->ttf_cmap_req[i].encoding_id) {
-
- cmap = face->ft_face->charmaps[j];
- break;
- }
- }
- }
- else {
- break;
- }
- }
- if (cmap) {
- (void)FT_Set_Charmap(face->ft_face, cmap);
- }
- else if (a_font->full_font_buf != NULL || a_font->font_file_path != NULL) {
- /* If we've passed a complete TTF to Freetype, but *haven't* requested a
- * specific cmap table above, try to use a Unicode one
- * If that doesn't work, just leave the default in place.
- */
- (void)FT_Select_Charmap(face->ft_face, ft_encoding_unicode);
- }
- /* For PDF, we have to know which cmap table actually was selected */
- if (face->ft_face->charmap != NULL) {
- a_font->ttf_cmap_selected.platform_id = face->ft_face->charmap->platform_id;
- a_font->ttf_cmap_selected.encoding_id = face->ft_face->charmap->encoding_id;
- }
- else {
- /* Just in case */
- a_font->ttf_cmap_selected.platform_id = -1;
- a_font->ttf_cmap_selected.encoding_id = -1;
- }
- }
- else {
- /* Just in case */
- a_font->ttf_cmap_selected.platform_id = -1;
- a_font->ttf_cmap_selected.encoding_id = -1;
- }
}
/* dpf("gs_fapi_ft_get_scaled_font return %d\n", a_font->server_font_data ? 0 : -1); */
@@ -1856,6 +1877,8 @@ static const gs_fapi_server freetypeserver = {
{0},
0,
false,
+ false,
+ {1, 0, 0, 1, 0, 0},
1,
{1, 0, 0, 1, 0, 0},
gs_fapi_ft_ensure_open,
diff --git a/base/fapibstm.c b/base/fapibstm.c
index 978dd754..06cd0387 100644
--- a/base/fapibstm.c
+++ b/base/fapibstm.c
@@ -346,6 +346,8 @@ static const FAPI_server If0 = {
{0},
0,
false,
+ false,
+ {1, 0, 0, 1, 0, 0},
1,
{1, 0, 0, 1, 0, 0},
ensure_open,
diff --git a/base/fapiufst.c b/base/fapiufst.c
index 628d54c0..d6654da0 100644
--- a/base/fapiufst.c
+++ b/base/fapiufst.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 2001-2021 Artifex Software, Inc.
+/* Copyright (C) 2001-2022 Artifex Software, Inc.
All Rights Reserved.
This software is provided AS-IS with no warranty, either express or
@@ -712,9 +712,10 @@ pack_long(LPUB8 * p, UL32 v)
}
static inline void
-pack_float(LPUB8 * p, float v)
+pack_float(LPUB8 * p, LPUB8 pe, float v)
{
- gs_sprintf((char *)(*p), "%f", v);
+ int plen = (int)(((char *)(*p)) - ((char *)(pe)));
+ gs_snprintf((char *)(*p), plen, "%f", v);
*p += strlen((const char *)*p) + 1;
}
@@ -770,7 +771,7 @@ pack_pseo_word_array(fapi_ufst_server * r, gs_fapi_font * ff, UB8 ** p,
}
static int
-pack_pseo_fhdr(fapi_ufst_server * r, gs_fapi_font * ff, UB8 * p)
+pack_pseo_fhdr(fapi_ufst_server * r, gs_fapi_font * ff, UB8 * p, UB8 * pe)
{
ushort j, n, skip = 0;
int code;
@@ -784,7 +785,7 @@ pack_pseo_fhdr(fapi_ufst_server * r, gs_fapi_font * ff, UB8 * p)
code = ff->get_float(ff, gs_fapi_font_feature_FontMatrix, j, &f);
if (code < 0)
return code;
- pack_float(&p, f);
+ pack_float(&p, pe, f);
}
while (((uint64_t) p) & 0x03) /* align to QUADWORD */
PACK_ZERO(p);
@@ -1165,7 +1166,7 @@ ufst_make_font_data(fapi_ufst_server * r, const char *font_file_path,
if (ff->is_type1) {
LPUB8 fontdata = (LPUB8) h + PCLETTOFONTHDRSIZE;
- code = pack_pseo_fhdr(r, ff, fontdata);
+ code = pack_pseo_fhdr(r, ff, fontdata, (LPUB8)(buf + area_length));
if (code < 0)
return code;
}
@@ -2246,6 +2247,8 @@ static const gs_fapi_server ufstserver = {
{0},
0,
false,
+ false,
+ {1, 0, 0, 1, 0, 0},
1,
{1, 0, 0, 1, 0, 0},
gs_fapi_ufst_ensure_open,
diff --git a/base/freetype.mak b/base/freetype.mak
index 41a6a949..eda8c46c 100644
--- a/base/freetype.mak
+++ b/base/freetype.mak
@@ -43,7 +43,6 @@ FT_MAK=$(GLSRC)freetype.mak $(TOP_MAKEFILES)
# file complements for each component
ft_autofit=\
- $(FTOBJ)afangles.$(OBJ) \
$(FTOBJ)afcjk.$(OBJ) \
$(FTOBJ)afdummy.$(OBJ) \
$(FTOBJ)afglobal.$(OBJ) \
@@ -52,7 +51,6 @@ ft_autofit=\
$(FTOBJ)aflatin.$(OBJ) \
$(FTOBJ)afloader.$(OBJ) \
$(FTOBJ)afmodule.$(OBJ) \
- $(FTOBJ)afwarp.$(OBJ) \
$(FTOBJ)afblue.$(OBJ) \
$(FTOBJ)afranges.$(OBJ) \
$(FTOBJ)afshaper.$(OBJ)
@@ -210,6 +208,12 @@ ft_type42=\
ft_winfonts=$(FTOBJ)winfnt.$(OBJ)
+ft_sdf=\
+ $(FTOBJ)ftbsdf.$(OBJ) \
+ $(FTOBJ)ftsdf.$(OBJ) \
+ $(FTOBJ)ftsdfcommon.$(OBJ) \
+ $(FTOBJ)ftsdfrend.$(OBJ) \
+
# instantiate the requested build option (shared or compiled in)
$(FTGEN)freetype.dev : $(FTGEN)freetype_$(SHARE_FT).dev $(FT_MAK) $(GENFTCONFH) $(MAKEDIRS)
$(CP_) $(FTGEN)freetype_$(SHARE_FT).dev $(FTGEN)freetype.dev
@@ -224,7 +228,7 @@ $(FTGEN)freetype_0.dev : $(FT_MAK) $(ECHOGS_XE) \
$(ft_autofit) $(ft_base) $(ft_bdf) $(ft_cache) $(ft_cff) $(ft_cid) \
$(ft_gzip) $(ft_lzw) $(ft_pcf) $(ft_pfr) $(ft_psaux) $(ft_pshinter) \
$(ft_psnames) $(ft_raster) $(ft_smooth) $(ft_sfnt) $(ft_truetype) \
- $(ft_type1) $(ft_type42) $(ft_winfonts) $(GENFTCONFH) $(MAKEDIRS)
+ $(ft_type1) $(ft_type42) $(ft_winfonts) $(ft_sdf) $(GENFTCONFH) $(MAKEDIRS)
$(SETMOD) $(FTGEN)freetype_0 $(ft_autofit)
$(ADDMOD) $(FTGEN)freetype_0 $(ft_base)
$(ADDMOD) $(FTGEN)freetype_0 $(ft_bdf)
@@ -245,6 +249,7 @@ $(FTGEN)freetype_0.dev : $(FT_MAK) $(ECHOGS_XE) \
$(ADDMOD) $(FTGEN)freetype_0 $(ft_type1)
$(ADDMOD) $(FTGEN)freetype_0 $(ft_type42)
$(ADDMOD) $(FTGEN)freetype_0 $(ft_winfonts)
+ $(ADDMOD) $(FTGEN)freetype_0 $(ft_sdf)
# custom build rules for each source file
@@ -647,3 +652,15 @@ $(FTOBJ)t42drivr.$(OBJ) : $(FTSRC)type42$(D)t42drivr.c $(FT_MAK) $(GENFTCONFH) $
$(FTOBJ)winfnt.$(OBJ) : $(FTSRC)winfonts$(D)winfnt.c $(FT_MAK) $(GENFTCONFH) $(MAKEDIRS)
$(FTCC) $(FTO_)winfnt.$(OBJ) $(C_) $(FTSRC)winfonts$(D)winfnt.c
+
+$(FTOBJ)ftbsdf.$(OBJ) : $(FTSRC)sdf$(D)ftbsdf.c $(FT_MAK) $(GENFTCONFH) $(MAKEDIRS)
+ $(FTCC) $(FTO_)ftbsdf.$(OBJ) $(C_) $(FTSRC)sdf$(D)ftbsdf.c
+
+$(FTOBJ)ftsdf.$(OBJ) : $(FTSRC)sdf$(D)ftsdf.c $(FT_MAK) $(GENFTCONFH) $(MAKEDIRS)
+ $(FTCC) $(FTO_)ftsdf.$(OBJ) $(C_) $(FTSRC)sdf$(D)ftsdf.c
+
+$(FTOBJ)ftsdfcommon.$(OBJ) : $(FTSRC)sdf$(D)ftsdfcommon.c $(FT_MAK) $(GENFTCONFH) $(MAKEDIRS)
+ $(FTCC) $(FTO_)ftsdfcommon.$(OBJ) $(C_) $(FTSRC)sdf$(D)ftsdfcommon.c
+
+$(FTOBJ)ftsdfrend.$(OBJ) : $(FTSRC)sdf$(D)ftsdfrend.c $(FT_MAK) $(GENFTCONFH) $(MAKEDIRS)
+ $(FTCC) $(FTO_)ftsdfrend.$(OBJ) $(C_) $(FTSRC)sdf$(D)ftsdfrend.c
diff --git a/base/gdebug.h b/base/gdebug.h
index 8d663331..6e57b774 100644
--- a/base/gdebug.h
+++ b/base/gdebug.h
@@ -94,7 +94,7 @@ bool gs_debug_c(int /*char */ );
extern gp_file *gs_debug_out;
/* Debugging printout macros. */
-#if defined(DEBUG) && !defined(GS_THREADSAFE)
+#if defined(DEBUG)
# define if_debug0(c,s)\
BEGIN if (gs_debug_c(c)) dlprintf(s); END
# define if_debug1(c,s,a1)\
@@ -272,9 +272,7 @@ void debug_dump_bytes(const gs_memory_t *mem,
void debug_dump_bitmap(const gs_memory_t *mem,
const byte * from, uint raster, uint height,
const char *msg);
-#ifndef GS_THREADSAFE
void debug_print_string_hex_nomem(const byte * str, uint len);
-#endif
void debug_print_string_hex(const gs_memory_t *mem, const byte * str, uint len);
#endif /* gdebug_INCLUDED */
diff --git a/base/gdevdbit.c b/base/gdevdbit.c
index a04e0b33..34e8762d 100644
--- a/base/gdevdbit.c
+++ b/base/gdevdbit.c
@@ -379,7 +379,7 @@ gx_default_copy_alpha(gx_device * dev, const byte * data, int data_x,
int l_xprev = x;
gs_get_bits_params_t params;
- params.options = (GB_ALIGN_ANY |
+ params.options = (GB_ALIGN_STANDARD |
(GB_RETURN_COPY | GB_RETURN_POINTER) |
GB_OFFSET_0 |
GB_RASTER_STANDARD | GB_PACKING_CHUNKY |
diff --git a/base/gdevdevn.c b/base/gdevdevn.c
index f6791276..b11594ce 100644
--- a/base/gdevdevn.c
+++ b/base/gdevdevn.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 2001-2021 Artifex Software, Inc.
+/* Copyright (C) 2001-2022 Artifex Software, Inc.
All Rights Reserved.
This software is provided AS-IS with no warranty, either express or
@@ -642,7 +642,7 @@ devn_put_params(gx_device * pdev, gs_param_list * plist,
pdev->color_info.num_components = (num_order)
? num_order
: (page_spot_colors >= 0)
- ? npcmcolors + num_spot + page_spot_colors
+ ? npcmcolors + page_spot_colors
: pdev->color_info.max_components;
if (pdev->color_info.num_components >
@@ -1185,11 +1185,11 @@ gx_devn_prn_ret_devn_params_const(const gx_device * dev)
* Device proc for updating the equivalent CMYK color for spot colors.
*/
int
-gx_devn_prn_update_spot_equivalent_colors(gx_device *dev, const gs_gstate * pgs)
+gx_devn_prn_update_spot_equivalent_colors(gx_device *dev, const gs_gstate * pgs, const gs_color_space *pcs)
{
gx_devn_prn_device *pdev = (gx_devn_prn_device *)dev;
- return update_spot_equivalent_cmyk_colors(dev, pgs, &pdev->devn_params,
+ return update_spot_equivalent_cmyk_colors(dev, pgs, pcs, &pdev->devn_params,
&pdev->equiv_cmyk_colors);
}
@@ -1373,7 +1373,7 @@ spotcmyk_print_page(gx_device_printer * pdev, gp_file * prn_stream)
/* Open the output files for the spot colors */
for(i = 0; i < nspot; i++) {
- gs_sprintf(spotname, "%ss%d", pdevn->fname, i);
+ gs_snprintf(spotname, gp_file_name_sizeof, "%ss%d", pdevn->fname, i);
code = gs_add_control_path(pdev->memory, gs_permit_file_writing, spotname);
if (code < 0)
goto prn_done;
@@ -1418,7 +1418,7 @@ spotcmyk_print_page(gx_device_printer * pdev, gp_file * prn_stream)
goto prn_done;
}
for(i = 0; i < nspot; i++) {
- gs_sprintf(spotname, "%ss%d", pdevn->fname, i);
+ gs_snprintf(spotname, gp_file_name_sizeof, "%ss%d", pdevn->fname, i);
code = devn_write_pcx_file(pdev, spotname, 1, bpc, linelength[i]);
if (code < 0)
goto prn_done;
@@ -1765,7 +1765,7 @@ devn_write_pcx_file(gx_device_printer * pdev, char * filename, int ncomp,
code = gs_note_error(gs_error_invalidfileaccess);
goto done;
}
- gs_sprintf(outname, "%s.pcx", filename);
+ gs_snprintf(outname, gp_file_name_sizeof, "%s.pcx", filename);
code = gs_add_control_path(pdev->memory, gs_permit_file_writing, outname);
if (code < 0)
goto done;
diff --git a/base/gdevdflt.c b/base/gdevdflt.c
index 71d8c1c7..f93e968d 100644
--- a/base/gdevdflt.c
+++ b/base/gdevdflt.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 2001-2021 Artifex Software, Inc.
+/* Copyright (C) 2001-2022 Artifex Software, Inc.
All Rights Reserved.
This software is provided AS-IS with no warranty, either express or
@@ -376,6 +376,15 @@ set_linear_color_bits_mask_shift(gx_device * dev)
/* Determine if a number is a power of two. Works only for integers. */
#define is_power_of_two(x) ((((x) - 1) & (x)) == 0)
+/* A brutish way to check if we are a HT device */
+bool
+device_is_contone(gx_device* pdev)
+{
+ if ((float)pdev->color_info.depth / (float)pdev->color_info.num_components >= 8)
+ return true;
+ return false;
+}
+
/*
* This routine attempts to determine if a device's encode_color procedure
* produces gx_color_index values which are 'separable'. A 'separable' value
@@ -962,6 +971,8 @@ gx_default_dev_spec_op(gx_device *pdev, int dev_spec_op, void *data, int size)
case gxdso_supports_alpha:
case gxdso_pdf14_sep_device:
case gxdso_supports_pattern_transparency:
+ case gxdso_overprintsim_state:
+ case gxdso_skip_icc_component_validation:
return 0;
case gxdso_pattern_shfill_doesnt_need_path:
return (dev_proc(pdev, fill_path) == gx_default_fill_path);
@@ -1027,7 +1038,7 @@ gx_default_include_color_space(gx_device *pdev, gs_color_space *cspace,
* src/gsequivc.c.
*/
int
-gx_default_update_spot_equivalent_colors(gx_device *pdev, const gs_gstate * pgs)
+gx_default_update_spot_equivalent_colors(gx_device *pdev, const gs_gstate * pgs, const gs_color_space *pcs)
{
return 0;
}
diff --git a/base/gdevdrop.c b/base/gdevdrop.c
index 7a6ca1d4..098b9295 100644
--- a/base/gdevdrop.c
+++ b/base/gdevdrop.c
@@ -1028,6 +1028,130 @@ mem_transform_pixel_region_render_portrait_n(gx_device *dev, mem_transform_pixel
return template_mem_transform_pixel_region_render_portrait(dev, state, buffer, data_x, cmapper, pgs, state->spp);
}
+static inline int
+template_mem_transform_pixel_region_render_portrait_planar(gx_device *dev, mem_transform_pixel_region_state_t *state, const unsigned char **buffer, int data_x, gx_cmapper_t *cmapper, const gs_gstate *pgs, int spp)
+{
+ gx_device_memory *mdev = (gx_device_memory *)dev;
+ gx_dda_fixed_point pnext;
+ int vci, vdi;
+ int irun; /* int x/rrun */
+ int w = state->w;
+ int h = state->h;
+ const byte *data = buffer[0] + data_x * spp;
+ const byte *bufend = NULL;
+ const byte *run;
+ int k;
+ gx_color_value *conc = &cmapper->conc[0];
+ gx_cmapper_fn *mapper = cmapper->set_color;
+ int minx, maxx;
+
+ if (h == 0)
+ return 0;
+
+ /* Clip on y */
+ get_portrait_y_extent(state, &vci, &vdi);
+ if (vci < state->clip.p.y)
+ vdi += vci - state->clip.p.y, vci = state->clip.p.y;
+ if (vci+vdi > state->clip.q.y)
+ vdi = state->clip.q.y - vci;
+ if (vdi <= 0)
+ return 0;
+
+ pnext = state->pixels;
+ dda_translate(pnext.x, (-fixed_epsilon));
+ irun = fixed2int_var_rounded(dda_current(pnext.x));
+ if_debug5m('b', dev->memory, "[b]y=%d data_x=%d w=%d xt=%f yt=%f\n",
+ vci, data_x, w, fixed2float(dda_current(pnext.x)), fixed2float(dda_current(pnext.y)));
+
+ minx = state->clip.p.x;
+ maxx = state->clip.q.x;
+ bufend = data + w * spp;
+ while (data < bufend) {
+ /* Find the length of the next run. It will either end when we hit
+ * the end of the source data, or when the pixel data differs. */
+ run = data + spp;
+ while (1) {
+ dda_next(pnext.x);
+ if (run >= bufend)
+ break;
+ if (memcmp(run, data, spp))
+ break;
+ run += spp;
+ }
+ /* So we have a run of pixels from data to run that are all the same. */
+ /* This needs to be sped up */
+ for (k = 0; k < spp; k++) {
+ conc[k] = gx_color_value_from_byte(data[k]);
+ }
+ mapper(cmapper);
+ /* Fill the region between irun and fixed2int_var_rounded(pnext.x) */
+ {
+ int xi = irun;
+ int wi = (irun = fixed2int_var_rounded(dda_current(pnext.x))) - xi;
+
+ if (wi < 0)
+ xi += wi, wi = -wi;
+
+ if (xi < minx)
+ wi += xi - minx, xi = minx;
+ if (xi+wi > maxx)
+ wi = maxx - xi;
+ if (wi > 0) {
+ /* assert(color_is_pure(&cmapper->devc)); */
+ gx_color_index color = cmapper->devc.colors.pure;
+ for (k = 0; k < spp; k++) {
+ unsigned char c = (color>>mdev->planes[k].shift) & ((1<<mdev->planes[k].depth)-1);
+ for (h = 0; h < vdi; h++) {
+ byte *out = mdev->line_ptrs[vci + h + k*mdev->height] + xi;
+ memset(out, c, wi);
+ }
+ }
+ }
+ }
+ data = run;
+ }
+ return 0;
+}
+
+static int
+mem_transform_pixel_region_render_portrait_1p(gx_device *dev, mem_transform_pixel_region_state_t *state, const unsigned char **buffer, int data_x, gx_cmapper_t *cmapper, const gs_gstate *pgs)
+{
+ return template_mem_transform_pixel_region_render_portrait_planar(dev, state, buffer, data_x, cmapper, pgs, 1);
+}
+
+static int
+mem_transform_pixel_region_render_portrait_3p(gx_device *dev, mem_transform_pixel_region_state_t *state, const unsigned char **buffer, int data_x, gx_cmapper_t *cmapper, const gs_gstate *pgs)
+{
+ return template_mem_transform_pixel_region_render_portrait_planar(dev, state, buffer, data_x, cmapper, pgs, 3);
+}
+
+static int
+mem_transform_pixel_region_render_portrait_4p(gx_device *dev, mem_transform_pixel_region_state_t *state, const unsigned char **buffer, int data_x, gx_cmapper_t *cmapper, const gs_gstate *pgs)
+{
+ return template_mem_transform_pixel_region_render_portrait_planar(dev, state, buffer, data_x, cmapper, pgs, 4);
+}
+
+static int
+mem_transform_pixel_region_render_portrait_np(gx_device *dev, mem_transform_pixel_region_state_t *state, const unsigned char **buffer, int data_x, gx_cmapper_t *cmapper, const gs_gstate *pgs)
+{
+ return template_mem_transform_pixel_region_render_portrait_planar(dev, state, buffer, data_x, cmapper, pgs, state->spp);
+}
+
+static int
+mem_transform_pixel_region_render_portrait_planar(gx_device *dev, mem_transform_pixel_region_state_t *state, const unsigned char **buffer, int data_x, gx_cmapper_t *cmapper, const gs_gstate *pgs)
+{
+ switch(state->spp) {
+ case 1:
+ return mem_transform_pixel_region_render_portrait_1p(dev, state, buffer, data_x, cmapper, pgs);
+ case 3:
+ return mem_transform_pixel_region_render_portrait_3p(dev, state, buffer, data_x, cmapper, pgs);
+ case 4:
+ return mem_transform_pixel_region_render_portrait_4p(dev, state, buffer, data_x, cmapper, pgs);
+ default:
+ return mem_transform_pixel_region_render_portrait_np(dev, state, buffer, data_x, cmapper, pgs);
+ }
+}
+
static int
mem_transform_pixel_region_render_portrait(gx_device *dev, mem_transform_pixel_region_state_t *state, const unsigned char **buffer, int data_x, gx_cmapper_t *cmapper, const gs_gstate *pgs)
{
@@ -1564,12 +1688,138 @@ mem_transform_pixel_region_render_landscape(gx_device *dev, mem_transform_pixel_
}
}
+static inline int
+template_mem_transform_pixel_region_render_landscape_planar(gx_device *dev, mem_transform_pixel_region_state_t *state, const unsigned char **buffer, int data_x, gx_cmapper_t *cmapper, const gs_gstate *pgs, int spp)
+{
+ gx_device_memory *mdev = (gx_device_memory *)dev;
+ gx_dda_fixed_point pnext;
+ int vci, vdi;
+ int irun; /* int x/rrun */
+ int w = state->w;
+ int h = state->h;
+ const byte *data = buffer[0] + data_x * spp;
+ const byte *bufend = NULL;
+ const byte *run;
+ int k;
+ gx_color_value *conc = &cmapper->conc[0];
+ gx_cmapper_fn *mapper = cmapper->set_color;
+ byte *out;
+ int miny, maxy;
+
+ if (h == 0)
+ return 0;
+
+ /* Clip on x */
+ get_landscape_x_extent(state, &vci, &vdi);
+ if (vci < state->clip.p.x)
+ vdi += vci - state->clip.p.x, vci = state->clip.p.x;
+ if (vci+vdi > state->clip.q.x)
+ vdi = state->clip.q.x - vci;
+ if (vdi <= 0)
+ return 0;
+
+ pnext = state->pixels;
+ dda_translate(pnext.x, (-fixed_epsilon));
+ irun = fixed2int_var_rounded(dda_current(pnext.y));
+ if_debug5m('b', dev->memory, "[b]y=%d data_x=%d w=%d xt=%f yt=%f\n",
+ vci, data_x, w, fixed2float(dda_current(pnext.x)), fixed2float(dda_current(pnext.y)));
+
+ miny = state->clip.p.y;
+ maxy = state->clip.q.y;
+ bufend = data + w * spp;
+ while (data < bufend) {
+ /* Find the length of the next run. It will either end when we hit
+ * the end of the source data, or when the pixel data differs. */
+ run = data + spp;
+ while (1) {
+ dda_next(pnext.y);
+ if (run >= bufend)
+ break;
+ if (memcmp(run, data, spp))
+ break;
+ run += spp;
+ }
+ /* So we have a run of pixels from data to run that are all the same. */
+ /* This needs to be sped up */
+ for (k = 0; k < spp; k++) {
+ conc[k] = gx_color_value_from_byte(data[k]);
+ }
+ mapper(cmapper);
+ /* Fill the region between irun and fixed2int_var_rounded(pnext.y) */
+ { /* 90 degree rotated rectangle */
+ int yi = irun;
+ int hi = (irun = fixed2int_var_rounded(dda_current(pnext.y))) - yi;
+
+ if (hi < 0)
+ yi += hi, hi = -hi;
+
+ if (yi < miny)
+ hi += yi - miny, yi = miny;
+ if (yi+hi > maxy)
+ hi = maxy - yi;
+ if (hi > 0) {
+ /* assert(color_is_pure(&cmapper->devc)); */
+ gx_color_index color = cmapper->devc.colors.pure;
+ for (k = 0; k < spp; k++) {
+ unsigned char c = (color>>mdev->planes[k].shift) & ((1<<mdev->planes[k].depth)-1);
+ for (h = 0; h < hi; h++) {
+ out = mdev->line_ptrs[yi + h + k * mdev->height] + vci;
+ memset(out, c, vdi);
+ }
+ }
+ }
+ }
+ data = run;
+ }
+ return 1;
+}
+
+static int
+mem_transform_pixel_region_render_landscape_1p(gx_device *dev, mem_transform_pixel_region_state_t *state, const unsigned char **buffer, int data_x, gx_cmapper_t *cmapper, const gs_gstate *pgs)
+{
+ return template_mem_transform_pixel_region_render_landscape_planar(dev, state, buffer, data_x, cmapper, pgs, 1);
+}
+
+static int
+mem_transform_pixel_region_render_landscape_3p(gx_device *dev, mem_transform_pixel_region_state_t *state, const unsigned char **buffer, int data_x, gx_cmapper_t *cmapper, const gs_gstate *pgs)
+{
+ return template_mem_transform_pixel_region_render_landscape_planar(dev, state, buffer, data_x, cmapper, pgs, 3);
+}
+
+static int
+mem_transform_pixel_region_render_landscape_4p(gx_device *dev, mem_transform_pixel_region_state_t *state, const unsigned char **buffer, int data_x, gx_cmapper_t *cmapper, const gs_gstate *pgs)
+{
+ return template_mem_transform_pixel_region_render_landscape_planar(dev, state, buffer, data_x, cmapper, pgs, 4);
+}
+
+static int
+mem_transform_pixel_region_render_landscape_np(gx_device *dev, mem_transform_pixel_region_state_t *state, const unsigned char **buffer, int data_x, gx_cmapper_t *cmapper, const gs_gstate *pgs)
+{
+ return template_mem_transform_pixel_region_render_landscape_planar(dev, state, buffer, data_x, cmapper, pgs, state->spp);
+}
+
+static int
+mem_transform_pixel_region_render_landscape_planar(gx_device *dev, mem_transform_pixel_region_state_t *state, const unsigned char **buffer, int data_x, gx_cmapper_t *cmapper, const gs_gstate *pgs)
+{
+ switch (state->spp) {
+ case 1:
+ return mem_transform_pixel_region_render_landscape_1p(dev, state, buffer, data_x, cmapper, pgs);
+ case 3:
+ return mem_transform_pixel_region_render_landscape_3p(dev, state, buffer, data_x, cmapper, pgs);
+ case 4:
+ return mem_transform_pixel_region_render_landscape_4p(dev, state, buffer, data_x, cmapper, pgs);
+ default:
+ return mem_transform_pixel_region_render_landscape_np(dev, state, buffer, data_x, cmapper, pgs);
+ }
+}
+
static int
mem_transform_pixel_region_begin(gx_device *dev, int w, int h, int spp,
const gx_dda_fixed_point *pixels, const gx_dda_fixed_point *rows,
const gs_int_rect *clip, transform_pixel_region_posture posture,
mem_transform_pixel_region_state_t **statep)
{
+ gx_device_memory *mdev = (gx_device_memory *)dev;
mem_transform_pixel_region_state_t *state;
gs_memory_t *mem = dev->memory->non_gc_memory;
*statep = state = (mem_transform_pixel_region_state_t *)gs_alloc_bytes(mem, sizeof(mem_transform_pixel_region_state_t), "mem_transform_pixel_region_state_t");
@@ -1599,7 +1849,9 @@ mem_transform_pixel_region_begin(gx_device *dev, int w, int h, int spp,
if (state->posture == transform_pixel_region_portrait) {
#ifdef WITH_CAL
int factor;
- if (pixels->x.step.dQ == fixed_1*8 && pixels->x.step.dR == 0 && rows->y.step.dQ == fixed_1*8 && rows->y.step.dR == 0) {
+ if (mdev->is_planar) {
+ goto planar;
+ } else if (pixels->x.step.dQ == fixed_1*8 && pixels->x.step.dR == 0 && rows->y.step.dQ == fixed_1*8 && rows->y.step.dR == 0) {
state->render = mem_transform_pixel_region_render_portrait_1to8;
factor = 8;
goto use_doubler;
@@ -1634,11 +1886,18 @@ mem_transform_pixel_region_begin(gx_device *dev, int w, int h, int spp,
} else
no_cal:
#endif
- if (pixels->x.step.dQ == fixed_1 && pixels->x.step.dR == 0)
+ if (mdev->is_planar)
+#ifdef WITH_CAL
+planar:
+#endif
+ state->render = mem_transform_pixel_region_render_portrait_planar;
+ else if (pixels->x.step.dQ == fixed_1 && pixels->x.step.dR == 0)
state->render = mem_transform_pixel_region_render_portrait_1to1;
else
state->render = mem_transform_pixel_region_render_portrait;
- } else
+ } else if (mdev->is_planar)
+ state->render = mem_transform_pixel_region_render_landscape_planar;
+ else
state->render = mem_transform_pixel_region_render_landscape;
return 0;
diff --git a/base/gdevm1.c b/base/gdevm1.c
index f7381446..5c8e9c3d 100644
--- a/base/gdevm1.c
+++ b/base/gdevm1.c
@@ -293,10 +293,10 @@ mem_mono_strip_copy_rop2_dev(gx_device * dev, const byte * sdata,
int sx = sourcex;
int dx = x;
int w = width;
- const byte *trow = textures->data + (ty % textures->rep_height) * traster;
+ const byte *trow = textures->data + imod(ty, textures->rep_height) * traster;
int xoff = x_offset(phase_x, ty, textures);
int nw;
- int tx = (dx + xoff) % textures->rep_width;
+ int tx = imod(dx + xoff, textures->rep_width);
/* Loop over (horizontal) copies of the tile. */
for (; w > 0; sx += nw, dx += nw, w -= nw, tx = 0) {
@@ -322,10 +322,10 @@ mem_mono_strip_copy_rop2_dev(gx_device * dev, const byte * sdata,
for (; line_count-- > 0; drow += draster, ++ty) {
int dx = x;
int w = width;
- const byte *trow = textures->data + (ty % textures->rep_height) * traster;
+ const byte *trow = textures->data + imod(ty, textures->rep_height) * traster;
int xoff = x_offset(phase_x, ty, textures);
int nw;
- int tx = (dx + xoff) % textures->rep_width;
+ int tx = imod(dx + xoff, textures->rep_width);
/* Loop over (horizontal) copies of the tile. */
for (; w > 0; dx += nw, w -= nw, tx = 0) {
@@ -371,10 +371,10 @@ mem_mono_strip_copy_rop2_dev(gx_device * dev, const byte * sdata,
int sx = sourcex;
int dx = x;
int w = width;
- const byte *trow = textures->data + (ty % textures->rep_height) * traster;
+ const byte *trow = textures->data + imod(ty, textures->rep_height) * traster;
int xoff = x_offset(phase_x, ty, textures);
int nw;
- int tx = (dx + xoff) % textures->rep_width;
+ int tx = imod(dx + xoff, textures->rep_width);
/* Loop over (horizontal) copies of the tile. */
for (; w > 0; sx += nw, dx += nw, w -= nw, tx = 0) {
@@ -907,7 +907,7 @@ int tx, int y, int tw, int th, gx_color_index color0, gx_color_index color1,
fit_fill(dev, tx, y, tw, th);
invert = (uint)(-(int) color0);
source_raster = tiles->raster;
- source_data = tiles->data + ((y + py) % tiles->rep_height) * source_raster;
+ source_data = tiles->data + (imod(y + py, tiles->rep_height) * source_raster;
tile_bits_size = tiles->size.y * source_raster;
end = tiles->data + tile_bits_size;
#undef END_Y_LOOP
@@ -925,7 +925,7 @@ int tx, int y, int tw, int th, gx_color_index color0, gx_color_index color1,
* have source_x = 0.
*/
{
- int source_x = (x + px) % tiles->rep_width;
+ int source_x = imod(x + px, tiles->rep_width;
w = tiles->size.x - source_x;
bptr = source_data + ((source_x & ~chunk_align_bit_mask) >> 3);
diff --git a/base/gdevm24.c b/base/gdevm24.c
index 913f0028..3683bd95 100644
--- a/base/gdevm24.c
+++ b/base/gdevm24.c
@@ -33,7 +33,9 @@
/*#define USE_MEMCPY*/
/* Define debugging statistics. */
-#if defined(DEBUG) && !defined(GS_THREADSAFE)
+/* #define COLLECT_STATS_MEM24 */
+
+#ifdef COLLECT_STATS_MEM24
struct stats_mem24_s {
long
fill, fwide, fgray[101], fsetc, fcolor[101], fnarrow[5],
@@ -124,7 +126,7 @@ mem_true24_fill_rectangle(gx_device * dev,
*/
fit_fill_xywh(dev, x, y, w, h);
INCR(fill);
-#if defined(DEBUG) && !defined(GS_THREADSAFE)
+#ifdef COLLECT_STATS_MEM24
stats_mem24.ftotal += w;
#endif
if (w >= 5) {
@@ -206,7 +208,7 @@ mem_true24_fill_rectangle(gx_device * dev,
INCR(fsetc);
set_color24_cache(color, r, g, b);
}
-#if defined(DEBUG) && !defined(GS_THREADSAFE)
+#ifdef COLLECT_STATS_MEM24
{
int ci;
for (ci = 0; ci < prev_count; ++ci)
diff --git a/base/gdevm40.c b/base/gdevm40.c
index 31425f1a..18a0aaf2 100644
--- a/base/gdevm40.c
+++ b/base/gdevm40.c
@@ -21,7 +21,9 @@
#include "gdevmem.h" /* private definitions */
/* Define debugging statistics. */
-#if defined(DEBUG) && !defined(GS_THREADSAFE)
+/* #define COLLECT_STATS_MEM40 */
+
+#ifdef COLLECT_STATS_MEM40
struct stats_mem40_s {
long
fill, fwide, fgray[101], fsetc, fcolor[101], fnarrow[5],
@@ -116,7 +118,7 @@ mem_true40_fill_rectangle(gx_device * dev,
*/
fit_fill_xywh(dev, x, y, w, h);
INCR(fill);
-#if defined(DEBUG) && !defined(GS_THREADSAFE)
+#ifdef COLLECT_STATS_MEM40
stats_mem40.ftotal += w;
#endif
if (w >= 5) {
@@ -146,7 +148,7 @@ mem_true40_fill_rectangle(gx_device * dev,
INCR(fsetc);
set_color40_cache(color, a, b, c, d, e);
}
-#if defined(DEBUG) && !defined(GS_THREADSAFE)
+#ifdef COLLECT_STATS_MEM40
{
int ci;
for (ci = 0; ci < prev_count; ++ci)
diff --git a/base/gdevm48.c b/base/gdevm48.c
index 0a3d8a29..4782495e 100644
--- a/base/gdevm48.c
+++ b/base/gdevm48.c
@@ -21,7 +21,9 @@
#include "gdevmem.h" /* private definitions */
/* Define debugging statistics. */
-#if defined(DEBUG) && !defined(GS_THREADSAFE)
+/* #define COLLECT_STATS_MEM48 */
+
+#ifdef COLLECT_STATS_MEM48
struct stats_mem48_s {
long
fill, fwide, fgray[101], fsetc, fcolor[101], fnarrow[5],
@@ -113,7 +115,7 @@ mem_true48_fill_rectangle(gx_device * dev,
*/
fit_fill_xywh(dev, x, y, w, h);
INCR(fill);
-#if defined(DEBUG) && !defined(GS_THREADSAFE)
+#ifdef COLLECT_STATS_MEM48
stats_mem48.ftotal += w;
#endif
if (w >= 5) {
@@ -141,7 +143,7 @@ mem_true48_fill_rectangle(gx_device * dev,
INCR(fsetc);
set_color48_cache(color, a, b, c, d, e, f);
}
-#if defined(DEBUG) && !defined(GS_THREADSAFE)
+#ifdef COLLECT_STATS_MEM48
{
int ci;
for (ci = 0; ci < prev_count; ++ci)
diff --git a/base/gdevm56.c b/base/gdevm56.c
index 70cfd942..624c1689 100644
--- a/base/gdevm56.c
+++ b/base/gdevm56.c
@@ -21,7 +21,9 @@
#include "gdevmem.h" /* private definitions */
/* Define debugging statistics. */
-#if defined(DEBUG) && !defined(GS_THREADSAFE)
+/* #define COLLECT_STATS_MEM56 */
+
+#ifdef COLLECT_STATS_MEM56
struct stats_mem56_s {
long
fill, fwide, fgray[101], fsetc, fcolor[101], fnarrow[5],
@@ -123,7 +125,7 @@ mem_true56_fill_rectangle(gx_device * dev,
*/
fit_fill_xywh(dev, x, y, w, h);
INCR(fill);
-#if defined(DEBUG) && !defined(GS_THREADSAFE)
+#ifdef COLLECT_STATS_MEM56
stats_mem56.ftotal += w;
#endif
if (w >= 5) {
@@ -155,7 +157,7 @@ mem_true56_fill_rectangle(gx_device * dev,
INCR(fsetc);
set_color56_cache(color, a, b, c, d, e, f, g);
}
-#if defined(DEBUG) && !defined(GS_THREADSAFE)
+#ifdef COLLECT_STATS_MEM56
{
int ci;
for (ci = 0; ci < prev_count; ++ci)
diff --git a/base/gdevm64.c b/base/gdevm64.c
index a66c3c16..64e174af 100644
--- a/base/gdevm64.c
+++ b/base/gdevm64.c
@@ -21,7 +21,9 @@
#include "gdevmem.h" /* private definitions */
/* Define debugging statistics. */
-#if defined(DEBUG) && !defined(GS_THREADSAFE)
+/* #define COLLECT_STATS_MEM64 */
+
+#ifdef COLLECT_STATS_MEM64
struct stats_mem64_s {
long
fill, fwide, fgray[101], fsetc, fcolor[101], fnarrow[5],
@@ -104,7 +106,7 @@ mem_true64_fill_rectangle(gx_device * dev,
*/
fit_fill_xywh(dev, x, y, w, h);
INCR(fill);
-#if defined(DEBUG) && !defined(GS_THREADSAFE)
+#ifdef COLLECT_STATS_MEM64
stats_mem64.ftotal += w;
#endif
if (h <= 0)
@@ -112,7 +114,7 @@ mem_true64_fill_rectangle(gx_device * dev,
if (w >= 5) {
INCR(fwide);
setup_rect(dest);
-#if defined(DEBUG) && !defined(GS_THREADSAFE)
+#ifdef COLLECT_STATS_MEM64
{
int ci;
for (ci = 0; ci < prev_count; ++ci)
diff --git a/base/gdevmem.c b/base/gdevmem.c
index aa47dc95..8bf6c18b 100644
--- a/base/gdevmem.c
+++ b/base/gdevmem.c
@@ -375,13 +375,10 @@ gdev_mem_bits_size(const gx_device_memory * dev, int width, int height, ulong *p
ulong size;
int pi;
- if (dev->is_planar)
- {
- int has_tags = device_encodes_tags((const gx_device *)dev);
- num_planes = dev->color_info.num_components + has_tags;
+ if (dev->is_planar) {
+ num_planes = dev->color_info.num_components;
planes = dev->planes;
- }
- else
+ } else
planes = &plane1, plane1.depth = dev->color_info.depth, num_planes = 1;
for (size = 0, pi = 0; pi < num_planes; ++pi)
size += bitmap_raster_pad_align(width * planes[pi].depth, dev->pad, dev->log2_align_mod);
@@ -397,10 +394,9 @@ gdev_mem_bits_size(const gx_device_memory * dev, int width, int height, ulong *p
ulong
gdev_mem_line_ptrs_size(const gx_device_memory * dev, int width, int height)
{
- int has_tags = device_encodes_tags((const gx_device *)dev);
int num_planes = 1;
if (dev->is_planar)
- num_planes = dev->color_info.num_components + has_tags;
+ num_planes = dev->color_info.num_components;
return (ulong)height * sizeof(byte *) * num_planes;
}
int
diff --git a/base/gdevmpla.c b/base/gdevmpla.c
index 632610d3..79b29116 100644
--- a/base/gdevmpla.c
+++ b/base/gdevmpla.c
@@ -238,10 +238,12 @@ typedef struct mem_save_params_s {
mdev->base = msp.base,\
mdev->line_ptrs = msp.line_ptrs)
+/* Note tag_offset == 0 if there is no tag plane. Tags always follow the
+ color data, but not neccessarily right after. */
static int
put_image_copy_planes(gx_device * dev, const byte **base_ptr, int sourcex,
int sraster, gx_bitmap_id id,
- int x, int y, int w, int h)
+ int x, int y, int w, int h, int tag_offset)
{
gx_device_memory * const mdev = (gx_device_memory *)dev;
int plane_depth;
@@ -249,11 +251,16 @@ put_image_copy_planes(gx_device * dev, const byte **base_ptr, int sourcex,
const gdev_mem_functions *fns;
int code = 0;
uchar plane;
+ const byte *base;
+ int last_plane = mdev->color_info.num_components - 1;
MEM_SAVE_PARAMS(mdev, save);
for (plane = 0; plane < mdev->color_info.num_components; plane++)
{
- const byte *base = base_ptr[plane];
+ if (tag_offset && plane == last_plane)
+ base = base_ptr[tag_offset];
+ else
+ base = base_ptr[plane];
plane_depth = mdev->planes[plane].depth;
fns = gdev_mem_functions_for_bits(plane_depth);
if (base == NULL) {
@@ -286,7 +293,8 @@ mem_planar_put_image(gx_device *pdev, gx_device *pmdev, const byte **buffers, in
put_image_copy_planes(pdev, buffers, 0, row_stride,
gx_no_bitmap_id, xstart, ystart,
- width, height);
+ width, height, tag_plane_index);
+
/* we used all of the data */
return height;
}
@@ -1918,7 +1926,7 @@ mem_planar_strip_copy_rop2(gx_device * dev,
return gs_note_error(gs_error_VMerror);
}
for (j = 0; j < mdev->color_info.num_components; j++) {
- sbuf = (byte *)sdata + j * sraster;
+ sbuf = (byte *)sdata + j * sraster * planar_height;
for (i = height; i > 0; i--) {
*line_ptrs++ = sbuf;
sbuf += sraster;
@@ -1926,7 +1934,7 @@ mem_planar_strip_copy_rop2(gx_device * dev,
}
line_ptrs -= height * mdev->color_info.num_components;
planar_to_chunky(mdev, sourcex, 0, width, height,
- 0, chunky_sraster, buf, line_ptrs, planar_height);
+ 0, chunky_sraster, buf, line_ptrs, height);
gs_free_object(mdev->memory, line_ptrs, "mem_planar_strip_copy_rop(line_ptrs)");
code = mem_planar_strip_copy_rop2(dev, buf, 0, chunky_sraster,
id, scolors, textures, tcolors,
diff --git a/base/gdevmx.c b/base/gdevmx.c
index 08b0cbcf..89e9ff77 100644
--- a/base/gdevmx.c
+++ b/base/gdevmx.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 2001-2021 Artifex Software, Inc.
+/* Copyright (C) 2001-2022 Artifex Software, Inc.
All Rights Reserved.
This software is provided AS-IS with no warranty, either express or
@@ -25,4 +25,4 @@
/* The device descriptor. */
const gx_device_memory mem_x_device =
- mem_device("imagex", 256, 0, NULL);
+ mem_device("imagex", 256, 0, mem_initialize_device_procs);
diff --git a/base/gdevnfwd.c b/base/gdevnfwd.c
index f761750b..948bfa09 100644
--- a/base/gdevnfwd.c
+++ b/base/gdevnfwd.c
@@ -809,14 +809,14 @@ gx_forward_fill_linear_color_triangle(gx_device *dev, const gs_fill_attributes *
}
int
-gx_forward_update_spot_equivalent_colors(gx_device *dev, const gs_gstate * pgs)
+gx_forward_update_spot_equivalent_colors(gx_device *dev, const gs_gstate * pgs, const gs_color_space *pcs)
{
gx_device_forward * const fdev = (gx_device_forward *)dev;
gx_device *tdev = fdev->target;
int code = 0;
if (tdev != NULL)
- code = dev_proc(tdev, update_spot_equivalent_colors)(tdev, pgs);
+ code = dev_proc(tdev, update_spot_equivalent_colors)(tdev, pgs, pcs);
return code;
}
diff --git a/base/gdevp14.c b/base/gdevp14.c
index d7992bc4..124b66de 100644
--- a/base/gdevp14.c
+++ b/base/gdevp14.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 2001-2021 Artifex Software, Inc.
+/* Copyright (C) 2001-2022 Artifex Software, Inc.
All Rights Reserved.
This software is provided AS-IS with no warranty, either express or
@@ -926,7 +926,7 @@ template_transform_color_buffer(gs_gstate *pgs, pdf14_ctx *ctx, gx_device *dev,
rendering_params.graphics_type_tag = GS_IMAGE_TAG;
rendering_params.override_icc = false;
rendering_params.preserve_black = gsBKPRESNOTSPECIFIED;
- rendering_params.rendering_intent = gsPERCEPTUAL;
+ rendering_params.rendering_intent = gsRELATIVECOLORIMETRIC; /* Use relative intent */
rendering_params.cmm = gsCMM_DEFAULT;
icc_link = gsicc_get_link_profile(pgs, dev, src_profile, des_profile,
&rendering_params, pgs->memory, false);
@@ -1893,7 +1893,9 @@ static void pdf14_free_mask_stack(pdf14_ctx *ctx, gs_memory_t *memory)
pdf14_mask_t *curr_mask = mask_stack;
pdf14_mask_t *old_mask;
while (curr_mask != NULL) {
- rc_decrement(curr_mask->rc_mask, "pdf14_free_mask_stack");
+ /* Force to decrement until free */
+ while (curr_mask->rc_mask != NULL)
+ rc_decrement(curr_mask->rc_mask, "pdf14_free_mask_stack");
old_mask = curr_mask;
curr_mask = curr_mask->previous;
gs_free_object(old_mask->memory, old_mask, "pdf14_free_mask_stack");
@@ -2064,7 +2066,7 @@ pdf14_pop_transparency_mask(pdf14_ctx *ctx, gs_gstate *pgs, gx_device *dev)
rendering_params.graphics_type_tag = GS_IMAGE_TAG;
rendering_params.override_icc = false;
rendering_params.preserve_black = gsBKPRESNOTSPECIFIED;
- rendering_params.rendering_intent = gsPERCEPTUAL;
+ rendering_params.rendering_intent = gsRELATIVECOLORIMETRIC;
rendering_params.cmm = gsCMM_DEFAULT;
icc_link = gsicc_get_link_profile(pgs, dev, des_profile,
src_profile, &rendering_params, pgs->memory, false);
@@ -2514,6 +2516,7 @@ pdf14_put_image(gx_device * dev, gs_gstate * pgs, gx_device * target)
int i;
int alpha_offset, tag_offset;
const byte* buf_ptrs[GS_CLIENT_COLOR_MAX_COMPONENTS];
+ int rendering_intent_saved;
/* Nothing was ever drawn. */
if (buf == NULL)
@@ -2565,7 +2568,7 @@ pdf14_put_image(gx_device * dev, gs_gstate * pgs, gx_device * target)
/* Check if we have a color conversion issue */
des_profile = dev_target_profile->device_profile[GS_DEFAULT_DEVICE_PROFILE];
- if (pdev->using_blend_cs || !gsicc_profiles_equal(des_profile, src_profile))
+ if (!gsicc_profiles_equal(des_profile, src_profile))
color_mismatch = true;
/* Check if target supports alpha */
@@ -2720,11 +2723,16 @@ pdf14_put_image(gx_device * dev, gs_gstate * pgs, gx_device * target)
ctm_only_writable(pgs).yy = (float)height;
ctm_only_writable(pgs).tx = (float)rect.p.x;
ctm_only_writable(pgs).ty = (float)rect.p.y;
+ /* Make sure that the relative colorimetric rendering intent is
+ used for this image. */
+ rendering_intent_saved = pgs->renderingintent;
+ pgs->renderingintent = gsRELATIVECOLORIMETRIC;
code = dev_proc(target, begin_typed_image) (target,
pgs, NULL,
(gs_image_common_t *)&image,
NULL, NULL, NULL,
pgs->memory, &info);
+ pgs->renderingintent = rendering_intent_saved;
if (code < 0) {
rc_decrement_only_cs(pcs, "pdf14_put_image");
return code;
@@ -3178,13 +3186,15 @@ pdf14_put_blended_image_cmykspot(gx_device* dev, gx_device* target,
const byte* buf_ptrs[GS_CLIENT_COLOR_MAX_COMPONENTS];
int alpha_offset = num_comp;
int tag_offset = has_tags ? num_comp + 1 : 0;
- bool keep_native = pdev->overprint_sim && pdev->devn_params.page_spot_colors > 0;
gs_color_space *pcs;
gs_image1_t image;
gx_image_enum_common_t *info;
gx_image_plane_t planes[GS_IMAGE_MAX_COMPONENTS];
pdf14_buf *cm_result = NULL;
bool did_alloc;
+ bool target_sep_device = dev_proc(target, dev_spec_op)(target, gxdso_supports_devn, NULL, 0);
+ bool has_spots = pdev->ctx->num_spots > 0;
+ bool blend_spots = !target_sep_device && has_spots;
/* Check if group color space is CMYK based */
code = dev_proc(target, get_profile)(target, &dev_target_profile);
@@ -3201,10 +3211,10 @@ pdf14_put_blended_image_cmykspot(gx_device* dev, gx_device* target,
src_profile = pdf14dev_profile->device_profile[GS_DEFAULT_DEVICE_PROFILE];
}
- /* If we have spot colors and are doing overprint simulation and the source
- space is not CMYK due to a blending color space being used, then convert
- base colors to CMYK so that we can properly blend the spot colors */
- if (keep_native && src_profile->data_cs != gsCMYK) {
+ /* If the target device does not support spot colors and we have spot colors
+ here due to overprint simulation (blend_spots == true), then we will need to convert the base
+ colors to CMYK if it is RGB or Gray so tha we can blend in the spot colors */
+ if (blend_spots && src_profile->data_cs != gsCMYK) {
cm_result = pdf14_transform_color_buffer_no_matte(pgs, pdev->ctx, (gx_device *)dev, buf,
buf->data, src_profile, pgs->icc_manager->default_cmyk, 0, 0, buf->rect.q.x,
@@ -3223,7 +3233,7 @@ pdf14_put_blended_image_cmykspot(gx_device* dev, gx_device* target,
#if RAW_DUMP
buf_ptr = buf->data + (rect.p.y - buf->rect.p.y) * buf->rowstride + ((rect.p.x - buf->rect.p.x) << deep);
dump_raw_buffer(target->memory, height, width, buf->n_planes, planestride, rowstride,
- "post_to_cmyk_for_spot_blend", buf_ptr, deep);
+ "convertbase_to_cmyk_for_spot_blend", buf_ptr, deep);
global_index++;
#endif
}
@@ -3235,7 +3245,7 @@ pdf14_put_blended_image_cmykspot(gx_device* dev, gx_device* target,
/* Check if we have a color conversion issue */
des_profile = dev_target_profile->device_profile[GS_DEFAULT_DEVICE_PROFILE];
- if (pdev->using_blend_cs || !gsicc_profiles_equal(des_profile, src_profile))
+ if (!gsicc_profiles_equal(des_profile, src_profile))
color_mismatch = true;
/* Check if target supports alpha */
@@ -3322,10 +3332,12 @@ pdf14_put_blended_image_cmykspot(gx_device* dev, gx_device* target,
global_index++;
#endif
- /* Delay the baking to big endian if we have to do spots to CMYK still. We will take
- care of the conversion at that point */
if (color_mismatch && (src_profile->data_cs == gsRGB || src_profile->data_cs == gsGRAY)) {
if (deep) {
+ /* In this case, we are NOT going to bring the spots into the CMYK
+ equivalent colors, since otherwise src_profile would be CMYK based. So
+ 16 bit data will be converted now from native endian to big endian during
+ the blending process */
pdf14_blend_image_mixed_buffer16(buf_ptr, width, height, rowstride,
planestride, num_comp, src_profile->num_comps);
} else {
@@ -3334,6 +3346,12 @@ pdf14_put_blended_image_cmykspot(gx_device* dev, gx_device* target,
}
} else {
if (deep) {
+ /* In this case, if blend_spots == true, we will shortly be bringing
+ the spot colors to CMYK equivalent colors. It is at that time that
+ we will convert from native endian to big endian. In all other
+ cases this blending will due to conversion from native to BE */
+ bool keep_native = (blend_spots == true);
+
gx_blend_image_buffer16(buf_ptr, width, height, rowstride,
planestride, num_comp, bg, keep_native);
} else {
@@ -3348,9 +3366,13 @@ pdf14_put_blended_image_cmykspot(gx_device* dev, gx_device* target,
global_index++;
#endif
- /* If doing simulated overprint, Bring the spot color channels into
- CMYK. Data is planar and 16 bit data is still in native format. */
- if (pdev->overprint_sim && pdev->devn_params.page_spot_colors > 0) {
+ /* If doing simulated overprint and we are not going to a sep device and
+ we have spot colors, then bring the spot color channels into CMYK
+ (We should have already converted our base color space to CMYK if it was RGB or gray).
+ At this point, data is planar and 16 bit data is still in native format. It is
+ here that 16 bit data will be converted to BE. Otherwise it will have been converted
+ above during the alpha blend operation. */
+ if (blend_spots) {
cmyk_composite_map cmyk_map[GX_DEVICE_MAX_SEPARATIONS]; /* Fracs */
/* In the clist case, we need to get equiv spots out of the
@@ -3455,10 +3477,10 @@ pdf14_put_blended_image_cmykspot(gx_device* dev, gx_device* target,
}
/* Sep devices all support put_image (tiffsep and psdcmyk)
- as well as those devices that support alpha (pngalpha)
- If we are here, then we are doing an overprint simulation
- on some other device. Image data is aleady blended and in
- device color space. */
+ as well as those devices that support alpha (pngalpha,
+ png16malpha). If we are here, then we are doing an
+ overprint simulation on some other device. Image data
+ is aleady blended and in device color space. */
code = gs_cspace_build_ICC(&pcs, NULL, pgs->memory);
if (code < 0)
return code;
@@ -3787,6 +3809,9 @@ pdf14_output_page(gx_device * dev, int num_copies, int flush)
* parameters related to page size and resolution, but not any of the
* color-related parameters, as the pdf14 device retains its own color
* handling. This routine is parallel to gx_device_copy_params().
+ * Note that it DOES copy the devn_params since these are required to
+ * keep agreement with colorant name->number mapping, and don't change
+ * with the pdf14 color handling.
*/
static void
gs_pdf14_device_copy_params(gx_device *dev, const gx_device *target)
@@ -3794,6 +3819,7 @@ gs_pdf14_device_copy_params(gx_device *dev, const gx_device *target)
cmm_dev_profile_t *profile_targ;
cmm_dev_profile_t *profile_dev14;
pdf14_device *pdev = (pdf14_device*) dev;
+ cmm_profile_t *blend_profile = NULL;
int k;
COPY_PARAM(width);
@@ -3809,11 +3835,7 @@ gs_pdf14_device_copy_params(gx_device *dev, const gx_device *target)
COPY_PARAM(graphics_type_tag);
COPY_PARAM(interpolate_control);
memcpy(&(dev->space_params), &(target->space_params), sizeof(gdev_space_params));
- /* The PDF14 device copies only the default profile not the text etc.
- TODO: MJV. It has to make its own device structure but
- can grab a copy of the profile. This allows swapping of profiles
- in the PDF14 device without messing up the target device profile.
- Also if the device is using a blend color space it will grab that too */
+
if (dev->icc_struct == NULL) {
dev->icc_struct = gsicc_new_device_profile_array(dev);
profile_dev14 = dev->icc_struct;
@@ -3838,17 +3860,30 @@ gs_pdf14_device_copy_params(gx_device *dev, const gx_device *target)
dev->icc_struct->usefastcolor = profile_targ->usefastcolor;
dev->icc_struct->blacktext = profile_targ->blacktext;
- if (pdev->using_blend_cs) {
- /* Swap the device profile and the blend profile. */
- gsicc_adjust_profile_rc(profile_targ->device_profile[GS_DEFAULT_DEVICE_PROFILE],
- 1, "gs_pdf14_device_copy_params");
- gsicc_adjust_profile_rc(profile_targ->blend_profile, 1, "gs_pdf14_device_copy_params");
- gsicc_adjust_profile_rc(profile_dev14->device_profile[GS_DEFAULT_DEVICE_PROFILE],
- -1, "gs_pdf14_device_copy_params");
- gsicc_adjust_profile_rc(profile_dev14->blend_profile, -1, "gs_pdf14_device_copy_params");
- profile_dev14->blend_profile = profile_targ->device_profile[GS_DEFAULT_DEVICE_PROFILE];
- profile_dev14->device_profile[GS_DEFAULT_DEVICE_PROFILE] = profile_targ->blend_profile;
+ switch (pdev->blend_cs_state) {
+ case PDF14_BLEND_CS_UNSPECIFIED:
+ case PDF14_BLEND_CS_TARGET_CIELAB:
+ /* PDF14_BLEND_CS_TARGET_CIELAB handled
+ during the device push, when we have
+ access to the pgs */
+ break;
+ case PDF14_BLEND_CS_OUTPUTINTENT:
+ blend_profile = profile_targ->oi_profile;
+ break;
+ case PDF14_BLEND_CS_SPECIFIED:
+ blend_profile = profile_targ->blend_profile;
+ break;
+ default:
+ break;
+ }
+
+ if (blend_profile != NULL) {
+ /* Set the device profile to the blend profile. Note only default profile is set */
+ gsicc_adjust_profile_rc(blend_profile, 1, "gs_pdf14_device_copy_params");
+ gsicc_adjust_profile_rc(profile_dev14->device_profile[GS_DEFAULT_DEVICE_PROFILE], -1, "gs_pdf14_device_copy_params");
+ profile_dev14->device_profile[GS_DEFAULT_DEVICE_PROFILE] = blend_profile;
}
+
profile_dev14->overprint_control = profile_targ->overprint_control;
}
#undef COPY_ARRAY_PARAM
@@ -5542,24 +5577,56 @@ pdf14_disable_device(gx_device * dev)
*/
static pdf14_default_colorspace_t
pdf14_determine_default_blend_cs(gx_device * pdev, bool use_pdf14_accum,
- bool *using_blend_cs)
+ pdf14_blend_cs_t *blend_cs_state)
{
/* If a blend color space was specified, then go ahead and use that to
define the default color space for the blend modes. Only Gray, RGB
or CMYK blend color spaces are allowed. Note we do not allow this
setting if we are dealing with a separation device. */
cmm_dev_profile_t *dev_profile;
+ cmm_profile_t *blend_profile = NULL;
+ pdf14_blend_cs_t temp_cs_state = PDF14_BLEND_CS_UNSPECIFIED;
int code = dev_proc(pdev, get_profile)(pdev, &dev_profile);
bool valid_blend_cs = false;
- *using_blend_cs = false;
-
- /* Make sure any specified blend color space is valid along with other cond */
- if (code == 0 && dev_profile->blend_profile != NULL && !use_pdf14_accum) {
- if (!dev_profile->blend_profile->isdevlink &&
- !dev_profile->blend_profile->islab &&
- (dev_profile->blend_profile->data_cs == gsGRAY ||
- dev_profile->blend_profile->data_cs == gsRGB ||
- dev_profile->blend_profile->data_cs == gsCMYK)) {
+
+ *blend_cs_state = PDF14_BLEND_CS_UNSPECIFIED;
+
+ /* Are we using a blend color space or the output intent color space? Also
+ is there a conflict in the settings. i.e. has someone set a blend color
+ space and tried to use the output intent with simulate overprint setting.
+ */
+ if (dev_profile->overprint_control == gs_overprint_control_simulate &&
+ dev_profile->oi_profile != NULL &&
+ !gsicc_profiles_equal(dev_profile->oi_profile, dev_profile->device_profile[GS_DEFAULT_DEVICE_PROFILE])) {
+ /* If blend profile is also set, throw a warning about output intent not being used. We have
+ possible conflicting command line settings and we will err on using the blend profile
+ if one was specified. */
+ if (dev_profile->blend_profile != NULL &&
+ !gsicc_profiles_equal(dev_profile->blend_profile, dev_profile->oi_profile)) {
+ blend_profile = dev_profile->blend_profile;
+ temp_cs_state = PDF14_BLEND_CS_SPECIFIED;
+ emprintf(pdev->memory, "Warning: OI profile not used for blending CS\n");
+ } else {
+ /* All good, use the output intent profile as we have one
+ and are doing simulate overprint with a different device
+ profile set. */
+ blend_profile = dev_profile->oi_profile;
+ temp_cs_state = PDF14_BLEND_CS_OUTPUTINTENT;
+ }
+ } else if (dev_profile->blend_profile != NULL &&
+ !gsicc_profiles_equal(dev_profile->blend_profile, dev_profile->device_profile[GS_DEFAULT_DEVICE_PROFILE])) {
+ /* Blend profile is different than device profile */
+ blend_profile = dev_profile->blend_profile;
+ temp_cs_state = PDF14_BLEND_CS_SPECIFIED;
+ }
+
+ /* Make sure any blend color space is valid along with other cond */
+ if (code == 0 && blend_profile != NULL && !use_pdf14_accum) {
+ if (!blend_profile->isdevlink &&
+ !blend_profile->islab &&
+ (blend_profile->data_cs == gsGRAY ||
+ blend_profile->data_cs == gsRGB ||
+ blend_profile->data_cs == gsCMYK)) {
/* Also, do not allow the use of the blend space when we are pushing
a pattern pdf14 device. Those should inherit from the parent */
if (!(gx_device_is_pattern_clist(pdev) ||
@@ -5579,8 +5646,8 @@ pdf14_determine_default_blend_cs(gx_device * pdev, bool use_pdf14_accum,
* and 3 colorants for DeviceRGB.
*/
if (valid_blend_cs) {
- *using_blend_cs = true;
- switch (dev_profile->blend_profile->num_comps) {
+ *blend_cs_state = temp_cs_state;
+ switch (blend_profile->num_comps) {
case 1:
return PDF14_DeviceGray;
case 3:
@@ -5626,8 +5693,8 @@ pdf14_determine_default_blend_cs(gx_device * pdev, bool use_pdf14_accum,
if (num_cmyk_used == 4 && pdev->color_info.num_components == 4
&& pdev->color_info.max_components == 4) {
if (valid_blend_cs) {
- *using_blend_cs = true;
- switch (dev_profile->blend_profile->num_comps) {
+ *blend_cs_state = temp_cs_state;
+ switch (blend_profile->num_comps) {
case 1:
return PDF14_DeviceGray;
case 3:
@@ -5650,6 +5717,8 @@ pdf14_determine_default_blend_cs(gx_device * pdev, bool use_pdf14_accum,
/*
* Otherewise we use a CMYK plus spot colors for blending.
*/
+ if (valid_blend_cs)
+ *blend_cs_state = temp_cs_state;
return PDF14_DeviceCMYKspot;
}
}
@@ -5667,16 +5736,16 @@ get_pdf14_device_proto(gx_device *dev,
const gs_pdf14trans_t *pdf14pct,
bool use_pdf14_accum)
{
- bool using_blend_cs;
+ pdf14_blend_cs_t blend_cs_state;
pdf14_default_colorspace_t dev_cs =
pdf14_determine_default_blend_cs(dev, use_pdf14_accum,
- &using_blend_cs);
+ &blend_cs_state);
bool deep = device_is_deep(dev);
int num_spots = pdf14pct->params.num_spot_colors;
/* overprint overide */
- if (pdf14pct->params.overprint_sim_push) {
- using_blend_cs = false;
+ if (pdf14pct->params.overprint_sim_push &&
+ blend_cs_state == PDF14_BLEND_CS_UNSPECIFIED) {
if (pdf14pct->params.num_spot_colors_int > 0) {
dev_cs = PDF14_DeviceCMYKspot;
num_spots = pdf14pct->params.num_spot_colors_int;
@@ -5720,7 +5789,6 @@ get_pdf14_device_proto(gx_device *dev,
* for the page.
*/
if (num_spots >= 0) {
- pdevproto->devn_params.page_spot_colors = num_spots;
pdevproto->color_info.num_components =
pdevproto->devn_params.num_std_colorant_names + num_spots;
if (pdevproto->color_info.num_components > GS_CLIENT_COLOR_MAX_COMPONENTS)
@@ -5750,7 +5818,7 @@ get_pdf14_device_proto(gx_device *dev,
return_error(gs_error_rangecheck);
}
pdevproto->initialize_device_procs((gx_device *)pdevproto);
- pdevproto->using_blend_cs = using_blend_cs;
+ pdevproto->blend_cs_state = blend_cs_state;
pdevproto->overprint_sim = pdf14pct->params.overprint_sim_push;
return 0;
}
@@ -5761,9 +5829,9 @@ get_pdf14_device_proto(gx_device *dev,
bool
pdf14_ok_to_optimize(gx_device *dev)
{
- bool using_blend_cs;
+ pdf14_blend_cs_t blend_cs_state;
pdf14_default_colorspace_t pdf14_cs =
- pdf14_determine_default_blend_cs(dev, false, &using_blend_cs);
+ pdf14_determine_default_blend_cs(dev, false, &blend_cs_state);
gsicc_colorbuffer_t dev_icc_cs;
bool ok = false;
int tag_depth = device_encodes_tags(dev) ? 8 : 0;
@@ -5848,6 +5916,7 @@ pdf14_recreate_device(gs_memory_t *mem, gs_gstate * pgs,
pdev->is_planar = true;
else
pdev->is_planar = target->is_planar;
+ pdev->interpolate_threshold = dev_proc(target, dev_spec_op)(target, gxdso_interpolate_threshold, NULL, 0);
pdev->procs = dev_proto.procs;
if (deep) {
@@ -5955,7 +6024,7 @@ gx_update_pdf14_compositor(gx_device * pdev, gs_gstate * pgs,
break;
case PDF14_BEGIN_TRANS_MASK:
code = gx_begin_transparency_mask(pgs, pdev, &params);
- if (code >= 0)
+ if (code >= 0 && params.subtype != TRANSPARENCY_MASK_None)
p14dev->in_smask_construction++;
break;
case PDF14_END_TRANS_MASK:
@@ -6843,6 +6912,7 @@ pdf14_pop_color_model(gx_device* dev, pdf14_group_color_t* group_color)
pdev->blend_procs = group_color->blend_procs;
pdev->ctx->additive = group_color->isadditive;
pdev->pdf14_procs = group_color->unpack_procs;
+ pdev->color_info.opmsupported = GX_CINFO_OPMSUPPORTED_UNKNOWN;
pdev->color_info.depth = group_color->depth;
pdev->color_info.max_color = group_color->max_color;
pdev->color_info.max_gray = group_color->max_gray;
@@ -7087,6 +7157,7 @@ pdf14_push_color_model(gx_device *dev, gs_transparency_color_t group_color_type,
group_color->polarity = pdev->color_info.polarity = new_polarity;
group_color->num_components = pdev->color_info.num_components = new_num_comps;
group_color->isadditive = pdev->ctx->additive = new_additive;
+ pdev->color_info.opmsupported = GX_CINFO_OPMSUPPORTED_UNKNOWN;
group_color->unpack_procs = pdev->pdf14_procs = new_14procs;
pdev->color_info.depth = new_num_comps * (8<<deep);
memset(&(pdev->color_info.comp_bits), 0, GX_DEVICE_COLOR_MAX_COMPONENTS);
@@ -7158,6 +7229,9 @@ pdf14_clist_push_color_model(gx_device *dev, gx_device* cdev, gs_gstate *pgs,
new_group_color = gs_alloc_struct(dev->memory->stable_memory, pdf14_group_color_t,
&st_pdf14_clr, "pdf14_clist_push_color_model");
+ if (new_group_color == NULL)
+ return_error(gs_error_VMerror);
+
/* Link to old one */
new_group_color->previous = pdev->color_model_stack;
@@ -7378,6 +7452,7 @@ pdf14_clist_push_color_model(gx_device *dev, gx_device* cdev, gs_gstate *pgs,
memcpy(&(pdev->color_info.comp_bits), comp_bits, new_num_comps);
memcpy(&(pdev->color_info.comp_shift), comp_shift, new_num_comps);
pdev->color_info.comp_shift[new_num_comps] = new_depth - 8; /* in case we has_tags is set */
+ pdev->color_info.opmsupported = GX_CINFO_OPMSUPPORTED_UNKNOWN;
/* If we have a compressed color codec, and we are doing a soft mask
push operation then go ahead and update the color encode and
@@ -7388,6 +7463,7 @@ pdf14_clist_push_color_model(gx_device *dev, gx_device* cdev, gs_gstate *pgs,
we add it in to catch for future use. */
cldev->clist_color_info.depth = pdev->color_info.depth;
cldev->clist_color_info.polarity = pdev->color_info.polarity;
+ cldev->clist_color_info.opmsupported = GX_CINFO_OPMSUPPORTED_UNKNOWN;
cldev->clist_color_info.num_components = pdev->color_info.num_components;
cldev->clist_color_info.max_color = pdev->color_info.max_color;
cldev->clist_color_info.max_gray = pdev->color_info.max_gray;
@@ -7415,7 +7491,7 @@ pdf14_clist_pop_color_model(gx_device *dev, gs_gstate *pgs)
gx_device_clist_writer * cldev = (gx_device_clist_writer *)pdev->pclist_device;
if (group_color == NULL)
- return_error(gs_error_unknownerror); /* Unmatched group pop */
+ return_error(gs_error_Fatal); /* Unmatched group pop */
if_debug0m('v', pdev->memory, "[v]pdf14_clist_pop_color_model\n");
/* The color procs are always pushed. Simply restore them. */
@@ -7431,6 +7507,7 @@ pdf14_clist_pop_color_model(gx_device *dev, gs_gstate *pgs)
set_dev_proc(pdev, get_color_mapping_procs, group_color->group_color_mapping_procs);
set_dev_proc(pdev, get_color_comp_index, group_color->group_color_comp_index);
pdev->color_info.polarity = group_color->polarity;
+ pdev->color_info.opmsupported = GX_CINFO_OPMSUPPORTED_UNKNOWN;
pdev->color_info.depth = group_color->depth;
pdev->color_info.num_components = group_color->num_components;
pdev->blend_procs = group_color->blend_procs;
@@ -7443,11 +7520,13 @@ pdf14_clist_pop_color_model(gx_device *dev, gs_gstate *pgs)
GX_DEVICE_COLOR_MAX_COMPONENTS);
memcpy(&(pdev->color_info.comp_shift),&(group_color->comp_shift),
GX_DEVICE_COLOR_MAX_COMPONENTS);
+
/* clist writer fill rect has no access to gs_gstate */
/* and it forwards the target device. this information */
/* is passed along to use in this case */
cldev->clist_color_info.depth = pdev->color_info.depth;
cldev->clist_color_info.polarity = pdev->color_info.polarity;
+ cldev->clist_color_info.opmsupported = GX_CINFO_OPMSUPPORTED_UNKNOWN;
cldev->clist_color_info.num_components = pdev->color_info.num_components;
cldev->clist_color_info.max_color = pdev->color_info.max_color;
cldev->clist_color_info.max_gray = pdev->color_info.max_gray;
@@ -7616,6 +7695,7 @@ pdf14_end_transparency_mask(gx_device *dev, gs_gstate *pgs)
set_dev_proc(pdev, get_color_mapping_procs, group_color->group_color_mapping_procs);
set_dev_proc(pdev, get_color_comp_index, group_color->group_color_comp_index);
pdev->color_info.polarity = group_color->polarity;
+ pdev->color_info.opmsupported = GX_CINFO_OPMSUPPORTED_UNKNOWN;
pdev->color_info.num_components = group_color->num_components;
pdev->color_info.depth = group_color->depth;
pdev->blend_procs = group_color->blend_procs;
@@ -7681,6 +7761,12 @@ do_mark_fill_rectangle_ko_simple(gx_device *dev, int x, int y, int w, int h,
gx_color_index comps;
bool has_backdrop = buf->backdrop != NULL;
+ /* If we are going out to a CMYK or CMYK + spots pdf14 device (i.e.
+ subtractive) and we are doing overprint with drawn_comps == 0
+ then this is a no-operation */
+ if (overprint && drawn_comps == 0 && !buf->group_color_info->isadditive)
+ return 0;
+
if (buf->data == NULL)
return 0;
#if 0
@@ -7700,6 +7786,9 @@ do_mark_fill_rectangle_ko_simple(gx_device *dev, int x, int y, int w, int h,
* color spaces.
*/
if (devn) {
+ if (has_tags) {
+ curr_tag = pdc->tag;
+ }
if (additive) {
for (j = 0; j < num_comp; j++) {
src[j] = ((pdc->colors.devn.values[j]) >> shift & mask);
@@ -7709,8 +7798,15 @@ do_mark_fill_rectangle_ko_simple(gx_device *dev, int x, int y, int w, int h,
src[j] = 255 - ((pdc->colors.devn.values[j]) >> shift & mask);
}
}
- } else
+ } else {
+ if (has_tags) {
+ curr_tag = (color >> (num_comp * 8)) & 0xff;
+ }
pdev->pdf14_procs->unpack_color(num_comp, color, pdev, src);
+ }
+
+ if (!has_tags)
+ tag_off = 0;
src_alpha = src[num_comp] = (byte)floor (255 * pdev->alpha + 0.5);
if (has_shape) {
@@ -7718,11 +7814,7 @@ do_mark_fill_rectangle_ko_simple(gx_device *dev, int x, int y, int w, int h,
} else {
shape_off = 0;
}
- if (has_tags) {
- curr_tag = (color >> (num_comp*8)) & 0xff;
- } else {
- tag_off = 0;
- }
+
if (!has_alpha_g)
alpha_g_off = 0;
src_alpha = 255 - src_alpha;
@@ -7818,8 +7910,6 @@ do_mark_fill_rectangle_ko_simple(gx_device *dev, int x, int y, int w, int h,
dst_ptr[num_comp * planestride] = dst[num_comp];
}
if (tag_off) {
- /* FIXME: As we are knocking out, possibly, we should be
- * always overwriting tag values here? */
/* If src alpha is 100% then set to curr_tag, else or */
/* other than Normal BM, we always OR */
if (src[num_comp] == 255 && tag_blend) {
@@ -7892,6 +7982,12 @@ do_mark_fill_rectangle_ko_simple16(gx_device *dev, int x, int y, int w, int h,
gx_color_index comps;
bool has_backdrop = buf->backdrop != NULL;
+ /* If we are going out to a CMYK or CMYK + spots pdf14 device (i.e.
+ subtractive) and we are doing overprint with drawn_comps == 0
+ then this is a no-operation */
+ if (overprint && drawn_comps == 0 && !buf->group_color_info->isadditive)
+ return 0;
+
if (buf->data == NULL)
return 0;
#if 0
@@ -7911,6 +8007,9 @@ do_mark_fill_rectangle_ko_simple16(gx_device *dev, int x, int y, int w, int h,
* color spaces.
*/
if (devn) {
+ if (has_tags) {
+ curr_tag = pdc->tag;
+ }
if (additive) {
for (j = 0; j < num_comp; j++) {
src[j] = pdc->colors.devn.values[j];
@@ -7920,8 +8019,12 @@ do_mark_fill_rectangle_ko_simple16(gx_device *dev, int x, int y, int w, int h,
src[j] = 65535 - pdc->colors.devn.values[j];
}
}
- } else
+ } else {
+ if (has_tags) {
+ curr_tag = (color >> (num_comp * 16)) & 0xff;
+ }
pdev->pdf14_procs->unpack_color16(num_comp, color, pdev, src);
+ }
src_alpha = src[num_comp] = (uint16_t)floor (65535 * pdev->alpha + 0.5);
if (has_shape) {
@@ -7929,11 +8032,11 @@ do_mark_fill_rectangle_ko_simple16(gx_device *dev, int x, int y, int w, int h,
} else {
shape_off = 0;
}
- if (has_tags) {
- curr_tag = (color >> (num_comp*16)) & 0xff;
- } else {
+
+ if (!has_tags) {
tag_off = 0;
}
+
if (!has_alpha_g)
alpha_g_off = 0;
src_alpha = 65535 - src_alpha;
@@ -8509,8 +8612,20 @@ pdf14_dev_spec_op(gx_device *pdev, int dev_spec_op,
rc_decrement_only(tdev, "pdf14_dev_spec_op");
return 0;
}
+ if (dev_spec_op == gxdso_interpolate_threshold)
+ return p14dev->interpolate_threshold;
- return dev_proc(p14dev->target, dev_spec_op)(p14dev->target, dev_spec_op, data, size);
+ if (dev_spec_op == gxdso_overprintsim_state) {
+ unsigned char *data_uchar = (unsigned char *) data;
+ data_uchar[0] = (unsigned char) p14dev->overprint_sim;
+ if (p14dev->ctx != NULL)
+ data_uchar[1] = (unsigned char)p14dev->ctx->num_spots; /* pdf14 page device */
+ else
+ data_uchar[1] = (unsigned char)p14dev->devn_params.page_spot_colors; /* pdf14 clist device */
+ return 1;
+ }
+
+ return dev_proc(p14dev->target, dev_spec_op)(p14dev->target, dev_spec_op, data, size);
}
/* Needed to set color monitoring in the target device's profile */
@@ -8596,6 +8711,7 @@ gs_pdf14_device_push(gs_memory_t *mem, gs_gstate * pgs,
p14dev->is_planar = true;
else
p14dev->is_planar = target->is_planar;
+ p14dev->interpolate_threshold = dev_proc(target, dev_spec_op)(target, gxdso_interpolate_threshold, NULL, 0);
p14dev->alpha = 1.0;
p14dev->shape = 1.0;
@@ -8618,7 +8734,9 @@ gs_pdf14_device_push(gs_memory_t *mem, gs_gstate * pgs,
we will convert from RGB to CIELAB. Need to check that we have a
default profile, which will not be the case if we are coming from the clist reader */
if ((icc_profile->data_cs == gsCIELAB || icc_profile->islab)
- && pgs->icc_manager->default_rgb != NULL && !p14dev->using_blend_cs) {
+ && pgs->icc_manager->default_rgb != NULL &&
+ p14dev->blend_cs_state == PDF14_BLEND_CS_UNSPECIFIED) {
+ p14dev->blend_cs_state = PDF14_BLEND_CS_TARGET_CIELAB;
gsicc_adjust_profile_rc(pgs->icc_manager->default_rgb, 1, "gs_pdf14_device_push");
gsicc_adjust_profile_rc(p14dev->icc_struct->device_profile[GS_DEFAULT_DEVICE_PROFILE],
-1, "gs_pdf14_device_push");
@@ -8637,7 +8755,7 @@ gs_pdf14_device_push(gs_memory_t *mem, gs_gstate * pgs,
/* The number of color planes should not exceed that of the target.
Unless we are using a blend CS */
- if (!(p14dev->using_blend_cs || p14dev->overprint_sim)) {
+ if (!(p14dev->blend_cs_state != PDF14_BLEND_CS_UNSPECIFIED || p14dev->overprint_sim)) {
if (p14dev->color_info.num_components > target->color_info.num_components)
p14dev->color_info.num_components = target->color_info.num_components;
if (p14dev->color_info.max_components > target->color_info.max_components)
@@ -8660,7 +8778,14 @@ gs_pdf14_device_push(gs_memory_t *mem, gs_gstate * pgs,
p14dev->color_info.comp_shift[p14dev->color_info.num_components] = p14dev->color_info.depth;
p14dev->color_info.depth += 8;
}
-
+ /* if the device has separations already defined (by SeparationOrderNames) */
+ /* we need to copy them (allocating new names) so the colorants are in the */
+ /* same order as the target device. */
+ if (dev_proc(target, dev_spec_op)(target, gxdso_supports_devn, NULL, 0)) {
+ code = devn_copy_params(target, (gx_device *)p14dev);
+ if (code < 0)
+ return code;
+ }
/* by definition pdf14_encode _is_ standard */
p14dev->color_info.separable_and_linear = GX_CINFO_SEP_LIN_STANDARD;
gx_device_fill_in_procs((gx_device *)p14dev);
@@ -8742,7 +8867,14 @@ gs_pdf14_device_push(gs_memory_t *mem, gs_gstate * pgs,
new_target->PageHandlerPushed = true;
new_target->ObjectHandlerPushed = true;
-
+ /* if the device has separations already defined (by SeparationOrderNames) */
+ /* we need to copy them (allocating new names) so the colorants are in the */
+ /* same order as the target device. */
+ if (dev_proc(target, dev_spec_op)(target, gxdso_supports_devn, NULL, 0)) {
+ code = devn_copy_params(target, (gx_device *)pdev);
+ if (code < 0)
+ return code;
+ }
/* UsePlanarBuffer is true in case this is CMYKspot */
if ((code = gdev_prn_open_planar(new_target, UsePlanarBuffer)) < 0 ||
!PRINTER_IS_CLIST((gx_device_printer *)new_target)) {
@@ -9302,9 +9434,9 @@ c_pdf14trans_create_default_compositor(const gs_composite_t * pct,
code = 1;
break;
default:
- /* No other compositor actions are allowed if this isn't a pdf14 compositor */
+ /* No other compositor actions are allowed if this isn't a pdf14 compositor */
*pp14dev = NULL;
- return_error(gs_error_unregistered);
+ return_error(gs_error_unregistered);
}
return code;
}
@@ -9647,7 +9779,7 @@ pdf14_clist_init_procs(gx_device *dev,
set_dev_proc(dev, decode_color, pdf14_decode_color);
set_dev_proc(dev, fill_rectangle_hl_color, gx_forward_fill_rectangle_hl_color);
set_dev_proc(dev, update_spot_equivalent_colors, gx_forward_update_spot_equivalent_colors);
- set_dev_proc(dev, ret_devn_params, gx_forward_ret_devn_params);
+ set_dev_proc(dev, ret_devn_params, pdf14_ret_devn_params);
set_dev_proc(dev, fillpage, gx_forward_fillpage);
set_dev_proc(dev, push_transparency_state, pdf14_push_transparency_state);
set_dev_proc(dev, pop_transparency_state, pdf14_pop_transparency_state);
@@ -9813,17 +9945,17 @@ get_pdf14_clist_device_proto(gx_device *dev,
const gs_pdf14trans_t *pdf14pct,
bool use_pdf14_accum)
{
- bool using_blend_cs;
+ pdf14_blend_cs_t blend_cs_state;
pdf14_default_colorspace_t dev_cs =
pdf14_determine_default_blend_cs(dev, use_pdf14_accum,
- &using_blend_cs);
+ &blend_cs_state);
bool has_tags = device_encodes_tags(dev);
bool deep = device_is_deep(dev);
int num_spots = pdf14pct->params.num_spot_colors;
/* overprint overide */
- if (pdf14pct->params.overprint_sim_push) {
- using_blend_cs = false;
+ if (pdf14pct->params.overprint_sim_push &&
+ blend_cs_state == PDF14_BLEND_CS_UNSPECIFIED) {
if (pdf14pct->params.num_spot_colors_int > 0) {
dev_cs = PDF14_DeviceCMYKspot;
num_spots = pdf14pct->params.num_spot_colors_int;
@@ -9924,7 +10056,7 @@ get_pdf14_clist_device_proto(gx_device *dev,
return_error(gs_error_rangecheck);
}
pdevproto->overprint_sim = pdf14pct->params.overprint_sim_push;
- pdevproto->using_blend_cs = using_blend_cs;
+ pdevproto->blend_cs_state = blend_cs_state;
return 0;
}
@@ -9962,7 +10094,7 @@ pdf14_create_clist_device(gs_memory_t *mem, gs_gstate * pgs,
/* If we are not using a blending color space, the number of color planes
should not exceed that of the target */
- if (!(pdev->using_blend_cs || pdev->overprint_sim)) {
+ if (!(pdev->blend_cs_state != PDF14_BLEND_CS_UNSPECIFIED || pdev->overprint_sim)) {
if (pdev->color_info.num_components > target->color_info.num_components)
pdev->color_info.num_components = target->color_info.num_components;
if (pdev->color_info.max_components > target->color_info.max_components)
@@ -9976,6 +10108,7 @@ pdf14_create_clist_device(gs_memory_t *mem, gs_gstate * pgs,
pdev->is_planar = true;
else
pdev->is_planar = target->is_planar;
+ pdev->interpolate_threshold = dev_proc(target, dev_spec_op)(target, gxdso_interpolate_threshold, NULL, 0);
pdev->op_state = pgs->is_fill_color ? PDF14_OP_STATE_FILL : PDF14_OP_STATE_NONE;
@@ -10029,7 +10162,8 @@ pdf14_create_clist_device(gs_memory_t *mem, gs_gstate * pgs,
proper blending. During put_image we will convert from RGB to
CIELAB */
if ((target_profile->data_cs == gsCIELAB || target_profile->islab) &&
- !pdev->using_blend_cs) {
+ pdev->blend_cs_state != PDF14_BLEND_CS_UNSPECIFIED) {
+ pdev->blend_cs_state = PDF14_BLEND_CS_TARGET_CIELAB;
rc_assign(pdev->icc_struct->device_profile[GS_DEFAULT_DEVICE_PROFILE],
pgs->icc_manager->default_rgb, "pdf14_create_clist_device");
}
@@ -10043,7 +10177,14 @@ pdf14_create_clist_device(gs_memory_t *mem, gs_gstate * pgs,
pdev->target_support_devn = pdev->icc_struct->supports_devn;
pdev->icc_struct->supports_devn = true; /* Reset when pdf14 device is disabled */
}
-
+ /* if the device has separations already defined (by SeparationOrderNames) */
+ /* we need to copy them (allocating new names) so the colorants are in the */
+ /* same order as the target device. */
+ if (dev_proc(target, dev_spec_op)(target, gxdso_supports_devn, NULL, 0)) {
+ code = devn_copy_params(target, (gx_device *)pdev);
+ if (code < 0)
+ return code;
+ }
pdev->my_encode_color = dev_proc(pdev, encode_color);
pdev->my_decode_color = dev_proc(pdev, decode_color);
pdev->my_get_color_mapping_procs = dev_proc(pdev, get_color_mapping_procs);
@@ -10114,6 +10255,7 @@ pdf14_recreate_clist_device(gs_memory_t *mem, gs_gstate * pgs,
pdev->is_planar = true;
else
pdev->is_planar = target->is_planar;
+ pdev->interpolate_threshold = dev_proc(target, dev_spec_op)(target, gxdso_interpolate_threshold, NULL, 0);
pdev->color_info.separable_and_linear = GX_CINFO_SEP_LIN_STANDARD;
gx_device_fill_in_procs((gx_device *)pdev);
@@ -10214,33 +10356,31 @@ pdf14_accum_get_color_mapping_procs(const gx_device * dev, const gx_device **map
* Device proc for updating the equivalent CMYK color for spot colors.
*/
static int
-pdf14_accum_update_spot_equivalent_colors(gx_device * dev, const gs_gstate * pgs)
+pdf14_accum_update_spot_equivalent_colors(gx_device * dev, const gs_gstate * pgs, const gs_color_space *pcs)
{
gx_device_pdf14_accum *pdev = (gx_device_pdf14_accum *)dev;
gx_device *tdev = ((pdf14_device *)(pdev->save_p14dev))->target;
- int code = update_spot_equivalent_cmyk_colors(dev, pgs, &pdev->devn_params,
+ int code = update_spot_equivalent_cmyk_colors(dev, pgs, pcs, &pdev->devn_params,
&pdev->equiv_cmyk_colors);
if (code >= 0 && tdev != NULL)
- code = dev_proc(tdev, update_spot_equivalent_colors)(tdev, pgs);
+ code = dev_proc(tdev, update_spot_equivalent_colors)(tdev, pgs, pcs);
return code;
}
/* Used when doing overprint simulation and have spot colors */
static int
-pdf14_update_spot_equivalent_colors(gx_device *dev, const gs_gstate *pgs)
+pdf14_update_spot_equivalent_colors(gx_device *dev, const gs_gstate *pgs, const gs_color_space *pcs)
{
pdf14_device *pdev = (pdf14_device *)dev;
- const gs_color_space *pcs;
int code;
/* Make sure we are not All or None */
- pcs = gs_currentcolorspace_inline(pgs);
if (pcs != NULL && pcs->type->index == gs_color_space_index_Separation &&
pcs->params.separation.sep_type != SEP_OTHER)
return 0;
- code = update_spot_equivalent_cmyk_colors(dev, pgs, &pdev->devn_params,
+ code = update_spot_equivalent_cmyk_colors(dev, pgs, pcs, &pdev->devn_params,
&pdev->op_pequiv_cmyk_colors);
return code;
}
@@ -10272,7 +10412,7 @@ put_param_pdf14_spot_names(gx_device * pdev,
char buff[20];
byte * sep_name;
- gs_sprintf(buff, "PDF14SpotName_%d", i);
+ gs_snprintf(buff, sizeof(buff), "PDF14SpotName_%d", i);
code = param_read_string(plist, buff, &str);
switch (code) {
default:
@@ -10808,7 +10948,8 @@ pdf14_clist_update_params(pdf14_clist_device * pdev, const gs_gstate * pgs,
do a compositor action */
if (changed != 0) {
code = gs_create_pdf14trans(&pct_new, &params, pgs->memory);
- if (code < 0) return code;
+ if (code < 0)
+ return code;
code = dev_proc(pdev->target, composite)
(pdev->target, &pcdev, pct_new, (gs_gstate *)pgs, pgs->memory, NULL);
gs_free_object(pgs->memory, pct_new, "pdf14_clist_update_params");
@@ -10843,6 +10984,9 @@ pdf14_clist_fill_path(gx_device *dev, const gs_gstate *pgs,
if (code < 0)
return code;
+ if (dev->color_info.separable_and_linear == GX_CINFO_UNKNOWN_SEP_LIN)
+ check_device_separable(dev);
+
gsicc_extract_profile(GS_UNKNOWN_TAG, fwd_profile, &icc_profile_fwd,
&render_cond);
gsicc_extract_profile(GS_UNKNOWN_TAG, dev_profile, &icc_profile_dev,
@@ -10865,7 +11009,7 @@ pdf14_clist_fill_path(gx_device *dev, const gs_gstate *pgs,
this, so we have to pass on the clist_writer device to enable proper
mapping to the transparency group color space. */
- if (pdcolor != NULL && gx_dc_is_pattern2_color(pdcolor)) {
+ if (gx_dc_is_pattern2_color(pdcolor)) {
/* Non-idempotent blends require a transparency
* group to be pushed because shadings might
* paint several pixels twice. */
@@ -10880,10 +11024,15 @@ pdf14_clist_fill_path(gx_device *dev, const gs_gstate *pgs,
}
if (push_group) {
gs_fixed_rect box;
- if (pcpath)
+ gs_fixed_rect dev_bbox;
+
+ if (pcpath) {
gx_cpath_outer_box(pcpath, &box);
- else
+ (*dev_proc(dev, get_clipping_box)) (dev, &dev_bbox);
+ rect_intersect(box, dev_bbox);
+ } else
(*dev_proc(dev, get_clipping_box)) (dev, &box);
+
if (ppath) {
gs_fixed_rect path_box;
@@ -10897,6 +11046,15 @@ pdf14_clist_fill_path(gx_device *dev, const gs_gstate *pgs,
if (box.q.y > path_box.q.y)
box.q.y = path_box.q.y;
}
+
+ if (box.p.y >= box.q.y || box.p.x >= box.q.x) {
+ /* No need to do anything */
+ if (pinst != NULL) {
+ pinst->saved->trans_device = NULL;
+ }
+ return 0;
+ }
+
/* Group alpha set from fill value. push_shfill_group does reset to 1.0 */
code = push_shfill_group(pdev, &new_pgs, &box);
} else
@@ -10904,7 +11062,10 @@ pdf14_clist_fill_path(gx_device *dev, const gs_gstate *pgs,
if (code >= 0) {
new_pgs.trans_device = dev;
new_pgs.has_transparency = true;
- code = gx_forward_fill_path(dev, &new_pgs, ppath, params, pdcolor, pcpath);
+ if (gx_dc_is_pattern2_color(pdcolor))
+ code = gx_default_fill_path_shading_or_pattern(dev, &new_pgs, ppath, params, pdcolor, pcpath);
+ else
+ code = gx_forward_fill_path(dev, &new_pgs, ppath, params, pdcolor, pcpath);
new_pgs.trans_device = NULL;
new_pgs.has_transparency = false;
}
@@ -10948,7 +11109,7 @@ pdf14_clist_stroke_path(gx_device *dev, const gs_gstate *pgs,
different color space, then we need to get the proper device information
passed along so that we use the correct color procs and colorinfo about
the transparency device and not the final target device */
- if (pdcolor != NULL && gx_dc_is_pattern2_color(pdcolor)) {
+ if (gx_dc_is_pattern2_color(pdcolor)) {
/* Non-idempotent blends require a transparency
* group to be pushed because shadings might
* paint several pixels twice. */
@@ -11013,7 +11174,10 @@ pdf14_clist_stroke_path(gx_device *dev, const gs_gstate *pgs,
if (code >= 0) {
new_pgs.trans_device = dev;
new_pgs.has_transparency = true;
- code = gx_forward_stroke_path(dev, &new_pgs, ppath, params, pdcolor, pcpath);
+ if (gx_dc_is_pattern2_color(pdcolor))
+ code = gx_default_stroke_path_shading_or_pattern(dev, &new_pgs, ppath, params, pdcolor, pcpath);
+ else
+ code = gx_forward_stroke_path(dev, &new_pgs, ppath, params, pdcolor, pcpath);
new_pgs.trans_device = NULL;
new_pgs.has_transparency = false;
}
@@ -11238,8 +11402,8 @@ pdf14_clist_fill_stroke_path(gx_device *dev, const gs_gstate *pgs, gx_path *ppat
We will need to break up the fill stroke now and do
the appropriate group pushes and set up. */
- if ((pdevc_fill != NULL && gx_dc_is_pattern2_color(pdevc_fill)) ||
- (pdevc_stroke != NULL && gx_dc_is_pattern2_color(pdevc_stroke))) {
+ if (gx_dc_is_pattern2_color(pdevc_fill) ||
+ gx_dc_is_pattern2_color(pdevc_stroke)) {
return pdf14_clist_fill_stroke_path_pattern_setup(dev, pgs, ppath,
params_fill, pdevc_fill, params_stroke, pdevc_stroke, pcpath);
}
@@ -11399,7 +11563,8 @@ pdf14_clist_begin_typed_image(gx_device * dev, const gs_gstate * pgs,
bbox_in.q.y = pim->Height;
code = gs_bbox_transform_inverse(&bbox_in, &(pim->ImageMatrix),
&bbox_out);
- if (code < 0) return code;
+ if (code < 0)
+ return code;
/* Set up a compositor action for pushing the group */
if_debug0m('v', pgs->memory, "[v]Pushing special trans group for image\n");
tgp.Isolated = true;
@@ -11637,8 +11802,12 @@ c_pdf14trans_clist_read_update(gs_composite_t * pcte, gx_device * cdev,
&render_cond);
/* If we are using the blending color space, then be sure to use that. */
- if (p14dev->using_blend_cs && dev_profile->blend_profile != NULL)
+ if (p14dev->blend_cs_state == PDF14_BLEND_CS_SPECIFIED &&
+ dev_profile->blend_profile != NULL)
cl_icc_profile = dev_profile->blend_profile;
+ else if (p14dev->blend_cs_state == PDF14_BLEND_CS_OUTPUTINTENT &&
+ dev_profile->oi_profile != NULL)
+ cl_icc_profile = dev_profile->oi_profile;
dev_proc(p14dev, get_profile)((gx_device *)p14dev, &dev_profile);
gsicc_extract_profile(GS_UNKNOWN_TAG, dev_profile, &p14_icc_profile,
@@ -12187,6 +12356,7 @@ pdf14_device_finalize(const gs_memory_t *cmem, void *vptr)
{
gx_device * const dev = (gx_device *)vptr;
pdf14_device * pdev = (pdf14_device *)dev;
+ int k;
pdf14_cleanup_group_color_profiles (pdev);
@@ -12198,6 +12368,21 @@ pdf14_device_finalize(const gs_memory_t *cmem, void *vptr)
while (pdev->color_model_stack) {
pdf14_pop_group_color(dev, NULL);
}
+
+ for (k = 0; k < pdev->devn_params.separations.num_separations; k++) {
+ if (pdev->devn_params.separations.names[k].data) {
+ gs_free_object(pdev->memory->stable_memory, pdev->devn_params.separations.names[k].data, "pdf14_device_finalize");
+ pdev->devn_params.separations.names[k].data = NULL;
+ }
+ }
+
+ for (k = 0; k < pdev->devn_params.pdf14_separations.num_separations; k++) {
+ if (pdev->devn_params.pdf14_separations.names[k].data) {
+ gs_free_object(pdev->memory->stable_memory, pdev->devn_params.pdf14_separations.names[k].data, "pdf14_device_finalize");
+ pdev->devn_params.pdf14_separations.names[k].data = NULL;
+ }
+ }
+
gx_device_finalize(cmem, vptr);
}
diff --git a/base/gdevp14.h b/base/gdevp14.h
index 434f594f..7d9ffce1 100644
--- a/base/gdevp14.h
+++ b/base/gdevp14.h
@@ -1,4 +1,4 @@
-/* Copyright (C) 2001-2021 Artifex Software, Inc.
+/* Copyright (C) 2001-2022 Artifex Software, Inc.
All Rights Reserved.
This software is provided AS-IS with no warranty, either express or
@@ -40,6 +40,13 @@ typedef enum {
PDF14_OP_STATE_STROKE = 2,
} PDF14_OP_FS_STATE;
+typedef enum {
+ PDF14_BLEND_CS_UNSPECIFIED = 0,
+ PDF14_BLEND_CS_TARGET_CIELAB,
+ PDF14_BLEND_CS_OUTPUTINTENT,
+ PDF14_BLEND_CS_SPECIFIED
+} pdf14_blend_cs_t;
+
/*
* This structure contains procedures for processing routine which differ
* between the different blending color spaces.
@@ -100,7 +107,7 @@ struct pdf14_mask_s {
/* A structure to hold information about the group color related
* procs and other information. These may change depending upon
* if the blending space is different than the base space.
- * The structure is a list that is updated upo every transparency
+ * The structure is a list that is updated upon every transparency
* group push and pop */
typedef struct pdf14_group_color_s pdf14_group_color_t;
@@ -232,7 +239,7 @@ typedef struct pdf14_device_s {
gx_device * pclist_device;
bool free_devicen; /* Used to avoid freeing a deviceN parameter from target clist device */
bool sep_device;
- bool using_blend_cs;
+ pdf14_blend_cs_t blend_cs_state;
bool overprint_sim;
bool target_support_devn;
@@ -264,6 +271,7 @@ typedef struct pdf14_device_s {
const gx_color_map_procs *(*save_get_cmap_procs)(const gs_gstate *,
const gx_device *);
gx_device_color_info saved_target_color_info;
+ int interpolate_threshold;
dev_proc_encode_color(*saved_target_encode_color);
dev_proc_decode_color(*saved_target_decode_color);
dev_proc_get_color_mapping_procs(*saved_target_get_color_mapping_procs);
diff --git a/base/gdevprn.c b/base/gdevprn.c
index 0cfb453f..296e9734 100644
--- a/base/gdevprn.c
+++ b/base/gdevprn.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 2001-2021 Artifex Software, Inc.
+/* Copyright (C) 2001-2022 Artifex Software, Inc.
All Rights Reserved.
This software is provided AS-IS with no warranty, either express or
@@ -278,6 +278,7 @@ gdev_prn_allocate(gx_device *pdev, gdev_space_params *new_space_params,
bool save_is_command_list = false; /* Quiet compiler */
bool size_ok = 0;
int ecode = 0;
+ int code;
int pass;
gs_memory_t *buffer_memory =
(ppdev->buffer_memory == 0 ? pdev->memory->non_gc_memory :
@@ -455,6 +456,7 @@ gdev_prn_allocate(gx_device *pdev, gdev_space_params *new_space_params,
gs_free_object(buffer_memory, base, "printer buffer");
pdev->procs = ppdev->orig_procs;
ppdev->orig_procs.open_device = 0; /* prevent uninit'd restore of procs */
+ gs_free_object(pdev->memory->non_gc_memory, ppdev->bg_print, "prn bg_print");
return_error(code);
}
}
@@ -492,14 +494,19 @@ gdev_prn_allocate(gx_device *pdev, gdev_space_params *new_space_params,
#undef COPY_PROC
/* If using a command list, already opened the device. */
if (is_command_list)
- return ecode;
+ code = ecode;
else
- return (*dev_proc(pdev, open_device))(pdev);
+ /* If this open_device fails, do we need to free everything? */
+ code = (*dev_proc(pdev, open_device))(pdev);
} else {
pdev->procs = ppdev->orig_procs;
ppdev->orig_procs.open_device = 0; /* prevent uninit'd restore of procs */
- return ecode;
+ code = ecode;
}
+ if (code < 0) {
+ gs_free_object(pdev->memory->non_gc_memory, ppdev->bg_print, "prn bg_print");
+ }
+ return code;
}
int
@@ -580,8 +587,9 @@ gdev_prn_get_param(gx_device *dev, char *Param, void *list)
}
if (strcmp(Param, "BandListStorage") == 0) {
gs_param_string bls;
+ gs_lib_ctx_core_t *core = dev->memory->gs_lib_ctx->core;
/* Force the default to 'memory' if clist file I/O is not included in this build */
- if (clist_io_procs_file_global == NULL)
+ if (core->clist_io_procs_file == NULL)
ppdev->BLS_force_memory = true;
if (ppdev->BLS_force_memory) {
bls.data = (byte *)"memory";
@@ -629,6 +637,7 @@ gdev_prn_get_params(gx_device * pdev, gs_param_list * plist)
gs_param_string bls;
gs_param_string saved_pages;
bool pageneutralcolor = false;
+ gs_lib_ctx_core_t *core = pdev->memory->gs_lib_ctx->core;
if (pdev->icc_struct != NULL)
pageneutralcolor = pdev->icc_struct->pageneutralcolor;
@@ -646,7 +655,7 @@ gdev_prn_get_params(gx_device * pdev, gs_param_list * plist)
return code;
/* Force the default to 'memory' if clist file I/O is not included in this build */
- if (clist_io_procs_file_global == NULL)
+ if (core->clist_io_procs_file == NULL)
ppdev->BLS_force_memory = true;
if (ppdev->BLS_force_memory) {
bls.data = (byte *)"memory";
@@ -709,6 +718,7 @@ gdev_prn_put_params(gx_device * pdev, gs_param_list * plist)
gs_param_dict mdict;
gs_param_string saved_pages;
bool pageneutralcolor = false;
+ gs_lib_ctx_core_t *core = ppdev->memory->gs_lib_ctx->core;
memset(&saved_pages, 0, sizeof(gs_param_string));
save_sp = ppdev->space_params;
@@ -751,7 +761,7 @@ gdev_prn_put_params(gx_device * pdev, gs_param_list * plist)
case 0:
/* Only accept 'file' if the file procs are include in the build */
if ((bls.size > 1) && (bls.data[0] == 'm' ||
- (clist_io_procs_file_global != NULL && bls.data[0] == 'f')))
+ (core->clist_io_procs_file != NULL && bls.data[0] == 'f')))
break;
/* fall through */
default:
@@ -1184,11 +1194,18 @@ gx_render_plane_init(gx_render_plane_t *render_plane, const gx_device *dev,
int num_planes = dev->color_info.num_components;
int plane_depth = dev->color_info.depth / num_planes;
- if (index < 0 || index >= num_planes)
+ if (index < -1 || index >= num_planes)
return_error(gs_error_rangecheck);
render_plane->index = index;
- render_plane->depth = plane_depth;
- render_plane->shift = plane_depth * (num_planes - 1 - index);
+ if (index == -1) {
+ /* No plane, chunky results required. */
+ render_plane->depth = dev->color_info.depth;
+ render_plane->shift = 0;
+ } else {
+ /* A single plane */
+ render_plane->depth = plane_depth;
+ render_plane->shift = plane_depth * (num_planes - 1 - index);
+ }
return 0;
}
@@ -1414,8 +1431,16 @@ gx_default_create_buf_device(gx_device **pbdev, gx_device *target, int y,
#endif
gx_device_fill_in_procs((gx_device *)mdev);
} else {
- gs_make_mem_device(mdev, mdproto, mem, (color_usage == NULL ? 1 : 0),
- target);
+ gs_devn_params* pdevn_params;
+
+ gs_make_mem_device(mdev, mdproto, mem, (color_usage == NULL ? 1 : 0), target);
+ /* mem devices may need to refer to the target's devn_params struct */
+ /* if the device has separations already defined (by SeparationOrderNames), we */
+ /* need to use them so the colorants are in the same order as the target device. */
+ pdevn_params = dev_proc(target, ret_devn_params)(target);
+ if (pdevn_params != NULL) {
+ mdev->procs.ret_devn_params = gx_forward_ret_devn_params;
+ }
}
mdev->width = target->width;
mdev->band_y = y;
diff --git a/base/gdevsclass.c b/base/gdevsclass.c
index aec26893..2f757b76 100644
--- a/base/gdevsclass.c
+++ b/base/gdevsclass.c
@@ -596,10 +596,10 @@ int default_subclass_fill_linear_color_triangle(gx_device *dev, const gs_fill_at
return gx_default_fill_linear_color_triangle(dev, fa, p0, p1, p2, c0, c1, c2);
}
-int default_subclass_update_spot_equivalent_colors(gx_device *dev, const gs_gstate * pgs)
+int default_subclass_update_spot_equivalent_colors(gx_device *dev, const gs_gstate * pgs, const gs_color_space *pcs)
{
if (dev->child)
- return dev_proc(dev->child, update_spot_equivalent_colors)(dev->child, pgs);
+ return dev_proc(dev->child, update_spot_equivalent_colors)(dev->child, pgs, pcs);
return 0;
}
diff --git a/base/globals.h b/base/globals.h
new file mode 100644
index 00000000..d232d204
--- /dev/null
+++ b/base/globals.h
@@ -0,0 +1,41 @@
+/* Copyright (C) 2001-2021 Artifex Software, Inc.
+ All Rights Reserved.
+
+ This software is provided AS-IS with no warranty, either express or
+ implied.
+
+ This software is distributed under license and may not be copied,
+ modified or distributed except as expressly authorized under the terms
+ of the license contained in the file LICENSE in this distribution.
+
+ Refer to licensing information at http://www.artifex.com or contact
+ Artifex Software, Inc., 1305 Grant Avenue - Suite 200, Novato,
+ CA 94945, U.S.A., +1(415)492-9861, for further information.
+*/
+
+
+/* This routine abstracts the platform specific ways to get some
+ * global state shared between different instances of the gs libary.
+ * There is special effort required to ensure that multiple instances
+ * do not have race conditions in the setup of such global state. Not
+ * all platforms support this, so on such platforms, no global state
+ * is supported. */
+#include "std.h"
+#include "gslibctx.h"
+
+/* Interface to platform-specific global variable routines. */
+
+#ifndef gs_globals_INCLUDED
+# define gs_globals_INCLUDED
+
+struct gs_globals
+{
+ int non_threadsafe_count;
+};
+
+void gs_globals_init(gs_globals *globals);
+
+void gp_global_lock(gs_globals *globals);
+void gp_global_unlock(gs_globals *globals);
+
+#endif /* gs_globals_INCLUDED */
diff --git a/base/gp.h b/base/gp.h
index b58206b5..33a35ccc 100644
--- a/base/gp.h
+++ b/base/gp.h
@@ -23,6 +23,8 @@
#include "stat_.h"
#include "gstypes.h"
#include "gscdefs.h" /* for gs_serialnumber */
+#include "globals.h"
+
/*
* This file defines the interface to ***ALL*** platform-specific routines,
* with the exception of the thread/synchronization interface (gpsync.h)
@@ -704,4 +706,17 @@ gp_validate_path(const gs_memory_t *mem,
const char *path,
const char *mode);
+/*
+ * Fetch a pointer to the globals structure. This is cleverly synchronised
+ * so that the first call to this function is guaranteed to return a safely
+ * (and atomically) initialised structure.
+ *
+ * Platforms that can't perform this synchronisation just return NULL.
+ */
+struct gs_globals *gp_get_globals(void);
+
+void gp_set_debug_mem_ptr(gs_memory_t *mem);
+
+gs_memory_t *gp_get_debug_mem_ptr(void);
+
#endif /* gp_INCLUDED */
diff --git a/base/gp_mspol.c b/base/gp_mspol.c
index 560fb3fe..88d83171 100644
--- a/base/gp_mspol.c
+++ b/base/gp_mspol.c
@@ -32,10 +32,9 @@
int
gp_check_interrupts(const gs_memory_t *mem)
{
-#ifndef GS_THREADSAFE
+#ifdef DEBUG
if(mem == NULL) {
- /* MAJOR HACK will NOT work in multithreaded environment */
- mem = gs_lib_ctx_get_non_gc_memory_t();
+ mem = gp_get_debug_mem_ptr();
}
#endif
if (mem && mem->gs_lib_ctx && mem->gs_lib_ctx->core->poll_fn)
diff --git a/base/gp_mswin.c b/base/gp_mswin.c
index a44edf99..989737c3 100644
--- a/base/gp_mswin.c
+++ b/base/gp_mswin.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 2001-2021 Artifex Software, Inc.
+/* Copyright (C) 2001-2022 Artifex Software, Inc.
All Rights Reserved.
This software is provided AS-IS with no warranty, either express or
@@ -60,7 +60,9 @@
#include "winrtsup.h"
/* Library routines not declared in a standard header */
+#if _MSC_VER < 1400 /* Earlier than VS2005 */
extern char *getenv(const char *);
+#endif
/* limits */
#define MAXSTR 255
@@ -298,7 +300,7 @@ get_queues(void)
char buf[256];
free(enumbuffer);
- gs_sprintf(buf, "EnumPrinters() failed, error code = %d", GetLastError());
+ gs_snprintf(buf, sizeof(buf), "EnumPrinters() failed, error code = %d", GetLastError());
MessageBox((HWND) NULL, buf, szAppName, MB_OK | MB_ICONSTOP);
return NULL;
}
@@ -401,7 +403,7 @@ gp_printfile_win32(const gs_memory_t *mem, const char *filename, char *port)
if (!gp_OpenPrinter(port, &printer)) {
char buf[256];
- gs_sprintf(buf, "OpenPrinter() failed for \042%s\042, error code = %d", port, GetLastError());
+ gs_snprintf(buf, sizeof(buf), "OpenPrinter() failed for \042%s\042, error code = %d", port, GetLastError());
MessageBox((HWND) NULL, buf, szAppName, MB_OK | MB_ICONSTOP);
free(buffer);
return FALSE;
@@ -414,7 +416,7 @@ gp_printfile_win32(const gs_memory_t *mem, const char *filename, char *port)
if (!StartDocPrinter(printer, 1, (LPBYTE) & di)) {
char buf[256];
- gs_sprintf(buf, "StartDocPrinter() failed, error code = %d", GetLastError());
+ gs_snprintf(buf, sizeof(buf), "StartDocPrinter() failed, error code = %d", GetLastError());
MessageBox((HWND) NULL, buf, szAppName, MB_OK | MB_ICONSTOP);
AbortPrinter(printer);
free(buffer);
@@ -435,7 +437,7 @@ gp_printfile_win32(const gs_memory_t *mem, const char *filename, char *port)
if (!EndDocPrinter(printer)) {
char buf[256];
- gs_sprintf(buf, "EndDocPrinter() failed, error code = %d", GetLastError());
+ gs_snprintf(buf, sizeof(buf), "EndDocPrinter() failed, error code = %d", GetLastError());
MessageBox((HWND) NULL, buf, szAppName, MB_OK | MB_ICONSTOP);
AbortPrinter(printer);
return FALSE;
@@ -443,7 +445,7 @@ gp_printfile_win32(const gs_memory_t *mem, const char *filename, char *port)
if (!ClosePrinter(printer)) {
char buf[256];
- gs_sprintf(buf, "ClosePrinter() failed, error code = %d", GetLastError());
+ gs_snprintf(buf, sizeof(buf), "ClosePrinter() failed, error code = %d", GetLastError());
MessageBox((HWND) NULL, buf, szAppName, MB_OK | MB_ICONSTOP);
return FALSE;
}
diff --git a/base/gp_nsync.c b/base/gp_nsync.c
index cb16fa30..8eb66dc6 100644
--- a/base/gp_nsync.c
+++ b/base/gp_nsync.c
@@ -18,6 +18,8 @@
#include "std.h"
#include "gserrors.h"
#include "gpsync.h"
+#include "gp.h"
+#include "globals.h"
/* ------- Synchronization primitives -------- */
@@ -118,3 +120,26 @@ void
gp_thread_finish(gp_thread_id thread)
{
}
+
+/* No threading -> no globals */
+gs_globals *gp_get_globals(void)
+{
+ return NULL;
+}
+
+void gp_global_lock(gs_globals *globals)
+{
+}
+
+void gp_global_unlock(gs_globals *globals)
+{
+}
+
+void gp_set_debug_mem_ptr(gs_memory_t *mem)
+{
+}
+
+gs_memory_t *gp_get_debug_mem_ptr(void)
+{
+ return NULL;
+}
diff --git a/base/gp_psync.c b/base/gp_psync.c
index 7fc177fa..a158d171 100644
--- a/base/gp_psync.c
+++ b/base/gp_psync.c
@@ -23,6 +23,8 @@
#include "gserrors.h"
#include "gpsync.h"
#include "assert_.h"
+#include "gp.h"
+#include "globals.h"
/*
* Thanks to Larry Jones <larry.jones@sdrc.com> for this revision of
* Aladdin's original code into a form that depends only on POSIX APIs.
@@ -37,6 +39,65 @@
# define PTHREAD_CREATE_DETACHED 1
#endif
+static struct
+{
+ pthread_once_t once;
+ pthread_mutex_t mutex;
+ gs_globals globals;
+#ifdef DEBUG
+ pthread_key_t tlsKey;
+#endif
+} GhostscriptGlobals = { PTHREAD_ONCE_INIT, PTHREAD_MUTEX_INITIALIZER };
+
+static void init_globals(void)
+{
+ if (pthread_mutex_init(&GhostscriptGlobals.mutex, NULL))
+ exit(1);
+#ifdef DEBUG
+ if (pthread_key_create(&GhostscriptGlobals.tlsKey, NULL))
+ exit(1);
+#endif
+ gs_globals_init(&GhostscriptGlobals.globals);
+}
+
+gs_globals *gp_get_globals(void)
+{
+ if (pthread_once(&GhostscriptGlobals.once, init_globals))
+ return NULL;
+
+ return &GhostscriptGlobals.globals;
+}
+
+void gp_global_lock(gs_globals *globals)
+{
+ if (globals == NULL)
+ return;
+ pthread_mutex_lock(&GhostscriptGlobals.mutex);
+}
+
+void gp_global_unlock(gs_globals *globals)
+{
+ if (globals == NULL)
+ return;
+ pthread_mutex_unlock(&GhostscriptGlobals.mutex);
+}
+
+void gp_set_debug_mem_ptr(gs_memory_t *mem)
+{
+#ifdef DEBUG
+ pthread_setspecific(GhostscriptGlobals.tlsKey, mem);
+#endif
+}
+
+gs_memory_t *gp_get_debug_mem_ptr(void)
+{
+#ifdef DEBUG
+ return (gs_memory_t *)pthread_getspecific(GhostscriptGlobals.tlsKey);
+#else
+ return NULL;
+#endif
+}
+
/* ------- Synchronization primitives -------- */
/* Semaphore supports wait/signal semantics */
@@ -320,6 +381,9 @@ gp_monitor_leave(gp_monitor * mona)
typedef struct gp_thread_creation_closure_s {
gp_thread_creation_callback_t proc; /* actual start procedure */
void *proc_data; /* closure data for proc */
+#ifdef DEBUG
+ gs_memory_t *mem;
+#endif
} gp_thread_creation_closure_t;
/* Wrapper procedure called to start the new thread. */
@@ -330,6 +394,9 @@ gp_thread_begin_wrapper(void *thread_data /* gp_thread_creation_closure_t * */)
closure = *(gp_thread_creation_closure_t *)thread_data;
free(thread_data);
+#ifdef DEBUG
+ pthread_setspecific(GhostscriptGlobals.tlsKey, closure.mem);
+#endif
DISCARD(closure.proc(closure.proc_data));
return NULL; /* return value is ignored */
}
@@ -355,6 +422,9 @@ gp_create_thread(gp_thread_creation_callback_t proc, void *proc_data)
return_error(gs_error_VMerror);
closure->proc = proc;
closure->proc_data = proc_data;
+#ifdef DEBUG
+ closure->mem = pthread_getspecific(GhostscriptGlobals.tlsKey);
+#endif
pthread_attr_init(&attr);
pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
code = pthread_create(&ignore_thread, &attr, gp_thread_begin_wrapper,
@@ -380,6 +450,9 @@ gp_thread_start(gp_thread_creation_callback_t proc, void *proc_data,
return_error(gs_error_VMerror);
closure->proc = proc;
closure->proc_data = proc_data;
+#ifdef DEBUG
+ closure->mem = pthread_getspecific(GhostscriptGlobals.tlsKey);
+#endif
pthread_attr_init(&attr);
pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
code = pthread_create(&new_thread, &attr, gp_thread_begin_wrapper,
diff --git a/base/gp_strdl.c b/base/gp_strdl.c
index d8a2f516..69b981bc 100644
--- a/base/gp_strdl.c
+++ b/base/gp_strdl.c
@@ -21,7 +21,7 @@
#include "gp.h"
int
-gp_readline_init(void **preadline_data, gs_memory_t * mem) /* lgtm [cpp/useless-expression] */
+gp_readline_init(void **preadline_data, gs_memory_t * mem)
{
return 0;
}
diff --git a/base/gp_wsync.c b/base/gp_wsync.c
index 36ec0439..6dedc45a 100644
--- a/base/gp_wsync.c
+++ b/base/gp_wsync.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 2001-2021 Artifex Software, Inc.
+/* Copyright (C) 2001-2022 Artifex Software, Inc.
All Rights Reserved.
This software is provided AS-IS with no warranty, either express or
@@ -20,8 +20,135 @@
#include "malloc_.h"
#include "gserrors.h"
#include "gpsync.h"
+#include "gp.h"
+#include "globals.h"
#include <process.h>
+/* We have 2 possible implementations of the routines to initialise
+ * globals. One uses the InitOnceExecuteOnce facility present in
+ * windows versions >= Vista, the other uses a mutex and
+ * InterlockedCompareExchangePointer and works on versions >=
+ * XP. Accordingly, we use the XP-capable version. The other version
+ * is retained for reference. */
+#define XP_COMPATIBLE_INIT
+
+/* Whatever happens, if we are compiling for a version < Vista
+ * we MUST use the XP version. */
+#if _WIN32_WINNT < 0x600
+#ifndef XP_COMPATIBLE_INIT
+#define XP_COMPATIBLE_INIT
+#endif
+#endif
+
+#ifndef INIT_ONCE_STATIC_INIT
+#define INIT_ONCE_STATIC_INIT { 0 }
+#endif
+
+static struct
+{
+#ifdef XP_COMPATIBLE_INIT
+ HANDLE once_mutex;
+ int inited;
+#else
+ INIT_ONCE once;
+#endif
+ CRITICAL_SECTION lock;
+ gs_globals globals;
+#ifdef DEBUG
+ DWORD tlsIndex;
+#endif
+} GhostscriptGlobals = { INIT_ONCE_STATIC_INIT };
+
+static BOOL CALLBACK init_globals(
+#ifndef XP_COMPATIBLE_INIT
+ PINIT_ONCE InitOnce,
+ PVOID Parameter,
+#endif
+ PVOID *lpContext)
+{
+#ifdef METRO
+ InitializeCriticalSectionEx(&GhostscriptGlobals.lock, 0, 0); /* returns no status */
+#else
+ InitializeCriticalSection(&GhostscriptGlobals.lock); /* returns no status */
+#endif
+#ifdef DEBUG
+ GhostscriptGlobals.tlsIndex = TlsAlloc();
+#endif
+ gs_globals_init(&GhostscriptGlobals.globals);
+ return TRUE;
+}
+
+gs_globals *gp_get_globals(void)
+{
+ PVOID lpContext;
+#ifdef XP_COMPATIBLE_INIT
+ /* Prior to Windows Vista, we don't have InitOnceExecuteOnce
+ * capability, so we have to fudge it. Windows XP provides
+ * InterlockedCompareExchangePointer, so we can use that.
+ * We don't care about anything earlier than XP. */
+
+ /* If we haven't got a mutex yet...*/
+ if (GhostscriptGlobals.once_mutex == NULL) {
+ /* Make one */
+ HANDLE p = CreateMutex(NULL, FALSE, NULL);
+ /* Now atomically swap that one into the structure. */
+ if (InterlockedCompareExchangePointer((PVOID *)&GhostscriptGlobals.once_mutex, (PVOID)p, NULL) != NULL) {
+ /* If there was one there already, ditch ours and just use the one that was there already. */
+ CloseHandle(p);
+ }
+ }
+ WaitForSingleObject(GhostscriptGlobals.once_mutex, INFINITE);
+ if (GhostscriptGlobals.inited == 0) {
+ init_globals(&lpContext);
+ GhostscriptGlobals.inited = 1;
+ }
+ ReleaseMutex(GhostscriptGlobals.once_mutex);
+#else
+ BOOL status = InitOnceExecuteOnce(&GhostscriptGlobals.once,
+ init_globals,
+ NULL,
+ &lpContext);
+ if (status == FALSE)
+ return NULL;
+#endif
+
+ return &GhostscriptGlobals.globals;
+}
+
+
+void gp_global_lock(gs_globals *globals)
+{
+ if (globals == NULL)
+ return;
+ EnterCriticalSection(&GhostscriptGlobals.lock);
+}
+
+void gp_global_unlock(gs_globals *globals)
+{
+ if (globals == NULL)
+ return;
+ LeaveCriticalSection(&GhostscriptGlobals.lock);
+}
+
+void gp_set_debug_mem_ptr(gs_memory_t *mem)
+{
+#ifdef DEBUG
+ if (GhostscriptGlobals.tlsIndex != TLS_OUT_OF_INDEXES)
+ TlsSetValue(GhostscriptGlobals.tlsIndex, mem);
+#endif
+}
+
+gs_memory_t *gp_get_debug_mem_ptr(void)
+{
+#ifdef DEBUG
+ if (GhostscriptGlobals.tlsIndex == TLS_OUT_OF_INDEXES)
+ return NULL;
+ return (gs_memory_t *)TlsGetValue(GhostscriptGlobals.tlsIndex);
+#else
+ return NULL;
+#endif
+}
+
/* It seems that both Borland and Watcom *should* be able to cope with the
* new style threading using _beginthreadex/_endthreadex. I am unable to test
* this properly however, and the tests I have done lead me to believe it
@@ -187,6 +314,7 @@ gp_monitor_leave(
typedef struct gp_thread_creation_closure_s {
gp_thread_creation_callback_t function; /* function to start */
void *data; /* magic data to pass to thread */
+ gs_memory_t *mem;
} gp_thread_creation_closure;
/* Origin of new threads started by gp_create_thread */
@@ -199,6 +327,10 @@ gp_thread_begin_wrapper(
closure = *(gp_thread_creation_closure *)thread_data;
free(thread_data);
+#ifdef DEBUG
+ if (GhostscriptGlobals.tlsIndex != TLS_OUT_OF_INDEXES)
+ TlsSetValue(GhostscriptGlobals.tlsIndex, closure.mem);
+#endif
(*closure.function)(closure.data);
_endthread();
}
@@ -218,6 +350,10 @@ gp_create_thread(
return_error(gs_error_VMerror);
closure->function = function;
closure->data = data;
+#ifdef DEBUG
+ if (GhostscriptGlobals.tlsIndex != TLS_OUT_OF_INDEXES)
+ closure->mem = TlsGetValue(GhostscriptGlobals.tlsIndex);
+#endif
/*
* Start thread_wrapper. The Watcom _beginthread returns (int)(-1) if
@@ -246,6 +382,10 @@ gp_thread_start_wrapper(void *thread_data)
closure = *(gp_thread_creation_closure *)thread_data;
free(thread_data);
+#ifdef DEBUG
+ if (GhostscriptGlobals.tlsIndex != TLS_OUT_OF_INDEXES)
+ TlsSetValue(GhostscriptGlobals.tlsIndex, closure.mem);
+#endif
(*closure.function)(closure.data);
_endthreadex(0);
return 0;
@@ -268,6 +408,10 @@ int gp_thread_start(gp_thread_creation_callback_t function,
return_error(gs_error_VMerror);
closure->function = function;
closure->data = data;
+#ifdef DEBUG
+ if (GhostscriptGlobals.tlsIndex != TLS_OUT_OF_INDEXES)
+ closure->mem = TlsGetValue(GhostscriptGlobals.tlsIndex);
+#endif
hThread = (HANDLE)_beginthreadex(NULL, 0, &gp_thread_start_wrapper,
closure, 0, &threadID);
if (hThread == (HANDLE)0)
diff --git a/base/gs.mak b/base/gs.mak
index 0b84be49..1c341963 100644
--- a/base/gs.mak
+++ b/base/gs.mak
@@ -533,13 +533,14 @@ gpdl_tr=$(GLGENDIR)$(D)gpdl.tr
igpdl_tr=$(GLGENDIR)$(D)igpdl.tr
gpdlld_tr=$(GLGENDIR)$(D)gpdlld.tr
$(gpdl_tr): $(GS_MAK) $(GLSRCDIR)$(D)version.mak $(GENCONF_XE) $(ECHOGS_XE) $(ld_tr) $(devs_tr) $(XPS_DEVS_ALL) \
- $(devs_tr) $(PSI_DEVS_ALL) $(PCL_FEATURE_DEVS) $(XPS_FEATURE_DEVS) $(GLGENDIR)$(D)libcore.dev $(MAKEDIRS)
+ $(devs_tr) $(PSI_DEVS_ALL) $(PCL_FEATURE_DEVS) $(XPS_FEATURE_DEVS) $(PDF_FEATURE_DEVS) \
+ $(GLGENDIR)$(D)libcore.dev $(MAKEDIRS)
$(EXP)$(ECHOGS_XE) -w $(igpdl_tr) - -include $(PSI_FEATURE_DEVS)
$(EXP)$(GENCONF_XE) $(igpdl_tr) -h $(iconfxx_h) $(CONFILES) $(CONFLDTR) $(gpdlld_tr)
$(EXP)$(ECHOGS_XE) -w $(iconfig_h) -R $(iconfxx_h)
$(EXP)$(ECHOGS_XE) -w $(gpdl_tr) -R $(devs_tr)
$(EXP)$(ECHOGS_XE) -a $(gpdl_tr) -R $(igpdl_tr)
- $(EXP)$(ECHOGS_XE) -a $(gpdl_tr) - -include $(PCL_FEATURE_DEVS) $(XPS_FEATURE_DEVS)
+ $(EXP)$(ECHOGS_XE) -a $(gpdl_tr) - -include $(PCL_FEATURE_DEVS) $(XPS_FEATURE_DEVS) $(PDF_FEATURE_DEVS)
$(EXP)$(GENCONF_XE) $(gpdl_tr) -h $(GLGENDIR)$(D)unused2.h $(CONFILES) $(CONFLDTR) $(gpdlld_tr)
$(gconfxx_h) : $(ld_tr)
diff --git a/base/gsalloc.c b/base/gsalloc.c
index 57a77c7d..15162a27 100644
--- a/base/gsalloc.c
+++ b/base/gsalloc.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 2001-2021 Artifex Software, Inc.
+/* Copyright (C) 2001-2022 Artifex Software, Inc.
All Rights Reserved.
This software is provided AS-IS with no warranty, either express or
@@ -25,20 +25,6 @@
#include "stream.h" /* for clearing stream list */
#include "malloc_.h" /* For MEMENTO */
-#if GS_USE_MEMORY_HEADER_ID
-gs_id hdr_id = 0;
-#ifdef DEBUG
-/**** BIG WARNING: Calling this could be catastrophic if "ptr" does not point
- **** to a GS "struct" allocation.
- ****/
-gs_id get_mem_hdr_id (void *ptr)
-{
- return (*((hdr_id_t *)((byte *)ptr) - HDR_ID_OFFSET));
-}
-#endif
-#endif
-
-
/*
* Define whether to try consolidating space before adding a new clump.
* The default is not to do this, because it is computationally
@@ -1118,7 +1104,6 @@ gs_memory_set_vm_reclaim(gs_ref_memory_t * mem, bool enabled)
*pfl = *(obj_header_t **)ptr;\
ptr[-1].o_size = (obj_size_t)size;\
ptr[-1].o_type = pstype;\
- ASSIGN_HDR_ID(ptr);\
/* If debugging, clear the block in an attempt to */\
/* track down uninitialized data errors. */\
gs_alloc_fill(ptr, gs_alloc_fill_alloc, size);
@@ -1127,7 +1112,6 @@ gs_memory_set_vm_reclaim(gs_ref_memory_t * mem, bool enabled)
else if (size > max_freelist_size &&\
(ptr = large_freelist_alloc(imem, size)) != 0)\
{ ptr[-1].o_type = pstype;\
- ASSIGN_HDR_ID(ptr);\
/* If debugging, clear the block in an attempt to */\
/* track down uninitialized data errors. */\
gs_alloc_fill(ptr, gs_alloc_fill_alloc, size);
@@ -1144,7 +1128,6 @@ gs_memory_set_vm_reclaim(gs_ref_memory_t * mem, bool enabled)
ptr->o_size = (obj_size_t)size;\
ptr->o_type = pstype;\
ptr++;\
- ASSIGN_HDR_ID(ptr);\
/* If debugging, clear the block in an attempt to */\
/* track down uninitialized data errors. */\
gs_alloc_fill(ptr, gs_alloc_fill_alloc, size);
@@ -1184,7 +1167,7 @@ i_alloc_bytes(gs_memory_t * mem, size_t ssize, client_name_t cname)
#if IGC_PTR_STABILITY_CHECK
obj[-1].d.o.space_id = imem->space_id;
#endif
- return (byte *) obj;
+ return (byte *)Memento_label(obj, cname);
}
static byte *
i_alloc_bytes_immovable(gs_memory_t * mem, size_t ssize, client_name_t cname)
@@ -1206,7 +1189,7 @@ i_alloc_bytes_immovable(gs_memory_t * mem, size_t ssize, client_name_t cname)
if (obj == 0)
return 0;
alloc_trace("|+b.", imem, cname, NULL, size, obj);
- return (byte *) obj;
+ return (byte *)Memento_label(obj, cname);
}
static void *
i_alloc_struct(gs_memory_t * mem, gs_memory_type_ptr_t pstype,
@@ -1239,7 +1222,7 @@ i_alloc_struct(gs_memory_t * mem, gs_memory_type_ptr_t pstype,
#if IGC_PTR_STABILITY_CHECK
obj[-1].d.o.space_id = imem->space_id;
#endif
- return obj;
+ return Memento_label(obj, cname);
}
static void *
i_alloc_struct_immovable(gs_memory_t * mem, gs_memory_type_ptr_t pstype,
@@ -1257,7 +1240,7 @@ i_alloc_struct_immovable(gs_memory_t * mem, gs_memory_type_ptr_t pstype,
ALLOC_CHECK_SIZE(mem,pstype);
obj = alloc_obj(imem, size, pstype, ALLOC_IMMOVABLE | ALLOC_DIRECT, cname);
alloc_trace("|+<.", imem, cname, pstype, size, obj);
- return obj;
+ return Memento_label(obj, cname);
}
static inline bool
@@ -1307,7 +1290,7 @@ i_alloc_byte_array(gs_memory_t * mem, size_t num_elements, size_t elt_size,
alloc_trace_space(imem), client_name_string(cname),
num_elements * elt_size,
num_elements, elt_size, (intptr_t)obj);
- return (byte *) obj;
+ return (byte *)Memento_label(obj, cname);
}
static byte *
i_alloc_byte_array_immovable(gs_memory_t * mem, size_t num_elements,
@@ -1334,7 +1317,7 @@ i_alloc_byte_array_immovable(gs_memory_t * mem, size_t num_elements,
alloc_trace_space(imem), client_name_string(cname),
num_elements * elt_size,
num_elements, elt_size, (intptr_t)obj);
- return (byte *) obj;
+ return (byte *)Memento_label(obj, cname);
}
static void *
i_alloc_struct_array(gs_memory_t * mem, size_t num_elements,
@@ -1368,7 +1351,7 @@ i_alloc_struct_array(gs_memory_t * mem, size_t num_elements,
struct_type_name_string(pstype),
num_elements * pstype->ssize,
num_elements, pstype->ssize, (intptr_t)obj);
- return (char *)obj;
+ return (char *)Memento_label(obj, cname);
}
static void *
i_alloc_struct_array_immovable(gs_memory_t * mem, size_t num_elements,
@@ -1395,7 +1378,7 @@ i_alloc_struct_array_immovable(gs_memory_t * mem, size_t num_elements,
struct_type_name_string(pstype),
num_elements * pstype->ssize,
num_elements, pstype->ssize, (intptr_t)obj);
- return (char *)obj;
+ return (char *)Memento_label(obj, cname);
}
static void *
i_resize_object(gs_memory_t * mem, void *obj, size_t new_num_elements,
@@ -1440,7 +1423,7 @@ i_resize_object(gs_memory_t * mem, void *obj, size_t new_num_elements,
client_name_string(cname),
struct_type_name_string(pstype),
old_size, new_size, (intptr_t)obj);
- return new_obj;
+ return Memento_label(new_obj, cname);
}
/* Punt. */
new_obj = gs_alloc_struct_array(mem, new_num_elements, void,
@@ -1449,7 +1432,7 @@ i_resize_object(gs_memory_t * mem, void *obj, size_t new_num_elements,
return 0;
memcpy(new_obj, obj, min(old_size, new_size));
gs_free_object(mem, obj, cname);
- return new_obj;
+ return Memento_label(new_obj, cname);
}
static void
i_free_object(gs_memory_t * mem, void *ptr, client_name_t cname)
@@ -1624,11 +1607,6 @@ i_alloc_string(gs_memory_t * mem, size_t nbytes, client_name_t cname)
*/
clump_t *cp = clump_splay_walk_init_mid(&sw, imem->cc);
- if (nbytes + (size_t)HDR_ID_OFFSET < nbytes)
- return NULL;
-
- nbytes += HDR_ID_OFFSET;
-
#ifdef MEMENTO
if (Memento_failThisEvent())
return NULL;
@@ -1645,8 +1623,6 @@ top:
(intptr_t)(imem->cc->ctop - nbytes));
str = imem->cc->ctop -= nbytes;
gs_alloc_fill(str, gs_alloc_fill_alloc, nbytes);
- str += HDR_ID_OFFSET;
- ASSIGN_HDR_ID(str);
return str;
}
/* Try the next clump. */
@@ -1686,8 +1662,6 @@ i_alloc_string_immovable(gs_memory_t * mem, size_t nbytes, client_name_t cname)
size_t asize;
clump_t *cp;
- nbytes += HDR_ID_OFFSET;
-
#ifdef MEMENTO
if (Memento_failThisEvent())
return NULL;
@@ -1705,10 +1679,8 @@ i_alloc_string_immovable(gs_memory_t * mem, size_t nbytes, client_name_t cname)
alloc_trace_space(imem), client_name_string(cname), nbytes,
(intptr_t)str);
gs_alloc_fill(str, gs_alloc_fill_alloc, nbytes);
- str += HDR_ID_OFFSET;
- ASSIGN_HDR_ID(str);
- return str;
+ return Memento_label(str, cname);
}
static byte *
@@ -1721,10 +1693,6 @@ i_resize_string(gs_memory_t * mem, byte * data, size_t old_num, size_t new_num,
if (old_num == new_num) /* same size returns the same string */
return data;
- data -= HDR_ID_OFFSET;
- old_num += HDR_ID_OFFSET;
- new_num += HDR_ID_OFFSET;
-
if ( imem->cc && data == imem->cc->ctop && /* bottom-most string */
(new_num < old_num ||
imem->cc->ctop - imem->cc->cbot > new_num - old_num)
@@ -1744,8 +1712,6 @@ i_resize_string(gs_memory_t * mem, byte * data, size_t old_num, size_t new_num,
else
gs_alloc_fill(data, gs_alloc_fill_free, old_num - new_num);
#endif
- ptr += HDR_ID_OFFSET;
- ASSIGN_HDR_ID(ptr);
} else
if (new_num < old_num) {
/* trim the string and create a free space hole */
@@ -1756,13 +1722,7 @@ i_resize_string(gs_memory_t * mem, byte * data, size_t old_num, size_t new_num,
if_debug5m('A', mem, "[a%d:<> ]%s(%"PRIuSIZE"->%"PRIuSIZE") "PRI_INTPTR"\n",
alloc_trace_space(imem), client_name_string(cname),
old_num, new_num, (intptr_t)ptr);
- ptr += HDR_ID_OFFSET;
- ASSIGN_HDR_ID(ptr);
} else { /* Punt. */
- data += HDR_ID_OFFSET;
- old_num -= HDR_ID_OFFSET;
- new_num -= HDR_ID_OFFSET;
-
ptr = gs_alloc_string(mem, new_num, cname);
if (ptr == 0)
return 0;
@@ -1780,8 +1740,6 @@ i_free_string(gs_memory_t * mem, byte * data, size_t nbytes,
gs_ref_memory_t * const imem = (gs_ref_memory_t *)mem;
if (data) {
- data -= HDR_ID_OFFSET;
- nbytes += HDR_ID_OFFSET;
if (imem->cc && data == imem->cc->ctop) {
if_debug4m('A', mem, "[a%d:-> ]%s(%"PRIuSIZE") "PRI_INTPTR"\n",
alloc_trace_space(imem), client_name_string(cname), nbytes,
@@ -2073,9 +2031,8 @@ done:
ptr->d.o.space_id = mem->space_id;
# endif
ptr++;
- ASSIGN_HDR_ID(ptr);
gs_alloc_fill(ptr, gs_alloc_fill_alloc, lsize);
- return ptr;
+ return Memento_label(ptr, cname);
}
/*
@@ -2770,7 +2727,7 @@ debug_dump_contents(const gs_memory_t *mem, const byte * bot,
}
continue;
}
- gs_sprintf(label, PRI_INTPTR":", (intptr_t)block);
+ gs_snprintf(label, sizeof(label), PRI_INTPTR":", (intptr_t)block);
debug_indent(mem, indent);
dmputs(mem, label);
for (i = 0; i < block_size; ++i) {
diff --git a/base/gsargs.c b/base/gsargs.c
index 7fa399cb..a2023d5e 100644
--- a/base/gsargs.c
+++ b/base/gsargs.c
@@ -334,10 +334,31 @@ arg_next(arg_list * pal, const char **argstr, const gs_memory_t *errmem)
errprintf(errmem, "Command too long: %s\n", cstr);
return_error(gs_error_Fatal);
}
- /* Allow quotes to protect whitespace. */
- /* (special cases have already been handled and don't reach this point) */
- if (c == '"')
- in_quote = !in_quote;
+ /* Now, some (slightly hairy) code to allow quotes to protect whitespace.
+ * We only allow for double-quote quoting within @files, as a) command-
+ * line args passed via argv are zero terminated so we should have no
+ * confusion with whitespace, and b) callers using the command line will
+ * have to have carefully quoted double-quotes to make them survive the
+ * shell anyway! */
+ if (c == '"' && pal->depth > 0) {
+ if (i == 0 && !in_quote)
+ in_quote = true;
+ else if (in_quote) {
+ /* Need to check the next char to see if we're closing at the end */
+ c = get_codepoint(pal, pas);
+ if (c > 0 && c < 256 && isspace(c)) {
+ /* Reading from an @file, we've hit a space char. That's good, this
+ * was a close quote. */
+ cstr[i] = 0;
+ break;
+ }
+ /* Not a close quote, just a literal quote. */
+ i += codepoint_to_utf8(&cstr[i], '"');
+ eol = false;
+ continue; /* Jump to the start of the loop without reading another char. */
+ } else
+ i += codepoint_to_utf8(&cstr[i], c);
+ }
else
i += codepoint_to_utf8(&cstr[i], c);
eol = is_eol(c);
diff --git a/base/gscdefs.h b/base/gscdefs.h
index e5e6123e..a5cb3f91 100644
--- a/base/gscdefs.h
+++ b/base/gscdefs.h
@@ -1,4 +1,4 @@
-/* Copyright (C) 2001-2021 Artifex Software, Inc.
+/* Copyright (C) 2001-2022 Artifex Software, Inc.
All Rights Reserved.
This software is provided AS-IS with no warranty, either express or
@@ -27,7 +27,7 @@
#ifndef GS_COPYRIGHT
# define GS_COPYRIGHT\
- "Copyright (C) 2021 Artifex Software, Inc. All rights reserved."
+ "Copyright (C) 2022 Artifex Software, Inc. All rights reserved."
#endif
#ifndef GS_PRODUCTFAMILY
diff --git a/base/gscdevn.c b/base/gscdevn.c
index 41febb7f..ef2086b3 100644
--- a/base/gscdevn.c
+++ b/base/gscdevn.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 2001-2021 Artifex Software, Inc.
+/* Copyright (C) 2001-2022 Artifex Software, Inc.
All Rights Reserved.
This software is provided AS-IS with no warranty, either express or
@@ -747,7 +747,7 @@ gx_install_DeviceN(gs_color_space * pcs, gs_gstate * pgs)
if (code >= 0) {
if (dev_proc(pgs->device, update_spot_equivalent_colors))
code = dev_proc(pgs->device, update_spot_equivalent_colors)
- (pgs->device, pgs);
+ (pgs->device, pgs, pcs);
}
return code;
}
@@ -774,8 +774,7 @@ gx_set_overprint_DeviceN(const gs_color_space * pcs, gs_gstate * pgs)
else
return gx_set_no_overprint(pgs);
} else {
- gs_overprint_params_t params;
-
+ gs_overprint_params_t params = { 0 };
params.retain_any_comps = (pgs->overprint && pgs->is_fill_color) ||
(pgs->stroke_overprint && !pgs->is_fill_color);
diff --git a/base/gscedata.c b/base/gscedata.c
index 2898533d..cc0feb34 100644
--- a/base/gscedata.c
+++ b/base/gscedata.c
@@ -12,7 +12,6 @@
Artifex Software, Inc., 1305 Grant Avenue - Suite 200, Novato,
CA 94945, U.S.A., +1(415)492-9861, for further information.
*/
-
/*
* This file contains substantial parts of toolbin/encs2c.ps,
* which generated the remainder of the file mechanically from
@@ -23,6 +22,9 @@
* This source file is maintained manually under source code control,
* however its content should be regenerated by using encs2c.ps
* if changes are required.
+ * You should not manually alter this file! If you regenerate it using
+ * encs2c.ps you must regenerate all 4 files; base/gscedata.[c|h]
+ * and devices/vector/gdevpdtv.[c|h]
*/
#include "stdpre.h"
diff --git a/base/gscedata.h b/base/gscedata.h
index 47c034c0..c01d8aae 100644
--- a/base/gscedata.h
+++ b/base/gscedata.h
@@ -12,7 +12,6 @@
Artifex Software, Inc., 1305 Grant Avenue - Suite 200, Novato,
CA 94945, U.S.A., +1(415)492-9861, for further information.
*/
-
/*
* This file contains substantial parts of toolbin/encs2c.ps,
* which generated the remainder of the file mechanically from
@@ -23,13 +22,14 @@
* This source file is maintained manually under source code control,
* however its content should be regenerated by using encs2c.ps
* if changes are required.
+ * You should not manually alter this file! If you regenerate it using
+ * encs2c.ps you must regenerate all 4 files; base/gscedata.[c|h]
+ * and devices/vector/gdevpdtv.[c|h]
*/
#ifndef gscedata_INCLUDED
# define gscedata_INCLUDED
-#include "stdpre.h"
-
#define NUM_LEN_BITS 5
#define N(len,offset) (((offset) << NUM_LEN_BITS) + (len))
diff --git a/base/gscoord.c b/base/gscoord.c
index f32e4cd3..8134980e 100644
--- a/base/gscoord.c
+++ b/base/gscoord.c
@@ -618,7 +618,6 @@ gx_matrix_to_fixed_coeff(const gs_matrix * pmat, register fixed_coeff * pfc,
SET_C(yx);
SET_C(yy);
#undef SET_C
-#ifndef GS_THREADSAFE
#ifdef DEBUG
if (gs_debug_c('x')) {
dlprintf6("[x]ctm: [%6g %6g %6g %6g %6g %6g]\n",
@@ -628,7 +627,6 @@ gx_matrix_to_fixed_coeff(const gs_matrix * pmat, register fixed_coeff * pfc,
pfc->shift);
}
#endif
-#endif
pfc->max_bits = max_bits;
return 0;
}
diff --git a/base/gscpixel.c b/base/gscpixel.c
index e1855c61..1e416383 100644
--- a/base/gscpixel.c
+++ b/base/gscpixel.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 2001-2021 Artifex Software, Inc.
+/* Copyright (C) 2001-2022 Artifex Software, Inc.
All Rights Reserved.
This software is provided AS-IS with no warranty, either express or
@@ -110,7 +110,7 @@ gx_remap_concrete_DevicePixel(const gs_color_space * pcs, const frac * pconc,
static int
gx_set_overprint_DevicePixel(const gs_color_space * pcs, gs_gstate * pgs)
{
- gs_overprint_params_t params;
+ gs_overprint_params_t params = { 0 };
params.retain_any_comps = false;
params.effective_opm = pgs->color[0].effective_opm = 0;
diff --git a/base/gscsepr.c b/base/gscsepr.c
index 10400106..9e2696fc 100644
--- a/base/gscsepr.c
+++ b/base/gscsepr.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 2001-2021 Artifex Software, Inc.
+/* Copyright (C) 2001-2022 Artifex Software, Inc.
All Rights Reserved.
This software is provided AS-IS with no warranty, either express or
@@ -172,7 +172,7 @@ gx_install_Separation(gs_color_space * pcs, gs_gstate * pgs)
*/
if (dev_proc(pgs->device, update_spot_equivalent_colors))
code = dev_proc(pgs->device, update_spot_equivalent_colors)
- (pgs->device, pgs);
+ (pgs->device, pgs, pcs);
}
return code;
}
@@ -186,7 +186,7 @@ gx_set_overprint_Separation(const gs_color_space * pcs, gs_gstate * pgs)
if (pcmap->use_alt_cspace)
return gx_set_no_overprint(pgs);
else {
- gs_overprint_params_t params;
+ gs_overprint_params_t params = { 0 };
params.retain_any_comps = (((pgs->overprint && pgs->is_fill_color) ||
(pgs->stroke_overprint && !pgs->is_fill_color)) &&
diff --git a/base/gsdcolor.h b/base/gsdcolor.h
index 253799ed..dda6dbf9 100644
--- a/base/gsdcolor.h
+++ b/base/gsdcolor.h
@@ -376,7 +376,6 @@ struct gx_device_color_saved_s {
} devn;
struct _pattern {
gs_id id;
- gs_int_point phase;
} pattern;
struct _pattern2 {
gs_id id;
diff --git a/base/gsdevice.c b/base/gsdevice.c
index b02c324c..9af9403d 100644
--- a/base/gsdevice.c
+++ b/base/gsdevice.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 2001-2021 Artifex Software, Inc.
+/* Copyright (C) 2001-2022 Artifex Software, Inc.
All Rights Reserved.
This software is provided AS-IS with no warranty, either express or
@@ -820,12 +820,8 @@ gx_device_raster(const gx_device * dev, bool pad)
/* depth can be <= num_components if planar and MEM_SET_PARAMS has changed it */
if (depth <= num_components || bpc >= 8) {
- /* tag plane requires at least 8 bits (per component as well as tags) */
- int has_tags = bpc >= 8 ? device_encodes_tags(dev): 0;
-
- bits /= (num_components + has_tags);
- }
- else {
+ bits /= num_components;
+ } else {
/* depth is original depth, not the plane_depth since it is > num_components */
bits /= (depth / bpc);
}
@@ -1206,13 +1202,15 @@ int gx_device_delete_output_file(const gx_device * dev, const char *fname)
const char *fmt;
char *pfname = (char *)gs_alloc_bytes(dev->memory, gp_file_name_sizeof, "gx_device_delete_output_file(pfname)");
int code;
+ size_t len;
if (pfname == NULL) {
code = gs_note_error(gs_error_VMerror);
goto done;
}
- code = gx_parse_output_file_name(&parsed, &fmt, fname, strlen(fname),
+ len = strlen(fname);
+ code = gx_parse_output_file_name(&parsed, &fmt, fname, len,
dev->memory);
if (code < 0) {
goto done;
@@ -1227,11 +1225,11 @@ int gx_device_delete_output_file(const gx_device * dev, const char *fname)
while (*fmt != 'l' && *fmt != '%')
--fmt;
if (*fmt == 'l')
- gs_sprintf(pfname, parsed.fname, count1);
+ gs_snprintf(pfname, len, parsed.fname, count1);
else
- gs_sprintf(pfname, parsed.fname, (int)count1);
+ gs_snprintf(pfname, len, parsed.fname, (int)count1);
} else if (parsed.len && strchr(parsed.fname, '%')) /* filename with "%%" but no "%nnd" */
- gs_sprintf(pfname, parsed.fname);
+ gs_snprintf(pfname, len, parsed.fname);
else
pfname[0] = 0; /* 0 to use "fname", not "pfname" */
if (pfname[0]) {
@@ -1304,11 +1302,11 @@ gx_device_open_output_file(const gx_device * dev, char *fname,
while (*fmt != 'l' && *fmt != '%')
--fmt;
if (*fmt == 'l')
- gs_sprintf(pfname, parsed.fname, count1);
+ gs_snprintf(pfname, gp_file_name_sizeof, parsed.fname, count1);
else
- gs_sprintf(pfname, parsed.fname, (int)count1);
+ gs_snprintf(pfname, gp_file_name_sizeof, parsed.fname, (int)count1);
} else if (parsed.len && strchr(parsed.fname, '%')) /* filename with "%%" but no "%nnd" */
- gs_sprintf(pfname, parsed.fname);
+ gs_snprintf(pfname, gp_file_name_sizeof, parsed.fname);
else
pfname[0] = 0; /* 0 to use "fname", not "pfname" */
if (pfname[0]) {
@@ -1435,3 +1433,25 @@ gdev_space_params_cmp(const gdev_space_params sp1,
return(0);
}
+
+static void
+release_nts_lock(gx_device *dev)
+{
+ (void)gs_lib_ctx_nts_adjust(dev->memory, -1);
+}
+
+int gx_init_non_threadsafe_device(gx_device *dev)
+{
+ int code;
+
+ if (dev == NULL || dev->finalize != NULL)
+ return gs_error_unknownerror;
+
+ code = gs_lib_ctx_nts_adjust(dev->memory, 1);
+ if (code < 0)
+ return code;
+
+ dev->finalize = release_nts_lock;
+
+ return 0;
+}
diff --git a/base/gsdparam.c b/base/gsdparam.c
index f1827261..069b2138 100644
--- a/base/gsdparam.c
+++ b/base/gsdparam.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 2001-2021 Artifex Software, Inc.
+/* Copyright (C) 2001-2022 Artifex Software, Inc.
All Rights Reserved.
This software is provided AS-IS with no warranty, either express or
@@ -921,7 +921,7 @@ gdev_write_input_media(int index, gs_param_dict * pdict,
int code;
gs_param_string as;
- gs_sprintf(key, "%d", index);
+ gs_snprintf(key, sizeof(key), "%d", index);
mdict.size = 4;
code = param_begin_write_dict(pdict->list, key, &mdict, false);
if (code < 0)
@@ -1009,7 +1009,7 @@ gdev_write_output_media(int index, gs_param_dict * pdict,
gs_param_dict mdict;
int code;
- gs_sprintf(key, "%d", index);
+ gs_snprintf(key, sizeof(key), "%d", index);
mdict.size = 4;
code = param_begin_write_dict(pdict->list, key, &mdict, false);
if (code < 0)
diff --git a/base/gsequivc.c b/base/gsequivc.c
index e2b9c33d..441183ed 100644
--- a/base/gsequivc.c
+++ b/base/gsequivc.c
@@ -283,10 +283,10 @@ static bool check_all_colors_known(int num_spot,
/* If possible, update the equivalent CMYK color for a spot color */
int
-update_spot_equivalent_cmyk_colors(gx_device * pdev, const gs_gstate * pgs,
+update_spot_equivalent_cmyk_colors(gx_device * pdev, const gs_gstate * pgs, const gs_color_space * pcs_in,
gs_devn_params * pdevn_params, equivalent_cmyk_color_params * pparams)
{
- const gs_color_space * pcs;
+ const gs_color_space * pcs = pcs_in;
cmm_dev_profile_t *dev_profile;
int code;
@@ -303,12 +303,16 @@ update_spot_equivalent_cmyk_colors(gx_device * pdev, const gs_gstate * pgs,
pparams->all_color_info_valid = true;
return 0;
}
+
+ /* If the caller apssed in NULL for the colour space, use the current colour space */
+ if (pcs_in == NULL)
+ pcs = gs_currentcolorspace_inline(pgs);
+
/*
* Verify that the given color space is a Separation or a DeviceN color
* space. If so then when check if the color space contains a separation
* color for which we need a CMYK equivalent.
*/
- pcs = gs_currentcolorspace_inline(pgs);
if (pcs != NULL) {
if (pcs->type->index == gs_color_space_index_Separation) {
update_Separation_spot_equivalent_cmyk_colors(pdev, pgs, pcs,
diff --git a/base/gsequivc.h b/base/gsequivc.h
index 0ea3ead4..d5501b2d 100644
--- a/base/gsequivc.h
+++ b/base/gsequivc.h
@@ -61,7 +61,8 @@ typedef struct equivalent_cmyk_color_params_s {
* If possible, update the equivalent CMYK color for spot colors.
*/
int update_spot_equivalent_cmyk_colors(gx_device * pdev,
- const gs_gstate * pgs, gs_devn_params * pdevn_params,
+ const gs_gstate * pgs, const gs_color_space * pcs,
+ gs_devn_params * pdevn_params,
equivalent_cmyk_color_params * pparams);
/*
diff --git a/base/gserrors.h b/base/gserrors.h
index 91b05cdf..0e4982d7 100644
--- a/base/gserrors.h
+++ b/base/gserrors.h
@@ -129,16 +129,11 @@ enum gs_error_type {
typedef enum gs_error_type gs_error_t;
int gs_log_error(int, const char *, int);
-#if !defined(DEBUG) || defined(GS_THREADSAFE)
+#if !defined(DEBUG)
# define gs_log_error(err, file, line) (err)
#endif
-#ifdef GS_THREADSAFE
-#define gs_note_error(err) (err)
-#define return_error(err) return (err)
-#else
#define gs_note_error(err) gs_log_error(err, __FILE__, __LINE__)
#define return_error(err) return gs_note_error(err)
-#endif
#if !defined(__STDC_VERSION__) || __STDC_VERSION__ < 199901L
# if defined(__GNUC__) && __GNUC__ >= 2
@@ -168,105 +163,6 @@ int gs_log_error(int, const char *, int);
const char *gs_errstr(int code);
-#ifdef GS_THREADSAFE
-/* In threadsafe builds, we just swallow errors unreported */
-#define gs_throw_code(code) \
- (code)
-
-#define gs_throw(code, fmt) \
- (code)
-#define gs_throw1(code, fmt, arg1) \
- (code)
-#define gs_throw2(code, fmt, arg1, arg2) \
- (code)
-#define gs_throw3(code, fmt, arg1, arg2, arg3) \
- (code)
-#define gs_throw4(code, fmt, arg1, arg2, arg3, arg4) \
- (code)
-#define gs_throw5(code, fmt, arg1, arg2, arg3, arg4, arg5) \
- (code)
-#define gs_throw6(code, fmt, arg1, arg2, arg3, arg4, arg5, arg6) \
- (code)
-#define gs_throw7(code, fmt, arg1, arg2, arg3, arg4, arg5, arg6, arg7) \
- (code)
-#define gs_throw8(code, fmt, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8) \
- (code)
-#define gs_throw9(code, fmt, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9) \
- (code)
-
-/* Bubble the code up the stack
-*/
-#define gs_rethrow_code(code) \
- (code)
-
-#define gs_rethrow(code, fmt) \
- (code)
-#define gs_rethrow1(code, fmt, arg1) \
- (code)
-#define gs_rethrow2(code, fmt, arg1, arg2) \
- (code)
-#define gs_rethrow3(code, fmt, arg1, arg2, arg3) \
- (code)
-#define gs_rethrow4(code, fmt, arg1, arg2, arg3, arg4) \
- (code)
-#define gs_rethrow5(code, fmt, arg1, arg2, arg3, arg4, arg5) \
- (code)
-#define gs_rethrow6(code, fmt, arg1, arg2, arg3, arg4, arg5, arg6) \
- (code)
-#define gs_rethrow7(code, fmt, arg1, arg2, arg3, arg4, arg5, arg6, arg7) \
- (code)
-#define gs_rethrow8(code, fmt, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8) \
- (code)
-#define gs_rethrow9(code, fmt, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9) \
- (code)
-
-/* This will cause trouble, as it implies you are fixing an error
- * the system will spew messages
- */
-#define gs_catch(code, fmt) \
- (code)
-#define gs_catch1(code, fmt, arg1) \
- (code)
-#define gs_catch2(code, fmt, arg1, arg2) \
- (code)
-#define gs_catch3(code, fmt, arg1, arg2, arg3) \
- (code)
-#define gs_catch4(code, fmt, arg1, arg2, arg3, arg4) \
- (code)
-#define gs_catch5(code, fmt, arg1, arg2, arg3, arg4, arg5) \
- (code)
-#define gs_catch6(code, fmt, arg1, arg2, arg3, arg4, arg5, arg6) \
- (code)
-#define gs_catch7(code, fmt, arg1, arg2, arg3, arg4, arg5, arg6, arg7) \
- (code)
-#define gs_catch8(code, fmt, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8) \
- (code)
-#define gs_catch9(code, fmt, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9) \
- (code)
-
-/* gs_warn is a printf
- */
-#define gs_warn(fmt) \
- DO_NOTHING
-#define gs_warn1(fmt, arg1) \
- DO_NOTHING
-#define gs_warn2(fmt, arg1, arg2) \
- DO_NOTHING
-#define gs_warn3(fmt, arg1, arg2, arg3) \
- DO_NOTHING
-#define gs_warn4(fmt, arg1, arg2, arg3, arg4) \
- DO_NOTHING
-#define gs_warn5(fmt, arg1, arg2, arg3, arg4, arg5) \
- DO_NOTHING
-#define gs_warn6(fmt, arg1, arg2, arg3, arg4, arg5, arg6) \
- DO_NOTHING
-#define gs_warn7(fmt, arg1, arg2, arg3, arg4, arg5, arg6, arg7) \
- DO_NOTHING
-#define gs_warn8(fmt, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8) \
- DO_NOTHING
-#define gs_warn9(fmt, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9) \
- DO_NOTHING
-#else
int gs_throw_imp(const char *func, const char *file, int line,
int op, int code, const char *fmt, ...) __printflike(6, 7);
@@ -368,7 +264,6 @@ int gs_throw_imp(const char *func, const char *file, int line,
(void)gs_throw_imp(__func__, __FILE__, __LINE__, 3, 0, fmt, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8)
#define gs_warn9(fmt, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9) \
(void)gs_throw_imp(__func__, __FILE__, __LINE__, 3, 0, fmt, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9)
-#endif
/* just in case you don't know 0 means no error
* other return codes are errors.
diff --git a/base/gsfcmap.c b/base/gsfcmap.c
index f378d544..3c9317d5 100644
--- a/base/gsfcmap.c
+++ b/base/gsfcmap.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 2001-2021 Artifex Software, Inc.
+/* Copyright (C) 2001-2022 Artifex Software, Inc.
All Rights Reserved.
This software is provided AS-IS with no warranty, either express or
@@ -568,7 +568,7 @@ gs_cmap_ToUnicode_alloc(gs_memory_t *mem, int id, int num_codes, int key_size, i
char sid[10], *pref = "aux-";
int sid_len, pref_len = strlen(pref);
- gs_sprintf(sid, "%d", id);
+ gs_snprintf(sid, sizeof(sid), "%d", id);
sid_len = strlen(sid);
name_len = pref_len + sid_len;
cmap_name = gs_alloc_string(mem, name_len, "gs_cmap_ToUnicode_alloc");
diff --git a/base/gsfcmap1.c b/base/gsfcmap1.c
index 0add2c74..249d74e6 100644
--- a/base/gsfcmap1.c
+++ b/base/gsfcmap1.c
@@ -23,6 +23,7 @@
#include "gsstruct.h"
#include "gsutil.h" /* for gs_next_ids */
#include "gxfcmap1.h"
+#include "gp.h"
/* Get a big-endian integer. */
static inline ulong
@@ -77,22 +78,24 @@ public_st_cmap_lookup_range_element();
* multi-dimensional range comparator
*/
-#ifndef GS_THREADSAFE
#ifdef DEBUG
static void
print_msg_str_in_range(const byte *str,
const byte *key_lo, const byte *key_hi,
int key_size)
{
- debug_print_string_hex_nomem(str, key_size);
- dlprintf(" in ");
- debug_print_string_hex_nomem(key_lo, key_size);
- dlprintf(" - ");
- debug_print_string_hex_nomem(key_hi, key_size);
- dlprintf("\n");
+ gs_memory_t *mem = gp_get_debug_mem_ptr();
+
+ if (mem == NULL)
+ return;
+ debug_print_string_hex(mem, str, key_size);
+ dmlprintf(mem, " in ");
+ debug_print_string_hex(mem, key_lo, key_size);
+ dmlprintf(mem, " - ");
+ debug_print_string_hex(mem, key_hi, key_size);
+ dmlprintf(mem, "\n");
}
#endif
-#endif
static int
gs_cmap_get_shortest_chr(const gx_code_map_t * pcmap, uint *pfidx)
@@ -128,14 +131,12 @@ gs_multidim_CID_offset(const byte *key_str,
int i; /* index for current dimension */
int CID_offset = 0;
-#ifndef GS_THREADSAFE
#ifdef DEBUG
if (gs_debug_c('J')) {
dlprintf("[J]gmCo() calc CID_offset for 0x");
print_msg_str_in_range(key_str, key_lo, key_hi, key_size);
}
#endif
-#endif
for (i = 0; i < key_size; i++)
CID_offset = CID_offset * (key_hi[i] - key_lo[i] + 1) +
@@ -183,7 +184,6 @@ code_map_decode_next_multidim_regime(const gx_code_map_t * pcmap,
*pchr = '\0';
-#ifndef GS_THREADSAFE
#ifdef DEBUG
if (gs_debug_c('J')) {
dlprintf("[J]CMDNmr() is called: str=(");
@@ -192,7 +192,6 @@ code_map_decode_next_multidim_regime(const gx_code_map_t * pcmap,
(intptr_t)str, ssize, pcmap->num_lookup);
}
#endif
-#endif
for (i = pcmap->num_lookup - 1; i >= 0; --i) {
/* main loop - scan the map passed via pcmap */
@@ -220,7 +219,6 @@ code_map_decode_next_multidim_regime(const gx_code_map_t * pcmap,
if (0 == j) /* no match, skip to next i */
continue;
else if (j < pre_size) { /* not exact, partial match */
-#ifndef GS_THREADSAFE
#ifdef DEBUG
if (gs_debug_c('J')) {
dlprintf("[J]CMDNmr() partial match with prefix:");
@@ -228,7 +226,6 @@ code_map_decode_next_multidim_regime(const gx_code_map_t * pcmap,
prefix, pre_size);
}
#endif
-#endif
if (pm_maxlen < j) {
pm_maxlen = chr_size;
pm_chr = bytes2int(str, chr_size);
@@ -238,14 +235,12 @@ code_map_decode_next_multidim_regime(const gx_code_map_t * pcmap,
continue ; /* no need to check key, skip to next i */
}
-#ifndef GS_THREADSAFE
#ifdef DEBUG
if (gs_debug_c('J')) {
dlprintf("[J]CMDNmr() full match with prefix:");
print_msg_str_in_range(str, prefix, prefix, pre_size);
}
#endif
-#endif
} /* if (0 < pre_size) */
/* full match in prefix. check key */
@@ -266,14 +261,12 @@ code_map_decode_next_multidim_regime(const gx_code_map_t * pcmap,
for (k = 0; k < pclr->num_entries; ++k, key += step) {
-#ifndef GS_THREADSAFE
#ifdef DEBUG
if_debug0('j', "[j]CMDNmr() check key:");
if (gs_debug_c('j'))
print_msg_str_in_range(str + pre_size,
key, key + step - key_size, key_size) ;
#endif
-#endif
for (l = 0; l < key_size; l++) {
byte c = str[l + pre_size];
@@ -302,7 +295,6 @@ code_map_decode_next_multidim_regime(const gx_code_map_t * pcmap,
*pfidx = pclr->font_index;
pvalue = pclr->values.data + k * pclr->value_size;
-#ifndef GS_THREADSAFE
#ifdef DEBUG
if (gs_debug_c('J')) {
dlprintf("[J]CMDNmr() full matched pvalue=(");
@@ -310,7 +302,6 @@ code_map_decode_next_multidim_regime(const gx_code_map_t * pcmap,
dlprintf(")\n");
}
#endif
-#endif
switch (pclr->value_type) {
case CODE_VALUE_CID:
@@ -343,7 +334,6 @@ code_map_decode_next_multidim_regime(const gx_code_map_t * pcmap,
*pfidx = pm_fidx;
*pglyph = GS_NO_GLYPH;
-#ifndef GS_THREADSAFE
#ifdef DEBUG
if (gs_debug_c('J')) {
dlprintf("[J]CMDNmr() no full match, use partial match for (");
@@ -351,7 +341,6 @@ code_map_decode_next_multidim_regime(const gx_code_map_t * pcmap,
dlprintf(")\n");
}
#endif
-#endif
return 0;
}
@@ -434,7 +423,6 @@ gs_cmap_adobe1_decode_next(const gs_cmap_t * pcmap_in,
*pglyph = GS_MIN_CID_GLYPH; /* CID = 0, this is CMap fallback */
*pindex = save_index + chr_size_shortest;
*pchr = '\0';
-#ifndef GS_THREADSAFE
#ifdef DEBUG
if (gs_debug_c('J')) {
const byte *str = pstr->data + save_index;
@@ -444,21 +432,18 @@ gs_cmap_adobe1_decode_next(const gs_cmap_t * pcmap_in,
dlprintf(")\n");
}
#endif
-#endif
return 0; /* should return some error for fallback .notdef? */
}
else {
/* Undecodable string is shorter than the shortest character,
* return 'GS_NO_GLYPH' and update index to end-of-string
*/
-#ifndef GS_THREADSAFE
#ifdef DEBUG
if (gs_debug_c('J')) {
dlprintf2("[J]GCDN() left data in buffer (%d) is shorter than shortest defined character (%d)\n",
ssize, chr_size_shortest);
}
#endif
-#endif
*pglyph = GS_NO_GLYPH;
*pindex += ssize;
return 0; /* fixme: should return a code != 0 if caller needs to know */
diff --git a/base/gsfont.c b/base/gsfont.c
index 3fcb8deb..8e2015b1 100644
--- a/base/gsfont.c
+++ b/base/gsfont.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 2001-2021 Artifex Software, Inc.
+/* Copyright (C) 2001-2022 Artifex Software, Inc.
All Rights Reserved.
This software is provided AS-IS with no warranty, either express or
@@ -189,6 +189,14 @@ gs_font_finalize(const gs_memory_t *cmem, void *vptr)
prev->next = next;
} else if (ppfirst != 0 && *ppfirst == pfont)
*ppfirst = next;
+
+ if (pfont->FontType != ft_composite) {
+ gs_font_base *pbfont = (gs_font_base *)pfont;
+ if (uid_is_XUID(&pbfont->UID)) {
+ uid_free(&pbfont->UID, pbfont->memory, "gs_font_finalize");
+ }
+ }
+
gs_notify_release(&pfont->notify_list);
}
static
@@ -234,8 +242,8 @@ gs_font_dir_alloc2(gs_memory_t * struct_mem, gs_memory_t * bits_mem)
pdir = gs_font_dir_alloc2_limits(struct_mem, bits_mem,
smax_SMALL, bmax_SMALL, mmax_SMALL,
cmax_SMALL, blimit_SMALL);
- if (pdir == 0)
- return 0;
+ if (pdir == NULL)
+ return NULL;
pdir->ccache.mark_glyph = cc_no_mark_glyph;
pdir->ccache.mark_glyph_data = 0;
return pdir;
@@ -249,16 +257,15 @@ gs_font_dir_alloc2_limits(gs_memory_t * struct_mem, gs_memory_t * bits_mem,
"font_dir_alloc(dir)");
int code;
- if (pdir == 0)
- return 0;
+ if (pdir == NULL)
+ return NULL;
memset(pdir, 0, sizeof(*pdir));
+ pdir->memory = struct_mem;
code = gx_char_cache_alloc(struct_mem, bits_mem, pdir,
bmax, mmax, cmax, upper);
if (code < 0) {
- gs_free_object(struct_mem, pdir->ccache.table, "font_dir_alloc(chars)");
- gs_free_object(struct_mem, pdir->fmcache.mdata, "font_dir_alloc(mdata)");
gs_free_object(struct_mem, pdir, "font_dir_alloc(dir)");
- return 0;
+ return NULL;
}
pdir->orig_fonts = 0;
pdir->scaled_fonts = 0;
@@ -267,7 +274,6 @@ gs_font_dir_alloc2_limits(gs_memory_t * struct_mem, gs_memory_t * bits_mem,
pdir->align_to_pixels = false;
pdir->glyph_to_unicode_table = NULL;
pdir->grid_fit_tt = 1;
- pdir->memory = struct_mem;
pdir->tti = 0;
pdir->ttm = 0;
pdir->san = 0;
@@ -314,6 +320,13 @@ gs_font_dir_finalize(const gs_memory_t *cmem, void *vptr)
}
pdir->ccache.chunks = NULL;
}
+void
+gs_font_dir_free(gs_font_dir *dir)
+{
+ if (dir == NULL)
+ return;
+ gs_free_object(dir->memory, dir, "gs_font_dir_free");
+}
/* Allocate and minimally initialize a font. */
gs_font *
diff --git a/base/gsfont.h b/base/gsfont.h
index f7f4c61a..926c61d3 100644
--- a/base/gsfont.h
+++ b/base/gsfont.h
@@ -1,4 +1,4 @@
-/* Copyright (C) 2001-2021 Artifex Software, Inc.
+/* Copyright (C) 2001-2022 Artifex Software, Inc.
All Rights Reserved.
This software is provided AS-IS with no warranty, either express or
@@ -43,6 +43,7 @@ gs_font_dir *gs_font_dir_alloc2_limits(gs_memory_t * struct_mem,
gs_memory_t * bits_mem,
uint smax, uint bmax, uint mmax,
uint cmax, uint upper);
+void gs_font_dir_free(gs_font_dir *dir);
/* Backward compatibility */
#define gs_font_dir_alloc(mem) gs_font_dir_alloc2(mem, mem)
diff --git a/base/gshsb.c b/base/gshsb.c
index 1b92133e..58e9424c 100644
--- a/base/gshsb.c
+++ b/base/gshsb.c
@@ -150,7 +150,6 @@ color_hsb_to_rgb(double hue, double saturation, double brightness, float rgb[3])
rgb[0] = frac2float(R);
rgb[1] = frac2float(G);
rgb[2] = frac2float(B);
-#ifndef GS_THREADSAFE
#ifdef DEBUG
if (gs_debug_c('c')) {
dlprintf7("[c]hsb(%g,%g,%g)->VSFI(%ld,%d,%ld,%d)->\n",
@@ -159,6 +158,5 @@ color_hsb_to_rgb(double hue, double saturation, double brightness, float rgb[3])
R, G, B, rgb[0], rgb[1], rgb[2]);
}
#endif
-#endif
}
}
diff --git a/base/gsht.c b/base/gsht.c
index 2b8567f9..738c1661 100644
--- a/base/gsht.c
+++ b/base/gsht.c
@@ -26,7 +26,6 @@
#include "gxarith.h" /* for igcd */
#include "gzstate.h"
#include "gxdevice.h" /* for gzht.h */
-#include "gxdevsop.h"
#include "gzht.h"
#include "gxfmap.h" /* For effective transfer usage in threshold */
#include "gp.h"
@@ -390,7 +389,7 @@ gx_ht_alloc_threshold_order(gx_ht_order * porder, uint width, uint height,
{
gx_ht_order order;
- unsigned long num_bits = bitmap_raster(width) * 8 * height;
+ unsigned long num_bits = bitmap_raster(width) * (unsigned long)8 * height;
const gx_ht_order_procs_t *procs;
int code;
@@ -460,7 +459,6 @@ gx_sort_ht_order(gx_ht_bit * recs, uint N)
for (i = 0; i < N; i++)
recs[i].offset = i;
qsort((void *)recs, N, sizeof(*recs), compare_samples);
-#ifndef GS_THREADSAFE
#ifdef DEBUG
if (gs_debug_c('H')) {
uint i;
@@ -471,7 +469,6 @@ gx_sort_ht_order(gx_ht_bit * recs, uint N)
i, recs[i].offset, recs[i].mask);
}
#endif
-#endif
}
/*
@@ -646,53 +643,53 @@ int
gs_color_name_component_number(gx_device * dev, const char * pname,
int name_size, int halftonetype)
{
- int num_colorant = -1; /* initialize to "unknown" */
- int color_component_type = NO_COMP_NAME_TYPE_HT;
- bool devn = dev_proc(dev, dev_spec_op)(dev, gxdso_supports_devn, NULL, 0);
+ int num_colorant;
-#define check_colorant_name(dev, name, component_type) \
- ((*dev_proc(dev, get_color_comp_index)) (dev, name, strlen(name), component_type))
+#define check_colorant_name(dev, name) \
+ ((*dev_proc(dev, get_color_comp_index)) (dev, name, strlen(name), NO_COMP_NAME_TYPE_HT))
-#define check_colorant_name_length(dev, name, length, component_type) \
- ((*dev_proc(dev, get_color_comp_index)) (dev, name, length, component_type))
+#define check_colorant_name_length(dev, name, length) \
+ ((*dev_proc(dev, get_color_comp_index)) (dev, name, length, NO_COMP_NAME_TYPE_HT))
#define check_name(str, pname, length) \
((strlen(str) == length) && (strncmp(pname, str, length) == 0))
/*
+ * Check if this is a device colorant.
+ */
+ num_colorant = check_colorant_name_length(dev, pname, name_size);
+ if (num_colorant >= 0) {
+ /*
+ * The device will return GX_DEVICE_COLOR_MAX_COMPONENTS if the
+ * colorant is logically present in the device but not being used
+ * because a SeparationOrder parameter is specified. Since we are
+ * using this value to indicate 'Default', we use -1 to indicate
+ * that the colorant is not really being used.
+ */
+ if (num_colorant == GX_DEVICE_COLOR_MAX_COMPONENTS)
+ num_colorant = -1;
+ return num_colorant;
+ }
+
+ /*
* Check if this is the default component
*/
if (check_name("Default", pname, name_size))
return GX_DEVICE_COLOR_MAX_COMPONENTS;
- if (check_cmyk_color_model_comps(dev))
- color_component_type = SEPARATION_NAME; /* allow separations to be added */
-
- /*
- * Check if this is a device colorant.
- */
/* Halftones set by setcolorscreen, and (we think) */
- /* Type 2, 4, and 5 halftones, are supposed to work */
+ /* Type 2 and Type 4 halftones, are supposed to work */
/* for both RGB and CMYK, so we need a special check here. */
if (halftonetype == ht_type_colorscreen ||
- halftonetype == ht_type_multiple_colorscreen ||
- (halftonetype == ht_type_multiple && devn)) {
- /* Note that Red, Green, Blue and/or Gray can be added using setcolorspace */
- /* we just don't automatically add it as a result of sethalftone */
- /* The NO_COMP_NAME_TYPE_HT won't add colorants */
+ halftonetype == ht_type_multiple_colorscreen) {
if (check_name("Red", pname, name_size))
- num_colorant = check_colorant_name(dev, "Cyan", NO_COMP_NAME_TYPE_HT);
+ num_colorant = check_colorant_name(dev, "Cyan");
else if (check_name("Green", pname, name_size))
- num_colorant = check_colorant_name(dev, "Magenta", NO_COMP_NAME_TYPE_HT);
+ num_colorant = check_colorant_name(dev, "Magenta");
else if (check_name("Blue", pname, name_size))
- num_colorant = check_colorant_name(dev, "Yellow", NO_COMP_NAME_TYPE_HT);
+ num_colorant = check_colorant_name(dev, "Yellow");
else if (check_name("Gray", pname, name_size))
- num_colorant = check_colorant_name(dev, "Black", NO_COMP_NAME_TYPE_HT);
- }
- if (num_colorant < 0)
- num_colorant = check_colorant_name_length(dev, pname, name_size, color_component_type);
-
- if (num_colorant >= 0) {
+ num_colorant = check_colorant_name(dev, "Black");
/*
* The device will return GX_DEVICE_COLOR_MAX_COMPONENTS if the
* colorant is logically present in the device but not being used
@@ -702,12 +699,12 @@ gs_color_name_component_number(gx_device * dev, const char * pname,
*/
if (num_colorant == GX_DEVICE_COLOR_MAX_COMPONENTS)
num_colorant = -1;
- return num_colorant;
- }
+
#undef check_colorant_name
#undef check_colorant_name_length
#undef check_name
+ }
return num_colorant;
}
@@ -1306,7 +1303,10 @@ gx_gstate_set_effective_xfer(gs_gstate * pgs)
}
}
- if (pdht) { /* might not be initialized yet */
+ /* HT may not be initialized yet. Only do if the target is a halftone device.
+ Per the spec, the HT is a self-contained description of a halftoning process.
+ We don't use any xfer function from the HT if we are not halftoning */
+ if (pdht && !device_is_contone(pgs->device)) {
/* Since the transfer function is pickled into the threshold array (if any)*/
/* we need to free it so it can be reconstructed with the current transfer */
diff --git a/base/gshtscr.c b/base/gshtscr.c
index 6807a9f3..29cd93e1 100644
--- a/base/gshtscr.c
+++ b/base/gshtscr.c
@@ -602,7 +602,7 @@ gs_screen_next(gs_screen_enum * penum, double value)
if (value < -1.0 || value > 1.0)
return_error(gs_error_rangecheck);
sample = (ht_sample_t) ((value + 1) * max_ht_sample);
-#if defined(DEBUG) && !defined(GS_THREADSAFE)
+#if defined(DEBUG)
if (gs_debug_c('H')) {
gs_point pt;
diff --git a/base/gsicc_cache.c b/base/gsicc_cache.c
index ba332060..13eb003a 100644
--- a/base/gsicc_cache.c
+++ b/base/gsicc_cache.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 2001-2021 Artifex Software, Inc.
+/* Copyright (C) 2001-2022 Artifex Software, Inc.
All Rights Reserved.
This software is provided AS-IS with no warranty, either express or
@@ -47,6 +47,7 @@
* of links.
*/
#define ICC_CACHE_MAXLINKS (MAX_THREADS*2) /* allow up to two active links per thread */
+#define ICC_CACHE_NOT_VALID_COUNT 20 /* This should not really occur. If it does we need to take a closer look */
/* Static prototypes */
@@ -108,20 +109,21 @@ gsicc_cache_new(gs_memory_t *memory)
result->num_links = 0;
result->cache_full = false;
result->memory = memory->stable_memory;
+ result->full_wait = NULL; /* Required so finaliser can work when result freed. */
+ rc_init_free(result, memory->stable_memory, 1, rc_gsicc_link_cache_free);
result->lock = gx_monitor_label(gx_monitor_alloc(memory->stable_memory),
"gsicc_cache_new");
if (result->lock == NULL) {
- gs_free_object(memory->stable_memory, result, "gsicc_cache_new");
+ rc_decrement(result, "gsicc_cache_new");
return(NULL);
}
result->full_wait = gx_semaphore_label(gx_semaphore_alloc(memory->stable_memory),
"gsicc_cache_new");
if (result->full_wait == NULL) {
- gx_monitor_free(result->lock);
- gs_free_object(memory->stable_memory, result, "gsicc_cache_new");
+ /* Don't free result->lock, as the finaliser for result does that! */
+ rc_decrement(result, "gsicc_cache_new");
return(NULL);
}
- rc_init_free(result, memory->stable_memory, 1, rc_gsicc_link_cache_free);
if_debug2m(gs_debug_flag_icc, memory,
"[icc] Allocating link cache = "PRI_INTPTR" memory = "PRI_INTPTR"\n",
(intptr_t)result, (intptr_t)result->memory);
@@ -179,15 +181,16 @@ gsicc_alloc_link_dev(gs_memory_t *memory, cmm_profile_t *src_profile,
gsicc_link_t *result;
int cms_flags = 0;
- result = (gsicc_link_t*) gs_malloc(memory->stable_memory, 1,
+ memory = memory->non_gc_memory;
+ result = (gsicc_link_t*)gs_alloc_byte_array(memory, 1,
sizeof(gsicc_link_t), "gsicc_alloc_link_dev");
if (result == NULL)
return NULL;
- result->lock = gx_monitor_label(gx_monitor_alloc(memory->stable_memory),
+ result->lock = gx_monitor_label(gx_monitor_alloc(memory),
"gsicc_link_new");
if (result->lock == NULL) {
- gs_free_object(memory->stable_memory, result, "gsicc_alloc_link(lock)");
+ gs_free_object(memory, result, "gsicc_alloc_link(lock)");
return NULL;
}
gx_monitor_enter(result->lock);
@@ -212,35 +215,35 @@ gsicc_alloc_link_dev(gs_memory_t *memory, cmm_profile_t *src_profile,
result->includes_devlink = 0;
result->is_identity = false;
result->valid = true;
- result->memory = memory->stable_memory;
+ result->memory = memory;
if_debug1m('^', result->memory, "[^]icclink "PRI_INTPTR" init = 1\n",
(intptr_t)result);
if (src_profile->profile_handle == NULL) {
src_profile->profile_handle = gsicc_get_profile_handle_buffer(
- src_profile->buffer, src_profile->buffer_size, memory->stable_memory);
+ src_profile->buffer, src_profile->buffer_size, memory);
}
if (des_profile->profile_handle == NULL) {
des_profile->profile_handle = gsicc_get_profile_handle_buffer(
- des_profile->buffer, des_profile->buffer_size, memory->stable_memory);
+ des_profile->buffer, des_profile->buffer_size, memory);
}
/* Check for problems.. */
if (src_profile->profile_handle == 0 || des_profile->profile_handle == 0) {
- gs_free_object(memory->stable_memory, result, "gsicc_alloc_link_dev");
+ gs_free_object(memory, result, "gsicc_alloc_link_dev");
return NULL;
}
/* [0] is chunky, littleendian, noalpha, 16-in, 16-out */
result->link_handle = gscms_get_link(src_profile->profile_handle,
des_profile->profile_handle, rendering_params, cms_flags,
- memory->stable_memory);
+ memory);
/* Check for problems.. */
if (result->link_handle == NULL) {
- gs_free_object(memory->stable_memory, result, "gsicc_alloc_link_dev");
+ gs_free_object(memory, result, "gsicc_alloc_link_dev");
return NULL;
}
@@ -258,10 +261,12 @@ gsicc_alloc_link_dev(gs_memory_t *memory, cmm_profile_t *src_profile,
/* And the related release of the link */
void
-gsicc_free_link_dev(gs_memory_t *memory, gsicc_link_t *link)
+gsicc_free_link_dev(gsicc_link_t *link)
{
- gs_memory_t *nongc_mem = memory->non_gc_memory;
- gs_free_object(nongc_mem, link, "gsicc_free_link_dev");
+ if (link == NULL)
+ return;
+ link->procs.free_link(link);
+ gs_free_object(link->memory, link, "gsicc_free_link_dev");
}
static gsicc_link_t *
@@ -527,6 +532,7 @@ gsicc_findcachelink(gsicc_hashlink_t hash, gsicc_link_cache_t *icc_link_cache,
{
gsicc_link_t *curr, *prev;
int64_t hashcode = hash.link_hashcode;
+ int cache_loop = 0;
/* Look through the cache for the hashcode */
gx_monitor_enter(icc_link_cache->lock);
@@ -554,18 +560,25 @@ gsicc_findcachelink(gsicc_hashlink_t hash, gsicc_link_cache_t *icc_link_cache,
"icclink", (intptr_t)curr, curr->ref_count);
while (curr->valid == false) {
gx_monitor_leave(icc_link_cache->lock); /* exit to let other threads run briefly */
+ if (cache_loop > ICC_CACHE_NOT_VALID_COUNT) {
+ /* Clearly something is wrong. Return NULL.
+ File a bug report. */
+ emprintf(curr->memory, "Reached maximum invalid counts \n");
+ return NULL;
+ }
+ cache_loop++;
gx_monitor_enter(curr->lock); /* wait until we can acquire the lock */
gx_monitor_leave(curr->lock); /* it _should be valid now */
/* If it is still not valid, but we were able to lock, it means that the thread */
- /* that was building it failed to be able to complete building it */
- /* this is probably a fatal error. MV ??? */
+ /* that was building it failed to be able to complete building it. Try this only
+ a limited number of times before we bail. */
if (curr->valid == false) {
- emprintf1(curr->memory, "link "PRI_INTPTR" lock released, but still not valid.\n", (intptr_t)curr); /* Breakpoint here */
+ emprintf1(curr->memory, "link "PRI_INTPTR" lock released, but still not valid.\n", (intptr_t)curr); /* Breakpoint here */
}
gx_monitor_enter(icc_link_cache->lock); /* re-enter to loop and check */
}
gx_monitor_leave(icc_link_cache->lock);
- return(curr); /* success */
+ return curr; /* success */
}
prev = curr;
curr = curr->next;
@@ -958,7 +971,7 @@ gsicc_get_link_profile(const gs_gstate *pgs, gx_device *dev,
gsicc_manager_t *icc_manager = pgs->icc_manager;
gsicc_link_cache_t *icc_link_cache = pgs->icc_link_cache;
gs_memory_t *cache_mem = pgs->icc_link_cache->memory;
- gcmmhprofile_t *cms_input_profile;
+ gcmmhprofile_t *cms_input_profile = NULL;
gcmmhprofile_t *cms_output_profile = NULL;
gcmmhprofile_t *cms_proof_profile = NULL;
gcmmhprofile_t *cms_devlink_profile = NULL;
@@ -1034,6 +1047,7 @@ gsicc_get_link_profile(const gs_gstate *pgs, gx_device *dev,
gsicc_get_profile_handle_clist(gs_input_profile,
gs_input_profile->memory);
gs_input_profile->profile_handle = cms_input_profile;
+
/* It is possible that we are not using color management
due to a setting forced from srcgtag object (the None option)
which has made its way though the clist in the clist imaging
@@ -1042,7 +1056,6 @@ gsicc_get_link_profile(const gs_gstate *pgs, gx_device *dev,
We also have the Replace option. */
if (gs_input_profile->rend_is_valid &&
gs_input_profile->rend_cond.cmm == gsCMM_NONE) {
-
if (gs_input_profile->data_cs == gsRGB) {
link = gsicc_nocm_get_link(pgs, dev, 3);
} else {
@@ -1074,7 +1087,7 @@ gsicc_get_link_profile(const gs_gstate *pgs, gx_device *dev,
include_devicelink))
return link;
if (link == NULL)
- return NULL; /* error, couldn't allocate a link */
+ return NULL; /* error, couldn't allocate a link. Nothing to cleanup */
/* Here the link was new and the contents have valid=false and we */
/* own the lock for the link_profile. Build the profile, set valid */
@@ -1095,20 +1108,25 @@ gsicc_get_link_profile(const gs_gstate *pgs, gx_device *dev,
gsicc_get_profile_handle_buffer(gs_input_profile->buffer,
gs_input_profile->buffer_size,
memory);
- if (cms_input_profile == NULL)
- return NULL;
+ if (cms_input_profile == NULL) {
+ link->ref_count--;
+ goto icc_link_error;
+ }
+
gs_input_profile->profile_handle = cms_input_profile;
/* This *must* be a default profile that was not set up at start-up/
However it could be one from the icc creator code which does not
do an initialization at the time of creation from CalRGB etc. */
code = gsicc_initialize_default_profile(gs_input_profile);
- if (code < 0) return NULL;
+ if (code < 0) {
+ link->ref_count--;
+ goto icc_link_error;
+ }
} else {
/* Cant create the link. No profile present,
- nor any defaults to use for this. Really
- need to throw an error for this case. */
- gsicc_remove_link(link, cache_mem);
- return NULL;
+ nor any defaults to use for this. */
+ link->ref_count--;
+ goto icc_link_error;
}
}
/* No need to worry about an output profile handle if our source is a
@@ -1125,7 +1143,10 @@ gsicc_get_link_profile(const gs_gstate *pgs, gx_device *dev,
gs_output_profile->profile_handle = cms_output_profile;
/* This *must* be a default profile that was not set up at start-up */
code = gsicc_initialize_default_profile(gs_output_profile);
- if (code < 0) return NULL;
+ if (code < 0) {
+ link->ref_count--;
+ goto icc_link_error;
+ }
} else {
/* See if we have a clist device pointer. */
if ( gs_output_profile->dev != NULL ) {
@@ -1137,10 +1158,9 @@ gsicc_get_link_profile(const gs_gstate *pgs, gx_device *dev,
gs_output_profile->profile_handle = cms_output_profile;
} else {
/* Cant create the link. No profile present,
- nor any defaults to use for this. Really
- need to throw an error for this case. */
- gsicc_remove_link(link, cache_mem);
- return NULL;
+ nor any defaults to use for this. */
+ link->ref_count--;
+ goto icc_link_error;
}
}
}
@@ -1157,8 +1177,8 @@ gsicc_get_link_profile(const gs_gstate *pgs, gx_device *dev,
gx_monitor_enter(proof_profile->lock);
} else {
/* Cant create the link */
- gsicc_remove_link(link, cache_mem);
- return NULL;
+ link->ref_count--;
+ goto icc_link_error;
}
}
}
@@ -1175,8 +1195,8 @@ gsicc_get_link_profile(const gs_gstate *pgs, gx_device *dev,
gx_monitor_enter(devlink_profile->lock);
} else {
/* Cant create the link */
- gsicc_remove_link(link, cache_mem);
- return NULL;
+ link->ref_count--;
+ goto icc_link_error;
}
}
}
@@ -1203,9 +1223,9 @@ gsicc_get_link_profile(const gs_gstate *pgs, gx_device *dev,
pgs->icc_manager,
pgs->icc_manager->memory->stable_memory);
if (icc_manager->graytok_profile == NULL) {
- /* Cant create the link */ /* FIXME: clean up allocations and locksso far ??? */
- gsicc_remove_link(link, cache_mem);
- return NULL;
+ /* Cant create the link */
+ link->ref_count--;
+ goto icc_link_error;
}
}
if (icc_manager->smask_profiles == NULL) {
@@ -1278,10 +1298,18 @@ gsicc_get_link_profile(const gs_gstate *pgs, gx_device *dev,
gx_semaphore_signal(icc_link_cache->full_wait); /* let a waiting thread run */
}
gx_monitor_leave(link->lock);
- gsicc_remove_link(link, cache_mem);
- return NULL;
+ goto icc_link_error;
}
return link;
+
+icc_link_error:
+ /* Something went very wrong. Clean up so that the cache
+ does not maintain an invalid entry. Any other allocations
+ (e.g. profile handles) would get freed when the profiles
+ are freed */
+ gsicc_remove_link(link, cache_mem);
+
+ return NULL;
}
/* The following is used to transform a named color value at a particular tint
diff --git a/base/gsicc_cache.h b/base/gsicc_cache.h
index 7aa87a43..c9f51b3b 100644
--- a/base/gsicc_cache.h
+++ b/base/gsicc_cache.h
@@ -1,4 +1,4 @@
-/* Copyright (C) 2001-2021 Artifex Software, Inc.
+/* Copyright (C) 2001-2022 Artifex Software, Inc.
All Rights Reserved.
This software is provided AS-IS with no warranty, either express or
@@ -66,5 +66,5 @@ bool gsicc_support_named_color(const gs_color_space *pcs, const gs_gstate *pgs);
int gsicc_get_device_profile_comps(const cmm_dev_profile_t *dev_profile);
gsicc_link_t * gsicc_alloc_link_dev(gs_memory_t *memory, cmm_profile_t *src_profile,
cmm_profile_t *des_profile, gsicc_rendering_param_t *rendering_params);
-void gsicc_free_link_dev(gs_memory_t *memory, gsicc_link_t *link);
+void gsicc_free_link_dev(gsicc_link_t *link);
#endif
diff --git a/base/gsicc_cms.h b/base/gsicc_cms.h
index b9b38f93..d3e0e1de 100644
--- a/base/gsicc_cms.h
+++ b/base/gsicc_cms.h
@@ -1,4 +1,4 @@
-/* Copyright (C) 2001-2021 Artifex Software, Inc.
+/* Copyright (C) 2001-2022 Artifex Software, Inc.
All Rights Reserved.
This software is provided AS-IS with no warranty, either express or
@@ -76,8 +76,8 @@ gcmmhlink_t gscms_get_link_proof_devlink(gcmmhprofile_t lcms_srchandle,
gsicc_rendering_param_t *rendering_params,
bool src_dev_link, int cmm_flags,
gs_memory_t *memory);
-int gscms_create(gs_memory_t *memory);
-void gscms_destroy(gs_memory_t *memory);
+void *gscms_create(gs_memory_t *memory);
+void gscms_destroy(void *);
void gscms_release_link(gsicc_link_t *icclink);
void gscms_release_profile(void *profile, gs_memory_t *memory);
int gscms_transform_named_color(gsicc_link_t *icclink, float tint_value,
diff --git a/base/gsicc_create.c b/base/gsicc_create.c
index 8c2283ef..c9a586b2 100644
--- a/base/gsicc_create.c
+++ b/base/gsicc_create.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 2001-2021 Artifex Software, Inc.
+/* Copyright (C) 2001-2022 Artifex Software, Inc.
All Rights Reserved.
This software is provided AS-IS with no warranty, either express or
@@ -345,13 +345,14 @@ gsicc_create_clut(const gs_color_space *pcs, gsicc_clut *clut, gs_range *ranges,
Uniformly from min range to max range */
ptr_short = clut->data_short;
for (i = 0; i < num_points; i++) {
- if (num_components == 1) {
+ switch (num_components) {
+ case 1:
/* Get the input vector value */
fltptr = input_samples[0];
index = i%table_size;
cc.paint.values[0] = fltptr[index];
- }
- if (num_components == 3) {
+ break;
+ case 3:
/* The first channel varies least rapidly in the ICC table */
fltptr = input_samples[2];
index = i%table_size;
@@ -363,8 +364,8 @@ gsicc_create_clut(const gs_color_space *pcs, gsicc_clut *clut, gs_range *ranges,
index = (unsigned int) floor((float) i/(float) (table_size*
table_size))%table_size;
cc.paint.values[0] = fltptr[index];
- }
- if (num_components == 4) {
+ break;
+ case 4:
/* The first channel varies least rapidly in the ICC table */
fltptr = input_samples[3];
index = i%table_size;
@@ -380,6 +381,9 @@ gsicc_create_clut(const gs_color_space *pcs, gsicc_clut *clut, gs_range *ranges,
index = (unsigned int) floor((float) i/(float) (table_size*
table_size*table_size))%table_size;
cc.paint.values[0] = fltptr[index];
+ break;
+ default:
+ return_error(gs_error_rangecheck); /* Should never happen */
}
/* These special concretizations functions do not go through
the ICC mapping like the procs associated with the color space */
@@ -461,7 +465,7 @@ save_profile(const gs_memory_t *mem, unsigned char *buffer, char filename[], int
char full_file_name[50];
gp_file *fid;
- gs_sprintf(full_file_name,"%d)Profile_%s.icc",icc_debug_index,filename);
+ gs_snprintf(full_file_name,sizeof(full_file_name),"%d)Profile_%s.icc",icc_debug_index,filename);
fid = gp_fopen(mem, full_file_name,"wb");
gp_fwrite(buffer,sizeof(unsigned char),buffer_size,fid);
gp_fclose(fid);
@@ -1525,6 +1529,7 @@ create_lutAtoBprofile(unsigned char **pp_buffer_in, icHeader *header,
return gs_throw(gs_error_VMerror, "Allocation of ICC cam failed");
}
gsicc_create_compute_cam(lutatobparts->white_point, &(d50), cam);
+ gs_free_object(memory, lutatobparts->cam, "create_lutAtoBprofile");
lutatobparts->cam = cam;
get_D50(temp_XYZ); /* See Appendix D6 in spec */
add_xyzdata(curr_ptr, temp_XYZ);
diff --git a/base/gsicc_lcms2.c b/base/gsicc_lcms2.c
index ccf1d705..3c2d1d57 100644
--- a/base/gsicc_lcms2.c
+++ b/base/gsicc_lcms2.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 2001-2021 Artifex Software, Inc.
+/* Copyright (C) 2001-2022 Artifex Software, Inc.
All Rights Reserved.
This software is provided AS-IS with no warranty, either express or
@@ -462,7 +462,7 @@ int
gscms_transform_color(gx_device *dev, gsicc_link_t *icclink, void *inputcolor,
void *outputcolor, int num_bytes)
{
- return gscms_transformm_color_const(dev, icclink, inputcolor, outputcolor, num_bytes);
+ return gscms_transform_color_const(dev, icclink, inputcolor, outputcolor, num_bytes);
}
int
@@ -731,7 +731,7 @@ gscms_get_link_proof_devlink(gcmmhprofile_t lcms_srchandle,
}
/* Do any initialization if needed to the CMS */
-int
+void *
gscms_create(gs_memory_t *memory)
{
cmsContext ctx;
@@ -739,27 +739,26 @@ gscms_create(gs_memory_t *memory)
/* Set our own error handling function */
ctx = cmsCreateContext((void *)&gs_cms_memhandler, memory);
if (ctx == NULL)
- return_error(gs_error_VMerror);
+ return NULL;
#ifdef USE_LCMS2_LOCKING
cmsPluginTHR(ctx, (void *)&gs_cms_mutexhandler);
#endif
cmsSetLogErrorHandlerTHR(ctx, gscms_error);
- gs_lib_ctx_set_cms_context(memory, ctx);
- return 0;
+
+ return ctx;
}
/* Do any clean up when done with the CMS if needed */
void
-gscms_destroy(gs_memory_t *memory)
+gscms_destroy(void *cmsContext_)
{
- cmsContext ctx = gs_lib_ctx_get_cms_context(memory);
+ cmsContext ctx = (cmsContext)cmsContext_;
if (ctx == NULL)
return;
cmsDeleteContext(ctx);
- gs_lib_ctx_set_cms_context(memory, NULL);
}
/* Have the CMS release the link */
diff --git a/base/gsicc_lcms2mt.c b/base/gsicc_lcms2mt.c
index b0d85405..ac83787b 100644
--- a/base/gsicc_lcms2mt.c
+++ b/base/gsicc_lcms2mt.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 2001-2021 Artifex Software, Inc.
+/* Copyright (C) 2001-2022 Artifex Software, Inc.
All Rights Reserved.
This software is provided AS-IS with no warranty, either express or
@@ -877,7 +877,7 @@ gscms_get_link_proof_devlink(gcmmhprofile_t lcms_srchandle,
}
/* Do any initialization if needed to the CMS */
-int
+void *
gscms_create(gs_memory_t *memory)
{
cmsContext ctx;
@@ -885,7 +885,7 @@ gscms_create(gs_memory_t *memory)
/* Set our own error handling function */
ctx = cmsCreateContext((void *)&gs_cms_memhandler, memory);
if (ctx == NULL)
- return_error(gs_error_VMerror);
+ return NULL;
#ifdef USE_LCMS2_LOCKING
cmsPlugin(ctx, (void *)&gs_cms_mutexhandler);
@@ -897,20 +897,19 @@ gscms_create(gs_memory_t *memory)
#endif
cmsSetLogErrorHandler(ctx, gscms_error);
- gs_lib_ctx_set_cms_context(memory, ctx);
- return 0;
+
+ return ctx;
}
/* Do any clean up when done with the CMS if needed */
void
-gscms_destroy(gs_memory_t *memory)
+gscms_destroy(void *cmsContext_)
{
- cmsContext ctx = gs_lib_ctx_get_cms_context(memory);
+ cmsContext ctx = (cmsContext)cmsContext_;
if (ctx == NULL)
return;
cmsDeleteContext(ctx);
- gs_lib_ctx_set_cms_context(memory, NULL);
}
/* Have the CMS release the link */
diff --git a/base/gsicc_manage.c b/base/gsicc_manage.c
index 0842628d..91be6537 100644
--- a/base/gsicc_manage.c
+++ b/base/gsicc_manage.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 2001-2021 Artifex Software, Inc.
+/* Copyright (C) 2001-2022 Artifex Software, Inc.
All Rights Reserved.
This software is provided AS-IS with no warranty, either express or
@@ -1546,7 +1546,7 @@ gsicc_set_devicen_equiv_colors(gx_device *dev, const gs_gstate * pgs,
return gs_throw(gs_error_VMerror, "Insufficient memory for devn equiv colors");
pcspace->cmm_icc_profile_data = profile;
temp_state.color[0].color_space = pcspace;
- return dev_proc(dev, update_spot_equivalent_colors)(dev, &temp_state);
+ return dev_proc(dev, update_spot_equivalent_colors)(dev, &temp_state, pcspace);
}
#define DEFAULT_ICC_PROCESS "Cyan, Magenta, Yellow, Black,"
@@ -1604,13 +1604,13 @@ gsicc_set_device_profile_colorants(gx_device *dev, char *name_str)
"gsicc_set_device_profile_colorants");
if (name_str == NULL)
return gs_throw(gs_error_VMerror, "Insufficient memory for colorant name");
- gs_sprintf(name_str, DEFAULT_ICC_PROCESS);
+ gs_snprintf(name_str, total_len+1, DEFAULT_ICC_PROCESS);
for (kk = 0; kk < num_comps-5; kk++) {
- gs_sprintf(temp_str,"ICC_COLOR_%d,",kk);
+ gs_snprintf(temp_str,sizeof(temp_str),"ICC_COLOR_%d,",kk);
strcat(name_str,temp_str);
}
/* Last one no comma */
- gs_sprintf(temp_str,"ICC_COLOR_%d",kk);
+ gs_snprintf(temp_str,sizeof(temp_str),"ICC_COLOR_%d",kk);
strcat(name_str,temp_str);
}
str_len = strlen(name_str);
@@ -1940,129 +1940,151 @@ gsicc_set_device_profile(gx_device * pdev, gs_memory_t * mem,
{
cmm_profile_t *icc_profile;
stream *str;
- int code = 0;
+ int code;
- /* This is slightly silly, we have a device method for 'get_profile' we really ought to
- * have one for 'set_profile' as well. In its absence, make sure we are setting the profile
- * of the bootm level device.
- */
- while(pdev->child)
- pdev = pdev->child;
+ if (file_name == NULL)
+ return 0;
/* Check if device has a profile for this slot. Note that we already
decremented for any profile that we might be replacing
in gsicc_init_device_profile_struct */
- if (file_name != NULL) {
- /* Silent on failure if this is an output intent profile that
- * could not be found. Bug 695042. Multi-threaded rendering
- * set up will try to find the file for the profile during the set
- * up via put/get params. but one does not exist. The OI profile
- * will be cloned after the put/get params */
- if (strncmp(file_name, OI_PROFILE, strlen(OI_PROFILE)) == 0)
- return -1;
+ /* Silent on failure if this is an output intent profile that
+ * could not be found. Bug 695042. Multi-threaded rendering
+ * set up will try to find the file for the profile during the set
+ * up via put/get params. but one does not exist. The OI profile
+ * will be cloned after the put/get params */
+ if (strncmp(file_name, OI_PROFILE, strlen(OI_PROFILE)) == 0)
+ return -1;
- code = gsicc_open_search(file_name, strlen(file_name), mem,
- mem->gs_lib_ctx->profiledir,
- mem->gs_lib_ctx->profiledir_len, &str);
- if (code < 0)
- return code;
- if (str != NULL) {
- icc_profile =
- gsicc_profile_new(str, mem, file_name, strlen(file_name));
- code = sfclose(str);
- if (icc_profile == NULL)
- return gs_throw(gs_error_VMerror, "Creation of ICC profile failed");
- if (pro_enum < gsPROOFPROFILE) {
- if_debug1m(gs_debug_flag_icc, mem,
- "[icc] Setting device profile %d\n", pro_enum);
- pdev->icc_struct->device_profile[pro_enum] = icc_profile;
- } else {
- /* The proof, link or post render profile. Output intent
- profile is set in zicc.c */
- if (pro_enum == gsPROOFPROFILE) {
- if_debug0m(gs_debug_flag_icc, mem, "[icc] Setting proof profile\n");
- pdev->icc_struct->proof_profile = icc_profile;
- } else if (pro_enum == gsLINKPROFILE) {
- if_debug0m(gs_debug_flag_icc, mem, "[icc] Setting link profile\n");
- pdev->icc_struct->link_profile = icc_profile;
- } else if (pro_enum == gsPRPROFILE) {
- if_debug0m(gs_debug_flag_icc, mem, "[icc] Setting postrender profile\n");
- pdev->icc_struct->postren_profile = icc_profile;
- } else {
- if_debug0m(gs_debug_flag_icc, mem, "[icc] Setting blend profile\n");
- pdev->icc_struct->blend_profile = icc_profile;
- }
- }
+ code = gsicc_open_search(file_name, strlen(file_name), mem,
+ mem->gs_lib_ctx->profiledir,
+ mem->gs_lib_ctx->profiledir_len, &str);
+ if (code < 0)
+ return code;
+ if (str == NULL)
+ return gs_rethrow(-1, "cannot find device profile");
- /* Get the profile handle */
- icc_profile->profile_handle =
+ icc_profile =
+ gsicc_profile_new(str, mem, file_name, strlen(file_name));
+ code = sfclose(str);
+ if (icc_profile == NULL)
+ return gs_throw(gs_error_VMerror, "Creation of ICC profile failed");
+
+ /* Get the profile handle */
+ icc_profile->profile_handle =
gsicc_get_profile_handle_buffer(icc_profile->buffer,
icc_profile->buffer_size,
mem);
- if (icc_profile->profile_handle == NULL)
- return_error(gs_error_unknownerror);
-
- /* Compute the hash code of the profile. Everything in the
- ICC manager will have it's hash code precomputed */
- gsicc_get_icc_buff_hash(icc_profile->buffer,
- &(icc_profile->hashcode),
- icc_profile->buffer_size);
- icc_profile->hash_is_valid = true;
-
- /* Get the number of channels in the output profile */
- icc_profile->num_comps =
+ if (icc_profile->profile_handle == NULL) {
+ rc_decrement(icc_profile, "gsicc_set_device_profile");
+ return_error(gs_error_unknownerror);
+ }
+
+ /* Compute the hash code of the profile. Everything in the
+ ICC manager will have it's hash code precomputed */
+ gsicc_get_icc_buff_hash(icc_profile->buffer,
+ &(icc_profile->hashcode),
+ icc_profile->buffer_size);
+ icc_profile->hash_is_valid = true;
+
+ /* Get the number of channels in the output profile */
+ icc_profile->num_comps =
gscms_get_input_channel_count(icc_profile->profile_handle,
- icc_profile->memory);
- if_debug1m(gs_debug_flag_icc, mem, "[icc] Profile has %d components\n",
- icc_profile->num_comps);
- icc_profile->num_comps_out =
+ icc_profile->memory);
+ if_debug1m(gs_debug_flag_icc, mem, "[icc] Profile has %d components\n",
+ icc_profile->num_comps);
+ icc_profile->num_comps_out =
gscms_get_output_channel_count(icc_profile->profile_handle,
- icc_profile->memory);
- icc_profile->data_cs =
+ icc_profile->memory);
+ icc_profile->data_cs =
gscms_get_profile_data_space(icc_profile->profile_handle,
- icc_profile->memory);
-
- /* Check that everything is OK with regard to the number of
- components. */
- if (gsicc_verify_device_profiles(pdev) < 0)
- return gs_rethrow(-1, "Error in device profiles");
-
- /* We need to know if this is one of the "default" profiles or
- if someone has externally set it. The reason is that if there
- is an output intent in the file, and someone wants to use the
- output intent our handling of the output intent profile is
- different depending upon if someone specified a particular
- output profile */
- switch (icc_profile->num_comps) {
- case 1:
- if (strncmp(icc_profile->name, DEFAULT_GRAY_ICC,
- strlen(icc_profile->name)) == 0) {
- icc_profile->default_match = DEFAULT_GRAY;
- }
- break;
- case 3:
- if (strncmp(icc_profile->name, DEFAULT_RGB_ICC,
- strlen(icc_profile->name)) == 0) {
- icc_profile->default_match = DEFAULT_RGB;
- }
- break;
- case 4:
- if (strncmp(icc_profile->name, DEFAULT_CMYK_ICC,
- strlen(icc_profile->name)) == 0) {
- icc_profile->default_match = DEFAULT_CMYK;
- }
- break;
- default:
- /* NCLR Profile. Set up default colorant names */
- code = gsicc_set_device_profile_colorants(pdev, NULL);
- break;
+ icc_profile->memory);
+
+ /* We need to know if this is one of the "default" profiles or
+ if someone has externally set it. The reason is that if there
+ is an output intent in the file, and someone wants to use the
+ output intent our handling of the output intent profile is
+ different depending upon if someone specified a particular
+ output profile */
+ switch (icc_profile->num_comps) {
+ case 1:
+ if (strncmp(icc_profile->name, DEFAULT_GRAY_ICC,
+ strlen(icc_profile->name)) == 0) {
+ icc_profile->default_match = DEFAULT_GRAY;
}
- if_debug1m(gs_debug_flag_icc, mem, "[icc] Profile data CS is %d\n",
- icc_profile->data_cs);
- } else
- return gs_rethrow(-1, "cannot find device profile");
+ break;
+ case 3:
+ if (strncmp(icc_profile->name, DEFAULT_RGB_ICC,
+ strlen(icc_profile->name)) == 0) {
+ icc_profile->default_match = DEFAULT_RGB;
+ }
+ break;
+ case 4:
+ if (strncmp(icc_profile->name, DEFAULT_CMYK_ICC,
+ strlen(icc_profile->name)) == 0) {
+ icc_profile->default_match = DEFAULT_CMYK;
+ }
+ break;
}
- return code;
+
+ if_debug1m(gs_debug_flag_icc, mem, "[icc] Profile data CS is %d\n",
+ icc_profile->data_cs);
+
+ /* This is slightly silly, we have a device method for 'get_profile' we really ought to
+ * have one for 'set_profile' as well. In its absence, make sure we are setting the profile
+ * of the bottom level device.
+ */
+ while(pdev->child)
+ pdev = pdev->child;
+
+ switch (pro_enum)
+ {
+ case gsDEFAULTPROFILE:
+ case gsGRAPHICPROFILE:
+ case gsIMAGEPROFILE:
+ case gsTEXTPROFILE:
+ if_debug1m(gs_debug_flag_icc, mem,
+ "[icc] Setting device profile %d\n", pro_enum);
+ pdev->icc_struct->device_profile[pro_enum] = icc_profile;
+ break;
+ case gsPROOFPROFILE:
+ if_debug0m(gs_debug_flag_icc, mem, "[icc] Setting proof profile\n");
+ pdev->icc_struct->proof_profile = icc_profile;
+ break;
+ case gsLINKPROFILE:
+ if_debug0m(gs_debug_flag_icc, mem, "[icc] Setting link profile\n");
+ pdev->icc_struct->link_profile = icc_profile;
+ break;
+ case gsPRPROFILE:
+ if_debug0m(gs_debug_flag_icc, mem, "[icc] Setting postrender profile\n");
+ pdev->icc_struct->postren_profile = icc_profile;
+ break;
+ case gsBLENDPROFILE:
+ if_debug0m(gs_debug_flag_icc, mem, "[icc] Setting blend profile\n");
+ pdev->icc_struct->blend_profile = icc_profile;
+ break;
+ default:
+ case gsOIPROFILE:
+ /* This never happens as output intent profile is set in zicc.c */
+ rc_decrement(icc_profile, "gsicc_set_device_profile");
+ return_error(gs_error_unknownerror);
+ }
+
+ /* Check that everything is OK with regard to the number of
+ components. */
+ if (gsicc_verify_device_profiles(pdev) < 0)
+ return gs_rethrow(-1, "Error in device profiles");
+
+ if (icc_profile->num_comps != 1 &&
+ icc_profile->num_comps != 3 &&
+ icc_profile->num_comps != 4) {
+ /* NCLR Profile. Set up default colorant names */
+ code = gsicc_set_device_profile_colorants(pdev, NULL);
+ if (code < 0)
+ return code;
+ }
+
+ return 0;
}
/* Set the icc profile in the gs_color_space object */
@@ -2545,7 +2567,7 @@ gsicc_get_profile_handle_clist(cmm_profile_t *picc_profile, gs_memory_t *memory)
position = gsicc_search_icc_table(pcrdev->icc_table,
picc_profile->hashcode, &size);
if ( position < 0 )
- return 0; /* Not found. */
+ return NULL; /* Not found. */
/* Get the ICC buffer. We really want to avoid this transfer.
I need to write an interface to the CMM to do this through
@@ -2556,10 +2578,14 @@ gsicc_get_profile_handle_clist(cmm_profile_t *picc_profile, gs_memory_t *memory)
buffer_ptr = gs_alloc_bytes(memory->non_gc_memory, profile_size,
"gsicc_get_profile_handle_clist");
if (buffer_ptr == NULL)
- return 0;
+ return NULL;
clist_read_chunk(pcrdev, position + GSICC_SERIALIZED_SIZE,
profile_size, (unsigned char *) buffer_ptr);
profile_handle = gscms_get_profile_handle_mem(buffer_ptr, profile_size, memory->non_gc_memory);
+ if (profile_handle == NULL) {
+ gs_free_object(memory->non_gc_memory, buffer_ptr, "gsicc_get_profile_handle_clist");
+ return NULL;
+ }
/* We also need to get some of the serialized information */
clist_read_chunk(pcrdev, position, GSICC_SERIALIZED_SIZE,
(unsigned char *) (&profile_header));
@@ -2583,7 +2609,7 @@ gsicc_get_profile_handle_clist(cmm_profile_t *picc_profile, gs_memory_t *memory)
gs_free_object(memory->non_gc_memory, buffer_ptr, "gsicc_get_profile_handle_clist");
return profile_handle;
}
- return 0;
+ return NULL;
}
gcmmhprofile_t
@@ -2867,7 +2893,7 @@ dump_icc_buffer(const gs_memory_t *mem, int buffersize, char filename[],byte *Bu
char full_file_name[50];
gp_file *fid;
- gs_sprintf(full_file_name,"%d)%s_debug.icc",global_icc_index,filename);
+ gs_snprintf(full_file_name,sizeof(full_file_name),"%d)%s_debug.icc",global_icc_index,filename);
fid = gp_fopen(mem, full_file_name,"wb");
gp_fwrite(Buffer,sizeof(unsigned char),buffersize,fid);
gp_fclose(fid);
diff --git a/base/gsicc_profilecache.c b/base/gsicc_profilecache.c
index 900a3440..3accf4c8 100644
--- a/base/gsicc_profilecache.c
+++ b/base/gsicc_profilecache.c
@@ -74,7 +74,7 @@ rc_gsicc_profile_cache_free(gs_memory_t * mem, void *ptr_in, client_name_t cname
while (curr != NULL ){
next = curr->next;
rc_decrement(curr->color_space, "rc_gsicc_profile_cache_free");
- gs_free_object(mem->stable_memory, curr,
+ gs_free_object(profile_cache->memory->stable_memory, curr,
"rc_gsicc_profile_cache_free");
profile_cache->num_entries--;
curr = next;
@@ -84,7 +84,7 @@ rc_gsicc_profile_cache_free(gs_memory_t * mem, void *ptr_in, client_name_t cname
emprintf1(mem,"gsicc_profile_cache_free, num_entries is %d (should be 0).\n",
profile_cache->num_entries);
#endif
- gs_free_object(mem->stable_memory, profile_cache,
+ gs_free_object(profile_cache->memory->stable_memory, profile_cache,
"rc_gsicc_profile_cache_free");
}
@@ -93,7 +93,7 @@ gsicc_add_cs(gs_gstate * pgs, gs_color_space * colorspace, uint64_t dictkey)
{
gsicc_profile_entry_t *result;
gsicc_profile_cache_t *profile_cache = pgs->icc_profile_cache;
- gs_memory_t *memory = pgs->memory;
+ gs_memory_t *memory = profile_cache->memory;
if (dictkey == 0)
return;
diff --git a/base/gsiodisk.c b/base/gsiodisk.c
index 24c50ada..da4439ae 100644
--- a/base/gsiodisk.c
+++ b/base/gsiodisk.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 2001-2021 Artifex Software, Inc.
+/* Copyright (C) 2001-2022 Artifex Software, Inc.
All Rights Reserved.
This software is provided AS-IS with no warranty, either express or
@@ -491,7 +491,7 @@ MapFileOpen(gs_memory_t *mem, const char * rootpath, const char * filename, cons
fullname = (char *)gs_alloc_bytes(mem, totlen, "MapFileOpen(fullname)");
if (fullname) {
- gs_sprintf(fullname, "%s%s", rootpath, filename);
+ gs_snprintf(fullname, totlen, "%s%s", rootpath, filename);
f = gp_fopen(fullname, attributes);
gs_free_object(mem, fullname , "MapFileOpen(fullname)");
@@ -600,7 +600,7 @@ MapFileUnlink(gs_memory_t *mem, const char * rootpath, const char * filename)
return;
fullname = (char *)gs_alloc_bytes(mem, totlen, "MapFileUnlink(fullname)");
if (fullname) {
- gs_sprintf(fullname, "%s%s", rootpath, filename);
+ gs_snprintf(fullname, totlen, "%s%s", rootpath, filename);
unlink(fullname);
@@ -631,8 +631,8 @@ MapFileRename(gs_memory_t *mem, const char * rootpath, const char * newfilename,
newfullname = (char *)gs_alloc_bytes(mem, ntotlen, "MapFileRename(newfullname)");
if (oldfullname && newfullname) {
- gs_sprintf(oldfullname, "%s%s", rootpath, oldfilename);
- gs_sprintf(newfullname, "%s%s", rootpath, newfilename);
+ gs_snprintf(oldfullname, ototlen, "%s%s", rootpath, oldfilename);
+ gs_snprintf(newfullname, ntotlen, "%s%s", rootpath, newfilename);
rename(oldfullname, newfullname);
}
@@ -813,7 +813,7 @@ map_file_name_get(gs_memory_t *mem, const char * root_name, const char * Fname,
if (d != -1) {
/* 20 characters are enough for even a 64 bit integer */
if ((strlen(root_name) + 20) < gp_file_name_sizeof) {
- gs_sprintf(osname, "%s%d", root_name, d);
+ gs_snprintf(osname, gp_file_name_sizeof, "%s%d", root_name, d);
return true;
}
}
diff --git a/base/gslibctx.c b/base/gslibctx.c
index 318039fa..18624821 100644
--- a/base/gslibctx.c
+++ b/base/gslibctx.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 2001-2021 Artifex Software, Inc.
+/* Copyright (C) 2001-2022 Artifex Software, Inc.
All Rights Reserved.
This software is provided AS-IS with no warranty, either express or
@@ -13,6 +13,27 @@
CA 94945, U.S.A., +1(415)492-9861, for further information.
*/
+/*
+ Some notes on the structure here:
+
+ At the top level, we have 'instances' of Ghostscript (or GPL).
+ Here, 'instance' is short for 'instance of the Ghostscript API'.
+ Each instance is returned by 'gsapi_new_instance'. Every new
+ instance gets a unique gs_lib_ctx_core_t. Each instance can be
+ called from any number of threads, but only from one thread at
+ a time!
+
+ Each instance of Ghostscript owns one or more interpreters.
+ Each interpreter gets a unique gs_lib_ctx_t, that shares the
+ instance's gs_lib_ctx_core_t.
+
+ Each interpreter (by which we include the graphics library
+ called by that interpreter) can make multiple gs_memory_t's.
+ Certainly, every simultaneous (rendering) thread created by by
+ the interpreter will get a unique gs_memory_t. These
+ gs_memory_t's share the same gs_lib_ctx_t (and hence the same
+ gs_lib_ctx_core_t).
+*/
/* library context functionality for ghostscript
@@ -32,6 +53,7 @@
#include "cal.h"
#endif
#include "gsargs.h"
+#include "globals.h"
/* Include the extern for the device list. */
extern_gs_lib_device_list();
@@ -47,16 +69,6 @@ gs_lib_ctx_get_real_stdio(FILE **in, FILE **out, FILE **err)
#include "gslibctx.h"
#include "gsmemory.h"
-#ifndef GS_THREADSAFE
-static gs_memory_t *mem_err_print = NULL;
-
-gs_memory_t *
-gs_lib_ctx_get_non_gc_memory_t()
-{
- return mem_err_print ? mem_err_print : NULL;
-}
-#endif
-
/* This sets the directory to prepend to the ICC profile names specified for
defaultgray, defaultrgb, defaultcmyk, proofing, linking, named color and device */
int
@@ -204,7 +216,9 @@ fs_file_open_printer(const gs_memory_t *mem, void *secret, const char *fname, in
*file = NULL;
return gs_error_invalidfileaccess;
}
- gp_setmode_binary_impl(f, binary_mode);
+ /* The lgtm comment below is required because on some platforms that function
+ * does nothing. */
+ gp_setmode_binary_impl(f, binary_mode); /* lgtm [cpp/useless-expression] */
return 0;
}
@@ -242,14 +256,19 @@ static cal_allocators cal_allocs =
int gs_lib_ctx_init(gs_lib_ctx_t *ctx, gs_memory_t *mem)
{
gs_lib_ctx_t *pio = NULL;
+ gs_globals *globals;
/* Check the non gc allocator is being passed in */
if (mem == 0 || mem != mem->non_gc_memory)
return_error(gs_error_Fatal);
-#ifndef GS_THREADSAFE
- mem_err_print = mem;
-#endif
+ /* Get globals here, earlier than it seems we might need it
+ * because a side effect of this is ensuring that the thread
+ * local storage for the malloc pointer is set up. */
+ globals = gp_get_globals();
+
+ /* Now it's safe to set this. */
+ gp_set_debug_mem_ptr(mem);
if (mem->gs_lib_ctx) /* one time initialization */
return 0;
@@ -278,6 +297,7 @@ int gs_lib_ctx_init(gs_lib_ctx_t *ctx, gs_memory_t *mem)
return -1;
}
memset(pio->core, 0, sizeof(*pio->core));
+ pio->core->globals = globals;
pio->core->fs = (gs_fs_list_t *)gs_alloc_bytes_immovable(mem,
sizeof(gs_fs_list_t),
"gs_lib_ctx_init(gs_fs_list_t)");
@@ -305,15 +325,8 @@ int gs_lib_ctx_init(gs_lib_ctx_t *ctx, gs_memory_t *mem)
pio->core->fs->next = NULL;
pio->core->monitor = gx_monitor_alloc(mem);
- if (pio->core->monitor == NULL) {
-#ifdef WITH_CAL
- cal_fin(pio->core->cal_ctx, mem);
-#endif
- gs_free_object(mem, pio->core->fs, "gs_lib_ctx_init");
- gs_free_object(mem, pio->core, "gs_lib_ctx_init");
- gs_free_object(mem, pio, "gs_lib_ctx_init");
- return -1;
- }
+ if (pio->core->monitor == NULL)
+ goto core_create_failed;
pio->core->refs = 1;
pio->core->memory = mem;
@@ -324,6 +337,19 @@ int gs_lib_ctx_init(gs_lib_ctx_t *ctx, gs_memory_t *mem)
pio->core->gs_next_id = 5; /* Cloned contexts share the state */
/* Set scanconverter to 1 (default) */
pio->core->scanconverter = GS_SCANCONVERTER_DEFAULT;
+ /* Initialise the underlying CMS. */
+ pio->core->cms_context = gscms_create(mem);
+ if (pio->core->cms_context == NULL) {
+ gx_monitor_free((gx_monitor_t *)(pio->core->monitor));
+core_create_failed:
+#ifdef WITH_CAL
+ cal_fin(pio->core->cal_ctx, mem);
+#endif
+ gs_free_object(mem, pio->core->fs, "gs_lib_ctx_init");
+ gs_free_object(mem, pio->core, "gs_lib_ctx_init");
+ gs_free_object(mem, pio, "gs_lib_ctx_init");
+ return -1;
+ }
}
/* Now set the non zero/false/NULL things */
@@ -342,10 +368,6 @@ int gs_lib_ctx_init(gs_lib_ctx_t *ctx, gs_memory_t *mem)
strlen(gs_dev_defaults)) < 0)
goto Failure;
- /* Initialise the underlying CMS. */
- if (gscms_create(mem))
- goto Failure;
-
/* Initialise any lock required for the jpx codec */
if (sjpxd_create(mem))
goto Failure;
@@ -397,7 +419,6 @@ void gs_lib_ctx_fin(gs_memory_t *mem)
ctx_mem = ctx->memory;
sjpxd_destroy(mem);
- gscms_destroy(ctx_mem);
gs_free_object(ctx_mem, ctx->profiledir,
"gs_lib_ctx_fin");
@@ -408,14 +429,11 @@ void gs_lib_ctx_fin(gs_memory_t *mem)
gs_free_object(ctx_mem, ctx->io_device_table_root, "gs_lib_ctx_fin");
gs_free_object(ctx_mem, ctx->font_dir_root, "gs_lib_ctx_fin");
-#ifndef GS_THREADSAFE
- mem_err_print = NULL;
-#endif
-
gx_monitor_enter((gx_monitor_t *)(ctx->core->monitor));
refs = --ctx->core->refs;
gx_monitor_leave((gx_monitor_t *)(ctx->core->monitor));
if (refs == 0) {
+ gscms_destroy(ctx->core->cms_context);
gx_monitor_free((gx_monitor_t *)(ctx->core->monitor));
#ifdef WITH_CAL
cal_fin(ctx->core->cal_ctx, ctx->core->memory);
@@ -461,14 +479,7 @@ void *gs_lib_ctx_get_cms_context( const gs_memory_t *mem )
{
if (mem == NULL)
return NULL;
- return mem->gs_lib_ctx->cms_context;
-}
-
-void gs_lib_ctx_set_cms_context( const gs_memory_t *mem, void *cms_context )
-{
- if (mem == NULL)
- return;
- mem->gs_lib_ctx->cms_context = cms_context;
+ return mem->gs_lib_ctx->core->cms_context;
}
int gs_lib_ctx_get_act_on_uel( const gs_memory_t *mem )
@@ -503,13 +514,6 @@ int outwrite(const gs_memory_t *mem, const char *str, int len)
return code;
}
-#ifndef GS_THREADSAFE
-int errwrite_nomem(const char *str, int len)
-{
- return errwrite(mem_err_print, str, len);
-}
-#endif
-
int errwrite(const gs_memory_t *mem, const char *str, int len)
{
int code;
@@ -518,13 +522,11 @@ int errwrite(const gs_memory_t *mem, const char *str, int len)
if (len == 0)
return 0;
if (mem == NULL) {
-#ifdef GS_THREADSAFE
- return 0;
-#else
- mem = mem_err_print;
+#ifdef DEBUG
+ mem = gp_get_debug_mem_ptr();
if (mem == NULL)
- return 0;
#endif
+ return 0;
}
ctx = mem->gs_lib_ctx;
if (ctx == NULL)
@@ -553,13 +555,6 @@ void outflush(const gs_memory_t *mem)
fflush(core->fstdout);
}
-#ifndef GS_THREADSAFE
-void errflush_nomem(void)
-{
- errflush(mem_err_print);
-}
-#endif
-
void errflush(const gs_memory_t *mem)
{
if (!mem->gs_lib_ctx->core->stderr_fn)
@@ -1339,3 +1334,39 @@ int gs_lib_ctx_callout(gs_memory_t *mem, const char *dev_name,
}
return -1;
}
+
+int gs_lib_ctx_nts_adjust(gs_memory_t *mem, int adjust)
+{
+ gs_lib_ctx_core_t *core;
+ int ret = 0;
+ gs_globals *globals;
+
+ if (adjust == 0)
+ return 0;
+
+ if (mem == NULL || mem->gs_lib_ctx == NULL || mem->gs_lib_ctx->core == NULL)
+ return_error(gs_error_unknownerror);
+
+ core = mem->gs_lib_ctx->core;
+ globals = core->globals;
+ if (globals == NULL)
+ return 0; /* No globals means just once instance. Adjustment is pointless. */
+
+ gp_global_lock(globals);
+ if (adjust > 0 && globals->non_threadsafe_count != 0)
+ ret = gs_error_unknownerror; /* We already have one non threadsafe device running. */
+ else if (adjust < 0 && globals->non_threadsafe_count == 0)
+ ret = gs_error_unknownerror; /* This indicates something has gone very wrong! */
+ else
+ globals->non_threadsafe_count += adjust;
+ gp_global_unlock(globals);
+
+ if (ret)
+ ret = gs_note_error(ret);
+ return ret;
+}
+
+void gs_globals_init(gs_globals *globals)
+{
+ memset(globals, 0, sizeof(*globals));
+}
diff --git a/base/gslibctx.h b/base/gslibctx.h
index 0acb520c..fc211de2 100644
--- a/base/gslibctx.h
+++ b/base/gslibctx.h
@@ -1,4 +1,4 @@
-/* Copyright (C) 2001-2021 Artifex Software, Inc.
+/* Copyright (C) 2001-2022 Artifex Software, Inc.
All Rights Reserved.
This software is provided AS-IS with no warranty, either express or
@@ -94,6 +94,8 @@ typedef struct gs_callout_list_s {
void *handle;
} gs_callout_list_t;
+typedef struct gs_globals gs_globals;
+
typedef struct {
void *monitor;
int refs;
@@ -131,12 +133,21 @@ typedef struct {
* all builds. */
void *cal_ctx;
+ void *cms_context; /* Opaque context pointer from underlying CMS in use */
+
gs_callout_list_t *callouts;
/* Stashed args */
int arg_max;
int argc;
char **argv;
+
+ /* clist io procs pointers. Indirected through here to allow
+ * easy build time selection. */
+ const void *clist_io_procs_memory;
+ const void *clist_io_procs_file;
+
+ gs_globals *globals;
} gs_lib_ctx_core_t;
typedef struct gs_lib_ctx_s
@@ -176,7 +187,6 @@ typedef struct gs_lib_ctx_s
* and one in the device */
char *profiledir; /* Directory used in searching for ICC profiles */
int profiledir_len; /* length of directory name (allows for Unicode) */
- void *cms_context; /* Opaque context pointer from underlying CMS in use */
gs_fapi_server **fapi_servers;
char *default_device_list;
int gcsignal;
@@ -206,21 +216,13 @@ void gs_lib_ctx_fin( gs_memory_t *mem );
gs_lib_ctx_t *gs_lib_ctx_get_interp_instance( const gs_memory_t *mem );
void *gs_lib_ctx_get_cms_context( const gs_memory_t *mem );
-void gs_lib_ctx_set_cms_context( const gs_memory_t *mem, void *cms_context );
int gs_lib_ctx_get_act_on_uel( const gs_memory_t *mem );
int gs_lib_ctx_register_callout(gs_memory_t *mem, gs_callout_fn, void *arg);
void gs_lib_ctx_deregister_callout(gs_memory_t *mem, gs_callout_fn, void *arg);
int gs_lib_ctx_callout(gs_memory_t *mem, const char *dev_name,
int id, int size, void *data);
-
-
-#ifndef GS_THREADSAFE
-/* HACK to get at non garbage collection memory pointer
- *
- */
-gs_memory_t * gs_lib_ctx_get_non_gc_memory_t(void);
-#endif
+int gs_lib_ctx_nts_adjust(gs_memory_t *mem, int adjust);
int gs_lib_ctx_set_icc_directory(const gs_memory_t *mem_gc, const char* pname,
int dir_namelen);
diff --git a/base/gsmalloc.c b/base/gsmalloc.c
index e5eae62e..63c8b6bd 100644
--- a/base/gsmalloc.c
+++ b/base/gsmalloc.c
@@ -24,6 +24,7 @@
#include "gsstruct.h" /* for st_bytes */
#include "gsmalloc.h"
#include "gsmemret.h" /* retrying wrapper */
+#include "gp.h"
/* ------ Heap allocator ------ */
diff --git a/base/gsmchunk.c b/base/gsmchunk.c
index 1d3e89d6..f221ac30 100644
--- a/base/gsmchunk.c
+++ b/base/gsmchunk.c
@@ -967,7 +967,7 @@ chunk_obj_alloc(gs_memory_t *mem, size_t size, gs_memory_type_ptr_t type, client
gs_memory_chunk_dump_memory(cmem);
#endif
- return (byte *)(obj) + SIZEOF_ROUND_ALIGN(chunk_obj_node_t);
+ return (byte *)Memento_label((byte *)(obj) + SIZEOF_ROUND_ALIGN(chunk_obj_node_t), cname);
}
static byte *
diff --git a/base/gsmisc.c b/base/gsmisc.c
index db73c007..f6273a5b 100644
--- a/base/gsmisc.c
+++ b/base/gsmisc.c
@@ -47,6 +47,7 @@ orig_sqrt(double x)
#include "gxfixed.h"
#include "stdint_.h"
#include "stdio_.h"
+#include "gp.h"
/* ------ Redirected stdout and stderr ------ */
@@ -73,25 +74,26 @@ int outprintf(const gs_memory_t *mem, const char *fmt, ...)
return count;
}
-#ifndef GS_THREADSAFE
int errprintf_nomem(const char *fmt, ...)
{
int count;
char buf[PRINTF_BUF_LENGTH];
va_list args;
+ gs_memory_t *mem = gp_get_debug_mem_ptr();
+ if (mem == NULL)
+ return 0;
va_start(args, fmt);
count = vsnprintf(buf, sizeof(buf), fmt, args);
if (count < 0 || count >= sizeof(buf)) { /* MSVC || C99*/
- errwrite_nomem(buf, sizeof(buf) - 1);
- errwrite_nomem(msg_truncated, sizeof(msg_truncated) - 1);
+ errwrite(mem, buf, sizeof(buf) - 1);
+ errwrite(mem, msg_truncated, sizeof(msg_truncated) - 1);
} else {
- errwrite_nomem(buf, count);
+ errwrite(mem, buf, count);
}
va_end(args);
return count;
}
-#endif
int errprintf(const gs_memory_t *mem, const char *fmt, ...)
{
@@ -159,11 +161,12 @@ dprintf_file_tail(const char *file)
--tail;
return tail;
}
-#ifndef GS_THREADSAFE
void
dflush(void)
{
- errflush_nomem();
+ gs_memory_t *mem = gp_get_debug_mem_ptr();
+ if (mem)
+ errflush(mem);
}
#if __LINE__ /* compiler provides it */
void
@@ -207,7 +210,6 @@ eprintf_program_ident(const char *program_name,
epf(": ");
}
}
-#endif
#if __LINE__ /* compiler provides it */
void
dmprintf_file_and_line(const gs_memory_t *mem,const char *file, int line)
@@ -303,12 +305,15 @@ gs_return_check_interrupt(const gs_memory_t *mem, int code)
}
}
-#ifndef GS_THREADSAFE
int gs_throw_imp(const char *func, const char *file, int line, int op, int code, const char *fmt, ...)
{
char msg[1024];
va_list ap;
int count;
+ gs_memory_t *mem = gp_get_debug_mem_ptr();
+
+ if (mem == NULL)
+ return code;
va_start(ap, fmt);
count = vsnprintf(msg, sizeof(msg), fmt, ap);
@@ -325,26 +330,25 @@ int gs_throw_imp(const char *func, const char *file, int line, int op, int code,
/* throw */
if (op == 0)
- errprintf_nomem("+ %s:%d: %s(): %s\n", file, line, func, msg);
+ errprintf(mem, "+ %s:%d: %s(): %s\n", file, line, func, msg);
/* rethrow */
if (op == 1)
- errprintf_nomem("| %s:%d: %s(): %s\n", file, line, func, msg);
+ errprintf(mem, "| %s:%d: %s(): %s\n", file, line, func, msg);
/* catch */
if (op == 2)
- errprintf_nomem("- %s:%d: %s(): %s\n", file, line, func, msg);
+ errprintf(mem, "- %s:%d: %s(): %s\n", file, line, func, msg);
/* warn */
if (op == 3)
- errprintf_nomem(" %s:%d: %s(): %s\n", file, line, func, msg);
+ errprintf(mem, " %s:%d: %s(): %s\n", file, line, func, msg);
if (count < 0 || count >= sizeof(msg)) { /* MSVC || C99 */
- errwrite_nomem(msg_truncated, sizeof(msg_truncated) - 1);
+ errwrite(mem, msg_truncated, sizeof(msg_truncated) - 1);
}
return code;
}
-#endif
const char *gs_errstr(int code)
{
@@ -542,7 +546,7 @@ gs_realloc(void *old_ptr, size_t old_size, size_t new_size)
/* ------ Debugging support ------ */
-#ifndef GS_THREADSAFE
+#ifdef DEBUG
/* Print a string in hexdump format. */
void
debug_print_string_hex_nomem(const byte * chrs, uint len)
@@ -615,7 +619,7 @@ debug_print_string_hex(const gs_memory_t *mem, const byte * chrs, uint len)
* first_arg is the first argument of the procedure into which this code
* is patched.
*/
-#ifndef GS_THREADSAFE
+#ifdef DEBUG
#define BACKTRACE(first_arg)\
BEGIN\
ulong *fp_ = (ulong *)&first_arg - 2;\
@@ -935,7 +939,7 @@ fixed_mult_quo(fixed signed_A, fixed B, fixed C)
double
gs_sqrt(double x, const char *file, int line)
{
-#ifndef GS_THREADSAFE
+#ifdef DEBUG
if (gs_debug_c('~')) {
dprintf3("[~]sqrt(%g) at %s:%d\n", x, (const char *)file, line);
dflush();
diff --git a/base/gspaint.c b/base/gspaint.c
index 9c4e8210..f7127e0e 100644
--- a/base/gspaint.c
+++ b/base/gspaint.c
@@ -220,11 +220,11 @@ alpha_buffer_init(gs_gstate * pgs, fixed extra_x, fixed extra_y, int alpha_bits,
ibox.q.x = fixed2int_ceiling(bbox.q.x + extra_x) + 1;
ibox.q.y = fixed2int_ceiling(bbox.q.y + extra_y) + 1;
(void)dev_proc(dev, dev_spec_op)(dev, gxdso_restrict_bbox, &ibox, sizeof(ibox));
+ if ((ibox.q.y <= ibox.p.y) || (ibox.q.x <= ibox.p.x))
+ return 2;
width = (ibox.q.x - ibox.p.x) << log2_scale.x;
raster = bitmap_raster(width);
band_space = raster << log2_scale.y;
- if (ibox.q.y <= ibox.p.y)
- return 2;
height2 = (ibox.q.y - ibox.p.y);
height = (abuf_nominal / band_space);
if (height == 0)
diff --git a/base/gsparaml.c b/base/gsparaml.c
index 3516a157..30f8c9eb 100644
--- a/base/gsparaml.c
+++ b/base/gsparaml.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 2001-2021 Artifex Software, Inc.
+/* Copyright (C) 2001-2022 Artifex Software, Inc.
All Rights Reserved.
This software is provided AS-IS with no warranty, either express or
@@ -834,20 +834,20 @@ int_array_to_string(gs_param_int_array ia, outstate *out)
out_string(out, "[");
for (i = 0; i < ia.size; i++) {
- gs_sprintf(text, "%d", ia.data[i]);
+ gs_snprintf(text, sizeof(text), "%d", ia.data[i]);
out_string(out, text);
}
out_string(out, "]");
}
static void
-print_float(char *text, float f)
+print_float(char text[32], float f)
{
/* We attempt to tidy up %f's somewhat unpredictable output
* here, so rather than printing 0.10000000 we print 0.1 */
char *p = text;
int frac = 0;
- gs_sprintf(text, "%f", f);
+ gs_snprintf(text, 32, "%f", f);
/* Find the terminator, or 'e' to spot exponent mode. */
while (*p && *p != 'e' && *p != 'E') {
if (*p == '.')
@@ -970,28 +970,28 @@ to_string(gs_param_list *plist, gs_param_name key, outstate *out)
case gs_param_type_int:
{
char text[32];
- gs_sprintf(text, "%d", pvalue.value.i);
+ gs_snprintf(text, sizeof(text), "%d", pvalue.value.i);
out_string(out, text);
break;
}
case gs_param_type_i64:
{
char text[32];
- gs_sprintf(text, "%"PRId64, pvalue.value.i64);
+ gs_snprintf(text, sizeof(text), "%"PRId64, pvalue.value.i64);
out_string(out, text);
break;
}
case gs_param_type_long:
{
char text[32];
- gs_sprintf(text, "%ld", pvalue.value.l);
+ gs_snprintf(text, sizeof(text), "%ld", pvalue.value.l);
out_string(out, text);
break;
}
case gs_param_type_size_t:
{
char text[32];
- gs_sprintf(text, "%"PRIdSIZE, pvalue.value.z);
+ gs_snprintf(text, sizeof(text), "%"PRIdSIZE, pvalue.value.z);
out_string(out, text);
break;
}
diff --git a/base/gspcolor.c b/base/gspcolor.c
index 417fb139..32c08ee2 100644
--- a/base/gspcolor.c
+++ b/base/gspcolor.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 2001-2021 Artifex Software, Inc.
+/* Copyright (C) 2001-2022 Artifex Software, Inc.
All Rights Reserved.
This software is provided AS-IS with no warranty, either express or
@@ -281,7 +281,7 @@ gx_install_Pattern(gs_color_space * pcs, gs_gstate * pgs)
static int
gx_set_overprint_Pattern(const gs_color_space * pcs, gs_gstate * pgs)
{
- gs_overprint_params_t params;
+ gs_overprint_params_t params = { 0 };
if (!pgs->overprint) {
params.retain_any_comps = false;
diff --git a/base/gspmdrv.c b/base/gspmdrv.c
index 759d5e60..27a5f679 100644
--- a/base/gspmdrv.c
+++ b/base/gspmdrv.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 2001-2021 Artifex Software, Inc.
+/* Copyright (C) 2001-2022 Artifex Software, Inc.
All Rights Reserved.
This software is provided AS-IS with no warranty, either express or
@@ -345,11 +345,11 @@ write_profile(void)
{
char profile[64];
- gs_sprintf(profile, "%d %d", option.img_origin.x, option.img_origin.y);
+ gs_snprintf(profile, sizeof(profile), "%d %d", option.img_origin.x, option.img_origin.y);
PrfWriteProfileString(HINI_USERPROFILE, section, "Origin", profile);
- gs_sprintf(profile, "%d %d", option.img_size.x, option.img_size.y);
+ gs_snprintf(profile, sizeof(profile), "%d %d", option.img_size.x, option.img_size.y);
PrfWriteProfileString(HINI_USERPROFILE, section, "Size", profile);
- gs_sprintf(profile, "%d", option.img_max);
+ gs_snprintf(profile, sizeof(profile), "%d", option.img_max);
PrfWriteProfileString(HINI_USERPROFILE, section, "Maximized", profile);
}
@@ -489,26 +489,26 @@ init_display(int argc, char *argv[])
find_hwnd_gs(argv[2]);
if (!rc) {
- gs_sprintf(name, SHARED_NAME, argv[2]);
+ gs_snprintf(name, sizeof(name), SHARED_NAME, argv[2]);
rc = DosGetNamedSharedMem((PVOID *) & bitmap.pbmi, name, PAG_READ | PAG_WRITE);
if (rc) {
- gs_sprintf(buf, "Failed to open: bmp shared memory \"%s\" rc = %d", argv[0], rc);
+ gs_snprintf(buf, sizeof(buf), "Failed to open: bmp shared memory \"%s\" rc = %d", argv[0], rc);
error_message(buf);
}
}
if (!rc) {
- gs_sprintf(name, SYNC_NAME, argv[2]);
+ gs_snprintf(name, sizeof(name), SYNC_NAME, argv[2]);
rc = DosOpenEventSem(name, &update_event_sem);
if (rc) {
- gs_sprintf(buf, "Failed to open: update event semaphore \"%s\" rc = %d", argv[1], rc);
+ gs_snprintf(buf, sizeof(buf), "Failed to open: update event semaphore \"%s\" rc = %d", argv[1], rc);
error_message(buf);
}
}
if (!rc) {
- gs_sprintf(name, MUTEX_NAME, argv[2]);
+ gs_snprintf(name, sizeof(name), MUTEX_NAME, argv[2]);
rc = DosOpenMutexSem(name, &bmp_mutex_sem);
if (rc) {
- gs_sprintf(buf, "Failed to open: bmp mutex semaphore \"%s\" rc = %d", argv[1], rc);
+ gs_snprintf(buf, sizeof(buf), "Failed to open: bmp mutex semaphore \"%s\" rc = %d", argv[1], rc);
error_message(buf);
}
}
@@ -535,19 +535,19 @@ init_bitmap(int argc, char *argv[])
if ((rc = DosOpen(argv[2], &hf, &action, 0, FILE_NORMAL, FILE_OPEN,
OPEN_ACCESS_READONLY | OPEN_SHARE_DENYREADWRITE, 0))
!= (APIRET) 0) {
- gs_sprintf(buf, "Error opening: %s", argv[2]);
+ gs_snprintf(buf, sizeof(buf), "Error opening: %s", argv[2]);
error_message(buf);
return rc;
}
rc = DosSetFilePtr(hf, 0, FILE_END, &length);
if (rc) {
- gs_sprintf(buf, "failed seeking to EOF: error = %d", rc);
+ gs_snprintf(buf, sizeof(buf), "failed seeking to EOF: error = %d", rc);
error_message(buf);
return rc;
}
rc = DosSetFilePtr(hf, 0, FILE_BEGIN, &count);
if (rc) {
- gs_sprintf(buf, "failed seeking to BOF: error = %d", rc);
+ gs_snprintf(buf, sizeof(buf), "failed seeking to BOF: error = %d", rc);
error_message(buf);
return rc;
};
@@ -555,14 +555,14 @@ init_bitmap(int argc, char *argv[])
/* allocate memory for bitmap */
if ((rc = DosAllocMem((PPVOID) & bbuffer, length, PAG_READ | PAG_WRITE | PAG_COMMIT))
!= (APIRET) 0) {
- gs_sprintf(buf, "failed allocating memory");
+ gs_snprintf(buf, sizeof(buf), "failed allocating memory");
error_message(buf);
return rc;
}
rc = DosRead(hf, bbuffer, length, &count);
DosClose(hf);
if (rc) {
- gs_sprintf(buf, "failed reading bitmap, error = %u, count = %u", rc, count);
+ gs_snprintf(buf, sizeof(buf), "failed reading bitmap, error = %u, count = %u", rc, count);
error_message(buf);
return rc;
}
@@ -573,7 +573,7 @@ init_bitmap(int argc, char *argv[])
scan_bitmap(&bitmap);
bitmap.valid = TRUE;
- gs_sprintf(buf, "bitmap width = %d, height = %d", bitmap.width, bitmap.height);
+ gs_snprintf(buf, sizeof(buf), "bitmap width = %d, height = %d", bitmap.width, bitmap.height);
message_box(buf, 0);
return rc;
}
@@ -805,7 +805,7 @@ make_bitmap(BMAP * pbm, ULONG left, ULONG bottom, ULONG right, ULONG top, ULONG
char buf[256];
eid = WinGetLastError(hab);
- gs_sprintf(buf, "make_bitmap: GpiDrawBits rc = %08x, eid = %08x", rc, eid);
+ gs_snprintf(buf, sizeof(buf), "make_bitmap: GpiDrawBits rc = %08x, eid = %08x", rc, eid);
message_box(buf, 0);
}
}
diff --git a/base/gsptype1.c b/base/gsptype1.c
index 732047ec..28a88d02 100644
--- a/base/gsptype1.c
+++ b/base/gsptype1.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 2001-2021 Artifex Software, Inc.
+/* Copyright (C) 2001-2022 Artifex Software, Inc.
All Rights Reserved.
This software is provided AS-IS with no warranty, either express or
@@ -415,6 +415,7 @@ gs_pattern1_make_pattern(gs_client_color * pcc,
return 0;
fsaved:gs_gstate_free(saved);
gs_free_object(mem, pinst, "gs_makepattern");
+ pcc->pattern = NULL; /* We've just freed the memory this points to */
return code;
}
@@ -616,10 +617,34 @@ compute_inst_matrix(gs_pattern1_instance_t * pinst,
return code;
/* The stepping matrix : */
- xx = pinst->templat.XStep * saved->ctm.xx;
- xy = pinst->templat.XStep * saved->ctm.xy;
- yx = pinst->templat.YStep * saved->ctm.yx;
- yy = pinst->templat.YStep * saved->ctm.yy;
+ /* We do not want to overflow the maths here. Since xx etc are all floats
+ * then the multiplication will definitely fit into a double, and we can
+ * check to ensure that the result still fits into a float without
+ * overflowing at any point.
+ */
+ {
+ double double_mult = 0.0;
+
+ double_mult = (double)pinst->templat.XStep * (double)saved->ctm.xx;
+ if (double_mult < -MAX_FLOAT || double_mult > MAX_FLOAT)
+ return_error(gs_error_rangecheck);
+ xx = (float)double_mult;
+
+ double_mult = (double)pinst->templat.XStep * (double)saved->ctm.xy;
+ if (double_mult < -MAX_FLOAT || double_mult > MAX_FLOAT)
+ return_error(gs_error_rangecheck);
+ xy = double_mult;
+
+ double_mult = (double)pinst->templat.YStep * (double)saved->ctm.yx;
+ if (double_mult < -MAX_FLOAT || double_mult > MAX_FLOAT)
+ return_error(gs_error_rangecheck);
+ yx = double_mult;
+
+ double_mult = (double)pinst->templat.YStep * (double)saved->ctm.yy;
+ if (double_mult < -MAX_FLOAT || double_mult > MAX_FLOAT)
+ return_error(gs_error_rangecheck);
+ yy = double_mult;
+ }
/* Adjust the stepping matrix so all coefficients are >= 0. */
if (xx == 0 || yy == 0) { /* We know that both xy and yx are non-zero. */
@@ -1474,13 +1499,13 @@ gx_dc_pattern_save_dc(
psdc->type = pdevc->type;
if (pdevc->ccolor_valid) {
psdc->colors.pattern.id = pdevc->ccolor.pattern->pattern_id;
- psdc->colors.pattern.phase = pdevc->phase;
+ psdc->phase = pdevc->phase;
} else {
/* The client color has been changed to a non-pattern color,
but device color has not been created yet.
*/
psdc->colors.pattern.id = gs_no_id;
- psdc->colors.pattern.phase.x = psdc->colors.pattern.phase.y = 0;
+ psdc->phase.x = psdc->phase.y = 0;
}
}
@@ -1695,16 +1720,30 @@ typedef struct tile_trans_clist_info_s {
int height;
} tile_trans_clist_info_t;
+#define serialized_tile_common \
+ gs_id id;\
+ int size_b, size_c;\
+ gs_matrix step_matrix;\
+ gs_rect bbox;\
+ int flags
+
typedef struct gx_dc_serialized_tile_s {
- gs_id id;
- int size_b, size_c;
- gs_int_point size;
- gs_matrix step_matrix;
- gs_rect bbox;
- int flags;
- gs_blend_mode_t blending_mode; /* in case tile has transparency */
+ serialized_tile_common;
} gx_dc_serialized_tile_t;
+#define serialized_tile_trans \
+ serialized_tile_common;\
+ gs_blend_mode_t blending_mode
+
+typedef struct gx_dc_serialized_trans_tile_s {
+ serialized_tile_trans;
+} gx_dc_serialized_trans_tile_t;
+
+typedef struct gx_dc_serialized_pattern_tile_s {
+ serialized_tile_trans;
+ gs_int_point size;
+} gx_dc_serialized_pattern_tile_t;
+
enum {
TILE_IS_LOCKED = (int)0x80000000,
TILE_HAS_OVERLAP = 0x40000000,
@@ -1742,8 +1781,6 @@ gx_dc_pattern_write_raster(gx_color_tile *ptile, int64_t offset, byte *data,
#endif
buf.id = ptile->id;
- buf.size.x = 0; /* fixme: don't write with raster patterns. */
- buf.size.y = 0; /* fixme: don't write with raster patterns. */
buf.size_b = size_b;
buf.size_c = size_c;
buf.step_matrix = ptile->step_matrix;
@@ -1773,7 +1810,7 @@ gx_dc_pattern_write_raster(gx_color_tile *ptile, int64_t offset, byte *data,
dp += sizeof(buf1);
offset1 += sizeof(buf1);
}
- if (offset1 <= sizeof(gx_dc_serialized_tile_t) + size_b) {
+ if (offset1 < sizeof(gx_dc_serialized_tile_t) + size_b) {
int l = min((size_b - sizeof(gx_strip_bitmap)) - (offset1 - sizeof(gx_dc_serialized_tile_t) - sizeof(gx_strip_bitmap)), left);
memcpy(dp, ptile->tbits.data + (offset1 - sizeof(gx_dc_serialized_tile_t) - sizeof(gx_strip_bitmap)), l);
@@ -1785,7 +1822,7 @@ gx_dc_pattern_write_raster(gx_color_tile *ptile, int64_t offset, byte *data,
return 0;
if (size_c == 0)
return 0;
- if (offset1 <= sizeof(gx_dc_serialized_tile_t) + size_b + sizeof(gx_strip_bitmap)) {
+ if (offset1 < sizeof(gx_dc_serialized_tile_t) + size_b + sizeof(gx_strip_bitmap)) {
gx_strip_bitmap buf;
if (left < sizeof(buf))
@@ -1797,7 +1834,7 @@ gx_dc_pattern_write_raster(gx_color_tile *ptile, int64_t offset, byte *data,
dp += sizeof(buf);
offset1 += sizeof(buf);
}
- if (offset1 <= sizeof(gx_dc_serialized_tile_t) + size_b + size_c) {
+ if (offset1 < sizeof(gx_dc_serialized_tile_t) + size_b + size_c) {
int l = min(size_c - sizeof(gx_strip_bitmap), left);
memcpy(dp, ptile->tmask.data + (offset1 - sizeof(gx_dc_serialized_tile_t) - size_b - sizeof(gx_strip_bitmap)), l);
@@ -1818,7 +1855,7 @@ gx_dc_pattern_trans_write_raster(gx_color_tile *ptile, int64_t offset, byte *dat
int64_t offset1 = offset;
unsigned char *ptr;
- size_h = sizeof(gx_dc_serialized_tile_t) + sizeof(tile_trans_clist_info_t);
+ size_h = sizeof(gx_dc_serialized_trans_tile_t) + sizeof(tile_trans_clist_info_t);
/* Everything that we need to handle the transparent tile */
@@ -1832,12 +1869,10 @@ gx_dc_pattern_trans_write_raster(gx_color_tile *ptile, int64_t offset, byte *dat
return 0;
}
if (offset1 == 0) { /* Serialize tile parameters: */
- gx_dc_serialized_tile_t buf;
+ gx_dc_serialized_trans_tile_t buf;
tile_trans_clist_info_t trans_info;
buf.id = ptile->id;
- buf.size.x = 0; /* fixme: don't write with raster patterns. */
- buf.size.y = 0; /* fixme: don't write with raster patterns. */
buf.size_b = size - size_h;
buf.size_c = 0;
buf.flags = ptile->depth
@@ -1884,9 +1919,9 @@ gx_dc_pattern_trans_write_raster(gx_color_tile *ptile, int64_t offset, byte *dat
* plane if this buffer has_tags. */
/* check if we have written it all */
- if (offset1 <= size) {
+ if (offset1 < size) {
/* Get the most that we can write */
- int u = min(size, left);
+ int u = min(size - offset1, left);
/* copy that amount */
ptr = ptile->ttrans->transbytes;
@@ -1952,11 +1987,11 @@ gx_dc_pattern_write(
if (size_c < 0)
return_error(gs_error_unregistered);
if (data == NULL) {
- *psize = sizeof(gx_dc_serialized_tile_t) + size_b + size_c;
+ *psize = sizeof(gx_dc_serialized_pattern_tile_t) + size_b + size_c;
return 0;
}
if (offset1 == 0) { /* Serialize tile parameters: */
- gx_dc_serialized_tile_t buf;
+ gx_dc_serialized_pattern_tile_t buf;
buf.id = ptile->id;
buf.size.x = ptile->cdev->common.width;
@@ -1977,14 +2012,14 @@ gx_dc_pattern_write(
/* For a while we require the client to provide enough buffer size. */
return_error(gs_error_unregistered); /* Must not happen. */
}
- memcpy(dp, &buf, sizeof(gx_dc_serialized_tile_t));
+ memcpy(dp, &buf, sizeof(gx_dc_serialized_pattern_tile_t));
left -= sizeof(buf);
dp += sizeof(buf);
offset1 += sizeof(buf);
}
- if (offset1 <= sizeof(gx_dc_serialized_tile_t) + size_b) {
- l = min(left, size_b - (offset1 - sizeof(gx_dc_serialized_tile_t)));
- code = clist_get_data(ptile->cdev, 0, offset1 - sizeof(gx_dc_serialized_tile_t), dp, l);
+ if (offset1 < sizeof(gx_dc_serialized_pattern_tile_t) + size_b) {
+ l = min(left, size_b - (offset1 - sizeof(gx_dc_serialized_pattern_tile_t)));
+ code = clist_get_data(ptile->cdev, 0, offset1 - sizeof(gx_dc_serialized_pattern_tile_t), dp, l);
if (code < 0)
return code;
left -= l;
@@ -1992,8 +2027,8 @@ gx_dc_pattern_write(
dp += l;
}
if (left > 0) {
- l = min(left, size_c - (offset1 - sizeof(gx_dc_serialized_tile_t) - size_b));
- code = clist_get_data(ptile->cdev, 1, offset1 - sizeof(gx_dc_serialized_tile_t) - size_b, dp, l);
+ l = min(left, size_c - (offset1 - sizeof(gx_dc_serialized_pattern_tile_t) - size_b));
+ code = clist_get_data(ptile->cdev, 1, offset1 - sizeof(gx_dc_serialized_pattern_tile_t) - size_b, dp, l);
if (code < 0)
return code;
}
@@ -2027,7 +2062,7 @@ gx_dc_pattern_read_raster(gx_color_tile *ptile, const gx_dc_serialized_tile_t *b
size_c = ptile->tmask.data != NULL ? gs_object_size(mem, ptile->tmask.data) + sizeof(gx_strip_bitmap) : 0;
}
/* Read tbits : */
- if (offset1 <= sizeof(gx_dc_serialized_tile_t) + sizeof(gx_strip_bitmap)) {
+ if (offset1 < sizeof(gx_dc_serialized_tile_t) + sizeof(gx_strip_bitmap)) {
int l = min(sizeof(gx_strip_bitmap), left);
byte *save = ptile->tbits.data;
@@ -2039,7 +2074,7 @@ gx_dc_pattern_read_raster(gx_color_tile *ptile, const gx_dc_serialized_tile_t *b
}
if (left == 0)
return size; /* we've consumed it all */
- if (offset1 <= sizeof(gx_dc_serialized_tile_t) + size_b) {
+ if (offset1 < sizeof(gx_dc_serialized_tile_t) + size_b) {
int l = min(sizeof(gx_dc_serialized_tile_t) + size_b - offset1, left);
memcpy(ptile->tbits.data +
@@ -2051,7 +2086,7 @@ gx_dc_pattern_read_raster(gx_color_tile *ptile, const gx_dc_serialized_tile_t *b
if (left == 0 || size_c == 0)
return size - left;
/* Read tmask : */
- if (offset1 <= sizeof(gx_dc_serialized_tile_t) + size_b + sizeof(gx_strip_bitmap)) {
+ if (offset1 < sizeof(gx_dc_serialized_tile_t) + size_b + sizeof(gx_strip_bitmap)) {
int l = min(sizeof(gx_dc_serialized_tile_t) + size_b + sizeof(gx_strip_bitmap) - offset1, left);
byte *save = ptile->tmask.data;
@@ -2063,7 +2098,7 @@ gx_dc_pattern_read_raster(gx_color_tile *ptile, const gx_dc_serialized_tile_t *b
}
if (left == 0)
return size;
- if (offset1 <= sizeof(gx_dc_serialized_tile_t) + size_b + size_c) {
+ if (offset1 < sizeof(gx_dc_serialized_tile_t) + size_b + size_c) {
int l = min(sizeof(gx_dc_serialized_tile_t) + size_b + size_c - offset1, left);
memcpy(ptile->tmask.data +
@@ -2096,12 +2131,12 @@ gx_dc_pattern_read_trans_buff(gx_color_tile *ptile, int64_t offset,
return_error(gs_error_VMerror);
}
/* Read transparency buffer */
- if (offset1 <= sizeof(gx_dc_serialized_tile_t) + sizeof(tile_trans_clist_info_t) + data_size ) {
+ if (offset1 < sizeof(gx_dc_serialized_trans_tile_t) + sizeof(tile_trans_clist_info_t) + data_size ) {
- int u = min(data_size, left);
+ int u = min(data_size - (offset1 - sizeof(gx_dc_serialized_trans_tile_t) - sizeof(tile_trans_clist_info_t)), left);
byte *save = trans_pat->transbytes;
- memcpy( trans_pat->transbytes + offset1 - sizeof(gx_dc_serialized_tile_t) -
+ memcpy( trans_pat->transbytes + offset1 - sizeof(gx_dc_serialized_trans_tile_t) -
sizeof(tile_trans_clist_info_t), dp, u);
trans_pat->transbytes = save;
left -= u;
@@ -2118,9 +2153,11 @@ gx_dc_pattern_read(
int64_t offset,
const byte * data,
uint size,
- gs_memory_t * mem )
+ gs_memory_t * mem,
+ int x0,
+ int y0)
{
- gx_dc_serialized_tile_t buf;
+ gx_dc_serialized_pattern_tile_t buf;
int size_b, size_c = -1;
const byte *dp = data;
int left = size;
@@ -2130,6 +2167,7 @@ gx_dc_pattern_read(
tile_trans_clist_info_t trans_info = { { { 0 } } };
int cache_space_needed;
bool deep = device_is_deep(dev);
+ size_t buf_read;
if (offset == 0) {
pdevc->mask.id = gx_no_bitmap_id;
@@ -2155,14 +2193,25 @@ gx_dc_pattern_read(
/* For a while we require the client to provide enough buffer size. */
return_error(gs_error_unregistered); /* Must not happen. */
}
- memcpy(&buf, dp, sizeof(buf));
- dp += sizeof(buf);
- left -= sizeof(buf);
- offset1 += sizeof(buf);
+ memcpy(&buf, dp, sizeof(gx_dc_serialized_tile_t));
+ dp += sizeof(gx_dc_serialized_tile_t);
+ buf_read = sizeof(gx_dc_serialized_tile_t);
+ if (buf.flags & TILE_USES_TRANSP) {
+ memcpy(((char *)&buf)+sizeof(gx_dc_serialized_tile_t), dp, sizeof(gx_dc_serialized_trans_tile_t) - sizeof(gx_dc_serialized_tile_t));
+ dp += sizeof(gx_dc_serialized_trans_tile_t) - sizeof(gx_dc_serialized_tile_t);
+ buf_read = sizeof(gx_dc_serialized_trans_tile_t);
+ }
+ if (buf.flags & TILE_IS_CLIST) {
+ memcpy(((char *)&buf) + sizeof(gx_dc_serialized_trans_tile_t), dp, sizeof(gx_dc_serialized_pattern_tile_t) - sizeof(gx_dc_serialized_trans_tile_t));
+ dp += sizeof(gx_dc_serialized_pattern_tile_t) - sizeof(gx_dc_serialized_trans_tile_t);
+ buf_read = sizeof(gx_dc_serialized_pattern_tile_t);
+ }
+ left -= buf_read;
+ offset1 += buf_read;
if ((buf.flags & TILE_USES_TRANSP) && !(buf.flags & TILE_IS_CLIST)){
- if (sizeof(buf) + sizeof(tile_trans_clist_info_t) > size) {
+ if (buf_read + sizeof(tile_trans_clist_info_t) > size) {
return_error(gs_error_unregistered); /* Must not happen. */
}
@@ -2243,13 +2292,13 @@ gx_dc_pattern_read(
code = gx_dc_pattern_read_trans_buff(ptile, offset1, dp, left, mem);
if (code < 0)
return code;
- return code + sizeof(buf)+sizeof(trans_info);
+ return code + buf_read + sizeof(trans_info);
} else {
- code = gx_dc_pattern_read_raster(ptile, &buf, offset1, dp, left, mem);
+ code = gx_dc_pattern_read_raster(ptile, (gx_dc_serialized_tile_t *)&buf, offset1, dp, left, mem);
if (code < 0)
return code;
- return code + sizeof(buf);
+ return code + buf_read;
}
}
@@ -2292,7 +2341,7 @@ gx_dc_pattern_read(
size_b = ptile->tbits.size.x;
}
- if (offset1 <= sizeof(buf) + size_b) {
+ if (offset1 < sizeof(buf) + size_b) {
l = min(left, size_b - (offset1 - sizeof(buf)));
code = clist_put_data(ptile->cdev, 0, offset1 - sizeof(buf), dp, l);
if (code < 0)
diff --git a/base/gsptype2.c b/base/gsptype2.c
index b9ef6a05..eca96210 100644
--- a/base/gsptype2.c
+++ b/base/gsptype2.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 2001-2021 Artifex Software, Inc.
+/* Copyright (C) 2001-2022 Artifex Software, Inc.
All Rights Reserved.
This software is provided AS-IS with no warranty, either express or
@@ -222,7 +222,7 @@ gs_pattern2_set_color(const gs_client_color * pcc, gs_gstate * pgs)
/* Fill a rectangle with a PatternType 2 color. */
/* WARNING: This function doesn't account the shading BBox
- to allow the clipent to optimize the clipping
+ to allow the client to optimize the clipping
with changing the order of clip paths and rects.
The client must clip with the shading BBox before calling this function. */
static int
diff --git a/base/gsrefct.h b/base/gsrefct.h
index 98d1896e..12b4295e 100644
--- a/base/gsrefct.h
+++ b/base/gsrefct.h
@@ -1,4 +1,4 @@
-/* Copyright (C) 2001-2021 Artifex Software, Inc.
+/* Copyright (C) 2001-2022 Artifex Software, Inc.
All Rights Reserved.
This software is provided AS-IS with no warranty, either express or
@@ -116,6 +116,7 @@ rc_free_proc(rc_free_struct_only);
BEGIN\
(vp)->rc.ref_count++;\
IF_RC_DEBUG(rc_trace_increment(vp, &(vp)->rc));\
+ (void)Memento_adjustRef((vp), 1);\
END
#define rc_increment(vp)\
BEGIN\
diff --git a/base/gsstate.c b/base/gsstate.c
index 3a4542d1..4bbeee7f 100644
--- a/base/gsstate.c
+++ b/base/gsstate.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 2001-2021 Artifex Software, Inc.
+/* Copyright (C) 2001-2022 Artifex Software, Inc.
All Rights Reserved.
This software is provided AS-IS with no warranty, either express or
@@ -1290,12 +1290,12 @@ gstate_alloc(gs_memory_t * mem, client_name_t cname, const gs_gstate * pfrom)
gs_gstate *pgs =
gs_alloc_struct(mem, gs_gstate, &st_gs_gstate, cname);
- if (pgs == 0)
- return 0;
+ if (pgs == NULL)
+ return NULL;
memset(pgs, 0x00, sizeof(gs_gstate));
if (gstate_alloc_parts(pgs, pfrom, mem, cname) < 0) {
gs_free_object(mem, pgs, cname);
- return 0;
+ return NULL;
}
pgs->memory = mem;
return pgs;
@@ -1333,7 +1333,7 @@ gstate_clone_core(const gs_gstate *pfrom,
if (pdata == NULL ||
gstate_copy_client_data(pfrom, pdata, pfrom->client_data,
reason) < 0)
- goto fail;
+ goto failEarly;
}
/* Copy the dash and dash pattern if necessary. */
clone_data->dash = gs_currentlineparams_inline(pfrom)->dash;
@@ -1368,9 +1368,10 @@ gstate_clone_core(const gs_gstate *pfrom,
return pgs;
fail:
+ gs_free_object(mem, clone_data->dash.pattern, cname);
if (pdata != NULL)
(*pfrom->client_procs.free) (pdata, mem, pgs);
- gs_free_object(mem, clone_data->dash.pattern, cname);
+ failEarly:
gstate_free_parts(pgs, mem, cname);
gs_free_object(mem, pgs, cname);
diff --git a/base/gstext.c b/base/gstext.c
index c4bf16a3..306c476d 100644
--- a/base/gstext.c
+++ b/base/gstext.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 2001-2021 Artifex Software, Inc.
+/* Copyright (C) 2001-2022 Artifex Software, Inc.
All Rights Reserved.
This software is provided AS-IS with no warranty, either express or
@@ -533,7 +533,7 @@ gs_xyshow_begin(gs_gstate * pgs, const byte * str, uint size,
const float *x_widths, const float *y_widths,
uint widths_size, gs_memory_t * mem, gs_text_enum_t ** ppte)
{
- gs_text_params_t text;
+ gs_text_params_t text = {0};
uint widths_needed;
int code;
diff --git a/base/gstrans.c b/base/gstrans.c
index d810524a..42207f99 100644
--- a/base/gstrans.c
+++ b/base/gstrans.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 2001-2021 Artifex Software, Inc.
+/* Copyright (C) 2001-2022 Artifex Software, Inc.
All Rights Reserved.
This software is provided AS-IS with no warranty, either express or
@@ -31,6 +31,7 @@
#include "gxclist.h"
#include "gsicc_manage.h"
#include "gsicc_cache.h"
+#include "gxdevsop.h"
/* ------ Transparency-related graphics state elements ------ */
@@ -789,6 +790,7 @@ gs_push_pdf14trans_device(gs_gstate * pgs, bool is_pattern, bool retain,
gsicc_rendering_param_t render_cond;
int code;
cmm_dev_profile_t *dev_profile;
+ unsigned char pattern_opsim_setting[2];
code = dev_proc(pgs->device, get_profile)(pgs->device, &dev_profile);
if (code < 0)
@@ -805,10 +807,18 @@ gs_push_pdf14trans_device(gs_gstate * pgs, bool is_pattern, bool retain,
params.num_spot_colors = get_num_pdf14_spot_colors(pgs);
params.is_pattern = is_pattern;
- /* Information related to overprint simulation */
- params.num_spot_colors_int = spot_color_count;
- if (depth < 0)
- params.overprint_sim_push = true;
+ /* If pattern, get overprint simulation information from
+ the pattern accumulators target device */
+ if (is_pattern && dev_proc(pgs->device, dev_spec_op)(pgs->device, gxdso_overprintsim_state, &pattern_opsim_setting, sizeof(pattern_opsim_setting))) {
+ /* Use the target device setting */
+ params.overprint_sim_push = pattern_opsim_setting[0];
+ params.num_spot_colors_int = pattern_opsim_setting[1];
+ } else {
+ /* Use information from interpreter */
+ params.num_spot_colors_int = spot_color_count;
+ if (depth < 0)
+ params.overprint_sim_push = true;
+ }
/* If we have an NCLR ICC profile, the extra spot colorants do not
get included in the transparency buffers. This is also true
diff --git a/base/gxacpath.c b/base/gxacpath.c
index 8c3bf349..23c70a0d 100644
--- a/base/gxacpath.c
+++ b/base/gxacpath.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 2001-2021 Artifex Software, Inc.
+/* Copyright (C) 2001-2022 Artifex Software, Inc.
All Rights Reserved.
This software is provided AS-IS with no warranty, either express or
@@ -256,10 +256,10 @@ accum_open_device(register gx_device * dev)
gx_device_cpath_accum * const adev = (gx_device_cpath_accum *)dev;
gx_clip_list_init(&adev->list);
- adev->bbox.p.x = adev->bbox.p.y = max_int;
- adev->bbox.q.x = adev->bbox.q.y = min_int;
- adev->clip_box.p.x = adev->clip_box.p.y = min_int;
- adev->clip_box.q.x = adev->clip_box.q.y = max_int;
+ adev->bbox.p.x = adev->bbox.p.y = fixed2int(max_fixed);
+ adev->bbox.q.x = adev->bbox.q.y = fixed2int(min_fixed);
+ adev->clip_box.p.x = adev->clip_box.p.y = fixed2int(min_fixed);
+ adev->clip_box.q.x = adev->clip_box.q.y = fixed2int(max_fixed);
return 0;
}
diff --git a/base/gxbcache.c b/base/gxbcache.c
index 184c7647..645f64d4 100644
--- a/base/gxbcache.c
+++ b/base/gxbcache.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 2001-2021 Artifex Software, Inc.
+/* Copyright (C) 2001-2022 Artifex Software, Inc.
All Rights Reserved.
This software is provided AS-IS with no warranty, either express or
@@ -146,3 +146,35 @@ gx_bits_cache_free(gx_bits_cache * bc, gx_cached_bits_head * cbh,
cbh->size = size; /* gs_alloc_fill may have overwritten */
cb_head_set_free(cbh);
}
+
+#ifdef DEBUG
+/* A useful bit of code to dump the contents of the bitmap cache. Not
+ * currently called. Current position is indicated with a '>'. */
+void
+gx_bits_cache_dump(gx_bits_cache * bc)
+{
+ gx_bits_cache_chunk *bck = bc->chunks;
+ gx_bits_cache_chunk *first = bck;
+
+ dlprintf2("%d entries making %d bytes\n", bc->csize, bc->bsize);
+
+ do {
+ gx_cached_bits_head *cbh;
+ uint pos = 0;
+
+ dlprintf2(" chunk of %d bytes (%d allocated)\n", bck->size, bck->allocated);
+
+ cbh = (gx_cached_bits_head *)bck->data;
+ while (pos != bck->size) {
+ dlprintf3(" %csize=%d depth=%d\n",
+ pos == bc->cnext && bck == bc->chunks ? '>' : ' ',
+ cbh->size, cbh->depth);
+ pos += cbh->size;
+ cbh = (gx_cached_bits_head *)(((byte *)cbh) + cbh->size);
+ }
+ bck = bck->next;
+ } while (bck != first);
+
+ bck=bck;
+}
+#endif
diff --git a/base/gxbcache.h b/base/gxbcache.h
index be85bcc8..8a7465fe 100644
--- a/base/gxbcache.h
+++ b/base/gxbcache.h
@@ -1,4 +1,4 @@
-/* Copyright (C) 2001-2021 Artifex Software, Inc.
+/* Copyright (C) 2001-2022 Artifex Software, Inc.
All Rights Reserved.
This software is provided AS-IS with no warranty, either express or
@@ -47,8 +47,6 @@ typedef struct gx_cached_bits_head_s {
ushort width, height, shift;\
ushort raster;\
gx_bitmap_id id
-/* Define aliases for head members. */
-#define cb_depth head.depth
/* Define aliases for common members formerly in the head. */
#define cb_raster raster
typedef struct gx_cached_bits_s {
@@ -118,4 +116,9 @@ void gx_bits_cache_shorten(gx_bits_cache *, gx_cached_bits_head *,
void gx_bits_cache_free(gx_bits_cache *, gx_cached_bits_head *,
gx_bits_cache_chunk *);
+#ifdef DEBUG
+/* Debug only function to print the contents of the cache. */
+void gx_bits_cache_dump(gx_bits_cache * bc);
+#endif
+
#endif /* gxbcache_INCLUDED */
diff --git a/base/gxblend.c b/base/gxblend.c
index b2e61a42..bd36994b 100644
--- a/base/gxblend.c
+++ b/base/gxblend.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 2001-2021 Artifex Software, Inc.
+/* Copyright (C) 2001-2022 Artifex Software, Inc.
All Rights Reserved.
This software is provided AS-IS with no warranty, either express or
@@ -1345,10 +1345,8 @@ art_blend_pixel_8_inline(byte *gs_restrict dst, const byte *gs_restrict backdrop
break;
}
default:
-#ifndef GS_THREADSAFE
dlprintf1("art_blend_pixel_8: blend mode %d not implemented\n",
blend_mode);
-#endif
memcpy(dst, src, n_chan);
break;
}
@@ -1556,10 +1554,8 @@ art_blend_pixel_16_inline(uint16_t *gs_restrict dst, const uint16_t *gs_restrict
break;
}
default:
-#ifndef GS_THREADSAFE
dlprintf1("art_blend_pixel_16: blend mode %d not implemented\n",
blend_mode);
-#endif
memcpy(dst, src, n_chan*2);
break;
}
@@ -2565,6 +2561,12 @@ art_pdf_composite_knockout_8(byte *gs_restrict dst,
byte blend[ART_MAX_CHAN];
byte a_b, a_s;
unsigned int a_r;
+ /* Using a volatile variable set to 0 here works around
+ a gcc (10.3.0) compiler optimiser bug that appears to
+ drop the "if (a_r != 0)" test below, meaning we can end
+ up dividing by a_r when it is zero.
+ */
+ volatile const unsigned int vzero = 0;
int src_scale;
int c_b, c_s;
@@ -2575,7 +2577,7 @@ art_pdf_composite_knockout_8(byte *gs_restrict dst,
tmp = (0xff - a_b) * (0xff - a_s) + 0x80;
a_r = 0xff - (((tmp >> 8) + tmp) >> 8);
- if (a_r != 0) {
+ if (a_r != vzero) {
/* Compute a_s / a_r in 16.16 format */
src_scale = ((a_s << 16) + (a_r >> 1)) / a_r;
@@ -2646,6 +2648,12 @@ art_pdf_composite_knockout_16(uint16_t *gs_restrict dst,
uint16_t blend[ART_MAX_CHAN];
uint16_t a_b, a_s;
unsigned int a_r;
+ /* Using a volatile variable set to 0 here works around
+ a gcc (10.3.0) compiler optimiser bug that appears to
+ drop the "if (a_r != 0)" test below, meaning we can end
+ up dividing by a_r when it is zero.
+ */
+ volatile const unsigned int vzero = 0;
int src_scale;
int c_b, c_s;
@@ -2656,7 +2664,7 @@ art_pdf_composite_knockout_16(uint16_t *gs_restrict dst,
tmp = (0xffff - a_b) * (0xffff - a_s) + 0x8000;
a_r = 0xffff - (((tmp >> 16) + tmp) >> 16);
- if (a_r != 0) {
+ if (a_r != vzero) {
/* Compute a_s / a_r in 16.16 format */
src_scale = ((a_s << 16) + (a_r >> 1)) / a_r;
@@ -2706,7 +2714,7 @@ do_dump_raw_buffer(const gs_memory_t *mem, int num_rows, int width, int n_chan,
if ((n_chan == 2) || (n_chan == 3)) {
int x;
dlprintf2("%02d)%s.pam\n",global_index,filename);dflush();
- gs_sprintf(full_file_name,"%02d)%s.pam",global_index,filename);
+ gs_snprintf(full_file_name,sizeof(full_file_name),"%02d)%s.pam",global_index,filename);
fid = gp_fopen(mem,full_file_name,"wb");
fprintf(fid, "P7\nWIDTH %d\nHEIGHT %d\nDEPTH 2\nMAXVAL %d\nTUPLTYPE GRAYSCALE_ALPHA\nENDHDR\n",
width, num_rows, deep ? 65535 : 255);
@@ -2727,7 +2735,7 @@ do_dump_raw_buffer(const gs_memory_t *mem, int num_rows, int width, int n_chan,
gp_fclose(fid);
if (n_chan == 3) {
dlprintf2("%02d)%s_shape.pgm\n",global_index,filename);dflush();
- gs_sprintf(full_file_name,"%02d)%s_shape.pgm",global_index,filename);
+ gs_snprintf(full_file_name,sizeof(full_file_name),"%02d)%s_shape.pgm",global_index,filename);
fid = gp_fopen(mem,full_file_name,"wb");
fprintf(fid, "P5\n%d %d %d\n",
width, num_rows, deep ? 65535 : 255);
@@ -2749,7 +2757,7 @@ do_dump_raw_buffer(const gs_memory_t *mem, int num_rows, int width, int n_chan,
if ((n_chan == 4) || (n_chan == 5) || (n_chan == 6)) {
int x;
dprintf2("%02d)%s.pam\n",global_index,filename);dflush();
- gs_sprintf(full_file_name,"%02d)%s.pam",global_index,filename);
+ gs_snprintf(full_file_name,sizeof(full_file_name),"%02d)%s.pam",global_index,filename);
fid = gp_fopen(mem,full_file_name,"wb");
fprintf(fid, "P7\nWIDTH %d\nHEIGHT %d\nDEPTH 4\nMAXVAL %d\nTUPLTYPE RGB_ALPHA\nENDHDR\n",
width, num_rows, deep ? 65535 : 255);
@@ -2769,7 +2777,7 @@ do_dump_raw_buffer(const gs_memory_t *mem, int num_rows, int width, int n_chan,
}
gp_fclose(fid);
if (n_chan > 4) {
- gs_sprintf(full_file_name,"%02d)%s_shape.pgm",global_index,filename);
+ gs_snprintf(full_file_name,sizeof(full_file_name),"%02d)%s_shape.pgm",global_index,filename);
fid = gp_fopen(mem,full_file_name,"wb");
fprintf(fid, "P5\n%d %d %d\n",
width, num_rows, deep ? 65535 : 255);
@@ -2788,7 +2796,7 @@ do_dump_raw_buffer(const gs_memory_t *mem, int num_rows, int width, int n_chan,
gp_fclose(fid);
}
if (n_chan == 6) {
- gs_sprintf(full_file_name,"%02d)%s_tags.pgm",global_index,filename);
+ gs_snprintf(full_file_name,sizeof(full_file_name),"%02d)%s_tags.pgm",global_index,filename);
fid = gp_fopen(mem, full_file_name,"wb");
fprintf(fid, "P5\n%d %d 255\n", width, num_rows);
if (deep) {
@@ -2807,7 +2815,7 @@ do_dump_raw_buffer(const gs_memory_t *mem, int num_rows, int width, int n_chan,
#endif
max_bands = ( n_chan < 57 ? n_chan : 56); /* Photoshop handles at most 56 bands */
dlprintf6("%02d)%s_%dx%dx%dx%d.raw\n",global_index,filename,width,num_rows,deep ? 16 : 8,max_bands);dflush();
- gs_sprintf(full_file_name,"%02d)%s_%dx%dx%dx%d.raw",global_index,filename,width,num_rows,deep ? 16 : 8,max_bands);
+ gs_snprintf(full_file_name,sizeof(full_file_name),"%02d)%s_%dx%dx%dx%d.raw",global_index,filename,width,num_rows,deep ? 16 : 8,max_bands);
fid = gp_fopen(mem, full_file_name,"wb");
if (be && deep) {
@@ -5131,6 +5139,12 @@ do_mark_fill_rectangle(gx_device * dev, int x, int y, int w, int h,
int first_blend_spot = num_comp;
pdf14_mark_fill_rect_fn fn;
+ /* If we are going out to a CMYK or CMYK + spots pdf14 device (i.e.
+ subtractive) and we are doing overprint with drawn_comps == 0
+ then this is a no-operation */
+ if (overprint && drawn_comps == 0 && !buf->group_color_info->isadditive)
+ return 0;
+
/* This is a fix to handle the odd case where overprint is active
but drawn comps is zero due to the colorants that are present
in the sep or devicen color space. For example, if the color
@@ -5767,6 +5781,12 @@ do_mark_fill_rectangle16(gx_device * dev, int x, int y, int w, int h,
int first_blend_spot = num_comp;
pdf14_mark_fill_rect16_fn fn;
+ /* If we are going out to a CMYK or CMYK + spots pdf14 device (i.e.
+ subtractive) and we are doing overprint with drawn_comps == 0
+ then this is a no-operation */
+ if (overprint && drawn_comps == 0 && !buf->group_color_info->isadditive)
+ return 0;
+
/* This is a fix to handle the odd case where overprint is active
but drawn comps is zero due to the colorants that are present
in the sep or devicen color space. For example, if the color
diff --git a/base/gxblend1.c b/base/gxblend1.c
index 3f8842a9..2b649a41 100644
--- a/base/gxblend1.c
+++ b/base/gxblend1.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 2001-2021 Artifex Software, Inc.
+/* Copyright (C) 2001-2022 Artifex Software, Inc.
All Rights Reserved.
This software is provided AS-IS with no warranty, either express or
@@ -242,7 +242,7 @@ pdf14_preserve_backdrop_cm(pdf14_buf *buf, cmm_profile_t *group_profile,
rendering_params.graphics_type_tag = GS_IMAGE_TAG;
rendering_params.override_icc = false;
rendering_params.preserve_black = gsBKPRESNOTSPECIFIED;
- rendering_params.rendering_intent = gsPERCEPTUAL;
+ rendering_params.rendering_intent = gsRELATIVECOLORIMETRIC;
rendering_params.cmm = gsCMM_DEFAULT;
/* Request the ICC link for the transform that we will need to use */
icc_link = gsicc_get_link_profile(pgs, dev, tos_profile, group_profile,
@@ -682,7 +682,7 @@ dump_planar_rgba(gs_memory_t *mem, const pdf14_buf *pbuf)
info_ptr->color_type = PNG_COLOR_TYPE_RGB_ALPHA;
/* add comment */
- gs_sprintf(software_text, "%s %d.%02d", gs_product,
+ gs_snprintf(software_text, sizeof(software_text), "%s %d.%02d", gs_product,
(int)(gs_revision / 100), (int)(gs_revision % 100));
text_png.compression = -1; /* uncompressed */
text_png.key = (char *)software_key; /* not const, unfortunately */
diff --git a/base/gxccman.c b/base/gxccman.c
index 869fccdc..3fbe11b4 100644
--- a/base/gxccman.c
+++ b/base/gxccman.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 2001-2021 Artifex Software, Inc.
+/* Copyright (C) 2001-2022 Artifex Software, Inc.
All Rights Reserved.
This software is provided AS-IS with no warranty, either express or
@@ -473,14 +473,10 @@ gs_purge_fm_pair(gs_font_dir * dir, cached_fm_pair * pair, int xfont_only)
* (multiplication by 1 << pscale->{x,y}.)
* The depth parameter is the final number of alpha bits;
* depth <= x scale * y scale.
- * If dev == NULL, this is an xfont-only entry.
- * If dev != NULL, set up the memory device(s); in this case, if dev2 is
- * not NULL, dev should be an alpha-buffer device with dev2 (an alpha
- * device) as target.
*/
int
-gx_alloc_char_bits(gs_font_dir * dir, gx_device_memory * dev,
- gx_device_memory * dev2, ushort iwidth, ushort iheight,
+gx_alloc_char_bits(gs_font_dir * dir, gx_device_memory * pdev,
+ ushort iwidth, ushort iheight,
const gs_log2_scale_point * pscale, int depth, cached_char **pcc)
{
int log2_xscale = pscale->x;
@@ -493,23 +489,12 @@ gx_alloc_char_bits(gs_font_dir * dir, gx_device_memory * dev,
#endif
uint iraster;
cached_char *cc;
- gx_device_memory mdev;
- gx_device_memory *pdev = dev;
- gx_device_memory *pdev2;
float HWResolution0 = 72, HWResolution1 = 72; /* default for dev == NULL */
int code;
*pcc = 0;
- if (dev == NULL) {
- mdev.memory = 0;
- mdev.target = 0;
- pdev = &mdev;
- } else {
- HWResolution0 = dev->HWResolution[0];
- HWResolution1 = dev->HWResolution[1];
- }
-
- pdev2 = (dev2 == 0 ? pdev : dev2);
+ HWResolution0 = pdev->HWResolution[0];
+ HWResolution1 = pdev->HWResolution[1];
/* Compute the scaled-down bitmap size, and test against */
/* the maximum cachable character size. */
@@ -522,7 +507,7 @@ gx_alloc_char_bits(gs_font_dir * dir, gx_device_memory * dev,
return 0; /* too big */
}
/* Compute the actual bitmap size(s) and allocate the bits. */
- if (dev2 == 0) {
+ {
/*
* Render to a full (possibly oversampled) bitmap; compress
* (if needed) when done.
@@ -545,21 +530,6 @@ gx_alloc_char_bits(gs_font_dir * dir, gx_device_memory * dev,
gdev_mem_bitmap_size(pdev, &isize); /* Assume less than max_ulong */
pdev->HWResolution[0] = HWResolution0;
pdev->HWResolution[1] = HWResolution1;
- } else {
- /* We reckon this code has never actually been run since 2002,
- * as the conditions set up in gx_compute_text_oversampling
- * preclude this function ever being called in a way that
- * will cause this else clause to be executed. */
- static int THIS_NEVER_HAPPENS = 0;
-
- if (THIS_NEVER_HAPPENS == 0) {
- /* Just put the warning out once */
- dmlprintf(dev2->memory,
- "Unexpected code path in gx_alloc_char_bits taken!\n"
- "Please contact the Ghostscript developers.\n");
- THIS_NEVER_HAPPENS = 1;
- }
- return_error(gs_error_unknownerror);
}
icdsize = isize + sizeof_cached_char;
code = alloc_char(dir, icdsize, &cc);
@@ -568,7 +538,7 @@ gx_alloc_char_bits(gs_font_dir * dir, gx_device_memory * dev,
*pcc = cc;
if (cc == 0)
return 0;
- if_debug4m('k', dev->memory, "[k]adding char "PRI_INTPTR":%u(%u,%u)\n",
+ if_debug4m('k', pdev->memory, "[k]adding char "PRI_INTPTR":%u(%u,%u)\n",
(intptr_t)cc, (uint)icdsize, iwidth, iheight);
/* Fill in the entry. */
@@ -578,35 +548,17 @@ gx_alloc_char_bits(gs_font_dir * dir, gx_device_memory * dev,
/* Set the width and height to those of the device. */
/* Note that if we are oversampling without an alpha buffer. */
/* these are not the final unscaled dimensions. */
- cc->width = pdev2->width;
- cc->height = pdev2->height;
+ cc->width = pdev->width;
+ cc->height = pdev->height;
cc->shift = 0;
- cc_set_raster(cc, gdev_mem_raster(pdev2));
+ cc_set_raster(cc, gdev_mem_raster(pdev));
cc_set_pair_only(cc, 0); /* not linked in yet */
cc->id = gx_no_bitmap_id;
cc->subpix_origin.x = cc->subpix_origin.y = 0;
cc->linked = false;
/* Open the cache device(s). */
-
-#ifndef ENABLE_IMPOSSIBLE_ALPHA_CODE
- if (dev2) { /* The second device is an alpha device that targets */
- /* the real storage for the character. */
- byte *bits = cc_bits(cc);
- ulong bsize;
-
- gdev_mem_bitmap_size(dev2, &bsize);
- memset(bits, 0, bsize);
- dev2->base = bits;
- (*dev_proc(dev2, open_device)) ((gx_device *) dev2);
- dev->base = bits + bsize;
- (*dev_proc(dev, open_device)) ((gx_device *) dev);
- } else if (dev)
- gx_open_cache_device(dev, cc);
-#else /* ENABLE_IMPOSSIBLE_ALPHA_CODE */
- if (dev)
- gx_open_cache_device(dev, cc);
-#endif /* ENABLE_IMPOSSIBLE_ALPHA_CODE */
+ gx_open_cache_device(pdev, cc);
return 0;
}
diff --git a/base/gxchar.c b/base/gxchar.c
index 7704c91b..1c534ccb 100644
--- a/base/gxchar.c
+++ b/base/gxchar.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 2001-2021 Artifex Software, Inc.
+/* Copyright (C) 2001-2022 Artifex Software, Inc.
All Rights Reserved.
This software is provided AS-IS with no warranty, either express or
@@ -153,8 +153,10 @@ gx_default_text_begin(gx_device * dev, gs_gstate * pgs1,
penum->can_cache = 1; break;
}
code = show_state_setup(penum);
- if (code < 0)
+ if (code < 0) {
+ gs_free_object(mem, penum, "gx_default_text_begin");
return code;
+ }
penum->show_gstate =
(propagate_charpath && (pgs->in_charpath != 0) ?
pgs->show_gstate : pgs);
@@ -576,18 +578,8 @@ set_cache_device(gs_show_enum * penum, gs_gstate * pgs, double llx, double lly,
if (code < 0)
return code;
}
- /*
- * If we're oversampling (i.e., the temporary bitmap is
- * larger than the final monobit or alpha array) and the
- * temporary bitmap is large, use incremental conversion
- * from oversampled bitmap strips to alpha values instead of
- * full oversampling with compression at the end.
- */
code = gx_alloc_char_bits(dir, penum->dev_cache,
- (iwidth > MAX_CCACHE_TEMP_BITMAP_BITS / iheight &&
- log2_scale.x + log2_scale.y > alpha_bits ?
- penum->dev_cache2 : NULL),
- iwidth, iheight, &log2_scale, depth, &cc);
+ iwidth, iheight, &log2_scale, depth, &cc);
if (code < 0)
return code;
@@ -1552,8 +1544,8 @@ show_cache_setup(gs_show_enum * penum)
* The structure is full of garbage so must not call the
* finalize method but still need to free the structure
*/
- gs_set_object_type(mem, dev2, NULL);
- gs_set_object_type(mem, dev, NULL);
+ gs_set_object_type(mem, dev2, &st_bytes);
+ gs_set_object_type(mem, dev, &st_bytes);
gs_free_object(mem, dev2, "show_cache_setup(dev_cache2)");
gs_free_object(mem, dev, "show_cache_setup(dev_cache)");
return_error(gs_error_VMerror);
diff --git a/base/gxchar.h b/base/gxchar.h
index 4a26768f..47d987dc 100644
--- a/base/gxchar.h
+++ b/base/gxchar.h
@@ -1,4 +1,4 @@
-/* Copyright (C) 2001-2021 Artifex Software, Inc.
+/* Copyright (C) 2001-2022 Artifex Software, Inc.
All Rights Reserved.
This software is provided AS-IS with no warranty, either express or
@@ -36,7 +36,7 @@ struct gs_show_enum_s {
/* Get the current character code. */
int gx_current_char(const gs_text_enum_t * pte);
-int gx_alloc_char_bits(gs_font_dir *, gx_device_memory *, gx_device_memory *, ushort, ushort, const gs_log2_scale_point *, int, cached_char **);
+int gx_alloc_char_bits(gs_font_dir *, gx_device_memory *, ushort, ushort, const gs_log2_scale_point *, int, cached_char **);
void gx_open_cache_device(gx_device_memory *, cached_char *);
void gx_free_cached_char(gs_font_dir *, cached_char *);
int gx_add_cached_char(gs_font_dir *, gx_device_memory *, cached_char *, cached_fm_pair *, const gs_log2_scale_point *);
diff --git a/base/gxcht.c b/base/gxcht.c
index ed9868d3..8db03046 100644
--- a/base/gxcht.c
+++ b/base/gxcht.c
@@ -129,8 +129,12 @@ gx_dc_ht_colored_equal(const gx_device_color * pdevc1,
* The halftone is never transmitted as part of a device color, so there
* is no flag for it.
*/
-static const int dc_ht_colored_has_base = 0x01;
-static const int dc_ht_colored_has_level = 0x02;
+enum {
+ dc_ht_colored_has_base = 0x01,
+ dc_ht_colored_has_level = 0x02,
+ dc_ht_colored_has_phase_x = 0x04,
+ dc_ht_colored_has_phase_y = 0x08,
+};
/*
* Serialize a device color that uses a traditional colored halftone.
@@ -219,7 +223,7 @@ gx_dc_ht_colored_write(
}
plane_mask = pdevc->colors.colored.plane_mask;
- if ( psdc == 0 ||
+ if ( psdc == NULL ||
memcmp( pdevc->colors.colored.c_level,
psdc->colors.colored.c_level,
num_comps * sizeof(pdevc->colors.colored.c_level[0]) ) != 0 ) {
@@ -243,6 +247,11 @@ gx_dc_ht_colored_write(
}
}
+ if (psdc == NULL || psdc->phase.x != pdevc->phase.x)
+ flag_bits |= dc_ht_colored_has_phase_x, req_size += enc_u_sizew(pdevc->phase.x);
+ if (psdc == NULL || psdc->phase.y != pdevc->phase.y)
+ flag_bits |= dc_ht_colored_has_phase_y, req_size += enc_u_sizew(pdevc->phase.y);
+
/* see if there is anything to do */
if (flag_bits == 0) {
*psize = 0;
@@ -299,6 +308,13 @@ gx_dc_ht_colored_write(
}
}
+ if ((flag_bits & dc_ht_colored_has_phase_x) != 0) {
+ enc_u_putw(pdevc->phase.x, pdata);
+ }
+ if ((flag_bits & dc_ht_colored_has_phase_x) != 0) {
+ enc_u_putw(pdevc->phase.y, pdata);
+ }
+
*psize = pdata - pdata0;
return 0;
}
@@ -336,13 +352,15 @@ gx_dc_ht_colored_write(
static int
gx_dc_ht_colored_read(
gx_device_color * pdevc,
- const gs_gstate * pgs,
+ const gs_gstate * pgs,
const gx_device_color * prior_devc,
const gx_device * dev,
- int64_t offset,
+ int64_t offset,
const byte * pdata,
uint size,
- gs_memory_t * mem ) /* ignored */
+ gs_memory_t * mem, /* ignored */
+ int x0,
+ int y0)
{
gx_device_color devc;
int num_comps = dev->color_info.num_components;
@@ -430,12 +448,14 @@ gx_dc_ht_colored_read(
size -= pdata - pdata_start;
}
- /* set the phase as required (select value is arbitrary) */
- color_set_phase_mod( &devc,
- pgs->screen_phase[0].x,
- pgs->screen_phase[0].y,
- pgs->dev_ht[HT_OBJTYPE_DEFAULT]->lcm_width,
- pgs->dev_ht[HT_OBJTYPE_DEFAULT]->lcm_height );
+ if ((flag_bits & dc_ht_colored_has_phase_x) != 0) {
+ enc_u_getw(devc.phase.x, pdata);
+ devc.phase.x += x0;
+ }
+ if ((flag_bits & dc_ht_colored_has_phase_y) != 0) {
+ enc_u_getw(devc.phase.y, pdata);
+ devc.phase.y += y0;
+ }
/* everything looks OK */
*pdevc = devc;
diff --git a/base/gxclbits.c b/base/gxclbits.c
index 9fd0990c..6ccc65a7 100644
--- a/base/gxclbits.c
+++ b/base/gxclbits.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 2001-2021 Artifex Software, Inc.
+/* Copyright (C) 2001-2022 Artifex Software, Inc.
All Rights Reserved.
This software is provided AS-IS with no warranty, either express or
@@ -486,21 +486,19 @@ clist_add_tile(gx_device_clist_writer * cldev, const gx_strip_bitmap * tiles,
uint size_bytes = raster * tiles->size.y * tiles->num_planes;
uint tsize =
sizeof(tile_slot) + cldev->tile_band_mask_size + size_bytes;
- gx_cached_bits_head *slot_head;
-
-#define slot ((tile_slot *)slot_head)
+ tile_slot *slot;
if (cldev->bits.csize == cldev->tile_max_count) { /* Don't let the hash table get too full: delete an entry. */
/* Since gx_bits_cache_alloc returns an entry to delete when */
/* it fails, just force it to fail. */
gx_bits_cache_alloc(&cldev->bits, (ulong) cldev->cache_chunk->size,
- &slot_head);
- if (slot_head == 0) { /* Wrap around and retry. */
+ (gx_cached_bits_head **)&slot);
+ if (slot == NULL) { /* Wrap around and retry. */
cldev->bits.cnext = 0;
gx_bits_cache_alloc(&cldev->bits, (ulong) cldev->cache_chunk->size,
- &slot_head);
+ (gx_cached_bits_head **)&slot);
#ifdef DEBUG
- if (slot_head == 0) {
+ if (slot == NULL) {
lprintf("No entry to delete!\n");
return_error(gs_error_Fatal);
}
@@ -509,8 +507,8 @@ clist_add_tile(gx_device_clist_writer * cldev, const gx_strip_bitmap * tiles,
clist_delete_tile(cldev, slot);
}
/* Allocate the space for the new entry, deleting entries as needed. */
- while (gx_bits_cache_alloc(&cldev->bits, (ulong) tsize, &slot_head) < 0) {
- if (slot_head == 0) { /* Wrap around. */
+ while (gx_bits_cache_alloc(&cldev->bits, (ulong) tsize, (gx_cached_bits_head **)&slot) < 0) {
+ if (slot == NULL) { /* Wrap around. */
if (cldev->bits.cnext == 0) { /* Too big to fit. We should probably detect this */
/* sooner, since if we get here, we've cleared the */
/* cache. */
@@ -521,8 +519,8 @@ clist_add_tile(gx_device_clist_writer * cldev, const gx_strip_bitmap * tiles,
clist_delete_tile(cldev, slot);
}
/* Fill in the entry. */
- slot->cb_depth = depth;
- slot->cb_raster = raster;
+ slot->head.depth = depth;
+ slot->raster = raster;
slot->width = tiles->rep_width;
slot->height = tiles->rep_height;
slot->shift = slot->rep_shift = tiles->rep_shift;
@@ -549,7 +547,7 @@ clist_add_tile(gx_device_clist_writer * cldev, const gx_strip_bitmap * tiles,
#endif
slot->index = loc.index;
cldev->tile_table[loc.index].offset =
- (byte *) slot_head - cldev->data;
+ (byte *) slot - cldev->data;
if_debug2m('L', cldev->memory, "[L]adding index=%u, offset=%lu\n",
loc.index, cldev->tile_table[loc.index].offset);
}
@@ -701,7 +699,7 @@ clist_change_tile(gx_device_clist_writer * cldev, gx_clist_state * pcls,
code = cmd_put_bits(cldev, pcls, ts_bits(cldev, loc.tile),
tiles->rep_width * pdepth,
tiles->rep_height * tiles->num_planes,
- loc.tile->cb_raster, rsize,
+ loc.tile->raster, rsize,
allow_large_bitmap |
(cldev->tile_params.size.x > tiles->rep_width ?
decompress_elsewhere | decompress_spread :
@@ -711,6 +709,8 @@ clist_change_tile(gx_device_clist_writer * cldev, gx_clist_state * pcls,
if (code < 0)
return code;
if (extra) { /* Write the tile parameters before writing the bits. */
+ if_debug1m('L', cldev->memory,
+ "[L] fake end_run: really set_tile_size[%d]\n", extra);
cmd_store_tile_params(dp, &cldev->tile_params, depth,
extra, for_pattern, cldev->memory);
dp += extra;
@@ -721,6 +721,8 @@ clist_change_tile(gx_device_clist_writer * cldev, gx_clist_state * pcls,
if (band_index > cldev->tile_known_max)
cldev->tile_known_max = band_index;
}
+ if_debug1m('L', cldev->memory,
+ "[L] fake end_run: really set_tile_bits[%d]\n", csize-extra);
*dp = cmd_count_op(cmd_opv_set_tile_bits, csize - extra, cldev->memory);
dp++;
dp = cmd_put_w(loc.index, dp);
@@ -762,68 +764,78 @@ clist_change_bits(gx_device_clist_writer * cldev, gx_clist_state * pcls,
{
tile_loc loc;
int code;
+ uint band_index = pcls - cldev->states;
+ byte bmask = 1 << (band_index & 7);
+ byte *bptr;
- top:if (clist_find_bits(cldev, tiles->id, &loc)) { /* The bitmap is in the cache. Check whether this band */
- /* knows about it. */
- uint band_index = pcls - cldev->states;
- byte *bptr = ts_mask(loc.tile) + (band_index >> 3);
- byte bmask = 1 << (band_index & 7);
+ while (!clist_find_bits(cldev, tiles->id, &loc)) {
+ /* The tile is not in the cache. */
+ code = clist_add_tile(cldev, tiles, tiles->raster, depth);
+ if (code < 0)
+ return code;
+ }
- if (*bptr & bmask) { /* Already known. Just set the index. */
- if (pcls->tile_index == loc.index)
- return 0;
- cmd_put_tile_index(cldev, pcls, loc.index);
- } else { /* Not known yet. Output the bits. */
- /* Note that the offset we write is the one used by */
- /* the reading phase, not the writing phase. */
- ulong offset = (byte *) loc.tile - cldev->cache_chunk->data;
- uint rsize = 2 + cmd_size_w(loc.tile->width) +
- cmd_size_w(loc.tile->height) + cmd_size_w(loc.index) +
- cmd_size_w(offset);
- byte *dp;
- uint csize;
- gx_clist_state *bit_pcls = pcls;
- int code;
- int pdepth = depth;
-
- if (tiles->num_planes != 1)
- pdepth /= loc.tile->num_planes;
- if (loc.tile->num_bands == CHAR_ALL_BANDS_COUNT)
- bit_pcls = NULL;
- /* put the bits, but don't restrict to a single buffer */
- code = cmd_put_bits(cldev, bit_pcls, ts_bits(cldev, loc.tile),
- loc.tile->width * pdepth,
- loc.tile->height * loc.tile->num_planes, loc.tile->cb_raster,
- rsize,
- decompress_elsewhere |
- (cldev->target->BLS_force_memory ? (1 << cmd_compress_cfe) : 0),
- &dp, &csize);
+ /* The bitmap is in the cache. Check whether this band */
+ /* knows about it. */
+ bptr = ts_mask(loc.tile) + (band_index >> 3);
+
+ if (*bptr & bmask) { /* Already known. Just set the index. */
+ if (pcls->tile_index == loc.index)
+ return 0;
+ cmd_put_tile_index(cldev, pcls, loc.index);
+ } else { /* Not known yet. Output the bits. */
+ /* Note that the offset we write is the one used by */
+ /* the reading phase, not the writing phase. */
+ ulong offset = (byte *) loc.tile - cldev->cache_chunk->data;
+ uint rsize = 2 + cmd_size_w(loc.tile->width) +
+ cmd_size_w(loc.tile->height) +
+ (loc.tile->num_planes > 1 ? 1 : 0) +
+ cmd_size_w(loc.index) +
+ cmd_size_w(offset);
+ byte *dp;
+ uint csize;
+ gx_clist_state *bit_pcls = pcls;
+ int pdepth = depth;
+
+ if (tiles->num_planes != 1)
+ pdepth /= loc.tile->num_planes;
+ if (loc.tile->num_bands == CHAR_ALL_BANDS_COUNT)
+ bit_pcls = NULL;
+ /* put the bits, but don't restrict to a single buffer */
+ code = cmd_put_bits(cldev, bit_pcls, ts_bits(cldev, loc.tile),
+ loc.tile->width * pdepth,
+ loc.tile->height * loc.tile->num_planes, loc.tile->raster,
+ rsize,
+ decompress_elsewhere |
+ (cldev->target->BLS_force_memory ? (1 << cmd_compress_cfe) : 0),
+ &dp, &csize);
- if (code < 0)
- return code;
- *dp = cmd_count_op(cmd_opv_set_bits, csize, cldev->memory);
- dp[1] = (depth << 2) + code;
- dp += 2;
- dp = cmd_put_w(loc.tile->width, dp);
- dp = cmd_put_w(loc.tile->height, dp);
- dp = cmd_put_w(loc.index, dp);
- cmd_put_w(offset, dp);
- if (bit_pcls == NULL) {
- memset(ts_mask(loc.tile), 0xff,
- cldev->tile_band_mask_size);
- loc.tile->num_bands = cldev->nbands;
- } else {
- *bptr |= bmask;
- loc.tile->num_bands++;
- }
+ if (code < 0)
+ return code;
+ if_debug1m('L', cldev->memory,
+ "[L] fake end_run: really set_bits[%d]\n", csize);
+ *dp = cmd_count_op(loc.tile->num_planes > 1 ? cmd_opv_set_bits_planar : cmd_opv_set_bits,
+ csize, cldev->memory);
+ dp[1] = (depth << 2) + code;
+ dp += 2;
+ dp = cmd_put_w(loc.tile->width, dp);
+ dp = cmd_put_w(loc.tile->height, dp);
+ if (loc.tile->num_planes > 1)
+ *dp++ = loc.tile->num_planes;
+ dp = cmd_put_w(loc.index, dp);
+ cmd_put_w(offset, dp);
+ if_debug7m('L', cldev->memory, " compress=%d depth=%d size=(%d,%d) planes=%d index=%d offset=%d\n",
+ code, depth, loc.tile->width, loc.tile->height, loc.tile->num_planes, loc.index, offset);
+ if (bit_pcls == NULL) {
+ memset(ts_mask(loc.tile), 0xff,
+ cldev->tile_band_mask_size);
+ loc.tile->num_bands = cldev->nbands;
+ } else {
+ *bptr |= bmask;
+ loc.tile->num_bands++;
}
- pcls->tile_index = loc.index;
- pcls->tile_id = loc.tile->id;
- return 0;
}
- /* The tile is not in the cache. */
- code = clist_add_tile(cldev, tiles, tiles->raster, depth);
- if (code < 0)
- return code;
- goto top;
+ pcls->tile_index = loc.index;
+ pcls->tile_id = loc.tile->id;
+ return 0;
}
diff --git a/base/gxcldev.h b/base/gxcldev.h
index 012c5bf6..66020503 100644
--- a/base/gxcldev.h
+++ b/base/gxcldev.h
@@ -1,4 +1,4 @@
-/* Copyright (C) 2001-2021 Artifex Software, Inc.
+/* Copyright (C) 2001-2022 Artifex Software, Inc.
All Rights Reserved.
This software is provided AS-IS with no warranty, either express or
@@ -73,49 +73,159 @@ int cmd_write_pseudo_band(gx_device_clist_writer *cldev, unsigned char *pbuf,
* and/or previous operands.
*/
typedef enum {
- cmd_op_misc = 0x00, /* (see below) */
- cmd_opv_end_run = 0x00, /* (nothing) */
- cmd_opv_set_tile_size = 0x01, /* rs?(1)nry?(1)nrx?(1)depth(5, encoded), */
- /* rep_width#, rep_height#, */
- /* [, nreps_x#][, nreps_y #] */
- /* [, rep_shift#] */
- cmd_opv_set_tile_phase = 0x02, /* x#, y# */
- cmd_opv_set_tile_bits = 0x03, /* index#, offset#, <bits> */
- cmd_opv_set_bits = 0x04, /* depth*4+compress, width#, height#, */
- /* index#, offset#, <bits> */
- cmd_opv_set_tile_color = 0x05, /* (nothing; next set/delta_color */
- /* refers to tile) */
- cmd_opv_set_misc = 0x06,
-#define cmd_set_misc_lop (0 << 6) /* 00: lop_lsb(6), lop_msb# */
-#define cmd_set_misc_data_x (1 << 6) /* 01: more(1)dx_lsb(5)[, dx_msb#] */
-#define cmd_set_misc_map (2 << 6) /* 10: contents(2)map_index(4) */
- /* [, n x frac] */
-#define cmd_set_misc_halftone (3 << 6) /* 11: type(6), num_comp# */
- cmd_opv_enable_lop = 0x07, /* (nothing) */
- cmd_opv_disable_lop = 0x08, /* (nothing) */
- cmd_opv_end_page = 0x0b, /* (nothing) */
- cmd_opv_delta_color0 = 0x0c, /* See cmd_put_color in gxclutil.c */
- cmd_opv_delta_color1 = 0x0d, /* <<same as color0>> */
- cmd_opv_set_copy_color = 0x0e, /* (nothing) */
- cmd_opv_set_copy_alpha = 0x0f, /* (nothing) */
- cmd_op_set_color0 = 0x10, /* +n = number of low order zero bytes | */
-#define cmd_no_color_index 15 /* +15 = transparent - "no color" */
- cmd_op_set_color1 = 0x20, /* <<same as color0>> */
- cmd_op_fill_rect = 0x30, /* +dy2dh2, x#, w# | +0, rect# */
- cmd_op_fill_rect_short = 0x40, /* +dh, dx, dw | +0, rect_short */
- cmd_op_fill_rect_tiny = 0x50, /* +dw+0, rect_tiny | +dw+8 */
- cmd_op_tile_rect = 0x60, /* +dy2dh2, x#, w# | +0, rect# */
- cmd_op_tile_rect_short = 0x70, /* +dh, dx, dw | +0, rect_short */
- cmd_op_tile_rect_tiny = 0x80, /* +dw+0, rect_tiny | +dw+8 */
- cmd_op_copy_mono_planes = 0x90, /* +compress, plane_height, x#, y#, (w+data_x)#, */
- /* h#, <bits> | */
-#define cmd_copy_use_tile 8 /* +8 (use tile), x#, y# | */
- cmd_op_copy_color_alpha = 0xa0, /* (same as copy_mono, except: */
- /* if color, ignore ht_color; */
- /* if alpha & !use_tile, depth is */
- /* first operand) */
- cmd_op_delta_tile_index = 0xb0, /* +delta+8 */
- cmd_op_set_tile_index = 0xc0 /* +index[11:8], index[7:0] */
+ cmd_op_misc = 0x00, /* (see below) */
+ cmd_opv_end_run = 0x00, /* (nothing) */
+ cmd_opv_set_tile_size = 0x01, /* rs?(1)nry?(1)nrx?(1)depth(5, encoded), */
+ /* rep_width#, rep_height#, */
+ /* [, nreps_x#][, nreps_y #] */
+ /* [, rep_shift#] */
+ cmd_opv_set_tile_phase = 0x02, /* x#, y# */
+ cmd_opv_set_tile_bits = 0x03, /* index#, offset#, <bits> */
+ cmd_opv_set_bits = 0x04, /* depth*4+compress, width#, height#, */
+ /* index#, offset#, <bits> */
+ cmd_opv_set_tile_color = 0x05, /* (nothing; next set/delta_color */
+ /* refers to tile) */
+ cmd_opv_set_misc = 0x06,
+#define cmd_set_misc_lop (0 << 6) /* 00: lop_lsb(6), lop_msb# */
+#define cmd_set_misc_data_x (1 << 6) /* 01: more(1)dx_lsb(5)[, dx_msb#] */
+#define cmd_set_misc_map (2 << 6) /* 10: contents(2)map_index(4) */
+ /* [, n x frac] */
+#define cmd_set_misc_halftone (3 << 6) /* 11: type(6), num_comp# */
+ cmd_opv_enable_lop = 0x07, /* (nothing) */
+ cmd_opv_disable_lop = 0x08, /* (nothing) */
+ cmd_opv_set_screen_phaseT= 0x09, /* x#, y# */
+ cmd_opv_set_screen_phaseS= 0x0a, /* x#, y# */
+ cmd_opv_end_page = 0x0b, /* (nothing) */
+ cmd_opv_delta_color0 = 0x0c, /* See cmd_put_color in gxclutil.c */
+ cmd_opv_delta_color1 = 0x0d, /* <<same as color0>> */
+ cmd_opv_set_copy_color = 0x0e, /* (nothing) */
+ cmd_opv_set_copy_alpha = 0x0f, /* (nothing) */
+ cmd_op_set_color0 = 0x10, /* +n = number of low order zero bytes | */
+#define cmd_no_color_index 15 /* +15 = transparent - "no color" */
+ cmd_op_set_color1 = 0x20, /* <<same as color0>> */
+ cmd_op_fill_rect = 0x30, /* +dy2dh2, x#, w# | +0, rect# */
+ cmd_op_fill_rect_short = 0x40, /* +dh, dx, dw | +0, rect_short */
+ cmd_op_fill_rect_tiny = 0x50, /* +dw+0, rect_tiny | +dw+8 */
+ cmd_op_tile_rect = 0x60, /* +dy2dh2, x#, w# | +0, rect# */
+ cmd_op_tile_rect_short = 0x70, /* +dh, dx, dw | +0, rect_short */
+ cmd_op_tile_rect_tiny = 0x80, /* +dw+0, rect_tiny | +dw+8 */
+ cmd_op_copy_mono_planes = 0x90, /* +compress, plane_height, x#, y#, (w+data_x)#, */
+ /* h#, <bits> | */
+#define cmd_copy_use_tile 8 /* +8 (use tile), x#, y# | */
+ cmd_op_copy_color_alpha = 0xa0, /* (same as copy_mono, except: */
+ /* if color, ignore ht_color; */
+ /* if alpha & !use_tile, depth is */
+ /* first operand) */
+ cmd_op_delta_tile_index = 0xb0, /* +delta+8 */
+ cmd_op_set_tile_index = 0xc0, /* +index[11:8], index[7:0] */
+ cmd_op_misc2 = 0xd0, /* (see below) */
+ cmd_opv_set_bits_planar = 0xd0, /* depth*4+compress, width#, height#, */
+ /* num_planes, index#, offset#, <bits> */
+ cmd_op_fill_rect_hl = 0xd1, /* rect fill with devn color */
+ cmd_opv_set_fill_adjust = 0xd2, /* adjust_x/y(fixed) */
+ cmd_opv_set_ctm = 0xd3, /* [per sput/sget_matrix] */
+ cmd_opv_set_color_space = 0xd4, /* base(4)Indexed?(2)0(2) */
+ /* [, hival#, table|map] */
+ /*
+ * cmd_opv_set_misc2_value is followed by a mask (a variable-length
+ * integer), and then by parameter values for the parameters selected
+ * by the mask. See gxclpath.h for the "known" mask values.
+ */
+ /* cap_join: 0(2)cap(3)join(3) */
+ /* cj_ac_sa: 0(3)curve_join+1(3)acc.curves(1)stroke_adj(1) */
+ /* flatness: (float) */
+ /* line width: (float) */
+ /* miter limit: (float) */
+ /* op_bm_tk: blend mode(5)text knockout(1)o.p.mode(1)o.p.(1) */
+ /* segment notes: (byte) */
+ /* opacity/shape: alpha(float)mask(TBD) */
+ /* alpha: <<verbatim copy from gs_gstate>> */
+ cmd_opv_set_misc2 = 0xd5, /* mask#, selected parameters */
+ cmd_opv_set_dash = 0xd6, /* adapt(1)abs.dot(1)n(6), dot */
+ /* length(float), offset(float), */
+ /* n x (float) */
+ cmd_opv_enable_clip = 0xd7, /* (nothing) */
+ cmd_opv_disable_clip = 0xd8, /* (nothing) */
+ cmd_opv_begin_clip = 0xd9, /* fill_adjust.x#, fill_adjust.y# */
+ cmd_opv_end_clip = 0xda, /* (nothing) */
+ cmd_opv_begin_image_rect = 0xdb, /* same as begin_image, followed by */
+ /* x0#, w-x1#, y0#, h-y1# */
+ cmd_opv_begin_image = 0xdc, /* image_type_table index, */
+ /* [per image type] */
+ cmd_opv_image_data = 0xdd, /* height# (premature EOD if 0), */
+ /* raster#, <data> */
+ cmd_opv_image_plane_data = 0xde, /* height# (premature EOD if 0), */
+ /* flags# (0 = same raster & data_x, */
+ /* 1 = new raster & data_x, lsb first), */
+ /* [raster#, [data_x#,]]* <data> */
+ cmd_opv_extend = 0xdf, /* command, varies (see gx_cmd_ext_op below) */
+
+
+#define cmd_misc2_op_name_strings\
+ "set_bits_planar", "fill_hl_color", \
+ "set_fill_adjust", "set_ctm",\
+ "set_color_space", "set_misc2", "set_dash", "enable_clip",\
+ "disable_clip", "begin_clip", "end_clip", "begin_image_rect",\
+ "begin_image", "image_data", "image_plane_data", "extended"
+
+ cmd_op_segment = 0xe0, /* (see below) */
+ cmd_opv_rmoveto = 0xe0, /* dx%, dy% */
+ cmd_opv_rlineto = 0xe1, /* dx%, dy% */
+ cmd_opv_hlineto = 0xe2, /* dx% */
+ cmd_opv_vlineto = 0xe3, /* dy% */
+ cmd_opv_rmlineto = 0xe4, /* dx1%,dy1%, dx2%,dy2% */
+ cmd_opv_rm2lineto = 0xe5, /* dx1%,dy1%, dx2%,dy2%, dx3%,dy3% */
+ cmd_opv_rm3lineto = 0xe6, /* dx1%,dy1%, dx2%,dy2%, dx3%,dy3%, */
+ /* [-dx2,-dy2 implicit] */
+ cmd_opv_rrcurveto = 0xe7, /* dx1%,dy1%, dx2%,dy2%, dx3%,dy3% */
+ cmd_opv_min_curveto = cmd_opv_rrcurveto,
+ cmd_opv_hvcurveto = 0xe8, /* dx1%, dx2%,dy2%, dy3% */
+ cmd_opv_vhcurveto = 0xe9, /* dy1%, dx2%,dy2%, dx3% */
+ cmd_opv_nrcurveto = 0xea, /* dx2%,dy2%, dx3%,dy3% */
+ cmd_opv_rncurveto = 0xeb, /* dx1%,dy1%, dx2%,dy2% */
+ cmd_opv_vqcurveto = 0xec, /* dy1%, dx2%[,dy2=dx2 with sign */
+ /* of dy1, dx3=dy1 with sign of dx2] */
+ cmd_opv_hqcurveto = 0xed, /* dx1%, [dx2=dy2 with sign */
+ /* of dx1,]%dy2, [dy3=dx1 with sign */
+ /* of dy2] */
+ cmd_opv_scurveto = 0xee, /* all implicit: previous op must have been */
+ /* *curveto with one or more of dx/y1/3 = 0. */
+ /* If h*: -dx3,dy3, -dx2,dy2, -dx1,dy1. */
+ /* If v*: dx3,-dy3, dx2,-dy2, dx1,-dy1. */
+ cmd_opv_max_curveto = cmd_opv_scurveto,
+ cmd_opv_closepath = 0xef, /* (nothing) */
+
+#define cmd_segment_op_name_strings\
+ "rmoveto", "rlineto", "hlineto", "vlineto",\
+ "rmlineto", "rm2lineto", "rm3lineto", "rrcurveto",\
+ "hvcurveto", "vhcurveto", "nrcurveto", "rncurveto",\
+ "vqcurveto", "hqcurveto", "scurveto", "closepath"
+
+ cmd_op_path = 0xf0, /* (see below) */
+ cmd_opv_fill = 0xf0,
+ cmd_opv_rgapto = 0xf1, /* dx%, dy% */
+ /* UNUSED 0xf2 */
+ cmd_opv_eofill = 0xf3,
+ cmd_opv_fill_stroke = 0xf4,
+ cmd_opv_eofill_stroke = 0xf5,
+ cmd_opv_stroke = 0xf6,
+ /* UNUSED 0xf7 */
+ /* UNUSED 0xf8 */
+ cmd_opv_polyfill = 0xf9,
+ /* UNUSED 0xfa */
+ /* UNUSED 0xfb */
+ cmd_opv_fill_trapezoid = 0xfc
+ /* UNUSED 0xfd */
+ /* UNUSED 0xfe */
+ /* UNUSED 0xff */
+
+#define cmd_path_op_name_strings\
+ "fill", "rgapto", "?f2?", "eofill",\
+ "fill_stroke", "eofill_stroke", "stroke", "?f7?",\
+ "?f8?", "polyfill", "?fa?", "?fb?",\
+ "fill_trapezoid", "?fd?", "?fe?", "?ff?"
+
+/* unused cmd_op values: 0xf2, 0xf7, 0xf8, 0xfa, 0xfb, 0xfd, 0xfe, 0xff */
} gx_cmd_op;
#define cmd_op_name_strings\
@@ -127,7 +237,7 @@ typedef enum {
#define cmd_misc_op_name_strings\
"end_run", "set_tile_size", "set_tile_phase", "set_tile_bits",\
"set_bits", "set_tile_color", "set_misc", "enable_lop",\
- "disable_lop", "invalid", "invalid", "end_page",\
+ "disable_lop", "set_screen_phaseT", "set_screen_phaseS", "end_page",\
"delta2_color0", "delta2_color1", "set_copy_color", "set_copy_alpha",
#ifdef DEBUG
@@ -262,6 +372,7 @@ struct gx_clist_state_s {
((tile_slot *)(cldev->data + offset_temp))->id == (tid))
gs_id pattern_id; /* the last stored pattern id. */
gs_int_point tile_phase; /* most recent tile phase */
+ gs_int_point screen_phase[2]; /* most recent screen phase */
gx_color_index tile_colors[2]; /* most recent tile colors */
gx_device_color tile_color_devn[2]; /* devn tile colors */
gx_cmd_rect rect; /* most recent rectangle */
@@ -291,7 +402,7 @@ struct gx_clist_state_s {
{ gx_no_color_index, gx_no_color_index },\
{ gx_dc_type_none },\
0, gx_no_bitmap_id, gs_no_id,\
- { 0, 0 }, { gx_no_color_index, gx_no_color_index },\
+ { 0, 0 }, { {0, 0}, {0, 0}}, { gx_no_color_index, gx_no_color_index },\
{ {NULL}, {NULL} },\
{ 0, 0, 0, 0 }, lop_default, 0, 0, 0, 0, initial_known,\
{ 0, 0 }, /* cmd_list */\
@@ -349,13 +460,17 @@ dev_proc_get_bits_rectangle(clist_get_bits_rectangle);
int cmd_put_params(gx_device_clist_writer *, gs_param_list *);
/* Conditionally keep command statistics. */
-#if defined(DEBUG) && !defined(GS_THREADSAFE)
+/* #define COLLECT_STATS_CLIST */
+
+#ifdef COLLECT_STATS_CLIST
int cmd_count_op(int op, uint size, const gs_memory_t *mem);
+int cmd_count_extended_op(int op, uint size, const gs_memory_t *mem);
void cmd_uncount_op(int op, uint size);
void cmd_print_stats(const gs_memory_t *);
# define cmd_count_add1(v) (v++)
#else
# define cmd_count_op(op, size, mem) (op)
+# define cmd_count_extended_op(op, size, mem) (op)
# define cmd_uncount_op(op, size) DO_NOTHING
# define cmd_count_add1(v) DO_NOTHING
#endif
@@ -364,36 +479,105 @@ void cmd_print_stats(const gs_memory_t *);
/* and allocate space for its data. */
byte *cmd_put_list_op(gx_device_clist_writer * cldev, cmd_list * pcl, uint size);
+/* Add a extended op command to the appropriate band list, */
+/* and allocate space for its data. */
+byte *cmd_put_list_extended_op(gx_device_clist_writer * cldev, cmd_list * pcl, int op, uint size);
+
/* Request a space in the buffer.
Writes out the buffer if necessary.
Returns the size of available space. */
int cmd_get_buffer_space(gx_device_clist_writer * cldev, gx_clist_state * pcls, uint size);
#ifdef DEBUG
+void clist_debug_op(gs_memory_t *mem, const unsigned char *op_ptr);
byte *cmd_put_op(gx_device_clist_writer * cldev, gx_clist_state * pcls, uint size);
#else
+#define clist_debug_op(mem, op) do { } while (0)
# define cmd_put_op(cldev, pcls, size)\
cmd_put_list_op(cldev, &(pcls)->list, size)
+# define cmd_put_extended_op(cldev, pcls, op, size)\
+ cmd_put_list_extended_op(cldev, &(pcls)->list, op, size)
#endif
/* Call cmd_put_op and update stats if no error occurs. */
-#define set_cmd_put_op(dp, cldev, pcls, op, csize)\
- ( (*dp = cmd_put_op(cldev, pcls, csize)) == NULL ?\
- (cldev)->error_code :\
- (**dp = cmd_count_op(op, csize, cldev->memory), 0) )
+static inline int
+set_cmd_put_op(byte **dp, gx_device_clist_writer * cldev,
+ gx_clist_state * pcls, int op, uint csize)
+{
+ *dp = cmd_put_op(cldev, pcls, csize);
+
+ if (*dp == NULL)
+ return (cldev)->error_code;
+ **dp = cmd_count_op(op, csize, cldev->memory);
+
+ if (gs_debug_c('L')) {
+ clist_debug_op(cldev->memory, *dp);
+ dmlprintf1(cldev->memory, "[%u]\n", csize);
+ }
+
+ return 0;
+}
+/* Call cmd_put_extended_op and update stats if no error occurs. */
+static inline int
+set_cmd_put_extended_op(byte **dp, gx_device_clist_writer * cldev,
+ gx_clist_state * pcls, int op, uint csize)
+{
+ *dp = cmd_put_op(cldev, pcls, csize);
+
+ if (*dp == NULL)
+ return (cldev)->error_code;
+ **dp = cmd_opv_extend;
+ (*dp)[1] = cmd_count_extended_op(op, csize, cldev->memory);
+
+ if (gs_debug_c('L')) {
+ clist_debug_op(cldev->memory, *dp);
+ dmlprintf1(cldev->memory, "[%u]\n", csize);
+ }
+
+ return 0;
+}
/* Add a command for all bands or a range of bands. */
byte *cmd_put_range_op(gx_device_clist_writer * cldev, int band_min,
int band_max, uint size);
-#define cmd_put_all_op(cldev, size)\
- cmd_put_range_op(cldev, 0, (cldev)->nbands - 1, size)
/* Call cmd_put_all/range_op and update stats if no error occurs. */
-#define set_cmd_put_range_op(dp, cldev, op, bmin, bmax, csize)\
- ( (*dp = cmd_put_range_op(cldev, bmin, bmax, csize)) == NULL ?\
- (cldev)->error_code :\
- (**dp = cmd_count_op(op, csize, (cldev)->memory), 0) )
+static inline int
+set_cmd_put_range_op(byte **dp, gx_device_clist_writer * cldev,
+ int op, int bmin, int bmax, uint csize)
+{
+ *dp = cmd_put_range_op(cldev, bmin, bmax, csize);
+ if (*dp == NULL)
+ return (cldev)->error_code;
+ **dp = cmd_count_op(op, csize, (cldev)->memory);
+
+ if (gs_debug_c('L')) {
+ clist_debug_op(cldev->memory, *dp);
+ dmlprintf1(cldev->memory, "[%u]\n", csize);
+ }
+
+ return 0;
+}
#define set_cmd_put_all_op(dp, cldev, op, csize)\
set_cmd_put_range_op(dp, cldev, op, 0, (cldev)->nbands - 1, csize)
+static inline int
+set_cmd_put_range_extended_op(byte **dp, gx_device_clist_writer * cldev,
+ int op, int bmin, int bmax, uint csize)
+{
+ *dp = cmd_put_range_op(cldev, bmin, bmax, csize);
+ if (*dp == NULL)
+ return (cldev)->error_code;
+ **dp = cmd_opv_extend;
+ (*dp)[1] = cmd_count_extended_op(op, csize, (cldev)->memory);
+
+ if (gs_debug_c('L')) {
+ clist_debug_op(cldev->memory, *dp);
+ dmlprintf1(cldev->memory, "[%u]\n", csize);
+ }
+
+ return 0;
+}
+#define set_cmd_put_all_extended_op(dp, cldev, op, csize)\
+ set_cmd_put_range_extended_op(dp, cldev, op, 0, (cldev)->nbands - 1, csize)
/* Shorten the last allocated command. */
/* Note that this does not adjust the statistics. */
@@ -475,6 +659,13 @@ cmd_set_tile_phase_generic(gx_device_clist_writer * cldev, gx_clist_state * pcls
int px, int py, bool all_bands);
int cmd_set_tile_phase(gx_device_clist_writer *cldev, gx_clist_state * pcls,
int px, int py);
+/* Put out a command to set the screen phase. */
+int
+cmd_set_screen_phase_generic(gx_device_clist_writer * cldev, gx_clist_state * pcls,
+ int px, int py, gs_color_select_t color_select, bool all_bands);
+int
+cmd_set_screen_phase(gx_device_clist_writer * cldev, gx_clist_state * pcls,
+ int px, int py, gs_color_select_t color_select);
/* Enable or disable the logical operation. */
int cmd_put_enable_lop(gx_device_clist_writer *, gx_clist_state *, int);
@@ -679,7 +870,10 @@ int clist_playback_file_bands(clist_playback_action action,
int band_first, int band_last, int x0, int y0);
#ifdef DEBUG
int64_t clist_file_offset(const stream_state *st, uint buffer_offset);
-int top_up_offset_map(stream_state * st, const byte *buf, const byte *ptr, const byte *end);
+void top_up_offset_map(stream_state * st, const byte *buf, const byte *ptr, const byte *end);
+void offset_map_next_data_out_of_band(stream_state *st);
+void clist_debug_op(gs_memory_t *mem, const unsigned char *op_ptr);
+void adjust_offset_map_for_skipped_data(stream_state *st, uint buffer_offset, uint skipped);
#endif
int clist_writer_push_no_cropping(gx_device_clist_writer *cdev);
diff --git a/base/gxclfile.c b/base/gxclfile.c
index f03646ec..f59aed21 100644
--- a/base/gxclfile.c
+++ b/base/gxclfile.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 2001-2021 Artifex Software, Inc.
+/* Copyright (C) 2001-2022 Artifex Software, Inc.
All Rights Reserved.
This software is provided AS-IS with no warranty, either express or
@@ -234,7 +234,7 @@ typedef struct
static void
file_to_fake_path(clist_file_ptr file, char fname[gp_file_name_sizeof])
{
- gs_sprintf(fname, ENC_FILE_STR, file);
+ gs_snprintf(fname, gp_file_name_sizeof, ENC_FILE_STR, file);
}
static clist_file_ptr
@@ -532,7 +532,10 @@ clist_fseek(clist_file_ptr cf, int64_t offset, int mode, const char *ignore_fnam
res = gp_fseek(ifile->f, offset, mode);
}
/* NB: if gp_can_share_fdesc, we don't actually seek */
- if (res >= 0) {
+ /* The following lgtm tag is required because on some platforms
+ * !gp_can_share_fdesc() is always true, so the value of res is
+ * known. On other platforms though, this is NOT true. */
+ if (res >= 0) { /* lgtm [cpp/constant-comparison] */
/* Update the ifile->pos */
switch (mode) {
case SEEK_SET:
@@ -566,9 +569,10 @@ init_proc(gs_gxclfile_init);
int
gs_gxclfile_init(gs_memory_t *mem)
{
+ gs_lib_ctx_core_t *core = mem->gs_lib_ctx->core;
#ifdef PACIFY_VALGRIND
- VALGRIND_HG_DISABLE_CHECKING(&clist_io_procs_file_global, sizeof(clist_io_procs_file_global));
+ VALGRIND_HG_DISABLE_CHECKING(&core->clist_io_procs_file, sizeof(core->clist_io_procs_file));
#endif
- clist_io_procs_file_global = &clist_io_procs_file;
+ core->clist_io_procs_file = &clist_io_procs_file;
return 0;
}
diff --git a/base/gxclimag.c b/base/gxclimag.c
index 3958e372..4f99e481 100644
--- a/base/gxclimag.c
+++ b/base/gxclimag.c
@@ -303,6 +303,7 @@ typedef struct clist_image_enum_s {
int bits_per_plane; /* bits per pixel per plane */
gs_matrix matrix; /* image space -> device space */
bool uses_color;
+ bool masked;
clist_color_space_t color_space;
int ymin, ymax;
gx_color_usage_t color_usage;
@@ -514,6 +515,7 @@ clist_begin_typed_image(gx_device * dev, const gs_gstate * pgs,
#endif
pie->memory = mem;
pie->buffer = NULL;
+ pie->masked = masked;
*pinfo = (gx_image_enum_common_t *) pie;
/* num_planes and plane_depths[] are set later, */
/* by gx_image_enum_common_init. */
@@ -1129,9 +1131,9 @@ clist_image_plane_data(gx_image_enum_common_t * info,
code = cmd_update_lop(cdev, re.pcls, lop);
if (code < 0)
return code;
+ /* Does the result of this image depend upon the current color in the
+ * graphics state? If so, we need to send it. */
if (pie->uses_color) {
- gs_int_point color_phase;
-
/* We want to write the color taking into account the entire image so */
/* we set re.rect_nbands from pie->ymin and pie->ymax so that we will */
/* make the decision to write 'all_bands' the same for the whole image */
@@ -1143,13 +1145,37 @@ clist_image_plane_data(gx_image_enum_common_t * info,
&re, devn_not_tile_fill);
if (code < 0)
return code;
- /* see if phase informaiton must be inserted in the command list */
- /* if so, go ahead and do it for all_bands */
- if ( pie->dcolor.type->get_phase(&pie->dcolor, &color_phase) &&
- (color_phase.x != re.pcls->tile_phase.x ||
- color_phase.y != re.pcls->tile_phase.y ) &&
- (code = cmd_set_tile_phase_generic(cdev, re.pcls,
- color_phase.x, color_phase.y, true)) < 0 )
+ if (!pie->masked) {
+ /* In PS and PDF, masked == uses_color. In PCL, due to rops, we can
+ * have a non-imagemask image that relies on the current graphics
+ * color. C303.BIN page 20 has an example of this. Normally the above
+ * call the cmd_put_drawing_color will have sent through the halftone
+ * phase, but we can be in the situation where the current drawing
+ * color is pure (so no phase is sent), but the colors in the image
+ * are not (so a phase must be sent). Accordingly, we catch that
+ * here. */
+ if (pie->pgs->screen_phase[gs_color_select_texture].x != re.pcls->screen_phase[gs_color_select_texture].x ||
+ pie->pgs->screen_phase[gs_color_select_texture].y != re.pcls->screen_phase[gs_color_select_texture].y) {
+ code = cmd_set_screen_phase_generic(cdev, re.pcls,
+ pie->pgs->screen_phase[gs_color_select_texture].x,
+ pie->pgs->screen_phase[gs_color_select_texture].y,
+ gs_color_select_texture, true);
+ if (code < 0)
+ return code;
+ }
+ if (pie->pgs->screen_phase[gs_color_select_source].x != re.pcls->screen_phase[gs_color_select_source].x ||
+ pie->pgs->screen_phase[gs_color_select_source].y != re.pcls->screen_phase[gs_color_select_source].y) {
+ code = cmd_set_screen_phase_generic(cdev, re.pcls,
+ pie->pgs->screen_phase[gs_color_select_source].x,
+ pie->pgs->screen_phase[gs_color_select_source].y,
+ gs_color_select_source, true);
+ if (code < 0)
+ return code;
+ }
+ }
+ } else if (0 != re.pcls->tile_phase.x || 0 != re.pcls->tile_phase.y) {
+ code = cmd_set_tile_phase(cdev, re.pcls, 0, 0);
+ if (code < 0)
return code;
}
if (entire_box.p.x != 0 || entire_box.p.y != 0 ||
@@ -1367,15 +1393,14 @@ clist_composite(gx_device * dev,
if (cropping_op == ALLBANDS) {
/* overprint applies to all bands */
size_dummy = size;
- code = set_cmd_put_all_op(& dp,
+ code = set_cmd_put_all_extended_op(& dp,
(gx_device_clist_writer *)dev,
- cmd_opv_extend,
+ cmd_opv_ext_composite,
size );
if (code < 0)
return code;
- /* insert the command and compositor identifier */
- dp[1] = cmd_opv_ext_composite;
+ /* insert the compositor identifier */
dp[2] = pcte->type->comp_id;
/* serialize the remainder of the compositor */
@@ -1413,10 +1438,9 @@ clist_composite(gx_device * dev,
RECT_ENUM_INIT(re, temp_cropping_min, temp_cropping_max - temp_cropping_min);
do {
RECT_STEP_INIT(re);
- code = set_cmd_put_op(&dp, cdev, re.pcls, cmd_opv_extend, size);
+ code = set_cmd_put_extended_op(&dp, cdev, re.pcls, cmd_opv_ext_composite, size);
if (code >= 0) {
size_dummy = size;
- dp[1] = cmd_opv_ext_composite;
dp[2] = pcte->type->comp_id;
code = pcte->type->procs.write(pcte, dp + 3, &size_dummy, cdev);
}
@@ -1502,9 +1526,8 @@ cmd_put_halftone(gx_device_clist_writer * cldev, const gx_device_halftone * pdht
req_size = 2 + enc_u_sizew(ht_size);
/* output the "put halftone" command */
- if ((code = set_cmd_put_all_op(&dp, cldev, cmd_opv_extend, req_size)) < 0)
+ if ((code = set_cmd_put_all_extended_op(&dp, cldev, cmd_opv_ext_put_halftone, req_size)) < 0)
return code;
- dp[1] = cmd_opv_ext_put_halftone;
dp += 2;
enc_u_putw(ht_size, dp);
@@ -1518,11 +1541,10 @@ cmd_put_halftone(gx_device_clist_writer * cldev, const gx_device_halftone * pdht
} else {
/* send the only segment command */
req_size += ht_size;
- code = set_cmd_put_all_op(&dp, cldev, cmd_opv_extend, req_size);
+ code = set_cmd_put_all_extended_op(&dp, cldev, cmd_opv_ext_put_ht_seg, req_size);
if (code < 0)
return code;
dp0 = dp;
- dp[1] = cmd_opv_ext_put_ht_seg;
dp += 2;
enc_u_putw(ht_size, dp);
pht_buff = dp;
@@ -1559,9 +1581,8 @@ cmd_put_halftone(gx_device_clist_writer * cldev, const gx_device_halftone * pdht
seg_size = ( ht_size > cbuf_ht_seg_max_size ? cbuf_ht_seg_max_size
: ht_size );
tmp_size = 2 + enc_u_sizew(seg_size) + seg_size;
- code = set_cmd_put_all_op(&dp, cldev, cmd_opv_extend, tmp_size);
+ code = set_cmd_put_all_extended_op(&dp, cldev, cmd_opv_ext_put_ht_seg, tmp_size);
if (code >= 0) {
- dp[1] = cmd_opv_ext_put_ht_seg;
dp += 2;
enc_u_putw(seg_size, dp);
memcpy(dp, pbuff, seg_size);
@@ -1587,8 +1608,8 @@ cmd_put_color_mapping(gx_device_clist_writer * cldev,
int code;
const gx_device_halftone *pdht = gx_select_dev_ht(pgs);
- /* Put out the halftone, if present. */
- if (pdht && pdht->id != cldev->device_halftone_id) {
+ /* Put out the halftone, if present, and target is not contone. */
+ if (pdht && pdht->id != cldev->device_halftone_id && !device_is_contone(cldev->target)) {
code = cmd_put_halftone(cldev, pdht);
if (code < 0)
return code;
diff --git a/base/gxclio.h b/base/gxclio.h
index 8dcb8308..16193308 100644
--- a/base/gxclio.h
+++ b/base/gxclio.h
@@ -1,4 +1,4 @@
-/* Copyright (C) 2001-2021 Artifex Software, Inc.
+/* Copyright (C) 2001-2022 Artifex Software, Inc.
All Rights Reserved.
This software is provided AS-IS with no warranty, either express or
@@ -92,7 +92,4 @@ struct clist_io_procs_s {
typedef struct clist_io_procs_s clist_io_procs_t;
-extern const clist_io_procs_t *clist_io_procs_file_global;
-extern const clist_io_procs_t *clist_io_procs_memory_global;
-
#endif /* gxclio_INCLUDED */
diff --git a/base/gxclip.c b/base/gxclip.c
index 3cad4695..d29a8783 100644
--- a/base/gxclip.c
+++ b/base/gxclip.c
@@ -202,7 +202,9 @@ gx_make_clip_device_in_heap(gx_device_clip *dev,
(void)(*dev_proc(dev, open_device)) ((gx_device *)dev);
}
/* Define debugging statistics for the clipping loops. */
-#if defined(DEBUG) && !defined(GS_THREADSAFE)
+/* #define COLLECT_STATS_CLIP */
+
+#ifdef COLLECT_STATS_CLIP
struct stats_clip_s {
long
loops, out, in_y, in, in1, down, up, x, no_x;
@@ -234,7 +236,7 @@ clip_enumerate_rest(gx_device_clip * rdev,
int yc;
int code;
-#if defined(DEBUG) && !defined(GS_THREADSAFE)
+#ifdef COLLECT_STATS_CLIP
if (INCR(loops) % clip_interval == 0 && gs_debug_c('q')) {
dmprintf5(rdev->memory,
"[q]loops=%ld out=%ld in_y=%ld in=%ld in1=%ld\n",
diff --git a/base/gxclip2.c b/base/gxclip2.c
index ef3eb5b3..86577bca 100644
--- a/base/gxclip2.c
+++ b/base/gxclip2.c
@@ -253,12 +253,12 @@ tile_clip_copy_mono(gx_device * dev,
} END
#define FOR_RUNS(data_row, tx1, tx, ty)\
const byte *data_row = data;\
- int cy = (y + cdev->phase.y) % cdev->tiles.rep_height;\
+ int cy = imod(y + cdev->phase.y, cdev->tiles.rep_height);\
const byte *tile_row = cdev->tiles.data + cy * cdev->tiles.raster;\
int ty;\
\
for ( ty = y; ty < y + h; ty++, data_row += raster ) {\
- int cx = (x + x_offset(ty, cdev)) % cdev->tiles.rep_width;\
+ int cx = imod(x + x_offset(ty, cdev), cdev->tiles.rep_width);\
const byte *tp = tile_row + (cx >> 3);\
byte tbit = 0x80 >> (cx & 7);\
int tx;\
diff --git a/base/gxclist.c b/base/gxclist.c
index a3b3ccb3..3b778f53 100644
--- a/base/gxclist.c
+++ b/base/gxclist.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 2001-2021 Artifex Software, Inc.
+/* Copyright (C) 2001-2022 Artifex Software, Inc.
All Rights Reserved.
This software is provided AS-IS with no warranty, either express or
@@ -178,26 +178,25 @@ clist_initialize_device_procs(gx_device *dev)
/*------------------- Choose the implementation -----------------------
- For choosing the clist i/o implementation by makefile options
- we define global variables, which are initialized with
- file/memory io procs when they are included into the build.
- */
-const clist_io_procs_t *clist_io_procs_file_global = NULL;
-const clist_io_procs_t *clist_io_procs_memory_global = NULL;
-
+ For choosing the clist i/o implementation by makefile options we
+ define global variables (in gs_lib_ctx_core_t), which are
+ initialized with file/memory io procs when they are included into
+ the build.
+*/
void
clist_init_io_procs(gx_device_clist *pclist_dev, bool in_memory)
{
+ gs_lib_ctx_core_t *core = pclist_dev->common.memory->gs_lib_ctx->core;
#ifdef PACIFY_VALGRIND
- VALGRIND_HG_DISABLE_CHECKING(&clist_io_procs_file_global, sizeof(clist_io_procs_file_global));
- VALGRIND_HG_DISABLE_CHECKING(&clist_io_procs_memory_global, sizeof(clist_io_procs_memory_global));
+ VALGRIND_HG_DISABLE_CHECKING(&core->clist_io_procs_file, sizeof(core->clist_io_procs_file));
+ VALGRIND_HG_DISABLE_CHECKING(&core->clist_io_procs_memory, sizeof(core->clist_io_procs_memory));
#endif
- /* if clist_io_procs_file_global is NULL, then BAND_LIST_STORAGE=memory */
+ /* if core->clist_io_procs_file is NULL, then BAND_LIST_STORAGE=memory */
/* was specified in the build, and "file" is not available */
- if (in_memory || clist_io_procs_file_global == NULL)
- pclist_dev->common.page_info.io_procs = clist_io_procs_memory_global;
+ if (in_memory || core->clist_io_procs_file == NULL)
+ pclist_dev->common.page_info.io_procs = core->clist_io_procs_memory;
else
- pclist_dev->common.page_info.io_procs = clist_io_procs_file_global;
+ pclist_dev->common.page_info.io_procs = core->clist_io_procs_file;
}
/* ------ Define the command set and syntax ------ */
@@ -517,6 +516,8 @@ clist_reset(gx_device * dev)
cdev->band_range_list->head = cdev->band_range_list->tail = 0;
cdev->band_range_min = 0;
cdev->band_range_max = nbands - 1;
+ if_debug2m('L', cdev->memory, "[L]Resetting: Band range(%d,%d)\n",
+ cdev->band_range_min, cdev->band_range_max);
{
int band;
gx_clist_state *states = cdev->states;
@@ -845,6 +846,8 @@ clist_end_page(gx_device_clist_writer * cldev)
memset(&cb, 0, sizeof(cb)); /* Zero the block, including any padding */
cb.band_min = cb.band_max = cmd_band_end;
cb.pos = (cldev->page_cfile == 0 ? 0 : cldev->page_info.io_procs->ftell(cldev->page_cfile));
+ if_debug3m('l', cldev->memory, "[l]writing end for bands (%d,%d) at %"PRId64"\n",
+ cb.band_min, cb.band_max, cb.pos);
code = cldev->page_info.io_procs->fwrite_chars(&cb, sizeof(cb), cldev->page_bfile);
if (code > 0)
code = 0;
@@ -900,7 +903,7 @@ gx_color_index2usage(gx_device *dev, gx_color_index color)
for (i = 0; i < dev->color_info.num_components; i++) {
if (color & dev->color_info.comp_mask[i])
- bits |= (1<<i);
+ bits |= (((gx_color_usage_bits)1) << i);
}
return bits;
}
diff --git a/base/gxclmem.c b/base/gxclmem.c
index 832d1204..1905a43c 100644
--- a/base/gxclmem.c
+++ b/base/gxclmem.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 2001-2021 Artifex Software, Inc.
+/* Copyright (C) 2001-2022 Artifex Software, Inc.
All Rights Reserved.
This software is provided AS-IS with no warranty, either express or
@@ -400,7 +400,7 @@ memfile_fopen(char fname[gp_file_name_sizeof], const char *fmode,
/* Return the address of this memfile as a string for use in future clist_fopen calls */
fname[0] = 0xff; /* a flag that this is a memfile name */
- gs_sprintf(fname+1, "%p", f);
+ gs_snprintf(fname+1, gp_file_name_sizeof-1, "%p", f);
#ifdef DEBUG
tot_compressed = 0;
@@ -1007,11 +1007,12 @@ memfile_fread_chars(void *data, uint len, clist_file_ptr cf)
{
char *str = (char *)data;
MEMFILE *f = (MEMFILE *) cf;
- uint count = len, num_read, move_count;
+ uint count = len, move_count;
+ int64_t num_read;
num_read = f->log_length - f->log_curr_pos;
- if (count > num_read)
- count = num_read;
+ if ((int64_t)count > num_read)
+ count = (int)num_read;
num_read = count;
while (count) {
@@ -1266,9 +1267,10 @@ init_proc(gs_gxclmem_init);
int
gs_gxclmem_init(gs_memory_t *mem)
{
+ gs_lib_ctx_core_t *core = mem->gs_lib_ctx->core;
#ifdef PACIFY_VALGRIND
- VALGRIND_HG_DISABLE_CHECKING(&clist_io_procs_memory_global, sizeof(clist_io_procs_memory_global));
+ VALGRIND_HG_DISABLE_CHECKING(&core->clist_io_procs_memory, sizeof(core->clist_io_procs_memory));
#endif
- clist_io_procs_memory_global = &clist_io_procs_memory;
+ core->clist_io_procs_memory = &clist_io_procs_memory;
return 0;
}
diff --git a/base/gxclpage.c b/base/gxclpage.c
index 0e358da3..37e6d219 100644
--- a/base/gxclpage.c
+++ b/base/gxclpage.c
@@ -781,7 +781,7 @@ gx_saved_pages_list_print(gx_device_printer *pdev, gx_saved_pages_list *list,
break;
curr_elem = curr_elem->prev;
/* Below is not needed since we never print reverse even/odd */
- if (page_skip < -1)
+ if (page_skip < -1) /* lgtm [cpp/constant-comparison] */
curr_elem = curr_elem->prev;
}
if (curr_elem == NULL) {
diff --git a/base/gxclpath.c b/base/gxclpath.c
index 5c757e36..c202178c 100644
--- a/base/gxclpath.c
+++ b/base/gxclpath.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 2001-2021 Artifex Software, Inc.
+/* Copyright (C) 2001-2022 Artifex Software, Inc.
All Rights Reserved.
This software is provided AS-IS with no warranty, either express or
@@ -37,7 +37,7 @@
#include "gxdevsop.h"
/* Statistics */
-#if defined(DEBUG) && !defined(GS_THREADSAFE)
+#ifdef COLLECT_STATS_CLIST
ulong stats_cmd_diffs[5];
#endif
@@ -175,15 +175,17 @@ cmd_put_drawing_color(gx_device_clist_writer * cldev, gx_clist_state * pcls,
left = dc_size;
CMD_CHECK_LAST_OP_BLOCK_DEFINED(cldev);
- /* see if phase informaiton must be inserted in the command list */
- if ( pdcolor->type->get_phase(pdcolor, &color_phase) &&
- (color_phase.x != pcls->tile_phase.x ||
- color_phase.y != pcls->tile_phase.y || all_bands) &&
- (code = cmd_set_tile_phase_generic( cldev,
- pcls,
- color_phase.x,
- color_phase.y, all_bands)) < 0 )
- return code;
+ /* see if phase information must be inserted in the command list */
+ if (pdcolor->type->get_phase(pdcolor, &color_phase) &&
+ (color_phase.x != pcls->screen_phase[gs_color_select_texture].x ||
+ color_phase.y != pcls->screen_phase[gs_color_select_texture].y || all_bands)) {
+ /* Devc phase is the reverse of screen phase! */
+ code = cmd_set_screen_phase_generic(cldev, pcls,
+ -color_phase.x, -color_phase.y,
+ gs_color_select_texture, all_bands);
+ if (code < 0)
+ return code;
+ }
CMD_CHECK_LAST_OP_BLOCK_DEFINED(cldev);
if (is_pattern) {
@@ -200,6 +202,7 @@ cmd_put_drawing_color(gx_device_clist_writer * cldev, gx_clist_state * pcls,
}
do {
+ int extop;
prefix_size = 2 + 1 + (offset > 0 ? enc_u_sizew(offset) : 0);
req_size = left + prefix_size + enc_u_sizew(left);
CMD_CHECK_LAST_OP_BLOCK_DEFINED(cldev);
@@ -212,29 +215,29 @@ cmd_put_drawing_color(gx_device_clist_writer * cldev, gx_clist_state * pcls,
if (req_size_final > buffer_space)
return_error(gs_error_unregistered); /* Must not happen. */
CMD_CHECK_LAST_OP_BLOCK_DEFINED(cldev);
- if (all_bands)
- code = set_cmd_put_all_op(&dp, cldev, cmd_opv_extend, req_size_final);
- else
- code = set_cmd_put_op(&dp, cldev, pcls, cmd_opv_extend, req_size_final);
- if (code < 0)
- return code;
- dp0 = dp;
switch (devn_type) {
case devn_not_tile_fill:
- dp[1] = cmd_opv_ext_put_fill_dcolor;
+ extop = cmd_opv_ext_put_fill_dcolor;
break;
case devn_not_tile_stroke:
- dp[1] = cmd_opv_ext_put_stroke_dcolor;
+ extop = cmd_opv_ext_put_stroke_dcolor;
break;
case devn_tile0:
- dp[1] = cmd_opv_ext_put_tile_devn_color0;
+ extop = cmd_opv_ext_put_tile_devn_color0;
break;
case devn_tile1:
- dp[1] = cmd_opv_ext_put_tile_devn_color1;
+ extop = cmd_opv_ext_put_tile_devn_color1;
break;
default:
- dp[1] = cmd_opv_ext_put_fill_dcolor;
+ extop = cmd_opv_ext_put_fill_dcolor;
}
+ if (all_bands)
+ code = set_cmd_put_all_extended_op(&dp, cldev, extop, req_size_final);
+ else
+ code = set_cmd_put_extended_op(&dp, cldev, pcls, extop, req_size_final);
+ if (code < 0)
+ return code;
+ dp0 = dp;
dp += 2;
*dp++ = di | (offset > 0 ? 0x80 : 0);
if (offset > 0)
@@ -597,56 +600,99 @@ cmd_write_unknown(gx_device_clist_writer * cldev, gx_clist_state * pcls,
int ymin = (pcls - cldev->states) * band_height;
int ymax = min(ymin + band_height, cldev->height);
gs_fixed_rect box;
- bool punt_to_outer_box = false;
int code;
+ int fill_adjust_size;
+ enum {
+ write_path_as_rect = 0,
+ write_path_as_rects = 1,
+ write_path_as_outer_box = 2,
+ write_path_as_path = 3
+ } method;
+
+ /* We are going to begin_clip followed by the fill_adjust to use.
+ * In order to know what fill_adjust to use, we need to know whether
+ * we are going to send the clip through based upon its actual
+ * 'path' entry, or whether we are going to send it based upon its
+ * rectangle list representation. Accordingly, we have to do the
+ * logic to figure out how we are going to send it now. */
+ if (pcpath->path_valid) {
+ if (gx_path_is_rectangle(&pcpath->path, &box) &&
+ fixed_is_int(box.p.x | box.p.y | box.q.x | box.q.y))
+ method = write_path_as_rect;
+ else if ( !(cldev->disable_mask & clist_disable_complex_clip) )
+ method = write_path_as_path;
+ else
+ method = write_path_as_outer_box;
+ } else {
+ const gx_clip_list *list = gx_cpath_list(pcpath);
+ const gx_clip_rect *prect = list->head;
+
+ if (prect != NULL &&
+ cldev->disable_mask & clist_disable_complex_clip)
+ method = write_path_as_outer_box;
+ else
+ method = write_path_as_rects;
+ }
+
+ /* And thus how large the fill_adjust values will be. */
+ if (method == write_path_as_path)
+ fill_adjust_size = cmd_size2w(pcpath->path_fill_adjust.x,
+ pcpath->path_fill_adjust.y);
+ else
+ fill_adjust_size = cmd_size2w(0, 0);
- code = set_cmd_put_op(&dp, cldev, pcls, cmd_opv_begin_clip, 1);
+ /* Send the 'begin_clip' with the fill_adjust values. */
+ code = set_cmd_put_op(&dp, cldev, pcls, cmd_opv_begin_clip, 1+fill_adjust_size);
if (code < 0)
return code;
- if (pcpath->path_valid) {
- if (gx_path_is_rectangle(&pcpath->path, &box) &&
- fixed_is_int(box.p.x | box.p.y | box.q.x | box.q.y)
- ) {
- /* Write the path as a rectangle. */
- code = cmd_write_rect_cmd(cldev, pcls, cmd_op_fill_rect,
- fixed2int_var(box.p.x),
- fixed2int_var(box.p.y),
- fixed2int(box.q.x - box.p.x),
- fixed2int(box.q.y - box.p.y));
- } else if ( !(cldev->disable_mask & clist_disable_complex_clip) ) {
- /* Write the path. */
- code = cmd_put_path(cldev, pcls, &pcpath->path,
- int2fixed(ymin - 1),
- int2fixed(ymax + 1),
- (byte)(pcpath->rule == gx_rule_even_odd ?
- cmd_opv_eofill : cmd_opv_fill),
- true, sn_not_first);
- } else {
- /* Complex paths disabled: write outer box as clip */
- punt_to_outer_box = true;
- }
- } else { /* Write out the rectangles. */
+ dp++;
+ if (method == write_path_as_path)
+ cmd_put2w(pcpath->path_fill_adjust.x,
+ pcpath->path_fill_adjust.y, &dp);
+ else
+ cmd_put2w(0, 0, &dp);
+
+ /* Then send the actual clip path representation. */
+ switch (method)
+ {
+ case write_path_as_rect:
+ /* Write the path as a rectangle. */
+ code = cmd_write_rect_cmd(cldev, pcls, cmd_op_fill_rect,
+ fixed2int_var(box.p.x),
+ fixed2int_var(box.p.y),
+ fixed2int(box.q.x - box.p.x),
+ fixed2int(box.q.y - box.p.y));
+ break;
+ case write_path_as_path:
+ /* Write the path. */
+ code = cmd_put_path(cldev, pcls, &pcpath->path,
+ int2fixed(ymin - 1),
+ int2fixed(ymax + 1),
+ (byte)(pcpath->rule == gx_rule_even_odd ?
+ cmd_opv_eofill : cmd_opv_fill),
+ true, sn_not_first);
+ break;
+ case write_path_as_rects:
+ {
+ /* Write out the rectangles. */
const gx_clip_list *list = gx_cpath_list(pcpath);
const gx_clip_rect *prect = list->head;
if (prect == 0)
prect = &list->single;
- else if (cldev->disable_mask & clist_disable_complex_clip)
- punt_to_outer_box = true;
- if (!punt_to_outer_box) {
- for (; prect != 0 && code >= 0; prect = prect->next)
- if (prect->xmax > prect->xmin &&
- prect->ymin < ymax && prect->ymax > ymin
- ) {
- code =
- cmd_write_rect_cmd(cldev, pcls, cmd_op_fill_rect,
- prect->xmin, prect->ymin,
- prect->xmax - prect->xmin,
- prect->ymax - prect->ymin);
- }
+ for (; prect != 0 && code >= 0; prect = prect->next) {
+ if (prect->xmax > prect->xmin &&
+ prect->ymin < ymax && prect->ymax > ymin) {
+ code = cmd_write_rect_cmd(cldev, pcls, cmd_op_fill_rect,
+ prect->xmin, prect->ymin,
+ prect->xmax - prect->xmin,
+ prect->ymax - prect->ymin);
+ }
}
+ break;
}
- if (punt_to_outer_box) {
+ default:
+ {
/* Clip is complex, but disabled. Write out the outer box */
gs_fixed_rect box;
@@ -659,6 +705,9 @@ cmd_write_unknown(gx_device_clist_writer * cldev, gx_clist_state * pcls,
fixed2int_ceiling(box.q.x - box.p.x),
fixed2int_ceiling(box.q.y - box.p.y));
}
+ }
+
+ /* And now we can send 'end_clip' so the reader can finalise everything. */
{
int end_code =
set_cmd_put_op(&dp, cldev, pcls, cmd_opv_end_clip, 1);
@@ -715,10 +764,10 @@ cmd_write_unknown(gx_device_clist_writer * cldev, gx_clist_state * pcls,
} else {
code = set_cmd_put_op(&dp, cldev, pcls, cmd_opv_set_color_space,
2 + sizeof(clist_icc_color_t));
- memcpy(dp + 2, &(cldev->color_space.icc_info),
- sizeof(clist_icc_color_t));
if (code < 0)
return code;
+ memcpy(dp + 2, &(cldev->color_space.icc_info),
+ sizeof(clist_icc_color_t));
}
dp[1] = cldev->color_space.byte1;
pcls->known |= color_space_known;
@@ -1204,8 +1253,17 @@ clist_stroke_path(gx_device * dev, const gs_gstate * pgs, gx_path * ppath,
return code;
if (code < 0) {
/* Something went wrong, use the default implementation. */
- return gx_default_stroke_path(dev, pgs, ppath, params, pdcolor,
+ cdev->cropping_saved = false;
+ code = gx_default_stroke_path(dev, pgs, ppath, params, pdcolor,
pcpath);
+ if (cdev->cropping_saved) {
+ cdev->cropping_min = cdev->save_cropping_min;
+ cdev->cropping_max = cdev->save_cropping_max;
+ if_debug2m('v', cdev->memory,
+ "[v] clist_stroke_path: restore cropping_min=%d croping_max=%d\n",
+ cdev->save_cropping_min, cdev->save_cropping_max);
+ }
+ return code;
}
re.pcls->color_usage.slow_rop |= slow_rop;
CMD_CHECK_LAST_OP_BLOCK_DEFINED(cdev);
diff --git a/base/gxclpath.h b/base/gxclpath.h
index f5e9555c..c334222c 100644
--- a/base/gxclpath.h
+++ b/base/gxclpath.h
@@ -28,27 +28,27 @@
* various miscellaneous parameters (pcls->known). The first N flags match
* the mask parameter for cmd_set_misc2 below.
*/
-#define cap_join_known (1<<0)
-#define cj_ac_sa_known (1<<1)
-#define flatness_known (1<<2)
-#define line_width_known (1<<3)
-#define miter_limit_known (1<<4)
-#define op_bm_tk_known (1<<5)
+#define cap_join_known (1<<0)
+#define cj_ac_sa_known (1<<1)
+#define flatness_known (1<<2)
+#define line_width_known (1<<3)
+#define miter_limit_known (1<<4)
+#define op_bm_tk_known (1<<5)
/* segment_notes must fit in the first byte (i.e. be less than 1<<7). */
-#define segment_notes_known (1<<6) /* not used in pcls->known */
+#define segment_notes_known (1<<6) /* not used in pcls->known */
/* (flags beyond this point require an extra byte) */
-#define ais_known (1<<7)
-#define stroke_alpha_known (1<<8)
-#define fill_alpha_known (1<<9)
-#define misc2_all_known ((1<<10)-1)
+#define ais_known (1<<7)
+#define stroke_alpha_known (1<<8)
+#define fill_alpha_known (1<<9)
+#define misc2_all_known ((1<<10)-1)
/* End of misc2 flags. */
/* The following bits don't get passed in misc2, so are only limited by sizeof uint */
-#define fill_adjust_known (1<<10)
-#define ctm_known (1<<11)
-#define dash_known (1<<12)
-#define clip_path_known (1<<13)
-#define STROKE_ALL_KNOWN ((1<<14)-1)
-#define color_space_known (1<<14)
+#define fill_adjust_known (1<<10)
+#define ctm_known (1<<11)
+#define dash_known (1<<12)
+#define clip_path_known (1<<13)
+#define STROKE_ALL_KNOWN ((1<<14)-1)
+#define color_space_known (1<<14)
/*#define all_known ((1<<15)-1) */
/* Define the drawing color types for distinguishing different */
@@ -59,108 +59,6 @@ typedef enum {
cmd_dc_type_color = 2
} cmd_dc_type;
-/* Extend the command set. See gxcldev.h for more information. */
-typedef enum {
- cmd_op_misc2 = 0xd0, /* (see below) */
- cmd_op_fill_rect_hl = 0xd1, /* rect fill with devn color */
- cmd_opv_set_fill_adjust = 0xd2, /* adjust_x/y(fixed) */
- cmd_opv_set_ctm = 0xd3, /* [per sput/sget_matrix] */
- cmd_opv_set_color_space = 0xd4, /* base(4)Indexed?(2)0(2) */
- /* [, hival#, table|map] */
- /*
- * cmd_opv_set_misc2_value is followed by a mask (a variable-length
- * integer), and then by parameter values for the parameters selected
- * by the mask. See above for the "known" mask values.
- */
- /* cap_join: 0(2)cap(3)join(3) */
- /* cj_ac_sa: 0(3)curve_join+1(3)acc.curves(1)stroke_adj(1) */
- /* flatness: (float) */
- /* line width: (float) */
- /* miter limit: (float) */
- /* op_bm_tk: blend mode(5)text knockout(1)o.p.mode(1)o.p.(1) */
- /* segment notes: (byte) */
- /* opacity/shape: alpha(float)mask(TBD) */
- /* alpha: <<verbatim copy from gs_gstate>> */
- cmd_opv_set_misc2 = 0xd5, /* mask#, selected parameters */
- cmd_opv_set_dash = 0xd6, /* adapt(1)abs.dot(1)n(6), dot */
- /* length(float), offset(float), */
- /* n x (float) */
- cmd_opv_enable_clip = 0xd7, /* (nothing) */
- cmd_opv_disable_clip = 0xd8, /* (nothing) */
- cmd_opv_begin_clip = 0xd9, /* (nothing) */
- cmd_opv_end_clip = 0xda, /* (nothing) */
- cmd_opv_begin_image_rect = 0xdb, /* same as begin_image, followed by */
- /* x0#, w-x1#, y0#, h-y1# */
- cmd_opv_begin_image = 0xdc, /* image_type_table index, */
- /* [per image type] */
- cmd_opv_image_data = 0xdd, /* height# (premature EOD if 0), */
- /* raster#, <data> */
- cmd_opv_image_plane_data = 0xde, /* height# (premature EOD if 0), */
- /* flags# (0 = same raster & data_x, */
- /* 1 = new raster & data_x, lsb first), */
- /* [raster#, [data_x#,]]* <data> */
- cmd_opv_extend = 0xdf, /* command, varies (see gx_cmd_ext_op below) */
-
-
-#define cmd_misc2_op_name_strings\
- "?d0?", "fill_hl_color", \
- "set_fill_adjust", "set_ctm",\
- "set_color_space", "set_misc2", "set_dash", "enable_clip",\
- "disable_clip", "begin_clip", "end_clip", "begin_image_rect",\
- "begin_image", "image_data", "image_plane_data", "extended"
-
- cmd_op_segment = 0xe0, /* (see below) */
- cmd_opv_rmoveto = 0xe0, /* dx%, dy% */
- cmd_opv_rlineto = 0xe1, /* dx%, dy% */
- cmd_opv_hlineto = 0xe2, /* dx% */
- cmd_opv_vlineto = 0xe3, /* dy% */
- cmd_opv_rmlineto = 0xe4, /* dx1%,dy1%, dx2%,dy2% */
- cmd_opv_rm2lineto = 0xe5, /* dx1%,dy1%, dx2%,dy2%, dx3%,dy3% */
- cmd_opv_rm3lineto = 0xe6, /* dx1%,dy1%, dx2%,dy2%, dx3%,dy3%, */
- /* [-dx2,-dy2 implicit] */
- cmd_opv_rrcurveto = 0xe7, /* dx1%,dy1%, dx2%,dy2%, dx3%,dy3% */
- cmd_opv_min_curveto = cmd_opv_rrcurveto,
- cmd_opv_hvcurveto = 0xe8, /* dx1%, dx2%,dy2%, dy3% */
- cmd_opv_vhcurveto = 0xe9, /* dy1%, dx2%,dy2%, dx3% */
- cmd_opv_nrcurveto = 0xea, /* dx2%,dy2%, dx3%,dy3% */
- cmd_opv_rncurveto = 0xeb, /* dx1%,dy1%, dx2%,dy2% */
- cmd_opv_vqcurveto = 0xec, /* dy1%, dx2%[,dy2=dx2 with sign */
- /* of dy1, dx3=dy1 with sign of dx2] */
- cmd_opv_hqcurveto = 0xed, /* dx1%, [dx2=dy2 with sign */
- /* of dx1,]%dy2, [dy3=dx1 with sign */
- /* of dy2] */
- cmd_opv_scurveto = 0xee, /* all implicit: previous op must have been */
- /* *curveto with one or more of dx/y1/3 = 0. */
- /* If h*: -dx3,dy3, -dx2,dy2, -dx1,dy1. */
- /* If v*: dx3,-dy3, dx2,-dy2, dx1,-dy1. */
- cmd_opv_max_curveto = cmd_opv_scurveto,
- cmd_opv_closepath = 0xef, /* (nothing) */
-
-#define cmd_segment_op_name_strings\
- "rmoveto", "rlineto", "hlineto", "vlineto",\
- "rmlineto", "rm2lineto", "rm3lineto", "rrcurveto",\
- "hvcurveto", "vhcurveto", "nrcurveto", "rncurveto",\
- "vqcurveto", "hqcurveto", "scurveto", "closepath"
-
- cmd_op_path = 0xf0, /* (see below) */
- cmd_opv_fill = 0xf0,
- cmd_opv_rgapto = 0xf1, /* dx%, dy% */
- cmd_opv_eofill = 0xf3,
- cmd_opv_fill_stroke = 0xf4,
- cmd_opv_eofill_stroke = 0xf5,
- cmd_opv_stroke = 0xf6,
- cmd_opv_polyfill = 0xf9,
- cmd_opv_fill_trapezoid = 0xfc
-
-#define cmd_path_op_name_strings\
- "fill", "rgapto", "?f2?", "eofill",\
- "fill_stroke", "eofill_stroke", "stroke", "?f7?",\
- "?f8?", "polyfill", "?fa?", "?fb?",\
- "fill_trapezoid", "?fd?", "?fe?", "?ff?"
-
-/* unused cmd_op values: 0xd0, 0xf2, 0xf7, 0xf8, 0xfa, 0xfb, 0xfd, 0xfe, 0xff */
-} gx_cmd_xop;
-
/* This is usd for cmd_opv_ext_put_drawing_color so that we know if it
is assocated with a tile or not and for fill or stroke color */
typedef enum {
@@ -174,23 +72,40 @@ typedef enum {
* is the second byte of a command whose first byte is cmd_opv_extend.
*/
typedef enum {
- cmd_opv_ext_put_params = 0x00, /* serialized parameter list */
- cmd_opv_ext_composite = 0x01, /* compositor id,
+ cmd_opv_ext_put_params = 0x00, /* serialized parameter list */
+ cmd_opv_ext_composite = 0x01, /* compositor id,
* serialized compositor */
- cmd_opv_ext_put_halftone = 0x02, /* length of entire halftone */
- cmd_opv_ext_put_ht_seg = 0x03, /* segment length,
+ cmd_opv_ext_put_halftone = 0x02, /* length of entire halftone */
+ cmd_opv_ext_put_ht_seg = 0x03, /* segment length,
* halftone segment data */
- cmd_opv_ext_put_fill_dcolor = 0x04, /* length, color type id,
+ cmd_opv_ext_put_fill_dcolor = 0x04, /* length, color type id,
* serialized color */
- cmd_opv_ext_put_stroke_dcolor = 0x05, /* length, color type id,
+ cmd_opv_ext_put_stroke_dcolor = 0x05, /* length, color type id,
* serialized color */
- cmd_opv_ext_tile_rect_hl = 0x06, /* Uses devn colors in tiling fill */
+ cmd_opv_ext_tile_rect_hl = 0x06, /* Uses devn colors in tiling fill */
cmd_opv_ext_put_tile_devn_color0 = 0x07, /* Devn color0 for tile filling */
cmd_opv_ext_put_tile_devn_color1 = 0x08, /* Devn color1 for tile filling */
- cmd_opv_ext_set_color_is_devn = 0x09, /* Used for overload of copy_color_alpha */
- cmd_opv_ext_unset_color_is_devn = 0x0a /* Used for overload of copy_color_alpha */
+ cmd_opv_ext_set_color_is_devn = 0x09, /* Used for overload of copy_color_alpha */
+ cmd_opv_ext_unset_color_is_devn = 0x0a /* Used for overload of copy_color_alpha */
} gx_cmd_ext_op;
+#ifdef DEBUG
+#define cmd_extend_op_name_strings \
+ "put_params",\
+ "composite",\
+ "put_halftone",\
+ "put_ht_seg",\
+ "put_fill_dcolor",\
+ "put_stroke_dcolor",\
+ "tile_rect_hl",\
+ "put_tile_devn_color0",\
+ "put_tile_devn_color1",\
+ "set_color_is_devn",\
+ "unset_color_is_devn"
+
+extern const char *cmd_extend_op_names[256];
+#endif
+
#define cmd_segment_op_num_operands_values\
2, 2, 1, 1, 4, 6, 6, 6, 4, 4, 4, 4, 2, 2, 0, 0
diff --git a/base/gxclrast.c b/base/gxclrast.c
index bfed7ddb..c38faa49 100644
--- a/base/gxclrast.c
+++ b/base/gxclrast.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 2001-2021 Artifex Software, Inc.
+/* Copyright (C) 2001-2022 Artifex Software, Inc.
All Rights Reserved.
This software is provided AS-IS with no warranty, either express or
@@ -149,6 +149,27 @@ set_cb_end(command_buf_t *pcb, const byte *end)
/**** limit and should check 'end' ****/
}
+static inline void
+advance_buffer(command_buf_t *pcb, const byte *cbp)
+{
+#ifdef DEBUG
+ stream_state *st = pcb->s->state;
+
+ top_up_offset_map(st, pcb->data, cbp, pcb->end);
+#endif
+ memmove(pcb->data, cbp, pcb->end - cbp);
+}
+
+static inline void
+next_is_skip(command_buf_t *pcb)
+{
+#ifdef DEBUG
+ stream_state *st = pcb->s->state;
+
+ offset_map_next_data_out_of_band(st);
+#endif
+}
+
/* Read more data into a command buffer. */
static int
top_up_cbuf(command_buf_t *pcb, const byte **pcbp)
@@ -156,12 +177,9 @@ top_up_cbuf(command_buf_t *pcb, const byte **pcbp)
uint nread;
const byte *cbp = *pcbp;
byte *cb_top = pcb->data + (pcb->end - cbp);
-# ifdef DEBUG
- stream_state *st = pcb->s->state;
-# endif
- if (pcb->end - cbp >= pcb->size) {
- errprintf(pcb->s->memory, "Clist I/O error: cbp past end of buffer\n");
+ if (cbp < pcb->data || cbp > pcb->end) {
+ errprintf(pcb->s->memory, "Clist I/O error: cbp outside of buffer\n");
return (gs_error_ioerror);
}
@@ -170,15 +188,7 @@ top_up_cbuf(command_buf_t *pcb, const byte **pcbp)
pcb->end_status = pcb->s->end_status;
return 0;
}
-# ifdef DEBUG
- {
- int code = top_up_offset_map(st, pcb->data, cbp, pcb->end);
-
- if (code < 0)
- return code;
- }
-# endif
- memmove(pcb->data, cbp, pcb->end - cbp);
+ advance_buffer(pcb, cbp);
nread = pcb->end - cb_top;
pcb->end_status = sgets(pcb->s, cb_top, nread, &nread);
if ( nread == 0 ) {
@@ -199,6 +209,8 @@ top_up_cbuf(command_buf_t *pcb, const byte **pcbp)
}
/* Read data from the command buffer and stream. */
+/* From the command_buffer pcb, read rsize bytes to ptr, starting from cbp.
+ * Return the new value for pcb->ptr. */
static const byte *
cmd_read_data(command_buf_t *pcb, byte *ptr, uint rsize, const byte *cbp)
{
@@ -211,11 +223,16 @@ cmd_read_data(command_buf_t *pcb, byte *ptr, uint rsize, const byte *cbp)
memmove(ptr, cbp, cleft);
sgets(pcb->s, ptr + cleft, rleft, &rleft);
+#ifdef DEBUG
+ {
+ stream_state *st = pcb->s->state;
+
+ adjust_offset_map_for_skipped_data(st, (uint)(pcb->end - pcb->data), rleft);
+ }
+#endif
return pcb->end;
}
}
-#define cmd_read(ptr, rsize, cbp)\
- cbp = cmd_read_data(&cbuf, ptr, rsize, cbp)
/* Read a fixed-size value from the command buffer. */
static inline const byte *
@@ -472,11 +489,29 @@ read_set_misc_map(byte cb, command_buf_t *pcb, gs_gstate *pgs, gs_memory_t *mem)
return 0;
}
+#ifdef DEBUG
+void clist_debug_op(gs_memory_t *mem, const unsigned char *cbp)
+{
+ unsigned char op = *cbp++;
+ const char *const *sub = cmd_sub_op_names[op >> 4];
+ if (op == cmd_opv_extend) {
+ unsigned char op2 = *cbp;
+ if (cmd_extend_op_names[op2])
+ dmlprintf1(mem, " %s", cmd_extend_op_names[op2]);
+ else
+ dmlprintf1(mem, " ?0x%02x?", (int)op2);
+ } else if (sub)
+ dmlprintf1(mem, " %s", sub[op & 0xf]);
+ else
+ dmlprintf2(mem, " %s %d", cmd_op_names[op >> 4], op & 0xf);
+}
+#endif
+
int
-clist_playback_band(clist_playback_action playback_action,
+clist_playback_band(clist_playback_action playback_action, /* lgtm [cpp/use-of-goto] */
gx_device_clist_reader *cdev, stream *s,
gx_device *target, int x0, int y0,
- gs_memory_t * mem) /* lgtm [cpp/use-of-goto] */
+ gs_memory_t * mem)
{
byte *cbuf_storage;
command_buf_t cbuf;
@@ -495,7 +530,7 @@ clist_playback_band(clist_playback_action playback_action,
tile_slot *state_slot;
gx_strip_bitmap state_tile; /* parameters for reading tiles */
tile_slot tile_bits; /* parameters of current tile */
- gs_int_point tile_phase, color_phase;
+ gs_int_point tile_phase;
gx_path path;
bool in_path;
gs_fixed_point ppos;
@@ -590,8 +625,8 @@ in: /* Initialize for a new page. */
state_tile.shift = state_tile.rep_shift = 0;
state_tile.size.x = state_tile.size.y = 0;
state_tile.num_planes = 1;
- tile_phase.x = color_phase.x = x0;
- tile_phase.y = color_phase.y = y0;
+ tile_phase.x = x0;
+ tile_phase.y = y0;
gx_path_init_local(&path, mem);
in_path = false;
/*
@@ -624,8 +659,10 @@ in: /* Initialize for a new page. */
goto out;
}
code = pcs->type->install_cspace(pcs, &gs_gstate);
- if (code < 0)
+ if (code < 0) {
+ rc_decrement(pcs, "clist_playback_band");
goto out;
+ }
gs_gstate.color[0].color_space = pcs; /* we already have one ref */
gs_gstate.color[1].color_space = pcs;
rc_increment_cs(pcs); /* increment for second ref */
@@ -710,14 +747,10 @@ in: /* Initialize for a new page. */
op = *cbp++;
#ifdef DEBUG
if (gs_debug_c('L')) {
- const char *const *sub = cmd_sub_op_names[op >> 4];
long offset = (long)clist_file_offset(st, cbp - 1 - cbuf.data);
- if (sub)
- dmlprintf1(mem, "[L]%s", sub[op & 0xf]);
- else
- dmlprintf2(mem, "[L]%s %d", cmd_op_names[op >> 4], op & 0xf);
- dmlprintf1(mem, "(offset=%ld):", offset);
+ dmlprintf1(mem, "[L] %ld:", offset);
+ clist_debug_op(mem, cbp-1);
}
#endif
switch (op >> 4) {
@@ -740,7 +773,29 @@ in: /* Initialize for a new page. */
if_debug2m('L', mem, " (%d,%d)\n",
state.tile_phase.x,
state.tile_phase.y);
- goto set_phase;
+ goto set_tile_phase;
+ case cmd_opv_set_screen_phaseT:
+ cmd_getw(state.screen_phase[gs_color_select_texture].x, cbp);
+ cmd_getw(state.screen_phase[gs_color_select_texture].y, cbp);
+ if_debug2m('L', mem, " (%d,%d)\n",
+ state.screen_phase[0].x,
+ state.screen_phase[gs_color_select_texture].y);
+ gx_gstate_setscreenphase(&gs_gstate,
+ state.screen_phase[gs_color_select_texture].x - x0,
+ state.screen_phase[gs_color_select_texture].y - y0,
+ gs_color_select_texture);
+ continue;
+ case cmd_opv_set_screen_phaseS:
+ cmd_getw(state.screen_phase[gs_color_select_source].x, cbp);
+ cmd_getw(state.screen_phase[gs_color_select_source].y, cbp);
+ if_debug2m('L', mem, " (%d,%d)\n",
+ state.screen_phase[gs_color_select_source].x,
+ state.screen_phase[gs_color_select_source].y);
+ gx_gstate_setscreenphase(&gs_gstate,
+ state.screen_phase[gs_color_select_source].x - x0,
+ state.screen_phase[gs_color_select_source].y - y0,
+ gs_color_select_source);
+ continue;
case cmd_opv_set_tile_bits:
bits = tile_bits;
compress = 0;
@@ -754,18 +809,22 @@ in: /* Initialize for a new page. */
goto out;
goto stp;
case cmd_opv_set_bits:
+do_opv_set_bits:
compress = *cbp & 3;
- bits.cb_depth = *cbp++ >> 2;
+ bits.head.depth = *cbp++ >> 2;
cmd_getw(bits.width, cbp);
cmd_getw(bits.height, cbp);
- if_debug4m('L', mem, " compress=%d depth=%d size=(%d,%d)",
- compress, bits.cb_depth,
- bits.width, bits.height);
- bits.cb_raster =
- bitmap_raster(bits.width * bits.cb_depth);
+ if (op == cmd_opv_set_bits_planar)
+ cmd_getw(bits.num_planes, cbp);
+ else
+ bits.num_planes = 1;
+ if_debug5m('L', mem, " compress=%d depth=%d size=(%d,%d) planes=%d",
+ compress, bits.head.depth,
+ bits.width, bits.height, bits.num_planes);
+ bits.raster =
+ bitmap_raster(bits.width * bits.head.depth);
bits.x_reps = bits.y_reps = 1;
bits.shift = bits.rep_shift = 0;
- bits.num_planes = 1;
goto stb;
case cmd_opv_set_tile_color:
set_colors = state.tile_colors;
@@ -1023,12 +1082,12 @@ in: /* Initialize for a new page. */
goto out;
}
#endif
- depth = state_slot->cb_depth;
+ depth = state_slot->head.depth;
state.rect.width = state_slot->width;
state.rect.height = state_slot->height;
if (state.rect.y + state.rect.height > cdev->height)
state.rect.height = cdev->height - state.rect.y; /* clamp as writer did */
- raster = state_slot->cb_raster;
+ raster = state_slot->raster;
source = (byte *) (state_slot + 1);
} else { /* Read width, height, bits. */
/* depth was set already. */
@@ -1100,12 +1159,7 @@ in: /* Initialize for a new page. */
if (cleft < bytes && !cbuf.end_status) {
uint nread = cbuf_size - cleft;
-# ifdef DEBUG
- code = top_up_offset_map(st, cbuf.data, cbp, cbuf.end);
- if (code < 0)
- goto top_up_failed;
-# endif
- memmove(cbuf.data, cbp, cleft);
+ advance_buffer(&cbuf, cbp);
cbuf.end_status = sgets(s, cbuf.data + cleft, nread, &nread);
set_cb_end(&cbuf, cbuf.data + cleft + nread);
cbp = cbuf.data;
@@ -1153,7 +1207,7 @@ in: /* Initialize for a new page. */
source = data_bits;
} else {
/* Never used for planar data */
- cmd_read(cbuf.data, bytes, cbp);
+ cbp = cmd_read_data(&cbuf, cbuf.data, bytes, cbp);
source = cbuf.data;
}
}
@@ -1182,7 +1236,7 @@ in: /* Initialize for a new page. */
state_tile.data = (byte *) (state_slot + 1);
stp:state_tile.size.x = state_slot->width;
state_tile.size.y = state_slot->height;
- state_tile.raster = state_slot->cb_raster;
+ state_tile.raster = state_slot->raster;
state_tile.rep_width = state_tile.size.x /
state_slot->x_reps;
state_tile.rep_height = state_tile.size.y /
@@ -1191,28 +1245,10 @@ in: /* Initialize for a new page. */
state_tile.shift = state_slot->shift;
state_tile.id = state_slot->id;
state_tile.num_planes = state_slot->num_planes;
-set_phase: /*
- * state.tile_phase is overloaded according to the command
- * to which it will apply:
- * For fill_path, stroke_path, fill_triangle/p'gram,
- * fill_mask, and (mask or CombineWithColor) images,
- * it is pdcolor->phase. For these operations, we
- * precompute the color_phase values.
- * For strip_tile_rectangle and strip_copy_rop,
- * it is the phase arguments of the call, used with
- * state_tile. For these operations, we precompute the
- * tile_phase values.
- *
- * Note that control may get here before one or both of
- * state_tile or dev_ht has been set.
- */
+set_tile_phase:
if (state_tile.size.x)
tile_phase.x =
(state.tile_phase.x + x0) % state_tile.size.x;
- if (gs_gstate.dev_ht[HT_OBJTYPE_DEFAULT] && gs_gstate.dev_ht[HT_OBJTYPE_DEFAULT]->lcm_width)
- color_phase.x =
- (state.tile_phase.x + x0) %
- gs_gstate.dev_ht[HT_OBJTYPE_DEFAULT]->lcm_width;
/*
* The true tile height for shifted tiles is not
* size.y: see gxbitmap.h for the computation.
@@ -1224,23 +1260,16 @@ set_phase: /*
full_height = state_tile.size.y;
else
full_height = state_tile.rep_height *
- (state_tile.rep_width /
- igcd(state_tile.rep_shift,
- state_tile.rep_width));
- tile_phase.y =
- (state.tile_phase.y + y0) % full_height;
+ (state_tile.rep_width /
+ igcd(state_tile.rep_shift,
+ state_tile.rep_width));
+ tile_phase.y = (state.tile_phase.y + y0) % full_height;
}
- if (gs_gstate.dev_ht[HT_OBJTYPE_DEFAULT] && gs_gstate.dev_ht[HT_OBJTYPE_DEFAULT]->lcm_height)
- color_phase.y =
- (state.tile_phase.y + y0) %
- gs_gstate.dev_ht[HT_OBJTYPE_DEFAULT]->lcm_height;
- gx_gstate_setscreenphase(&gs_gstate,
- -(state.tile_phase.x + x0),
- -(state.tile_phase.y + y0),
- gs_color_select_all);
continue;
case cmd_op_misc2 >> 4:
switch (op) {
+ case cmd_opv_set_bits_planar:
+ goto do_opv_set_bits;
case cmd_opv_set_fill_adjust:
cmd_get_value(gs_gstate.fill_adjust.x, cbp);
cmd_get_value(gs_gstate.fill_adjust.y, cbp);
@@ -1333,10 +1362,8 @@ set_phase: /*
clip_save.dcolor = fill_color;
clip_save.fa_save.x = gs_gstate.fill_adjust.x;
clip_save.fa_save.y = gs_gstate.fill_adjust.y;
- /* clip_path should match fill_path, i.e., with fill_adjust applied */
- /* If we get here with the fill_adjust = [0, 0], set it to [0.5, 0.5]i */
- if (clip_save.fa_save.x == 0 || clip_save.fa_save.y == 0)
- gs_gstate.fill_adjust.x = gs_gstate.fill_adjust.y = fixed_half;
+ cmd_getw(gs_gstate.fill_adjust.x, cbp);
+ cmd_getw(gs_gstate.fill_adjust.y, cbp);
/* temporarily set a solid color */
color_set_pure(&fill_color, (gx_color_index)1);
state.lop_enabled = false;
@@ -1481,7 +1508,7 @@ ibegin: if_debug0m('L', mem, "\n");
if (code < 0)
goto top_up_failed;
}
- cmd_getw(planes[plane].raster, cbp) ;
+ cmd_getw(planes[plane].raster, cbp);
if ((raster1 = planes[plane].raster) != 0)
cmd_getw(data_x, cbp);
} else {
@@ -1550,6 +1577,8 @@ idata: data_size = 0;
} else
rdata = cbuf.data;
memmove(rdata, cbp, cleft);
+ if (data_on_heap)
+ next_is_skip(&cbuf);
if (sgets(s, rdata + cleft, rleft, &rleft) < 0) {
code = gs_note_error(gs_error_unregistered); /* Must not happen. */
goto out;
@@ -1637,6 +1666,15 @@ idata: data_size = 0;
if (code < 0)
goto out;
}
+#ifdef DEBUG
+ if (gs_debug_c('L')) {
+ long offset = (long)clist_file_offset(st, cbp - cbuf.data);
+
+ dmlprintf1(mem, "[L] %ld:", offset);
+ clist_debug_op(mem, cbp);
+ dmlprintf(mem, "\n");
+ }
+#endif
if (cbp[0] == cmd_opv_extend && cbp[1] == cmd_opv_ext_composite) {
gs_composite_t *pcomp, *pcomp_opening;
gs_compositor_closing_state closing_state;
@@ -1869,7 +1907,7 @@ idata: data_size = 0;
see gx_dc_null_read.*/
code = pdct->read(pdcolor, &gs_gstate,
pdcolor, tdev, offset,
- cbp, 0, mem);
+ cbp, 0, mem, x0, y0);
if (code < 0)
goto out;
}
@@ -1882,7 +1920,7 @@ idata: data_size = 0;
l = min(left, cbuf.end - cbp);
code = pdct->read(pdcolor, &gs_gstate,
pdcolor, tdev, offset,
- cbp, l, mem);
+ cbp, l, mem, x0, y0);
if (code < 0)
goto out;
l = code;
@@ -2457,7 +2495,7 @@ read_set_tile_size(command_buf_t *pcb, tile_slot *bits, bool for_pattern)
uint pdepth;
byte bd = *cbp++;
- bits->cb_depth = cmd_code_to_depth(bd);
+ bits->head.depth = cmd_code_to_depth(bd);
if (for_pattern)
cmd_getw(bits->id, cbp);
cmd_getw(rep_width, cbp);
@@ -2485,16 +2523,16 @@ read_set_tile_size(command_buf_t *pcb, tile_slot *bits, bool for_pattern)
else
bits->num_planes = 1;
if_debug7('L', " depth=%d size=(%d,%d), rep_size=(%d,%d), rep_shift=%d, num_planes=%d\n",
- bits->cb_depth, bits->width,
+ bits->head.depth, bits->width,
bits->height, rep_width,
rep_height, bits->rep_shift, bits->num_planes);
bits->shift =
(bits->rep_shift == 0 ? 0 :
(bits->rep_shift * (bits->height / rep_height)) % rep_width);
- pdepth = bits->cb_depth;
+ pdepth = bits->head.depth;
if (bits->num_planes != 1)
pdepth /= bits->num_planes;
- bits->cb_raster = bitmap_raster(bits->width * pdepth);
+ bits->raster = bitmap_raster(bits->width * pdepth);
pcb->ptr = cbp;
return 0;
}
@@ -2515,7 +2553,7 @@ read_set_bits(command_buf_t *pcb, tile_slot *bits, int compress,
uint bytes;
byte *data;
tile_slot *slot;
- uint depth = bits->cb_depth;
+ uint depth = bits->head.depth;
if (bits->num_planes != 1)
depth /= bits->num_planes;
@@ -2560,19 +2598,8 @@ read_set_bits(command_buf_t *pcb, tile_slot *bits, int compress,
if (cleft < bytes && !pcb->end_status) {
uint nread = cbuf_size - cleft;
-# ifdef DEBUG
- stream_state *st = pcb->s->state;
-# endif
-# ifdef DEBUG
- {
- int code = top_up_offset_map(st, pcb->data, cbp, pcb->end);
-
- if (code < 0)
- return code;
- }
-# endif
- memmove(pcb->data, cbp, cleft);
+ advance_buffer(pcb, cbp);
pcb->end_status = sgets(pcb->s, pcb->data + cleft, nread, &nread);
set_cb_end(pcb, pcb->data + cleft + nread);
cbp = pcb->data;
@@ -2608,26 +2635,26 @@ read_set_bits(command_buf_t *pcb, tile_slot *bits, int compress,
return_error(gs_error_unregistered);
}
cbp = r.ptr + 1;
- } else if (rep_height * bits->num_planes > 1 && width_bytes != bits->cb_raster) {
+ } else if (rep_height * bits->num_planes > 1 && width_bytes != bits->raster) {
cbp = cmd_read_short_bits(pcb, data, bytes,
width_bytes, rep_height * bits->num_planes,
- bits->cb_raster, cbp);
+ bits->raster, cbp);
} else {
cbp = cmd_read_data(pcb, data, bytes, cbp);
}
if (bits->width > rep_width)
bits_replicate_horizontally(data,
rep_width * depth, rep_height * bits->num_planes,
- bits->cb_raster,
+ bits->raster,
bits->width * depth,
- bits->cb_raster);
+ bits->raster);
if (bits->height > rep_height)
bits_replicate_vertically(data,
- rep_height, bits->cb_raster,
+ rep_height, bits->raster,
bits->height);
#ifdef DEBUG
if (gs_debug_c('L'))
- cmd_print_bits(mem, data, bits->width, bits->height, bits->cb_raster);
+ cmd_print_bits(mem, data, bits->width, bits->height, bits->raster);
#endif
pcb->ptr = cbp;
return 0;
@@ -2724,17 +2751,18 @@ read_set_misc2(command_buf_t *pcb, gs_gstate *pgs, segment_notes *pnotes)
const byte *cbp = pcb->ptr;
uint mask, cb;
+ if_debug0m('L', pgs->memory, "\n");
cmd_getw(mask, cbp);
if (mask & cap_join_known) {
cb = *cbp++;
pgs->line_params.start_cap = (gs_line_cap)((cb >> 3) & 7);
pgs->line_params.join = (gs_line_join)(cb & 7);
- if_debug2m('L', pgs->memory, " start_cap=%d join=%d\n",
+ if_debug2m('L', pgs->memory, "[L] start_cap=%d join=%d\n",
pgs->line_params.start_cap, pgs->line_params.join);
cb = *cbp++;
pgs->line_params.end_cap = (gs_line_cap)((cb >> 3) & 7);
pgs->line_params.dash_cap = (gs_line_cap)(cb & 7);
- if_debug2m('L', pgs->memory, "end_cap=%d dash_cap=%d\n",
+ if_debug2m('L', pgs->memory, "[L] end_cap=%d dash_cap=%d\n",
pgs->line_params.end_cap, pgs->line_params.dash_cap);
}
if (mask & cj_ac_sa_known) {
@@ -2742,26 +2770,26 @@ read_set_misc2(command_buf_t *pcb, gs_gstate *pgs, segment_notes *pnotes)
pgs->line_params.curve_join = ((cb >> 2) & 7) - 1;
pgs->accurate_curves = (cb & 2) != 0;
pgs->stroke_adjust = cb & 1;
- if_debug3m('L', pgs->memory, " CJ=%d AC=%d SA=%d\n",
+ if_debug3m('L', pgs->memory, "[L] CJ=%d AC=%d SA=%d\n",
pgs->line_params.curve_join, pgs->accurate_curves,
pgs->stroke_adjust);
}
if (mask & flatness_known) {
cmd_get_value(pgs->flatness, cbp);
- if_debug1m('L', pgs->memory, " flatness=%g\n", pgs->flatness);
+ if_debug1m('L', pgs->memory, "[L] flatness=%g\n", pgs->flatness);
}
if (mask & line_width_known) {
float width;
cmd_get_value(width, cbp);
- if_debug1m('L', pgs->memory, " line_width=%g\n", width);
+ if_debug1m('L', pgs->memory, "[L] line_width=%g\n", width);
gx_set_line_width(&pgs->line_params, width);
}
if (mask & miter_limit_known) {
float limit;
cmd_get_value(limit, cbp);
- if_debug1m('L', pgs->memory, " miter_limit=%g\n", limit);
+ if_debug1m('L', pgs->memory, "[L] miter_limit=%g\n", limit);
gx_set_miter_limit(&pgs->line_params, limit);
}
if (mask & op_bm_tk_known) {
@@ -2775,26 +2803,26 @@ read_set_misc2(command_buf_t *pcb, gs_gstate *pgs, segment_notes *pnotes)
pgs->overprint = cb & 1;
cb = *cbp++;
pgs->renderingintent = cb;
- if_debug6m('L', pgs->memory, " BM=%d TK=%d OPM=%d OP=%d op=%d RI=%d\n",
+ if_debug6m('L', pgs->memory, "[L] BM=%d TK=%d OPM=%d OP=%d op=%d RI=%d\n",
pgs->blend_mode, pgs->text_knockout, pgs->overprint_mode,
pgs->stroke_overprint, pgs->overprint, pgs->renderingintent);
}
if (mask & segment_notes_known) {
cb = *cbp++;
*pnotes = (segment_notes)(cb & 0x3f);
- if_debug1m('L', pgs->memory, " notes=%d\n", *pnotes);
+ if_debug1m('L', pgs->memory, "[L] notes=%d\n", *pnotes);
}
if (mask & ais_known) {
cmd_get_value(pgs->alphaisshape, cbp);
- if_debug1m('L', pgs->memory, " alphaisshape=%d\n", pgs->alphaisshape);
+ if_debug1m('L', pgs->memory, "[L] alphaisshape=%d\n", pgs->alphaisshape);
}
if (mask & stroke_alpha_known) {
cmd_get_value(pgs->strokeconstantalpha, cbp);
- if_debug1m('L', pgs->memory, " strokeconstantalpha=%g\n", pgs->strokeconstantalpha);
+ if_debug1m('L', pgs->memory, "[L] strokeconstantalpha=%g\n", pgs->strokeconstantalpha);
}
if (mask & fill_alpha_known) {
cmd_get_value(pgs->fillconstantalpha, cbp);
- if_debug1m('L', pgs->memory, " fillconstantalpha=%u\n", (uint)(pgs->fillconstantalpha));
+ if_debug1m('L', pgs->memory, "[L] fillconstantalpha=%u\n", (uint)(pgs->fillconstantalpha));
}
pcb->ptr = cbp;
return 0;
@@ -2985,6 +3013,7 @@ read_put_params(command_buf_t *pcb, gs_gstate *pgs,
cleft = pcb->end - cbp;
rleft = param_length - cleft;
memmove(param_buf, cbp, cleft);
+ next_is_skip(pcb);
pcb->end_status = sgets(pcb->s, param_buf + cleft, rleft, &rleft);
cbp = pcb->end; /* force refill */
}
diff --git a/base/gxclread.c b/base/gxclread.c
index 23b07ac3..03945e81 100644
--- a/base/gxclread.c
+++ b/base/gxclread.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 2001-2021 Artifex Software, Inc.
+/* Copyright (C) 2001-2022 Artifex Software, Inc.
All Rights Reserved.
This software is provided AS-IS with no warranty, either express or
@@ -41,6 +41,8 @@
#include "stream.h"
#include "strimpl.h"
+/* #define EXTRA_OFFSET_MAP_DEBUGGING */
+
/* forward decl */
private_st_clist_icctable_entry();
private_st_clist_icctable();
@@ -72,8 +74,10 @@ typedef struct stream_band_read_state_s {
#ifdef DEBUG
bool skip_first;
cbuf_offset_map_elem *offset_map;
+ int bytes_skipped;
int offset_map_length;
int offset_map_max_length;
+ int skip_next;
#endif
} stream_band_read_state;
@@ -104,15 +108,18 @@ s_band_read_init_offset_map(gx_device_clist_reader *crdev, stream_state * st)
if (ss->offset_map == NULL)
return_error(gs_error_VMerror);
ss->offset_map[0].buffered = 0;
+ ss->bytes_skipped = 0;
crdev->offset_map = ss->offset_map; /* Prevent collecting it as garbage.
Debugged with ppmraw -r300 014-09.ps . */
} else {
ss->offset_map_length = 0;
ss->offset_map_max_length = 0;
ss->offset_map = NULL;
+ ss->bytes_skipped = 0;
crdev->offset_map = NULL;
}
ss->skip_first = true;
+ ss->skip_next = 0;
return 0;
}
@@ -141,15 +148,40 @@ s_band_read_process(stream_state * st, stream_cursor_read * ignore_pr,
int status = 1;
uint count;
const clist_io_procs_t *io_procs = ss->page_info.io_procs;
+ int64_t pos;
+ /* left = number of bytes unread in the current command. */
+ /* count = number of bytes we have room in our buffer for. */
while ((count = wlimit - q) != 0) {
- if (left) { /* Read more data for the current run. */
+ int bmin, bmax;
+ /* If there is more data to be read in the current command, then pull that in. */
+ if (left) {
if (count > left)
count = left;
-# ifdef DEBUG
- if (gs_debug_c('L'))
+#ifdef DEBUG
+ if (gs_debug_c('L')) {
+ if (ss->skip_next) {
+ /* This buffer fill is NOT going into the normal buffer. */
+ ss->skip_next = 0;
+ ss->bytes_skipped += count;
+#ifdef EXTRA_OFFSET_MAP_DEBUGGING
+ if (ss->offset_map_length != 1) {
+ dmlprintf(ss->local_memory, "offset_map: confused!\n");
+ exit(1);
+ }
+#endif
+ } else {
+#ifdef EXTRA_OFFSET_MAP_DEBUGGING
+ if (ss->offset_map[ss->offset_map_length - 1].buffered + count > cbuf_size*2) {
+ dmlprintf2(ss->local_memory, "Invalid update to buffered. %d %d\n",
+ ss->offset_map[ss->offset_map_length - 1].buffered, count);
+ exit(1);
+ }
+#endif
ss->offset_map[ss->offset_map_length - 1].buffered += count;
-# endif
+ }
+ }
+#endif
io_procs->fread_chars(q + 1, count, cfile);
if (io_procs->ferror_code(cfile) < 0) {
status = ERRC;
@@ -160,47 +192,51 @@ s_band_read_process(stream_state * st, stream_cursor_read * ignore_pr,
process_interrupts(ss->local_memory);
continue;
}
-rb:
- /*
- * Scan for the next run for the current bands (or a band range
- * that includes a current band).
- */
- if (ss->b_this.band_min == cmd_band_end &&
- io_procs->ftell(bfile) == ss->page_bfile_end_pos
- ) {
- status = EOFC;
- break;
- } {
- int bmin = ss->b_this.band_min;
- int bmax = ss->b_this.band_max;
- int64_t pos = ss->b_this.pos;
+ /* The current command is over. So find the next command in the bfile
+ * that applies to the current band(s) and read that in. */
+ do {
int nread;
+ /* If we hit eof, end! */
+ /* Could this test be moved into the nread < sizeof() test below? */
+ if (ss->b_this.band_min == cmd_band_end &&
+ io_procs->ftell(bfile) == ss->page_bfile_end_pos) {
+ pw->ptr = q;
+ ss->left = left;
+ return EOFC;
+ }
+ /* Read the next cmd_block from the bfile. Each cmd_block contains
+ * the bands to use, and the file position of the END of the data.
+ * We therefore want to read the data from the file position given
+ * in the PREVIOUS record onwards, and compare to the band min/max
+ * given there too. */
+ bmin = ss->b_this.band_min;
+ bmax = ss->b_this.band_max;
+ pos = ss->b_this.pos; /* Record where our data starts! */
nread = io_procs->fread_chars(&ss->b_this, sizeof(ss->b_this), bfile);
if (nread < sizeof(ss->b_this)) {
DISCARD(gs_note_error(gs_error_unregistered)); /* Must not happen. */
return ERRC;
}
- if (!(ss->band_last >= bmin && ss->band_first <= bmax))
- goto rb;
- io_procs->fseek(cfile, pos, SEEK_SET, ss->page_cfname);
- left = (uint) (ss->b_this.pos - pos);
-# ifdef DEBUG
- if (left > 0 && gs_debug_c('L')) {
- if (ss->offset_map_length >= ss->offset_map_max_length) {
- DISCARD(gs_note_error(gs_error_unregistered)); /* Must not happen. */
- return ERRC;
- }
- ss->offset_map[ss->offset_map_length].file_offset = pos;
- ss->offset_map[ss->offset_map_length].buffered = 0;
- ss->offset_map_length++;
+ } while (ss->band_last < bmin || ss->band_first > bmax);
+ /* So let's set up to read the actual command data from cfile. Seek... */
+ io_procs->fseek(cfile, pos, SEEK_SET, ss->page_cfname);
+ left = (uint) (ss->b_this.pos - pos);
+#ifdef DEBUG
+ if (left > 0 && gs_debug_c('L')) {
+ if (ss->offset_map_length >= ss->offset_map_max_length) {
+ DISCARD(gs_note_error(gs_error_unregistered)); /* Must not happen. */
+ return ERRC;
}
-# endif
- if_debug5m('l', ss->local_memory,
- "[l]reading for bands (%d,%d) at bfile %"PRId64", cfile %"PRId64", length %u\n",
- bmin, bmax,
- (io_procs->ftell(bfile) - sizeof(ss->b_this)), (int64_t)pos, left);
+ ss->offset_map[ss->offset_map_length].file_offset = pos;
+ ss->offset_map[ss->offset_map_length].buffered = 0;
+ ss->offset_map_length++;
}
+#endif
+ if_debug5m('l', ss->local_memory,
+ "[l]reading for bands (%d,%d) at bfile %"PRId64", cfile %"PRId64", length %u\n",
+ bmin, bmax,
+ (io_procs->ftell(bfile) - sizeof(ss->b_this)), (int64_t)pos, left);
}
pw->ptr = q;
ss->left = left;
@@ -213,11 +249,43 @@ static const stream_template s_band_read_template = {
};
#ifdef DEBUG
+/* In DEBUG builds, we maintain an "offset_map" within stream_band_read_state,
+ * that allows us to relate offsets within the buffer, to offsets within the
+ * cfile.
+ *
+ * At any given point, for stream_band_read_state *ss:
+ * There are n = ss->offset_map_length records in the table.
+ * offset = 0;
+ * for (i = 0; i < n; i++)
+ * // Offset 'offset' in the buffer corresponds to ss->offset_map[i].file_offset in the file.
+ * offset += ss->offset_map[i].buffered
+ *
+ * As we pull data from the stream, we keep file_offset and buffered up to date. Note that
+ * there are 2 cbuf_size sized buffers in play here. The cmd_buffer has one cbuf_size sized
+ * buffer in it. Data is pulled into that from the stream, which has another cbuf_sized
+ * buffer into it. Accordingly, 'buffered' should never be > 2*cbuf_size = 8192.
+ *
+ * Sometimes we will pull data out of the stream, bypassing the cmd_buffer's buffer. In this
+ * case, we 'skip' data, and record the number of bytes skipped in ss->bytes_skipped. This
+ * should only ever happen when we have already advanced as much as possible (i.e. when the
+ * current offset is in the first record).
+ */
+
+/* Given buffer_offset (an offset within the buffer), return the number of the offset_map
+ * record that contains it. Also fill poffset0 in with the offset of the start of that
+ * record within the buffer. (NOTE, depending on how much of the record has already been
+ * read, some bytes may already have been lost). */
static int
buffer_segment_index(const stream_band_read_state *ss, uint buffer_offset, uint *poffset0)
{
uint i, offset0, offset = 0;
+#ifdef EXTRA_OFFSET_MAP_DEBUGGING
+ dmlprintf1(ss->local_memory, "buffer_segment_index: buffer_offset=%d\n", buffer_offset);
+ for (i = 0; i < ss->offset_map_length; i++) {
+ dmlprintf3(ss->local_memory, " offset_map[%d].file_offset=%"PRId64" buffered=%d\n", i, ss->offset_map[i].file_offset, ss->offset_map[i].buffered);
+ }
+#endif
for (i = 0; i < ss->offset_map_length; i++) {
offset0 = offset;
offset += ss->offset_map[i].buffered;
@@ -226,10 +294,17 @@ buffer_segment_index(const stream_band_read_state *ss, uint buffer_offset, uint
return i;
}
}
+#ifdef EXTRA_OFFSET_MAP_DEBUGGING
+ dmlprintf1(ss->local_memory, "buffer_segment_index fail: buffer_offset=%d not found\n", buffer_offset);
+ exit(1);
+#else
(void)gs_note_error(gs_error_unregistered); /* Must not happen. */
+#endif
return -1;
}
+/* Map from a buffer offset, to the offset of the corresponding byte in the
+ * cfile. */
int64_t
clist_file_offset(const stream_state * st, uint buffer_offset)
{
@@ -237,12 +312,10 @@ clist_file_offset(const stream_state * st, uint buffer_offset)
uint offset0;
int i = buffer_segment_index(ss, buffer_offset, &offset0);
- if (i < 0)
- return -1;
return ss->offset_map[i].file_offset + (uint)(buffer_offset - offset0);
}
-int
+void
top_up_offset_map(stream_state * st, const byte *buf, const byte *ptr, const byte *end)
{
/* NOTE: The clist data are buffered in the clist reader buffer and in the
@@ -250,32 +323,75 @@ top_up_offset_map(stream_state * st, const byte *buf, const byte *ptr, const byt
from s_band_read_process, offset_map corresponds the union of the 2 buffers.
*/
stream_band_read_state *const ss = (stream_band_read_state *) st;
+ uint buffer_offset, offset0, consumed;
+ int i;
- if (!gs_debug_c('L')) {
- return 0;
- } else if (ss->skip_first) {
+#ifdef EXTRA_OFFSET_MAP_DEBUGGING
+ if (ptr < buf || end < ptr || end < buf || end > buf + cbuf_size)
+ {
+ dmlprintf3(ss->local_memory, "Invalid pointers for top_up_offset_map: buf=%p ptr=%p end=%p\n", buf, ptr, end);
+ }
+#endif
+
+ if (!gs_debug_c('L'))
+ return;
+ if (ss->skip_first) {
/* Work around the trick with initializing the buffer pointer with the buffer end. */
ss->skip_first = false;
- return 0;
- } else if (ptr == buf)
- return 0;
- else {
- uint buffer_offset = ptr - buf;
- uint offset0, consumed;
- int i = buffer_segment_index(ss, buffer_offset, &offset0);
-
- if (i < 0)
- return_error(gs_error_unregistered); /* Must not happen. */
- consumed = buffer_offset - offset0;
- ss->offset_map[i].buffered -= consumed;
- ss->offset_map[i].file_offset += consumed;
- if (i) {
- memmove(ss->offset_map, ss->offset_map + i,
+ return;
+ }
+ if (ptr == buf)
+ return;
+
+ /* We know that buf <= ptr <= end <= buf+4096, so uint is quite enough! */
+ buffer_offset = ptr - buf;
+ i = buffer_segment_index(ss, buffer_offset, &offset0);
+
+ consumed = buffer_offset - offset0;
+#ifdef EXTRA_OFFSET_MAP_DEBUGGING
+ dmlprintf3(ss->local_memory, "offset_map: dump %d entries + %d bytes + %d skipped bytes\n", i, consumed, ss->bytes_skipped);
+ if (ss->offset_map[i].buffered < consumed) {
+ dmlprintf2(ss->local_memory, "Invalid update to buffered. B %d %d\n", ss->offset_map[i].buffered, consumed);
+ exit(1);
+ }
+#endif
+ ss->offset_map[i].buffered -= consumed;
+ ss->offset_map[i].file_offset += consumed;
+ ss->bytes_skipped = 0;
+ if (i) {
+ memmove(ss->offset_map, ss->offset_map + i,
(ss->offset_map_length - i) * sizeof(*ss->offset_map));
- ss->offset_map_length -= i;
- }
+ ss->offset_map_length -= i;
}
- return 0;
+}
+
+/* This function is called when data is copied from the stream out into a separate
+ * buffer without going through the usual clist buffers. Essentially data for the
+ * id we are reading at buffer_offset within the buffer is skipped. */
+void adjust_offset_map_for_skipped_data(stream_state *st, uint buffer_offset, uint skipped)
+{
+ uint offset0;
+ stream_band_read_state *const ss = (stream_band_read_state *) st;
+ int i;
+
+ if (!gs_debug_c('L'))
+ return;
+
+ i = buffer_segment_index(ss, buffer_offset, &offset0);
+
+ ss->offset_map[i].buffered -= skipped;
+ ss->offset_map[i].file_offset += skipped;
+}
+
+void
+offset_map_next_data_out_of_band(stream_state *st)
+{
+ stream_band_read_state *const ss = (stream_band_read_state *) st;
+
+ if (!gs_debug_c('L'))
+ return;
+
+ ss->skip_next = 1;
}
#endif /* DEBUG */
@@ -838,6 +954,7 @@ clist_render_rectangle(gx_device_clist *cldev, const gs_int_rect *prect,
page_info.tile_cache_size = ppage->page->tile_cache_size;
page_info.bfile_end_pos = ppage->page->bfile_end_pos;
page_info.band_params = ppage->page->band_params;
+ page_info.line_ptrs_offset = 0;
pinfo = &page_info;
/*
diff --git a/base/gxclrect.c b/base/gxclrect.c
index a97cf0f6..ce817ac8 100644
--- a/base/gxclrect.c
+++ b/base/gxclrect.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 2001-2021 Artifex Software, Inc.
+/* Copyright (C) 2001-2022 Artifex Software, Inc.
All Rights Reserved.
This software is provided AS-IS with no warranty, either express or
@@ -60,8 +60,7 @@ cmd_write_rect_hl_cmd(gx_device_clist_writer * cldev, gx_clist_state * pcls,
cmd_set_rect(pcls->rect);
if (extended_command) {
rcsize = 2 + cmd_size_rect(&pcls->rect);
- code = set_cmd_put_op(&dp, cldev, pcls, cmd_opv_extend, rcsize);
- dp[1] = op;
+ code = set_cmd_put_extended_op(&dp, cldev, pcls, op, rcsize);
dp += 2;
} else {
rcsize = 1 + cmd_size_rect(&pcls->rect);
@@ -70,7 +69,7 @@ cmd_write_rect_hl_cmd(gx_device_clist_writer * cldev, gx_clist_state * pcls,
}
if (code < 0)
return code;
- if_debug5m('L', cldev->memory, "rect hl r%d:%d,%d,%d,%d\n",
+ if_debug5m('L', cldev->memory, "[L] rect hl r%d:%d,%d,%d,%d\n",
rcsize - 1, pcls->rect.x, pcls->rect.y,
pcls->rect.width, pcls->rect.height);
cmd_put_rect(&pcls->rect, dp);
@@ -158,7 +157,7 @@ cmd_write_rect_cmd(gx_device_clist_writer * cldev, gx_clist_state * pcls,
code = set_cmd_put_op(&dp, cldev, pcls, op, rcsize);
if (code < 0)
return code;
- if_debug5m('L', cldev->memory, " r%d:%d,%d,%d,%d\n",
+ if_debug5m('L', cldev->memory, "[L] r%d:%d,%d,%d,%d\n",
rcsize - 1, dx, dwidth, dy, dheight);
cmd_put_rect(&pcls->rect, dp + 1);
}
@@ -891,9 +890,21 @@ copy:{
}
op += compress;
if (dx) {
+ if_debug0m('L', dev->memory,
+ "[L] fake end_run: really set_misc_data_x[2]\n");
*dp++ = cmd_count_op(cmd_opv_set_misc, 2, dev->memory);
*dp++ = cmd_set_misc_data_x + dx;
}
+#ifdef DEBUG
+ if (gs_debug_c('L')) {
+ const char *const *sub = cmd_sub_op_names[op >> 4];
+
+ if (sub)
+ dmlprintf1(dev->memory, "[L] fake end_run: really %s\n", sub[op & 0xf]);
+ else
+ dmlprintf2(dev->memory, "[L] fake end_run: really %s %d\n", cmd_op_names[op >> 4], op & 0xf);
+ }
+#endif
*dp++ = cmd_count_op(op, csize, dev->memory);
/* Store the plane_height */
cmd_putw(0, &dp);
@@ -1013,9 +1024,21 @@ clist_copy_planes(gx_device * dev,
* cmd_put_bits fill the buffer up. */
dp2 = dp;
if (dx) {
+ if_debug0m('L', cdev->memory,
+ "[L] fake end_run: really set_misc_data_x[2]\n");
*dp2++ = cmd_count_op(cmd_opv_set_misc, 2, cdev->memory);
*dp2++ = cmd_set_misc_data_x + dx;
}
+#ifdef DEBUG
+ if (gs_debug_c('L')) {
+ const char *const *sub = cmd_sub_op_names[(op+code) >> 4];
+
+ if (sub)
+ dmlprintf1(cdev->memory, "[L] fake end_run: really %s\n", sub[(op+code) & 0xf]);
+ else
+ dmlprintf2(cdev->memory, "[L] fake end_run: really %s %d\n", cmd_op_names[(op+code) >> 4], (op+code) & 0xf);
+ }
+#endif
*dp2++ = cmd_count_op(op + code, csize, cdev->memory);
cmd_putw(plane_height, &dp2);
cmd_put2w(rx, re.y, &dp2);
@@ -1145,9 +1168,21 @@ copy:{
}
op += compress;
if (dx) {
+ if_debug0m('L', dev->memory,
+ "[L] fake end_run: really set_misc_data_x[2]\n");
*dp++ = cmd_count_op(cmd_opv_set_misc, 2, dev->memory);
*dp++ = cmd_set_misc_data_x + dx;
}
+#ifdef DEBUG
+ if (gs_debug_c('L')) {
+ const char *const *sub = cmd_sub_op_names[op >> 4];
+
+ if (sub)
+ dmlprintf1(dev->memory, "[L] fake end_run: really %s\n", sub[op & 0xf]);
+ else
+ dmlprintf2(dev->memory, "[L] fake end_run: really %s %d\n", cmd_op_names[op >> 4], op & 0xf);
+ }
+#endif
*dp++ = cmd_count_op(op, csize, dev->memory);
cmd_put2w(rx, re.y, &dp);
cmd_put2w(w1, re.height, &dp);
@@ -1222,8 +1257,7 @@ clist_copy_alpha_hl_color(gx_device * dev, const byte * data, int data_x,
if (!re.pcls->color_is_devn) {
byte *dp;
- code = set_cmd_put_op(&dp, cdev, re.pcls, cmd_opv_extend, 2);
- dp[1] = cmd_opv_ext_set_color_is_devn;
+ code = set_cmd_put_extended_op(&dp, cdev, re.pcls, cmd_opv_ext_set_color_is_devn, 2);
dp += 2;
if (code < 0)
return code;
@@ -1275,9 +1309,21 @@ copy:{
}
op += compress;
if (dx) {
+ if_debug0m('L', dev->memory,
+ "[L] fake end_run: really set_misc_data_x[2]\n");
*dp++ = cmd_count_op(cmd_opv_set_misc, 2, dev->memory);
*dp++ = cmd_set_misc_data_x + dx;
}
+#ifdef DEBUG
+ if (gs_debug_c('L')) {
+ const char *const *sub = cmd_sub_op_names[op >> 4];
+
+ if (sub)
+ dmlprintf1(dev->memory, "[L] fake end_run: really %s\n", sub[op & 0xf]);
+ else
+ dmlprintf2(dev->memory, "[L] fake end_run: really %s %d\n", cmd_op_names[op >> 4], op & 0xf);
+ }
+#endif
*dp++ = cmd_count_op(op, csize, dev->memory);
*dp++ = depth;
cmd_put2w(rx, re.y, &dp);
@@ -1350,12 +1396,10 @@ clist_copy_alpha(gx_device * dev, const byte * data, int data_x,
if (re.pcls->color_is_devn) {
byte *dp;
- code = set_cmd_put_op(&dp, cdev, re.pcls, cmd_opv_extend, 1);
- if (code >= 0)
- code = set_cmd_put_op(&dp, cdev, re.pcls,
- cmd_opv_ext_unset_color_is_devn, 1);
+ code = set_cmd_put_extended_op(&dp, cdev, re.pcls, cmd_opv_ext_unset_color_is_devn, 1);
if (code < 0)
return code;
+ dp++;
re.pcls->color_is_alpha = 1;
}
if (color != re.pcls->colors[1]) {
@@ -1407,9 +1451,21 @@ copy:{
}
op += compress;
if (dx) {
+ if_debug0m('L', dev->memory,
+ "[L] fake end_run: really set_misc_data_x[2]\n");
*dp++ = cmd_count_op(cmd_opv_set_misc, 2, dev->memory);
*dp++ = cmd_set_misc_data_x + dx;
}
+#ifdef DEBUG
+ if (gs_debug_c('L')) {
+ const char *const *sub = cmd_sub_op_names[op >> 4];
+
+ if (sub)
+ dmlprintf1(dev->memory, "[L] fake end_run: really %s\n", sub[op & 0xf]);
+ else
+ dmlprintf2(dev->memory, "[L] fake end_run: really %s %d\n", cmd_op_names[op >> 4], op & 0xf);
+ }
+#endif
*dp++ = cmd_count_op(op, csize, dev->memory);
*dp++ = depth;
cmd_put2w(rx, re.y, &dp);
diff --git a/base/gxclthrd.c b/base/gxclthrd.c
index a5835cc1..6af40a7f 100644
--- a/base/gxclthrd.c
+++ b/base/gxclthrd.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 2001-2021 Artifex Software, Inc.
+/* Copyright (C) 2001-2022 Artifex Software, Inc.
All Rights Reserved.
This software is provided AS-IS with no warranty, either express or
@@ -995,7 +995,7 @@ clist_process_page(gx_device *dev, gx_process_page_options_t *options)
return code;
}
- render_plane.index = -1;
+ gx_render_plane_init(&render_plane, dev, -1);
for (y = 0; y < dev->height; y += lines_rasterized)
{
line_count = band_height;
diff --git a/base/gxclutil.c b/base/gxclutil.c
index 1884348e..fbd653e5 100644
--- a/base/gxclutil.c
+++ b/base/gxclutil.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 2001-2021 Artifex Software, Inc.
+/* Copyright (C) 2001-2022 Artifex Software, Inc.
All Rights Reserved.
This software is provided AS-IS with no warranty, either express or
@@ -48,10 +48,13 @@ const char *const *const cmd_sub_op_names[16] =
0, 0, 0, 0,
0, cmd_misc2_op_names, cmd_segment_op_names, cmd_path_op_names
};
-#ifndef GS_THREADSAFE
+const char *cmd_extend_op_names[256] =
+{cmd_extend_op_name_strings};
+
+#ifdef COLLECT_STATS_CLIST
struct stats_cmd_s {
- ulong op_counts[256];
- ulong op_sizes[256];
+ ulong op_counts[512];
+ ulong op_sizes[512];
ulong tile_reset, tile_found, tile_added;
ulong same_band, other_band;
} stats_cmd;
@@ -73,6 +76,25 @@ cmd_count_op(int op, uint size,const gs_memory_t *mem)
}
return op;
}
+int
+cmd_count_extended_op(int op, uint size,const gs_memory_t *mem)
+{
+ stats_cmd.op_counts[cmd_opv_extend]++;
+ stats_cmd.op_sizes[cmd_opv_extend] += size;
+ stats_cmd.op_counts[256+op]++;
+ stats_cmd.op_sizes[256+op] += size;
+ if (gs_debug_c('L')) {
+ const char *ext = cmd_extend_op_names[op];
+
+ if (ext)
+ dmlprintf2(mem, ", %s(%u)\n", ext, size);
+ else
+ dmlprintf2(mem, ", ?0x%02x?(%u)\n", op,
+ size);
+ dmflush(mem);
+ }
+ return op;
+}
void
cmd_uncount_op(int op, uint size)
{
@@ -83,7 +105,7 @@ cmd_uncount_op(int op, uint size)
#endif
/* Print statistics. */
-#if defined(DEBUG_CLIST_STATS) && !defined(GS_THREADSAFE)
+#ifdef COLLECT_STATS_CLIST
void
cmd_print_stats(const gs_memory_t *mem)
{
@@ -125,6 +147,20 @@ cmd_print_stats(const gs_memory_t *mem)
}
dmputs(mem, "\n");
}
+ for (ci = 0x100; ci < 0x200; ci ++) {
+ const char *ext = cmd_extend_op_names[ci-0x100];
+
+ if (ext != NULL) {
+ dmprintf3(mem, "[l] %s (%lu,%lu)\n",
+ ext,
+ stats_cmd.op_counts[ci], stats_cmd.op_sizes[ci]);
+ } else if (stats_cmd.op_counts[ci] || stats_cmd.op_sizes[ci]) {
+ dmprintf3(mem, "[l] ?0x%02x? (%lu,%lu)\n",
+ ci-0x100,
+ stats_cmd.op_counts[ci], stats_cmd.op_sizes[ci]);
+ }
+ dmputs(mem, "\n");
+ }
}
#endif /* DEBUG */
@@ -173,7 +209,7 @@ cmd_write_band(gx_device_clist_writer * cldev, int band_min, int band_max,
clist_file_ptr cfile = cldev->page_cfile;
clist_file_ptr bfile = cldev->page_bfile;
cmd_block cb;
- byte end = cmd_count_op(cmd_end, 1, cldev->memory);
+ byte end;
if (cfile == 0 || bfile == 0)
return_error(gs_error_ioerror);
@@ -195,12 +231,14 @@ cmd_write_band(gx_device_clist_writer * cldev, int band_min, int band_max,
return_error(gs_error_Fatal);
}
#endif
- if_debug2m('L', cldev->memory, "[L]Wrote cmd id=%ld at %"PRId64"\n",
+ if_debug2m('L', cldev->memory, "[L] cmd id=%ld at %"PRId64"\n",
cp->id, cldev->page_info.io_procs->ftell(cfile));
cldev->page_info.io_procs->fwrite_chars(cp + 1, cp->size, cfile);
}
pcl->head = pcl->tail = 0;
}
+ if_debug0m('L', cldev->memory, "[L] adding terminator\n");
+ end = cmd_count_op(cmd_end, 1, cldev->memory);
cldev->page_info.io_procs->fwrite_chars(&end, 1, cfile);
process_interrupts(cldev->memory);
code_b = cldev->page_info.io_procs->ferror_code(bfile);
@@ -287,7 +325,7 @@ cmd_write_buffer(gx_device_clist_writer * cldev, byte cmd_end)
VALGRIND_MAKE_MEM_UNDEFINED(cldev->cbuf, cldev->cend - cldev->cbuf);
#endif
cldev->ccl = 0;
-#if defined(DEBUG_CLIST_STATS) && !defined(GS_THREADSAFE)
+#ifdef COLLECT_STATS_CLIST
if (gs_debug_c('l'))
cmd_print_stats(cldev->memory);
#endif
@@ -308,8 +346,10 @@ cmd_put_list_op(gx_device_clist_writer * cldev, cmd_list * pcl, uint size)
CMD_CHECK_LAST_OP_BLOCK_DEFINED(cldev);
if (size + cmd_headroom > cldev->cend - dp) {
- if ((cldev->error_code =
- cmd_write_buffer(cldev, cmd_opv_end_run)) != 0 ||
+ cldev->error_code = cmd_write_buffer(cldev, cmd_opv_end_run);
+ /* error_code can come back as +ve as a warning that memory
+ * is getting tight. Don't fail on that. */
+ if (cldev->error_code < 0 ||
(size + cmd_headroom > cldev->cend - cldev->cnext)) {
if (cldev->error_code == 0)
cldev->error_code = gs_error_VMerror;
@@ -326,7 +366,7 @@ cmd_put_list_op(gx_device_clist_writer * cldev, cmd_list * pcl, uint size)
lprintf1("cmd_put_list_op error at "PRI_INTPTR"\n", (intptr_t)pcl->tail);
}
#endif
- if_debug2m('L', cldev->memory, ", to id=%ld , offset=%ld",
+ if_debug2m('L', cldev->memory, "[L] id:%ld+%ld",
pcl->tail->id, (long)pcl->tail->size);
pcl->tail->size += size;
} else {
@@ -335,6 +375,21 @@ cmd_put_list_op(gx_device_clist_writer * cldev, cmd_list * pcl, uint size)
cmd_prefix *cp = (cmd_prefix *)
(dp + ((cldev->cbuf - dp) & (ARCH_ALIGN_PTR_MOD - 1)));
+ cp->id = cldev->ins_count++;
+#ifdef DEBUG
+ if (gs_debug_c('L'))
+ {
+ if (pcl == cldev->band_range_list)
+ dmlprintf2(cldev->memory, "[L]Change to bands=(%d->%d)", cldev->band_range_min, cldev->band_range_max);
+ else
+ dmlprintf1(cldev->memory, "[L]Change to band=%d",
+ (int)(((intptr_t)pcl-(intptr_t)&cldev->states->list)/sizeof(*cldev->states)));
+
+ dmlprintf2(cldev->memory, ", align=%d\n[L] id:%ld+0",
+ (int)((char *)cp-(char *)dp), cp->id);
+ }
+#endif
+
cmd_count_add1(stats_cmd.other_band);
dp = (byte *) (cp + 1);
if (pcl->tail != 0) {
@@ -352,14 +407,28 @@ cmd_put_list_op(gx_device_clist_writer * cldev, cmd_list * pcl, uint size)
pcl->tail = cp;
cldev->ccl = pcl;
cp->size = size;
- cp->id = cldev->ins_count;
- if_debug1m('L', cldev->memory, ", id=%ld ", cldev->ins_count);
- cldev->ins_count++;
}
cldev->cnext = dp + size;
return dp;
}
+byte *
+cmd_put_list_extended_op(gx_device_clist_writer *cldev, cmd_list *pcl, int op, uint size)
+{
+ byte *dp = cmd_put_list_op(cldev, pcl, size);
+
+ if (dp) {
+ dp[1] = op;
+
+ if (gs_debug_c('L')) {
+ clist_debug_op(cldev->memory, dp);
+ dmlprintf1(cldev->memory, "[%u]\n", size);
+ }
+ }
+
+ return dp;
+}
+
/* Request a space in the buffer.
Writes out the buffer if necessary.
Returns the size of available space. */
@@ -369,6 +438,8 @@ cmd_get_buffer_space(gx_device_clist_writer * cldev, gx_clist_state * pcls, uint
CMD_CHECK_LAST_OP_BLOCK_DEFINED(cldev);
if (size + cmd_headroom > cldev->cend - cldev->cnext) {
+ /* error_code can come back as +ve as a warning that memory
+ * is getting tight. Don't fail on that. */
cldev->error_code = cmd_write_buffer(cldev, cmd_opv_end_run);
if (cldev->error_code < 0) {
return cldev->error_code;
@@ -381,9 +452,6 @@ cmd_get_buffer_space(gx_device_clist_writer * cldev, gx_clist_state * pcls, uint
byte *
cmd_put_op(gx_device_clist_writer * cldev, gx_clist_state * pcls, uint size)
{
- if_debug3m('L', cldev->memory, "[L]band %d: size=%u, left=%u",
- (int)(pcls - cldev->states),
- size, 0);
return cmd_put_list_op(cldev, &pcls->list, size);
}
#endif
@@ -395,18 +463,21 @@ cmd_put_range_op(gx_device_clist_writer * cldev, int band_min, int band_max,
{
CMD_CHECK_LAST_OP_BLOCK_DEFINED(cldev);
- if_debug4m('L', cldev->memory, "[L]band range(%d,%d): size=%u, left=%u",
- band_min, band_max, size, 0);
if (cldev->ccl != 0 &&
(cldev->ccl != cldev->band_range_list ||
band_min != cldev->band_range_min ||
band_max != cldev->band_range_max)
) {
- if ((cldev->error_code = cmd_write_buffer(cldev, cmd_opv_end_run)) != 0) {
- return 0;
+ cldev->error_code = cmd_write_buffer(cldev, cmd_opv_end_run);
+ /* error_code can come back as +ve as a warning that memory
+ * is getting tight. Don't fail on that. */
+ if (cldev->error_code < 0) {
+ return NULL;
}
cldev->band_range_min = band_min;
cldev->band_range_max = band_max;
+ if_debug2m('L', cldev->memory, "[L]Band range(%d,%d)\n",
+ band_min, band_max);
}
return cmd_put_list_op(cldev, cldev->band_range_list, size);
}
@@ -693,6 +764,36 @@ cmd_set_tile_phase(gx_device_clist_writer * cldev, gx_clist_state * pcls,
return cmd_set_tile_phase_generic(cldev, pcls, px, py, false);
}
+int
+cmd_set_screen_phase_generic(gx_device_clist_writer * cldev, gx_clist_state * pcls,
+ int px, int py, gs_color_select_t color_select,
+ bool all_bands)
+{
+ int pcsize;
+ byte *dp;
+ int code;
+
+ pcsize = 1 + cmd_size2w(px, py);
+ if (all_bands)
+ code = set_cmd_put_all_op(&dp, cldev, (byte)cmd_opv_set_screen_phaseT + color_select, pcsize);
+ else
+ code = set_cmd_put_op(&dp, cldev, pcls, (byte)cmd_opv_set_screen_phaseT + color_select, pcsize);
+ if (code < 0)
+ return code;
+ ++dp;
+ pcls->screen_phase[color_select].x = px;
+ pcls->screen_phase[color_select].y = py;
+ cmd_putxy(pcls->screen_phase[color_select], &dp);
+ return 0;
+}
+
+int
+cmd_set_screen_phase(gx_device_clist_writer * cldev, gx_clist_state * pcls,
+ int px, int py, gs_color_select_t color_select)
+{
+ return cmd_set_screen_phase_generic(cldev, pcls, px, py, color_select, false);
+}
+
/* Write a command to enable or disable the logical operation. */
int
cmd_put_enable_lop(gx_device_clist_writer * cldev, gx_clist_state * pcls,
@@ -777,14 +878,13 @@ cmd_put_params(gx_device_clist_writer *cldev,
gs_param_list_serialize(param_list, local_buf, sizeof(local_buf));
if (param_length > 0) {
/* Get cmd buffer space for serialized */
- code = set_cmd_put_all_op(&dp, cldev, cmd_opv_extend,
+ code = set_cmd_put_all_extended_op(&dp, cldev, cmd_opv_ext_put_params,
2 + sizeof(unsigned) + param_length);
if (code < 0)
return code;
/* write param list to cmd list: needs to all fit in cmd buffer */
if_debug1m('l', cldev->memory, "[l]put_params, length=%d\n", param_length);
- dp[1] = cmd_opv_ext_put_params;
dp += 2;
memcpy(dp, &param_length, sizeof(unsigned));
dp += sizeof(unsigned);
@@ -869,3 +969,203 @@ cmd_read_matrix(gs_matrix * pmat, const byte * cbp)
sget_matrix(&s, pmat);
return cbp + stell(&s);
}
+
+/*
+Some notes on understanding the output of -ZL.
+
+The examples here are given from:
+ gs -o out.png -r96 -sDEVICE=png16m -dBandHeight=20 -dMaxBitmap=1000 -ZL examples/tiger.eps
+
+Not every line in that output is explained here!
+
+When writing a command list, we gather up a list of 'commands' into the
+clist (cfile). We then have a series of indexes that says which of these
+commands is needed for each band (bfile).
+
+So, while writing, we can be writing for 1 band, or for a range of bands
+at any given time. Commands that follow one another for the same band
+(or range of bands) will be crammed together into a single command block.
+These command blocks are each given an id for debugging purposes. When
+the set of bands for which we are writing changes, the id changes.
+
+Somewhere towards the top of the output (i.e. within a
+hundred lines or so) you should see:
+
+ [L]Resetting: Band range(0,56)
+
+So, we are writing some commands that will apply to bands 0 to 56.
+
+ [L] id:0+0, put_fill_dcolor(13)
+ [L] id:0+13, fill_rect 0(5)
+
+So, for id 0, at 0 bytes offset, we first have a put_fill_dcolor command
+that takes 13 bytes. Then, still in id 0, at 13 bytes offset, we have
+a fill_rect that takes 5 bytes.
+
+Then we change the band:
+
+ [L]Change to band=0, align=6
+
+When we change the band, we change to a new command block, and the id
+changes - so you'll see the subsequent entries listed with id 1.
+Subsequent command blocks are aligned, so you'll see some alignment
+(padding) bytes used - here 6 bytes.
+
+ [L] id:1+0, set_misc2(6)
+ [L] id:1+6, begin_clip(1)
+ [L] id:1+7, fill_rect 0(7)
+
+Here we see various commands, each for id 1, at the expected offsets
+given their respective sizes. Then we get some debugging from elsewhere
+in the clist system.
+
+[L] r6:0,793,0,1123
+
+This indicates details about the fill_rect (in particular the way
+the fill_rect is encoded, and the parameters it uses). Such lines can
+be differentiated fairly easily from the command block writing code
+as they do not start with 'id:'.
+
+We continue with more commands:
+
+ [L] id:1+14, end_clip(1)
+ [L] id:1+15, put_fill_dcolor(13)
+ [L] rmoveto:0: 0 0
+ [L] id:1+28, rmoveto(5)
+ [L] rlineto:0: 0 1123
+ [L] id:1+33, vlineto(4)
+ [L] rlineto:0: 793 0
+ [L] id:1+37, hlineto(3)
+ [L] rlineto:0: 0 -1123
+ [L] id:1+40, vlineto(4)
+ [L] closepath:0:
+ [L] id:1+44, closepath(1)
+ [L] id:1+45, fill(1)
+
+Here we note a couple of things. The clist command encoding system
+works by first reserving the required number of bytes for a command,
+then filling in those bytes. Because lots of parameters vary in length
+according to their particular value, we often have to do a lot of the
+encoding work twice; once to count how many bytes we need to reserve
+and then once to fill in the block.
+
+The command buffer debug lines (i.e. the ones starting 'id:') are output
+at the point the buffer is reserved. Other debug lines for the same
+command can happen either before or after these lines. So the 'r6' line
+happened after the command reservation that it corresponded to, whereas
+the 'rmoveto' (and others) above happen before the command reservation.
+This can be confusing.
+
+Another confusing thing is that the commands can appear to change. The
+non-command block debug above mentions 4 rlineto's, but these all
+appear in the command list as vlineto or hlineto. This is because
+the command block queueing attempts to be smart and to simplify the
+sequence of commands. This can mean pulling a command into a previous
+one, or (as in this case) realising that a simpler encoding can be
+used.
+
+And we continue...
+
+ [L]Change to band=1, align=2
+ [L] id:2+0, set_misc2(6)
+ [L] id:2+6, begin_clip(1)
+
+After a while, we move to an output phase where things are actually
+written to the file. These come in groups like:
+
+ [l]writing for bands (0,56) at 0
+ [L] cmd id=0 at 0
+ [L] adding terminator, end_run(1)
+
+So this is writing out a note that bands 0 to 56 should execute the following
+id's. We then write out the id's in question (id 0, goes into cfile at offset 0).
+This is then terminated by a single byte 'end_run' marker.
+
+This repeats, with the file offsets increasing as we go. Some cases have more
+than one id, for instance:
+
+ [l]writing for bands (7,7) at 640
+ [L] cmd id=8 at 640
+ [L] cmd id=194 at 685
+ [L] cmd id=215 at 785
+ [L] cmd id=712 at 928
+ [L] cmd id=720 at 969
+ [L] cmd id=726 at 986
+ [L] cmd id=732 at 1016
+ [L] cmd id=809 at 1046
+ [L] cmd id=817 at 1185
+ [L] cmd id=822 at 1258
+ [L] adding terminator, end_page(1)
+
+So, by matching up the id's in this section, together with their offsets,
+we can find out what command was written there.
+
+For instance, suppose we hit a problem when reading the cfile at offset 1029.
+We can look to see that this is id=732 + 13 bytes. We can look back in the
+output to where id:732 was being output, and we see:
+
+ [L] id:732+13, rmoveto(5)
+
+Most clist bugs tend to involve the reader and writer disagreeing on how
+many bytes a given command should be and getting out of step. By looking at
+where the writer puts stuff, and the reader is trying to read stuff, we can
+hopefully spot this.
+
+The writing phase ends with:
+
+ [l]writing pseudo band 57 cb pos 92521
+ [l]writing 1824 bytes into cfile at 92521
+ [l]writing end for bands (-1,-1) at 94345
+
+FIXME: Explain the pseudo band.
+
+The next section of the logging shows the reader reading. For each band
+in turn, we'll see a section where we announce what band we are
+rendering:
+
+ [l]rendering bands (0,0)
+
+Then we will read through the different band records that were output
+above.
+
+ [l]reading for bands (0,0) at bfile 0, cfile 0, length 0
+ [l]reading for bands (0,56) at bfile 16, cfile 0, length 19
+ [l]reading for bands (0,0) at bfile 32, cfile 19, length 47
+
+If we look back, we can see that the first of these corresponded to an
+empty record. The second of these corresponded to the write of
+"cmd id=0 at 0", and the third corresponds to the write of
+"cmd id=1 at 19".
+
+When these records have been read in, we actually execute the data. Each
+line gives the offset from which the command was read (which allows us
+to track it back to what it *should* be in the case of a mismatch),
+and is followed by the command name, and a selection of its parameters:
+
+ [L] 0: put_fill_dcolor cmd_opv_ext_put_drawing_color
+ [L] 13: fill_rect 0 x=0 y=0 w=0 h=0
+ [L] 18: end_run
+ [L] 19: set_misc2
+ [L] CJ=-1 AC=1 SA=1
+ [L] BM=0 TK=1 OPM=0 OP=0 op=0 RI=1
+ [L] 25: begin_clip
+ [L] 26: fill_rect 0 x=0 y=0 w=793 h=1123
+ [L] 33: end_clip
+ [L] 34: put_fill_dcolor cmd_opv_ext_put_drawing_color
+ [L] 47: rmoveto (0,0) 0 0
+ [L] 52: vlineto 1123
+ [L] 56: hlineto 793
+ [L] 59: vlineto -1123
+ [L] 63: closepath
+ [L] 64: fill
+ [L] 65: end_page
+
+Then we repeat gathering the data for the next band:
+
+ [l]rendering bands (1,1)
+ [l]reading for bands (0,56) at bfile 16, cfile 0, length 19
+ [l]reading for bands (1,1) at bfile 48, cfile 66, length 46
+
+and so on.
+
+*/
diff --git a/base/gxcmap.c b/base/gxcmap.c
index a3c2443a..067d18b7 100644
--- a/base/gxcmap.c
+++ b/base/gxcmap.c
@@ -934,6 +934,7 @@ cmap_gray_halftoned(frac gray, gx_device_color * pdc,
/* apply the transfer function(s); convert to color values */
if (pgs->effective_transfer_non_identity_count == 0) {
+ /* No transfer function to apply */
} else if (dev->color_info.polarity == GX_CINFO_POLARITY_ADDITIVE)
for (i = 0; i < ncomps; i++)
cm_comps[i] = gx_map_color_frac(pgs,
@@ -2377,6 +2378,7 @@ cmap_transfer(gx_color_value *pconc, const gs_gstate * pgs, gx_device * dev)
/* apply the transfer function(s) */
if (pgs->effective_transfer_non_identity_count == 0) {
+ /* No transfer function to apply */
} else if (dev->color_info.polarity == GX_CINFO_POLARITY_ADDITIVE)
for (i = 0; i < ncomps; i++)
pconc[i] = frac2cv(gx_map_color_frac(pgs,
diff --git a/base/gxcpath.c b/base/gxcpath.c
index 4cec26c7..437b0654 100644
--- a/base/gxcpath.c
+++ b/base/gxcpath.c
@@ -132,6 +132,8 @@ cpath_init_rectangle(gx_clip_path * pcpath, gs_fixed_rect * pbox)
gx_clip_list_from_rectangle(&pcpath->rect_list->list, pbox);
pcpath->inner_box = *pbox;
pcpath->path_valid = false;
+ pcpath->path_fill_adjust.x = 0;
+ pcpath->path_fill_adjust.y = 0;
pcpath->path.bbox = *pbox;
gx_cpath_set_outer_box(pcpath);
pcpath->id = gs_next_ids(pcpath->path.memory, 1); /* path changed => change id */
@@ -151,6 +153,7 @@ cpath_share_own_contents(gx_clip_path * pcpath, const gx_clip_path * shared)
{
pcpath->inner_box = shared->inner_box;
pcpath->path_valid = shared->path_valid;
+ pcpath->path_fill_adjust = shared->path_fill_adjust;
pcpath->outer_box = shared->outer_box;
pcpath->id = shared->id;
pcpath->cached = NULL;
@@ -484,6 +487,8 @@ gx_cpath_to_path(gx_clip_path * pcpath, gx_path * ppath)
if (code < 0)
return code;
pcpath->path_valid = true;
+ pcpath->path_fill_adjust.x = 0;
+ pcpath->path_fill_adjust.y = 0;
}
return gx_path_assign_preserve(ppath, &pcpath->path);
}
@@ -705,6 +710,7 @@ gx_cpath_intersect_with_params(gx_clip_path *pcpath, /*const*/ gx_path *ppath_or
/* The path is valid; otherwise, defer constructing it. */
gx_path_assign_preserve(&pcpath->path, ppath);
pcpath->path_valid = true;
+ pcpath->path_fill_adjust = params != NULL ? params->adjust : pgs->fill_adjust;
}
} else {
/* New clip path is nontrivial. Intersect the slow way. */
@@ -737,6 +743,7 @@ gx_cpath_intersect_with_params(gx_clip_path *pcpath, /*const*/ gx_path *ppath_or
if (path_valid) {
gx_path_assign_preserve(&pcpath->path, ppath_orig);
pcpath->path_valid = true;
+ pcpath->path_fill_adjust = params != NULL ? params->adjust : pgs->fill_adjust;
pcpath->rule = rule;
} else {
code = gx_cpath_path_list_new(pcpath->path.memory, NULL, rule,
diff --git a/base/gxdcolor.c b/base/gxdcolor.c
index 87de8001..0a5d4b5d 100644
--- a/base/gxdcolor.c
+++ b/base/gxdcolor.c
@@ -318,13 +318,15 @@ gx_dc_no_write(
static int
gx_dc_no_read(
gx_device_color * pdevc,
- const gs_gstate * pgs, /* ignored */
+ const gs_gstate * pgs, /* ignored */
const gx_device_color * prior_devc, /* ignored */
const gx_device * dev, /* ignored */
int64_t offset, /* ignored */
const byte * pdata, /* ignored */
uint size, /* ignored */
- gs_memory_t * mem ) /* ignored */
+ gs_memory_t * mem, /* ignored */
+ int x0, /* ignored */
+ int y0) /* ignored */
{
pdevc->type = gx_dc_type_none;
return 0;
@@ -345,13 +347,15 @@ gx_dc_cannot_write(
int
gx_dc_cannot_read(
gx_device_color * pdevc,
- const gs_gstate * pgs, /* ignored */
+ const gs_gstate * pgs, /* ignored */
const gx_device_color * prior_devc, /* ignored */
const gx_device * dev, /* ignored */
int64_t offset, /* ignored */
const byte * pdata, /* ignored */
uint size, /* ignored */
- gs_memory_t * mem ) /* ignored */
+ gs_memory_t * mem, /* ignored */
+ int x0, /* ignored */
+ int y0) /* ignored */
{
return_error(gs_error_unknownerror);
}
@@ -401,13 +405,15 @@ gx_dc_null_equal(const gx_device_color * pdevc1, const gx_device_color * pdevc2)
static int
gx_dc_null_read(
gx_device_color * pdevc,
- const gs_gstate * pgs, /* ignored */
+ const gs_gstate * pgs, /* ignored */
const gx_device_color * prior_devc, /* ignored */
const gx_device * dev, /* ignored */
int64_t offset, /* ignored */
const byte * pdata, /* ignored */
uint size, /* ignored */
- gs_memory_t * mem ) /* ignored */
+ gs_memory_t * mem, /* ignored */
+ int x0, /* ignored */
+ int y0) /* ignored */
{
pdevc->type = gx_dc_type_null;
return 0;
@@ -768,13 +774,15 @@ gx_devn_read_color(
static int
gx_dc_devn_read(
gx_device_color * pdevc,
- const gs_gstate * pgs, /* ignored */
+ const gs_gstate * pgs, /* ignored */
const gx_device_color * prior_devc, /* ignored */
const gx_device * dev,
int64_t offset, /* ignored */
const byte * pdata,
uint size,
- gs_memory_t * mem ) /* ignored */
+ gs_memory_t * mem, /* ignored */
+ int x0, /* ignored */
+ int y0) /* ignored */
{
pdevc->type = gx_dc_type_devn;
return gx_devn_read_color(&(pdevc->colors.devn.values[0]), &(pdevc->tag),
@@ -977,13 +985,15 @@ gx_dc_pure_write(
static int
gx_dc_pure_read(
gx_device_color * pdevc,
- const gs_gstate * pgs, /* ignored */
+ const gs_gstate * pgs, /* ignored */
const gx_device_color * prior_devc, /* ignored */
const gx_device * dev,
int64_t offset, /* ignored */
const byte * pdata,
uint size,
- gs_memory_t * mem ) /* ignored */
+ gs_memory_t * mem, /* ignored */
+ int x0, /* ignored */
+ int y0) /* ignored */
{
pdevc->type = gx_dc_type_pure;
return gx_dc_read_color(&pdevc->colors.pure, dev, pdata, size);
diff --git a/base/gxdcolor.h b/base/gxdcolor.h
index 8a1f4135..fef7f95c 100644
--- a/base/gxdcolor.h
+++ b/base/gxdcolor.h
@@ -214,7 +214,7 @@ struct gx_device_color_type_s {
#define dev_color_proc_read(proc)\
int proc(gx_device_color *pdevc, const gs_gstate * pgs,\
const gx_device_color *prior_devc, const gx_device * dev, int64_t offset,\
- const byte *data, uint size, gs_memory_t *mem)
+ const byte *data, uint size, gs_memory_t *mem, int x0, int y0)
dev_color_proc_read((*read));
/*
diff --git a/base/gxdevcli.h b/base/gxdevcli.h
index 9364349c..2476ea33 100644
--- a/base/gxdevcli.h
+++ b/base/gxdevcli.h
@@ -1295,7 +1295,7 @@ typedef struct gs_fill_attributes_s {
* start of src/gsequivc.c.
*/
#define dev_t_proc_update_spot_equivalent_colors(proc, dev_t)\
- int proc(dev_t *dev, const gs_gstate * pgs)
+ int proc(dev_t *dev, const gs_gstate * pgs, const gs_color_space *pcs)
#define dev_proc_update_spot_equivalent_colors(proc)\
dev_t_proc_update_spot_equivalent_colors(proc, gx_device)
diff --git a/base/gxdevice.h b/base/gxdevice.h
index ce69c72d..d9b0134d 100644
--- a/base/gxdevice.h
+++ b/base/gxdevice.h
@@ -278,7 +278,9 @@ dev_proc_get_alpha_bits(gx_default_get_alpha_bits);
dev_proc_copy_alpha(gx_no_copy_alpha); /* gives error */
dev_proc_copy_alpha(gx_default_copy_alpha);
dev_proc_fill_path(gx_default_fill_path);
+dev_proc_fill_path(gx_default_fill_path_shading_or_pattern);
dev_proc_stroke_path(gx_default_stroke_path);
+dev_proc_stroke_path(gx_default_stroke_path_shading_or_pattern);
dev_proc_fill_mask(gx_default_fill_mask);
dev_proc_fill_trapezoid(gx_default_fill_trapezoid);
dev_proc_fill_parallelogram(gx_default_fill_parallelogram);
@@ -434,6 +436,10 @@ void gx_device_forward_color_procs(gx_device_forward *);
*/
void check_device_separable(gx_device * dev);
/*
+ * Is this a contone device?
+ */
+bool device_is_contone(gx_device* pdev);
+/*
* Check if the device's encode_color routine uses a pdf14 compatible
* encoding. For more info see the routine's header.
*/
@@ -650,9 +656,6 @@ int gdev_begin_output_media(gs_param_list * mlist, gs_param_dict * pdict,
int gdev_write_output_media(int index, gs_param_dict * pdict,
const gdev_output_media_t * pom);
-/* Can be called from set user params */
-void gx_default_put_icc_dir(gs_param_string *icc_pro, gx_device * dev);
-
int gdev_end_output_media(gs_param_list * mlist, gs_param_dict * pdict);
void gx_device_request_leadingedge(gx_device *dev, int le_req);
@@ -679,4 +682,7 @@ int gx_subclass_composite(gx_device *dev, gx_device **pcdev, const gs_composite_
gs_gstate *pgs, gs_memory_t *memory, gx_device *cdev);
void gx_subclass_fill_in_page_procs(gx_device *dev);
+int gx_init_non_threadsafe_device(gx_device *dev);
+
+
#endif /* gxdevice_INCLUDED */
diff --git a/base/gxdevsop.h b/base/gxdevsop.h
index 0131d0e2..cfde902a 100644
--- a/base/gxdevsop.h
+++ b/base/gxdevsop.h
@@ -1,4 +1,4 @@
-/* Copyright (C) 2001-2021 Artifex Software, Inc.
+/* Copyright (C) 2001-2022 Artifex Software, Inc.
All Rights Reserved.
This software is provided AS-IS with no warranty, either express or
@@ -442,6 +442,14 @@ enum {
/* Determine if a given device is a null device. Returns 1 if it is. */
gxdso_is_null_device,
+ /* Get information about pdf14 device overprint simulation state
+ * data = unsigned char[2], [0] is overprint_sim_push [1] is num_spot_colors_int
+ * size = sizeof(unsigned char[2])
+ * Returns 1 if returned values are valid
+ * 0 otherwise.
+ */
+ gxdso_overprintsim_state,
+
/* Add new gxdso_ keys above this. */
gxdso_pattern__LAST
};
diff --git a/base/gxdhtserial.c b/base/gxdhtserial.c
index cd851951..fdbc6a30 100644
--- a/base/gxdhtserial.c
+++ b/base/gxdhtserial.c
@@ -110,35 +110,30 @@ gx_ht_read_tf(
--size;
tf_type = (gx_ht_tf_type_t)*data++;
- /* if no transfer function, exit now */
- if (tf_type == gx_ht_tf_none) {
- *ppmap = 0;
+ /* If no transfer function or identity set to NULL */
+ if (tf_type == gx_ht_tf_none || tf_type == gx_ht_tf_identity) {
+ *ppmap = NULL;
return 1;
}
- /* allocate a transfer map */
+ /* If something strange then exit. Likely clist issue */
+ if (tf_type != gx_ht_tf_complete || size < sizeof(pmap->values))
+ return_error(gs_error_rangecheck);
+
+ /* Otherwise we have a real map. Allocate a transfer map */
rc_alloc_struct_1( pmap,
gx_transfer_map,
&st_transfer_map,
mem,
return_error(gs_error_VMerror),
"gx_ht_read_tf" );
-
pmap->id = gs_next_ids(mem, 1);
pmap->closure.proc = 0;
pmap->closure.data = 0;
- if (tf_type == gx_ht_tf_identity) {
- gx_set_identity_transfer(pmap);
- return 1;
- } else if (tf_type == gx_ht_tf_complete && size >= sizeof(pmap->values)) {
- memcpy(pmap->values, data, sizeof(pmap->values));
- pmap->proc = gs_mapped_transfer;
- *ppmap = pmap;
- return 1 + sizeof(pmap->values);
- } else {
- rc_decrement(pmap, "gx_ht_read_tf");
- return_error(gs_error_rangecheck);
- }
+ memcpy(pmap->values, data, sizeof(pmap->values));
+ pmap->proc = gs_mapped_transfer;
+ *ppmap = pmap;
+ return 1 + sizeof(pmap->values);
}
/*
diff --git a/base/gxdownscale.c b/base/gxdownscale.c
index 4e36c81a..1f8138cb 100644
--- a/base/gxdownscale.c
+++ b/base/gxdownscale.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 2001-2021 Artifex Software, Inc.
+/* Copyright (C) 2001-2022 Artifex Software, Inc.
All Rights Reserved.
This software is provided AS-IS with no warranty, either express or
@@ -19,6 +19,7 @@
#include "string_.h"
#include "gdevprn.h"
#include "assert_.h"
+#include "gsicc_cache.h"
#ifdef WITH_CAL
#include "cal_ets.h"
@@ -2046,11 +2047,17 @@ getbits_planar_line(gx_downscale_liner *liner_, void *output, int row)
code = (*dev_proc(liner->dev, get_bits_rectangle))(liner->dev, &rect, &params2);
- /* get_bits_rectangle doesn't like doing planar copies, only return
- * pointers. This is a problem for us, so fudge it here. */
- for (i = 0; i < liner->num_comps; i++)
- if (params->data[i] != params2.data[1])
- memcpy(params->data[i], params2.data[i], n);
+ /* If our caller can't accept a pointer, we need to do some work. */
+ if (params->options & GB_RETURN_POINTER) {
+ for (i = 0; i < liner->num_comps; i++)
+ params->data[i] = params2.data[i];
+ } else {
+ /* get_bits_rectangle doesn't like doing planar copies, only return
+ * pointers. This is a problem for us, so fudge it here. */
+ for (i = 0; i < liner->num_comps; i++)
+ if (params->data[i] != params2.data[i])
+ memcpy(params->data[i], params2.data[i], n);
+ }
return code;
}
@@ -2268,23 +2275,25 @@ int gx_downscaler_init_planar_cm(gx_downscaler_t *ds,
ds->factor = factor;
ds->num_planes = num_comps;
ds->src_bpc = src_bpc;
+ ds->dst_bpc = dst_bpc;
ds->scaled_data = NULL;
ds->scaled_span = bitmap_raster((dst_bpc*dev->width*upfactor + downfactor-1)/downfactor);
ds->apply_cm = apply_cm;
ds->apply_cm_arg = apply_cm_arg;
- ds->early_cm = dst_bpc < src_bpc;
+ ds->early_cm = dst_bpc < src_bpc || (dst_bpc == src_bpc && post_cm_num_comps < num_comps);
ds->post_cm_num_comps = post_cm_num_comps;
ds->do_skew_detection = params->do_skew_detection;
if (apply_cm) {
- for (i = 0; i < post_cm_num_comps; i++) {
- ds->post_cm[i] = gs_alloc_bytes(dev->memory,
- (size_t)post_span * downfactor,
- "gx_downscaler(planar_data)");
- if (ds->post_cm[i] == NULL) {
- code = gs_note_error(gs_error_VMerror);
- goto cleanup;
- }
+ ds->post_cm[0] = gs_alloc_bytes(dev->memory,
+ (size_t)post_span * downfactor * post_cm_num_comps,
+ "gx_downscaler(planar_data)");
+ if (ds->post_cm[0] == NULL) {
+ code = gs_note_error(gs_error_VMerror);
+ goto cleanup;
+ }
+ for (i = 1; i < post_cm_num_comps; i++) {
+ ds->post_cm[i] = ds->post_cm[i-1] + (size_t)post_span * downfactor;
}
}
@@ -2307,14 +2316,11 @@ int gx_downscaler_init_planar_cm(gx_downscaler_t *ds,
memcpy(&ds->params, gb_params, sizeof(*gb_params));
ds->params.raster = span;
- for (i = 0; i < num_comps; i++) {
- ds->pre_cm[i] = gs_alloc_bytes(dev->memory,
- (size_t)span * downfactor,
- "gx_downscaler(planar_data)");
- if (ds->pre_cm[i] == NULL) {
- code = gs_note_error(gs_error_VMerror);
- goto cleanup;
- }
+ ds->pre_cm[0] = gs_alloc_bytes(dev->memory,
+ (size_t)span * downfactor * num_comps,
+ "gx_downscaler(planar_data)");
+ for (i = 1; i < num_comps; i++) {
+ ds->pre_cm[i] = ds->pre_cm[i-1] + (size_t)span * downfactor;
}
#ifdef WITH_CAL
@@ -2462,7 +2468,9 @@ int gx_downscaler_init_planar_cm(gx_downscaler_t *ds,
code = gs_note_error(gs_error_rangecheck);
goto cleanup;
} else if (dst_bpc == 1) {
- if (mfs > 1)
+ if (src_bpc == dst_bpc)
+ core = NULL;
+ else if (mfs > 1)
core = &down_core_mfs;
else if (factor == 4)
core = &down_core_4;
@@ -2913,19 +2921,15 @@ gx_downscaler_init_cm_halftone(gx_downscaler_t *ds,
void gx_downscaler_fin(gx_downscaler_t *ds)
{
- int plane;
-
if (ds->dev == NULL)
return;
- for (plane=0; plane < GS_CLIENT_COLOR_MAX_COMPONENTS; plane++) {
- gs_free_object(ds->dev->memory, ds->pre_cm[plane],
- "gx_downscaler(planar_data)");
- gs_free_object(ds->dev->memory, ds->post_cm[plane],
- "gx_downscaler(planar_data)");
- ds->pre_cm[plane] = NULL;
- ds->post_cm[plane] = NULL;
- }
+ gs_free_object(ds->dev->memory, ds->pre_cm[0],
+ "gx_downscaler(planar_data)");
+ gs_free_object(ds->dev->memory, ds->post_cm[0],
+ "gx_downscaler(planar_data)");
+ ds->pre_cm[0] = NULL;
+ ds->post_cm[0] = NULL;
ds->num_planes = 0;
gs_free_object(ds->dev->memory, ds->mfs_data, "gx_downscaler(mfs)");
@@ -3018,11 +3022,14 @@ int gx_downscaler_get_bits_rectangle(gx_downscaler_t *ds,
int subrow;
int copy = (ds->dev->width * ds->src_bpc + 7)>>3;
int i, j, n;
+ int num_planes_to_downscale;
n = ds->dev->width;
if (ds->dev->color_info.depth > ds->dev->color_info.num_components*8+8)
n *= 2;
+ n = (n*ds->src_bpc+7)/8;
+
gx_downscaler_decode_factor(factor, &upfactor, &downfactor);
subrow = row % upfactor;
@@ -3059,11 +3066,10 @@ int gx_downscaler_get_bits_rectangle(gx_downscaler_t *ds,
params->options &= ~GB_RETURN_POINTER;
buffer = saved.data;
} else
- buffer = ds->pre_cm;
- code = ds->apply_cm(ds->apply_cm_arg, params->data, buffer, ds->dev->width, rect.q.y - rect.p.y, params->raster);
- if ((saved.options & GB_RETURN_COPY) == 0)
- for (i = 0; i < ds->num_planes; i++)
- params->data[i] = buffer[i];
+ buffer = ds->post_cm;
+ code = ds->apply_cm(ds->apply_cm_arg, buffer, params->data, ds->dev->width, rect.q.y - rect.p.y, params->raster);
+ for (i = 0; i < ds->post_cm_num_comps; i++)
+ params->data[i] = buffer[i];
}
return code;
}
@@ -3103,42 +3109,56 @@ int gx_downscaler_get_bits_rectangle(gx_downscaler_t *ds,
for (j = 0; j < ds->num_planes; j++)
memcpy(ds->pre_cm[j] + i*ds->span, ds->pre_cm[j] + (i-1)*ds->span, copy);
+ /* All the data is now in ds->pre_cm. Update params2.data so that this points to
+ * it. From here on in, we will keep params2.data pointing to whereever the
+ * latest processed version of the data is. */
for (j = 0; j < ds->num_planes; j++)
params2.data[j] = ds->pre_cm[j];
+ num_planes_to_downscale = ds->num_planes;
if (ds->early_cm && ds->apply_cm) {
- code = ds->apply_cm(ds->apply_cm_arg, ds->params.data, ds->post_cm, ds->dev->width, downfactor, params->raster);
+ code = ds->apply_cm(ds->apply_cm_arg, ds->post_cm, params2.data, ds->dev->width, downfactor, ds->span);
if (code < 0)
return code;
- for (j = 0; j < ds->num_planes; j++)
+ for (j = 0; j < ds->post_cm_num_comps; j++)
params2.data[j] = ds->post_cm[j];
+ num_planes_to_downscale = ds->post_cm_num_comps;
}
if (upfactor > 1) {
/* Downscale the block of lines into our output buffer */
- for (plane=0; plane < ds->num_planes; plane++) {
+ for (plane=0; plane < num_planes_to_downscale; plane++) {
byte *scaled = ds->scaled_data + upfactor * plane * ds->scaled_span;
(ds->down_core)(ds, scaled, params2.data[plane], row, plane, params2.raster);
- params->data[plane] = scaled;
+ params2.data[plane] = scaled;
}
} else if (ds->down_core != NULL) {
/* Downscale direct into output buffer */
- for (plane=0; plane < ds->num_planes; plane++)
+ for (plane=0; plane < num_planes_to_downscale; plane++) {
(ds->down_core)(ds, params->data[plane], params2.data[plane], row, plane, params2.raster);
+ params2.data[plane] = params->data[plane];
+ }
} else {
/* Copy into output buffer */
/* No color management can be required here */
assert(!ds->early_cm || ds->apply_cm == NULL);
- for (plane=0; plane < ds->num_planes; plane++)
+ for (plane=0; plane < num_planes_to_downscale; plane++) {
memcpy(params->data[plane], params2.data[plane], params2.raster);
+ params2.data[plane] = params->data[plane];
+ }
}
if (!ds->early_cm && ds->apply_cm) {
- code = ds->apply_cm(ds->apply_cm_arg, ds->params.data, params2.data, ds->width, 1, params->raster);
+ code = ds->apply_cm(ds->apply_cm_arg, params->data, params2.data, ds->width, 1, params->raster);
if (code < 0)
return code;
+ for (plane=0; plane < num_planes_to_downscale; plane++)
+ params2.data[plane] = params->data[plane];
}
+ for (plane=0; plane < num_planes_to_downscale; plane++)
+ params->data[plane] = params2.data[plane];
+
return code;
}
@@ -3566,3 +3586,71 @@ void ets_free(void *malloc_arg, void *p)
gs_free_object((gs_memory_t *)malloc_arg, p, "ets_malloc");
}
+
+int gx_downscaler_create_post_render_link(gx_device *dev, gsicc_link_t **link)
+{
+ cmm_dev_profile_t *profile_struct;
+ gsicc_rendering_param_t rendering_params;
+ int code = dev_proc(dev, get_profile)(dev, &profile_struct);
+ if (code < 0)
+ return_error(gs_error_undefined);
+
+ *link = NULL;
+ if (profile_struct->postren_profile == NULL)
+ return 0;
+
+ rendering_params.black_point_comp = gsBLACKPTCOMP_ON;
+ rendering_params.graphics_type_tag = GS_UNKNOWN_TAG;
+ rendering_params.override_icc = false;
+ rendering_params.preserve_black = gsBLACKPRESERVE_OFF;
+ rendering_params.rendering_intent = gsRELATIVECOLORIMETRIC;
+ rendering_params.cmm = gsCMM_DEFAULT;
+ *link = gsicc_alloc_link_dev(dev->memory,
+ profile_struct->device_profile[GS_DEFAULT_DEVICE_PROFILE],
+ profile_struct->postren_profile,
+ &rendering_params);
+ if (*link == NULL)
+ return_error(gs_error_VMerror);
+
+ /* If it is identity, release it now and set link to NULL */
+ if ((*link)->is_identity) {
+ gsicc_free_link_dev(*link);
+ *link = NULL;
+ }
+ return 0;
+}
+
+int gx_downscaler_create_icc_link(gx_device *dev, gsicc_link_t **link, cmm_profile_t *icc_profile)
+{
+ gsicc_rendering_param_t rendering_params;
+ cmm_dev_profile_t *profile_struct;
+ int code = dev_proc(dev, get_profile)(dev, &profile_struct);
+
+ *link = NULL;
+
+ if (code < 0)
+ return code;
+
+ if (icc_profile == NULL)
+ return 0; /* Should be an error, maybe? */
+
+ rendering_params.black_point_comp = gsBLACKPTCOMP_ON;
+ rendering_params.graphics_type_tag = GS_UNKNOWN_TAG;
+ rendering_params.override_icc = false;
+ rendering_params.preserve_black = gsBLACKPRESERVE_OFF;
+ rendering_params.rendering_intent = gsRELATIVECOLORIMETRIC;
+ rendering_params.cmm = gsCMM_DEFAULT;
+ *link = gsicc_alloc_link_dev(dev->memory,
+ profile_struct->device_profile[GS_DEFAULT_DEVICE_PROFILE],
+ icc_profile,
+ &rendering_params);
+ if (*link == NULL)
+ return_error(gs_error_VMerror);
+
+ /* If it is identity, release it now and set link to NULL */
+ if ((*link)->is_identity) {
+ gsicc_free_link_dev(*link);
+ *link = NULL;
+ }
+ return 0;
+}
diff --git a/base/gxdownscale.h b/base/gxdownscale.h
index ed945b46..7a99caea 100644
--- a/base/gxdownscale.h
+++ b/base/gxdownscale.h
@@ -1,4 +1,4 @@
-/* Copyright (C) 2001-2021 Artifex Software, Inc.
+/* Copyright (C) 2001-2022 Artifex Software, Inc.
All Rights Reserved.
This software is provided AS-IS with no warranty, either express or
@@ -248,4 +248,20 @@ int gx_downscaler_write_params(gs_param_list *plist,
gx_downscaler_params *params,
int features);
+/* A helper function for creating the post render ICC link.
+ * This maps from the device space to the space given by the
+ * post render profile entry in the device icc struct.
+ * This should be destroyed using gsicc_free_link_dev.*/
+int gx_downscaler_create_post_render_link(gx_device *dev,
+ gsicc_link_t **link);
+
+/* A helper function for creating an ICC link. This maps
+ * from the device space to the space given by the
+ * supplied ICC profile.
+ * This should be destroyed using gsicc_free_link_dev.*/
+int
+gx_downscaler_create_icc_link(gx_device *dev,
+ gsicc_link_t **link,
+ cmm_profile_t *profile);
+
#endif
diff --git a/base/gxfapi.c b/base/gxfapi.c
index 2bc385a3..d4ecc4a5 100644
--- a/base/gxfapi.c
+++ b/base/gxfapi.c
@@ -56,6 +56,7 @@ gs_fapi_renderer_retcode(gs_memory_t *mem, gs_fapi_server *I,
typedef struct gs_fapi_outline_handler_s
{
+ gs_fapi_server *fserver;
struct gx_path_s *path;
fixed x0;
fixed y0;
@@ -98,29 +99,33 @@ add_move(gs_fapi_path *I, int64_t x, int64_t y)
{
gs_fapi_outline_handler *olh = (gs_fapi_outline_handler *) I->olh;
- x = import_shift(x, I->shift) + olh->x0;
- y = -import_shift(y, I->shift) + olh->y0;
-
- if (x > (int64_t) max_fixed) {
- x = (int64_t) max_fixed;
- }
- else if (x < (int64_t) min_fixed) {
- x = (int64_t) min_fixed;
+ x = import_shift(x, I->shift);
+ y = -import_shift(y, I->shift);
+ if (olh->fserver->transform_outline) {
+ gs_point pt;
+ I->gs_error = gs_distance_transform((double)fixed2float((float)x), (double)fixed2float((float)y), &olh->fserver->outline_mat, &pt);
+ if (I->gs_error < 0)
+ return I->gs_error;
+ x = float2fixed(pt.x);
+ y = float2fixed(pt.y);
}
+ x += olh->x0;
+ y += olh->y0;
- if (y > (int64_t) max_fixed) {
- y = (int64_t) max_fixed;
- }
- else if (y < (int64_t) min_fixed) {
- y = (int64_t) min_fixed;
+ if (x > (int64_t) max_coord_fixed || x < (int64_t) min_coord_fixed
+ || y > (int64_t) max_coord_fixed || y < (int64_t) min_coord_fixed) {
+ I->gs_error = gs_error_undefinedresult;
}
+ else {
- if (olh->need_close && olh->close_path)
- if ((I->gs_error = add_closepath(I)) < 0)
- return (I->gs_error);
- olh->need_close = false;
- I->gs_error = gx_path_add_point(olh->path, (fixed) x, (fixed) y);
+ if (olh->need_close && olh->close_path)
+ if ((I->gs_error = add_closepath(I)) < 0)
+ return (I->gs_error);
+ olh->need_close = false;
+/* dprintf2("%f %f moveto\n", fixed2float(x), fixed2float(y)); */
+ I->gs_error = gx_path_add_point(olh->path, (fixed) x, (fixed) y);
+ }
return (I->gs_error);
}
@@ -129,24 +134,29 @@ add_line(gs_fapi_path *I, int64_t x, int64_t y)
{
gs_fapi_outline_handler *olh = (gs_fapi_outline_handler *) I->olh;
- x = import_shift(x, I->shift) + olh->x0;
- y = -import_shift(y, I->shift) + olh->y0;
- if (x > (int64_t) max_fixed) {
- x = (int64_t) max_fixed;
- }
- else if (x < (int64_t) min_fixed) {
- x = (int64_t) min_fixed;
+ x = import_shift(x, I->shift);
+ y = -import_shift(y, I->shift);
+ if (olh->fserver->transform_outline) {
+ gs_point pt;
+ I->gs_error = gs_distance_transform((double)fixed2float((float)x), (double)fixed2float((float)y), &olh->fserver->outline_mat, &pt);
+ if (I->gs_error < 0)
+ return I->gs_error;
+ x = float2fixed(pt.x);
+ y = float2fixed(pt.y);
}
+ x += olh->x0;
+ y += olh->y0;
- if (y > (int64_t) max_fixed) {
- y = (int64_t) max_fixed;
- }
- else if (y < (int64_t) min_fixed) {
- y = (int64_t) min_fixed;
+ if (x > (int64_t) max_coord_fixed || x < (int64_t) min_coord_fixed
+ || y > (int64_t) max_coord_fixed || y < (int64_t) min_coord_fixed) {
+ I->gs_error = gs_error_undefinedresult;
}
+ else {
+ olh->need_close = true;
- olh->need_close = true;
- I->gs_error = gx_path_add_line_notes(olh->path, (fixed) x, (fixed) y, 0);
+/* dprintf2("%f %f lineto\n", fixed2float(x), fixed2float(y)); */
+ I->gs_error = gx_path_add_line_notes(olh->path, (fixed) x, (fixed) y, 0);
+ }
return (I->gs_error);
}
@@ -156,57 +166,53 @@ add_curve(gs_fapi_path *I, int64_t x0, int64_t y0, int64_t x1, int64_t y1,
{
gs_fapi_outline_handler *olh = (gs_fapi_outline_handler *) I->olh;
- x0 = import_shift(x0, I->shift) + olh->x0;
- y0 = -import_shift(y0, I->shift) + olh->y0;
- x1 = import_shift(x1, I->shift) + olh->x0;
- y1 = -import_shift(y1, I->shift) + olh->y0;
- x2 = import_shift(x2, I->shift) + olh->x0;
- y2 = -import_shift(y2, I->shift) + olh->y0;
+ x0 = import_shift(x0, I->shift);
+ y0 = -import_shift(y0, I->shift);
+ x1 = import_shift(x1, I->shift);
+ y1 = -import_shift(y1, I->shift);
+ x2 = import_shift(x2, I->shift);
+ y2 = -import_shift(y2, I->shift);
- if (x0 > (int64_t) max_fixed) {
- x0 = (int64_t) max_fixed;
- }
- else if (x0 < (int64_t) min_fixed) {
- x0 = (int64_t) min_fixed;
- }
-
- if (y0 > (int64_t) max_fixed) {
- y0 = (int64_t) max_fixed;
- }
- else if (y0 < (int64_t) min_fixed) {
- y0 = (int64_t) min_fixed;
- }
- if (x1 > (int64_t) max_fixed) {
- x1 = (int64_t) max_fixed;
- }
- else if (x1 < (int64_t) min_fixed) {
- x1 = (int64_t) min_fixed;
- }
-
- if (y1 > (int64_t) max_fixed) {
- y1 = (int64_t) max_fixed;
- }
- else if (y1 < (int64_t) min_fixed) {
- y1 = (int64_t) min_fixed;
- }
- if (x2 > (int64_t) max_fixed) {
- x2 = (int64_t) max_fixed;
- }
- else if (x2 < (int64_t) min_fixed) {
- x2 = (int64_t) min_fixed;
+ if (olh->fserver->transform_outline) {
+ gs_point pt;
+ I->gs_error = gs_distance_transform((double)fixed2float((float)x0), (double)fixed2float((float)y0), &olh->fserver->outline_mat, &pt);
+ if (I->gs_error < 0)
+ return I->gs_error;
+ x0 = float2fixed(pt.x);
+ y0 = float2fixed(pt.y);
+ I->gs_error = gs_distance_transform((double)fixed2float((float)x1), (double)fixed2float((float)y1), &olh->fserver->outline_mat, &pt);
+ if (I->gs_error < 0)
+ return I->gs_error;
+ x1 = float2fixed(pt.x);
+ y1 = float2fixed(pt.y);
+ I->gs_error = gs_distance_transform((double)fixed2float((float)x2), (double)fixed2float((float)y2), &olh->fserver->outline_mat, &pt);
+ if (I->gs_error < 0)
+ return I->gs_error;
+ x2 = float2fixed(pt.x);
+ y2 = float2fixed(pt.y);
+ }
+ x0 += olh->x0;
+ y0 += olh->y0;
+ x1 += olh->x0;
+ y1 += olh->y0;
+ x2 += olh->x0;
+ y2 += olh->y0;
+
+ if (x0 > (int64_t) max_coord_fixed || x0 < (int64_t) min_coord_fixed
+ || y0 > (int64_t) max_coord_fixed || y0 < (int64_t) min_coord_fixed
+ || x1 > (int64_t) max_coord_fixed || x1 < (int64_t) min_coord_fixed
+ || y1 > (int64_t) max_coord_fixed || y1 < (int64_t) min_coord_fixed
+ || x2 > (int64_t) max_coord_fixed || x2 < (int64_t) min_coord_fixed
+ || y2 > (int64_t) max_coord_fixed || y2 < (int64_t) min_coord_fixed)
+ {
+ I->gs_error = gs_error_undefinedresult;
}
+ else {
+ olh->need_close = true;
- if (y2 > (int64_t) max_fixed) {
- y2 = (int64_t) max_fixed;
- }
- else if (y2 < (int64_t) min_fixed) {
- y2 = (int64_t) min_fixed;
+/* dprintf6("%f %f %f %f %f %f curveto\n", fixed2float(x0), fixed2float(y0), fixed2float(x1), fixed2float(y1), fixed2float(x2), fixed2float(y2));*/
+ I->gs_error = gx_path_add_curve_notes(olh->path, (fixed) x0, (fixed) y0, (fixed) x1, (fixed) y1, (fixed) x2, (fixed) y2, 0);
}
-
- olh->need_close = true;
- I->gs_error =
- gx_path_add_curve_notes(olh->path, (fixed) x0, (fixed) y0, (fixed) x1,
- (fixed) y1, (fixed) x2, (fixed) y2, 0);
return (I->gs_error);
}
@@ -567,10 +573,14 @@ outline_char(gs_memory_t *mem, gs_fapi_server *I, int import_shift_v,
{
gs_fapi_path path_interface = path_interface_stub;
gs_fapi_outline_handler olh;
- int code;
+ int code = 0;
gs_gstate *pgs = penum_s->pgs;
+ struct gx_path_s path1;
- olh.path = path;
+ (void)gx_path_init_local(&path1, mem);
+
+ olh.fserver = I;
+ olh.path = &path1;
olh.x0 = pgs->ctm.tx_fixed - float2fixed(penum_s->fapi_glyph_shift.x);
olh.y0 = pgs->ctm.ty_fixed - float2fixed(penum_s->fapi_glyph_shift.y);
olh.close_path = close_path;
@@ -582,15 +592,22 @@ outline_char(gs_memory_t *mem, gs_fapi_server *I, int import_shift_v,
I->get_char_outline(I,
&path_interface))) < 0
|| path_interface.gs_error != 0) {
- if (path_interface.gs_error != 0)
- return path_interface.gs_error;
- else
- return code;
+ if (path_interface.gs_error != 0) {
+ code = path_interface.gs_error;
+ goto done;
+ }
+ else {
+ goto done;
+ }
}
if (olh.need_close && olh.close_path)
if ((code = add_closepath(&path_interface)) < 0)
- return code;
- return 0;
+ goto done;
+ code = gx_path_copy(&path1, path);
+done:
+ code = code >= 0 || code == gs_error_undefinedresult ? 0 : code;
+ gx_path_free(&path1, "outline_char");
+ return code;
}
static void
@@ -1234,6 +1251,7 @@ gs_fapi_do_char(gs_font *pfont, gs_gstate *pgs, gs_text_enum_t *penum, char *fon
return 0;
I->use_outline = false;
+ I->transform_outline = false;
if (penum == 0)
return_error(gs_error_undefined);
@@ -1302,7 +1320,7 @@ gs_fapi_do_char(gs_font *pfont, gs_gstate *pgs, gs_text_enum_t *penum, char *fon
}
scale = 1 << I->frac_shift;
- retry_oversampling:
+retry_oversampling:
if (I->face.font_id != pbfont->id ||
!MTX_EQ((&I->face.ctm), ctm) ||
I->face.log2_scale.x != log2_scale.x ||
@@ -1316,10 +1334,9 @@ gs_fapi_do_char(gs_font *pfont, gs_gstate *pgs, gs_text_enum_t *penum, char *fon
, {1, 1}
, true
};
- gs_matrix scale_mat, scale_ctm;
+ gs_matrix lctm, scale_mat, scale_ctm;
I->face.font_id = pbfont->id;
- I->face.ctm = *ctm;
I->face.log2_scale = log2_scale;
I->face.align_to_pixels = align_to_pixels;
I->face.HWResolution[0] = dev->HWResolution[0];
@@ -1332,7 +1349,9 @@ gs_fapi_do_char(gs_font *pfont, gs_gstate *pgs, gs_text_enum_t *penum, char *fon
/* We apply the entire transform to the glyph (that is ctm x FontMatrix)
* at render time.
*/
-
+ lctm = *ctm;
+retry_scaling:
+ I->face.ctm = lctm;
memset(&scale_ctm, 0x00, sizeof(gs_matrix));
scale_ctm.xx = dev->HWResolution[0] / 72;
scale_ctm.yy = dev->HWResolution[1] / 72;
@@ -1340,7 +1359,7 @@ gs_fapi_do_char(gs_font *pfont, gs_gstate *pgs, gs_text_enum_t *penum, char *fon
if ((code = gs_matrix_invert((const gs_matrix *)&scale_ctm, &scale_ctm)) < 0)
return code;
- if ((code = gs_matrix_multiply(ctm, &scale_ctm, &scale_mat)) < 0) /* scale_mat == CTM - resolution scaling */
+ if ((code = gs_matrix_multiply(&lctm, &scale_ctm, &scale_mat)) < 0) /* scale_mat == CTM - resolution scaling */
return code;
if ((code = I->get_fontmatrix(I, &scale_ctm)) < 0)
@@ -1352,18 +1371,38 @@ gs_fapi_do_char(gs_font *pfont, gs_gstate *pgs, gs_text_enum_t *penum, char *fon
if ((code = gs_matrix_multiply(&scale_mat, &scale_ctm, &scale_mat)) < 0) /* scale_mat == CTM - resolution scaling - FontMatrix scaling */
return code;
- font_scale.matrix[0] =
- (fracint) (scale_mat.xx * FontMatrix_div * scale + 0.5);
- font_scale.matrix[1] =
- -(fracint) (scale_mat.xy * FontMatrix_div * scale + 0.5);
- font_scale.matrix[2] =
- (fracint) (scale_mat.yx * FontMatrix_div * scale + 0.5);
- font_scale.matrix[3] =
- -(fracint) (scale_mat.yy * FontMatrix_div * scale + 0.5);
- font_scale.matrix[4] =
- (fracint) (scale_mat.tx * FontMatrix_div * scale + 0.5);
- font_scale.matrix[5] =
- (fracint) (scale_mat.ty * FontMatrix_div * scale + 0.5);
+ if (((int64_t)(scale_mat.xx * FontMatrix_div * scale + 0.5)) != ((int32_t)(scale_mat.xx * FontMatrix_div * scale + 0.5))
+ || ((int64_t)(scale_mat.xy * FontMatrix_div * scale + 0.5)) != ((int32_t)(scale_mat.xy * FontMatrix_div * scale + 0.5))
+ || ((int64_t)(scale_mat.yx * FontMatrix_div * scale + 0.5)) != ((int32_t)(scale_mat.yx * FontMatrix_div * scale + 0.5))
+ || ((int64_t)(scale_mat.yy * FontMatrix_div * scale + 0.5)) != ((int32_t)(scale_mat.yy * FontMatrix_div * scale + 0.5))) {
+ /* Overflow
+ If the scaling is large enough to overflow the 16.16 representation, we forcibly produce an outline
+ unscaled except an arbitrary "midrange" scale (chosen to avoid under/overflow issues). And
+ then scale the points as we create the Ghostscript path outline_char().
+ If the glyph is this large, we're really not worried about hinting or dropout detection etc.
+ */
+
+ memset(&lctm, 0x00, sizeof(gs_matrix));
+ lctm.xx = 256.0;
+ lctm.yy = 256.0;
+ I->transform_outline = true;
+ I->use_outline = true;
+ if ((code = gs_matrix_invert((const gs_matrix *)&lctm, &scale_ctm)) < 0)
+ return code;
+ if ((code = gs_matrix_multiply(ctm, &scale_ctm, &scale_mat)) < 0) /* scale_mat == CTM - resolution scaling */
+ return code;
+
+ I->outline_mat = scale_mat;
+ goto retry_scaling;
+ }
+ else {
+ font_scale.matrix[0] = (fracint) (scale_mat.xx * FontMatrix_div * scale + 0.5);
+ font_scale.matrix[1] = -(fracint) (scale_mat.xy * FontMatrix_div * scale + 0.5);
+ font_scale.matrix[2] = (fracint) (scale_mat.yx * FontMatrix_div * scale + 0.5);
+ font_scale.matrix[3] = -(fracint) (scale_mat.yy * FontMatrix_div * scale + 0.5);
+ font_scale.matrix[4] = (fracint) (scale_mat.tx * FontMatrix_div * scale + 0.5);
+ font_scale.matrix[5] = (fracint) (scale_mat.ty * FontMatrix_div * scale + 0.5);
+ }
/* Note: the ctm mapping here is upside down. */
font_scale.HWResolution[0] =
@@ -1380,6 +1419,7 @@ gs_fapi_do_char(gs_font *pfont, gs_gstate *pgs, gs_text_enum_t *penum, char *fon
(double)font_scale.matrix[3]) == 0.0)) {
/* If the matrix is degenerate, force a scale to 1 unit. */
+ memset(&font_scale.matrix, 0x00, sizeof(font_scale.matrix));
if (!font_scale.matrix[0])
font_scale.matrix[0] = 1;
if (!font_scale.matrix[3])
diff --git a/base/gxfapi.h b/base/gxfapi.h
index 7f5dd03f..1ff8018f 100644
--- a/base/gxfapi.h
+++ b/base/gxfapi.h
@@ -329,6 +329,8 @@ struct gs_fapi_server_s
gs_fapi_font ff;
int max_bitmap;
bool use_outline;
+ bool transform_outline;
+ gs_matrix outline_mat;
uint grid_fit;
gs_matrix initial_FontMatrix; /* Font Matrix at the time the font is defined */
/* Used to use the stored 'OrigFont' entry but */
diff --git a/base/gxfcache.h b/base/gxfcache.h
index 4001cd7f..3e347faf 100644
--- a/base/gxfcache.h
+++ b/base/gxfcache.h
@@ -1,4 +1,4 @@
-/* Copyright (C) 2001-2021 Artifex Software, Inc.
+/* Copyright (C) 2001-2022 Artifex Software, Inc.
All Rights Reserved.
This software is provided AS-IS with no warranty, either express or
@@ -126,8 +126,8 @@ struct cached_char_s {
/* gx_cached_bits_common includes depth. */
gx_cached_bits_common; /* (must be first) */
-#define cc_depth(cc) ((cc)->cb_depth)
-#define cc_set_depth(cc, d) ((cc)->cb_depth = (d))
+#define cc_depth(cc) ((cc)->head.depth)
+#define cc_set_depth(cc, d) ((cc)->head.depth = (d))
cached_fm_pair *pair;
bool linked;
#define cc_pair(cc) ((cc)->pair)
diff --git a/base/gxfill.c b/base/gxfill.c
index 88e44c99..e33cb778 100644
--- a/base/gxfill.c
+++ b/base/gxfill.c
@@ -80,7 +80,7 @@
#define TRY_TO_EXTEND_TRAP 0
#endif
-#if defined(DEBUG) && !defined(GS_THREADSAFE)
+#ifdef COLLECT_STATS_FILL
/* Define the statistics structure instance. */
stats_fill_t stats_fill;
#endif
@@ -525,7 +525,7 @@ gx_general_fill_path(gx_device * pdev, const gs_gstate * pgs,
free_line_list(&lst);
if (pfpath != ppath) /* had to flatten */
gx_path_free(pfpath, "gx_general_fill_path");
-#if defined(DEBUG) && !defined(GS_THREADSAFE)
+#ifdef COLLECT_STATS_FILL
if (gs_debug_c('f')) {
dmlputs(ppath->memory,
"[f] # alloc up down horiz step slowx iter find band bstep bfill\n");
@@ -567,103 +567,110 @@ pass_shading_area_through_clip_path_device(gx_device * pdev, const gs_gstate * p
return gx_default_fill_path(pdev, pgs, ppath, params, pdevc, pcpath);
}
-/*
- * Fill a path. This is the default implementation of the driver
- * fill_path procedure.
- */
+/* Optimization for shading and halftone fill :
+ The general filling algorithm subdivides the fill region into
+ trapezoid or rectangle subregions and then paints each subregion
+ with given color. If the color is complex, it also needs to be subdivided
+ into constant color rectangles. In the worst case it gives
+ a multiple of numbers of rectangles, which may be too slow.
+ A faster processing may be obtained with installing a clipper
+ device with the filling path, and then render the complex color
+ through it. The speeding up happens due to the clipper device
+ is optimised for fast scans through neighbour clipping rectangles.
+*/
int
-gx_default_fill_path(gx_device * pdev, const gs_gstate * pgs,
- gx_path * ppath, const gx_fill_params * params,
- const gx_device_color * pdevc, const gx_clip_path * pcpath)
+gx_default_fill_path_shading_or_pattern(gx_device * pdev, const gs_gstate * pgs,
+ gx_path * ppath, const gx_fill_params * params,
+ const gx_device_color * pdevc, const gx_clip_path * pcpath)
{
int code = 0;
+ /* We need a single clipping path here, because shadings and
+ halftones don't take 2 paths. Compute the clipping path intersection.
+ */
+ gx_clip_path cpath_intersection, cpath_with_shading_bbox;
+ const gx_clip_path *pcpath1, *pcpath2;
+ gs_gstate *pgs_noconst = (gs_gstate *)pgs; /* Break const. */
+
+ if (ppath != NULL) {
+ code = gx_cpath_init_local_shared_nested(&cpath_intersection, pcpath, pdev->memory, 1);
+ if (code < 0)
+ return code;
+ if (pcpath == NULL) {
+ gs_fixed_rect clip_box1;
- if (gx_dc_is_pattern2_color(pdevc)
- || pdevc->type == &gx_dc_type_data_ht_colored
- || (gx_dc_is_pattern1_color(pdevc) && gx_pattern_tile_is_clist(pdevc->colors.pattern.p_tile))
- ) {
- /* Optimization for shading and halftone fill :
- The general filling algorithm subdivides the fill region into
- trapezoid or rectangle subregions and then paints each subregion
- with given color. If the color is complex, it also needs to be subdivided
- into constant color rectangles. In the worst case it gives
- a multiple of numbers of rectangles, which may be too slow.
- A faster processing may be obtained with installing a clipper
- device with the filling path, and then render the complex color
- through it. The speeding up happens due to the clipper device
- is optimised for fast scans through neighbour clipping rectangles.
- */
- /* We need a single clipping path here, because shadings and
- halftones don't take 2 paths. Compute the clipping path intersection.
- */
- gx_clip_path cpath_intersection, cpath_with_shading_bbox;
- const gx_clip_path *pcpath1, *pcpath2;
- gs_gstate *pgs_noconst = (gs_gstate *)pgs; /* Break const. */
-
- if (ppath != NULL) {
- code = gx_cpath_init_local_shared_nested(&cpath_intersection, pcpath, pdev->memory, 1);
- if (code < 0)
- return code;
- if (pcpath == NULL) {
- gs_fixed_rect clip_box1;
-
- (*dev_proc(pdev, get_clipping_box)) (pdev, &clip_box1);
- code = gx_cpath_from_rectangle(&cpath_intersection, &clip_box1);
- }
- if (code >= 0)
- code = gx_cpath_intersect_with_params(&cpath_intersection, ppath, params->rule,
- pgs_noconst, params);
- pcpath1 = &cpath_intersection;
- } else
- pcpath1 = pcpath;
- pcpath2 = pcpath1;
+ (*dev_proc(pdev, get_clipping_box)) (pdev, &clip_box1);
+ code = gx_cpath_from_rectangle(&cpath_intersection, &clip_box1);
+ }
if (code >= 0)
- code = gx_dc_pattern2_clip_with_bbox(pdevc, pdev, &cpath_with_shading_bbox, &pcpath1);
- /* Do fill : */
- if (code >= 0) {
- gs_fixed_rect clip_box;
- gs_int_rect cb;
- const gx_rop_source_t *rs = NULL;
- gx_device *dev;
- gx_device_clip cdev;
-
- gx_cpath_outer_box(pcpath1, &clip_box);
- cb.p.x = fixed2int_pixround(clip_box.p.x);
- cb.p.y = fixed2int_pixround(clip_box.p.y);
- cb.q.x = fixed2int_pixround(clip_box.q.x);
- cb.q.y = fixed2int_pixround(clip_box.q.y);
- if (gx_dc_is_pattern2_color(pdevc) &&
- (*dev_proc(pdev, dev_spec_op))(pdev,
+ code = gx_cpath_intersect_with_params(&cpath_intersection, ppath, params->rule,
+ pgs_noconst, params);
+ pcpath1 = &cpath_intersection;
+ } else
+ pcpath1 = pcpath;
+ pcpath2 = pcpath1;
+ if (code >= 0)
+ code = gx_dc_pattern2_clip_with_bbox(pdevc, pdev, &cpath_with_shading_bbox, &pcpath1);
+ /* Do fill : */
+ if (code >= 0) {
+ gs_fixed_rect clip_box;
+ gs_int_rect cb;
+ const gx_rop_source_t *rs = NULL;
+ gx_device *dev;
+ gx_device_clip cdev;
+
+ gx_cpath_outer_box(pcpath1, &clip_box);
+ cb.p.x = fixed2int_pixround(clip_box.p.x);
+ cb.p.y = fixed2int_pixround(clip_box.p.y);
+ cb.q.x = fixed2int_pixround(clip_box.q.x);
+ cb.q.y = fixed2int_pixround(clip_box.q.y);
+ if (gx_dc_is_pattern2_color(pdevc) &&
+ (*dev_proc(pdev, dev_spec_op))(pdev,
gxdso_pattern_handles_clip_path, NULL, 0) > 0) {
- /* A special interaction with clist writer device :
- pass the intersected clipping path. It uses an unusual call to
- fill_path with NULL device color. */
- code = (*dev_proc(pdev, fill_path))(pdev, pgs, ppath, params, NULL, pcpath1);
- dev = pdev;
- } else {
- gx_make_clip_device_on_stack(&cdev, pcpath1, pdev);
- dev = (gx_device *)&cdev;
- if ((*dev_proc(pdev, dev_spec_op))(pdev,
+ /* A special interaction with clist writer device :
+ pass the intersected clipping path. It uses an unusual call to
+ fill_path with NULL device color. */
+ code = (*dev_proc(pdev, fill_path))(pdev, pgs, ppath, params, NULL, pcpath1);
+ dev = pdev;
+ } else {
+ gx_make_clip_device_on_stack(&cdev, pcpath1, pdev);
+ dev = (gx_device *)&cdev;
+ if ((*dev_proc(pdev, dev_spec_op))(pdev,
gxdso_pattern_shading_area, NULL, 0) > 0)
- set_dev_proc(&cdev, fill_path, pass_shading_area_through_clip_path_device);
- code = 0;
- }
- if (code >= 0)
- code = pdevc->type->fill_rectangle(pdevc,
+ set_dev_proc(&cdev, fill_path, pass_shading_area_through_clip_path_device);
+ code = 0;
+ }
+ if (code >= 0)
+ code = pdevc->type->fill_rectangle(pdevc,
cb.p.x, cb.p.y, cb.q.x - cb.p.x, cb.q.y - cb.p.y,
dev, pgs->log_op, rs);
- }
- if (ppath != NULL)
- gx_cpath_free(&cpath_intersection, "shading_fill_cpath_intersection");
- if (pcpath1 != pcpath2)
- gx_cpath_free(&cpath_with_shading_bbox, "shading_fill_cpath_intersection");
- } else {
- code = gx_general_fill_path(pdev, pgs, ppath, params, pdevc, pcpath);
}
+ if (ppath != NULL)
+ gx_cpath_free(&cpath_intersection, "shading_fill_cpath_intersection");
+ if (pcpath1 != pcpath2)
+ gx_cpath_free(&cpath_with_shading_bbox, "shading_fill_cpath_intersection");
+
return code;
}
/*
+ * Fill a path. This is the default implementation of the driver
+ * fill_path procedure.
+ */
+int
+gx_default_fill_path(gx_device * pdev, const gs_gstate * pgs,
+ gx_path * ppath, const gx_fill_params * params,
+ const gx_device_color * pdevc, const gx_clip_path * pcpath)
+{
+ if (gx_dc_is_pattern2_color(pdevc) ||
+ pdevc->type == &gx_dc_type_data_ht_colored ||
+ (gx_dc_is_pattern1_color(pdevc) &&
+ gx_pattern_tile_is_clist(pdevc->colors.pattern.p_tile)))
+ return gx_default_fill_path_shading_or_pattern(pdev, pgs, ppath, params, pdevc, pcpath);
+ else
+ return gx_general_fill_path(pdev, pgs, ppath, params, pdevc, pcpath);
+}
+
+/*
* Fill/Stroke a path. This is the default implementation of the driver
* fill_path procedure.
*/
diff --git a/base/gxfill.h b/base/gxfill.h
index c4616a09..0f37e69e 100644
--- a/base/gxfill.h
+++ b/base/gxfill.h
@@ -155,7 +155,9 @@ struct line_list_s {
/* ---------------- Statistics ---------------- */
-#if defined(DEBUG) && !defined(GS_THREADSAFE)
+/* #define COLLECT_STATS_FILL */
+
+#ifdef COLLECT_STATS_FILL
struct stats_fill_s {
long
fill, fill_alloc, y_up, y_down, horiz, x_step, slow_x, iter, find_y,
diff --git a/base/gxhldevc.c b/base/gxhldevc.c
index 9188a029..1a8afd68 100644
--- a/base/gxhldevc.c
+++ b/base/gxhldevc.c
@@ -117,9 +117,7 @@ bool gx_hld_saved_color_equal(const gx_hl_saved_color * psc1,
/* early bailout for pattern comparison */
if (gx_dc_is_pattern1_color((gx_device_color *)(&psc1->saved_dev_color.type))) {
- if (psc1->saved_dev_color.colors.pattern.id != psc2->saved_dev_color.colors.pattern.id
- || psc1->saved_dev_color.colors.pattern.phase.x != psc2->saved_dev_color.colors.pattern.phase.x
- || psc1->saved_dev_color.colors.pattern.phase.y != psc2->saved_dev_color.colors.pattern.phase.y)
+ if (psc1->saved_dev_color.colors.pattern.id != psc2->saved_dev_color.colors.pattern.id)
return(false);
else
return true;
diff --git a/base/gxht.c b/base/gxht.c
index a57662ce..43a9815f 100644
--- a/base/gxht.c
+++ b/base/gxht.c
@@ -352,10 +352,14 @@ gx_dc_ht_binary_equal(const gx_device_color * pdevc1,
* The binary halftone tile is never transmitted as part of the string
* representation, so there is also no flag bit for it.
*/
-static const int dc_ht_binary_has_color0 = 0x01;
-static const int dc_ht_binary_has_color1 = 0x02;
-static const int dc_ht_binary_has_level = 0x04;
-static const int dc_ht_binary_has_index = 0x08;
+enum {
+ dc_ht_binary_has_color0 = 0x01,
+ dc_ht_binary_has_color1 = 0x02,
+ dc_ht_binary_has_level = 0x04,
+ dc_ht_binary_has_index = 0x08,
+ dc_ht_binary_has_phase_x = 0x10,
+ dc_ht_binary_has_phase_y = 0x20,
+};
/*
* Serialize a binany halftone device color.
@@ -421,7 +425,7 @@ gx_dc_ht_binary_write(
&tmp_size );
req_size += tmp_size;
}
- if ( psdc == 0 ||
+ if ( psdc == NULL ||
pdevc->colors.binary.color[1] != psdc->colors.binary.b_color[1] ) {
flag_bits |= dc_ht_binary_has_color1;
tmp_size = 0;
@@ -432,18 +436,30 @@ gx_dc_ht_binary_write(
req_size += tmp_size;
}
- if ( psdc == 0 ||
+ if ( psdc == NULL ||
pdevc->colors.binary.b_level != psdc->colors.binary.b_level ) {
flag_bits |= dc_ht_binary_has_level;
req_size += enc_u_sizew(pdevc->colors.binary.b_level);
}
- if ( psdc == 0 ||
+ if ( psdc == NULL ||
pdevc->colors.binary.b_index != psdc->colors.binary.b_index ) {
flag_bits |= dc_ht_binary_has_index;
req_size += 1;
}
+ if ( psdc == NULL ||
+ pdevc->phase.x != psdc->phase.x ) {
+ flag_bits |= dc_ht_binary_has_phase_x;
+ req_size += enc_u_sizew(pdevc->phase.x);
+ }
+
+ if ( psdc == NULL ||
+ pdevc->phase.y != psdc->phase.y ) {
+ flag_bits |= dc_ht_binary_has_phase_y;
+ req_size += enc_u_sizew(pdevc->phase.y);
+ }
+
/* check if there is anything to be done */
if (flag_bits == 0) {
*psize = 0;
@@ -484,6 +500,10 @@ gx_dc_ht_binary_write(
enc_u_putw(pdevc->colors.binary.b_level, pdata);
if ((flag_bits & dc_ht_binary_has_index) != 0)
*pdata++ = pdevc->colors.binary.b_index;
+ if ((flag_bits & dc_ht_binary_has_phase_x) != 0)
+ enc_u_putw(pdevc->phase.x, pdata);
+ if ((flag_bits & dc_ht_binary_has_phase_y) != 0)
+ enc_u_putw(pdevc->phase.y, pdata);
*psize = pdata - pdata0;
return 0;
@@ -528,7 +548,9 @@ gx_dc_ht_binary_read(
int64_t offset,
const byte * pdata,
uint size,
- gs_memory_t * mem ) /* ignored */
+ gs_memory_t * mem, /* ignored */
+ int x0,
+ int y0)
{
gx_device_color devc;
const byte * pdata0 = pdata;
@@ -547,7 +569,7 @@ gx_dc_ht_binary_read(
/* the halftone is always taken from the gs_gstate */
devc.colors.binary.b_ht = pgs->dev_ht[HT_OBJTYPE_DEFAULT];
- /* cache is not porvided until the device color is used */
+ /* cache is not provided until the device color is used */
devc.colors.binary.b_tile = 0;
/* verify the minimum amount of information */
@@ -578,7 +600,7 @@ gx_dc_ht_binary_read(
pdata += code;
}
if ((flag_bits & dc_ht_binary_has_level) != 0) {
- const byte * pdata_start = pdata;
+ const byte *pdata_start = pdata;
if (size < 1)
return_error(gs_error_rangecheck);
@@ -591,15 +613,24 @@ gx_dc_ht_binary_read(
--size;
devc.colors.binary.b_index = *pdata++;
}
+ if ((flag_bits & dc_ht_binary_has_phase_x) != 0) {
+ const byte *pdata_start = pdata;
- if (pgs->dev_ht[HT_OBJTYPE_DEFAULT] == NULL)
- return_error(gs_error_unregistered); /* Must not happen. */
- /* set the phase as required (select value is arbitrary) */
- color_set_phase_mod( &devc,
- pgs->screen_phase[0].x,
- pgs->screen_phase[0].y,
- pgs->dev_ht[HT_OBJTYPE_DEFAULT]->lcm_width,
- pgs->dev_ht[HT_OBJTYPE_DEFAULT]->lcm_height );
+ if (size < 1)
+ return_error(gs_error_rangecheck);
+ enc_u_getw(devc.phase.x, pdata);
+ devc.phase.x += x0;
+ size -= pdata - pdata_start;
+ }
+ if ((flag_bits & dc_ht_binary_has_phase_y) != 0) {
+ const byte *pdata_start = pdata;
+
+ if (size < 1)
+ return_error(gs_error_rangecheck);
+ enc_u_getw(devc.phase.y, pdata);
+ devc.phase.y += y0;
+ size -= pdata - pdata_start;
+ }
/* everything looks good */
*pdevc = devc;
diff --git a/base/gxht_thresh.c b/base/gxht_thresh.c
index c981f81b..df86ce14 100644
--- a/base/gxht_thresh.c
+++ b/base/gxht_thresh.c
@@ -1017,6 +1017,8 @@ gxht_thresh_planes(gx_image_enum *penum, fixed xrun,
dx = penum->ht_landscape.xstart;
}
dx = (dx + penum->pgs->screen_phase[0].x) % thresh_width;
+ if (dx < 0)
+ dx += thresh_width;
dy = (penum->ht_landscape.y_pos -
penum->pgs->screen_phase[0].y) % thresh_height;
if (dy < 0)
diff --git a/base/gxicolor.c b/base/gxicolor.c
index 4785ab4f..102bd95a 100644
--- a/base/gxicolor.c
+++ b/base/gxicolor.c
@@ -698,11 +698,11 @@ image_render_color_thresh(gx_image_enum *penum_orig, const byte *buffer, int dat
xrun += penum->x_extent.x;
vdi = penum->hci;
contone_stride = penum->line_size;
- offset_threshold = (- (((long)(penum->thresh_buffer)) +
- penum->ht_offset_bits)) & 15;
+ offset_threshold = (- (((int)(intptr_t)(penum->thresh_buffer)) +
+ penum->ht_offset_bits)) & 15;
for (k = 0; k < spp_out; k ++) {
- offset_contone[k] = (- (((long)(penum->line)) +
- (long)contone_stride * k +
+ offset_contone[k] = (- (((int)(intptr_t)(penum->line)) +
+ contone_stride * k +
penum->ht_offset_bits)) & 15;
}
data_length = dest_width;
@@ -725,10 +725,10 @@ image_render_color_thresh(gx_image_enum *penum_orig, const byte *buffer, int dat
xrun = dda_current(dda_ht); /* really yrun, but just used here for landscape */
dest_height = gxht_dda_length(&dda_ht, src_size);
data_length = dest_height;
- offset_threshold = (-(long)(penum->thresh_buffer)) & 15;
+ offset_threshold = (-(int)(intptr_t)(penum->thresh_buffer)) & 15;
for (k = 0; k < spp_out; k ++) {
- offset_contone[k] = (- ((long)(penum->line) +
- (long)contone_stride * k)) & 15;
+ offset_contone[k] = (- ((int)(intptr_t)(penum->line) +
+ contone_stride * k)) & 15;
}
/* In the landscaped case, we want to accumulate multiple columns
of data before sending to the device. We want to have a full
diff --git a/base/gxifast.c b/base/gxifast.c
index 7ec7a1de..967e4f53 100644
--- a/base/gxifast.c
+++ b/base/gxifast.c
@@ -39,9 +39,7 @@
#include "valgrind.h"
/* Conditionally include statistics code. */
-#if defined(DEBUG) && !defined(GS_THREADSAFE)
-# define STATS
-#endif
+/* #define COLLECT_STATS_IFAST */
/* ------ Strategy procedure ------ */
@@ -195,7 +193,7 @@ image_render_skip(gx_image_enum * penum, const byte * buffer, int data_x,
* other bits in those bytes are set to zero (i.e., the value of the
* 'zero' argument).
*/
-#ifdef STATS
+#ifdef COLLECT_STATS_IFAST
struct stats_image_fast_s {
long
calls, all0s, all1s, runs, lbit0, byte00, byte01, byte02, byte03,
diff --git a/base/gximage1.c b/base/gximage1.c
index ddd2ef0e..48d879e0 100644
--- a/base/gximage1.c
+++ b/base/gximage1.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 2001-2021 Artifex Software, Inc.
+/* Copyright (C) 2001-2022 Artifex Software, Inc.
All Rights Reserved.
This software is provided AS-IS with no warranty, either express or
@@ -96,6 +96,7 @@ gx_begin_image1(gx_device * dev,
if (code >= 0)
*pinfo = (gx_image_enum_common_t *)penum;
else {
+ /* penum is freed in by gx_image_enum_begin */
*pinfo = NULL;
}
return code;
diff --git a/base/gximage3.c b/base/gximage3.c
index 8e39d7b1..cf5e31cb 100644
--- a/base/gximage3.c
+++ b/base/gximage3.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 2001-2021 Artifex Software, Inc.
+/* Copyright (C) 2001-2022 Artifex Software, Inc.
All Rights Reserved.
This software is provided AS-IS with no warranty, either express or
@@ -146,10 +146,11 @@ make_mcde_default(gx_device *dev, const gs_gstate *pgs,
return_error(gs_error_VMerror);
bits.data = mdev->base;
bits.raster = mdev->raster;
- bits.size.x = mdev->width;
- bits.size.y = mdev->height;
+ bits.size.x = bits.rep_width = mdev->width;
+ bits.size.y = bits.rep_height = mdev->height;
bits.id = gx_no_bitmap_id;
bits.num_planes = 1;
+ bits.rep_shift = bits.shift = 0;
code = gx_mask_clip_initialize(mcdev, &gs_mask_clip_device,
(const gx_bitmap *)&bits, dev,
origin->x, origin->y, mem);
@@ -208,7 +209,8 @@ gx_begin_image3_generic(gx_device * dev,
int code;
/* Validate the parameters. */
- if (pim->Height <= 0 || pim->MaskDict.Height <= 0)
+ if (pim->Width <= 0 || pim->MaskDict.Width <= 0 ||
+ pim->Height <= 0 || pim->MaskDict.Height <= 0)
return_error(gs_error_rangecheck);
switch (pim->InterleaveType) {
default:
diff --git a/base/gximage4.c b/base/gximage4.c
index 0c96da49..89904f32 100644
--- a/base/gximage4.c
+++ b/base/gximage4.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 2001-2021 Artifex Software, Inc.
+/* Copyright (C) 2001-2022 Artifex Software, Inc.
All Rights Reserved.
This software is provided AS-IS with no warranty, either express or
@@ -109,7 +109,7 @@ gx_begin_image4(gx_device * dev,
if (code >= 0)
*pinfo = (gx_image_enum_common_t *)penum;
else {
- gs_free_object(mem, penum, "gx_begin_image4");
+ /* penum is freed in by gx_image_enum_begin */
*pinfo = NULL;
}
return code;
diff --git a/base/gximono.c b/base/gximono.c
index 7b40f3de..d8de59d7 100644
--- a/base/gximono.c
+++ b/base/gximono.c
@@ -1071,12 +1071,12 @@ image_render_mono_ht(gx_image_enum * penum_orig, const byte * buffer, int data_x
xrun += penum->x_extent.x;
vdi = penum->hci;
contone_stride = penum->line_size;
- offset_threshold = (- (((long)(penum->thresh_buffer)) +
- penum->ht_offset_bits)) & 15;
+ offset_threshold = (- (((int)(intptr_t)(penum->thresh_buffer)) +
+ penum->ht_offset_bits)) & 15;
for (k = 0; k < spp_out; k ++) {
- offset_contone[k] = (- (((long)(penum->line)) +
- (long)contone_stride * k +
- penum->ht_offset_bits)) & 15;
+ offset_contone[k] = (- (((int)(intptr_t)(penum->line)) +
+ contone_stride * k +
+ penum->ht_offset_bits)) & 15;
}
data_length = dest_width;
dest_height = fixed2int_var_rounded(any_abs(penum->y_extent.y));
@@ -1098,10 +1098,10 @@ image_render_mono_ht(gx_image_enum * penum_orig, const byte * buffer, int data_x
xrun = dda_current(dda_ht); /* really yrun, but just used here for landscape */
dest_height = gxht_dda_length(&dda_ht, src_size);
data_length = dest_height;
- offset_threshold = (-(long)(penum->thresh_buffer)) & 15;
+ offset_threshold = (-(int)(intptr_t)(penum->thresh_buffer)) & 15;
for (k = 0; k < spp_out; k ++) {
- offset_contone[k] = (- ((long)(penum->line) +
- (long)contone_stride * k)) & 15;
+ offset_contone[k] = (- ((int)(intptr_t)(penum->line) +
+ contone_stride * k)) & 15;
}
/* In the landscaped case, we want to accumulate multiple columns
of data before sending to the device. We want to have a full
diff --git a/base/gxobj.h b/base/gxobj.h
index 927e1cdc..208deacb 100644
--- a/base/gxobj.h
+++ b/base/gxobj.h
@@ -1,4 +1,4 @@
-/* Copyright (C) 2001-2021 Artifex Software, Inc.
+/* Copyright (C) 2001-2022 Artifex Software, Inc.
All Rights Reserved.
This software is provided AS-IS with no warranty, either express or
@@ -27,37 +27,6 @@
# define IGC_PTR_STABILITY_CHECK 0
#endif
-#ifndef GS_USE_MEMORY_HEADER_ID
-#define GS_USE_MEMORY_HEADER_ID 1
-#endif
-
-#if GS_USE_MEMORY_HEADER_ID
-
- typedef gs_id hdr_id_t;
-
- extern hdr_id_t hdr_id;
-
-# define HDR_ID_OFFSET (sizeof(obj_header_t) - offset_of(obj_header_t, d.o.hdr_id))
-
-# ifdef DEBUG
-
-# define ASSIGN_HDR_ID(obj) (*(hdr_id_t *)(((byte *)obj) - HDR_ID_OFFSET)) = hdr_id++
-
- gs_id get_mem_hdr_id (void *ptr);
-
-# else /* DEBUG */
-
-# define ASSIGN_HDR_ID(obj_hdr)
-
-# endif /* DEBUG */
-
-#else
-
-# define ASSIGN_HDR_ID(obj_hdr)
-# define HDR_ID_OFFSET 0
-
-#endif /* GS_USE_MEMORY_HEADER_ID */
-
/* ================ Objects ================ */
/*
@@ -130,10 +99,6 @@ typedef struct obj_header_data_s {
# if IGC_PTR_STABILITY_CHECK
unsigned space_id:3; /* r_space_bits + 1 bit for "instability". */
# endif
-
-# if GS_USE_MEMORY_HEADER_ID
- hdr_id_t hdr_id; /* should be last, to save wasting space in the "strings" case. Makes object easier to trace thru GC */
-# endif
} obj_header_data_t;
/*
diff --git a/base/gxp1fill.c b/base/gxp1fill.c
index 99f05f5c..15b395da 100644
--- a/base/gxp1fill.c
+++ b/base/gxp1fill.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 2001-2021 Artifex Software, Inc.
+/* Copyright (C) 2001-2022 Artifex Software, Inc.
All Rights Reserved.
This software is provided AS-IS with no warranty, either express or
@@ -33,6 +33,7 @@
#include "gxblend.h"
#include "gsicc_cache.h"
#include "gxdevsop.h"
+#include <limits.h> /* For INT_MAX etc */
#include "gdevp14.h"
@@ -212,6 +213,10 @@ tile_by_steps(tile_fill_state_t * ptfs, int x0, int y0, int w0, int h0,
int xoff, yoff;
if_debug4m('T', mem, "[T]i=%d j=%d x,y=(%d,%d)", i, j, x, y);
+ if (x == INT_MIN || y == INT_MIN) {
+ if_debug0m('T', mem, " underflow!\n");
+ continue;
+ }
if (x < x0)
xoff = x0 - x, x = x0, w -= xoff;
else
diff --git a/base/gxpath.c b/base/gxpath.c
index 5bbcf5d0..e700729b 100644
--- a/base/gxpath.c
+++ b/base/gxpath.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 2001-2021 Artifex Software, Inc.
+/* Copyright (C) 2001-2022 Artifex Software, Inc.
All Rights Reserved.
This software is provided AS-IS with no warranty, either express or
@@ -440,9 +440,12 @@ gx_path_new(gx_path * ppath)
int code = path_alloc_segments(&ppath->segments, ppath->memory,
"gx_path_new");
- rc_decrement(psegs, "gx_path_new");
- if (code < 0)
+ if (code < 0) {
+ /* Leave the path in a valid state, despite the error */
+ ppath->segments = psegs;
return code;
+ }
+ rc_decrement(psegs, "gx_path_new");
} else {
rc_free_path_segments_local(psegs->rc.memory, psegs, "gx_path_new");
}
@@ -1026,7 +1029,7 @@ gx_print_segment(const gs_memory_t *mem, const segment * pseg)
double py = fixed2float(pseg->pt.y);
char out[80];
- gs_sprintf(out, PRI_INTPTR "<"PRI_INTPTR","PRI_INTPTR">:%u",
+ gs_snprintf(out, sizeof(out), PRI_INTPTR "<"PRI_INTPTR","PRI_INTPTR">:%u",
(intptr_t)pseg, (intptr_t)pseg->prev, (intptr_t)pseg->next, pseg->notes);
switch (pseg->type) {
case s_start:{
diff --git a/base/gxpcmap.c b/base/gxpcmap.c
index bdcca0c8..86af0885 100644
--- a/base/gxpcmap.c
+++ b/base/gxpcmap.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 2001-2021 Artifex Software, Inc.
+/* Copyright (C) 2001-2022 Artifex Software, Inc.
All Rights Reserved.
This software is provided AS-IS with no warranty, either express or
@@ -133,6 +133,7 @@ pattern_accum_initialize_device_procs(gx_device *dev)
set_dev_proc(dev, strip_tile_rect_devn, gx_default_strip_tile_rect_devn);
set_dev_proc(dev, transform_pixel_region, gx_default_transform_pixel_region);
set_dev_proc(dev, fill_stroke_path, gx_default_fill_stroke_path);
+ set_dev_proc(dev, copy_alpha_hl_color, gx_default_copy_alpha_hl_color);
}
static const gx_device_pattern_accum gs_pattern_accum_device =
@@ -648,8 +649,10 @@ blank_unmasked_bits(gx_device * mask,
if (p->options & GB_PACKING_CHUNKY)
{
- if ((depth & 7) != 0 || depth > 64)
- return_error(gs_error_rangecheck);
+ if ((depth & 7) != 0 || depth > 64) {
+ code = gs_note_error(gs_error_rangecheck);
+ goto fail;
+ }
ptr = p->data[0];
depth >>= 3;
raster -= w*depth;
@@ -673,7 +676,7 @@ blank_unmasked_bits(gx_device * mask,
for (x = 0; x < w; x++)
{
int xx = x+x0;
- if (((mine[xx>>3]>>(x&7)) & 1) == 0) {
+ if (((mine[xx>>3]<<(x&7)) & 128) == 0) {
switch (depth)
{
case 8:
@@ -704,8 +707,10 @@ blank_unmasked_bits(gx_device * mask,
/* Planar, only handle 8 or 16 bits */
int bytes_per_component = (depth/num_comps) >> 3;
- if (depth/num_comps != 8 && depth/num_comps != 16)
- return_error(gs_error_rangecheck);
+ if (depth/num_comps != 8 && depth/num_comps != 16) {
+ code = gs_note_error(gs_error_rangecheck);
+ goto fail;
+ }
for (y = 0; y < h; y++)
{
int c;
@@ -1286,10 +1291,10 @@ dump_raw_pattern(int height, int width, int n_chan, int depth,
is_planar = mdev->is_planar;
max_bands = ( n_chan < 57 ? n_chan : 56); /* Photoshop handles at most 56 bands */
if (is_planar) {
- gs_sprintf(full_file_name, "%d)PATTERN_PLANE_%dx%dx%d.raw", global_pat_index,
+ gs_snprintf(full_file_name, sizeof(full_file_name), "%d)PATTERN_PLANE_%dx%dx%d.raw", global_pat_index,
mdev->raster, height, max_bands);
} else {
- gs_sprintf(full_file_name, "%d)PATTERN_CHUNK_%dx%dx%d.raw", global_pat_index,
+ gs_snprintf(full_file_name, sizeof(full_file_name), "%d)PATTERN_CHUNK_%dx%dx%d.raw", global_pat_index,
width, height, max_bands);
}
fid = gp_fopen(memory,full_file_name,"wb");
@@ -1486,7 +1491,7 @@ gx_pattern_load(gx_device_color * pdc, const gs_gstate * pgs,
goto fail;
if (pinst->templat.uses_transparency) {
if_debug0m('v', mem, "gx_pattern_load: pushing the pdf14 compositor device into this graphics state\n");
- if ((code = gs_push_pdf14trans_device(saved, true, false, 0, 0)) < 0) /* FIXME: do we need spot_color_count ??? */
+ if ((code = gs_push_pdf14trans_device(saved, true, false, 0, 0)) < 0) /* spot_color_count taken from pdf14 target values */
return code;
saved->device->is_open = true;
} else {
@@ -1672,6 +1677,26 @@ pattern_accum_dev_spec_op(gx_device *dev, int dso, void *data, int size)
return param_write_bool(plist, "NoInterpolateImagemasks", &bool_true);
}
}
+ /* Bug 704670. Pattern accumulator should not allow whatever targets
+ lie beneath it to do any bbox adjustments. If we are here, the
+ pattern accumulator is actually drawing into a buffer
+ and it is not accumulating into a clist device. In this case, if it
+ was a pattern clist, we would be going to the special op for the clist
+ device of the pattern, which will have the proper extent and adjust
+ the bbox. Here we just need to clip to the buffer into which we are drawing */
+ if (dso == gxdso_restrict_bbox) {
+ gs_int_rect* ibox = (gs_int_rect*)data;
+
+ if (ibox->p.y < 0)
+ ibox->p.y = 0;
+ if (ibox->q.y > padev->height)
+ ibox->q.y = padev->height;
+ if (ibox->p.x < 0)
+ ibox->p.x = 0;
+ if (ibox->q.x > padev->width)
+ ibox->q.x = padev->width;
+ return 0;
+ }
return dev_proc(target, dev_spec_op)(target, dso, data, size);
}
diff --git a/base/gxpflat.c b/base/gxpflat.c
index 928a24c2..61d43ee4 100644
--- a/base/gxpflat.c
+++ b/base/gxpflat.c
@@ -203,8 +203,7 @@ gx_flattened_iterator__init(gx_flattened_iterator *self,
return false;
self->curve = true;
self->k = k;
-#ifndef GS_THREADSAFE
-# ifdef DEBUG
+#ifdef DEBUG
if (gs_debug_c('3')) {
dlprintf4("[3]x0=%f y0=%f x1=%f y1=%f\n",
fixed2float(self->x0), fixed2float(self->y0),
@@ -213,7 +212,6 @@ gx_flattened_iterator__init(gx_flattened_iterator *self,
fixed2float(x2), fixed2float(y2),
fixed2float(self->x3), fixed2float(self->y3), self->k);
}
-# endif
#endif
if (k == -1) {
/* A special hook for gx_subdivide_curve_rec.
@@ -333,7 +331,7 @@ gx_flattened_iterator__init_line(gx_flattened_iterator *self,
return true;
}
-#if defined(DEBUG) && !defined(GS_THREADSAFE)
+#ifdef DEBUG
static inline void
gx_flattened_iterator__print_state(gx_flattened_iterator *self)
{
@@ -418,7 +416,7 @@ gx_flattened_iterator__next(gx_flattened_iterator *self)
--self->i;
if (self->i == 0)
goto last; /* don't bother with last accum */
-# if defined(DEBUG) && !defined(GS_THREADSAFE)
+# ifdef DEBUG
gx_flattened_iterator__print_state(self);
# endif
# define accum(i, r, di, dr, rmask)\
@@ -490,7 +488,7 @@ gx_flattened_iterator__prev(gx_flattened_iterator *self)
}
gx_flattened_iterator__unaccum(self);
self->i++;
-# if defined(DEBUG) && !defined(GS_THREADSAFE)
+# ifdef DEBUG
if_debug5('3', "[3]%s x=%g, y=%g x=%ld y=%ld\n",
(((self->x ^ self->lx1) | (self->y ^ self->ly1)) & float2fixed(-0.5) ?
"add" : "skip"),
diff --git a/base/gxshade4.c b/base/gxshade4.c
index f2058b98..b0ac4d1a 100644
--- a/base/gxshade4.c
+++ b/base/gxshade4.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 2001-2021 Artifex Software, Inc.
+/* Copyright (C) 2001-2022 Artifex Software, Inc.
All Rights Reserved.
This software is provided AS-IS with no warranty, either express or
@@ -123,7 +123,8 @@ gs_shading_FfGt_fill_rectangle(const gs_shading_t * psh0, const gs_rect * rect,
while ((flag = shade_next_flag(&cs, num_bits)) >= 0) {
switch (flag) {
default:
- return_error(gs_error_rangecheck);
+ code = gs_note_error(gs_error_rangecheck);
+ goto error;
case 0:
if ((code = Gt_next_vertex(pshm, &cs, &va, ca)) < 0 ||
(code = shade_next_flag(&cs, num_bits)) < 0 ||
@@ -150,6 +151,7 @@ v2: if ((code = Gt_next_vertex(pshm, &cs, &vc, cc)) < 0)
}
cs.align(&cs, 8); /* Debugged with 12-14O.PS page 2. */
}
+error:
release_colors(&pfs, pfs.color_stack, 3);
if (pfs.icclink != NULL) gsicc_release_link(pfs.icclink);
if (term_patch_fill_state(&pfs))
diff --git a/base/gxstroke.c b/base/gxstroke.c
index 87def483..6546e00b 100644
--- a/base/gxstroke.c
+++ b/base/gxstroke.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 2001-2021 Artifex Software, Inc.
+/* Copyright (C) 2001-2022 Artifex Software, Inc.
All Rights Reserved.
This software is provided AS-IS with no warranty, either express or
@@ -22,6 +22,7 @@
#include "gserrors.h"
#include "gsdcolor.h"
#include "gsptype1.h"
+#include "gsptype2.h"
#include "gxfixed.h"
#include "gxfarith.h"
#include "gxmatrix.h"
@@ -35,6 +36,7 @@
#include "gzcpath.h"
#include "gxpaint.h"
#include "gsstate.h" /* for gs_currentcpsimode */
+#include "gzacpath.h"
/* RJW: There appears to be a difference in the xps and postscript models
* (at least in as far as Microsofts implementation of xps and Acrobats of
@@ -329,15 +331,85 @@ static int cap_points(gs_line_cap, const_ep_ptr,
gs_fixed_point * /*[3] */ );
static int join_under_pie(gx_path *, pl_ptr, pl_ptr, bool);
+int
+gx_default_stroke_path_shading_or_pattern(gx_device * pdev,
+ const gs_gstate * pgs_orig,
+ gx_path * ppath,
+ const gx_stroke_params * params,
+ const gx_drawing_color * pdevc,
+ const gx_clip_path * pcpath)
+{
+ gs_gstate *pgs = (gs_gstate *)pgs_orig; /* Nasty cast away const! */
+ gs_logical_operation_t save_lop = gs_current_logical_op_inline(pgs);
+ gx_device_cpath_accum adev;
+ gx_device_color devc;
+ gx_clip_path stroke_as_clip_path;
+ int code;
+
+ /* We want to make a image of the stroke as a clip path, so
+ * create an empty structure on the stack. */
+ code = gx_cpath_init_local_shared_nested(&stroke_as_clip_path, NULL, pdev->memory, 1);
+ if (code < 0)
+ return code;
+ /* Now we make an accumulator device that will fill that out. */
+ gx_cpath_accum_begin(&adev, stroke_as_clip_path.path.memory, false);
+ set_nonclient_dev_color(&devc, 0); /* arbitrary, but not transparent */
+ gs_set_logical_op_inline(pgs, lop_default);
+ /* Stroke the path to the accumulator. */
+ code = gx_stroke_path_only(ppath, NULL, (gx_device *)&adev, pgs, params,
+ &devc, pcpath);
+ /* Now extract the accumulated path into stroke_as_clip_path. */
+ if (code < 0 || (code = gx_cpath_accum_end(&adev, &stroke_as_clip_path)) < 0)
+ gx_cpath_accum_discard(&adev);
+ gs_set_logical_op_inline(pgs, save_lop);
+ if (code >= 0)
+ {
+ /* Now, fill a rectangle with the original color through that
+ * clip path. */
+ gs_fixed_rect clip_box, shading_box;
+ gs_int_rect cb;
+ gx_device_clip cdev;
+
+ gx_cpath_outer_box(&stroke_as_clip_path, &clip_box);
+ /* This is horrid. If the pdevc is a shading color, then the
+ * fill_rectangle routine requires us to have intersected it
+ * with the shading rectangle first. If we don't do this,
+ * ps3fts/470-01.ps goes wrong. */
+ if (gx_dc_is_pattern2_color(pdevc) &&
+ gx_dc_pattern2_get_bbox(pdevc, &shading_box) > 0)
+ {
+ rect_intersect(clip_box, shading_box);
+ }
+ cb.p.x = fixed2int_pixround(clip_box.p.x);
+ cb.p.y = fixed2int_pixround(clip_box.p.y);
+ cb.q.x = fixed2int_pixround(clip_box.q.x);
+ cb.q.y = fixed2int_pixround(clip_box.q.y);
+ gx_make_clip_device_on_stack(&cdev, &stroke_as_clip_path, pdev);
+ code = pdevc->type->fill_rectangle(pdevc,
+ cb.p.x, cb.p.y, cb.q.x - cb.p.x, cb.q.y - cb.p.y,
+ (gx_device *)&cdev, pgs->log_op, NULL);
+ }
+ gx_cpath_free(&stroke_as_clip_path, "gx_default_stroke_path_shading_or_pattern");
+
+ return code;
+}
+
/* Define the default implementation of the device stroke_path procedure. */
int
gx_default_stroke_path(gx_device * dev, const gs_gstate * pgs,
gx_path * ppath, const gx_stroke_params * params,
- const gx_drawing_color * pdcolor,
+ const gx_drawing_color * pdevc,
const gx_clip_path * pcpath)
{
- return gx_stroke_path_only(ppath, (gx_path *) 0, dev, pgs, params,
- pdcolor, pcpath);
+ if (gx_dc_is_pattern2_color(pdevc) ||
+ pdevc->type == &gx_dc_type_data_ht_colored ||
+ (gx_dc_is_pattern1_color(pdevc) &&
+ gx_pattern_tile_is_clist(pdevc->colors.pattern.p_tile)))
+ return gx_default_stroke_path_shading_or_pattern(dev, pgs, ppath, params,
+ pdevc, pcpath);
+ else
+ return gx_stroke_path_only(ppath, (gx_path *) 0, dev, pgs, params,
+ pdevc, pcpath);
}
/* Fill a partial stroked path. Free variables: */
@@ -422,9 +494,13 @@ gx_join_path_and_reverse(gx_path * path, gx_path * rpath)
* what is wanted.
*/
static int
-gx_stroke_path_only_aux(gx_path * ppath, gx_path * to_path, gx_device * pdev,
- const gs_gstate * pgs, const gx_stroke_params * params,
- const gx_device_color * pdevc, const gx_clip_path * pcpath)
+gx_stroke_path_only_aux(gx_path *ppath, /* lgtm[cpp/use-of-goto] */
+ gx_path *to_path,
+ gx_device *pdev,
+ const gs_gstate *pgs,
+ const gx_stroke_params *params,
+ const gx_device_color *pdevc,
+ const gx_clip_path *pcpath)
{
bool CPSI_mode = gs_currentcpsimode(pgs->memory);
bool traditional = CPSI_mode | params->traditional;
@@ -1397,7 +1473,7 @@ line_intersect(
double f1;
double max_result = any_abs(denom) * (double)max_fixed;
-#if defined(DEBUG) && !defined(GS_THREADSAFE)
+#ifdef DEBUG
if (gs_debug_c('O')) {
dlprintf4("[o]Intersect %f,%f(%f/%f)",
fixed2float(pp1->x), fixed2float(pp1->y),
@@ -1740,7 +1816,7 @@ check_miter(const gx_line_params * pgs_lp, pl_ptr plp, pl_ptr nplp,
* we actually have to do the test backwards.
*/
ccw0 = v1 * u2 < v2 * u1;
-#if defined(DEBUG) && !defined(GS_THREADSAFE)
+#ifdef DEBUG
{
double a1 = atan2(u1, v1), a2 = atan2(u2, v2), dif = a1 - a2;
@@ -1763,7 +1839,7 @@ check_miter(const gx_line_params * pgs_lp, pl_ptr plp, pl_ptr nplp,
*/
if (!ccw0) /* have plp - nplp, want vice versa */
num = -num;
-#if defined(DEBUG) && !defined(GS_THREADSAFE)
+#ifdef DEBUG
if (gs_debug_c('O')) {
dlprintf4("[o]Miter check: u1/v1=%f/%f, u2/v2=%f/%f,\n",
u1, v1, u2, v2);
@@ -2511,7 +2587,7 @@ compute_caps(pl_ptr plp)
plp->o.ce.x = plp->o.p.x - wx2, plp->o.ce.y = plp->o.p.y - wy2;
plp->e.co.x = plp->e.p.x - wx2, plp->e.co.y = plp->e.p.y - wy2;
plp->e.ce.x = plp->e.p.x + wx2, plp->e.ce.y = plp->e.p.y + wy2;
-#if defined(DEBUG) && !defined(GS_THREADSAFE)
+#ifdef DEBUG
if (gs_debug_c('O')) {
dlprintf4("[o]Stroke o=(%f,%f) e=(%f,%f)\n",
fixed2float(plp->o.p.x), fixed2float(plp->o.p.y),
diff --git a/base/gxtype1.c b/base/gxtype1.c
index 44dfab43..d3af50ec 100644
--- a/base/gxtype1.c
+++ b/base/gxtype1.c
@@ -346,7 +346,7 @@ type1_cis_get_metrics(const gs_type1_state * pcis, double psbw[4])
* This is exported only for the benefit of font copying.
*/
int
-gs_type1_piece_codes(/*const*/ gs_font_type1 *pfont,
+gs_type1_piece_codes(/*const*/ gs_font_type1 *pfont, /* lgtm[cpp/use-of-goto] */
const gs_glyph_data_t *pgd, gs_char *chars)
{
gs_type1_data *const pdata = &pfont->data;
diff --git a/base/gzcpath.h b/base/gzcpath.h
index 726864bf..bea5ee64 100644
--- a/base/gzcpath.h
+++ b/base/gzcpath.h
@@ -79,6 +79,9 @@ struct gx_clip_path_s {
gs_id id;
/* The last rectangle we accessed while using this clip_path */
gx_clip_rect *cached;
+ /* The fill adjust to be used if the path is valid. If the
+ * path is not valid, always use 0,0. */
+ gs_fixed_point path_fill_adjust;
};
extern_st(st_clip_path);
diff --git a/base/lcups.mak b/base/lcups.mak
index 001b538c..43a25d46 100644
--- a/base/lcups.mak
+++ b/base/lcups.mak
@@ -1,4 +1,4 @@
-# Copyright (C) 2001-2021 Artifex Software, Inc.
+# Copyright (C) 2001-2022 Artifex Software, Inc.
# All Rights Reserved.
#
# This software is provided AS-IS with no warranty, either express or
@@ -16,21 +16,21 @@
# makefile for libcups as part of the monolithic gs build.
#
# Users of this makefile must define the following:
-# LCUPSSRCDIR - the source directory
+# LIBCUPSSRCDIR - the source directory
# LCUPSGENDIR - the generated intermediate file directory
# LCUPSOBJDIR - the object file directory
# SHARE_LCUPS - 0 to compile in libcups, 1 to link a shared library
# LCUPS_LIBS - if SHARE_CUPS=1, the link options for the shared library
# (Rename directories.)
-LIBCUPSSRC=$(LCUPSSRCDIR)$(D)libs$(D)cups$(D)
+LIBCUPSSRC=$(LIBCUPSSRCDIR)$(D)libs$(D)cups$(D)
LIBCUPSGEN=$(LCUPSGENDIR)$(D)
LIBCUPSOBJ=$(LCUPSOBJDIR)$(D)
LCUPSO_=$(O_)$(LIBCUPSOBJ)
# NB: we can't use the normal $(CC_) here because msvccmd.mak
# adds /Za which conflicts with the cups source.
-LCUPS_CC=$(CUPS_CC) $(CUPSCFLAGS) $(I_)$(LIBCUPSSRC) $(I_)$(LIBCUPSGEN)$(D)cups $(I_)$(LCUPSSRCDIR)$(D)libs
+LCUPS_CC=$(CUPS_CC) $(CUPSCFLAGS) $(I_)$(LIBCUPSSRC)$(_I) $(I_)$(LIBCUPSGEN)$(D)cups$(_I) $(I_)$(LIBCUPSSRCDIR)$(D)libs$(_I)
# Define the name of this makefile.
LCUPS_MAK=$(GLSRC)lcups.mak $(TOP_MAKEFILES)
@@ -106,7 +106,7 @@ LIBCUPS_DEPS = \
libcups.clean : libcups.config-clean libcups.clean-not-config-clean
libcups.clean-not-config-clean :
- $(EXP)$(ECHOGS_XE) $(LCUPSSRCDIR) $(LCUPSOBJDIR)
+ $(EXP)$(ECHOGS_XE) $(LIBCUPSSRCDIR) $(LCUPSOBJDIR)
$(RM_) $(LIBCUPSOBJ)*.$(OBJ)
libcups.config-clean :
@@ -135,8 +135,8 @@ $(LIBCUPSGEN)lcups_0.dev : $(ECHOGS_XE) $(LIBCUPS_OBJS) $(LIBCUPS_DEPS)
# explicit rules for building the source files
# for simplicity we have every source file depend on all headers
-$(LIBCUPSGEN)$(D)cups$(D)config.h : $(LCUPSSRCDIR)$(D)libs$(D)config$(LCUPSBUILDTYPE).h $(LIBCUPS_DEPS)
- $(CP_) $(LCUPSSRCDIR)$(D)libs$(D)config$(LCUPSBUILDTYPE).h $(LIBCUPSGEN)$(D)cups$(D)config.h
+$(LIBCUPSGEN)$(D)cups$(D)config.h : $(LIBCUPSSRCDIR)$(D)libs$(D)config$(LCUPSBUILDTYPE).h $(LIBCUPS_DEPS)
+ $(CP_) $(LIBCUPSSRCDIR)$(D)libs$(D)config$(LCUPSBUILDTYPE).h $(LIBCUPSGEN)$(D)cups$(D)config.h
$(LIBCUPSOBJ)adminutil.$(OBJ) : $(LIBCUPSSRC)adminutil.c $(LIBCUPSGEN)$(D)cups$(D)config.h $(LIBCUPS_DEPS)
$(LCUPS_CC) $(LCUPSO_)adminutil.$(OBJ) $(C_) $(LIBCUPSSRC)adminutil.c
diff --git a/base/lib.mak b/base/lib.mak
index e8d5719d..4dc6c26e 100644
--- a/base/lib.mak
+++ b/base/lib.mak
@@ -1,4 +1,4 @@
-# Copyright (C) 2001-2021 Artifex Software, Inc.
+# Copyright (C) 2001-2022 Artifex Software, Inc.
# All Rights Reserved.
#
# This software is provided AS-IS with no warranty, either express or
@@ -101,6 +101,7 @@ srdline_h=$(GLSRC)srdline.h
gpgetenv_h=$(GLSRC)gpgetenv.h
gpmisc_h=$(GLSRC)gpmisc.h
gp_h=$(GLSRC)gp.h
+globals_h=$(GLSRC)globals.h
gpcheck_h=$(GLSRC)gpcheck.h
gpsync_h=$(GLSRC)gpsync.h
@@ -239,7 +240,7 @@ $(GLOBJ)gsalloc.$(OBJ) : $(GLSRC)gsalloc.c $(AK) $(gx_h) $(gserrors_h)\
$(GLCC) $(GLO_)gsalloc.$(OBJ) $(C_) $(GLSRC)gsalloc.c
$(GLOBJ)gsmalloc.$(OBJ) : $(GLSRC)gsmalloc.c $(malloc__h)\
- $(gdebug_h)\
+ $(gdebug_h) $(gp_h) \
$(gserrors_h)\
$(gsmalloc_h) $(gsmdebug_h) $(gsmemret_h)\
$(gsmemory_h) $(gsstruct_h) $(gstypes_h) $(LIB_MAK) $(MAKEDIRS)
@@ -349,7 +350,7 @@ $(GLOBJ)gsargs.$(OBJ) : $(GLSRC)gsargs.c\
$(GLOBJ)gsmisc.$(OBJ) : $(GLSRC)gsmisc.c $(AK) $(gx_h) $(gserrors_h)\
$(vmsmath_h) $(std_h) $(ctype__h) $(malloc__h) $(math__h) $(memory__h)\
$(string__h) $(gpcheck_h) $(gxfarith_h) $(gxfixed_h) $(stdint__h) $(stdio__h)\
- $(gdbflags_h) $(LIB_MAK) $(MAKEDIRS)
+ $(gdbflags_h) $(gp_h) $(LIB_MAK) $(MAKEDIRS)
$(GLCC) $(GLO_)gsmisc.$(OBJ) $(C_) $(GLSRC)gsmisc.c
$(AUX)gsmisc.$(OBJ) : $(GLSRC)gsmisc.c $(AK) $(gx_h) $(gpmisc_h) $(gserrors_h)\
@@ -358,9 +359,9 @@ $(AUX)gsmisc.$(OBJ) : $(GLSRC)gsmisc.c $(AK) $(gx_h) $(gpmisc_h) $(gserrors_h)\
$(gdbflags_h) $(LIB_MAK) $(MAKEDIRS)
$(GLCCAUX) $(C_) $(AUXO_)gsmisc.$(OBJ) $(GLSRC)gsmisc.c
-$(GLOBJ)gslibctx_1.$(OBJ) : $(GLSRC)gslibctx.c $(AK) $(gp_h) $(gpmisc_h) $(gsmemory_h)\
- $(gslibctx_h) $(stdio__h) $(string__h) $(gsicc_manage_h) $(gserrors_h)\
- $(gscdefs_h) $(gsstruct_h)
+$(GLOBJ)gslibctx_1.$(OBJ) : $(GLSRC)gslibctx.c $(AK) $(gp_h) $(gpmisc_h) \
+ $(gsmemory_h) $(gslibctx_h) $(stdio__h) $(string__h) $(gsicc_manage_h) \
+ $(gserrors_h) $(gscdefs_h) $(gsstruct_h) $(globals_h)
$(GLCC) $(D_)WITH_CAL$(_D) $(I_)$(CALSRCDIR)$(_I) $(GLO_)gslibctx_1.$(OBJ) $(C_) $(GLSRC)gslibctx.c
$(GLOBJ)gslibctx_0.$(OBJ) : $(GLSRC)gslibctx.c $(AK) $(gp_h) $(gpmisc_h) $(gsmemory_h)\
@@ -912,7 +913,7 @@ $(GLOBJ)gxscanc.$(OBJ) : $(GLSRC)gxscanc.c $(GX) $(gxscanc_h) $(gx_h)\
$(GLOBJ)gxstroke.$(OBJ) : $(GLSRC)gxstroke.c $(AK) $(gx_h)\
$(gserrors_h) $(math__h) $(gpcheck_h) $(gsstate_h)\
- $(gscoord_h) $(gsdcolor_h) $(gsdevice_h) $(gsptype1_h)\
+ $(gscoord_h) $(gsdcolor_h) $(gsdevice_h) $(gsptype1_h) $(gsptype2_h)\
$(gxdevice_h) $(gxfarith_h) $(gxfixed_h)\
$(gxhttile_h) $(gxgstate_h) $(gxmatrix_h) $(gxpaint_h)\
$(gzcpath_h) $(gzline_h) $(gzpath_h) $(LIB_MAK) $(MAKEDIRS)
@@ -1012,7 +1013,7 @@ $(GLOBJ)gsgcache.$(OBJ) : $(GLSRC)gsgcache.c $(AK) $(gx_h)\
$(GLCC) $(GLO_)gsgcache.$(OBJ) $(C_) $(GLSRC)gsgcache.c
$(GLOBJ)gsht.$(OBJ) : $(GLSRC)gsht.c $(AK) $(gx_h) $(gserrors_h)\
- $(memory__h) $(string__h) $(gsstruct_h) $(gsutil_h) $(gxarith_h) $(gxdevsop_h)\
+ $(memory__h) $(string__h) $(gsstruct_h) $(gsutil_h) $(gxarith_h)\
$(gxdevice_h) $(gzht_h) $(gzstate_h) $(gxfmap_h) $(gp_h) $(LIB_MAK) $(MAKEDIRS)
$(GLCC) $(GLO_)gsht.$(OBJ) $(C_) $(GLSRC)gsht.c
@@ -1403,12 +1404,12 @@ downscale_=$(GLOBJ)gxdownscale.$(OBJ) $(claptrap) $(ets)
$(GLOBJ)gxdownscale_0.$(OBJ) : $(GLSRC)gxdownscale.c $(AK) $(string__h)\
$(gxdownscale_h) $(gserrors_h) $(gdevprn_h) $(assert__h) $(ets_h)\
- $(LIB_MAK) $(MAKEDIRS)
+ $(gsicc_cache_h) $(LIB_MAK) $(MAKEDIRS)
$(GLCC) $(GLO_)gxdownscale_0.$(OBJ) $(C_) $(GLSRC)gxdownscale.c
$(GLOBJ)gxdownscale_1.$(OBJ) : $(GLSRC)gxdownscale.c $(AK) $(string__h)\
$(gxdownscale_h) $(gserrors_h) $(gdevprn_h) $(assert__h) $(ets_h)\
- $(LIB_MAK) $(MAKEDIRS)
+ $(gsicc_cache_h) $(LIB_MAK) $(MAKEDIRS)
$(GLCC) $(D_)WITH_CAL$(_D) $(I_)$(CALSRCDIR)$(_I) $(GLO_)gxdownscale_1.$(OBJ) $(C_) $(GLSRC)gxdownscale.c
$(GLOBJ)gxdownscale.$(OBJ) : $(GLOBJ)gxdownscale_$(WITH_CAL).$(OBJ) $(AK) $(gp_h)
@@ -3726,7 +3727,7 @@ $(GLD)nosync.dev : $(LIB_MAK) $(ECHOGS_XE) $(nosync_) $(LIB_MAK) $(MAKEDIRS)
$(SETMOD) $(GLD)nosync $(nosync_)
$(GLOBJ)gp_nsync.$(OBJ) : $(GLSRC)gp_nsync.c $(AK) $(std_h)\
- $(gpsync_h) $(gserrors_h) $(LIB_MAK) $(MAKEDIRS)
+ $(gpsync_h) $(gp_h) $(globals_h) $(gserrors_h) $(LIB_MAK) $(MAKEDIRS)
$(GLCC) $(GLO_)gp_nsync.$(OBJ) $(C_) $(GLSRC)gp_nsync.c
# POSIX pthreads-based implementation.
@@ -3736,8 +3737,8 @@ $(GLD)posync.dev : $(LIB_MAK) $(ECHOGS_XE) $(pthreads_) $(LIB_MAK) $(MAKEDIRS)
$(ADDMOD) $(GLD)posync -replace $(GLD)nosync
$(GLOBJ)gp_psync.$(OBJ) : $(GLSRC)gp_psync.c $(AK) $(malloc__h) $(string__h) \
- $(std_h) $(gpsync_h) $(gserrors_h) $(assert__h) $(unistd__h) $(LIB_MAK)\
- $(MAKEDIRS)
+ $(std_h) $(gpsync_h) $(gserrors_h) $(assert__h) $(unistd__h) $(globals_h) \
+ $(gp_h) $(LIB_MAK) $(MAKEDIRS)
$(GLCC) $(GLO_)gp_psync.$(OBJ) $(C_) $(GLSRC)gp_psync.c
# Other stuff.
@@ -3975,6 +3976,7 @@ $(GLSRC)gp.h:$(GLSRC)stat_.h
$(GLSRC)gp.h:$(GLSRC)gsstype.h
$(GLSRC)gp.h:$(GLSRC)gsmemory.h
$(GLSRC)gp.h:$(GLSRC)gpgetenv.h
+$(GLSRC)gp.h:$(GLSRC)globals.h
$(GLSRC)gp.h:$(GLSRC)gscdefs.h
$(GLSRC)gp.h:$(GLSRC)gslibctx.h
$(GLSRC)gp.h:$(GLSRC)stdio_.h
@@ -4075,6 +4077,8 @@ $(GLSRC)gsgc.h:$(GLSRC)stdint_.h
$(GLSRC)gsgc.h:$(GLSRC)std.h
$(GLSRC)gsgc.h:$(GLSRC)stdpre.h
$(GLSRC)gsgc.h:$(GLGEN)arch.h
+$(GLSRC)globals.h:$(GLSRC)std.h
+$(GLSRC)globals.h:$(GLSRC)gslibctx.h
$(GLSRC)gsmalloc.h:$(GLSRC)gxsync.h
$(GLSRC)gsmalloc.h:$(GLSRC)gpsync.h
$(GLSRC)gsmalloc.h:$(GLSRC)gsmemory.h
diff --git a/base/memento.c b/base/memento.c
index 56b7788b..c3a774b9 100644
--- a/base/memento.c
+++ b/base/memento.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 2009-2021 Artifex Software, Inc.
+/* Copyright (C) 2009-2022 Artifex Software, Inc.
All Rights Reserved.
This software is provided AS-IS with no warranty, either express or
@@ -13,12 +13,27 @@
/* Inspired by Fortify by Simon P Bullen. */
+/* Set the following if we want to do a build specifically for memory
+ * squeezing. We sacrifice some features for speed. */
+/* #define MEMENTO_SQUEEZEBUILD */
+
/* Set the following if you're only looking for leaks, not memory overwrites
* to speed the operation */
/* #define MEMENTO_LEAKONLY */
+/* Unset the following if you don't want the speed/memory hit of tracking references. */
+#ifndef MEMENTO_SQUEEZEBUILD
+#define MEMENTO_TRACKREFS
+#endif
+
/* Set the following to keep extra details about the history of blocks */
+#ifndef MEMENTO_SQUEEZEBUILD
#define MEMENTO_DETAILS
+#endif
+
+/* Set what volume of memory blocks we keep around after it's been freed
+ * to check for overwrites. */
+#define MEMENTO_FREELIST_MAX 0x2000000
/* Don't keep blocks around if they'd mean losing more than a quarter of
* the freelist. */
@@ -80,10 +95,12 @@ int atexit(void (*)(void));
#define FMTZ "%llu"
#define FMTZ_CAST _int64
#define FMTP "0x%p"
+typedef unsigned _int64 mem_uint64_t;
#else
#define FMTZ "%zu"
#define FMTZ_CAST size_t
#define FMTP "%p"
+typedef long long mem_uint64_t;
#endif
#define UB(x) ((intptr_t)((x) & 0xFF))
@@ -213,16 +230,22 @@ windows_fprintf(FILE *file, const char *fmt, ...)
#define MEMENTO_HAS_FORK
#endif
+#if defined(_DLL) && defined(_MSC_VER)
+#define MEMENTO_CRT_SPEC __declspec(dllimport)
+#else
+#define MEMENTO_CRT_SPEC
+#endif
+
/* Define the underlying allocators, just in case */
-void *MEMENTO_UNDERLYING_MALLOC(size_t);
-void MEMENTO_UNDERLYING_FREE(void *);
-void *MEMENTO_UNDERLYING_REALLOC(void *,size_t);
-void *MEMENTO_UNDERLYING_CALLOC(size_t,size_t);
+MEMENTO_CRT_SPEC void *MEMENTO_UNDERLYING_MALLOC(size_t);
+MEMENTO_CRT_SPEC void MEMENTO_UNDERLYING_FREE(void *);
+MEMENTO_CRT_SPEC void *MEMENTO_UNDERLYING_REALLOC(void *,size_t);
+MEMENTO_CRT_SPEC void *MEMENTO_UNDERLYING_CALLOC(size_t,size_t);
/* And some other standard functions we use. We don't include the header
* files, just in case they pull in unexpected others. */
-int atoi(const char *);
-char *getenv(const char *);
+MEMENTO_CRT_SPEC int atoi(const char *);
+MEMENTO_CRT_SPEC char *getenv(const char *);
/* How far to search for pointers in each block when calculating nestings */
/* mupdf needs at least 34000ish (sizeof(fz_shade))/ */
@@ -274,7 +297,9 @@ enum {
Memento_Flag_BreakOnRealloc = 8,
Memento_Flag_Freed = 16,
Memento_Flag_KnownLeak = 32,
- Memento_Flag_Reported = 64
+ Memento_Flag_Reported = 64,
+ Memento_Flag_LastPhase = 0x80000000,
+ Memento_Flag_PhaseMask = 0xFFFF0000
};
enum {
@@ -335,15 +360,24 @@ static const char *eventType[] =
#define MEMENTO_SIBLING_MAGIC ((Memento_BlkHeader *)('n' | ('t' << 8) | ('0' << 16) | ('!' << 24)))
#ifdef MEMENTO_DETAILS
+typedef struct Memento_hashedST Memento_hashedST;
+
+struct Memento_hashedST
+{
+ Memento_hashedST *next;
+ MEMENTO_UINT32 hash;
+ int count;
+ void *trace[1];
+};
+
typedef struct Memento_BlkDetails Memento_BlkDetails;
struct Memento_BlkDetails
{
Memento_BlkDetails *next;
char type;
- char count;
int sequence;
- void *stack[1];
+ Memento_hashedST *trace;
};
#endif /* MEMENTO_DETAILS */
@@ -355,10 +389,17 @@ struct Memento_BlkHeader
int sequence;
int lastCheckedOK;
int flags;
+
+ const char *label;
+
+ /* Blocks are held in a linked list for LRU */
Memento_BlkHeader *next;
Memento_BlkHeader *prev; /* Reused as 'parent' when printing nested list */
- const char *label;
+ /* Blocks are held in a splay tree for position. */
+ Memento_BlkHeader *parent;
+ Memento_BlkHeader *left;
+ Memento_BlkHeader *right;
/* Entries for nesting display calculations. Set to magic
* values at all other time. */
@@ -380,6 +421,7 @@ typedef struct Memento_Blocks
{
Memento_BlkHeader *head;
Memento_BlkHeader *tail;
+ Memento_BlkHeader *top;
} Memento_Blocks;
/* What sort of Mutex should we use? */
@@ -453,13 +495,14 @@ static struct {
int nextPattern;
int patternBit;
int leaking;
+ int showDetailedBlocks;
int hideMultipleReallocs;
int abortOnLeak;
int abortOnCorruption;
size_t maxMemory;
size_t alloc;
size_t peakAlloc;
- size_t totalAlloc;
+ mem_uint64_t totalAlloc;
size_t numMallocs;
size_t numFrees;
size_t numReallocs;
@@ -467,6 +510,14 @@ static struct {
Memento_range *squeezes;
int squeezes_num;
int squeezes_pos;
+ int phasing;
+ int verbose;
+ int verboseNewlineSuppressed;
+ void *lastVerbosePtr;
+#ifdef MEMENTO_DETAILS
+ Memento_hashedST *stacktraces[256];
+ int hashCollisions;
+#endif
} memento;
#define MEMENTO_EXTRASIZE (sizeof(Memento_BlkHeader) + Memento_PostSize)
@@ -844,9 +895,12 @@ static int Memento_getStacktrace(void **stack, int *skip)
static void Memento_showStacktrace(void **stack, int numberOfFrames)
{
MY_IMAGEHLP_LINE line;
- int i;
+ int i, j;
char symbol_buffer[sizeof(MY_SYMBOL_INFO) + 1024 + 1];
MY_SYMBOL_INFO *symbol = (MY_SYMBOL_INFO *)symbol_buffer;
+ bool ok;
+ int prefix = 1; /* Ignore a prefix of 'unknowns' */
+ int suppressed = 0; /* How many unknowns we have suppressed. */
symbol->MaxNameLen = 1024;
symbol->SizeOfStruct = sizeof(MY_SYMBOL_INFO);
@@ -855,9 +909,18 @@ static void Memento_showStacktrace(void **stack, int numberOfFrames)
{
DWORD64 dwDisplacement64;
DWORD dwDisplacement;
- Memento_SymFromAddr(Memento_process, (DWORD64)(stack[i]), &dwDisplacement64, symbol);
- Memento_SymGetLineFromAddr(Memento_process, (DWORD_NATIVESIZED)(stack[i]), &dwDisplacement, &line);
- fprintf(stderr, " %s in %s:%d\n", symbol->Name, line.FileName, line.LineNumber);
+ ok = Memento_SymFromAddr(Memento_process, (DWORD64)(stack[i]), &dwDisplacement64, symbol);
+ if (ok == 1)
+ ok = Memento_SymGetLineFromAddr(Memento_process, (DWORD_NATIVESIZED)(stack[i]), &dwDisplacement, &line);
+ if (ok == 1) {
+ for (j = 0; j < suppressed; j++)
+ fprintf(stderr, " unknown\n");
+ suppressed = 0;
+ fprintf(stderr, " %s in %s:%d\n", symbol->Name, line.FileName, line.LineNumber);
+ prefix = 0;
+ } else if (prefix == 0) {
+ suppressed++;
+ }
}
}
#elif defined(MEMENTO_STACKTRACE_METHOD) && MEMENTO_STACKTRACE_METHOD == 3
@@ -955,15 +1018,33 @@ static void Memento_showStacktrace(void **stack, int numberOfFrames)
#endif /* MEMENTO_STACKTRACE_METHOD */
#ifdef MEMENTO_DETAILS
-static void Memento_storeDetails(Memento_BlkHeader *head, int type)
+static MEMENTO_UINT32
+hashStackTrace(void **stack, int count)
{
- void *stack[MEMENTO_BACKTRACE_MAX];
- Memento_BlkDetails *details;
- int count;
- int skip;
+ int i;
+ MEMENTO_UINT32 hash = 0;
- if (head == NULL)
- return;
+ count *= sizeof(void *)/sizeof(unsigned int);
+ for (i = 0; i < count; i++)
+ hash = (hash>>5) ^ (hash<<27) ^ ((unsigned int *)stack)[i];
+
+ return hash;
+}
+
+static Memento_hashedST oom_hashed_st =
+{
+ NULL, /* next */
+ 0, /* hash */
+ 0, /* count */
+ {NULL}/* trace[0] */
+};
+
+static Memento_hashedST *Memento_getHashedStacktrace(void)
+{
+ void *stack[MEMENTO_BACKTRACE_MAX];
+ MEMENTO_UINT32 hash;
+ int count, skip;
+ Memento_hashedST **h;
#ifdef MEMENTO_STACKTRACE_METHOD
count = Memento_getStacktrace(stack, &skip);
@@ -972,17 +1053,60 @@ static void Memento_storeDetails(Memento_BlkHeader *head, int type)
count = 0;
#endif
- details = MEMENTO_UNDERLYING_MALLOC(sizeof(*details) + (count-1) * sizeof(void *));
- if (details == NULL)
+ count -= skip;
+ hash = hashStackTrace(&stack[skip], count);
+ while (1) {
+ h = &memento.stacktraces[hash & 0xff];
+ while (*h) {
+ if ((*h)->hash == hash)
+ break;
+ h = &(*h)->next;
+ }
+ if ((*h) == NULL)
+ break; /* No match, fall through to make a new one. */
+ if (count == (*h)->count &&
+ memcmp((*h)->trace, &stack[skip], sizeof(void *) * count) == 0)
+ return (*h); /* We match! Reuse this one. */
+ /* Hash collision. */
+ hash++;
+ memento.hashCollisions++;
+ }
+
+ (*h) = MEMENTO_UNDERLYING_MALLOC(sizeof(Memento_hashedST) + sizeof(void *) * (count-1));
+ if (*h == NULL)
+ return &oom_hashed_st;
+
+ (*h)->next = NULL;
+ (*h)->hash = hash;
+ (*h)->count = count;
+ memcpy(&(*h)->trace[0], &stack[skip], count * sizeof(void *));
+
+ return *h;
+}
+
+static void Memento_showHashedStacktrace(Memento_hashedST *trace)
+{
+ if (trace == NULL)
+ return;
+
+ Memento_showStacktrace(&trace->trace[0], trace->count);
+}
+
+static void Memento_storeDetails(Memento_BlkHeader *head, int type, Memento_hashedST *st)
+{
+ Memento_BlkDetails *details;
+
+ if (head == NULL)
return;
- if (count)
- memcpy(&details->stack, &stack[skip], count * sizeof(void *));
+ details = MEMENTO_UNDERLYING_MALLOC(sizeof(*details));
+ if (details == NULL)
+ return;
details->type = (char)type;
- details->count = (char)count;
details->sequence = memento.sequence;
details->next = NULL;
+ details->trace = st;
VALGRIND_MAKE_MEM_DEFINED(&head->details_tail, sizeof(head->details_tail));
*head->details_tail = details;
head->details_tail = &details->next;
@@ -990,15 +1114,19 @@ static void Memento_storeDetails(Memento_BlkHeader *head, int type)
}
#endif
-void (Memento_bt)(void)
+void Memento_showHash(MEMENTO_UINT32 hash)
{
-#ifdef MEMENTO_STACKTRACE_METHOD
- void *stack[MEMENTO_BACKTRACE_MAX];
- int count;
- int skip;
+#ifdef MEMENTO_DETAILS
+ Memento_hashedST *h;
- count = Memento_getStacktrace(stack, &skip);
- Memento_showStacktrace(&stack[skip-2], count-skip+2);
+ h = memento.stacktraces[hash & 0xff];
+ while (h) {
+ if (h->hash == hash)
+ break;
+ h = h->next;
+ }
+
+ Memento_showHashedStacktrace(h);
#endif
}
@@ -1014,6 +1142,11 @@ static void Memento_bt_internal(int skip2)
#endif
}
+void (Memento_bt)(void)
+{
+ Memento_bt_internal(0);
+}
+
static int Memento_checkAllMemoryLocked(void);
void Memento_breakpoint(void)
@@ -1041,12 +1174,271 @@ do { MEMENTO_DO_UNLOCK(); } while (0)
#define Memento_breakpointLocked() \
do { MEMENTO_UNLOCK(); Memento_breakpoint(); MEMENTO_LOCK(); } while (0)
+/* Move the given node to the root of the tree, by
+ * performing a series of the following rotations.
+ * The key observation here is that all these
+ * rotations preserve the ordering of the tree, and
+ * result in 'x' getting higher.
+ *
+ * Case 1: z x Case 1b: z x
+ * # # # # # # # #
+ * y D A y A y y D
+ * # # => # # # # => # #
+ * x C B z B x z C
+ * # # # # # # # #
+ * A B C D C D A B
+ *
+ * Case 2: z x Case 2b: z x
+ * # # ## ## # # ## ##
+ * y D y z A y z y
+ * # # => # # # # # # => # # # #
+ * A x A B C D x D A B C D
+ * # # # #
+ * B C B C
+ *
+ * Case 3: y x Case 3b: y x
+ * # # # # # # # #
+ * x C => A y A x => y C
+ * # # # # # # # #
+ * A B B C B C A B
+ */
+static void
+move_to_root(Memento_BlkHeader *x)
+{
+ Memento_BlkHeader *y, *z;
+
+ if (x == NULL)
+ return;
+
+ VALGRIND_MAKE_MEM_DEFINED(x, sizeof(*x));
+ while ((y = x->parent) != NULL) {
+ VALGRIND_MAKE_MEM_DEFINED(y, sizeof(*y));
+ if ((z = y->parent) != NULL) {
+ VALGRIND_MAKE_MEM_DEFINED(z, sizeof(*z));
+ x->parent = z->parent;
+ if (x->parent) {
+ VALGRIND_MAKE_MEM_DEFINED(x->parent, sizeof(*x->parent));
+ if (x->parent->left == z)
+ x->parent->left = x;
+ else
+ x->parent->right = x;
+ VALGRIND_MAKE_MEM_NOACCESS(x->parent, sizeof(*x->parent));
+ }
+ y->parent = x;
+ /* Case 1, 1b, 2 or 2b */
+ if (y->left == x) {
+ /* Case 1 or 2b */
+ if (z->left == y) {
+ /* Case 1 */
+ y->left = x->right;
+ if (y->left) {
+ VALGRIND_MAKE_MEM_DEFINED(y->left, sizeof(*y->left));
+ y->left->parent = y;
+ VALGRIND_MAKE_MEM_NOACCESS(y->left, sizeof(*y->left));
+ }
+ z->left = y->right;
+ if (z->left) {
+ VALGRIND_MAKE_MEM_DEFINED(z->left, sizeof(*z->left));
+ z->left->parent = z;
+ VALGRIND_MAKE_MEM_NOACCESS(z->left, sizeof(*z->left));
+ }
+ y->right = z;
+ z->parent = y;
+ } else {
+ /* Case 2b */
+ z->right = x->left;
+ if (z->right) {
+ VALGRIND_MAKE_MEM_DEFINED(z->right, sizeof(*z->right));
+ z->right->parent = z;
+ VALGRIND_MAKE_MEM_NOACCESS(z->right, sizeof(*z->right));
+ }
+ y->left = x->right;
+ if (y->left) {
+ VALGRIND_MAKE_MEM_DEFINED(y->left, sizeof(*y->left));
+ y->left->parent = y;
+ VALGRIND_MAKE_MEM_NOACCESS(y->left, sizeof(*y->left));
+ }
+ x->left = z;
+ z->parent = x;
+ }
+ x->right = y;
+ } else {
+ /* Case 2 or 1b */
+ if (z->left == y) {
+ /* Case 2 */
+ y->right = x->left;
+ if (y->right) {
+ VALGRIND_MAKE_MEM_DEFINED(y->right, sizeof(*y->right));
+ y->right->parent = y;
+ VALGRIND_MAKE_MEM_NOACCESS(y->right, sizeof(*y->right));
+ }
+ z->left = x->right;
+ if (z->left) {
+ VALGRIND_MAKE_MEM_DEFINED(z->left, sizeof(*z->left));
+ z->left->parent = z;
+ VALGRIND_MAKE_MEM_NOACCESS(z->left, sizeof(*z->left));
+ }
+ x->right = z;
+ z->parent = x;
+ } else {
+ /* Case 1b */
+ z->right = y->left;
+ if (z->right) {
+ VALGRIND_MAKE_MEM_DEFINED(z->right, sizeof(*z->right));
+ z->right->parent = z;
+ VALGRIND_MAKE_MEM_NOACCESS(z->right, sizeof(*z->right));
+ }
+ y->right = x->left;
+ if (y->right) {
+ VALGRIND_MAKE_MEM_DEFINED(y->right, sizeof(*y->right));
+ y->right->parent = y;
+ VALGRIND_MAKE_MEM_NOACCESS(y->right, sizeof(*y->right));
+ }
+ y->left = z;
+ z->parent = y;
+ }
+ x->left = y;
+ }
+ VALGRIND_MAKE_MEM_NOACCESS(z, sizeof(*z));
+ } else {
+ /* Case 3 or 3b */
+ x->parent = NULL;
+ y->parent = x;
+ if (y->left == x) {
+ /* Case 3 */
+ y->left = x->right;
+ if (y->left) {
+ VALGRIND_MAKE_MEM_DEFINED(y->left, sizeof(*y->left));
+ y->left->parent = y;
+ VALGRIND_MAKE_MEM_NOACCESS(y->left, sizeof(*y->left));
+ }
+ x->right = y;
+ } else {
+ /* Case 3b */
+ y->right = x->left;
+ if (y->right) {
+ VALGRIND_MAKE_MEM_DEFINED(y->right, sizeof(*y->right));
+ y->right->parent = y;
+ VALGRIND_MAKE_MEM_NOACCESS(y->right, sizeof(*y->right));
+ }
+ x->left = y;
+ }
+ }
+ VALGRIND_MAKE_MEM_NOACCESS(y, sizeof(*y));
+ }
+ VALGRIND_MAKE_MEM_NOACCESS(x, sizeof(*x));
+}
+
+static void Memento_removeBlockSplay(Memento_Blocks *blks,
+ Memento_BlkHeader *b)
+{
+ Memento_BlkHeader *replacement;
+
+ VALGRIND_MAKE_MEM_DEFINED(b, sizeof(*b));
+ if (b->left == NULL)
+ {
+ /* At most one child - easy */
+ replacement = b->right;
+ }
+ else if (b->right == NULL)
+ {
+ /* Strictly one child - easy */
+ replacement = b->left;
+ }
+ else
+ {
+ /* 2 Children - tricky */
+ /* Find in-order predecessor to b */
+ replacement = b->left;
+ VALGRIND_MAKE_MEM_DEFINED(replacement, sizeof(*replacement));
+ while (replacement->right)
+ {
+ Memento_BlkHeader *o = replacement;
+ replacement = o->right;
+ VALGRIND_MAKE_MEM_DEFINED(replacement, sizeof(*replacement));
+ VALGRIND_MAKE_MEM_NOACCESS(o, sizeof(*o));
+ }
+ /* Remove replacement - easy as just one child */
+ (void)Memento_removeBlockSplay(NULL, replacement);
+ /* Replace b with replacement */
+ VALGRIND_MAKE_MEM_DEFINED(b, sizeof(*b));
+ if (b->left) {
+ VALGRIND_MAKE_MEM_DEFINED(b->left, sizeof(*b->left));
+ b->left->parent = replacement;
+ VALGRIND_MAKE_MEM_NOACCESS(b->left, sizeof(*b->left));
+ }
+ VALGRIND_MAKE_MEM_DEFINED(b->right, sizeof(*b->right));
+ b->right->parent = replacement;
+ VALGRIND_MAKE_MEM_NOACCESS(b->right, sizeof(*b->right));
+ VALGRIND_MAKE_MEM_DEFINED(replacement, sizeof(*replacement));
+ replacement->left = b->left;
+ replacement->right = b->right;
+ }
+ if (b->parent)
+ {
+ VALGRIND_MAKE_MEM_DEFINED(b->parent, sizeof(*b->parent));
+ if (b->parent->left == b)
+ b->parent->left = replacement;
+ else
+ b->parent->right = replacement;
+ VALGRIND_MAKE_MEM_NOACCESS(b->parent, sizeof(*b->parent));
+ } else {
+ VALGRIND_MAKE_MEM_DEFINED(&blks->top, sizeof(blks->top));
+ blks->top = replacement;
+ VALGRIND_MAKE_MEM_NOACCESS(&blks->top, sizeof(blks->top));
+ }
+ if (replacement)
+ {
+ VALGRIND_MAKE_MEM_DEFINED(replacement, sizeof(*replacement));
+ replacement->parent = b->parent;
+ VALGRIND_MAKE_MEM_NOACCESS(replacement, sizeof(*replacement));
+ }
+ VALGRIND_MAKE_MEM_NOACCESS(b, sizeof(*b));
+}
+
+static void Memento_addBlockSplay(Memento_Blocks *blks,
+ Memento_BlkHeader *b)
+{
+ Memento_BlkHeader *parent = NULL;
+ Memento_BlkHeader **n = &blks->top;
+
+ /* Walk down, looking for a place to put b. */
+ VALGRIND_MAKE_MEM_DEFINED(&blks->top, sizeof(blks->top));
+ while (*n != NULL) {
+ Memento_BlkHeader *o = parent;
+ VALGRIND_MAKE_MEM_DEFINED(*n, sizeof(**n));
+ parent = *n;
+ if (o) VALGRIND_MAKE_MEM_NOACCESS(o, sizeof(*o));
+ VALGRIND_MAKE_MEM_DEFINED(parent, sizeof(*parent));
+ if (b < parent)
+ n = &parent->left;
+ else
+ n = &parent->right;
+ }
+ /* Place b */
+ *n = b;
+ if (parent) VALGRIND_MAKE_MEM_NOACCESS(parent, sizeof(*parent));
+ b->parent = parent;
+ b->left = NULL;
+ b->right = NULL;
+ /* Now perform the splay magic */
+ move_to_root(b);
+ /* This always leaves b at the top. */
+ blks->top = b;
+ VALGRIND_MAKE_MEM_DEFINED(b, sizeof(*b));
+ b->parent = NULL;
+ VALGRIND_MAKE_MEM_NOACCESS(b, sizeof(*b));
+ VALGRIND_MAKE_MEM_NOACCESS(&blks->top, sizeof(blks->top));
+}
+
static void Memento_addBlockHead(Memento_Blocks *blks,
Memento_BlkHeader *b,
int type)
{
+ Memento_addBlockSplay(blks, b);
if (blks->tail == NULL)
blks->tail = b;
+ VALGRIND_MAKE_MEM_DEFINED(b, sizeof(*b));
b->next = blks->head;
b->prev = NULL;
if (blks->head)
@@ -1064,7 +1456,7 @@ static void Memento_addBlockHead(Memento_Blocks *blks,
if (type == 0) { /* malloc */
VALGRIND_MAKE_MEM_UNDEFINED(MEMBLK_TOBLK(b), b->rawsize);
} else if (type == 1) { /* free */
- VALGRIND_MAKE_MEM_NOACCESS(MEMBLK_TOBLK(b), b->rawsize);
+ VALGRIND_MAKE_MEM_NOACCESS(MEMBLK_TOBLK(b), b->rawsize);
}
VALGRIND_MAKE_MEM_NOACCESS(b, sizeof(Memento_BlkHeader));
}
@@ -1073,9 +1465,11 @@ static void Memento_addBlockTail(Memento_Blocks *blks,
Memento_BlkHeader *b,
int type)
{
+ Memento_addBlockSplay(blks, b);
VALGRIND_MAKE_MEM_DEFINED(&blks->tail, sizeof(Memento_BlkHeader *));
if (blks->head == NULL)
blks->head = b;
+ VALGRIND_MAKE_MEM_DEFINED(b, sizeof(*b));
b->prev = blks->tail;
b->next = NULL;
if (blks->tail) {
@@ -1092,7 +1486,7 @@ static void Memento_addBlockTail(Memento_Blocks *blks,
if (type == 0) { /* malloc */
VALGRIND_MAKE_MEM_UNDEFINED(MEMBLK_TOBLK(b), b->rawsize);
} else if (type == 1) { /* free */
- VALGRIND_MAKE_MEM_NOACCESS(MEMBLK_TOBLK(b), b->rawsize);
+ VALGRIND_MAKE_MEM_NOACCESS(MEMBLK_TOBLK(b), b->rawsize);
}
VALGRIND_MAKE_MEM_NOACCESS(b, sizeof(Memento_BlkHeader));
VALGRIND_MAKE_MEM_NOACCESS(&blks->tail, sizeof(Memento_BlkHeader *));
@@ -1220,6 +1614,7 @@ mismatch:
static void Memento_removeBlock(Memento_Blocks *blks,
Memento_BlkHeader *b)
{
+ Memento_removeBlockSplay(blks, b);
VALGRIND_MAKE_MEM_DEFINED(b, sizeof(*b));
if (b->next) {
VALGRIND_MAKE_MEM_DEFINED(&b->next->prev, sizeof(b->next->prev));
@@ -1235,6 +1630,7 @@ static void Memento_removeBlock(Memento_Blocks *blks,
blks->tail = b->prev;
if (blks->head == b)
blks->head = b->next;
+ VALGRIND_MAKE_MEM_NOACCESS(b, sizeof(*b));
}
static void free_block(Memento_BlkHeader *head)
@@ -1265,6 +1661,8 @@ static int Memento_Internal_makeSpace(size_t space)
VALGRIND_MAKE_MEM_DEFINED(head, sizeof(*head));
memento.free.head = head->next;
memento.freeListSize -= MEMBLK_SIZE(head->rawsize);
+ Memento_removeBlockSplay(&memento.free, head);
+ VALGRIND_MAKE_MEM_DEFINED(head, sizeof(*head));
free_block(head);
}
/* Make sure we haven't just completely emptied the free list */
@@ -1297,6 +1695,47 @@ static int Memento_appBlocks(Memento_Blocks *blks,
return 0;
}
+static Memento_BlkHeader *
+find_enclosing_block(Memento_Blocks *blks,
+ void *addr,
+ int *flags)
+{
+ Memento_BlkHeader *blk;
+
+ VALGRIND_MAKE_MEM_DEFINED(&blks->top, sizeof(blks->top));
+ blk = blks->top;
+ while (blk)
+ {
+ Memento_BlkHeader *oblk = blk;
+ char *blkstart;
+ char *blkend;
+ VALGRIND_MAKE_MEM_DEFINED(blk, sizeof(Memento_BlkHeader));
+ if (addr < (void *)oblk) {
+ blk = blk->left;
+ VALGRIND_MAKE_MEM_UNDEFINED(oblk, sizeof(Memento_BlkHeader));
+ continue;
+ }
+ blkstart = (char *)MEMBLK_TOBLK(blk);
+ blkend = &blkstart[blk->rawsize];
+ if (addr >= (void *)(blkend + Memento_PostSize)) {
+ blk = blk->right;
+ VALGRIND_MAKE_MEM_UNDEFINED(oblk, sizeof(Memento_BlkHeader));
+ continue;
+ }
+ if (flags) {
+ if (((void *)blkstart <= addr) && (addr < (void *)blkend))
+ *flags = 1;
+ else if (((void *)blk <= addr) && (addr < (void *)blkstart))
+ *flags = 2;
+ else
+ *flags = 3;
+ }
+ VALGRIND_MAKE_MEM_UNDEFINED(oblk, sizeof(Memento_BlkHeader));
+ return blk;
+ }
+ return NULL;
+}
+
#ifndef MEMENTO_LEAKONLY
/* Distrustful - check the block is a real one */
static int Memento_appBlockUser(Memento_Blocks *blks,
@@ -1305,25 +1744,18 @@ static int Memento_appBlockUser(Memento_Blocks *blks,
void *arg,
Memento_BlkHeader *b)
{
- Memento_BlkHeader *head = blks->head;
- Memento_BlkHeader *next;
- int result;
- while (head && head != b) {
- VALGRIND_MAKE_MEM_DEFINED(head, sizeof(Memento_BlkHeader));
- next = head->next;
- VALGRIND_MAKE_MEM_NOACCESS(MEMBLK_POSTPTR(head), Memento_PostSize);
- head = next;
- }
- if (head == b) {
- VALGRIND_MAKE_MEM_DEFINED(head, sizeof(Memento_BlkHeader));
- VALGRIND_MAKE_MEM_DEFINED(MEMBLK_TOBLK(head),
- head->rawsize + Memento_PostSize);
- result = app(head, arg);
- VALGRIND_MAKE_MEM_NOACCESS(MEMBLK_POSTPTR(head), Memento_PostSize);
- VALGRIND_MAKE_MEM_NOACCESS(head, sizeof(Memento_BlkHeader));
- return result;
- }
- return 0;
+ int result;
+ Memento_BlkHeader *head = find_enclosing_block(blks, b, NULL);
+ if (head == NULL)
+ return 0;
+
+ VALGRIND_MAKE_MEM_DEFINED(head, sizeof(Memento_BlkHeader));
+ VALGRIND_MAKE_MEM_DEFINED(MEMBLK_TOBLK(head),
+ head->rawsize + Memento_PostSize);
+ result = app(head, arg);
+ VALGRIND_MAKE_MEM_NOACCESS(MEMBLK_POSTPTR(head), Memento_PostSize);
+ VALGRIND_MAKE_MEM_NOACCESS(head, sizeof(Memento_BlkHeader));
+ return result;
}
static int Memento_appBlock(Memento_Blocks *blks,
@@ -1574,6 +2006,91 @@ void Memento_listNewBlocks(void)
MEMENTO_UNLOCK();
}
+typedef struct
+{
+ size_t counts[2];
+ unsigned int phase;
+} phased_t;
+
+static int Memento_listPhasedBlock(Memento_BlkHeader *b,
+ void *arg)
+{
+ phased_t *phase = (phased_t *)arg;
+ if ((b->flags & phase->phase) == 0)
+ return 0;
+ b->flags = (b->flags & ~Memento_Flag_PhaseMask) | ((b->flags >> 1) & Memento_Flag_PhaseMask);
+ return Memento_listBlock(b, arg);
+}
+
+static int Memento_listNewPhasedBlock(Memento_BlkHeader *b,
+ void *arg)
+{
+ if ((b->flags & Memento_Flag_PhaseMask) != 0)
+ return 0;
+ b->flags |= Memento_Flag_LastPhase;
+ return Memento_listBlock(b, arg);
+}
+
+static int Memento_startPhasing(Memento_BlkHeader *b,
+ void *arg)
+{
+ b->flags |= *(int *)arg;
+ return 0;
+}
+
+/* On the first call to this, we mark all blocks with the
+ * lowest 'phase' bit, (call this phase m) so they will
+ * never be reported.
+ *
+ * On subsequent calls, we:
+ * for (n = m-1; n > 0; n--)
+ * report all blocks in phase n, moving them to n+1.
+ * report all new blocks, and place them in phase 0.
+ *
+ * The upshot of this is that if you call Memento_listPhasedBlocks()
+ * at a given point in the code, then you can watch for how long blocks
+ * live between each time the code reaches that point.
+ *
+ * This is basically like Memento_listNewBlocks(), but allows for
+ * the fact that sometimes blocks are freed just after the call.
+ */
+void Memento_listPhasedBlocks(void)
+{
+ phased_t phase;
+ int num = 0;
+ MEMENTO_LOCK();
+ phase.phase = Memento_Flag_LastPhase;
+ while ((phase.phase>>1) & Memento_Flag_PhaseMask)
+ num++, phase.phase >>= 1;
+ if (memento.phasing == 0)
+ {
+ fprintf(stderr, "Commencing Phasing:\n");
+ memento.phasing = 1;
+ Memento_appBlocks(&memento.used, Memento_startPhasing, &phase.phase);
+ } else {
+ phase.phase <<= 1;
+ do
+ {
+ phase.counts[0] = 0;
+ phase.counts[1] = 0;
+ fprintf(stderr, "Blocks allocated and still extant: In phase %d (%x):\n", num, phase.phase);
+ Memento_appBlocks(&memento.used, Memento_listPhasedBlock, &phase);
+ fprintf(stderr, " Total number of blocks = "FMTZ"\n", (FMTZ_CAST)phase.counts[0]);
+ fprintf(stderr, " Total size of blocks = "FMTZ"\n", (FMTZ_CAST)phase.counts[1]);
+ phase.phase = phase.phase<<1;
+ num--;
+ }
+ while (phase.phase != 0);
+ phase.counts[0] = 0;
+ phase.counts[1] = 0;
+ fprintf(stderr, "Blocks allocated and still extant: In phase 0:\n", num, phase.phase);
+ Memento_appBlocks(&memento.used, Memento_listNewPhasedBlock, &phase);
+ fprintf(stderr, " Total number of blocks = "FMTZ"\n", (FMTZ_CAST)phase.counts[0]);
+ fprintf(stderr, " Total size of blocks = "FMTZ"\n", (FMTZ_CAST)phase.counts[1]);
+ }
+ MEMENTO_UNLOCK();
+}
+
static void Memento_endStats(void)
{
fprintf(stderr, "Total memory malloced = "FMTZ" bytes\n", (FMTZ_CAST)memento.totalAlloc);
@@ -1582,6 +2099,10 @@ static void Memento_endStats(void)
(FMTZ_CAST)memento.numFrees, (FMTZ_CAST)memento.numReallocs);
fprintf(stderr, "Average allocation size "FMTZ" bytes\n", (FMTZ_CAST)
(memento.numMallocs != 0 ? memento.totalAlloc/memento.numMallocs: 0));
+#ifdef MEMENTO_DETAILS
+ if (memento.hashCollisions)
+ fprintf(stderr, "%d hash collisions\n", memento.hashCollisions);
+#endif
}
void Memento_stats(void)
@@ -1614,7 +2135,14 @@ static int showInfo(Memento_BlkHeader *b, void *arg)
continue;
}
fprintf(stderr, " Event %d (%s)\n", details->sequence, eventType[(int)details->type]);
- Memento_showStacktrace(details->stack, details->count);
+ Memento_showHashedStacktrace(details->trace);
+ if (memento.showDetailedBlocks > 0) {
+ memento.showDetailedBlocks -= 1;
+ if (memento.showDetailedBlocks == 0) {
+ fprintf(stderr, "Stopping display of block details because memento.showDetailedBlocks is now zero.\n");
+ return 1;
+ }
+ }
}
return 0;
}
@@ -1630,22 +2158,16 @@ void Memento_listBlockInfo(void)
#endif
}
-#ifdef MEMENTO_DETAILS
-static int
-showBlockInfo(Memento_BlkHeader *b, void *arg)
-{
- if (arg < MEMBLK_TOBLK(b) || (void *)MEMBLK_POSTPTR(b) <= arg)
- return 0;
- return showInfo(b, NULL);
-}
-#endif
-
void Memento_blockInfo(void *p)
{
#ifdef MEMENTO_DETAILS
+ Memento_BlkHeader *blk;
MEMENTO_LOCK();
- Memento_appBlocks(&memento.used, showBlockInfo, p);
- Memento_appBlocks(&memento.free, showBlockInfo, p);
+ blk = find_enclosing_block(&memento.used, p, NULL);
+ if (blk == NULL)
+ blk = find_enclosing_block(&memento.free, p, NULL);
+ if (blk)
+ showInfo(blk, NULL);
MEMENTO_UNLOCK();
#endif
}
@@ -1670,6 +2192,7 @@ static int Memento_nonLeakBlocksLeaked(void)
void Memento_fin(void)
{
+ int leaked = 0;
Memento_checkAllMemory();
if (!memento.segv)
{
@@ -1677,17 +2200,20 @@ void Memento_fin(void)
if (Memento_nonLeakBlocksLeaked()) {
Memento_listBlocks();
#ifdef MEMENTO_DETAILS
- fprintf(stderr, "\n");
- Memento_listBlockInfo();
+ if (memento.showDetailedBlocks) {
+ fprintf(stderr, "\n");
+ Memento_listBlockInfo();
+ }
#endif
Memento_breakpoint();
+ leaked = 1;
}
}
if (memento.squeezing) {
if (memento.pattern == 0)
- fprintf(stderr, "Memory squeezing @ %d complete%s\n", memento.squeezeAt, memento.segv ? " (with SEGV)" : "");
+ fprintf(stderr, "Memory squeezing @ %d complete%s\n", memento.squeezeAt, memento.segv ? " (with SEGV)" : (leaked ? " (with leaks)" : ""));
else
- fprintf(stderr, "Memory squeezing @ %d (%d) complete%s\n", memento.squeezeAt, memento.pattern, memento.segv ? " (with SEGV)" : "");
+ fprintf(stderr, "Memory squeezing @ %d (%d) complete%s\n", memento.squeezeAt, memento.pattern, memento.segv ? " (with SEGV)" : (leaked ? " (with leaks)" : ""));
} else if (memento.segv) {
fprintf(stderr, "Memento completed (with SEGV)\n");
}
@@ -1879,6 +2405,14 @@ static int Memento_add_squeezes(const char *text)
return e;
}
+#if defined(_WIN32) || defined(_WIN64)
+static int Memento_fin_win(void)
+{
+ Memento_fin();
+ return 0;
+}
+#endif
+
static void Memento_init(void)
{
char *env;
@@ -1914,6 +2448,9 @@ static void Memento_init(void)
env = getenv("MEMENTO_PATTERN");
memento.pattern = (env ? atoi(env) : 0);
+ env = getenv("MEMENTO_SHOW_DETAILED_BLOCKS");
+ memento.showDetailedBlocks = (env ? atoi(env) : -1);
+
env = getenv("MEMENTO_HIDE_MULTIPLE_REALLOCS");
memento.hideMultipleReallocs = (env ? atoi(env) : 0);
@@ -1937,7 +2474,19 @@ static void Memento_init(void)
env = getenv("MEMENTO_MAXMEMORY");
memento.maxMemory = (env ? atoi(env) : 0);
+ env = getenv("MEMENTO_VERBOSE");
+ memento.verbose = (env ? atoi(env) : 0);
+
+ /* For Windows, we can _onexit rather than atexit. This is because
+ * _onexit registered handlers are called when the DLL that they are
+ * in is freed, rather than on complete closedown. This gives us a
+ * higher chance of seeing Memento_fin called in a state when the
+ * stack backtracing mechanism can still work. */
+#if defined(_WIN32) || defined(_WIN64)
+ _onexit(Memento_fin_win);
+#else
atexit(Memento_fin);
+#endif
Memento_initMutex(&memento.mutex);
@@ -1946,54 +2495,16 @@ static void Memento_init(void)
Memento_breakpoint();
}
-typedef struct findBlkData {
- void *addr;
- Memento_BlkHeader *blk;
- int flags;
-} findBlkData;
-
-static int Memento_containsAddr(Memento_BlkHeader *b,
- void *arg)
-{
- findBlkData *data = (findBlkData *)arg;
- char *blkend = &((char *)MEMBLK_TOBLK(b))[b->rawsize];
- if ((MEMBLK_TOBLK(b) <= data->addr) &&
- ((void *)blkend > data->addr)) {
- data->blk = b;
- data->flags = 1;
- return 1;
- }
- if (((void *)b <= data->addr) &&
- (MEMBLK_TOBLK(b) > data->addr)) {
- data->blk = b;
- data->flags = 2;
- return 1;
- }
- if (((void *)blkend <= data->addr) &&
- ((void *)(blkend + Memento_PostSize) > data->addr)) {
- data->blk = b;
- data->flags = 3;
- return 1;
- }
- return 0;
-}
-
static void Memento_infoLocked(void *addr)
{
#ifdef MEMENTO_DETAILS
- findBlkData data;
-
- data.addr = addr;
- data.blk = NULL;
- data.flags = 0;
- Memento_appBlocks(&memento.used, Memento_containsAddr, &data);
- if (data.blk != NULL)
- showInfo(data.blk, NULL);
- data.blk = NULL;
- data.flags = 0;
- Memento_appBlocks(&memento.free, Memento_containsAddr, &data);
- if (data.blk != NULL)
- showInfo(data.blk, NULL);
+ Memento_BlkHeader *blk;
+
+ blk = find_enclosing_block(&memento.used, addr, NULL);
+ if (blk == NULL)
+ blk = find_enclosing_block(&memento.free, addr, NULL);
+ if (blk != NULL)
+ showInfo(blk, NULL);
#else
printf("Memento not compiled with details support\n");
#endif
@@ -2167,7 +2678,6 @@ static void Memento_startFailing(void)
memento.failing = 1;
memento.failAt = memento.sequence;
memento.nextFailAt = memento.sequence+1;
- memento.pattern = 0;
memento.patternBit = 0;
signal(SIGSEGV, Memento_signal);
signal(SIGABRT, Memento_signal);
@@ -2234,19 +2744,13 @@ static void *safe_find_block(void *ptr)
VALGRIND_MAKE_MEM_DEFINED(&block->sibling, sizeof(block->sibling));
valid = (block->child == MEMENTO_CHILD_MAGIC &&
block->sibling == MEMENTO_SIBLING_MAGIC);
- VALGRIND_MAKE_MEM_NOACCESS(&block->child, sizeof(block->child));
- VALGRIND_MAKE_MEM_NOACCESS(&block->sibling, sizeof(block->sibling));
+ if (valid) {
+ VALGRIND_MAKE_MEM_NOACCESS(&block->child, sizeof(block->child));
+ VALGRIND_MAKE_MEM_NOACCESS(&block->sibling, sizeof(block->sibling));
+ }
if (!valid)
{
- findBlkData data;
-
- data.addr = ptr;
- data.blk = NULL;
- data.flags = 0;
- Memento_appBlocks(&memento.used, Memento_containsAddr, &data);
- if (data.blk == NULL)
- return NULL;
- block = data.blk;
+ block = find_enclosing_block(&memento.used, ptr, NULL);
}
return block;
}
@@ -2266,6 +2770,13 @@ void *Memento_label(void *ptr, const char *label)
VALGRIND_MAKE_MEM_NOACCESS(&block->label, sizeof(block->label));
}
MEMENTO_UNLOCK();
+
+ if (memento.verboseNewlineSuppressed) {
+ if (memento.lastVerbosePtr == block) {
+ fprintf(stderr, " (%s)", label);
+ }
+ }
+
return ptr;
}
@@ -2347,12 +2858,13 @@ int Memento_failThisEvent(void)
return ret;
}
-static void *do_malloc(size_t s, int eventType)
+static void *do_malloc(size_t s, int et)
{
Memento_BlkHeader *memblk;
size_t smem = MEMBLK_SIZE(s);
-
- (void)eventType;
+#ifdef MEMENTO_DETAILS
+ Memento_hashedST *st;
+#endif
if (Memento_failThisEventLocked()) {
errno = ENOMEM;
@@ -2369,9 +2881,42 @@ static void *do_malloc(size_t s, int eventType)
return NULL;
}
+#ifdef MEMENTO_DETAILS
+ st = Memento_getHashedStacktrace();
+#endif
+
memblk = MEMENTO_UNDERLYING_MALLOC(smem);
- if (memblk == NULL)
+ if (memblk == NULL) {
+ switch (memento.verbose) {
+ default:
+ if (memento.verboseNewlineSuppressed)
+ fprintf(stderr, "\n");
+ fprintf(stderr, "%s failed (size="FMTZ",num=%d",
+ eventType[et], (FMTZ_CAST)s, memento.sequence);
+#ifdef MEMENTO_DETAILS
+ fprintf(stderr, ",st=%x", st->hash);
+#endif
+ fprintf(stderr, ")");
+ memento.verboseNewlineSuppressed = 1;
+ memento.lastVerbosePtr = memblk;
+ break;
+ case 2:
+ if (memento.verboseNewlineSuppressed)
+ fprintf(stderr, "\n");
+ fprintf(stderr, "%s failed (size="FMTZ"",
+ eventType[et], (FMTZ_CAST)s);
+#ifdef MEMENTO_DETAILS
+ fprintf(stderr, ",st=%x", st->hash);
+#endif
+ fprintf(stderr, ")");
+ memento.verboseNewlineSuppressed = 1;
+ memento.lastVerbosePtr = memblk;
+ break;
+ case 0:
+ break;
+ }
return NULL;
+ }
memento.alloc += s;
memento.totalAlloc += s;
@@ -2390,13 +2935,48 @@ static void *do_malloc(size_t s, int eventType)
#ifdef MEMENTO_DETAILS
memblk->details = NULL;
memblk->details_tail = &memblk->details;
- Memento_storeDetails(memblk, eventType);
+ Memento_storeDetails(memblk, et, st);
#endif /* MEMENTO_DETAILS */
Memento_addBlockHead(&memento.used, memblk, 0);
if (memento.leaking > 0)
memblk->flags |= Memento_Flag_KnownLeak;
+ switch (memento.verbose) {
+ default:
+ if (memento.verboseNewlineSuppressed)
+ fprintf(stderr, "\n");
+ fprintf(stderr, "%s "FMTP":(size="FMTZ",num=%d",
+ eventType[et],
+ MEMBLK_TOBLK(memblk), (FMTZ_CAST)memblk->rawsize, memblk->sequence);
+#ifdef MEMENTO_DETAILS
+ fprintf(stderr, ",st=%x", st->hash);
+#endif
+ if (memblk->label)
+ fprintf(stderr, ") (%s", memblk->label);
+ fprintf(stderr, ")");
+ memento.verboseNewlineSuppressed = 1;
+ memento.lastVerbosePtr = memblk;
+ break;
+ case 2:
+ if (memento.verboseNewlineSuppressed)
+ fprintf(stderr, "\n");
+ fprintf(stderr, "%s (size="FMTZ"",
+ eventType[et],
+ (FMTZ_CAST)memblk->rawsize);
+#ifdef MEMENTO_DETAILS
+ fprintf(stderr, ",st=%x", st->hash);
+#endif
+ if (memblk->label)
+ fprintf(stderr, ") (%s", memblk->label);
+ fprintf(stderr, ")");
+ memento.verboseNewlineSuppressed = 1;
+ memento.lastVerbosePtr = memblk;
+ break;
+ case 0:
+ break;
+ }
+
return MEMBLK_TOBLK(memblk);
}
@@ -2507,12 +3087,15 @@ void *Memento_calloc(size_t n, size_t s)
return block;
}
+#ifdef MEMENTO_TRACKREFS
static void do_reference(Memento_BlkHeader *blk, int event)
{
#ifdef MEMENTO_DETAILS
- Memento_storeDetails(blk, event);
+ Memento_hashedST *st = Memento_getHashedStacktrace();
+ Memento_storeDetails(blk, event, st);
#endif /* MEMENTO_DETAILS */
}
+#endif
static int checkPointerOrNullLocked(void *blk)
{
@@ -2661,6 +3244,7 @@ int Memento_checkIntPointerOrNull(void *blk)
return ret;
}
+#ifdef MEMENTO_TRACKREFS
static void *do_takeRef(void *blk)
{
do_reference(safe_find_block(blk), Memento_EventType_takeRef);
@@ -2674,8 +3258,23 @@ static void *do_takeRefAndUnlock(void *blk)
return blk;
}
+static void *do_dropRef(void *blk)
+{
+ do_reference(safe_find_block(blk), Memento_EventType_dropRef);
+ return blk;
+}
+
+static void *do_dropRefAndUnlock(void *blk)
+{
+ do_reference(safe_find_block(blk), Memento_EventType_dropRef);
+ MEMENTO_UNLOCK();
+ return blk;
+}
+#endif
+
void *Memento_takeByteRef(void *blk)
{
+#ifdef MEMENTO_TRACKREFS
if (!memento.inited)
Memento_init();
@@ -2690,10 +3289,14 @@ void *Memento_takeByteRef(void *blk)
(void)checkBytePointerOrNullLocked(blk);
return do_takeRefAndUnlock(blk);
+#else
+ return blk;
+#endif
}
void *Memento_takeShortRef(void *blk)
{
+#ifdef MEMENTO_TRACKREFS
if (!memento.inited)
Memento_init();
@@ -2708,10 +3311,14 @@ void *Memento_takeShortRef(void *blk)
(void)checkShortPointerOrNullLocked(blk);
return do_takeRefAndUnlock(blk);
+#else
+ return blk;
+#endif
}
void *Memento_takeIntRef(void *blk)
{
+#ifdef MEMENTO_TRACKREFS
if (!memento.inited)
Memento_init();
@@ -2726,10 +3333,14 @@ void *Memento_takeIntRef(void *blk)
(void)checkIntPointerOrNullLocked(blk);
return do_takeRefAndUnlock(blk);
+#else
+ return blk;
+#endif
}
void *Memento_takeRef(void *blk)
{
+#ifdef MEMENTO_TRACKREFS
if (!memento.inited)
Memento_init();
@@ -2742,23 +3353,14 @@ void *Memento_takeRef(void *blk)
}
return do_takeRefAndUnlock(blk);
-}
-
-static void *do_dropRef(void *blk)
-{
- do_reference(safe_find_block(blk), Memento_EventType_dropRef);
- return blk;
-}
-
-static void *do_dropRefAndUnlock(void *blk)
-{
- do_reference(safe_find_block(blk), Memento_EventType_dropRef);
- MEMENTO_UNLOCK();
+#else
return blk;
+#endif
}
void *Memento_dropByteRef(void *blk)
{
+#ifdef MEMENTO_TRACKREFS
if (!memento.inited)
Memento_init();
@@ -2773,10 +3375,14 @@ void *Memento_dropByteRef(void *blk)
checkBytePointerOrNullLocked(blk);
return do_dropRefAndUnlock(blk);
+#else
+ return blk;
+#endif
}
void *Memento_dropShortRef(void *blk)
{
+#ifdef MEMENTO_TRACKREFS
if (!memento.inited)
Memento_init();
@@ -2791,10 +3397,14 @@ void *Memento_dropShortRef(void *blk)
checkShortPointerOrNullLocked(blk);
return do_dropRefAndUnlock(blk);
+#else
+ return blk;
+#endif
}
void *Memento_dropIntRef(void *blk)
{
+#ifdef MEMENTO_TRACKREFS
if (!memento.inited)
Memento_init();
@@ -2809,10 +3419,14 @@ void *Memento_dropIntRef(void *blk)
checkIntPointerOrNullLocked(blk);
return do_dropRefAndUnlock(blk);
+#else
+ return blk;
+#endif
}
void *Memento_dropRef(void *blk)
{
+#ifdef MEMENTO_TRACKREFS
if (!memento.inited)
Memento_init();
@@ -2825,10 +3439,14 @@ void *Memento_dropRef(void *blk)
}
return do_dropRefAndUnlock(blk);
+#else
+ return blk;
+#endif
}
void *Memento_adjustRef(void *blk, int adjust)
{
+#ifdef MEMENTO_TRACKREFS
if (!memento.inited)
Memento_init();
@@ -2852,11 +3470,13 @@ void *Memento_adjustRef(void *blk, int adjust)
}
MEMENTO_UNLOCK();
+#endif
return blk;
- }
+}
void *Memento_reference(void *blk)
{
+#ifdef MEMENTO_TRACKREFS
if (!blk)
return NULL;
@@ -2866,6 +3486,7 @@ void *Memento_reference(void *blk)
MEMENTO_LOCK();
do_reference(safe_find_block(blk), Memento_EventType_reference);
MEMENTO_UNLOCK();
+#endif
return blk;
}
@@ -2958,12 +3579,13 @@ static int checkBlock(Memento_BlkHeader *memblk, const char *action)
return 0;
}
-static void do_free(void *blk, int eventType)
+static void do_free(void *blk, int et)
{
Memento_BlkHeader *memblk;
int ret;
-
- (void)eventType;
+#ifdef MEMENTO_DETAILS
+ Memento_hashedST *st;
+#endif
if (Memento_event()) Memento_breakpointLocked();
@@ -2985,7 +3607,46 @@ static void do_free(void *blk, int eventType)
}
#ifdef MEMENTO_DETAILS
- Memento_storeDetails(memblk, eventType);
+ st = Memento_getHashedStacktrace();
+#endif
+
+ switch (memento.verbose) {
+ default:
+ if (memento.verboseNewlineSuppressed) {
+ fprintf(stderr, "\n");
+ memento.verboseNewlineSuppressed = 0;
+ }
+ fprintf(stderr, "%s "FMTP":(size="FMTZ",num=%d",
+ eventType[et],
+ MEMBLK_TOBLK(memblk), (FMTZ_CAST)memblk->rawsize, memblk->sequence);
+#ifdef MEMENTO_DETAILS
+ fprintf(stderr, ",hash=%x", st->hash);
+#endif
+ if (memblk->label)
+ fprintf(stderr, ") (%s", memblk->label);
+ fprintf(stderr, ")\n");
+ break;
+ case 2:
+ if (memento.verboseNewlineSuppressed) {
+ fprintf(stderr, "\n");
+ memento.verboseNewlineSuppressed = 0;
+ }
+ fprintf(stderr, "%s (size="FMTZ,
+ eventType[et],
+ (FMTZ_CAST)memblk->rawsize);
+#ifdef MEMENTO_DETAILS
+ fprintf(stderr, ",hash=%x", st->hash);
+#endif
+ if (memblk->label)
+ fprintf(stderr, ") (%s", memblk->label);
+ fprintf(stderr, ")\n");
+ break;
+ case 0:
+ break;
+ }
+
+#ifdef MEMENTO_DETAILS
+ Memento_storeDetails(memblk, et, st);
#endif
VALGRIND_MAKE_MEM_DEFINED(memblk, sizeof(*memblk));
@@ -3027,16 +3688,55 @@ static void *do_realloc(void *blk, size_t newsize, int type)
Memento_BlkHeader *memblk, *newmemblk;
size_t newsizemem;
int flags, ret;
+ size_t oldsize;
+#ifdef MEMENTO_DETAILS
+ Memento_hashedST *st;
+#endif
if (Memento_failThisEventLocked()) {
errno = ENOMEM;
return NULL;
}
+#ifdef MEMENTO_DETAILS
+ st = Memento_getHashedStacktrace();
+#endif
+
memblk = MEMBLK_FROMBLK(blk);
VALGRIND_MAKE_MEM_DEFINED(memblk, sizeof(*memblk));
ret = checkBlock(memblk, "realloc");
if (ret) {
+ switch (memento.verbose) {
+ default:
+ if (memento.verboseNewlineSuppressed) {
+ fprintf(stderr, "\n");
+ memento.verboseNewlineSuppressed = 0;
+ }
+ fprintf(stderr, "%s bad block "FMTP":(size=?=>"FMTZ", num=?, now=%d",
+ eventType[type],
+ MEMBLK_TOBLK(memblk),
+ (FMTZ_CAST)newsize, memento.sequence);
+#ifdef MEMENTO_DETAILS
+ fprintf(stderr, ",hash=%x", st->hash);
+#endif
+ fprintf(stderr, ")\n");
+ break;
+ case 2:
+ if (memento.verboseNewlineSuppressed) {
+ fprintf(stderr, "\n");
+ memento.verboseNewlineSuppressed = 0;
+ }
+ fprintf(stderr, "%s bad block (size=?=>"FMTZ,
+ eventType[type],
+ (FMTZ_CAST)newsize);
+#ifdef MEMENTO_DETAILS
+ fprintf(stderr, ",hash=%x", st->hash);
+#endif
+ fprintf(stderr, ")\n");
+ break;
+ case 0:
+ break;
+ }
if (ret == 2)
Memento_breakpoint();
errno = ENOMEM;
@@ -3044,7 +3744,7 @@ static void *do_realloc(void *blk, size_t newsize, int type)
}
#ifdef MEMENTO_DETAILS
- Memento_storeDetails(memblk, type);
+ Memento_storeDetails(memblk, type, st);
#endif
VALGRIND_MAKE_MEM_DEFINED(memblk, sizeof(*memblk));
@@ -3052,7 +3752,42 @@ static void *do_realloc(void *blk, size_t newsize, int type)
Memento_breakpointLocked();
VALGRIND_MAKE_MEM_DEFINED(memblk, sizeof(*memblk));
- if (memento.maxMemory != 0 && memento.alloc - memblk->rawsize + newsize > memento.maxMemory) {
+ oldsize = memblk->rawsize;
+ if (memento.maxMemory != 0 && memento.alloc - oldsize + newsize > memento.maxMemory) {
+ switch (memento.verbose) {
+ default:
+ if (memento.verboseNewlineSuppressed) {
+ fprintf(stderr, "\n");
+ memento.verboseNewlineSuppressed = 0;
+ }
+ fprintf(stderr, "%s failing (memory limit exceeded) "FMTP":(size="FMTZ"=>"FMTZ", num=%d, now=%d",
+ eventType[type], MEMBLK_TOBLK(memblk),
+ (FMTZ_CAST)oldsize, (FMTZ_CAST)newsize,
+ memblk->sequence, memento.sequence);
+#ifdef MEMENTO_DETAILS
+ fprintf(stderr, ",hash=%x", st->hash);
+#endif
+ if (memblk->label)
+ fprintf(stderr, ") (%s", memblk->label);
+ fprintf(stderr, ")\n");
+ break;
+ case 2:
+ if (memento.verboseNewlineSuppressed) {
+ fprintf(stderr, "\n");
+ memento.verboseNewlineSuppressed = 0;
+ }
+ fprintf(stderr, "%s failing (memory limit exceeded) (size="FMTZ"=>"FMTZ,
+ eventType[type], (FMTZ_CAST)oldsize, (FMTZ_CAST)newsize);
+#ifdef MEMENTO_DETAILS
+ fprintf(stderr, ",hash=%x", st->hash);
+#endif
+ if (memblk->label)
+ fprintf(stderr, ") (%s", memblk->label);
+ fprintf(stderr, ")\n");
+ break;
+ case 0:
+ break;
+ }
errno = ENOMEM;
return NULL;
}
@@ -3064,6 +3799,41 @@ static void *do_realloc(void *blk, size_t newsize, int type)
newmemblk = MEMENTO_UNDERLYING_REALLOC(memblk, newsizemem);
if (newmemblk == NULL)
{
+ switch (memento.verbose) {
+ default:
+ if (memento.verboseNewlineSuppressed) {
+ fprintf(stderr, "\n");
+ memento.verboseNewlineSuppressed = 0;
+ }
+ fprintf(stderr, "%s failed "FMTP":(size="FMTZ"=>"FMTZ", num=%d, now=%d",
+ eventType[type], MEMBLK_TOBLK(memblk),
+ (FMTZ_CAST)oldsize, (FMTZ_CAST)newsize,
+ memblk->sequence, memento.sequence);
+#ifdef MEMENTO_DETAILS
+ fprintf(stderr, ",hash=%x", st->hash);
+#endif
+ if (memblk->label)
+ fprintf(stderr, ") (%s", newmemblk->label);
+ fprintf(stderr, ")\n");
+ break;
+ case 2:
+ if (memento.verboseNewlineSuppressed) {
+ fprintf(stderr, "\n");
+ memento.verboseNewlineSuppressed = 0;
+ }
+ fprintf(stderr, "%s failed (size="FMTZ"=>"FMTZ,
+ eventType[type],
+ (FMTZ_CAST)oldsize, (FMTZ_CAST)newsize);
+#ifdef MEMENTO_DETAILS
+ fprintf(stderr, ",hash=%x", st->hash);
+#endif
+ if (memblk->label)
+ fprintf(stderr, ") (%s", newmemblk->label);
+ fprintf(stderr, ")\n");
+ break;
+ case 0:
+ break;
+ }
Memento_addBlockHead(&memento.used, memblk, 2);
return NULL;
}
@@ -3091,6 +3861,44 @@ static void *do_realloc(void *blk, size_t newsize, int type)
memset(MEMBLK_POSTPTR(newmemblk), MEMENTO_POSTFILL, Memento_PostSize);
VALGRIND_MAKE_MEM_UNDEFINED(MEMBLK_POSTPTR(newmemblk), Memento_PostSize);
#endif
+
+ switch (memento.verbose) {
+ default:
+ if (memento.verboseNewlineSuppressed) {
+ fprintf(stderr, "\n");
+ memento.verboseNewlineSuppressed = 0;
+ }
+ fprintf(stderr, "%s "FMTP"=>"FMTP":(size="FMTZ"=>"FMTZ", num=%d, now=%d",
+ eventType[type],
+ MEMBLK_TOBLK(memblk), MEMBLK_TOBLK(newmemblk),
+ (FMTZ_CAST)oldsize, (FMTZ_CAST)newsize,
+ newmemblk->sequence, memento.sequence);
+#ifdef MEMENTO_DETAILS
+ fprintf(stderr, ",hash=%x", st->hash);
+#endif
+ if (memblk->label)
+ fprintf(stderr, ") (%s", newmemblk->label);
+ fprintf(stderr, ")\n");
+ break;
+ case 2:
+ if (memento.verboseNewlineSuppressed) {
+ fprintf(stderr, "\n");
+ memento.verboseNewlineSuppressed = 0;
+ }
+ fprintf(stderr, "%s (size="FMTZ"=>"FMTZ,
+ eventType[type],
+ (FMTZ_CAST)oldsize, (FMTZ_CAST)newsize);
+#ifdef MEMENTO_DETAILS
+ fprintf(stderr, ",hash=%x", st->hash);
+#endif
+ if (memblk->label)
+ fprintf(stderr, ") (%s", newmemblk->label);
+ fprintf(stderr, ")\n");
+ break;
+ case 0:
+ break;
+ }
+
Memento_addBlockHead(&memento.used, newmemblk, 2);
return MEMBLK_TOBLK(newmemblk);
}
@@ -3162,6 +3970,10 @@ static int Memento_Internal_checkAllAlloced(Memento_BlkHeader *memblk, void *arg
fprintf(stderr, "corrupted.\n "
"Block last checked OK at allocation %d. Now %d.\n",
memblk->lastCheckedOK, memento.sequence);
+ if (memento.abortOnCorruption) {
+ fprintf(stderr, "*** memblk corrupted, calling abort()\n");
+ abort();
+ }
data->preCorrupt = 0;
data->postCorrupt = 0;
data->freeCorrupt = 0;
@@ -3252,8 +4064,8 @@ int Memento_checkAllMemory(void)
Memento_breakpoint();
return 1;
}
- return 0;
#endif
+ return 0;
}
int Memento_setParanoia(int i)
@@ -3293,33 +4105,27 @@ int Memento_check(void)
int Memento_find(void *a)
{
- findBlkData data;
+ Memento_BlkHeader *blk;
int s;
+ int flags;
MEMENTO_LOCK();
- data.addr = a;
- data.blk = NULL;
- data.flags = 0;
- Memento_appBlocks(&memento.used, Memento_containsAddr, &data);
- if (data.blk != NULL) {
+ blk = find_enclosing_block(&memento.used, a, &flags);
+ if (blk != NULL) {
fprintf(stderr, "Address "FMTP" is in %sallocated block ",
- data.addr,
- (data.flags == 1 ? "" : (data.flags == 2 ?
- "preguard of " : "postguard of ")));
- s = showBlock(data.blk, ' ');
+ a,
+ (flags == 1 ? "" : (flags == 2 ? "preguard of " : "postguard of ")));
+ s = showBlock(blk, ' ');
fprintf(stderr, "\n");
MEMENTO_UNLOCK();
return s;
}
- data.blk = NULL;
- data.flags = 0;
- Memento_appBlocks(&memento.free, Memento_containsAddr, &data);
- if (data.blk != NULL) {
+ blk = find_enclosing_block(&memento.free, a, &flags);
+ if (blk != NULL) {
fprintf(stderr, "Address "FMTP" is in %sfreed block ",
- data.addr,
- (data.flags == 1 ? "" : (data.flags == 2 ?
- "preguard of " : "postguard of ")));
- s = showBlock(data.blk, ' ');
+ a,
+ (flags == 1 ? "" : (flags == 2 ? "preguard of " : "postguard of ")));
+ s = showBlock(blk, ' ');
fprintf(stderr, "\n");
MEMENTO_UNLOCK();
return s;
@@ -3330,35 +4136,29 @@ int Memento_find(void *a)
void Memento_breakOnFree(void *a)
{
- findBlkData data;
+ Memento_BlkHeader *blk;
+ int flags;
MEMENTO_LOCK();
- data.addr = a;
- data.blk = NULL;
- data.flags = 0;
- Memento_appBlocks(&memento.used, Memento_containsAddr, &data);
- if (data.blk != NULL) {
+ blk = find_enclosing_block(&memento.used, a, &flags);
+ if (blk != NULL) {
fprintf(stderr, "Will stop when address "FMTP" (in %sallocated block ",
- data.addr,
- (data.flags == 1 ? "" : (data.flags == 2 ?
- "preguard of " : "postguard of ")));
- showBlock(data.blk, ' ');
+ a,
+ (flags == 1 ? "" : (flags == 2 ? "preguard of " : "postguard of ")));
+ showBlock(blk, ' ');
fprintf(stderr, ") is freed\n");
- VALGRIND_MAKE_MEM_DEFINED(data.blk, sizeof(Memento_BlkHeader));
- data.blk->flags |= Memento_Flag_BreakOnFree;
- VALGRIND_MAKE_MEM_NOACCESS(data.blk, sizeof(Memento_BlkHeader));
+ VALGRIND_MAKE_MEM_DEFINED(blk, sizeof(Memento_BlkHeader));
+ blk->flags |= Memento_Flag_BreakOnFree;
+ VALGRIND_MAKE_MEM_NOACCESS(blk, sizeof(Memento_BlkHeader));
MEMENTO_UNLOCK();
return;
}
- data.blk = NULL;
- data.flags = 0;
- Memento_appBlocks(&memento.free, Memento_containsAddr, &data);
- if (data.blk != NULL) {
+ blk = find_enclosing_block(&memento.free, a, &flags);
+ if (blk != NULL) {
fprintf(stderr, "Can't stop on free; address "FMTP" is in %sfreed block ",
- data.addr,
- (data.flags == 1 ? "" : (data.flags == 2 ?
- "preguard of " : "postguard of ")));
- showBlock(data.blk, ' ');
+ a,
+ (flags == 1 ? "" : (flags == 2 ? "preguard of " : "postguard of ")));
+ showBlock(blk, ' ');
fprintf(stderr, "\n");
MEMENTO_UNLOCK();
return;
@@ -3369,35 +4169,29 @@ void Memento_breakOnFree(void *a)
void Memento_breakOnRealloc(void *a)
{
- findBlkData data;
+ Memento_BlkHeader *blk;
+ int flags;
MEMENTO_LOCK();
- data.addr = a;
- data.blk = NULL;
- data.flags = 0;
- Memento_appBlocks(&memento.used, Memento_containsAddr, &data);
- if (data.blk != NULL) {
+ blk = find_enclosing_block(&memento.used, a, &flags);
+ if (blk != NULL) {
fprintf(stderr, "Will stop when address "FMTP" (in %sallocated block ",
- data.addr,
- (data.flags == 1 ? "" : (data.flags == 2 ?
- "preguard of " : "postguard of ")));
- showBlock(data.blk, ' ');
+ a,
+ (flags == 1 ? "" : (flags == 2 ? "preguard of " : "postguard of ")));
+ showBlock(blk, ' ');
fprintf(stderr, ") is freed (or realloced)\n");
- VALGRIND_MAKE_MEM_DEFINED(data.blk, sizeof(Memento_BlkHeader));
- data.blk->flags |= Memento_Flag_BreakOnFree | Memento_Flag_BreakOnRealloc;
- VALGRIND_MAKE_MEM_NOACCESS(data.blk, sizeof(Memento_BlkHeader));
+ VALGRIND_MAKE_MEM_DEFINED(blk, sizeof(Memento_BlkHeader));
+ blk->flags |= Memento_Flag_BreakOnFree | Memento_Flag_BreakOnRealloc;
+ VALGRIND_MAKE_MEM_NOACCESS(blk, sizeof(Memento_BlkHeader));
MEMENTO_UNLOCK();
return;
}
- data.blk = NULL;
- data.flags = 0;
- Memento_appBlocks(&memento.free, Memento_containsAddr, &data);
- if (data.blk != NULL) {
+ blk = find_enclosing_block(&memento.free, a, &flags);
+ if (blk != NULL) {
fprintf(stderr, "Can't stop on free/realloc; address "FMTP" is in %sfreed block ",
- data.addr,
- (data.flags == 1 ? "" : (data.flags == 2 ?
- "preguard of " : "postguard of ")));
- showBlock(data.blk, ' ');
+ a,
+ (flags == 1 ? "" : (flags == 2 ? "preguard of " : "postguard of ")));
+ showBlock(blk, ' ');
fprintf(stderr, "\n");
MEMENTO_UNLOCK();
return;
@@ -3436,6 +4230,12 @@ int Memento_squeezing(void)
return memento.squeezing;
}
+int Memento_setVerbose(int x)
+{
+ memento.verbose = x;
+ return x;
+}
+
#endif /* MEMENTO_CPP_EXTRAS_ONLY */
#ifdef __cplusplus
@@ -3672,6 +4472,10 @@ void (Memento_listNewBlocks)(void)
{
}
+void (Memento_listPhasedBlocks)(void)
+{
+}
+
size_t (Memento_setMax)(size_t max)
{
return 0;
@@ -3711,4 +4515,13 @@ int (Memento_squeezing)(void)
return 0;
}
+int (Memento_setVerbose)(int x)
+{
+ return x;
+}
+
+void Memento_showHash(unsigned int hash)
+{
+}
+
#endif
diff --git a/base/memento.h b/base/memento.h
index c9994b10..373b080e 100644
--- a/base/memento.h
+++ b/base/memento.h
@@ -1,4 +1,4 @@
-/* Copyright (C) 2009-2021 Artifex Software, Inc.
+/* Copyright (C) 2009-2022 Artifex Software, Inc.
All Rights Reserved.
This software is provided AS-IS with no warranty, either express or
@@ -167,7 +167,7 @@
* it's really easy:
* git clone git://github.com/ianlancetaylor/libbacktrace
* cd libbacktrace
- * ./configure
+ * ./configure --enable-shared
* make
*
* This leaves the build .so as .libs/libbacktrace.so
@@ -184,8 +184,11 @@
#ifndef MEMENTO_H
+/* Include all these first, so our definitions below do
+ * not conflict with them. */
#include <stdlib.h>
#include <stdarg.h>
+#include <string.h>
#define MEMENTO_H
@@ -211,8 +214,6 @@
#define MEMENTO_ALLOCFILL 0xa8
#define MEMENTO_FREEFILL 0xa9
-#define MEMENTO_FREELIST_MAX 0x2000000
-
int Memento_checkBlock(void *);
int Memento_checkAllMemory(void);
int Memento_check(void);
@@ -229,10 +230,12 @@ int Memento_failAt(int);
int Memento_failThisEvent(void);
void Memento_listBlocks(void);
void Memento_listNewBlocks(void);
+void Memento_listPhasedBlocks(void);
size_t Memento_setMax(size_t);
void Memento_stats(void);
void *Memento_label(void *, const char *);
void Memento_tick(void);
+int Memento_setVerbose(int);
void *Memento_malloc(size_t s);
void *Memento_realloc(void *, size_t s);
@@ -276,6 +279,8 @@ void Memento_fin(void);
void Memento_bt(void);
+void Memento_showHash(unsigned int hash);
+
#ifdef MEMENTO
#ifndef COMPILING_MEMENTO_C
@@ -317,6 +322,7 @@ void Memento_bt(void);
#define Memento_failThisEvent() 0
#define Memento_listBlocks() do {} while (0)
#define Memento_listNewBlocks() do {} while (0)
+#define Memento_listPhasedBlocks() do {} while (0)
#define Memento_setMax(A) 0
#define Memento_stats() do {} while (0)
#define Memento_label(A,B) (A)
@@ -345,6 +351,7 @@ void Memento_bt(void);
#define Memento_bt() do {} while (0)
#define Memento_sequence() (0)
#define Memento_squeezing() (0)
+#define Memento_setVerbose(A) (A)
#endif /* MEMENTO */
diff --git a/base/mkromfs.c b/base/mkromfs.c
index 08fbb27d..d46450b5 100644
--- a/base/mkromfs.c
+++ b/base/mkromfs.c
@@ -248,36 +248,43 @@ int errprintf_nomem(const char *fmt, ...)
return count;
}
-#ifndef GS_THREADSAFE
#if __LINE__ /* compiler provides it */
void
lprintf_file_and_line(const char *file, int line)
{
- errprintf(NULL, "%s(%d): ", file, line);
+ errprintf_nomem("%s(%d): ", file, line);
}
#else
void
lprintf_file_only(FILE * f, const char *file)
{
- errprintf(NULL, "%s(?): ", file);
+ errprintf_nomem("%s(?): ", file);
}
#endif
+gs_memory_t *gp_get_debug_mem_ptr(void)
+{
+ return NULL;
+}
+
void
eprintf_program_ident(const char *program_name,
long revision_number)
{
+ gs_memory_t *mem = gp_get_debug_mem_ptr();
+
+ if (mem == NULL)
+ return;
if (program_name) {
- errprintf(NULL, (revision_number ? "%s " : "%s"), program_name);
+ errprintf(mem, (revision_number ? "%s " : "%s"), program_name);
if (revision_number) {
int fpart = revision_number % 100;
- errprintf(NULL, "%d.%02d", (int)(revision_number / 100), fpart);
+ errprintf(mem, "%d.%02d", (int)(revision_number / 100), fpart);
}
- errprintf(NULL, ": ");
+ errprintf(mem, ": ");
}
}
-#endif
void
emprintf_program_ident(const gs_memory_t *mem,
diff --git a/base/msvccmd.mak b/base/msvccmd.mak
index 39169e20..3f828810 100644
--- a/base/msvccmd.mak
+++ b/base/msvccmd.mak
@@ -1,4 +1,4 @@
-# Copyright (C) 2001-2021 Artifex Software, Inc.
+# Copyright (C) 2001-2022 Artifex Software, Inc.
# All Rights Reserved.
#
# This software is provided AS-IS with no warranty, either express or
@@ -173,18 +173,26 @@ LCT=/DEBUG /INCREMENTAL:YES
COMPILE_FULL_OPTIMIZED= # no optimization when debugging
COMPILE_WITH_FRAMES= # no optimization when debugging
COMPILE_WITHOUT_FRAMES= # no optimization when debugging
+!if $(MAKEDLL)
+CMT=/MDd
+!else
CMT=/MTd
+!endif
!else
-!if $(DEBUGSYM)==0
+!if "$(DEBUGSYM)"=="0"
CT=
LCT=
+!if $(MAKEDLL)
+CMT=/MD
+!else
CMT=/MT
+!endif
COMPILE_WITHOUT_FRAMES=/Oy
!else
# Assume that DEBUGSYM != 0 implies a PROFILE build
CT=/Zi /Fd$(GLOBJDIR)\ $(NULL) $(CDCC) $(CPCH)
LCT=/DEBUG /PROFILE /OPT:REF /OPT:ICF
-CMT=/MTd
+CMT=/MD
# Do not disable frame pointers in profile builds.
COMPILE_WITHOUT_FRAMES=/Oy-
!endif
@@ -234,8 +242,6 @@ COMPILE_FOR_DLL=
COMPILE_FOR_EXE=
COMPILE_FOR_CONSOLE_EXE=
-# The /MT is for multi-threading. We would like to make this an option,
-# but it's too much work right now.
GENOPT=$(CP) $(CD) $(CT) $(CS) $(WARNOPT) $(VC8WARN) /nologo $(CMT)
CCFLAGS=$(PLATOPT) $(FPFLAGS) $(CPFLAGS) $(CFLAGS) $(XCFLAGS) $(MSINCFLAGS) $(SBRFLAGS)
diff --git a/base/msvclib.mak b/base/msvclib.mak
index a9f57985..fe156d29 100644
--- a/base/msvclib.mak
+++ b/base/msvclib.mak
@@ -1,4 +1,4 @@
-# Copyright (C) 2001-2021 Artifex Software, Inc.
+# Copyright (C) 2001-2022 Artifex Software, Inc.
# All Rights Reserved.
#
# This software is provided AS-IS with no warranty, either express or
@@ -547,6 +547,10 @@ MSVC_VERSION=14
# VS2017 or VS2019 (Toolset v141)
MSVC_VERSION=15
!endif
+!if "$(_NMAKE_VER)" == "14.16.27043.0"
+# VS2017 or VS2019 (Toolset v141)
+MSVC_VERSION=15
+!endif
!if "$(_NMAKE_VER)" == "14.24.28314.0"
# VS2019 (Toolset v142)
MSVC_VERSION=16
@@ -636,6 +640,26 @@ MS_TOOLSET_VERSION=14.29.30037
MSVC_VERSION=16
MS_TOOLSET_VERSION=14.29.30133
!endif
+!if "$(_NMAKE_VER)" == "14.29.30136.0"
+# VS2019 (Toolset v142)
+MSVC_VERSION=16
+MS_TOOLSET_VERSION=14.29.30133
+!endif
+!if "$(_NMAKE_VER)" == "14.29.30137.0"
+# VS2019 (Toolset v142)
+MSVC_VERSION=16
+MS_TOOLSET_VERSION=14.29.30133
+!endif
+!if "$(_NMAKE_VER)" == "14.29.30139.0"
+# VS2019 (Toolset v142)
+MSVC_VERSION=16
+MS_TOOLSET_VERSION=14.29.30133
+!endif
+!if "$(_NMAKE_VER)" == "14.29.30140.0"
+# VS2019 (Toolset v142)
+MSVC_VERSION=16
+MS_TOOLSET_VERSION=14.29.30133
+!endif
!endif
!ifndef MSVC_VERSION
diff --git a/base/openvms.mak b/base/openvms.mak
index 2260033e..63eb802d 100644
--- a/base/openvms.mak
+++ b/base/openvms.mak
@@ -1,4 +1,4 @@
-# Copyright (C) 2001-2021 Artifex Software, Inc.
+# Copyright (C) 2001-2022 Artifex Software, Inc.
# All Rights Reserved.
#
# This software is provided AS-IS with no warranty, either express or
@@ -232,7 +232,7 @@ DEVICE_DEVS9=$(DD)pbm.dev $(DD)pbmraw.dev $(DD)pgm.dev $(DD)pgmraw.dev $(DD)pgnm
DEVICE_DEVS10=$(DD)tiffcrle.dev $(DD)tiffg3.dev $(DD)tiffg32d.dev $(DD)tiffg4.dev $(DD)tifflzw.dev $(DD)tiffpack.dev
DEVICE_DEVS11=$(DD)tiff12nc.dev $(DD)tiff24nc.dev $(DD)tiffgray.dev $(DD)tiff32nc.dev $(DD)tiffsep.dev $(DD)tiffsep1.dev $(DD)tiffscaled.dev $(DD)tiffscaled8.dev $(DD)tiffscaled24.dev $(DD)tiffscaled32.dev
DEVICE_DEVS12=$(DD)bit.dev $(DD)bitrgb.dev $(DD)bitcmyk.dev
-DEVICE_DEVS13=$(DD)pngmono.dev $(DD)pngmonod.dev $(DD)pnggray.dev $(DD)png16.dev $(DD)png256.dev $(DD)png16m.dev $(DD)pngalpha.dev
+DEVICE_DEVS13=$(DD)pngmono.dev $(DD)pngmonod.dev $(DD)pnggray.dev $(DD)png16.dev $(DD)png256.dev $(DD)png16m.dev $(DD)pngalpha.dev $(DD)png16malpha.dev
DEVICE_DEVS14=$(DD)jpeg.dev $(DD)jpeggray.dev $(DD)jpegcmyk.dev
DEVICE_DEVS15=$(DD)pdfwrite.dev $(DD)ps2write.dev $(DD)eps2write.dev $(DD)txtwrite.dev $(DD)pxlmono.dev $(DD)pxlcolor.dev
DEVICE_DEVS16=$(DD)bbox.dev $(DD)inkcov.dev $(DD)ink_cov.dev
diff --git a/base/openvms.mmk b/base/openvms.mmk
index 0b19ff1c..2d0162da 100644
--- a/base/openvms.mmk
+++ b/base/openvms.mmk
@@ -1,4 +1,4 @@
-# Copyright (C) 2001-2021 Artifex Software, Inc.
+# Copyright (C) 2001-2022 Artifex Software, Inc.
# All Rights Reserved.
#
# This software is provided AS-IS with no warranty, either express or
@@ -244,7 +244,7 @@ DEVICE_DEVS9=$(DD)pbm.dev $(DD)pbmraw.dev $(DD)pgm.dev $(DD)pgmraw.dev $(DD)pgnm
DEVICE_DEVS10=$(DD)tiffcrle.dev $(DD)tiffg3.dev $(DD)tiffg32d.dev $(DD)tiffg4.dev $(DD)tifflzw.dev $(DD)tiffpack.dev
DEVICE_DEVS11=$(DD)tiff12nc.dev $(DD)tiff24nc.dev
DEVICE_DEVS12=$(DD)bit.dev $(DD)bitrgb.dev $(DD)bitcmyk.dev
-DEVICE_DEVS13=$(DD)pngmono.dev $(DD)pnggray.dev $(DD)png16.dev $(DD)png256.dev $(DD)png16m.dev $(DD)pngalpha.dev
+DEVICE_DEVS13=$(DD)pngmono.dev $(DD)pnggray.dev $(DD)png16.dev $(DD)png256.dev $(DD)png16m.dev $(DD)pngalpha.dev $(DD)png16malpha.dev
DEVICE_DEVS14=$(DD)jpeg.dev $(DD)jpeggray.dev
DEVICE_DEVS15=$(DD)pdfwrite.dev $(DD)eps2write.dev $(DD)pxlmono.dev $(DD)pxlcolor.dev
DEVICE_DEVS16=$(DD)bbox.dev
diff --git a/base/sa85d.c b/base/sa85d.c
index 4e51e89a..a49a8286 100644
--- a/base/sa85d.c
+++ b/base/sa85d.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 2001-2021 Artifex Software, Inc.
+/* Copyright (C) 2001-2022 Artifex Software, Inc.
All Rights Reserved.
This software is provided AS-IS with no warranty, either express or
@@ -156,7 +156,10 @@ s_A85D_process(stream_state * st, stream_cursor_read * pr,
}
}
finish:
- p += i; /* advance to the '>' */
+ if (p + i <= rlimit)
+ p += i; /* advance to the '>' */
+ else
+ p = rlimit; /* Can happen if the '>' is missing */
pw->ptr = q;
status = a85d_finish(ccount, word, pw);
q = pw->ptr;
diff --git a/base/scfe.c b/base/scfe.c
index 15e1a490..98648e98 100644
--- a/base/scfe.c
+++ b/base/scfe.c
@@ -25,9 +25,9 @@
/* ------ Macros and support routines ------ */
/* Statistics */
+/* #define COLLECT_STATS_SCFE */
-#if defined(DEBUG) && !defined(GS_THREADSAFE)
-
+#ifdef COLLECT_STATS_SCFE
typedef struct stats_runs_s {
ulong termination[64];
ulong make_up[41];
@@ -52,7 +52,7 @@ print_run_stats(const gs_memory_t *mem, const stats_runs_t * stats)
dmprintf1(mem, " total=%lu\n", total);
}
-#else /* !DEBUG || defined(GS_THREADSAFE) */
+#else /* !defined(COLLECT_STATS_SCFE) */
#define COUNT_RUN(cnt, i) DO_NOTHING
@@ -82,10 +82,9 @@ cf_put_long_run(stream_CFE_state * ss, byte * q, int lenv, const cf_runs * prt)
hce_declare_state;
cfe_run rr;
-#if defined(DEBUG) && !defined(GS_THREADSAFE)
+#ifdef COLLECT_STATS_SCFE
stats_runs_t *pstats =
(prt == &cf_white_runs ? &stats_white_runs : &stats_black_runs);
-
#endif
hce_load_state();
@@ -374,11 +373,12 @@ s_CFE_process(stream_state * st, stream_cursor_read * pr,
status, ss->read_count, ss->write_count,
(intptr_t) pr->ptr, (int)(rlimit - pr->ptr), (intptr_t) rlimit,
(intptr_t) pw->ptr, (int)(wlimit - pw->ptr), (intptr_t) wlimit);
-#if defined(DEBUG) && !defined(GS_THREADSAFE)
+#ifdef DEBUG
if (pr->ptr > rlimit || pw->ptr > wlimit) {
lprintf("Pointer overrun!\n");
status = ERRC;
}
+#ifdef COLLECT_STATS_SCFE
if (gs_debug_c('w') && status == 1) {
dmlputs(ss->memory, "[w]white runs:");
print_run_stats(ss->memory, &stats_white_runs);
@@ -386,6 +386,7 @@ s_CFE_process(stream_state * st, stream_cursor_read * pr,
print_run_stats(ss->memory, &stats_black_runs);
}
#endif
+#endif
return status;
}
diff --git a/base/scommon.h b/base/scommon.h
index 542b960c..2f8f7591 100644
--- a/base/scommon.h
+++ b/base/scommon.h
@@ -34,15 +34,6 @@
*/
typedef struct stream_s stream;
-/* We really want our offset type to be 64 bit for large file support
- * but this allows a particular port to specficy a prefered data type
- */
-#ifdef GS_OFFSET_T
-typedef GS_OFFSET_T gs_offset_t;
-#else
-typedef int64_t gs_offset_t;
-#endif
-
/*
* A stream_state records the state specific to a given variety of stream.
* The buffer processing function of a stream maintains this state.
diff --git a/base/sdcparam.c b/base/sdcparam.c
index 74b8052b..a04b59e2 100644
--- a/base/sdcparam.c
+++ b/base/sdcparam.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 2001-2021 Artifex Software, Inc.
+/* Copyright (C) 2001-2022 Artifex Software, Inc.
All Rights Reserved.
This software is provided AS-IS with no warranty, either express or
@@ -201,7 +201,7 @@ s_DCT_get_quantization_tables(gs_param_list * plist,
gs_param_string str;
gs_param_float_array fa;
- gs_sprintf(key, "%d", i);
+ gs_snprintf(key, sizeof(key), "%d", i);
if (QFactor == 1.0) {
code = quant_param_string(&str, DCTSIZE2,
table_ptrs[comp_info[i].quant_tbl_no]->quantval,
@@ -490,7 +490,7 @@ s_DCT_put_quantization_tables(gs_param_list * plist, stream_DCT_state * pdct,
char istr[5]; /* i converted to string key */
UINT16 values[DCTSIZE2];
- gs_sprintf(istr, "%d", i);
+ gs_snprintf(istr, sizeof(istr), "%d", i);
code = quant_params(quant_tables.list, istr, DCTSIZE2, values,
pdct->QFactor);
if (code < 0)
@@ -582,7 +582,7 @@ s_DCT_put_huffman_tables(gs_param_list * plist, stream_DCT_state * pdct,
UINT8 counts[16], values[256];
/* Collect the Huffman parameters. */
- gs_sprintf(istr, "%d", i);
+ gs_snprintf(istr, sizeof(istr), "%d", i);
code = s_DCT_byte_params(huff_tables.list, istr, 0, 16, counts);
if (code < 0)
return code;
diff --git a/base/sfxcommon.c b/base/sfxcommon.c
index e506bd64..41140431 100644
--- a/base/sfxcommon.c
+++ b/base/sfxcommon.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 2001-2021 Artifex Software, Inc.
+/* Copyright (C) 2001-2022 Artifex Software, Inc.
All Rights Reserved.
This software is provided AS-IS with no warranty, either express or
@@ -183,6 +183,9 @@ file_prepare_stream(const char *fname, uint len, const char *file_access,
byte *buffer;
register stream *s;
+ if (strlen(file_access) > 2)
+ return_error(gs_error_invalidfileaccess);
+
/* Open the file, always in binary mode. */
strcpy(fmode, file_access);
strcat(fmode, gp_fmode_binary_suffix);
diff --git a/base/shc.h b/base/shc.h
index b7ae66d1..a52e5bc7 100644
--- a/base/shc.h
+++ b/base/shc.h
@@ -105,7 +105,7 @@ typedef struct hce_table_s {
* that q does not exceed pw->limit.
*/
-#if defined(DEBUG) && !defined(GS_THREADSAFE)
+#if defined(DEBUG)
# define hc_print_value(code, clen)\
(gs_debug_c('W') ?\
(dlprintf2("[W]0x%x,%d\n", code, clen), 0) : 0)
diff --git a/base/sjbig2.c b/base/sjbig2.c
index 915269db..e91a2817 100644
--- a/base/sjbig2.c
+++ b/base/sjbig2.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 2001-2021 Artifex Software, Inc.
+/* Copyright (C) 2001-2022 Artifex Software, Inc.
All Rights Reserved.
This software is provided AS-IS with no warranty, either express or
@@ -63,7 +63,7 @@ s_jbig2decode_error(void *callback_data, const char *msg, Jbig2Severity severity
default: type = "unknown message:"; break;;
}
if (seg_idx == JBIG2_UNKNOWN_SEGMENT_NUMBER) segment[0] = '\0';
- else gs_sprintf(segment, "(segment 0x%02x)", seg_idx);
+ else gs_snprintf(segment, sizeof(segment), "(segment 0x%02x)", seg_idx);
if (error_data)
{
diff --git a/base/sjpx_openjpeg.c b/base/sjpx_openjpeg.c
index deaccd80..33058ce5 100644
--- a/base/sjpx_openjpeg.c
+++ b/base/sjpx_openjpeg.c
@@ -715,7 +715,10 @@ s_opjd_process(stream_state * ss, stream_cursor_read * pr,
locked = 1;
code = s_opjd_accumulate_input(state, pr);
- if (code < 0) return code;
+ if (code < 0) {
+ (void)opj_unlock(ss->memory);
+ return code;
+ }
if (state->codec == NULL) {
/* state->sb.size is non-zero after successful
diff --git a/base/spprint.c b/base/spprint.c
index c44e8bba..12ab9790 100644
--- a/base/spprint.c
+++ b/base/spprint.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 2001-2021 Artifex Software, Inc.
+/* Copyright (C) 2001-2022 Artifex Software, Inc.
All Rights Reserved.
This software is provided AS-IS with no warranty, either express or
@@ -83,7 +83,7 @@ pprintd1(stream * s, const char *format, int v)
if (*fp == 0 || fp[1] != 'd') /* shouldn't happen! */
lprintf1("Bad format in pprintd1: %s\n", format);
#endif
- gs_sprintf(str, "%d", v);
+ gs_snprintf(str, sizeof(str), "%d", v);
pputs_short(s, str);
return pprintf_scan(s, fp + 2);
}
@@ -115,12 +115,12 @@ pprintg1(stream * s, const char *format, double v)
if (*fp == 0 || fp[1] != 'g') /* shouldn't happen! */
lprintf1("Bad format in pprintg: %s\n", format);
#endif
- gs_sprintf(str, "%f", 1.5);
+ gs_snprintf(str, sizeof(str), "%f", 1.5);
dot = str[1]; /* locale-dependent */
- gs_sprintf(str, "%g", v);
+ gs_snprintf(str, sizeof(str), "%g", v);
if (strchr(str, 'e')) {
/* Bad news. Try again using f-format. */
- gs_sprintf(str, (fabs(v) > 1 ? "%1.1f" : "%1.8f"), v);
+ gs_snprintf(str, sizeof(str), (fabs(v) > 1 ? "%1.1f" : "%1.8f"), v);
}
/* Juggling locales isn't thread-safe. Posix me harder. */
if (dot != '.') {
@@ -165,7 +165,7 @@ pprintld1(stream *s, const char *format, long v)
if (*fp == 0 || fp[1] != 'l' || fp[2] != 'd') /* shouldn't happen! */
lprintf1("Bad format in pprintld: %s\n", format);
#endif
- gs_sprintf(str, "%ld", v);
+ gs_snprintf(str, sizeof(str), "%ld", v);
pputs_short(s, str);
return pprintf_scan(s, fp + 3);
}
@@ -197,7 +197,7 @@ pprintzd1(stream *s, const char *format, size_t v)
if (i != z)
lprintf1("Bad format in pprintzd: %s\n", format);
#endif
- gs_sprintf(str, "%"PRIdSIZE, v);
+ gs_snprintf(str, sizeof(str), "%"PRIdSIZE, v);
pputs_short(s, str);
return pprintf_scan(s, fp + z);
}
@@ -229,7 +229,7 @@ pprinti64d1(stream *s, const char *format, int64_t v)
if (i != z)
lprintf1("Bad format in pprinti64d: %s\n", format);
#endif
- gs_sprintf(str, "%"PRId64, v);
+ gs_snprintf(str, sizeof(str), "%"PRId64, v);
pputs_short(s, str);
return pprintf_scan(s, fp + z);
}
diff --git a/base/std.h b/base/std.h
index 36025ba5..78f14ac6 100644
--- a/base/std.h
+++ b/base/std.h
@@ -128,8 +128,8 @@ typedef ulong bits32;
*
* If you do not have a gs_memory_t * to hand, then you may call dprintf (and
* family) and eprintf(and family) insteads. Be aware that these functions
- * compile away to nothing in GS_THREADSAFE builds, as they will not work in
- * multithreaded environments.
+ * compile away to nothing in non-DEBUG builds (and even in some DEBUG
+ * environments), as they rely on platform specific threading tricks.
*
* Since we all stdout/stderr output must go via outprintf/errprintf,
* we have to define dputc and dputs in terms of errprintf also.
@@ -156,10 +156,8 @@ typedef struct gs_memory_s gs_memory_t;
#define dpfm errprintf
#define epfm errprintf
-#ifndef GS_THREADSAFE
#define dpf errprintf_nomem
#define epf errprintf_nomem
-#endif /* GS_THREADSAFE */
/* To allow stdout and stderr to be redirected, all stdout goes
* though outwrite and all stderr goes through errwrite.
@@ -170,14 +168,6 @@ int errwrite(const gs_memory_t *mem, const char *str, int len);
void outflush(const gs_memory_t *mem);
void errflush(const gs_memory_t *mem);
-#ifndef GS_THREADSAFE
-/* As a temporary measure, we allow forms of errwrite/errflush that do not
- * need to be given a memory pointer. Any uses of this (largely the debugging
- * system) will fail with multithreaded usage. */
-int errwrite_nomem(const char *str, int len);
-void errflush_nomem(void);
-#endif /* GS_THREADSAFE */
-
/* Formatted output to outwrite and errwrite.
* The maximum string length is 1023 characters.
*/
@@ -193,77 +183,19 @@ void errflush_nomem(void);
# endif
int outprintf(const gs_memory_t *mem, const char *fmt, ...) __printflike(2, 3);
int errprintf(const gs_memory_t *mem, const char *fmt, ...) __printflike(2, 3);
-#ifndef GS_THREADSAFE
int errprintf_nomem(const char *fmt, ...) __printflike(1, 2);
-#endif
#else
int outprintf();
int errprintf();
-#ifndef GS_THREADSAFE
int errprintf_nomem();
#endif
-#endif
-/* Print the program line # for debugging - NON THREADSAFE VERSIONS */
-#ifdef GS_THREADSAFE
-#define dflush() DO_NOTHING
-#define dputc(chr) DO_NOTHING
-#define dlputc(chr) DO_NOTHING
-#define dputs(str) DO_NOTHING
-#define dlputs(str) DO_NOTHING
-#define dprintf(str)\
- DO_NOTHING
-#define dlprintf(str)\
- DO_NOTHING
-#define dprintf1(str,arg1)\
- DO_NOTHING
-#define dlprintf1(str,arg1)\
- DO_NOTHING
-#define dprintf2(str,arg1,arg2)\
- DO_NOTHING
-#define dlprintf2(str,arg1,arg2)\
- DO_NOTHING
-#define dprintf3(str,arg1,arg2,arg3)\
- DO_NOTHING
-#define dlprintf3(str,arg1,arg2,arg3)\
- DO_NOTHING
-#define dprintf4(str,arg1,arg2,arg3,arg4)\
- DO_NOTHING
-#define dlprintf4(str,arg1,arg2,arg3,arg4)\
- DO_NOTHING
-#define dprintf5(str,arg1,arg2,arg3,arg4,arg5)\
- DO_NOTHING
-#define dlprintf5(str,arg1,arg2,arg3,arg4,arg5)\
- DO_NOTHING
-#define dprintf6(str,arg1,arg2,arg3,arg4,arg5,arg6)\
- DO_NOTHING
-#define dlprintf6(str,arg1,arg2,arg3,arg4,arg5,arg6)\
- DO_NOTHING
-#define dprintf7(str,arg1,arg2,arg3,arg4,arg5,arg6,arg7)\
- DO_NOTHING
-#define dlprintf7(str,arg1,arg2,arg3,arg4,arg5,arg6,arg7)\
- DO_NOTHING
-#define dprintf8(str,arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8)\
- DO_NOTHING
-#define dlprintf8(str,arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8)\
- DO_NOTHING
-#define dprintf9(str,arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9)\
- DO_NOTHING
-#define dlprintf9(str,arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9)\
- DO_NOTHING
-#define dprintf10(str,arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10)\
- DO_NOTHING
-#define dlprintf10(str,arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10)\
- DO_NOTHING
-#define dprintf11(str,arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11)\
- DO_NOTHING
-#define dlprintf11(str,arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11)\
- DO_NOTHING
-#define dprintf12(str,arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12)\
- DO_NOTHING
-#define dlprintf12(str,arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12)\
- DO_NOTHING
-#else
+/* Print the program line # for debugging */
+/* These versions do not take a memory pointer, and hence have to
+ * appeal to platform specific methods to get one from thread local
+ * storage. These are likely to be much slower than the other versions,
+ * and, on some platforms at least, may do nothing. Avoid these if
+ * possible. */
#if __LINE__ /* compiler provides it */
void dprintf_file_and_line(const char *, int);
# define _dpl dprintf_file_and_line(__FILE__, __LINE__),
@@ -329,7 +261,6 @@ void dflush(void); /* flush stderr */
dpf(str, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12)
#define dlprintf12(str,arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12)\
(_dpl dprintf12(str, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12))
-#endif /* GS_THREADSAFE */
/* Print the program line # for debugging. */
#if __LINE__ /* compiler provides it */
@@ -400,11 +331,6 @@ void dmprintf_file_only(const gs_memory_t *,const char *);
void printf_program_ident(const gs_memory_t *mem, const char *program_name, long revision_number);
-#ifdef GS_THREADSAFE
-#define eprintf_program_ident(NAME,NUM) DO_NOTHING
-#else
-void eprintf_program_ident(const char *program_name, long revision_number);
-#endif /* GS_THREADSAFE */
void emprintf_program_ident(const gs_memory_t *mem,
const char *program_name,
long revision_number);
@@ -412,30 +338,12 @@ const char *gs_program_family_name(void);
const char *gs_program_name(void);
long gs_revision_number(void);
-#ifdef GS_THREADSAFE
-#define eprintf(str)\
- DO_NOTHING
-#define eprintf1(str,arg1)\
- DO_NOTHING
-#define eprintf2(str,arg1,arg2)\
- DO_NOTHING
-#define eprintf3(str,arg1,arg2,arg3)\
- DO_NOTHING
-#define eprintf4(str,arg1,arg2,arg3,arg4)\
- DO_NOTHING
-#define eprintf5(str,arg1,arg2,arg3,arg4,arg5)\
- DO_NOTHING
-#define eprintf6(str,arg1,arg2,arg3,arg4,arg5,arg6)\
- DO_NOTHING
-#define eprintf7(str,arg1,arg2,arg3,arg4,arg5,arg6,arg7)\
- DO_NOTHING
-#define eprintf8(str,arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8)\
- DO_NOTHING
-#define eprintf9(str,arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9)\
- DO_NOTHING
-#define eprintf10(str,arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10)\
- DO_NOTHING
-#else
+/* These versions do not take a memory pointer, and hence have to
+ * appeal to platform specific methods to get one from thread local
+ * storage. These are likely to be much slower than the other versions,
+ * and, on some platforms at least, may do nothing. Avoid these if
+ * possible. */
+void eprintf_program_ident(const char *program_name, long revision_number);
#define _epi eprintf_program_ident(gs_program_name(), gs_revision_number()),
#define eprintf(str)\
@@ -460,7 +368,6 @@ long gs_revision_number(void);
(_epi epf(str, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9))
#define eprintf10(str,arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10)\
(_epi epf(str, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10))
-#endif /* GS_THREADSAFE */
#define _epim(mem) emprintf_program_ident(mem, gs_program_name(), gs_revision_number()),
@@ -487,30 +394,6 @@ long gs_revision_number(void);
#define emprintf10(mem, str,arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10)\
(_epim(mem) epfm(mem, str, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10))
-#ifdef GS_THREADSAFE
-#define lprintf(str)\
- DO_NOTHING
-#define lprintf1(str,arg1)\
- DO_NOTHING
-#define lprintf2(str,arg1,arg2)\
- DO_NOTHING
-#define lprintf3(str,arg1,arg2,arg3)\
- DO_NOTHING
-#define lprintf4(str,arg1,arg2,arg3,arg4)\
- DO_NOTHING
-#define lprintf5(str,arg1,arg2,arg3,arg4,arg5)\
- DO_NOTHING
-#define lprintf6(str,arg1,arg2,arg3,arg4,arg5,arg6)\
- DO_NOTHING
-#define lprintf7(str,arg1,arg2,arg3,arg4,arg5,arg6,arg7)\
- DO_NOTHING
-#define lprintf8(str,arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8)\
- DO_NOTHING
-#define lprintf9(str,arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9)\
- DO_NOTHING
-#define lprintf10(str,arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10)\
- DO_NOTHING
-#else
#if __LINE__ /* compiler provides it */
void lprintf_file_and_line(const char *, int);
# define _epl _epi lprintf_file_and_line(__FILE__, __LINE__),
@@ -541,7 +424,6 @@ void lprintf_file_only(const char *);
(_epl epf(str, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9))
#define lprintf10(str,arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10)\
(_epl epf(str, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10))
-#endif /* GS_THREADSAFE */
#if __LINE__ /* compiler provides it */
void mlprintf_file_and_line(const gs_memory_t *,const char *, int);
diff --git a/base/stdint_.h b/base/stdint_.h
index 555ec4a6..e21171a9 100644
--- a/base/stdint_.h
+++ b/base/stdint_.h
@@ -27,6 +27,7 @@
/* Define some stdint.h types. The jbig2dec headers and ttf bytecode
* interpreter require these and they're generally useful to have around
* now that there's a standard.
+
*/
/* Some systems are guaranteed to have stdint.h
@@ -127,6 +128,24 @@ typedef unsigned long long uint64_t;
# define STDINT_TYPES_DEFINED
#endif /* STDINT_TYPES_DEFINED */
+
+/* We really want our offset type to be 64 bit for large file support
+ * but this allows a particular port to specficy a prefered data type size
+ */
+#ifdef ARCH_SIZEOF_GS_OFFSET_T
+# if ARCH_SIZEOF_GS_OFFSET_T == 8
+typedef int64_t gs_offset_t;
+# elif ARCH_SIZEOF_GS_OFFSET_T == 4
+typedef int32_t gs_offset_t;
+# else
+UNSUPPORTED
+# endif
+#else
+# define ARCH_SIZEOF_GS_OFFSET_T 8
+typedef int64_t gs_offset_t;
+#endif
+
+
#if defined(HAVE_INTTYPES_H) && HAVE_INTTYPES_H == 1
# include <inttypes.h>
#else
@@ -248,4 +267,10 @@ typedef unsigned long long uint64_t;
# define PRI_INTPTR "0x%" PRIx64
# endif
+# if ARCH_SIZEOF_GS_OFFSET_T == 4
+# define PRIdOFFSET PRId32
+# else
+# define PRIdOFFSET PRId64
+# endif
+
#endif /* stdint__INCLUDED */
diff --git a/base/stdio_.h b/base/stdio_.h
index 45c42926..e06607b3 100644
--- a/base/stdio_.h
+++ b/base/stdio_.h
@@ -1,4 +1,4 @@
-/* Copyright (C) 2001-2021 Artifex Software, Inc.
+/* Copyright (C) 2001-2022 Artifex Software, Inc.
All Rights Reserved.
This software is provided AS-IS with no warranty, either express or
@@ -35,7 +35,7 @@
# define unlink(fname) delete(fname)
# endif
#else
-#if !defined(const)
+#if !defined(const) && !defined(_WIN32) && !defined(_WIN64)
/*
* Other systems may or may not declare unlink in stdio.h;
* if they do, the declaration will be compatible with this one, as long
diff --git a/base/ttinterp.c b/base/ttinterp.c
index 2ac1783b..fe44a844 100644
--- a/base/ttinterp.c
+++ b/base/ttinterp.c
@@ -88,7 +88,9 @@
# define DBG_PRINT4(fmt, a, b, c, d)
#endif
-#if defined(DEBUG) && !defined(GS_THREADSAFE)
+/* #define COLLECT_STATS_TTINTERP */
+
+#ifdef COLLECT_STATS_TTINTERP
static int nInstrCount=0;
#endif
@@ -4952,7 +4954,7 @@ static int nInstrCount=0;
Int A;
PDefRecord WITH;
PCallRecord WITH1;
-#if defined(DEBUG) && !defined(GS_THREADSAFE)
+#ifdef COLLECT_STATS_TTINTERP
bool bFirst;
#endif
bool dbg_prt = (DBG_PRT_FUN != NULL);
@@ -5002,7 +5004,7 @@ static int nInstrCount=0;
CUR.error = Result;
goto _LExit;
}
-#if defined(DEBUG) && !defined(GS_THREADSAFE)
+#ifdef COLLECT_STATS_TTINTERP
bFirst = true;
#endif
do
@@ -5037,7 +5039,7 @@ static int nInstrCount=0;
CUR.step_ins = TRUE;
CUR.error = TT_Err_Ok;
-# if defined(DEBUG) && !defined(GS_THREADSAFE)
+#ifdef COLLECT_STATS_TTINTERP
DBG_PRINT3("\n%%n=%5d IP=%5d OP=%s ", nInstrCount, CUR.IP, Instruct_Dispatch[CUR.opcode].sName);
/*
{ for(int i=0;i<CUR.top;i++)
@@ -5050,11 +5052,11 @@ static int nInstrCount=0;
memcpy(save_cx, CUR.pts.cur_x, sizeof(CUR.pts.cur_x[0]) * CUR.pts.n_points);
memcpy(save_cy, CUR.pts.cur_y, sizeof(CUR.pts.cur_y[0]) * CUR.pts.n_points);
}
-# endif
+#endif
Instruct_Dispatch[CUR.opcode].p( EXEC_ARGS &CUR.stack[CUR.args] );
-# if defined(DEBUG) && !defined(GS_THREADSAFE)
+#ifdef COLLECT_STATS_TTINTERP
if (save_ox != NULL) {
F26Dot6 *pp[4], *qq[4];
const char *ss[] = {"org.x", "org.y", "cur.x", "cur.y"};
@@ -5084,7 +5086,7 @@ static int nInstrCount=0;
nInstrCount++;
bFirst=FALSE;
}
-# endif
+#endif
DBG_PAINT
diff --git a/base/unix-dll.mak b/base/unix-dll.mak
index e83390c2..0e4bbab4 100644
--- a/base/unix-dll.mak
+++ b/base/unix-dll.mak
@@ -1,4 +1,4 @@
-# Copyright (C) 2001-2021 Artifex Software, Inc.
+# Copyright (C) 2001-2022 Artifex Software, Inc.
# All Rights Reserved.
#
# This software is provided AS-IS with no warranty, either express or
@@ -193,12 +193,15 @@ gpdl-so-links-subtarget: $(GPDL_SO) $(UNIX_DLL_MAK) $(MAKEDIRS)
$(NO_OP)
# Build the small Ghostscript loaders, with Gtk+ and without
-$(GSSOC_XE): gs-so-links-subtarget $(PSSRC)dxmainc.c $(UNIX_DLL_MAK) $(MAKEDIRS)
+$(GLOBJ)dxmainc.$(OBJ): $(PSSRC)dxmainc.c $(UNIX_DLL_MAK) $(MAKEDIRS)
$(GLCC) $(GLO_)dxmainc.$(OBJ) $(C_) $(PSSRC)dxmainc.c
+
+$(GSSOC_XE): gs-so-links-subtarget $(GLOBJ)dxmainc.$(OBJ) $(UNIX_DLL_MAK) $(MAKEDIRS)
$(GLCC) -L$(BINDIR) $(LDFLAGS) $(O_) $(GSSOC_XE) $(GLOBJ)dxmainc.$(OBJ) -l$(GS_SO_BASE)
-$(GSSOX_XE): gs-so-links-subtarget $(PSSRC)$(SOC_LOADER).c $(UNIX_DLL_MAK) $(MAKEDIRS)
- $(GLCC) $(SOC_CFLAGS) $(GLO_)$(SOC_LOADER).$(OBJ) $(C_) $(PSSRC)$(SOC_LOADER).c
+$(GLO_)$(SOC_LOADER).$(OBJ): $(PSSRC)$(SOC_LOADER).c $(UNIX_DLL_MAK) $(MAKEDIRS)
+
+$(GSSOX_XE): gs-so-links-subtarget $(GLO_)$(SOC_LOADER).$(OBJ) $(UNIX_DLL_MAK) $(MAKEDIRS)
$(GLCC) -L$(BINDIR) $(LDFLAGS) $(O_) $(GSSOX_XE) $(GLOBJ)$(SOC_LOADER).$(OBJ) -l$(GS_SO_BASE) $(SOC_LIBS)
$(PCLSOC_XE): gpcl6-so-links-subtarget $(UNIX_DLL_MAK) $(PLOBJ)$(REALMAIN_SRC).$(OBJ) $(MAKEDIRS)
diff --git a/base/unix-gcc.mak b/base/unix-gcc.mak
index 0712aa27..04ebcff8 100644
--- a/base/unix-gcc.mak
+++ b/base/unix-gcc.mak
@@ -1,4 +1,4 @@
-# Copyright (C) 2001-2021 Artifex Software, Inc.
+# Copyright (C) 2001-2022 Artifex Software, Inc.
# All Rights Reserved.
#
# This software is provided AS-IS with no warranty, either express or
@@ -328,6 +328,7 @@ CUPSPDFTORASTER=0
SHARE_LCUPS=1
LCUPS_NAME=cups
LCUPSSRCDIR=./cups
+LIBCUPSSRCDIR=./cups
LCUPSBUILDTYPE=
CUPS_CC=$(CC)
@@ -555,12 +556,12 @@ DISPLAY_DEV=$(DD)bbox.dev
# devs.mak and dcontrib.mak for the list of available devices.
# DEVICE_DEVS=$(DISPLAY_DEV) $(DD)x11.dev $(DD)x11_.dev $(DD)x11alpha.dev $(DD)x11alt_.dev $(DD)x11cmyk.dev $(DD)x11cmyk2.dev $(DD)x11cmyk4.dev $(DD)x11cmyk8.dev $(DD)x11gray2.dev $(DD)x11gray4.dev $(DD)x11mono.dev $(DD)x11rg16x.dev $(DD)x11rg32x.dev
DEVICE_DEVS=$(DISPLAY_DEV)
-DEVICE_DEVS1=$(DD)bit.dev $(DD)bitcmyk.dev $(DD)bitrgb.dev $(DD)bitrgbtags.dev $(DD)bmp16.dev $(DD)bmp16m.dev $(DD)bmp256.dev $(DD)bmp32b.dev $(DD)bmpgray.dev $(DD)bmpmono.dev $(DD)bmpsep1.dev $(DD)bmpsep8.dev $(DD)ccr.dev $(DD)cif.dev $(DD)devicen.dev $(DD)eps2write.dev $(DD)fpng.dev $(DD)inferno.dev $(DD)ink_cov.dev $(DD)inkcov.dev $(DD)jpeg.dev $(DD)jpegcmyk.dev $(DD)jpeggray.dev $(DD)mgr4.dev $(DD)mgr8.dev $(DD)mgrgray2.dev $(DD)mgrgray4.dev $(DD)mgrgray8.dev $(DD)mgrmono.dev $(DD)miff24.dev $(DD)pam.dev $(DD)pamcmyk32.dev $(DD)pamcmyk4.dev $(DD)pbm.dev $(DD)pbmraw.dev $(DD)pcx16.dev $(DD)pcx24b.dev $(DD)pcx256.dev $(DD)pcxcmyk.dev $(DD)pcxgray.dev $(DD)pcxmono.dev $(DD)pdfwrite.dev $(DD)pgm.dev $(DD)pgmraw.dev $(DD)pgnm.dev $(DD)pgnmraw.dev $(DD)pkm.dev $(DD)pkmraw.dev $(DD)pksm.dev $(DD)pksmraw.dev $(DD)plan.dev $(DD)plan9bm.dev $(DD)planc.dev $(DD)plang.dev $(DD)plank.dev $(DD)planm.dev $(DD)plank.dev $(DD)plib.dev $(DD)plibc.dev $(DD)plibg.dev $(DD)plibk.dev $(DD)plibm.dev $(DD)pnm.dev $(DD)pnmraw.dev $(DD)ppm.dev $(DD)ppmraw.dev $(DD)ps2write.dev $(DD)psdcmyk.dev $(DD)psdcmykog.dev $(DD)psdf.dev $(DD)psdrgb.dev $(DD)spotcmyk.dev $(DD)txtwrite.dev $(DD)xcf.dev $(DD)psdcmyk16.dev $(DD)psdrgb16.dev
+DEVICE_DEVS1=$(DD)bit.dev $(DD)bitcmyk.dev $(DD)bitrgb.dev $(DD)bitrgbtags.dev $(DD)bmp16.dev $(DD)bmp16m.dev $(DD)bmp256.dev $(DD)bmp32b.dev $(DD)bmpgray.dev $(DD)bmpmono.dev $(DD)bmpsep1.dev $(DD)bmpsep8.dev $(DD)ccr.dev $(DD)cif.dev $(DD)devicen.dev $(DD)eps2write.dev $(DD)fpng.dev $(DD)inferno.dev $(DD)ink_cov.dev $(DD)inkcov.dev $(DD)jpeg.dev $(DD)jpegcmyk.dev $(DD)jpeggray.dev $(DD)mgr4.dev $(DD)mgr8.dev $(DD)mgrgray2.dev $(DD)mgrgray4.dev $(DD)mgrgray8.dev $(DD)mgrmono.dev $(DD)miff24.dev $(DD)pam.dev $(DD)pamcmyk32.dev $(DD)pamcmyk4.dev $(DD)pbm.dev $(DD)pbmraw.dev $(DD)pcx16.dev $(DD)pcx24b.dev $(DD)pcx256.dev $(DD)pcxcmyk.dev $(DD)pcxgray.dev $(DD)pcxmono.dev $(DD)pdfwrite.dev $(DD)pgm.dev $(DD)pgmraw.dev $(DD)pgnm.dev $(DD)pgnmraw.dev $(DD)pkm.dev $(DD)pkmraw.dev $(DD)pksm.dev $(DD)pksmraw.dev $(DD)plan.dev $(DD)plan9bm.dev $(DD)planc.dev $(DD)plang.dev $(DD)plank.dev $(DD)planm.dev $(DD)plank.dev $(DD)plib.dev $(DD)plibc.dev $(DD)plibg.dev $(DD)plibk.dev $(DD)plibm.dev $(DD)pnm.dev $(DD)pnmraw.dev $(DD)ppm.dev $(DD)ppmraw.dev $(DD)ps2write.dev $(DD)psdcmyk.dev $(DD)psdcmykog.dev $(DD)psdf.dev $(DD)psdrgb.dev $(DD)spotcmyk.dev $(DD)txtwrite.dev $(DD)xcf.dev $(DD)psdcmyk16.dev $(DD)psdrgb16.dev $(DD)psdcmyktags.dev $(DD)psdcmyktags16.dev
DEVICE_DEVS2=$(DD)ap3250.dev $(DD)atx23.dev $(DD)atx24.dev $(DD)atx38.dev $(DD)bj10e.dev $(DD)bj200.dev $(DD)bjc600.dev $(DD)bjc800.dev $(DD)cdeskjet.dev $(DD)cdj500.dev $(DD)cdj550.dev $(DD)cdjcolor.dev $(DD)cdjmono.dev $(DD)cljet5.dev $(DD)cljet5c.dev $(DD)cljet5pr.dev $(DD)coslw2p.dev $(DD)coslwxl.dev $(DD)declj250.dev $(DD)deskjet.dev $(DD)dj505j.dev $(DD)djet500.dev $(DD)djet500c.dev $(DD)dnj650c.dev $(DD)eps9high.dev $(DD)eps9mid.dev $(DD)epson.dev $(DD)epsonc.dev $(DD)escp.dev $(DD)fs600.dev $(DD)hl7x0.dev $(DD)ibmpro.dev $(DD)imagen.dev $(DD)itk24i.dev $(DD)itk38.dev $(DD)jetp3852.dev $(DD)laserjet.dev $(DD)lbp8.dev $(DD)lips3.dev $(DD)lj250.dev $(DD)lj3100sw.dev $(DD)lj4dith.dev $(DD)lj4dithp.dev $(DD)lj5gray.dev $(DD)lj5mono.dev $(DD)ljet2p.dev $(DD)ljet3.dev $(DD)ljet3d.dev $(DD)ljet4.dev $(DD)ljet4d.dev $(DD)ljet4pjl.dev $(DD)ljetplus.dev $(DD)lp2563.dev $(DD)lp8000.dev $(DD)lq850.dev $(DD)lxm5700m.dev $(DD)m8510.dev $(DD)necp6.dev $(DD)oce9050.dev $(DD)oki182.dev $(DD)okiibm.dev $(DD)paintjet.dev $(DD)photoex.dev $(DD)picty180.dev $(DD)pj.dev $(DD)pjetxl.dev $(DD)pjxl.dev $(DD)pjxl300.dev $(DD)pxlcolor.dev $(DD)pxlmono.dev $(DD)r4081.dev $(DD)rinkj.dev $(DD)sj48.dev $(DD)st800.dev $(DD)stcolor.dev $(DD)t4693d2.dev $(DD)t4693d4.dev $(DD)t4693d8.dev $(DD)tek4696.dev $(DD)uniprint.dev
DEVICE_DEVS3=
DEVICE_DEVS4=$(DD)ijs.dev
DEVICE_DEVS5=
-DEVICE_DEVS6=$(DD)png16.dev $(DD)png16m.dev $(DD)png256.dev $(DD)png48.dev $(DD)pngalpha.dev $(DD)pnggray.dev $(DD)pngmono.dev
+DEVICE_DEVS6=$(DD)png16.dev $(DD)png16m.dev $(DD)png256.dev $(DD)png48.dev $(DD)pngalpha.dev $(DD)png16malpha.dev $(DD)pnggray.dev $(DD)pngmono.dev
DEVICE_DEVS7=
DEVICE_DEVS8=
DEVICE_DEVS9=
diff --git a/base/unixansi.mak b/base/unixansi.mak
index d8e11380..58b7c654 100644
--- a/base/unixansi.mak
+++ b/base/unixansi.mak
@@ -1,4 +1,4 @@
-# Copyright (C) 2001-2021 Artifex Software, Inc.
+# Copyright (C) 2001-2022 Artifex Software, Inc.
# All Rights Reserved.
#
# This software is provided AS-IS with no warranty, either express or
@@ -353,16 +353,16 @@ DEVICE_DEVS9=$(DD)pbm.dev $(DD)pbmraw.dev $(DD)pgm.dev $(DD)pgmraw.dev $(DD)pgnm
DEVICE_DEVS10=$(DD)tiffcrle.dev $(DD)tiffg3.dev $(DD)tiffg32d.dev $(DD)tiffg4.dev $(DD)tifflzw.dev $(DD)tiffpack.dev
DEVICE_DEVS11=$(DD)tiff12nc.dev $(DD)tiff24nc.dev $(DD)tiffgray.dev $(DD)tiff32nc.dev $(DD)tiffsep.dev $(DD)tiffsep1.dev $(DD)tiffscaled.dev $(DD)tiffscaled8.dev $(DD)tiffscaled24.dev $(DD)tiffscaled32.dev $(DD)tiffscaled4.dev
DEVICE_DEVS12=$(DD)bit.dev $(DD)bitrgb.dev $(DD)bitcmyk.dev
-DEVICE_DEVS13=$(DD)pngmono.dev $(DD)pngmonod.dev $(DD)pnggray.dev $(DD)png16.dev $(DD)png256.dev $(DD)png16m.dev $(DD)pngalpha.dev
+DEVICE_DEVS13=$(DD)pngmono.dev $(DD)pngmonod.dev $(DD)pnggray.dev $(DD)png16.dev $(DD)png256.dev $(DD)png16m.dev $(DD)pngalpha.dev $(DD)png16malpha.dev
DEVICE_DEVS14=$(DD)jpeg.dev $(DD)jpeggray.dev $(DD)jpegcmyk.dev
DEVICE_DEVS15=$(DD)pdfwrite.dev $(DD)ps2write.dev $(DD)eps2write.dev $(DD)txtwrite.dev $(DD)pxlmono.dev $(DD)pxlcolor.dev
-DEVICE_DEVS16=$(DD)bbox.dev $(DD)inkcov.dev $(DD)ink_cov.dev $(DD)pdfimage8.dev $(DD)pdfimage24.dev $(DD)pdfimage32.dev $(DD)PCLm.dev
+DEVICE_DEVS16=$(DD)bbox.dev $(DD)inkcov.dev $(DD)ink_cov.dev $(DD)pdfimage8.dev $(DD)pdfimage24.dev $(DD)pdfimage32.dev $(DD)PCLm.dev $(DD)PCLm8.dev
# Overflow from DEVS9
DEVICE_DEVS17=$(DD)pnm.dev $(DD)pnmraw.dev $(DD)ppm.dev $(DD)ppmraw.dev $(DD)pkm.dev $(DD)pkmraw.dev $(DD)pksm.dev $(DD)pksmraw.dev $(DD)pamcmyk32.dev
DEVICE_DEVS18=
DEVICE_DEVS19=
DEVICE_DEVS20=
-DEVICE_DEVS21=$(DD)spotcmyk.dev $(DD)devicen.dev $(DD)xcf.dev $(DD)bmpsep1.dev $(DD)bmpsep8.dev $(DD)bmp16m.dev $(DD)bmp32b.dev $(DD)psdcmyk.dev $(DD)psdrgb.dev $(DD)pamcmyk32.dev $(DD)psdcmykog.dev $(DD)fpng.dev $(DD)psdcmyk16.dev $(DD)psdrgb16.dev
+DEVICE_DEVS21=$(DD)spotcmyk.dev $(DD)devicen.dev $(DD)xcf.dev $(DD)bmpsep1.dev $(DD)bmpsep8.dev $(DD)bmp16m.dev $(DD)bmp32b.dev $(DD)psdcmyk.dev $(DD)psdrgb.dev $(DD)pamcmyk32.dev $(DD)psdcmykog.dev $(DD)fpng.dev $(DD)psdcmyk16.dev $(DD)psdrgb16.dev $(DD)psdcmyktags16.dev $(DD)psdcmyktags.dev
# ---------------------------- End of options --------------------------- #
diff --git a/base/unixlink.mak b/base/unixlink.mak
index ee91babd..be5d8226 100644
--- a/base/unixlink.mak
+++ b/base/unixlink.mak
@@ -122,7 +122,7 @@ $(GXPS_A_XE): $(GXPS_A) $(REALMAIN_OBJ)
libgpdl_tr=$(GLOBJ)libgpdl.tr
GPDL_A=$(BINDIR)$(D)$(GPDL).a
-$(GPDL_A): $(GPDL_PSI_TOP_OBJS) $(PCL_PXL_TOP_OBJS) $(PSI_TOP_OBJ) $(XPS_TOP_OBJ) $(MAIN_OBJ) \
+$(GPDL_A): $(GPDL_PSI_TOP_OBJS) $(PCL_PXL_TOP_OBJS) $(PSI_TOP_OBJ) $(XPS_TOP_OBJ) $(PDF_TOP_OBJ) $(MAIN_OBJ) \
$(XOBJS) $(GLOBJDIR)/pdlromfs$(COMPILE_INITS).$(OBJ) \
$(GLOBJDIR)/pdlromfs$(COMPILE_INITS)c0.$(OBJ) \
$(GLOBJDIR)/pdlromfs$(COMPILE_INITS)c1.$(OBJ) \
@@ -133,7 +133,7 @@ $(GPDL_A): $(GPDL_PSI_TOP_OBJS) $(PCL_PXL_TOP_OBJS) $(PSI_TOP_OBJ) $(XPS_TOP_OBJ
$(UNIXLINK_MAK)
rm -f $(GPDL_A)
$(ECHOGS_XE) -w $(libgpdl_tr) -n - $(AR) $(ARFLAGS) $(GPDL_A)
- $(ECHOGS_XE) -a $(libgpdl_tr) -n -s $(GPDL_PSI_TOP_OBJS) $(PCL_PXL_TOP_OBJS) $(PSI_TOP_OBJ) $(XPS_TOP_OBJ) $(XOBJS) -s
+ $(ECHOGS_XE) -a $(libgpdl_tr) -n -s $(GPDL_PSI_TOP_OBJS) $(PCL_PXL_TOP_OBJS) $(PSI_TOP_OBJ) $(XPS_TOP_OBJ) $(PDF_TOP_OBJ) $(XOBJS) -s
$(ECHOGS_XE) -a $(libgpdl_tr) -n -s $(GLOBJDIR)/pdlromfs$(COMPILE_INITS).$(OBJ) -s
$(ECHOGS_XE) -a $(libgpdl_tr) -n -s $(GLOBJDIR)/pdlromfs$(COMPILE_INITS)c0.$(OBJ) -s
$(ECHOGS_XE) -a $(libgpdl_tr) -n -s $(GLOBJDIR)/pdlromfs$(COMPILE_INITS)c1.$(OBJ) -s
@@ -250,15 +250,15 @@ $(GPDF_XE): $(ld_tr) $(pdf_tr) $(REALMAIN_OBJ) $(MAIN_OBJ) $(PDF_TOP_OBJS) \
gpdlldt_tr=$(PSOBJ)gpdlldt.tr
$(GPDL_XE): $(ld_tr) $(gpdl_tr) $(INT_ARCHIVE_ALL) $(REALMAIN_OBJ) $(MAIN_OBJ) \
- $(GPDL_PSI_TOP_OBJS) $(PCL_PXL_TOP_OBJS) $(PSI_TOP_OBJ) $(XPS_TOP_OBJ) \
- $(XOBJS) $(GLOBJDIR)/pdlromfs$(COMPILE_INITS).$(OBJ) \
- $(GLOBJDIR)/pdlromfs$(COMPILE_INITS)c0.$(OBJ) \
- $(GLOBJDIR)/pdlromfs$(COMPILE_INITS)c1.$(OBJ) \
- $(GLOBJDIR)/pdlromfs$(COMPILE_INITS)c2.$(OBJ) \
- $(GLOBJDIR)/pdlromfs$(COMPILE_INITS)c3.$(OBJ) \
- $(PSINT_ARCHIVE_ALL) $(UNIXLINK_MAK)
+ $(GPDL_PSI_TOP_OBJS) $(PCL_PXL_TOP_OBJS) $(PSI_TOP_OBJ) $(XPS_TOP_OBJ) $(PDF_TOP_OBJ) \
+ $(XOBJS) $(GLOBJDIR)/pdlromfs$(COMPILE_INITS).$(OBJ) \
+ $(GLOBJDIR)/pdlromfs$(COMPILE_INITS)c0.$(OBJ) \
+ $(GLOBJDIR)/pdlromfs$(COMPILE_INITS)c1.$(OBJ) \
+ $(GLOBJDIR)/pdlromfs$(COMPILE_INITS)c2.$(OBJ) \
+ $(GLOBJDIR)/pdlromfs$(COMPILE_INITS)c3.$(OBJ) \
+ $(PSINT_ARCHIVE_ALL) $(UNIXLINK_MAK)
$(ECHOGS_XE) -w $(gpdlldt_tr) -n - $(CCLD) $(PDL_LDFLAGS) $(XLIBDIRS) -o $(GPDL_XE)
- $(ECHOGS_XE) -a $(gpdlldt_tr) -n -s $(GPDL_PSI_TOP_OBJS) $(PCL_PXL_TOP_OBJS) $(PSI_TOP_OBJ) $(XPS_TOP_OBJ) $(XOBJS) -s
+ $(ECHOGS_XE) -a $(gpdlldt_tr) -n -s $(GPDL_PSI_TOP_OBJS) $(PCL_PXL_TOP_OBJS) $(PDF_TOP_OBJ) $(PSI_TOP_OBJ) $(XPS_TOP_OBJ) $(XOBJS) -s
cat $(gpdlld_tr) >> $(gpdlldt_tr)
$(ECHOGS_XE) -a $(gpdlldt_tr) -n -s - $(GLOBJDIR)/pdlromfs$(COMPILE_INITS).$(OBJ)
$(ECHOGS_XE) -a $(gpdlldt_tr) -n -s - $(GLOBJDIR)/pdlromfs$(COMPILE_INITS)c0.$(OBJ)
diff --git a/base/version.mak b/base/version.mak
index 45ee90f1..44eb4bae 100644
--- a/base/version.mak
+++ b/base/version.mak
@@ -1,4 +1,4 @@
-# Copyright (C) 2001-2021 Artifex Software, Inc.
+# Copyright (C) 2001-2022 Artifex Software, Inc.
# All Rights Reserved.
#
# This software is provided AS-IS with no warranty, either express or
@@ -14,10 +14,10 @@
# Major, minor and patch version numbers.
GS_VERSION_MAJOR=9
-GS_VERSION_MINOR=55
+GS_VERSION_MINOR=56
GS_VERSION_PATCH=0
# Revision date: year x 10000 + month x 100 + day.
-GS_REVISIONDATE=20210927
+GS_REVISIONDATE=20220329
# Derived values
GS_VERSION=$(GS_VERSION_MAJOR)$(GS_VERSION_MINOR)$(GS_VERSION_PATCH)
GS_DOT_VERSION=$(GS_VERSION_MAJOR).$(GS_VERSION_MINOR).$(GS_VERSION_PATCH)
diff --git a/base/winplat.mak b/base/winplat.mak
index b53a5ec7..0fc57698 100644
--- a/base/winplat.mak
+++ b/base/winplat.mak
@@ -67,7 +67,7 @@ $(GLD)winsync.dev : $(WINPLAT_MAK) $(ECHOGS_XE) $(winsync_) $(WINPLAT_MAK)
$(GLOBJ)gp_wsync.$(OBJ): $(GLSRC)gp_wsync.c $(AK)\
$(dos__h) $(malloc__h) $(stdio__h) $(string__h) $(windows__h)\
- $(gp_h) $(gsmemory_h) $(gstypes_h) $(WINPLAT_MAK)
+ $(gp_h) $(gsmemory_h) $(gstypes_h) $(globals_h) $(WINPLAT_MAK)
$(GLCCWIN) $(GLO_)gp_wsync.$(OBJ) $(C_) $(GLSRC)gp_wsync.c
# The XPS printer
diff --git a/base/write_t1.c b/base/write_t1.c
index 52902bea..50af7ea0 100644
--- a/base/write_t1.c
+++ b/base/write_t1.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 2001-2021 Artifex Software, Inc.
+/* Copyright (C) 2001-2022 Artifex Software, Inc.
All Rights Reserved.
This software is provided AS-IS with no warranty, either express or
@@ -659,7 +659,7 @@ write_main_dictionary(gs_fapi_font * a_fapi_font, WRF_output * a_output, int Wri
entries++;
- gs_sprintf(Buffer, "/FontInfo %d dict dup begin\n", entries);
+ gs_snprintf(Buffer, sizeof(Buffer), "/FontInfo %d dict dup begin\n", entries);
WRF_wstring(a_fapi_font->memory, a_output, Buffer);
code = a_fapi_font->get_word(a_fapi_font,
gs_fapi_font_feature_BlendAxisTypes_count,
@@ -704,7 +704,7 @@ write_main_dictionary(gs_fapi_font * a_fapi_font, WRF_output * a_output, int Wri
if (code < 0)
return code;
- gs_sprintf(Buffer, "%f ", x1);
+ gs_snprintf(Buffer, sizeof(Buffer), "%f ", x1);
WRF_wstring(a_fapi_font->memory, a_output, Buffer);
}
WRF_wstring(a_fapi_font->memory, a_output, "]");
@@ -734,14 +734,14 @@ write_main_dictionary(gs_fapi_font * a_fapi_font, WRF_output * a_output, int Wri
if (code < 0)
return code;
- gs_sprintf(Buffer, "%f ", x1);
+ gs_snprintf(Buffer, sizeof(Buffer), "%f ", x1);
WRF_wstring(a_fapi_font->memory, a_output, Buffer);
code = a_fapi_font->get_float(a_fapi_font,
gs_fapi_font_feature_BlendDesignPositionsArrayValue,
i * 64 + j * 64 + 1, &x1);
if (code < 0)
return code;
- gs_sprintf(Buffer, "%f ", x1);
+ gs_snprintf(Buffer, sizeof(Buffer), "%f ", x1);
WRF_wstring(a_fapi_font->memory, a_output, Buffer);
WRF_wstring(a_fapi_font->memory, a_output, "]");
}
@@ -791,7 +791,7 @@ write_main_dictionary(gs_fapi_font * a_fapi_font, WRF_output * a_output, int Wri
if (code < 0)
return code;
- gs_sprintf(Buffer, "%f ", x1);
+ gs_snprintf(Buffer, sizeof(Buffer), "%f ", x1);
WRF_wstring(a_fapi_font->memory, a_output, Buffer);
}
WRF_wstring(a_fapi_font->memory, a_output, "] def\n");
@@ -821,6 +821,7 @@ write_main_dictionary(gs_fapi_font * a_fapi_font, WRF_output * a_output, int Wri
WRF_wstring(a_fapi_font->memory, a_output, " } def\n");
WRF_wstring(a_fapi_font->memory, a_output, "/Private 14 dict def\n");
WRF_wstring(a_fapi_font->memory, a_output, "end def\n");
+#undef TEMP_BUF_LEN
}
WRF_wstring(a_fapi_font->memory, a_output, "currentdict end\ncurrentfile eexec\n");
diff --git a/base/write_t2.c b/base/write_t2.c
index e56423d4..f35cd5c9 100644
--- a/base/write_t2.c
+++ b/base/write_t2.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 2001-2021 Artifex Software, Inc.
+/* Copyright (C) 2001-2022 Artifex Software, Inc.
All Rights Reserved.
This software is provided AS-IS with no warranty, either express or
@@ -70,7 +70,7 @@ write_type2_float(gs_fapi_font * a_fapi_font, WRF_output * a_output, float a_flo
int high = true;
char c = 0;
- gs_sprintf(buffer, "%f", a_float);
+ gs_snprintf(buffer, sizeof(buffer), "%f", a_float);
WRF_wbyte(a_fapi_font->memory, a_output, 30);
for (;;) {
char n = 0;
diff --git a/configure b/configure
index cef01a2c..5b40d106 100755
--- a/configure
+++ b/configure
@@ -782,6 +782,7 @@ LCUPSINCLUDE
LCUPSBUILDTYPE
SHARELCUPSI
SHARELCUPS
+LIB_CUPS_DIR
CUPS_DIR
CUPSINSTALL
CUPSDATA
@@ -938,7 +939,6 @@ enable_contrib
with_arch_h
with_sanitizer
enable_sse2
-enable_threadsafe
with_large_color_index
enable_threading
with_tesseract
@@ -1630,8 +1630,6 @@ Optional Features:
--disable-contrib Do not include contributed drivers
--disable-sse2 Do not use sse2 instrinsics
- --enable-threadsafe enable a thread safe build - NOTE: this will exclude
- non-threadsafe devices
--disable-threading disable support for multithreaded rendering
--disable-fontconfig Do not use fontconfig to list system fonts
--disable-dbus Do not use dbus to communicate with external
@@ -3089,17 +3087,6 @@ ARCH_AUTOCONF_HEADER=arch-config/arch_autoconf.h
ARCH_AUTOCONF_HEADER_PROTO=arch/arch_autoconf.h.in
-NTS_DEVS='opvp oprp'
-NTS_DEVS="$NTS_DEVS uniprint"
-NTS_DEVS="$NTS_DEVS x11 x11alpha"
-NTS_DEVS="$NTS_DEVS pcl3 hpdjplus hpdjportable hpdj310 hpdj320 hpdj340 hpdj400 hpdj500 hpdj500c hpdj510 hpdj520 hpdj540 hpdj550c hpdj560c hpdj600 hpdj660c hpdj670c hpdj680c hpdj690c hpdj850c hpdj855c hpdj870c hpdj890c hpdj1120c"
-
-# We use this to store a list of devices we have excluded
-# and emit a warning on completion.
-NTS_EXCLUDES=""
-
-
-
@@ -4648,21 +4635,21 @@ CFLAGS_LARGEFILE=""
case $host in
*-linux*|*-gnu)
- if test $GCC = yes; then
+ if test x"$GCC" = x"yes"; then
CC_OPT_FLAGS_TO_TRY="-O2 -DNDEBUG"
CC_DBG_FLAGS_TO_TRY="-gdwarf-2 -g3 -O0"
CC_VISIBILITY_FLAGS_TO_TRY="-fvisibility=hidden"
fi
;;
*bsd*)
- if test $GCC = yes; then
+ if test x"$GCC" = x"yes"; then
CC_OPT_FLAGS_TO_TRY="-O2 -DNDEBUG"
CC_DBG_FLAGS_TO_TRY="-gdwarf-2 -g3 -O0"
CC_VISIBILITY_FLAGS_TO_TRY="-fvisibility=hidden"
fi
;;
*-darwin*)
- if test $GCC = yes; then
+ if test x"$GCC" = x"yes"; then
CC_OPT_FLAGS_TO_TRY="-O2 -DNDEBUG"
CC_DBG_FLAGS_TO_TRY="-gdwarf-2 -g3 -O0"
CC_VISIBILITY_FLAGS_TO_TRY="-fvisibility=hidden"
@@ -4670,7 +4657,7 @@ case $host in
SET_DT_SONAME=""
;;
*-mingw*|*-msys*)
- if test $GCC = yes; then
+ if test x"$GCC" = x"yes"; then
CC_OPT_FLAGS_TO_TRY="-O2 -DNDEBUG"
CC_DBG_FLAGS_TO_TRY="-gdwarf-2 -g3 -O0"
CC_VISIBILITY_FLAGS_TO_TRY="-fvisibility=hidden"
@@ -4684,7 +4671,7 @@ case $host in
if test $GCC = no; then
SET_DT_SONAME="-h "
fi
- if test $GCC = yes; then
+ if test x"$GCC" = x"yes"; then
CC_OPT_FLAGS_TO_TRY="-O2 -DNDEBUG"
CC_DBG_FLAGS_TO_TRY="-gdwarf-2 -g3 -O0"
CC_VISIBILITY_FLAGS_TO_TRY="-fvisibility=hidden"
@@ -4693,7 +4680,7 @@ case $host in
fi
;;
*-aix*)
- if test $GCC = yes; then
+ if test x"$GCC" = x"yes"; then
CC_OPT_FLAGS_TO_TRY="-O2 -DNDEBUG"
CC_DBG_FLAGS_TO_TRY="-gdwarf-2 -g3 -O0"
SET_DT_SONAME="so"
@@ -4705,7 +4692,7 @@ esac
-if test $GCC = yes; then
+if test x"$GCC" = x"yes"; then
cflags_to_try="-Wall -Wstrict-prototypes -Wundef \
-Wmissing-declarations -Wmissing-prototypes -Wwrite-strings \
-fno-strict-aliasing -Werror=declaration-after-statement \
@@ -5533,15 +5520,6 @@ fi
CFLAGS=$save_cflags
-# Check whether --enable-threadsafe was given.
-if test "${enable_threadsafe+set}" = set; then :
- enableval=$enable_threadsafe;
-fi
-
-if test x$enable_threadsafe = xyes ; then
- CFLAGS="-DGS_THREADSAFE"
-fi
-
ac_header_dirent=no
for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
@@ -8352,14 +8330,14 @@ $as_echo "yes" >&6; }
# Building on PPC with gcc, disable libpng's PPC specific
# optimizations: we don't include the source file for it
# and it only applies to reading, which we don't use.
- if test $GCC = yes; then
+ if test x"$GCC" = x"yes"; then
CFLAGS="$CFLAGS -DPNG_POWERPC_VSX_OPT=0"
fi
;;
*arm64*|*aarch64*)
# Building on arm64 with gcc, disable libpng's neon
# optimizations.
- if test $GCC = yes; then
+ if test x"$GCC" = x"yes"; then
CFLAGS="$CFLAGS -DPNG_ARM_NEON_OPT=0"
fi
;;
@@ -8998,6 +8976,7 @@ CUPSDATA=""
CUPSVERSION="0"
CUPSPDFTORASTER="0"
CUPS_DIR=""
+LIB_CUPS_DIR="src"
cups_hard_fail=0
@@ -9242,6 +9221,13 @@ done
CUPSDEV="$CUPSDEV pwgraster"
fi
+ # appleraster support arrived in cups 2.2.2, so with
+ # API version 2.2 we do not necessarily have it, but
+ # 2.3 has it for sure
+ if test "$CUPSAPIVERSION" ">" "2.2" ; then
+ CUPSDEV="$CUPSDEV appleraster urf"
+ fi
+
CUPSVERSION="`$CUPSCONFIG --version`"
LCUPSINCLUDE="include \$(GLSRCDIR)/lcups.mak"
@@ -9309,6 +9295,7 @@ done
LCUPSINCLUDE="include \$(GLSRCDIR)/lcups.mak"
LCUPSIINCLUDE="include \$(GLSRCDIR)/lcupsi.mak"
CUPSDEV="cups pwgraster"
+ LIB_CUPS_DIR=$CUPS_DIR
fi
fi
fi
@@ -9334,6 +9321,7 @@ fi
+
# Check whether --with-ijs was given.
if test "${with_ijs+set}" = set; then :
withval=$with_ijs;
@@ -9648,7 +9636,7 @@ done
JPX_SSE_CFLAGS=""
if test "x$HAVE_SSE2" = "x" ; then
- if test $GCC = yes; then
+ if test x"$GCC" = x"yes"; then
JPX_SSE_CFLAGS="-U__SSE__"
fi
fi
@@ -11159,7 +11147,7 @@ JPEG_DEVS='jpeg jpeggray jpegcmyk'
PCX_DEVS='pcxmono pcxgray pcx16 pcx256 pcx24b pcxcmyk'
PBM_DEVS='pbm pbmraw pgm pgmraw pgnm pgnmraw pnm pnmraw ppm ppmraw pkm pkmraw pksm pksmraw pam pamcmyk4 pamcmyk32 plan plang planm planc plank'
-PS_DEVS='psdf psdcmyk psdrgb psdcmyk16 psdrgb16 pdfwrite ps2write eps2write bbox txtwrite inkcov ink_cov psdcmykog fpng pdfimage8 pdfimage24 pdfimage32 PCLm'
+PS_DEVS='psdf psdcmyk psdrgb psdcmyk16 psdrgb16 psdcmyktags psdcmyktags16 pdfwrite ps2write eps2write bbox txtwrite inkcov ink_cov psdcmykog fpng pdfimage8 pdfimage24 pdfimage32 PCLm PCLm8'
# Handle --with-extract-dir=EXTRACT_DIR - build extract library and docxwrite
# device.
@@ -11348,51 +11336,6 @@ $as_echo "$as_me: WARNING: Unable to include opvp/oprp driver due to missing or
esac
done
-if test x$enable_threadsafe = xyes; then
-
- for ntsdev in $NTS_DEVS ; do
- NTS_EXCLUDES="$(echo \"$P_DEVS0{@:0}\" | grep -o $ntsdev) $NTS_EXCLUDES"
- P_DEVS0=`echo $P_DEVS0 | sed "s/\b$ntsdev\b//g"`
- done
-
- for ntsdev in $NTS_DEVS ; do
- NTS_EXCLUDES="$(echo \"$F_DEVS0{@:0}\" | grep -o $ntsdev) $NTS_EXCLUDES"
- F_DEVS0=`echo $F_DEVS0 | sed "s/\b$ntsdev\b//g"`
- done
-
- for ntsdev in $NTS_DEVS ; do
- NTS_EXCLUDES="$(echo \"$CUPS_DEVS0{@:0}\" | grep -o $ntsdev) $NTS_EXCLUDES"
- CUPS_DEVS0=`echo $CUPS_DEVS0 | sed "s/\b$ntsdev\b//g"`
- done
-
- for ntsdev in $NTS_DEVS ; do
- NTS_EXCLUDES="$(echo \"$XPS_DEVS0{@:0}\" | grep -o $ntsdev) $NTS_EXCLUDES"
- XPS_DEVS0=`echo $XPS_DEVS0 | sed "s/\b$ntsdev\b//g"`
- done
-
- for ntsdev in $NTS_DEVS ; do
- NTS_EXCLUDES="$(echo \"$IJS_DEVS0{@:0}\" | grep -o $ntsdev) $NTS_EXCLUDES"
- IJS_DEVS0=`echo $IJS_DEVS0 | sed "s/\b$ntsdev\b//g"`
- done
-
- for ntsdev in $NTS_DEVS ; do
- NTS_EXCLUDES="$(echo \"$PNG_DEVS0{@:0}\" | grep -o $ntsdev) $NTS_EXCLUDES"
- PNG_DEVS0=`echo $PNG_DEVS0 | sed "s/\b$ntsdev\b//g"`
- done
-
- for ntsdev in $NTS_DEVS ; do
- NTS_EXCLUDES="$(echo \"$X11_DEVS0{@:0}\" | grep -o $ntsdev) $NTS_EXCLUDES"
- X11_DEVS0=`echo $X11_DEVS0 | sed "s/\b$ntsdev\b//g"`
- done
-
- for ntsdev in $NTS_DEVS ; do
- NTS_EXCLUDES="$(echo \"$JBIG2_DEVS{@:0}\" | grep -o $ntsdev) $NTS_EXCLUDES"
- JBIG2_DEVS=`echo $JBIG2_DEVS | sed "s/\b$ntsdev\b//g"`
- done
-
- NTS_EXCLUDES=`echo "$NTS_EXCLUDES" | tr " " "\n" | sort | uniq | tr "\n" " "`
-fi # x$enable_threadsafe = xyes
-
noncontribmakefiles=`find $srcdir -name '*.mak' -print | grep -v '/contrib/'`
# No need to include opvp/oprp driver without iconv/libiconv.
@@ -11496,7 +11439,7 @@ if test "${enable_hidden_visibility+set}" = set; then :
fi
-if test x$hide_symbols = xyes -a $GCC = yes; then
+if test x$hide_symbols = xyes -a x"$GCC" = x"yes"; then
attr_default="__attribute__((visibility(\\\"default\\\")))"
attr_hidden="__attribute__((visibility(\\\"hidden\\\")))"
fi
@@ -11509,7 +11452,7 @@ case $host in
XPS_DYNAMIC_LDFLAGS="-shared -Wl,\$(LD_SET_DT_SONAME)\$(LDFLAGS_SO_PREFIX)\$(XPS_SONAME_MAJOR)"
PDL_DYNAMIC_LDFLAGS="-shared -Wl,\$(LD_SET_DT_SONAME)\$(LDFLAGS_SO_PREFIX)\$(GPDL_SONAME_MAJOR)"
PDF_DYNAMIC_LDFLAGS="-shared -Wl,\$(LD_SET_DT_SONAME)\$(LDFLAGS_SO_PREFIX)\$(PDF_SONAME_MAJOR)"
- if test $GCC = yes; then
+ if test x"$GCC" = x"yes"; then
# GCC high level flag
DYNAMIC_LIBS="-rdynamic"
else
@@ -11596,7 +11539,7 @@ case $host in
SO_LIB_EXT=".dylib"
;;
*-sun*|*-solaris*)
- if test $GCC = yes; then
+ if test x"$GCC" = x"yes"; then
DYNAMIC_CFLAGS="-fPIC $DYNAMIC_CFLAGS"
else
DYNAMIC_CFLAGS="-KPIC $DYNAMIC_CFLAGS"
@@ -11616,7 +11559,7 @@ case $host in
SO_LIB_EXT=".so"
;;
*-aix*)
- if test $GCC = yes; then
+ if test x"$GCC" = x"yes"; then
DYNAMIC_CFLAGS="-fPIC $DYNAMIC_CFLAGS"
GCFLAGS="-Wl,-brtl -D_LARGE_FILES $GCFLAGS"
GS_DYNAMIC_LDFLAGS="-shared -Wl,-brtl,-G -fPIC"
@@ -11638,7 +11581,7 @@ case $host in
esac
if test x$hide_symbols = xyes ; then
- if test $GCC = yes; then
+ if test x"$GCC" = x"yes"; then
DYNAMIC_CFLAGS="$DYNAMIC_CFLAGS -fvisibility=hidden"
fi
DYNAMIC_CFLAGS="$DYNAMIC_CFLAGS -DGSDLLEXPORT=\"$attr_default\""
@@ -12797,7 +12740,7 @@ fi
# NOTE: Strict aliasing can cause some parts
# of Ghostscript to malfunction.
# --------------------------------------------------
-if test $GCC = yes; then
+if test x"$GCC" = x"yes"; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to explicitly disable strict aliasing" >&5
$as_echo_n "checking whether to explicitly disable strict aliasing... " >&6; }
CFLAGS_backup="$CFLAGS"
@@ -13628,12 +13571,6 @@ $as_echo "$as_me: WARNING: Using \"native\" font scaler which is now deprecated
$as_echo "$as_me: WARNING: Support for this will be removed in a future release" >&2;}
fi
-if test "x$NTS_EXCLUDES" != "x" ; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Due to the --enable-threadsafe option, the following devices have been excluded because they are not threadsafe:" >&5
-$as_echo "$as_me: WARNING: Due to the --enable-threadsafe option, the following devices have been excluded because they are not threadsafe:" >&2;}
- echo "$NTS_EXCLUDES"
-fi
-
if test x"$OCR_DEVS_WARNING_LINE1" != x"" ; then
echo ""
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $OCR_DEVS_WARNING_LINE1" >&5
diff --git a/configure.ac b/configure.ac
index 36b51f57..e955b2f1 100644
--- a/configure.ac
+++ b/configure.ac
@@ -49,21 +49,6 @@ ARCH_AUTOCONF_HEADER=arch-config/arch_autoconf.h
ARCH_AUTOCONF_HEADER_PROTO=arch/arch_autoconf.h.in
dnl --------------------------------------------------
-dnl List of non-threadsafe devices
-dnl defined at the top of the file for ease of access
-dnl --------------------------------------------------
-
-NTS_DEVS='opvp oprp'
-NTS_DEVS="$NTS_DEVS uniprint"
-NTS_DEVS="$NTS_DEVS x11 x11alpha"
-NTS_DEVS="$NTS_DEVS pcl3 hpdjplus hpdjportable hpdj310 hpdj320 hpdj340 hpdj400 hpdj500 hpdj500c hpdj510 hpdj520 hpdj540 hpdj550c hpdj560c hpdj600 hpdj660c hpdj670c hpdj680c hpdj690c hpdj850c hpdj855c hpdj870c hpdj890c hpdj1120c"
-
-# We use this to store a list of devices we have excluded
-# and emit a warning on completion.
-NTS_EXCLUDES=""
-
-
-dnl --------------------------------------------------
dnl Local utilities
dnl --------------------------------------------------
@@ -285,21 +270,21 @@ CFLAGS_LARGEFILE=""
case $host in
*-linux*|*-gnu)
- if test $GCC = yes; then
+ if test x"$GCC" = x"yes"; then
CC_OPT_FLAGS_TO_TRY="-O2 -DNDEBUG"
CC_DBG_FLAGS_TO_TRY="-gdwarf-2 -g3 -O0"
CC_VISIBILITY_FLAGS_TO_TRY="-fvisibility=hidden"
fi
;;
*bsd*)
- if test $GCC = yes; then
+ if test x"$GCC" = x"yes"; then
CC_OPT_FLAGS_TO_TRY="-O2 -DNDEBUG"
CC_DBG_FLAGS_TO_TRY="-gdwarf-2 -g3 -O0"
CC_VISIBILITY_FLAGS_TO_TRY="-fvisibility=hidden"
fi
;;
*-darwin*)
- if test $GCC = yes; then
+ if test x"$GCC" = x"yes"; then
CC_OPT_FLAGS_TO_TRY="-O2 -DNDEBUG"
CC_DBG_FLAGS_TO_TRY="-gdwarf-2 -g3 -O0"
CC_VISIBILITY_FLAGS_TO_TRY="-fvisibility=hidden"
@@ -307,7 +292,7 @@ case $host in
SET_DT_SONAME=""
;;
*-mingw*|*-msys*)
- if test $GCC = yes; then
+ if test x"$GCC" = x"yes"; then
CC_OPT_FLAGS_TO_TRY="-O2 -DNDEBUG"
CC_DBG_FLAGS_TO_TRY="-gdwarf-2 -g3 -O0"
CC_VISIBILITY_FLAGS_TO_TRY="-fvisibility=hidden"
@@ -321,7 +306,7 @@ case $host in
if test $GCC = no; then
SET_DT_SONAME="-h "
fi
- if test $GCC = yes; then
+ if test x"$GCC" = x"yes"; then
CC_OPT_FLAGS_TO_TRY="-O2 -DNDEBUG"
CC_DBG_FLAGS_TO_TRY="-gdwarf-2 -g3 -O0"
CC_VISIBILITY_FLAGS_TO_TRY="-fvisibility=hidden"
@@ -330,7 +315,7 @@ case $host in
fi
;;
*-aix*)
- if test $GCC = yes; then
+ if test x"$GCC" = x"yes"; then
CC_OPT_FLAGS_TO_TRY="-O2 -DNDEBUG"
CC_DBG_FLAGS_TO_TRY="-gdwarf-2 -g3 -O0"
SET_DT_SONAME="so"
@@ -342,7 +327,7 @@ esac
AC_SUBST(SET_DT_SONAME)
-if test $GCC = yes; then
+if test x"$GCC" = x"yes"; then
cflags_to_try="-Wall -Wstrict-prototypes -Wundef \
-Wmissing-declarations -Wmissing-prototypes -Wwrite-strings \
-fno-strict-aliasing -Werror=declaration-after-statement \
@@ -563,15 +548,6 @@ CFLAGS=$save_cflags
dnl --------------------------------------------------
-dnl Enable thread safe build
-dnl --------------------------------------------------
-AC_ARG_ENABLE([threadsafe], AS_HELP_STRING([--enable-threadsafe],
- [enable a thread safe build - NOTE: this will exclude non-threadsafe devices]))
-if test x$enable_threadsafe = xyes ; then
- CFLAGS="-DGS_THREADSAFE"
-fi
-
-dnl --------------------------------------------------
dnl Check for headers
dnl --------------------------------------------------
@@ -1476,14 +1452,14 @@ else
# Building on PPC with gcc, disable libpng's PPC specific
# optimizations: we don't include the source file for it
# and it only applies to reading, which we don't use.
- if test $GCC = yes; then
+ if test x"$GCC" = x"yes"; then
CFLAGS="$CFLAGS -DPNG_POWERPC_VSX_OPT=0"
fi
;;
*arm64*|*aarch64*)
# Building on arm64 with gcc, disable libpng's neon
# optimizations.
- if test $GCC = yes; then
+ if test x"$GCC" = x"yes"; then
CFLAGS="$CFLAGS -DPNG_ARM_NEON_OPT=0"
fi
;;
@@ -1787,6 +1763,7 @@ CUPSDATA=""
CUPSVERSION="0"
CUPSPDFTORASTER="0"
CUPS_DIR=""
+LIB_CUPS_DIR="src"
cups_hard_fail=0
@@ -1866,6 +1843,13 @@ if ( test -f $srcdir/cups/gdevcups.c ); then
CUPSDEV="$CUPSDEV pwgraster"
fi
+ # appleraster support arrived in cups 2.2.2, so with
+ # API version 2.2 we do not necessarily have it, but
+ # 2.3 has it for sure
+ if test "$CUPSAPIVERSION" ">" "2.2" ; then
+ CUPSDEV="$CUPSDEV appleraster urf"
+ fi
+
CUPSVERSION="`$CUPSCONFIG --version`"
LCUPSINCLUDE="include \$(GLSRCDIR)/lcups.mak"
@@ -1892,6 +1876,7 @@ if ( test -f $srcdir/cups/gdevcups.c ); then
LCUPSINCLUDE="include \$(GLSRCDIR)/lcups.mak"
LCUPSIINCLUDE="include \$(GLSRCDIR)/lcupsi.mak"
CUPSDEV="cups pwgraster"
+ LIB_CUPS_DIR=$CUPS_DIR
fi
fi
fi
@@ -1906,6 +1891,7 @@ AC_SUBST(CUPSSERVERROOT)
AC_SUBST(CUPSDATA)
AC_SUBST(CUPSINSTALL)
AC_SUBST(CUPS_DIR)
+AC_SUBST(LIB_CUPS_DIR)
AC_SUBST(SHARELCUPS)
AC_SUBST(SHARELCUPSI)
@@ -2094,7 +2080,7 @@ AC_CHECK_FUNCS([fseeko], [CFLAGS_OPJ_HAVE_FSEEKO="-DOPJ_HAVE_FSEEKO=1"], [CFLAGS
JPX_SSE_CFLAGS=""
if test "x$HAVE_SSE2" = "x" ; then
- if test $GCC = yes; then
+ if test x"$GCC" = x"yes"; then
JPX_SSE_CFLAGS="-U__SSE__"
fi
fi
@@ -2632,7 +2618,7 @@ JPEG_DEVS='jpeg jpeggray jpegcmyk'
PCX_DEVS='pcxmono pcxgray pcx16 pcx256 pcx24b pcxcmyk'
PBM_DEVS='pbm pbmraw pgm pgmraw pgnm pgnmraw pnm pnmraw ppm ppmraw pkm pkmraw pksm pksmraw pam pamcmyk4 pamcmyk32 plan plang planm planc plank'
-PS_DEVS='psdf psdcmyk psdrgb psdcmyk16 psdrgb16 pdfwrite ps2write eps2write bbox txtwrite inkcov ink_cov psdcmykog fpng pdfimage8 pdfimage24 pdfimage32 PCLm'
+PS_DEVS='psdf psdcmyk psdrgb psdcmyk16 psdrgb16 psdcmyktags psdcmyktags16 pdfwrite ps2write eps2write bbox txtwrite inkcov ink_cov psdcmykog fpng pdfimage8 pdfimage24 pdfimage32 PCLm PCLm8'
# Handle --with-extract-dir=EXTRACT_DIR - build extract library and docxwrite
# device.
@@ -2805,51 +2791,6 @@ while test -n "$drivers"; do
esac
done
-if test x$enable_threadsafe = xyes; then
-
- for ntsdev in $NTS_DEVS ; do
- NTS_EXCLUDES="$(echo \"$P_DEVS0{[@]:0}\" | grep -o $ntsdev) $NTS_EXCLUDES"
- P_DEVS0=`echo $P_DEVS0 | sed "s/\b$ntsdev\b//g"`
- done
-
- for ntsdev in $NTS_DEVS ; do
- NTS_EXCLUDES="$(echo \"$F_DEVS0{[@]:0}\" | grep -o $ntsdev) $NTS_EXCLUDES"
- F_DEVS0=`echo $F_DEVS0 | sed "s/\b$ntsdev\b//g"`
- done
-
- for ntsdev in $NTS_DEVS ; do
- NTS_EXCLUDES="$(echo \"$CUPS_DEVS0{[@]:0}\" | grep -o $ntsdev) $NTS_EXCLUDES"
- CUPS_DEVS0=`echo $CUPS_DEVS0 | sed "s/\b$ntsdev\b//g"`
- done
-
- for ntsdev in $NTS_DEVS ; do
- NTS_EXCLUDES="$(echo \"$XPS_DEVS0{[@]:0}\" | grep -o $ntsdev) $NTS_EXCLUDES"
- XPS_DEVS0=`echo $XPS_DEVS0 | sed "s/\b$ntsdev\b//g"`
- done
-
- for ntsdev in $NTS_DEVS ; do
- NTS_EXCLUDES="$(echo \"$IJS_DEVS0{[@]:0}\" | grep -o $ntsdev) $NTS_EXCLUDES"
- IJS_DEVS0=`echo $IJS_DEVS0 | sed "s/\b$ntsdev\b//g"`
- done
-
- for ntsdev in $NTS_DEVS ; do
- NTS_EXCLUDES="$(echo \"$PNG_DEVS0{[@]:0}\" | grep -o $ntsdev) $NTS_EXCLUDES"
- PNG_DEVS0=`echo $PNG_DEVS0 | sed "s/\b$ntsdev\b//g"`
- done
-
- for ntsdev in $NTS_DEVS ; do
- NTS_EXCLUDES="$(echo \"$X11_DEVS0{[@]:0}\" | grep -o $ntsdev) $NTS_EXCLUDES"
- X11_DEVS0=`echo $X11_DEVS0 | sed "s/\b$ntsdev\b//g"`
- done
-
- for ntsdev in $NTS_DEVS ; do
- NTS_EXCLUDES="$(echo \"$JBIG2_DEVS{[@]:0}\" | grep -o $ntsdev) $NTS_EXCLUDES"
- JBIG2_DEVS=`echo $JBIG2_DEVS | sed "s/\b$ntsdev\b//g"`
- done
-
- NTS_EXCLUDES=`echo "$NTS_EXCLUDES" | tr " " "\n" | sort | uniq | tr "\n" " "`
-fi # x$enable_threadsafe = xyes
-
noncontribmakefiles=`find $srcdir -name '*.mak' -print | grep -v '/contrib/'`
# No need to include opvp/oprp driver without iconv/libiconv.
@@ -2952,7 +2893,7 @@ AC_ARG_ENABLE([hidden-visibility],
[hide all shared library symbols which are not part of its public API]),
[hide_symbols=yes])
-if test x$hide_symbols = xyes -a $GCC = yes; then
+if test x$hide_symbols = xyes -a x"$GCC" = x"yes"; then
attr_default="__attribute__((visibility(\\\"default\\\")))"
attr_hidden="__attribute__((visibility(\\\"hidden\\\")))"
fi
@@ -2965,7 +2906,7 @@ case $host in
XPS_DYNAMIC_LDFLAGS="-shared -Wl,\$(LD_SET_DT_SONAME)\$(LDFLAGS_SO_PREFIX)\$(XPS_SONAME_MAJOR)"
PDL_DYNAMIC_LDFLAGS="-shared -Wl,\$(LD_SET_DT_SONAME)\$(LDFLAGS_SO_PREFIX)\$(GPDL_SONAME_MAJOR)"
PDF_DYNAMIC_LDFLAGS="-shared -Wl,\$(LD_SET_DT_SONAME)\$(LDFLAGS_SO_PREFIX)\$(PDF_SONAME_MAJOR)"
- if test $GCC = yes; then
+ if test x"$GCC" = x"yes"; then
# GCC high level flag
DYNAMIC_LIBS="-rdynamic"
else
@@ -3052,7 +2993,7 @@ case $host in
SO_LIB_EXT=".dylib"
;;
*-sun*|*-solaris*)
- if test $GCC = yes; then
+ if test x"$GCC" = x"yes"; then
DYNAMIC_CFLAGS="-fPIC $DYNAMIC_CFLAGS"
else
DYNAMIC_CFLAGS="-KPIC $DYNAMIC_CFLAGS"
@@ -3072,7 +3013,7 @@ case $host in
SO_LIB_EXT=".so"
;;
*-aix*)
- if test $GCC = yes; then
+ if test x"$GCC" = x"yes"; then
DYNAMIC_CFLAGS="-fPIC $DYNAMIC_CFLAGS"
GCFLAGS="-Wl,-brtl -D_LARGE_FILES $GCFLAGS"
GS_DYNAMIC_LDFLAGS="-shared -Wl,-brtl,-G -fPIC"
@@ -3094,7 +3035,7 @@ case $host in
esac
if test x$hide_symbols = xyes ; then
- if test $GCC = yes; then
+ if test x"$GCC" = x"yes"; then
DYNAMIC_CFLAGS="$DYNAMIC_CFLAGS -fvisibility=hidden"
fi
DYNAMIC_CFLAGS="$DYNAMIC_CFLAGS -DGSDLLEXPORT=\"$attr_default\""
@@ -3559,7 +3500,7 @@ AC_SUBST(VERSIONED_PATH)
# NOTE: Strict aliasing can cause some parts
# of Ghostscript to malfunction.
# --------------------------------------------------
-if test $GCC = yes; then
+if test x"$GCC" = x"yes"; then
AC_MSG_CHECKING([whether to explicitly disable strict aliasing])
CFLAGS_backup="$CFLAGS"
CFLAGSAUX_backup="$CFLAGSAUX"
@@ -3762,11 +3703,6 @@ if test "x$AFS" = "x1"; then
AC_MSG_WARN([Support for this will be removed in a future release])
fi
-if test "x$NTS_EXCLUDES" != "x" ; then
- AC_MSG_WARN([Due to the --enable-threadsafe option, the following devices have been excluded because they are not threadsafe:])
- echo "$NTS_EXCLUDES"
-fi
-
if test x"$OCR_DEVS_WARNING_LINE1" != x"" ; then
echo ""
AC_MSG_WARN([$OCR_DEVS_WARNING_LINE1])
diff --git a/contrib/eplaser/gdevescv.c b/contrib/eplaser/gdevescv.c
index 4150e81f..d69f6419 100644
--- a/contrib/eplaser/gdevescv.c
+++ b/contrib/eplaser/gdevescv.c
@@ -473,7 +473,7 @@ escv_vector_dopath(gx_device_vector * vdev, const gx_path * ppath,
y = fixed2float(vs[1]) / scale.y;
/* ֥ѥ̿ p1 */
- (void)gs_sprintf(obuf, ESC_GS "0;%d;%dmvpG", (int)x, (int)y);
+ (void)gs_snprintf(obuf, sizeof(obuf), ESC_GS "0;%d;%dmvpG", (int)x, (int)y);
lputs(s, obuf);
if (first)
@@ -484,13 +484,13 @@ escv_vector_dopath(gx_device_vector * vdev, const gx_path * ppath,
cnt = 1;
for (pseg = cenum.pseg; pseg != 0 && pseg->type == s_line; cnt++, pseg = pseg->next);
- (void)gs_sprintf(obuf, ESC_GS "0;%d", cnt);
+ (void)gs_snprintf(obuf, sizeof(obuf), ESC_GS "0;%d", cnt);
lputs(s, obuf);
do {
- (void)gs_sprintf(obuf, ";%d;%d",
- (int)(fixed2float(vs[0]) / scale.x),
- (int)(fixed2float(vs[1]) / scale.y));
+ (void)gs_snprintf(obuf, sizeof(obuf), ";%d;%d",
+ (int)(fixed2float(vs[0]) / scale.x),
+ (int)(fixed2float(vs[1]) / scale.y));
lputs(s, obuf);
pe_op = gx_path_enum_next(&cenum, (gs_fixed_point *) vs);
@@ -505,11 +505,11 @@ escv_vector_dopath(gx_device_vector * vdev, const gx_path * ppath,
case gs_pe_curveto:
cnt = 1;
for (pseg = cenum.pseg; pseg != 0 && pseg->type == s_curve; cnt++, pseg = pseg->next);
- (void)gs_sprintf(obuf, ESC_GS "0;%d", cnt * 3);
+ (void)gs_snprintf(obuf, sizeof(obuf), ESC_GS "0;%d", cnt * 3);
lputs(s, obuf);
do {
- (void)gs_sprintf(obuf, ";%d;%d;%d;%d;%d;%d",
+ (void)gs_snprintf(obuf, sizeof(obuf), ";%d;%d;%d;%d;%d;%d",
(int)(fixed2float(vs[0]) / scale.x), (int)(fixed2float(vs[1]) / scale.y),
(int)(fixed2float(vs[2]) / scale.x), (int)(fixed2float(vs[3]) / scale.y),
(int)(fixed2float(vs[4]) / scale.x), (int)(fixed2float(vs[5]) / scale.y));
@@ -564,7 +564,7 @@ escv_vector_dorect(gx_device_vector * vdev, fixed x0, fixed y0, fixed x1,
scale = vdev->scale;
- (void)gs_sprintf(obuf, ESC_GS "0;%d;%d;%d;%d;0;0rrpG",
+ (void)gs_snprintf(obuf, sizeof(obuf), ESC_GS "0;%d;%d;%d;%d;0;0rrpG",
(int)(fixed2float(x0) / scale.x),
(int)(fixed2float(y0) / scale.y),
(int)(fixed2float(x1) / scale.x),
@@ -1057,7 +1057,7 @@ escv_beginpage(gx_device_vector * vdev)
lputs(s, " PU=15");
}
} else if (pdev->cassetFeed) {
- (void)gs_sprintf(ebuf, " PU=%d", pdev->cassetFeed);
+ (void)gs_snprintf(ebuf, sizeof(ebuf), " PU=%d", pdev->cassetFeed);
lputs(s, ebuf);
} else {
lputs(s, " PU=AU");
@@ -1087,14 +1087,14 @@ escv_beginpage(gx_device_vector * vdev)
/* lp8000c not have QT */
if (strcmp(pdev->dname, "lp8000c") == 0) {
- (void)gs_sprintf(ebuf, " QT=1 CO=%d", pdev->NumCopies);
+ (void)gs_snprintf(ebuf, sizeof(ebuf), " QT=1 CO=%d", pdev->NumCopies);
} else {
if (pdev->Collate) {
/* CO is 1, when set QT */
- (void)gs_sprintf(ebuf, " QT=%d CO=1", pdev->NumCopies);
+ (void)gs_snprintf(ebuf, sizeof(ebuf), " QT=%d CO=1", pdev->NumCopies);
} else {
/* QT is 1, when not specified QT */
- (void)gs_sprintf(ebuf, " QT=1 CO=%d", pdev->NumCopies);
+ (void)gs_snprintf(ebuf, sizeof(ebuf), " QT=1 CO=%d", pdev->NumCopies);
}
}
lputs(s, ebuf);
@@ -1103,7 +1103,7 @@ escv_beginpage(gx_device_vector * vdev)
}
if (pdev->toner_density) {
- (void)gs_sprintf(ebuf, " DL=%d", pdev->toner_density);
+ (void)gs_snprintf(ebuf, sizeof(ebuf), " DL=%d", pdev->toner_density);
lputs(s, ebuf);
}
@@ -1248,7 +1248,7 @@ escv_setlinewidth(gx_device_vector * vdev, double width)
/* ESC/Page ǤüܹϣĤΥޥɤˤʤäƤ뤿ݻƤ */
pdev -> lwidth = width;
- (void)gs_sprintf(obuf, ESC_GS "%d;%d;%dlwG",
+ (void)gs_snprintf(obuf, sizeof(obuf), ESC_GS "%d;%d;%dlwG",
(int)(pdev -> lwidth),
(int)(pdev -> cap),
(int)(pdev -> join));
@@ -1269,7 +1269,7 @@ escv_setlinecap(gx_device_vector * vdev, gs_line_cap cap)
if (pdev -> cap >= 3) return -1;
- (void)gs_sprintf(obuf, ESC_GS "%d;%d;%dlwG",
+ (void)gs_snprintf(obuf, sizeof(obuf), ESC_GS "%d;%d;%dlwG",
(int)(pdev -> lwidth),
(int)(pdev -> cap),
(int)(pdev -> join));
@@ -1300,7 +1300,7 @@ escv_setlinejoin(gx_device_vector * vdev, gs_line_join join)
return -1;
}
- (void)gs_sprintf(obuf, ESC_GS "%d;%d;%dlwG",
+ (void)gs_snprintf(obuf, sizeof(obuf), ESC_GS "%d;%d;%dlwG",
(int)(pdev -> lwidth),
(int)(pdev -> cap),
(int)(pdev -> join));
@@ -1322,14 +1322,14 @@ escv_setmiterlimit(gx_device_vector * vdev, double limit)
if (pdev -> join != 3) {
/* ŪܹԤ */
pdev -> join = 3;
- (void)gs_sprintf(obuf, ESC_GS "%d;%d;%dlwG",
+ (void)gs_snprintf(obuf, sizeof(obuf), ESC_GS "%d;%d;%dlwG",
(int)(pdev -> lwidth),
(int)(pdev -> cap),
(int)(pdev -> join));
lputs(s, obuf);
}
- (void)gs_sprintf(obuf, ESC_GS "1;%dmlG", (int)limit);
+ (void)gs_snprintf(obuf, sizeof(obuf), ESC_GS "1;%dmlG", (int)limit);
lputs(s, obuf);
return 0;
@@ -1357,7 +1357,7 @@ escv_setfillcolor(gx_device_vector * vdev,
if( 0 == pdev->colormode ) { /* ESC/Page (Monochrome) */
- (void)gs_sprintf(obuf, /*ESC_GS "1owE"*/ ESC_GS "0;0;100spE" ESC_GS "1;0;%ldccE" ,color);
+ (void)gs_snprintf(obuf, sizeof(obuf), /*ESC_GS "1owE"*/ ESC_GS "0;0;100spE" ESC_GS "1;0;%ldccE" ,color);
lputs(s, obuf);
if (vdev->x_pixels_per_inch == 1200) {
@@ -1371,7 +1371,7 @@ escv_setfillcolor(gx_device_vector * vdev,
} else { /* ESC/Page-Color */
/* ѥϣλ꡿åɥѥ */
- (void)gs_sprintf(obuf, ESC_GS "1;2;3;%d;%d;%dfpE",
+ (void)gs_snprintf(obuf, sizeof(obuf), ESC_GS "1;2;3;%d;%d;%dfpE",
(unsigned char)(color >> 16 & 0xff),
(unsigned char)(color >> 8 & 0xff),
(unsigned char)(color & 0xff));
@@ -1399,7 +1399,7 @@ escv_setstrokecolor(gx_device_vector * vdev,
pdev->current_color = color;
- (void)gs_sprintf(obuf, /*ESC_GS "1owE"*/ ESC_GS "0;0;100spE" ESC_GS "1;1;%ldccE" , color);
+ (void)gs_snprintf(obuf, sizeof(obuf), /*ESC_GS "1owE"*/ ESC_GS "0;0;100spE" ESC_GS "1;1;%ldccE" , color);
lputs(s, obuf);
if (vdev->x_pixels_per_inch == 1200) {
@@ -1416,7 +1416,7 @@ escv_setstrokecolor(gx_device_vector * vdev,
pdev->current_color = color;
/* ѥϣο꡿åɥѥ */
- (void)gs_sprintf(obuf, ESC_GS "1;2;3;%d;%d;%dfpE" ESC_GS "2;2;1;0;0cpE",
+ (void)gs_snprintf(obuf, sizeof(obuf), ESC_GS "1;2;3;%d;%d;%dfpE" ESC_GS "2;2;1;0;0cpE",
(unsigned char)(color >> 16 & 0xff),
(unsigned char)(color >> 8 & 0xff),
(unsigned char)(color & 0xff));
@@ -1447,7 +1447,7 @@ escv_setdash(gx_device_vector * vdev, const float *pattern, uint count, double o
if (count) {
if (count == 1) {
- (void)gs_sprintf(obuf, ESC_GS "1;%d;%ddlG", (int) pattern[0], (int) pattern[0]);
+ (void)gs_snprintf(obuf, sizeof(obuf), ESC_GS "1;%d;%ddlG", (int) pattern[0], (int) pattern[0]);
lputs(s, obuf);
} else {
/* pattern ˣäԲĤȤֵ */
@@ -1457,7 +1457,7 @@ escv_setdash(gx_device_vector * vdev, const float *pattern, uint count, double o
lputs(s, ESC_GS "1");
for (i = 0; i < count; ++i) {
- (void)gs_sprintf(obuf, ";%d", (int) pattern[i]);
+ (void)gs_snprintf(obuf, sizeof(obuf), ";%d", (int) pattern[i]);
lputs(s, obuf);
}
lputs(s, "dlG");
@@ -1507,7 +1507,7 @@ escv_moveto(gx_device_vector * vdev,
char obuf[64];
/* ֥ѥ̿ */
- (void)gs_sprintf(obuf, ESC_GS "0;%d;%dmvpG", (int)x1, (int)y1);
+ (void)gs_snprintf(obuf, sizeof(obuf), ESC_GS "0;%d;%dmvpG", (int)x1, (int)y1);
lputs(s, obuf);
return 0;
@@ -1521,7 +1521,7 @@ escv_lineto(gx_device_vector * vdev,
gx_device_escv *pdev = (gx_device_escv *) vdev;
char obuf[64];
- (void)gs_sprintf(obuf, ESC_GS "0;1;%d;%dlnpG", (int)x1, (int)y1);
+ (void)gs_snprintf(obuf, sizeof(obuf), ESC_GS "0;1;%d;%dlnpG", (int)x1, (int)y1);
lputs(s, obuf);
pdev->ispath = 1;
@@ -1538,7 +1538,7 @@ escv_curveto(gx_device_vector * vdev, double x0, double y0,
char obuf[128];
/* ٥ */
- (void)gs_sprintf(obuf, ESC_GS "0;3;%d;%d;%d;%d;%d;%dbzpG",
+ (void)gs_snprintf(obuf, sizeof(obuf), ESC_GS "0;3;%d;%d;%d;%d;%d;%dbzpG",
(int)x1, (int)y1, (int)x2, (int)y2, (int)x3, (int)y3);
lputs(s, obuf);
pdev->ispath = 1;
@@ -2071,7 +2071,7 @@ escv_copy_mono(gx_device * dev, const byte * data,
if( 0 == pdev->colormode ) { /* ESC/Page (Monochrome) */
/* lputs(s, ESC_GS "1owE");*/
- (void)gs_sprintf(obuf, ESC_GS "1;1;%ldccE", c_color);
+ (void)gs_snprintf(obuf, sizeof(obuf), ESC_GS "1;1;%ldccE", c_color);
lputs(s, obuf);
if (vdev->x_pixels_per_inch == 1200) {
@@ -2156,7 +2156,7 @@ escv_copy_mono(gx_device * dev, const byte * data,
} else { /* ESC/Page-Color */
/* ѥϣλ꡿åɥѥ */
- (void)gs_sprintf(obuf, ESC_GS "1;2;3;%d;%d;%dfpE",
+ (void)gs_snprintf(obuf, sizeof(obuf), ESC_GS "1;2;3;%d;%d;%dfpE",
(unsigned char)(c_color >> 16 & 0xff),
(unsigned char)(c_color >> 8 & 0xff),
(unsigned char)(c_color & 0xff));
@@ -2276,7 +2276,7 @@ escv_fill_mask(gx_device * dev,
if (!gx_dc_is_pure(pdcolor)) return_error(gs_error_rangecheck);
pdev->current_color = color;
- (void)gs_sprintf(obuf, ESC_GS "0;0;100spE" ESC_GS "1;1;%ldccE" ,color);
+ (void)gs_snprintf(obuf, sizeof(obuf), ESC_GS "0;0;100spE" ESC_GS "1;1;%ldccE" ,color);
lputs(s, obuf);
if (vdev->x_pixels_per_inch == 1200) {
@@ -2316,7 +2316,7 @@ escv_fill_mask(gx_device * dev,
memcpy(buf + i * width_bytes, data + (data_x >> 3) + i * raster, width_bytes);
}
- (void)gs_sprintf(obuf, ESC_GS "%d;%d;%d;%d;0db{F", num_bytes, (int)(id & VCACHE), w, h);
+ (void)gs_snprintf(obuf, sizeof(obuf), ESC_GS "%d;%d;%d;%d;0db{F", num_bytes, (int)(id & VCACHE), w, h);
lputs(s, obuf);
put_bytes(s, buf, num_bytes);
@@ -2324,9 +2324,9 @@ escv_fill_mask(gx_device * dev,
pdev -> id_cache[id & VCACHE] = id;
}
- (void)gs_sprintf(obuf, ESC_GS "%dX" ESC_GS "%dY", x, y);
+ (void)gs_snprintf(obuf, sizeof(obuf), ESC_GS "%dX" ESC_GS "%dY", x, y);
lputs(s, obuf);
- (void)gs_sprintf(obuf, ESC_GS "%lddbF", id & VCACHE);
+ (void)gs_snprintf(obuf, sizeof(obuf), ESC_GS "%lddbF", id & VCACHE);
lputs(s, obuf);
return 0;
@@ -2511,7 +2511,7 @@ fallback:
gx_color_index color = gx_dc_pure_color(pdcolor);
/* lputs(s, ESC_GS "1owE");*/
- (void)gs_sprintf(obuf, ESC_GS "1;1;%ldccE", color);
+ (void)gs_snprintf(obuf, sizeof(obuf), ESC_GS "1;1;%ldccE", color);
lputs(s, obuf);
if (vdev->x_pixels_per_inch == 1200) {
@@ -2803,7 +2803,7 @@ static void escv_write_begin(gx_device *dev, int bits, int x, int y, int sw, int
if( 0 == pdev->colormode ) { /* ESC/Page (Monochrome) */
- (void)gs_sprintf(obuf, ESC_GS "%dX" ESC_GS "%dY", x, y);
+ (void)gs_snprintf(obuf, sizeof(obuf), ESC_GS "%dX" ESC_GS "%dY", x, y);
lputs(s, obuf);
comp = 10;
@@ -2811,34 +2811,34 @@ static void escv_write_begin(gx_device *dev, int bits, int x, int y, int sw, int
if (bits == 1) {
if (strcmp(pdev->dname, "lp1800") == 0 ||
strcmp(pdev->dname, "lp9600") == 0) {
- (void)gs_sprintf(obuf, ESC_GS "0bcI");
+ (void)gs_snprintf(obuf, sizeof(obuf), ESC_GS "0bcI");
}else{
- (void)gs_sprintf(obuf, ESC_GS "5;%d;%d;%d;%d;%dsrI", sw, sh, dw, dh, roll);
+ (void)gs_snprintf(obuf, sizeof(obuf), ESC_GS "5;%d;%d;%d;%d;%dsrI", sw, sh, dw, dh, roll);
}
} else if (bits == 4) {
if (pdev -> c4map) {
pdev -> c4map = FALSE;
}
- (void)gs_sprintf(obuf, ESC_GS "1;1;1;0;%d;%d;%d;%d;%d;%dscrI", comp, sw, sh, dw, dh, roll);
+ (void)gs_snprintf(obuf, sizeof(obuf), ESC_GS "1;1;1;0;%d;%d;%d;%d;%d;%dscrI", comp, sw, sh, dw, dh, roll);
} else if (bits == 8) {
if (pdev -> c8map) {
pdev -> c8map = FALSE;
}
- (void)gs_sprintf(obuf, ESC_GS "1;1;1;0;%d;%d;%d;%d;%d;%dscrI", comp, sw, sh, dw, dh, roll);
+ (void)gs_snprintf(obuf, sizeof(obuf), ESC_GS "1;1;1;0;%d;%d;%d;%d;%d;%dscrI", comp, sw, sh, dw, dh, roll);
} else {
/* 24 bit */
- (void)gs_sprintf(obuf, ESC_GS "1;1;1;0;%d;%d;%d;%d;%d;%dscrI", comp, sw, sh, dw, dh, roll);
+ (void)gs_snprintf(obuf, sizeof(obuf), ESC_GS "1;1;1;0;%d;%d;%d;%d;%d;%dscrI", comp, sw, sh, dw, dh, roll);
}
} else { /* ESC/Page-Color */
- (void)gs_sprintf(obuf, ESC_GS "%dX" ESC_GS "%dY", x, y);
+ (void)gs_snprintf(obuf, sizeof(obuf), ESC_GS "%dX" ESC_GS "%dY", x, y);
lputs(s, obuf);
comp = 0;
if (bits == 1) {
- (void)gs_sprintf(obuf, ESC_GS "2;201;1;%d;%d;%d;%d;%d;%dscrI", comp, sw, sh, dw, dh, roll);
+ (void)gs_snprintf(obuf, sizeof(obuf), ESC_GS "2;201;1;%d;%d;%d;%d;%d;%dscrI", comp, sw, sh, dw, dh, roll);
} else if (bits == 4) {
if (pdev -> c4map) {
/* 顼ޥåϿ */
@@ -2854,7 +2854,7 @@ static void escv_write_begin(gx_device *dev, int bits, int x, int y, int sw, int
gs_free_object(vdev->memory, tmp, "escv_write_begin(tmp4)");
pdev -> c4map = FALSE;
}
- (void)gs_sprintf(obuf, ESC_GS "2;203;2;%d;%d;%d;%d;%d;%dscrI", comp, sw, sh, dw, dh, roll);
+ (void)gs_snprintf(obuf, sizeof(obuf), ESC_GS "2;203;2;%d;%d;%d;%d;%d;%dscrI", comp, sw, sh, dw, dh, roll);
} else if (bits == 8) {
if (pdev -> c8map) {
/* 顼ޥåϿ */
@@ -2870,10 +2870,10 @@ static void escv_write_begin(gx_device *dev, int bits, int x, int y, int sw, int
gs_free_object(vdev->memory, tmp, "escv_write_begin(tmp)");
pdev -> c8map = FALSE;
}
- (void)gs_sprintf(obuf, ESC_GS "2;204;4;%d;%d;%d;%d;%d;%dscrI", comp, sw, sh, dw, dh, roll);
+ (void)gs_snprintf(obuf, sizeof(obuf), ESC_GS "2;204;4;%d;%d;%d;%d;%d;%dscrI", comp, sw, sh, dw, dh, roll);
} else {
/* 24 bit */
- (void)gs_sprintf(obuf, ESC_GS "2;102;0;%d;%d;%d;%d;%d;%dscrI", comp, sw, sh, dw, dh, roll);
+ (void)gs_snprintf(obuf, sizeof(obuf), ESC_GS "2;102;0;%d;%d;%d;%d;%d;%dscrI", comp, sw, sh, dw, dh, roll);
}
} /* ESC/Page-Color */
@@ -2940,12 +2940,12 @@ static void escv_write_data(gx_device *dev, int bits, byte *buf, int bsize, int
if(bits == 1){
if (strcmp(pdev->dname, "lp1800") == 0 || \
strcmp(pdev->dname, "lp9600") == 0) {
- (void)gs_sprintf(obuf, ESC_GS "%d;1;%d;%d;0db{I", bsize, w, ras);
+ (void)gs_snprintf(obuf, sizeof(obuf), ESC_GS "%d;1;%d;%d;0db{I", bsize, w, ras);
}else{
- (void)gs_sprintf(obuf, ESC_GS "%d;%du{I", bsize, ras);
+ (void)gs_snprintf(obuf, sizeof(obuf), ESC_GS "%d;%du{I", bsize, ras);
}
}else{
- (void)gs_sprintf(obuf, ESC_GS "%d;%dcu{I", bsize, ras);
+ (void)gs_snprintf(obuf, sizeof(obuf), ESC_GS "%d;%dcu{I", bsize, ras);
}
lputs(s, obuf);
@@ -2972,7 +2972,7 @@ static void escv_write_data(gx_device *dev, int bits, byte *buf, int bsize, int
buf = tmps;
}
- (void)gs_sprintf(obuf, ESC_GS "%d;%dcu{I", bsize, ras);
+ (void)gs_snprintf(obuf, sizeof(obuf), ESC_GS "%d;%dcu{I", bsize, ras);
lputs(s, obuf);
put_bytes(s, buf, bsize);
diff --git a/contrib/gdevcd8.c b/contrib/gdevcd8.c
index e6e9a942..bb1d2644 100644
--- a/contrib/gdevcd8.c
+++ b/contrib/gdevcd8.c
@@ -2461,7 +2461,7 @@ do_gcr(int bytecount, byte * inbyte, const byte kvalues[256],
if ((*cyan > 0) && (*magenta > 0) && (*yellow > 0))
{
char output[255];
- gs_sprintf(output, "%3d %3d %3d %3d - ", *cyan, *magenta, *yellow, *black);
+ gs_snprintf(output, sizeof(output), "%3d %3d %3d %3d - ", *cyan, *magenta, *yellow, *black);
debug_print_string(output, strlen(output));
}
#endif /* 0 */
@@ -2509,7 +2509,7 @@ do_gcr(int bytecount, byte * inbyte, const byte kvalues[256],
if (ucr > 0)
{
char output[255];
- gs_sprintf(output, "%3d %3d %3d %3d - %5d\n", *cyan, *magenta, *yellow, *black, ucr);
+ gs_snprintf(output, sizeof(output), "%3d %3d %3d %3d - %5d\n", *cyan, *magenta, *yellow, *black, ucr);
debug_print_string(output, strlen(output));
}
#endif /* 0 */
diff --git a/contrib/gdevdj9.c b/contrib/gdevdj9.c
index 29e66824..86f9fea2 100644
--- a/contrib/gdevdj9.c
+++ b/contrib/gdevdj9.c
@@ -2663,7 +2663,7 @@ cdj970_write_header(gx_device * pdev, gp_file * prn_stream)
memset(startbuffer, 0, 1260);
- gs_sprintf(&(startbuffer[600]),
+ gs_snprintf(&(startbuffer[600]), sizeof(startbuffer)- 600,
"\033E\033%%-12345X@PJL JOB NAME = \"GHOST BY RENE HARSCH\"\n@PJL ENTER LANGUAGE=PCL3GUI\n");
gp_fwrite(startbuffer, sizeof(char), 678, prn_stream);
diff --git a/contrib/gdevhl12.c b/contrib/gdevhl12.c
index 860d365a..566d29f4 100644
--- a/contrib/gdevhl12.c
+++ b/contrib/gdevhl12.c
@@ -670,7 +670,7 @@ hl1250_print_page_copies(gx_device_printer * pdev, gp_file * prn_stream,
(-120, 0) compared to the one in the ljet4 driver (-180, 36)
(X, Y coordinates here are specified in 1/720-inch units). */
- gs_sprintf(page_init, "\033&l-120U\033*r0F\033&u%dD%s", y_dpi, tray_pcl);
+ gs_snprintf(page_init, sizeof(page_init), "\033&l-120U\033*r0F\033&u%dD%s", y_dpi, tray_pcl);
return dljet_mono_print_page_copies(pdev, prn_stream, num_copies,
y_dpi, PCL_LJ4_FEATURES,
page_init, page_init, false);
diff --git a/contrib/gdevxes.c b/contrib/gdevxes.c
index 0f2db969..6f2a9d5f 100644
--- a/contrib/gdevxes.c
+++ b/contrib/gdevxes.c
@@ -180,7 +180,7 @@ sixel_print_page(gx_device_printer *pdev, gp_file *prn_stream, const char *init)
if ( tmp[l] == last ) {
count++;
if (count==32767) {
- run[gs_sprintf(run, "%d", count)]='\0';
+ run[gs_snprintf(run, sizeof(run), "%d", count)]='\0';
for (t=run; *t; t++) gp_fputc( *t, prn_stream );
gp_fputc( last, prn_stream );
last = '\0';
@@ -193,7 +193,7 @@ sixel_print_page(gx_device_printer *pdev, gp_file *prn_stream, const char *init)
case 0: break;
case 1: gp_fputc( last, prn_stream );
break;
- default:run[gs_sprintf(run, "%d", count)]='\0';
+ default:run[gs_snprintf(run, sizeof(run), "%d", count)]='\0';
for (t=run; *t; t++) gp_fputc( *t, prn_stream );
gp_fputc( last, prn_stream );
break;
@@ -210,7 +210,7 @@ sixel_print_page(gx_device_printer *pdev, gp_file *prn_stream, const char *init)
case 0: break;
case 1: gp_fputc( last, prn_stream );
break;
- default:run[gs_sprintf(run, "%d", count)]='\0';
+ default:run[gs_snprintf(run, sizeof(run), "%d", count)]='\0';
for (t=run; *t; t++) gp_fputc( *t, prn_stream );
gp_fputc( last, prn_stream );
break;
diff --git a/contrib/japanese/gdevfmlbp.c b/contrib/japanese/gdevfmlbp.c
index 2de50e40..7c88126d 100644
--- a/contrib/japanese/gdevfmlbp.c
+++ b/contrib/japanese/gdevfmlbp.c
@@ -108,7 +108,7 @@ static char can_inits[] ={ ESC, 'c', /* Software reset */
/* Get the paper size code, based on width and height. */
/* modified from gdevpcl.c, gdevmjc.c and gdevnpdl.c. */
static char *
-gdev_fmlbp_paper_size(gx_device_printer *dev, char *paper)
+gdev_fmlbp_paper_size(gx_device_printer *dev, char paper[16])
{
int landscape = 0; /* portrait */
float height_inches = dev->height / dev->y_pixels_per_inch;
@@ -120,7 +120,7 @@ gdev_fmlbp_paper_size(gx_device_printer *dev, char *paper)
height_inches = t;
landscape = 1;
}
- gs_sprintf(paper, "%s;%d",
+ gs_snprintf(paper, 16, "%s;%d",
(height_inches >= 15.9 ? PAPER_SIZE_A3 :
height_inches >= 11.8 ?
(width_inches >= 9.2 ? PAPER_SIZE_B4 : PAPER_SIZE_LEGAL) :
@@ -144,7 +144,7 @@ static void goto_xy(gp_file *prn_stream,int x,int y)
gp_fputc(CEX,prn_stream);
gp_fputc('"',prn_stream);
- gs_sprintf((char *)buff,"%d",x);
+ gs_snprintf((char *)buff,sizeof(buff),"%d",x);
while (*p)
{
if (!*(p+1)) gp_fputc((*p)+0x30,prn_stream);
@@ -154,7 +154,7 @@ static void goto_xy(gp_file *prn_stream,int x,int y)
}
p=buff;
- gs_sprintf((char *)buff,"%d",y);
+ gs_snprintf((char *)buff,sizeof(buff),"%d",y);
while (*p)
{
if (!*(p+1)) gp_fputc((*p)+0x40,prn_stream);
diff --git a/contrib/japanese/gdevfmpr.c b/contrib/japanese/gdevfmpr.c
index 3e4aaefd..1912b026 100644
--- a/contrib/japanese/gdevfmpr.c
+++ b/contrib/japanese/gdevfmpr.c
@@ -184,13 +184,13 @@ fmpr_print_page(gx_device_printer *pdev, gp_file *prn_stream)
}
out_beg -= (out_beg - out) % bytes_per_column;
- gs_sprintf(prn_buf, "\033[%da",
+ gs_snprintf(prn_buf, sizeof(prn_buf), "\033[%da",
(out_beg - out) / bytes_per_column);
prn_puts(pdev, prn_buf);
/* Dot graphics */
size = out_end - out_beg + 1;
- gs_sprintf(prn_buf, "\033Q%d W", size / bytes_per_column);
+ gs_snprintf(prn_buf, sizeof(prn_buf), "\033Q%d W", size / bytes_per_column);
prn_puts(pdev, prn_buf);
prn_write(pdev, (const char *)out_beg, size);
diff --git a/contrib/japanese/gdevj100.c b/contrib/japanese/gdevj100.c
index 8305e1c4..22e2c2d7 100644
--- a/contrib/japanese/gdevj100.c
+++ b/contrib/japanese/gdevj100.c
@@ -128,12 +128,12 @@ jj100_print_page(gx_device_printer *pdev, gp_file *prn_stream)
/* Vertical tab to the appropriate position. */
while(skip > 15) {
- gs_sprintf(prn_buf, "\037%c", 16 + 15);
+ gs_snprintf(prn_buf, sizeof(prn_buf), "\037%c", 16 + 15);
gp_fputs(prn_buf, pdev->file);
skip -= 15;
}
if(skip > 0) {
- gs_sprintf(prn_buf, "\037%c", 16 + skip);
+ gs_snprintf(prn_buf, sizeof(prn_buf), "\037%c", 16 + skip);
gp_fputs(prn_buf, pdev->file);
}
@@ -170,13 +170,13 @@ jj100_print_page(gx_device_printer *pdev, gp_file *prn_stream)
out_beg -= (out_beg - out) % (bytes_per_column * 2);
/* Dot addressing */
- gs_sprintf(prn_buf, "\033F%04d",
+ gs_snprintf(prn_buf, sizeof(prn_buf), "\033F%04d",
(out_beg - out) / bytes_per_column / 2);
gp_fputs(prn_buf, pdev->file);
/* Dot graphics */
size = out_end - out_beg + 1;
- gs_sprintf(prn_buf, "\034bP,48,%04d.", size / bytes_per_column);
+ gs_snprintf(prn_buf, sizeof(prn_buf), "\034bP,48,%04d.", size / bytes_per_column);
gp_fputs(prn_buf, pdev->file);
gp_fwrite(out_beg, 1, size, pdev->file);
diff --git a/contrib/japanese/gdevlbp3.c b/contrib/japanese/gdevlbp3.c
index 8042d4db..e4664e05 100644
--- a/contrib/japanese/gdevlbp3.c
+++ b/contrib/japanese/gdevlbp3.c
@@ -81,7 +81,7 @@ lbp310PrintPage(gx_device_printer *pDev, gp_file *fp)
DataSize = CompressImage(pDev, &Box, fp, "\x1b[1;%d;%d;11;%d;.r");
/* ----==== Set size ====---- */
- gs_sprintf(Buf, "0%ld", DataSize);
+ gs_snprintf(Buf, sizeof(Buf), "0%ld", DataSize);
i = (DataSize+strlen(Buf)+1)&1;
/* ----==== escape to LIPS ====---- */
gp_fprintf(fp, "\x80%s\x80\x80\x80\x80\x0c",Buf+i);
@@ -110,7 +110,7 @@ lbp320PrintPage(gx_device_printer *pDev, gp_file *fp)
DataSize = CompressImage(pDev, &Box, fp, "\x1b[1;%d;%d;11;%d;.&r");
/* ----==== Set size ====---- */
- gs_sprintf(Buf, "000%ld", DataSize);
+ gs_snprintf(Buf, sizeof(Buf), "000%ld", DataSize);
i = (DataSize+strlen(Buf)+1)&3;
/* ----==== escape to LIPS ====---- */
gp_fprintf(fp, "\x80%s\x80\x80\x80\x80\x0c",Buf+i);
diff --git a/contrib/japanese/gdevnpdl.c b/contrib/japanese/gdevnpdl.c
index 9c6d6bba..60065bac 100644
--- a/contrib/japanese/gdevnpdl.c
+++ b/contrib/japanese/gdevnpdl.c
@@ -600,31 +600,32 @@ npdl_print_page_copies(gx_device_printer * pdev, gp_file * prn_stream, int num_c
/* Check paper size */
switch (npdl_get_paper_size((gx_device *) pdev)) {
case PAPER_SIZE_POSTCARD:
- gs_sprintf(paper_command, "PC");
+ gs_snprintf(paper_command, sizeof(paper_command), "PC");
break;
case PAPER_SIZE_A5:
- gs_sprintf(paper_command, "A5");
+ gs_snprintf(paper_command, sizeof(paper_command), "A5");
break;
+ default:
case PAPER_SIZE_A4:
- gs_sprintf(paper_command, "A4");
+ gs_snprintf(paper_command, sizeof(paper_command), "A4");
break;
case PAPER_SIZE_A3:
- gs_sprintf(paper_command, "A3");
+ gs_snprintf(paper_command, sizeof(paper_command), "A3");
break;
case PAPER_SIZE_B5:
- gs_sprintf(paper_command, "B5");
+ gs_snprintf(paper_command, sizeof(paper_command), "B5");
break;
case PAPER_SIZE_B4:
- gs_sprintf(paper_command, "B4");
+ gs_snprintf(paper_command, sizeof(paper_command), "B4");
break;
case PAPER_SIZE_LETTER:
- gs_sprintf(paper_command, "LT");
+ gs_snprintf(paper_command, sizeof(paper_command), "LT");
break;
case PAPER_SIZE_ENV4:
- gs_sprintf(paper_command, "ENV4");
+ gs_snprintf(paper_command, sizeof(paper_command), "ENV4");
break;
case PAPER_SIZE_BPOSTCARD:
- gs_sprintf(paper_command, "UPPC");
+ gs_snprintf(paper_command, sizeof(paper_command), "UPPC");
break;
}
diff --git a/contrib/lips4/gdevl4r.c b/contrib/lips4/gdevl4r.c
index 3b5100c4..8c909452 100644
--- a/contrib/lips4/gdevl4r.c
+++ b/contrib/lips4/gdevl4r.c
@@ -804,9 +804,9 @@ lips2p_image_out(gx_device_printer * pdev, gp_file * prn_stream, int x, int y, i
move_cap(pdev, prn_stream, x, y);
Len = lips_mode3format_encode(lprn->TmpBuf, lprn->CompBuf, width / 8 * height);
- gs_sprintf(raw_str, "%c%d;%d;%d.r", LIPS_CSI,
+ gs_snprintf(raw_str, sizeof(raw_str), "%c%d;%d;%d.r", LIPS_CSI,
width / 8 * height, width / 8, (int)pdev->x_pixels_per_inch);
- gs_sprintf(comp_str, "%c%d;%d;%d;9;%d.r", LIPS_CSI,
+ gs_snprintf(comp_str, sizeof(comp_str), "%c%d;%d;%d;9;%d.r", LIPS_CSI,
Len, width / 8, (int)pdev->x_pixels_per_inch, height);
if (Len < width / 8 * height - strlen(comp_str) + strlen(raw_str)) {
@@ -835,11 +835,11 @@ lips4_image_out(gx_device_printer * pdev, gp_file * prn_stream, int x, int y, in
Len = lips_packbits_encode(lprn->TmpBuf, lprn->CompBuf, width / 8 * height);
Len_rle = lips_rle_encode(lprn->TmpBuf, lprn->CompBuf2, width / 8 * height);
- gs_sprintf(raw_str, "%c%d;%d;%d.r", LIPS_CSI,
+ gs_snprintf(raw_str, sizeof(raw_str), "%c%d;%d;%d.r", LIPS_CSI,
width / 8 * height, width / 8, (int)pdev->x_pixels_per_inch);
if (Len < Len_rle) {
- gs_sprintf(comp_str, "%c%d;%d;%d;11;%d.r", LIPS_CSI,
+ gs_snprintf(comp_str, sizeof(comp_str), "%c%d;%d;%d;11;%d.r", LIPS_CSI,
Len, width / 8, (int)pdev->x_pixels_per_inch, height);
if (Len < width / 8 * height - strlen(comp_str) + strlen(raw_str)) {
gp_fprintf(prn_stream, "%s", comp_str);
@@ -852,7 +852,7 @@ lips4_image_out(gx_device_printer * pdev, gp_file * prn_stream, int x, int y, in
} else {
/* 2019-11-28: changed two occurrencies of 'Len' to 'Len_rle' here, but
unable to test. */
- gs_sprintf(comp_str, "%c%d;%d;%d;10;%d.r", LIPS_CSI,
+ gs_snprintf(comp_str, sizeof(comp_str), "%c%d;%d;%d;10;%d.r", LIPS_CSI,
Len_rle, width / 8, (int)pdev->x_pixels_per_inch, height);
if (Len_rle < width / 8 * height - strlen(comp_str) + strlen(raw_str)) {
gp_fprintf(prn_stream, "%s", comp_str);
diff --git a/contrib/lips4/gdevl4v.c b/contrib/lips4/gdevl4v.c
index 1cdc17c4..bd991794 100644
--- a/contrib/lips4/gdevl4v.c
+++ b/contrib/lips4/gdevl4v.c
@@ -405,17 +405,17 @@ lips4v_set_cap(gx_device * dev, int x, int y)
int dy = y - pdev->prev_y;
if (dx > 0) {
- gs_sprintf(cap, "%c%da", LIPS_CSI, dx);
+ gs_snprintf(cap, sizeof(cap), "%c%da", LIPS_CSI, dx);
lputs(s, cap);
} else if (dx < 0) {
- gs_sprintf(cap, "%c%dj", LIPS_CSI, -dx);
+ gs_snprintf(cap, sizeof(cap), "%c%dj", LIPS_CSI, -dx);
lputs(s, cap);
}
if (dy > 0) {
- gs_sprintf(cap, "%c%dk", LIPS_CSI, dy);
+ gs_snprintf(cap, sizeof(cap), "%c%dk", LIPS_CSI, dy);
lputs(s, cap);
} else if (dy < 0) {
- gs_sprintf(cap, "%c%de", LIPS_CSI, -dy);
+ gs_snprintf(cap, sizeof(cap), "%c%de", LIPS_CSI, -dy);
lputs(s, cap);
}
pdev->prev_x = x;
@@ -490,10 +490,10 @@ lips4v_copy_text_char(gx_device * dev, const byte * data,
if (download) {
if (ccode % 128 == 0 && ccode == pdev->count) {
/* ʸåϿ̿ */
- gs_sprintf(cset_sub, "%c%dx%c", LIPS_DCS, ccode / 128, LIPS_ST);
+ gs_snprintf(cset_sub, sizeof(cset_sub), "%c%dx%c", LIPS_DCS, ccode / 128, LIPS_ST);
lputs(s, cset_sub);
/* ʸåϿ̿ */
- gs_sprintf(cset,
+ gs_snprintf(cset,sizeof(cset),
"%c%d;1;0;0;3840;8;400;100;0;0;200;%d;%d;0;0;;;;;%d.p",
LIPS_CSI,
size + 9, cell_length, /* Cell Width */
@@ -502,7 +502,7 @@ lips4v_copy_text_char(gx_device * dev, const byte * data,
lputs(s, cset);
} else {
/* 1ʸϿ̿ */
- gs_sprintf(cset,
+ gs_snprintf(cset,sizeof(cset),
"%c%d;%d;8;%d.q", LIPS_CSI,
size + 9, ccode / 128, (int)dev->x_pixels_per_inch);
lputs(s, cset);
@@ -520,7 +520,7 @@ lips4v_copy_text_char(gx_device * dev, const byte * data,
}
/* ʸåȡֹ̿2 */
if (pdev->current_font != ccode / 128) {
- gs_sprintf(cset_number, "%c%d%%v", LIPS_CSI, ccode / 128);
+ gs_snprintf(cset_number, sizeof(cset_number), "%c%d%%v", LIPS_CSI, ccode / 128);
lputs(s, cset_number);
pdev->current_font = ccode / 128;
}
@@ -530,7 +530,7 @@ lips4v_copy_text_char(gx_device * dev, const byte * data,
if (pdev->color_info.depth == 8) {
sputc(s, LIPS_CSI);
lputs(s, "?10;2;");
- gs_sprintf(text_color, "%d",
+ gs_snprintf(text_color, sizeof(text_color), "%d",
(int)(pdev->color_info.max_gray - pdev->current_color));
} else {
int r = (pdev->current_color >> 16) * 1000.0 / 255.0;
@@ -539,7 +539,7 @@ lips4v_copy_text_char(gx_device * dev, const byte * data,
sputc(s, LIPS_CSI);
lputs(s, "?10;;");
- gs_sprintf(text_color, "%d;%d;%d", r, g, b);
+ gs_snprintf(text_color, sizeof(text_color), "%d;%d;%d", r, g, b);
}
lputs(s, text_color);
lputs(s, "%p");
@@ -655,16 +655,16 @@ lips4v_beginpage(gx_device_vector * vdev)
lputs(s, "@PJL SET RESOLUTION = QUICK\n");
lputs(s, l4v_file_header2);
if (pdev->toner_density) {
- gs_sprintf(toner_d, "@PJL SET TONER-DENSITY=%d\n",
+ gs_snprintf(toner_d, sizeof(toner_d), "@PJL SET TONER-DENSITY=%d\n",
pdev->toner_density);
lputs(s, toner_d);
}
if (pdev->toner_saving_set) {
lputs(s, "@PJL SET TONER-SAVING=");
if (pdev->toner_saving)
- gs_sprintf(toner_s, "ON\n");
+ gs_snprintf(toner_s, sizeof(toner_s), "ON\n");
else
- gs_sprintf(toner_s, "OFF\n");
+ gs_snprintf(toner_s, sizeof(toner_s), "OFF\n");
lputs(s, toner_s);
}
lputs(s, l4v_file_header3);
@@ -674,8 +674,8 @@ lips4v_beginpage(gx_device_vector * vdev)
if (dpi > 9999)
return_error(gs_error_rangecheck);
- /* set reaolution (dpi) */
- gs_sprintf(dpi_char, "%d", dpi);
+ /* set resolution (dpi) */
+ gs_snprintf(dpi_char, sizeof(dpi_char), "%d", dpi);
lputs(s, dpi_char);
if (pdev->color_info.depth == 8)
@@ -684,7 +684,7 @@ lips4v_beginpage(gx_device_vector * vdev)
lputs(s, l4vcolor_file_header);
/* username */
- gs_sprintf(username, "%c2y%s%c", LIPS_DCS, pdev->Username, LIPS_ST);
+ gs_snprintf(username, sizeof(username), "%c2y%s%c", LIPS_DCS, pdev->Username, LIPS_ST);
lputs(s, username);
}
if (strcmp(pdev->mediaType, "PlainPaper") == 0) {
@@ -711,13 +711,13 @@ lips4v_beginpage(gx_device_vector * vdev)
&& strcmp(pdev->mediaType, LIPS_MEDIATYPE_DEFAULT) != 0)) {
/* Use ManualFeed */
if (pdev->prev_feed_mode != 10) {
- gs_sprintf(feedmode, "%c10q", LIPS_CSI);
+ gs_snprintf(feedmode, sizeof(feedmode), "%c10q", LIPS_CSI);
lputs(s, feedmode);
pdev->prev_feed_mode = 10;
}
} else {
if (pdev->prev_feed_mode != pdev->cassetFeed) {
- gs_sprintf(feedmode, "%c%dq", LIPS_CSI, pdev->cassetFeed);
+ gs_snprintf(feedmode, sizeof(feedmode), "%c%dq", LIPS_CSI, pdev->cassetFeed);
lputs(s, feedmode);
pdev->prev_feed_mode = pdev->cassetFeed;
}
@@ -729,10 +729,10 @@ lips4v_beginpage(gx_device_vector * vdev)
if (pdev->prev_paper_size != paper_size) {
if (paper_size == USER_SIZE) {
/* modified by shige 06/27 2003
- gs_sprintf(paper, "%c80;%d;%dp", LIPS_CSI, width * 10, height * 10); */
+ gs_snprintf(paper, sizeof(paper), "%c80;%d;%dp", LIPS_CSI, width * 10, height * 10); */
/* modified by shige 11/09 2003
- gs_sprintf(paper, "%c80;%d;%dp", LIPS_CSI, height * 10, width * 10); */
- gs_sprintf(paper, "%c80;%d;%dp", LIPS_CSI,
+ gs_snprintf(paper, sizeof(paper), "%c80;%d;%dp", LIPS_CSI, height * 10, width * 10); */
+ gs_snprintf(paper,sizeof(paper), "%c80;%d;%dp", LIPS_CSI,
(height * 10 > LIPS_HEIGHT_MAX_720)?
LIPS_HEIGHT_MAX_720 : (height * 10),
(width * 10 > LIPS_WIDTH_MAX_720)?
@@ -740,77 +740,79 @@ lips4v_beginpage(gx_device_vector * vdev)
lputs(s, paper);
} else if (paper_size == USER_SIZE + LANDSCAPE) {
/* modified by shige 06/27 2003
- gs_sprintf(paper, "%c81;%d;%dp", LIPS_CSI, height * 10, width * 10); */
+ gs_snprintf(paper, sizeof(paper), "%c81;%d;%dp", LIPS_CSI, height * 10, width * 10); */
/* modified by shige 11/09 2003
- gs_sprintf(paper, "%c81;%d;%dp", LIPS_CSI, width * 10, height * 10); */
- gs_sprintf(paper, "%c80;%d;%dp", LIPS_CSI,
+ gs_snprintf(paper, sizeof(paper), "%c81;%d;%dp", LIPS_CSI, width * 10, height * 10); */
+ gs_snprintf(paper,sizeof(paper), "%c80;%d;%dp", LIPS_CSI,
(width * 10 > LIPS_HEIGHT_MAX_720)?
LIPS_HEIGHT_MAX_720 : (width * 10),
(height * 10 > LIPS_WIDTH_MAX_720)?
LIPS_WIDTH_MAX_720 : (height * 10));
lputs(s, paper);
} else {
- gs_sprintf(paper, "%c%dp", LIPS_CSI, paper_size);
+ gs_snprintf(paper, sizeof(paper), "%c%dp", LIPS_CSI, paper_size);
lputs(s, paper);
}
} else if (paper_size == USER_SIZE) {
if (pdev->prev_paper_width != width ||
- pdev->prev_paper_height != height)
+ pdev->prev_paper_height != height) {
/* modified by shige 06/27 2003
- gs_sprintf(paper, "%c80;%d;%dp", LIPS_CSI, width * 10, height * 10); */
+ gs_snprintf(paper, sizeof(paper), "%c80;%d;%dp", LIPS_CSI, width * 10, height * 10); */
/* modified by shige 11/09 2003
- gs_sprintf(paper, "%c80;%d;%dp", LIPS_CSI, height * 10, width * 10); */
- gs_sprintf(paper, "%c80;%d;%dp", LIPS_CSI,
+ gs_snprintf(paper, sizeof(paper), "%c80;%d;%dp", LIPS_CSI, height * 10, width * 10); */
+ gs_snprintf(paper, sizeof(paper), "%c80;%d;%dp", LIPS_CSI,
(height * 10 > LIPS_HEIGHT_MAX_720)?
LIPS_HEIGHT_MAX_720 : (height * 10),
(width * 10 > LIPS_WIDTH_MAX_720)?
LIPS_WIDTH_MAX_720 : (width * 10));
- lputs(s, paper);
+ lputs(s, paper);
+ }
} else if (paper_size == USER_SIZE + LANDSCAPE) {
if (pdev->prev_paper_width != width ||
- pdev->prev_paper_height != height)
+ pdev->prev_paper_height != height) {
/* modified by shige 06/27 2003
- gs_sprintf(paper, "%c81;%d;%dp", LIPS_CSI, height * 10, width * 10); */
+ gs_snprintf(paper, sizeof(paper), "%c81;%d;%dp", LIPS_CSI, height * 10, width * 10); */
/* modified by shige 11/09 2003
- gs_sprintf(paper, "%c81;%d;%dp", LIPS_CSI, width * 10, height * 10); */
- gs_sprintf(paper, "%c80;%d;%dp", LIPS_CSI,
+ gs_snprintf(paper, sizeof(paper), "%c81;%d;%dp", LIPS_CSI, width * 10, height * 10); */
+ gs_snprintf(paper, sizeof(paper), "%c80;%d;%dp", LIPS_CSI,
(width * 10 > LIPS_HEIGHT_MAX_720)?
LIPS_HEIGHT_MAX_720 : (width * 10),
(height * 10 > LIPS_WIDTH_MAX_720)?
LIPS_WIDTH_MAX_720 : (height * 10));
- lputs(s, paper);
+ lputs(s, paper);
+ }
}
pdev->prev_paper_size = paper_size;
pdev->prev_paper_width = width;
pdev->prev_paper_height = height;
if (pdev->faceup) {
- gs_sprintf(faceup_char, "%c11;12;12~", LIPS_CSI);
+ gs_snprintf(faceup_char, sizeof(faceup_char), "%c11;12;12~", LIPS_CSI);
lputs(s, faceup_char);
}
/* N-up Printing Setting */
if (pdev->first_page) {
if (pdev->nup != 1) {
- gs_sprintf(nup_char, "%c%d1;;%do", LIPS_CSI, pdev->nup, paper_size);
+ gs_snprintf(nup_char, sizeof(nup_char), "%c%d1;;%do", LIPS_CSI, pdev->nup, paper_size);
lputs(s, nup_char);
}
}
/* Duplex Setting */
if (dupset && dup) {
if (pdev->prev_duplex_mode == 0 || pdev->prev_duplex_mode == 1) {
- gs_sprintf(duplex_char, "%c2;#x", LIPS_CSI); /* duplex */
+ gs_snprintf(duplex_char, sizeof(duplex_char), "%c2;#x", LIPS_CSI); /* duplex */
lputs(s, duplex_char);
if (!tum) {
/* long edge binding */
if (pdev->prev_duplex_mode != 2) {
- gs_sprintf(tumble_char, "%c0;#w", LIPS_CSI);
+ gs_snprintf(tumble_char, sizeof(tumble_char), "%c0;#w", LIPS_CSI);
lputs(s, tumble_char);
}
pdev->prev_duplex_mode = 2;
} else {
/* short edge binding */
if (pdev->prev_duplex_mode != 3) {
- gs_sprintf(tumble_char, "%c2;#w", LIPS_CSI);
+ gs_snprintf(tumble_char, sizeof(tumble_char), "%c2;#w", LIPS_CSI);
lputs(s, tumble_char);
}
pdev->prev_duplex_mode = 3;
@@ -818,7 +820,7 @@ lips4v_beginpage(gx_device_vector * vdev)
}
} else if (dupset && !dup) {
if (pdev->prev_duplex_mode != 1) {
- gs_sprintf(duplex_char, "%c0;#x", LIPS_CSI); /* simplex */
+ gs_snprintf(duplex_char, sizeof(duplex_char), "%c0;#x", LIPS_CSI); /* simplex */
lputs(s, duplex_char);
}
pdev->prev_duplex_mode = 1;
@@ -831,9 +833,9 @@ lips4v_beginpage(gx_device_vector * vdev)
/* size unit (dpi) */
sputc(s, LIPS_CSI);
lputs(s, "11h");
- gs_sprintf(unit, "%c?7;%d I", LIPS_CSI, (int)pdev->x_pixels_per_inch);
+ gs_snprintf(unit, sizeof(unit), "%c?7;%d I", LIPS_CSI, (int)pdev->x_pixels_per_inch);
lputs(s, unit);
- gs_sprintf(page_header, "%c[0&}#%c", LIPS_ESC, LIPS_IS2);
+ gs_snprintf(page_header, sizeof(page_header), "%c[0&}#%c", LIPS_ESC, LIPS_IS2);
lputs(s, page_header); /* vector mode */
lputs(s, "!0"); /* size unit (dpi) */
@@ -842,10 +844,10 @@ lips4v_beginpage(gx_device_vector * vdev)
sputc(s, LIPS_IS2);
if (pdev->color_info.depth == 8) {
- gs_sprintf(l4vmono_page_header, "!13%c$%c", LIPS_IS2, LIPS_IS2);
+ gs_snprintf(l4vmono_page_header, sizeof(l4vmono_page_header), "!13%c$%c", LIPS_IS2, LIPS_IS2);
lputs(s, l4vmono_page_header);
} else {
- gs_sprintf(l4vcolor_page_header, "!11%c$%c", LIPS_IS2, LIPS_IS2);
+ gs_snprintf(l4vcolor_page_header, sizeof(l4vcolor_page_header), "!11%c$%c", LIPS_IS2, LIPS_IS2);
lputs(s, l4vcolor_page_header);
}
@@ -949,7 +951,7 @@ lips4v_setlinecap(gx_device_vector * vdev, gs_line_cap cap)
break;
}
/* ü̿ */
- gs_sprintf(c, "}E%d%c", line_cap, LIPS_IS2);
+ gs_snprintf(c, sizeof(c), "}E%d%c", line_cap, LIPS_IS2);
lputs(s, c);
pdev->linecap = cap;
@@ -990,7 +992,7 @@ lips4v_setlinejoin(gx_device_vector * vdev, gs_line_join join)
break;
}
- gs_sprintf(c, "}F%d%c", lips_join, LIPS_IS2);
+ gs_snprintf(c, sizeof(c), "}F%d%c", lips_join, LIPS_IS2);
lputs(s, c);
return 0;
@@ -1411,7 +1413,7 @@ lips4v_output_page(gx_device * dev, int num_copies, int flush)
if (num_copies > 255)
num_copies = 255;
if (pdev->prev_num_copies != num_copies) {
- gs_sprintf(str, "%c%dv", LIPS_CSI, num_copies);
+ gs_snprintf(str, sizeof(str), "%c%dv", LIPS_CSI, num_copies);
lputs(s, str);
pdev->prev_num_copies = num_copies;
}
diff --git a/contrib/opvp/README.txt b/contrib/opvp/README.txt
new file mode 100644
index 00000000..fd2250e3
--- /dev/null
+++ b/contrib/opvp/README.txt
@@ -0,0 +1,18 @@
+In an effort to remove globals in devices
+that ship with Ghostscript, the opvp device was updated
+to place it's global values into the device structure.
+
+As part of that commit, a harness was added to enable
+testing of the opvp device client API to test for any
+issues. To build the harness use ./build_opv_harness.sh
+This will create a debug version of the shared object
+libopv.so. The command line
+gs -sDEVICE=opvp -sDriver=./contrib/opvp/libopv.so -o output.txt -f ./examples/tiger.eps
+can then be used.
+
+This command should create a file called
+opvp_command_dump.txt that contains the calls and
+the parameters made to the client API. Note that the
+harness itself has to rely upon globals. To do otherwise
+would require a to change the client API, which we
+do not own. \ No newline at end of file
diff --git a/contrib/opvp/build_opv_harness.sh b/contrib/opvp/build_opv_harness.sh
new file mode 100755
index 00000000..8d10f052
--- /dev/null
+++ b/contrib/opvp/build_opv_harness.sh
@@ -0,0 +1,4 @@
+#!/bin/bash
+
+gcc -Werror -Wall -c -fpic -g opvpharness.c
+gcc -shared -o libopv.so opvpharness.o \ No newline at end of file
diff --git a/contrib/opvp/gdevopvp.c b/contrib/opvp/gdevopvp.c
index 844b46cd..5f20cac7 100644
--- a/contrib/opvp/gdevopvp.c
+++ b/contrib/opvp/gdevopvp.c
@@ -115,14 +115,62 @@ typedef struct {
#define MAX_PATH_POINTS 1000
-/* driver */
-typedef struct gx_device_opvp_s {
+/* To remove the existing globals from this device,
+ we place the current globals into a structure
+ and place them at the same offset location
+ for the opvp and oprp devices, allowing easy
+ access regardless of the device type. */
+
+typedef struct opXp_globals_s {
+ bool vector;
+ bool inkjet;
+ bool zoomAuto;
+ bool zooming;
+ bool beginPage;
+ float margins[4];
+ float zoom[2];
+ float shift[2];
+ opvp_int_t outputFD;
+ opvp_int_t nApiEntry;
+ opvp_dc_t printerContext;
+ opvp_cspace_t colorSpace;
+ opvp_cspace_t savedColorSpace;
+ char* vectorDriver;
+ char* printerModel;
+ void* handle;
+ opvp_brush_t* vectorFillColor;
+ opvp_int_t* ErrorNo;
+ opvp_api_procs_t* apiEntry;
+ OPVP_api_procs* apiEntry_0_2;
+ char* jobInfo;
+ char* docInfo;
+ opvp_dc_t(*OpenPrinter)(opvp_int_t, const opvp_char_t*,
+ const opvp_int_t[2], opvp_api_procs_t**);
+ int (*OpenPrinter_0_2)(int, char*, int*,
+ OPVP_api_procs**);
+ int (*GetLastError)(gx_device*);
+} opXp_globals;
+
+typedef struct base_opvp_s {
gx_device_vector_common;
+} base_opvp;
+
+typedef struct base_oprp_s {
+ gx_device_common;
+ gx_prn_device_common;
+} base_oprp;
+
+typedef struct gx_device_opvp_s {
+ gx_device_vector_common;
+ char padding[1 + (sizeof(base_oprp) > sizeof(base_opvp) ? sizeof(base_oprp) - sizeof(base_opvp) : 0)];
+ opXp_globals globals;
} gx_device_opvp;
-typedef struct gx_device_oprp_s {
+typedef struct gx_device_oprp_s {
gx_device_common;
gx_prn_device_common;
+ char padding[1 + (sizeof(base_opvp) > sizeof(base_oprp) ? sizeof(base_opvp) - sizeof(base_oprp) : 0)];
+ opXp_globals globals;
} gx_device_oprp;
/* point (internal) */
@@ -135,15 +183,16 @@ typedef struct {
/* Utilities */
static int opvp_startpage(gx_device *);
-static int opvp_endpage(void);
+static int opvp_endpage(gx_device*);
static char *opvp_alloc_string(char **, const char *);
static char *opvp_cat_string(char **, const char *);
static char *opvp_adjust_num_string(char *);
-static char **opvp_gen_dynamic_lib_name(void);
+static char **opvp_gen_dynamic_lib_name(gx_device*);
static char *opvp_to_utf8(char *);
-#define opvp_check_in_page(pdev) \
- ((beginPage) || (inkjet) ? 0 \
- : (*vdev_proc(pdev, beginpage))((gx_device_vector*)pdev))
+#define opvp_check_in_page(opdev) \
+ ((((gx_device_opvp*)(opdev))->globals.beginPage) || \
+ (((gx_device_opvp*)(opdev))->globals.inkjet) ? 0 \
+ : (*vdev_proc(opdev, beginpage))((gx_device_vector*)opdev))
static int opvp_get_papertable_index(gx_device *);
static char *opvp_get_sizestring(float, float);
/* not used static const char *opvp_get_papersize_region(gx_device *);*/
@@ -160,8 +209,8 @@ static int opvp_draw_image(gx_device_opvp *, int,
int, int, int, int, int, int, const byte *);
/* load/unload vector driver */
-static int opvp_load_vector_driver(void);
-static int opvp_unload_vector_driver(void);
+static int opvp_load_vector_driver(gx_device*);
+static int opvp_unload_vector_driver(gx_device*);
static int prepare_open(gx_device *);
/* driver procs */
@@ -177,10 +226,10 @@ static int opvp_copy_mono(gx_device *, const byte *, int, int,
gx_color_index, gx_color_index);
static int opvp_copy_color(gx_device *, const byte *, int, int,
gx_bitmap_id, int, int, int, int);
-static int _get_params(gs_param_list *);
+static int _get_params(gx_device*, gs_param_list *);
static int opvp_get_params(gx_device *, gs_param_list *);
static int oprp_get_params(gx_device *, gs_param_list *);
-static int _put_params(gs_param_list *);
+static int _put_params(gx_device*, gs_param_list *);
static int opvp_put_params(gx_device *, gs_param_list *);
static int oprp_put_params(gx_device *, gs_param_list *);
static int opvp_fill_path(gx_device *, const gs_gstate *, gx_path *,
@@ -295,12 +344,60 @@ gs_public_st_suffix_add0_final(
NULL, /* *jobInfo */\
NULL /* *docInfo */
+
+static int
+GetLastError_1_0(gx_device* dev)
+{
+ gx_device_opvp* pdev = (gx_device_opvp*)dev;
+
+ return *(pdev->globals.ErrorNo);
+}
+
+/* Initialize the globals */
+static void
+InitGlobals(gx_device* dev)
+{
+ gx_device_opvp* opdev = (gx_device_opvp*)dev;
+
+ opdev->globals.vector = true;
+ opdev->globals.inkjet = false;
+ opdev->globals.zoomAuto = false;
+ opdev->globals.zooming = false;
+ opdev->globals.beginPage = false;
+ opdev->globals.margins[0] = 0;
+ opdev->globals.margins[1] = 0;
+ opdev->globals.margins[2] = 0;
+ opdev->globals.margins[3] = 0;
+ opdev->globals.zoom[0] = 1;
+ opdev->globals.zoom[1] = 1;
+ opdev->globals.shift[0] = 0;
+ opdev->globals.shift[1] = 0;
+ opdev->globals.outputFD = -1;
+ opdev->globals.nApiEntry = 0;
+ opdev->globals.printerContext = -1;
+ opdev->globals.colorSpace = OPVP_CSPACE_STANDARDRGB;
+ opdev->globals.savedColorSpace = OPVP_CSPACE_STANDARDRGB;
+ opdev->globals.vectorDriver = NULL;
+ opdev->globals.printerModel = NULL;
+ opdev->globals.handle = NULL;
+ opdev->globals.vectorFillColor = NULL;
+ opdev->globals.ErrorNo = NULL;
+ opdev->globals.apiEntry = NULL;
+ opdev->globals.apiEntry_0_2 = NULL;
+ opdev->globals.jobInfo = NULL;
+ opdev->globals.docInfo = NULL;
+ opdev->globals.OpenPrinter = NULL;
+ opdev->globals.OpenPrinter_0_2 = NULL;
+ opdev->globals.GetLastError = GetLastError_1_0;
+}
+
/* device procs */
static void
opvp_initialize_device_procs(gx_device *dev)
{
gdev_prn_initialize_device_procs(dev);
+ set_dev_proc(dev, initialize_device, gx_init_non_threadsafe_device);
set_dev_proc(dev, open_device, opvp_open);
set_dev_proc(dev, get_initial_matrix, opvp_get_initial_matrix);
set_dev_proc(dev, output_page, opvp_output_page);
@@ -325,6 +422,9 @@ opvp_initialize_device_procs(gx_device *dev)
* by the system to the default. For compatibility we do the same. */
set_dev_proc(dev, encode_color, NULL);
set_dev_proc(dev, decode_color, NULL);
+
+ /* And the device globals */
+ InitGlobals(dev);
}
/* vector procs */
@@ -381,6 +481,7 @@ oprp_initialize_device_procs(gx_device *dev)
{
gdev_prn_initialize_device_procs(dev);
+ set_dev_proc(dev, initialize_device, gx_init_non_threadsafe_device);
set_dev_proc(dev, open_device, oprp_open);
set_dev_proc(dev, output_page, opvp_output_page);
set_dev_proc(dev, close_device, opvp_close);
@@ -394,6 +495,9 @@ oprp_initialize_device_procs(gx_device *dev)
* by the system to the default. For compatibility we do the same. */
set_dev_proc(dev, encode_color, NULL);
set_dev_proc(dev, decode_color, NULL);
+
+ /* And the device globals */
+ InitGlobals(dev);
}
const gx_device_oprp gs_oprp_device =
@@ -412,43 +516,6 @@ const gx_device_oprp gs_oprp_device =
)
};
-/* driver mode */
-static bool vector = true;
-static bool inkjet = false;
-static char *vectorDriver = NULL;
-static char *printerModel = NULL;
-static void *handle = NULL;
-static opvp_dc_t (*OpenPrinter)(opvp_int_t,const opvp_char_t*,
- const opvp_int_t[2],
- opvp_api_procs_t**) = NULL;
-static int (*OpenPrinter_0_2)(int,char*,int*,
- OPVP_api_procs**) = NULL;
-static opvp_int_t *ErrorNo = NULL;
-static opvp_int_t outputFD = -1;
-static opvp_int_t nApiEntry = 0;
-static opvp_api_procs_t *apiEntry = NULL;
-static OPVP_api_procs *apiEntry_0_2 = NULL;
-static opvp_dc_t printerContext = -1;
-static char *jobInfo = NULL;
-static char *docInfo = NULL;
-static opvp_cspace_t colorSpace = OPVP_CSPACE_STANDARDRGB;
-static opvp_cspace_t savedColorSpace;
-static opvp_brush_t *vectorFillColor = NULL;
-static float margins[4] = {0, 0, 0, 0};
-static float zoom[2] = {1, 1};
-static float shift[2] = {0, 0};
-static bool zoomAuto = false;
-static bool zooming = false;
-static bool beginPage = false;
-
-static int
-GetLastError_1_0(void)
-{
- return *ErrorNo;
-}
-
-static int (*GetLastError)(void) = GetLastError_1_0;
-
/* Wrapper functions that keep compatible with 0.2 */
/* color space mapping 0.2 to 1.0 */
@@ -496,9 +563,11 @@ static int colorDepth_0_2[] = {
/* translate error code */
static int
-GetLastError_0_2(void)
+GetLastError_0_2(gx_device* dev)
{
- switch(*ErrorNo) {
+ gx_device_opvp *opdev = (gx_device_opvp*)dev;
+
+ switch(*(opdev->globals.ErrorNo)) {
case OPVP_FATALERROR_0_2:
return OPVP_FATALERROR;
break;
@@ -526,48 +595,51 @@ GetLastError_0_2(void)
}
static opvp_result_t
-StartPageWrapper(opvp_dc_t printerContext, const opvp_char_t *pageInfo)
+StartPageWrapper(gx_device *dev, opvp_dc_t printerContext, const opvp_char_t *pageInfo)
{
int r;
+ gx_device_opvp *opdev = (gx_device_opvp*)dev;
- if ((r = apiEntry_0_2->StartPage(printerContext,
+ if ((r = opdev->globals.apiEntry_0_2->StartPage(printerContext,
/* discard const */(char *)pageInfo)) != OPVP_OK) {
/* error */
return r;
}
/* initialize ROP */
- if (apiEntry_0_2->SetROP != NULL) {
- apiEntry_0_2->SetROP(printerContext,
+ if (opdev->globals.apiEntry_0_2->SetROP != NULL) {
+ opdev->globals.apiEntry_0_2->SetROP(printerContext,
OPVP_0_2_ROP_P);
}
return OPVP_OK;
}
static opvp_result_t
-InitGSWrapper(opvp_dc_t printerContext)
+InitGSWrapper(gx_device *dev, opvp_dc_t printerContext)
{
int r;
+ gx_device_opvp *opdev = (gx_device_opvp*)dev;
- if ((r = apiEntry_0_2->InitGS(printerContext)) != OPVP_OK) {
+ if ((r = opdev->globals.apiEntry_0_2->InitGS(printerContext)) != OPVP_OK) {
/* error */
return r;
}
/* initialize ROP */
- if (apiEntry_0_2->SetROP != NULL) {
- apiEntry_0_2->SetROP(printerContext,
+ if (opdev->globals.apiEntry_0_2->SetROP != NULL) {
+ opdev->globals.apiEntry_0_2->SetROP(printerContext,
OPVP_0_2_ROP_P);
}
return OPVP_OK;
}
static opvp_result_t
-QueryColorSpaceWrapper( opvp_dc_t printerContext, opvp_int_t *pnum,
+QueryColorSpaceWrapper(gx_device *dev, opvp_dc_t printerContext, opvp_int_t *pnum,
opvp_cspace_t *pcspace)
{
int r;
int i;
+ gx_device_opvp *opdev = (gx_device_opvp*)dev;
- if ((r = apiEntry_0_2->QueryColorSpace(printerContext,
+ if ((r = opdev->globals.apiEntry_0_2->QueryColorSpace(printerContext,
(OPVP_ColorSpace *)pcspace,pnum)) != OPVP_OK) {
/* error */
return r;
@@ -587,51 +659,54 @@ QueryColorSpaceWrapper( opvp_dc_t printerContext, opvp_int_t *pnum,
}
static opvp_result_t
-SetColorSpaceWrapper(opvp_dc_t printerContext, opvp_cspace_t cspace)
+SetColorSpaceWrapper(gx_device *dev, opvp_dc_t printerContext, opvp_cspace_t cspace)
{
+ gx_device_opvp *opdev = (gx_device_opvp*)dev;
+
if (cspace == OPVP_CSPACE_DEVICEKRGB) {
/* 0.2 doesn't have OPVP_CSPACE_DEVICEKRGB */
- *ErrorNo = OPVP_NOTSUPPORTED_0_2;
+ *(opdev->globals.ErrorNo) = OPVP_NOTSUPPORTED_0_2;
return -1;
}
if ((int)cspace
>= sizeof(cspace_1_0_to_0_2)/sizeof(OPVP_ColorSpace)) {
/* unknown color space */
- *ErrorNo = OPVP_PARAMERROR_0_2;
+ *(opdev->globals.ErrorNo) = OPVP_PARAMERROR_0_2;
return -1;
}
- return apiEntry_0_2->SetColorSpace(printerContext,
+ return opdev->globals.apiEntry_0_2->SetColorSpace(printerContext,
cspace_1_0_to_0_2[cspace]);
}
+/* Not used
static opvp_result_t
-GetColorSpaceWrapper(opvp_dc_t printerContext, opvp_cspace_t *pcspace)
+GetColorSpaceWrapper(gx_device *dev, opvp_dc_t printerContext, opvp_cspace_t *pcspace)
{
int r;
+ gx_device_opvp *opdev = (gx_device_opvp*)dev;
- if ((r = apiEntry_0_2->GetColorSpace(printerContext,
+ if ((r = opdev->globals.apiEntry_0_2->GetColorSpace(printerContext,
(OPVP_ColorSpace *)pcspace)) != OPVP_OK) {
- /* error */
return r;
}
if (*pcspace
>= sizeof(cspace_0_2_to_1_0)/sizeof(opvp_cspace_t)) {
- /* unknown color space */
- /* set DEVICERGB instead */
*pcspace = OPVP_CSPACE_DEVICERGB;
} else {
*pcspace = cspace_0_2_to_1_0[*pcspace];
}
return r;
}
+*/
static opvp_result_t
-SetStrokeColorWrapper(opvp_dc_t printerContext, const opvp_brush_t *brush)
+SetStrokeColorWrapper(gx_device *dev, opvp_dc_t printerContext, const opvp_brush_t *brush)
{
OPVP_Brush brush_0_2;
+ gx_device_opvp *opdev = (gx_device_opvp*)dev;
if (brush == NULL) {
- *ErrorNo = OPVP_PARAMERROR_0_2;
+ *(opdev->globals.ErrorNo) = OPVP_PARAMERROR_0_2;
return -1;
}
if (brush->colorSpace == OPVP_CSPACE_DEVICEKRGB) {
@@ -641,7 +716,7 @@ SetStrokeColorWrapper(opvp_dc_t printerContext, const opvp_brush_t *brush)
if ((int)brush->colorSpace
>= sizeof(cspace_1_0_to_0_2)/sizeof(OPVP_ColorSpace)) {
/* unknown color space */
- *ErrorNo = OPVP_PARAMERROR_0_2;
+ *(opdev->globals.ErrorNo) = OPVP_PARAMERROR_0_2;
return -1;
}
brush_0_2.colorSpace = cspace_1_0_to_0_2[brush->colorSpace];
@@ -649,16 +724,17 @@ SetStrokeColorWrapper(opvp_dc_t printerContext, const opvp_brush_t *brush)
brush_0_2.yorg = brush->yorg;
brush_0_2.pbrush = (OPVP_BrushData *)brush->pbrush;
memcpy(brush_0_2.color,brush->color,sizeof(brush_0_2.color));
- return apiEntry_0_2->SetStrokeColor(printerContext,&brush_0_2);
+ return opdev->globals.apiEntry_0_2->SetStrokeColor(printerContext, &brush_0_2);
}
static opvp_result_t
-SetFillColorWrapper(opvp_dc_t printerContext, const opvp_brush_t *brush)
+SetFillColorWrapper(gx_device *dev, opvp_dc_t printerContext, const opvp_brush_t *brush)
{
OPVP_Brush brush_0_2;
+ gx_device_opvp *opdev = (gx_device_opvp*)dev;
if (brush == NULL) {
- *ErrorNo = OPVP_PARAMERROR_0_2;
+ *(opdev->globals.ErrorNo) = OPVP_PARAMERROR_0_2;
return -1;
}
if (brush->colorSpace == OPVP_CSPACE_DEVICEKRGB) {
@@ -668,7 +744,7 @@ SetFillColorWrapper(opvp_dc_t printerContext, const opvp_brush_t *brush)
if ((int)brush->colorSpace
>= sizeof(cspace_1_0_to_0_2)/sizeof(OPVP_ColorSpace)) {
/* unknown color space */
- *ErrorNo = OPVP_PARAMERROR_0_2;
+ *(opdev->globals.ErrorNo) = OPVP_PARAMERROR_0_2;
return -1;
}
brush_0_2.colorSpace = cspace_1_0_to_0_2[brush->colorSpace];
@@ -676,27 +752,28 @@ SetFillColorWrapper(opvp_dc_t printerContext, const opvp_brush_t *brush)
brush_0_2.yorg = brush->yorg;
brush_0_2.pbrush = (OPVP_BrushData *)brush->pbrush;
memcpy(brush_0_2.color,brush->color,sizeof(brush_0_2.color));
- return apiEntry_0_2->SetFillColor(printerContext,&brush_0_2);
+ return opdev->globals.apiEntry_0_2->SetFillColor(printerContext, &brush_0_2);
}
static opvp_result_t
-SetBgColorWrapper(opvp_dc_t printerContext, const opvp_brush_t *brush)
+SetBgColorWrapper(gx_device *dev, opvp_dc_t printerContext, const opvp_brush_t *brush)
{
OPVP_Brush brush_0_2;
+ gx_device_opvp *opdev = (gx_device_opvp*)dev;
if (brush == NULL) {
- *ErrorNo = OPVP_PARAMERROR_0_2;
+ *(opdev->globals.ErrorNo) = OPVP_PARAMERROR_0_2;
return -1;
}
if (brush->colorSpace == OPVP_CSPACE_DEVICEKRGB) {
/* 0.2 doesn't have OPVP_CSPACE_DEVICEKRGB */
- *ErrorNo = OPVP_NOTSUPPORTED_0_2;
+ *(opdev->globals.ErrorNo) = OPVP_NOTSUPPORTED_0_2;
return -1;
}
if ((int)brush->colorSpace
>= sizeof(cspace_1_0_to_0_2)/sizeof(OPVP_ColorSpace)) {
/* unknown color space */
- *ErrorNo = OPVP_PARAMERROR_0_2;
+ *(opdev->globals.ErrorNo) = OPVP_PARAMERROR_0_2;
return -1;
}
brush_0_2.colorSpace = cspace_1_0_to_0_2[brush->colorSpace];
@@ -704,11 +781,12 @@ SetBgColorWrapper(opvp_dc_t printerContext, const opvp_brush_t *brush)
brush_0_2.yorg = brush->yorg;
brush_0_2.pbrush = (OPVP_BrushData *)brush->pbrush;
memcpy(brush_0_2.color,brush->color,sizeof(brush_0_2.color));
- return apiEntry_0_2->SetBgColor(printerContext,&brush_0_2);
+ return opdev->globals.apiEntry_0_2->SetBgColor(printerContext, &brush_0_2);
}
static opvp_result_t
DrawImageWrapper(
+ gx_device *dev,
opvp_dc_t printerContext,
opvp_int_t sourceWidth,
opvp_int_t sourceHeight,
@@ -723,30 +801,31 @@ DrawImageWrapper(
OPVP_ImageFormat iformat_0_2;
OPVP_PaintMode paintmode_0_2 = OPVP_paintModeTransparent;
int depth;
+ gx_device_opvp *opdev = (gx_device_opvp*)dev;
if (imageFormat == OPVP_IFORMAT_MASK) {
- if (apiEntry_0_2->GetPaintMode != NULL) {
- apiEntry_0_2->GetPaintMode(printerContext,
+ if (opdev->globals.apiEntry_0_2->GetPaintMode != NULL) {
+ opdev->globals.apiEntry_0_2->GetPaintMode(printerContext,
&paintmode_0_2);
}
if (paintmode_0_2 != OPVP_paintModeTransparent) {
- if (apiEntry_0_2->SetROP != NULL) {
- apiEntry_0_2->SetROP(printerContext,
+ if (opdev->globals.apiEntry_0_2->SetROP != NULL) {
+ opdev->globals.apiEntry_0_2->SetROP(printerContext,
OPVP_0_2_ROP_S);
}
}
else {
- if (apiEntry_0_2->SetROP != NULL) {
- apiEntry_0_2->SetROP(printerContext,
+ if (opdev->globals.apiEntry_0_2->SetROP != NULL) {
+ opdev->globals.apiEntry_0_2->SetROP(printerContext,
OPVP_0_2_ROP_OR);
}
}
depth = 1;
} else {
- if (apiEntry_0_2->SetROP != NULL) {
- apiEntry_0_2->SetROP(printerContext,OPVP_0_2_ROP_S);
+ if (opdev->globals.apiEntry_0_2->SetROP != NULL) {
+ opdev->globals.apiEntry_0_2->SetROP(printerContext,OPVP_0_2_ROP_S);
}
- depth = colorDepth_0_2[colorSpace];
+ depth = colorDepth_0_2[opdev->globals.colorSpace];
}
OPVP_I2FIX(0,rect.p0.x);
@@ -755,17 +834,17 @@ DrawImageWrapper(
OPVP_I2FIX(destinationHeight,rect.p1.y);
if (imageFormat >= sizeof(iformat_1_0_to_0_2)/sizeof(OPVP_ImageFormat)) {
/* illegal image format */
- *ErrorNo = OPVP_PARAMERROR_0_2;
+ *(opdev->globals.ErrorNo) = OPVP_PARAMERROR_0_2;
return -1;
}
iformat_0_2 = iformat_1_0_to_0_2[imageFormat];
- r = apiEntry_0_2->DrawImage(printerContext,sourceWidth,sourceHeight,
+ r = opdev->globals.apiEntry_0_2->DrawImage(printerContext,sourceWidth,sourceHeight,
depth,iformat_0_2,rect,
sourcePitch*sourceHeight,
/* remove const */ (void *)imagedata);
- if (apiEntry_0_2->SetROP != NULL) {
- apiEntry_0_2->SetROP(printerContext,OPVP_0_2_ROP_P);
+ if (opdev->globals.apiEntry_0_2->SetROP != NULL) {
+ opdev->globals.apiEntry_0_2->SetROP(printerContext,OPVP_0_2_ROP_P);
}
return r;
@@ -773,6 +852,7 @@ DrawImageWrapper(
static opvp_result_t
StartDrawImageWrapper(
+ gx_device *dev,
opvp_dc_t printerContext,
opvp_int_t sourceWidth,
opvp_int_t sourceHeight,
@@ -786,28 +866,29 @@ StartDrawImageWrapper(
OPVP_ImageFormat iformat_0_2;
OPVP_PaintMode paintmode_0_2 = OPVP_paintModeTransparent;
int depth;
+ gx_device_opvp *opdev = (gx_device_opvp*)dev;
if (imageFormat == OPVP_IFORMAT_MASK) {
- if (apiEntry_0_2->GetPaintMode != NULL) {
- apiEntry_0_2->GetPaintMode(printerContext,
+ if (opdev->globals.apiEntry_0_2->GetPaintMode != NULL) {
+ opdev->globals.apiEntry_0_2->GetPaintMode(printerContext,
&paintmode_0_2);
}
if (paintmode_0_2 != OPVP_paintModeTransparent) {
- if (apiEntry_0_2->SetROP != NULL) {
- apiEntry_0_2->SetROP(printerContext,OPVP_0_2_ROP_S);
+ if (opdev->globals.apiEntry_0_2->SetROP != NULL) {
+ opdev->globals.apiEntry_0_2->SetROP(printerContext,OPVP_0_2_ROP_S);
}
}
else {
- if (apiEntry_0_2->SetROP != NULL) {
- apiEntry_0_2->SetROP(printerContext,OPVP_0_2_ROP_OR);
+ if (opdev->globals.apiEntry_0_2->SetROP != NULL) {
+ opdev->globals.apiEntry_0_2->SetROP(printerContext,OPVP_0_2_ROP_OR);
}
}
depth = 1;
} else {
- if (apiEntry_0_2->SetROP != NULL) {
- apiEntry_0_2->SetROP(printerContext,OPVP_0_2_ROP_S);
+ if (opdev->globals.apiEntry_0_2->SetROP != NULL) {
+ opdev->globals.apiEntry_0_2->SetROP(printerContext,OPVP_0_2_ROP_S);
}
- depth = colorDepth_0_2[colorSpace];
+ depth = colorDepth_0_2[opdev->globals.colorSpace];
}
OPVP_I2FIX(0,rect.p0.x);
@@ -816,310 +897,518 @@ StartDrawImageWrapper(
OPVP_I2FIX(destinationHeight,rect.p1.y);
if (imageFormat >= sizeof(iformat_1_0_to_0_2)/sizeof(OPVP_ImageFormat)) {
/* illegal image format */
- *ErrorNo = OPVP_PARAMERROR_0_2;
+ *(opdev->globals.ErrorNo) = OPVP_PARAMERROR_0_2;
return -1;
}
iformat_0_2 = iformat_1_0_to_0_2[imageFormat];
- r = apiEntry_0_2->StartDrawImage(printerContext,
- sourceWidth,sourceHeight,
- depth,iformat_0_2,rect);
+ r = opdev->globals.apiEntry_0_2->StartDrawImage(printerContext,
+ sourceWidth, sourceHeight,
+ depth, iformat_0_2, rect);
return r;
}
static opvp_result_t
-EndDrawImageWrapper(opvp_dc_t printerContext)
+EndDrawImageWrapper(gx_device *dev, opvp_dc_t printerContext)
{
int r;
+ gx_device_opvp *opdev = (gx_device_opvp*)dev;
- r = apiEntry_0_2->EndDrawImage(printerContext);
+ r = opdev->globals.apiEntry_0_2->EndDrawImage(printerContext);
/* make sure rop is pattern copy */
- if (apiEntry_0_2->SetROP != NULL) {
- apiEntry_0_2->SetROP(printerContext,OPVP_0_2_ROP_P);
+ if (opdev->globals.apiEntry_0_2->SetROP != NULL) {
+ opdev->globals.apiEntry_0_2->SetROP(printerContext,OPVP_0_2_ROP_P);
}
return r;
}
+/* Not used
static opvp_result_t
QueryDeviceCapabilityWrapper(
+ gx_device *dev,
opvp_dc_t printerContext,
opvp_queryinfoflags_t queryflag,
opvp_int_t *buflen,
opvp_char_t *infoBuf)
{
- return apiEntry_0_2->QueryDeviceCapability(printerContext,queryflag,
+ gx_device_opvp *opdev = (gx_device_opvp*)dev;
+
+ return opdev->globals.apiEntry_0_2->QueryDeviceCapability(printerContext,queryflag,
*buflen,(char *)infoBuf);
}
static opvp_result_t
QueryDeviceInfoWrapper(
+ gx_device *dev,
opvp_dc_t printerContext,
opvp_queryinfoflags_t queryflag,
opvp_int_t *buflen,
opvp_char_t *infoBuf)
{
+ gx_device_opvp *opdev = (gx_device_opvp*)dev;
+
if (queryflag & OPVP_QF_MEDIACOPY) {
- *ErrorNo = OPVP_NOTSUPPORTED;
+ *(opdev->globals.ErrorNo) = OPVP_NOTSUPPORTED;
return -1;
}
if (queryflag & OPVP_QF_PRINTREGION) {
queryflag &= ~OPVP_QF_PRINTREGION;
queryflag |= 0x0020000;
}
- return apiEntry_0_2->QueryDeviceInfo(printerContext,queryflag,
- *buflen,(char *)infoBuf);
+ return opdev->globals.apiEntry_0_2->QueryDeviceInfo(printerContext, queryflag,
+ *buflen, (char *)infoBuf);
}
+*/
static opvp_result_t
-SetLineDashWrapper(opvp_dc_t printerContext, opvp_int_t num,
+SetLineDashWrapper(gx_device *dev, opvp_dc_t printerContext, opvp_int_t num,
const opvp_fix_t *pdash)
{
- return apiEntry_0_2->SetLineDash(printerContext,
- /* remove const */ (OPVP_Fix *)pdash,num);
+ gx_device_opvp *opdev = (gx_device_opvp*)dev;
+
+ return opdev->globals.apiEntry_0_2->SetLineDash(printerContext, num,
+ /* remove const */ (OPVP_Fix *)pdash);
}
+/* Not used
static opvp_result_t
-GetLineDashWrapper(opvp_dc_t printerContext, opvp_int_t *pnum,
+GetLineDashWrapper(gx_device* dev, opvp_dc_t printerContext, opvp_int_t *pnum,
opvp_fix_t *pdash)
{
- return apiEntry_0_2->GetLineDash(printerContext,
+ gx_device_opvp *opdev = (gx_device_opvp*)dev;
+
+ return opdev->globals.apiEntry_0_2->GetLineDash(printerContext,
pdash,pnum);
}
+*/
static opvp_dc_t
OpenPrinterWrapper(
+ gx_device *dev,
opvp_int_t outputFD,
const opvp_char_t *printerModel,
const opvp_int_t apiVersion[2],
opvp_api_procs_t **apiProcs)
{
+ gx_device_opvp *opdev = (gx_device_opvp*)dev;
+
opvp_dc_t dc = -1;
- if (OpenPrinter != NULL) {
- dc = (*OpenPrinter)(outputFD,printerModel,apiVersion,apiProcs);
+ if (opdev->globals.OpenPrinter != NULL) {
+ dc = (*(opdev->globals.OpenPrinter))(outputFD, printerModel, apiVersion, apiProcs);
} else {
/* try version 0.2 */
- if (OpenPrinter_0_2 != NULL) {
+ if (opdev->globals.OpenPrinter_0_2 != NULL) {
static opvp_api_procs_t tEntry;
- int nApiEntry;
+ int nApiEntry; /* Alias with prior global. Kept as is */
- dc = (*OpenPrinter_0_2)(outputFD,
+ dc = (*(opdev->globals.OpenPrinter_0_2))(outputFD,
/* remove const */
(char *)printerModel,
- &nApiEntry,&apiEntry_0_2);
+ &nApiEntry,
+ &(opdev->globals.apiEntry_0_2));
/* setting functions */
tEntry.opvpClosePrinter
- = apiEntry_0_2->ClosePrinter;
+ = opdev->globals.apiEntry_0_2->ClosePrinter;
tEntry.opvpStartJob
= (opvp_result_t (*)(opvp_int_t,
const opvp_char_t*))
- apiEntry_0_2->StartJob;
- tEntry.opvpEndJob = apiEntry_0_2->EndJob;
+ opdev->globals.apiEntry_0_2->StartJob;
+ tEntry.opvpEndJob = opdev->globals.apiEntry_0_2->EndJob;
tEntry.opvpAbortJob = NULL;
tEntry.opvpStartDoc
= (opvp_result_t (*)(opvp_dc_t,
const opvp_char_t*))
- apiEntry_0_2->StartDoc;
- tEntry.opvpEndDoc = apiEntry_0_2->EndDoc;
- if (apiEntry_0_2->StartPage != NULL) {
- tEntry.opvpStartPage = StartPageWrapper;
- } else {
- tEntry.opvpStartPage = NULL;
- }
- tEntry.opvpEndPage = apiEntry_0_2->EndPage;
-
- if (apiEntry_0_2->QueryDeviceCapability != NULL) {
- tEntry.opvpQueryDeviceCapability
- = QueryDeviceCapabilityWrapper;
- } else {
- tEntry.opvpQueryDeviceCapability = NULL;
- }
-
- if (apiEntry_0_2->QueryDeviceInfo != NULL) {
- tEntry.opvpQueryDeviceInfo = QueryDeviceInfoWrapper;
- } else {
- tEntry.opvpQueryDeviceInfo = NULL;
- }
-
- tEntry.opvpResetCTM = apiEntry_0_2->ResetCTM;
+ opdev->globals.apiEntry_0_2->StartDoc;
+ tEntry.opvpEndDoc = opdev->globals.apiEntry_0_2->EndDoc;
+ tEntry.opvpStartPage = NULL;
+ tEntry.opvpEndPage = opdev->globals.apiEntry_0_2->EndPage;
+ tEntry.opvpQueryDeviceCapability = NULL;
+ tEntry.opvpQueryDeviceInfo = NULL;
+ tEntry.opvpResetCTM = opdev->globals.apiEntry_0_2->ResetCTM;
tEntry.opvpSetCTM = (opvp_result_t (*)(opvp_dc_t,
const opvp_ctm_t*))
- apiEntry_0_2->SetCTM;
+ opdev->globals.apiEntry_0_2->SetCTM;
tEntry.opvpGetCTM = (opvp_result_t (*)(opvp_dc_t,opvp_ctm_t*))
- apiEntry_0_2->GetCTM;
- if (apiEntry_0_2->InitGS != NULL) {
- tEntry.opvpInitGS = InitGSWrapper;
- } else {
- tEntry.opvpInitGS = NULL;
- }
- tEntry.opvpSaveGS = apiEntry_0_2->SaveGS;
- tEntry.opvpRestoreGS = apiEntry_0_2->RestoreGS;
- if (apiEntry_0_2->QueryColorSpace != NULL) {
- tEntry.opvpQueryColorSpace = QueryColorSpaceWrapper;
- } else {
- tEntry.opvpQueryColorSpace = NULL;
- }
- if (apiEntry_0_2->SetColorSpace != NULL) {
- tEntry.opvpSetColorSpace = SetColorSpaceWrapper;
- } else {
- tEntry.opvpSetColorSpace = NULL;
- }
- if (apiEntry_0_2->GetColorSpace != NULL) {
- tEntry.opvpGetColorSpace = GetColorSpaceWrapper;
- } else {
- tEntry.opvpGetColorSpace = NULL;
- }
+ opdev->globals.apiEntry_0_2->GetCTM;
+ tEntry.opvpInitGS = NULL;
+ tEntry.opvpSaveGS = opdev->globals.apiEntry_0_2->SaveGS;
+ tEntry.opvpRestoreGS = opdev->globals.apiEntry_0_2->RestoreGS;
+ tEntry.opvpQueryColorSpace = NULL;
+ tEntry.opvpSetColorSpace = NULL;
+ tEntry.opvpGetColorSpace = NULL;
+
tEntry.opvpSetFillMode
= (opvp_result_t (*)(opvp_dc_t,opvp_fillmode_t))
- apiEntry_0_2->SetFillMode;
+ opdev->globals.apiEntry_0_2->SetFillMode;
tEntry.opvpGetFillMode
= (opvp_result_t (*)(opvp_dc_t,opvp_fillmode_t*))
- apiEntry_0_2->GetFillMode;
- tEntry.opvpSetAlphaConstant = apiEntry_0_2->SetAlphaConstant;
- tEntry.opvpGetAlphaConstant = apiEntry_0_2->GetAlphaConstant;
- tEntry.opvpSetLineWidth = apiEntry_0_2->SetLineWidth;
- tEntry.opvpGetLineWidth = apiEntry_0_2->GetLineWidth;
- if (apiEntry_0_2->SetLineDash != NULL) {
- tEntry.opvpSetLineDash = SetLineDashWrapper;
- } else {
- tEntry.opvpSetLineDash = NULL;
- }
- if (apiEntry_0_2->GetLineDash != NULL) {
- tEntry.opvpGetLineDash = GetLineDashWrapper;
- } else {
- tEntry.opvpGetLineDash = NULL;
- }
+ opdev->globals.apiEntry_0_2->GetFillMode;
+ tEntry.opvpSetAlphaConstant = opdev->globals.apiEntry_0_2->SetAlphaConstant;
+ tEntry.opvpGetAlphaConstant = opdev->globals.apiEntry_0_2->GetAlphaConstant;
+ tEntry.opvpSetLineWidth = opdev->globals.apiEntry_0_2->SetLineWidth;
+ tEntry.opvpGetLineWidth = opdev->globals.apiEntry_0_2->GetLineWidth;
+ tEntry.opvpSetLineDash = NULL;
+ tEntry.opvpGetLineDash = NULL;
+
tEntry.opvpSetLineDashOffset
- = apiEntry_0_2->SetLineDashOffset;
+ = opdev->globals.apiEntry_0_2->SetLineDashOffset;
tEntry.opvpGetLineDashOffset
- = apiEntry_0_2->GetLineDashOffset;
+ = opdev->globals.apiEntry_0_2->GetLineDashOffset;
tEntry.opvpSetLineStyle
= (opvp_result_t (*)(opvp_dc_t,opvp_linestyle_t))
- apiEntry_0_2->SetLineStyle;
+ opdev->globals.apiEntry_0_2->SetLineStyle;
tEntry.opvpGetLineStyle
= (opvp_result_t (*)(opvp_dc_t,opvp_linestyle_t*))
- apiEntry_0_2->GetLineStyle;
+ opdev->globals.apiEntry_0_2->GetLineStyle;
tEntry.opvpSetLineCap
= (opvp_result_t (*)(opvp_dc_t,opvp_linecap_t))
- apiEntry_0_2->SetLineCap;
+ opdev->globals.apiEntry_0_2->SetLineCap;
tEntry.opvpGetLineCap
= (opvp_result_t (*)(opvp_dc_t,opvp_linecap_t*))
- apiEntry_0_2->GetLineCap;
+ opdev->globals.apiEntry_0_2->GetLineCap;
tEntry.opvpSetLineJoin
= (opvp_result_t (*)(opvp_dc_t,opvp_linejoin_t))
- apiEntry_0_2->SetLineJoin;
+ opdev->globals.apiEntry_0_2->SetLineJoin;
tEntry.opvpGetLineJoin
= (opvp_result_t (*)(opvp_dc_t,opvp_linejoin_t*))
- apiEntry_0_2->GetLineJoin;
- tEntry.opvpSetMiterLimit = apiEntry_0_2->SetMiterLimit;
- tEntry.opvpGetMiterLimit = apiEntry_0_2->GetMiterLimit;
+ opdev->globals.apiEntry_0_2->GetLineJoin;
+ tEntry.opvpSetMiterLimit = opdev->globals.apiEntry_0_2->SetMiterLimit;
+ tEntry.opvpGetMiterLimit = opdev->globals.apiEntry_0_2->GetMiterLimit;
tEntry.opvpSetPaintMode
= (opvp_result_t (*)(opvp_dc_t,opvp_paintmode_t))
- apiEntry_0_2->SetPaintMode;
+ opdev->globals.apiEntry_0_2->SetPaintMode;
tEntry.opvpGetPaintMode
= (opvp_result_t (*)(opvp_dc_t,opvp_paintmode_t*))
- apiEntry_0_2->GetPaintMode;
- if (apiEntry_0_2->SetStrokeColor != NULL) {
- tEntry.opvpSetStrokeColor = SetStrokeColorWrapper;
- } else {
- tEntry.opvpSetStrokeColor = NULL;
- }
- if (apiEntry_0_2->SetFillColor != NULL) {
- tEntry.opvpSetFillColor = SetFillColorWrapper;
- } else {
- tEntry.opvpSetFillColor = NULL;
- }
- if (apiEntry_0_2->SetBgColor != NULL) {
- tEntry.opvpSetBgColor = SetBgColorWrapper;
- } else {
- tEntry.opvpSetBgColor = NULL;
- }
- tEntry.opvpNewPath = apiEntry_0_2->NewPath;
- tEntry.opvpEndPath = apiEntry_0_2->EndPath;
- tEntry.opvpStrokePath = apiEntry_0_2->StrokePath;
- tEntry.opvpFillPath = apiEntry_0_2->FillPath;
- tEntry.opvpStrokeFillPath = apiEntry_0_2->StrokeFillPath;
+ opdev->globals.apiEntry_0_2->GetPaintMode;
+ tEntry.opvpSetStrokeColor = NULL;
+ tEntry.opvpSetFillColor = NULL;
+ tEntry.opvpSetBgColor = NULL;
+ tEntry.opvpNewPath = opdev->globals.apiEntry_0_2->NewPath;
+ tEntry.opvpEndPath = opdev->globals.apiEntry_0_2->EndPath;
+ tEntry.opvpStrokePath = opdev->globals.apiEntry_0_2->StrokePath;
+ tEntry.opvpFillPath = opdev->globals.apiEntry_0_2->FillPath;
+ tEntry.opvpStrokeFillPath = opdev->globals.apiEntry_0_2->StrokeFillPath;
tEntry.opvpSetClipPath
= (opvp_result_t (*)(opvp_dc_t,opvp_cliprule_t))
- apiEntry_0_2->SetClipPath;
- tEntry.opvpResetClipPath = apiEntry_0_2->ResetClipPath;
- tEntry.opvpSetCurrentPoint = apiEntry_0_2->SetCurrentPoint;
+ opdev->globals.apiEntry_0_2->SetClipPath;
+ tEntry.opvpResetClipPath = opdev->globals.apiEntry_0_2->ResetClipPath;
+ tEntry.opvpSetCurrentPoint = opdev->globals.apiEntry_0_2->SetCurrentPoint;
tEntry.opvpLinePath
= (opvp_result_t (*)(opvp_dc_t,
opvp_pathmode_t,opvp_int_t,
const opvp_point_t*))
- apiEntry_0_2->LinePath;
+ opdev->globals.apiEntry_0_2->LinePath;
tEntry.opvpPolygonPath
= (opvp_result_t (*)(opvp_dc_t,opvp_int_t,
const opvp_int_t*,
const opvp_point_t*))
- apiEntry_0_2->PolygonPath;
+ opdev->globals.apiEntry_0_2->PolygonPath;
tEntry.opvpRectanglePath
= (opvp_result_t (*)(opvp_dc_t,opvp_int_t,
const opvp_rectangle_t*))
- apiEntry_0_2->RectanglePath;
+ opdev->globals.apiEntry_0_2->RectanglePath;
tEntry.opvpRoundRectanglePath
= (opvp_result_t (*)(opvp_dc_t,opvp_int_t,
const opvp_roundrectangle_t*))
- apiEntry_0_2->RoundRectanglePath;
+ opdev->globals.apiEntry_0_2->RoundRectanglePath;
tEntry.opvpBezierPath
= (opvp_result_t (*)(opvp_dc_t,opvp_int_t,
const opvp_point_t*))
- apiEntry_0_2->BezierPath;
+ opdev->globals.apiEntry_0_2->BezierPath;
tEntry.opvpArcPath
= (opvp_result_t (*)(opvp_dc_t,opvp_arcmode_t,
opvp_arcdir_t,opvp_fix_t,opvp_fix_t,opvp_fix_t,
opvp_fix_t,opvp_fix_t,opvp_fix_t,opvp_fix_t,
- opvp_fix_t))apiEntry_0_2->ArcPath;
- if (apiEntry_0_2->DrawImage != NULL) {
- tEntry.opvpDrawImage = DrawImageWrapper;
- } else {
- tEntry.opvpDrawImage = NULL;
- }
- if (apiEntry_0_2->StartDrawImage != NULL) {
- tEntry.opvpStartDrawImage = StartDrawImageWrapper;
- } else {
- tEntry.opvpStartDrawImage = NULL;
- }
+ opvp_fix_t))opdev->globals.apiEntry_0_2->ArcPath;
+ tEntry.opvpDrawImage = NULL;
+ tEntry.opvpStartDrawImage = NULL;
tEntry.opvpTransferDrawImage =
(opvp_result_t (*)(opvp_dc_t,opvp_int_t,const void*))
- apiEntry_0_2->TransferDrawImage;
- if (apiEntry_0_2->EndDrawImage != NULL) {
- tEntry.opvpEndDrawImage = EndDrawImageWrapper;
- } else {
- tEntry.opvpEndDrawImage = NULL;
- }
- tEntry.opvpStartScanline = apiEntry_0_2->StartScanline;
+ opdev->globals.apiEntry_0_2->TransferDrawImage;
+ tEntry.opvpEndDrawImage = NULL;
+ tEntry.opvpStartScanline = opdev->globals.apiEntry_0_2->StartScanline;
tEntry.opvpScanline
= (opvp_result_t (*)(opvp_dc_t,opvp_int_t,
const opvp_int_t*))
- apiEntry_0_2->Scanline;
- tEntry.opvpEndScanline = apiEntry_0_2->EndScanline;
- tEntry.opvpStartRaster = apiEntry_0_2->StartRaster;
+ opdev->globals.apiEntry_0_2->Scanline;
+ tEntry.opvpEndScanline = opdev->globals.apiEntry_0_2->EndScanline;
+ tEntry.opvpStartRaster = opdev->globals.apiEntry_0_2->StartRaster;
tEntry.opvpTransferRasterData
= (opvp_result_t (*)(opvp_dc_t,opvp_int_t,
const opvp_byte_t*))
- apiEntry_0_2->TransferRasterData;
- tEntry.opvpSkipRaster = apiEntry_0_2->SkipRaster;
- tEntry.opvpEndRaster = apiEntry_0_2->EndRaster;
- tEntry.opvpStartStream = apiEntry_0_2->StartStream;
+ opdev->globals.apiEntry_0_2->TransferRasterData;
+ tEntry.opvpSkipRaster = opdev->globals.apiEntry_0_2->SkipRaster;
+ tEntry.opvpEndRaster = opdev->globals.apiEntry_0_2->EndRaster;
+ tEntry.opvpStartStream = opdev->globals.apiEntry_0_2->StartStream;
tEntry.opvpTransferStreamData
= (opvp_result_t (*)(opvp_dc_t,opvp_int_t,
const void *))
- apiEntry_0_2->TransferStreamData;
- tEntry.opvpEndStream = apiEntry_0_2->EndStream;
+ opdev->globals.apiEntry_0_2->TransferStreamData;
+ tEntry.opvpEndStream = opdev->globals.apiEntry_0_2->EndStream;
*apiProcs = &tEntry;
- GetLastError = GetLastError_0_2;
+ opdev->globals.GetLastError = GetLastError_0_2;
}
}
return dc;
}
+/* Set of methods to separate the 0.2 and 1.0 calls AND deal with the prior use of globals */
+static opvp_result_t
+gsopvpStartPage(gx_device* dev, opvp_dc_t printerContext, const opvp_char_t* pageInfo)
+{
+ gx_device_opvp* opdev = (gx_device_opvp*)dev;
+
+ if (opdev->globals.apiEntry_0_2 != NULL &&
+ opdev->globals.apiEntry_0_2->StartPage) {
+ return StartPageWrapper(dev, printerContext, pageInfo);
+ } else if (opdev->globals.apiEntry->opvpStartPage) {
+ return opdev->globals.apiEntry->opvpStartPage(printerContext, pageInfo);
+ } else
+ return OPVP_FATALERROR;
+}
+
+/* Not used
+static opvp_result_t
+gsopvpQueryDeviceCapability(
+ gx_device* dev,
+ opvp_dc_t printerContext,
+ opvp_queryinfoflags_t queryflag,
+ opvp_int_t* buflen,
+ opvp_char_t* infoBuf)
+{
+ gx_device_opvp* opdev = (gx_device_opvp*)dev;
+
+ if (opdev->globals.apiEntry_0_2 != NULL &&
+ opdev->globals.apiEntry_0_2->QueryDeviceCapability) {
+ return QueryDeviceCapabilityWrapper(dev, printerContext, queryflag, buflen, infoBuf);
+ } else if (opdev->globals.apiEntry->opvpQueryDeviceCapability) {
+ return opdev->globals.apiEntry->opvpQueryDeviceCapability(printerContext, queryflag, buflen, infoBuf);
+ } else
+ return OPVP_FATALERROR;
+}
+
+static opvp_result_t
+gsopvpQueryDeviceInfo(
+ gx_device* dev,
+ opvp_dc_t printerContext,
+ opvp_queryinfoflags_t queryflag,
+ opvp_int_t* buflen,
+ opvp_char_t* infoBuf)
+{
+ gx_device_opvp* opdev = (gx_device_opvp*)dev;
+
+ if (opdev->globals.apiEntry_0_2 != NULL &&
+ opdev->globals.apiEntry_0_2->QueryDeviceCapability) {
+ return QueryDeviceInfoWrapper(dev, printerContext, queryflag, buflen, infoBuf);
+ } else if (opdev->globals.apiEntry->opvpQueryDeviceCapability) {
+ return opdev->globals.apiEntry->opvpQueryDeviceInfo(printerContext, queryflag, buflen, infoBuf);
+ } else
+ return OPVP_FATALERROR;
+}
+*/
+
+static opvp_result_t
+gsopvpInitGS(gx_device* dev, opvp_dc_t printerContext)
+{
+ gx_device_opvp* opdev = (gx_device_opvp*)dev;
+
+ if (opdev->globals.apiEntry_0_2 != NULL &&
+ opdev->globals.apiEntry_0_2->InitGS) {
+ return InitGSWrapper(dev, printerContext);
+ } else if (opdev->globals.apiEntry->opvpInitGS) {
+ return opdev->globals.apiEntry->opvpInitGS(printerContext);
+ } else
+ return OPVP_FATALERROR;
+}
+
+static opvp_result_t
+gsopvpQueryColorSpace(gx_device* dev, opvp_dc_t printerContext, opvp_int_t* pnum,
+ opvp_cspace_t* pcspace)
+{
+ gx_device_opvp* opdev = (gx_device_opvp*)dev;
+
+ if (opdev->globals.apiEntry_0_2 != NULL &&
+ opdev->globals.apiEntry_0_2->QueryColorSpace) {
+ return QueryColorSpaceWrapper(dev, printerContext, pnum, pcspace);
+ } else if (opdev->globals.apiEntry->opvpQueryColorSpace) {
+ return opdev->globals.apiEntry->opvpQueryColorSpace(printerContext, pnum, pcspace);
+ } else
+ return OPVP_FATALERROR;
+}
+
+static opvp_result_t
+gsopvpSetColorSpace(gx_device* dev, opvp_dc_t printerContext, opvp_cspace_t cspace)
+{
+ gx_device_opvp* opdev = (gx_device_opvp*)dev;
+
+ if (opdev->globals.apiEntry_0_2 != NULL &&
+ opdev->globals.apiEntry_0_2->SetColorSpace) {
+ return SetColorSpaceWrapper(dev, printerContext, cspace);
+ } else if (opdev->globals.apiEntry->opvpQueryColorSpace) {
+ return opdev->globals.apiEntry->opvpSetColorSpace(printerContext, cspace);
+ } else
+ return OPVP_FATALERROR;
+}
+
+/* Not used
+static opvp_result_t
+gsopvpGetColorSpace(gx_device* dev, opvp_dc_t printerContext, opvp_cspace_t* pcspace)
+{
+ gx_device_opvp* opdev = (gx_device_opvp*)dev;
+
+ if (opdev->globals.apiEntry_0_2 != NULL &&
+ opdev->globals.apiEntry_0_2->GetColorSpace) {
+ return GetColorSpaceWrapper(dev, printerContext, pcspace);
+ } else if (opdev->globals.apiEntry->opvpGetColorSpace) {
+ return opdev->globals.apiEntry->opvpGetColorSpace(printerContext, pcspace);
+ } else
+ return OPVP_FATALERROR;
+}
+*/
+
+static opvp_result_t
+gsopvpSetLineDash(gx_device* dev, opvp_dc_t printerContext, opvp_int_t num,
+ const opvp_fix_t* pdash)
+{
+ gx_device_opvp* opdev = (gx_device_opvp*)dev;
+
+ if (opdev->globals.apiEntry_0_2 != NULL &&
+ opdev->globals.apiEntry_0_2->SetLineDash) {
+ return SetLineDashWrapper(dev, printerContext, num, pdash);
+ } else if (opdev->globals.apiEntry->opvpSetLineDash) {
+ return opdev->globals.apiEntry->opvpSetLineDash(printerContext, num, pdash);
+ } else
+ return OPVP_FATALERROR;
+}
+
+/* Not used
+static opvp_result_t
+gsopvpGetLineDash(gx_device* dev, opvp_dc_t printerContext, opvp_int_t* pnum,
+ opvp_fix_t* pdash)
+{
+ gx_device_opvp* opdev = (gx_device_opvp*)dev;
+
+ if (opdev->globals.apiEntry_0_2 != NULL &&
+ opdev->globals.apiEntry_0_2->GetLineDash) {
+ return GetLineDashWrapper(dev, printerContext, pnum, pdash);
+ } else if (opdev->globals.apiEntry->opvpGetLineDash) {
+ return opdev->globals.apiEntry->opvpGetLineDash(printerContext, pnum, pdash);
+ } else
+ return OPVP_FATALERROR;
+}
+*/
+
+static opvp_result_t
+gsopvpSetStrokeColor(gx_device* dev, opvp_dc_t printerContext, const opvp_brush_t* brush)
+{
+ gx_device_opvp* opdev = (gx_device_opvp*)dev;
+
+ if (opdev->globals.apiEntry_0_2 != NULL &&
+ opdev->globals.apiEntry_0_2->SetStrokeColor) {
+ return SetStrokeColorWrapper(dev, printerContext, brush);
+ } else if (opdev->globals.apiEntry->opvpSetStrokeColor) {
+ return opdev->globals.apiEntry->opvpSetStrokeColor(printerContext, brush);
+ } else
+ return OPVP_FATALERROR;
+}
+
+static opvp_result_t
+gsopvpSetFillColor(gx_device* dev, opvp_dc_t printerContext, const opvp_brush_t* brush)
+{
+ gx_device_opvp* opdev = (gx_device_opvp*)dev;
+
+ if (opdev->globals.apiEntry_0_2 != NULL &&
+ opdev->globals.apiEntry_0_2->SetFillColor) {
+ return SetFillColorWrapper(dev, printerContext, brush);
+ } else if (opdev->globals.apiEntry->opvpSetFillColor) {
+ return opdev->globals.apiEntry->opvpSetFillColor(printerContext, brush);
+ } else
+ return OPVP_FATALERROR;
+}
+
+static opvp_result_t
+gsopvpSetBgColor(gx_device* dev, opvp_dc_t printerContext, const opvp_brush_t* brush)
+{
+ gx_device_opvp* opdev = (gx_device_opvp*)dev;
+
+ if (opdev->globals.apiEntry_0_2 != NULL &&
+ opdev->globals.apiEntry_0_2->SetBgColor) {
+ return SetBgColorWrapper(dev, printerContext, brush);
+ } else if (opdev->globals.apiEntry->opvpSetBgColor) {
+ return opdev->globals.apiEntry->opvpSetBgColor(printerContext, brush);
+ } else
+ return OPVP_FATALERROR;
+}
+
+static opvp_result_t
+gsopvpDrawImage(
+ gx_device* dev,
+ opvp_dc_t printerContext,
+ opvp_int_t sourceWidth,
+ opvp_int_t sourceHeight,
+ opvp_int_t sourcePitch,
+ opvp_imageformat_t imageFormat,
+ opvp_int_t destinationWidth,
+ opvp_int_t destinationHeight,
+ const void* imagedata)
+{
+ gx_device_opvp* opdev = (gx_device_opvp*)dev;
+
+ if (opdev->globals.apiEntry_0_2 != NULL &&
+ opdev->globals.apiEntry_0_2->DrawImage) {
+ return DrawImageWrapper(dev, printerContext, sourceWidth, sourceHeight,
+ sourcePitch, imageFormat, destinationWidth, destinationHeight, imagedata);
+ } else if (opdev->globals.apiEntry->opvpDrawImage) {
+ return opdev->globals.apiEntry->opvpDrawImage(printerContext, sourceWidth, sourceHeight,
+ sourcePitch, imageFormat, destinationWidth, destinationHeight, imagedata);
+ } else
+ return OPVP_FATALERROR;
+}
+
+static opvp_result_t
+gsopvpStartDrawImage(
+ gx_device* dev,
+ opvp_dc_t printerContext,
+ opvp_int_t sourceWidth,
+ opvp_int_t sourceHeight,
+ opvp_int_t sourcePitch,
+ opvp_imageformat_t imageFormat,
+ opvp_int_t destinationWidth,
+ opvp_int_t destinationHeight)
+{
+ gx_device_opvp* opdev = (gx_device_opvp*)dev;
+
+ if (opdev->globals.apiEntry_0_2 != NULL &&
+ opdev->globals.apiEntry_0_2->StartDrawImage) {
+ return StartDrawImageWrapper(dev, printerContext, sourceWidth, sourceHeight,
+ sourcePitch, imageFormat, destinationWidth, destinationHeight);
+ } else if (opdev->globals.apiEntry->opvpStartDrawImage) {
+ return opdev->globals.apiEntry->opvpStartDrawImage(printerContext, sourceWidth, sourceHeight,
+ sourcePitch, imageFormat, destinationWidth, destinationHeight);
+ } else
+ return OPVP_FATALERROR;
+}
+
+static opvp_result_t
+gsopvpEndDrawImage(gx_device* dev, opvp_dc_t printerContext)
+{
+ gx_device_opvp* opdev = (gx_device_opvp*)dev;
+
+ if (opdev->globals.apiEntry_0_2 != NULL &&
+ opdev->globals.apiEntry_0_2->EndDrawImage) {
+ return EndDrawImageWrapper(dev, printerContext);
+ } else if (opdev->globals.apiEntry->opvpEndDrawImage) {
+ return opdev->globals.apiEntry->opvpEndDrawImage(printerContext);
+ } else
+ return OPVP_FATALERROR;
+}
+
/* for image */
static const
gx_image_enum_procs_t opvp_image_enum_procs =
@@ -1167,27 +1456,28 @@ typedef struct bbox_image_enum_s {
/* initialize Graphic State */
/* No defaults in OPVP 1.0 */
static int
-InitGS(void)
+InitGS(gx_device* dev)
{
- if (apiEntry->opvpInitGS != NULL) {
- if (apiEntry->opvpInitGS(printerContext) != OPVP_OK) {
- return -1;
- }
+ gx_device_opvp *opdev = (gx_device_opvp*)dev;
+
+ if (gsopvpInitGS(dev, opdev->globals.printerContext) != OPVP_OK) {
+ return -1;
}
- if (apiEntry->opvpSetColorSpace != NULL) {
- if (apiEntry->opvpSetColorSpace(printerContext,colorSpace)
- != OPVP_OK) {
+
+ if (opdev->globals.apiEntry->opvpSetColorSpace != NULL) {
+ if (opdev->globals.apiEntry->opvpSetColorSpace(opdev->globals.printerContext,
+ opdev->globals.colorSpace) != OPVP_OK){
return -1;
}
}
- if (apiEntry->opvpSetPaintMode != NULL) {
- if (apiEntry->opvpSetPaintMode(printerContext,
+ if (opdev->globals.apiEntry->opvpSetPaintMode != NULL) {
+ if (opdev->globals.apiEntry->opvpSetPaintMode(opdev->globals.printerContext,
OPVP_PAINTMODE_TRANSPARENT) != OPVP_OK) {
return -1;
}
}
- if (apiEntry->opvpSetAlphaConstant != NULL) {
- if (apiEntry->opvpSetAlphaConstant(printerContext,1.0)
+ if (opdev->globals.apiEntry->opvpSetAlphaConstant != NULL) {
+ if (opdev->globals.apiEntry->opvpSetAlphaConstant(opdev->globals.printerContext,1.0)
!= OPVP_OK) {
return -1;
}
@@ -1203,20 +1493,20 @@ opvp_startpage(gx_device *dev)
int ecode = 0;
opvp_result_t r = -1;
static char *page_info = NULL;
+ gx_device_opvp *opdev = (gx_device_opvp*)dev;
/* page info */
page_info = opvp_alloc_string(&page_info, OPVP_INFO_PREFIX);
page_info = opvp_cat_string(&page_info, opvp_gen_page_info(dev));
/* call StartPage */
- if (printerContext != -1) {
- if (apiEntry->opvpStartPage)
- r = apiEntry->opvpStartPage(printerContext,
- (opvp_char_t *)opvp_to_utf8(page_info));
+ if (opdev->globals.printerContext != -1) {
+ r = gsopvpStartPage(dev, opdev->globals.printerContext,
+ (opvp_char_t*)opvp_to_utf8(page_info));
if (r != OPVP_OK) {
ecode = -1;
} else {
- ecode = InitGS();
+ ecode = InitGS(dev);
}
}
@@ -1224,15 +1514,16 @@ opvp_startpage(gx_device *dev)
}
static int
-opvp_endpage(void)
+opvp_endpage(gx_device* dev)
{
int ecode = 0;
opvp_result_t r = -1;
+ gx_device_opvp *opdev = (gx_device_opvp*)dev;
/* call EndPage */
- if (printerContext != -1) {
- if (apiEntry->opvpEndPage)
- r = apiEntry->opvpEndPage(printerContext);
+ if (opdev->globals.printerContext != -1) {
+ if (opdev->globals.apiEntry->opvpEndPage)
+ r = opdev->globals.apiEntry->opvpEndPage(opdev->globals.printerContext);
if (r != OPVP_OK) {
ecode = -1;
}
@@ -1304,32 +1595,33 @@ opvp_adjust_num_string(char *num_string)
}
static char **
-opvp_gen_dynamic_lib_name(void)
+opvp_gen_dynamic_lib_name(gx_device* dev)
{
static char *buff[5] = {NULL,NULL,NULL,NULL,NULL};
char tbuff[OPVP_BUFF_SIZE];
+ gx_device_opvp *opdev = (gx_device_opvp*)dev;
- if (!vectorDriver) {
+ if (!(opdev->globals.vectorDriver)) {
return NULL;
}
memset((void*)tbuff, 0, OPVP_BUFF_SIZE);
- strncpy(tbuff, vectorDriver, OPVP_BUFF_SIZE - 1);
+ strncpy(tbuff, opdev->globals.vectorDriver, OPVP_BUFF_SIZE - 1);
opvp_alloc_string(&(buff[0]), tbuff);
memset((void*)tbuff, 0, OPVP_BUFF_SIZE);
- strncpy(tbuff, vectorDriver, OPVP_BUFF_SIZE - 4);
+ strncpy(tbuff, opdev->globals.vectorDriver, OPVP_BUFF_SIZE - 4);
strcat(tbuff, ".so");
opvp_alloc_string(&(buff[1]), tbuff);
memset((void*)tbuff, 0, OPVP_BUFF_SIZE);
- strncpy(tbuff, vectorDriver, OPVP_BUFF_SIZE - 5);
+ strncpy(tbuff, opdev->globals.vectorDriver, OPVP_BUFF_SIZE - 5);
strcat(tbuff, ".dll");
opvp_alloc_string(&(buff[2]), tbuff);
memset((void*)tbuff, 0, OPVP_BUFF_SIZE);
strcpy(tbuff, "lib");
- strncat(tbuff, vectorDriver, OPVP_BUFF_SIZE - 7);
+ strncat(tbuff, opdev->globals.vectorDriver, OPVP_BUFF_SIZE - 7);
strcat(tbuff, ".so");
opvp_alloc_string(&(buff[3]), tbuff);
@@ -1387,7 +1679,7 @@ opvp_to_utf8(char *string)
}
static float
-opvp_fabsf(float f)
+opvp_fabsf(gx_device* dev, float f)
{
return (float)fabs((double)f);
}
@@ -1429,7 +1721,7 @@ opvp_get_papertable_index(gx_device *pdev)
paper = i;
match = true;
break;
- } else if ((f = opvp_fabsf(height - paper_h)) < TOLERANCE) {
+ } else if ((f = opvp_fabsf(pdev, height - paper_h)) < TOLERANCE) {
if (f < h_delta) {
h_delta = f;
candidate = i;
@@ -1442,14 +1734,14 @@ opvp_get_papertable_index(gx_device *pdev)
} else if (prev != paper_w) {
prev = paper_w;
if (paper_w < width) {
- if ((f = opvp_fabsf(width - paper_w)) < TOLERANCE) {
+ if ((f = opvp_fabsf(pdev, width - paper_w)) < TOLERANCE) {
if (f < sw_delta) {
sw_delta = f;
smaller = i;
}
}
} else {
- if ((f = opvp_fabsf(width - paper_w)) < TOLERANCE) {
+ if ((f = opvp_fabsf(pdev, width - paper_w)) < TOLERANCE) {
if (f < lw_delta) {
lw_delta = f;
larger = i;
@@ -1468,7 +1760,7 @@ opvp_get_papertable_index(gx_device *pdev)
sh_delta = 0;
s_candi = i;
break;
- } else if ((f = opvp_fabsf(height - paper_h)) < TOLERANCE) {
+ } else if ((f = opvp_fabsf(pdev, height - paper_h)) < TOLERANCE) {
if (f < sh_delta) {
sh_delta = f;
s_candi = i;
@@ -1484,7 +1776,7 @@ opvp_get_papertable_index(gx_device *pdev)
lh_delta = 0;
l_candi = i;
break;
- } else if ((f = opvp_fabsf(height - paper_h)) < TOLERANCE) {
+ } else if ((f = opvp_fabsf(pdev, height - paper_h)) < TOLERANCE) {
if (f < lh_delta) {
lh_delta = f;
l_candi = i;
@@ -1560,8 +1852,8 @@ opvp_get_mediasize(gx_device *pdev)
(strcmp(region, "oe" ) == 0)) {
unit = "in";
} else {
- width *= MMPI;
- height *= MMPI;
+ width *= (float) MMPI;
+ height *= (float) MMPI;
unit = "mm";
}
} else {
@@ -1591,9 +1883,10 @@ opvp_gen_page_info(gx_device *dev)
int num_copies = 1;
bool landscape;
char tbuff[OPVP_BUFF_SIZE];
+ gx_device_opvp *opdev = (gx_device_opvp*)dev;
/* copies */
- if (!inkjet) {
+ if (!(opdev->globals.inkjet)) {
if (dev->IgnoreNumCopies) {
num_copies = 1;
} else if (dev->NumCopies_set > 0) {
@@ -1642,14 +1935,13 @@ opvp_set_brush_color(gx_device_opvp *pdev, gx_color_index color,
ecode = -1;
} else {
#if ENABLE_SIMPLE_MODE
- brush->colorSpace = colorSpace;
+ brush->colorSpace = pdev->globals.colorSpace;
#else
opvp_result_t r = -1;
/* call GetColorSpace */
- if (apiEntry->opvpGetColorSpace) {
- r = apiEntry->opvpGetColorSpace(printerContext,
- &(brush->colorSpace));
- }
+
+ r = gsopvpGetColorSpace((gx_device*)pdev, printerContext,
+ &(brush->colorSpace));
if (r != OPVP_OK) {
brush->colorSpace = OPVP_CSPACE_DEVICEKRGB;
}
@@ -1667,7 +1959,7 @@ opvp_set_brush_color(gx_device_opvp *pdev, gx_color_index color,
static int
opvp_draw_image(
- gx_device_opvp *pdev,
+ gx_device_opvp *opdev,
int depth,
int sw,
int sh,
@@ -1682,35 +1974,36 @@ opvp_draw_image(
int count;
/* check page-in */
- if (opvp_check_in_page(pdev)) return -1;
+ if (opvp_check_in_page(opdev))
+ return -1;
/* image size */
count = raster * sh;
/* call DrawImage */
- if (apiEntry->opvpDrawImage) {
- r = apiEntry->opvpDrawImage(printerContext,
- sw,sh,
- raster,
- mask ? OPVP_IFORMAT_MASK : OPVP_IFORMAT_RAW,
- dw,dh,
- /* discard 'const' qualifier */
- (void *)data);
- }
+ r = gsopvpDrawImage((gx_device*) opdev,
+ opdev->globals.printerContext,
+ sw,sh,
+ raster,
+ mask ? OPVP_IFORMAT_MASK : OPVP_IFORMAT_RAW,
+ dw,dh,
+ /* discard 'const' qualifier */
+ (void *)data);
+
if (r != OPVP_OK) {
/* call StartDrawImage */
- if (apiEntry->opvpStartDrawImage) {
- r = apiEntry->opvpStartDrawImage(printerContext,
- sw,sh,
- raster,
- mask ? OPVP_IFORMAT_MASK : OPVP_IFORMAT_RAW,
- dw,dh);
- }
+ r = gsopvpStartDrawImage((gx_device*)opdev,
+ opdev->globals.printerContext,
+ sw,sh,
+ raster,
+ mask ? OPVP_IFORMAT_MASK : OPVP_IFORMAT_RAW,
+ dw,dh);
+
if (r == OPVP_OK) {
/* call TansferDrawImage */
- if (apiEntry->opvpTransferDrawImage) {
- r = apiEntry->opvpTransferDrawImage(
- printerContext,
+ if (opdev->globals.apiEntry->opvpTransferDrawImage) {
+ r = opdev->globals.apiEntry->opvpTransferDrawImage(
+ opdev->globals.printerContext,
count,
/* discard 'const' qualifier */
(void *)data);
@@ -1718,9 +2011,8 @@ opvp_draw_image(
if (r != OPVP_OK) ecode = -1;
/* call EndDrawImage */
- if (apiEntry->opvpEndDrawImage) {
- apiEntry->opvpEndDrawImage(printerContext);
- }
+ gsopvpEndDrawImage((gx_device*)opdev, opdev->globals.printerContext);
+
} else {
ecode = 0; /* continue... */
}
@@ -1735,48 +2027,49 @@ opvp_draw_image(
* load vector-driver
*/
static int
-opvp_load_vector_driver(void)
+opvp_load_vector_driver(gx_device* dev)
{
char **list = NULL;
int i;
void *h;
+ gx_device_opvp *opdev = (gx_device_opvp*)dev;
- if (handle) {
- opvp_unload_vector_driver();
+ if (opdev->globals.handle) {
+ opvp_unload_vector_driver(dev);
}
- if (vectorDriver) {
- list = opvp_gen_dynamic_lib_name();
+ if (opdev->globals.vectorDriver) {
+ list = opvp_gen_dynamic_lib_name(dev);
}
if (list) {
i = 0;
while (list[i]) {
if ((h = dlopen(list[i],RTLD_NOW))) {
- OpenPrinter = dlsym(h,"opvpOpenPrinter");
- ErrorNo = dlsym(h,"opvpErrorNo");
- if (OpenPrinter && ErrorNo) {
- handle = h;
+ opdev->globals.OpenPrinter = dlsym(h,"opvpOpenPrinter");
+ opdev->globals.ErrorNo = dlsym(h,"opvpErrorNo");
+ if (opdev->globals.OpenPrinter && opdev->globals.ErrorNo) {
+ opdev->globals.handle = h;
break;
}
- OpenPrinter = NULL;
- ErrorNo = NULL;
+ opdev->globals.OpenPrinter = NULL;
+ opdev->globals.ErrorNo = NULL;
/* try version 0.2 driver */
- OpenPrinter_0_2 = dlsym(h,"OpenPrinter");
- ErrorNo = dlsym(h,"errorno");
- if (OpenPrinter_0_2 && ErrorNo) {
- handle = h;
+ opdev->globals.OpenPrinter_0_2 = dlsym(h,"OpenPrinter");
+ opdev->globals.ErrorNo = dlsym(h,"errorno");
+ if (opdev->globals.OpenPrinter_0_2 && opdev->globals.ErrorNo) {
+ opdev->globals.handle = h;
break;
}
- OpenPrinter_0_2 = NULL;
- ErrorNo = NULL;
+ opdev->globals.OpenPrinter_0_2 = NULL;
+ opdev->globals.ErrorNo = NULL;
dlclose(h);
}
i++;
}
}
- if (handle) {
+ if (opdev->globals.handle) {
return 0;
} else {
return -1;
@@ -1787,13 +2080,15 @@ opvp_load_vector_driver(void)
* unload vector-driver
*/
static int
-opvp_unload_vector_driver(void)
+opvp_unload_vector_driver(gx_device* dev)
{
- if (handle) {
- dlclose(handle);
- handle = NULL;
- OpenPrinter = NULL;
- ErrorNo = NULL;
+ gx_device_opvp *opdev = (gx_device_opvp*)dev;
+
+ if (opdev->globals.handle) {
+ dlclose(opdev->globals.handle);
+ opdev->globals.handle = NULL;
+ opdev->globals.OpenPrinter = NULL;
+ opdev->globals.ErrorNo = NULL;
}
return 0;
}
@@ -1810,6 +2105,7 @@ prepare_open(gx_device *dev)
int dumFD = -1;
opvp_dc_t dumContext = -1;
opvp_cspace_t cspace = OPVP_CSPACE_STANDARDRGB;
+ gx_device_opvp *opdev = (gx_device_opvp*) dev;
/* open dummy device */
code = open("/dev/null", O_RDWR);
@@ -1818,19 +2114,19 @@ prepare_open(gx_device *dev)
/* load vector driver */
if (!ecode) {
- if ((code = opvp_load_vector_driver())) {
+ if ((code = opvp_load_vector_driver(dev))) {
ecode = code;
}
}
/* prepare array of function pointer for PDAPI */
if (!ecode) {
- if (!apiEntry) {
- if (!(apiEntry = calloc(sizeof(opvp_api_procs_t), 1))) {
+ if (!(opdev->globals.apiEntry)) {
+ if (!(opdev->globals.apiEntry = calloc(sizeof(opvp_api_procs_t), 1))) {
ecode = -1;
}
} else {
- memset(apiEntry, 0, sizeof(opvp_api_procs_t));
+ memset(opdev->globals.apiEntry, 0, sizeof(opvp_api_procs_t));
}
}
@@ -1842,8 +2138,8 @@ prepare_open(gx_device *dev)
/* require version 1.0 */
apiVersion[0] = 1;
apiVersion[1] = 0;
- dc = OpenPrinterWrapper(dumFD, (opvp_char_t *)printerModel,
- apiVersion,&api_entry);
+ dc = OpenPrinterWrapper(dev, dumFD, (opvp_char_t *)(opdev->globals.printerModel),
+ apiVersion, &api_entry);
if (dc == -1) {
ecode = -1;
} else {
@@ -1853,33 +2149,33 @@ prepare_open(gx_device *dev)
/* set apiEntry */
if (!ecode) {
- nApiEntry = sizeof(opvp_api_procs_t)/sizeof(void *);
- memcpy(apiEntry, api_entry, nApiEntry*sizeof(void *));
+ opdev->globals.nApiEntry = sizeof(opvp_api_procs_t)/sizeof(void *);
+ memcpy(opdev->globals.apiEntry, api_entry, opdev->globals.nApiEntry*sizeof(void *));
} else {
- if (apiEntry) free(apiEntry);
- apiEntry = NULL;
+ if (opdev->globals.apiEntry) free(opdev->globals.apiEntry);
+ opdev->globals.apiEntry = NULL;
}
/* check vector fucntion */
- if (apiEntry) {
- if (!inkjet) {
- if (!(apiEntry->opvpNewPath) ||
- !(apiEntry->opvpEndPath) ||
- !(apiEntry->opvpStrokePath) ||
- !(apiEntry->opvpSetCurrentPoint) ||
- !(apiEntry->opvpLinePath) ||
- !(apiEntry->opvpBezierPath)) {
+ if (opdev->globals.apiEntry) {
+ if (!(opdev->globals.inkjet)) {
+ if (!(opdev->globals.apiEntry->opvpNewPath) ||
+ !(opdev->globals.apiEntry->opvpEndPath) ||
+ !(opdev->globals.apiEntry->opvpStrokePath) ||
+ !(opdev->globals.apiEntry->opvpSetCurrentPoint) ||
+ !(opdev->globals.apiEntry->opvpLinePath) ||
+ !(opdev->globals.apiEntry->opvpBezierPath)) {
/* NOT avail vector drawing mode */
- vector = false;
+ opdev->globals.vector = false;
}
}
/* call GetColorSpace */
- if (apiEntry->opvpGetColorSpace) {
- (void)apiEntry->opvpGetColorSpace(dumContext, &cspace);
+ if (opdev->globals.apiEntry->opvpGetColorSpace) {
+ (void)(opdev->globals.apiEntry->opvpGetColorSpace)(dumContext, &cspace);
}
if (cspace == OPVP_CSPACE_BW) {
/* mono-color */
- colorSpace = cspace;
+ opdev->globals.colorSpace = cspace;
dev->color_info.num_components = 1;
dev->color_info.depth = 1;
dev->color_info.max_gray = 0;
@@ -1888,7 +2184,7 @@ prepare_open(gx_device *dev)
dev->color_info.dither_colors = 1;
} else if (cspace == OPVP_CSPACE_DEVICEGRAY) {
/* gray-scale */
- colorSpace = cspace;
+ opdev->globals.colorSpace = cspace;
dev->color_info.num_components = 1;
dev->color_info.depth = 8;
dev->color_info.max_gray = 255;
@@ -1897,7 +2193,7 @@ prepare_open(gx_device *dev)
dev->color_info.dither_colors = 256;
} else {
/* rgb color */
- colorSpace = OPVP_CSPACE_STANDARDRGB;
+ opdev->globals.colorSpace = OPVP_CSPACE_STANDARDRGB;
dev->color_info.num_components = 3;
dev->color_info.depth = 24;
dev->color_info.max_gray = 255;
@@ -1913,8 +2209,8 @@ prepare_open(gx_device *dev)
/* call Closerinter as dummy */
if (dumContext != -1) {
/* call ClosePrinter */
- if (apiEntry->opvpClosePrinter) {
- apiEntry->opvpClosePrinter(dumContext);
+ if (opdev->globals.apiEntry->opvpClosePrinter) {
+ opdev->globals.apiEntry->opvpClosePrinter(dumContext);
}
dumContext = -1;
}
@@ -1926,7 +2222,7 @@ prepare_open(gx_device *dev)
}
/* un-load vector driver */
- opvp_unload_vector_driver();
+ opvp_unload_vector_driver(dev);
return ecode;
}
@@ -1961,51 +2257,52 @@ opvp_open(gx_device *dev)
}
/* set margins */
- if (zoomAuto) {
- margin_width = (margins[0] + margins[2])
+ if (pdev->globals.zoomAuto) {
+ margin_width = (pdev->globals.margins[0] + pdev->globals.margins[2])
* dev->HWResolution[0];
- margin_height = (margins[1] + margins[3])
+ margin_height = (pdev->globals.margins[1] + pdev->globals.margins[3])
* dev->HWResolution[1];
- zoom[0] = (dev->width - margin_width) / dev->width;
- zoom[1] = (dev->height - margin_height) / dev->height;
- if (zoom[0] < zoom[1]) {
- zoom[1] = zoom[0];
+ pdev->globals.zoom[0] = (dev->width - margin_width) / dev->width;
+ pdev->globals.zoom[1] = (dev->height - margin_height) / dev->height;
+ if (pdev->globals.zoom[0] < pdev->globals.zoom[1]) {
+ pdev->globals.zoom[1] = pdev->globals.zoom[0];
} else {
- zoom[0] = zoom[1];
+ pdev->globals.zoom[0] = pdev->globals.zoom[1];
}
}
- if (inkjet) {
- if ((margins[0] != 0) ||
- (margins[1] != 0) || (margins[3] != 0)) {
- shift[0] = margins[0] * dev->HWResolution[0];
- shift[1] = (margins[1] + margins[3])
+ if (pdev->globals.inkjet) {
+ if ((pdev->globals.margins[0] != 0) ||
+ (pdev->globals.margins[1] != 0) || (pdev->globals.margins[3] != 0)) {
+ pdev->globals.shift[0] = pdev->globals.margins[0] * dev->HWResolution[0];
+ pdev->globals.shift[1] = (pdev->globals.margins[1] + pdev->globals.margins[3])
* dev->HWResolution[1];
- zooming = true;
+ pdev->globals.zooming = true;
}
- dev->width -= margins[2] * dev->HWResolution[0];
- dev->height -= margins[1] * dev->HWResolution[1];
+ dev->width -= (int) (pdev->globals.margins[2] * dev->HWResolution[0]);
+ dev->height -= (int) (pdev->globals.margins[1] * dev->HWResolution[1]);
} else {
- if ((margins[0] != 0) || (margins[1] != 0)) {
- shift[0] = margins[0] * dev->HWResolution[0];
- shift[1] = margins[3] * dev->HWResolution[1];
- zooming = true;
+ if ((pdev->globals.margins[0] != 0) || (pdev->globals.margins[1] != 0)) {
+ pdev->globals.shift[0] = pdev->globals.margins[0] * dev->HWResolution[0];
+ pdev->globals.shift[1] = pdev->globals.margins[3] * dev->HWResolution[1];
+ pdev->globals.zooming = true;
}
adj_margins[0] = 0;
adj_margins[3] = 0;
- adj_margins[1] = dev->height * zoom[1] / dev->HWResolution[1]
+ adj_margins[1] = dev->height * pdev->globals.zoom[1] / dev->HWResolution[1]
- (dev->MediaSize[1] / PS_DPI
- - (margins[1] + margins[3]));
+ - (pdev->globals.margins[1] + pdev->globals.margins[3]));
if (adj_margins[1] < 0) adj_margins[0] = 0;
- adj_margins[2] = dev->width * zoom[0] / dev->HWResolution[0]
+ adj_margins[2] = dev->width * pdev->globals.zoom[0] / dev->HWResolution[0]
- (dev->MediaSize[0] / PS_DPI
- - (margins[0] + margins[2]));
+ - (pdev->globals.margins[0] + pdev->globals.margins[2]));
if (adj_margins[2] < 0) adj_margins[2] = 0;
gx_device_set_margins(dev, adj_margins, true);
}
- if ((zoom[0] != 1) || (zoom[1] != 1)) zooming = true;
+ if ((pdev->globals.zoom[0] != 1) || (pdev->globals.zoom[1] != 1))
+ pdev->globals.zooming = true;
/* open file for output device */
- if (!inkjet) {
+ if (!(pdev->globals.inkjet)) {
pdev->v_memory = gs_memory_stable(pdev->memory);
/* open output stream */
code = gdev_vector_open_file_options((gx_device_vector*)dev,
@@ -2027,7 +2324,7 @@ opvp_open(gx_device *dev)
pdev->bbox_device->memory = gs_memory_stable(dev->memory);
}
}
- outputFD = fileno(gp_get_file(pdev->file));
+ pdev->globals.outputFD = fileno(gp_get_file(pdev->file));
} else {
/* open printer device */
code = gdev_prn_open(dev);
@@ -2044,13 +2341,13 @@ opvp_open(gx_device *dev)
if (code < 0) {
return code;
}
- outputFD = fileno(gp_get_file(rdev->file));
+ pdev->globals.outputFD = fileno(gp_get_file(rdev->file));
}
- if (outputFD < 0)
- return outputFD;
+ if (pdev->globals.outputFD < 0)
+ return pdev->globals.outputFD;
/* RE-load vector driver */
- if ((code = opvp_load_vector_driver())) {
+ if ((code = opvp_load_vector_driver(dev))) {
return code;
}
@@ -2058,44 +2355,49 @@ opvp_open(gx_device *dev)
/* require version 1.0 */
apiVersion[0] = 1;
apiVersion[1] = 0;
- dc = OpenPrinterWrapper(outputFD,(opvp_char_t *)printerModel,
+ dc = OpenPrinterWrapper(dev, pdev->globals.outputFD, (opvp_char_t *)pdev->globals.printerModel,
apiVersion,&api_entry);
- if (!apiEntry) {
- if (!(apiEntry = calloc(sizeof(opvp_api_procs_t), 1))) {
- ecode = -1;
- }
+
+ if (!(pdev->globals.apiEntry)) {
+ pdev->globals.apiEntry = calloc(sizeof(opvp_api_procs_t), 1);
} else {
- memset(apiEntry, 0, sizeof(opvp_api_procs_t));
+ memset(pdev->globals.apiEntry, 0, sizeof(opvp_api_procs_t));
}
- if (dc == -1) {
+
+ if (dc == -1 || pdev->globals.apiEntry == NULL) {
ecode = -1;
- if (apiEntry) free(apiEntry);
- apiEntry = NULL;
- opvp_unload_vector_driver();
- if (inkjet) gdev_prn_close(dev);
+ if (pdev->globals.apiEntry)
+ free(pdev->globals.apiEntry);
+ pdev->globals.apiEntry = NULL;
+ opvp_unload_vector_driver(dev);
+ if (pdev->globals.inkjet)
+ gdev_prn_close(dev);
else gdev_vector_close_file((gx_device_vector *)pdev);
return ecode;
}
- printerContext = dc;
- nApiEntry = sizeof(opvp_api_procs_t)/sizeof(void *);
- memcpy(apiEntry, api_entry, nApiEntry*sizeof(void *));
+
+ pdev->globals.printerContext = dc;
+ pdev->globals.nApiEntry = sizeof(opvp_api_procs_t)/sizeof(void *);
+ memcpy(pdev->globals.apiEntry, api_entry, pdev->globals.nApiEntry*sizeof(void *));
/* initialize */
- if ((!ecode) && (!inkjet)) {
+ if ((!ecode) && (!(pdev->globals.inkjet))) {
pdev->vec_procs = &opvp_vector_procs;
- if (vector) gdev_vector_init((gx_device_vector *)pdev);
+ if (pdev->globals.vector)
+ gdev_vector_init((gx_device_vector *)pdev);
}
- if (apiEntry->opvpQueryColorSpace) {
+ if (pdev->globals.apiEntry->opvpQueryColorSpace ||
+ pdev->globals.apiEntry_0_2->QueryColorSpace) {
int n = sizeof(cspace_available);
int nn = n;
opvp_cspace_t *p = malloc(n*sizeof(opvp_cspace_t));
- if ((r = apiEntry->opvpQueryColorSpace(printerContext,&nn,p))
+ if ((r = gsopvpQueryColorSpace(dev, pdev->globals.printerContext,&nn,p))
== OPVP_PARAMERROR && nn > n) {
/* realloc buffer and retry */
p = realloc(p,nn*sizeof(opvp_cspace_t));
- r = apiEntry->opvpQueryColorSpace(printerContext,&nn,p);
+ r = gsopvpQueryColorSpace(dev, pdev->globals.printerContext,&nn,p);
}
if (r == OPVP_OK) {
int i;
@@ -2111,12 +2413,12 @@ opvp_open(gx_device *dev)
/* start job */
if (!ecode) {
/* job info */
- if (jobInfo) {
- if (strlen(jobInfo) > 0) {
- job_info = opvp_alloc_string(&job_info,jobInfo);
+ if (pdev->globals.jobInfo) {
+ if (strlen(pdev->globals.jobInfo) > 0) {
+ job_info = opvp_alloc_string(&job_info, pdev->globals.jobInfo);
}
}
- tmp_info = opvp_alloc_string(&tmp_info,opvp_gen_job_info(dev));
+ tmp_info = opvp_alloc_string(&tmp_info, opvp_gen_job_info(dev));
if (tmp_info) {
if (strlen(tmp_info) > 0) {
if (job_info) {
@@ -2130,8 +2432,8 @@ opvp_open(gx_device *dev)
}
/* call StartJob */
- if (apiEntry->opvpStartJob) {
- r = apiEntry->opvpStartJob(printerContext,
+ if (pdev->globals.apiEntry->opvpStartJob) {
+ r = pdev->globals.apiEntry->opvpStartJob(pdev->globals.printerContext,
(opvp_char_t *)opvp_to_utf8(job_info));
}
if (r != OPVP_OK) {
@@ -2142,9 +2444,9 @@ opvp_open(gx_device *dev)
/* start doc */
if (!ecode) {
/* doc info */
- if (docInfo) {
- if (strlen(docInfo) > 0) {
- doc_info = opvp_alloc_string(&doc_info,docInfo);
+ if (pdev->globals.docInfo) {
+ if (strlen(pdev->globals.docInfo) > 0) {
+ doc_info = opvp_alloc_string(&doc_info, pdev->globals.docInfo);
}
}
tmp_info = opvp_alloc_string(&tmp_info, opvp_gen_doc_info(dev));
@@ -2161,8 +2463,8 @@ opvp_open(gx_device *dev)
}
/* call StartDoc */
- if (apiEntry->opvpStartDoc) {
- r = apiEntry->opvpStartDoc(printerContext,
+ if (pdev->globals.apiEntry->opvpStartDoc) {
+ r = pdev->globals.apiEntry->opvpStartDoc(pdev->globals.printerContext,
(opvp_char_t *)opvp_to_utf8(doc_info));
}
if (r != OPVP_OK) {
@@ -2183,9 +2485,11 @@ opvp_open(gx_device *dev)
static int
oprp_open(gx_device *dev)
{
+ gx_device_opvp *opdev = (gx_device_opvp*) dev;
+
/* set inkjet mode */
- vector = false;
- inkjet = true;
+ opdev->globals.vector = false;
+ opdev->globals.inkjet = true;
/* matrix */
dev->procs.get_initial_matrix = opvp_get_initial_matrix;
@@ -2198,24 +2502,24 @@ oprp_open(gx_device *dev)
static void
opvp_get_initial_matrix(gx_device *dev, gs_matrix *pmat)
{
- gx_device_opvp *pdev = (gx_device_opvp *)dev;
+ gx_device_opvp * opdev = (gx_device_opvp *)dev;
opvp_ctm_t omat;
gx_default_get_initial_matrix(dev,pmat);
- if (zooming) {
+ if (opdev->globals.zooming) {
/* gs matrix */
- pmat->xx *= zoom[0];
- pmat->xy *= zoom[1];
- pmat->yx *= zoom[0];
- pmat->yy *= zoom[1];
- pmat->tx = pmat->tx * zoom[0] + shift[0];
- pmat->ty = pmat->ty * zoom[1] + shift[1];
+ pmat->xx *= opdev->globals.zoom[0];
+ pmat->xy *= opdev->globals.zoom[1];
+ pmat->yx *= opdev->globals.zoom[0];
+ pmat->yy *= opdev->globals.zoom[1];
+ pmat->tx = pmat->tx * opdev->globals.zoom[0] + opdev->globals.shift[0];
+ pmat->ty = pmat->ty * opdev->globals.zoom[1] + opdev->globals.shift[1];
}
- if (pdev->is_open) {
+ if (opdev->is_open) {
/* call ResetCTM */
- if (apiEntry->opvpResetCTM) {
- apiEntry->opvpResetCTM(printerContext);
+ if (opdev->globals.apiEntry->opvpResetCTM) {
+ opdev->globals.apiEntry->opvpResetCTM(opdev->globals.printerContext);
} else {
/* call SetCTM */
omat.a = 1;
@@ -2224,8 +2528,8 @@ opvp_get_initial_matrix(gx_device *dev, gs_matrix *pmat)
omat.d = 1;
omat.e = 0;
omat.f = 0;
- if (apiEntry->opvpSetCTM) {
- apiEntry->opvpSetCTM(printerContext, &omat);
+ if (opdev->globals.apiEntry->opvpSetCTM) {
+ opdev->globals.apiEntry->opvpSetCTM(opdev->globals.printerContext, &omat);
}
}
}
@@ -2239,30 +2543,32 @@ opvp_get_initial_matrix(gx_device *dev, gs_matrix *pmat)
static int
opvp_output_page(gx_device *dev, int num_copies, int flush)
{
- gx_device_opvp *pdev = (gx_device_opvp *)dev;
+ gx_device_opvp *opdev = (gx_device_opvp *)dev;
int ecode = 0;
int code = -1;
- if (inkjet) return gdev_prn_output_page(dev, num_copies, flush);
+ if (opdev->globals.inkjet)
+ return gdev_prn_output_page(dev, num_copies, flush);
#ifdef OPVP_IGNORE_BLANK_PAGE
if (pdev->in_page) {
#else
/* check page-in */
- if (opvp_check_in_page(pdev)) return -1;
+ if (opvp_check_in_page(opdev))
+ return -1;
#endif
/* end page */
- code = opvp_endpage();
+ code = opvp_endpage(dev);
if (code) ecode = code;
- pdev->in_page = false;
- beginPage = false;
+ opdev->in_page = false;
+ opdev->globals.beginPage = false;
#ifdef OPVP_IGNORE_BLANK_PAGE
}
#endif
- if (vector) {
- gdev_vector_reset((gx_device_vector *)pdev);
+ if (opdev->globals.vector) {
+ gdev_vector_reset((gx_device_vector *)dev);
}
code = gx_finish_output_page(dev, num_copies, flush);
@@ -2289,6 +2595,7 @@ oprp_print_page(gx_device_printer *pdev, gp_file *prn_stream)
int rasterWidth;
bool start_page = false;
bool start_raster = false;
+ gx_device_opvp *opdev = (gx_device_opvp*)pdev;
#if ENABLE_SKIP_RASTER
int i;
byte check;
@@ -2317,8 +2624,8 @@ oprp_print_page(gx_device_printer *pdev, gp_file *prn_stream)
/* call StartRaster */
if (!ecode) {
- if (apiEntry->opvpStartRaster) {
- r = apiEntry->opvpStartRaster(printerContext,rasterWidth);
+ if (opdev->globals.apiEntry->opvpStartRaster) {
+ r = opdev->globals.apiEntry->opvpStartRaster(opdev->globals.printerContext,rasterWidth);
}
if (r != OPVP_OK) {
ecode = r;
@@ -2339,7 +2646,7 @@ oprp_print_page(gx_device_printer *pdev, gp_file *prn_stream)
}
#if ENABLE_SKIP_RASTER
/* check support SkipRaster */
- if (apiEntry->opvpSkipRaster) {
+ if (opdev->globals.apiEntry->opvpSkipRaster) {
/* check all white */
if (pdev->color_info.depth > 8) {
for (check = 0xff, i = 0; i < raster_size; i++)
@@ -2349,7 +2656,7 @@ oprp_print_page(gx_device_printer *pdev, gp_file *prn_stream)
}
/* if all white call SkipRaster */
if (check == 0xff) {
- r = apiEntry->opvpSkipRaster(printerContext, 1);
+ r = opdev->globals.apiEntry->opvpSkipRaster(opdev->globals.printerContext, 1);
if (r == OPVP_OK) continue;
}
} else {
@@ -2359,27 +2666,29 @@ oprp_print_page(gx_device_printer *pdev, gp_file *prn_stream)
}
/* if all zero call SkipRaster */
if (check) {
- r = apiEntry->opvpSkipRaster(printerContext, 1);
- if (r == OPVP_OK) continue;
+ r = opdev->globals.apiEntry->opvpSkipRaster(opdev->globals.printerContext, 1);
+ if (r == OPVP_OK)
+ continue;
}
}
}
#endif
/* call TransferRasterData */
if (!ecode) {
- if (apiEntry->opvpTransferRasterData) {
- r = apiEntry->opvpTransferRasterData(printerContext,
+ if (opdev->globals.apiEntry->opvpTransferRasterData) {
+ r = opdev->globals.apiEntry->opvpTransferRasterData(opdev->globals.printerContext,
raster_size,
data);
}
- if (r != OPVP_OK) ecode = r;
+ if (r != OPVP_OK)
+ ecode = r;
}
}
/* call EndRaster */
if (start_raster) {
- if (apiEntry->opvpEndRaster) {
- r = apiEntry->opvpEndRaster(printerContext);
+ if (opdev->globals.apiEntry->opvpEndRaster) {
+ r = opdev->globals.apiEntry->opvpEndRaster(opdev->globals.printerContext);
}
if (r != OPVP_OK) ecode = r;
start_raster = false;
@@ -2387,7 +2696,7 @@ oprp_print_page(gx_device_printer *pdev, gp_file *prn_stream)
/* end page */
if (start_page) {
- code = opvp_endpage();
+ code = opvp_endpage((gx_device*) pdev);
if (code) ecode = code;
start_page = false;
}
@@ -2411,37 +2720,38 @@ opvp_close(gx_device *dev)
int ecode = 0;
/* finalize */
- if (printerContext != -1) {
+ if (pdev->globals.printerContext != -1) {
/* call EndDoc */
- if (apiEntry->opvpEndDoc) {
- apiEntry->opvpEndDoc(printerContext);
+ if (pdev->globals.apiEntry->opvpEndDoc) {
+ pdev->globals.apiEntry->opvpEndDoc(pdev->globals.printerContext);
}
/* call EndJob */
- if (apiEntry->opvpEndJob) {
- apiEntry->opvpEndJob(printerContext);
+ if (pdev->globals.apiEntry->opvpEndJob) {
+ pdev->globals.apiEntry->opvpEndJob(pdev->globals.printerContext);
}
/* call ClosePrinter */
- if (apiEntry->opvpClosePrinter) {
- apiEntry->opvpClosePrinter(printerContext);
+ if (pdev->globals.apiEntry->opvpClosePrinter) {
+ pdev->globals.apiEntry->opvpClosePrinter(pdev->globals.printerContext);
}
- printerContext = -1;
+ pdev->globals.printerContext = -1;
}
/* unload vector driver */
- if (apiEntry) free(apiEntry);
- apiEntry = NULL;
- opvp_unload_vector_driver();
+ if (pdev->globals.apiEntry)
+ free(pdev->globals.apiEntry);
+ pdev->globals.apiEntry = NULL;
+ opvp_unload_vector_driver(dev);
- if (inkjet) {
+ if (pdev->globals.inkjet) {
/* close printer */
gdev_prn_close(dev);
} else {
/* close output stream */
gdev_vector_close_file((gx_device_vector *)pdev);
}
- outputFD = -1;
+ pdev->globals.outputFD = -1;
return ecode;
}
@@ -2455,6 +2765,7 @@ opvp_map_rgb_color(gx_device *dev,
{
opvp_cspace_t cs;
uint c, m, y, k;
+ gx_device_opvp *opdev = (gx_device_opvp*)dev;
#if !(ENABLE_SIMPLE_MODE)
gx_device_opvp *pdev;
@@ -2467,16 +2778,15 @@ opvp_map_rgb_color(gx_device *dev,
b = prgb[2];
#if ENABLE_SIMPLE_MODE
- cs = colorSpace;
+ cs = opdev->globals.colorSpace;
#else
pdev = (gx_device_opvp *)dev;
r = -1;
cs = OPVP_CSPACE_STANDARDRGB;
if (pdev->is_open) {
/* call GetColorSpace */
- if (apiEntry->opvpGetColorSpace) {
- r = apiEntry->opvpGetColorSpace(printerContext, &cs);
- }
+
+ r = gsopvpGetColorSpace(dev, opdev->globals.printerContext, &cs);
if (r != OPVP_OK) {
if (pdev->color_info.depth > 32) {
cs = OPVP_CSPACE_STANDARDRGB64;
@@ -2555,15 +2865,14 @@ opvp_map_color_rgb(gx_device *dev, gx_color_index color,
#endif
opvp_cspace_t cs = OPVP_CSPACE_STANDARDRGB;
uint c, m, y, k;
+ gx_device_opvp *opdev = (gx_device_opvp*)dev;
#if ENABLE_SIMPLE_MODE
- cs = colorSpace;
+ cs = opdev->globals.colorSpace;
#else
/* call GetColorSpace */
if (pdev->is_open) {
- if (apiEntry->opvpGetColorSpace) {
- r = apiEntry->opvpGetColorSpace(printerContext, &cs);
- }
+ r = gsopvpGetColorSpace(dev, opdev->globals.printerContext, &cs);
if (r != OPVP_OK) {
if (pdev->color_info.depth > 32) {
cs = OPVP_CSPACE_STANDARDRGB64;
@@ -2635,44 +2944,44 @@ opvp_fill_rectangle(
int h,
gx_color_index color)
{
- gx_device_opvp *pdev = (gx_device_opvp *)dev;
+ gx_device_opvp *opdev = (gx_device_opvp *)dev;
byte data[8] = {0xC0, 0, 0, 0, 0xC0, 0, 0, 0};
int code = -1;
int ecode = 0;
opvp_brush_t brush;
opvp_point_t point;
- if (vector) {
- return gdev_vector_fill_rectangle( dev, x, y, w, h, color);
+ if (opdev->globals.vector) {
+ return gdev_vector_fill_rectangle(dev, x, y, w, h, color);
}
/* check page-in */
- if (opvp_check_in_page(pdev)) return -1;
+ if (opvp_check_in_page(opdev))
+ return -1;
#if !(ENABLE_SIMPLE_MODE)
/* call SaveGS */
- if (apiEntry->opvpSaveGS) {
- apiEntry->opvpSaveGS(printerContext);
+ if (pdev->globals.apiEntry->opvpSaveGS) {
+ pdev->globals.apiEntry->opvpSaveGS(printerContext);
}
#endif
/* one-color */
- opvp_set_brush_color(pdev, color, &brush);
+ opvp_set_brush_color(opdev, color, &brush);
/* call SetFillColor */
- if (apiEntry->opvpSetFillColor) {
- apiEntry->opvpSetFillColor(printerContext, &brush);
- }
+ gsopvpSetFillColor(dev, opdev->globals.printerContext, &brush);
+
/* call SetCurrentPoint */
OPVP_I2FIX(x, point.x);
OPVP_I2FIX(y, point.y);
- if (apiEntry->opvpSetCurrentPoint) {
- apiEntry->opvpSetCurrentPoint(printerContext,point.x, point.y);
+ if (opdev->globals.apiEntry->opvpSetCurrentPoint) {
+ opdev->globals.apiEntry->opvpSetCurrentPoint(opdev->globals.printerContext,point.x, point.y);
}
/* draw image */
- code = opvp_draw_image(pdev,
+ code = opvp_draw_image(opdev,
1,
2, 2,
w, h,
@@ -2684,17 +2993,15 @@ opvp_fill_rectangle(
}
/* restore fill color */
- if (vectorFillColor) {
+ if (opdev->globals.vectorFillColor) {
/* call SetFillColor */
- if (apiEntry->opvpSetFillColor) {
- apiEntry->opvpSetFillColor(printerContext,vectorFillColor);
- }
+ gsopvpSetFillColor(dev, opdev->globals.printerContext,opdev->globals.vectorFillColor);
}
#if !(ENABLE_SIMPLE_MODE)
/* call RestoreGS */
- if (apiEntry->opvpRestoreGS) {
- apiEntry->opvpRestoreGS(printerContext);
+ if (pdev->globals.apiEntry->opvpRestoreGS) {
+ pdev->globals.opdev->globals.apiEntry->opvpRestoreGS(printerContext);
}
#endif
@@ -2718,7 +3025,7 @@ opvp_copy_mono(
gx_color_index zero,
gx_color_index one)
{
- gx_device_opvp *pdev = (gx_device_opvp *)dev;
+ gx_device_opvp *opdev = (gx_device_opvp *)dev;
int code = -1;
int ecode = 0;
opvp_brush_t brush;
@@ -2736,7 +3043,8 @@ opvp_copy_mono(
bool reverse = false;
/* check page-in */
- if (opvp_check_in_page(pdev)) return -1;
+ if (opvp_check_in_page(opdev))
+ return -1;
/* data offset */
if (data_x) {
@@ -2773,8 +3081,8 @@ opvp_copy_mono(
#if !(ENABLE_SIMPLE_MODE)
/* call SaveGS */
- if (apiEntry->opvpSaveGS) {
- apiEntry->opvpSaveGS(printerContext);
+ if (opdev->globals.apiEntry->opvpSaveGS) {
+ opdev->globals.apiEntry->opvpSaveGS(printerContext);
}
#endif
if (one == gx_no_color_index) {
@@ -2789,25 +3097,22 @@ opvp_copy_mono(
if (zero != gx_no_color_index) {
/* not mask */
/* Set PaintMode */
- if (apiEntry->opvpSetPaintMode) {
- apiEntry->opvpSetPaintMode(printerContext,OPVP_PAINTMODE_OPAQUE);
+ if (opdev->globals.apiEntry->opvpSetPaintMode) {
+ opdev->globals.apiEntry->opvpSetPaintMode(opdev->globals.printerContext, OPVP_PAINTMODE_OPAQUE);
}
/* zero-color */
- opvp_set_brush_color(pdev, zero, &brush);
+ opvp_set_brush_color(opdev, zero, &brush);
/* call SetBgColor */
- if (apiEntry->opvpSetBgColor) {
- apiEntry->opvpSetBgColor(printerContext, &brush);
- }
+ gsopvpSetBgColor(dev, opdev->globals.printerContext, &brush);
+
}
/* one-color */
- opvp_set_brush_color(pdev, one, &brush);
+ opvp_set_brush_color(opdev, one, &brush);
/* call SetFillColor */
- if (apiEntry->opvpSetFillColor) {
- apiEntry->opvpSetFillColor(printerContext, &brush);
- }
+ gsopvpSetFillColor(dev, opdev->globals.printerContext, &brush);
if (reverse) {
/* 0/1 reverse image */
@@ -2826,12 +3131,12 @@ opvp_copy_mono(
/* call SetCurrentPoint */
OPVP_I2FIX(x, point.x);
OPVP_I2FIX(y, point.y);
- if (apiEntry->opvpSetCurrentPoint) {
- apiEntry->opvpSetCurrentPoint(printerContext,point.x, point.y);
+ if (opdev->globals.apiEntry->opvpSetCurrentPoint) {
+ opdev->globals.apiEntry->opvpSetCurrentPoint(opdev->globals.printerContext,point.x, point.y);
}
/* draw image */
- code = opvp_draw_image(pdev,
+ code = opvp_draw_image(opdev,
1,
w, h,
w, h,
@@ -2844,23 +3149,21 @@ opvp_copy_mono(
if (zero != gx_no_color_index) {
/* restore PaintMode */
- if (apiEntry->opvpSetPaintMode) {
- apiEntry->opvpSetPaintMode(printerContext,
+ if (opdev->globals.apiEntry->opvpSetPaintMode) {
+ opdev->globals.apiEntry->opvpSetPaintMode(opdev->globals.printerContext,
OPVP_PAINTMODE_TRANSPARENT);
}
}
/* restore fill color */
- if (vectorFillColor) {
+ if (opdev->globals.vectorFillColor) {
/* call SetFillColor */
- if (apiEntry->opvpSetFillColor) {
- apiEntry->opvpSetFillColor(printerContext,vectorFillColor);
- }
+ gsopvpSetFillColor(dev, opdev->globals.printerContext,opdev->globals.vectorFillColor);
}
#if !(ENABLE_SIMPLE_MODE)
/* call RestoreGS */
- if (apiEntry->opvpRestoreGS) {
- apiEntry->opvpRestoreGS(printerContext);
+ if (opdev->globals.apiEntry->opvpRestoreGS) {
+ opdev->globals.apiEntry->opvpRestoreGS(opdev->globals.printerContext);
}
#endif
@@ -2887,7 +3190,7 @@ opvp_copy_color(
int w,
int h)
{
- gx_device_opvp *pdev = (gx_device_opvp *)dev;
+ gx_device_opvp *opdev = (gx_device_opvp *)dev;
int code = -1;
int ecode = 0;
opvp_point_t point;
@@ -2902,11 +3205,12 @@ opvp_copy_color(
int adj_raster = raster;
/* check page-in */
- if (opvp_check_in_page(pdev)) return -1;
+ if (opvp_check_in_page(opdev))
+ return -1;
/* data offset */
if (data_x) {
- depth = pdev->color_info.depth;
+ depth = opdev->color_info.depth;
pixel = (depth + 7) >> 3;
byte_length = pixel * w;
adj_raster = ((byte_length + 3) >> 2) << 2;
@@ -2926,21 +3230,21 @@ opvp_copy_color(
#if !(ENABLE_SIMPLE_MODE)
/* call SaveGS */
- if (apiEntry->opvpSaveGS) {
- apiEntry->opvpSaveGS(printerContext);
+ if (opdev->globals.apiEntry->opvpSaveGS) {
+ opdev->globals.apiEntry->opvpSaveGS(opdev->globals.printerContext);
}
#endif
/* call SetCurrentPoint */
OPVP_I2FIX(x, point.x);
OPVP_I2FIX(y, point.y);
- if (apiEntry->opvpSetCurrentPoint) {
- apiEntry->opvpSetCurrentPoint(printerContext, point.x, point.y);
+ if (opdev->globals.apiEntry->opvpSetCurrentPoint) {
+ opdev->globals.apiEntry->opvpSetCurrentPoint(opdev->globals.printerContext, point.x, point.y);
}
/* draw image */
- code = opvp_draw_image(pdev,
- pdev->color_info.depth,
+ code = opvp_draw_image(opdev,
+ opdev->color_info.depth,
w, h,
w, h,
adj_raster,
@@ -2952,8 +3256,8 @@ opvp_copy_color(
#if !(ENABLE_SIMPLE_MODE)
/* call RestoreGS */
- if (apiEntry->opvpRestoreGS) {
- apiEntry->opvpRestoreGS(printerContext);
+ if (opdev->globals.apiEntry->opvpRestoreGS) {
+ opdev->globals.apiEntry->opvpRestoreGS(opdev->globals.printerContext);
}
#endif
@@ -2969,7 +3273,7 @@ opvp_copy_color(
* get params
*/
static int
-_get_params(gs_param_list *plist)
+_get_params(gx_device* dev, gs_param_list *plist)
{
int code;
int ecode = 0;
@@ -2985,37 +3289,38 @@ _get_params(gs_param_list *plist)
gs_param_string mbps;
gs_param_string zmps;
char buff[OPVP_BUFF_SIZE];
+ gx_device_opvp* opdev = (gx_device_opvp*)dev;
/* get params */
/* vector driver name */
pname = "Driver";
- vdps.data = (byte *)vectorDriver;
- vdps.size = (vectorDriver ? strlen(vectorDriver) + 1 : 0);
+ vdps.data = (byte *)opdev->globals.vectorDriver;
+ vdps.size = (opdev->globals.vectorDriver ? strlen(opdev->globals.vectorDriver) + 1 : 0);
vdps.persistent = false;
code = param_write_string(plist, pname, &vdps);
if (code) ecode = code;
/* printer model name */
pname = "Model";
- pmps.data = (byte *)printerModel;
- pmps.size = (printerModel ? strlen(printerModel) + 1 : 0);
+ pmps.data = (byte *)opdev->globals.printerModel;
+ pmps.size = (opdev->globals.printerModel ? strlen(opdev->globals.printerModel) + 1 : 0);
pmps.persistent = false;
code = param_write_string(plist, pname, &pmps);
if (code) ecode = code;
/* job info */
pname = "JobInfo";
- jips.data = (byte *)jobInfo;
- jips.size = (jobInfo ? strlen(jobInfo) + 1 : 0);
+ jips.data = (byte *)opdev->globals.jobInfo;
+ jips.size = (opdev->globals.jobInfo ? strlen(opdev->globals.jobInfo) + 1 : 0);
jips.persistent = false;
code = param_write_string(plist, pname, &jips);
if (code) ecode = code;
/* doc info */
pname = "DocInfo";
- dips.data = (byte *)docInfo;
- dips.size = (docInfo ? strlen(docInfo) + 1 : 0);
+ dips.data = (byte *)opdev->globals.docInfo;
+ dips.size = (opdev->globals.docInfo ? strlen(opdev->globals.docInfo) + 1 : 0);
dips.persistent = false;
code = param_write_string(plist, pname, &dips);
if (code) ecode = code;
@@ -3052,28 +3357,28 @@ _get_params(gs_param_list *plist)
/* margins */
memset((void*)buff, 0, OPVP_BUFF_SIZE);
pname = "MarginLeft";
- snprintf(buff, OPVP_BUFF_SIZE - 1, "%f",margins[0]);
+ snprintf(buff, OPVP_BUFF_SIZE - 1, "%f",opdev->globals.margins[0]);
mlps.data = (byte *)buff;
mlps.size = strlen(buff) + 1;
mlps.persistent = false;
code = param_write_string(plist, pname, &mlps);
if (code) ecode = code;
pname = "MarginTop";
- snprintf(buff, OPVP_BUFF_SIZE - 1, "%f",margins[3]);
+ snprintf(buff, OPVP_BUFF_SIZE - 1, "%f",opdev->globals.margins[3]);
mtps.data = (byte *)buff;
mtps.size = strlen(buff) + 1;
mtps.persistent = false;
code = param_write_string(plist, pname, &mtps);
if (code) ecode = code;
pname = "MarginRight";
- snprintf(buff, OPVP_BUFF_SIZE - 1, "%f",margins[2]);
+ snprintf(buff, OPVP_BUFF_SIZE - 1, "%f",opdev->globals.margins[2]);
mrps.data = (byte *)buff;
mrps.size = strlen(buff) + 1;
mrps.persistent = false;
code = param_write_string(plist, pname, &mrps);
if (code) ecode = code;
pname = "MarginBottom";
- snprintf(buff, OPVP_BUFF_SIZE - 1, "%f",margins[1]);
+ snprintf(buff, OPVP_BUFF_SIZE - 1, "%f",opdev->globals.margins[1]);
mbps.data = (byte *)buff;
mbps.size = strlen(buff) + 1;
mbps.persistent = false;
@@ -3082,7 +3387,7 @@ _get_params(gs_param_list *plist)
/* zoom */
pname = "Zoom";
- snprintf(buff, OPVP_BUFF_SIZE - 1, "%f",zoom[0]);
+ snprintf(buff, OPVP_BUFF_SIZE - 1, "%f",opdev->globals.zoom[0]);
zmps.data = (byte *)buff;
zmps.size = strlen(buff) + 1;
zmps.persistent = false;
@@ -3105,7 +3410,7 @@ opvp_get_params(gx_device *dev, gs_param_list *plist)
if (code) return code;
/* get params */
- return _get_params(plist);
+ return _get_params(dev, plist);
}
/*
@@ -3121,14 +3426,14 @@ oprp_get_params(gx_device *dev, gs_param_list *plist)
if (code) return code;
/* get params */
- return _get_params(plist);
+ return _get_params(dev, plist);
}
/*
* put params
*/
static int
-_put_params(gs_param_list *plist)
+_put_params(gx_device *dev, gs_param_list *plist)
{
int code;
int ecode = 0;
@@ -3144,6 +3449,7 @@ _put_params(gs_param_list *plist)
gs_param_string mrps;
gs_param_string mbps;
gs_param_string zmps;
+ gx_device_opvp *opdev = (gx_device_opvp*)dev;
/* vector driver name */
pname = "Driver";
@@ -3153,10 +3459,10 @@ _put_params(gs_param_list *plist)
buff = realloc(buff, vdps.size + 1);
memcpy(buff, vdps.data, vdps.size);
buff[vdps.size] = 0;
- opvp_alloc_string(&vectorDriver, buff);
+ opvp_alloc_string(&(opdev->globals.vectorDriver), buff);
break;
case 1:
- /* opvp_alloc_string(&vectorDriver, NULL);*/
+ /* opvp_alloc_string(&(opdev->globals.vectorDriver), NULL);*/
break;
default:
ecode = code;
@@ -3171,10 +3477,10 @@ _put_params(gs_param_list *plist)
buff = realloc(buff, pmps.size + 1);
memcpy(buff, pmps.data, pmps.size);
buff[pmps.size] = 0;
- opvp_alloc_string(&printerModel, buff);
+ opvp_alloc_string(&(opdev->globals.printerModel), buff);
break;
case 1:
- /*opvp_alloc_string(&printerModel, NULL);*/
+ /*opvp_alloc_string(&(opdev->globals.printerModel), NULL);*/
break;
default:
ecode = code;
@@ -3189,10 +3495,10 @@ _put_params(gs_param_list *plist)
buff = realloc(buff, jips.size + 1);
memcpy(buff, jips.data, jips.size);
buff[jips.size] = 0;
- opvp_alloc_string(&jobInfo, buff);
+ opvp_alloc_string(&(opdev->globals.jobInfo), buff);
break;
case 1:
- /*opvp_alloc_string(&jobInfo, NULL);*/
+ /*opvp_alloc_string(&(opdev->globals.jobInfo), NULL);*/
break;
default:
ecode = code;
@@ -3207,10 +3513,10 @@ _put_params(gs_param_list *plist)
buff = realloc(buff, dips.size + 1);
memcpy(buff, dips.data, dips.size);
buff[dips.size] = 0;
- opvp_alloc_string(&docInfo, buff);
+ opvp_alloc_string(&(opdev->globals.docInfo), buff);
break;
case 1:
- /*opvp_alloc_string(&docInfo, NULL);*/
+ /*opvp_alloc_string(&(opdev->globals.docInfo), NULL);*/
break;
default:
ecode = code;
@@ -3256,7 +3562,7 @@ _put_params(gs_param_list *plist)
buff = realloc(buff, mlps.size + 1);
memcpy(buff, mlps.data, mlps.size);
buff[mlps.size] = 0;
- margins[0] = atof(buff);
+ opdev->globals.margins[0] = atof(buff);
break;
case 1:
break;
@@ -3271,7 +3577,7 @@ _put_params(gs_param_list *plist)
buff = realloc(buff, mtps.size + 1);
memcpy(buff, mtps.data, mtps.size);
buff[mtps.size] = 0;
- margins[3] = atof(buff);
+ opdev->globals.margins[3] = atof(buff);
break;
case 1:
break;
@@ -3286,7 +3592,7 @@ _put_params(gs_param_list *plist)
buff = realloc(buff, mrps.size + 1);
memcpy(buff, mrps.data, mrps.size);
buff[mrps.size] = 0;
- margins[2] = atof(buff);
+ opdev->globals.margins[2] = atof(buff);
break;
case 1:
break;
@@ -3301,7 +3607,7 @@ _put_params(gs_param_list *plist)
buff = realloc(buff, mbps.size + 1);
memcpy(buff, mbps.data, mbps.size);
buff[mbps.size] = 0;
- margins[1] = atof(buff);
+ opdev->globals.margins[1] = atof(buff);
break;
case 1:
break;
@@ -3319,15 +3625,15 @@ _put_params(gs_param_list *plist)
memcpy(buff, zmps.data, zmps.size);
buff[zmps.size] = 0;
if (strncasecmp(buff, "Auto", 4)) {
- zoom[0] = atof(buff);
- if (zoom[0] > 0) {
- zoom[1] = zoom[0];
+ opdev->globals.zoom[0] = atof(buff);
+ if (opdev->globals.zoom[0] > 0) {
+ opdev->globals.zoom[1] = opdev->globals.zoom[0];
} else {
- zoom[0] = zoom[1] = 1;
+ opdev->globals.zoom[0] = opdev->globals.zoom[1] = 1;
}
} else {
- zoom[0] = zoom[1] = 1;
- zoomAuto = true;
+ opdev->globals.zoom[0] = opdev->globals.zoom[1] = 1;
+ opdev->globals.zoomAuto = true;
}
break;
case 1:
@@ -3351,7 +3657,7 @@ opvp_put_params(gx_device *dev, gs_param_list *plist)
int code;
/* put params */
- code = _put_params(plist);
+ code = _put_params(dev, plist);
if (code) return code;
/* put default params */
@@ -3367,7 +3673,7 @@ oprp_put_params(gx_device *dev, gs_param_list *plist)
int code;
/* put params */
- code = _put_params(plist);
+ code = _put_params(dev, plist);
if (code) return code;
/* put default params */
@@ -3444,13 +3750,14 @@ opvp_fill_path(
{
bool draw_image = false;
gs_fixed_rect inner, outer;
+ gx_device_opvp *opdev = (gx_device_opvp*)dev;
/* check if paths are too complex */
if (!checkPath(ppath) || !checkCPath(pxpath)) {
return gx_default_fill_path(dev, pgs, ppath, params, pdevc, pxpath);
}
/* check clippath support */
- if (!(apiEntry->opvpSetClipPath)) {
+ if (!(opdev->globals.apiEntry->opvpSetClipPath)) {
/* get clipping box area */
gx_cpath_inner_box(pxpath,&inner);
gx_cpath_outer_box(pxpath,&outer);
@@ -3462,7 +3769,7 @@ opvp_fill_path(
}
}
- if (!vector || draw_image) {
+ if (!(opdev->globals.vector) || draw_image) {
return gx_default_fill_path(dev, pgs, ppath, params, pdevc, pxpath);
}
@@ -3483,6 +3790,7 @@ opvp_stroke_path(
{
bool draw_image = false;
gs_fixed_rect inner, outer;
+ gx_device_opvp *opdev = (gx_device_opvp *) dev;
/* check if paths are too complex */
if (!checkPath(ppath) || !checkCPath(pxpath)) {
@@ -3490,7 +3798,7 @@ opvp_stroke_path(
params, pdcolor, pxpath);
}
/* check clippath support */
- if (!(apiEntry->opvpSetClipPath)) {
+ if (!(opdev->globals.apiEntry->opvpSetClipPath)) {
/* get clipping box area */
gx_cpath_inner_box(pxpath,&inner);
gx_cpath_outer_box(pxpath,&outer);
@@ -3502,7 +3810,7 @@ opvp_stroke_path(
}
}
- if (!vector || draw_image) {
+ if (!(opdev->globals.vector) || draw_image) {
return gx_default_stroke_path(dev, pgs, ppath,
params, pdcolor, pxpath);
}
@@ -3530,7 +3838,9 @@ opvp_fill_mask(
gs_logical_operation_t lop,
const gx_clip_path *pcpath)
{
- if (vector) {
+ gx_device_opvp *opdev = (gx_device_opvp*) dev;
+
+ if (opdev->globals.vector) {
int code;
code = gdev_vector_update_fill_color((gx_device_vector *)dev, NULL, pdcolor);
if (code < 0) return code;
@@ -3574,6 +3884,7 @@ opvp_begin_typed_image(
int p;
float mag[2] = {1, 1};
const gs_color_space *pcs;
+ gx_device_opvp *opdev = (gx_device_opvp *)dev;
/* check if paths are too complex */
if (pic->type->index != 1 || !checkCPath(pcpath))
@@ -3757,7 +4068,7 @@ opvp_begin_typed_image(
* 3 planes 24 bits color image
* (8 bits per plane)
*/
- if (apiEntry->opvpStartDrawImage) {
+ if (opdev->globals.apiEntry->opvpStartDrawImage) {
draw_image = true;
}
}
@@ -3768,54 +4079,51 @@ opvp_begin_typed_image(
*pinfo = (gx_image_enum_common_t *)vinfo;
if (!ecode) {
+ opvp_cspace_t ncspace;
+
if (!pim->ImageMask) {
/* call SetPaintMode */
- if (apiEntry->opvpSetPaintMode) {
- apiEntry->opvpSetPaintMode(printerContext,
+ if (opdev->globals.apiEntry->opvpSetPaintMode) {
+ opdev->globals.apiEntry->opvpSetPaintMode(opdev->globals.printerContext,
OPVP_PAINTMODE_OPAQUE);
change_paint_mode = true;
}
/* set color space */
- if (apiEntry->opvpSetColorSpace != NULL) {
- opvp_cspace_t ncspace;
-
- savedColorSpace = colorSpace;
- switch (bits_per_pixel) {
- case 1:
- ncspace = OPVP_CSPACE_DEVICEGRAY;
- bits_per_pixel = 8;
- if (!cspace_available[ncspace]) {
- ncspace = OPVP_CSPACE_STANDARDRGB;
- bits_per_pixel = 24;
- }
- break;
- case 8:
- ncspace = OPVP_CSPACE_DEVICEGRAY;
- if (!cspace_available[ncspace]) {
- ncspace = OPVP_CSPACE_STANDARDRGB;
- bits_per_pixel = 24;
- }
- break;
- case 24:
- ncspace = OPVP_CSPACE_DEVICERGB;
- if (!cspace_available[ncspace]) {
- ncspace = OPVP_CSPACE_STANDARDRGB;
- }
- break;
- default:
+ opdev->globals.savedColorSpace = opdev->globals.colorSpace;
+ switch (bits_per_pixel) {
+ case 1:
+ ncspace = OPVP_CSPACE_DEVICEGRAY;
+ bits_per_pixel = 8;
+ if (!cspace_available[ncspace]) {
+ ncspace = OPVP_CSPACE_STANDARDRGB;
+ bits_per_pixel = 24;
+ }
+ break;
+ case 8:
+ ncspace = OPVP_CSPACE_DEVICEGRAY;
+ if (!cspace_available[ncspace]) {
+ ncspace = OPVP_CSPACE_STANDARDRGB;
+ bits_per_pixel = 24;
+ }
+ break;
+ case 24:
+ ncspace = OPVP_CSPACE_DEVICERGB;
+ if (!cspace_available[ncspace]) {
+ ncspace = OPVP_CSPACE_STANDARDRGB;
+ }
+ break;
+ default:
+ r = -1;
+ goto fallthrough;
+ break;
+ }
+ if (ncspace != opdev->globals.colorSpace) {
+ if (gsopvpSetColorSpace(dev, opdev->globals.printerContext, ncspace) != OPVP_OK) {
r = -1;
goto fallthrough;
- break;
- }
- if (ncspace != colorSpace) {
- if (apiEntry->opvpSetColorSpace(printerContext,ncspace)
- != OPVP_OK) {
- r = -1;
- goto fallthrough;
- }
- colorSpace = ncspace;
- change_cspace = true;
}
+ opdev->globals.colorSpace = ncspace;
+ change_cspace = true;
}
}
}
@@ -3832,8 +4140,8 @@ opvp_begin_typed_image(
ctm.d = mtx.yy;
ctm.e = mtx.tx;
ctm.f = mtx.ty;
- if (apiEntry->opvpSetCTM) {
- r = apiEntry->opvpSetCTM(printerContext, &ctm);
+ if (opdev->globals.apiEntry->opvpSetCTM) {
+ r = opdev->globals.apiEntry->opvpSetCTM(opdev->globals.printerContext, &ctm);
}
else r = -1;
if (r != OPVP_OK) ecode = r;
@@ -3841,38 +4149,33 @@ opvp_begin_typed_image(
}
if (!ecode) {
int dw,dh;
+ opvp_int_t adj_raster;
/* image size */
if (mag[0] != 1) {
- dw = floor(vinfo->width * mag[0]+0.5);
+ dw = (int) floor(vinfo->width * mag[0]+0.5);
} else {
dw = vinfo->width;
}
if (mag[1] != 1) {
- dh = floor(vinfo->height * mag[1]+0.5);
+ dh = (int) floor(vinfo->height * mag[1]+0.5);
} else {
dh = vinfo->height;
}
/* call StartDrawImage */
- if (apiEntry->opvpStartDrawImage) {
- opvp_int_t adj_raster;
-
- adj_raster = bits_per_pixel*vinfo->width;
- adj_raster = ((adj_raster+31) >> 5) << 2;
- r = apiEntry->opvpStartDrawImage(
- printerContext,
- vinfo->width,
- vinfo->height,
- adj_raster,
- pim->ImageMask ?
- OPVP_IFORMAT_MASK:
- OPVP_IFORMAT_RAW,
- dw,dh);
- if(r != OPVP_OK) {
- if (apiEntry->opvpEndDrawImage) {
- apiEntry->opvpEndDrawImage(printerContext);
- }
- }
+ adj_raster = bits_per_pixel*vinfo->width;
+ adj_raster = ((adj_raster+31) >> 5) << 2;
+ r = gsopvpStartDrawImage(dev,
+ opdev->globals.printerContext,
+ vinfo->width,
+ vinfo->height,
+ adj_raster,
+ pim->ImageMask ?
+ OPVP_IFORMAT_MASK:
+ OPVP_IFORMAT_RAW,
+ dw,dh);
+ if(r != OPVP_OK) {
+ gsopvpEndDrawImage(dev, opdev->globals.printerContext);
}
/* bugfix for 32bit CMYK image print error */
@@ -3880,23 +4183,20 @@ fallthrough:
if(r != OPVP_OK) {
if (change_paint_mode) {
/* restore paint mode */
- if (apiEntry->opvpSetPaintMode) {
- apiEntry->opvpSetPaintMode(printerContext,
+ if (opdev->globals.apiEntry->opvpSetPaintMode) {
+ opdev->globals.apiEntry->opvpSetPaintMode(opdev->globals.printerContext,
OPVP_PAINTMODE_TRANSPARENT);
}
change_paint_mode = false;
}
if (change_cspace) {
/* restore color space */
- colorSpace = savedColorSpace;
- if (apiEntry->opvpSetColorSpace) {
- apiEntry->opvpSetColorSpace(printerContext,
- colorSpace);
- }
+ opdev->globals.colorSpace = opdev->globals.savedColorSpace;
+ gsopvpSetColorSpace(dev, opdev->globals.printerContext, opdev->globals.colorSpace);
change_cspace = false;
}
- if(apiEntry->opvpResetCTM) {
- apiEntry->opvpResetCTM(printerContext); /* reset CTM */
+ if(opdev->globals.apiEntry->opvpResetCTM) {
+ opdev->globals.apiEntry->opvpResetCTM(opdev->globals.printerContext); /* reset CTM */
}
goto fallback;
}
@@ -3942,6 +4242,7 @@ opvp_image_plane_data(
bbox_image_enum *pbe;
gx_image_enum *tinfo;
const gs_gstate *pgs;
+ gx_device_opvp *opdev = (gx_device_opvp*)(info->dev);
vinfo = (gdev_vector_image_enum_t *)info;
@@ -4037,7 +4338,7 @@ opvp_image_plane_data(
if(color_index == gs_color_space_index_Indexed) {
if (base_color_index == gs_color_space_index_DeviceGray ||
base_color_index == gs_color_space_index_CIEA) {
- if (colorSpace == OPVP_CSPACE_DEVICEGRAY) {
+ if (opdev->globals.colorSpace == OPVP_CSPACE_DEVICEGRAY) {
/* Convert indexed gray color -> Gray */
if (bits_per_pixel == 8) { /* 8bit image */
dst_bytes = data_bytes;
@@ -4193,8 +4494,8 @@ opvp_image_plane_data(
/* Convert Gray */
if(color_index == gs_color_space_index_DeviceGray ||
color_index == gs_color_space_index_CIEA) {
- if (colorSpace == OPVP_CSPACE_STANDARDRGB
- || colorSpace == OPVP_CSPACE_DEVICERGB) {
+ if (opdev->globals.colorSpace == OPVP_CSPACE_STANDARDRGB
+ || opdev->globals.colorSpace == OPVP_CSPACE_DEVICERGB) {
/* convert to RGB */
if (bits_per_pixel == 8) { /* 8bit image */
dst_bytes = data_bytes * 3;
@@ -4206,7 +4507,7 @@ opvp_image_plane_data(
src_ptr = buf + raster_length * i;
dst_ptr = tmp_buf + dst_length * i;
for (j = 0; j < data_bytes; j++) {
- unsigned char d = floor(
+ unsigned char d = (unsigned char) floor(
imageDecode[0]*255 + src_ptr[j]*
(imageDecode[1]-imageDecode[0])+0.5);
@@ -4234,7 +4535,7 @@ opvp_image_plane_data(
for (j = 0; j < vinfo->width; j++) {
int o = ((src_ptr[j/8] & (1 << (7 - (j & 7))))
!= 0);
- unsigned char d = floor(
+ unsigned char d = (unsigned char) floor(
imageDecode[0]*255 + o*
(imageDecode[1]-imageDecode[0])*255+0.5);
dst_ptr[j*3] = d; /* R */
@@ -4250,7 +4551,7 @@ opvp_image_plane_data(
vinfo->bits_per_pixel = 24;
}
}
- } else if (colorSpace == OPVP_CSPACE_DEVICEGRAY) {
+ } else if (opdev->globals.colorSpace == OPVP_CSPACE_DEVICEGRAY) {
if (bits_per_pixel == 1) { /* 1bit image */
dst_bytes = vinfo->width;
dst_length = ((dst_bytes + 3) >> 2) << 2;
@@ -4263,7 +4564,7 @@ opvp_image_plane_data(
for (j = 0; j < vinfo->width; j++) {
int o = ((src_ptr[j/8] & (1 << (7 - (j & 7))))
!= 0);
- unsigned char d = floor(
+ unsigned char d = (unsigned char) floor(
imageDecode[0]*255 + o*
(imageDecode[1]-imageDecode[0])*255+0.5);
dst_ptr[j] = d; /* R */
@@ -4299,8 +4600,8 @@ opvp_image_plane_data(
}
/* call TansferDrawImage */
- if (apiEntry->opvpTransferDrawImage) {
- apiEntry->opvpTransferDrawImage(printerContext,
+ if (opdev->globals.apiEntry->opvpTransferDrawImage) {
+ opdev->globals.apiEntry->opvpTransferDrawImage(opdev->globals.printerContext,
raster_length * height, (void *)buf);
}
}
@@ -4325,21 +4626,20 @@ opvp_image_end_image(gx_image_enum_common_t *info, bool draw_last)
gx_device_vector *vdev = (gx_device_vector *)dev;
gdev_vector_image_enum_t *vinfo;
opvp_ctm_t ctm;
+ gx_device_opvp *opdev = (gx_device_opvp*)dev;
vinfo = (gdev_vector_image_enum_t *)info;
if (begin_image) {
/* call EndDrawImage */
- if (apiEntry->opvpEndDrawImage) {
- apiEntry->opvpEndDrawImage(printerContext);
- }
+ gsopvpEndDrawImage(dev, opdev->globals.printerContext);
begin_image = false;
if (FastImageMode != FastImageNoCTM) {
/* call ResetCTM */
- if (apiEntry->opvpResetCTM) {
- apiEntry->opvpResetCTM(printerContext);
+ if (opdev->globals.apiEntry->opvpResetCTM) {
+ opdev->globals.apiEntry->opvpResetCTM(opdev->globals.printerContext);
} else {
/* call SetCTM */
ctm.a = 1;
@@ -4348,25 +4648,24 @@ opvp_image_end_image(gx_image_enum_common_t *info, bool draw_last)
ctm.d = 1;
ctm.e = 0;
ctm.f = 0;
- if (apiEntry->opvpSetCTM) {
- apiEntry->opvpSetCTM(printerContext, &ctm);
+ if (opdev->globals.apiEntry->opvpSetCTM) {
+ opdev->globals.apiEntry->opvpSetCTM(opdev->globals.printerContext, &ctm);
}
}
}
if (change_paint_mode) {
/* restore paint mode */
- if (apiEntry->opvpSetPaintMode) {
- apiEntry->opvpSetPaintMode(printerContext,
+ if (opdev->globals.apiEntry->opvpSetPaintMode) {
+ opdev->globals.apiEntry->opvpSetPaintMode(opdev->globals.printerContext,
OPVP_PAINTMODE_TRANSPARENT);
}
change_paint_mode = false;
}
if (change_cspace) {
/* restore color space */
- colorSpace = savedColorSpace;
- if (apiEntry->opvpSetColorSpace) {
- apiEntry->opvpSetColorSpace(printerContext,
- colorSpace);
+ opdev->globals.colorSpace = opdev->globals.savedColorSpace;
+ if (gsopvpSetColorSpace(dev, opdev->globals.printerContext, opdev->globals.colorSpace) != OPVP_OK) {
+ return -1;
}
change_cspace = false;
}
@@ -4382,20 +4681,20 @@ opvp_image_end_image(gx_image_enum_common_t *info, bool draw_last)
static int
opvp_beginpage(gx_device_vector *vdev)
{
- gx_device_opvp *pdev = (gx_device_opvp *)vdev;
+ gx_device_opvp *opdev = (gx_device_opvp *)vdev;
int code = -1;
int ecode = 0;
#ifdef OPVP_IGNORE_BLANK_PAGE
- if (pdev->in_page) return 0;
+ if (opdev->in_page) return 0;
#endif
/* start page */
- code = opvp_startpage((gx_device *)pdev);
+ code = opvp_startpage((gx_device *)opdev);
if (code) {
ecode = code;
} else {
- pdev->in_page = true; /* added '05.12.07 */
- beginPage = true;
+ opdev->in_page = true; /* added '05.12.07 */
+ opdev->globals.beginPage = true;
}
return ecode;
@@ -4407,18 +4706,19 @@ opvp_beginpage(gx_device_vector *vdev)
static int
opvp_setlinewidth(gx_device_vector *vdev, double width)
{
- gx_device_opvp *pdev = (gx_device_opvp *)vdev;
+ gx_device_opvp *opdev = (gx_device_opvp *)vdev;
opvp_result_t r = -1;
int ecode = 0;
opvp_fix_t w;
/* check page-in */
- if (opvp_check_in_page(pdev)) return -1;
+ if (opvp_check_in_page(opdev))
+ return -1;
/* call SetLineWidth */
OPVP_F2FIX(width, w);
- if (apiEntry->opvpSetLineWidth) {
- r = apiEntry->opvpSetLineWidth(printerContext, w);
+ if (opdev->globals.apiEntry->opvpSetLineWidth) {
+ r = opdev->globals.apiEntry->opvpSetLineWidth(opdev->globals.printerContext, w);
}
if (r != OPVP_OK) {
ecode = -1;
@@ -4433,13 +4733,14 @@ opvp_setlinewidth(gx_device_vector *vdev, double width)
static int
opvp_setlinecap(gx_device_vector *vdev, gs_line_cap cap)
{
- gx_device_opvp *pdev = (gx_device_opvp *)vdev;
+ gx_device_opvp *opdev = (gx_device_opvp *)vdev;
opvp_result_t r = -1;
int ecode = 0;
opvp_linecap_t linecap;
/* check page-in */
- if (opvp_check_in_page(pdev)) return -1;
+ if (opvp_check_in_page(opdev))
+ return -1;
switch (cap) {
case gs_cap_butt:
@@ -4458,8 +4759,8 @@ opvp_setlinecap(gx_device_vector *vdev, gs_line_cap cap)
}
/* call SetLineCap */
- if (apiEntry->opvpSetLineCap) {
- r = apiEntry->opvpSetLineCap(printerContext, linecap);
+ if (opdev->globals.apiEntry->opvpSetLineCap) {
+ r = opdev->globals.apiEntry->opvpSetLineCap(opdev->globals.printerContext, linecap);
}
if (r != OPVP_OK) {
ecode = -1;
@@ -4474,13 +4775,14 @@ opvp_setlinecap(gx_device_vector *vdev, gs_line_cap cap)
static int
opvp_setlinejoin(gx_device_vector *vdev, gs_line_join join)
{
- gx_device_opvp *pdev = (gx_device_opvp *)vdev;
+ gx_device_opvp *opdev = (gx_device_opvp *)vdev;
opvp_result_t r = -1;
int ecode = 0;
opvp_linejoin_t linejoin;
/* check page-in */
- if (opvp_check_in_page(pdev)) return -1;
+ if (opvp_check_in_page(opdev))
+ return -1;
switch (join) {
case gs_join_miter:
@@ -4500,8 +4802,8 @@ opvp_setlinejoin(gx_device_vector *vdev, gs_line_join join)
}
/* call SetLineJoin */
- if (apiEntry->opvpSetLineJoin) {
- r = apiEntry->opvpSetLineJoin(printerContext, linejoin);
+ if (opdev->globals.apiEntry->opvpSetLineJoin) {
+ r = opdev->globals.apiEntry->opvpSetLineJoin(opdev->globals.printerContext, linejoin);
}
if (r != OPVP_OK) {
ecode = -1;
@@ -4516,18 +4818,19 @@ opvp_setlinejoin(gx_device_vector *vdev, gs_line_join join)
static int
opvp_setmiterlimit(gx_device_vector *vdev, double limit)
{
- gx_device_opvp *pdev = (gx_device_opvp *)vdev;
+ gx_device_opvp *opdev = (gx_device_opvp *)vdev;
opvp_result_t r = -1;
int ecode = 0;
opvp_fix_t l;
/* check page-in */
- if (opvp_check_in_page(pdev)) return -1;
+ if (opvp_check_in_page(opdev))
+ return -1;
/* call SetMiterLimit */
OPVP_F2FIX(limit, l);
- if (apiEntry->opvpSetMiterLimit) {
- r = apiEntry->opvpSetMiterLimit(printerContext, l);
+ if (opdev->globals.apiEntry->opvpSetMiterLimit) {
+ r = opdev->globals.apiEntry->opvpSetMiterLimit(opdev->globals.printerContext, l);
}
if (r != OPVP_OK) {
ecode = -1;
@@ -4546,7 +4849,7 @@ opvp_setdash(
uint count,
double offset)
{
- gx_device_opvp *pdev = (gx_device_opvp *)vdev;
+ gx_device_opvp *opdev = (gx_device_opvp *)vdev;
opvp_result_t r = -1;
int ecode = 0;
opvp_fix_t *p = NULL;
@@ -4554,7 +4857,8 @@ opvp_setdash(
int i;
/* check page-in */
- if (opvp_check_in_page(pdev)) return -1;
+ if (opvp_check_in_page(opdev))
+ return -1;
/* pattern */
if (count) {
@@ -4570,9 +4874,7 @@ opvp_setdash(
/* call SetLineDash */
if (!ecode) {
- if (apiEntry->opvpSetLineDash) {
- r = apiEntry->opvpSetLineDash(printerContext, count,p);
- }
+ r = gsopvpSetLineDash((gx_device*) vdev, opdev->globals.printerContext, count,p);
if (r != OPVP_OK) {
ecode = -1;
}
@@ -4581,8 +4883,8 @@ opvp_setdash(
/* call SetLineDashOffset */
if (!ecode) {
OPVP_F2FIX(offset, o);
- if (apiEntry->opvpSetLineDashOffset) {
- r = apiEntry->opvpSetLineDashOffset(printerContext, o);
+ if (opdev->globals.apiEntry->opvpSetLineDashOffset) {
+ r = opdev->globals.apiEntry->opvpSetLineDashOffset(opdev->globals.printerContext, o);
}
if (r != OPVP_OK) {
ecode = -1;
@@ -4591,8 +4893,8 @@ opvp_setdash(
/* call SetLineStyle */
if (!ecode) {
- if (apiEntry->opvpSetLineStyle) {
- r = apiEntry->opvpSetLineStyle(printerContext,
+ if (opdev->globals.apiEntry->opvpSetLineStyle) {
+ r = opdev->globals.apiEntry->opvpSetLineStyle(opdev->globals.printerContext,
(count ?
OPVP_LINESTYLE_DASH :
OPVP_LINESTYLE_SOLID));
@@ -4613,11 +4915,12 @@ opvp_setdash(
static int
opvp_setflat(gx_device_vector *vdev, double flatness)
{
- gx_device_opvp *pdev = (gx_device_opvp *)vdev;
+ gx_device_opvp *opdev = (gx_device_opvp *)vdev;
int ecode = 0;
/* check page-in */
- if (opvp_check_in_page(pdev)) return -1;
+ if (opvp_check_in_page(opdev))
+ return -1;
/* what to do ? */
@@ -4654,26 +4957,26 @@ opvp_setfillcolor(
const gs_gstate *pgs, /* added for gs 8.15 */
const gx_drawing_color *pdc)
{
- gx_device_opvp *pdev = (gx_device_opvp *)vdev;
+ gx_device_opvp *opdev = (gx_device_opvp *)vdev;
opvp_result_t r = -1;
int ecode = 0;
gx_color_index color;
static opvp_brush_t brush;
/* check page-in */
- if (opvp_check_in_page(pdev)) return -1;
+ if (opvp_check_in_page(opdev))
+ return -1;
if (!gx_dc_is_pure(pdc)) return_error(gs_error_rangecheck);
/* color */
- if (!vectorFillColor) vectorFillColor = &brush;
+ if (!opdev->globals.vectorFillColor)
+ opdev->globals.vectorFillColor = &brush;
color = gx_dc_pure_color(pdc);
- opvp_set_brush_color(pdev, color, vectorFillColor);
+ opvp_set_brush_color(opdev, color, opdev->globals.vectorFillColor);
/* call SetFillColor */
- if (apiEntry->opvpSetFillColor) {
- r = apiEntry->opvpSetFillColor(printerContext, vectorFillColor);
- }
+ r = gsopvpSetFillColor((gx_device*) vdev, opdev->globals.printerContext, opdev->globals.vectorFillColor);
if (r != OPVP_OK) {
ecode = -1;
}
@@ -4690,25 +4993,24 @@ opvp_setstrokecolor(
const gs_gstate *pgs, /* added for gs 8.15 */
const gx_drawing_color *pdc)
{
- gx_device_opvp *pdev = (gx_device_opvp *)vdev;
+ gx_device_opvp *opdev = (gx_device_opvp *)vdev;
opvp_result_t r = -1;
int ecode = 0;
gx_color_index color;
opvp_brush_t brush;
/* check page-in */
- if (opvp_check_in_page(pdev)) return -1;
+ if (opvp_check_in_page(opdev))
+ return -1;
if (!gx_dc_is_pure(pdc)) return_error(gs_error_rangecheck);
/* color */
color = gx_dc_pure_color(pdc);
- opvp_set_brush_color(pdev, color, &brush);
+ opvp_set_brush_color(opdev, color, &brush);
/* call SetStrokeColor */
- if (apiEntry->opvpSetStrokeColor) {
- r = apiEntry->opvpSetStrokeColor(printerContext, &brush);
- }
+ r = gsopvpSetStrokeColor((gx_device*) vdev, opdev->globals.printerContext, &brush);
if (r != OPVP_OK) {
ecode = -1;
}
@@ -4728,7 +5030,7 @@ opvp_vector_dopath(
gx_path_type_t type,
const gs_matrix *pmat)
{
- gx_device_opvp *pdev = (gx_device_opvp *)vdev;
+ gx_device_opvp *opdev = (gx_device_opvp *)vdev;
opvp_result_t r = -1;
int code = -1;
int ecode = 0;
@@ -4755,7 +5057,8 @@ opvp_vector_dopath(
current.x = current.y = 0;
#endif
/* check page-in */
- if (opvp_check_in_page(pdev)) return -1;
+ if (opvp_check_in_page(opdev))
+ return -1;
if (gx_path_is_rectangle(ppath, &rect))
return (*vdev_proc(vdev, dorect))(vdev,
@@ -4797,9 +5100,9 @@ opvp_vector_dopath(
switch (pop) {
case gs_pe_moveto:
/* call SetCurrentPoint */
- if (apiEntry->opvpSetCurrentPoint) {
- r = apiEntry->opvpSetCurrentPoint(
- printerContext,
+ if (opdev->globals.apiEntry->opvpSetCurrentPoint) {
+ r = opdev->globals.apiEntry->opvpSetCurrentPoint(
+ opdev->globals.printerContext,
opvp_p[npoints-1].x,
opvp_p[npoints-1].y);
}
@@ -4807,9 +5110,9 @@ opvp_vector_dopath(
break;
case gs_pe_lineto:
/* call LinePath */
- if (apiEntry->opvpLinePath) {
- r = apiEntry->opvpLinePath(
- printerContext,
+ if (opdev->globals.apiEntry->opvpLinePath) {
+ r = opdev->globals.apiEntry->opvpLinePath(
+ opdev->globals.printerContext,
OPVP_PATHOPEN,
npoints - 1,
&(opvp_p[1]));
@@ -4819,9 +5122,9 @@ opvp_vector_dopath(
case gs_pe_curveto:
/* npoints */
/* call BezierPath */
- if (apiEntry->opvpBezierPath) {
- r = apiEntry->opvpBezierPath(
- printerContext,
+ if (opdev->globals.apiEntry->opvpBezierPath) {
+ r = opdev->globals.apiEntry->opvpBezierPath(
+ opdev->globals.printerContext,
npoints - 1,
&(opvp_p[1])
);
@@ -4950,8 +5253,8 @@ opvp_vector_dopath(
break;
default:
/* error */
- return_error(gs_error_unknownerror);
- break;
+ ecode = gs_note_error(gs_error_unknownerror);
+ goto exit;
}
#ifdef OPVP_OPT_MULTI_PATH
@@ -4963,6 +5266,7 @@ opvp_vector_dopath(
code = (*vdev_proc(vdev, endpath))(vdev, type);
if (code) ecode = code;
+exit:
#ifdef OPVP_OPT_MULTI_PATH
if (points) free(points);
if (opvp_p) free(opvp_p);
@@ -4982,7 +5286,7 @@ opvp_vector_dorect(
fixed y1,
gx_path_type_t type)
{
- gx_device_opvp *pdev = (gx_device_opvp *)vdev;
+ gx_device_opvp *opdev = (gx_device_opvp *)vdev;
opvp_result_t r = -1;
int code = -1;
int ecode = 0;
@@ -4991,7 +5295,8 @@ opvp_vector_dorect(
_fPoint p;
/* check page-in */
- if (opvp_check_in_page(pdev)) return -1;
+ if (opvp_check_in_page(opdev))
+ return -1;
/* begin path */
code = (*vdev_proc(vdev, beginpath))(vdev, type);
@@ -5010,8 +5315,9 @@ opvp_vector_dorect(
OPVP_F2FIX(p.y, rectangles[0].p1.y);
/* call RectanglePath */
- if (apiEntry->opvpRectanglePath) {
- r = apiEntry->opvpRectanglePath(printerContext,
+ if (opdev->globals.apiEntry->opvpRectanglePath) {
+ r = opdev->globals.apiEntry->opvpRectanglePath(
+ opdev->globals.printerContext,
1,
rectangles);
}
@@ -5038,22 +5344,23 @@ opvp_vector_dorect(
static int
opvp_beginpath(gx_device_vector *vdev, gx_path_type_t type)
{
- gx_device_opvp *pdev = (gx_device_opvp *)vdev;
+ gx_device_opvp *opdev = (gx_device_opvp *)vdev;
opvp_result_t r = -1;
int ecode = 0;
/* check page-in */
- if (opvp_check_in_page(pdev)) return -1;
+ if (opvp_check_in_page(opdev))
+ return -1;
/* check clip-path */
if (type & gx_path_type_clip) {
- if (apiEntry->opvpResetClipPath)
- apiEntry->opvpResetClipPath(printerContext);
+ if (opdev->globals.apiEntry->opvpResetClipPath)
+ opdev->globals.apiEntry->opvpResetClipPath(opdev->globals.printerContext);
}
/* call NewPath */
- if (apiEntry->opvpNewPath) {
- r = apiEntry->opvpNewPath(printerContext);
+ if (opdev->globals.apiEntry->opvpNewPath) {
+ r = opdev->globals.apiEntry->opvpNewPath(opdev->globals.printerContext);
}
if (r != OPVP_OK) {
ecode = -1;
@@ -5074,19 +5381,20 @@ opvp_moveto(
double y1,
gx_path_type_t type)
{
- gx_device_opvp *pdev = (gx_device_opvp *)vdev;
+ gx_device_opvp *opdev = (gx_device_opvp *)vdev;
opvp_result_t r = -1;
int ecode = 0;
opvp_point_t p;
/* check page-in */
- if (opvp_check_in_page(pdev)) return -1;
+ if (opvp_check_in_page(opdev))
+ return -1;
/* call SetCurrentPoint */
OPVP_F2FIX(x1, p.x);
OPVP_F2FIX(y1, p.y);
- if (apiEntry->opvpSetCurrentPoint) {
- r = apiEntry->opvpSetCurrentPoint(printerContext, p.x, p.y);
+ if (opdev->globals.apiEntry->opvpSetCurrentPoint) {
+ r = opdev->globals.apiEntry->opvpSetCurrentPoint(opdev->globals.printerContext, p.x, p.y);
}
if (r != OPVP_OK) {
ecode = -1;
@@ -5107,21 +5415,23 @@ opvp_lineto(
double y1,
gx_path_type_t type)
{
- gx_device_opvp *pdev = (gx_device_opvp *)vdev;
+ gx_device_opvp *opdev = (gx_device_opvp *)vdev;
opvp_result_t r = -1;
int ecode = 0;
opvp_point_t points[1];
/* check page-in */
- if (opvp_check_in_page(pdev)) return -1;
+ if (opvp_check_in_page(opdev))
+ return -1;
/* point */
OPVP_F2FIX(x1, points[0].x);
OPVP_F2FIX(y1, points[0].y);
/* call LinePath */
- if (apiEntry->opvpLinePath) {
- r = apiEntry->opvpLinePath(printerContext, OPVP_PATHOPEN, 1, points);
+ if (opdev->globals.apiEntry->opvpLinePath) {
+ r = opdev->globals.apiEntry->opvpLinePath(
+ opdev->globals.printerContext, OPVP_PATHOPEN, 1, points);
}
if (r != OPVP_OK) {
ecode = -1;
@@ -5146,13 +5456,14 @@ opvp_curveto(
double y3,
gx_path_type_t type)
{
- gx_device_opvp *pdev = (gx_device_opvp *)vdev;
+ gx_device_opvp *opdev = (gx_device_opvp *)vdev;
opvp_result_t r = -1;
int ecode = 0;
opvp_point_t points[4];
/* check page-in */
- if (opvp_check_in_page(pdev)) return -1;
+ if (opvp_check_in_page(opdev))
+ return -1;
/* points */
OPVP_F2FIX(x0, points[0].x);
@@ -5165,8 +5476,9 @@ opvp_curveto(
OPVP_F2FIX(y3, points[3].y);
/* call BezierPath */
- if (apiEntry->opvpBezierPath) {
- r = apiEntry->opvpBezierPath(printerContext,
+ if (opdev->globals.apiEntry->opvpBezierPath) {
+ r = opdev->globals.apiEntry->opvpBezierPath(
+ opdev->globals.printerContext,
3,
&(points[1])
);
@@ -5190,21 +5502,23 @@ opvp_closepath(
double y_start,
gx_path_type_t type)
{
- gx_device_opvp *pdev = (gx_device_opvp *)vdev;
+ gx_device_opvp *opdev = (gx_device_opvp *)vdev;
opvp_result_t r = -1;
int ecode = 0;
opvp_point_t points[1];
/* check page-in */
- if (opvp_check_in_page(pdev)) return -1;
+ if (opvp_check_in_page(opdev))
+ return -1;
/* point */
OPVP_F2FIX(x_start, points[0].x);
OPVP_F2FIX(y_start, points[0].y);
/* call LinePath */
- if (apiEntry->opvpLinePath) {
- r = apiEntry->opvpLinePath(printerContext, OPVP_PATHCLOSE, 1, points);
+ if (opdev->globals.apiEntry->opvpLinePath) {
+ r = opdev->globals.apiEntry->opvpLinePath(
+ opdev->globals.printerContext, OPVP_PATHCLOSE, 1, points);
}
if (r != OPVP_OK) {
ecode = -1;
@@ -5219,16 +5533,17 @@ opvp_closepath(
static int
opvp_endpath(gx_device_vector *vdev, gx_path_type_t type)
{
- gx_device_opvp *pdev = (gx_device_opvp *)vdev;
+ gx_device_opvp *opdev = (gx_device_opvp *)vdev;
opvp_result_t r = -1;
int ecode = 0;
/* check page-in */
- if (opvp_check_in_page(pdev)) return -1;
+ if (opvp_check_in_page(opdev))
+ return -1;
/* call EndPath */
- if (apiEntry->opvpEndPath) {
- r = apiEntry->opvpEndPath(printerContext);
+ if (opdev->globals.apiEntry->opvpEndPath) {
+ r = opdev->globals.apiEntry->opvpEndPath(opdev->globals.printerContext);
}
if (r != OPVP_OK) {
ecode = -1;
@@ -5238,9 +5553,9 @@ opvp_endpath(gx_device_vector *vdev, gx_path_type_t type)
/* fill mode */
if (type & gx_path_type_even_odd) {
/* call SetFillMode */
- if (apiEntry->opvpSetFillMode) {
- r = apiEntry->opvpSetFillMode(
- printerContext,
+ if (opdev->globals.apiEntry->opvpSetFillMode) {
+ r = opdev->globals.apiEntry->opvpSetFillMode(
+ opdev->globals.printerContext,
OPVP_FILLMODE_EVENODD
);
}
@@ -5249,9 +5564,9 @@ opvp_endpath(gx_device_vector *vdev, gx_path_type_t type)
}
} else {
/* call SetFillMode */
- if (apiEntry->opvpSetFillMode) {
- r = apiEntry->opvpSetFillMode(
- printerContext,
+ if (opdev->globals.apiEntry->opvpSetFillMode) {
+ r = opdev->globals.apiEntry->opvpSetFillMode(
+ opdev->globals.printerContext,
OPVP_FILLMODE_WINDING
);
}
@@ -5262,16 +5577,16 @@ opvp_endpath(gx_device_vector *vdev, gx_path_type_t type)
if (type & gx_path_type_stroke) {
/* call StrokeFillPath */
- if (apiEntry->opvpStrokeFillPath) {
- r = apiEntry->opvpStrokeFillPath(printerContext);
+ if (opdev->globals.apiEntry->opvpStrokeFillPath) {
+ r = opdev->globals.apiEntry->opvpStrokeFillPath(opdev->globals.printerContext);
}
if (r != OPVP_OK) {
ecode = -1;
}
} else {
/* call FillPath */
- if (apiEntry->opvpFillPath) {
- r = apiEntry->opvpFillPath(printerContext);
+ if (opdev->globals.apiEntry->opvpFillPath) {
+ r = opdev->globals.apiEntry->opvpFillPath(opdev->globals.printerContext);
}
if (r != OPVP_OK) {
ecode = -1;
@@ -5279,9 +5594,9 @@ opvp_endpath(gx_device_vector *vdev, gx_path_type_t type)
}
} else if (type & gx_path_type_clip) {
/* call SetClipPath */
- if (apiEntry->opvpSetClipPath) {
- r = apiEntry->opvpSetClipPath(
- printerContext,
+ if (opdev->globals.apiEntry->opvpSetClipPath) {
+ r = opdev->globals.apiEntry->opvpSetClipPath(
+ opdev->globals.printerContext,
(type & gx_path_type_even_odd
? OPVP_CLIPRULE_EVENODD
: OPVP_CLIPRULE_WINDING));
@@ -5291,8 +5606,8 @@ opvp_endpath(gx_device_vector *vdev, gx_path_type_t type)
}
} else if (type & gx_path_type_stroke) {
/* call StrokePath */
- if (apiEntry->opvpStrokePath) {
- r = apiEntry->opvpStrokePath(printerContext);
+ if (opdev->globals.apiEntry->opvpStrokePath) {
+ r = opdev->globals.apiEntry->opvpStrokePath(opdev->globals.printerContext);
}
if (r != OPVP_OK) {
ecode = -1;
diff --git a/contrib/opvp/opvp.h b/contrib/opvp/opvp.h
index 426e8cf7..db09046d 100644
--- a/contrib/opvp/opvp.h
+++ b/contrib/opvp/opvp.h
@@ -160,7 +160,7 @@ typedef struct _opvp_brushdata {
#elif defined(__HP_cc)
opvp_byte_t data[1];
#else
- opvp_byte_t data[];
+ opvp_byte_t data[1];
#endif
} opvp_brushdata_t;
@@ -222,8 +222,8 @@ typedef struct _opvp_api_procs {
opvp_result_t (*opvpEndDoc)(opvp_dc_t);
opvp_result_t (*opvpStartPage)(opvp_dc_t,const opvp_char_t*);
opvp_result_t (*opvpEndPage)(opvp_dc_t);
- opvp_result_t (*opvpQueryDeviceCapability)(opvp_dc_t,opvp_flag_t,opvp_int_t*,opvp_byte_t*);
- opvp_result_t (*opvpQueryDeviceInfo)(opvp_dc_t,opvp_flag_t,opvp_int_t*,opvp_char_t*);
+ opvp_result_t (*opvpQueryDeviceCapability)(opvp_dc_t, opvp_queryinfoflags_t,opvp_int_t*,opvp_byte_t*);
+ opvp_result_t (*opvpQueryDeviceInfo)(opvp_dc_t, opvp_queryinfoflags_t,opvp_int_t*,opvp_char_t*);
opvp_result_t (*opvpResetCTM)(opvp_dc_t);
opvp_result_t (*opvpSetCTM)(opvp_dc_t,const opvp_ctm_t*);
opvp_result_t (*opvpGetCTM)(opvp_dc_t,opvp_ctm_t*);
@@ -287,8 +287,7 @@ typedef struct _opvp_api_procs {
} opvp_api_procs_t;
/* Function prototype */
-opvp_dc_t opvpOpenPrinter(
- opvp_int_t outputFD,
+extern opvp_dc_t opvpOpenPrinter(opvp_int_t outputFD,
const opvp_char_t *printerModel,
const opvp_int_t apiVersion[2],
opvp_api_procs_t **apiProcs);
diff --git a/contrib/opvp/opvp_0_2_0.h b/contrib/opvp/opvp_0_2_0.h
index 6030971a..8518b7e8 100644
--- a/contrib/opvp/opvp_0_2_0.h
+++ b/contrib/opvp/opvp_0_2_0.h
@@ -210,7 +210,7 @@ typedef struct _OPVP_CTM {
typedef struct _OPVP_api_procs {
int (*OpenPrinter)(int,char *,int *,struct _OPVP_api_procs **);
int (*ClosePrinter)(int);
- int (*StartJob)(int,char *);
+ int (*StartJob)(int, char *);
int (*EndJob)(int);
int (*StartDoc)(int,char *);
int (*EndDoc)(int);
@@ -238,7 +238,7 @@ typedef struct _OPVP_api_procs {
int (*GetAlphaConstant)(int,float *);
int (*SetLineWidth)(int,OPVP_Fix);
int (*GetLineWidth)(int,OPVP_Fix *);
- int (*SetLineDash)(int,OPVP_Fix *,int);
+ int (*SetLineDash)(int, int, OPVP_Fix *);
int (*GetLineDash)(int,OPVP_Fix *,int *);
int (*SetLineDashOffset)(int,OPVP_Fix);
int (*GetLineDashOffset)(int,OPVP_Fix *);
diff --git a/contrib/opvp/opvpharness.c b/contrib/opvp/opvpharness.c
new file mode 100644
index 00000000..95919f41
--- /dev/null
+++ b/contrib/opvp/opvpharness.c
@@ -0,0 +1,947 @@
+/* Test harness for checking results after
+ removal of globals in opvp device. Note,
+ 0.2 API not tested. Assumption is OpenPrinter
+ is the first method called and ClosePrinter
+ will be the final method called. If not,
+ there will be problems. */
+
+#include "opvp.h"
+#include <stdio.h>
+#include <stdlib.h>
+#include <math.h>
+
+/* Yes globals, but here we don't care */
+FILE *pFile = NULL;
+
+/* Graphic state members of API that are set and get. */
+typedef struct opvp_gstate_s {
+ opvp_ctm_t ctm;
+ opvp_cspace_t colorspace;
+ opvp_fillmode_t fill_mode;
+ opvp_float_t alpha;
+ opvp_fix_t line_width;
+ opvp_int_t line_dash_n;
+ opvp_fix_t *line_dash_array;
+ opvp_fix_t dash_offset;
+ opvp_linestyle_t line_style;
+ opvp_linecap_t line_cap;
+ opvp_linejoin_t line_join;
+ opvp_fix_t miter_limit;
+ opvp_paintmode_t paintmode;
+} opvp_gstate_t;
+
+opvp_gstate_t opv_gstate;
+
+static opvp_result_t
+opvpClosePrinter(opvp_dc_t printerContext)
+{
+ fputs("opvpClosePrinter\n", pFile);
+ fprintf(pFile, "\tContext = %d\n", printerContext);
+ fclose(pFile);
+
+ if (opv_gstate.line_dash_array != NULL)
+ free(opv_gstate.line_dash_array);
+
+ return 0;
+}
+
+static opvp_result_t
+opvpStartJob(opvp_dc_t printerContext, const opvp_char_t *job_info)
+{
+ fputs("opvpStartJob\n", pFile);
+ fprintf(pFile, "\tContext = %d\n", printerContext);
+ fprintf(pFile, "\tjob_info = %s\n", job_info);
+ return 0;
+}
+
+static opvp_result_t
+opvpEndJob(opvp_dc_t printerContext)
+{
+ fputs("opvpEndJob\n", pFile);
+ fprintf(pFile, "\tContext = %d\n", printerContext);
+ return 0;
+}
+
+static opvp_result_t
+opvpAbortJob(opvp_dc_t printerContext)
+{
+ fputs("opvpAbortJob\n", pFile);
+ fprintf(pFile, "\tContext = %d\n", printerContext);
+ return 0;
+}
+
+static opvp_result_t
+opvpStartDoc(opvp_dc_t printerContext, const opvp_char_t *docinfo)
+{
+ fputs("opvpStartDoc\n", pFile);
+ fprintf(pFile, "\tContext = %d\n", printerContext);
+ fprintf(pFile, "\tjob_info = %s\n", docinfo);
+ return 0;
+}
+
+static opvp_result_t
+opvpEndDoc(opvp_dc_t printerContext)
+{
+ fputs("opvpEndDoc\n", pFile);
+ fprintf(pFile, "\tContext = %d\n", printerContext);
+ return 0;
+}
+
+static opvp_result_t
+opvpStartPage(opvp_dc_t printerContext, const opvp_char_t *pageinfo)
+{
+ fputs("opvpStartPage\n", pFile);
+ fprintf(pFile, "\tContext = %d\n", printerContext);
+ fprintf(pFile, "\tjob_info = %s\n", pageinfo);
+ return 0;
+}
+
+static opvp_result_t
+opvpEndPage(opvp_dc_t printerContext)
+{
+ fputs("opvpEndPage\n", pFile);
+ fprintf(pFile, "\tContext = %d\n", printerContext);
+ return 0;
+}
+
+/* Not used */
+static opvp_result_t
+opvpQueryDeviceCapability(opvp_dc_t printerContext, opvp_flag_t flag, opvp_int_t *a, opvp_byte_t *b)
+{
+ fputs("opvpQueryDeviceCapability\n", pFile);
+ fprintf(pFile, "\tContext = %d\n", printerContext);
+ return 0;
+}
+
+/* Not used */
+static opvp_result_t
+opvpQueryDeviceInfo(opvp_dc_t printerContext, opvp_flag_t flag, opvp_int_t *a, opvp_char_t *b)
+{
+ fputs("opvpQueryDeviceInfo\n", pFile);
+ fprintf(pFile, "\tContext = %d\n", printerContext);
+ return 0;
+}
+
+static opvp_result_t
+opvpResetCTM(opvp_dc_t printerContext)
+{
+ fputs("opvpResetCTM\n", pFile);
+ fprintf(pFile, "\tContext = %d\n", printerContext);
+ opv_gstate.ctm.a = 1.0;
+ opv_gstate.ctm.b = 0.0;
+ opv_gstate.ctm.c = 0.0;
+ opv_gstate.ctm.d = 1.0;
+ opv_gstate.ctm.e = 0.0;
+ opv_gstate.ctm.f = 0.0;
+ return 0;
+}
+
+static opvp_result_t
+opvpSetCTM(opvp_dc_t printerContext, const opvp_ctm_t *pctm)
+{
+ fputs("opvpSetCTM\n", pFile);
+ opv_gstate.ctm = *pctm;
+ fprintf(pFile, "\tContext = %d\n", printerContext);
+ fprintf(pFile, "\tctm.a = %f\n", pctm->a);
+ fprintf(pFile, "\tctm.b = %f\n", pctm->b);
+ fprintf(pFile, "\tctm.c = %f\n", pctm->c);
+ fprintf(pFile, "\tctm.d = %f\n", pctm->d);
+ fprintf(pFile, "\tctm.e = %f\n", pctm->e);
+ fprintf(pFile, "\tctm.f = %f\n", pctm->f);
+ return 0;
+}
+
+static opvp_result_t
+opvpGetCTM(opvp_dc_t printerContext, opvp_ctm_t *pctm)
+{
+ fputs("opvpGetCTM\n", pFile);
+ *pctm = opv_gstate.ctm;
+ fprintf(pFile, "\tContext = %d\n", printerContext);
+ return 0;
+}
+
+static opvp_result_t
+opvpInitGS(opvp_dc_t printerContext)
+{
+ fputs("opvpInitGS\n", pFile);
+ fprintf(pFile, "\tContext = %d\n", printerContext);
+ return 0;
+}
+
+static opvp_result_t
+opvpSaveGS(opvp_dc_t printerContext)
+{
+ fputs("opvpSaveGS\n", pFile);
+ fprintf(pFile, "\tContext = %d\n", printerContext);
+ return 0;
+}
+
+static opvp_result_t
+opvpRestoreGS(opvp_dc_t printerContext)
+{
+ fputs("opvpRestoreGS\n", pFile);
+ fprintf(pFile, "\tContext = %d\n", printerContext);
+ return 0;
+}
+
+static opvp_result_t
+opvpQueryColorSpace(opvp_dc_t printerContext, opvp_int_t *n, opvp_cspace_t *colorspace)
+{
+ fputs("opvpQueryColorSpace\n", pFile);
+ fprintf(pFile, "\tContext = %d\n", printerContext);
+ *n = 0;
+ *colorspace = opv_gstate.colorspace;
+ return 0;
+}
+
+static opvp_result_t
+opvpSetColorSpace(opvp_dc_t printerContext, opvp_cspace_t colorspace)
+{
+ fputs("opvpSetColorSpace\n", pFile);
+ fprintf(pFile, "\tContext = %d\n", printerContext);
+ fprintf(pFile, "\tcolorspace = %d\n", colorspace);
+ opv_gstate.colorspace = colorspace;
+ return 0;
+}
+
+static opvp_result_t
+opvpGetColorSpace(opvp_dc_t printerContext, opvp_cspace_t *colorspace)
+{
+ fputs("opvpGetColorSpace\n", pFile);
+ fprintf(pFile, "\tContext = %d\n", printerContext);
+ *colorspace = opv_gstate.colorspace;
+ return 0;
+}
+
+static opvp_result_t
+opvpSetFillMode(opvp_dc_t printerContext, opvp_fillmode_t fillmode)
+{
+ fputs("opvpSetFillMode\n", pFile);
+ fprintf(pFile, "\tContext = %d\n", printerContext);
+ fprintf(pFile, "\tfillmode = %d\n", fillmode);
+ opv_gstate.fill_mode = fillmode;
+ return 0;
+}
+
+static opvp_result_t
+opvpGetFillMode(opvp_dc_t printerContext, opvp_fillmode_t *fillmode)
+{
+ fputs("opvpGetFillMode\n", pFile);
+ fprintf(pFile, "\tContext = %d\n", printerContext);
+ *fillmode = opv_gstate.fill_mode;
+ return 0;
+}
+
+static opvp_result_t
+opvpSetAlphaConstant(opvp_dc_t printerContext, opvp_float_t alpha)
+{
+ fputs("opvpSetAlphaConstant\n", pFile);
+ fprintf(pFile, "\tContext = %d\n", printerContext);
+ fprintf(pFile, "\talpha = %f\n", alpha);
+ opv_gstate.alpha = alpha;
+ return 0;
+}
+
+static opvp_result_t
+opvpGetAlphaConstant(opvp_dc_t printerContext, opvp_float_t *alpha)
+{
+ fputs("opvpGetAlphaConstant\n", pFile);
+ fprintf(pFile, "\tContext = %d\n", printerContext);
+ *alpha = opv_gstate.alpha;
+ return 0;
+}
+
+static opvp_result_t
+opvpSetLineWidth(opvp_dc_t printerContext, opvp_fix_t width)
+{
+ fputs("opvpSetLineWidth\n", pFile);
+ fprintf(pFile, "\tContext = %d\n", printerContext);
+ fprintf(pFile, "\twidth = %d\n", width);
+ opv_gstate.line_width = width;
+ return 0;
+}
+
+static opvp_result_t
+opvpGetLineWidth(opvp_dc_t printerContext, opvp_fix_t *width)
+{
+ fputs("opvpGetLineWidth\n", pFile);
+ fprintf(pFile, "\tContext = %d\n", printerContext);
+ *width = opv_gstate.line_width;
+ return 0;
+}
+
+static opvp_result_t
+opvpSetLineDash(opvp_dc_t printerContext, opvp_int_t n, const opvp_fix_t *dash)
+{
+ int k;
+
+ fputs("opvpSetLineDash\n", pFile);
+ fprintf(pFile, "\tContext = %d\n", printerContext);
+ fprintf(pFile, "\tn = %d\n", n);
+ opv_gstate.line_dash_n = n;
+
+ if (opv_gstate.line_dash_array != NULL)
+ free(opv_gstate.line_dash_array);
+
+ opv_gstate.line_dash_array = (opvp_fix_t*) malloc(n * sizeof(opvp_fix_t));
+ if (opv_gstate.line_dash_array == NULL) {
+ fprintf(pFile,"\t Error in dash array allocation. Exiting.");
+ fclose(pFile);
+ exit(-1);
+ }
+
+ for (k = 0; k < n; k++) {
+ opv_gstate.line_dash_array[k] = dash[k];
+ fprintf(pFile, "\tdash[%d] = %d\n", k, dash[k]);
+ }
+ return 0;
+}
+
+static opvp_result_t
+opvpGetLineDash(opvp_dc_t printerContext, opvp_int_t *n, opvp_fix_t *dash)
+{
+ fputs("opvpGetLineDash\n", pFile);
+ fprintf(pFile, "\tContext = %d\n", printerContext);
+
+ *n = opv_gstate.line_dash_n;
+ dash = opv_gstate.line_dash_array;
+
+ return 0;
+}
+
+static opvp_result_t
+opvpSetLineDashOffset(opvp_dc_t printerContext, opvp_fix_t offset)
+{
+ fputs("opvpSetLineDashOffset\n", pFile);
+ fprintf(pFile, "\tContext = %d\n", printerContext);
+ fprintf(pFile, "\toffset = %d\n", offset);
+ opv_gstate.dash_offset = offset;
+ return 0;
+}
+
+static opvp_result_t
+opvpGetLineDashOffset(opvp_dc_t printerContext, opvp_fix_t *offset)
+{
+ fputs("opvpGetLineDashOffset\n", pFile);
+ fprintf(pFile, "\tContext = %d\n", printerContext);
+ *offset = opv_gstate.dash_offset;
+ return 0;
+}
+
+static opvp_result_t
+opvpSetLineStyle(opvp_dc_t printerContext, opvp_linestyle_t style)
+{
+ fputs("opvpSetLineStyle\n", pFile);
+ fprintf(pFile, "\tContext = %d\n", printerContext);
+ fprintf(pFile, "\tstyle = %d\n", style);
+ opv_gstate.line_style = style;
+ return 0;
+}
+
+static opvp_result_t
+opvpGetLineStyle(opvp_dc_t printerContext, opvp_linestyle_t *style)
+{
+ fputs("opvpGetLineStyle\n", pFile);
+ fprintf(pFile, "\tContext = %d\n", printerContext);
+ *style = opv_gstate.line_style;
+ return 0;
+}
+
+static opvp_result_t
+opvpSetLineCap(opvp_dc_t printerContext, opvp_linecap_t cap)
+{
+ fputs("opvpSetLineCap\n", pFile);
+ fprintf(pFile, "\tContext = %d\n", printerContext);
+ fprintf(pFile, "\tcap = %d\n", cap);
+ opv_gstate.line_cap = cap;
+ return 0;
+}
+
+static opvp_result_t
+opvpGetLineCap(opvp_dc_t printerContext, opvp_linecap_t *cap)
+{
+ fputs("opvpGetLineCap\n", pFile);
+ fprintf(pFile, "\tContext = %d\n", printerContext);
+ *cap = opv_gstate.line_cap;
+ return 0;
+}
+
+static opvp_result_t
+opvpSetLineJoin(opvp_dc_t printerContext, opvp_linejoin_t join)
+{
+ fputs("opvpSetLineJoin\n", pFile);
+ fprintf(pFile, "\tContext = %d\n", printerContext);
+ fprintf(pFile, "\tjoin = %d\n", join);
+ opv_gstate.line_join = join;
+ return 0;
+}
+
+static opvp_result_t
+opvpGetLineJoin(opvp_dc_t printerContext, opvp_linejoin_t *join)
+{
+ fputs("opvpGetLineJoin\n", pFile);
+ fprintf(pFile, "\tContext = %d\n", printerContext);
+ *join = opv_gstate.line_join;
+ return 0;
+}
+
+static opvp_result_t
+opvpSetMiterLimit(opvp_dc_t printerContext, opvp_fix_t miter)
+{
+ fputs("opvpSetMiterLimit\n", pFile);
+ fprintf(pFile, "\tContext = %d\n", printerContext);
+ fprintf(pFile, "\tmiter = %d\n", miter);
+ opv_gstate.miter_limit = miter;
+ return 0;
+}
+
+static opvp_result_t
+opvpGetMiterLimit(opvp_dc_t printerContext, opvp_fix_t *miter)
+{
+ fputs("opvpGetMiterLimit\n", pFile);
+ fprintf(pFile, "\tContext = %d\n", printerContext);
+ *miter = opv_gstate.miter_limit;
+ return 0;
+}
+
+static opvp_result_t
+opvpSetPaintMode(opvp_dc_t printerContext, opvp_paintmode_t paintmode)
+{
+ fputs("opvpSetPaintMode\n", pFile);
+ fprintf(pFile, "\tContext = %d\n", printerContext);
+ fprintf(pFile, "\tpaintmode = %d\n", paintmode);
+ opv_gstate.paintmode = paintmode;
+ return 0;
+}
+
+static opvp_result_t
+opvpGetPaintMode(opvp_dc_t printerContext, opvp_paintmode_t *paintmode)
+{
+ fputs("opvpGetPaintMode\n", pFile);
+ fprintf(pFile, "\tContext = %d\n", printerContext);
+ *paintmode = opv_gstate.paintmode;
+ return 0;
+}
+
+static opvp_result_t
+opvpSetStrokeColor(opvp_dc_t printerContext, const opvp_brush_t *strokecolor)
+{
+ int k;
+
+ fputs("opvpSetStrokeColor\n", pFile);
+ fprintf(pFile, "\tContext = %d\n", printerContext);
+ if (strokecolor == NULL) {
+ fprintf(pFile, "\tstrokecolor is NULL\n");
+ } else {
+ fprintf(pFile, "\tstrokecolor.colorSpace = %d\n", strokecolor->colorSpace);
+
+ for (k = 0; k < 4; k++) {
+ fprintf(pFile, "\tstrokecolor.color[%d] = %d\n", k, strokecolor->color[k]);
+ }
+
+ fprintf(pFile, "\tstrokecolor.xorg = %d\n", strokecolor->xorg);
+ fprintf(pFile, "\tstrokecolor.yorg = %d\n", strokecolor->yorg);
+
+ if (strokecolor->pbrush == NULL) {
+ fprintf(pFile, "\tstrokecolor.pbrush is NULL\n");
+ } else {
+ fprintf(pFile, "\tstrokecolor.pbrush.type = %d\n", strokecolor->pbrush->type);
+ fprintf(pFile, "\tstrokecolor.pbrush.width = %d\n", strokecolor->pbrush->width);
+ fprintf(pFile, "\tstrokecolor.pbrush.height = %d\n", strokecolor->pbrush->height);
+ fprintf(pFile, "\tstrokecolor.pbrush.pitch = %d\n", strokecolor->pbrush->pitch);
+ }
+ }
+ return 0;
+}
+
+static opvp_result_t
+opvpSetFillColor(opvp_dc_t printerContext, const opvp_brush_t *fillcolor)
+{
+ int k;
+
+ fputs("opvpSetFillColor\n", pFile);
+ fprintf(pFile, "\tContext = %d\n", printerContext);
+ if (fillcolor == NULL) {
+ fprintf(pFile, "\tfillcolor is NULL\n");
+ } else {
+ fprintf(pFile, "\tfillcolor.colorSpace = %d\n", fillcolor->colorSpace);
+
+ for (k = 0; k < 4; k++) {
+ fprintf(pFile, "\tfillcolor.color[%d] = %d\n", k, fillcolor->color[k]);
+ }
+
+ fprintf(pFile, "\tfillcolor.xorg = %d\n", fillcolor->xorg);
+ fprintf(pFile, "\tfillcolor.yorg = %d\n", fillcolor->yorg);
+
+ if (fillcolor->pbrush == NULL) {
+ fprintf(pFile, "\tfillcolor.pbrush is NULL\n");
+ } else {
+ fprintf(pFile, "\tfillcolor.pbrush.type = %d\n", fillcolor->pbrush->type);
+ fprintf(pFile, "\tfillcolor.pbrush.width = %d\n", fillcolor->pbrush->width);
+ fprintf(pFile, "\tfillcolor.pbrush.height = %d\n", fillcolor->pbrush->height);
+ fprintf(pFile, "\tfillcolor.pbrush.pitch = %d\n", fillcolor->pbrush->pitch);
+ }
+ }
+ return 0;
+}
+
+static opvp_result_t
+opvpSetBgColor(opvp_dc_t printerContext, const opvp_brush_t *bgcolor)
+{
+ int k;
+
+ fputs("opvpSetBgColor\n", pFile);
+ fprintf(pFile, "\tContext = %d\n", printerContext);
+ if (bgcolor == NULL) {
+ fprintf(pFile, "\tfillcbgcolorolor is NULL\n");
+ } else {
+ fprintf(pFile, "\tbgcolor.colorSpace = %d\n", bgcolor->colorSpace);
+
+ for (k = 0; k < 4; k++) {
+ fprintf(pFile, "\tbgcolor.color[%d] = %d\n", k, bgcolor->color[k]);
+ }
+
+ fprintf(pFile, "\tbgcolor.xorg = %d\n", bgcolor->xorg);
+ fprintf(pFile, "\tbgcolor.yorg = %d\n", bgcolor->yorg);
+
+ if (bgcolor->pbrush == NULL) {
+ fprintf(pFile, "\tbgcolor.pbrush is NULL\n");
+ } else {
+ fprintf(pFile, "\tbgcolor.pbrush.type = %d\n", bgcolor->pbrush->type);
+ fprintf(pFile, "\tbgcolor.pbrush.width = %d\n", bgcolor->pbrush->width);
+ fprintf(pFile, "\tbgcolor.pbrush.height = %d\n", bgcolor->pbrush->height);
+ fprintf(pFile, "\tbgcolor.pbrush.pitch = %d\n", bgcolor->pbrush->pitch);
+ }
+ }
+ return 0;
+}
+
+static opvp_result_t
+opvpNewPath(opvp_dc_t printerContext)
+{
+ fputs("opvpNewPath\n", pFile);
+ fprintf(pFile, "\tContext = %d\n", printerContext);
+ return 0;
+}
+
+static opvp_result_t
+opvpEndPath(opvp_dc_t printerContext)
+{
+ fputs("opvpEndPath\n", pFile);
+ fprintf(pFile, "\tContext = %d\n", printerContext);
+ return 0;
+}
+
+static opvp_result_t
+opvpStrokePath(opvp_dc_t printerContext)
+{
+ fputs("opvpStrokePath\n", pFile);
+ fprintf(pFile, "\tContext = %d\n", printerContext);
+ return 0;
+}
+
+static opvp_result_t
+opvpFillPath(opvp_dc_t printerContext)
+{
+ fputs("opvpFillPath\n", pFile);
+ fprintf(pFile, "\tContext = %d\n", printerContext);
+ return 0;
+}
+
+static opvp_result_t
+opvpStrokeFillPath(opvp_dc_t printerContext)
+{
+ fputs("opvpStrokeFillPath\n", pFile);
+ fprintf(pFile, "\tContext = %d\n", printerContext);
+ return 0;
+}
+
+static opvp_result_t
+opvpSetClipPath(opvp_dc_t printerContext, opvp_cliprule_t cliprule)
+{
+ fputs("opvpSetClipPath\n", pFile);
+ fprintf(pFile, "\tContext = %d\n", printerContext);
+ fprintf(pFile, "\tcliprule = %d\n", cliprule);
+ return 0;
+}
+
+static opvp_result_t
+opvpResetClipPath(opvp_dc_t printerContext)
+{
+ fputs("opvpResetClipPath\n", pFile);
+ fprintf(pFile, "\tContext = %d\n", printerContext);
+ return 0;
+}
+
+static opvp_result_t
+opvpSetCurrentPoint(opvp_dc_t printerContext, opvp_fix_t pointx, opvp_fix_t pointy)
+{
+ fputs("opvpSetCurrentPoint\n", pFile);
+ fprintf(pFile, "\tContext = %d\n", printerContext);
+ fprintf(pFile, "\tpointx = %d\n", pointx);
+ fprintf(pFile, "\tpointy = %d\n", pointy);
+ return 0;
+}
+
+static opvp_result_t
+opvpLinePath(opvp_dc_t printerContext, opvp_pathmode_t pathmode, opvp_int_t npoints, const opvp_point_t *points)
+{
+ int k;
+
+ fputs("opvpLinePath\n", pFile);
+ fprintf(pFile, "\tContext = %d\n", printerContext);
+ fprintf(pFile, "\tpathmode = %d\n", pathmode);
+ fprintf(pFile, "\tnpoints = %d\n", npoints);
+
+ for (k = 0; k < npoints; k++) {
+ fprintf(pFile, "\tpoints[%d].x = %d\n", k, points[k].x);
+ fprintf(pFile, "\tpoints[%d].y = %d\n", k, points[k].y);
+ }
+ return 0;
+}
+
+/* Not used */
+static opvp_result_t
+opvpPolygonPath(opvp_dc_t printerContext, opvp_int_t n, const opvp_int_t *m, const opvp_point_t *p)
+{
+ fputs("opvpPolygonPath\n", pFile);
+ fprintf(pFile, "\tContext = %d\n", printerContext);
+ return 0;
+}
+
+static opvp_result_t
+opvpRectanglePath(opvp_dc_t printerContext, opvp_int_t n, const opvp_rectangle_t *rects)
+{
+ int k;
+
+ fputs("opvpRectanglePath\n", pFile);
+ fprintf(pFile, "\tContext = %d\n", printerContext);
+ fprintf(pFile, "\tn = %d\n", n);
+
+ for (k = 0; k < n; k++) {
+ fprintf(pFile, "\trects[%d].p0.x = %d\n", k, rects[k].p0.x);
+ fprintf(pFile, "\trects[%d].p0.y = %d\n", k, rects[k].p0.y);
+ fprintf(pFile, "\trects[%d].p1.x = %d\n", k, rects[k].p1.x);
+ fprintf(pFile, "\trects[%d].p1.y = %d\n", k, rects[k].p1.y);
+ }
+ return 0;
+}
+
+static opvp_result_t
+opvpRoundRectanglePath(opvp_dc_t printerContext, opvp_int_t n, const opvp_roundrectangle_t *rects)
+{
+ int k;
+
+ fputs("opvpRoundRectanglePath\n", pFile);
+ fprintf(pFile, "\tContext = %d\n", printerContext);
+ fprintf(pFile, "\tn = %d\n", n);
+
+ for (k = 0; k < n; k++) {
+ fprintf(pFile, "\trects[%d].p0.x = %d\n", k, rects[k].p0.x);
+ fprintf(pFile, "\trects[%d].p0.y = %d\n", k, rects[k].p0.y);
+ fprintf(pFile, "\trects[%d].p1.x = %d\n", k, rects[k].p1.x);
+ fprintf(pFile, "\trects[%d].p1.y = %d\n", k, rects[k].p1.y);
+ fprintf(pFile, "\trects[%d].xellipse = %d\n", k, rects[k].xellipse);
+ fprintf(pFile, "\trects[%d].yellipse = %d\n", k, rects[k].yellipse);
+ }
+ return 0;
+}
+
+static opvp_result_t
+opvpBezierPath(opvp_dc_t printerContext, opvp_int_t n, const opvp_point_t *points)
+{
+ int k;
+
+ fputs("opvpBezierPath\n", pFile);
+ fprintf(pFile, "\tContext = %d\n", printerContext);
+ fprintf(pFile, "\tn = %d\n", n);
+
+ for (k = 0; k < n; k++) {
+ fprintf(pFile, "\tpoints[%d].x = %d\n", k, points[k].x);
+ fprintf(pFile, "\trects[%d].y = %d\n", k, points[k].y);
+
+ }
+ return 0;
+}
+
+/* Not used */
+static opvp_result_t
+opvpArcPath(opvp_dc_t printerContext, opvp_arcmode_t mode, opvp_arcdir_t dir,
+ opvp_fix_t a, opvp_fix_t b, opvp_fix_t c, opvp_fix_t d, opvp_fix_t e, opvp_fix_t f,
+ opvp_fix_t g, opvp_fix_t h)
+{
+ fputs("opvpArcPath\n", pFile);
+ fprintf(pFile, "\tContext = %d\n", printerContext);
+ return 0;
+}
+
+static opvp_result_t
+opvpDrawImage(opvp_dc_t printerContext, opvp_int_t sw, opvp_int_t sh, opvp_int_t raster,
+ opvp_imageformat_t format, opvp_int_t dw, opvp_int_t dh, const void *data)
+{
+ int k;
+ unsigned char *data_char = (unsigned char*) data;
+
+ fputs("opvpDrawImage\n", pFile);
+ fprintf(pFile, "\tContext = %d\n", printerContext);
+ fprintf(pFile, "\tsw = %d\n", sw);
+ fprintf(pFile, "\tsh = %d\n", sh);
+ fprintf(pFile, "\traster = %d\n", raster);
+ fprintf(pFile, "\tformat = %d\n", format);
+ fprintf(pFile, "\tdw = %d\n", dw);
+ fprintf(pFile, "\tdh = %d\n", dh);
+
+ /* No idea how big data is here... Try sw, as byte? */
+ for (k = 0; k < sw; k++) {
+ fprintf(pFile, "\tdata[%d] = %d\n", k, data_char[k]);
+ }
+
+ return 0;
+}
+
+static opvp_result_t
+opvpStartDrawImage(opvp_dc_t printerContext, opvp_int_t sw, opvp_int_t sh, opvp_int_t raster,
+ opvp_imageformat_t format, opvp_int_t dw, opvp_int_t dh)
+{
+ fputs("opvpStartDrawImage\n", pFile);
+ fprintf(pFile, "\tContext = %d\n", printerContext);
+ fprintf(pFile, "\tsw = %d\n", sw);
+ fprintf(pFile, "\tsh = %d\n", sh);
+ fprintf(pFile, "\traster = %d\n", raster);
+ fprintf(pFile, "\tformat = %d\n", format);
+ fprintf(pFile, "\tdw = %d\n", dw);
+ fprintf(pFile, "\tdh = %d\n", dh);
+ return 0;
+}
+
+static opvp_result_t
+opvpTransferDrawImage(opvp_dc_t printerContext, opvp_int_t count, const void *data)
+{
+ int k;
+ unsigned char *data_char = (unsigned char*) data;
+
+ fputs("opvpTransferDrawImage\n", pFile);
+ fprintf(pFile, "\tContext = %d\n", printerContext);
+ fprintf(pFile, "\tcount = %d\n", count);
+
+ for (k = 0; k < count; k++) {
+ fprintf(pFile, "\tdata[%d] = %d\n", k, data_char[k]);
+ }
+ return 0;
+}
+
+static opvp_result_t
+opvpEndDrawImage(opvp_dc_t printerContext)
+{
+ fputs("opvpEndDrawImage\n", pFile);
+ fprintf(pFile, "\tContext = %d\n", printerContext);
+ return 0;
+}
+
+/* not used */
+static opvp_result_t
+opvpStartScanline(opvp_dc_t printerContext, opvp_int_t a)
+{
+ fputs("opvpStartScanline\n", pFile);
+ fprintf(pFile, "\tContext = %d\n", printerContext);
+ return 0;
+}
+
+/* not used */
+static opvp_result_t
+opvpScanline(opvp_dc_t printerContext, opvp_int_t a, const opvp_int_t *b)
+{
+ fputs("opvpScanline\n", pFile);
+ fprintf(pFile, "\tContext = %d\n", printerContext);
+ return 0;
+}
+
+/* not used */
+static opvp_result_t
+opvpEndScanline(opvp_dc_t printerContext)
+{
+ fputs("opvpEndScanline\n", pFile);
+ fprintf(pFile, "\tContext = %d\n", printerContext);
+ return 0;
+}
+
+static opvp_result_t
+opvpStartRaster(opvp_dc_t printerContext, opvp_int_t width)
+{
+ fputs("opvpStartRaster\n", pFile);
+ fprintf(pFile, "\tContext = %d\n", printerContext);
+ fprintf(pFile, "\twidth = %d\n", width);
+ return 0;
+}
+
+static opvp_result_t
+opvpTransferRasterData(opvp_dc_t printerContext, opvp_int_t raster_size, const opvp_byte_t *data)
+{
+ int k;
+
+ fputs("opvpTransferRasterData\n", pFile);
+ fprintf(pFile, "\tContext = %d\n", printerContext);
+ fprintf(pFile, "\traster_size = %d\n", raster_size);
+
+ for (k = 0; k < raster_size; k++) {
+ fprintf(pFile, "\tdata[%d] = %d\n", k, data[k]);
+ }
+ return 0;
+}
+
+static opvp_result_t
+opvpSkipRaster(opvp_dc_t printerContext, opvp_int_t a)
+{
+ fputs("opvpSkipRaster\n", pFile);
+ fprintf(pFile, "\tContext = %d\n", printerContext);
+ fprintf(pFile, "\ta = %d\n", a);
+ return 0;
+}
+
+static opvp_result_t
+opvpEndRaster(opvp_dc_t printerContext)
+{
+ fputs("opvpEndRaster\n", pFile);
+ fprintf(pFile, "\tContext = %d\n", printerContext);
+ return 0;
+}
+
+static opvp_result_t
+opvpStartStream(opvp_dc_t printerContext)
+{
+ fputs("opvpStartStream\n", pFile);
+ fprintf(pFile, "\tContext = %d\n", printerContext);
+ return 0;
+}
+
+/* Not used */
+static opvp_result_t
+opvpTransferStreamData(opvp_dc_t printerContext, opvp_int_t a, const void *b)
+{
+ fputs("opvpTransferStreamData\n", pFile);
+ fprintf(pFile, "\tContext = %d\n", printerContext);
+ return 0;
+}
+
+static opvp_result_t
+opvpEndStream(opvp_dc_t printerContext)
+{
+ fputs("opvpEndStream\n", pFile);
+ fprintf(pFile, "\tContext = %d\n", printerContext);
+ return 0;
+}
+
+opvp_int_t opvpErrorNo;
+
+opvp_dc_t
+opvpOpenPrinter(opvp_int_t outputFD, const opvp_char_t *printerModel, const opvp_int_t apiVersion[2],
+ opvp_api_procs_t **apiProcs)
+{
+ static opvp_api_procs_t procs;
+ opvp_fix_t fixed_value;
+
+ procs.opvpEndStream = opvpEndStream;
+ procs.opvpClosePrinter = opvpClosePrinter;
+ procs.opvpStartJob = opvpStartJob;
+ procs.opvpEndJob = opvpEndJob;
+ procs.opvpAbortJob = opvpAbortJob;
+ procs.opvpStartDoc = opvpStartDoc;
+ procs.opvpEndDoc = opvpEndDoc;
+ procs.opvpStartPage = opvpStartPage;
+ procs.opvpEndPage = opvpEndPage;
+ procs.opvpQueryDeviceCapability = opvpQueryDeviceCapability;
+ procs.opvpQueryDeviceInfo = opvpQueryDeviceInfo;
+ procs.opvpResetCTM = opvpResetCTM;
+ procs.opvpSetCTM = opvpSetCTM;
+ procs.opvpGetCTM = opvpGetCTM;
+ procs.opvpInitGS = opvpInitGS;
+ procs.opvpSaveGS = opvpSaveGS;
+ procs.opvpRestoreGS = opvpRestoreGS;
+ procs.opvpQueryColorSpace = opvpQueryColorSpace;
+ procs.opvpSetColorSpace = opvpSetColorSpace;
+ procs.opvpGetColorSpace = opvpGetColorSpace;
+ procs.opvpSetFillMode = opvpSetFillMode;
+ procs.opvpGetFillMode = opvpGetFillMode;
+ procs.opvpSetAlphaConstant = opvpSetAlphaConstant;
+ procs.opvpGetAlphaConstant = opvpGetAlphaConstant;
+ procs.opvpSetLineWidth = opvpSetLineWidth;
+ procs.opvpGetLineWidth = opvpGetLineWidth;
+ procs.opvpSetLineDash = opvpSetLineDash;
+ procs.opvpSetLineDash = opvpSetLineDash;
+ procs.opvpGetLineDash = opvpGetLineDash;
+ procs.opvpSetLineDashOffset = opvpSetLineDashOffset;
+ procs.opvpGetLineDashOffset = opvpGetLineDashOffset;
+ procs.opvpSetLineStyle = opvpSetLineStyle;
+ procs.opvpGetLineStyle = opvpGetLineStyle;
+ procs.opvpSetLineCap = opvpSetLineCap;
+ procs.opvpGetLineCap = opvpGetLineCap;
+ procs.opvpSetLineJoin = opvpSetLineJoin;
+ procs.opvpGetLineJoin = opvpGetLineJoin;
+ procs.opvpSetMiterLimit = opvpSetMiterLimit;
+ procs.opvpGetMiterLimit = opvpGetMiterLimit;
+ procs.opvpSetPaintMode = opvpSetPaintMode;
+ procs.opvpGetPaintMode = opvpGetPaintMode;
+ procs.opvpSetStrokeColor = opvpSetStrokeColor;
+ procs.opvpSetFillColor = opvpSetFillColor;
+ procs.opvpSetBgColor = opvpSetBgColor;
+ procs.opvpNewPath = opvpNewPath;
+ procs.opvpEndPath = opvpEndPath;
+ procs.opvpStrokePath = opvpStrokePath;
+ procs.opvpFillPath = opvpFillPath;
+ procs.opvpStrokeFillPath = opvpStrokeFillPath;
+ procs.opvpSetClipPath = opvpSetClipPath;
+ procs.opvpResetClipPath = opvpResetClipPath;
+ procs.opvpSetCurrentPoint = opvpSetCurrentPoint;
+ procs.opvpLinePath = opvpLinePath;
+ procs.opvpPolygonPath = opvpPolygonPath;
+ procs.opvpRectanglePath = opvpRectanglePath;
+ procs.opvpRoundRectanglePath = opvpRoundRectanglePath;
+ procs.opvpBezierPath = opvpBezierPath;
+ procs.opvpArcPath = opvpArcPath;
+ procs.opvpDrawImage = opvpDrawImage;
+ procs.opvpStartDrawImage = opvpStartDrawImage;
+ procs.opvpTransferDrawImage = opvpTransferDrawImage;
+ procs.opvpEndDrawImage = opvpEndDrawImage;
+ procs.opvpStartScanline = opvpStartScanline;
+ procs.opvpScanline = opvpScanline;
+ procs.opvpEndScanline = opvpEndScanline;
+ procs.opvpStartRaster = opvpStartRaster;
+ procs.opvpTransferRasterData = opvpTransferRasterData;
+ procs.opvpSkipRaster = opvpSkipRaster;
+ procs.opvpEndRaster = opvpEndRaster;
+ procs.opvpStartStream = opvpStartStream;
+ procs.opvpTransferStreamData = opvpTransferStreamData;
+ procs.opvpEndStream = opvpEndStream;
+
+ *apiProcs = &procs;
+
+ OPVP_F2FIX(1.0, fixed_value);
+
+ opv_gstate.ctm.a = 1.0;
+ opv_gstate.ctm.b = 0.0;
+ opv_gstate.ctm.c = 0.0;
+ opv_gstate.ctm.d = 1.0;
+ opv_gstate.ctm.e = 0.0;
+ opv_gstate.ctm.f = 0.0;
+ opv_gstate.colorspace = OPVP_CSPACE_DEVICERGB;
+ opv_gstate.fill_mode = OPVP_FILLMODE_EVENODD;
+ opv_gstate.alpha = 1.0;
+ opv_gstate.line_width = fixed_value;
+ opv_gstate.line_dash_n = 0;
+ opv_gstate.line_dash_array = NULL;
+ opv_gstate.dash_offset = fixed_value;
+ opv_gstate.line_style = OPVP_LINESTYLE_SOLID;
+ opv_gstate.line_cap = OPVP_LINECAP_BUTT;
+ opv_gstate.line_join = OPVP_LINEJOIN_MITER;
+ opv_gstate.miter_limit = fixed_value;
+ opv_gstate.paintmode = OPVP_PAINTMODE_OPAQUE;
+ opv_gstate.colorspace = OPVP_CSPACE_DEVICERGB;
+
+ pFile = fopen("opvp_command_dump.txt","w");
+ if (pFile != NULL)
+ {
+ fputs("opvpOpenPrinter\n", pFile);
+ return 0;
+ }
+ return -1;
+}
diff --git a/contrib/pcl3/eprn/eprnparm.c b/contrib/pcl3/eprn/eprnparm.c
index 1d989c40..34e47d67 100644
--- a/contrib/pcl3/eprn/eprnparm.c
+++ b/contrib/pcl3/eprn/eprnparm.c
@@ -390,7 +390,7 @@ static char *next_word(char *s)
#define cleanup() (free(list), gp_fclose(f))
-static int eprn_read_media_data(eprn_Eprn *eprn, gs_memory_t *memory)
+static int eprn_read_media_data(mediasize_table *tables, eprn_Eprn *eprn, gs_memory_t *memory)
{
char buffer[BUFFER_SIZE];
const char
@@ -502,7 +502,7 @@ static int eprn_read_media_data(eprn_Eprn *eprn, gs_memory_t *memory)
t++;
}
{
- ms_MediaCode code = ms_find_code_from_name(s, eprn->flag_desc);
+ ms_MediaCode code = ms_find_code_from_name(tables, s, eprn->flag_desc);
if (code == ms_none) {
eprintf5("%s" ERRPREF "Unknown media name (%s) in "
"media configuration file\n%s %s, line %d.\n",
@@ -664,7 +664,7 @@ int eprn_set_media_data(eprn_Device *dev, const char *media_file, size_t length)
else {
strncpy(eprn->media_file, media_file, length);
eprn->media_file[length] = '\0';
- if ((rc = eprn_read_media_data(eprn, dev->memory->non_gc_memory)) != 0) {
+ if ((rc = eprn_read_media_data(&dev->eprn.table, eprn, dev->memory->non_gc_memory)) != 0) {
gs_free(dev->memory->non_gc_memory, eprn->media_file, length + 1, sizeof(char),
"eprn_set_media_data");
eprn->media_file = NULL;
diff --git a/contrib/pcl3/eprn/gdeveprn.h b/contrib/pcl3/eprn/gdeveprn.h
index b079d002..bc221db5 100644
--- a/contrib/pcl3/eprn/gdeveprn.h
+++ b/contrib/pcl3/eprn/gdeveprn.h
@@ -528,6 +528,7 @@ typedef struct s_eprn_Device {
present in 'next_scan_line' with its device coordinate being "next_y - 1",
unless 'next_y' is zero in which case we have finished. */
gs_gstate * pgs;
+ mediasize_table table;
} eprn_Eprn;
/* Macro for device structure type definitions. Note that in contrast to
@@ -625,7 +626,8 @@ typedef struct {
0, /* octets_per_line */ \
0, /* output_planes */ \
0, /* next_y */ \
- NULL /* pgs */ \
+ NULL, /* pgs */ \
+ { 0 } /* table */ \
}
/* For the calling conventions of the following functions consult the comments
diff --git a/contrib/pcl3/eprn/mediasize.c b/contrib/pcl3/eprn/mediasize.c
index 21c6a26f..1bdde2a4 100644
--- a/contrib/pcl3/eprn/mediasize.c
+++ b/contrib/pcl3/eprn/mediasize.c
@@ -149,7 +149,9 @@ static const ms_SizeDescription list[] = {
/*****************************************************************************/
-#if !defined(NDEBUG) && !defined(GS_THREADSAFE)
+#undef CHECK_CONSTRAINTS
+
+#ifdef CHECK_CONSTRAINTS
static char checked = 0;
/* Function to check constraints on table entries */
@@ -183,9 +185,9 @@ static void check(void)
const ms_SizeDescription *ms_find_size_from_code(ms_MediaCode code)
{
-#if !defined(NDEBUG) && !defined(GS_THREADSAFE)
+#ifdef CHECK_CONSTRAINTS
if (!checked) check();
-#endif /* !NDEBUG && !GS_THREADSAFE */
+#endif
code = ms_without_flags(code);
if (code < 1 || array_size(list) <= code) return NULL;
@@ -243,15 +245,21 @@ static const ms_Flag substrings[] = {
{0, NULL}
};
+/* If you get an error when compiling the following, then MAX_MEDIASIZES
+ * (defined in pcltables.h) must be increased. */
+typedef struct
+{
+ char compile_time_assert[array_size(list) <= MAX_MEDIASIZES ? 1 : -1];
+} compile_time_assert_for_list_length;
+
/*****************************************************************************/
-ms_MediaCode ms_find_code_from_name(const char *name,
- const ms_Flag *user_flag_list)
+ms_MediaCode ms_find_code_from_name(mediasize_table *tables,
+ const char *name,
+ const ms_Flag *user_flag_list)
{
const char *end;
char stripped_name[LONGER_THAN_NAMES];
- static const ms_SizeDescription *sorted_list[array_size(list) - 1];
- static unsigned int entries = 0;
ms_SizeDescription
keydata,
*key = &keydata;
@@ -261,13 +269,14 @@ ms_MediaCode ms_find_code_from_name(const char *name,
/* On the first use of this function, compile a table of pointers into the
list which is sorted by the names of the sizes. */
- if (entries == 0) {
- while (entries < array_size(sorted_list)) {
- sorted_list[entries] = list + entries + 1; /* ignore 'ms_none' */
+ if (tables->mediasize_list_inited == 0) {
+ int entries = 1; /* ignore 'ms_none' */
+ while (entries < array_size(list)) {
+ tables->mediasize_list[entries] = list + entries;
entries++;
}
- qsort(sorted_list, array_size(sorted_list), sizeof(ms_SizeDescription *),
- &cmp_by_name);
+ qsort(tables->mediasize_list, array_size(list) - 1, sizeof(ms_SizeDescription *), &cmp_by_name);
+ tables->mediasize_list_inited = 1;
}
/* Prevent idiots (like myself) from crashing the routine */
@@ -325,7 +334,7 @@ ms_MediaCode ms_find_code_from_name(const char *name,
keydata.name = stripped_name;
/* Search */
- found = (const ms_SizeDescription **)bsearch(&key, sorted_list, entries,
+ found = (const ms_SizeDescription **)bsearch(&key, tables->mediasize_list, array_size(list) - 1,
sizeof(ms_SizeDescription *), &cmp_by_name);
return found == NULL? ms_none: ((*found)->size | flags);
diff --git a/contrib/pcl3/eprn/mediasize.h b/contrib/pcl3/eprn/mediasize.h
index 4033ad21..0599f927 100644
--- a/contrib/pcl3/eprn/mediasize.h
+++ b/contrib/pcl3/eprn/mediasize.h
@@ -150,6 +150,13 @@ typedef struct {
*/
} ms_SizeDescription;
+#define MAX_MEDIASIZES 128
+
+typedef struct {
+ int mediasize_list_inited;
+ const ms_SizeDescription *mediasize_list[MAX_MEDIASIZES];
+} mediasize_table;
+
/******************************************************************************
Media codes
@@ -254,8 +261,9 @@ extern const ms_SizeDescription *ms_find_size_from_code(ms_MediaCode code);
and appearance as a qualifier or consider the order of appearance.
- There is no support for serialization qualifiers.
*/
-extern ms_MediaCode ms_find_code_from_name(const char *name,
- const ms_Flag *user_flag_list);
+extern ms_MediaCode ms_find_code_from_name(mediasize_table *tables,
+ const char *name,
+ const ms_Flag *user_flag_list);
/*===========================================================================*/
diff --git a/contrib/pcl3/src/gdevpcl3.c b/contrib/pcl3/src/gdevpcl3.c
index 5e3e8f80..d4352540 100644
--- a/contrib/pcl3/src/gdevpcl3.c
+++ b/contrib/pcl3/src/gdevpcl3.c
@@ -82,6 +82,7 @@ typedef struct {
configured, /* Has the output file been configured? */
configure_every_page; /* Repeat the configuration for every page? */
pcl_FileData file_data;
+ pcl3_sizetable table;
} pcl3_Device;
/*****************************************************************************/
@@ -305,9 +306,9 @@ static void get_string_for_int(int in_value, const eprn_StringAndInt *table,
out_value->persistent = true;
}
else {
- static char buffer[22]; /* Must be sufficient for an 'int' */
+ char buffer[22]; /* Must be sufficient for an 'int' */
- gs_sprintf(buffer, "%d", in_value);
+ gs_snprintf(buffer, sizeof(buffer), "%d", in_value);
assert(strlen(buffer) < sizeof(buffer));
out_value->data = (const byte *)buffer;
out_value->size = strlen(buffer);
@@ -1326,7 +1327,7 @@ static int pcl3_open_device(gx_device *device)
unsigned int j;
/* Media handling */
- data->size = pcl3_page_size(dev->eprn.code);
+ data->size = pcl3_page_size(&dev->table, dev->eprn.code);
if (data->size == pcl_ps_default) {
/* This is due to a media description using a media size code for which
there is no PCL Page Size code. This is either an error in a builtin
diff --git a/contrib/pcl3/src/pcl3opts.c b/contrib/pcl3/src/pcl3opts.c
index 51e9cce3..9b3b261c 100644
--- a/contrib/pcl3/src/pcl3opts.c
+++ b/contrib/pcl3/src/pcl3opts.c
@@ -144,6 +144,7 @@ static void print_result(CollectedInfo *ip) /* NLS: 10, 70 */
int j;
int ll; /* line length */
unsigned int min_hres, min_vres, black_levels, non_black_levels, start;
+ pcl3_sizetable sizetable = { 0 };
if (ip->number_of_outputs > 0)
imessage(ip->out, 10,
@@ -373,7 +374,7 @@ static void print_result(CollectedInfo *ip) /* NLS: 10, 70 */
}
if (ip->fdata.size != 0) {
- ms_MediaCode media_code = pcl3_media_code(ip->fdata.size);
+ ms_MediaCode media_code = pcl3_media_code(&sizetable, ip->fdata.size);
const ms_SizeDescription *size = ms_find_size_from_code(media_code);
if (size == NULL)
imessage(ip->out, 14,
diff --git a/contrib/pcl3/src/pclcap.c b/contrib/pcl3/src/pclcap.c
index 77f52aa8..56fd0c3d 100644
--- a/contrib/pcl3/src/pclcap.c
+++ b/contrib/pcl3/src/pclcap.c
@@ -783,9 +783,9 @@ const pcl_PrinterDescription pcl3_printers[] = {
};
/*****************************************************************************/
+#undef CHECK_CONSTRAINTS
-#if !defined(NDEBUG) && !defined(GS_THREADSAFE)
-
+#ifdef CHECK_CONSTRAINTS
static int checked = 0;
static void check(void)
@@ -800,8 +800,7 @@ static void check(void)
return;
}
-
-#endif /* !NDEBUG && !GS_THREADSAFE */
+#endif
/******************************************************************************
@@ -816,9 +815,9 @@ static void check(void)
void pcl3_fill_defaults(pcl_Printer printer, pcl_FileData *data)
{
-#if !defined(NDEBUG) && !defined(GS_THREADSAFE)
+#ifdef CHECK_CONSTRAINTS
if (!checked) check();
-#endif /* !NDEBUG */
+#endif
/* Set everything to zero */
memset(data, 0, sizeof(pcl_FileData));
diff --git a/contrib/pcl3/src/pclsize.c b/contrib/pcl3/src/pclsize.c
index 831b82bc..6400f813 100644
--- a/contrib/pcl3/src/pclsize.c
+++ b/contrib/pcl3/src/pclsize.c
@@ -36,16 +36,8 @@
This list is used to find a PCL Page Size code for a particular media code.
It will be sorted by media code before the first use.
- This structure is based on the assumption that one needs only a single
- Page Size code for each supported media code. See the discussion in
- pclgen.h.
*/
-typedef struct {
- ms_MediaCode mc;
- pcl_PageSize ps;
-} CodeEntry;
-
#define me(keyword) {ms_##keyword, pcl_ps_##keyword}
static CodeEntry code_map[] = {
@@ -84,6 +76,13 @@ static CodeEntry code_map[] = {
#undef me
+/* If the following gives a compile error, then MAX_CODEENTRIES in pclsize.h
+ * must be increased. */
+typedef struct
+{
+ char compile_time_assert[array_size(code_map) <= MAX_CODEENTRIES ? 1 : -1];
+} compile_time_assert_for_codeentry;
+
/******************************************************************************
Function: cmp_by_size
@@ -108,20 +107,20 @@ static int cmp_by_size(const void *a, const void *b)
******************************************************************************/
-pcl_PageSize pcl3_page_size(ms_MediaCode code)
+pcl_PageSize pcl3_page_size(pcl3_sizetable *table, ms_MediaCode code)
{
- static pcl_bool initialized = FALSE;
CodeEntry key;
const CodeEntry *result;
/* Sort the table if necessary */
- if (!initialized) {
- qsort(code_map, array_size(code_map), sizeof(CodeEntry), cmp_by_size);
- initialized = TRUE;
+ if (!table->inited_code_map) {
+ memcpy(table->code_map, code_map, array_size(code_map) * sizeof(CodeEntry));
+ qsort(table->code_map, array_size(code_map), sizeof(CodeEntry), cmp_by_size);
+ table->inited_code_map = TRUE;
}
key.mc = ms_without_flags(code) |( code & PCL_CARD_FLAG);
- result = (const CodeEntry *)bsearch(&key, code_map, array_size(code_map),
+ result = (const CodeEntry *)bsearch(&key, table->code_map, array_size(code_map),
sizeof(CodeEntry), cmp_by_size);
return result == NULL? pcl_ps_default: result->ps;
@@ -149,23 +148,21 @@ static int cmp_by_code(const void *a, const void *b)
******************************************************************************/
-ms_MediaCode pcl3_media_code(pcl_PageSize code)
+ms_MediaCode pcl3_media_code(pcl3_sizetable *table, pcl_PageSize code)
{
- static CodeEntry inverse_map[array_size(code_map)];
- static pcl_bool initialized = FALSE;
CodeEntry key;
const CodeEntry *result;
/* Construct the table if necessary */
- if (!initialized) {
- memcpy(&inverse_map, &code_map, sizeof(inverse_map));
- qsort(inverse_map, array_size(inverse_map), sizeof(CodeEntry), cmp_by_code);
- initialized = TRUE;
+ if (!table->inited_inverse_map) {
+ memcpy(&table->inverse_map, &code_map, sizeof(code_map));
+ qsort(table->inverse_map, array_size(code_map), sizeof(CodeEntry), cmp_by_code);
+ table->inited_inverse_map = TRUE;
}
key.ps = code;
- result = (const CodeEntry *)bsearch(&key, inverse_map,
- array_size(inverse_map), sizeof(CodeEntry), cmp_by_code);
+ result = (const CodeEntry *)bsearch(&key, table->inverse_map,
+ array_size(code_map), sizeof(CodeEntry), cmp_by_code);
if (result == NULL) {
key.ps = -code;
/* Actually, this is a generalization on my part: I am assuming that any
@@ -173,8 +170,8 @@ ms_MediaCode pcl3_media_code(pcl_PageSize code)
same media extension irrespective of sheet orientation in raster space.
I have found negative Page Size codes in HP documentation only for
Env10 and EnvDL. */
- result = (const CodeEntry *)bsearch(&key, inverse_map,
- array_size(inverse_map), sizeof(CodeEntry), cmp_by_code);
+ result = (const CodeEntry *)bsearch(&key, table->inverse_map,
+ array_size(code_map), sizeof(CodeEntry), cmp_by_code);
}
return result == NULL? ms_none: result->mc;
@@ -189,7 +186,7 @@ ms_MediaCode pcl3_media_code(pcl_PageSize code)
******************************************************************************/
-const ms_SizeDescription *pcl3_size_description(pcl_PageSize code)
+const ms_SizeDescription *pcl3_size_description(pcl3_sizetable *table, pcl_PageSize code)
{
- return ms_find_size_from_code(pcl3_media_code(code));
+ return ms_find_size_from_code(pcl3_media_code(table, code));
}
diff --git a/contrib/pcl3/src/pclsize.h b/contrib/pcl3/src/pclsize.h
index 90a5320e..760dd4c6 100644
--- a/contrib/pcl3/src/pclsize.h
+++ b/contrib/pcl3/src/pclsize.h
@@ -24,9 +24,28 @@
#define PCL_CARD_FLAG MS_USER_FLAG_1
#define PCL_CARD_STRING "Card"
-extern pcl_PageSize pcl3_page_size(ms_MediaCode code);
-extern ms_MediaCode pcl3_media_code(pcl_PageSize code);
-extern const ms_SizeDescription *pcl3_size_description(pcl_PageSize size);
+/*
+ This structure is based on the assumption that one needs only a single
+ Page Size code for each supported media code. See the discussion in
+ pclgen.h.
+*/
+typedef struct {
+ ms_MediaCode mc;
+ pcl_PageSize ps;
+} CodeEntry;
+
+#define MAX_CODEENTRIES 64
+
+typedef struct {
+ int inited_code_map;
+ CodeEntry code_map[MAX_CODEENTRIES];
+ int inited_inverse_map;
+ CodeEntry inverse_map[MAX_CODEENTRIES];
+} pcl3_sizetable;
+
+extern pcl_PageSize pcl3_page_size(pcl3_sizetable *table, ms_MediaCode code);
+extern ms_MediaCode pcl3_media_code(pcl3_sizetable *table, pcl_PageSize code);
+extern const ms_SizeDescription *pcl3_size_description(pcl3_sizetable *table, pcl_PageSize size);
/*****************************************************************************/
diff --git a/cups/gdevcups.c b/cups/gdevcups.c
index a9dbc142..eb20ed20 100644
--- a/cups/gdevcups.c
+++ b/cups/gdevcups.c
@@ -76,6 +76,12 @@
#include <stdlib.h>
#include <ctype.h>
+
+#ifdef __GNUC__
+#pragma GCC diagnostic push
+#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
+#endif
+
#include <cups/raster.h>
#include <cups/ppd.h>
#include <math.h>
@@ -461,6 +467,12 @@ cups_initialize_device_procs(gx_device *dev)
gx_device_cups gs_cups_device = { gs_xxx_device("cups", "") };
gx_device_cups gs_pwgraster_device = { gs_xxx_device("pwgraster",
"PwgRaster") };
+#if defined(CUPS_RASTER_HAVE_APPLERASTER)
+gx_device_cups gs_appleraster_device = { gs_xxx_device("appleraster",
+ "PwgRaster") };
+gx_device_cups gs_urf_device = { gs_xxx_device("urf",
+ "PwgRaster") };
+#endif
/*
* Local functions...
@@ -2947,7 +2959,14 @@ cups_print_pages(gx_device_printer *pdev,
#if defined(CUPS_RASTER_HAVE_PWGRASTER)
(strcasecmp(cups->header.MediaClass,
"PwgRaster") == 0 ?
+#if defined(CUPS_RASTER_HAVE_APPLERASTER)
+ (!strcmp(cups->dname, "appleraster") ||
+ !strcmp(cups->dname, "urf") ?
+ CUPS_RASTER_WRITE_APPLE :
+ CUPS_RASTER_WRITE_PWG) :
+#else
CUPS_RASTER_WRITE_PWG :
+#endif
(cups->cupsRasterVersion == 3 ?
CUPS_RASTER_WRITE :
CUPS_RASTER_WRITE_COMPRESSED)))) ==
@@ -6080,5 +6099,8 @@ cups_spec_op(gx_device *dev_, int op, void *data, int datasize)
return gx_default_dev_spec_op(dev_, op, data, datasize);
}
+#ifdef __GNUC__
+#pragma GCC diagnostic pop
+#endif
/*
*/
diff --git a/demos/MATLAB/ghostpdl.m b/demos/MATLAB/ghostpdl.m
new file mode 100644
index 00000000..833cf1fd
--- /dev/null
+++ b/demos/MATLAB/ghostpdl.m
@@ -0,0 +1,85 @@
+% Copyright (C) 2001-2022 Artifex Software, Inc.
+% All Rights Reserved.
+%
+% This software is provided AS-IS with no warranty, either express or
+% implied.
+%
+% This software is distributed under license and may not be copied,
+% modified or distributed except as expressly authorized under the terms
+% of the license contained in the file LICENSE in this distribution.
+%
+% Refer to licensing information at http://www.artifex.com or contact
+% Artifex Software, Inc., 1305 Grant Avenue - Suite 200, Novato,
+% CA 94945, U.S.A., +1(415)492-9861, for further information.
+%
+%
+% Paths in this example are relative to the MATLAB
+% folder in the ghostscript project. MATLAB only
+% runs on Windows 64 bit machines. Interface is
+% limited to a subset of the API methods due to
+% the fact that the MATLAB API does not allow
+% function pointers. We want to use the display
+% device callbacks to get the image data created
+% from Ghostscript. To do this, we have to wrap the
+% callback set up and associated functions into a
+% MEX-file that will serve as an interface between MATLAB
+% and the Ghostscript DLL. We use the C MEX API (as opposed to
+% the C++ MEX API). The mex file is gs_displaydevice.c
+
+% The creation of the mex file for the display device handling only
+% needs to be done once. Note the use of -R2018a as we are using
+% type-safe data access in the mex file. This also is doing a debug version -g.
+mex 'gs_displaydevice.c' -R2018a -g '../../debugbin/gpdldll64.lib'
+
+% You have to load the library to get the mex file to find the library and
+% to make direct calls to gpdldll64 directly from MATLAB
+if not(libisloaded('gpdldll64'))
+ [nf,warn] = loadlibrary('../../debugbin/gpdldll64.dll','../../pcl/pl/plapi.h')
+end
+
+% Show us the various methods in the DLL
+% libfunctions('gpdldll64')
+
+% Use planar format for MATLAB. See gdevdsp.h for what these bits mean.
+PlanarGray = 0x800802;
+PlanarRGB = 0x800804;
+PlanarCMYK = 0x800808;
+PlanarSpots = 0x880800;
+
+% Let try the display device and return the image
+page_number = 1;
+resolution = 200;
+input_file = '../../examples/tiger.eps';
+tiger_image_rgb = gs_displaydevice(input_file, PlanarRGB, page_number, resolution);
+figure(1);
+imshow(tiger_image_rgb);
+title('RGB rendering');
+
+tiger_image_gray = gs_displaydevice(input_file, PlanarGray, page_number, resolution);
+figure(2);
+imshow(tiger_image_gray);
+title('Gray rendering');
+
+% MATLAB will not display CMYK or NColor Images. We have to show
+% the separations for this case
+tiger_image_cmyk = gs_displaydevice(input_file, PlanarCMYK, page_number, resolution);
+for k=1:4
+ eval(sprintf('figure(2+k);'));
+ imshow(tiger_image_cmyk(:,:,k));
+ switch k
+ case 1
+ title('Cyan Separation');
+ case 2
+ title('Magenta Separation');
+ case 3
+ title('Yellow Separation');
+ case 4
+ title('Black Separation');
+ end
+end
+
+% At this stage, you can push the image data through MATLAB's ocr if you
+% have the Computer Vision Toolbox and want to do some sort of text
+% analysis. You can also use direct calls into gpdldll64. See the
+% C-API demo for examples on what can be done to render to file output or
+% save as PDF, PS, etc. \ No newline at end of file
diff --git a/demos/MATLAB/gs_displaydevice.c b/demos/MATLAB/gs_displaydevice.c
new file mode 100644
index 00000000..cb12c983
--- /dev/null
+++ b/demos/MATLAB/gs_displaydevice.c
@@ -0,0 +1,514 @@
+/* Copyright (C) 2001-2022 Artifex Software, Inc.
+ All Rights Reserved.
+
+ This software is provided AS-IS with no warranty, either express or
+ implied.
+
+ This software is distributed under license and may not be copied,
+ modified or distributed except as expressly authorized under the terms
+ of the license contained in the file LICENSE in this distribution.
+
+ Refer to licensing information at http://www.artifex.com or contact
+ Artifex Software, Inc., 1305 Grant Avenue - Suite 200, Novato,
+ CA 94945, U.S.A., +1(415)492-9861, for further information.
+*/
+
+#include "mex.h"
+#include <memory.h>
+#include <assert.h>
+
+#ifndef GHOSTPDL
+#define GHOSTPDL 1
+#endif
+
+#if GHOSTPDL
+#include "../../pcl/pl/plapi.h" /* GSAPI - gpdf version */
+#else
+#include "psi/iapi.h" /* GSAPI - ghostscript version */
+#endif
+#include "../../devices/gdevdsp.h"
+/*--------------------------------------------------------------------*/
+/* Much of this set-up is stolen from the C-API demo code */
+
+#ifdef HIDE_POINTERS
+void *hide_pointer(void *p)
+{
+ return (p == NULL) ? NULL : (void *)1;
+}
+
+#define PTR(p) hide_pointer(p)
+
+#else
+
+#define PTR(p) p
+
+#endif
+
+#define PlanarGray 0x800802
+#define PlanarRGB 0x800804
+#define PlanarCMYK 0x800808
+#define PlanarSpots 0x880800
+#define INSTANCE_HANDLE ((void *)1234)
+#define SANITY_CHECK_VALUE 0x12345678
+
+#define SANITY_CHECK(ts) assert(ts->sanity_check_value == SANITY_CHECK_VALUE)
+
+/* All the state for a given test is contained within the following
+ * structure. */
+typedef struct {
+ /* This value should always be set to SANITY_CHECK_VALUE. It
+ * allows us to check we have a valid (or at least plausible)
+ * teststate_t pointer by checking its value. */
+ int sanity_check_value;
+
+ int w;
+ int h;
+ int r;
+ int pr;
+ int format;
+
+ int n;
+ void *mem;
+
+ mxArray **mex_image_data;
+
+} teststate_t;
+
+
+static int
+open(void *handle, void *device)
+{
+ teststate_t *ts = (teststate_t *)handle;
+
+ SANITY_CHECK(ts);
+ mexPrintf("open from C-Mex function\n");
+
+ return 0;
+}
+
+static int
+preclose(void *handle, void *device)
+{
+ teststate_t *ts = (teststate_t *)handle;
+
+ SANITY_CHECK(ts);
+ mexPrintf("preclose from C-Mex function\n");
+
+ return 0;
+}
+
+static int
+close(void *handle, void *device)
+{
+ teststate_t *ts = (teststate_t *)handle;
+
+ SANITY_CHECK(ts);
+ mexPrintf("close from C-Mex function\n");
+
+ return 0;
+}
+
+static int
+presize(void *handle, void *device,
+ int width, int height, int raster, unsigned int format)
+{
+ teststate_t *ts = (teststate_t *)handle;
+
+ SANITY_CHECK(ts);
+ mexPrintf("presize: w=%d h=%d r=%d f=%x\n",
+ width, height, raster, format);
+
+ ts->w = width;
+ ts->h = height;
+ ts->r = raster;
+ ts->format = format;
+
+ if (ts->format & DISPLAY_COLORS_GRAY)
+ ts->n = 1;
+ if (ts->format & DISPLAY_COLORS_RGB)
+ ts->n = 3;
+ if (ts->format & DISPLAY_COLORS_CMYK)
+ ts->n = 4;
+ if (ts->format & DISPLAY_COLORS_SEPARATION)
+ ts->n = 0;
+ if ((ts->format & DISPLAY_DEPTH_MASK) != DISPLAY_DEPTH_8)
+ return -1; /* Haven't written code for that! */
+
+ return 0;
+}
+
+static int
+size(void *handle, void *device, int width, int height,
+ int raster, unsigned int format, unsigned char *pimage)
+{
+ teststate_t *ts = (teststate_t *)handle;
+
+ SANITY_CHECK(ts);
+ mexPrintf("size: w=%d h=%d r=%d f=%x m=%p\n",
+ width, height, raster, format, PTR(pimage));
+
+ ts->w = width;
+ ts->h = height;
+ ts->r = raster;
+ ts->format = format;
+ ts->mem = pimage;
+
+ if (ts->format & DISPLAY_PLANAR)
+ ts->pr = ts->r * height;
+ /* When running with spots, n is not known yet. */
+ if (ts->n != 0 && ts->format & DISPLAY_PLANAR_INTERLEAVED)
+ ts->pr = ts->r / ts->n;
+
+ return 0;
+}
+
+static int
+sync(void *handle, void *device)
+{
+ teststate_t *ts = (teststate_t *)handle;
+
+ SANITY_CHECK(ts);
+
+ mexPrintf("sync\n");
+
+ return 0;
+}
+
+static int
+page(void *handle, void *device, int copies, int flush)
+{
+ teststate_t *ts = (teststate_t *)handle;
+ mwSize dims[3];
+ int num_planes;
+ int i,j,k;
+ unsigned char *des_ptr, *src_ptr, *matlab_ptr, *row_ptr;
+ size_t matlab_planar_raster;
+
+ SANITY_CHECK(ts);
+
+ mexPrintf("page: c=%d f=%d\n", copies, flush);
+
+ /* Transfer to the mex output variables at this time */
+ switch (ts->format) {
+ case PlanarGray:
+ num_planes = 1;
+ break;
+ case PlanarRGB:
+ num_planes = 3;
+ break;
+ case PlanarCMYK:
+ num_planes = 4;
+ break;
+ case PlanarSpots:
+ num_planes = 4;
+ break;
+ }
+
+ /* Matlab uses a column ordered layout for its storage of
+ arrays. So we need to do a little effort here. */
+ /* Allocate MATLAB outputs */
+ dims[0] = ts->h;
+ dims[1] = ts->w;
+ dims[2] = num_planes;
+ *(ts->mex_image_data) = mxCreateNumericArray(3, dims, mxUINT8_CLASS, mxREAL);
+
+ /* Grab image pointer */
+ matlab_ptr = (unsigned char*) mxGetUint8s(*(ts->mex_image_data));
+ matlab_planar_raster = ts->w * ts->h;
+
+ /* Copy to MATLAB memory */
+ for (k = 0; k < num_planes; k++) {
+ des_ptr = matlab_ptr + k * matlab_planar_raster;
+ src_ptr = (unsigned char*) ts->mem + k * ts->pr;
+ row_ptr = src_ptr;
+ for (i = 0; i < ts->h; i++) {
+ for (j = 0; j < ts->w; j++) {
+ des_ptr[i + j * ts->h] = *row_ptr++;
+ }
+ row_ptr = src_ptr + i * ts->r;
+ }
+ }
+ return 0;
+}
+
+static int
+update(void *handle, void *device, int x, int y, int w, int h)
+{
+ teststate_t *ts = (teststate_t *)handle;
+
+ SANITY_CHECK(ts);
+ /* This print statement just makes too much noise :) */
+ /* mexPrintf("update: x=%d y=%d w=%d h=%d\n", x, y, w, h); */
+
+ return 0;
+}
+
+static void *
+memalloc(void *handle, void *device, size_t size)
+{
+ void *ret = NULL;
+ teststate_t *ts = (teststate_t *)handle;
+
+ SANITY_CHECK(ts);
+
+ ret = malloc(size);
+
+ return ret;
+}
+
+static int
+memfree(void *handle, void *device, void *mem)
+{
+ teststate_t *ts = (teststate_t *)handle;
+
+ SANITY_CHECK(ts);
+ mexPrintf("memfree: %p\n", PTR(mem));
+
+ free(mem);
+
+ return 0;
+}
+
+static int
+separation(void *handle, void *device,
+ int component, const char *component_name,
+ unsigned short c, unsigned short m,
+ unsigned short y, unsigned short k)
+{
+ teststate_t *ts = (teststate_t *)handle;
+
+ SANITY_CHECK(ts);
+
+ mexPrintf("separation: %d %s (%x,%x,%x,%x)\n",
+ component, component_name ? component_name : "<NULL>",
+ c, m, y, k);
+ ts->n++;
+
+ /* Update the plane_raster as n has changed. */
+ if (ts->format & DISPLAY_PLANAR_INTERLEAVED)
+ ts->pr = ts->r / ts->n;
+
+ return 0;
+}
+
+static int
+adjust_band_height(void *handle, void *device, int bandheight)
+{
+ teststate_t *ts = (teststate_t *)handle;
+
+ SANITY_CHECK(ts);
+ mexPrintf("adjust_band_height: Unsupported!");
+
+ return 0;
+}
+
+static int
+rectangle_request(void *handle, void *device,
+ void **memory, int *ox, int *oy,
+ int *raster, int *plane_raster,
+ int *x, int *y, int *w, int *h)
+{
+ teststate_t *ts = (teststate_t *)handle;
+
+ SANITY_CHECK(ts);
+
+ mexPrintf("rectangle_request: Unsupported!");
+ return 0;
+}
+
+/*--------------------------------------------------------------------*/
+/* All those callback functions live in a display_callback structure
+ * that we return to the main code. This can be done using the modern
+ * "callout" method, or by using the legacy (deprecated) direct
+ * registration method. We strongly prefer the callout method as it
+ * avoids the need to pass a pointer using -sDisplayHandle. */
+static display_callback callbacks =
+{
+ sizeof(callbacks),
+ DISPLAY_VERSION_MAJOR,
+ DISPLAY_VERSION_MINOR,
+ open,
+ preclose,
+ close,
+ presize,
+ size,
+ sync,
+ page,
+ update,
+ memalloc,
+ memfree,
+ separation,
+ adjust_band_height,
+ rectangle_request
+};
+
+/*--------------------------------------------------------------------*/
+/* This is our callout handler. It handles callouts from devices within
+ * Ghostscript. It only handles a single callout, from the display
+ * device, to return the callback handler and callback handle. */
+static int
+callout(void *instance,
+ void *callout_handle,
+ const char *device_name,
+ int id,
+ int size,
+ void *data)
+{
+ teststate_t *ts = (teststate_t *)callout_handle;
+
+ SANITY_CHECK(ts);
+
+ /* We are only interested in callouts from the display device. */
+ if (strcmp(device_name, "display"))
+ return -1;
+
+ if (id == DISPLAY_CALLOUT_GET_CALLBACK)
+ {
+ /* Fill in the supplied block with the details of our callback
+ * handler, and the handle to use. In this instance, the handle
+ * is the pointer to our test structure. */
+ gs_display_get_callback_t *cb = (gs_display_get_callback_t *)data;
+ cb->callback = &callbacks;
+ cb->caller_handle = ts;
+ return 0;
+ }
+ return -1;
+}
+
+/* mexFunction is the gateway routine for the MEX-file. Like the main
+ function in a C project */
+void
+mexFunction( int nlhs, mxArray *plhs[],
+ int nrhs, const mxArray *prhs[] )
+{
+ /* Set up GS to use the display device. Register the callback
+ which will callback to a MATLAB function, whose task it is
+ to deal with the rendered image data */
+ /* Make the teststate a blank slate for us to work with. */
+ teststate_t teststate = { SANITY_CHECK_VALUE };
+
+ /* Construct the argc/argv to pass to ghostscript. */
+ int argc = 0;
+ char *argv[10];
+ char format_arg[64];
+ char first_page_arg[64];
+ char last_page_arg[64];
+ char resolution_arg[64];
+ int code = 0;
+ void *instance = NULL;
+ int format, page_number;
+ size_t m, n;
+ mxDouble *value;
+ int result;
+ char *file_name = NULL;
+ int len;
+ int resolution;
+
+ /* Error checking */
+ if (nrhs != 4) {
+ mexPrintf("Incorrect number of input args");
+ return;
+ }
+
+ if (mxGetClassID(prhs[0]) != mxCHAR_CLASS || mxIsComplex(prhs[0]) ||
+ mxGetM(prhs[0]) != 1) {
+ mexErrMsgTxt("First input must be file name");
+ return;
+ }
+ len = mxGetN(prhs[0]);
+ file_name = (char *)malloc(len + 1);
+ if (file_name == NULL) {
+ mexErrMsgTxt("Filename allocation failed");
+ return;
+ }
+ code = mxGetString(prhs[0], file_name, len + 1);
+ if (code != 0) {
+ mexErrMsgTxt("Mex string copy failed");
+ return;
+ }
+
+ if (mxGetClassID(prhs[1]) != mxUINT32_CLASS || mxIsComplex(prhs[1]) ||
+ mxGetN(prhs[1]) * mxGetM(prhs[1]) != 1) {
+ mexErrMsgTxt("Second input must be data format");
+ return;
+ }
+ format = mxGetScalar(prhs[1]);
+
+ if (!mxIsDouble(prhs[2]) || mxIsComplex(prhs[2]) ||
+ mxGetN(prhs[2]) * mxGetM(prhs[2]) != 1) {
+ mexErrMsgTxt("Third input must be page number");
+ return;
+ }
+ page_number = mxGetScalar(prhs[2]);
+
+ if (!mxIsDouble(prhs[3]) || mxIsComplex(prhs[3]) ||
+ mxGetN(prhs[3]) * mxGetM(prhs[3]) != 1) {
+ mexErrMsgTxt("Fourth input must be resolution");
+ return;
+ }
+ resolution = mxGetScalar(prhs[3]);
+
+ if (!(format == PlanarGray || format == PlanarRGB ||
+ format == PlanarCMYK || format == PlanarSpots)) {
+ mexPrintf("Data format must be planar");
+ return;
+ }
+
+ if (nlhs != 1) {
+ mexPrintf("Incorrect number of output args");
+ return;
+ }
+
+ /* Set up command */
+ argv[argc++] = "gs";
+ argv[argc++] = "-sDEVICE=display"; /* Using display device to get callback*/
+ argv[argc++] = "-dNOPAUSE";
+ argv[argc++] = first_page_arg;
+ argv[argc++] = last_page_arg;
+ argv[argc++] = format_arg;
+ argv[argc++] = resolution_arg;
+
+ sprintf(first_page_arg, "-dFirstPage=%d", page_number);
+ sprintf(last_page_arg, "-dLastPage=%d", page_number);
+ sprintf(format_arg, "-dDisplayFormat=16#%x", format);
+ sprintf(resolution_arg, "-r%d", resolution);
+
+ argv[argc++] = file_name;
+
+ /* Create a GS instance. */
+ code = gsapi_new_instance(&instance, INSTANCE_HANDLE);
+ if (code < 0) {
+ mexPrintf("Error %d in gsapi_new_instance\n", code);
+ return;
+ }
+
+ /* Assign lhs variables to teststate members */
+ teststate.mex_image_data = &plhs[0];
+
+ /* Register our callout handler. This will pass the display
+ * device the callback structure and handle when requested. */
+ code = gsapi_register_callout(instance, callout, &teststate);
+ if (code < 0) {
+ mexPrintf("Error %d in gsapi_register_callout\n", code);
+ goto fail;
+ }
+
+ code = gsapi_init_with_args(instance, argc, argv);
+ if (code < 0) {
+ mexPrintf("Error %d in gsapi_init_with_args\n", code);
+ goto fail;
+ }
+
+ /* Close the interpreter down (important, or we will leak!) */
+ code = gsapi_exit(instance);
+ if (code < 0) {
+ mexPrintf("Error %d in gsapi_exit\n", code);
+ }
+
+fail:
+ /* Delete the gs instance. */
+ gsapi_delete_instance(instance);
+
+ if (file_name != NULL)
+ free(file_name);
+}
diff --git a/demos/c/Makefile b/demos/c/Makefile
index 63dc4da5..5f053410 100644
--- a/demos/c/Makefile
+++ b/demos/c/Makefile
@@ -10,3 +10,17 @@ run_api_test: api_test
post_api_test:
md5sum apitest*
rm apitest*
+
+multi_test: multi_test.c
+ (cd ../.. && ./autogen.sh)
+ (cd ../.. && make so XCFLAGS="-DCLUSTER")
+ pwd
+ gcc -fPIC -I../.. multi_test.c -DGHOSTPDL=1 -lgpdl -lpthread -L../../sobin -o multi_test
+
+run_multi_test: multi_test
+ LD_LIBRARY_PATH=../../sobin ./multi_test
+
+post_multi_test:
+ md5sum multitest*
+ rm multitest*
+ rm multi_out*
diff --git a/demos/c/ReadMe.txt b/demos/c/ReadMe.txt
index 16c4d9de..336a31fb 100644
--- a/demos/c/ReadMe.txt
+++ b/demos/c/ReadMe.txt
@@ -29,3 +29,43 @@ tested there. Some fiddling to load the DLL may be required.
Building with GHOSTPDL=0 will allow the Ghostscript DLL to be
tested. The VS2019 project will need to be edited to use the
appropriate .lib file too.
+
+On unix, the file can be built using:
+
+ make api_test
+
+run using:
+
+ make run_api_test
+
+and cleaned up using:
+
+ make post_api_test
+
+
+ multi_test
+ ~~~~~~~~~~
+
+This is a simple VS2019 project that loads the gpdl dll and drives
+multiple instances of it from the gsapi functions.
+
+It is intended as a simple demonstration of how to use multiple
+instances of the ghostscript library at once; in this case many
+ghostscript instances run in parallel within a single process
+to convert several different documents at a time.
+
+Building with GHOSTPDL=0 will allow the Ghostscript DLL to be
+tested. The VS2019 project will need to be edited to use the
+appropriate .lib file too.
+
+On unix, the file can be built using:
+
+ make multi_test
+
+run using:
+
+ make run_multi_test
+
+and cleaned up using:
+
+ make post_multi_test
diff --git a/demos/c/multi_test.c b/demos/c/multi_test.c
new file mode 100644
index 00000000..f62d3e6e
--- /dev/null
+++ b/demos/c/multi_test.c
@@ -0,0 +1,191 @@
+/* Copyright (C) 2018-2022 Artifex Software, Inc.
+ All Rights Reserved.
+
+ This software is provided AS-IS with no warranty, either express or
+ implied.
+
+ This software is distributed under license and may not be copied,
+ modified or distributed except as expressly authorized under the terms
+ of the license contained in the file LICENSE in this distribution.
+
+ Refer to licensing information at http://www.artifex.com or contact
+ Artifex Software, Inc., 1305 Grant Avenue - Suite 200, Novato,
+ CA 94945, U.S.A., +1(415)492-9861, for further information.
+*/
+
+/* Simple example file to demonstrate multi-instance use of
+ * the ghostscript/GPDL library. */
+
+#ifdef _WIN32
+/* Stop windows builds complaining about sprintf being insecure. */
+#define _CRT_SECURE_NO_WARNINGS
+#include <windows.h>
+#define WINDOWS
+#else
+#include <pthread.h>
+#endif
+
+#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
+#include <memory.h>
+#include <assert.h>
+#include <limits.h>
+#include <stdarg.h>
+#include <stdint.h>
+
+/* This can work either with the Ghostscript or GhostPDL
+ * library. The code is the same for both. */
+#if GHOSTPDL
+#include "pcl/pl/plapi.h" /* GSAPI - gpdf version */
+#else
+#include "psi/iapi.h" /* GSAPI - ghostscript version */
+#endif
+
+/* We hold details of each threads working in a thread_data
+ * structure. */
+typedef struct
+{
+ /* What worker number are we ? */
+ int thread_num;
+ /* What input file? should this worker use? */
+ char *in_file;
+ /* Somewhere to store the thread id */
+#ifdef WINDOWS
+ HANDLE thread;
+#else
+ pthread_t thread;
+#endif
+ /* exit code for the thread */
+ int code;
+} thread_data;
+
+/* The function to perform the work of the thread.
+ * Starts a gs instance, runs a file, shuts it down.
+ */
+static
+#ifdef WINDOWS
+DWORD WINAPI
+#else
+void *
+#endif
+worker(void *td_)
+{
+ thread_data *td = (thread_data *)td_;
+ int code;
+ void *instance = NULL;
+ char out[32];
+
+ /* Construct the argc/argv to pass to ghostscript. */
+ int argc = 0;
+ char *argv[10];
+
+ sprintf(out, "multi_out_%d_", td->thread_num);
+ strcat(out, "%d.png");
+ argv[argc++] = "gpdl";
+ argv[argc++] = "-sDEVICE=png16m";
+ argv[argc++] = "-o";
+ argv[argc++] = out;
+ argv[argc++] = "-r100";
+ argv[argc++] = td->in_file;
+
+ /* Create a GS instance. */
+ code = gsapi_new_instance(&instance, NULL);
+ if (code < 0) {
+ printf("Error %d in gsapi_new_instance\n", code);
+ goto failearly;
+ }
+
+ /* Run our test. */
+ code = gsapi_init_with_args(instance, argc, argv);
+ if (code < 0) {
+ printf("Error %d in gsapi_init_with_args\n", code);
+ goto fail;
+ }
+
+ /* Close the interpreter down (important, or we will leak!) */
+ code = gsapi_exit(instance);
+ if (code < 0) {
+ printf("Error %d in gsapi_exit\n", code);
+ goto fail;
+ }
+
+fail:
+ /* Delete the gs instance. */
+ gsapi_delete_instance(instance);
+
+failearly:
+ td->code = code;
+
+#ifdef WINDOWS
+ return 0;
+#else
+ return NULL;
+#endif
+}
+
+/* A list of input files to run. */
+char *in_files[] =
+{
+ "../../examples/tiger.eps",
+ "../../examples/golfer.eps",
+ "../../examples/escher.ps",
+ "../../examples/snowflak.ps"
+#ifdef GHOSTPDL
+ , "../../pcl/examples/grashopp.pcl"
+ , "../../pcl/examples/owl.pcl"
+ , "../../pcl/examples/tiger.xps"
+#endif
+};
+
+#define NUM_INPUTS (sizeof(in_files)/sizeof(*in_files))
+#define NUM_WORKERS (10)
+
+int main(int argc, char *argv[])
+{
+ int failed = 0;
+#ifndef WINDOWS
+ int code;
+#endif
+ int i;
+ thread_data td[NUM_WORKERS];
+
+ /* Start NUM_WORKERS threads */
+ for (i = 0; i < NUM_WORKERS; i++)
+ {
+ td[i].in_file = in_files[i % NUM_INPUTS];
+ td[i].thread_num = i;
+
+#ifdef WINDOWS
+ td[i].thread = CreateThread(NULL, 0, worker, &td[i], 0, NULL);
+#else
+ code = pthread_create(&td[i].thread, NULL, worker, &td[i]);
+ if (code != 0) {
+ fprintf(stderr, "Thread %d creation failed\n", i);
+ exit(1);
+ }
+#endif
+ }
+
+ /* Wait for them all to finish */
+ for (i = 0; i < NUM_WORKERS; i++)
+ {
+ void *status = NULL;
+
+#ifdef WINDOWS
+ WaitForSingleObject(td[i].thread, INFINITE);
+#else
+ code = pthread_join(td[i].thread, &status);
+ if (code != 0) {
+ fprintf(stderr, "Thread join %d failed\n", i);
+ exit(1);
+ }
+#endif
+ /* All the threads should return with 0 */
+ if (td[i].code != 0)
+ failed = 1;
+ fprintf(stderr, "Thread %d finished with %d\n", i, td[i].code);
+ }
+
+ return failed;
+}
diff --git a/demos/c/multi_test.vcxproj b/demos/c/multi_test.vcxproj
new file mode 100644
index 00000000..ae208c5d
--- /dev/null
+++ b/demos/c/multi_test.vcxproj
@@ -0,0 +1,239 @@
+<?xml version="1.0" encoding="utf-8"?>
+<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+ <ItemGroup Label="ProjectConfigurations">
+ <ProjectConfiguration Include="Debug|Win32">
+ <Configuration>Debug</Configuration>
+ <Platform>Win32</Platform>
+ </ProjectConfiguration>
+ <ProjectConfiguration Include="Memento|Win32">
+ <Configuration>Memento</Configuration>
+ <Platform>Win32</Platform>
+ </ProjectConfiguration>
+ <ProjectConfiguration Include="Memento|x64">
+ <Configuration>Memento</Configuration>
+ <Platform>x64</Platform>
+ </ProjectConfiguration>
+ <ProjectConfiguration Include="Release|Win32">
+ <Configuration>Release</Configuration>
+ <Platform>Win32</Platform>
+ </ProjectConfiguration>
+ <ProjectConfiguration Include="Debug|x64">
+ <Configuration>Debug</Configuration>
+ <Platform>x64</Platform>
+ </ProjectConfiguration>
+ <ProjectConfiguration Include="Release|x64">
+ <Configuration>Release</Configuration>
+ <Platform>x64</Platform>
+ </ProjectConfiguration>
+ </ItemGroup>
+ <PropertyGroup Label="Globals">
+ <VCProjectVersion>16.0</VCProjectVersion>
+ <Keyword>Win32Proj</Keyword>
+ <ProjectGuid>{6f11d63a-3533-47e5-8aa8-973d804443a0}</ProjectGuid>
+ <RootNamespace>multi_test</RootNamespace>
+ <WindowsTargetPlatformVersion>10.0</WindowsTargetPlatformVersion>
+ </PropertyGroup>
+ <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
+ <ConfigurationType>Application</ConfigurationType>
+ <UseDebugLibraries>true</UseDebugLibraries>
+ <PlatformToolset>v142</PlatformToolset>
+ <CharacterSet>Unicode</CharacterSet>
+ </PropertyGroup>
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Memento|Win32'" Label="Configuration">
+ <ConfigurationType>Application</ConfigurationType>
+ <UseDebugLibraries>true</UseDebugLibraries>
+ <PlatformToolset>v142</PlatformToolset>
+ <CharacterSet>Unicode</CharacterSet>
+ </PropertyGroup>
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
+ <ConfigurationType>Application</ConfigurationType>
+ <UseDebugLibraries>false</UseDebugLibraries>
+ <PlatformToolset>v142</PlatformToolset>
+ <WholeProgramOptimization>true</WholeProgramOptimization>
+ <CharacterSet>Unicode</CharacterSet>
+ </PropertyGroup>
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
+ <ConfigurationType>Application</ConfigurationType>
+ <UseDebugLibraries>true</UseDebugLibraries>
+ <PlatformToolset>v142</PlatformToolset>
+ <CharacterSet>Unicode</CharacterSet>
+ </PropertyGroup>
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Memento|x64'" Label="Configuration">
+ <ConfigurationType>Application</ConfigurationType>
+ <UseDebugLibraries>true</UseDebugLibraries>
+ <PlatformToolset>v142</PlatformToolset>
+ <CharacterSet>Unicode</CharacterSet>
+ </PropertyGroup>
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
+ <ConfigurationType>Application</ConfigurationType>
+ <UseDebugLibraries>false</UseDebugLibraries>
+ <PlatformToolset>v142</PlatformToolset>
+ <WholeProgramOptimization>true</WholeProgramOptimization>
+ <CharacterSet>Unicode</CharacterSet>
+ </PropertyGroup>
+ <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
+ <ImportGroup Label="ExtensionSettings">
+ </ImportGroup>
+ <ImportGroup Label="Shared">
+ </ImportGroup>
+ <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
+ <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
+ </ImportGroup>
+ <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Memento|Win32'" Label="PropertySheets">
+ <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
+ </ImportGroup>
+ <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
+ <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
+ </ImportGroup>
+ <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
+ <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
+ </ImportGroup>
+ <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Memento|x64'" Label="PropertySheets">
+ <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
+ </ImportGroup>
+ <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
+ <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
+ </ImportGroup>
+ <PropertyGroup Label="UserMacros" />
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
+ <LinkIncremental>true</LinkIncremental>
+ <OutDir>$(ProjectDir)..\..\debugbin\</OutDir>
+ <TargetName>$(ProjectName)</TargetName>
+ </PropertyGroup>
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Memento|Win32'">
+ <LinkIncremental>true</LinkIncremental>
+ <OutDir>$(ProjectDir)..\..\membin\</OutDir>
+ <TargetName>$(ProjectName)</TargetName>
+ </PropertyGroup>
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
+ <LinkIncremental>false</LinkIncremental>
+ <OutDir>$(ProjectDir)..\..\bin\</OutDir>
+ <TargetName>$(ProjectName)</TargetName>
+ </PropertyGroup>
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
+ <LinkIncremental>true</LinkIncremental>
+ <TargetName>$(ProjectName)64</TargetName>
+ <OutDir>$(ProjectDir)..\..\debugbin\</OutDir>
+ </PropertyGroup>
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Memento|x64'">
+ <LinkIncremental>true</LinkIncremental>
+ <OutDir>$(ProjectDir)..\..\membin\</OutDir>
+ <TargetName>$(ProjectName)64</TargetName>
+ </PropertyGroup>
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
+ <LinkIncremental>false</LinkIncremental>
+ <OutDir>$(ProjectDir)..\..\bin\</OutDir>
+ <TargetName>$(ProjectName)64</TargetName>
+ </PropertyGroup>
+ <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
+ <ClCompile>
+ <WarningLevel>Level3</WarningLevel>
+ <SDLCheck>true</SDLCheck>
+ <PreprocessorDefinitions>GHOSTPDL;WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
+ <ConformanceMode>true</ConformanceMode>
+ <AdditionalIncludeDirectories>..\..</AdditionalIncludeDirectories>
+ </ClCompile>
+ <Link>
+ <SubSystem>Console</SubSystem>
+ <GenerateDebugInformation>true</GenerateDebugInformation>
+ <AdditionalDependencies>gpdldll32.lib;%(AdditionalDependencies)</AdditionalDependencies>
+ <AdditionalLibraryDirectories>..\..\debugbin</AdditionalLibraryDirectories>
+ </Link>
+ <PostBuildEvent>
+ <Command>
+ </Command>
+ </PostBuildEvent>
+ </ItemDefinitionGroup>
+ <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Memento|Win32'">
+ <ClCompile>
+ <WarningLevel>Level3</WarningLevel>
+ <SDLCheck>true</SDLCheck>
+ <PreprocessorDefinitions>GHOSTPDL;MEMENTO;WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
+ <ConformanceMode>true</ConformanceMode>
+ <AdditionalIncludeDirectories>..\..</AdditionalIncludeDirectories>
+ </ClCompile>
+ <Link>
+ <SubSystem>Console</SubSystem>
+ <GenerateDebugInformation>true</GenerateDebugInformation>
+ <AdditionalDependencies>gpdldll32.lib;%(AdditionalDependencies)</AdditionalDependencies>
+ <AdditionalLibraryDirectories>..\..\membin</AdditionalLibraryDirectories>
+ </Link>
+ <PostBuildEvent>
+ <Command>
+ </Command>
+ </PostBuildEvent>
+ </ItemDefinitionGroup>
+ <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
+ <ClCompile>
+ <WarningLevel>Level3</WarningLevel>
+ <FunctionLevelLinking>true</FunctionLevelLinking>
+ <IntrinsicFunctions>true</IntrinsicFunctions>
+ <SDLCheck>true</SDLCheck>
+ <PreprocessorDefinitions>GHOSTPDL;WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
+ <ConformanceMode>true</ConformanceMode>
+ <AdditionalIncludeDirectories>..\..</AdditionalIncludeDirectories>
+ </ClCompile>
+ <Link>
+ <SubSystem>Console</SubSystem>
+ <EnableCOMDATFolding>true</EnableCOMDATFolding>
+ <OptimizeReferences>true</OptimizeReferences>
+ <GenerateDebugInformation>true</GenerateDebugInformation>
+ <AdditionalDependencies>gpdldll32.lib;%(AdditionalDependencies)</AdditionalDependencies>
+ <AdditionalLibraryDirectories>..\..\bin</AdditionalLibraryDirectories>
+ </Link>
+ </ItemDefinitionGroup>
+ <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
+ <ClCompile>
+ <WarningLevel>Level3</WarningLevel>
+ <SDLCheck>true</SDLCheck>
+ <PreprocessorDefinitions>_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
+ <ConformanceMode>true</ConformanceMode>
+ <AdditionalIncludeDirectories>..\..</AdditionalIncludeDirectories>
+ </ClCompile>
+ <Link>
+ <SubSystem>Console</SubSystem>
+ <GenerateDebugInformation>true</GenerateDebugInformation>
+ <AdditionalDependencies>gpdldll64.lib;%(AdditionalDependencies)</AdditionalDependencies>
+ <AdditionalLibraryDirectories>..\..\debugbin</AdditionalLibraryDirectories>
+ </Link>
+ </ItemDefinitionGroup>
+ <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Memento|x64'">
+ <ClCompile>
+ <WarningLevel>Level3</WarningLevel>
+ <SDLCheck>true</SDLCheck>
+ <PreprocessorDefinitions>MEMENTO;_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
+ <ConformanceMode>true</ConformanceMode>
+ <AdditionalIncludeDirectories>..\..</AdditionalIncludeDirectories>
+ </ClCompile>
+ <Link>
+ <SubSystem>Console</SubSystem>
+ <GenerateDebugInformation>true</GenerateDebugInformation>
+ <AdditionalDependencies>gpdldll64.lib;%(AdditionalDependencies)</AdditionalDependencies>
+ <AdditionalLibraryDirectories>..\..\membin</AdditionalLibraryDirectories>
+ </Link>
+ </ItemDefinitionGroup>
+ <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
+ <ClCompile>
+ <WarningLevel>Level3</WarningLevel>
+ <FunctionLevelLinking>true</FunctionLevelLinking>
+ <IntrinsicFunctions>true</IntrinsicFunctions>
+ <SDLCheck>true</SDLCheck>
+ <PreprocessorDefinitions>NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
+ <ConformanceMode>true</ConformanceMode>
+ </ClCompile>
+ <Link>
+ <SubSystem>Console</SubSystem>
+ <EnableCOMDATFolding>true</EnableCOMDATFolding>
+ <OptimizeReferences>true</OptimizeReferences>
+ <GenerateDebugInformation>true</GenerateDebugInformation>
+ <AdditionalLibraryDirectories>..\..\bin</AdditionalLibraryDirectories>
+ </Link>
+ </ItemDefinitionGroup>
+ <ItemGroup>
+ <ClCompile Include="multi_test.c" />
+ </ItemGroup>
+ <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
+ <ImportGroup Label="ExtensionTargets">
+ </ImportGroup>
+</Project> \ No newline at end of file
diff --git a/demos/c/multi_test.vcxproj.filters b/demos/c/multi_test.vcxproj.filters
new file mode 100644
index 00000000..0e2de063
--- /dev/null
+++ b/demos/c/multi_test.vcxproj.filters
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="utf-8"?>
+<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+ <ItemGroup>
+ <Filter Include="Source Files">
+ <UniqueIdentifier>{4FC737F1-C7A5-4376-A066-2A32D752A2FF}</UniqueIdentifier>
+ <Extensions>cpp;c;cc;cxx;c++;def;odl;idl;hpj;bat;asm;asmx</Extensions>
+ </Filter>
+ </ItemGroup>
+ <ItemGroup>
+ <ClCompile Include="multi_test.c">
+ <Filter>Source Files</Filter>
+ </ClCompile>
+ </ItemGroup>
+</Project>
diff --git a/demos/java/README.txt b/demos/java/README.txt
index 4781bb09..3e94a920 100644
--- a/demos/java/README.txt
+++ b/demos/java/README.txt
@@ -6,3 +6,12 @@ variable. This exposes command line programs to build Java
applications.
On Linux and Mac, OpenJDK 8 is used.
+
+What's in this directory:
+
+./gsjava The Java project which provides the bindings to Ghostscript.
+./gstest An old project used for testing gsjava
+./gsviewer A demo Java PDF viewer made using the Java bindings
+./jni Contains the C++ project which backs the Java bindings to Ghostscript
+./mtdemo A demo project used to demonstrate how multithreading can be used with
+ the Java bindings \ No newline at end of file
diff --git a/demos/java/gsjava/build_darwin.sh b/demos/java/gsjava/build_darwin.sh
index 212dfb36..460e9ee0 100644
--- a/demos/java/gsjava/build_darwin.sh
+++ b/demos/java/gsjava/build_darwin.sh
@@ -2,8 +2,6 @@
mkdir -p bin
-echo "Compiling gs_jni C++ source..."
-
cd "../jni/gs_jni"
bash build_darwin.sh
diff --git a/demos/java/gsjava/build_linux.sh b/demos/java/gsjava/build_linux.sh
index 2866c07e..290540ae 100644
--- a/demos/java/gsjava/build_linux.sh
+++ b/demos/java/gsjava/build_linux.sh
@@ -2,8 +2,6 @@
mkdir -p bin
-echo "Compiling gs_jni C++ source..."
-
cd "../jni/gs_jni"
bash build_linux.sh
diff --git a/demos/java/gsjava/build_win32.bat b/demos/java/gsjava/build_win32.bat
index 88757811..85b81abc 100644
--- a/demos/java/gsjava/build_win32.bat
+++ b/demos/java/gsjava/build_win32.bat
@@ -2,7 +2,7 @@
if not exist bin mkdir bin
-echo Compiling Java source...
+echo Compiling gsjava Java source...
javac -sourcepath src\ -d bin^
src\com\artifex\gsjava\GSAPI.java^
src\com\artifex\gsjava\GSInstance.java^
@@ -53,7 +53,6 @@ jar -cf ..\gsjava.jar^
com\artifex\gsjava\GSAPI.class^
com\artifex\gsjava\GSAPI$Revision.class^
com\artifex\gsjava\GSInstance.class^
- com\artifex\gsjava\GSInstance$1.class^
com\artifex\gsjava\GSInstance$GSParam.class^
com\artifex\gsjava\GSInstance$ParamIterator.class^
^
@@ -74,7 +73,6 @@ jar -cf ..\gsjava.jar^
^
com\artifex\gsjava\devices\BMPDevice.class^
com\artifex\gsjava\devices\Device.class^
- com\artifex\gsjava\devices\Device$1.class^
com\artifex\gsjava\devices\Device$StdIO.class^
com\artifex\gsjava\devices\DeviceInUseException.class^
com\artifex\gsjava\devices\DeviceNotSupportedException.class^
diff --git a/demos/java/gsjava/src/com/artifex/gsjava/GSAPI.java b/demos/java/gsjava/src/com/artifex/gsjava/GSAPI.java
index 652d4356..6ab49bb2 100644
--- a/demos/java/gsjava/src/com/artifex/gsjava/GSAPI.java
+++ b/demos/java/gsjava/src/com/artifex/gsjava/GSAPI.java
@@ -59,7 +59,7 @@ public class GSAPI {
public static final long GS_NULL = 0L;
/**
- * Error codes
+ * Level 1 error codes
*/
public static final int GS_ERROR_OK = 0,
GS_ERROR_UNKNOWNERROR = -1,
@@ -89,7 +89,7 @@ public class GSAPI {
GS_ERROR_VMERROR = -25;
/**
- * Error codes
+ * Level 2 error codes
*/
public static final int GS_ERROR_CONFIGURATION_ERROR = -26,
GS_ERROR_UNDEFINEDRESOURCE = -27,
@@ -97,6 +97,12 @@ public class GSAPI {
GS_ERROR_INVALIDCONTEXT = -29,
GS_ERROR_INVALID = -30;
+ /**
+ * Psuedo-errors used internally
+ */
+ public static final int GS_ERROR_HIT_DETECTED = -59,
+ GS_ERROR_FATAL = -100;
+
public static final int GS_COLORS_NATIVE = (1 << 0),
GS_COLORS_GRAY = (1 << 1),
GS_COLORS_RGB = (1 << 2),
diff --git a/demos/java/gsjava/src/com/artifex/gsjava/GSInstance.java b/demos/java/gsjava/src/com/artifex/gsjava/GSInstance.java
index e5e713c7..ff3dbafa 100644
--- a/demos/java/gsjava/src/com/artifex/gsjava/GSInstance.java
+++ b/demos/java/gsjava/src/com/artifex/gsjava/GSInstance.java
@@ -75,13 +75,22 @@ public class GSInstance implements Iterable<GSInstance.GSParam<?>> {
}
}
- private static volatile boolean instanceExists = false;
+ private static boolean ALLOW_MULTITHREADING = false;
+ private static volatile int INSTANCES = 0;
+
+ public static void setAllowMultithreading(boolean state) {
+ ALLOW_MULTITHREADING = state;
+ }
+
+ public static int getInstanceCount() {
+ return INSTANCES;
+ }
private long instance;
private long callerHandle;
public GSInstance(long callerHandle) throws IllegalStateException {
- if (instanceExists)
+ if (!ALLOW_MULTITHREADING && INSTANCES > 0)
throw new IllegalStateException("An instance already exists");
Reference<Long> ref = new Reference<>();
int ret = gsapi_new_instance(ref, callerHandle);
@@ -89,7 +98,7 @@ public class GSInstance implements Iterable<GSInstance.GSParam<?>> {
throw new IllegalStateException("Failed to create new instance: " + ret);
this.instance = ref.getValue();
this.callerHandle = callerHandle;
- instanceExists = true;
+ INSTANCES++;
}
public GSInstance() throws IllegalStateException {
@@ -97,10 +106,11 @@ public class GSInstance implements Iterable<GSInstance.GSParam<?>> {
}
public void delete_instance() {
- if (instance != GS_NULL)
+ if (instance != GS_NULL) {
gsapi_delete_instance(instance);
- instance = GS_NULL;
- instanceExists = false;
+ instance = GS_NULL;
+ INSTANCES--;
+ }
}
public int set_stdio(IStdInFunction stdin, IStdOutFunction stdout, IStdErrFunction stderr) {
diff --git a/demos/java/gsviewer/README.txt b/demos/java/gsviewer/README.txt
index 2808fed9..1b4776fe 100644
--- a/demos/java/gsviewer/README.txt
+++ b/demos/java/gsviewer/README.txt
@@ -48,10 +48,10 @@ Building:
-= WINDOWS =-
-Ensure both gs_jni.dll and gpdldll64.dll. Then, run the build_win32.bat script.
-This will automatically build and copy gsjava.jar to this directory. To run,
-open gsviewer.jar either through File Explorer or in the command line through
-the following command:
+Ensure both gs_jni.dll and gpdldll64.dll are built. Then, run the
+build_win32.bat script. This will automatically build and copy gsjava.jar to
+this directory. To run, open gsviewer.jar either through File Explorer or in
+the command line through the following command:
java -jar gsviewer.jar
@@ -67,4 +67,4 @@ directories. gsviewer.jar will be outputted in this directory.
Ensure Ghostscript has been built.
Run the build_darwin.sh script. This will automatically build
gs_jni.dylib, gsjava.jar, and copy the files to the needed
-directories. gsviewer.jar will be outputed in this directory.
+directories. gsviewer.jar will be outputed in this directory. \ No newline at end of file
diff --git a/demos/java/gsviewer/build_darwin.sh b/demos/java/gsviewer/build_darwin.sh
index 6c9d96c7..ff9ec5b9 100644..100755
--- a/demos/java/gsviewer/build_darwin.sh
+++ b/demos/java/gsviewer/build_darwin.sh
@@ -34,4 +34,18 @@ javac -sourcepath src/ -d bin/ \
cd bin
echo "Packing gsviewer JAR file..."
-jar cfm "../gsviewer.jar" "../Manifest.md" "com/" \ No newline at end of file
+jar cfm "../gsviewer.jar" "../Manifest.md" "com/"
+
+
+echo "Copy gs_jni.dylib"
+cp "../jni/gs_jni/gs_jni.dylib" "gs_jni.dylib"
+
+echo "Create libgpdl.dylib link"
+cp "../../../sobin/libgpdl.dylib" "libgpdl.dylib"
+
+cd ../../../sobin
+
+echo "Copy libgpdl.dylib target"
+cp $(readlink "libgpdl.dylib") "../demos/java/gsviewer"
+
+cd ../demos/java/gsviewer \ No newline at end of file
diff --git a/demos/java/gsviewer/build_linux.sh b/demos/java/gsviewer/build_linux.sh
index 67b3e9cf..3cd70616 100644..100755
--- a/demos/java/gsviewer/build_linux.sh
+++ b/demos/java/gsviewer/build_linux.sh
@@ -34,4 +34,18 @@ javac -sourcepath src/ -d bin/ \
cd bin
echo "Packing gsviewer JAR file..."
-jar cfm "../gsviewer.jar" "../Manifest.md" "com/" \ No newline at end of file
+jar cfm "../gsviewer.jar" "../Manifest.md" "com/"
+
+
+echo "Copy gs_jni.so"
+cp "../jni/gs_jni/gs_jni.so" "gs_jni.so"
+
+echo "Create libgpdl.so link"
+cp "../../../sobin/libgpdl.so" "libgpdl.so"
+
+cd ../../../sobin
+
+echo "Copy libgpdl.so target"
+cp $(readlink "libgpdl.so") "../demos/java/gsviewer"
+
+cd ../demos/java/gsviewer \ No newline at end of file
diff --git a/demos/java/gsviewer/build_win32.bat b/demos/java/gsviewer/build_win32.bat
index 0e279e9f..0e279e9f 100644..100755
--- a/demos/java/gsviewer/build_win32.bat
+++ b/demos/java/gsviewer/build_win32.bat
diff --git a/demos/java/gsviewer/start_darwin.sh b/demos/java/gsviewer/start_darwin.sh
index 9e4004bd..9e4004bd 100644..100755
--- a/demos/java/gsviewer/start_darwin.sh
+++ b/demos/java/gsviewer/start_darwin.sh
diff --git a/demos/java/gsviewer/start_linux.sh b/demos/java/gsviewer/start_linux.sh
index 4ed9f514..4ed9f514 100644..100755
--- a/demos/java/gsviewer/start_linux.sh
+++ b/demos/java/gsviewer/start_linux.sh
diff --git a/demos/java/jni/gs_jni/build_darwin.sh b/demos/java/jni/gs_jni/build_darwin.sh
index 81b10c01..18e12cae 100644
--- a/demos/java/jni/gs_jni/build_darwin.sh
+++ b/demos/java/jni/gs_jni/build_darwin.sh
@@ -46,6 +46,16 @@ g++ -c -Wall -O3 -fPIC \
"jni_util.cpp" \
-o "obin/jni_util.o"
+echo "Compile instance_data.cpp"
+g++ -c -Wall -O3 -fPIC \
+ -std=c++14 \
+ -I./include \
+ -I./include/darwin \
+ -I./../../../../psi \
+ -I./../../../../devices \
+ "instance_data.cpp" \
+ -o "obin/instance_data.o"
+
echo "Link"
g++ -dynamiclib -fPIC \
-Wl \
@@ -54,4 +64,5 @@ g++ -dynamiclib -fPIC \
"obin/com_artifex_gsjava_GSAPI.o" \
"obin/com_artifex_gsjava_util_NativePointer.o" \
"obin/jni_util.o" \
+ "obin/instance_data.o" \
"../../../../sobin/libgpdl.dylib" \ No newline at end of file
diff --git a/demos/java/jni/gs_jni/build_linux.sh b/demos/java/jni/gs_jni/build_linux.sh
index 974dfba3..f66a4883 100644
--- a/demos/java/jni/gs_jni/build_linux.sh
+++ b/demos/java/jni/gs_jni/build_linux.sh
@@ -7,7 +7,7 @@ mkdir -p obin
echo "Compiling gs_jni C++ source..."
echo "Compile callbacks.cpp"
-g++ -c -Wall -O3 \
+g++ -c -Wall -O3 -fPIC \
-std=c++14 \
-I./include \
-I./include/linux \
@@ -17,7 +17,7 @@ g++ -c -Wall -O3 \
-o "obin/callbacks.o"
echo "Compile com_artifex_gsjava_GSAPI.cpp"
-g++ -c -Wall -O3 \
+g++ -c -Wall -O3 -fPIC \
-std=c++14 \
-I./include \
-I./include/linux \
@@ -27,7 +27,7 @@ g++ -c -Wall -O3 \
-o "obin/com_artifex_gsjava_GSAPI.o"
echo "Compile com_artifex_gsjava_util_NativePointer.cpp"
-g++ -c -Wall -O3 \
+g++ -c -Wall -O3 -fPIC \
-std=c++14 \
-I./include \
-I./include/linux \
@@ -37,7 +37,7 @@ g++ -c -Wall -O3 \
-o "obin/com_artifex_gsjava_util_NativePointer.o"
echo "Compile jni_util.cpp"
-g++ -c -Wall -O3\
+g++ -c -Wall -O3 -fPIC \
-std=c++14 \
-I./include \
-I./include/linux \
@@ -46,6 +46,16 @@ g++ -c -Wall -O3\
"jni_util.cpp" \
-o "obin/jni_util.o"
+echo "Compile instance_data.cpp"
+g++ -c -Wall -O3 -fPIC \
+ -std=c++14 \
+ -I./include \
+ -I./include/linux \
+ -I./../../../../psi \
+ -I./../../../../devices \
+ "instance_data.cpp" \
+ -o "obin/instance_data.o"
+
echo "Link"
g++ -shared \
-Wl,-soname,gs_jni.so \
@@ -54,4 +64,5 @@ g++ -shared \
"obin/com_artifex_gsjava_GSAPI.o" \
"obin/com_artifex_gsjava_util_NativePointer.o" \
"obin/jni_util.o" \
- "../../../../sobin/libgpdl.so" \ No newline at end of file
+ "obin/instance_data.o" \
+ "../../../../sobin/libgpdl.so"
diff --git a/demos/java/jni/gs_jni/callbacks.cpp b/demos/java/jni/gs_jni/callbacks.cpp
index 7826b328..2d0da54e 100644
--- a/demos/java/jni/gs_jni/callbacks.cpp
+++ b/demos/java/jni/gs_jni/callbacks.cpp
@@ -1,8 +1,11 @@
#include "callbacks.h"
#include "jni_util.h"
+#include "instance_data.h"
#include <string.h>
+#include <unordered_map>
+#include <assert.h>
#define STDIN_SIG "(J[BI)I"
#define STDOUT_SIG "(J[BI)I"
@@ -31,134 +34,150 @@ Lcom/artifex/gsjava/IntReference;)I"
using namespace util;
-static JNIEnv *g_env = NULL;
-
-static jobject g_stdIn = NULL;
-static jobject g_stdOut = NULL;
-static jobject g_stdErr = NULL;
-
-static jobject g_poll = NULL;
-
-static jobject g_displayCallback = NULL;
-
-static jobject g_callout = NULL;
-
-void callbacks::setJNIEnv(JNIEnv *env)
+void callbacks::setJNIEnv(GSInstanceData *idata, JNIEnv *env)
{
- g_env = env;
+ idata->env = env;
}
-void callbacks::setIOCallbacks(jobject stdIn, jobject stdOut, jobject stdErr)
+void callbacks::setIOCallbacks(GSInstanceData *idata, jobject stdIn, jobject stdOut, jobject stdErr)
{
- if (g_env)
+ if (idata->env)
{
- if (g_stdIn)
- g_env->DeleteGlobalRef(g_stdIn);
+ if (idata->stdIn)
+ idata->env->DeleteGlobalRef(idata->stdIn);
- if (g_stdOut)
- g_env->DeleteGlobalRef(g_stdOut);
+ if (idata->stdOut)
+ idata->env->DeleteGlobalRef(idata->stdOut);
- if (g_stdErr)
- g_env->DeleteGlobalRef(g_stdErr);
+ if (idata->stdErr)
+ idata->env->DeleteGlobalRef(idata->stdErr);
- g_stdIn = g_env->NewGlobalRef(stdIn);
- g_stdOut = g_env->NewGlobalRef(stdOut);
- g_stdErr = g_env->NewGlobalRef(stdErr);
+ idata->stdIn = idata->env->NewGlobalRef(stdIn);
+ idata->stdOut = idata->env->NewGlobalRef(stdOut);
+ idata->stdErr = idata->env->NewGlobalRef(stdErr);
}
}
int callbacks::stdInFunction(void *callerHandle, char *buf, int len)
{
- int code = 0;
- if (g_env && g_stdIn)
- {
- jbyteArray byteArray = g_env->NewByteArray(len);
- g_env->SetByteArrayRegion(byteArray, 0, len, (jbyte *)buf);
- code = callIntMethod(g_env, g_stdIn, "onStdIn", STDIN_SIG, (jlong)callerHandle, byteArray, (jint)len);
- }
- return code;
+ GSInstanceData *gsdata = (GSInstanceData *)callerHandle;
+ assert(gsdata);
+
+ if (!gsdata->env || !gsdata->stdErr) return 0;
+
+ jbyteArray byteArray = gsdata->env->NewByteArray(len);
+ gsdata->env->SetByteArrayRegion(byteArray, 0, len, (jbyte *)buf);
+
+ jint result = callIntMethod(gsdata->env, gsdata->stdIn, "onStdIn", STDIN_SIG, (jlong)gsdata->stdioHandle, byteArray, (jint)len);
+ if (gsdata->env->ExceptionCheck()) return 0;
+
+ jboolean isCopy = JNI_FALSE;
+ jbyte *arr = gsdata->env->GetByteArrayElements(byteArray, &isCopy);
+
+ jsize copySize = result < len ? result : len;
+ memcpy(buf, arr, copySize);
+
+ return copySize;
}
int callbacks::stdOutFunction(void *callerHandle, const char *str, int len)
{
- int code = 0;
- if (g_env && g_stdOut)
- {
- jbyteArray byteArray = g_env->NewByteArray(len);
- g_env->SetByteArrayRegion(byteArray, 0, len, (const jbyte *)str);
- code = callIntMethod(g_env, g_stdOut, "onStdOut", STDOUT_SIG, (jlong)callerHandle, byteArray, (jint)len);
- }
- return code;
+ GSInstanceData *gsdata = (GSInstanceData *)callerHandle;
+ assert(gsdata);
+
+ if (!gsdata->env || !gsdata->stdOut) return len;
+
+ jbyteArray byteArray = gsdata->env->NewByteArray(len);
+ gsdata->env->SetByteArrayRegion(byteArray, 0, len, (const jbyte *)str);
+
+ jint result = callIntMethod(gsdata->env, gsdata->stdOut, "onStdOut", STDOUT_SIG, (jlong)gsdata->stdioHandle, byteArray, (jint)len);
+ if (gsdata->env->ExceptionCheck()) return 0;
+
+ return result;
}
int callbacks::stdErrFunction(void *callerHandle, const char *str, int len)
{
- int code = 0;
- if (g_env && g_stdErr)
- {
- jbyteArray byteArray = g_env->NewByteArray(len);
- g_env->SetByteArrayRegion(byteArray, 0, len, (const jbyte *)str);
- code = callIntMethod(g_env, g_stdErr, "onStdErr", STDERR_SIG, (jlong)callerHandle, byteArray, (jint)len);
- }
- return code;
+ GSInstanceData *gsdata = (GSInstanceData *)callerHandle;
+ assert(gsdata);
+
+ if (!gsdata->env || !gsdata->stdErr) return len;
+
+ jbyteArray byteArray = gsdata->env->NewByteArray(len);
+ gsdata->env->SetByteArrayRegion(byteArray, 0, len, (const jbyte *)str);
+
+ jint result = callIntMethod(gsdata->env, gsdata->stdErr, "onStdErr", STDERR_SIG, (jlong)gsdata->stdioHandle, byteArray, (jint)len);
+ if (gsdata->env->ExceptionCheck()) return 0;
+
+ return result;
}
-void callbacks::setPollCallback(jobject poll)
+void callbacks::setPollCallback(GSInstanceData *idata, jobject poll)
{
- if (g_env)
+ if (idata->env)
{
- if (g_poll)
- g_env->DeleteGlobalRef(g_poll);
+ if (idata->poll)
+ idata->env->DeleteGlobalRef(idata->poll);
- g_poll = g_env->NewGlobalRef(poll);
+ idata->poll = idata->env->NewGlobalRef(poll);
}
}
int callbacks::pollFunction(void *callerHandle)
{
int code = 0;
- if (g_env && g_poll)
+
+ GSInstanceData *gsdata = (GSInstanceData *)callerHandle;
+ assert(gsdata);
+
+ if (gsdata->env && gsdata->poll)
{
- code = callIntMethod(g_env, g_poll, "onPoll", POLL_SIG, (jlong)callerHandle);
+ code = callIntMethod(gsdata->env, gsdata->poll, "onPoll", POLL_SIG, (jlong)gsdata->callerHandle);
}
return code;
}
-void callbacks::setDisplayCallback(jobject displayCallback)
+void callbacks::setDisplayCallback(GSInstanceData *idata, jobject displayCallback)
{
- if (g_env)
+ if (idata->env)
{
- if (g_displayCallback)
+ if (idata->displayCallback)
{
- g_env->DeleteGlobalRef(g_displayCallback);
- g_displayCallback = NULL;
+ idata->env->DeleteGlobalRef(idata->displayCallback);
+ idata->displayCallback = NULL;
}
- g_displayCallback = g_env->NewGlobalRef(displayCallback);
+ idata->displayCallback = idata->env->NewGlobalRef(displayCallback);
//g_displayCallback = displayCallback;
}
}
-void callbacks::setCalloutCallback(jobject callout)
+void callbacks::setCalloutCallback(GSInstanceData *idata, jobject callout)
{
- if (g_env)
+ if (idata->env)
{
- if (g_callout)
- g_env->DeleteGlobalRef(g_callout);
+ if (idata->callout)
+ idata->env->DeleteGlobalRef(idata->callout);
- g_callout = g_env->NewGlobalRef(callout);
+ idata->callout = idata->env->NewGlobalRef(callout);
}
}
int callbacks::calloutFunction(void *instance, void *handle, const char *deviceName, int id, int size, void *data)
{
int code = 0;
- if (g_env && g_callout)
+
+ GSInstanceData *gsdata = findDataFromInstance(instance);
+ assert(gsdata);
+
+ if (gsdata->env && gsdata->callout)
{
- jsize len = strlen(deviceName);
- jbyteArray array = g_env->NewByteArray(len);
- g_env->SetByteArrayRegion(array, 0, len, (const jbyte *)deviceName);
- code = callIntMethod(g_env, g_callout, "onCallout", "(JJ[BIIJ)I", (jlong)instance, (jlong)handle, array, id, size, (jlong)data);
+ jsize len = (jsize)strlen(deviceName);
+ jbyteArray array = gsdata->env->NewByteArray(len);
+ gsdata->env->SetByteArrayRegion(array, 0, len, (const jbyte *)deviceName);
+
+ // TODO: gsdata->callerHandle is not consistent with the specification for a callout
+ code = callIntMethod(gsdata->env, gsdata->callout, "onCallout", "(JJ[BIIJ)I", (jlong)instance, (jlong)gsdata->callerHandle, array, id, size, (jlong)data);
}
return code;
}
@@ -166,13 +185,17 @@ int callbacks::calloutFunction(void *instance, void *handle, const char *deviceN
int callbacks::display::displayOpenFunction(void *handle, void *device)
{
int code = 0;
- if (g_env && g_displayCallback)
+
+ GSInstanceData *gsdata = (GSInstanceData *)handle;
+ assert(gsdata);
+
+ if (gsdata->env && gsdata->displayCallback)
{
- jclass clazz = g_env->GetObjectClass(g_displayCallback);
- const char *name = getClassName(g_env, clazz);
+ jclass clazz = gsdata->env->GetObjectClass(gsdata->displayCallback);
+ const char *name = getClassName(gsdata->env, clazz);
freeClassName(name);
- code = callIntMethod(g_env, g_displayCallback, "onDisplayOpen", DISPLAY_OPEN_SIG, (jlong)handle, (jlong)device);
- CHECK_AND_RETURN(g_env);
+ code = callIntMethod(gsdata->env, gsdata->displayCallback, "onDisplayOpen", DISPLAY_OPEN_SIG, (jlong)gsdata->displayHandle, (jlong)device);
+ CHECK_AND_RETURN(gsdata->env);
}
return code;
}
@@ -180,10 +203,14 @@ int callbacks::display::displayOpenFunction(void *handle, void *device)
int callbacks::display::displayPrecloseFunction(void *handle, void *device)
{
int code = 0;
- if (g_env && g_displayCallback)
+
+ GSInstanceData *gsdata = (GSInstanceData *)handle;
+ assert(gsdata);
+
+ if (gsdata->env && gsdata->displayCallback)
{
- code = callIntMethod(g_env, g_displayCallback, "onDisplayPreclose", DISPLAY_PRECLOSE_SIG, (jlong)handle, (jlong)device);
- CHECK_AND_RETURN(g_env);
+ code = callIntMethod(gsdata->env, gsdata->displayCallback, "onDisplayPreclose", DISPLAY_PRECLOSE_SIG, (jlong)gsdata->displayHandle, (jlong)device);
+ CHECK_AND_RETURN(gsdata->env);
}
return code;
}
@@ -191,10 +218,14 @@ int callbacks::display::displayPrecloseFunction(void *handle, void *device)
int callbacks::display::displayCloseFunction(void *handle, void *device)
{
int code = 0;
- if (g_env && g_displayCallback)
+
+ GSInstanceData *gsdata = (GSInstanceData *)handle;
+ assert(gsdata);
+
+ if (gsdata->env && gsdata->displayCallback)
{
- code = callIntMethod(g_env, g_displayCallback, "onDisplayClose", DISPLAY_CLOSE_SIG, (jlong)handle, (jlong)device);
- CHECK_AND_RETURN(g_env);
+ code = callIntMethod(gsdata->env, gsdata->displayCallback, "onDisplayClose", DISPLAY_CLOSE_SIG, (jlong)gsdata->displayHandle, (jlong)device);
+ CHECK_AND_RETURN(gsdata->env);
}
return code;
}
@@ -202,11 +233,15 @@ int callbacks::display::displayCloseFunction(void *handle, void *device)
int callbacks::display::displayPresizeFunction(void *handle, void *device, int width, int height, int raster, unsigned int format)
{
int code = 0;
- if (g_env && g_displayCallback)
+
+ GSInstanceData *gsdata = (GSInstanceData *)handle;
+ assert(gsdata);
+
+ if (gsdata->env && gsdata->displayCallback)
{
- code = callIntMethod(g_env, g_displayCallback, "onDisplayPresize", DISPLAY_PRESIZE_SIG, (jlong)handle,
+ code = callIntMethod(gsdata->env, gsdata->displayCallback, "onDisplayPresize", DISPLAY_PRESIZE_SIG, (jlong)gsdata->displayHandle,
(jlong)device, width, height, raster, (jint)format);
- CHECK_AND_RETURN(g_env);
+ CHECK_AND_RETURN(gsdata->env);
}
return code;
}
@@ -215,57 +250,61 @@ int callbacks::display::displaySizeFunction(void *handle, void *device, int widt
unsigned int format, unsigned char *pimage)
{
int code = 0;
- if (g_env && g_displayCallback)
+
+ GSInstanceData *gsdata = (GSInstanceData *)handle;
+ assert(gsdata);
+
+ if (gsdata->env && gsdata->displayCallback)
{
jsize len = height * raster;
- jbyteArray byteArray = g_env->NewByteArray(len);
- g_env->SetByteArrayRegion(byteArray, 0, len, (signed char *)pimage);
+ jbyteArray byteArray = gsdata->env->NewByteArray(len);
+ gsdata->env->SetByteArrayRegion(byteArray, 0, len, (signed char *)pimage);
static const char *const bytePointerClassName = "com/artifex/gsjava/util/BytePointer";
static const char *const nativePointerClassName = "com/artifex/gsjava/util/NativePointer";
- jclass bytePointerClass = g_env->FindClass(bytePointerClassName);
+ jclass bytePointerClass = gsdata->env->FindClass(bytePointerClassName);
if (bytePointerClass == NULL)
{
- throwNoClassDefError(g_env, bytePointerClassName);
+ throwNoClassDefError(gsdata->env, bytePointerClassName);
return -21;
}
- jclass nativePointerClass = g_env->FindClass(nativePointerClassName);
+ jclass nativePointerClass = gsdata->env->FindClass(nativePointerClassName);
if (nativePointerClass == NULL)
{
- throwNoClassDefError(g_env, nativePointerClassName);
+ throwNoClassDefError(gsdata->env, nativePointerClassName);
return -21;
}
- jmethodID constructor = g_env->GetMethodID(bytePointerClass, "<init>", "()V");
+ jmethodID constructor = gsdata->env->GetMethodID(bytePointerClass, "<init>", "()V");
if (constructor == NULL)
{
- throwNoSuchMethodError(g_env, "com.artifex.gsjava.util.BytePointer.<init>()V");
+ throwNoSuchMethodError(gsdata->env, "com.artifex.gsjava.util.BytePointer.<init>()V");
return -21;
}
- jobject bytePointer = g_env->NewObject(bytePointerClass, constructor);
+ jobject bytePointer = gsdata->env->NewObject(bytePointerClass, constructor);
- jfieldID dataPtrID = g_env->GetFieldID(nativePointerClass, "address", "J");
+ jfieldID dataPtrID = gsdata->env->GetFieldID(nativePointerClass, "address", "J");
if (dataPtrID == NULL)
{
- throwNoSuchFieldError(g_env, "address");
+ throwNoSuchFieldError(gsdata->env, "address");
return -21;
}
- jfieldID lengthID = g_env->GetFieldID(bytePointerClass, "length", "J");
+ jfieldID lengthID = gsdata->env->GetFieldID(bytePointerClass, "length", "J");
if (lengthID == NULL)
{
- throwNoSuchFieldError(g_env, "length");
+ throwNoSuchFieldError(gsdata->env, "length");
return -21;
}
- g_env->SetLongField(bytePointer, dataPtrID, (jlong)pimage);
- g_env->SetLongField(bytePointer, lengthID, len);
+ gsdata->env->SetLongField(bytePointer, dataPtrID, (jlong)pimage);
+ gsdata->env->SetLongField(bytePointer, lengthID, len);
- code = callIntMethod(g_env, g_displayCallback, "onDisplaySize", DISPLAY_SIZE_SIG, (jlong)handle,
+ code = callIntMethod(gsdata->env, gsdata->displayCallback, "onDisplaySize", DISPLAY_SIZE_SIG, (jlong)gsdata->displayHandle,
(jlong)device, width, height, raster, (jint)format, bytePointer);
- CHECK_AND_RETURN(g_env);
+ CHECK_AND_RETURN(gsdata->env);
}
return code;
}
@@ -273,10 +312,14 @@ int callbacks::display::displaySizeFunction(void *handle, void *device, int widt
int callbacks::display::displaySyncFunction(void *handle, void *device)
{
int code = 0;
- if (g_env && g_displayCallback)
+
+ GSInstanceData *gsdata = (GSInstanceData *)handle;
+ assert(gsdata);
+
+ if (gsdata->env && gsdata->displayCallback)
{
- code = callIntMethod(g_env, g_displayCallback, "onDisplaySync", DISPLAY_SYNC_SIG, (jlong)handle, (jlong)device);
- CHECK_AND_RETURN(g_env);
+ code = callIntMethod(gsdata->env, gsdata->displayCallback, "onDisplaySync", DISPLAY_SYNC_SIG, (jlong)gsdata->displayHandle, (jlong)device);
+ CHECK_AND_RETURN(gsdata->env);
}
return code;
}
@@ -284,11 +327,15 @@ int callbacks::display::displaySyncFunction(void *handle, void *device)
int callbacks::display::displayPageFunction(void *handle, void *device, int copies, int flush)
{
int code = 0;
- if (g_env && g_displayCallback)
+
+ GSInstanceData *gsdata = (GSInstanceData *)handle;
+ assert(gsdata);
+
+ if (gsdata->env && gsdata->displayCallback)
{
- code = callIntMethod(g_env, g_displayCallback, "onDisplayPage", DISPLAY_PAGE_SIG, (jlong)handle,
+ code = callIntMethod(gsdata->env, gsdata->displayCallback, "onDisplayPage", DISPLAY_PAGE_SIG, (jlong)gsdata->displayHandle,
(jlong)device, copies, flush);
- CHECK_AND_RETURN(g_env);
+ CHECK_AND_RETURN(gsdata->env);
}
return code;
}
@@ -296,11 +343,15 @@ int callbacks::display::displayPageFunction(void *handle, void *device, int copi
int callbacks::display::displayUpdateFunction(void *handle, void *device, int x, int y, int w, int h)
{
int code = 0;
- if (g_env && g_displayCallback)
+
+ GSInstanceData *gsdata = (GSInstanceData *)handle;
+ assert(gsdata);
+
+ if (gsdata->env && gsdata->displayCallback)
{
- code = callIntMethod(g_env, g_displayCallback, "onDisplayUpdate", DISPLAY_UPDATE_SIG, (jlong)handle,
+ code = callIntMethod(gsdata->env, gsdata->displayCallback, "onDisplayUpdate", DISPLAY_UPDATE_SIG, (jlong)gsdata->displayHandle,
(jlong)device, x, y, w, h);
- CHECK_AND_RETURN(g_env);
+ CHECK_AND_RETURN(gsdata->env);
}
return code;
}
@@ -309,14 +360,18 @@ int callbacks::display::displaySeparationFunction(void *handle, void *device, in
unsigned short c, unsigned short m, unsigned short y, unsigned short k)
{
int code = 0;
- if (g_env && g_displayCallback)
+
+ GSInstanceData *gsdata = (GSInstanceData *)handle;
+ assert(gsdata);
+
+ if (gsdata->env && gsdata->displayCallback)
{
- jsize len = strlen(componentName);
- jbyteArray byteArray = g_env->NewByteArray(len);
- g_env->SetByteArrayRegion(byteArray, 0, len, (const jbyte *)componentName);
- code = callIntMethod(g_env, g_displayCallback, "onDisplaySeparation", DISPLAY_SEPARATION_SIG, (jlong)handle,
+ jsize len = (jsize)strlen(componentName);
+ jbyteArray byteArray = gsdata->env->NewByteArray(len);
+ gsdata->env->SetByteArrayRegion(byteArray, 0, len, (const jbyte *)componentName);
+ code = callIntMethod(gsdata->env, gsdata->displayCallback, "onDisplaySeparation", DISPLAY_SEPARATION_SIG, (jlong)gsdata->displayHandle,
(jlong)device, component, byteArray, c, m, y, k);
- CHECK_AND_RETURN(g_env);
+ CHECK_AND_RETURN(gsdata->env);
}
return code;
}
@@ -324,11 +379,15 @@ int callbacks::display::displaySeparationFunction(void *handle, void *device, in
int callbacks::display::displayAdjustBandHeightFunction(void *handle, void *device, int bandHeight)
{
int code = 0;
- if (g_env && g_displayCallback)
+
+ GSInstanceData *gsdata = (GSInstanceData *)handle;
+ assert(gsdata);
+
+ if (gsdata->env && gsdata->displayCallback)
{
- code = callIntMethod(g_env, g_displayCallback, "onDisplayAdjustBandHeght", DISPLAY_ADJUST_BAND_HEIGHT_SIG,
- (jlong)handle, (jlong)device, bandHeight);
- CHECK_AND_RETURN(g_env);
+ code = callIntMethod(gsdata->env, gsdata->displayCallback, "onDisplayAdjustBandHeght", DISPLAY_ADJUST_BAND_HEIGHT_SIG,
+ (jlong)gsdata->displayHandle, (jlong)device, bandHeight);
+ CHECK_AND_RETURN(gsdata->env);
}
return code;
}
@@ -337,20 +396,24 @@ int callbacks::display::displayRectangleRequestFunction(void *handle, void *devi
int *raster, int *plane_raster, int *x, int *y, int *w, int *h)
{
int code = 0;
- if (g_env && g_displayCallback)
+
+ GSInstanceData *gsdata = (GSInstanceData *)handle;
+ assert(gsdata);
+
+ if (gsdata->env && gsdata->displayCallback)
{
- Reference memoryRef = Reference(g_env, toWrapperType(g_env, (jlong)*memory));
- Reference oxRef = Reference(g_env, toWrapperType(g_env, (jint)*ox));
- Reference oyRef = Reference(g_env, toWrapperType(g_env, (jint)*oy));
- Reference rasterRef = Reference(g_env, toWrapperType(g_env, (jint)*raster));
- Reference planeRasterRef = Reference(g_env, toWrapperType(g_env, (jint)*plane_raster));
- Reference xRef = Reference(g_env, toWrapperType(g_env, (jint)*x));
- Reference yRef = Reference(g_env, toWrapperType(g_env, (jint)*y));
- Reference wRef = Reference(g_env, toWrapperType(g_env, (jint)*w));
- Reference hRef = Reference(g_env, toWrapperType(g_env, (jint)*h));
-
- code = callIntMethod(g_env, g_displayCallback, "onDisplayRectangleRequest", DISPLAY_RECTANGLE_REQUEST,
- (jlong)handle,
+ Reference memoryRef = Reference(gsdata->env, toWrapperType(gsdata->env, (jlong)*memory));
+ Reference oxRef = Reference(gsdata->env, toWrapperType(gsdata->env, (jint)*ox));
+ Reference oyRef = Reference(gsdata->env, toWrapperType(gsdata->env, (jint)*oy));
+ Reference rasterRef = Reference(gsdata->env, toWrapperType(gsdata->env, (jint)*raster));
+ Reference planeRasterRef = Reference(gsdata->env, toWrapperType(gsdata->env, (jint)*plane_raster));
+ Reference xRef = Reference(gsdata->env, toWrapperType(gsdata->env, (jint)*x));
+ Reference yRef = Reference(gsdata->env, toWrapperType(gsdata->env, (jint)*y));
+ Reference wRef = Reference(gsdata->env, toWrapperType(gsdata->env, (jint)*w));
+ Reference hRef = Reference(gsdata->env, toWrapperType(gsdata->env, (jint)*h));
+
+ code = callIntMethod(gsdata->env, gsdata->displayCallback, "onDisplayRectangleRequest", DISPLAY_RECTANGLE_REQUEST,
+ (jlong)gsdata->displayHandle,
(jlong)device,
memoryRef.object(),
oxRef.object(),
@@ -373,7 +436,7 @@ int callbacks::display::displayRectangleRequestFunction(void *handle, void *devi
*w = wRef.intValue();
*h = hRef.intValue();
- CHECK_AND_RETURN(g_env);
+ CHECK_AND_RETURN(gsdata->env);
}
return code;
}
diff --git a/demos/java/jni/gs_jni/callbacks.h b/demos/java/jni/gs_jni/callbacks.h
index 55508f2b..e8a23f93 100644
--- a/demos/java/jni/gs_jni/callbacks.h
+++ b/demos/java/jni/gs_jni/callbacks.h
@@ -2,6 +2,8 @@
#include <jni.h>
+#include "instance_data.h"
+
namespace callbacks
{
/*!
@@ -10,17 +12,17 @@ namespace callbacks
@param env A JNIEnv.
*/
- void setJNIEnv(JNIEnv *env);
+ void setJNIEnv(GSInstanceData *idata, JNIEnv *env);
- void setIOCallbacks(jobject stdIn, jobject stdOut, jobject stdErr);
+ void setIOCallbacks(GSInstanceData *idata, jobject stdIn, jobject stdOut, jobject stdErr);
int stdInFunction(void *callerHandle, char *buf, int len);
int stdOutFunction(void *callerHandle, const char *str, int len);
int stdErrFunction(void *callerHandle, const char *str, int len);
- void setPollCallback(jobject poll);
+ void setPollCallback(GSInstanceData *idata, jobject poll);
int pollFunction(void *callerHandle);
- void setDisplayCallback(jobject displayCallback);
+ void setDisplayCallback(GSInstanceData *idata, jobject displayCallback);
namespace display
{
@@ -49,6 +51,6 @@ namespace callbacks
int *x, int *y, int *w, int *h);
}
- void setCalloutCallback(jobject calout);
+ void setCalloutCallback(GSInstanceData *idata, jobject callout);
int calloutFunction(void *instance, void *handle, const char *deviceName, int id, int size, void *data);
} \ No newline at end of file
diff --git a/demos/java/jni/gs_jni/com_artifex_gsjava_GSAPI.cpp b/demos/java/jni/gs_jni/com_artifex_gsjava_GSAPI.cpp
index b28334e9..500f540a 100644
--- a/demos/java/jni/gs_jni/com_artifex_gsjava_GSAPI.cpp
+++ b/demos/java/jni/gs_jni/com_artifex_gsjava_GSAPI.cpp
@@ -4,14 +4,19 @@
#include <gdevdsp.h>
#include <string.h>
#include <memory>
+#include <assert.h>
+#include <string>
#include "jni_util.h"
#include "callbacks.h"
+#include "instance_data.h"
using namespace util;
static void *getAsPointer(JNIEnv *env, jobject object, gs_set_param_type type, bool *success);
+static void storeDispalyHandle(GSInstanceData *idata);
+
JNIEXPORT jint JNICALL Java_com_artifex_gsjava_GSAPI_gsapi_1revision
(JNIEnv *env, jclass, jobject revision, jint len)
{
@@ -35,54 +40,82 @@ JNIEXPORT jint JNICALL Java_com_artifex_gsjava_GSAPI_gsapi_1new_1instance
if (instance == NULL)
return throwNullPointerException(env, "LongReference object is NULL");
- void *gsInstance;
- int code = gsapi_new_instance(&gsInstance, (void *)callerHandle);
+ GSInstanceData *idata = new GSInstanceData();
+ idata->callerHandle = (void *)callerHandle;
+
+ void *gsInstance = NULL;
+ int code = gsapi_new_instance(&gsInstance, idata);
if (code == 0)
Reference::setValueField(env, instance, toWrapperType(env, (jlong)gsInstance));
+
+ idata->instance = gsInstance;
+
+ putInstanceData(idata);
+
return code;
}
JNIEXPORT void JNICALL Java_com_artifex_gsjava_GSAPI_gsapi_1delete_1instance
(JNIEnv *env, jclass, jlong instance)
{
- callbacks::setJNIEnv(env);
+ GSInstanceData *idata = findDataFromInstance((void *)instance);
+ assert(idata);
+
+ callbacks::setJNIEnv(idata, env);
gsapi_delete_instance((void *)instance);
+
+ deleteDataFromInstance((void *)instance);
}
JNIEXPORT jint JNICALL Java_com_artifex_gsjava_GSAPI_gsapi_1set_1stdio_1with_1handle
(JNIEnv *env, jclass, jlong instance, jobject stdIn, jobject stdOut, jobject stdErr, jlong callerHandle)
{
+ GSInstanceData *idata = findDataFromInstance((void *)instance);
+ assert(idata);
+
+ idata->stdioHandle = (void *)callerHandle;
+
int code = gsapi_set_stdio_with_handle((void *)instance, callbacks::stdInFunction,
- callbacks::stdOutFunction, callbacks::stdErrFunction, (void *)callerHandle);
+ callbacks::stdOutFunction, callbacks::stdErrFunction, idata);
if (code == 0)
{
- callbacks::setJNIEnv(env);
- callbacks::setIOCallbacks(stdIn, stdOut, stdErr);
+ callbacks::setJNIEnv(idata, env);
+ callbacks::setIOCallbacks(idata, stdIn, stdOut, stdErr);
}
+
return code;
}
JNIEXPORT jint JNICALL Java_com_artifex_gsjava_GSAPI_gsapi_1set_1stdio
(JNIEnv *env, jclass, jlong instance, jobject stdIn, jobject stdOut, jobject stdErr)
{
- int code = gsapi_set_stdio((void *)instance, callbacks::stdInFunction,
- callbacks::stdOutFunction, callbacks::stdErrFunction);
+ GSInstanceData *idata = findDataFromInstance((void *)instance);
+ assert(idata);
+
+ idata->stdioHandle = NULL;
+
+ int code = gsapi_set_stdio_with_handle((void *)instance, callbacks::stdInFunction,
+ callbacks::stdOutFunction, callbacks::stdErrFunction, idata);
if (code == 0)
{
- callbacks::setJNIEnv(env);
- callbacks::setIOCallbacks(stdIn, stdOut, stdErr);
+ callbacks::setJNIEnv(idata, env);
+ callbacks::setIOCallbacks(idata, stdIn, stdOut, stdErr);
}
+
return code;
}
JNIEXPORT jint JNICALL Java_com_artifex_gsjava_GSAPI_gsapi_1set_1poll_1with_1handle
(JNIEnv *env, jclass, jlong instance, jobject poll, jlong callerHandle)
{
+ GSInstanceData *idata = findDataFromInstance((void *)instance);
+ assert(idata);
+
int code = gsapi_set_poll_with_handle((void *)instance, callbacks::pollFunction, (void *)callerHandle);
if (code == 0)
{
- callbacks::setJNIEnv(env);
- callbacks::setPollCallback(poll);
+ callbacks::setJNIEnv(idata, env);
+ callbacks::setPollCallback(idata, poll);
}
return code;
}
@@ -90,11 +123,14 @@ JNIEXPORT jint JNICALL Java_com_artifex_gsjava_GSAPI_gsapi_1set_1poll_1with_1han
JNIEXPORT jint JNICALL Java_com_artifex_gsjava_GSAPI_gsapi_1set_1poll
(JNIEnv *env, jclass, jlong instance, jobject poll)
{
+ GSInstanceData *idata = findDataFromInstance((void *)instance);
+ assert(idata);
+
int code = gsapi_set_poll((void *)instance, callbacks::pollFunction);
if (code == 0)
{
- callbacks::setJNIEnv(env);
- callbacks::setPollCallback(poll);
+ callbacks::setJNIEnv(idata, env);
+ callbacks::setPollCallback(idata, poll);
}
return code;
}
@@ -102,6 +138,12 @@ JNIEXPORT jint JNICALL Java_com_artifex_gsjava_GSAPI_gsapi_1set_1poll
JNIEXPORT jint JNICALL Java_com_artifex_gsjava_GSAPI_gsapi_1set_1display_1callback
(JNIEnv *env, jclass, jlong instance, jobject displayCallback)
{
+ GSInstanceData *idata = findDataFromInstance((void *)instance);
+ assert(idata);
+
+ if (idata->hasinit && idata->displayCallback)
+ storeDispalyHandle(idata);
+
display_callback *cb = new display_callback;
cb->size = sizeof(display_callback);
cb->version_major = DISPLAY_VERSION_MAJOR;
@@ -124,8 +166,8 @@ JNIEXPORT jint JNICALL Java_com_artifex_gsjava_GSAPI_gsapi_1set_1display_1callba
int code = gsapi_set_display_callback((void *)instance, cb);
if (code == 0)
{
- callbacks::setJNIEnv(env);
- callbacks::setDisplayCallback(displayCallback);
+ callbacks::setJNIEnv(idata, env);
+ callbacks::setDisplayCallback(idata, displayCallback);
}
return code;
}
@@ -133,11 +175,14 @@ JNIEXPORT jint JNICALL Java_com_artifex_gsjava_GSAPI_gsapi_1set_1display_1callba
JNIEXPORT jint JNICALL Java_com_artifex_gsjava_GSAPI_gsapi_1register_1callout
(JNIEnv *env, jclass, jlong instance, jobject callout, jlong calloutHandle)
{
+ GSInstanceData *idata = findDataFromInstance((void *)instance);
+ assert(idata);
+
int code = gsapi_register_callout((void *)instance, callbacks::calloutFunction, (void *)calloutHandle);
if (code == 0)
{
- callbacks::setJNIEnv(env);
- callbacks::setCalloutCallback(callout);
+ callbacks::setJNIEnv(idata, env);
+ callbacks::setCalloutCallback(idata, callout);
}
return code;
}
@@ -157,10 +202,14 @@ JNIEXPORT jint JNICALL Java_com_artifex_gsjava_GSAPI_gsapi_1set_1arg_1encoding
JNIEXPORT jint JNICALL Java_com_artifex_gsjava_GSAPI_gsapi_1set_1default_1device_1list
(JNIEnv *env, jclass, jlong instance, jbyteArray list, jint listlen)
{
+ GSInstanceData *idata = findDataFromInstance((void *)instance);
+ assert(idata);
+
if (list == NULL)
return throwNullPointerException(env, "list");
+
jboolean isCopy = false;
- callbacks::setJNIEnv(env);
+ callbacks::setJNIEnv(idata, env);
int code = gsapi_set_default_device_list((void *)instance,
(const char *)env->GetByteArrayElements(list, &isCopy), listlen);
return code;
@@ -190,20 +239,34 @@ JNIEXPORT jint JNICALL Java_com_artifex_gsjava_GSAPI_gsapi_1get_1default_1device
JNIEXPORT jint JNICALL Java_com_artifex_gsjava_GSAPI_gsapi_1init_1with_1args
(JNIEnv *env, jclass, jlong instance, jint argc, jobjectArray argv)
{
+ GSInstanceData *idata = findDataFromInstance((void *)instance);
+ assert(idata);
+
if (argv == NULL)
return throwNullPointerException(env, "argv");
+
char **cargv = jbyteArray2DToCharArray(env, argv);
- callbacks::setJNIEnv(env);
+
+ callbacks::setJNIEnv(idata, env);
int code = gsapi_init_with_args((void *)instance, argc, cargv);
delete2DByteArray(argc, cargv);
+
+ if (code == 0)
+ {
+ idata->hasinit = true;
+ storeDispalyHandle(idata);
+ }
return code;
}
JNIEXPORT jint JNICALL Java_com_artifex_gsjava_GSAPI_gsapi_1run_1string_1begin
(JNIEnv *env, jclass, jlong instance, jint userErrors, jobject pExitCode)
{
+ GSInstanceData *idata = findDataFromInstance((void *)instance);
+ assert(idata);
+
int exitCode;
- callbacks::setJNIEnv(env);
+ callbacks::setJNIEnv(idata, env);
int code = gsapi_run_string_begin((void *)instance, userErrors, &exitCode);
if (pExitCode)
Reference::setValueField(env, pExitCode, toWrapperType(env, (jint)exitCode));
@@ -213,12 +276,16 @@ JNIEXPORT jint JNICALL Java_com_artifex_gsjava_GSAPI_gsapi_1run_1string_1begin
JNIEXPORT jint JNICALL Java_com_artifex_gsjava_GSAPI_gsapi_1run_1string_1continue
(JNIEnv *env, jclass, jlong instance, jbyteArray str, jint length, jint userErrors, jobject pExitCode)
{
+ GSInstanceData *idata = findDataFromInstance((void *)instance);
+ assert(idata);
+
if (str == NULL)
return throwNullPointerException(env, "str");
+
jboolean copy = false;
int exitCode;
const char *cstring = (const char *)env->GetByteArrayElements(str, &copy);
- callbacks::setJNIEnv(env);
+ callbacks::setJNIEnv(idata, env);
int code = gsapi_run_string_continue((void *)instance, cstring, length, userErrors, &exitCode);
if (pExitCode)
Reference::setValueField(env, pExitCode, toWrapperType(env, (jint)exitCode));
@@ -228,8 +295,11 @@ JNIEXPORT jint JNICALL Java_com_artifex_gsjava_GSAPI_gsapi_1run_1string_1continu
JNIEXPORT jint JNICALL Java_com_artifex_gsjava_GSAPI_gsapi_1run_1string_1end
(JNIEnv *env, jclass, jlong instance, jint userErrors, jobject pExitCode)
{
+ GSInstanceData *idata = findDataFromInstance((void *)instance);
+ assert(idata);
+
int exitCode;
- callbacks::setJNIEnv(env);
+ callbacks::setJNIEnv(idata, env);
int code = gsapi_run_string_end((void *)instance, userErrors, &exitCode);
if (pExitCode)
Reference::setValueField(env, pExitCode, toWrapperType(env, (jint)exitCode));
@@ -239,12 +309,16 @@ JNIEXPORT jint JNICALL Java_com_artifex_gsjava_GSAPI_gsapi_1run_1string_1end
JNIEXPORT jint JNICALL Java_com_artifex_gsjava_GSAPI_gsapi_1run_1string_1with_1length
(JNIEnv *env, jclass, jlong instance, jbyteArray str, jint length, jint userErrors, jobject pExitCode)
{
+ GSInstanceData *idata = findDataFromInstance((void *)instance);
+ assert(idata);
+
if (str == NULL)
return throwNullPointerException(env, "str");
+
jboolean copy = false;
int exitCode;
const char *cstring = (const char *)env->GetByteArrayElements(str, &copy);
- callbacks::setJNIEnv(env);
+ callbacks::setJNIEnv(idata, env);
int code = gsapi_run_string_with_length((void *)instance, cstring, length, userErrors, &exitCode);
if (pExitCode)
Reference::setValueField(env, pExitCode, toWrapperType(env, (jint)exitCode));
@@ -254,12 +328,16 @@ JNIEXPORT jint JNICALL Java_com_artifex_gsjava_GSAPI_gsapi_1run_1string_1with_1l
JNIEXPORT jint JNICALL Java_com_artifex_gsjava_GSAPI_gsapi_1run_1string
(JNIEnv *env, jclass, jlong instance, jbyteArray str, jint userErrors, jobject pExitCode)
{
+ GSInstanceData *idata = findDataFromInstance((void *)instance);
+ assert(idata);
+
if (str == NULL)
return throwNullPointerException(env, "str");
+
jboolean copy = false;
int exitCode;
const char *cstring = (const char *)env->GetByteArrayElements(str, &copy);
- callbacks::setJNIEnv(env);
+ callbacks::setJNIEnv(idata, env);
int code = gsapi_run_string((void *)instance, cstring, userErrors, &exitCode);
if (pExitCode)
Reference::setValueField(env, pExitCode, toWrapperType(env, (jint)exitCode));
@@ -269,12 +347,16 @@ JNIEXPORT jint JNICALL Java_com_artifex_gsjava_GSAPI_gsapi_1run_1string
JNIEXPORT jint JNICALL Java_com_artifex_gsjava_GSAPI_gsapi_1run_1file
(JNIEnv *env, jclass, jlong instance, jbyteArray fileName, jint userErrors, jobject pExitCode)
{
+ GSInstanceData *idata = findDataFromInstance((void *)instance);
+ assert(idata);
+
if (fileName == NULL)
return throwNullPointerException(env, "fileName");
+
jboolean copy = false;
int exitCode;
const char *cstring = (const char *)env->GetByteArrayElements(fileName, &copy);
- callbacks::setJNIEnv(env);
+ callbacks::setJNIEnv(idata, env);
int code = gsapi_run_file((void *)instance, cstring, userErrors, &exitCode);
if (pExitCode)
Reference::setValueField(env, pExitCode, toWrapperType(env, (jint)exitCode));
@@ -290,11 +372,11 @@ JNIEXPORT jint JNICALL Java_com_artifex_gsjava_GSAPI_gsapi_1exit
JNIEXPORT jint JNICALL Java_com_artifex_gsjava_GSAPI_gsapi_1set_1param
(JNIEnv *env, jclass, jlong instance, jbyteArray param, jobject value, jint paramType)
{
+ GSInstanceData *idata = findDataFromInstance((void *)instance);
+ assert(idata);
+
if (!param)
- {
- throwNullPointerException(env, "param");
- return -1;
- }
+ return throwNullPointerException(env, "param");
gs_set_param_type type = (gs_set_param_type)paramType;
bool paramSuccess;
@@ -308,7 +390,7 @@ JNIEXPORT jint JNICALL Java_com_artifex_gsjava_GSAPI_gsapi_1set_1param
jboolean copy = false;
const char *cstring = (const char *)env->GetByteArrayElements(param, &copy);
- callbacks::setJNIEnv(env);
+ callbacks::setJNIEnv(idata, env);
int code = gsapi_set_param((void *)instance, cstring, data, type);
free(data);
@@ -355,7 +437,7 @@ JNIEXPORT jint JNICALL Java_com_artifex_gsjava_GSAPI_gsapi_1get_1param_1once
jbyteArray arr = NULL;
const char *str = NULL;
- int len = 0;
+ jsize len = 0;
switch (stripped)
{
case gs_spt_null:
@@ -382,7 +464,7 @@ JNIEXPORT jint JNICALL Java_com_artifex_gsjava_GSAPI_gsapi_1get_1param_1once
case gs_spt_string:
case gs_spt_parsed:
str = (const char *)data;
- len = strlen(str) + 1;
+ len = (jsize)strlen(str) + 1;
arr = env->NewByteArray(len);
env->SetByteArrayRegion(arr, 0, len, (const jbyte *)str);
ref.set(arr);
@@ -426,7 +508,7 @@ JNIEXPORT jint JNICALL Java_com_artifex_gsjava_GSAPI_gsapi_1enumerate_1params
{
iterRef.set((jlong)citer);
- jsize len = strlen(ckey) + 1;
+ jsize len = (jsize)strlen(ckey) + 1;
jbyteArray arr = env->NewByteArray(len);
env->SetByteArrayRegion(arr, 0, len, (const jbyte *)ckey);
keyRef.set(arr);
@@ -507,23 +589,53 @@ void *getAsPointer(JNIEnv *env, jobject object, gs_set_param_type type, bool *su
break;
case gs_spt_bool:
result = malloc(sizeof(int));
+ if (!result)
+ {
+ throwAllocationError(env, "getAsPointer");
+ return NULL;
+ }
+
*((int *)result) = (bool)toBoolean(env, object);
break;
case gs_spt_int:
result = malloc(sizeof(int));
+ if (!result)
+ {
+ throwAllocationError(env, "getAsPointer");
+ return NULL;
+ }
+
*((int *)result) = (int)toInt(env, object);
break;
case gs_spt_float:
result = malloc(sizeof(float));
+ if (!result)
+ {
+ throwAllocationError(env, "getAsPointer");
+ return NULL;
+ }
+
*((float *)result) = (float)toFloat(env, object);
break;
case gs_spt_long:
case gs_spt_i64:
result = malloc(sizeof(long long));
+ if (!result)
+ {
+ throwAllocationError(env, "getAsPointer");
+ return NULL;
+ }
+
*((long long *)result) = (long long)toLong(env, object);
break;
case gs_spt_size_t:
result = malloc(sizeof(size_t));
+ if (!result)
+ {
+ throwAllocationError(env, "getAsPointer");
+ return NULL;
+ }
+
*((size_t *)result) = (size_t)toLong(env, object);
break;
case gs_spt_name:
@@ -533,6 +645,12 @@ void *getAsPointer(JNIEnv *env, jobject object, gs_set_param_type type, bool *su
cstring = (const char *)env->GetByteArrayElements(arr, &copy);
len = env->GetArrayLength(arr);
result = malloc(sizeof(char) * len);
+ if (!result)
+ {
+ throwAllocationError(env, "getAsPointer");
+ return NULL;
+ }
+
//((char *)result)[len - 1] = 0;
memcpy(result, cstring, len);
break;
@@ -541,6 +659,7 @@ void *getAsPointer(JNIEnv *env, jobject object, gs_set_param_type type, bool *su
*success = false;
break;
}
+
if (env->ExceptionCheck())
{
if (result)
@@ -550,3 +669,51 @@ void *getAsPointer(JNIEnv *env, jobject object, gs_set_param_type type, bool *su
}
return result;
}
+
+void storeDispalyHandle(GSInstanceData *idata)
+{
+ static const char PARAM_NAME[] = "DisplayHandle";
+
+ assert(idata);
+ assert(idata->instance);
+
+ char *param = NULL;
+ int bytes = gsapi_get_param(idata->instance, PARAM_NAME, NULL, gs_spt_string);
+ if (bytes == com_artifex_gsjava_GSAPI_GS_ERROR_UNDEFINED)
+ idata->displayCallback = NULL;
+ else
+ {
+ // Parse the DisplayHandle string again
+
+ param = new char[bytes];
+ gsapi_get_param(idata->instance, PARAM_NAME, param, gs_spt_string);
+
+ char *toparse = param;
+
+ int radix = 10; // default base 10
+
+ // If there is a # character, we need to change the radix
+ char *rend = strchr(param, '#');
+ if (rend)
+ {
+ *rend = 0;
+ radix = atoi(param);
+ toparse = rend + 1;
+ }
+
+ char *end;
+ long long val = std::strtoll(toparse, &end, radix);
+
+ idata->displayHandle = (void *)val;
+
+ delete[] param;
+ }
+
+ char buf[20]; // 16#[16 hex digits][null terminator]
+#if defined(_WIN32)
+ sprintf_s(buf, "16#%llx", (long long)idata);
+#else
+ snprintf(buf, sizeof(buf), "16#%llx", (long long)idata);
+#endif
+ gsapi_set_param(idata->instance, PARAM_NAME, buf, gs_spt_string);
+}
diff --git a/demos/java/jni/gs_jni/com_artifex_gsjava_GSAPI.h b/demos/java/jni/gs_jni/com_artifex_gsjava_GSAPI.h
index 68c61e58..fd7e303a 100644
--- a/demos/java/jni/gs_jni/com_artifex_gsjava_GSAPI.h
+++ b/demos/java/jni/gs_jni/com_artifex_gsjava_GSAPI.h
@@ -2,6 +2,8 @@
#include <jni.h>
/* Header for class com_artifex_gsjava_GSAPI */
+#include "settings.h"
+
#ifndef _Included_com_artifex_gsjava_GSAPI
#define _Included_com_artifex_gsjava_GSAPI
#ifdef __cplusplus
diff --git a/demos/java/jni/gs_jni/com_artifex_gsjava_util_NativePointer.cpp b/demos/java/jni/gs_jni/com_artifex_gsjava_util_NativePointer.cpp
index 04c435cb..0589c6b3 100644
--- a/demos/java/jni/gs_jni/com_artifex_gsjava_util_NativePointer.cpp
+++ b/demos/java/jni/gs_jni/com_artifex_gsjava_util_NativePointer.cpp
@@ -33,8 +33,8 @@ JNIEXPORT void JNICALL Java_com_artifex_gsjava_util_NativePointer_freeNative
JNIEXPORT jbyteArray JNICALL Java_com_artifex_gsjava_util_NativePointer_byteArrayNative
(JNIEnv *env, jclass, jlong address, jlong len)
{
- jbyteArray array = env->NewByteArray(len);
- env->SetByteArrayRegion(array, 0, len, (const jbyte *)address);
+ jbyteArray array = env->NewByteArray((jsize)len);
+ env->SetByteArrayRegion(array, 0, (jsize)len, (const jbyte *)address);
return array;
}
@@ -53,8 +53,8 @@ JNIEXPORT void JNICALL Java_com_artifex_gsjava_util_NativePointer_setByteNative
JNIEXPORT jcharArray JNICALL Java_com_artifex_gsjava_util_NativePointer_charArrayNative
(JNIEnv *env, jclass, jlong address, jlong len)
{
- jcharArray array = env->NewCharArray(len);
- env->SetCharArrayRegion(array, 0, len, (const jchar *)address);
+ jcharArray array = env->NewCharArray((jsize)len);
+ env->SetCharArrayRegion(array, 0, (jsize)len, (const jchar *)address);
return array;
}
@@ -73,8 +73,8 @@ JNIEXPORT void JNICALL Java_com_artifex_gsjava_util_NativePointer_setCharNative
JNIEXPORT jshortArray JNICALL Java_com_artifex_gsjava_util_NativePointer_shortArrayNative
(JNIEnv *env, jclass, jlong address, jlong len)
{
- jshortArray array = env->NewShortArray(len);
- env->SetShortArrayRegion(array, 0, len, (const jshort *)address);
+ jshortArray array = env->NewShortArray((jsize)len);
+ env->SetShortArrayRegion(array, 0, (jsize)len, (const jshort *)address);
return array;
}
@@ -93,8 +93,8 @@ JNIEXPORT void JNICALL Java_com_artifex_gsjava_util_NativePointer_setShortNative
JNIEXPORT jintArray JNICALL Java_com_artifex_gsjava_util_NativePointer_intArrayNative
(JNIEnv *env, jclass, jlong address, jlong len)
{
- jintArray array = env->NewIntArray(len);
- env->SetIntArrayRegion(array, 0, len, (const jint *)address);
+ jintArray array = env->NewIntArray((jsize)len);
+ env->SetIntArrayRegion(array, 0, (jsize)len, (const jint *)address);
return array;
}
@@ -113,8 +113,8 @@ JNIEXPORT void JNICALL Java_com_artifex_gsjava_util_NativePointer_setIntNative
JNIEXPORT jlongArray JNICALL Java_com_artifex_gsjava_util_NativePointer_longArrayNative
(JNIEnv *env, jclass, jlong address, jlong len)
{
- jlongArray array = env->NewLongArray(len);
- env->SetLongArrayRegion(array, 0, len, (const jlong *)address);
+ jlongArray array = env->NewLongArray((jsize)len);
+ env->SetLongArrayRegion(array, 0, (jsize)len, (const jlong *)address);
return array;
}
diff --git a/demos/java/jni/gs_jni/com_artifex_gsjava_util_NativePointer.h b/demos/java/jni/gs_jni/com_artifex_gsjava_util_NativePointer.h
index 8dd6a30b..6c053df8 100644
--- a/demos/java/jni/gs_jni/com_artifex_gsjava_util_NativePointer.h
+++ b/demos/java/jni/gs_jni/com_artifex_gsjava_util_NativePointer.h
@@ -2,6 +2,8 @@
#include <jni.h>
/* Header for class com_artifex_gsjava_util_NativePointer */
+#include "settings.h"
+
#ifndef _Included_com_artifex_gsjava_util_NativePointer
#define _Included_com_artifex_gsjava_util_NativePointer
#ifdef __cplusplus
diff --git a/demos/java/jni/gs_jni/gs_jni.vcxproj b/demos/java/jni/gs_jni/gs_jni.vcxproj
index 5febb0d2..56f03d0a 100644
--- a/demos/java/jni/gs_jni/gs_jni.vcxproj
+++ b/demos/java/jni/gs_jni/gs_jni.vcxproj
@@ -98,7 +98,7 @@
<GenerateDebugInformation>true</GenerateDebugInformation>
<EnableUAC>false</EnableUAC>
<AdditionalDependencies>%(AdditionalDependencies)</AdditionalDependencies>
- <AdditionalLibraryDirectories>$(SolutionDir)..\..\..\..\debugbin;%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
+ <AdditionalLibraryDirectories>$(SolutionDir)..\..\..\..\bin;%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
</Link>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
@@ -120,6 +120,7 @@
<OptimizeReferences>true</OptimizeReferences>
<GenerateDebugInformation>true</GenerateDebugInformation>
<EnableUAC>false</EnableUAC>
+ <AdditionalLibraryDirectories>$(SolutionDir)..\..\..\..\bin;%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
</Link>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
@@ -138,7 +139,7 @@
<GenerateDebugInformation>true</GenerateDebugInformation>
<EnableUAC>false</EnableUAC>
<AdditionalDependencies>gpdldll64.lib;%(AdditionalDependencies)</AdditionalDependencies>
- <AdditionalLibraryDirectories>$(SolutionDir)..\..\..\..\debugbin;%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
+ <AdditionalLibraryDirectories>$(SolutionDir)..\..\..\..\bin;%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
</Link>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
@@ -169,13 +170,16 @@
<ClInclude Include="com_artifex_gsjava_GSAPI.h" />
<ClInclude Include="com_artifex_gsjava_util_NativePointer.h" />
<ClInclude Include="framework.h" />
+ <ClInclude Include="instance_data.h" />
<ClInclude Include="jni_util.h" />
+ <ClInclude Include="settings.h" />
</ItemGroup>
<ItemGroup>
<ClCompile Include="callbacks.cpp" />
<ClCompile Include="com_artifex_gsjava_GSAPI.cpp" />
<ClCompile Include="com_artifex_gsjava_util_NativePointer.cpp" />
<ClCompile Include="dllmain.cpp" />
+ <ClCompile Include="instance_data.cpp" />
<ClCompile Include="jni_util.cpp" />
</ItemGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
diff --git a/demos/java/jni/gs_jni/gs_jni.vcxproj.filters b/demos/java/jni/gs_jni/gs_jni.vcxproj.filters
index 14063f1b..ce1781b7 100644
--- a/demos/java/jni/gs_jni/gs_jni.vcxproj.filters
+++ b/demos/java/jni/gs_jni/gs_jni.vcxproj.filters
@@ -30,6 +30,12 @@
<ClInclude Include="com_artifex_gsjava_util_NativePointer.h">
<Filter>Header Files</Filter>
</ClInclude>
+ <ClInclude Include="instance_data.h">
+ <Filter>Header Files</Filter>
+ </ClInclude>
+ <ClInclude Include="settings.h">
+ <Filter>Header Files</Filter>
+ </ClInclude>
</ItemGroup>
<ItemGroup>
<ClCompile Include="dllmain.cpp">
@@ -47,5 +53,8 @@
<ClCompile Include="com_artifex_gsjava_util_NativePointer.cpp">
<Filter>Source Files</Filter>
</ClCompile>
+ <ClCompile Include="instance_data.cpp">
+ <Filter>Source Files</Filter>
+ </ClCompile>
</ItemGroup>
</Project> \ No newline at end of file
diff --git a/demos/java/jni/gs_jni/install_linux.sh b/demos/java/jni/gs_jni/install_linux.sh
index 1626c212..0f4b1147 100644
--- a/demos/java/jni/gs_jni/install_linux.sh
+++ b/demos/java/jni/gs_jni/install_linux.sh
@@ -1,7 +1,14 @@
#!bin/bash
-echo "Copy libgpdl.so -> /usr/lib/libgpdl.so"
-sudo cp -L "../../../../sobin/libgpdl.so" "/usr/lib/libgpdl.so"
+echo "Copy libgpdl.so"
+cp -L "../jni/gs_jni/gs_jni.so" "gs_jni.so"
-echo "Copy gs_jni.so -> /usr/lib/gs_jni.so"
-sudo cp "gs_jni.so" "/usr/lib/gs_jni.so" \ No newline at end of file
+echo "Create libpgdl.so link"
+cp "../../../sobin/lbgpdl.so" "libgpdl.so"
+
+cd ../../../sobin
+
+echo "Copy libgpdl.so target"
+cp $(readlink "libgpdl.so") "../demos/java/gsviewer"
+
+cd ../demos/java.gsviewer
diff --git a/demos/java/jni/gs_jni/instance_data.cpp b/demos/java/jni/gs_jni/instance_data.cpp
new file mode 100644
index 00000000..a65cdf5e
--- /dev/null
+++ b/demos/java/jni/gs_jni/instance_data.cpp
@@ -0,0 +1,64 @@
+#include "instance_data.h"
+
+#include <unordered_map>
+#include <assert.h>
+#include <mutex>
+
+#if !defined(GSJNI_NO_MT)
+
+static std::unordered_map<void *, GSInstanceData *> g_inst2Data; // instance -> data
+static std::mutex g_mtx;
+
+#else
+
+static GSInstanceData g_global; // Global instance for faster multithreading
+
+#endif
+
+GSInstanceData *putInstanceData(GSInstanceData *data)
+{
+#if !defined(GSJNI_NO_MT)
+ g_mtx.lock();
+
+ assert(g_inst2Data.find(data->instance) == g_inst2Data.end());
+
+ g_inst2Data[data->instance] = data;
+
+ g_mtx.unlock();
+
+ return data;
+
+#else
+ delete data;
+ return &g_global;
+#endif
+}
+
+GSInstanceData *findDataFromInstance(void *instance)
+{
+#if !defined(GSJNI_NO_MT)
+ g_mtx.lock();
+
+ auto it = g_inst2Data.find(instance);
+ GSInstanceData *result = it == g_inst2Data.end() ? NULL : it->second;
+
+ g_mtx.unlock();
+
+ return result;
+#else
+ return &g_global;
+#endif
+}
+
+void deleteDataFromInstance(void *instance)
+{
+#if !defined(GSJNI_NO_MT)
+ g_mtx.lock();
+
+ auto i2dit = g_inst2Data.find(instance);
+ if (i2dit != g_inst2Data.end())
+ g_inst2Data.erase(i2dit);
+
+ g_mtx.unlock();
+#endif
+} \ No newline at end of file
diff --git a/demos/java/jni/gs_jni/instance_data.h b/demos/java/jni/gs_jni/instance_data.h
new file mode 100644
index 00000000..2b2afe2e
--- /dev/null
+++ b/demos/java/jni/gs_jni/instance_data.h
@@ -0,0 +1,35 @@
+#pragma once
+
+#include <jni.h>
+
+#include "settings.h"
+
+/*
+This class stores data about a Ghostscript instance.
+*/
+class GSInstanceData
+{
+public:
+ void *instance = NULL; // The Ghostscript instance
+ void *callerHandle = NULL; // The caller handle passed to gsapi_new_instance
+ void *stdioHandle = NULL; // The caller handle passed to gsapi_set_stdio_with_handle
+ void *displayHandle = NULL; // The handle passed to display callbacks
+
+ JNIEnv *env = NULL; // The JNIEnv which should be used for JNI API calls
+
+ jobject stdIn = NULL; // The user IStdInFunction class for stdin input
+ jobject stdOut = NULL; // The user IStdOutFunction class for stdout output
+ jobject stdErr = NULL; // The user IStdErrFunction class for stderr output
+
+ jobject poll = NULL; // The user IPollFunction class
+
+ jobject displayCallback = NULL; // The user DisplayCallback class
+
+ jobject callout = NULL; // The user ICalloutFunction class
+
+ bool hasinit = false; // Whether the user has called init_with_args
+};
+
+GSInstanceData *putInstanceData(GSInstanceData *data);
+GSInstanceData *findDataFromInstance(void *instance);
+void deleteDataFromInstance(void *instance); \ No newline at end of file
diff --git a/demos/java/jni/gs_jni/jni_util.cpp b/demos/java/jni/gs_jni/jni_util.cpp
index 74852a95..cd43c534 100644
--- a/demos/java/jni/gs_jni/jni_util.cpp
+++ b/demos/java/jni/gs_jni/jni_util.cpp
@@ -90,7 +90,7 @@ char **util::jbyteArray2DToCharArray(JNIEnv *env, jobjectArray array)
{
jbyteArray byteArrayObject = (jbyteArray)env->GetObjectArrayElement(array, i);
char *elem = (char *)env->GetByteArrayElements(byteArrayObject, &copy);
- jsize slen = strlen(elem);
+ jsize slen = (jsize)strlen(elem);
char *nstring = new char[slen + 1LL];
nstring[slen] = 0;
memcpy(nstring, elem, slen);
@@ -145,14 +145,14 @@ jint util::getIntField(JNIEnv *env, jobject object, const char *field)
return env->GetIntField(object, fieldID);
}
-int util::callIntMethod(JNIEnv *env, jobject object, const char *method, const char *sig, ...)
+jint util::callIntMethod(JNIEnv *env, jobject object, const char *method, const char *sig, ...)
{
jmethodID methodID = getMethodID(env, object, method, sig);
if (methodID == NULL)
return 0;
va_list args;
- int result;
+ jint result;
va_start(args, sig);
result = env->CallIntMethodV(object, methodID, args);
va_end(args);
diff --git a/demos/java/jni/gs_jni/jni_util.h b/demos/java/jni/gs_jni/jni_util.h
index 6439712e..2ea20fd4 100644
--- a/demos/java/jni/gs_jni/jni_util.h
+++ b/demos/java/jni/gs_jni/jni_util.h
@@ -2,6 +2,8 @@
#include <jni.h>
+#include "settings.h"
+
#define REFERENCE_VALUE_FILED_NAME "value"
namespace util
@@ -141,7 +143,7 @@ namespace util
@param sig The method's signature.
@param ... The varargs representing the object's arguments in their respective order.
*/
- int callIntMethod(JNIEnv *env, jobject object, const char *name, const char *sig, ...);
+ jint callIntMethod(JNIEnv *env, jobject object, const char *name, const char *sig, ...);
void setObjectField(JNIEnv *env, jobject object, const char *field, jobject value);
diff --git a/demos/java/jni/gs_jni/settings.h b/demos/java/jni/gs_jni/settings.h
new file mode 100644
index 00000000..9bd7490a
--- /dev/null
+++ b/demos/java/jni/gs_jni/settings.h
@@ -0,0 +1,5 @@
+#pragma once
+
+// Use to disable multithreading support, ghostpdl must be compiled with multithreading
+// enabled as well
+//#define GSJNI_NO_MT \ No newline at end of file
diff --git a/demos/java/mtdemo/Main.java b/demos/java/mtdemo/Main.java
new file mode 100644
index 00000000..82e63619
--- /dev/null
+++ b/demos/java/mtdemo/Main.java
@@ -0,0 +1,51 @@
+import com.artifex.gsjava.GSInstance;
+
+import java.io.File;
+
+import java.util.Scanner;
+
+public class Main {
+
+ // The file we will read from
+ public static final String INFILE = "../../../examples/tiger.eps";
+
+ // The output directory
+ public static final String OUTDIR = "pdfout";
+
+ public static void main(String[] args) {
+ // For multithreading, call this before any GSInstance objects
+ // are created.
+ GSInstance.setAllowMultithreading(true);
+
+ // Parse first command line argument as thread count
+ int workerCount = 10;
+ if (args.length > 0) {
+ try {
+ workerCount = Integer.parseInt(args[0]);
+ } catch (NumberFormatException e) { }
+ }
+
+ // Create output directory if it doesn't exist
+ File outdirFile = new File(OUTDIR);
+ if (outdirFile.exists()) {
+ if (outdirFile.isFile())
+ System.err.println("Output directory exists as a file!");
+ } else {
+ outdirFile.mkdirs();
+ }
+
+
+ Worker[] workers = new Worker[workerCount];
+
+ // Create each worker
+ for (int i = 0; i < workers.length; i++) {
+ workers[i] = new Worker(INFILE, OUTDIR + "/out" + i + ".pdf");
+ }
+
+ // Dispatch each worker
+ System.out.println("Starting workers...");
+ for (int i = 0; i < workers.length; i++) {
+ workers[i].start();
+ }
+ }
+}
diff --git a/demos/java/mtdemo/README.txt b/demos/java/mtdemo/README.txt
new file mode 100644
index 00000000..0dca6335
--- /dev/null
+++ b/demos/java/mtdemo/README.txt
@@ -0,0 +1,53 @@
+This directory contains files which demo multithreading in Ghostscript
+using the Java Language Bindings. The application here simply reads in
+the same EPS file and outputs it to multiple PDF files on different
+threads.
+
+What is here?
+
+* Main.java - Class containing Java main method
+* Worker.java - Class which handles concurrently running Ghostscript
+* build_darwin.sh - Builds the Java program on Darwin systems
+* build_linux.sh - Builds the Java program on Linux systems
+* build_win32.bat - Builds the Java program on Windows
+* runmtd_darwin.sh - Runs the Java program on Darwin systems
+* runmtd_linux.sh - Runs the Java program on Linux systems
+* runmtd_win32.bat - Starts the Java program for Windows
+
+Build/run instructions:
+
+-= WINDOWS =-
+
+1. Ensure the following libraries have been built and are in
+ this directory:
+ * gpdldll64.dll
+ * gs_jni.dll
+
+2. Run build_win32.bat to build.
+
+3. Run runmtd_win32.bat to start the application.
+
+
+-= LINUX =-
+
+1. Ensure the following libraries have been built and are in
+ this directory:
+ * libgpdl.so (this would have been built as a link to another file, so
+ it should be copied into this directory and renamed to libgpdl.so)
+ gs_jni.so
+
+2. If using OpenJDK 8, the property "assistive_technologies" may
+ need to be modified for the Java code to build. It can be modified by
+ editing the "accessibility.properties" file. This is located at:
+
+ /etc/java-8-openjdk/accessibility.properties
+
+3. Run build_linux.sh to build and copy libraries.
+
+5. Run runmtd_linux.sh to start the application.
+
+
+-= DARWIN =-
+
+Same as Linux, except with .dylib extensions on all shared objects and
+"_darwin.sh" suffixes instead of "_linux.sh". \ No newline at end of file
diff --git a/demos/java/mtdemo/Worker.java b/demos/java/mtdemo/Worker.java
new file mode 100644
index 00000000..53393cba
--- /dev/null
+++ b/demos/java/mtdemo/Worker.java
@@ -0,0 +1,127 @@
+import java.io.File;
+
+import com.artifex.gsjava.GSInstance;
+import com.artifex.gsjava.callbacks.DisplayCallback;
+import com.artifex.gsjava.util.*;
+import com.artifex.gsjava.callbacks.*;
+
+import java.io.IOException;
+
+import java.util.Arrays;
+
+import static com.artifex.gsjava.GSAPI.*;
+
+/**
+ * Handles running a separate instance of Ghostscript.
+ */
+public class Worker implements Runnable {
+
+ // Whether to use Java-implemented standard input/output
+ public static final boolean USE_CUSTOM_STDIO = true;
+
+ // Whether stdout is enabled (effective only if USE_CUSTOM_STDIO = true)
+ public static final boolean USE_STDOUT = false;
+
+ private static int ID = 0; // Next thread ID
+
+ private final File inPS, outPDF; // Input and output files
+ private final Thread thread; // The thread running this worker
+
+ /**
+ * Create a worker thread to convert a postscript file
+ * to a pdf file.
+ *
+ * @param inPS The postscript file.
+ * @param outPDF The output PDF file.
+ */
+ public Worker(String inPS, String outPDF) {
+ this.inPS = new File(inPS);
+ this.outPDF = new File(outPDF);
+ this.thread = new Thread(this);
+ this.thread.setName("Worker-" + ID++);
+ }
+
+ /**
+ * Starts this worker
+ */
+ public void start() {
+ System.out.println("Start: " + thread.getName());
+ thread.start();
+ }
+
+ @Override
+ public void run() {
+ System.out.println("Started worker: " + thread.getName());
+
+ GSInstance gsInstance = null;
+ try {
+ gsInstance = createGSInstance();
+
+ // If we want to use the IO functions StdIO, set them
+ if (USE_CUSTOM_STDIO) {
+ StdIO io = new StdIO();
+ gsInstance.set_stdio(io, USE_STDOUT ? io : null, io);
+ }
+
+ // Create the output file if it doesn't exist
+ if (!outPDF.exists())
+ outPDF.createNewFile();
+
+ // Ghostscript arguments to use with init_with_args
+ String[] args = {
+ "gs",
+ "-sDEVICE=pdfwrite",
+ "-o", outPDF.getPath(),
+ inPS.getPath()
+ };
+
+ // init_with_args will perform all the conversions
+ int code = gsInstance.init_with_args(args);
+ if (code != GS_ERROR_OK)
+ throw new IllegalStateException("Failed to init with args (code = " + code + ")");
+
+ System.out.println("Worker " + thread.getName() + " completed.");
+ } catch (Exception e) {
+ System.err.println("Worker " + thread.getName() + " threw exception: " + e);
+ } finally {
+ if (gsInstance != null)
+ gsInstance.delete_instance();
+ }
+ }
+
+ // Creates a new Ghostscript inistance
+ private GSInstance createGSInstance() {
+ GSInstance gsInstance = new GSInstance();
+
+ int code;
+ code = gsInstance.set_arg_encoding(1);
+ if (code != GS_ERROR_OK) {
+ gsInstance.delete_instance();
+ throw new IllegalStateException("Failed to set arg encoding (code = " + code + ")");
+ }
+
+ return gsInstance;
+ }
+
+ // Handles standard input/output
+ private static class StdIO implements IStdOutFunction, IStdErrFunction, IStdInFunction {
+
+ public int onStdOut(long callerHandle, byte[] str, int len) {
+ System.out.println(new String(str));
+ return len;
+ }
+
+ public int onStdErr(long callerHandle, byte[] str, int len) {
+ System.err.println(new String(str));
+ return len;
+ }
+
+ public int onStdIn(long callerHandle, byte[] buf, int len) {
+ try {
+ return System.in.read(buf, 0, len);
+ } catch (IOException e) {
+ return 0;
+ }
+ }
+ }
+}
diff --git a/demos/java/mtdemo/build_darwin.sh b/demos/java/mtdemo/build_darwin.sh
new file mode 100755
index 00000000..6080bed0
--- /dev/null
+++ b/demos/java/mtdemo/build_darwin.sh
@@ -0,0 +1,28 @@
+#!/bin/bash
+
+echo "Build mtdemo"
+
+cd ../gsjava
+
+bash build_darwin.sh
+
+cd ../mtdemo
+
+cp ../mtdemo/gsjava.jar gsjava.jar
+
+echo "Compiling mtdemo Java source..."
+javac -classpath "../gsjava/bin:." "Main.java" "Worker.java"
+echo "Done."
+
+echo "Copy gs_jni.dylib"
+cp "../jni/gs_jni/gs_jni.dylib" "gs_jni.dylib"
+
+echo "Create libgpdl.dylib link"
+cp "../../../sobin/libgpdl.dylib" "libgpdl.dylib"
+
+cd ../../../sobin
+
+echo "Copy libgpdl.dylib target"
+cp $(readlink "libgpdl.dylib") "../demos/java/mtdemo"
+
+cd ../demos/java/mtdemo \ No newline at end of file
diff --git a/demos/java/mtdemo/build_linux.sh b/demos/java/mtdemo/build_linux.sh
new file mode 100755
index 00000000..698b4583
--- /dev/null
+++ b/demos/java/mtdemo/build_linux.sh
@@ -0,0 +1,28 @@
+#!/bin/bash
+
+echo "Build mtdemo"
+
+cd ../gsjava
+
+bash build_linux.sh
+
+cd ../mtdemo
+
+cp ../gsjava/gsjava.jar gsjava.jar
+
+echo "Compiling mtdemo Java source..."
+javac -classpath "../gsjava/bin:." "Main.java" "Worker.java"
+echo "Done."
+
+echo "Copy gs_jni.so"
+cp "../jni/gs_jni/gs_jni.so" "gs_jni.so"
+
+echo "Create libgpdl.so link"
+cp "../../../sobin/libgpdl.so" "libgpdl.so"
+
+cd ../../../sobin
+
+echo "Copy libgpdl.so target"
+cp $(readlink "libgpdl.so") "../demos/java/mtdemo"
+
+cd ../demos/java/mtdemo \ No newline at end of file
diff --git a/demos/java/mtdemo/build_win32.bat b/demos/java/mtdemo/build_win32.bat
new file mode 100755
index 00000000..1074fab8
--- /dev/null
+++ b/demos/java/mtdemo/build_win32.bat
@@ -0,0 +1,15 @@
+@echo off
+
+echo Build mtdemo
+
+cd "..\gsjava"
+
+call build_win32
+
+cd "..\mtdemo"
+
+copy "..\gsjava\gsjava.jar" ".\gsjava.jar"
+
+echo Compiling mtdemo Java source...
+javac -cp ../gsjava/bin;. Main.java Worker.java
+echo Done. \ No newline at end of file
diff --git a/demos/java/mtdemo/runmtd_darwin.sh b/demos/java/mtdemo/runmtd_darwin.sh
new file mode 100755
index 00000000..4e3b2114
--- /dev/null
+++ b/demos/java/mtdemo/runmtd_darwin.sh
@@ -0,0 +1,5 @@
+#!/bin/bash
+
+export LD_PRELOAD=./libgpdl.dylib
+
+java -cp "gsjava.jar:." Main "$ARG1"
diff --git a/demos/java/mtdemo/runmtd_linux.sh b/demos/java/mtdemo/runmtd_linux.sh
new file mode 100755
index 00000000..72acf6b6
--- /dev/null
+++ b/demos/java/mtdemo/runmtd_linux.sh
@@ -0,0 +1,3 @@
+#!/bin/bash
+
+java -cp "gsjava.jar:." Main "$ARG1"
diff --git a/demos/java/mtdemo/runmtd_win32.bat b/demos/java/mtdemo/runmtd_win32.bat
new file mode 100755
index 00000000..f23ce990
--- /dev/null
+++ b/demos/java/mtdemo/runmtd_win32.bat
@@ -0,0 +1,3 @@
+@echo off
+
+java -cp gsjava.jar;. Main %1 \ No newline at end of file
diff --git a/demos/python/examples.py b/demos/python/examples.py
index d5c8b6ad..864bed96 100755
--- a/demos/python/examples.py
+++ b/demos/python/examples.py
@@ -127,7 +127,6 @@ def trans_ps():
# Run string to feed chunks
def run_string():
- f = None
size = 1024;
in_filename = '%s/examples/tiger.eps' % ghostpdl_root
out_filename = 'tiger_byte_fed.png'
@@ -139,19 +138,21 @@ def run_string():
gsapi.gsapi_set_arg_encoding(instance, gsapi.GS_ARG_ENCODING_UTF8)
gsapi.gsapi_init_with_args(instance, params)
- exitcode = gsapi.gsapi_run_string_begin(instance, 0)
+ gsapi.gsapi_run_string_begin(instance, 0)
with open(in_filename,"rb") as f:
while True:
data = f.read(size)
if not data:
break
- exitcode = gsapi.gsapi_run_string_continue(instance, data, 0)
+ gsapi.gsapi_run_string_continue(instance, data, 0)
exitcode = gsapi.gsapi_run_string_end(instance, 0)
end_gpdl(instance)
+ return exitcode
+
# Examples
print('***********Text extraction***********');
diff --git a/demos/python/gsapi.py b/demos/python/gsapi.py
index 6dfeb95b..4d405a5e 100755
--- a/demos/python/gsapi.py
+++ b/demos/python/gsapi.py
@@ -343,6 +343,7 @@ def gsapi_set_arg_encoding(instance, encoding):
GS_ARG_ENCODING_UTF8,
GS_ARG_ENCODING_UTF16LE,
)
+ global _encoding
e = _libgs.gsapi_set_arg_encoding(instance, encoding)
if e < 0:
raise GSError(e)
@@ -377,7 +378,7 @@ def gsapi_init_with_args(instance, args):
raise GSError(e)
-def gsapi_run_string_begin(instance, user_errors):
+def gsapi_run_string_begin(instance, user_errors=0):
'''
Returns <exit_code>.
'''
@@ -388,7 +389,7 @@ def gsapi_run_string_begin(instance, user_errors):
return pexit_code.value
-def gsapi_run_string_continue(instance, str_, user_errors):
+def gsapi_run_string_continue(instance, str_, user_errors=0):
'''
<str_> should be either a python string or a bytes object. If the former,
it is converted into a bytes object using utf-8 encoding.
@@ -416,7 +417,7 @@ def gsapi_run_string_continue(instance, str_, user_errors):
return pexit_code.value
-def gsapi_run_string_end(instance, user_errors):
+def gsapi_run_string_end(instance, user_errors=0):
'''
Returns <exit_code>.
'''
@@ -431,17 +432,17 @@ def gsapi_run_string_end(instance, user_errors):
return pexit_code.value
-def gsapi_run_string_with_length(instance, str_, length, user_errors):
+def gsapi_run_string_with_length(instance, str_, length, user_errors=0):
'''
<str_> should be either a python string or a bytes object. If the former,
it is converted into a bytes object using utf-8 encoding.
Returns <exit_code>.
'''
- return gsapi_run_string(instance, str_[:length], user_errors)
+ return gsapi_run_string(instance, str_[:length], user_errors=0)
-def gsapi_run_string(instance, str_, user_errors):
+def gsapi_run_string(instance, str_, user_errors=0):
'''
<str_> should be either a python string or a bytes object. If the former,
it is converted into a bytes object using utf-8 encoding.
@@ -465,7 +466,7 @@ def gsapi_run_string(instance, str_, user_errors):
return pexit_code.value
-def gsapi_run_file(instance, filename, user_errors):
+def gsapi_run_file(instance, filename, user_errors=0):
'''
Returns <exit_code>.
'''
@@ -558,8 +559,7 @@ def gsapi_set_param(instance, param, value, type_=None):
if type_ is None:
# Choose a gs_spt_* that matches the Python type of <value>.
- if 0: pass
- elif value is None:
+ if value is None:
type_ = gs_spt_null
elif isinstance(value, bool):
type_ = gs_spt_bool
@@ -589,8 +589,7 @@ def gsapi_set_param(instance, param, value, type_=None):
else:
# Bool/int/float.
type2 = None
- if 0: pass
- elif type_ == gs_spt_bool:
+ if type_ == gs_spt_bool:
type2 = ctypes.c_int
elif type_ == gs_spt_int:
type2 = ctypes.c_int
@@ -977,7 +976,7 @@ if 0:
# gsapi_add_fs()
# gsapi_remove_fs()
#
- class gsapi_fs_t(ctypes.Structure):
+ class gsapi_fs_t(ctypes.Structure): # lgtm [py/unreachable-statement]
_fields_ = [
('open_file',
ctypes.CFUNCTYPE(ctypes.c_int,
@@ -1104,7 +1103,6 @@ if __name__ == '__main__':
pass
else:
assert 0
- if 0: assert gsapi_get_param(instance, "foo") is None
# Enumerate all params and print name/value.
print('gsapi_enumerate_params():')
diff --git a/devices/devs.mak b/devices/devs.mak
index 484e0e36..bfe2903a 100644
--- a/devices/devs.mak
+++ b/devices/devs.mak
@@ -1,4 +1,4 @@
-# Copyright (C) 2001-2021 Artifex Software, Inc.
+# Copyright (C) 2001-2022 Artifex Software, Inc.
# All Rights Reserved.
#
# This software is provided AS-IS with no warranty, either express or
@@ -180,7 +180,8 @@ DEVGEN=$(DEVGENDIR)$(D)
# png16 4-bit color Portable Network Graphics (PNG)
# png256 8-bit color Portable Network Graphics (PNG)
# png16m 24-bit color Portable Network Graphics (PNG)
-# pngalpha 32-bit RGBA color Portable Network Graphics (PNG)
+# pngalpha 32-bit RGBA color Portable Network Graphics (PNG) (aa)
+# png16malpha 32-bit RGBA color Portable Network Graphics (PNG)
# tiffgray TIFF 8-bit gray, no compression
# tiff12nc TIFF 12-bit RGB, no compression
# tiff24nc TIFF 24-bit RGB, no compression (NeXT standard format)
@@ -1165,7 +1166,7 @@ $(DD)chameleon.dev : $(chameleon_) $(GLD)page.dev $(GLD)cielib.dev $(GDEV) \
$(DEVOBJ)gdevchameleon.$(OBJ) : $(DEVSRC)gdevchameleon.c $(PDEVH)\
$(gsparam_h) $(gdevdcrd_h) $(gscrd_h) $(gscrdp_h) $(gxlum_h) $(gxdcconv_h)\
- $(gsutil_h) $(DEVS_MAK) $(MAKEDIRS)
+ $(gsutil_h) $(gsicc_manage_h) $(DEVS_MAK) $(MAKEDIRS)
$(DEVCC) $(DEVO_)gdevchameleon.$(OBJ) $(C_) $(DEVSRC)gdevchameleon.c
### ------------------------- .BMP file formats ------------------------- ###
@@ -1243,12 +1244,18 @@ $(DD)psdrgb.dev : $(psd_) $(GLD)page.dev $(GDEV) $(DEVS_MAK) $(MAKEDIRS)
$(DD)psdcmyk.dev : $(psd_) $(GLD)page.dev $(GDEV) $(DEVS_MAK) $(MAKEDIRS)
$(SETDEV) $(DD)psdcmyk $(psd_)
+$(DD)psdcmyktags.dev : $(psd_) $(GLD)page.dev $(GDEV) $(DEVS_MAK) $(MAKEDIRS)
+ $(SETDEV) $(DD)psdcmyktags $(psd_)
+
$(DD)psdrgb16.dev : $(DEVS_MAK) $(psd_) $(GLD)page.dev $(GDEV)
$(SETDEV) $(DD)psdrgb16 $(psd_)
$(DD)psdcmyk16.dev : $(DEVS_MAK) $(psd_) $(GLD)page.dev $(GDEV)
$(SETDEV) $(DD)psdcmyk16 $(psd_)
+$(DD)psdcmyktags16.dev : $(DEVS_MAK) $(psd_) $(GLD)page.dev $(GDEV)
+ $(SETDEV) $(DD)psdcmyktags16 $(psd_)
+
$(DEVOBJ)gdevpsd.$(OBJ) : $(DEVSRC)gdevpsd.c $(PDEVH) $(math__h)\
$(gdevdcrd_h) $(gscrd_h) $(gscrdp_h) $(gsparam_h) $(gxlum_h)\
$(gstypes_h) $(gxdcconv_h) $(gdevdevn_h) $(gxdevsop_h) $(gsequivc_h)\
@@ -1516,6 +1523,11 @@ $(DD)pngalpha.dev : $(libpng_dev) $(png_) $(GLD)page.dev $(GDEV) \
$(SETPDEV2) $(DD)pngalpha $(png_)
$(ADDMOD) $(DD)pngalpha $(png_i_)
+$(DD)png16malpha.dev : $(libpng_dev) $(png_) $(GLD)page.dev $(GDEV) \
+ $(DEVS_MAK) $(MAKEDIRS)
+ $(SETPDEV2) $(DD)png16malpha $(png_)
+ $(ADDMOD) $(DD)png16malpha $(png_i_)
+
### --------------- Portable Network Graphics file format --------------- ###
### Requires zlib 0.95 (or more recent versions). ###
### See zlib.mak for more details. ###
@@ -1799,8 +1811,8 @@ $(DD)tiffsep1.dev : $(tiffsep_) $(DD)tiffs.dev $(minftrsz_h)\
plan_=$(DEVOBJ)gdevplan.$(OBJ) $(DEVOBJ)gdevppla.$(OBJ) $(DEVOBJ)gdevmpla.$(OBJ)
-$(DEVOBJ)gdevplan.$(OBJ) : $(DEVSRC)gdevplan.c $(PDEVH)\
- $(gdevmpla_h) $(gdevplnx_h) $(gdevppla_h)\
+$(DEVOBJ)gdevplan.$(OBJ) : $(DEVSRC)gdevplan.c $(PDEVH) $(gxdevsop_h)\
+ $(gdevmpla_h) $(gdevplnx_h) $(gdevppla_h) $(gxdownscale_h) $(gsicc_cache_h)\
$(gscdefs_h) $(gscspace_h) $(gxgetbit_h) $(gxiparam_h) $(gxlum_h) \
$(DEVS_MAK) $(MAKEDIRS)
$(DEVCC) $(DEVO_)gdevplan.$(OBJ) $(C_) $(DEVSRC)gdevplan.c
@@ -1888,12 +1900,26 @@ $(DD)pwgraster.dev : $(lcups_dev) $(lcupsi_dev) $(cups_) $(GDEV) $(GLD)page.dev
$(ADDMOD) $(DD)pwgraster -include $(lcupsi_dev)
$(ADDMOD) $(DD)pwgraster -include $(GLD)page
+$(DD)appleraster.dev : $(lcups_dev) $(lcupsi_dev) $(cups_) $(GDEV) $(GLD)page.dev \
+ $(DEVS_MAK) $(MAKEDIRS)
+ $(SETPDEV2) $(DD)appleraster $(cups_)
+ $(ADDMOD) $(DD)appleraster -include $(lcups_dev)
+ $(ADDMOD) $(DD)appleraster -include $(lcupsi_dev)
+ $(ADDMOD) $(DD)appleraster -include $(GLD)page
+
+$(DD)urf.dev : $(lcups_dev) $(lcupsi_dev) $(cups_) $(GDEV) $(GLD)page.dev \
+ $(DEVS_MAK) $(MAKEDIRS)
+ $(SETPDEV2) $(DD)urf $(cups_)
+ $(ADDMOD) $(DD)urf -include $(lcups_dev)
+ $(ADDMOD) $(DD)urf -include $(lcupsi_dev)
+ $(ADDMOD) $(DD)urf -include $(GLD)page
+
$(DEVOBJ)gdevcups.$(OBJ) : $(LCUPSSRCDIR)$(D)gdevcups.c $(std_h) $(gxdevsop_h) $(DEVS_MAK) $(MAKEDIRS)
$(CUPS_CC) $(DEVO_)gdevcups.$(OBJ) $(C_) $(CFLAGS) $(CUPSCFLAGS) \
- $(I_)$(GLSRC) \
- $(I_)$(DEVSRC) \
- $(I_)$(DEVOBJ) $(I_)$(LCUPSSRCDIR)$(D)libs \
- $(LCUPSSRCDIR)$(D)gdevcups.c
+ $(I_)$(GLSRC)$(_I) \
+ $(I_)$(DEVSRC)$(_I) $(I_)$(LIBCUPSSRCDIR)$(D)libs$(_I) \
+ $(I_)$(DEVOBJ)$(_I) \
+ $(LCUPSSRCDIR)$(D)gdevcups.c
### ---------------------------- Tracing -------------------------------- ###
@@ -1943,6 +1969,10 @@ $(DD)PCLm.dev : $(DEVOBJ)gdevpdfimg.$(OBJ) $(GLD)page.dev $(GDEV) $(DEVS_MAK) $(
$(SETPDEV2) $(DD)PCLm $(DEVOBJ)gdevpdfimg.$(OBJ)
$(ADDMOD) $(DD)PCLm -include $(GLD)page
+$(DD)PCLm8.dev : $(DEVOBJ)gdevpdfimg.$(OBJ) $(GLD)page.dev $(GDEV) $(DEVS_MAK) $(MAKEDIRS)
+ $(SETPDEV2) $(DD)PCLm8 $(DEVOBJ)gdevpdfimg.$(OBJ)
+ $(ADDMOD) $(DD)PCLm8 -include $(GLD)page
+
$(DEVOBJ)gdevpdfimg.$(OBJ) : $(DEVSRC)gdevpdfimg.c $(AK) $(gdevkrnlsclass_h) \
$(DEVS_MAK) $(arch_h) $(stdint__h) $(gdevprn_h) $(gxdownscale_h) \
$(stream_h) $(spprint_h) $(time__h) $(smd5_h) $(sstring_h) $(strimpl_h) \
diff --git a/devices/extract.mak b/devices/extract.mak
index 74f1f29c..71f30825 100644
--- a/devices/extract.mak
+++ b/devices/extract.mak
@@ -13,7 +13,7 @@
# CA 94945, U.S.A., +1(415)492-9861, for further information.
#
-extract_cc = $(CC) $(CCFLAGS) $(I_)$(EXTRACT_DIR)/include$(_I) $(I_)$(ZSRCDIR)$(_I) $(O_)
+extract_cc = $(CC) $(CCFLAGS) -DEXTRACT_CV=0 $(I_)$(EXTRACT_DIR)/include$(_I) $(I_)$(ZSRCDIR)$(_I) $(O_)
extract_out_prefix = $(GLOBJDIR)$(D)extract_
$(extract_out_prefix)alloc.$(OBJ): $(EXTRACT_DIR)/src/alloc.c $(MAKEDIRS)
@@ -25,6 +25,9 @@ $(extract_out_prefix)astring.$(OBJ): $(EXTRACT_DIR)/src/astring.c $(MAKED
$(extract_out_prefix)buffer.$(OBJ): $(EXTRACT_DIR)/src/buffer.c $(MAKEDIRS)
$(extract_cc)$@ $(C_) $(EXTRACT_DIR)/src/buffer.c
+$(extract_out_prefix)document.$(OBJ): $(EXTRACT_DIR)/src/document.c $(MAKEDIRS)
+ $(extract_cc)$@ $(C_) $(EXTRACT_DIR)/src/document.c
+
$(extract_out_prefix)docx.$(OBJ): $(EXTRACT_DIR)/src/docx.c $(MAKEDIRS)
$(extract_cc)$@ $(C_) $(EXTRACT_DIR)/src/docx.c
@@ -37,6 +40,9 @@ $(extract_out_prefix)extract.$(OBJ): $(EXTRACT_DIR)/src/extract.c $(MAKED
$(extract_out_prefix)join.$(OBJ): $(EXTRACT_DIR)/src/join.c $(MAKEDIRS)
$(extract_cc)$@ $(C_) $(EXTRACT_DIR)/src/join.c
+$(extract_out_prefix)html.$(OBJ): $(EXTRACT_DIR)/src/html.c $(MAKEDIRS)
+ $(extract_cc)$@ $(C_) $(EXTRACT_DIR)/src/html.c
+
$(extract_out_prefix)mem.$(OBJ): $(EXTRACT_DIR)/src/mem.c $(MAKEDIRS)
$(extract_cc)$@ $(C_) $(EXTRACT_DIR)/src/mem.c
@@ -65,9 +71,11 @@ EXTRACT_OBJS = \
$(extract_out_prefix)alloc.$(OBJ) \
$(extract_out_prefix)astring.$(OBJ) \
$(extract_out_prefix)buffer.$(OBJ) \
+ $(extract_out_prefix)document.$(OBJ) \
$(extract_out_prefix)docx.$(OBJ) \
$(extract_out_prefix)docx_template.$(OBJ) \
$(extract_out_prefix)extract.$(OBJ) \
+ $(extract_out_prefix)html.$(OBJ) \
$(extract_out_prefix)join.$(OBJ) \
$(extract_out_prefix)mem.$(OBJ) \
$(extract_out_prefix)odt.$(OBJ) \
diff --git a/devices/gdev8510.c b/devices/gdev8510.c
index 534435c0..40c9ab80 100644
--- a/devices/gdev8510.c
+++ b/devices/gdev8510.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 2001-2021 Artifex Software, Inc.
+/* Copyright (C) 2001-2022 Artifex Software, Inc.
All Rights Reserved.
This software is provided AS-IS with no warranty, either express or
@@ -134,7 +134,7 @@ m8510_output_run(gx_device_printer *pdev,
/* Transfer the line of data. */
count = out_end - out;
if (count > 0) {
- gs_sprintf(tmp, "\033g%03d", count/8);
+ gs_snprintf(tmp, sizeof(tmp), "\033g%03d", count/8);
gp_fwrite(tmp, 1, 5, prn_stream);
gp_fwrite(out, 1, count, prn_stream);
gp_fwrite("\r", 1, 1, prn_stream);
diff --git a/devices/gdevccr.c b/devices/gdevccr.c
index 03fcfa59..4f138659 100644
--- a/devices/gdevccr.c
+++ b/devices/gdevccr.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 2001-2021 Artifex Software, Inc.
+/* Copyright (C) 2001-2022 Artifex Software, Inc.
All Rights Reserved.
This software is provided AS-IS with no warranty, either express or
@@ -220,9 +220,9 @@ static int alloc_rb( gs_memory_t *mem, cmyrow **rb, int rows)
int r;
for(r=0; r<rows; r++)
{
- gs_sprintf((*rb)[r].cname, "C%02x", r);
- gs_sprintf((*rb)[r].mname, "M%02x", r);
- gs_sprintf((*rb)[r].yname, "Y%02x", r);
+ gs_snprintf((*rb)[r].cname, sizeof((*rb)[r].cname), "C%02x", r);
+ gs_snprintf((*rb)[r].mname, sizeof((*rb)[r].mname), "M%02x", r);
+ gs_snprintf((*rb)[r].yname, sizeof((*rb)[r].yname), "Y%02x", r);
(*rb)[r].is_used=0;
}
return 0;
diff --git a/devices/gdevcdj.c b/devices/gdevcdj.c
index 6908067b..cb2160ee 100644
--- a/devices/gdevcdj.c
+++ b/devices/gdevcdj.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 2001-2021 Artifex Software, Inc.
+/* Copyright (C) 2001-2022 Artifex Software, Inc.
All Rights Reserved.
This software is provided AS-IS with no warranty, either express or
@@ -2040,7 +2040,7 @@ hp_colour_print_page(gx_device_printer * pdev, gp_file * prn_stream, int ptype)
int outbuff_size = 0;
int compression = 0;
int scan = 0;
- int *errors[2];
+ int *errors[2] = { 0 }; /* Shut up coverity */
int code = 0;
const char *cid_string = (const char*) 0;
byte *data[4], *plane_data[4][4], *out_data;
diff --git a/devices/gdevchameleon.c b/devices/gdevchameleon.c
index 6d7ba87c..789a5b01 100644
--- a/devices/gdevchameleon.c
+++ b/devices/gdevchameleon.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 2001-2021 Artifex Software, Inc.
+/* Copyright (C) 2001-2022 Artifex Software, Inc.
All Rights Reserved.
This software is provided AS-IS with no warranty, either express or
@@ -25,6 +25,7 @@
#include "gdevdcrd.h"
#include "gxdownscale.h"
#include "gxdevsop.h"
+#include "gsicc_manage.h"
/* Define the device parameters. */
#ifndef X_DPI
@@ -45,6 +46,13 @@ static dev_proc_get_params(chameleon_get_params);
static dev_proc_put_params(chameleon_put_params);
static dev_proc_print_page(chameleon_print_page);
static dev_proc_dev_spec_op(chameleon_spec_op);
+static dev_proc_close_device(chameleon_close);
+
+typedef enum {
+ linktype_none = 0,
+ linktype_postrender,
+ linktype_device
+} linktype_t;
struct gx_device_chameleon_s {
gx_device_common;
@@ -56,10 +64,21 @@ struct gx_device_chameleon_s {
int output_as_pxm;
bool language_uses_rops;
gx_downscaler_params downscale;
+ gsicc_link_t *icclink;
+ linktype_t linktype;
+ cmm_profile_t *default_device_profile;
};
typedef struct gx_device_chameleon_s gx_device_chameleon;
static void
+chameleon_finalize(gx_device *dev)
+{
+ gx_device_chameleon *pcdev = (gx_device_chameleon *)dev;
+
+ gsicc_adjust_profile_rc(pcdev->default_device_profile, -1, "chameleon_finalize");
+}
+
+static void
chameleon_initialize_device_procs(gx_device *dev)
{
gdev_prn_initialize_device_procs_bg(dev);
@@ -72,6 +91,8 @@ chameleon_initialize_device_procs(gx_device *dev)
set_dev_proc(dev, encode_color, chameleon_rgb_encode_color);
set_dev_proc(dev, decode_color, chameleon_rgb_decode_color);
set_dev_proc(dev, dev_spec_op, chameleon_spec_op);
+ set_dev_proc(dev, close_device, chameleon_close);
+ dev->finalize = chameleon_finalize;
}
const gx_device_chameleon gs_chameleon_device =
@@ -208,62 +229,143 @@ chameleon_cmyk_decode_color(gx_device * dev, gx_color_index color, gx_color_valu
#undef cvalue
}
-/* # So long, oh, I hate to see you go */
+static int
+fixup_icc_struct(gx_device_chameleon *pcdev, gsicc_colorbuffer_t cs, char *profile)
+{
+ if (pcdev->icc_struct &&
+ pcdev->icc_struct->device_profile[gsDEFAULTPROFILE] &&
+ pcdev->icc_struct->device_profile[gsDEFAULTPROFILE]->data_cs == cs)
+ return 0; /* Already the right profile type */
+
+ rc_decrement(pcdev->icc_struct, "fixup_icc_struct(chameleon)");
+
+ pcdev->icc_struct = gsicc_new_device_profile_array((gx_device *)pcdev);
+ if (pcdev->icc_struct == NULL)
+ return gs_error_VMerror;
+
+ return gsicc_set_device_profile((gx_device *)pcdev, pcdev->memory,
+ profile, gsDEFAULTPROFILE);
+}
+
+static void reset_icclink(gx_device_chameleon *pcdev)
+{
+ gsicc_free_link_dev(pcdev->icclink);
+ pcdev->icclink = NULL;
+ pcdev->linktype = linktype_none;
+}
+
static void
+stash_default_device_profile(gx_device_chameleon *pcdev)
+{
+ if (pcdev->default_device_profile != NULL)
+ return;
+
+ pcdev->default_device_profile = pcdev->icc_struct->device_profile[gsDEFAULTPROFILE];
+ gsicc_adjust_profile_rc(pcdev->default_device_profile, 1, "stash_default_device_profile");
+}
+
+/* # So long, oh, I hate to see you go */
+static int
reconfigure_baby(gx_device_chameleon *pcdev)
{
int bpc = pcdev->dst_bpc;
int num_comps = pcdev->dst_num_components;
+ int code;
+
+ stash_default_device_profile(pcdev);
if (pcdev->language_uses_rops) {
bpc = 8;
num_comps = 3;
}
- if (pcdev->bpc != bpc ||
- pcdev->num_components != num_comps) {
-
- gs_closedevice((gx_device *)pcdev);
-
- pcdev->bpc = bpc;
- pcdev->num_components = num_comps;
-
- switch (num_comps * bpc) {
- case 1*1: case 1*2: case 1*4: case 1*8:
- case 4*4: case 4*8:
- pcdev->color_info.depth = bpc * num_comps;
- break;
- case 3*1:
- pcdev->color_info.depth = 4;
- break;
- case 3*2:
- pcdev->color_info.depth = 8;
- break;
- case 3*4:
- pcdev->color_info.depth = 16;
- break;
- }
- pcdev->color_info.max_gray = pcdev->color_info.max_color =
- (pcdev->color_info.dither_grays = pcdev->color_info.dither_colors = 1<<bpc) - 1;
-
- set_dev_proc(pcdev, map_cmyk_color, NULL);
- set_dev_proc(pcdev, map_rgb_color, NULL);
- set_dev_proc(pcdev, map_color_rgb, NULL);
- set_dev_proc(pcdev, encode_color,
- num_comps == 1 ? chameleon_mono_encode_color :
- num_comps == 4 ? chameleon_cmyk_encode_color :
- chameleon_rgb_encode_color);
- set_dev_proc(pcdev, decode_color,
- num_comps == 1 ? chameleon_mono_decode_color :
- num_comps == 4 ? chameleon_cmyk_decode_color :
- chameleon_rgb_decode_color);
-
- /* Reset the separable and linear shift, masks, bits. */
- set_linear_color_bits_mask_shift((gx_device *)pcdev);
- pcdev->color_info.separable_and_linear = GX_CINFO_SEP_LIN;
- pcdev->bpc = bpc;
- pcdev->num_components = num_comps;
+ if (pcdev->bpc == bpc && pcdev->num_components == num_comps)
+ return 0; /* Nothing needs to change! */
+
+ gs_closedevice((gx_device *)pcdev);
+
+ pcdev->bpc = bpc;
+ pcdev->num_components = num_comps;
+
+ switch (num_comps * bpc) {
+ case 1*1: case 1*2: case 1*4: case 1*8:
+ case 3*8:
+ case 4*4: case 4*8:
+ pcdev->color_info.depth = bpc * num_comps;
+ break;
+ case 3*1:
+ pcdev->color_info.depth = 4;
+ break;
+ case 3*2:
+ pcdev->color_info.depth = 8;
+ break;
+ case 3*4:
+ pcdev->color_info.depth = 16;
+ break;
}
+ pcdev->color_info.num_components = num_comps;
+ pcdev->color_info.max_components = num_comps;
+ pcdev->color_info.max_gray = pcdev->color_info.max_color =
+ (pcdev->color_info.dither_grays = pcdev->color_info.dither_colors = 1<<bpc) - 1;
+
+ switch (num_comps) {
+ case 1:
+ set_dev_proc(pcdev, encode_color, chameleon_mono_encode_color);
+ set_dev_proc(pcdev, decode_color, chameleon_mono_decode_color);
+ set_dev_proc(pcdev, get_color_mapping_procs,
+ gx_default_DevGray_get_color_mapping_procs);
+ set_dev_proc(pcdev, get_color_comp_index,
+ gx_default_DevGray_get_color_comp_index);
+ pcdev->color_info.polarity = GX_CINFO_POLARITY_ADDITIVE;
+ pcdev->color_info.cm_name = "DeviceGray";
+ pcdev->color_info.gray_index = 0;
+ code = fixup_icc_struct(pcdev, gsGRAY, DEFAULT_GRAY_ICC);
+ if (code < 0)
+ return code;
+ break;
+ case 3:
+ set_dev_proc(pcdev, encode_color, chameleon_rgb_encode_color);
+ set_dev_proc(pcdev, decode_color, chameleon_rgb_decode_color);
+ set_dev_proc(pcdev, get_color_mapping_procs,
+ gx_default_DevRGB_get_color_mapping_procs);
+ set_dev_proc(pcdev, get_color_comp_index,
+ gx_default_DevRGB_get_color_comp_index);
+ pcdev->color_info.polarity = GX_CINFO_POLARITY_ADDITIVE;
+ pcdev->color_info.cm_name = "DeviceRGB";
+ pcdev->color_info.gray_index = GX_CINFO_COMP_NO_INDEX;
+ code = fixup_icc_struct(pcdev, gsRGB, DEFAULT_RGB_ICC);
+ if (code < 0)
+ return code;
+ break;
+ case 4:
+ set_dev_proc(pcdev, encode_color, chameleon_cmyk_encode_color);
+ set_dev_proc(pcdev, decode_color, chameleon_cmyk_decode_color);
+ set_dev_proc(pcdev, get_color_mapping_procs,
+ gx_default_DevCMYK_get_color_mapping_procs);
+ set_dev_proc(pcdev, get_color_comp_index,
+ gx_default_DevCMYK_get_color_comp_index);
+ pcdev->color_info.polarity = GX_CINFO_POLARITY_SUBTRACTIVE;
+ pcdev->color_info.cm_name = "DevicCMYK";
+ pcdev->color_info.gray_index = 3;
+ code = fixup_icc_struct(pcdev, gsCMYK, DEFAULT_CMYK_ICC);
+ if (code < 0)
+ return code;
+ break;
+ }
+ set_dev_proc(pcdev, map_color_rgb, dev_proc(pcdev, decode_color));
+ set_dev_proc(pcdev, map_cmyk_color, dev_proc(pcdev, encode_color));
+ set_dev_proc(pcdev, map_rgb_color, dev_proc(pcdev, encode_color));
+
+ /* Reset the separable and linear shift, masks, bits. */
+ set_linear_color_bits_mask_shift((gx_device *)pcdev);
+ pcdev->color_info.separable_and_linear = GX_CINFO_SEP_LIN;
+ pcdev->bpc = bpc;
+ pcdev->num_components = num_comps;
+
+ /* Invalidate the link. */
+ reset_icclink(pcdev);
+
+ return 0;
}
/* Get parameters. We provide a default CRD. */
@@ -357,9 +459,7 @@ chameleon_put_params(gx_device * pdev, gs_param_list * plist)
pcdev->output_as_pxm = pxm;
pcdev->language_uses_rops = language_uses_rops;
- reconfigure_baby(pcdev);
-
- return 0;
+ return reconfigure_baby(pcdev);
}
static int
@@ -374,35 +474,6 @@ chameleon_spec_op(gx_device *dev_, int op, void *data, int datasize)
}
static int
-craprgbtocmyk(void *arg,
- byte **dst,
- byte **src,
- int w,
- int h,
- int raster)
-{
- byte *d = *dst;
- byte *s = *src;
-
- while (w--) {
- int c = 255-*s++;
- int m = 255-*s++;
- int y = 255-*s++;
- int k = c;
- if (k > m)
- k = m;
- if (k > y)
- k = y;
- *d++ = c - k;
- *d++ = m - k;
- *d++ = y - k;
- *d++ = k;
- }
-
- return 0;
-}
-
-static int
header_4x1(gp_file *file, gx_device_chameleon *pcdev)
{
gp_fprintf(file, "P7\nWIDTH %d\nHEIGHT %d\nDEPTH 4\nMAXVAL 255\nTUPLTYPE CMYK\nENDHDR\n",
@@ -448,12 +519,20 @@ header_3x8(gp_file *file, gx_device_chameleon *pcdev)
}
static int
+header_4x8(gp_file *file, gx_device_chameleon *pcdev)
+{
+ gp_fprintf(file, "P7\nWIDTH %d\nHEIGHT %d\nDEPTH 4\nMAXVAL 255\nTUPLTYPE CMYK\nENDHDR\n",
+ pcdev->width, pcdev->height);
+ return 0;
+}
+
+static int
do_fwrite(const byte *data, int n, gp_file *file)
{
return gp_fwrite(data, 1, (n+7)>>3, file);
}
-static int tiff_chunky_post_cm(void *arg, byte **dst, byte **src, int w, int h,
+static int chunky_post_cm(void *arg, byte **dst, byte **src, int w, int h,
int raster)
{
gsicc_bufferdesc_t input_buffer_desc, output_buffer_desc;
@@ -517,8 +596,6 @@ chameleon_print_page(gx_device_printer * pdev, gp_file * prn_stream)
int (*write)(const byte *, int, gp_file *) = do_fwrite;
int (*header)(gp_file *, gx_device_chameleon *) = NULL;
int bitwidth;
- gx_downscale_cm_fn *col_convert = NULL;
- void *col_convert_arg = NULL;
switch (pcdev->dst_num_components * pcdev->dst_bpc) {
case 1*1: case 1*2: case 1*4: case 1*8:
@@ -552,6 +629,8 @@ chameleon_print_page(gx_device_printer * pdev, gp_file * prn_stream)
case 4:
if (pcdev->dst_bpc == 1)
header = header_4x1, write = write_4x1;
+ else if (pcdev->dst_bpc == 8)
+ header = header_4x8;
break;
case 3:
if (pcdev->dst_bpc == 8)
@@ -565,18 +644,48 @@ chameleon_print_page(gx_device_printer * pdev, gp_file * prn_stream)
* components, then use that. */
if (pcdev->icc_struct->postren_profile &&
pcdev->icc_struct->postren_profile->num_comps == pcdev->dst_num_components) {
- col_convert = tiff_chunky_post_cm;
- col_convert_arg = pcdev->icc_struct->postren_profile;
- }
- /* Can we get away with no conversion? */
- else if (pcdev->num_components == pcdev->dst_num_components &&
- pcdev->bpc == pcdev->dst_bpc) {
+ if (pcdev->linktype != linktype_postrender) {
+ reset_icclink(pcdev);
+ code = gx_downscaler_create_post_render_link((gx_device *)pdev,
+ &pcdev->icclink);
+ if (code < 0)
+ return code;
+ pcdev->linktype = linktype_postrender;
+ }
+ } else if (pcdev->num_components == pcdev->dst_num_components &&
+ pcdev->bpc == pcdev->dst_bpc) {
/* Nothing to do */
- }
- /* Otherwise, use some inbuilt crap conversions */
- else if (pcdev->num_components == 3 && pcdev->bpc == 8 && pcdev->dst_num_components == 4) {
- col_convert = craprgbtocmyk;
- col_convert_arg = NULL;
+ reset_icclink(pcdev);
+ } else if (pcdev->bpc == 8 && pcdev->dst_num_components == 4) {
+ if (pcdev->linktype != linktype_device) {
+ reset_icclink(pcdev);
+ code = gx_downscaler_create_icc_link((gx_device *)pdev,
+ &pcdev->icclink,
+ pcdev->default_device_profile);
+ if (code < 0)
+ return code;
+ pcdev->linktype = linktype_device;
+ }
+ } else if (pcdev->bpc == 8 && pcdev->dst_num_components == 3) {
+ if (pcdev->linktype != linktype_device) {
+ reset_icclink(pcdev);
+ code = gx_downscaler_create_icc_link((gx_device *)pdev,
+ &pcdev->icclink,
+ pcdev->default_device_profile);
+ if (code < 0)
+ return code;
+ pcdev->linktype = linktype_device;
+ }
+ } else if (pcdev->bpc == 8 && pcdev->dst_num_components == 1) {
+ if (pcdev->linktype != linktype_device) {
+ reset_icclink(pcdev);
+ code = gx_downscaler_create_icc_link((gx_device *)pdev,
+ &pcdev->icclink,
+ pcdev->default_device_profile);
+ if (code < 0)
+ return code;
+ pcdev->linktype = linktype_device;
+ }
} else {
emprintf(pdev->memory, "Chameleon device doesn't support this color conversion.\n");
return gs_error_rangecheck;
@@ -589,7 +698,8 @@ chameleon_print_page(gx_device_printer * pdev, gp_file * prn_stream)
pcdev->num_components,
&pcdev->downscale,
NULL, 0, /* Adjust width */
- col_convert, col_convert_arg, /* Color Management */
+ pcdev->icclink ? chunky_post_cm : NULL,
+ pcdev->icclink, /* Color Management */
pcdev->dst_num_components,
default_ht);
if (code < 0)
@@ -613,3 +723,13 @@ cleanup:
gs_free_object(pdev->memory, in_alloc, "chameleon_print_page(in)");
return code;
}
+
+static int
+chameleon_close(gx_device *pdev)
+{
+ gx_device_chameleon *pcdev = (gx_device_chameleon *)pdev;
+
+ gsicc_free_link_dev(pcdev->icclink);
+ pcdev->icclink = NULL;
+ return gdev_prn_close(pdev);
+}
diff --git a/devices/gdevdjet.c b/devices/gdevdjet.c
index 1ded0813..d2f936d1 100644
--- a/devices/gdevdjet.c
+++ b/devices/gdevdjet.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 2001-2021 Artifex Software, Inc.
+/* Copyright (C) 2001-2022 Artifex Software, Inc.
All Rights Reserved.
This software is provided AS-IS with no warranty, either express or
@@ -330,7 +330,7 @@ ljet4pjl_close(gx_device *pdev)
init string is stored in buf, so make sure that buf is at least 5
bytes larger than str. */
static void
-hpjet_make_init(gx_device_printer *pdev, char *buf, const char *str)
+hpjet_make_init(gx_device_printer *pdev, char buf[80], const char *str)
{
gx_device_hpjet *dev = (gx_device_hpjet *)pdev;
int paper_source = -1;
@@ -339,9 +339,9 @@ hpjet_make_init(gx_device_printer *pdev, char *buf, const char *str)
else if (dev->MediaPosition_set && dev->MediaPosition >= 0)
paper_source = dev->MediaPosition;
if (paper_source >= 0)
- gs_sprintf(buf, "%s\033&l%dH", str, paper_source);
+ gs_snprintf(buf, 80, "%s\033&l%dH", str, paper_source);
else
- gs_sprintf(buf, "%s", str);
+ gs_snprintf(buf, 80, "%s", str);
}
/* The DeskJet can compress (mode 2) */
@@ -377,7 +377,7 @@ fs600_print_page_copies(gx_device_printer * pdev, gp_file * prn_stream,
char base_init[60];
char init[80];
- gs_sprintf(base_init, "\033*r0F\033&u%dD", dots_per_inch);
+ gs_snprintf(base_init, sizeof(base_init), "\033*r0F\033&u%dD", dots_per_inch);
hpjet_make_init(pdev, init, base_init);
return dljet_mono_print_page_copies(pdev, prn_stream, num_copies,
dots_per_inch, PCL_FS600_FEATURES,
@@ -441,7 +441,7 @@ ljet3d_print_page_copies(gx_device_printer * pdev, gp_file * prn_stream,
bool tumble=dev->Tumble;
hpjet_make_init(pdev, init, "\033&l-180u36Z\033*r0F");
- gs_sprintf(even_init, "\033&l180u36Z\033*r0F");
+ gs_snprintf(even_init, sizeof(even_init), "\033&l180u36Z\033*r0F");
return dljet_mono_print_page_copies(pdev, prn_stream, num_copies,
300, PCL_LJ3D_FEATURES, init, even_init, tumble);
}
@@ -456,9 +456,9 @@ ljet4_print_page_copies(gx_device_printer * pdev, gp_file * prn_stream,
char base_init[60];
char init[80];
- gs_sprintf(base_init, "\033&l-180u36Z\033*r0F\033&u%dD", dots_per_inch);
+ gs_snprintf(base_init, sizeof(base_init), "\033&l-180u36Z\033*r0F\033&u%dD", dots_per_inch);
if (gdev_pcl_page_orientation((gx_device *) pdev) == PAGE_ORIENTATION_LANDSCAPE)
- gs_sprintf(base_init, "\033&l0u140Z\033*r0F\033&u%dD", dots_per_inch);
+ gs_snprintf(base_init, sizeof(base_init), "\033&l0u140Z\033*r0F\033&u%dD", dots_per_inch);
hpjet_make_init(pdev, init, base_init);
return dljet_mono_print_page_copies(pdev, prn_stream, num_copies,
@@ -490,9 +490,9 @@ ljet4d_print_page_copies(gx_device_printer * pdev, gp_file * prn_stream,
in duplex mode we set this parameters for each odd page
(paper tray is set by "hpjet_make_init")
*/
- gs_sprintf(base_init, "\033&l-180u36Z\033*r0F\033&u%dD", dots_per_inch);
+ gs_snprintf(base_init, sizeof(base_init), "\033&l-180u36Z\033*r0F\033&u%dD", dots_per_inch);
hpjet_make_init(pdev, init, base_init);
- gs_sprintf(even_init, "\033&l180u36Z\033*r0F\033&u%dD", dots_per_inch);
+ gs_snprintf(even_init, sizeof(even_init), "\033&l180u36Z\033*r0F\033&u%dD", dots_per_inch);
return dljet_mono_print_page_copies(pdev, prn_stream, num_copies,
dots_per_inch, PCL_LJ4D_FEATURES,
init,even_init,tumble);
@@ -507,7 +507,7 @@ ljet4pjl_print_page_copies(gx_device_printer *pdev, gp_file *prn_stream,
{ int dots_per_inch = (int)pdev->y_pixels_per_inch;
char real_init[60];
- gs_sprintf(real_init, "\033&l-180u36Z\033*r0F\033&u%dD", dots_per_inch);
+ gs_snprintf(real_init, sizeof(real_init), "\033&l-180u36Z\033*r0F\033&u%dD", dots_per_inch);
return dljet_mono_print_page_copies(pdev, prn_stream, num_copies,
dots_per_inch, PCL_LJ4PJL_FEATURES,
real_init, real_init, false);
diff --git a/devices/gdevdsp.c b/devices/gdevdsp.c
index d772ccfd..f757666a 100644
--- a/devices/gdevdsp.c
+++ b/devices/gdevdsp.c
@@ -372,7 +372,7 @@ display_output_page(gx_device * dev, int copies, int flush)
}
if (code >= 0)
- code = gx_finish_output_page(dev, copies, flush);
+ code = gx_finish_output_page((gx_device *)ddev, copies, flush);
return code;
}
@@ -1276,12 +1276,12 @@ display_separation_decode_color(gx_device * dev, gx_color_index color,
* Device proc for updating the equivalent CMYK color for spot colors.
*/
static int
-display_update_spot_equivalent_colors(gx_device * dev, const gs_gstate * pgs)
+display_update_spot_equivalent_colors(gx_device * dev, const gs_gstate * pgs, const gs_color_space *pcs)
{
gx_device_display * ddev = (gx_device_display *)dev;
if ((ddev->nFormat & DISPLAY_COLORS_MASK) == DISPLAY_COLORS_SEPARATION)
- update_spot_equivalent_cmyk_colors(dev, pgs,
+ update_spot_equivalent_cmyk_colors(dev, pgs, pcs,
&ddev->devn_params, &ddev->equiv_cmyk_colors);
return 0;
}
@@ -1810,6 +1810,10 @@ display_set_separations(gx_device_display *dev)
int sep_num;
int sep_name_size;
unsigned int c, m, y, k;
+ gx_device_display *head = dev;
+
+ while(head->parent)
+ head = (gx_device_display *)head->parent;
/* Map the separation numbers to component numbers */
memset(comp_map, 0, sizeof(comp_map));
@@ -1858,10 +1862,7 @@ display_set_separations(gx_device_display *dev)
* 65535 / frac_1;
}
}
- while(dev->parent)
- dev = (gx_device_display *)dev->parent;
-
- (*dev->callback->display_separation)(dev->pHandle, dev,
+ (*head->callback->display_separation)(dev->pHandle, head,
comp_num, name,
(unsigned short)c, (unsigned short)m,
(unsigned short)y, (unsigned short)k);
diff --git a/devices/gdevfpng.c b/devices/gdevfpng.c
index d57df8f8..f533d777 100644
--- a/devices/gdevfpng.c
+++ b/devices/gdevfpng.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 2001-2021 Artifex Software, Inc.
+/* Copyright (C) 2001-2022 Artifex Software, Inc.
All Rights Reserved.
This software is provided AS-IS with no warranty, either express or
@@ -301,6 +301,8 @@ static int fpng_process(void *arg, gx_device *dev, gx_device *bdev, const gs_int
p = params.data[0];
stream.next_out = &buffer->data[0];
stream.avail_out = buffer->size;
+ stream.total_out = 0;
+ stream.total_in = 0;
/* Nasty zlib hackery here. Zlib always outputs a 'start of stream'
* marker at the beginning. We just want a block, so for all blocks
@@ -311,7 +313,9 @@ static int fpng_process(void *arg, gx_device *dev, gx_device *bdev, const gs_int
{
stream.next_in = &sub;
stream.avail_in = 1;
- deflate(&stream, Z_FULL_FLUSH);
+ err = deflate(&stream, Z_FULL_FLUSH);
+ if (err != Z_OK)
+ return_error(gs_error_VMerror);
stream.next_out = &buffer->data[0];
stream.avail_out = buffer->size;
stream.total_out = 0;
@@ -321,15 +325,19 @@ static int fpng_process(void *arg, gx_device *dev, gx_device *bdev, const gs_int
for (y = h-1; y >= 0; y--)
{
stream.avail_in = 1;
- deflate(&stream, Z_NO_FLUSH);
+ err = deflate(&stream, Z_NO_FLUSH);
+ if (err != Z_OK)
+ return_error(gs_error_VMerror);
stream.next_in = p;
stream.avail_in = w*3;
- deflate(&stream, (y == 0 ? (lastband ? Z_FINISH : Z_FULL_FLUSH) : Z_NO_FLUSH));
+ err = deflate(&stream, (y == 0 ? (lastband ? Z_FINISH : Z_FULL_FLUSH) : Z_NO_FLUSH));
+ if (err != Z_OK)
+ return_error(gs_error_VMerror);
p += raster;
stream.next_in = &paeth;
}
/* Ignore errors given here */
- deflateEnd(&stream);
+ (void)deflateEnd(&stream);
buffer->compressed = stream.total_out;
diff --git a/devices/gdevijs.c b/devices/gdevijs.c
index 0252e3b5..3851f911 100644
--- a/devices/gdevijs.c
+++ b/devices/gdevijs.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 2001-2021 Artifex Software, Inc.
+/* Copyright (C) 2001-2022 Artifex Software, Inc.
All Rights Reserved.
This software is provided AS-IS with no warranty, either express or
@@ -633,7 +633,7 @@ gsijs_set_margin_params(gx_device_ijs *ijsdev)
}
if (code == 0) {
- gs_sprintf (buf, "%gx%g", ijsdev->MediaSize[0] * (1.0 / 72),
+ gs_snprintf (buf, sizeof(buf), "%gx%g", ijsdev->MediaSize[0] * (1.0 / 72),
ijsdev->MediaSize[1] * (1.0 / 72));
code = ijs_client_set_param(ijsdev->ctx, 0, "PaperSize",
buf, strlen(buf));
@@ -678,7 +678,7 @@ gsijs_set_margin_params(gx_device_ijs *ijsdev)
m[1] = ijsdev->MediaSize[1] * (1.0 / 72) -
printable_top - printable_height;
gx_device_set_margins((gx_device *)ijsdev, m, true);
- gs_sprintf (buf, "%gx%g", printable_left, printable_top);
+ gs_snprintf (buf, sizeof(buf), "%gx%g", printable_left, printable_top);
code = ijs_client_set_param(ijsdev->ctx, 0, "TopLeft",
buf, strlen(buf));
}
@@ -848,7 +848,7 @@ gsijs_open(gx_device *dev)
/* Note: dup() may not be portable to all interesting IJS
platforms. In that case, this branch should be #ifdef'ed out.
*/
- gs_sprintf(buf, "%d", fd);
+ gs_snprintf(buf, sizeof(buf), "%d", fd);
ijs_client_set_param(ijsdev->ctx, 0, "OutputFD", buf, strlen(buf));
close(fd);
} else {
@@ -1013,9 +1013,9 @@ gsijs_output_page(gx_device *dev, int num_copies, int flush)
}
/* Required page parameters */
- gs_sprintf(buf, "%d", n_chan);
+ gs_snprintf(buf, sizeof(buf), "%d", n_chan);
gsijs_client_set_param(ijsdev, "NumChan", buf);
- gs_sprintf(buf, "%d", ijsdev->BitsPerSample);
+ gs_snprintf(buf, sizeof(buf), "%d", ijsdev->BitsPerSample);
gsijs_client_set_param(ijsdev, "BitsPerSample", buf);
/* This needs to become more sophisticated for DeviceN. */
@@ -1023,12 +1023,12 @@ gsijs_output_page(gx_device *dev, int num_copies, int flush)
((n_chan == 3) ? (krgb_mode ? ((k_bits == 1) ? "KRGB" : "KxRGB") : "DeviceRGB") : "DeviceGray"));
gsijs_client_set_param(ijsdev, "ColorSpace", buf);
- gs_sprintf(buf, "%d", ijs_width);
+ gs_snprintf(buf, sizeof(buf), "%d", ijs_width);
gsijs_client_set_param(ijsdev, "Width", buf);
- gs_sprintf(buf, "%d", ijs_height);
+ gs_snprintf(buf, sizeof(buf), "%d", ijs_height);
gsijs_client_set_param(ijsdev, "Height", buf);
- gs_sprintf(buf, "%gx%g", xres, yres);
+ gs_snprintf(buf, sizeof(buf), "%gx%g", xres, yres);
gsijs_client_set_param(ijsdev, "Dpi", buf);
#ifdef KRGB_DEBUG
diff --git a/devices/gdevl31s.c b/devices/gdevl31s.c
index 8832c13a..5532ec5e 100644
--- a/devices/gdevl31s.c
+++ b/devices/gdevl31s.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 2001-2021 Artifex Software, Inc.
+/* Copyright (C) 2001-2022 Artifex Software, Inc.
All Rights Reserved.
This software is provided AS-IS with no warranty, either express or
@@ -191,9 +191,9 @@ lj3100sw_print_page_copies(gx_device_printer *pdev, gp_file *prn_stream, int num
if (gdev_prn_file_is_new(pdev)) {
lj3100sw_output_section_header(prn_stream, 1, 0, 0);
lj3100sw_output_repeated_data_bytes(prn_stream, buffer, &ptr, 0x1b, 12);
- ptr += gs_sprintf(ptr, "\r\nBD");
+ ptr += gs_snprintf(ptr, sizeof(buffer) - (ptr - buffer), "\r\nBD");
lj3100sw_output_repeated_data_bytes(prn_stream, buffer, &ptr, 0, 5520);
- ptr += gs_sprintf(ptr, "%s\r\n%s %d\r\n%s %d\r\n%s %d\r\n%s %d\r\n%s %d\r\n%s %d\r\n",
+ ptr += gs_snprintf(ptr, sizeof(buffer) - (ptr - buffer), "%s\r\n%s %d\r\n%s %d\r\n%s %d\r\n%s %d\r\n%s %d\r\n%s %d\r\n",
"NJ",
"PQ", -1,
"RE", high_resolution ? 6 : 2,
@@ -205,7 +205,7 @@ lj3100sw_print_page_copies(gx_device_printer *pdev, gp_file *prn_stream, int num
}
lj3100sw_output_section_header(prn_stream, 3, ppdev->NumCopies, 0);
- ptr += gs_sprintf(ptr, "%s %d\r\n%s\r\n",
+ ptr += gs_snprintf(ptr, sizeof(buffer) - (ptr - buffer), "%s %d\r\n%s\r\n",
"CM", 1,
"PD");
*ptr++ = 0;
diff --git a/devices/gdevpdfimg.c b/devices/gdevpdfimg.c
index 81e7a48e..d0b412ec 100644
--- a/devices/gdevpdfimg.c
+++ b/devices/gdevpdfimg.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 2001-2021 Artifex Software, Inc.
+/* Copyright (C) 2001-2022 Artifex Software, Inc.
All Rights Reserved.
This software is provided AS-IS with no warranty, either express or
@@ -200,8 +200,6 @@ static int gdev_pdf_image_begin_page(gx_device_pdf_image *pdf_dev,
gp_file *file)
{
gx_device_printer *const pdev = (gx_device_printer *)pdf_dev;
- cmm_dev_profile_t *profile_struct;
- gsicc_rendering_param_t rendering_params;
int code;
pdfimage_page *page;
@@ -213,39 +211,11 @@ static int gdev_pdf_image_begin_page(gx_device_pdf_image *pdf_dev,
if (gdev_prn_file_is_new(pdev)) {
/* Set up the icc link settings at this time */
- code = dev_proc(pdev, get_profile)((gx_device *)pdev, &profile_struct);
- if (code < 0)
- return_error(gs_error_undefined);
- if (profile_struct->postren_profile != NULL) {
- rendering_params.black_point_comp = gsBLACKPTCOMP_ON;
- rendering_params.graphics_type_tag = GS_UNKNOWN_TAG;
- rendering_params.override_icc = false;
- rendering_params.preserve_black = gsBLACKPRESERVE_OFF;
- rendering_params.rendering_intent = gsRELATIVECOLORIMETRIC;
- rendering_params.cmm = gsCMM_DEFAULT;
- if (profile_struct->oi_profile != NULL) {
- pdf_dev->icclink = gsicc_alloc_link_dev(pdev->memory,
- profile_struct->oi_profile, profile_struct->postren_profile,
- &rendering_params);
- } else if (profile_struct->link_profile != NULL) {
- pdf_dev->icclink = gsicc_alloc_link_dev(pdev->memory,
- profile_struct->link_profile, profile_struct->postren_profile,
- &rendering_params);
- } else {
- pdf_dev->icclink = gsicc_alloc_link_dev(pdev->memory,
- profile_struct->device_profile[GS_DEFAULT_DEVICE_PROFILE], profile_struct->postren_profile,
- &rendering_params);
- }
- if (pdf_dev->icclink == NULL) {
- gs_free_object(pdf_dev->memory->non_gc_memory, page, "pdfimage create new page");
- return_error(gs_error_VMerror);
- }
- /* If it is identity, release it now and set link to NULL */
- if (pdf_dev->icclink->is_identity) {
- pdf_dev->icclink->procs.free_link(pdf_dev->icclink);
- gsicc_free_link_dev(pdev->memory, pdf_dev->icclink);
- pdf_dev->icclink = NULL;
- }
+ code = gx_downscaler_create_post_render_link((gx_device *)pdev,
+ &pdf_dev->icclink);
+ if (code < 0) {
+ gs_free_object(pdf_dev->memory->non_gc_memory, page, "pdfimage create new page");
+ return code;
}
/* Set up the stream and insert the file header */
@@ -603,7 +573,7 @@ pdf_image_downscale_and_print_page(gx_device_printer *dev,
pprintd1(pdf_dev->strm, "%d 0 obj\n", page->PageDictObjectNumber);
pprintd1(pdf_dev->strm, "<<\n/Contents %d 0 R\n", page->PageStreamObjectNumber);
stream_puts(pdf_dev->strm, "/Type /Page\n/Parent 2 0 R\n");
- gs_sprintf(Buffer, "/MediaBox [0 0 %f %f]\n", ((double)pdf_dev->width / pdf_dev->HWResolution[0]) * 72, ((double)pdf_dev->height / pdf_dev->HWResolution[1]) * 72);
+ gs_snprintf(Buffer, sizeof(Buffer), "/MediaBox [0 0 %f %f]\n", ((double)pdf_dev->width / pdf_dev->HWResolution[0]) * 72, ((double)pdf_dev->height / pdf_dev->HWResolution[1]) * 72);
stream_puts(pdf_dev->strm, Buffer);
pprintd1(pdf_dev->strm, "/Resources <<\n/XObject <<\n/Im1 %d 0 R\n>>\n", page->ImageObjectNumber);
if (pdf_dev->ocr.file_init)
@@ -699,7 +669,7 @@ static void write_xref_entry (stream *s, gs_offset_t Offset)
if (Offset > 9999999999){
Offset = 0;
}
- gs_sprintf(O, "%d", Offset);
+ gs_snprintf(O, sizeof(O), "%d", Offset);
for (i=0; i< (10 - strlen(O)); i++)
stream_puts(s, "0");
stream_puts(s, O);
@@ -707,13 +677,13 @@ static void write_xref_entry (stream *s, gs_offset_t Offset)
}
static void
-pdf_store_default_Producer(char *buf)
+pdf_store_default_Producer(char buf[256])
{
int major = (int)(gs_revision / 1000);
int minor = (int)(gs_revision - (major * 1000)) / 10;
int patch = gs_revision % 10;
- gs_sprintf(buf, "(%s %d.%02d.%d)", gs_product, major, minor, patch);
+ gs_snprintf(buf, 256, "(%s %d.%02d.%d)", gs_product, major, minor, patch);
}
static int pdf_image_finish_file(gx_device_pdf_image *pdf_dev, int PCLm)
@@ -759,7 +729,7 @@ static int pdf_image_finish_file(gx_device_pdf_image *pdf_dev, int PCLm)
tms = *localtime(&t);
#endif
- gs_sprintf(CreationDate, "(D:%04d%02d%02d%02d%02d%02d%c%02d\'%02d\')",
+ gs_snprintf(CreationDate, sizeof(CreationDate), "(D:%04d%02d%02d%02d%02d%02d%c%02d\'%02d\')",
tms.tm_year + 1900, tms.tm_mon + 1, tms.tm_mday,
tms.tm_hour, tms.tm_min, tms.tm_sec,
timesign, timeoffset / 60, timeoffset % 60);
@@ -851,12 +821,8 @@ static int pdf_image_finish_file(gx_device_pdf_image *pdf_dev, int PCLm)
pdf_dev->Pages = NULL;
pdf_dev->NumPages = 0;
}
- if (pdf_dev->icclink != NULL)
- {
- pdf_dev->icclink->procs.free_link(pdf_dev->icclink);
- gsicc_free_link_dev(pdf_dev->memory, pdf_dev->icclink);
- pdf_dev->icclink = NULL;
- }
+ gsicc_free_link_dev(pdf_dev->icclink);
+ pdf_dev->icclink = NULL;
pdf_dev->RootOffset = 0;
pdf_dev->PagesOffset = 0;
pdf_dev->xrefOffset = 0;
@@ -1095,10 +1061,7 @@ pdf_image_put_some_params(gx_device * dev, gs_param_list * plist, int which)
(which & 2 ? GX_DOWNSCALER_PARAMS_TRAP : 0) |
(which & 4 ? GX_DOWNSCALER_PARAMS_ETS : 0)));
if (code < 0)
- {
ecode = code;
- param_signal_error(plist, param_name, ecode);
- }
}
if (ecode < 0)
return ecode;
@@ -1127,7 +1090,7 @@ pdf_image_put_params_downscale_cmyk_ets(gx_device * dev, gs_param_list * plist)
return pdf_image_put_some_params(dev, plist, 7);
}
-void
+static void
PCLm_get_initial_matrix(gx_device * dev, register gs_matrix * pmat)
{
gx_device_pdf_image *pdev = (gx_device_pdf_image *)dev;
@@ -1176,6 +1139,21 @@ PCLm_initialize_device_procs(gx_device *dev)
set_dev_proc(dev, put_params, pdf_image_put_params_downscale);
}
+static void
+PCLm8_initialize_device_procs(gx_device *dev)
+{
+ gdev_prn_initialize_device_procs_rgb(dev);
+
+ set_dev_proc(dev, open_device, PCLm_open);
+ set_dev_proc(dev, output_page, gdev_prn_output_page);
+ set_dev_proc(dev, get_initial_matrix, PCLm_get_initial_matrix);
+ set_dev_proc(dev, close_device, PCLm_close);
+ set_dev_proc(dev, get_params, pdf_image_get_params_downscale);
+ set_dev_proc(dev, put_params, pdf_image_put_params_downscale);
+ set_dev_proc(dev, encode_color, gx_default_8bit_map_gray_color);
+ set_dev_proc(dev, decode_color, gx_default_8bit_map_color_gray);
+}
+
static dev_proc_print_page(PCLm_print_page);
const gx_device_pdf_image gs_PCLm_device = {
@@ -1196,6 +1174,24 @@ const gx_device_pdf_image gs_PCLm_device = {
0 /* JPEGQ */
};
+const gx_device_pdf_image gs_PCLm8_device = {
+ prn_device_body_duplex(gx_device_pdf_image,
+ PCLm8_initialize_device_procs,
+ "pclm8",
+ DEFAULT_WIDTH_10THS, DEFAULT_HEIGHT_10THS,
+ 600, 600, /* 600 dpi by default */
+ 0, 0, 0, 0, /* Margins */
+ 1, /* num components */
+ 8, /* bits per sample */
+ 255, 0, 256, 0,
+ PCLm_print_page),
+ 3,
+ GX_DOWNSCALER_PARAMS_DEFAULTS,
+ 16, /* StripHeight */
+ 0.0, /* QFactor */
+ 0 /* JPEGQ */
+};
+
/* Open a temporary file, with or without a stream. */
static int
PCLm_open_temp_file(gx_device_pdf_image *pdev, PCLm_temp_file_t *ptf)
@@ -1328,8 +1324,6 @@ static int gdev_PCLm_begin_page(gx_device_pdf_image *pdf_dev,
gp_file *file)
{
gx_device_printer *const pdev = (gx_device_printer *)pdf_dev;
- cmm_dev_profile_t *profile_struct;
- gsicc_rendering_param_t rendering_params;
int code;
pdfimage_page *page;
@@ -1341,39 +1335,11 @@ static int gdev_PCLm_begin_page(gx_device_pdf_image *pdf_dev,
if (gdev_prn_file_is_new(pdev)) {
/* Set up the icc link settings at this time */
- code = dev_proc(pdev, get_profile)((gx_device *)pdev, &profile_struct);
- if (code < 0)
- return_error(gs_error_undefined);
- if (profile_struct->postren_profile != NULL) {
- rendering_params.black_point_comp = gsBLACKPTCOMP_ON;
- rendering_params.graphics_type_tag = GS_UNKNOWN_TAG;
- rendering_params.override_icc = false;
- rendering_params.preserve_black = gsBLACKPRESERVE_OFF;
- rendering_params.rendering_intent = gsRELATIVECOLORIMETRIC;
- rendering_params.cmm = gsCMM_DEFAULT;
- if (profile_struct->oi_profile != NULL) {
- pdf_dev->icclink = gsicc_alloc_link_dev(pdev->memory,
- profile_struct->oi_profile, profile_struct->postren_profile,
- &rendering_params);
- } else if (profile_struct->link_profile != NULL) {
- pdf_dev->icclink = gsicc_alloc_link_dev(pdev->memory,
- profile_struct->link_profile, profile_struct->postren_profile,
- &rendering_params);
- } else {
- pdf_dev->icclink = gsicc_alloc_link_dev(pdev->memory,
- profile_struct->device_profile[GS_DEFAULT_DEVICE_PROFILE], profile_struct->postren_profile,
- &rendering_params);
- }
- if (pdf_dev->icclink == NULL) {
- gs_free_object(pdf_dev->memory->non_gc_memory, page, "pdfimage create new page");
- return_error(gs_error_VMerror);
- }
- /* If it is identity, release it now and set link to NULL */
- if (pdf_dev->icclink->is_identity) {
- pdf_dev->icclink->procs.free_link(pdf_dev->icclink);
- gsicc_free_link_dev(pdev->memory, pdf_dev->icclink);
- pdf_dev->icclink = NULL;
- }
+ code = gx_downscaler_create_post_render_link((gx_device *)pdev,
+ &pdf_dev->icclink);
+ if (code < 0) {
+ gs_free_object(pdf_dev->memory->non_gc_memory, page, "pdfimage create new page");
+ return code;
}
/* Set up the stream and insert the file header */
@@ -1475,7 +1441,7 @@ PCLm_downscale_and_print_page(gx_device_printer *dev,
pprintd1(pdf_dev->strm, "%d 0 obj\n", page->PageDictObjectNumber);
pprintd1(pdf_dev->strm, "<<\n/Contents %d 0 R\n", page->PageStreamObjectNumber);
stream_puts(pdf_dev->strm, "/Type /Page\n/Parent 2 0 R\n");
- gs_sprintf(Buffer, "/MediaBox [0 0 %.3f %.3f]\n", ((double)pdf_dev->width / pdf_dev->HWResolution[0]) * 72, ((double)pdf_dev->height / pdf_dev->HWResolution[1]) * 72);
+ gs_snprintf(Buffer, sizeof(Buffer), "/MediaBox [0 0 %.3f %.3f]\n", ((double)pdf_dev->width / pdf_dev->HWResolution[0]) * 72, ((double)pdf_dev->height / pdf_dev->HWResolution[1]) * 72);
stream_puts(pdf_dev->strm, Buffer);
stream_puts(pdf_dev->strm, "/Resources <<\n/XObject <<\n");
@@ -1494,9 +1460,9 @@ PCLm_downscale_and_print_page(gx_device_printer *dev,
double adjusted;
adjusted = height - (row * pdf_dev->StripHeight);
adjusted = adjusted / (pdf_dev->HWResolution[1] / (factor * 72));
- gs_sprintf(Buffer, "%.3f 0 0 %.3f 0 0 cm\n/Im%d Do Q\n", (width / (pdf_dev->HWResolution[0] / 72)) * factor, adjusted, row);
+ gs_snprintf(Buffer, sizeof(Buffer), "%.3f 0 0 %.3f 0 0 cm\n/Im%d Do Q\n", (width / (pdf_dev->HWResolution[0] / 72)) * factor, adjusted, row);
} else
- gs_sprintf(Buffer, "%.3f 0 0 %.3f 0 %f cm\n/Im%d Do Q\n", (width / (pdf_dev->HWResolution[0] / 72)) * factor, StripDecrement, ((height / (pdf_dev->HWResolution[1] / 72)) * factor) - (StripDecrement * (row + 1)), row);
+ gs_snprintf(Buffer, sizeof(Buffer), "%.3f 0 0 %.3f 0 %f cm\n/Im%d Do Q\n", (width / (pdf_dev->HWResolution[0] / 72)) * factor, StripDecrement, ((height / (pdf_dev->HWResolution[1] / 72)) * factor) - (StripDecrement * (row + 1)), row);
stream_puts(pdf_dev->temp_stream.strm, Buffer);
pprintd2(pdf_dev->strm, "/Im%d %d 0 R\n", row, page->ImageObjectNumber + (row * 2));
}
@@ -1574,7 +1540,10 @@ PCLm_downscale_and_print_page(gx_device_printer *dev,
stream_puts(pdf_dev->strm, "/Subtype /Image\n");
pprintd1(pdf_dev->strm, "/Width %d\n", width);
pprintd1(pdf_dev->strm, "/Height %d\n", Read);
- stream_puts(pdf_dev->strm, "/ColorSpace /DeviceRGB\n");
+ if (dev->color_info.max_components == 1)
+ stream_puts(pdf_dev->strm, "/ColorSpace /DeviceGray\n");
+ else
+ stream_puts(pdf_dev->strm, "/ColorSpace /DeviceRGB\n");
stream_puts(pdf_dev->strm, "/BitsPerComponent 8\n");
switch (pdf_dev->Compression) {
case COMPRESSION_FLATE:
@@ -1674,7 +1643,10 @@ PCLm_downscale_and_print_page(gx_device_printer *dev,
stream_puts(pdf_dev->strm, "/Subtype /Image\n");
pprintd1(pdf_dev->strm, "/Width %d\n", width);
pprintd1(pdf_dev->strm, "/Height %d\n", Read);
- stream_puts(pdf_dev->strm, "/ColorSpace /DeviceRGB\n");
+ if (dev->color_info.max_components == 1)
+ stream_puts(pdf_dev->strm, "/ColorSpace /DeviceGray\n");
+ else
+ stream_puts(pdf_dev->strm, "/ColorSpace /DeviceRGB\n");
stream_puts(pdf_dev->strm, "/BitsPerComponent 8\n");
switch (pdf_dev->Compression) {
case COMPRESSION_FLATE:
diff --git a/devices/gdevpdfocr.c b/devices/gdevpdfocr.c
index 8dd5a599..ff60c120 100644
--- a/devices/gdevpdfocr.c
+++ b/devices/gdevpdfocr.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 2001-2021 Artifex Software, Inc.
+/* Copyright (C) 2001-2022 Artifex Software, Inc.
All Rights Reserved.
This software is provided AS-IS with no warranty, either express or
@@ -544,20 +544,20 @@ flush_word(gx_device_pdf_image *dev)
size = bbox[3]-bbox[1];
if (dev->ocr.cur_size != size) {
- gs_sprintf(buffer, "/Ft0 %.3f Tf", size);
+ gs_snprintf(buffer, sizeof(buffer), "/Ft0 %.3f Tf", size);
stream_puts(dev->strm, buffer);
dev->ocr.cur_size = size;
}
scale = (bbox[2]-bbox[0]) / size / len * 200;
if (dev->ocr.cur_scale != scale) {
- gs_sprintf(buffer, " %.3f Tz", scale);
+ gs_snprintf(buffer, sizeof(buffer), " %.3f Tz", scale);
stream_puts(dev->strm, buffer);
dev->ocr.cur_scale = scale;
}
- gs_sprintf(buffer, " 1 0 0 1 %.3f %.3f Tm[<", bbox[0], bbox[1]);
+ gs_snprintf(buffer, sizeof(buffer), " 1 0 0 1 %.3f %.3f Tm[<", bbox[0], bbox[1]);
stream_puts(dev->strm, buffer);
for (i = 0; i < len; i++) {
- gs_sprintf(buffer, "%04x", dev->ocr.word_chars[i]);
+ gs_snprintf(buffer, sizeof(buffer), "%04x", dev->ocr.word_chars[i]);
stream_puts(dev->strm, buffer);
}
stream_puts(dev->strm, ">]TJ\n");
@@ -607,19 +607,19 @@ ocr_callback(void *arg, const char *rune_,
size = bbox[3]-bbox[1];
if (ppdev->ocr.cur_size != size) {
- gs_sprintf(buffer, "/Ft0 %f Tf ", size);
+ gs_snprintf(buffer, sizeof(buffer), "/Ft0 %f Tf ", size);
stream_puts(ppdev->strm, buffer);
ppdev->ocr.cur_size = size;
}
scale = (bbox[2]-bbox[0]) / size * 200;
if (ppdev->ocr.cur_scale != scale) {
- gs_sprintf(buffer, " %f Tz ", scale);
+ gs_snprintf(buffer, sizeof(buffer), " %f Tz ", scale);
stream_puts(ppdev->strm, buffer);
ppdev->ocr.cur_scale = scale;
}
- gs_sprintf(buffer, "1 0 0 1 %f %f Tm ", bbox[0], bbox[1]);
+ gs_snprintf(buffer, sizeof(buffer), "1 0 0 1 %f %f Tm ", bbox[0], bbox[1]);
stream_puts(ppdev->strm, buffer);
- gs_sprintf(buffer, "<%04x>Tj\n", unicode);
+ gs_snprintf(buffer, sizeof(buffer), "<%04x>Tj\n", unicode);
stream_puts(ppdev->strm, buffer);
#else
bbox[0] = word_bbox[0] * scale / ppdev->ocr.xres;
diff --git a/devices/gdevplan.c b/devices/gdevplan.c
index 0ce82cda..abef8295 100644
--- a/devices/gdevplan.c
+++ b/devices/gdevplan.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 2001-2021 Artifex Software, Inc.
+/* Copyright (C) 2001-2022 Artifex Software, Inc.
All Rights Reserved.
This software is provided AS-IS with no warranty, either express or
@@ -24,6 +24,9 @@
#include "gdevplnx.h"
#include "gdevppla.h"
#include "gdevmem.h"
+#include "gxdownscale.h"
+#include "gsicc_cache.h"
+#include "gxdevsop.h"
/* This file defines 5 different devices:
*
@@ -48,6 +51,13 @@
/* ------ The device descriptors ------ */
+typedef struct {
+ gx_device_common;
+ gx_prn_device_common;
+ gx_downscaler_params downscale;
+ gsicc_link_t *icclink;
+} gx_device_plan;
+
/*
* Default X and Y resolution.
*/
@@ -61,6 +71,7 @@ static dev_proc_decode_color(plang_decode_color);
static dev_proc_encode_color(planc_encode_color);
static dev_proc_decode_color(planc_decode_color);
static dev_proc_map_color_rgb(planc_map_color_rgb);
+static dev_proc_dev_spec_op(plan_spec_op);
static dev_proc_open_device(plan_open);
static dev_proc_close_device(plan_close);
@@ -77,6 +88,31 @@ static int planr_print_page(gx_device_printer * pdev, gp_file * pstream);
/* The device procedures */
+static int
+plan_get_params(gx_device * dev, gs_param_list * plist)
+{
+ gx_device_plan *pdev = (gx_device_plan *)dev;
+ int code = gdev_prn_get_params(dev, plist);
+
+ if (code < 0)
+ return code;
+
+ return gx_downscaler_write_params(plist, &pdev->downscale, 0);
+}
+
+static int
+plan_put_params(gx_device *dev, gs_param_list * plist)
+{
+ gx_device_plan *pdev = (gx_device_plan *)dev;
+ int code;
+
+ code = gx_downscaler_read_params(plist, &pdev->downscale, 0);
+ if (code < 0)
+ return code;
+
+ return gdev_prn_put_params(dev, plist);
+}
+
static void
plan_base_initialize_device_procs(gx_device *dev,
dev_proc_map_color_rgb(map_color_rgb),
@@ -91,6 +127,8 @@ plan_base_initialize_device_procs(gx_device *dev,
set_dev_proc(dev, get_page_device, gx_page_device_get_page_device);
set_dev_proc(dev, encode_color, encode_color);
set_dev_proc(dev, decode_color, decode_color);
+ set_dev_proc(dev, get_params, plan_get_params);
+ set_dev_proc(dev, put_params, plan_put_params);
}
static void
@@ -109,6 +147,7 @@ plang_initialize_device_procs(gx_device *dev)
plang_decode_color,
plang_encode_color,
plang_decode_color);
+ set_dev_proc(dev, dev_spec_op, plan_spec_op);
}
static void
@@ -118,6 +157,7 @@ plan_initialize_device_procs(gx_device *dev)
plan_decode_color,
gx_default_rgb_map_rgb_color,
plan_decode_color);
+ set_dev_proc(dev, dev_spec_op, plan_spec_op);
}
static void
@@ -127,6 +167,7 @@ planc_initialize_device_procs(gx_device *dev)
planc_map_color_rgb,
planc_encode_color,
planc_decode_color);
+ set_dev_proc(dev, dev_spec_op, plan_spec_op);
}
static void
@@ -149,30 +190,31 @@ planr_initialize_device_procs(gx_device *dev)
/* Macro for generating device descriptors. */
#define plan_prn_device(init, dev_name, num_comp, depth, max_gray, max_rgb, print_page) \
-{ prn_device_body(gx_device_printer, init, dev_name,\
+{ prn_device_body(gx_device_plan, init, dev_name,\
DEFAULT_WIDTH_10THS, DEFAULT_HEIGHT_10THS, X_DPI, Y_DPI,\
0, 0, 0, 0,\
num_comp, depth, max_gray, max_rgb, max_gray + 1, max_rgb + 1,\
- print_page)\
+ print_page),\
+ GX_DOWNSCALER_PARAMS_DEFAULTS\
}
/* The device descriptors themselves */
-const gx_device_printer gs_plan_device =
+const gx_device_plan gs_plan_device =
plan_prn_device(plan_initialize_device_procs, "plan",
3, 24, 255, 255, plan_print_page);
-const gx_device_printer gs_plang_device =
+const gx_device_plan gs_plang_device =
plan_prn_device(plang_initialize_device_procs, "plang",
1, 8, 255, 0, plang_print_page);
-const gx_device_printer gs_planm_device =
+const gx_device_plan gs_planm_device =
plan_prn_device(planm_initialize_device_procs, "planm",
1, 1, 1, 0, planm_print_page);
-const gx_device_printer gs_plank_device =
+const gx_device_plan gs_plank_device =
plan_prn_device(plank_initialize_device_procs, "plank",
4, 4, 1, 1, plank_print_page);
-const gx_device_printer gs_planc_device =
+const gx_device_plan gs_planc_device =
plan_prn_device(planc_initialize_device_procs, "planc",
4, 32, 255, 255, planc_print_page);
-const gx_device_printer gs_planr_device =
+const gx_device_plan gs_planr_device =
plan_prn_device(planr_initialize_device_procs, "planr",
3, 3, 1, 1, planr_print_page);
@@ -363,10 +405,14 @@ plan_open(gx_device * pdev)
static int
plan_close(gx_device *pdev)
{
+ gx_device_plan *dev = (gx_device_plan *)pdev;
+
#ifdef DEBUG_PRINT
emprintf(pdev->memory, "plan_close\n");
#endif
+ gsicc_free_link_dev(dev->icclink);
+ dev->icclink = NULL;
return gdev_prn_close(pdev);
}
@@ -486,26 +532,75 @@ planc_encode_color(gx_device * dev, const gx_color_value cv[])
return (color == gx_no_color_index ? color ^ 1 : color);
}
+static int
+plan_spec_op(gx_device *dev, int op, void *data, int datasize)
+{
+ if (op == gxdso_supports_iccpostrender) {
+ int bpc = dev->color_info.depth / dev->color_info.num_components;
+ return bpc == 8;
+ }
+ if (op == gxdso_skip_icc_component_validation) {
+ int bpc = dev->color_info.depth / dev->color_info.num_components;
+ return bpc == 8;
+ }
+ return gdev_prn_dev_spec_op(dev, op, data, datasize);
+}
+
/* ------ Internal routines ------ */
+static int post_cm(void *arg,
+ byte **dst,
+ byte **src,
+ int w,
+ int h,
+ int raster)
+{
+ gsicc_bufferdesc_t input_buffer_desc, output_buffer_desc;
+ gsicc_link_t *icclink = (gsicc_link_t*)arg;
+
+ gsicc_init_buffer(&input_buffer_desc, icclink->num_input, 1, false,
+ false, true, src[1] - src[0], raster, h, w);
+ gsicc_init_buffer(&output_buffer_desc, icclink->num_output, 1, false,
+ false, true, dst[1] - dst[0], raster, h, w);
+ icclink->procs.map_buffer(NULL, icclink, &input_buffer_desc, &output_buffer_desc,
+ src[0], dst[0]);
+ return 0;
+}
+
/* Print a page using a given row printing routine. */
static int
-plan_print_page_loop(gx_device_printer * pdev, int log2bits, int numComps,
+plan_print_page_loop(gx_device_printer *pdev, int log2bits, int numComps,
gp_file *pstream)
{
- int lnum;
+ gx_device_plan *dev = (gx_device_plan *)pdev;
+ int i, lnum;
int code = 0;
gs_get_bits_options_t options;
+ gx_downscaler_t ds;
+ gs_get_bits_params_t params;
+ int post_cm_comps;
+ byte *planes[GS_CLIENT_COLOR_MAX_COMPONENTS];
+ int factor = dev->downscale.downscale_factor;
+ int width = gx_downscaler_scale(pdev->width, factor);
+ int height = gx_downscaler_scale(pdev->height, factor);
+ int raster_plane = bitmap_raster(width << log2bits);
+
#ifdef DEBUG_DUMP
dump_row row_proc = NULL;
int output_is_nul = !strncmp(pdev->fname, "nul:", min(strlen(pdev->fname), 4)) ||
!strncmp(pdev->fname, "/dev/null", min(strlen(pdev->fname), 9));
-
- if (!output_is_nul)
- row_proc = dump_start(pdev->width, pdev->height, numComps, log2bits, pstream);
#endif
+
+ if (gdev_prn_file_is_new(pdev)) {
+ code = gx_downscaler_create_post_render_link((gx_device *)pdev,
+ &dev->icclink);
+ if (code < 0)
+ return code;
+ }
+
options = GB_ALIGN_ANY |
GB_RETURN_POINTER |
+ GB_RETURN_COPY |
GB_OFFSET_0 |
GB_RASTER_STANDARD |
GB_COLORS_NATIVE |
@@ -514,25 +609,54 @@ plan_print_page_loop(gx_device_printer * pdev, int log2bits, int numComps,
options |= GB_PACKING_CHUNKY;
else
options |= GB_PACKING_PLANAR;
- for (lnum = 0; lnum < pdev->height; lnum++) {
- gs_int_rect rect;
- gs_get_bits_params_t params;
-
- rect.p.x = 0;
- rect.p.y = lnum;
- rect.q.x = pdev->width;
- rect.q.y = lnum+1;
- memset(&params, 0, sizeof(params));
- params.options = options;
- params.x_offset = 0;
- code = (*dev_proc(pdev, get_bits_rectangle))((gx_device *)pdev, &rect, &params);
+
+ memset(&params, 0, sizeof(params));
+ params.options = options;
+ params.x_offset = 0;
+ post_cm_comps = dev->icclink ? dev->icclink->num_output : numComps;
+
+ planes[0] = gs_alloc_bytes(pdev->memory, raster_plane * post_cm_comps,
+ "plan_print_page_loop");
+ if (planes[0] == NULL)
+ return_error(gs_error_VMerror);
+ for (i = 1; i < post_cm_comps; i++) {
+ planes[i] = planes[i-1] + raster_plane;
+ params.data[i] = planes[i];
+ }
+
+ code = gx_downscaler_init_planar_cm(&ds,
+ (gx_device *)dev,
+ 1<<log2bits, /* src_bpc */
+ 1<<log2bits, /* dst_bpc */
+ numComps,
+ &dev->downscale,
+ &params,
+ dev->icclink ? post_cm : NULL,
+ dev->icclink,
+ post_cm_comps);
+ if (code < 0)
+ goto fail;
+
+#ifdef DEBUG_DUMP
+ if (!output_is_nul)
+ row_proc = dump_start(width, height, post_cm_comps, log2bits, pstream);
+#endif
+
+ for (lnum = 0; lnum < height; lnum++) {
+ for (i = 0; i < post_cm_comps; i++)
+ params.data[i] = planes[i];
+ code = gx_downscaler_get_bits_rectangle(&ds, &params, lnum);
if (code < 0)
break;
#ifdef DEBUG_DUMP
if (row_proc)
- (*row_proc)(pdev->width, params.data, pstream);
+ (*row_proc)(width, params.data, pstream);
#endif
}
+
+ gx_downscaler_fin(&ds);
+fail:
+ gs_free_object(pdev->memory, planes[0], "plan_print_page_loop");
return (code < 0 ? code : 0);
}
diff --git a/devices/gdevpng.c b/devices/gdevpng.c
index 5d353a12..554c664c 100644
--- a/devices/gdevpng.c
+++ b/devices/gdevpng.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 2001-2021 Artifex Software, Inc.
+/* Copyright (C) 2001-2022 Artifex Software, Inc.
All Rights Reserved.
This software is provided AS-IS with no warranty, either express or
@@ -317,6 +317,41 @@ const gx_device_pngalpha gs_pngalpha_device = {
0xffffff /* white background */
};
+const gx_device_pngalpha gs_png16malpha_device = {
+ std_device_part1_(gx_device_pngalpha,
+ pngalpha_initialize_device_procs, "png16malpha",
+ &st_device_printer, open_init_closed),
+ /* color_info */
+ {3 /* max components */,
+ 3 /* number components */,
+ GX_CINFO_POLARITY_ADDITIVE /* polarity */,
+ 32 /* depth */,
+ -1 /* gray index */,
+ 255 /* max gray */,
+ 255 /* max color */,
+ 256 /* dither grays */,
+ 256 /* dither colors */,
+ { 1, 1 } /* antialias info text, graphics */,
+ GX_CINFO_UNKNOWN_SEP_LIN /* separable_and_linear */,
+ { 0 } /* component shift */,
+ { 0 } /* component bits */,
+ { 0 } /* component mask */,
+ "DeviceRGB" /* process color name */,
+ GX_CINFO_OPMSUPPORTED_UNKNOWN /* opmsupported */,
+ 0 /* process_cmps */,
+ 0 /* icc_locations */
+ },
+ std_device_part2_(
+ (int)((float)(DEFAULT_WIDTH_10THS) * (X_DPI) / 10 + 0.5),
+ (int)((float)(DEFAULT_HEIGHT_10THS) * (Y_DPI) / 10 + 0.5),
+ X_DPI, Y_DPI),
+ offset_margin_values(0, 0, 0, 0, 0, 0),
+ std_device_part3_(),
+ prn_device_body_rest_(png_print_page),
+ GX_DOWNSCALER_PARAMS_DEFAULTS,
+ 0xffffff /* white background */
+};
+
/* ------ Private definitions ------ */
static int
@@ -603,7 +638,7 @@ do_png_print_page(gx_device_png * pdev, gp_file * file, bool monod)
int minor = (int)(gs_revision - (major * 1000)) / 10;
int patch = gs_revision % 10;
- gs_sprintf(software_text, "%s %d.%02d.%d", gs_product, major, minor, patch);
+ gs_snprintf(software_text, sizeof(software_text), "%s %d.%02d.%d", gs_product, major, minor, patch);
}
text_png.compression = -1; /* uncompressed */
text_png.key = software_key;
@@ -821,6 +856,7 @@ pngalpha_create_buf_device(gx_device **pbdev, gx_device *target, int y,
ptarget= (gx_device_printer *)target;
set_dev_proc(*pbdev, copy_alpha, ptarget->orig_procs.copy_alpha);
+ set_dev_proc(*pbdev, dev_spec_op, ptarget->orig_procs.dev_spec_op);
set_dev_proc(*pbdev, fillpage, pngalpha_fillpage);
return code;
}
diff --git a/devices/gdevpsd.c b/devices/gdevpsd.c
index 3c9f6b01..d538b784 100644
--- a/devices/gdevpsd.c
+++ b/devices/gdevpsd.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 2001-2021 Artifex Software, Inc.
+/* Copyright (C) 2001-2022 Artifex Software, Inc.
All Rights Reserved.
This software is provided AS-IS with no warranty, either express or
@@ -57,6 +57,7 @@ static dev_proc_get_params(psd_get_params);
static dev_proc_put_params(psd_put_params);
static dev_proc_get_params(psd_get_params_cmyk);
static dev_proc_put_params(psd_put_params_cmyk);
+static dev_proc_put_params(psd_put_params_cmyktag);
static dev_proc_print_page(psd_print_page);
static dev_proc_map_color_rgb(psd_map_color_rgb);
static dev_proc_get_color_mapping_procs(get_psdrgb_color_mapping_procs);
@@ -69,9 +70,19 @@ typedef enum {
psd_DEVICE_GRAY,
psd_DEVICE_RGB,
psd_DEVICE_CMYK,
+ psd_DEVICE_CMYKT,
psd_DEVICE_N
} psd_color_model;
+fixed_colorant_name DevCMYKTComponents[] = {
+ "Cyan",
+ "Magenta",
+ "Yellow",
+ "Black",
+ "Tags",
+ 0 /* List terminator */
+};
+
/*
* A structure definition for a DeviceN type device
*/
@@ -205,7 +216,7 @@ const psd_device gs_psdrgb_device =
{ true }, /* equivalent CMYK colors for spot colors */
/* PSD device specific parameters */
psd_DEVICE_RGB, /* Color model */
- GS_SOFT_MAX_SPOTS, /* max_spots */
+ GS_SOFT_MAX_SPOTS, /* max_spots */
false, /* colorants not locked */
GX_DOWNSCALER_PARAMS_DEFAULTS
};
@@ -215,13 +226,13 @@ const psd_device gs_psdrgb16_device =
psd_device_body(psd_initialize_device_procs, "psdrgb16", 3, GX_CINFO_POLARITY_ADDITIVE, 48, 65535, 65535, GX_CINFO_SEP_LIN, "DeviceRGB"),
/* devn_params specific parameters */
{ 16, /* Bits per color - must match ncomp, depth, etc. above */
- DeviceRGBComponents, /* Names of color model colorants */
- 3, /* Number colorants for RGB */
- 0, /* MaxSeparations has not been specified */
- -1, /* PageSpotColors has not been specified */
- { 0 }, /* SeparationNames */
- 0, /* SeparationOrder names */
- { 0, 1, 2, 3, 4, 5, 6, 7 } /* Initial component SeparationOrder */
+ DeviceRGBComponents, /* Names of color model colorants */
+ 3, /* Number colorants for RGB */
+ 0, /* MaxSeparations has not been specified */
+ -1, /* PageSpotColors has not been specified */
+ { 0 }, /* SeparationNames */
+ 0, /* SeparationOrder names */
+ {0, 1, 2, 3, 4, 5, 6, 7 } /* Initial component SeparationOrder */
},
{ true }, /* equivalent CMYK colors for spot colors */
/* PSD device specific parameters */
@@ -244,6 +255,19 @@ psdcmyk_initialize_device_procs(gx_device *dev)
set_dev_proc(dev, get_color_mapping_procs, get_psd_color_mapping_procs);
}
+/*
+ * PSD device with CMYK process color model, spot color support, and tags.
+ */
+static void
+psdcmyktag_initialize_device_procs(gx_device *dev)
+{
+ psd_initialize_device_procs(dev);
+
+ set_dev_proc(dev, get_params, psd_get_params_cmyk);
+ set_dev_proc(dev, put_params, psd_put_params_cmyktag);
+ set_dev_proc(dev, get_color_mapping_procs, get_psd_color_mapping_procs);
+}
+
const psd_device gs_psdcmyk_device =
{
psd_device_body(psdcmyk_initialize_device_procs, "psdcmyk",
@@ -269,22 +293,47 @@ const psd_device gs_psdcmyk_device =
GX_DOWNSCALER_PARAMS_DEFAULTS
};
+const psd_device gs_psdcmyktags_device =
+{
+ psd_device_body(psdcmyktag_initialize_device_procs, "psdcmyktags",
+ ARCH_SIZEOF_GX_COLOR_INDEX, /* Number of components - need a nominal 1 bit for each */
+ GX_CINFO_POLARITY_SUBTRACTIVE,
+ ARCH_SIZEOF_GX_COLOR_INDEX * 8, /* 8 bits per component (albeit in planes) */
+ 255, 255, GX_CINFO_SEP_LIN, "DeviceCMYK"),
+ /* devn_params specific parameters */
+ { 8, /* Bits per color - must match ncomp, depth, etc. above */
+ DevCMYKTComponents, /* Names of color model colorants */
+ 4, /* Number colorants for CMYK. Tags added to extra in DevCMYKTComponents */
+ 0, /* MaxSeparations has not been specified */
+ -1, /* PageSpotColors has not been specified */
+ {0}, /* SeparationNames */
+ 0, /* SeparationOrder names */
+ {0, 1, 2, 3, 4, 5, 6, 7 } /* Initial component SeparationOrder */
+ },
+ { true }, /* equivalent CMYK colors for spot colors */
+ /* PSD device specific parameters */
+ psd_DEVICE_CMYKT, /* Color model */
+ GS_SOFT_MAX_SPOTS, /* max_spots */
+ false, /* colorants not locked */
+ GX_DOWNSCALER_PARAMS_DEFAULTS
+};
+
const psd_device gs_psdcmyk16_device =
{
psd_device_body(psdcmyk_initialize_device_procs, "psdcmyk16",
- ARCH_SIZEOF_GX_COLOR_INDEX, /* Number of components - need a nominal 1 bit for each */
- GX_CINFO_POLARITY_SUBTRACTIVE,
- ARCH_SIZEOF_GX_COLOR_INDEX * 16, /* 8 bits per component (albeit in planes) */
- 65535, 65535, GX_CINFO_SEP_LIN, "DeviceCMYK"),
+ ARCH_SIZEOF_GX_COLOR_INDEX, /* Number of components - need a nominal 1 bit for each */
+ GX_CINFO_POLARITY_SUBTRACTIVE,
+ ARCH_SIZEOF_GX_COLOR_INDEX * 16, /* 8 bits per component (albeit in planes) */
+ 65535, 65535, GX_CINFO_SEP_LIN, "DeviceCMYK"),
/* devn_params specific parameters */
{ 16, /* Bits per color - must match ncomp, depth, etc. above */
- DeviceCMYKComponents, /* Names of color model colorants */
- 4, /* Number colorants for CMYK */
- 0, /* MaxSeparations has not been specified */
- -1, /* PageSpotColors has not been specified */
- { 0 }, /* SeparationNames */
- 0, /* SeparationOrder names */
- { 0, 1, 2, 3, 4, 5, 6, 7 } /* Initial component SeparationOrder */
+ DeviceCMYKComponents, /* Names of color model colorants */
+ 4, /* Number colorants for CMYK */
+ 0, /* MaxSeparations has not been specified */
+ -1, /* PageSpotColors has not been specified */
+ { 0 }, /* SeparationNames */
+ 0, /* SeparationOrder names */
+ {0, 1, 2, 3, 4, 5, 6, 7 } /* Initial component SeparationOrder */
},
{ true }, /* equivalent CMYK colors for spot colors */
/* PSD device specific parameters */
@@ -294,6 +343,31 @@ const psd_device gs_psdcmyk16_device =
GX_DOWNSCALER_PARAMS_DEFAULTS
};
+const psd_device gs_psdcmyktags16_device =
+{
+ psd_device_body(psdcmyktag_initialize_device_procs, "psdcmyktags16",
+ ARCH_SIZEOF_GX_COLOR_INDEX, /* Number of components - need a nominal 1 bit for each */
+ GX_CINFO_POLARITY_SUBTRACTIVE,
+ ARCH_SIZEOF_GX_COLOR_INDEX * 16, /* 8 bits per component (albeit in planes) */
+ 65535, 65535, GX_CINFO_SEP_LIN, "DeviceCMYK"),
+ /* devn_params specific parameters */
+ { 16, /* Bits per color - must match ncomp, depth, etc. above */
+ DevCMYKTComponents, /* Names of color model colorants */
+ 4, /* Number colorants for CMYK. Tags added to extra in DevCMYKTComponents */
+ 0, /* MaxSeparations has not been specified */
+ -1, /* PageSpotColors has not been specified */
+ { 0 }, /* SeparationNames */
+ 0, /* SeparationOrder names */
+ {0, 1, 2, 3, 4, 5, 6, 7 } /* Initial component SeparationOrder */
+ },
+ { true }, /* equivalent CMYK colors for spot colors */
+ /* PSD device specific parameters */
+ psd_DEVICE_CMYKT, /* Color model */
+ GS_SOFT_MAX_SPOTS, /* max_spots */
+ false, /* colorants not locked */
+ GX_DOWNSCALER_PARAMS_DEFAULTS
+};
+
/* Open the psd devices */
int
psd_prn_open(gx_device * pdev)
@@ -302,6 +376,7 @@ psd_prn_open(gx_device * pdev)
int code;
int k;
cmm_dev_profile_t *profile_struct;
+ bool has_tags = (pdev_psd->color_model == psd_DEVICE_CMYKT);
#ifdef TEST_PAD_AND_ALIGN
pdev->pad = 5;
@@ -340,7 +415,7 @@ psd_prn_open(gx_device * pdev)
}
pdev->color_info.num_components =
(profile_struct->spotnames->count
- + pdev_psd->devn_params.page_spot_colors);
+ + pdev_psd->devn_params.page_spot_colors + has_tags);
if (pdev->color_info.num_components > pdev->color_info.max_components)
pdev->color_info.num_components = pdev->color_info.max_components;
} else {
@@ -351,7 +426,7 @@ psd_prn_open(gx_device * pdev)
if (!(pdev_psd->lock_colorants)) {
pdev->color_info.num_components =
(pdev_psd->devn_params.page_spot_colors
- + pdev_psd->devn_params.num_std_colorant_names);
+ + pdev_psd->devn_params.num_std_colorant_names + has_tags);
if (pdev->color_info.num_components > pdev->color_info.max_components)
pdev->color_info.num_components = pdev->color_info.max_components;
}
@@ -369,7 +444,7 @@ psd_prn_open(gx_device * pdev)
was set (Default is GS_SOFT_MAX_SPOTS which is 10),
it is made use of here. */
if (!(pdev_psd->lock_colorants)) {
- int num_comp = pdev_psd->max_spots + 4; /* Spots + CMYK */
+ int num_comp = pdev_psd->max_spots + 4 + has_tags; /* Spots + CMYK */
if (num_comp > GS_CLIENT_COLOR_MAX_COMPONENTS)
num_comp = GS_CLIENT_COLOR_MAX_COMPONENTS;
pdev->color_info.num_components = num_comp;
@@ -474,6 +549,49 @@ rgb_cs_to_psdcmyk_cm(const gx_device * dev, const gs_gstate *pgs,
}
static void
+cmyk_cs_to_psdcmyktags_cm(const gx_device *dev,
+ frac c, frac m, frac y, frac k, frac out[])
+{
+ const gs_devn_params *devn = gx_devn_prn_ret_devn_params_const(dev);
+ const int *map = devn->separation_order_map;
+ int j;
+
+ if (devn->num_separation_order_names > 0) {
+ /* This is to set only those that we are using */
+ int ncomps = dev->color_info.num_components;
+ for (j = 0; j < ncomps; j++)
+ out[j] = 0;
+ for (j = 0; j < devn->num_separation_order_names; j++) {
+ switch (map[j]) {
+ case 0:
+ out[0] = c;
+ break;
+ case 1:
+ out[1] = m;
+ break;
+ case 2:
+ out[2] = y;
+ break;
+ case 3:
+ out[3] = k;
+ break;
+ default:
+ break;
+ }
+ }
+ } else {
+ cmyk_cs_to_devn_cm(dev, map, c, m, y, k, out);
+ }
+ /* And set the tags. At this point, the color values
+ are frac representation for the range [0.0 1.0]. We
+ need to encode the graphics type, which is 0 to 255
+ accordingly, as it goes through the same mappings on
+ its way to devn and then eventually to 8 or 16 bit values */
+ if (map[4] != GX_DEVICE_COLOR_MAX_COMPONENTS)
+ out[4] = byte2frac(dev->graphics_type_tag & ~GS_DEVICE_ENCODES_TAGS);
+}
+
+static void
cmyk_cs_to_psdcmyk_cm(const gx_device * dev,
frac c, frac m, frac y, frac k, frac out[])
{
@@ -602,6 +720,10 @@ static const gx_cm_color_map_procs psdCMYK_procs = {
gray_cs_to_psdcmyk_cm, rgb_cs_to_psdcmyk_cm, cmyk_cs_to_psdcmyk_cm
};
+static const gx_cm_color_map_procs psdCMYKtags_procs = {
+ gray_cs_to_psdcmyk_cm, rgb_cs_to_psdcmyk_cm, cmyk_cs_to_psdcmyktags_cm
+};
+
static const gx_cm_color_map_procs psdN_procs = {
gray_cs_to_spotn_cm, rgb_cs_to_spotn_cm, cmyk_cs_to_spotn_cm
};
@@ -627,6 +749,8 @@ get_psd_color_mapping_procs(const gx_device * dev, const gx_device **map_dev)
return &psdRGB_procs;
else if (xdev->color_model == psd_DEVICE_CMYK)
return &psdCMYK_procs;
+ else if (xdev->color_model == psd_DEVICE_CMYKT)
+ return &psdCMYKtags_procs;
else if (xdev->color_model == psd_DEVICE_N)
return &psdN_procs;
else if (xdev->color_model == psd_DEVICE_GRAY)
@@ -744,6 +868,13 @@ psd_put_params_cmyk(gx_device * pdev, gs_param_list * plist)
return psd_put_params_generic(pdev, plist, 1);
}
+static int
+psd_put_params_cmyktag(gx_device *pdev, gs_param_list* plist)
+{
+ pdev->graphics_type_tag |= GS_DEVICE_ENCODES_TAGS;
+ return psd_put_params_generic(pdev, plist, 1);
+}
+
/*
* This routine will check to see if the color component name match those
* that are available amoung the current device's color components.
@@ -812,7 +943,18 @@ psd_setup(psd_write_ctx *xc, gx_devn_prn_device *dev, gp_file *file, int w, int
if (dev->color_info.polarity == GX_CINFO_POLARITY_SUBTRACTIVE
&& strcmp(dev->dname, "psdcmykog") != 0) {
if (dev->devn_params.num_separation_order_names == 0) {
- xc->n_extra_channels = dev->devn_params.separations.num_separations;
+ /* Page spot colors has been truncated to ensure max
+ colorants of the target device is not exceeded. This
+ is set if PDF file was encountered and should be used.
+ Also make sure PS file does not exceed limit of device. */
+ if (dev->devn_params.page_spot_colors > 0)
+ xc->n_extra_channels = dev->devn_params.page_spot_colors;
+ else {
+ if (dev->devn_params.separations.num_separations <= (dev->color_info.max_components - NUM_CMYK_COMPONENTS))
+ xc->n_extra_channels = dev->devn_params.separations.num_separations;
+ else
+ xc->n_extra_channels = dev->color_info.max_components - NUM_CMYK_COMPONENTS;
+ }
} else {
/* Have to figure out how many in the order list were not std
colorants */
@@ -856,24 +998,33 @@ psd_setup(psd_write_ctx *xc, gx_devn_prn_device *dev, gp_file *file, int w, int
/* No order specified, map them alpabetically */
/* This isn't at all speed critical -- only runs once per page and */
/* there are never very many spot colors, so just search in a loop */
- byte *prev = " ";
+
+ /* If the device has tags, then that goes at the end, after all the
+ spot colors */
+
+ const char *prev = " ";
int prev_size = 1;
+ psd_device *pdev_psd = (psd_device*)dev;
+ bool has_tags = (pdev_psd->color_model == psd_DEVICE_CMYKT);
xc->num_channels += xc->n_extra_channels;
for (i=xc->base_num_channels; i < xc->num_channels; i++) {
int j;
- byte* curr = "\377";
+ const char *curr = "\377";
int curr_size = 1;
+ bool compare;
- for (j=xc->base_num_channels; j < xc->num_channels; j++) {
- const devn_separation_name *separation_name;
+ for (j=xc->base_num_channels; j < (xc->num_channels - has_tags); j++) {
+ devn_separation_name *separation_name;
separation_name = &(dev->devn_params.separations.names[j - xc->base_num_channels]);
- if (strncmp(separation_name->data, curr, min(curr_size, separation_name->size)) < 0) {
- if (strncmp(separation_name->data, prev, min(prev_size, separation_name->size)) > 0) {
+ compare = strncmp((const char*) separation_name->data, curr, min(curr_size, separation_name->size));
+ if (compare < 0 || (compare == 0 && separation_name->size < curr_size)) {
+ compare = strncmp((const char*) separation_name->data, prev, min(prev_size, separation_name->size));
+ if (compare > 0 || (compare == 0 && separation_name->size > prev_size)) {
xc->chnl_to_position[i] = j;
xc->chnl_to_orig_sep[i] = j;
- curr = separation_name->data;
+ curr = (const char*) separation_name->data;
curr_size = separation_name->size;
}
}
@@ -934,8 +1085,36 @@ get_sep_name(gx_devn_prn_device *pdev, int n)
return p;
}
+static inline void
+psd_write_src_spot_names(psd_write_ctx *xc, gx_devn_prn_device *pdev, int chan_idx, bool has_tags)
+{
+ int sep_num;
+ const devn_separation_name *separation_name;
+
+ for (; chan_idx < xc->num_channels; chan_idx++) {
+ sep_num = xc->chnl_to_orig_sep[chan_idx] - NUM_CMYK_COMPONENTS - has_tags;
+ separation_name = &(pdev->devn_params.separations.names[sep_num]);
+ psd_write_8(xc, (byte)separation_name->size);
+ psd_write(xc, separation_name->data, separation_name->size);
+ }
+}
+
+static inline void
+psd_write_std_extra_names(psd_write_ctx *xc, gx_devn_prn_device *pdev, int chan_idx)
+{
+ for (; chan_idx < xc->num_channels; chan_idx++) {
+ int len;
+ fixed_colorant_name n = pdev->devn_params.std_colorant_names[chan_idx];
+ if (n == NULL)
+ break;
+ len = strlen(n);
+ psd_write_8(xc, (byte)len);
+ psd_write(xc, (const byte*)n, len);
+ }
+}
+
int
-psd_write_header(psd_write_ctx *xc, gx_devn_prn_device *pdev)
+psd_write_header(psd_write_ctx* xc, gx_devn_prn_device* pdev)
{
int code = 0;
int num_channels = xc->num_channels;
@@ -944,8 +1123,14 @@ psd_write_header(psd_write_ctx *xc, gx_devn_prn_device *pdev)
int chan_names_len = 0;
int sep_num;
const devn_separation_name *separation_name;
+ cmm_dev_profile_t *profile_struct;
+ cmm_profile_t *dev_profile;
+ int profile_resource_size;
+ psd_device *pdev_psd = (psd_device*)pdev;
+ bool has_tags = (pdev_psd->color_model == psd_DEVICE_CMYKT);
+ int extra_std_colors = 0;
- psd_write(xc, (const byte *)"8BPS", 4); /* Signature */
+ psd_write(xc, (const byte*)"8BPS", 4); /* Signature */
psd_write_16(xc, 1); /* Version - Always equal to 1*/
/* Reserved 6 Bytes - Must be zero */
psd_write_32(xc, 0);
@@ -955,51 +1140,71 @@ psd_write_header(psd_write_ctx *xc, gx_devn_prn_device *pdev)
psd_write_32(xc, xc->width); /* Columns */
psd_write_16(xc, bpc); /* Depth - 1, 8 and 16 */
/* Modes: Bitmap=0, Grayscale=1, RGB=3, CMYK=4 MultiChannel=7 Lab=9 */
- psd_write_16(xc, (bits16) xc->base_num_channels); /* We use 1, 3 or 4. */
+ psd_write_16(xc, (bits16)xc->base_num_channels); /* We use 1, 3 or 4. */
- /* Color Mode Data */
- psd_write_32(xc, 0); /* No color mode data */
+ /* Color Mode Data. Only used for indexed and duotone */
+ psd_write_32(xc, 0);
- /* Image Resources */
+ /* Resources */
- /* Channel Names */
+ /* ICC profile */
+ code = dev_proc(pdev, get_profile)((gx_device*)pdev, &profile_struct);
+ if (code < 0) {
+ dev_profile = NULL;
+ profile_resource_size = 0;
+ } else {
+ dev_profile = profile_struct->device_profile[GS_DEFAULT_DEVICE_PROFILE];
+
+ /* Resource has to be padded to even size */
+ profile_resource_size = dev_profile->buffer_size + dev_profile->buffer_size % 2;
+ }
+
+ /* Channel Names size computation -- this will get the "Tags" name */
for (chan_idx = NUM_CMYK_COMPONENTS; chan_idx < xc->num_channels; chan_idx++) {
fixed_colorant_name n = pdev->devn_params.std_colorant_names[chan_idx];
if (n == NULL)
break;
chan_names_len += strlen(n) + 1;
}
+ extra_std_colors = chan_idx - NUM_CMYK_COMPONENTS;
+
for (; chan_idx < xc->num_channels; chan_idx++) {
- sep_num = xc->chnl_to_orig_sep[chan_idx] - NUM_CMYK_COMPONENTS;
+ sep_num = xc->chnl_to_orig_sep[chan_idx] - NUM_CMYK_COMPONENTS - has_tags;
separation_name = &(pdev->devn_params.separations.names[sep_num]);
chan_names_len += (separation_name->size + 1);
}
+
+ /* Length of resource section */
psd_write_32(xc, 12 + (chan_names_len + (chan_names_len % 2))
+ (12 + (14 * (xc->num_channels - xc->base_num_channels)))
- + 28);
+ + (profile_resource_size ? (12 + profile_resource_size) : 0) + 28);
+
+ /* Channel names resource */
psd_write(xc, (const byte *)"8BIM", 4);
psd_write_16(xc, 1006); /* 0x03EE */
psd_write_16(xc, 0); /* PString */
psd_write_32(xc, chan_names_len + (chan_names_len % 2));
- for (chan_idx = NUM_CMYK_COMPONENTS; chan_idx < xc->num_channels; chan_idx++) {
- int len;
- fixed_colorant_name n = pdev->devn_params.std_colorant_names[chan_idx];
- if (n == NULL)
- break;
- len = strlen(n);
- psd_write_8(xc, (byte)len);
- psd_write(xc, (const byte *)n, len);
- }
- for (; chan_idx < xc->num_channels; chan_idx++) {
- sep_num = xc->chnl_to_orig_sep[chan_idx] - NUM_CMYK_COMPONENTS;
- separation_name = &(pdev->devn_params.separations.names[sep_num]);
- psd_write_8(xc, (byte) separation_name->size);
- psd_write(xc, separation_name->data, separation_name->size);
+
+ /* If it has tags, do the spots first (if there are any),
+ then the tags. We will need to rework this if we were
+ to add tags to psdcmykog or similar such device that
+ has pre-defined spots with the tags plane */
+ if (has_tags) {
+ chan_idx = NUM_CMYK_COMPONENTS + extra_std_colors;
+ psd_write_src_spot_names(xc, pdev, chan_idx, has_tags);
+ chan_idx = NUM_CMYK_COMPONENTS;
+ psd_write_std_extra_names(xc, pdev, chan_idx);
+
+ } else {
+ chan_idx = NUM_CMYK_COMPONENTS;
+ psd_write_std_extra_names(xc, pdev, chan_idx);
+ chan_idx = NUM_CMYK_COMPONENTS + extra_std_colors;
+ psd_write_src_spot_names(xc, pdev, chan_idx, has_tags);
}
if (chan_names_len % 2)
psd_write_8(xc, 0); /* pad */
- /* DisplayInfo - Colors for each spot channels */
+ /* DisplayInfo - Colors for each spot channels resource*/
psd_write(xc, (const byte *)"8BIM", 4);
psd_write_16(xc, 1007); /* 0x03EF */
psd_write_16(xc, 0); /* PString */
@@ -1044,7 +1249,7 @@ psd_write_header(psd_write_ctx *xc, gx_devn_prn_device *pdev)
psd_write_8(xc, 0); /* Padding - Always Zero */
}
- /* Image resolution */
+ /* Image resolution resource */
psd_write(xc, (const byte *)"8BIM", 4);
psd_write_16(xc, 1005); /* 0x03ED */
psd_write_16(xc, 0); /* PString */
@@ -1057,6 +1262,17 @@ psd_write_header(psd_write_ctx *xc, gx_devn_prn_device *pdev)
psd_write_16(xc, 1); /* height: 1 --> resolution is pixels per inch */
psd_write_16(xc, 1); /* height: 1 --> resolution is pixels per inch */
+ /* ICC Profile resource */
+ if (profile_resource_size) {
+ psd_write(xc, (const byte*)"8BIM", 4);
+ psd_write_16(xc, 1039); /* 0x040F */
+ psd_write_16(xc, 0); /* PString */
+ psd_write_32(xc, profile_resource_size);
+ psd_write(xc, dev_profile->buffer, dev_profile->buffer_size);
+ if (dev_profile->buffer_size % 2)
+ psd_write_8(xc, 0);
+ }
+
/* Layer and Mask information */
psd_write_32(xc, 0); /* No layer or mask information */
diff --git a/devices/gdevtifs.c b/devices/gdevtifs.c
index b937d0e3..9c629afa 100644
--- a/devices/gdevtifs.c
+++ b/devices/gdevtifs.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 2001-2021 Artifex Software, Inc.
+/* Copyright (C) 2001-2022 Artifex Software, Inc.
All Rights Reserved.
This software is provided AS-IS with no warranty, either express or
@@ -76,12 +76,9 @@ tiff_close(gx_device * pdev)
if (tfdev->tif)
TIFFClose(tfdev->tif);
- if (tfdev->icclink != NULL)
- {
- tfdev->icclink->procs.free_link(tfdev->icclink);
- gsicc_free_link_dev(pdev->memory, tfdev->icclink);
- tfdev->icclink = NULL;
- }
+ gsicc_free_link_dev(tfdev->icclink);
+ tfdev->icclink = NULL;
+
return gdev_prn_close(pdev);
}
@@ -298,8 +295,6 @@ int gdev_tiff_begin_page(gx_device_tiff *tfdev,
gp_file *file)
{
gx_device_printer *const pdev = (gx_device_printer *)tfdev;
- cmm_dev_profile_t *profile_struct;
- gsicc_rendering_param_t rendering_params;
int code;
if (gdev_prn_file_is_new(pdev)) {
@@ -308,39 +303,10 @@ int gdev_tiff_begin_page(gx_device_tiff *tfdev,
if (!tfdev->tif)
return_error(gs_error_invalidfileaccess);
/* Set up the icc link settings at this time */
- code = dev_proc(pdev, get_profile)((gx_device *)pdev, &profile_struct);
+ code = gx_downscaler_create_post_render_link((gx_device *)pdev,
+ &tfdev->icclink);
if (code < 0)
- return_error(gs_error_undefined);
- if (profile_struct->postren_profile != NULL) {
- rendering_params.black_point_comp = gsBLACKPTCOMP_ON;
- rendering_params.graphics_type_tag = GS_UNKNOWN_TAG;
- rendering_params.override_icc = false;
- rendering_params.preserve_black = gsBLACKPRESERVE_OFF;
- rendering_params.rendering_intent = gsRELATIVECOLORIMETRIC;
- rendering_params.cmm = gsCMM_DEFAULT;
- if (profile_struct->oi_profile != NULL) {
- tfdev->icclink = gsicc_alloc_link_dev(pdev->memory,
- profile_struct->oi_profile, profile_struct->postren_profile,
- &rendering_params);
- } else if (profile_struct->link_profile != NULL) {
- tfdev->icclink = gsicc_alloc_link_dev(pdev->memory,
- profile_struct->link_profile, profile_struct->postren_profile,
- &rendering_params);
- } else {
- tfdev->icclink = gsicc_alloc_link_dev(pdev->memory,
- profile_struct->device_profile[GS_DEFAULT_DEVICE_PROFILE],
- profile_struct->postren_profile, &rendering_params);
- }
- if (tfdev->icclink == NULL) {
- return_error(gs_error_VMerror);
- }
- /* If it is identity, release it now and set link to NULL */
- if (tfdev->icclink->is_identity) {
- tfdev->icclink->procs.free_link(tfdev->icclink);
- gsicc_free_link_dev(pdev->memory, tfdev->icclink);
- tfdev->icclink = NULL;
- }
- }
+ return code;
}
return tiff_set_fields_for_printer(pdev, tfdev->tif, tfdev->downscale.downscale_factor,
@@ -400,7 +366,7 @@ int tiff_set_fields_for_printer(gx_device_printer *pdev,
strncpy(softwareValue, gs_product, maxSoftware);
softwareValue[maxSoftware - 1] = 0;
- gs_sprintf(revs, " %d.%2d.%d", major, minor, patch);
+ gs_snprintf(revs, sizeof(revs), " %d.%2d.%d", major, minor, patch);
strncat(softwareValue, revs,
maxSoftware - strlen(softwareValue) - 1);
@@ -418,7 +384,7 @@ int tiff_set_fields_for_printer(gx_device_printer *pdev,
time(&t);
tms = *localtime(&t);
#endif
- gs_sprintf(dateTimeValue, "%04d:%02d:%02d %02d:%02d:%02d",
+ gs_snprintf(dateTimeValue, sizeof(dateTimeValue), "%04d:%02d:%02d %02d:%02d:%02d",
tms.tm_year + 1900, tms.tm_mon + 1, tms.tm_mday,
tms.tm_hour, tms.tm_min, tms.tm_sec);
@@ -438,8 +404,6 @@ int tiff_set_fields_for_printer(gx_device_printer *pdev,
if (pdev->icc_struct->postren_profile != NULL)
icc_profile = pdev->icc_struct->postren_profile;
- else if (pdev->icc_struct->oi_profile != NULL)
- icc_profile = pdev->icc_struct->oi_profile;
else
icc_profile = pdev->icc_struct->device_profile[GS_DEFAULT_DEVICE_PROFILE];
diff --git a/devices/gdevtsep.c b/devices/gdevtsep.c
index 10d3b633..fd859ddc 100644
--- a/devices/gdevtsep.c
+++ b/devices/gdevtsep.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 2001-2021 Artifex Software, Inc.
+/* Copyright (C) 2001-2022 Artifex Software, Inc.
All Rights Reserved.
This software is provided AS-IS with no warranty, either express or
@@ -395,8 +395,6 @@ tiff_set_rgb_fields(gx_device_tiff *tfdev)
if (tfdev->icc_struct->postren_profile != NULL)
icc_profile = tfdev->icc_struct->postren_profile;
- else if (tfdev->icc_struct->oi_profile != NULL)
- icc_profile = tfdev->icc_struct->oi_profile;
else
icc_profile = tfdev->icc_struct->device_profile[GS_DEFAULT_DEVICE_PROFILE];
@@ -956,11 +954,11 @@ tiffsep_decode_color(gx_device * dev, gx_color_index color, gx_color_value * out
* Device proc for updating the equivalent CMYK color for spot colors.
*/
static int
-tiffsep_update_spot_equivalent_colors(gx_device * dev, const gs_gstate * pgs)
+tiffsep_update_spot_equivalent_colors(gx_device * dev, const gs_gstate * pgs, const gs_color_space *pcs)
{
tiffsep_device * pdev = (tiffsep_device *)dev;
- update_spot_equivalent_cmyk_colors(dev, pgs,
+ update_spot_equivalent_cmyk_colors(dev, pgs, pcs,
&pdev->devn_params, &pdev->equiv_cmyk_colors);
return 0;
}
@@ -1267,9 +1265,9 @@ tiffsep1_prn_close(gx_device * pdev)
while (*fmt != 'l' && *fmt != '%')
--fmt;
if (*fmt == 'l')
- gs_sprintf(compname, parsed.fname, count1);
+ gs_snprintf(compname, gp_file_name_sizeof, parsed.fname, count1);
else
- gs_sprintf(compname, parsed.fname, (int)count1);
+ gs_snprintf(compname, gp_file_name_sizeof, parsed.fname, (int)count1);
parsed.iodev->procs.delete_file(parsed.iodev, compname);
} else {
parsed.iodev->procs.delete_file(parsed.iodev, tfdev->fname);
@@ -1368,7 +1366,9 @@ copy_separation_name(tiffsep_device * pdev,
{
int sep_size = pdev->devn_params.separations.names[sep_num].size;
const byte *p = pdev->devn_params.separations.names[sep_num].data;
- int r, w;
+ int r, w, use_sep_num = 0;
+ const char *stdnames[4] = {"CYAN", "MAGENTA", "YELLOW", "BLACK"};
+ char sep_num_str[16] = "";
/* Previously the code here would simply replace any char that wasn't
* passed by gp_file_name_good_char (and %) with '_'. The grounds for
@@ -1378,13 +1378,28 @@ copy_separation_name(tiffsep_device * pdev,
* the file handling routines as they assume the filenames are in
* utf-8 format. */
+ for (r=0;r<4;r++)
+ {
+ if (strlen(stdnames[r]) == pdev->devn_params.separations.names[sep_num].size) {
+ use_sep_num = 1;
+ for (w=0;w<strlen(stdnames[r]);w++) {
+ if (toupper(pdev->devn_params.separations.names[sep_num].data[w]) != stdnames[r][w]) {
+ use_sep_num = 0;
+ break;
+ }
+ }
+ }
+ }
+ if (use_sep_num != 0)
+ gs_snprintf(sep_num_str, sizeof(sep_num_str), "%d", sep_num);
+
/* New code: Copy the name, escaping non gp_file_name_good_char chars,
* % and top bit set chars using %02x format. In addition, if 'escape'
* is set, output % as %% to allow for printf later.
*/
r = 0;
w = 0;
- while (r < sep_size && w < max_size-1)
+ while (r < sep_size && w < max_size-1 - strlen(sep_num_str))
{
int c = p[r++];
if (c >= 127 ||
@@ -1393,7 +1408,7 @@ copy_separation_name(tiffsep_device * pdev,
{
/* Top bit set, backspace, or char we can't represent on the
* filesystem. */
- if (w + 2 + escape >= max_size-1)
+ if (w + 2 + escape >= max_size-1 - strlen(sep_num_str))
break;
buffer[w++] = '%';
if (escape)
@@ -1406,6 +1421,10 @@ copy_separation_name(tiffsep_device * pdev,
buffer[w++] = c;
}
}
+ if (use_sep_num) {
+ for (r = 0;r < strlen(sep_num_str);r++)
+ buffer[w++] = sep_num_str[r];
+ }
buffer[w] = 0; /* Terminate string */
}
@@ -1479,7 +1498,7 @@ create_separation_file_name(tiffsep_device * pdev, char * buffer,
/* Max of 10 chars in %d format */
if (max_size < base_filename_length + 11)
return_error(gs_error_rangecheck);
- gs_sprintf(buffer + base_filename_length, "s%d", sep_num);
+ gs_snprintf(buffer + base_filename_length, max_size - base_filename_length, "s%d", sep_num);
}
}
if (use_sep_name)
@@ -1575,12 +1594,13 @@ tiffsep_prn_open(gx_device * pdev)
tiffsep_device *pdev_sep = (tiffsep_device *) pdev;
int code, k;
cmm_dev_profile_t *profile_struct;
- gsicc_rendering_param_t rendering_params;
/* Use our own warning and error message handlers in libtiff */
tiff_set_handlers();
code = dev_proc(pdev, get_profile)((gx_device *)pdev, &profile_struct);
+ if (code < 0)
+ return code;
/* For the planar device we need to set up the bit depth of each plane.
For other devices this is handled in check_device_separable where
@@ -1653,6 +1673,8 @@ tiffsep_prn_open(gx_device * pdev)
pdev_sep->devn_params.bitspercomponent;
pdev->color_info.separable_and_linear = GX_CINFO_SEP_LIN;
code = gdev_prn_open_planar(pdev, true);
+ if (code < 0)
+ return code;
while (pdev->child)
pdev = pdev->child;
ppdev = (gx_device_printer *)pdev;
@@ -1662,42 +1684,8 @@ tiffsep_prn_open(gx_device * pdev)
/* Set up the icc link settings at this time. Only CMYK post render profiles
are allowed */
- code = dev_proc(pdev, get_profile)((gx_device *)pdev, &profile_struct);
- if (code < 0)
- return_error(gs_error_undefined);
-
- if (profile_struct->postren_profile != NULL &&
- profile_struct->postren_profile->data_cs == gsCMYK) {
- rendering_params.black_point_comp = gsBLACKPTCOMP_ON;
- rendering_params.graphics_type_tag = GS_UNKNOWN_TAG;
- rendering_params.override_icc = false;
- rendering_params.preserve_black = gsBLACKPRESERVE_OFF;
- rendering_params.rendering_intent = gsRELATIVECOLORIMETRIC;
- rendering_params.cmm = gsCMM_DEFAULT;
- if (profile_struct->oi_profile != NULL) {
- pdev_sep->icclink = gsicc_alloc_link_dev(pdev->memory,
- profile_struct->oi_profile, profile_struct->postren_profile,
- &rendering_params);
- } else if (profile_struct->link_profile != NULL) {
- pdev_sep->icclink = gsicc_alloc_link_dev(pdev->memory,
- profile_struct->link_profile, profile_struct->postren_profile,
- &rendering_params);
- } else {
- pdev_sep->icclink = gsicc_alloc_link_dev(pdev->memory,
- profile_struct->device_profile[GS_DEFAULT_DEVICE_PROFILE],
- profile_struct->postren_profile, &rendering_params);
- }
- if (pdev_sep->icclink == NULL) {
- return_error(gs_error_VMerror);
- }
- /* If it is identity, release it now and set link to NULL */
- if (pdev_sep->icclink->is_identity) {
- pdev_sep->icclink->procs.free_link(pdev_sep->icclink);
- gsicc_free_link_dev(pdev->memory, pdev_sep->icclink);
- pdev_sep->icclink = NULL;
- }
- }
- return code;
+ return gx_downscaler_create_post_render_link((gx_device *)pdev,
+ &pdev_sep->icclink);
}
static int
@@ -1752,11 +1740,9 @@ tiffsep_prn_close(gx_device * pdev)
int comp_num;
int num_comp = number_output_separations(num_dev_comp, num_std_colorants,
num_order, num_spot);
- if (pdevn->icclink != NULL) {
- pdevn->icclink->procs.free_link(pdevn->icclink);
- gsicc_free_link_dev(pdevn->memory, pdevn->icclink);
- pdevn->icclink = NULL;
- }
+
+ gsicc_free_link_dev(pdevn->icclink);
+ pdevn->icclink = NULL;
name = (char *)gs_alloc_bytes(pdevn->memory, gp_file_name_sizeof, "tiffsep_prn_close(name)");
if (!name)
@@ -2066,7 +2052,6 @@ tiffsep_print_page(gx_device_printer * pdev, gp_file * file)
int num_comp, comp_num, code = 0, code1 = 0;
cmyk_composite_map cmyk_map[GX_DEVICE_COLOR_MAX_COMPONENTS];
char *name = NULL;
- bool double_f = false;
int save_depth = pdev->color_info.depth;
int save_numcomps = pdev->color_info.num_components;
const char *fmt;
@@ -2490,9 +2475,9 @@ tiffsep1_print_page(gx_device_printer * pdev, gp_file * file)
while (*fmt != 'l' && *fmt != '%')
--fmt;
if (*fmt == 'l')
- gs_sprintf(compname, parsed.fname, count1);
+ gs_snprintf(compname, gp_file_name_sizeof, parsed.fname, count1);
else
- gs_sprintf(compname, parsed.fname, (int)count1);
+ gs_snprintf(compname, gp_file_name_sizeof, parsed.fname, (int)count1);
parsed.iodev->procs.delete_file(parsed.iodev, compname);
}
#endif /* PPM_COMBINED_OUTPUT */
diff --git a/devices/gdevupd.c b/devices/gdevupd.c
index 66359847..179c400d 100644
--- a/devices/gdevupd.c
+++ b/devices/gdevupd.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 2001-2021 Artifex Software, Inc.
+/* Copyright (C) 2001-2022 Artifex Software, Inc.
All Rights Reserved.
This software is provided AS-IS with no warranty, either express or
@@ -216,6 +216,7 @@ static int upd_procs_map( upd_device *udev);
static void
upd_initialize_device_procs(gx_device *dev)
{
+ set_dev_proc(dev, initialize_device, gx_init_non_threadsafe_device);
set_dev_proc(dev, open_device, upd_open);
set_dev_proc(dev, output_page, gdev_prn_output_page);
set_dev_proc(dev, close_device, upd_close);
@@ -6483,7 +6484,7 @@ upd_open_wrtrtl(upd_device *udev)
if( (B_PAGEWIDTH & upd->flags) &&
((c == 0x73) || (c == 0x53)) ) { /* esc * r # S */
- gs_sprintf(cv,"%d",upd->pwidth);
+ gs_snprintf(cv,sizeof(cv),"%d",upd->pwidth);
ncv = strlen(cv);
nbp = (j+1) + ncv + (upd->strings[S_BEGIN].size-i);
@@ -6501,7 +6502,7 @@ upd_open_wrtrtl(upd_device *udev)
} else if((B_PAGELENGTH & upd->flags) &&
((c == 0x74) || (c == 0x54)) ) { /* esc * r # T */
- gs_sprintf(cv,"%d",upd->pheight);
+ gs_snprintf(cv,sizeof(cv),"%d",upd->pheight);
ncv = strlen(cv);
nbp = (j+1) + ncv + (upd->strings[S_BEGIN].size-i);
@@ -6530,7 +6531,7 @@ upd_open_wrtrtl(upd_device *udev)
if( (B_RESOLUTION & upd->flags) &&
((c == 0x72) || (c == 0x52)) ) { /* esc * t # R */
- gs_sprintf(cv,"%d",(int)
+ gs_snprintf(cv,sizeof(cv),"%d",(int)
((udev->y_pixels_per_inch < udev->x_pixels_per_inch ?
udev->x_pixels_per_inch : udev->y_pixels_per_inch)
+0.5));
@@ -6737,7 +6738,7 @@ upd_open_wrtrtl(upd_device *udev)
if(B_PAGELENGTH & upd->flags) { /* insert new number */
- gs_sprintf(cv,"%d",(int)
+ gs_snprintf(cv,sizeof(cv),"%d",(int)
(720.0 * udev->height / udev->y_pixels_per_inch + 0.5));
ncv = strlen(cv);
@@ -6802,7 +6803,7 @@ upd_open_wrtrtl(upd_device *udev)
if(B_PAGEWIDTH & upd->flags) { /* insert new number */
- gs_sprintf(cv,"%d",(int)
+ gs_snprintf(cv,sizeof(cv),"%d",(int)
(720.0 * udev->width / udev->x_pixels_per_inch + 0.5));
ncv = strlen(cv);
@@ -6897,7 +6898,7 @@ upd_open_wrtrtl(upd_device *udev)
if(B_RESOLUTION & upd->flags) { /* insert new number */
- gs_sprintf(cv,"%d",(int)
+ gs_snprintf(cv,sizeof(cv),"%d",(int)
((udev->y_pixels_per_inch < udev->x_pixels_per_inch ?
udev->x_pixels_per_inch : udev->y_pixels_per_inch)
+0.5));
@@ -6952,7 +6953,7 @@ It must hold:
char tmp[16];
if(0 < upd->strings[S_YMOVE].size) {
- gs_sprintf(tmp,"%d",upd->pheight);
+ gs_snprintf(tmp,sizeof(tmp),"%d",upd->pheight);
ny = upd->strings[S_YMOVE].size + strlen(tmp);
} else {
ny = 1 + upd->string_a[SA_WRITECOMP].data[upd->ocomp-1].size;
@@ -7013,14 +7014,14 @@ upd_wrtrtl(upd_p upd, gp_file *out)
*/
if(upd->yscan != upd->yprinter) { /* Adjust Y-Position */
if(1 < upd->strings[S_YMOVE].size) {
- gs_sprintf((char *)upd->outbuf+ioutbuf,
+ gs_snprintf((char *)upd->outbuf+ioutbuf, upd->noutbuf-ioutbuf,
(const char *) upd->strings[S_YMOVE].data,
upd->yscan - upd->yprinter);
ioutbuf += strlen((char *)upd->outbuf+ioutbuf);
} else {
while(upd->yscan > upd->yprinter) {
for(icomp = 0; icomp < upd->ocomp; ++icomp) {
- gs_sprintf((char *)upd->outbuf+ioutbuf,
+ gs_snprintf((char *)upd->outbuf+ioutbuf, upd->noutbuf-ioutbuf,
(const char *) upd->string_a[SA_WRITECOMP].data[icomp].data,0);
ioutbuf += strlen((char *)upd->outbuf+ioutbuf);
}
diff --git a/devices/gdevwpr2.c b/devices/gdevwpr2.c
index eeb94896..a8e812f6 100644
--- a/devices/gdevwpr2.c
+++ b/devices/gdevwpr2.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 2001-2021 Artifex Software, Inc.
+/* Copyright (C) 2001-2022 Artifex Software, Inc.
All Rights Reserved.
This software is provided AS-IS with no warranty, either express or
@@ -574,7 +574,7 @@ win_pr2_print_page(gx_device_printer * pdev, gp_file * file)
}
if (!wdev->nocancel) {
- gs_sprintf(dlgtext, "Printing page %d", (int)(pdev->PageCount) + 1);
+ gs_snprintf(dlgtext, sizeof(dlgtext), "Printing page %d", (int)(pdev->PageCount) + 1);
SetWindowText(GetDlgItem(wdev->hDlgModeless, CANCEL_PRINTING), dlgtext);
ShowWindow(wdev->hDlgModeless, SW_SHOW);
}
@@ -606,7 +606,7 @@ win_pr2_print_page(gx_device_printer * pdev, gp_file * file)
if (!wdev->nocancel) {
/* inform user of progress */
- gs_sprintf(dlgtext, "%d%% done", (int)(y * 100L / scan_lines));
+ gs_snprintf(dlgtext, sizeof(dlgtext), "%d%% done", (int)(y * 100L / scan_lines));
SetWindowText(GetDlgItem(wdev->hDlgModeless, CANCEL_PCDONE), dlgtext);
}
/* process message loop */
@@ -1080,11 +1080,11 @@ win_pr2_getdc(gx_device_win_pr2 * wdev)
DocumentProperties(NULL, hprinter, device, podevmode, NULL, DM_OUT_BUFFER);
/* now find out what paper sizes are available */
- devcapsize = DeviceCapabilities(device, output, DC_PAPERSIZE, NULL, NULL);
+ devcapsize = DeviceCapabilities(podevmode->dmDeviceName, output, DC_PAPERSIZE, NULL, NULL);
devcapsize *= sizeof(POINT);
if ((devcap = gs_malloc(wdev->memory, devcapsize, 1, "win_pr2_getdc")) == (LPBYTE) NULL)
return FALSE;
- n = DeviceCapabilities(device, output, DC_PAPERSIZE, devcap, NULL);
+ n = DeviceCapabilities(podevmode->dmDeviceName, output, DC_PAPERSIZE, devcap, NULL);
paperwidth = (int)(wdev->MediaSize[0] * 254 / 72);
paperheight = (int)(wdev->MediaSize[1] * 254 / 72);
papername[0] = '\0';
@@ -1119,21 +1119,21 @@ win_pr2_getdc(gx_device_win_pr2 * wdev)
gs_free(wdev->memory, devcap, devcapsize, 1, "win_pr2_getdc");
/* get the dmPaperSize */
- devcapsize = DeviceCapabilities(device, output, DC_PAPERS, NULL, NULL);
+ devcapsize = DeviceCapabilities(podevmode->dmDeviceName, output, DC_PAPERS, NULL, NULL);
devcapsize *= sizeof(WORD);
if ((devcap = gs_malloc(wdev->memory, devcapsize, 1, "win_pr2_getdc")) == (LPBYTE) NULL)
return FALSE;
- n = DeviceCapabilities(device, output, DC_PAPERS, devcap, NULL);
+ n = DeviceCapabilities(podevmode->dmDeviceName, output, DC_PAPERS, devcap, NULL);
if ((paperindex >= 0) && (paperindex < n))
papersize = ((WORD *) devcap)[paperindex];
gs_free(wdev->memory, devcap, devcapsize, 1, "win_pr2_getdc");
/* get the paper name */
- devcapsize = DeviceCapabilities(device, output, DC_PAPERNAMES, NULL, NULL);
+ devcapsize = DeviceCapabilities(podevmode->dmDeviceName, output, DC_PAPERNAMES, NULL, NULL);
devcapsize *= 64;
if ((devcap = gs_malloc(wdev->memory, devcapsize, 1, "win_pr2_getdc")) == (LPBYTE) NULL)
return FALSE;
- n = DeviceCapabilities(device, output, DC_PAPERNAMES, devcap, NULL);
+ n = DeviceCapabilities(podevmode->dmDeviceName, output, DC_PAPERNAMES, devcap, NULL);
if ((paperindex >= 0) && (paperindex < n))
strcpy(papername, devcap + paperindex * 64);
gs_free(wdev->memory, devcap, devcapsize, 1, "win_pr2_getdc");
@@ -1175,7 +1175,7 @@ win_pr2_getdc(gx_device_win_pr2 * wdev)
wdev->user_media_size[1] = paperheight / 254.0 * 72.0;
}
- if (DeviceCapabilities(device, output, DC_DUPLEX, NULL, NULL)) {
+ if (DeviceCapabilities(podevmode->dmDeviceName, output, DC_DUPLEX, NULL, NULL)) {
wdev->Duplex_set = 1;
}
@@ -1186,7 +1186,7 @@ win_pr2_getdc(gx_device_win_pr2 * wdev)
ClosePrinter(hprinter);
/* now get a DC */
- wdev->hdcprn = CreateDC(driver, device, NULL, podevmode);
+ wdev->hdcprn = CreateDC(driver, podevmode->dmDeviceName, NULL, podevmode);
if (wdev->win32_hdevmode == NULL)
wdev->win32_hdevmode = GlobalAlloc(0, devmode_size);
@@ -1505,9 +1505,9 @@ win_pr2_print_setup_interaction(gx_device_win_pr2 * wdev, int mode)
wdev->user_changed_settings = TRUE;
if (wdev->use_old_spool_name) {
- gs_sprintf(wdev->fname, "\\\\spool\\%s", (char*)(devnames)+(devnames->wDeviceOffset));
+ gs_snprintf(wdev->fname, prn_fname_sizeof, "\\\\spool\\%s", (char*)(devnames)+(devnames->wDeviceOffset));
} else {
- gs_sprintf(wdev->fname, "%%printer%%%s", (char*)(devnames)+(devnames->wDeviceOffset));
+ gs_snprintf(wdev->fname, prn_fname_sizeof, "%%printer%%%s", (char*)(devnames)+(devnames->wDeviceOffset));
}
if (mode == 3) {
diff --git a/devices/gdevxini.c b/devices/gdevxini.c
index 1944c9a9..fafcd42a 100644
--- a/devices/gdevxini.c
+++ b/devices/gdevxini.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 2001-2021 Artifex Software, Inc.
+/* Copyright (C) 2001-2022 Artifex Software, Inc.
All Rights Reserved.
This software is provided AS-IS with no warranty, either express or
@@ -88,7 +88,7 @@ gdev_x_open(gx_device_X * xdev)
XSizeHints sizehints;
char *window_id;
XEvent event;
- XVisualInfo xvinfo;
+ XVisualInfo xvinfo = { 0 };
int nitems;
XtAppContext app_con;
Widget toplevel;
@@ -385,7 +385,7 @@ gdev_x_open(gx_device_X * xdev)
char gstr[40];
int bitmask;
- gs_sprintf(gstr, "%dx%d+%d+%d", sizehints.width,
+ gs_snprintf(gstr, sizeof(gstr), "%dx%d+%d+%d", sizehints.width,
sizehints.height, sizehints.x, sizehints.y);
bitmask = XWMGeometry(xdev->dpy, DefaultScreen(xdev->dpy),
xdev->geometry, gstr, xdev->borderWidth,
@@ -589,9 +589,9 @@ x_set_buffer(gx_device_X * xdev)
* *But* if we run buffered, we have to use the real specs of the real x11 device.
* Hence, the real color_info is saved into orig_color_info, and we use that here.
*/
- if (mdev == 0 || mdev->color_info.depth != xdev->orig_color_info.depth) {
+ if (mdev == 0 || mdev->color_info.depth != xdev->color_info.depth) {
const gx_device_memory *mdproto =
- gdev_mem_device_for_bits(xdev->orig_color_info.depth);
+ gdev_mem_device_for_bits(xdev->color_info.depth);
if (!mdproto) {
buffered = false;
@@ -643,7 +643,7 @@ x_set_buffer(gx_device_X * xdev)
rc_decrement(mdev->icc_struct, "x_set_buffer");
mdev->icc_struct = xdev->icc_struct;
rc_increment(xdev->icc_struct);
- mdev->color_info = xdev->orig_color_info;
+ mdev->color_info = xdev->color_info;
mdev->base = xdev->buffer;
gdev_mem_open_scan_lines(mdev, xdev->height);
}
@@ -762,6 +762,10 @@ static int
x_initialize_device(gx_device *dev)
{
gx_device_X *xdev = (gx_device_X *) dev;
+ int code = gx_init_non_threadsafe_device(dev);
+
+ if (code < 0)
+ return code;
/* Mark the new instance as closed. */
xdev->is_open = false;
@@ -984,7 +988,8 @@ gdev_x_close(gx_device_X *xdev)
xdev->gc = NULL;
}
if (xdev->dpy && xdev->bpixmap != (Pixmap)0) {
- XFreePixmap(xdev->dpy, xdev->bpixmap);
+ /* Only free the pixmap if we created it */
+ if (xdev->ghostview == 0) XFreePixmap(xdev->dpy, xdev->bpixmap);
xdev->bpixmap = (Pixmap)0;
xdev->dest = (Pixmap)0;
}
diff --git a/devices/gxfcopy.c b/devices/gxfcopy.c
index 72235693..76f0a19e 100644
--- a/devices/gxfcopy.c
+++ b/devices/gxfcopy.c
@@ -1735,6 +1735,10 @@ copy_font_cid0(gs_font *font, gs_font *copied)
subdata->glyphs = cfdata->glyphs;
subdata->glyphs_size = cfdata->glyphs_size;
subdata->names = 0;
+ if (subdata->global_subrs.data != NULL)
+ gs_free_object(copied->memory, subdata->global_subrs.data, "copy parent global subrs to child, free child global subrs");
+ if (subdata->global_subrs.starts != NULL)
+ gs_free_object(copied->memory, subdata->global_subrs.starts, "copy parent global subrs to child, free child global subrs");
subdata->global_subrs = cfdata->global_subrs;
FDArray[i] = subcopy1;
}
@@ -2236,7 +2240,7 @@ gs_copy_font(gs_font *font, const gs_matrix *orig_matrix, gs_memory_t *mem, gs_f
return code;
}
-/* We only need this because the ddescndant(s) share the parent
+/* We only need this because the descendant(s) share the parent
* CIDFont glyph space, so we can't free that if we are a descendant.
*/
static int gs_free_copied_descendant_font(gs_font *font)
@@ -2257,6 +2261,13 @@ static int gs_free_copied_descendant_font(gs_font *font)
gs_free_object(mem, cfdata->Encoding, "gs_free_copied_font(Encoding)");
gs_free_object(mem, cfdata->names, "gs_free_copied_font(names)");
gs_free_object(mem, cfdata->data, "gs_free_copied_font(data)");
+ if (cfdata->subrs.data != NULL)
+ gs_free_object(mem, cfdata->subrs.data, "gs_free_copied_font(subrs->data)");
+ if (cfdata->subrs.starts != NULL)
+ gs_free_object(mem, cfdata->subrs.starts, "gs_free_copied_font(subrs->starts)");
+ /* global subrs are 'shared with the parent', see copy_font_cid0()
+ * so we don't want to free them here, they are freed by the parent font.
+ */
gs_free_object(mem, cfdata, "gs_free_copied_font(wrapper data)");
}
gs_free_object(mem, font, "gs_free_copied_font(copied font)");
@@ -2295,6 +2306,10 @@ int gs_free_copied_font(gs_font *font)
if (copied2->subst_CID_on_WMode)
rc_decrement(copied2->subst_CID_on_WMode, "gs_free_copied_font(subst_CID_on_WMode");
+ gs_free_string(mem, (byte *)copied2->cidata.common.CIDSystemInfo.Registry.data, copied2->cidata.common.CIDSystemInfo.Registry.size, "Free copied Registry");
+ gs_free_string(mem, (byte *)copied2->cidata.common.CIDSystemInfo.Ordering.data, copied2->cidata.common.CIDSystemInfo.Ordering.size, "Free copied Registry");
+ copied2->cidata.common.CIDSystemInfo.Registry.data = copied2->cidata.common.CIDSystemInfo.Ordering.data = NULL;
+ copied2->cidata.common.CIDSystemInfo.Registry.size = copied2->cidata.common.CIDSystemInfo.Ordering.size = 0;
}
if (cfdata) {
diff --git a/devices/vector/gdevdocxw.c b/devices/vector/gdevdocxw.c
index 54ab5be7..b637a4c8 100644
--- a/devices/vector/gdevdocxw.c
+++ b/devices/vector/gdevdocxw.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 2001-2021 Artifex Software, Inc.
+/* Copyright (C) 2001-2022 Artifex Software, Inc.
All Rights Reserved.
This software is provided AS-IS with no warranty, either express or
@@ -241,6 +241,12 @@ docxwrite_open_device(gx_device * dev)
gs_parsed_file_name_t parsed;
int code = 0;
+ if (tdev->extract) {
+ /* We can be called multiple times; nothing to do after the first time.
+ */
+ return 0;
+ }
+
gx_device_fill_in_procs(dev);
if (tdev->fname[0] == 0)
return_error(gs_error_undefinedfilename);
@@ -728,7 +734,8 @@ docx_update_text_state(docx_list_entry_t *ppts,
font->font_name.size + 1, "txtwrite alloc font name");
if (!ppts->FontName)
return gs_note_error(gs_error_VMerror);
- memcpy(ppts->FontName, font->font_name.chars, font->font_name.size + 1);
+ memcpy(ppts->FontName, font->font_name.chars, font->font_name.size);
+ ppts->FontName[font->font_name.size] = 0;
if (font->PaintType == 2 && penum->pgs->text_rendering_mode == 0)
{
@@ -980,7 +987,7 @@ docxwrite_process_plain_text(gx_device_docxwrite_t *tdev, gs_text_enum_t *pte)
ch = pte->text.data.chars[pte->index];
} else if (operation & (TEXT_FROM_GLYPHS | TEXT_FROM_SINGLE_GLYPH)) {
if (operation & TEXT_FROM_GLYPHS) {
- gdata = pte->text.data.glyphs + (pte->index++ * sizeof (gs_glyph));
+ gdata = pte->text.data.glyphs + pte->index++;
} else {
gdata = &pte->text.data.d_glyph;
}
@@ -1031,14 +1038,36 @@ docxwrite_process_plain_text(gx_device_docxwrite_t *tdev, gs_text_enum_t *pte)
return s_errno_to_gs();
}
}
+
+ /* Calculate glyph_width from the **original** glyph metrics, not the overriding
+ * advance width (if TEXT_REPLACE_WIDTHS is set below)
+ */
txt_char_widths_to_uts(pte->orig_font, &widths); /* convert design->text space */
+ glyph_width = widths.real_width.xy.x * penum->text_state->size;
+
+ if (pte->text.operation & TEXT_REPLACE_WIDTHS)
+ {
+ gs_point tpt;
+
+ /* We are applying a width override, from x/y/xyshow. This could be from
+ * a PostScript file, or it could be from a PDF file where we have a font
+ * with a FontMatrix which is neither horizontal nor vertical.
+ */
+ code = gs_text_replaced_width(&pte->text, pte->xy_index++, &tpt);
+ if (code < 0)
+ return_error(gs_error_unregistered);
+
+ widths.Width.w = widths.real_width.w = tpt.x;
+ widths.Width.xy.x = widths.real_width.xy.x = tpt.x;
+ widths.Width.xy.y = widths.real_width.xy.y = tpt.y;
+ }
+
gs_distance_transform(widths.real_width.xy.x * penum->text_state->size,
widths.real_width.xy.y * penum->text_state->size,
&penum->text_state->matrix, &wanted);
pte->returned.total_width.x += wanted.x;
pte->returned.total_width.y += wanted.y;
span_delta_x = widths.real_width.xy.x * penum->text_state->size;
- glyph_width = widths.real_width.xy.x * penum->text_state->size;
if (pte->text.operation & TEXT_ADD_TO_ALL_WIDTHS) {
gs_point tpt;
@@ -1061,7 +1090,7 @@ docxwrite_process_plain_text(gx_device_docxwrite_t *tdev, gs_text_enum_t *pte)
span_delta_x += dpt.x;
- code = txt_get_unicode(penum->dev, (gs_font *)pte->orig_font, glyph, ch, &chr2[0]);
+ (void) txt_get_unicode(penum->dev, (gs_font *)pte->orig_font, glyph, ch, &chr2[0]);
/* If a single text code returned multiple Unicode values, then we need to set the
* 'extra' code points' widths to 0.
*/
diff --git a/devices/vector/gdevpdf.c b/devices/vector/gdevpdf.c
index 9ab562c7..cb268f62 100644
--- a/devices/vector/gdevpdf.c
+++ b/devices/vector/gdevpdf.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 2001-2021 Artifex Software, Inc.
+/* Copyright (C) 2001-2022 Artifex Software, Inc.
All Rights Reserved.
This software is provided AS-IS with no warranty, either express or
@@ -447,7 +447,7 @@ pdf_initialize_ids(gx_device_pdf * pdev)
tms = *localtime(&t);
#endif
- gs_sprintf(buf, "(D:%04d%02d%02d%02d%02d%02d%c%02d\'%02d\')",
+ gs_snprintf(buf, sizeof(buf), "(D:%04d%02d%02d%02d%02d%02d%c%02d\'%02d\')",
tms.tm_year + 1900, tms.tm_mon + 1, tms.tm_mday,
tms.tm_hour, tms.tm_min, tms.tm_sec,
timesign, timeoffset / 60, timeoffset % 60);
@@ -1600,7 +1600,7 @@ static int write_xref_section(gx_device_pdf *pdev, gp_file *tfile, int64_t start
* chances of needing to write white space to pad the file out.
*/
if (!pdev->Linearise) {
- gs_sprintf(str, "%010"PRId64" 00000 n \n", pos);
+ gs_snprintf(str, sizeof(str), "%010"PRId64" 00000 n \n", pos);
stream_puts(pdev->strm, str);
}
if (Offsets)
@@ -1633,7 +1633,7 @@ rewrite_object(gx_device_pdf *const pdev, pdf_linearisation_t *linear_params, in
code = gp_fread(&c, 1, 1, linear_params->sfile);
read++;
} while (c != '\n' && code > 0);
- gs_sprintf(Scratch, "%d 0 obj\n", pdev->ResourceUsage[object].NewObjectNumber);
+ gs_snprintf(Scratch, ScratchSize, "%d 0 obj\n", pdev->ResourceUsage[object].NewObjectNumber);
gp_fwrite(Scratch, strlen(Scratch), 1, linear_params->Lin_File.file);
code = gp_fread(&c, 1, 1, linear_params->sfile);
@@ -1685,7 +1685,7 @@ rewrite_object(gx_device_pdf *const pdev, pdf_linearisation_t *linear_params, in
target++;
(void)sscanf(target, "%d 0 R", &ID);
gp_fwrite(source, target - source, 1, linear_params->Lin_File.file);
- gs_sprintf(Buf, "%d 0 R", pdev->ResourceUsage[ID].NewObjectNumber);
+ gs_snprintf(Buf, sizeof(Buf), "%d 0 R", pdev->ResourceUsage[ID].NewObjectNumber);
gp_fwrite(Buf, strlen(Buf), 1, linear_params->Lin_File.file);
source = next;
} else {
@@ -1874,7 +1874,7 @@ static int pdf_linearise(gx_device_pdf *pdev, pdf_linearisation_t *linear_params
}
#endif
/* Linearisation. Part 1, file header */
- gs_sprintf(Header, "%%PDF-%d.%d\n", level / 10, level % 10);
+ gs_snprintf(Header, sizeof(Header), "%%PDF-%d.%d\n", level / 10, level % 10);
gp_fwrite(Header, strlen(Header), 1, linear_params->Lin_File.file);
if (pdev->binary_ok)
gp_fwrite(Binary, strlen(Binary), 1, linear_params->Lin_File.file);
@@ -1887,16 +1887,16 @@ static int pdf_linearise(gx_device_pdf *pdev, pdf_linearisation_t *linear_params
/* Linearisation. Part 2, the Linearisation dictioanry */
linear_params->LDictOffset = gp_ftell(linear_params->Lin_File.file);
- gs_sprintf(LDict, "%d 0 obj\n<< \n",
+ gs_snprintf(LDict, sizeof(LDict), "%d 0 obj\n<< \n",
LDictObj);
gp_fwrite(LDict, strlen(LDict), 1, linear_params->Lin_File.file);
/* First page cross-reference table here (Part 3) */
linear_params->FirstxrefOffset = gp_ftell(linear_params->Lin_File.file);
- gs_sprintf(Header, "xref\n%d %d\n", LDictObj, Part1To6 - LDictObj + 1); /* +1 for the primary hint stream */
+ gs_snprintf(Header, sizeof(Header), "xref\n%d %d\n", LDictObj, Part1To6 - LDictObj + 1); /* +1 for the primary hint stream */
gp_fwrite(Header, strlen(Header), 1, linear_params->Lin_File.file);
- gs_sprintf(Header, "0000000000 00000 n \n");
+ gs_snprintf(Header, sizeof(Header), "0000000000 00000 n \n");
for (i = LDictObj;i <= linear_params->LastResource + 2; i++) {
gp_fwrite(Header, 20, 1, linear_params->Lin_File.file);
@@ -1906,7 +1906,7 @@ static int pdf_linearise(gx_device_pdf *pdev, pdf_linearisation_t *linear_params
* +1 for the linearisation dict and +1 for the primary hint stream.
*/
linear_params->FirsttrailerOffset = gp_ftell(linear_params->Lin_File.file);
- gs_sprintf(LDict, "\ntrailer\n<</Size %ld/Info %d 0 R/Root %d 0 R/ID[%s%s]/Prev %d>>\nstartxref\r\n0\n%%%%EOF\n \n",
+ gs_snprintf(LDict, sizeof(LDict), "\ntrailer\n<</Size %ld/Info %d 0 R/Root %d 0 R/ID[%s%s]/Prev %d>>\nstartxref\r\n0\n%%%%EOF\n \n",
linear_params->LastResource + 3, pdev->ResourceUsage[linear_params->Info_id].NewObjectNumber, pdev->ResourceUsage[linear_params->Catalog_id].NewObjectNumber, fileID, fileID, 0);
gp_fwrite(LDict, strlen(LDict), 1, linear_params->Lin_File.file);
@@ -2024,7 +2024,7 @@ static int pdf_linearise(gx_device_pdf *pdev, pdf_linearisation_t *linear_params
}
}
/* insert the primary hint stream */
- gs_sprintf(LDict, "%d 0 obj\n<</Length \n/S >>\nstream\n", HintStreamObj);
+ gs_snprintf(LDict, sizeof(LDict), "%d 0 obj\n<</Length \n/S >>\nstream\n", HintStreamObj);
gp_fwrite(LDict, strlen(LDict), 1, linear_params->sfile);
HintStreamStart = gp_ftell(linear_params->sfile);
@@ -2338,7 +2338,7 @@ static int pdf_linearise(gx_device_pdf *pdev, pdf_linearisation_t *linear_params
flush_hint_stream(linear_params);
HintLength = gp_ftell(linear_params->sfile) - HintStreamStart;
- gs_sprintf(LDict, "\nendstream\nendobj\n");
+ gs_snprintf(LDict, sizeof(LDict), "\nendstream\nendobj\n");
gp_fwrite(LDict, strlen(LDict), 1, linear_params->sfile);
/* Calculate the length of the primary hint stream */
HintStreamLen = gp_ftell(linear_params->sfile) - pdev->ResourceUsage[HintStreamObj].LinearisedOffset;
@@ -2371,23 +2371,23 @@ static int pdf_linearise(gx_device_pdf *pdev, pdf_linearisation_t *linear_params
/* Now the file is long enough, write the xref */
mainxref = gp_ftell(linear_params->sfile);
- gs_sprintf(Header, "xref\n0 %d\n", LDictObj);
+ gs_snprintf(Header, sizeof(Header), "xref\n0 %d\n", LDictObj);
gp_fwrite(Header, strlen(Header), 1, linear_params->sfile);
linear_params->T = gp_ftell(linear_params->sfile) - 1;
- gs_sprintf(Header, "0000000000 65535 f \n");
+ gs_snprintf(Header, sizeof(Header), "0000000000 65535 f \n");
gp_fwrite(Header, strlen(Header), 1, linear_params->sfile);
for (i = 1;i < LDictObj; i++) {
for (j = 0; j < pdev->ResourceUsageSize;j++) {
if (pdev->ResourceUsage[j].NewObjectNumber == i) {
- gs_sprintf(Header, "%010"PRId64" 00000 n \n", pdev->ResourceUsage[j].LinearisedOffset + HintStreamLen);
+ gs_snprintf(Header, sizeof(Header), "%010"PRId64" 00000 n \n", pdev->ResourceUsage[j].LinearisedOffset + HintStreamLen);
gp_fwrite(Header, 20, 1, linear_params->sfile);
}
}
}
- gs_sprintf(LDict, "trailer\n<</Size %d>>\nstartxref\n%"PRId64"\n%%%%EOF\n",
+ gs_snprintf(LDict, sizeof(LDict), "trailer\n<</Size %d>>\nstartxref\n%"PRId64"\n%%%%EOF\n",
LDictObj, linear_params->FirstxrefOffset);
gp_fwrite(LDict, strlen(LDict), 1, linear_params->sfile);
@@ -2401,19 +2401,19 @@ static int pdf_linearise(gx_device_pdf *pdev, pdf_linearisation_t *linear_params
* versions.
*/
gp_fseek(linear_params->sfile, linear_params->LDictOffset, SEEK_SET);
- gs_sprintf(LDict, "%d 0 obj\n<</Linearized 1/L %"PRId64"/H[ ", LDictObj, linear_params->FileLength);
+ gs_snprintf(LDict, sizeof(LDict), "%d 0 obj\n<</Linearized 1/L %"PRId64"/H[ ", LDictObj, linear_params->FileLength);
gp_fwrite(LDict, strlen(LDict), 1, linear_params->sfile);
- gs_sprintf(LDict, "%"PRId64"", pdev->ResourceUsage[HintStreamObj].LinearisedOffset);
+ gs_snprintf(LDict, sizeof(LDict), "%"PRId64"", pdev->ResourceUsage[HintStreamObj].LinearisedOffset);
gp_fwrite(LDict, strlen(LDict), 1, linear_params->sfile);
- gs_sprintf(LDict, " %"PRId64"]", HintStreamLen);
+ gs_snprintf(LDict, sizeof(LDict), " %"PRId64"]", HintStreamLen);
gp_fwrite(LDict, strlen(LDict), 1, linear_params->sfile);
/* Implementation Note 180 in hte PDF Reference 1.7 says that Acrobat
* gets the 'E' value wrong. So its probably not important....
*/
- gs_sprintf(LDict, "/O %d/E %"PRId64"",pdev->ResourceUsage[pdev->pages[0].Page->id].NewObjectNumber, linear_params->E);
+ gs_snprintf(LDict, sizeof(LDict), "/O %d/E %"PRId64"",pdev->ResourceUsage[pdev->pages[0].Page->id].NewObjectNumber, linear_params->E);
gp_fwrite(LDict, strlen(LDict), 1, linear_params->sfile);
- gs_sprintf(LDict, "/N %d/T %"PRId64">>\nendobj\n", pdev->next_page, linear_params->T);
+ gs_snprintf(LDict, sizeof(LDict), "/N %d/T %"PRId64">>\nendobj\n", pdev->next_page, linear_params->T);
gp_fwrite(LDict, strlen(LDict), 1, linear_params->sfile);
/* Return to the secondary xref and write it again filling
@@ -2423,13 +2423,13 @@ static int pdf_linearise(gx_device_pdf *pdev, pdf_linearisation_t *linear_params
code = gs_error_ioerror;
goto error;
}
- gs_sprintf(Header, "xref\n%d %d\n", LDictObj, Part1To6 - LDictObj + 1); /* +1 for the primary hint stream */
+ gs_snprintf(Header, sizeof(Header), "xref\n%d %d\n", LDictObj, Part1To6 - LDictObj + 1); /* +1 for the primary hint stream */
gp_fwrite(Header, strlen(Header), 1, linear_params->sfile);
for (i = LDictObj;i <= linear_params->LastResource + 2; i++) {
for (j = 0; j < pdev->ResourceUsageSize;j++) {
if (pdev->ResourceUsage[j].NewObjectNumber == i) {
- gs_sprintf(Header, "%010"PRId64" 00000 n \n", pdev->ResourceUsage[j].LinearisedOffset);
+ gs_snprintf(Header, sizeof(Header), "%010"PRId64" 00000 n \n", pdev->ResourceUsage[j].LinearisedOffset);
gp_fwrite(Header, 20, 1, linear_params->sfile);
}
}
@@ -2442,7 +2442,7 @@ static int pdf_linearise(gx_device_pdf *pdev, pdf_linearisation_t *linear_params
if (code != 0)
return_error(gs_error_ioerror);
- gs_sprintf(LDict, "\ntrailer\n<</Size %ld/Info %d 0 R/Root %d 0 R/ID[%s%s]/Prev %"PRId64">>\nstartxref\r\n0\n%%%%EOF\n",
+ gs_snprintf(LDict, sizeof(LDict), "\ntrailer\n<</Size %ld/Info %d 0 R/Root %d 0 R/ID[%s%s]/Prev %"PRId64">>\nstartxref\r\n0\n%%%%EOF\n",
linear_params->LastResource + 3, pdev->ResourceUsage[linear_params->Info_id].NewObjectNumber, pdev->ResourceUsage[linear_params->Catalog_id].NewObjectNumber, fileID, fileID, mainxref);
gp_fwrite(LDict, strlen(LDict), 1, linear_params->sfile);
@@ -2450,9 +2450,9 @@ static int pdf_linearise(gx_device_pdf *pdev, pdf_linearisation_t *linear_params
if (code != 0)
return_error(gs_error_ioerror);
- gs_sprintf(LDict, "%d 0 obj\n<</Length %10"PRId64"", HintStreamObj, HintLength);
+ gs_snprintf(LDict, sizeof(LDict), "%d 0 obj\n<</Length %10"PRId64"", HintStreamObj, HintLength);
gp_fwrite(LDict, strlen(LDict), 1, linear_params->sfile);
- gs_sprintf(LDict, "\n/S %10"PRId64">>\nstream\n", SharedHintOffset);
+ gs_snprintf(LDict, sizeof(LDict), "\n/S %10"PRId64">>\nstream\n", SharedHintOffset);
gp_fwrite(LDict, strlen(LDict), 1, linear_params->sfile);
error:
@@ -2648,11 +2648,21 @@ pdf_close(gx_device * dev)
char str[256];
pdf_linearisation_t linear_params;
bool file_per_page = false;
+ int bottom = (pdev->ResourcesBeforeUsage ? 1 : 0);
if (!dev->is_open)
return_error(gs_error_undefined);
dev->is_open = false;
+ if (pdev->sbstack_depth > bottom) {
+ emprintf(pdev->pdf_memory, "Error closing device; open substreams detected!\n");
+ emprintf(pdev->pdf_memory, "Probably due to errors in the input. Output file is incorrect/invalid.\n");
+ }
+
+ while(pdev->sbstack_depth > bottom)
+ /* This is an error, and we are trying to recover, so ignore any further errors */
+ (void)pdf_exit_substream(pdev);
+
if (pdev->initial_pattern_states != NULL) {
int pdepth = 0;
@@ -3093,12 +3103,12 @@ pdf_close(gx_device * dev)
linear_params.xref = xref;
if (pdev->FirstObjectNumber == 1) {
- gs_sprintf(str, "xref\n0 %"PRId64"\n0000000000 65535 f \n",
+ gs_snprintf(str, sizeof(str), "xref\n0 %"PRId64"\n0000000000 65535 f \n",
end_section);
stream_puts(s, str);
}
else {
- gs_sprintf(str, "xref\n0 1\n0000000000 65535 f \n%"PRId64" %"PRId64"\n",
+ gs_snprintf(str, sizeof(str), "xref\n0 1\n0000000000 65535 f \n%"PRId64" %"PRId64"\n",
start_section,
end_section - start_section);
stream_puts(s, str);
@@ -3107,7 +3117,7 @@ pdf_close(gx_device * dev)
do {
code = write_xref_section(pdev, tfile, start_section, end_section, resource_pos, linear_params.Offsets);
if (code < 0)
- return code;
+ goto error_cleanup;
if (end_section >= pdev->next_id)
break;
@@ -3115,7 +3125,7 @@ pdf_close(gx_device * dev)
end_section = find_end_xref_section(pdev, tfile, start_section, resource_pos);
if (end_section < 0)
return end_section;
- gs_sprintf(str, "%"PRId64" %"PRId64"\n", start_section, end_section - start_section);
+ gs_snprintf(str, sizeof(str), "%"PRId64" %"PRId64"\n", start_section, end_section - start_section);
stream_puts(s, str);
} while (1);
@@ -3134,7 +3144,7 @@ pdf_close(gx_device * dev)
pprintld1(s, "/Encrypt %ld 0 R ", Encrypt_id);
}
stream_puts(s, ">>\n");
- gs_sprintf(xref_str, "startxref\n%"PRId64"\n%%%%EOF\n", xref);
+ gs_snprintf(xref_str, sizeof(xref_str), "startxref\n%"PRId64"\n%%%%EOF\n", xref);
stream_puts(s, xref_str);
}
}
@@ -3150,6 +3160,7 @@ pdf_close(gx_device * dev)
gs_free_object(pdev->pdf_memory->non_gc_memory, pdev->ResourceUsage, "Free linearisation resource usage records");
}
+error_cleanup:
/* Require special handling for Fonts, ColorSpace and Pattern resources
* These are tracked in pdev->last_resource, and are complex structures which may
* contain other memory allocations. All other resource types can be simply dicarded
@@ -3501,6 +3512,15 @@ pdf_close(gx_device * dev)
gs_free_object(mem, pdev->pages[i].Annots, "Free Annots dict");
}
gs_free_object(mem, pdev->pages[i].Page, "Free Page object");
+ pdev->pages[i].Page = NULL;
+ }
+ for (i=0;i < pdev->num_pages;i++) {
+ if (pdev->pages[i].Page != NULL) {
+ emprintf(pdev->memory,
+ "Page object was reserved for an Annotation destinatio, but no such page was drawn, annotation in output will be invalid.\n");
+ gs_free_object(mem, pdev->pages[i].Page, "Free Page object");
+ pdev->pages[i].Page = NULL;
+ }
}
}
gs_free_object(mem, pdev->pages, "pages");
@@ -3562,6 +3582,8 @@ pdf_close(gx_device * dev)
code = gs_error_ioerror;
}
+ pdf_free_pdf_font_cache(pdev);
+
code1 = gdev_vector_close_file((gx_device_vector *) pdev);
if (code >= 0)
code = code1;
@@ -3588,6 +3610,5 @@ pdf_close(gx_device * dev)
code = gs_note_error(gs_error_ioerror);
}
- pdf_free_pdf_font_cache(pdev);
return code;
}
diff --git a/devices/vector/gdevpdfb.h b/devices/vector/gdevpdfb.h
index daa6ba0a..b85dffe3 100644
--- a/devices/vector/gdevpdfb.h
+++ b/devices/vector/gdevpdfb.h
@@ -184,6 +184,7 @@ const gx_device_pdf PDF_DEVICE_IDENT =
{{0, 0}, {0, 0}}, /* Charproc BBox */
0, /* charproc_just_accumulated */
1, /* PS_accumulator */
+ 0, /* Scaled_accumulator */
0, /* accumulating_a_global_object */
0, /* cgp */
0, /* substituted_pattern_count */
diff --git a/devices/vector/gdevpdfd.c b/devices/vector/gdevpdfd.c
index c7cad3e5..ea40111b 100644
--- a/devices/vector/gdevpdfd.c
+++ b/devices/vector/gdevpdfd.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 2001-2021 Artifex Software, Inc.
+/* Copyright (C) 2001-2022 Artifex Software, Inc.
All Rights Reserved.
This software is provided AS-IS with no warranty, either express or
@@ -499,7 +499,7 @@ static int pdf_write_path(gx_device_pdf * pdev, gs_path_enum *cenum, gdev_vector
buffering = 0;
seg_index = -1;
}
- if (type & gx_path_type_optimize) {
+ if (type & gx_path_type_optimize && seg_index > 0) {
if (segments[seg_index - 1].op == gs_pe_lineto) {
if (segments[seg_index].vs[0].x == segments[seg_index - 1].vs[0].x && segments[seg_index].vs[0].x == line_start.x) {
if (segments[seg_index - 1].vs[0].y > line_start.y && segments[seg_index].vs[0].y >= segments[seg_index - 1].vs[0].y) {
diff --git a/devices/vector/gdevpdfe.c b/devices/vector/gdevpdfe.c
index e083ee11..ec011d8b 100644
--- a/devices/vector/gdevpdfe.c
+++ b/devices/vector/gdevpdfe.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 2001-2021 Artifex Software, Inc.
+/* Copyright (C) 2001-2022 Artifex Software, Inc.
All Rights Reserved.
This software is provided AS-IS with no warranty, either express or
@@ -209,7 +209,7 @@ pdf_xmp_time(char *buf, int buf_length)
time(&t);
tms = *localtime(&t);
#endif
- gs_sprintf(buf1,
+ gs_snprintf(buf1, sizeof(buf1),
"%04d-%02d-%02d",
tms.tm_year + 1900, tms.tm_mon + 1, tms.tm_mday);
strncpy(buf, buf1, buf_length);
@@ -489,8 +489,11 @@ pdf_xmp_write_translated(gx_device_pdf *pdev, stream *s, const byte *data, int d
/* Skip the Byte Order Mark (0xfe 0xff) */
buf0b = (short *)(buf0 + 2);
code = gs_ConvertUTF16((unsigned char *)buf0b, j - 2, (unsigned char **)&buf1b, data_length * 2 * sizeof(unsigned char));
- if (code < 0)
+ if (code < 0) {
+ gs_free_object(pdev->memory, buf0, "pdf_xmp_write_translated");
+ gs_free_object(pdev->memory, buf1, "pdf_xmp_write_translated");
return code;
+ }
write(s, (const byte *)buf1, buf1b - buf1);
gs_free_object(pdev->memory, buf1, "pdf_xmp_write_translated");
}
@@ -881,7 +884,7 @@ pdf_document_metadata(gx_device_pdf *pdev)
code = COS_WRITE_OBJECT(pres->object, pdev, resourceNone);
if (code < 0)
return code;
- gs_sprintf(buf, "%ld 0 R", pres->object->id);
+ gs_snprintf(buf, sizeof(buf), "%ld 0 R", pres->object->id);
pdf_record_usage(pdev, pres->object->id, resource_usage_part9_structure);
code = cos_dict_put_c_key_object(pdev->Catalog, "/Metadata", pres->object);
diff --git a/devices/vector/gdevpdfg.c b/devices/vector/gdevpdfg.c
index 6feec8b0..d61712b0 100644
--- a/devices/vector/gdevpdfg.c
+++ b/devices/vector/gdevpdfg.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 2001-2021 Artifex Software, Inc.
+/* Copyright (C) 2001-2022 Artifex Software, Inc.
All Rights Reserved.
This software is provided AS-IS with no warranty, either express or
@@ -2083,7 +2083,7 @@ transfer_map_access_signed(const gs_data_source_t *psrc,
static int
pdf_write_transfer_map(gx_device_pdf *pdev, const gx_transfer_map *map,
int range0, bool check_identity,
- const char *key, char *ids)
+ const char *key, char *ids, int id_max)
{
gs_memory_t *mem = pdev->pdf_memory;
gs_function_Sd_params_t params;
@@ -2152,14 +2152,14 @@ pdf_write_transfer_map(gx_device_pdf *pdev, const gx_transfer_map *map,
gs_function_free(pfn, false, mem);
if (code < 0)
return code;
- gs_sprintf(ids, "%s%s%ld 0 R", key, (key[0] && key[0] != ' ' ? " " : ""), id);
+ gs_snprintf(ids, id_max, "%s%s%ld 0 R", key, (key[0] && key[0] != ' ' ? " " : ""), id);
return 0;
}
static int
pdf_write_transfer(gx_device_pdf *pdev, const gx_transfer_map *map,
- const char *key, char *ids)
+ const char *key, char *ids, int id_max)
{
- return pdf_write_transfer_map(pdev, map, 0, true, key, ids);
+ return pdf_write_transfer_map(pdev, map, 0, true, key, ids, id_max);
}
/* ------ Halftones ------ */
@@ -2395,7 +2395,7 @@ pdf_write_spot_halftone(gx_device_pdf *pdev, const gs_spot_halftone *psht,
if (pdev->CompatibilityLevel <= 1.7) {
code = pdf_write_transfer(pdev, porder->transfer, "/TransferFunction",
- trs);
+ trs, sizeof(trs));
if (code < 0)
return code;
}
@@ -2515,7 +2515,7 @@ pdf_write_threshold_halftone(gx_device_pdf *pdev,
memset(trs, 0x00, 17 + MAX_FN_CHARS + 1);
if (pdev->CompatibilityLevel <= 1.7) {
code = pdf_write_transfer(pdev, porder->transfer, "",
- trs);
+ trs, sizeof(trs));
if (code < 0)
return code;
@@ -2549,7 +2549,7 @@ pdf_write_threshold2_halftone(gx_device_pdf *pdev,
memset(trs, 0x00, 17 + MAX_FN_CHARS + 1);
if (pdev->CompatibilityLevel <= 1.7) {
code = pdf_write_transfer(pdev, porder->transfer, "",
- trs);
+ trs, sizeof(trs));
if (code < 0)
return code;
@@ -2710,7 +2710,7 @@ pdf_write_multiple_halftone(gx_device_pdf *pdev, gs_gstate *pgs,
*/
static int
pdf_update_halftone(gx_device_pdf *pdev, const gs_gstate *pgs,
- char *hts)
+ char *hts, int hts_max)
{
const gs_halftone *pht = pgs->halftone;
const gx_device_halftone *pdht = pgs->dev_ht[HT_OBJTYPE_DEFAULT];
@@ -2748,7 +2748,7 @@ pdf_update_halftone(gx_device_pdf *pdev, const gs_gstate *pgs,
}
if (code < 0)
return code;
- gs_sprintf(hts, "%ld 0 R", id);
+ gs_snprintf(hts, hts_max, "%ld 0 R", id);
pdev->halftone_id = pgs->dev_ht[HT_OBJTYPE_DEFAULT]->id;
return code;
}
@@ -2816,7 +2816,7 @@ pdf_end_gstate(gx_device_pdf *pdev, pdf_resource_t *pres)
*/
static int
pdf_update_transfer(gx_device_pdf *pdev, const gs_gstate *pgs,
- char *trs)
+ char *trs, int trs_max)
{
int i, pi = -1;
bool multiple = false, update = false;
@@ -2842,7 +2842,7 @@ pdf_update_transfer(gx_device_pdf *pdev, const gs_gstate *pgs,
int mask;
if (!multiple) {
- code = pdf_write_transfer(pdev, tm[pi], "", trs);
+ code = pdf_write_transfer(pdev, tm[pi], "", trs, trs_max);
if (code < 0)
return code;
mask = code == 0;
@@ -2851,9 +2851,10 @@ pdf_update_transfer(gx_device_pdf *pdev, const gs_gstate *pgs,
mask = 0;
for (i = 0; i < 4; ++i)
if (tm[i] != NULL) {
+ int len = (int)strlen(trs);
code = pdf_write_transfer_map(pdev,
tm[i],
- 0, true, " ", trs + strlen(trs));
+ 0, true, " ", trs + len, trs_max - len);
if (code < 0)
return code;
mask |= (code == 0) << i;
@@ -2891,7 +2892,7 @@ pdf_update_alpha(gx_device_pdf *pdev, const gs_gstate *pgs,
}
}
else{
- gs_sprintf(buf, "%ld 0 R", pgs->soft_mask_id);
+ gs_snprintf(buf, sizeof(buf), "%ld 0 R", pgs->soft_mask_id);
code = pdf_open_gstate(pdev, ppres);
if (code < 0)
return code;
@@ -2941,6 +2942,9 @@ pdf_prepare_drawing(gx_device_pdf *pdev, const gs_gstate *pgs,
int bottom;
if (pdev->CompatibilityLevel >= 1.4) {
+ code = pdf_update_alpha(pdev, pgs, ppres, for_text);
+ if (code < 0)
+ return code;
if (pdev->state.blend_mode != pgs->blend_mode) {
static const char *const bm_names[] = { GS_BLEND_MODE_NAMES };
char buf[20];
@@ -2955,9 +2959,6 @@ pdf_prepare_drawing(gx_device_pdf *pdev, const gs_gstate *pgs,
return code;
pdev->state.blend_mode = pgs->blend_mode;
}
- code = pdf_update_alpha(pdev, pgs, ppres, for_text);
- if (code < 0)
- return code;
} else {
/*
* If the graphics state calls for any transparency functions,
@@ -2991,28 +2992,28 @@ pdf_prepare_drawing(gx_device_pdf *pdev, const gs_gstate *pgs,
pdev->halftone_id != pgs->dev_ht[HT_OBJTYPE_DEFAULT]->id &&
!pdev->PDFX
) {
- code = pdf_update_halftone(pdev, pgs, hts);
+ code = pdf_update_halftone(pdev, pgs, hts, sizeof(hts));
if (code < 0)
return code;
}
if (pdev->params.TransferFunctionInfo != tfi_Remove &&
!pdev->PDFX && pdev->PDFA == 0
) {
- code = pdf_update_transfer(pdev, pgs, trs);
+ code = pdf_update_transfer(pdev, pgs, trs, sizeof(trs));
if (code < 0)
return code;
}
if (pdev->params.UCRandBGInfo == ucrbg_Preserve) {
if (pgs->black_generation && pdev->black_generation_id != pgs->black_generation->id) {
code = pdf_write_transfer_map(pdev, pgs->black_generation,
- 0, false, "", bgs);
+ 0, false, "", bgs, sizeof(bgs));
if (code < 0)
return code;
pdev->black_generation_id = pgs->black_generation->id;
}
if (pgs->undercolor_removal && pdev->undercolor_removal_id != pgs->undercolor_removal->id) {
code = pdf_write_transfer_map(pdev, pgs->undercolor_removal,
- -1, false, "", ucrs);
+ -1, false, "", ucrs, sizeof(ucrs));
if (code < 0)
return code;
pdev->undercolor_removal_id = pgs->undercolor_removal->id;
@@ -3046,14 +3047,45 @@ pdf_prepare_drawing(gx_device_pdf *pdev, const gs_gstate *pgs,
if (!pdev->PDFX) {
gs_currentscreenphase(pgs, &phase, 0);
gs_currentscreenphase(&pdev->state, &dev_phase, 0);
+ if ((dev_phase.x != phase.x || dev_phase.y != phase.y) && pdev->PDFA != 0) {
+ switch (pdev->PDFACompatibilityPolicy) {
+ case 0:
+ emprintf(pdev->memory,
+ "\nSetting Halftone Phase or Halftone Offset\n not permitted in PDF/A, reverting to normal PDF output\n");
+ pdev->AbortPDFAX = true;
+ pdev->PDFA = 0;
+ break;
+ case 1:
+ emprintf(pdev->memory,
+ "\nSetting Halftone Phase or Halftone Offset\n not permitted in PDF/A, values not set\n\n");
+ /* Deliberately breaking const here in order to force the graphics state overprint mode to be unchanged */
+ dev_phase.x = phase.x;
+ dev_phase.y = phase.y;
+ break;
+ case 2:
+ emprintf(pdev->memory,
+ "\nSetting Halftone Phase or Halftone Offset\n not permitted in PDF/A, aborting conversion\n");
+ return_error(gs_error_undefined);
+ break;
+ default:
+ emprintf(pdev->memory,
+ "\nSetting Overprint Mode to 1\n not permitted in PDF/A, unrecognised PDFACompatibilityLevel,\nreverting to normal PDF output\n");
+ pdev->AbortPDFAX = true;
+ pdev->PDFA = 0;
+ break;
+ }
+ }
if (dev_phase.x != phase.x || dev_phase.y != phase.y) {
char buf[sizeof(int) * 3 + 5];
code = pdf_open_gstate(pdev, ppres);
if (code < 0)
return code;
- gs_sprintf(buf, "[%d %d]", phase.x, phase.y);
- code = cos_dict_put_string_copy(resource_dict(*ppres), "/HTP", buf);
+ gs_snprintf(buf, sizeof(buf), "[%d %d]", phase.x, phase.y);
+ if (pdev->CompatibilityLevel >= 1.999)
+ code = cos_dict_put_string_copy(resource_dict(*ppres), "/HTO", buf);
+ else
+ code = cos_dict_put_string_copy(resource_dict(*ppres), "/HTP", buf);
if (code < 0)
return code;
gx_gstate_setscreenphase(&pdev->state, phase.x, phase.y,
diff --git a/devices/vector/gdevpdfi.c b/devices/vector/gdevpdfi.c
index 82e8f7a2..1e1a9daa 100644
--- a/devices/vector/gdevpdfi.c
+++ b/devices/vector/gdevpdfi.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 2001-2021 Artifex Software, Inc.
+/* Copyright (C) 2001-2022 Artifex Software, Inc.
All Rights Reserved.
This software is provided AS-IS with no warranty, either express or
@@ -1923,7 +1923,7 @@ pdf_end_and_do_image(gx_device_pdf *pdev, pdf_image_writer *piw,
if (pdev->image_mask_id != gs_no_id) {
char buf[20];
- gs_sprintf(buf, "%ld 0 R", pdev->image_mask_id);
+ gs_snprintf(buf, sizeof(buf), "%ld 0 R", pdev->image_mask_id);
code = cos_dict_put_string_copy((cos_dict_t *)pres->object,
pdev->image_mask_is_SMask ? "/SMask" : "/Mask", buf);
(*(pres->object)).md5_valid = 0;
@@ -2372,6 +2372,8 @@ static int reset_gstate_for_pattern(gx_device_pdf * pdev, gs_gstate *destination
source->line_params.dot_length_absolute = pdev->vg_initial.line_params.dot_length_absolute;
destination->line_params.dot_orientation = source->line_params.dot_orientation;
source->line_params.dot_orientation = pdev->vg_initial.line_params.dot_orientation;
+ if (destination->line_params.dash.pattern != NULL && destination->line_params.dash.pattern != source->line_params.dash.pattern)
+ gs_free_object(destination->memory, destination->line_params.dash.pattern, "free dash assigned during pattern accumulation");
memcpy(&destination->line_params.dash, &source->line_params.dash, sizeof(source->line_params.dash));
memcpy(&source->line_params.dash, &pdev->vg_initial.line_params.dash, sizeof(source->line_params.dash));
}
diff --git a/devices/vector/gdevpdfm.c b/devices/vector/gdevpdfm.c
index 902c17ac..f6b6c51f 100644
--- a/devices/vector/gdevpdfm.c
+++ b/devices/vector/gdevpdfm.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 2001-2021 Artifex Software, Inc.
+/* Copyright (C) 2001-2022 Artifex Software, Inc.
All Rights Reserved.
This software is provided AS-IS with no warranty, either express or
@@ -171,12 +171,12 @@ pdfmark_make_dest(char dstr[MAX_DEST_STRING], gx_device_pdf * pdev,
else if (pdfmark_find_key("/Action", pairs, count, &action) &&
pdf_key_eq(&action, "/GoToR")
)
- gs_sprintf(dstr, "[%d ", page - 1);
+ gs_snprintf(dstr, MAX_DEST_STRING, "[%d ", page - 1);
else {
code = update_max_page_reference(pdev, &page);
if (code < 0)
return code;
- gs_sprintf(dstr, "[%ld 0 R ", pdf_page_id(pdev, page));
+ gs_snprintf(dstr, MAX_DEST_STRING, "[%ld 0 R ", pdf_page_id(pdev, page));
}
len = strlen(dstr);
if (len + view_string.size > MAX_DEST_STRING)
@@ -912,7 +912,7 @@ pdfmark_put_ao_pairs(gx_device_pdf * pdev, cos_dict_t *pcd,
char dstr[1 + (sizeof(long) * 8 / 3 + 1) + 25 + 1];
long page_id = pdf_page_id(pdev, pdev->next_page + 1);
- gs_sprintf(dstr, "[%ld 0 R /XYZ null null null]", page_id);
+ gs_snprintf(dstr, MAX_DEST_STRING, "[%ld 0 R /XYZ null null null]", page_id);
cos_dict_put_c_key_string(pcd, "/Dest", (const unsigned char*) dstr,
strlen(dstr));
}
@@ -1769,7 +1769,7 @@ pdfmark_PS(gx_device_pdf * pdev, gs_param_string * pairs, uint count,
if (level1_id != gs_no_id) {
char r[MAX_DEST_STRING];
- gs_sprintf(r, "%ld 0 R", level1_id);
+ gs_snprintf(r, sizeof(r), "%ld 0 R", level1_id);
code = cos_dict_put_c_key_string(cos_stream_dict(pcs), "/Level1",
(byte *)r, strlen(r));
if (code < 0)
@@ -1933,7 +1933,7 @@ pdfmark_PAGELABEL(gx_device_pdf * pdev, gs_param_string * pairs, uint count,
return 0;
}
-static int is_XMP_Key(gs_param_string *param)
+static int is_XMP_Key(const gs_param_string *param)
{
if (pdf_key_eq(param, "/Title"))
return 1;
@@ -2450,7 +2450,23 @@ static int
pdfmark_MP(gx_device_pdf *pdev, gs_param_string *pairs, uint count,
const gs_matrix *pctm, const gs_param_string *objname)
{
- return 0; /****** NOT IMPLEMENTED YET ******/
+ int code;
+ char *tag;
+
+ if (count != 1) return_error(gs_error_rangecheck);
+
+ tag = (char *)gs_alloc_bytes(pdev->memory, (pairs[0].size + 1) * sizeof(unsigned char),
+ "pdfmark_MP");
+ memcpy(tag, pairs[0].data, pairs[0].size);
+ tag[pairs[0].size] = 0x00;
+
+ code = pdf_open_contents(pdev, PDF_IN_STREAM);
+ if (code < 0) return code;
+
+ pprints1(pdev->strm, "%s MP\n", tag);
+
+ gs_free_object(pdev->memory, tag, "pdfmark_MP");
+ return 0;
}
/* [ tag propdict /DP pdfmark */
@@ -2458,7 +2474,87 @@ static int
pdfmark_DP(gx_device_pdf *pdev, gs_param_string *pairs, uint count,
const gs_matrix *pctm, const gs_param_string *objname)
{
- return 0; /****** NOT IMPLEMENTED YET ******/
+ int code;
+ cos_object_t *pco;
+ char *cstring;
+ pdf_resource_t *pres;
+
+ if (count != 2) return_error(gs_error_rangecheck);
+
+ /* check tag for /Name object syntax */
+ if ((pairs[0].data)[0] != '/') return_error(gs_error_rangecheck);
+
+ /* check propdict for {object name} syntax */
+ if (pdf_objname_is_valid(pairs[1].data, pairs[1].size))
+ {
+ code = pdf_refer_named(pdev, &pairs[1], &pco);
+ if(code < 0) return code;
+ }
+ else /* << inline prop dict >> */
+ {
+ /* strip << and >> */
+ if ((pairs[1].data)[0]=='<'&&(pairs[1].data)[1]=='<')
+ {
+ int ix = 0;
+ byte *p = (byte *)pairs[1].data;
+
+ /* Fortunately we don't use the 'size' when freeing the memory
+ * so we can quickly copy the string content up two places and reduce
+ * the size by 2 to remove the '<<'. This saves an alloc and free of the
+ * string data.
+ */
+ for (ix = 0; ix < pairs[1].size - 2;ix++)
+ p[ix] = pairs[1].data[ix + 2];
+ pairs[1].size-=2;
+ }
+ else
+ return_error(gs_error_rangecheck);
+
+ if ((pairs[1].data)[pairs[1].size-1]=='>'&&(pairs[1].data)[pairs[1].size-2]=='>')
+ pairs[1].size-=2;
+
+ /* convert inline propdict to C string with object names replaced by refs */
+ code = pdf_replace_names(pdev, &pairs[1], &pairs[1]);
+ if (code<0) return code;
+ cstring = (char *)gs_alloc_bytes(pdev->memory, (pairs[1].size + 1) * sizeof(unsigned char),
+ "pdfmark_DP");
+ memcpy(cstring, pairs[1].data, pairs[1].size);
+ cstring[pairs[1].size] = 0x00;
+
+ code = pdf_make_named_dict(pdev, NULL, (cos_dict_t**) &pco, true);
+ if (code<0) return code;
+
+ /* copy inline propdict to new object */
+ code = cos_dict_put_c_strings((cos_dict_t*) pco, cstring, "");
+ if(code < 0) return code;
+ COS_WRITE_OBJECT(pco, pdev, resourceProperties);
+ COS_RELEASE(pco, "pdfmark_DP");
+ gs_free_object(pdev->memory, cstring, "pdfmark_DP");
+ }
+
+ pres = pdf_find_resource_by_resource_id(pdev, resourceProperties, pco->id);
+ if (pres==0){
+ if ((code = pdf_alloc_resource(pdev, resourceProperties, pco->id, &(pco->pres), pco->id))<0)
+ return code;
+ }
+
+ cstring = (char *)gs_alloc_bytes(pdev->memory, (pairs[0].size + 1) * sizeof(unsigned char),
+ "pdfmark_DP");
+ memcpy(cstring, pairs[0].data, pairs[0].size);
+ cstring[pairs[0].size] = 0x00;
+
+ /* make sure we write to the correct stream */
+ code = pdf_open_contents(pdev, PDF_IN_STREAM);
+ if (code < 0) return code;
+
+ pprints1(pdev->strm, "%s", cstring); /* write tag */
+ pprintld1(pdev->strm, "/R%ld DP\n", pco->id);
+ pco->pres->where_used |= pdev->used_mask;
+ if ((code = pdf_add_resource(pdev, pdev->substream_Resources, "/Properties", pco->pres))<0)
+ return code;
+
+ gs_free_object(pdev->memory, cstring, "pdfmark_DP");
+ return 0;
}
/* [ tag /BMC pdfmark */
diff --git a/devices/vector/gdevpdfo.c b/devices/vector/gdevpdfo.c
index a1c18012..3ec00f5e 100644
--- a/devices/vector/gdevpdfo.c
+++ b/devices/vector/gdevpdfo.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 2001-2021 Artifex Software, Inc.
+/* Copyright (C) 2001-2022 Artifex Software, Inc.
All Rights Reserved.
This software is provided AS-IS with no warranty, either express or
@@ -701,7 +701,7 @@ cos_array_add_int(cos_array_t *pca, int i)
char str[sizeof(int) * 8 / 3 + 3]; /* sign, rounding, 0 terminator */
cos_value_t v;
- gs_sprintf(str, "%d", i);
+ gs_snprintf(str, sizeof(str), "%d", i);
return cos_array_add(pca, cos_string_value(&v, (byte *)str, strlen(str)));
}
int
@@ -1380,7 +1380,7 @@ cos_dict_put_c_key_int(cos_dict_t *pcd, const char *key, int value)
{
char str[sizeof(int) * 8 / 3 + 3]; /* sign, rounding, 0 terminator */
- gs_sprintf(str, "%d", value);
+ gs_snprintf(str, sizeof(str), "%d", value);
return cos_dict_put_c_key_string(pcd, key, (byte *)str, strlen(str));
}
int
diff --git a/devices/vector/gdevpdfr.c b/devices/vector/gdevpdfr.c
index 7aca15a6..fd641aef 100644
--- a/devices/vector/gdevpdfr.c
+++ b/devices/vector/gdevpdfr.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 2001-2021 Artifex Software, Inc.
+/* Copyright (C) 2001-2022 Artifex Software, Inc.
All Rights Reserved.
This software is provided AS-IS with no warranty, either express or
@@ -140,7 +140,7 @@ pdf_refer_named(gx_device_pdf * pdev, const gs_param_string * pname_orig,
}
if (page_number <= 0)
return code;
- gs_sprintf(page_name_chars, "{Page%d}", page_number);
+ gs_snprintf(page_name_chars, sizeof(page_name_chars), "{Page%d}", page_number);
param_string_from_string(pnstr, page_name_chars);
pname = &pnstr;
code = pdf_find_named(pdev, pname, ppco);
@@ -470,7 +470,7 @@ pdf_replace_names(gx_device_pdf * pdev, const gs_param_string * from,
size += sname - scan;
if (pco) {
- gs_sprintf(ref, " %ld 0 R ", pco->id);
+ gs_snprintf(ref, sizeof(ref), " %ld 0 R ", pco->id);
size += strlen(ref);
/* Special 'name' escaping convention (see gs_pdfwr.ps, /.pdf===dict
* the /nametype procedure). We do not want to write out the NULL
@@ -509,7 +509,7 @@ pdf_replace_names(gx_device_pdf * pdev, const gs_param_string * from,
memcpy(sto, scan, copy);
sto += copy;
if (pco) {
- gs_sprintf(ref, " %ld 0 R ", pco->id);
+ gs_snprintf(ref, sizeof(ref), " %ld 0 R ", pco->id);
rlen = strlen(ref);
if (sname >= (start + 2) && sname[-1] == 0x00 && sname[-2] == 0x00 && next[0] == 0x00) {
sto -= 2;
diff --git a/devices/vector/gdevpdft.c b/devices/vector/gdevpdft.c
index 5b8af68d..72f082f9 100644
--- a/devices/vector/gdevpdft.c
+++ b/devices/vector/gdevpdft.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 2001-2021 Artifex Software, Inc.
+/* Copyright (C) 2001-2022 Artifex Software, Inc.
All Rights Reserved.
This software is provided AS-IS with no warranty, either express or
@@ -63,7 +63,7 @@ pdf_make_soft_mask_dict(gx_device_pdf * pdev, const gs_pdf14trans_params_t * ppa
code = pdf_write_function(pdev, pparams->transfer_function, &id);
if (code < 0)
return code;
- gs_sprintf(buf, " %ld 0 R", id);
+ gs_snprintf(buf, sizeof(buf), " %ld 0 R", id);
code = cos_dict_put_c_key_string(soft_mask_dict, "/TR", (const byte *)buf, strlen(buf));
if (code < 0)
return code;
@@ -365,7 +365,7 @@ pdf_end_transparency_mask(gs_gstate * pgs, gx_device_pdf * pdev,
return 0;
/* We need to update the 'where_used' field, in case we substituted a resource */
pres->where_used |= pdev->used_mask;
- gs_sprintf(buf, "%ld 0 R", pdf_resource_id(pres));
+ gs_snprintf(buf, sizeof(buf), "%ld 0 R", pdf_resource_id(pres));
if (pdev->pres_soft_mask_dict == 0L) {
/* something went horribly wrong, we have an 'end' wihtout a matching 'begin'
* Give up, throw an error.
diff --git a/devices/vector/gdevpdfu.c b/devices/vector/gdevpdfu.c
index ec4a8165..f12fa38e 100644
--- a/devices/vector/gdevpdfu.c
+++ b/devices/vector/gdevpdfu.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 2001-2021 Artifex Software, Inc.
+/* Copyright (C) 2001-2022 Artifex Software, Inc.
All Rights Reserved.
This software is provided AS-IS with no warranty, either express or
@@ -335,14 +335,14 @@ static int write_tt_encodings(stream *s, bool HaveTrueTypes)
char Buffer[256];
single_glyph_list_t *entry = SingleGlyphList;
- gs_sprintf(Buffer, "/AdobeGlyphList mark\n");
+ gs_snprintf(Buffer, sizeof(Buffer), "/AdobeGlyphList mark\n");
stream_write(s, Buffer, strlen(Buffer));
while (entry->Glyph) {
- gs_sprintf(Buffer, "/%s 16#%04x\n", entry->Glyph, entry->Unicode);
+ gs_snprintf(Buffer, sizeof(Buffer), "/%s 16#%04x\n", entry->Glyph, entry->Unicode);
stream_write(s, Buffer, strlen(Buffer));
entry++;
};
- gs_sprintf(Buffer, ".dicttomark readonly def\n");
+ gs_snprintf(Buffer, sizeof(Buffer), ".dicttomark readonly def\n");
stream_write(s, Buffer, strlen(Buffer));
index = 0;
@@ -523,29 +523,29 @@ int ps2write_dsc_header(gx_device_pdf * pdev, int pages)
}
}
if (!pdev->Eps2Write || pdev->BBox.p.x > pdev->BBox.q.x || pdev->BBox.p.y > pdev->BBox.q.y)
- gs_sprintf(BBox, "%%%%BoundingBox: 0 0 %d %d\n", (int)urx, (int)ury);
+ gs_snprintf(BBox, sizeof(BBox), "%%%%BoundingBox: 0 0 %d %d\n", (int)urx, (int)ury);
else
- gs_sprintf(BBox, "%%%%BoundingBox: %d %d %d %d\n", (int)floor(pdev->BBox.p.x), (int)floor(pdev->BBox.p.y), (int)ceil(pdev->BBox.q.x), (int)ceil(pdev->BBox.q.y));
+ gs_snprintf(BBox, sizeof(BBox), "%%%%BoundingBox: %d %d %d %d\n", (int)floor(pdev->BBox.p.x), (int)floor(pdev->BBox.p.y), (int)ceil(pdev->BBox.q.x), (int)ceil(pdev->BBox.q.y));
stream_write(s, (byte *)BBox, strlen(BBox));
if (!pdev->Eps2Write || pdev->BBox.p.x > pdev->BBox.q.x || pdev->BBox.p.y > pdev->BBox.q.y)
- gs_sprintf(BBox, "%%%%HiResBoundingBox: 0 0 %.2f %.2f\n", urx, ury);
+ gs_snprintf(BBox, sizeof(BBox), "%%%%HiResBoundingBox: 0 0 %.2f %.2f\n", urx, ury);
else
- gs_sprintf(BBox, "%%%%HiResBoundingBox: %.2f %.2f %.2f %.2f\n", pdev->BBox.p.x, pdev->BBox.p.y, pdev->BBox.q.x, pdev->BBox.q.y);
+ gs_snprintf(BBox, sizeof(BBox), "%%%%HiResBoundingBox: %.2f %.2f %.2f %.2f\n", pdev->BBox.p.x, pdev->BBox.p.y, pdev->BBox.q.x, pdev->BBox.q.y);
stream_write(s, (byte *)BBox, strlen(BBox));
}
cre_date_time_len = pdf_get_docinfo_item(pdev, "/CreationDate", cre_date_time, sizeof(cre_date_time) - 1);
cre_date_time[cre_date_time_len] = 0;
- gs_sprintf(BBox, "%%%%Creator: %s %d (%s)\n", gs_product, (int)gs_revision,
+ gs_snprintf(BBox, sizeof(BBox), "%%%%Creator: %s %d (%s)\n", gs_product, (int)gs_revision,
pdev->dname);
stream_write(s, (byte *)BBox, strlen(BBox));
stream_puts(s, "%%LanguageLevel: 2\n");
- gs_sprintf(BBox, "%%%%CreationDate: %s\n", cre_date_time);
+ gs_snprintf(BBox, sizeof(BBox), "%%%%CreationDate: %s\n", cre_date_time);
stream_write(s, (byte *)BBox, strlen(BBox));
- gs_sprintf(BBox, "%%%%Pages: %d\n", pages);
+ gs_snprintf(BBox, sizeof(BBox), "%%%%Pages: %d\n", pages);
stream_write(s, (byte *)BBox, strlen(BBox));
- gs_sprintf(BBox, "%%%%EndComments\n");
+ gs_snprintf(BBox, sizeof(BBox), "%%%%EndComments\n");
stream_write(s, (byte *)BBox, strlen(BBox));
- gs_sprintf(BBox, "%%%%BeginProlog\n");
+ gs_snprintf(BBox, sizeof(BBox), "%%%%BeginProlog\n");
stream_write(s, (byte *)BBox, strlen(BBox));
if (pdev->params.CompressPages) {
/* When CompressEntireFile is true and ASCII85EncodePages is false,
@@ -605,7 +605,7 @@ pdfwrite_pdf_open_document(gx_device_pdf * pdev)
pdev->CompressEntireFile = 0;
else {
stream_write(s, (byte *)"%!\r", 3);
- gs_sprintf(BBox, "%%%%BoundingBox: 0 0 %d %d\n", width, height);
+ gs_snprintf(BBox, sizeof(BBox), "%%%%BoundingBox: 0 0 %d %d\n", width, height);
stream_write(s, (byte *)BBox, strlen(BBox));
if (pdev->params.CompressPages || pdev->CompressEntireFile) {
/* When CompressEntireFile is true and ASCII85EncodePages is false,
@@ -1544,7 +1544,7 @@ void
pdf_reserve_object_id(gx_device_pdf * pdev, pdf_resource_t *pres, long id)
{
pres->object->id = (id == 0 ? pdf_obj_ref(pdev) : id);
- gs_sprintf(pres->rname, "R%ld", pres->object->id);
+ gs_snprintf(pres->rname, sizeof(pres->rname), "R%ld", pres->object->id);
}
/* Begin an aside (resource, annotation, ...). */
@@ -2006,7 +2006,7 @@ pdf_store_default_Producer(char buf[PDF_MAX_PRODUCER])
int minor = (int)(gs_revision - (major * 1000)) / 10;
int patch = gs_revision % 10;
- gs_sprintf(buf, "(%s %d.%02d.%d)", gs_product, major, minor, patch);
+ gs_snprintf(buf, PDF_MAX_PRODUCER, "(%s %d.%02d.%d)", gs_product, major, minor, patch);
}
/* Write matrix values. */
@@ -2053,7 +2053,7 @@ pdf_put_name_chars_1_2(stream *s, const byte *nstr, uint size)
case '[': case ']':
case '{': case '}':
case '/':
- gs_sprintf(hex, "#%02x", c);
+ gs_snprintf(hex, sizeof(hex), "#%02x", c);
stream_puts(s, hex);
break;
case 0:
diff --git a/devices/vector/gdevpdfv.c b/devices/vector/gdevpdfv.c
index 0159169c..8a44dcce 100644
--- a/devices/vector/gdevpdfv.c
+++ b/devices/vector/gdevpdfv.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 2001-2021 Artifex Software, Inc.
+/* Copyright (C) 2001-2022 Artifex Software, Inc.
All Rights Reserved.
This software is provided AS-IS with no warranty, either express or
@@ -157,7 +157,7 @@ pdf_pattern(gx_device_pdf *pdev, const gx_drawing_color *pdc,
if (pcd_XObject == 0)
return_error(gs_error_VMerror);
- gs_sprintf(key, "/R%ld", pcs_image->id);
+ gs_snprintf(key, sizeof(key), "/R%ld", pcs_image->id);
/* This is non-obvious code. Previously we would put the image object (pcs_image)
* into the Resources dit. When we come to write out the Resources dict
* that code writes a reference (index 0 R) using the ID from the object.
@@ -203,7 +203,7 @@ pdf_pattern(gx_device_pdf *pdev, const gx_drawing_color *pdc,
{
char buf[MAX_REF_CHARS + 6 + 1]; /* +6 for /R# Do\n */
- gs_sprintf(buf, "/R%ld Do\n", pcs_image->id);
+ gs_snprintf(buf, sizeof(buf), "/R%ld Do\n", pcs_image->id);
cos_stream_add_bytes(pdev, pcos, (const byte *)buf, strlen(buf));
}
@@ -231,6 +231,14 @@ pdf_store_pattern1_params(gx_device_pdf *pdev, pdf_resource_t *pres,
bbox[1] = t->BBox.p.y;
bbox[2] = t->BBox.q.x;
bbox[3] = t->BBox.q.y;
+ if (pdev->accumulating_charproc) {
+ /* Assume here we can only be installing a pattern while acumulating a
+ * charproc if the font is a coloured type 3 font. In this case we will
+ * have set the CTM to be the identity scaled by 100 (!). See gdevpdtt.c
+ * install_PS_charproc_accumulator() for details.
+ */
+ gs_make_identity(&smat2);
+ }
/* The graphics library assumes a shifted origin to provide
positive bitmap pixel indices. Compensate it now. */
smat2.tx += pinst->step_matrix.tx;
@@ -242,7 +250,7 @@ pdf_store_pattern1_params(gx_device_pdf *pdev, pdf_resource_t *pres,
* form is nested inside a form, the default space is the space of the
* first form, and therefore we do *not* remove the resolution scaling.
*/
- if (pdev->FormDepth == 0 || (pdev->FormDepth > 0 && pdev->PatternsSinceForm > 0)) {
+ if ((pdev->FormDepth == 0 || (pdev->FormDepth > 0 && pdev->PatternsSinceForm > 0)) && !pdev->accumulating_charproc) {
gs_matrix scaled;
gs_make_scaling(1 / scale_x, 1 / scale_y, &scaled);
@@ -614,7 +622,7 @@ pdf_put_linear_shading(gx_device_pdf *pdev, cos_dict_t *pscd, const float *Coord
if (Extend[0] | Extend[1]) {
char extend_str[1 + 5 + 1 + 5 + 1 + 1]; /* [bool bool] */
- gs_sprintf(extend_str, "[%s %s]",
+ gs_snprintf(extend_str, sizeof(extend_str), "[%s %s]",
(Extend[0] ? "true" : "false"),
(Extend[1] ? "true" : "false"));
code = cos_dict_put_c_key_string(pscd, "/Extend",
diff --git a/devices/vector/gdevpdfx.h b/devices/vector/gdevpdfx.h
index d5dfd756..774a5156 100644
--- a/devices/vector/gdevpdfx.h
+++ b/devices/vector/gdevpdfx.h
@@ -856,6 +856,7 @@ struct gx_device_pdf_s {
Used only with uncached charprocs. */
bool PS_accumulator; /* A flag to determine whether a given
accumulator is for a PostScript type 3 font or not. */
+ bool Scaled_accumulator; /* We scale teh CTM when accumulating type 3 fonts */
bool accumulating_a_global_object; /* ps2write only.
Accumulating a global object (such as a named Form,
so that resources used in it must also be global.
diff --git a/devices/vector/gdevpdtb.c b/devices/vector/gdevpdtb.c
index 42ef43e4..5c8fb8d8 100644
--- a/devices/vector/gdevpdtb.c
+++ b/devices/vector/gdevpdtb.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 2001-2021 Artifex Software, Inc.
+/* Copyright (C) 2001-2022 Artifex Software, Inc.
All Rights Reserved.
This software is provided AS-IS with no warranty, either express or
@@ -371,7 +371,7 @@ pdf_base_font_alloc(gx_device_pdf *pdev, pdf_base_font_t **ppbfont,
font_name.size -= SUBSET_PREFIX_SIZE;
}
} else {
- gs_sprintf(fnbuf, ".F" PRI_INTPTR, (intptr_t)copied);
+ gs_snprintf(fnbuf, sizeof(fnbuf), ".F" PRI_INTPTR, (intptr_t)copied);
font_name.data = (byte *)fnbuf;
font_name.size = strlen(fnbuf);
}
@@ -572,7 +572,7 @@ pdf_adjust_font_name(gx_device_pdf *pdev, long id, pdf_base_font_t *pbfont)
size = i + 1;
}
/* Create a unique name. */
- gs_sprintf(suffix, "%c%lx", SUFFIX_CHAR, id);
+ gs_snprintf(suffix, sizeof(suffix), "%c%lx", SUFFIX_CHAR, id);
suffix_size = strlen(suffix);
data = gs_resize_string(pdev->pdf_memory, chars, size,
size + suffix_size,
diff --git a/devices/vector/gdevpdtc.c b/devices/vector/gdevpdtc.c
index 81d66dd5..7ad7dec4 100644
--- a/devices/vector/gdevpdtc.c
+++ b/devices/vector/gdevpdtc.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 2001-2021 Artifex Software, Inc.
+/* Copyright (C) 2001-2022 Artifex Software, Inc.
All Rights Reserved.
This software is provided AS-IS with no warranty, either express or
@@ -341,31 +341,52 @@ attach_cmap_resource(gx_device_pdf *pdev, pdf_font_resource_t *pdfont,
}
}
if (pcmres || is_identity) {
- uint size = pcmap->CMapName.size;
- byte *chars = gs_alloc_string(pdev->pdf_memory, size,
- "pdf_font_resource_t(CMapName)");
-
- if (chars == 0)
- return_error(gs_error_VMerror);
- memcpy(chars, pcmap->CMapName.data, size);
+ if (pdfont->u.type0.CMapName_data == NULL || pcmap->CMapName.size != pdfont->u.type0.CMapName_size ||
+ memcmp(pdfont->u.type0.CMapName_data, pcmap->CMapName.data, pcmap->CMapName.size))
+ {
+ byte *chars = gs_alloc_bytes(pdev->pdf_memory->non_gc_memory, pcmap->CMapName.size,
+ "pdf_font_resource_t(CMapName)");
+
+ if (chars == 0)
+ return_error(gs_error_VMerror);
+ memcpy(chars, pcmap->CMapName.data, pcmap->CMapName.size);
+ if (pdfont->u.type0.CMapName_data != NULL)
+ gs_free_object(pdev->pdf_memory->non_gc_memory, pdfont->u.type0.CMapName_data, "rewriting CMapName");
+ pdfont->u.type0.CMapName_data = chars;
+ pdfont->u.type0.CMapName_size = pcmap->CMapName.size;
+ }
if (is_identity)
strcpy(pdfont->u.type0.Encoding_name,
(pcmap->WMode ? "/Identity-V" : "/Identity-H"));
else
- gs_sprintf(pdfont->u.type0.Encoding_name, "%ld 0 R",
- pdf_resource_id(pcmres));
- pdfont->u.type0.CMapName.data = chars;
- pdfont->u.type0.CMapName.size = size;
+ gs_snprintf(pdfont->u.type0.Encoding_name, sizeof(pdfont->u.type0.Encoding_name),
+ "%ld 0 R", pdf_resource_id(pcmres));
} else {
+ uint size = 0;
+
if (!*pcmn)
/* Should not be possible, if *pcmn is NULL then either
* is_identity is true or we create pcmres.
*/
return_error(gs_error_invalidfont);
- gs_sprintf(pdfont->u.type0.Encoding_name, "/%s", *pcmn);
- pdfont->u.type0.CMapName.data = (const byte *)*pcmn;
- pdfont->u.type0.CMapName.size = strlen(*pcmn);
+ size = strlen(*pcmn);
+ if (pdfont->u.type0.CMapName_data == NULL || size != pdfont->u.type0.CMapName_size ||
+ memcmp(pdfont->u.type0.CMapName_data, *pcmn, size) != 0)
+ {
+ byte *chars = gs_alloc_bytes(pdev->pdf_memory->non_gc_memory, size, "pdf_font_resource_t(CMapName)");
+ if (chars == 0)
+ return_error(gs_error_VMerror);
+
+ memcpy(chars, *pcmn, size);
+
+ if (pdfont->u.type0.CMapName_data != NULL)
+ gs_free_object(pdev->pdf_memory->non_gc_memory, pdfont->u.type0.CMapName_data, "rewriting CMapName");
+ pdfont->u.type0.CMapName_data = chars;
+ pdfont->u.type0.CMapName_size = size;
+ }
+
+ gs_snprintf(pdfont->u.type0.Encoding_name, sizeof(pdfont->u.type0.Encoding_name), "/%s", *pcmn);
pdfont->u.type0.cmap_is_standard = true;
}
pdfont->u.type0.WMode = pcmap->WMode;
diff --git a/devices/vector/gdevpdte.c b/devices/vector/gdevpdte.c
index 592205fd..5e50d2cf 100644
--- a/devices/vector/gdevpdte.c
+++ b/devices/vector/gdevpdte.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 2001-2021 Artifex Software, Inc.
+/* Copyright (C) 2001-2022 Artifex Software, Inc.
All Rights Reserved.
This software is provided AS-IS with no warranty, either express or
@@ -485,14 +485,14 @@ pdf_encode_string_element(gx_device_pdf *pdev, gs_font *font, pdf_font_resource_
: *gdata);
if (glyph == GS_NO_GLYPH || glyph == pet->glyph) {
if((pdfont->cmap_ToUnicode == NULL || !gs_cmap_ToUnicode_check_pair(pdfont->cmap_ToUnicode, ch)) && pdev->UseOCR != UseOCRNever)
- (void)pdf_add_ToUnicode(pdev, font, pdfont, glyph, ch, &gnstr);
+ (void)pdf_add_ToUnicode(pdev, font, pdfont, glyph, ch, NULL);
return 0;
}
if (pet->glyph != GS_NO_GLYPH) { /* encoding conflict */
return_error(gs_error_rangecheck);
/* Must not happen because pdf_obtain_font_resource
- * checks for encoding compatibility.
- */
+ * checks for encoding compatibility.
+ */
}
code = font->procs.glyph_name(font, glyph, &gnstr);
if (code < 0)
@@ -547,13 +547,13 @@ pdf_encode_string_element(gx_device_pdf *pdev, gs_font *font, pdf_font_resource_
/* PS font has no such glyph. */
if (bytes_compare(gnstr.data, gnstr.size, (const byte *)".notdef", 7)) {
pet->glyph = glyph;
- pet->str = gnstr;
+ pdf_copy_string_to_encoding(pdev, &gnstr, pet);
pet->is_difference = true;
}
} else if (pdfont->base_font == NULL && ccfont != NULL &&
(gs_copy_glyph_options(font, glyph, (gs_font *)ccfont, COPY_GLYPH_NO_NEW) != 1 ||
gs_copied_font_add_encoding((gs_font *)ccfont, ch, glyph) < 0)) {
- /*
+ /*
* The "complete" copy of the font appears incomplete
* due to incrementally added glyphs. Drop the "complete"
* copy now and continue with subset font only.
@@ -566,7 +566,7 @@ pdf_encode_string_element(gx_device_pdf *pdev, gs_font *font, pdf_font_resource_
* We also check whether the encoding is compatible.
* It must be compatible here due to the pdf_obtain_font_resource
* and ccfont logics, but we want to ensure for safety reason.
- */
+ */
ccfont = NULL;
pdf_font_descriptor_drop_complete_font(pdfont->FontDescriptor);
}
@@ -584,16 +584,15 @@ pdf_encode_string_element(gx_device_pdf *pdev, gs_font *font, pdf_font_resource_
pdfont->used[ch >> 3] |= 0x80 >> (ch & 7);
}
/*
- * We always generate ToUnicode for simple fonts, because
- * we can't detemine in advance, which glyphs the font actually uses.
- * The decision about writing it out is deferred until pdf_write_font_resource.
- */
+ * We always generate ToUnicode for simple fonts, because
+ * we can't detemine in advance, which glyphs the font actually uses.
+ * The decision about writing it out is deferred until pdf_write_font_resource.
+ */
code = pdf_add_ToUnicode(pdev, font, pdfont, glyph, ch, &gnstr);
if(code < 0)
return code;
pet->glyph = glyph;
- pet->str = gnstr;
- return 0;
+ return pdf_copy_string_to_encoding(pdev, &gnstr, pet);
}
/*
@@ -725,7 +724,10 @@ process_text_estimate_bbox(pdf_text_enum_t *pte, gs_font_base *font,
return code;
}
if (pte->text.operation & TEXT_REPLACE_WIDTHS) {
- gs_text_replaced_width(&pte->text, xy_index++, &tpt);
+ code = gs_text_replaced_width(&pte->text, xy_index++, &tpt);
+ if (code < 0)
+ return code;
+
gs_distance_transform(tpt.x, tpt.y, &ctm_only(pte->pgs), &wanted);
} else {
gs_distance_transform(info.width[WMode].x,
diff --git a/devices/vector/gdevpdtf.c b/devices/vector/gdevpdtf.c
index 0972e02d..0b714198 100644
--- a/devices/vector/gdevpdtf.c
+++ b/devices/vector/gdevpdtf.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 2001-2021 Artifex Software, Inc.
+/* Copyright (C) 2001-2022 Artifex Software, Inc.
All Rights Reserved.
This software is provided AS-IS with no warranty, either express or
@@ -39,8 +39,6 @@
/* GC descriptors */
public_st_pdf_font_resource();
-private_st_pdf_encoding1();
-private_st_pdf_encoding_element();
private_st_pdf_standard_font();
private_st_pdf_standard_font_element();
private_st_pdf_outline_fonts();
@@ -66,9 +64,6 @@ case 7: switch (pdfont->FontType) {
ENUM_RETURN(pdfont->u.simple.Encoding);
}
case 8: switch (pdfont->FontType) {
- case ft_composite:
- return (pdfont->u.type0.cmap_is_standard ? ENUM_OBJ(0) :
- ENUM_CONST_STRING(&pdfont->u.type0.CMapName));
case ft_encrypted:
case ft_encrypted2:
case ft_TrueType:
@@ -82,6 +77,7 @@ case 8: switch (pdfont->FontType) {
case ft_CID_encrypted:
case ft_CID_TrueType:
ENUM_RETURN(pdfont->u.cidfont.v);
+ case ft_composite:
default:
ENUM_RETURN(0);
}
@@ -141,8 +137,6 @@ RELOC_PTRS_WITH(pdf_font_resource_reloc_ptrs, pdf_font_resource_t *pdfont)
RELOC_VAR(pdfont->cmap_ToUnicode);
switch (pdfont->FontType) {
case ft_composite:
- if (!pdfont->u.type0.cmap_is_standard)
- RELOC_CONST_STRING_VAR(pdfont->u.type0.CMapName);
RELOC_VAR(pdfont->u.type0.DescendantFont);
break;
case ft_PCL_user_defined:
@@ -456,6 +450,11 @@ int font_resource_free(gx_device_pdf *pdev, pdf_font_resource_t *pdfont)
}
switch(pdfont->FontType) {
case ft_composite:
+ if (pdfont->u.type0.CMapName_data != NULL) {
+ gs_free_object(pdev->memory->non_gc_memory, (byte *)pdfont->u.type0.CMapName_data, "font_resource_free(CMapName)");
+ pdfont->u.type0.CMapName_data = NULL;
+ pdfont->u.type0.CMapName_size = 0;
+ }
break;
case ft_PCL_user_defined:
case ft_MicroType:
@@ -464,6 +463,9 @@ int font_resource_free(gx_device_pdf *pdev, pdf_font_resource_t *pdfont)
case ft_PDF_user_defined:
case ft_GL2_531:
if(pdfont->u.simple.Encoding) {
+ int ix;
+ for (ix = 0; ix <= 255;ix++)
+ gs_free_object(pdev->pdf_memory->non_gc_memory, pdfont->u.simple.Encoding[ix].data, "Free copied glyph name string");
gs_free_object(pdev->pdf_memory, pdfont->u.simple.Encoding, "Free simple Encoding");
pdfont->u.simple.Encoding = 0;
}
@@ -486,6 +488,14 @@ int font_resource_free(gx_device_pdf *pdev, pdf_font_resource_t *pdfont)
break;
case ft_CID_encrypted:
case ft_CID_TrueType:
+ if(pdfont->u.cidfont.Widths2) {
+ gs_free_object(pdev->pdf_memory, pdfont->u.cidfont.Widths2, "Free CIDFont Widths2 array");
+ pdfont->u.cidfont.Widths2 = NULL;
+ }
+ if(pdfont->u.cidfont.v) {
+ gs_free_object(pdev->pdf_memory, pdfont->u.cidfont.v, "Free CIDFont v array");
+ pdfont->u.cidfont.v = NULL;
+ }
if(pdfont->u.cidfont.used2) {
gs_free_object(pdev->pdf_memory, pdfont->u.cidfont.used2, "Free CIDFont used2");
pdfont->u.cidfont.used2 = 0;
@@ -497,6 +507,9 @@ int font_resource_free(gx_device_pdf *pdev, pdf_font_resource_t *pdfont)
break;
default:
if(pdfont->u.simple.Encoding) {
+ int ix;
+ for (ix = 0; ix <= 255;ix++)
+ gs_free_object(pdev->pdf_memory->non_gc_memory, pdfont->u.simple.Encoding[ix].data, "Free copied glyph name string");
gs_free_object(pdev->pdf_memory, pdfont->u.simple.Encoding, "Free simple Encoding");
pdfont->u.simple.Encoding = 0;
}
@@ -593,10 +606,7 @@ font_resource_encoded_alloc(gx_device_pdf *pdev, pdf_font_resource_t **ppfres,
gs_id rid, font_type ftype,
pdf_font_write_contents_proc_t write_contents)
{
- pdf_encoding_element_t *Encoding =
- gs_alloc_struct_array(pdev->pdf_memory, 256, pdf_encoding_element_t,
- &st_pdf_encoding_element,
- "font_resource_encoded_alloc");
+ pdf_encoding_element_t *Encoding = (pdf_encoding_element_t *)gs_alloc_bytes(pdev->pdf_memory, 256 * sizeof(pdf_encoding_element_t), "font_resource_encoded_alloc");
gs_point *v = (gs_point *)gs_alloc_byte_array(pdev->pdf_memory,
256, sizeof(gs_point), "pdf_font_simple_alloc");
pdf_font_resource_t *pdfont;
@@ -953,6 +963,7 @@ pdf_compute_BaseFont(gx_device_pdf *pdev, pdf_font_resource_t *pdfont, bool fini
pdf_font_descriptor_embedding(pdfont->FontDescriptor)
) {
int code;
+ gs_font_base *pbfont = pdf_font_resource_font(pdfont, false);
if (pdfont->FontDescriptor)
code = pdf_add_subset_prefix(pdev, &fname, pdfont->used, pdfont->count, pdf_fontfile_hash(pdfont->FontDescriptor));
@@ -962,8 +973,12 @@ pdf_compute_BaseFont(gx_device_pdf *pdev, pdf_font_resource_t *pdfont, bool fini
if (code < 0)
return code;
pdfont->BaseFont = fname;
+
/* Don't write a UID for subset fonts. */
- uid_set_invalid(&pdf_font_resource_font(pdfont, false)->UID);
+ if (uid_is_XUID(&pbfont->UID)) {
+ uid_free(&pbfont->UID, pbfont->memory, "gs_font_finalize");
+ }
+ uid_set_invalid(&pbfont->UID);
}
if (pdfont->FontType != ft_composite && pdsubf->FontDescriptor)
*pdf_font_descriptor_name(pdsubf->FontDescriptor) = fname;
@@ -982,8 +997,17 @@ pdf_font_type0_alloc(gx_device_pdf *pdev, pdf_font_resource_t **ppfres,
ft_composite, 0, pdf_write_contents_type0);
if (code >= 0) {
+ byte *chars = NULL;
+
(*ppfres)->u.type0.DescendantFont = DescendantFont;
- (*ppfres)->u.type0.CMapName = *CMapName;
+
+ chars = gs_alloc_bytes(pdev->pdf_memory->non_gc_memory, CMapName->size, "pdf_font_resource_t(CMapName)");
+ if (chars == 0)
+ return_error(gs_error_VMerror);
+ memcpy(chars, CMapName->data, CMapName->size);
+ (*ppfres)->u.type0.CMapName_data = chars;
+ (*ppfres)->u.type0.CMapName_size = CMapName->size;
+
(*ppfres)->u.type0.font_index = 0;
code = pdf_compute_BaseFont(pdev, *ppfres, false);
}
@@ -1206,7 +1230,8 @@ pdf_convert_truetype_font(gx_device_pdf *pdev, pdf_resource_t *pres)
if (code < 0)
return 0;
pdfont->u.cidfont.CIDSystemInfo_id = pdev->IdentityCIDSystemInfo_id;
- gs_sprintf(pdfont0->u.type0.Encoding_name, "%ld 0 R", pdf_resource_id(pdev->OneByteIdentityH));
+ gs_snprintf(pdfont0->u.type0.Encoding_name, sizeof(pdfont0->u.type0.Encoding_name),
+ "%ld 0 R", pdf_resource_id(pdev->OneByteIdentityH));
/* Move ToUnicode : */
pdfont0->res_ToUnicode = pdfont->res_ToUnicode; pdfont->res_ToUnicode = 0;
pdfont0->cmap_ToUnicode = pdfont->cmap_ToUnicode; pdfont->cmap_ToUnicode = 0;
diff --git a/devices/vector/gdevpdtf.h b/devices/vector/gdevpdtf.h
index f13c0eac..5a1a57dd 100644
--- a/devices/vector/gdevpdtf.h
+++ b/devices/vector/gdevpdtf.h
@@ -117,13 +117,30 @@ typedef int (*pdf_font_write_contents_proc_t)
*/
typedef struct pdf_encoding_element_s {
gs_glyph glyph;
- gs_const_string str;
+ byte *data;
+ uint size;
bool is_difference; /* true if must be written in Differences */
} pdf_encoding_element_t;
+
+static inline int pdf_copy_string_to_encoding(gx_device_pdf *pdev, gs_const_string *gnstr, pdf_encoding_element_t *pet)
+{
+ byte *p = NULL;
+
+ p = gs_alloc_bytes(pdev->pdf_memory->non_gc_memory, gnstr->size, "pdf_copy_string_to_encoding");
+ if (p == NULL)
+ return_error(gs_error_VMerror);
+ memcpy(p, gnstr->data, gnstr->size);
+ if (pet->data != NULL)
+ gs_free_object(pdev->pdf_memory->non_gc_memory, pet->data, "pdf_copy_string_to_encoding free existing glyph name");
+ pet->data = p;
+ pet->size = gnstr->size;
+ return 0;
+}
+
#define private_st_pdf_encoding1() /* gdevpdtf.c */\
gs_private_st_const_strings1(st_pdf_encoding1,\
pdf_encoding_element_t, "pdf_encoding_element_t",\
- pdf_encoding1_enum_ptrs, pdf_encoding1_reloc_ptrs, str)
+ pdf_encoding1_enum_ptrs, pdf_encoding1_reloc_ptrs, bah)
#define private_st_pdf_encoding_element() /* gdevpdtf.c */\
gs_private_st_element(st_pdf_encoding_element, pdf_encoding_element_t,\
"pdf_encoding_element_t[]", pdf_encoding_elt_enum_ptrs,\
@@ -227,8 +244,8 @@ struct pdf_font_resource_s {
sizeof(long) * 8 / 3 + 1 + 4 /* <id> 0 R */
) + 1 /* \0 terminator */
];
- gs_const_string CMapName; /* copied from the original CMap, */
- /* or references the table of standard names */
+ byte *CMapName_data;
+ uint CMapName_size;
uint font_index; /* The index of the descendent font in the source CMap. */
bool cmap_is_standard;
int WMode; /* of CMap */
diff --git a/devices/vector/gdevpdti.c b/devices/vector/gdevpdti.c
index d1b39e99..45a56082 100644
--- a/devices/vector/gdevpdti.c
+++ b/devices/vector/gdevpdti.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 2001-2021 Artifex Software, Inc.
+/* Copyright (C) 2001-2022 Artifex Software, Inc.
All Rights Reserved.
This software is provided AS-IS with no warranty, either express or
@@ -292,10 +292,11 @@ pdf_attach_charproc(gx_device_pdf * pdev, pdf_font_resource_t *pdfont, pdf_char_
pcpo->char_name.data = 0;
pcpo->char_name.size = 0;
} else {
- pcpo->char_name.data = gs_alloc_bytes(pdev->pdf_memory->non_gc_memory, gnstr->size, "storage for charproc name");
- memcpy(pcpo->char_name.data, gnstr->data, gnstr->size);
+ if (gnstr->size > 0) {
+ pcpo->char_name.data = gs_alloc_bytes(pdev->pdf_memory->non_gc_memory, gnstr->size, "storage for charproc name");
+ memcpy(pcpo->char_name.data, gnstr->data, gnstr->size);
+ }
pcpo->char_name.size = gnstr->size;
-// pcpo->char_name = *gnstr;
}
pcpo->duplicate_char_name = duplicate_char_name;
return 0;
@@ -335,7 +336,7 @@ pdf_begin_char_proc(gx_device_pdf * pdev, int w, int h, int x_width,
int code;
/* This code added to store PCL bitmap glyphs in type 3 fonts where possible */
gs_glyph glyph = GS_NO_GLYPH;
- gs_const_string *str = NULL;
+ gs_const_string str2, *str = NULL;
gs_show_enum *show_enum = (gs_show_enum *)pdev->pte;
pdf_encoding_element_t *pet = 0;
/* Since this is for text searching, its only useful if the character code
@@ -406,15 +407,17 @@ pdf_begin_char_proc(gx_device_pdf * pdev, int w, int h, int x_width,
* then we need to give up, something about the font or text is not acceptable
* (see various comments above).
*/
- if (pet && pet->glyph != GS_NO_GLYPH && !(pet->str.size == 7 &&
- !strncmp((const char *)pet->str.data, ".notdef", 7))) {
+ if (pet && pet->glyph != GS_NO_GLYPH && !(pet->size == 7 &&
+ !strncmp((const char *)pet->data, ".notdef", 7))) {
if (char_code < font->u.simple.FirstChar)
font->u.simple.FirstChar = char_code;
if ((int)char_code > font->u.simple.LastChar)
font->u.simple.LastChar = char_code;
base->FontBBox.q.x = max(base->FontBBox.q.x, w);
base->FontBBox.q.y = max(base->FontBBox.q.y, y_offset + h);
- str = &pet->str;
+ str2.data = pet->data;
+ str2.size = pet->size;
+ str = &str2;
glyph = pet->glyph;
/* This is to work around a weird Acrobat bug. If the Encoding of a type 3
* (possibly other types) is simply a standard encoding (eg WinAnsiEncoding)
@@ -1065,13 +1068,12 @@ complete_adding_char(gx_device_pdf *pdev, gs_font *font,
pdfont->u.simple.v[ch].y = pcp->v.x;
}
pet->glyph = glyph;
- pet->str = *gnstr;
pet->is_difference = true;
if (pdfont->u.simple.LastChar < (int)ch)
pdfont->u.simple.LastChar = (int)ch;
if (pdfont->u.simple.FirstChar > (int)ch)
pdfont->u.simple.FirstChar = (int)ch;
- return 0;
+ return pdf_copy_string_to_encoding(pdev, (gs_const_string *)gnstr, pet);
}
static int
@@ -1212,7 +1214,7 @@ pdf_add_resource(gx_device_pdf *pdev, cos_dict_t *pcd, const char *key, pdf_reso
if (code < 0)
return code;
}
- gs_sprintf(buf, "%ld 0 R\n", pres->object->id);
+ gs_snprintf(buf, sizeof(buf), "%ld 0 R\n", pres->object->id);
if (v != NULL) {
if (v->value_type != COS_VALUE_OBJECT &&
v->value_type != COS_VALUE_RESOURCE)
diff --git a/devices/vector/gdevpdtt.c b/devices/vector/gdevpdtt.c
index 3091a18d..98ce8892 100644
--- a/devices/vector/gdevpdtt.c
+++ b/devices/vector/gdevpdtt.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 2001-2021 Artifex Software, Inc.
+/* Copyright (C) 2001-2022 Artifex Software, Inc.
All Rights Reserved.
This software is provided AS-IS with no warranty, either express or
@@ -114,7 +114,7 @@ pdf_text_set_cache(gs_text_enum_t *pte, const double *pw,
* NOT the identity, but we want the cache device values to be in
* font co-ordinate space, so we need to undo that scale here.
*/
- if (pdev->PS_accumulator){
+ if (pdev->PS_accumulator || pdev->Scaled_accumulator){
gs_matrix_scale(&ctm_only(pte->pgs), .01, .01, &m);
gs_distance_transform(pw[0], pw[1], &m, &pdev->char_width);
} else {
@@ -133,7 +133,7 @@ pdf_text_set_cache(gs_text_enum_t *pte, const double *pw,
* NOT the identity, but we want the cache device values to be in
* font co-ordinate space, so we need to undo that scale here.
*/
- if (pdev->PS_accumulator){
+ if (pdev->PS_accumulator || pdev->Scaled_accumulator){
gs_matrix_scale(&ctm_only(pte->pgs), .01, .01, &m);
gs_distance_transform(pw[0], pw[1], &m, &pdev->char_width);
} else {
@@ -214,7 +214,7 @@ pdf_text_set_cache(gs_text_enum_t *pte, const double *pw,
* needs to be in the 100x100 space so that it doesn't clip
* out marking operations.
*/
- if (pdev->PS_accumulator)
+ if (pdev->PS_accumulator || pdev->Scaled_accumulator)
gs_matrix_scale(&ctm_only(penum_s->pgs), .01, .01, &m);
else
m = ctm_only(penum_s->pgs);
@@ -225,7 +225,7 @@ pdf_text_set_cache(gs_text_enum_t *pte, const double *pw,
pw1[i] = p.x;
pw1[i + 1] = p.y;
}
- if (!pdev->PS_accumulator)
+ if (!pdev->PS_accumulator && !pdev->Scaled_accumulator)
code = pdf_set_charproc_attrs(pdev, pte->current_font,
pw1, narg, control, penum->returned.current_char, false);
else
@@ -1114,11 +1114,10 @@ pdf_is_compatible_encoding(gx_device_pdf *pdev, pdf_font_resource_t *pdfont,
if (pfont->data.FMapType == fmap_CMap) {
const gs_cmap_t *pcmap = pfont->data.CMap;
- const gs_const_string *s0 = &pdfont->u.type0.CMapName;
const gs_const_string *s1 = &pcmap->CMapName;
- return (s0->size == s1->size &&
- !memcmp(s0->data, s1->data, s0->size));
+ return (pdfont->u.type0.CMapName_size == s1->size &&
+ !memcmp(pdfont->u.type0.CMapName_data, s1->data, pdfont->u.type0.CMapName_size));
}
}
return false;
@@ -1283,9 +1282,9 @@ pdf_find_type0_font_resource(gx_device_pdf *pdev, const pdf_font_resource_t *pds
*/
if (pdfont->BaseFont.size != pdsubf->BaseFont.size)
continue;
- if (pdfont->u.type0.CMapName.size != CMapName->size)
+ if (pdfont->u.type0.CMapName_size != CMapName->size)
continue;
- if (memcmp(pdfont->u.type0.CMapName.data, CMapName->data, CMapName->size))
+ if (memcmp(pdfont->u.type0.CMapName_data, CMapName->data, CMapName->size))
continue;
}
@@ -2290,9 +2289,16 @@ int
pdf_obtain_parent_type0_font_resource(gx_device_pdf *pdev, pdf_font_resource_t *pdsubf,
uint font_index, const gs_const_string *CMapName, pdf_font_resource_t **pdfont)
{
+ gs_const_string s1;
+
+ if (pdsubf->u.cidfont.parent != 0) {
+ s1.data = pdsubf->u.cidfont.parent->u.type0.CMapName_data;
+ s1.size = pdsubf->u.cidfont.parent->u.type0.CMapName_size;
+ }
+
if (pdsubf->u.cidfont.parent != 0 &&
font_index == pdsubf->u.cidfont.parent->u.type0.font_index &&
- strings_equal(CMapName, &pdsubf->u.cidfont.parent->u.type0.CMapName))
+ strings_equal(CMapName, &s1))
*pdfont = pdsubf->u.cidfont.parent;
else {
/*
@@ -2868,7 +2874,7 @@ pdf_choose_output_char_code(gx_device_pdf *pdev, pdf_text_enum_t *penum, gs_char
}
static int
-pdf_choose_output_glyph_name(gx_device_pdf *pdev, pdf_text_enum_t *penum, gs_const_string *gnstr, gs_glyph glyph)
+pdf_choose_output_glyph_name(gx_device_pdf *pdev, pdf_text_enum_t *penum, gs_const_string *gnstr, gs_glyph glyph, bool *cleanup)
{
if (penum->orig_font->FontType == ft_composite || penum->orig_font->procs.glyph_name(penum->orig_font, glyph, gnstr) < 0
|| (penum->orig_font->FontType > 42 && gnstr->size == 7 && strcmp((const char *)gnstr->data, ".notdef")== 0)) {
@@ -2887,9 +2893,10 @@ pdf_choose_output_glyph_name(gx_device_pdf *pdev, pdf_text_enum_t *penum, gs_con
p = (byte *)gs_alloc_string(pdev->pdf_memory, gnstr->size, "pdf_text_set_cache");
if (p == NULL)
return_error(gs_error_VMerror);
- gs_sprintf(buf, "g%04x", (unsigned int)(glyph & 0xFFFF));
+ gs_snprintf(buf, sizeof(buf), "g%04x", (unsigned int)(glyph & 0xFFFF));
memcpy(p, buf, 5);
gnstr->data = p;
+ *cleanup = true;
}
return 0;
}
@@ -3041,6 +3048,12 @@ static int install_charproc_accumulator(gx_device_pdf *pdev, gs_text_enum_t *pte
executed gsave, so we are safe to change CTM now.
Note that BuildChar may change CTM before calling setcachedevice. */
gs_make_identity(&m);
+ if (penum->current_font->FontType == ft_PDF_user_defined) {
+ pdev->width *= 100;
+ pdev->height *= 100;
+ gs_matrix_scale(&m, 100, 100, &m);
+ pdev->Scaled_accumulator = 1;
+ }
gs_matrix_fixed_from_matrix(&penum->pgs->ctm, &m);
/* Choose a character code to use with the charproc. */
@@ -3074,10 +3087,11 @@ static int complete_charproc(gx_device_pdf *pdev, gs_text_enum_t *pte,
{
gs_const_string gnstr;
int code;
+ bool cleanup = false;
if (pte_default->returned.current_glyph == GS_NO_GLYPH)
return_error(gs_error_undefined);
- code = pdf_choose_output_glyph_name(pdev, penum, &gnstr, pte_default->returned.current_glyph);
+ code = pdf_choose_output_glyph_name(pdev, penum, &gnstr, pte_default->returned.current_glyph, &cleanup);
if (code < 0) {
return code;
}
@@ -3109,26 +3123,30 @@ static int complete_charproc(gx_device_pdf *pdev, gs_text_enum_t *pte,
stream_puts(pdev->strm, "0 0 0 0 0 0 d1\n");
}
- if (was_PS_type3) {
+ if (was_PS_type3 || pdev->Scaled_accumulator) {
/* See below, we scaled the device height and width to prevent
* clipping of the CharProc operations, now we need to undo that.
*/
pdev->width /= 100;
pdev->height /= 100;
+ pdev->Scaled_accumulator = 0;
}
code = pdf_end_charproc_accum(pdev, penum->current_font, penum->cgp,
pte_default->returned.current_glyph, penum->output_char_code, &gnstr);
if (code < 0)
- return code;
+ goto exit;
pdev->accumulating_charproc = false;
penum->charproc_accum = false;
code = gx_default_text_restore_state(pte_default);
if (code < 0)
- return code;
+ goto exit;
gs_text_release(NULL, pte_default, "pdf_text_process");
penum->pte_default = 0;
- return 0;
+exit:
+ if (cleanup)
+ gs_free_string(pdev->pdf_memory, (byte *)gnstr.data, gnstr.size, "pdf_text_set_cache free working name");
+ return code;
}
/* Nasty hackery. The PCL 'stick font' is drawn by constructing a path, and then stroking it.
@@ -3449,7 +3467,8 @@ pdf_text_process(gs_text_enum_t *pte)
/* We need a special 'initial matrix' method for stick fonts,
* See pdf_type3_get_initial_matrix above.
*/
- pdev->procs.get_initial_matrix = pdf_type3_get_initial_matrix;
+ if (penum->current_font->FontType != ft_PDF_user_defined)
+ pdev->procs.get_initial_matrix = pdf_type3_get_initial_matrix;
pdev->pte = (gs_text_enum_t *)penum; /* CAUTION: See comment in gdevpdfx.h . */
/* In case of error, text_process will restore back to the enumerator 'level'
@@ -3524,7 +3543,7 @@ pdf_text_process(gs_text_enum_t *pte)
/* end of code copied from show_cache_setup */
/* This copied from set_cache */
- code = gx_alloc_char_bits(pte->current_font->dir, dev, NULL,
+ code = gx_alloc_char_bits(pte->current_font->dir, dev,
0, 0, &log2_scale, 1, &cc);
if (code < 0)
return code;
diff --git a/devices/vector/gdevpdtv.c b/devices/vector/gdevpdtv.c
index 47b9d798..a9df5e82 100644
--- a/devices/vector/gdevpdtv.c
+++ b/devices/vector/gdevpdtv.c
@@ -12,7 +12,6 @@
Artifex Software, Inc., 1305 Grant Avenue - Suite 200, Novato,
CA 94945, U.S.A., +1(415)492-9861, for further information.
*/
-
/*
* This file contains substantial parts of toolbin/encs2c.ps,
* which generated the remainder of the file mechanically from
@@ -23,6 +22,9 @@
* This source file is maintained manually under source code control,
* however its content should be regenerated by using encs2c.ps
* if changes are required.
+ * You should not manually alter this file! If you regenerate it using
+ * encs2c.ps you must regenerate all 4 files; base/gscedata.[c|h]
+ * and devices/vector/gdevpdtv.[c|h]
*/
#include "gdevpdtv.h"
@@ -65,7 +67,7 @@ const unsigned char gs_c_pdf_glyph_type[] = {
0,
0,
28,
-3,
+0,
0,
0,
0,
@@ -89,7 +91,7 @@ const unsigned char gs_c_pdf_glyph_type[] = {
0,
0,
12,
-192,
+0,
0,
0,
0,
@@ -97,7 +99,7 @@ const unsigned char gs_c_pdf_glyph_type[] = {
0,
0,
60,
-1,
+0,
3,
0,
0,
@@ -129,7 +131,7 @@ const unsigned char gs_c_pdf_glyph_type[] = {
0,
0,
92,
-49,
+51,
0,
0,
0,
@@ -153,7 +155,7 @@ const unsigned char gs_c_pdf_glyph_type[] = {
0,
0,
76,
-4,
+0,
0,
192,
0,
@@ -161,7 +163,7 @@ const unsigned char gs_c_pdf_glyph_type[] = {
0,
0,
12,
-0,
+1,
1,
0,
3,
@@ -193,7 +195,7 @@ const unsigned char gs_c_pdf_glyph_type[] = {
0,
0,
12,
-4,
+5,
48,
0,
0,
@@ -313,7 +315,7 @@ const unsigned char gs_c_pdf_glyph_type[] = {
0,
0,
12,
-4,
+192,
0,
0,
0,
@@ -354,7 +356,7 @@ const unsigned char gs_c_pdf_glyph_type[] = {
0,
60,
4,
-1,
+0,
0,
0,
0,
@@ -369,7 +371,7 @@ const unsigned char gs_c_pdf_glyph_type[] = {
0,
0,
60,
-64,
+0,
0,
48,
0,
@@ -393,7 +395,7 @@ const unsigned char gs_c_pdf_glyph_type[] = {
0,
0,
12,
-12,
+0,
12,
0,
0,
@@ -418,7 +420,7 @@ const unsigned char gs_c_pdf_glyph_type[] = {
0,
28,
48,
-3,
+1,
0,
3,
0,
@@ -433,7 +435,7 @@ const unsigned char gs_c_pdf_glyph_type[] = {
0,
0,
28,
-0,
+4,
48,
0,
0,
@@ -473,7 +475,7 @@ const unsigned char gs_c_pdf_glyph_type[] = {
0,
0,
0,
-12,
+4,
192,
0,
0,
@@ -513,7 +515,8 @@ const unsigned char gs_c_pdf_glyph_type[] = {
0,
0,
0,
-4,
+12,
+0,
0,
0,
0,
@@ -537,7 +540,6 @@ const unsigned char gs_c_pdf_glyph_type[] = {
0,
0,
0,
-192,
12,
0,
0,
@@ -553,7 +555,7 @@ const unsigned char gs_c_pdf_glyph_type[] = {
0,
0,
0,
-4,
+0,
0,
4,
0,
@@ -593,7 +595,7 @@ const unsigned char gs_c_pdf_glyph_type[] = {
0,
0,
0,
-4,
+76,
48,
48,
0,
@@ -633,7 +635,8 @@ const unsigned char gs_c_pdf_glyph_type[] = {
0,
0,
0,
-12,
+4,
+0,
0,
0,
0,
@@ -649,7 +652,6 @@ const unsigned char gs_c_pdf_glyph_type[] = {
0,
0,
0,
-64,
192,
0,
0,
@@ -673,7 +675,7 @@ const unsigned char gs_c_pdf_glyph_type[] = {
0,
0,
0,
-12,
+4,
51,
0,
0,
@@ -713,7 +715,7 @@ const unsigned char gs_c_pdf_glyph_type[] = {
0,
0,
0,
-12,
+4,
0,
0,
0,
@@ -761,7 +763,7 @@ const unsigned char gs_c_pdf_glyph_type[] = {
0,
0,
0,
-0,
+192,
0,
4,
0,
@@ -802,7 +804,7 @@ const unsigned char gs_c_pdf_glyph_type[] = {
0,
0,
48,
-1,
+3,
1,
0,
0,
@@ -817,7 +819,7 @@ const unsigned char gs_c_pdf_glyph_type[] = {
0,
0,
0,
-64,
+0,
0,
48,
0,
@@ -833,7 +835,7 @@ const unsigned char gs_c_pdf_glyph_type[] = {
0,
0,
0,
-4,
+12,
16,
0,
0,
@@ -866,14 +868,14 @@ const unsigned char gs_c_pdf_glyph_type[] = {
0,
0,
0,
-3,
+1,
4,
0,
0,
0,
0,
0,
-12,
+76,
0,
0,
0,
@@ -930,7 +932,7 @@ const unsigned char gs_c_pdf_glyph_type[] = {
0,
0,
0,
-1,
+3,
16,
0,
0,
@@ -953,7 +955,7 @@ const unsigned char gs_c_pdf_glyph_type[] = {
0,
0,
0,
-0,
+4,
0,
0,
0,
@@ -985,7 +987,6 @@ const unsigned char gs_c_pdf_glyph_type[] = {
0,
0,
0,
-64,
0,
0,
0,
@@ -993,7 +994,8 @@ const unsigned char gs_c_pdf_glyph_type[] = {
0,
0,
0,
-52,
+0,
+60,
17,
1,
0,
@@ -1041,7 +1043,7 @@ const unsigned char gs_c_pdf_glyph_type[] = {
0,
0,
0,
-112,
+48,
12,
16,
0,
@@ -1073,7 +1075,7 @@ const unsigned char gs_c_pdf_glyph_type[] = {
0,
0,
0,
-4,
+0,
48,
12,
0,
@@ -1097,7 +1099,7 @@ const unsigned char gs_c_pdf_glyph_type[] = {
0,
0,
0,
-192,
+64,
0,
0,
0,
@@ -1122,7 +1124,7 @@ const unsigned char gs_c_pdf_glyph_type[] = {
0,
0,
0,
-3,
+1,
0,
0,
0,
@@ -1153,7 +1155,7 @@ const unsigned char gs_c_pdf_glyph_type[] = {
0,
0,
0,
-68,
+12,
48,
16,
0,
@@ -1186,7 +1188,7 @@ const unsigned char gs_c_pdf_glyph_type[] = {
0,
0,
48,
-13,
+15,
1,
0,
0,
@@ -1233,7 +1235,7 @@ const unsigned char gs_c_pdf_glyph_type[] = {
0,
0,
0,
-12,
+4,
16,
0,
0,
@@ -1250,7 +1252,7 @@ const unsigned char gs_c_pdf_glyph_type[] = {
0,
0,
0,
-3,
+1,
0,
0,
0,
@@ -1313,7 +1315,7 @@ const unsigned char gs_c_pdf_glyph_type[] = {
0,
0,
0,
-12,
+4,
51,
0,
0,
@@ -1377,7 +1379,7 @@ const unsigned char gs_c_pdf_glyph_type[] = {
0,
0,
0,
-48,
+240,
3,
17,
0,
@@ -1433,7 +1435,7 @@ const unsigned char gs_c_pdf_glyph_type[] = {
0,
0,
0,
-4,
+76,
0,
0,
0,
@@ -1442,7 +1444,7 @@ const unsigned char gs_c_pdf_glyph_type[] = {
0,
0,
0,
-192,
+195,
0,
0,
0,
@@ -1473,7 +1475,7 @@ const unsigned char gs_c_pdf_glyph_type[] = {
0,
0,
0,
-60,
+12,
60,
1,
0,
@@ -1489,7 +1491,7 @@ const unsigned char gs_c_pdf_glyph_type[] = {
0,
0,
0,
-64,
+0,
0,
28,
0,
@@ -1506,15 +1508,14 @@ const unsigned char gs_c_pdf_glyph_type[] = {
0,
0,
0,
-3,
0,
0,
0,
0,
0,
0,
-12,
0,
+4,
0,
0,
0,
@@ -1522,6 +1523,7 @@ const unsigned char gs_c_pdf_glyph_type[] = {
0,
0,
0,
+48,
0,
0,
0,
@@ -1545,7 +1547,7 @@ const unsigned char gs_c_pdf_glyph_type[] = {
0,
0,
0,
-192,
+64,
12,
0,
0,
@@ -1553,7 +1555,7 @@ const unsigned char gs_c_pdf_glyph_type[] = {
0,
0,
0,
-12,
+4,
48,
0,
0,
@@ -1570,7 +1572,7 @@ const unsigned char gs_c_pdf_glyph_type[] = {
0,
0,
0,
-1,
+3,
3,
0,
0,
@@ -1593,15 +1595,15 @@ const unsigned char gs_c_pdf_glyph_type[] = {
0,
0,
0,
-4,
-0,
12,
0,
+12,
0,
0,
0,
0,
0,
+64,
0,
48,
0,
@@ -1617,9 +1619,8 @@ const unsigned char gs_c_pdf_glyph_type[] = {
0,
0,
0,
-48,
-204,
0,
+204,
0,
0,
0,
@@ -1634,7 +1635,8 @@ const unsigned char gs_c_pdf_glyph_type[] = {
0,
0,
0,
-48,
+12,
+49,
0,
0,
0,
@@ -1673,7 +1675,7 @@ const unsigned char gs_c_pdf_glyph_type[] = {
0,
0,
0,
-0,
+12,
0,
0,
0,
@@ -1713,7 +1715,7 @@ const unsigned char gs_c_pdf_glyph_type[] = {
0,
0,
0,
-112,
+52,
16,
48,
0,
@@ -1769,7 +1771,7 @@ const unsigned char gs_c_pdf_glyph_type[] = {
0,
0,
0,
-0,
+64,
0,
0,
0,
@@ -1825,7 +1827,7 @@ const unsigned char gs_c_pdf_glyph_type[] = {
0,
0,
0,
-0,
+192,
0,
48,
0,
@@ -1881,7 +1883,7 @@ const unsigned char gs_c_pdf_glyph_type[] = {
0,
0,
0,
-64,
+0,
192,
0,
0,
@@ -1937,7 +1939,7 @@ const unsigned char gs_c_pdf_glyph_type[] = {
0,
0,
0,
-192,
+0,
0,
48,
0,
@@ -1993,7 +1995,7 @@ const unsigned char gs_c_pdf_glyph_type[] = {
0,
0,
0,
-192,
+64,
0,
0,
0,
@@ -2049,7 +2051,7 @@ const unsigned char gs_c_pdf_glyph_type[] = {
0,
0,
0,
-64,
+48,
12,
51,
0,
@@ -2105,7 +2107,7 @@ const unsigned char gs_c_pdf_glyph_type[] = {
0,
0,
0,
-64,
+0,
0,
0,
0,
@@ -2145,7 +2147,7 @@ const unsigned char gs_c_pdf_glyph_type[] = {
0,
0,
192,
-48,
+0,
192,
3,
0,
@@ -2161,7 +2163,7 @@ const unsigned char gs_c_pdf_glyph_type[] = {
0,
0,
0,
-192,
+64,
0,
48,
0,
@@ -2193,7 +2195,7 @@ const unsigned char gs_c_pdf_glyph_type[] = {
0,
0,
192,
-0,
+48,
52,
0,
0,
@@ -2217,7 +2219,7 @@ const unsigned char gs_c_pdf_glyph_type[] = {
0,
0,
0,
-64,
+192,
0,
12,
0,
@@ -2241,7 +2243,7 @@ const unsigned char gs_c_pdf_glyph_type[] = {
0,
0,
192,
-48,
+0,
0,
3,
0,
@@ -2273,7 +2275,7 @@ const unsigned char gs_c_pdf_glyph_type[] = {
0,
0,
0,
-0,
+192,
48,
48,
0,
@@ -2329,7 +2331,7 @@ const unsigned char gs_c_pdf_glyph_type[] = {
0,
0,
0,
-0,
+64,
0,
0,
0,
@@ -2337,7 +2339,7 @@ const unsigned char gs_c_pdf_glyph_type[] = {
0,
0,
192,
-0,
+48,
12,
3,
0,
@@ -2385,7 +2387,7 @@ const unsigned char gs_c_pdf_glyph_type[] = {
0,
0,
192,
-112,
+64,
0,
48,
0,
@@ -2441,7 +2443,7 @@ const unsigned char gs_c_pdf_glyph_type[] = {
0,
0,
0,
-0,
+192,
0,
0,
0,
@@ -2497,7 +2499,7 @@ const unsigned char gs_c_pdf_glyph_type[] = {
0,
0,
0,
-0,
+64,
192,
48,
0,
@@ -2665,7 +2667,7 @@ const unsigned char gs_c_pdf_glyph_type[] = {
0,
0,
0,
-0,
+64,
0,
0,
0,
@@ -2817,7 +2819,7 @@ const unsigned char gs_c_pdf_glyph_type[] = {
0,
0,
0,
-0,
+48,
0,
1,
0,
@@ -2865,7 +2867,7 @@ const unsigned char gs_c_pdf_glyph_type[] = {
0,
0,
0,
-48,
+0,
0,
0,
0,
@@ -3009,7 +3011,7 @@ const unsigned char gs_c_pdf_glyph_type[] = {
0,
0,
0,
-0,
+48,
0,
0,
0,
@@ -3057,7 +3059,7 @@ const unsigned char gs_c_pdf_glyph_type[] = {
0,
0,
0,
-48,
+0,
12,
16,
0,
@@ -3201,7 +3203,7 @@ const unsigned char gs_c_pdf_glyph_type[] = {
0,
0,
0,
-0,
+48,
68,
3,
0,
@@ -3297,10 +3299,9 @@ const unsigned char gs_c_pdf_glyph_type[] = {
0,
0,
0,
-48,
0,
-3,
0,
+3,
0,
0,
0,
@@ -3346,6 +3347,7 @@ const unsigned char gs_c_pdf_glyph_type[] = {
0,
0,
0,
+48,
12,
0,
0,
@@ -3393,7 +3395,7 @@ const unsigned char gs_c_pdf_glyph_type[] = {
0,
0,
0,
-1,
+0,
0,
3,
0,
@@ -3425,7 +3427,6 @@ const unsigned char gs_c_pdf_glyph_type[] = {
0,
0,
0,
-3,
0,
0,
0,
@@ -3441,7 +3442,8 @@ const unsigned char gs_c_pdf_glyph_type[] = {
0,
0,
0,
-48,
+0,
+0,
0,
0,
0,
@@ -3521,7 +3523,7 @@ const unsigned char gs_c_pdf_glyph_type[] = {
0,
0,
0,
-3,
+1,
0,
0,
0,
@@ -3553,7 +3555,7 @@ const unsigned char gs_c_pdf_glyph_type[] = {
0,
0,
0,
-1,
+3,
192,
0,
0,
@@ -3617,8 +3619,7 @@ const unsigned char gs_c_pdf_glyph_type[] = {
0,
0,
0,
-3,
-0,
+1,
0,
0,
0,
@@ -3634,6 +3635,7 @@ const unsigned char gs_c_pdf_glyph_type[] = {
0,
0,
0,
+48,
12,
0,
0,
@@ -3649,7 +3651,7 @@ const unsigned char gs_c_pdf_glyph_type[] = {
0,
0,
0,
-1,
+3,
0,
0,
0,
@@ -3681,7 +3683,7 @@ const unsigned char gs_c_pdf_glyph_type[] = {
0,
0,
0,
-51,
+3,
0,
1,
0,
@@ -3713,7 +3715,7 @@ const unsigned char gs_c_pdf_glyph_type[] = {
0,
0,
0,
-3,
+1,
0,
0,
0,
@@ -3777,7 +3779,7 @@ const unsigned char gs_c_pdf_glyph_type[] = {
0,
0,
0,
-49,
+51,
12,
1,
0,
@@ -3809,7 +3811,7 @@ const unsigned char gs_c_pdf_glyph_type[] = {
0,
0,
0,
-0,
+3,
0,
0,
0,
@@ -3841,7 +3843,7 @@ const unsigned char gs_c_pdf_glyph_type[] = {
0,
0,
0,
-0,
+1,
0,
0,
0,
@@ -3921,7 +3923,7 @@ const unsigned char gs_c_pdf_glyph_type[] = {
0,
0,
0,
-0,
+48,
4,
0,
0,
@@ -3969,7 +3971,7 @@ const unsigned char gs_c_pdf_glyph_type[] = {
0,
0,
0,
-48,
+0,
0,
1,
0,
@@ -4113,6 +4115,7 @@ const unsigned char gs_c_pdf_glyph_type[] = {
0,
0,
0,
+48,
0,
0,
0,
@@ -4161,7 +4164,6 @@ const unsigned char gs_c_pdf_glyph_type[] = {
0,
0,
0,
-16,
0,
3,
0,
@@ -4209,6 +4211,7 @@ const unsigned char gs_c_pdf_glyph_type[] = {
0,
0,
0,
+16,
0,
0,
0,
@@ -4257,7 +4260,6 @@ const unsigned char gs_c_pdf_glyph_type[] = {
0,
0,
0,
-48,
192,
3,
0,
@@ -4353,8 +4355,7 @@ const unsigned char gs_c_pdf_glyph_type[] = {
0,
0,
0,
-16,
-0,
+48,
0,
0,
0,
@@ -4402,6 +4403,7 @@ const unsigned char gs_c_pdf_glyph_type[] = {
0,
0,
0,
+16,
0,
0,
0,
@@ -4497,7 +4499,7 @@ const unsigned char gs_c_pdf_glyph_type[] = {
0,
0,
0,
-48,
+0,
0,
0,
0,
@@ -4689,7 +4691,7 @@ const unsigned char gs_c_pdf_glyph_type[] = {
0,
0,
0,
-16,
+48,
0,
0,
0,
@@ -4737,7 +4739,7 @@ const unsigned char gs_c_pdf_glyph_type[] = {
0,
0,
0,
-48,
+16,
0,
3,
0,
@@ -4881,7 +4883,7 @@ const unsigned char gs_c_pdf_glyph_type[] = {
0,
0,
0,
-0,
+48,
0,
0,
0,
@@ -4977,7 +4979,6 @@ const unsigned char gs_c_pdf_glyph_type[] = {
0,
0,
0,
-48,
0,
0,
0,
@@ -5026,6 +5027,7 @@ const unsigned char gs_c_pdf_glyph_type[] = {
0,
0,
0,
+48,
0,
3,
0,
@@ -5073,7 +5075,6 @@ const unsigned char gs_c_pdf_glyph_type[] = {
0,
0,
0,
-48,
0,
0,
0,
@@ -5121,7 +5122,8 @@ const unsigned char gs_c_pdf_glyph_type[] = {
0,
0,
0,
-16,
+0,
+48,
0,
3,
0,
@@ -5217,7 +5219,7 @@ const unsigned char gs_c_pdf_glyph_type[] = {
0,
0,
0,
-0,
+16,
0,
3,
0,
@@ -5265,6 +5267,54 @@ const unsigned char gs_c_pdf_glyph_type[] = {
0,
0,
0,
+0,
+0,
+0,
+0,
+0,
+0,
+0,
+0,
+0,
+0,
+0,
+0,
+0,
+0,
+0,
+0,
+0,
+0,
+0,
+0,
+0,
+0,
+0,
+0,
+0,
+0,
+0,
+0,
+0,
+0,
+0,
+0,
+0,
+0,
+0,
+0,
+0,
+0,
+0,
+0,
+0,
+0,
+0,
+0,
+0,
+0,
+0,
+0,
16,
0,
0,
diff --git a/devices/vector/gdevpdtv.h b/devices/vector/gdevpdtv.h
index 54db170c..0cccd412 100644
--- a/devices/vector/gdevpdtv.h
+++ b/devices/vector/gdevpdtv.h
@@ -12,7 +12,6 @@
Artifex Software, Inc., 1305 Grant Avenue - Suite 200, Novato,
CA 94945, U.S.A., +1(415)492-9861, for further information.
*/
-
/*
* This file contains substantial parts of toolbin/encs2c.ps,
* which generated the remainder of the file mechanically from
@@ -23,12 +22,15 @@
* This source file is maintained manually under source code control,
* however its content should be regenerated by using encs2c.ps
* if changes are required.
+ * You should not manually alter this file! If you regenerate it using
+ * encs2c.ps you must regenerate all 4 files; base/gscedata.[c|h]
+ * and devices/vector/gdevpdtv.[c|h]
*/
#ifndef gdevpdtv_INCLUDED
#define gdevpdtv_INCLUDED
-#define GS_C_PDF_MAX_GOOD_GLYPH 21894
+#define GS_C_PDF_MAX_GOOD_GLYPH 22086
#define GS_C_PDF_GOOD_GLYPH_MASK 1
#define GS_C_PDF_GOOD_NON_SYMBOL_MASK 2
diff --git a/devices/vector/gdevpdtw.c b/devices/vector/gdevpdtw.c
index 0647db66..907c7f0c 100644
--- a/devices/vector/gdevpdtw.c
+++ b/devices/vector/gdevpdtw.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 2001-2021 Artifex Software, Inc.
+/* Copyright (C) 2001-2022 Artifex Software, Inc.
All Rights Reserved.
This software is provided AS-IS with no warranty, either express or
@@ -78,9 +78,13 @@ pdf_different_encoding_element(const pdf_font_resource_t *pdfont, int ch, int en
if (code < 0)
return code; /* Must not happen */
- if (glyph1 != GS_NO_GLYPH)
- if (!strings_equal(&str, &pdfont->u.simple.Encoding[ch].str))
+ if (glyph1 != GS_NO_GLYPH) {
+ gs_const_string str2;
+ str2.data = pdfont->u.simple.Encoding[ch].data;
+ str2.size = pdfont->u.simple.Encoding[ch].size;
+ if (!strings_equal(&str, &str2))
return 1;
+ }
}
return 0;
}
@@ -120,7 +124,7 @@ pdf_simple_font_needs_ToUnicode(const pdf_font_resource_t *pdfont)
*/
return true;
if (!pdfont->TwoByteToUnicode)
- return true;
+ return false;
for (ch = 0; ch < 256; ++ch) {
pdf_encoding_element_t *pet = &pdfont->u.simple.Encoding[ch];
@@ -129,9 +133,9 @@ pdf_simple_font_needs_ToUnicode(const pdf_font_resource_t *pdfont)
if (glyph == GS_NO_GLYPH)
continue;
if (glyph < gs_c_min_std_encoding_glyph || glyph >= GS_MIN_CID_GLYPH) {
- if (pet->str.size == 0)
+ if (pet->size == 0)
return true;
- glyph = gs_c_name_glyph(pet->str.data, pet->str.size);
+ glyph = gs_c_name_glyph(pet->data, pet->size);
if (glyph == GS_NO_GLYPH)
return true;
}
@@ -176,12 +180,12 @@ pdf_write_encoding(gx_device_pdf *pdev, const pdf_font_resource_t *pdfont, long
* Enforce writing differences against that.
*/
if (pdfont->used[ch >> 3] & 0x80 >> (ch & 7))
- if (pdfont->u.simple.Encoding[ch].str.size)
+ if (pdfont->u.simple.Encoding[ch].size)
code = 1;
}
if (code) {
- const byte *d = pdfont->u.simple.Encoding[ch].str.data;
- int i, l = pdfont->u.simple.Encoding[ch].str.size;
+ const byte *d = pdfont->u.simple.Encoding[ch].data;
+ int i, l = pdfont->u.simple.Encoding[ch].size;
if (pdev->HavePDFWidths) {
for (i = 0; i + sl < l; i++)
@@ -881,7 +885,7 @@ pdf_write_OneByteIdentityH(gx_device_pdf *pdev)
code = cos_dict_put_string_copy(pcd, "/CMapName", "/OneByteIdentityH");
if (code < 0)
return code;
- gs_sprintf(buf, "%ld 0 R", pdev->IdentityCIDSystemInfo_id);
+ gs_snprintf(buf, sizeof(buf), "%ld 0 R", pdev->IdentityCIDSystemInfo_id);
code = cos_dict_put_string_copy(pcd, "/CIDSystemInfo", buf);
if (code < 0)
return code;
diff --git a/devices/vector/gdevpsf1.c b/devices/vector/gdevpsf1.c
index 672ce241..c045c714 100644
--- a/devices/vector/gdevpsf1.c
+++ b/devices/vector/gdevpsf1.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 2001-2021 Artifex Software, Inc.
+/* Copyright (C) 2001-2022 Artifex Software, Inc.
All Rights Reserved.
This software is provided AS-IS with no warranty, either express or
@@ -663,12 +663,12 @@ write_Private(stream *s, gs_font_type1 *pfont,
gs_free_object(pfont->memory, SubrsWithMM, "free Subrs record");
return code;
}
- gs_sprintf(buf, "dup %d %u -| ", i, code);
+ gs_snprintf(buf, sizeof(buf), "dup %d %u -| ", i, code);
stream_puts(s, buf);
write_CharString(s, stripped, code);
gs_free_object(pfont->memory, stripped, "free Subrs copy for OtherSubrs");
} else {
- gs_sprintf(buf, "dup %d %u -| ", i, gdata.bits.size);
+ gs_snprintf(buf, sizeof(buf), "dup %d %u -| ", i, gdata.bits.size);
stream_puts(s, buf);
write_CharString(s, gdata.bits.data, gdata.bits.size);
}
diff --git a/devices/vector/gdevpsf2.c b/devices/vector/gdevpsf2.c
index 4c56c450..a6db8b5b 100644
--- a/devices/vector/gdevpsf2.c
+++ b/devices/vector/gdevpsf2.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 2001-2021 Artifex Software, Inc.
+/* Copyright (C) 2001-2022 Artifex Software, Inc.
All Rights Reserved.
This software is provided AS-IS with no warranty, either express or
@@ -274,7 +274,7 @@ cff_put_real(cff_writer_t *pcw, double f)
byte b = 0xff;
const char *p;
- gs_sprintf(str, "%g", f);
+ gs_snprintf(str, sizeof(str), "%g", f);
sputc(pcw->strm, CD_REAL);
for (p = str; ; ++p) {
int digit;
@@ -1213,17 +1213,21 @@ psf_write_type2_font(stream *s, gs_font_type1 *pfont, int options,
std_string_items = (cff_string_item_t *)gs_alloc_bytes(pfont->memory,
(MAX_CFF_STD_STRINGS + number_of_strings) * sizeof(cff_string_item_t),
"psf_write_type2_font");
- if (std_string_items == NULL || subset.glyphs.subset_data == NULL)
- return_error(gs_error_VMerror);
+ if (std_string_items == NULL || subset.glyphs.subset_data == NULL) {
+ code = gs_note_error(gs_error_VMerror);
+ goto error;
+ }
string_items = std_string_items + MAX_CFF_STD_STRINGS;
/* Get subset glyphs. */
code = psf_get_type1_glyphs(&subset.glyphs, pfont, subset_glyphs,
subset_size);
if (code < 0)
- return code;
- if (subset.glyphs.notdef == GS_NO_GLYPH)
- return_error(gs_error_rangecheck); /* notdef is required */
+ goto error;
+ if (subset.glyphs.notdef == GS_NO_GLYPH) {
+ code = gs_note_error(gs_error_rangecheck); /* notdef is required */
+ goto error;
+ }
/* If we're writing Type 2 CharStrings, don't encrypt them. */
if (options & WRITE_TYPE2_CHARSTRINGS) {
@@ -1274,8 +1278,10 @@ psf_write_type2_font(stream *s, gs_font_type1 *pfont, int options,
psf_enumerate_glyphs_reset(&genum);
while ((code = psf_enumerate_glyphs_next(&genum, &glyph)) != 1)
if (code == 0) {
- if (num_glyphs == number_of_glyphs)
- return_error(gs_error_limitcheck);
+ if (num_glyphs == number_of_glyphs){
+ code = gs_note_error(gs_error_limitcheck);
+ goto error;
+ }
subset.glyphs.subset_data[num_glyphs++] = glyph;
}
subset.glyphs.subset_size =
@@ -1347,7 +1353,7 @@ psf_write_type2_font(stream *s, gs_font_type1 *pfont, int options,
if (code == gs_error_undefined)
continue;
if (code < 0)
- return code;
+ goto error;
charset_size += 2;
}
@@ -1380,7 +1386,7 @@ psf_write_type2_font(stream *s, gs_font_type1 *pfont, int options,
/* Compute the size of the CharStrings Index. */
code = cff_write_CharStrings_offsets(&writer, &genum, &charstrings_count);
if (code < 0)
- return code;
+ goto error;
charstrings_size = (uint)code;
/* Compute the size of the (local) Subrs Index. */
@@ -1424,8 +1430,10 @@ psf_write_type2_font(stream *s, gs_font_type1 *pfont, int options,
Subrs_offset = Private_size; /* relative to Private Dict */
write:
- if(check_ioerror(writer.strm))
- return_error(gs_error_ioerror);
+ if(check_ioerror(writer.strm)) {
+ code = gs_note_error(gs_error_ioerror);
+ goto error;
+ }
start_pos = stell(writer.strm);
/* Write the header, setting offset_size. */
cff_write_header(&writer, End_offset);
@@ -1446,14 +1454,18 @@ psf_write_type2_font(stream *s, gs_font_type1 *pfont, int options,
/* Write the strings Index. */
cff_put_Index(&writer, &writer.strings);
- if(check_ioerror(writer.strm))
- return_error(gs_error_ioerror);
+ if(check_ioerror(writer.strm)){
+ code = gs_note_error(gs_error_ioerror);
+ goto error;
+ }
/* Write the GSubrs Index, if any, checking the offset. */
offset = stell(writer.strm) - start_pos;
if_debug2m('l', s->memory, "[l]GSubrs = %u => %u\n", GSubrs_offset, offset);
- if (offset > GSubrs_offset)
- return_error(gs_error_rangecheck);
+ if (offset > GSubrs_offset) {
+ code = gs_note_error(gs_error_rangecheck);
+ goto error;
+ }
GSubrs_offset = offset;
if (gsubrs_count == 0 || cff_convert_charstrings(&writer, pbfont))
cff_put_Index_header(&writer, 0, 0);
@@ -1468,26 +1480,34 @@ psf_write_type2_font(stream *s, gs_font_type1 *pfont, int options,
/* Write the CharStrings Index, checking the offset. */
offset = stell(writer.strm) - start_pos;
- if (offset > CharStrings_offset)
- return_error(gs_error_rangecheck);
+ if (offset > CharStrings_offset) {
+ code = gs_note_error(gs_error_rangecheck);
+ goto error;
+ }
CharStrings_offset = offset;
cff_write_CharStrings(&writer, &genum, charstrings_count,
charstrings_size);
- if(check_ioerror(writer.strm))
- return_error(gs_error_ioerror);
+ if(check_ioerror(writer.strm)) {
+ code = gs_note_error(gs_error_ioerror);
+ goto error;
+ }
/* Write the Private Dict, checking the offset. */
offset = stell(writer.strm) - start_pos;
- if (offset > Private_offset)
- return_error(gs_error_rangecheck);
+ if (offset > Private_offset) {
+ code = gs_note_error(gs_error_rangecheck);
+ goto error;
+ }
Private_offset = offset;
cff_write_Private(&writer, (subrs_size == 0 ? 0 : Subrs_offset), pfont);
Private_size = stell(writer.strm) - start_pos - offset;
/* Write the Subrs Index, checking the offset. */
offset = stell(writer.strm) - (start_pos + Private_offset);
- if (offset > Subrs_offset)
- return_error(gs_error_rangecheck);
+ if (offset > Subrs_offset) {
+ code = gs_note_error(gs_error_rangecheck);
+ goto error;
+ }
Subrs_offset = offset;
if (cff_convert_charstrings(&writer, pbfont))
cff_put_Index_header(&writer, 0, 0);
@@ -1495,11 +1515,15 @@ psf_write_type2_font(stream *s, gs_font_type1 *pfont, int options,
cff_write_Subrs(&writer, subrs_count, subrs_size, pfont, false);
/* Check the final offset. */
- if(check_ioerror(writer.strm))
- return_error(gs_error_ioerror);
+ if(check_ioerror(writer.strm)) {
+ code = gs_note_error(gs_error_ioerror);
+ goto error;
+ }
offset = stell(writer.strm) - start_pos;
- if (offset > End_offset)
- return_error(gs_error_rangecheck);
+ if (offset > End_offset) {
+ code = gs_note_error(gs_error_rangecheck);
+ goto error;
+ }
if (offset == End_offset) {
/* The iteration has converged. Write the result. */
if (writer.strm == &poss) {
@@ -1516,6 +1540,12 @@ psf_write_type2_font(stream *s, gs_font_type1 *pfont, int options,
gs_free_object(pfont->memory, std_string_items, "psf_write_type2_font");
gs_free_object(pfont->memory, subset.glyphs.subset_data, "psf_write_type2_font");
return 0;
+
+error:
+ gs_free_object(pfont->memory, std_string_items, "psf_write_type2_font");
+ gs_free_object(pfont->memory, subset.glyphs.subset_data, "psf_write_type2_font");
+ subset.glyphs.subset_data = NULL;
+ return code;
}
/* Write the CFF definition of a CIDFontType 0 font (CIDFont). */
diff --git a/devices/vector/gdevtxtw.c b/devices/vector/gdevtxtw.c
index cbe2b19e..5c885f5f 100644
--- a/devices/vector/gdevtxtw.c
+++ b/devices/vector/gdevtxtw.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 2001-2021 Artifex Software, Inc.
+/* Copyright (C) 2001-2022 Artifex Software, Inc.
All Rights Reserved.
This software is provided AS-IS with no warranty, either express or
@@ -647,20 +647,20 @@ static int simple_text_output(gx_device_txtwrite_t *tdev)
return 0;
}
-static int escaped_Unicode (unsigned short Unicode, char *Buf)
+static int escaped_Unicode (unsigned short Unicode, char Buf[32])
{
switch (Unicode)
{
- case 0x3C: gs_sprintf(Buf, "&lt;"); break;
- case 0x3E: gs_sprintf(Buf, "&gt;"); break;
- case 0x26: gs_sprintf(Buf, "&amp;"); break;
- case 0x22: gs_sprintf(Buf, "&quot;"); break;
- case 0x27: gs_sprintf(Buf, "&apos;"); break;
+ case 0x3C: gs_snprintf(Buf, 32, "&lt;"); break;
+ case 0x3E: gs_snprintf(Buf, 32, "&gt;"); break;
+ case 0x26: gs_snprintf(Buf, 32, "&amp;"); break;
+ case 0x22: gs_snprintf(Buf, 32, "&quot;"); break;
+ case 0x27: gs_snprintf(Buf, 32, "&apos;"); break;
default:
if (Unicode >= 32 && Unicode <= 127)
- gs_sprintf(Buf, "%c", Unicode);
+ gs_snprintf(Buf, 32, "%c", Unicode);
else
- gs_sprintf(Buf, "&#x%x;", Unicode);
+ gs_snprintf(Buf, 32, "&#x%x;", Unicode);
break;
}
@@ -683,13 +683,13 @@ static int decorated_text_output(gx_device_txtwrite_t *tdev)
x_entry = tdev->PageData.unsorted_text_list;
while (x_entry) {
next_x = x_entry->next;
- gs_sprintf(TextBuffer, "<span bbox=\"%0.0f %0.0f %0.0f %0.0f\" font=\"%s\" size=\"%0.4f\">\n", x_entry->start.x, x_entry->start.y,
+ gs_snprintf(TextBuffer, sizeof(TextBuffer), "<span bbox=\"%0.0f %0.0f %0.0f %0.0f\" font=\"%s\" size=\"%0.4f\">\n", x_entry->start.x, x_entry->start.y,
x_entry->end.x, x_entry->end.y, x_entry->FontName,x_entry->size);
gp_fwrite(TextBuffer, 1, strlen(TextBuffer), tdev->file);
xpos = x_entry->start.x;
for (i=0;i<x_entry->Unicode_Text_Size;i++) {
- escaped_Unicode(x_entry->Unicode_Text[i], (char *)&Escaped);
- gs_sprintf(TextBuffer, "<char bbox=\"%0.0f %0.0f %0.0f %0.0f\" c=\"%s\"/>\n", xpos,
+ escaped_Unicode(x_entry->Unicode_Text[i], Escaped);
+ gs_snprintf(TextBuffer, sizeof(TextBuffer), "<char bbox=\"%0.0f %0.0f %0.0f %0.0f\" c=\"%s\"/>\n", xpos,
x_entry->start.y, xpos + x_entry->Widths[i], x_entry->end.y, Escaped);
gp_fwrite(TextBuffer, 1, strlen(TextBuffer), tdev->file);
xpos += x_entry->Widths[i];
@@ -806,13 +806,13 @@ static int decorated_text_output(gx_device_txtwrite_t *tdev)
gp_fwrite("<line>\n", sizeof(unsigned char), 7, tdev->file);
x_entry = block_line->x_ordered_list;
while(x_entry) {
- gs_sprintf(TextBuffer, "<span bbox=\"%0.0f %0.0f %0.0f %0.0f\" font=\"%s\" size=\"%0.4f\">\n", x_entry->start.x, x_entry->start.y,
+ gs_snprintf(TextBuffer, sizeof(TextBuffer), "<span bbox=\"%0.0f %0.0f %0.0f %0.0f\" font=\"%s\" size=\"%0.4f\">\n", x_entry->start.x, x_entry->start.y,
x_entry->end.x, x_entry->end.y, x_entry->FontName,x_entry->size);
gp_fwrite(TextBuffer, 1, strlen(TextBuffer), tdev->file);
xpos = x_entry->start.x;
for (i=0;i<x_entry->Unicode_Text_Size;i++) {
- escaped_Unicode(x_entry->Unicode_Text[i], (char *)&Escaped);
- gs_sprintf(TextBuffer, "<char bbox=\"%0.0f %0.0f %0.0f %0.0f\" c=\"%s\"/>\n", xpos,
+ escaped_Unicode(x_entry->Unicode_Text[i], Escaped);
+ gs_snprintf(TextBuffer, sizeof(TextBuffer), "<char bbox=\"%0.0f %0.0f %0.0f %0.0f\" c=\"%s\"/>\n", xpos,
x_entry->start.y, xpos + x_entry->Widths[i], x_entry->end.y, Escaped);
gp_fwrite(TextBuffer, 1, strlen(TextBuffer), tdev->file);
xpos += x_entry->Widths[i];
@@ -1483,6 +1483,7 @@ txtwrite_process_plain_text(gs_text_enum_t *pte)
uint operation = pte->text.operation;
txt_glyph_widths_t widths;
gs_point wanted; /* user space */
+ float glyph_width;
for (i=pte->index;i<pte->text.size;i++) {
gs_point dpt = {0,0};
@@ -1516,7 +1517,29 @@ txtwrite_process_plain_text(gs_text_enum_t *pte)
if (code < 0)
return code;
+ /* Calculate glyph_width from the **original** glyph metrics, not the overriding
+ * advance width (if TEXT_REPLACE_WIDTHS is set below)
+ */
txt_char_widths_to_uts(pte->orig_font, &widths); /* convert design->text space */
+ glyph_width = widths.real_width.xy.x * penum->text_state->size;
+
+ if (pte->text.operation & TEXT_REPLACE_WIDTHS)
+ {
+ gs_point tpt;
+
+ /* We are applying a width override, from x/y/xyshow. This could be from
+ * a PostScript file, or it could be from a PDF file where we have a font
+ * with a FontMatrix which is neither horizontal nor vertical.
+ */
+ code = gs_text_replaced_width(&pte->text, pte->xy_index++, &tpt);
+ if (code < 0)
+ return_error(gs_error_unregistered);
+
+ widths.Width.w = widths.real_width.w = tpt.x;
+ widths.Width.xy.x = widths.real_width.xy.x = tpt.x;
+ widths.Width.xy.y = widths.real_width.xy.y = tpt.y;
+ }
+
gs_distance_transform(widths.real_width.xy.x * penum->text_state->size,
widths.real_width.xy.y * penum->text_state->size,
&penum->text_state->matrix, &wanted);
@@ -1524,7 +1547,7 @@ txtwrite_process_plain_text(gs_text_enum_t *pte)
pte->returned.total_width.y += wanted.y;
penum->Widths[penum->TextBufferIndex] = wanted.x;
penum->Advs[penum->TextBufferIndex] = wanted.x;
- penum->GlyphWidths[penum->TextBufferIndex] = widths.real_width.xy.x * penum->text_state->size;
+ penum->GlyphWidths[penum->TextBufferIndex] = glyph_width;
penum->SpanDeltaX[penum->TextBufferIndex] = widths.real_width.xy.x * penum->text_state->size;
if (pte->text.operation & TEXT_ADD_TO_ALL_WIDTHS) {
diff --git a/devices/vector/gdevxps.c b/devices/vector/gdevxps.c
index c946f322..1ab854be 100644
--- a/devices/vector/gdevxps.c
+++ b/devices/vector/gdevxps.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 2001-2021 Artifex Software, Inc.
+/* Copyright (C) 2001-2022 Artifex Software, Inc.
All Rights Reserved.
This software is provided AS-IS with no warranty, either express or
@@ -960,7 +960,7 @@ write_str_to_current_page(gx_device_xps *xps, const char *str)
char buf[128]; /* easily enough to accommodate the string and a page number */
/* we're one ahead of the page count */
- int code = gs_sprintf(buf, page_template, xps->page_count+1);
+ int code = gs_snprintf(buf, sizeof(buf), page_template, xps->page_count+1);
if (code < 0)
return gs_rethrow_code(code);
@@ -1011,7 +1011,7 @@ close_page_relationship(gx_device_xps *xps)
const char *rels_template = "Documents/1/Pages/_rels/%d.fpage.rels";
char buf[128]; /* easily enough to accommodate the string and a page number */
- int code = gs_sprintf(buf, rels_template, xps->page_count + 1);
+ int code = gs_snprintf(buf, sizeof(buf), rels_template, xps->page_count + 1);
if (code < 0)
return gs_rethrow_code(code);
@@ -1029,7 +1029,7 @@ write_page_relationship(gx_device_xps* xps)
int count = 0;
xps_relations_t *rel = xps->relations_head;
- int code = gs_sprintf(buf, rels_template, xps->page_count + 1);
+ int code = gs_snprintf(buf, sizeof(buf), rels_template, xps->page_count + 1);
if (code < 0)
return gs_rethrow_code(code);
@@ -1037,7 +1037,7 @@ write_page_relationship(gx_device_xps* xps)
fmt = "<Relationship Target = \"/%s\" Id = \"R%d\" Type = %s/>\n";
while (rel) {
- gs_sprintf(line, fmt, rel->relation, count, rels_req_type);
+ gs_snprintf(line, sizeof(line), fmt, rel->relation, count, rels_req_type);
write_str_to_zip_file(xps, buf, line);
rel = rel->next;
count++;
@@ -1350,7 +1350,7 @@ xps_beginpage(gx_device_vector *vdev)
{
const char *template = "<PageContent Source=\"Pages/%d.fpage\" />";
/* Note page count is 1 less than the current page */
- code = gs_sprintf(buf, template, xps->page_count + 1);
+ code = gs_snprintf(buf, sizeof(buf), template, xps->page_count + 1);
if (code < 0)
return gs_rethrow_code(code);
@@ -1364,7 +1364,7 @@ xps_beginpage(gx_device_vector *vdev)
{
const char *page_size_template = "<FixedPage Width=\"%d\" Height=\"%d\" "
"xmlns=\"http://schemas.microsoft.com/xps/2005/06\" xml:lang=\"en-US\">\n";
- code = gs_sprintf(buf, page_size_template,
+ code = gs_snprintf(buf, sizeof(buf), page_size_template,
(int)(xps->MediaSize[0] * 4.0/3.0), /* pts -> 1/96 inch */
(int)(xps->MediaSize[1] * 4.0/3.0));
if (code < 0)
@@ -1375,7 +1375,7 @@ xps_beginpage(gx_device_vector *vdev)
}
{
const char *canvas_template = "<Canvas RenderTransform=\"%g,%g,%g,%g,%g,%g\">\n";
- code = gs_sprintf(buf, canvas_template,
+ code = gs_snprintf(buf, sizeof(buf), canvas_template,
96.0/xps->HWResolution[0], 0.0, 0.0,
96.0/xps->HWResolution[1], 0.0, 0.0);
if (code < 0)
@@ -1507,7 +1507,7 @@ xps_finish_image_path(gx_device_vector *vdev)
write_str_to_current_page(xps, "\t<Path.Fill>\n");
write_str_to_current_page(xps, "\t\t<ImageBrush ");
fmt = "ImageSource = \"{ColorConvertedBitmap /%s /%s}\" Viewbox=\"%d, %d, %d, %d\" ViewboxUnits = \"Absolute\" Viewport = \"%d, %d, %d, %d\" ViewportUnits = \"Absolute\" TileMode = \"None\" >\n";
- gs_sprintf(line, fmt, xps->xps_pie->file_name, xps->xps_pie->icc_name,
+ gs_snprintf(line, sizeof(line), fmt, xps->xps_pie->file_name, xps->xps_pie->icc_name,
0, 0, xps->xps_pie->width, xps->xps_pie->height, 0, 0,
xps->xps_pie->width, xps->xps_pie->height);
write_str_to_current_page(xps, line);
@@ -1517,7 +1517,7 @@ xps_finish_image_path(gx_device_vector *vdev)
write_str_to_current_page(xps, "\t\t\t<ImageBrush.Transform>\n");
fmt = "\t\t\t\t<MatrixTransform Matrix = \"%g,%g,%g,%g,%g,%g\" />\n";
matrix = xps->xps_pie->mat;
- gs_sprintf(line, fmt,
+ gs_snprintf(line, sizeof(line), fmt,
matrix.xx, matrix.xy, matrix.yx, matrix.yy, matrix.tx, matrix.ty);
write_str_to_current_page(xps, line);
write_str_to_current_page(xps, "\t\t\t</ImageBrush.Transform>\n");
@@ -1559,7 +1559,7 @@ xps_dorect(gx_device_vector *vdev, fixed x0, fixed y0,
if (image_brush_fill(type, xps->filltype)) {
/* Do the path data */
fmt = "<Path Data=\"M %g, %g L %g, %g %g, %g %g, %g Z\" >\n";
- gs_sprintf(line, fmt,
+ gs_snprintf(line, sizeof(line), fmt,
fixed2float(x0), fixed2float(y0),
fixed2float(x0), fixed2float(y1),
fixed2float(x1), fixed2float(y1),
@@ -1573,7 +1573,7 @@ xps_dorect(gx_device_vector *vdev, fixed x0, fixed y0,
/* NB - F0 should be changed for a different winding type */
fmt = "Fill=\"#%06X\" Data=\"M %g,%g V %g H %g V %g Z\" ";
c = xps->fillcolor & 0xffffffL;
- gs_sprintf(line, fmt, c,
+ gs_snprintf(line, sizeof(line), fmt, c,
fixed2float(x0), fixed2float(y0),
fixed2float(y1), fixed2float(x1),
fixed2float(y0));
@@ -1584,7 +1584,7 @@ xps_dorect(gx_device_vector *vdev, fixed x0, fixed y0,
write_str_to_current_page(xps, "<Path ");
fmt = "Stroke=\"#%06X\" Data=\"M %g,%g V %g H %g V %g Z\" ";
c = xps->strokecolor & 0xffffffL;
- gs_sprintf(line, fmt, c,
+ gs_snprintf(line, sizeof(line), fmt, c,
fixed2float(x0), fixed2float(y0),
fixed2float(y1), fixed2float(x1),
fixed2float(y0));
@@ -1593,7 +1593,7 @@ xps_dorect(gx_device_vector *vdev, fixed x0, fixed y0,
if (type & gx_path_type_stroke) {
/* NB format width. */
fmt = "StrokeThickness=\"%g\" ";
- gs_sprintf(line, fmt, xps->linewidth);
+ gs_snprintf(line, sizeof(line), fmt, xps->linewidth);
write_str_to_current_page(xps, line);
}
write_str_to_current_page(xps, "/>\n");
@@ -1653,7 +1653,7 @@ xps_beginpath(gx_device_vector *vdev, gx_path_type_t type)
fmt = "Fill=\"#%06X\" Data=\"";
else
fmt = "Stroke=\"#%06X\" Data=\"";
- gs_sprintf(line, fmt, c);
+ gs_snprintf(line, sizeof(line), fmt, c);
write_str_to_current_page(xps, line);
}
else {
@@ -1680,7 +1680,7 @@ xps_moveto(gx_device_vector *vdev, double x0, double y0,
return 0;
}
- gs_sprintf(line, " M %g,%g", x, y);
+ gs_snprintf(line, sizeof(line), " M %g,%g", x, y);
write_str_to_current_page(xps, line);
if_debug1m('_', xps->memory, "xps_moveto %s", line);
return 0;
@@ -1700,7 +1700,7 @@ xps_lineto(gx_device_vector *vdev, double x0, double y0,
if_debug1m('_', xps->memory, "xps_lineto: type not supported %x\n", type);
return 0;
}
- gs_sprintf(line, " L %g,%g", x, y);
+ gs_snprintf(line, sizeof(line), " L %g,%g", x, y);
write_str_to_current_page(xps, line);
if_debug1m('_', xps->memory, "xps_lineto %s\n", line);
return 0;
@@ -1720,7 +1720,7 @@ xps_curveto(gx_device_vector *vdev, double x0, double y0,
return 0;
}
- gs_sprintf(line, " C %g,%g %g,%g %g,%g", x1, y1,
+ gs_snprintf(line, sizeof(line), " C %g,%g %g,%g %g,%g", x1, y1,
x2,y2,x3,y3);
write_str_to_current_page(xps,line);
if_debug1m('_', xps->memory, "xps_curveto %s\n", line);
@@ -1766,7 +1766,7 @@ xps_endpath(gx_device_vector *vdev, gx_path_type_t type)
} else if (type & gx_path_type_stroke) {
/* NB format width. */
fmt = "\" StrokeThickness=\"%g\" />\n";
- gs_sprintf(line, fmt, xps->linewidth);
+ gs_snprintf(line, sizeof(line), fmt, xps->linewidth);
write_str_to_current_page(xps, line);
} else { /* fill */
/* close the path data attribute */
diff --git a/doc/API.htm b/doc/API.htm
index 982c6434..c994ae13 100644
--- a/doc/API.htm
+++ b/doc/API.htm
@@ -1,102 +1,74 @@
<!doctype html>
-<html>
+<html lang="en">
<head>
-<meta charset="UTF-8">
-<meta name="viewport" content="width=device-width, initial-scale=1.0">
-<link href="https://fonts.googleapis.com/css?family=Source+Sans+Pro" rel="stylesheet">
-<link rel="shortcut icon" type="image/png" href="../../images/favicon.png">
-<title>The Ghostscript Interpreter Application Programming Interface (API)</title>
- <!-- Supercedes the API in DLL.htm -->
-<link href="style.css" rel="stylesheet" type="text/css">
-<link href="gs-style.css" rel="stylesheet" type="text/css">
+ <meta http-equiv="content-type" content="text/html; charset=utf-8">
+ <meta name="viewport" content="user-scalable=yes, initial-scale=1, width=device-width">
+ <link href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:200,200i,300,300i,400,400i,600,600i,700,700i,900,900i" rel="stylesheet">
+ <link rel="shortcut icon" href="images/favicon.svg">
+ <title>The Ghostscript Interpreter Application Programming Interface (API)</title>
+ <link href="default.css" rel="stylesheet" type="text/css">
</head>
<body>
+ <header><div class="title"><a href="index.html"><h1>Ghostscript documentation</h1><h2 aria-label="version"></h2></a></div><a href="Search.htm" aria-label="Search" id="searchSite"><div class="search"></div></a>
+ </header>
+ <main>
- <div class="header">
- <div class="row">
- <div class="col-lt-6 logo"><a href="https://www.ghostscript.com/"><img src="images/ghostscript_logo.png" width="108" height="119" alt=""></a></div>
- <div class="col-6"><div class="row"><div class="artifexlogo"><a href="https://artifex.com" target="_blank"><img src="images/Artifex_logo.png" width="194" height="40" alt=""></a></div>
- <div class="col-12"><div class="button button1"><a href="https://artifex.com/contact-us/" title="Contact Us" target="_blank">Contact Us</a></div>
- <div class="button button2 hidden-xs"><a href="https://www.ghostscript.com/download.html" title="Download">Download</a></div></div></div>
- </div>
- </div>
- </div>
-
- <div class="banner">
- <div class="row">
- <div class="col-12">The Ghostscript Interpreter Application Programming Interface (API)</div>
- </div>
- </div>
-
- <div class="main">
- <div class="row">
- <div id="sidebar">
- <div class="sidebar-item"></div>
- <div class="col-2 leftnav">
-<ul>
- <li><a href="https://www.ghostscript.com/">Home</a></li>
- <li><a href="https://www.ghostscript.com/license.html">Licensing</a></li>
- <li><a href="https://www.ghostscript.com/releases.html">Releases</a></li>
- <li><a href="https://www.ghostscript.com/documentation.html" title="Documentation">Documentation</a></li>
- <li><a href="https://www.ghostscript.com/download.html" title="Download">Download</a></li>
- <li><a href="https://www.ghostscript.com/performance.html" title="Performance">Performance</a></li>
- <li><a href="http://jbig2dec.com/" title="jbig2dec">jbig2dec</a></li>
- <li><a href="http://git.ghostscript.com/?p=ghostpdl.git;a=summary">Source</a></li>
- <li><a href="http://bugs.ghostscript.com/">Bugs</a></li>
- <li><a href="https://www.ghostscript.com/faq.html" title="FAQ">FAQ</a></li>
- </ul>
- </div>
- </div>
- <div class="col-10 page">
+ <article>
+ <div class="outer">
+
+ <div class="inner">
<!--START EDITING HERE-->
-<h2>Table of contents</h2>
+<h1>API</h1>
-<ul>
-<li><a href="#API">What is the Ghostscript Interpreter API?</a></li>
-<li><a href="#Exported_functions ">Exported functions</a></li>
+<h2><a name="toc"></a>Table of contents</h2>
-<ul>
-<li><a href="#revision"><code>gsapi_revision</code></a></li>
-<li><a href="#new_instance"><code>gsapi_new_instance</code></a></li>
-<li><a href="#delete_instance"><code>gsapi_delete_instance</code></a></li>
-<li><a href="#set_stdio_with_handle"><code>gsapi_set_stdio_with_handle</code></a></li>
-<li><a href="#set_stdio"><code>gsapi_set_stdio</code></a></li>
-<li><a href="#set_poll_with_handle"><code>gsapi_set_poll_with_handle</code></a></li>
-<li><a href="#set_poll"><code>gsapi_set_poll</code></a></li>
-<li><a href="#set_display_callback"><code>gsapi_set_display_callback</code></a></li>
-<li><a href="#register_callout"><code>gsapi_register_callout</code></a></li>
-<li><a href="#deregister_callout"><code>gsapi_deregister_callout</code></a></li>
-<li><a href="#set_arg_encoding"><code>gsapi_set_arg_encoding</code></a></li>
-<li><a href="#get_default_device_list"><code>gsapi_get_default_device_list</code></a></li>
-<li><a href="#set_default_device_list"><code>gsapi_set_default_device_list</code></a></li>
-<li><a href="#run"><code>gsapi_run_string_begin</code></a></li>
-<li><a href="#run"><code>gsapi_run_string_continue</code></a></li>
-<li><a href="#run"><code>gsapi_run_string_end</code></a></li>
-<li><a href="#run"><code>gsapi_run_string_with_length</code></a></li>
-<li><a href="#run"><code>gsapi_run_string</code></a></li>
-<li><a href="#run"><code>gsapi_run_file</code></a></li>
-<li><a href="#init"><code>gsapi_init_with_args</code></a></li>
-<li><a href="#exit"><code>gsapi_exit</code></a></li>
-<li><a href="#set_param"><code>gsapi_set_param</code></a></li>
-<li><a href="#get_param"><code>gsapi_get_param</code></a></li>
-<li><a href="#enumerate_params"><code>gsapi_enumerate_params</code></a></li>
-<li><a href="#add_control_path"><code>gsapi_add_control_path</code></a></li>
-<li><a href="#remove_control_path"><code>gsapi_remove_control_path</code></a></li>
-<li><a href="#purge_control_paths"><code>gsapi_purge_control_paths</code></a></li>
-<li><a href="#activate_path_control"><code>gsapi_activate_path_control</code></a></li>
-<li><a href="#is_path_control_active"><code>gsapi_is_path_control_active</code></a></li>
-<li><a href="#add_fs"><code>gsapi_add_fs</code></a></li>
-<li><a href="#remove_fs"><code>gsapi_remove_fs</code></a></li>
-<li><a href="#return_codes">Return codes</a></li>
-<li><a href="#gsapi_fs_t">gsapi_fs_t</a></li>
-<li><a href="#callout">Callouts</a></li>
-</ul>
-<li><a href="#Example_usage">Example usage</a></li>
-<li><a href="#stdio">Standard input and output</a></li>
-<li><a href="#display">Display device</a></li>
+<ul class="toc">
+ <li><a href="#API">What is the Ghostscript Interpreter API?</a></li>
+ <li><a href="#Exported_functions ">Exported functions</a></li>
+ <li>
+ <ul>
+ <li><a href="#revision"><code>gsapi_revision</code></a></li>
+ <li><a href="#new_instance"><code>gsapi_new_instance</code></a></li>
+ <li><a href="#delete_instance"><code>gsapi_delete_instance</code></a></li>
+ <li><a href="#set_stdio_with_handle"><code>gsapi_set_stdio_with_handle</code></a></li>
+ <li><a href="#set_stdio"><code>gsapi_set_stdio</code></a></li>
+ <li><a href="#set_poll_with_handle"><code>gsapi_set_poll_with_handle</code></a></li>
+ <li><a href="#set_poll"><code>gsapi_set_poll</code></a></li>
+ <li><a href="#set_display_callback"><code>gsapi_set_display_callback</code></a></li>
+ <li><a href="#register_callout"><code>gsapi_register_callout</code></a></li>
+ <li><a href="#deregister_callout"><code>gsapi_deregister_callout</code></a></li>
+ <li><a href="#set_arg_encoding"><code>gsapi_set_arg_encoding</code></a></li>
+ <li><a href="#get_default_device_list"><code>gsapi_get_default_device_list</code></a></li>
+ <li><a href="#set_default_device_list"><code>gsapi_set_default_device_list</code></a></li>
+ <li><a href="#run"><code>gsapi_run_string_begin</code></a></li>
+ <li><a href="#run"><code>gsapi_run_string_continue</code></a></li>
+ <li><a href="#run"><code>gsapi_run_string_end</code></a></li>
+ <li><a href="#run"><code>gsapi_run_string_with_length</code></a></li>
+ <li><a href="#run"><code>gsapi_run_string</code></a></li>
+ <li><a href="#run"><code>gsapi_run_file</code></a></li>
+ <li><a href="#init"><code>gsapi_init_with_args</code></a></li>
+ <li><a href="#exit"><code>gsapi_exit</code></a></li>
+ <li><a href="#set_param"><code>gsapi_set_param</code></a></li>
+ <li><a href="#get_param"><code>gsapi_get_param</code></a></li>
+ <li><a href="#enumerate_params"><code>gsapi_enumerate_params</code></a></li>
+ <li><a href="#add_control_path"><code>gsapi_add_control_path</code></a></li>
+ <li><a href="#remove_control_path"><code>gsapi_remove_control_path</code></a></li>
+ <li><a href="#purge_control_paths"><code>gsapi_purge_control_paths</code></a></li>
+ <li><a href="#activate_path_control"><code>gsapi_activate_path_control</code></a></li>
+ <li><a href="#is_path_control_active"><code>gsapi_is_path_control_active</code></a></li>
+ <li><a href="#add_fs"><code>gsapi_add_fs</code></a></li>
+ <li><a href="#remove_fs"><code>gsapi_remove_fs</code></a></li>
+ <li><a href="#return_codes">Return codes</a></li>
+ <li><a href="#gsapi_fs_t">gsapi_fs_t</a></li>
+ <li><a href="#callout">Callouts</a></li>
+ </ul>
+ </li>
+ <li><a href="#Example_usage">Example usage</a></li>
+ <li><a href="#stdio">Standard input and output</a></li>
+ <li><a href="#display">Display device</a></li>
</ul>
<!-- [1.2 end table of contents] =========================================== -->
@@ -407,20 +379,19 @@ Create a new instance of Ghostscript.
This instance is passed to most other gsapi functions.
The caller_handle is the default value that will be provided to callback functions.
-<b>Unless Ghostscript has been compiled with the </code>GS_THREADSAFE</code>
-define, only one instance at a time is supported.</b>
-
-<p>Historically, Ghostscript has only supported a single instance; any
-attempt to create more than one at a time would result in gsapi_new_instance
-returning an error. Experimental work has been done to lift this
-restriction; if Ghostscript is compiled with the GS_THREADSAFE define
-then multiple concurrent instances are permitted.</p>
+<b>On some platforms (those that do not support threading), only one
+instance of Ghostscript is supported at a time; any attempt to create
+more than one at a time would result in gsapi_new_instance
+returning an error.</p>
<p>While the core Ghostscript devices are believed to be thread safe
-now, certain devices are known not to be (particularly the contrib
-devices). The makefiles currently make no attempt to exclude these
-from builds. If you enable GS_THREADSAFE then you should check to ensure
-that you do not rely on such devices (check for global variable use).</p>
+now, a handful of devices are known not to be (at least the x11 devices,
+uniprint, and the open printing devices). A new mechanism has been
+implemented that allows devices to check for concurrent use and to
+refuse to start up. The devices shipped with Ghostscript known to use
+global variables have had these calls added to them. Any authors of
+non-standard Ghostscript devices that use global variables should
+consider adding the same calls to their own code.</p>
<p>
The first parameter, is a pointer to an opaque pointer (&quot;<code>void **</code>&quot;).
The opaque pointer (&quot;<code>void *</code>&quot;) must be initialised to <code>NULL</code> before
@@ -1101,7 +1072,7 @@ same directory as the example source.</p>
<h3><a name="Example_1"></a>Example 1</h3>
<pre>
-/* Example of using GS DLL as a ps2pdf converter. */
+/* Example of using GS DLL as a ps2pdf converter. */
#if defined(_WIN32) &amp;&amp; !defined(_Windows)
# define _Windows
@@ -1758,7 +1729,7 @@ functions in <a href="../psi/iapi.h"><code>iapi.h</code></a>.</p></p>
<!-- [3.0 begin visible trailer] =========================================== -->
<hr>
<p>
-<small>Copyright &copy; 2000-2021 Artifex Software, Inc. All rights reserved.</small></p>
+<small>Copyright &copy; 2000-2022 Artifex Software, Inc. All rights reserved.</small></p>
<p>
This software is provided AS-IS with no warranty, either express or
@@ -1771,40 +1742,15 @@ or contact Artifex Software, Inc., 1305 Grant Avenue - Suite 200,
Novato, CA 94945, U.S.A., +1(415)492-9861, for further information.</p>
<p>
-<small>Ghostscript version 9.55.0, 27 September 2021
+<small>Ghostscript version 9.56.0, 29 March 2022
<!-- [3.0 end visible trailer] ============================================= -->
<!--FINISH EDITING HERE-->
-
- </div>
- </div>
- </div>
-
- <div class="footer">
- <div class="row">
- <div class="col-7 footleft">
- <ul>
- <li><a href="https://artifex.com/contact-us/" target="blank">CONTACT US</a></li>
- <li><a href="https://artifex.com/about-us/" target="blank">ABOUT</a></li>
- <li><a href="https://ghostscript.com/security.html">SECURITY</a></li>
- </ul>
- </div>
- <div class="col-1 footcenter">
- <ul>
- <li><a href="https://artifex.com/support/" target="blank">SUPPORT</a></li>
- <li><a href="https://artifex.com/blog/artifex/" target="blank">BLOG</a></li>
- <li><a href="https://artifex.com/privacy-policy/" target="blank">PRIVACY</a></li>
- </ul>
- </div>
- <div class="col-ft-3 footright"><img src="images/Artifex_logo.png" width="194" height="40" alt=""/> <br>
- © Copyright 2019-2021 Artifex Software, Inc. <br>
- All rights reserved.
- </div>
- </div>
- </div>
-
- <script src="http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>
- <script src="index.js"></script>
+ </div><!-- close inner -->
+ </div><!-- close outer -->
+ </article>
+ </main>
+ <script src="site.js"></script>
</body>
</html>
diff --git a/doc/C-style.htm b/doc/C-style.htm
index 7d90c34d..a7e9d1ef 100644
--- a/doc/C-style.htm
+++ b/doc/C-style.htm
@@ -1,113 +1,93 @@
<!doctype html>
-<html>
+<html lang="en">
<head>
-<meta charset="UTF-8">
-<meta name="viewport" content="width=device-width, initial-scale=1.0">
-<link href="https://fonts.googleapis.com/css?family=Source+Sans+Pro" rel="stylesheet">
-<link rel="shortcut icon" type="image/png" href="../../images/favicon.png">
-<title>Ghostscript C Coding Guidelines</title>
- <!-- Originally: c-style.txt -->
-<link href="style.css" rel="stylesheet" type="text/css">
-<link href="gs-style.css" rel="stylesheet" type="text/css">
+ <meta http-equiv="content-type" content="text/html; charset=utf-8">
+ <meta name="viewport" content="user-scalable=yes, initial-scale=1, width=device-width">
+ <link href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:200,200i,300,300i,400,400i,600,600i,700,700i,900,900i" rel="stylesheet">
+ <link rel="shortcut icon" href="images/favicon.svg">
+ <title>Ghostscript C Coding Guidelines</title>
+ <link href="default.css" rel="stylesheet" type="text/css">
</head>
<body>
+ <header><div class="title"><a href="index.html"><h1 aria-label="title">Ghostscript documentation</h1><h2 aria-label="version"></h2></a></div><a href="Search.htm" aria-label="Search" id="searchSite"><div class="search"></div></a></header>
+ <main>
- <div class="header">
- <div class="row">
- <div class="col-lt-6 logo"><a href="https://www.ghostscript.com/"><img src="images/ghostscript_logo.png" width="108" height="119" alt=""></a></div>
- <div class="col-6"><div class="row"><div class="artifexlogo"><a href="https://artifex.com" target="_blank"><img src="images/Artifex_logo.png" width="194" height="40" alt=""></a></div>
- <div class="col-12"><div class="button button1"><a href="https://artifex.com/contact-us/" title="Contact Us" target="_blank">Contact Us</a></div>
- <div class="button button2 hidden-xs"><a href="https://www.ghostscript.com/download.html" title="Download">Download</a></div></div></div>
- </div>
- </div>
- </div>
-
- <div class="banner">
- <div class="row">
- <div class="col-12">Ghostscript C Coding Guidelines</div>
- </div>
- </div>
-
- <div class="main">
- <div class="row">
- <div id="sidebar">
- <div class="sidebar-item"></div>
- <div class="col-2 leftnav">
-<ul>
- <li><a href="https://www.ghostscript.com/">Home</a></li>
- <li><a href="https://www.ghostscript.com/license.html">Licensing</a></li>
- <li><a href="https://www.ghostscript.com/releases.html">Releases</a></li>
- <li><a href="https://www.ghostscript.com/documentation.html" title="Documentation">Documentation</a></li>
- <li><a href="https://www.ghostscript.com/download.html" title="Download">Download</a></li>
- <li><a href="https://www.ghostscript.com/performance.html" title="Performance">Performance</a></li>
- <li><a href="http://jbig2dec.com/" title="jbig2dec">jbig2dec</a></li>
- <li><a href="http://git.ghostscript.com/?p=ghostpdl.git;a=summary">Source</a></li>
- <li><a href="http://bugs.ghostscript.com/">Bugs</a></li>
- <li><a href="https://www.ghostscript.com/faq.html" title="FAQ">FAQ</a></li>
- </ul>
- </div>
- </div>
- <div class="col-10 page">
+ <article>
+
+ <div class="outer">
+ <div class="inner">
<!--START EDITING HERE-->
-<h2>Table of contents</h2>
+<h1>C Style</h1>
-<blockquote><ul>
-<li><a href="#Introduction">Introduction</a></li>
-<li><a href="#C_language">C language do's and don'ts</a></li>
-<ul>
-<li>Preprocessor:
- <a href="#Conditionals">Conditionals</a>,
- <a href="#Macros">Macros</a>,
- <a href="#Preprocessor_other">Other</a>
-<li><a href="#Lexical_elements">Lexical elements</a></li>
-<li><a href="#Scoping">Scoping</a></li>
-<li>Data types:</li>
- <a href="#Scalars">Scalars</a>,
- <a href="#Arrays">Arrays</a>,
- <a href="#Typedefs">Typedefs</a>,
- <a href="#Structures">Structures</a>,
- <a href="#Unions">Unions</a></li>
-<li><a href="#Expressions">Expressions</a></li>
-<li><a href="#Statements">Statements</a></li>
-<li><a href="#Procedures">Procedures</a> (prototypes and definitions)</li>
-<li><a href="#Standard_library">Standard library</a></li>
-</ul>
-<li><a href="#Language_extensions">Language extensions</a></li>
-<li><a href="#Stylistic_conventions">Stylistic conventions</a></li>
-<ul>
-<li>Formatting:
- <a href="#Indentation">Indentation</a>,
- <a href="#Spaces">Spaces</a>,
- <a href="#Parentheses">Parentheses</a></li>
-<li><a href="#Preprocessor_style">Preprocessor</a></li>
-<li><a href="#Naming">Naming</a></li>
-<li><a href="#Types">Types</a></li>
-<li><a href="#Procedures_style">Procedures</a>,</li>
-<li>Miscellany:
- <a href="#Local_variables">Local variables</a>,
- <a href="#Compiler_warnings">Compiler warnings</a></li>
-</ul>
-<li><a href="#File_structuring">File structuring and naming</a></li>
-<ul>
-<li><a href="#All_files">All files</a></li>
-<li><a href="#Makefiles">Makefiles</a></li>
-<li><a href="#General_C_code">General C Code</a></li>
-<li><a href="#Headers">Headers (<code>.h</code> files)</a></li>
-<li><a href="#Source">Source (<code>.c</code> files)</a></li>
-</ul>
-<li><a href="#Conventions">Ghostscript conventions</a></li>
-<ul>
-<li><a href="#Specific_names">Specific names</a>:
- <a href="#code"><code>code</code></a>,
- <a href="#status"><code>status</code></a></li>
-<li><a href="#Structure_type_descriptors">Structure type descriptors</a></li>
-<li><a href="#Objects">"Objects"</a></li>
-<li><a href="#Error_handling">Error handling</a></li>
+<h2><a name="toc"></a>Table of contents</h2>
+
+<ul class="toc">
+ <li><a href="#Introduction">Introduction</a></li>
+ <li><a href="#C_language">C language do's and don'ts</a></li>
+ <li>
+ <ul>
+ <li>Preprocessor:
+ <a href="#Conditionals">Conditionals</a>,
+ <a href="#Macros">Macros</a>,
+ <a href="#Preprocessor_other">Other</a></li>
+ <li><a href="#Lexical_elements">Lexical elements</a></li>
+ <li><a href="#Scoping">Scoping</a></li>
+ <li>Data types:
+ <a href="#Scalars">Scalars</a>,
+ <a href="#Arrays">Arrays</a>,
+ <a href="#Typedefs">Typedefs</a>,
+ <a href="#Structures">Structures</a>,
+ <a href="#Unions">Unions</a></li>
+ <li><a href="#Expressions">Expressions</a></li>
+ <li><a href="#Statements">Statements</a></li>
+ <li><a href="#Procedures">Procedures</a> (prototypes and definitions)</li>
+ <li><a href="#Standard_library">Standard library</a></li>
+ </ul>
+ </li>
+ <li><a href="#Language_extensions">Language extensions</a></li>
+ <li><a href="#Stylistic_conventions">Stylistic conventions</a></li>
+ <li>
+ <ul>
+ <li>Formatting:
+ <a href="#Indentation">Indentation</a>,
+ <a href="#Spaces">Spaces</a>,
+ <a href="#Parentheses">Parentheses</a></li>
+ <li><a href="#Preprocessor_style">Preprocessor</a></li>
+ <li><a href="#Naming">Naming</a></li>
+ <li><a href="#Types">Types</a></li>
+ <li><a href="#Procedures_style">Procedures</a>,</li>
+ <li>Miscellany:
+ <a href="#Local_variables">Local variables</a>,
+ <a href="#Compiler_warnings">Compiler warnings</a></li>
+ </ul>
+ </li>
+ <li><a href="#File_structuring">File structuring and naming</a></li>
+ <li>
+ <ul>
+ <li><a href="#All_files">All files</a></li>
+ <li><a href="#Makefiles">Makefiles</a></li>
+ <li><a href="#General_C_code">General C Code</a></li>
+ <li><a href="#Headers">Headers (<code>.h</code> files)</a></li>
+ <li><a href="#Source">Source (<code>.c</code> files)</a></li>
+ </ul>
+ </li>
+ <li><a href="#Conventions">Ghostscript conventions</a></li>
+ <li>
+ <ul>
+ <li><a href="#Specific_names">Specific names</a>:
+ <a href="#code"><code>code</code></a>,
+ <a href="#status"><code>status</code></a></li>
+ <li><a href="#Structure_type_descriptors">Structure type descriptors</a></li>
+ <li><a href="#Objects">"Objects"</a></li>
+ <li><a href="#Error_handling">Error handling</a></li>
+ </ul>
+ </li>
</ul>
-</ul></blockquote>
+
+
<!-- [1.2 end table of contents] =========================================== -->
@@ -204,7 +184,7 @@ some compilers do it the other way.)</li>
compilers erroneously try to expand them.</li>
<li>Don't use macros to define shorthands for casted pointers. For
-instance, avoid</li>
+instance, avoid
<blockquote><code>
#define fdev ((gx_device_fubar *)dev)
@@ -220,6 +200,7 @@ gx_device_fubar * const fdev = (gx_device_fubar *)dev;
<p>
The use of <code>const</code> alerts the reader that this is effectively
a synonym.</p>
+</li>
<li>If a macro generates anything larger than a single expression (that is,
one or more statements), surround it with <code>BEGIN</code> and
@@ -368,7 +349,7 @@ Restrictions:</p>
<ul>
-<li>Don't use <code>typedef</code> for function types, such as</li>
+<li>Don't use <code>typedef</code> for function types, such as:
<blockquote>
<code>typedef int proc_xyz_t(double, int *);</code>
@@ -386,7 +367,7 @@ typedef PROC_XYZ((*proc_xyz_ptr_t)); /* define a type for procedure ptrs */<br>
<br>
proc_xyz_ptr_t pp; /* pointer to procedure */</code>
</blockquote>
-
+</li>
<li>Don't redefine <code>typedef</code>'ed names, even with the same
definition. Some compilers complain about this, and the standard doesn't
allow it.</li>
@@ -403,14 +384,14 @@ Restrictions:</p>
<li>Don't use anonymous structures if you can possibly avoid it, except
occasionally as components of other structures. Ideally, use the
<code>struct</code> keyword only for declaring named structure types,
-like this:</li>
+like this:
<blockquote>
<code>typedef struct xxx_s {</code><br>
&nbsp;&nbsp;&nbsp;... members ...<br>
<code>} xxx_t;</code>
</blockquote>
-
+</li>
<li>Use <code>struct</code> only when declaring structure types, never
for referring to them (e.g., never declare a variable as type
<code>struct&nbsp;xxx_s&nbsp;*</code>).</li>
@@ -520,7 +501,7 @@ the same file; if the procedure is global, the prototype should be in a
header file.</li>
<li>If a procedure parameter is itself a procedure, do list its parameter
-types rather than just using <code>()</code>. For example,</li>
+types rather than just using <code>()</code>. For example:
<blockquote><code>
int foo(int (*callback)(int, int));
@@ -532,7 +513,7 @@ rather than just</p>
<blockquote><code>
int foo(int (*callback)());
</code></blockquote>
-
+</li>
<li>Don't use the <code>P</code>* macros in new code. (See the
Procedures section of <a href="#Language_extensions">Language extensions</a>
below for more information.)</li>
@@ -622,12 +603,12 @@ language, such as Java, <code>bool</code> is an enumerated type requiring
an explicit cast to or from <code>int</code>; however, because C's
conditionals are defined as producing <code>int</code> values, we can't
even define <code>bool</code> as a C <code>enum</code> without
-provoking compiler warnings.</dd>
-
+provoking compiler warnings.
<p>
Even though <code>bool</code> is a synonym for <code>int</code>, treat
them as conceptually different types:</p>
+
<ul>
<li>Initialize or set <code>bool</code> variables to <code>true</code>
or <code>false</code>, not 0 or 1.</li>
@@ -638,18 +619,18 @@ and <code>||</code> only with Booleans. Don't use the idiom
<li>Use an explicit <code>(int)</code> cast to convert a Boolean to an
integer.</li>
</ul>
-
+</dd>
<dt><code>byte, ushort, uint, ulong</code></dt>
<dd>These types are simply shorthands for <code>unsigned char, short, int,
-long</code>.</dd>
+long</code>.
<p>
In addition, the use of <code>byte *</code> indicates a
Ghostscript-style string, with explicit length given separately, as
opposed to a null terminated C-style string, which is <code>char
*</code>.</p>
-
+</dd>
<dt><code>bits8, bits16, bits32</code></dt>
<dd>These are unsigned integer types of the given width. Use them wherever
@@ -843,27 +824,27 @@ Parentheses are important in only a few places:</p>
<ul>
<li>Around the inner subexpressions in expressions that mix
<code>&amp;&amp;</code> and <code>||</code>, even if they are not
-required by precedence, for example</li>
+required by precedence, for example:
<blockquote><code>
(xx &amp;&amp; yy) || zz
</code></blockquote>
-
+</li>
<li>Similarly around inner subexpressions in expressions that mix
<code>&amp;</code>, <code>|</code>, or shifts, especially if mixing
-these with other operators, for instance</li>
+these with other operators, for instance:
<blockquote><code>
(x &lt;&lt; 3) | (y &gt;&gt; 5)
</code></blockquote>
-
+</li>
<li>In macro definitions around every use of an argument that logically
-could be an expression, for example</li>
+could be an expression, for example:
<blockquote><code>
((x) * (x) + (y) * (y))
</code></blockquote>
-
+</li>
</ul>
<p>
@@ -874,7 +855,7 @@ For stylistic consistency with the existing Ghostscript code, put
parentheses around conditional expressions even if they aren't
syntactically required, unless you really dislike doing this. Note that
the parentheses should go around the entire expression, not the condition.
-For instance, instead of</p>
+For instance, instead of:</p>
<blockquote><code>
hpgl_add_point_to_path(pgls, arccoord_x, arccoord_y,<br>
@@ -882,7 +863,7 @@ hpgl_add_point_to_path(pgls, arccoord_x, arccoord_y,<br>
</code></blockquote>
<p>
-use</p>
+use:</p>
<blockquote><code>
hpgl_add_point_to_path(pgls, arccoord_x, arccoord_y,<br>
@@ -1153,7 +1134,7 @@ Every code file should start with comments containing</p>
<ol>
<li>a copyright notice,</li>
-<li>the name of the file in the form of an RCS Id:</li>
+<li>the name of the file in the form of an RCS Id:
<blockquote><code>
/* &#36;Id: filename.ext &#36;*/
@@ -1161,7 +1142,7 @@ Every code file should start with comments containing</p>
<p>
(using the comment convention appropriate to the language of the file), and</p>
-
+</li>
<li>a summary, no more than one line, of what the file contains.</li>
</ol>
@@ -1596,7 +1577,7 @@ to PostScript error conditions.</p>
<hr>
<p>
-<small>Copyright &copy; 2000-2021 Artifex Software, Inc. All rights reserved.</small></p>
+<small>Copyright &copy; 2000-2022 Artifex Software, Inc. All rights reserved.</small></p>
<p>
This software is provided AS-IS with no warranty, either express or
@@ -1609,40 +1590,15 @@ or contact Artifex Software, Inc., 1305 Grant Avenue - Suite 200,
Novato, CA 94945, U.S.A., +1(415)492-9861, for further information.</p>
<p>
-<small>Ghostscript version 9.55.0, 27 September 2021
+<small>Ghostscript version 9.56.0, 29 March 2022
<!-- [3.0 end visible trailer] ============================================= -->
<!--FINISH EDITING HERE-->
-
- </div>
- </div>
- </div>
-
- <div class="footer">
- <div class="row">
- <div class="col-7 footleft">
- <ul>
- <li><a href="https://artifex.com/contact-us/" target="blank">CONTACT US</a></li>
- <li><a href="https://artifex.com/about-us/" target="blank">ABOUT</a></li>
- <li><a href="https://ghostscript.com/security.html">SECURITY</a></li>
- </ul>
- </div>
- <div class="col-1 footcenter">
- <ul>
- <li><a href="https://artifex.com/support/" target="blank">SUPPORT</a></li>
- <li><a href="https://artifex.com/blog/artifex/" target="blank">BLOG</a></li>
- <li><a href="https://artifex.com/privacy-policy/" target="blank">PRIVACY</a></li>
- </ul>
- </div>
- <div class="col-ft-3 footright"><img src="images/Artifex_logo.png" width="194" height="40" alt=""/> <br>
- © Copyright 2019-2021 Artifex Software, Inc. <br>
- All rights reserved.
- </div>
- </div>
- </div>
-
- <script src="http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>
- <script src="index.js"></script>
+ </div><!-- close inner -->
+ </div><!-- close outer -->
+ </article>
+ </main>
+ <script src="site.js"></script>
</body>
</html>
diff --git a/doc/DLL.htm b/doc/DLL.htm
index 878fce4b..5f9c41c9 100644
--- a/doc/DLL.htm
+++ b/doc/DLL.htm
@@ -1,85 +1,58 @@
<!doctype html>
-<html>
+<html lang="en">
<head>
-<meta charset="UTF-8">
-<meta name="viewport" content="width=device-width, initial-scale=1.0">
-<link href="https://fonts.googleapis.com/css?family=Source+Sans+Pro" rel="stylesheet">
-<link rel="shortcut icon" type="image/png" href="../../images/favicon.png">
-<title>How to Use the Ghostscript Dynamic Link Library (DLL)</title>
- <!-- Originally: dll.txt -->
-<link href="style.css" rel="stylesheet" type="text/css">
-<link href="gs-style.css" rel="stylesheet" type="text/css">
+ <meta http-equiv="content-type" content="text/html; charset=utf-8">
+ <meta name="viewport" content="user-scalable=yes, initial-scale=1, width=device-width">
+ <link href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:200,200i,300,300i,400,400i,600,600i,700,700i,900,900i" rel="stylesheet">
+ <link rel="shortcut icon" href="images/favicon.svg">
+ <title>How to Use the Ghostscript Dynamic Link Library (DLL)</title>
+ <link href="default.css" rel="stylesheet" type="text/css">
</head>
<body>
+ <header><div class="title"><a href="index.html"><h1 aria-label="title">Ghostscript documentation</h1><h2 aria-label="version"></h2></a></div><a href="Search.htm" aria-label="Search" id="searchSite"><div class="search"></div></a></header>
+ <main>
+ <article>
+ <div class="outer">
- <div class="header">
- <div class="row">
- <div class="col-lt-6 logo"><a href="https://www.ghostscript.com/"><img src="images/ghostscript_logo.png" width="108" height="119" alt=""></a></div>
- <div class="col-6"><div class="row"><div class="artifexlogo"><a href="https://artifex.com" target="_blank"><img src="images/Artifex_logo.png" width="194" height="40" alt=""></a></div>
- <div class="col-12"><div class="button button1"><a href="https://artifex.com/contact-us/" title="Contact Us" target="_blank">Contact Us</a></div>
- <div class="button button2 hidden-xs"><a href="https://www.ghostscript.com/download.html" title="Download">Download</a></div></div></div>
- </div>
- </div>
- </div>
-
- <div class="banner">
- <div class="row">
- <div class="col-12">How to Use the Ghostscript Dynamic Link Library (DLL)</div>
- </div>
- </div>
-
- <div class="main">
- <div class="row">
- <div id="sidebar">
- <div class="sidebar-item"></div>
- <div class="col-2 leftnav">
-<ul>
- <li><a href="https://www.ghostscript.com/">Home</a></li>
- <li><a href="https://www.ghostscript.com/license.html">Licensing</a></li>
- <li><a href="https://www.ghostscript.com/releases.html">Releases</a></li>
- <li><a href="https://www.ghostscript.com/documentation.html" title="Documentation">Documentation</a></li>
- <li><a href="https://www.ghostscript.com/download.html" title="Download">Download</a></li>
- <li><a href="https://www.ghostscript.com/performance.html" title="Performance">Performance</a></li>
- <li><a href="http://jbig2dec.com/" title="jbig2dec">jbig2dec</a></li>
- <li><a href="http://git.ghostscript.com/?p=ghostpdl.git;a=summary">Source</a></li>
- <li><a href="http://bugs.ghostscript.com/">Bugs</a></li>
- <li><a href="https://www.ghostscript.com/faq.html" title="FAQ">FAQ</a></li>
- </ul>
- </div>
- </div>
- <div class="col-10 page">
-
+ <div class="inner">
<!--START EDITING HERE-->
-<h2>Table of contents</h2>
+<h1>How to Use the Ghostscript Dynamic Link Library (DLL)</h1>
-<ul>
-<li><a href="#DLL">What is the Ghostscript DLL?</a></li>
-<li><a href="#Common_functions">Platform-independent DLL functions</a></li>
-<ul>
-<li><a href="#revision"><code>gsdll_revision()</code></a></li>
-<li><a href="#init"><code>gsdll_init()</code></a></li>
-<li><a href="#execute_begin"><code>gsdll_execute_begin()</code></a></li>
-<li><a href="#execute_cont"><code>gsdll_execute_cont()</code></a></li>
-<li><a href="#execute_end"><code>gsdll_execute_end()</code></a></li>
-<li><a href="#exit"><code>gsdll_exit()</code></a></li>
-<li><a href="#lock_device"><code>gsdll_lock_device()</code></a></li>
-</ul>
-<li><a href="#Callback">Callback function</a></li>
-<li><a href="#OS2_device">Ghostscript DLL device for OS/2</a></li>
-<ul>
-<li><a href="#OS2_bmp"><code>gsdll_get_bitmap()</code></a></li>
-<li><a href="#OS2_example">Example DLL usage for OS/2</a></li>
-</ul>
-<li><a href="#Win_device">Ghostscript DLL device for MS Windows</a></li>
-<ul>
-<li><a href="#Win_copydib"><code>gsdll_copy_dib()</code></a></li>
-<li><a href="#Win_copypalette"><code>gsdll_copy_palette()</code></a></li>
-<li><a href="#Win_draw"><code>gsdll_draw()</code></a></li>
-<li><a href="#Win_get_row"><code>gsdll_get_bitmap_row()</code></a></li>
-</ul>
-<li><a href="#Win16">Ghostscript DLL Device for 16-bit MS Windows</a></li>
+<h2><a name="toc"></a>Table of contents</h2>
+<ul class="toc">
+ <li><a href="#DLL">What is the Ghostscript DLL?</a></li>
+ <li><a href="#Common_functions">Platform-independent DLL functions</a></li>
+ <li>
+ <ul>
+ <li><a href="#revision"><code>gsdll_revision()</code></a></li>
+ <li><a href="#init"><code>gsdll_init()</code></a></li>
+ <li><a href="#execute_begin"><code>gsdll_execute_begin()</code></a></li>
+ <li><a href="#execute_cont"><code>gsdll_execute_cont()</code></a></li>
+ <li><a href="#execute_end"><code>gsdll_execute_end()</code></a></li>
+ <li><a href="#exit"><code>gsdll_exit()</code></a></li>
+ <li><a href="#lock_device"><code>gsdll_lock_device()</code></a></li>
+ </ul>
+ </li>
+ <li><a href="#Callback">Callback function</a></li>
+ <li><a href="#OS2_device">Ghostscript DLL device for OS/2</a></li>
+ <li>
+ <ul>
+ <li><a href="#OS2_bmp"><code>gsdll_get_bitmap()</code></a></li>
+ <li><a href="#OS2_example">Example DLL usage for OS/2</a></li>
+ </ul>
+ </li>
+ <li><a href="#Win_device">Ghostscript DLL device for MS Windows</a></li>
+ <li>
+ <ul>
+ <li><a href="#Win_copydib"><code>gsdll_copy_dib()</code></a></li>
+ <li><a href="#Win_copypalette"><code>gsdll_copy_palette()</code></a></li>
+ <li><a href="#Win_draw"><code>gsdll_draw()</code></a></li>
+ <li><a href="#Win_get_row"><code>gsdll_get_bitmap_row()</code></a></li>
+ </ul>
+ </li>
+ <li><a href="#Win16">Ghostscript DLL Device for 16-bit MS Windows</a></li>
</ul>
<!-- [1.2 end table of contents] =========================================== -->
@@ -154,7 +127,7 @@ The seven functions provided by the DLL are
<li><code>int GSDLLAPI <a href="#execute_cont">gsdll_execute_cont</a>(const char *str, int len);</code></li>
<li><code>int GSDLLAPI <a href="#execute_end">gsdll_execute_end</a>(void);</code></li>
<li><code>int GSDLLAPI <a href="#exit">gsdll_exit</a>(void);</code></li>
-<li><code>int GSDLLAPI <a href="#lock_device">gsdll_lock_device</a>(unsigned char *device, int flag);</code></li>
+<li><code>int GSDLLAPI <a href="#lock_device">gsdll_lock_device</a>(unsigned char *device, int flag);</code>
<p>
where <code>GSDLLAPI</code> is defined under OS/2 as
@@ -169,6 +142,7 @@ and under MS Windows as
<blockquote><code>
#define GSDLLAPI CALLBACK _export
</code></blockquote>
+</li>
</ul>
<h3><a name="revision"></a><code>gsdll_revision()</code></h3>
@@ -263,26 +237,26 @@ code = gsdll_execute_cont(command, strlen(command));
<a name="cont_returns"></a>
<table>
<tr>
- <th colspan="3">Return codes from gsdll_execute_cont()</th>
+ <th colspan="2">Return codes from gsdll_execute_cont()</th>
</tr>
<tr>
<th align="left">Code</th>
- <th>&nbsp;&nbsp;&nbsp;&nbsp;</th>
+
<th align="left">Status</th>
</tr>
<tr>
<td align="left">0</td>
- <td>&nbsp;</td>
+
<td>No errors</td>
</tr>
<tr>
<td align="left">&lt; 0</td>
- <td>&nbsp;</td>
+
<td>Error</td>
</tr>
<tr>
<td align="left">&lt;= -100</td>
- <td>&nbsp;</td>
+
<td>"<code>quit</code>" has been executed, or fatal error.
<code>gsdll_exit()</code> must then be called: do not call
<code>gsdll_execute_end()</code>.</td>
@@ -351,16 +325,16 @@ locking.
<table>
<tr>
- <th colspan="3">Locking and unlocking devices</th>
+ <th colspan="2">Locking and unlocking devices</th>
</tr>
<tr>
<td>To lock a device</td>
- <td>&nbsp;&nbsp;&nbsp;&nbsp;</td>
+
<td><code>gsdll_lock_device(device, 1)</code>;</td>
</tr>
<tr>
<td>To unlock a device</td>
- <td>&nbsp;</td>
+
<td><code>gsdll_lock_device(device, 0)</code>;</td>
</tr>
</table>
@@ -447,67 +421,67 @@ char *p;
<table>
<tr>
- <th colspan="5">Messages used by callback</th>
+ <th colspan="3">Messages used by callback</th>
</tr>
<tr>
<th align="left">Symbol</th>
- <th>&nbsp;&nbsp;</th>
- <th align="left"></th>
- <th>&nbsp;&nbsp;</th>
+
+ <th align="left">Value</th>
+
<th align="left">Use</th>
</tr>
<tr>
<td><code>GSDLL_STDIN</code></td>
- <td>&nbsp;</td>
+
<td>1</td>
- <td>&nbsp;</td>
+
<td>get <code>count</code> characters to <code>str</code> from stdin, return number of characters read</td>
</tr>
<tr>
<td><code>GSDLL_STDOUT</code></td>
- <td>&nbsp;</td>
+
<td>2</td>
- <td>&nbsp;</td>
+
<td>put <code>count</code> characters from <code>str</code>
to stdout, return number of characters written</td>
</tr>
<tr>
<td><code>GSDLL_DEVICE</code></td>
- <td>&nbsp;</td>
+
<td>3</td>
- <td>&nbsp;</td>
+
<td>device <code>str</code> has been opened if
<code>count</code>&nbsp;=&nbsp;1, closed if
<code>count</code>&nbsp;=&nbsp;0</td>
</tr>
<tr>
<td><code>GSDLL_SYNC</code></td>
- <td>&nbsp;</td>
+
<td>4</td>
- <td>&nbsp;</td>
+
<td>sync_output for device <code>str</code></td>
</tr>
<tr>
<td><code>GSDLL_PAGE</code></td>
- <td>&nbsp;</td>
+
<td>5</td>
- <td>&nbsp;</td>
+
<td>output_page for device <code>str</code></td>
</tr>
<tr>
<td><code>GSDLL_SIZE</code></td>
- <td>&nbsp;</td>
+
<td>6</td>
- <td>&nbsp;</td>
+
<td>resize for device <code>str</code>:
LOWORD(<code>count</code>) is new <code>xsize</code>,
HIWORD(<code>count</code>) is new <code>ysize</code></td>
</tr>
<tr>
<td><code>GSDLL_POLL</code></td>
- <td>&nbsp;</td>
+
<td>7</td>
- <td>&nbsp;</td>
+
<td>Called from <code>gp_check_interrupt()</code><br>
Can be used by the caller to poll the message queue.
Normally returns 0. To abort
@@ -753,7 +727,7 @@ if (!code) {
<hr>
<p>
-<small>Copyright &copy; 2000-2021 Artifex Software, Inc. All rights reserved.</small>
+<small>Copyright &copy; 2000-2022 Artifex Software, Inc. All rights reserved.</small>
<p>
This software is provided AS-IS with no warranty, either express or
@@ -766,40 +740,15 @@ or contact Artifex Software, Inc., 1305 Grant Avenue - Suite 200,
Novato, CA 94945, U.S.A., +1(415)492-9861, for further information.
<p>
-<small>Ghostscript version 9.55.0, 27 September 2021
+<small>Ghostscript version 9.56.0, 29 March 2022
<!-- [3.0 end visible trailer] ============================================= -->
<!--FINISH EDITING HERE-->
-
- </div>
- </div>
- </div>
-
- <div class="footer">
- <div class="row">
- <div class="col-7 footleft">
- <ul>
- <li><a href="https://artifex.com/contact-us/" target="blank">CONTACT US</a></li>
- <li><a href="https://artifex.com/about-us/" target="blank">ABOUT</a></li>
- <li><a href="https://ghostscript.com/security.html">SECURITY</a></li>
- </ul>
- </div>
- <div class="col-1 footcenter">
- <ul>
- <li><a href="https://artifex.com/support/" target="blank">SUPPORT</a></li>
- <li><a href="https://artifex.com/blog/artifex/" target="blank">BLOG</a></li>
- <li><a href="https://artifex.com/privacy-policy/" target="blank">PRIVACY</a></li>
- </ul>
- </div>
- <div class="col-ft-3 footright"><img src="images/Artifex_logo.png" width="194" height="40" alt=""/> <br>
- © Copyright 2019-2021 Artifex Software, Inc. <br>
- All rights reserved.
- </div>
- </div>
- </div>
-
- <script src="http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>
- <script src="index.js"></script>
+ </div><!-- close inner -->
+ </div><!-- close outer -->
+ </article>
+ </main>
+ <script src="site.js"></script>
</body>
</html>
diff --git a/doc/Deprecated.htm b/doc/Deprecated.htm
index 721406e3..2f4c79a1 100644
--- a/doc/Deprecated.htm
+++ b/doc/Deprecated.htm
@@ -1,151 +1,150 @@
<!doctype html>
-<html>
+<html lang="en">
<head>
-<meta charset="UTF-8">
-<meta name="viewport" content="width=device-width, initial-scale=1.0">
-<link href="https://fonts.googleapis.com/css?family=Source+Sans+Pro" rel="stylesheet">
-<link rel="shortcut icon" type="image/png" href="../../images/favicon.png">
-<title>Deprecated Ghostscript Features</title>
-<link href="style.css" rel="stylesheet" type="text/css">
-<link href="gs-style.css" rel="stylesheet" type="text/css">
+ <meta http-equiv="content-type" content="text/html; charset=utf-8">
+ <meta name="viewport" content="user-scalable=yes, initial-scale=1, width=device-width">
+ <link href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:200,200i,300,300i,400,400i,600,600i,700,700i,900,900i" rel="stylesheet">
+ <link rel="shortcut icon" href="images/favicon.svg">
+ <title>Deprecated Ghostscript Features</title>
+ <link href="default.css" rel="stylesheet" type="text/css">
</head>
<body>
+ <header><div class="title"><a href="index.html"><h1 aria-label="title">Ghostscript documentation</h1><h2 aria-label="version"></h2></a></div><a href="Search.htm" aria-label="Search" id="searchSite"><div class="search"></div></a></header>
+ <main>
+ <article>
+ <div class="outer">
+ <div class="inner">
+<!--START EDITING HERE-->
- <div class="header">
- <div class="row">
- <div class="col-lt-6 logo"><a href="https://www.ghostscript.com/"><img src="images/ghostscript_logo.png" width="108" height="119" alt=""></a></div>
- <div class="col-6"><div class="row"><div class="artifexlogo"><a href="https://artifex.com" target="_blank"><img src="images/Artifex_logo.png" width="194" height="40" alt=""></a></div>
- <div class="col-12"><div class="button button1"><a href="https://artifex.com/contact-us/" title="Contact Us" target="_blank">Contact Us</a></div>
- <div class="button button2 hidden-xs"><a href="https://www.ghostscript.com/download.html" title="Download">Download</a></div></div></div>
- </div>
- </div>
- </div>
-
- <div class="banner">
- <div class="row">
- <div class="col-12">Deprecated Ghostscript Options and Output Devices</div>
- </div>
- </div>
-
- <div class="main">
- <div class="row">
- <div id="sidebar">
- <div class="sidebar-item"></div>
- <div class="col-2 leftnav">
-<ul>
- <li><a href="https://www.ghostscript.com/">Home</a></li>
- <li><a href="https://www.ghostscript.com/license.html">Licensing</a></li>
- <li><a href="https://www.ghostscript.com/releases.html">Releases</a></li>
- <li><a href="https://www.ghostscript.com/documentation.html" title="Documentation">Documentation</a></li>
- <li><a href="https://www.ghostscript.com/download.html" title="Download">Download</a></li>
- <li><a href="https://www.ghostscript.com/performance.html" title="Performance">Performance</a></li>
- <li><a href="http://jbig2dec.com/" title="jbig2dec">jbig2dec</a></li>
- <li><a href="http://git.ghostscript.com/?p=ghostpdl.git;a=summary">Source</a></li>
- <li><a href="http://bugs.ghostscript.com/">Bugs</a></li>
- <li><a href="https://www.ghostscript.com/faq.html" title="FAQ">FAQ</a></li>
+<h1>Deprecated Ghostscript Features</h1>
+
+<h2><a name="toc"></a>Table of contents</h2>
+
+<ul class="toc">
+ <li><a href="#Options">Deprecated Options</a></li>
+ <li><a href="#HP8_color_inkjet">H-P 8xx, 1100, and 1600 color inkjet printers</a></li>
+ <li>
+ <ul>
+ <li><a href="#HP8_gdevcd8">Drivers contained in <code>gdevcd8.c</code></a></li>
+ <li><a href="#HP8_further_documentation">Further documentation</a></li>
+ </ul>
+ </li>
+ <li><a href="#HP880_color_inkjet">H-P 812, 815, 832, 880, 882, 895, and 970 color inkjet printers</a></li>
+ <li>
+ <ul>
+ <li><a href="#HP880_gdevcd8">Drivers contained in <code>gdevcd8.c</code></a></li>
+ <li><a href="#HP880_further_documentation">Further documentation</a></li>
+ </ul>
+ </li>
+ <li><a href="#HP_color_inkjet">Other H-P color inkjet printers</a></li>
+ <li>
+ <ul>
+ <li><a href="#HP_gdevcdj">Drivers contained in <code>gdevcdj.c</code></a></li>
+ <li><a href="#HP_paper_size">Default paper size</a></li>
+ <li><a href="#HP_limits">Deskjet physical limits</a></li>
+ <li><a href="#HP_command_line">Printer properties (command-line parameters)</a></li>
+ <li>
+ <ul>
+ <li><a href="#HP_bpp">Bits per pixel</a></li>
+ <li><a href="#HP_deskjet_properties">Deskjet properties</a></li>
+ <li><a href="#HP_paintjet_properties">Paintjet XL300 / Paintjet XL properties</a></li>
+ </ul>
+ </li>
+ <li><a href="#HP_gamma">Gamma correction</a></li>
+ <li><a href="#HP_resolution_enhance">HP's resolution-enhanced mode for Inkjet printers</a></li>
+ <li><a href="#HP_tips">General tips</a></li>
+ </ul>
+ </li>
+
+ <li><a href="#BJC_8200">Canon BJC-8200 printer</a></li>
+ <li><a href="#BJC">Other Canon BubbleJet (BJC) printers</a></li>
+ <li>
+ <ul>
+ <li><a href="#BJC_history">History</a></li>
+ <li><a href="#BJC_build">Configuring and building the BJC drivers</a></li>
+ <li>
+ <ul>
+ <li><a href="#BJC_defaults">Modify values in <code>gdevbjc.h</code></a></li>
+ <li><a href="#BJC_CMYK_RGB">CMYK-to-RGB color conversion</a></li>
+ <li><a href="#BJC_vertical_centering">Vertical centering of the printable area</a></li>
+ <li><a href="#BJC_margins">Page margins</a></li>
+ <li><a href="#BJC_compile">Makefile and compilation</a></li>
+ </ul>
+ </li>
+ <li><a href="#BJC_usage">Use of the drivers</a></li>
+ <li>
+ <ul>
+ <li><a href="#BJC_options">Supported Options and Defaults</a></li>
+ <li><a href="#BJC_device_info">Device information</a></li>
+ <li><a href="#BJC_HW_margins">Hardware margins</a></li>
+ <li><a href="#BJC_PPD">PostScript printer description (PPD) files</a></li>
+ <li><a href="#BJC_PPD_custom">Customizing the PPD files</a></li>
+ </ul>
+ </li>
+
+ <li><a href="#BJC_bugs">How to report problems</a></li>
+ <li><a href="#BJC_acks">Acknowledgements</a></li>
+ </ul>
+ </li>
+
+ <li><a href="#STC_epson_stylus">Epson Stylus color printer (see also <code>uniprint</code>)</a></li>
+ <li>
+ <ul>
+ <li><a href="#STC_usage">Usage</a></li>
+ <li><a href="#STC_options">Options</a></li>
+ <li><a href="#STC_FAQ">Application note and FAQ</a></li>
+ <li>
+ <ul>
+ <li><a href="#STC_FAQ_A3">Support for A3 paper</a></li>
+ <li><a href="#STC_FAQ_margins">Margins, PageSize</a></li>
+ <li><a href="#STC_FAQ_II_IIS_1500">Stylus Color II / IIs and 1500</a></li>
+ </ul>
+ </li>
+ <li><a href="#STC_recommendations">Recommendations</a></li>
+ <li>
+ <ul>
+ <li><a href="#STC_dither_experiment">Color dithering experiments with <code>gdevstc</code> 1.21</a></li>
+ </ul>
+ </li>
+ <li><a href="#STC_color_transform">Color transformation</a></li>
+ <li><a href="#STC_CAM"><code>ColorAdjustMatrix</code></a></li>
+ <li><a href="#STC_RGBCMYK_coding">RGB / CMYK coding and transfer, and <code>BitsPerPixel</code></a></li>
+ <li><a href="#What_is_weaving">What is weaving?</a></li>
+ <li><a href="#STC_print_modes">Print mode parameters</a></li>
+ <li>
+ <ul>
+ <li><a href="#STC_unidirectional"><code>Unidirectional</code></a></li>
+ <li><a href="#STC_noweave"><code>Microweave</code>, <code>noWeave</code> and <code>OutputCode=deltarow</code></a></li>
+ <li><a href="#STC_model"><code>Model</code></a></li>
+ </ul>
+ </li>
+ <li><a href="#STC_Pitfalls">Bugs and pitfalls</a></li>
+ <li><a href="#STC_Tests">Tests</a></li>
+ <li>
+ <ul>
+ <li><a href="#STC_OutputCodes">The various OutputCodes</a></li>
+ <li><a href="#STC_printing_time">Printing time related to other options</a></li>
+ </ul>
+ </li>
+ <li><a href="#STC_acks">Acknowledgments</a></li>
+ </ul>
+ </li>
+ <li><a href="#Uniprint">uniprint, a flexible unified printer driver</a></li>
+ <li>
+ <ul>
+ <li><a href="#Uni_state">The state of this driver</a></li>
+ <li><a href="#Uni_background">Notes on <code>uniprint</code>'s background</a></li>
+ <li><a href="#Uni_make_pfile">Godzilla's guide to the creation of Unified Printer Parameter (<code>.upp</code>) files</a></li>
+ <li><a href="#Uni_all_parameters">All parameters in brief</a></li>
+ <li><a href="#Uni_honors"><code>Uniprint</code>'s Roll of Honor</a></li>
+ <li><a href="#Uni_weaving_howto"><code>Uniprint</code> weaving parameters howto</a></li>
+ <li><a href="#Uni_esc300">Extension to <code>uniprint</code> for the Epson Stylus Color 300</a></li>
</ul>
- </div>
- </div>
- <div class="col-10 page">
-
-<!--START EDITING HERE-->
+ </li>
+</ul>
-<h2>Table of contents</h2>
-<blockquote><ul>
-<li><a href="#Options">Deprecated Options</a></li>
-<li><a href="#HP8_color_inkjet">H-P 8xx, 1100, and 1600 color inkjet printers</a></li>
-<ul>
-<li><a href="#HP8_gdevcd8">Drivers contained in <code>gdevcd8.c</code></a></li>
-<li><a href="#HP8_further_documentation">Further documentation</a></li>
-</ul>
-<li><a href="#HP880_color_inkjet">H-P 812, 815, 832, 880, 882, 895, and 970 color inkjet printers</a></li>
-<ul>
-<li><a href="#HP880_gdevcd8">Drivers contained in <code>gdevcd8.c</code></a></li>
-<li><a href="#HP880_further_documentation">Further documentation</a></li>
-</ul>
-<li><a href="#HP_color_inkjet">Other H-P color inkjet printers</a></li>
-<ul>
-<li><a href="#HP_gdevcdj">Drivers contained in <code>gdevcdj.c</code></a></li>
-<li><a href="#HP_paper_size">Default paper size</a></li>
-<li><a href="#HP_limits">Deskjet physical limits</a></li>
-<li><a href="#HP_command_line">Printer properties (command-line parameters)</a></li>
-<ul>
-<li><a href="#HP_bpp">Bits per pixel</a></li>
-<li><a href="#HP_deskjet_properties">Deskjet properties</a></li>
-<li><a href="#HP_paintjet_properties">Paintjet XL300 / Paintjet XL properties</a></li>
-</ul>
-<li><a href="#HP_gamma">Gamma correction</a></li>
-<li><a href="#HP_resolution_enhance">HP's resolution-enhanced mode for Inkjet printers</a></li>
-<li><a href="#HP_tips">General tips</a></li>
-</ul>
-<li><a href="#BJC_8200">Canon BJC-8200 printer</a></li>
-<li><a href="#BJC">Other Canon BubbleJet (BJC) printers</a></li>
-<ul>
-<li><a href="#BJC_history">History</a></li>
-<li><a href="#BJC_build">Configuring and building the BJC drivers</a></li>
-<ul>
-<li><a href="#BJC_defaults">Modify values in <code>gdevbjc.h</code></a></li>
-<li><a href="#BJC_CMYK_RGB">CMYK-to-RGB color conversion</a></li>
-<li><a href="#BJC_vertical_centering">Vertical centering of the printable area</a></li>
-<li><a href="#BJC_margins">Page margins</a></li>
-<li><a href="#BJC_compile">Makefile and compilation</a></li>
-</ul>
-<li><a href="#BJC_usage">Use of the drivers</a></li>
-<ul>
-<li><a href="#BJC_options">Supported Options and Defaults</a></li>
-<li><a href="#BJC_device_info">Device information</a></li>
-<li><a href="#BJC_HW_margins">Hardware margins</a></li>
-<li><a href="#BJC_PPD">PostScript printer description (PPD) files</a></li>
-<li><a href="#BJC_PPD_custom">Customizing the PPD files</a></li>
-</ul>
-<li><a href="#BJC_bugs">How to report problems</a></li>
-<li><a href="#BJC_acks">Acknowledgements</a></li>
-</ul>
-<li><a href="#STC_epson_stylus">Epson Stylus color printer (see also <code>uniprint</code>)</a></li>
-<ul>
-<li><a href="#STC_usage">Usage</a></li>
-<li><a href="#STC_options">Options</a></li>
-<li><a href="#STC_FAQ">Application note and FAQ</a></li>
-<ul>
-<li><a href="#STC_FAQ_A3">Support for A3 paper</a></li>
-<li><a href="#STC_FAQ_margins">Margins, PageSize</a></li>
-<li><a href="#STC_FAQ_II_IIS_1500">Stylus Color II / IIs and 1500</a></li>
-</ul>
-<li><a href="#STC_recommendations">Recommendations</a></li>
-<ul>
-<li><a href="#STC_dither_experiment">Color dithering experiments with <code>gdevstc</code> 1.21</a></li>
-</ul>
-<li><a href="#STC_color_transform">Color transformation</a></li>
-<li><a href="#STC_CAM"><code>ColorAdjustMatrix</code></a></li>
-<li><a href="#STC_RGBCMYK_coding">RGB / CMYK coding and transfer, and <code>BitsPerPixel</code></a></li>
-<li><a href="#What_is_weaving">What is weaving?</a></li>
-<li><a href="#STC_print_modes">Print mode parameters</a></li>
-<ul>
-<li><a href="#STC_unidirectional"><code>Unidirectional</code></a></li>
-<li><a href="#STC_noweave"><code>Microweave</code>, <code>noWeave</code> and <code>OutputCode=deltarow</code></a></li>
-<li><a href="#STC_model"><code>Model</code></a></li>
-</ul>
-<li><a href="#STC_Pitfalls">Bugs and pitfalls</a></li>
-<li><a href="#STC_Tests">Tests</a></li>
-<ul>
-<li><a href="#STC_OutputCodes">The various OutputCodes</a></li>
-<li><a href="#STC_printing_time">Printing time related to other options</a></li>
-</ul>
-<li><a href="#STC_acks">Acknowledgments</a></li>
-</ul>
-<li><a href="#Uniprint">uniprint, a flexible unified printer driver</a></li>
-<ul>
-<li><a href="#Uni_state">The state of this driver</a></li>
-<li><a href="#Uni_background">Notes on <code>uniprint</code>'s background</a></li>
-<li><a href="#Uni_make_pfile">Godzilla's guide to the creation of Unified Printer Parameter (<code>.upp</code>) files</a></li>
-<li><a href="#Uni_all_parameters">All parameters in brief</a></li>
-<li><a href="#Uni_honors"><code>Uniprint</code>'s Roll of Honor</a></li>
-<li><a href="#Uni_weaving_howto"><code>Uniprint</code> weaving parameters howto</a></li>
-<li><a href="#Uni_esc300">Extension to <code>uniprint</code> for the Epson Stylus Color 300</a></li>
-</ul>
-</ul></blockquote>
<!-- [1.2 end table of contents] =========================================== -->
@@ -218,22 +217,26 @@ The source module <code>gdevcd8.c</code> contains four generic drivers:</p>
and hp1600 was added by Martin Gerbershagen.</p>
<blockquote>
<table>
+ <tr>
+ <th width="20%">Date</th>
+ <th width="20%">Version</th>
+ <th width="60%">Comments</th>
+</tr>
+
<tr>
<td>11.11.96</td>
- <td>&nbsp;&nbsp;&nbsp;</td>
- <td colspan="1">Version 1.0</td>
+ <td>Version 1.0</td>
+ <td></td>
</tr>
<tr>
<td>25.08.97</td>
- <td>&nbsp;&nbsp;&nbsp;</td>
- <td colspan="1">Version 1.2</td>
- <td colspan="2">Resolved all but one of the known bugs, introduced a couple of perfomance improvements. Complete new color-transfer-function handling (see gamma).</td>
+ <td>Version 1.2</td>
+ <td>Resolved all but one of the known bugs, introduced a couple of perfomance improvements. Complete new color-transfer-function handling (see gamma).</td>
</tr>
<tr>
<td>01.06.98</td>
- <td>&nbsp;&nbsp;&nbsp;</td>
- <td colspan="1">Version 1.3</td>
- <td colspan="2">Due to the most welcome contribution of Martin Gerbershagen
+ <td>Version 1.3</td>
+ <td>Due to the most welcome contribution of Martin Gerbershagen
(ger@ulm.temic.de), support for the hp670, hp690 and hp890 and
hp1600 has been added. Martin has also resolved all known bugs.<br>
Problems:Dark colors are still pale.</td>
@@ -252,88 +255,84 @@ switches to be invoked except <code>-sDEVICE=cdj850</code>,
<table>
<tr>
<td><code>-dPapertype=</code></td>
- <td>&nbsp;&nbsp;&nbsp;</td>
+
<td>0</td>
- <td>&nbsp;&nbsp;&nbsp;</td>
+
<td>plain paper [default]</td>
</tr>
<tr>
<td></td>
- <td>&nbsp;</td>
+
<td>1</td>
- <td>&nbsp;</td>
+
<td>bond paper</td>
</tr>
<tr>
<td></td>
- <td>&nbsp;</td>
+
<td>2</td>
- <td>&nbsp;</td>
+
<td>special paper</td>
</tr>
<tr>
<td></td>
- <td>&nbsp;</td>
+
<td>3</td>
- <td>&nbsp;</td>
+
<td>glossy film</td>
</tr>
<tr>
<td></td>
- <td>&nbsp;</td>
+
<td>4</td>
- <td>&nbsp;</td>
+
<td>transparency film</td>
</tr>
<tr>
<td></td>
<td>&nbsp;</td>
- <td>&nbsp;</td>
- <td>&nbsp;</td>
<td>Currently the lookup tables are unsuited for printing on
special paper or transparencies. For these please revert to the
gamma functions.</td>
</tr>
<tr>
<td><code>-dQuality=</code></td>
- <td>&nbsp;</td>
+
<td>-1</td>
- <td>&nbsp;</td>
+
<td>draft</td>
</tr>
<tr>
<td></td>
- <td>&nbsp;</td>
<td>0</td>
- <td>&nbsp;</td>
+
<td>normal [default]</td>
</tr>
<tr>
<td></td>
- <td>&nbsp;</td>
<td>1</td>
- <td>&nbsp;</td>
+
<td>presentation</td>
</tr>
<tr>
<td><code>-dRetStatus=</code></td>
- <td>&nbsp;</td>
+
<td>0</td>
- <td>&nbsp;</td>
+
<td>C-RET off</td>
</tr>
<tr>
<td></td>
- <td>&nbsp;</td>
+
<td>1</td>
- <td>&nbsp;</td>
+
<td>C-RET on [default]</td>
</tr>
<tr>
<td><code>-dMasterGamma=</code></td>
- <td>&nbsp;</td>
+
<td>3.0</td>
- <td>&nbsp;</td>
+
<td>[default = 1.0]</td>
</tr>
</table>
@@ -428,7 +427,6 @@ The source module <code>gdevcd8.c</code> contains one generic driver:</p>
<table>
<tr>
<td><code>cdj880</code></td>
- <td>&nbsp;&nbsp;&nbsp;&nbsp;</td>
<td>HP DeskJet 812, 815, 832, 880, 882, 895, and 970</td>
</tr>
</table>
@@ -442,18 +440,24 @@ internal structure, although the PCL3+ interpretation has changed.</p>
<blockquote>
<table>
+ <tr>
+ <th width="20%">Date</th>
+ <th width="20%">Version</th>
+ <th width="60%">Comments</th>
+</tr>
+
<tr>
<td>15.03.99</td>
- <td>&nbsp;&nbsp;&nbsp;</td>
+
<td>Version 1.3</td>
- <td>&nbsp;&nbsp;&nbsp;</td>
+
<td>Initial version, based on Version 1.3 of Uli Wortmann's driver.</td>
</tr>
<tr>
<td>26.02.00</td>
- <td>&nbsp;</td>
+
<td>Version 1.4beta</td>
- <td>&nbsp;</td>
+
<td>Greatly improved color handling &amp; dithering, but not yet complete enough
to use for text.</td>
</tr>
@@ -468,74 +472,71 @@ All printers are supported through the cdj880 device. Invoke with
<table>
<tr>
<td><code>-dPapertype=</code></td>
- <td>&nbsp;&nbsp;&nbsp;</td>
+
<td>0</td>
- <td>&nbsp;&nbsp;&nbsp;</td>
+
<td>plain paper [default]</td>
</tr>
<tr>
<td></td>
- <td>&nbsp;</td>
<td>1</td>
- <td>&nbsp;</td>
+
<td>bond paper</td>
</tr>
<tr>
<td></td>
- <td>&nbsp;</td>
+
<td>2</td>
- <td>&nbsp;</td>
+
<td>special paper</td>
</tr>
<tr>
<td></td>
- <td>&nbsp;</td>
+
<td>3</td>
- <td>&nbsp;</td>
+
<td>glossy film</td>
</tr>
<tr>
<td></td>
- <td>&nbsp;</td>
+
<td>4</td>
- <td>&nbsp;</td>
+
<td>transparency film</td>
</tr>
<tr>
<td></td>
<td>&nbsp;</td>
- <td>&nbsp;</td>
- <td>&nbsp;</td>
<td>Currently the lookup tables are unsuited for printing on
special paper or transparencies. For these please revert to the
gamma functions.</td>
</tr>
<tr>
<td><code>-dQuality=</code></td>
- <td>&nbsp;</td>
+
<td>-1</td>
- <td>&nbsp;</td>
+
<td>draft</td>
</tr>
<tr>
<td></td>
- <td>&nbsp;</td>
+
<td>0</td>
- <td>&nbsp;</td>
+
<td>normal [default]</td>
</tr>
<tr>
<td></td>
- <td>&nbsp;</td>
+
<td>1</td>
- <td>&nbsp;</td>
+
<td>presentation</td>
</tr>
<tr>
<td><code>-dMasterGamma=</code></td>
- <td>&nbsp;</td>
+
<td>3.0</td>
- <td>&nbsp;</td>
+
<td>[default = 1.0]</td>
</tr>
</table>
@@ -583,32 +584,26 @@ The source module <code>gdevcdj.c</code> contains six generic drivers:</p>
<table>
<tr>
<td><code>cdj500</code></td>
- <td>&nbsp;&nbsp;&nbsp;&nbsp;</td>
<td>HP DeskJet 500C and 540C</td>
</tr>
<tr>
<td><code>cdj550</code></td>
- <td>&nbsp;</td>
<td>HP DeskJet 550C, 560C, 660C, 660Cse</td>
</tr>
<tr>
<td><code>pjxl300</code></td>
- <td>&nbsp;</td>
<td>HP PaintJet XL300, DeskJet 1200C, and CopyJet</td>
</tr>
<tr>
<td><code>pjtest</code></td>
- <td>&nbsp;</td>
<td>HP PaintJet</td>
</tr>
<tr>
<td><code>pjxltest</code></td>
- <td>&nbsp;</td>
<td>HP PaintJet XL</td>
</tr>
<tr>
<td><code>declj250</code></td>
- <td>&nbsp;</td>
<td>DEC LJ250</td>
</tr>
</table>
@@ -635,12 +630,10 @@ drivers above (and <code>cDeskJet</code> is identical to
<table>
<tr>
<td><code>gs -sDEVICE=cdj500 -dBitsPerPixel=24</code></td>
- <td>&nbsp;&nbsp;&nbsp;</td>
<td>for <code>cdjcolor</code>, and</td>
</tr>
<tr>
<td><code>gs -sDEVICE=cdj500 -dBitsPerPixel=1</code></td>
- <td>&nbsp;</td>
<td>for <code>cdjmono</code></td>
</tr>
</table>
@@ -707,6 +700,10 @@ quality, colour, etc. The valid numbers are:</p>
<blockquote>
<table>
+ <tr>
+ <th width="15%">BITSPERPIXEL</th>
+ <th width="85%">Comments</th>
+ </tr>
<tr>
<td><strong>1</strong></td>
<td>A standard Ghostscript monochrome driver, using black ink (by
@@ -747,8 +744,8 @@ quality, colour, etc. The valid numbers are:</p>
colour cartridge simultaneously (that is, CMYK printing). This printer can
both be faster and give higher quality than the DeskJet 500C, because of
the true black ink. (Note that the 24-bit mode also permits CMYK printing
- on this printer, and uses less memory. Any differences between 24-bit and
- 32-bit should be small</td>
+ on this printer, and uses less memory). Any differences between 24-bit and
+ 32-bit should be small.</td>
</tr>
</table>
</blockquote>
@@ -758,31 +755,29 @@ quality, colour, etc. The valid numbers are:</p>
<blockquote>
<table>
<tr>
- <th>Name</th>
- <th>&nbsp;&nbsp;&nbsp;&nbsp;</th>
- <th>Type</th>
- <th>&nbsp;&nbsp;&nbsp;&nbsp;</th>
- <th>&nbsp;</th>
+ <th width="20%">Name</th>
+ <th width="20%">Type</th>
+ <th width="60%">Comments</th>
</tr>
<tr>
<td><code>BlackCorrect</code></td>
- <td>&nbsp;</td>
+
<td><code>int</code></td>
- <td>&nbsp;</td>
+
<td>Colour correction to give better blacks when using the DJ500C in colour mode. For example, the default of 4 reduces the cyan component to 4/5. Range accepted: 0 - 9 (0 = none).</td>
</tr>
<tr>
<td><code>Shingling</code></td>
- <td>&nbsp;</td>
+
<td><code>int</code></td>
- <td>&nbsp;</td>
+
<td>Interlaced, multi-pass printing: 0 = none, 1 = 50%, 2 = 25%, 2 is best and slowest.</td>
</tr>
<tr>
<td><code>Depletion</code></td>
- <td>&nbsp;</td>
+
<td><code>int</code></td>
- <td>&nbsp;</td>
+
<td>"Intelligent" dot-removal: 0 = none, 1 = 25%, 2 = 50%, 1 best for graphics? Use 0 for transparencies.</td>
</tr>
</table>
@@ -793,36 +788,34 @@ quality, colour, etc. The valid numbers are:</p>
<blockquote>
<table>
<tr>
- <th>Name</th>
- <th>&nbsp;&nbsp;&nbsp;&nbsp;</th>
- <th>Type</th>
- <th>&nbsp;&nbsp;&nbsp;&nbsp;</th>
- <th>&nbsp;</th>
+ <th width="20%">Name</th>
+ <th width="20%">Type</th>
+ <th width="60%">Comments</th>
</tr>
<tr>
<td><code>PrintQuality</code></td>
- <td>&nbsp;</td>
+
<td><code>int</code></td>
- <td>&nbsp;</td>
+
<td>Mechanical print quality: -1 = fast, 0 = normal, 1 = presentation. Fast mode reduces ink usage and uses single-pass operation for some media types. Presentation uses more ink and the maximum number of passes, giving slowest printing for highest quality</td>
</tr>
<tr>
<td><code>RenderType</code></td>
- <td>&nbsp;</td>
+
<td><code>int</code></td>
- <td>&nbsp;</td>
+
<td><dl>
- <dt><b>0</b><dd>driver does dithering</dd></dt>
- <dt><b>1</b><dd>snap to primaries</dd></dt>
- <dt><b>2</b><dd>snap black to white, others to black</dd></dt>
- <dt><b>3</b><dd>ordered dither</dd></dt>
- <dt><b>4</b><dd>error diffusion</dd></dt>
- <dt><b>5</b><dd>monochrome ordered dither</dd></dt>
- <dt><b>6</b><dd>monochrome error diffusion</dd></dt>
- <dt><b>7</b><dd>cluster ordered dither</dd></dt>
- <dt><b>8</b><dd>monochrome cluster ordered dither</dd></dt>
- <dt><b>9</b><dd>user-defined dither (not supported)</dd></dt>
- <dt><b>10</b><dd>monochrome user-defined dither ns.</dd></dt>
+ <dt><dd><code>0&nbsp;</code>driver does dithering</dd></dt>
+ <dt><dd><code>1&nbsp;</code>snap to primaries</dd></dt>
+ <dt><dd><code>2&nbsp;</code>snap black to white, others to black</dd></dt>
+ <dt><dd><code>3&nbsp;</code>ordered dither</dd></dt>
+ <dt><dd><code>4&nbsp;</code>error diffusion</dd></dt>
+ <dt><dd><code>5&nbsp;</code>monochrome ordered dither</dd></dt>
+ <dt><dd><code>6&nbsp;</code>monochrome error diffusion</dd></dt>
+ <dt><dd><code>7&nbsp;</code>cluster ordered dither</dd></dt>
+ <dt><dd><code>8&nbsp;</code>monochrome cluster ordered dither</dd></dt>
+ <dt><dd><code>9&nbsp;</code>user-defined dither (not supported)</dd></dt>
+ <dt><dd><code>10&nbsp;</code>monochrome user-defined dither ns.</dd></dt>
</dl></td>
</tr>
</table>
@@ -1323,36 +1316,39 @@ dithering takes also place but because of the low point density it is
usually not efficient, and thus invisible).</p>
<blockquote>
+
+
+<h4>Descriptions of printing modes by bpp and Colors</h4>
+
+
<table>
+
<tr>
- <th colspan="5">Descriptions of printing modes by bpp and Colors</th>
-</tr>
-<tr>
- <th>bpp</th>
- <th>&nbsp;&nbsp;&nbsp;</th>
- <th>Colors</th>
- <th>&nbsp;&nbsp;&nbsp;</th>
- <th align="left">Mode</th>
+ <th width="15%">bpp</th>
+
+ <th width="15%">Colors</th>
+
+ <th align="left" width="70%">Mode</th>
</tr>
<tr>
<td>32</td>
- <td>&nbsp;</td>
+
<td align="center">4</td>
- <td>&nbsp;</td>
+
<td>CMYK colour printing, Floyd-Steinberg dithering</td>
</tr>
<tr>
<td>24</td>
- <td>&nbsp;</td>
+
<td align="center">4</td>
- <td>&nbsp;</td>
+
<td>The same. (But each primary colour is stored on 6 bits instead of 8.)</td>
</tr>
<tr>
<td>24</td>
- <td>&nbsp;</td>
+
<td align="center">3</td>
- <td>&nbsp;</td>
+
<td>RGB colour printing, Floyd-Steinberg dithering. This mode does
<code>not</code> use the black cartridge (that's why it
exists, for when you don't want to use it <code>;-)</code>).
@@ -1363,25 +1359,25 @@ usually not efficient, and thus invisible).</p>
</tr>
<tr>
<td>16</td>
- <td>&nbsp;</td>
+
<td align="center">4</td>
- <td>&nbsp;</td>
+
<td>CMYK colour printing, halftoned by Ghostscript. F-S dithering
is still visible here (but the halftone patterns are visible
too!).</td>
</tr>
<tr>
<td>8</td>
- <td>&nbsp;</td>
+
<td align="center">4</td>
- <td>&nbsp;</td>
+
<td>The same.(But each primary colour is stored in 2 bits instead of 4.)</td>
</tr>
<tr>
<td>8</td>
- <td>&nbsp;</td>
+
<td align="center">3</td>
- <td>&nbsp;</td>
+
<td>RGB colour printing. This mode is not intended for use. What I
mean is that it should be used only if you want to use custom
halftone screens <b>and</b> the halftoning is broken using the
@@ -1389,16 +1385,16 @@ usually not efficient, and thus invisible).</p>
</tr>
<tr>
<td>8</td>
- <td>&nbsp;</td>
+
<td align="center">1</td>
- <td>&nbsp;</td>
+
<td>Gray-level printing, Floyd-Steinberg dithering</td>
</tr>
<tr>
<td>1</td>
- <td>&nbsp;</td>
+
<td align="center">1</td>
- <td>&nbsp;</td>
+
<td>Gray-level printing halftoned by Ghostscript</td>
</tr>
</table>
@@ -1454,16 +1450,15 @@ When both are present it means that the dithering of halftones is visible.
Default choices are indicated by asterisk "*".</p>
<blockquote>
+ <h4>Valid colors values for allowed BitsPerPixel values</h4>
<table>
+
<tr>
- <th colspan="5">Valid colors values for allowed BitsPerPixel values</th>
-</tr>
-<tr>
- <th align="center">bpp</th>
- <th align="center">Colors</th>
- <th></th>
- <th align="left">Color model</th>
- <th align="left">Dithering</th>
+ <th>bpp</th>
+ <th>Colors</th>
+ <th>Default</th>
+ <th>Color model</th>
+ <th>Dithering</th>
</tr>
<tr>
<td align="center">32</td>
@@ -1600,60 +1595,59 @@ valid <code>BitsPerPixel</code> values don't include the actual
</dl>
<dl>
-<dt><code>ProcessColorModel</code> (symbol)
+<dt><code>ProcessColorModel</code> (symbol)</dt>
<dd>A symbol taken from <code>/DeviceGray</code>,
<code>/DeviceRGB</code> or <code>/DeviceCMYK</code> which can be used
to select 1, 3 or 4 colors respectively. Note that this parameter takes
precedence over <code>Colors</code>, and that both affect the same
variable of the driver. (See <code>Colors</code> above for values
-combined with <code>BitsPerPixel</code>.)
+combined with <code>BitsPerPixel</code>.)</dd>
</dl>
<dl>
-<dt><code>HWResolution</code> (floats array)
+<dt><code>HWResolution</code> (floats array)</dt>
<dd>An array of two floats giving the horizontal and vertical resolution in
dots per inch from among 90, 180 and 360 (the default). Both values must
be the same. On the Ghostscript command line, the resolution may be
changed with the <a href="Use.htm#Resolution_switch"><code>-r</code>
-switch</a>.
+switch</a>.</dd>
</dl>
<dl>
-<dt><code>ManualFeed</code> (bool)
+<dt><code>ManualFeed</code> (bool)</dt>
<dd>Indicate that the sheets won't be fed automatically by the printer,
-<code>false</code> by default. (Not meaningful on the BJC-600, I fear.)
+<code>false</code> by default. (Not meaningful on the BJC-600, I fear.)</dd>
</dl>
<dl>
-<dt><code>MediaType</code> (string)
+<dt><code>MediaType</code> (string)</dt>
<dd>The media to print on, chosen from among "<code>PlainPaper</code>",
"<code>CoatedPaper</code>", "<code>TransparencyFilm</code>",
"<code>Envelope</code>", "<code>Card</code>" and
"<code>Other</code>". Default is "<code>PlainPaper</code>". For
"<code>Envelope</code>", "<code>Card</code>" or
"<code>Other</code>" the driver puts the printer into thick mode
-automatically regardless of the actual media weight.
+automatically regardless of the actual media weight.</dd>
</dl>
<dl>
-<dt><code>MediaWeight</code> (int or null)
+<dt><code>MediaWeight</code> (int or null)</dt>
<dd>The weight of the media in grams per square meter. Null (the default)
indicates that the weight is of no importance. If the specified media
weight is greater than 105 (that is, the value of the compilation default
<code>BJC</code>???<code>_MEDIAWEIGHT_THICKLIMIT</code>) then the
-printer will be set to use thick paper.
+printer will be set to use thick paper.</dd>
</dl>
<dl>
-<p>dt><code>PrintQuality</code> (string)
+<dt><code>PrintQuality</code> (string)</dt>
<dd>The quality of printing.</p>
-
<table>
<tr colspan="4">
<th>Value</th>
<th>bjc600</th>
<th>bjc800</th>
- <th></th>
+ <th>Comments</th>
</tr>
<tr>
<td><code>Low</code></td>
@@ -1680,6 +1674,8 @@ printer will be set to use thick paper.
<td>Means 200% black and 100% CMY; lights the "Bk+" light on a BJC-600</td>
</tr>
</table>
+</dd>
+
</dl>
<dl>
@@ -1944,52 +1940,57 @@ somehow related to their use during the printing process:</p>
<dl>
<dt><code>-sDithering=</code><em>{name}</em>
-<dd>Select another dithering algorithm (name) from among
+<dd>Select another dithering algorithm (name) from among:
<blockquote>
<table>
+
+ <tr>
+ <th width="25%">Dithering name</th>
+ <th width="75%">Comments</th>
+ </tr>
<tr>
<td><code>gscmyk</code></td>
- <td>&nbsp;&nbsp;&nbsp;&nbsp;</td>
+
<td>fast color output, CMYK process color model (default)</td>
</tr>
<tr>
<td><code>gsmono</code></td>
- <td>&nbsp;</td>
+
<td>fast monochrome output</td>
</tr>
<tr>
<td><code>gsrgb</code></td>
- <td>&nbsp;</td>
+
<td>fast color output, RGB process color model</td>
</tr>
<tr>
<td><code>fsmono</code></td>
- <td>&nbsp;</td>
+
<td>Floyd-Steinberg, monochrome</td>
</tr>
<tr>
<td><code>fsrgb</code></td>
- <td>&nbsp;</td>
+
<td>Floyd-Steinberg, RGB process color model (almost identical to the <code>cdj550</code>/<code>bjc</code> algorithm)</td>
</tr>
<tr>
<td><code>fsx4</code></td>
- <td>&nbsp;</td>
+
<td>Floyd-Steinberg, CMYK process color model (shares code with <code>fsmono</code> and <code>fsrgb</code>, but is algorithmically really bad)</td>
</tr>
<tr>
<td><code>fscmyk</code></td>
- <td>&nbsp;</td>
+
<td>Floyd-Steinberg, CMYK process color model and proper modifications for CMYK</td>
</tr>
<tr>
<td><code>hscmyk</code></td>
- <td>&nbsp;</td>
+
<td>modified Floyd-Steinberg with CMYK model ("hs" stands for "hess" not for "high speed", but the major difference from <code>fscmyk</code> is speed)</td>
</tr>
<tr>
<td><code>fs2</code></td>
- <td>&nbsp;</td>
+
<td>algorithm by Steven Singer (RGB) should be identical to <code>escp2cfs2</code>.</td>
</tr>
</table>
@@ -2155,7 +2156,6 @@ on STC-IIs ? and st800) are known to work with most printers.</p>
<td>15</td>
<td><code>noWeave</code></td>
<td>&nbsp;</td>
- <td>&nbsp;</td>
</tr>
<tr>
<td>360x180</td>
@@ -3647,496 +3647,496 @@ gs @stc.upp -sOutputFile=/dev/lp1 tiger.eps -c quit
<blockquote>
<table>
<tr>
- <th colspan="6">Unified Printer Parameter files distributed with Ghostscript</th>
+ <th colspan="3">Unified Printer Parameter files distributed with Ghostscript</th>
</tr>
<tr>
- <th align="left" colspan="6">Canon BJC 610 (color, rendered)</th>
+ <th align="left" colspan="3">Canon BJC 610 (color, rendered)</th>
</tr>
<tr>
- <td>&nbsp;&nbsp;&nbsp;&nbsp;</td>
+
<td><code>bjc610a0.upp</code></td>
- <td>&nbsp;&nbsp;</td>
+
<td>360&times;360dpi</td>
- <td>&nbsp;&nbsp;</td>
+
<td>plain paper, high speed</td>
</tr>
<tr>
- <td>&nbsp;</td>
+
<td><code>bjc610a1.upp</code></td>
- <td>&nbsp;</td>
+
<td>360&times;360dpi</td>
- <td>&nbsp;</td>
+
<td>plain paper</td>
</tr>
<tr>
- <td>&nbsp;</td>
+
<td><code>bjc610a2.upp</code></td>
- <td>&nbsp;</td>
+
<td>360&times;360dpi</td>
- <td>&nbsp;</td>
+
<td>coated paper</td>
</tr>
<tr>
- <td>&nbsp;</td>
+
<td><code>bjc610a3.upp</code></td>
- <td>&nbsp;</td>
+
<td>360&times;360dpi</td>
- <td>&nbsp;</td>
+
<td>transparency film</td>
</tr>
<tr>
- <td>&nbsp;</td>
+
<td><code>bjc610a4.upp</code></td>
- <td>&nbsp;</td>
+
<td>360&times;360dpi</td>
- <td>&nbsp;</td>
+
<td>back print film</td>
</tr>
<tr>
- <td>&nbsp;</td>
+
<td><code>bjc610a5.upp</code></td>
- <td>&nbsp;</td>
+
<td>360&times;360dpi</td>
- <td>&nbsp;</td>
+
<td>fabric sheet</td>
</tr>
<tr>
- <td>&nbsp;</td>
+
<td><code>bjc610a6.upp</code></td>
- <td>&nbsp;</td>
+
<td>360&times;360dpi</td>
- <td>&nbsp;</td>
+
<td>glossy paper</td>
</tr>
<tr>
- <td>&nbsp;</td>
+
<td><code>bjc610a7.upp</code></td>
- <td>&nbsp;</td>
+
<td>360&times;360dpi</td>
- <td>&nbsp;</td>
+
<td>high gloss film</td>
</tr>
<tr>
- <td>&nbsp;</td>
+
<td><code>bjc610a8.upp</code></td>
- <td>&nbsp;</td>
+
<td>360&times;360dpi</td>
- <td>&nbsp;</td>
+
<td>high resolution paper</td>
</tr>
<tr>
- <th colspan="6"></th>
+ <th colspan="3"></th>
</tr>
<tr>
- <td>&nbsp;</td>
+
<td><code>bjc610b1.upp</code></td>
- <td>&nbsp;</td>
+
<td>720&times;720dpi</td>
- <td>&nbsp;</td>
+
<td>plain paper</td>
</tr>
<tr>
- <td>&nbsp;</td>
+
<td><code>bjc610b2.upp</code></td>
- <td>&nbsp;</td>
+
<td>720&times;720dpi</td>
- <td>&nbsp;</td>
+
<td>coated paper</td>
</tr>
<tr>
- <td>&nbsp;</td>
+
<td><code>bjc610b3.upp</code></td>
- <td>&nbsp;</td>
+
<td>720&times;720dpi</td>
- <td>&nbsp;</td>
+
<td>transparency film</td>
</tr>
<tr>
- <td>&nbsp;</td>
+
<td><code>bjc610b4.upp</code></td>
- <td>&nbsp;</td>
+
<td>720&times;720dpi</td>
- <td>&nbsp;</td>
+
<td>back print film</td>
</tr>
<tr>
- <td>&nbsp;</td>
+
<td><code>bjc610b6.upp</code></td>
- <td>&nbsp;</td>
+
<td>720&times;720dpi</td>
- <td>&nbsp;</td>
+
<td>glossy paper</td>
</tr>
<tr>
- <td>&nbsp;</td>
+
<td><code>bjc610b7.upp</code></td>
- <td>&nbsp;</td>
+
<td>720&times;720dpi</td>
- <td>&nbsp;</td>
+
<td>high-gloss paper</td>
</tr>
<tr>
- <td>&nbsp;</td>
+
<td><code>bjc610b8.upp</code></td>
- <td>&nbsp;</td>
+
<td>720&times;720dpi</td>
- <td>&nbsp;</td>
+
<td>high resolution paper</td>
</tr>
<tr>
- <th align="left" colspan="6">HP Ink-Printers</th>
+ <th align="left" colspan="3">HP Ink-Printers</th>
</tr>
<tr>
- <td>&nbsp;</td>
+
<td><code>cdj550.upp</code></td>
- <td>&nbsp;</td>
+
<td>300&times;300dpi</td>
- <td>&nbsp;</td>
+
<td>32-bit CMYK</td>
</tr>
<tr>
- <td>&nbsp;</td>
+
<td><code>cdj690.upp</code></td>
- <td>&nbsp;</td>
+
<td>300&times;300dpi</td>
- <td>&nbsp;</td>
+
<td>Normal mode</td>
</tr>
<tr>
- <td>&nbsp;</td>
+
<td><code>cdj690ec.upp</code></td>
- <td>&nbsp;</td>
+
<td>300&times;300dpi</td>
- <td>&nbsp;</td>
+
<td>Economy mode</td>
</tr>
<tr>
- <td>&nbsp;</td>
+
<td><code>dnj750c.upp</code></td>
- <td>&nbsp;</td>
+
<td>300&times;300dpi</td>
- <td>&nbsp;</td>
+
<td>Color – also good for 450C</td>
</tr>
<tr>
- <td>&nbsp;</td>
+
<td><code>dnj750m.upp</code></td>
- <td>&nbsp;</td>
+
<td>600&times;600dpi</td>
- <td>&nbsp;</td>
+
<td>Monochrome</td>
</tr>
<tr>
- <th align="left" colspan="6">NEC P2X</th>
+ <th align="left" colspan="3">NEC P2X</th>
</tr>
<tr>
- <td>&nbsp;</td>
+
<td><code>necp2x.upp</code></td>
- <td>&nbsp;</td>
+
<td>360&times;360dpi</td>
- <td>&nbsp;</td>
+
<td>8-bit (Floyd-Steinberg)</td>
</tr>
<tr>
- <th align="left" colspan="6">Any Epson Stylus Color</th>
+ <th align="left" colspan="3">Any Epson Stylus Color</th>
</tr>
<tr>
- <td>&nbsp;</td>
+
<td><code>stcany.upp</code></td>
- <td>&nbsp;</td>
+
<td>360&times;360dpi</td>
- <td>&nbsp;</td>
+
<td>4-bit, PostScript halftoning</td>
</tr>
<tr>
- <td>&nbsp;</td>
+
<td><code>stcany_h.upp</code></td>
- <td>&nbsp;</td>
+
<td>720&times;720dpi</td>
- <td>&nbsp;</td>
+
<td>4-bit, PostScript halftoning</td>
</tr>
<tr>
- <th align="left" colspan="6">Original Epson Stylus and Stylus Pro Color</th>
+ <th align="left" colspan="3">Original Epson Stylus and Stylus Pro Color</th>
</tr>
<tr>
- <td>&nbsp;</td>
+
<td><code>stc.upp</code></td>
- <td>&nbsp;</td>
+
<td>360&times;360dpi</td>
- <td>&nbsp;</td>
+
<td>32-bit CMYK, 15-pin</td>
</tr>
<tr>
- <td>&nbsp;</td>
+
<td><code>stc_l.upp</code></td>
- <td>&nbsp;</td>
+
<td>360&times;360dpi</td>
- <td>&nbsp;</td>
+
<td>4-bit, PostScript halftoning, weaved noWeave</td>
</tr>
<tr>
- <td>&nbsp;</td>
+
<td><code>stc_h.upp</code></td>
- <td>&nbsp;</td>
+
<td>720&times;720dpi</td>
- <td>&nbsp;</td>
+
<td>32-bit CMYK, 15-pin Weave</td>
</tr>
<tr>
- <th align="left" colspan="6">Epson Stylus Color II</th>
+ <th align="left" colspan="3">Epson Stylus Color II</th>
</tr>
<tr>
- <td>&nbsp;</td>
+
<td><code>stc2.upp</code></td>
- <td>&nbsp;</td>
+
<td>360&times;360dpi</td>
- <td>&nbsp;</td>
+
<td>32-bit CMYK, 20-pin, Epson Stylus Color II(s)</td>
</tr>
<tr>
- <td>&nbsp;</td>
+
<td><code>stc2_h.upp</code></td>
- <td>&nbsp;</td>
+
<td>720&times;720dpi</td>
- <td>&nbsp;</td>
+
<td>32-bit CMYK, 20-pin, Epson Stylus Color II</td>
</tr>
<tr>
- <td>&nbsp;</td>
+
<td><code>stc2s_h.upp</code></td>
- <td>&nbsp;</td>
+
<td>720&times;720dpi</td>
- <td>&nbsp;</td>
+
<td>32-bit CMYK, 20-pin, Epson Stylus Color IIs</td>
</tr>
<tr>
- <th align="left" colspan="6">Epson Stylus Color 200</th>
+ <th align="left" colspan="3">Epson Stylus Color 200</th>
</tr>
<tr>
- <td>&nbsp;</td>
+
<td><code>stc200.upp</code></td>
- <td>&nbsp;</td>
+
<td>360&times;720dpi</td>
- <td>&nbsp;</td>
+
<td>Plain Paper</td>
</tr>
<tr>
- <th align="left" colspan="6">Epson Stylus Color 300</th>
+ <th align="left" colspan="3">Epson Stylus Color 300</th>
</tr>
<tr>
- <td>&nbsp;</td>
+
<td><code>stc300.upp</code></td>
- <td>&nbsp;</td>
+
<td>360&times;360dpi</td>
- <td>&nbsp;</td>
+
<td>32-bit CMYK, plain paper</td>
</tr>
<tr>
- <td>&nbsp;</td>
+
<td><code>stc300bl.upp</code></td>
- <td>&nbsp;</td>
+
<td>180&times;180dpi</td>
- <td>&nbsp;</td>
+
<td>black only, plain paper</td>
</tr>
<tr>
- <td>&nbsp;</td>
+
<td><code>stc300bm.upp</code></td>
- <td>&nbsp;</td>
+
<td>360&times;360dpi</td>
- <td>&nbsp;</td>
+
<td>black only, plain paper</td>
</tr>
<tr>
- <th align="left" colspan="6">Epson Stylus Color 500 (good transfer curves for plain paper)</th>
+ <th align="left" colspan="3">Epson Stylus Color 500 (good transfer curves for plain paper)</th>
</tr>
<tr>
- <td>&nbsp;</td>
+
<td><code>stc500p.upp</code></td>
- <td>&nbsp;</td>
+
<td>360&times;360dpi</td>
- <td>&nbsp;</td>
+
<td>32-bit CMYK, noWeave, plain paper</td>
</tr>
<tr>
- <td>&nbsp;</td>
+
<td><code>stc500ph.upp</code></td>
- <td>&nbsp;</td>
+
<td>720&times;720dpi</td>
- <td>&nbsp;</td>
+
<td>32-bit CMYK, noWeave, plain paper</td>
</tr>
<tr>
- <th align="left" colspan="6">Epson Stylus Color 600, 32/90-inch weaving</th>
+ <th align="left" colspan="3">Epson Stylus Color 600, 32/90-inch weaving</th>
</tr>
<tr>
- <td>&nbsp;</td>
+
<td><code>stc600pl.upp</code></td>
- <td>&nbsp;</td></td>
- <td>360&times;360dpi
- <td>&nbsp;</td>
+
+ <td>360&times;360dpi</td>
+
<td>32-bit CMYK, 32-pin, plain paper</td>
</tr>
<tr>
- <td>&nbsp;</td>
+
<td><code>stc600p.upp</code></td>
- <td>&nbsp;</td>
+
<td>720&times;720dpi</td>
- <td>&nbsp;</td>
+
<td>32-bit CMYK, 32-pin, plain paper</td>
</tr>
<tr>
- <td>&nbsp;</td>
+
<td><code>stc600ih.upp</code></td>
- <td>&nbsp;</td>
+
<td>1440&times;720dpi</td>
- <td>&nbsp;</td>
+
<td>32-bit CMYK, 30-pin, inkjet paper</td>
</tr>
<tr>
- <th align="left" colspan="6">Epson Stylus Color 640</th>
+ <th align="left" colspan="3">Epson Stylus Color 640</th>
</tr>
<tr>
- <td>&nbsp;</td>
+
<td><code>stc640p.upp</code></td>
- <td>&nbsp;</td>
+
<td>720&times;720dpi</td>
- <td>&nbsp;</td>
+
<td>plain paper?</td>
</tr>
<tr>
- <td>&nbsp;</td>
+
<td><code>st640p.upp</code></td>
- <td>&nbsp;</td>
+
<td>720&times;720dpi</td>
- <td>&nbsp;</td>
+
<td>CMYK, plain paper</td>
</tr>
<tr>
- <td>&nbsp;</td>
+
<td><code>st640pg.upp</code></td>
- <td>&nbsp;</td>
+
<td>720&times;720dpi</td>
- <td>&nbsp;</td>
+
<td>grayscale, plain paper</td>
</tr>
<tr>
- <td>&nbsp;</td>
+
<td><code>st640pl.upp</code></td>
- <td>&nbsp;</td>
+
<td>360&times;360dpi</td>
- <td>&nbsp;</td>
+
<td>CMYK, plain paper</td>
</tr>
<tr>
- <td>&nbsp;</td>
+
<td><code>st640plg.upp</code></td>
- <td>&nbsp;</td>
+
<td>360&times;360dpi</td>
- <td>&nbsp;</td>
+
<td>grayscale, plain paper</td>
</tr>
<tr>
- <td>&nbsp;</td>
+
<td><code>st640ih.upp</code></td>
- <td>&nbsp;</td>
+
<td>1440&times;720dpi</td>
- <td>&nbsp;</td>
+
<td>CMYK, inkjet paper</td>
</tr>
<tr>
- <td>&nbsp;</td>
+
<td><code>st640ihg.upp</code></td>
- <td>&nbsp;</td>
+
<td>1440&times;720dpi</td>
- <td>&nbsp;</td>
+
<td>grayscale, inkjet paper</td>
</tr>
<tr>
- <th align="left" colspan="6">Epson Stylus Color 800, 64/180-inch weaving</th>
+ <th align="left" colspan="3">Epson Stylus Color 800, 64/180-inch weaving</th>
</tr>
<tr>
- <td>&nbsp;</td>
+
<td><code>stc800pl.upp</code></td>
- <td>&nbsp;</td>
+
<td>360&times;360dpi</td>
- <td>&nbsp;</td>
+
<td>32-bit CMYK, 64-pin, plain paper</td>
</tr>
<tr>
- <td>&nbsp;</td>
+
<td><code>stc800p.upp</code></td>
- <td>&nbsp;</td>
+
<td>720&times;720dpi</td>
- <td>&nbsp;</td>
+
<td>32-bit CMYK, 64-pin, plain paper</td>
</tr>
<tr>
- <td>&nbsp;</td>
+
<td><code>stc800ih.upp</code></td>
- <td>&nbsp;</td>
+
<td>1440&times;720dpi</td>
- <td>&nbsp;</td>
+
<td>32-bit CMYK, 62-pin, inkjet paper</td>
</tr>
<tr>
- <td>&nbsp;</td>
+
<td><code>stc1520.upp</code></td>
- <td>&nbsp;</td>
+
<td>1440&times;720dpi</td>
- <td>&nbsp;</td>
+
<td>32-bit CMYK, 62-pin, inkjet paper</td>
</tr>
<tr>
- <th align="left" colspan="6">Sun raster file</th>
+ <th align="left" colspan="3">Sun raster file</th>
</tr>
<tr>
- <td>&nbsp;</td>
+
<td><code>ras1.upp</code></td>
- <td>&nbsp;</td>
+
<td>1-bit</td>
- <td>&nbsp;</td>
+
<td>monochrome (Ghostscript)</td>
</tr>
<tr>
- <td>&nbsp;</td>
+
<td><code>ras3.upp</code></td>
- <td>&nbsp;</td>
+
<td>3-bit</td>
- <td>&nbsp;</td>
+
<td>RGB (Ghostscript)</td>
</tr>
<tr>
- <td>&nbsp;</td>
+
<td><code>ras4.upp</code></td>
- <td>&nbsp;</td>
+
<td>4-bit</td>
- <td>&nbsp;</td>
+
<td>CMYK (Ghostscript)</td>
</tr>
<tr>
- <td>&nbsp;</td>
+
<td><code>ras8m.upp</code></td>
- <td>&nbsp;</td>
+
<td>8-bit</td>
- <td>&nbsp;</td>
+
<td>grayscale (Floyd-Steinberg)</td>
</tr>
<tr>
- <td>&nbsp;</td>
+
<td><code>ras24.upp</code></td>
- <td>&nbsp;</td>
+
<td>24-bit</td>
- <td>&nbsp;</td>
+
<td>RGB (Floyd-Steinberg)</td>
</tr>
<tr>
- <td>&nbsp;</td>
+
<td><code>ras32.upp</code></td>
- <td>&nbsp;</td>
+
<td>32-bit</td>
- <td>&nbsp;</td>
+
<td>CMYK (CMYK-Floyd-Steinberg)</td>
</tr>
</table>
@@ -4315,38 +4315,38 @@ while <code>/FSCMYK32</code> is (almost) identical to
<code>/DeviceCMYKgenerate</code>.</li>
<li><code>upOutputFormat</code> selects the output method, supporting the values
-<code>/SunRaster</code>, <code>/Epson</code>, <code>/EscP2</code>, <code>/EscP2XY</code>, and<code>/Pcl</code>.</li>
+<code>/SunRaster</code>, <code>/Epson</code>, <code>/EscP2</code>, <code>/EscP2XY</code>, and<code>/Pcl</code>.
<blockquote>
<table>
<tr>
<td><code>/SunRaster</code></td>
- <td>&nbsp;</td>
+
<td>creates Sun raster files and requires no other parameters</td>
</tr>
<tr>
<td><code>/Epson</code></td>
- <td>&nbsp;</td>
+
<td>is used for the elderly ESC/P format (used by many printers)</td>
</tr>
<tr>
<td><code>/EscP2</code></td>
- <td>&nbsp;</td>
+
<td>is used by more recent Epson printers (no X weaving supported)</td>
</tr>
<tr>
<td><code>/EscP2XY</code></td>
- <td>&nbsp;</td>
+
<td>supports X-Weaving, used with 1440dpi printers and in <code>stc2s_h</code></td>
</tr>
<tr>
<td><code>/Pcl</code></td>
- <td>&nbsp;</td>
+
<td>HP PCL/RTL-style output formatter without weaving</td>
</tr>
</table>
</blockquote>
-
+</li>
<li><code>-r360x360</code> is Ghostscript's standard
<a href="Use.htm#Resolution_switch">resolution switch</a>.</li>
@@ -4363,76 +4363,75 @@ Floyd-Steinberg algorithm (but still carrying out the time-consuming
computation). The related parameter "<code>upComponentShift</code>"
controls positioning the components within raster memory. Each of the
numbers given corresponds to a component which depends on the selected
-"<code>upColorModel</code>":</li>
-
+"<code>upColorModel</code>":
<blockquote>
<table>
<tr>
<td align="center">&nbsp;</td>
- <td>&nbsp;</td>
+
<td align="center"><code>/DeviceGray</code></td>
- <td>&nbsp;</td>
+
<td align="center"><code>/DeviceRGBW</code></td>
- <td>&nbsp;</td>
+
<td align="center"><code>/DeviceRGB</code></td>
- <td>&nbsp;</td>
+
<td align="center"><code>/DeviceCMYK</code></td>
- <td>&nbsp;</td>
+
<td align="center"><code>/DeviceCMYKgenerate</code></td>
</tr>
<tr>
- <td colspan="11"></td>
+ <td colspan="6"></td>
</tr>
<tr>
<td align="center">0</td>
- <td>&nbsp;</td>
+
<td align="center">White</td>
- <td>&nbsp;</td>
+
<td align="center">White</td>
- <td>&nbsp;</td>
+
<td align="center">Red</td>
- <td>&nbsp;</td>
+
<td align="center">Black</td>
- <td>&nbsp;</td>
+
<td align="center">Black</td>
</tr>
<tr>
<td align="center">1</td>
- <td>&nbsp;</td>
+
<td align="center">--</td>
- <td>&nbsp;</td>
+
<td align="center">Red</td>
- <td>&nbsp;</td>
+
<td align="center">Green</td>
- <td>&nbsp;</td>
+
<td align="center">Cyan</td>
- <td>&nbsp;</td>
+
<td align="center">Cyan</td>
</tr>
<tr>
<td align="center">2</td>
- <td>&nbsp;</td>
+
<td align="center">--</td>
- <td>&nbsp;</td>
+
<td align="center">Green</td>
- <td>&nbsp;</td>
+
<td align="center">Blue</td>
- <td>&nbsp;</td>
+
<td align="center">Magenta</td>
- <td>&nbsp;</td>
+
<td align="center">Magenta</td>
</tr>
<tr>
<td align="center">3</td>
- <td>&nbsp;</td>
+
<td align="center">--</td>
- <td>&nbsp;</td>
+
<td align="center">Blue</td>
- <td>&nbsp;</td>
+
<td align="center">--</td>
- <td>&nbsp;</td>
+
<td align="center">Yellow</td>
- <td>&nbsp;</td>
+
<td align="center">Yellow</td>
</tr>
</table>
@@ -4465,6 +4464,7 @@ the stored component is <code>White</code>, which is the way PostScript
defines these devices, but most printers require <code>Black</code>.
Thus one has to provide a falling "<code>upWhiteTransfer</code>" for
such printers.</p>
+</li>
<li><code>upWeaveYPasses</code> is an integer that gives the number of
print head passes required to achieve the requested Ydpi. This makes sense
@@ -4494,7 +4494,7 @@ output file. (Intended for the HP PJL sequences).</li>
<code>upAdjustPageLengthCommand</code>,
<code>upAdjustPageWidthCommand</code>,
<code>upAdjustResolutionCommand</code>, and
-<code>upAdjustTopMarginCommand</code></li>
+<code>upAdjustTopMarginCommand</code>
<p>
Normally <code>uniprint</code> does not change the
@@ -4502,6 +4502,7 @@ Normally <code>uniprint</code> does not change the
However, if the above boolean values are set, the corresponding values are
changed (provided that the code of the formatters supports this change and
the commands to be adjusted are included in the BOP string).</p>
+</li>
<li><code>upEndPageCommand</code> is the fixed termination sequence for
each page, and of course there is an "<code>upEndJobCommand</code>" too.</li>
@@ -4551,523 +4552,523 @@ denotes that a parameter is an array, and "(RO)" that it is read-only.</p>
<blockquote>
<table>
<tr>
- <th colspan="5">All uniprint parameters</th>
+ <th colspan="3">All uniprint parameters</th>
</tr>
<tr>
<th align="left">Parameter</th>
- <th>&nbsp;</th>
+
<th align="left">Type</th>
- <th>&nbsp;&nbsp;&nbsp;</th>
+
<th align="left">Use</th>
</tr>
<tr>
<td><code>upAbortCommand</code></td>
- <td>&nbsp;</td>
+
<td>String</td>
- <td>&nbsp;</td>
+
<td>End of page and file on interrupt</td>
</tr>
<tr>
<td><code>upAdjustBottomMarginCommand</code></td>
- <td>&nbsp;</td>
+
<td>Bool</td>
- <td>&nbsp;</td>
+
<td>Manipulate bottom margin in <code>upBeginPageCommand</code></td>
</tr>
<tr>
<td><code>upAdjustMediaSizeCommand</code></td>
- <td>&nbsp;</td>
+
<td>Bool</td>
- <td>&nbsp;</td>
+
<td>Manipulate <code>Mediasize</code> [intended]</td>
</tr>
<tr>
<td><code>upAdjustPageLengthCommand</code></td>
- <td>&nbsp;</td>
+
<td>Bool</td>
- <td>&nbsp;</td>
+
<td>Manipulate page length in <code>upBeginPageCommand</code></td>
</tr>
<tr>
<td><code>upAdjustPageWidthCommand</code></td>
- <td>&nbsp;</td>
+
<td>Bool</td>
- <td>&nbsp;</td>
+
<td>Manipulate page width in <code>upBeginPageCommand</code></td>
</tr>
<tr>
<td><code>upAdjustResolutionCommand</code></td>
- <td>&nbsp;</td>
+
<td>Bool</td>
- <td>&nbsp;</td>
+
<td>Manipulate resolution</td>
</tr>
<tr>
<td><code>upAdjustTopMarginCommand</code></td>
- <td>&nbsp;</td>
+
<td>Bool</td>
- <td>&nbsp;</td>
+
<td>Manipulate top margin in <code>upBeginPageCommand</code></td>
</tr>
<tr>
<td><code>upBeginJobCommand</code></td>
- <td>&nbsp;</td>
+
<td>String</td>
- <td>&nbsp;</td>
+
<td>Begin each output file</td>
</tr>
<tr>
<td><code>upBeginPageCommand</code></td>
- <td>&nbsp;</td>
+
<td>String</td>
- <td>&nbsp;</td>
+
<td>Begin each page</td>
</tr>
<tr>
<td><code>upBlackTransfer</code></td>
- <td>&nbsp;</td>
+
<td>Float[&nbsp;]</td>
- <td>&nbsp;</td>
+
<td>Black transfer (CMYK only!)</td>
</tr>
<tr>
<td><code>upBlueTransfer</code></td>
- <td>&nbsp;</td>
+
<td>Float[&nbsp;]</td>
- <td>&nbsp;</td>
+
<td>Blue transfer</td>
</tr>
<tr>
<td><code>upColorInfo</code></td>
- <td>&nbsp;</td>
+
<td>Int[&nbsp;]</td>
- <td>&nbsp;</td>
+
<td>struct <code>gx_device_color_info</code></td>
</tr>
<tr>
<td><code>upColorModel</code></td>
- <td>&nbsp;</td>
+
<td>Name</td>
- <td>&nbsp;</td>
+
<td>Select color mapping</td>
</tr>
<tr>
<td><code>upColorModelInitialized</code></td>
- <td>&nbsp;</td>
+
<td>Bool (RO)</td>
- <td>&nbsp;</td>
+
<td>Color mapping OK</td>
</tr>
<tr>
<td><code>upComponentBits</code></td>
- <td>&nbsp;</td>
+
<td>Int[&nbsp;]</td>
- <td>&nbsp;</td>
+
<td>Bits stored per component</td>
</tr>
<tr>
<td><code>upComponentShift</code></td>
- <td>&nbsp;</td>
+
<td>Int[&nbsp;]</td>
- <td>&nbsp;</td>
+
<td>Positioning within <code>gx_color_index</code></td>
</tr>
<tr>
<td><code>upCyanTransfer</code></td>
- <td>&nbsp;</td>
+
<td>Float[&nbsp;]</td>
- <td>&nbsp;</td>
+
<td>Cyan transfer</td>
</tr>
<tr>
<td><code>upEndJobCommand</code></td>
- <td>&nbsp;</td>
+
<td>String</td>
- <td>&nbsp;</td>
+
<td>End each file unless <code>upAbortCommand</code></td>
</tr>
<tr>
<td><code>upEndPageCommand</code></td>
- <td>&nbsp;</td>
+
<td>String</td>
- <td>&nbsp;</td>
+
<td>End each page unless <code>upAbortCommand</code></td>
</tr>
<tr>
<td><code>upErrorDetected</code></td>
- <td>&nbsp;</td>
+
<td>Bool (RO)</td>
- <td>&nbsp;</td>
+
<td>Severe (VM) error, not fully operational</td>
</tr>
<tr>
<td><code>upFSFixedDirection</code></td>
- <td>&nbsp;</td>
+
<td>Bool</td>
- <td>&nbsp;</td>
+
<td>Inhbits direction toggling in rendering</td>
</tr>
<tr>
<td><code>upFSProcessWhiteSpace</code></td>
- <td>&nbsp;</td>
+
<td>Bool</td>
- <td>&nbsp;</td>
+
<td>Causes white-space rendering</td>
</tr>
<tr>
<td><code>upFSReverseDirection</code></td>
- <td>&nbsp;</td>
+
<td>Bool</td>
- <td>&nbsp;</td>
+
<td>Run rendering in reverse (if fixed)</td>
</tr>
<tr>
<td><code>upFSZeroInit</code></td>
- <td>&nbsp;</td>
+
<td>Bool</td>
- <td>&nbsp;</td>
+
<td>Non-random rendering initialization</td>
</tr>
<tr>
<td><code>upFormatXabsolute</code></td>
- <td>&nbsp;</td>
+
<td>Bool</td>
- <td>&nbsp;</td>
+
<td>Write absolute X coordinates</td>
</tr>
<tr>
<td><code>upFormatYabsolute</code></td>
- <td>&nbsp;</td>
+
<td>Bool</td>
- <td>&nbsp;</td>
+
<td>Write absolute Y coordinates</td>
</tr>
<tr>
<td><code>upGreenTransfer</code></td>
- <td>&nbsp;</td>
+
<td>Float[&nbsp;]</td>
- <td>&nbsp;</td>
+
<td>Green transfer</td>
</tr>
<tr>
<td><code>upMagentaTransfer</code></td>
- <td>&nbsp;</td>
+
<td>Float[&nbsp;]</td>
- <td>&nbsp;</td>
+
<td>Magenta transfer</td>
</tr>
<tr>
<td><code>upMargins</code></td>
- <td>&nbsp;</td>
+
<td>Float[&nbsp;]</td>
- <td>&nbsp;</td>
+
<td>L/B/R/T margins in points</td>
</tr>
<tr>
<td><code>upModel</code></td>
- <td>&nbsp;</td>
+
<td>String</td>
- <td>&nbsp;</td>
+
<td>Comment string, holds some info</td>
</tr>
<tr>
<td><code>upOutputAborted</code></td>
- <td>&nbsp;</td>
+
<td>Bool (RO)</td>
- <td>&nbsp;</td>
+
<td>Caught an interrupt</td>
</tr>
<tr>
<td><code>upOutputBuffers</code></td>
- <td>&nbsp;</td>
+
<td>Int</td>
- <td>&nbsp;</td>
+
<td>Number of rendering buffers (2^<small><sup><b>N</b></sup></small>)</td>
</tr>
<tr>
<td><code>upOutputComponentOrder</code></td>
- <td>&nbsp;</td>
+
<td>Int[&nbsp;]</td>
- <td>&nbsp;</td>
+
<td>Order of components when printing</td>
</tr>
<tr>
<td><code>upOutputComponents</code></td>
- <td>&nbsp;</td>
+
<td>Int</td>
- <td>&nbsp;</td>
+
<td>Number of written components, not fully operational</td>
<tr>
<td><code>upOutputFormat</code></td>
- <td>&nbsp;</td>
+
<td>Name</td>
- <td>&nbsp;</td>
+
<td>Select output format</td>
</tr>
<tr>
<td><code>upOutputFormatInitialized</code></td>
- <td>&nbsp;</td>
+
<td>Bool (RO)</td>
- <td>&nbsp;</td>
+
<td>Format data OK</td>
</tr>
<tr>
<td><code>upOutputHeight</code></td>
- <td>&nbsp;</td>
+
<td>Int</td>
- <td>&nbsp;</td>
+
<td>Output height in pixels</td>
</tr>
<tr>
<td><code>upOutputPins</code></td>
- <td>&nbsp;</td>
+
<td>Int</td>
- <td>&nbsp;</td>
+
<td>Number of pins / nozzles per command</td>
</tr>
<tr>
<td><code>upOutputWidth</code></td>
- <td>&nbsp;</td>
+
<td>Int</td>
- <td>&nbsp;</td>
+
<td>Output width in pixels</td>
</tr>
<tr>
<td><code>upOutputXOffset</code></td>
- <td>&nbsp;</td>
+
<td>Int</td>
- <td>&nbsp;</td>
+
<td>Offset in pixels, if <code>upFormatXabsolute</code></td>
</tr>
<tr>
<td><code>upOutputXStep</code></td>
- <td>&nbsp;</td>
+
<td>Int</td>
- <td>&nbsp;</td>
+
<td>Divisor or multiplier for X coords</td>
</tr>
<tr>
<td><code>upOutputYOffset</code></td>
- <td>&nbsp;</td>
+
<td>Int</td>
- <td>&nbsp;</td>
+
<td>Offset in pixels, if <code>upFormatYabsolute</code></td>
</tr>
<tr>
<td><code>upOutputYStep</code></td>
- <td>&nbsp;</td>
+
<td>Int</td>
- <td>&nbsp;</td>
+
<td>Divisor or multiplier for Y coords</td>
</tr>
<tr>
<td><code>upRasterBufferInitialized</code></td>
- <td>&nbsp;</td>
+
<td>Bool (RO)</td>
- <td>&nbsp;</td>
+
<td>GS buffer OK</td>
</tr>
<tr>
<td><code>upRedTransfer</code></td>
- <td>&nbsp;</td>
+
<td>Float[&nbsp;]</td>
- <td>&nbsp;</td>
+
<td>Red transfer</td>
</tr>
<tr>
<td><code>upRendering</code></td>
- <td>&nbsp;</td>
+
<td>Name</td>
- <td>&nbsp;</td>
+
<td>Select rendering algorithm</td>
</tr>
<tr>
<td><code>upRenderingInitialized</code></td>
- <td>&nbsp;</td>
+
<td>Bool (RO)</td>
- <td>&nbsp;</td>
+
<td>Rendering parameters OK</td>
</tr>
<tr>
<td><code>upSelectComponentCommands</code></td>
- <td>&nbsp;</td>
+
<td>String[&nbsp;]</td>
- <td>&nbsp;</td>
+
<td>Establish color (output order!)</td>
</tr>
<tr>
<td><code>upSetLineFeedCommand</code></td>
- <td>&nbsp;</td>
+
<td>String</td>
- <td>&nbsp;</td>
+
<td>Adjust linefeed (Epson only)</td>
</tr>
<tr>
<td><code>upVersion</code></td>
- <td>&nbsp;</td>
+
<td>String (RO)</td>
- <td>&nbsp;</td>
+
<td>Source code version</td>
</tr>
<tr>
<td><code>upWeaveFinalPins</code></td>
- <td>&nbsp;</td>
+
<td>Int[&nbsp;]</td>
- <td>&nbsp;</td>
+
<td>Number of bottom pins on EOP passes</td>
</tr>
<tr>
<td><code>upWeaveFinalScan</code></td>
- <td>&nbsp;</td>
+
<td>Int</td>
- <td>&nbsp;</td>
+
<td>Begin EOP passes (Y-coord)</td>
</tr>
<tr>
<td><code>upWeaveFinalXStarts</code></td>
- <td>&nbsp;</td>
+
<td>Int[&nbsp;]</td>
- <td>&nbsp;</td>
+
<td>X-pass indices for EOP passes</td>
</tr>
<tr>
<td><code>upWeaveFinalYFeeds</code></td>
- <td>&nbsp;</td>
+
<td>Int[&nbsp;]</td>
- <td>&nbsp;</td>
+
<td>Y increments for EOP passes</td>
</tr>
<tr>
<td><code>upWeaveInitialPins</code></td>
- <td>&nbsp;</td>
+
<td>Int[&nbsp;]</td>
- <td>&nbsp;</td>
+
<td>Number of top pins on BOP passes</td>
</tr>
<tr>
<td><code>upWeaveInitialScan</code></td>
- <td>&nbsp;</td>
+
<td>Int</td>
- <td>&nbsp;</td>
+
<td>End BOP passes (Y coord)</td>
</tr>
<tr>
<td><code>upWeaveInitialXStarts</code></td>
- <td>&nbsp;</td>
+
<td>Int[&nbsp;]</td>
- <td>&nbsp;</td>
+
<td>X-pass indices for BOP passes</td>
</tr>
<tr>
<td><code>upWeaveInitialYFeeds</code></td>
- <td>&nbsp;</td>
+
<td>int[&nbsp;]</td>
- <td>&nbsp;</td>
+
<td>Y increments for BOP passes</td>
</tr>
<tr>
<td><code>upWeavePasses</code></td>
- <td>&nbsp;</td>
+
<td>Int</td>
- <td>&nbsp;</td>
+
<td>XPasses &times; YPasses</td>
</tr>
<tr>
<td><code>upWeaveXPasses</code></td>
- <td>&nbsp;</td>
+
<td>Int</td>
- <td>&nbsp;</td>
+
<td>Number of X passes</td>
</tr>
<tr>
<td><code>upWeaveXStarts</code></td>
- <td>&nbsp;</td>
+
<td>Int[&nbsp;]</td>
- <td>&nbsp;</td>
+
<td>X-pass indices for normal passes</td>
</tr>
<tr>
<td><code>upWeaveYFeeds</code></td>
- <td>&nbsp;</td>
+
<td>Int[&nbsp;]</td>
- <td>&nbsp;</td>
+
<td>Y increments for normal passes</td>
</tr>
<tr>
<td><code>upWeaveYOffset</code></td>
- <td>&nbsp;</td>
+
<td>Int</td>
- <td>&nbsp;</td>
+
<td>Number of blank or incomplete scans at BOP</td>
</tr>
<tr>
<td><code>upWeaveYPasses</code></td>
- <td>&nbsp;</td>
+
<td>Int</td>
- <td>&nbsp;</td>
+
<td>Number of X passes</td>
</tr>
<tr>
<td><code>upWhiteTransfer</code></td>
- <td>&nbsp;</td>
+
<td>Float[&nbsp;]</td>
- <td>&nbsp;</td>
+
<td>White transfer (monochrome devices!)</td>
</tr>
<tr>
<td><code>upWriteComponentCommands</code></td>
- <td>&nbsp;</td>
+
<td>String[&nbsp;]</td>
- <td>&nbsp;</td>
+
<td>Commands to write each component</td>
</tr>
<tr>
<td><code>upWroteData</code></td>
- <td>&nbsp;</td>
+
<td>Bool (RO)</td>
- <td>&nbsp;</td>
+
<td>Something (<code>BeginJob</code>) written to output</td>
</tr>
<tr>
<td><code>upXMoveCommand</code></td>
- <td>&nbsp;</td>
+
<td>String</td>
- <td>&nbsp;</td>
+
<td>X positioning command</td>
</tr>
<tr>
<td><code>upXStepCommand</code></td>
- <td>&nbsp;</td>
+
<td>String</td>
- <td>&nbsp;</td>
+
<td>Single step to the right</td>
</tr>
<tr>
<td><code>upYFlip</code></td>
- <td>&nbsp;</td>
+
<td>Bool</td>
- <td>&nbsp;</td>
+
<td>Flips output along the Y axis</td>
</tr>
<tr>
<td><code>upYMoveCommand</code></td>
- <td>&nbsp;</td>
+
<td>String</td>
- <td>&nbsp;</td>
+
<td>Y positioning command</td>
</tr>
<tr>
<td><code>upYStepCommand</code></td>
- <td>&nbsp;</td>
+
<td>String</td>
- <td>&nbsp;</td>
+
<td>Single step down</td>
</tr>
<tr>
<td><code>upYellowTransfer</code></td>
- <td>&nbsp;</td>
+
<td>Float[&nbsp;]</td>
- <td>&nbsp;</td>
+
<td>Yellow transfer</td>
</tr>
</table>
@@ -5113,6 +5114,7 @@ Germany<br>
+49 203 376273 telephone (MET evening hours)<br>
&lt;<a href="mailto:ghess@elmos.de">ghess@elmos.de</a>&gt;
</address>
+
<h3><a name="Uni_weaving_howto"></a><tt>Uniprint</tt> weaving parameters howto</h3>
<p>This section was contributed by Glenn Ramsey.</p>
<p>I wrote this because the documentation was very brief and I really struggled
@@ -5122,7 +5124,7 @@ on.</p>
at the X parameters yet.</p>
<ol>
<li>
-<b>Determine the nozzle geometry (upOutputPins)</b></li>
+<b>Determine the nozzle geometry (upOutputPins)</b>
<p>
You need to know how many nozzles the printer has and the spacing between
them. Usually you can find this out from the printer manual, or the printer
@@ -5136,10 +5138,10 @@ parameter.</p>
the purpose of demonstration I'll assume that we are using them all.</p>
<p>
<a name="escp2ras"></a>* escp2ras is available from Gunther Hess' page at <a href="http://www-md.e-technik.uni-rostock.de/ma/gunther/gs/index.html">http://www-md.e-technik.uni-rostock.de/ma/gunther/gs/index.html</a></p>
-
+</li>
<li><b>Determine how many passes are required (upWeaveYPasses)</b></li>
<li>The number of passes required is going to depend on the required resolution
-and the nozzle spacing.</li>
+and the nozzle spacing.
<blockquote>
<tt>passes = resolution * nozzle spacing
</tt>
@@ -5149,9 +5151,10 @@ This will be the value assigned to the upWeaveYPasses parameter.
spaced at 1/90in then 360 * 1/90 = 4 passes are required. For 720 dpi 8
passes would be required. The printer would, of course, have to be capable
of moving the paper in increments of either 360 or 720 dpi too.</p>
-<p>
+
+ </li>
<li>
-<b>Determine the normal Y feed increment (upWeaveYFeeds)</b></li></p>
+<b>Determine the normal Y feed increment (upWeaveYFeeds)</b></p>
<p>
You need to work out how much to feed the paper so that when the paper
has moved by one head length in however many passes you have then each
@@ -5180,7 +5183,7 @@ must equal the physical distance between each nozzle.</p>
<p>
</li>
<li>
-<b>Determine the beginning of page pins (upWeaveInitialPins)</b></li></p>
+<b>Determine the beginning of page pins (upWeaveInitialPins)</b></p>
<p>
These values will be assigned to the upWeaveInitialPins parameter and are
the numbers of nozzles to operate in each of the initial passes at the top
@@ -5399,77 +5402,69 @@ The extension adds a format that I have called EscNozzleMap and adds some
additional parameters to uniprint.</p><br>
<ul>
<li><code>upOutputFormat</code>selects the output method, and should be set to the value
-<code>/EscNozzleMap</code> to select this format.</li>
+<code>/EscNozzleMap</code> to select this format.
<blockquote>
<table cellpadding="0" cellspacing="0">
<tbody>
<tr valign="Top">
<td><code>/EscNozzleMap</code></td>
- <td>&nbsp;</td>
+
<td>produces output for the Epson Stylus Color 300
</td>
</tr>
</tbody>
</table>
</blockquote>
+ </li>
</ul>
<blockquote>
<table>
<tr>
- <th colspan="5">uniprint parameters for the EscNozzleMap format</th>
+ <th colspan="3">uniprint parameters for the EscNozzleMap format</th>
</tr>
<tr>
<th align="Left">Parameter</th>
- <th></th>
+
<th align="Left">Type</th>
- <th>&nbsp;&nbsp;&nbsp;</th>
+
<th align="Left">Use</th>
</tr>
<tr>
- <td colspan="5"></td>
+ <td colspan="3"></td>
</tr>
<tr>
<td><code>upNozzleMapRowsPerPass</code></td>
- <td>&nbsp;</td>
+
<td>Int
</td>
- <td>&nbsp;
- </td>
+
+
<td>output rows to generate for each pass of the head
</td>
</tr>
<tr>
<td><code>upNozzleMapPatternRepeat</code></td>
- <td>&nbsp;
- </td>
+
<td>Int
</td>
- <td>&nbsp;
- </td>
+
<td>no. of rows that correspond to the repeat pattern of the
nozzles
</td>
</tr>
<tr>
<td><code>upNozzleMapRowMask</code></td>
- <td>&nbsp;
- </td>
<td>Int[]
</td>
- <td>&nbsp;
- </td>
<td>mask indicating the colour of the nozzles
</td>
</tr>
<tr>
<td><code>upNozzleMapMaskScanOffset</code></td>
- <td>&nbsp;
- </td>
+
<td>Int[]
</td>
- <td>&nbsp;
- </td>
<td>mask indicating the physical position of the nozzles
</td>
</tr>
@@ -5495,48 +5490,42 @@ The extension adds a format that I have called EscNozzleMap and adds some
head and whether the nozzles will be used to print. The array index
defines the row index for the nozzle in the output data
and the value defines the colour of the nozzle. The mapping
- of colours to values is defined in the table below.</li>
+ of colours to values is defined in the table below.
<blockquote>
<table>
<tr>
<th align="center">colour
</th>
- <th>&nbsp;
- </th>
+
<th align="center">mask value
</th>
</tr>
<tr valign="Top" align="center">
<td><code>K</code></td>
- <td>&nbsp;
- </td>
+
<td>1
</td>
</tr>
<tr valign="Top" align="center">
<td><code>C</code></td>
- <td>&nbsp;
- </td>
+
<td>2
</tr>
<tr valign="Top" align="center">
<td><code>M</code></td>
- <td>&nbsp;
- </td>
+
<td>3
</td>
</tr>
<tr valign="Top" align="center">
<td><code>Y</code></td>
- <td>&nbsp;
- </td>
+
<td>4
</td>
</tr>
<tr valign="Top" align="center">
<td><code>no data</code></td>
- <td>&nbsp;
- </td>
+
<td>0
</td>
</tr>
@@ -5546,13 +5535,14 @@ The extension adds a format that I have called EscNozzleMap and adds some
A value of 0 means that the nozzle is not used and the row in the output data will be
padded with zeros.<br>
</li>
+
<li><code>upNozzleMapMaskScanOffset</code><br>
An array of integers that defines the physical position of the nozzles relative
to the first nozzle in the repeated group. The relative distance is measured in
printed line widths and will be different for different printing resolutions.
This parameter is used because the physical spacing of the nozzles may not
correspond to their mapping in the output data. For example the ESC300 has nozzles
- physically arranged something like this:</li>
+ physically arranged something like this:
<p></p>
<table>
<tr>
@@ -5647,6 +5637,8 @@ The extension adds a format that I have called EscNozzleMap and adds some
In the output data the data for the last nozzle in the group would be in row 5
(numbering starts at 0) but the nozzle is physically positioned at 6 spaces from
the first nozzle. </p>
+
+ </li>
</ul>
<h4>Example 1 - Epson Stylus Color 300 - 360 dpi colour</h4>
<blockquote><pre>
@@ -5750,7 +5742,7 @@ February 2001
<hr>
<p>
-<small>Copyright &copy; 2000-2021 Artifex Software, Inc. All rights reserved.</small>
+<small>Copyright &copy; 2000-2022 Artifex Software, Inc. All rights reserved.</small>
<p>
This software is provided AS-IS with no warranty, either express or
@@ -5763,40 +5755,15 @@ or contact Artifex Software, Inc., 1305 Grant Avenue - Suite 200,
Novato, CA 94945, U.S.A., +1(415)492-9861, for further information.
<p>
-<small>Ghostscript version 9.55.0, 27 September 2021
+<small>Ghostscript version 9.56.0, 29 March 2022
<!-- [3.0 end visible trailer] ============================================= -->
<!--FINISH EDITING HERE-->
-
- </div>
- </div>
- </div>
-
- <div class="footer">
- <div class="row">
- <div class="col-7 footleft">
- <ul>
- <li><a href="https://artifex.com/contact-us/" target="blank">CONTACT US</a></li>
- <li><a href="https://artifex.com/about-us/" target="blank">ABOUT</a></li>
- <li><a href="https://ghostscript.com/security.html">SECURITY</a></li>
- </ul>
- </div>
- <div class="col-1 footcenter">
- <ul>
- <li><a href="https://artifex.com/support/" target="blank">SUPPORT</a></li>
- <li><a href="https://artifex.com/blog/artifex/" target="blank">BLOG</a></li>
- <li><a href="https://artifex.com/privacy-policy/" target="blank">PRIVACY</a></li>
- </ul>
- </div>
- <div class="col-ft-3 footright"><img src="../../images/Artifex_logo.png" width="194" height="40" alt=""/> <br>
- © Copyright 2019-2021 Artifex Software, Inc. <br>
- All rights reserved.
- </div>
- </div>
- </div>
-
- <script src="http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>
- <script src="index.js"></script>
+ </div><!-- close inner -->
+ </div><!-- close outer -->
+ </article>
+ </main>
+ <script src="site.js"></script>
</body>
</html>
diff --git a/doc/Develop.htm b/doc/Develop.htm
index 14b912a1..947e347f 100644
--- a/doc/Develop.htm
+++ b/doc/Develop.htm
@@ -1,172 +1,179 @@
<!doctype html>
-<html>
+<html lang="en">
<head>
-<meta charset="UTF-8">
-<meta name="viewport" content="width=device-width, initial-scale=1.0">
-<link href="https://fonts.googleapis.com/css?family=Source+Sans+Pro" rel="stylesheet">
-<link rel="shortcut icon" type="image/png" href="../../images/favicon.png">
-<title>Information for Ghostscript Developers</title>
-<link href="style.css" rel="stylesheet" type="text/css">
-<link href="gs-style.css" rel="stylesheet" type="text/css">
+ <meta http-equiv="content-type" content="text/html; charset=utf-8">
+ <meta name="viewport" content="user-scalable=yes, initial-scale=1, width=device-width">
+ <link href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:200,200i,300,300i,400,400i,600,600i,700,700i,900,900i" rel="stylesheet">
+ <link rel="shortcut icon" href="images/favicon.svg">
+ <title>Information for Ghostscript Developers</title>
+ <link href="default.css" rel="stylesheet" type="text/css">
</head>
<body>
+ <header><div class="title"><a href="index.html"><h1 aria-label="title">Ghostscript documentation</h1><h2 aria-label="version"></h2></a></div><a href="Search.htm" aria-label="Search" id="searchSite"><div class="search"></div></a></header>
+ <main>
+ <article>
+ <div class="outer">
- <div class="header">
- <div class="row">
- <div class="col-lt-6 logo"><a href="https://www.ghostscript.com/"><img src="images/ghostscript_logo.png" width="108" height="119" alt=""></a></div>
- <div class="col-6"><div class="row"><div class="artifexlogo"><a href="https://artifex.com" target="_blank"><img src="images/Artifex_logo.png" width="194" height="40" alt=""></a></div>
- <div class="col-12"><div class="button button1"><a href="https://artifex.com/contact-us/" title="Contact Us" target="_blank">Contact Us</a></div>
- <div class="button button2 hidden-xs"><a href="https://www.ghostscript.com/download.html" title="Download">Download</a></div></div></div>
- </div>
- </div>
-
- <div class="banner">
- <div class="row">
- <div class="col-12">Information for Ghostscript Developers</div>
- </div>
- </div>
-
- <div class="main">
- <div class="row">
- <div id="sidebar">
- <div class="sidebar-item"></div>
- <div class="col-2 leftnav">
-<ul>
- <li><a href="https://www.ghostscript.com/">Home</a></li>
- <li><a href="https://www.ghostscript.com/license.html">Licensing</a></li>
- <li><a href="https://www.ghostscript.com/releases.html">Releases</a></li>
- <li><a href="https://www.ghostscript.com/documentation.html" title="Documentation">Documentation</a></li>
- <li><a href="https://www.ghostscript.com/download.html" title="Download">Download</a></li>
- <li><a href="https://www.ghostscript.com/performance.html" title="Performance">Performance</a></li>
- <li><a href="http://jbig2dec.com/" title="jbig2dec">jbig2dec</a></li>
- <li><a href="http://git.ghostscript.com/?p=ghostpdl.git;a=summary">Source</a></li>
- <li><a href="http://bugs.ghostscript.com/">Bugs</a></li>
- <li><a href="https://www.ghostscript.com/faq.html" title="FAQ">FAQ</a></li>
- </ul>
- </div>
- </div>
- <div class="col-10 page">
-
+ <div class="inner">
<!--START EDITING HERE-->
-<h2>Table of contents</h2>
-
-<blockquote><ul>
-<li><a href="#Introduction">Introduction</a></li>
-<li><a href="#Architecture">Architecture</a></li>
-<ul>
-<li><a href="#Design_goals">Design goals</a></li>
-<li><a href="#Design_principles">Design principles</a></li>
-<li><a href="#Large_scale_structure">Large-scale structure</a></li>
-<li><a href="#Object_oriented_constructs">Object-oriented constructs</a></li>
-</ul>
-<li><a href="#File_roadmap">File roadmap</a></li>
-<ul>
-<li><a href="#Substrate">Substrate</a></li>
-<li><a href="#Graphics_library">Graphics library</a></li>
-<ul>
-<li><a href="#Library_support">Support</a>,
- <a href="#Paths">Paths</a>,
- <a href="#Text">Text</a>,
- <a href="#Images">Images</a>,
- <a href="#Paint">Paint</a>,
- <a href="#Clipping">Clipping</a>,
- <a href="#Other_graphics">Other graphics</a>,
- <a href="#Driver_support">Driver support</a>,
- <a href="#FAPI_support_gx">Font API support</a>
- <a href="#Visual_trace">Visual Trace</a></li>
-</ul>
-<li><a href="#Device_drivers">Device drivers</a></li>
-<ul>
-<li><a href="#Internal_devices">Internal devices</a>,
- <a href="#PS_and_PDF_writers">PostScript and PDF writers</a>,
- <a href="#High_level_devices">Other high-level devices</a>,
- <a href="#Other_maintained_drivers">Other maintained drivers</a>,
- <a href="#Contributed_drivers">Contributed drivers</a></li>
-</ul>
-<li><a href="#PostScript_interpreter">PostScript interpreter</a></li>
-<ul>
-<li><a href="#Main_program">Main program</a>,
- <a href="#Data_structures">Data structures</a>,
- <a href="#Stacks">Stacks</a>,
- <a href="#Interpreter_loop">Interpreter loop</a>,
- <a href="#Scanning_parsing">Scanning/parsing</a>,
- <a href="#Standard_operators">Standard operators</a>,
- <a href="#Non_standard_operators">Non-standard operators</a>,
- <a href="#Interpreter_support">Interpreter support</a>,
- <a href="#PostScript_code">PostScript code</a></li>
-</ul>
-<li><a href="#PDF_interpreter">PDF interpreter</a></li>
-<li><a href="#PPD">PostScript Printer Description</a></li>
-<li><a href="#Build_process">Build process</a></li>
-<ul>
-<li><a href="#Makefile_structure">Makefile structure</a>,
- <a href="#dev_files">.dev files</a>,
- <a href="#Generators">Generators</a>,
- <a href="#Build_support">Support</a></li>
-</ul>
-<li><a href="#Utilities">Utilities</a></li>
-<ul>
-<li><a href="#Utilities_in_PostScript">Utilities in PostScript</a></li>
-<li><a href="#Utility_scripts">Utility scripts</a></li>
-</ul>
-</ul>
-<li><a href="#Memory_management">Memory management</a></li>
-<ul>
-<li><a href="#Memory_manager_architecture">Memory manager architecture</a></li>
-<ul>
-<li><a href="#Objects_vs_strings">Objects vs strings</a>,
- <a href="#Structure_descriptors">Structure descriptors</a>,
- <a href="#Garbage_collection">Garbage collection</a>,
- <a href="#Movability">Movability</a>,
- <a href="#Parent_hierarchy">Parent hierarchy</a>,
- <a href="#Allocator_API">Allocator API</a></li>
-</ul>
-<li><a href="#Freeing_storage">Freeing storage</a></li>
-<ul>
-<li><a href="#Explicit_freeing">Explicit freeing</a>,
- <a href="#Reference_counting">Reference counting</a>,
- <a href="#Real_garbage_collection">(Real) garbage collection</a></li>
-</ul>
-<li><a href="#Special_implementations">Special implementations</a></li>
-<ul>
-<li><a href="#malloc">malloc</a>,
- <a href="#Locking">Locking</a>,
- <a href="#Retrying">Retrying</a>,
- <a href="#Chunk">Chunk</a></li>
-</ul>
-<li><a href="#Standard_implementation">Standard implementation</a></li>
-<li><a href="#PostScript_interpreter_extensions">PostScript interpreter extensions</a></li>
-<ul>
-<li><a href="#Refs">Refs (PostScript "objects")</a>,
- <a href="#save_forgetsave_restore">save/.forgetsave/restore</a>,
- <a href="#Stable_allocators">Stable allocators</a>,
- <a href="#Interpreter_GC">Garbage collection</a></li>
-</ul>
-</ul>
-<li><a href="#Portability">Portability</a></li>
-<ul>
-<li><a href="#Structural">Structural</a></li>
-<ul>
-<li><a href="#CPU_and_compiler">CPU and compiler</a>,
- <a href="#Library_headers">Library headers</a>,
- <a href="#Cross_platform_APIs">Cross-platform APIs</a>,
- <a href="#Makefiles">Makefiles</a></li>
-</ul>
-<li><a href="#Coding">Coding</a></li>
-<ul>
-<li><a href="#Explicit_dependencies">Explicit dependencies</a>,
- <a href="#Implicit_dependencies">Implicit dependencies</a></li>
-</ul>
-<li><a href="#Platform_specific_code">Platform-specific code</a></li>
-</ul>
-<li><a href="#Troubleshooting">Troubleshooting and debugging</a></li>
-<li><a href="#Profiling">Profiling</a></li>
-<ul>
-<li><a href="#ProfilingMSVC6">Profiling with Microsoft Developer Studio 6</a></li>
+<h1>Information for Ghostscript Developers</h1>
+<h2><a name="toc"></a>Table of contents</h2>
+<ul class="toc">
+ <li><a href="#Introduction">Introduction</a></li>
+ <li><a href="#Architecture">Architecture</a></li>
+ <li>
+ <ul>
+ <li><a href="#Design_goals">Design goals</a></li>
+ <li><a href="#Design_principles">Design principles</a></li>
+ <li><a href="#Large_scale_structure">Large-scale structure</a></li>
+ <li><a href="#Object_oriented_constructs">Object-oriented constructs</a></li>
+ </ul>
+ </li>
+ <li><a href="#File_roadmap">File roadmap</a></li>
+ <li>
+ <ul>
+ <li><a href="#Substrate">Substrate</a></li>
+ <li><a href="#Graphics_library">Graphics library</a></li>
+ <li>
+ <ul>
+ <li><a href="#Library_support">Support</a>,
+ <a href="#Paths">Paths</a>,
+ <a href="#Text">Text</a>,
+ <a href="#Images">Images</a>,
+ <a href="#Paint">Paint</a>,
+ <a href="#Clipping">Clipping</a>,
+ <a href="#Other_graphics">Other graphics</a>,
+ <a href="#Driver_support">Driver support</a>,
+ <a href="#FAPI_support_gx">Font API support</a>
+ <a href="#Visual_trace">Visual Trace</a>
+ </li>
+ </ul>
+ </li>
+ <li><a href="#Device_drivers">Device drivers</a></li>
+ <li>
+ <ul>
+ <li><a href="#Internal_devices">Internal devices</a>,
+ <a href="#PS_and_PDF_writers">PostScript and PDF writers</a>,
+ <a href="#High_level_devices">Other high-level devices</a>,
+ <a href="#Other_maintained_drivers">Other maintained drivers</a>,
+ <a href="#Contributed_drivers">Contributed drivers</a></li>
+ </ul>
+ </li>
+ <li><a href="#PostScript_interpreter">PostScript interpreter</a></li>
+ <li>
+ <ul>
+ <li><a href="#Main_program">Main program</a>,
+ <a href="#Data_structures">Data structures</a>,
+ <a href="#Stacks">Stacks</a>,
+ <a href="#Interpreter_loop">Interpreter loop</a>,
+ <a href="#Scanning_parsing">Scanning/parsing</a>,
+ <a href="#Standard_operators">Standard operators</a>,
+ <a href="#Non_standard_operators">Non-standard operators</a>,
+ <a href="#Interpreter_support">Interpreter support</a>,
+ <a href="#PostScript_code">PostScript code</a></li>
+ </ul>
+ </li>
+ <li><a href="#PDF_interpreter">PDF interpreter</a></li>
+ <li><a href="#PPD">PostScript Printer Description</a></li>
+ <li><a href="#Build_process">Build process</a></li>
+ <li>
+ <ul>
+ <li><a href="#Makefile_structure">Makefile structure</a>,
+ <a href="#dev_files">.dev files</a>,
+ <a href="#Generators">Generators</a>,
+ <a href="#Build_support">Support</a></li>
+ </ul>
+ </li>
+ <li><a href="#Utilities">Utilities</a></li>
+ <li>
+ <ul>
+ <li><a href="#Utilities_in_PostScript">Utilities in PostScript</a></li>
+ <li><a href="#Utility_scripts">Utility scripts</a></li>
+ </ul>
+ </li>
+ </ul>
+ </li>
+ <li><a href="#Memory_management">Memory management</a></li>
+ <li>
+ <ul>
+ <li><a href="#Memory_manager_architecture">Memory manager architecture</a></li>
+ <li>
+ <ul>
+ <li><a href="#Objects_vs_strings">Objects vs strings</a>,
+ <a href="#Structure_descriptors">Structure descriptors</a>,
+ <a href="#Garbage_collection">Garbage collection</a>,
+ <a href="#Movability">Movability</a>,
+ <a href="#Parent_hierarchy">Parent hierarchy</a>,
+ <a href="#Allocator_API">Allocator API</a>
+ </li>
+ </ul>
+ </li>
+ <li><a href="#Freeing_storage">Freeing storage</a></li>
+ <li>
+ <ul>
+ <li><a href="#Explicit_freeing">Explicit freeing</a>,
+ <a href="#Reference_counting">Reference counting</a>,
+ <a href="#Real_garbage_collection">(Real) garbage collection</a>
+ </li>
+ </ul>
+ </li>
+ <li><a href="#Special_implementations">Special implementations</a></li>
+ <li>
+ <ul>
+ <li><a href="#malloc">malloc</a>,
+ <a href="#Locking">Locking</a>,
+ <a href="#Retrying">Retrying</a>,
+ <a href="#Chunk">Chunk</a>
+ </li>
+ </ul>
+ </li>
+ <li><a href="#Standard_implementation">Standard implementation</a></li>
+ <li><a href="#PostScript_interpreter_extensions">PostScript interpreter extensions</a></li>
+ <li>
+ <ul>
+ <li><a href="#Refs">Refs (PostScript "objects")</a>,
+ <a href="#save_forgetsave_restore">save/.forgetsave/restore</a>,
+ <a href="#Stable_allocators">Stable allocators</a>,
+ <a href="#Interpreter_GC">Garbage collection</a></li>
+ </ul>
+ </li>
+ </ul>
+ </li>
+ <li><a href="#Portability">Portability</a></li>
+ <li>
+ <ul>
+ <li><a href="#Structural">Structural</a></li>
+ <li>
+ <ul>
+ <li><a href="#CPU_and_compiler">CPU and compiler</a>,
+ <a href="#Library_headers">Library headers</a>,
+ <a href="#Cross_platform_APIs">Cross-platform APIs</a>,
+ <a href="#Makefiles">Makefiles</a>
+ </li>
+ </ul>
+ </li>
+ <li><a href="#Coding">Coding</a></li>
+ <li>
+ <ul>
+ <li><a href="#Explicit_dependencies">Explicit dependencies</a>,
+ <a href="#Implicit_dependencies">Implicit dependencies</a></li>
+ </ul>
+ </li>
+ <li><a href="#Platform_specific_code">Platform-specific code</a></li>
+ </ul>
+ </li>
+
+ <li><a href="#Troubleshooting">Troubleshooting and debugging</a></li>
+ <li><a href="#Profiling">Profiling</a></li>
+ <li>
+ <ul>
+ <li><a href="#ProfilingMSVC6">Profiling with Microsoft Developer Studio 6</a></li>
+ </ul>
+ </li>
</ul>
-</blockquote>
+
<!-- [1.2 end table of contents] =========================================== -->
@@ -1666,60 +1673,73 @@ Shared support:
<dd>
<dl>
-<dt>
-Writing fonts:
-<dd>
-<a href="../devices/vector/gdevpsf.h">devices/vector/gdevpsf.h</a>,
-<a href="../devices/vector/gdevpsf1.c">devices/vector/gdevpsf1.c</a>,
-<a href="../devices/vector/gdevpsf2.c">devices/vector/gdevpsf2.c</a>,
-<a href="../devices/vector/gdevpsfm.c">devices/vector/gdevpsfm.c</a>,
-<a href="../devices/vector/gdevpsft.c">devices/vector/gdevpsft.c</a>,
-<a href="../devices/vector/gdevpsfu.c">devices/vector/gdevpsfu.c</a>,
-<a href="../devices/vector/gdevpsfx.c">devices/vector/gdevpsfx.c</a>,
-<a href="../base/gscedata.c">base/gscedata.c</a>,
-<a href="../base/gscedata.h">base/gscedata.h</a>,
-<a href="../base/gscencs.c">base/gscencs.c</a>,
-<a href="../base/gscencs.h">base/gscencs.h</a>.
-
-<dt>
-Other:
-<dd>
-<a href="../devices/vector/gdevpsdf.h">devices/vector/gdevpsdf.h</a>,
-<a href="../devices/vector/gdevpsdi.c">devices/vector/gdevpsdi.c</a>,
-<a href="../devices/vector/gdevpsdp.c">devices/vector/gdevpsdp.c</a>,
-<a href="../devices/vector/gdevpsds.c">devices/vector/gdevpsds.c</a>,
-<a href="../devices/vector/gdevpsds.h">devices/vector/gdevpsds.h</a>,
-<a href="../devices/vector/gdevpsdu.c">devices/vector/gdevpsdu.c</a>.
+ <dt>
+ Writing fonts:</dt>
+ <dd>
+ <a href="../devices/vector/gdevpsf.h">devices/vector/gdevpsf.h</a>,
+ <a href="../devices/vector/gdevpsf1.c">devices/vector/gdevpsf1.c</a>,
+ <a href="../devices/vector/gdevpsf2.c">devices/vector/gdevpsf2.c</a>,
+ <a href="../devices/vector/gdevpsfm.c">devices/vector/gdevpsfm.c</a>,
+ <a href="../devices/vector/gdevpsft.c">devices/vector/gdevpsft.c</a>,
+ <a href="../devices/vector/gdevpsfu.c">devices/vector/gdevpsfu.c</a>,
+ <a href="../devices/vector/gdevpsfx.c">devices/vector/gdevpsfx.c</a>,
+ <a href="../base/gscedata.c">base/gscedata.c</a>,
+ <a href="../base/gscedata.h">base/gscedata.h</a>,
+ <a href="../base/gscencs.c">base/gscencs.c</a>,
+ <a href="../base/gscencs.h">base/gscencs.h</a>.
+
+ <dt>
+ Other:</dt>
+ <dd>
+ <a href="../devices/vector/gdevpsdf.h">devices/vector/gdevpsdf.h</a>,
+ <a href="../devices/vector/gdevpsdi.c">devices/vector/gdevpsdi.c</a>,
+ <a href="../devices/vector/gdevpsdp.c">devices/vector/gdevpsdp.c</a>,
+ <a href="../devices/vector/gdevpsds.c">devices/vector/gdevpsds.c</a>,
+ <a href="../devices/vector/gdevpsds.h">devices/vector/gdevpsds.h</a>,
+ <a href="../devices/vector/gdevpsdu.c">devices/vector/gdevpsdu.c</a>.
</dl>
+<dl>
<dt>
-Encapsulated PostScript output driver (epswrite):
+Encapsulated PostScript output driver (epswrite):</dt>
<dd>
<a href="../devices/vector/gdevpsu.c">devices/vector/gdevpsu.c</a>,
<a href="../devices/vector/gdevpsu.h">devices/vector/gdevpsu.h</a>.
+</dd>
+</dl>
+<dl>
<dt>
-PDF output driver (pdfwrite):
-<dd>
+PDF output driver (pdfwrite):</dt>
+<dd></dd>
+</dl>
+
<dl>
<dt>
-Substrate:
+Substrate:</dt>
<dd>
<a href="../devices/vector/gdevpdfo.c">devices/vector/gdevpdfo.c</a>,
<a href="../devices/vector/gdevpdfo.h">devices/vector/gdevpdfo.h</a>,
<a href="../devices/vector/gdevpdfr.c">devices/vector/gdevpdfr.c</a>,
<a href="../devices/vector/gdevpdfu.c">devices/vector/gdevpdfu.c</a>.
+</dd>
+</dl>
+<dl>
<dt>
-Old text and fonts:
+Old text and fonts:</dt>
<dd>
<a href="../devices/vector/gdevpdfe.c">devices/vector/gdevpdfe.c</a>,
<a href="../devices/vector/gdevpdft.c">devices/vector/gdevpdft.c</a>.
+</dd>
+</dl>
+
+<dl>
<dt>
-New text and fonts:
+New text and fonts:</dt>
<dd>
<a href="../devices/vector/gdevpdt.c">devices/vector/gdevpdt.c</a>,
<a href="../devices/vector/gdevpdt.h">devices/vector/gdevpdt.h</a>,
@@ -1744,9 +1764,12 @@ New text and fonts:
<a href="../devices/vector/gdevpdtx.h">devices/vector/gdevpdtx.h</a>.
<a href="../base/ConvertUTF.h">base/ConvertUTF.h</a>,
<a href="../base/ConvertUTF.c">base/ConvertUTF.c</a>,
+</dd>
+</dl>
+<dl>
<dt>
-Graphics:
+Graphics:</dt>
<dd>
<a href="../devices/vector/gdevpdfc.c">devices/vector/gdevpdfc.c</a>,
<a href="../devices/vector/gdevpdfc.h">devices/vector/gdevpdfc.h</a>,
@@ -1756,31 +1779,39 @@ Graphics:
<a href="../devices/vector/gdevpdfk.c">devices/vector/gdevpdfk.c</a>,
<a href="../devices/vector/gdevpdft.c">devices/vector/gdevpdft.c</a>.
<a href="../devices/vector/gdevpdfv.c">devices/vector/gdevpdfv.c</a>.
+</dd>
+</dl>
+<dl>
<dt>
-Images:
+Images:</dt>
<dd>
<a href="../devices/vector/gdevpdfb.c">devices/vector/gdevpdfb.c</a>,
<a href="../devices/vector/gdevpdfi.c">devices/vector/gdevpdfi.c</a>,
<a href="../devices/vector/gdevpdfj.c">devices/vector/gdevpdfj.c</a>.
+</dd>
+</dl>
+<dl>
<dt>
-Other:
+Other:</dt>
<dd>
<a href="../devices/vector/gdevpdf.c">devices/vector/gdevpdf.c</a>,
<a href="../devices/vector/gdevpdfm.c">devices/vector/gdevpdfm.c</a>,
<a href="../devices/vector/gdevpdfp.c">devices/vector/gdevpdfp.c</a>,
<a href="../devices/vector/gdevpdfx.h">devices/vector/gdevpdfx.h</a>.
<a href="../devices/vector/gdevpdfb.h">devices/vector/gdevpdfb.h</a>.
+</dd>
</dl>
-</dl>
+
<h4><a name="High_level_devices"></a>Other high-level devices</h4>
-<p>
-PCL XL output device (pxlmono, pxlcolor):
+<dl>
+ <dt>
+PCL XL output device (pxlmono, pxlcolor):</dt>
<dd>
<a href="../devices/vector/gdevpx.c">devices/vector/gdevpx.c</a>,
<a href="../base/gdevpxat.h">base/gdevpxat.h</a>,
@@ -1788,19 +1819,26 @@ PCL XL output device (pxlmono, pxlcolor):
<a href="../base/gdevpxop.h">base/gdevpxop.h</a>,
<a href="../devices/gdevpxut.c">devices/gdevpxut.c</a>,
<a href="../devices/gdevpxut.h">devices/gdevpxut.h</a>.
+</dd>
+</dl>
+
+<dl>
<dt>
-Text extraction:
+Text extraction:</dt>
<dd>
<a href="../devices/vector/gdevtxtw.c">devices/vector/gdevtxtw.c</a>.
-
+</dd>
+</dl>
+<dl>
<dt>
-Other high-level devices:
+Other high-level devices:</dt>
<dd>
<a href="../devices/gdevtrac.c">devices/gdevtrac.c</a>.
-
+</dd>
</dl>
+
<h4><a name="Other_maintained_drivers"></a>Other maintained drivers</h4>
<p>
@@ -1811,7 +1849,7 @@ sense as the Ghostscript core code.
<dl>
<dt>
-Display drivers:
+Display drivers:</dt>
<dd>
<a href="../devices/gdev8bcm.c">devices/gdev8bcm.c</a>,
<a href="../devices/gdev8bcm.h">devices/gdev8bcm.h</a>,
@@ -1826,15 +1864,19 @@ Display drivers:
<a href="../devices/gdevsvga.c">devices/gdevsvga.c</a>,
<a href="../devices/gdevsvga.h">devices/gdevsvga.h</a>,
<a href="../devices/gdevvglb.c">devices/gdevvglb.c</a>.
+</dd>
+</dl>
+<dl>
<dt>
-Window system drivers:
-<dd>
+Window system drivers:</dt>
+<dd></dd>
+</dl>
<dl>
<dt>
-X Windows:
+X Windows:</dt>
<dd>
<a href="../devices/gdevx.c">devices/gdevx.c</a>,
<a href="../devices/gdevx.h">devices/gdevx.h</a>,
@@ -1843,33 +1885,38 @@ X Windows:
<a href="../devices/gdevxcmp.h">devices/gdevxcmp.h</a>,
<a href="../devices/gdevxini.c">devices/gdevxini.c</a>,
<a href="../devices/gdevxres.c">devices/gdevxres.c</a>.
+</dd>
+</dl>
+<dl>
<dt>
-Microsoft Windows:
+Microsoft Windows:</dt>
<dd>
<a href="../devices/gdevmswn.c">devices/gdevmswn.c</a>,
<a href="../devices/gdevmswn.h">devices/gdevmswn.h</a>,
<a href="../devices/gdevmsxf.c">devices/gdevmsxf.c</a>,
<a href="../devices/gdevwddb.c">devices/gdevwddb.c</a>,
-<a href="../devices/gdevwdib.c">devices/gdevwdib.c</a>.
+<a href="../devices/gdevwdib.c">devices/gdevwdib.c</a>.</dd>
<dt>
-OS/2 Presentation Manager:
+OS/2 Presentation Manager:</dt>
<dd>
<a href="../devices/gdevpm.h">devices/gdevpm.h</a>,
<a href="../base/gspmdrv.c">base/gspmdrv.c</a>,
-<a href="../base/gspmdrv.h">base/gspmdrv.h</a>.
+<a href="../base/gspmdrv.h">base/gspmdrv.h</a>.</dd>
</dl>
+<dl>
<dt>
-Raster file output drivers:
-<dd>
+Raster file output drivers:</dt>
+<dd></dd>
+</dl>
<dl>
<dt>
-Fax and TIFF:
+Fax and TIFF:</dt>
<dd>
<a href="../devices/gdevfax.c">devices/gdevfax.c</a>,
<a href="../devices/gdevfax.h">devices/gdevfax.h</a>,
@@ -1880,6 +1927,8 @@ Fax and TIFF:
<a href="../devices/gdevtfnx.c">devices/gdevtfnx.c</a>.
<a href="../devices/gdevtsep.c">devices/gdevtsep.c</a>.
+</dd>
+
<dt>
Example DeviceN devices:
<dd>
@@ -1889,6 +1938,8 @@ Example DeviceN devices:
<a href="../devices/gdevpsd.c">devices/gdevpsd.c</a>,
<a href="../devices/gdevperm.c">devices/gdevperm.c</a>.
+</dd>
+
<dt>
Other raster file formats:
<dd>
@@ -1905,8 +1956,11 @@ Other raster file formats:
<a href="../devices/gdevpng.c">devices/gdevpng.c</a>,
<a href="../devices/gdevpsim.c">devices/gdevpsim.c</a>.
+</dd>
+
</dl>
+<dl>
<dt>
Printer drivers:
<dd>
@@ -4740,7 +4794,7 @@ Edit the output file name in the line 5.
<hr>
<p>
-<small>Copyright &copy; 2001-2021 Artifex Software, Inc. All rights
+<small>Copyright &copy; 2001-2022 Artifex Software, Inc. All rights
reserved.</small>
<p>
@@ -4754,41 +4808,16 @@ or contact Artifex Software, Inc., 1305 Grant Avenue - Suite 200,
Novato, CA 94945, U.S.A., +1(415)492-9861, for further information.
<p>
-<small>Ghostscript version 9.55.0, 27 September 2021
+<small>Ghostscript version 9.56.0, 29 March 2022
<!-- [3.0 end visible trailer] ============================================= -->
<!--FINISH EDITING HERE-->
-
- </div>
- </div>
- </div>
-
- <div class="footer">
- <div class="row">
- <div class="col-7 footleft">
- <ul>
- <li><a href="https://artifex.com/contact-us/" target="blank">CONTACT US</a></li>
- <li><a href="https://artifex.com/about-us/" target="blank">ABOUT</a></li>
- <li><a href="https://ghostscript.com/security.html">SECURITY</a></li>
- </ul>
- </div>
- <div class="col-1 footcenter">
- <ul>
- <li><a href="https://artifex.com/support/" target="blank">SUPPORT</a></li>
- <li><a href="https://artifex.com/blog/artifex/" target="blank">BLOG</a></li>
- <li><a href="https://artifex.com/privacy-policy/" target="blank">PRIVACY</a></li>
- </ul>
- </div>
- <div class="col-ft-3 footright"><img src="images/Artifex_logo.png" width="194" height="40" alt=""/> <br>
- © Copyright 2019-2021 Artifex Software, Inc. <br>
- All rights reserved.
- </div>
- </div>
- </div>
-
- <script src="http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>
- <script src="index.js"></script>
+ </div><!-- close inner -->
+ </div><!-- close outer -->
+ </article>
+ </main>
+ <script src="site.js"></script>
</body>
</html>
diff --git a/doc/Devices.htm b/doc/Devices.htm
index e1629f51..34c95b14 100644
--- a/doc/Devices.htm
+++ b/doc/Devices.htm
@@ -1,119 +1,96 @@
<!doctype html>
-<html>
+<html lang="en">
<head>
-<meta charset="UTF-8">
-<meta name="viewport" content="width=device-width, initial-scale=1.0">
-<link href="https://fonts.googleapis.com/css?family=Source+Sans+Pro" rel="stylesheet">
-<link rel="shortcut icon" type="image/png" href="../../images/favicon.png">
-<title>Details of Ghostscript Output Devices</title>
- <!-- Originally: devices.txt -->
-<link href="style.css" rel="stylesheet" type="text/css">
-<link href="gs-style.css" rel="stylesheet" type="text/css">
+ <meta http-equiv="content-type" content="text/html; charset=utf-8">
+ <meta name="viewport" content="user-scalable=yes, initial-scale=1, width=device-width">
+ <link href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:200,200i,300,300i,400,400i,600,600i,700,700i,900,900i" rel="stylesheet">
+ <link rel="shortcut icon" href="images/favicon.svg">
+ <title>Details of Ghostscript Output Devices</title>
+ <link href="default.css" rel="stylesheet" type="text/css">
</head>
<body>
+ <header><div class="title"><a href="index.html"><h1 aria-label="title">Ghostscript documentation</h1><h2 aria-label="version"></h2></a></div><a href="Search.htm" aria-label="Search" id="searchSite"><div class="search"></div></a></header>
+ <main>
+ <article>
+ <div class="outer">
- <div class="header">
- <div class="row">
- <div class="col-lt-6 logo"><a href="https://www.ghostscript.com/"><img src="images/ghostscript_logo.png" width="108" height="119" alt=""></a></div>
- <div class="col-6"><div class="row"><div class="artifexlogo"><a href="https://artifex.com" target="_blank"><img src="images/Artifex_logo.png" width="194" height="40" alt=""></a></div>
- <div class="col-12"><div class="button button1"><a href="https://artifex.com/contact-us/" title="Contact Us" target="_blank">Contact Us</a></div>
- <div class="button button2 hidden-xs"><a href="https://www.ghostscript.com/download.html" title="Download">Download</a></div></div></div>
- </div>
- </div>
- </div>
-
- <div class="banner">
- <div class="row">
- <div class="col-12">Details of Ghostscript Output Devices</div>
- </div>
- </div>
-
- <div class="main">
- <div class="row">
- <div id="sidebar">
- <div class="sidebar-item"></div>
- <div class="col-2 leftnav">
-<ul>
- <li><a href="https://www.ghostscript.com/">Home</a></li>
- <li><a href="https://www.ghostscript.com/license.html">Licensing</a></li>
- <li><a href="https://www.ghostscript.com/releases.html">Releases</a></li>
- <li><a href="https://www.ghostscript.com/documentation.html" title="Documentation">Documentation</a></li>
- <li><a href="https://www.ghostscript.com/download.html" title="Download">Download</a></li>
- <li><a href="https://www.ghostscript.com/performance.html" title="Performance">Performance</a></li>
- <li><a href="http://jbig2dec.com/" title="jbig2dec">jbig2dec</a></li>
- <li><a href="http://git.ghostscript.com/?p=ghostpdl.git;a=summary">Source</a></li>
- <li><a href="http://bugs.ghostscript.com/">Bugs</a></li>
- <li><a href="https://www.ghostscript.com/faq.html" title="FAQ">FAQ</a></li>
- </ul>
- </div>
- </div>
- <div class="col-10 page">
-
+ <div class="inner">
<!--START EDITING HERE-->
-<!-- [1.0 begin visible header] ============================================ -->
+<h1>Details of Ghostscript Output Devices</h1>
+
+<h2><a name="toc"></a>Table of contents</h2>
+<ul class="toc">
+ <li><a href="#Measurements">Notes on measurements</a></li>
+ <li><a href="#File_formats">Image file formats</a></li>
+ <li>
+ <ul>
+ <li><a href="#PNG">PNG file format</a></li>
+ <li><a href="#JFIF">JPEG file format (JFIF)</a></li>
+ <li><a href="#PNM">PNM file format</a></li>
+ <li><a href="#TIFF">TIFF file formats</a></li>
+ <li><a href="#fax">fax file formats</a></li>
+ <li><a href="#BMP">BMP file format</a></li>
+ <li><a href="#PCX">PCX file format</a></li>
+ <li><a href="#PSD">PSD file format (DeviceN color model)</a></li>
+ <li><a href="#PDFimage">Bitmap PDF output, PCLm output</a></li>
+ </ul>
+ </li>
+ <li><a href="#OCR-Devices">OCR Devices</a></li>
+ <li>
+ <ul>
+ <li><a href="#OCR">OCR text output</a></li>
+ <li><a href="#PDFocr">Bitmap PDF output (with OCR text)</a></li>
+ <li><a href="#PDFwriteocr">Vector PDF output (with OCR Unicode CMaps)</a></li>
+ </ul>
+ </li>
+ <li><a href="#High-level">High level formats</a></li>
+ <li>
+ <ul>
+ <li><a href="#PDF">PDF file output</a></li>
+ <li><a href="#OCR">OCR devices</a></li>
+ <li><a href="#PS">PostScript file output</a></li>
+ <li><a href="#EPS">EPS file output</a></li>
+ <li><a href="#PXL">PCL-XL file output</a></li>
+ <li><a href="#TXT">Text output</a></li>
+ </ul>
+ </li>
+ <li><a href="#Display_devices">Display devices</a></li>
+ <li>
+ <ul>
+ <li><a href="#x11_devices">X Window System</a></li>
+ <li><a href="#display_device">display device (MS Windows, OS/2, gtk+)</a></li>
+ </ul>
+ </li>
+ <li><a href="#IJS">IJS - Inkjet and other raster devices</a></li>
+ <li><a href="#Rinkj">Rinkj - Resplendent inkjet driver</a></li>
+ <li><a href="#HP_ijs">HP Deskjet official drivers</a></li>
+ <li><a href="#gimp-print">Gimp-Print driver collection</a></li>
+ <li><a href="#Win">MS Windows printers</a></li>
+ <li><a href="#SPARCprinter">Sun SPARCprinter</a></li>
+ <li>
+ <ul>
+ <li><a href="#SPARC_install">Installation</a></li>
+ <li><a href="#SPARC_problems">Problems</a></li>
+ </ul>
+ </li>
+ <li><a href="#Apple">Apple dot matrix printer</a></li>
+ <li><a href="#Test">Special and Test devices</a></li>
+ <li>
+ <ul>
+ <li><a href="#Bit">Raw 'bit' output.</a></li>
+ <li><a href="#Bounding_box_output">Bounding Box output.</a></li>
+ <li><a href="#Ink_coverage_output">Ink coverage output.</a></li>
+ <li><a href="#Permute">Permutation (DeviceN color model)</a></li>
+ <li><a href="#SPOT">spotcmyk (DeviceN color model)</a></li>
+ <li><a href="#XCF">XCF (DeviceN color model)</a></li>
+ <li><a href="#bitraw">Raw 'bit' devices</a></li>
+ </ul>
+ </li>
+</ul>
-<!-- [1.1 begin headline] ================================================== -->
-<h2>Table of contents</h2>
-
-<blockquote><ul>
-<li><a href="#Measurements">Notes on measurements</a></li>
-<li><a href="#File_formats">Image file formats</a></li>
-<ul>
-<li><a href="#PNG">PNG file format</a></li>
-<li><a href="#JFIF">JPEG file format (JFIF)</a></li>
-<li><a href="#PNM">PNM file format</a></li>
-<li><a href="#TIFF">TIFF file formats</a></li>
-<li><a href="#fax">fax file formats</a></li>
-<li><a href="#BMP">BMP file format</a></li>
-<li><a href="#PCX">PCX file format</a></li>
-<li><a href="#PSD">PSD file format (DeviceN color model)</a></li>
-<li><a href="#PDFimage">Bitmap PDF output, PCLm output</a></li>
-</ul>
-<li><a href="#OCR-Devices">OCR Devices</a></li>
-<ul>
-<li><a href="#OCR">OCR text output</a></li>
-<li><a href="#PDFocr">Bitmap PDF output (with OCR text)</a></li>
-<li><a href="#PDFwriteocr">Vector PDF output (with OCR Unicode CMaps)</a></li>
-</ul>
-<li><a href="#High-level">High level formats</a></li>
-<ul>
-<li><a href="#PDF">PDF file output</a></li>
-<li><a href="#OCR">OCR devices</a></li>
-<li><a href="#PS">PostScript file output</a></li>
-<li><a href="#EPS">EPS file output</a></li>
-<li><a href="#PXL">PCL-XL file output</a></li>
-<li><a href="#TXT">Text output</a></li>
-</ul>
-<li><a href="#Display_devices">Display devices</a></li>
-<ul>
-<li><a href="#x11_devices">X Window System</a></li>
-<li><a href="#display_device">display device (MS Windows, OS/2, gtk+)</a></li>
-</ul>
-<li><a href="#IJS">IJS - Inkjet and other raster devices</a></li>
-<li><a href="#Rinkj">Rinkj - Resplendent inkjet driver</a></li>
-<li><a href="#HP_ijs">HP Deskjet official drivers</a></li>
-<li><a href="#gimp-print">Gimp-Print driver collection</a></li>
-<li><a href="#Win">MS Windows printers</a></li>
-<li><a href="#SPARCprinter">Sun SPARCprinter</a></li>
-<ul>
-<li><a href="#SPARC_install">Installation</a></li>
-<li><a href="#SPARC_problems">Problems</a></li>
-</ul>
-<li><a href="#Apple">Apple dot matrix printer</a></li>
-<li><a href="#Test">Special and Test devices</a></li>
-<ul>
-<li><a href="#Bit">Raw 'bit' output.</a></li>
-<li><a href="#Bounding_box_output">Bounding Box output.</a></li>
-<li><a href="#Ink_coverage_output">Ink coverage output.</a></li>
-<li><a href="#Permute">Permutation (DeviceN color model)</a></li>
-<li><a href="#SPOT">spotcmyk (DeviceN color model)</a></li>
-<li><a href="#XCF">XCF (DeviceN color model)</a></li>
-<li><a href="#bitraw">Raw 'bit' devices</a></li>
-</ul>
-</ul></blockquote>
<!-- [1.2 end table of contents] =========================================== -->
@@ -215,11 +192,12 @@ The default value if you don't specify this options is usually 72 <abbr>dpi</abb
<dd><p>These options control the use of subsample antialiasing. Their use is highly recommended
for producing high quality rasterizations of the input files. The size of the subsampling
box <em>n</em> should be 4 for optimum output, but smaller values can be used for faster
-rendering. Antialiasing is enabled separately for text and graphics content.</p></dd>
+rendering. Antialiasing is enabled separately for text and graphics content.</p>
<p>Because this feature relies upon rendering the input it is incompatible, and will generate
an error on attempted use, with any of the vector output devices.</p>
-
-</dl></blockquote>
+</dd>
+</dl>
+</blockquote>
<p>
It is also conventional to call Ghostscript with the '<code>-dSAFER -dBATCH -dNOPAUSE</code>' trio
@@ -245,29 +223,31 @@ black-and-white for special needs. The <code>pngmonod</code> device is also a
black-and-white device, but the output is formed from an internal 8 bit grayscale
rendering which is then error diffused and converted down to 1bpp.</p>
-<p>The <code>pngalpha</code> device is 32-bit RGBA color with transparency
+<p>The <code>png16malpha</code> and <code>pngalpha</code> devices are 32-bit RGBA color with transparency
indicating pixel coverage. The background is transparent unless
it has been explicitly filled. PDF 1.4 transparent files do not
-give a transparent background with this device. Text and graphics
-anti-aliasing are enabled by default.</p>
+give a transparent background with this device. The devices differ, in that the <code>pngalpha</code> device
+enables Text and graphics anti-aliasing by default. We now recommend that people use the <code>png16malpha</code>
+device in preference, and achieve any required antialiasing via the <code>DownScaleFactor</code> parameter,
+as this gives better results in many cases.</p>
<h4>Options</h4>
-<p>The <code>pngmonod</code>, <code>png16m</code>, <code>pnggray</code> and
+<p>The <code>pngmonod</code>, <code>png16m</code>, <code>pnggray</code>, <code>png16malpha</code> and
<code>pngalpha</code> devices all respond to the following:</p>
<blockquote>
<dl>
<dt><code>-dDownScaleFactor=</code><b><em>integer</em></b></dt>
<dd>This causes the internal rendering to be scaled down by the given (integer <= 8) factor before being output. For example, the following will produce
-a 200dpi output png from a 600dpi internal rendering:</dd>
+a 200dpi output png from a 600dpi internal rendering:
<blockquote>
<pre>
<kbd>gs -sDEVICE=png16m -r600 -dDownScaleFactor=3 -o tiger.png\
examples/tiger.eps</kbd>
</pre>
</blockquote>
-
+</dd>
</dl>
</blockquote>
@@ -289,12 +269,12 @@ behave as for 2.</dd>
</dl>
</blockquote>
-<p>The <code>pngalpha</code> device responds to the following option:</p>
+<p>The <code>png16malpha</code> and <code>pngalpha</code> devices respond to the following option:</p>
<blockquote>
<dl>
<dt><code>-dBackgroundColor=</code><b><em>16#RRGGBB</em></b> (RGB color, default white = 16#ffffff)</dt>
-<dd>For the <code>pngalpha</code> device only,
+<dd>For the <code>png16malpha</code> and <code>pngalpha</code> devices only,
set the suggested background color in the PNG bKGD chunk.
When a program reading a PNG file does not support alpha
transparency, the PNG library converts the image using
@@ -432,14 +412,14 @@ drivers that produce uncompressed output:</p>
<dd>Produces 32-bit CMYK output (8 bits per component).</dd>
<dt><code>tiff64nc</code></dt>
<dd>Produces 64-bit CMYK output (16 bits per component).</dd>
-<a name="tiffsep"></a><dt><code>tiffsep</code></dt>
+<dt><a name="tiffsep"></a><code>tiffsep</code></dt>
<dd>
The <code>tiffsep</code> device creates multiple output files: a single 32 bit
composite CMYK file and multiple tiffgray files, one for each
separation (unless <code>-dNoSeparationFiles</code> is specified). If separation
files are being produced and more than one page is being generated, the output file
specification <b>must</b> include a format specifier (e.g <code>-o outfile-%d.tif</code>)
-so that each page can have a uniquely named set of separation files.</dd>
+so that each page can have a uniquely named set of separation files.
<p>The default compression is <code>lzw</code> but this may be overridden by
the <code>-sCompression=</code> option.</p>
@@ -459,6 +439,10 @@ File names for the separations for the CMYK colorants are created by appending
end of the file name specified via the OutputFile parameter.
File names for the spot color separation files are created by appending the
Spot color name in '(' and ').tif' to the filename.</p>
+<p>Note that, while the name of the ink is case-sensitive, the filename may not be
+(depending on the Operating System), so if a spot name matches one of the process
+ink names, it will have the spot number included as part of the name (eg YELLOW0).
+</p>
<p>
If desired the file names for the spot color separation files can be created
@@ -556,14 +540,15 @@ options, none of these are currently exposed. Any device author
interested in trying these options should contact Artifex for more
information. Currently ETS can be enabled using -dDownScaleETS=1.</p>
-<a name="tiffsep1"></a><dt><code>tiffsep1</code></dt>
+</dd>
+<dt><a name="tiffsep1"></a><code>tiffsep1</code></dt>
<dd>
The <code>tiffsep1</code> device creates multiple output files, one for each component
or separation color. The device creates multiple tiffg4 files (the compression
can be set using -sCompression= described below). The 1 bit per component
output is halftoned using the current screening set by 'setcolorscreen'
or 'sethalftone' which allows for ordered dither or stochastic threshold
- array dither to be used. This is faster than error diffusion.</dd>
+ array dither to be used. This is faster than error diffusion.
<p>
The file specified via the OutputFile command line parameter will not be
@@ -578,8 +563,9 @@ name in '(' and ').tif' to the filename.
If the file name specified via the OutputFile parameter ends with the suffix
'.tif', then the suffix is removed prior to adding the component name in
'(' and ').tif'.</p>
+</dd>
-<a name="tiffscaled"></a><dt><code>tiffscaled</code></dt>
+<dt><a name="tiffscaled"></a><code>tiffscaled</code></dt>
<dd>
The <code>tiffscaled</code> device renders internally at the specified resolution to an
8 bit greyscale image. This is then scaled down by an integer scale factor
@@ -588,7 +574,7 @@ The <code>tiffscaled</code> device renders internally at the specified resolutio
below.</dd>
-<a name="tiffscaled4"></a><dt><code>tiffscaled4</code></dt>
+<dt><a name="tiffscaled4"></a><code>tiffscaled4</code></dt>
<dd>
The <code>tiffscaled4</code> device renders internally at the specified resolution to an
8 bit cmyk image. This is then scaled down by an integer scale factor
@@ -596,31 +582,31 @@ The <code>tiffscaled4</code> device renders internally at the specified resoluti
4bpp cmyk output. The compression can be set using -sCompression= as described
below.</dd>
-<a name="tiffscaled8"></a><dt><code>tiffscaled8</code></dt>
+<dt><a name="tiffscaled8"></a><code>tiffscaled8</code></dt>
<dd>
The <code>tiffscaled8</code> device renders internally at the specified resolution to an
8 bit greyscale image. This is then scaled down by an integer scale factor
(set by <code>-dDownScaleFactor</code>= described below). The compression can be set using
-sCompression= as described below.</dd>
-<a name="tiffscaled24"></a><dt><code>tiffscaled24</code></dt>
+<dt><a name="tiffscaled24"></a><code>tiffscaled24</code></dt>
<dd>
The <code>tiffscaled24</code> device renders internally at the specified resolution to a
24 bit rgb image. This is then scaled down by an integer scale factor
(set by <code>-dDownScaleFactor</code>= described below). The compression can be set using
--sCompression= as described below.</dd>
+-sCompression= as described below.
<p>In commercial builds, the <code>-dDeskew</code> option can be used to automatically detect/correct skew when generating output bitmaps.</p>
-
-<a name="tiffscaled32"></a><dt><code>tiffscaled32</code></dt>
+</dd>
+<dt><a name="tiffscaled32"></a><code>tiffscaled32</code></dt>
<dd>
The <code>tiffscaled32</code> device renders internally at the specified resolution to a
32 bit cmyk image. This is then scaled down by an integer scale factor
(set by <code>-dDownScaleFactor</code>= described below). The compression can be set using
--sCompression= as described below.</dd>
+-sCompression= as described below.
<p>In commercial builds, the <code>-dDeskew</code> option can be used to automatically detect/correct skew when generating output bitmaps.</p>
-
+</dd>
</dl>
</blockquote>
@@ -784,7 +770,7 @@ The <code>tiffscaled</code>, <code>tiffscaled4</code>, <code>tiffscaled8</code>,
drivers also provide the following two parameters:</p>
<blockquote><dl>
-<dt><code>-dDownScaleFactor=<em>factor</em></code> (small non-negative integer; default = 1)</dt>
+<dt><code>-dDownScaleFactor=<em>factor</em></code> (integer <= 8; default = 1)</dt>
<dd>If this option set then the page is downscaled by the given factor on both
axes before error diffusion takes place. For example rendering with
<code>-r600</code> and then specifying <code>-dDownScaleFactor=3</code> will produce
@@ -794,11 +780,12 @@ a 200dpi image.</dd>
<blockquote><dl>
<dt><code>-sPostRenderProfile=<em>path</em></code> (path to an ICC profile)</dt>
<dd>If this option set then the page will be color transformed using that
-profile <b>after</b> downscaling.</dd>
+profile <b>after</b> downscaling.
<p>
This is useful when the file uses overprint to separately paint to some
subset of the C, M, Y, and K colorants, but the final CMYK is to be color
corrected for printing or display.</p>
+</dd>
</dl></blockquote>
<p>
@@ -808,7 +795,7 @@ The <code>tiffsep</code> TIFF device also provide this parameter:</p>
<dt><code>-dPrintSpotCMYK=<em>boolean</em></code> defaults to false. When set to true
the device will print (to stdout) the name of each ink used on the page, and the CMYK
values which are equivalent to 100% of that ink. The values are 16-bits ranging from 0
-to 32760.</dt>
+to 32760.</dt><dd></dd>
</dl></blockquote>
<a name="TIFF_trapping"></a>
@@ -928,8 +915,9 @@ to permit production of PDF files from input where the graphics
model differs significantly from PDF (eg PCL and RasterOPs).
</p>
<p>
-There are four devices named pdfimage8, pdfimage24, pdfimage32 and PCLm. These produce valid
-PDF files with a colour depth of 8 (Gray), 24 (RGB) or 32 (CMYK), the PCLm device only supports 24-bit RGB.
+There are five devices named pdfimage8, pdfimage24, pdfimage32, pclm and pclm8. These produce valid
+PDF files with a colour depth of 8 (Gray), 24 (RGB) or 32 (CMYK), the pclm device only supports 24-bit RGB
+and the pclm8 device only supports 8-bit gray.
These are all implemented as 'downscale' devices, which means they can implement page level
anti-aliasing using the <code>-dDownScaleFactor</code> switch.
</p>
@@ -1105,14 +1093,14 @@ to use the existing font Encoding. For English text this may give better results
<p>For these reasons the OCR functionality of pdfwrite can be controlled by using a new
parameter <code>-sUseOCR</code>. This has three possible values;
</p>
+<dl>
<dt><code>-sUseOCR=</code><b><em>string</em></b></dt>
-<dd>
- <dl>
- <dt>Never<dd>Default - don't use OCR at all even if support is built-in.
- <dt>AsNeeded<dd>If there is no existing ToUnicode information, use OCR.
- <dt>Always<dd>Ignore any existing information and always use OCR.
- </dl>
-</dd>
+
+ <dt>Never</dt><dd>Default - don't use OCR at all even if support is built-in.</dd>
+ <dt>AsNeeded</dt><dd>If there is no existing ToUnicode information, use OCR.</dd>
+ <dt>Always</dt><dd>Ignore any existing information and always use OCR.</dd>
+
+</dl>
</p>
<hr>
@@ -1219,8 +1207,10 @@ OS/2 and the gtk+ versions of ghostscript.
<dt><code>-dDisplayFormat=</code><b><em>N</em></b> (integer bit-field)</dt>
<dd>Some common values are 16#30804 for Windows RGB, 16#804 for gtk+ RGB,
16#20101 for Windows monochrome, 16#102 for gtk+ monochrome,
-16#20802 grayscale, 16#20808 for CMYK, 16#a0800 for separations.</dd>
-The bit fields are
+16#20802 grayscale, 16#20808 for CMYK, 16#a0800 for separations.
+<p>
+The bit fields are:
+</p>
<ul>
<li> native (1), gray (2), RGB (4), CMYK (8), or separation (80000)
color spaces.</li>
@@ -1232,6 +1222,7 @@ color spaces.</li>
</ul>
<p>For more details, see the <a href="API.htm#display">Ghostscript
Interpreter API.</a></p>
+</dd>
<dt><code>-dDisplayResolution=</code><b><em>DPI</em></b></dt>
<dd>Set the initial resolution resolution for the display device.
This is used by the Windows clients to set the display device
@@ -1348,7 +1339,7 @@ are summarized below:
<dl>
<dt><code>-r</code><em>number</em></dt>
-<br><code>-r</code><em>number1</em><code>x</code><em>number2</em>
+<dt><code>-r</code><em>number1</em><code>x</code><em>number2</em></dt>
<dd>Sets the resolution, in dpi. If the resolution is not specified,
Ghostscript queries the IJS server to determine the preferred resolution.
When the resolution is specified, it overrides the value (if any)
@@ -1732,7 +1723,7 @@ the Windows printer driver; this option can produce huge print jobs).</dd>
<dd>Sets additional options, defined in a dictionary. The following properties can
be set:</dd>
-<dl>
+
<dt><code>/DocumentName <em>string</em></code></dt>
<dd>Defines the user friendly document name which will be displayed by the
Windows spooler.</dd>
@@ -1756,7 +1747,7 @@ resolution of 1200/4=300 dpi. This can be very useful to reduce the memory
requirements when printing in True Color on some high resolution ink-jet color
printers.</dd>
-</dl>
+
</dl>
</blockquote>
@@ -2157,7 +2148,7 @@ spot colors.</p>
<hr>
<p>
-<small>Copyright &copy; 2000-2021 Artifex Software, Inc. All rights reserved.</small>
+<small>Copyright &copy; 2000-2022 Artifex Software, Inc. All rights reserved.</small>
<p>
This software is provided AS-IS with no warranty, either express or
@@ -2170,41 +2161,15 @@ or contact Artifex Software, Inc., 1305 Grant Avenue - Suite 200,
Novato, CA 94945, U.S.A., +1(415)492-9861, for further information.
<p>
-<small>Ghostscript version 9.55.0, 27 September 2021
+<small>Ghostscript version 9.56.0, 29 March 2022
<!-- [3.0 end visible trailer] ============================================= -->
-
<!--FINISH EDITING HERE-->
-
- </div>
- </div>
- </div>
-
- <div class="footer">
- <div class="row">
- <div class="col-7 footleft">
- <ul>
- <li><a href="https://artifex.com/contact-us/" target="blank">CONTACT US</a></li>
- <li><a href="https://artifex.com/about-us/" target="blank">ABOUT</a></li>
- <li><a href="https://ghostscript.com/security.html">SECURITY</a></li>
- </ul>
- </div>
- <div class="col-1 footcenter">
- <ul>
- <li><a href="https://artifex.com/support/" target="blank">SUPPORT</a></li>
- <li><a href="https://artifex.com/blog/artifex/" target="blank">BLOG</a></li>
- <li><a href="https://artifex.com/privacy-policy/" target="blank">PRIVACY</a></li>
- </ul>
- </div>
- <div class="col-ft-3 footright"><img src="images/Artifex_logo.png" width="194" height="40" alt=""/> <br>
- © Copyright 2019-2021 Artifex Software, Inc. <br>
- All rights reserved.
- </div>
- </div>
- </div>
-
- <script src="http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>
- <script src="index.js"></script>
+ </div><!-- close inner -->
+ </div><!-- close outer -->
+ </article>
+ </main>
+ <script src="site.js"></script>
</body>
</html>
diff --git a/doc/Drivers.htm b/doc/Drivers.htm
index 577564ba..c596d5a2 100644
--- a/doc/Drivers.htm
+++ b/doc/Drivers.htm
@@ -1,123 +1,111 @@
<!doctype html>
-<html>
+<html lang="en">
<head>
-<meta charset="UTF-8">
-<meta name="viewport" content="width=device-width, initial-scale=1.0">
-<link href="https://fonts.googleapis.com/css?family=Source+Sans+Pro" rel="stylesheet">
-<link rel="shortcut icon" type="image/png" href="../../images/favicon.png">
-<title>The Interface between Ghostscript and Device Drivers</title>
- <!-- Originally: drivers.txt -->
-<link href="style.css" rel="stylesheet" type="text/css">
-<link href="gs-style.css" rel="stylesheet" type="text/css">
+ <meta http-equiv="content-type" content="text/html; charset=utf-8">
+ <meta name="viewport" content="user-scalable=yes, initial-scale=1, width=device-width">
+ <link href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:200,200i,300,300i,400,400i,600,600i,700,700i,900,900i" rel="stylesheet">
+ <link rel="shortcut icon" href="images/favicon.svg">
+ <title>The Interface between Ghostscript and Device Drivers</title>
+ <link href="default.css" rel="stylesheet" type="text/css">
</head>
<body>
+ <header><div class="title"><a href="index.html"><h1 aria-label="title">Ghostscript documentation</h1><h2 aria-label="version"></h2></a></div><a href="Search.htm" aria-label="Search" id="searchSite"><div class="search"></div></a></header>
+ <main>
+ <article>
+ <div class="outer">
- <div class="header">
- <div class="row">
- <div class="col-lt-6 logo"><a href="https://www.ghostscript.com/"><img src="images/ghostscript_logo.png" width="108" height="119" alt=""></a></div>
- <div class="col-6"><div class="row"><div class="artifexlogo"><a href="https://artifex.com" target="_blank"><img src="images/Artifex_logo.png" width="194" height="40" alt=""></a></div>
- <div class="col-12"><div class="button button1"><a href="https://artifex.com/contact-us/" title="Contact Us" target="_blank">Contact Us</a></div>
- <div class="button button2 hidden-xs"><a href="https://www.ghostscript.com/download.html" title="Download">Download</a></div></div></div>
- </div>
- </div>
- </div>
-
- <div class="banner">
- <div class="row">
- <div class="col-12">The Interface between Ghostscript and Device Drivers</div>
- </div>
- </div>
-
- <div class="main">
- <div class="row">
- <div id="sidebar">
- <div class="sidebar-item"></div>
- <div class="col-2 leftnav">
- <ul>
- <li><a href="https://www.ghostscript.com/">Home</a></li>
- <li><a href="https://www.ghostscript.com/license.html">Licensing</a></li>
- <li><a href="https://www.ghostscript.com/releases.html">Releases</a></li>
- <li><a href="https://www.ghostscript.com/documentation.html" title="Documentation">Documentation</a></li>
- <li><a href="https://www.ghostscript.com/download.html" title="Download">Download</a></li>
- <li><a href="https://www.ghostscript.com/performance.html" title="Performance">Performance</a></li>
- <li><a href="http://jbig2dec.com/" title="jbig2dec">jbig2dec</a></li>
- <li><a href="http://git.ghostscript.com/?p=ghostpdl.git;a=summary">Source</a></li>
- <li><a href="http://bugs.ghostscript.com/">Bugs</a></li>
- <li><a href="https://www.ghostscript.com/faq.html" title="FAQ">FAQ</a></li>
- </ul>
- </div>
- </div>
- <div class="col-10 page">
-
+ <div class="inner">
<!--START EDITING HERE-->
-<!-- [1.2 begin table of contents] ========================================= -->
+<h1>The Interface between Ghostscript and Device Drivers</h1>
-<h2>Table of contents</h2>
+<h2><a name="toc"></a>Table of contents</h2>
-<blockquote>
-<li><a href="#Adding_drivers">Adding a driver</a></li>
-<li><a href="#KISS">Keeping things simple</a></li>
-<li><a href="#Structure">Driver structure</a></li>
-<ul>
- <li><a href="#Structure_definition">Structure definition</a></li>
- <li><a href="#Sophisticated">For sophisticated developers only</a></li>
-</ul>
-<li><a href="#coordinates_and_types">Coordinates and types</a></li>
-<ul>
- <li><a href="#Coordinate_system">Coordinate system</a></li>
- <li><a href="#Color_definition">Color definition</a></li>
-<ul>
- <li><a href="#sep_and_linear_fields">Separable and linear fields</a></li>
- <li><a href="#Changing_color_info_data">Changing color_info data</a></li>
-</ul>
-<li><a href="#Types">Types</a></li>
-</ul>
-<li><a href="#Coding_conventions">Coding conventions</a></li>
-<ul>
- <li><a href="#Allocating_storage">Allocating storage</a></li>
- <li><a href="#Driver_instance_allocation">Driver instance allocation</a></li>
-</ul>
-<li><a href="#Printer_drivers">Printer drivers</a></li>
-<li><a href="#Printer_drivers_mt">Printer drivers (Multi-threaded)</a></li>
-<li><a href="#Driver_procedures">Driver procedures</a></li>
-<ul>
- <li><a href="#Life_cycle">Life cycle</a></li>
- <li><a href="#Open_close">Open, close, sync, copy</a></li>
- <li><a href="#Color_mapping">Color and alpha mapping</a></li>
- <li><a href="#Pixel_level_drawing">Pixel-level drawing</a></li>
-<ul>
- <li><a href="#Bitmap_imaging">Bitmap imaging</a></li>
- <li><a href="#Pixmap_imaging">Pixmap imaging</a></li>
- <li><a href="#Compositing">Compositing</a></li>
- [<a href="#S_spec">S</a>, <a href="#T_spec">T</a>, <a href="#F_spec">f</a>,
- <a href="#Compositing_notes">Notes</a>]
-</ul>
- <li><a href="#Polygon_level_drawing">Polygon-level drawing</a></li>
- <li><a href="#Linear_color_drawing">Linear color drawing</a></li>
- <li><a href="#High_level_drawing">High-level drawing</a></li>
-<ul>
- <li><a href="#Paths">Paths</a></li>
- <li><a href="#Images">Images</a> [<a href="#Images_notes">Notes</a>]</li>
- <li><a href="#Text">Text</a> [<a href="#Text_notes">Notes</a>]</li>
- <li><a href="#Unicode">Unicode support for high level (vector) devices</a></li>
-</ul>
- <li><a href="#Reading_bits_back">Reading bits back</a></li>
- <li><a href="#Parameters">Parameters</a></li>
-<ul>
- <li><a href="#Default_CRD_parameters">Default color rendering dictionary (CRD) parameters</a></li>
-</ul>
- <li><a href="#External_fonts">External fonts</a></li>
- <li><a href="#Page_devices">Page devices</a></li>
- <li><a href="#Miscellaneous">Miscellaneous</a></li>
-</ul>
-<li><a href="#Tray">Tray selection</a></li>
-<ul>
- <li><a href="#LeadingEdge">Tray rotation and the LeadingEdge parameter</a></li>
- <li><a href="#LeadingPage">Interaction between LeadingEdge and PageSize</a></li>
+<ul class="toc">
+ <li><a href="#Adding_drivers">Adding a driver</a></li>
+ <li><a href="#KISS">Keeping things simple</a></li>
+ <li><a href="#Structure">Driver structure</a></li>
+ <li>
+ <ul>
+ <li><a href="#Structure_definition">Structure definition</a></li>
+ <li><a href="#Sophisticated">For sophisticated developers only</a></li>
+ </ul>
+ </li>
+ <li><a href="#coordinates_and_types">Coordinates and types</a></li>
+ <li>
+ <ul>
+ <li><a href="#Coordinate_system">Coordinate system</a></li>
+ <li><a href="#Color_definition">Color definition</a></li>
+ <li>
+ <ul>
+ <li><a href="#sep_and_linear_fields">Separable and linear fields</a></li>
+ <li><a href="#Changing_color_info_data">Changing color_info data</a></li>
+ </ul>
+ </li>
+ <li><a href="#Types">Types</a></li>
+ </ul>
+ </li>
+ <li><a href="#Coding_conventions">Coding conventions</a></li>
+ <li>
+ <ul>
+ <li><a href="#Allocating_storage">Allocating storage</a></li>
+ <li><a href="#Driver_instance_allocation">Driver instance allocation</a></li>
+ </ul>
+ </li>
+ <li><a href="#Printer_drivers">Printer drivers</a></li>
+ <li><a href="#Printer_drivers_mt">Printer drivers (Multi-threaded)</a></li>
+ <li><a href="#Driver_procedures">Driver procedures</a></li>
+ <li>
+ <ul>
+ <li><a href="#Life_cycle">Life cycle</a></li>
+ <li><a href="#Open_close">Open, close, sync, copy</a></li>
+ <li><a href="#Color_mapping">Color and alpha mapping</a></li>
+ <li><a href="#Pixel_level_drawing">Pixel-level drawing</a></li>
+ <li>
+ <ul>
+ <li><a href="#Bitmap_imaging">Bitmap imaging</a></li>
+ <li><a href="#Pixmap_imaging">Pixmap imaging</a></li>
+ <li><a href="#Compositing">Compositing</a></li>
+ <li>
+ <ul>
+ <li>[<a href="#S_spec">S</a>, <a href="#T_spec">T</a>, <a href="#F_spec">f</a>,
+ <a href="#Compositing_notes">Notes</a>]</li>
+ </ul>
+ </li>
+ </ul>
+ </li>
+ <li><a href="#Polygon_level_drawing">Polygon-level drawing</a></li>
+ <li><a href="#Linear_color_drawing">Linear color drawing</a></li>
+ <li><a href="#High_level_drawing">High-level drawing</a></li>
+ <li>
+ <ul>
+ <li><a href="#Paths">Paths</a></li>
+ <li><a href="#Images">Images</a> [<a href="#Images_notes">Notes</a>]</li>
+ <li><a href="#Text">Text</a> [<a href="#Text_notes">Notes</a>]</li>
+ <li><a href="#Unicode">Unicode support for high level (vector) devices</a></li>
+ </ul>
+ </li>
+ <li><a href="#Reading_bits_back">Reading bits back</a></li>
+ <li><a href="#Parameters">Parameters</a></li>
+ <li>
+ <ul>
+ <li><a href="#Default_CRD_parameters">Default color rendering dictionary (CRD) parameters</a></li>
+ </ul>
+ </li>
+ <li><a href="#External_fonts">External fonts</a></li>
+ <li><a href="#Page_devices">Page devices</a></li>
+ <li><a href="#Miscellaneous">Miscellaneous</a></li>
+ </ul>
+ </li>
+ <li><a href="#Tray">Tray selection</a></li>
+ <li>
+ <ul>
+ <li><a href="#LeadingEdge">Tray rotation and the LeadingEdge parameter</a></li>
+ <li><a href="#LeadingPage">Interaction between LeadingEdge and PageSize</a></li>
+ </ul>
+ </li>
</ul>
-</blockquote>
<!-- [1.2 end table of contents] =========================================== -->
@@ -148,7 +136,7 @@ need do is edit <code>contrib.mak</code> in two places.</p>
<li>The list of devices, in the section headed "Catalog". Add
<code>smurf</code> to the list.</li>
-<li>The section headed "Device drivers".</li>
+<li>The section headed "Device drivers".
<p>
Suppose the files containing the smurf driver are called
@@ -202,6 +190,7 @@ or</p>
<p>
Note that the space before the :, and the explicit compilation rules for the
.c files, are required for portability,</p>
+</li>
</ol>
<hr>
@@ -356,19 +345,20 @@ structure for ordinary drivers are:</p>
<blockquote><table>
<tr valign="top"> <td><code>const char *dname;</code></td>
- <td>&nbsp;&nbsp;&nbsp;&nbsp;</td>
+
<td>The device name</td></tr>
+
<tr valign="top"> <td><code>bool is_open;</code></td>
- <td>&nbsp;</td>
+
<td>True if device has been opened</td></tr>
<tr valign="top"> <td><code>gx_device_color_info color_info;</code></td>
- <td>&nbsp;</td>
+
<td>Color information</td></tr>
<tr valign="top"> <td><code>int width;</code></td>
- <td>&nbsp;</td>
+
<td>Width in pixels</td></tr>
<tr valign="top"> <td><code>int height;</code></td>
- <td>&nbsp;</td>
+
<td>Height in pixels</td></tr>
</table></blockquote>
@@ -400,6 +390,7 @@ structure, or to add procedures, you must change the following places:</p>
(probably just adding <code>NULL</code> procedure entries if the
new procedures don't produce output).</li>
<li>These devices that must have complete (non-defaulted) procedure vectors:</li>
+<li>
<ul>
<li>The null device in <a href="../base/gdevnfwd.c">gdevnfwd.c</a>.</li>
<li>The command list "device" in <a href="../base/gxclist.c">gxclist.c</a>.
@@ -407,6 +398,7 @@ structure, or to add procedures, you must change the following places:</p>
<li>The "memory" devices in <a href="../base/gdevmem.h">gdevmem.h</a> and
<code>gdevm*.c</code>.</li>
</ul>
+</li>
<li>The clip list accumulation "device" in
<a href="../base/gxacpath.c">gxacpath.c</a>.</li>
<li>The clipping "devices" <a href="../base/gxclip.c">gxclip.c</a>,
@@ -792,7 +784,7 @@ gets <code>gx_color_index</code> values from the device's
procedures. If the <code>separable_and_linear</code> field in the device's
<code>color_info</code> structure is not set to
<code>GX_CINFO_SEP_LIN</code> then Ghostscript does not do
-any computations with <code>gx_color_index</code> values.</dd>
+any computations with <code>gx_color_index</code> values.
<p>
The special
@@ -833,6 +825,9 @@ For Microsoft and the MSVC compiler, <code>GX_COLOR_INDEX_TYPE</code> will
be set to <code>unsigned _int64</code> if <code>USE_LARGE_COLOR_INDEX</code>
is set to 1 either on the make command line or by editing the definition
in <a href="../psi/msvc32.mak">msvc32.mak</a> </p>
+
+ </dd>
+
</dl>
<dl>
@@ -854,7 +849,7 @@ filling a region (rectangle). <code>gx_tile_bitmap</code> is an
older, deprecated type lacking <code>shift</code> and
<code>rep_shift</code>;
<code>gx_strip_bitmap</code> has superseded it, and should be
-used in new code. Here is a copy of the relevant part of the file:</dd>
+used in new code. Here is a copy of the relevant part of the file:
<blockquote>
<pre>
@@ -927,6 +922,9 @@ typedef struct gx_strip_bitmap_s {
int num_planes;
} gx_strip_bitmap;</pre>
</blockquote>
+
+</dd>
+
</dl>
<hr>
@@ -1369,12 +1367,13 @@ always call <code>gs_opendevice</code> instead.</dd>
(nominally 1/72 inch per unit) to device coordinates. The default
procedure computes this from width, height, and
[<code>xy</code>]<code>_pixels_per_inch</code> on the assumption that
-the origin is in the upper left corner, that is</dd>
+the origin is in the upper left corner, that is
<blockquote>
<code>xx</code> = <code>x_pixels_per_inch</code>/72, <code>xy</code> = 0,<br>
<code>yx = 0, yy = -y_pixels_per_inch</code>/72,<br>
<code>tx = 0, ty = height</code>.
</blockquote>
+</dd>
</dl>
<dl>
@@ -1484,7 +1483,7 @@ the specified name is not a colorant for the device. A value of 0 to
of the given name. A value of <code>GX_DEVICE_COLOR_MAX_COMPONENTS</code>
indicates that the given name is a valid colorant name for the device but the
colorant is not currently being used. This is used for implementing names
-which are in SeparationColorNames but not in SeparationOrder.</dd>
+which are in SeparationColorNames but not in SeparationOrder.
<p>
The default procedure returns results based upon process color model
@@ -1492,6 +1491,7 @@ of DeviceGray, DeviceRGB, or DeviceCMYK selected by
<code>color_info.num_components</code>. This procedure must be
defined if another process color model is used by the device or spot colors are
supported by the device.</p>
+</dd>
</dl>
<dl>
@@ -1501,7 +1501,7 @@ gx_device&nbsp;* dev, const gx_device&nbsp;** tdev)</code> <b><em>[OPTIONAL]</em
device to pass to them. These procedures are used to translate values in
either Gray, RGB, or CMYK color spaces into device colorant values. A
separate procedure is not required for the DeviceN and Separation color
-spaces since these already represent device colorants.</dd>
+spaces since these already represent device colorants.
<p>In many cases, the device returned in <code>tdev</code> will be the
same as <code>dev</code>, but the caller should not rely on this. For
@@ -1520,6 +1520,7 @@ procedure must be defined if another process color model is used by the
device or spot colors are to be supported. All these procedures take a
<code>gx_device</code> pointer; these should be called with the value
returned in <code>tdev</code> NOT the initial value of <code>dev</code>.</p>
+</dd>
</dl>
<dl>
@@ -1530,11 +1531,12 @@ value. The range of legal values of the
arguments is 0 to <code>gx_max_color_value</code>. The default procedure
packs bits into a <code>gx_color_index</code> value based upon the
values in <code>color_info.depth</code> and
-<code>color_info.num_components</code>.</dd>
+<code>color_info.num_components</code>.
<p>
Note that the <code>encode_color</code> procedure
must not return <code>gx_no_color_index</code> (all 1s).</p>
+</dd>
</dl>
<dl>
@@ -1586,11 +1588,12 @@ the point <em>(x,y)</em> is included in the rectangle, as are
<b><em>not</em></b> <em>(x+w,y)</em>, <em>(x,y+h)</em>, or
<em>(x+w,y+h)</em>. If <code>width</code>&nbsp;&lt;=&nbsp;0 or
height&nbsp;&lt;=&nbsp;0, <code>fill_rectangle</code> should return 0
-without drawing anything.</dd>
+without drawing anything.
<p>
Note that <code>fill_rectangle</code> is the only non-optional procedure
in the driver interface.</p>
+</dd>
</dl>
<h4><a name="Bitmap_imaging"></a>Bitmap imaging</h4>
@@ -1621,13 +1624,14 @@ pixel is unaffected if the image bit is 0 or 1 respectively. If
<code>id</code> is different from <code>gx_no_bitmap_id</code>, it
identifies the bitmap contents unambiguously; a call with the same
<code>id</code> will always have the same <code>data</code>,
-<code>raster</code>, and data contents.</dd>
+<code>raster</code>, and data contents.
<p>
This operation, with
<code>color0</code>&nbsp;=&nbsp;<code>gx_no_color_index</code>, is
the workhorse for text display in Ghostscript, so implementing it
efficiently is very important.</p>
+</dd>
</dl>
<dl>
@@ -1645,7 +1649,7 @@ the device coordinate system. (Note that this is backwards from the
PostScript definition of halftone phase.) <code>phase_x</code> and
<code>phase_y</code> are guaranteed to be in the range
<em>[0..</em><code>tile-&gt;width</code><em>)</em> and
-<em>[0..</em><code>tile-&gt;height</code><em>)</em> respectively.</dd>
+<em>[0..</em><code>tile-&gt;height</code><em>)</em> respectively.
<p>
If <code>color0</code> and <code>color1</code> are both
@@ -1659,6 +1663,7 @@ implementing it efficiently for solid tiles (that is, where either
<code>gx_no_color_index</code>, for colored halftones, or neither one is
<code>gx_no_color_index</code>, for monochrome halftones) is very
important.</p>
+</dd>
</dl>
<h4><a name="Pixmap_imaging"></a>Pixmap imaging</h4>
@@ -1752,41 +1757,44 @@ Given a 2d source block of pixels (supplied as scanline data), this
function transforms that data, maps it through the supplied colour
lookup function, clips it, and plots it into the device.
-<p>In all calls to this function a negative return value indicates an error.
+<p>In all calls to this function a negative return value indicates an error.</p>
<p>Called first with the <code>transform_pixel_region_init</code> reason code,
this prepares for subsequent calls to scale a region as described in the
<code>data.u.init</code> structure. A pointer to any state required for
this should be written into <code>data.state</code>, and the caller must
-pass that in to subsequent calls.
+pass that in to subsequent calls.</p>
<p>Subsequently this will be called with <code>transform_pixel_region_data_needed</code>.
The function will then check to see if the next scanline of data will be trivially
clipped away. If so, then it will return zero to indicate that it is not needed.
This can help the caller to avoid unnecessary processing. A positive return value
-indicates that the line is required.
+indicates that the line is required.</p>
<p>For every line where the data is required, the function will be called with
<code>transform_pixel_region_process_data</code>. The function will then read
and process the line from <code>data.u.process_data</code>.
The data in the buffer is packed 8 bit values, which will be fed into the supplied
<code>cmapper</code> to set the device color as required. This is then written
-into the device.
+into the device.</p>
<p>Once all the scanlines have been fed through calls to <code>transform_pixel_region_data_needed</code>
and <code>transform_pixel_region_process_data</code>, a final call with <code>transform_pixel_region_end</code>
-is made that frees the state.
+is made that frees the state.</p>
<p>The default implementation of this device function will generally break the pixel
data down into calls to <code>fill_rectangle</code>, though in some cases (notably
the portrait 8 bit per component output case), a faster route through <code>copy_color</code>
-can be used.
+can be used.</p>
<p>Memory devices offer a version of this device function that can accelerate direct
-plotting to the memory array.
+plotting to the memory array.</p>
<p>NOTE: Currently the clipping rectangle is not honoured for skewed (not portrait or landscape)
transformations. This is allowed for in the callers.
+</p>
+</dd>
+
</dl>
<h4><a name="Compositing"></a>Compositing</h4>
@@ -1804,7 +1812,7 @@ gx_bitmap_id&nbsp;id, int&nbsp;x, int&nbsp;y, int&nbsp;width,
int&nbsp;height, gx_color_index&nbsp;color, int&nbsp;depth)</code>
<b><em>[OPTIONAL]</em></b></dt>
<dd>This procedure is somewhat misnamed: it was added to the interface
-before we really understood alpha channel and compositing.</dd>
+before we really understood alpha channel and compositing.
<p>
Fill a given region with a given color modified by an individual alpha
@@ -1820,6 +1828,7 @@ rule.</p>
with an 8 bit depth. In addition they should accept either 2 or 4 if
the corresponding <code>get_alpha_bits</code> procedure returns either
of those values.</p>
+</dd>
</dl>
<dl>
@@ -1846,7 +1855,7 @@ it. Accordingly, the caller must watch the return values from this
function to understand if a new device has been created to which future
calls should be made.
<p>
-Devices will normally implement this in one of the following standard ways:</dd>
+Devices will normally implement this in one of the following standard ways:
<ul>
<li>Devices that don't do any imaging and don't forward any imaging
@@ -1907,6 +1916,7 @@ Closing a compositor frees all of its storage, including the compositor
itself. However, since the <code>composite</code> call may
return the same device, clients must check for this case, and only call the
close procedure if a separate device was created.</p>
+</dd>
</dl>
<h3><a name="Polygon_level_drawing"></a>Polygon-level drawing</h3>
@@ -1967,7 +1977,9 @@ fixed&nbsp;fx0, fixed&nbsp;fy0, fixed&nbsp;fx1, fixed&nbsp;fy1,
const&nbsp;gx_drawing_color&nbsp;*pdcolor,
gs_logical_operation_t&nbsp;lop)</code> <b><em>[OPTIONAL]</em></b></dt>
<dd>Draw a one-pixel-wide line from <em>(fx0,fy0)</em> to
-<em>(fx1,fy1)</em>.</dd>
+<em>(fx1,fy1)</em>.</dd></dl>
+
+<dl><dt></dt><dd>
<h3><a name="Linear_color_drawing"></a>Linear color drawing</h3>
@@ -1983,8 +1995,9 @@ or uses a non-separable or a non-linear color model.</p>
const gs_fixed_point *p0, const gs_fixed_point *p1,
const gs_fixed_point *p2,
const frac31 *c0, const frac31 *c1, const frac31 *c2)
-</code></dt>
-<b><em>[OPTIONAL]</em></b>
+</code>
+<b><em>[OPTIONAL]</em></b></dt>
+
<dd>This function is the highest level one within the linear color function group.
It fills a triangle with a linearly varying color.
Arguments specify 3 points in the device space - vertices of a triangle, and their colors.
@@ -2044,8 +2057,8 @@ in <code>gdevddrw.c</code> for sample code.</dd>
const gs_fixed_point *p2, const gs_fixed_point *p3,
const frac31 *c0, const frac31 *c1,
const frac31 *c2, const frac31 *c2)
-</code></dt>
-<b><em>[OPTIONAL]</em></b>
+</code><b><em>[OPTIONAL]</em></b></dt>
+
<dd>This function is a lower level one within the linear color function group.
The default implementation of <code> fill_linear_color_triangle </code>
calls this function 1-2 times per triangle. Besides that,
@@ -2065,7 +2078,7 @@ All those important notes are applicable here.</dd>
<dd>
Sample code may be found in in <code>gxdtfill.h</code>; be aware it's rather complicated.
A linear color function is generated from it as <code> gx_fill_trapezoid_ns_lc </code>
-with the following template parameters :</dd>
+with the following template parameters :
<pre>
#define LINEAR_COLOR 1
@@ -2080,7 +2093,7 @@ with the following template parameters :</dd>
<p>See <code>check_gradient_overflow</code>
(defined in in <code>gdevddrw.c</code>), as an example of an area
that can't be painted in a single action due to 64-bits fixed overflows.</p>
-
+</dd>
</dl>
<dl>
@@ -2153,32 +2166,32 @@ consult the source code, specifically:</p>
<blockquote><table>
<tr valign="top"> <th align="left">Header</th>
- <th>&nbsp;&nbsp;&nbsp;</th>
+
<th align="left">Defines</th></tr>
<tr valign="top"> <td><a href="../base/gxpaint.h">gxpaint.h</a></td>
- <td>&nbsp;</td>
+
<td><code>gx_fill_params</code>, <code>gx_stroke_params</code></td></tr>
<tr valign="top"> <td><a href="../base/gxfixed.h">gxfixed.h</a></td>
- <td>&nbsp;</td>
+
<td><code>fixed</code>, <code>gs_fixed_point</code> (used by
<code>gx_*_params</code>)</td></tr>
<tr valign="top"> <td><a href="../base/gxgstate.h">gxgstate.h</a></td>
- <td>&nbsp;</td>
+
<td><code>gs_imager_state</code> (used by <code>gx_*_params</code>)</td></tr>
<tr valign="top"> <td><a href="../base/gxline.h">gxline.h</a></td>
- <td>&nbsp;</td>
+
<td><code>gx_line_params</code> (used by <code>gs_imager_state</code>)</td></tr>
<tr valign="top"> <td><a href="../base/gslparam.h">gslparam.h</a></td>
- <td>&nbsp;</td>
+
<td>line cap/join values (used by <code>gx_line_params</code>)</td></tr>
<tr valign="top"> <td><a href="../base/gxmatrix.h">gxmatrix.h</a></td>
- <td>&nbsp;</td>
+
<td><code>gs_matrix_fixed</code> (used by <code>gs_imager_state</code>)</td></tr>
<tr valign="top"> <td><a href="../base/gspath.h">gspath.h</a>, <a href="../base/gxpath.h">gxpath.h</a>, <a href="../base/gzpath.h">gzpath.h</a></td>
- <td>&nbsp;</td>
+
<td><code>gx_path</code></td></tr>
<tr valign="top"> <td><a href="../base/gxcpath.h">gxcpath.h</a>, <a href="../base/gzcpath.h">gzcpath.h</a></td>
- <td>&nbsp;</td>
+
<td><code>gx_clip_path</code></td></tr>
</table></blockquote>
@@ -2236,36 +2249,36 @@ with the given color and logical operation. The clip path pointer may be
command is as below.</dd>
</dl>
-<h5><a name="F_spec"></a>The function specification f</h5>
+<h4><a name="F_spec"></a>The function specification f</h4>
<p>
"Command" indicates the raster operation and transparency as follows:</p>
<blockquote><table>
<tr valign="bottom">
- <th colspan ="3">Bits</th>
+ <th colspan ="2">Bits</th>
</tr>
<tr valign="top"> <td>7-0</td>
- <td>&nbsp;</td>
+
<td>raster op</td></tr>
<tr valign="top"> <td>8</td>
- <td>&nbsp;</td>
+
<td>0 if source opaque, 1 if source transparent</td></tr>
<tr valign="top"> <td>9</td>
- <td>&nbsp;</td>
+
<td>0 if texture opaque, 1 if texture transparent</td></tr>
<tr valign="top"> <td>10</td>
- <td>&nbsp;</td>
+
<td>1 if pdf transparency is in use, 0 otherwise. This makes no
difference to the rendering, but forces the raster operation to be considered
non-idempotent by internal routines.</td></tr>
<tr valign="top"> <td>11</td>
- <td>&nbsp;</td>
+
<td>1 if the target of this operation is a specific plane, rather
than all planes. The plane in question is given by bits 13 upwards. This
is only used by the planar device.</td></tr>
<tr valign="top"> <td>12-</td>
- <td>&nbsp;</td>
+
<td>If bit 11 = 1, then bits 12 upwards give the plane number to
operate on. Otherwise, should be set to 0.</td></tr>
</table></blockquote>
@@ -2282,67 +2295,67 @@ possible 2&times;2&times;2 input values as follows:</p>
<blockquote><table>
<tr valign="bottom">
<th>Bit</th>
- <th>&nbsp;</th>
+
<th>Texture</th>
- <th>&nbsp;</th>
+
<th>Source</th>
- <th>&nbsp;</th>
+
<th>Destination</th></tr>
<tr valign="top"> <td align="center">7</td>
- <td>&nbsp;</td>
+
<td align="center">1</td>
- <td>&nbsp;</td>
+
<td align="center">1</td>
- <td>&nbsp;</td>
+
<td align="center">1</td></tr>
<tr valign="top"> <td align="center">6</td>
- <td>&nbsp;</td>
+
<td align="center">1</td>
- <td>&nbsp;</td>
+
<td align="center">1</td>
- <td>&nbsp;</td>
+
<td align="center">0</td></tr>
<tr valign="top"> <td align="center">5</td>
- <td>&nbsp;</td>
+
<td align="center">1</td>
- <td>&nbsp;</td>
+
<td align="center">0</td>
- <td>&nbsp;</td>
+
<td align="center">1</td></tr>
<tr valign="top"> <td align="center">4</td>
- <td>&nbsp;</td>
+
<td align="center">1</td>
- <td>&nbsp;</td>
+
<td align="center">0</td>
- <td>&nbsp;</td>
+
<td align="center">0</td></tr>
<tr valign="top"> <td align="center">3</td>
- <td>&nbsp;</td>
+
<td align="center">0</td>
- <td>&nbsp;</td>
+
<td align="center">1</td>
- <td>&nbsp;</td>
+
<td align="center">1</td></tr>
<tr valign="top"> <td align="center">2</td>
- <td>&nbsp;</td>
+
<td align="center">0</td>
- <td>&nbsp;</td>
+
<td align="center">1</td>
- <td>&nbsp;</td>
+
<td align="center">0</td></tr>
<tr valign="top"> <td align="center">1</td>
- <td>&nbsp;</td>
+
<td align="center">0</td>
- <td>&nbsp;</td>
+
<td align="center">0</td>
- <td>&nbsp;</td>
+
<td align="center">1</td></tr>
<tr valign="top"> <td align="center">0</td>
- <td>&nbsp;</td>
+
<td align="center">0</td>
- <td>&nbsp;</td>
+
<td align="center">0</td>
- <td>&nbsp;</td>
+
<td align="center">0</td></tr>
</table></blockquote>
@@ -2532,11 +2545,11 @@ gx_image_enum_common_t&nbsp;**pinfo)</code> <b><em>[OPTIONAL]</em></b></dt>
<code>image_plane_data</code> function supplied in the returned image
enumerator will follow, and then a call of
<code>end_image</code>. The parameters of <code>begin_typed_image</code>
-are as follows:</dd>
+are as follows:
<blockquote><table>
-<tr valign="top"> <td><code>pis</code></td>
- <td>&nbsp;&nbsp;&nbsp;</td>
+<tr valign="top"><td><code>pis</code></td>
+
<td>pointer to an imager state. The only relevant elements of the
imager state are the CTM (coordinate transformation matrix),
the logical operation (<code>RasterOp</code> or
@@ -2544,34 +2557,34 @@ are as follows:</dd>
mask images, if <code>pmat</code> is not NULL and the color is pure,
<code>pis</code> may be NULL.</td></tr>
<tr valign="top"> <td><code>pmat</code></td>
- <td>&nbsp;</td>
+
<td>pointer to a <code>gs_matrix</code> structure that
defines the image transformation matrix. If <code>pis</code> is non-NULL,
and <code>pmat</code> is NULL, then the <code>ctm</code> from <code>pis</code>
should be used.</td></tr>
<tr valign="top"> <td><code>pim</code></td>
- <td>&nbsp;</td>
+
<td>pointer to the <code>gs_image_t</code> structure that
defines the image parameters</td></tr>
<tr valign="top"> <td><code>prect</code></td>
- <td>&nbsp;</td>
+
<td>if not <code>NULL</code>, defines a subrectangle of the
image; only the data for this subrectangle will be passed to
<code>image_plane_data</code>, and only this subrectangle should
be drawn</td></tr>
<tr valign="top"> <td><code>pdcolor</code></td>
- <td>&nbsp;</td>
+
<td>defines a drawing color, only needed for masks or if
<code>CombineWithColor</code> is true</td></tr>
<tr valign="top"> <td><code>pcpath</code></td>
- <td>&nbsp;</td>
+
<td>if not <code>NULL</code>, defines an optional clipping path</td></tr>
<tr valign="top"> <td><code>memory</code></td>
- <td>&nbsp;</td>
+
<td>defines the allocator to be used for allocating bookkeeping
information</td></tr>
<tr valign="top"> <td><code>pinfo</code></td>
- <td>&nbsp;</td>
+
<td>the implementation should return a pointer to its state
structure here</td></tr>
</table></blockquote>
@@ -2593,6 +2606,7 @@ is called.</p>
<code>begin_typed_image</code> returns 0 normally, or 1 if the image does not
need any data. In the latter case, <code>begin_typed_image</code> does not
allocate an enumeration structure.</p>
+</dd>
</dl>
<p>
@@ -2611,7 +2625,7 @@ gx_image_enum_common_t&nbsp;*info,
const&nbsp;gx_image_plane_t&nbsp;*planes, int&nbsp;height)</code></dt>
<dd>This call provides more of the image source data: specifically,
<code>height</code> rows, with <code>Width</code> pixels supplied for
-each row.</dd>
+each row.
<p>
The data for each row are packed big-endian within each byte, as for
@@ -2665,7 +2679,7 @@ arguments, does not require the data to be aligned in any way.</p>
<p>
Note that for some image types, different planes may have different
numbers of bits per pixel, as defined in the <code>plane_depths</code> array.</p>
-
+</dd>
</dl>
<dl>
@@ -2711,7 +2725,7 @@ gs_font&nbsp;*font,
const&nbsp;gx_clip_path&nbsp;*pcpath,
gs_text_enum_t&nbsp;**ppte)</code> <b><em>[OPTIONAL]</em></b></dt>
-<p></p><dd>
+<dd><p></p>
Begin processing text, by creating a state structure and storing it in
<code>*ppte</code>. The parameters of <code>text_begin</code> are as
follows:</dd>
@@ -2719,26 +2733,26 @@ follows:</dd>
<blockquote><table>
<tr valign="top"> <td><code>dev</code></td>
- <td>&nbsp;&nbsp;&nbsp;</td>
+
<td>The usual pointer to the device.</td></tr>
<tr valign="top"> <td><code>pis</code></td>
- <td>&nbsp;&nbsp;&nbsp;</td>
+
<td>A pointer to an imager state. All elements may be relevant,
depending on how the text is rendered. </td></tr>
<tr valign="top"> <td><code>text</code></td>
- <td>&nbsp;</td>
+
<td>A pointer to the structure that defines the text operation
and parameters. See <a href="../base/gstext.h">gstext.h</a> for details.</td></tr>
<tr valign="top"> <td><code>font</code></td>
- <td>&nbsp;</td>
+
<td>Defines the font for drawing.</td></tr>
<tr valign="top"> <td><code>pcpath</code></td>
- <td>&nbsp;</td>
+
<td>If not <code>NULL</code>, defines an optional clipping path.
Only relevant if the text operation includes
<code>TEXT_DO_DRAW</code>.</td></tr>
<tr valign="top"> <td><code>ppte</code></td>
- <td>&nbsp;</td>
+
<td>The implementation should return a pointer to its state
structure here.</td></tr>
</table></blockquote>
@@ -2787,9 +2801,9 @@ procedures, which in turn call the procedures in the text enumerator.</p>
<dl>
<dt><code>int gs_text_process(gs_text_enum_t&nbsp;*pte)</code></dt>
-<p><dd>Continue processing text. This procedure may return 0 or a negative
+<dd><p></p>Continue processing text. This procedure may return 0 or a negative
error code as usual, or one of the following values (see
-<a href="../base/gstext.h">gstext.h</a> for details).</dd></p>
+<a href="../base/gstext.h">gstext.h</a> for details).
<blockquote><table>
<tr valign="top"> <td><code>TEXT_PROCESS_RENDER</code></td>
@@ -2800,14 +2814,15 @@ error code as usual, or one of the following values (see
<td>The client has asked to intervene between characters.
This is used for <code>cshow</code> and <code>kshow</code>.</td></tr>
</table></blockquote>
+</dd>
</dl>
<dl>
<dt><code>int gs_text_release(gs_gstate * pgs, gs_text_enum_t&nbsp;*pte,
-client_name_t&nbsp;cname)</code></dt><p> <dd>Finish processing text and release
+client_name_t&nbsp;cname)</code></dt><dd><p></p>Finish processing text and release
all associated structures. Clients must call this procedure after
<code>gs_text_process</code> returns 0 or an error, and may call it at
-any time.</dd></p>
+any time.</dd>
</dl>
<p>
@@ -2853,22 +2868,22 @@ if the glyph can't be translated to Unicode.</p>
<dt><code>int (*get_bits_rectangle)(gx_device&nbsp;*dev,
const&nbsp;gs_int_rect&nbsp;*prect, gs_get_bits_params_t&nbsp;*params)</code> <b><em>[OPTIONAL]</em></b></dt>
-<p><dd>
+<dd>
Read a rectangle of bits back from the device. The <code>params</code>
-structure consists of:</dd></p>
+structure consists of:<p></p>
<table>
<tr valign="top"> <td><code>options</code></td>
- <td>&nbsp;</td>
+
<td>the allowable formats for returning the data</td></tr>
<tr valign="top"> <td><code>data[32]</code></td>
- <td>&nbsp;</td>
+
<td>pointers to the returned data</td></tr>
<tr valign="top"> <td><code>x_offset</code></td>
- <td>&nbsp;</td>
+
<td>the X offset of the first returned pixel in data</td></tr>
<tr valign="top"> <td><code>raster</code></td>
- <td>&nbsp;</td>
+
<td>the distance between scan lines in the returned data</td></tr>
</table>
@@ -2878,7 +2893,11 @@ willing to accept. (If the client has more flexibility, the implementation
may be able to return the data more efficiently, by avoiding representation
conversions.) The options are divided into groups.</p>
-<blockquote><dl>
+</dd>
+</dl>
+
+<blockquote>
+<dl>
<dt><b><em>alignment</em></b></dt>
<dd>Specifies whether the returned data must be aligned in the normal
manner for bitmaps, or whether unaligned data are acceptable.</dd>
@@ -2923,7 +2942,9 @@ the standard color space. (Native device pixels use
<dd>Specifies whether alpha channel information should be returned as the
first component, the last component, or not at all. Note that for devices
that have no alpha capability, the returned alpha values will be all 1s.
-</dd></dl></blockquote>
+</dd></dl>
+
+</blockquote>
<p>
The client may set more than one option in each of the above groups; the
@@ -3359,7 +3380,7 @@ non-rotated case.</li>
<hr>
<p>
-<small>Copyright &copy; 2000-2021 Artifex Software, Inc. All rights reserved.</small>
+<small>Copyright &copy; 2000-2022 Artifex Software, Inc. All rights reserved.</small>
<p>
This software is provided AS-IS with no warranty, either express or
@@ -3372,41 +3393,15 @@ or contact Artifex Software, Inc., 1305 Grant Avenue - Suite 200,
Novato, CA 94945, U.S.A., +1(415)492-9861, for further information.
<p>
-<small>Ghostscript version 9.55.0, 27 September 2021
+<small>Ghostscript version 9.56.0, 29 March 2022
<!-- [3.0 end visible trailer] ============================================= -->
-
<!--FINISH EDITING HERE-->
-
- </div>
- </div>
- </div>
-
- <div class="footer">
- <div class="row">
- <div class="col-7 footleft">
- <ul>
- <li><a href="https://artifex.com/contact-us/" target="blank">CONTACT US</a></li>
- <li><a href="https://artifex.com/about-us/" target="blank">ABOUT</a></li>
- <li><a href="https://ghostscript.com/security.html">SECURITY</a></li>
- </ul>
- </div>
- <div class="col-1 footcenter">
- <ul>
- <li><a href="https://artifex.com/support/" target="blank">SUPPORT</a></li>
- <li><a href="https://artifex.com/blog/artifex/" target="blank">BLOG</a></li>
- <li><a href="https://artifex.com/privacy-policy/" target="blank">PRIVACY</a></li>
- </ul>
- </div>
- <div class="col-ft-3 footright"><img src="images/Artifex_logo.png" width="194" height="40" alt=""/> <br>
- © Copyright 2019-2021 Artifex Software, Inc. <br>
- All rights reserved.
- </div>
- </div>
- </div>
-
- <script src="http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>
- <script src="index.js"></script>
+ </div><!-- close inner -->
+ </div><!-- close outer -->
+ </article>
+ </main>
+ <script src="site.js"></script>
</body>
</html>
diff --git a/doc/Fonts.htm b/doc/Fonts.htm
index ac8a6da2..4dbcdb30 100644
--- a/doc/Fonts.htm
+++ b/doc/Fonts.htm
@@ -1,79 +1,52 @@
<!doctype html>
-<html>
+<html lang="en">
<head>
-<meta charset="UTF-8">
-<meta name="viewport" content="width=device-width, initial-scale=1.0">
-<link href="https://fonts.googleapis.com/css?family=Source+Sans+Pro" rel="stylesheet">
-<link rel="shortcut icon" type="image/png" href="../../images/favicon.png">
-<title>Fonts and Font Facilities Supplied with Ghostscript</title>
- <!-- Originally: fonts.txt -->
-<link href="style.css" rel="stylesheet" type="text/css">
-<link href="gs-style.css" rel="stylesheet" type="text/css">
+ <meta http-equiv="content-type" content="text/html; charset=utf-8">
+ <meta name="viewport" content="user-scalable=yes, initial-scale=1, width=device-width">
+ <link href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:200,200i,300,300i,400,400i,600,600i,700,700i,900,900i" rel="stylesheet">
+ <link rel="shortcut icon" href="images/favicon.svg">
+ <title>Fonts and Font Facilities Supplied with Ghostscript</title>
+ <link href="default.css" rel="stylesheet" type="text/css">
</head>
<body>
+ <header><div class="title"><a href="index.html"><h1 aria-label="title">Ghostscript documentation</h1><h2 aria-label="version"></h2></a></div><a href="Search.htm" aria-label="Search" id="searchSite"><div class="search"></div></a></header>
+ <main>
+ <article>
+ <div class="outer">
- <div class="header">
- <div class="row">
- <div class="col-lt-6 logo"><a href="https://www.ghostscript.com/"><img src="images/ghostscript_logo.png" width="108" height="119" alt=""></a></div>
- <div class="col-6"><div class="row"><div class="artifexlogo"><a href="https://artifex.com" target="_blank"><img src="images/Artifex_logo.png" width="194" height="40" alt=""></a></div>
- <div class="col-12"><div class="button button1"><a href="https://artifex.com/contact-us/" title="Contact Us" target="_blank">Contact Us</a></div>
- <div class="button button2 hidden-xs"><a href="https://www.ghostscript.com/download.html" title="Download">Download</a></div></div></div>
- </div>
- </div>
- </div>
-
- <div class="banner">
- <div class="row">
- <div class="col-12">Fonts and Font Facilities Supplied with Ghostscript</div>
- </div>
- </div>
-
- <div class="main">
- <div class="row">
- <div id="sidebar">
- <div class="sidebar-item"></div>
- <div class="col-2 leftnav">
- <ul>
- <li><a href="https://www.ghostscript.com/">Home</a></li>
- <li><a href="https://www.ghostscript.com/license.html">Licensing</a></li>
- <li><a href="https://www.ghostscript.com/releases.html">Releases</a></li>
- <li><a href="https://www.ghostscript.com/documentation.html" title="Documentation">Documentation</a></li>
- <li><a href="https://www.ghostscript.com/download.html" title="Download">Download</a></li>
- <li><a href="https://www.ghostscript.com/performance.html" title="Performance">Performance</a></li>
- <li><a href="http://jbig2dec.com/" title="jbig2dec">jbig2dec</a></li>
- <li><a href="http://git.ghostscript.com/?p=ghostpdl.git;a=summary">Source</a></li>
- <li><a href="http://bugs.ghostscript.com/">Bugs</a></li>
- <li><a href="https://www.ghostscript.com/faq.html" title="FAQ">FAQ</a></li>
- </ul>
- </div>
- </div>
- <div class="col-10 page">
-
+ <div class="inner">
<!--START EDITING HERE-->
-<h2>Table of contents</h2>
+<h1>Fonts and Font Facilities Supplied with Ghostscript</h1>
-<blockquote><ul>
-<li><a href="#About">About Ghostscript fonts</a></li>
-<li><a href="#Free_fonts">Ghostscript's free fonts</a></li>
-<li><a href="#Get_fonts">How Ghostscript gets fonts when it runs</a></li>
-<li><a href="#Platform_fonts">Platform fonts</a></li>
-<li><a href="#Add_fonts">Adding your own fonts</a></li>
-<ul>
-<li><a href="#Convert_BDF">Converting BDF fonts</a></li>
-</ul>
-<li><a href="#For_developers">For developers only</a></li>
-<li><a href="#Use_gs_fonts_with_X">Using Ghostscript fonts on X Windows displays</a></li>
-<ul>
-<li><a href="#Using_xset">Using <code>xset</code></a></li>
-<li><a href="#Font_permanent_installation">Permanent installation</a></li>
-<ul>
-<li><a href="#Configure_xfs">Configuring the <code>xfs</code> font server</a></li>
-<li><a href="#Configure_Xfree86">Xfree86 display servers</a></li>
-</ul>
+<h2><a name="toc"></a>Table of contents</h2>
+<ul class="toc">
+ <li><a href="#About">About Ghostscript fonts</a></li>
+ <li><a href="#Free_fonts">Ghostscript's free fonts</a></li>
+ <li><a href="#Get_fonts">How Ghostscript gets fonts when it runs</a></li>
+ <li><a href="#Platform_fonts">Platform fonts</a></li>
+ <li><a href="#Add_fonts">Adding your own fonts</a></li>
+ <li>
+ <ul>
+ <li><a href="#Convert_BDF">Converting BDF fonts</a></li>
+ </ul>
+ </li>
+ <li><a href="#For_developers">For developers only</a></li>
+ <li><a href="#Use_gs_fonts_with_X">Using Ghostscript fonts on X Windows displays</a></li>
+ <li>
+ <ul>
+ <li><a href="#Using_xset">Using <code>xset</code></a></li>
+ <li><a href="#Font_permanent_installation">Permanent installation</a></li>
+ <li>
+ <ul>
+ <li><a href="#Configure_xfs">Configuring the <code>xfs</code> font server</a></li>
+ <li><a href="#Configure_Xfree86">Xfree86 display servers</a></li>
+ </ul>
+ </li>
+ </ul>
+ </li>
</ul>
-</ul></blockquote>
<!-- [1.2 end table of contents] =========================================== -->
@@ -231,39 +204,39 @@ bdftops&nbsp;BDF_filename&nbsp;[AFM_file1_name&nbsp;...]&nbsp;gsf_filename&nbsp;
The arguments have these meanings:</p>
<blockquote><table>
<tr valign="top"> <td><code>BDF_filename</code></td>
- <td>&nbsp;&nbsp;</td>
+
<td>Input bitmap file in BDF format</td>
- <td>&nbsp;&nbsp;</td>
+
<td>&nbsp;</td></tr>
<tr valign="top"> <td><code>AFM_file1_name</code></td>
- <td>&nbsp;</td>
+
<td>AFM files giving metrics</td>
- <td>&nbsp;</td>
+
<td>(Optional)</td></tr>
<tr valign="top"> <td><code>gsf_filename</code></td>
- <td>&nbsp;</td>
+
<td>Output file</td>
- <td>&nbsp;</td>
+
<td>&nbsp;</td></tr>
<tr valign="top"> <td><code>fontname</code></td>
- <td>&nbsp;</td>
+
<td>Name of the font</td>
- <td>&nbsp;</td>
+
<td>&nbsp;</td></tr>
<tr valign="top"> <td><code>UniqueID</code></td>
- <td>&nbsp;</td>
+
<td>UniqueID (<a href="#Unique_IDs">as described below</a>)</td>
- <td>&nbsp;</td>
+
<td>&nbsp;</td></tr>
<tr valign="top"> <td><code>XUID</code></td>
- <td>&nbsp;</td>
+
<td>XUID, in the form <code>n1.n2.n3...</code> (<a href="#Unique_IDs">as described below</a>)</td>
- <td>&nbsp;</td>
+
<td>(Optional)</td></tr>
<tr valign="top"> <td><code>encodingname</code></td>
- <td>&nbsp;</td>
+
<td>"StandardEncoding" (the default), "ISOLatin1Encoding",<br>"SymbolEncoding", "DingbatsEncoding"</td>
- <td>&nbsp;</td>
+
<td>(Optional)</td></tr>
</table></blockquote>
@@ -347,7 +320,7 @@ your own fonts that you distribute.)</p>
<hr>
<p>
-<small>Copyright &copy; 2000-2021 Artifex Software, Inc. All rights reserved.</small>
+<small>Copyright &copy; 2000-2022 Artifex Software, Inc. All rights reserved.</small>
<p>
This software is provided AS-IS with no warranty, either express or
@@ -360,40 +333,16 @@ or contact Artifex Software, Inc., 1305 Grant Avenue - Suite 200,
Novato, CA 94945, U.S.A., +1(415)492-9861, for further information.
<p>
-<small>Ghostscript version 9.55.0, 27 September 2021
+<small>Ghostscript version 9.56.0, 29 March 2022
<!-- [3.0 end visible trailer] ============================================= -->
-<!--FINISH EDITING HERE-->
-
- </div>
- </div>
- </div>
- <div class="footer">
- <div class="row">
- <div class="col-7 footleft">
- <ul>
- <li><a href="https://artifex.com/contact-us/" target="blank">CONTACT US</a></li>
- <li><a href="https://artifex.com/about-us/" target="blank">ABOUT</a></li>
- <li><a href="https://ghostscript.com/security.html">SECURITY</a></li>
- </ul>
- </div>
- <div class="col-1 footcenter">
- <ul>
- <li><a href="https://artifex.com/support/" target="blank">SUPPORT</a></li>
- <li><a href="https://artifex.com/blog/artifex/" target="blank">BLOG</a></li>
- <li><a href="https://artifex.com/privacy-policy/" target="blank">PRIVACY</a></li>
- </ul>
- </div>
- <div class="col-ft-3 footright"><img src="images/Artifex_logo.png" width="194" height="40" alt=""/> <br>
- © Copyright 2019-2021 Artifex Software, Inc. <br>
- All rights reserved.
- </div>
- </div>
- </div>
-
- <script src="http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>
- <script src="index.js"></script>
+<!--FINISH EDITING HERE-->
+ </div><!-- close inner -->
+ </div><!-- close outer -->
+ </article>
+ </main>
+ <script src="site.js"></script>
</body>
</html>
diff --git a/doc/GPDL.htm b/doc/GPDL.htm
index 9c37af4a..c6016421 100644
--- a/doc/GPDL.htm
+++ b/doc/GPDL.htm
@@ -1,103 +1,76 @@
<!doctype html>
-<html>
+<html lang="en">
<head>
-<meta charset="UTF-8">
-<meta name="viewport" content="width=device-width, initial-scale=1.0">
-<link href="https://fonts.googleapis.com/css?family=Source+Sans+Pro" rel="stylesheet">
-<link rel="shortcut icon" type="image/png" href="../../images/favicon.png">
-<title>The GhostPDL Interpreter Framework</title>
-<link href="style.css" rel="stylesheet" type="text/css">
-<link href="gs-style.css" rel="stylesheet" type="text/css">
+ <meta http-equiv="content-type" content="text/html; charset=utf-8">
+ <meta name="viewport" content="user-scalable=yes, initial-scale=1, width=device-width">
+ <link href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:200,200i,300,300i,400,400i,600,600i,700,700i,900,900i" rel="stylesheet">
+ <link rel="shortcut icon" href="images/favicon.svg">
+ <title>The GhostPDL Interpreter Framework</title>
+ <link href="default.css" rel="stylesheet" type="text/css">
</head>
<body>
+ <header><div class="title"><a href="index.html"><h1 aria-label="title">Ghostscript documentation</h1><h2 aria-label="version"></h2></a></div><a href="Search.htm" aria-label="Search" id="searchSite"><div class="search"></div></a></header>
+ <main>
+ <article>
+ <div class="outer">
- <div class="header">
- <div class="row">
- <div class="col-lt-6 logo"><a href="https://www.ghostscript.com/"><img src="images/ghostscript_logo.png" width="108" height="119" alt=""></a></div>
- <div class="col-6"><div class="row"><div class="artifexlogo"><a href="https://artifex.com" target="_blank"><img src="images/Artifex_logo.png" width="194" height="40" alt=""></a></div>
- <div class="col-12"><div class="button button1"><a href="https://artifex.com/contact-us/" title="Contact Us" target="_blank">Contact Us</a></div>
- <div class="button button2 hidden-xs"><a href="https://www.ghostscript.com/download.html" title="Download">Download</a></div></div></div>
- </div>
- </div>
- </div>
-
- <div class="banner">
- <div class="row">
- <div class="col-12">The GhostPDL Interpreter Framework</div>
- </div>
- </div>
-
- <div class="main">
- <div class="row">
- <div id="sidebar">
- <div class="sidebar-item"></div>
- <div class="col-2 leftnav">
-<ul>
- <li><a href="https://www.ghostscript.com/">Home</a></li>
- <li><a href="https://www.ghostscript.com/license.html">Licensing</a></li>
- <li><a href="https://www.ghostscript.com/releases.html">Releases</a></li>
- <li><a href="https://www.ghostscript.com/documentation.html" title="Documentation">Documentation</a></li>
- <li><a href="https://www.ghostscript.com/download.html" title="Download">Download</a></li>
- <li><a href="https://www.ghostscript.com/performance.html" title="Performance">Performance</a></li>
- <li><a href="http://jbig2dec.com/" title="jbig2dec">jbig2dec</a></li>
- <li><a href="http://git.ghostscript.com/?p=ghostpdl.git;a=summary">Source</a></li>
- <li><a href="http://bugs.ghostscript.com/">Bugs</a></li>
- <li><a href="https://www.ghostscript.com/faq.html" title="FAQ">FAQ</a></li>
- </ul>
- </div>
- </div>
- <div class="col-10 page">
-
+ <div class="inner">
<!--START EDITING HERE-->
-<h2>Table of contents</h2>
-
-<ul>
-<li><a href="#What_Is_This">What is the GhostPDL Interpreter Framework?</a></li>
-<li><a href="#API">The API</a></li>
- <ul>
- <li><a href="#run">The run_string functions</a></li>
- <li><a href="#string_vs_file">String vs File functions</a></li>
- </ul>
-<li><a href="#executable">The GPDL executable</a></li>
-<li><a href="#different_switches">Differences in switches from Ghostscript</a></li>
-<li><a href="#languages">Supported languages</a></li>
- <ul>
- <li><a href="#PJL">PJL</a></li>
- <li><a href="#PCL">PCL</a></li>
- <li><a href="#PCLXL">PCLXL</a></li>
- <li><a href="#XPS">XPS</a></li>
- <li><a href="#POSTSCRIPT">POSTSCRIPT</a></li>
- <li><a href="#URF">URF</a></li>
- <li><a href="#JPG">JPG</a></li>
- <li><a href="#PWG">PWG</a></li>
- <li><a href="#TIFF">TIFF</a></li>
- <li><a href="#JBIG2">JBIG2</a></li>
- <li><a href="#JP2K">JP2K</a></li>
- <li><a href="#PNG">PNG</a></li>
- </ul>
-<li><a href="#new_language">Adding a new language</a></li>
- <ul>
- <li><a href="proc_characteristics">proc_characteristics</a></li>
- <li><a href="proc_allocate_interp_instance">proc_allocate_interp_instance</a></li>
- <li><a href="proc_get_device_memory">proc_get_device_memory</a></li>
- <li><a href="proc_set_param">proc_set_param</a></li>
- <li><a href="proc_add_path">proc_add_path</a></li>
- <li><a href="proc_post_args_init">proc_post_args_init</a></li>
- <li><a href="proc_init_job">proc_init_job</a></li>
- <li><a href="proc_run_prefix_commands">proc_run_prefix_commands</a></li>
- <li><a href="proc_process_file">proc_process_file</a></li>
- <li><a href="proc_process_begin">proc_process_begin</a></li>
- <li><a href="proc_process">proc_process</a></li>
- <li><a href="proc_process_end">proc_process_end</a></li>
- <li><a href="proc_flush_to_eoj">proc_flush_to_eoj</a></li>
- <li><a href="proc_process_eof">proc_process_eof</a></li>
- <li><a href="proc_report_errors">proc_report_errors</a></li>
- <li><a href="proc_dnit_job">proc_dnit_job</a></li>
- <li><a href="proc_deallocate_interp_instance">proc_deallocate_interp_instance</a></li>
- </ul>
+<h1>The GhostPDL Interpreter Framework</h1>
+<h2><a name="toc"></a>Table of contents</h2>
+<ul class="toc">
+ <li><a href="#What_Is_This">What is the GhostPDL Interpreter Framework?</a></li>
+ <li><a href="#API">The API</a></li>
+ <li>
+ <ul>
+ <li><a href="#run">The run_string functions</a></li>
+ <li><a href="#string_vs_file">String vs File functions</a></li>
+ </ul>
+ </li>
+ <li><a href="#executable">The GPDL executable</a></li>
+ <li><a href="#different_switches">Differences in switches from Ghostscript</a></li>
+ <li><a href="#languages">Supported languages</a></li>
+ <li>
+ <ul>
+ <li><a href="#PJL">PJL</a></li>
+ <li><a href="#PCL">PCL</a></li>
+ <li><a href="#PCLXL">PCLXL</a></li>
+ <li><a href="#XPS">XPS</a></li>
+ <li><a href="#POSTSCRIPT">POSTSCRIPT</a></li>
+ <li><a href="#URF">URF</a></li>
+ <li><a href="#JPG">JPG</a></li>
+ <li><a href="#PWG">PWG</a></li>
+ <li><a href="#TIFF">TIFF</a></li>
+ <li><a href="#JBIG2">JBIG2</a></li>
+ <li><a href="#JP2K">JP2K</a></li>
+ <li><a href="#PNG">PNG</a></li>
+ </ul>
+ </li>
+ <li><a href="#new_language">Adding a new language</a></li>
+ <li>
+ <ul>
+ <li><a href="proc_characteristics">proc_characteristics</a></li>
+ <li><a href="proc_allocate_interp_instance">proc_allocate_interp_instance</a></li>
+ <li><a href="proc_get_device_memory">proc_get_device_memory</a></li>
+ <li><a href="proc_set_param">proc_set_param</a></li>
+ <li><a href="proc_add_path">proc_add_path</a></li>
+ <li><a href="proc_post_args_init">proc_post_args_init</a></li>
+ <li><a href="proc_init_job">proc_init_job</a></li>
+ <li><a href="proc_run_prefix_commands">proc_run_prefix_commands</a></li>
+ <li><a href="proc_process_file">proc_process_file</a></li>
+ <li><a href="proc_process_begin">proc_process_begin</a></li>
+ <li><a href="proc_process">proc_process</a></li>
+ <li><a href="proc_process_end">proc_process_end</a></li>
+ <li><a href="proc_flush_to_eoj">proc_flush_to_eoj</a></li>
+ <li><a href="proc_process_eof">proc_process_eof</a></li>
+ <li><a href="proc_report_errors">proc_report_errors</a></li>
+ <li><a href="proc_dnit_job">proc_dnit_job</a></li>
+ <li><a href="proc_deallocate_interp_instance">proc_deallocate_interp_instance</a></li>
+ </ul>
+ </li>
</ul>
<!-- [1.2 end table of contents] =========================================== -->
@@ -565,7 +538,7 @@ instance and free all the resources.</p>
<!-- [3.0 begin visible trailer] =========================================== -->
<hr>
<p>
-<small>Copyright &copy; 2000-2021 Artifex Software, Inc. All rights reserved.</small></p>
+<small>Copyright &copy; 2000-2022 Artifex Software, Inc. All rights reserved.</small></p>
<p>
This software is provided AS-IS with no warranty, either express or
@@ -578,40 +551,16 @@ or contact Artifex Software, Inc., 1305 Grant Avenue - Suite 200,
Novato, CA 94945, U.S.A., +1(415)492-9861, for further information.</p>
<p>
-<small>Ghostscript version 9.55.0, 27 September 2021
+<small>Ghostscript version 9.56.0, 29 March 2022
<!-- [3.0 end visible trailer] ============================================= -->
-<!--FINISH EDITING HERE-->
-
- </div>
- </div>
- </div>
- <div class="footer">
- <div class="row">
- <div class="col-7 footleft">
- <ul>
- <li><a href="https://artifex.com/contact-us/" target="blank">CONTACT US</a></li>
- <li><a href="https://artifex.com/about-us/" target="blank">ABOUT</a></li>
- <li><a href="https://ghostscript.com/security.html">SECURITY</a></li>
- </ul>
- </div>
- <div class="col-1 footcenter">
- <ul>
- <li><a href="https://artifex.com/support/" target="blank">SUPPORT</a></li>
- <li><a href="https://artifex.com/blog/artifex/" target="blank">BLOG</a></li>
- <li><a href="https://artifex.com/privacy-policy/" target="blank">PRIVACY</a></li>
- </ul>
- </div>
- <div class="col-ft-3 footright"><img src="images/Artifex_logo.png" width="194" height="40" alt=""/> <br>
- © Copyright 2019-2021 Artifex Software, Inc. <br>
- All rights reserved.
- </div>
- </div>
- </div>
-
- <script src="http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>
- <script src="index.js"></script>
+<!--FINISH EDITING HERE-->
+ </div><!-- close inner -->
+ </div><!-- close outer -->
+ </article>
+ </main>
+ <script src="site.js"></script>
</body>
</html>
diff --git a/doc/History9.htm b/doc/History9.htm
index 5002c9bf..afe8c2f0 100644
--- a/doc/History9.htm
+++ b/doc/History9.htm
@@ -1,61 +1,21 @@
<!doctype html>
-<html>
+<html lang="en">
<head>
-<meta charset="UTF-8">
-<meta name="viewport" content="width=device-width, initial-scale=1.0">
-<link href="https://fonts.googleapis.com/css?family=Source+Sans+Pro" rel="stylesheet">
-<link rel="shortcut icon" type="image/png" href="../../images/favicon.png">
-<title>History of Ghostscript versions 9.n</title>
- <!--
-WARNING: do not use Pete Kaiser's emacs function "gs-toc" alone to
-re-create the table of contents here, because it will replace the
-hand-edited TOC subheads with a separate subhead for each H2 in
-the body of the file. Or if you do, first look at the original
-TOC to see how to edit it for visual conciseness.
--->
-<link href="style.css" rel="stylesheet" type="text/css">
-<link href="gs-style.css" rel="stylesheet" type="text/css">
+ <meta http-equiv="content-type" content="text/html; charset=utf-8">
+ <meta name="viewport" content="user-scalable=yes, initial-scale=1, width=device-width">
+ <link href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:200,200i,300,300i,400,400i,600,600i,700,700i,900,900i" rel="stylesheet">
+ <link rel="shortcut icon" href="images/favicon.svg">
+ <title>History of Ghostscript versions 9.n</title>
+ <link href="default.css" rel="stylesheet" type="text/css">
</head>
<body>
+ <header><div class="title"><a href="index.html"><h1 aria-label="title">Ghostscript documentation</h1><h2 aria-label="version"></h2></a></div><a href="Search.htm" aria-label="Search" id="searchSite"><div class="search"></div></a></header>
+ <main>
+ <article>
+ <div class="outer">
- <div class="header">
- <div class="row">
- <div class="col-lt-6 logo"><a href="https://www.ghostscript.com/"><img src="images/ghostscript_logo.png" width="108" height="119" alt=""></a></div>
- <div class="col-6"><div class="row"><div class="artifexlogo"><a href="https://artifex.com" target="_blank"><img src="images/Artifex_logo.png" width="194" height="40" alt=""></a></div>
- <div class="col-12"><div class="button button1"><a href="https://artifex.com/contact-us/" title="Contact Us" target="_blank">Contact Us</a></div>
- <div class="button button2 hidden-xs"><a href="https://www.ghostscript.com/download.html" title="Download">Download</a></div></div></div>
- </div>
- </div>
- </div>
-
- <div class="banner">
- <div class="row">
- <div class="col-12">History of Ghostscript Versions 9.xx</div>
- </div>
- </div>
-
- <div class="main">
- <div class="row">
- <div id="sidebar">
- <div class="sidebar-item"></div>
- <div class="col-2 leftnav">
- <ul>
- <li><a href="https://www.ghostscript.com/">Home</a></li>
- <li><a href="https://www.ghostscript.com/license.html">Licensing</a></li>
- <li><a href="https://www.ghostscript.com/releases.html">Releases</a></li>
- <li><a href="https://www.ghostscript.com/documentation.html" title="Documentation">Documentation</a></li>
- <li><a href="https://www.ghostscript.com/download.html" title="Download">Download</a></li>
- <li><a href="https://www.ghostscript.com/performance.html" title="Performance">Performance</a></li>
- <li><a href="http://jbig2dec.com/" title="jbig2dec">jbig2dec</a></li>
- <li><a href="http://git.ghostscript.com/?p=ghostpdl.git;a=summary">Source</a></li>
- <li><a href="http://bugs.ghostscript.com/">Bugs</a></li>
- <li><a href="https://www.ghostscript.com/faq.html" title="FAQ">FAQ</a></li>
- </ul>
- </div>
- </div>
- <div class="col-10 page">
-
+ <div class="inner">
<!--START EDITING HERE-->
<!--
@@ -66,46 +26,30 @@ the body of the file. Or if you do, first look at the original
TOC to see how to edit it for visual conciseness.
-->
-<h2>Table of contents</h2>
+<h2><a name="toc"></a>Table of contents</h2>
-<blockquote><ul>
-<li><a href="#Version9.55.0">Version 9.55.0 (2021-09-27)</a>
-<li><a href="#Version9.54.0">Version 9.54.0 (2021-03-19)</a>
-<li><a href="#Version9.53.3">Version 9.53.3 (2020-10-01)</a>
-<li><a href="#Version9.52">Version 9.52 (2020-03-19)</a>
-<li><a href="#Version9.50">Version 9.50 (2019-10-15)</a>
-<li><a href="#Version9.27">Version 9.27 (2019-04-03)</a>
-<li><a href="#Version9.26">Version 9.26 (2018-11-20)</a>
-<li><a href="#Version9.25">Version 9.25 (2018-09-13)</a>
-<li><a href="#Version9.24">Version 9.24 (2018-09-03)</a>
-<li><a href="#Version9.23">Version 9.23 (2018-03-21)</a>
-<li><a href="#Version9.22">Version 9.22 (2017-10-04)</a>
-<li><a href="#Version9.21">Version 9.21 (2017-03-16)</a>
-<li><a href="#Version9.20">Version 9.20 (2016-09-26)</a>
-<li><a href="#Version9.19">Version 9.19 (2016-03-23)</a>
-<li><a href="#Version9.18">Version 9.18 (2015-09-23)</a>
-<li><a href="#Version9.16">Version 9.16 (2015-03-30)</a>
-<li><a href="#Version9.15">Version 9.15 (2014-09-22)</a>
-<li><a href="#Version9.14">Version 9.14 (2014-03-26)</a>
-<li><a href="#Version9.10">Version 9.10 (2013-08-27)</a>
-<li><a href="#Version9.09">Version 9.09 (2013-08-21)</a>
-<li><a href="#Version9.07">Version 9.07 (2013-02-14)</a>
-<li><a href="#Version9.06">Version 9.06 (2012-07-31)</a>
-<li><a href="#Version9.05">Version 9.05 (2012-02-08)</a>
-<li><a href="#Version9.04">Version 9.04 (2011-08-05)</a>
-<li><a href="#Version9.02">Version 9.02 (2011-03-30)</a>
-<li><a href="#Version9.01">Version 9.01 (2011-02-07)</a>
-<li><a href="#Version9.00">Version 9.00 (2010-09-14)</a>
+<blockquote><ul class="toc">
+<li><a href="#Version9.56.0">Version 9.56.0 (2022-02-22)</a></li>
</ul></blockquote>
+<h1>History of Ghostscript versions 9.n</h1>
+
+
+<ul>
+ <li>Version 9.56.0 (2022-03-14)</li>
+</ul>
+
+
+
<!-- [1.2 end table of contents] =========================================== -->
<!-- [1.3 begin hint] ====================================================== -->
-<p>For other information, see the <a href="Readme.htm">Ghostscript
-<p>See <a href="https://www.ghostscript.com/ocr.html">Enabling OCR</a> for more details.
-<p>See <a href="https://www.ghostscript.com/ocr.html">Enabling OCR</a> for more details.
-overview</a>.
+
+<p>
+This document is a record of changes in Ghostscript releases numbered 9.xx.
+<p><u>Important</u>: see <a href="#9.56.0_changelog">Version 9.56.0 Changelog</a>
+
<!-- [1.3 end hint] ======================================================== -->
@@ -114,50 +58,31 @@ overview</a>.
<!-- [1.0 end visible header] ============================================== -->
<!-- [2.0 begin contents] ================================================== -->
-<h2><a name="Version9.55.0"></a>Version 9.55.0 (2021-09-27)</h2>
+<h2><a name="Version9.56.0"></a>Version 9.56.0 (2022-02-22)</h2>
<p> Highlights in this release include:
<ul>
-<p>This release includes the fix for the <code>%pipe%</code> security issue (CVE-2021-3781).
-</li>
<li>
<p><b>New PDF Interpreter:</b> This is an entirely new implementation written in C (rather than
PostScript, as before). For a full discussion of this change and reasons for it see:
<a href="https://ghostscript.com/pdfi.html">Changes Coming to the PDF Interpreter</a>.
-<p>In this (9.55.0) release, the new PDF interpreter is disabled by default in Ghostscript,
-but can be used by specifying <code>-dNEWPDF</code>. We hope to make it the default in 9.56.0, and
-fully deprecate the PostScript implementation shortly after that (depending on the feedback
-we get).
+<p>In this (9.56.0) release, the new PDF interpreter is now <em><u>ENABLED</u></em> by default
+in Ghostscript, but the old PDF interpreter can be used as a fallback by specifying
+<code>-dNEWPDF=false</code>. We've provided this so users that encounter issues with the new
+interpreter can keep working while we iron out those issues, the option will not be available in
+the long term.
<p>This also allows us to offer a new executable (<code>gpdf</code>, or <code>gpdfwin??.exe</code>
on Windows) which is <i>purely</i> for PDF input. For this release, those new binaries are not included
-in the "install" make targets, nor in the Windows installers (they will be from 9.56.0 onwards).
-<p>We would ask that as many users as possible take the opportunity to test with the new PDF implementation
-(i.e. using <code>-dNEWPDF</code> on your gs command line), and discuss any problems with us, before
-the new implementation becomes the default.
-</li>
-<li>
-<p>The pdfwrite device now supports &quot;passthrough&quot; for JPX/JPG2000 data images (as well as the
-already supported JPEG/DCT Encoded). That means that if no rescaling or color conversion of the image data
-is required, the encoded/compressed image data from the input file will be written unchanged to the output,
-preventing potential image degradation caused by decompressing and recompressing.
-</li>
-<li>
-<p>The Ghostscript/GhostPDL demo apps for C, C#, Java and Python have all had improvements and the
-C#/Java/Python language bindings have now been documented, see <a href="language-bindings/index.html">Ghostscript Language Bindings</a>
+in the "install" make targets, nor in the Windows installers.
</li>
<li>
-<p>The Zugferd compliant PDF generating definitions (<code>lib/zugferd.ps</code>) have been updated and expanded to support the
-current version (2.1.1) of the Zugferd spec, and optionally different versions of the specification.
+<p>Calling Ghostscript via the GS API is now thread safe. The one limitation is that the X11 devices for
+Unix-like systems (x11, x11alpha, x11cmyk, x11cmyk2, x11cmyk4, x11cmyk8, x11gray2, x11gray4 and x11mono)
+cannot be made thread safe, due to their interaction with the X11 server, those devices have been modified
+to only allow one instance in an executable.
</li>
<li>
-<p>The PCL/m output devices now support Duplex/Tumble.
-</li>
-<li>
-<p>The internal support for &quot;n-up&quot; style simple imposition (introduced in 9.54.0) has been extended and improved
-for better support across all input formats.
-</li>
-<li>
-<p>Ghostscript now supports object specific halftone - for example, different halftones can be specified for text and
-images, reflecting the differing needs of rendering those two types of object.
+<p>The <code>PSD</code> output device now writes ICC profiles to their output files, for improved
+color fidelity.
</li>
<li>
<p>Our efforts in code hygiene and maintainability continue.
@@ -182,7 +107,7 @@ community demand for the feature.
please visit <a href="http://bugs.ghostscript.com/">bugs.ghostscript.com</a>.
<h3><a name="9.55.0_Incompatible_changes"></a>Incompatible changes</h3>
<h4>Included below are incompatible changes from recent releases (the
-specific release in question listed in parentheses). We include these,
+specific release in question is listed in parentheses). We include these,
for now, as we are aware that not everyone upgrades with every release.</h4>
<ul>
<li>
@@ -200,15 +125,15 @@ for more details.
</li>
<li>
<p>(9.53.0) As of 9.53.0, we have (re-)introduced the patch level to the version number,
-this helps facilitate a revised policy on handling security related issues.
-<p><strong>Note for GSView Users:</strong>The patch level addition breaks GSView 5 (it is
+this helps facilitate a revised policy on handling security-related issues.
+<p><strong>Note for GSView Users: </strong>The patch level addition breaks GSView 5 (it is
hardcoded to check for versions <code>704-999</code>. It is possible, but not guaranteed that
a GSView update might be forthcoming to resolve this.
</li>
<li>
<p>(9.52) <code>-dALLOWPSTRANSPARENCY</code>: The transparency compositor (and related
features), whilst we are improving it, remains sensitive to being driven correctly, and
-incorrect use can have unexpected/undefined results. Hence, as part of improving security
+incorrect use can have unexpected/undefined results. Hence, as part of improving security,
we limited access to these operators, originally using the <code>-dSAFER</code> feature.
As we made "SAFER" the default mode, that became unacceptable, hence the new option
<code>-dALLOWPSTRANSPARENCY</code> which enables access to the operators.
@@ -221,13 +146,13 @@ Secondly, the interaction with <code>save</code>&sol;<code>restore</code> operat
has changed. See <a href="Use.htm#Safer">SAFER</a>.
<p><strong>Important Note for Windows Users</strong>:
<br>
-The file/path pattern matching is case sensitive, even on Windows. This is a
+The file/path pattern matching is case-sensitive, even on Windows. This is a
change in behaviour compared to the old code which, on Windows, was case
<i>in</i>sensitive. This is in recognition of changes in Windows behaviour,
in that it now supports (although does not enforce) case sensitivity.
</li>
<li>
-<p>(9.27) The process of &quot;tidying&quot; the PostScript name space should have removed
+<p>(9.27) The process of &quot;tidying&quot; the PostScript namespace should have removed
only non-standard and undocumented operators. Nevertheless, it is possible that
any integrations or utilities that rely on those non-standard and undocumented
operators may stop working or may change behaviour.
@@ -238,17 +163,17 @@ alternative solution or return the previous functionality, if there is genuinely
option.
</li>
</ul>
-<h3><a name="9.55.0_changelog"></a>Changelog</h3>
+<h3><a name="9.56.0_changelog"></a>Changelog</h3>
<p>From 9.55.0 onwards, in recognition of how unwieldy very large HTML files can become
(History9.html had reached 8.1Mb!), we intend to only include the summary highlights (above).
<p>For anyone wanting the full details of the changes in
a release, we ask them to look at the history in our public git repository:
-<a href="https://git.ghostscript.com/?p=ghostpdl.git;a=shortlog;h=refs/tags/ghostpdl-9.55.0">ghostpdl-9.55.0</a> log.
+<a href="https://git.ghostscript.com/?p=ghostpdl.git;a=shortlog;h=refs/tags/ghostpdl-9.56.0">ghostpdl-9.56.0</a> log.
<p>If this change does not draw negative feedback, History?.htm file(s) will be removed from the release archives.
<hr>
<p>
-<small>Copyright &copy; 2000-2021 Artifex Software, Inc. All rights reserved.</small>
+<small>Copyright &copy; 2000-2022 Artifex Software, Inc. All rights reserved.</small>
<p>
This software is provided AS-IS with no warranty, either express or
@@ -261,40 +186,16 @@ or contact Artifex Software, Inc., 1305 Grant Avenue - Suite 200,
Novato, CA 94945, U.S.A., +1(415)492-9861, for further information.
<p>
-<small>Ghostscript version 9.55.0, 27 September 2021
+<small>Ghostscript version 9.56.0, 29 March 2022
<!-- [3.0 end visible trailer] ============================================= -->
-<!--FINISH EDITING HERE-->
-
- </div>
- </div>
- </div>
- <div class="footer">
- <div class="row">
- <div class="col-7 footleft">
- <ul>
- <li><a href="https://artifex.com/contact-us/" target="blank">CONTACT US</a></li>
- <li><a href="https://artifex.com/about-us/" target="blank">ABOUT</a></li>
- <li><a href="https://ghostscript.com/security.html">SECURITY</a></li>
- </ul>
- </div>
- <div class="col-1 footcenter">
- <ul>
- <li><a href="https://artifex.com/support/" target="blank">SUPPORT</a></li>
- <li><a href="https://artifex.com/blog/artifex/" target="blank">BLOG</a></li>
- <li><a href="https://artifex.com/privacy-policy/" target="blank">PRIVACY</a></li>
- </ul>
- </div>
- <div class="col-ft-3 footright"><img src="images/Artifex_logo.png" width="194" height="40" alt=""/> <br>
- © Copyright 2019-2021 Artifex Software, Inc. <br>
- All rights reserved.
- </div>
- </div>
- </div>
-
- <script src="http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>
- <script src="index.js"></script>
+<!--FINISH EDITING HERE-->
+ </div><!-- close inner -->
+ </div><!-- close outer -->
+ </article>
+ </main>
+ <script src="site.js"></script>
</body>
</html>
diff --git a/doc/Install.htm b/doc/Install.htm
index 955f6b05..a230a614 100644
--- a/doc/Install.htm
+++ b/doc/Install.htm
@@ -1,69 +1,39 @@
<!doctype html>
-<html>
+<html lang="en">
<head>
-<meta charset="UTF-8">
-<meta name="viewport" content="width=device-width, initial-scale=1.0">
-<link href="https://fonts.googleapis.com/css?family=Source+Sans+Pro" rel="stylesheet">
-<link rel="shortcut icon" type="image/png" href="../../images/favicon.png">
-<title>How to Install Ghostscript</title>
- <!-- Originally: install.txt -->
-<link href="style.css" rel="stylesheet" type="text/css">
-<link href="gs-style.css" rel="stylesheet" type="text/css">
+ <meta http-equiv="content-type" content="text/html; charset=utf-8">
+ <meta name="viewport" content="user-scalable=yes, initial-scale=1, width=device-width">
+ <link href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:200,200i,300,300i,400,400i,600,600i,700,700i,900,900i" rel="stylesheet">
+ <link rel="shortcut icon" href="images/favicon.svg">
+ <title>How to Install Ghostscript</title>
+ <link href="default.css" rel="stylesheet" type="text/css">
</head>
<body>
+ <header><div class="title"><a href="index.html"><h1 aria-label="title">Ghostscript documentation</h1><h2 aria-label="version"></h2></a></div><a href="Search.htm" aria-label="Search" id="searchSite"><div class="search"></div></a></header>
+ <main>
+ <article>
+ <div class="outer">
- <div class="header">
- <div class="row">
- <div class="col-lt-6 logo"><a href="https://www.ghostscript.com/"><img src="images/ghostscript_logo.png" width="108" height="119" alt=""></a></div>
- <div class="col-6"><div class="row"><div class="artifexlogo"><a href="https://artifex.com" target="_blank"><img src="images/Artifex_logo.png" width="194" height="40" alt=""></a></div>
- <div class="col-12"><div class="button button1"><a href="https://artifex.com/contact-us/" title="Contact Us" target="_blank">Contact Us</a></div>
- <div class="button button2 hidden-xs"><a href="https://www.ghostscript.com/download.html" title="Download">Download</a></div></div></div>
- </div>
- </div>
- </div>
-
- <div class="banner">
- <div class="row">
- <div class="col-12">How to Install Ghostscript</div>
- </div>
- </div>
-
- <div class="main">
- <div class="row">
- <div id="sidebar">
- <div class="sidebar-item"></div>
- <div class="col-2 leftnav">
-<ul>
- <li><a href="https://www.ghostscript.com/">Home</a></li>
- <li><a href="https://www.ghostscript.com/license.html">Licensing</a></li>
- <li><a href="https://www.ghostscript.com/releases.html">Releases</a></li>
- <li><a href="https://www.ghostscript.com/documentation.html" title="Documentation">Documentation</a></li>
- <li><a href="https://www.ghostscript.com/download.html" title="Download">Download</a></li>
- <li><a href="https://www.ghostscript.com/performance.html" title="Performance">Performance</a></li>
- <li><a href="http://jbig2dec.com/" title="jbig2dec">jbig2dec</a></li>
- <li><a href="http://git.ghostscript.com/?p=ghostpdl.git;a=summary">Source</a></li>
- <li><a href="http://bugs.ghostscript.com/">Bugs</a></li>
- <li><a href="https://www.ghostscript.com/faq.html" title="FAQ">FAQ</a></li>
- </ul>
- </div>
- </div>
- <div class="col-10 page">
-
+ <div class="inner">
<!--START EDITING HERE-->
-<h2>Table of contents</h2>
+<h1>How to Install Ghostscript</h1>
-<blockquote><ul>
-<li><a href="#Overview">Overview of how to install Ghostscript</a></li>
-<li><a href="#Install_Unix">Installing Ghostscript on Unix</a></li>
-<ul>
-<li><a href="#Shared_object">Ghostscript as a shared object</a></li>
-<li><a href="#Install_Linux">Additional notes on Linux</a></li>
+<h2><a name="toc"></a>Table of contents</h2>
+<ul class="toc">
+
+ <li><a href="#Overview">Overview of how to install Ghostscript</a></li>
+ <li><a href="#Install_Unix">Installing Ghostscript on Unix</a></li>
+ <li>
+ <ul>
+ <li><a href="#Shared_object">Ghostscript as a shared object</a></li>
+ <li><a href="#Install_Linux">Additional notes on Linux</a></li>
+ </ul>
+ </li>
+ <li><a href="#Install_Windows">Installing Ghostscript on MS Windows</a></li>
+ <li><a href="#Install_VMS">Installing Ghostscript on OpenVMS</a></li>
</ul>
-<li><a href="#Install_Windows">Installing Ghostscript on MS Windows</a></li>
-<li><a href="#Install_VMS">Installing Ghostscript on OpenVMS</a></li>
-</ul></blockquote>
<!-- [1.2 end table of contents] =========================================== -->
@@ -92,6 +62,8 @@ platform-specific. See below for details.</li>
<li>Initialization files that Ghostscript reads in when it
starts up; these are the same on all platforms.</li>
+
+<li>
<ul>
<li><code>gs_</code>*<code>.ps</code> unless Ghostscript was compiled
using the "compiled initialization files" option. See the documentation of
@@ -107,6 +79,7 @@ appropriate <code>Fontmap.</code><em>xxx</em> for your platform), unless
you plan always to invoke Ghostscript with the <a
href="Use.htm#FONTMAP_switch"><code>-dNOFONTMAP</code> switch</a>.</li>
</ul>
+</li>
<li>Fonts, for rendering text. These are platform-independent,
but if you already have fonts of the right kind on your platform,
@@ -213,24 +186,24 @@ no responsibility for RPMs created by others.</p>
We usually distribute Ghostscript releases for Windows as a binary installer,
for the convenience of most users.</p>
-<h4><a name="Windows16"></a>Windows 3.1 (16-bit)</h4>
+<h3><a name="Windows16"></a>Windows 3.1 (16-bit)</h3>
<p>
The last version to run on 16-bit Windows 3.1 was Ghostscript 4.03.</p>
-<h4><a name="Windows32"></a>Windows 95, 98, Me</h4>
+<h3><a name="Windows32"></a>Windows 95, 98, Me</h3>
<p>
The last version to be available as a binary for Windows 95/98/Me was 8.60. Although
building from source with Visual Studio 2003 should produce a working binary for those
versions.</p>
-<h4><a name="Windows32"></a>Windows NT4, 2000, XP, 2003 or Vista (32-bit)</h4>
+<h3><a name="Windows32"></a>Windows NT4, 2000, XP, 2003 or Vista (32-bit)</h3>
<p>
The installer is normally named
<code>gs###w32.exe</code>,
where ### is the release number (e.g., 871 for Ghostscript 8.71,
910 for Ghostscript 9.10).</p>
-<h4><a name="Windows64"></a>Windows XP x64 edition, 2003 or Vista (64-bit)</h4>
+<h3><a name="Windows64"></a>Windows XP x64 edition, 2003 or Vista (64-bit)</h3>
<p>
The x64 installer is normally named
<code>gs###w64.exe</code>
@@ -268,14 +241,14 @@ subdirectory, are:</p>
<blockquote><table>
<tr><td><code>GSWIN32C.EXE</code></td>
- <td>&nbsp;</td>
+
<td>Ghostscript as a 32-bit Windows command line program.
This is usually the preferred executable.</td></tr>
<tr><td><code>GSWIN32.EXE</code></td>
- <td>&nbsp;</td>
+
<td>32-bit Ghostscript using its own window for commands</td></tr>
<tr><td><code>GSDLL32.DLL</code></td>
- <td>&nbsp;</td>
+
<td>32-bit dynamic link library containing most of Ghostscript's functionality</td></tr>
</table></blockquote>
@@ -285,14 +258,14 @@ For the 64-bit Windows install, also in the <code>gs<em>#.##</em>\bin</code>
<blockquote><table>
<tr><td><code>GSWIN64C.EXE</code></td>
- <td>&nbsp;</td>
+
<td>Ghostscript as a 64-bit Windows command line program.
This is usually the preferred executable.</td></tr>
<tr><td><code>GSWIN64.EXE</code></td>
- <td>&nbsp;</td>
+
<td>64-bit Ghostscript using its own window for commands</td></tr>
<tr><td><code>GSDLL64.DLL</code></td>
- <td>&nbsp;</td>
+
<td>64-bit dynamic link library containing most of Ghostscript's functionality</td></tr>
</table></blockquote>
@@ -381,28 +354,30 @@ a different location so adjust the following commands accordingly.</p>
<li>Download the fonts and unpack them into
<code>DISK1:[DIR.GHOSTSCRIPT.LIB]</code>.</li>
-<li>Enable access to the program and support files for all users with:</li>
+<li>Enable access to the program and support files for all users with:
<blockquote><pre>
&#36; set file/prot=w:re DISK1:[DIR]GHOSTSCRIPT.dir
&#36; set file/prot=w:re DISK1:[DIR.GHOSTSCRIPT...]*.*
</pre></blockquote>
-
+</li>
<li>Optionally, add the Ghostscript help instructions to your system wide
-help file:</li>
+help file:
<blockquote><pre>
&#36; lib/help sys&#36;help:HELPLIB.HLB DISK1:[DIR.GHOSTSCRIPT.DOC]GS-VMS.HLP
</pre></blockquote>
+</li>
<li>Lastly, add the following lines to the appropriate system wide or user
-specific login script.</li>
+specific login script.
<blockquote><pre>
&#36; define gs_exe DISK1:[DIR.GHOSTSCRIPT.BIN]
&#36; define gs_lib DISK1:[DIR.GHOSTSCRIPT.EXE]
&#36; gs :== &#36;gs_exe:gs.exe
</pre></blockquote>
+</li>
</ul>
@@ -417,7 +392,7 @@ comment at the beginning of the latter file for more information.</p>
<hr>
<p>
-<small>Copyright &copy; 2000-2021 Artifex Software, Inc. All rights reserved.</small>
+<small>Copyright &copy; 2000-2022 Artifex Software, Inc. All rights reserved.</small>
<p>
This software is provided AS-IS with no warranty, either express or
@@ -430,40 +405,15 @@ or contact Artifex Software, Inc., 1305 Grant Avenue - Suite 200,
Novato, CA 94945, U.S.A., +1(415)492-9861, for further information.
<p>
-<small>Ghostscript version 9.55.0, 27 September 2021
+<small>Ghostscript version 9.56.0, 29 March 2022
<!-- [3.0 end visible trailer] ============================================= -->
<!--FINISH EDITING HERE-->
-
- </div>
- </div>
- </div>
-
- <div class="footer">
- <div class="row">
- <div class="col-7 footleft">
- <ul>
- <li><a href="https://artifex.com/contact-us/" target="blank">CONTACT US</a></li>
- <li><a href="https://artifex.com/about-us/" target="blank">ABOUT</a></li>
- <li><a href="https://ghostscript.com/security.html">SECURITY</a></li>
- </ul>
- </div>
- <div class="col-1 footcenter">
- <ul>
- <li><a href="https://artifex.com/support/" target="blank">SUPPORT</a></li>
- <li><a href="https://artifex.com/blog/artifex/" target="blank">BLOG</a></li>
- <li><a href="https://artifex.com/privacy-policy/" target="blank">PRIVACY</a></li>
- </ul>
- </div>
- <div class="col-ft-3 footright"><img src="images/Artifex_logo.png" width="194" height="40" alt=""/> <br>
- © Copyright 2019-2021 Artifex Software, Inc. <br>
- All rights reserved.
- </div>
- </div>
- </div>
-
- <script src="http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>
- <script src="index.js"></script>
+ </div><!-- close inner -->
+ </div><!-- close outer -->
+ </article>
+ </main>
+ <script src="site.js"></script>
</body>
</html>
diff --git a/doc/Internal.htm b/doc/Internal.htm
index e6da2844..77eb6f31 100644
--- a/doc/Internal.htm
+++ b/doc/Internal.htm
@@ -1,61 +1,30 @@
<!doctype html>
-<html>
+<html lang="en">
<head>
-<meta charset="UTF-8">
-<meta name="viewport" content="width=device-width, initial-scale=1.0">
-<link href="https://fonts.googleapis.com/css?family=Source+Sans+Pro" rel="stylesheet">
-<link rel="shortcut icon" type="image/png" href="../../images/favicon.png">
-<title>Ghostscript Internal Operators</title>
-<link href="style.css" rel="stylesheet" type="text/css">
-<link href="gs-style.css" rel="stylesheet" type="text/css">
+ <meta http-equiv="content-type" content="text/html; charset=utf-8">
+ <meta name="viewport" content="user-scalable=yes, initial-scale=1, width=device-width">
+ <link href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:200,200i,300,300i,400,400i,600,600i,700,700i,900,900i" rel="stylesheet">
+ <link rel="shortcut icon" href="images/favicon.svg">
+ <title>Ghostscript Internal Operators</title>
+ <link href="default.css" rel="stylesheet" type="text/css">
</head>
<body>
+ <header><div class="title"><a href="index.html"><h1 aria-label="title">Ghostscript documentation</h1><h2 aria-label="version"></h2></a></div><a href="Search.htm" aria-label="Search" id="searchSite"><div class="search"></div></a></header>
+ <main>
+ <article>
+ <div class="outer">
- <div class="header">
- <div class="row">
- <div class="col-lt-6 logo"><a href="https://www.ghostscript.com/"><img src="images/ghostscript_logo.png" width="108" height="119" alt=""></a></div>
- <div class="col-6"><div class="row"><div class="artifexlogo"><a href="https://artifex.com" target="_blank"><img src="images/Artifex_logo.png" width="194" height="40" alt=""></a></div>
- <div class="col-12"><div class="button button1"><a href="https://artifex.com/contact-us/" title="Contact Us" target="_blank">Contact Us</a></div>
- <div class="button button2 hidden-xs"><a href="https://www.ghostscript.com/download.html" title="Download">Download</a></div></div></div>
- </div>
- </div>
- </div>
-
- <div class="banner">
- <div class="row">
- <div class="col-12">Internal Ghostscript Operators</div>
- </div>
- </div>
-
- <div class="main">
- <div class="row">
- <div id="sidebar">
- <div class="sidebar-item"></div>
- <div class="col-2 leftnav">
-<ul>
- <li><a href="https://www.ghostscript.com/">Home</a></li>
- <li><a href="https://www.ghostscript.com/license.html">Licensing</a></li>
- <li><a href="https://www.ghostscript.com/releases.html">Releases</a></li>
- <li><a href="https://www.ghostscript.com/documentation.html" title="Documentation">Documentation</a></li>
- <li><a href="https://www.ghostscript.com/download.html" title="Download">Download</a></li>
- <li><a href="https://www.ghostscript.com/performance.html" title="Performance">Performance</a></li>
- <li><a href="http://jbig2dec.com/" title="jbig2dec">jbig2dec</a></li>
- <li><a href="http://git.ghostscript.com/?p=ghostpdl.git;a=summary">Source</a></li>
- <li><a href="http://bugs.ghostscript.com/">Bugs</a></li>
- <li><a href="https://www.ghostscript.com/faq.html" title="FAQ">FAQ</a></li>
- </ul>
- </div>
- </div>
- <div class="col-10 page">
-
+ <div class="inner">
<!--START EDITING HERE-->
-<h2>Table of contents</h2>
+<h1>Ghostscript Internal Operators</h1>
+
+<h2><a name="toc"></a>Table of contents</h2>
+<ul class="toc">
+ <li><a href="#Internal Operators">Internal Operators</a></li>
+</ul>
-<blockquote><ul>
-<li><a href="#Internal Operators">Internal Operators</a></li>
-</ul></blockquote>
<!-- [1.2 end table of contents] =========================================== -->
@@ -80,7 +49,7 @@
<dt><code>&lt;name&gt; &lt;array&gt; .makeoperator &lt;operator&gt;</code></dt>
<dd>Constructs and returns a new operator that is actually the given
procedure in disguise. The name is only used for printing. The operator
-has the executable attribute.</dd>
+has the executable attribute.
<p>
Operators defined in this way do one other thing besides running the
@@ -88,6 +57,9 @@ procedure: if an error occurs during the execution of the procedure, and
there has been no net reduction in operand or dictionary stack depth, the
operand or dictionary stack pointer respectively is reset to its position
at the beginning of the procedure.</p>
+
+</dd>
+
</dl>
@@ -95,7 +67,7 @@ at the beginning of the procedure.</p>
<hr>
<p>
-<small>Copyright &copy; 2000-2021 Artifex Software, Inc. All rights reserved.</small>
+<small>Copyright &copy; 2000-2022 Artifex Software, Inc. All rights reserved.</small>
<p>
This software is provided AS-IS with no warranty, either express or
@@ -108,40 +80,16 @@ or contact Artifex Software, Inc., 1305 Grant Avenue - Suite 200,
Novato, CA 94945, U.S.A., +1(415)492-9861, for further information.
<p>
-<small>Ghostscript version 9.55.0, 27 September 2021
+<small>Ghostscript version 9.56.0, 29 March 2022
<!-- [3.0 end visible trailer] ============================================= -->
-<!--FINISH EDITING HERE-->
- </div>
- </div>
- </div>
-
- <div class="footer">
- <div class="row">
- <div class="col-7 footleft">
- <ul>
- <li><a href="https://artifex.com/contact-us/" target="blank">CONTACT US</a></li>
- <li><a href="https://artifex.com/about-us/" target="blank">ABOUT</a></li>
- <li><a href="https://ghostscript.com/security.html">SECURITY</a></li>
- </ul>
- </div>
- <div class="col-1 footcenter">
- <ul>
- <li><a href="https://artifex.com/support/" target="blank">SUPPORT</a></li>
- <li><a href="https://artifex.com/blog/artifex/" target="blank">BLOG</a></li>
- <li><a href="https://artifex.com/privacy-policy/" target="blank">PRIVACY</a></li>
- </ul>
- </div>
- <div class="col-ft-3 footright"><img src="images/Artifex_logo.png" width="194" height="40" alt=""/> <br>
- © Copyright 2019-2021 Artifex Software, Inc. <br>
- All rights reserved.
- </div>
- </div>
- </div>
-
- <script src="http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>
- <script src="index.js"></script>
+<!--FINISH EDITING HERE-->
+ </div><!-- close inner -->
+ </div><!-- close outer -->
+ </article>
+ </main>
+ <script src="site.js"></script>
</body>
</html>
diff --git a/doc/Language.htm b/doc/Language.htm
index ffbf9880..6ed12d3a 100644
--- a/doc/Language.htm
+++ b/doc/Language.htm
@@ -1,113 +1,98 @@
<!doctype html>
-<html>
+<html lang="en">
<head>
-<meta charset="UTF-8">
-<meta name="viewport" content="width=device-width, initial-scale=1.0">
-<link href="https://fonts.googleapis.com/css?family=Source+Sans+Pro" rel="stylesheet">
-<link rel="shortcut icon" type="image/png" href="../../images/favicon.png">
-<title>Ghostscript and the PostScript Language</title>
- <!-- Originally: language.txt -->
-<link href="style.css" rel="stylesheet" type="text/css">
-<link href="gs-style.css" rel="stylesheet" type="text/css">
+ <meta http-equiv="content-type" content="text/html; charset=utf-8">
+ <meta name="viewport" content="user-scalable=yes, initial-scale=1, width=device-width">
+ <link href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:200,200i,300,300i,400,400i,600,600i,700,700i,900,900i" rel="stylesheet">
+ <link rel="shortcut icon" href="images/favicon.svg">
+ <title>Ghostscript and the PostScript Language</title>
+ <link href="default.css" rel="stylesheet" type="text/css">
</head>
<body>
+ <header><div class="title"><a href="index.html"><h1 aria-label="title">Ghostscript documentation</h1><h2 aria-label="version"></h2></a></div><a href="Search.htm" aria-label="Search" id="searchSite"><div class="search"></div></a></header>
+ <main>
+ <article>
+ <div class="outer">
- <div class="header">
- <div class="row">
- <div class="col-lt-6 logo"><a href="https://www.ghostscript.com/"><img src="images/ghostscript_logo.png" width="108" height="119" alt=""></a></div>
- <div class="col-6"><div class="row"><div class="artifexlogo"><a href="https://artifex.com" target="_blank"><img src="images/Artifex_logo.png" width="194" height="40" alt=""></a></div>
- <div class="col-12"><div class="button button1"><a href="https://artifex.com/contact-us/" title="Contact Us" target="_blank">Contact Us</a></div>
- <div class="button button2 hidden-xs"><a href="https://www.ghostscript.com/download.html" title="Download">Download</a></div></div></div>
- </div>
- </div>
- </div>
-
- <div class="banner">
- <div class="row">
- <div class="col-12">Ghostscript and the PostScript Language</div>
- </div>
- </div>
-
- <div class="main">
- <div class="row">
- <div id="sidebar">
- <div class="sidebar-item"></div>
- <div class="col-2 leftnav">
-<ul>
- <li><a href="https://www.ghostscript.com/">Home</a></li>
- <li><a href="https://www.ghostscript.com/license.html">Licensing</a></li>
- <li><a href="https://www.ghostscript.com/releases.html">Releases</a></li>
- <li><a href="https://www.ghostscript.com/documentation.html" title="Documentation">Documentation</a></li>
- <li><a href="https://www.ghostscript.com/download.html" title="Download">Download</a></li>
- <li><a href="https://www.ghostscript.com/performance.html" title="Performance">Performance</a></li>
- <li><a href="http://jbig2dec.com/" title="jbig2dec">jbig2dec</a></li>
- <li><a href="http://git.ghostscript.com/?p=ghostpdl.git;a=summary">Source</a></li>
- <li><a href="http://bugs.ghostscript.com/">Bugs</a></li>
- <li><a href="https://www.ghostscript.com/faq.html" title="FAQ">FAQ</a></li>
- </ul>
- </div>
- </div>
- <div class="col-10 page">
-
+ <div class="inner">
<!--START EDITING HERE-->
-<h2>Table of contents</h2>
+<h1>Ghostscript and the PostScript Language</h1>
-<blockquote><ul>
-<li><a href="#Capabilities">Ghostscript's capabilities in relation to PostScript</a></li>
-<li><a href="#Implementation_limits">Implementation limits</a></li>
-<ul>
-<li><a href="#Architectural_limits">Architectural limits</a></li>
-<li><a href="#Typical_memory_limits">Typical memory limits in LanguageLevel 1</a></li>
-<li><a href="#VM_consumption">Other differences in VM consumption</a></li>
-</ul>
-<li><a href="#Additional_operators">Additional operators in Ghostscript</a></li>
-<ul>
-<li><a href="#Graphics_and_text">Graphics and text operators</a></li>
-<ul>
-<li><a href="#Transparency">Transparency</a></li>
-<ul>
-<li><a href="#Transparency_graphics_state_operators">Graphics state operators</a></li>
-<li><a href="#Transparency_rendering_stack_operators">Rendering stack operators</a></li>
-<li><a href="#Transparency_ImageType">New ImageType</a></li>
-</ul>
-<li><a href="#Graphics_state">Other graphics state operators</a></li>
-<li><a href="#Character">Character operators</a></li>
-</ul>
-<li><a href="#Other">Other operators</a></li>
-<ul>
-<li><a href="#Mathematical">Mathematical operators</a></li>
-<li><a href="#Dictionary">Dictionary operators</a></li>
-<li><a href="#Relational">Relational operators</a></li>
-<li><a href="#File">File operators</a></li>
-<li><a href="#Miscellaneous">Miscellaneous operators</a></li>
-<li><a href="#Device">Device operators</a></li>
-</ul>
-</ul>
-<li><a href="#Filters">Filters</a></li>
-<ul>
-<li><a href="#Standard_filters">Standard filters</a></li>
-<li><a href="#Non_standard_filters">Non-standard filters</a></li>
-<li><a href="#Unstable_filters">Unstable filters</a></li>
-</ul>
-<li><a href="#Device_parameters">Device parameters</a></li>
-<li><a href="#Banding_parameters">Banding parameters</a></li>
-<li><a href="#User_parameters">User parameters</a></li>
-<li><a href="#Miscellaneous_additions">Miscellaneous additions</a></li>
-<ul>
-<li><a href="#Extended_semantics_of_run">Extended semantics of 'run'</a></li>
-<li><a href="#DecodingResources">Decoding resources</a></li>
-<li><a href="#CIDDecodingResources">CIDDecoding resources</a></li>
-<li><a href="#GlyphNames2Unicode">GlyphNames2Unicode</a></li>
-<li><a href="#MultipleResourceDirectories">Multiple Resource directories</a></li>
-</ul>
-<li><a href="#PDF_scripting">Scripting the PDF interpreter</a></li>
-<ul>
-<li><a href="#PS_functions">PostScript functions</a></li>
-<li><a href="#PDF_PS_operators">PostScript operators</a></li>
+<h2><a name="toc"></a>Table of contents</h2>
+<ul class="toc">
+
+ <li><a href="#Capabilities">Ghostscript's capabilities in relation to PostScript</a></li>
+ <li><a href="#Implementation_limits">Implementation limits</a></li>
+ <li>
+ <ul>
+ <li><a href="#Architectural_limits">Architectural limits</a></li>
+ <li><a href="#Typical_memory_limits">Typical memory limits in LanguageLevel 1</a></li>
+ <li><a href="#VM_consumption">Other differences in VM consumption</a></li>
+ </ul>
+ </li>
+ <li><a href="#Additional_operators">Additional operators in Ghostscript</a></li>
+ <li>
+ <ul>
+ <li><a href="#Graphics_and_text">Graphics and text operators</a></li>
+ <li>
+ <ul>
+ <li><a href="#Transparency">Transparency</a></li>
+ <li>
+ <ul>
+ <li><a href="#Transparency_graphics_state_operators">Graphics state operators</a></li>
+ <li><a href="#Transparency_rendering_stack_operators">Rendering stack operators</a></li>
+ <li><a href="#Transparency_ImageType">New ImageType</a></li>
+ </ul>
+ </li>
+ <li><a href="#Graphics_state">Other graphics state operators</a></li>
+ <li><a href="#Character">Character operators</a></li>
+ </ul>
+ </li>
+
+ <li><a href="#Other">Other operators</a></li>
+ <li>
+ <ul>
+ <li><a href="#Mathematical">Mathematical operators</a></li>
+ <li><a href="#Dictionary">Dictionary operators</a></li>
+ <li><a href="#Relational">Relational operators</a></li>
+ <li><a href="#File">File operators</a></li>
+ <li><a href="#Miscellaneous">Miscellaneous operators</a></li>
+ <li><a href="#Device">Device operators</a></li>
+ </ul>
+ </li>
+ </ul>
+ </li>
+ <li><a href="#Filters">Filters</a></li>
+ <li>
+ <ul>
+ <li><a href="#Standard_filters">Standard filters</a></li>
+ <li><a href="#Non_standard_filters">Non-standard filters</a></li>
+ <li><a href="#Unstable_filters">Unstable filters</a></li>
+ </ul>
+ </li>
+ <li><a href="#Device_parameters">Device parameters</a></li>
+ <li><a href="#Banding_parameters">Banding parameters</a></li>
+ <li><a href="#User_parameters">User parameters</a></li>
+ <li><a href="#Miscellaneous_additions">Miscellaneous additions</a></li>
+ <li>
+ <ul>
+ <li><a href="#Extended_semantics_of_run">Extended semantics of 'run'</a></li>
+ <li><a href="#DecodingResources">Decoding resources</a></li>
+ <li><a href="#CIDDecodingResources">CIDDecoding resources</a></li>
+ <li><a href="#GlyphNames2Unicode">GlyphNames2Unicode</a></li>
+ <li><a href="#MultipleResourceDirectories">Multiple Resource directories</a></li>
+ </ul>
+ </li>
+ <li><a href="#PDF_scripting">Scripting the PDF interpreter</a></li>
+ <li>
+ <ul>
+ <li><a href="#PS_functions">PostScript functions</a></li>
+ <li><a href="#PDF_PS_operators">PostScript operators</a></li>
+ </ul>
+ </li>
</ul>
-</ul></blockquote>
<!-- [1.2 end table of contents] =========================================== -->
@@ -239,77 +224,77 @@ shown.</p>
<h3><a name="Architectural_limits"></a>Architectural limits</h3>
<blockquote><table>
-<tr><th colspan="7">Architectural limits (corresponds to Adobe table B.1)</th></tr>
+<tr><th colspan="4">Architectural limits (corresponds to Adobe table B.1)</th></tr>
<tr valign="bottom">
<th align="left">Quantity</th>
- <th>&nbsp;&nbsp;</th>
+
<th align="left">Limit</th>
- <th>&nbsp;&nbsp;</th>
+
<th align="left">Type</th>
- <th>&nbsp;&nbsp;</th>
+
<th align="left">Adobe</th></tr>
<tr valign="top"> <td>integer</td>
- <td>&nbsp;</td>
+
<td>32-bit</td>
- <td>&nbsp;</td>
+
<td>twos complement integer</td>
- <td>&nbsp;</td>
+
<td>&nbsp;</td></tr>
<tr valign="top"> <td>real</td>
- <td>&nbsp;</td>
+
<td>single-precision</td>
- <td>&nbsp;</td>
+
<td>IEEE float</td>
- <td>&nbsp;</td>
+
<td>&nbsp;</td></tr>
<tr valign="top"> <td>array</td>
- <td>&nbsp;</td>
+
<td>16777216</td>
- <td>&nbsp;</td>
+
<td>elements</td>
- <td>&nbsp;</td>
+
<td>65535</td></tr>
<tr valign="top"> <td>dictionary</td>
- <td>&nbsp;</td>
+
<td>16777215</td>
- <td>&nbsp;</td>
+
<td>elements</td>
- <td>&nbsp;</td>
+
<td>65535</td></tr>
<tr valign="top"> <td>string</td>
- <td>&nbsp;</td>
+
<td>16777216</td>
- <td>&nbsp;</td>
+
<td>characters</td>
- <td>&nbsp;</td>
+
<td>65535</td></tr>
<tr valign="top"> <td>name</td>
- <td>&nbsp;</td>
+
<td>16383</td>
- <td>&nbsp;</td>
+
<td>characters</td>
- <td>&nbsp;</td>
+
<td>127</td></tr>
<tr valign="top"> <td>filename</td>
- <td>&nbsp;</td>
+
<td>128*</td>
- <td>&nbsp;</td>
+
<td>characters</td>
- <td>&nbsp;</td>
+
<td>&nbsp;</td></tr>
<tr valign="top"> <td><code>save</code> level</td>
- <td>&nbsp;</td>
+
<td>none</td>
- <td>&nbsp;</td>
+
<td>(capacity of memory)</td>
- <td>&nbsp;</td>
+
<td>15</td></tr>
<tr valign="top"> <td><code>gsave</code> level</td>
- <td>&nbsp;</td>
+
<td>none</td>
- <td>&nbsp;</td>
+
<td>(capacity of memory)</td>
- <td>&nbsp;</td>
+
<td>13</td></tr>
</table></blockquote>
@@ -321,96 +306,96 @@ starts with a %...% IODevice designation, or 124 characters if it does not.</p>
<blockquote><table>
-<tr><th colspan="7">Memory limits (corresponds to Adobe table B.2)</th></tr>
+<tr><th colspan="4">Memory limits (corresponds to Adobe table B.2)</th></tr>
<tr valign="bottom">
<th align="left">Quantity</th>
- <th>&nbsp;&nbsp;</th>
+
<th align="left">Limit</th>
- <th>&nbsp;&nbsp;</th>
+
<th align="left">Type</th>
- <th>&nbsp;&nbsp;</th>
+
<th align="left">Adobe</th></tr>
<tr valign="top"> <td><code>userdict</code></td>
- <td>&nbsp;</td>
+
<td>200</td>
+
<td>&nbsp;</td>
- <td>&nbsp;</td>
- <td>&nbsp;</td>
+
<td>&nbsp;</td></tr>
<tr valign="top"> <td><code>FontDirectory</code></td>
- <td>&nbsp;</td>
+
<td>100</td>
<td>&nbsp;</td>
+
<td>&nbsp;</td>
- <td>&nbsp;</td>
- <td>&nbsp;</td></tr>
+ </tr>
<tr valign="top"> <td>operand stack</td>
- <td>&nbsp;</td>
+
<td>800</td>
+
<td>&nbsp;</td>
- <td>&nbsp;</td>
- <td>&nbsp;</td>
+
<td>500</td></tr>
<tr valign="top"> <td>dictionary stack</td>
- <td>&nbsp;</td>
+
<td>20</td>
<td>&nbsp;</td>
+
<td>&nbsp;</td>
- <td>&nbsp;</td>
- <td>&nbsp;</td></tr>
+ </tr>
<tr valign="top"> <td>execution stack</td>
- <td>&nbsp;</td>
+
<td>250</td>
- <td>&nbsp;</td>
- <td>&nbsp;</td></tr>
+
+ <td>&nbsp;</td><td>&nbsp;</td></tr>
<tr valign="top"> <td>interpreter level</td>
- <td>&nbsp;</td>
+
<td>none</td>
- <td>&nbsp;</td>
+
<td>(capacity of memory)</td>
- <td>&nbsp;</td>
+
<td>10</td></tr>
<tr valign="top"> <td>path</td>
- <td>&nbsp;</td>
+
<td>none</td>
- <td>&nbsp;</td>
+
<td>(capacity of memory)</td>
- <td>&nbsp;</td>
+
<td>1500</td></tr>
<tr valign="top"> <td>dash</td>
- <td>&nbsp;</td>
+
<td>11</td>
<td>&nbsp;</td>
- <td>&nbsp;</td>
- <td>&nbsp;</td>
+
+
<td>&nbsp;</td></tr>
<tr valign="top"> <td>VM</td>
- <td>&nbsp;</td>
+
<td>none</td>
- <td>&nbsp;</td>
+
<td>(capacity of memory)</td>
- <td>&nbsp;</td>
+
<td>240000</td></tr>
<tr valign="top"> <td>file</td>
- <td>&nbsp;</td>
+
<td>none</td>
- <td>&nbsp;</td>
+
<td>(determined by operating system)</td>
- <td>&nbsp;</td>
+
<td>6</td></tr>
<tr valign="top"> <td>image</td>
- <td>&nbsp;</td>
+
<td>65535</td>
- <td>&nbsp;</td>
+
<td>values (samples &times; components)<br>for 1-, 2-, 4-, or 8-bit samples</td>
- <td>&nbsp;</td>
+
<td>3300</td></tr>
<tr valign="top"> <td>&nbsp;</td>
- <td>&nbsp;</td>
+
<td>32767</td>
- <td>&nbsp;</td>
+
<td>values for 12-bit samples</td>
- <td>&nbsp;</td>
+
<td>3300</td></tr>
</table></blockquote>
@@ -603,12 +588,12 @@ current when beginning the layer. THIS AREA IS SUBJECT TO CHANGE.</p>
<dd>Begins a new transparency group. The <code>ll/ur</code> coordinates
are the bounding box of the group in the current user coordinate system.
<code>paramdict</code> has the following keys:</dd>
-<dl>
+
<dt><code>/Isolated</code></dt>
<dd>(optional) Boolean; default value = <code>false</code>.</dd>
<dt><code>/Knockout</code></dt>
<dd>(optional) Boolean; default value = <code>false</code>.</dd>
-</dl>
+
</dl>
<dl>
@@ -624,7 +609,7 @@ onto the group that now becomes current.</dd>
The <code>ll/ur</code> coordinates
are the bounding box of the mask in the current user coordinate system.
<code>paramdict</code> has the following keys:</dd>
-<dl>
+
<dt><code>/Subtype</code></dt>
<dd>(required) Name, either <code>/Alpha</code> or
<code>/Luminosity</code>.</dd>
@@ -632,16 +617,18 @@ are the bounding box of the mask in the current user coordinate system.
<dd>(optional) Array of number.</dd>
<dt><code>/TransferFunction</code></dt>
<dd>(optional) Function object (produced by applying
-<code>.buildfunction</code> to a Function dictionary).</dd>
-</dl>
+<code>.buildfunction</code> to a Function dictionary).
+<p>
The <code>cs_set</code> parameter is a boolean indicating whether the color
space for the mask group is the current color space in the graphics state, or
whether mask group color space should be inherited from the previous group
in the transparency group stack. In general, for the most consistent results,
it is recommended that this be set to <code>true</code>, and the intended
color space set in the graphics state prior to the <code>.begintransparencymaskgroup</code>
-call.
+call.</p>
+</dd>
</dl>
+
<dl>
<dt><code>&lt;mask#&gt; .endtransparencymask -</code></dt>
<dd>Ends the current transparency mask group, compositing the mask group being ended
@@ -793,7 +780,7 @@ pushes false on the stack and returns, rather than causing an error.</dd>
&lt;string&gt; &lt;file&gt;</code></dt>
<dd>Creates and opens a temporary file
like the <code>file</code> operator, also returning the file name. There
-are three cases for the <code>&lt;prefix_string|null&gt;</code> operand:</dd>
+are three cases for the <code>&lt;prefix_string|null&gt;</code> operand:
<ul>
<li><code>null</code>: create the file in the same directory and with the
@@ -810,46 +797,48 @@ temporary file might be named <code>/tmp/xxa1234</code>.</li>
<code>&lt;prefix_string&gt;</code> as the first part of the file name.
E.g., if <code>&lt;prefix_string&gt;</code> is
<code>/my/tmpdir/zz</code>, the temporary file might be named
-<code>/my/tmpdir/zza1234</code>.</li>
+<code>/my/tmpdir/zza1234</code>.
<p>
+
When running in <code>SAFER</code> mode, the absolute path must
be one of the strings on the permit file writing list
-(see <a href="Use.htm#Safer"><b>-dSAFER</b></a>) .</p>
+(see <a href="Use.htm#Safer"><b>-dSAFER</b></a>) .</p></li>
</ul>
-
+</dd>
</dl>
<p>
Ghostscript also supports the following <code>IODevice</code> in
addition to a subset of those defined in the Adobe documentation:</p>
<ul>
-<li>
-<code>%pipe%command</code>, which opens a pipe on the given command.
-This is supported only on operating systems that provide
-<code>popen</code> (primarily Unix systems, and not all of those).</li>
-<li>
-<code>%disk#%</code>, which emulates the %disk0
-through %disk9 devices on some Adobe PostScript printers. This pseudo
-device provides a flat filenaming system with a user definable location
-for the files (/Root). These devices will only be present if the
-diskn.dev feature is specified during the build.</li>
-
-<p>This feature is intended to allow compatibility with font downloaders
-that expect to store fonts on the %disk device of the printer.</p>
-<p>
-Use of the %disk#% devices requires that the location of files be given
-by the user setting the /Root device parameter. The syntax for setting
-the /Root parameter is:<pre>
- mark /Root (directory_specification) (%disk#) .putdevparams
-</pre>
-For example, to store the files of the %disk0 device on the directory
-/tmp/disk0, use:<pre>
- mark /Root (/tmp/disk0/) (%disk0) .putdevparams
-</pre></p>
-<p>The files will be stored in the specified directory with arbitrary names.
-A mapping file is used to store the association between the file
-names given for the file operations on the %diskn# device and the file
-that resides in the /Root directory.</p>
+ <li>
+ <code>%pipe%command</code>, which opens a pipe on the given command.
+ This is supported only on operating systems that provide
+ <code>popen</code> (primarily Unix systems, and not all of those).</li>
+ <li>
+ <code>%disk#%</code>, which emulates the %disk0
+ through %disk9 devices on some Adobe PostScript printers. This pseudo
+ device provides a flat filenaming system with a user definable location
+ for the files (/Root). These devices will only be present if the
+ diskn.dev feature is specified during the build.
+
+ <p>This feature is intended to allow compatibility with font downloaders
+ that expect to store fonts on the %disk device of the printer.</p>
+ <p>
+ Use of the %disk#% devices requires that the location of files be given
+ by the user setting the /Root device parameter. The syntax for setting
+ the /Root parameter is:<pre>
+ mark /Root (directory_specification) (%disk#) .putdevparams
+ </pre>
+ For example, to store the files of the %disk0 device on the directory
+ /tmp/disk0, use:<pre>
+ mark /Root (/tmp/disk0/) (%disk0) .putdevparams
+ </pre></p>
+ <p>The files will be stored in the specified directory with arbitrary names.
+ A mapping file is used to store the association between the file
+ names given for the file operations on the %diskn# device and the file
+ that resides in the /Root directory.</p>
+ </li>
</ul>
<h4><a name="Miscellaneous"></a>Miscellaneous operators</h4>
@@ -862,10 +851,10 @@ that resides in the /Root directory.</p>
<blockquote><table>
<tr valign="bottom">
<th valign="bottom" align="left">Flag</th>
- <th>&nbsp;&nbsp;&nbsp;</th>
+
<th valign="bottom" align="left">Definition</th></tr>
<tr valign="top"> <td>DELAYBIND</td>
- <td>&nbsp;</td>
+
<td>returns the argument, stores the argument for later use by <code>.bindnow</code></td></tr>
</table></blockquote>
@@ -932,7 +921,7 @@ is useful even with release builds.</p>
<dt><code>- .setsafe -</code></dt>
<dd>If Ghostscript is started with <code>-dNOSAFER</code> or
<code>-dDELAYSAFER</code>, this operator can be used to enter <b>SAFER</b>
-mode (see <a href="Use.htm#Safer"><b>-dSAFER</b></a>)</dd>
+mode (see <a href="Use.htm#Safer"><b>-dSAFER</b></a>)
<p>
<strong>The following is deprecated, see <a href="Use.htm#Safer"><b>-dSAFER</b></a></strong>
<p>
@@ -945,6 +934,7 @@ SAFER was not in operation.</p>
<p>
<b>Note: This uses setpagedevice to change .LockSafetyParams, so the page
will be erased as a side effect of this operator</b></p>
+</dd>
</dl>
<dl>
@@ -1036,8 +1026,7 @@ activated, <code>false</code> if not.
<dt><code>&lt;dict&gt; .genordered &lt;string&gt;</code> (/OutputType /ThreshString).</dt>
<dt><code>&lt;dict&gt; .genordered &lt;array&gt;</code> (/OutputType /TOSArray).</dt>
<dd>This operator creates an ordered dither screening pattern with the parameters from the dictionary, returning (by default) a PostScript HalftoneType 3 (threshold array based) dictionary suitable for use with <code>sethalftone</code> or as a component Halftone of a <code>HalftoneType 5</code> Halftone dictionary. The /OutputType parameter can also select other than Halftone Type 3 as the return paramter,
-<code>&lt;dict&gt;</code> has the following keys (all are optional):
-<dl>
+<code>&lt;dict&gt;</code> has the following keys (all are optional):</dd>
<dt><code>/Frequency</code></dt>
<dd>Integer; default value = 75</dd>
<dt><code>/Angle</code></dt>
@@ -1066,10 +1055,6 @@ threshold array bytes (same as /Thresholds of the Type3 dictionary).
<dd>
First element is the width, next is the height, followed by pairs X, then Y, of the turn-on-sequence of the threshold array. This information can be used to construct a threshold array with a transfer function "pickled into" the threshold array, which is useful if the turn-on-sequence has more than 256 pairs. Refer to toolbin/halftone/thresh_remap for more information.</dt>
</dd>
-<dl>
-</dl>
-</dl>
-</dd>
</dl>
<dl>
@@ -1138,16 +1123,16 @@ These are interpreted as:</p>
<blockquote><table>
<tr valign="bottom">
<th valign="bottom" align="left">Palette</th>
- <th>&nbsp;&nbsp;&nbsp;</th>
+
<th valign="bottom" align="left">Bits allocated per color</th></tr>
<tr valign="top"> <td>16</td>
- <td>&nbsp;</td>
+
<td>5 red, 6 green, 5 blue</td></tr>
<tr valign="top"> <td>24</td>
- <td>&nbsp;</td>
+
<td>8 red, 8 green, 8 blue</td></tr>
<tr valign="top"> <td>32</td>
- <td>&nbsp;</td>
+
<td>8C, 8M, 8Y, 8K</td></tr>
</table></blockquote>
@@ -1293,7 +1278,7 @@ bytes.</dd>
Type 1 Font Format documentation. The <code>seed_integer</code> must be
55665 or 4330 as described just above. PDF interpreters don't skip space characters
after operator <code>eexec</code>. Use <code>keep_spaces = true</code> for
-decoding embedded PDF fonts. Recognized dictionary keys are:</dd>
+decoding embedded PDF fonts. Recognized dictionary keys are:
<blockquote>
<code>seed &lt;16-bit integer&gt;</code> (required)<br>
@@ -1301,6 +1286,7 @@ decoding embedded PDF fonts. Recognized dictionary keys are:</dd>
<code>eexec &lt;bool&gt;</code> (default=<code>false</code>)<br>
<code>keep_spaces &lt;bool&gt;</code> (default=<code>false</code>)
</blockquote>
+</dd>
</dl>
<dl>
@@ -1321,7 +1307,7 @@ are converted to hex; if false, binary packets are not converted.</dd>
<dt><code>&lt;target&gt; &lt;dict&gt; /PixelDifferenceEncode filter &lt;file&gt;</code></dt>
<dt><code>&lt;source&gt; &lt;dict&gt; /PixelDifferenceDecode filter &lt;file&gt;</code></dt>
<dd>Implements the Predictor=2 pixel-differencing option of the LZW
-filters. Recognized keys are:</dd>
+filters. Recognized keys are:
<blockquote>
<code>Colors &lt;integer&gt;</code> (1 to 4, default=1)<br>
@@ -1331,42 +1317,43 @@ filters. Recognized keys are:</dd>
<p>
See the Adobe <a href="http://partners.adobe.com/public/developer/pdf/index_reference.html"><em>PDF Reference Manual</em></a> for details.</p>
+</dd>
</dl>
<dl>
<dt><code>&lt;target&gt; &lt;dict&gt; /PNGPredictorEncode filter &lt;file&gt;</code></dt>
<dt><code>&lt;source&gt; &lt;dict&gt; /PNGPredictorDecode filter &lt;file&gt;</code></dt>
-<p><dd>Implements the "filter" algorithms of the
+<dd><p>Implements the "filter" algorithms of the
<a href="http://www.libpng.org/pub/png/">Portable Network Graphics (PNG)
graphics format</a>. Recognized keys are:</p>
<blockquote><table>
-<tr><th colspan="5">Keys recognized in PNG filter algorithms</th></tr>
+<tr><th colspan="3">Keys recognized in PNG filter algorithms</th></tr>
<tr valign="bottom">
<th align="left">Key</th>
- <th>&nbsp;&nbsp;</th>
+
<th align="left">Range</th>
- <th>&nbsp;&nbsp;</th>
+
<th align="left">Default</th></tr>
<tr valign="top"> <td><code>Colors &lt;integer&gt;</code></td>
- <td>&nbsp;&nbsp;&nbsp;</td>
+
<td>1 to 16</td>
- <td>&nbsp;&nbsp;</td>
+
<td>16</td></tr>
<tr valign="top"> <td><code>BitsPerComponent &lt;integer&gt;</code></td>
- <td>&nbsp;</td>
+
<td>1, 2, 4, 8, or 16</td>
- <td>&nbsp;&nbsp;</td>
+
<td>8</td></tr>
<tr valign="top"> <td><code>Columns &lt;integer&gt;</code></td>
- <td>&nbsp;</td>
+
<td>&gt;= 0</td>
- <td>&nbsp;&nbsp;</td>
+
<td>1</td></tr>
<tr valign="top"> <td><code>Predictor &lt;integer&gt;</code></td>
- <td>&nbsp;</td>
+
<td>10 to 15</td>
- <td>&nbsp;&nbsp;</td>
+
<td>15</td></tr>
</table></blockquote>
@@ -1388,7 +1375,7 @@ specification</p>
<dt><code>&lt;source&gt; /TBCPDecode filter &lt;file&gt;</code></dt>
<dd>Create filters that implement the Adobe Tagged Binary Communications
Protocol. See Adobe documentation for details.</dd>
- </dl>
+</dl>
<dl>
<dt><code>&lt;target&gt; /zlibEncode filter &lt;file&gt;</code></dt>
@@ -1426,7 +1413,7 @@ is the inverse mapping of the <code>string</code> for the
<dd>These filters encode and decode data using Huffman codes. Since these
filters aren't used anywhere, we don't document them further, except to note
the recognized dictionary keys, which must be set identically for encoding
-and decoding:</dd>
+and decoding:
<blockquote>
<code>FirstBitLowOrder &lt;bool&gt;</code> (default=false)<br>
@@ -1435,6 +1422,7 @@ and decoding:</dd>
<code>EncodeZeroRuns &lt;int&gt;</code> (default=256)<br>
<code>Tables &lt;int_array&gt;</code>
</blockquote>
+</dd>
</dl>
<dl>
@@ -1443,11 +1431,12 @@ and decoding:</dd>
method, which we've heard is also used in the popular <code>bzip2</code>
compression application. See <a
href="http://sources.redhat.com/bzip2/">http://sources.redhat.com/bzip2/</a>
-for more information. The only recognized dictionary key is:</dd>
+for more information. The only recognized dictionary key is:
<blockquote>
<code>BlockSize &lt;integer&gt;</code> (default=16384)
</blockquote>
+</dd>
</dl>
<hr>
@@ -1466,11 +1455,12 @@ devices:
<dd>This parameter allows for improved system security by preventing
PostScript programs from being able to change potentially dangerous
device paramters such as OutputFile. This parameter cannot be set false
-if it is already true.</dd>
+if it is already true.
<p>
If this parameter is true for the current device, attempt to set a new
device that has <code>.LockSafetyParams</code> false will signal an
<code> invalidaccess</code> error.</p>
+</dd>
</dl>
<dl>
@@ -2069,60 +2059,51 @@ document these officially, so that in future the functionality would be availabl
<p>The following functions existed in the original PDF interpreter and have been replicated for the new
interpreter. It should be possible to use these for the forseeable future.</p>
-
+<dl>
<dt><code>&ltfile&gt runpdf - </code></dt>
<dd> Called from the modified PostScript run operator (which copies stdin to a temp
file if required). Checks for PDF collections, processes all requested pages.</dd>
-<p><dt><code>&ltfile&gt runpdfbegin -</code></dt>
+<dt><code>&ltfile&gt runpdfbegin -</code></dt>
<dd> This must be called before performing any further operations. Its exact action depends on which
-interpreter is being used, but it essentially sets up the environment to process the file as a PDF</dd></p>
-
-<p><dt><code>&ltint&gt pdfgetpage &ltpagedict&gt | &ltnull&gt</code></dt>
+interpreter is being used, but it essentially sets up the environment to process the file as a PDF</dd>
+<dt><code>&ltint&gt pdfgetpage &ltpagedict&gt | &ltnull&gt</code></dt>
<dd> int is a number from 1 to N indicating the desired page number from
the PDF file. Returns the a dictionary containing various informational key/value pairs.
- If this fails, returns a null object.</dd></p>
-
-<p><dt><code> - pdfshowpage_init -</code></dt>
+ If this fails, returns a null object.</dd>
+ <dt><code> - pdfshowpage_init -</code></dt>
<dd> In the PostScript PDF interpreter this simply adds 1 to the /DSCPageCount value in a dictionary.
-It has no effect in the new PDF interpreter but is maintained for backwards compatibility.</dd></p>
+It has no effect in the new PDF interpreter but is maintained for backwards compatibility.</dd>
-<p><dt><code>&ltpagedict&gt pdfshowpage_setpage &ltpagedict&gt</code></dt>
+<dt><code>&ltpagedict&gt pdfshowpage_setpage &ltpagedict&gt</code></dt>
<dd> Takes a dictionary as returned from pdfgetpage, extracts various
parameters from it, and sets the media size for the page, taking into
- account the boxes, and requested Box, Rotate value and PDFFitPage.</dd></p>
-
-<p><dt><code>&ltpagedict&gt pdfshowpage_finish -</code></dt>
+ account the boxes, and requested Box, Rotate value and PDFFitPage.</dd>
+ <dt><code>&ltpagedict&gt pdfshowpage_finish -</code></dt>
<dd> Takes a dictionary as returned from pdfgetpage, renders the page content
- executes showpage to transfer the rendered content to the device.</dd></p>
-
-<p><dt><code>- runpdfend -</code></dt>
-<dd> Terminates the PDF processing, executes restore and various cleanup activities.</dd></p>
-
-<p><dt><code>&ltfile&gt pdfopen &ltdict&gt</code></dt>
+ executes showpage to transfer the rendered content to the device.</dd>
+ <dt><code>- runpdfend -</code></dt>
+<dd> Terminates the PDF processing, executes restore and various cleanup activities.</dd>
+<dt><code>&ltfile&gt pdfopen &ltdict&gt</code></dt>
<dd> Open a PDF file and read the header, trailer
- and cross-reference.</dd></p>
-
-<p><dt><code>&ltdict&gt pdfclose -</code></dt>
+ and cross-reference.</dd>
+ <dt><code>&ltdict&gt pdfclose -</code></dt>
<dd> Terminates processing the original PDF file object. The dictionary parameter
- should be the one returned from pdfopen</dd></p>
-
-<p><dt><code>&ltpagedict&gt pdfshowpage -</code></dt>
+ should be the one returned from pdfopen</dd>
+ <dt><code>&ltpagedict&gt pdfshowpage -</code></dt>
<dd> Takes a dictionary returned from pdfgetpage and calls the pdfshowpage_init
pdfshowpage_setpage, pdfshowpage_finish trio to start the page, set up the
- media and render the page.</dd></p>
-
-<p><dt><code>&ltint&gt &ltint&gt dopdfpages -</code></dt>
+ media and render the page.</dd>
+ <dt><code>&ltint&gt &ltint&gt dopdfpages -</code></dt>
<dd> The integers are the first and last pages to be run from the file. Runs a loop from
the fist integer to the last. NOTE! If the current dictionary contains a PDFPageList
array then we 'get' the entry from the array corresponding to the current loop
index, and use that to determine whether we should draw the page. Otherwise we
- simply draw the page. Uses pdfshowpage to actually render the page.</dd></p>
-
-<p><dt><code>- runpdfpagerange &ltint&gt &ltint&gt</code></dt>
+ simply draw the page. Uses pdfshowpage to actually render the page.</dd>
+ <dt><code>- runpdfpagerange &ltint&gt &ltint&gt</code></dt>
<dd> Processes the PostScript /FirstPage, /LastPage and /PageList parameters. These are used together to build an internal array
of page numbers to run, which is used by dopdfpages to actually process the pages if PageList is present,
- and a FirstPage and LastPage value. Despite the name this function does not actually 'run' any pages at all.</dd></p>
+ and a FirstPage and LastPage value. Despite the name this function does not actually 'run' any pages at all.
<p>Normal operation simply calls runpdf with an opened-for-read PostScript file object. The table below shows the normal
calling sequence</p>
@@ -2130,70 +2111,66 @@ calling sequence</p>
<blockquote><table>
<tr valign="bottom">
<th align="left">Function</th>
- <th>&nbsp;&nbsp;</th>
+
<th align="left">Calls</th>
- <th>&nbsp;&nbsp;</th>
+
<th align="left">Calls</th>
- <th>&nbsp;&nbsp;</th>
+
<th align="left">Calls</th></tr>
<tr valign="top">
<td>runpdf</td>
- <td>&nbsp;</td>
+
<td>runpdfbegin</td>
- <td>&nbsp;</td>
+
<td>pdfopen</td>
- <td>&nbsp;</td>
+
<td>&nbsp;</td></tr>
<tr valign="top">
- <td>&nbsp;</td>
+
<td>&nbsp;</td>
<td>process_trailer_attrs</td>
+
<td>&nbsp;</td>
- <td>&nbsp;</td></tr>
-<tr valign="top">
<td>&nbsp;</td>
+</tr>
+<tr valign="top">
+
<td>&nbsp;</td>
<td>runpdfpagerange</td>
- <td>&nbsp;</td>
- <td>&nbsp;</td>
+
+
<td>&nbsp;</td>
<td>&nbsp;</td></tr>
<tr valign="top">
- <td>&nbsp;</td>
+
<td>&nbsp;</td>
<td>dopdfpages</td>
- <td>&nbsp;</td>
+
<td>pdfgetpage</td>
<td>&nbsp;</td></tr>
<tr valign="top">
<td>&nbsp;</td>
<td>&nbsp;</td>
- <td>&nbsp;</td>
- <td>&nbsp;</td>
<td>pdfshowpage</td>
- <td>&nbsp;</td>
+
<td>pdfshowpage_init</td></tr>
<tr valign="top">
- <td>&nbsp;</td>
- <td>&nbsp;</td>
- <td>&nbsp;</td>
+
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>pdfshowpage_setpage</td></tr>
<tr valign="top">
- <td>&nbsp;</td>
- <td>&nbsp;</td>
- <td>&nbsp;</td>
+
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>pdfshowpage_finish</td></tr>
<tr valign="top">
- <td>&nbsp;</td>
+
<td>&nbsp;</td>
<td>runpdfend</td>
- <td>&nbsp;</td>
+
<td>pdfclose</td>
<td>&nbsp;</td></tr>
</table></blockquote>
@@ -2211,28 +2188,22 @@ would be necessary to set /PageHasTransparency before drawing the first PDF page
using a small number of custom PostScript operators. These operators do not exist in standard PostScript; they
are specific to the Ghostscript implementation. These operators are documented here for the benefit of any
developers wishing to use them directly.</p>
+</dd>
-<p><dt><code>dict .PDFInit &ltPDFContext&gt</code></dt>
+<dt><code>dict .PDFInit &ltPDFContext&gt</code></dt>
<dd> Initialises an instance of the PDF interpreter. dict is an optional dictionary that contains any interpreter-level
switches, such as PDFDEBUG, this is used to set the initial state of the PDF interpreter.
-The return value is a PDFcontext object which is an opaque object to be used with the other PDF operators.</dd></p>
-
-<p><dt><code>filename PDFcontext .PDFFile -</code></dt>
+The return value is a PDFcontext object which is an opaque object to be used with the other PDF operators.</dd>
+<dt><code>filename PDFcontext .PDFFile -</code></dt>
<dd> Opens a named file and associates it with the instance of the PDF interpreter.
Filename is a string containing a fully qualified path to the PDF file to open, this file must have been made accesible
by setting --permit-file-read.
-</dd></p>
-
-<p><dt><code>file PDFcontext .PDFStream -</code></dt>
+</dd><dt><code>file PDFcontext .PDFStream -</code></dt>
<dd> Takes an already open (disk-based) file and associates it with the instance of the PDF interpreter.
-</dd></p>
-
-<p><dt><code>PDFcontext .PDFClose -</code></dt>
+</dd><dt><code>PDFcontext .PDFClose -</code></dt>
<dd> If the context contains an open PDF file which was opened via the .PDFfile operator, this closes the file.
Files associated with the context by the .PDFStream operator are unaffected. Regardless of the source it then shuts down the PDF interpreter and frees the associated memory.
-</dd></p>
-
-<p><dt><code>PDFcontext .PDFInfo dict</code></dt>
+</dd><dt><code>PDFcontext .PDFInfo dict</code></dt>
<dd> PDFcontext is a PDFcontext object returned from a previous call to .PDFInit.
The returned dictionary contains various key/value pairs with useful file level information:
<blockquote>
@@ -2241,17 +2212,13 @@ The returned dictionary contains various key/value pairs with useful file level
<code>/Producer</code> string<br>
<code>/IsEncrypted</code> boolean<br>
</blockquote>
-</dd></p>
-
-<p><dt><code>PDFcontext .PDFMetadata -</code></dt>
+</dd><dt><code>PDFcontext .PDFMetadata -</code></dt>
<dd> PDFcontext is a PDFcontext object returned from a previous call to .PDFInit.
For the benefit of high level devices, this is a replacement for 'process_trailer_attrs' which is a seriously misnamed function now.
This function needs to write any required output intents, load and send Outlines to the device, copy the Author, Creator, Title, Subject
and Keywords from the Info dict to the output device, copy Optional Content Properties (OCProperties) to the output device.
If an AcroForm is present send all its fields and link widget annotations to fields, and finally copy the PageLabels. If we add support for anything else, it will be here too..
-</dd></p>
-
-<p><dt><code>PDFcontext int .PDFPageInfo -</code></dt>
+</dd><dt><code>PDFcontext int .PDFPageInfo -</code></dt>
<dd> The integer argument is the page number to retrieve information for.
Returns a dictionary with the following key/value pairs:
<blockquote>
@@ -2269,34 +2236,35 @@ May also contain (if they are present in the Page dictionary)
<code>/TrimBox</code> [llx lly urx ury]<br>
<code>/UserUnit</code> int<br>
</blockquote>
-</dd></p>
-
-<p><dt><code>PDFcontext int .PDFDrawPage -</code></dt>
+</dd>
+<dt><code>PDFcontext int .PDFDrawPage -</code></dt>
<dd> PDFcontext is a PDFcontext object returned from a previous call to .PDFInit.
The integer argument is the page number to be processed.
Interprets the page content stream(s) of the specified page using the current graphics state.
-</dd></p>
+</dd>
-<p><dt><code>PDFcontext int .PDFDrawAnnots -</code></dt>
+<dt><code>PDFcontext int .PDFDrawAnnots -</code></dt>
<dd> PDFcontext is a PDFcontext object returned from a previous call to .PDFInit.
The integer argument is the page number to be processed.
Renders the Annotations (if any) of the specified page using the current graphics state
For correct results, the graphics state when this operator is run should be the same as when
PDFDrawPage is executed.
-</dd></p>
+
<p>Note: The PDFcontext object created by PDFInit must (clearly) have a PDF file associated
with it before you can usefully use it. Attempting to use a PDFcontext with
any of the processing operators (eg .PDFDrawPage) before using either .PDFStream of .PDFFile
to associate a file with the context will result in an error.
</p>
+</dd>
+</dl>
<!-- [2.0 end contents] ==================================================== -->
<!-- [3.0 begin visible trailer] =========================================== -->
<hr>
<p>
-<small>Copyright &copy; 2000-2021 Artifex Software, Inc. All rights reserved.</small>
+<small>Copyright &copy; 2000-2022 Artifex Software, Inc. All rights reserved.</small>
<p>
This software is provided AS-IS with no warranty, either express or
@@ -2309,40 +2277,17 @@ or contact Artifex Software, Inc., 1305 Grant Avenue - Suite 200,
Novato, CA 94945, U.S.A., +1(415)492-9861, for further information.
<p>
-<small>Ghostscript version 9.55.0, 27 September 2021
+<small>Ghostscript version 9.56.0, 29 March 2022
<!-- [3.0 end visible trailer] ============================================= -->
-<!--FINISH EDITING HERE-->
- </div>
- </div>
- </div>
- <div class="footer">
- <div class="row">
- <div class="col-7 footleft">
- <ul>
- <li><a href="https://artifex.com/contact-us/" target="blank">CONTACT US</a></li>
- <li><a href="https://artifex.com/about-us/" target="blank">ABOUT</a></li>
- <li><a href="https://ghostscript.com/security.html">SECURITY</a></li>
- </ul>
- </div>
- <div class="col-1 footcenter">
- <ul>
- <li><a href="https://artifex.com/support/" target="blank">SUPPORT</a></li>
- <li><a href="https://artifex.com/blog/artifex/" target="blank">BLOG</a></li>
- <li><a href="https://artifex.com/privacy-policy/" target="blank">PRIVACY</a></li>
- </ul>
- </div>
- <div class="col-ft-3 footright"><img src="images/Artifex_logo.png" width="194" height="40" alt=""/> <br>
- © Copyright 2019-2021 Artifex Software, Inc. <br>
- All rights reserved.
- </div>
- </div>
- </div>
-
- <script src="http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>
- <script src="index.js"></script>
+<!--FINISH EDITING HERE-->
+ </div><!-- close inner -->
+ </div><!-- close outer -->
+ </article>
+ </main>
+ <script src="site.js"></script>
</body>
</html>
diff --git a/doc/Lib.htm b/doc/Lib.htm
index bd986be5..10ce8ec4 100644
--- a/doc/Lib.htm
+++ b/doc/Lib.htm
@@ -1,69 +1,38 @@
<!doctype html>
-<html>
+<html lang="en">
<head>
-<meta charset="UTF-8">
-<meta name="viewport" content="width=device-width, initial-scale=1.0">
-<link href="https://fonts.googleapis.com/css?family=Source+Sans+Pro" rel="stylesheet">
-<link rel="shortcut icon" type="image/png" href="../../images/favicon.png">
-<title>The Ghostscript Library</title>
- <!-- Originally: lib.txt -->
-<link href="style.css" rel="stylesheet" type="text/css">
-<link href="gs-style.css" rel="stylesheet" type="text/css">
+ <meta http-equiv="content-type" content="text/html; charset=utf-8">
+ <meta name="viewport" content="user-scalable=yes, initial-scale=1, width=device-width">
+ <link href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:200,200i,300,300i,400,400i,600,600i,700,700i,900,900i" rel="stylesheet">
+ <link rel="shortcut icon" href="images/favicon.svg">
+ <title>The Ghostscript Library</title>
+ <link href="default.css" rel="stylesheet" type="text/css">
</head>
<body>
+ <header><div class="title"><a href="index.html"><h1 aria-label="title">Ghostscript documentation</h1><h2 aria-label="version"></h2></a></div><a href="Search.htm" aria-label="Search" id="searchSite"><div class="search"></div></a></header>
+ <main>
+ <article>
+ <div class="outer">
- <div class="header">
- <div class="row">
- <div class="col-lt-6 logo"><a href="https://www.ghostscript.com/"><img src="images/ghostscript_logo.png" width="108" height="119" alt=""></a></div>
- <div class="col-6"><div class="row"><div class="artifexlogo"><a href="https://artifex.com" target="_blank"><img src="images/Artifex_logo.png" width="194" height="40" alt=""></a></div>
- <div class="col-12"><div class="button button1"><a href="https://artifex.com/contact-us/" title="Contact Us" target="_blank">Contact Us</a></div>
- <div class="button button2 hidden-xs"><a href="https://www.ghostscript.com/download.html" title="Download">Download</a></div></div></div>
- </div>
- </div>
- </div>
-
- <div class="banner">
- <div class="row">
- <div class="col-12">The Ghostscript Library</div>
- </div>
- </div>
-
- <div class="main">
- <div class="row">
- <div id="sidebar">
- <div class="sidebar-item"></div>
- <div class="col-2 leftnav">
-<ul>
- <li><a href="https://www.ghostscript.com/">Home</a></li>
- <li><a href="https://www.ghostscript.com/license.html">Licensing</a></li>
- <li><a href="https://www.ghostscript.com/releases.html">Releases</a></li>
- <li><a href="https://www.ghostscript.com/documentation.html" title="Documentation">Documentation</a></li>
- <li><a href="https://www.ghostscript.com/download.html" title="Download">Download</a></li>
- <li><a href="https://www.ghostscript.com/performance.html" title="Performance">Performance</a></li>
- <li><a href="http://jbig2dec.com/" title="jbig2dec">jbig2dec</a></li>
- <li><a href="http://git.ghostscript.com/?p=ghostpdl.git;a=summary">Source</a></li>
- <li><a href="http://bugs.ghostscript.com/">Bugs</a></li>
- <li><a href="https://www.ghostscript.com/faq.html" title="FAQ">FAQ</a></li>
- </ul>
- </div>
- </div>
- <div class="col-10 page">
-
+ <div class="inner">
<!--START EDITING HERE-->
-<h2>Table of contents</h2>
+<h1>The Ghostscript Library</h1>
-<blockquote><ul>
-<li><a href="#GS_library">The Ghostscript library</a>
-<li><a href="#PS_operator_API">PostScript operator API</a>
-<ul>
-<li><a href="#Patterns">Patterns</a>
-<li><a href="#Lower_level_API">Lower-level API</a>
+<h2><a name="toc"></a>Table of contents</h2>
+<ul class="toc">
+ <li><a href="#GS_library">The Ghostscript library</a>
+ <li><a href="#PS_operator_API">PostScript operator API</a>
+ <li>
+ <ul>
+ <li><a href="#Patterns">Patterns</a>
+ <li><a href="#Lower_level_API">Lower-level API</a>
+ </ul>
+ </li>
+ <li><a href="#Visual_trace">Visual Trace instructions</a>
+ <li><a href="#Full_example">A full example</a>
</ul>
-<li><a href="#Visual_trace">Visual Trace instructions</a>
-<li><a href="#Full_example">A full example</a>
-</ul></blockquote>
<!-- [1.2 end table of contents] =========================================== -->
@@ -144,65 +113,65 @@ inverted control structure.
<blockquote><table>
<tr>
<th align="left">Section<br>(operators)</th>
- <th>&nbsp;&nbsp;</th>
+
<th align="left">Headers</th>
- <th>&nbsp;&nbsp;</th>
+
<th align="left">Omissions</th>
</tr>
<tr>
<td>Graphics state – device-independent</td>
- <td>&nbsp;</td>
+
<td><code>gscolor.h</code>(<code>gsstate.h</code>)<br><code>gscolor1.h</code><br><code>gscolor2.h</code><br><code>gscspace.h</code><br><code>gshsb.h</code><br><code>gsline.h</code>(<code>gsstate.h</code>)<br><code>gsstate.h</code></td>
- <td>&nbsp;</td>
+
<td>&nbsp;</td>
</tr>
<tr>
<td>Graphics state – device-dependent</td>
- <td>&nbsp;</td>
+
<td><code>gscolor.h</code>(<code>gsstate.h</code>)<br><code>gscolor1.h</code><br><code>gscolor2.h</code><br><code>gsht.h</code>(<code>gsht1.h</code>,<code>gsstate.h</code>)<br><code>gsht1.h</code><br><code>gsline.h</code>(<code>gsstate.h</code>)</td>
- <td>&nbsp;</td>
+
<td>&nbsp;</td>
</tr>
<tr>
<td>Coordinate system and matrix</td>
- <td>&nbsp;</td>
+
<td><code>gscoord.h</code><br><code>gsmatrix.h</code></td>
- <td>&nbsp;</td>
+
<td><code>*matrix</code>, <code>*identmatrix</code>, <code>*concatmatrix</code>, <code>*invertmatrix</code></td>
</tr>
<tr>
<td>Path construction</td>
- <td>&nbsp;</td>
+
<td><code>gspath.h</code><br><code>gspath2.h</code></td>
- <td>&nbsp;</td>
+
<td><code>*arct</code>, <code>*pathforall</code>, <code>ustrokepath</code>, <code>uappend</code>, <code>upath</code>, <code>ucache</code></td>
</tr>
<tr>
<td>Painting</td>
- <td>&nbsp;</td>
+
<td><code>gsimage.h</code><br><code>gspaint.h</code><br><code>gspath2.h</code></td>
- <td>&nbsp;</td>
+
<td><code>*image</code>, <code>*colorimage</code>, <code>*imagemask</code>, <code>ufill</code>, <code>ueofill</code>, <code>ustroke</code></td>
</tr>
<tr>
<td>Form and pattern</td>
- <td>&nbsp;</td>
+
<td><code>gscolor2.h</code></td>
- <td>&nbsp;</td>
+
<td><code>execform</code></td>
</tr>
<tr>
<td>Device setup and output</td>
- <td>&nbsp;</td>
+
<td><code>gsdevice.h</code></td>
- <td>&nbsp;</td>
+
<td><code>*showpage</code>, <code>*set</code>/<code>currentpagedevice</code></td>
</tr>
<tr>
<td>Character and font</td>
- <td>&nbsp;</td>
+
<td><code>gschar.h</code><br><code>gsfont.h</code></td>
- <td>&nbsp;</td>
+
<td>*(all the <code>show</code> operators), <code>definefont</code>, <code>undefinefont</code>, <code>findfont</code>, <code>*scalefont</code>, <code>*makefont</code>, <code>selectfont</code>, <code>[Global]FontDirectory</code>, <code>Standard</code>/<code>ISOLatin1Encoding</code>, <code>findencoding</code></td>
</tr>
</table></blockquote>
@@ -286,23 +255,23 @@ sections of the Manual:
<blockquote><table>
<tr>
<th align="left">Section<br>(operators)</th>
- <th>&nbsp;&nbsp;</th>
+
<th align="left">Headers</th>
- <th>&nbsp;&nbsp;</th>
+
<th align="left">Operators</th>
</tr>
<tr>
<td>Interpreter parameter</td>
- <td>&nbsp;</td>
+
<td><code>gsfont.h</code></td>
- <td>&nbsp;</td>
+
<td><code>cachestatus</code>, <code>setcachelimit</code>, <code>*set/currentcacheparams</code></td>
</tr>
<tr>
<td>Display PostScript</td>
- <td>&nbsp;</td>
+
<td><code>gsstate.h</code></td>
- <td>&nbsp;</td>
+
<td><code>set/currenthalftonephase</code></td>
</tr>
</table></blockquote>
@@ -341,27 +310,27 @@ using the color are two separate operations.
<blockquote><table>
<tr>
<td><code>gs_client_color *</code></td>
- <td>&nbsp;&nbsp;&nbsp;</td>
+
<td>The resulting <code>Pattern</code> color is stored here. This is different from PostScript, which has no color objects <em>per se</em>, and hence returns a modified copy of the dictionary.</td>
</tr>
<tr>
<td><code>const gs_client_pattern *</code></td>
- <td>&nbsp;</td>
+
<td>The analogue of the original <code>Pattern</code> dictionary, described in detail just below.</td>
</tr>
<tr>
<td><code>const gs_matrix *</code></td>
- <td>&nbsp;</td>
+
<td>Corresponds to the matrix argument of the <code>makepattern</code> operator.</td>
</tr>
<tr>
<td><code>gs_state *</code></td>
- <td>&nbsp;</td>
+
<td>The current graphics state.</td>
</tr>
<tr>
<td><code>gs_memory_t *</code></td>
- <td>&nbsp;</td>
+
<td>The allocator to use for allocating the saved data for the
<code>Pattern</code> color. If this is
<code>NULL</code>, <code>gs_makepattern</code> uses the
@@ -468,271 +437,272 @@ The following table explains the semantics of Visual Trace instructions.
<table>
<tr>
- <th colspan="5">Visual Trace instructions</th>
+ <th colspan="3">Visual Trace instructions</th>
</tr>
<tr>
<th align="left">Instruction</th>
- <th>&nbsp;&nbsp;</th>
+
<th align="left">Function</th>
- <th>&nbsp;&nbsp;</th>
+
<th align="left">Parameters</th>
</tr>
<tr>
<td><code>vd_get_dc</code></td>
- <td>&nbsp;&nbsp;</td>
+
<td>Obtain drawing context</td>
- <td>&nbsp;&nbsp;</td>
+
<td><code>-T</code> option flag value, for which the subsequent output is enabled.</td>
</tr>
<tr>
<td><code>vd_release_dc</code></td>
- <td>&nbsp;&nbsp;</td>
+
<td>Release drawing context</td>
- <td>&nbsp;&nbsp;</td>
+
<td>&nbsp;&nbsp;</td>
</tr>
<tr>
<td><code>vd_enabled</code></td>
- <td>&nbsp;&nbsp;</td>
+
<td>Is trace currently enabled ?</td>
- <td>&nbsp;&nbsp;</td>
+
<td></td>
</tr>
<tr>
<td><code>vd_get_size_unscaled_x</code></td>
- <td>&nbsp;&nbsp;</td>
+
<td>Get the horizontal size of the output window in pixels.</td>
- <td>&nbsp;&nbsp;</td>
+
<td></td>
</tr>
- <tr> <td><code>vd_get_size_unscaled_y</code></td>
- <td>&nbsp;&nbsp;</td>
+ <tr><td><code>vd_get_size_unscaled_y</code></td>
+
<td>Get the vertical size of the output window in pixels.</td>
- <td>&nbsp;&nbsp;</td>
+
<td></td></tr>
<tr>
<td><code>vd_get_size_caled_x</code></td>
- <td>&nbsp;&nbsp;</td>
+
<td>Get the horizontal size of the output window in debuggee coordinate units.</td>
- <td>&nbsp;&nbsp;</td>
+
<td></td>
</tr>
<tr>
<td><code>vd_get_size_caled_y</code></td>
- <td>&nbsp;&nbsp;</td>
+
<td>Get the vertical size of the output window in debuggee coordinate units.</td>
- <td>&nbsp;&nbsp;</td>
+
<td></td>
</tr>
<tr>
<td><code>vd_get_scale_x</code></td>
- <td>&nbsp;&nbsp;</td>
+
<td>Get the horizontal scale.</td>
- <td>&nbsp;&nbsp;</td>
+
<td></td>
</tr>
<tr>
<td><code>vd_get_scale_y</code></td>
- <td>&nbsp;&nbsp;</td>
+
<td>Get the vertical scale.</td>
- <td>&nbsp;&nbsp;</td>
+
<td></td>
</tr>
<tr>
<td><code>vd_get_origin_x</code></td>
- <td>&nbsp;&nbsp;</td>
+
<td>Get the horizontal position of the draft origin in debuggee coordinate space.</td>
- <td>&nbsp;&nbsp;</td>
+
<td></td>
</tr>
<tr>
<td><code>vd_get_origin_y</code></td>
- <td>&nbsp;&nbsp;</td>
+
<td>Get the vertical position of the draft origin in debuggee coordinate space.</td>
- <td>&nbsp;&nbsp;</td>
+
<td></td>
</tr>
<tr>
<td><code>vd_set_scale(s)</code></td>
- <td>&nbsp;&nbsp;</td>
+
<td>Set isotripic scale.</td>
- <td>&nbsp;&nbsp;</td>
+
<td>Debugee space to window space mapping scale, same for both dimentions.</td>
</tr>
<tr>
<td><code>vd_set_scaleXY(sx,sy)</code></td>
- <td>&nbsp;&nbsp;</td>
+
<td>Set anisotripic scale.</td>
- <td>&nbsp;&nbsp;</td>
+
<td>Debugee space to window space mapping scale, one for each dimention.</td>
</tr>
<tr>
<td><code>vd_set_origin(x,y)</code></td>
- <td>&nbsp;&nbsp;</td>
+
<td>Set the draft origin.</td>
- <td>&nbsp;&nbsp;</td>
+
<td>Origin of the draft in debugee space.</td>
</tr>
<tr>
<td><code>vd_set_shift(x,y)</code></td>
- <td>&nbsp;&nbsp;</td>
+
<td>Set the draft position.</td>
- <td>&nbsp;&nbsp;</td>
+
<td>Position of the draft origin in window space (in pixels).</td>
</tr>
-<tr> <td><code>vd_set_central_shift</code></td>
- <td>&nbsp;&nbsp;</td>
+<tr><td><code>vd_set_central_shift</code></td>
+
<td>Set the draft position to window center.</td>
- <td>&nbsp;&nbsp;</td>
+
<td></td>
</tr>
<tr>
<td><code>vd_erase(c)</code></td>
- <td>&nbsp;&nbsp;</td>
+
<td>Fill entire window.</td>
- <td>&nbsp;&nbsp;</td>
+
<td>Color to fill.</td>
</tr>
<tr>
<td><code>vd_beg_path</code></td>
- <td>&nbsp;&nbsp;</td>
+
<td>Begin path construction.</td>
- <td>&nbsp;&nbsp;</td>
+
<td></td>
</tr>
<tr>
<td><code>vd_end_path</code></td>
- <td>&nbsp;&nbsp;</td>
+
<td>End path construction.</td>
- <td>&nbsp;&nbsp;</td>
+
<td></td>
</tr>
<tr>
<td><code>vd_moveto(x,y)</code></td>
- <td>&nbsp;&nbsp;</td>
+
<td>Path construction : Set the draft current point.</td>
- <td>&nbsp;&nbsp;</td>
+
<td>Debugee coordinates.</td>
</tr>
<tr>
<td><code>vd_lineto(x,y)</code></td>
- <td>&nbsp;&nbsp;</td>
+
<td>Path construction : Line from current point to specified point.</td>
- <td>&nbsp;&nbsp;</td>
+
<td>Debugee coordinates.</td>
</tr>
<tr>
<td><code>vd_lineto_mupti(p,n)</code></td>
- <td>&nbsp;&nbsp;</td>
+
<td>Path construction : Poliline from current point to specified points.</td>
- <td>&nbsp;&nbsp;</td>
+
<td>Array of points and its size, debugee coordinates.</td>
</tr>
<tr>
<td><code>vd_curveto(x0,y0,x1,y1,x2,y2)</code></td>
- <td>&nbsp;&nbsp;</td>
+
<td>Path construction : Curve (3rd-order Bezier) from current
point to specified point, with specified poles.</td>
- <td>&nbsp;&nbsp;</td>
+
<td>2 poles and the curve ending point, debuggee coordinates.</td>
</tr>
<tr>
<td><code>vd_closepath</code></td>
- <td>&nbsp;&nbsp;</td>
+
<td>Path construction : Close the path (is necessary for filling an area).</td>
- <td>&nbsp;&nbsp;</td>
+
<td></td>
</tr>
<tr>
<td><code>vd_bar(x0,y0,x1,y1,w,c)</code></td>
- <td>&nbsp;&nbsp;</td>
+
<td>Bar from point to point.</td>
- <td>&nbsp;&nbsp;</td>
+
<td>2 points (debugee coordinates), width (in pixels) and color.</td>
</tr>
<tr>
<td><code>vd_square(x0,y0,w,c)</code></td>
- <td>&nbsp;&nbsp;</td>
+
<td>Square with specified center and size.</td>
- <td>&nbsp;&nbsp;</td>
+
<td>The center (debugee coordinates), size (in pixels) and color.</td>
</tr>
<tr>
<td><code>vd_rect(x0,y0,x1,y1,w,c)</code></td>
- <td>&nbsp;&nbsp;</td>
+
<td>Canonic rectangle with specified coordinites.</td>
- <td>&nbsp;&nbsp;</td>
+
<td>Coordinates of boundaries (debugee coordinates), line width (in pixels) and color.</td>
</tr>
<tr>
<td><code>vd_quad(x0,y0,x1,y1,x2,y2,x3,y3,w,c)</code></td>
- <td>&nbsp;&nbsp;</td>
+
<td>Quadrangle with specified coordinites.</td>
- <td>&nbsp;&nbsp;</td>
+
<td>Coordinates of vertices (debugee coordinates), line width (in pixels) and color.</td>
</tr>
<tr>
<td><code>vd_curve(x0,y0,x1,y1,x2,y2,x3,y3,c,w)</code></td>
- <td>&nbsp;&nbsp;</td>
+
<td>Curve with width.</td>
- <td>&nbsp;&nbsp;</td>
+
<td>4 curve poles (debugee coordinates), color, and width (in pixels).</td>
</tr>
-<tr> <td><code>vd_circle(x,y,r,c)</code></td>
- <td>&nbsp;&nbsp;</td>
+<tr>
+ <td><code>vd_circle(x,y,r,c)</code></td>
+
<td>Circle.</td>
- <td>&nbsp;&nbsp;</td>
+
<td>Center (debugee coordinates), radius (in pixels) and color.</td>
</tr>
<tr>
<td><code>vd_round(x,y,r,c)</code></td>
- <td>&nbsp;&nbsp;</td>
+
<td>Filled circle.</td>
- <td>&nbsp;&nbsp;</td>
+
<td>Center (debugee coordinates), radius (in pixels) and color.</td>
</tr>
<tr>
<td><code>vd_stroke</code></td>
- <td>&nbsp;&nbsp;</td>
+
<td>Stroke a path constructed with vd_beg_path, vd_moveto, vd_lineto,
vd_curveto, vd_closepath, vd_end_path.</td>
- <td>&nbsp;&nbsp;</td>
+
<td></td>
</tr>
<tr>
<td><code>vd_fill</code></td>
- <td>&nbsp;&nbsp;</td>
+
<td>Fill a path constructed with vd_beg_path, vd_moveto, vd_lineto,
vd_curveto, vd_closepath, vd_end_path.</td>
- <td>&nbsp;&nbsp;</td>
+
<td></td>
</tr>
<tr>
<td><code>vd_setcolor(c)</code></td>
- <td>&nbsp;&nbsp;</td>
+
<td>Set a color.</td>
- <td>&nbsp;&nbsp;</td>
+
<td>Color (an integer consisting of red, green, blue bytes).</td>
</tr>
<tr>
<td><code>vd_setlinewidth(w)</code></td>
- <td>&nbsp;&nbsp;</td>
+
<td>Set line width.</td>
- <td>&nbsp;&nbsp;</td>
+
<td>Width (in pixels).</td>
</tr>
<tr>
<td><code>vd_text(x,y,s,c)</code></td>
- <td>&nbsp;&nbsp;</td>
+
<td>Paint a text.</td>
- <td>&nbsp;&nbsp;</td>
+
<td>Origin point (debugee coordinates), a string, and a color.</td>
</tr>
<tr>
<td><code>vd_wait</code></td>
- <td>&nbsp;&nbsp;</td>
+
<td>Delay execution until a resuming command is entered through user interface.</td>
- <td>&nbsp;&nbsp;</td>
+
<td></td>
</tr>
</table>
@@ -749,177 +719,177 @@ the structure <code>vd_trace_interface</code>, explained in the table below.
<table>
<tr>
- <th colspan="5">vd_trace_interface structure</th>
+ <th colspan="3">vd_trace_interface structure</th>
</tr>
<tr>
<th align="left">Field</th>
- <th>&nbsp;&nbsp;</th>
+
<th align="left">Purpose</th>
- <th>&nbsp;&nbsp;</th>
+
<th align="left">Parameters</th>
</tr>
<tr>
<td><code>host</code></td>
- <td>&nbsp;&nbsp;</td>
+
<td>A pointer to the rasterizer control block - to be provided by client application.
The type of the fild is client dependent.</td>
- <td>&nbsp;&nbsp;</td>
+
<td></td>
</tr>
<tr>
<td><code>scale_x, scale_y</code></td>
- <td>&nbsp;&nbsp;</td>
+
<td>Scale of debugee coordinate to window coordinate mapping - internal work data, don't change.</td>
- <td>&nbsp;&nbsp;</td>
+
<td></td>
</tr>
<tr>
<td><code>orig_x, orig_y</code></td>
- <td>&nbsp;&nbsp;</td>
+
<td>Draft origin in debugee coordinates - internal work data, don't change.</td>
- <td>&nbsp;&nbsp;</td>
+
<td></td>
</tr>
<tr>
<td><code>shift_x, shift_y</code></td>
- <td>&nbsp;&nbsp;</td>
+
<td>Draft shift in window coordinates - internal work data, don't change.</td>
- <td>&nbsp;&nbsp;</td>
+
<td></td>
</tr>
<tr>
<td><code>get_size_x(I)</code></td>
- <td>&nbsp;&nbsp;</td>
+
<td>Get window width in pixels.</td>
- <td>&nbsp;&nbsp;</td>
+
<td></td>
</tr>
<tr>
<td><code>get_size_y(I)</code></td>
- <td>&nbsp;&nbsp;</td>
+
<td>Get window height in pixels.</td>
- <td>&nbsp;&nbsp;</td>
+
<td></td>
</tr>
<tr>
<td><code>get_dc(I,I1)</code></td>
- <td>&nbsp;&nbsp;</td>
+
<td>Obtain drawing context.</td>
- <td>&nbsp;&nbsp;</td>
+
<td>Pointer to interface block, and pointer to copy of the pointer.
Implementation must set *I1 if it succeeds to get a drawing context.</td>
</tr>
<tr>
<td><code>release_dc(I,I1)</code></td>
- <td>&nbsp;&nbsp;</td>
+
<td>Release drawing context.</td>
- <td>&nbsp;&nbsp;</td>
+
<td>Pointer to interface block, and pointer to copy of the pointer.
Implementation must reset *I1 if it succeeds to release the drawing context.</td>
</tr>
<tr>
<td><code>erase(I,c)</code></td>
- <td>&nbsp;&nbsp;</td>
+
<td>Erase entire window.</td>
- <td>&nbsp;&nbsp;</td>
+
<td>Background color.</td>
</tr>
<tr>
<td><code>beg_path(I)</code></td>
- <td>&nbsp;&nbsp;</td>
+
<td>Begin path construction.</td>
- <td>&nbsp;&nbsp;</td>
+
<td></td>
</tr>
<tr>
<td><code>end_path(I)</code></td>
- <td>&nbsp;&nbsp;</td>
+
<td>End path construction.</td>
- <td>&nbsp;&nbsp;</td>
+
<td></td>
</tr>
<tr>
<td><code>moveto(I,x,y)</code></td>
- <td>&nbsp;&nbsp;</td>
+
<td>Set current point.</td>
- <td>&nbsp;&nbsp;</td>
+
<td>A point in window coordinates.</td>
</tr>
<tr>
<td><code>lineto(I,x,y)</code></td>
- <td>&nbsp;&nbsp;</td>
+
<td>Line from current point to specified point.</td>
- <td>&nbsp;&nbsp;</td>
+
<td>A point in window coordinates.</td>
</tr>
<tr>
<td><code>curveto(I,x0,y0,x1,y1,x2,y2)</code></td>
- <td>&nbsp;&nbsp;</td>
+
<td>Curve from current point with specified poles to specified point.</td>
- <td>&nbsp;&nbsp;</td>
+
<td>3 points in window coordinates.</td>
</tr>
<tr>
<td><code>closepath(I)</code></td>
- <td>&nbsp;&nbsp;</td>
+
<td>Close the path.</td>
- <td>&nbsp;&nbsp;</td>
+
<td></td>
</tr>
<tr>
<td><code>circle(I,x,y,r)</code></td>
- <td>&nbsp;&nbsp;</td>
+
<td>Circle.</td>
- <td>&nbsp;&nbsp;</td>
+
<td>Center and radius, window coordinates.</td>
</tr>
<tr>
<td><code>round(I,x,y,r)</code></td>
- <td>&nbsp;&nbsp;</td>
+
<td>Filled circle.</td>
- <td>&nbsp;&nbsp;</td>
+
<td>Center and radius, window coordinates.</td>
</tr>
<tr>
<td><code>fill(I)</code></td>
- <td>&nbsp;&nbsp;</td>
+
<td>Fill the path.</td>
- <td>&nbsp;&nbsp;</td>
+
<td></td>
</tr>
<tr>
<td><code>stroke(I)</code></td>
- <td>&nbsp;&nbsp;</td>
+
<td>Stroke the path.</td>
- <td>&nbsp;&nbsp;</td>
+
<td></td>
</tr>
<tr>
<td><code>setcolor(I,c)</code></td>
- <td>&nbsp;&nbsp;</td>
- <td>Set color.</td>
- <td>&nbsp;&nbsp;</td>
+
+ <td>Set color.</td>
+
<td>An integer, consisting of red, green, blue bytes.</td>
</tr>
<tr>
<td><code>setlinewidth(I,w)</code></td>
- <td>&nbsp;&nbsp;</td>
+
<td>Set line width.</td>
- <td>&nbsp;&nbsp;</td>
+
<td>Line width in pixels.</td>
</tr>
<tr>
<td><code>text(I,x,y,s)</code></td>
- <td>&nbsp;&nbsp;</td>
+
<td>Draw a text.</td>
- <td>&nbsp;&nbsp;</td>
+
<td>Coodrinates in pixels, and a string.</td>
</tr>
<tr>
<td><code>wait(I)</code></td>
- <td>&nbsp;&nbsp;</td>
+
<td>Delay execution untill resume command is inputted from user.</td>
- <td>&nbsp;&nbsp;</td>
+
<td></td>
</tr>
</table>
@@ -1024,7 +994,7 @@ is finished, it should execute:
<hr>
<p>
-<small>Copyright &copy; 2000-2021 Artifex Software, Inc. All rights reserved.</small>
+<small>Copyright &copy; 2000-2022 Artifex Software, Inc. All rights reserved.</small>
<p>
This software is provided AS-IS with no warranty, either express or
@@ -1037,41 +1007,17 @@ or contact Artifex Software, Inc., 1305 Grant Avenue - Suite 200,
Novato, CA 94945, U.S.A., +1(415)492-9861, for further information.
<p>
-<small>Ghostscript version 9.55.0, 27 September 2021
+<small>Ghostscript version 9.56.0, 29 March 2022
<!-- [3.0 end visible trailer] ============================================= -->
-<!--FINISH EDITING HERE-->
-
- </div>
- </div>
- </div>
- <div class="footer">
- <div class="row">
- <div class="col-7 footleft">
- <ul>
- <li><a href="https://artifex.com/contact-us/" target="blank">CONTACT US</a></li>
- <li><a href="https://artifex.com/about-us/" target="blank">ABOUT</a></li>
- <li><a href="https://ghostscript.com/security.html">SECURITY</a></li>
- </ul>
- </div>
- <div class="col-1 footcenter">
- <ul>
- <li><a href="https://artifex.com/support/" target="blank">SUPPORT</a></li>
- <li><a href="https://artifex.com/blog/artifex/" target="blank">BLOG</a></li>
- <li><a href="https://artifex.com/privacy-policy/" target="blank">PRIVACY</a></li>
- </ul>
- </div>
- <div class="col-ft-3 footright"><img src="images/Artifex_logo.png" width="194" height="40" alt=""/> <br>
- © Copyright 2019-2021 Artifex Software, Inc. <br>
- All rights reserved.
- </div>
- </div>
- </div>
-
- <script src="http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>
- <script src="index.js"></script>
+<!--FINISH EDITING HERE-->
+ </div><!-- close inner -->
+ </div><!-- close outer -->
+ </article>
+ </main>
+ <script src="site.js"></script>
</body>
</html>
diff --git a/doc/Make.htm b/doc/Make.htm
index f2a3528f..f8850562 100644
--- a/doc/Make.htm
+++ b/doc/Make.htm
@@ -1,124 +1,99 @@
<!doctype html>
-<html>
+<html lang="en">
<head>
-<meta charset="UTF-8">
-<meta name="viewport" content="width=device-width, initial-scale=1.0">
-<link href="https://fonts.googleapis.com/css?family=Source+Sans+Pro" rel="stylesheet">
-<link rel="shortcut icon" type="image/png" href="../../images/favicon.png">
-<title>How to Build Ghostscript from Source Code</title>
- <!-- Originally: make.txt -->
-<link href="style.css" rel="stylesheet" type="text/css">
-<link href="gs-style.css" rel="stylesheet" type="text/css">
+ <meta http-equiv="content-type" content="text/html; charset=utf-8">
+ <meta name="viewport" content="user-scalable=yes, initial-scale=1, width=device-width">
+ <link href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:200,200i,300,300i,400,400i,600,600i,700,700i,900,900i" rel="stylesheet">
+ <link rel="shortcut icon" href="images/favicon.svg">
+ <title>How to Build Ghostscript from Source Code</title>
+ <link href="default.css" rel="stylesheet" type="text/css">
</head>
<body>
+ <header><div class="title"><a href="index.html"><h1 aria-label="title">Ghostscript documentation</h1><h2 aria-label="version"></h2></a></div><a href="Search.htm" aria-label="Search" id="searchSite"><div class="search"></div></a></header>
+ <main>
+ <article>
+ <div class="outer">
- <div class="header">
- <div class="row">
- <div class="col-lt-6 logo"><a href="https://www.ghostscript.com/"><img src="images/ghostscript_logo.png" width="108" height="119" alt=""></a></div>
- <div class="col-6"><div class="row"><div class="artifexlogo"><a href="https://artifex.com" target="_blank"><img src="images/Artifex_logo.png" width="194" height="40" alt=""></a></div>
- <div class="col-12"><div class="button button1"><a href="https://artifex.com/contact-us/" title="Contact Us" target="_blank">Contact Us</a></div>
- <div class="button button2 hidden-xs"><a href="https://www.ghostscript.com/download.html" title="Download">Download</a></div></div></div>
- </div>
- </div>
- </div>
-
- <div class="banner">
- <div class="row">
- <div class="col-12">How to Build Ghostscript from Source Code</div>
- </div>
- </div>
-
- <div class="main">
- <div class="row">
- <div id="sidebar">
- <div class="sidebar-item"></div>
- <div class="col-2 leftnav">
-<ul>
- <li><a href="https://www.ghostscript.com/">Home</a></li>
- <li><a href="https://www.ghostscript.com/license.html">Licensing</a></li>
- <li><a href="https://www.ghostscript.com/releases.html">Releases</a></li>
- <li><a href="https://www.ghostscript.com/documentation.html" title="Documentation">Documentation</a></li>
- <li><a href="https://www.ghostscript.com/download.html" title="Download">Download</a></li>
- <li><a href="https://www.ghostscript.com/performance.html" title="Performance">Performance</a></li>
- <li><a href="http://jbig2dec.com/" title="jbig2dec">jbig2dec</a></li>
- <li><a href="http://git.ghostscript.com/?p=ghostpdl.git;a=summary">Source</a></li>
- <li><a href="http://bugs.ghostscript.com/">Bugs</a></li>
- <li><a href="https://www.ghostscript.com/faq.html" title="FAQ">FAQ</a></li>
- </ul>
- </div>
- </div>
- <div class="col-10 page">
-
+ <div class="inner">
<!--START EDITING HERE-->
-<!-- [1.0 begin visible header] ============================================ -->
-
-<!-- [1.1 begin headline] ================================================== -->
-
-<h1>How to build Ghostscript from source code</h1>
-
-<!-- [1.1 end headline] ==================================================== -->
+<h1>How to Build Ghostscript from Source Code</h1>
-<!-- [1.2 begin table of contents] ========================================= -->
-
-<h2>Table of contents</h2>
-
-<blockquote><ul>
+<h2><a name="toc"></a>Table of contents</h2>
+<ul class="toc">
<li><a href="#General_overview">General overview</a></li>
-<li><a href="#Acquiring">How to acquire the source code</a></li>
-<ul>
-<li><a href="#Acquiring_git">How to acquire the development source code</a></li>
-</ul>
-<li><a href="#Unpack">How to unpack the source code</a></li>
-<ul>
-<li><a href="#Tarfiles">How to unpack compressed tar files generally</a></li>
-<li><a href="#Unpack_Ghostscript">How to unpack Ghostscript itself</a></li>
-</ul>
-<li><a href="#Bug_check">How to check for post-release bug fixes</a></li>
-<li><a href="#Makefile_overview">How to prepare the makefiles</a></li>
-<ul>
-<li><a href="#Preparing_makefiles">Changes for your environment</a></li>
-<li><a href="#Features_and_devices">Selecting features and devices</a></li>
-<ul>
-<li><a href="#Precompiled_data">Precompiled run-time data</a></li>
-</ul>
-<li><a href="#Makefile_setup">Setting up "makefile"</a></li>
-<li><a href="#MSys/Mingw">MSys/Mingw</a></li>
-<li><a href="#Invoke_make">Invoking "make"</a></li>
-<li><a href="#Cross-compiling">Cross-compiling</a></li>
-</ul>
-<li><a href="#PC_build">How to build Ghostscript from source (PC version)</a></li>
-<ul>
-<li><a href="#Microsoft_build">Microsoft environment</a></li>
-<li><a href="#Microsoft_build_64">Microsoft environment 64-bit</a></li>
-<li><a href="#Microsoft_build_winrt">Microsoft environment WinRT</a></li>
-<li><a href="#Self-extracting_executables">Making self-extracting Installers</a></li>
- <li><a href="#Cygwin32_build">Cygwin32 gcc</a></li>
-</ul>
-<li><a href="#Mac_build">How to build Ghostscript from source (MacOS version)</a></li>
-<ul>
-<li><a href="#MacOSX">MacOS X</a></li>
-</ul>
-<li><a href="#Unix_build">How to build Ghostscript from source (Unix version)</a></li>
-<ul>
-<li><a href="#GNU_make">make tools</a></li>
-<li><a href="#OS_specific_issues">OS-specific issues</a></li>
-<ul>
-<li><a href="#HP_RISC">H-P RISC workstations</a></li>
-<li><a href="#IBMAIX">IBM AIX</a></li>
-<li><a href="#Silicon_Graphics">Silicon Graphics</a></li>
-<li><a href="#Sun">Oracle/Sun</a></li>
-<li><a href="#Solaris">Solaris</a></li>
-</ul>
-</ul>
-<li><a href="#Other_environments">Other environments</a></li>
-<ul>
-<li><a href="#No_multi_thread">Environments lacking multi-threading</a></li>
-<li><a href="#Plan_9">Plan 9</a></li>
+ <li><a href="#Acquiring">How to acquire the source code</a></li>
+ <li>
+ <ul>
+ <li><a href="#Acquiring_git">How to acquire the development source code</a></li>
+ </ul>
+ </li>
+ <li><a href="#Unpack">How to unpack the source code</a></li>
+ <li>
+ <ul>
+ <li><a href="#Tarfiles">How to unpack compressed tar files generally</a></li>
+ <li><a href="#Unpack_Ghostscript">How to unpack Ghostscript itself</a></li>
+ </ul>
+ </li>
+ <li><a href="#Bug_check">How to check for post-release bug fixes</a></li>
+ <li><a href="#Makefile_overview">How to prepare the makefiles</a></li>
+ <li>
+ <ul>
+ <li><a href="#Preparing_makefiles">Changes for your environment</a></li>
+ <li><a href="#Features_and_devices">Selecting features and devices</a></li>
+ <li>
+ <ul>
+ <li><a href="#Precompiled_data">Precompiled run-time data</a></li>
+ </ul>
+ </li>
+ <li><a href="#Makefile_setup">Setting up "makefile"</a></li>
+ <li><a href="#MSys/Mingw">MSys/Mingw</a></li>
+ <li><a href="#Invoke_make">Invoking "make"</a></li>
+ <li><a href="#Cross-compiling">Cross-compiling</a></li>
+ </ul>
+ </li>
+ <li><a href="#PC_build">How to build Ghostscript from source (PC version)</a></li>
+ <li>
+ <ul>
+ <li><a href="#Microsoft_build">Microsoft environment</a></li>
+ <li><a href="#Microsoft_build_64">Microsoft environment 64-bit</a></li>
+ <li><a href="#Microsoft_build_winrt">Microsoft environment WinRT</a></li>
+ <li><a href="#Self-extracting_executables">Making self-extracting Installers</a></li>
+ <li><a href="#Cygwin32_build">Cygwin32 gcc</a></li>
+ </ul>
+ </li>
+ <li><a href="#Mac_build">How to build Ghostscript from source (MacOS version)</a></li>
+ <li>
+ <ul>
+ <li><a href="#MacOSX">MacOS X</a></li>
+ </ul>
+ </li>
+ <li><a href="#Unix_build">How to build Ghostscript from source (Unix version)</a></li>
+ <li>
+ <ul>
+ <li><a href="#GNU_make">make tools</a></li>
+ <li><a href="#OS_specific_issues">OS-specific issues</a></li>
+ <li>
+ <ul>
+ <li><a href="#HP_RISC">H-P RISC workstations</a></li>
+ <li><a href="#IBMAIX">IBM AIX</a></li>
+ <li><a href="#Silicon_Graphics">Silicon Graphics</a></li>
+ <li><a href="#Sun">Oracle/Sun</a></li>
+ <li><a href="#Solaris">Solaris</a></li>
+ </ul>
+ </li>
+ </ul>
+ </li>
+ <li><a href="#Other_environments">Other environments</a></li>
+ <li>
+ <ul>
+ <li><a href="#No_multi_thread">Environments lacking multi-threading</a></li>
+ <li><a href="#Plan_9">Plan 9</a></li>
+ </ul>
+ </li>
+ <li><a href="#UFST_build">How to build Ghostscript with UFST</a></li>
</ul>
-<li><a href="#UFST_build">How to build Ghostscript with UFST</a></li>
-</ul></blockquote>
<!-- [1.2 end table of contents] =========================================== -->
@@ -320,14 +295,14 @@ source, make the <b><em>parent</em></b> of the (new) gs directory the current di
<blockquote><table>
<tr><th align="left" valign="top">2-step:</th>
- <td>&nbsp;&nbsp;&nbsp;</td>
+
<td><code>gzip -d ghostscript-</code>#.##<code>.tar.gz</code><br><code>tar -xf ghostscript-</code>#.##<code>.tar</code></td></tr>
<tr><th align="left" valign="top">Pipe:</th>
- <td>&nbsp;</td>
+
<td><code>gzip -d -c ghostscript-</code>#.##<code>.tar.gz | tar -xf -</code></td></tr>
<tr><th align="left" valign="top">GNU tar:</th>
- <td>&nbsp;</td>
+
<td><code>tar -zxf ghostscript-</code>#.##<code>.tar.gz</code></td></tr>
</table></blockquote>
@@ -336,48 +311,47 @@ All the Ghostscript source files are now in subdirectories of the gs
directory.</p>
<blockquote><table>
- <tr><th colspan="5">Ghostscript Core Source subdirectories</th></tr>
+ <tr><th colspan="2">Ghostscript Core Source subdirectories</th></tr>
<tr><th valign="bottom" align="left">Subdirectory</th>
- <th>&nbsp;&nbsp;&nbsp;&nbsp;</th>
<th valign="bottom" align="left">Contents</th></tr>
<tr><td><code>arch/</code></td>
- <td>&nbsp;</td>
+
<td>Pre-defined architecture header files</td></tr>
<tr><td><code>base/</code></td>
- <td>&nbsp;</td>
+
<td>Graphics library C source code and makefiles</td></tr>
<tr><td><code>contrib/</code></td>
- <td>&nbsp;</td>
+
<td>Community contributed/supported output devices</td></tr>
<tr><td><code>devices/</code></td>
- <td>&nbsp;</td>
+
<td>The output devices supported by the Ghostscript team</td></tr>
<tr><td><code>psi/</code></td>
- <td>&nbsp;</td>
+
<td>PS interpreter C source code and makefiles</td></tr>
<tr><td><code>Resource/</code></td>
- <td>&nbsp;</td>
+
<td>Postscript initialization, resource and font files</td></tr>
<tr><td><code>lib/</code></td>
- <td>&nbsp;</td>
+
<td>PostScript utilities and scripts used with Ghostscript</td></tr>
<tr><td><code>doc/</code></td>
- <td>&nbsp;</td>
+
<td>Documentation</td></tr>
<tr><td><code>man/</code></td>
- <td>&nbsp;</td>
+
<td>Unix <code>man</code> pages</td></tr>
<tr><td><code>examples/</code></td>
- <td>&nbsp;</td>
+
<td>Sample PostScript files</td></tr>
<tr><td><code>iccprofiles/</code></td>
- <td>&nbsp;</td>
+
<td>Default set of ICC profiles</td></tr>
<tr><td><code>windows/</code></td>
- <td>&nbsp;</td>
+
<td>Visual Studio for Windows specific project and solution files</td></tr>
<tr><td><code>toolbin/</code></td>
- <td>&nbsp;</td>
+
<td>Useful (non-Postscript) tools, mostly for developer use only</td></tr>
</table>
</blockquote>
@@ -385,15 +359,15 @@ directory.</p>
<p>Optionally, if you downloaded the GhostPDL archive, you may also have:</p>
<blockquote><table>
-<tr><th colspan="5">Additional GhostPDL source subdirectories</th></tr>
+<tr><th colspan=2>Additional GhostPDL source subdirectories</th></tr>
<tr><th valign="bottom" align="left">Subdirectory</th>
- <th>&nbsp;&nbsp;&nbsp;&nbsp;</th>
+
<th valign="bottom" align="left">Contents</th></tr>
<tr><td><code>pcl/</code></td>
- <td>&nbsp;</td>
+
<td>PCL/PXL interpreter C source code, makefiles, fonts etc</td></tr>
<tr><td><code>xps/</code></td>
- <td>&nbsp;</td>
+
<td>XPS interpreter C source code and makefiles</td></tr>
</table>
</blockquote>
@@ -457,21 +431,21 @@ Fortunately, the only makefiles you're likely to want to change are
relatively small ones containing platform-specific information.</p>
<blockquote><a name="Platform-specific_makefiles"></a><table>
- <tr><th colspan="3">Platform-specific makefiles</th></tr>
+ <tr><th colspan="2">Platform-specific makefiles</th></tr>
<tr><th align="left">Makefile</th>
- <th>&nbsp;&nbsp;&nbsp;&nbsp;</th>
+
<th align="left">Used for</th></tr>
<tr><td><code>Makefile.in</code></td>
- <td>&nbsp;</td>
+
<td>Template makefile for the autoconf build</td></tr>
<tr><td><code>psi/msvc.mak</code></td>
- <td>&nbsp;</td>
+
<td>MS Windows with Microsoft Visual Studio 2003 and later.</td></tr>
<tr><td><code>base/unix-gcc.mak</code></td>
- <td>&nbsp;</td>
+
<td>Unix with gcc</td></tr>
<tr><td><code>base/unixansi.mak</code></td>
- <td>&nbsp;</td>
+
<td>Unix with ANSI C compilers other than gcc</td></tr>
</table>
</blockquote>
@@ -739,7 +713,7 @@ time with the <code>-DDEBUG</code> or
<dd>Deletes all the files created by the build process (relocatables,
executables, and miscellaneous temporary files). If you've built an
executable and want to save it, move it first to another place, because
- "<code>make clean</code>" deletes it.</dd>?
+ "<code>make clean</code>" deletes it.</dd>
</dl>
<dl>
@@ -836,21 +810,21 @@ All Ghostscript builds in PC (DOS and MS Windows) environments are 32- or
64-bit: 16-bit builds are not supported. The relevant makefiles are</p>
<blockquote><table>
- <tr><th colspan="5">PC makefiles</th></tr>
+ <tr><th colspan="3">PC makefiles</th></tr>
<tr><th align="left">Makefile</th>
- <th>&nbsp;&nbsp;</th>
+
<th align="left">Construction tools</th>
- <th>&nbsp;&nbsp;</th>
+
<th align="left">For environment</th></tr>
<tr><td valign="top"><code>msvc.mak</code></td>
- <td>&nbsp;</td>
+
<td valign="top"><a href="#Microsoft_build">Microsoft Visual Studio .NET 2003 (or later)</a></td>
- <td>&nbsp;</td>
+
<td valign="top">MS Windows 32/64-bit</td></tr>
<tr><td valign="top"><code>Makefile.in</code></td>
- <td>&nbsp;</td>
+
<td valign="top"><a href="#Cygwin_build">Cygwin/gcc</a></td>
- <td>&nbsp;</td>
+
<td valign="top"><a href="https://www.cygwin.com/">Cygwin</a> (Use Unix <code>configure</code>)</td></tr>
</table></blockquote>
@@ -1144,7 +1118,7 @@ on your particular platform and compiler. In fact, that is the
<b><em>first</em></b> place to check if you build Ghostscript and it crashes
or produces obviously incorrect results.</p>
-<h4><a name="GNU_make"></a>make tools</h4>
+<h3><a name="GNU_make"></a>make tools</h3>
<p>
You require a make tool which supports separate directories for
@@ -1168,11 +1142,11 @@ Ghostscript.</p>
<h4><a name="HP_RISC"></a>H-P RISC workstations</h4>
-<ul>
+
<p>
(see Autoconf-based method above)</p>
-
+<ul>
<li>HP-UX versions before 11.0 do not support POSIX threads. Set
<code>SYNC=nosync</code> in the makefile before building.</li>
@@ -1186,6 +1160,8 @@ work. If <code>cc</code> on your system doesn't accept the
<li>If you use H-P's compiler, be sure you have upgraded to a recent
release. Many bizarre symptoms have been reported trying to build
Ghostscript with older, buggier compilers, for example:</li>
+
+<li>
<ul>
<li>The link step fails with a message about "<code>max</code>" not being defined.</li>
<li>The build succeeds, but the resulting executable fails to start up,
@@ -1194,6 +1170,7 @@ in .registerencoding".</li>
<li>The build succeeds, but the resulting executable produces a black
background on the first page of output.</li>
</ul>
+</li>
<li>It is reported that On HPUX 9.* you need at least compiler patch
PHSS_5723 and dld.sl patch PHSS_5734 to build Ghostscript. (As of late
@@ -1249,7 +1226,7 @@ please read the following carefully.</p>
<ul>
<li>
- To make the optimizer allocate enough table space, set</li>
+ To make the optimizer allocate enough table space, set
<p><code>CFLAGS="-Olimit 2500"</code> (for older compilers)
<br><code>CFLAGS="-OPT:Olimit=2500"</code> (for newer compilers)</p>
@@ -1257,7 +1234,7 @@ please read the following carefully.</p>
<p>
MIPSpro compiler version 3.19 is "older", and 7.1 is "newer"; we aren't
sure at what point in between the latter syntax was introduced.</p>
-
+</li>
<li>
With the compiler shipped with Irix 5.2, use the <code>-ansi</code>
option.</li>
@@ -1278,30 +1255,32 @@ incorrect output and binaries that cause segmentation faults.&nbsp; Various
solutions have been suggested and you may want to try them in this order,
until you get a working binary:</li>
-<ul>
-<li>
-Compile <code>idict.c</code> and <code>isave.c</code> separately
-without optimization after doing a normal compile; then relink.e.g.:</li>
-
-<p>
-<code>cc -OPT:Olimit=2500 -I. -I./obj -o ./obj/idict.o -c ./idict.c</code><br>
- <code>cc -OPT:Olimit=2500 -I. -I./obj -o ./obj/isave.o -c ./isave.c</code></p>
-
<li>
-Set <code>CFLAGS=</code> (no optimization).</li>
-
-<li>
-Use only <code>-O2</code>.&nbsp;&nbsp; Compiler produces incorrect output
-with <code>-O3</code> or "<code>-Ofast=ip32 -show</code>".</li>
-
-<li>
-Irix 6.5.1m with MIPSpro compiler 7.2.1.1m, Irix 6.5.3m with MIPSpro
-compiler 7.2.1, and probably other 6.5x / 7.2x combinations require
-compiling with the <code>-o32</code> option. Compiling with the (default)
-<code>-n32</code> option produces non-working executables.
-<code>-O2</code> is OK (possibly except for <code>idict.c</code>), but
-not <code>-O3</code>.</li>
-</ul>
+ <ul>
+ <li>
+ Compile <code>idict.c</code> and <code>isave.c</code> separately
+ without optimization after doing a normal compile; then relink.e.g.:
+
+ <p>
+ <code>cc -OPT:Olimit=2500 -I. -I./obj -o ./obj/idict.o -c ./idict.c</code><br>
+ <code>cc -OPT:Olimit=2500 -I. -I./obj -o ./obj/isave.o -c ./isave.c</code></p>
+ </li>
+ <li>
+ Set <code>CFLAGS=</code> (no optimization).</li>
+
+ <li>
+ Use only <code>-O2</code>.&nbsp;&nbsp; Compiler produces incorrect output
+ with <code>-O3</code> or "<code>-Ofast=ip32 -show</code>".</li>
+
+ <li>
+ Irix 6.5.1m with MIPSpro compiler 7.2.1.1m, Irix 6.5.3m with MIPSpro
+ compiler 7.2.1, and probably other 6.5x / 7.2x combinations require
+ compiling with the <code>-o32</code> option. Compiling with the (default)
+ <code>-n32</code> option produces non-working executables.
+ <code>-O2</code> is OK (possibly except for <code>idict.c</code>), but
+ not <code>-O3</code>.</li>
+ </ul>
+</li>
</ul>
<h4><a name="Sun"></a>Oracle/Sun</h4>
@@ -1333,13 +1312,14 @@ Solaris 2.3 and later seem to require "<code>EXTRALIBS=-lnsl&nbsp;-lsocket&nbsp;
<li>For Solaris 2.6 (and possibly some other versions), if you set
<code>SHARE_LIBPNG=1</code>, <code>SHARE_ZLIB=1</code>, or
-<code>SHARE_JPEG=1</code>, you may need to set</li>
+<code>SHARE_JPEG=1</code>, you may need to set
<p>
<code>XLDFLAGS=-R /usr/local/</code>xxx<code>/lib:/usr/local/lib</code></p>
<p>
using the full path names of the relevant directories.</p>
+</li>
<li>Solaris 2.<em>n</em> uses <code>/usr/openwin/share/include</code>
for the X11 libraries rather than <code>/usr/local/X/include</code>.</li>
@@ -1449,7 +1429,7 @@ msvc.mak sets the other options automatically.</p>
<hr>
<p>
-<small>Copyright &copy; 2000-2021 Artifex Software, Inc. All rights reserved.</small>
+<small>Copyright &copy; 2000-2022 Artifex Software, Inc. All rights reserved.</small>
<p>
This software is provided AS-IS with no warranty, either express or
@@ -1462,40 +1442,18 @@ or contact Artifex Software, Inc., 1305 Grant Avenue - Suite 200,
Novato, CA 94945, U.S.A., +1(415)492-9861, for further information.
<p>
-<small>Ghostscript version 9.55.0, 27 September 2021
+<small>Ghostscript version 9.56.0, 29 March 2022
<!-- [3.0 end visible trailer] ============================================= -->
<!--FINISH EDITING HERE-->
- </div>
- </div>
- </div>
- <div class="footer">
- <div class="row">
- <div class="col-7 footleft">
- <ul>
- <li><a href="https://artifex.com/contact-us/" target="blank">CONTACT US</a></li>
- <li><a href="https://artifex.com/about-us/" target="blank">ABOUT</a></li>
- <li><a href="https://ghostscript.com/security.html">SECURITY</a></li>
- </ul>
- </div>
- <div class="col-1 footcenter">
- <ul>
- <li><a href="https://artifex.com/support/" target="blank">SUPPORT</a></li>
- <li><a href="https://artifex.com/blog/artifex/" target="blank">BLOG</a></li>
- <li><a href="https://artifex.com/privacy-policy/" target="blank">PRIVACY</a></li>
- </ul>
- </div>
- <div class="col-ft-3 footright"><img src="images/Artifex_logo.png" width="194" height="40" alt=""/> <br>
- © Copyright 2019-2021 Artifex Software, Inc. <br>
- All rights reserved.
- </div>
- </div>
- </div>
-
- <script src="http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>
- <script src="index.js"></script>
+<!--FINISH EDITING HERE-->
+ </div><!-- close inner -->
+ </div><!-- close outer -->
+ </article>
+ </main>
+ <script src="site.js"></script>
</body>
</html>
diff --git a/doc/News.htm b/doc/News.htm
index 3d9784d4..d4f79d5d 100644
--- a/doc/News.htm
+++ b/doc/News.htm
@@ -1,64 +1,24 @@
<!doctype html>
-<html>
+<html lang="en">
<head>
-<meta charset="UTF-8">
-<meta name="viewport" content="width=device-width, initial-scale=1.0">
-<link href="https://fonts.googleapis.com/css?family=Source+Sans+Pro" rel="stylesheet">
-<link rel="shortcut icon" type="image/png" href="../../images/favicon.png">
-<title>Recent Changes in Ghostscript</title>
- <!-- Originally: NEWS -->
- <!--
- WARNING: do not use Pete Kaiser's emacs function "gs-toc" alone to
- re-create the table of contents here, because it will replace the
- hand-edited TOC subheads with a separate subhead for each H2 in
- the body of the file. Or if you do, first look at the original
- TOC to see how to edit it for visual conciseness.
- -->
-<link href="style.css" rel="stylesheet" type="text/css">
-<link href="gs-style.css" rel="stylesheet" type="text/css">
+ <meta http-equiv="content-type" content="text/html; charset=utf-8">
+ <meta name="viewport" content="user-scalable=yes, initial-scale=1, width=device-width">
+ <link href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:200,200i,300,300i,400,400i,600,600i,700,700i,900,900i" rel="stylesheet">
+ <link rel="shortcut icon" href="images/favicon.svg">
+ <title>Recent Changes in Ghostscript</title>
+ <link href="default.css" rel="stylesheet" type="text/css">
</head>
<body>
+ <header><div class="title"><a href="index.html"><h1 aria-label="title">Ghostscript documentation</h1><h2 aria-label="version"></h2></a></div><a href="Search.htm" aria-label="Search" id="searchSite"><div class="search"></div></a></header>
+ <main>
+ <article>
+ <div class="outer">
- <div class="header">
- <div class="row">
- <div class="col-lt-6 logo"><a href="https://www.ghostscript.com/"><img src="images/ghostscript_logo.png" width="108" height="119" alt=""></a></div>
- <div class="col-6"><div class="row"><div class="artifexlogo"><a href="https://artifex.com" target="_blank"><img src="images/Artifex_logo.png" width="194" height="40" alt=""></a></div>
- <div class="col-12"><div class="button button1"><a href="https://artifex.com/contact-us/" title="Contact Us" target="_blank">Contact Us</a></div>
- <div class="button button2 hidden-xs"><a href="https://www.ghostscript.com/download.html" title="Download">Download</a></div></div></div>
- </div>
- </div>
- </div>
-
- <div class="banner">
- <div class="row">
- <div class="col-12">Changes in the Most Recent Release of Ghostscript</div>
- </div>
- </div>
-
- <div class="main">
- <div class="row">
- <div id="sidebar">
- <div class="sidebar-item"></div>
- <div class="col-2 leftnav">
-<ul>
- <li><a href="https://www.ghostscript.com/">Home</a></li>
- <li><a href="https://www.ghostscript.com/license.html">Licensing</a></li>
- <li><a href="https://www.ghostscript.com/releases.html">Releases</a></li>
- <li><a href="https://www.ghostscript.com/documentation.html" title="Documentation">Documentation</a></li>
- <li><a href="https://www.ghostscript.com/download.html" title="Download">Download</a></li>
- <li><a href="https://www.ghostscript.com/performance.html" title="Performance">Performance</a></li>
- <li><a href="http://jbig2dec.com/" title="jbig2dec">jbig2dec</a></li>
- <li><a href="http://git.ghostscript.com/?p=ghostpdl.git;a=summary">Source</a></li>
- <li><a href="http://bugs.ghostscript.com/">Bugs</a></li>
- <li><a href="https://www.ghostscript.com/faq.html" title="FAQ">FAQ</a></li>
- </ul>
- </div>
- </div>
- <div class="col-10 page">
-
+ <div class="inner">
<!--START EDITING HERE-->
+<h1>Recent Changes in Ghostscript</h1>
<p>
This document is news about the most recent Ghostscript release. For
earlier versions, see the history documents:
@@ -77,50 +37,31 @@ overview</a>.
<!-- [1.0 end visible header] ============================================== -->
<!-- [2.0 begin contents] ================================================== -->
-<h2><a name="Version9.55.0"></a>Version 9.55.0 (2021-09-27)</h2>
+<h2><a name="Version9.56.0"></a>Version 9.56.0 (2022-03-29)</h2>
<p> Highlights in this release include:
<ul>
-<p>This release includes the fix for the <code>%pipe%</code> security issue (CVE-2021-3781).
-</li>
<li>
<p><b>New PDF Interpreter:</b> This is an entirely new implementation written in C (rather than
PostScript, as before). For a full discussion of this change and reasons for it see:
<a href="https://ghostscript.com/pdfi.html">Changes Coming to the PDF Interpreter</a>.
-<p>In this (9.55.0) release, the new PDF interpreter is disabled by default in Ghostscript,
-but can be used by specifying <code>-dNEWPDF</code>. We hope to make it the default in 9.56.0, and
-fully deprecate the PostScript implementation shortly after that (depending on the feedback
-we get).
+<p>In this (9.56.0) release, the new PDF interpreter is now <em><u>ENABLED</u></em> by default
+in Ghostscript, but the old PDF interpreter can be used as a fallback by specifying
+<code>-dNEWPDF=false</code>. We've provided this so users that encounter issues with the new
+interpreter can keep working while we iron out those issues, the option will not be available in
+the long term.
<p>This also allows us to offer a new executable (<code>gpdf</code>, or <code>gpdfwin??.exe</code>
on Windows) which is <i>purely</i> for PDF input. For this release, those new binaries are not included
-in the "install" make targets, nor in the Windows installers (they will be from 9.56.0 onwards).
-<p>We would ask that as many users as possible take the opportunity to test with the new PDF implementation
-(i.e. using <code>-dNEWPDF</code> on your gs command line), and discuss any problems with us, before
-the new implementation becomes the default.
-</li>
-<li>
-<p>The pdfwrite device now supports &quot;passthrough&quot; for JPX/JPG2000 data images (as well as the
-already supported JPEG/DCT Encoded). That means that if no rescaling or color conversion of the image data
-is required, the encoded/compressed image data from the input file will be written unchanged to the output,
-preventing potential image degradation caused by decompressing and recompressing.
-</li>
-<li>
-<p>The Ghostscript/GhostPDL demo apps for C, C#, Java and Python have all had improvements and the
-C#/Java/Python language bindings have now been documented, see <a href="language-bindings/index.html">Ghostscript Language Bindings</a>
+in the "install" make targets, nor in the Windows installers.
</li>
<li>
-<p>The Zugferd compliant PDF generating definitions (<code>lib/zugferd.ps</code>) have been updated and expanded to support the
-current version (2.1.1) of the Zugferd spec, and optionally different versions of the specification.
+<p>Calling Ghostscript via the GS API is now thread safe. The one limitation is that the X11 devices for
+Unix-like systems (x11, x11alpha, x11cmyk, x11cmyk2, x11cmyk4, x11cmyk8, x11gray2, x11gray4 and x11mono)
+cannot be made thread safe, due to their interaction with the X11 server, those devices have been modified
+to only allow one instance in an executable.
</li>
<li>
-<p>The PCL/m output devices now support Duplex/Tumble.
-</li>
-<li>
-<p>The internal support for &quot;n-up&quot; style simple imposition (introduced in 9.54.0) has been extended and improved
-for better support across all input formats.
-</li>
-<li>
-<p>Ghostscript now supports object specific halftone - for example, different halftones can be specified for text and
-images, reflecting the differing needs of rendering those two types of object.
+<p>The <code>PSD</code> output devices now write ICC profiles to their output files, for improved
+color fidelity.
</li>
<li>
<p>Our efforts in code hygiene and maintainability continue.
@@ -145,7 +86,7 @@ community demand for the feature.
please visit <a href="http://bugs.ghostscript.com/">bugs.ghostscript.com</a>.
<h3><a name="9.55.0_Incompatible_changes"></a>Incompatible changes</h3>
<h4>Included below are incompatible changes from recent releases (the
-specific release in question listed in parentheses). We include these,
+specific release in question is listed in parentheses). We include these,
for now, as we are aware that not everyone upgrades with every release.</h4>
<ul>
<li>
@@ -163,15 +104,15 @@ for more details.
</li>
<li>
<p>(9.53.0) As of 9.53.0, we have (re-)introduced the patch level to the version number,
-this helps facilitate a revised policy on handling security related issues.
-<p><strong>Note for GSView Users:</strong>The patch level addition breaks GSView 5 (it is
+this helps facilitate a revised policy on handling security-related issues.
+<p><strong>Note for GSView Users: </strong>The patch level addition breaks GSView 5 (it is
hardcoded to check for versions <code>704-999</code>. It is possible, but not guaranteed that
a GSView update might be forthcoming to resolve this.
</li>
<li>
<p>(9.52) <code>-dALLOWPSTRANSPARENCY</code>: The transparency compositor (and related
features), whilst we are improving it, remains sensitive to being driven correctly, and
-incorrect use can have unexpected/undefined results. Hence, as part of improving security
+incorrect use can have unexpected/undefined results. Hence, as part of improving security,
we limited access to these operators, originally using the <code>-dSAFER</code> feature.
As we made "SAFER" the default mode, that became unacceptable, hence the new option
<code>-dALLOWPSTRANSPARENCY</code> which enables access to the operators.
@@ -184,13 +125,13 @@ Secondly, the interaction with <code>save</code>&sol;<code>restore</code> operat
has changed. See <a href="Use.htm#Safer">SAFER</a>.
<p><strong>Important Note for Windows Users</strong>:
<br>
-The file/path pattern matching is case sensitive, even on Windows. This is a
+The file/path pattern matching is case-sensitive, even on Windows. This is a
change in behaviour compared to the old code which, on Windows, was case
<i>in</i>sensitive. This is in recognition of changes in Windows behaviour,
in that it now supports (although does not enforce) case sensitivity.
</li>
<li>
-<p>(9.27) The process of &quot;tidying&quot; the PostScript name space should have removed
+<p>(9.27) The process of &quot;tidying&quot; the PostScript namespace should have removed
only non-standard and undocumented operators. Nevertheless, it is possible that
any integrations or utilities that rely on those non-standard and undocumented
operators may stop working or may change behaviour.
@@ -201,12 +142,12 @@ alternative solution or return the previous functionality, if there is genuinely
option.
</li>
</ul>
-<h3><a name="9.55.0_changelog"></a>Changelog</h3>
+<h3><a name="9.56.0_changelog"></a>Changelog</h3>
<p>From 9.55.0 onwards, in recognition of how unwieldy very large HTML files can become
(History9.html had reached 8.1Mb!), we intend to only include the summary highlights (above).
<p>For anyone wanting the full details of the changes in
a release, we ask them to look at the history in our public git repository:
-<a href="https://git.ghostscript.com/?p=ghostpdl.git;a=shortlog;h=refs/tags/ghostpdl-9.55.0">ghostpdl-9.55.0</a> log.
+<a href="https://git.ghostscript.com/?p=ghostpdl.git;a=shortlog;h=refs/tags/ghostpdl-9.56.0">ghostpdl-9.56.0</a> log.
<p>If this change does not draw negative feedback, History?.htm file(s) will be removed from the release archives.
<!-- [2.0 end contents] ==================================================== -->
@@ -215,7 +156,7 @@ a release, we ask them to look at the history in our public git repository:
<hr>
<p>
-<small>Copyright &copy; 2005-2021 Artifex Software, Inc.
+<small>Copyright &copy; 2005-2022 Artifex Software, Inc.
All rights reserved.</small>
<p>
@@ -229,40 +170,16 @@ or contact Artifex Software, Inc., 1305 Grant Avenue - Suite 200,
Novato, CA 94945, U.S.A., +1(415)492-9861, for further information.
<p>
-<small>Ghostscript version 9.55.0, 27 September 2021
+<small>Ghostscript version 9.56.0, 29 March 2022
<!-- [3.0 end visible trailer] ============================================= -->
-<!--FINISH EDITING HERE-->
-
- </div>
- </div>
- </div>
- <div class="footer">
- <div class="row">
- <div class="col-7 footleft">
- <ul>
- <li><a href="https://artifex.com/contact-us/" target="blank">CONTACT US</a></li>
- <li><a href="https://artifex.com/about-us/" target="blank">ABOUT</a></li>
- <li><a href="https://ghostscript.com/security.html">SECURITY</a></li>
- </ul>
- </div>
- <div class="col-1 footcenter">
- <ul>
- <li><a href="https://artifex.com/support/" target="blank">SUPPORT</a></li>
- <li><a href="https://artifex.com/blog/artifex/" target="blank">BLOG</a></li>
- <li><a href="https://artifex.com/privacy-policy/" target="blank">PRIVACY</a></li>
- </ul>
- </div>
- <div class="col-ft-3 footright"><img src="images/Artifex_logo.png" width="194" height="40" alt=""/> <br>
- © Copyright 2019-2021 Artifex Software, Inc. <br>
- All rights reserved.
- </div>
- </div>
- </div>
-
- <script src="http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>
- <script src="index.js"></script>
+<!--FINISH EDITING HERE-->
+ </div><!-- close inner -->
+ </div><!-- close outer -->
+ </article>
+ </main>
+ <script src="site.js"></script>
</body>
</html>
diff --git a/doc/Ps-style.htm b/doc/Ps-style.htm
index f10c1fdf..24388e62 100644
--- a/doc/Ps-style.htm
+++ b/doc/Ps-style.htm
@@ -1,82 +1,56 @@
<!doctype html>
-<html>
+<html lang="en">
<head>
-<meta charset="UTF-8">
-<meta name="viewport" content="width=device-width, initial-scale=1.0">
-<link href="https://fonts.googleapis.com/css?family=Source+Sans+Pro" rel="stylesheet">
-<link rel="shortcut icon" type="image/png" href="../../images/favicon.png">
-<title>Ghostscript PostScript Coding Guidelines</title>
-<link href="style.css" rel="stylesheet" type="text/css">
-<link href="gs-style.css" rel="stylesheet" type="text/css">
+ <meta http-equiv="content-type" content="text/html; charset=utf-8">
+ <meta name="viewport" content="user-scalable=yes, initial-scale=1, width=device-width">
+ <link href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:200,200i,300,300i,400,400i,600,600i,700,700i,900,900i" rel="stylesheet">
+ <link rel="shortcut icon" href="images/favicon.svg">
+ <title>Ghostscript PostScript Coding Guidelines</title>
+ <link href="default.css" rel="stylesheet" type="text/css">
</head>
<body>
+ <header><div class="title"><a href="index.html"><h1 aria-label="title">Ghostscript documentation</h1><h2 aria-label="version"></h2></a></div><a href="Search.htm" aria-label="Search" id="searchSite"><div class="search"></div></a></header>
+ <main>
+ <article>
+ <div class="outer">
- <div class="header">
- <div class="row">
- <div class="col-lt-6 logo"><a href="https://www.ghostscript.com/"><img src="images/ghostscript_logo.png" width="108" height="119" alt=""></a></div>
- <div class="col-6"><div class="row"><div class="artifexlogo"><a href="https://artifex.com" target="_blank"><img src="images/Artifex_logo.png" width="194" height="40" alt=""></a></div>
- <div class="col-12"><div class="button button1"><a href="https://artifex.com/contact-us/" title="Contact Us" target="_blank">Contact Us</a></div>
- <div class="button button2 hidden-xs"><a href="https://www.ghostscript.com/download.html" title="Download">Download</a></div></div></div>
- </div>
- </div>
- </div>
-
- <div class="banner">
- <div class="row">
- <div class="col-12">Ghostscript PostScript Coding Guidelines</div>
- </div>
- </div>
-
- <div class="main">
- <div class="row">
- <div id="sidebar">
- <div class="sidebar-item"></div>
- <div class="col-2 leftnav">
- <ul>
- <li><a href="https://www.ghostscript.com/">Home</a></li>
- <li><a href="https://www.ghostscript.com/license.html">Licensing</a></li>
- <li><a href="https://www.ghostscript.com/releases.html">Releases</a></li>
- <li><a href="https://www.ghostscript.com/documentation.html" title="Documentation">Documentation</a></li>
- <li><a href="https://www.ghostscript.com/download.html" title="Download">Download</a></li>
- <li><a href="https://www.ghostscript.com/performance.html" title="Performance">Performance</a></li>
- <li><a href="http://jbig2dec.com/" title="jbig2dec">jbig2dec</a></li>
- <li><a href="http://git.ghostscript.com/?p=ghostpdl.git;a=summary">Source</a></li>
- <li><a href="http://bugs.ghostscript.com/">Bugs</a></li>
- <li><a href="https://www.ghostscript.com/faq.html" title="FAQ">FAQ</a></li>
- </ul>
- </div>
- </div>
- <div class="col-10 page">
-
+ <div class="inner">
<!--START EDITING HERE-->
-<h2>Table of contents</h2>
+<h1>Ghostscript PostScript Coding Guidelines</h1>
-<blockquote><ul>
-<li><a href="#Summary">Summary of the coding guidelines</a>
-<li><a href="#Introduction">Introduction</a>
-<li><a href="#PS_features">Use of PostScript language features</a>
-<ul>
-<li><a href="#Restrictions">Restrictions</a>
-<li><a href="#Protection">Protection</a>
-<li><a href="#Standard_constructions">Standard constructions</a>
-</ul>
-<li><a href="#File_structuring">File structuring</a>
-<li><a href="#Commenting">Commenting</a>
-<li><a href="#Formatting">Formatting</a>
-<ul>
-<li><a href="#Indentation">Indentation</a>
-<li><a href="#Spaces">Spaces</a>
-</ul>
-<li><a href="#Naming">Naming</a>
-<li><a href="#Miscellany">Miscellany</a>
-<ul>
-<li><a href="#Non_standard_operators">Some useful non-standard operators</a>
-<li><a href="#Useful_procedures">Some useful procedures</a>
-<li><a href="#Other">Other</a>
+<h2><a name="toc"></a>Table of contents</h2>
+<ul class="toc">
+ <li><a href="#Summary">Summary of the coding guidelines</a></li>
+ <li><a href="#Introduction">Introduction</a></li>
+ <li><a href="#PS_features">Use of PostScript language features</a></li>
+ <li>
+ <ul>
+ <li><a href="#Restrictions">Restrictions</a></li>
+ <li><a href="#Protection">Protection</a></li>
+ <li><a href="#Standard_constructions">Standard constructions</a></li>
+ </ul>
+ </li>
+ <li><a href="#File_structuring">File structuring</a></li>
+ <li><a href="#Commenting">Commenting</a></li>
+ <li><a href="#Formatting">Formatting</a></li>
+ <li>
+ <ul>
+ <li><a href="#Indentation">Indentation</a></li>
+ <li><a href="#Spaces">Spaces</a></li>
+ </ul>
+ </li>
+ <li><a href="#Naming">Naming</a></li>
+ <li><a href="#Miscellany">Miscellany</a></li>
+ <li>
+ <ul>
+ <li><a href="#Non_standard_operators">Some useful non-standard operators</a></li>
+ <li><a href="#Useful_procedures">Some useful procedures</a></li>
+ <li><a href="#Other">Other</a></li>
+ </ul>
+ </li>
</ul>
-</ul></blockquote>
<!-- [1.2 end table of contents] =========================================== -->
@@ -526,7 +500,7 @@ that could be made into a procedure.
<hr>
<p>
-<small>Copyright &copy; 2000-2021 Artifex Software, Inc. All rights reserved.</small>
+<small>Copyright &copy; 2000-2022 Artifex Software, Inc. All rights reserved.</small>
<p>
This software is provided AS-IS with no warranty, either express or
@@ -539,40 +513,18 @@ or contact Artifex Software, Inc., 1305 Grant Avenue - Suite 200,
Novato, CA 94945, U.S.A., +1(415)492-9861, for further information.
<p>
-<small>Ghostscript version 9.55.0, 27 September 2021
+<small>Ghostscript version 9.56.0, 29 March 2022
<!-- [3.0 end visible trailer] ============================================= -->
-<!--FINISH EDITING HERE-->
- </div>
- </div>
- </div>
- <div class="footer">
- <div class="row">
- <div class="col-7 footleft">
- <ul>
- <li><a href="https://artifex.com/contact-us/" target="blank">CONTACT US</a></li>
- <li><a href="https://artifex.com/about-us/" target="blank">ABOUT</a></li>
- <li><a href="https://ghostscript.com/security.html">SECURITY</a></li>
- </ul>
- </div>
- <div class="col-1 footcenter">
- <ul>
- <li><a href="https://artifex.com/support/" target="blank">SUPPORT</a></li>
- <li><a href="https://artifex.com/blog/artifex/" target="blank">BLOG</a></li>
- <li><a href="https://artifex.com/privacy-policy/" target="blank">PRIVACY</a></li>
- </ul>
- </div>
- <div class="col-ft-3 footright"><img src="images/Artifex_logo.png" width="194" height="40" alt=""/> <br>
- © Copyright 2019-2021 Artifex Software, Inc. <br>
- All rights reserved.
- </div>
- </div>
- </div>
-
- <script src="http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>
- <script src="index.js"></script>
+
+<!--FINISH EDITING HERE-->
+ </div><!-- close inner -->
+ </div><!-- close outer -->
+ </article>
+ </main>
+ <script src="site.js"></script>
</body>
</html>
diff --git a/doc/Ps2epsi.htm b/doc/Ps2epsi.htm
index b2c8daea..61649eb8 100644
--- a/doc/Ps2epsi.htm
+++ b/doc/Ps2epsi.htm
@@ -1,70 +1,39 @@
<!doctype html>
-<html>
+<html lang="en">
<head>
-<meta charset="UTF-8">
-<meta name="viewport" content="width=device-width, initial-scale=1.0">
-<link href="https://fonts.googleapis.com/css?family=Source+Sans+Pro" rel="stylesheet">
-<link rel="shortcut icon" type="image/png" href="../../images/favicon.png">
-<title>Convert PostScript to Encapsulated PostScript Interchange Format</title>
- <!-- Originally: ps2epsi.txt -->
-<link href="style.css" rel="stylesheet" type="text/css">
-<link href="gs-style.css" rel="stylesheet" type="text/css">
+ <meta http-equiv="content-type" content="text/html; charset=utf-8">
+ <meta name="viewport" content="user-scalable=yes, initial-scale=1, width=device-width">
+ <link href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:200,200i,300,300i,400,400i,600,600i,700,700i,900,900i" rel="stylesheet">
+ <link rel="shortcut icon" href="images/favicon.svg">
+ <title>Convert PostScript to Encapsulated PostScript Interchange Format</title>
+ <link href="default.css" rel="stylesheet" type="text/css">
</head>
<body>
+ <header><div class="title"><a href="index.html"><h1 aria-label="title">Ghostscript documentation</h1><h2 aria-label="version"></h2></a></div><a href="Search.htm" aria-label="Search" id="searchSite"><div class="search"></div></a></header>
+ <main>
+ <article>
+ <div class="outer">
- <div class="header">
- <div class="row">
- <div class="col-lt-6 logo"><a href="https://www.ghostscript.com/"><img src="images/ghostscript_logo.png" width="108" height="119" alt=""></a></div>
- <div class="col-6"><div class="row"><div class="artifexlogo"><a href="https://artifex.com" target="_blank"><img src="images/Artifex_logo.png" width="194" height="40" alt=""></a></div>
- <div class="col-12"><div class="button button1"><a href="https://artifex.com/contact-us/" title="Contact Us" target="_blank">Contact Us</a></div>
- <div class="button button2 hidden-xs"><a href="https://www.ghostscript.com/download.html" title="Download">Download</a></div></div></div>
- </div>
- </div>
- </div>
-
- <div class="banner">
- <div class="row">
- <div class="col-12">Convert PostScript to Encapsulated PostScript Interchange Format</div>
- </div>
- </div>
-
- <div class="main">
- <div class="row">
- <div id="sidebar">
- <div class="sidebar-item"></div>
- <div class="col-2 leftnav">
-<ul>
- <li><a href="https://www.ghostscript.com/">Home</a></li>
- <li><a href="https://www.ghostscript.com/license.html">Licensing</a></li>
- <li><a href="https://www.ghostscript.com/releases.html">Releases</a></li>
- <li><a href="https://www.ghostscript.com/documentation.html" title="Documentation">Documentation</a></li>
- <li><a href="https://www.ghostscript.com/download.html" title="Download">Download</a></li>
- <li><a href="https://www.ghostscript.com/performance.html" title="Performance">Performance</a></li>
- <li><a href="http://jbig2dec.com/" title="jbig2dec">jbig2dec</a></li>
- <li><a href="http://git.ghostscript.com/?p=ghostpdl.git;a=summary">Source</a></li>
- <li><a href="http://bugs.ghostscript.com/">Bugs</a></li>
- <li><a href="https://www.ghostscript.com/faq.html" title="FAQ">FAQ</a></li>
- </ul>
- </div>
- </div>
- <div class="col-10 page">
-
+ <div class="inner">
<!--START EDITING HERE-->
-<h2>Table of contents</h2>
+<h1>Convert PostScript to Encapsulated PostScript Interchange Format</h1>
-<blockquote><ul>
-<li><a href="#Overview">Overview</a>
-<li><a href="#Framemaker">Framemaker can use EPSI</a>
-<li><a href="#Usage">Usage</a>
-<ul>
-<li><a href="#MSDOS_usage">MS-DOS</a>
-<li><a href="#Unix_usage">Unix</a>
+<h2><a name="toc"></a>Table of contents</h2>
+<ul class="toc">
+ <li><a href="#Overview">Overview</a>
+ <li><a href="#Framemaker">Framemaker can use EPSI</a>
+ <li><a href="#Usage">Usage</a>
+ <li>
+ <ul>
+ <li><a href="#MSDOS_usage">MS-DOS</a>
+ <li><a href="#Unix_usage">Unix</a>
+ </ul>
+ </li>
+ <li><a href="#Limitations">Limitations</a>
+ <li><a href="#Files">Files</a>
</ul>
-<li><a href="#Limitations">Limitations</a>
-<li><a href="#Files">Files</a>
-</ul></blockquote>
<!-- [1.2 end table of contents] =========================================== -->
@@ -170,31 +139,31 @@ encapsulation fails because of the nature of the original PostScript file.
<blockquote><table>
<tr>
- <th colspan="3">ps2epsi files</th>
+ <th colspan="2">ps2epsi files</th>
</tr>
<tr>
<th align="left">File</th>
- <th>&nbsp;&nbsp;&nbsp;</th>
+
<th align="left">Contents</th>
</tr>
<tr>
<td><code>ps2epsi.htm</code></td>
- <td>&nbsp;</td>
+
<td>This document</td>
</tr>
<tr>
<td><code>ps2epsi.bat</code></td>
- <td>&nbsp;</td>
+
<td>MS-DOS batch file</td>
</tr>
<tr>
<td><code>ps2epsi</code></td>
- <td>&nbsp;</td>
+
<td>Unix shell script</td>
</tr>
<tr>
<td><code>ps2epsi.ps</code></td>
- <td>&nbsp;</td>
+
<td>Ghostscript program which does the work</td>
</tr>
</table></blockquote>
@@ -206,7 +175,7 @@ encapsulation fails because of the nature of the original PostScript file.
<hr>
<p>
-<small>Copyright &copy; 2000-2021 Artifex Software, Inc. All rights reserved.</small>
+<small>Copyright &copy; 2000-2022 Artifex Software, Inc. All rights reserved.</small>
<p>
This software is provided AS-IS with no warranty, either express or
@@ -219,40 +188,17 @@ or contact Artifex Software, Inc., 1305 Grant Avenue - Suite 200,
Novato, CA 94945, U.S.A., +1(415)492-9861, for further information.
<p>
-<small>Ghostscript version 9.55.0, 27 September 2021
+<small>Ghostscript version 9.56.0, 29 March 2022
<!-- [3.0 end visible trailer] ============================================= -->
-<!--FINISH EDITING HERE-->
- </div>
- </div>
- </div>
- <div class="footer">
- <div class="row">
- <div class="col-7 footleft">
- <ul>
- <li><a href="https://artifex.com/contact-us/" target="blank">CONTACT US</a></li>
- <li><a href="https://artifex.com/about-us/" target="blank">ABOUT</a></li>
- <li><a href="https://ghostscript.com/security.html">SECURITY</a></li>
- </ul>
- </div>
- <div class="col-1 footcenter">
- <ul>
- <li><a href="https://artifex.com/support/" target="blank">SUPPORT</a></li>
- <li><a href="https://artifex.com/blog/artifex/" target="blank">BLOG</a></li>
- <li><a href="https://artifex.com/privacy-policy/" target="blank">PRIVACY</a></li>
- </ul>
- </div>
- <div class="col-ft-3 footright"><img src="images/Artifex_logo.png" width="194" height="40" alt=""/> <br>
- © Copyright 2019-2021 Artifex Software, Inc. <br>
- All rights reserved.
- </div>
- </div>
- </div>
-
- <script src="http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>
- <script src="index.js"></script>
+<!--FINISH EDITING HERE-->
+ </div><!-- close inner -->
+ </div><!-- close outer -->
+ </article>
+ </main>
+ <script src="site.js"></script>
</body>
</html>
diff --git a/doc/Psfiles.htm b/doc/Psfiles.htm
index 9aa40395..b2423c8d 100644
--- a/doc/Psfiles.htm
+++ b/doc/Psfiles.htm
@@ -1,70 +1,36 @@
<!doctype html>
-<html>
+<html lang="en">
<head>
-<meta charset="UTF-8">
-<meta name="viewport" content="width=device-width, initial-scale=1.0">
-<link href="https://fonts.googleapis.com/css?family=Source+Sans+Pro" rel="stylesheet">
-<link rel="shortcut icon" type="image/png" href="../../images/favicon.png">
-<title>PostScript Files Distributed with Ghostscript</title>
- <!-- Originally: psfiles.txt -->
-<link href="style.css" rel="stylesheet" type="text/css">
-<link href="gs-style.css" rel="stylesheet" type="text/css">
+ <meta http-equiv="content-type" content="text/html; charset=utf-8">
+ <meta name="viewport" content="user-scalable=yes, initial-scale=1, width=device-width">
+ <link href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:200,200i,300,300i,400,400i,600,600i,700,700i,900,900i" rel="stylesheet">
+ <link rel="shortcut icon" href="images/favicon.svg">
+ <title>PostScript Files Distributed with Ghostscript</title>
+ <link href="default.css" rel="stylesheet" type="text/css">
</head>
<body>
-
- <div class="header">
- <div class="row">
- <div class="col-lt-6 logo"><a href="https://www.ghostscript.com/"><img src="images/ghostscript_logo.png" width="108" height="119" alt=""></a></div>
- <div class="col-6"><div class="row"><div class="artifexlogo"><a href="https://artifex.com" target="_blank"><img src="images/Artifex_logo.png" width="194" height="40" alt=""></a></div>
- <div class="col-12"><div class="button button1"><a href="https://artifex.com/contact-us/" title="Contact Us" target="_blank">Contact Us</a></div>
- <div class="button button2 hidden-xs"><a href="https://www.ghostscript.com/download.html" title="Download">Download</a></div></div></div>
- </div>
- </div>
- </div>
-
- <div class="banner">
- <div class="row">
- <div class="col-12">PostScript Files Distributed with Ghostscript</div>
- </div>
- </div>
-
- <div class="main">
- <div class="row">
- <div id="sidebar">
- <div class="sidebar-item"></div>
- <div class="col-2 leftnav">
- <ul>
- <li><a href="https://www.ghostscript.com/">Home</a></li>
- <li><a href="https://www.ghostscript.com/license.html">Licensing</a></li>
- <li><a href="https://www.ghostscript.com/releases.html">Releases</a></li>
- <li><a href="https://www.ghostscript.com/documentation.html" title="Documentation">Documentation</a></li>
- <li><a href="https://www.ghostscript.com/download.html" title="Download">Download</a></li>
- <li><a href="https://www.ghostscript.com/performance.html" title="Performance">Performance</a></li>
- <li><a href="http://jbig2dec.com/" title="jbig2dec">jbig2dec</a></li>
- <li><a href="http://git.ghostscript.com/?p=ghostpdl.git;a=summary">Source</a></li>
- <li><a href="http://bugs.ghostscript.com/">Bugs</a></li>
- <li><a href="https://www.ghostscript.com/faq.html" title="FAQ">FAQ</a></li>
- </ul>
- </div>
- </div>
- <div class="col-10 page">
-
+ <header><div class="title"><a href="index.html"><h1 aria-label="title">Ghostscript documentation</h1><h2 aria-label="version"></h2></a></div><a href="Search.htm" aria-label="Search" id="searchSite"><div class="search"></div></a></header>
+ <main>
+ <article>
+ <div class="outer">
+ <div class="inner">
<!--START EDITING HERE-->
-<h2>Table of contents</h2>
-
-<blockquote><ul>
-<li><a href="#General">Generally used system files</a></li>
-<li><a href="#Obscure">More obscure system files</a></li>
-<li><a href="#Config">Configuration files</a></li>
-<li><a href="#PDF_specific">PDF-specific system files</a></li>
-<li><a href="#DPS_specific">Display PostScript-specific system files</a></li>
-<li><a href="#Art">Art and examples</a></li>
-<li><a href="#Utilities">Utilities</a></li>
-<li><a href="#Development_tools">Development tools</a></li>
-<li><a href="#Miscellany">Odds and ends</a></li>
-</ul></blockquote>
+<h1>PostScript Files Distributed with Ghostscript</h1>
+
+<h2><a name="toc"></a>Table of contents</h2>
+<ul class="toc">
+ <li><a href="#General">Generally used system files</a></li>
+ <li><a href="#Obscure">More obscure system files</a></li>
+ <li><a href="#Config">Configuration files</a></li>
+ <li><a href="#PDF_specific">PDF-specific system files</a></li>
+ <li><a href="#DPS_specific">Display PostScript-specific system files</a></li>
+ <li><a href="#Art">Art and examples</a></li>
+ <li><a href="#Utilities">Utilities</a></li>
+ <li><a href="#Development_tools">Development tools</a></li>
+ <li><a href="#Miscellany">Odds and ends</a></li>
+</ul>
<!-- [1.2 end table of contents] =========================================== -->
@@ -90,7 +56,6 @@ These files define the Encodings known to Ghostscript. All of
them except <code>gs_std_e.ps</code> and <code>gs_il1_e.ps</code>
are loaded only if referred to. However some are additionally built into gscencs.c.</dd>
-<dl>
<dt>
PostScript Encodings:</dt>
@@ -112,7 +77,7 @@ the Ghostscript source distribution.</dd>
</dd>
<dt>
-<dd></dd>PDF Encodings:</dt>
+PDF Encodings:</dt>
<dd>
These files are found in the <code>Resource/Init</code> subdirectory of
the Ghostscript source distribution.</dd>
@@ -166,7 +131,7 @@ the Ghostscript source distribution.</dd>
</dd>
</dl>
-</dl>
+
<p>These files are found in the <code>Resource/Init</code> subdirectory of
the Ghostscript source distribution.</p>
@@ -871,7 +836,7 @@ when passing files with -dJOBSERVER.</dd>
<hr>
<p>
-<small>Copyright &copy; 2000-2021 Artifex Software, Inc. All rights reserved.</small>
+<small>Copyright &copy; 2000-2022 Artifex Software, Inc. All rights reserved.</small>
<p>
This software is provided AS-IS with no warranty, either express or
@@ -884,40 +849,17 @@ or contact Artifex Software, Inc., 1305 Grant Avenue - Suite 200,
Novato, CA 94945, U.S.A., +1(415)492-9861, for further information.
<p>
-<small>Ghostscript version 9.55.0, 27 September 2021
+<small>Ghostscript version 9.56.0, 29 March 2022
<!-- [3.0 end visible trailer] ============================================= -->
-<!--FINISH EDITING HERE-->
- </div>
- </div>
- </div>
-
- <div class="footer">
- <div class="row">
- <div class="col-7 footleft">
- <ul>
- <li><a href="https://artifex.com/contact-us/" target="blank">CONTACT US</a></li>
- <li><a href="https://artifex.com/about-us/" target="blank">ABOUT</a></li>
- <li><a href="https://ghostscript.com/security.html">SECURITY</a></li>
- </ul>
- </div>
- <div class="col-1 footcenter">
- <ul>
- <li><a href="https://artifex.com/support/" target="blank">SUPPORT</a></li>
- <li><a href="https://artifex.com/blog/artifex/" target="blank">BLOG</a></li>
- <li><a href="https://artifex.com/privacy-policy/" target="blank">PRIVACY</a></li>
- </ul>
- </div>
- <div class="col-ft-3 footright"><img src="images/Artifex_logo.png" width="194" height="40" alt=""/> <br>
- © Copyright 2021 Artifex Software, Inc. <br>
- All rights reserved.
- </div>
- </div>
- </div>
-
- <script src="http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>
- <script src="index.js"></script>
+
+<!--FINISH EDITING HERE-->
+ </div><!-- close inner -->
+ </div><!-- close outer -->
+ </article>
+ </main>
+ <script src="site.js"></script>
</body>
</html>
diff --git a/doc/Readme.htm b/doc/Readme.htm
index df69c6ac..2726f7ea 100644
--- a/doc/Readme.htm
+++ b/doc/Readme.htm
@@ -1,57 +1,25 @@
<!doctype html>
-<html>
+<html lang="en">
<head>
-<meta charset="UTF-8">
-<meta name="viewport" content="width=device-width, initial-scale=1.0">
-<link href="https://fonts.googleapis.com/css?family=Source+Sans+Pro" rel="stylesheet">
-<link rel="shortcut icon" type="image/png" href="../../images/favicon.png">
-<title>Overview of Ghostscript</title>
- <!-- Originally: README -->
-<link href="style.css" rel="stylesheet" type="text/css">
-<link href="gs-style.css" rel="stylesheet" type="text/css">
+ <meta http-equiv="content-type" content="text/html; charset=utf-8">
+ <meta name="viewport" content="user-scalable=yes, initial-scale=1, width=device-width">
+ <link href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:200,200i,300,300i,400,400i,600,600i,700,700i,900,900i" rel="stylesheet">
+ <link rel="shortcut icon" href="images/favicon.svg">
+ <title>Overview of Ghostscript</title>
+ <link href="default.css" rel="stylesheet" type="text/css">
</head>
<body>
+ <header><div class="title"><a href="index.html"><h1 aria-label="title">Ghostscript documentation</h1><h2 aria-label="version"></h2></a></div><a href="Search.htm" aria-label="Search" id="searchSite"><div class="search"></div></a></header>
+ <main>
+ <article>
+ <div class="outer">
- <div class="header">
- <div class="row">
- <div class="col-lt-6 logo"><a href="https://www.ghostscript.com/"><img src="images/ghostscript_logo.png" width="108" height="119" alt=""></a></div>
- <div class="col-6"><div class="row"><div class="artifexlogo"><a href="https://artifex.com" target="_blank"><img src="images/Artifex_logo.png" width="194" height="40" alt=""></a></div>
- <div class="col-12"><div class="button button1"><a href="https://artifex.com/contact-us/" title="Contact Us" target="_blank">Contact Us</a></div>
- <div class="button button2 hidden-xs"><a href="https://www.ghostscript.com/download.html" title="Download">Download</a></div></div></div>
- </div>
- </div>
- </div>
-
- <div class="banner">
- <div class="row">
- <div class="col-12">Overview of Ghostscript</div>
- </div>
- </div>
-
- <div class="main">
- <div class="row">
- <div id="sidebar">
- <div class="sidebar-item"></div>
- <div class="col-2 leftnav">
-<ul>
- <li><a href="https://www.ghostscript.com/">Home</a></li>
- <li><a href="https://www.ghostscript.com/license.html">Licensing</a></li>
- <li><a href="https://www.ghostscript.com/releases.html">Releases</a></li>
- <li><a href="https://www.ghostscript.com/documentation.html" title="Documentation">Documentation</a></li>
- <li><a href="https://www.ghostscript.com/download.html" title="Download">Download</a></li>
- <li><a href="https://www.ghostscript.com/performance.html" title="Performance">Performance</a></li>
- <li><a href="http://jbig2dec.com/" title="jbig2dec">jbig2dec</a></li>
- <li><a href="http://git.ghostscript.com/?p=ghostpdl.git;a=summary">Source</a></li>
- <li><a href="http://bugs.ghostscript.com/">Bugs</a></li>
- <li><a href="https://www.ghostscript.com/faq.html" title="FAQ">FAQ</a></li>
- </ul>
- </div>
- </div>
- <div class="col-10 page">
-
+ <div class="inner">
<!--START EDITING HERE-->
+<h1>Introduction</h1>
+
<p>
This document is a roadmap to the Ghostscript documentation.
After looking through it, if you want to install Ghostscript and not only
@@ -62,87 +30,105 @@ source code (which is necessary before installing it on Unix and VMS
<!-- [1.3 end hint] ======================================================== -->
-<hr>
+
<!-- [1.2 begin table of contents] ========================================= -->
-<h2>Table of contents</h2>
-<ul>
-<li><a href="WhatIsGS.htm">What is Ghostscript?</a></li>
-<ul>
-<li><a href="WhatIsGS.htm#GhostPDF">What is GhostPDF?</a></li>
-<li><a href="WhatIsGS.htm#GhostPCL">What is GhostPCL?</a></li>
-<li><a href="WhatIsGS.htm#GhostXPS">What is GhostXPS?</a></li>
-<li><a href="WhatIsGS.htm#GhostSVG">What is GhostSVG?</a></li>
-<li><a href="WhatIsGS.htm#GhostPDL">What is GhostPDL?</a></li>
-</ul>
-<li><a href="#Theme_roadmap">Document roadmap by theme</a></li>
-<ul>
-<li><a href="#New_users">What should I read if I'm a new user?</a></li>
-<li><a href="#Two_Ghostscripts">GPL Ghostscript and commercial Ghostscript</a></li>
-<li><a href="#Before_building">Before building Ghostscript</a></li>
-<li><a href="#Not_a_new_user">What should I read if I'm not a new user?</a></li>
-<li><a href="#Developer">What if I'm a developer?</a></li>
-<li><a href="#Writer">What if I'm writing documentation?</a></li>
-</ul>
-<ul>
- <li><a href="#Web_presence">Presence on the World Wide Web</a></li></ul>
-<ul>
-<li><a href="#Web_home_page">Ghostscript's home pages</a></li>
-<li><a href="#Adobe_documentation">Adobe PostScript, Encapsulated
-PostScript, and PDF reference documentation</a></li>
-<li><a href="#Web_other">Other material on the WWW</a></li>
-</ul>
-<li><a href="#Ordered_roadmap">Which document contains what?</a></li><br>
-<ul>
-<li>Primarily for users:</li><br>
-<table>
-<tr colspan="3">
-<td width="33%">
-<a href="#Deprecated">Deprecated.htm</a><br>
-<a href="#Devices">Devices.htm</a><br>
-<a href="#Ps2epsi">Ps2epsi.htm</a></td>
-<td width="33%">
-<a href="#Vector">VectorDevices.htm</a><br>
-<a href="#Readme">Readme.htm</a></td>
-<td width="33%">
-<a href="#Unix-lpr">Unix-lpr.htm</a><br>
-<a href="#Use">Use.htm</a></td></tr>
-</table><br>
-<li>For both users and developers:</li><br>
-<table>
-<tr colspan="3">
-<td width="33%">
-<a href="#Commprod">Commprod.htm</a><br>
-<a href="#Fonts">Fonts.htm</a><br>
-<a href="#History">History*.htm</a><br>
-<a href="#Install">Install.htm</a><br></td>
-<td width="33%">
-<a href="#Language">Language.htm</a><br>
-<a href="#Make">Make.htm</a><br>
-<a href="#News">News.htm</a></td>
-<td width="33%">
-<a href="#Psfiles">Psfiles.htm</a><br>
-<a href="#COPYING">COPYING</a><br>
-<a href="#THIRDPARTY">thirdparty.htm</a></td></tr>
-</table><br>
-<li>Primarily for developers:</li><br>
-<table>
-<tr colspan="3">
-<td width="33%">
-<a href="#API">API.htm</a><br>
-<a href="#C-style">C-style.htm</a><br>
-<a href="#DLL">DLL.htm</a><br>
-<a href="#Internal">Internal.htm</a><br></td>
-<td>
-<a href="#Lib">Lib.htm</a><br>
-<a href="#Develop">Develop.htm</a><br>
- <a href="#Drivers">Drivers.htm</a></td>
-<td>
-<a href="#Ps-style">Ps-style.htm</a><br>
-<a href="#Release">Release.htm</a><br>
-<a href="#Source">Source.htm</a><br></td></tr>
-</table>
+<h2><a name="toc"></a>Table of contents</h2>
+<ul class="toc">
+ <li><a href="WhatIsGS.htm">What is Ghostscript?</a></li>
+ <li>
+ <ul>
+ <li><a href="WhatIsGS.htm#GhostPDF">What is GhostPDF?</a></li>
+ <li><a href="WhatIsGS.htm#GhostPCL">What is GhostPCL?</a></li>
+ <li><a href="WhatIsGS.htm#GhostXPS">What is GhostXPS?</a></li>
+ <li><a href="WhatIsGS.htm#GhostSVG">What is GhostSVG?</a></li>
+ <li><a href="WhatIsGS.htm#GhostPDL">What is GhostPDL?</a></li>
+ </ul>
+ </li>
+ <li><a href="#Theme_roadmap">Document roadmap by theme</a></li>
+ <li>
+ <ul>
+ <li><a href="#New_users">What should I read if I'm a new user?</a></li>
+ <li><a href="#Two_Ghostscripts">GPL Ghostscript and commercial Ghostscript</a></li>
+ <li><a href="#Before_building">Before building Ghostscript</a></li>
+ <li><a href="#Not_a_new_user">What should I read if I'm not a new user?</a></li>
+ <li><a href="#Developer">What if I'm a developer?</a></li>
+ <li><a href="#Writer">What if I'm writing documentation?</a></li>
+ </ul>
+ </li>
+
+ <li><a href="#Web_presence">Presence on the World Wide Web</a></li>
+ <li>
+ <ul>
+ <li><a href="#Web_home_page">Ghostscript's home pages</a></li>
+ <li><a href="#Adobe_documentation">Adobe PostScript, Encapsulated
+ PostScript, and PDF reference documentation</a></li>
+ <li><a href="#Web_other">Other material on the WWW</a></li>
+ </ul>
+ </li>
+
+ <li><a href="#Ordered_roadmap">Which document contains what?</a></li>
+ <li>
+ <ul>
+ <li>Primarily for users:</li>
+ <li>
+ <table>
+ <tr colspan="3">
+ <td width="33%">
+ <a href="Deprecated.htm">Deprecated.htm</a><br>
+ <a href="Devices.htm">Devices.htm</a><br>
+ <a href="Ps2epsi.htm">Ps2epsi.htm</a></td>
+ <td width="33%">
+ <a href="VectorDevices.htm">VectorDevices.htm</a><br>
+ <a href="#Readme">Readme.htm</a></td>
+ <td width="33%">
+ <a href="Unix-lpr.htm">Unix-lpr.htm</a><br>
+ <a href="Use.htm">Use.htm</a></td></tr>
+ </table>
+ </li>
+ <li>
+ <li>For both users and developers:</li>
+ <li>
+ <table>
+ <tr colspan="3">
+ <td width="33%">
+ <a href="Fonts.htm">Fonts.htm</a><br>
+ <a href="History9.htm">History*.htm</a><br>
+ <a href="Install.htm">Install.htm</a><br></td>
+ <td width="33%">
+ <a href="Language.htm">Language.htm</a><br>
+ <a href="Make.htm">Make.htm</a><br>
+ <a href="News.htm">News.htm</a></td>
+ <td width="33%">
+ <a href="Psfiles.htm">Psfiles.htm</a><br>
+ <a href="#COPYING">COPYING</a><br>
+ <a href="thirdparty.htm">thirdparty.htm</a></td></tr>
+ </table>
+ </li>
+ <li>
+ <li>Primarily for developers:</li>
+ </li>
+ <li>
+ <table>
+ <tr colspan="3">
+ <td width="33%">
+ <a href="API.htm">API.htm</a><br>
+ <a href="C-style.htm">C-style.htm</a><br>
+ <a href="DLL.htm">DLL.htm</a><br>
+ <a href="Internal.htm">Internal.htm</a><br></td>
+ <td>
+ <a href="Lib.htm">Lib.htm</a><br>
+ <a href="Develop.htm">Develop.htm</a><br>
+ <a href="Drivers.htm">Drivers.htm</a></td>
+ <td>
+ <a href="Ps-style.htm">Ps-style.htm</a><br>
+ <a href="Release.htm">Release.htm</a><br>
+ <a href="Source.htm">Source.htm</a><br></td></tr>
+ </table>
+ </li>
+ </ul>
+ </li>
</ul>
<br>
<!-- [1.2 end table of contents] =========================================== -->
@@ -159,30 +145,30 @@ PostScript, and PDF reference documentation</a></li>
<ul>
-<li>how to <a href="Use.htm">use Ghostscript</a>. This includes both
-a quickstart introduction to the commandline version and more extensive
-reference material.</li>
+ <li>how to <a href="Use.htm">use Ghostscript</a>. This includes both
+ a quickstart introduction to the commandline version and more extensive
+ reference material.</li>
-<li>detailed information about <a href="Devices.htm">specific
-devices</a> that Ghostscript can use for output</li>
+ <li>detailed information about <a href="Devices.htm">specific
+ devices</a> that Ghostscript can use for output</li>
-<li>more detailed information about how to use Ghostscript under
-Unix with <code>lpr</code> <a href="Unix-lpr.htm">as a filter</a>
-for printing</li>
+ <li>more detailed information about how to use Ghostscript under
+ Unix with <code>lpr</code> <a href="Unix-lpr.htm">as a filter</a>
+ for printing</li>
-<li>for information about known problems or to report a new one,
-please visit <a href="http://bugs.ghostscript.com/">bugs.ghostscript.com</a>
-but remember that free versions of Ghostscript come with with
-<strong>NO WARRANTY</strong> and <strong>NO SUPPORT</strong></li>
+ <li>for information about known problems or to report a new one,
+ please visit <a href="http://bugs.ghostscript.com/">bugs.ghostscript.com</a>
+ but remember that free versions of Ghostscript come with with
+ <strong>NO WARRANTY</strong> and <strong>NO SUPPORT</strong></li>
</ul>
<h3><a name="Two_Ghostscripts"></a>GPL and commercial Ghostscript</h3>
<p>
-GPL Ghostscript, Artifex Ghostscript and AFPL Ghostscript are <a href="Commprod.htm">different releases</a>.</p>
+GPL Ghostscript, Artifex Ghostscript and AFPL Ghostscript are different releases.</p>
<ul>
-<li>additional information about <a href="COPYING">GPL Ghostscript
-releases</a> that is not relevant to commercial versions.</li>
+ <li>additional information about <a href="COPYING">GPL Ghostscript
+ releases</a> that is not relevant to commercial versions.</li>
</ul>
<p>
@@ -190,14 +176,14 @@ If you run into any questions, or if you are going to be using Ghostscript
extensively, you should at least skim, and probably eventually read:</p>
<ul>
-<li> about the <a href="Fonts.htm">fonts distributed with
-Ghostscript</a>, including how to add or replace fonts</li>
+ <li> about the <a href="Fonts.htm">fonts distributed with
+ Ghostscript</a>, including how to add or replace fonts</li>
-<li> a description of <a href="Language.htm">the Ghostscript language</a>,
-and its differences from the documented PostScript language</li>
+ <li> a description of <a href="Language.htm">the Ghostscript language</a>,
+ and its differences from the documented PostScript language</li>
-<li> about the <a href="Psfiles.htm">postscript files distributed with
-Ghostscript</a> (other than fonts)</li>
+ <li> about the <a href="Psfiles.htm">postscript files distributed with
+ Ghostscript</a> (other than fonts)</li>
</ul>
<h3><a name="Before_building"></a>Before building Ghostscript</h3>
@@ -207,8 +193,8 @@ If you are going to compile Ghostscript from source, rather than just use an exe
you got from somewhere, you may want to read:</p>
<ul>
-<li> <a href="Make.htm">how to build Ghostscript</a> and
-<a href="Install.htm">install it</a></li>
+ <li> <a href="Make.htm">how to build Ghostscript</a> and
+ <a href="Install.htm">install it</a></li>
</ul>
<hr>
@@ -217,14 +203,14 @@ If you are going to compile Ghostscript from source, rather than just use an exe
<p>
If you have already used Ghostscript, when you receive a new release you
- should begin by reading this file, then</p>
+ should begin by reading this file, then:</p>
<ul>
-<li> <a href="News.htm">News</a>, for incompatible changes and new
-features in the current release;</li>
+ <li> <a href="News.htm">News</a>, for incompatible changes and new
+ features in the current release;</li>
-<li> if you wish, History#.htm (currently <a
-href="History9.htm">History9.htm</a>), for changes in the current and earlier releases.</li>
+ <li> if you wish, History#.htm (currently <a
+ href="History9.htm">History9.htm</a>), for changes in the current and earlier releases.</li>
</ul>
<hr>
@@ -233,21 +219,22 @@ href="History9.htm">History9.htm</a>), for changes in the current and earlier re
<p>
If you are going to do any development on or with Ghostscript at all, you
-should at least look at</p>
+should at least look at:</p>
<ul>
-<li>the <a href="Develop.htm">roadmap documentation</a> for Ghostscript's
-source files and architecture</li>
+ <li>the <a href="Develop.htm">roadmap documentation</a> for Ghostscript's
+ source files and architecture</li>
</ul>
<p>
- If you are going to write a new driver for Ghostscript, you should read</p>
+ If you are going to write a new driver for Ghostscript, you should read:</p>
<ul>
-<li> the <a href="Source.htm">guide to the Ghostscript source code</a></li>
+ <li> the <a href="Source.htm">guide to the Ghostscript source code</a></li>
-<li> the interface between Ghostscript and <a href="Drivers.htm">device
-drivers</a></li>
+ <li> the interface between Ghostscript and <a href="Drivers.htm">device
+ drivers</a></li>
+</ul>
<p>
If you are considering distributing GPL Ghostscript in conjunction
@@ -255,8 +242,8 @@ with a commercial product, you should read the
<a href="COPYING">license</a> carefully, and you should also read</p>
<ul>
-<li> additional clarification of the circumstances under which Ghostscript
-can be distributed <a href="Commprod.htm">with a commercial product</a></li>
+ <li> additional clarification of the circumstances under which Ghostscript
+ can be distributed with a commercial product</li>
</ul>
<p>
@@ -265,26 +252,27 @@ If you intend to use Ghostscript in the form of a dynamic link library
under Linux, read</p>
<ul>
-<li> documentation on <a href="API.htm">Ghostscript Interpreter API</a></li>
+ <li> documentation on <a href="API.htm">Ghostscript Interpreter API</a></li>
</ul>
<p>
If you want to use Ghostscript as part of another program--as a callable
PostScript language interpreter--and not as a DLL or as a self-contained
-executable application, you should begin by reading</p>
+executable application, you should begin by reading:</p>
<ul>
-<li> the source file <code>imain.h</code>, the documented
-API for Ghostscript <em>not</em> as a DLL</li>
+ <li> the source file <code>imain.h</code>, the documented
+ API for Ghostscript <em>not</em> as a DLL</li>
</ul>
<p>
-or if you are going to use only the Ghostscript graphics library,</p>
+or if you are going to use only the Ghostscript graphics library:</p>
<ul>
-<li> about the structure of the <a href="Lib.htm">Ghostscript library</a>
-and its interfaces</li>
- </ul></ul>
+ <li> about the structure of the <a href="Lib.htm">Ghostscript library</a>
+ and its interfaces</li>
+
+</ul>
<hr>
@@ -365,12 +353,6 @@ change something in Ghostscript. For developers.</dd></dt>
</dl>
<dl>
-<dt><a name="Commprod"></a><a href="Commprod.htm"><b>Commprod.htm</b></a>
-<dd> The conditions under which Ghostscript may be distributed in a
-commercial context. See also the <a href="#COPYING">GNU Affero General Public License</a>.</dd></dt>
-</dl>
-
-<dl>
<dt><a name="DLL"></a><a href="DLL.htm"><b>DLL.htm</b></a>
<dd> On OS/2, MS Windows-16 and MS Windows-32 platforms, Ghostscript is
compiled as a dynamic link library (DLL). This describes how to use it.
@@ -418,14 +400,6 @@ both users and developers.</dd></dt>
<dd> The history of changes in all Ghostscript releases:
<blockquote>
<a href="History9.htm">History9.htm</a> for Ghostscript versions 9.n<br>
-<a href="History8.htm">History8.htm</a> for Ghostscript versions 8.n<br>
-<a href="History7.htm">History7.htm</a> for Ghostscript versions 7.n<br>
-<a href="History6.htm">History6.htm</a> for Ghostscript versions 6.n<br>
-<a href="History5.htm">History5.htm</a> for Ghostscript versions 5.n<br>
-<a href="History4.htm">History4.htm</a> for Ghostscript versions 4.n<br>
-<a href="History3.htm">History3.htm</a> for Ghostscript versions 3.n<br>
-<a href="History2.htm">History2.htm</a> for Ghostscript versions 2.n<br>
-<a href="History1.htm">History1.htm</a> for Ghostscript versions 1.n
</blockquote></dd></dt>
</dl>
@@ -556,7 +530,7 @@ command-line options.</dd></dt>
<hr>
<p>
-<small>Copyright &copy; 2000-2021 Artifex Software, Inc. All rights reserved.</small>
+<small>Copyright &copy; 2000-2022 Artifex Software, Inc. All rights reserved.</small>
<p>
This software is provided AS-IS with no warranty, either express or
@@ -569,40 +543,18 @@ or contact Artifex Software, Inc., 1305 Grant Avenue - Suite 200,
Novato, CA 94945, U.S.A., +1(415)492-9861, for further information.
<p>
-<small>Ghostscript version 9.55.0, 27 September 2021
-<!-- [3.0 end visible trailer] ============================================= -->
+<small>Ghostscript version 9.56.0, 29 March 2022
-<!--FINISH EDITING HERE-->
- </div>
- </div>
- </div>
- <div class="footer">
- <div class="row">
- <div class="col-7 footleft">
- <ul>
- <li><a href="https://artifex.com/contact-us/" target="blank">CONTACT US</a></li>
- <li><a href="https://artifex.com/about-us/" target="blank">ABOUT</a></li>
- <li><a href="https://ghostscript.com/security.html">SECURITY</a></li>
- </ul>
- </div>
- <div class="col-1 footcenter">
- <ul>
- <li><a href="https://artifex.com/support/" target="blank">SUPPORT</a></li>
- <li><a href="https://artifex.com/blog/artifex/" target="blank">BLOG</a></li>
- <li><a href="https://artifex.com/privacy-policy/" target="blank">PRIVACY</a></li>
- </ul>
- </div>
- <div class="col-ft-3 footright"><img src="images/Artifex_logo.png" width="194" height="40" alt=""/> <br>
- © Copyright 2019-2021 Artifex Software, Inc. <br>
- All rights reserved.
- </div>
- </div>
- </div>
-
- <script src="http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>
- <script src="index.js"></script>
+<!-- [3.0 end visible trailer] ============================================= -->
+
+<!--FINISH EDITING HERE-->
+ </div><!-- close inner -->
+ </div><!-- close outer -->
+ </article>
+ </main>
+ <script src="site.js"></script>
</body>
</html>
diff --git a/doc/Release.htm b/doc/Release.htm
index bc53b7e0..c162d047 100644
--- a/doc/Release.htm
+++ b/doc/Release.htm
@@ -1,87 +1,60 @@
<!doctype html>
-<html>
+<html lang="en">
<head>
-<meta charset="UTF-8">
-<meta name="viewport" content="width=device-width, initial-scale=1.0">
-<link href="https://fonts.googleapis.com/css?family=Source+Sans+Pro" rel="stylesheet">
-<link rel="shortcut icon" type="image/png" href="../../images/favicon.png">
-<title>How to Prepare a Ghostscript Release</title>
- <!-- Originally: make.txt -->
-<link href="style.css" rel="stylesheet" type="text/css">
-<link href="gs-style.css" rel="stylesheet" type="text/css">
+ <meta http-equiv="content-type" content="text/html; charset=utf-8">
+ <meta name="viewport" content="user-scalable=yes, initial-scale=1, width=device-width">
+ <link href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:200,200i,300,300i,400,400i,600,600i,700,700i,900,900i" rel="stylesheet">
+ <link rel="shortcut icon" href="images/favicon.svg">
+ <title>How to Prepare a Ghostscript Release</title>
+ <link href="default.css" rel="stylesheet" type="text/css">
</head>
<body>
+ <header><div class="title"><a href="index.html"><h1 aria-label="title">Ghostscript documentation</h1><h2 aria-label="version"></h2></a></div><a href="Search.htm" aria-label="Search" id="searchSite"><div class="search"></div></a></header>
+ <main>
+ <article>
+ <div class="outer">
- <div class="header">
- <div class="row">
- <div class="col-lt-6 logo"><a href="https://www.ghostscript.com/"><img src="images/ghostscript_logo.png" width="108" height="119" alt=""></a></div>
- <div class="col-6"><div class="row"><div class="artifexlogo"><a href="https://artifex.com" target="_blank"><img src="images/Artifex_logo.png" width="194" height="40" alt=""></a></div>
- <div class="col-12"><div class="button button1"><a href="https://artifex.com/contact-us/" title="Contact Us" target="_blank">Contact Us</a></div>
- <div class="button button2 hidden-xs"><a href="https://www.ghostscript.com/download.html" title="Download">Download</a></div></div></div>
- </div>
- </div>
- </div>
-
- <div class="banner">
- <div class="row">
- <div class="col-12">How to Prepare a Ghostscript Release</div>
- </div>
- </div>
-
- <div class="main">
- <div class="row">
- <div id="sidebar">
- <div class="sidebar-item"></div>
- <div class="col-2 leftnav">
-<ul>
- <li><a href="https://www.ghostscript.com/">Home</a></li>
- <li><a href="https://www.ghostscript.com/license.html">Licensing</a></li>
- <li><a href="https://www.ghostscript.com/releases.html">Releases</a></li>
- <li><a href="https://www.ghostscript.com/documentation.html" title="Documentation">Documentation</a></li>
- <li><a href="https://www.ghostscript.com/download.html" title="Download">Download</a></li>
- <li><a href="https://www.ghostscript.com/performance.html" title="Performance">Performance</a></li>
- <li><a href="http://jbig2dec.com/" title="jbig2dec">jbig2dec</a></li>
- <li><a href="http://git.ghostscript.com/?p=ghostpdl.git;a=summary">Source</a></li>
- <li><a href="http://bugs.ghostscript.com/">Bugs</a></li>
- <li><a href="https://www.ghostscript.com/faq.html" title="FAQ">FAQ</a></li>
- </ul>
- </div>
- </div>
- <div class="col-10 page">
-
+ <div class="inner">
<!--START EDITING HERE-->
-<h2>Table of contents</h2>
+<h1>How to Prepare a Ghostscript Release</h1>
-<blockquote><ul>
-<li><a href="#Introduction">Introduction</a>
-<li><a href="#Servers">Servers</a>
-<ul>
-<li><a href="#Development_files">Development sources and bug reports</a>
-<li><a href="#Distribution">Distribution</a>
-</ul>
-<li><a href="#Release_numbering">Release numbering</a>
-<li><a href="#Making_distributions">Making distributions</a>
-<ul>
-<li><a href="#Preparing_source">Preparing the source code</a>
-<li><a href="#Testing">Testing</a>
-<li><a href="#Changelog">Updating the Changelog</a>
-<li><a href="#Making_Tarballs">Making the source distribution</a>
-<li><a href="#Testing_on_Windows">Testing on Windows</a>
-<li><a href="#Windows_distribution">Building the Windows distribution</a>
-<li><a href="#Finishing_up">Finishing up</a>
-<li><a href="#Beta_distributions">Beta distributions</a>
-<li><a href="#Public_releases">Public releases</a>
-</ul>
-<li><a href="#After_releasing">After releasing</a>
-<li><a href="#GPL_releases">GPL Ghostscript releases</a>
-<ul>
-<li><a href="#GPL_code">AGPL code</a>
-<li><a href="#GPL_after_releasing">After releasing (AGPL)</a>
+<h2><a name="toc"></a>Table of contents</h2>
+<ul class="toc">
+ <li><a href="#Introduction">Introduction</a></li>
+ <li><a href="#Servers">Servers</a></li>
+ <li>
+ <ul>
+ <li><a href="#Development_files">Development sources and bug reports</a></li>
+ <li><a href="#Distribution">Distribution</a></li>
+ </ul>
+ </li>
+ <li><a href="#Release_numbering">Release numbering</a></li>
+ <li><a href="#Making_distributions">Making distributions</a></li>
+ <li>
+ <ul>
+ <li><a href="#Preparing_source">Preparing the source code</a></li>
+ <li><a href="#Testing">Testing</a></li>
+ <li><a href="#Changelog">Updating the Changelog</a></li>
+ <li><a href="#Making_Tarballs">Making the source distribution</a></li>
+ <li><a href="#Testing_on_Windows">Testing on Windows</a></li>
+ <li><a href="#Windows_distribution">Building the Windows distribution</a></li>
+ <li><a href="#Finishing_up">Finishing up</a></li>
+ <li><a href="#Beta_distributions">Beta distributions</a></li>
+ <li><a href="#Public_releases">Public releases</a></li>
+ </ul>
+ </li>
+ <li><a href="#After_releasing">After releasing</a></li>
+ <li><a href="#GPL_releases">GPL Ghostscript releases</a></li>
+ <li>
+ <ul>
+ <li><a href="#GPL_code">AGPL code</a></li>
+ <li><a href="#GPL_after_releasing">After releasing (AGPL)</a></li>
+ </ul>
+ </li>
+ <li><a href="#Fonts">Fonts</a></li>
</ul>
-<li><a href="#Fonts">Fonts</a>
-</ul></blockquote>
<!-- [1.2 end table of contents] =========================================== -->
@@ -743,13 +716,13 @@ class="offsite">http://ghostscript.com/download/</a>
Do the steps for distributions in general.
<ul>
- <li>MS Windows source and executables:</li>
+ <li>MS Windows source and executables:
<blockquote><pre>
<code>gs###w32.exe</code>
<code>gs###w64.exe</code>
</pre></blockquote>
-
+</li>
<li>Third-party libraries, as links (upload these if not installed), where
<code>&#36;&#36;&#36;</code> et al. refer to the version number of the library, which
should be the latest compatible release of the library and should be
@@ -770,13 +743,13 @@ the original name of the upstream file.</p>
<ul>
<li>Fonts, where <code>&#36;.&#36;&#36;</code> refers to the most recent version
-number of the fonts:</li>
+number of the fonts:
<blockquote><pre>
<code>ghostscript-fonts-other-&#36;.&#36;.tar.gz</code> -&gt; <code>../fonts/ghostscript-fonts-other-&#36;.&#36;.tar.gz</code>
<code>ghostscript-fonts-std-&#36;.&#36;.tar.gz</code> -&gt; <code>../fonts/ghostscript-fonts-std-&#36;.&#36;.tar.gz</code>
</pre></blockquote>
-
+</li>
</ul>
<p>
@@ -822,7 +795,7 @@ These are included in the Ghostscript release archive.
<hr>
<p>
-<small>Copyright &copy; 2000-2021 Artifex Software, Inc. All rights reserved.</small>
+<small>Copyright &copy; 2000-2022 Artifex Software, Inc. All rights reserved.</small>
<p>
This software is provided AS-IS with no warranty, either express or
@@ -835,40 +808,17 @@ or contact Artifex Software, Inc., 1305 Grant Avenue - Suite 200,
Novato, CA 94945, U.S.A., +1(415)492-9861, for further information.
<p>
-<small>Ghostscript version 9.55.0, 27 September 2021
+<small>Ghostscript version 9.56.0, 29 March 2022
<!-- [3.0 end visible trailer] ============================================= -->
-<!--FINISH EDITING HERE-->
- </div>
- </div>
- </div>
- <div class="footer">
- <div class="row">
- <div class="col-7 footleft">
- <ul>
- <li><a href="https://artifex.com/contact-us/" target="blank">CONTACT US</a></li>
- <li><a href="https://artifex.com/about-us/" target="blank">ABOUT</a></li>
- <li><a href="https://ghostscript.com/security.html">SECURITY</a></li>
- </ul>
- </div>
- <div class="col-1 footcenter">
- <ul>
- <li><a href="https://artifex.com/support/" target="blank">SUPPORT</a></li>
- <li><a href="https://artifex.com/blog/artifex/" target="blank">BLOG</a></li>
- <li><a href="https://artifex.com/privacy-policy/" target="blank">PRIVACY</a></li>
- </ul>
- </div>
- <div class="col-ft-3 footright"><img src="images/Artifex_logo.png" width="194" height="40" alt=""/> <br>
- © Copyright 2019-2021 Artifex Software, Inc. <br>
- All rights reserved.
- </div>
- </div>
- </div>
-
- <script src="http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>
- <script src="index.js"></script>
+<!--FINISH EDITING HERE-->
+ </div><!-- close inner -->
+ </div><!-- close outer -->
+ </article>
+ </main>
+ <script src="site.js"></script>
</body>
</html>
diff --git a/doc/SavedPages.htm b/doc/SavedPages.htm
index 2d9ffa38..e64f4163 100644
--- a/doc/SavedPages.htm
+++ b/doc/SavedPages.htm
@@ -1,62 +1,30 @@
<!doctype html>
-<html>
+<html lang="en">
<head>
-<meta charset="UTF-8">
-<meta name="viewport" content="width=device-width, initial-scale=1.0">
-<link href="https://fonts.googleapis.com/css?family=Source+Sans+Pro" rel="stylesheet">
-<link rel="shortcut icon" type="image/png" href="../../images/favicon.png">
-<title>Ghostscript: Sample CMYK 32-bit Device that Supports Post Rendering Processing</title>
-<link href="style.css" rel="stylesheet" type="text/css">
-<link href="gs-style.css" rel="stylesheet" type="text/css">
+ <meta http-equiv="content-type" content="text/html; charset=utf-8">
+ <meta name="viewport" content="user-scalable=yes, initial-scale=1, width=device-width">
+ <link href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:200,200i,300,300i,400,400i,600,600i,700,700i,900,900i" rel="stylesheet">
+ <link rel="shortcut icon" href="images/favicon.svg">
+ <title>Using Saved Pages ( --saved-pages=... )</title>
+ <link href="default.css" rel="stylesheet" type="text/css">
</head>
<body>
+ <header><div class="title"><a href="index.html"><h1 aria-label="title">Ghostscript documentation</h1><h2 aria-label="version"></h2></a></div><a href="Search.htm" aria-label="Search" id="searchSite"><div class="search"></div></a></header>
+ <main>
+ <article>
+ <div class="outer">
- <div class="header">
- <div class="row">
- <div class="col-lt-6 logo"><a href="https://www.ghostscript.com/"><img src="images/ghostscript_logo.png" width="108" height="119" alt=""></a></div>
- <div class="col-6"><div class="row"><div class="artifexlogo"><a href="https://artifex.com" target="_blank"><img src="images/Artifex_logo.png" width="194" height="40" alt=""></a></div>
- <div class="col-12"><div class="button button1"><a href="https://artifex.com/contact-us/" title="Contact Us" target="_blank">Contact Us</a></div>
- <div class="button button2 hidden-xs"><a href="https://www.ghostscript.com/download.html" title="Download">Download</a></div></div></div>
- </div>
- </div>
- </div>
-
- <div class="banner">
- <div class="row">
- <div class="col-12"> Using Saved Pages ( --saved-pages=... )</div>
- </div>
- </div>
-
- <div class="main">
- <div class="row">
- <div id="sidebar">
- <div class="sidebar-item"></div>
- <div class="col-2 leftnav">
-<ul>
- <li><a href="https://www.ghostscript.com/">Home</a></li>
- <li><a href="https://www.ghostscript.com/license.html">Licensing</a></li>
- <li><a href="https://www.ghostscript.com/releases.html">Releases</a></li>
- <li><a href="https://www.ghostscript.com/documentation.html" title="Documentation">Documentation</a></li>
- <li><a href="https://www.ghostscript.com/download.html" title="Download">Download</a></li>
- <li><a href="https://www.ghostscript.com/performance.html" title="Performance">Performance</a></li>
- <li><a href="http://jbig2dec.com/" title="jbig2dec">jbig2dec</a></li>
- <li><a href="http://git.ghostscript.com/?p=ghostpdl.git;a=summary">Source</a></li>
- <li><a href="http://bugs.ghostscript.com/">Bugs</a></li>
- <li><a href="https://www.ghostscript.com/faq.html" title="FAQ">FAQ</a></li>
- </ul>
- </div>
- </div>
- <div class="col-10 page">
-
+ <div class="inner">
<!--START EDITING HERE-->
-<h2>Table of contents</h2>
+<h1>Using Saved Pages ( --saved-pages=... )</h1>
-<ul>
-<li><a href="#Keywords">Saved Pages control keywords,</a>
-<li><a href="#Print_Keywords">Printing saved pages.</a>
-<li><a href="#Examples">Examples.</a>
+<h2><a name="toc"></a>Table of contents</h2>
+<ul class="toc">
+ <li><a href="#Keywords">Saved Pages control keywords,</a></li>
+ <li><a href="#Print_Keywords">Printing saved pages.</a></li>
+ <li><a href="#Examples">Examples.</a></li>
</ul>
<!-- [1.2 end table of contents] =========================================== -->
@@ -290,7 +258,7 @@ Print two collated copies of the first file, followed by 5 copies of the second
<hr>
<p>
-<small>Copyright &copy; 2013-2021 Artifex Software, Inc. All rights
+<small>Copyright &copy; 2013-2022 Artifex Software, Inc. All rights
reserved.</small>
<p>
@@ -307,40 +275,15 @@ or contact Artifex Software, Inc., 1305 Grant Avenue - Suite 200,
Novato, CA 94945, U.S.A., +1(415)492-9861.
<p>
-<small>Ghostscript version 9.55.0, 27 September 2021
+<small>Ghostscript version 9.56.0, 29 March 2022
<!-- [3.0 end visible trailer] ============================================= -->
<!--FINISH EDITING HERE-->
-
- </div>
- </div>
- </div>
-
- <div class="footer">
- <div class="row">
- <div class="col-7 footleft">
- <ul>
- <li><a href="https://artifex.com/contact-us/" target="blank">CONTACT US</a></li>
- <li><a href="https://artifex.com/about-us/" target="blank">ABOUT</a></li>
- <li><a href="https://ghostscript.com/security.html">SECURITY</a></li>
- </ul>
- </div>
- <div class="col-1 footcenter">
- <ul>
- <li><a href="https://artifex.com/support/" target="blank">SUPPORT</a></li>
- <li><a href="https://artifex.com/blog/artifex/" target="blank">BLOG</a></li>
- <li><a href="https://artifex.com/privacy-policy/" target="blank">PRIVACY</a></li>
- </ul>
- </div>
- <div class="col-ft-3 footright"><img src="images/Artifex_logo.png" width="194" height="40" alt=""/> <br>
- © Copyright 2019-2021 Artifex Software, Inc. <br>
- All rights reserved.
- </div>
- </div>
- </div>
-
- <script src="http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>
- <script src="index.js"></script>
+ </div><!-- close inner -->
+ </div><!-- close outer -->
+ </article>
+ </main>
+ <script src="site.js"></script>
</body>
</html>
diff --git a/doc/Search.htm b/doc/Search.htm
new file mode 100644
index 00000000..a3bc3638
--- /dev/null
+++ b/doc/Search.htm
@@ -0,0 +1,188 @@
+<!doctype html>
+<html lang="en">
+<head>
+ <meta http-equiv="content-type" content="text/html; charset=utf-8">
+ <meta name="viewport" content="user-scalable=yes, initial-scale=1, width=device-width">
+ <link href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:200,200i,300,300i,400,400i,600,600i,700,700i,900,900i" rel="stylesheet">
+ <link rel="shortcut icon" href="images/favicon.svg">
+ <title>Search Ghostscript.com</title>
+ <!-- note: we can't use default.css as some of the CSS there conflicts with Google's injected CSS -->
+ <style>
+
+ * {
+ -webkit-tap-highlight-color: rgba(0,0,0,0);
+ -moz-box-sizing: border-box;
+ -webkit-box-sizing: border-box;
+ box-sizing: border-box;
+ }
+
+ html, body, div, span, applet, object, iframe,
+ h1, h2, h3, h4, h5, h6, p, blockquote, pre,
+ a, abbr, acronym, address, big, cite, code,
+ del, dfn, em, img, ins, kbd, q, s, samp,
+ small, strike, strong, sub, tt, var,
+ b, u, i, center,
+ dl, dt, dd, ol, ul, li,
+ fieldset, form, label, legend,
+ table, caption, tbody, tfoot, thead, tr, th, td,
+ article, aside, canvas, details, embed,
+ figure, figcaption, footer, header, hgroup,
+ menu, nav, output, ruby, section, summary,
+ time, mark, audio, video {
+ margin: 0;
+ padding: 0;
+ border: 0;
+ font-size: 100%;
+ font: inherit;
+ vertical-align: baseline;
+ }
+
+ /* HTML5 display-role reset for older browsers */
+ article, aside, details, figcaption, figure,
+ footer, header, hgroup, menu, nav, section {
+ display: block;
+ }
+
+ html, body {
+ position: relative;
+ height: 100%;
+ }
+
+ body {
+ -webkit-touch-callout: none; /* prevent callout to copy image, etc when tap to hold */
+ -webkit-text-size-adjust: none; /* prevent webkit from resizing text to fit */
+ -webkit-user-select: text; /* prevent copy paste, to allow, change 'none' to 'text' */
+ color:black;
+ background:#ffffff;
+ font-family:"Source Sans Pro", sans-serif; /* 200 = ExtraLight, 300 = Light, 400 = regular, 600 = semi-bold, 700 = bold, 900 = black */
+ font-weight:400;
+ font-size:16px;
+ margin:0px;
+ padding:0px;
+ }
+
+ main .outer {
+ max-width: 1280px;
+ margin: 0px auto 100px;
+ padding-top: 50px;
+ }
+
+ main .inner {
+ padding: 20px;
+ }
+
+ header {
+ position: fixed;
+ width: 100%;
+ height:50px;
+ background: #0075cf url(language-bindings/images/ghostscript.png) 10px center no-repeat;
+ background-size: 30px 30px;
+ color: #fff;
+ line-height: 50px;
+ text-indent: 50px;
+ z-index: 1;
+ display: flex;
+ justify-content: space-between;
+ }
+
+ header .search {
+ width: 50px;
+ height:50px;
+ background: #0075cf url(images/icon-search.png) center center no-repeat;
+ background-size: 50px 50px;
+ }
+
+ a {
+ text-decoration: none;
+ color: #0075cf;
+ }
+
+ i {
+ font-style: italic;
+ }
+
+ p {
+ line-height: 24px;
+ }
+
+ header h1 {
+ font-size:24px;
+ font-weight:600;
+ color: #fff;
+ text-decoration: none;
+ }
+
+ header a h1 {
+ color: #fff;
+ }
+
+ h1 {
+ font-size:40px;
+ font-weight:600;
+ }
+
+ /* Dark mode */
+ @media (prefers-color-scheme: dark) {
+
+ body {
+ background-color: #000;
+ color: white;
+ }
+
+ a {
+ text-decoration: none;
+ color: #289df6;
+ }
+
+ blockquote {
+ border: 1px solid #efefef;
+ }
+
+ }
+
+ </style>
+
+ <script async src="https://cse.google.com/cse.js?cx=056ea92e7af6e50cc"></script>
+
+</head>
+
+<body>
+ <header><div class="title"><a href="index.html"><h1 aria-label="title">Ghostscript documentation</h1><h2 aria-label="version"></h2></a></div><a href="Search.htm" aria-label="Search" id="searchSite"><div class="search"></div></a></header>
+ <main>
+ <article>
+ <div class="outer">
+
+ <div class="inner">
+<!--START EDITING HERE-->
+
+<h1>Search documentation</h1>
+
+
+<div class="gcse-search"></div>
+<p>
+<small>Copyright &copy; 2000-2022 Artifex Software, Inc. All rights reserved.</small>
+
+<p>
+This software is provided AS-IS with no warranty, either express or
+implied.
+
+This software is distributed under license and may not be copied, modified
+or distributed except as expressly authorized under the terms of that
+license. Refer to licensing information at <a href="https://www.artifex.com">https://www.artifex.com</a>
+or contact Artifex Software, Inc., 1305 Grant Avenue - Suite 200,
+Novato, CA 94945, U.S.A., +1(415)492-9861, for further information.
+
+<p>
+<small>Ghostscript version 9.56.0, 29 March 2022
+
+<!-- [3.0 end visible trailer] ============================================= -->
+
+
+<!--FINISH EDITING HERE-->
+ </div><!-- close inner -->
+ </div><!-- close outer -->
+ </article>
+ </main>
+ <script src="site.js"></script>
+</body>
+</html>
diff --git a/doc/Source.htm b/doc/Source.htm
index bf1c1887..4733ac5a 100644
--- a/doc/Source.htm
+++ b/doc/Source.htm
@@ -1,70 +1,39 @@
<!doctype html>
-<html>
+<html lang="en">
<head>
-<meta charset="UTF-8">
-<meta name="viewport" content="width=device-width, initial-scale=1.0">
-<link href="https://fonts.googleapis.com/css?family=Source+Sans+Pro" rel="stylesheet">
-<link rel="shortcut icon" type="image/png" href="../../images/favicon.png">
-<title>Guide to Ghostscript Source Code</title>
- <!-- Originally: source.txt -->
-<link href="style.css" rel="stylesheet" type="text/css">
-<link href="gs-style.css" rel="stylesheet" type="text/css">
+ <meta http-equiv="content-type" content="text/html; charset=utf-8">
+ <meta name="viewport" content="user-scalable=yes, initial-scale=1, width=device-width">
+ <link href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:200,200i,300,300i,400,400i,600,600i,700,700i,900,900i" rel="stylesheet">
+ <link rel="shortcut icon" href="images/favicon.svg">
+ <title>Guide to Ghostscript Source Code</title>
+ <link href="default.css" rel="stylesheet" type="text/css">
</head>
<body>
+ <header><div class="title"><a href="index.html"><h1 aria-label="title">Ghostscript documentation</h1><h2 aria-label="version"></h2></a></div><a href="Search.htm" aria-label="Search" id="searchSite"><div class="search"></div></a></header>
+ <main>
+ <article>
+ <div class="outer">
- <div class="header">
- <div class="row">
- <div class="col-lt-6 logo"><a href="https://www.ghostscript.com/"><img src="images/ghostscript_logo.png" width="108" height="119" alt=""></a></div>
- <div class="col-6"><div class="row"><div class="artifexlogo"><a href="https://artifex.com" target="_blank"><img src="images/Artifex_logo.png" width="194" height="40" alt=""></a></div>
- <div class="col-12"><div class="button button1"><a href="https://artifex.com/contact-us/" title="Contact Us" target="_blank">Contact Us</a></div>
- <div class="button button2 hidden-xs"><a href="https://www.ghostscript.com/download.html" title="Download">Download</a></div></div></div>
- </div>
- </div>
- </div>
-
- <div class="banner">
- <div class="row">
- <div class="col-12">Guide to Ghostscript Source Code</div>
- </div>
- </div>
-
- <div class="main">
- <div class="row">
- <div id="sidebar">
- <div class="sidebar-item"></div>
- <div class="col-2 leftnav">
-<ul>
- <li><a href="https://www.ghostscript.com/">Home</a></li>
- <li><a href="https://www.ghostscript.com/license.html">Licensing</a></li>
- <li><a href="https://www.ghostscript.com/releases.html">Releases</a></li>
- <li><a href="https://www.ghostscript.com/documentation.html" title="Documentation">Documentation</a></li>
- <li><a href="https://www.ghostscript.com/download.html" title="Download">Download</a></li>
- <li><a href="https://www.ghostscript.com/performance.html" title="Performance">Performance</a></li>
- <li><a href="http://jbig2dec.com/" title="jbig2dec">jbig2dec</a></li>
- <li><a href="http://git.ghostscript.com/?p=ghostpdl.git;a=summary">Source</a></li>
- <li><a href="http://bugs.ghostscript.com/">Bugs</a></li>
- <li><a href="https://www.ghostscript.com/faq.html" title="FAQ">FAQ</a></li>
- </ul>
- </div>
- </div>
- <div class="col-10 page">
-
+ <div class="inner">
<!--START EDITING HERE-->
-<h2>Table of contents</h2>
+<h1>Guide to Ghostscript Source Code</h1>
-<blockquote><ul>
-<li><a href="#Overview">Conceptual overview</a>
-<li><a href="#PostScript_interpreter">PostScript Interpreter</a>
-<li><a href="#PDF_interpreter">PDF interpreter</a>
-<li><a href="#Graphics_library">Graphics library</a>
-<ul>
-<li><a href="#Drivers">Device drivers</a>
-<li><a href="#Platform_specific_code">Platform-specific code</a>
+<h2><a name="toc"></a>Table of contents</h2>
+<ul class="toc">
+ <li><a href="#Overview">Conceptual overview</a></li>
+ <li><a href="#PostScript_interpreter">PostScript Interpreter</a></li>
+ <li><a href="#PDF_interpreter">PDF interpreter</a></li>
+ <li><a href="#Graphics_library">Graphics library</a></li>
+ <li>
+ <ul>
+ <li><a href="#Drivers">Device drivers</a></li>
+ <li><a href="#Platform_specific_code">Platform-specific code</a></li>
+ </ul>
+ </li>
+ <li><a href="#Makefiles">Makefiles</a></li>
</ul>
-<li><a href="#Makefiles">Makefiles</a>
-</ul></blockquote>
<!-- [1.2 end table of contents] =========================================== -->
@@ -91,61 +60,61 @@ install Ghostscript</a>.
The Ghostscript source code is divided conceptually as follows:
<blockquote><table>
-<tr> <a href="#PostScript_interpreter"></a>
- <th align="left" colspan="4">PostScript interpreter:</th>
+<tr>
+ <th align="left" colspan="2">PostScript interpreter:</th>
</tr>
<tr>
- <td>&nbsp;&nbsp;&nbsp;&nbsp;</td>
+
<td>PostScript operators</td>
- <td>&nbsp;&nbsp;&nbsp;&nbsp;</td>
+
<td><code>z</code>*<code>.h</code> and <code>z</code>*<code>.c</code></td>
</tr>
<tr>
- <td>&nbsp;</td>
+
<td>Other interpreter code</td>
- <td>&nbsp;</td>
+
<td><code>i</code>*<code>.h</code> and <code>i</code>*<code>.c</code></td>
</tr>
<tr>
- <td>&nbsp;</td>
+
<td>PostScript code</td>
- <td>&nbsp;</td>
+
<td><code>gs_</code>*<code>.ps</code></td>
</tr>
-<tr> <a href="#PDF_interpreter"></a>
- <th align="left" colspan="4">PDF interpreter:</th>
+<tr>
+ <th align="left" colspan="2">PDF interpreter:</th>
</tr>
<tr>
- <td>&nbsp;</td>
+
<td>PostScript code</td>
- <td>&nbsp;</td>
+
<td><code>pdf_</code>*<code>.ps</code></td>
</tr>
-<tr> <a href="#Graphics_library"></a>
- <th align="left" colspan="4">Graphics library:</th>
+<tr>
+ <th align="left" colspan="2">Graphics library:</th>
</tr>
<tr>
- <td>&nbsp;</td>
+
<td>Main library code</td>
- <td>&nbsp;</td>
+
<td><code>g</code>*<code>.h</code> and <code>g</code>*<code>.c</code></td>
</tr>
<tr>
- <td>&nbsp;</td>
+
<td>Streams</td>
- <td>&nbsp;</td>
+
<td><code>s</code>*<code>.h</code> and <code>s</code>*<code>.c</code></td>
</tr>
<tr>
- <td>&nbsp;</td>
+
<td><a href="#Drivers">Device drivers</a></td>
- <td>&nbsp;</td>
+
<td><code>gdev</code>*<code>.h</code> and <code>gdev</code>*<code>.c</code></td>
</tr>
<tr>
- <td>&nbsp;</td>
+
<td><a href="#Platform_specific_code">Platform-specific code</a></td>
- <td>&nbsp;</td>
+
<td><code>gp</code>*<code>.h</code> and <code>gp</code>*<code>.c</code></td>
</tr>
</table></blockquote>
@@ -277,71 +246,61 @@ The platform-specific implementations of the
<blockquote><table>
<tr>
- <th colspan="3">Platform-specific interfaces</th>
+ <th colspan="2">Platform-specific interfaces</th>
</tr>
<tr>
<th align="left">Routine</th>
- <th>&nbsp;&nbsp;&nbsp;&nbsp;</th>
<th align="left">Platform</th>
</tr>
<tr>
<td><code>gp_dosfb.c</code></td>
- <td>&nbsp;</td>
<td>DOS</td>
</tr>
<tr>
<td><code>gp_dosfs.c</code></td>
- <td>&nbsp;</td>
<td>DOS and MS Windows</td>
</tr>
<tr>
<td><code>gp_itbc.c</code></td>
- <td>&nbsp;</td>
<td>DOS, Borland compilers</td>
</tr>
<tr>
<td><code>gp_iwatc.c</code></td>
- <td>&nbsp;</td>
<td>DOS, Watcom or Microsoft compiler</td>
</tr>
<tr>
<td><code>gp_msdos.c</code></td>
- <td>&nbsp;</td>
<td>DOS and MS Windows</td>
</tr>
<tr>
<td><code>gp_ntfs.c</code></td>
- <td>&nbsp;</td>
<td>MS Windows NT</td>
</tr>
<tr>
<td><code>gp_os2.c</code></td>
- <td>&nbsp;</td>
<td>OS/2</td>
</tr>
<tr>
<td><code>gp_os9.c</code></td>
- <td>&nbsp;</td>
<td>OS-9</td>
</tr>
<tr>
<td><code>gp_unifs.c</code></td>
- <td>&nbsp;</td>
<td>Unix, OS-9, and QNX</td>
</tr>
<tr>
<td><code>gp_unix.c</code></td>
- <td>&nbsp;</td>
+
<td>Unix and QNX</td>
</tr>
<tr>
<td><code>gp_vms.c</code></td>
- <td>&nbsp;</td>
+
<td>VMS</td>
</tr>
<tr>
<td><code>gp_win32.c</code></td>
- <td>&nbsp;</td>
+
<td>MS Windows NT</td>
</tr>
</table></blockquote>
@@ -442,7 +401,7 @@ and so on.
<hr>
<p>
-<small>Copyright &copy; 2000-2021 Artifex Software, Inc. All rights reserved.</small>
+<small>Copyright &copy; 2000-2022 Artifex Software, Inc. All rights reserved.</small>
<p>
This software is provided AS-IS with no warranty, either express or
@@ -455,41 +414,17 @@ or contact Artifex Software, Inc., 1305 Grant Avenue - Suite 200,
Novato, CA 94945, U.S.A., +1(415)492-9861, for further information.
<p>
-<small>Ghostscript version 9.55.0, 27 September 2021
+<small>Ghostscript version 9.56.0, 29 March 2022
<!-- [3.0 end visible trailer] ============================================= -->
-<!--FINISH EDITING HERE-->
-
- </div>
- </div>
- </div>
- <div class="footer">
- <div class="row">
- <div class="col-7 footleft">
- <ul>
- <li><a href="https://artifex.com/contact-us/" target="blank">CONTACT US</a></li>
- <li><a href="https://artifex.com/about-us/" target="blank">ABOUT</a></li>
- <li><a href="https://ghostscript.com/security.html">SECURITY</a></li>
- </ul>
- </div>
- <div class="col-1 footcenter">
- <ul>
- <li><a href="https://artifex.com/support/" target="blank">SUPPORT</a></li>
- <li><a href="https://artifex.com/blog/artifex/" target="blank">BLOG</a></li>
- <li><a href="https://artifex.com/privacy-policy/" target="blank">PRIVACY</a></li>
- </ul>
- </div>
- <div class="col-ft-3 footright"><img src="images/Artifex_logo.png" width="194" height="40" alt=""/> <br>
- © Copyright 2019-2021 Artifex Software, Inc. <br>
- All rights reserved.
- </div>
- </div>
- </div>
-
- <script src="http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>
- <script src="index.js"></script>
+<!--FINISH EDITING HERE-->
+ </div><!-- close inner -->
+ </div><!-- close outer -->
+ </article>
+ </main>
+ <script src="site.js"></script>
</body>
</html>
diff --git a/doc/Unix-lpr.htm b/doc/Unix-lpr.htm
index bd0fa0b3..ca1a7e87 100644
--- a/doc/Unix-lpr.htm
+++ b/doc/Unix-lpr.htm
@@ -1,79 +1,50 @@
<!doctype html>
-<html>
+<html lang="en">
<head>
-<meta charset="UTF-8">
-<meta name="viewport" content="width=device-width, initial-scale=1.0">
-<link href="https://fonts.googleapis.com/css?family=Source+Sans+Pro" rel="stylesheet">
-<link rel="shortcut icon" type="image/png" href="../../images/favicon.png">
-<title>Setting Up a Unix 1pr Filter for Ghostscript</title>
- <!-- Originally: unix-lpr.txt -->
-<link href="style.css" rel="stylesheet" type="text/css">
-<link href="gs-style.css" rel="stylesheet" type="text/css">
+ <meta http-equiv="content-type" content="text/html; charset=utf-8">
+ <meta name="viewport" content="user-scalable=yes, initial-scale=1, width=device-width">
+ <link href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:200,200i,300,300i,400,400i,600,600i,700,700i,900,900i" rel="stylesheet">
+ <link rel="shortcut icon" href="images/favicon.svg">
+ <title>Setting Up a Unix 1pr Filter for Ghostscript</title>
+ <link href="default.css" rel="stylesheet" type="text/css">
</head>
<body>
+ <header><div class="title"><a href="index.html"><h1 aria-label="title">Ghostscript documentation</h1><h2 aria-label="version"></h2></a></div><a href="Search.htm" aria-label="Search" id="searchSite"><div class="search"></div></a></header>
+ <main>
+ <article>
+ <div class="outer">
- <div class="header">
- <div class="row">
- <div class="col-lt-6 logo"><a href="https://www.ghostscript.com/"><img src="images/ghostscript_logo.png" width="108" height="119" alt=""></a></div>
- <div class="col-6"><div class="row"><div class="artifexlogo"><a href="https://artifex.com" target="_blank"><img src="images/Artifex_logo.png" width="194" height="40" alt=""></a></div>
- <div class="col-12"><div class="button button1"><a href="https://artifex.com/contact-us/" title="Contact Us" target="_blank">Contact Us</a></div>
- <div class="button button2 hidden-xs"><a href="https://www.ghostscript.com/download.html" title="Download">Download</a></div></div></div>
- </div>
- </div>
- </div>
-
- <div class="banner">
- <div class="row">
- <div class="col-12">Setting Up a Unix 1pr Filter for Ghostscript</div>
- </div>
- </div>
-
- <div class="main">
- <div class="row">
- <div id="sidebar">
- <div class="sidebar-item"></div>
- <div class="col-2 leftnav">
-<ul>
- <li><a href="https://www.ghostscript.com/">Home</a></li>
- <li><a href="https://www.ghostscript.com/license.html">Licensing</a></li>
- <li><a href="https://www.ghostscript.com/releases.html">Releases</a></li>
- <li><a href="https://www.ghostscript.com/documentation.html" title="Documentation">Documentation</a></li>
- <li><a href="https://www.ghostscript.com/download.html" title="Download">Download</a></li>
- <li><a href="https://www.ghostscript.com/performance.html" title="Performance">Performance</a></li>
- <li><a href="http://jbig2dec.com/" title="jbig2dec">jbig2dec</a></li>
- <li><a href="http://git.ghostscript.com/?p=ghostpdl.git;a=summary">Source</a></li>
- <li><a href="http://bugs.ghostscript.com/">Bugs</a></li>
- <li><a href="https://www.ghostscript.com/faq.html" title="FAQ">FAQ</a></li>
- </ul>
- </div>
- </div>
- <div class="col-10 page">
-
+ <div class="inner">
<!--START EDITING HERE-->
-<h2>Table of contents</h2>
+<h1>Setting Up a Unix 1pr Filter for Ghostscript</h1>
-<blockquote><ul>
-<li><a href="#Overview">Overview</a></li>
-<li><a href="#What_it_can_do">What it can do</a></li>
-<li><a href="#Setting_up">Setting it up</a></li>
-<ul>
-<li><a href="#Editing_device_list">Editing the device list <code>DEVICES</code></a></li>
-<ul>
-<li><a href="#Field_bpp">Field 1: bits per pixel</a></li>
-<li><a href="#Field_colours">Field 2: colours</a></li>
-<li><a href="#Field_dq">Field 3: dual queues</a></li>
-<li><a href="#Device_example">Example definition of <code>DEVICES</code></a></li>
-</ul>
-<li><a href="#Editing_filter_list">Editing the filter list</a></li>
-<li><a href="#Editing_printer_port">Editing the printer port and type</a></li>
-<li><a href="#Modifying_printcap_insert">Modifying <code>printcap.insert</code></a></li>
-<li><a href="#Multiple_queues">Single or dual queues</a></li>
+<h2><a name="toc"></a>Table of contents</h2>
+<ul class="toc">
+ <li><a href="#Overview">Overview</a></li>
+ <li><a href="#What_it_can_do">What it can do</a></li>
+ <li><a href="#Setting_up">Setting it up</a></li>
+ <li>
+ <ul>
+ <li><a href="#Editing_device_list">Editing the device list <code>DEVICES</code></a></li>
+ <li>
+ <ul>
+ <li><a href="#Field_bpp">Field 1: bits per pixel</a></li>
+ <li><a href="#Field_colours">Field 2: colours</a></li>
+ <li><a href="#Field_dq">Field 3: dual queues</a></li>
+ <li><a href="#Device_example">Example definition of <code>DEVICES</code></a></li>
+ </ul>
+ </li>
+ <li><a href="#Editing_filter_list">Editing the filter list</a></li>
+ <li><a href="#Editing_printer_port">Editing the printer port and type</a></li>
+ <li><a href="#Modifying_printcap_insert">Modifying <code>printcap.insert</code></a></li>
+ <li><a href="#Multiple_queues">Single or dual queues</a></li>
+ </ul>
+ </li>
+ <li><a href="#Bugs">Bugs</a></li>
+ <li><a href="#Authors">Authors</a></li>
</ul>
-<li><a href="#Bugs">Bugs</a></li>
-<li><a href="#Authors">Authors</a></li>
-</ul></blockquote>
<!-- [1.2 end table of contents] =========================================== -->
@@ -281,7 +252,7 @@ is responsible for the number-of-colours part of the script.</p>
<hr>
<p>
-<small>Copyright &copy; 2000-2021 Artifex Software, Inc. All rights reserved.</small>
+<small>Copyright &copy; 2000-2022 Artifex Software, Inc. All rights reserved.</small>
<p>
This software is provided AS-IS with no warranty, either express or
@@ -294,41 +265,15 @@ or contact Artifex Software, Inc., 1305 Grant Avenue - Suite 200,
Novato, CA 94945, U.S.A., +1(415)492-9861, for further information.
<p>
-<small>Ghostscript version 9.55.0, 27 September 2021
+<small>Ghostscript version 9.56.0, 29 March 2022
<!-- [3.0 end visible trailer] ============================================= -->
-
<!--FINISH EDITING HERE-->
-
- </div>
- </div>
- </div>
-
- <div class="footer">
- <div class="row">
- <div class="col-7 footleft">
- <ul>
- <li><a href="https://artifex.com/contact-us/" target="blank">CONTACT US</a></li>
- <li><a href="https://artifex.com/about-us/" target="blank">ABOUT</a></li>
- <li><a href="https://ghostscript.com/security.html">SECURITY</a></li>
- </ul>
- </div>
- <div class="col-1 footcenter">
- <ul>
- <li><a href="https://artifex.com/support/" target="blank">SUPPORT</a></li>
- <li><a href="https://artifex.com/blog/artifex/" target="blank">BLOG</a></li>
- <li><a href="https://artifex.com/privacy-policy/" target="blank">PRIVACY</a></li>
- </ul>
- </div>
- <div class="col-ft-3 footright"><img src="images/Artifex_logo.png" width="194" height="40" alt=""/> <br>
- © Copyright 2019-2021 Artifex Software, Inc. <br>
- All rights reserved.
- </div>
- </div>
- </div>
-
- <script src="http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>
- <script src="index.js"></script>
+ </div><!-- close inner -->
+ </div><!-- close outer -->
+ </article>
+ </main>
+ <script src="site.js"></script>
</body>
</html>
diff --git a/doc/Use.htm b/doc/Use.htm
index 1fca0569..68227e5e 100644
--- a/doc/Use.htm
+++ b/doc/Use.htm
@@ -1,157 +1,151 @@
<!doctype html>
-<html>
+<html lang="en">
<head>
-<meta charset="UTF-8">
-<meta name="viewport" content="width=device-width, initial-scale=1.0">
-<link href="https://fonts.googleapis.com/css?family=Source+Sans+Pro" rel="stylesheet">
-<link rel="shortcut icon" type="image/png" href="../../images/favicon.png">
-<title>How to Use Ghostscript</title>
- <!-- Originally: use.txt -->
-<link href="style.css" rel="stylesheet" type="text/css">
-<link href="gs-style.css" rel="stylesheet" type="text/css">
+ <meta http-equiv="content-type" content="text/html; charset=utf-8">
+ <meta name="viewport" content="user-scalable=yes, initial-scale=1, width=device-width">
+ <link href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:200,200i,300,300i,400,400i,600,600i,700,700i,900,900i" rel="stylesheet">
+ <link rel="shortcut icon" href="images/favicon.svg">
+ <title>How to Use Ghostscript</title>
+ <link href="default.css" rel="stylesheet" type="text/css">
</head>
<body>
+ <header><div class="title"><a href="index.html"><h1 aria-label="title">Ghostscript documentation</h1><h2 aria-label="version"></h2></a></div><a href="Search.htm" aria-label="Search" id="searchSite"><div class="search"></div></a></header>
+ <main>
+ <article>
+ <div class="outer">
- <div class="header">
- <div class="row">
- <div class="col-lt-6 logo"><a href="https://www.ghostscript.com/"><img src="images/ghostscript_logo.png" width="108" height="119" alt=""></a></div>
- <div class="col-6"><div class="row"><div class="artifexlogo"><a href="https://artifex.com" target="_blank"><img src="images/Artifex_logo.png" width="194" height="40" alt=""></a></div>
- <div class="col-12"><div class="button button1"><a href="https://artifex.com/contact-us/" title="Contact Us" target="_blank">Contact Us</a></div>
- <div class="button button2 hidden-xs"><a href="https://www.ghostscript.com/download.html" title="Download">Download</a></div></div></div>
- </div>
- </div>
- </div>
-
- <div class="banner">
- <div class="row">
- <div class="col-12">How to Use Ghostscript</div>
- </div>
- </div>
-
- <div class="main">
- <div class="row">
- <div id="sidebar">
- <div class="sidebar-item"></div>
- <div class="col-2 leftnav">
-<ul>
- <li><a href="https://www.ghostscript.com/">Home</a></li>
- <li><a href="https://www.ghostscript.com/license.html">Licensing</a></li>
- <li><a href="https://www.ghostscript.com/releases.html">Releases</a></li>
- <li><a href="https://www.ghostscript.com/documentation.html" title="Documentation">Documentation</a></li>
- <li><a href="https://www.ghostscript.com/download.html" title="Download">Download</a></li>
- <li><a href="https://www.ghostscript.com/performance.html" title="Performance">Performance</a></li>
- <li><a href="http://jbig2dec.com/" title="jbig2dec">jbig2dec</a></li>
- <li><a href="http://git.ghostscript.com/?p=ghostpdl.git;a=summary">Source</a></li>
- <li><a href="http://bugs.ghostscript.com/">Bugs</a></li>
- <li><a href="https://www.ghostscript.com/faq.html" title="FAQ">FAQ</a></li>
- </ul>
- </div>
- </div>
- <div class="col-10 page">
-
+ <div class="inner">
<!--START EDITING HERE-->
-<h2>Table of contents</h2>
-
-<blockquote><ul>
-<li><a href="#Invoking">Invoking Ghostscript</a></li>
-<ul>
-<li><a href="#Help_command">Help at the command line: <code>gs -h</code></a></li>
-</ul>
-<li><a href="#Output_device">Selecting an output device</a></li>
-<ul>
-<li><a href="#Output_resolution">Output resolution</a></li>
-<li><a href="#File_output">Output to files</a></li>
-<ul>
-<li><a href="#One_page_per_file">One page per file</a></li>
-</ul>
-<li><a href="#Paper_size">Choosing paper size</a></li>
-<li><a href="#Change_default_size">Changing the installed default paper size</a></li>
-</ul>
-<li><a href="#Pipes">Interacting with pipes</a></li>
-<li><a href="#PDF">Using Ghostscript with PDF files</a></li>
-<ul>
-<li><a href="#PDF_switches">Switches for PDF files</a></li>
-<li><a href="#PDF_problems">Problems interpreting a PDF file</a></li>
-<li><a href="#PDF_stdin">PDF files from standard input</a></li>
-</ul>
+<h1>How to Use Ghostscript</h1>
-<li><a href="#EPS">Using Ghostscript with EPS files</a></li>
-<li><a href="#SPOT">Using Ghostscript with overprinting and spot colors</a></li>
-<li><a href="#Finding_files">How Ghostscript finds files</a></li>
-<ul>
-<li><a href="#PS_resources">Finding PostScript Level 2 resources</a></li>
-<li><a href="#Font_lookup">Font lookup</a></li>
-<li><a href="#CIDFonts">CID fonts</a></li>
-<li><a href="#CIDFontSubstitution">CID font substitution</a></li>
-<li><a href="#UnicodeTT">Using Unicode True Type fonts</a></li>
-<li><a href="#Temp_files">Temporary files</a></li>
-</ul>
+<h2><a name="toc"></a>Table of contents</h2>
+<ul class="toc">
+ <li><a href="#Invoking">Invoking Ghostscript</a></li>
+ <li>
+ <ul>
+ <li><a href="#Help_command">Help at the command line: <code>gs -h</code></a></li>
+ </ul>
+ </li>
+ <li><a href="#Output_device">Selecting an output device</a></li>
+ <li>
+ <ul>
+ <li><a href="#Output_resolution">Output resolution</a></li>
+ <li><a href="#File_output">Output to files</a></li>
+ <li>
+ <ul>
+ <li><a href="#One_page_per_file">One page per file</a></li>
+ </ul>
+ </li>
+ <li><a href="#Paper_size">Choosing paper size</a></li>
+ <li><a href="#Change_default_size">Changing the installed default paper size</a></li>
+ </ul>
+ </li>
+ <li><a href="#Pipes">Interacting with pipes</a></li>
+ <li><a href="#PDF">Using Ghostscript with PDF files</a></li>
+ <li>
+ <ul>
+ <li><a href="#PDF_switches">Switches for PDF files</a></li>
+ <li><a href="#PDF_problems">Problems interpreting a PDF file</a></li>
+ <li><a href="#PDF_stdin">PDF files from standard input</a></li>
+ </ul>
+ </li>
+ <li><a href="#EPS">Using Ghostscript with EPS files</a></li>
+ <li><a href="#SPOT">Using Ghostscript with overprinting and spot colors</a></li>
+ <li><a href="#Finding_files">How Ghostscript finds files</a></li>
+ <li>
+ <ul>
+ <li><a href="#PS_resources">Finding PostScript Level 2 resources</a></li>
+ <li><a href="#Font_lookup">Font lookup</a></li>
+ <li><a href="#CIDFonts">CID fonts</a></li>
+ <li><a href="#CIDFontSubstitution">CID font substitution</a></li>
+ <li><a href="#UnicodeTT">Using Unicode True Type fonts</a></li>
+ <li><a href="#Temp_files">Temporary files</a></li>
+ </ul>
+ </li>
+ <li><a href="#Platforms">Notes on specific platforms</a></li>
+ <li>
+ <ul>
+ <li><a href="#Word size">Word size (32 or 64 bits)</a></li>
+ <li><a href="#Unix">Unix</a></li>
+ <li><a href="#VMS">VMS</a></li>
+ <li>
+ <ul>
+ <li><a href="#VMS_X_Windows">Using X Windows on VMS</a></li>
+ </ul>
+ </li>
+ <li><a href="#MS_Windows">MS Windows</a></li>
+ <li><a href="#X_Windows">X Windows</a></li>
+ <li>
+ <ul>
+ <li><a href="#X_resources">X resources</a></li>
+ <li><a href="#X_server_bugs">Working around bugs in X servers</a></li>
+ <li><a href="#X_device_parameters">X device parameters</a></li>
+ </ul>
+ </li>
+ <li><a href="#SCO_Unix">SCO Unix</a></li>
+ </ul>
+ </li>
-<li><a href="#Platforms">Notes on specific platforms</a></li>
-<ul>
-<li><a href="#Word size">Word size (32 or 64 bits)</a></li>
-<li><a href="#Unix">Unix</a></li>
-<li><a href="#VMS">VMS</a></li>
-<ul>
-<li><a href="#VMS_X_Windows">Using X Windows on VMS</a></li>
-</ul>
-<li><a href="#MS_Windows">MS Windows</a></li>
-<li><a href="#X_Windows">X Windows</a></li>
-<ul>
-<li><a href="#X_resources">X resources</a></li>
-<li><a href="#X_server_bugs">Working around bugs in X servers</a></li>
-<li><a href="#X_device_parameters">X device parameters</a></li>
-</ul>
-<li><a href="#SCO_Unix">SCO Unix</a></li>
-</ul>
+ <li><a href="#Options">Command line options</a></li>
+ <li>
+ <ul>
+ <li><a href="#General_switches">General switches</a></li>
+ <li>
+ <ul>
+ <li><a href="#Input_control">Input control</a></li>
+ <li><a href="#File_searching">File searching</a></li>
+ <li><a href="#Parameters">Setting parameters</a></li>
+ <li><a href="#Quiet">Suppress messages</a></li>
+ </ul>
+ </li>
+ <li><a href="#Parameter_switches">Parameter switches (<code>-d</code> and <code>-s</code>)</a></li>
+ <li>
+ <ul>
+ <li><a href="#Rendering_parameters">Rendering parameters</a></li>
+ <li><a href="#Page_parameters">Page parameters</a></li>
+ <li><a href="#Font_related_parameters">Font-related parameters</a></li>
+ <li><a href="#Resource_related_parameters">Resource-related parameters</a></li>
+ <li><a href="#Interaction_related_parameters">Interaction-related parameters</a></li>
+ <li><a href="#Output_selection_parameters">Device and output selection parameters</a></li>
+ <li><a href="#EPS_parameters">EPS parameters</a></li>
+ <li><a href="#Deferred_Page_Rendering">Deferred Page Rendering</a></li>
+ <li><a href="#ICC_color_parameters">ICC color parameters</a></li>
+ <li><a href="#Other_parameters">Other parameters</a></li>
+ </ul>
+ </li>
+ </ul>
+ </li>
+ <li><a href="#Improving_performance">Improving performance</a></li>
+ <li><a href="#Environment_variables">Summary of environment variables</a></li>
-<li><a href="#Options">Command line options</a></li>
-<ul>
-<li><a href="#General_switches">General switches</a></li>
-<ul>
-<li><a href="#Input_control">Input control</a></li>
-<li><a href="#File_searching">File searching</a></li>
-<li><a href="#Parameters">Setting parameters</a></li>
-<li><a href="#Quiet">Suppress messages</a></li>
-</ul>
-<li><a href="#Parameter_switches">Parameter switches (<code>-d</code> and <code>-s</code>)</a></li>
-<ul>
-<li><a href="#Rendering_parameters">Rendering parameters</a></li>
-<li><a href="#Page_parameters">Page parameters</a></li>
-<li><a href="#Font_related_parameters">Font-related parameters</a></li>
-<li><a href="#Resource_related_parameters">Resource-related parameters</a></li>
-<li><a href="#Interaction_related_parameters">Interaction-related parameters</a></li>
-<li><a href="#Output_selection_parameters">Device and output selection parameters</a></li>
-<li><a href="#EPS_parameters">EPS parameters</a></li>
-<li><a href="#Deferred_Page_Rendering">Deferred Page Rendering</a></li>
-<li><a href="#ICC_color_parameters">ICC color parameters</a></li>
-<li><a href="#Other_parameters">Other parameters</a></li>
-</ul>
-</ul>
-<li><a href="#Improving_performance">Improving performance</a></li>
-<li><a href="#Environment_variables">Summary of environment variables</a></li>
+ <li><a href="#Debugging">Debugging</a></li>
+ <li>
+ <ul>
+ <li><a href="#Debug_switches">Debug Switches</a></li>
+ <li><a href="#Visual_trace">Visual Trace</a></li>
+ </ul>
+ </li>
+ <li><a href="#Known_paper_sizes">Appendix: Paper sizes known to Ghostscript</a></li>
+ <li><a href="#X_font_mappings">Appendix: X default font mappings</a></li>
+ <li>
+ <ul>
+ <li><a href="#Standard_X_server_fonts">Standard X servers</a></li>
+ <li>
+ <ul>
+ <li><a href="#X_regular_fonts">Regular fonts</a></li>
+ <li><a href="#X_symbol_fonts">Symbol fonts</a></li>
+ <li><a href="#X_dingbat_fonts">Dingbat fonts</a></li>
+ </ul>
+ </li>
+ <li><a href="#OpenWindows_fonts">Sun OpenWindows</a></li>
+ </ul>
+ </li>
+ <li><a href="#FAPI_run">Appendix: Running Ghostscript with third-party
+ font renderers</a></li>
-<li><a href="#Debugging">Debugging</a></li>
-<ul>
-<li><a href="#Debug_switches">Debug Switches</a></li>
-<li><a href="#Visual_trace">Visual Trace</a></li>
</ul>
-<li><a href="#Known_paper_sizes">Appendix: Paper sizes known to Ghostscript</a></li>
-<li><a href="#X_font_mappings">Appendix: X default font mappings</a></li>
-<ul>
-<li><a href="#Standard_X_server_fonts">Standard X servers</a></li>
-<ul>
-<li><a href="#X_regular_fonts">Regular fonts</a></li>
-<li><a href="#X_symbol_fonts">Symbol fonts</a></li>
-<li><a href="#X_dingbat_fonts">Dingbat fonts</a></li>
-</ul>
-<li><a href="#OpenWindows_fonts">Sun OpenWindows</a></li>
-</ul>
-<li><a href="#FAPI_run">Appendix: Running Ghostscript with third-party
-font renderers</a></li>
-</ul></blockquote>
<!-- [1.2 end table of contents] =========================================== -->
@@ -261,10 +255,10 @@ On other systems the executable may have a different name:</p>
<tr><td>VMS</td>
<td><code>gs</code></td></tr>
<tr><td>MS Windows 95 and later</td>
- <td><code>gswin32.exe</code></td>
- <td><code>gswin32c.exe</code></td>
- <td><code>gswin64.exe</code></td>
- <td><code>gswin64c.exe</code></td>
+ <td><code>gswin32.exe</code><br/>
+ <code>gswin32c.exe</code><br/>
+ <code>gswin64.exe</code><br/>
+ <code>gswin64c.exe</code></td>
</tr>
<tr><td>OS/2</td>
<td><code>gsos2</code></td></tr>
@@ -468,16 +462,19 @@ command line:</p>
If the desired paper size is listed in the section on <a
href="#Known_paper_sizes">paper sizes known to Ghostscript</a> below, you
can select it as the default paper size for a single invocation of
-Ghostscript by using the <code>-sPAPERSIZE=</code> switch, for instance</li>
+Ghostscript by using the <code>-sPAPERSIZE=</code> switch, for instance:<p>
+
<blockquote><code>
-sPAPERSIZE=a4<br>
-sPAPERSIZE=legal
</code></blockquote>
+</li>
<li>
Otherwise you can set the page size using the
-pair of switches</li>
+pair of switches:<p>
+
<blockquote>
<code>-dDEVICEWIDTHPOINTS=</code><em>w</em>
@@ -486,6 +483,7 @@ pair of switches</li>
<p>Where <em>w</em> be the desired paper width and <em>h</em> be the
desired paper height in <em>points</em> (units of 1/72 of an inch).</p>
+</li>
</ul>
<p>
@@ -712,7 +710,7 @@ This option is also set by the <code>-dFitPage</code> option.</p>
<dt><code>-dShowAnnots=false</code></dt>
<dd>
Don't enumerate annotations associated with the page
- <code>Annots</code> key. Annotations are shown by default.</dd>
+ <code>Annots</code> key. Annotations are shown by default.
<p> In addition, finer control is available by defining an array
<code>/ShowAnnotTypes</code>. Annotation types listed in this array will
be drawn, whilst those not listed will not be drawn.</p>
@@ -723,6 +721,7 @@ be drawn, whilst those not listed will not be drawn.</p>
<p> For example, adding the follow to the command line:
<code>-c "/ShowAnnotTypes [/Text /UnderLine] def" -f &ltinput file&gt</code>
<br> would draw only annotations with the subtypes &quotText&quot and &quotUnderLine&quot</p>
+ </dd>
</dl>
<dl>
@@ -958,21 +957,21 @@ files named on the command line, and resource files, Ghostscript first tests whe
file name specifies an absolute path.</p>
<blockquote><table>
-<tr><th colspan="3">Testing a file name for an absolute path</th></tr>
+<tr><th colspan="2">Testing a file name for an absolute path</th></tr>
<tr><th align="left">System</th>
- <th>&nbsp;&nbsp;</th>
+
<th align="left">Does the name ...</th></tr>
-<tr><td colspan="3"></td></tr>
+<tr><td colspan="2"></td></tr>
<tr><td valign="top">Unix</td>
- <td>&nbsp;</td>
+
<td>Begin with <code><u>/</u></code> ?</td></tr>
<tr><td valign="top">MS Windows</td>
- <td>&nbsp;</td>
+
<td>Have <code><u>:</u></code> as its second character, or
begin with <code><u>/</u></code>, <code><u>\</u></code>,
or <code><u>//servername/share/</u></code> ?</td></tr>
<tr><td valign="top">VMS</td>
- <td>&nbsp;</td>
+
<td>Contain a node, device, or root specification?</td></tr>
</table></blockquote>
@@ -1189,30 +1188,30 @@ from among the standard 35 fonts.</li>
are found using a different method.</p>
<blockquote><table>
-<tr><th colspan="3">Differences between search path and font path</th></tr>
+<tr><th colspan="2">Differences between search path and font path</th></tr>
<tr><th>Search path</th>
- <th>&nbsp;&nbsp;&nbsp;</th>
+
<th>Font path</th></tr>
<tr><td><code>-I</code> switch</td>
- <td>&nbsp;</td>
+
<td><code>-sFONTPATH=</code> switch</td></tr>
<tr><td><code>GS_LIB</code> and <code>GS_LIB_DEFAULT</code>
environment variables</td>
- <td>&nbsp;</td>
+
<td><code>GS_FONTPATH</code> environment variable</td></tr>
<tr><td valign="top">Consulted first</td>
- <td>&nbsp;</td>
+
<td valign="top">Consulted only if search path and
<code>FontResourceDir</code> don't provide the file.</td></tr>
<tr><td valign="top">Font-name-to-file-name mapping given in Fontmap
files; aliases are possible, and there need not be any relation
between the font name in the Fontmap and the
<code>FontName</code> in the file.</td>
- <td>&nbsp;</td> <td valign="top">Font-name-to-file-name mapping is
+ <td valign="top">Font-name-to-file-name mapping is
implicit – the <code>FontName</code> in the file is
used. Aliases are not possible.</td></tr>
<tr><td valign="top">Only fonts and files named in Fontmap are used.</td>
- <td>&nbsp;</td>
+
<td valign="top">Every Type 1 font file in each directory is
available; if TrueType fonts are supported (the
<code>ttfont.dev</code> feature was included when the
@@ -1227,64 +1226,64 @@ installed Type 1 (and, if supported, TrueType) fonts (but see below for
notes on systems marked with "*"):</p>
<blockquote><table>
-<tr><th colspan="5">Suggested GS_FONTPATH for different systems</th></tr>
+<tr><th colspan="3">Suggested GS_FONTPATH for different systems</th></tr>
<tr><th>&nbsp;</th>
- <th>&nbsp;&nbsp;</th>
+
<th align="left">System type</th>
- <th>&nbsp;&nbsp;</th>
+
<th valign="bottom" align="left">GS_FONTPATH</th></tr>
<tr><td>&nbsp;</td>
- <td>&nbsp;</td>
+
<td valign="top">Digital Unix</td>
- <td>&nbsp;</td>
+
<td><code>/usr/lib/X11/fonts/Type1Adobe</code></td></tr>
<tr><td>&nbsp;</td>
- <td>&nbsp;</td>
+
<td valign="top">Ultrix</td>
- <td>&nbsp;</td>
+
<td><code>/usr/lib/DPS/outline/decwin</code></td></tr>
<tr><td>&nbsp;</td>
- <td>&nbsp;</td>
+
<td valign="top">HP-UX 9</td>
- <td>&nbsp;</td>
+
<td><code>/usr/lib/X11/fonts/type1.st/typefaces</code></td></tr>
<tr><td>&nbsp;</td>
- <td>&nbsp;</td>
+
<td valign="top">IBM AIX</td>
- <td>&nbsp;</td>
+
<td><code>/usr/lpp/DPS/fonts/outlines
<br>/usr/lpp/X11/lib/X11/fonts/Type1
<br>/usr/lpp/X11/lib/X11/fonts/Type1/DPS</code></td></tr>
<tr><td>&nbsp;</td>
- <td>&nbsp;</td>
+
<td valign="top">NeXT</td>
- <td>&nbsp;</td>
+
<td><code>/NextLibrary/Fonts/outline</code></td></tr>
<tr><td>*</td>
- <td>&nbsp;</td>
+
<td valign="top">SGI IRIX</td>
- <td>&nbsp;</td>
+
<td><code>/usr/lib/DPS/outline/base
<br>/usr/lib/X11/fonts/Type1</code></td></tr>
<tr><td>&nbsp;</td>
- <td>&nbsp;</td>
+
<td valign="top">SunOS 4.x<br>(NeWSprint only)</td>
- <td>&nbsp;</td>
+
<td valign="top"><code>newsprint_2.5/SUNWsteNP/reloc/&#36;BASEDIR/NeWSprint/<br>&nbsp;&nbsp;&nbsp;&nbsp;small_openwin/lib/fonts</code></td></tr>
<tr><td>**</td>
- <td>&nbsp;</td>
+
<td valign="top">SunOS 4.x</td>
- <td>&nbsp;</td>
+
<td><code>/usr/openwin/lib/X11/fonts/Type1/outline</code></td></tr>
<tr><td>**</td>
- <td>&nbsp;</td>
+
<td valign="top">Solaris 2.x</td>
- <td>&nbsp;</td>
+
<td><code>/usr/openwin/lib/X11/fonts/Type1/outline</code></td></tr>
<tr><td>&nbsp;</td>
- <td>&nbsp;</td>
+
<td valign="top">VMS</td>
- <td>&nbsp;</td>
+
<td><code>SYS&#36;COMMON:[SYSFONT.XDPS.OUTLINE]</code></td></tr>
</table>
@@ -1505,13 +1504,6 @@ entries is not important).</p>
<p>The trailing semicolon and the space before it are both required.</p>
-<h4>NOTE: Environment Variables</h4>
-<p>It is also possible to influence the path using standard, or your own environment variables, using
-the custom Postscript operator <code>getenv</code>. Said operator takes a string parameter on the stack
-which is the environment variable to interrogate, and returns either a string, containing the value of
-the environment variable, and boolean <code>true</code> to indicate success, or just a boolean
-<code>false</code> to indicate failure. See below for an example of its use.</p>
-
<p>
Examples :</p>
@@ -1525,8 +1517,6 @@ Examples :</p>
/Gulim &lt;&lt; /FileType /TrueType /Path (C:/WINDOWS/fonts/gulim.ttc) /SubfontID 0 /CSI [(Korea1) 3] &gt;&gt; ;<br>
/Dotum &lt;&lt; /FileType /TrueType /Path (C:/WINDOWS/fonts/gulim.ttc) /SubfontID 2 /CSI [(Korea1) 3] &gt;&gt; ;<br>
<br>
-<h5>Format 2 & environment variable:</h5>
-/SimHei &lt;&lt; /FileType /TrueType /Path (windir) getenv not {(c:/windows)}if (/fonts/simhei.ttf) concatstrings /SubfontID 0 /CSI [(GB1) 2] &gt;&gt; ;<br>
<h5>Format 1 & 2</h5>
/SimSun &lt;&lt; /FileType /TrueType /Path (C:/WINDOWS/fonts/simsun.ttc) /SubfontID 0 /CSI [(GB1) 2] &gt;&gt; ;<br>
/SimHei &lt;&lt; /FileType /TrueType /Path (C:/WINDOWS/fonts/simhei.ttf) /SubfontID 0 /CSI [(GB1) 2] &gt;&gt; ;<br>
@@ -1655,27 +1645,27 @@ especially for the searchability feature
<h3><a name="Temp_files"></a>Temporary files</h3>
<blockquote><table>
-<tr><th colspan="5">Where Ghostscript puts temporary files</th></tr>
+<tr><th colspan="3">Where Ghostscript puts temporary files</th></tr>
<tr>
<th align="left">Platform</th>
- <th>&nbsp;&nbsp;&nbsp;</th>
+
<th align="left">Filename</th>
- <th>&nbsp;&nbsp;&nbsp;</th>
+
<th align="left">Location</th></tr>
<tr valign="top"> <td>MS Windows and OpenVMS</td>
- <td>&nbsp;</td>
+
<td><code>_temp_</code>XX.XXX</td>
- <td>&nbsp;</td>
+
<td>Current directory</td></tr>
<tr valign="top"> <td>OS/2</td>
- <td>&nbsp;</td>
+
<td><code>gs</code>XXXXXX</td>
- <td>&nbsp;</td>
+
<td>Current directory</td></tr>
<tr valign="top"> <td>Unix</td>
- <td>&nbsp;</td>
+
<td><code>gs_</code>XXXXX</td>
- <td>&nbsp;</td>
+
<td><code>/tmp</code></td></tr>
</table></blockquote>
@@ -1765,63 +1755,80 @@ file, not Artifex Software.</p>
<li>To be able to specify switches and file names when invoking the
interpreter, define <code>gs</code> as a foreign command:</li>
+<li>
<blockquote>
<code>&#36; gs == "&#36;</code><em>disk</em><code>:[</code><em>directory</em><code>]gs.exe</code>"
</blockquote>
+</li>
+<li>
<p>
where the "<em>disk</em>" and "<em>directory</em>" specify where
the Ghostscript executable is located. For instance,</p>
-
+</li>
+<li>
<blockquote><code>
&#36; gs == "&#36;dua1:[ghostscript]gs.exe"
</code></blockquote>
+</li>
<li>On VMS systems, the last character of each "directory" name indicates
what sort of entity the "directory" refers to. If the "directory" name
ends with a colon "<code>:</code>", it is taken to refer to a logical
device, for instance</li>
+<li>
<blockquote><code>
&#36; define ghostscript_device dua1:[ghostscript_510]<br>
&#36; define gs_lib ghostscript_device:
</code></blockquote>
+</li>
+<li>
<p>
If the "directory" name ends with a closing square bracket
"<code>]</code>", it is taken to refer to a real directory, for instance</p>
-
+</li>
+<li>
<blockquote><code>
&#36; define gs_lib dua1:[ghostscript]
</code></blockquote>
-
+</li>
<li>Defining the logical <code>GS_LIB</code></li>
-
+<li>
<blockquote>
<code>&#36; define gs_lib</code> <em>disk</em><code>:[</code><em>directory</em><code>]</code>
</blockquote>
-
+</li>
+<li>
<p>
allows Ghostscript to find its initialization files in the Ghostscript
directory even if that's not where the executable resides.</p>
+</li>
<li>Although VMS DCL itself converts unquoted parameters to upper case, C
programs such as Ghostscript receive their parameters through the C runtime
library, which forces all unquoted command-line parameters to lower case.
That is, with the command</li>
+<li>
<blockquote><code>
&#36; gs -Isys&#36;login:
</code></blockquote>
+</li>
+<li>
<p>
Ghostscript sees the switch as <code>-isys&#36;login</code>,
which doesn't work. To preserve the case of switches, quote them like
this:</p>
+</li>
+<li>
<blockquote><code>
&#36; gs "-Isys&#36;login:"
</code></blockquote>
+</li>
<li>If you write printer output to a file with
<code>-sOutputFile=</code> and then want to print the file later, use
@@ -1836,32 +1843,39 @@ if Ghostscript was compiled with DEC C; we are not sure of the situation if
you use <code>gcc</code>.) Because of this, if you transfer files by
FTP, you probably need to do one of these two things after the transfer:</li>
-<ol>
-<li>If the FTP transfer was in text (ASCII) mode:</li>
+<li>
+ <ol>
+ <li>If the FTP transfer was in text (ASCII) mode:</li>
-<blockquote>
-<code>&#36; convert/fdl=streamlf.fdl</code> input-file output-file
-</blockquote>
+ <li>
+ <blockquote>
+ <code>&#36; convert/fdl=streamlf.fdl</code> input-file output-file
+ </blockquote>
-<p>
-where the contents of the file <code>STREAMLF.FDL</code> are</p>
-<blockquote>
-<pre>FILE
- ORGANIZATION sequential
+ <p>
+ where the contents of the file <code>STREAMLF.FDL</code> are</p>
-RECORD
- BLOCK_SPAN yes
- CARRIAGE_CONTROL carriage_return
- FORMAT stream_lf
-</pre></blockquote>
+ <blockquote>
+ <pre>FILE
+ ORGANIZATION sequential
-<li>If the FTP transfer was in binary mode:</li>
+ RECORD
+ BLOCK_SPAN yes
+ CARRIAGE_CONTROL carriage_return
+ FORMAT stream_lf
+ </pre></blockquote>
+ </li>
-<blockquote><code>
- &#36; set file/attribute=(rfm:stmlf)
-</code></blockquote>
-</ol>
+ <li>If the FTP transfer was in binary mode:</li>
+
+ <li>
+ <blockquote><code>
+ &#36; set file/attribute=(rfm:stmlf)
+ </code></blockquote>
+ </li>
+ </ol>
+</li>
</ul>
<h4><a name="VMS_X_Windows"></a>Using X Windows on VMS</h4>
@@ -1938,101 +1952,101 @@ Ghostscript looks for the following resources under the program name
calculated from display metrics:</p>
<blockquote><table>
-<tr><th colspan="5">X Windows resources</th></tr>
+<tr><th colspan="3">X Windows resources</th></tr>
<tr><th align="left">Name</th>
- <th>&nbsp;&nbsp;</th>
+
<th align="left">Class</th>
- <th>&nbsp;&nbsp;</th>
+
<th align="left">Default</th></tr>
<tr><td><code>background</code></td>
- <td>&nbsp;</td>
+
<td><code>Background</code></td>
- <td>&nbsp;</td>
+
<td><code>white</code></td></tr>
<tr><td><code>foreground</code></td>
- <td>&nbsp;</td>
+
<td><code>Foreground</code></td>
- <td>&nbsp;</td>
+
<td><code>black</code></td></tr>
<tr><td><code>borderColor</code></td>
- <td>&nbsp;</td>
+
<td><code>BorderColor</code></td>
- <td>&nbsp;</td>
+
<td><code>black</code></td></tr>
<tr><td><code>borderWidth</code></td>
- <td>&nbsp;</td>
+
<td><code>BorderWidth</code></td>
- <td>&nbsp;</td>
+
<td><code>1</code></td></tr>
<tr><td><code>geometry</code></td>
- <td>&nbsp;</td>
+
<td><code>Geometry</code></td>
- <td>&nbsp;</td>
+
<td><code>NULL</code></td></tr>
<tr><td><code>xResolution</code></td>
- <td>&nbsp;</td>
+
<td><code>Resolution</code></td>
- <td>&nbsp;</td>
+
<td>**</td></tr>
<tr><td><code>yResolution</code></td>
- <td>&nbsp;</td>
+
<td><code>Resolution</code></td>
- <td>&nbsp;</td>
+
<td>**</td></tr>
<tr><td><code>useExternalFonts</code></td>
- <td>&nbsp;</td>
+
<td><code>UseExternalFonts</code></td>
- <td>&nbsp;</td>
+
<td><code>true</code></td></tr>
<tr><td><code>useScalableFonts</code></td>
- <td>&nbsp;</td>
+
<td><code>UseScalableFonts</code></td>
- <td>&nbsp;</td>
+
<td><code>true</code></td></tr>
<tr><td><code>logExternalFonts</code></td>
- <td>&nbsp;</td>
+
<td><code>LogExternalFonts</code></td>
- <td>&nbsp;</td>
+
<td><code>false</code></td></tr>
<tr><td><code>externalFontTolerance</code></td>
- <td>&nbsp;</td>
+
<td><code>ExternalFontTolerance</code></td>
- <td>&nbsp;</td>
+
<td><code>10.0</code></td></tr>
<tr><td><code>palette</code></td>
- <td>&nbsp;</td>
+
<td><code>Palette</code></td>
- <td>&nbsp;</td>
+
<td><code>Color</code></td></tr>
<tr><td><code>maxGrayRamp</code></td>
- <td>&nbsp;</td>
+
<td><code>MaxGrayRamp</code></td>
- <td>&nbsp;</td>
+
<td><code>128</code></td></tr>
<tr><td><code>maxRGBRamp</code></td>
- <td>&nbsp;</td>
+
<td><code>MaxRGBRamp</code></td>
- <td>&nbsp;</td>
+
<td><code>5</code></td></tr>
<tr> <td><code>maxDynamicColors</code></td>
- <td>&nbsp;</td>
+
<td><code>MaxDynamicColors</code></td>
- <td>&nbsp;</td>
+
<td><code>256</code></td></tr>
<tr><td><code>useBackingPixmap</code></td>
- <td>&nbsp;</td>
+
<td><code>UseBackingPixmap</code></td>
- <td>&nbsp;</td>
+
<td><code>true</code></td></tr>
<tr><td><code>useXPutImage</code></td>
- <td>&nbsp;</td>
+
<td><code>UseXPutImage</code></td>
- <td>&nbsp;</td>
+
<td><code>true</code></td></tr>
<tr><td><code>useXSetTile</code></td>
- <td>&nbsp;</td>
+
<td><code>UseXSetTile</code></td>
- <td>&nbsp;</td>
+
<td><code>true</code></td></tr>
</table></blockquote>
@@ -2043,10 +2057,11 @@ calculated from display metrics:</p>
To set X resources, put them in a file (such as
<code>~/.Xdefaults</code> on Unix) in a form like this:</li>
+<li>
<blockquote><table>
- <tr><td><code>Ghostscript*geometry:</code></td><td><code>&nbsp;&nbsp;</code></td><td><code>595x842-0+0</code></td></tr>
- <tr><td><code>Ghostscript*xResolution:</code></td><td><code>&nbsp;</code></td><td><code>72</code></td></tr>
- <tr><td><code>Ghostscript*yResolution:</code></td><td><code>&nbsp;</code></td><td><code>72</code></td></tr>
+ <tr><td><code>Ghostscript*geometry:</code></td><td><code>595x842-0+0</code></td></tr>
+ <tr><td><code>Ghostscript*xResolution:</code></td><td><code>72</code></td></tr>
+ <tr><td><code>Ghostscript*yResolution:</code></td><td><code>72</code></td></tr>
</table></blockquote>
<p>
@@ -2056,6 +2071,8 @@ To set X resources, put them in a file (such as
xrdb -merge ~/.Xdefaults
</code></blockquote>
+</li>
+
<li>
Ghostscript doesn't look at the default system background and foreground
colors; if you want to change the background or foreground color, you must
@@ -2305,7 +2322,7 @@ systemdict will be replaced by the normal definition during the
<br><code>-s</code><em>name</em><code>=</code><em>string</em></dt>
<dd>Define a name in systemdict with a given string as value. This is
different from <code>-d</code>. For example, <code>-dXYZ=35</code>
- on the command line is equivalent to the program fragment</dd>
+ on the command line is equivalent to the program fragment
<blockquote><code>
/XYZ 35 def
@@ -2317,6 +2334,7 @@ whereas <code>-sXYZ=35</code> is equivalent to</p>
<blockquote><code>
/XYZ (35) def
</code></blockquote>
+</dd>
</dl>
<dl>
@@ -2776,7 +2794,7 @@ the <code>-dFitPage</code> options.</p>
</dl>
<dl>
-<a name="NupControl"></a>
+<dt><a name="NupControl"></a></dt>
<dt><code>-sNupControl=</code><em>Nup_option_string</em></dt>
<dd>This option specifies the N-up nesting to be performed. The pages are scaled
and arranged on the current PageSize "master" page according the the option.
@@ -2784,7 +2802,7 @@ and arranged on the current PageSize "master" page according the the option.
The only option strings are as follows:
<ul>
<li>
- <dt><code>-sNupControl=</code><em>number1</em><code>x</code><em>number2</em></dt>
+ <dl><dt></dt><dd><code>-sNupControl=</code><em>number1</em><code>x</code><em>number2</em></dd></dl>
will fit <em>number1</em> nested pages across the master page, and <em>number2</em>
down the master page, from the upper left, then to the right to fill the row, moving down
to the leftmost place on the next row until the nest is complete.
@@ -2799,7 +2817,7 @@ The only option strings are as follows:
above and below <b>all</b> of the rows.
</li>
<li>
- <dt><code>-sNupControl=</code></dt>
+ <dl><dt></dt><dd><code>-sNupControl=</code></dd></dl>
An empty string will turn off nesting. If there are any nested pages on the master page,
the partially filled master page will be output.
</li>
@@ -3032,6 +3050,7 @@ ignore a request to print multiple copies, giving more consistent
<h4><a name="Deferred_Page_Rendering"></a>Deferred Page Rendering</h4>
<dl>
+ <dt></dt>
<dd>Raster printers and image formats that can use the "command list" (clist)
to store a representation of the page prior to rendering can use the
<code>--saved-pages=</code><em>string</em> on the command line for
@@ -3078,10 +3097,13 @@ This is useful when EPS files have incorrect Document
<h4><a name="ICC_color_parameters"></a>ICC color parameters</h4>
+<dl>
+<dt></dt>
<dd>
For details about the ICC controls see the document
<a href="GS9_Color_Management.pdf">GS9 Color Management</a>.
</dd>
+</dl>
<dl>
<dt><code>-sDefaultGrayProfile=</code><em>filename</em></dt>
@@ -3402,8 +3424,8 @@ This option has been replaced by <code><b>-dOverprint=</b></code>
<dl>
-<a name="Overprint"></a>
- <dt><code>-dOverprint=</code><em>/enable | /disable | /simulate</em></dt>
+
+ <dt><a name="Overprint"></a><code>-dOverprint=</code><em>/enable | /disable | /simulate</em></dt>
<dd>
This option provides control of overprinting. The default setting is <em><b>/enable</b></em>
which allows devices such as CMYK that can support overprint to leave planes unchanged
@@ -3598,9 +3620,11 @@ procedure is run. This is intended for clients or scripts that cannot
operate in SAFER mode. If Ghostscript is started with <code>-dNOSAFER</code>
or <code>-dDELAYSAFER</code>, PostScript programs are allowed to read, write,
rename or delete any files in the system that are not protected by operating
-system permissions.</dd>
+system permissions.
<p><b>This mode should be used with caution, and <code>.setsafe</code> should be
run prior to running any PostScript file with unknown contents.</b></p>
+
+ </dd>
</dl>
<a name="Safer"></a>
<dl>
@@ -3668,15 +3692,15 @@ directly, or through an alternative symlink - again, the matching will fail.
The following cases are handled:
<ul>
<li>
-<dt><code>&quot;&sol;path&sol;to&sol;file&quot;</code></dt>
+<dl><dt></dt><dd><code>&quot;&sol;path&sol;to&sol;file&quot;</code></dd></dl>
<p>Permits access only to the file: &quot;&sol;path&sol;to&sol;file&quot;
</li>
<li>
-<dt><code>&quot;&sol;path&sol;to&sol;directory&sol;&quot;</code></dt>
+<dl><dt></dt><dd><code>&quot;&sol;path&sol;to&sol;directory&sol;&quot;</code></dd></dl>
<p>Permits access to any file in, and only in, the directory: &quot;&sol;path&sol;to&sol;directory&quot;
</li>
<li>
-<dt><code>&quot;&sol;path&sol;to&sol;directory&sol;*&quot;</code></dt>
+<dl><dt></dt><dd><code>&quot;&sol;path&sol;to&sol;directory&sol;*&quot;</code></dd></dl>
<p>Permits access to any file in the directory: &quot;&sol;path&sol;to&sol;directory&quot; and
any child of that directory.
</li>
@@ -3691,25 +3715,25 @@ in that it now supports (although does not enforce) case sensitivity.
Four command line parameters permit explicit control of the paths included in
the access control lists:
<ul>
-<li><dt><code>--permit-file-read=<code><em>pathlist</em></dt>
+<li><dl><dt></dt><dd><code>--permit-file-read=<em>pathlist</em></code></dd></dl>
<p> Adds a path, or list of paths, to the "permit read" list. A list
of paths is a series of paths separated by the appropriate path list separator
for your platform (for example, on Unix-like systems it is &quot;&colon;&quot;
and on MS Windows it is &quot;;&quot;).
</li>
-<li><dt><code>--permit-file-write=<code><em>pathlist</em></dt>
+<li><dl><dt></dt><dd><code>--permit-file-write=<em>pathlist</em></code></dd></dl>
<p> Adds a path, or list of paths, to the "permit write" list. A list
of paths is a series of paths separated by the appropriate path list separator
for your platform (for example, on Unix-like systems it is &quot;&colon;&quot;
and on MS Windows it is &quot;;&quot;).
</li>
-<li><dt><code>--permit-file-control=<code><em>pathlist</em></dt>
+<li><dl><dt></dt><dd><code>--permit-file-control=<em>pathlist</em></code></dd></dl>
<p> Adds a path, or list of paths, to the "permit control" list. A list
of paths is a series of paths separated by the appropriate path list separator
for your platform (for example, on Unix-like systems it is &quot;&colon;&quot;
and on MS Windows it is &quot;;&quot;).
</li>
-<li><dt><code>--permit-file-all=<code><em>pathlist</em></dt>
+<li><dl><dt></dt><dd><code>--permit-file-all=<em>pathlist</em></code></dd></dl>
<p> Adds a path, or list of paths, to the all the above lists. A list
of paths is a series of paths separated by the appropriate path list separator
for your platform (for example, on Unix-like systems it is &quot;&colon;&quot;
@@ -3799,6 +3823,7 @@ For raster printers and image format (jpeg*, tiff*, png* ...) devices,
performance can be 'tuned' by adjusting some of the parameters related
to banding (clist) options (refer to: <a href="Language.htm#Banding_parameters">
Banding Parameters</a>).</li>
+<li>
<p>
All devices may use a display list ("clist") and use banding when rendering
PDF 1.4 transparency. This prevents allocation of excessively large amounts of
@@ -3818,7 +3843,7 @@ generally be set to the number of available processor cores for best throughput.
<p>In general, larger <code>-dBufferSpace=#</code> values provide
slightly higher performance since the per-band overhead is reduced.</p>
-
+</li>
<li>
If you are using X Windows, setting the <code>-dMaxBitmap=</code>
parameter described <a href="#X_device_parameters">above</a> may
@@ -3900,7 +3925,7 @@ of <code>GS_OPTIONS</code> are not limited to switches; they may include
<p>
The information here describing is probably interesting only to developers.</p>
-<h4><a name="Debug_switches"></a>Debug switches</h4>
+<h3><a name="Debug_switches"></a>Debug switches</h3>
<p>There are several debugging switches that are detected by the interpreter.
These switches are available whether or not Ghostscript was built with the
@@ -3914,20 +3939,20 @@ needed to investigate particular areas. For backward compatibilty, the
<code>-dDEBUG</code> option will set all of the subset switches.</p>
<table>
- <tr><td><code>-dCCFONTDEBUG</code></td><td></td><td>Compiled Fonts</td></tr>
- <tr><td><code>-dCFFDEBUG</code></td><td></td><td>CFF Fonts</td></tr>
- <tr><td><code>-dCMAPDEBUG</code></td><td></td><td>CMAP</td></tr>
- <tr><td><code>-dDOCIEDEBUG</code></td><td></td><td>CIE color</td></tr>
- <tr><td><code>-dEPSDEBUG</code></td><td></td><td>EPS handling</td></tr>
- <tr><td><code>-dFAPIDEBUG</code></td><td></td><td>Font API</td></tr>
- <tr><td><code>-dINITDEBUG</code></td><td></td><td>Initialization</td></tr>
- <tr><td><code>-dPDFDEBUG</code></td><td></td><td>PDF Interpreter</td></tr>
- <tr><td><code>-dPDFWRDEBUG</code></td><td></td><td>PDF Writer</td></tr>
- <tr><td><code>-dSETPDDEBUG</code></td><td></td><td>setpagedevice</td></tr>
- <tr><td><code>-dSTRESDEBUG</code></td><td></td><td>Static Resources</td></tr>
- <tr><td><code>-dTTFDEBUG</code></td><td></td><td>TTF Fonts</td></tr>
- <tr><td><code>-dVGIFDEBUG</code></td><td></td><td>ViewGIF</td></tr>
- <tr><td><code>-dVJPGDEBUG</code></td><td></td><td>ViewJPEG</td></tr>
+ <tr><td><code>-dCCFONTDEBUG</code></td><td>Compiled Fonts</td></tr>
+ <tr><td><code>-dCFFDEBUG</code></td><td>CFF Fonts</td></tr>
+ <tr><td><code>-dCMAPDEBUG</code></td><td>CMAP</td></tr>
+ <tr><td><code>-dDOCIEDEBUG</code></td><td>CIE color</td></tr>
+ <tr><td><code>-dEPSDEBUG</code></td><td>EPS handling</td></tr>
+ <tr><td><code>-dFAPIDEBUG</code></td><td>Font API</td></tr>
+ <tr><td><code>-dINITDEBUG</code></td><td>Initialization</td></tr>
+ <tr><td><code>-dPDFDEBUG</code></td><td>PDF Interpreter</td></tr>
+ <tr><td><code>-dPDFWRDEBUG</code></td><td>PDF Writer</td></tr>
+ <tr><td><code>-dSETPDDEBUG</code></td><td>setpagedevice</td></tr>
+ <tr><td><code>-dSTRESDEBUG</code></td><td>Static Resources</td></tr>
+ <tr><td><code>-dTTFDEBUG</code></td><td>TTF Fonts</td></tr>
+ <tr><td><code>-dVGIFDEBUG</code></td><td>ViewGIF</td></tr>
+ <tr><td><code>-dVJPGDEBUG</code></td><td>ViewJPEG</td></tr>
</table>
<p>
@@ -3935,9 +3960,9 @@ The PDF interpreter normally tries to repair, or ignore, all problems encountere
Setting <code>-dPDFSTOPONERROR</code> instead causes the interpreter to signal an error and
stop processing the PDF file, instead of printing a warning.
</p><p>
-The <code>-dPDFSTOPONWARNING</code> switch behves the same, but will stop if a condition
+The <code>-dPDFSTOPONWARNING</code> switch behaves the same, but will stop if a condition
which would normally merit a warning (instead of an error) is encountered. Note that
-setting <code>-dPDFSTOPONWARNING</code> also sets <code>-dPDFSTOPONERROR</code>
+setting <code>-dPDFSTOPONWARNING</code> also sets <code>-dPDFSTOPONERROR</code>.
</p>
<p>
@@ -3947,61 +3972,49 @@ configuration</a>. In the table below, the first column is a debugging
switch, the second is an equivalent switch (if any) and the third is its
usage.</p>
+<blockquote>
<table>
- <tr><th colspan="5">Switches used in debugging</th></tr>
+ <tr><th colspan="2">Switches used in debugging</th></tr>
<tr> <th align="left">Switch</th>
- <th>&nbsp;&nbsp;</th>
- <th align="left">&nbsp;&nbsp;</th>
- <th>&nbsp;&nbsp;</th>
+
+
+
<th align="left">&nbsp;Description</th></tr>
<tr> <td valign="top"><code>-B</code><em>size</em></td>
- <td>&nbsp;</td>
- <td>&nbsp;</td>
- <td>&nbsp;</td>
+
<td>Run all subsequent files named on the command line (except for
<code>-F</code>) through the run_string interface, using a
buffer of <em>size</em> bytes</td></tr>
<tr> <td valign="top"><code>-B-</code></td>
- <td>&nbsp;</td>
- <td>&nbsp;</td>
- <td>&nbsp;</td>
+
<td>Turn off <code>-B</code>: run subsequent files (except for
<code>-F</code>) directly in the normal way</td></tr>
<tr> <td valign="top"><code>-F</code><em>file</em></td>
- <td>&nbsp;</td>
- <td>&nbsp;</td>
- <td>&nbsp;</td>
+
<td>Execute the file with <code>-B1</code> temporarily in effect</td></tr>
<tr> <td valign="top"><code>-K</code><em>n</em></td>
- <td>&nbsp;</td>
- <td>&nbsp;</td>
- <td>&nbsp;</td>
+
<td>Limit the total amount of memory that the interpreter can have
allocated at any one time to <b><em>n</em></b>K bytes.
<b><em>n</em></b> is a positive decimal integer.</td></tr>
<tr> <td valign="top"><code>-M</code><em>n</em></td>
- <td>&nbsp;</td>
- <td>&nbsp;</td>
- <td>&nbsp;</td>
+
<td>Force the interpreter's allocator to acquire additional memory
in units of <b><em>n</em></b>K bytes, rather than the default
20K. <b><em>n</em></b> is a positive decimal integer, on
16-bit systems no greater than 63.</td></tr>
<tr> <td valign="top"><code>-N</code><em>n</em></td>
- <td>&nbsp;</td>
- <td>&nbsp;</td>
- <td>&nbsp;</td>
+
<td>Allocate space for <b><em>n</em></b>K names, rather than the
default (normally 64K). <b><em>n</em></b> may be greater than
64 only if <code>EXTEND_NAMES</code> was defined (in
inameidx.h) when the interpreter was compiled .</td></tr>
<tr> <td valign="top"><code>-Z</code><em>xxx</em><br><code>-Z-</code><em>xxx</em></td>
- <td>&nbsp;</td>
- <td>&nbsp;</td>
- <td>&nbsp;</td>
+
<td>Turn debugging printout on (off). Each of the <em>xxx</em>
characters selects an option. Case is significant: "a" and
"A" have different meanings.</td></tr>
+</table>
<dl compact>
<dt><code>0</code><dd>garbage collector, minimal detail</dd></dt>
@@ -4106,7 +4119,7 @@ storage with a marker (a1, c1, and f1 respectively)</dd></dt>
<dt><code>s</code><dd>the shading algorithm</dd></dt>
<dt><code>S</code><dd>the stroking algorithm</dd></dt>
</dl>
-</table>
+</blockquote>
<p>In addition, calling ghostscript with <code>--debug</code> will list all the currently
defined (non visual trace) debugging flags, both in their short form (as listed
@@ -4985,7 +4998,8 @@ e.g., <code>b0</code> becomes the same as <code>jisb0</code>.</p>
<h4><a name="X_regular_fonts"></a>Regular fonts</h4>
-<pre>AvantGarde-Book: -Adobe-ITC Avant Garde Gothic-Book-R-Normal--\n\
+<pre>
+ AvantGarde-Book: -Adobe-ITC Avant Garde Gothic-Book-R-Normal--\n\
AvantGarde-BookOblique: -Adobe-ITC Avant Garde Gothic-Book-O-Normal--\n\
AvantGarde-Demi: -Adobe-ITC Avant Garde Gothic-Demi-R-Normal--\n\
AvantGarde-DemiOblique: -Adobe-ITC Avant Garde Gothic-Demi-O-Normal--\n\
@@ -5197,7 +5211,7 @@ The second element is a dictionary with entries :</p>
<td>Absolute path to font file, or relative path to font file from the FontPath value,
being specified in <code>FAPIconfig</code>.</td></tr>
<tr> <td>FontType</td>
- <td>interger</td>
+ <td>integer</td>
<td>PostScript type for this font. Only 1 and 42 are currently allowed.
Note that this is unrelated to the real type of the font file -
the bridge will perform a format conversion.</td></tr>
@@ -5265,7 +5279,7 @@ The format is similar to <code>FAPIfontmap</code>,
<td>Absolute path to font file, or relative path to font file from the CIDFontPath value,
being specified in <code>FAPIconfig</code>.</td></tr>
<tr> <td>CIDFontType</td>
- <td>interger</td>
+ <td>integer</td>
<td>PostScript type for this CID font. Only 0, 1 and 2 are currently allowed.
Note that this is unrelated to the real type of the font file -
the bridge will perform format conversion.</td></tr>
@@ -5396,7 +5410,7 @@ PCLEOs. (see the FAPI-related source code for details).</p>
<hr>
<p>
-<small>Copyright &copy; 2000-2021 Artifex Software, Inc. All rights reserved.</small>
+<small>Copyright &copy; 2000-2022 Artifex Software, Inc. All rights reserved.</small>
<p>
This software is provided AS-IS with no warranty, either express or
@@ -5409,40 +5423,15 @@ or contact Artifex Software, Inc., 1305 Grant Avenue - Suite 200,
Novato, CA 94945, U.S.A., +1(415)492-9861, for further information.
<p>
-<small>Ghostscript version 9.55.0, 27 September 2021
+<small>Ghostscript version 9.56.0, 29 March 2022
<!-- [3.0 end visible trailer] ============================================= -->
<!--FINISH EDITING HERE-->
-
- </div>
- </div>
- </div>
-
- <div class="footer">
- <div class="row">
- <div class="col-7 footleft">
- <ul>
- <li><a href="https://artifex.com/contact-us/" target="blank">CONTACT US</a></li>
- <li><a href="https://artifex.com/about-us/" target="blank">ABOUT</a></li>
- <li><a href="https://ghostscript.com/security.html">SECURITY</a></li>
- </ul>
- </div>
- <div class="col-1 footcenter">
- <ul>
- <li><a href="https://artifex.com/support/" target="blank">SUPPORT</a></li>
- <li><a href="https://artifex.com/blog/artifex/" target="blank">BLOG</a></li>
- <li><a href="https://artifex.com/privacy-policy/" target="blank">PRIVACY</a></li>
- </ul>
- </div>
- <div class="col-ft-3 footright"><img src="images/Artifex_logo.png" width="194" height="40" alt=""/> <br>
- © Copyright 2019-2021 Artifex Software, Inc. <br>
- All rights reserved.
- </div>
- </div>
- </div>
-
- <script src="http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>
- <script src="index.js"></script>
+ </div><!-- close inner -->
+ </div><!-- close outer -->
+ </article>
+ </main>
+ <script src="site.js"></script>
</body>
</html>
diff --git a/doc/VectorDevices.htm b/doc/VectorDevices.htm
index 44e909c4..b532cb1a 100644
--- a/doc/VectorDevices.htm
+++ b/doc/VectorDevices.htm
@@ -1,74 +1,49 @@
<!doctype html>
-<html>
+<html lang="en">
<head>
-<meta charset="UTF-8">
-<meta name="viewport" content="width=device-width, initial-scale=1.0">
-<link href="https://fonts.googleapis.com/css?family=Source+Sans+Pro" rel="stylesheet">
-<link rel="shortcut icon" type="image/png" href="../../images/favicon.png">
-<title>High Level Output Devices</title>
-<link href="style.css" rel="stylesheet" type="text/css">
-<link href="gs-style.css" rel="stylesheet" type="text/css">
+ <meta http-equiv="content-type" content="text/html; charset=utf-8">
+ <meta name="viewport" content="user-scalable=yes, initial-scale=1, width=device-width">
+ <link href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:200,200i,300,300i,400,400i,600,600i,700,700i,900,900i" rel="stylesheet">
+ <link rel="shortcut icon" href="images/favicon.svg">
+ <title>High Level Output Devices</title>
+ <link href="default.css" rel="stylesheet" type="text/css">
</head>
<body>
-<!-- need to modify devices.htm and readme.htm to reflect new document -->
-
- <div class="header">
- <div class="row">
- <div class="col-lt-6 logo"><a href="https://www.ghostscript.com/"><img src="images/ghostscript_logo.png" width="108" height="119" alt=""></a></div>
- <div class="col-6"><div class="row"><div class="artifexlogo"><a href="https://artifex.com" target="_blank"><img src="images/Artifex_logo.png" width="194" height="40" alt=""></a></div>
- <div class="col-12"><div class="button button1"><a href="https://artifex.com/contact-us/" title="Contact Us" target="_blank">Contact Us</a></div>
- <div class="button button2 hidden-xs"><a href="https://www.ghostscript.com/download.html" title="Download">Download</a></div></div></div>
- </div>
- </div>
- </div>
-
- <div class="banner">
- <div class="row">
- <div class="col-12">High Level Output Devices</div>
- </div>
- </div>
-
- <div class="main">
- <div class="row">
- <div id="sidebar">
- <div class="sidebar-item"></div>
- <div class="col-2 leftnav">
- <ul>
- <li><a href="https://www.ghostscript.com/">Home</a></li>
- <li><a href="https://www.ghostscript.com/license.html">Licensing</a></li>
- <li><a href="https://www.ghostscript.com/releases.html">Releases</a></li>
- <li><a href="https://www.ghostscript.com/documentation.html" title="Documentation">Documentation</a></li>
- <li><a href="https://www.ghostscript.com/download.html" title="Download">Download</a></li>
- <li><a href="https://www.ghostscript.com/performance.html" title="Performance">Performance</a></li>
- <li><a href="http://jbig2dec.com/" title="jbig2dec">jbig2dec</a></li>
- <li><a href="http://git.ghostscript.com/?p=ghostpdl.git;a=summary">Source</a></li>
- <li><a href="http://bugs.ghostscript.com/">Bugs</a></li>
- <li><a href="https://www.ghostscript.com/faq.html" title="FAQ">FAQ</a></li>
- </ul>
- </div>
- </div>
- <div class="col-10 page">
+ <header><div class="title"><a href="index.html"><h1 aria-label="title">Ghostscript documentation</h1><h2 aria-label="version"></h2></a></div><a href="Search.htm" aria-label="Search" id="searchSite"><div class="search"></div></a></header>
+ <main>
+ <article>
+ <div class="outer">
+ <div class="inner">
<!--START EDITING HERE-->
-<h2>Table of contents</h2>
-
-<blockquote><ul>
-<li><a href="#Overview">Overview</a>
-<li><a href="#PXL">PCL-XL file output</a>
-<li><a href="#TXT">Text output</a>
-<li><a href="#DOCX">DOCX file output</a>
-<li><a href="#XPS">XPS file output</a>
-<li><a href="#PDFWRITE">PDF file output</a>
-<li><a href="#PS">PostScript file output</a>
-<li><a href="#EPS">EPS file output</a>
-<li><a href="#PDFX">PDF/X-3 file output</a>
-<li><a href="#PDFA">PDF/A file output</a>
-<li><a href="#PPD">Ghostscript PDF printer description</a>
-<li><a href="#Extensions">pdfmark extensions</a>
-<li><a href="#Limitations">Limitations</a>
-</ul></blockquote>
+<h1>High Level Output Devices</h1>
+
+<h2><a name="toc"></a>Table of contents</h2>
+<ul class="toc">
+ <li><a href="#Overview">Overview</a></li>
+ <li><a href="#PXL">PCL-XL file output</a></li>
+ <li><a href="#TXT">Text output</a></li>
+ <li><a href="#DOCX">DOCX file output</a></li>
+ <li><a href="#XPS">XPS file output</a></li>
+ <li><a href="#PDFWRITE">PDF file output</a></li>
+ <li>
+ <ul>
+ <li><a href="#COMMON">Common controls and features</a>
+ <li><a href="#PSPDF_IN">Controls and features specific to PostScript and PDF input</a>
+ <li><a href="#PXL_IN">Controls and features specific to PCL and PXL input</a>
+ <li><a href="#PDF">PDF file output</a>
+ <li><a href="#PS">PostScript file output</a>
+ <li><a href="#EPS">EPS file output</a>
+ </ul>
+ </li>
+ <li><a href="#PDFX">PDF/X-3 file output</a></li>
+ <li><a href="#PDFA">PDF/A file output</a></li>
+ <li><a href="#PPD">Ghostscript PDF printer description</a></li>
+ <li><a href="#Extensions">pdfmark extensions</a></li>
+ <li><a href="#Limitations">Limitations</a></li>
+</ul>
<!-- [1.2 end table of contents] =========================================== -->
@@ -158,7 +133,7 @@ contents unchanged, and pdfwrite performs these tasks well.
<p>The <tt>pxlmono</tt> and <tt>pxlcolor</tt> devices output HP PCL-XL,
a graphic language understood by many recent laser printers.
-<h4>Options</h4>
+<h3>Options</h3>
<blockquote>
<dl>
<dt><code>-dCompressMode=<em>1 | 2 | 3</em></code> (default is 1)
@@ -173,21 +148,21 @@ and masks continues to be compressed with RLE.
<p> The txtwrite device will output the text contained in the original
document as Unicode.
-<h4>Options</h4>
+<h3>Options</h3>
<blockquote>
<dl>
-<dt><code>-dTextFormat=<em>0 | 1 | 2 | 3 | 4 </em></code> (default is 3)
-<p><dd>Format 0 is intended for use by developers and outputs XML-escaped Unicode
+<dt><code>-dTextFormat=<em>0 | 1 | 2 | 3 | 4 </em></code> (default is 3)</dt>
+ <dd>Format 0 is intended for use by developers and outputs XML-escaped Unicode
along with information regarding the format of the text (position, font name,
point size, etc). The XML output is the same format as the MuPDF output, but
-no additional processing is performed on the content, so no block detection.</dd></p>
-<p><dd>Format 1 uses the same XML output format, but attempts similar processing to
+no additional processing is performed on the content, so no block detection.<p></dd>
+<dd>Format 1 uses the same XML output format, but attempts similar processing to
MuPDF, and will output blocks of text. Note the algorithm used is not the same
-as the MuPDF code, and so the results will not be identical.</dd></p>
-<p><dd>Format 2 outputs Unicode (UCS2) text (with a Byte Order Mark) which
-approximates the layout of the text in the original document.</dd></p>
-<p><dd>Format 3 is the same as format 2, but the text is encoded in UTF-8.</dd></p>
-<p><dd>Format 4 is internal format similar to Format 0 but with extra information.</dd></p>
+as the MuPDF code, and so the results will not be identical.<p></dd>
+<dd>Format 2 outputs Unicode (UCS2) text (with a Byte Order Mark) which
+approximates the layout of the text in the original document.<p></dd>
+<dd>Format 3 is the same as format 2, but the text is encoded in UTF-8.<p></dd>
+<dd>Format 4 is internal format similar to Format 0 but with extra information.<p></dd>
</dl></blockquote>
<p>
@@ -326,97 +301,97 @@ Cells in the table below containing '=' mean that the value of the parameter is
<blockquote>
<table>
<tr>
-<th align="left">Parameter name</th>
-<th></th>
-<th align="left">Notes</th>
-<th></th>
-<th align="left">default</th>
-<th></th>
-<th align="left">screen</th>
-<th></th>
-<th align="left">ebook</th>
-<th></th>
-<th align="left">printer</th>
-<th></th>
-<th align="left">prepress</th>
-<tr>
-<tr valign=top><td><code>AlwaysEmbed</code><td><td><a href="#note_13">(13)</a><td><td>[ ]<td><td>=<td><td>=<td><td>=<td><td>=
-<tr valign=top><td><code>AntiAliasColorImages</code><td><td><a href="#note_0">(0)</a><td><td>false<td><td>=<td><td>=<td><td>=<td><td>=
-<tr valign=top><td><code>AntiAliasGrayImages</code><td><td><a href="#note_0">(0)</a><td><td>false<td><td>=<td><td>=<td><td>=<td><td>=
-<tr valign=top><td><code>AntiAliasMonoImages</code><td><td><a href="#note_0">(0)</a><td><td>false<td><td>=<td><td>=<td><td>=<td><td>=
-<tr valign=top><td><code>ASCII85EncodePages</code><td><td><td><td>false<td><td>=<td><td>=<td><td>=<td><td>=
-<tr valign=top><td><code>AutoFilterColorImages</code><td><td><a href="#note_1">(1)</a><td><td>true<td><td>=<td><td>=<td><td>=<td><td>=
-<tr valign=top><td><code>AutoFilterGrayImages</code><td><td><a href="#note_1">(1)</a><td><td>true<td><td>=<td><td>=<td><td>=<td><td>=
-<tr valign=top><td><code>AutoPositionEPSFiles</code><td><td><a href="#note_0">(0)</a><td><td>true<td><td>=<td><td>=<td><td>=<td><td>=
-<tr valign=top><td><code>AutoRotatePages</code><td><td><td><td>/PageByPage<td><td>/PageByPage<td><td>/All<td><td>/None<td><td>/None
-<tr valign=top><td><code>Binding</code><td><td><a href="#note_0">(0)</a><td><td>/Left<td><td>=<td><td>=<td><td>=<td><td>=
-<tr valign=top><td><code>CalCMYKProfile</code><td><td><a href="#note_0">(0)</a><td><td>()<td><td>=<td><td>=<td><td>=<td><td>=
-<tr valign=top><td><code>CalGrayProfile</code><td><td><a href="#note_0">(0)</a><td><td>()<td><td>=<td><td>=<td><td>=<td><td>=
-<tr valign=top><td><code>CalRGBProfile</code><td><td><a href="#note_0">(0)</a><td><td>()<td><td>=<td><td>=<td><td>=<td><td>=
-<tr valign=top><td><code>CannotEmbedFontPolicy</code><td><td><a href="#note_0">(0)</a><td><td>/Warning<td><td>/Warning<td><td>/Warning<td><td>/Warning<td><td>/Error
-<tr valign=top><td><code>ColorACSImageDict</code><td><td><a href="#note_13">(13)</a><td><td><a href="#note_7">(note 7)</a><td><td><a href="#note_10">(note 10)</a><td><td><a href="#note_10">(note 10)</a><td><td><a href="#note_8">(note 8)</a><td><td><a href="#note_9">(note 9)</a>
-<tr valign=top><td><code>ColorConversionStrategy</code><td><td><a href="#note_6">(6)</a><td><td>LeaveColorUnchanged<td><td>RGB<td><td>RGB<td><td>UseDeviceIndependentColor<td><td>LeaveColorUnchanged
-<tr valign=top><td><code>ColorImageDepth</code><td><td><td><td>-1<td><td>=<td><td>=<td><td>=<td><td>=
-<tr valign=top><td><code>ColorImageDict</code><td><td><a href="#note_13">(13)</a><td><td><a href="#note_7">(note 7)</a><td><td>=<td><td>=<td><td>=<td><td>=
-<tr valign=top><td><code>ColorImageFilter</code><td><td><td><td>/DCTEncode<td><td>=<td><td>=<td><td>=<td><td>=
-<tr valign=top><td><code>ColorImageDownsampleThreshold</code><td><td><td><td>1.5<td><td>=<td><td>=<td><td>=<td><td>=
-<tr valign=top><td><code>ColorImageDownsampleType</code><td><td><a href="#note_3">(3)</a><td><td>/Subsample<td><td>/Average<td><td>/Average<td><td>/Average<td><td>/Bicubic
-<tr valign=top><td><code>ColorImageResolution</code><td><td><td><td>72<td><td>72<td><td>150<td><td>300<td><td>300
-<tr valign=top><td><code>CompatibilityLevel</code><td><td><td><td>1.7<td><td>1.5<td><td>1.5<td><td>1.7<td><td>1.7
-<tr valign=top><td><code>CompressPages</code><td><td><a href="#note_14">(14)</a><td><td>true<td><td>=<td><td>=<td><td>=<td><td>=
-<tr valign=top><td><code>ConvertCMYKImagesToRGB</code><td><td><td><td>false<td><td>=<td><td>=<td><td>=<td><td>=
-<tr valign=top><td><code>ConvertImagesToIndexed</code><td><td><a href="#note_0">(0)</a><td><td>false<td><td>=<td><td>=<td><td>=<td><td>=
-<tr valign=top><td><code>CoreDistVersion</code><td><td><td><td>4000<td><td>=<td><td>=<td><td>=<td><td>=
-<tr valign=top><td><code>CreateJobTicket</code><td><td><a href="#note_0">(0)</a><td><td>false<td><td>false<td><td>false<td><td>true<td><td>true
-<tr valign=top><td><code>DefaultRenderingIntent</code><td><td><td><td>/Default<td><td>=<td><td>=<td><td>=<td><td>=
-<tr valign=top><td><code>DetectBlends</code><td><td><a href="#note_0">(0)</a><td><td>true<td><td>=<td><td>=<td><td>=<td><td>=
-<tr valign=top><td><code>DoThumbnails</code><td><td><a href="#note_0">(0)</a><td><td>false<td><td>false<td><td>false<td><td>false<td><td>true
-<tr valign=top><td><code>DownsampleColorImages</code><td><td><td><td>false<td><td>true<td><td>true<td><td>false<td><td>false
-<tr valign=top><td><code>DownsampleGrayImages</code><td><td><td><td>false<td><td>true<td><td>true<td><td>false<td><td>false
-<tr valign=top><td><code>DownsampleMonoImages</code><td><td><td><td>false<td><td>true<td><td>true<td><td>false<td><td>false
-<tr valign=top><td><code>EmbedAllFonts</code><td><td><td><td>true<td><td>false<td><td>true<td><td>true<td><td>true
-<tr valign=top><td><code>EmitDSCWarnings</code><td><td><a href="#note_0">(0)</a><td><td>false<td><td>=<td><td>=<td><td>=<td><td>=
-<tr valign=top><td><code>EncodeColorImages</code><td><td><td><td>true<td><td>=<td><td>=<td><td>=<td><td>=
-<tr valign=top><td><code>EncodeGrayImages</code><td><td><td><td>true<td><td>=<td><td>=<td><td>=<td><td>=
-<tr valign=top><td><code>EncodeMonoImages</code><td><td><td><td>true<td><td>=<td><td>=<td><td>=<td><td>=
-<tr valign=top><td><code>EndPage</code><td><td><a href="#note_0">(0)</a><td><td>-1<td><td>=<td><td>=<td><td>=<td><td>=
-<tr valign=top><td><code>GrayACSImageDict</code><td><td><a href="#note_13">(13)</a><td><td><a href="#note_7">(note 7)</a><td><td><a href="#note_7">(note 7)</a><td><td><a href="#note_10">(note 10)</a><td><td><a href="#note_8">(note 8)</a><td><td><a href="#note_9">(note 9)</a>
-<tr valign=top><td><code>GrayImageDepth</code><td><td><td><td>-1<td><td>=<td><td>=<td><td>=<td><td>=
-<tr valign=top><td><code>GrayImageDict</code><td><td><a href="#note_13">(13)</a><td><td><a href="#note_7">(note 7)</a><td><td>=<td><td>=<td><td>=<td><td>=
-<tr valign=top><td><code>GrayImageDownsampleThreshold</code><td><td><td><td>1.5<td><td>=<td><td>=<td><td>=<td><td>=
-<tr valign=top><td><code>GrayImageDownsampleType</code><td><td><a href="#note_3">(3)</a><td><td>/Subsample<td><td>/Average<td><td>/Bicubic<td><td>/Bicubic<td><td>/Bicubic
-<tr valign=top><td><code>GrayImageFilter</code><td><td><td><td>/DCTEncode<td><td>=<td><td>=<td><td>=<td><td>=
-<tr valign=top><td><code>GrayImageResolution</code><td><td><td><td>72<td><td>72<td><td>150<td><td>300<td><td>300
-<tr valign=top><td><code>ImageMemory</code><td><td><a href="#note_0">(0)</a><td><td>524288<td><td>=<td><td>=<td><td>=<td><td>=
-<tr valign=top><td><code>LockDistillerParams</code><td><td><td><td>false<td><td>=<td><td>=<td><td>=<td><td>=
-<tr valign=top><td><code>LZWEncodePages</code><td><td><a href="#note_2">(2)</a><td><td>false<td><td>=<td><td>=<td><td>=<td><td>=
-<tr valign=top><td><code>MaxSubsetPct</code><td><td><td><td>100<td><td>=<td><td>=<td><td>=<td><td>=
-<tr valign=top><td><code>MonoImageDepth</code><td><td><td><td>-1<td><td>=<td><td>=<td><td>=<td><td>=
-<tr valign=top><td><code>MonoImageDict</code><td><td><a href="#note_13">(13)</a><td><td>&lt;&lt;K -1&gt;&gt;<td><td>=<td><td>=<td><td>=<td><td>=
-<tr valign=top><td><code>MonoImageDownsampleThreshold</code><td><td><td><td>1.5<td><td>=<td><td>=<td><td>=<td><td>=
-<tr valign=top><td><code>MonoImageDownsampleType</code><td><td><td><td>/Subsample<td><td>/Subsample<td><td>/Subsample<td><td>/Subsample<td><td>/Subsample
-<tr valign=top><td><code>MonoImageFilter</code><td><td><td><td>/CCITTFaxEncode<td><td>=<td><td>=<td><td>=<td><td>=
-<tr valign=top><td><code>MonoImageResolution</code><td><td><td><td>300<td><td>300<td><td>300<td><td>1200<td><td>1200
-<tr valign=top><td><code>NeverEmbed</code><td><td><a href="#note_13">(13)</a><td><td><a href="#note_11">(note 11)</a><a href="#note_12">(note 12)</a><td><td><a href="#note_11">(note 11)</a><a href="#note_12">(note 12)</a><td><td><a href="#note_11">(note 11)</a><a href="#note_12">(note 12)</a><td><td>[ ]<a href="#note_12">(note 12)</a><td><td>[ ]<a href="#note_12">(note 12)</a>
-<tr valign=top><td><code>OffOptimizations</code><td><td><td><td>0<td><td>=<td><td>=<td><td>=<td><td>=
-<tr valign=top><td><code>OPM</code><td><td><td><td>1<td><td>=<td><td>=<td><td>=<td><td>=
-<tr valign=top><td><code>Optimize</code><td><td><a href="#note_0">(0</a>,<a href="#note_5">5)</a><td><td>false<td><td>true<td><td>true<td><td>true<td><td>true
-<tr valign=top><td><code>ParseDSCComments</code><td><td><td><td>true<td><td>=<td><td>=<td><td>=<td><td>=
-<tr valign=top><td><code>ParseDSCCommentsForDocInfo</code><td><td><td><td>true<td><td>=<td><td>=<td><td>=<td><td>=
-<tr valign=top><td><code>PreserveCopyPage</code><td><td><a href="#note_0">(0)</a><td><td>true<td><td>=<td><td>=<td><td>=<td><td>=
-<tr valign=top><td><code>PreserveEPSInfo</code><td><td><a href="#note_0">(0)</a><td><td>true<td><td>=<td><td>=<td><td>=<td><td>=
-<tr valign=top><td><code>PreserveHalftoneInfo</code><td><td><td><td>false<td><td>=<td><td>=<td><td>=<td><td>=
-<tr valign=top><td><code>PreserveOPIComments</code><td><td><a href="#note_0">(0)</a><td><td>false<td><td>false<td><td>false<td><td>true<td><td>true
-<tr valign=top><td><code>PreserveOverprintSettings</code><td><td><td><td>false<td><td>false<td><td>false<td><td>true<td><td>true
-<tr valign=top><td><code>sRGBProfile</code><td><td><a href="#note_0">(0)</a><td><td>()<td><td>=<td><td>=<td><td>=<td><td>=
-<tr valign=top><td><code>StartPage</code><td><td><a href="#note_0">(0)</a><td><td>1<td><td>=<td><td>=<td><td>=<td><td>=
-<tr valign=top><td><code>SubsetFonts</code><td><td><td><td>true<td><td>=<td><td>=<td><td>=<td><td>=
-<tr valign=top><td><code>TransferFunctionInfo</code><td><td><a href="#note_4">(4)</a><td><td>/Preserve<td><td>=<td><td>=<td><td>=<td><td>=
-<tr valign=top><td><code>UCRandBGInfo</code><td><td><td><td>/Remove<td><td>/Remove<td><td>/Remove<td><td>/Preserve<td><td>/Preserve
-<tr valign=top><td><code>UseFlateCompression</code><td><td><a href="#note_2">(2)</a><td><td>true<td><td>=<td><td>=<td><td>=<td><td>=
-<tr valign=top><td><code>UsePrologue</code><td><td><a href="#note_0">(0)</a><td><td>false<td><td>=<td><td>=<td><td>=<td><td>=
-<tr valign=top><td><code>PassThroughJPEGImages</code><td><td><a href="#note_15">(15)</a><td><td>true<td><td>=<td><td>=<td><td>=<td><td>=
-<tr valign=top><td><code>PassThroughJPXImages</code><td><td><a href="#note_16">(16)</a><td><td>true<td><td>=<td><td>=<td><td>=<td><td>=
+<th align="left" style="width:31%">Parameter name</th>
+
+<th align="left" style="width:11.5%">Notes</th>
+
+<th align="left" style="width:11.5%">default</th>
+
+<th align="left" style="width:11.5%">screen</th>
+
+<th align="left" style="width:11.5%">ebook</th>
+
+<th align="left" style="width:11.5%">printer</th>
+
+<th align="left" style="width:11.5%">prepress</th>
+</tr>
+<tr valign=top><td><code>AlwaysEmbed</code></td><td><a href="#note_13">(13)</a></td><td>[ ]</td><td>=</td><td>=</td><td>=</td><td>=</td></tr>
+<tr valign=top><td><code>AntiAliasColorImages</code></td><td><a href="#note_0">(0)</a></td><td>false</td><td>=</td><td>=</td><td>=</td><td>=</td></tr>
+<tr valign=top><td><code>AntiAliasGrayImages</code></td><td><a href="#note_0">(0)</a></td><td>false</td><td>=</td><td>=</td><td>=</td><td>=</td></tr>
+<tr valign=top><td><code>AntiAliasMonoImages</code></td><td><a href="#note_0">(0)</a></td><td>false</td><td>=</td><td>=</td><td>=</td><td>=</td></tr>
+<tr valign=top><td><code>ASCII85EncodePages</code></td><td></td><td>false</td><td>=</td><td>=</td><td>=</td><td>=</td></tr>
+<tr valign=top><td><code>AutoFilterColorImages</code></td><td><a href="#note_1">(1)</a></td><td>true</td><td>=</td><td>=</td><td>=</td><td>=</td></tr>
+<tr valign=top><td><code>AutoFilterGrayImages</code></td><td><a href="#note_1">(1)</a></td><td>true</td><td>=</td><td>=</td><td>=</td><td>=</td></tr>
+<tr valign=top><td><code>AutoPositionEPSFiles</code></td><td><a href="#note_0">(0)</a></td><td>true</td><td>=</td><td>=</td><td>=</td><td>=</td></tr>
+<tr valign=top><td><code>AutoRotatePages</code></td><td></td><td>/PageByPage</td><td>/PageByPage</td><td>/All</td><td>/None</td><td>/None</td></tr>
+<tr valign=top><td><code>Binding</code></td><td><a href="#note_0">(0)</a></td><td>/Left</td><td>=</td><td>=</td><td>=</td><td>=</td></tr>
+<tr valign=top><td><code>CalCMYKProfile</code></td><td><a href="#note_0">(0)</a></td><td>()</td><td>=</td><td>=</td><td>=</td><td>=</td></tr>
+<tr valign=top><td><code>CalGrayProfile</code></td><td><a href="#note_0">(0)</a></td><td>()</td><td>=</td><td>=</td><td>=</td><td>=</td></tr>
+<tr valign=top><td><code>CalRGBProfile</code></td><td><a href="#note_0">(0)</a></td><td>()</td><td>=</td><td>=</td><td>=</td><td>=</td></tr>
+<tr valign=top><td><code>CannotEmbedFontPolicy</code></td><td><a href="#note_0">(0)</a></td><td>/Warning</td><td>/Warning</td><td>/Warning</td><td>/Warning</td><td>/Error</td></tr>
+<tr valign=top><td><code>ColorACSImageDict</code></td><td><a href="#note_13">(13)</a></td><td><a href="#note_7">(note 7)</a></td><td><a href="#note_10">(note 10)</a></td><td><a href="#note_10">(note 10)</a></td><td><a href="#note_8">(note 8)</a></td><td><a href="#note_9">(note 9)</a></td></tr>
+<tr valign=top><td><code>ColorConversionStrategy</code></td><td><a href="#note_6">(6)</a></td><td>LeaveColorUnchanged</td><td>RGB</td><td>RGB</td><td>UseDeviceIndependentColor</td><td>LeaveColorUnchanged</td></tr>
+<tr valign=top><td><code>ColorImageDepth</code></td><td></td><td>-1</td><td>=</td><td>=</td><td>=</td><td>=</td></tr>
+<tr valign=top><td><code>ColorImageDict</code></td><td><a href="#note_13">(13)</a></td><td><a href="#note_7">(note 7)</a></td><td>=</td><td>=</td><td>=</td><td>=</td></tr>
+<tr valign=top><td><code>ColorImageFilter</code></td><td></td><td>/DCTEncode</td><td>=</td><td>=</td><td>=</td><td>=</td></tr>
+<tr valign=top><td><code>ColorImageDownsampleThreshold</code></td><td></td><td>1.5</td><td>=</td><td>=</td><td>=</td><td>=</td></tr>
+<tr valign=top><td><code>ColorImageDownsampleType</code></td><td><a href="#note_3">(3)</a></td><td>/Subsample</td><td>/Average</td><td>/Average</td><td>/Average</td><td>/Bicubic</td></tr>
+<tr valign=top><td><code>ColorImageResolution</code></td><td></td><td>72</td><td>72</td><td>150</td><td>300</td><td>300</td></tr>
+<tr valign=top><td><code>CompatibilityLevel</code></td><td></td><td>1.7</td><td>1.5</td><td>1.5</td><td>1.7</td><td>1.7</td></tr>
+<tr valign=top><td><code>CompressPages</code></td><td><a href="#note_14">(14)</a></td><td>true</td><td>=</td><td>=</td><td>=</td><td>=</td></tr>
+<tr valign=top><td><code>ConvertCMYKImagesToRGB</code></td><td></td><td>false</td><td>=</td><td>=</td><td>=</td><td>=</td></tr>
+<tr valign=top><td><code>ConvertImagesToIndexed</code></td><td><a href="#note_0">(0)</a></td><td>false</td><td>=</td><td>=</td><td>=</td><td>=</td></tr>
+<tr valign=top><td><code>CoreDistVersion</code></td><td></td><td>4000</td><td>=</td><td>=</td><td>=</td><td>=</td></tr>
+<tr valign=top><td><code>CreateJobTicket</code></td><td><a href="#note_0">(0)</a></td><td>false</td><td>false</td><td>false</td><td>true</td><td>true</td></tr>
+<tr valign=top><td><code>DefaultRenderingIntent</code></td><td></td><td>/Default</td><td>=</td><td>=</td><td>=</td><td>=</td></tr>
+<tr valign=top><td><code>DetectBlends</code></td><td><a href="#note_0">(0)</a></td><td>true</td><td>=</td><td>=</td><td>=</td><td>=</td></tr>
+<tr valign=top><td><code>DoThumbnails</code></td><td><a href="#note_0">(0)</a></td><td>false</td><td>false</td><td>false</td><td>false</td><td>true</td></tr>
+<tr valign=top><td><code>DownsampleColorImages</code></td><td></td><td>false</td><td>true</td><td>true</td><td>false</td><td>false</td></tr>
+<tr valign=top><td><code>DownsampleGrayImages</code></td><td></td><td>false</td><td>true</td><td>true</td><td>false</td><td>false</td></tr>
+<tr valign=top><td><code>DownsampleMonoImages</code></td><td></td><td>false</td><td>true</td><td>true</td><td>false</td><td>false</td></tr>
+<tr valign=top><td><code>EmbedAllFonts</code></td><td></td><td>true</td><td>false</td><td>true</td><td>true</td><td>true</td></tr>
+<tr valign=top><td><code>EmitDSCWarnings</code></td><td><a href="#note_0">(0)</a></td><td>false</td><td>=</td><td>=</td><td>=</td><td>=</td></tr>
+<tr valign=top><td><code>EncodeColorImages</code></td><td></td><td>true</td><td>=</td><td>=</td><td>=</td><td>=</td></tr>
+<tr valign=top><td><code>EncodeGrayImages</code></td><td></td><td>true</td><td>=</td><td>=</td><td>=</td><td>=</td></tr>
+<tr valign=top><td><code>EncodeMonoImages</code></td><td></td><td>true</td><td>=</td><td>=</td><td>=</td><td>=</td></tr>
+<tr valign=top><td><code>EndPage</code></td><td><a href="#note_0">(0)</a></td><td>-1</td><td>=</td><td>=</td><td>=</td><td>=</td></tr>
+<tr valign=top><td><code>GrayACSImageDict</code></td><td><a href="#note_13">(13)</a></td><td><a href="#note_7">(note 7)</a></td><td><a href="#note_7">(note 7)</a></td><td><a href="#note_10">(note 10)</a></td><td><a href="#note_8">(note 8)</a></td><td><a href="#note_9">(note 9)</a></td></tr>
+<tr valign=top><td><code>GrayImageDepth</code></td><td></td><td>-1</td><td>=</td><td>=</td><td>=</td><td>=</td></tr>
+<tr valign=top><td><code>GrayImageDict</code></td><td><a href="#note_13">(13)</a></td><td><a href="#note_7">(note 7)</a></td><td>=</td><td>=</td><td>=</td><td>=</td></tr>
+<tr valign=top><td><code>GrayImageDownsampleThreshold</code></td><td></td><td>1.5</td><td>=</td><td>=</td><td>=</td><td>=</td></tr>
+<tr valign=top><td><code>GrayImageDownsampleType</code></td><td><a href="#note_3">(3)</a></td><td>/Subsample</td><td>/Average</td><td>/Bicubic</td><td>/Bicubic</td><td>/Bicubic</td></tr>
+<tr valign=top><td><code>GrayImageFilter</code></td><td></td><td>/DCTEncode</td><td>=</td><td>=</td><td>=</td><td>=</td></tr>
+<tr valign=top><td><code>GrayImageResolution</code></td><td></td><td>72</td><td>72</td><td>150</td><td>300</td><td>300</td></tr>
+<tr valign=top><td><code>ImageMemory</code></td><td><a href="#note_0">(0)</a></td><td>524288</td><td>=</td><td>=</td><td>=</td><td>=</td></tr>
+<tr valign=top><td><code>LockDistillerParams</code></td><td></td><td>false</td><td>=</td><td>=</td><td>=</td><td>=</td></tr>
+<tr valign=top><td><code>LZWEncodePages</code></td><td><a href="#note_2">(2)</a></td><td>false</td><td>=</td><td>=</td><td>=</td><td>=</td></tr>
+<tr valign=top><td><code>MaxSubsetPct</code></td><td></td><td>100</td><td>=</td><td>=</td><td>=</td><td>=</td></tr>
+<tr valign=top><td><code>MonoImageDepth</code></td><td></td><td>-1</td><td>=</td><td>=</td><td>=</td><td>=</td></tr>
+<tr valign=top><td><code>MonoImageDict</code></td><td><a href="#note_13">(13)</a></td><td>&lt;&lt;K -1&gt;&gt;</td><td>=</td><td>=</td><td>=</td><td>=</td></tr>
+<tr valign=top><td><code>MonoImageDownsampleThreshold</code></td><td></td><td>1.5</td><td>=</td><td>=</td><td>=</td><td>=</td></tr>
+<tr valign=top><td><code>MonoImageDownsampleType</code></td><td></td><td>/Subsample</td><td>/Subsample</td><td>/Subsample</td><td>/Subsample</td><td>/Subsample</td></tr>
+<tr valign=top><td><code>MonoImageFilter</code></td><td></td><td>/CCITTFaxEncode</td><td>=</td><td>=</td><td>=</td><td>=</td></tr>
+<tr valign=top><td><code>MonoImageResolution</code></td><td></td><td>300</td><td>300</td><td>300</td><td>1200</td><td>1200</td></tr>
+<tr valign=top><td><code>NeverEmbed</code></td><td><a href="#note_13">(13)</a></td><td><a href="#note_11">(note 11)</a><a href="#note_12">(note 12)</a></td><td><a href="#note_11">(note 11)</a><a href="#note_12">(note 12)</a></td><td><a href="#note_11">(note 11)</a><a href="#note_12">(note 12)</a></td><td>[ ]<a href="#note_12">(note 12)</a></td><td>[ ]<a href="#note_12">(note 12)</a></td></tr>
+<tr valign=top><td><code>OffOptimizations</code></td><td></td><td>0</td><td>=</td><td>=</td><td>=</td><td>=</td></tr>
+<tr valign=top><td><code>OPM</code></td><td></td><td>1</td><td>=</td><td>=</td><td>=</td><td>=</td></tr>
+<tr valign=top><td><code>Optimize</code></td><td><a href="#note_0">(0</a>,<a href="#note_5">5)</a></td><td>false</td><td>true</td><td>true</td><td>true</td><td>true</td></tr>
+<tr valign=top><td><code>ParseDSCComments</code></td><td></td><td>true</td><td>=</td><td>=</td><td>=</td><td>=</td></tr>
+<tr valign=top><td><code>ParseDSCCommentsForDocInfo</code></td><td></td><td>true</td><td>=</td><td>=</td><td>=</td><td>=</td></tr>
+<tr valign=top><td><code>PreserveCopyPage</code></td><td><a href="#note_0">(0)</a></td><td>true</td><td>=</td><td>=</td><td>=</td><td>=</td></tr>
+<tr valign=top><td><code>PreserveEPSInfo</code></td><td><a href="#note_0">(0)</a></td><td>true</td><td>=</td><td>=</td><td>=</td><td>=</td></tr>
+<tr valign=top><td><code>PreserveHalftoneInfo</code></td><td></td><td>false</td><td>=</td><td>=</td><td>=</td><td>=</td></tr>
+<tr valign=top><td><code>PreserveOPIComments</code></td><td><a href="#note_0">(0)</a></td><td>false</td><td>false</td><td>false</td><td>true</td><td>true</td></tr>
+<tr valign=top><td><code>PreserveOverprintSettings</code></td><td></td><td>false</td><td>false</td><td>false</td><td>true</td><td>true</td></tr>
+<tr valign=top><td><code>sRGBProfile</code></td><td><a href="#note_0">(0)</a></td><td>()</td><td>=</td><td>=</td><td>=</td><td>=</td></tr>
+<tr valign=top><td><code>StartPage</code></td><td><a href="#note_0">(0)</a></td><td>1</td><td>=</td><td>=</td><td>=</td><td>=</td></tr>
+<tr valign=top><td><code>SubsetFonts</code></td><td></td><td>true</td><td>=</td><td>=</td><td>=</td><td>=</td></tr>
+<tr valign=top><td><code>TransferFunctionInfo</code></td><td><a href="#note_4">(4)</a></td><td>/Preserve</td><td>=</td><td>=</td><td>=</td><td>=</td></tr>
+<tr valign=top><td><code>UCRandBGInfo</code></td><td></td><td>/Remove</td><td>/Remove</td><td>/Remove</td><td>/Preserve</td><td>/Preserve</td></tr>
+<tr valign=top><td><code>UseFlateCompression</code></td><td><a href="#note_2">(2)</a></td><td>true</td><td>=</td><td>=</td><td>=</td><td>=</td></tr>
+<tr valign=top><td><code>UsePrologue</code></td><td><a href="#note_0">(0)</a></td><td>false</td><td>=</td><td>=</td><td>=</td><td>=</td></tr>
+<tr valign=top><td><code>PassThroughJPEGImages</code></td><td><a href="#note_15">(15)</a></td><td>true</td><td>=</td><td>=</td><td>=</td><td>=</td></tr>
+<tr valign=top><td><code>PassThroughJPXImages</code></td><td><a href="#note_16">(16)</a></td><td>true</td><td>=</td><td>=</td><td>=</td><td>=</td></tr>
</table></blockquote>
<p>
@@ -640,25 +615,25 @@ can be disabled by setting <code>-dParseDSCComments=false</code>.
<p>
<h3><a name="PSPDF_IN"></a>Controls and features specific to PostScript and PDF input</h3>
-<dt><code>-dPDFSETTINGS=</code><em>configuration</em>
-<dd>Presets the "distiller parameters" to one of four predefined settings:
-
+<dl><dt><code>-dPDFSETTINGS=</code><em>configuration</em></dt>
+<dd>Presets the "distiller parameters" to one of four predefined settings:</dd>
+</dl>
<ul>
<li><code>/screen</code> selects low-resolution output similar to the
-Acrobat Distiller (up to version X) "Screen Optimized" setting.
+Acrobat Distiller (up to version X) "Screen Optimized" setting.</li>
<li><code>/ebook</code> selects medium-resolution output similar to the
-Acrobat Distiller (up to version X) "eBook" setting.
+Acrobat Distiller (up to version X) "eBook" setting.</li>
<li><code>/printer</code> selects output similar to the Acrobat Distiller
-"Print Optimized" (up to version X) setting.
+"Print Optimized" (up to version X) setting.</li>
<li><code>/prepress</code> selects output similar to Acrobat Distiller
-"Prepress Optimized" (up to version X) setting.
+"Prepress Optimized" (up to version X) setting.</li>
<li><code>/default</code> selects output intended to be useful across a
-wide variety of uses, possibly at the expense of a larger output file.
+wide variety of uses, possibly at the expense of a larger output file.</li>
</ul>
<p>
@@ -668,6 +643,7 @@ names of the PDFSETTINGS parameters. The precise value for each control is liste
in the table <a href="#distillerparams">above</a>.
</p>
+<dl><dt></dt>
<dd>Please be aware that the <code>/prepress</code> setting does <b>not</b> indicate
the highest quality conversion. Using any of these presets will involve altering the
input, and as such may result in a PDF of poorer quality (compared to the input) than
@@ -680,6 +656,7 @@ output will be altered in a variety of ways from the input. It is usually better
adjust the controls individually (see the table below) if you have a genuine requirement to produce,
for example, a PDF file where the images are reduced in resolution.
</dd>
+</dl>
<h3><a name="PXL_IN"></a>Controls and features specific to PCL and PXL input</h3>
<p>
@@ -752,6 +729,7 @@ ESC%-12345X
</p>
<h3><a name="PDF"></a>PDF file output</h3>
+<dl>
<dt><code>-dMaxInlineImageSize=</code><em>integer</em>
<dd>Specifies the maximum size of an inline image, in bytes. For images larger
than this size, <code>pdfwrite</code> will create an XObject instead of embedding
@@ -760,7 +738,7 @@ The default value is <code>4000</code>.
Note that redundant inline images must be embedded each time they occur in the
document, while multiple references can be made to a single XObject image. Therefore
it may be advantageous to set a small or zero value if the source document is expected
-to contain multiple identical images, reducing the size of the generated PDF.
+to contain multiple identical images, reducing the size of the generated PDF.<p></dd>
<dt><code>-dDoNumCopies</code>
<dd>When present, causes pdfwrite to use the #copies or /NumCopies entry in the page
@@ -768,10 +746,17 @@ device dictionary to duplicate each page in the output PDF file as many times as
the 'copies' value. This is intended for use by workflow applications like CUPS
and should not be used for generating general purpose PDF files. In particular any
pdfmark operations which rely on page numbers, such as Link or Outline annotations
-will not work correctly with this flag.
+will not work correctly with this flag.<p></dd>
<dt><code>-dDetectDuplicateImages</code>
-<dd> Takes a Boolean argument, when set to true (the default) pdfwrite will compare all new images with all the images encountered to date (NOT small images which are stored in-line) to see if the new image is a duplicate of an earlier one. If it is a duplicate then instead of writing a new image into the PDF file, the PDF will reuse the reference to the earlier image. This can considerably reduce the size of the output PDF file, but increases the time taken to process the file. This time grows exponentially as more images are added, and on large input files with numerous images can be prohibitively slow. Setting this to false will improve performance at the cost of final file size.
+<dd> Takes a Boolean argument, when set to true (the default) pdfwrite will compare all new
+ images with all the images encountered to date (NOT small images which are stored in-line) to see if the new image
+ is a duplicate of an earlier one. If it is a duplicate then instead of writing a new image into the PDF file,
+ the PDF will reuse the reference to the earlier image.
+ This can considerably reduce the size of the output PDF file, but increases the
+ time taken to process the file.
+ This time grows exponentially as more images are added, and on large input files with
+ numerous images can be prohibitively slow. Setting this to false will improve performance at the cost of final file size.<p></dd>
<dt><code>-dFastWebView</code>
<dd> Takes a Boolean argument, default is false. When set to true pdfwrite will
@@ -779,86 +764,99 @@ reorder the output PDF file to conform to the Adobe 'linearised' PDF specificati
The Acrobat user interface refers to this as 'Optimised for Fast Web Viewing'.
Note that this will cause the conversion to PDF to be slightly slower and will
usually result in a slightly larger PDF file.</dd>
-<dd>This option is incompatible with producing an encrypted (password protected) PDF file.</dd>
+<dd>This option is incompatible with producing an encrypted (password protected) PDF file.<p></dd>
</dt>
+</dl>
<dl>
-<dt><code>-dPreserveAnnots=</code><em>boolean</em>
-<dd>We now attempt to preserve most annotations from input PDF files as annotations in the output PDF file (note, not in output PostScript!)
-There are a few annotation types which are not preserved, most notably Link and Widget annotations. However, should you wish to revert
-to the old behaviour, or find that the new behaviour leads to problems, you can set this switch to false which will cause all annotations to be
-inserted into the page content stream, instead of preserved as annotations.
-</dd>
-</dt>
-<d<p> In addition, finer control is available by defining an array
-<code>/PreserveAnnotTypes</code>. Annotation types listed in this array will
-be preserved, whilst those not listed will be drawn according to the setting os ShowAnnots and ShowAnnotTypes.
-By using the controls PreserveAnnots, PreserveAnnotTypes, ShowAnnots and ShowAnnotTypes it is possible to select
-by annotation type whether annotations are preserved as annotations, drawn into the page, or simply dropped.
-</p>
-<p> To use this feature:
-<code>-c "/PreserveAnnotTypes [....] def" -f &ltinput file&gt</code>
-<br> Where the array can contain one or more of the following names:
-<code>/Stamp</code>, <code>/Squiggly</code>, <code>/Underline</code>, <code>/Link</code>, <code>/Text</code>, <code>/Highlight</code>, <code>/Ink</code>, <code>/FreeText</code>, <code>/StrikeOut</code> and <code>/stamp_dict</code>.</p>
-<p> For example, adding the follow to the command line:
-<code>-c "/PreserveAnnotTypes [/Text /UnderLine] def" -f &ltinput file&gt</code>
- <br> would preserve only annotations with the subtypes &quotText&quot and &quotUnderLine&quot</p>
-</d1>
+ <dt><code>-dPreserveAnnots=</code><em>boolean</em>
+ <dd>We now attempt to preserve most annotations from input PDF files as annotations in the output PDF file (note, not in output PostScript!)
+ There are a few annotation types which are not preserved, most notably Link and Widget annotations. However, should you wish to revert
+ to the old behaviour, or find that the new behaviour leads to problems, you can set this switch to false which will cause all annotations to be
+ inserted into the page content stream, instead of preserved as annotations.
+ <p> In addition, finer control is available by defining an array
+ <code>/PreserveAnnotTypes</code>. Annotation types listed in this array will
+ be preserved, whilst those not listed will be drawn according to the setting os ShowAnnots and ShowAnnotTypes.
+ By using the controls PreserveAnnots, PreserveAnnotTypes, ShowAnnots and ShowAnnotTypes it is possible to select
+ by annotation type whether annotations are preserved as annotations, drawn into the page, or simply dropped.
+ </p>
+ <p> To use this feature:
+ <code>-c "/PreserveAnnotTypes [....] def" -f &ltinput file&gt</code>
+ <br> Where the array can contain one or more of the following names:
+ <code>/Stamp</code>, <code>/Squiggly</code>, <code>/Underline</code>, <code>/Link</code>, <code>/Text</code>, <code>/Highlight</code>, <code>/Ink</code>, <code>/FreeText</code>, <code>/StrikeOut</code> and <code>/stamp_dict</code>.</p>
+ <p> For example, adding the follow to the command line:
+ <code>-c "/PreserveAnnotTypes [/Text /UnderLine] def" -f &ltinput file&gt</code>
+ <br> would preserve only annotations with the subtypes &quotText&quot and &quotUnderLine&quot</p>
+ </dd>
+ </dt>
+</dl>
+
+<dl>
+ <dt><code>-dPreserveMarkedContent=</code><em>boolean</em></dt>
+ <dd>We now attempt to preserve marked content from input PDF files through to the output PDF file (note, not in output PostScript!)
+ This does not include marked content relating to optional content, because currently we do not preserve optional content, it is
+ instead applied by the interpreter.
+ <p>
+ This control also requires the PDF interpreter to pass the marked content to the pdfwrite device, this is only done with the
+ new (C-based) PDF interpreter. THe old (PostScript-based) interpreter does not support this feature and will not pass marked
+ content to the pdfwrite device.
+ </p>
+ </dd>
+</dl>
-<p>
The following options are useful for creating PDF 1.2 files:
<p>
<dl>
-<dt><code>-dPatternImagemask=<em>boolean</em></code>
-<dd>With <code>CompatibilityLevel &lt; 1.3 </code> it specifies whether
-the target viewer handles <code>ImageMask</code> with a pattern color.
-Some old viewers, such as Ghostscript 3.30 fail with such constructs.
-Setting this option to false, one can get more compatibility,
-but the mask interpolation is lost.
-With <code>CompatibilityLevel &ge; 1.3 </code> this option is ignored.
-Default value is <code>false</code>.
-
-<dt><code>-dMaxClipPathSize=<em>integer</em></code>
-<dd>Specifies the maximum number of elements in the clipping path
-that the target viewer can handle. This option is used only with
-<code>CompatibilityLevel &lt; 1.3</code> and
-<code>PatternImagemask=false</code>,
-and only when converting a mask into a clipping path.
-If the clipping path exceeds the specified size,
-the masked image and the clipping path is decomposed into smaller images.
-The value of the option counts straight path segments
-(curved segments are not used for representing a mask).
-Default value is <code>12000</code>.
-
-<dt><code>-dMaxShadingBitmapSize=<em>integer</em></code>
-<dd>Specifies the maximum number of bytes allowed for representing a shading as a bitmap.
-If a shading exceeds this value, the resolution of the output bitmap
-is reduced to fit into the specified number of bytes.
-Note that the number of bytes depends on the number of color components
-in <code>ProcessColorModel</code> or <code>ColorConversionStrategy</code>, assumes 8 bits per sample,
-and doesn't consider image compression or downsampling. The image is rendered at the current resolution
-as specified by <code>-r</code> or the default of 720 dpi.
-
-Default value is <code>256000</code>.
-In general larger values will result in higher quality,
-but the output file size may increase dramatically, particularly with shadings which cover large areas.
-
-Shadings should generally only be rendered to images if <code>CompatibilityLevel</code> is 1.2 or less
-or if <code>ColorCoversionStrategy</code> specifies a color space different to that of the shading.
-
-<dt><code>-dHaveTrueTypes=<em>boolean</em></code>
-<dd>With <code>CompatibilityLevel &lt; 1.3</code> it specifies
-whether the target viewer can handle TrueType fonts.
-If not, TrueType fonts are converted into raster fonts
-with resolution specified in <code>HWResolution</code>. Note that large text at higher resolutions
-results in very large bitmaps which are likely to defeat caching in many printers. As a result the
-text is emitted as simple images rather than as a (type 3) bitmap font. The PostScript user parameter
-MaxFontItem can be used to increase the maximum size of a cache entry which will increase the size/resolution
-of the text which can be stored in a font.
-With <code>CompatibilityLevel &ge; 1.3</code> this option is ignored. Default value is <code>true</code>.
-
+ <dt><code>-dPatternImagemask=<em>boolean</em></code></dt>
+ <dd>With <code>CompatibilityLevel &lt; 1.3 </code> it specifies whether
+ the target viewer handles <code>ImageMask</code> with a pattern color.
+ Some old viewers, such as Ghostscript 3.30 fail with such constructs.
+ Setting this option to false, one can get more compatibility,
+ but the mask interpolation is lost.
+ With <code>CompatibilityLevel &ge; 1.3 </code> this option is ignored.
+ Default value is <code>false</code>.<p></dd>
+
+ <dt><code>-dMaxClipPathSize=<em>integer</em></code></dt>
+ <dd>Specifies the maximum number of elements in the clipping path
+ that the target viewer can handle. This option is used only with
+ <code>CompatibilityLevel &lt; 1.3</code> and
+ <code>PatternImagemask=false</code>,
+ and only when converting a mask into a clipping path.
+ If the clipping path exceeds the specified size,
+ the masked image and the clipping path is decomposed into smaller images.
+ The value of the option counts straight path segments
+ (curved segments are not used for representing a mask).
+ Default value is <code>12000</code>.<p></dd>
+
+ <dt><code>-dMaxShadingBitmapSize=<em>integer</em></code></dt>
+ <dd>Specifies the maximum number of bytes allowed for representing a shading as a bitmap.
+ If a shading exceeds this value, the resolution of the output bitmap
+ is reduced to fit into the specified number of bytes.
+ Note that the number of bytes depends on the number of color components
+ in <code>ProcessColorModel</code> or <code>ColorConversionStrategy</code>, assumes 8 bits per sample,
+ and doesn't consider image compression or downsampling. The image is rendered at the current resolution
+ as specified by <code>-r</code> or the default of 720 dpi.
+
+ Default value is <code>256000</code>.
+ In general larger values will result in higher quality,
+ but the output file size may increase dramatically, particularly with shadings which cover large areas.
+
+ Shadings should generally only be rendered to images if <code>CompatibilityLevel</code> is 1.2 or less
+ or if <code>ColorCoversionStrategy</code> specifies a color space different to that of the shading.<p></dd>
+
+ <dt><code>-dHaveTrueTypes=<em>boolean</em></code></dt>
+ <dd>With <code>CompatibilityLevel &lt; 1.3</code> it specifies
+ whether the target viewer can handle TrueType fonts.
+ If not, TrueType fonts are converted into raster fonts
+ with resolution specified in <code>HWResolution</code>. Note that large text at higher resolutions
+ results in very large bitmaps which are likely to defeat caching in many printers. As a result the
+ text is emitted as simple images rather than as a (type 3) bitmap font. The PostScript user parameter
+ MaxFontItem can be used to increase the maximum size of a cache entry which will increase the size/resolution
+ of the text which can be stored in a font.
+ With <code>CompatibilityLevel &ge; 1.3</code> this option is ignored. Default value is <code>true</code>.
+ </dd>
</dl>
<p>
@@ -867,12 +865,12 @@ The following options are useful for creating PDF 1.3 files:
<dl>
-<dt><code>-dHaveTransparency=<em>boolean</em></code>
-<dd>With <code>CompatibilityLevel &ge; 1.4</code> it specifies
-whether the target viewer can handle PDF 1.4 transparency objects.
-If not, the page is converted into a single plain image with all
-transparency flattened.
-Default value is <code>true</code>.
+ <dt><code>-dHaveTransparency=<em>boolean</em></code></dt>
+ <dd>With <code>CompatibilityLevel &ge; 1.4</code> it specifies
+ whether the target viewer can handle PDF 1.4 transparency objects.
+ If not, the page is converted into a single plain image with all
+ transparency flattened.
+ Default value is <code>true</code>.</dd>
</dl>
@@ -893,24 +891,24 @@ Default value is <code>false</code>.
When generating a PDF/X-3 document, Ghostscript performs the following
special actions to satisfy the PDF/X-3 standard:
<ul>
-<li> All fonts are embedded.
-<li> <code>DeviceRGB</code> color space is substituted with
-<code>the DefaultRGB</code> color space,
-which must be defined in the <code>ColorSpace</code> category.
-The easiest way is to provide it in the <code>DefaultRGB</code> file in the resource directory.
-<li> <code>DeviceRGB</code> color values are passed unchanged.
-If a user needs a non trivial color adjustment, a non trivial
-<code>DefaultRGB</code> color space must be defined.
-<li> Transfer functions and halftone phases are skipped.
-<li> <code>/PS pdfmark</code> interprets the <code>DataSource</code>
-stream or file.
-<li><code>TrimBox</code> and <code>BleedBox</code> entries
-are generated in page descriptions.
-Their values can be changed using the
-<code>PDFXTrimBoxToMediaBoxOffset</code>,
-<code>PDFXSetBleedBoxToMediaBox</code>, and
-<code>PDFXBleedBoxToTrimBoxOffset</code>
-distiller parameters (see below).
+ <li> All fonts are embedded.</li>
+ <li> <code>DeviceRGB</code> color space is substituted with
+ <code>the DefaultRGB</code> color space,
+ which must be defined in the <code>ColorSpace</code> category.
+ The easiest way is to provide it in the <code>DefaultRGB</code> file in the resource directory.</li>
+ <li> <code>DeviceRGB</code> color values are passed unchanged.
+ If a user needs a non trivial color adjustment, a non trivial
+ <code>DefaultRGB</code> color space must be defined.</li>
+ <li> Transfer functions and halftone phases are skipped.</li>
+ <li> <code>/PS pdfmark</code> interprets the <code>DataSource</code>
+ stream or file.</li>
+ <li><code>TrimBox</code> and <code>BleedBox</code> entries
+ are generated in page descriptions.
+ Their values can be changed using the
+ <code>PDFXTrimBoxToMediaBoxOffset</code>,
+ <code>PDFXSetBleedBoxToMediaBox</code>, and
+ <code>PDFXBleedBoxToTrimBoxOffset</code>
+ distiller parameters (see below).</li>
</ul>
@@ -919,35 +917,35 @@ The following switches are used for creating encrypted documents :
</h4>
<dl>
-<dt><code>-sOwnerPassword=</code><em>string</em>
+<dt><code>-sOwnerPassword=</code><em>string</em></dt>
<dd>Defines that the document be encrypted with the specified
-owner password.
+owner password.</dd>
</dl>
<dl>
-<dt><code>-sUserPassword=</code><em>string</em>
+<dt><code>-sUserPassword=</code><em>string</em></dt>
<dd>Defines the user password for opening the document.
If empty, the document can be opened with no password,
-but the owner password is required to edit it.
+but the owner password is required to edit it.</dd>
</dl>
<dl>
-<dt><code>-dPermissions=</code><em>number</em>
+<dt><code>-dPermissions=</code><em>number</em></dt>
<dd>Defines the PDF permissions flag field. Negative values are allowed
to represent unsigned integers with the highest bit set. See the PDF
-Reference manual for the meaning of the flag bits.
+Reference manual for the meaning of the flag bits.</dd>
</dl>
<dl>
-<dt><code>-dEncryptionR=</code><em>number</em>
-<dd>Defines the encryption method revision number - either 2 or 3.
+<dt><code>-dEncryptionR=</code><em>number</em></dt>
+<dd>Defines the encryption method revision number - either 2 or 3.</dd>
</dl>
<dl>
-<dt><code>-dKeyLength=</code><em>number</em>
+<dt><code>-dKeyLength=</code><em>number</em></dt>
<dd>Defines the length (in bits) of the encryption key.
Must be a multiple of 8 in the interval [40, 128].
-If the length isn't 40, <code>-dEncryptionR</code> must be 3.
+If the length isn't 40, <code>-dEncryptionR</code> must be 3.</dd>
</dl>
@@ -956,7 +954,7 @@ The following switches are used for generating metadata according to the Adobe X
</h4>
<dl>
-<dt><code>-sDocumentUUID=</code><em>string</em>
+<dt><code>-sDocumentUUID=</code><em>string</em></dt>
<dd>Defines a DocumentID to be included into the document Metadata.
If not specified, Ghostscript generates an UUID automatically.
Otherwise the specified string is copied into the document without
@@ -969,7 +967,7 @@ a correct UUID through this parameter.
<p>
Note that Ghostscript has no assess to the host node ID
due to a minimization of platform dependent modules.
-Therefore it uses an MD5 hash of the document contents for generating UUIDs.
+Therefore it uses an MD5 hash of the document contents for generating UUIDs.</p>
</dl>
<dl>
@@ -1014,9 +1012,9 @@ displaying document's properties,
so we recommend this value.
</dl>
-<d1>
-<a name="UseOCR"></a>
-<dt><code>-sUseOCR=</code><em>string</em>
+<dl>
+
+<dt><a name="UseOCR"></a><code>-sUseOCR=</code><em>string</em>
<dd>Controls the use of OCR in pdfwrite. If enabled this will use an OCR
engine to analyse the glyph bitmaps used to draw text in a PDF file, and
the resulting Unicode code points are then used to construct a ToUnicode
@@ -1037,9 +1035,11 @@ For the reasons above it is useful to be able to exercise some control over the
action of pdfwrite when OCR processing is available, and the <code>UseOCR</code>
parameter provides that control. There are three possible values:
</p>
-<li><code>Never</code> Default - don't use OCR at all even if support is built-in.
-<li><code>AsNeeded</code> If there is no existing ToUnicode information, use OCR.
-<li><code>Always</code> Ignore any existing information and always use OCR.
+<ul>
+<li><code>Never</code> Default - don't use OCR at all even if support is built-in.</li>
+<li><code>AsNeeded</code> If there is no existing ToUnicode information, use OCR.</li>
+<li><code>Always</code> Ignore any existing information and always use OCR.</li>
+</ul>
<p>
Our experimentation with the Tesseract OCR engine has shown that the more text we
can supply for the engine to look at, the better the result we get. We are, unfortunately,
@@ -1068,6 +1068,7 @@ functionality here, but we need concrete examples to work from.
</p>
</dd>
</dt>
+</dl>
<h3><a name="PS"></a>PostScript file output</h3>
<p>
@@ -1088,21 +1089,23 @@ There are also two additional (not Adobe-standard) Distiller parameters, specifi
<dd>No default value. If defined, the contents of the string will be emitted in the output PostScript prolog
enclosed within %%BeginSetup and %%EndSetup comments. This is intended as a means of introducing device-specific document wide
setup or configuration options into the output. Default media selection, printer resolution etc might be included here.
-</dd>
+
<code>/PSPageOptions</code><em> array of strings</em>
+</dd>
<dd>No default value. If defined, the contents of the strings in the array will be emitted in the output PostScript at the start
of each page, one string per page, enclosed within %%BeginPageSetup and %%EndPageSetup comments. This is intended as a means of introducing device-specific
setup or configuration options into the output on a page by page basis. The strings are used from the array sequentially, if there are more
pages than strings then we 'wrap round' and start again with the first string. This makes it convenient to do setup for even/odd pages
by simply including 2 strings in the array.
-</dd>
+
<p>
Note: executing setpagedevice will reset distiller parameters to the default, if you use any of these options via setdistillerparams, and
expect to execute setpagedevice, you should set /LockDistillerParams true. Ordinarily the PDF interpreter executes setpagedevice for
every page in order to set the media size.
</p>
+</dd>
</dt>
-</d1>
+</dl>
<p>
NB the strings contained in PSDocOptions, and the PSPageOptions array, are written verbatim to the output. No error checking is (or can be) performed on these strings
@@ -1188,10 +1191,10 @@ In this case the behaviour can then be modified by setting the keys, either by m
PostScript or setting the values in some other manner on the target device.
<p>
-See also the distiller params PSDocOptions and PSPageOptions mentioned <a href="#AdditionalDistillerParams">above.</p>
+See also the distiller params PSDocOptions and PSPageOptions mentioned <a href="#AdditionalDistillerParams">above.</a></p>
-<p>
<h3><a name="EPS"></a>Encapsulated PostScript (EPS) file output</h3>
+
<p>
The eps2write device is the same as the ps2write device, except that it produces Encapsulated PostScript, which is intended
to be imported into another document and treated as a 'black box'. There are certain restrictions which EPS
@@ -1389,7 +1392,7 @@ a PostScript Printer Description (PPD) file.
This allows some <a href="#Options">distiller parameters</a>
to be set when a PostScript file is generated.
-<h4>Windows XP or 2000</h4>
+<h3>Windows XP or 2000</h3>
<p>
To install a "Ghostscript PDF" printer on Windows XP,
select the Windows Control Panel,
@@ -1431,7 +1434,7 @@ into the Catalog, creating a conformant set of XML, with all the information syn
dictionary would be challenging, this pdfmark allows the pdfwrite device to generate all the normal information
leaving the user with only the task of specifying the additional data.
-<dt><code>[ /XML (string containing additional XMP data) /Ext_Metadata pdfmark</code>
+<code>[ /XML (string containing additional XMP data) /Ext_Metadata pdfmark</code>
</p>
<hr>
@@ -1472,7 +1475,7 @@ not affected.
<hr>
<p>
-<small>Copyright &copy; 2000-2021 Artifex Software, Inc. All rights reserved.</small>
+<small>Copyright &copy; 2000-2022 Artifex Software, Inc. All rights reserved.</small>
<p>
This software is provided AS-IS with no warranty, either express or
@@ -1485,40 +1488,16 @@ or contact Artifex Software, Inc., 1305 Grant Avenue - Suite 200,
Novato, CA 94945, U.S.A., +1(415)492-9861, for further information.
<p>
-<small>Ghostscript version 9.55.0, 27 September 2021
+<small>Ghostscript version 9.56.0, 29 March 2022
<!-- [3.0 end visible trailer] ============================================= -->
-<!--FINISH EDITING HERE-->
-
- </div>
- </div>
- </div>
- <div class="footer">
- <div class="row">
- <div class="col-7 footleft">
- <ul>
- <li><a href="https://artifex.com/contact-us/" target="blank">CONTACT US</a></li>
- <li><a href="https://artifex.com/about-us/" target="blank">ABOUT</a></li>
- <li><a href="https://ghostscript.com/security.html">SECURITY</a></li>
- </ul>
- </div>
- <div class="col-1 footcenter">
- <ul>
- <li><a href="https://artifex.com/support/" target="blank">SUPPORT</a></li>
- <li><a href="https://artifex.com/blog/artifex/" target="blank">BLOG</a></li>
- <li><a href="https://artifex.com/privacy-policy/" target="blank">PRIVACY</a></li>
- </ul>
- </div>
- <div class="col-ft-3 footright"><img src="images/Artifex_logo.png" width="194" height="40" alt=""/> <br>
- © Copyright 2019-2021 Artifex Software, Inc. <br>
- All rights reserved.
- </div>
- </div>
- </div>
-
- <script src="http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>
- <script src="index.js"></script>
+<!--FINISH EDITING HERE-->
+ </div><!-- close inner -->
+ </div><!-- close outer -->
+ </article>
+ </main>
+ <script src="site.js"></script>
</body>
</html>
diff --git a/doc/WhatIsGS.htm b/doc/WhatIsGS.htm
index 00e5f0f0..496adfe7 100644
--- a/doc/WhatIsGS.htm
+++ b/doc/WhatIsGS.htm
@@ -1,55 +1,25 @@
<!doctype html>
-<html>
+<html lang="en">
<head>
-<meta charset="UTF-8">
-<meta name="viewport" content="width=device-width, initial-scale=1.0">
-<link href="https://fonts.googleapis.com/css?family=Source+Sans+Pro" rel="stylesheet">
-<link rel="shortcut icon" type="image/png" href="../../images/favicon.png">
-<title>Ghostscript: What Is Ghostscript?</title>
-<link href="style.css" rel="stylesheet" type="text/css">
-<link href="gs-style.css" rel="stylesheet" type="text/css">
+ <meta http-equiv="content-type" content="text/html; charset=utf-8">
+ <meta name="viewport" content="user-scalable=yes, initial-scale=1, width=device-width">
+ <link href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:200,200i,300,300i,400,400i,600,600i,700,700i,900,900i" rel="stylesheet">
+ <link rel="shortcut icon" href="images/favicon.svg">
+ <title>Ghostscript: What Is Ghostscript?</title>
+ <link href="default.css" rel="stylesheet" type="text/css">
</head>
<body>
+ <header><div class="title"><a href="index.html"><h1 aria-label="title">Ghostscript documentation</h1><h2 aria-label="version"></h2></a></div><a href="Search.htm" aria-label="Search" id="searchSite"><div class="search"></div></a></header>
+ <main>
+ <article>
+ <div class="outer">
- <div class="header">
- <div class="row">
- <div class="col-lt-6 logo"><a href="https://www.ghostscript.com/"><img src="images/ghostscript_logo.png" width="108" height="119" alt=""></a></div>
- <div class="col-6"><div class="row"><div class="artifexlogo"><a href="https://artifex.com" target="_blank"><img src="images/Artifex_logo.png" width="194" height="40" alt=""></a></div>
- <div class="col-12"><div class="button button1"><a href="https://artifex.com/contact-us/" title="Contact Us" target="_blank">Contact Us</a></div>
- <div class="button button2 hidden-xs"><a href="https://www.ghostscript.com/download.html" title="Download">Download</a></div></div></div>
- </div>
- </div>
- </div>
-
- <div class="banner">
- <div class="row">
- <div class="col-12"> The Ghostscript Family of Products&nbsp;</div>
- </div>
- </div>
-
- <div class="main">
- <div class="row">
- <div id="sidebar">
- <div class="sidebar-item"></div>
- <div class="col-2 leftnav">
-<ul>
- <li><a href="https://www.ghostscript.com/">Home</a></li>
- <li><a href="https://www.ghostscript.com/license.html">Licensing</a></li>
- <li><a href="https://www.ghostscript.com/releases.html">Releases</a></li>
- <li><a href="https://www.ghostscript.com/documentation.html" title="Documentation">Documentation</a></li>
- <li><a href="https://www.ghostscript.com/download.html" title="Download">Download</a></li>
- <li><a href="https://www.ghostscript.com/performance.html" title="Performance">Performance</a></li>
- <li><a href="http://jbig2dec.com/" title="jbig2dec">jbig2dec</a></li>
- <li><a href="http://git.ghostscript.com/?p=ghostpdl.git;a=summary">Source</a></li>
- <li><a href="http://bugs.ghostscript.com/">Bugs</a></li>
- <li><a href="https://www.ghostscript.com/faq.html" title="FAQ">FAQ</a></li>
- </ul>
- </div>
- </div>
- <div class="col-10 page">
-
+ <div class="inner">
<!--START EDITING HERE-->
+
+<h1>What Is Ghostscript?</h1>
+
<h4>
There are various products in the Ghostscript family; this document describes what they are, and how they are related.</h4>
@@ -58,16 +28,15 @@ There are various products in the Ghostscript family; this document describes wh
<hr>
-<h2>Table of contents</h2>
-
-<blockquote><ul>
-<li><a href="#Ghostscript">Ghostscript</a>
-<li><a href="#GhostPDF">GhostPDF</a>
-<li><a href="#GhostPDL">GhostPDL</a>
-<li><a href="#GhostPCL">GhostPCL</a>
-<li><a href="#GhostXPS">GhostXPS</a>
-<li><a href="#URWFonts">URW Font Information</a>
-</ul></blockquote>
+<h2><a name="toc"></a>Table of contents</h2>
+<ul class="toc">
+ <li><a href="#Ghostscript">Ghostscript</a></li>
+ <li><a href="#GhostPDF">GhostPDF</a></li>
+ <li><a href="#GhostPDL">GhostPDL</a></li>
+ <li><a href="#GhostPCL">GhostPCL</a></li>
+ <li><a href="#GhostXPS">GhostXPS</a></li>
+ <li><a href="#URWFonts">URW Font Information</a></li>
+</ul>
<!-- [1.2 end table of contents] =========================================== -->
@@ -161,9 +130,9 @@ source can be found in the GhostXPS/GhostPDL downloads from the same site.</p>
<p><a name="foot1">PostScript</a> is a registered trademark of Adobe Systems Inc.</p>
<p><a name="foot2">PCL</a> is a registered trademark of Hewlett-Packard Company.</p>
-
+<br/><br/>
<p>
-<small>Copyright &copy; 2000-2021 Artifex Software, Inc. All rights reserved.</small>
+<small>Copyright &copy; 2000-2022 Artifex Software, Inc. All rights reserved.</small>
<p>
This software is provided AS-IS with no warranty, either express or
@@ -176,40 +145,17 @@ or contact Artifex Software, Inc., 1305 Grant Avenue - Suite 200,
Novato, CA 94945, U.S.A., +1(415)492-9861, for further information.
<p>
-<small>Ghostscript version 9.55.0, 27 September 2021
+<small>Ghostscript version 9.56.0, 29 March 2022
<!-- [3.0 end visible trailer] ============================================= -->
-<!--FINISH EDITING HERE-->
- </div>
- </div>
- </div>
-
- <div class="footer">
- <div class="row">
- <div class="col-7 footleft">
- <ul>
- <li><a href="https://artifex.com/contact-us/" target="blank">CONTACT US</a></li>
- <li><a href="https://artifex.com/about-us/" target="blank">ABOUT</a></li>
- <li><a href="https://ghostscript.com/security.html">SECURITY</a></li>
- </ul>
- </div>
- <div class="col-1 footcenter">
- <ul>
- <li><a href="https://artifex.com/support/" target="blank">SUPPORT</a></li>
- <li><a href="https://artifex.com/blog/artifex/" target="blank">BLOG</a></li>
- <li><a href="https://artifex.com/privacy-policy/" target="blank">PRIVACY</a></li>
- </ul>
- </div>
- <div class="col-ft-3 footright"><img src="images/Artifex_logo.png" width="194" height="40" alt=""/> <br>
- © Copyright 2019-2021 Artifex Software, Inc. <br>
- All rights reserved.
- </div>
- </div>
- </div>
-
- <script src="http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>
- <script src="index.js"></script>
+
+<!--FINISH EDITING HERE-->
+ </div><!-- close inner -->
+ </div><!-- close outer -->
+ </article>
+ </main>
+ <script src="site.js"></script>
</body>
</html>
diff --git a/doc/default.css b/doc/default.css
new file mode 100644
index 00000000..b45a9d19
--- /dev/null
+++ b/doc/default.css
@@ -0,0 +1,362 @@
+* {
+ -webkit-tap-highlight-color: rgba(0,0,0,0);
+ -moz-box-sizing: border-box;
+ -webkit-box-sizing: border-box;
+ box-sizing: border-box;
+}
+
+html, body, div, span, applet, object, iframe,
+h1, h2, h3, h4, h5, h6, p, blockquote, pre,
+a, abbr, acronym, address, big, cite, code,
+del, dfn, em, img, ins, kbd, q, s, samp,
+small, strike, strong, sub, tt, var,
+b, u, i, center,
+ ol, ul, li,
+fieldset, form, label, legend,
+table, caption, tbody, tfoot, thead, tr, th, td,
+article, aside, canvas, details, embed,
+figure, figcaption, footer, header, hgroup,
+menu, nav, output, ruby, section, summary,
+time, mark, audio, video {
+ margin: 0;
+ padding: 0;
+ border: 0;
+ font-size: 100%;
+ font: inherit;
+ vertical-align: baseline;
+}
+
+
+/* HTML5 display-role reset for older browsers */
+article, aside, details, figcaption, figure,
+footer, header, hgroup, menu, nav, section {
+ display: block;
+}
+
+html, body {
+ position: relative;
+ height: 100%;
+}
+
+body {
+ -webkit-touch-callout: none; /* prevent callout to copy image, etc when tap to hold */
+ -webkit-text-size-adjust: none; /* prevent webkit from resizing text to fit */
+ -webkit-user-select: text; /* prevent copy paste, to allow, change 'none' to 'text' */
+ color:black;
+ background:#ffffff;
+ font-family:"Source Sans Pro", sans-serif; /* 200 = ExtraLight, 300 = Light, 400 = regular, 600 = semi-bold, 700 = bold, 900 = black */
+ font-weight:400;
+ font-size:16px;
+ margin:0px;
+ padding:0px;
+ display: grid;
+}
+
+header {
+ width: 100%;
+ height:50px;
+ background: #0075cf url(language-bindings/images/ghostscript.png) 10px center no-repeat;
+ background-size: 30px 30px;
+ color: #fff;
+ line-height: 50px;
+ text-indent: 50px;
+ z-index: 1;
+ display: flex;
+ justify-content: space-between;
+ grid-row: 1;
+}
+
+header .title {
+ display: flex;
+ justify-content: start;
+ flex-direction: column;
+}
+
+header h1 {
+ line-height: 40px;
+}
+
+header h2::after {
+ content:"Version 9.56.0";
+}
+
+header h2 {
+ font-weight: bold;
+ margin-top:-45px;
+ font-size: 12px;
+ color: #fff;
+ margin-right:10px;
+}
+
+header .search {
+ width: 50px;
+ height:50px;
+ background: #0075cf url(images/icon-search.png) center center no-repeat;
+ background-size: 50px 50px;
+}
+
+main {
+ grid-row: 2;
+ overflow-y: scroll;
+}
+
+main .outer {
+ max-width: 1280px;
+ margin: 0px auto 100px;
+}
+
+main .inner {
+ padding: 20px;
+}
+
+a {
+ text-decoration: none;
+ color: #0075cf;
+}
+
+i {
+ font-style: italic;
+}
+
+p {
+ line-height: 24px;
+ margin-bottom: 20px;
+}
+
+hr {
+ width: 100%;
+ margin: 50px auto;
+}
+
+/* Number the h2/h3 -- doesn't work on v4/5 browsers */
+h2 {
+ counter-increment: h2-count;
+ counter-reset: h3-count;
+}
+
+h2 a:after {
+ font-size:30px;
+ content: counter(h2-count) "";
+}
+
+h3 {
+ counter-increment: h3-count;
+}
+
+h3 a:after {
+ font-size:22px;
+ content: counter(h2-count) "." counter(h3-count) "";
+}
+
+h2 a:after, h3 a:after {
+ background-color: black;
+ padding: 0px 10px;
+ margin-right: 5px;
+ border-radius: 5px;
+ color: white;
+}
+
+header h1 {
+ font-size:24px;
+ font-weight:600;
+ color: #fff;
+ text-decoration: none;
+}
+
+header a h1 {
+ color: #fff;
+}
+
+h1 {
+ font-size:40px;
+ font-weight:600;
+ margin-bottom: 20px;
+}
+
+h2 {
+ font-weight:600;
+ font-size:26px;
+ margin-bottom: 20px;
+}
+
+h3 {
+ font-weight:600;
+ font-size:20px;
+ margin-bottom: 10px;
+}
+
+h4 {
+ font-weight:600;
+ font-size:16px;
+ margin-bottom: 10px;
+}
+
+code {
+ border-radius: 3px;
+ padding: 2px 6px;
+ font-family: monospace;
+}
+
+pre {
+ font-family: monospace;
+}
+
+pre>code {
+ padding:0;
+ margin:0;
+ font-size:100%;
+ word-break:normal;
+ white-space:pre;
+ background:transparent;
+ border:0;
+}
+
+pre code, pre tt {
+ display:inline;
+ padding:0;
+ margin:0;
+ overflow:visible;
+ line-height:inherit;
+ word-wrap:normal;
+ background-color:transparent;
+ border:0
+}
+
+pre code::before,
+pre code::after,
+pre tt::before,
+pre tt::after {
+ content:normal
+}
+
+ul {
+ margin: 0 0 0 20px;
+}
+
+li {
+ margin: 10px;
+}
+
+table {
+ margin: 20px 0;
+ border-collapse: collapse;
+ table-layout:fixed;
+ width: 100%;
+ border: 1px solid #c0c0c0;
+}
+
+th {
+ font-weight: bold;
+ background-color:#666;
+ color: #fff;
+ border-bottom: 1px solid #c0c0c0;
+ border-right: 1px solid #c0c0c0;
+}
+
+tr {
+ text-overflow:clip;
+}
+
+th, td {
+ text-align: left;
+ padding:14px;
+ word-wrap:break-word;
+}
+
+td {
+ border-right: 1px solid #c0c0c0;
+}
+
+em {
+ font-style: italic;
+}
+
+ul.toc {
+ list-style-type:none;
+}
+
+ul.toc li ul {
+ list-style-type:none;
+ margin-left: 20px;
+}
+
+blockquote {
+ background-color:transparent;
+ width: 100%;
+ height: auto;
+ padding: 20px;
+ border-radius: 10px;
+ margin: 0 0 20px 0;
+ border: 1px solid #666;
+}
+
+blockquote strong {
+ font-size: 16px;
+ font-weight: bold;
+}
+
+table {
+ color: #000;
+}
+
+table code {
+ color: #000;
+}
+
+table tr {
+ background-color: #fff;
+ border-bottom: 1px solid #c0c0c0;
+}
+
+table tr:nth-child(2n) {
+ background-color: #ddd;
+}
+
+/* Dark mode */
+@media (prefers-color-scheme: dark) {
+
+ body {
+ background-color: #000;
+ color: white;
+ }
+
+ a {
+ text-decoration: none;
+ color: #289df6;
+ }
+
+ h2 a:after, h3 a:after {
+ background-color: white;
+ color: black;
+ }
+
+ blockquote {
+ border: 1px solid #efefef;
+ }
+
+ table {
+ color: #fff;
+ }
+
+ table code {
+ color: #fff;
+ }
+
+ table tr {
+ background-color: #000;
+ }
+
+ table tr:nth-child(2n) {
+ background-color: #222;
+ }
+
+}
+
+/* < phone portrait */
+@media all and (max-width : 399px) {
+
+ header h1 {
+ font-size:18px;
+ }
+
+}
diff --git a/doc/gs-vms.hlp b/doc/gs-vms.hlp
index 08386531..0a37824b 100644
--- a/doc/gs-vms.hlp
+++ b/doc/gs-vms.hlp
@@ -1,6 +1,6 @@
1 gs
gs - GPL Ghostscript interpreter/previewer
-! Ghostscript version 9.55.0, 27 September 2021
+! Ghostscript version 9.56.0, 29 March 2022
Usage:
$ gs [options] [file ...]
diff --git a/doc/images/favicon.svg b/doc/images/favicon.svg
new file mode 100644
index 00000000..86b60ff9
--- /dev/null
+++ b/doc/images/favicon.svg
@@ -0,0 +1,39 @@
+<?xml version="1.0" encoding="utf-8"?>
+<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
+ viewBox="0 0 174.5 203" enable-background="new 0 0 174.5 203" xml:space="preserve">
+
+ <style>path{fill:#333}@media (prefers-color-scheme:dark){path{fill:#eee}}</style>
+
+ <path d="M88.914,62.379c2.305-1.166-1.965-4.208-1.717-9.555c0.275-6.038,2.834-9.767-0.775-9.663
+ c-2.843,0.078-7.028,5.283-6.347,10.597C80.771,59.059,85.951,63.869,88.914,62.379z"/>
+ <path d="M82.704,70.756c-2.901,1.852,4.552,3.786,6.338,9.383c2.024,6.331-0.215,10.913,5.012,9.777
+ c4.119-0.888,8.132-7.467,5.004-12.756C95.923,71.864,86.422,68.364,82.704,70.756z"/>
+ <path d="M77.635,65.538c2.012-1.627-2.801-3.695-3.686-8.962c-1.002-5.985,0.72-10.149-2.799-9.292
+ c-2.752,0.663-5.759,6.648-3.971,11.687C68.97,64.008,75.064,67.635,77.635,65.538z"/>
+ <g>
+ <path d="M8.34,182.553c8.033,8.36,27.344,18.325,73.727,18.325c77.712,0,86.343-34.936,86.672-36.423l0.074-0.335
+ l-2.615-0.673l-0.103,0.317c-0.084,0.262-9.182,26.392-76.57,26.392c-2.336,0-4.77-0.032-7.237-0.095
+ c-16.732-0.429-30.657-3.138-40.269-7.831c-8.394-4.1-13.017-9.442-13.017-15.044c0-11.862,13.986-12.627,14.581-12.655
+ l0.316-0.015l0.177-2.639l-0.312-0.057c-0.233-0.042-5.807-1.036-12.745-1.036c-18.07,0-28.293,6.655-28.786,18.739
+ C2.206,170.181,2.159,176.119,8.34,182.553z"/>
+ <path d="M152.435,59.232c1.118-13.45-11.403-23.37-15.267-26.09l-0.155-0.109l0.021-0.188
+ c0.952-8.478-0.737-15.52-5.021-20.929c-6.977-8.81-18.449-10.085-18.934-10.135l-0.328-0.033l-0.437,2.648l0.32,0.077
+ c0.518,0.124,12.73,3.157,14.018,14.733c1.131,10.18-6.367,14.962-13.618,19.586c-5.594,3.572-10.871,6.942-10.871,12.57
+ c0,6.214,5.439,10.593,10.7,14.827c5.32,4.281,10.341,8.321,9.969,13.87c-0.687,10.304-20.492,15.748-20.692,15.802l-0.331,0.088
+ l0.568,2.639l0.333-0.054C143.685,91.88,151.452,71.054,152.435,59.232z"/>
+ <path d="M80.146,181.454c4.818,0.771,10.645,1.179,16.85,1.179c16.754,0,39.861-3.118,54.467-11.867
+ c14.401-8.616,16.364-22.548,10.86-31.856v-0.001c-4.971-8.418-20.259-22.757-66.8-24.202
+ c-32.475-0.997-48.941-3.565-48.941-7.633c0-3.392,5.788-4.433,11.916-5.535c7.688-1.384,16.401-2.954,16.174-10.354
+ c-0.145-4.691-4.298-7.432-9.107-10.607c-7.262-4.8-16.297-10.773-14.116-26.241c1.864-13.148,21.14-18.701,29.341-20.478
+ c11.723-2.537,31.451-8.128,31.858-17.067c0.368-8.21-8.415-10.998-8.503-11.025l-0.304-0.095l-0.915,2.059l-0.194,0.336
+ l0.304,0.179c0.152,0.092,3.643,2.253,2.214,6.375c-1.521,4.398-7.704,4.754-25.358,5.137
+ c-17.544,0.386-39.579,2.793-54.373,18.103c-8.041,8.324-11.314,19.207-8.754,29.112c2.713,10.485,11.718,19.235,25.356,24.64
+ l0.913,0.362l-0.951,0.245c-3.259,0.838-8.195,2.305-13.196,4.529c-12.741,5.665-19.313,13.407-19.004,22.39
+ c0.797,22.879,35.182,26.661,68.713,27.343c35.983,0.731,51.335,4.303,51.335,11.942c0,6.147-11.885,11.023-28.26,11.596
+ c-1.88,0.065-3.719,0.097-5.466,0.097c-10.907,0-17.937-1.091-21.914-2.007c-4.734-1.088-7.577-2.501-7.606-3.777
+ c-0.015-0.593,0.165-1.072,0.55-1.467c1.375-1.41,4.781-1.706,7.397-1.706c3.296,0,6.365,0.481,6.704,0.535l0.315,0.052
+ l0.748-2.53l-0.29-0.125c-0.064-0.027-6.083-2.606-14.252-2.606c-0.505,0-1.018,0.01-1.539,0.031
+ c-6.817,0.301-11.677,3.807-11.819,8.526C54.379,168.728,56.635,177.698,80.146,181.454z"/>
+ </g>
+
+</svg>
diff --git a/doc/images/icon-search.png b/doc/images/icon-search.png
new file mode 100644
index 00000000..efcadaf8
--- /dev/null
+++ b/doc/images/icon-search.png
Binary files differ
diff --git a/doc/index.html b/doc/index.html
index 4a24229f..c523e40a 100644
--- a/doc/index.html
+++ b/doc/index.html
@@ -5,10 +5,26 @@
<title>Ghostscript</title>
<!-- Ghostscript auto-referral to the introductory document -->
<meta http-equiv="REFRESH" content="0; url=Readme.htm">
+<link href="default.css" rel="stylesheet" type="text/css">
</head>
+
+
<body>
-<p>
+ <header><h1>Ghostscript documentation</h1></header>
+ <main>
+ <article>
+ <div class="outer">
+
+ <div class="inner">
+
+<!--START EDITING HERE-->
Please see <a href="Readme.htm">Readme.htm</a> for an index of the
Ghostscript documentation.
+
+<!--FINISH EDITING HERE-->
+ </div><!-- close inner -->
+ </div><!-- close outer -->
+ </article>
+ </main>
</body>
</html>
diff --git a/doc/language-bindings/c-sharp-ghost-api.html b/doc/language-bindings/c-sharp-ghost-api.html
index b98732af..b67442d4 100644
--- a/doc/language-bindings/c-sharp-ghost-api.html
+++ b/doc/language-bindings/c-sharp-ghost-api.html
@@ -4,7 +4,7 @@
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<meta name="viewport" content="user-scalable=no, initial-scale=1, maximum-scale=1, minimum-scale=1, width=device-width">
<link href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:200,200i,300,300i,400,400i,600,600i,700,700i,900,900i" rel="stylesheet">
- <link rel="shortcut icon" type="image/png" href="../images/favicon.png">
+ <link rel="shortcut icon" href="../images/favicon.svg">
<link href="css/default.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="js/default.js"></script>
</head>
diff --git a/doc/language-bindings/c-sharp-ghost-mono.html b/doc/language-bindings/c-sharp-ghost-mono.html
index 33c2ef83..0d4380d2 100644
--- a/doc/language-bindings/c-sharp-ghost-mono.html
+++ b/doc/language-bindings/c-sharp-ghost-mono.html
@@ -4,7 +4,7 @@
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<meta name="viewport" content="user-scalable=no, initial-scale=1, maximum-scale=1, minimum-scale=1, width=device-width">
<link href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:200,200i,300,300i,400,400i,600,600i,700,700i,900,900i" rel="stylesheet">
- <link rel="shortcut icon" type="image/png" href="../images/favicon.png">
+ <link rel="shortcut icon" href="../images/favicon.svg">
<link href="css/default.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="js/default.js"></script>
</head>
diff --git a/doc/language-bindings/c-sharp-ghost-net.html b/doc/language-bindings/c-sharp-ghost-net.html
index 1308abf6..69af7316 100644
--- a/doc/language-bindings/c-sharp-ghost-net.html
+++ b/doc/language-bindings/c-sharp-ghost-net.html
@@ -4,7 +4,7 @@
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<meta name="viewport" content="user-scalable=no, initial-scale=1, maximum-scale=1, minimum-scale=1, width=device-width">
<link href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:200,200i,300,300i,400,400i,600,600i,700,700i,900,900i" rel="stylesheet">
- <link rel="shortcut icon" type="image/png" href="../images/favicon.png">
+ <link rel="shortcut icon" href="../images/favicon.svg">
<link href="css/default.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="js/default.js"></script>
</head>
diff --git a/doc/language-bindings/c-sharp-intro.html b/doc/language-bindings/c-sharp-intro.html
index bfcbeead..a9f6e5ad 100644
--- a/doc/language-bindings/c-sharp-intro.html
+++ b/doc/language-bindings/c-sharp-intro.html
@@ -4,7 +4,7 @@
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<meta name="viewport" content="user-scalable=no, initial-scale=1, maximum-scale=1, minimum-scale=1, width=device-width">
<link href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:200,200i,300,300i,400,400i,600,600i,700,700i,900,900i" rel="stylesheet">
- <link rel="shortcut icon" type="image/png" href="../images/favicon.png">
+ <link rel="shortcut icon" href="../images/favicon.svg">
<link href="css/default.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="js/default.js"></script>
</head>
diff --git a/doc/language-bindings/css/default.css b/doc/language-bindings/css/default.css
index 16297c1f..5043d4ca 100644
--- a/doc/language-bindings/css/default.css
+++ b/doc/language-bindings/css/default.css
@@ -635,10 +635,15 @@ button.cta a {
@media (prefers-color-scheme: dark) {
body {
- background-color: #111;
+ background-color: #000;
color: white;
}
+ a {
+ text-decoration: none;
+ color: #289df6;
+ }
+
.markdown-body code, .markdown-body pre, code, .markdown-body blockquote code {
background-color: #444;
}
diff --git a/doc/language-bindings/demo-code.html b/doc/language-bindings/demo-code.html
index 876e3cb7..7b71c2db 100644
--- a/doc/language-bindings/demo-code.html
+++ b/doc/language-bindings/demo-code.html
@@ -4,7 +4,7 @@
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<meta name="viewport" content="user-scalable=no, initial-scale=1, maximum-scale=1, minimum-scale=1, width=device-width">
<link href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:200,200i,300,300i,400,400i,600,600i,700,700i,900,900i" rel="stylesheet">
- <link rel="shortcut icon" type="image/png" href="../images/favicon.png">
+ <link rel="shortcut icon" href="../images/favicon.svg">
<link href="css/default.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="js/default.js"></script>
</head>
diff --git a/doc/language-bindings/index.html b/doc/language-bindings/index.html
index 7758abd7..3a793b1e 100644
--- a/doc/language-bindings/index.html
+++ b/doc/language-bindings/index.html
@@ -4,7 +4,7 @@
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<meta name="viewport" content="user-scalable=no, initial-scale=1, maximum-scale=1, minimum-scale=1, width=device-width">
<link href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:200,200i,300,300i,400,400i,600,600i,700,700i,900,900i" rel="stylesheet">
- <link rel="shortcut icon" type="image/png" href="../images/favicon.png">
+ <link rel="shortcut icon" href="../images/favicon.svg">
<link href="css/default.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="js/default.js"></script>
</head>
diff --git a/doc/language-bindings/java-gsjavajar.html b/doc/language-bindings/java-gsjavajar.html
index e11337fc..68877f48 100644
--- a/doc/language-bindings/java-gsjavajar.html
+++ b/doc/language-bindings/java-gsjavajar.html
@@ -4,7 +4,7 @@
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<meta name="viewport" content="user-scalable=no, initial-scale=1, maximum-scale=1, minimum-scale=1, width=device-width">
<link href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:200,200i,300,300i,400,400i,600,600i,700,700i,900,900i" rel="stylesheet">
- <link rel="shortcut icon" type="image/png" href="../images/favicon.png">
+ <link rel="shortcut icon" href="../images/favicon.svg">
<link href="css/default.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="js/default.js"></script>
</head>
diff --git a/doc/language-bindings/java-intro.html b/doc/language-bindings/java-intro.html
index 21098521..cb625833 100644
--- a/doc/language-bindings/java-intro.html
+++ b/doc/language-bindings/java-intro.html
@@ -4,7 +4,7 @@
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<meta name="viewport" content="user-scalable=no, initial-scale=1, maximum-scale=1, minimum-scale=1, width=device-width">
<link href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:200,200i,300,300i,400,400i,600,600i,700,700i,900,900i" rel="stylesheet">
- <link rel="shortcut icon" type="image/png" href="../images/favicon.png">
+ <link rel="shortcut icon" href="../images/favicon.svg">
<link href="css/default.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="js/default.js"></script>
</head>
diff --git a/doc/language-bindings/md/images/export-jar.png b/doc/language-bindings/md/images/export-jar.png
index 9922043a..55550496 100644
--- a/doc/language-bindings/md/images/export-jar.png
+++ b/doc/language-bindings/md/images/export-jar.png
Binary files differ
diff --git a/doc/language-bindings/md/images/ghostnet-wpf-example.png b/doc/language-bindings/md/images/ghostnet-wpf-example.png
index df94b86c..b5b1eaa1 100644
--- a/doc/language-bindings/md/images/ghostnet-wpf-example.png
+++ b/doc/language-bindings/md/images/ghostnet-wpf-example.png
Binary files differ
diff --git a/doc/language-bindings/md/images/gsviewer.png b/doc/language-bindings/md/images/gsviewer.png
index 52e0f19a..75c9d5af 100644
--- a/doc/language-bindings/md/images/gsviewer.png
+++ b/doc/language-bindings/md/images/gsviewer.png
Binary files differ
diff --git a/doc/language-bindings/md/images/linking-jar.png b/doc/language-bindings/md/images/linking-jar.png
index a91da771..ce64e587 100644
--- a/doc/language-bindings/md/images/linking-jar.png
+++ b/doc/language-bindings/md/images/linking-jar.png
Binary files differ
diff --git a/doc/language-bindings/python-gsapi.html b/doc/language-bindings/python-gsapi.html
index d6d97ec3..0638ba56 100644
--- a/doc/language-bindings/python-gsapi.html
+++ b/doc/language-bindings/python-gsapi.html
@@ -4,7 +4,7 @@
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<meta name="viewport" content="user-scalable=no, initial-scale=1, maximum-scale=1, minimum-scale=1, width=device-width">
<link href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:200,200i,300,300i,400,400i,600,600i,700,700i,900,900i" rel="stylesheet">
- <link rel="shortcut icon" type="image/png" href="../images/favicon.png">
+ <link rel="shortcut icon" href="../images/favicon.svg">
<link href="css/default.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="js/default.js"></script>
</head>
diff --git a/doc/language-bindings/python-intro.html b/doc/language-bindings/python-intro.html
index 6236219b..338ff1e4 100644
--- a/doc/language-bindings/python-intro.html
+++ b/doc/language-bindings/python-intro.html
@@ -4,7 +4,7 @@
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<meta name="viewport" content="user-scalable=no, initial-scale=1, maximum-scale=1, minimum-scale=1, width=device-width">
<link href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:200,200i,300,300i,400,400i,600,600i,700,700i,900,900i" rel="stylesheet">
- <link rel="shortcut icon" type="image/png" href="../images/favicon.png">
+ <link rel="shortcut icon" href="../images/favicon.svg">
<link href="css/default.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="js/default.js"></script>
</head>
diff --git a/doc/sample_downscale_device.htm b/doc/sample_downscale_device.htm
index 1061b7c1..d0d5f4d4 100644
--- a/doc/sample_downscale_device.htm
+++ b/doc/sample_downscale_device.htm
@@ -1,65 +1,33 @@
<!doctype html>
-<html>
+<html lang="en">
<head>
-<meta charset="UTF-8">
-<meta name="viewport" content="width=device-width, initial-scale=1.0">
-<link href="https://fonts.googleapis.com/css?family=Source+Sans+Pro" rel="stylesheet">
-<link rel="shortcut icon" type="image/png" href="../../images/favicon.png">
-<title>Ghostscript: Sample CMYK 32-bit Device that Supports Post Rendering Processing</title>
-<link href="style.css" rel="stylesheet" type="text/css">
-<link href="gs-style.css" rel="stylesheet" type="text/css">
+ <meta http-equiv="content-type" content="text/html; charset=utf-8">
+ <meta name="viewport" content="user-scalable=yes, initial-scale=1, width=device-width">
+ <link href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:200,200i,300,300i,400,400i,600,600i,700,700i,900,900i" rel="stylesheet">
+ <link rel="shortcut icon" href="images/favicon.svg">
+ <title>Ghostscript: Sample CMYK 32-bit Device that Supports Post Rendering Processing</title>
+ <link href="default.css" rel="stylesheet" type="text/css">
</head>
<body>
+ <header><div class="title"><a href="index.html"><h1 aria-label="title">Ghostscript documentation</h1><h2 aria-label="version"></h2></a></div><a href="Search.htm" aria-label="Search" id="searchSite"><div class="search"></div></a></header>
+ <main>
+ <article>
+ <div class="outer">
- <div class="header">
- <div class="row">
- <div class="col-lt-6 logo"><a href="https://www.ghostscript.com/"><img src="images/ghostscript_logo.png" width="108" height="119" alt=""></a></div>
- <div class="col-6"><div class="row"><div class="artifexlogo"><a href="https://artifex.com" target="_blank"><img src="images/Artifex_logo.png" width="194" height="40" alt=""></a></div>
- <div class="col-12"><div class="button button1"><a href="https://artifex.com/contact-us/" title="Contact Us" target="_blank">Contact Us</a></div>
- <div class="button button2 hidden-xs"><a href="https://www.ghostscript.com/download.html" title="Download">Download</a></div></div></div>
- </div>
- </div>
- </div>
-
- <div class="banner">
- <div class="row">
- <div class="col-12"> Sample CMYK 32-bit Device that Supports Post Rendering Processing</div>
- </div>
- </div>
-
- <div class="main">
- <div class="row">
- <div id="sidebar">
- <div class="sidebar-item"></div>
- <div class="col-2 leftnav">
-<ul>
- <li><a href="https://www.ghostscript.com/">Home</a></li>
- <li><a href="https://www.ghostscript.com/license.html">Licensing</a></li>
- <li><a href="https://www.ghostscript.com/releases.html">Releases</a></li>
- <li><a href="https://www.ghostscript.com/documentation.html" title="Documentation">Documentation</a></li>
- <li><a href="https://www.ghostscript.com/download.html" title="Download">Download</a></li>
- <li><a href="https://www.ghostscript.com/performance.html" title="Performance">Performance</a></li>
- <li><a href="http://jbig2dec.com/" title="jbig2dec">jbig2dec</a></li>
- <li><a href="http://git.ghostscript.com/?p=ghostpdl.git;a=summary">Source</a></li>
- <li><a href="http://bugs.ghostscript.com/">Bugs</a></li>
- <li><a href="https://www.ghostscript.com/faq.html" title="FAQ">FAQ</a></li>
- </ul>
- </div>
- </div>
- <div class="col-10 page">
-
+ <div class="inner">
<!--START EDITING HERE-->
-<h2>Table of contents</h2>
+<h1>Ghostscript: Sample CMYK 32-bit Device that Supports Post Rendering Processing</h1>
-<blockquote><ul>
-<li><a href="#Description">Description</a>
-<li><a href="#Features">Features</a>
-<li><a href="#devs_mak">Changes to devices/devs.mak</a>
-<li><a href="#Building">Building Ghostscript with the driver</a>
-<li><a href="#Source">Source code</a>
-</ul></blockquote>
+<h2><a name="toc"></a>Table of contents</h2>
+<ul class="toc">
+ <li><a href="#Description">Description</a>
+ <li><a href="#Features">Features</a>
+ <li><a href="#devs_mak">Changes to devices/devs.mak</a>
+ <li><a href="#Building">Building Ghostscript with the driver</a>
+ <li><a href="#Source">Source code</a>
+</ul>
<!-- [1.2 end table of contents] =========================================== -->
@@ -240,7 +208,7 @@ The source for this device driver is in: <a href="gdevds32.c">doc/gdevds32.c</a>
<!-- [3.0 begin visible trailer] =========================================== -->
<p>
- <small>Copyright &copy; 2016-2021 Artifex Software, Inc. All rights reserved.</small>
+ <small>Copyright &copy; 2016-2022 Artifex Software, Inc. All rights reserved.</small>
<p>
This software is provided AS-IS with no warranty, either express or
@@ -253,39 +221,15 @@ or contact Artifex Software, Inc., 1305 Grant Avenue - Suite 200,
Novato, CA 94945, U.S.A., +1(415)492-9861, for further information.
<p>
-<small>Ghostscript version 9.55.0, 27 September 2021
+<small>Ghostscript version 9.56.0, 29 March 2022
<!-- [3.0 end visible trailer] ============================================= -->
-<!--FINISH EDITING HERE-->
- </div>
- </div>
- </div>
-
- <div class="footer">
- <div class="row">
- <div class="col-7 footleft">
- <ul>
- <li><a href="https://artifex.com/contact-us/" target="blank">CONTACT US</a></li>
- <li><a href="https://artifex.com/about-us/" target="blank">ABOUT</a></li>
- <li><a href="https://ghostscript.com/security.html">SECURITY</a></li>
- </ul>
- </div>
- <div class="col-1 footcenter">
- <ul>
- <li><a href="https://artifex.com/support/" target="blank">SUPPORT</a></li>
- <li><a href="https://artifex.com/blog/artifex/" target="blank">BLOG</a></li>
- <li><a href="https://artifex.com/privacy-policy/" target="blank">PRIVACY</a></li>
- </ul>
- </div>
- <div class="col-ft-3 footright"><img src="images/Artifex_logo.png" width="194" height="40" alt=""/> <br>
- © Copyright 2019-2021 Artifex Software, Inc. <br>
- All rights reserved.
- </div>
- </div>
- </div>
-
- <script src="http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>
- <script src="index.js"></script>
+<!--FINISH EDITING HERE-->
+ </div><!-- close inner -->
+ </div><!-- close outer -->
+ </article>
+ </main>
+ <script src="site.js"></script>
</body>
</html>
diff --git a/doc/site.js b/doc/site.js
new file mode 100644
index 00000000..e805969f
--- /dev/null
+++ b/doc/site.js
@@ -0,0 +1,14 @@
+switch(window.location.protocol) {
+ case 'http:':
+ case 'https:':
+ // remote file
+ document.getElementById("searchSite").style.display = "block";
+ break;
+ case 'file:':
+ // local file
+ document.getElementById("searchSite").style.display = "none";
+ break;
+ default:
+
+ break;
+}
diff --git a/doc/subclass.htm b/doc/subclass.htm
index a3f9d144..23423a17 100644
--- a/doc/subclass.htm
+++ b/doc/subclass.htm
@@ -1,66 +1,34 @@
<!doctype html>
-<html>
+<html lang="en">
<head>
-<meta charset="UTF-8">
-<meta name="viewport" content="width=device-width, initial-scale=1.0">
-<link href="https://fonts.googleapis.com/css?family=Source+Sans+Pro" rel="stylesheet">
-<link rel="shortcut icon" type="image/png" href="../../images/favicon.png">
-<title>Ghostscript: Device Subclassing</title>
-<link href="style.css" rel="stylesheet" type="text/css">
-<link href="gs-style.css" rel="stylesheet" type="text/css">
+ <meta http-equiv="content-type" content="text/html; charset=utf-8">
+ <meta name="viewport" content="user-scalable=yes, initial-scale=1, width=device-width">
+ <link href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:200,200i,300,300i,400,400i,600,600i,700,700i,900,900i" rel="stylesheet">
+ <link rel="shortcut icon" href="images/favicon.svg">
+ <title>Ghostscript: Device Subclassing</title>
+ <link href="default.css" rel="stylesheet" type="text/css">
</head>
<body>
+ <header><div class="title"><a href="index.html"><h1 aria-label="title">Ghostscript documentation</h1><h2 aria-label="version"></h2></a></div><a href="Search.htm" aria-label="Search" id="searchSite"><div class="search"></div></a></header>
+ <main>
+ <article>
+ <div class="outer">
- <div class="header">
- <div class="row">
- <div class="col-lt-6 logo"><a href="https://www.ghostscript.com/"><img src="images/ghostscript_logo.png" width="108" height="119" alt=""></a></div>
- <div class="col-6"><div class="row"><div class="artifexlogo"><a href="https://artifex.com" target="_blank"><img src="images/Artifex_logo.png" width="194" height="40" alt=""></a></div>
- <div class="col-12"><div class="button button1"><a href="https://artifex.com/contact-us/" title="Contact Us" target="_blank">Contact Us</a></div>
- <div class="button button2 hidden-xs"><a href="https://www.ghostscript.com/download.html" title="Download">Download</a></div></div></div>
- </div>
- </div>
- </div>
-
- <div class="banner">
- <div class="row">
- <div class="col-12"> Details of Ghostscript Device Subclassing</div>
- </div>
- </div>
-
- <div class="main">
- <div class="row">
- <div id="sidebar">
- <div class="sidebar-item"></div>
- <div class="col-2 leftnav">
-<ul>
- <li><a href="https://www.ghostscript.com/">Home</a></li>
- <li><a href="https://www.ghostscript.com/license.html">Licensing</a></li>
- <li><a href="https://www.ghostscript.com/releases.html">Releases</a></li>
- <li><a href="https://www.ghostscript.com/documentation.html" title="Documentation">Documentation</a></li>
- <li><a href="https://www.ghostscript.com/download.html" title="Download">Download</a></li>
- <li><a href="https://www.ghostscript.com/performance.html" title="Performance">Performance</a></li>
- <li><a href="http://jbig2dec.com/" title="jbig2dec">jbig2dec</a></li>
- <li><a href="http://git.ghostscript.com/?p=ghostpdl.git;a=summary">Source</a></li>
- <li><a href="http://bugs.ghostscript.com/">Bugs</a></li>
- <li><a href="https://www.ghostscript.com/faq.html" title="FAQ">FAQ</a></li>
- </ul>
- </div>
- </div>
- <div class="col-10 page">
-
+ <div class="inner">
<!--START EDITING HERE-->
-<h2>Table of contents</h2>
+<h1>Ghostscript: Device Subclassing</h1>
-<blockquote>
-<li><a href="#Gstate">Devices in the graphcis state</a>
-<li><a href="#Chaining">Chaining devices</a>
-<li><a href="#Subclassing">Subclassing</a>
-<li><a href="#Example_uses">Example uses</a>
-<li><a href="#Observations">Observations</a>
-<li><a href="#Example">Worked example</a>
-</blockquote>
+<h2><a name="toc"></a>Table of contents</h2>
+<ul class="toc">
+ <li><a href="#Gstate">Devices in the graphcis state</a></li>
+ <li><a href="#Chaining">Chaining devices</a></li>
+ <li><a href="#Subclassing">Subclassing</a></li>
+ <li><a href="#Example_uses">Example uses</a></li>
+ <li><a href="#Observations">Observations</a></li>
+ <li><a href="#Example">Worked example</a></li>
+</ul>
<!-- [1.2 end table of contents] =========================================== -->
@@ -723,7 +691,7 @@ int black_text_text_begin(gx_device *dev, gs_imager_state *pis, const gs_text_pa
<hr>
<p>
-<small>Copyright &copy; 2013-2021 Artifex Software, Inc. All rights
+<small>Copyright &copy; 2013-2022 Artifex Software, Inc. All rights
reserved.</small>
<p>
@@ -740,40 +708,15 @@ or contact Artifex Software, Inc., 1305 Grant Avenue - Suite 200,
Novato, CA 94945, U.S.A., +1(415)492-9861.
<p>
-<small>Ghostscript version 9.55.0, 27 September 2021
+<small>Ghostscript version 9.56.0, 29 March 2022
<!-- [3.0 end visible trailer] ============================================= -->
<!--FINISH EDITING HERE-->
-
- </div>
- </div>
- </div>
-
- <div class="footer">
- <div class="row">
- <div class="col-7 footleft">
- <ul>
- <li><a href="https://artifex.com/contact-us/" target="blank">CONTACT US</a></li>
- <li><a href="https://artifex.com/about-us/" target="blank">ABOUT</a></li>
- <li><a href="https://ghostscript.com/security.html">SECURITY</a></li>
- </ul>
- </div>
- <div class="col-1 footcenter">
- <ul>
- <li><a href="https://artifex.com/support/" target="blank">SUPPORT</a></li>
- <li><a href="https://artifex.com/blog/artifex/" target="blank">BLOG</a></li>
- <li><a href="https://artifex.com/privacy-policy/" target="blank">PRIVACY</a></li>
- </ul>
- </div>
- <div class="col-ft-3 footright"><img src="images/Artifex_logo.png" width="194" height="40" alt=""/> <br>
- © Copyright 2019-2021 Artifex Software, Inc. <br>
- All rights reserved.
- </div>
- </div>
- </div>
-
- <script src="http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>
- <script src="index.js"></script>
+ </div><!-- close inner -->
+ </div><!-- close outer -->
+ </article>
+ </main>
+ <script src="site.js"></script>
</body>
</html>
diff --git a/doc/thirdparty.htm b/doc/thirdparty.htm
index cb4aa718..20b74da6 100644
--- a/doc/thirdparty.htm
+++ b/doc/thirdparty.htm
@@ -1,64 +1,25 @@
<!doctype html>
-<html>
+<html lang="en">
<head>
-<meta charset="UTF-8">
-<meta name="viewport" content="width=device-width, initial-scale=1.0">
-<link href="https://fonts.googleapis.com/css?family=Source+Sans+Pro" rel="stylesheet">
-<link rel="shortcut icon" type="image/png" href="../../images/favicon.png">
-<title>Third Party Libraries Used by Ghostscript and GhostPDL</title>
- <!-- Originally: NEWS -->
- <!--
- WARNING: do not use Pete Kaiser's emacs function "gs-toc" alone to
- re-create the table of contents here, because it will replace the
- hand-edited TOC subheads with a separate subhead for each H2 in
- the body of the file. Or if you do, first look at the original
- TOC to see how to edit it for visual conciseness.
- -->
-<link href="style.css" rel="stylesheet" type="text/css">
-<link href="gs-style.css" rel="stylesheet" type="text/css">
+ <meta http-equiv="content-type" content="text/html; charset=utf-8">
+ <meta name="viewport" content="user-scalable=yes, initial-scale=1, width=device-width">
+ <link href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:200,200i,300,300i,400,400i,600,600i,700,700i,900,900i" rel="stylesheet">
+ <link rel="shortcut icon" href="images/favicon.svg">
+ <title>Third Party Libraries Used by Ghostscript and GhostPDL</title>
+ <link href="default.css" rel="stylesheet" type="text/css">
</head>
<body>
+ <header><div class="title"><a href="index.html"><h1 aria-label="title">Ghostscript documentation</h1><h2 aria-label="version"></h2></a></div><a href="Search.htm" aria-label="Search" id="searchSite"><div class="search"></div></a></header>
+ <main>
+ <article>
+ <div class="outer">
- <div class="header">
- <div class="row">
- <div class="col-lt-6 logo"><a href="https://www.ghostscript.com/"><img src="images/ghostscript_logo.png" width="108" height="119" alt=""></a></div>
- <div class="col-6"><div class="row"><div class="artifexlogo"><a href="https://artifex.com" target="_blank"><img src="images/Artifex_logo.png" width="194" height="40" alt=""></a></div>
- <div class="col-12"><div class="button button1"><a href="https://artifex.com/contact-us/" title="Contact Us" target="_blank">Contact Us</a></div>
- <div class="button button2 hidden-xs"><a href="https://www.ghostscript.com/download.html" title="Download">Download</a></div></div></div>
- </div>
- </div>
- </div>
-
- <div class="banner">
- <div class="row">
- <div class="col-12">Third Party Libraries Used by Ghostscript and GhostPDL</div>
- </div>
- </div>
-
- <div class="main">
- <div class="row">
- <div id="sidebar">
- <div class="sidebar-item"></div>
- <div class="col-2 leftnav">
-<ul>
- <li><a href="https://www.ghostscript.com/">Home</a></li>
- <li><a href="https://www.ghostscript.com/license.html">Licensing</a></li>
- <li><a href="https://www.ghostscript.com/releases.html">Releases</a></li>
- <li><a href="https://www.ghostscript.com/documentation.html" title="Documentation">Documentation</a></li>
- <li><a href="https://www.ghostscript.com/download.html" title="Download">Download</a></li>
- <li><a href="https://www.ghostscript.com/performance.html" title="Performance">Performance</a></li>
- <li><a href="http://jbig2dec.com/" title="jbig2dec">jbig2dec</a></li>
- <li><a href="http://git.ghostscript.com/?p=ghostpdl.git;a=summary">Source</a></li>
- <li><a href="http://bugs.ghostscript.com/">Bugs</a></li>
- <li><a href="https://www.ghostscript.com/faq.html" title="FAQ">FAQ</a></li>
- </ul>
- </div>
- </div>
- <div class="col-10 page">
-
+ <div class="inner">
<!--START EDITING HERE-->
+<h1>Third Party Libraries Used by Ghostscript and GhostPDL</h1>
+
<p>
The table below details the third party libraries that Ghostscript and/or
GhostPDL include, the versions QA tested and shipped with our releases,
@@ -85,7 +46,7 @@ the relevant license, and the "upstream" URL.
<tr height="60">
<td align="center">eXpat</td>
-<td align="center">2.2.9</td>
+<td align="center">2.4.1</td>
<td align="center">XML parsing for XPS interpreter</td>
<td align="center">MIT/eXpat License</td>
<td align="center"><a href="http://expat.sourceforge.net/">http://expat.sourceforge.net/</a></td>
@@ -93,7 +54,7 @@ the relevant license, and the "upstream" URL.
<tr height="60">
<td align="center">FreeType</td>
-<td align="center">2.10.1</td>
+<td align="center">2.11.1</td>
<td align="center">Font scaling and rendering for Ghostscript</td>
<td align="center">FreeType License<br>
<font size="1">(BSD-style license with a credit clause)</font></td>
@@ -102,7 +63,7 @@ the relevant license, and the "upstream" URL.
<tr height="60">
<td align="center">jbig2dec</td>
-<td align="center">0.17</td>
+<td align="center">0.19</td>
<td align="center">JBIG2 decoding for the PDF interpreter</td>
<td align="center">Licensed with Ghostscript/GhostPDL<br>
<font size="1">(copyright owned by Artifex)</font></td>
@@ -111,7 +72,7 @@ the relevant license, and the "upstream" URL.
<tr height="60">
<td align="center">libjpeg</td>
-<td align="center">9c<br>
+<td align="center">9d<br>
<font size="1">with patches</font></td>
<td align="center">JPEG/DCT decoding/encoding</td>
<td align="center">"Free"<br>
@@ -121,8 +82,8 @@ the relevant license, and the "upstream" URL.
<tr height="60">
<td align="center">LittleCMS 2 mt<br>
-<font size="1">(lcms2mt – thread save fork of lcms2)</font></td>
-<td align="center">2.9mt</td>
+<font size="1">(lcms2mt - thread save fork of lcms2)</font></td>
+<td align="center">2.10mt</td>
<td align="center">ICC profile based color conversion and management</td>
<td align="center">MIT LICENSE</td>
<td align="center"><a href="http://www.ghostscript.com/">http://www.ghostscript.com/</a></td>
@@ -139,7 +100,7 @@ the relevant license, and the "upstream" URL.
<tr height="60">
<td align="center">OpenJPEG</td>
-<td align="center">2.3.1</td>
+<td align="center">2.4.0</td>
<td align="center">JPEG2000 image decoding for the PDF interpreter</td>
<td align="center">BSD-style</td>
<td align="center"><a href="http://www.openjpeg.org/">http://www.openjpeg.org/</a></td>
@@ -147,7 +108,7 @@ the relevant license, and the "upstream" URL.
<tr height="60">
<td align="center">libtiff</td>
-<td align="center">4.1.0</td>
+<td align="center">4.2.0</td>
<td align="center">TIFF image encoding/decoding</td>
<td align="center">BSD-style</td>
<td align="center"><a href="http://www.remotesensing.org/libtiff/">http://www.remotesensing.org/libtiff/</a></td>
@@ -164,6 +125,31 @@ the relevant license, and the "upstream" URL.
<tr>
+<td colspan="5" align="left"><hr>The following are optional.<hr></td>
+</tr>
+
+<tr height="60">
+<td align="center">tesseract</td>
+<td align="center">4.1.0<br>
+<font size="1">with patches</font></td>
+<td align="center">Optical Character Recognition (OCR) library</td>
+<td align="center">Apache License 2.0<br>
+<font size="1"></font></td>
+<td align="center"><a href="https://github.com/tesseract-ocr/tesseract">https://github.com/tesseract-ocr/tesseract</a></td>
+</tr>
+
+<tr height="60">
+<td align="center">leptonica</td>
+<td align="center">1.80.0<br>
+<font size="1">with patches</font></td>
+<td align="center">Image processing toolkit - support library for tesseract OCR</td>
+<td align="center">Leptonica License<br>
+<font size="1">"a permissive free software license"</font></td>
+<td align="center"><a href="http://www.leptonica.org/">http://www.leptonica.org/</a></td>
+</tr>
+
+<tr>
+
<td colspan="5" align="left"><hr>The following are no-cost, open source licensed, but not GPL compatible.<hr></td>
</tr>
@@ -191,16 +177,6 @@ the relevant license, and the "upstream" URL.
<td align="center"><a href="http://www.monotypeimaging.com/">http://www.monotypeimaging.com/</a></td>
</tr>
-<tr height="60">
-<td align="center">LittleCMS<br>
-<font size="1">(lcms2)</font></td>
-<td align="center">1.1.8<br>
-<font size="1">with patches</font></td>
-<td align="center">ICC profile base color conversion and management</td>
-<td align="center">MIT LICENSE</td>
-<td align="center"><a href="http://www.littlecms.com/">http://www.littlecms.com/</a></td>
-</tr>
-
</table>
<!-- [2.0 end contents] ==================================================== -->
@@ -209,7 +185,7 @@ the relevant license, and the "upstream" URL.
<hr>
<p>
-<small>Copyright &copy; 2005-2021 Artifex Software, Inc.
+<small>Copyright &copy; 2005-2022 Artifex Software, Inc.
All rights reserved.</small>
<p>
@@ -223,40 +199,17 @@ or contact Artifex Software, Inc., 1305 Grant Avenue - Suite 200,
Novato, CA 94945, U.S.A., +1(415)492-9861, for further information.
<p>
-<small>Ghostscript version 9.55.0, 27 September 2021
+<small>Ghostscript version 9.56.0, 29 March 2022
<!-- [3.0 end visible trailer] ============================================= -->
-<!--FINISH EDITING HERE-->
- </div>
- </div>
- </div>
-
- <div class="footer">
- <div class="row">
- <div class="col-7 footleft">
- <ul>
- <li><a href="https://artifex.com/contact-us/" target="blank">CONTACT US</a></li>
- <li><a href="https://artifex.com/about-us/" target="blank">ABOUT</a></li>
- <li><a href="https://ghostscript.com/security.html">SECURITY</a></li>
- </ul>
- </div>
- <div class="col-1 footcenter">
- <ul>
- <li><a href="https://artifex.com/support/" target="blank">SUPPORT</a></li>
- <li><a href="https://artifex.com/blog/artifex/" target="blank">BLOG</a></li>
- <li><a href="https://artifex.com/privacy-policy/" target="blank">PRIVACY</a></li>
- </ul>
- </div>
- <div class="col-ft-3 footright"><img src="images/Artifex_logo.png" width="194" height="40" alt=""/> <br>
- © Copyright 2019-2021 Artifex Software, Inc. <br>
- All rights reserved.
- </div>
- </div>
- </div>
-
- <script src="http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>
- <script src="index.js"></script>
+
+<!--FINISH EDITING HERE-->
+ </div><!-- close inner -->
+ </div><!-- close outer -->
+ </article>
+ </main>
+ <script src="site.js"></script>
</body>
</html>
diff --git a/extract/Makefile b/extract/Makefile
index 086c09b7..31b099c3 100644
--- a/extract/Makefile
+++ b/extract/Makefile
@@ -18,6 +18,9 @@
# to docx. We require that $(gs) was built with --with-extract-dir=... We
# also do a simple test of output-file-per-page.
#
+# make test-tables
+# Tests handling of tables, using mutool with docx device's html output.
+#
# make test-buffer test-misc test-src
# Runs unit tests etc.
#
@@ -53,13 +56,21 @@ else ifeq ($(build),debug-opt)
else ifeq ($(build),memento)
flags_link += -g -dl
ifeq ($(uname),OpenBSD)
- flags_link += -L /usr/local/lib -l execinfo
+ flags_link += -l execinfo
endif
flags_compile += -g -D MEMENTO
else
$(error unrecognised $$(build)=$(build))
endif
+gdb = gdb
+ifeq ($(uname),OpenBSD)
+ flags_link += -L /usr/local/lib -l execinfo
+ $(warning have added -L /usr/local/lib)
+ gdb = egdb
+ # For some reason OpenBSD's gmake defaults CXX to g++, which is not helpful.
+ CXX = c++
+endif
# Locations of mutool and gs. By default we assume these are not available.
#
@@ -72,7 +83,11 @@ endif
we_are_mupdf_thirdparty = $(findstring /mupdf/thirdparty/extract, $(abspath .))
ifneq ($(we_are_mupdf_thirdparty),)
$(warning we are mupdf thirdparty)
- mutool := ../../build/debug/mutool
+ ifeq ($(build),memento)
+ mutool := ../../build/memento/mutool
+ else
+ mutool := ../../build/debug/mutool
+ endif
gs := ../../../ghostpdl/debug-extract-bin/gs
libbacktrace = ../../../libbacktrace/.libs
endif
@@ -86,6 +101,12 @@ endif
$(warning mutool=$(mutool))
endif
+ifeq ($(build),memento)
+ mutool_run := MEMENTO_ABORT_ON_LEAK=1 $(mutool)
+else
+ mutool_run := $(mutool)
+endif
+
ifneq ($(gs),)
ifeq ($(wildcard $(gs)),)
$(error gs does not exist: $(gs))
@@ -96,7 +117,7 @@ endif
# Default target - run all tests.
#
-test: test-buffer test-misc test-src test-exe test-mutool test-gs
+test: test-buffer test-misc test-src test-exe test-mutool test-gs test-html test-tables
@echo $@: passed
# Define the main test targets.
@@ -115,7 +136,9 @@ ifneq ($(mutool),)
tests_exe := $(tests_exe) $(patsubst %, %.intermediate-mu.xml, $(pdfs_generated))
endif
ifneq ($(gs),)
- tests_exe := $(tests_exe) $(patsubst %, %.intermediate-gs.xml, $(pdfs_generated))
+# 2022-02-23: don't check intermediate-gs, because gs's txtwrite device doesn't
+# work easily with multi-page documents since the change to pdfi.
+# tests_exe := $(tests_exe) $(patsubst %, %.intermediate-gs.xml, $(pdfs_generated))
endif
tests_exe := \
@@ -134,10 +157,15 @@ ifneq ($(mutool),)
$(patsubst %, %.mutool.docx.diff, $(pdfs_generated)) \
$(patsubst %, %.mutool-norotate.docx.diff, $(pdfs_generated)) \
$(patsubst %, %.mutool.odt.diff, $(pdfs_generated)) \
+ $(patsubst %, %.mutool.text.diff, $(pdfs_generated)) \
tests_mutool_odt := \
$(patsubst %, %.mutool.odt.diff, $(pdfs_generated)) \
+ tests_mutool_text := \
+ $(patsubst %, %.mutool.text.diff, $(pdfs_generated)) \
+
+ tests_html := test/generated/table.pdf.mutool.html.diff
endif
ifneq ($(gs),)
# Targets that test direct conversion with gs.
@@ -157,18 +185,21 @@ endif
test-exe: $(tests_exe)
@echo $@: passed
-# Checks output of mutool conversion from .pdf to .docx/.odt. Requires that
-# mutool was built with extract as a third-party library.
+# Checks output of mutool conversion from .pdf to .docx/.odt.
#
test-mutool: $(tests_mutool)
@echo $@: passed
-# Checks output of mutool conversion from .pdf to .odt. Requires that mutool
-# was built with extract as a third-party library.
+# Checks output of mutool conversion from .pdf to .odt.
#
test-mutool-odt: $(tests_mutool_odt)
@echo $@: passed
+# Checks output of mutool conversion from .pdf to .text.
+#
+test-mutool-text: $(tests_mutool_text)
+ @echo $@: passed
+
# Checks output of gs conversion from .pdf to .docx. Requires that gs was built
# with extract as a third-party library. As of 2021-02-10 this requires, for
# example ghostpdl/extract being a link to an extract checkout and configuring
@@ -193,7 +224,59 @@ test_gs_fpp: $(gs)
ls test/generated/text_graphic_image.pdf.gs.*.docx | wc -l | grep '^ *1$$'
ls test/generated/Python2.pdf.gs.*.docx | wc -l | grep '^ *1$$'
ls test/generated/zlib.3.pdf.gs.*.docx | wc -l | grep '^ *2$$'
-
+
+
+test-html: $(tests_html)
+
+ifneq ($(mutool),)
+ test_tables_pdfs = \
+ test/agstat.pdf \
+ test/background_lines_1.pdf \
+ test/background_lines_2.pdf \
+ test/column_span_1.pdf \
+ test/column_span_2.pdf \
+ test/electoral_roll.pdf \
+ test/rotated.pdf \
+ test/row_span.pdf \
+ test/table.pdf \
+ test/twotables_1.pdf \
+ test/twotables_2.pdf \
+
+ test_tables_generated = $(patsubst test/%, test/generated/%, $(test_tables_pdfs))
+
+ test_tables_html = $(patsubst test/%.pdf, test/generated/%.pdf.mutool.html.diff, $(test_tables_pdfs))
+ test_tables_docx = $(patsubst test/%.pdf, test/generated/%.pdf.mutool.docx.diff, $(test_tables_pdfs))
+ test_tables_odt = $(patsubst test/%.pdf, test/generated/%.pdf.mutool.odt.diff, $(test_tables_pdfs))
+
+ test_tables = $(test_tables_html) $(test_tables_docx) $(test_tables_odt)
+endif
+
+test-tables-html: $(test_tables_html)
+test-tables-docx: $(test_tables_docx)
+test-tables-odt: $(test_tables_odt)
+
+test-tables: $(test_tables)
+ @echo $@: passed
+
+test/generated/%.pdf.mutool.html.diff: test/generated/%.pdf.mutool.html test/%.pdf.mutool.html.ref
+ @echo
+ @echo == Checking $<
+ diff -u $^
+
+test/generated/%.pdf.mutool.cv.html.diff: test/generated/%.pdf.mutool.cv.html test/%.pdf.mutool.html.ref
+ @echo
+ @echo == Checking $<
+ diff -u $^
+
+test/generated/%.pdf.mutool.cv.html: test/%.pdf $(mutool)
+ $(mutool) convert -O resolution=300 -o $<..png $<
+ EXTRACT_OPENCV_IMAGE_BASE=$< $(mutool_run) convert -F docx -O html -o $@ $<
+
+test/generated/%.pdf.mutool.text.diff: test/generated/%.pdf.mutool.text test/%.pdf.mutool.text.ref
+ @echo
+ @echo == Checking $<
+ diff -u $^
+
# Main executable.
#
@@ -202,10 +285,12 @@ exe_src = \
src/alloc.c \
src/astring.c \
src/buffer.c \
+ src/document.c \
src/docx.c \
src/docx_template.c \
src/extract-exe.c \
src/extract.c \
+ src/html.c \
src/join.c \
src/mem.c \
src/odt.c \
@@ -216,6 +301,7 @@ exe_src = \
src/xml.c \
src/zip.c \
+
ifeq ($(build),memento)
exe_src += src/memento.c
ifeq ($(uname),Linux)
@@ -223,29 +309,52 @@ ifeq ($(build),memento)
flags_link += -L $(libbacktrace) -l backtrace -l dl
endif
endif
-exe_obj = $(patsubst src/%.c, src/build/%.c-$(build).o, $(exe_src))
+exe_obj := $(exe_src)
+exe_obj := $(patsubst src/%.c, src/build/%.c-$(build).o, $(exe_obj))
+exe_obj := $(patsubst src/%.cpp, src/build/%.cpp-$(build).o, $(exe_obj))
exe_dep = $(exe_obj:.o=.d)
exe: $(exe)
$(exe): $(exe_obj)
- $(CC) $(flags_link) -o $@ $^ -lz -lm
+ $(CXX) $(flags_link) -o $@ $^ -lz -lm
run_exe = $(exe)
ifeq ($(build),memento)
ifeq ($(uname),Linux)
- run_exe = LD_LIBRARY_PATH=$(libbacktrace) MEMENTO_ABORT_ON_LEAK=1 MEMENTO_HIDE_MULTIPLE_REALLOCS=1 $(exe)
+ run_exe = MEMENTO_ABORT_ON_LEAK=1 MEMENTO_HIDE_MULTIPLE_REALLOCS=1 LD_LIBRARY_PATH=$(libbacktrace) $(exe)
#run_exe = LD_LIBRARY_PATH=../libbacktrace/.libs $(exe)
endif
ifeq ($(uname),OpenBSD)
- run_exe = MEMENTO_ABORT_ON_LEAK=1 $(exe)
+ run_exe = MEMENTO_ABORT_ON_LEAK=1 MEMENTO_HIDE_MULTIPLE_REALLOCS=1 $(exe)
endif
endif
-ifeq ($(create_ref),yes)
-# Special rule for populating .ref directories with current output. Useful to
+exe_tables = src/build/extract-tables-$(build).exe
+exe-tables: $(exe_tables)
+exe-tables-test: $(exe_tables)
+ $< test/agstat.pdf
+
+ifeq (0,1)
+# Do not commit changes to above line.
+#
+# Special rules for populating .ref directories with current output. Useful to
# initialise references outputs for new output type.
#
+test/%.docx.dir.ref/: test/generated/%.docx.dir/
+ rsync -ai $< $@
test/%.odt.dir.ref/: test/generated/%.odt.dir/
rsync -ai $< $@
+test/%.text.ref: test/generated/%.text
+ rsync -ai $< $@
+
+_update_tables_leafs = $(patsubst test/%, %, $(test_tables_pdfs))
+# Update all table docx reference outputs.
+#
+_update-docx-tables:
+ for i in $(_update_tables_leafs); do rsync -ai test/generated/$$i.mutool.docx.dir/ test/$$i.mutool.docx.dir.ref/; done
+# Update all table odt reference outputs.
+#
+_update-odt-tables:
+ for i in $(_update_tables_leafs); do rsync -ai test/generated/$$i.mutool.odt.dir/ test/$$i.mutool.odt.dir.ref/; done
endif
# Rules that make the various intermediate targets required by $(tests).
@@ -255,7 +364,7 @@ test/generated/%.pdf.intermediate-mu.xml: test/%.pdf $(mutool)
@echo
@echo == Generating intermediate file for $< with mutool.
@mkdir -p test/generated
- $(mutool) draw -F xmltext -o $@ $<
+ $(mutool_run) draw -F xmltext -o $@ $<
test/generated/%.pdf.intermediate-gs.xml: test/%.pdf $(gs)
@echo
@@ -297,6 +406,12 @@ test/generated/%.diff: test/generated/%.dir/ test/%.dir.ref/
@echo
@echo == Checking $<
diff -ru $^
+#if diff -ruq $^; then true; else echo "@@@ failure... fix with: rsync -ai" $^; false; fi
+
+test/generated/%.html.diff: test/generated/%.html test/%.html.ref
+ @echo
+ @echo == Checking $<
+ diff -u $^
# This checks that -t src/template.docx gives identical results.
#
@@ -336,6 +451,14 @@ test/generated/%.extract-template.docx.diff: test/generated/%.extract-template.d
@rm -r $@ 2>/dev/null || true
cd $< && zip -r ../$(notdir $@) .
+# Uses zip to create .odt file by zipping up a directory. Useful to recreate
+# .docx from reference directory test/*.odt.dir.ref.
+%.odt: %
+ @echo
+ @echo == Zipping directory into .odt file.
+ @rm -r $@ 2>/dev/null || true
+ cd $< && zip -r ../$(notdir $@) .
+
# Prettifies each .xml file within .docx.dir/ directory.
%.docx.dir.pretty: %.docx.dir/
@rm -r $@ $@- 2>/dev/null || true
@@ -348,19 +471,19 @@ test/generated/%.pdf.mutool.docx: test/%.pdf $(mutool)
@echo
@echo == Converting .pdf directly to .docx using mutool.
@mkdir -p test/generated
- $(mutool) convert -O mediabox-clip=yes -o $@ $<
+ $(mutool_run) convert -O mediabox-clip=yes -o $@ $<
test/generated/%.pdf.mutool-norotate.docx: test/%.pdf $(mutool)
@echo
@echo == Converting .pdf directly to .docx using mutool.
@mkdir -p test/generated
- $(mutool) convert -O mediabox-clip=yes,rotation=no -o $@ $<
+ $(mutool_run) convert -O mediabox-clip=yes,rotation=no -o $@ $<
test/generated/%.pdf.mutool-spacing.docx: test/%.pdf $(mutool)
@echo
@echo == Converting .pdf directly to .docx using mutool.
@mkdir -p test/generated
- $(mutool) convert -O mediabox-clip=yes,spacing=yes -o $@ $<
+ $(mutool_run) convert -O mediabox-clip=yes,spacing=yes -o $@ $<
# Converts .pdf directly to .docx using gs.
test/generated/%.pdf.gs.docx: test/%.pdf $(gs)
@@ -374,8 +497,21 @@ test/generated/%.pdf.mutool.odt: test/%.pdf $(mutool)
@echo
@echo == Converting .pdf directly to .odt using mutool.
@mkdir -p test/generated
- $(mutool) convert -O mediabox-clip=no -o $@ $<
+ $(mutool_run) convert -O mediabox-clip=no -o $@ $<
+# Converts .pdf directly to .html using mutool
+test/generated/%.pdf.mutool.html: test/%.pdf $(mutool)
+ @echo
+ @echo == Converting .pdf directly to .html using mutool.
+ @mkdir -p test/generated
+ $(mutool_run) convert -F docx -O html -o $@ $<
+
+# Converts .pdf directly to .text using mutool
+test/generated/%.pdf.mutool.text: test/%.pdf $(mutool)
+ @echo
+ @echo == Converting .pdf directly to .text using mutool.
+ @mkdir -p test/generated
+ $(mutool_run) convert -F docx -O text -o $@ $<
# Valgrind test
#
@@ -386,17 +522,29 @@ valgrind: $(exe) test/generated/Python2.pdf.intermediate-mu.xml
# Memento tests.
#
ifeq ($(build),memento)
-msqueeze: $(exe) test/generated/Python2.pdf.intermediate-mu.xml
- MEMENTO_SQUEEZEAT=1 $(run_exe) --alloc-exp-min 0 -r 1 -s 0 -i test/generated/Python2.pdf.intermediate-mu.xml -o test/generated/msqueeze-out.docx 2>&1 | src/memento.py -q 1 -o msqueeze-raw
- @echo $@: passed
-mfailat: $(exe) test/generated/Python2.pdf.intermediate-mu.xml
- MEMENTO_FAILAT=61463 $(run_exe) --alloc-exp-min 0 -r 1 -s 0 -i test/generated/Python2.pdf.intermediate-mu.xml -o test/generated/msqueeze-out.docx
- @echo $@: passed
-mutool_memento_extract = ../../build/memento-extract/mutool
-msqueeze-mutool:
- MEMENTO_SQUEEZEAT=1 $(mutool_memento_extract) convert -o test/generated/text_graphic_image.pdf.mutool.docx test/text_graphic_image.pdf 2>&1 | src/memento.py -q 1 -o msqueeze-raw
-msqueeze-mutool2:
- MEMENTO_SQUEEZEAT=1 $(mutool_memento_extract) convert -o test/generated/Python2.pdf.mutool.docx test/Python2.pdf 2>&1 | src/memento.py -q 1 -o msqueeze-raw
+mutool_memento_extract = ../../build/memento/mutool
+memento_failat_gdb := $(gdb) -ex 'b Memento_breakpoint' -ex r -ex c -ex bt --args
+
+# Memento squeeze with test/text_graphic_image.pdf runs quickly - just 2,100 events taking 20s.
+#
+# test/Python2.pdf is much slower - 301,900 events, taking around 8h.
+#
+msqueeze-mutool-docx:
+ MEMENTO_SQUEEZEAT=1 ./src/memento.py -q 100 $(mutool_run) convert -o $@.docx test/text_graphic_image.pdf
+msqueeze-mutool-docx-failat:
+ MEMENTO_FAILAT=1960 $(memento_failat_gdb) $(mutool) convert -o $@.docx test/text_graphic_image.pdf
+msqueeze-mutool-odt:
+ MEMENTO_SQUEEZEAT=1 ./src/memento.py -q 100 $(mutool_run) convert -o $@.docx test/text_graphic_image.pdf
+msqueeze-mutool-odt2:
+ MEMENTO_SQUEEZEAT=4000 ./src/memento.py -q 100 $(mutool_run) convert -o $@.docx test/Python2.pdf
+msqueeze-mutool-table:
+ MEMENTO_SQUEEZEAT=1 ./src/memento.py -q 100 $(mutool_run) convert -F docx -O html -o $@.html test/agstat.pdf
+msqueeze-mutool-table-docx:
+ MEMENTO_SQUEEZEAT=1 ./src/memento.py -q 100 $(mutool_run) convert -o $@.docx test/agstat.pdf
+msqueeze-mutool-table-odt:
+ MEMENTO_SQUEEZEAT=1 ./src/memento.py -q 100 $(mutool_run) convert -o $@.odt test/agstat.pdf
+msqueeze-mutool-table-failat:
+ MEMENTO_FAILAT=296643 MEMENTO_HIDE_MULTIPLE_REALLOCS=1 $(gdb) -ex 'b Memento_breakpoint' -ex r -ex c -ex bt --args $(mutool_memento_extract) convert -F docx -O html -o $@.html test/agstat.pdf
endif
@@ -437,6 +585,10 @@ test-buffer-valgrind: $(exe_buffer_test)
valgrind --leak-check=full ./$<
@echo $@: passed
+ifeq ($(build),memento)
+test-buffer-msqueeze: $(exe_buffer_test)
+ MEMENTO_SQUEEZEAT=1 ./src/memento.py -q 1 ./$<
+endif
# Misc unit test.
#
@@ -477,12 +629,26 @@ test-src:
if egrep -wn 'for *[(] *[a-zA-Z0-9]+ [a-zA-Z0-9]' src/*.c src/*.h; then false; else true; fi
@echo $@: passed
+# Check that all defined global symbols start with 'extract_'. This is not
+# included in the overall 'test' target because the use of '!egrep ...' appears
+# to break on some cluster machines.
+#
+test-obj:
+ @echo
+ nm -egPC $(exe_obj) | egrep '^[a-zA-Z0-9_]+ T' | grep -vw ^main | ! egrep -v ^extract_
+ @echo $@: passed
+
# Compile rule. We always include src/docx_template.c as a prerequisite in case
-# code #includes docx_template.h.
+# code #includes docx_template.h. We use -std=gnu90 to catch 'ISO C90 forbids
+# mixing declarations and code' errors while still supporting 'inline'.
#
src/build/%.c-$(build).o: src/%.c src/docx_template.c src/odt_template.c
@mkdir -p src/build
- $(CC) -c $(flags_compile) -o $@ $<
+ $(CC) -std=gnu90 -c $(flags_compile) -o $@ $<
+
+src/build/%.cpp-$(build).o: src/%.cpp
+ @mkdir -p src/build
+ $(CXX) -c -Wall -W -I /usr/local/include/opencv4 -o $@ $<
# Rule for machine-generated source code, src/docx_template.c. Also generates
# src/docx_template.h.
diff --git a/extract/README b/extract/README
index 5917f045..aadd1062 100644
--- a/extract/README
+++ b/extract/README
@@ -2,7 +2,7 @@ Directory tree:
Makefile Builds and runs tests.
include/ Public API.
- src/ Scripts, C implementattion and internal headers.
+ src/ Scripts, C implementation and internal headers.
build/ Generated object files, executables etc.
test/ Test files.
generated/ Files generated by tests.
@@ -10,3 +10,41 @@ Directory tree:
Build and run tests with:
make
+Conventions:
+
+ Errors:
+
+ Functions return zero on success or -1 with errno set.
+
+ Identifier/symbol names:
+
+ All identifiers that can be seen by client code (generally things
+ defined in include/) start with 'extract_'.
+
+ Similarly global symbols in generated .o files all start with
+ 'extract_'; this is tested by target 'test-obj'.
+
+ Other identifiers and symbols do not have an 'extract_' prefix - not
+ necessary because client code cannot see these names.
+
+ Header names in include/ start with 'extract_'.
+
+ Allocation:
+
+ Functions that free a data structure generally take a double pointer
+ so that they can set the pointer to NULL before returning, which helps
+ avoid stray invalid non-NULL pointers. E.g.:
+
+ extract_span_free(extract_alloc_t* alloc, span_t** pspan);
+ /* Frees a span_t, returning with *pspan set to NULL. */
+
+ This double-pointer approach is also used for raw allocation - see
+ include/extract_alloc.h.
+
+ Lists:
+ Lists of data items are generally implemented using an array of
+ pointers and an int 'foo_num' entry, e.g.:
+
+ line_t** lines;
+ int lines_num;
+
diff --git a/extract/include/extract.h b/extract/include/extract.h
index 60908c06..b01ba6f3 100644
--- a/extract/include/extract.h
+++ b/extract/include/extract.h
@@ -1,32 +1,43 @@
#ifndef ARITFEX_EXTRACT_H
#define ARITFEX_EXTRACT_H
-#include "extract_alloc.h"
-#include "extract_buffer.h"
-
-
-/* Functions for creating docx archives.
-
-We can accept images and paragraphs of text from intermediate format data, for
-example created by these commands:
-
- mutool draw -F xmltext ...
- gs -sDEVICE=txtwrite -dTextFormat=4 ...
+/* Functions for creating docx, odt, html and text files from information about
+raw characters, images and graphic elements.
Unless otherwise stated, all functions return 0 on success or -1 with errno
set.
*/
+#include "extract_alloc.h"
+#include "extract_buffer.h"
+
+
typedef struct extract_t extract_t;
-/* State for processing a document. */
+/* Abstract state for processing a document. */
typedef enum
{
extract_format_ODT,
- extract_format_DOCX
+ extract_format_DOCX,
+ extract_format_HTML,
+ extract_format_TEXT
} extract_format_t;
+/* Specifies the output document type.
+
+extract_format_ODT
+extract_format_DOCX
+ Uses internal template ODT and DOCX documents.
+
+extract_format_HTML:
+ Uses <p> for paragraphs, and <b> and <i> for bold and italic text.
+
+extract_format_TEXT:
+ Outputs one line per paragraph, encoding text as utf8. Ligatures and and
+ some unicode characters such as dash (0x2212) are converted into ascii
+ equvalents.
+*/
int extract_begin(
@@ -39,17 +50,6 @@ allocation will be done with <alloc> (which can be NULL in which case we use
malloc/free, or from extract_alloc_create()). */
-int extract_read_intermediate(
- extract_t* extract,
- extract_buffer_t* buffer,
- int autosplit
- );
-/* Reads XML specification of spans and images from <buffer> and adds to
-<extract>.
-
-(Makes internal calls to extract_span_begin(), extract_add_image() etc.) */
-
-
int extract_page_begin(extract_t* extract);
/* Must be called before extract_span_begin(). */
@@ -111,7 +111,7 @@ ucs
adv
Advance of this character.
autosplit
- If non-zero, we do additional splitting to stress the join algorithm.
+ Ignored as of 2021-07-02.
*/
@@ -138,7 +138,7 @@ int extract_add_image(
/* Adds an image to the current page.
type
- E.g. 'png'. Is copied so need to persist after we return.
+ E.g. 'png'. Is copied so no need to persist after we return.
x y w h
Location and size of image.
data data_size
@@ -150,6 +150,88 @@ data_free
*/
+int extract_add_path4(
+ extract_t* extract,
+ double ctm_a,
+ double ctm_b,
+ double ctm_c,
+ double ctm_d,
+ double ctm_e,
+ double ctm_f,
+ double x0,
+ double y0,
+ double x1,
+ double y1,
+ double x2,
+ double y2,
+ double x3,
+ double y3,
+ double color
+ );
+/* Adds a four-element path. Paths that define thin vertical/horizontal
+rectangles are used to find tables. */
+
+
+int extract_add_line(
+ extract_t* extract,
+ double ctm_a,
+ double ctm_b,
+ double ctm_c,
+ double ctm_d,
+ double ctm_e,
+ double ctm_f,
+ double width,
+ double x0,
+ double y0,
+ double x1,
+ double y1,
+ double color
+ );
+/* Adds a stroked line. Vertical/horizontal lines are used to find tables. */
+
+
+int extract_fill_begin(
+ extract_t* extract,
+ double ctm_a,
+ double ctm_b,
+ double ctm_c,
+ double ctm_d,
+ double ctm_e,
+ double ctm_f,
+ double color
+ );
+/* Alternative to extract_add_path4(). Should be followed by calls to
+extract_moveto(), extract_lineto() and extract_closepath(), which are used
+to find lines that may define tables. extract_fill_end() should be called
+afterwards. */
+
+int extract_stroke_begin(
+ extract_t* extract,
+ double ctm_a,
+ double ctm_b,
+ double ctm_c,
+ double ctm_d,
+ double ctm_e,
+ double ctm_f,
+ double line_width,
+ double color
+ );
+/* Alternative to extract_add_line(). Should be followed by calls to
+extract_moveto(), extract_lineto() and extract_closepath(), which are used
+to find lines that may define tables. extract_fill_end() should be called
+afterwards. */
+
+int extract_moveto(extract_t* extract, double x, double y);
+
+int extract_lineto(extract_t* extract, double x, double y);
+
+int extract_closepath(extract_t* extract);
+
+int extract_fill_end(extract_t* extract);
+
+int extract_stroke_end(extract_t* extract);
+
+
int extract_page_end(extract_t* extract);
/* Must be called to finish page started by extract_page_begin(). */
@@ -160,24 +242,23 @@ int extract_process(
int rotation,
int images
);
-/* Evaluates all un-processed pages to generate docx data and frees internal
+/* Evaluates all un-processed pages to generate output data and frees internal
page data (individual spans, lines, paragraphs etc). E.g. call this after
extract_page_end() to reduce internal data use. */
int extract_write(extract_t* extract, extract_buffer_t* buffer);
-/* Writes docx archive to buffer. The docx archive will contain text and images
-from extract_process().
+/* Writes output document to buffer.
-Uses an internal template docx archive. */
+For docx and odt, uses an internal template document. */
int extract_write_content(extract_t* extract, extract_buffer_t* buffer);
-/* Writes docx xml for paragraphs into buffer.
+/* Writes paragraph content only into buffer.
-(This is the xml containing paragraphs of text that is inserted into
-the template word/document.xml object within the docx zip archive by
-extract_write()). */
+For docx and odt, this is the xml containing paragraphs of text that is
+inserted into the template word/document.xml object within the docx/odt zip
+archive by extract_write()). */
int extract_write_template(
@@ -186,20 +267,22 @@ int extract_write_template(
const char* path_out,
int preserve_dir
);
-/* Like extract_write() but uses a provided template document.
+/* Like extract_write() but uses a provided template document. Only works with
+docx and odt output.
Uses the 'zip' and 'unzip' commands internally.
extract:
.
path_template:
- Name of docx file to use as a template.
+ Name of docx/odt file to use as a template.
path_out:
- Name of docx file to create. Must not contain single-quote, double quote,
- space or ".." sequence - these will force EINVAL error because they could
- make internal shell commands unsafe.
+ Name of docx/odt file to create. Must not contain single-quote, double
+ quote, space or ".." sequence - these will force EINVAL error because they
+ could make internal shell commands unsafe.
preserve_dir:
If true, we don't delete the temporary directory <path_out>.dir containing
+ the output document contents prior to zipping.
*/
@@ -207,10 +290,28 @@ void extract_end( extract_t** pextract);
/* Frees all data associated with *pextract and sets *pextract to NULL. */
+/* Things below are not generally used. */
+
+int extract_tables_csv_format(extract_t* extract, const char* path_format);
+/* Causes extract_process() to also write each tableas CSV to a file with path
+asprintf(path_format, n) where <n> is the table number, starting from 0. */
+
+int extract_read_intermediate(
+ extract_t* extract,
+ extract_buffer_t* buffer,
+ int autosplit
+ );
+/* Reads XML specification of spans and images from <buffer> and adds to
+<extract>.
+
+(Makes internal calls to extract_span_begin(), extract_add_image() etc.) */
+
+
void extract_internal_end(void);
/* Cleans up internal singelton state that can look like a memory leak when
running under Memento or valgrind. */
+
void extract_exp_min(extract_t* extract, size_t size);
/* If size is non-zero, sets minimum actual allocation size, and we only
allocate in powers of two times this size. This is an attempt to improve speed
diff --git a/extract/include/extract_alloc.h b/extract/include/extract_alloc.h
index 28a52a3c..afa66818 100644
--- a/extract/include/extract_alloc.h
+++ b/extract/include/extract_alloc.h
@@ -1,12 +1,20 @@
-#ifndef EXTRACT_ALLOC_H
-#define EXTRACT_ALLOC_H
+#ifndef ARITFEX_EXTRACT_ALLOC_H
+#define ARITFEX_EXTRACT_ALLOC_H
-/* Allocation support. */
+/* Allocation support.
+
+We use in/out parameters for pointers so that we can consistently return 0 or
+-1 with errno set.
+
+This also allows us to automatically set a caller's pointer to NULL when
+freeing or if malloc fails, and leave a caller's pointer unchanged if realloc
+fails.
+*/
#include <stdlib.h>
typedef void* (*extract_realloc_fn_t)(void* state, void* prev, size_t size);
-/* An allocation function to be provided by user of the extract library.
+/* An externally-provided allocation function.
Should behave like realloc(), except for taking the additional 'void* state'
arg. */
@@ -32,7 +40,7 @@ passed to extract_alloc_create(). */
int extract_realloc(extract_alloc_t* alloc, void** pptr, size_t newsize);
/* Sets *pptr to point to reallocated memory and returns 0. On error return -1
-with errno set and *pptr=NULL.
+with errno set and *pptr unchanged.
Uses realloc() if <alloc> is NULL, otherwise <alloc> must have been created by
extract_alloc_create() and we use the extract_realloc_fn_t that was originally
diff --git a/extract/include/extract_buffer.h b/extract/include/extract_buffer.h
index b0abbec3..86b9404e 100644
--- a/extract/include/extract_buffer.h
+++ b/extract/include/extract_buffer.h
@@ -1,6 +1,12 @@
#ifndef ARTIFEX_EXTRACT_BUFFER_H
#define ARTIFEX_EXTRACT_BUFFER_H
+/* Reading and writing abstractions.
+
+We use inline code in the common case where reading or writing can be satisfied
+using a cache.
+*/
+
#include "extract_alloc.h"
#include <stddef.h>
@@ -10,12 +16,6 @@
#include "extract_compat_inline.h"
#endif
-/* Reading and writing abstractions.
-
-We use inline code in the common case where reading or writing can be satisfied
-using a cache.
-*/
-
typedef struct extract_buffer_t extract_buffer_t;
/* Abstract state for a buffer. */
@@ -27,10 +27,10 @@ static inline int extract_buffer_read(
size_t numbytes,
size_t* o_actual
);
-/* Reads specified number of bytes from buffer into data..+bytes, making multiple calls to
-the underlying extract_buffer_fn_read function until we have read <numbytes> or reached
-EOF. If we reach EOF, . Returns +1 if
-short read due to EOF.
+/* Reads specified number of bytes from buffer into data..+bytes, making
+multiple calls to the underlying extract_buffer_fn_read function until we have
+read <numbytes> or reached EOF. If we reach EOF, . Returns +1 if short read due
+to EOF.
buffer:
As returned by earlier call to extract_buffer_open().
diff --git a/extract/include/extract_buffer_impl.h b/extract/include/extract_buffer_impl.h
index 25f533dd..c94d1f98 100644
--- a/extract/include/extract_buffer_impl.h
+++ b/extract/include/extract_buffer_impl.h
@@ -30,7 +30,7 @@ static inline int extract_buffer_read(
size_t* o_actual
)
{
- extract_buffer_cache_t* cache = (void*) buffer;
+ extract_buffer_cache_t* cache = (extract_buffer_cache_t*)(void*) buffer;
if (cache->numbytes - cache->pos < numbytes) {
/* Can't use just the cache. */
return extract_buffer_read_internal(buffer, data, numbytes, o_actual);
@@ -58,7 +58,7 @@ static inline int extract_buffer_write(
size_t* o_actual
)
{
- extract_buffer_cache_t* cache = (void*) buffer;
+ extract_buffer_cache_t* cache = (extract_buffer_cache_t*)(void*) buffer;
if (cache->numbytes - cache->pos < numbytes) {
/* Can't use just the cache. */
return extract_buffer_write_internal(buffer, data, numbytes, o_actual);
diff --git a/extract/src/astring.c b/extract/src/astring.c
index fd09d639..e5d40217 100644
--- a/extract/src/astring.c
+++ b/extract/src/astring.c
@@ -27,6 +27,9 @@ void extract_astring_free(extract_alloc_t* alloc, extract_astring_t* string)
int extract_astring_catl(extract_alloc_t* alloc, extract_astring_t* string, const char* s, size_t s_len)
{
if (extract_realloc2(alloc, &string->chars, string->chars_num+1, string->chars_num + s_len + 1)) return -1;
+ /* Coverity doesn't seem to realise that extract_realloc2() modifies
+ string->chars. */
+ /* coverity[deref_parm_field_in_call] */
memcpy(string->chars + string->chars_num, s, s_len);
string->chars[string->chars_num + s_len] = 0;
string->chars_num += s_len;
@@ -65,7 +68,7 @@ int extract_astring_truncate(extract_astring_t* content, int len)
return 0;
}
-int astring_char_truncate_if(extract_astring_t* content, char c)
+int extract_astring_char_truncate_if(extract_astring_t* content, char c)
{
if (content->chars_num && content->chars[content->chars_num-1] == c) {
extract_astring_truncate(content, 1);
@@ -73,40 +76,58 @@ int astring_char_truncate_if(extract_astring_t* content, char c)
return 0;
}
-int extract_astring_cat_xmlc(extract_alloc_t* alloc, extract_astring_t* string, int c)
+int extract_astring_catc_unicode(
+ extract_alloc_t* alloc,
+ extract_astring_t* string,
+ int c,
+ int xml,
+ int ascii_ligatures,
+ int ascii_dash,
+ int ascii_apostrophe
+ )
{
int ret = -1;
if (0) {}
/* Escape XML special characters. */
- else if (c == '<') extract_astring_cat(alloc, string, "&lt;");
- else if (c == '>') extract_astring_cat(alloc, string, "&gt;");
- else if (c == '&') extract_astring_cat(alloc, string, "&amp;");
- else if (c == '"') extract_astring_cat(alloc, string, "&quot;");
- else if (c == '\'') extract_astring_cat(alloc, string, "&apos;");
+ else if (xml && c == '<') extract_astring_cat(alloc, string, "&lt;");
+ else if (xml && c == '>') extract_astring_cat(alloc, string, "&gt;");
+ else if (xml && c == '&') extract_astring_cat(alloc, string, "&amp;");
+ else if (xml && c == '"') extract_astring_cat(alloc, string, "&quot;");
+ else if (xml && c == '\'') extract_astring_cat(alloc, string, "&apos;");
/* Expand ligatures. */
- else if (c == 0xFB00)
+ else if (ascii_ligatures && c == 0xFB00)
{
if (extract_astring_cat(alloc, string, "ff")) goto end;
}
- else if (c == 0xFB01)
+ else if (ascii_ligatures && c == 0xFB01)
{
if (extract_astring_cat(alloc, string, "fi")) goto end;
}
- else if (c == 0xFB02)
+ else if (ascii_ligatures && c == 0xFB02)
{
if (extract_astring_cat(alloc, string, "fl")) goto end;
}
- else if (c == 0xFB03)
+ else if (ascii_ligatures && c == 0xFB03)
{
if (extract_astring_cat(alloc, string, "ffi")) goto end;
}
- else if (c == 0xFB04)
+ else if (ascii_ligatures && c == 0xFB04)
{
if (extract_astring_cat(alloc, string, "ffl")) goto end;
}
+
+ /* Convert some special characters to ascii. */
+ else if (ascii_dash && c == 0x2212)
+ {
+ if (extract_astring_catc(alloc, string, '-')) goto end;
+ }
+ else if (ascii_apostrophe && c == 0x2019)
+ {
+ if (extract_astring_catc(alloc, string, '\'')) goto end;
+ }
/* Output ASCII verbatim. */
else if (c >= 32 && c <= 127)
@@ -117,18 +138,65 @@ int extract_astring_cat_xmlc(extract_alloc_t* alloc, extract_astring_t* string,
/* Escape all other characters. */
else
{
- char buffer[32];
- if (c < 32
- && (c != 0x9 && c != 0xa && c != 0xd)
- )
+ if (xml)
{
- /* Illegal xml character; see
- https://www.w3.org/TR/xml/#charsets. We replace with
- 0xfffd, the unicode replacement character. */
- c = 0xfffd;
+ char buffer[32];
+ if (c < 32
+ && (c != 0x9 && c != 0xa && c != 0xd)
+ )
+ {
+ /* Illegal xml character; see
+ https://www.w3.org/TR/xml/#charsets. We replace with
+ 0xfffd, the unicode replacement character. */
+ c = 0xfffd;
+ }
+ snprintf(buffer, sizeof(buffer), "&#x%x;", c);
+ if (extract_astring_cat(alloc, string, buffer)) goto end;
+ }
+ else
+ {
+ /* Use utf8. */
+ if (c < 0x80)
+ {
+ if (extract_astring_catc(alloc, string, (char) c)) return -1;
+ }
+ else if (c < 0x0800)
+ {
+ char cc[2] =
+ {
+ (char) (((c >> 6) & 0x1f) | 0xc0),
+ (char) (((c >> 0) & 0x3f) | 0x80)
+ };
+ if (extract_astring_catl(alloc, string, cc, sizeof(cc))) return -1;
+ }
+ else if (c < 0x10000)
+ {
+ char cc[3] =
+ {
+ (char) (((c >> 12) & 0x0f) | 0xe0),
+ (char) (((c >> 6) & 0x3f) | 0x80),
+ (char) (((c >> 0) & 0x3f) | 0x80)
+ };
+ if (extract_astring_catl(alloc, string, cc, sizeof(cc))) return -1;
+ }
+ else if (c < 0x110000)
+ {
+ char cc[4] =
+ {
+ (char) (((c >> 18) & 0x07) | 0xf0),
+ (char) (((c >> 12) & 0x3f) | 0x80),
+ (char) (((c >> 6) & 0x3f) | 0x80),
+ (char) (((c >> 0) & 0x3f) | 0x80)
+ };
+ if (extract_astring_catl(alloc, string, cc, sizeof(cc))) return -1;
+ }
+ else
+ {
+ /* Use replacement character. */
+ char cc[4] = { (char) 0xef, (char) 0xbf, (char) 0xbd, 0};
+ if (extract_astring_catl(alloc, string, cc, sizeof(cc))) return -1;
+ }
}
- snprintf(buffer, sizeof(buffer), "&#x%x;", c);
- if (extract_astring_cat(alloc, string, buffer)) goto end;
}
ret = 0;
@@ -136,3 +204,18 @@ int extract_astring_cat_xmlc(extract_alloc_t* alloc, extract_astring_t* string,
end:
return ret;
}
+
+int extract_astring_catc_unicode_xml(extract_alloc_t* alloc, extract_astring_t* string, int c)
+{
+ /* Fixme, better to use ascii_ligatures=0, but that requires updates to
+ expected output files. */
+ return extract_astring_catc_unicode(
+ alloc,
+ string,
+ c,
+ 1 /*xml*/,
+ 1 /*ascii_ligatures*/,
+ 0 /*ascii_dash*/,
+ 0 /*ascii_apostrophe*/
+ );
+}
diff --git a/extract/src/astring.h b/extract/src/astring.h
index c2b60d25..aef4d87f 100644
--- a/extract/src/astring.h
+++ b/extract/src/astring.h
@@ -11,8 +11,11 @@ typedef struct
} extract_astring_t;
void extract_astring_init(extract_astring_t* string);
+/* Initialises <string> so it is ready for use. */
void extract_astring_free(extract_alloc_t* alloc, extract_astring_t* string);
+/* Frees any existing data and returns with <string> ready for use as if by
+extract_astring_init(). */
int extract_astring_catl(extract_alloc_t* alloc, extract_astring_t* string, const char* s, size_t s_len);
@@ -24,10 +27,33 @@ int extract_astring_catf(extract_alloc_t* alloc, extract_astring_t* string, cons
int extract_astring_truncate(extract_astring_t* content, int len);
/* Removes last <len> chars. */
-int astring_char_truncate_if(extract_astring_t* content, char c);
+int extract_astring_char_truncate_if(extract_astring_t* content, char c);
/* Removes last char if it is <c>. */
int extract_astring_cat_xmlc(extract_alloc_t* alloc, extract_astring_t* string, int c);
/* Appends specified character using XML escapes as necessary. */
+int extract_astring_catc_unicode(
+ extract_alloc_t* alloc,
+ extract_astring_t* string,
+ int c,
+ int xml,
+ int ascii_ligatures,
+ int ascii_dash,
+ int ascii_apostrophe
+ );
+/* Appends unicode character <c> to <string>.
+ xml:
+ If true, we use XML escape sequences for special characters such as '<'
+ and unicode values above 127. Otherwise we encode as utf8.
+ ascii_ligatures: if true we expand ligatures to "fl", "fi" etc.
+ ascii_dash:
+ If true we replace unicode dash characters with '-'.
+ ascii_apostrophe:
+ If true we replace unicode apostrophe with ascii single-quote "'".
+*/
+
+int extract_astring_catc_unicode_xml(extract_alloc_t* alloc, extract_astring_t* string, int c);
+/* Appends specific unicode character, using XML escape sequences as required. */
+
#endif
diff --git a/extract/src/buffer-test.c b/extract/src/buffer-test.c
index 6701fbab..a8464c2a 100644
--- a/extract/src/buffer-test.c
+++ b/extract/src/buffer-test.c
@@ -298,7 +298,7 @@ static void test_file(void)
int main(void)
{
- outf_verbose_set(1);
+ extract_outf_verbose_set(1);
test_read();
test_write();
test_file();
diff --git a/extract/src/buffer.c b/extract/src/buffer.c
index 3fd35bfd..b25dee73 100644
--- a/extract/src/buffer.c
+++ b/extract/src/buffer.c
@@ -375,7 +375,7 @@ int extract_buffer_write_internal(
not recoverable. <pos> will be the number of bytes in
source..+numbytes that have been successfully flushed, and
could be negative if we failed to flush earlier data. */
- outf("failed to flush. actual=%i delta=%i\n", actual, delta);
+ outf("failed to flush. actual=%li delta=%li\n", (long) actual, (long) delta);
e = 0;
goto end;
}
diff --git a/extract/src/document.c b/extract/src/document.c
new file mode 100644
index 00000000..d501f259
--- /dev/null
+++ b/extract/src/document.c
@@ -0,0 +1,88 @@
+#include "document.h"
+#include "outf.h"
+
+
+void extract_span_init(span_t* span)
+{
+ span->font_name = NULL;
+ span->chars = NULL;
+ span->chars_num = 0;
+}
+
+void extract_span_free(extract_alloc_t* alloc, span_t** pspan)
+{
+ if (!*pspan) return;
+ extract_free(alloc, &(*pspan)->font_name);
+ extract_free(alloc, &(*pspan)->chars);
+ extract_free(alloc, pspan);
+}
+
+void extract_spans_free(extract_alloc_t* alloc, span_t*** pspans, int spans_num)
+{
+ span_t** spans = *pspans;
+ int s;
+ for (s=0; s<spans_num; ++s)
+ {
+ extract_span_free(alloc, &spans[s]);
+ }
+ extract_free(alloc, pspans);
+}
+
+void extract_line_free(extract_alloc_t* alloc, line_t** pline)
+{
+ line_t* line = *pline;
+ int s;
+ for (s=0; s<line->spans_num; ++s)
+ {
+ extract_span_free(alloc, &line->spans[s]);
+ }
+ extract_free(alloc, &line->spans);
+ extract_free(alloc, pline);
+}
+
+void extract_lines_free(extract_alloc_t* alloc, line_t*** plines, int lines_num)
+{
+ int l;
+ line_t** lines = *plines;
+ for (l=0; l<lines_num; ++l)
+ {
+ extract_line_free(alloc, &lines[l]);
+ }
+ extract_free(alloc, plines);
+}
+
+void extract_image_clear(extract_alloc_t* alloc, image_t* image)
+{
+ extract_free(alloc, &image->type);
+ extract_free(alloc, &image->name);
+ extract_free(alloc, &image->id);
+ if (image->data_free) {
+ image->data_free(image->data_free_handle, image->data);
+ }
+}
+
+void extract_cell_free(extract_alloc_t* alloc, cell_t** pcell)
+{
+ int p;
+ cell_t* cell = *pcell;
+ if (!cell) return;
+
+ outf("cell->lines_num=%i", cell->lines_num);
+ outf("cell->paragraphs_num=%i", cell->paragraphs_num);
+ extract_lines_free(alloc, &cell->lines, cell->lines_num);
+
+ outf("cell=%p cell->paragraphs_num=%i", cell, cell->paragraphs_num);
+ for (p=0; p<cell->paragraphs_num; ++p)
+ {
+ paragraph_t* paragraph = cell->paragraphs[p];
+ outf("paragraph->lines_num=%i", paragraph->lines_num);
+ /* We don't attempt to free paragraph->lines[] because they point into
+ cell->lines which are already freed. */
+ extract_free(alloc, &paragraph->lines);
+ extract_free(alloc, &cell->paragraphs[p]);
+ }
+ extract_free(alloc, &cell->paragraphs);
+ extract_free(alloc, pcell);
+}
+
+
diff --git a/extract/src/document.h b/extract/src/document.h
index c59348f4..2dc4f1ee 100644
--- a/extract/src/document.h
+++ b/extract/src/document.h
@@ -1,6 +1,15 @@
#ifndef ARTIFEX_EXTRACT_DOCUMENT_H
#define ARTIFEX_EXTRACT_DOCUMENT_H
+#include "../include/extract.h"
+
+#ifdef _MSC_VER
+ #include "compat_stdint.h"
+#else
+ #include <stdint.h>
+#endif
+
+
static const double pi = 3.141592653589793;
typedef struct
@@ -9,6 +18,16 @@ typedef struct
double y;
} point_t;
+const char* extract_point_string(const point_t* point);
+
+typedef struct
+{
+ point_t min;
+ point_t max;
+} rect_t;
+
+const char* extract_rect_string(const rect_t* rect);
+
typedef struct
{
double a;
@@ -19,9 +38,15 @@ typedef struct
double f;
} matrix_t;
-double matrix_expansion(matrix_t m);
+const char* extract_matrix_string(const matrix_t* matrix);
-int matrix_cmp4(const matrix_t* lhs, const matrix_t* rhs)
+double extract_matrix_expansion(matrix_t m);
+/* Returns a*d - b*c. */
+
+point_t extract_multiply_matrix_point(matrix_t m, point_t p);
+matrix_t extract_multiply_matrix_matrix(matrix_t m1, matrix_t m2);
+
+int extract_matrix_cmp4(const matrix_t* lhs, const matrix_t* rhs)
;
/* Returns zero if first four members of *lhs and *rhs are equal, otherwise
+/-1. */
@@ -48,7 +73,7 @@ typedef struct
matrix_t trm;
char* font_name;
- /* font size is matrix_expansion(trm). */
+ /* font size is extract_matrix_cmp4(trm). */
struct {
unsigned font_bold : 1;
@@ -61,14 +86,21 @@ typedef struct
} span_t;
/* List of chars that have same font and are usually adjacent. */
-char_t* span_char_last(span_t* span);
+void extract_span_init(span_t* span);
+
+void extract_span_free(extract_alloc_t* alloc, span_t** pspan);
+/* Frees a span_t, returning with *pspan set to NULL. */
+
+void extract_spans_free(extract_alloc_t* alloc, span_t*** pspans, int spans_num);
+
+char_t* extract_span_char_last(span_t* span);
/* Returns last character in span. */
-int span_append_c(extract_alloc_t* alloc, span_t* span, int c);
+int extract_span_append_c(extract_alloc_t* alloc, span_t* span, int c);
/* Appends new char_t to an span_t with .ucs=c and all other
fields zeroed. */
-const char* span_string(extract_alloc_t* alloc, span_t* span);
+const char* extract_span_string(extract_alloc_t* alloc, span_t* span);
/* Returns static string containing info about span_t. */
typedef struct
@@ -78,10 +110,13 @@ typedef struct
} line_t;
/* List of spans that are aligned on same line. */
-span_t* line_span_first(line_t* line);
+void extract_line_free(extract_alloc_t* alloc, line_t** pline);
+void extract_lines_free(extract_alloc_t* alloc, line_t*** plines, int lines_num);
+
+span_t* extract_line_span_first(line_t* line);
/* Returns first span in a line. */
-span_t* line_span_last(line_t* line);
+span_t* extract_line_span_last(line_t* line);
/* Returns last span in a line. */
typedef struct
@@ -112,6 +147,61 @@ typedef struct
<name> and <id> are created to be unique identifiers for use in generated docx
file. */
+void extract_image_clear(extract_alloc_t* alloc, image_t* image);
+
+typedef struct
+{
+ float color;
+ rect_t rect;
+} tableline_t;
+/* A line that is part of a table. */
+
+typedef struct
+{
+ tableline_t* tablelines;
+ int tablelines_num;
+} tablelines_t;
+
+
+typedef struct
+{
+ rect_t rect;
+
+ /* If left/above is true, this cell is not obscured by cell to its
+ left/above. */
+ uint8_t left;
+ uint8_t above;
+
+ /* extend_right and extend_down are 1 for normal cells, 2 for cells which
+ extend right/down to cover an additional column/row, 3 to cover two
+ additional columns/rows etc. */
+ int extend_right;
+ int extend_down;
+
+ /* Contents of this cell. */
+ line_t** lines;
+ int lines_num;
+ paragraph_t** paragraphs;
+ int paragraphs_num;
+} cell_t;
+/* A cell within a table. */
+
+void extract_cell_init(cell_t* cell);
+void extract_cell_free(extract_alloc_t* alloc, cell_t** pcell);
+
+typedef struct
+{
+ point_t pos; /* top-left. */
+
+ /* Array of cells_num_x*cells_num_y cells; cell (x, y) is:
+ cells_num_x * y + x.
+ */
+ cell_t** cells;
+ int cells_num_x;
+ int cells_num_y;
+} table_t;
+
+
typedef struct
{
span_t** spans;
@@ -129,10 +219,17 @@ typedef struct
int paragraphs_num;
/* These refer to items in .lines. Initially empty, then set
by extract_join(). */
+
+ tablelines_t tablelines_horizontal;
+ tablelines_t tablelines_vertical;
+
+ table_t** tables;
+ int tables_num;
} extract_page_t;
/* A page. Contains different representations of the list of spans. NB not
-called page_t because this clashes with a system type on hpux. */
++called page_t because this clashes with a system type on hpux. */
+
typedef struct
{
@@ -150,9 +247,31 @@ typedef struct
int imagetypes_num;
} images_t;
+
int extract_document_join(extract_alloc_t* alloc, document_t* document);
+/* This does all the work of finding paragraphs and tables. */
double extract_matrices_to_font_size(matrix_t* ctm, matrix_t* trm);
+/* Things below here are used when generating output. */
+
+typedef struct
+{
+ char* name;
+ double size;
+ int bold;
+ int italic;
+} font_t;
+/* Basic information about current font. */
+
+typedef struct
+{
+ font_t font;
+ matrix_t* ctm_prev;
+} content_state_t;
+/* Used to keep track of font information when writing paragraphs of odt
+content, e.g. so we know whether a font has changed so need to start a new odt
+span. */
+
#endif
diff --git a/extract/src/docx.c b/extract/src/docx.c
index 4532cd4e..761de176 100644
--- a/extract/src/docx.c
+++ b/extract/src/docx.c
@@ -21,6 +21,7 @@ docx_paragraph_finish(). */
#include <assert.h>
#include <errno.h>
+#include <float.h>
#include <math.h>
#include <stdlib.h>
#include <stdio.h>
@@ -29,46 +30,42 @@ docx_paragraph_finish(). */
#include <sys/stat.h>
-static int extract_docx_paragraph_start(extract_alloc_t* alloc, extract_astring_t* content)
+static int s_docx_paragraph_start(extract_alloc_t* alloc, extract_astring_t* content)
{
return extract_astring_cat(alloc, content, "\n\n<w:p>");
}
-static int extract_docx_paragraph_finish(extract_alloc_t* alloc, extract_astring_t* content)
+static int s_docx_paragraph_finish(extract_alloc_t* alloc, extract_astring_t* content)
{
return extract_astring_cat(alloc, content, "\n</w:p>");
}
-static int extract_docx_run_start(
+static int s_docx_run_start(
extract_alloc_t* alloc,
extract_astring_t* content,
- const char* font_name,
- double font_size,
- int bold,
- int italic
+ content_state_t* content_state
)
-/* Starts a new run. Caller must ensure that extract_docx_run_finish() was
+/* Starts a new run. Caller must ensure that s_docx_run_finish() was
called to terminate any previous run. */
{
int e = 0;
if (!e) e = extract_astring_cat(alloc, content, "\n<w:r><w:rPr><w:rFonts w:ascii=\"");
- if (!e) e = extract_astring_cat(alloc, content, font_name);
+ if (!e) e = extract_astring_cat(alloc, content, content_state->font.name);
if (!e) e = extract_astring_cat(alloc, content, "\" w:hAnsi=\"");
- if (!e) e = extract_astring_cat(alloc, content, font_name);
+ if (!e) e = extract_astring_cat(alloc, content, content_state->font.name);
if (!e) e = extract_astring_cat(alloc, content, "\"/>");
- if (!e && bold) e = extract_astring_cat(alloc, content, "<w:b/>");
- if (!e && italic) e = extract_astring_cat(alloc, content, "<w:i/>");
+ if (!e && content_state->font.bold) e = extract_astring_cat(alloc, content, "<w:b/>");
+ if (!e && content_state->font.italic) e = extract_astring_cat(alloc, content, "<w:i/>");
{
char font_size_text[32];
- if (0) font_size = 10;
if (!e) e = extract_astring_cat(alloc, content, "<w:sz w:val=\"");
- snprintf(font_size_text, sizeof(font_size_text), "%f", font_size * 2);
+ snprintf(font_size_text, sizeof(font_size_text), "%f", content_state->font.size * 2);
extract_astring_cat(alloc, content, font_size_text);
extract_astring_cat(alloc, content, "\"/>");
if (!e) e = extract_astring_cat(alloc, content, "<w:szCs w:val=\"");
- snprintf(font_size_text, sizeof(font_size_text), "%f", font_size * 1.5);
+ snprintf(font_size_text, sizeof(font_size_text), "%f", content_state->font.size * 1.5);
extract_astring_cat(alloc, content, font_size_text);
extract_astring_cat(alloc, content, "\"/>");
}
@@ -77,38 +74,39 @@ called to terminate any previous run. */
}
-static int extract_docx_run_finish(extract_alloc_t* alloc, extract_astring_t* content)
+static int s_docx_run_finish(extract_alloc_t* alloc, content_state_t* state, extract_astring_t* content)
{
+ if (state) state->font.name = NULL;
return extract_astring_cat(alloc, content, "</w:t></w:r>");
}
-static int extract_docx_paragraph_empty(extract_alloc_t* alloc, extract_astring_t* content)
+static int s_docx_paragraph_empty(extract_alloc_t* alloc, extract_astring_t* content)
/* Append an empty paragraph to *content. */
{
int e = -1;
- if (extract_docx_paragraph_start(alloc, content)) goto end;
+ static char fontname[] = "OpenSans";
+ content_state_t content_state = {0};
+ if (s_docx_paragraph_start(alloc, content)) goto end;
/* It seems like our choice of font size here doesn't make any difference
to the ammount of vertical space, unless we include a non-space
character. Presumably something to do with the styles in the template
document. */
- if (extract_docx_run_start(
- alloc,
- content,
- "OpenSans",
- 10 /*font_size*/,
- 0 /*font_bold*/,
- 0 /*font_italic*/
- )) goto end;
+ content_state.font.name = fontname;
+ content_state.font.size = 10;
+ content_state.font.bold = 0;
+ content_state.font.italic = 0;
+
+ if (s_docx_run_start(alloc, content, &content_state)) goto end;
//docx_char_append_string(content, "&#160;"); /* &#160; is non-break space. */
- if (extract_docx_run_finish(alloc, content)) goto end;
- if (extract_docx_paragraph_finish(alloc, content)) goto end;
+ if (s_docx_run_finish(alloc, NULL /*state*/, content)) goto end;
+ if (s_docx_paragraph_finish(alloc, content)) goto end;
e = 0;
end:
return e;
}
-static int extract_docx_char_truncate_if(extract_astring_t* content, char c)
+static int s_docx_char_truncate_if(extract_astring_t* content, char c)
/* Removes last char if it is <c>. */
{
if (content->chars_num && content->chars[content->chars_num-1] == c) {
@@ -118,22 +116,9 @@ static int extract_docx_char_truncate_if(extract_astring_t* content, char c)
}
-typedef struct
-{
- const char* font_name;
- double font_size;
- int font_bold;
- int font_italic;
- matrix_t* ctm_prev;
-} content_state_t;
-/* Used to keep track of font information when writing paragraphs of docx
-content, e.g. so we know whether a font has changed so need to start a new docx
-span. */
-
-
-static int extract_document_to_docx_content_paragraph(
+static int s_document_to_docx_content_paragraph(
extract_alloc_t* alloc,
- content_state_t* state,
+ content_state_t* content_state,
paragraph_t* paragraph,
extract_astring_t* content
)
@@ -142,7 +127,7 @@ font. */
{
int e = -1;
int l;
- if (extract_docx_paragraph_start(alloc, content)) goto end;
+ if (s_docx_paragraph_start(alloc, content)) goto end;
for (l=0; l<paragraph->lines_num; ++l) {
line_t* line = paragraph->lines[l];
@@ -151,45 +136,38 @@ font. */
int si;
span_t* span = line->spans[s];
double font_size_new;
- state->ctm_prev = &span->ctm;
+ content_state->ctm_prev = &span->ctm;
font_size_new = extract_matrices_to_font_size(&span->ctm, &span->trm);
- if (!state->font_name
- || strcmp(span->font_name, state->font_name)
- || span->flags.font_bold != state->font_bold
- || span->flags.font_italic != state->font_italic
- || font_size_new != state->font_size
+ if (!content_state->font.name
+ || strcmp(span->font_name, content_state->font.name)
+ || span->flags.font_bold != content_state->font.bold
+ || span->flags.font_italic != content_state->font.italic
+ || font_size_new != content_state->font.size
) {
- if (state->font_name) {
- if (extract_docx_run_finish(alloc, content)) goto end;
+ if (content_state->font.name) {
+ if (s_docx_run_finish(alloc, content_state, content)) goto end;
}
- state->font_name = span->font_name;
- state->font_bold = span->flags.font_bold;
- state->font_italic = span->flags.font_italic;
- state->font_size = font_size_new;
- if (extract_docx_run_start(
- alloc,
- content,
- state->font_name,
- state->font_size,
- state->font_bold,
- state->font_italic
- )) goto end;
+ content_state->font.name = span->font_name;
+ content_state->font.bold = span->flags.font_bold;
+ content_state->font.italic = span->flags.font_italic;
+ content_state->font.size = font_size_new;
+ if (s_docx_run_start(alloc, content, content_state)) goto end;
}
for (si=0; si<span->chars_num; ++si) {
char_t* char_ = &span->chars[si];
int c = char_->ucs;
- if (extract_astring_cat_xmlc(alloc, content, c)) goto end;
+ if (extract_astring_catc_unicode_xml(alloc, content, c)) goto end;
}
/* Remove any trailing '-' at end of line. */
- if (extract_docx_char_truncate_if(content, '-')) goto end;
+ if (s_docx_char_truncate_if(content, '-')) goto end;
}
}
- if (state->font_name) {
- if (extract_docx_run_finish(alloc, content)) goto end;
- state->font_name = NULL;
+ if (content_state->font.name)
+ {
+ if (s_docx_run_finish(alloc, content_state, content)) goto end;
}
- if (extract_docx_paragraph_finish(alloc, content)) goto end;
+ if (s_docx_paragraph_finish(alloc, content)) goto end;
e = 0;
@@ -197,7 +175,7 @@ font. */
return e;
}
-static int extract_document_append_image(
+static int s_docx_append_image(
extract_alloc_t* alloc,
extract_astring_t* content,
image_t* image
@@ -265,7 +243,7 @@ static int extract_document_append_image(
}
-static int extract_document_output_rotated_paragraphs(
+static int s_docx_output_rotated_paragraphs(
extract_alloc_t* alloc,
extract_page_t* page,
int paragraph_begin,
@@ -353,7 +331,7 @@ static int extract_document_output_rotated_paragraphs(
/* Output paragraphs p0..p2-1. */
for (p=paragraph_begin; p<paragraph_end; ++p) {
paragraph_t* paragraph = page->paragraphs[p];
- if (extract_document_to_docx_content_paragraph(alloc, state, paragraph, content)) goto end;
+ if (s_document_to_docx_content_paragraph(alloc, state, paragraph, content)) goto end;
}
extract_astring_cat(alloc, content, "\n");
@@ -387,7 +365,7 @@ static int extract_document_output_rotated_paragraphs(
for (p=paragraph_begin; p<paragraph_end; ++p) {
paragraph_t* paragraph = page->paragraphs[p];
- if (extract_document_to_docx_content_paragraph(alloc, state, paragraph, content)) goto end;
+ if (s_document_to_docx_content_paragraph(alloc, state, paragraph, content)) goto end;
}
extract_astring_cat(alloc, content, "\n");
@@ -406,6 +384,257 @@ static int extract_document_output_rotated_paragraphs(
}
+static int s_docx_append_table(extract_alloc_t* alloc, table_t* table, extract_astring_t* content)
+/* Appends table to content.
+
+We do not fix the size of the table or its columns and rows, but instead leave layout up
+to the application. */
+{
+ int e = -1;
+ int y;
+
+ if (extract_astring_cat(alloc, content,
+ "\n"
+ " <w:tbl>\n"
+ " <w:tblLayout w:type=\"autofit\"/>\n"
+ )) goto end;
+
+ for (y=0; y<table->cells_num_y; ++y)
+ {
+ int x;
+ if (extract_astring_cat(alloc, content,
+ " <w:tr>\n"
+ " <w:trPr/>\n"
+ )) goto end;
+
+ for (x=0; x<table->cells_num_x; ++x)
+ {
+ cell_t* cell = table->cells[y*table->cells_num_x + x];
+ if (!cell->left) continue;
+
+ if (extract_astring_cat(alloc, content, " <w:tc>\n")) goto end;
+
+ /* Write cell properties. */
+ {
+ if (extract_astring_cat(alloc, content,
+ " <w:tcPr>\n"
+ " <w:tcBorders>\n"
+ " <w:top w:val=\"double\" w:sz=\"2\" w:space=\"0\" w:color=\"808080\"/>\n"
+ " <w:start w:val=\"double\" w:sz=\"2\" w:space=\"0\" w:color=\"808080\"/>\n"
+ " <w:bottom w:val=\"double\" w:sz=\"2\" w:space=\"0\" w:color=\"808080\"/>\n"
+ " <w:end w:val=\"double\" w:sz=\"2\" w:space=\"0\" w:color=\"808080\"/>\n"
+ " </w:tcBorders>\n"
+ )) goto end;
+ if (cell->extend_right > 1)
+ {
+ if (extract_astring_catf(alloc, content, " <w:gridSpan w:val=\"%i\"/>\n", cell->extend_right)) goto end;
+ }
+ if (cell->above)
+ {
+ if (cell->extend_down > 1)
+ {
+ if (extract_astring_catf(alloc, content, " <w:vMerge w:val=\"restart\"/>\n", cell->extend_down)) goto end;
+ }
+ }
+ else
+ {
+ if (extract_astring_catf(alloc, content, " <w:vMerge w:val=\"continue\"/>\n")) goto end;
+ }
+ if (extract_astring_cat(alloc, content, " </w:tcPr>\n")) goto end;
+ }
+
+ /* Write contents of this cell. */
+ {
+ size_t chars_num_old = content->chars_num;
+ int p;
+ content_state_t content_state = {0};
+ content_state.font.name = NULL;
+ content_state.ctm_prev = NULL;
+ for (p=0; p<cell->paragraphs_num; ++p)
+ {
+ paragraph_t* paragraph = cell->paragraphs[p];
+ if (s_document_to_docx_content_paragraph(alloc, &content_state, paragraph, content)) goto end;
+ }
+ if (content_state.font.name)
+ {
+ if (s_docx_run_finish(alloc, &content_state, content)) goto end;
+ }
+
+ /* Need to write out at least an empty paragraph in each cell,
+ otherwise Word/Libreoffice fail to show table at all; the
+ OOXML spec says "If a table cell does not include at least one
+ block-level element, then this document shall be considered
+ corrupt." */
+ if (content->chars_num == chars_num_old)
+ {
+ if (extract_astring_catf(alloc, content, "<w:p/>\n")) goto end;
+ }
+ }
+ if (extract_astring_cat(alloc, content, " </w:tc>\n")) goto end;
+ }
+ if (extract_astring_cat(alloc, content, " </w:tr>\n")) goto end;
+ }
+ if (extract_astring_cat(alloc, content, " </w:tbl>\n")) goto end;
+ e = 0;
+
+ end:
+ return e;
+}
+
+static int s_docx_append_rotated_paragraphs(
+ extract_alloc_t* alloc,
+ extract_page_t* page,
+ content_state_t* state,
+ int* p,
+ int* text_box_id,
+ const matrix_t* ctm,
+ double rotate,
+ extract_astring_t* content
+ )
+/* Appends paragraphs with same rotation, starting with page->paragraphs[*p]
+and updates *p. */
+{
+ /* Find extent of paragraphs with this same rotation. extent
+ will contain max width and max height of paragraphs, in units
+ before application of ctm, i.e. before rotation. */
+ int e = -1;
+ point_t extent = {0, 0};
+ int p0 = *p;
+ int p1;
+ paragraph_t* paragraph = page->paragraphs[*p];
+
+ outf("rotate=%.2frad=%.1fdeg ctm: ef=(%f %f) abcd=(%f %f %f %f)",
+ rotate, rotate * 180 / pi,
+ ctm->e,
+ ctm->f,
+ ctm->a,
+ ctm->b,
+ ctm->c,
+ ctm->d
+ );
+
+ {
+ /* We assume that first span is at origin of text
+ block. This assumes left-to-right text. */
+ double rotate0 = rotate;
+ const matrix_t* ctm0 = ctm;
+ point_t origin = {
+ paragraph->lines[0]->spans[0]->chars[0].x,
+ paragraph->lines[0]->spans[0]->chars[0].y
+ };
+ matrix_t ctm_inverse = {1, 0, 0, 1, 0, 0};
+ double ctm_det = ctm->a*ctm->d - ctm->b*ctm->c;
+ if (ctm_det != 0) {
+ ctm_inverse.a = +ctm->d / ctm_det;
+ ctm_inverse.b = -ctm->b / ctm_det;
+ ctm_inverse.c = -ctm->c / ctm_det;
+ ctm_inverse.d = +ctm->a / ctm_det;
+ }
+ else {
+ outf("cannot invert ctm=(%f %f %f %f)",
+ ctm->a, ctm->b, ctm->c, ctm->d);
+ }
+
+ for (*p=p0; *p<page->paragraphs_num; ++(*p)) {
+ paragraph = page->paragraphs[*p];
+ ctm = &paragraph->lines[0]->spans[0]->ctm;
+ rotate = atan2(ctm->b, ctm->a);
+ if (rotate != rotate0) {
+ break;
+ }
+
+ /* Update <extent>. */
+ {
+ int l;
+ for (l=0; l<paragraph->lines_num; ++l) {
+ line_t* line = paragraph->lines[l];
+ span_t* span = extract_line_span_last(line);
+ char_t* char_ = extract_span_char_last(span);
+ double adv = char_->adv * extract_matrix_expansion(span->trm);
+ double x = char_->x + adv * cos(rotate);
+ double y = char_->y + adv * sin(rotate);
+
+ double dx = x - origin.x;
+ double dy = y - origin.y;
+
+ /* Position relative to origin and before box rotation. */
+ double xx = ctm_inverse.a * dx + ctm_inverse.b * dy;
+ double yy = ctm_inverse.c * dx + ctm_inverse.d * dy;
+ yy = -yy;
+ if (xx > extent.x) extent.x = xx;
+ if (yy > extent.y) extent.y = yy;
+ if (0) outf("rotate=%f *p=%i: origin=(%f %f) xy=(%f %f) dxy=(%f %f) xxyy=(%f %f) span: %s",
+ rotate, *p, origin.x, origin.y, x, y, dx, dy, xx, yy, extract_span_string(alloc, span));
+ }
+ }
+ }
+ p1 = *p;
+ rotate = rotate0;
+ ctm = ctm0;
+ outf("rotate=%f p0=%i p1=%i. extent is: (%f %f)",
+ rotate, p0, p1, extent.x, extent.y);
+ }
+
+ /* Paragraphs p0..p1-1 have same rotation. We output them into
+ a single rotated text box. */
+
+ /* We need unique id for text box. */
+ *text_box_id += 1;
+
+ {
+ /* Angles are in units of 1/60,000 degree. */
+ int rot = (int) (rotate * 180 / pi * 60000);
+
+ /* <wp:anchor distT=\.. etc are in EMU - 1/360,000 of a cm.
+ relativeHeight is z-ordering. (wp:positionV:wp:posOffset,
+ wp:positionV:wp:posOffset) is position of origin of box in
+ EMU.
+
+ The box rotates about its centre but we want to rotate
+ about the origin (top-left). So we correct the position of
+ box by subtracting the vector that the top-left moves when
+ rotated by angle <rotate> about the middle. */
+ double point_to_emu = 12700; /* https://en.wikipedia.org/wiki/Office_Open_XML_file_formats#DrawingML */
+ int x = (int) (ctm->e * point_to_emu);
+ int y = (int) (ctm->f * point_to_emu);
+ int w = (int) (extent.x * point_to_emu);
+ int h = (int) (extent.y * point_to_emu);
+ int dx;
+ int dy;
+
+ if (0) outf("rotate: %f rad, %f deg. rot=%i", rotate, rotate*180/pi, rot);
+
+ h *= 2;
+ /* We can't predict how much space Word will actually
+ require for the rotated text, so make the box have the
+ original width but allow text to take extra vertical
+ space. There doesn't seem to be a way to make the text box
+ auto-grow to contain the text. */
+
+ dx = (int) ((1-cos(rotate)) * w / 2.0 + sin(rotate) * h / 2.0);
+ dy = (int) ((cos(rotate)-1) * h / 2.0 + sin(rotate) * w / 2.0);
+ outf("ctm->e,f=%f,%f rotate=%f => x,y=%ik %ik dx,dy=%ik %ik",
+ ctm->e,
+ ctm->f,
+ rotate * 180/pi,
+ x/1000,
+ y/1000,
+ dx/1000,
+ dy/1000
+ );
+ x -= dx;
+ y -= -dy;
+
+ if (s_docx_output_rotated_paragraphs(alloc, page, p0, p1, rot, x, y, w, h, *text_box_id, content, state)) goto end;
+ }
+ *p = p1 - 1;
+ e = 0;
+
+ end:
+
+ return e;
+}
+
int extract_document_to_docx_content(
extract_alloc_t* alloc,
document_t* document,
@@ -422,184 +651,73 @@ int extract_document_to_docx_content(
/* Write paragraphs into <content>. */
for (p=0; p<document->pages_num; ++p) {
extract_page_t* page = document->pages[p];
- int p;
- content_state_t state;
- state.font_name = NULL;
- state.font_size = 0;
- state.font_bold = 0;
- state.font_italic = 0;
- state.ctm_prev = NULL;
- for (p=0; p<page->paragraphs_num; ++p) {
- paragraph_t* paragraph = page->paragraphs[p];
- const matrix_t* ctm = &paragraph->lines[0]->spans[0]->ctm;
- double rotate = atan2(ctm->b, ctm->a);
+ int p = 0;
+ int t = 0;
+
+ content_state_t content_state;
+ content_state.font.name = NULL;
+ content_state.font.size = 0;
+ content_state.font.bold = 0;
+ content_state.font.italic = 0;
+ content_state.ctm_prev = NULL;
+
+ /* Output paragraphs and tables in order of y coordinate. */
+ for(;;)
+ {
+ paragraph_t* paragraph = (p == page->paragraphs_num) ? NULL : page->paragraphs[p];
+ table_t* table = (t == page->tables_num) ? NULL : page->tables[t];
+ double y_paragraph;
+ double y_table;
+ if (!paragraph && !table) break;
+ y_paragraph = (paragraph) ? paragraph->lines[0]->spans[0]->chars[0].y : DBL_MAX;
+ y_table = (table) ? table->pos.y : DBL_MAX;
- if (spacing
- && state.ctm_prev
- && paragraph->lines_num
- && paragraph->lines[0]->spans_num
- && matrix_cmp4(
- state.ctm_prev,
- &paragraph->lines[0]->spans[0]->ctm
- )
- ) {
- /* Extra vertical space between paragraphs that were at
- different angles in the original document. */
- if (extract_docx_paragraph_empty(alloc, content)) goto end;
- }
+ if (paragraph && y_paragraph < y_table)
+ {
+ const matrix_t* ctm = &paragraph->lines[0]->spans[0]->ctm;
+ double rotate = atan2(ctm->b, ctm->a);
+
+ if (spacing
+ && content_state.ctm_prev
+ && paragraph->lines_num
+ && paragraph->lines[0]->spans_num
+ && extract_matrix_cmp4(
+ content_state.ctm_prev,
+ &paragraph->lines[0]->spans[0]->ctm
+ )
+ ) {
+ /* Extra vertical space between paragraphs that were at
+ different angles in the original document. */
+ if (s_docx_paragraph_empty(alloc, content)) goto end;
+ }
- if (spacing) {
- /* Extra vertical space between paragraphs. */
- if (extract_docx_paragraph_empty(alloc, content)) goto end;
- }
-
- if (rotation && rotate != 0) {
-
- /* Find extent of paragraphs with this same rotation. extent
- will contain max width and max height of paragraphs, in units
- before application of ctm, i.e. before rotation. */
- point_t extent = {0, 0};
- int p0 = p;
- int p1;
-
- outf("rotate=%.2frad=%.1fdeg ctm: ef=(%f %f) abcd=(%f %f %f %f)",
- rotate, rotate * 180 / pi,
- ctm->e,
- ctm->f,
- ctm->a,
- ctm->b,
- ctm->c,
- ctm->d
- );
-
- {
- /* We assume that first span is at origin of text
- block. This assumes left-to-right text. */
- double rotate0 = rotate;
- const matrix_t* ctm0 = ctm;
- point_t origin = {
- paragraph->lines[0]->spans[0]->chars[0].x,
- paragraph->lines[0]->spans[0]->chars[0].y
- };
- matrix_t ctm_inverse = {1, 0, 0, 1, 0, 0};
- double ctm_det = ctm->a*ctm->d - ctm->b*ctm->c;
- if (ctm_det != 0) {
- ctm_inverse.a = +ctm->d / ctm_det;
- ctm_inverse.b = -ctm->b / ctm_det;
- ctm_inverse.c = -ctm->c / ctm_det;
- ctm_inverse.d = +ctm->a / ctm_det;
- }
- else {
- outf("cannot invert ctm=(%f %f %f %f)",
- ctm->a, ctm->b, ctm->c, ctm->d);
- }
+ if (spacing) {
+ /* Extra vertical space between paragraphs. */
+ if (s_docx_paragraph_empty(alloc, content)) goto end;
+ }
- for (p=p0; p<page->paragraphs_num; ++p) {
- paragraph = page->paragraphs[p];
- ctm = &paragraph->lines[0]->spans[0]->ctm;
- rotate = atan2(ctm->b, ctm->a);
- if (rotate != rotate0) {
- break;
- }
-
- /* Update <extent>. */
- {
- int l;
- for (l=0; l<paragraph->lines_num; ++l) {
- line_t* line = paragraph->lines[l];
- span_t* span = line_span_last(line);
- char_t* char_ = span_char_last(span);
- double adv = char_->adv * matrix_expansion(span->trm);
- double x = char_->x + adv * cos(rotate);
- double y = char_->y + adv * sin(rotate);
-
- double dx = x - origin.x;
- double dy = y - origin.y;
-
- /* Position relative to origin and before box rotation. */
- double xx = ctm_inverse.a * dx + ctm_inverse.b * dy;
- double yy = ctm_inverse.c * dx + ctm_inverse.d * dy;
- yy = -yy;
- if (xx > extent.x) extent.x = xx;
- if (yy > extent.y) extent.y = yy;
- if (0) outf("rotate=%f p=%i: origin=(%f %f) xy=(%f %f) dxy=(%f %f) xxyy=(%f %f) span: %s",
- rotate, p, origin.x, origin.y, x, y, dx, dy, xx, yy, span_string(alloc, span));
- }
- }
- }
- p1 = p;
- rotate = rotate0;
- ctm = ctm0;
- outf("rotate=%f p0=%i p1=%i. extent is: (%f %f)",
- rotate, p0, p1, extent.x, extent.y);
+ if (rotation && rotate != 0)
+ {
+ if (s_docx_append_rotated_paragraphs(alloc, page, &content_state, &p, &text_box_id, ctm, rotate, content)) goto end;
}
-
- /* Paragraphs p0..p1-1 have same rotation. We output them into
- a single rotated text box. */
-
- /* We need unique id for text box. */
- text_box_id += 1;
-
+ else
{
- /* Angles are in units of 1/60,000 degree. */
- int rot = (int) (rotate * 180 / pi * 60000);
-
- /* <wp:anchor distT=\.. etc are in EMU - 1/360,000 of a cm.
- relativeHeight is z-ordering. (wp:positionV:wp:posOffset,
- wp:positionV:wp:posOffset) is position of origin of box in
- EMU.
-
- The box rotates about its centre but we want to rotate
- about the origin (top-left). So we correct the position of
- box by subtracting the vector that the top-left moves when
- rotated by angle <rotate> about the middle. */
- double point_to_emu = 12700; /* https://en.wikipedia.org/wiki/Office_Open_XML_file_formats#DrawingML */
- int x = (int) (ctm->e * point_to_emu);
- int y = (int) (ctm->f * point_to_emu);
- int w = (int) (extent.x * point_to_emu);
- int h = (int) (extent.y * point_to_emu);
- int dx;
- int dy;
-
- if (0) outf("rotate: %f rad, %f deg. rot=%i", rotate, rotate*180/pi, rot);
-
- h *= 2;
- /* We can't predict how much space Word will actually
- require for the rotated text, so make the box have the
- original width but allow text to take extra vertical
- space. There doesn't seem to be a way to make the text box
- auto-grow to contain the text. */
-
- dx = (int) ((1-cos(rotate)) * w / 2.0 + sin(rotate) * h / 2.0);
- dy = (int) ((cos(rotate)-1) * h / 2.0 + sin(rotate) * w / 2.0);
- outf("ctm->e,f=%f,%f rotate=%f => x,y=%ik %ik dx,dy=%ik %ik",
- ctm->e,
- ctm->f,
- rotate * 180/pi,
- x/1000,
- y/1000,
- dx/1000,
- dy/1000
- );
- x -= dx;
- y -= -dy;
-
- if (extract_document_output_rotated_paragraphs(alloc, page, p0, p1, rot, x, y, w, h, text_box_id, content, &state)) goto end;
+ if (s_document_to_docx_content_paragraph(alloc, &content_state, paragraph, content)) goto end;
}
- p = p1 - 1;
- //p = page->paragraphs_num - 1;
+ p += 1;
}
- else {
- if (extract_document_to_docx_content_paragraph(alloc, &state, paragraph, content)) goto end;
+ else if (table)
+ {
+ if (s_docx_append_table(alloc, table, content)) goto end;
+ t += 1;
}
-
}
if (images) {
int i;
for (i=0; i<page->images_num; ++i) {
- extract_document_append_image(alloc, content, &page->images[i]);
+ s_docx_append_image(alloc, content, &page->images[i]);
}
}
}
@@ -738,7 +856,6 @@ int extract_docx_write_template(
int e = -1;
int i;
char* path_tempdir = NULL;
- FILE* f = NULL;
char* path = NULL;
char* text = NULL;
char* text2 = NULL;
@@ -841,7 +958,6 @@ int extract_docx_write_template(
extract_free(alloc, &path);
extract_free(alloc, &text);
extract_free(alloc, &text2);
- if (f) fclose(f);
if (e) {
outf("Failed to create %s", path_out);
diff --git a/extract/src/docx.h b/extract/src/docx.h
index 6e26568f..976272a6 100644
--- a/extract/src/docx.h
+++ b/extract/src/docx.h
@@ -13,8 +13,8 @@ int extract_document_to_docx_content(
int images,
extract_astring_t* content
);
-/* Makes *o_content point to a string containing all paragraphs in *document in
-docx XML format.
+/* Makes *o_content point to a string containing all paragraphs, images and
+tables (tables as of 2021-07-22) in *document in docx XML format.
This string can be passed to extract_docx_content_item() or
extract_docx_write_template() to be inserted into a docx archive's
diff --git a/extract/src/docx_template_build.py b/extract/src/docx_template_build.py
index 5e2f5380..8b836300 100755
--- a/extract/src/docx_template_build.py
+++ b/extract/src/docx_template_build.py
@@ -9,6 +9,9 @@ Args:
--pretty <directory>
Prettyfies all .xml files within <directory> using 'xmllint --format'.
+ -f
+ Force touch of output file, even if unchanged.
+
-i <in-path>
Set template docx/odt file to extract from.
@@ -57,12 +60,17 @@ def write(text, path, encoding):
with open(path, 'wb') as f:
f.write(text.encode(encoding))
-def write_if_diff(text, path, encoding):
- if os.path.isfile(path):
- old = read(path, encoding)
- if old == text:
- return
- print(f'Updating path={path} because contents have changed')
+def write_if_diff(text, path, encoding, force):
+ '''
+ Does nothing if <force> is false and file named <path> already contains
+ <text>. Otherwise writes <text> to file named <path>.
+ '''
+ if not force:
+ if os.path.isfile(path):
+ old = read(path, encoding)
+ if old == text:
+ return
+ print(f'Updating path={path} because contents have changed')
write(text, path, encoding)
def check_path_safe(path):
@@ -98,6 +106,8 @@ def main():
path_in = None
path_out = None
infix = None
+ force = False
+
args = iter(sys.argv[1:])
while 1:
try: arg = next(args)
@@ -114,6 +124,8 @@ def main():
path = os.path.join(dirpath, filename)
system(f'xmllint --format {path} > {path}-')
system(f'mv {path}- {path}')
+ elif arg == '-f':
+ force = True
elif arg == '-i':
path_in = next(args)
elif arg == '-n':
@@ -166,7 +178,7 @@ def main():
for filename in sorted(filenames):
num_items += 1
path = os.path.join(dirpath, filename)
- print(f'looking at path={path}')
+ #print(f'looking at path={path}')
name = path[ len(path_temp)+1: ]
out_c.write(f' {{\n')
out_c.write(f' "{name}",\n')
@@ -213,7 +225,7 @@ def main():
out_c.write(f'int {infix}_template_items_num = {num_items};\n')
out_c = out_c.getvalue()
- write_if_diff(out_c, f'{path_out}.c', 'utf-8')
+ write_if_diff(out_c, f'{path_out}.c', 'utf-8', force)
out_h = io.StringIO()
out_h.write(f'#ifndef EXTRACT_{infix.upper()}_TEMPLATE_H\n')
@@ -233,7 +245,7 @@ def main():
out_h.write(f'\n')
out_h.write(f'\n')
out_h.write(f'#endif\n')
- write_if_diff(out_h.getvalue(), f'{path_out}.h', 'utf-8')
+ write_if_diff(out_h.getvalue(), f'{path_out}.h', 'utf-8', force)
#os.system(f'rm -r "{path_temp}"')
if __name__ == '__main__':
diff --git a/extract/src/extract-exe.c b/extract/src/extract-exe.c
index 22b520db..ee34023a 100644
--- a/extract/src/extract-exe.c
+++ b/extract/src/extract-exe.c
@@ -139,6 +139,7 @@ int main(int argc, char** argv)
if (arg_next_string(argv, argc, &i, &format_name)) goto end;
if (!strcmp(format_name, "odt")) format = extract_format_ODT;
else if (!strcmp(format_name, "docx")) format = extract_format_DOCX;
+ else if (!strcmp(format_name, "html")) format = extract_format_HTML;
else
{
printf("-f value should be 'odt' or 'docx', not '%s'.\n", format_name);
@@ -170,7 +171,7 @@ int main(int argc, char** argv)
else if (!strcmp(arg, "-v")) {
int verbose;
if (arg_next_int(argv, argc, &i, &verbose)) goto end;
- outf_verbose_set(verbose);
+ extract_outf_verbose_set(verbose);
outf("Have changed verbose to %i", verbose);
}
else if (!strcmp(arg, "--v-alloc")) {
diff --git a/extract/src/extract.c b/extract/src/extract.c
index 9eb85d2f..2c375571 100644
--- a/extract/src/extract.c
+++ b/extract/src/extract.c
@@ -5,6 +5,7 @@
#include "document.h"
#include "docx.h"
#include "docx_template.h"
+#include "html.h"
#include "mem.h"
#include "memento.h"
#include "odt.h"
@@ -25,7 +26,7 @@
-double matrix_expansion(matrix_t m)
+double extract_matrix_expansion(matrix_t m)
{
return sqrt(fabs(m.a * m.d - m.b * m.c));
}
@@ -41,14 +42,31 @@ static void char_init(char_t* item)
item->adv = 0;
}
+const char* extract_point_string(const point_t* point)
+{
+ static char buffer[128];
+ snprintf(buffer, sizeof(buffer), "(%f %f)", point->x, point->y);
+ return buffer;
+}
+
+const char* extract_rect_string(const rect_t* rect)
+{
+ static char buffer[2][256];
+ static int i = 0;
+ i = (i + 1) % 2;
+ snprintf(buffer[i], sizeof(buffer[i]), "((%f %f) (%f %f))", rect->min.x, rect->min.y, rect->max.x, rect->max.y);
+ return buffer[i];
+}
-const char* span_string(extract_alloc_t* alloc, span_t* span)
+const char* extract_span_string(extract_alloc_t* alloc, span_t* span)
{
static extract_astring_t ret = {0};
double x0 = 0;
double y0 = 0;
+ point_t pre0 = {0, 0};
double x1 = 0;
double y1 = 0;
+ point_t pre1 = {0, 0};
int c0 = 0;
int c1 = 0;
int i;
@@ -62,17 +80,23 @@ const char* span_string(extract_alloc_t* alloc, span_t* span)
c0 = span->chars[0].ucs;
x0 = span->chars[0].x;
y0 = span->chars[0].y;
+ pre0.x = span->chars[0].pre_x;
+ pre0.y = span->chars[0].pre_y;
c1 = span->chars[span->chars_num-1].ucs;
x1 = span->chars[span->chars_num-1].x;
y1 = span->chars[span->chars_num-1].y;
+ pre1.x = span->chars[span->chars_num-1].pre_x;
+ pre1.y = span->chars[span->chars_num-1].pre_y;
}
{
- char buffer[200];
+ char buffer[400];
snprintf(buffer, sizeof(buffer),
- "span chars_num=%i (%c:%f,%f)..(%c:%f,%f) font=%s:(%f,%f) wmode=%i chars_num=%i: ",
+ "span ctm=%s trm=%s chars_num=%i (%c:%f,%f pre(%f %f))..(%c:%f,%f pre(%f %f)) font=%s:(%f,%f) wmode=%i chars_num=%i: ",
+ extract_matrix_string(&span->ctm),
+ extract_matrix_string(&span->trm),
span->chars_num,
- c0, x0, y0,
- c1, x1, y1,
+ c0, x0, y0, pre0.x, pre0.y,
+ c1, x1, y1, pre1.x, pre1.y,
span->font_name,
span->trm.a,
span->trm.d,
@@ -84,9 +108,11 @@ const char* span_string(extract_alloc_t* alloc, span_t* span)
snprintf(
buffer,
sizeof(buffer),
- " i=%i {x=%f adv=%f}",
+ " i=%i {x=%f y=%f ucs=%i adv=%f}",
i,
span->chars[i].x,
+ span->chars[i].y,
+ span->chars[i].ucs,
span->chars[i].adv
);
extract_astring_cat(alloc, &ret, buffer);
@@ -101,7 +127,7 @@ const char* span_string(extract_alloc_t* alloc, span_t* span)
return ret.chars;
}
-int span_append_c(extract_alloc_t* alloc, span_t* span, int c)
+int extract_span_append_c(extract_alloc_t* alloc, span_t* span, int c)
{
char_t* item;
if (extract_realloc2(
@@ -119,7 +145,7 @@ int span_append_c(extract_alloc_t* alloc, span_t* span, int c)
return 0;
}
-char_t* span_char_last(span_t* span)
+char_t* extract_span_char_last(span_t* span)
{
assert(span->chars_num > 0);
return &span->chars[span->chars_num-1];
@@ -138,58 +164,62 @@ static const char* line_string(line_t* line)
int i;
for (i=0; i<line->spans_num; ++i) {
extract_astring_cat(&ret, " ");
- extract_astring_cat(&ret, span_string(line->spans[i]));
+ extract_astring_cat(&ret, extract_span_string(line->spans[i]));
}
return ret.chars;
}
#endif
/* Returns first span in a line. */
-span_t* line_span_last(line_t* line)
+span_t* extract_line_span_last(line_t* line)
{
assert(line->spans_num > 0);
return line->spans[line->spans_num - 1];
}
-span_t* line_span_first(line_t* line)
+span_t* extract_line_span_first(line_t* line)
{
assert(line->spans_num > 0);
return line->spans[0];
}
-static void page_free(extract_alloc_t* alloc, extract_page_t* page)
+
+static void table_free(extract_alloc_t* alloc, table_t** ptable)
+{
+ int c;
+ table_t* table = *ptable;
+ outf("table->cells_num_x=%i table->cells_num_y=%i",
+ table->cells_num_x,
+ table->cells_num_y
+ );
+ for (c = 0; c< table->cells_num_x * table->cells_num_y; ++c)
+ {
+ extract_cell_free(alloc, &table->cells[c]);
+ }
+ extract_free(alloc, &table->cells);
+ extract_free(alloc, ptable);
+}
+
+static void page_free(extract_alloc_t* alloc, extract_page_t** ppage)
{
- int s;
+ extract_page_t* page = *ppage;
if (!page) return;
- for (s=0; s<page->spans_num; ++s) {
- span_t* span = page->spans[s];
- if (span) {
- extract_free(alloc, &span->chars);
- extract_free(alloc, &span->font_name);
- }
- extract_free(alloc, &span);
- }
- extract_free(alloc, &page->spans);
+ outf0("page=%p page->spans_num=%i page->lines_num=%i",
+ page, page->spans_num, page->lines_num);
+ extract_spans_free(alloc, &page->spans, page->spans_num);
- {
- int l;
- for (l=0; l<page->lines_num; ++l) {
- line_t* line = page->lines[l];
- extract_free(alloc, &line->spans);
- extract_free(alloc, &line);
- /* We don't free line->spans->chars[] because already freed via
- page->spans. */
- }
- }
- extract_free(alloc, &page->lines);
+ extract_lines_free(alloc, &page->lines, page->lines_num);
{
int p;
for (p=0; p<page->paragraphs_num; ++p) {
paragraph_t* paragraph = page->paragraphs[p];
+ /* We don't call extract_lines_free(&paragraph->lines) because
+ these point into the same data as page->lines, which we have
+ already freed above. */
if (paragraph) extract_free(alloc, &paragraph->lines);
- extract_free(alloc, &paragraph);
+ extract_free(alloc, &page->paragraphs[p]);
}
}
extract_free(alloc, &page->paragraphs);
@@ -197,13 +227,26 @@ static void page_free(extract_alloc_t* alloc, extract_page_t* page)
{
int i;
for (i=0; i<page->images_num; ++i) {
- extract_free(alloc, &page->images[i].data);
- extract_free(alloc, &page->images[i].type);
- extract_free(alloc, &page->images[i].id);
- extract_free(alloc, &page->images[i].name);
+ extract_image_clear(alloc, &page->images[i]);
}
+ extract_free(alloc, &page->images);
}
extract_free(alloc, &page->images);
+
+ extract_free(alloc, &page->tablelines_horizontal.tablelines);
+ extract_free(alloc, &page->tablelines_vertical.tablelines);
+
+ {
+ int t;
+ outf("page=%p page->tables_num=%i", page, page->tables_num);
+ for (t=0; t<page->tables_num; ++t)
+ {
+ table_free(alloc, &page->tables[t]);
+ }
+ extract_free(alloc, &page->tables);
+ }
+
+ extract_free(alloc, ppage);
}
static span_t* page_span_append(extract_alloc_t* alloc, extract_page_t* page)
@@ -212,9 +255,7 @@ error. */
{
span_t* span;
if (extract_malloc(alloc, &span, sizeof(*span))) return NULL;
- span->font_name = NULL;
- span->chars = NULL;
- span->chars_num = 0;
+ extract_span_init(span);
if (extract_realloc2(
alloc,
&page->spans,
@@ -234,14 +275,7 @@ static void extract_images_free(extract_alloc_t* alloc, images_t* images)
{
int i;
for (i=0; i<images->images_num; ++i) {
- image_t* image = &images->images[i];
- extract_free(alloc, &image->type);
- extract_free(alloc, &image->name);
- extract_free(alloc, &image->id);
- if (image->data_free) {
- image->data_free(image->data_free_handle, image->data);
- }
- extract_free(alloc, &images->images[i]);
+ extract_image_clear(alloc, &images->images[i]);
}
extract_free(alloc, &images->images);
extract_free(alloc, &images->imagetypes);
@@ -260,10 +294,12 @@ On return document->page[].images* will be NULL etc.
int p;
images_t images = {0};
outf("extract_document_images(): images.images_num=%i", images.images_num);
- for (p=0; p<document->pages_num; ++p) {
+ for (p=0; p<document->pages_num; ++p)
+ {
extract_page_t* page = document->pages[p];
int i;
- for (i=0; i<page->images_num; ++i) {
+ for (i=0; i<page->images_num; ++i)
+ {
image_t* image;
if (extract_realloc2(
alloc,
@@ -280,14 +316,17 @@ On return document->page[].images* will be NULL etc.
/* Add image type if we haven't seen it before. */
{
int it;
- for (it=0; it<images.imagetypes_num; ++it) {
+ for (it=0; it<images.imagetypes_num; ++it)
+ {
outf("it=%i images.imagetypes[it]=%s image->type=%s",
it, images.imagetypes[it], image->type);
if (!strcmp(images.imagetypes[it], image->type)) {
break;
}
}
- if (it == images.imagetypes_num) {
+ if (it == images.imagetypes_num)
+ {
+ /* We haven't seen this image type before. */
if (extract_realloc2(
alloc,
&images.imagetypes,
@@ -314,9 +353,12 @@ On return document->page[].images* will be NULL etc.
}
e = 0;
end:
- if (e) {
+ if (e)
+ {
+ extract_free(alloc, &images.images);
}
- else {
+ else
+ {
*o_images = images;
}
return e;
@@ -330,8 +372,7 @@ static void extract_document_free(extract_alloc_t* alloc, document_t* document)
}
for (p=0; p<document->pages_num; ++p) {
extract_page_t* page = document->pages[p];
- page_free(alloc, page);
- extract_free(alloc, &page);
+ page_free(alloc, &page);
}
extract_free(alloc, &document->pages);
document->pages = NULL;
@@ -347,7 +388,7 @@ static int s_sign(double x)
return 0;
}
-int matrix_cmp4(const matrix_t* lhs, const matrix_t* rhs)
+int extract_matrix_cmp4(const matrix_t* lhs, const matrix_t* rhs)
{
int ret;
ret = s_sign(lhs->a - rhs->a); if (ret) return ret;
@@ -358,7 +399,7 @@ int matrix_cmp4(const matrix_t* lhs, const matrix_t* rhs)
}
-static point_t multiply_matrix_point(matrix_t m, point_t p)
+point_t extract_multiply_matrix_point(matrix_t m, point_t p)
{
double x = p.x;
p.x = m.a * x + m.c * p.y;
@@ -366,6 +407,18 @@ static point_t multiply_matrix_point(matrix_t m, point_t p)
return p;
}
+matrix_t extract_multiply_matrix_matrix(matrix_t m1, matrix_t m2)
+{
+ matrix_t ret;
+ ret.a = m1.a * m2.a + m1.b * m2.c;
+ ret.b = m1.a * m2.b + m1.b * m2.d;
+ ret.c = m1.c * m2.a + m1.d * m2.c;
+ ret.d = m1.c * m2.b + m1.d * m2.d;
+ ret.e = m1.e + m2.e;
+ ret.f = m1.f + m2.f;
+ return ret;
+}
+
static int s_matrix_read(const char* text, matrix_t* matrix)
{
int n;
@@ -427,8 +480,8 @@ char_t into a new span_t. */
return 0;
}
- font_size = matrix_expansion(span->trm)
- * matrix_expansion(span->ctm);
+ font_size = extract_matrix_expansion(span->trm)
+ * extract_matrix_expansion(span->ctm);
if (span->flags.wmode) {
dir.x = 0;
@@ -438,7 +491,7 @@ char_t into a new span_t. */
dir.x = 1;
dir.y = 0;
}
- dir = multiply_matrix_point(span->trm, dir);
+ dir = extract_multiply_matrix_point(span->trm, dir);
x = char_[-2].pre_x + char_[-2].adv * dir.x;
y = char_[-2].pre_y + char_[-2].adv * dir.y;
@@ -470,10 +523,10 @@ char_t into a new span_t. */
sometimes seem to appear in the middle of words for some
reason. */
outfx("removing space before final char in: %s",
- span_string(span));
+ extract_span_string(span));
span->chars[span->chars_num-2] = span->chars[span->chars_num-1];
span->chars_num -= 1;
- outfx("span is now: %s", span_string(span));
+ outfx("span is now: %s", extract_span_string(span));
return 0;
}
}
@@ -536,9 +589,42 @@ struct extract_t
int contentss_num;
images_t images;
-
+
extract_format_t format;
extract_odt_styles_t odt_styles;
+
+ char* tables_csv_format;
+ int tables_csv_i;
+
+ enum
+ {
+ path_type_NONE,
+ path_type_FILL,
+ path_type_STROKE,
+ } path_type;
+
+ union
+ {
+ struct
+ {
+ matrix_t ctm;
+ double color;
+ point_t points[4];
+ int n;
+ } fill;
+
+ struct
+ {
+ matrix_t ctm;
+ double color;
+ double width;
+ point_t point0;
+ int point0_set;
+ point_t point;
+ int point_set;
+ } stroke;
+
+ } path;
};
@@ -551,7 +637,12 @@ int extract_begin(
int e = -1;
extract_t* extract;
- if (format != extract_format_ODT && format != extract_format_DOCX)
+ if (1
+ && format != extract_format_ODT
+ && format != extract_format_DOCX
+ && format != extract_format_HTML
+ && format != extract_format_TEXT
+ )
{
outf0("Invalid format=%i\n", format);
errno = EINVAL;
@@ -570,6 +661,8 @@ int extract_begin(
extract->image_n = 10;
extract->format = format;
+ extract->tables_csv_format = NULL;
+ extract->tables_csv_i = 0;
e = 0;
@@ -578,6 +671,11 @@ int extract_begin(
return e;
}
+int extract_tables_csv_format(extract_t* extract, const char* path_format)
+{
+ return extract_strdup(extract->alloc, path_format, &extract->tables_csv_format);
+}
+
static void image_free_fn(void* handle, void* image_data)
{
@@ -872,6 +970,22 @@ int extract_span_begin(
span_t* span;
assert(extract->document.pages_num > 0);
page = extract->document.pages[extract->document.pages_num-1];
+ outf("extract_span_begin(): ctm=(%f %f %f %f %f %f) trm=(%f %f %f %f %f %f) font_name=%s, wmode=%i",
+ ctm_a,
+ ctm_b,
+ ctm_c,
+ ctm_d,
+ ctm_e,
+ ctm_f,
+ trm_a,
+ trm_b,
+ trm_c,
+ trm_d,
+ trm_e,
+ trm_f,
+ font_name,
+ wmode
+ );
span = page_span_append(extract->alloc, page);
if (!span) goto end;
span->ctm.a = ctm_a;
@@ -880,12 +994,14 @@ int extract_span_begin(
span->ctm.d = ctm_d;
span->ctm.e = ctm_e;
span->ctm.f = ctm_f;
+
span->trm.a = trm_a;
span->trm.b = trm_b;
span->trm.c = trm_c;
span->trm.d = trm_d;
span->trm.e = trm_e;
span->trm.f = trm_f;
+
{
const char* ff = strchr(font_name, '+');
const char* f = (ff) ? ff+1 : font_name;
@@ -916,7 +1032,49 @@ int extract_add_char(
extract_page_t* page = extract->document.pages[extract->document.pages_num-1];
span_t* span = page->spans[page->spans_num - 1];
- if (autosplit && y - extract->span_offset_y != 0) {
+ outf("(%f %f) ucs=% 5i=%c adv=%f", x, y, ucs, (ucs >=32 && ucs< 127) ? ucs : ' ', adv);
+ /* Ignore the specified <autosplit> - there seems no advantage to not
+ splitting spans on multiple lines, and not doing so causes problems with
+ missing spaces in the output. */
+ autosplit = 1;
+
+ if (span->chars_num)
+ {
+ char_t* char_prev = &span->chars[span->chars_num - 1];
+ double xx = span->ctm.a * x + span->ctm.c * y + span->ctm.e;
+ double yy = span->ctm.b * x + span->ctm.d * y + span->ctm.f;
+ double dx = xx - char_prev->x;
+ double dy = yy - char_prev->y;
+ double a = atan2(dy, dx);
+ double span_a;
+ matrix_t m = extract_multiply_matrix_matrix(span->trm, span->ctm);
+ point_t dir = {1 - span->flags.wmode, span->flags.wmode};
+ dir = extract_multiply_matrix_point(m, dir);
+ span_a = atan2(dir.y, dir.x);
+ if (fabs(span_a - a) > 0.01)
+ {
+ /* Create new span. */
+ span_t* span0 = span;
+ outf("chars_num=%i prev=(%f %f) => (%f %f) xy=(%f %f) => xxyy=(%f %f) delta=(%f %f) a=%f not in line with dir=(%f %f) a=%f: ",
+ span->chars_num,
+ char_prev->pre_x, char_prev->pre_y,
+ char_prev->x, char_prev->y,
+ x, y,
+ xx, yy,
+ dx, dy, a,
+ dir.x, dir.y, span_a
+ );
+ extract->num_spans_autosplit += 1;
+ span = page_span_append(extract->alloc, page);
+ if (!span) goto end;
+ *span = *span0;
+ span->chars = NULL;
+ span->chars_num = 0;
+ if (extract_strdup(extract->alloc, span0->font_name, &span->font_name)) goto end;
+ }
+ }
+
+ if (0 && autosplit && y - extract->span_offset_y != 0) {
double e = span->ctm.e + span->ctm.a * (x - extract->span_offset_x)
+ span->ctm.b * (y - extract->span_offset_y);
@@ -949,21 +1107,20 @@ int extract_add_char(
char_pre_y, offset_y);
}
- if (span_append_c(extract->alloc, span, 0 /*c*/)) goto end;
+ if (extract_span_append_c(extract->alloc, span, 0 /*c*/)) goto end;
+ /* Coverity warns, but extract_span_append_c() will have appended an item. */
+ /* coverity[var_deref_op] */
char_ = &span->chars[ span->chars_num-1];
- char_->pre_x = x - extract->span_offset_x;
- char_->pre_y = y - extract->span_offset_y;
+ char_->pre_x = x;
+ char_->pre_y = y;
- char_->x = span->ctm.a * char_->pre_x + span->ctm.b * char_->pre_y;
- char_->y = span->ctm.c * char_->pre_x + span->ctm.d * char_->pre_y;
+ char_->x = span->ctm.a * char_->pre_x + span->ctm.c * char_->pre_y + span->ctm.e;
+ char_->y = span->ctm.b * char_->pre_x + span->ctm.d * char_->pre_y + span->ctm.f;
char_->adv = adv;
char_->ucs = ucs;
- char_->x += span->ctm.e;
- char_->y += span->ctm.f;
-
{
int page_spans_num_old = page->spans_num;
if (page_span_end_clean(extract->alloc, page)) goto end;
@@ -1049,6 +1206,174 @@ int extract_add_image(
return e;
}
+
+static int tablelines_append(extract_alloc_t* alloc, tablelines_t* tablelines, rect_t* rect, double color)
+{
+ if (extract_realloc(
+ alloc,
+ &tablelines->tablelines,
+ sizeof(*tablelines->tablelines) * (tablelines->tablelines_num + 1)
+ )) return -1;
+ tablelines->tablelines[ tablelines->tablelines_num].rect = *rect;
+ tablelines->tablelines[ tablelines->tablelines_num].color = (float) color;
+ tablelines->tablelines_num += 1;
+ return 0;
+}
+
+static point_t transform(double x, double y,
+ double ctm_a,
+ double ctm_b,
+ double ctm_c,
+ double ctm_d,
+ double ctm_e,
+ double ctm_f
+ )
+{
+ point_t ret;
+ ret.x = ctm_a * x + ctm_b * y + ctm_e;
+ ret.y = ctm_c * x + ctm_d * y + ctm_f;
+ return ret;
+}
+
+static double s_min(double a, double b)
+{
+ return (a < b) ? a : b;
+}
+
+static double s_max(double a, double b)
+{
+ return (a > b) ? a : b;
+}
+
+int extract_add_path4(
+ extract_t* extract,
+ double ctm_a,
+ double ctm_b,
+ double ctm_c,
+ double ctm_d,
+ double ctm_e,
+ double ctm_f,
+ double x0,
+ double y0,
+ double x1,
+ double y1,
+ double x2,
+ double y2,
+ double x3,
+ double y3,
+ double color
+ )
+{
+ extract_page_t* page = extract->document.pages[extract->document.pages_num-1];
+ point_t points[4] = {
+ transform(x0, y0, ctm_a, ctm_b, ctm_c, ctm_d, ctm_e, ctm_f),
+ transform(x1, y1, ctm_a, ctm_b, ctm_c, ctm_d, ctm_e, ctm_f),
+ transform(x2, y2, ctm_a, ctm_b, ctm_c, ctm_d, ctm_e, ctm_f),
+ transform(x3, y3, ctm_a, ctm_b, ctm_c, ctm_d, ctm_e, ctm_f)
+ };
+ rect_t rect;
+ int i;
+ double dx;
+ double dy;
+ if (0 && color == 1)
+ {
+ return 0;
+ }
+ outf("cmt=(%f %f %f %f %f %f) points=[(%f %f) (%f %f) (%f %f) (%f %f)]",
+ ctm_a, ctm_b, ctm_c, ctm_d, ctm_e, ctm_f,
+ x0, y0, x1, y1, x2, y2, x3, y3
+ );
+ outf("extract_add_path4(): [(%f %f) (%f %f) (%f %f) (%f %f)]",
+ x0, y0, x1, y1, x2, y2, x3, y3);
+ /* Find first step with dx > 0. */
+ for (i=0; i<4; ++i)
+ {
+ if (points[(i+1) % 4].x > points[(i+0) % 4].x) break;
+ }
+ outf("i=%i", i);
+ if (i == 4) return 0;
+ rect.min.x = points[(i+0) % 4].x;
+ rect.max.x = points[(i+1) % 4].x;
+ if (points[(i+2) % 4].x != rect.max.x) return 0;
+ if (points[(i+3) % 4].x != rect.min.x) return 0;
+ y0 = points[(i+1) % 4].y;
+ y1 = points[(i+2) % 4].y;
+ if (y0 == y1) return 0;
+ if (points[(i+3) % 4].y != y1) return 0;
+ if (points[(i+4) % 4].y != y0) return 0;
+ rect.min.y = (y1 > y0) ? y0 : y1;
+ rect.max.y = (y1 > y0) ? y1 : y0;
+
+ dx = rect.max.x - rect.min.x;
+ dy = rect.max.y - rect.min.y;
+ if (dx / dy > 5)
+ {
+ /* Horizontal line. */
+ outf("have found horizontal line: %s", extract_rect_string(&rect));
+ if (tablelines_append(extract->alloc, &page->tablelines_horizontal, &rect, color)) return -1;
+ }
+ else if (dy / dx > 5)
+ {
+ /* Vertical line. */
+ outf("have found vertical line: %s", extract_rect_string(&rect));
+ if (tablelines_append(extract->alloc, &page->tablelines_vertical, &rect, color)) return -1;
+ }
+ return 0;
+}
+
+
+int extract_add_line(
+ extract_t* extract,
+ double ctm_a,
+ double ctm_b,
+ double ctm_c,
+ double ctm_d,
+ double ctm_e,
+ double ctm_f,
+ double width,
+ double x0,
+ double y0,
+ double x1,
+ double y1,
+ double color
+ )
+{
+ extract_page_t* page = extract->document.pages[extract->document.pages_num-1];
+ point_t p0 = transform(x0, y0, ctm_a, ctm_b, ctm_c, ctm_d, ctm_e, ctm_f);
+ point_t p1 = transform(x1, y1, ctm_a, ctm_b, ctm_c, ctm_d, ctm_e, ctm_f);
+ double width2 = width * sqrt( fabs( ctm_a * ctm_d - ctm_b * ctm_c));
+ rect_t rect;
+ (void) color;
+ rect.min.x = s_min(p0.x, p1.x);
+ rect.min.y = s_min(p0.y, p1.y);
+ rect.max.x = s_max(p0.x, p1.x);
+ rect.max.y = s_max(p0.y, p1.y);
+
+ outf("%s: width=%f ((%f %f)(%f %f)) rect=%s",
+ extract_FUNCTION,
+ width,
+ x0, y0, x1, y1,
+ extract_rect_string(&rect)
+ );
+ if (rect.min.x == rect.max.x && rect.min.y == rect.max.y)
+ {
+ }
+ else if (rect.min.x == rect.max.x)
+ {
+ rect.min.x -= width2 / 2;
+ rect.max.x += width2 / 2;
+ return tablelines_append(extract->alloc, &page->tablelines_vertical, &rect, color);
+ }
+ else if (rect.min.y == rect.max.y)
+ {
+ rect.min.y -= width2 / 2;
+ rect.max.y += width2 / 2;
+ return tablelines_append(extract->alloc, &page->tablelines_horizontal, &rect, color);
+ }
+ return 0;
+}
+
+
int extract_page_begin(extract_t* extract)
{
/* Appends new empty extract_page_t to an extract->document. */
@@ -1062,6 +1387,13 @@ int extract_page_begin(extract_t* extract)
page->paragraphs_num = 0;
page->images = NULL;
page->images_num = 0;
+ page->tablelines_horizontal.tablelines = NULL;
+ page->tablelines_horizontal.tablelines_num = 0;
+ page->tablelines_vertical.tablelines = NULL;
+ page->tablelines_vertical.tablelines_num = 0;
+ page->tables = NULL;
+ page->tables_num = 0;
+
if (extract_realloc2(
extract->alloc,
&extract->document.pages,
@@ -1076,6 +1408,231 @@ int extract_page_begin(extract_t* extract)
return 0;
}
+int extract_fill_begin(
+ extract_t* extract,
+ double ctm_a,
+ double ctm_b,
+ double ctm_c,
+ double ctm_d,
+ double ctm_e,
+ double ctm_f,
+ double color
+ )
+{
+ assert(extract->path_type == path_type_NONE);
+ extract->path_type = path_type_FILL;
+ extract->path.fill.color = color;
+ extract->path.fill.n = 0;
+ extract->path.fill.ctm.a = ctm_a;
+ extract->path.fill.ctm.b = ctm_b;
+ extract->path.fill.ctm.c = ctm_c;
+ extract->path.fill.ctm.d = ctm_d;
+ extract->path.fill.ctm.e = ctm_e;
+ extract->path.fill.ctm.f = ctm_f;
+ return 0;
+}
+
+int extract_stroke_begin(
+ extract_t* extract,
+ double ctm_a,
+ double ctm_b,
+ double ctm_c,
+ double ctm_d,
+ double ctm_e,
+ double ctm_f,
+ double line_width,
+ double color
+ )
+{
+ assert(extract->path_type == path_type_NONE);
+ extract->path_type = path_type_STROKE;
+ extract->path.stroke.ctm.a = ctm_a;
+ extract->path.stroke.ctm.b = ctm_b;
+ extract->path.stroke.ctm.c = ctm_c;
+ extract->path.stroke.ctm.d = ctm_d;
+ extract->path.stroke.ctm.e = ctm_e;
+ extract->path.stroke.ctm.f = ctm_f;
+ extract->path.stroke.width = line_width;
+ extract->path.stroke.color = color;
+ extract->path.stroke.point0_set = 0;
+ extract->path.stroke.point_set = 0;
+ return 0;
+}
+
+int extract_moveto(extract_t* extract, double x, double y)
+{
+ if (extract->path_type == path_type_FILL)
+ {
+ if (extract->path.fill.n == -1) return 0;
+ if (extract->path.fill.n != 0)
+ {
+ outf0("returning error. extract->path.fill.n=%i", extract->path.fill.n);
+ extract->path.fill.n = -1;
+ return 0;
+ }
+ extract->path.fill.points[extract->path.fill.n].x = x;
+ extract->path.fill.points[extract->path.fill.n].y = y;
+ extract->path.fill.n += 1;
+ return 0;
+ }
+ else if (extract->path_type == path_type_STROKE)
+ {
+ extract->path.stroke.point.x = x;
+ extract->path.stroke.point.y = y;
+ extract->path.stroke.point_set = 1;
+ if (!extract->path.stroke.point0_set)
+ {
+ extract->path.stroke.point0 = extract->path.stroke.point;
+ extract->path.stroke.point0_set = 1;
+ }
+ return 0;
+ }
+ else
+ {
+ assert(0);
+ return -1;
+ }
+}
+
+int extract_lineto(extract_t* extract, double x, double y)
+{
+ if (extract->path_type == path_type_FILL)
+ {
+ if (extract->path.fill.n == -1) return 0;
+ if (extract->path.fill.n == 0 || extract->path.fill.n >= 4)
+ {
+ outf0("returning error. extract->path.fill.n=%i", extract->path.fill.n);
+ extract->path.fill.n = -1;
+ return 0;
+ }
+ extract->path.fill.points[extract->path.fill.n].x = x;
+ extract->path.fill.points[extract->path.fill.n].y = y;
+ extract->path.fill.n += 1;
+ return 0;
+ }
+ else if (extract->path_type == path_type_STROKE)
+ {
+ if (extract->path.stroke.point_set)
+ {
+ if (extract_add_line(
+ extract,
+ extract->path.stroke.ctm.a,
+ extract->path.stroke.ctm.b,
+ extract->path.stroke.ctm.c,
+ extract->path.stroke.ctm.d,
+ extract->path.stroke.ctm.e,
+ extract->path.stroke.ctm.f,
+ extract->path.stroke.width,
+ extract->path.stroke.point.x,
+ extract->path.stroke.point.y,
+ x,
+ y,
+ extract->path.stroke.color
+ ))
+ {
+ return -1;
+ }
+ }
+ extract->path.stroke.point.x = x;
+ extract->path.stroke.point.y = y;
+ extract->path.stroke.point_set = 1;
+ if (!extract->path.stroke.point0_set)
+ {
+ extract->path.stroke.point0 = extract->path.stroke.point;
+ extract->path.stroke.point0_set = 1;
+ }
+ return 0;
+ }
+ else
+ {
+ assert(0);
+ return -1;
+ }
+}
+
+int extract_closepath(extract_t* extract)
+{
+ if (extract->path_type == path_type_FILL)
+ {
+ if (extract->path.fill.n == 4)
+ {
+ /* We are closing a four-element path, so this could be a thin
+ rectangle that defines a line in a table. */
+ int e;
+ e = extract_add_path4(
+ extract,
+ extract->path.fill.ctm.a,
+ extract->path.fill.ctm.b,
+ extract->path.fill.ctm.c,
+ extract->path.fill.ctm.d,
+ extract->path.fill.ctm.e,
+ extract->path.fill.ctm.f,
+ extract->path.fill.points[0].x,
+ extract->path.fill.points[0].y,
+ extract->path.fill.points[1].x,
+ extract->path.fill.points[1].y,
+ extract->path.fill.points[2].x,
+ extract->path.fill.points[2].y,
+ extract->path.fill.points[3].x,
+ extract->path.fill.points[3].y,
+ extract->path.fill.color
+ );
+ if (e) return e;
+ }
+ extract->path.fill.n = 0;
+ return 0;
+ }
+ else if (extract->path_type == path_type_STROKE)
+ {
+ if (extract->path.stroke.point0_set && extract->path.stroke.point_set)
+ {
+ if (extract_add_line(
+ extract,
+ extract->path.stroke.ctm.a,
+ extract->path.stroke.ctm.b,
+ extract->path.stroke.ctm.c,
+ extract->path.stroke.ctm.d,
+ extract->path.stroke.ctm.e,
+ extract->path.stroke.ctm.f,
+ extract->path.stroke.width,
+ extract->path.stroke.point.x,
+ extract->path.stroke.point.y,
+ extract->path.stroke.point0.x,
+ extract->path.stroke.point0.y,
+ extract->path.stroke.color
+ ))
+ {
+ return -1;
+ }
+ return 0;
+ }
+ extract->path.stroke.point = extract->path.stroke.point0;
+ return 0;
+ }
+ else
+ {
+ assert(0);
+ return -1;
+ }
+}
+
+
+int extract_fill_end(extract_t* extract)
+{
+ assert(extract->path_type == path_type_FILL);
+ extract->path_type = path_type_NONE;
+ return 0;
+}
+
+
+int extract_stroke_end(extract_t* extract)
+{
+ assert(extract->path_type == path_type_STROKE);
+ extract->path_type = path_type_NONE;
+ return 0;
+}
+
+
int extract_page_end(extract_t* extract)
{
@@ -1083,6 +1640,118 @@ int extract_page_end(extract_t* extract)
return 0;
}
+
+static int paragraphs_to_text_content(
+ extract_alloc_t* alloc,
+ paragraph_t** paragraphs,
+ int paragraphs_num,
+ extract_astring_t* text
+ )
+{
+ int p;
+ for (p=0; p<paragraphs_num; ++p)
+ {
+ paragraph_t* paragraph = paragraphs[p];
+ int l;
+ for (l=0; l<paragraph->lines_num; ++l)
+ {
+ line_t* line = paragraph->lines[l];
+ int s;
+ for (s=0; s<line->spans_num; ++s)
+ {
+ span_t* span = line->spans[s];
+ int c;
+ for (c=0; c<span->chars_num; ++c)
+ {
+ /* We encode each character as utf8. */
+ char_t* char_ = &span->chars[c];
+ unsigned cc = char_->ucs;
+ if (extract_astring_catc_unicode(
+ alloc,
+ text,
+ cc,
+ 0 /*xml*/,
+ 1 /*ascii_ligatures*/,
+ 1 /*ascii_dash*/,
+ 1 /*ascii_apostrophe*/
+ )) return -1;
+ }
+ }
+ }
+ if (extract_astring_catc(alloc, text, '\n')) return -1;
+ }
+ return 0;
+}
+
+
+static int extract_write_tables_csv(extract_t* extract)
+{
+ int ret = -1;
+ int p;
+ char* path = NULL;
+ FILE* f = NULL;
+ extract_astring_t text = {NULL, 0};
+ if (!extract->tables_csv_format) return 0;
+
+ outf("extract_write_tables_csv(): path_format=%s", extract->tables_csv_format);
+ outf("extract->document.pages_num=%i", extract->document.pages_num);
+ for (p=0; p<extract->document.pages_num; ++p)
+ {
+ extract_page_t* page = extract->document.pages[p];
+ int t;
+ outf("p=%i page->tables_num=%i", p, page->tables_num);
+ for (t=0; t<page->tables_num; ++t)
+ {
+ table_t* table = page->tables[t];
+ int y;
+ extract_free(extract->alloc, &path);
+ if (extract_asprintf(extract->alloc, &path, extract->tables_csv_format, extract->tables_csv_i) < 0) goto end;
+ extract->tables_csv_i += 1;
+ outf("Writing table %i to: %s", t, path);
+ outf("table->cells_num_x=%i", table->cells_num_x);
+ outf("table->cells_num_y=%i", table->cells_num_y);
+ f = fopen(path, "w");
+ if (!f) goto end;
+ for (y=0; y<table->cells_num_y; ++y)
+ {
+ int x;
+ int have_output = 0;
+ for (x=0; x<table->cells_num_x; ++x)
+ {
+ cell_t* cell = table->cells[table->cells_num_x * y + x];
+ extract_astring_free(extract->alloc, &text);
+ if (y==0)
+ {
+ outf("y=0 x=%i cell->rect=%s", x, extract_rect_string(&cell->rect));
+ }
+ if (have_output) fprintf(f, ",");
+ have_output = 1;
+ if (paragraphs_to_text_content(
+ extract->alloc,
+ cell->paragraphs,
+ cell->paragraphs_num,
+ &text
+ )) goto end;
+ /* Reference cvs output trims trailing spaces. */
+ extract_astring_char_truncate_if(&text, ' ');
+ fprintf(f, "\"%s\"", text.chars ? text.chars : "");
+ }
+ fprintf(f, "\n");
+ }
+ fclose(f);
+ f = NULL;
+ }
+ }
+ ret = 0;
+
+ end:
+ if (f) fclose(f);
+ extract_free(extract->alloc, &path);
+ extract_astring_free(extract->alloc, &text);
+ return ret;
+}
+
+
int extract_process(
extract_t* extract,
int spacing,
@@ -1126,6 +1795,30 @@ int extract_process(
&extract->contentss[extract->contentss_num - 1]
)) goto end;
}
+ else if (extract->format == extract_format_HTML)
+ {
+ if (extract_document_to_html_content(
+ extract->alloc,
+ &extract->document,
+ rotation,
+ images,
+ &extract->contentss[extract->contentss_num - 1]
+ )) goto end;
+ }
+ else if (extract->format == extract_format_TEXT)
+ {
+ int p;
+ for (p=0; p<extract->document.pages_num; ++p)
+ {
+ extract_page_t* page = extract->document.pages[p];
+ if (paragraphs_to_text_content(
+ extract->alloc,
+ page->paragraphs,
+ page->paragraphs_num,
+ &extract->contentss[extract->contentss_num - 1]
+ )) goto end;
+ }
+ }
else
{
outf0("Invalid format=%i", extract->format);
@@ -1136,11 +1829,15 @@ int extract_process(
if (extract_document_images(extract->alloc, &extract->document, &extract->images)) goto end;
+ if (extract->tables_csv_format)
+ {
+ extract_write_tables_csv(extract);
+ }
+
{
int i;
for (i=0; i<extract->document.pages_num; ++i) {
- page_free(extract->alloc, extract->document.pages[i]);
- extract_free(extract->alloc, &extract->document.pages[i]);
+ page_free(extract->alloc, &extract->document.pages[i]);
}
extract_free(extract->alloc, &extract->document.pages);
extract->document.pages_num = 0;
@@ -1159,9 +1856,9 @@ int extract_write(extract_t* extract, extract_buffer_t* buffer)
char* text2 = NULL;
int i;
- if (extract_zip_open(buffer, &zip)) goto end;
if (extract->format == extract_format_ODT)
{
+ if (extract_zip_open(buffer, &zip)) goto end;
for (i=0; i<odt_template_items_num; ++i) {
const odt_template_item_t* item = &odt_template_items[i];
extract_free(extract->alloc, &text2);
@@ -1191,9 +1888,11 @@ int extract_write(extract_t* extract, extract_buffer_t* buffer)
if (extract_asprintf(extract->alloc, &text2, "Pictures/%s", image->name) < 0) goto end;
if (extract_zip_write_file(zip, image->data, image->data_size, text2)) goto end;
}
+ if (extract_zip_close(&zip)) goto end;
}
else if (extract->format == extract_format_DOCX)
{
+ if (extract_zip_open(buffer, &zip)) goto end;
for (i=0; i<docx_template_items_num; ++i) {
const docx_template_item_t* item = &docx_template_items[i];
extract_free(extract->alloc, &text2);
@@ -1222,6 +1921,22 @@ int extract_write(extract_t* extract, extract_buffer_t* buffer)
if (extract_asprintf(extract->alloc, &text2, "word/media/%s", image->name) < 0) goto end;
if (extract_zip_write_file(zip, image->data, image->data_size, text2)) goto end;
}
+ if (extract_zip_close(&zip)) goto end;
+
+ }
+ else if (extract->format == extract_format_HTML)
+ {
+ for (i=0; i<extract->contentss_num; ++i)
+ {
+ if (extract_buffer_write(buffer, extract->contentss[i].chars, extract->contentss[i].chars_num, NULL)) goto end;
+ }
+ }
+ else if (extract->format == extract_format_TEXT)
+ {
+ for (i=0; i<extract->contentss_num; ++i)
+ {
+ if (extract_buffer_write(buffer, extract->contentss[i].chars, extract->contentss[i].chars_num, NULL)) goto end;
+ }
}
else
{
@@ -1231,15 +1946,15 @@ int extract_write(extract_t* extract, extract_buffer_t* buffer)
return 1;
}
- if (extract_zip_close(&zip)) goto end;
- assert(!zip);
-
e = 0;
end:
- if (e) outf("failed: %s", strerror(errno));
+ if (e)
+ {
+ outf("failed: %s", strerror(errno));
+ extract_zip_close(&zip);
+ }
extract_free(extract->alloc, &text2);
- extract_zip_close(&zip);
return e;
}
@@ -1300,6 +2015,7 @@ int extract_write_template(
}
}
+
void extract_end(extract_t** pextract)
{
extract_t* extract = *pextract;
@@ -1314,12 +2030,13 @@ void extract_end(extract_t** pextract)
extract_free(extract->alloc, &extract->contentss);
}
extract_images_free(extract->alloc, &extract->images);
+ extract_odt_styles_free(extract->alloc, &extract->odt_styles);
extract_free(extract->alloc, pextract);
}
void extract_internal_end(void)
{
- span_string(NULL, NULL);
+ extract_span_string(NULL, NULL);
}
void extract_exp_min(extract_t* extract, size_t size)
@@ -1329,8 +2046,8 @@ void extract_exp_min(extract_t* extract, size_t size)
double extract_matrices_to_font_size(matrix_t* ctm, matrix_t* trm)
{
- double font_size = matrix_expansion(*trm)
- * matrix_expansion(*ctm);
+ double font_size = extract_matrix_expansion(*trm)
+ * extract_matrix_expansion(*ctm);
/* Round font_size to nearest 0.01. */
font_size = (double) (int) (font_size * 100.0f + 0.5f) / 100.0f;
return font_size;
diff --git a/extract/src/html.c b/extract/src/html.c
new file mode 100644
index 00000000..d12a3101
--- /dev/null
+++ b/extract/src/html.c
@@ -0,0 +1,314 @@
+/* These extract_html_*() functions generate docx content and docx zip archive
+data.
+
+Caller must call things in a sensible order to create valid content -
+e.g. don't call docx_paragraph_start() twice without intervening call to
+docx_paragraph_finish(). */
+
+#include "../include/extract.h"
+
+#include "astring.h"
+#include "document.h"
+#include "html.h"
+#include "mem.h"
+#include "memento.h"
+#include "outf.h"
+#include "sys.h"
+#include "text.h"
+#include "zip.h"
+
+#include <assert.h>
+#include <errno.h>
+#include <float.h>
+#include <math.h>
+#include <stdlib.h>
+#include <stdio.h>
+#include <string.h>
+
+#include <sys/stat.h>
+
+
+static void content_state_init(content_state_t* content_state)
+{
+ content_state->font.name = NULL;
+ content_state->font.size = 0;
+ content_state->font.bold = 0;
+ content_state->font.italic = 0;
+ content_state->ctm_prev = NULL;
+}
+
+static int content_state_reset(extract_alloc_t* alloc, content_state_t* content_state, extract_astring_t* content)
+{
+ int e = -1;
+ if (content_state->font.bold)
+ {
+ if (extract_astring_cat(alloc, content, "</b>")) goto end;
+ content_state->font.bold = 0;
+ }
+ if (content_state->font.italic)
+ {
+ if (extract_astring_cat(alloc, content, "</i>")) goto end;
+ content_state->font.italic = 0;
+ }
+ e = 0;
+
+ end:
+ return e;
+}
+
+static int paragraph_to_html_content(
+ extract_alloc_t* alloc,
+ content_state_t* content_state,
+ paragraph_t* paragraph,
+ int single_line,
+ extract_astring_t* content
+ )
+{
+ int e = -1;
+ const char* endl = (single_line) ? "" : "\n";
+ int l;
+ if (extract_astring_catf(alloc, content, "%s%s<p>", endl, endl)) goto end;
+
+ for (l=0; l<paragraph->lines_num; ++l)
+ {
+ line_t* line = paragraph->lines[l];
+ int s;
+ for (s=0; s<line->spans_num; ++s)
+ {
+ int c;
+ span_t* span = line->spans[s];
+ content_state->ctm_prev = &span->ctm;
+ if (span->flags.font_bold != content_state->font.bold)
+ {
+ if (extract_astring_cat(alloc, content,
+ span->flags.font_bold ? "<b>" : "</b>"
+ )) goto end;
+ content_state->font.bold = span->flags.font_bold;
+ }
+ if (span->flags.font_italic != content_state->font.italic)
+ {
+ if ( extract_astring_cat(alloc, content,
+ span->flags.font_italic ? "<i>" : "</i>"
+ )) goto end;
+ content_state->font.italic = span->flags.font_italic;
+ }
+
+ for (c=0; c<span->chars_num; ++c)
+ {
+ char_t* char_ = &span->chars[c];
+ if (extract_astring_catc_unicode_xml(alloc, content, char_->ucs)) goto end;
+ }
+ }
+
+ if (content->chars_num && l+1 < paragraph->lines_num)
+ {
+ if (content->chars[content->chars_num-1] == '-') content->chars_num -= 1;
+ else if (content->chars[content->chars_num-1] != ' ')
+ {
+ extract_astring_catc(alloc, content, ' ');
+ }
+ }
+ }
+ if (extract_astring_catf(alloc, content, "%s</p>", endl)) goto end;
+
+ e = 0;
+
+ end:
+ return e;
+}
+
+
+static int paragraphs_to_html_content(
+ extract_alloc_t* alloc,
+ content_state_t* state,
+ paragraph_t** paragraphs,
+ int paragraphs_num,
+ int single_line,
+ extract_astring_t* content
+ )
+/* Append html for paragraphs[] to <content>. Updates *state if we change font
+etc. */
+{
+ int e = -1;
+ int p;
+ for (p=0; p<paragraphs_num; ++p)
+ {
+ paragraph_t* paragraph = paragraphs[p];
+ if (paragraph_to_html_content(alloc, state, paragraph, single_line, content)) goto end;
+ }
+
+ if (content_state_reset(alloc, state, content)) goto end;
+ e = 0;
+
+ end:
+ return e;
+}
+
+static int append_table(extract_alloc_t* alloc, content_state_t* state, table_t* table, extract_astring_t* content)
+{
+ int e = -1;
+ int y;
+
+ if (extract_astring_cat(alloc, content, "\n\n<table border=\"1\" style=\"border-collapse:collapse\">\n")) goto end;
+
+ for (y=0; y<table->cells_num_y; ++y)
+ {
+ /* If 1, we put each <td>...</td> on a separate line. */
+ int multiline = 0;
+ int x;
+ if (extract_astring_cat(alloc, content, " <tr>\n")) goto end;
+ if (!multiline)
+ {
+ if (extract_astring_cat(alloc, content, " ")) goto end;
+ }
+ for (x=0; x<table->cells_num_x; ++x)
+ {
+ cell_t* cell = table->cells[y*table->cells_num_x + x];
+ if (!cell->above || !cell->left)
+ {
+ /* HTML does not require anything for cells that are subsumed
+ by other cells that extend horizontally and vertically. */
+ continue;
+ }
+ if (extract_astring_cat(alloc, content, " ")) goto end;
+ if (extract_astring_cat(alloc, content, "<td")) goto end;
+
+ if (cell->extend_right > 1)
+ {
+ if (extract_astring_catf(alloc, content, " colspan=\"%i\"", cell->extend_right)) goto end;
+ }
+ if (cell->extend_down > 1)
+ {
+ if (extract_astring_catf(alloc, content, " rowspan=\"%i\"", cell->extend_down)) goto end;
+ }
+
+ if (extract_astring_cat(alloc, content, ">")) goto end;
+
+ if (paragraphs_to_html_content(alloc, state, cell->paragraphs, cell->paragraphs_num, 1 /* single_line*/, content)) goto end;
+ if (extract_astring_cat(alloc, content, "</td>")) goto end;
+ if (extract_astring_cat(alloc, content, "\n")) goto end;
+
+ if (content_state_reset(alloc, state, content)) goto end;
+ }
+ if (!multiline)
+ {
+ if (extract_astring_cat(alloc, content, "\n")) goto end;
+ }
+ if (extract_astring_cat(alloc, content, " </tr>\n")) goto end;
+ }
+ if (extract_astring_cat(alloc, content, "</table>\n\n")) goto end;
+ e = 0;
+
+ end:
+ return e;
+}
+
+
+static char_t* paragraph_first_char(const paragraph_t* paragraph)
+{
+ line_t* line = paragraph->lines[paragraph->lines_num - 1];
+ span_t* span = line->spans[line->spans_num - 1];
+ return &span->chars[0];
+}
+
+static int compare_paragraph_y(const void* a, const void* b)
+{
+ const paragraph_t* const* a_paragraph = a;
+ const paragraph_t* const* b_paragraph = b;
+ double a_y = paragraph_first_char(*a_paragraph)->y;
+ double b_y = paragraph_first_char(*b_paragraph)->y;
+ if (a_y > b_y) return +1;
+ if (a_y < b_y) return -1;
+ return 0;
+}
+
+int extract_document_to_html_content(
+ extract_alloc_t* alloc,
+ document_t* document,
+ int rotation,
+ int images,
+ extract_astring_t* content
+ )
+{
+ int ret = -1;
+ int p;
+ paragraph_t** paragraphs = NULL;
+
+ (void) rotation;
+ (void) images;
+
+ extract_astring_cat(alloc, content, "<html>\n");
+ extract_astring_cat(alloc, content, "<body>\n");
+
+ /* Write paragraphs into <content>. */
+ for (p=0; p<document->pages_num; ++p)
+ {
+ extract_page_t* page = document->pages[p];
+ int p;
+ int t;
+ content_state_t state;
+ content_state_init(&state);
+ extract_free(alloc, &paragraphs);
+
+ /* Output paragraphs and tables in order of increasing <y> coordinate.
+
+ Unfortunately the paragraph ordering we do in page->paragraphs[]
+ isn't quite right and results in bad ordering if ctm/trm matrices are
+ inconsistent. So we create our own list of paragraphs sorted strictly
+ by y coordinate of the first char of each paragraph. */
+ if (extract_malloc(alloc, &paragraphs, sizeof(*paragraphs) * page->paragraphs_num)) goto end;
+ for (p = 0; p < page->paragraphs_num; ++p)
+ {
+ paragraphs[p] = page->paragraphs[p];
+ }
+ qsort(paragraphs, page->paragraphs_num, sizeof(*paragraphs), compare_paragraph_y);
+
+ if (0)
+ {
+ int p;
+ outf0("paragraphs are:");
+ for (p=0; p<page->paragraphs_num; ++p)
+ {
+ paragraph_t* paragraph = page->paragraphs[p];
+ line_t* line = paragraph->lines[0];
+ span_t* span = line->spans[0];
+ outf0(" p=%i: %s", p, extract_span_string(NULL, span));
+ }
+ }
+
+ p = 0;
+ t = 0;
+ for(;;)
+ {
+ double y_paragraph;
+ double y_table;
+ paragraph_t* paragraph = (p == page->paragraphs_num) ? NULL : paragraphs[p];
+ table_t* table = (t == page->tables_num) ? NULL : page->tables[t];
+ if (!paragraph && !table) break;
+ y_paragraph = (paragraph) ? paragraph->lines[0]->spans[0]->chars[0].y : DBL_MAX;
+ y_table = (table) ? table->pos.y : DBL_MAX;
+ outf("p=%i y_paragraph=%f", p, y_paragraph);
+ outf("t=%i y_table=%f", t, y_table);
+ if (paragraph && y_paragraph < y_table)
+ {
+ //extract_astring_catf(alloc, content, "<p>@@@ paragraph %i y=%f @@@)</p>\n", p, y_paragraph);
+ if (paragraph_to_html_content(alloc, &state, paragraph, 0 /*single_line*/, content)) goto end;
+ if (content_state_reset(alloc, &state, content)) goto end;
+ p += 1;
+ }
+ else if (table)
+ {
+ //extract_astring_catf(alloc, content, "<p>@@@ table %t y=%f @@@)</p>\n", p, y_table);
+ if (append_table(alloc, &state, table, content)) goto end;
+ t += 1;
+ }
+ }
+ }
+ extract_astring_cat(alloc, content, "</body>\n");
+ extract_astring_cat(alloc, content, "</html>\n");
+ ret = 0;
+
+ end:
+ extract_free(alloc, &paragraphs);
+ return ret;
+}
diff --git a/extract/src/html.h b/extract/src/html.h
new file mode 100644
index 00000000..6148a067
--- /dev/null
+++ b/extract/src/html.h
@@ -0,0 +1,23 @@
+#ifndef ARTIFEX_EXTRACT_HTML_H
+#define ARTIFEX_EXTRACT_HTML_H
+
+/* Only for internal use by extract code. */
+
+/* Things for creating docx files. */
+
+int extract_document_to_html_content(
+ extract_alloc_t* alloc,
+ document_t* document,
+ int rotation,
+ int images,
+ extract_astring_t* content
+ );
+/* Makes *o_content point to a string containing all paragraphs in *document in
+docx XML format.
+
+This string can be passed to extract_docx_content_item() or
+extract_docx_write_template() to be inserted into a docx archive's
+word/document.xml. */
+
+
+#endif
diff --git a/extract/src/join.c b/extract/src/join.c
index f12e2751..4425de3d 100644
--- a/extract/src/join.c
+++ b/extract/src/join.c
@@ -7,6 +7,7 @@
#include "outf.h"
#include <assert.h>
+#include <float.h>
#include <math.h>
#include <stdio.h>
@@ -17,24 +18,39 @@ static char_t* span_char_first(span_t* span)
return &span->chars[0];
}
+static span_t* s_line_span_first(line_t* line)
+{
+ return extract_line_span_first(line);
+}
+
/* Returns first char_t in a line. */
static char_t* line_item_first(line_t* line)
{
- span_t* span = line_span_first(line);
+ span_t* span = s_line_span_first(line);
return span_char_first(span);
}
/* Returns last char_t in a line. */
static char_t* line_item_last(line_t* line)
{
- span_t* span = line_span_last(line);
- return span_char_last(span);
+ span_t* span = extract_line_span_last(line);
+ return extract_span_char_last(span);
}
-static const char* matrix_string(const matrix_t* matrix)
+static point_t char_to_point(const char_t* char_)
{
- static char ret[64];
- snprintf(ret, sizeof(ret), "{%f %f %f %f %f %f}",
+ point_t ret;
+ ret.x = char_->x;
+ ret.y = char_->y;
+ return ret;
+}
+
+const char* extract_matrix_string(const matrix_t* matrix)
+{
+ static char ret[5][64];
+ static int i = 0;
+ i = (i + 1) % 5;
+ snprintf(ret[i], sizeof(ret[i]), "{%f %f %f %f %f %f}",
matrix->a,
matrix->b,
matrix->c,
@@ -42,17 +58,17 @@ static const char* matrix_string(const matrix_t* matrix)
matrix->e,
matrix->f
);
- return ret;
+ return ret[i];
}
/* Returns total width of span. */
static double span_adv_total(span_t* span)
{
- double dx = span_char_last(span)->x - span_char_first(span)->x;
- double dy = span_char_last(span)->y - span_char_first(span)->y;
+ double dx = extract_span_char_last(span)->x - span_char_first(span)->x;
+ double dy = extract_span_char_last(span)->y - span_char_first(span)->y;
/* We add on the advance of the last item; this avoids us returning zero if
there's only one item. */
- double adv = span_char_last(span)->adv * matrix_expansion(span->trm);
+ double adv = extract_span_char_last(span)->adv * extract_matrix_expansion(span->trm);
return sqrt(dx*dx + dy*dy) + adv;
}
@@ -66,15 +82,30 @@ static double spans_adv(
double delta_x = b->x - a->x;
double delta_y = b->y - a->y;
double s = sqrt( delta_x*delta_x + delta_y*delta_y);
- double a_size = a->adv * matrix_expansion(a_span->trm);
+ double a_size = a->adv * extract_matrix_expansion(a_span->trm);
s -= a_size;
return s;
}
static double span_angle(span_t* span)
{
- /* Assume ctm is a rotation matix. */
double ret = atan2(-span->ctm.c, span->ctm.a);
+ if (0)
+ {
+ /* This is an attempt to take into account the trm matrix when looking
+ at spans, because for agstat.pdf vertical text seems to be achieved
+ by making trm rotate by 90 degrees. But it messes up the ordering of
+ rotated paragraphs in Python2.pdf so is disabled for now. */
+ matrix_t m = extract_multiply_matrix_matrix(span->trm, span->ctm);
+ point_t dir;
+ double ret;
+ dir.x = span->flags.wmode ? 0 : 1;
+ dir.y = span->flags.wmode ? 1 : 0;
+ dir = extract_multiply_matrix_point(m, dir);
+ ret = atan2(dir.y, dir.x);
+ return ret;
+ }
+ /* Assume ctm is a rotation matix. */
outfx("ctm.a=%f ctm.b=%f ret=%f", span->ctm.a, span->ctm.b, ret);
return ret;
/* Not sure whether this is right. Inclined text seems to be done by
@@ -89,6 +120,22 @@ static double span_angle(span_t* span)
}*/
}
+static double span_angle2(span_t* span)
+{
+ if (span->chars_num > 1)
+ {
+ double dx = span->chars[span->chars_num-1].x - span->chars[0].x;
+ double dy = span->chars[span->chars_num-1].y - span->chars[0].y;
+ double ret1 = span_angle(span);
+ double ret2 = atan2(-dy, dx);
+ if (fabs(ret2 - ret1) > 0.01)
+ {
+ outf("### ret1=%f ret2=%f: %s", ret1, ret2, extract_span_string(NULL, span));
+ }
+ }
+ return span_angle(span);
+}
+
/* Returns static string containing brief info about span_t. */
static const char* span_string2(extract_alloc_t* alloc, span_t* span)
{
@@ -182,36 +229,36 @@ static int lines_are_compatible(
{
if (a == b) return 0;
if (!a->spans || !b->spans) return 0;
- if (line_span_first(a)->flags.wmode != line_span_first(b)->flags.wmode) {
+ if (s_line_span_first(a)->flags.wmode != s_line_span_first(b)->flags.wmode) {
return 0;
}
- if (matrix_cmp4(
- &line_span_first(a)->ctm,
- &line_span_first(b)->ctm
+ if (extract_matrix_cmp4(
+ &s_line_span_first(a)->ctm,
+ &s_line_span_first(b)->ctm
)) {
if (verbose) {
outf("ctm's differ:");
outf(" %f %f %f %f %f %f",
- line_span_first(a)->ctm.a,
- line_span_first(a)->ctm.b,
- line_span_first(a)->ctm.c,
- line_span_first(a)->ctm.d,
- line_span_first(a)->ctm.e,
- line_span_first(a)->ctm.f
+ s_line_span_first(a)->ctm.a,
+ s_line_span_first(a)->ctm.b,
+ s_line_span_first(a)->ctm.c,
+ s_line_span_first(a)->ctm.d,
+ s_line_span_first(a)->ctm.e,
+ s_line_span_first(a)->ctm.f
);
outf(" %f %f %f %f %f %f",
- line_span_first(b)->ctm.a,
- line_span_first(b)->ctm.b,
- line_span_first(b)->ctm.c,
- line_span_first(b)->ctm.d,
- line_span_first(b)->ctm.e,
- line_span_first(b)->ctm.f
+ s_line_span_first(b)->ctm.a,
+ s_line_span_first(b)->ctm.b,
+ s_line_span_first(b)->ctm.c,
+ s_line_span_first(b)->ctm.d,
+ s_line_span_first(b)->ctm.e,
+ s_line_span_first(b)->ctm.f
);
}
return 0;
}
{
- double angle_b = span_angle(line_span_first(b));
+ double angle_b = span_angle(s_line_span_first(b));
if (angle_b != angle_a) {
outfx("%s:%i: angles differ");
return 0;
@@ -221,6 +268,80 @@ static int lines_are_compatible(
}
+static const unsigned ucs_NONE = ((unsigned) -1);
+
+static int s_span_inside_rects(
+ extract_alloc_t* alloc,
+ span_t* span,
+ rect_t* rects,
+ int rects_num,
+ span_t* o_span
+ )
+/* Returns with <o_span> containing char_t's from <span> that are inside
+rects[], and *span modified to remove any char_t's that we have moved to
+<o_span>.
+
+May return with span->chars_num == 0, in which case the caller must remove the
+span (including freeing .font_name), because lots of code assumes that there
+are no empty spans. */
+{
+ int c;
+ *o_span = *span;
+ extract_strdup(alloc, span->font_name, &o_span->font_name);
+ o_span->chars = NULL;
+ o_span->chars_num = 0;
+ for (c=0; c<span->chars_num; ++c)
+ {
+ /* For now we just look at whether span's (x, y) is within any
+ rects[]. We could instead try to find character's bounding box etc. */
+ char_t* char_ = &span->chars[c];
+ int r;
+ for (r=0; r<rects_num; ++r)
+ {
+ rect_t* rect = &rects[r];
+ if (1
+ && char_->x >= rect->min.x
+ && char_->x < rect->max.x
+ && char_->y >= rect->min.y
+ && char_->y < rect->max.y
+ )
+ {
+ if (extract_span_append_c(alloc, o_span, char_->ucs)) return -1;
+ /* Coverity warns, but o_span must have at least one item. */
+ /* coverity[var_deref_op] */
+ *extract_span_char_last(o_span) = *char_;
+ char_->ucs = ucs_NONE; /* Mark for removal below, so it is not used again. */
+ break;
+ }
+ }
+ }
+
+ /* Remove any char_t's that we've used. */
+ {
+ int cc = 0;
+ for (c=0; c<span->chars_num; ++c)
+ {
+ char_t* char_ = &span->chars[c];
+ if (char_->ucs != ucs_NONE)
+ {
+ span->chars[cc] = span->chars[c];
+ cc += 1;
+ }
+ }
+ /* This might set span->chars_num to zero; our caller needs to remove
+ the span - lots of code assumes that all spans contain at least one
+ character. */
+ span->chars_num = cc;
+ }
+
+ if (o_span->chars_num)
+ {
+ //outf0(" span: %s", extract_span_string(alloc, span));
+ outf("o_span: %s", extract_span_string(alloc, o_span));
+ }
+ return 0;
+}
+
/* Creates representation of span_t's that consists of a list of line_t's, with
each line_t contains pointers to a list of span_t's.
@@ -230,11 +351,16 @@ On entry:
Original value of *o_lines and *o_lines_num are ignored.
<spans> points to array of <spans_num> span_t*'s, each pointing to
- an span_t.
+ a span_t.
On exit:
If we succeed, we return 0, with *o_lines pointing to array of *o_lines_num
- line_t*'s, each pointing to an line_t.
+ line_t*'s, each pointing to a line_t.
+
+ If <rects_num> is zero, each of these line_t's will contain pointers to
+ items in <spans>; otherwise each of the line_t's will contain new spans
+ which should be freed by the caller (spans are not necessarily wholy inside
+ or outside rects[] so we need to create new spams).
Otherwise we return -1 with errno set. *o_lines and *o_lines_num are
undefined.
@@ -242,35 +368,85 @@ On exit:
static int make_lines(
extract_alloc_t* alloc,
span_t** spans,
- int spans_num,
+ int* spans_num,
+ rect_t* rects,
+ int rects_num,
line_t*** o_lines,
int* o_lines_num
)
{
int ret = -1;
- /* Make an line_t for each span. Then we will join some of these
- line_t's together before returning. */
- int lines_num = spans_num;
+ /* Make a line_t for each span. Then we will join some of these line_t's
+ together before returning. */
+ int lines_num = 0;
line_t** lines = NULL;
int a;
int num_compatible;
int num_joins;
- if (extract_malloc(alloc, &lines, sizeof(*lines) * lines_num)) goto end;
-
- /* Ensure we can clean up after error. */
- for (a=0; a<lines_num; ++a) {
- lines[a] = NULL;
- }
- for (a=0; a<lines_num; ++a) {
- if (extract_malloc(alloc, &lines[a], sizeof(line_t))) goto end;
- lines[a]->spans_num = 0;
- if (extract_malloc(alloc, &lines[a]->spans, sizeof(span_t*) * 1)) goto end;
- lines[a]->spans_num = 1;
- lines[a]->spans[0] = spans[a];
- outfx("initial line a=%i: %s", a, line_string(lines[a]));
+ span_t* span = NULL;
+
+ if (rects_num)
+ {
+ /* Make <lines> contain new span_t's and char_t's that are inside rects[]. */
+ for (a=0; a<*spans_num; ++a)
+ {
+ if (spans[a]->chars_num == 0) continue; /* In case used for table, */
+ if (extract_realloc(alloc, &span, sizeof(*span))) goto end;
+ extract_span_init(span);
+ if (s_span_inside_rects(alloc, spans[a], rects, rects_num, span))
+ {
+ goto end;
+ }
+ if (span->chars_num)
+ {
+ if (extract_realloc(alloc, &lines, sizeof(*lines) * (lines_num + 1))) goto end;
+ if (extract_malloc(alloc, &lines[lines_num], sizeof(line_t))) goto end;
+ lines_num += 1;
+ if (extract_malloc(alloc, &lines[lines_num-1]->spans, sizeof(span_t*) * 1)) goto end;
+ lines[lines_num-1]->spans[0] = span;
+ lines[lines_num-1]->spans_num = 1;
+ span = NULL;
+ }
+ else
+ {
+ extract_span_free(alloc, &span);
+ }
+
+ if (!spans[a]->chars_num)
+ {
+ /* All characters in this span are inside table, so remove
+ entire span, otherwise the same characters will end up being
+ output outside the table also. */
+ extract_span_free(alloc, &spans[a]);
+ memmove(&spans[a], &spans[a+1], sizeof(*spans) * ((*spans_num) - (a+1)));
+ *spans_num -= 1;
+ a -= 1;
+ }
+ }
}
+ else
+ {
+ /* Make <lines> be a copy of <spans>. */
+ lines_num = *spans_num;
+ if (extract_malloc(alloc, &lines, sizeof(*lines) * lines_num)) goto end;
+ /* Ensure we can clean up after error. */
+ for (a=0; a<lines_num; ++a) {
+ lines[a] = NULL;
+ }
+ for (a=0; a<lines_num; ++a) {
+ if (extract_malloc(alloc, &lines[a], sizeof(line_t))) goto end;
+ lines[a]->spans_num = 0;
+ if (extract_malloc(alloc, &lines[a]->spans, sizeof(span_t*) * 1)) goto end;
+ lines[a]->spans_num = 1;
+ lines[a]->spans[0] = spans[a];
+ /* Ensure that spans[] can be safely freed now we've moved it into lines[]. */
+ spans[a] = NULL;
+ outfx("initial line a=%i: %s", a, line_string(lines[a]));
+ }
+ }
+
num_compatible = 0;
/* For each line, look for nearest aligned line, and append if found. */
@@ -290,14 +466,14 @@ static int make_lines(
}
if (0 && a < 1) verbose = 1;
- outfx("looking at line_a=%s", line_string2(line_a));
+ outfx("looking at line_a=%s", line_string2(alloc, line_a));
- span_a = line_span_last(line_a);
+ span_a = extract_line_span_last(line_a);
angle_a = span_angle(span_a);
if (verbose) outf("a=%i angle_a=%f ctm=%s: %s",
a,
angle_a * 180/pi,
- matrix_string(&span_a->ctm),
+ extract_matrix_string(&span_a->ctm),
line_string2(alloc, line_a)
);
@@ -310,7 +486,6 @@ static int make_lines(
continue;
}
if (verbose) {
- outf("");
outf("a=%i b=%i: nearest_line_b=%i nearest_adv=%f",
a,
b,
@@ -330,17 +505,17 @@ static int make_lines(
/* Find angle between last glyph of span_a and first glyph of
span_b. This detects whether the lines are lined up with each other
(as opposed to being at the same angle but in different lines). */
- span_t* span_b = line_span_first(line_b);
- double dx = span_char_first(span_b)->x - span_char_last(span_a)->x;
- double dy = span_char_first(span_b)->y - span_char_last(span_a)->y;
+ span_t* span_b = s_line_span_first(line_b);
+ double dx = span_char_first(span_b)->x - extract_span_char_last(span_a)->x;
+ double dy = span_char_first(span_b)->y - extract_span_char_last(span_a)->y;
double angle_a_b = atan2(-dy, dx);
const double angle_tolerance_deg = 1;
if (verbose) {
outf("delta=(%f %f) alast=(%f %f) bfirst=(%f %f): angle_a=%f angle_a_b=%f",
dx,
dy,
- span_char_last(span_a)->x,
- span_char_last(span_a)->y,
+ extract_span_char_last(span_a)->x,
+ extract_span_char_last(span_a)->y,
span_char_first(span_b)->x,
span_char_first(span_b)->y,
angle_a * 180 / pi,
@@ -353,7 +528,7 @@ static int make_lines(
/* Find distance between end of line_a and beginning of line_b. */
double adv = spans_adv(
span_a,
- span_char_last(span_a),
+ extract_span_char_last(span_a),
span_char_first(span_b)
);
if (verbose) outf("nearest_adv=%f. angle_a_b=%f adv=%f",
@@ -370,8 +545,8 @@ static int make_lines(
else {
if (verbose) outf(
"angle beyond tolerance: span_a last=(%f,%f) span_b first=(%f,%f) angle_a_b=%g angle_a=%g span_a.trm{a=%f b=%f}",
- span_char_last(span_a)->x,
- span_char_last(span_a)->y,
+ extract_span_char_last(span_a)->x,
+ extract_span_char_last(span_a)->y,
span_char_first(span_b)->x,
span_char_first(span_b)->y,
angle_a_b * 180 / pi,
@@ -386,24 +561,30 @@ static int make_lines(
if (nearest_line) {
/* line_a and nearest_line are aligned so we can move line_b's
spans on to the end of line_a. */
- span_t* span_b = line_span_first(nearest_line);
+ double average_adv;
+ span_t* span_b = s_line_span_first(nearest_line);
b = nearest_line_b;
if (verbose) outf("found nearest line. a=%i b=%i", a, b);
+ /* Find average advance of the two adjacent spans in the two
+ lines we are considering joining, so that we can decide whether
+ the distance between them is large enough to merit joining with
+ a space character). */
+ average_adv = (
+ (span_adv_total(span_a) + span_adv_total(span_b))
+ /
+ (double) (span_a->chars_num + span_b->chars_num)
+ );
+
+ if (0 && nearest_adv > 5 * average_adv)
+ {
+ continue;
+ }
+
if (1
- && span_char_last(span_a)->ucs != ' '
+ && extract_span_char_last(span_a)->ucs != ' '
&& span_char_first(span_b)->ucs != ' '
) {
- /* Find average advance of the two adjacent spans in the two
- lines we are considering joining, so that we can decide whether
- the distance between them is large enough to merit joining with
- a space character). */
- double average_adv = (
- (span_adv_total(span_a) + span_adv_total(span_b))
- /
- (double) (span_a->chars_num + span_b->chars_num)
- );
-
int insert_space = (nearest_adv > 0.25 * average_adv);
if (insert_space) {
/* Append space to span_a before concatenation. */
@@ -413,8 +594,8 @@ static int make_lines(
nearest_adv,
average_adv
);
- outf(" a: %s", span_string(alloc, span_a));
- outf(" b: %s", span_string(alloc, span_b));
+ outf(" a: %s", extract_span_string(alloc, span_a));
+ outf(" b: %s", extract_span_string(alloc, span_b));
}
if (extract_realloc2(
alloc,
@@ -427,6 +608,13 @@ static int make_lines(
extract_bzero(item, sizeof(*item));
item->ucs = ' ';
item->adv = nearest_adv;
+ /* This is a hack to give our extra space a vaguely useful
+ (x,y) coordinate - this can be used later on when ordering
+ paragraphs. We could try to be more accurate by adding
+ item[-1]'s .adv suitably transformed by .wmode, .ctm and
+ .trm. */
+ item->x = item[-1].x;
+ item->y = item[-1].y;
}
if (verbose) {
@@ -440,14 +628,14 @@ static int make_lines(
"joining line insert_space=%i a=%i (y=%f) to line b=%i (y=%f). nearest_adv=%f average_adv=%f",
insert_space,
a,
- span_char_last(span_a)->y,
+ extract_span_char_last(span_a)->y,
b,
span_char_first(span_b)->y,
nearest_adv,
average_adv
);
- outf("a: %s", span_string(alloc, span_a));
- outf("b: %s", span_string(alloc, span_b));
+ outf("a: %s", extract_span_string(alloc, span_a));
+ outf("b: %s", extract_span_string(alloc, span_b));
}
}
@@ -487,7 +675,7 @@ static int make_lines(
the new extended line_a needs checking again. */
a -= 1;
}
- outfx("new line is:\n %s", line_string2(line_a));
+ outfx("num_joins=%i new line is:\n %s", num_joins, line_string2(line_a));
}
}
@@ -524,7 +712,7 @@ static int make_lines(
ret = 0;
outf("Turned %i spans into %i lines. num_compatible=%i",
- spans_num,
+ *spans_num,
lines_num,
num_compatible
);
@@ -532,9 +720,18 @@ static int make_lines(
end:
if (ret) {
/* Free everything. */
+ extract_span_free(alloc, &span);
if (lines) {
for (a=0; a<lines_num; ++a) {
- if (lines[a]) extract_free(alloc, &lines[a]->spans);
+ if (lines[a])
+ {
+ int s;
+ for (s=0; s<lines[a]->spans_num; ++s)
+ {
+ extract_span_free(alloc, &lines[a]->spans[s]);
+ }
+ extract_free(alloc, &lines[a]->spans);
+ }
extract_free(alloc, &lines[a]);
}
}
@@ -552,7 +749,7 @@ static double line_font_size_max(line_t* line)
for (i=0; i<line->spans_num; ++i) {
span_t* span = line->spans[i];
/* fixme: <size> should be double, which changes some output. */
- double size = matrix_expansion(span->trm);
+ double size = extract_matrix_expansion(span->trm);
if (size > size_max) {
size_max = size;
}
@@ -581,21 +778,35 @@ respectively.
AQB is a right angle. We need to find AQ.
*/
-static double line_distance(
- double ax,
- double ay,
- double bx,
- double by,
- double angle
- )
+static double line_distance_y( double ax, double ay, double bx, double by, double angle)
{
double dx = bx - ax;
double dy = by - ay;
-
return dx * sin(angle) + dy * cos(angle);
}
+/* Returns distance QB in above diagram. */
+static double line_distance_x( double ax, double ay, double bx, double by, double angle)
+{
+ double dx = bx - ax;
+ double dy = by - ay;
+
+ return dx * cos(angle) - dy * sin(angle);
+}
+
+static double line_distance_xp(point_t a, point_t b, double angle)
+{
+ return line_distance_x(a.x, a.y, b.x, b.y, angle);
+}
+
+static int lines_overlap(point_t a_left, point_t a_right, point_t b_left, point_t b_right, double angle)
+{
+ if (line_distance_xp(a_left, b_right, angle) < 0) return 0;
+ if (line_distance_xp(a_right, b_left, angle) >= 0) return 0;
+ return 1;
+}
+
/* A comparison function for use with qsort(), for sorting paragraphs within a
page. */
@@ -606,14 +817,49 @@ static int paragraphs_cmp(const void* a, const void* b)
line_t* a_line = paragraph_line_first(*a_paragraph);
line_t* b_line = paragraph_line_first(*b_paragraph);
- span_t* a_span = line_span_first(a_line);
- span_t* b_span = line_span_first(b_line);
+ span_t* a_span = s_line_span_first(a_line);
+ span_t* b_span = s_line_span_first(b_line);
- /* If ctm matrices differ, always return this diff first. Note that we
- ignore .e and .f because if data is from ghostscript then .e and .f vary
- for each span, and we don't care about these differences. */
- int d = matrix_cmp4(&a_span->ctm, &b_span->ctm);
- if (d) return d;
+ if (0)
+ {
+ double a_angle = span_angle2(a_span);
+ double b_angle = span_angle2(b_span);
+ if (fabs(a_angle - b_angle) > 0.01)
+ {
+ outf0("angles differ: a_angle=%f b_angle=%f", a_angle, b_angle);
+ outf0("a_span: %s", extract_span_string(NULL, a_span));
+ outf0("b_span: %s", extract_span_string(NULL, b_span));
+ if (a_angle - b_angle > 3.14/2) {
+ /* Give up if more than 90 deg. */
+ return 0;
+ }
+ if (a_angle > b_angle) return 1;
+ if (a_angle < b_angle) return -1;
+ return 0;
+ }
+ }
+ if (1)
+ {
+ /* If ctm matrices differ, always return this diff first. Note that we
+ ignore .e and .f because if data is from ghostscript then .e and .f
+ vary for each span, and we don't care about these differences. */
+ int d = extract_matrix_cmp4(&a_span->ctm, &b_span->ctm);
+ if (d)
+ {
+ outf("extract_matrix_cmp4() returned non-zero.");
+ outf("a_span->ctm=%s trm=%s: %s",
+ extract_matrix_string(&a_span->ctm),
+ extract_matrix_string(&a_span->trm),
+ extract_span_string(NULL, a_span)
+ );
+ outf("b_span->ctm=%s trm=%s: %s",
+ extract_matrix_string(&b_span->ctm),
+ extract_matrix_string(&a_span->trm),
+ extract_span_string(NULL, b_span)
+ );
+ return d;
+ }
+ }
{
double a_angle = line_angle(a_line);
@@ -628,7 +874,7 @@ static int paragraphs_cmp(const void* a, const void* b)
double ay = line_item_first(a_line)->y;
double bx = line_item_first(b_line)->x;
double by = line_item_first(b_line)->y;
- double distance = line_distance(ax, ay, bx, by, angle);
+ double distance = line_distance_y(ax, ay, bx, by, angle);
if (distance > 0) return -1;
if (distance < 0) return +1;
}
@@ -669,7 +915,7 @@ static int make_paragraphs(
int num_joins;
paragraph_t** paragraphs = NULL;
- /* Start off with an paragraph_t for each line_t. */
+ /* Start off with a paragraph_t for each line_t. */
int paragraphs_num = lines_num;
if (extract_malloc(alloc, &paragraphs, sizeof(*paragraphs) * paragraphs_num)) goto end;
/* Ensure we can clean up after error when setting up. */
@@ -685,11 +931,12 @@ static int make_paragraphs(
paragraphs[a]->lines[0] = lines[a];
}
+ /* Now join paragraphs together where possible. */
num_joins = 0;
for (a=0; a<paragraphs_num; ++a) {
- paragraph_t* nearest_paragraph;
- int nearest_paragraph_b;
- double nearest_paragraph_distance;
+ paragraph_t* nearest_paragraph = NULL;
+ int nearest_paragraph_b = -1;
+ double nearest_paragraph_distance = -1;
line_t* line_a;
double angle_a;
int verbose;
@@ -702,14 +949,9 @@ static int make_paragraphs(
continue;
}
- nearest_paragraph = NULL;
- nearest_paragraph_b = -1;
- nearest_paragraph_distance = -1;
assert(paragraph_a->lines_num > 0);
-
line_a = paragraph_line_last(paragraph_a);
angle_a = line_angle(line_a);
-
verbose = 0;
/* Look for nearest paragraph_t that could be appended to
@@ -732,7 +974,7 @@ static int make_paragraphs(
double ay = line_item_last(line_a)->y;
double bx = line_item_first(line_b)->x;
double by = line_item_first(line_b)->y;
- double distance = line_distance(ax, ay, bx, by, angle_a);
+ double distance = line_distance_y(ax, ay, bx, by, angle_a);
if (verbose) {
outf(
"angle_a=%f a=(%f %f) b=(%f %f) delta=(%f %f) distance=%f:",
@@ -746,17 +988,39 @@ static int make_paragraphs(
outf(" line_a=%s", line_string2(alloc, line_a));
outf(" line_b=%s", line_string2(alloc, line_b));
}
- if (distance > 0) {
+ if (distance > 0)
+ {
if (nearest_paragraph_distance == -1
- || distance < nearest_paragraph_distance) {
- if (verbose) {
- outf("updating nearest. distance=%f:", distance);
- outf(" line_a=%s", line_string2(alloc, line_a));
- outf(" line_b=%s", line_string2(alloc, line_b));
+ || distance < nearest_paragraph_distance)
+ {
+ int ok = 1;
+ if (0)
+ {
+ /* Check whether lines overlap horizontally. */
+ point_t a_left = char_to_point(line_item_first(line_a));
+ point_t b_left = char_to_point(line_item_first(line_b));
+ point_t a_right = char_to_point(line_item_last(line_a));
+ point_t b_right = char_to_point(line_item_last(line_b));
+
+ if (!lines_overlap(a_left, a_right, b_left, b_right, angle_a))
+ {
+ outf("Not joining lines because not overlapping.");
+ ok = 0;
+ }
+ }
+
+ if (ok)
+ {
+ if (verbose) {
+ outf("updating nearest. distance=%f:", distance);
+ outf(" line_a=%s", line_string2(alloc, line_a));
+ outf(" line_b=%s", line_string2(alloc, line_b));
+ }
+
+ nearest_paragraph_distance = distance;
+ nearest_paragraph_b = b;
+ nearest_paragraph = paragraph_b;
}
- nearest_paragraph_distance = distance;
- nearest_paragraph_b = b;
- nearest_paragraph = paragraph_b;
}
}
}
@@ -787,24 +1051,34 @@ static int make_paragraphs(
outf(" %s", paragraph_string(alloc, paragraph_a));
outf(" %s", paragraph_string(alloc, nearest_paragraph));
outf("paragraph_a ctm=%s",
- matrix_string(&paragraph_a->lines[0]->spans[0]->ctm)
+ extract_matrix_string(&paragraph_a->lines[0]->spans[0]->ctm)
);
outf("paragraph_a trm=%s",
- matrix_string(&paragraph_a->lines[0]->spans[0]->trm)
+ extract_matrix_string(&paragraph_a->lines[0]->spans[0]->trm)
);
}
/* Join these two paragraph_t's. */
- a_span = line_span_last(line_a);
- if (span_char_last(a_span)->ucs == '-') {
+ a_span = extract_line_span_last(line_a);
+ if (extract_span_char_last(a_span)->ucs == '-'
+ || extract_span_char_last(a_span)->ucs == 0x2212 /* unicode dash */
+ )
+ {
/* remove trailing '-' at end of prev line. char_t doesn't
contain any malloc-heap pointers so this doesn't leak. */
a_span->chars_num -= 1;
}
- else {
+ else if (extract_span_char_last(a_span)->ucs == ' ')
+ {
+ }
+ else if (extract_span_char_last(a_span)->ucs == '/')
+ {
+ }
+ else
+ {
/* Insert space before joining adjacent lines. */
char_t* c_prev;
char_t* c;
- if (span_append_c(alloc, line_span_last(line_a), ' ')) goto end;
+ if (extract_span_append_c(alloc, extract_line_span_last(line_a), ' ')) goto end;
c_prev = &a_span->chars[ a_span->chars_num-2];
c = &a_span->chars[ a_span->chars_num-1];
c->x = c_prev->x + c_prev->adv * a_span->ctm.a;
@@ -834,9 +1108,10 @@ static int make_paragraphs(
num_joins += 1;
outfx(
- "have joined paragraph a=%i to snearest_paragraph_b=%i",
+ "have joined paragraph a=%i to nearest_paragraph_b=%i. num_joins=%i.",
a,
- nearest_paragraph_b
+ nearest_paragraph_b,
+ num_joins
);
if (nearest_paragraph_b > a) {
@@ -884,26 +1159,21 @@ static int make_paragraphs(
/* Sort paragraphs so they appear in correct order, using paragraphs_cmp().
*/
- qsort(
- paragraphs,
- paragraphs_num,
- sizeof(paragraph_t*), paragraphs_cmp
- );
+ qsort(paragraphs, paragraphs_num, sizeof(paragraph_t*), paragraphs_cmp);
*o_paragraphs = paragraphs;
*o_paragraphs_num = paragraphs_num;
ret = 0;
- outf("Turned %i lines into %i paragraphs",
- lines_num,
- paragraphs_num
- );
-
+ outf("Turned %i lines into %i paragraphs", lines_num, paragraphs_num);
end:
- if (ret) {
- if (paragraphs) {
- for (a=0; a<paragraphs_num; ++a) {
+ if (ret)
+ {
+ if (paragraphs)
+ {
+ for (a=0; a<paragraphs_num; ++a)
+ {
if (paragraphs[a]) extract_free(alloc, &paragraphs[a]->lines);
extract_free(alloc, &paragraphs[a]);
}
@@ -913,39 +1183,688 @@ static int make_paragraphs(
return ret;
}
-int extract_document_join(extract_alloc_t* alloc, document_t* document)
+static int s_join_page_rects(
+ extract_alloc_t* alloc,
+ extract_page_t* page,
+ rect_t* rects,
+ int rects_num,
+ line_t*** lines,
+ int* lines_num,
+ paragraph_t*** paragraphs,
+ int* paragraphs_num
+ )
+/* Extracts text that is inside any of rects[0..rects_num], or all text if
+rects_num is zero. */
{
- int ret = -1;
+ if (make_lines(
+ alloc,
+ page->spans,
+ &page->spans_num,
+ rects,
+ rects_num,
+ lines,
+ lines_num
+ )) return -1;
+ if (make_paragraphs(
+ alloc,
+ *lines,
+ *lines_num,
+ paragraphs,
+ paragraphs_num
+ )) return -1;
+
+ return 0;
+}
+
+
+static int tablelines_compare_x(const void* a, const void* b)
+/* Compares two tableline_t's rectangles using x as primary key. */
+{
+ const tableline_t* aa = a;
+ const tableline_t* bb = b;
+ if (aa->rect.min.x > bb->rect.min.x) return +1;
+ if (aa->rect.min.x < bb->rect.min.x) return -1;
+ if (aa->rect.min.y > bb->rect.min.y) return +1;
+ if (aa->rect.min.y < bb->rect.min.y) return -1;
+ return 0;
+}
- /* For each page in <document> we join spans into lines and paragraphs. A
- line is a list of spans that are at the same angle and on the same line. A
- paragraph is a list of lines that are at the same angle and close together.
+static int tablelines_compare_y(const void* a, const void* b)
+/* Compares two tableline_t's rectangles using y as primary key. */
+{
+ const tableline_t* aa = a;
+ const tableline_t* bb = b;
+ if (aa->rect.min.y > bb->rect.min.y) return +1;
+ if (aa->rect.min.y < bb->rect.min.y) return -1;
+ if (aa->rect.min.x > bb->rect.min.x) return +1;
+ if (aa->rect.min.x < bb->rect.min.x) return -1;
+ return 0;
+}
+
+static int table_find_y_range(extract_alloc_t* alloc, tablelines_t* all, double y_min, double y_max,
+ tablelines_t* out)
+/* Makes <out> to contain all lines in <all> with y coordinate in the range
+y_min..y_max. */
+{
+ int i;
+ for (i=0; i<all->tablelines_num; ++i)
+ {
+ if (all->tablelines[i].rect.min.y >= y_min && all->tablelines[i].rect.min.y < y_max)
+ {
+ if (extract_realloc(alloc, &out->tablelines, sizeof(*out->tablelines) * (out->tablelines_num + 1))) return -1;
+ out->tablelines[out->tablelines_num] = all->tablelines[i];
+ out->tablelines_num += 1;
+ }
+ else
+ {
+ outf("Excluding line because outside y=%f..%f: %s", y_min, y_max, extract_rect_string(&all->tablelines[i].rect));
+ }
+ }
+ return 0;
+}
+
+
+static int overlap(double a_min, double a_max, double b_min, double b_max)
+/* Returns one if a_min..a_max significantly overlapps b_min..b_max, otherwise
+zero. */
+{
+ double overlap;
+ int ret0;
+ int ret1;
+ assert(a_min < a_max);
+ assert(b_min < b_max);
+ if (b_min < a_min) b_min = a_min;
+ if (b_max > a_max) b_max = a_max;
+ if (b_max < b_min) b_max = b_min;
+ overlap = (b_max - b_min) / (a_max - a_min);
+ ret0 = overlap > 0.2;
+ ret1 = overlap > 0.8;
+ if (ret0 != ret1)
+ {
+ if (0) outf0("warning, unclear overlap=%f: a=%f..%f b=%f..%f", overlap, a_min, a_max, b_min, b_max);
+ }
+ return overlap > 0.8;
+}
+
+void extract_cell_init(cell_t* cell)
+{
+ cell->rect.min.x = 0;
+ cell->rect.min.y = 0;
+ cell->rect.max.x = 0;
+ cell->rect.max.y = 0;
+ cell->above = 0;
+ cell->left = 0;
+ cell->extend_right = 0;
+ cell->extend_down = 0;
+ cell->lines = NULL;
+ cell->lines_num = 0;
+ cell->paragraphs = NULL;
+ cell->paragraphs_num = 0;
+}
+
+
+static int table_find_extend(cell_t** cells, int cells_num_x, int cells_num_y)
+{
+ /* Find cell extensions to right and down by looking at cells' .left and
+ .above flags.
+
+ For example for adjacent cells ABC..., we extend A to include cells BC..
+ until we reach a cell with .left set to one.
+
+ ABCDE
+ FGHIJ
+ KLMNO
+
+ When looking to extend cell A, we only look at cells in the same column or
+ same row, (i.e. in the above example we look at BCDE and FK, and not at
+ GHIJ and LMNO).
+
+ For example if BCDE have no left lines and FK have no above lines, we
+ ignore any lines in GHIJ and LMNO and make A extend to the entire 3x4
+ box. Having found this box, we set .above=0 and .left to 0 in all enclosed
+ cells, which simplifies html table generation code.
*/
- int p;
- for (p=0; p<document->pages_num; ++p) {
- extract_page_t* page = document->pages[p];
- outf("processing page %i: num_spans=%i", p, page->spans_num);
+ int y;
+ for (y=0; y<cells_num_y; ++y)
+ {
+ int x;
+ for (x=0; x<cells_num_x; ++x)
+ {
+ cell_t* cell = cells[y * cells_num_x + x];
+ outf("xy=(%i %i) above=%i left=%i", x, y, cell->above, cell->left);
+ if (cell->left && cell->above)
+ {
+ /* See how far this cell extends to right and down. */
+ int xx;
+ int yy;
+ for (xx=x+1; xx<cells_num_x; ++xx)
+ {
+ if (cells[y * cells_num_x + xx]->left) break;
+ }
+ cell->extend_right = xx - x;
+ cell->rect.max.x = cells[y * cells_num_x + xx-1]->rect.max.x;
+ for (yy=y+1; yy<cells_num_y; ++yy)
+ {
+ if (cells[yy * cells_num_x + x]->above) break;
+ }
+ cell->extend_down = yy - y;
+ cell->rect.max.y = cells[(yy-1) * cells_num_x + x]->rect.max.y;
+
+ /* Clear .above and .left in enclosed cells. */
+ for (xx = x; xx < x + cell->extend_right; ++xx)
+ {
+ int yy;
+ for (yy = y; yy < y + cell->extend_down; ++yy)
+ {
+ cell_t* cell2 = cells[cells_num_x * yy + xx];
+ if ( xx==x && yy==y)
+ {}
+ else
+ {
+ if (xx==x)
+ {
+ cell2->extend_right = cell->extend_right;
+ }
+ cell2->above = 0;
+ /* We set .left to 1 for left-most cells - e.g. F
+ and K in the above diagram; this allows us to
+ generate correct html without lots of recursing
+ looking for extend_down in earlier cells. */
+ cell2->left = (xx == x);
+ outf("xy=(%i %i) xxyy=(%i %i) have set cell2->above=%i left=%i",
+ x, y, xx, yy, cell2->above, cell2->left
+ );
+ }
+ }
+ }
+ }
+ }
+ }
+ return 0;
+}
- if (make_lines(
- alloc,
- page->spans,
- page->spans_num,
- &page->lines,
- &page->lines_num
- )) goto end;
- if (make_paragraphs(
+static int table_find_cells_text(extract_alloc_t* alloc, extract_page_t* page,
+ cell_t** cells, int cells_num_x, int cells_num_y)
+/* Sets each cell to contain the text that is within the cell's boundary. We
+remove any found text from the page. */
+{
+ /* Find text within each cell. We don't attempt to handle images within
+ cells. */
+ int e = -1;
+ int i;
+ int cells_num = cells_num_x * cells_num_y;
+ for (i=0; i<cells_num; ++i)
+ {
+ cell_t* cell = cells[i];
+ if (!cell->above || !cell->left) continue;
+ if (s_join_page_rects(
alloc,
- page->lines,
- page->lines_num,
- &page->paragraphs,
- &page->paragraphs_num
- )) goto end;
+ page,
+ &cell->rect,
+ 1 /*rects_num*/,
+ &cell->lines,
+ &cell->lines_num,
+ &cell->paragraphs,
+ &cell->paragraphs_num
+ )) return -1;
}
+
+ /* Append the table we have found to page->tables[]. */
+ if (extract_realloc(alloc, &page->tables, sizeof(*page->tables) * (page->tables_num + 1))) goto end;
+ if (extract_malloc(alloc, &page->tables[page->tables_num], sizeof(*page->tables[page->tables_num]))) goto end;
+ page->tables[page->tables_num]->pos.x = cells[0]->rect.min.x;
+ page->tables[page->tables_num]->pos.y = cells[0]->rect.min.y;
+ page->tables[page->tables_num]->cells = cells;
+ page->tables[page->tables_num]->cells_num_x = cells_num_x;
+ page->tables[page->tables_num]->cells_num_y = cells_num_y;
+ page->tables_num += 1;
+
+ if (0)
+ {
+ /* For debugging. */
+ int y;
+ outf0("table:\n");
+ for (y=0; y<cells_num_y; ++y)
+ {
+ int x;
+ for (x=0; x<cells_num_x; ++x)
+ {
+ cell_t* cell = cells[cells_num_x * y + x];
+ fprintf(stderr, " %c%c x=%i y=% 3i 3i w=%i h=%i",
+ cell->left ? '|' : ' ',
+ cell->above ? '-' : ' ',
+ x,
+ y,
+ cell->extend_right,
+ cell->extend_down
+ );
+ }
+ fprintf(stderr, "\n");
+ }
+
+ }
+
+ e = 0;
+ end:
+ return e;
+}
- ret = 0;
+static int table_find(extract_alloc_t* alloc, extract_page_t* page, double y_min, double y_max)
+/* Finds single table made from lines whose y coordinates are in the range
+y_min..y_max. */
+{
+ tablelines_t* all_h = &page->tablelines_horizontal;
+ tablelines_t* all_v = &page->tablelines_vertical;
+ int e = -1;
+ int i;
+
+ /* Find subset of vertical and horizontal lines that are within range
+ y_min..y_max, and sort by y coordinate. */
+ tablelines_t tl_h = {NULL, 0};
+ tablelines_t tl_v = {NULL, 0};
+ cell_t** cells = NULL;
+ int cells_num = 0;
+ int cells_num_x = 0;
+ int cells_num_y = 0;
+ int x;
+ int y;
+
+ outf("y=(%f %f)", y_min, y_max);
+
+ if (table_find_y_range(alloc, all_h, y_min, y_max, &tl_h)) goto end;
+ if (table_find_y_range(alloc, all_v, y_min, y_max, &tl_v)) goto end;
+ /* Suppress false coverity warning - qsort() does not dereference null
+ pointer if nmemb is zero. */
+ /* coverity[var_deref_model] */
+ qsort(tl_v.tablelines, tl_v.tablelines_num, sizeof(*tl_v.tablelines), tablelines_compare_x);
+
+ if (0)
+ {
+ /* Show raw lines info. */
+ outf0("all_h->tablelines_num=%i tl_h.tablelines_num=%i", all_h->tablelines_num, tl_h.tablelines_num);
+ for (i=0; i<tl_h.tablelines_num; ++i)
+ {
+ outf0(" %i: %s", i, extract_rect_string(&tl_h.tablelines[i].rect));
+ }
+
+ outf0("all_v->tablelines_num=%i tl_v.tablelines_num=%i", all_v->tablelines_num, tl_v.tablelines_num);
+ for (i=0; i<tl_v.tablelines_num; ++i)
+ {
+ outf0(" %i: %s", i, extract_rect_string(&tl_v.tablelines[i].rect));
+ }
+ }
+ /* Find the cells defined by the vertical and horizontal lines.
+
+ It seems that lines can be disjoint, e.g. what looks like a single
+ horizontal line could be made up of multiple lines all with the same
+ y coordinate, so we use i_next and j_next to skip these sublines when
+ iterating. */
+ cells = NULL;
+ cells_num = 0;
+ cells_num_x = 0;
+ cells_num_y = 0;
+ for (i=0; i<tl_h.tablelines_num; )
+ {
+ int i_next;
+ int j;
+ for (i_next=i+1; i_next<tl_h.tablelines_num; ++i_next)
+ {
+ if (tl_h.tablelines[i_next].rect.min.y - tl_h.tablelines[i].rect.min.y > 5) break;
+ }
+ if (i_next == tl_h.tablelines_num)
+ {
+ /* Ignore last row of points - cells need another row below. */
+ break;
+ }
+ cells_num_y += 1;
+
+ for (j=0; j<tl_v.tablelines_num; )
+ {
+ int j_next;
+ int ii;
+ int jj;
+ cell_t* cell;
+
+ for (j_next = j+1; j_next<tl_v.tablelines_num; ++j_next)
+ {
+ if (tl_v.tablelines[j_next].rect.min.x - tl_v.tablelines[j].rect.min.x > 0.5) break;
+ }
+ outf("i=%i j=%i tl_v.tablelines[j].rect=%s", i, j, extract_rect_string(&tl_v.tablelines[j].rect));
+
+ if (j_next == tl_v.tablelines_num) break;
+
+ if (extract_realloc(alloc, &cells, sizeof(*cells) * (cells_num+1))) goto end;
+ if (extract_malloc(alloc, &cells[cells_num], sizeof(*cells[cells_num]))) goto end;
+ cell = cells[cells_num];
+ cells_num += 1;
+ if (i==0) cells_num_x += 1;
+
+ cell->rect.min.x = tl_v.tablelines[j].rect.min.x;
+ cell->rect.min.y = tl_h.tablelines[i].rect.min.y;
+ cell->rect.max.x = (j_next < tl_v.tablelines_num) ? tl_v.tablelines[j_next].rect.min.x : cell->rect.min.x;
+ cell->rect.max.y = (i_next < tl_h.tablelines_num) ? tl_h.tablelines[i_next].rect.min.y : cell->rect.min.y;
+ cell->above = (i==0);
+ cell->left = (j==0);
+ cell->extend_right = 1;
+ cell->extend_down = 1;
+ cell->lines = NULL;
+ cell->lines_num = 0;
+ cell->paragraphs = NULL;
+ cell->paragraphs_num = 0;
+
+ /* Set cell->above if there is a horizontal line above the cell. */
+ outf("Looking to set above for i=%i j=%i rect=%s", i, j, extract_rect_string(&cell->rect));
+ for (ii = i; ii < i_next; ++ii)
+ {
+ tableline_t* h = &tl_h.tablelines[ii];
+ if (overlap(
+ cell->rect.min.x,
+ cell->rect.max.x,
+ h->rect.min.x,
+ h->rect.max.x
+ ))
+ {
+ cell->above = 1;
+ break;
+ }
+ }
+
+ /* Set cell->left if there is a vertical line to the left of the cell. */
+ for (jj = j; jj < j_next; ++jj)
+ {
+ tableline_t* v = &tl_v.tablelines[jj];
+ if (overlap(
+ cell->rect.min.y,
+ cell->rect.max.y,
+ v->rect.min.y,
+ v->rect.max.y
+ ))
+ {
+ cell->left = 1;
+ break;
+ }
+ }
+
+ j = j_next;
+ }
+
+ i = i_next;
+ }
+
+ assert(cells_num == cells_num_x * cells_num_y);
+
+ /* Remove cols and rows where no cells have .above and .left - these
+ will not appear. It also avoids spurious empty columns when table uses
+ closely-spaced double lines as separators. */
+ for (x=0; x<cells_num_x; ++x)
+ {
+ int has_cells = 0;
+ for (y=0; y<cells_num_y; ++y)
+ {
+ cell_t* cell = cells[y * cells_num_x + x];
+ if (cell->above && cell->left)
+ {
+ has_cells = 1;
+ break;
+ }
+ }
+ if (!has_cells)
+ {
+ /* Remove column <x>. */
+ int j = 0;
+ outf("Removing column %i. cells_num=%i cells_num_x=%i cells_num_y=%i", x, cells_num, cells_num_x, cells_num_y);
+ for (i=0; i<cells_num; ++i)
+ {
+ if (i % cells_num_x == x)
+ {
+ extract_cell_free(alloc, &cells[i]);
+ continue;
+ }
+ cells[j] = cells[i];
+ j += 1;
+ }
+ cells_num -= cells_num_y;
+ cells_num_x -= 1;
+ }
+ }
+
+ if (cells_num == 0)
+ {
+ e = 0;
+ goto end;
+ }
+
+ if (table_find_extend(cells, cells_num_x, cells_num_y)) goto end;
+
+ if (table_find_cells_text(alloc, page, cells, cells_num_x, cells_num_y)) goto end;
+
+ e = 0;
end:
+ extract_free(alloc, &tl_h.tablelines);
+ extract_free(alloc, &tl_v.tablelines);
+ if (e)
+ {
+ for (i=0; i<cells_num; ++i)
+ {
+ extract_cell_free(alloc, &cells[i]);
+ }
+ extract_free(alloc, &cells);
+ }
+ return e;
+}
- return ret;
+
+static int extract_page_tables_find_lines(
+ extract_alloc_t* alloc,
+ extract_page_t* page
+ )
+/* Finds tables in <page> by looking for lines in page->tablelines_horizontal
+and page->tablelines_vertical that look like table dividers.
+
+Any text found inside tables is removed from page->spans[].
+*/
+{
+ double miny;
+ double maxy;
+ double margin = 1;
+ int iv;
+ int ih;
+ outf("page->tablelines_horizontal.tablelines_num=%i", page->tablelines_horizontal.tablelines_num);
+ outf("page->tablelines_vertical.tablelines_num=%i", page->tablelines_vertical.tablelines_num);
+
+ /* Sort all lines by y coordinate. */
+ qsort(
+ page->tablelines_horizontal.tablelines,
+ page->tablelines_horizontal.tablelines_num,
+ sizeof(*page->tablelines_horizontal.tablelines),
+ tablelines_compare_y
+ );
+ qsort(
+ page->tablelines_vertical.tablelines,
+ page->tablelines_vertical.tablelines_num,
+ sizeof(*page->tablelines_vertical.tablelines),
+ tablelines_compare_y
+ );
+
+ if (0)
+ {
+ /* Show info about lines. */
+ int i;
+ outf0("tablelines_horizontal:");
+ for (i=0; i<page->tablelines_horizontal.tablelines_num; ++i)
+ {
+ outf0(" color=%f: %s",
+ page->tablelines_horizontal.tablelines[i].color,
+ extract_rect_string(&page->tablelines_horizontal.tablelines[i].rect)
+ );
+ }
+ outf0("tablelines_vertical:");
+ for (i=0; i<page->tablelines_vertical.tablelines_num; ++i)
+ {
+ outf0(" color=%f: %s",
+ page->tablelines_vertical.tablelines[i].color,
+ extract_rect_string(&page->tablelines_vertical.tablelines[i].rect)
+ );
+ }
+ }
+
+ /* Look for completely separate vertical regions that define different
+ tables, by looking for vertical gaps between the rects of each
+ horizontal/vertical line. */
+ maxy = -DBL_MAX;
+ miny = -DBL_MAX;
+ iv = 0;
+ ih = 0;
+ for(;;)
+ {
+ tableline_t* tlv = NULL;
+ tableline_t* tlh = NULL;
+ tableline_t* tl;
+ if (iv < page->tablelines_vertical.tablelines_num)
+ {
+ tlv = &page->tablelines_vertical.tablelines[iv];
+ }
+ /* We only consider horizontal lines that are not white. This is a bit
+ of a cheat to get the right behaviour with twotables_2.pdf. */
+ while (ih < page->tablelines_horizontal.tablelines_num)
+ {
+ if (page->tablelines_horizontal.tablelines[ih].color == 1)
+ {
+ /* Ignore white horizontal lines. */
+ ++ih;
+ }
+ else
+ {
+ tlh = &page->tablelines_horizontal.tablelines[ih];
+ break;
+ }
+ }
+ if (tlv && tlh)
+ {
+ tl = (tlv->rect.min.y < tlh->rect.min.y) ? tlv : tlh;
+ }
+ else if (tlv) tl = tlv;
+ else if (tlh) tl = tlh;
+ else break;
+ if (tl == tlv) iv += 1;
+ else ih += 1;
+ if (tl->rect.min.y > maxy + margin)
+ {
+ if (maxy > miny)
+ {
+ outf("New table. maxy=%f miny=%f", maxy, miny);
+ /* Find table. */
+ table_find(alloc, page, miny - margin, maxy + margin);
+ }
+ miny = tl->rect.min.y;
+ }
+ if (tl->rect.max.y > maxy) maxy = tl->rect.max.y;
+ }
+
+ /* Find last table. */
+ table_find(alloc, page, miny - margin, maxy + margin);
+
+ return 0;
+}
+
+
+static void show_tables(table_t** tables, int tables_num)
+/* For debugging only. */
+{
+ int i;
+ outf0("tables_num=%i", tables_num);
+ for (i=0; i<tables_num; ++i)
+ {
+ table_t* table = tables[i];
+ int y;
+ outf0("table %i: cells_num_y=%i cells_num_x=%i", i, table->cells_num_y, table->cells_num_x);
+ for (y=0; y<table->cells_num_y; ++y)
+ {
+ int x;
+ for (x=0; x<table->cells_num_x; ++x)
+ {
+ cell_t* cell = table->cells[table->cells_num_x * y + x];
+ outf0("cell: y=% 3i x=% 3i: left=%i above=%i rect=%s",
+ y, x, cell->left, cell->above, extract_rect_string(&cell->rect));
+ }
+ }
+ }
+}
+
+static int extract_page_tables_find(
+ extract_alloc_t* alloc,
+ extract_page_t* page
+ )
+/* Find tables in <page>.
+
+At the moment this only calls extract_page_tables_find_lines(), but in future
+will call other functions that find tables in different ways, e.g. by analysing
+an image of a page, or looking for blocks of whitespace in between chunks of
+text. */
+{
+ if (extract_page_tables_find_lines(alloc, page)) return -1;
+
+ if (0)
+ {
+ outf0("=== tables from extract_page_tables_find_lines():");
+ show_tables(page->tables, page->tables_num);
+ }
+
+ return 0;
+}
+
+static int extract_document_join_page(
+ extract_alloc_t* alloc,
+ extract_page_t* page
+ )
+/* Finds tables and paragraphs on <page>. */
+{
+ /* Find tables on this page first. This will remove text that is within
+ tables from page->spans, so that text doesn't appearing more than once in
+ the final output. */
+ if (extract_page_tables_find(alloc, page)) return -1;
+
+ /* Now join remaining spans into lines and paragraphs. */
+ if (s_join_page_rects(
+ alloc,
+ page,
+ NULL /*rects*/,
+ 0 /*rects_num*/,
+ &page->lines,
+ &page->lines_num,
+ &page->paragraphs,
+ &page->paragraphs_num
+ ))
+ {
+ outf0("s_join_page_rects failed. page->spans_num=%i page->lines_num=%i page->paragraphs_num=%i",
+ page->spans_num,
+ page->lines_num,
+ page->paragraphs_num
+ );
+ return -1;
+ }
+
+ return 0;
+}
+
+
+int extract_document_join(extract_alloc_t* alloc, document_t* document)
+{
+ /* For each page in <document> we find tables and join spans into lines and paragraphs.
+
+ A line is a list of spans that are at the same angle and on the same
+ line. A paragraph is a list of lines that are at the same angle and close
+ together.
+ */
+ int p;
+ for (p=0; p<document->pages_num; ++p) {
+ extract_page_t* page = document->pages[p];
+
+ outf("processing page %i: num_spans=%i", p, page->spans_num);
+ if (extract_document_join_page(alloc, page)) return -1;
+ }
+
+ return 0;
}
diff --git a/extract/src/mem.c b/extract/src/mem.c
index 83b5032c..1c3c96e6 100644
--- a/extract/src/mem.c
+++ b/extract/src/mem.c
@@ -19,16 +19,26 @@ void extract_bzero(void *b, size_t len)
int extract_vasprintf(extract_alloc_t* alloc, char** out, const char* format, va_list va)
{
int n;
- int n2;
+ int ret;
va_list va2;
va_copy(va2, va);
n = vsnprintf(NULL, 0, format, va);
- if (n < 0) return n;
- if (extract_malloc(alloc, out, n + 1)) return -1;
- n2 = vsnprintf(*out, n + 1, format, va2);
+ if (n < 0)
+ {
+ ret = n;
+ goto end;
+ }
+ if (extract_malloc(alloc, out, n + 1))
+ {
+ ret = -1;
+ goto end;
+ }
+ vsnprintf(*out, n + 1, format, va2);
+ ret = 0;
+
+ end:
va_end(va2);
- assert(n2 == n);
- return n2;
+ return ret;
}
diff --git a/extract/src/mem.h b/extract/src/mem.h
index ffdcb049..2611b04f 100644
--- a/extract/src/mem.h
+++ b/extract/src/mem.h
@@ -8,8 +8,17 @@
void extract_bzero(void *b, size_t len);
-int extract_vasprintf(extract_alloc_t* alloc, char** out, const char* format, va_list va);
-int extract_asprintf(extract_alloc_t* alloc, char** out, const char* format, ...);
+int extract_vasprintf(extract_alloc_t* alloc, char** out, const char* format, va_list va)
+ #ifdef __GNUC__
+ __attribute__ ((format (printf, 3, 0)))
+ #endif
+ ;
+
+int extract_asprintf(extract_alloc_t* alloc, char** out, const char* format, ...)
+ #ifdef __GNUC__
+ __attribute__ ((format (printf, 3, 4)))
+ #endif
+ ;
int extract_strdup(extract_alloc_t* alloc, const char* s, char** o_out);
diff --git a/extract/src/memento.py b/extract/src/memento.py
index 987cd4fd..55171e39 100755
--- a/extract/src/memento.py
+++ b/extract/src/memento.py
@@ -3,20 +3,29 @@
'''
Post-processor for Memento.
+Usage:
+ memento.py <args> [<command> ...]
+
Args:
-q <quiet>
Controls how often we output 'Memory squeezing @ ...' lines. E.g. '-q
10' outputs for multiples of 10.
+
+If <command> is specified we run it and look at the output. Otherwise we assume
+that Memento output is available on our stdin.
'''
import os
import re
+import subprocess
import sys
def main():
quiet = 1
+ quiet_next = 0
out_raw = None
+ command = None
args = iter(sys.argv[1:])
while 1:
try:
@@ -29,15 +38,32 @@ def main():
out_raw = open(next(args), 'w')
elif arg == '-q':
quiet = int(next(args))
- else:
+ elif arg.startswith('-'):
raise Exception(f'unrecognised arg: {arg}')
+ else:
+ command = arg
+ for a in args:
+ command += f' {a}'
+
+ if command:
+ print(f'Running: {command}')
+ child = subprocess.Popen(
+ command,
+ stdout=subprocess.PIPE,
+ stderr=subprocess.STDOUT,
+ shell=True,
+ text=True,
+ )
+ stdin = child.stdout
+ else:
+ stdin = sys.stdin
openbsd = os.uname()[0] == 'OpenBSD'
n = None
segv = 0
leaks = 0
lines = []
- for line in sys.stdin:
+ for line in stdin:
if out_raw:
out_raw.write(line)
m = re.match('^Memory squeezing @ ([0-9]+)( complete)?', line)
@@ -45,7 +71,7 @@ def main():
if not m.group(2):
# Start of squeeze.
- if not openbsd:
+ if 0 and not openbsd:
# Looks like memento's forked processes might terminate
# before they get to output the 'Memory squeezing @ <N>
# complete' line.
@@ -53,9 +79,10 @@ def main():
assert n is None, f'n={n} line={line!r}'
n = int(m.group(1))
- if n % quiet == 0:
- sys.stdout.write(line)
+ if n >= quiet_next:
+ sys.stdout.write(f'quiet_next={quiet_next!r} n={n!r}: {line}')
sys.stdout.flush()
+ quiet_next = (n + quiet) // quiet * quiet
else:
# End of squeeze.
assert n == int(m.group(1))
@@ -66,6 +93,8 @@ def main():
if l.endswith('\n'):
l = l[:-1]
print(f' {l}')
+ if command:
+ print(f'Examine with: MEMENTO_FAILAT={n} {command}')
lines = []
segv = 0
leaks = 0
diff --git a/extract/src/misc-test.c b/extract/src/misc-test.c
index 58b098ff..5e658e8f 100644
--- a/extract/src/misc-test.c
+++ b/extract/src/misc-test.c
@@ -35,6 +35,15 @@ static void s_check(
if (!ok) s_num_fails += 1;
}
+static void s_check_e( int e, const char* text)
+{
+ if (e)
+ {
+ s_num_fails += 1;
+ printf( "Error: e=%i: %s\n", e, text);
+ }
+}
+
static void s_check_int(const char* text, int value_expected, int expected_errno)
{
int value;
@@ -59,6 +68,53 @@ static void s_check_uint(const char* text, unsigned expected_value, int expected
return;
}
+static void s_check_xml_parse()
+{
+ int e;
+ extract_buffer_t* buffer;
+ extract_xml_tag_t tag;
+ unsigned i;
+ const char* texts[] = {
+ "<foo a=1>text</foo>",
+ "< >",
+ "<foo bar=>",
+ "< bar=>",
+ "< =>",
+ };
+
+ extract_xml_tag_init( &tag);
+
+ for (i=0; i<sizeof(texts) / sizeof(texts[0]); ++i)
+ {
+ const char* text = texts[i];
+ printf("testing extract_xml_pparse_*(): %s\n", text);
+ e = extract_buffer_open_simple(
+ NULL /*alloc*/,
+ text,
+ strlen(text),
+ NULL /*handle*/,
+ NULL /*fn_close*/,
+ &buffer
+ );
+ s_check_e( e, "extract_buffer_open_simple()");
+ e = extract_xml_pparse_init( NULL /*alloc*/, buffer, NULL /*first_line*/);
+ s_check_e( e, "extract_xml_pparse_init()");
+
+ e = extract_xml_pparse_next( buffer, &tag);
+ s_check_e( e, "extract_xml_pparse_next()");
+ s_check_e( tag.name ? 0 : 1, "tag.name is not null");
+
+ {
+ int j;
+ for (j=0; j<tag.attributes_num; ++j)
+ {
+ s_check_e( tag.attributes[j].name ? 0 : 1, "attribute is non-null");
+ s_check_e( tag.attributes[j].value ? 0 : 1, "attribute is non-null");
+ }
+ }
+ }
+}
+
int main(void)
{
printf("testing extract_xml_str_to_int():\n");
@@ -73,6 +129,8 @@ int main(void)
s_check_uint("-20b", 0, EINVAL);
s_check_uint("123456789123", 0, ERANGE);
+ s_check_xml_parse();
+
printf("s_num_fails=%i\n", s_num_fails);
if (s_num_fails) {
diff --git a/extract/src/odt.c b/extract/src/odt.c
index bacb362d..9e369078 100644
--- a/extract/src/odt.c
+++ b/extract/src/odt.c
@@ -21,6 +21,7 @@ odt_paragraph_finish(). */
#include <assert.h>
#include <errno.h>
+#include <float.h>
#include <math.h>
#include <stdlib.h>
#include <stdio.h>
@@ -29,17 +30,16 @@ odt_paragraph_finish(). */
#include <sys/stat.h>
-static int extract_odt_paragraph_start(extract_alloc_t* alloc, extract_astring_t* content)
+static int s_odt_paragraph_start(extract_alloc_t* alloc, extract_astring_t* content)
{
return extract_astring_cat(alloc, content, "\n\n<text:p>");
}
-static int extract_odt_paragraph_finish(extract_alloc_t* alloc, extract_astring_t* content)
+static int s_odt_paragraph_finish(extract_alloc_t* alloc, extract_astring_t* content)
{
return extract_astring_cat(alloc, content, "</text:p>");
}
-
/* ODT doesn't seem to support ad-hoc inline font specifications; instead
we have to define a style at the start of the content.xml file. So when
writing content we insert a style name and add the required styles to a
@@ -48,10 +48,7 @@ extract_odt_styles_t struct. */
struct extract_odt_style_t
{
int id; /* A unique id for this style. */
- char* font_name;
- double font_size;
- int font_bold;
- int font_italic;
+ font_t font;
};
struct extract_odt_styles_t
@@ -61,41 +58,47 @@ struct extract_odt_styles_t
int styles_num;
};
-static int extract_odt_style_compare(extract_odt_style_t* a, extract_odt_style_t*b)
+static int s_odt_style_compare(extract_odt_style_t* a, extract_odt_style_t*b)
{
int d;
double dd;
- if ((d = strcmp(a->font_name, b->font_name))) return d;
- if ((dd = a->font_size - b->font_size) != 0.0) return (dd > 0.0) ? 1 : -1;
- if ((d = a->font_bold - b->font_bold)) return d;
- if ((d = a->font_italic - b->font_italic)) return d;
+ if ((d = strcmp(a->font.name, b->font.name))) return d;
+ if ((dd = a->font.size - b->font.size) != 0.0) return (dd > 0.0) ? 1 : -1;
+ if ((d = a->font.bold - b->font.bold)) return d;
+ if ((d = a->font.italic - b->font.italic)) return d;
return 0;
}
-static int extract_odt_style_append_definition(extract_alloc_t* alloc, extract_odt_style_t* style, extract_astring_t* text)
+static int s_odt_style_append_definition(extract_alloc_t* alloc, extract_odt_style_t* style, extract_astring_t* text)
{
- const char* font_name = style->font_name;
+ const char* font_name = style->font.name;
/* This improves output e.g. for zlib.3.pdf, but clearly a hack. */
if (0 && strstr(font_name, "Helvetica"))
{
font_name = "Liberation Sans";
}
- outf("style->font_name=%s font_name=%s", style->font_name, font_name);
+ outf("style->font_name=%s font_name=%s", style->font.name, font_name);
if (extract_astring_catf(alloc, text, "<style:style style:name=\"T%i\" style:family=\"text\">", style->id)) return -1;
if (extract_astring_catf(alloc, text, "<style:text-properties style:font-name=\"%s\"", font_name)) return -1;
- if (extract_astring_catf(alloc, text, " fo:font-size=\"%.2fpt\"", style->font_size)) return -1;
- if (extract_astring_catf(alloc, text, " fo:font-weight=\"%s\"", style->font_bold ? "bold" : "normal")) return -1;
- if (extract_astring_catf(alloc, text, " fo:font-style=\"%s\"", style->font_italic ? "italic" : "normal")) return -1;
+ if (extract_astring_catf(alloc, text, " fo:font-size=\"%.2fpt\"", style->font.size)) return -1;
+ if (extract_astring_catf(alloc, text, " fo:font-weight=\"%s\"", style->font.bold ? "bold" : "normal")) return -1;
+ if (extract_astring_catf(alloc, text, " fo:font-style=\"%s\"", style->font.italic ? "italic" : "normal")) return -1;
if (extract_astring_cat(alloc, text, " /></style:style>")) return -1;
return 0;
}
void extract_odt_styles_free(extract_alloc_t* alloc, extract_odt_styles_t* styles)
{
+ int i;
+ for (i=0; i<styles->styles_num; ++i)
+ {
+ extract_odt_style_t* style = &styles->styles[i];
+ extract_free(alloc, &style->font.name);
+ }
extract_free(alloc, &styles->styles);
}
-static int extract_odt_styles_definitions(
+static int s_odt_styles_definitions(
extract_alloc_t* alloc,
extract_odt_styles_t* styles,
extract_astring_t* out
@@ -105,7 +108,7 @@ static int extract_odt_styles_definitions(
if (extract_astring_cat(alloc, out, "<office:automatic-styles>")) return -1;
for (i=0; i<styles->styles_num; ++i)
{
- if (extract_odt_style_append_definition(alloc, &styles->styles[i], out)) return -1;
+ if (s_odt_style_append_definition(alloc, &styles->styles[i], out)) return -1;
}
extract_astring_cat(alloc, out, "<style:style style:name=\"gr1\" style:family=\"graphic\">\n");
extract_astring_cat(alloc, out, "<style:graphic-properties"
@@ -159,25 +162,22 @@ static int extract_odt_styles_definitions(
return 0;
}
-static int styles_add(
+static int s_odt_styles_add(
extract_alloc_t* alloc,
extract_odt_styles_t* styles,
- const char* font_name,
- double font_size,
- int font_bold,
- int font_italic,
+ font_t* font,
extract_odt_style_t** o_style
)
/* Adds specified style to <styles> if not already present. Sets *o_style to
point to the style_t within <styles>. */
{
- extract_odt_style_t style = {0 /*id*/, (char*) font_name, font_size, font_bold, font_italic};
+ extract_odt_style_t style = {0 /*id*/, *font};
int i;
/* We keep styles->styles[] sorted; todo: use bsearch or similar when
searching. */
for (i=0; i<styles->styles_num; ++i)
{
- int d = extract_odt_style_compare(&style, &styles->styles[i]);
+ int d = s_odt_style_compare(&style, &styles->styles[i]);
if (d == 0)
{
*o_style = &styles->styles[i];
@@ -190,92 +190,79 @@ point to the style_t within <styles>. */
memmove(&styles->styles[i+1], &styles->styles[i], sizeof(styles->styles[0]) * (styles->styles_num - i));
styles->styles_num += 1;
styles->styles[i].id = styles->styles_num + 10; /* Leave space for template's built-in styles. */
- if (extract_strdup(alloc, font_name, &styles->styles[i].font_name)) return -1;
- styles->styles[i].font_size = font_size;
- styles->styles[i].font_bold = font_bold;
- styles->styles[i].font_italic = font_italic;
+ if (extract_strdup(alloc, font->name, &styles->styles[i].font.name)) return -1;
+ styles->styles[i].font.size = font->size;
+ styles->styles[i].font.bold = font->bold;
+ styles->styles[i].font.italic = font->italic;
*o_style = &styles->styles[i];
return 0;
}
static int extract_odt_run_start(
- extract_alloc_t* alloc,
- extract_astring_t* content,
- extract_odt_styles_t* styles,
- const char* font_name,
- double font_size,
- int bold,
- int italic
+ extract_alloc_t* alloc,
+ extract_astring_t* content,
+ extract_odt_styles_t* styles,
+ content_state_t* content_state
)
-/* Starts a new run. Caller must ensure that extract_odt_run_finish() was
+/* Starts a new run. Caller must ensure that s_odt_run_finish() was
called to terminate any previous run. */
{
extract_odt_style_t* style;
- if (styles_add(alloc, styles, font_name, font_size, bold, italic, &style)) return -1;
+ if (s_odt_styles_add(
+ alloc,
+ styles,
+ &content_state->font,
+ &style
+ )) return -1;
if (extract_astring_catf(alloc, content, "<text:span text:style-name=\"T%i\">", style->id)) return -1;
return 0;
}
-static int extract_odt_run_finish(extract_alloc_t* alloc, extract_astring_t* content)
+static int s_odt_run_finish(extract_alloc_t* alloc, content_state_t* content_state, extract_astring_t* content)
{
+ if (content_state) content_state->font.name = NULL;
return extract_astring_cat(alloc, content, "</text:span>");
}
-static int extract_odt_paragraph_empty(extract_alloc_t* alloc, extract_astring_t* content, extract_odt_styles_t* styles)
+static int s_odt_append_empty_paragraph(extract_alloc_t* alloc, extract_astring_t* content, extract_odt_styles_t* styles)
/* Append an empty paragraph to *content. */
{
int e = -1;
- if (extract_odt_paragraph_start(alloc, content)) goto end;
+ static char fontname[] = "OpenSans";
+ content_state_t content_state = {0};
+ if (s_odt_paragraph_start(alloc, content)) goto end;
/* [This comment is from docx, haven't checked odt.] It seems like our
- choice of font size here doesn't make any difference to the ammount of
+ choice of font size here doesn't make any difference to the amount of
vertical space, unless we include a non-space character. Presumably
something to do with the styles in the template document. */
- if (extract_odt_run_start(
- alloc,
- content,
- styles,
- "OpenSans",
- 10 /*font_size*/,
- 0 /*font_bold*/,
- 0 /*font_italic*/
- )) goto end;
+ content_state.font.name = fontname;
+ content_state.font.size = 10;
+ content_state.font.bold = 0;
+ content_state.font.italic = 0;
+ if (extract_odt_run_start(alloc, content, styles, &content_state)) goto end;
//docx_char_append_string(content, "&#160;"); /* &#160; is non-break space. */
- if (extract_odt_run_finish(alloc, content)) goto end;
- if (extract_odt_paragraph_finish(alloc, content)) goto end;
+ if (s_odt_run_finish(alloc, NULL /*content_state*/, content)) goto end;
+ if (s_odt_paragraph_finish(alloc, content)) goto end;
e = 0;
end:
return e;
}
-typedef struct
-{
- const char* font_name;
- double font_size;
- int font_bold;
- int font_italic;
- matrix_t* ctm_prev;
- /* todo: add extract_odt_styles_t member? */
-} content_state_t;
-/* Used to keep track of font information when writing paragraphs of odt
-content, e.g. so we know whether a font has changed so need to start a new odt
-span. */
-
-
-static int extract_document_to_odt_content_paragraph(
+static int s_document_to_odt_content_paragraph(
extract_alloc_t* alloc,
- content_state_t* state,
+ content_state_t* content_state,
paragraph_t* paragraph,
extract_astring_t* content,
extract_odt_styles_t* styles
)
-/* Append odt xml for <paragraph> to <content>. Updates *state if we change
-font. */
+/* Append odt xml for <paragraph> to <content>. Updates *content_state if we
+change font. */
{
int e = -1;
int l;
- if (extract_odt_paragraph_start(alloc, content)) goto end;
+ if (s_odt_paragraph_start(alloc, content)) goto end;
for (l=0; l<paragraph->lines_num; ++l)
{
@@ -286,50 +273,41 @@ font. */
int si;
span_t* span = line->spans[s];
double font_size_new;
- state->ctm_prev = &span->ctm;
+ content_state->ctm_prev = &span->ctm;
font_size_new = extract_matrices_to_font_size(&span->ctm, &span->trm);
- if (!state->font_name
- || strcmp(span->font_name, state->font_name)
- || span->flags.font_bold != state->font_bold
- || span->flags.font_italic != state->font_italic
- || font_size_new != state->font_size
+ if (!content_state->font.name
+ || strcmp(span->font_name, content_state->font.name)
+ || span->flags.font_bold != content_state->font.bold
+ || span->flags.font_italic != content_state->font.italic
+ || font_size_new != content_state->font.size
)
{
- if (state->font_name)
+ if (content_state->font.name)
{
- if (extract_odt_run_finish(alloc, content)) goto end;
+ if (s_odt_run_finish(alloc, content_state, content)) goto end;
}
- state->font_name = span->font_name;
- state->font_bold = span->flags.font_bold;
- state->font_italic = span->flags.font_italic;
- state->font_size = font_size_new;
- if (extract_odt_run_start(
- alloc,
- content,
- styles,
- state->font_name,
- state->font_size,
- state->font_bold,
- state->font_italic
- )) goto end;
+ content_state->font.name = span->font_name;
+ content_state->font.bold = span->flags.font_bold;
+ content_state->font.italic = span->flags.font_italic;
+ content_state->font.size = font_size_new;
+ if (extract_odt_run_start( alloc, content, styles, content_state)) goto end;
}
for (si=0; si<span->chars_num; ++si)
{
char_t* char_ = &span->chars[si];
int c = char_->ucs;
- if (extract_astring_cat_xmlc(alloc, content, c)) goto end;
+ if (extract_astring_catc_unicode_xml(alloc, content, c)) goto end;
}
/* Remove any trailing '-' at end of line. */
- if (astring_char_truncate_if(content, '-')) goto end;
+ if (extract_astring_char_truncate_if(content, '-')) goto end;
}
}
- if (state->font_name)
+ if (content_state->font.name)
{
- if (extract_odt_run_finish(alloc, content)) goto end;
- state->font_name = NULL;
+ if (s_odt_run_finish(alloc, content_state, content)) goto end;
}
- if (extract_odt_paragraph_finish(alloc, content)) goto end;
+ if (s_odt_paragraph_finish(alloc, content)) goto end;
e = 0;
@@ -337,7 +315,7 @@ font. */
return e;
}
-static int extract_document_append_image(
+static int s_odt_append_image(
extract_alloc_t* alloc,
extract_astring_t* content,
image_t* image
@@ -362,7 +340,7 @@ static int extract_document_append_image(
}
-static int extract_document_output_rotated_paragraphs(
+static int s_odt_output_rotated_paragraphs(
extract_alloc_t* alloc,
extract_page_t* page,
int paragraph_begin,
@@ -375,14 +353,14 @@ static int extract_document_output_rotated_paragraphs(
int text_box_id,
extract_astring_t* content,
extract_odt_styles_t* styles,
- content_state_t* state
+ content_state_t* content_state
)
/* Writes paragraph to content inside rotated text box. */
{
int e = 0;
int p;
double pt_to_inch = 1/72.0;
- outf("rotated paragraphs: rotation_rad=%f (x y)=(%i %i) (w h)=(%i %i)", rotation_rad, x_pt, y_pt, w_pt, h_pt);
+ outf("rotated paragraphs: rotation_rad=%f (x y)=(%f %f) (w h)=(%f %f)", rotation_rad, x_pt, y_pt, w_pt, h_pt);
// https://docs.oasis-open.org/office/OpenDocument/v1.3/cs02/part3-schema/OpenDocument-v1.3-cs02-part3-schema.html#attribute-draw_transform
// says rotation is in degrees, but we seem to require -radians.
@@ -414,7 +392,7 @@ static int extract_document_output_rotated_paragraphs(
for (p=paragraph_begin; p<paragraph_end; ++p)
{
paragraph_t* paragraph = page->paragraphs[p];
- if (!e) e = extract_document_to_odt_content_paragraph(alloc, state, paragraph, content, styles);
+ if (!e) e = s_document_to_odt_content_paragraph(alloc, content_state, paragraph, content, styles);
}
if (!e) e = extract_astring_cat(alloc, content, "\n");
@@ -427,6 +405,219 @@ static int extract_document_output_rotated_paragraphs(
}
+static int s_odt_append_table(extract_alloc_t* alloc, table_t* table, extract_astring_t* content, extract_odt_styles_t* styles)
+{
+ int e = -1;
+ int y;
+
+ {
+ int x;
+ static int table_number = 0;
+ table_number += 1;
+ if (extract_astring_catf(alloc, content,
+ "\n"
+ " <table:table text:style-name=\"extract.table\" table:name=\"extract.table.%i\">\n"
+ " <table:table-columns>\n"
+ ,
+ table_number
+ )) goto end;
+
+ for (x=0; x<table->cells_num_x; ++x)
+ {
+ if (extract_astring_cat(alloc, content,
+ " <table:table-column table:style-name=\"extract.table.column\"/>\n"
+ )) goto end;
+ }
+ if (extract_astring_cat(alloc, content,
+ " </table:table-columns>\n"
+ )) goto end;
+ }
+ for (y=0; y<table->cells_num_y; ++y)
+ {
+ int x;
+ if (extract_astring_cat(alloc, content,
+ " <table:table-row>\n"
+ )) goto end;
+
+ for (x=0; x<table->cells_num_x; ++x)
+ {
+ cell_t* cell = table->cells[y*table->cells_num_x + x];
+ if (!cell->above || !cell->left)
+ {
+ if (extract_astring_cat(alloc, content, " <table:covered-table-cell/>\n")) goto end;
+ continue;
+ }
+
+ if (extract_astring_cat(alloc, content, " <table:table-cell")) goto end;
+ if (cell->extend_right > 1)
+ {
+ if (extract_astring_catf(alloc, content, " table:number-columns-spanned=\"%i\"", cell->extend_right)) goto end;
+ }
+ if (cell->extend_down > 1)
+ {
+ if (extract_astring_catf(alloc, content, " table:number-rows-spanned=\"%i\"", cell->extend_down)) goto end;
+ }
+ if (extract_astring_catf(alloc, content, ">\n")) goto end;
+
+ /* Write contents of this cell. */
+ {
+ int p;
+ content_state_t content_state;
+ content_state.font.name = NULL;
+ content_state.ctm_prev = NULL;
+ for (p=0; p<cell->paragraphs_num; ++p)
+ {
+ paragraph_t* paragraph = cell->paragraphs[p];
+ if (s_document_to_odt_content_paragraph(alloc, &content_state, paragraph, content, styles)) goto end;
+ }
+ if (content_state.font.name)
+ {
+ if (s_odt_run_finish(alloc, &content_state, content)) goto end;
+ }
+ if (extract_astring_cat(alloc, content, "\n")) goto end;
+ }
+ if (extract_astring_cat(alloc, content, " </table:table-cell>\n")) goto end;
+ }
+ if (extract_astring_cat(alloc, content, " </table:table-row>\n")) goto end;
+ }
+ if (extract_astring_cat(alloc, content, " </table:table>\n")) goto end;
+ e = 0;
+
+ end:
+ return e;
+}
+
+
+static int s_odt_append_rotated_paragraphs(
+ extract_alloc_t* alloc,
+ extract_page_t* page,
+ content_state_t* content_state,
+ int* p,
+ int* text_box_id,
+ const matrix_t* ctm,
+ double rotate,
+ extract_astring_t* content,
+ extract_odt_styles_t* styles
+ )
+/* Appends paragraphs with same rotation, starting with page->paragraphs[*p]
+and updates *p. */
+{
+ /* Find extent of paragraphs with this same rotation. extent
+ will contain max width and max height of paragraphs, in units
+ before application of ctm, i.e. before rotation. */
+ int e = -1;
+ point_t extent = {0, 0};
+ int p0 = *p;
+ int p1;
+ paragraph_t* paragraph = page->paragraphs[*p];
+
+ outf("rotate=%.2frad=%.1fdeg ctm: ef=(%f %f) abcd=(%f %f %f %f)",
+ rotate, rotate * 180 / pi,
+ ctm->e,
+ ctm->f,
+ ctm->a,
+ ctm->b,
+ ctm->c,
+ ctm->d
+ );
+
+ {
+ /* We assume that first span is at origin of text
+ block. This assumes left-to-right text. */
+ double rotate0 = rotate;
+ const matrix_t* ctm0 = ctm;
+ point_t origin =
+ {
+ paragraph->lines[0]->spans[0]->chars[0].x,
+ paragraph->lines[0]->spans[0]->chars[0].y
+ };
+ matrix_t ctm_inverse = {1, 0, 0, 1, 0, 0};
+ double ctm_det = ctm->a*ctm->d - ctm->b*ctm->c;
+ if (ctm_det != 0)
+ {
+ ctm_inverse.a = +ctm->d / ctm_det;
+ ctm_inverse.b = -ctm->b / ctm_det;
+ ctm_inverse.c = -ctm->c / ctm_det;
+ ctm_inverse.d = +ctm->a / ctm_det;
+ }
+ else
+ {
+ outf("cannot invert ctm=(%f %f %f %f)",
+ ctm->a, ctm->b, ctm->c, ctm->d);
+ }
+
+ for (*p=p0; *p<page->paragraphs_num; ++*p)
+ {
+ paragraph = page->paragraphs[*p];
+ ctm = &paragraph->lines[0]->spans[0]->ctm;
+ rotate = atan2(ctm->b, ctm->a);
+ if (rotate != rotate0)
+ {
+ break;
+ }
+
+ /* Update <extent>. */
+ {
+ int l;
+ for (l=0; l<paragraph->lines_num; ++l)
+ {
+ line_t* line = paragraph->lines[l];
+ span_t* span = extract_line_span_last(line);
+ char_t* char_ = extract_span_char_last(span);
+ double adv = char_->adv * extract_matrix_expansion(span->trm);
+ double x = char_->x + adv * cos(rotate);
+ double y = char_->y + adv * sin(rotate);
+
+ double dx = x - origin.x;
+ double dy = y - origin.y;
+
+ /* Position relative to origin and before box rotation. */
+ double xx = ctm_inverse.a * dx + ctm_inverse.b * dy;
+ double yy = ctm_inverse.c * dx + ctm_inverse.d * dy;
+ yy = -yy;
+ if (xx > extent.x) extent.x = xx;
+ if (yy > extent.y) extent.y = yy;
+ if (0) outf("rotate=%f *p=%i: origin=(%f %f) xy=(%f %f) dxy=(%f %f) xxyy=(%f %f) span: %s",
+ rotate, *p, origin.x, origin.y, x, y, dx, dy, xx, yy, extract_span_string(alloc, span));
+ }
+ }
+ }
+ p1 = *p;
+ rotate = rotate0;
+ ctm = ctm0;
+ outf("rotate=%f p0=%i p1=%i. extent is: (%f %f)",
+ rotate, p0, p1, extent.x, extent.y);
+ }
+
+ /* Paragraphs p0..p1-1 have same rotation. We output them into
+ a single rotated text box. */
+
+ /* We need unique id for text box. */
+ *text_box_id += 1;
+
+ if (s_odt_output_rotated_paragraphs(
+ alloc,
+ page,
+ p0,
+ p1,
+ rotate,
+ ctm->e,
+ ctm->f,
+ extent.x,
+ extent.y,
+ *text_box_id,
+ content,
+ styles,
+ content_state
+ )) goto end;
+ *p = p1 - 1;
+ e = 0;
+
+ end:
+ return e;
+}
+
+
int extract_document_to_odt_content(
extract_alloc_t* alloc,
document_t* document,
@@ -445,156 +636,66 @@ int extract_document_to_odt_content(
for (p=0; p<document->pages_num; ++p)
{
extract_page_t* page = document->pages[p];
- int p;
- content_state_t state;
- state.font_name = NULL;
- state.font_size = 0;
- state.font_bold = 0;
- state.font_italic = 0;
- state.ctm_prev = NULL;
+ int p = 0;
+ int t = 0;
+ content_state_t content_state;
+ content_state.font.name = NULL;
+ content_state.font.size = 0;
+ content_state.font.bold = 0;
+ content_state.font.italic = 0;
+ content_state.ctm_prev = NULL;
- for (p=0; p<page->paragraphs_num; ++p)
+ for(;;)
{
- paragraph_t* paragraph = page->paragraphs[p];
- const matrix_t* ctm = &paragraph->lines[0]->spans[0]->ctm;
- double rotate = atan2(ctm->b, ctm->a);
+ paragraph_t* paragraph = (p == page->paragraphs_num) ? NULL : page->paragraphs[p];
+ table_t* table = (t == page->tables_num) ? NULL : page->tables[t];
+ double y_paragraph;
+ double y_table;
+ if (!paragraph && !table) break;
+ y_paragraph = (paragraph) ? paragraph->lines[0]->spans[0]->chars[0].y : DBL_MAX;
+ y_table = (table) ? table->pos.y : DBL_MAX;
- if (spacing
- && state.ctm_prev
- && paragraph->lines_num
- && paragraph->lines[0]->spans_num
- && matrix_cmp4(
- state.ctm_prev,
- &paragraph->lines[0]->spans[0]->ctm
- )
- )
+ if (paragraph && y_paragraph < y_table)
{
- /* Extra vertical space between paragraphs that were at
- different angles in the original document. */
- if (extract_odt_paragraph_empty(alloc, content, styles)) goto end;
- }
+ const matrix_t* ctm = &paragraph->lines[0]->spans[0]->ctm;
+ double rotate = atan2(ctm->b, ctm->a);
+
+ if (spacing
+ && content_state.ctm_prev
+ && paragraph->lines_num
+ && paragraph->lines[0]->spans_num
+ && extract_matrix_cmp4(
+ content_state.ctm_prev,
+ &paragraph->lines[0]->spans[0]->ctm
+ )
+ )
+ {
+ /* Extra vertical space between paragraphs that were at
+ different angles in the original document. */
+ if (s_odt_append_empty_paragraph(alloc, content, styles)) goto end;
+ }
- if (spacing)
- {
- /* Extra vertical space between paragraphs. */
- if (extract_odt_paragraph_empty(alloc, content, styles)) goto end;
- }
-
- if (rotation && rotate != 0)
- {
- /* Find extent of paragraphs with this same rotation. extent
- will contain max width and max height of paragraphs, in units
- before application of ctm, i.e. before rotation. */
- point_t extent = {0, 0};
- int p0 = p;
- int p1;
-
- outf("rotate=%.2frad=%.1fdeg ctm: ef=(%f %f) abcd=(%f %f %f %f)",
- rotate, rotate * 180 / pi,
- ctm->e,
- ctm->f,
- ctm->a,
- ctm->b,
- ctm->c,
- ctm->d
- );
-
+ if (spacing)
{
- /* We assume that first span is at origin of text
- block. This assumes left-to-right text. */
- double rotate0 = rotate;
- const matrix_t* ctm0 = ctm;
- point_t origin =
- {
- paragraph->lines[0]->spans[0]->chars[0].x,
- paragraph->lines[0]->spans[0]->chars[0].y
- };
- matrix_t ctm_inverse = {1, 0, 0, 1, 0, 0};
- double ctm_det = ctm->a*ctm->d - ctm->b*ctm->c;
- if (ctm_det != 0)
- {
- ctm_inverse.a = +ctm->d / ctm_det;
- ctm_inverse.b = -ctm->b / ctm_det;
- ctm_inverse.c = -ctm->c / ctm_det;
- ctm_inverse.d = +ctm->a / ctm_det;
- }
- else
- {
- outf("cannot invert ctm=(%f %f %f %f)",
- ctm->a, ctm->b, ctm->c, ctm->d);
- }
-
- for (p=p0; p<page->paragraphs_num; ++p)
- {
- paragraph = page->paragraphs[p];
- ctm = &paragraph->lines[0]->spans[0]->ctm;
- rotate = atan2(ctm->b, ctm->a);
- if (rotate != rotate0)
- {
- break;
- }
-
- /* Update <extent>. */
- {
- int l;
- for (l=0; l<paragraph->lines_num; ++l)
- {
- line_t* line = paragraph->lines[l];
- span_t* span = line_span_last(line);
- char_t* char_ = span_char_last(span);
- double adv = char_->adv * matrix_expansion(span->trm);
- double x = char_->x + adv * cos(rotate);
- double y = char_->y + adv * sin(rotate);
-
- double dx = x - origin.x;
- double dy = y - origin.y;
-
- /* Position relative to origin and before box rotation. */
- double xx = ctm_inverse.a * dx + ctm_inverse.b * dy;
- double yy = ctm_inverse.c * dx + ctm_inverse.d * dy;
- yy = -yy;
- if (xx > extent.x) extent.x = xx;
- if (yy > extent.y) extent.y = yy;
- if (0) outf("rotate=%f p=%i: origin=(%f %f) xy=(%f %f) dxy=(%f %f) xxyy=(%f %f) span: %s",
- rotate, p, origin.x, origin.y, x, y, dx, dy, xx, yy, span_string(alloc, span));
- }
- }
- }
- p1 = p;
- rotate = rotate0;
- ctm = ctm0;
- outf("rotate=%f p0=%i p1=%i. extent is: (%f %f)",
- rotate, p0, p1, extent.x, extent.y);
+ /* Extra vertical space between paragraphs. */
+ if (s_odt_append_empty_paragraph(alloc, content, styles)) goto end;
}
-
- /* Paragraphs p0..p1-1 have same rotation. We output them into
- a single rotated text box. */
-
- /* We need unique id for text box. */
- text_box_id += 1;
-
- if (extract_document_output_rotated_paragraphs(
- alloc,
- page,
- p0,
- p1,
- rotate,
- ctm->e,
- ctm->f,
- extent.x,
- extent.y,
- text_box_id,
- content,
- styles,
- &state
- )) goto end;
- p = p1 - 1;
+
+ if (rotation && rotate != 0)
+ {
+ if (s_odt_append_rotated_paragraphs(alloc, page, &content_state, &p, &text_box_id, ctm, rotate, content, styles)) goto end;
+ }
+ else
+ {
+ if (s_document_to_odt_content_paragraph(alloc, &content_state, paragraph, content, styles)) goto end;
+ }
+ p += 1;
}
- else
+ else if (table)
{
- if (extract_document_to_odt_content_paragraph(alloc, &state, paragraph, content, styles)) goto end;
+ if (s_odt_append_table(alloc, table, content, styles)) goto end;
+ t += 1;
}
-
}
outf("images=%i", images);
@@ -604,7 +705,7 @@ int extract_document_to_odt_content(
outf("page->images_num=%i", page->images_num);
for (i=0; i<page->images_num; ++i)
{
- extract_document_append_image(alloc, content, &page->images[i]);
+ s_odt_append_image(alloc, content, &page->images[i]);
}
}
}
@@ -658,26 +759,39 @@ int extract_odt_content_item(
char* text_intermediate = NULL;
extract_astring_t styles_definitions = {0};
+ /* Insert content before '</office:text>'. */
if (extract_content_insert(
alloc,
text,
NULL /*single*/,
- NULL,
- "</office:text>",
+ NULL /*mid_begin_name*/,
+ "</office:text>" /*mid_end_name*/,
contentss,
contentss_num,
&text_intermediate
)) goto end;
outf("text_intermediate: %s", text_intermediate);
- if (extract_odt_styles_definitions(alloc, styles, &styles_definitions)) goto end;
+ /* Convert <styles> to text. */
+ if (s_odt_styles_definitions(alloc, styles, &styles_definitions)) goto end;
+ /* To make tables work, we seem to need to specify table and column
+ styles, and these can be empty. todo: maybe specify exact sizes based
+ on the pdf table and cell dimensions. */
+ if (extract_astring_cat(alloc, &styles_definitions,
+ "\n"
+ "<style:style style:name=\"extract.table\" style:family=\"table\"/>\n"
+ "<style:style style:name=\"extract.table.column\" style:family=\"table-column\"/>\n"
+ )) goto end;
+
+ /* Replace '<office:automatic-styles/>' with text from
+ <styles_definitions>. */
e = extract_content_insert(
alloc,
text_intermediate,
"<office:automatic-styles/>" /*single*/,
- NULL,
- NULL, //"</office:automatic-styles>",
+ NULL /*mid_begin_name*/,
+ NULL /*mid_end_name*/,
&styles_definitions,
1,
text2
@@ -719,14 +833,14 @@ int extract_odt_content_item(
}
e = 0;
end:
- outf("e=%i errno=%i text2=%s", e, errno, text2);
+ outf("e=%i errno=%i text2=%s", e, errno, text2 ? *text2 : "");
if (e)
{
/* We might have set <text2> to new content. */
extract_free(alloc, text2);
/* We might have used <temp> as a temporary buffer. */
- extract_astring_free(alloc, &temp);
}
+ extract_astring_free(alloc, &temp);
extract_astring_init(&temp);
return e;
}
@@ -747,7 +861,6 @@ int extract_odt_write_template(
int e = -1;
int i;
char* path_tempdir = NULL;
- FILE* f = NULL;
char* path = NULL;
char* text = NULL;
char* text2 = NULL;
@@ -827,7 +940,6 @@ int extract_odt_write_template(
}
/* Copy images into <path_tempdir>/Pictures/. */
- outf("");
extract_free(alloc, &path);
if (extract_asprintf(alloc, &path, "%s/Pictures", path_tempdir) < 0) goto end;
if (extract_mkdir(path, 0777))
@@ -835,7 +947,6 @@ int extract_odt_write_template(
outf("Failed to mkdir %s", path);
goto end;
}
- outf("");
for (i=0; i<images->images_num; ++i)
{
image_t* image = &images->images[i];
@@ -869,8 +980,6 @@ int extract_odt_write_template(
extract_free(alloc, &path);
extract_free(alloc, &text);
extract_free(alloc, &text2);
- //extract_odt_styles_free(alloc, &styles);
- if (f) fclose(f);
if (e)
{
diff --git a/extract/src/outf.c b/extract/src/outf.c
index 95575c16..de7662f6 100644
--- a/extract/src/outf.c
+++ b/extract/src/outf.c
@@ -5,14 +5,14 @@
#include <stdio.h>
#include <string.h>
-static int s_verbose = 0;
+int extract_outf_verbose = 0;
-void outf_verbose_set(int verbose)
+void extract_outf_verbose_set(int verbose)
{
- s_verbose = verbose;
+ extract_outf_verbose = verbose;
}
-void (outf)(
+void (extract_outf)(
int level,
const char* file,
int line,
@@ -23,7 +23,7 @@ void (outf)(
)
{
va_list va;
- if (level > s_verbose) {
+ if (level > extract_outf_verbose) {
return;
}
diff --git a/extract/src/outf.h b/extract/src/outf.h
index a2b6c078..f9b97a93 100644
--- a/extract/src/outf.h
+++ b/extract/src/outf.h
@@ -1,32 +1,42 @@
#ifndef ARTIFEX_EXTRACT_OUTF_H
#define ARTIFEX_EXTRACT_OUTF_H
+/* Simple printf-style debug output. */
+
+#if defined(__GNUC__) || defined(__clang__) || defined(_WIN32)
+ #define extract_FUNCTION __FUNCTION__
+#else
+ #define extract_FUNCTION ""
+#endif
+
+#define outf(format, ...) \
+ (1 > extract_outf_verbose) ? (void) 0 : (extract_outf)(1, __FILE__, __LINE__, extract_FUNCTION, 1 /*ln*/, format, ##__VA_ARGS__)
+
+#define outf0(format, ...) \
+ (0 > extract_outf_verbose) ? (void) 0 : (extract_outf)(0, __FILE__, __LINE__, extract_FUNCTION, 1 /*ln*/, format, ##__VA_ARGS__)
+
+#define outfx(format, ...)
+
/* Only for internal use by extract code. */
-void (outf)(
+extern int extract_outf_verbose;
+
+void (extract_outf)(
int level,
const char* file, int line,
const char* fn,
int ln,
const char* format,
...
- );
+ )
+ #ifdef __GNUC__
+ __attribute__ ((format (printf, 6, 7)))
+ #endif
+ ;
/* Outputs text if <level> is less than or equal to verbose value set by
outf_level_set(). */
-#define outf(format, ...) \
- (outf)(1, __FILE__, __LINE__, __FUNCTION__, 1 /*ln*/, format, ##__VA_ARGS__)
-
-#define outf0(format, ...) \
- (outf)(0, __FILE__, __LINE__, __FUNCTION__, 1 /*ln*/, format, ##__VA_ARGS__)
-
-#define outfx(format, ...)
-
-/* Simple printf-style debug output. */
-
-#define outfx(format, ...)
-
-void outf_verbose_set(int verbose);
+void extract_outf_verbose_set(int verbose);
/* Set verbose value. Higher values are more verbose. Initial value is 0. */
#endif
diff --git a/extract/src/sys.c b/extract/src/sys.c
index 131f6312..2359acab 100644
--- a/extract/src/sys.c
+++ b/extract/src/sys.c
@@ -82,7 +82,7 @@ int extract_read_all_path(extract_alloc_t* alloc, const char* path, char** o_te
e = 0;
end:
if (f) fclose(f);
- if (e) extract_free(alloc, &o_text);
+ if (e) extract_free(alloc, o_text);
return e;
}
diff --git a/extract/src/text.c b/extract/src/text.c
index f832baa2..e75e3e69 100644
--- a/extract/src/text.c
+++ b/extract/src/text.c
@@ -18,23 +18,6 @@ int extract_content_insert(
int contentss_num,
char** o_out
)
-/* Creates a new string by inserting sequence of strings into a template
-string.
-
-If <single_name> is in <original>, it is replaced by <contentss>.
-
-Otherwise the text between the end of <mid_begin_name> and beginning of
-<mid_end_name> is replaced by <contentss>.
-
-If <mid_begin_name> is NULL, we insert into the zero-length region before
-<mid_end_name>.
-
-If <mid_end_name> is NULL, we insert into the zero-length region after
-<mid_begin_name>.
-
-At least one of <single_name>, <mid_begin_name> and <mid_end_name> must be
-non-NULL.
-*/
{
int e = -1;
const char* mid_begin = NULL;
@@ -92,6 +75,11 @@ non-NULL.
if (extract_astring_catl(alloc, &out, contentss[i].chars, contentss[i].chars_num)) goto end;
}
}
+ assert( mid_end);
+ /* As per docs, at least one of <single_name>, <mid_begin_name> and
+ <mid_end_name> is non-null, and this ensures that mid_end must not be null.
+ */
+ /* coverity[var_deref_model] */
if (extract_astring_cat(alloc, &out, mid_end)) goto end;
*o_out = out.chars;
diff --git a/extract/src/xml.c b/extract/src/xml.c
index 8dab511b..24116f6d 100644
--- a/extract/src/xml.c
+++ b/extract/src/xml.c
@@ -349,7 +349,7 @@ int extract_xml_pparse_init(extract_alloc_t* alloc, extract_buffer_t* buffer, co
}
first_line_buffer[actual] = 0;
if (strcmp(first_line, first_line_buffer)) {
- outf("Unrecognised prefix: ", first_line_buffer);
+ outf("Unrecognised prefix: %s", first_line_buffer);
errno = ESRCH;
goto end;
}
@@ -393,7 +393,10 @@ static const char* extract_xml_tag_string(extract_alloc_t* alloc, extract_xml_ta
{
static char* buffer = NULL;
extract_free(alloc, &buffer);
- extract_asprintf(alloc, &buffer, "<name=%s>", tag->name ? tag->name : "");
+ if (extract_asprintf(alloc, &buffer, "<name=%s>", tag->name ? tag->name : ""))
+ {
+ return "";
+ }
return buffer;
}
@@ -410,7 +413,9 @@ int extract_xml_pparse_next(extract_buffer_t* buffer, extract_xml_tag_t* out)
assert(buffer);
extract_xml_tag_free(alloc, out);
- /* Read tag name. */
+ /* Read tag name. Initialise it to empty string so we never return
+ out->name==null on success. */
+ if (str_catl( alloc, &out->name, NULL, 0)) goto end;
for( i=0;; ++i) {
int e = extract_buffer_read(buffer, &c, 1, NULL);
if (e) {
@@ -438,6 +443,7 @@ int extract_xml_pparse_next(extract_buffer_t* buffer, extract_xml_tag_t* out)
int quote_single = 0;
int quote_double = 0;
size_t l;
+ if (str_catl( alloc, &attribute_value, NULL, 0)) goto end;
for(;;) {
if (s_next(buffer, &ret, &c)) goto end;
if (c == '\'') quote_single = !quote_single;
@@ -469,6 +475,10 @@ int extract_xml_pparse_next(extract_buffer_t* buffer, extract_xml_tag_t* out)
}
}
+ /* Ensure name and value are not NULL. */
+ if (str_catl( alloc, &attribute_name, NULL, 0)) goto end;
+ if (str_catl( alloc, &attribute_value, NULL, 0)) goto end;
+
if (extract_xml_tag_attributes_append(alloc, out, attribute_name, attribute_value)) goto end;
attribute_name = NULL;
attribute_value = NULL;
diff --git a/extract/src/xml.h b/extract/src/xml.h
index d11fd886..8bc4dae2 100644
--- a/extract/src/xml.h
+++ b/extract/src/xml.h
@@ -35,6 +35,9 @@ void extract_xml_tag_free(extract_alloc_t* alloc, extract_xml_tag_t* tag);
int extract_xml_pparse_init(extract_alloc_t* alloc, extract_buffer_t* buffer, const char* first_line);
/* extract_xml_pparse_*(): simple XML 'pull' parser.
+If <first_line> is not NULL, we require that <buffer> starts with the specified
+text. Usually one would include a final newline in <first_line>.
+
extract_xml_pparse_init() merely consumes the initial '<'. Thereafter
extract_xml_pparse_next() consumes the next '<' before returning the previous
tag. */
@@ -53,6 +56,9 @@ int extract_xml_pparse_next(extract_buffer_t* buffer, extract_xml_tag_t* out);
Returns 0 with *out containing next tag; or -1 with errno set if error; or +1
with errno=ESRCH if EOF.
+If we return 0, we guarantee that out->name points to valid string and that
+each item in out->attributes has similarly valid name and value members.
+
*out is initially passed to extract_xml_tag_free(), so *out must have been
initialised, e.g. by by extract_xml_tag_init(). */
diff --git a/extract/src/zip.c b/extract/src/zip.c
index 03bfd024..691b743b 100644
--- a/extract/src/zip.c
+++ b/extract/src/zip.c
@@ -10,6 +10,7 @@
#include <assert.h>
#include <errno.h>
#include <limits.h>
+#include <time.h>
#ifdef _MSC_VER
#include "compat_stdint.h"
@@ -74,8 +75,38 @@ int extract_zip_open(extract_buffer_t* buffer, extract_zip_t** o_zip)
/* We could maybe convert current date/time to the ms-dos format required
here, but using zeros doesn't seem to make a difference to Word etc. */
- zip->mtime = 0;
- zip->mdate = 0;
+
+ {
+ time_t t = time(NULL);
+ struct tm* tm;
+ #ifdef _POSIX_SOURCE
+ struct tm tm_local;
+ tm = gmtime_r(&t, &tm_local);
+ #else
+ tm = gmtime(&t);
+ #endif
+ if (tm)
+ {
+ /* mdate and mtime are in MS DOS format:
+ mtime:
+ bits 0-4: seconds / 2.
+ bits 5-10: minute (0-59).
+ bits 11-15: hour (0-23).
+ mdate:
+ bits 0-4: day of month (1-31).
+ bits 5-8: month (1=jan, 2=feb, etc).
+ bits 9-15: year - 1980.
+ */
+ zip->mtime = (uint16_t) ((tm->tm_hour << 11) | (tm->tm_min << 5) | (tm->tm_sec / 2));
+ zip->mdate = (uint16_t) (((1900 + tm->tm_year - 1980) << 9) | ((tm->tm_mon + 1) << 5) | tm->tm_mday);
+ }
+ else
+ {
+ outf0("*** gmtime_r() failed");
+ zip->mtime = 0;
+ zip->mdate = 0;
+ }
+ }
/* These are all copied from command-line zip on unix. */
zip->version_creator = (0x3 << 8) + 30; /* 0x3 is unix, 30 means 3.0. */
@@ -115,7 +146,9 @@ static int s_native_little_endinesss(void)
/* Native big-endiness. */
return 0;
}
- abort();
+ /* Would like to call abort() here, but that breaks on AIX/gcc. */
+ assert(0);
+ return 0;
}
@@ -148,7 +181,7 @@ static int s_write_compressed(
/* Uses zlib to write raw deflate compressed data to zip->buffer. */
{
int ze;
- z_stream zstream;
+ z_stream zstream = {0}; /* Initialise to keep Coverity quiet. */
if (zip->errno_) return -1;
if (zip->eof) return +1;
@@ -313,7 +346,7 @@ int extract_zip_write_file(
cd_file->name = NULL;
cd_file->mtime = zip->mtime;
- cd_file->mdate = zip->mtime;
+ cd_file->mdate = zip->mdate;
cd_file->crc_sum = (int32_t) crc32(crc32(0, NULL, 0), data, (int) data_length);
cd_file->size_uncompressed = (int) data_length;
if (zip->compression_method == 0)
diff --git a/extract/test/Python2.pdf.gs.docx.dir.ref/word/document.xml b/extract/test/Python2.pdf.gs.docx.dir.ref/word/document.xml
index 6f6d1748..5a9950cf 100644
--- a/extract/test/Python2.pdf.gs.docx.dir.ref/word/document.xml
+++ b/extract/test/Python2.pdf.gs.docx.dir.ref/word/document.xml
@@ -36,31 +36,31 @@
<w:txbxContent>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT" w:hAnsi="TimesNewRomanPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">The crew was complete: it included a </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPS-BoldMT" w:hAnsi="TimesNewRomanPS-BoldMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">Boots</w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT" w:hAnsi="TimesNewRomanPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">&#x2014; A maker of Bonnets and Hoods&#x2014; A </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPS-BoldMT" w:hAnsi="TimesNewRomanPS-BoldMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">Barrister</w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT" w:hAnsi="TimesNewRomanPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">, brought to arrange their disputes&#x2014; And a </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPS-BoldMT" w:hAnsi="TimesNewRomanPS-BoldMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">Broker</w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT" w:hAnsi="TimesNewRomanPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">, to value their goods.</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT-Identity-H" w:hAnsi="TimesNewRomanPSMT-Identity-H"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">The crew was complete: it included a </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPS-BoldMT-Identity-H" w:hAnsi="TimesNewRomanPS-BoldMT-Identity-H"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">Boots</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT-Identity-H" w:hAnsi="TimesNewRomanPSMT-Identity-H"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">&#x2014; A maker of Bonnets and Hoods&#x2014; A </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPS-BoldMT-Identity-H" w:hAnsi="TimesNewRomanPS-BoldMT-Identity-H"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">Barrister</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT-Identity-H" w:hAnsi="TimesNewRomanPSMT-Identity-H"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">, brought to arrange their disputes&#x2014; And a </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPS-BoldMT-Identity-H" w:hAnsi="TimesNewRomanPS-BoldMT-Identity-H"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">Broker</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT-Identity-H" w:hAnsi="TimesNewRomanPSMT-Identity-H"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">, to value their goods.</w:t></w:r>
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT" w:hAnsi="TimesNewRomanPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">A </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPS-BoldMT" w:hAnsi="TimesNewRomanPS-BoldMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">Billiard-marker</w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT" w:hAnsi="TimesNewRomanPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">, whose skill was immense, Might perhaps have won more than his share&#x2014; But a </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPS-BoldMT" w:hAnsi="TimesNewRomanPS-BoldMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">Banker</w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT" w:hAnsi="TimesNewRomanPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">, engaged at enormous expense, Had the whole of their </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPS-ItalicMT" w:hAnsi="TimesNewRomanPS-ItalicMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">cash </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT" w:hAnsi="TimesNewRomanPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">in his care.</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT-Identity-H" w:hAnsi="TimesNewRomanPSMT-Identity-H"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">A </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPS-BoldMT-Identity-H" w:hAnsi="TimesNewRomanPS-BoldMT-Identity-H"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">Billiard-marker</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT-Identity-H" w:hAnsi="TimesNewRomanPSMT-Identity-H"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">, whose skill was immense, Might perhaps have won more than his share&#x2014; But a </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPS-BoldMT-Identity-H" w:hAnsi="TimesNewRomanPS-BoldMT-Identity-H"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">Banker</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT-Identity-H" w:hAnsi="TimesNewRomanPSMT-Identity-H"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">, engaged at enormous expense, Had the whole of their </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPS-ItalicMT-Identity-H" w:hAnsi="TimesNewRomanPS-ItalicMT-Identity-H"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">cash </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT-Identity-H" w:hAnsi="TimesNewRomanPSMT-Identity-H"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">in his care.</w:t></w:r>
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT" w:hAnsi="TimesNewRomanPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">There was also a </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPS-BoldMT" w:hAnsi="TimesNewRomanPS-BoldMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">Beaver</w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT" w:hAnsi="TimesNewRomanPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">, that paced on the deck, Or would sit making lace in the bow: And had often (the </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPS-BoldMT" w:hAnsi="TimesNewRomanPS-BoldMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">Bellman </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT" w:hAnsi="TimesNewRomanPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">said) saved them from wreck, Though none of the sailors knew how.</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT-Identity-H" w:hAnsi="TimesNewRomanPSMT-Identity-H"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">There was also a </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPS-BoldMT-Identity-H" w:hAnsi="TimesNewRomanPS-BoldMT-Identity-H"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">Beaver</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT-Identity-H" w:hAnsi="TimesNewRomanPSMT-Identity-H"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">, that paced on the deck, Or would sit making lace in the bow: And had often (the </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPS-BoldMT-Identity-H" w:hAnsi="TimesNewRomanPS-BoldMT-Identity-H"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">Bellman </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT-Identity-H" w:hAnsi="TimesNewRomanPSMT-Identity-H"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">said) saved them from wreck, Though none of the sailors knew how.</w:t></w:r>
</w:p>
</w:txbxContent>
</wps:txbx>
@@ -87,31 +87,31 @@
<w:txbxContent>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT" w:hAnsi="TimesNewRomanPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">The crew was complete: it included a </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPS-BoldMT" w:hAnsi="TimesNewRomanPS-BoldMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">Boots</w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT" w:hAnsi="TimesNewRomanPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">&#x2014; A maker of Bonnets and Hoods&#x2014; A </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPS-BoldMT" w:hAnsi="TimesNewRomanPS-BoldMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">Barrister</w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT" w:hAnsi="TimesNewRomanPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">, brought to arrange their disputes&#x2014; And a </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPS-BoldMT" w:hAnsi="TimesNewRomanPS-BoldMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">Broker</w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT" w:hAnsi="TimesNewRomanPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">, to value their goods.</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT-Identity-H" w:hAnsi="TimesNewRomanPSMT-Identity-H"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">The crew was complete: it included a </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPS-BoldMT-Identity-H" w:hAnsi="TimesNewRomanPS-BoldMT-Identity-H"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">Boots</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT-Identity-H" w:hAnsi="TimesNewRomanPSMT-Identity-H"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">&#x2014; A maker of Bonnets and Hoods&#x2014; A </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPS-BoldMT-Identity-H" w:hAnsi="TimesNewRomanPS-BoldMT-Identity-H"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">Barrister</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT-Identity-H" w:hAnsi="TimesNewRomanPSMT-Identity-H"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">, brought to arrange their disputes&#x2014; And a </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPS-BoldMT-Identity-H" w:hAnsi="TimesNewRomanPS-BoldMT-Identity-H"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">Broker</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT-Identity-H" w:hAnsi="TimesNewRomanPSMT-Identity-H"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">, to value their goods.</w:t></w:r>
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT" w:hAnsi="TimesNewRomanPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">A </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPS-BoldMT" w:hAnsi="TimesNewRomanPS-BoldMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">Billiard-marker</w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT" w:hAnsi="TimesNewRomanPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">, whose skill was immense, Might perhaps have won more than his share&#x2014; But a </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPS-BoldMT" w:hAnsi="TimesNewRomanPS-BoldMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">Banker</w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT" w:hAnsi="TimesNewRomanPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">, engaged at enormous expense, Had the whole of their </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPS-ItalicMT" w:hAnsi="TimesNewRomanPS-ItalicMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">cash </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT" w:hAnsi="TimesNewRomanPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">in his care.</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT-Identity-H" w:hAnsi="TimesNewRomanPSMT-Identity-H"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">A </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPS-BoldMT-Identity-H" w:hAnsi="TimesNewRomanPS-BoldMT-Identity-H"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">Billiard-marker</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT-Identity-H" w:hAnsi="TimesNewRomanPSMT-Identity-H"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">, whose skill was immense, Might perhaps have won more than his share&#x2014; But a </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPS-BoldMT-Identity-H" w:hAnsi="TimesNewRomanPS-BoldMT-Identity-H"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">Banker</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT-Identity-H" w:hAnsi="TimesNewRomanPSMT-Identity-H"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">, engaged at enormous expense, Had the whole of their </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPS-ItalicMT-Identity-H" w:hAnsi="TimesNewRomanPS-ItalicMT-Identity-H"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">cash </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT-Identity-H" w:hAnsi="TimesNewRomanPSMT-Identity-H"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">in his care.</w:t></w:r>
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT" w:hAnsi="TimesNewRomanPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">There was also a </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPS-BoldMT" w:hAnsi="TimesNewRomanPS-BoldMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">Beaver</w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT" w:hAnsi="TimesNewRomanPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">, that paced on the deck, Or would sit making lace in the bow: And had often (the </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPS-BoldMT" w:hAnsi="TimesNewRomanPS-BoldMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">Bellman </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT" w:hAnsi="TimesNewRomanPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">said) saved them from wreck, Though none of the sailors knew how.</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT-Identity-H" w:hAnsi="TimesNewRomanPSMT-Identity-H"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">There was also a </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPS-BoldMT-Identity-H" w:hAnsi="TimesNewRomanPS-BoldMT-Identity-H"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">Beaver</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT-Identity-H" w:hAnsi="TimesNewRomanPSMT-Identity-H"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">, that paced on the deck, Or would sit making lace in the bow: And had often (the </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPS-BoldMT-Identity-H" w:hAnsi="TimesNewRomanPS-BoldMT-Identity-H"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">Bellman </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT-Identity-H" w:hAnsi="TimesNewRomanPSMT-Identity-H"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">said) saved them from wreck, Though none of the sailors knew how.</w:t></w:r>
</w:p>
</w:txbxContent>
@@ -131,12 +131,12 @@
<wp:anchor distT="0" distB="0" distL="0" distR="0" simplePos="0" relativeHeight="0" behindDoc="0" locked="0" layoutInCell="1" allowOverlap="1" wp14:anchorId="53A210D1" wp14:editId="2B7E8016">
<wp:simplePos x="0" y="0"/>
<wp:positionH relativeFrom="page">
- <wp:posOffset>1971571</wp:posOffset>
+ <wp:posOffset>1930853</wp:posOffset>
</wp:positionH>
<wp:positionV relativeFrom="page">
- <wp:posOffset>5069271</wp:posOffset>
+ <wp:posOffset>329714</wp:posOffset>
</wp:positionV>
- <wp:extent cx="3087637" cy="1866770"/>
+ <wp:extent cx="2901291" cy="6608278"/>
<wp:effectExtent l="381000" t="723900" r="371475" b="723900"/>
<wp:wrapNone/>
<wp:docPr id="2" name="Text Box 2"/>
@@ -158,13 +158,41 @@
<w:txbxContent>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="CourierNewPS-ItalicMT" w:hAnsi="CourierNewPS-ItalicMT"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">forty-two</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPS-ItalicMT-Identity-H" w:hAnsi="CourierNewPS-ItalicMT-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">forty-two</w:t></w:r>
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT" w:hAnsi="CourierNewPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">There was one who was famed for the number of things He His umbrella, his watch, all his jewels and rings, </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="CourierNewPS-BoldMT" w:hAnsi="CourierNewPS-BoldMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">forgot </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT" w:hAnsi="CourierNewPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve"> And the clothes he had bought for the trip. when he entered the ship: He had With his name painted clearly on each: But, since he omitted to mention the fact, They were all left behind on the beach. boxes, all carefully packed,</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT-Identity-H" w:hAnsi="CourierNewPSMT-Identity-H"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">There was one who was famed for the number of things</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT-Identity-H" w:hAnsi="CourierNewPSMT-Identity-H"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve"> He </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPS-BoldMT-Identity-H" w:hAnsi="CourierNewPS-BoldMT-Identity-H"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">forgot </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT-Identity-H" w:hAnsi="CourierNewPSMT-Identity-H"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">when he entered the ship:</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT-Identity-H" w:hAnsi="CourierNewPSMT-Identity-H"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">His umbrella, his watch, all his jewels and rings,</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT-Identity-H" w:hAnsi="CourierNewPSMT-Identity-H"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve"> And the clothes he had bought for the trip.</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT-Identity-H" w:hAnsi="CourierNewPSMT-Identity-H"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">He had With his name painted clearly on each:</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT-Identity-H" w:hAnsi="CourierNewPSMT-Identity-H"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve"> But, since he omitted to mention the fact,</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT-Identity-H" w:hAnsi="CourierNewPSMT-Identity-H"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve"> They were all left behind on the beach.</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT-Identity-H" w:hAnsi="CourierNewPSMT-Identity-H"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve"> boxes, all carefully packed,</w:t></w:r>
</w:p>
</w:txbxContent>
</wps:txbx>
@@ -191,13 +219,41 @@
<w:txbxContent>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="CourierNewPS-ItalicMT" w:hAnsi="CourierNewPS-ItalicMT"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">forty-two</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPS-ItalicMT-Identity-H" w:hAnsi="CourierNewPS-ItalicMT-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">forty-two</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT-Identity-H" w:hAnsi="CourierNewPSMT-Identity-H"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">There was one who was famed for the number of things</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT-Identity-H" w:hAnsi="CourierNewPSMT-Identity-H"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve"> He </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPS-BoldMT-Identity-H" w:hAnsi="CourierNewPS-BoldMT-Identity-H"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">forgot </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT-Identity-H" w:hAnsi="CourierNewPSMT-Identity-H"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">when he entered the ship:</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT-Identity-H" w:hAnsi="CourierNewPSMT-Identity-H"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">His umbrella, his watch, all his jewels and rings,</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT-Identity-H" w:hAnsi="CourierNewPSMT-Identity-H"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve"> And the clothes he had bought for the trip.</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT-Identity-H" w:hAnsi="CourierNewPSMT-Identity-H"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">He had With his name painted clearly on each:</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT-Identity-H" w:hAnsi="CourierNewPSMT-Identity-H"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve"> But, since he omitted to mention the fact,</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT-Identity-H" w:hAnsi="CourierNewPSMT-Identity-H"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve"> They were all left behind on the beach.</w:t></w:r>
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT" w:hAnsi="CourierNewPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">There was one who was famed for the number of things He His umbrella, his watch, all his jewels and rings, </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="CourierNewPS-BoldMT" w:hAnsi="CourierNewPS-BoldMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">forgot </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT" w:hAnsi="CourierNewPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve"> And the clothes he had bought for the trip. when he entered the ship: He had With his name painted clearly on each: But, since he omitted to mention the fact, They were all left behind on the beach. boxes, all carefully packed,</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT-Identity-H" w:hAnsi="CourierNewPSMT-Identity-H"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve"> boxes, all carefully packed,</w:t></w:r>
</w:p>
</w:txbxContent>
@@ -244,39 +300,39 @@
<w:txbxContent>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">&quot;Just the place for a !&quot; the </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Bold" w:hAnsi="OpenSans-Bold"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">Bellman </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">cried,</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">&quot;Just the place for a !&quot; the </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Bold-Identity-H" w:hAnsi="OpenSans-Bold-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">Bellman </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">cried,</w:t></w:r>
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve"> As he landed his crew with care;</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve"> As he landed his crew with care;</w:t></w:r>
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">Supporting each man on the top of the tide</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">Supporting each man on the top of the tide</w:t></w:r>
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve"> By a finger entwined in his hair.</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve"> By a finger entwined in his hair.</w:t></w:r>
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">&quot;Just the place for a ! I have said it twice:</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">&quot;Just the place for a ! I have said it twice:</w:t></w:r>
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve"> That alone should encourage the crew.</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve"> That alone should encourage the crew.</w:t></w:r>
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">Just the place for a ! I have said it thrice:</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">Just the place for a ! I have said it thrice:</w:t></w:r>
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve"> What I tell you </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Bold" w:hAnsi="OpenSans-Bold"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">three </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">times is true.&quot;</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve"> What I tell you </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Bold-Identity-H" w:hAnsi="OpenSans-Bold-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">three </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">times is true.&quot;</w:t></w:r>
</w:p>
</w:txbxContent>
</wps:txbx>
@@ -303,39 +359,39 @@
<w:txbxContent>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">&quot;Just the place for a !&quot; the </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Bold" w:hAnsi="OpenSans-Bold"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">Bellman </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">cried,</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">&quot;Just the place for a !&quot; the </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Bold-Identity-H" w:hAnsi="OpenSans-Bold-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">Bellman </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">cried,</w:t></w:r>
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve"> As he landed his crew with care;</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve"> As he landed his crew with care;</w:t></w:r>
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">Supporting each man on the top of the tide</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">Supporting each man on the top of the tide</w:t></w:r>
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve"> By a finger entwined in his hair.</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve"> By a finger entwined in his hair.</w:t></w:r>
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">&quot;Just the place for a ! I have said it twice:</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">&quot;Just the place for a ! I have said it twice:</w:t></w:r>
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve"> That alone should encourage the crew.</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve"> That alone should encourage the crew.</w:t></w:r>
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">Just the place for a ! I have said it thrice:</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">Just the place for a ! I have said it thrice:</w:t></w:r>
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve"> What I tell you </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Bold" w:hAnsi="OpenSans-Bold"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">three </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">times is true.&quot;</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve"> What I tell you </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Bold-Identity-H" w:hAnsi="OpenSans-Bold-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">three </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">times is true.&quot;</w:t></w:r>
</w:p>
</w:txbxContent>
@@ -382,15 +438,15 @@
<w:txbxContent>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Italic" w:hAnsi="OpenSans-Italic"/><w:sz w:val="28.000000"/><w:szCs w:val="21.000000"/></w:rPr><w:t xml:space="preserve">Snark</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Italic-Identity-H" w:hAnsi="OpenSans-Italic-Identity-H"/><w:sz w:val="28.000000"/><w:szCs w:val="21.000000"/></w:rPr><w:t xml:space="preserve">Snark</w:t></w:r>
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Italic" w:hAnsi="OpenSans-Italic"/><w:sz w:val="28.000000"/><w:szCs w:val="21.000000"/></w:rPr><w:t xml:space="preserve">Snark</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Italic-Identity-H" w:hAnsi="OpenSans-Italic-Identity-H"/><w:sz w:val="28.000000"/><w:szCs w:val="21.000000"/></w:rPr><w:t xml:space="preserve">Snark</w:t></w:r>
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Italic" w:hAnsi="OpenSans-Italic"/><w:sz w:val="28.000000"/><w:szCs w:val="21.000000"/></w:rPr><w:t xml:space="preserve">Snark</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Italic-Identity-H" w:hAnsi="OpenSans-Italic-Identity-H"/><w:sz w:val="28.000000"/><w:szCs w:val="21.000000"/></w:rPr><w:t xml:space="preserve">Snark</w:t></w:r>
</w:p>
</w:txbxContent>
</wps:txbx>
@@ -417,15 +473,15 @@
<w:txbxContent>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Italic" w:hAnsi="OpenSans-Italic"/><w:sz w:val="28.000000"/><w:szCs w:val="21.000000"/></w:rPr><w:t xml:space="preserve">Snark</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Italic-Identity-H" w:hAnsi="OpenSans-Italic-Identity-H"/><w:sz w:val="28.000000"/><w:szCs w:val="21.000000"/></w:rPr><w:t xml:space="preserve">Snark</w:t></w:r>
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Italic" w:hAnsi="OpenSans-Italic"/><w:sz w:val="28.000000"/><w:szCs w:val="21.000000"/></w:rPr><w:t xml:space="preserve">Snark</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Italic-Identity-H" w:hAnsi="OpenSans-Italic-Identity-H"/><w:sz w:val="28.000000"/><w:szCs w:val="21.000000"/></w:rPr><w:t xml:space="preserve">Snark</w:t></w:r>
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Italic" w:hAnsi="OpenSans-Italic"/><w:sz w:val="28.000000"/><w:szCs w:val="21.000000"/></w:rPr><w:t xml:space="preserve">Snark</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Italic-Identity-H" w:hAnsi="OpenSans-Italic-Identity-H"/><w:sz w:val="28.000000"/><w:szCs w:val="21.000000"/></w:rPr><w:t xml:space="preserve">Snark</w:t></w:r>
</w:p>
</w:txbxContent>
@@ -472,32 +528,32 @@
<w:txbxContent>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">There was a young man of </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans-BoldItalic" w:hAnsi="OpenSans-BoldItalic"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">Madras</w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">,</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">There was a young man of </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-BoldItalic-Identity-H" w:hAnsi="OpenSans-BoldItalic-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">Madras</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">,</w:t></w:r>
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">Whose balls were </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Italic" w:hAnsi="OpenSans-Italic"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">constructed </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">of brass,</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">Whose balls were </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Italic-Identity-H" w:hAnsi="OpenSans-Italic-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">constructed </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">of brass,</w:t></w:r>
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">When jangled together,</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">When jangled together,</w:t></w:r>
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">They played &#x201c;</w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Bold" w:hAnsi="OpenSans-Bold"/><w:sz w:val="28.000000"/><w:szCs w:val="21.000000"/></w:rPr><w:t xml:space="preserve">Stormy Weather</w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">&#x201d;,</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">They played &#x201c;</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Bold-Identity-H" w:hAnsi="OpenSans-Bold-Identity-H"/><w:sz w:val="28.000000"/><w:szCs w:val="21.000000"/></w:rPr><w:t xml:space="preserve">Stormy Weather</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">&#x201d;,</w:t></w:r>
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">And </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Italic" w:hAnsi="OpenSans-Italic"/><w:sz w:val="32.000000"/><w:szCs w:val="24.000000"/></w:rPr><w:t xml:space="preserve">lightning</w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Italic" w:hAnsi="OpenSans-Italic"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve"> </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">shot out of his ass.</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">And </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Italic-Identity-H" w:hAnsi="OpenSans-Italic-Identity-H"/><w:sz w:val="32.000000"/><w:szCs w:val="24.000000"/></w:rPr><w:t xml:space="preserve">lightning</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Italic-Identity-H" w:hAnsi="OpenSans-Italic-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve"> </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">shot out of his ass.</w:t></w:r>
</w:p>
</w:txbxContent>
</wps:txbx>
@@ -524,32 +580,32 @@
<w:txbxContent>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">There was a young man of </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans-BoldItalic" w:hAnsi="OpenSans-BoldItalic"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">Madras</w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">,</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">There was a young man of </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-BoldItalic-Identity-H" w:hAnsi="OpenSans-BoldItalic-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">Madras</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">,</w:t></w:r>
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">Whose balls were </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Italic" w:hAnsi="OpenSans-Italic"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">constructed </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">of brass,</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">Whose balls were </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Italic-Identity-H" w:hAnsi="OpenSans-Italic-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">constructed </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">of brass,</w:t></w:r>
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">When jangled together,</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">When jangled together,</w:t></w:r>
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">They played &#x201c;</w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Bold" w:hAnsi="OpenSans-Bold"/><w:sz w:val="28.000000"/><w:szCs w:val="21.000000"/></w:rPr><w:t xml:space="preserve">Stormy Weather</w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">&#x201d;,</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">They played &#x201c;</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Bold-Identity-H" w:hAnsi="OpenSans-Bold-Identity-H"/><w:sz w:val="28.000000"/><w:szCs w:val="21.000000"/></w:rPr><w:t xml:space="preserve">Stormy Weather</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">&#x201d;,</w:t></w:r>
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">And </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Italic" w:hAnsi="OpenSans-Italic"/><w:sz w:val="32.000000"/><w:szCs w:val="24.000000"/></w:rPr><w:t xml:space="preserve">lightning</w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Italic" w:hAnsi="OpenSans-Italic"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve"> </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">shot out of his ass.</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">And </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Italic-Identity-H" w:hAnsi="OpenSans-Italic-Identity-H"/><w:sz w:val="32.000000"/><w:szCs w:val="24.000000"/></w:rPr><w:t xml:space="preserve">lightning</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Italic-Identity-H" w:hAnsi="OpenSans-Italic-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve"> </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">shot out of his ass.</w:t></w:r>
</w:p>
</w:txbxContent>
@@ -596,69 +652,69 @@
<w:txbxContent>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">A Python, I should not advise,</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">A Python, I should not advise,</w:t></w:r>
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">For it needs a doctor for its eyes,</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">For it needs a doctor for its eyes,</w:t></w:r>
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">And has the Measles yearly.</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">And has the Measles yearly.</w:t></w:r>
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">However, if inclined</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">However, if inclined</w:t></w:r>
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">To get one (to improve your mind,</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">To get one (to improve your mind,</w:t></w:r>
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">And not from fashion merely),</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">And not from fashion merely),</w:t></w:r>
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">Allow no </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Italic" w:hAnsi="OpenSans-Italic"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">music</w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve"> near its cage;</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">Allow no </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Italic-Identity-H" w:hAnsi="OpenSans-Italic-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">music</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve"> near its cage;</w:t></w:r>
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">And when it </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Bold" w:hAnsi="OpenSans-Bold"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">flies</w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve"> into a rage</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">And when it </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Bold-Identity-H" w:hAnsi="OpenSans-Bold-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">flies</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve"> into a rage</w:t></w:r>
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">Chastise it, most severely.</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">Chastise it, most severely.</w:t></w:r>
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">I had an Aunt in Yucatan</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">I had an Aunt in Yucatan</w:t></w:r>
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">Who bought a Python from a man</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">Who bought a Python from a man</w:t></w:r>
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">And kept it for a pet.</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">And kept it for a pet.</w:t></w:r>
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">She </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans-BoldItalic" w:hAnsi="OpenSans-BoldItalic"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">died</w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">, because she never knew</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">She </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-BoldItalic-Identity-H" w:hAnsi="OpenSans-BoldItalic-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">died</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">, because she never knew</w:t></w:r>
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">These simple little rules and few; &#x2014;</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">These simple little rules and few; &#x2014;</w:t></w:r>
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">The snake is living yet.</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">The snake is living yet.</w:t></w:r>
</w:p>
</w:txbxContent>
</wps:txbx>
@@ -685,69 +741,69 @@
<w:txbxContent>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">A Python, I should not advise,</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">A Python, I should not advise,</w:t></w:r>
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">For it needs a doctor for its eyes,</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">For it needs a doctor for its eyes,</w:t></w:r>
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">And has the Measles yearly.</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">And has the Measles yearly.</w:t></w:r>
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">However, if inclined</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">However, if inclined</w:t></w:r>
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">To get one (to improve your mind,</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">To get one (to improve your mind,</w:t></w:r>
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">And not from fashion merely),</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">And not from fashion merely),</w:t></w:r>
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">Allow no </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Italic" w:hAnsi="OpenSans-Italic"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">music</w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve"> near its cage;</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">Allow no </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Italic-Identity-H" w:hAnsi="OpenSans-Italic-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">music</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve"> near its cage;</w:t></w:r>
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">And when it </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Bold" w:hAnsi="OpenSans-Bold"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">flies</w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve"> into a rage</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">And when it </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Bold-Identity-H" w:hAnsi="OpenSans-Bold-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">flies</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve"> into a rage</w:t></w:r>
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">Chastise it, most severely.</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">Chastise it, most severely.</w:t></w:r>
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">I had an Aunt in Yucatan</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">I had an Aunt in Yucatan</w:t></w:r>
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">Who bought a Python from a man</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">Who bought a Python from a man</w:t></w:r>
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">And kept it for a pet.</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">And kept it for a pet.</w:t></w:r>
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">She </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans-BoldItalic" w:hAnsi="OpenSans-BoldItalic"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">died</w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">, because she never knew</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">She </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-BoldItalic-Identity-H" w:hAnsi="OpenSans-BoldItalic-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">died</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">, because she never knew</w:t></w:r>
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">These simple little rules and few; &#x2014;</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">These simple little rules and few; &#x2014;</w:t></w:r>
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">The snake is living yet.</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">The snake is living yet.</w:t></w:r>
</w:p>
</w:txbxContent>
@@ -794,7 +850,7 @@
<w:txbxContent>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="28.000000"/><w:szCs w:val="21.000000"/></w:rPr><w:t xml:space="preserve">you feel</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="28.000000"/><w:szCs w:val="21.000000"/></w:rPr><w:t xml:space="preserve">you feel</w:t></w:r>
</w:p>
</w:txbxContent>
</wps:txbx>
@@ -821,7 +877,7 @@
<w:txbxContent>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="28.000000"/><w:szCs w:val="21.000000"/></w:rPr><w:t xml:space="preserve">you feel</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="28.000000"/><w:szCs w:val="21.000000"/></w:rPr><w:t xml:space="preserve">you feel</w:t></w:r>
</w:p>
</w:txbxContent>
diff --git a/extract/test/Python2.pdf.intermediate-gs.xml.extract-autosplit.docx.dir.ref/word/document.xml b/extract/test/Python2.pdf.intermediate-gs.xml.extract-autosplit.docx.dir.ref/word/document.xml
index 32b69d9f..7006f756 100644
--- a/extract/test/Python2.pdf.intermediate-gs.xml.extract-autosplit.docx.dir.ref/word/document.xml
+++ b/extract/test/Python2.pdf.intermediate-gs.xml.extract-autosplit.docx.dir.ref/word/document.xml
@@ -6,13 +6,13 @@
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT" w:hAnsi="TimesNewRomanPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">The crew was complete: it included a </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPS-BoldMT" w:hAnsi="TimesNewRomanPS-BoldMT"/><w:b/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">Boots</w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT" w:hAnsi="TimesNewRomanPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">&#x2014; A maker of Bonnets and Hoods&#x2014; A </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPS-BoldMT" w:hAnsi="TimesNewRomanPS-BoldMT"/><w:b/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">Barrister</w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT" w:hAnsi="TimesNewRomanPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">, brought to arrange their disputes&#x2014; And a </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPS-BoldMT" w:hAnsi="TimesNewRomanPS-BoldMT"/><w:b/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">Broker</w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT" w:hAnsi="TimesNewRomanPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">, to value their goods.</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT-Identity-H" w:hAnsi="TimesNewRomanPSMT-Identity-H"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">The crew was complete: it included a </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPS-BoldMT-Identity-H" w:hAnsi="TimesNewRomanPS-BoldMT-Identity-H"/><w:b/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">Boots</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT-Identity-H" w:hAnsi="TimesNewRomanPSMT-Identity-H"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">&#x2014; A maker of Bonnets and Hoods&#x2014; A </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPS-BoldMT-Identity-H" w:hAnsi="TimesNewRomanPS-BoldMT-Identity-H"/><w:b/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">Barrister</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT-Identity-H" w:hAnsi="TimesNewRomanPSMT-Identity-H"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">, brought to arrange their disputes&#x2014; And a </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPS-BoldMT-Identity-H" w:hAnsi="TimesNewRomanPS-BoldMT-Identity-H"/><w:b/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">Broker</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT-Identity-H" w:hAnsi="TimesNewRomanPSMT-Identity-H"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">, to value their goods.</w:t></w:r>
</w:p>
<w:p>
@@ -20,13 +20,13 @@
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT" w:hAnsi="TimesNewRomanPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">A </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPS-BoldMT" w:hAnsi="TimesNewRomanPS-BoldMT"/><w:b/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">Billiard-marker</w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT" w:hAnsi="TimesNewRomanPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">, whose skill was immense, Might perhaps have won more than his share&#x2014; But a </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPS-BoldMT" w:hAnsi="TimesNewRomanPS-BoldMT"/><w:b/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">Banker</w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT" w:hAnsi="TimesNewRomanPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">, engaged at enormous expense, Had the whole of their </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPS-ItalicMT" w:hAnsi="TimesNewRomanPS-ItalicMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">cash </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT" w:hAnsi="TimesNewRomanPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">in his care.</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT-Identity-H" w:hAnsi="TimesNewRomanPSMT-Identity-H"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">A </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPS-BoldMT-Identity-H" w:hAnsi="TimesNewRomanPS-BoldMT-Identity-H"/><w:b/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">Billiard-marker</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT-Identity-H" w:hAnsi="TimesNewRomanPSMT-Identity-H"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">, whose skill was immense, Might perhaps have won more than his share&#x2014; But a </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPS-BoldMT-Identity-H" w:hAnsi="TimesNewRomanPS-BoldMT-Identity-H"/><w:b/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">Banker</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT-Identity-H" w:hAnsi="TimesNewRomanPSMT-Identity-H"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">, engaged at enormous expense, Had the whole of their </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPS-ItalicMT-Identity-H" w:hAnsi="TimesNewRomanPS-ItalicMT-Identity-H"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">cash </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT-Identity-H" w:hAnsi="TimesNewRomanPSMT-Identity-H"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">in his care.</w:t></w:r>
</w:p>
<w:p>
@@ -34,11 +34,11 @@
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT" w:hAnsi="TimesNewRomanPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">There was also a </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPS-BoldMT" w:hAnsi="TimesNewRomanPS-BoldMT"/><w:b/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">Beaver</w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT" w:hAnsi="TimesNewRomanPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">, that paced on the deck, Or would sit making lace in the bow: And had often (the </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPS-BoldMT" w:hAnsi="TimesNewRomanPS-BoldMT"/><w:b/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">Bellman </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT" w:hAnsi="TimesNewRomanPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">said) saved them from wreck, Though none of the sailors knew how.</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT-Identity-H" w:hAnsi="TimesNewRomanPSMT-Identity-H"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">There was also a </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPS-BoldMT-Identity-H" w:hAnsi="TimesNewRomanPS-BoldMT-Identity-H"/><w:b/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">Beaver</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT-Identity-H" w:hAnsi="TimesNewRomanPSMT-Identity-H"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">, that paced on the deck, Or would sit making lace in the bow: And had often (the </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPS-BoldMT-Identity-H" w:hAnsi="TimesNewRomanPS-BoldMT-Identity-H"/><w:b/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">Bellman </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT-Identity-H" w:hAnsi="TimesNewRomanPSMT-Identity-H"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">said) saved them from wreck, Though none of the sailors knew how.</w:t></w:r>
</w:p>
<w:p>
@@ -50,11 +50,67 @@
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT" w:hAnsi="CourierNewPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">There was one who was famed for the number of things He His umbrella, his watch, all his jewels and rings, </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="CourierNewPS-BoldMT" w:hAnsi="CourierNewPS-BoldMT"/><w:b/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">forgot </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT" w:hAnsi="CourierNewPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve"> And the clothes he had bought for the trip. when he entered the ship: He had </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="CourierNewPS-ItalicMT" w:hAnsi="CourierNewPS-ItalicMT"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">forty-two </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT" w:hAnsi="CourierNewPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">With his name painted clearly on each: But, since he omitted to mention the fact, They were all left behind on the beach. boxes, all carefully packed,</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT-Identity-H" w:hAnsi="CourierNewPSMT-Identity-H"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">There was one who was famed for the number of things</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve"></w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT-Identity-H" w:hAnsi="CourierNewPSMT-Identity-H"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve"> He </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPS-BoldMT-Identity-H" w:hAnsi="CourierNewPS-BoldMT-Identity-H"/><w:b/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">forgot </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT-Identity-H" w:hAnsi="CourierNewPSMT-Identity-H"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">when he entered the ship:</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve"></w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT-Identity-H" w:hAnsi="CourierNewPSMT-Identity-H"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">His umbrella, his watch, all his jewels and rings,</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve"></w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT-Identity-H" w:hAnsi="CourierNewPSMT-Identity-H"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve"> And the clothes he had bought for the trip.</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve"></w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT-Identity-H" w:hAnsi="CourierNewPSMT-Identity-H"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">He had </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPS-ItalicMT-Identity-H" w:hAnsi="CourierNewPS-ItalicMT-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">forty-two </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT-Identity-H" w:hAnsi="CourierNewPSMT-Identity-H"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve"> boxes, all carefully packed,</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve"></w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT-Identity-H" w:hAnsi="CourierNewPSMT-Identity-H"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve"> With his name painted clearly on each:</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve"></w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT-Identity-H" w:hAnsi="CourierNewPSMT-Identity-H"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">But, since he omitted to mention the fact,</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve"></w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT-Identity-H" w:hAnsi="CourierNewPSMT-Identity-H"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve"> They were all left behind on the beach.</w:t></w:r>
</w:p>
<w:p>
@@ -66,11 +122,11 @@
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">&quot;Just the place for a </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Italic" w:hAnsi="OpenSans-Italic"/><w:sz w:val="28.000000"/><w:szCs w:val="21.000000"/></w:rPr><w:t xml:space="preserve">Snark</w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">!&quot; the </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Bold" w:hAnsi="OpenSans-Bold"/><w:b/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">Bellman </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">cried,</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">&quot;Just the place for a </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Italic-Identity-H" w:hAnsi="OpenSans-Italic-Identity-H"/><w:sz w:val="28.000000"/><w:szCs w:val="21.000000"/></w:rPr><w:t xml:space="preserve">Snark</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">!&quot; the </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Bold-Identity-H" w:hAnsi="OpenSans-Bold-Identity-H"/><w:b/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">Bellman </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">cried,</w:t></w:r>
</w:p>
<w:p>
@@ -78,7 +134,7 @@
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve"> As he landed his crew with care;</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve"> As he landed his crew with care;</w:t></w:r>
</w:p>
<w:p>
@@ -86,7 +142,7 @@
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">Supporting each man on the top of the tide</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">Supporting each man on the top of the tide</w:t></w:r>
</w:p>
<w:p>
@@ -94,7 +150,7 @@
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve"> By a finger entwined in his hair.</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve"> By a finger entwined in his hair.</w:t></w:r>
</w:p>
<w:p>
@@ -102,9 +158,9 @@
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">&quot;Just the place for a </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Italic" w:hAnsi="OpenSans-Italic"/><w:sz w:val="28.000000"/><w:szCs w:val="21.000000"/></w:rPr><w:t xml:space="preserve">Snark</w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">! I have said it twice:</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">&quot;Just the place for a </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Italic-Identity-H" w:hAnsi="OpenSans-Italic-Identity-H"/><w:sz w:val="28.000000"/><w:szCs w:val="21.000000"/></w:rPr><w:t xml:space="preserve">Snark</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">! I have said it twice:</w:t></w:r>
</w:p>
<w:p>
@@ -112,7 +168,7 @@
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve"> That alone should encourage the crew.</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve"> That alone should encourage the crew.</w:t></w:r>
</w:p>
<w:p>
@@ -120,9 +176,9 @@
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">Just the place for a </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Italic" w:hAnsi="OpenSans-Italic"/><w:sz w:val="28.000000"/><w:szCs w:val="21.000000"/></w:rPr><w:t xml:space="preserve">Snark</w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">! I have said it thrice:</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">Just the place for a </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Italic-Identity-H" w:hAnsi="OpenSans-Italic-Identity-H"/><w:sz w:val="28.000000"/><w:szCs w:val="21.000000"/></w:rPr><w:t xml:space="preserve">Snark</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">! I have said it thrice:</w:t></w:r>
</w:p>
<w:p>
@@ -130,9 +186,9 @@
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve"> What I tell you </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Bold" w:hAnsi="OpenSans-Bold"/><w:b/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">three </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">times is true.&quot;</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve"> What I tell you </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Bold-Identity-H" w:hAnsi="OpenSans-Bold-Identity-H"/><w:b/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">three </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">times is true.&quot;</w:t></w:r>
</w:p>
<w:p>
@@ -144,9 +200,9 @@
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">There was a young man of </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans-BoldItalic" w:hAnsi="OpenSans-BoldItalic"/><w:b/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">Madras</w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">,</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">There was a young man of </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-BoldItalic-Identity-H" w:hAnsi="OpenSans-BoldItalic-Identity-H"/><w:b/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">Madras</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">,</w:t></w:r>
</w:p>
<w:p>
@@ -154,9 +210,9 @@
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">Whose balls were </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Italic" w:hAnsi="OpenSans-Italic"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">constructed </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">of brass,</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">Whose balls were </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Italic-Identity-H" w:hAnsi="OpenSans-Italic-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">constructed </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">of brass,</w:t></w:r>
</w:p>
<w:p>
@@ -164,7 +220,7 @@
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">When jangled together,</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">When jangled together,</w:t></w:r>
</w:p>
<w:p>
@@ -172,9 +228,9 @@
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">They played &#x201c;</w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Bold" w:hAnsi="OpenSans-Bold"/><w:b/><w:sz w:val="28.000000"/><w:szCs w:val="21.000000"/></w:rPr><w:t xml:space="preserve">Stormy Weather</w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">&#x201d;,</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">They played &#x201c;</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Bold-Identity-H" w:hAnsi="OpenSans-Bold-Identity-H"/><w:b/><w:sz w:val="28.000000"/><w:szCs w:val="21.000000"/></w:rPr><w:t xml:space="preserve">Stormy Weather</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">&#x201d;,</w:t></w:r>
</w:p>
<w:p>
@@ -182,10 +238,10 @@
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">And </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Italic" w:hAnsi="OpenSans-Italic"/><w:sz w:val="32.000000"/><w:szCs w:val="24.000000"/></w:rPr><w:t xml:space="preserve">lightning</w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Italic" w:hAnsi="OpenSans-Italic"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve"> </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">shot out of his ass.</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">And </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Italic-Identity-H" w:hAnsi="OpenSans-Italic-Identity-H"/><w:sz w:val="32.000000"/><w:szCs w:val="24.000000"/></w:rPr><w:t xml:space="preserve">lightning</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Italic-Identity-H" w:hAnsi="OpenSans-Italic-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve"> </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">shot out of his ass.</w:t></w:r>
</w:p>
<w:p>
@@ -197,7 +253,7 @@
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">A Python, I should not advise,</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">A Python, I should not advise,</w:t></w:r>
</w:p>
<w:p>
@@ -205,7 +261,7 @@
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">For it needs a doctor for its eyes,</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">For it needs a doctor for its eyes,</w:t></w:r>
</w:p>
<w:p>
@@ -213,7 +269,7 @@
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">And has the Measles yearly.</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">And has the Measles yearly.</w:t></w:r>
</w:p>
<w:p>
@@ -221,9 +277,9 @@
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">However, if </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="28.000000"/><w:szCs w:val="21.000000"/></w:rPr><w:t xml:space="preserve">you feel</w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve"> inclined</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">However, if </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="28.000000"/><w:szCs w:val="21.000000"/></w:rPr><w:t xml:space="preserve">you feel</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve"> inclined</w:t></w:r>
</w:p>
<w:p>
@@ -231,7 +287,7 @@
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">To get one (to improve your mind,</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">To get one (to improve your mind,</w:t></w:r>
</w:p>
<w:p>
@@ -239,7 +295,7 @@
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">And not from fashion merely),</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">And not from fashion merely),</w:t></w:r>
</w:p>
<w:p>
@@ -247,9 +303,9 @@
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">Allow no </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Italic" w:hAnsi="OpenSans-Italic"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">music</w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve"> near its cage;</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">Allow no </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Italic-Identity-H" w:hAnsi="OpenSans-Italic-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">music</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve"> near its cage;</w:t></w:r>
</w:p>
<w:p>
@@ -257,9 +313,9 @@
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">And when it </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Bold" w:hAnsi="OpenSans-Bold"/><w:b/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">flies</w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve"> into a rage</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">And when it </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Bold-Identity-H" w:hAnsi="OpenSans-Bold-Identity-H"/><w:b/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">flies</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve"> into a rage</w:t></w:r>
</w:p>
<w:p>
@@ -267,7 +323,7 @@
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">Chastise it, most severely.</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">Chastise it, most severely.</w:t></w:r>
</w:p>
<w:p>
@@ -275,7 +331,7 @@
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">I had an Aunt in Yucatan</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">I had an Aunt in Yucatan</w:t></w:r>
</w:p>
<w:p>
@@ -283,7 +339,7 @@
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">Who bought a Python from a man</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">Who bought a Python from a man</w:t></w:r>
</w:p>
<w:p>
@@ -291,7 +347,7 @@
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">And kept it for a pet.</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">And kept it for a pet.</w:t></w:r>
</w:p>
<w:p>
@@ -299,9 +355,9 @@
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">She </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans-BoldItalic" w:hAnsi="OpenSans-BoldItalic"/><w:b/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">died</w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">, because she never knew</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">She </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-BoldItalic-Identity-H" w:hAnsi="OpenSans-BoldItalic-Identity-H"/><w:b/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">died</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">, because she never knew</w:t></w:r>
</w:p>
<w:p>
@@ -309,7 +365,7 @@
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">These simple little rules and few; &#x2014;</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">These simple little rules and few; &#x2014;</w:t></w:r>
</w:p>
<w:p>
@@ -317,5 +373,5 @@
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">The snake is living yet.</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">The snake is living yet.</w:t></w:r>
</w:p></w:body></w:document> \ No newline at end of file
diff --git a/extract/test/Python2.pdf.intermediate-gs.xml.extract-rotate-spacing.docx.dir.ref/word/document.xml b/extract/test/Python2.pdf.intermediate-gs.xml.extract-rotate-spacing.docx.dir.ref/word/document.xml
index a2ae4c0a..870995ef 100644
--- a/extract/test/Python2.pdf.intermediate-gs.xml.extract-rotate-spacing.docx.dir.ref/word/document.xml
+++ b/extract/test/Python2.pdf.intermediate-gs.xml.extract-rotate-spacing.docx.dir.ref/word/document.xml
@@ -40,31 +40,31 @@
<w:txbxContent>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT" w:hAnsi="TimesNewRomanPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">The crew was complete: it included a </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPS-BoldMT" w:hAnsi="TimesNewRomanPS-BoldMT"/><w:b/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">Boots</w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT" w:hAnsi="TimesNewRomanPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">&#x2014; A maker of Bonnets and Hoods&#x2014; A </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPS-BoldMT" w:hAnsi="TimesNewRomanPS-BoldMT"/><w:b/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">Barrister</w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT" w:hAnsi="TimesNewRomanPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">, brought to arrange their disputes&#x2014; And a </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPS-BoldMT" w:hAnsi="TimesNewRomanPS-BoldMT"/><w:b/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">Broker</w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT" w:hAnsi="TimesNewRomanPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">, to value their goods.</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT-Identity-H" w:hAnsi="TimesNewRomanPSMT-Identity-H"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">The crew was complete: it included a </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPS-BoldMT-Identity-H" w:hAnsi="TimesNewRomanPS-BoldMT-Identity-H"/><w:b/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">Boots</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT-Identity-H" w:hAnsi="TimesNewRomanPSMT-Identity-H"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">&#x2014; A maker of Bonnets and Hoods&#x2014; A </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPS-BoldMT-Identity-H" w:hAnsi="TimesNewRomanPS-BoldMT-Identity-H"/><w:b/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">Barrister</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT-Identity-H" w:hAnsi="TimesNewRomanPSMT-Identity-H"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">, brought to arrange their disputes&#x2014; And a </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPS-BoldMT-Identity-H" w:hAnsi="TimesNewRomanPS-BoldMT-Identity-H"/><w:b/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">Broker</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT-Identity-H" w:hAnsi="TimesNewRomanPSMT-Identity-H"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">, to value their goods.</w:t></w:r>
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT" w:hAnsi="TimesNewRomanPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">A </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPS-BoldMT" w:hAnsi="TimesNewRomanPS-BoldMT"/><w:b/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">Billiard-marker</w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT" w:hAnsi="TimesNewRomanPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">, whose skill was immense, Might perhaps have won more than his share&#x2014; But a </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPS-BoldMT" w:hAnsi="TimesNewRomanPS-BoldMT"/><w:b/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">Banker</w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT" w:hAnsi="TimesNewRomanPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">, engaged at enormous expense, Had the whole of their </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPS-ItalicMT" w:hAnsi="TimesNewRomanPS-ItalicMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">cash </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT" w:hAnsi="TimesNewRomanPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">in his care.</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT-Identity-H" w:hAnsi="TimesNewRomanPSMT-Identity-H"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">A </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPS-BoldMT-Identity-H" w:hAnsi="TimesNewRomanPS-BoldMT-Identity-H"/><w:b/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">Billiard-marker</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT-Identity-H" w:hAnsi="TimesNewRomanPSMT-Identity-H"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">, whose skill was immense, Might perhaps have won more than his share&#x2014; But a </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPS-BoldMT-Identity-H" w:hAnsi="TimesNewRomanPS-BoldMT-Identity-H"/><w:b/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">Banker</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT-Identity-H" w:hAnsi="TimesNewRomanPSMT-Identity-H"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">, engaged at enormous expense, Had the whole of their </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPS-ItalicMT-Identity-H" w:hAnsi="TimesNewRomanPS-ItalicMT-Identity-H"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">cash </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT-Identity-H" w:hAnsi="TimesNewRomanPSMT-Identity-H"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">in his care.</w:t></w:r>
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT" w:hAnsi="TimesNewRomanPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">There was also a </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPS-BoldMT" w:hAnsi="TimesNewRomanPS-BoldMT"/><w:b/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">Beaver</w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT" w:hAnsi="TimesNewRomanPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">, that paced on the deck, Or would sit making lace in the bow: And had often (the </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPS-BoldMT" w:hAnsi="TimesNewRomanPS-BoldMT"/><w:b/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">Bellman </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT" w:hAnsi="TimesNewRomanPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">said) saved them from wreck, Though none of the sailors knew how.</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT-Identity-H" w:hAnsi="TimesNewRomanPSMT-Identity-H"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">There was also a </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPS-BoldMT-Identity-H" w:hAnsi="TimesNewRomanPS-BoldMT-Identity-H"/><w:b/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">Beaver</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT-Identity-H" w:hAnsi="TimesNewRomanPSMT-Identity-H"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">, that paced on the deck, Or would sit making lace in the bow: And had often (the </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPS-BoldMT-Identity-H" w:hAnsi="TimesNewRomanPS-BoldMT-Identity-H"/><w:b/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">Bellman </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT-Identity-H" w:hAnsi="TimesNewRomanPSMT-Identity-H"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">said) saved them from wreck, Though none of the sailors knew how.</w:t></w:r>
</w:p>
</w:txbxContent>
</wps:txbx>
@@ -91,31 +91,31 @@
<w:txbxContent>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT" w:hAnsi="TimesNewRomanPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">The crew was complete: it included a </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPS-BoldMT" w:hAnsi="TimesNewRomanPS-BoldMT"/><w:b/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">Boots</w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT" w:hAnsi="TimesNewRomanPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">&#x2014; A maker of Bonnets and Hoods&#x2014; A </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPS-BoldMT" w:hAnsi="TimesNewRomanPS-BoldMT"/><w:b/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">Barrister</w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT" w:hAnsi="TimesNewRomanPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">, brought to arrange their disputes&#x2014; And a </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPS-BoldMT" w:hAnsi="TimesNewRomanPS-BoldMT"/><w:b/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">Broker</w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT" w:hAnsi="TimesNewRomanPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">, to value their goods.</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT-Identity-H" w:hAnsi="TimesNewRomanPSMT-Identity-H"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">The crew was complete: it included a </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPS-BoldMT-Identity-H" w:hAnsi="TimesNewRomanPS-BoldMT-Identity-H"/><w:b/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">Boots</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT-Identity-H" w:hAnsi="TimesNewRomanPSMT-Identity-H"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">&#x2014; A maker of Bonnets and Hoods&#x2014; A </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPS-BoldMT-Identity-H" w:hAnsi="TimesNewRomanPS-BoldMT-Identity-H"/><w:b/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">Barrister</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT-Identity-H" w:hAnsi="TimesNewRomanPSMT-Identity-H"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">, brought to arrange their disputes&#x2014; And a </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPS-BoldMT-Identity-H" w:hAnsi="TimesNewRomanPS-BoldMT-Identity-H"/><w:b/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">Broker</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT-Identity-H" w:hAnsi="TimesNewRomanPSMT-Identity-H"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">, to value their goods.</w:t></w:r>
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT" w:hAnsi="TimesNewRomanPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">A </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPS-BoldMT" w:hAnsi="TimesNewRomanPS-BoldMT"/><w:b/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">Billiard-marker</w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT" w:hAnsi="TimesNewRomanPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">, whose skill was immense, Might perhaps have won more than his share&#x2014; But a </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPS-BoldMT" w:hAnsi="TimesNewRomanPS-BoldMT"/><w:b/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">Banker</w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT" w:hAnsi="TimesNewRomanPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">, engaged at enormous expense, Had the whole of their </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPS-ItalicMT" w:hAnsi="TimesNewRomanPS-ItalicMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">cash </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT" w:hAnsi="TimesNewRomanPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">in his care.</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT-Identity-H" w:hAnsi="TimesNewRomanPSMT-Identity-H"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">A </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPS-BoldMT-Identity-H" w:hAnsi="TimesNewRomanPS-BoldMT-Identity-H"/><w:b/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">Billiard-marker</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT-Identity-H" w:hAnsi="TimesNewRomanPSMT-Identity-H"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">, whose skill was immense, Might perhaps have won more than his share&#x2014; But a </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPS-BoldMT-Identity-H" w:hAnsi="TimesNewRomanPS-BoldMT-Identity-H"/><w:b/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">Banker</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT-Identity-H" w:hAnsi="TimesNewRomanPSMT-Identity-H"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">, engaged at enormous expense, Had the whole of their </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPS-ItalicMT-Identity-H" w:hAnsi="TimesNewRomanPS-ItalicMT-Identity-H"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">cash </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT-Identity-H" w:hAnsi="TimesNewRomanPSMT-Identity-H"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">in his care.</w:t></w:r>
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT" w:hAnsi="TimesNewRomanPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">There was also a </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPS-BoldMT" w:hAnsi="TimesNewRomanPS-BoldMT"/><w:b/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">Beaver</w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT" w:hAnsi="TimesNewRomanPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">, that paced on the deck, Or would sit making lace in the bow: And had often (the </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPS-BoldMT" w:hAnsi="TimesNewRomanPS-BoldMT"/><w:b/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">Bellman </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT" w:hAnsi="TimesNewRomanPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">said) saved them from wreck, Though none of the sailors knew how.</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT-Identity-H" w:hAnsi="TimesNewRomanPSMT-Identity-H"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">There was also a </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPS-BoldMT-Identity-H" w:hAnsi="TimesNewRomanPS-BoldMT-Identity-H"/><w:b/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">Beaver</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT-Identity-H" w:hAnsi="TimesNewRomanPSMT-Identity-H"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">, that paced on the deck, Or would sit making lace in the bow: And had often (the </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPS-BoldMT-Identity-H" w:hAnsi="TimesNewRomanPS-BoldMT-Identity-H"/><w:b/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">Bellman </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT-Identity-H" w:hAnsi="TimesNewRomanPSMT-Identity-H"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">said) saved them from wreck, Though none of the sailors knew how.</w:t></w:r>
</w:p>
</w:txbxContent>
@@ -143,12 +143,12 @@
<wp:anchor distT="0" distB="0" distL="0" distR="0" simplePos="0" relativeHeight="0" behindDoc="0" locked="0" layoutInCell="1" allowOverlap="1" wp14:anchorId="53A210D1" wp14:editId="2B7E8016">
<wp:simplePos x="0" y="0"/>
<wp:positionH relativeFrom="page">
- <wp:posOffset>1630060</wp:posOffset>
+ <wp:posOffset>1589342</wp:posOffset>
</wp:positionH>
<wp:positionV relativeFrom="page">
- <wp:posOffset>1727386</wp:posOffset>
+ <wp:posOffset>-3012175</wp:posOffset>
</wp:positionV>
- <wp:extent cx="4204294" cy="5742838"/>
+ <wp:extent cx="4017949" cy="10484350"/>
<wp:effectExtent l="381000" t="723900" r="371475" b="723900"/>
<wp:wrapNone/>
<wp:docPr id="2" name="Text Box 2"/>
@@ -170,11 +170,39 @@
<w:txbxContent>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT" w:hAnsi="CourierNewPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">There was one who was famed for the number of things He His umbrella, his watch, all his jewels and rings, </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="CourierNewPS-BoldMT" w:hAnsi="CourierNewPS-BoldMT"/><w:b/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">forgot </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT" w:hAnsi="CourierNewPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve"> And the clothes he had bought for the trip. when he entered the ship: He had </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="CourierNewPS-ItalicMT" w:hAnsi="CourierNewPS-ItalicMT"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">forty-two </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT" w:hAnsi="CourierNewPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">With his name painted clearly on each: But, since he omitted to mention the fact, They were all left behind on the beach. boxes, all carefully packed,</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT-Identity-H" w:hAnsi="CourierNewPSMT-Identity-H"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">There was one who was famed for the number of things</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT-Identity-H" w:hAnsi="CourierNewPSMT-Identity-H"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve"> He </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPS-BoldMT-Identity-H" w:hAnsi="CourierNewPS-BoldMT-Identity-H"/><w:b/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">forgot </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT-Identity-H" w:hAnsi="CourierNewPSMT-Identity-H"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">when he entered the ship:</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT-Identity-H" w:hAnsi="CourierNewPSMT-Identity-H"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">His umbrella, his watch, all his jewels and rings,</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT-Identity-H" w:hAnsi="CourierNewPSMT-Identity-H"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve"> And the clothes he had bought for the trip.</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT-Identity-H" w:hAnsi="CourierNewPSMT-Identity-H"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">He had </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPS-ItalicMT-Identity-H" w:hAnsi="CourierNewPS-ItalicMT-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">forty-two </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT-Identity-H" w:hAnsi="CourierNewPSMT-Identity-H"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve"> boxes, all carefully packed,</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT-Identity-H" w:hAnsi="CourierNewPSMT-Identity-H"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve"> With his name painted clearly on each:</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT-Identity-H" w:hAnsi="CourierNewPSMT-Identity-H"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">But, since he omitted to mention the fact,</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT-Identity-H" w:hAnsi="CourierNewPSMT-Identity-H"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve"> They were all left behind on the beach.</w:t></w:r>
</w:p>
</w:txbxContent>
</wps:txbx>
@@ -201,11 +229,39 @@
<w:txbxContent>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT" w:hAnsi="CourierNewPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">There was one who was famed for the number of things He His umbrella, his watch, all his jewels and rings, </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="CourierNewPS-BoldMT" w:hAnsi="CourierNewPS-BoldMT"/><w:b/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">forgot </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT" w:hAnsi="CourierNewPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve"> And the clothes he had bought for the trip. when he entered the ship: He had </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="CourierNewPS-ItalicMT" w:hAnsi="CourierNewPS-ItalicMT"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">forty-two </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT" w:hAnsi="CourierNewPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">With his name painted clearly on each: But, since he omitted to mention the fact, They were all left behind on the beach. boxes, all carefully packed,</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT-Identity-H" w:hAnsi="CourierNewPSMT-Identity-H"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">There was one who was famed for the number of things</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT-Identity-H" w:hAnsi="CourierNewPSMT-Identity-H"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve"> He </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPS-BoldMT-Identity-H" w:hAnsi="CourierNewPS-BoldMT-Identity-H"/><w:b/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">forgot </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT-Identity-H" w:hAnsi="CourierNewPSMT-Identity-H"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">when he entered the ship:</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT-Identity-H" w:hAnsi="CourierNewPSMT-Identity-H"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">His umbrella, his watch, all his jewels and rings,</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT-Identity-H" w:hAnsi="CourierNewPSMT-Identity-H"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve"> And the clothes he had bought for the trip.</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT-Identity-H" w:hAnsi="CourierNewPSMT-Identity-H"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">He had </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPS-ItalicMT-Identity-H" w:hAnsi="CourierNewPS-ItalicMT-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">forty-two </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT-Identity-H" w:hAnsi="CourierNewPSMT-Identity-H"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve"> boxes, all carefully packed,</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT-Identity-H" w:hAnsi="CourierNewPSMT-Identity-H"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve"> With his name painted clearly on each:</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT-Identity-H" w:hAnsi="CourierNewPSMT-Identity-H"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">But, since he omitted to mention the fact,</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT-Identity-H" w:hAnsi="CourierNewPSMT-Identity-H"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve"> They were all left behind on the beach.</w:t></w:r>
</w:p>
</w:txbxContent>
@@ -260,45 +316,45 @@
<w:txbxContent>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">&quot;Just the place for a </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Italic" w:hAnsi="OpenSans-Italic"/><w:sz w:val="28.000000"/><w:szCs w:val="21.000000"/></w:rPr><w:t xml:space="preserve">Snark</w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">!&quot; the </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Bold" w:hAnsi="OpenSans-Bold"/><w:b/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">Bellman </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">cried,</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">&quot;Just the place for a </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Italic-Identity-H" w:hAnsi="OpenSans-Italic-Identity-H"/><w:sz w:val="28.000000"/><w:szCs w:val="21.000000"/></w:rPr><w:t xml:space="preserve">Snark</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">!&quot; the </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Bold-Identity-H" w:hAnsi="OpenSans-Bold-Identity-H"/><w:b/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">Bellman </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">cried,</w:t></w:r>
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve"> As he landed his crew with care;</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve"> As he landed his crew with care;</w:t></w:r>
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">Supporting each man on the top of the tide</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">Supporting each man on the top of the tide</w:t></w:r>
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve"> By a finger entwined in his hair.</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve"> By a finger entwined in his hair.</w:t></w:r>
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">&quot;Just the place for a </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Italic" w:hAnsi="OpenSans-Italic"/><w:sz w:val="28.000000"/><w:szCs w:val="21.000000"/></w:rPr><w:t xml:space="preserve">Snark</w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">! I have said it twice:</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">&quot;Just the place for a </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Italic-Identity-H" w:hAnsi="OpenSans-Italic-Identity-H"/><w:sz w:val="28.000000"/><w:szCs w:val="21.000000"/></w:rPr><w:t xml:space="preserve">Snark</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">! I have said it twice:</w:t></w:r>
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve"> That alone should encourage the crew.</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve"> That alone should encourage the crew.</w:t></w:r>
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">Just the place for a </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Italic" w:hAnsi="OpenSans-Italic"/><w:sz w:val="28.000000"/><w:szCs w:val="21.000000"/></w:rPr><w:t xml:space="preserve">Snark</w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">! I have said it thrice:</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">Just the place for a </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Italic-Identity-H" w:hAnsi="OpenSans-Italic-Identity-H"/><w:sz w:val="28.000000"/><w:szCs w:val="21.000000"/></w:rPr><w:t xml:space="preserve">Snark</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">! I have said it thrice:</w:t></w:r>
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve"> What I tell you </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Bold" w:hAnsi="OpenSans-Bold"/><w:b/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">three </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">times is true.&quot;</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve"> What I tell you </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Bold-Identity-H" w:hAnsi="OpenSans-Bold-Identity-H"/><w:b/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">three </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">times is true.&quot;</w:t></w:r>
</w:p>
</w:txbxContent>
</wps:txbx>
@@ -325,45 +381,45 @@
<w:txbxContent>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">&quot;Just the place for a </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Italic" w:hAnsi="OpenSans-Italic"/><w:sz w:val="28.000000"/><w:szCs w:val="21.000000"/></w:rPr><w:t xml:space="preserve">Snark</w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">!&quot; the </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Bold" w:hAnsi="OpenSans-Bold"/><w:b/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">Bellman </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">cried,</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">&quot;Just the place for a </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Italic-Identity-H" w:hAnsi="OpenSans-Italic-Identity-H"/><w:sz w:val="28.000000"/><w:szCs w:val="21.000000"/></w:rPr><w:t xml:space="preserve">Snark</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">!&quot; the </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Bold-Identity-H" w:hAnsi="OpenSans-Bold-Identity-H"/><w:b/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">Bellman </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">cried,</w:t></w:r>
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve"> As he landed his crew with care;</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve"> As he landed his crew with care;</w:t></w:r>
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">Supporting each man on the top of the tide</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">Supporting each man on the top of the tide</w:t></w:r>
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve"> By a finger entwined in his hair.</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve"> By a finger entwined in his hair.</w:t></w:r>
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">&quot;Just the place for a </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Italic" w:hAnsi="OpenSans-Italic"/><w:sz w:val="28.000000"/><w:szCs w:val="21.000000"/></w:rPr><w:t xml:space="preserve">Snark</w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">! I have said it twice:</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">&quot;Just the place for a </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Italic-Identity-H" w:hAnsi="OpenSans-Italic-Identity-H"/><w:sz w:val="28.000000"/><w:szCs w:val="21.000000"/></w:rPr><w:t xml:space="preserve">Snark</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">! I have said it twice:</w:t></w:r>
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve"> That alone should encourage the crew.</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve"> That alone should encourage the crew.</w:t></w:r>
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">Just the place for a </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Italic" w:hAnsi="OpenSans-Italic"/><w:sz w:val="28.000000"/><w:szCs w:val="21.000000"/></w:rPr><w:t xml:space="preserve">Snark</w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">! I have said it thrice:</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">Just the place for a </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Italic-Identity-H" w:hAnsi="OpenSans-Italic-Identity-H"/><w:sz w:val="28.000000"/><w:szCs w:val="21.000000"/></w:rPr><w:t xml:space="preserve">Snark</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">! I have said it thrice:</w:t></w:r>
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve"> What I tell you </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Bold" w:hAnsi="OpenSans-Bold"/><w:b/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">three </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">times is true.&quot;</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve"> What I tell you </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Bold-Identity-H" w:hAnsi="OpenSans-Bold-Identity-H"/><w:b/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">three </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">times is true.&quot;</w:t></w:r>
</w:p>
</w:txbxContent>
@@ -418,32 +474,32 @@
<w:txbxContent>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">There was a young man of </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans-BoldItalic" w:hAnsi="OpenSans-BoldItalic"/><w:b/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">Madras</w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">,</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">There was a young man of </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-BoldItalic-Identity-H" w:hAnsi="OpenSans-BoldItalic-Identity-H"/><w:b/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">Madras</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">,</w:t></w:r>
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">Whose balls were </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Italic" w:hAnsi="OpenSans-Italic"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">constructed </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">of brass,</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">Whose balls were </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Italic-Identity-H" w:hAnsi="OpenSans-Italic-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">constructed </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">of brass,</w:t></w:r>
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">When jangled together,</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">When jangled together,</w:t></w:r>
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">They played &#x201c;</w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Bold" w:hAnsi="OpenSans-Bold"/><w:b/><w:sz w:val="28.000000"/><w:szCs w:val="21.000000"/></w:rPr><w:t xml:space="preserve">Stormy Weather</w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">&#x201d;,</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">They played &#x201c;</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Bold-Identity-H" w:hAnsi="OpenSans-Bold-Identity-H"/><w:b/><w:sz w:val="28.000000"/><w:szCs w:val="21.000000"/></w:rPr><w:t xml:space="preserve">Stormy Weather</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">&#x201d;,</w:t></w:r>
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">And </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Italic" w:hAnsi="OpenSans-Italic"/><w:sz w:val="32.000000"/><w:szCs w:val="24.000000"/></w:rPr><w:t xml:space="preserve">lightning</w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Italic" w:hAnsi="OpenSans-Italic"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve"> </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">shot out of his ass.</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">And </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Italic-Identity-H" w:hAnsi="OpenSans-Italic-Identity-H"/><w:sz w:val="32.000000"/><w:szCs w:val="24.000000"/></w:rPr><w:t xml:space="preserve">lightning</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Italic-Identity-H" w:hAnsi="OpenSans-Italic-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve"> </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">shot out of his ass.</w:t></w:r>
</w:p>
</w:txbxContent>
</wps:txbx>
@@ -470,32 +526,32 @@
<w:txbxContent>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">There was a young man of </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans-BoldItalic" w:hAnsi="OpenSans-BoldItalic"/><w:b/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">Madras</w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">,</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">There was a young man of </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-BoldItalic-Identity-H" w:hAnsi="OpenSans-BoldItalic-Identity-H"/><w:b/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">Madras</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">,</w:t></w:r>
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">Whose balls were </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Italic" w:hAnsi="OpenSans-Italic"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">constructed </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">of brass,</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">Whose balls were </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Italic-Identity-H" w:hAnsi="OpenSans-Italic-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">constructed </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">of brass,</w:t></w:r>
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">When jangled together,</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">When jangled together,</w:t></w:r>
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">They played &#x201c;</w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Bold" w:hAnsi="OpenSans-Bold"/><w:b/><w:sz w:val="28.000000"/><w:szCs w:val="21.000000"/></w:rPr><w:t xml:space="preserve">Stormy Weather</w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">&#x201d;,</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">They played &#x201c;</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Bold-Identity-H" w:hAnsi="OpenSans-Bold-Identity-H"/><w:b/><w:sz w:val="28.000000"/><w:szCs w:val="21.000000"/></w:rPr><w:t xml:space="preserve">Stormy Weather</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">&#x201d;,</w:t></w:r>
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">And </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Italic" w:hAnsi="OpenSans-Italic"/><w:sz w:val="32.000000"/><w:szCs w:val="24.000000"/></w:rPr><w:t xml:space="preserve">lightning</w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Italic" w:hAnsi="OpenSans-Italic"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve"> </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">shot out of his ass.</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">And </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Italic-Identity-H" w:hAnsi="OpenSans-Italic-Identity-H"/><w:sz w:val="32.000000"/><w:szCs w:val="24.000000"/></w:rPr><w:t xml:space="preserve">lightning</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Italic-Identity-H" w:hAnsi="OpenSans-Italic-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve"> </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">shot out of his ass.</w:t></w:r>
</w:p>
</w:txbxContent>
@@ -550,71 +606,71 @@
<w:txbxContent>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">A Python, I should not advise,</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">A Python, I should not advise,</w:t></w:r>
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">For it needs a doctor for its eyes,</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">For it needs a doctor for its eyes,</w:t></w:r>
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">And has the Measles yearly.</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">And has the Measles yearly.</w:t></w:r>
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">However, if </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="28.000000"/><w:szCs w:val="21.000000"/></w:rPr><w:t xml:space="preserve">you feel</w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve"> inclined</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">However, if </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="28.000000"/><w:szCs w:val="21.000000"/></w:rPr><w:t xml:space="preserve">you feel</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve"> inclined</w:t></w:r>
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">To get one (to improve your mind,</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">To get one (to improve your mind,</w:t></w:r>
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">And not from fashion merely),</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">And not from fashion merely),</w:t></w:r>
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">Allow no </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Italic" w:hAnsi="OpenSans-Italic"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">music</w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve"> near its cage;</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">Allow no </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Italic-Identity-H" w:hAnsi="OpenSans-Italic-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">music</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve"> near its cage;</w:t></w:r>
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">And when it </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Bold" w:hAnsi="OpenSans-Bold"/><w:b/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">flies</w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve"> into a rage</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">And when it </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Bold-Identity-H" w:hAnsi="OpenSans-Bold-Identity-H"/><w:b/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">flies</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve"> into a rage</w:t></w:r>
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">Chastise it, most severely.</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">Chastise it, most severely.</w:t></w:r>
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">I had an Aunt in Yucatan</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">I had an Aunt in Yucatan</w:t></w:r>
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">Who bought a Python from a man</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">Who bought a Python from a man</w:t></w:r>
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">And kept it for a pet.</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">And kept it for a pet.</w:t></w:r>
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">She </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans-BoldItalic" w:hAnsi="OpenSans-BoldItalic"/><w:b/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">died</w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">, because she never knew</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">She </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-BoldItalic-Identity-H" w:hAnsi="OpenSans-BoldItalic-Identity-H"/><w:b/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">died</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">, because she never knew</w:t></w:r>
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">These simple little rules and few; &#x2014;</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">These simple little rules and few; &#x2014;</w:t></w:r>
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">The snake is living yet.</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">The snake is living yet.</w:t></w:r>
</w:p>
</w:txbxContent>
</wps:txbx>
@@ -641,71 +697,71 @@
<w:txbxContent>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">A Python, I should not advise,</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">A Python, I should not advise,</w:t></w:r>
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">For it needs a doctor for its eyes,</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">For it needs a doctor for its eyes,</w:t></w:r>
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">And has the Measles yearly.</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">And has the Measles yearly.</w:t></w:r>
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">However, if </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="28.000000"/><w:szCs w:val="21.000000"/></w:rPr><w:t xml:space="preserve">you feel</w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve"> inclined</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">However, if </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="28.000000"/><w:szCs w:val="21.000000"/></w:rPr><w:t xml:space="preserve">you feel</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve"> inclined</w:t></w:r>
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">To get one (to improve your mind,</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">To get one (to improve your mind,</w:t></w:r>
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">And not from fashion merely),</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">And not from fashion merely),</w:t></w:r>
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">Allow no </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Italic" w:hAnsi="OpenSans-Italic"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">music</w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve"> near its cage;</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">Allow no </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Italic-Identity-H" w:hAnsi="OpenSans-Italic-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">music</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve"> near its cage;</w:t></w:r>
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">And when it </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Bold" w:hAnsi="OpenSans-Bold"/><w:b/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">flies</w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve"> into a rage</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">And when it </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Bold-Identity-H" w:hAnsi="OpenSans-Bold-Identity-H"/><w:b/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">flies</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve"> into a rage</w:t></w:r>
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">Chastise it, most severely.</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">Chastise it, most severely.</w:t></w:r>
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">I had an Aunt in Yucatan</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">I had an Aunt in Yucatan</w:t></w:r>
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">Who bought a Python from a man</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">Who bought a Python from a man</w:t></w:r>
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">And kept it for a pet.</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">And kept it for a pet.</w:t></w:r>
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">She </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans-BoldItalic" w:hAnsi="OpenSans-BoldItalic"/><w:b/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">died</w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">, because she never knew</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">She </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-BoldItalic-Identity-H" w:hAnsi="OpenSans-BoldItalic-Identity-H"/><w:b/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">died</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">, because she never knew</w:t></w:r>
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">These simple little rules and few; &#x2014;</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">These simple little rules and few; &#x2014;</w:t></w:r>
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">The snake is living yet.</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">The snake is living yet.</w:t></w:r>
</w:p>
</w:txbxContent>
diff --git a/extract/test/Python2.pdf.intermediate-gs.xml.extract-rotate.docx.dir.ref/word/document.xml b/extract/test/Python2.pdf.intermediate-gs.xml.extract-rotate.docx.dir.ref/word/document.xml
index 7285c2ae..a89f68e8 100644
--- a/extract/test/Python2.pdf.intermediate-gs.xml.extract-rotate.docx.dir.ref/word/document.xml
+++ b/extract/test/Python2.pdf.intermediate-gs.xml.extract-rotate.docx.dir.ref/word/document.xml
@@ -36,31 +36,31 @@
<w:txbxContent>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT" w:hAnsi="TimesNewRomanPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">The crew was complete: it included a </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPS-BoldMT" w:hAnsi="TimesNewRomanPS-BoldMT"/><w:b/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">Boots</w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT" w:hAnsi="TimesNewRomanPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">&#x2014; A maker of Bonnets and Hoods&#x2014; A </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPS-BoldMT" w:hAnsi="TimesNewRomanPS-BoldMT"/><w:b/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">Barrister</w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT" w:hAnsi="TimesNewRomanPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">, brought to arrange their disputes&#x2014; And a </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPS-BoldMT" w:hAnsi="TimesNewRomanPS-BoldMT"/><w:b/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">Broker</w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT" w:hAnsi="TimesNewRomanPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">, to value their goods.</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT-Identity-H" w:hAnsi="TimesNewRomanPSMT-Identity-H"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">The crew was complete: it included a </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPS-BoldMT-Identity-H" w:hAnsi="TimesNewRomanPS-BoldMT-Identity-H"/><w:b/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">Boots</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT-Identity-H" w:hAnsi="TimesNewRomanPSMT-Identity-H"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">&#x2014; A maker of Bonnets and Hoods&#x2014; A </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPS-BoldMT-Identity-H" w:hAnsi="TimesNewRomanPS-BoldMT-Identity-H"/><w:b/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">Barrister</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT-Identity-H" w:hAnsi="TimesNewRomanPSMT-Identity-H"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">, brought to arrange their disputes&#x2014; And a </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPS-BoldMT-Identity-H" w:hAnsi="TimesNewRomanPS-BoldMT-Identity-H"/><w:b/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">Broker</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT-Identity-H" w:hAnsi="TimesNewRomanPSMT-Identity-H"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">, to value their goods.</w:t></w:r>
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT" w:hAnsi="TimesNewRomanPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">A </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPS-BoldMT" w:hAnsi="TimesNewRomanPS-BoldMT"/><w:b/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">Billiard-marker</w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT" w:hAnsi="TimesNewRomanPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">, whose skill was immense, Might perhaps have won more than his share&#x2014; But a </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPS-BoldMT" w:hAnsi="TimesNewRomanPS-BoldMT"/><w:b/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">Banker</w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT" w:hAnsi="TimesNewRomanPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">, engaged at enormous expense, Had the whole of their </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPS-ItalicMT" w:hAnsi="TimesNewRomanPS-ItalicMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">cash </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT" w:hAnsi="TimesNewRomanPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">in his care.</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT-Identity-H" w:hAnsi="TimesNewRomanPSMT-Identity-H"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">A </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPS-BoldMT-Identity-H" w:hAnsi="TimesNewRomanPS-BoldMT-Identity-H"/><w:b/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">Billiard-marker</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT-Identity-H" w:hAnsi="TimesNewRomanPSMT-Identity-H"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">, whose skill was immense, Might perhaps have won more than his share&#x2014; But a </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPS-BoldMT-Identity-H" w:hAnsi="TimesNewRomanPS-BoldMT-Identity-H"/><w:b/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">Banker</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT-Identity-H" w:hAnsi="TimesNewRomanPSMT-Identity-H"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">, engaged at enormous expense, Had the whole of their </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPS-ItalicMT-Identity-H" w:hAnsi="TimesNewRomanPS-ItalicMT-Identity-H"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">cash </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT-Identity-H" w:hAnsi="TimesNewRomanPSMT-Identity-H"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">in his care.</w:t></w:r>
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT" w:hAnsi="TimesNewRomanPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">There was also a </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPS-BoldMT" w:hAnsi="TimesNewRomanPS-BoldMT"/><w:b/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">Beaver</w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT" w:hAnsi="TimesNewRomanPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">, that paced on the deck, Or would sit making lace in the bow: And had often (the </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPS-BoldMT" w:hAnsi="TimesNewRomanPS-BoldMT"/><w:b/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">Bellman </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT" w:hAnsi="TimesNewRomanPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">said) saved them from wreck, Though none of the sailors knew how.</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT-Identity-H" w:hAnsi="TimesNewRomanPSMT-Identity-H"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">There was also a </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPS-BoldMT-Identity-H" w:hAnsi="TimesNewRomanPS-BoldMT-Identity-H"/><w:b/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">Beaver</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT-Identity-H" w:hAnsi="TimesNewRomanPSMT-Identity-H"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">, that paced on the deck, Or would sit making lace in the bow: And had often (the </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPS-BoldMT-Identity-H" w:hAnsi="TimesNewRomanPS-BoldMT-Identity-H"/><w:b/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">Bellman </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT-Identity-H" w:hAnsi="TimesNewRomanPSMT-Identity-H"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">said) saved them from wreck, Though none of the sailors knew how.</w:t></w:r>
</w:p>
</w:txbxContent>
</wps:txbx>
@@ -87,31 +87,31 @@
<w:txbxContent>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT" w:hAnsi="TimesNewRomanPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">The crew was complete: it included a </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPS-BoldMT" w:hAnsi="TimesNewRomanPS-BoldMT"/><w:b/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">Boots</w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT" w:hAnsi="TimesNewRomanPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">&#x2014; A maker of Bonnets and Hoods&#x2014; A </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPS-BoldMT" w:hAnsi="TimesNewRomanPS-BoldMT"/><w:b/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">Barrister</w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT" w:hAnsi="TimesNewRomanPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">, brought to arrange their disputes&#x2014; And a </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPS-BoldMT" w:hAnsi="TimesNewRomanPS-BoldMT"/><w:b/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">Broker</w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT" w:hAnsi="TimesNewRomanPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">, to value their goods.</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT-Identity-H" w:hAnsi="TimesNewRomanPSMT-Identity-H"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">The crew was complete: it included a </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPS-BoldMT-Identity-H" w:hAnsi="TimesNewRomanPS-BoldMT-Identity-H"/><w:b/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">Boots</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT-Identity-H" w:hAnsi="TimesNewRomanPSMT-Identity-H"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">&#x2014; A maker of Bonnets and Hoods&#x2014; A </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPS-BoldMT-Identity-H" w:hAnsi="TimesNewRomanPS-BoldMT-Identity-H"/><w:b/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">Barrister</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT-Identity-H" w:hAnsi="TimesNewRomanPSMT-Identity-H"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">, brought to arrange their disputes&#x2014; And a </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPS-BoldMT-Identity-H" w:hAnsi="TimesNewRomanPS-BoldMT-Identity-H"/><w:b/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">Broker</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT-Identity-H" w:hAnsi="TimesNewRomanPSMT-Identity-H"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">, to value their goods.</w:t></w:r>
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT" w:hAnsi="TimesNewRomanPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">A </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPS-BoldMT" w:hAnsi="TimesNewRomanPS-BoldMT"/><w:b/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">Billiard-marker</w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT" w:hAnsi="TimesNewRomanPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">, whose skill was immense, Might perhaps have won more than his share&#x2014; But a </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPS-BoldMT" w:hAnsi="TimesNewRomanPS-BoldMT"/><w:b/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">Banker</w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT" w:hAnsi="TimesNewRomanPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">, engaged at enormous expense, Had the whole of their </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPS-ItalicMT" w:hAnsi="TimesNewRomanPS-ItalicMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">cash </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT" w:hAnsi="TimesNewRomanPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">in his care.</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT-Identity-H" w:hAnsi="TimesNewRomanPSMT-Identity-H"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">A </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPS-BoldMT-Identity-H" w:hAnsi="TimesNewRomanPS-BoldMT-Identity-H"/><w:b/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">Billiard-marker</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT-Identity-H" w:hAnsi="TimesNewRomanPSMT-Identity-H"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">, whose skill was immense, Might perhaps have won more than his share&#x2014; But a </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPS-BoldMT-Identity-H" w:hAnsi="TimesNewRomanPS-BoldMT-Identity-H"/><w:b/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">Banker</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT-Identity-H" w:hAnsi="TimesNewRomanPSMT-Identity-H"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">, engaged at enormous expense, Had the whole of their </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPS-ItalicMT-Identity-H" w:hAnsi="TimesNewRomanPS-ItalicMT-Identity-H"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">cash </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT-Identity-H" w:hAnsi="TimesNewRomanPSMT-Identity-H"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">in his care.</w:t></w:r>
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT" w:hAnsi="TimesNewRomanPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">There was also a </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPS-BoldMT" w:hAnsi="TimesNewRomanPS-BoldMT"/><w:b/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">Beaver</w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT" w:hAnsi="TimesNewRomanPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">, that paced on the deck, Or would sit making lace in the bow: And had often (the </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPS-BoldMT" w:hAnsi="TimesNewRomanPS-BoldMT"/><w:b/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">Bellman </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT" w:hAnsi="TimesNewRomanPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">said) saved them from wreck, Though none of the sailors knew how.</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT-Identity-H" w:hAnsi="TimesNewRomanPSMT-Identity-H"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">There was also a </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPS-BoldMT-Identity-H" w:hAnsi="TimesNewRomanPS-BoldMT-Identity-H"/><w:b/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">Beaver</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT-Identity-H" w:hAnsi="TimesNewRomanPSMT-Identity-H"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">, that paced on the deck, Or would sit making lace in the bow: And had often (the </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPS-BoldMT-Identity-H" w:hAnsi="TimesNewRomanPS-BoldMT-Identity-H"/><w:b/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">Bellman </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT-Identity-H" w:hAnsi="TimesNewRomanPSMT-Identity-H"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">said) saved them from wreck, Though none of the sailors knew how.</w:t></w:r>
</w:p>
</w:txbxContent>
@@ -131,12 +131,12 @@
<wp:anchor distT="0" distB="0" distL="0" distR="0" simplePos="0" relativeHeight="0" behindDoc="0" locked="0" layoutInCell="1" allowOverlap="1" wp14:anchorId="53A210D1" wp14:editId="2B7E8016">
<wp:simplePos x="0" y="0"/>
<wp:positionH relativeFrom="page">
- <wp:posOffset>1630060</wp:posOffset>
+ <wp:posOffset>1589342</wp:posOffset>
</wp:positionH>
<wp:positionV relativeFrom="page">
- <wp:posOffset>1727386</wp:posOffset>
+ <wp:posOffset>-3012175</wp:posOffset>
</wp:positionV>
- <wp:extent cx="4204294" cy="5742838"/>
+ <wp:extent cx="4017949" cy="10484350"/>
<wp:effectExtent l="381000" t="723900" r="371475" b="723900"/>
<wp:wrapNone/>
<wp:docPr id="2" name="Text Box 2"/>
@@ -158,11 +158,39 @@
<w:txbxContent>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT" w:hAnsi="CourierNewPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">There was one who was famed for the number of things He His umbrella, his watch, all his jewels and rings, </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="CourierNewPS-BoldMT" w:hAnsi="CourierNewPS-BoldMT"/><w:b/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">forgot </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT" w:hAnsi="CourierNewPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve"> And the clothes he had bought for the trip. when he entered the ship: He had </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="CourierNewPS-ItalicMT" w:hAnsi="CourierNewPS-ItalicMT"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">forty-two </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT" w:hAnsi="CourierNewPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">With his name painted clearly on each: But, since he omitted to mention the fact, They were all left behind on the beach. boxes, all carefully packed,</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT-Identity-H" w:hAnsi="CourierNewPSMT-Identity-H"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">There was one who was famed for the number of things</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT-Identity-H" w:hAnsi="CourierNewPSMT-Identity-H"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve"> He </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPS-BoldMT-Identity-H" w:hAnsi="CourierNewPS-BoldMT-Identity-H"/><w:b/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">forgot </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT-Identity-H" w:hAnsi="CourierNewPSMT-Identity-H"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">when he entered the ship:</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT-Identity-H" w:hAnsi="CourierNewPSMT-Identity-H"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">His umbrella, his watch, all his jewels and rings,</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT-Identity-H" w:hAnsi="CourierNewPSMT-Identity-H"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve"> And the clothes he had bought for the trip.</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT-Identity-H" w:hAnsi="CourierNewPSMT-Identity-H"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">He had </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPS-ItalicMT-Identity-H" w:hAnsi="CourierNewPS-ItalicMT-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">forty-two </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT-Identity-H" w:hAnsi="CourierNewPSMT-Identity-H"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve"> boxes, all carefully packed,</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT-Identity-H" w:hAnsi="CourierNewPSMT-Identity-H"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve"> With his name painted clearly on each:</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT-Identity-H" w:hAnsi="CourierNewPSMT-Identity-H"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">But, since he omitted to mention the fact,</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT-Identity-H" w:hAnsi="CourierNewPSMT-Identity-H"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve"> They were all left behind on the beach.</w:t></w:r>
</w:p>
</w:txbxContent>
</wps:txbx>
@@ -189,11 +217,39 @@
<w:txbxContent>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT" w:hAnsi="CourierNewPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">There was one who was famed for the number of things He His umbrella, his watch, all his jewels and rings, </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="CourierNewPS-BoldMT" w:hAnsi="CourierNewPS-BoldMT"/><w:b/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">forgot </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT" w:hAnsi="CourierNewPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve"> And the clothes he had bought for the trip. when he entered the ship: He had </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="CourierNewPS-ItalicMT" w:hAnsi="CourierNewPS-ItalicMT"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">forty-two </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT" w:hAnsi="CourierNewPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">With his name painted clearly on each: But, since he omitted to mention the fact, They were all left behind on the beach. boxes, all carefully packed,</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT-Identity-H" w:hAnsi="CourierNewPSMT-Identity-H"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">There was one who was famed for the number of things</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT-Identity-H" w:hAnsi="CourierNewPSMT-Identity-H"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve"> He </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPS-BoldMT-Identity-H" w:hAnsi="CourierNewPS-BoldMT-Identity-H"/><w:b/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">forgot </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT-Identity-H" w:hAnsi="CourierNewPSMT-Identity-H"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">when he entered the ship:</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT-Identity-H" w:hAnsi="CourierNewPSMT-Identity-H"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">His umbrella, his watch, all his jewels and rings,</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT-Identity-H" w:hAnsi="CourierNewPSMT-Identity-H"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve"> And the clothes he had bought for the trip.</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT-Identity-H" w:hAnsi="CourierNewPSMT-Identity-H"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">He had </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPS-ItalicMT-Identity-H" w:hAnsi="CourierNewPS-ItalicMT-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">forty-two </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT-Identity-H" w:hAnsi="CourierNewPSMT-Identity-H"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve"> boxes, all carefully packed,</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT-Identity-H" w:hAnsi="CourierNewPSMT-Identity-H"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve"> With his name painted clearly on each:</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT-Identity-H" w:hAnsi="CourierNewPSMT-Identity-H"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">But, since he omitted to mention the fact,</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT-Identity-H" w:hAnsi="CourierNewPSMT-Identity-H"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve"> They were all left behind on the beach.</w:t></w:r>
</w:p>
</w:txbxContent>
@@ -240,45 +296,45 @@
<w:txbxContent>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">&quot;Just the place for a </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Italic" w:hAnsi="OpenSans-Italic"/><w:sz w:val="28.000000"/><w:szCs w:val="21.000000"/></w:rPr><w:t xml:space="preserve">Snark</w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">!&quot; the </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Bold" w:hAnsi="OpenSans-Bold"/><w:b/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">Bellman </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">cried,</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">&quot;Just the place for a </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Italic-Identity-H" w:hAnsi="OpenSans-Italic-Identity-H"/><w:sz w:val="28.000000"/><w:szCs w:val="21.000000"/></w:rPr><w:t xml:space="preserve">Snark</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">!&quot; the </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Bold-Identity-H" w:hAnsi="OpenSans-Bold-Identity-H"/><w:b/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">Bellman </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">cried,</w:t></w:r>
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve"> As he landed his crew with care;</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve"> As he landed his crew with care;</w:t></w:r>
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">Supporting each man on the top of the tide</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">Supporting each man on the top of the tide</w:t></w:r>
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve"> By a finger entwined in his hair.</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve"> By a finger entwined in his hair.</w:t></w:r>
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">&quot;Just the place for a </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Italic" w:hAnsi="OpenSans-Italic"/><w:sz w:val="28.000000"/><w:szCs w:val="21.000000"/></w:rPr><w:t xml:space="preserve">Snark</w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">! I have said it twice:</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">&quot;Just the place for a </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Italic-Identity-H" w:hAnsi="OpenSans-Italic-Identity-H"/><w:sz w:val="28.000000"/><w:szCs w:val="21.000000"/></w:rPr><w:t xml:space="preserve">Snark</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">! I have said it twice:</w:t></w:r>
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve"> That alone should encourage the crew.</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve"> That alone should encourage the crew.</w:t></w:r>
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">Just the place for a </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Italic" w:hAnsi="OpenSans-Italic"/><w:sz w:val="28.000000"/><w:szCs w:val="21.000000"/></w:rPr><w:t xml:space="preserve">Snark</w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">! I have said it thrice:</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">Just the place for a </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Italic-Identity-H" w:hAnsi="OpenSans-Italic-Identity-H"/><w:sz w:val="28.000000"/><w:szCs w:val="21.000000"/></w:rPr><w:t xml:space="preserve">Snark</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">! I have said it thrice:</w:t></w:r>
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve"> What I tell you </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Bold" w:hAnsi="OpenSans-Bold"/><w:b/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">three </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">times is true.&quot;</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve"> What I tell you </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Bold-Identity-H" w:hAnsi="OpenSans-Bold-Identity-H"/><w:b/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">three </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">times is true.&quot;</w:t></w:r>
</w:p>
</w:txbxContent>
</wps:txbx>
@@ -305,45 +361,45 @@
<w:txbxContent>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">&quot;Just the place for a </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Italic" w:hAnsi="OpenSans-Italic"/><w:sz w:val="28.000000"/><w:szCs w:val="21.000000"/></w:rPr><w:t xml:space="preserve">Snark</w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">!&quot; the </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Bold" w:hAnsi="OpenSans-Bold"/><w:b/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">Bellman </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">cried,</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">&quot;Just the place for a </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Italic-Identity-H" w:hAnsi="OpenSans-Italic-Identity-H"/><w:sz w:val="28.000000"/><w:szCs w:val="21.000000"/></w:rPr><w:t xml:space="preserve">Snark</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">!&quot; the </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Bold-Identity-H" w:hAnsi="OpenSans-Bold-Identity-H"/><w:b/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">Bellman </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">cried,</w:t></w:r>
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve"> As he landed his crew with care;</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve"> As he landed his crew with care;</w:t></w:r>
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">Supporting each man on the top of the tide</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">Supporting each man on the top of the tide</w:t></w:r>
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve"> By a finger entwined in his hair.</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve"> By a finger entwined in his hair.</w:t></w:r>
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">&quot;Just the place for a </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Italic" w:hAnsi="OpenSans-Italic"/><w:sz w:val="28.000000"/><w:szCs w:val="21.000000"/></w:rPr><w:t xml:space="preserve">Snark</w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">! I have said it twice:</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">&quot;Just the place for a </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Italic-Identity-H" w:hAnsi="OpenSans-Italic-Identity-H"/><w:sz w:val="28.000000"/><w:szCs w:val="21.000000"/></w:rPr><w:t xml:space="preserve">Snark</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">! I have said it twice:</w:t></w:r>
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve"> That alone should encourage the crew.</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve"> That alone should encourage the crew.</w:t></w:r>
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">Just the place for a </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Italic" w:hAnsi="OpenSans-Italic"/><w:sz w:val="28.000000"/><w:szCs w:val="21.000000"/></w:rPr><w:t xml:space="preserve">Snark</w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">! I have said it thrice:</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">Just the place for a </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Italic-Identity-H" w:hAnsi="OpenSans-Italic-Identity-H"/><w:sz w:val="28.000000"/><w:szCs w:val="21.000000"/></w:rPr><w:t xml:space="preserve">Snark</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">! I have said it thrice:</w:t></w:r>
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve"> What I tell you </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Bold" w:hAnsi="OpenSans-Bold"/><w:b/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">three </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">times is true.&quot;</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve"> What I tell you </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Bold-Identity-H" w:hAnsi="OpenSans-Bold-Identity-H"/><w:b/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">three </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">times is true.&quot;</w:t></w:r>
</w:p>
</w:txbxContent>
@@ -390,32 +446,32 @@
<w:txbxContent>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">There was a young man of </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans-BoldItalic" w:hAnsi="OpenSans-BoldItalic"/><w:b/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">Madras</w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">,</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">There was a young man of </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-BoldItalic-Identity-H" w:hAnsi="OpenSans-BoldItalic-Identity-H"/><w:b/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">Madras</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">,</w:t></w:r>
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">Whose balls were </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Italic" w:hAnsi="OpenSans-Italic"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">constructed </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">of brass,</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">Whose balls were </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Italic-Identity-H" w:hAnsi="OpenSans-Italic-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">constructed </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">of brass,</w:t></w:r>
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">When jangled together,</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">When jangled together,</w:t></w:r>
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">They played &#x201c;</w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Bold" w:hAnsi="OpenSans-Bold"/><w:b/><w:sz w:val="28.000000"/><w:szCs w:val="21.000000"/></w:rPr><w:t xml:space="preserve">Stormy Weather</w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">&#x201d;,</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">They played &#x201c;</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Bold-Identity-H" w:hAnsi="OpenSans-Bold-Identity-H"/><w:b/><w:sz w:val="28.000000"/><w:szCs w:val="21.000000"/></w:rPr><w:t xml:space="preserve">Stormy Weather</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">&#x201d;,</w:t></w:r>
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">And </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Italic" w:hAnsi="OpenSans-Italic"/><w:sz w:val="32.000000"/><w:szCs w:val="24.000000"/></w:rPr><w:t xml:space="preserve">lightning</w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Italic" w:hAnsi="OpenSans-Italic"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve"> </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">shot out of his ass.</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">And </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Italic-Identity-H" w:hAnsi="OpenSans-Italic-Identity-H"/><w:sz w:val="32.000000"/><w:szCs w:val="24.000000"/></w:rPr><w:t xml:space="preserve">lightning</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Italic-Identity-H" w:hAnsi="OpenSans-Italic-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve"> </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">shot out of his ass.</w:t></w:r>
</w:p>
</w:txbxContent>
</wps:txbx>
@@ -442,32 +498,32 @@
<w:txbxContent>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">There was a young man of </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans-BoldItalic" w:hAnsi="OpenSans-BoldItalic"/><w:b/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">Madras</w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">,</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">There was a young man of </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-BoldItalic-Identity-H" w:hAnsi="OpenSans-BoldItalic-Identity-H"/><w:b/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">Madras</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">,</w:t></w:r>
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">Whose balls were </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Italic" w:hAnsi="OpenSans-Italic"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">constructed </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">of brass,</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">Whose balls were </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Italic-Identity-H" w:hAnsi="OpenSans-Italic-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">constructed </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">of brass,</w:t></w:r>
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">When jangled together,</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">When jangled together,</w:t></w:r>
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">They played &#x201c;</w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Bold" w:hAnsi="OpenSans-Bold"/><w:b/><w:sz w:val="28.000000"/><w:szCs w:val="21.000000"/></w:rPr><w:t xml:space="preserve">Stormy Weather</w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">&#x201d;,</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">They played &#x201c;</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Bold-Identity-H" w:hAnsi="OpenSans-Bold-Identity-H"/><w:b/><w:sz w:val="28.000000"/><w:szCs w:val="21.000000"/></w:rPr><w:t xml:space="preserve">Stormy Weather</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">&#x201d;,</w:t></w:r>
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">And </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Italic" w:hAnsi="OpenSans-Italic"/><w:sz w:val="32.000000"/><w:szCs w:val="24.000000"/></w:rPr><w:t xml:space="preserve">lightning</w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Italic" w:hAnsi="OpenSans-Italic"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve"> </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">shot out of his ass.</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">And </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Italic-Identity-H" w:hAnsi="OpenSans-Italic-Identity-H"/><w:sz w:val="32.000000"/><w:szCs w:val="24.000000"/></w:rPr><w:t xml:space="preserve">lightning</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Italic-Identity-H" w:hAnsi="OpenSans-Italic-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve"> </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">shot out of his ass.</w:t></w:r>
</w:p>
</w:txbxContent>
@@ -514,71 +570,71 @@
<w:txbxContent>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">A Python, I should not advise,</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">A Python, I should not advise,</w:t></w:r>
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">For it needs a doctor for its eyes,</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">For it needs a doctor for its eyes,</w:t></w:r>
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">And has the Measles yearly.</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">And has the Measles yearly.</w:t></w:r>
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">However, if </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="28.000000"/><w:szCs w:val="21.000000"/></w:rPr><w:t xml:space="preserve">you feel</w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve"> inclined</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">However, if </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="28.000000"/><w:szCs w:val="21.000000"/></w:rPr><w:t xml:space="preserve">you feel</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve"> inclined</w:t></w:r>
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">To get one (to improve your mind,</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">To get one (to improve your mind,</w:t></w:r>
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">And not from fashion merely),</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">And not from fashion merely),</w:t></w:r>
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">Allow no </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Italic" w:hAnsi="OpenSans-Italic"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">music</w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve"> near its cage;</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">Allow no </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Italic-Identity-H" w:hAnsi="OpenSans-Italic-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">music</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve"> near its cage;</w:t></w:r>
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">And when it </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Bold" w:hAnsi="OpenSans-Bold"/><w:b/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">flies</w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve"> into a rage</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">And when it </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Bold-Identity-H" w:hAnsi="OpenSans-Bold-Identity-H"/><w:b/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">flies</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve"> into a rage</w:t></w:r>
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">Chastise it, most severely.</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">Chastise it, most severely.</w:t></w:r>
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">I had an Aunt in Yucatan</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">I had an Aunt in Yucatan</w:t></w:r>
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">Who bought a Python from a man</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">Who bought a Python from a man</w:t></w:r>
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">And kept it for a pet.</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">And kept it for a pet.</w:t></w:r>
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">She </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans-BoldItalic" w:hAnsi="OpenSans-BoldItalic"/><w:b/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">died</w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">, because she never knew</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">She </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-BoldItalic-Identity-H" w:hAnsi="OpenSans-BoldItalic-Identity-H"/><w:b/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">died</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">, because she never knew</w:t></w:r>
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">These simple little rules and few; &#x2014;</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">These simple little rules and few; &#x2014;</w:t></w:r>
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">The snake is living yet.</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">The snake is living yet.</w:t></w:r>
</w:p>
</w:txbxContent>
</wps:txbx>
@@ -605,71 +661,71 @@
<w:txbxContent>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">A Python, I should not advise,</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">A Python, I should not advise,</w:t></w:r>
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">For it needs a doctor for its eyes,</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">For it needs a doctor for its eyes,</w:t></w:r>
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">And has the Measles yearly.</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">And has the Measles yearly.</w:t></w:r>
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">However, if </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="28.000000"/><w:szCs w:val="21.000000"/></w:rPr><w:t xml:space="preserve">you feel</w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve"> inclined</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">However, if </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="28.000000"/><w:szCs w:val="21.000000"/></w:rPr><w:t xml:space="preserve">you feel</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve"> inclined</w:t></w:r>
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">To get one (to improve your mind,</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">To get one (to improve your mind,</w:t></w:r>
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">And not from fashion merely),</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">And not from fashion merely),</w:t></w:r>
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">Allow no </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Italic" w:hAnsi="OpenSans-Italic"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">music</w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve"> near its cage;</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">Allow no </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Italic-Identity-H" w:hAnsi="OpenSans-Italic-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">music</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve"> near its cage;</w:t></w:r>
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">And when it </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Bold" w:hAnsi="OpenSans-Bold"/><w:b/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">flies</w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve"> into a rage</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">And when it </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Bold-Identity-H" w:hAnsi="OpenSans-Bold-Identity-H"/><w:b/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">flies</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve"> into a rage</w:t></w:r>
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">Chastise it, most severely.</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">Chastise it, most severely.</w:t></w:r>
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">I had an Aunt in Yucatan</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">I had an Aunt in Yucatan</w:t></w:r>
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">Who bought a Python from a man</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">Who bought a Python from a man</w:t></w:r>
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">And kept it for a pet.</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">And kept it for a pet.</w:t></w:r>
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">She </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans-BoldItalic" w:hAnsi="OpenSans-BoldItalic"/><w:b/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">died</w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">, because she never knew</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">She </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-BoldItalic-Identity-H" w:hAnsi="OpenSans-BoldItalic-Identity-H"/><w:b/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">died</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">, because she never knew</w:t></w:r>
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">These simple little rules and few; &#x2014;</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">These simple little rules and few; &#x2014;</w:t></w:r>
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">The snake is living yet.</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">The snake is living yet.</w:t></w:r>
</w:p>
</w:txbxContent>
diff --git a/extract/test/Python2.pdf.intermediate-gs.xml.extract.docx.dir.ref/word/document.xml b/extract/test/Python2.pdf.intermediate-gs.xml.extract.docx.dir.ref/word/document.xml
index 32b69d9f..7006f756 100644
--- a/extract/test/Python2.pdf.intermediate-gs.xml.extract.docx.dir.ref/word/document.xml
+++ b/extract/test/Python2.pdf.intermediate-gs.xml.extract.docx.dir.ref/word/document.xml
@@ -6,13 +6,13 @@
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT" w:hAnsi="TimesNewRomanPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">The crew was complete: it included a </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPS-BoldMT" w:hAnsi="TimesNewRomanPS-BoldMT"/><w:b/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">Boots</w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT" w:hAnsi="TimesNewRomanPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">&#x2014; A maker of Bonnets and Hoods&#x2014; A </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPS-BoldMT" w:hAnsi="TimesNewRomanPS-BoldMT"/><w:b/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">Barrister</w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT" w:hAnsi="TimesNewRomanPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">, brought to arrange their disputes&#x2014; And a </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPS-BoldMT" w:hAnsi="TimesNewRomanPS-BoldMT"/><w:b/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">Broker</w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT" w:hAnsi="TimesNewRomanPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">, to value their goods.</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT-Identity-H" w:hAnsi="TimesNewRomanPSMT-Identity-H"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">The crew was complete: it included a </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPS-BoldMT-Identity-H" w:hAnsi="TimesNewRomanPS-BoldMT-Identity-H"/><w:b/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">Boots</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT-Identity-H" w:hAnsi="TimesNewRomanPSMT-Identity-H"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">&#x2014; A maker of Bonnets and Hoods&#x2014; A </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPS-BoldMT-Identity-H" w:hAnsi="TimesNewRomanPS-BoldMT-Identity-H"/><w:b/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">Barrister</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT-Identity-H" w:hAnsi="TimesNewRomanPSMT-Identity-H"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">, brought to arrange their disputes&#x2014; And a </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPS-BoldMT-Identity-H" w:hAnsi="TimesNewRomanPS-BoldMT-Identity-H"/><w:b/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">Broker</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT-Identity-H" w:hAnsi="TimesNewRomanPSMT-Identity-H"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">, to value their goods.</w:t></w:r>
</w:p>
<w:p>
@@ -20,13 +20,13 @@
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT" w:hAnsi="TimesNewRomanPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">A </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPS-BoldMT" w:hAnsi="TimesNewRomanPS-BoldMT"/><w:b/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">Billiard-marker</w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT" w:hAnsi="TimesNewRomanPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">, whose skill was immense, Might perhaps have won more than his share&#x2014; But a </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPS-BoldMT" w:hAnsi="TimesNewRomanPS-BoldMT"/><w:b/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">Banker</w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT" w:hAnsi="TimesNewRomanPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">, engaged at enormous expense, Had the whole of their </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPS-ItalicMT" w:hAnsi="TimesNewRomanPS-ItalicMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">cash </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT" w:hAnsi="TimesNewRomanPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">in his care.</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT-Identity-H" w:hAnsi="TimesNewRomanPSMT-Identity-H"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">A </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPS-BoldMT-Identity-H" w:hAnsi="TimesNewRomanPS-BoldMT-Identity-H"/><w:b/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">Billiard-marker</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT-Identity-H" w:hAnsi="TimesNewRomanPSMT-Identity-H"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">, whose skill was immense, Might perhaps have won more than his share&#x2014; But a </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPS-BoldMT-Identity-H" w:hAnsi="TimesNewRomanPS-BoldMT-Identity-H"/><w:b/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">Banker</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT-Identity-H" w:hAnsi="TimesNewRomanPSMT-Identity-H"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">, engaged at enormous expense, Had the whole of their </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPS-ItalicMT-Identity-H" w:hAnsi="TimesNewRomanPS-ItalicMT-Identity-H"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">cash </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT-Identity-H" w:hAnsi="TimesNewRomanPSMT-Identity-H"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">in his care.</w:t></w:r>
</w:p>
<w:p>
@@ -34,11 +34,11 @@
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT" w:hAnsi="TimesNewRomanPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">There was also a </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPS-BoldMT" w:hAnsi="TimesNewRomanPS-BoldMT"/><w:b/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">Beaver</w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT" w:hAnsi="TimesNewRomanPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">, that paced on the deck, Or would sit making lace in the bow: And had often (the </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPS-BoldMT" w:hAnsi="TimesNewRomanPS-BoldMT"/><w:b/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">Bellman </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT" w:hAnsi="TimesNewRomanPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">said) saved them from wreck, Though none of the sailors knew how.</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT-Identity-H" w:hAnsi="TimesNewRomanPSMT-Identity-H"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">There was also a </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPS-BoldMT-Identity-H" w:hAnsi="TimesNewRomanPS-BoldMT-Identity-H"/><w:b/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">Beaver</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT-Identity-H" w:hAnsi="TimesNewRomanPSMT-Identity-H"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">, that paced on the deck, Or would sit making lace in the bow: And had often (the </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPS-BoldMT-Identity-H" w:hAnsi="TimesNewRomanPS-BoldMT-Identity-H"/><w:b/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">Bellman </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT-Identity-H" w:hAnsi="TimesNewRomanPSMT-Identity-H"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">said) saved them from wreck, Though none of the sailors knew how.</w:t></w:r>
</w:p>
<w:p>
@@ -50,11 +50,67 @@
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT" w:hAnsi="CourierNewPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">There was one who was famed for the number of things He His umbrella, his watch, all his jewels and rings, </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="CourierNewPS-BoldMT" w:hAnsi="CourierNewPS-BoldMT"/><w:b/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">forgot </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT" w:hAnsi="CourierNewPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve"> And the clothes he had bought for the trip. when he entered the ship: He had </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="CourierNewPS-ItalicMT" w:hAnsi="CourierNewPS-ItalicMT"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">forty-two </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT" w:hAnsi="CourierNewPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">With his name painted clearly on each: But, since he omitted to mention the fact, They were all left behind on the beach. boxes, all carefully packed,</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT-Identity-H" w:hAnsi="CourierNewPSMT-Identity-H"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">There was one who was famed for the number of things</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve"></w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT-Identity-H" w:hAnsi="CourierNewPSMT-Identity-H"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve"> He </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPS-BoldMT-Identity-H" w:hAnsi="CourierNewPS-BoldMT-Identity-H"/><w:b/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">forgot </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT-Identity-H" w:hAnsi="CourierNewPSMT-Identity-H"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">when he entered the ship:</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve"></w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT-Identity-H" w:hAnsi="CourierNewPSMT-Identity-H"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">His umbrella, his watch, all his jewels and rings,</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve"></w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT-Identity-H" w:hAnsi="CourierNewPSMT-Identity-H"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve"> And the clothes he had bought for the trip.</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve"></w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT-Identity-H" w:hAnsi="CourierNewPSMT-Identity-H"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">He had </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPS-ItalicMT-Identity-H" w:hAnsi="CourierNewPS-ItalicMT-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">forty-two </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT-Identity-H" w:hAnsi="CourierNewPSMT-Identity-H"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve"> boxes, all carefully packed,</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve"></w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT-Identity-H" w:hAnsi="CourierNewPSMT-Identity-H"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve"> With his name painted clearly on each:</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve"></w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT-Identity-H" w:hAnsi="CourierNewPSMT-Identity-H"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">But, since he omitted to mention the fact,</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve"></w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT-Identity-H" w:hAnsi="CourierNewPSMT-Identity-H"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve"> They were all left behind on the beach.</w:t></w:r>
</w:p>
<w:p>
@@ -66,11 +122,11 @@
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">&quot;Just the place for a </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Italic" w:hAnsi="OpenSans-Italic"/><w:sz w:val="28.000000"/><w:szCs w:val="21.000000"/></w:rPr><w:t xml:space="preserve">Snark</w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">!&quot; the </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Bold" w:hAnsi="OpenSans-Bold"/><w:b/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">Bellman </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">cried,</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">&quot;Just the place for a </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Italic-Identity-H" w:hAnsi="OpenSans-Italic-Identity-H"/><w:sz w:val="28.000000"/><w:szCs w:val="21.000000"/></w:rPr><w:t xml:space="preserve">Snark</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">!&quot; the </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Bold-Identity-H" w:hAnsi="OpenSans-Bold-Identity-H"/><w:b/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">Bellman </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">cried,</w:t></w:r>
</w:p>
<w:p>
@@ -78,7 +134,7 @@
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve"> As he landed his crew with care;</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve"> As he landed his crew with care;</w:t></w:r>
</w:p>
<w:p>
@@ -86,7 +142,7 @@
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">Supporting each man on the top of the tide</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">Supporting each man on the top of the tide</w:t></w:r>
</w:p>
<w:p>
@@ -94,7 +150,7 @@
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve"> By a finger entwined in his hair.</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve"> By a finger entwined in his hair.</w:t></w:r>
</w:p>
<w:p>
@@ -102,9 +158,9 @@
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">&quot;Just the place for a </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Italic" w:hAnsi="OpenSans-Italic"/><w:sz w:val="28.000000"/><w:szCs w:val="21.000000"/></w:rPr><w:t xml:space="preserve">Snark</w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">! I have said it twice:</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">&quot;Just the place for a </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Italic-Identity-H" w:hAnsi="OpenSans-Italic-Identity-H"/><w:sz w:val="28.000000"/><w:szCs w:val="21.000000"/></w:rPr><w:t xml:space="preserve">Snark</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">! I have said it twice:</w:t></w:r>
</w:p>
<w:p>
@@ -112,7 +168,7 @@
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve"> That alone should encourage the crew.</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve"> That alone should encourage the crew.</w:t></w:r>
</w:p>
<w:p>
@@ -120,9 +176,9 @@
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">Just the place for a </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Italic" w:hAnsi="OpenSans-Italic"/><w:sz w:val="28.000000"/><w:szCs w:val="21.000000"/></w:rPr><w:t xml:space="preserve">Snark</w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">! I have said it thrice:</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">Just the place for a </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Italic-Identity-H" w:hAnsi="OpenSans-Italic-Identity-H"/><w:sz w:val="28.000000"/><w:szCs w:val="21.000000"/></w:rPr><w:t xml:space="preserve">Snark</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">! I have said it thrice:</w:t></w:r>
</w:p>
<w:p>
@@ -130,9 +186,9 @@
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve"> What I tell you </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Bold" w:hAnsi="OpenSans-Bold"/><w:b/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">three </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">times is true.&quot;</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve"> What I tell you </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Bold-Identity-H" w:hAnsi="OpenSans-Bold-Identity-H"/><w:b/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">three </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">times is true.&quot;</w:t></w:r>
</w:p>
<w:p>
@@ -144,9 +200,9 @@
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">There was a young man of </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans-BoldItalic" w:hAnsi="OpenSans-BoldItalic"/><w:b/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">Madras</w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">,</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">There was a young man of </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-BoldItalic-Identity-H" w:hAnsi="OpenSans-BoldItalic-Identity-H"/><w:b/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">Madras</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">,</w:t></w:r>
</w:p>
<w:p>
@@ -154,9 +210,9 @@
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">Whose balls were </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Italic" w:hAnsi="OpenSans-Italic"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">constructed </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">of brass,</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">Whose balls were </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Italic-Identity-H" w:hAnsi="OpenSans-Italic-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">constructed </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">of brass,</w:t></w:r>
</w:p>
<w:p>
@@ -164,7 +220,7 @@
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">When jangled together,</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">When jangled together,</w:t></w:r>
</w:p>
<w:p>
@@ -172,9 +228,9 @@
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">They played &#x201c;</w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Bold" w:hAnsi="OpenSans-Bold"/><w:b/><w:sz w:val="28.000000"/><w:szCs w:val="21.000000"/></w:rPr><w:t xml:space="preserve">Stormy Weather</w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">&#x201d;,</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">They played &#x201c;</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Bold-Identity-H" w:hAnsi="OpenSans-Bold-Identity-H"/><w:b/><w:sz w:val="28.000000"/><w:szCs w:val="21.000000"/></w:rPr><w:t xml:space="preserve">Stormy Weather</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">&#x201d;,</w:t></w:r>
</w:p>
<w:p>
@@ -182,10 +238,10 @@
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">And </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Italic" w:hAnsi="OpenSans-Italic"/><w:sz w:val="32.000000"/><w:szCs w:val="24.000000"/></w:rPr><w:t xml:space="preserve">lightning</w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Italic" w:hAnsi="OpenSans-Italic"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve"> </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">shot out of his ass.</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">And </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Italic-Identity-H" w:hAnsi="OpenSans-Italic-Identity-H"/><w:sz w:val="32.000000"/><w:szCs w:val="24.000000"/></w:rPr><w:t xml:space="preserve">lightning</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Italic-Identity-H" w:hAnsi="OpenSans-Italic-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve"> </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">shot out of his ass.</w:t></w:r>
</w:p>
<w:p>
@@ -197,7 +253,7 @@
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">A Python, I should not advise,</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">A Python, I should not advise,</w:t></w:r>
</w:p>
<w:p>
@@ -205,7 +261,7 @@
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">For it needs a doctor for its eyes,</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">For it needs a doctor for its eyes,</w:t></w:r>
</w:p>
<w:p>
@@ -213,7 +269,7 @@
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">And has the Measles yearly.</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">And has the Measles yearly.</w:t></w:r>
</w:p>
<w:p>
@@ -221,9 +277,9 @@
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">However, if </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="28.000000"/><w:szCs w:val="21.000000"/></w:rPr><w:t xml:space="preserve">you feel</w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve"> inclined</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">However, if </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="28.000000"/><w:szCs w:val="21.000000"/></w:rPr><w:t xml:space="preserve">you feel</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve"> inclined</w:t></w:r>
</w:p>
<w:p>
@@ -231,7 +287,7 @@
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">To get one (to improve your mind,</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">To get one (to improve your mind,</w:t></w:r>
</w:p>
<w:p>
@@ -239,7 +295,7 @@
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">And not from fashion merely),</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">And not from fashion merely),</w:t></w:r>
</w:p>
<w:p>
@@ -247,9 +303,9 @@
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">Allow no </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Italic" w:hAnsi="OpenSans-Italic"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">music</w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve"> near its cage;</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">Allow no </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Italic-Identity-H" w:hAnsi="OpenSans-Italic-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">music</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve"> near its cage;</w:t></w:r>
</w:p>
<w:p>
@@ -257,9 +313,9 @@
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">And when it </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Bold" w:hAnsi="OpenSans-Bold"/><w:b/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">flies</w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve"> into a rage</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">And when it </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Bold-Identity-H" w:hAnsi="OpenSans-Bold-Identity-H"/><w:b/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">flies</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve"> into a rage</w:t></w:r>
</w:p>
<w:p>
@@ -267,7 +323,7 @@
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">Chastise it, most severely.</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">Chastise it, most severely.</w:t></w:r>
</w:p>
<w:p>
@@ -275,7 +331,7 @@
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">I had an Aunt in Yucatan</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">I had an Aunt in Yucatan</w:t></w:r>
</w:p>
<w:p>
@@ -283,7 +339,7 @@
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">Who bought a Python from a man</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">Who bought a Python from a man</w:t></w:r>
</w:p>
<w:p>
@@ -291,7 +347,7 @@
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">And kept it for a pet.</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">And kept it for a pet.</w:t></w:r>
</w:p>
<w:p>
@@ -299,9 +355,9 @@
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">She </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans-BoldItalic" w:hAnsi="OpenSans-BoldItalic"/><w:b/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">died</w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">, because she never knew</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">She </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-BoldItalic-Identity-H" w:hAnsi="OpenSans-BoldItalic-Identity-H"/><w:b/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">died</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">, because she never knew</w:t></w:r>
</w:p>
<w:p>
@@ -309,7 +365,7 @@
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">These simple little rules and few; &#x2014;</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">These simple little rules and few; &#x2014;</w:t></w:r>
</w:p>
<w:p>
@@ -317,5 +373,5 @@
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">The snake is living yet.</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">The snake is living yet.</w:t></w:r>
</w:p></w:body></w:document> \ No newline at end of file
diff --git a/extract/test/Python2.pdf.intermediate-mu.xml.extract-autosplit.docx.dir.ref/word/document.xml b/extract/test/Python2.pdf.intermediate-mu.xml.extract-autosplit.docx.dir.ref/word/document.xml
index d18a0195..2a6b0700 100644
--- a/extract/test/Python2.pdf.intermediate-mu.xml.extract-autosplit.docx.dir.ref/word/document.xml
+++ b/extract/test/Python2.pdf.intermediate-mu.xml.extract-autosplit.docx.dir.ref/word/document.xml
@@ -6,11 +6,67 @@
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT" w:hAnsi="CourierNewPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">There was one who was famed for the number of things He </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT" w:hAnsi="CourierNewPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">There was one who was famed for the number of things</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve"></w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT" w:hAnsi="CourierNewPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve"> He </w:t></w:r>
<w:r><w:rPr><w:rFonts w:ascii="CourierNewPS-BoldMT" w:hAnsi="CourierNewPS-BoldMT"/><w:b/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">forgot </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT" w:hAnsi="CourierNewPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">when he entered the ship: His umbrella, his watch, all his jewels and rings, And the clothes he had bought for the trip. He had </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="CourierNewPS-ItalicMT" w:hAnsi="CourierNewPS-ItalicMT"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">forty-two</w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT" w:hAnsi="CourierNewPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve"> boxes, all carefully packed, With his name painted clearly on each: But, since he omitted to mention the fact, They were all left behind on the beach.</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT" w:hAnsi="CourierNewPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">when he entered the ship:</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve"></w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT" w:hAnsi="CourierNewPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">His umbrella, his watch, all his jewels and rings,</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve"></w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT" w:hAnsi="CourierNewPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve"> And the clothes he had bought for the trip.</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve"></w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT" w:hAnsi="CourierNewPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">He had </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPS-ItalicMT" w:hAnsi="CourierNewPS-ItalicMT"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">forty-two </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT" w:hAnsi="CourierNewPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve"> boxes, all carefully packed,</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve"></w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT" w:hAnsi="CourierNewPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve"> With his name painted clearly on each:</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve"></w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT" w:hAnsi="CourierNewPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">But, since he omitted to mention the fact,</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve"></w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT" w:hAnsi="CourierNewPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve"> They were all left behind on the beach.</w:t></w:r>
</w:p>
<w:p>
diff --git a/extract/test/Python2.pdf.intermediate-mu.xml.extract-rotate-spacing.docx.dir.ref/word/document.xml b/extract/test/Python2.pdf.intermediate-mu.xml.extract-rotate-spacing.docx.dir.ref/word/document.xml
index 19ab95bd..701ad48f 100644
--- a/extract/test/Python2.pdf.intermediate-mu.xml.extract-rotate-spacing.docx.dir.ref/word/document.xml
+++ b/extract/test/Python2.pdf.intermediate-mu.xml.extract-rotate-spacing.docx.dir.ref/word/document.xml
@@ -13,12 +13,12 @@
<wp:anchor distT="0" distB="0" distL="0" distR="0" simplePos="0" relativeHeight="0" behindDoc="0" locked="0" layoutInCell="1" allowOverlap="1" wp14:anchorId="53A210D1" wp14:editId="2B7E8016">
<wp:simplePos x="0" y="0"/>
<wp:positionH relativeFrom="page">
- <wp:posOffset>3197324</wp:posOffset>
+ <wp:posOffset>2863121</wp:posOffset>
</wp:positionH>
<wp:positionV relativeFrom="page">
- <wp:posOffset>5504612</wp:posOffset>
+ <wp:posOffset>-301753</wp:posOffset>
</wp:positionV>
- <wp:extent cx="2893510" cy="1885520"/>
+ <wp:extent cx="2949540" cy="7707896"/>
<wp:effectExtent l="381000" t="723900" r="371475" b="723900"/>
<wp:wrapNone/>
<wp:docPr id="1" name="Text Box 1"/>
@@ -40,11 +40,39 @@
<w:txbxContent>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT" w:hAnsi="CourierNewPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">There was one who was famed for the number of things He </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT" w:hAnsi="CourierNewPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">There was one who was famed for the number of things</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT" w:hAnsi="CourierNewPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve"> He </w:t></w:r>
<w:r><w:rPr><w:rFonts w:ascii="CourierNewPS-BoldMT" w:hAnsi="CourierNewPS-BoldMT"/><w:b/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">forgot </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT" w:hAnsi="CourierNewPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">when he entered the ship: His umbrella, his watch, all his jewels and rings, And the clothes he had bought for the trip. He had </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="CourierNewPS-ItalicMT" w:hAnsi="CourierNewPS-ItalicMT"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">forty-two</w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT" w:hAnsi="CourierNewPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve"> boxes, all carefully packed, With his name painted clearly on each: But, since he omitted to mention the fact, They were all left behind on the beach.</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT" w:hAnsi="CourierNewPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">when he entered the ship:</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT" w:hAnsi="CourierNewPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">His umbrella, his watch, all his jewels and rings,</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT" w:hAnsi="CourierNewPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve"> And the clothes he had bought for the trip.</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT" w:hAnsi="CourierNewPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">He had </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPS-ItalicMT" w:hAnsi="CourierNewPS-ItalicMT"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">forty-two </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT" w:hAnsi="CourierNewPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve"> boxes, all carefully packed,</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT" w:hAnsi="CourierNewPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve"> With his name painted clearly on each:</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT" w:hAnsi="CourierNewPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">But, since he omitted to mention the fact,</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT" w:hAnsi="CourierNewPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve"> They were all left behind on the beach.</w:t></w:r>
</w:p>
</w:txbxContent>
</wps:txbx>
@@ -71,11 +99,39 @@
<w:txbxContent>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT" w:hAnsi="CourierNewPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">There was one who was famed for the number of things He </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT" w:hAnsi="CourierNewPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">There was one who was famed for the number of things</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT" w:hAnsi="CourierNewPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve"> He </w:t></w:r>
<w:r><w:rPr><w:rFonts w:ascii="CourierNewPS-BoldMT" w:hAnsi="CourierNewPS-BoldMT"/><w:b/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">forgot </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT" w:hAnsi="CourierNewPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">when he entered the ship: His umbrella, his watch, all his jewels and rings, And the clothes he had bought for the trip. He had </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="CourierNewPS-ItalicMT" w:hAnsi="CourierNewPS-ItalicMT"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">forty-two</w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT" w:hAnsi="CourierNewPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve"> boxes, all carefully packed, With his name painted clearly on each: But, since he omitted to mention the fact, They were all left behind on the beach.</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT" w:hAnsi="CourierNewPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">when he entered the ship:</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT" w:hAnsi="CourierNewPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">His umbrella, his watch, all his jewels and rings,</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT" w:hAnsi="CourierNewPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve"> And the clothes he had bought for the trip.</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT" w:hAnsi="CourierNewPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">He had </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPS-ItalicMT" w:hAnsi="CourierNewPS-ItalicMT"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">forty-two </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT" w:hAnsi="CourierNewPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve"> boxes, all carefully packed,</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT" w:hAnsi="CourierNewPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve"> With his name painted clearly on each:</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT" w:hAnsi="CourierNewPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">But, since he omitted to mention the fact,</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT" w:hAnsi="CourierNewPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve"> They were all left behind on the beach.</w:t></w:r>
</w:p>
</w:txbxContent>
diff --git a/extract/test/Python2.pdf.intermediate-mu.xml.extract-rotate.docx.dir.ref/word/document.xml b/extract/test/Python2.pdf.intermediate-mu.xml.extract-rotate.docx.dir.ref/word/document.xml
index 850561f9..05490025 100644
--- a/extract/test/Python2.pdf.intermediate-mu.xml.extract-rotate.docx.dir.ref/word/document.xml
+++ b/extract/test/Python2.pdf.intermediate-mu.xml.extract-rotate.docx.dir.ref/word/document.xml
@@ -9,12 +9,12 @@
<wp:anchor distT="0" distB="0" distL="0" distR="0" simplePos="0" relativeHeight="0" behindDoc="0" locked="0" layoutInCell="1" allowOverlap="1" wp14:anchorId="53A210D1" wp14:editId="2B7E8016">
<wp:simplePos x="0" y="0"/>
<wp:positionH relativeFrom="page">
- <wp:posOffset>3197324</wp:posOffset>
+ <wp:posOffset>2863121</wp:posOffset>
</wp:positionH>
<wp:positionV relativeFrom="page">
- <wp:posOffset>5504612</wp:posOffset>
+ <wp:posOffset>-301753</wp:posOffset>
</wp:positionV>
- <wp:extent cx="2893510" cy="1885520"/>
+ <wp:extent cx="2949540" cy="7707896"/>
<wp:effectExtent l="381000" t="723900" r="371475" b="723900"/>
<wp:wrapNone/>
<wp:docPr id="1" name="Text Box 1"/>
@@ -36,11 +36,39 @@
<w:txbxContent>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT" w:hAnsi="CourierNewPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">There was one who was famed for the number of things He </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT" w:hAnsi="CourierNewPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">There was one who was famed for the number of things</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT" w:hAnsi="CourierNewPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve"> He </w:t></w:r>
<w:r><w:rPr><w:rFonts w:ascii="CourierNewPS-BoldMT" w:hAnsi="CourierNewPS-BoldMT"/><w:b/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">forgot </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT" w:hAnsi="CourierNewPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">when he entered the ship: His umbrella, his watch, all his jewels and rings, And the clothes he had bought for the trip. He had </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="CourierNewPS-ItalicMT" w:hAnsi="CourierNewPS-ItalicMT"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">forty-two</w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT" w:hAnsi="CourierNewPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve"> boxes, all carefully packed, With his name painted clearly on each: But, since he omitted to mention the fact, They were all left behind on the beach.</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT" w:hAnsi="CourierNewPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">when he entered the ship:</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT" w:hAnsi="CourierNewPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">His umbrella, his watch, all his jewels and rings,</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT" w:hAnsi="CourierNewPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve"> And the clothes he had bought for the trip.</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT" w:hAnsi="CourierNewPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">He had </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPS-ItalicMT" w:hAnsi="CourierNewPS-ItalicMT"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">forty-two </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT" w:hAnsi="CourierNewPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve"> boxes, all carefully packed,</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT" w:hAnsi="CourierNewPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve"> With his name painted clearly on each:</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT" w:hAnsi="CourierNewPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">But, since he omitted to mention the fact,</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT" w:hAnsi="CourierNewPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve"> They were all left behind on the beach.</w:t></w:r>
</w:p>
</w:txbxContent>
</wps:txbx>
@@ -67,11 +95,39 @@
<w:txbxContent>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT" w:hAnsi="CourierNewPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">There was one who was famed for the number of things He </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT" w:hAnsi="CourierNewPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">There was one who was famed for the number of things</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT" w:hAnsi="CourierNewPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve"> He </w:t></w:r>
<w:r><w:rPr><w:rFonts w:ascii="CourierNewPS-BoldMT" w:hAnsi="CourierNewPS-BoldMT"/><w:b/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">forgot </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT" w:hAnsi="CourierNewPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">when he entered the ship: His umbrella, his watch, all his jewels and rings, And the clothes he had bought for the trip. He had </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="CourierNewPS-ItalicMT" w:hAnsi="CourierNewPS-ItalicMT"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">forty-two</w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT" w:hAnsi="CourierNewPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve"> boxes, all carefully packed, With his name painted clearly on each: But, since he omitted to mention the fact, They were all left behind on the beach.</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT" w:hAnsi="CourierNewPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">when he entered the ship:</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT" w:hAnsi="CourierNewPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">His umbrella, his watch, all his jewels and rings,</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT" w:hAnsi="CourierNewPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve"> And the clothes he had bought for the trip.</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT" w:hAnsi="CourierNewPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">He had </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPS-ItalicMT" w:hAnsi="CourierNewPS-ItalicMT"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">forty-two </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT" w:hAnsi="CourierNewPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve"> boxes, all carefully packed,</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT" w:hAnsi="CourierNewPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve"> With his name painted clearly on each:</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT" w:hAnsi="CourierNewPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">But, since he omitted to mention the fact,</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT" w:hAnsi="CourierNewPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve"> They were all left behind on the beach.</w:t></w:r>
</w:p>
</w:txbxContent>
diff --git a/extract/test/Python2.pdf.intermediate-mu.xml.extract.docx.dir.ref/word/document.xml b/extract/test/Python2.pdf.intermediate-mu.xml.extract.docx.dir.ref/word/document.xml
index d18a0195..2a6b0700 100644
--- a/extract/test/Python2.pdf.intermediate-mu.xml.extract.docx.dir.ref/word/document.xml
+++ b/extract/test/Python2.pdf.intermediate-mu.xml.extract.docx.dir.ref/word/document.xml
@@ -6,11 +6,67 @@
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT" w:hAnsi="CourierNewPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">There was one who was famed for the number of things He </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT" w:hAnsi="CourierNewPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">There was one who was famed for the number of things</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve"></w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT" w:hAnsi="CourierNewPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve"> He </w:t></w:r>
<w:r><w:rPr><w:rFonts w:ascii="CourierNewPS-BoldMT" w:hAnsi="CourierNewPS-BoldMT"/><w:b/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">forgot </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT" w:hAnsi="CourierNewPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">when he entered the ship: His umbrella, his watch, all his jewels and rings, And the clothes he had bought for the trip. He had </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="CourierNewPS-ItalicMT" w:hAnsi="CourierNewPS-ItalicMT"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">forty-two</w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT" w:hAnsi="CourierNewPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve"> boxes, all carefully packed, With his name painted clearly on each: But, since he omitted to mention the fact, They were all left behind on the beach.</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT" w:hAnsi="CourierNewPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">when he entered the ship:</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve"></w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT" w:hAnsi="CourierNewPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">His umbrella, his watch, all his jewels and rings,</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve"></w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT" w:hAnsi="CourierNewPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve"> And the clothes he had bought for the trip.</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve"></w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT" w:hAnsi="CourierNewPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">He had </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPS-ItalicMT" w:hAnsi="CourierNewPS-ItalicMT"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">forty-two </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT" w:hAnsi="CourierNewPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve"> boxes, all carefully packed,</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve"></w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT" w:hAnsi="CourierNewPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve"> With his name painted clearly on each:</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve"></w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT" w:hAnsi="CourierNewPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">But, since he omitted to mention the fact,</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve"></w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT" w:hAnsi="CourierNewPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve"> They were all left behind on the beach.</w:t></w:r>
</w:p>
<w:p>
diff --git a/extract/test/Python2.pdf.mutool-norotate.docx.dir.ref/word/document.xml b/extract/test/Python2.pdf.mutool-norotate.docx.dir.ref/word/document.xml
index 63dc18ad..a655c584 100644
--- a/extract/test/Python2.pdf.mutool-norotate.docx.dir.ref/word/document.xml
+++ b/extract/test/Python2.pdf.mutool-norotate.docx.dir.ref/word/document.xml
@@ -2,11 +2,39 @@
<w:document xmlns:wpc="http://schemas.microsoft.com/office/word/2010/wordprocessingCanvas" xmlns:cx="http://schemas.microsoft.com/office/drawing/2014/chartex" xmlns:cx1="http://schemas.microsoft.com/office/drawing/2015/9/8/chartex" xmlns:cx2="http://schemas.microsoft.com/office/drawing/2015/10/21/chartex" xmlns:cx3="http://schemas.microsoft.com/office/drawing/2016/5/9/chartex" xmlns:cx4="http://schemas.microsoft.com/office/drawing/2016/5/10/chartex" xmlns:cx5="http://schemas.microsoft.com/office/drawing/2016/5/11/chartex" xmlns:cx6="http://schemas.microsoft.com/office/drawing/2016/5/12/chartex" xmlns:cx7="http://schemas.microsoft.com/office/drawing/2016/5/13/chartex" xmlns:cx8="http://schemas.microsoft.com/office/drawing/2016/5/14/chartex" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:aink="http://schemas.microsoft.com/office/drawing/2016/ink" xmlns:am3d="http://schemas.microsoft.com/office/drawing/2017/model3d" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships" xmlns:m="http://schemas.openxmlformats.org/officeDocument/2006/math" xmlns:v="urn:schemas-microsoft-com:vml" xmlns:wp14="http://schemas.microsoft.com/office/word/2010/wordprocessingDrawing" xmlns:wp="http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing" xmlns:w10="urn:schemas-microsoft-com:office:word" xmlns:w="http://schemas.openxmlformats.org/wordprocessingml/2006/main" xmlns:w14="http://schemas.microsoft.com/office/word/2010/wordml" xmlns:w15="http://schemas.microsoft.com/office/word/2012/wordml" xmlns:w16cex="http://schemas.microsoft.com/office/word/2018/wordml/cex" xmlns:w16cid="http://schemas.microsoft.com/office/word/2016/wordml/cid" xmlns:w16="http://schemas.microsoft.com/office/word/2018/wordml" xmlns:w16se="http://schemas.microsoft.com/office/word/2015/wordml/symex" xmlns:wpg="http://schemas.microsoft.com/office/word/2010/wordprocessingGroup" xmlns:wpi="http://schemas.microsoft.com/office/word/2010/wordprocessingInk" xmlns:wne="http://schemas.microsoft.com/office/word/2006/wordml" xmlns:wps="http://schemas.microsoft.com/office/word/2010/wordprocessingShape" mc:Ignorable="w14 w15 w16se w16cid w16 w16cex wp14"><w:body>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT" w:hAnsi="CourierNewPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">There was one who was famed for the number of things He </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT" w:hAnsi="CourierNewPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">There was one who was famed for the number of things</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT" w:hAnsi="CourierNewPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve"> He </w:t></w:r>
<w:r><w:rPr><w:rFonts w:ascii="CourierNewPS-BoldMT" w:hAnsi="CourierNewPS-BoldMT"/><w:b/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">forgot </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT" w:hAnsi="CourierNewPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">when he entered the ship: His umbrella, his watch, all his jewels and rings, And the clothes he had bought for the trip. He had </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="CourierNewPS-ItalicMT" w:hAnsi="CourierNewPS-ItalicMT"/><w:i/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">forty-two</w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT" w:hAnsi="CourierNewPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve"> boxes, all carefully packed, With his name painted clearly on each: But, since he omitted to mention the fact, They were all left behind on the beach.</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT" w:hAnsi="CourierNewPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">when he entered the ship:</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT" w:hAnsi="CourierNewPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">His umbrella, his watch, all his jewels and rings,</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT" w:hAnsi="CourierNewPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve"> And the clothes he had bought for the trip.</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT" w:hAnsi="CourierNewPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">He had </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPS-ItalicMT" w:hAnsi="CourierNewPS-ItalicMT"/><w:i/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">forty-two </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT" w:hAnsi="CourierNewPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve"> boxes, all carefully packed,</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT" w:hAnsi="CourierNewPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve"> With his name painted clearly on each:</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT" w:hAnsi="CourierNewPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">But, since he omitted to mention the fact,</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT" w:hAnsi="CourierNewPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve"> They were all left behind on the beach.</w:t></w:r>
</w:p>
<w:p>
diff --git a/extract/test/Python2.pdf.mutool.docx.dir.ref/word/document.xml b/extract/test/Python2.pdf.mutool.docx.dir.ref/word/document.xml
index 9790a3ff..7ec8a63b 100644
--- a/extract/test/Python2.pdf.mutool.docx.dir.ref/word/document.xml
+++ b/extract/test/Python2.pdf.mutool.docx.dir.ref/word/document.xml
@@ -9,12 +9,12 @@
<wp:anchor distT="0" distB="0" distL="0" distR="0" simplePos="0" relativeHeight="0" behindDoc="0" locked="0" layoutInCell="1" allowOverlap="1" wp14:anchorId="53A210D1" wp14:editId="2B7E8016">
<wp:simplePos x="0" y="0"/>
<wp:positionH relativeFrom="page">
- <wp:posOffset>3197324</wp:posOffset>
+ <wp:posOffset>2863121</wp:posOffset>
</wp:positionH>
<wp:positionV relativeFrom="page">
- <wp:posOffset>5504612</wp:posOffset>
+ <wp:posOffset>-301755</wp:posOffset>
</wp:positionV>
- <wp:extent cx="2893510" cy="1885520"/>
+ <wp:extent cx="2949540" cy="7707898"/>
<wp:effectExtent l="381000" t="723900" r="371475" b="723900"/>
<wp:wrapNone/>
<wp:docPr id="1" name="Text Box 1"/>
@@ -36,11 +36,39 @@
<w:txbxContent>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT" w:hAnsi="CourierNewPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">There was one who was famed for the number of things He </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT" w:hAnsi="CourierNewPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">There was one who was famed for the number of things</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT" w:hAnsi="CourierNewPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve"> He </w:t></w:r>
<w:r><w:rPr><w:rFonts w:ascii="CourierNewPS-BoldMT" w:hAnsi="CourierNewPS-BoldMT"/><w:b/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">forgot </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT" w:hAnsi="CourierNewPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">when he entered the ship: His umbrella, his watch, all his jewels and rings, And the clothes he had bought for the trip. He had </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="CourierNewPS-ItalicMT" w:hAnsi="CourierNewPS-ItalicMT"/><w:i/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">forty-two</w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT" w:hAnsi="CourierNewPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve"> boxes, all carefully packed, With his name painted clearly on each: But, since he omitted to mention the fact, They were all left behind on the beach.</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT" w:hAnsi="CourierNewPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">when he entered the ship:</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT" w:hAnsi="CourierNewPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">His umbrella, his watch, all his jewels and rings,</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT" w:hAnsi="CourierNewPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve"> And the clothes he had bought for the trip.</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT" w:hAnsi="CourierNewPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">He had </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPS-ItalicMT" w:hAnsi="CourierNewPS-ItalicMT"/><w:i/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">forty-two </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT" w:hAnsi="CourierNewPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve"> boxes, all carefully packed,</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT" w:hAnsi="CourierNewPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve"> With his name painted clearly on each:</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT" w:hAnsi="CourierNewPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">But, since he omitted to mention the fact,</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT" w:hAnsi="CourierNewPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve"> They were all left behind on the beach.</w:t></w:r>
</w:p>
</w:txbxContent>
</wps:txbx>
@@ -67,11 +95,39 @@
<w:txbxContent>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT" w:hAnsi="CourierNewPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">There was one who was famed for the number of things He </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT" w:hAnsi="CourierNewPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">There was one who was famed for the number of things</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT" w:hAnsi="CourierNewPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve"> He </w:t></w:r>
<w:r><w:rPr><w:rFonts w:ascii="CourierNewPS-BoldMT" w:hAnsi="CourierNewPS-BoldMT"/><w:b/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">forgot </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT" w:hAnsi="CourierNewPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">when he entered the ship: His umbrella, his watch, all his jewels and rings, And the clothes he had bought for the trip. He had </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="CourierNewPS-ItalicMT" w:hAnsi="CourierNewPS-ItalicMT"/><w:i/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">forty-two</w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT" w:hAnsi="CourierNewPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve"> boxes, all carefully packed, With his name painted clearly on each: But, since he omitted to mention the fact, They were all left behind on the beach.</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT" w:hAnsi="CourierNewPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">when he entered the ship:</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT" w:hAnsi="CourierNewPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">His umbrella, his watch, all his jewels and rings,</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT" w:hAnsi="CourierNewPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve"> And the clothes he had bought for the trip.</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT" w:hAnsi="CourierNewPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">He had </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPS-ItalicMT" w:hAnsi="CourierNewPS-ItalicMT"/><w:i/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">forty-two </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT" w:hAnsi="CourierNewPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve"> boxes, all carefully packed,</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT" w:hAnsi="CourierNewPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve"> With his name painted clearly on each:</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT" w:hAnsi="CourierNewPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">But, since he omitted to mention the fact,</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT" w:hAnsi="CourierNewPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve"> They were all left behind on the beach.</w:t></w:r>
</w:p>
</w:txbxContent>
diff --git a/extract/test/Python2.pdf.mutool.odt.dir.ref/content.xml b/extract/test/Python2.pdf.mutool.odt.dir.ref/content.xml
index 476e791f..ce8f5c4a 100644
--- a/extract/test/Python2.pdf.mutool.odt.dir.ref/content.xml
+++ b/extract/test/Python2.pdf.mutool.odt.dir.ref/content.xml
@@ -6,13 +6,30 @@
<style:style style:name="fr1" style:family="graphic" style:parent-style-name="Graphics">
<style:graphic-properties fo:margin-left="0in" fo:margin-right="0in" fo:margin-top="0in" fo:margin-bottom="0in" style:vertical-pos="top" style:vertical-rel="baseline" fo:background-color="transparent" draw:fill="none" draw:fill-color="#ffffff" fo:padding="0in" fo:border="none" style:mirror="none" fo:clip="rect(0in, 0in, 0in, 0in)" draw:luminance="0%" draw:contrast="0%" draw:red="0%" draw:green="0%" draw:blue="0%" draw:gamma="100%" draw:color-inversion="false" draw:image-opacity="100%" draw:color-mode="standard"/>
</style:style>
-</office:automatic-styles><office:body><office:text><text:sequence-decls><text:sequence-decl text:display-outline-level="0" text:name="Illustration"/><text:sequence-decl text:display-outline-level="0" text:name="Table"/><text:sequence-decl text:display-outline-level="0" text:name="Text"/><text:sequence-decl text:display-outline-level="0" text:name="Drawing"/><text:sequence-decl text:display-outline-level="0" text:name="Figure"/></text:sequence-decls><text:p text:style-name="Standard"/>
+</office:automatic-styles>
+<style:style style:name="extract.table" style:family="table"/>
+<style:style style:name="extract.table.column" style:family="table-column"/>
+<office:body><office:text><text:sequence-decls><text:sequence-decl text:display-outline-level="0" text:name="Illustration"/><text:sequence-decl text:display-outline-level="0" text:name="Table"/><text:sequence-decl text:display-outline-level="0" text:name="Text"/><text:sequence-decl text:display-outline-level="0" text:name="Drawing"/><text:sequence-decl text:display-outline-level="0" text:name="Figure"/></text:sequence-decls><text:p text:style-name="Standard"/>
<text:p text:style-name="Standard">
-<draw:frame text:anchor-type="paragraph" draw:z-index="5" draw:name="Shape1" draw:style-name="gr1" draw:text-style-name="Standard" svg:width="3.164382in" svg:height="1.031016in" draw:transform="rotate (-3.045849) translate (6.752333in 7.925972in)">
+<draw:frame text:anchor-type="paragraph" draw:z-index="5" draw:name="Shape1" draw:style-name="gr1" draw:text-style-name="Standard" svg:width="3.225657in" svg:height="4.214730in" draw:transform="rotate (-3.045849) translate (6.752333in 7.925972in)">
<draw:text-box>
-<text:p><text:span text:style-name="T11">There was one who was famed for the number of things He </text:span><text:span text:style-name="T12">forgot </text:span><text:span text:style-name="T11">when he entered the ship: His umbrella, his watch, all his jewels and rings, And the clothes he had bought for the trip. He had </text:span><text:span text:style-name="T13">forty-two</text:span><text:span text:style-name="T11"> boxes, all carefully packed, With his name painted clearly on each: But, since he omitted to mention the fact, They were all left behind on the beach.</text:span></text:p>
+<text:p><text:span text:style-name="T11">There was one who was famed for the number of things</text:span></text:p>
+
+<text:p><text:span text:style-name="T11"> He </text:span><text:span text:style-name="T12">forgot </text:span><text:span text:style-name="T11">when he entered the ship:</text:span></text:p>
+
+<text:p><text:span text:style-name="T11">His umbrella, his watch, all his jewels and rings,</text:span></text:p>
+
+<text:p><text:span text:style-name="T11"> And the clothes he had bought for the trip.</text:span></text:p>
+
+<text:p><text:span text:style-name="T11">He had </text:span><text:span text:style-name="T13">forty-two </text:span><text:span text:style-name="T11"> boxes, all carefully packed,</text:span></text:p>
+
+<text:p><text:span text:style-name="T11"> With his name painted clearly on each:</text:span></text:p>
+
+<text:p><text:span text:style-name="T11">But, since he omitted to mention the fact,</text:span></text:p>
+
+<text:p><text:span text:style-name="T11"> They were all left behind on the beach.</text:span></text:p>
</draw:text-box>
</draw:frame>
</text:p>
diff --git a/extract/test/Python2.pdf.mutool.text.ref b/extract/test/Python2.pdf.mutool.text.ref
new file mode 100644
index 00000000..de957303
--- /dev/null
+++ b/extract/test/Python2.pdf.mutool.text.ref
@@ -0,0 +1,39 @@
+There was one who was famed for the number of things
+ He forgot when he entered the ship:
+His umbrella, his watch, all his jewels and rings,
+ And the clothes he had bought for the trip.
+He had forty-two boxes, all carefully packed,
+ With his name painted clearly on each:
+But, since he omitted to mention the fact,
+ They were all left behind on the beach.
+The crew was complete: it included a Boots— A maker of Bonnets and Hoods— A Barrister, brought to arrange their disputes— And a Broker, to value their goods.
+A Billiard-marker, whose skill was immense, Might perhaps have won more than his share— But a Banker, engaged at enormous expense, Had the whole of their cash in his care.
+There was also a Beaver, that paced on the deck, Or would sit making lace in the bow: And had often (the Bellman said) saved them from wreck, Though none of the sailors knew how.
+"Just the place for a Snark!" the Bellman cried,
+ As he landed his crew with care;
+Supporting each man on the top of the tide
+ By a finger entwined in his hair.
+"Just the place for a Snark! I have said it twice:
+ That alone should encourage the crew.
+Just the place for a Snark! I have said it thrice:
+ What I tell you three times is true."
+There was a young man of Madras,
+Whose balls were constructed of brass,
+When jangled together,
+They played “Stormy Weather”,
+And lightning shot out of his ass.
+A Python, I should not advise,
+For it needs a doctor for its eyes,
+And has the Measles yearly.
+However, if you feel inclined
+To get one (to improve your mind,
+And not from fashion merely),
+Allow no music near its cage;
+And when it flies into a rage
+Chastise it, most severely.
+I had an Aunt in Yucatan
+Who bought a Python from a man
+And kept it for a pet.
+She died, because she never knew
+These simple little rules and few; —
+The snake is living yet.
diff --git a/extract/test/Python2clipped.pdf.intermediate-gs.xml.extract-autosplit.docx.dir.ref/word/document.xml b/extract/test/Python2clipped.pdf.intermediate-gs.xml.extract-autosplit.docx.dir.ref/word/document.xml
index 32b69d9f..7006f756 100644
--- a/extract/test/Python2clipped.pdf.intermediate-gs.xml.extract-autosplit.docx.dir.ref/word/document.xml
+++ b/extract/test/Python2clipped.pdf.intermediate-gs.xml.extract-autosplit.docx.dir.ref/word/document.xml
@@ -6,13 +6,13 @@
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT" w:hAnsi="TimesNewRomanPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">The crew was complete: it included a </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPS-BoldMT" w:hAnsi="TimesNewRomanPS-BoldMT"/><w:b/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">Boots</w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT" w:hAnsi="TimesNewRomanPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">&#x2014; A maker of Bonnets and Hoods&#x2014; A </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPS-BoldMT" w:hAnsi="TimesNewRomanPS-BoldMT"/><w:b/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">Barrister</w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT" w:hAnsi="TimesNewRomanPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">, brought to arrange their disputes&#x2014; And a </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPS-BoldMT" w:hAnsi="TimesNewRomanPS-BoldMT"/><w:b/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">Broker</w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT" w:hAnsi="TimesNewRomanPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">, to value their goods.</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT-Identity-H" w:hAnsi="TimesNewRomanPSMT-Identity-H"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">The crew was complete: it included a </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPS-BoldMT-Identity-H" w:hAnsi="TimesNewRomanPS-BoldMT-Identity-H"/><w:b/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">Boots</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT-Identity-H" w:hAnsi="TimesNewRomanPSMT-Identity-H"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">&#x2014; A maker of Bonnets and Hoods&#x2014; A </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPS-BoldMT-Identity-H" w:hAnsi="TimesNewRomanPS-BoldMT-Identity-H"/><w:b/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">Barrister</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT-Identity-H" w:hAnsi="TimesNewRomanPSMT-Identity-H"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">, brought to arrange their disputes&#x2014; And a </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPS-BoldMT-Identity-H" w:hAnsi="TimesNewRomanPS-BoldMT-Identity-H"/><w:b/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">Broker</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT-Identity-H" w:hAnsi="TimesNewRomanPSMT-Identity-H"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">, to value their goods.</w:t></w:r>
</w:p>
<w:p>
@@ -20,13 +20,13 @@
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT" w:hAnsi="TimesNewRomanPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">A </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPS-BoldMT" w:hAnsi="TimesNewRomanPS-BoldMT"/><w:b/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">Billiard-marker</w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT" w:hAnsi="TimesNewRomanPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">, whose skill was immense, Might perhaps have won more than his share&#x2014; But a </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPS-BoldMT" w:hAnsi="TimesNewRomanPS-BoldMT"/><w:b/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">Banker</w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT" w:hAnsi="TimesNewRomanPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">, engaged at enormous expense, Had the whole of their </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPS-ItalicMT" w:hAnsi="TimesNewRomanPS-ItalicMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">cash </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT" w:hAnsi="TimesNewRomanPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">in his care.</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT-Identity-H" w:hAnsi="TimesNewRomanPSMT-Identity-H"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">A </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPS-BoldMT-Identity-H" w:hAnsi="TimesNewRomanPS-BoldMT-Identity-H"/><w:b/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">Billiard-marker</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT-Identity-H" w:hAnsi="TimesNewRomanPSMT-Identity-H"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">, whose skill was immense, Might perhaps have won more than his share&#x2014; But a </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPS-BoldMT-Identity-H" w:hAnsi="TimesNewRomanPS-BoldMT-Identity-H"/><w:b/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">Banker</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT-Identity-H" w:hAnsi="TimesNewRomanPSMT-Identity-H"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">, engaged at enormous expense, Had the whole of their </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPS-ItalicMT-Identity-H" w:hAnsi="TimesNewRomanPS-ItalicMT-Identity-H"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">cash </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT-Identity-H" w:hAnsi="TimesNewRomanPSMT-Identity-H"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">in his care.</w:t></w:r>
</w:p>
<w:p>
@@ -34,11 +34,11 @@
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT" w:hAnsi="TimesNewRomanPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">There was also a </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPS-BoldMT" w:hAnsi="TimesNewRomanPS-BoldMT"/><w:b/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">Beaver</w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT" w:hAnsi="TimesNewRomanPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">, that paced on the deck, Or would sit making lace in the bow: And had often (the </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPS-BoldMT" w:hAnsi="TimesNewRomanPS-BoldMT"/><w:b/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">Bellman </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT" w:hAnsi="TimesNewRomanPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">said) saved them from wreck, Though none of the sailors knew how.</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT-Identity-H" w:hAnsi="TimesNewRomanPSMT-Identity-H"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">There was also a </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPS-BoldMT-Identity-H" w:hAnsi="TimesNewRomanPS-BoldMT-Identity-H"/><w:b/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">Beaver</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT-Identity-H" w:hAnsi="TimesNewRomanPSMT-Identity-H"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">, that paced on the deck, Or would sit making lace in the bow: And had often (the </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPS-BoldMT-Identity-H" w:hAnsi="TimesNewRomanPS-BoldMT-Identity-H"/><w:b/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">Bellman </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT-Identity-H" w:hAnsi="TimesNewRomanPSMT-Identity-H"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">said) saved them from wreck, Though none of the sailors knew how.</w:t></w:r>
</w:p>
<w:p>
@@ -50,11 +50,67 @@
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT" w:hAnsi="CourierNewPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">There was one who was famed for the number of things He His umbrella, his watch, all his jewels and rings, </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="CourierNewPS-BoldMT" w:hAnsi="CourierNewPS-BoldMT"/><w:b/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">forgot </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT" w:hAnsi="CourierNewPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve"> And the clothes he had bought for the trip. when he entered the ship: He had </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="CourierNewPS-ItalicMT" w:hAnsi="CourierNewPS-ItalicMT"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">forty-two </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT" w:hAnsi="CourierNewPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">With his name painted clearly on each: But, since he omitted to mention the fact, They were all left behind on the beach. boxes, all carefully packed,</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT-Identity-H" w:hAnsi="CourierNewPSMT-Identity-H"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">There was one who was famed for the number of things</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve"></w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT-Identity-H" w:hAnsi="CourierNewPSMT-Identity-H"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve"> He </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPS-BoldMT-Identity-H" w:hAnsi="CourierNewPS-BoldMT-Identity-H"/><w:b/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">forgot </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT-Identity-H" w:hAnsi="CourierNewPSMT-Identity-H"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">when he entered the ship:</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve"></w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT-Identity-H" w:hAnsi="CourierNewPSMT-Identity-H"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">His umbrella, his watch, all his jewels and rings,</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve"></w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT-Identity-H" w:hAnsi="CourierNewPSMT-Identity-H"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve"> And the clothes he had bought for the trip.</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve"></w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT-Identity-H" w:hAnsi="CourierNewPSMT-Identity-H"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">He had </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPS-ItalicMT-Identity-H" w:hAnsi="CourierNewPS-ItalicMT-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">forty-two </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT-Identity-H" w:hAnsi="CourierNewPSMT-Identity-H"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve"> boxes, all carefully packed,</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve"></w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT-Identity-H" w:hAnsi="CourierNewPSMT-Identity-H"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve"> With his name painted clearly on each:</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve"></w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT-Identity-H" w:hAnsi="CourierNewPSMT-Identity-H"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">But, since he omitted to mention the fact,</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve"></w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT-Identity-H" w:hAnsi="CourierNewPSMT-Identity-H"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve"> They were all left behind on the beach.</w:t></w:r>
</w:p>
<w:p>
@@ -66,11 +122,11 @@
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">&quot;Just the place for a </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Italic" w:hAnsi="OpenSans-Italic"/><w:sz w:val="28.000000"/><w:szCs w:val="21.000000"/></w:rPr><w:t xml:space="preserve">Snark</w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">!&quot; the </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Bold" w:hAnsi="OpenSans-Bold"/><w:b/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">Bellman </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">cried,</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">&quot;Just the place for a </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Italic-Identity-H" w:hAnsi="OpenSans-Italic-Identity-H"/><w:sz w:val="28.000000"/><w:szCs w:val="21.000000"/></w:rPr><w:t xml:space="preserve">Snark</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">!&quot; the </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Bold-Identity-H" w:hAnsi="OpenSans-Bold-Identity-H"/><w:b/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">Bellman </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">cried,</w:t></w:r>
</w:p>
<w:p>
@@ -78,7 +134,7 @@
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve"> As he landed his crew with care;</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve"> As he landed his crew with care;</w:t></w:r>
</w:p>
<w:p>
@@ -86,7 +142,7 @@
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">Supporting each man on the top of the tide</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">Supporting each man on the top of the tide</w:t></w:r>
</w:p>
<w:p>
@@ -94,7 +150,7 @@
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve"> By a finger entwined in his hair.</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve"> By a finger entwined in his hair.</w:t></w:r>
</w:p>
<w:p>
@@ -102,9 +158,9 @@
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">&quot;Just the place for a </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Italic" w:hAnsi="OpenSans-Italic"/><w:sz w:val="28.000000"/><w:szCs w:val="21.000000"/></w:rPr><w:t xml:space="preserve">Snark</w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">! I have said it twice:</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">&quot;Just the place for a </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Italic-Identity-H" w:hAnsi="OpenSans-Italic-Identity-H"/><w:sz w:val="28.000000"/><w:szCs w:val="21.000000"/></w:rPr><w:t xml:space="preserve">Snark</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">! I have said it twice:</w:t></w:r>
</w:p>
<w:p>
@@ -112,7 +168,7 @@
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve"> That alone should encourage the crew.</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve"> That alone should encourage the crew.</w:t></w:r>
</w:p>
<w:p>
@@ -120,9 +176,9 @@
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">Just the place for a </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Italic" w:hAnsi="OpenSans-Italic"/><w:sz w:val="28.000000"/><w:szCs w:val="21.000000"/></w:rPr><w:t xml:space="preserve">Snark</w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">! I have said it thrice:</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">Just the place for a </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Italic-Identity-H" w:hAnsi="OpenSans-Italic-Identity-H"/><w:sz w:val="28.000000"/><w:szCs w:val="21.000000"/></w:rPr><w:t xml:space="preserve">Snark</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">! I have said it thrice:</w:t></w:r>
</w:p>
<w:p>
@@ -130,9 +186,9 @@
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve"> What I tell you </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Bold" w:hAnsi="OpenSans-Bold"/><w:b/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">three </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">times is true.&quot;</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve"> What I tell you </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Bold-Identity-H" w:hAnsi="OpenSans-Bold-Identity-H"/><w:b/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">three </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">times is true.&quot;</w:t></w:r>
</w:p>
<w:p>
@@ -144,9 +200,9 @@
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">There was a young man of </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans-BoldItalic" w:hAnsi="OpenSans-BoldItalic"/><w:b/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">Madras</w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">,</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">There was a young man of </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-BoldItalic-Identity-H" w:hAnsi="OpenSans-BoldItalic-Identity-H"/><w:b/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">Madras</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">,</w:t></w:r>
</w:p>
<w:p>
@@ -154,9 +210,9 @@
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">Whose balls were </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Italic" w:hAnsi="OpenSans-Italic"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">constructed </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">of brass,</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">Whose balls were </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Italic-Identity-H" w:hAnsi="OpenSans-Italic-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">constructed </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">of brass,</w:t></w:r>
</w:p>
<w:p>
@@ -164,7 +220,7 @@
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">When jangled together,</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">When jangled together,</w:t></w:r>
</w:p>
<w:p>
@@ -172,9 +228,9 @@
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">They played &#x201c;</w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Bold" w:hAnsi="OpenSans-Bold"/><w:b/><w:sz w:val="28.000000"/><w:szCs w:val="21.000000"/></w:rPr><w:t xml:space="preserve">Stormy Weather</w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">&#x201d;,</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">They played &#x201c;</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Bold-Identity-H" w:hAnsi="OpenSans-Bold-Identity-H"/><w:b/><w:sz w:val="28.000000"/><w:szCs w:val="21.000000"/></w:rPr><w:t xml:space="preserve">Stormy Weather</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">&#x201d;,</w:t></w:r>
</w:p>
<w:p>
@@ -182,10 +238,10 @@
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">And </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Italic" w:hAnsi="OpenSans-Italic"/><w:sz w:val="32.000000"/><w:szCs w:val="24.000000"/></w:rPr><w:t xml:space="preserve">lightning</w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Italic" w:hAnsi="OpenSans-Italic"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve"> </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">shot out of his ass.</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">And </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Italic-Identity-H" w:hAnsi="OpenSans-Italic-Identity-H"/><w:sz w:val="32.000000"/><w:szCs w:val="24.000000"/></w:rPr><w:t xml:space="preserve">lightning</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Italic-Identity-H" w:hAnsi="OpenSans-Italic-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve"> </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">shot out of his ass.</w:t></w:r>
</w:p>
<w:p>
@@ -197,7 +253,7 @@
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">A Python, I should not advise,</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">A Python, I should not advise,</w:t></w:r>
</w:p>
<w:p>
@@ -205,7 +261,7 @@
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">For it needs a doctor for its eyes,</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">For it needs a doctor for its eyes,</w:t></w:r>
</w:p>
<w:p>
@@ -213,7 +269,7 @@
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">And has the Measles yearly.</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">And has the Measles yearly.</w:t></w:r>
</w:p>
<w:p>
@@ -221,9 +277,9 @@
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">However, if </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="28.000000"/><w:szCs w:val="21.000000"/></w:rPr><w:t xml:space="preserve">you feel</w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve"> inclined</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">However, if </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="28.000000"/><w:szCs w:val="21.000000"/></w:rPr><w:t xml:space="preserve">you feel</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve"> inclined</w:t></w:r>
</w:p>
<w:p>
@@ -231,7 +287,7 @@
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">To get one (to improve your mind,</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">To get one (to improve your mind,</w:t></w:r>
</w:p>
<w:p>
@@ -239,7 +295,7 @@
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">And not from fashion merely),</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">And not from fashion merely),</w:t></w:r>
</w:p>
<w:p>
@@ -247,9 +303,9 @@
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">Allow no </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Italic" w:hAnsi="OpenSans-Italic"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">music</w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve"> near its cage;</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">Allow no </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Italic-Identity-H" w:hAnsi="OpenSans-Italic-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">music</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve"> near its cage;</w:t></w:r>
</w:p>
<w:p>
@@ -257,9 +313,9 @@
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">And when it </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Bold" w:hAnsi="OpenSans-Bold"/><w:b/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">flies</w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve"> into a rage</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">And when it </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Bold-Identity-H" w:hAnsi="OpenSans-Bold-Identity-H"/><w:b/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">flies</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve"> into a rage</w:t></w:r>
</w:p>
<w:p>
@@ -267,7 +323,7 @@
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">Chastise it, most severely.</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">Chastise it, most severely.</w:t></w:r>
</w:p>
<w:p>
@@ -275,7 +331,7 @@
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">I had an Aunt in Yucatan</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">I had an Aunt in Yucatan</w:t></w:r>
</w:p>
<w:p>
@@ -283,7 +339,7 @@
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">Who bought a Python from a man</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">Who bought a Python from a man</w:t></w:r>
</w:p>
<w:p>
@@ -291,7 +347,7 @@
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">And kept it for a pet.</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">And kept it for a pet.</w:t></w:r>
</w:p>
<w:p>
@@ -299,9 +355,9 @@
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">She </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans-BoldItalic" w:hAnsi="OpenSans-BoldItalic"/><w:b/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">died</w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">, because she never knew</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">She </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-BoldItalic-Identity-H" w:hAnsi="OpenSans-BoldItalic-Identity-H"/><w:b/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">died</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">, because she never knew</w:t></w:r>
</w:p>
<w:p>
@@ -309,7 +365,7 @@
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">These simple little rules and few; &#x2014;</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">These simple little rules and few; &#x2014;</w:t></w:r>
</w:p>
<w:p>
@@ -317,5 +373,5 @@
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">The snake is living yet.</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">The snake is living yet.</w:t></w:r>
</w:p></w:body></w:document> \ No newline at end of file
diff --git a/extract/test/Python2clipped.pdf.intermediate-gs.xml.extract-rotate-spacing.docx.dir.ref/word/document.xml b/extract/test/Python2clipped.pdf.intermediate-gs.xml.extract-rotate-spacing.docx.dir.ref/word/document.xml
index 115e84f5..ece225de 100644
--- a/extract/test/Python2clipped.pdf.intermediate-gs.xml.extract-rotate-spacing.docx.dir.ref/word/document.xml
+++ b/extract/test/Python2clipped.pdf.intermediate-gs.xml.extract-rotate-spacing.docx.dir.ref/word/document.xml
@@ -40,31 +40,31 @@
<w:txbxContent>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT" w:hAnsi="TimesNewRomanPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">The crew was complete: it included a </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPS-BoldMT" w:hAnsi="TimesNewRomanPS-BoldMT"/><w:b/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">Boots</w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT" w:hAnsi="TimesNewRomanPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">&#x2014; A maker of Bonnets and Hoods&#x2014; A </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPS-BoldMT" w:hAnsi="TimesNewRomanPS-BoldMT"/><w:b/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">Barrister</w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT" w:hAnsi="TimesNewRomanPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">, brought to arrange their disputes&#x2014; And a </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPS-BoldMT" w:hAnsi="TimesNewRomanPS-BoldMT"/><w:b/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">Broker</w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT" w:hAnsi="TimesNewRomanPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">, to value their goods.</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT-Identity-H" w:hAnsi="TimesNewRomanPSMT-Identity-H"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">The crew was complete: it included a </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPS-BoldMT-Identity-H" w:hAnsi="TimesNewRomanPS-BoldMT-Identity-H"/><w:b/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">Boots</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT-Identity-H" w:hAnsi="TimesNewRomanPSMT-Identity-H"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">&#x2014; A maker of Bonnets and Hoods&#x2014; A </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPS-BoldMT-Identity-H" w:hAnsi="TimesNewRomanPS-BoldMT-Identity-H"/><w:b/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">Barrister</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT-Identity-H" w:hAnsi="TimesNewRomanPSMT-Identity-H"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">, brought to arrange their disputes&#x2014; And a </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPS-BoldMT-Identity-H" w:hAnsi="TimesNewRomanPS-BoldMT-Identity-H"/><w:b/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">Broker</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT-Identity-H" w:hAnsi="TimesNewRomanPSMT-Identity-H"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">, to value their goods.</w:t></w:r>
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT" w:hAnsi="TimesNewRomanPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">A </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPS-BoldMT" w:hAnsi="TimesNewRomanPS-BoldMT"/><w:b/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">Billiard-marker</w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT" w:hAnsi="TimesNewRomanPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">, whose skill was immense, Might perhaps have won more than his share&#x2014; But a </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPS-BoldMT" w:hAnsi="TimesNewRomanPS-BoldMT"/><w:b/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">Banker</w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT" w:hAnsi="TimesNewRomanPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">, engaged at enormous expense, Had the whole of their </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPS-ItalicMT" w:hAnsi="TimesNewRomanPS-ItalicMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">cash </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT" w:hAnsi="TimesNewRomanPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">in his care.</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT-Identity-H" w:hAnsi="TimesNewRomanPSMT-Identity-H"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">A </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPS-BoldMT-Identity-H" w:hAnsi="TimesNewRomanPS-BoldMT-Identity-H"/><w:b/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">Billiard-marker</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT-Identity-H" w:hAnsi="TimesNewRomanPSMT-Identity-H"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">, whose skill was immense, Might perhaps have won more than his share&#x2014; But a </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPS-BoldMT-Identity-H" w:hAnsi="TimesNewRomanPS-BoldMT-Identity-H"/><w:b/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">Banker</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT-Identity-H" w:hAnsi="TimesNewRomanPSMT-Identity-H"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">, engaged at enormous expense, Had the whole of their </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPS-ItalicMT-Identity-H" w:hAnsi="TimesNewRomanPS-ItalicMT-Identity-H"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">cash </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT-Identity-H" w:hAnsi="TimesNewRomanPSMT-Identity-H"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">in his care.</w:t></w:r>
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT" w:hAnsi="TimesNewRomanPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">There was also a </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPS-BoldMT" w:hAnsi="TimesNewRomanPS-BoldMT"/><w:b/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">Beaver</w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT" w:hAnsi="TimesNewRomanPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">, that paced on the deck, Or would sit making lace in the bow: And had often (the </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPS-BoldMT" w:hAnsi="TimesNewRomanPS-BoldMT"/><w:b/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">Bellman </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT" w:hAnsi="TimesNewRomanPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">said) saved them from wreck, Though none of the sailors knew how.</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT-Identity-H" w:hAnsi="TimesNewRomanPSMT-Identity-H"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">There was also a </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPS-BoldMT-Identity-H" w:hAnsi="TimesNewRomanPS-BoldMT-Identity-H"/><w:b/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">Beaver</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT-Identity-H" w:hAnsi="TimesNewRomanPSMT-Identity-H"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">, that paced on the deck, Or would sit making lace in the bow: And had often (the </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPS-BoldMT-Identity-H" w:hAnsi="TimesNewRomanPS-BoldMT-Identity-H"/><w:b/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">Bellman </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT-Identity-H" w:hAnsi="TimesNewRomanPSMT-Identity-H"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">said) saved them from wreck, Though none of the sailors knew how.</w:t></w:r>
</w:p>
</w:txbxContent>
</wps:txbx>
@@ -91,31 +91,31 @@
<w:txbxContent>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT" w:hAnsi="TimesNewRomanPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">The crew was complete: it included a </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPS-BoldMT" w:hAnsi="TimesNewRomanPS-BoldMT"/><w:b/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">Boots</w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT" w:hAnsi="TimesNewRomanPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">&#x2014; A maker of Bonnets and Hoods&#x2014; A </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPS-BoldMT" w:hAnsi="TimesNewRomanPS-BoldMT"/><w:b/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">Barrister</w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT" w:hAnsi="TimesNewRomanPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">, brought to arrange their disputes&#x2014; And a </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPS-BoldMT" w:hAnsi="TimesNewRomanPS-BoldMT"/><w:b/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">Broker</w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT" w:hAnsi="TimesNewRomanPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">, to value their goods.</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT-Identity-H" w:hAnsi="TimesNewRomanPSMT-Identity-H"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">The crew was complete: it included a </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPS-BoldMT-Identity-H" w:hAnsi="TimesNewRomanPS-BoldMT-Identity-H"/><w:b/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">Boots</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT-Identity-H" w:hAnsi="TimesNewRomanPSMT-Identity-H"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">&#x2014; A maker of Bonnets and Hoods&#x2014; A </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPS-BoldMT-Identity-H" w:hAnsi="TimesNewRomanPS-BoldMT-Identity-H"/><w:b/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">Barrister</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT-Identity-H" w:hAnsi="TimesNewRomanPSMT-Identity-H"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">, brought to arrange their disputes&#x2014; And a </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPS-BoldMT-Identity-H" w:hAnsi="TimesNewRomanPS-BoldMT-Identity-H"/><w:b/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">Broker</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT-Identity-H" w:hAnsi="TimesNewRomanPSMT-Identity-H"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">, to value their goods.</w:t></w:r>
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT" w:hAnsi="TimesNewRomanPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">A </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPS-BoldMT" w:hAnsi="TimesNewRomanPS-BoldMT"/><w:b/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">Billiard-marker</w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT" w:hAnsi="TimesNewRomanPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">, whose skill was immense, Might perhaps have won more than his share&#x2014; But a </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPS-BoldMT" w:hAnsi="TimesNewRomanPS-BoldMT"/><w:b/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">Banker</w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT" w:hAnsi="TimesNewRomanPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">, engaged at enormous expense, Had the whole of their </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPS-ItalicMT" w:hAnsi="TimesNewRomanPS-ItalicMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">cash </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT" w:hAnsi="TimesNewRomanPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">in his care.</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT-Identity-H" w:hAnsi="TimesNewRomanPSMT-Identity-H"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">A </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPS-BoldMT-Identity-H" w:hAnsi="TimesNewRomanPS-BoldMT-Identity-H"/><w:b/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">Billiard-marker</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT-Identity-H" w:hAnsi="TimesNewRomanPSMT-Identity-H"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">, whose skill was immense, Might perhaps have won more than his share&#x2014; But a </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPS-BoldMT-Identity-H" w:hAnsi="TimesNewRomanPS-BoldMT-Identity-H"/><w:b/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">Banker</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT-Identity-H" w:hAnsi="TimesNewRomanPSMT-Identity-H"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">, engaged at enormous expense, Had the whole of their </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPS-ItalicMT-Identity-H" w:hAnsi="TimesNewRomanPS-ItalicMT-Identity-H"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">cash </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT-Identity-H" w:hAnsi="TimesNewRomanPSMT-Identity-H"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">in his care.</w:t></w:r>
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT" w:hAnsi="TimesNewRomanPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">There was also a </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPS-BoldMT" w:hAnsi="TimesNewRomanPS-BoldMT"/><w:b/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">Beaver</w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT" w:hAnsi="TimesNewRomanPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">, that paced on the deck, Or would sit making lace in the bow: And had often (the </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPS-BoldMT" w:hAnsi="TimesNewRomanPS-BoldMT"/><w:b/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">Bellman </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT" w:hAnsi="TimesNewRomanPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">said) saved them from wreck, Though none of the sailors knew how.</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT-Identity-H" w:hAnsi="TimesNewRomanPSMT-Identity-H"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">There was also a </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPS-BoldMT-Identity-H" w:hAnsi="TimesNewRomanPS-BoldMT-Identity-H"/><w:b/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">Beaver</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT-Identity-H" w:hAnsi="TimesNewRomanPSMT-Identity-H"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">, that paced on the deck, Or would sit making lace in the bow: And had often (the </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPS-BoldMT-Identity-H" w:hAnsi="TimesNewRomanPS-BoldMT-Identity-H"/><w:b/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">Bellman </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT-Identity-H" w:hAnsi="TimesNewRomanPSMT-Identity-H"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">said) saved them from wreck, Though none of the sailors knew how.</w:t></w:r>
</w:p>
</w:txbxContent>
@@ -143,12 +143,12 @@
<wp:anchor distT="0" distB="0" distL="0" distR="0" simplePos="0" relativeHeight="0" behindDoc="0" locked="0" layoutInCell="1" allowOverlap="1" wp14:anchorId="53A210D1" wp14:editId="2B7E8016">
<wp:simplePos x="0" y="0"/>
<wp:positionH relativeFrom="page">
- <wp:posOffset>1630060</wp:posOffset>
+ <wp:posOffset>1589342</wp:posOffset>
</wp:positionH>
<wp:positionV relativeFrom="page">
- <wp:posOffset>825686</wp:posOffset>
+ <wp:posOffset>-3913875</wp:posOffset>
</wp:positionV>
- <wp:extent cx="4204294" cy="5742838"/>
+ <wp:extent cx="4017949" cy="10484350"/>
<wp:effectExtent l="381000" t="723900" r="371475" b="723900"/>
<wp:wrapNone/>
<wp:docPr id="2" name="Text Box 2"/>
@@ -170,11 +170,39 @@
<w:txbxContent>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT" w:hAnsi="CourierNewPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">There was one who was famed for the number of things He His umbrella, his watch, all his jewels and rings, </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="CourierNewPS-BoldMT" w:hAnsi="CourierNewPS-BoldMT"/><w:b/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">forgot </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT" w:hAnsi="CourierNewPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve"> And the clothes he had bought for the trip. when he entered the ship: He had </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="CourierNewPS-ItalicMT" w:hAnsi="CourierNewPS-ItalicMT"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">forty-two </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT" w:hAnsi="CourierNewPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">With his name painted clearly on each: But, since he omitted to mention the fact, They were all left behind on the beach. boxes, all carefully packed,</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT-Identity-H" w:hAnsi="CourierNewPSMT-Identity-H"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">There was one who was famed for the number of things</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT-Identity-H" w:hAnsi="CourierNewPSMT-Identity-H"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve"> He </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPS-BoldMT-Identity-H" w:hAnsi="CourierNewPS-BoldMT-Identity-H"/><w:b/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">forgot </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT-Identity-H" w:hAnsi="CourierNewPSMT-Identity-H"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">when he entered the ship:</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT-Identity-H" w:hAnsi="CourierNewPSMT-Identity-H"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">His umbrella, his watch, all his jewels and rings,</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT-Identity-H" w:hAnsi="CourierNewPSMT-Identity-H"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve"> And the clothes he had bought for the trip.</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT-Identity-H" w:hAnsi="CourierNewPSMT-Identity-H"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">He had </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPS-ItalicMT-Identity-H" w:hAnsi="CourierNewPS-ItalicMT-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">forty-two </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT-Identity-H" w:hAnsi="CourierNewPSMT-Identity-H"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve"> boxes, all carefully packed,</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT-Identity-H" w:hAnsi="CourierNewPSMT-Identity-H"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve"> With his name painted clearly on each:</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT-Identity-H" w:hAnsi="CourierNewPSMT-Identity-H"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">But, since he omitted to mention the fact,</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT-Identity-H" w:hAnsi="CourierNewPSMT-Identity-H"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve"> They were all left behind on the beach.</w:t></w:r>
</w:p>
</w:txbxContent>
</wps:txbx>
@@ -201,11 +229,39 @@
<w:txbxContent>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT" w:hAnsi="CourierNewPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">There was one who was famed for the number of things He His umbrella, his watch, all his jewels and rings, </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="CourierNewPS-BoldMT" w:hAnsi="CourierNewPS-BoldMT"/><w:b/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">forgot </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT" w:hAnsi="CourierNewPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve"> And the clothes he had bought for the trip. when he entered the ship: He had </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="CourierNewPS-ItalicMT" w:hAnsi="CourierNewPS-ItalicMT"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">forty-two </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT" w:hAnsi="CourierNewPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">With his name painted clearly on each: But, since he omitted to mention the fact, They were all left behind on the beach. boxes, all carefully packed,</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT-Identity-H" w:hAnsi="CourierNewPSMT-Identity-H"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">There was one who was famed for the number of things</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT-Identity-H" w:hAnsi="CourierNewPSMT-Identity-H"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve"> He </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPS-BoldMT-Identity-H" w:hAnsi="CourierNewPS-BoldMT-Identity-H"/><w:b/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">forgot </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT-Identity-H" w:hAnsi="CourierNewPSMT-Identity-H"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">when he entered the ship:</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT-Identity-H" w:hAnsi="CourierNewPSMT-Identity-H"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">His umbrella, his watch, all his jewels and rings,</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT-Identity-H" w:hAnsi="CourierNewPSMT-Identity-H"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve"> And the clothes he had bought for the trip.</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT-Identity-H" w:hAnsi="CourierNewPSMT-Identity-H"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">He had </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPS-ItalicMT-Identity-H" w:hAnsi="CourierNewPS-ItalicMT-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">forty-two </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT-Identity-H" w:hAnsi="CourierNewPSMT-Identity-H"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve"> boxes, all carefully packed,</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT-Identity-H" w:hAnsi="CourierNewPSMT-Identity-H"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve"> With his name painted clearly on each:</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT-Identity-H" w:hAnsi="CourierNewPSMT-Identity-H"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">But, since he omitted to mention the fact,</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT-Identity-H" w:hAnsi="CourierNewPSMT-Identity-H"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve"> They were all left behind on the beach.</w:t></w:r>
</w:p>
</w:txbxContent>
@@ -260,45 +316,45 @@
<w:txbxContent>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">&quot;Just the place for a </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Italic" w:hAnsi="OpenSans-Italic"/><w:sz w:val="28.000000"/><w:szCs w:val="21.000000"/></w:rPr><w:t xml:space="preserve">Snark</w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">!&quot; the </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Bold" w:hAnsi="OpenSans-Bold"/><w:b/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">Bellman </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">cried,</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">&quot;Just the place for a </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Italic-Identity-H" w:hAnsi="OpenSans-Italic-Identity-H"/><w:sz w:val="28.000000"/><w:szCs w:val="21.000000"/></w:rPr><w:t xml:space="preserve">Snark</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">!&quot; the </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Bold-Identity-H" w:hAnsi="OpenSans-Bold-Identity-H"/><w:b/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">Bellman </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">cried,</w:t></w:r>
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve"> As he landed his crew with care;</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve"> As he landed his crew with care;</w:t></w:r>
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">Supporting each man on the top of the tide</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">Supporting each man on the top of the tide</w:t></w:r>
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve"> By a finger entwined in his hair.</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve"> By a finger entwined in his hair.</w:t></w:r>
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">&quot;Just the place for a </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Italic" w:hAnsi="OpenSans-Italic"/><w:sz w:val="28.000000"/><w:szCs w:val="21.000000"/></w:rPr><w:t xml:space="preserve">Snark</w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">! I have said it twice:</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">&quot;Just the place for a </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Italic-Identity-H" w:hAnsi="OpenSans-Italic-Identity-H"/><w:sz w:val="28.000000"/><w:szCs w:val="21.000000"/></w:rPr><w:t xml:space="preserve">Snark</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">! I have said it twice:</w:t></w:r>
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve"> That alone should encourage the crew.</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve"> That alone should encourage the crew.</w:t></w:r>
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">Just the place for a </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Italic" w:hAnsi="OpenSans-Italic"/><w:sz w:val="28.000000"/><w:szCs w:val="21.000000"/></w:rPr><w:t xml:space="preserve">Snark</w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">! I have said it thrice:</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">Just the place for a </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Italic-Identity-H" w:hAnsi="OpenSans-Italic-Identity-H"/><w:sz w:val="28.000000"/><w:szCs w:val="21.000000"/></w:rPr><w:t xml:space="preserve">Snark</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">! I have said it thrice:</w:t></w:r>
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve"> What I tell you </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Bold" w:hAnsi="OpenSans-Bold"/><w:b/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">three </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">times is true.&quot;</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve"> What I tell you </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Bold-Identity-H" w:hAnsi="OpenSans-Bold-Identity-H"/><w:b/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">three </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">times is true.&quot;</w:t></w:r>
</w:p>
</w:txbxContent>
</wps:txbx>
@@ -325,45 +381,45 @@
<w:txbxContent>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">&quot;Just the place for a </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Italic" w:hAnsi="OpenSans-Italic"/><w:sz w:val="28.000000"/><w:szCs w:val="21.000000"/></w:rPr><w:t xml:space="preserve">Snark</w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">!&quot; the </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Bold" w:hAnsi="OpenSans-Bold"/><w:b/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">Bellman </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">cried,</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">&quot;Just the place for a </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Italic-Identity-H" w:hAnsi="OpenSans-Italic-Identity-H"/><w:sz w:val="28.000000"/><w:szCs w:val="21.000000"/></w:rPr><w:t xml:space="preserve">Snark</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">!&quot; the </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Bold-Identity-H" w:hAnsi="OpenSans-Bold-Identity-H"/><w:b/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">Bellman </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">cried,</w:t></w:r>
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve"> As he landed his crew with care;</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve"> As he landed his crew with care;</w:t></w:r>
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">Supporting each man on the top of the tide</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">Supporting each man on the top of the tide</w:t></w:r>
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve"> By a finger entwined in his hair.</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve"> By a finger entwined in his hair.</w:t></w:r>
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">&quot;Just the place for a </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Italic" w:hAnsi="OpenSans-Italic"/><w:sz w:val="28.000000"/><w:szCs w:val="21.000000"/></w:rPr><w:t xml:space="preserve">Snark</w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">! I have said it twice:</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">&quot;Just the place for a </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Italic-Identity-H" w:hAnsi="OpenSans-Italic-Identity-H"/><w:sz w:val="28.000000"/><w:szCs w:val="21.000000"/></w:rPr><w:t xml:space="preserve">Snark</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">! I have said it twice:</w:t></w:r>
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve"> That alone should encourage the crew.</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve"> That alone should encourage the crew.</w:t></w:r>
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">Just the place for a </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Italic" w:hAnsi="OpenSans-Italic"/><w:sz w:val="28.000000"/><w:szCs w:val="21.000000"/></w:rPr><w:t xml:space="preserve">Snark</w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">! I have said it thrice:</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">Just the place for a </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Italic-Identity-H" w:hAnsi="OpenSans-Italic-Identity-H"/><w:sz w:val="28.000000"/><w:szCs w:val="21.000000"/></w:rPr><w:t xml:space="preserve">Snark</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">! I have said it thrice:</w:t></w:r>
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve"> What I tell you </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Bold" w:hAnsi="OpenSans-Bold"/><w:b/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">three </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">times is true.&quot;</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve"> What I tell you </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Bold-Identity-H" w:hAnsi="OpenSans-Bold-Identity-H"/><w:b/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">three </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">times is true.&quot;</w:t></w:r>
</w:p>
</w:txbxContent>
@@ -418,32 +474,32 @@
<w:txbxContent>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">There was a young man of </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans-BoldItalic" w:hAnsi="OpenSans-BoldItalic"/><w:b/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">Madras</w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">,</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">There was a young man of </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-BoldItalic-Identity-H" w:hAnsi="OpenSans-BoldItalic-Identity-H"/><w:b/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">Madras</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">,</w:t></w:r>
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">Whose balls were </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Italic" w:hAnsi="OpenSans-Italic"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">constructed </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">of brass,</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">Whose balls were </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Italic-Identity-H" w:hAnsi="OpenSans-Italic-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">constructed </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">of brass,</w:t></w:r>
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">When jangled together,</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">When jangled together,</w:t></w:r>
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">They played &#x201c;</w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Bold" w:hAnsi="OpenSans-Bold"/><w:b/><w:sz w:val="28.000000"/><w:szCs w:val="21.000000"/></w:rPr><w:t xml:space="preserve">Stormy Weather</w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">&#x201d;,</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">They played &#x201c;</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Bold-Identity-H" w:hAnsi="OpenSans-Bold-Identity-H"/><w:b/><w:sz w:val="28.000000"/><w:szCs w:val="21.000000"/></w:rPr><w:t xml:space="preserve">Stormy Weather</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">&#x201d;,</w:t></w:r>
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">And </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Italic" w:hAnsi="OpenSans-Italic"/><w:sz w:val="32.000000"/><w:szCs w:val="24.000000"/></w:rPr><w:t xml:space="preserve">lightning</w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Italic" w:hAnsi="OpenSans-Italic"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve"> </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">shot out of his ass.</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">And </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Italic-Identity-H" w:hAnsi="OpenSans-Italic-Identity-H"/><w:sz w:val="32.000000"/><w:szCs w:val="24.000000"/></w:rPr><w:t xml:space="preserve">lightning</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Italic-Identity-H" w:hAnsi="OpenSans-Italic-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve"> </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">shot out of his ass.</w:t></w:r>
</w:p>
</w:txbxContent>
</wps:txbx>
@@ -470,32 +526,32 @@
<w:txbxContent>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">There was a young man of </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans-BoldItalic" w:hAnsi="OpenSans-BoldItalic"/><w:b/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">Madras</w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">,</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">There was a young man of </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-BoldItalic-Identity-H" w:hAnsi="OpenSans-BoldItalic-Identity-H"/><w:b/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">Madras</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">,</w:t></w:r>
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">Whose balls were </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Italic" w:hAnsi="OpenSans-Italic"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">constructed </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">of brass,</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">Whose balls were </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Italic-Identity-H" w:hAnsi="OpenSans-Italic-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">constructed </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">of brass,</w:t></w:r>
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">When jangled together,</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">When jangled together,</w:t></w:r>
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">They played &#x201c;</w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Bold" w:hAnsi="OpenSans-Bold"/><w:b/><w:sz w:val="28.000000"/><w:szCs w:val="21.000000"/></w:rPr><w:t xml:space="preserve">Stormy Weather</w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">&#x201d;,</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">They played &#x201c;</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Bold-Identity-H" w:hAnsi="OpenSans-Bold-Identity-H"/><w:b/><w:sz w:val="28.000000"/><w:szCs w:val="21.000000"/></w:rPr><w:t xml:space="preserve">Stormy Weather</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">&#x201d;,</w:t></w:r>
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">And </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Italic" w:hAnsi="OpenSans-Italic"/><w:sz w:val="32.000000"/><w:szCs w:val="24.000000"/></w:rPr><w:t xml:space="preserve">lightning</w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Italic" w:hAnsi="OpenSans-Italic"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve"> </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">shot out of his ass.</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">And </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Italic-Identity-H" w:hAnsi="OpenSans-Italic-Identity-H"/><w:sz w:val="32.000000"/><w:szCs w:val="24.000000"/></w:rPr><w:t xml:space="preserve">lightning</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Italic-Identity-H" w:hAnsi="OpenSans-Italic-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve"> </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">shot out of his ass.</w:t></w:r>
</w:p>
</w:txbxContent>
@@ -550,71 +606,71 @@
<w:txbxContent>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">A Python, I should not advise,</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">A Python, I should not advise,</w:t></w:r>
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">For it needs a doctor for its eyes,</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">For it needs a doctor for its eyes,</w:t></w:r>
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">And has the Measles yearly.</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">And has the Measles yearly.</w:t></w:r>
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">However, if </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="28.000000"/><w:szCs w:val="21.000000"/></w:rPr><w:t xml:space="preserve">you feel</w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve"> inclined</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">However, if </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="28.000000"/><w:szCs w:val="21.000000"/></w:rPr><w:t xml:space="preserve">you feel</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve"> inclined</w:t></w:r>
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">To get one (to improve your mind,</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">To get one (to improve your mind,</w:t></w:r>
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">And not from fashion merely),</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">And not from fashion merely),</w:t></w:r>
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">Allow no </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Italic" w:hAnsi="OpenSans-Italic"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">music</w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve"> near its cage;</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">Allow no </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Italic-Identity-H" w:hAnsi="OpenSans-Italic-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">music</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve"> near its cage;</w:t></w:r>
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">And when it </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Bold" w:hAnsi="OpenSans-Bold"/><w:b/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">flies</w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve"> into a rage</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">And when it </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Bold-Identity-H" w:hAnsi="OpenSans-Bold-Identity-H"/><w:b/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">flies</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve"> into a rage</w:t></w:r>
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">Chastise it, most severely.</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">Chastise it, most severely.</w:t></w:r>
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">I had an Aunt in Yucatan</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">I had an Aunt in Yucatan</w:t></w:r>
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">Who bought a Python from a man</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">Who bought a Python from a man</w:t></w:r>
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">And kept it for a pet.</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">And kept it for a pet.</w:t></w:r>
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">She </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans-BoldItalic" w:hAnsi="OpenSans-BoldItalic"/><w:b/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">died</w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">, because she never knew</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">She </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-BoldItalic-Identity-H" w:hAnsi="OpenSans-BoldItalic-Identity-H"/><w:b/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">died</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">, because she never knew</w:t></w:r>
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">These simple little rules and few; &#x2014;</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">These simple little rules and few; &#x2014;</w:t></w:r>
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">The snake is living yet.</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">The snake is living yet.</w:t></w:r>
</w:p>
</w:txbxContent>
</wps:txbx>
@@ -641,71 +697,71 @@
<w:txbxContent>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">A Python, I should not advise,</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">A Python, I should not advise,</w:t></w:r>
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">For it needs a doctor for its eyes,</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">For it needs a doctor for its eyes,</w:t></w:r>
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">And has the Measles yearly.</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">And has the Measles yearly.</w:t></w:r>
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">However, if </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="28.000000"/><w:szCs w:val="21.000000"/></w:rPr><w:t xml:space="preserve">you feel</w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve"> inclined</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">However, if </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="28.000000"/><w:szCs w:val="21.000000"/></w:rPr><w:t xml:space="preserve">you feel</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve"> inclined</w:t></w:r>
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">To get one (to improve your mind,</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">To get one (to improve your mind,</w:t></w:r>
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">And not from fashion merely),</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">And not from fashion merely),</w:t></w:r>
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">Allow no </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Italic" w:hAnsi="OpenSans-Italic"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">music</w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve"> near its cage;</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">Allow no </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Italic-Identity-H" w:hAnsi="OpenSans-Italic-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">music</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve"> near its cage;</w:t></w:r>
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">And when it </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Bold" w:hAnsi="OpenSans-Bold"/><w:b/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">flies</w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve"> into a rage</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">And when it </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Bold-Identity-H" w:hAnsi="OpenSans-Bold-Identity-H"/><w:b/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">flies</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve"> into a rage</w:t></w:r>
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">Chastise it, most severely.</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">Chastise it, most severely.</w:t></w:r>
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">I had an Aunt in Yucatan</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">I had an Aunt in Yucatan</w:t></w:r>
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">Who bought a Python from a man</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">Who bought a Python from a man</w:t></w:r>
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">And kept it for a pet.</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">And kept it for a pet.</w:t></w:r>
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">She </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans-BoldItalic" w:hAnsi="OpenSans-BoldItalic"/><w:b/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">died</w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">, because she never knew</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">She </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-BoldItalic-Identity-H" w:hAnsi="OpenSans-BoldItalic-Identity-H"/><w:b/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">died</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">, because she never knew</w:t></w:r>
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">These simple little rules and few; &#x2014;</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">These simple little rules and few; &#x2014;</w:t></w:r>
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">The snake is living yet.</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">The snake is living yet.</w:t></w:r>
</w:p>
</w:txbxContent>
diff --git a/extract/test/Python2clipped.pdf.intermediate-gs.xml.extract-rotate.docx.dir.ref/word/document.xml b/extract/test/Python2clipped.pdf.intermediate-gs.xml.extract-rotate.docx.dir.ref/word/document.xml
index d1b2f177..fb19cc11 100644
--- a/extract/test/Python2clipped.pdf.intermediate-gs.xml.extract-rotate.docx.dir.ref/word/document.xml
+++ b/extract/test/Python2clipped.pdf.intermediate-gs.xml.extract-rotate.docx.dir.ref/word/document.xml
@@ -36,31 +36,31 @@
<w:txbxContent>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT" w:hAnsi="TimesNewRomanPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">The crew was complete: it included a </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPS-BoldMT" w:hAnsi="TimesNewRomanPS-BoldMT"/><w:b/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">Boots</w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT" w:hAnsi="TimesNewRomanPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">&#x2014; A maker of Bonnets and Hoods&#x2014; A </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPS-BoldMT" w:hAnsi="TimesNewRomanPS-BoldMT"/><w:b/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">Barrister</w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT" w:hAnsi="TimesNewRomanPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">, brought to arrange their disputes&#x2014; And a </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPS-BoldMT" w:hAnsi="TimesNewRomanPS-BoldMT"/><w:b/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">Broker</w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT" w:hAnsi="TimesNewRomanPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">, to value their goods.</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT-Identity-H" w:hAnsi="TimesNewRomanPSMT-Identity-H"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">The crew was complete: it included a </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPS-BoldMT-Identity-H" w:hAnsi="TimesNewRomanPS-BoldMT-Identity-H"/><w:b/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">Boots</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT-Identity-H" w:hAnsi="TimesNewRomanPSMT-Identity-H"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">&#x2014; A maker of Bonnets and Hoods&#x2014; A </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPS-BoldMT-Identity-H" w:hAnsi="TimesNewRomanPS-BoldMT-Identity-H"/><w:b/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">Barrister</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT-Identity-H" w:hAnsi="TimesNewRomanPSMT-Identity-H"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">, brought to arrange their disputes&#x2014; And a </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPS-BoldMT-Identity-H" w:hAnsi="TimesNewRomanPS-BoldMT-Identity-H"/><w:b/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">Broker</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT-Identity-H" w:hAnsi="TimesNewRomanPSMT-Identity-H"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">, to value their goods.</w:t></w:r>
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT" w:hAnsi="TimesNewRomanPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">A </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPS-BoldMT" w:hAnsi="TimesNewRomanPS-BoldMT"/><w:b/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">Billiard-marker</w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT" w:hAnsi="TimesNewRomanPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">, whose skill was immense, Might perhaps have won more than his share&#x2014; But a </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPS-BoldMT" w:hAnsi="TimesNewRomanPS-BoldMT"/><w:b/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">Banker</w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT" w:hAnsi="TimesNewRomanPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">, engaged at enormous expense, Had the whole of their </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPS-ItalicMT" w:hAnsi="TimesNewRomanPS-ItalicMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">cash </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT" w:hAnsi="TimesNewRomanPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">in his care.</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT-Identity-H" w:hAnsi="TimesNewRomanPSMT-Identity-H"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">A </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPS-BoldMT-Identity-H" w:hAnsi="TimesNewRomanPS-BoldMT-Identity-H"/><w:b/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">Billiard-marker</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT-Identity-H" w:hAnsi="TimesNewRomanPSMT-Identity-H"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">, whose skill was immense, Might perhaps have won more than his share&#x2014; But a </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPS-BoldMT-Identity-H" w:hAnsi="TimesNewRomanPS-BoldMT-Identity-H"/><w:b/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">Banker</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT-Identity-H" w:hAnsi="TimesNewRomanPSMT-Identity-H"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">, engaged at enormous expense, Had the whole of their </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPS-ItalicMT-Identity-H" w:hAnsi="TimesNewRomanPS-ItalicMT-Identity-H"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">cash </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT-Identity-H" w:hAnsi="TimesNewRomanPSMT-Identity-H"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">in his care.</w:t></w:r>
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT" w:hAnsi="TimesNewRomanPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">There was also a </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPS-BoldMT" w:hAnsi="TimesNewRomanPS-BoldMT"/><w:b/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">Beaver</w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT" w:hAnsi="TimesNewRomanPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">, that paced on the deck, Or would sit making lace in the bow: And had often (the </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPS-BoldMT" w:hAnsi="TimesNewRomanPS-BoldMT"/><w:b/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">Bellman </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT" w:hAnsi="TimesNewRomanPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">said) saved them from wreck, Though none of the sailors knew how.</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT-Identity-H" w:hAnsi="TimesNewRomanPSMT-Identity-H"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">There was also a </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPS-BoldMT-Identity-H" w:hAnsi="TimesNewRomanPS-BoldMT-Identity-H"/><w:b/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">Beaver</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT-Identity-H" w:hAnsi="TimesNewRomanPSMT-Identity-H"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">, that paced on the deck, Or would sit making lace in the bow: And had often (the </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPS-BoldMT-Identity-H" w:hAnsi="TimesNewRomanPS-BoldMT-Identity-H"/><w:b/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">Bellman </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT-Identity-H" w:hAnsi="TimesNewRomanPSMT-Identity-H"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">said) saved them from wreck, Though none of the sailors knew how.</w:t></w:r>
</w:p>
</w:txbxContent>
</wps:txbx>
@@ -87,31 +87,31 @@
<w:txbxContent>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT" w:hAnsi="TimesNewRomanPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">The crew was complete: it included a </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPS-BoldMT" w:hAnsi="TimesNewRomanPS-BoldMT"/><w:b/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">Boots</w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT" w:hAnsi="TimesNewRomanPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">&#x2014; A maker of Bonnets and Hoods&#x2014; A </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPS-BoldMT" w:hAnsi="TimesNewRomanPS-BoldMT"/><w:b/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">Barrister</w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT" w:hAnsi="TimesNewRomanPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">, brought to arrange their disputes&#x2014; And a </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPS-BoldMT" w:hAnsi="TimesNewRomanPS-BoldMT"/><w:b/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">Broker</w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT" w:hAnsi="TimesNewRomanPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">, to value their goods.</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT-Identity-H" w:hAnsi="TimesNewRomanPSMT-Identity-H"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">The crew was complete: it included a </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPS-BoldMT-Identity-H" w:hAnsi="TimesNewRomanPS-BoldMT-Identity-H"/><w:b/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">Boots</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT-Identity-H" w:hAnsi="TimesNewRomanPSMT-Identity-H"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">&#x2014; A maker of Bonnets and Hoods&#x2014; A </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPS-BoldMT-Identity-H" w:hAnsi="TimesNewRomanPS-BoldMT-Identity-H"/><w:b/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">Barrister</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT-Identity-H" w:hAnsi="TimesNewRomanPSMT-Identity-H"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">, brought to arrange their disputes&#x2014; And a </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPS-BoldMT-Identity-H" w:hAnsi="TimesNewRomanPS-BoldMT-Identity-H"/><w:b/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">Broker</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT-Identity-H" w:hAnsi="TimesNewRomanPSMT-Identity-H"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">, to value their goods.</w:t></w:r>
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT" w:hAnsi="TimesNewRomanPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">A </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPS-BoldMT" w:hAnsi="TimesNewRomanPS-BoldMT"/><w:b/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">Billiard-marker</w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT" w:hAnsi="TimesNewRomanPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">, whose skill was immense, Might perhaps have won more than his share&#x2014; But a </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPS-BoldMT" w:hAnsi="TimesNewRomanPS-BoldMT"/><w:b/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">Banker</w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT" w:hAnsi="TimesNewRomanPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">, engaged at enormous expense, Had the whole of their </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPS-ItalicMT" w:hAnsi="TimesNewRomanPS-ItalicMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">cash </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT" w:hAnsi="TimesNewRomanPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">in his care.</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT-Identity-H" w:hAnsi="TimesNewRomanPSMT-Identity-H"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">A </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPS-BoldMT-Identity-H" w:hAnsi="TimesNewRomanPS-BoldMT-Identity-H"/><w:b/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">Billiard-marker</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT-Identity-H" w:hAnsi="TimesNewRomanPSMT-Identity-H"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">, whose skill was immense, Might perhaps have won more than his share&#x2014; But a </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPS-BoldMT-Identity-H" w:hAnsi="TimesNewRomanPS-BoldMT-Identity-H"/><w:b/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">Banker</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT-Identity-H" w:hAnsi="TimesNewRomanPSMT-Identity-H"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">, engaged at enormous expense, Had the whole of their </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPS-ItalicMT-Identity-H" w:hAnsi="TimesNewRomanPS-ItalicMT-Identity-H"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">cash </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT-Identity-H" w:hAnsi="TimesNewRomanPSMT-Identity-H"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">in his care.</w:t></w:r>
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT" w:hAnsi="TimesNewRomanPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">There was also a </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPS-BoldMT" w:hAnsi="TimesNewRomanPS-BoldMT"/><w:b/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">Beaver</w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT" w:hAnsi="TimesNewRomanPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">, that paced on the deck, Or would sit making lace in the bow: And had often (the </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPS-BoldMT" w:hAnsi="TimesNewRomanPS-BoldMT"/><w:b/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">Bellman </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT" w:hAnsi="TimesNewRomanPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">said) saved them from wreck, Though none of the sailors knew how.</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT-Identity-H" w:hAnsi="TimesNewRomanPSMT-Identity-H"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">There was also a </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPS-BoldMT-Identity-H" w:hAnsi="TimesNewRomanPS-BoldMT-Identity-H"/><w:b/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">Beaver</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT-Identity-H" w:hAnsi="TimesNewRomanPSMT-Identity-H"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">, that paced on the deck, Or would sit making lace in the bow: And had often (the </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPS-BoldMT-Identity-H" w:hAnsi="TimesNewRomanPS-BoldMT-Identity-H"/><w:b/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">Bellman </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT-Identity-H" w:hAnsi="TimesNewRomanPSMT-Identity-H"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">said) saved them from wreck, Though none of the sailors knew how.</w:t></w:r>
</w:p>
</w:txbxContent>
@@ -131,12 +131,12 @@
<wp:anchor distT="0" distB="0" distL="0" distR="0" simplePos="0" relativeHeight="0" behindDoc="0" locked="0" layoutInCell="1" allowOverlap="1" wp14:anchorId="53A210D1" wp14:editId="2B7E8016">
<wp:simplePos x="0" y="0"/>
<wp:positionH relativeFrom="page">
- <wp:posOffset>1630060</wp:posOffset>
+ <wp:posOffset>1589342</wp:posOffset>
</wp:positionH>
<wp:positionV relativeFrom="page">
- <wp:posOffset>825686</wp:posOffset>
+ <wp:posOffset>-3913875</wp:posOffset>
</wp:positionV>
- <wp:extent cx="4204294" cy="5742838"/>
+ <wp:extent cx="4017949" cy="10484350"/>
<wp:effectExtent l="381000" t="723900" r="371475" b="723900"/>
<wp:wrapNone/>
<wp:docPr id="2" name="Text Box 2"/>
@@ -158,11 +158,39 @@
<w:txbxContent>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT" w:hAnsi="CourierNewPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">There was one who was famed for the number of things He His umbrella, his watch, all his jewels and rings, </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="CourierNewPS-BoldMT" w:hAnsi="CourierNewPS-BoldMT"/><w:b/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">forgot </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT" w:hAnsi="CourierNewPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve"> And the clothes he had bought for the trip. when he entered the ship: He had </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="CourierNewPS-ItalicMT" w:hAnsi="CourierNewPS-ItalicMT"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">forty-two </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT" w:hAnsi="CourierNewPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">With his name painted clearly on each: But, since he omitted to mention the fact, They were all left behind on the beach. boxes, all carefully packed,</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT-Identity-H" w:hAnsi="CourierNewPSMT-Identity-H"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">There was one who was famed for the number of things</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT-Identity-H" w:hAnsi="CourierNewPSMT-Identity-H"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve"> He </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPS-BoldMT-Identity-H" w:hAnsi="CourierNewPS-BoldMT-Identity-H"/><w:b/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">forgot </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT-Identity-H" w:hAnsi="CourierNewPSMT-Identity-H"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">when he entered the ship:</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT-Identity-H" w:hAnsi="CourierNewPSMT-Identity-H"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">His umbrella, his watch, all his jewels and rings,</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT-Identity-H" w:hAnsi="CourierNewPSMT-Identity-H"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve"> And the clothes he had bought for the trip.</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT-Identity-H" w:hAnsi="CourierNewPSMT-Identity-H"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">He had </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPS-ItalicMT-Identity-H" w:hAnsi="CourierNewPS-ItalicMT-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">forty-two </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT-Identity-H" w:hAnsi="CourierNewPSMT-Identity-H"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve"> boxes, all carefully packed,</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT-Identity-H" w:hAnsi="CourierNewPSMT-Identity-H"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve"> With his name painted clearly on each:</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT-Identity-H" w:hAnsi="CourierNewPSMT-Identity-H"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">But, since he omitted to mention the fact,</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT-Identity-H" w:hAnsi="CourierNewPSMT-Identity-H"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve"> They were all left behind on the beach.</w:t></w:r>
</w:p>
</w:txbxContent>
</wps:txbx>
@@ -189,11 +217,39 @@
<w:txbxContent>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT" w:hAnsi="CourierNewPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">There was one who was famed for the number of things He His umbrella, his watch, all his jewels and rings, </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="CourierNewPS-BoldMT" w:hAnsi="CourierNewPS-BoldMT"/><w:b/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">forgot </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT" w:hAnsi="CourierNewPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve"> And the clothes he had bought for the trip. when he entered the ship: He had </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="CourierNewPS-ItalicMT" w:hAnsi="CourierNewPS-ItalicMT"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">forty-two </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT" w:hAnsi="CourierNewPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">With his name painted clearly on each: But, since he omitted to mention the fact, They were all left behind on the beach. boxes, all carefully packed,</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT-Identity-H" w:hAnsi="CourierNewPSMT-Identity-H"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">There was one who was famed for the number of things</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT-Identity-H" w:hAnsi="CourierNewPSMT-Identity-H"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve"> He </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPS-BoldMT-Identity-H" w:hAnsi="CourierNewPS-BoldMT-Identity-H"/><w:b/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">forgot </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT-Identity-H" w:hAnsi="CourierNewPSMT-Identity-H"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">when he entered the ship:</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT-Identity-H" w:hAnsi="CourierNewPSMT-Identity-H"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">His umbrella, his watch, all his jewels and rings,</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT-Identity-H" w:hAnsi="CourierNewPSMT-Identity-H"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve"> And the clothes he had bought for the trip.</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT-Identity-H" w:hAnsi="CourierNewPSMT-Identity-H"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">He had </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPS-ItalicMT-Identity-H" w:hAnsi="CourierNewPS-ItalicMT-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">forty-two </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT-Identity-H" w:hAnsi="CourierNewPSMT-Identity-H"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve"> boxes, all carefully packed,</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT-Identity-H" w:hAnsi="CourierNewPSMT-Identity-H"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve"> With his name painted clearly on each:</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT-Identity-H" w:hAnsi="CourierNewPSMT-Identity-H"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">But, since he omitted to mention the fact,</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT-Identity-H" w:hAnsi="CourierNewPSMT-Identity-H"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve"> They were all left behind on the beach.</w:t></w:r>
</w:p>
</w:txbxContent>
@@ -240,45 +296,45 @@
<w:txbxContent>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">&quot;Just the place for a </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Italic" w:hAnsi="OpenSans-Italic"/><w:sz w:val="28.000000"/><w:szCs w:val="21.000000"/></w:rPr><w:t xml:space="preserve">Snark</w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">!&quot; the </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Bold" w:hAnsi="OpenSans-Bold"/><w:b/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">Bellman </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">cried,</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">&quot;Just the place for a </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Italic-Identity-H" w:hAnsi="OpenSans-Italic-Identity-H"/><w:sz w:val="28.000000"/><w:szCs w:val="21.000000"/></w:rPr><w:t xml:space="preserve">Snark</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">!&quot; the </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Bold-Identity-H" w:hAnsi="OpenSans-Bold-Identity-H"/><w:b/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">Bellman </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">cried,</w:t></w:r>
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve"> As he landed his crew with care;</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve"> As he landed his crew with care;</w:t></w:r>
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">Supporting each man on the top of the tide</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">Supporting each man on the top of the tide</w:t></w:r>
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve"> By a finger entwined in his hair.</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve"> By a finger entwined in his hair.</w:t></w:r>
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">&quot;Just the place for a </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Italic" w:hAnsi="OpenSans-Italic"/><w:sz w:val="28.000000"/><w:szCs w:val="21.000000"/></w:rPr><w:t xml:space="preserve">Snark</w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">! I have said it twice:</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">&quot;Just the place for a </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Italic-Identity-H" w:hAnsi="OpenSans-Italic-Identity-H"/><w:sz w:val="28.000000"/><w:szCs w:val="21.000000"/></w:rPr><w:t xml:space="preserve">Snark</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">! I have said it twice:</w:t></w:r>
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve"> That alone should encourage the crew.</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve"> That alone should encourage the crew.</w:t></w:r>
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">Just the place for a </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Italic" w:hAnsi="OpenSans-Italic"/><w:sz w:val="28.000000"/><w:szCs w:val="21.000000"/></w:rPr><w:t xml:space="preserve">Snark</w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">! I have said it thrice:</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">Just the place for a </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Italic-Identity-H" w:hAnsi="OpenSans-Italic-Identity-H"/><w:sz w:val="28.000000"/><w:szCs w:val="21.000000"/></w:rPr><w:t xml:space="preserve">Snark</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">! I have said it thrice:</w:t></w:r>
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve"> What I tell you </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Bold" w:hAnsi="OpenSans-Bold"/><w:b/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">three </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">times is true.&quot;</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve"> What I tell you </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Bold-Identity-H" w:hAnsi="OpenSans-Bold-Identity-H"/><w:b/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">three </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">times is true.&quot;</w:t></w:r>
</w:p>
</w:txbxContent>
</wps:txbx>
@@ -305,45 +361,45 @@
<w:txbxContent>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">&quot;Just the place for a </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Italic" w:hAnsi="OpenSans-Italic"/><w:sz w:val="28.000000"/><w:szCs w:val="21.000000"/></w:rPr><w:t xml:space="preserve">Snark</w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">!&quot; the </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Bold" w:hAnsi="OpenSans-Bold"/><w:b/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">Bellman </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">cried,</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">&quot;Just the place for a </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Italic-Identity-H" w:hAnsi="OpenSans-Italic-Identity-H"/><w:sz w:val="28.000000"/><w:szCs w:val="21.000000"/></w:rPr><w:t xml:space="preserve">Snark</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">!&quot; the </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Bold-Identity-H" w:hAnsi="OpenSans-Bold-Identity-H"/><w:b/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">Bellman </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">cried,</w:t></w:r>
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve"> As he landed his crew with care;</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve"> As he landed his crew with care;</w:t></w:r>
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">Supporting each man on the top of the tide</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">Supporting each man on the top of the tide</w:t></w:r>
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve"> By a finger entwined in his hair.</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve"> By a finger entwined in his hair.</w:t></w:r>
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">&quot;Just the place for a </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Italic" w:hAnsi="OpenSans-Italic"/><w:sz w:val="28.000000"/><w:szCs w:val="21.000000"/></w:rPr><w:t xml:space="preserve">Snark</w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">! I have said it twice:</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">&quot;Just the place for a </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Italic-Identity-H" w:hAnsi="OpenSans-Italic-Identity-H"/><w:sz w:val="28.000000"/><w:szCs w:val="21.000000"/></w:rPr><w:t xml:space="preserve">Snark</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">! I have said it twice:</w:t></w:r>
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve"> That alone should encourage the crew.</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve"> That alone should encourage the crew.</w:t></w:r>
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">Just the place for a </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Italic" w:hAnsi="OpenSans-Italic"/><w:sz w:val="28.000000"/><w:szCs w:val="21.000000"/></w:rPr><w:t xml:space="preserve">Snark</w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">! I have said it thrice:</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">Just the place for a </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Italic-Identity-H" w:hAnsi="OpenSans-Italic-Identity-H"/><w:sz w:val="28.000000"/><w:szCs w:val="21.000000"/></w:rPr><w:t xml:space="preserve">Snark</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">! I have said it thrice:</w:t></w:r>
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve"> What I tell you </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Bold" w:hAnsi="OpenSans-Bold"/><w:b/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">three </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">times is true.&quot;</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve"> What I tell you </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Bold-Identity-H" w:hAnsi="OpenSans-Bold-Identity-H"/><w:b/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">three </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">times is true.&quot;</w:t></w:r>
</w:p>
</w:txbxContent>
@@ -390,32 +446,32 @@
<w:txbxContent>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">There was a young man of </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans-BoldItalic" w:hAnsi="OpenSans-BoldItalic"/><w:b/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">Madras</w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">,</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">There was a young man of </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-BoldItalic-Identity-H" w:hAnsi="OpenSans-BoldItalic-Identity-H"/><w:b/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">Madras</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">,</w:t></w:r>
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">Whose balls were </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Italic" w:hAnsi="OpenSans-Italic"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">constructed </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">of brass,</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">Whose balls were </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Italic-Identity-H" w:hAnsi="OpenSans-Italic-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">constructed </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">of brass,</w:t></w:r>
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">When jangled together,</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">When jangled together,</w:t></w:r>
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">They played &#x201c;</w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Bold" w:hAnsi="OpenSans-Bold"/><w:b/><w:sz w:val="28.000000"/><w:szCs w:val="21.000000"/></w:rPr><w:t xml:space="preserve">Stormy Weather</w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">&#x201d;,</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">They played &#x201c;</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Bold-Identity-H" w:hAnsi="OpenSans-Bold-Identity-H"/><w:b/><w:sz w:val="28.000000"/><w:szCs w:val="21.000000"/></w:rPr><w:t xml:space="preserve">Stormy Weather</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">&#x201d;,</w:t></w:r>
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">And </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Italic" w:hAnsi="OpenSans-Italic"/><w:sz w:val="32.000000"/><w:szCs w:val="24.000000"/></w:rPr><w:t xml:space="preserve">lightning</w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Italic" w:hAnsi="OpenSans-Italic"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve"> </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">shot out of his ass.</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">And </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Italic-Identity-H" w:hAnsi="OpenSans-Italic-Identity-H"/><w:sz w:val="32.000000"/><w:szCs w:val="24.000000"/></w:rPr><w:t xml:space="preserve">lightning</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Italic-Identity-H" w:hAnsi="OpenSans-Italic-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve"> </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">shot out of his ass.</w:t></w:r>
</w:p>
</w:txbxContent>
</wps:txbx>
@@ -442,32 +498,32 @@
<w:txbxContent>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">There was a young man of </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans-BoldItalic" w:hAnsi="OpenSans-BoldItalic"/><w:b/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">Madras</w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">,</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">There was a young man of </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-BoldItalic-Identity-H" w:hAnsi="OpenSans-BoldItalic-Identity-H"/><w:b/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">Madras</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">,</w:t></w:r>
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">Whose balls were </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Italic" w:hAnsi="OpenSans-Italic"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">constructed </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">of brass,</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">Whose balls were </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Italic-Identity-H" w:hAnsi="OpenSans-Italic-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">constructed </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">of brass,</w:t></w:r>
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">When jangled together,</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">When jangled together,</w:t></w:r>
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">They played &#x201c;</w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Bold" w:hAnsi="OpenSans-Bold"/><w:b/><w:sz w:val="28.000000"/><w:szCs w:val="21.000000"/></w:rPr><w:t xml:space="preserve">Stormy Weather</w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">&#x201d;,</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">They played &#x201c;</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Bold-Identity-H" w:hAnsi="OpenSans-Bold-Identity-H"/><w:b/><w:sz w:val="28.000000"/><w:szCs w:val="21.000000"/></w:rPr><w:t xml:space="preserve">Stormy Weather</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">&#x201d;,</w:t></w:r>
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">And </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Italic" w:hAnsi="OpenSans-Italic"/><w:sz w:val="32.000000"/><w:szCs w:val="24.000000"/></w:rPr><w:t xml:space="preserve">lightning</w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Italic" w:hAnsi="OpenSans-Italic"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve"> </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">shot out of his ass.</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">And </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Italic-Identity-H" w:hAnsi="OpenSans-Italic-Identity-H"/><w:sz w:val="32.000000"/><w:szCs w:val="24.000000"/></w:rPr><w:t xml:space="preserve">lightning</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Italic-Identity-H" w:hAnsi="OpenSans-Italic-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve"> </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">shot out of his ass.</w:t></w:r>
</w:p>
</w:txbxContent>
@@ -514,71 +570,71 @@
<w:txbxContent>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">A Python, I should not advise,</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">A Python, I should not advise,</w:t></w:r>
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">For it needs a doctor for its eyes,</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">For it needs a doctor for its eyes,</w:t></w:r>
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">And has the Measles yearly.</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">And has the Measles yearly.</w:t></w:r>
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">However, if </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="28.000000"/><w:szCs w:val="21.000000"/></w:rPr><w:t xml:space="preserve">you feel</w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve"> inclined</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">However, if </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="28.000000"/><w:szCs w:val="21.000000"/></w:rPr><w:t xml:space="preserve">you feel</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve"> inclined</w:t></w:r>
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">To get one (to improve your mind,</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">To get one (to improve your mind,</w:t></w:r>
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">And not from fashion merely),</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">And not from fashion merely),</w:t></w:r>
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">Allow no </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Italic" w:hAnsi="OpenSans-Italic"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">music</w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve"> near its cage;</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">Allow no </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Italic-Identity-H" w:hAnsi="OpenSans-Italic-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">music</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve"> near its cage;</w:t></w:r>
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">And when it </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Bold" w:hAnsi="OpenSans-Bold"/><w:b/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">flies</w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve"> into a rage</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">And when it </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Bold-Identity-H" w:hAnsi="OpenSans-Bold-Identity-H"/><w:b/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">flies</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve"> into a rage</w:t></w:r>
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">Chastise it, most severely.</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">Chastise it, most severely.</w:t></w:r>
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">I had an Aunt in Yucatan</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">I had an Aunt in Yucatan</w:t></w:r>
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">Who bought a Python from a man</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">Who bought a Python from a man</w:t></w:r>
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">And kept it for a pet.</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">And kept it for a pet.</w:t></w:r>
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">She </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans-BoldItalic" w:hAnsi="OpenSans-BoldItalic"/><w:b/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">died</w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">, because she never knew</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">She </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-BoldItalic-Identity-H" w:hAnsi="OpenSans-BoldItalic-Identity-H"/><w:b/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">died</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">, because she never knew</w:t></w:r>
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">These simple little rules and few; &#x2014;</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">These simple little rules and few; &#x2014;</w:t></w:r>
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">The snake is living yet.</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">The snake is living yet.</w:t></w:r>
</w:p>
</w:txbxContent>
</wps:txbx>
@@ -605,71 +661,71 @@
<w:txbxContent>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">A Python, I should not advise,</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">A Python, I should not advise,</w:t></w:r>
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">For it needs a doctor for its eyes,</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">For it needs a doctor for its eyes,</w:t></w:r>
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">And has the Measles yearly.</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">And has the Measles yearly.</w:t></w:r>
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">However, if </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="28.000000"/><w:szCs w:val="21.000000"/></w:rPr><w:t xml:space="preserve">you feel</w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve"> inclined</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">However, if </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="28.000000"/><w:szCs w:val="21.000000"/></w:rPr><w:t xml:space="preserve">you feel</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve"> inclined</w:t></w:r>
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">To get one (to improve your mind,</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">To get one (to improve your mind,</w:t></w:r>
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">And not from fashion merely),</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">And not from fashion merely),</w:t></w:r>
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">Allow no </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Italic" w:hAnsi="OpenSans-Italic"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">music</w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve"> near its cage;</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">Allow no </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Italic-Identity-H" w:hAnsi="OpenSans-Italic-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">music</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve"> near its cage;</w:t></w:r>
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">And when it </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Bold" w:hAnsi="OpenSans-Bold"/><w:b/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">flies</w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve"> into a rage</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">And when it </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Bold-Identity-H" w:hAnsi="OpenSans-Bold-Identity-H"/><w:b/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">flies</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve"> into a rage</w:t></w:r>
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">Chastise it, most severely.</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">Chastise it, most severely.</w:t></w:r>
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">I had an Aunt in Yucatan</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">I had an Aunt in Yucatan</w:t></w:r>
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">Who bought a Python from a man</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">Who bought a Python from a man</w:t></w:r>
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">And kept it for a pet.</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">And kept it for a pet.</w:t></w:r>
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">She </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans-BoldItalic" w:hAnsi="OpenSans-BoldItalic"/><w:b/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">died</w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">, because she never knew</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">She </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-BoldItalic-Identity-H" w:hAnsi="OpenSans-BoldItalic-Identity-H"/><w:b/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">died</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">, because she never knew</w:t></w:r>
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">These simple little rules and few; &#x2014;</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">These simple little rules and few; &#x2014;</w:t></w:r>
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">The snake is living yet.</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">The snake is living yet.</w:t></w:r>
</w:p>
</w:txbxContent>
diff --git a/extract/test/Python2clipped.pdf.intermediate-gs.xml.extract.docx.dir.ref/word/document.xml b/extract/test/Python2clipped.pdf.intermediate-gs.xml.extract.docx.dir.ref/word/document.xml
index 32b69d9f..7006f756 100644
--- a/extract/test/Python2clipped.pdf.intermediate-gs.xml.extract.docx.dir.ref/word/document.xml
+++ b/extract/test/Python2clipped.pdf.intermediate-gs.xml.extract.docx.dir.ref/word/document.xml
@@ -6,13 +6,13 @@
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT" w:hAnsi="TimesNewRomanPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">The crew was complete: it included a </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPS-BoldMT" w:hAnsi="TimesNewRomanPS-BoldMT"/><w:b/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">Boots</w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT" w:hAnsi="TimesNewRomanPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">&#x2014; A maker of Bonnets and Hoods&#x2014; A </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPS-BoldMT" w:hAnsi="TimesNewRomanPS-BoldMT"/><w:b/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">Barrister</w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT" w:hAnsi="TimesNewRomanPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">, brought to arrange their disputes&#x2014; And a </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPS-BoldMT" w:hAnsi="TimesNewRomanPS-BoldMT"/><w:b/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">Broker</w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT" w:hAnsi="TimesNewRomanPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">, to value their goods.</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT-Identity-H" w:hAnsi="TimesNewRomanPSMT-Identity-H"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">The crew was complete: it included a </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPS-BoldMT-Identity-H" w:hAnsi="TimesNewRomanPS-BoldMT-Identity-H"/><w:b/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">Boots</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT-Identity-H" w:hAnsi="TimesNewRomanPSMT-Identity-H"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">&#x2014; A maker of Bonnets and Hoods&#x2014; A </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPS-BoldMT-Identity-H" w:hAnsi="TimesNewRomanPS-BoldMT-Identity-H"/><w:b/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">Barrister</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT-Identity-H" w:hAnsi="TimesNewRomanPSMT-Identity-H"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">, brought to arrange their disputes&#x2014; And a </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPS-BoldMT-Identity-H" w:hAnsi="TimesNewRomanPS-BoldMT-Identity-H"/><w:b/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">Broker</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT-Identity-H" w:hAnsi="TimesNewRomanPSMT-Identity-H"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">, to value their goods.</w:t></w:r>
</w:p>
<w:p>
@@ -20,13 +20,13 @@
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT" w:hAnsi="TimesNewRomanPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">A </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPS-BoldMT" w:hAnsi="TimesNewRomanPS-BoldMT"/><w:b/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">Billiard-marker</w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT" w:hAnsi="TimesNewRomanPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">, whose skill was immense, Might perhaps have won more than his share&#x2014; But a </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPS-BoldMT" w:hAnsi="TimesNewRomanPS-BoldMT"/><w:b/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">Banker</w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT" w:hAnsi="TimesNewRomanPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">, engaged at enormous expense, Had the whole of their </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPS-ItalicMT" w:hAnsi="TimesNewRomanPS-ItalicMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">cash </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT" w:hAnsi="TimesNewRomanPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">in his care.</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT-Identity-H" w:hAnsi="TimesNewRomanPSMT-Identity-H"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">A </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPS-BoldMT-Identity-H" w:hAnsi="TimesNewRomanPS-BoldMT-Identity-H"/><w:b/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">Billiard-marker</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT-Identity-H" w:hAnsi="TimesNewRomanPSMT-Identity-H"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">, whose skill was immense, Might perhaps have won more than his share&#x2014; But a </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPS-BoldMT-Identity-H" w:hAnsi="TimesNewRomanPS-BoldMT-Identity-H"/><w:b/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">Banker</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT-Identity-H" w:hAnsi="TimesNewRomanPSMT-Identity-H"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">, engaged at enormous expense, Had the whole of their </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPS-ItalicMT-Identity-H" w:hAnsi="TimesNewRomanPS-ItalicMT-Identity-H"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">cash </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT-Identity-H" w:hAnsi="TimesNewRomanPSMT-Identity-H"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">in his care.</w:t></w:r>
</w:p>
<w:p>
@@ -34,11 +34,11 @@
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT" w:hAnsi="TimesNewRomanPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">There was also a </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPS-BoldMT" w:hAnsi="TimesNewRomanPS-BoldMT"/><w:b/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">Beaver</w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT" w:hAnsi="TimesNewRomanPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">, that paced on the deck, Or would sit making lace in the bow: And had often (the </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPS-BoldMT" w:hAnsi="TimesNewRomanPS-BoldMT"/><w:b/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">Bellman </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT" w:hAnsi="TimesNewRomanPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">said) saved them from wreck, Though none of the sailors knew how.</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT-Identity-H" w:hAnsi="TimesNewRomanPSMT-Identity-H"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">There was also a </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPS-BoldMT-Identity-H" w:hAnsi="TimesNewRomanPS-BoldMT-Identity-H"/><w:b/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">Beaver</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT-Identity-H" w:hAnsi="TimesNewRomanPSMT-Identity-H"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">, that paced on the deck, Or would sit making lace in the bow: And had often (the </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPS-BoldMT-Identity-H" w:hAnsi="TimesNewRomanPS-BoldMT-Identity-H"/><w:b/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">Bellman </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT-Identity-H" w:hAnsi="TimesNewRomanPSMT-Identity-H"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">said) saved them from wreck, Though none of the sailors knew how.</w:t></w:r>
</w:p>
<w:p>
@@ -50,11 +50,67 @@
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT" w:hAnsi="CourierNewPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">There was one who was famed for the number of things He His umbrella, his watch, all his jewels and rings, </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="CourierNewPS-BoldMT" w:hAnsi="CourierNewPS-BoldMT"/><w:b/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">forgot </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT" w:hAnsi="CourierNewPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve"> And the clothes he had bought for the trip. when he entered the ship: He had </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="CourierNewPS-ItalicMT" w:hAnsi="CourierNewPS-ItalicMT"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">forty-two </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT" w:hAnsi="CourierNewPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">With his name painted clearly on each: But, since he omitted to mention the fact, They were all left behind on the beach. boxes, all carefully packed,</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT-Identity-H" w:hAnsi="CourierNewPSMT-Identity-H"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">There was one who was famed for the number of things</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve"></w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT-Identity-H" w:hAnsi="CourierNewPSMT-Identity-H"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve"> He </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPS-BoldMT-Identity-H" w:hAnsi="CourierNewPS-BoldMT-Identity-H"/><w:b/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">forgot </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT-Identity-H" w:hAnsi="CourierNewPSMT-Identity-H"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">when he entered the ship:</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve"></w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT-Identity-H" w:hAnsi="CourierNewPSMT-Identity-H"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">His umbrella, his watch, all his jewels and rings,</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve"></w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT-Identity-H" w:hAnsi="CourierNewPSMT-Identity-H"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve"> And the clothes he had bought for the trip.</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve"></w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT-Identity-H" w:hAnsi="CourierNewPSMT-Identity-H"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">He had </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPS-ItalicMT-Identity-H" w:hAnsi="CourierNewPS-ItalicMT-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">forty-two </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT-Identity-H" w:hAnsi="CourierNewPSMT-Identity-H"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve"> boxes, all carefully packed,</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve"></w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT-Identity-H" w:hAnsi="CourierNewPSMT-Identity-H"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve"> With his name painted clearly on each:</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve"></w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT-Identity-H" w:hAnsi="CourierNewPSMT-Identity-H"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">But, since he omitted to mention the fact,</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve"></w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT-Identity-H" w:hAnsi="CourierNewPSMT-Identity-H"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve"> They were all left behind on the beach.</w:t></w:r>
</w:p>
<w:p>
@@ -66,11 +122,11 @@
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">&quot;Just the place for a </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Italic" w:hAnsi="OpenSans-Italic"/><w:sz w:val="28.000000"/><w:szCs w:val="21.000000"/></w:rPr><w:t xml:space="preserve">Snark</w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">!&quot; the </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Bold" w:hAnsi="OpenSans-Bold"/><w:b/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">Bellman </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">cried,</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">&quot;Just the place for a </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Italic-Identity-H" w:hAnsi="OpenSans-Italic-Identity-H"/><w:sz w:val="28.000000"/><w:szCs w:val="21.000000"/></w:rPr><w:t xml:space="preserve">Snark</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">!&quot; the </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Bold-Identity-H" w:hAnsi="OpenSans-Bold-Identity-H"/><w:b/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">Bellman </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">cried,</w:t></w:r>
</w:p>
<w:p>
@@ -78,7 +134,7 @@
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve"> As he landed his crew with care;</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve"> As he landed his crew with care;</w:t></w:r>
</w:p>
<w:p>
@@ -86,7 +142,7 @@
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">Supporting each man on the top of the tide</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">Supporting each man on the top of the tide</w:t></w:r>
</w:p>
<w:p>
@@ -94,7 +150,7 @@
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve"> By a finger entwined in his hair.</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve"> By a finger entwined in his hair.</w:t></w:r>
</w:p>
<w:p>
@@ -102,9 +158,9 @@
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">&quot;Just the place for a </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Italic" w:hAnsi="OpenSans-Italic"/><w:sz w:val="28.000000"/><w:szCs w:val="21.000000"/></w:rPr><w:t xml:space="preserve">Snark</w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">! I have said it twice:</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">&quot;Just the place for a </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Italic-Identity-H" w:hAnsi="OpenSans-Italic-Identity-H"/><w:sz w:val="28.000000"/><w:szCs w:val="21.000000"/></w:rPr><w:t xml:space="preserve">Snark</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">! I have said it twice:</w:t></w:r>
</w:p>
<w:p>
@@ -112,7 +168,7 @@
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve"> That alone should encourage the crew.</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve"> That alone should encourage the crew.</w:t></w:r>
</w:p>
<w:p>
@@ -120,9 +176,9 @@
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">Just the place for a </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Italic" w:hAnsi="OpenSans-Italic"/><w:sz w:val="28.000000"/><w:szCs w:val="21.000000"/></w:rPr><w:t xml:space="preserve">Snark</w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">! I have said it thrice:</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">Just the place for a </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Italic-Identity-H" w:hAnsi="OpenSans-Italic-Identity-H"/><w:sz w:val="28.000000"/><w:szCs w:val="21.000000"/></w:rPr><w:t xml:space="preserve">Snark</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">! I have said it thrice:</w:t></w:r>
</w:p>
<w:p>
@@ -130,9 +186,9 @@
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve"> What I tell you </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Bold" w:hAnsi="OpenSans-Bold"/><w:b/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">three </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">times is true.&quot;</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve"> What I tell you </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Bold-Identity-H" w:hAnsi="OpenSans-Bold-Identity-H"/><w:b/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">three </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">times is true.&quot;</w:t></w:r>
</w:p>
<w:p>
@@ -144,9 +200,9 @@
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">There was a young man of </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans-BoldItalic" w:hAnsi="OpenSans-BoldItalic"/><w:b/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">Madras</w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">,</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">There was a young man of </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-BoldItalic-Identity-H" w:hAnsi="OpenSans-BoldItalic-Identity-H"/><w:b/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">Madras</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">,</w:t></w:r>
</w:p>
<w:p>
@@ -154,9 +210,9 @@
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">Whose balls were </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Italic" w:hAnsi="OpenSans-Italic"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">constructed </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">of brass,</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">Whose balls were </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Italic-Identity-H" w:hAnsi="OpenSans-Italic-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">constructed </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">of brass,</w:t></w:r>
</w:p>
<w:p>
@@ -164,7 +220,7 @@
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">When jangled together,</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">When jangled together,</w:t></w:r>
</w:p>
<w:p>
@@ -172,9 +228,9 @@
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">They played &#x201c;</w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Bold" w:hAnsi="OpenSans-Bold"/><w:b/><w:sz w:val="28.000000"/><w:szCs w:val="21.000000"/></w:rPr><w:t xml:space="preserve">Stormy Weather</w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">&#x201d;,</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">They played &#x201c;</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Bold-Identity-H" w:hAnsi="OpenSans-Bold-Identity-H"/><w:b/><w:sz w:val="28.000000"/><w:szCs w:val="21.000000"/></w:rPr><w:t xml:space="preserve">Stormy Weather</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">&#x201d;,</w:t></w:r>
</w:p>
<w:p>
@@ -182,10 +238,10 @@
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">And </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Italic" w:hAnsi="OpenSans-Italic"/><w:sz w:val="32.000000"/><w:szCs w:val="24.000000"/></w:rPr><w:t xml:space="preserve">lightning</w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Italic" w:hAnsi="OpenSans-Italic"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve"> </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">shot out of his ass.</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">And </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Italic-Identity-H" w:hAnsi="OpenSans-Italic-Identity-H"/><w:sz w:val="32.000000"/><w:szCs w:val="24.000000"/></w:rPr><w:t xml:space="preserve">lightning</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Italic-Identity-H" w:hAnsi="OpenSans-Italic-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve"> </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">shot out of his ass.</w:t></w:r>
</w:p>
<w:p>
@@ -197,7 +253,7 @@
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">A Python, I should not advise,</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">A Python, I should not advise,</w:t></w:r>
</w:p>
<w:p>
@@ -205,7 +261,7 @@
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">For it needs a doctor for its eyes,</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">For it needs a doctor for its eyes,</w:t></w:r>
</w:p>
<w:p>
@@ -213,7 +269,7 @@
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">And has the Measles yearly.</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">And has the Measles yearly.</w:t></w:r>
</w:p>
<w:p>
@@ -221,9 +277,9 @@
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">However, if </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="28.000000"/><w:szCs w:val="21.000000"/></w:rPr><w:t xml:space="preserve">you feel</w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve"> inclined</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">However, if </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="28.000000"/><w:szCs w:val="21.000000"/></w:rPr><w:t xml:space="preserve">you feel</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve"> inclined</w:t></w:r>
</w:p>
<w:p>
@@ -231,7 +287,7 @@
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">To get one (to improve your mind,</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">To get one (to improve your mind,</w:t></w:r>
</w:p>
<w:p>
@@ -239,7 +295,7 @@
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">And not from fashion merely),</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">And not from fashion merely),</w:t></w:r>
</w:p>
<w:p>
@@ -247,9 +303,9 @@
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">Allow no </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Italic" w:hAnsi="OpenSans-Italic"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">music</w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve"> near its cage;</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">Allow no </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Italic-Identity-H" w:hAnsi="OpenSans-Italic-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">music</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve"> near its cage;</w:t></w:r>
</w:p>
<w:p>
@@ -257,9 +313,9 @@
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">And when it </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Bold" w:hAnsi="OpenSans-Bold"/><w:b/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">flies</w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve"> into a rage</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">And when it </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Bold-Identity-H" w:hAnsi="OpenSans-Bold-Identity-H"/><w:b/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">flies</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve"> into a rage</w:t></w:r>
</w:p>
<w:p>
@@ -267,7 +323,7 @@
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">Chastise it, most severely.</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">Chastise it, most severely.</w:t></w:r>
</w:p>
<w:p>
@@ -275,7 +331,7 @@
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">I had an Aunt in Yucatan</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">I had an Aunt in Yucatan</w:t></w:r>
</w:p>
<w:p>
@@ -283,7 +339,7 @@
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">Who bought a Python from a man</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">Who bought a Python from a man</w:t></w:r>
</w:p>
<w:p>
@@ -291,7 +347,7 @@
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">And kept it for a pet.</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">And kept it for a pet.</w:t></w:r>
</w:p>
<w:p>
@@ -299,9 +355,9 @@
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">She </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans-BoldItalic" w:hAnsi="OpenSans-BoldItalic"/><w:b/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">died</w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">, because she never knew</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">She </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-BoldItalic-Identity-H" w:hAnsi="OpenSans-BoldItalic-Identity-H"/><w:b/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">died</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">, because she never knew</w:t></w:r>
</w:p>
<w:p>
@@ -309,7 +365,7 @@
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">These simple little rules and few; &#x2014;</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">These simple little rules and few; &#x2014;</w:t></w:r>
</w:p>
<w:p>
@@ -317,5 +373,5 @@
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">The snake is living yet.</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans-Identity-H" w:hAnsi="OpenSans-Identity-H"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">The snake is living yet.</w:t></w:r>
</w:p></w:body></w:document> \ No newline at end of file
diff --git a/extract/test/Python2clipped.pdf.intermediate-mu.xml.extract-autosplit.docx.dir.ref/word/document.xml b/extract/test/Python2clipped.pdf.intermediate-mu.xml.extract-autosplit.docx.dir.ref/word/document.xml
index d18a0195..2a6b0700 100644
--- a/extract/test/Python2clipped.pdf.intermediate-mu.xml.extract-autosplit.docx.dir.ref/word/document.xml
+++ b/extract/test/Python2clipped.pdf.intermediate-mu.xml.extract-autosplit.docx.dir.ref/word/document.xml
@@ -6,11 +6,67 @@
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT" w:hAnsi="CourierNewPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">There was one who was famed for the number of things He </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT" w:hAnsi="CourierNewPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">There was one who was famed for the number of things</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve"></w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT" w:hAnsi="CourierNewPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve"> He </w:t></w:r>
<w:r><w:rPr><w:rFonts w:ascii="CourierNewPS-BoldMT" w:hAnsi="CourierNewPS-BoldMT"/><w:b/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">forgot </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT" w:hAnsi="CourierNewPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">when he entered the ship: His umbrella, his watch, all his jewels and rings, And the clothes he had bought for the trip. He had </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="CourierNewPS-ItalicMT" w:hAnsi="CourierNewPS-ItalicMT"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">forty-two</w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT" w:hAnsi="CourierNewPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve"> boxes, all carefully packed, With his name painted clearly on each: But, since he omitted to mention the fact, They were all left behind on the beach.</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT" w:hAnsi="CourierNewPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">when he entered the ship:</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve"></w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT" w:hAnsi="CourierNewPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">His umbrella, his watch, all his jewels and rings,</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve"></w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT" w:hAnsi="CourierNewPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve"> And the clothes he had bought for the trip.</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve"></w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT" w:hAnsi="CourierNewPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">He had </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPS-ItalicMT" w:hAnsi="CourierNewPS-ItalicMT"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">forty-two </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT" w:hAnsi="CourierNewPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve"> boxes, all carefully packed,</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve"></w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT" w:hAnsi="CourierNewPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve"> With his name painted clearly on each:</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve"></w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT" w:hAnsi="CourierNewPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">But, since he omitted to mention the fact,</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve"></w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT" w:hAnsi="CourierNewPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve"> They were all left behind on the beach.</w:t></w:r>
</w:p>
<w:p>
diff --git a/extract/test/Python2clipped.pdf.intermediate-mu.xml.extract-rotate-spacing.docx.dir.ref/word/document.xml b/extract/test/Python2clipped.pdf.intermediate-mu.xml.extract-rotate-spacing.docx.dir.ref/word/document.xml
index 495c19b0..89ace130 100644
--- a/extract/test/Python2clipped.pdf.intermediate-mu.xml.extract-rotate-spacing.docx.dir.ref/word/document.xml
+++ b/extract/test/Python2clipped.pdf.intermediate-mu.xml.extract-rotate-spacing.docx.dir.ref/word/document.xml
@@ -13,12 +13,12 @@
<wp:anchor distT="0" distB="0" distL="0" distR="0" simplePos="0" relativeHeight="0" behindDoc="0" locked="0" layoutInCell="1" allowOverlap="1" wp14:anchorId="53A210D1" wp14:editId="2B7E8016">
<wp:simplePos x="0" y="0"/>
<wp:positionH relativeFrom="page">
- <wp:posOffset>3197324</wp:posOffset>
+ <wp:posOffset>2863121</wp:posOffset>
</wp:positionH>
<wp:positionV relativeFrom="page">
- <wp:posOffset>4602912</wp:posOffset>
+ <wp:posOffset>-1203453</wp:posOffset>
</wp:positionV>
- <wp:extent cx="2893510" cy="1885520"/>
+ <wp:extent cx="2949540" cy="7707896"/>
<wp:effectExtent l="381000" t="723900" r="371475" b="723900"/>
<wp:wrapNone/>
<wp:docPr id="1" name="Text Box 1"/>
@@ -40,11 +40,39 @@
<w:txbxContent>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT" w:hAnsi="CourierNewPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">There was one who was famed for the number of things He </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT" w:hAnsi="CourierNewPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">There was one who was famed for the number of things</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT" w:hAnsi="CourierNewPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve"> He </w:t></w:r>
<w:r><w:rPr><w:rFonts w:ascii="CourierNewPS-BoldMT" w:hAnsi="CourierNewPS-BoldMT"/><w:b/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">forgot </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT" w:hAnsi="CourierNewPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">when he entered the ship: His umbrella, his watch, all his jewels and rings, And the clothes he had bought for the trip. He had </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="CourierNewPS-ItalicMT" w:hAnsi="CourierNewPS-ItalicMT"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">forty-two</w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT" w:hAnsi="CourierNewPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve"> boxes, all carefully packed, With his name painted clearly on each: But, since he omitted to mention the fact, They were all left behind on the beach.</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT" w:hAnsi="CourierNewPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">when he entered the ship:</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT" w:hAnsi="CourierNewPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">His umbrella, his watch, all his jewels and rings,</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT" w:hAnsi="CourierNewPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve"> And the clothes he had bought for the trip.</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT" w:hAnsi="CourierNewPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">He had </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPS-ItalicMT" w:hAnsi="CourierNewPS-ItalicMT"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">forty-two </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT" w:hAnsi="CourierNewPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve"> boxes, all carefully packed,</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT" w:hAnsi="CourierNewPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve"> With his name painted clearly on each:</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT" w:hAnsi="CourierNewPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">But, since he omitted to mention the fact,</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT" w:hAnsi="CourierNewPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve"> They were all left behind on the beach.</w:t></w:r>
</w:p>
</w:txbxContent>
</wps:txbx>
@@ -71,11 +99,39 @@
<w:txbxContent>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT" w:hAnsi="CourierNewPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">There was one who was famed for the number of things He </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT" w:hAnsi="CourierNewPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">There was one who was famed for the number of things</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT" w:hAnsi="CourierNewPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve"> He </w:t></w:r>
<w:r><w:rPr><w:rFonts w:ascii="CourierNewPS-BoldMT" w:hAnsi="CourierNewPS-BoldMT"/><w:b/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">forgot </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT" w:hAnsi="CourierNewPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">when he entered the ship: His umbrella, his watch, all his jewels and rings, And the clothes he had bought for the trip. He had </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="CourierNewPS-ItalicMT" w:hAnsi="CourierNewPS-ItalicMT"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">forty-two</w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT" w:hAnsi="CourierNewPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve"> boxes, all carefully packed, With his name painted clearly on each: But, since he omitted to mention the fact, They were all left behind on the beach.</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT" w:hAnsi="CourierNewPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">when he entered the ship:</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT" w:hAnsi="CourierNewPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">His umbrella, his watch, all his jewels and rings,</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT" w:hAnsi="CourierNewPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve"> And the clothes he had bought for the trip.</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT" w:hAnsi="CourierNewPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">He had </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPS-ItalicMT" w:hAnsi="CourierNewPS-ItalicMT"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">forty-two </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT" w:hAnsi="CourierNewPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve"> boxes, all carefully packed,</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT" w:hAnsi="CourierNewPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve"> With his name painted clearly on each:</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT" w:hAnsi="CourierNewPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">But, since he omitted to mention the fact,</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT" w:hAnsi="CourierNewPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve"> They were all left behind on the beach.</w:t></w:r>
</w:p>
</w:txbxContent>
diff --git a/extract/test/Python2clipped.pdf.intermediate-mu.xml.extract-rotate.docx.dir.ref/word/document.xml b/extract/test/Python2clipped.pdf.intermediate-mu.xml.extract-rotate.docx.dir.ref/word/document.xml
index a6cc3178..f539d3da 100644
--- a/extract/test/Python2clipped.pdf.intermediate-mu.xml.extract-rotate.docx.dir.ref/word/document.xml
+++ b/extract/test/Python2clipped.pdf.intermediate-mu.xml.extract-rotate.docx.dir.ref/word/document.xml
@@ -9,12 +9,12 @@
<wp:anchor distT="0" distB="0" distL="0" distR="0" simplePos="0" relativeHeight="0" behindDoc="0" locked="0" layoutInCell="1" allowOverlap="1" wp14:anchorId="53A210D1" wp14:editId="2B7E8016">
<wp:simplePos x="0" y="0"/>
<wp:positionH relativeFrom="page">
- <wp:posOffset>3197324</wp:posOffset>
+ <wp:posOffset>2863121</wp:posOffset>
</wp:positionH>
<wp:positionV relativeFrom="page">
- <wp:posOffset>4602912</wp:posOffset>
+ <wp:posOffset>-1203453</wp:posOffset>
</wp:positionV>
- <wp:extent cx="2893510" cy="1885520"/>
+ <wp:extent cx="2949540" cy="7707896"/>
<wp:effectExtent l="381000" t="723900" r="371475" b="723900"/>
<wp:wrapNone/>
<wp:docPr id="1" name="Text Box 1"/>
@@ -36,11 +36,39 @@
<w:txbxContent>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT" w:hAnsi="CourierNewPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">There was one who was famed for the number of things He </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT" w:hAnsi="CourierNewPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">There was one who was famed for the number of things</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT" w:hAnsi="CourierNewPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve"> He </w:t></w:r>
<w:r><w:rPr><w:rFonts w:ascii="CourierNewPS-BoldMT" w:hAnsi="CourierNewPS-BoldMT"/><w:b/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">forgot </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT" w:hAnsi="CourierNewPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">when he entered the ship: His umbrella, his watch, all his jewels and rings, And the clothes he had bought for the trip. He had </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="CourierNewPS-ItalicMT" w:hAnsi="CourierNewPS-ItalicMT"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">forty-two</w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT" w:hAnsi="CourierNewPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve"> boxes, all carefully packed, With his name painted clearly on each: But, since he omitted to mention the fact, They were all left behind on the beach.</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT" w:hAnsi="CourierNewPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">when he entered the ship:</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT" w:hAnsi="CourierNewPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">His umbrella, his watch, all his jewels and rings,</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT" w:hAnsi="CourierNewPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve"> And the clothes he had bought for the trip.</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT" w:hAnsi="CourierNewPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">He had </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPS-ItalicMT" w:hAnsi="CourierNewPS-ItalicMT"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">forty-two </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT" w:hAnsi="CourierNewPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve"> boxes, all carefully packed,</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT" w:hAnsi="CourierNewPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve"> With his name painted clearly on each:</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT" w:hAnsi="CourierNewPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">But, since he omitted to mention the fact,</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT" w:hAnsi="CourierNewPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve"> They were all left behind on the beach.</w:t></w:r>
</w:p>
</w:txbxContent>
</wps:txbx>
@@ -67,11 +95,39 @@
<w:txbxContent>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT" w:hAnsi="CourierNewPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">There was one who was famed for the number of things He </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT" w:hAnsi="CourierNewPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">There was one who was famed for the number of things</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT" w:hAnsi="CourierNewPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve"> He </w:t></w:r>
<w:r><w:rPr><w:rFonts w:ascii="CourierNewPS-BoldMT" w:hAnsi="CourierNewPS-BoldMT"/><w:b/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">forgot </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT" w:hAnsi="CourierNewPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">when he entered the ship: His umbrella, his watch, all his jewels and rings, And the clothes he had bought for the trip. He had </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="CourierNewPS-ItalicMT" w:hAnsi="CourierNewPS-ItalicMT"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">forty-two</w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT" w:hAnsi="CourierNewPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve"> boxes, all carefully packed, With his name painted clearly on each: But, since he omitted to mention the fact, They were all left behind on the beach.</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT" w:hAnsi="CourierNewPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">when he entered the ship:</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT" w:hAnsi="CourierNewPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">His umbrella, his watch, all his jewels and rings,</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT" w:hAnsi="CourierNewPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve"> And the clothes he had bought for the trip.</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT" w:hAnsi="CourierNewPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">He had </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPS-ItalicMT" w:hAnsi="CourierNewPS-ItalicMT"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">forty-two </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT" w:hAnsi="CourierNewPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve"> boxes, all carefully packed,</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT" w:hAnsi="CourierNewPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve"> With his name painted clearly on each:</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT" w:hAnsi="CourierNewPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">But, since he omitted to mention the fact,</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT" w:hAnsi="CourierNewPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve"> They were all left behind on the beach.</w:t></w:r>
</w:p>
</w:txbxContent>
diff --git a/extract/test/Python2clipped.pdf.intermediate-mu.xml.extract.docx.dir.ref/word/document.xml b/extract/test/Python2clipped.pdf.intermediate-mu.xml.extract.docx.dir.ref/word/document.xml
index d18a0195..2a6b0700 100644
--- a/extract/test/Python2clipped.pdf.intermediate-mu.xml.extract.docx.dir.ref/word/document.xml
+++ b/extract/test/Python2clipped.pdf.intermediate-mu.xml.extract.docx.dir.ref/word/document.xml
@@ -6,11 +6,67 @@
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT" w:hAnsi="CourierNewPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">There was one who was famed for the number of things He </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT" w:hAnsi="CourierNewPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">There was one who was famed for the number of things</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve"></w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT" w:hAnsi="CourierNewPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve"> He </w:t></w:r>
<w:r><w:rPr><w:rFonts w:ascii="CourierNewPS-BoldMT" w:hAnsi="CourierNewPS-BoldMT"/><w:b/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">forgot </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT" w:hAnsi="CourierNewPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">when he entered the ship: His umbrella, his watch, all his jewels and rings, And the clothes he had bought for the trip. He had </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="CourierNewPS-ItalicMT" w:hAnsi="CourierNewPS-ItalicMT"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">forty-two</w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT" w:hAnsi="CourierNewPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve"> boxes, all carefully packed, With his name painted clearly on each: But, since he omitted to mention the fact, They were all left behind on the beach.</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT" w:hAnsi="CourierNewPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">when he entered the ship:</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve"></w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT" w:hAnsi="CourierNewPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">His umbrella, his watch, all his jewels and rings,</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve"></w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT" w:hAnsi="CourierNewPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve"> And the clothes he had bought for the trip.</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve"></w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT" w:hAnsi="CourierNewPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">He had </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPS-ItalicMT" w:hAnsi="CourierNewPS-ItalicMT"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">forty-two </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT" w:hAnsi="CourierNewPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve"> boxes, all carefully packed,</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve"></w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT" w:hAnsi="CourierNewPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve"> With his name painted clearly on each:</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve"></w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT" w:hAnsi="CourierNewPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">But, since he omitted to mention the fact,</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve"></w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT" w:hAnsi="CourierNewPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve"> They were all left behind on the beach.</w:t></w:r>
</w:p>
<w:p>
diff --git a/extract/test/Python2clipped.pdf.mutool-norotate.docx.dir.ref/word/document.xml b/extract/test/Python2clipped.pdf.mutool-norotate.docx.dir.ref/word/document.xml
index 0227a661..d1615e1e 100644
--- a/extract/test/Python2clipped.pdf.mutool-norotate.docx.dir.ref/word/document.xml
+++ b/extract/test/Python2clipped.pdf.mutool-norotate.docx.dir.ref/word/document.xml
@@ -2,11 +2,39 @@
<w:document xmlns:wpc="http://schemas.microsoft.com/office/word/2010/wordprocessingCanvas" xmlns:cx="http://schemas.microsoft.com/office/drawing/2014/chartex" xmlns:cx1="http://schemas.microsoft.com/office/drawing/2015/9/8/chartex" xmlns:cx2="http://schemas.microsoft.com/office/drawing/2015/10/21/chartex" xmlns:cx3="http://schemas.microsoft.com/office/drawing/2016/5/9/chartex" xmlns:cx4="http://schemas.microsoft.com/office/drawing/2016/5/10/chartex" xmlns:cx5="http://schemas.microsoft.com/office/drawing/2016/5/11/chartex" xmlns:cx6="http://schemas.microsoft.com/office/drawing/2016/5/12/chartex" xmlns:cx7="http://schemas.microsoft.com/office/drawing/2016/5/13/chartex" xmlns:cx8="http://schemas.microsoft.com/office/drawing/2016/5/14/chartex" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:aink="http://schemas.microsoft.com/office/drawing/2016/ink" xmlns:am3d="http://schemas.microsoft.com/office/drawing/2017/model3d" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships" xmlns:m="http://schemas.openxmlformats.org/officeDocument/2006/math" xmlns:v="urn:schemas-microsoft-com:vml" xmlns:wp14="http://schemas.microsoft.com/office/word/2010/wordprocessingDrawing" xmlns:wp="http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing" xmlns:w10="urn:schemas-microsoft-com:office:word" xmlns:w="http://schemas.openxmlformats.org/wordprocessingml/2006/main" xmlns:w14="http://schemas.microsoft.com/office/word/2010/wordml" xmlns:w15="http://schemas.microsoft.com/office/word/2012/wordml" xmlns:w16cex="http://schemas.microsoft.com/office/word/2018/wordml/cex" xmlns:w16cid="http://schemas.microsoft.com/office/word/2016/wordml/cid" xmlns:w16="http://schemas.microsoft.com/office/word/2018/wordml" xmlns:w16se="http://schemas.microsoft.com/office/word/2015/wordml/symex" xmlns:wpg="http://schemas.microsoft.com/office/word/2010/wordprocessingGroup" xmlns:wpi="http://schemas.microsoft.com/office/word/2010/wordprocessingInk" xmlns:wne="http://schemas.microsoft.com/office/word/2006/wordml" xmlns:wps="http://schemas.microsoft.com/office/word/2010/wordprocessingShape" mc:Ignorable="w14 w15 w16se w16cid w16 w16cex wp14"><w:body>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT" w:hAnsi="CourierNewPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">There was one who was famed for the number of things He </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT" w:hAnsi="CourierNewPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">There was one who was famed for the number of things</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT" w:hAnsi="CourierNewPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve"> He </w:t></w:r>
<w:r><w:rPr><w:rFonts w:ascii="CourierNewPS-BoldMT" w:hAnsi="CourierNewPS-BoldMT"/><w:b/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">forgot </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT" w:hAnsi="CourierNewPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">when he entered the ship: His umbrella, his watch, all his jewels and rings, And the clothes he had bought for the trip. He had </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="CourierNewPS-ItalicMT" w:hAnsi="CourierNewPS-ItalicMT"/><w:i/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">forty-two</w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT" w:hAnsi="CourierNewPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve"> boxes, all carefully packed, With his name painted clearly on each: But, since he omitted to mention the fact, They were all left behind on the beach.</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT" w:hAnsi="CourierNewPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">when he entered the ship:</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT" w:hAnsi="CourierNewPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">His umbrella, his watch, all his jewels and rings,</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT" w:hAnsi="CourierNewPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve"> And the clothes he had bought for the trip.</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT" w:hAnsi="CourierNewPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">He had </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPS-ItalicMT" w:hAnsi="CourierNewPS-ItalicMT"/><w:i/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">forty-two </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT" w:hAnsi="CourierNewPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve"> boxes, all carefully packed,</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT" w:hAnsi="CourierNewPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve"> With his name painted clearly on each:</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT" w:hAnsi="CourierNewPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">But, since he omitted to mention the fact,</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT" w:hAnsi="CourierNewPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve"> They were all left behind on the beach.</w:t></w:r>
</w:p>
<w:p>
@@ -113,7 +141,11 @@
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">For it needs a doctorAnd has the Measles yearly.</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">For it needs a doctor </w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">And has the Measles yearly.</w:t></w:r>
</w:p>
<w:p>
diff --git a/extract/test/Python2clipped.pdf.mutool.docx.dir.ref/word/document.xml b/extract/test/Python2clipped.pdf.mutool.docx.dir.ref/word/document.xml
index 69456c2b..e4a4bc0f 100644
--- a/extract/test/Python2clipped.pdf.mutool.docx.dir.ref/word/document.xml
+++ b/extract/test/Python2clipped.pdf.mutool.docx.dir.ref/word/document.xml
@@ -9,12 +9,12 @@
<wp:anchor distT="0" distB="0" distL="0" distR="0" simplePos="0" relativeHeight="0" behindDoc="0" locked="0" layoutInCell="1" allowOverlap="1" wp14:anchorId="53A210D1" wp14:editId="2B7E8016">
<wp:simplePos x="0" y="0"/>
<wp:positionH relativeFrom="page">
- <wp:posOffset>3197324</wp:posOffset>
+ <wp:posOffset>2863121</wp:posOffset>
</wp:positionH>
<wp:positionV relativeFrom="page">
- <wp:posOffset>4602912</wp:posOffset>
+ <wp:posOffset>-1203455</wp:posOffset>
</wp:positionV>
- <wp:extent cx="2893510" cy="1885520"/>
+ <wp:extent cx="2949540" cy="7707898"/>
<wp:effectExtent l="381000" t="723900" r="371475" b="723900"/>
<wp:wrapNone/>
<wp:docPr id="1" name="Text Box 1"/>
@@ -36,11 +36,39 @@
<w:txbxContent>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT" w:hAnsi="CourierNewPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">There was one who was famed for the number of things He </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT" w:hAnsi="CourierNewPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">There was one who was famed for the number of things</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT" w:hAnsi="CourierNewPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve"> He </w:t></w:r>
<w:r><w:rPr><w:rFonts w:ascii="CourierNewPS-BoldMT" w:hAnsi="CourierNewPS-BoldMT"/><w:b/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">forgot </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT" w:hAnsi="CourierNewPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">when he entered the ship: His umbrella, his watch, all his jewels and rings, And the clothes he had bought for the trip. He had </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="CourierNewPS-ItalicMT" w:hAnsi="CourierNewPS-ItalicMT"/><w:i/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">forty-two</w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT" w:hAnsi="CourierNewPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve"> boxes, all carefully packed, With his name painted clearly on each: But, since he omitted to mention the fact, They were all left behind on the beach.</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT" w:hAnsi="CourierNewPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">when he entered the ship:</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT" w:hAnsi="CourierNewPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">His umbrella, his watch, all his jewels and rings,</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT" w:hAnsi="CourierNewPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve"> And the clothes he had bought for the trip.</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT" w:hAnsi="CourierNewPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">He had </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPS-ItalicMT" w:hAnsi="CourierNewPS-ItalicMT"/><w:i/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">forty-two </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT" w:hAnsi="CourierNewPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve"> boxes, all carefully packed,</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT" w:hAnsi="CourierNewPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve"> With his name painted clearly on each:</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT" w:hAnsi="CourierNewPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">But, since he omitted to mention the fact,</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT" w:hAnsi="CourierNewPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve"> They were all left behind on the beach.</w:t></w:r>
</w:p>
</w:txbxContent>
</wps:txbx>
@@ -67,11 +95,39 @@
<w:txbxContent>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT" w:hAnsi="CourierNewPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">There was one who was famed for the number of things He </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT" w:hAnsi="CourierNewPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">There was one who was famed for the number of things</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT" w:hAnsi="CourierNewPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve"> He </w:t></w:r>
<w:r><w:rPr><w:rFonts w:ascii="CourierNewPS-BoldMT" w:hAnsi="CourierNewPS-BoldMT"/><w:b/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">forgot </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT" w:hAnsi="CourierNewPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">when he entered the ship: His umbrella, his watch, all his jewels and rings, And the clothes he had bought for the trip. He had </w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="CourierNewPS-ItalicMT" w:hAnsi="CourierNewPS-ItalicMT"/><w:i/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">forty-two</w:t></w:r>
-<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT" w:hAnsi="CourierNewPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve"> boxes, all carefully packed, With his name painted clearly on each: But, since he omitted to mention the fact, They were all left behind on the beach.</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT" w:hAnsi="CourierNewPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">when he entered the ship:</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT" w:hAnsi="CourierNewPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">His umbrella, his watch, all his jewels and rings,</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT" w:hAnsi="CourierNewPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve"> And the clothes he had bought for the trip.</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT" w:hAnsi="CourierNewPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">He had </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPS-ItalicMT" w:hAnsi="CourierNewPS-ItalicMT"/><w:i/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">forty-two </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT" w:hAnsi="CourierNewPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve"> boxes, all carefully packed,</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT" w:hAnsi="CourierNewPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve"> With his name painted clearly on each:</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT" w:hAnsi="CourierNewPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve">But, since he omitted to mention the fact,</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="CourierNewPSMT" w:hAnsi="CourierNewPSMT"/><w:sz w:val="14.860000"/><w:szCs w:val="11.145000"/></w:rPr><w:t xml:space="preserve"> They were all left behind on the beach.</w:t></w:r>
</w:p>
</w:txbxContent>
@@ -518,7 +574,11 @@
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">For it needs a doctorAnd has the Measles yearly.</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">For it needs a doctor </w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">And has the Measles yearly.</w:t></w:r>
</w:p>
<w:p>
@@ -605,7 +665,11 @@
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">For it needs a doctorAnd has the Measles yearly.</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">For it needs a doctor </w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="OpenSans" w:hAnsi="OpenSans"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">And has the Measles yearly.</w:t></w:r>
</w:p>
<w:p>
diff --git a/extract/test/Python2clipped.pdf.mutool.odt.dir.ref/content.xml b/extract/test/Python2clipped.pdf.mutool.odt.dir.ref/content.xml
index 0db6512f..b956e116 100644
--- a/extract/test/Python2clipped.pdf.mutool.odt.dir.ref/content.xml
+++ b/extract/test/Python2clipped.pdf.mutool.odt.dir.ref/content.xml
@@ -6,13 +6,30 @@
<style:style style:name="fr1" style:family="graphic" style:parent-style-name="Graphics">
<style:graphic-properties fo:margin-left="0in" fo:margin-right="0in" fo:margin-top="0in" fo:margin-bottom="0in" style:vertical-pos="top" style:vertical-rel="baseline" fo:background-color="transparent" draw:fill="none" draw:fill-color="#ffffff" fo:padding="0in" fo:border="none" style:mirror="none" fo:clip="rect(0in, 0in, 0in, 0in)" draw:luminance="0%" draw:contrast="0%" draw:red="0%" draw:green="0%" draw:blue="0%" draw:gamma="100%" draw:color-inversion="false" draw:image-opacity="100%" draw:color-mode="standard"/>
</style:style>
-</office:automatic-styles><office:body><office:text><text:sequence-decls><text:sequence-decl text:display-outline-level="0" text:name="Illustration"/><text:sequence-decl text:display-outline-level="0" text:name="Table"/><text:sequence-decl text:display-outline-level="0" text:name="Text"/><text:sequence-decl text:display-outline-level="0" text:name="Drawing"/><text:sequence-decl text:display-outline-level="0" text:name="Figure"/></text:sequence-decls><text:p text:style-name="Standard"/>
+</office:automatic-styles>
+<style:style style:name="extract.table" style:family="table"/>
+<style:style style:name="extract.table.column" style:family="table-column"/>
+<office:body><office:text><text:sequence-decls><text:sequence-decl text:display-outline-level="0" text:name="Illustration"/><text:sequence-decl text:display-outline-level="0" text:name="Table"/><text:sequence-decl text:display-outline-level="0" text:name="Text"/><text:sequence-decl text:display-outline-level="0" text:name="Drawing"/><text:sequence-decl text:display-outline-level="0" text:name="Figure"/></text:sequence-decls><text:p text:style-name="Standard"/>
<text:p text:style-name="Standard">
-<draw:frame text:anchor-type="paragraph" draw:z-index="5" draw:name="Shape1" draw:style-name="gr1" draw:text-style-name="Standard" svg:width="3.164382in" svg:height="1.031016in" draw:transform="rotate (-3.045849) translate (6.752333in 6.939861in)">
+<draw:frame text:anchor-type="paragraph" draw:z-index="5" draw:name="Shape1" draw:style-name="gr1" draw:text-style-name="Standard" svg:width="3.225657in" svg:height="4.214730in" draw:transform="rotate (-3.045849) translate (6.752333in 6.939861in)">
<draw:text-box>
-<text:p><text:span text:style-name="T11">There was one who was famed for the number of things He </text:span><text:span text:style-name="T12">forgot </text:span><text:span text:style-name="T11">when he entered the ship: His umbrella, his watch, all his jewels and rings, And the clothes he had bought for the trip. He had </text:span><text:span text:style-name="T13">forty-two</text:span><text:span text:style-name="T11"> boxes, all carefully packed, With his name painted clearly on each: But, since he omitted to mention the fact, They were all left behind on the beach.</text:span></text:p>
+<text:p><text:span text:style-name="T11">There was one who was famed for the number of things</text:span></text:p>
+
+<text:p><text:span text:style-name="T11"> He </text:span><text:span text:style-name="T12">forgot </text:span><text:span text:style-name="T11">when he entered the ship:</text:span></text:p>
+
+<text:p><text:span text:style-name="T11">His umbrella, his watch, all his jewels and rings,</text:span></text:p>
+
+<text:p><text:span text:style-name="T11"> And the clothes he had bought for the trip.</text:span></text:p>
+
+<text:p><text:span text:style-name="T11">He had </text:span><text:span text:style-name="T13">forty-two </text:span><text:span text:style-name="T11"> boxes, all carefully packed,</text:span></text:p>
+
+<text:p><text:span text:style-name="T11"> With his name painted clearly on each:</text:span></text:p>
+
+<text:p><text:span text:style-name="T11">But, since he omitted to mention the fact,</text:span></text:p>
+
+<text:p><text:span text:style-name="T11"> They were all left behind on the beach.</text:span></text:p>
</draw:text-box>
</draw:frame>
</text:p>
diff --git a/extract/test/Python2clipped.pdf.mutool.text.ref b/extract/test/Python2clipped.pdf.mutool.text.ref
new file mode 100644
index 00000000..d797070c
--- /dev/null
+++ b/extract/test/Python2clipped.pdf.mutool.text.ref
@@ -0,0 +1,39 @@
+There was one who was famed for the number of things
+ He forgot when he entered the ship:
+His umbrella, his watch, all his jewels and rings,
+ And the clothes he had bought for the trip.
+He had forty-two boxes, all carefully packed,
+ With his name painted clearly on each:
+But, since he omitted to mention the fact,
+ They were all left behind on the beach.
+The crew was complete: it included a Boots— A maker of Bonnets and Hoods— A Barrister, brought to arrange their disputes— And a Broker, to value their goods.
+A Billiard-marker, whose skill was immense, Might perhaps have won more than his share— But a Banker, engaged at enormous expense, Had the whole of their cash in his care.
+There was also a Beaver, that paced on the deck, Or would sit making lace in the bow: And had often (the Bellman said) saved them from wreck, Though none of the sailors knew how.
+"Just the place for a Snark!" the Bellman cried,
+ As he landed his crew with care;
+Supporting each man on the top of the tide
+ By a finger entwined in his hair.
+"Just the place for a Snark! I have said it twice:
+ That alone should encourage the crew.
+Just the place for a Snark! I have said it thrice:
+ What I tell you three times is true."
+ a young man of Madras,
+e balls were constructed of brass,
+When jangled together,
+They played “Stormy Weather”,
+And lightning shot out of his ass.
+A Python, I sho
+For it needs a doctor
+And has the Measles yearly.
+However, if you feel inclined
+To get one (to improve your mind,
+And not from fashion merely),
+Allow no music near its cage;
+And when it flies into a rage
+Chastise it, most severely.
+I had an Aunt in Yucatan
+Who bought a Python from a man
+And kept it for a pet.
+She died, because she never knew
+These simple little rules and few; —
+The snake is living yet.
diff --git a/extract/test/agstat.pdf b/extract/test/agstat.pdf
new file mode 100755
index 00000000..cf1c25aa
--- /dev/null
+++ b/extract/test/agstat.pdf
Binary files differ
diff --git a/extract/test/agstat.pdf.mutool.docx.dir.ref/[Content_Types].xml b/extract/test/agstat.pdf.mutool.docx.dir.ref/[Content_Types].xml
new file mode 100644
index 00000000..07d88cca
--- /dev/null
+++ b/extract/test/agstat.pdf.mutool.docx.dir.ref/[Content_Types].xml
@@ -0,0 +1,2 @@
+<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
+<Types xmlns="http://schemas.openxmlformats.org/package/2006/content-types"><Default Extension="rels" ContentType="application/vnd.openxmlformats-package.relationships+xml"/><Default Extension="xml" ContentType="application/xml"/><Override PartName="/word/document.xml" ContentType="application/vnd.openxmlformats-officedocument.wordprocessingml.document.main+xml"/><Override PartName="/word/styles.xml" ContentType="application/vnd.openxmlformats-officedocument.wordprocessingml.styles+xml"/><Override PartName="/word/settings.xml" ContentType="application/vnd.openxmlformats-officedocument.wordprocessingml.settings+xml"/><Override PartName="/word/webSettings.xml" ContentType="application/vnd.openxmlformats-officedocument.wordprocessingml.webSettings+xml"/><Override PartName="/word/fontTable.xml" ContentType="application/vnd.openxmlformats-officedocument.wordprocessingml.fontTable+xml"/><Override PartName="/word/theme/theme1.xml" ContentType="application/vnd.openxmlformats-officedocument.theme+xml"/><Override PartName="/docProps/core.xml" ContentType="application/vnd.openxmlformats-package.core-properties+xml"/><Override PartName="/docProps/app.xml" ContentType="application/vnd.openxmlformats-officedocument.extended-properties+xml"/></Types> \ No newline at end of file
diff --git a/extract/test/agstat.pdf.mutool.docx.dir.ref/_rels/.rels b/extract/test/agstat.pdf.mutool.docx.dir.ref/_rels/.rels
new file mode 100644
index 00000000..32548d42
--- /dev/null
+++ b/extract/test/agstat.pdf.mutool.docx.dir.ref/_rels/.rels
@@ -0,0 +1,2 @@
+<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
+<Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships"><Relationship Id="rId3" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties" Target="docProps/app.xml"/><Relationship Id="rId2" Type="http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties" Target="docProps/core.xml"/><Relationship Id="rId1" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument" Target="word/document.xml"/></Relationships> \ No newline at end of file
diff --git a/extract/test/agstat.pdf.mutool.docx.dir.ref/docProps/app.xml b/extract/test/agstat.pdf.mutool.docx.dir.ref/docProps/app.xml
new file mode 100644
index 00000000..eb8dd2e5
--- /dev/null
+++ b/extract/test/agstat.pdf.mutool.docx.dir.ref/docProps/app.xml
@@ -0,0 +1,2 @@
+<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
+<Properties xmlns="http://schemas.openxmlformats.org/officeDocument/2006/extended-properties" xmlns:vt="http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes"><Template>Normal.dotm</Template><TotalTime>3</TotalTime><Pages>1</Pages><Words>2</Words><Characters>18</Characters><Application>Microsoft Office Word</Application><DocSecurity>0</DocSecurity><Lines>1</Lines><Paragraphs>1</Paragraphs><ScaleCrop>false</ScaleCrop><Company></Company><LinksUpToDate>false</LinksUpToDate><CharactersWithSpaces>19</CharactersWithSpaces><SharedDoc>false</SharedDoc><HyperlinksChanged>false</HyperlinksChanged><AppVersion>16.0000</AppVersion></Properties> \ No newline at end of file
diff --git a/extract/test/agstat.pdf.mutool.docx.dir.ref/docProps/core.xml b/extract/test/agstat.pdf.mutool.docx.dir.ref/docProps/core.xml
new file mode 100644
index 00000000..195d77a9
--- /dev/null
+++ b/extract/test/agstat.pdf.mutool.docx.dir.ref/docProps/core.xml
@@ -0,0 +1,2 @@
+<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
+<cp:coreProperties xmlns:cp="http://schemas.openxmlformats.org/package/2006/metadata/core-properties" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:dcterms="http://purl.org/dc/terms/" xmlns:dcmitype="http://purl.org/dc/dcmitype/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><dc:title></dc:title><dc:subject></dc:subject><dc:creator></dc:creator><cp:keywords></cp:keywords><dc:description></dc:description><cp:lastModifiedBy></cp:lastModifiedBy><cp:revision>1</cp:revision><dcterms:created xsi:type="dcterms:W3CDTF">2020-09-25T17:04:00Z</dcterms:created><dcterms:modified xsi:type="dcterms:W3CDTF">2020-09-25T17:07:00Z</dcterms:modified></cp:coreProperties> \ No newline at end of file
diff --git a/extract/test/agstat.pdf.mutool.docx.dir.ref/word/_rels/document.xml.rels b/extract/test/agstat.pdf.mutool.docx.dir.ref/word/_rels/document.xml.rels
new file mode 100644
index 00000000..3b2b7f8c
--- /dev/null
+++ b/extract/test/agstat.pdf.mutool.docx.dir.ref/word/_rels/document.xml.rels
@@ -0,0 +1,2 @@
+<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
+<Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships"><Relationship Id="rId3" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/webSettings" Target="webSettings.xml"/><Relationship Id="rId2" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/settings" Target="settings.xml"/><Relationship Id="rId1" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles" Target="styles.xml"/><Relationship Id="rId5" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme" Target="theme/theme1.xml"/><Relationship Id="rId4" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/fontTable" Target="fontTable.xml"/></Relationships> \ No newline at end of file
diff --git a/extract/test/agstat.pdf.mutool.docx.dir.ref/word/document.xml b/extract/test/agstat.pdf.mutool.docx.dir.ref/word/document.xml
new file mode 100644
index 00000000..54f091d2
--- /dev/null
+++ b/extract/test/agstat.pdf.mutool.docx.dir.ref/word/document.xml
@@ -0,0 +1,5217 @@
+<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
+<w:document xmlns:wpc="http://schemas.microsoft.com/office/word/2010/wordprocessingCanvas" xmlns:cx="http://schemas.microsoft.com/office/drawing/2014/chartex" xmlns:cx1="http://schemas.microsoft.com/office/drawing/2015/9/8/chartex" xmlns:cx2="http://schemas.microsoft.com/office/drawing/2015/10/21/chartex" xmlns:cx3="http://schemas.microsoft.com/office/drawing/2016/5/9/chartex" xmlns:cx4="http://schemas.microsoft.com/office/drawing/2016/5/10/chartex" xmlns:cx5="http://schemas.microsoft.com/office/drawing/2016/5/11/chartex" xmlns:cx6="http://schemas.microsoft.com/office/drawing/2016/5/12/chartex" xmlns:cx7="http://schemas.microsoft.com/office/drawing/2016/5/13/chartex" xmlns:cx8="http://schemas.microsoft.com/office/drawing/2016/5/14/chartex" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:aink="http://schemas.microsoft.com/office/drawing/2016/ink" xmlns:am3d="http://schemas.microsoft.com/office/drawing/2017/model3d" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships" xmlns:m="http://schemas.openxmlformats.org/officeDocument/2006/math" xmlns:v="urn:schemas-microsoft-com:vml" xmlns:wp14="http://schemas.microsoft.com/office/word/2010/wordprocessingDrawing" xmlns:wp="http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing" xmlns:w10="urn:schemas-microsoft-com:office:word" xmlns:w="http://schemas.openxmlformats.org/wordprocessingml/2006/main" xmlns:w14="http://schemas.microsoft.com/office/word/2010/wordml" xmlns:w15="http://schemas.microsoft.com/office/word/2012/wordml" xmlns:w16cex="http://schemas.microsoft.com/office/word/2018/wordml/cex" xmlns:w16cid="http://schemas.microsoft.com/office/word/2016/wordml/cid" xmlns:w16="http://schemas.microsoft.com/office/word/2018/wordml" xmlns:w16se="http://schemas.microsoft.com/office/word/2015/wordml/symex" xmlns:wpg="http://schemas.microsoft.com/office/word/2010/wordprocessingGroup" xmlns:wpi="http://schemas.microsoft.com/office/word/2010/wordprocessingInk" xmlns:wne="http://schemas.microsoft.com/office/word/2006/wordml" xmlns:wps="http://schemas.microsoft.com/office/word/2010/wordprocessingShape" mc:Ignorable="w14 w15 w16se w16cid w16 w16cex wp14"><w:body>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Arial-BoldMT" w:hAnsi="Arial-BoldMT"/><w:b/><w:sz w:val="24.000000"/><w:szCs w:val="18.000000"/></w:rPr><w:t xml:space="preserve"> DISTRICT WISE ESTIMATES OF MARKETABLE SURPLUS / DEFICIT OF RICE DURING 2012-13</w:t></w:r>
+</w:p>
+ <w:tbl>
+ <w:tblLayout w:type="autofit"/>
+ <w:tr>
+ <w:trPr/>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="restart"/>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Arial-BoldMT" w:hAnsi="Arial-BoldMT"/><w:b/><w:sz w:val="22.000000"/><w:szCs w:val="16.500000"/></w:rPr><w:t xml:space="preserve">Sl. No.</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="restart"/>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Arial-BoldMT" w:hAnsi="Arial-BoldMT"/><w:b/><w:sz w:val="22.000000"/><w:szCs w:val="16.500000"/></w:rPr><w:t xml:space="preserve">District</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="restart"/>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Arial-BoldMT" w:hAnsi="Arial-BoldMT"/><w:b/><w:sz w:val="22.000000"/><w:szCs w:val="16.500000"/></w:rPr><w:t xml:space="preserve">(Inlakhs)</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Arial-BoldMT" w:hAnsi="Arial-BoldMT"/><w:b/><w:sz w:val="22.000000"/><w:szCs w:val="16.500000"/></w:rPr><w:t xml:space="preserve">for2012-13</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Arial-BoldMT" w:hAnsi="Arial-BoldMT"/><w:b/><w:sz w:val="22.000000"/><w:szCs w:val="16.500000"/></w:rPr><w:t xml:space="preserve">ProjectedPopulation </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="restart"/>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Arial-BoldMT" w:hAnsi="Arial-BoldMT"/><w:b/><w:sz w:val="22.000000"/><w:szCs w:val="16.500000"/></w:rPr><w:t xml:space="preserve">Adult </w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Arial-BoldMT" w:hAnsi="Arial-BoldMT"/><w:b/><w:sz w:val="22.000000"/><w:szCs w:val="16.500000"/></w:rPr><w:t xml:space="preserve">(Inlakhs)</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Arial-BoldMT" w:hAnsi="Arial-BoldMT"/><w:b/><w:sz w:val="22.000000"/><w:szCs w:val="16.500000"/></w:rPr><w:t xml:space="preserve">Equivalentto88%</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="restart"/>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Arial-BoldMT" w:hAnsi="Arial-BoldMT"/><w:b/><w:sz w:val="22.000000"/><w:szCs w:val="16.500000"/></w:rPr><w:t xml:space="preserve">requirement</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Arial-BoldMT" w:hAnsi="Arial-BoldMT"/><w:b/><w:sz w:val="22.000000"/><w:szCs w:val="16.500000"/></w:rPr><w:t xml:space="preserve">(InLakhtonnes)</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Arial-BoldMT" w:hAnsi="Arial-BoldMT"/><w:b/><w:sz w:val="22.000000"/><w:szCs w:val="16.500000"/></w:rPr><w:t xml:space="preserve">otalConsumption</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Arial-BoldMT" w:hAnsi="Arial-BoldMT"/><w:b/><w:sz w:val="22.000000"/><w:szCs w:val="16.500000"/></w:rPr><w:t xml:space="preserve">T (@400gms/adult/day)</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="restart"/>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Arial-BoldMT" w:hAnsi="Arial-BoldMT"/><w:b/><w:sz w:val="22.000000"/><w:szCs w:val="16.500000"/></w:rPr><w:t xml:space="preserve">otalRequirement</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Arial-BoldMT" w:hAnsi="Arial-BoldMT"/><w:b/><w:sz w:val="22.000000"/><w:szCs w:val="16.500000"/></w:rPr><w:t xml:space="preserve">(InLakhtonnes)</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Arial-BoldMT" w:hAnsi="Arial-BoldMT"/><w:b/><w:sz w:val="22.000000"/><w:szCs w:val="16.500000"/></w:rPr><w:t xml:space="preserve">(Includingseeds, </w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Arial-BoldMT" w:hAnsi="Arial-BoldMT"/><w:b/><w:sz w:val="22.000000"/><w:szCs w:val="16.500000"/></w:rPr><w:t xml:space="preserve">feeds&amp;wastage)</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Arial-BoldMT" w:hAnsi="Arial-BoldMT"/><w:b/><w:sz w:val="22.000000"/><w:szCs w:val="16.500000"/></w:rPr><w:t xml:space="preserve">T</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:gridSpan w:val="3"/>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Arial-BoldMT" w:hAnsi="Arial-BoldMT"/><w:b/><w:sz w:val="22.000000"/><w:szCs w:val="16.500000"/></w:rPr><w:t xml:space="preserve">Production (Rice) (In Lakh tonnes)</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:gridSpan w:val="2"/>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Arial-BoldMT" w:hAnsi="Arial-BoldMT"/><w:b/><w:sz w:val="22.000000"/><w:szCs w:val="16.500000"/></w:rPr><w:t xml:space="preserve">Surplus/Defi cit (In Lakh tonnes)</w:t></w:r>
+</w:p> </w:tc>
+ </w:tr>
+ <w:tr>
+ <w:trPr/>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Arial-BoldMT" w:hAnsi="Arial-BoldMT"/><w:b/><w:sz w:val="22.000000"/><w:szCs w:val="16.500000"/></w:rPr><w:t xml:space="preserve">Kharif</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Arial-BoldMT" w:hAnsi="Arial-BoldMT"/><w:b/><w:sz w:val="22.000000"/><w:szCs w:val="16.500000"/></w:rPr><w:t xml:space="preserve">Rabi</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Arial-BoldMT" w:hAnsi="Arial-BoldMT"/><w:b/><w:sz w:val="22.000000"/><w:szCs w:val="16.500000"/></w:rPr><w:t xml:space="preserve">otal</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Arial-BoldMT" w:hAnsi="Arial-BoldMT"/><w:b/><w:sz w:val="22.000000"/><w:szCs w:val="16.500000"/></w:rPr><w:t xml:space="preserve">T</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Arial-BoldMT" w:hAnsi="Arial-BoldMT"/><w:b/><w:sz w:val="22.000000"/><w:szCs w:val="16.500000"/></w:rPr><w:t xml:space="preserve">Rice</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Arial-BoldMT" w:hAnsi="Arial-BoldMT"/><w:b/><w:sz w:val="22.000000"/><w:szCs w:val="16.500000"/></w:rPr><w:t xml:space="preserve">Paddy</w:t></w:r>
+</w:p> </w:tc>
+ </w:tr>
+ <w:tr>
+ <w:trPr/>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="22.000000"/><w:szCs w:val="16.500000"/></w:rPr><w:t xml:space="preserve">1</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="22.000000"/><w:szCs w:val="16.500000"/></w:rPr><w:t xml:space="preserve">Balasore</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">23.65</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">20.81</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">3.04</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">3.47</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">2.78</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">0.86</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">3.64</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">0.17</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">0.25</w:t></w:r>
+</w:p> </w:tc>
+ </w:tr>
+ <w:tr>
+ <w:trPr/>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="22.000000"/><w:szCs w:val="16.500000"/></w:rPr><w:t xml:space="preserve">2</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="22.000000"/><w:szCs w:val="16.500000"/></w:rPr><w:t xml:space="preserve">Bhadrak</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">15.34</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">13.50</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">1.97</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">2.25</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">3.50</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">0.05</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">3.55</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">1.30</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">1.94</w:t></w:r>
+</w:p> </w:tc>
+ </w:tr>
+ <w:tr>
+ <w:trPr/>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="22.000000"/><w:szCs w:val="16.500000"/></w:rPr><w:t xml:space="preserve">3</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="22.000000"/><w:szCs w:val="16.500000"/></w:rPr><w:t xml:space="preserve">Balangir</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">17.01</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">14.97</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">2.19</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">2.50</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">6.23</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">0.10</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">6.33</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">3.83</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">5.72</w:t></w:r>
+</w:p> </w:tc>
+ </w:tr>
+ <w:tr>
+ <w:trPr/>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="22.000000"/><w:szCs w:val="16.500000"/></w:rPr><w:t xml:space="preserve">4</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="22.000000"/><w:szCs w:val="16.500000"/></w:rPr><w:t xml:space="preserve">Subarnapur</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">6.70</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">5.90</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">0.86</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">0.98</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">4.48</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">1.13</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">5.61</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">4.63</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">6.91</w:t></w:r>
+</w:p> </w:tc>
+ </w:tr>
+ <w:tr>
+ <w:trPr/>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="22.000000"/><w:szCs w:val="16.500000"/></w:rPr><w:t xml:space="preserve">5</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="22.000000"/><w:szCs w:val="16.500000"/></w:rPr><w:t xml:space="preserve">Cuttack</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">26.63</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">23.43</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">3.42</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">3.91</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">3.75</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">0.06</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">3.81</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">-0.10</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">-0.15</w:t></w:r>
+</w:p> </w:tc>
+ </w:tr>
+ <w:tr>
+ <w:trPr/>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="22.000000"/><w:szCs w:val="16.500000"/></w:rPr><w:t xml:space="preserve">6</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="22.000000"/><w:szCs w:val="16.500000"/></w:rPr><w:t xml:space="preserve">Jagatsingpur</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">11.49</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">10.11</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">1.48</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">1.69</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">2.10</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">0.02</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">2.12</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">0.43</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">0.64</w:t></w:r>
+</w:p> </w:tc>
+ </w:tr>
+ <w:tr>
+ <w:trPr/>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="22.000000"/><w:szCs w:val="16.500000"/></w:rPr><w:t xml:space="preserve">7</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="22.000000"/><w:szCs w:val="16.500000"/></w:rPr><w:t xml:space="preserve">Jajpur</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">18.59</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">16.36</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">2.39</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">2.73</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">2.13</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">0.04</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">2.17</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">-0.56</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">-0.84</w:t></w:r>
+</w:p> </w:tc>
+ </w:tr>
+ <w:tr>
+ <w:trPr/>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="22.000000"/><w:szCs w:val="16.500000"/></w:rPr><w:t xml:space="preserve">8</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="22.000000"/><w:szCs w:val="16.500000"/></w:rPr><w:t xml:space="preserve">Kendrapara</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">14.62</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">12.87</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">1.88</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">2.15</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">2.60</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">0.07</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">2.67</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">0.52</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">0.78</w:t></w:r>
+</w:p> </w:tc>
+ </w:tr>
+ <w:tr>
+ <w:trPr/>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="22.000000"/><w:szCs w:val="16.500000"/></w:rPr><w:t xml:space="preserve">9</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="22.000000"/><w:szCs w:val="16.500000"/></w:rPr><w:t xml:space="preserve">Dhenkanal</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">12.13</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">10.67</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">1.56</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">1.78</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">2.26</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">0.02</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">2.28</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">0.50</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">0.75</w:t></w:r>
+</w:p> </w:tc>
+ </w:tr>
+ <w:tr>
+ <w:trPr/>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="22.000000"/><w:szCs w:val="16.500000"/></w:rPr><w:t xml:space="preserve">10</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="22.000000"/><w:szCs w:val="16.500000"/></w:rPr><w:t xml:space="preserve">Angul</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">12.93</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">11.38</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">1.66</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">1.90</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">1.73</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">0.02</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">1.75</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">-0.15</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">-0.22</w:t></w:r>
+</w:p> </w:tc>
+ </w:tr>
+ <w:tr>
+ <w:trPr/>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="22.000000"/><w:szCs w:val="16.500000"/></w:rPr><w:t xml:space="preserve">11</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="22.000000"/><w:szCs w:val="16.500000"/></w:rPr><w:t xml:space="preserve">Ganjam</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">35.77</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">31.48</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">4.60</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">5.26</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">4.57</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">0.00</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">4.57</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">-0.69</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">-1.03</w:t></w:r>
+</w:p> </w:tc>
+ </w:tr>
+ <w:tr>
+ <w:trPr/>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="22.000000"/><w:szCs w:val="16.500000"/></w:rPr><w:t xml:space="preserve">12</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="22.000000"/><w:szCs w:val="16.500000"/></w:rPr><w:t xml:space="preserve">Gajapati</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">5.85</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">5.15</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">0.75</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">0.86</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">0.68</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">0.01</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">0.69</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">-0.17</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">-0.25</w:t></w:r>
+</w:p> </w:tc>
+ </w:tr>
+ <w:tr>
+ <w:trPr/>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="22.000000"/><w:szCs w:val="16.500000"/></w:rPr><w:t xml:space="preserve">13</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="22.000000"/><w:szCs w:val="16.500000"/></w:rPr><w:t xml:space="preserve">Kalahandi</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">16.12</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">14.19</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">2.07</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">2.37</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">5.42</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">1.13</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">6.55</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">4.18</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">6.24</w:t></w:r>
+</w:p> </w:tc>
+ </w:tr>
+ <w:tr>
+ <w:trPr/>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="22.000000"/><w:szCs w:val="16.500000"/></w:rPr><w:t xml:space="preserve">14</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="22.000000"/><w:szCs w:val="16.500000"/></w:rPr><w:t xml:space="preserve">Nuapada</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">6.18</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">5.44</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">0.79</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">0.90</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">1.98</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">0.08</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">2.06</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">1.16</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">1.73</w:t></w:r>
+</w:p> </w:tc>
+ </w:tr>
+ <w:tr>
+ <w:trPr/>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="22.000000"/><w:szCs w:val="16.500000"/></w:rPr><w:t xml:space="preserve">15</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="22.000000"/><w:szCs w:val="16.500000"/></w:rPr><w:t xml:space="preserve">Keonjhar</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">18.42</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">16.21</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">2.37</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">2.71</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">2.76</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">0.08</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">2.84</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">0.13</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">0.19</w:t></w:r>
+</w:p> </w:tc>
+ </w:tr>
+ <w:tr>
+ <w:trPr/>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="22.000000"/><w:szCs w:val="16.500000"/></w:rPr><w:t xml:space="preserve">16</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="22.000000"/><w:szCs w:val="16.500000"/></w:rPr><w:t xml:space="preserve">Koraput</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">14.09</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">12.40</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">1.81</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">2.07</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">2.08</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">0.34</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">2.42</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">0.35</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">0.52</w:t></w:r>
+</w:p> </w:tc>
+ </w:tr>
+ <w:tr>
+ <w:trPr/>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="22.000000"/><w:szCs w:val="16.500000"/></w:rPr><w:t xml:space="preserve">17</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="22.000000"/><w:szCs w:val="16.500000"/></w:rPr><w:t xml:space="preserve">Malkangiri</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">6.31</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">5.55</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">0.81</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">0.93</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">1.78</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">0.04</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">1.82</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">0.89</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">1.33</w:t></w:r>
+</w:p> </w:tc>
+ </w:tr>
+ <w:tr>
+ <w:trPr/>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="22.000000"/><w:szCs w:val="16.500000"/></w:rPr><w:t xml:space="preserve">18</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="22.000000"/><w:szCs w:val="16.500000"/></w:rPr><w:t xml:space="preserve">Nabarangpur</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">12.50</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">11.00</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">1.61</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">1.84</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">3.26</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">0.02</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">3.28</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">1.44</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">2.15</w:t></w:r>
+</w:p> </w:tc>
+ </w:tr>
+ <w:tr>
+ <w:trPr/>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="22.000000"/><w:szCs w:val="16.500000"/></w:rPr><w:t xml:space="preserve">19</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="22.000000"/><w:szCs w:val="16.500000"/></w:rPr><w:t xml:space="preserve">Rayagada</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">9.83</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">8.65</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">1.26</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">1.44</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">1.15</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">0.03</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">1.18</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">-0.26</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">-0.39</w:t></w:r>
+</w:p> </w:tc>
+ </w:tr>
+ <w:tr>
+ <w:trPr/>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="22.000000"/><w:szCs w:val="16.500000"/></w:rPr><w:t xml:space="preserve">20</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="22.000000"/><w:szCs w:val="16.500000"/></w:rPr><w:t xml:space="preserve">Mayurbhanj</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">25.61</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">22.54</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">3.29</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">3.76</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">4.90</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">0.06</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">4.96</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">1.20</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">1.79</w:t></w:r>
+</w:p> </w:tc>
+ </w:tr>
+ <w:tr>
+ <w:trPr/>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="22.000000"/><w:szCs w:val="16.500000"/></w:rPr><w:t xml:space="preserve">21</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="22.000000"/><w:szCs w:val="16.500000"/></w:rPr><w:t xml:space="preserve">Kandhamal</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">7.45</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">6.56</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">0.96</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">1.10</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">0.70</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">0.01</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">0.71</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">-0.39</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">-0.58</w:t></w:r>
+</w:p> </w:tc>
+ </w:tr>
+ <w:tr>
+ <w:trPr/>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="22.000000"/><w:szCs w:val="16.500000"/></w:rPr><w:t xml:space="preserve">22</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="22.000000"/><w:szCs w:val="16.500000"/></w:rPr><w:t xml:space="preserve">Boudh</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">4.51</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">3.97</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">0.58</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">0.66</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">1.73</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">0.03</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">1.76</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">1.10</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">1.64</w:t></w:r>
+</w:p> </w:tc>
+ </w:tr>
+ <w:tr>
+ <w:trPr/>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="22.000000"/><w:szCs w:val="16.500000"/></w:rPr><w:t xml:space="preserve">23</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="22.000000"/><w:szCs w:val="16.500000"/></w:rPr><w:t xml:space="preserve">Puri</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">17.29</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">15.22</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">2.22</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">2.54</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">2.45</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">0.99</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">3.44</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">0.90</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">1.34</w:t></w:r>
+</w:p> </w:tc>
+ </w:tr>
+ <w:tr>
+ <w:trPr/>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="22.000000"/><w:szCs w:val="16.500000"/></w:rPr><w:t xml:space="preserve">24</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="22.000000"/><w:szCs w:val="16.500000"/></w:rPr><w:t xml:space="preserve">Khordha</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">23.08</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">20.31</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">2.97</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">3.39</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">2.02</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">0.03</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">2.05</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">-1.34</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">-2.00</w:t></w:r>
+</w:p> </w:tc>
+ </w:tr>
+ <w:tr>
+ <w:trPr/>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="22.000000"/><w:szCs w:val="16.500000"/></w:rPr><w:t xml:space="preserve">25</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="22.000000"/><w:szCs w:val="16.500000"/></w:rPr><w:t xml:space="preserve">Nayagarh</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">9.78</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">8.61</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">1.26</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">1.44</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">2.10</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">0.00</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">2.10</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">0.66</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">0.99</w:t></w:r>
+</w:p> </w:tc>
+ </w:tr>
+ <w:tr>
+ <w:trPr/>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="22.000000"/><w:szCs w:val="16.500000"/></w:rPr><w:t xml:space="preserve">26</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="22.000000"/><w:szCs w:val="16.500000"/></w:rPr><w:t xml:space="preserve">Sambalpur</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">10.62</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">9.35</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">1.37</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">1.57</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">3.45</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">0.71</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">4.16</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">2.59</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">3.87</w:t></w:r>
+</w:p> </w:tc>
+ </w:tr>
+ <w:tr>
+ <w:trPr/>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="22.000000"/><w:szCs w:val="16.500000"/></w:rPr><w:t xml:space="preserve">27</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="22.000000"/><w:szCs w:val="16.500000"/></w:rPr><w:t xml:space="preserve">Bargarh</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">15.00</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">13.20</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">1.93</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">2.21</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">6.87</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">2.65</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">9.52</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">7.31</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">10.91</w:t></w:r>
+</w:p> </w:tc>
+ </w:tr>
+ <w:tr>
+ <w:trPr/>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="22.000000"/><w:szCs w:val="16.500000"/></w:rPr><w:t xml:space="preserve">28</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="22.000000"/><w:szCs w:val="16.500000"/></w:rPr><w:t xml:space="preserve">Deogarh</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">3.18</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">2.80</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">0.41</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">0.47</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">1.12</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">0.07</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">1.19</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">0.72</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">1.07</w:t></w:r>
+</w:p> </w:tc>
+ </w:tr>
+ <w:tr>
+ <w:trPr/>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="22.000000"/><w:szCs w:val="16.500000"/></w:rPr><w:t xml:space="preserve">29</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="22.000000"/><w:szCs w:val="16.500000"/></w:rPr><w:t xml:space="preserve">Jharsuguda</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">5.91</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">5.20</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">0.76</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">0.87</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">0.99</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">0.01</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">1.00</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">0.13</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">0.19</w:t></w:r>
+</w:p> </w:tc>
+ </w:tr>
+ <w:tr>
+ <w:trPr/>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="22.000000"/><w:szCs w:val="16.500000"/></w:rPr><w:t xml:space="preserve">30</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="22.000000"/><w:szCs w:val="16.500000"/></w:rPr><w:t xml:space="preserve">Sundargarh</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">21.21</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">18.66</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">2.72</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">3.11</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">4.72</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">0.02</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">4.74</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">1.63</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">2.43</w:t></w:r>
+</w:p> </w:tc>
+ </w:tr>
+ <w:tr>
+ <w:trPr/>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:gridSpan w:val="2"/>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Arial-BoldMT" w:hAnsi="Arial-BoldMT"/><w:b/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">ODISHA</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Arial-BoldMT" w:hAnsi="Arial-BoldMT"/><w:b/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">427.80</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Arial-BoldMT" w:hAnsi="Arial-BoldMT"/><w:b/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">376.49</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Arial-BoldMT" w:hAnsi="Arial-BoldMT"/><w:b/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">54.99</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Arial-BoldMT" w:hAnsi="Arial-BoldMT"/><w:b/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">62.86</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Arial-BoldMT" w:hAnsi="Arial-BoldMT"/><w:b/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">86.29</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Arial-BoldMT" w:hAnsi="Arial-BoldMT"/><w:b/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">8.68</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Arial-BoldMT" w:hAnsi="Arial-BoldMT"/><w:b/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">94.97</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Arial-BoldMT" w:hAnsi="Arial-BoldMT"/><w:b/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">32.11</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Arial-BoldMT" w:hAnsi="Arial-BoldMT"/><w:b/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">47.92</w:t></w:r>
+</w:p> </w:tc>
+ </w:tr>
+ </w:tbl>
+
+ <w:tbl>
+ <w:tblLayout w:type="autofit"/>
+ <w:tr>
+ <w:trPr/>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:gridSpan w:val="2"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ </w:tr>
+ <w:tr>
+ <w:trPr/>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:gridSpan w:val="2"/>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">87</w:t></w:r>
+</w:p> </w:tc>
+ </w:tr>
+ </w:tbl>
+</w:body></w:document> \ No newline at end of file
diff --git a/extract/test/agstat.pdf.mutool.docx.dir.ref/word/fontTable.xml b/extract/test/agstat.pdf.mutool.docx.dir.ref/word/fontTable.xml
new file mode 100644
index 00000000..a39546e5
--- /dev/null
+++ b/extract/test/agstat.pdf.mutool.docx.dir.ref/word/fontTable.xml
@@ -0,0 +1,2 @@
+<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
+<w:fonts xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships" xmlns:w="http://schemas.openxmlformats.org/wordprocessingml/2006/main" xmlns:w14="http://schemas.microsoft.com/office/word/2010/wordml" xmlns:w15="http://schemas.microsoft.com/office/word/2012/wordml" xmlns:w16cex="http://schemas.microsoft.com/office/word/2018/wordml/cex" xmlns:w16cid="http://schemas.microsoft.com/office/word/2016/wordml/cid" xmlns:w16="http://schemas.microsoft.com/office/word/2018/wordml" xmlns:w16se="http://schemas.microsoft.com/office/word/2015/wordml/symex" mc:Ignorable="w14 w15 w16se w16cid w16 w16cex"><w:font w:name="Calibri"><w:panose1 w:val="020F0502020204030204"/><w:charset w:val="00"/><w:family w:val="swiss"/><w:pitch w:val="variable"/><w:sig w:usb0="E4002EFF" w:usb1="C000247B" w:usb2="00000009" w:usb3="00000000" w:csb0="000001FF" w:csb1="00000000"/></w:font><w:font w:name="Times New Roman"><w:panose1 w:val="02020603050405020304"/><w:charset w:val="00"/><w:family w:val="roman"/><w:pitch w:val="variable"/><w:sig w:usb0="E0002EFF" w:usb1="C000785B" w:usb2="00000009" w:usb3="00000000" w:csb0="000001FF" w:csb1="00000000"/></w:font><w:font w:name="Calibri Light"><w:panose1 w:val="020F0302020204030204"/><w:charset w:val="00"/><w:family w:val="swiss"/><w:pitch w:val="variable"/><w:sig w:usb0="E4002EFF" w:usb1="C000247B" w:usb2="00000009" w:usb3="00000000" w:csb0="000001FF" w:csb1="00000000"/></w:font></w:fonts> \ No newline at end of file
diff --git a/extract/test/agstat.pdf.mutool.docx.dir.ref/word/settings.xml b/extract/test/agstat.pdf.mutool.docx.dir.ref/word/settings.xml
new file mode 100644
index 00000000..c403540d
--- /dev/null
+++ b/extract/test/agstat.pdf.mutool.docx.dir.ref/word/settings.xml
@@ -0,0 +1,2 @@
+<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
+<w:settings xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships" xmlns:m="http://schemas.openxmlformats.org/officeDocument/2006/math" xmlns:v="urn:schemas-microsoft-com:vml" xmlns:w10="urn:schemas-microsoft-com:office:word" xmlns:w="http://schemas.openxmlformats.org/wordprocessingml/2006/main" xmlns:w14="http://schemas.microsoft.com/office/word/2010/wordml" xmlns:w15="http://schemas.microsoft.com/office/word/2012/wordml" xmlns:w16cex="http://schemas.microsoft.com/office/word/2018/wordml/cex" xmlns:w16cid="http://schemas.microsoft.com/office/word/2016/wordml/cid" xmlns:w16="http://schemas.microsoft.com/office/word/2018/wordml" xmlns:w16se="http://schemas.microsoft.com/office/word/2015/wordml/symex" xmlns:sl="http://schemas.openxmlformats.org/schemaLibrary/2006/main" mc:Ignorable="w14 w15 w16se w16cid w16 w16cex"><w:zoom w:percent="100"/><w:proofState w:spelling="clean" w:grammar="clean"/><w:defaultTabStop w:val="720"/><w:characterSpacingControl w:val="doNotCompress"/><w:compat><w:compatSetting w:name="compatibilityMode" w:uri="http://schemas.microsoft.com/office/word" w:val="15"/><w:compatSetting w:name="overrideTableStyleFontSizeAndJustification" w:uri="http://schemas.microsoft.com/office/word" w:val="1"/><w:compatSetting w:name="enableOpenTypeFeatures" w:uri="http://schemas.microsoft.com/office/word" w:val="1"/><w:compatSetting w:name="doNotFlipMirrorIndents" w:uri="http://schemas.microsoft.com/office/word" w:val="1"/><w:compatSetting w:name="differentiateMultirowTableHeaders" w:uri="http://schemas.microsoft.com/office/word" w:val="1"/><w:compatSetting w:name="useWord2013TrackBottomHyphenation" w:uri="http://schemas.microsoft.com/office/word" w:val="0"/></w:compat><w:rsids><w:rsidRoot w:val="007F4427"/><w:rsid w:val="00255448"/><w:rsid w:val="007F4427"/></w:rsids><m:mathPr><m:mathFont m:val="Cambria Math"/><m:brkBin m:val="before"/><m:brkBinSub m:val="--"/><m:smallFrac m:val="0"/><m:dispDef/><m:lMargin m:val="0"/><m:rMargin m:val="0"/><m:defJc m:val="centerGroup"/><m:wrapIndent m:val="1440"/><m:intLim m:val="subSup"/><m:naryLim m:val="undOvr"/></m:mathPr><w:themeFontLang w:val="en-GB"/><w:clrSchemeMapping w:bg1="light1" w:t1="dark1" w:bg2="light2" w:t2="dark2" w:accent1="accent1" w:accent2="accent2" w:accent3="accent3" w:accent4="accent4" w:accent5="accent5" w:accent6="accent6" w:hyperlink="hyperlink" w:followedHyperlink="followedHyperlink"/><w:shapeDefaults><o:shapedefaults v:ext="edit" spidmax="1026"/><o:shapelayout v:ext="edit"><o:idmap v:ext="edit" data="1"/></o:shapelayout></w:shapeDefaults><w:decimalSymbol w:val="."/><w:listSeparator w:val=","/><w14:docId w14:val="32E52EF8"/><w15:chartTrackingRefBased/><w15:docId w15:val="{A10F59F7-497D-44D4-A338-47719734E7A0}"/></w:settings> \ No newline at end of file
diff --git a/extract/test/agstat.pdf.mutool.docx.dir.ref/word/styles.xml b/extract/test/agstat.pdf.mutool.docx.dir.ref/word/styles.xml
new file mode 100644
index 00000000..38e5e2bd
--- /dev/null
+++ b/extract/test/agstat.pdf.mutool.docx.dir.ref/word/styles.xml
@@ -0,0 +1,2 @@
+<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
+<w:styles xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships" xmlns:w="http://schemas.openxmlformats.org/wordprocessingml/2006/main" xmlns:w14="http://schemas.microsoft.com/office/word/2010/wordml" xmlns:w15="http://schemas.microsoft.com/office/word/2012/wordml" xmlns:w16cex="http://schemas.microsoft.com/office/word/2018/wordml/cex" xmlns:w16cid="http://schemas.microsoft.com/office/word/2016/wordml/cid" xmlns:w16="http://schemas.microsoft.com/office/word/2018/wordml" xmlns:w16se="http://schemas.microsoft.com/office/word/2015/wordml/symex" mc:Ignorable="w14 w15 w16se w16cid w16 w16cex"><w:docDefaults><w:rPrDefault><w:rPr><w:rFonts w:asciiTheme="minorHAnsi" w:eastAsiaTheme="minorHAnsi" w:hAnsiTheme="minorHAnsi" w:cstheme="minorBidi"/><w:sz w:val="22"/><w:szCs w:val="22"/><w:lang w:val="en-GB" w:eastAsia="en-US" w:bidi="ar-SA"/></w:rPr></w:rPrDefault><w:pPrDefault><w:pPr><w:spacing w:after="160" w:line="259" w:lineRule="auto"/></w:pPr></w:pPrDefault></w:docDefaults><w:latentStyles w:defLockedState="0" w:defUIPriority="99" w:defSemiHidden="0" w:defUnhideWhenUsed="0" w:defQFormat="0" w:count="376"><w:lsdException w:name="Normal" w:uiPriority="0" w:qFormat="1"/><w:lsdException w:name="heading 1" w:uiPriority="9" w:qFormat="1"/><w:lsdException w:name="heading 2" w:semiHidden="1" w:uiPriority="9" w:unhideWhenUsed="1" w:qFormat="1"/><w:lsdException w:name="heading 3" w:semiHidden="1" w:uiPriority="9" w:unhideWhenUsed="1" w:qFormat="1"/><w:lsdException w:name="heading 4" w:semiHidden="1" w:uiPriority="9" w:unhideWhenUsed="1" w:qFormat="1"/><w:lsdException w:name="heading 5" w:semiHidden="1" w:uiPriority="9" w:unhideWhenUsed="1" w:qFormat="1"/><w:lsdException w:name="heading 6" w:semiHidden="1" w:uiPriority="9" w:unhideWhenUsed="1" w:qFormat="1"/><w:lsdException w:name="heading 7" w:semiHidden="1" w:uiPriority="9" w:unhideWhenUsed="1" w:qFormat="1"/><w:lsdException w:name="heading 8" w:semiHidden="1" w:uiPriority="9" w:unhideWhenUsed="1" w:qFormat="1"/><w:lsdException w:name="heading 9" w:semiHidden="1" w:uiPriority="9" w:unhideWhenUsed="1" w:qFormat="1"/><w:lsdException w:name="index 1" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="index 2" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="index 3" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="index 4" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="index 5" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="index 6" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="index 7" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="index 8" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="index 9" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="toc 1" w:semiHidden="1" w:uiPriority="39" w:unhideWhenUsed="1"/><w:lsdException w:name="toc 2" w:semiHidden="1" w:uiPriority="39" w:unhideWhenUsed="1"/><w:lsdException w:name="toc 3" w:semiHidden="1" w:uiPriority="39" w:unhideWhenUsed="1"/><w:lsdException w:name="toc 4" w:semiHidden="1" w:uiPriority="39" w:unhideWhenUsed="1"/><w:lsdException w:name="toc 5" w:semiHidden="1" w:uiPriority="39" w:unhideWhenUsed="1"/><w:lsdException w:name="toc 6" w:semiHidden="1" w:uiPriority="39" w:unhideWhenUsed="1"/><w:lsdException w:name="toc 7" w:semiHidden="1" w:uiPriority="39" w:unhideWhenUsed="1"/><w:lsdException w:name="toc 8" w:semiHidden="1" w:uiPriority="39" w:unhideWhenUsed="1"/><w:lsdException w:name="toc 9" w:semiHidden="1" w:uiPriority="39" w:unhideWhenUsed="1"/><w:lsdException w:name="Normal Indent" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="footnote text" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="annotation text" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="header" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="footer" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="index heading" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="caption" w:semiHidden="1" w:uiPriority="35" w:unhideWhenUsed="1" w:qFormat="1"/><w:lsdException w:name="table of figures" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="envelope address" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="envelope return" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="footnote reference" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="annotation reference" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="line number" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="page number" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="endnote reference" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="endnote text" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="table of authorities" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="macro" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="toa heading" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="List" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="List Bullet" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="List Number" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="List 2" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="List 3" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="List 4" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="List 5" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="List Bullet 2" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="List Bullet 3" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="List Bullet 4" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="List Bullet 5" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="List Number 2" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="List Number 3" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="List Number 4" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="List Number 5" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Title" w:uiPriority="10" w:qFormat="1"/><w:lsdException w:name="Closing" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Signature" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Default Paragraph Font" w:semiHidden="1" w:uiPriority="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Body Text" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Body Text Indent" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="List Continue" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="List Continue 2" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="List Continue 3" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="List Continue 4" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="List Continue 5" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Message Header" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Subtitle" w:uiPriority="11" w:qFormat="1"/><w:lsdException w:name="Salutation" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Date" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Body Text First Indent" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Body Text First Indent 2" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Note Heading" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Body Text 2" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Body Text 3" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Body Text Indent 2" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Body Text Indent 3" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Block Text" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Hyperlink" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="FollowedHyperlink" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Strong" w:uiPriority="22" w:qFormat="1"/><w:lsdException w:name="Emphasis" w:uiPriority="20" w:qFormat="1"/><w:lsdException w:name="Document Map" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Plain Text" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="E-mail Signature" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="HTML Top of Form" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="HTML Bottom of Form" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Normal (Web)" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="HTML Acronym" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="HTML Address" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="HTML Cite" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="HTML Code" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="HTML Definition" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="HTML Keyboard" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="HTML Preformatted" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="HTML Sample" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="HTML Typewriter" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="HTML Variable" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Normal Table" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="annotation subject" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="No List" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Outline List 1" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Outline List 2" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Outline List 3" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Simple 1" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Simple 2" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Simple 3" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Classic 1" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Classic 2" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Classic 3" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Classic 4" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Colorful 1" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Colorful 2" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Colorful 3" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Columns 1" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Columns 2" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Columns 3" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Columns 4" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Columns 5" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Grid 1" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Grid 2" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Grid 3" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Grid 4" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Grid 5" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Grid 6" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Grid 7" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Grid 8" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table List 1" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table List 2" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table List 3" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table List 4" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table List 5" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table List 6" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table List 7" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table List 8" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table 3D effects 1" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table 3D effects 2" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table 3D effects 3" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Contemporary" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Elegant" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Professional" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Subtle 1" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Subtle 2" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Web 1" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Web 2" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Web 3" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Balloon Text" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Grid" w:uiPriority="39"/><w:lsdException w:name="Table Theme" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Placeholder Text" w:semiHidden="1"/><w:lsdException w:name="No Spacing" w:uiPriority="1" w:qFormat="1"/><w:lsdException w:name="Light Shading" w:uiPriority="60"/><w:lsdException w:name="Light List" w:uiPriority="61"/><w:lsdException w:name="Light Grid" w:uiPriority="62"/><w:lsdException w:name="Medium Shading 1" w:uiPriority="63"/><w:lsdException w:name="Medium Shading 2" w:uiPriority="64"/><w:lsdException w:name="Medium List 1" w:uiPriority="65"/><w:lsdException w:name="Medium List 2" w:uiPriority="66"/><w:lsdException w:name="Medium Grid 1" w:uiPriority="67"/><w:lsdException w:name="Medium Grid 2" w:uiPriority="68"/><w:lsdException w:name="Medium Grid 3" w:uiPriority="69"/><w:lsdException w:name="Dark List" w:uiPriority="70"/><w:lsdException w:name="Colorful Shading" w:uiPriority="71"/><w:lsdException w:name="Colorful List" w:uiPriority="72"/><w:lsdException w:name="Colorful Grid" w:uiPriority="73"/><w:lsdException w:name="Light Shading Accent 1" w:uiPriority="60"/><w:lsdException w:name="Light List Accent 1" w:uiPriority="61"/><w:lsdException w:name="Light Grid Accent 1" w:uiPriority="62"/><w:lsdException w:name="Medium Shading 1 Accent 1" w:uiPriority="63"/><w:lsdException w:name="Medium Shading 2 Accent 1" w:uiPriority="64"/><w:lsdException w:name="Medium List 1 Accent 1" w:uiPriority="65"/><w:lsdException w:name="Revision" w:semiHidden="1"/><w:lsdException w:name="List Paragraph" w:uiPriority="34" w:qFormat="1"/><w:lsdException w:name="Quote" w:uiPriority="29" w:qFormat="1"/><w:lsdException w:name="Intense Quote" w:uiPriority="30" w:qFormat="1"/><w:lsdException w:name="Medium List 2 Accent 1" w:uiPriority="66"/><w:lsdException w:name="Medium Grid 1 Accent 1" w:uiPriority="67"/><w:lsdException w:name="Medium Grid 2 Accent 1" w:uiPriority="68"/><w:lsdException w:name="Medium Grid 3 Accent 1" w:uiPriority="69"/><w:lsdException w:name="Dark List Accent 1" w:uiPriority="70"/><w:lsdException w:name="Colorful Shading Accent 1" w:uiPriority="71"/><w:lsdException w:name="Colorful List Accent 1" w:uiPriority="72"/><w:lsdException w:name="Colorful Grid Accent 1" w:uiPriority="73"/><w:lsdException w:name="Light Shading Accent 2" w:uiPriority="60"/><w:lsdException w:name="Light List Accent 2" w:uiPriority="61"/><w:lsdException w:name="Light Grid Accent 2" w:uiPriority="62"/><w:lsdException w:name="Medium Shading 1 Accent 2" w:uiPriority="63"/><w:lsdException w:name="Medium Shading 2 Accent 2" w:uiPriority="64"/><w:lsdException w:name="Medium List 1 Accent 2" w:uiPriority="65"/><w:lsdException w:name="Medium List 2 Accent 2" w:uiPriority="66"/><w:lsdException w:name="Medium Grid 1 Accent 2" w:uiPriority="67"/><w:lsdException w:name="Medium Grid 2 Accent 2" w:uiPriority="68"/><w:lsdException w:name="Medium Grid 3 Accent 2" w:uiPriority="69"/><w:lsdException w:name="Dark List Accent 2" w:uiPriority="70"/><w:lsdException w:name="Colorful Shading Accent 2" w:uiPriority="71"/><w:lsdException w:name="Colorful List Accent 2" w:uiPriority="72"/><w:lsdException w:name="Colorful Grid Accent 2" w:uiPriority="73"/><w:lsdException w:name="Light Shading Accent 3" w:uiPriority="60"/><w:lsdException w:name="Light List Accent 3" w:uiPriority="61"/><w:lsdException w:name="Light Grid Accent 3" w:uiPriority="62"/><w:lsdException w:name="Medium Shading 1 Accent 3" w:uiPriority="63"/><w:lsdException w:name="Medium Shading 2 Accent 3" w:uiPriority="64"/><w:lsdException w:name="Medium List 1 Accent 3" w:uiPriority="65"/><w:lsdException w:name="Medium List 2 Accent 3" w:uiPriority="66"/><w:lsdException w:name="Medium Grid 1 Accent 3" w:uiPriority="67"/><w:lsdException w:name="Medium Grid 2 Accent 3" w:uiPriority="68"/><w:lsdException w:name="Medium Grid 3 Accent 3" w:uiPriority="69"/><w:lsdException w:name="Dark List Accent 3" w:uiPriority="70"/><w:lsdException w:name="Colorful Shading Accent 3" w:uiPriority="71"/><w:lsdException w:name="Colorful List Accent 3" w:uiPriority="72"/><w:lsdException w:name="Colorful Grid Accent 3" w:uiPriority="73"/><w:lsdException w:name="Light Shading Accent 4" w:uiPriority="60"/><w:lsdException w:name="Light List Accent 4" w:uiPriority="61"/><w:lsdException w:name="Light Grid Accent 4" w:uiPriority="62"/><w:lsdException w:name="Medium Shading 1 Accent 4" w:uiPriority="63"/><w:lsdException w:name="Medium Shading 2 Accent 4" w:uiPriority="64"/><w:lsdException w:name="Medium List 1 Accent 4" w:uiPriority="65"/><w:lsdException w:name="Medium List 2 Accent 4" w:uiPriority="66"/><w:lsdException w:name="Medium Grid 1 Accent 4" w:uiPriority="67"/><w:lsdException w:name="Medium Grid 2 Accent 4" w:uiPriority="68"/><w:lsdException w:name="Medium Grid 3 Accent 4" w:uiPriority="69"/><w:lsdException w:name="Dark List Accent 4" w:uiPriority="70"/><w:lsdException w:name="Colorful Shading Accent 4" w:uiPriority="71"/><w:lsdException w:name="Colorful List Accent 4" w:uiPriority="72"/><w:lsdException w:name="Colorful Grid Accent 4" w:uiPriority="73"/><w:lsdException w:name="Light Shading Accent 5" w:uiPriority="60"/><w:lsdException w:name="Light List Accent 5" w:uiPriority="61"/><w:lsdException w:name="Light Grid Accent 5" w:uiPriority="62"/><w:lsdException w:name="Medium Shading 1 Accent 5" w:uiPriority="63"/><w:lsdException w:name="Medium Shading 2 Accent 5" w:uiPriority="64"/><w:lsdException w:name="Medium List 1 Accent 5" w:uiPriority="65"/><w:lsdException w:name="Medium List 2 Accent 5" w:uiPriority="66"/><w:lsdException w:name="Medium Grid 1 Accent 5" w:uiPriority="67"/><w:lsdException w:name="Medium Grid 2 Accent 5" w:uiPriority="68"/><w:lsdException w:name="Medium Grid 3 Accent 5" w:uiPriority="69"/><w:lsdException w:name="Dark List Accent 5" w:uiPriority="70"/><w:lsdException w:name="Colorful Shading Accent 5" w:uiPriority="71"/><w:lsdException w:name="Colorful List Accent 5" w:uiPriority="72"/><w:lsdException w:name="Colorful Grid Accent 5" w:uiPriority="73"/><w:lsdException w:name="Light Shading Accent 6" w:uiPriority="60"/><w:lsdException w:name="Light List Accent 6" w:uiPriority="61"/><w:lsdException w:name="Light Grid Accent 6" w:uiPriority="62"/><w:lsdException w:name="Medium Shading 1 Accent 6" w:uiPriority="63"/><w:lsdException w:name="Medium Shading 2 Accent 6" w:uiPriority="64"/><w:lsdException w:name="Medium List 1 Accent 6" w:uiPriority="65"/><w:lsdException w:name="Medium List 2 Accent 6" w:uiPriority="66"/><w:lsdException w:name="Medium Grid 1 Accent 6" w:uiPriority="67"/><w:lsdException w:name="Medium Grid 2 Accent 6" w:uiPriority="68"/><w:lsdException w:name="Medium Grid 3 Accent 6" w:uiPriority="69"/><w:lsdException w:name="Dark List Accent 6" w:uiPriority="70"/><w:lsdException w:name="Colorful Shading Accent 6" w:uiPriority="71"/><w:lsdException w:name="Colorful List Accent 6" w:uiPriority="72"/><w:lsdException w:name="Colorful Grid Accent 6" w:uiPriority="73"/><w:lsdException w:name="Subtle Emphasis" w:uiPriority="19" w:qFormat="1"/><w:lsdException w:name="Intense Emphasis" w:uiPriority="21" w:qFormat="1"/><w:lsdException w:name="Subtle Reference" w:uiPriority="31" w:qFormat="1"/><w:lsdException w:name="Intense Reference" w:uiPriority="32" w:qFormat="1"/><w:lsdException w:name="Book Title" w:uiPriority="33" w:qFormat="1"/><w:lsdException w:name="Bibliography" w:semiHidden="1" w:uiPriority="37" w:unhideWhenUsed="1"/><w:lsdException w:name="TOC Heading" w:semiHidden="1" w:uiPriority="39" w:unhideWhenUsed="1" w:qFormat="1"/><w:lsdException w:name="Plain Table 1" w:uiPriority="41"/><w:lsdException w:name="Plain Table 2" w:uiPriority="42"/><w:lsdException w:name="Plain Table 3" w:uiPriority="43"/><w:lsdException w:name="Plain Table 4" w:uiPriority="44"/><w:lsdException w:name="Plain Table 5" w:uiPriority="45"/><w:lsdException w:name="Grid Table Light" w:uiPriority="40"/><w:lsdException w:name="Grid Table 1 Light" w:uiPriority="46"/><w:lsdException w:name="Grid Table 2" w:uiPriority="47"/><w:lsdException w:name="Grid Table 3" w:uiPriority="48"/><w:lsdException w:name="Grid Table 4" w:uiPriority="49"/><w:lsdException w:name="Grid Table 5 Dark" w:uiPriority="50"/><w:lsdException w:name="Grid Table 6 Colorful" w:uiPriority="51"/><w:lsdException w:name="Grid Table 7 Colorful" w:uiPriority="52"/><w:lsdException w:name="Grid Table 1 Light Accent 1" w:uiPriority="46"/><w:lsdException w:name="Grid Table 2 Accent 1" w:uiPriority="47"/><w:lsdException w:name="Grid Table 3 Accent 1" w:uiPriority="48"/><w:lsdException w:name="Grid Table 4 Accent 1" w:uiPriority="49"/><w:lsdException w:name="Grid Table 5 Dark Accent 1" w:uiPriority="50"/><w:lsdException w:name="Grid Table 6 Colorful Accent 1" w:uiPriority="51"/><w:lsdException w:name="Grid Table 7 Colorful Accent 1" w:uiPriority="52"/><w:lsdException w:name="Grid Table 1 Light Accent 2" w:uiPriority="46"/><w:lsdException w:name="Grid Table 2 Accent 2" w:uiPriority="47"/><w:lsdException w:name="Grid Table 3 Accent 2" w:uiPriority="48"/><w:lsdException w:name="Grid Table 4 Accent 2" w:uiPriority="49"/><w:lsdException w:name="Grid Table 5 Dark Accent 2" w:uiPriority="50"/><w:lsdException w:name="Grid Table 6 Colorful Accent 2" w:uiPriority="51"/><w:lsdException w:name="Grid Table 7 Colorful Accent 2" w:uiPriority="52"/><w:lsdException w:name="Grid Table 1 Light Accent 3" w:uiPriority="46"/><w:lsdException w:name="Grid Table 2 Accent 3" w:uiPriority="47"/><w:lsdException w:name="Grid Table 3 Accent 3" w:uiPriority="48"/><w:lsdException w:name="Grid Table 4 Accent 3" w:uiPriority="49"/><w:lsdException w:name="Grid Table 5 Dark Accent 3" w:uiPriority="50"/><w:lsdException w:name="Grid Table 6 Colorful Accent 3" w:uiPriority="51"/><w:lsdException w:name="Grid Table 7 Colorful Accent 3" w:uiPriority="52"/><w:lsdException w:name="Grid Table 1 Light Accent 4" w:uiPriority="46"/><w:lsdException w:name="Grid Table 2 Accent 4" w:uiPriority="47"/><w:lsdException w:name="Grid Table 3 Accent 4" w:uiPriority="48"/><w:lsdException w:name="Grid Table 4 Accent 4" w:uiPriority="49"/><w:lsdException w:name="Grid Table 5 Dark Accent 4" w:uiPriority="50"/><w:lsdException w:name="Grid Table 6 Colorful Accent 4" w:uiPriority="51"/><w:lsdException w:name="Grid Table 7 Colorful Accent 4" w:uiPriority="52"/><w:lsdException w:name="Grid Table 1 Light Accent 5" w:uiPriority="46"/><w:lsdException w:name="Grid Table 2 Accent 5" w:uiPriority="47"/><w:lsdException w:name="Grid Table 3 Accent 5" w:uiPriority="48"/><w:lsdException w:name="Grid Table 4 Accent 5" w:uiPriority="49"/><w:lsdException w:name="Grid Table 5 Dark Accent 5" w:uiPriority="50"/><w:lsdException w:name="Grid Table 6 Colorful Accent 5" w:uiPriority="51"/><w:lsdException w:name="Grid Table 7 Colorful Accent 5" w:uiPriority="52"/><w:lsdException w:name="Grid Table 1 Light Accent 6" w:uiPriority="46"/><w:lsdException w:name="Grid Table 2 Accent 6" w:uiPriority="47"/><w:lsdException w:name="Grid Table 3 Accent 6" w:uiPriority="48"/><w:lsdException w:name="Grid Table 4 Accent 6" w:uiPriority="49"/><w:lsdException w:name="Grid Table 5 Dark Accent 6" w:uiPriority="50"/><w:lsdException w:name="Grid Table 6 Colorful Accent 6" w:uiPriority="51"/><w:lsdException w:name="Grid Table 7 Colorful Accent 6" w:uiPriority="52"/><w:lsdException w:name="List Table 1 Light" w:uiPriority="46"/><w:lsdException w:name="List Table 2" w:uiPriority="47"/><w:lsdException w:name="List Table 3" w:uiPriority="48"/><w:lsdException w:name="List Table 4" w:uiPriority="49"/><w:lsdException w:name="List Table 5 Dark" w:uiPriority="50"/><w:lsdException w:name="List Table 6 Colorful" w:uiPriority="51"/><w:lsdException w:name="List Table 7 Colorful" w:uiPriority="52"/><w:lsdException w:name="List Table 1 Light Accent 1" w:uiPriority="46"/><w:lsdException w:name="List Table 2 Accent 1" w:uiPriority="47"/><w:lsdException w:name="List Table 3 Accent 1" w:uiPriority="48"/><w:lsdException w:name="List Table 4 Accent 1" w:uiPriority="49"/><w:lsdException w:name="List Table 5 Dark Accent 1" w:uiPriority="50"/><w:lsdException w:name="List Table 6 Colorful Accent 1" w:uiPriority="51"/><w:lsdException w:name="List Table 7 Colorful Accent 1" w:uiPriority="52"/><w:lsdException w:name="List Table 1 Light Accent 2" w:uiPriority="46"/><w:lsdException w:name="List Table 2 Accent 2" w:uiPriority="47"/><w:lsdException w:name="List Table 3 Accent 2" w:uiPriority="48"/><w:lsdException w:name="List Table 4 Accent 2" w:uiPriority="49"/><w:lsdException w:name="List Table 5 Dark Accent 2" w:uiPriority="50"/><w:lsdException w:name="List Table 6 Colorful Accent 2" w:uiPriority="51"/><w:lsdException w:name="List Table 7 Colorful Accent 2" w:uiPriority="52"/><w:lsdException w:name="List Table 1 Light Accent 3" w:uiPriority="46"/><w:lsdException w:name="List Table 2 Accent 3" w:uiPriority="47"/><w:lsdException w:name="List Table 3 Accent 3" w:uiPriority="48"/><w:lsdException w:name="List Table 4 Accent 3" w:uiPriority="49"/><w:lsdException w:name="List Table 5 Dark Accent 3" w:uiPriority="50"/><w:lsdException w:name="List Table 6 Colorful Accent 3" w:uiPriority="51"/><w:lsdException w:name="List Table 7 Colorful Accent 3" w:uiPriority="52"/><w:lsdException w:name="List Table 1 Light Accent 4" w:uiPriority="46"/><w:lsdException w:name="List Table 2 Accent 4" w:uiPriority="47"/><w:lsdException w:name="List Table 3 Accent 4" w:uiPriority="48"/><w:lsdException w:name="List Table 4 Accent 4" w:uiPriority="49"/><w:lsdException w:name="List Table 5 Dark Accent 4" w:uiPriority="50"/><w:lsdException w:name="List Table 6 Colorful Accent 4" w:uiPriority="51"/><w:lsdException w:name="List Table 7 Colorful Accent 4" w:uiPriority="52"/><w:lsdException w:name="List Table 1 Light Accent 5" w:uiPriority="46"/><w:lsdException w:name="List Table 2 Accent 5" w:uiPriority="47"/><w:lsdException w:name="List Table 3 Accent 5" w:uiPriority="48"/><w:lsdException w:name="List Table 4 Accent 5" w:uiPriority="49"/><w:lsdException w:name="List Table 5 Dark Accent 5" w:uiPriority="50"/><w:lsdException w:name="List Table 6 Colorful Accent 5" w:uiPriority="51"/><w:lsdException w:name="List Table 7 Colorful Accent 5" w:uiPriority="52"/><w:lsdException w:name="List Table 1 Light Accent 6" w:uiPriority="46"/><w:lsdException w:name="List Table 2 Accent 6" w:uiPriority="47"/><w:lsdException w:name="List Table 3 Accent 6" w:uiPriority="48"/><w:lsdException w:name="List Table 4 Accent 6" w:uiPriority="49"/><w:lsdException w:name="List Table 5 Dark Accent 6" w:uiPriority="50"/><w:lsdException w:name="List Table 6 Colorful Accent 6" w:uiPriority="51"/><w:lsdException w:name="List Table 7 Colorful Accent 6" w:uiPriority="52"/><w:lsdException w:name="Mention" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Smart Hyperlink" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Hashtag" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Unresolved Mention" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Smart Link" w:semiHidden="1" w:unhideWhenUsed="1"/></w:latentStyles><w:style w:type="paragraph" w:default="1" w:styleId="Normal"><w:name w:val="Normal"/><w:qFormat/></w:style><w:style w:type="character" w:default="1" w:styleId="DefaultParagraphFont"><w:name w:val="Default Paragraph Font"/><w:uiPriority w:val="1"/><w:semiHidden/><w:unhideWhenUsed/></w:style><w:style w:type="table" w:default="1" w:styleId="TableNormal"><w:name w:val="Normal Table"/><w:uiPriority w:val="99"/><w:semiHidden/><w:unhideWhenUsed/><w:tblPr><w:tblInd w:w="0" w:type="dxa"/><w:tblCellMar><w:top w:w="0" w:type="dxa"/><w:left w:w="108" w:type="dxa"/><w:bottom w:w="0" w:type="dxa"/><w:right w:w="108" w:type="dxa"/></w:tblCellMar></w:tblPr></w:style><w:style w:type="numbering" w:default="1" w:styleId="NoList"><w:name w:val="No List"/><w:uiPriority w:val="99"/><w:semiHidden/><w:unhideWhenUsed/></w:style></w:styles> \ No newline at end of file
diff --git a/extract/test/agstat.pdf.mutool.docx.dir.ref/word/theme/theme1.xml b/extract/test/agstat.pdf.mutool.docx.dir.ref/word/theme/theme1.xml
new file mode 100644
index 00000000..d1a502f8
--- /dev/null
+++ b/extract/test/agstat.pdf.mutool.docx.dir.ref/word/theme/theme1.xml
@@ -0,0 +1,2 @@
+<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
+<a:theme xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main" name="Office Theme"><a:themeElements><a:clrScheme name="Office"><a:dk1><a:sysClr val="windowText" lastClr="000000"/></a:dk1><a:lt1><a:sysClr val="window" lastClr="FFFFFF"/></a:lt1><a:dk2><a:srgbClr val="44546A"/></a:dk2><a:lt2><a:srgbClr val="E7E6E6"/></a:lt2><a:accent1><a:srgbClr val="4472C4"/></a:accent1><a:accent2><a:srgbClr val="ED7D31"/></a:accent2><a:accent3><a:srgbClr val="A5A5A5"/></a:accent3><a:accent4><a:srgbClr val="FFC000"/></a:accent4><a:accent5><a:srgbClr val="5B9BD5"/></a:accent5><a:accent6><a:srgbClr val="70AD47"/></a:accent6><a:hlink><a:srgbClr val="0563C1"/></a:hlink><a:folHlink><a:srgbClr val="954F72"/></a:folHlink></a:clrScheme><a:fontScheme name="Office"><a:majorFont><a:latin typeface="Calibri Light" panose="020F0302020204030204"/><a:ea typeface=""/><a:cs typeface=""/><a:font script="Jpan" typeface="游ゴシック Light"/><a:font script="Hang" typeface="맑은 고딕"/><a:font script="Hans" typeface="等线 Light"/><a:font script="Hant" typeface="新細明體"/><a:font script="Arab" typeface="Times New Roman"/><a:font script="Hebr" typeface="Times New Roman"/><a:font script="Thai" typeface="Angsana New"/><a:font script="Ethi" typeface="Nyala"/><a:font script="Beng" typeface="Vrinda"/><a:font script="Gujr" typeface="Shruti"/><a:font script="Khmr" typeface="MoolBoran"/><a:font script="Knda" typeface="Tunga"/><a:font script="Guru" typeface="Raavi"/><a:font script="Cans" typeface="Euphemia"/><a:font script="Cher" typeface="Plantagenet Cherokee"/><a:font script="Yiii" typeface="Microsoft Yi Baiti"/><a:font script="Tibt" typeface="Microsoft Himalaya"/><a:font script="Thaa" typeface="MV Boli"/><a:font script="Deva" typeface="Mangal"/><a:font script="Telu" typeface="Gautami"/><a:font script="Taml" typeface="Latha"/><a:font script="Syrc" typeface="Estrangelo Edessa"/><a:font script="Orya" typeface="Kalinga"/><a:font script="Mlym" typeface="Kartika"/><a:font script="Laoo" typeface="DokChampa"/><a:font script="Sinh" typeface="Iskoola Pota"/><a:font script="Mong" typeface="Mongolian Baiti"/><a:font script="Viet" typeface="Times New Roman"/><a:font script="Uigh" typeface="Microsoft Uighur"/><a:font script="Geor" typeface="Sylfaen"/><a:font script="Armn" typeface="Arial"/><a:font script="Bugi" typeface="Leelawadee UI"/><a:font script="Bopo" typeface="Microsoft JhengHei"/><a:font script="Java" typeface="Javanese Text"/><a:font script="Lisu" typeface="Segoe UI"/><a:font script="Mymr" typeface="Myanmar Text"/><a:font script="Nkoo" typeface="Ebrima"/><a:font script="Olck" typeface="Nirmala UI"/><a:font script="Osma" typeface="Ebrima"/><a:font script="Phag" typeface="Phagspa"/><a:font script="Syrn" typeface="Estrangelo Edessa"/><a:font script="Syrj" typeface="Estrangelo Edessa"/><a:font script="Syre" typeface="Estrangelo Edessa"/><a:font script="Sora" typeface="Nirmala UI"/><a:font script="Tale" typeface="Microsoft Tai Le"/><a:font script="Talu" typeface="Microsoft New Tai Lue"/><a:font script="Tfng" typeface="Ebrima"/></a:majorFont><a:minorFont><a:latin typeface="Calibri" panose="020F0502020204030204"/><a:ea typeface=""/><a:cs typeface=""/><a:font script="Jpan" typeface="游明朝"/><a:font script="Hang" typeface="맑은 고딕"/><a:font script="Hans" typeface="等线"/><a:font script="Hant" typeface="新細明體"/><a:font script="Arab" typeface="Arial"/><a:font script="Hebr" typeface="Arial"/><a:font script="Thai" typeface="Cordia New"/><a:font script="Ethi" typeface="Nyala"/><a:font script="Beng" typeface="Vrinda"/><a:font script="Gujr" typeface="Shruti"/><a:font script="Khmr" typeface="DaunPenh"/><a:font script="Knda" typeface="Tunga"/><a:font script="Guru" typeface="Raavi"/><a:font script="Cans" typeface="Euphemia"/><a:font script="Cher" typeface="Plantagenet Cherokee"/><a:font script="Yiii" typeface="Microsoft Yi Baiti"/><a:font script="Tibt" typeface="Microsoft Himalaya"/><a:font script="Thaa" typeface="MV Boli"/><a:font script="Deva" typeface="Mangal"/><a:font script="Telu" typeface="Gautami"/><a:font script="Taml" typeface="Latha"/><a:font script="Syrc" typeface="Estrangelo Edessa"/><a:font script="Orya" typeface="Kalinga"/><a:font script="Mlym" typeface="Kartika"/><a:font script="Laoo" typeface="DokChampa"/><a:font script="Sinh" typeface="Iskoola Pota"/><a:font script="Mong" typeface="Mongolian Baiti"/><a:font script="Viet" typeface="Arial"/><a:font script="Uigh" typeface="Microsoft Uighur"/><a:font script="Geor" typeface="Sylfaen"/><a:font script="Armn" typeface="Arial"/><a:font script="Bugi" typeface="Leelawadee UI"/><a:font script="Bopo" typeface="Microsoft JhengHei"/><a:font script="Java" typeface="Javanese Text"/><a:font script="Lisu" typeface="Segoe UI"/><a:font script="Mymr" typeface="Myanmar Text"/><a:font script="Nkoo" typeface="Ebrima"/><a:font script="Olck" typeface="Nirmala UI"/><a:font script="Osma" typeface="Ebrima"/><a:font script="Phag" typeface="Phagspa"/><a:font script="Syrn" typeface="Estrangelo Edessa"/><a:font script="Syrj" typeface="Estrangelo Edessa"/><a:font script="Syre" typeface="Estrangelo Edessa"/><a:font script="Sora" typeface="Nirmala UI"/><a:font script="Tale" typeface="Microsoft Tai Le"/><a:font script="Talu" typeface="Microsoft New Tai Lue"/><a:font script="Tfng" typeface="Ebrima"/></a:minorFont></a:fontScheme><a:fmtScheme name="Office"><a:fillStyleLst><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:gradFill rotWithShape="1"><a:gsLst><a:gs pos="0"><a:schemeClr val="phClr"><a:lumMod val="110000"/><a:satMod val="105000"/><a:tint val="67000"/></a:schemeClr></a:gs><a:gs pos="50000"><a:schemeClr val="phClr"><a:lumMod val="105000"/><a:satMod val="103000"/><a:tint val="73000"/></a:schemeClr></a:gs><a:gs pos="100000"><a:schemeClr val="phClr"><a:lumMod val="105000"/><a:satMod val="109000"/><a:tint val="81000"/></a:schemeClr></a:gs></a:gsLst><a:lin ang="5400000" scaled="0"/></a:gradFill><a:gradFill rotWithShape="1"><a:gsLst><a:gs pos="0"><a:schemeClr val="phClr"><a:satMod val="103000"/><a:lumMod val="102000"/><a:tint val="94000"/></a:schemeClr></a:gs><a:gs pos="50000"><a:schemeClr val="phClr"><a:satMod val="110000"/><a:lumMod val="100000"/><a:shade val="100000"/></a:schemeClr></a:gs><a:gs pos="100000"><a:schemeClr val="phClr"><a:lumMod val="99000"/><a:satMod val="120000"/><a:shade val="78000"/></a:schemeClr></a:gs></a:gsLst><a:lin ang="5400000" scaled="0"/></a:gradFill></a:fillStyleLst><a:lnStyleLst><a:ln w="6350" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:prstDash val="solid"/><a:miter lim="800000"/></a:ln><a:ln w="12700" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:prstDash val="solid"/><a:miter lim="800000"/></a:ln><a:ln w="19050" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:prstDash val="solid"/><a:miter lim="800000"/></a:ln></a:lnStyleLst><a:effectStyleLst><a:effectStyle><a:effectLst/></a:effectStyle><a:effectStyle><a:effectLst/></a:effectStyle><a:effectStyle><a:effectLst><a:outerShdw blurRad="57150" dist="19050" dir="5400000" algn="ctr" rotWithShape="0"><a:srgbClr val="000000"><a:alpha val="63000"/></a:srgbClr></a:outerShdw></a:effectLst></a:effectStyle></a:effectStyleLst><a:bgFillStyleLst><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:solidFill><a:schemeClr val="phClr"><a:tint val="95000"/><a:satMod val="170000"/></a:schemeClr></a:solidFill><a:gradFill rotWithShape="1"><a:gsLst><a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="93000"/><a:satMod val="150000"/><a:shade val="98000"/><a:lumMod val="102000"/></a:schemeClr></a:gs><a:gs pos="50000"><a:schemeClr val="phClr"><a:tint val="98000"/><a:satMod val="130000"/><a:shade val="90000"/><a:lumMod val="103000"/></a:schemeClr></a:gs><a:gs pos="100000"><a:schemeClr val="phClr"><a:shade val="63000"/><a:satMod val="120000"/></a:schemeClr></a:gs></a:gsLst><a:lin ang="5400000" scaled="0"/></a:gradFill></a:bgFillStyleLst></a:fmtScheme></a:themeElements><a:objectDefaults/><a:extraClrSchemeLst/><a:extLst><a:ext uri="{05A4C25C-085E-4340-85A3-A5531E510DB2}"><thm15:themeFamily xmlns:thm15="http://schemas.microsoft.com/office/thememl/2012/main" name="Office Theme" id="{62F939B6-93AF-4DB8-9C6B-D6C7DFDC589F}" vid="{4A3C46E8-61CC-4603-A589-7422A47A8E4A}"/></a:ext></a:extLst></a:theme> \ No newline at end of file
diff --git a/extract/test/agstat.pdf.mutool.docx.dir.ref/word/webSettings.xml b/extract/test/agstat.pdf.mutool.docx.dir.ref/word/webSettings.xml
new file mode 100644
index 00000000..629ae06a
--- /dev/null
+++ b/extract/test/agstat.pdf.mutool.docx.dir.ref/word/webSettings.xml
@@ -0,0 +1,2 @@
+<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
+<w:webSettings xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships" xmlns:w="http://schemas.openxmlformats.org/wordprocessingml/2006/main" xmlns:w14="http://schemas.microsoft.com/office/word/2010/wordml" xmlns:w15="http://schemas.microsoft.com/office/word/2012/wordml" xmlns:w16cex="http://schemas.microsoft.com/office/word/2018/wordml/cex" xmlns:w16cid="http://schemas.microsoft.com/office/word/2016/wordml/cid" xmlns:w16="http://schemas.microsoft.com/office/word/2018/wordml" xmlns:w16se="http://schemas.microsoft.com/office/word/2015/wordml/symex" mc:Ignorable="w14 w15 w16se w16cid w16 w16cex"><w:optimizeForBrowser/><w:allowPNG/></w:webSettings> \ No newline at end of file
diff --git a/extract/test/agstat.pdf.mutool.html.ref b/extract/test/agstat.pdf.mutool.html.ref
new file mode 100644
index 00000000..9ca78a94
--- /dev/null
+++ b/extract/test/agstat.pdf.mutool.html.ref
@@ -0,0 +1,122 @@
+<html>
+<body>
+
+
+<p><b> DISTRICT WISE ESTIMATES OF MARKETABLE SURPLUS / DEFICIT OF RICE DURING 2012-13
+</p></b>
+
+<table border="1" style="border-collapse:collapse">
+ <tr>
+ <td rowspan="2"><p><b>Sl. No.</p></b></td><td rowspan="2"><p><b>District</p></b></td><td rowspan="2"><p><b>(Inlakhs)</p><p>for2012-13</p><p>ProjectedPopulation </p></b></td><td rowspan="2"><p><b>Adult </p><p>(Inlakhs)</p><p>Equivalentto88%</p></b></td><td rowspan="2"><p><b>requirement</p><p>(InLakhtonnes)</p><p>otalConsumption</p><p>T (@400gms/adult/day)</p></b></td><td rowspan="2"><p><b>otalRequirement</p><p>(InLakhtonnes)</p><p>(Includingseeds, </p><p>feeds&amp;wastage)</p><p>T</p></b></td><td colspan="3"><p><b>Production (Rice) (In Lakh tonnes)</p></b></td><td colspan="2"><p><b>Surplus/Defi cit (In Lakh tonnes)</p></b></td>
+ </tr>
+ <tr>
+ <td><p><b>Kharif</p></b></td><td><p><b>Rabi</p></b></td><td><p><b>otal</p><p>T</p></b></td><td><p><b>Rice</p></b></td><td><p><b>Paddy</p></b></td>
+ </tr>
+ <tr>
+ <td><p>1</p></td><td><p>Balasore</p></td><td><p>23.65</p></td><td><p>20.81</p></td><td><p>3.04</p></td><td><p>3.47</p></td><td><p>2.78</p></td><td><p>0.86</p></td><td><p>3.64</p></td><td><p>0.17</p></td><td><p>0.25</p></td>
+ </tr>
+ <tr>
+ <td><p>2</p></td><td><p>Bhadrak</p></td><td><p>15.34</p></td><td><p>13.50</p></td><td><p>1.97</p></td><td><p>2.25</p></td><td><p>3.50</p></td><td><p>0.05</p></td><td><p>3.55</p></td><td><p>1.30</p></td><td><p>1.94</p></td>
+ </tr>
+ <tr>
+ <td><p>3</p></td><td><p>Balangir</p></td><td><p>17.01</p></td><td><p>14.97</p></td><td><p>2.19</p></td><td><p>2.50</p></td><td><p>6.23</p></td><td><p>0.10</p></td><td><p>6.33</p></td><td><p>3.83</p></td><td><p>5.72</p></td>
+ </tr>
+ <tr>
+ <td><p>4</p></td><td><p>Subarnapur</p></td><td><p>6.70</p></td><td><p>5.90</p></td><td><p>0.86</p></td><td><p>0.98</p></td><td><p>4.48</p></td><td><p>1.13</p></td><td><p>5.61</p></td><td><p>4.63</p></td><td><p>6.91</p></td>
+ </tr>
+ <tr>
+ <td><p>5</p></td><td><p>Cuttack</p></td><td><p>26.63</p></td><td><p>23.43</p></td><td><p>3.42</p></td><td><p>3.91</p></td><td><p>3.75</p></td><td><p>0.06</p></td><td><p>3.81</p></td><td><p>-0.10</p></td><td><p>-0.15</p></td>
+ </tr>
+ <tr>
+ <td><p>6</p></td><td><p>Jagatsingpur</p></td><td><p>11.49</p></td><td><p>10.11</p></td><td><p>1.48</p></td><td><p>1.69</p></td><td><p>2.10</p></td><td><p>0.02</p></td><td><p>2.12</p></td><td><p>0.43</p></td><td><p>0.64</p></td>
+ </tr>
+ <tr>
+ <td><p>7</p></td><td><p>Jajpur</p></td><td><p>18.59</p></td><td><p>16.36</p></td><td><p>2.39</p></td><td><p>2.73</p></td><td><p>2.13</p></td><td><p>0.04</p></td><td><p>2.17</p></td><td><p>-0.56</p></td><td><p>-0.84</p></td>
+ </tr>
+ <tr>
+ <td><p>8</p></td><td><p>Kendrapara</p></td><td><p>14.62</p></td><td><p>12.87</p></td><td><p>1.88</p></td><td><p>2.15</p></td><td><p>2.60</p></td><td><p>0.07</p></td><td><p>2.67</p></td><td><p>0.52</p></td><td><p>0.78</p></td>
+ </tr>
+ <tr>
+ <td><p>9</p></td><td><p>Dhenkanal</p></td><td><p>12.13</p></td><td><p>10.67</p></td><td><p>1.56</p></td><td><p>1.78</p></td><td><p>2.26</p></td><td><p>0.02</p></td><td><p>2.28</p></td><td><p>0.50</p></td><td><p>0.75</p></td>
+ </tr>
+ <tr>
+ <td><p>10</p></td><td><p>Angul</p></td><td><p>12.93</p></td><td><p>11.38</p></td><td><p>1.66</p></td><td><p>1.90</p></td><td><p>1.73</p></td><td><p>0.02</p></td><td><p>1.75</p></td><td><p>-0.15</p></td><td><p>-0.22</p></td>
+ </tr>
+ <tr>
+ <td><p>11</p></td><td><p>Ganjam</p></td><td><p>35.77</p></td><td><p>31.48</p></td><td><p>4.60</p></td><td><p>5.26</p></td><td><p>4.57</p></td><td><p>0.00</p></td><td><p>4.57</p></td><td><p>-0.69</p></td><td><p>-1.03</p></td>
+ </tr>
+ <tr>
+ <td><p>12</p></td><td><p>Gajapati</p></td><td><p>5.85</p></td><td><p>5.15</p></td><td><p>0.75</p></td><td><p>0.86</p></td><td><p>0.68</p></td><td><p>0.01</p></td><td><p>0.69</p></td><td><p>-0.17</p></td><td><p>-0.25</p></td>
+ </tr>
+ <tr>
+ <td><p>13</p></td><td><p>Kalahandi</p></td><td><p>16.12</p></td><td><p>14.19</p></td><td><p>2.07</p></td><td><p>2.37</p></td><td><p>5.42</p></td><td><p>1.13</p></td><td><p>6.55</p></td><td><p>4.18</p></td><td><p>6.24</p></td>
+ </tr>
+ <tr>
+ <td><p>14</p></td><td><p>Nuapada</p></td><td><p>6.18</p></td><td><p>5.44</p></td><td><p>0.79</p></td><td><p>0.90</p></td><td><p>1.98</p></td><td><p>0.08</p></td><td><p>2.06</p></td><td><p>1.16</p></td><td><p>1.73</p></td>
+ </tr>
+ <tr>
+ <td><p>15</p></td><td><p>Keonjhar</p></td><td><p>18.42</p></td><td><p>16.21</p></td><td><p>2.37</p></td><td><p>2.71</p></td><td><p>2.76</p></td><td><p>0.08</p></td><td><p>2.84</p></td><td><p>0.13</p></td><td><p>0.19</p></td>
+ </tr>
+ <tr>
+ <td><p>16</p></td><td><p>Koraput</p></td><td><p>14.09</p></td><td><p>12.40</p></td><td><p>1.81</p></td><td><p>2.07</p></td><td><p>2.08</p></td><td><p>0.34</p></td><td><p>2.42</p></td><td><p>0.35</p></td><td><p>0.52</p></td>
+ </tr>
+ <tr>
+ <td><p>17</p></td><td><p>Malkangiri</p></td><td><p>6.31</p></td><td><p>5.55</p></td><td><p>0.81</p></td><td><p>0.93</p></td><td><p>1.78</p></td><td><p>0.04</p></td><td><p>1.82</p></td><td><p>0.89</p></td><td><p>1.33</p></td>
+ </tr>
+ <tr>
+ <td><p>18</p></td><td><p>Nabarangpur</p></td><td><p>12.50</p></td><td><p>11.00</p></td><td><p>1.61</p></td><td><p>1.84</p></td><td><p>3.26</p></td><td><p>0.02</p></td><td><p>3.28</p></td><td><p>1.44</p></td><td><p>2.15</p></td>
+ </tr>
+ <tr>
+ <td><p>19</p></td><td><p>Rayagada</p></td><td><p>9.83</p></td><td><p>8.65</p></td><td><p>1.26</p></td><td><p>1.44</p></td><td><p>1.15</p></td><td><p>0.03</p></td><td><p>1.18</p></td><td><p>-0.26</p></td><td><p>-0.39</p></td>
+ </tr>
+ <tr>
+ <td><p>20</p></td><td><p>Mayurbhanj</p></td><td><p>25.61</p></td><td><p>22.54</p></td><td><p>3.29</p></td><td><p>3.76</p></td><td><p>4.90</p></td><td><p>0.06</p></td><td><p>4.96</p></td><td><p>1.20</p></td><td><p>1.79</p></td>
+ </tr>
+ <tr>
+ <td><p>21</p></td><td><p>Kandhamal</p></td><td><p>7.45</p></td><td><p>6.56</p></td><td><p>0.96</p></td><td><p>1.10</p></td><td><p>0.70</p></td><td><p>0.01</p></td><td><p>0.71</p></td><td><p>-0.39</p></td><td><p>-0.58</p></td>
+ </tr>
+ <tr>
+ <td><p>22</p></td><td><p>Boudh</p></td><td><p>4.51</p></td><td><p>3.97</p></td><td><p>0.58</p></td><td><p>0.66</p></td><td><p>1.73</p></td><td><p>0.03</p></td><td><p>1.76</p></td><td><p>1.10</p></td><td><p>1.64</p></td>
+ </tr>
+ <tr>
+ <td><p>23</p></td><td><p>Puri</p></td><td><p>17.29</p></td><td><p>15.22</p></td><td><p>2.22</p></td><td><p>2.54</p></td><td><p>2.45</p></td><td><p>0.99</p></td><td><p>3.44</p></td><td><p>0.90</p></td><td><p>1.34</p></td>
+ </tr>
+ <tr>
+ <td><p>24</p></td><td><p>Khordha</p></td><td><p>23.08</p></td><td><p>20.31</p></td><td><p>2.97</p></td><td><p>3.39</p></td><td><p>2.02</p></td><td><p>0.03</p></td><td><p>2.05</p></td><td><p>-1.34</p></td><td><p>-2.00</p></td>
+ </tr>
+ <tr>
+ <td><p>25</p></td><td><p>Nayagarh</p></td><td><p>9.78</p></td><td><p>8.61</p></td><td><p>1.26</p></td><td><p>1.44</p></td><td><p>2.10</p></td><td><p>0.00</p></td><td><p>2.10</p></td><td><p>0.66</p></td><td><p>0.99</p></td>
+ </tr>
+ <tr>
+ <td><p>26</p></td><td><p>Sambalpur</p></td><td><p>10.62</p></td><td><p>9.35</p></td><td><p>1.37</p></td><td><p>1.57</p></td><td><p>3.45</p></td><td><p>0.71</p></td><td><p>4.16</p></td><td><p>2.59</p></td><td><p>3.87</p></td>
+ </tr>
+ <tr>
+ <td><p>27</p></td><td><p>Bargarh</p></td><td><p>15.00</p></td><td><p>13.20</p></td><td><p>1.93</p></td><td><p>2.21</p></td><td><p>6.87</p></td><td><p>2.65</p></td><td><p>9.52</p></td><td><p>7.31</p></td><td><p>10.91</p></td>
+ </tr>
+ <tr>
+ <td><p>28</p></td><td><p>Deogarh</p></td><td><p>3.18</p></td><td><p>2.80</p></td><td><p>0.41</p></td><td><p>0.47</p></td><td><p>1.12</p></td><td><p>0.07</p></td><td><p>1.19</p></td><td><p>0.72</p></td><td><p>1.07</p></td>
+ </tr>
+ <tr>
+ <td><p>29</p></td><td><p>Jharsuguda</p></td><td><p>5.91</p></td><td><p>5.20</p></td><td><p>0.76</p></td><td><p>0.87</p></td><td><p>0.99</p></td><td><p>0.01</p></td><td><p>1.00</p></td><td><p>0.13</p></td><td><p>0.19</p></td>
+ </tr>
+ <tr>
+ <td><p>30</p></td><td><p>Sundargarh</p></td><td><p>21.21</p></td><td><p>18.66</p></td><td><p>2.72</p></td><td><p>3.11</p></td><td><p>4.72</p></td><td><p>0.02</p></td><td><p>4.74</p></td><td><p>1.63</p></td><td><p>2.43</p></td>
+ </tr>
+ <tr>
+ <td colspan="2"><p><b>ODISHA</p></b></td><td><p><b>427.80</p></b></td><td><p><b>376.49</p></b></td><td><p><b>54.99</p></b></td><td><p><b>62.86</p></b></td><td><p><b>86.29</p></b></td><td><p><b>8.68</p></b></td><td><p><b>94.97</p></b></td><td><p><b>32.11</p></b></td><td><p><b>47.92</p></b></td>
+ </tr>
+</table>
+
+
+
+<table border="1" style="border-collapse:collapse">
+ <tr>
+ <td colspan="2"></td>
+ </tr>
+ <tr>
+ <td colspan="2"><p>87</p></td>
+ </tr>
+</table>
+
+</body>
+</html>
diff --git a/extract/test/agstat.pdf.mutool.odt.dir.ref/META-INF/manifest.xml b/extract/test/agstat.pdf.mutool.odt.dir.ref/META-INF/manifest.xml
new file mode 100644
index 00000000..ec991d79
--- /dev/null
+++ b/extract/test/agstat.pdf.mutool.odt.dir.ref/META-INF/manifest.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<manifest:manifest xmlns:manifest="urn:oasis:names:tc:opendocument:xmlns:manifest:1.0" manifest:version="1.3" xmlns:loext="urn:org:documentfoundation:names:experimental:office:xmlns:loext:1.0">
+ <manifest:file-entry manifest:full-path="/" manifest:version="1.3" manifest:media-type="application/vnd.oasis.opendocument.text"/>
+ <manifest:file-entry manifest:full-path="meta.xml" manifest:media-type="text/xml"/>
+ <manifest:file-entry manifest:full-path="settings.xml" manifest:media-type="text/xml"/>
+ <manifest:file-entry manifest:full-path="Configurations2/" manifest:media-type="application/vnd.sun.xml.ui.configuration"/>
+ <manifest:file-entry manifest:full-path="manifest.rdf" manifest:media-type="application/rdf+xml"/>
+ <manifest:file-entry manifest:full-path="styles.xml" manifest:media-type="text/xml"/>
+ <manifest:file-entry manifest:full-path="content.xml" manifest:media-type="text/xml"/>
+ <manifest:file-entry manifest:full-path="Thumbnails/thumbnail.png" manifest:media-type="image/png"/>
+</manifest:manifest> \ No newline at end of file
diff --git a/extract/test/agstat.pdf.mutool.odt.dir.ref/Thumbnails/thumbnail.png b/extract/test/agstat.pdf.mutool.odt.dir.ref/Thumbnails/thumbnail.png
new file mode 100644
index 00000000..0dd1608e
--- /dev/null
+++ b/extract/test/agstat.pdf.mutool.odt.dir.ref/Thumbnails/thumbnail.png
@@ -0,0 +1,2 @@
+PNG
+
diff --git a/extract/test/agstat.pdf.mutool.odt.dir.ref/content.xml b/extract/test/agstat.pdf.mutool.odt.dir.ref/content.xml
new file mode 100644
index 00000000..4862089e
--- /dev/null
+++ b/extract/test/agstat.pdf.mutool.odt.dir.ref/content.xml
@@ -0,0 +1,1916 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<office:document-content xmlns:css3t="http://www.w3.org/TR/css3-text/" xmlns:grddl="http://www.w3.org/2003/g/data-view#" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xforms="http://www.w3.org/2002/xforms" xmlns:dom="http://www.w3.org/2001/xml-events" xmlns:script="urn:oasis:names:tc:opendocument:xmlns:script:1.0" xmlns:form="urn:oasis:names:tc:opendocument:xmlns:form:1.0" xmlns:math="http://www.w3.org/1998/Math/MathML" xmlns:number="urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0" xmlns:field="urn:openoffice:names:experimental:ooo-ms-interop:xmlns:field:1.0" xmlns:meta="urn:oasis:names:tc:opendocument:xmlns:meta:1.0" xmlns:loext="urn:org:documentfoundation:names:experimental:office:xmlns:loext:1.0" xmlns:officeooo="http://openoffice.org/2009/office" xmlns:table="urn:oasis:names:tc:opendocument:xmlns:table:1.0" xmlns:chart="urn:oasis:names:tc:opendocument:xmlns:chart:1.0" xmlns:tableooo="http://openoffice.org/2009/table" xmlns:draw="urn:oasis:names:tc:opendocument:xmlns:drawing:1.0" xmlns:rpt="http://openoffice.org/2005/report" xmlns:dr3d="urn:oasis:names:tc:opendocument:xmlns:dr3d:1.0" xmlns:of="urn:oasis:names:tc:opendocument:xmlns:of:1.2" xmlns:text="urn:oasis:names:tc:opendocument:xmlns:text:1.0" xmlns:style="urn:oasis:names:tc:opendocument:xmlns:style:1.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:calcext="urn:org:documentfoundation:names:experimental:calc:xmlns:calcext:1.0" xmlns:oooc="http://openoffice.org/2004/calc" xmlns:drawooo="http://openoffice.org/2010/draw" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:ooo="http://openoffice.org/2004/office" xmlns:ooow="http://openoffice.org/2004/writer" xmlns:fo="urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0" xmlns:formx="urn:openoffice:names:experimental:ooxml-odf-interop:xmlns:form:1.0" xmlns:svg="urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0" xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" office:version="1.3"><office:scripts/><office:font-face-decls><style:font-face style:name="Liberation Serif" svg:font-family="&apos;Liberation Serif&apos;" style:font-family-generic="roman" style:font-pitch="variable"/><style:font-face style:name="Liberation Sans" svg:font-family="&apos;Liberation Sans&apos;" style:font-family-generic="swiss" style:font-pitch="variable"/><style:font-face style:name="Unifont" svg:font-family="Unifont" style:font-family-generic="system" style:font-pitch="variable"/></office:font-face-decls><office:automatic-styles><style:style style:name="T13" style:family="text"><style:text-properties style:font-name="ArialMT" fo:font-size="11.00pt" fo:font-weight="normal" fo:font-style="normal" /></style:style><style:style style:name="T14" style:family="text"><style:text-properties style:font-name="ArialMT" fo:font-size="10.00pt" fo:font-weight="normal" fo:font-style="normal" /></style:style><style:style style:name="T11" style:family="text"><style:text-properties style:font-name="Arial-BoldMT" fo:font-size="12.00pt" fo:font-weight="bold" fo:font-style="normal" /></style:style><style:style style:name="T12" style:family="text"><style:text-properties style:font-name="Arial-BoldMT" fo:font-size="11.00pt" fo:font-weight="bold" fo:font-style="normal" /></style:style><style:style style:name="T15" style:family="text"><style:text-properties style:font-name="Arial-BoldMT" fo:font-size="10.00pt" fo:font-weight="bold" fo:font-style="normal" /></style:style><style:style style:name="gr1" style:family="graphic">
+<style:graphic-properties draw:stroke="none" svg:stroke-color="#000000" draw:fill="none" draw:fill-color="#ffffff" fo:min-height="1.9898in" style:run-through="foreground" style:wrap="run-through" style:number-wrapped-paragraphs="no-limit" style:vertical-pos="from-top" style:vertical-rel="paragraph" style:horizontal-pos="from-left" style:horizontal-rel="paragraph" />
+<style:paragraph-properties style:writing-mode="lr-tb"/>
+</style:style>
+<style:style style:name="fr1" style:family="graphic" style:parent-style-name="Graphics">
+<style:graphic-properties fo:margin-left="0in" fo:margin-right="0in" fo:margin-top="0in" fo:margin-bottom="0in" style:vertical-pos="top" style:vertical-rel="baseline" fo:background-color="transparent" draw:fill="none" draw:fill-color="#ffffff" fo:padding="0in" fo:border="none" style:mirror="none" fo:clip="rect(0in, 0in, 0in, 0in)" draw:luminance="0%" draw:contrast="0%" draw:red="0%" draw:green="0%" draw:blue="0%" draw:gamma="100%" draw:color-inversion="false" draw:image-opacity="100%" draw:color-mode="standard"/>
+</style:style>
+</office:automatic-styles>
+<style:style style:name="extract.table" style:family="table"/>
+<style:style style:name="extract.table.column" style:family="table-column"/>
+<office:body><office:text><text:sequence-decls><text:sequence-decl text:display-outline-level="0" text:name="Illustration"/><text:sequence-decl text:display-outline-level="0" text:name="Table"/><text:sequence-decl text:display-outline-level="0" text:name="Text"/><text:sequence-decl text:display-outline-level="0" text:name="Drawing"/><text:sequence-decl text:display-outline-level="0" text:name="Figure"/></text:sequence-decls><text:p text:style-name="Standard"/>
+
+<text:p><text:span text:style-name="T11"> DISTRICT WISE ESTIMATES OF MARKETABLE SURPLUS / DEFICIT OF RICE DURING 2012-13</text:span></text:p>
+ <table:table text:style-name="extract.table" table:name="extract.table.1">
+ <table:table-columns>
+ <table:table-column table:style-name="extract.table.column"/>
+ <table:table-column table:style-name="extract.table.column"/>
+ <table:table-column table:style-name="extract.table.column"/>
+ <table:table-column table:style-name="extract.table.column"/>
+ <table:table-column table:style-name="extract.table.column"/>
+ <table:table-column table:style-name="extract.table.column"/>
+ <table:table-column table:style-name="extract.table.column"/>
+ <table:table-column table:style-name="extract.table.column"/>
+ <table:table-column table:style-name="extract.table.column"/>
+ <table:table-column table:style-name="extract.table.column"/>
+ <table:table-column table:style-name="extract.table.column"/>
+ </table:table-columns>
+ <table:table-row>
+ <table:table-cell table:number-rows-spanned="2">
+
+
+<text:p><text:span text:style-name="T12">Sl. No.</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell table:number-rows-spanned="2">
+
+
+<text:p><text:span text:style-name="T12">District</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell table:number-rows-spanned="2">
+
+
+<text:p><text:span text:style-name="T12">(Inlakhs)</text:span></text:p>
+
+<text:p><text:span text:style-name="T12">for2012-13</text:span></text:p>
+
+<text:p><text:span text:style-name="T12">ProjectedPopulation </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell table:number-rows-spanned="2">
+
+
+<text:p><text:span text:style-name="T12">Adult </text:span></text:p>
+
+<text:p><text:span text:style-name="T12">(Inlakhs)</text:span></text:p>
+
+<text:p><text:span text:style-name="T12">Equivalentto88%</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell table:number-rows-spanned="2">
+
+
+<text:p><text:span text:style-name="T12">requirement</text:span></text:p>
+
+<text:p><text:span text:style-name="T12">(InLakhtonnes)</text:span></text:p>
+
+<text:p><text:span text:style-name="T12">otalConsumption</text:span></text:p>
+
+<text:p><text:span text:style-name="T12">T (@400gms/adult/day)</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell table:number-rows-spanned="2">
+
+
+<text:p><text:span text:style-name="T12">otalRequirement</text:span></text:p>
+
+<text:p><text:span text:style-name="T12">(InLakhtonnes)</text:span></text:p>
+
+<text:p><text:span text:style-name="T12">(Includingseeds, </text:span></text:p>
+
+<text:p><text:span text:style-name="T12">feeds&amp;wastage)</text:span></text:p>
+
+<text:p><text:span text:style-name="T12">T</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell table:number-columns-spanned="3">
+
+
+<text:p><text:span text:style-name="T12">Production (Rice) (In Lakh tonnes)</text:span></text:p>
+ </table:table-cell>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:table-cell table:number-columns-spanned="2">
+
+
+<text:p><text:span text:style-name="T12">Surplus/Defi cit (In Lakh tonnes)</text:span></text:p>
+ </table:table-cell>
+ <table:covered-table-cell/>
+ </table:table-row>
+ <table:table-row>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T12">Kharif</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T12">Rabi</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T12">otal</text:span></text:p>
+
+<text:p><text:span text:style-name="T12">T</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T12">Rice</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T12">Paddy</text:span></text:p>
+ </table:table-cell>
+ </table:table-row>
+ <table:table-row>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">1</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">Balasore</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">23.65</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">20.81</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">3.04</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">3.47</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">2.78</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">0.86</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">3.64</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">0.17</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">0.25</text:span></text:p>
+ </table:table-cell>
+ </table:table-row>
+ <table:table-row>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">2</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">Bhadrak</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">15.34</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">13.50</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">1.97</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">2.25</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">3.50</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">0.05</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">3.55</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">1.30</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">1.94</text:span></text:p>
+ </table:table-cell>
+ </table:table-row>
+ <table:table-row>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">3</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">Balangir</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">17.01</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">14.97</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">2.19</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">2.50</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">6.23</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">0.10</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">6.33</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">3.83</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">5.72</text:span></text:p>
+ </table:table-cell>
+ </table:table-row>
+ <table:table-row>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">4</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">Subarnapur</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">6.70</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">5.90</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">0.86</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">0.98</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">4.48</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">1.13</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">5.61</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">4.63</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">6.91</text:span></text:p>
+ </table:table-cell>
+ </table:table-row>
+ <table:table-row>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">5</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">Cuttack</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">26.63</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">23.43</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">3.42</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">3.91</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">3.75</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">0.06</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">3.81</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">-0.10</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">-0.15</text:span></text:p>
+ </table:table-cell>
+ </table:table-row>
+ <table:table-row>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">6</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">Jagatsingpur</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">11.49</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">10.11</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">1.48</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">1.69</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">2.10</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">0.02</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">2.12</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">0.43</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">0.64</text:span></text:p>
+ </table:table-cell>
+ </table:table-row>
+ <table:table-row>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">7</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">Jajpur</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">18.59</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">16.36</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">2.39</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">2.73</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">2.13</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">0.04</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">2.17</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">-0.56</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">-0.84</text:span></text:p>
+ </table:table-cell>
+ </table:table-row>
+ <table:table-row>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">8</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">Kendrapara</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">14.62</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">12.87</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">1.88</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">2.15</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">2.60</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">0.07</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">2.67</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">0.52</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">0.78</text:span></text:p>
+ </table:table-cell>
+ </table:table-row>
+ <table:table-row>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">9</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">Dhenkanal</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">12.13</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">10.67</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">1.56</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">1.78</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">2.26</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">0.02</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">2.28</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">0.50</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">0.75</text:span></text:p>
+ </table:table-cell>
+ </table:table-row>
+ <table:table-row>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">10</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">Angul</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">12.93</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">11.38</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">1.66</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">1.90</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">1.73</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">0.02</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">1.75</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">-0.15</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">-0.22</text:span></text:p>
+ </table:table-cell>
+ </table:table-row>
+ <table:table-row>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">11</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">Ganjam</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">35.77</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">31.48</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">4.60</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">5.26</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">4.57</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">0.00</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">4.57</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">-0.69</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">-1.03</text:span></text:p>
+ </table:table-cell>
+ </table:table-row>
+ <table:table-row>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">12</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">Gajapati</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">5.85</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">5.15</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">0.75</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">0.86</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">0.68</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">0.01</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">0.69</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">-0.17</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">-0.25</text:span></text:p>
+ </table:table-cell>
+ </table:table-row>
+ <table:table-row>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">13</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">Kalahandi</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">16.12</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">14.19</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">2.07</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">2.37</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">5.42</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">1.13</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">6.55</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">4.18</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">6.24</text:span></text:p>
+ </table:table-cell>
+ </table:table-row>
+ <table:table-row>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">14</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">Nuapada</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">6.18</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">5.44</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">0.79</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">0.90</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">1.98</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">0.08</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">2.06</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">1.16</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">1.73</text:span></text:p>
+ </table:table-cell>
+ </table:table-row>
+ <table:table-row>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">15</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">Keonjhar</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">18.42</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">16.21</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">2.37</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">2.71</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">2.76</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">0.08</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">2.84</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">0.13</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">0.19</text:span></text:p>
+ </table:table-cell>
+ </table:table-row>
+ <table:table-row>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">16</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">Koraput</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">14.09</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">12.40</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">1.81</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">2.07</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">2.08</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">0.34</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">2.42</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">0.35</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">0.52</text:span></text:p>
+ </table:table-cell>
+ </table:table-row>
+ <table:table-row>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">17</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">Malkangiri</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">6.31</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">5.55</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">0.81</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">0.93</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">1.78</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">0.04</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">1.82</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">0.89</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">1.33</text:span></text:p>
+ </table:table-cell>
+ </table:table-row>
+ <table:table-row>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">18</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">Nabarangpur</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">12.50</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">11.00</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">1.61</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">1.84</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">3.26</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">0.02</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">3.28</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">1.44</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">2.15</text:span></text:p>
+ </table:table-cell>
+ </table:table-row>
+ <table:table-row>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">19</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">Rayagada</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">9.83</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">8.65</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">1.26</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">1.44</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">1.15</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">0.03</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">1.18</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">-0.26</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">-0.39</text:span></text:p>
+ </table:table-cell>
+ </table:table-row>
+ <table:table-row>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">20</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">Mayurbhanj</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">25.61</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">22.54</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">3.29</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">3.76</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">4.90</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">0.06</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">4.96</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">1.20</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">1.79</text:span></text:p>
+ </table:table-cell>
+ </table:table-row>
+ <table:table-row>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">21</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">Kandhamal</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">7.45</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">6.56</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">0.96</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">1.10</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">0.70</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">0.01</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">0.71</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">-0.39</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">-0.58</text:span></text:p>
+ </table:table-cell>
+ </table:table-row>
+ <table:table-row>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">22</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">Boudh</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">4.51</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">3.97</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">0.58</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">0.66</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">1.73</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">0.03</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">1.76</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">1.10</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">1.64</text:span></text:p>
+ </table:table-cell>
+ </table:table-row>
+ <table:table-row>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">23</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">Puri</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">17.29</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">15.22</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">2.22</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">2.54</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">2.45</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">0.99</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">3.44</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">0.90</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">1.34</text:span></text:p>
+ </table:table-cell>
+ </table:table-row>
+ <table:table-row>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">24</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">Khordha</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">23.08</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">20.31</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">2.97</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">3.39</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">2.02</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">0.03</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">2.05</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">-1.34</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">-2.00</text:span></text:p>
+ </table:table-cell>
+ </table:table-row>
+ <table:table-row>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">25</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">Nayagarh</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">9.78</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">8.61</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">1.26</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">1.44</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">2.10</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">0.00</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">2.10</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">0.66</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">0.99</text:span></text:p>
+ </table:table-cell>
+ </table:table-row>
+ <table:table-row>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">26</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">Sambalpur</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">10.62</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">9.35</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">1.37</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">1.57</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">3.45</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">0.71</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">4.16</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">2.59</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">3.87</text:span></text:p>
+ </table:table-cell>
+ </table:table-row>
+ <table:table-row>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">27</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">Bargarh</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">15.00</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">13.20</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">1.93</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">2.21</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">6.87</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">2.65</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">9.52</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">7.31</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">10.91</text:span></text:p>
+ </table:table-cell>
+ </table:table-row>
+ <table:table-row>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">28</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">Deogarh</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">3.18</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">2.80</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">0.41</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">0.47</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">1.12</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">0.07</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">1.19</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">0.72</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">1.07</text:span></text:p>
+ </table:table-cell>
+ </table:table-row>
+ <table:table-row>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">29</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">Jharsuguda</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">5.91</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">5.20</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">0.76</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">0.87</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">0.99</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">0.01</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">1.00</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">0.13</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">0.19</text:span></text:p>
+ </table:table-cell>
+ </table:table-row>
+ <table:table-row>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">30</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">Sundargarh</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">21.21</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">18.66</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">2.72</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">3.11</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">4.72</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">0.02</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">4.74</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">1.63</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">2.43</text:span></text:p>
+ </table:table-cell>
+ </table:table-row>
+ <table:table-row>
+ <table:table-cell table:number-columns-spanned="2">
+
+
+<text:p><text:span text:style-name="T15">ODISHA</text:span></text:p>
+ </table:table-cell>
+ <table:covered-table-cell/>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T15">427.80</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T15">376.49</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T15">54.99</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T15">62.86</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T15">86.29</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T15">8.68</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T15">94.97</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T15">32.11</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T15">47.92</text:span></text:p>
+ </table:table-cell>
+ </table:table-row>
+ </table:table>
+
+ <table:table text:style-name="extract.table" table:name="extract.table.2">
+ <table:table-columns>
+ <table:table-column table:style-name="extract.table.column"/>
+ <table:table-column table:style-name="extract.table.column"/>
+ </table:table-columns>
+ <table:table-row>
+ <table:table-cell table:number-columns-spanned="2">
+
+ </table:table-cell>
+ <table:covered-table-cell/>
+ </table:table-row>
+ <table:table-row>
+ <table:table-cell table:number-columns-spanned="2">
+
+
+<text:p><text:span text:style-name="T14">87</text:span></text:p>
+ </table:table-cell>
+ <table:covered-table-cell/>
+ </table:table-row>
+ </table:table>
+</office:text></office:body></office:document-content> \ No newline at end of file
diff --git a/extract/test/agstat.pdf.mutool.odt.dir.ref/manifest.rdf b/extract/test/agstat.pdf.mutool.odt.dir.ref/manifest.rdf
new file mode 100644
index 00000000..927e206b
--- /dev/null
+++ b/extract/test/agstat.pdf.mutool.odt.dir.ref/manifest.rdf
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="utf-8"?>
+<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
+ <rdf:Description rdf:about="styles.xml">
+ <rdf:type rdf:resource="http://docs.oasis-open.org/ns/office/1.2/meta/odf#StylesFile"/>
+ </rdf:Description>
+ <rdf:Description rdf:about="">
+ <ns0:hasPart xmlns:ns0="http://docs.oasis-open.org/ns/office/1.2/meta/pkg#" rdf:resource="styles.xml"/>
+ </rdf:Description>
+ <rdf:Description rdf:about="content.xml">
+ <rdf:type rdf:resource="http://docs.oasis-open.org/ns/office/1.2/meta/odf#ContentFile"/>
+ </rdf:Description>
+ <rdf:Description rdf:about="">
+ <ns0:hasPart xmlns:ns0="http://docs.oasis-open.org/ns/office/1.2/meta/pkg#" rdf:resource="content.xml"/>
+ </rdf:Description>
+ <rdf:Description rdf:about="">
+ <rdf:type rdf:resource="http://docs.oasis-open.org/ns/office/1.2/meta/pkg#Document"/>
+ </rdf:Description>
+</rdf:RDF>
diff --git a/extract/test/agstat.pdf.mutool.odt.dir.ref/meta.xml b/extract/test/agstat.pdf.mutool.odt.dir.ref/meta.xml
new file mode 100644
index 00000000..6b42561e
--- /dev/null
+++ b/extract/test/agstat.pdf.mutool.odt.dir.ref/meta.xml
@@ -0,0 +1,2 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<office:document-meta xmlns:grddl="http://www.w3.org/2003/g/data-view#" xmlns:meta="urn:oasis:names:tc:opendocument:xmlns:meta:1.0" xmlns:ooo="http://openoffice.org/2004/office" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" office:version="1.3"><office:meta><meta:creation-date>2021-04-05T17:06:57.937137058</meta:creation-date><meta:generator>LibreOffice/7.0.1.2$OpenBSD_X86_64 LibreOffice_project/00$Build-2</meta:generator><dc:date>2021-04-06T17:14:51.409959656</dc:date><meta:editing-duration>PT20S</meta:editing-duration><meta:editing-cycles>1</meta:editing-cycles><meta:document-statistic meta:table-count="0" meta:image-count="0" meta:object-count="0" meta:page-count="1" meta:paragraph-count="0" meta:word-count="0" meta:character-count="0" meta:non-whitespace-character-count="0"/></office:meta></office:document-meta> \ No newline at end of file
diff --git a/extract/test/agstat.pdf.mutool.odt.dir.ref/mimetype b/extract/test/agstat.pdf.mutool.odt.dir.ref/mimetype
new file mode 100644
index 00000000..2e95b81c
--- /dev/null
+++ b/extract/test/agstat.pdf.mutool.odt.dir.ref/mimetype
@@ -0,0 +1 @@
+application/vnd.oasis.opendocument.text \ No newline at end of file
diff --git a/extract/test/agstat.pdf.mutool.odt.dir.ref/settings.xml b/extract/test/agstat.pdf.mutool.odt.dir.ref/settings.xml
new file mode 100644
index 00000000..35a8138f
--- /dev/null
+++ b/extract/test/agstat.pdf.mutool.odt.dir.ref/settings.xml
@@ -0,0 +1,2 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<office:document-settings xmlns:config="urn:oasis:names:tc:opendocument:xmlns:config:1.0" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:ooo="http://openoffice.org/2004/office" xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" office:version="1.3"><office:settings><config:config-item-set config:name="ooo:view-settings"><config:config-item config:name="ViewAreaTop" config:type="long">0</config:config-item><config:config-item config:name="ViewAreaLeft" config:type="long">0</config:config-item><config:config-item config:name="ViewAreaWidth" config:type="long">26275</config:config-item><config:config-item config:name="ViewAreaHeight" config:type="long">19502</config:config-item><config:config-item config:name="ShowRedlineChanges" config:type="boolean">true</config:config-item><config:config-item config:name="InBrowseMode" config:type="boolean">false</config:config-item><config:config-item-map-indexed config:name="Views"><config:config-item-map-entry><config:config-item config:name="ViewId" config:type="string">view2</config:config-item><config:config-item config:name="ViewLeft" config:type="long">4343</config:config-item><config:config-item config:name="ViewTop" config:type="long">2501</config:config-item><config:config-item config:name="VisibleLeft" config:type="long">0</config:config-item><config:config-item config:name="VisibleTop" config:type="long">0</config:config-item><config:config-item config:name="VisibleRight" config:type="long">26273</config:config-item><config:config-item config:name="VisibleBottom" config:type="long">19500</config:config-item><config:config-item config:name="ZoomType" config:type="short">0</config:config-item><config:config-item config:name="ViewLayoutColumns" config:type="short">1</config:config-item><config:config-item config:name="ViewLayoutBookMode" config:type="boolean">false</config:config-item><config:config-item config:name="ZoomFactor" config:type="short">100</config:config-item><config:config-item config:name="IsSelectedFrame" config:type="boolean">false</config:config-item><config:config-item config:name="AnchoredTextOverflowLegacy" config:type="boolean">false</config:config-item></config:config-item-map-entry></config:config-item-map-indexed></config:config-item-set><config:config-item-set config:name="ooo:configuration-settings"><config:config-item config:name="PrintBlackFonts" config:type="boolean">false</config:config-item><config:config-item config:name="PrintReversed" config:type="boolean">false</config:config-item><config:config-item config:name="SaveThumbnail" config:type="boolean">true</config:config-item><config:config-item config:name="EmbedFonts" config:type="boolean">false</config:config-item><config:config-item config:name="PrintControls" config:type="boolean">true</config:config-item><config:config-item config:name="OutlineLevelYieldsNumbering" config:type="boolean">false</config:config-item><config:config-item config:name="PrintPageBackground" config:type="boolean">true</config:config-item><config:config-item config:name="PrintAnnotationMode" config:type="short">0</config:config-item><config:config-item config:name="PrintGraphics" config:type="boolean">true</config:config-item><config:config-item config:name="EmbeddedDatabaseName" config:type="string"/><config:config-item config:name="ProtectForm" config:type="boolean">false</config:config-item><config:config-item config:name="PrintLeftPages" config:type="boolean">true</config:config-item><config:config-item config:name="PrintProspect" config:type="boolean">false</config:config-item><config:config-item config:name="PrintHiddenText" config:type="boolean">false</config:config-item><config:config-item config:name="PrintRightPages" config:type="boolean">true</config:config-item><config:config-item config:name="PrintFaxName" config:type="string"/><config:config-item config:name="PrintPaperFromSetup" config:type="boolean">false</config:config-item><config:config-item config:name="TabsRelativeToIndent" config:type="boolean">true</config:config-item><config:config-item config:name="RedlineProtectionKey" config:type="base64Binary"/><config:config-item config:name="PrintTextPlaceholder" config:type="boolean">false</config:config-item><config:config-item config:name="MathBaselineAlignment" config:type="boolean">true</config:config-item><config:config-item config:name="ProtectBookmarks" config:type="boolean">false</config:config-item><config:config-item config:name="IgnoreTabsAndBlanksForLineCalculation" config:type="boolean">false</config:config-item><config:config-item config:name="ContinuousEndnotes" config:type="boolean">false</config:config-item><config:config-item config:name="FieldAutoUpdate" config:type="boolean">true</config:config-item><config:config-item config:name="EmptyDbFieldHidesPara" config:type="boolean">true</config:config-item><config:config-item config:name="ApplyParagraphMarkFormatToNumbering" config:type="boolean">false</config:config-item><config:config-item config:name="PrintEmptyPages" config:type="boolean">true</config:config-item><config:config-item config:name="TabOverMargin" config:type="boolean">false</config:config-item><config:config-item config:name="EmbedAsianScriptFonts" config:type="boolean">true</config:config-item><config:config-item config:name="EmbedLatinScriptFonts" config:type="boolean">true</config:config-item><config:config-item config:name="DisableOffPagePositioning" config:type="boolean">false</config:config-item><config:config-item config:name="EmbedOnlyUsedFonts" config:type="boolean">false</config:config-item><config:config-item config:name="MsWordCompMinLineHeightByFly" config:type="boolean">false</config:config-item><config:config-item config:name="SurroundTextWrapSmall" config:type="boolean">false</config:config-item><config:config-item config:name="BackgroundParaOverDrawings" config:type="boolean">false</config:config-item><config:config-item config:name="ClippedPictures" config:type="boolean">false</config:config-item><config:config-item config:name="FloattableNomargins" config:type="boolean">false</config:config-item><config:config-item config:name="UnbreakableNumberings" config:type="boolean">false</config:config-item><config:config-item config:name="EmbedSystemFonts" config:type="boolean">false</config:config-item><config:config-item config:name="TabOverflow" config:type="boolean">true</config:config-item><config:config-item config:name="PrintTables" config:type="boolean">true</config:config-item><config:config-item config:name="PrintDrawings" config:type="boolean">true</config:config-item><config:config-item config:name="ConsiderTextWrapOnObjPos" config:type="boolean">false</config:config-item><config:config-item config:name="PrintSingleJobs" config:type="boolean">false</config:config-item><config:config-item config:name="SmallCapsPercentage66" config:type="boolean">false</config:config-item><config:config-item config:name="CollapseEmptyCellPara" config:type="boolean">true</config:config-item><config:config-item config:name="HeaderSpacingBelowLastPara" config:type="boolean">false</config:config-item><config:config-item config:name="RsidRoot" config:type="int">2052946</config:config-item><config:config-item config:name="PrinterSetup" config:type="base64Binary"/><config:config-item config:name="CurrentDatabaseCommand" config:type="string"/><config:config-item config:name="AlignTabStopPosition" config:type="boolean">true</config:config-item><config:config-item config:name="ClipAsCharacterAnchoredWriterFlyFrames" config:type="boolean">false</config:config-item><config:config-item config:name="DoNotCaptureDrawObjsOnPage" config:type="boolean">false</config:config-item><config:config-item config:name="SaveGlobalDocumentLinks" config:type="boolean">false</config:config-item><config:config-item config:name="CurrentDatabaseCommandType" config:type="int">0</config:config-item><config:config-item config:name="LoadReadonly" config:type="boolean">false</config:config-item><config:config-item config:name="DoNotResetParaAttrsForNumFont" config:type="boolean">false</config:config-item><config:config-item config:name="StylesNoDefault" config:type="boolean">false</config:config-item><config:config-item config:name="LinkUpdateMode" config:type="short">1</config:config-item><config:config-item config:name="DoNotJustifyLinesWithManualBreak" config:type="boolean">false</config:config-item><config:config-item config:name="PropLineSpacingShrinksFirstLine" config:type="boolean">true</config:config-item><config:config-item config:name="TabAtLeftIndentForParagraphsInList" config:type="boolean">false</config:config-item><config:config-item config:name="ProtectFields" config:type="boolean">false</config:config-item><config:config-item config:name="UnxForceZeroExtLeading" config:type="boolean">false</config:config-item><config:config-item config:name="CurrentDatabaseDataSource" config:type="string"/><config:config-item config:name="UseFormerTextWrapping" config:type="boolean">false</config:config-item><config:config-item config:name="UseFormerLineSpacing" config:type="boolean">false</config:config-item><config:config-item config:name="AllowPrintJobCancel" config:type="boolean">true</config:config-item><config:config-item config:name="SubtractFlysAnchoredAtFlys" config:type="boolean">false</config:config-item><config:config-item config:name="AddParaSpacingToTableCells" config:type="boolean">true</config:config-item><config:config-item config:name="AddExternalLeading" config:type="boolean">true</config:config-item><config:config-item config:name="Rsid" config:type="int">2178852</config:config-item><config:config-item config:name="AddVerticalFrameOffsets" config:type="boolean">false</config:config-item><config:config-item config:name="TreatSingleColumnBreakAsPageBreak" config:type="boolean">false</config:config-item><config:config-item config:name="AddFrameOffsets" config:type="boolean">false</config:config-item><config:config-item config:name="IsLabelDocument" config:type="boolean">false</config:config-item><config:config-item config:name="MsWordCompTrailingBlanks" config:type="boolean">false</config:config-item><config:config-item config:name="PrinterPaperFromSetup" config:type="boolean">false</config:config-item><config:config-item config:name="IgnoreFirstLineIndentInNumbering" config:type="boolean">false</config:config-item><config:config-item config:name="PrinterName" config:type="string"/><config:config-item config:name="IsKernAsianPunctuation" config:type="boolean">false</config:config-item><config:config-item config:name="PrinterIndependentLayout" config:type="string">high-resolution</config:config-item><config:config-item config:name="TableRowKeep" config:type="boolean">false</config:config-item><config:config-item config:name="UpdateFromTemplate" config:type="boolean">true</config:config-item><config:config-item config:name="EmbedComplexScriptFonts" config:type="boolean">true</config:config-item><config:config-item config:name="UseOldPrinterMetrics" config:type="boolean">false</config:config-item><config:config-item config:name="InvertBorderSpacing" config:type="boolean">false</config:config-item><config:config-item config:name="PrintProspectRTL" config:type="boolean">false</config:config-item><config:config-item config:name="ApplyUserData" config:type="boolean">true</config:config-item><config:config-item config:name="AddParaTableSpacingAtStart" config:type="boolean">true</config:config-item><config:config-item config:name="SaveVersionOnClose" config:type="boolean">false</config:config-item><config:config-item config:name="CharacterCompressionType" config:type="short">0</config:config-item><config:config-item config:name="UseOldNumbering" config:type="boolean">false</config:config-item><config:config-item config:name="UseFormerObjectPositioning" config:type="boolean">false</config:config-item><config:config-item config:name="ChartAutoUpdate" config:type="boolean">true</config:config-item><config:config-item config:name="AddParaTableSpacing" config:type="boolean">true</config:config-item></config:config-item-set></office:settings></office:document-settings> \ No newline at end of file
diff --git a/extract/test/agstat.pdf.mutool.odt.dir.ref/styles.xml b/extract/test/agstat.pdf.mutool.odt.dir.ref/styles.xml
new file mode 100644
index 00000000..91403c4e
--- /dev/null
+++ b/extract/test/agstat.pdf.mutool.odt.dir.ref/styles.xml
@@ -0,0 +1,2 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<office:document-styles xmlns:css3t="http://www.w3.org/TR/css3-text/" xmlns:grddl="http://www.w3.org/2003/g/data-view#" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:dom="http://www.w3.org/2001/xml-events" xmlns:script="urn:oasis:names:tc:opendocument:xmlns:script:1.0" xmlns:form="urn:oasis:names:tc:opendocument:xmlns:form:1.0" xmlns:math="http://www.w3.org/1998/Math/MathML" xmlns:number="urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0" xmlns:field="urn:openoffice:names:experimental:ooo-ms-interop:xmlns:field:1.0" xmlns:meta="urn:oasis:names:tc:opendocument:xmlns:meta:1.0" xmlns:loext="urn:org:documentfoundation:names:experimental:office:xmlns:loext:1.0" xmlns:officeooo="http://openoffice.org/2009/office" xmlns:table="urn:oasis:names:tc:opendocument:xmlns:table:1.0" xmlns:chart="urn:oasis:names:tc:opendocument:xmlns:chart:1.0" xmlns:tableooo="http://openoffice.org/2009/table" xmlns:draw="urn:oasis:names:tc:opendocument:xmlns:drawing:1.0" xmlns:rpt="http://openoffice.org/2005/report" xmlns:dr3d="urn:oasis:names:tc:opendocument:xmlns:dr3d:1.0" xmlns:of="urn:oasis:names:tc:opendocument:xmlns:of:1.2" xmlns:text="urn:oasis:names:tc:opendocument:xmlns:text:1.0" xmlns:style="urn:oasis:names:tc:opendocument:xmlns:style:1.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:calcext="urn:org:documentfoundation:names:experimental:calc:xmlns:calcext:1.0" xmlns:oooc="http://openoffice.org/2004/calc" xmlns:drawooo="http://openoffice.org/2010/draw" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:ooo="http://openoffice.org/2004/office" xmlns:ooow="http://openoffice.org/2004/writer" xmlns:fo="urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0" xmlns:svg="urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0" xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" office:version="1.3"><office:font-face-decls><style:font-face style:name="Liberation Serif" svg:font-family="&apos;Liberation Serif&apos;" style:font-family-generic="roman" style:font-pitch="variable"/><style:font-face style:name="Liberation Sans" svg:font-family="&apos;Liberation Sans&apos;" style:font-family-generic="swiss" style:font-pitch="variable"/><style:font-face style:name="Unifont" svg:font-family="Unifont" style:font-family-generic="system" style:font-pitch="variable"/></office:font-face-decls><office:styles><style:default-style style:family="graphic"><style:graphic-properties svg:stroke-color="#3465a4" draw:fill-color="#729fcf" fo:wrap-option="no-wrap" draw:shadow-offset-x="0.1181in" draw:shadow-offset-y="0.1181in" draw:start-line-spacing-horizontal="0.1114in" draw:start-line-spacing-vertical="0.1114in" draw:end-line-spacing-horizontal="0.1114in" draw:end-line-spacing-vertical="0.1114in" style:flow-with-text="false"/><style:paragraph-properties style:text-autospace="ideograph-alpha" style:line-break="strict" style:font-independent-line-spacing="false"><style:tab-stops/></style:paragraph-properties><style:text-properties style:use-window-font-color="true" loext:opacity="0%" style:font-name="Liberation Serif" fo:font-size="12pt" fo:language="en" fo:country="US" style:letter-kerning="true" style:font-name-asian="Unifont" style:font-size-asian="10.5pt" style:language-asian="zh" style:country-asian="CN" style:font-name-complex="Unifont" style:font-size-complex="12pt" style:language-complex="hi" style:country-complex="IN"/></style:default-style><style:default-style style:family="paragraph"><style:paragraph-properties fo:orphans="2" fo:widows="2" fo:hyphenation-ladder-count="no-limit" style:text-autospace="ideograph-alpha" style:punctuation-wrap="hanging" style:line-break="strict" style:tab-stop-distance="0.4925in" style:writing-mode="page"/><style:text-properties style:use-window-font-color="true" loext:opacity="0%" style:font-name="Liberation Serif" fo:font-size="12pt" fo:language="en" fo:country="US" style:letter-kerning="true" style:font-name-asian="Unifont" style:font-size-asian="10.5pt" style:language-asian="zh" style:country-asian="CN" style:font-name-complex="Unifont" style:font-size-complex="12pt" style:language-complex="hi" style:country-complex="IN" fo:hyphenate="false" fo:hyphenation-remain-char-count="2" fo:hyphenation-push-char-count="2" loext:hyphenation-no-caps="false"/></style:default-style><style:default-style style:family="table"><style:table-properties table:border-model="collapsing"/></style:default-style><style:default-style style:family="table-row"><style:table-row-properties fo:keep-together="auto"/></style:default-style><style:style style:name="Standard" style:family="paragraph" style:class="text"><style:paragraph-properties fo:margin-top="0in" fo:margin-bottom="0.0799in" style:contextual-spacing="false"/></style:style><style:style style:name="Heading" style:family="paragraph" style:parent-style-name="Standard" style:next-style-name="Text_20_body" style:class="text"><style:paragraph-properties fo:margin-top="0.1665in" fo:margin-bottom="0.0835in" style:contextual-spacing="false" fo:keep-with-next="always"/><style:text-properties style:font-name="Liberation Sans" fo:font-family="&apos;Liberation Sans&apos;" style:font-family-generic="swiss" style:font-pitch="variable" fo:font-size="14pt" style:font-name-asian="Unifont" style:font-family-asian="Unifont" style:font-family-generic-asian="system" style:font-pitch-asian="variable" style:font-size-asian="14pt" style:font-name-complex="Unifont" style:font-family-complex="Unifont" style:font-family-generic-complex="system" style:font-pitch-complex="variable" style:font-size-complex="14pt"/></style:style><style:style style:name="Text_20_body" style:display-name="Text body" style:family="paragraph" style:parent-style-name="Standard" style:class="text"><style:paragraph-properties fo:margin-top="0in" fo:margin-bottom="0.0972in" style:contextual-spacing="false" fo:line-height="115%"/></style:style><style:style style:name="List" style:family="paragraph" style:parent-style-name="Text_20_body" style:class="list"><style:text-properties style:font-size-asian="12pt"/></style:style><style:style style:name="Caption" style:family="paragraph" style:parent-style-name="Standard" style:class="extra"><style:paragraph-properties fo:margin-top="0.0835in" fo:margin-bottom="0.0835in" style:contextual-spacing="false" text:number-lines="false" text:line-number="0"/><style:text-properties fo:font-size="12pt" fo:font-style="italic" style:font-size-asian="12pt" style:font-style-asian="italic" style:font-size-complex="12pt" style:font-style-complex="italic"/></style:style><style:style style:name="Index" style:family="paragraph" style:parent-style-name="Standard" style:class="index"><style:paragraph-properties text:number-lines="false" text:line-number="0"/><style:text-properties style:font-size-asian="12pt"/></style:style><text:outline-style style:name="Outline"><text:outline-level-style text:level="1" style:num-format=""><style:list-level-properties text:list-level-position-and-space-mode="label-alignment"><style:list-level-label-alignment text:label-followed-by="listtab"/></style:list-level-properties></text:outline-level-style><text:outline-level-style text:level="2" style:num-format=""><style:list-level-properties text:list-level-position-and-space-mode="label-alignment"><style:list-level-label-alignment text:label-followed-by="listtab"/></style:list-level-properties></text:outline-level-style><text:outline-level-style text:level="3" style:num-format=""><style:list-level-properties text:list-level-position-and-space-mode="label-alignment"><style:list-level-label-alignment text:label-followed-by="listtab"/></style:list-level-properties></text:outline-level-style><text:outline-level-style text:level="4" style:num-format=""><style:list-level-properties text:list-level-position-and-space-mode="label-alignment"><style:list-level-label-alignment text:label-followed-by="listtab"/></style:list-level-properties></text:outline-level-style><text:outline-level-style text:level="5" style:num-format=""><style:list-level-properties text:list-level-position-and-space-mode="label-alignment"><style:list-level-label-alignment text:label-followed-by="listtab"/></style:list-level-properties></text:outline-level-style><text:outline-level-style text:level="6" style:num-format=""><style:list-level-properties text:list-level-position-and-space-mode="label-alignment"><style:list-level-label-alignment text:label-followed-by="listtab"/></style:list-level-properties></text:outline-level-style><text:outline-level-style text:level="7" style:num-format=""><style:list-level-properties text:list-level-position-and-space-mode="label-alignment"><style:list-level-label-alignment text:label-followed-by="listtab"/></style:list-level-properties></text:outline-level-style><text:outline-level-style text:level="8" style:num-format=""><style:list-level-properties text:list-level-position-and-space-mode="label-alignment"><style:list-level-label-alignment text:label-followed-by="listtab"/></style:list-level-properties></text:outline-level-style><text:outline-level-style text:level="9" style:num-format=""><style:list-level-properties text:list-level-position-and-space-mode="label-alignment"><style:list-level-label-alignment text:label-followed-by="listtab"/></style:list-level-properties></text:outline-level-style><text:outline-level-style text:level="10" style:num-format=""><style:list-level-properties text:list-level-position-and-space-mode="label-alignment"><style:list-level-label-alignment text:label-followed-by="listtab"/></style:list-level-properties></text:outline-level-style></text:outline-style><text:notes-configuration text:note-class="footnote" style:num-format="1" text:start-value="0" text:footnotes-position="page" text:start-numbering-at="document"/><text:notes-configuration text:note-class="endnote" style:num-format="i" text:start-value="0"/><text:linenumbering-configuration text:number-lines="false" text:offset="0.1965in" style:num-format="1" text:number-position="left" text:increment="5"/></office:styles><office:automatic-styles><style:page-layout style:name="Mpm1"><style:page-layout-properties fo:page-width="8.5in" fo:page-height="11in" style:num-format="1" style:print-orientation="portrait" fo:margin-top="0.7874in" fo:margin-bottom="0.7874in" fo:margin-left="0.7874in" fo:margin-right="0.7874in" style:writing-mode="lr-tb" style:layout-grid-color="#c0c0c0" style:layout-grid-lines="20" style:layout-grid-base-height="0.278in" style:layout-grid-ruby-height="0.139in" style:layout-grid-mode="none" style:layout-grid-ruby-below="false" style:layout-grid-print="false" style:layout-grid-display="false" style:footnote-max-height="0in"><style:footnote-sep style:width="0.0071in" style:distance-before-sep="0.0398in" style:distance-after-sep="0.0398in" style:line-style="solid" style:adjustment="left" style:rel-width="25%" style:color="#000000"/></style:page-layout-properties><style:header-style/><style:footer-style/></style:page-layout></office:automatic-styles><office:master-styles><style:master-page style:name="Standard" style:page-layout-name="Mpm1"/></office:master-styles></office:document-styles> \ No newline at end of file
diff --git a/extract/test/background_lines_1.pdf b/extract/test/background_lines_1.pdf
new file mode 100755
index 00000000..f23d6b70
--- /dev/null
+++ b/extract/test/background_lines_1.pdf
Binary files differ
diff --git a/extract/test/background_lines_1.pdf.mutool-0.csv.ref b/extract/test/background_lines_1.pdf.mutool-0.csv.ref
new file mode 100644
index 00000000..4429121b
--- /dev/null
+++ b/extract/test/background_lines_1.pdf.mutool-0.csv.ref
@@ -0,0 +1,8 @@
+"State","Date","Halt stations","Halt days","Persons directly reached (in lakh)","Persons trained","Persons counseled","Persons tested for HIV"
+"Delhi","1.12.2009","8","17","1.29","3,665","2,409","1,000"
+"Rajasthan","2.12.2009 to 19.12.2009","","","","","",""
+"Gujarat","20.12.2009 to 3.1.2010","6","13","6.03","3,810","2,317","1,453"
+"Maharashtra","4.01.2010 to 1.2.2010","13","26","1.27","5,680","9,027","4,153"
+"Karnataka","2.2.2010 to 22.2.2010","11","19","1.80","5,741","3,658","3,183"
+"Kerala","23.2.2010 to 11.3.2010","9","17","1.42","3,559","2,173","855"
+"Total","","47","92","11.81","22,455","19,584","10,644"
diff --git a/extract/test/background_lines_1.pdf.mutool.docx.dir.ref/[Content_Types].xml b/extract/test/background_lines_1.pdf.mutool.docx.dir.ref/[Content_Types].xml
new file mode 100644
index 00000000..8f5e8099
--- /dev/null
+++ b/extract/test/background_lines_1.pdf.mutool.docx.dir.ref/[Content_Types].xml
@@ -0,0 +1,2 @@
+<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
+<Types xmlns="http://schemas.openxmlformats.org/package/2006/content-types"><Default Extension="jpeg" ContentType="image/jpeg"/><Default Extension="rels" ContentType="application/vnd.openxmlformats-package.relationships+xml"/><Default Extension="xml" ContentType="application/xml"/><Override PartName="/word/document.xml" ContentType="application/vnd.openxmlformats-officedocument.wordprocessingml.document.main+xml"/><Override PartName="/word/styles.xml" ContentType="application/vnd.openxmlformats-officedocument.wordprocessingml.styles+xml"/><Override PartName="/word/settings.xml" ContentType="application/vnd.openxmlformats-officedocument.wordprocessingml.settings+xml"/><Override PartName="/word/webSettings.xml" ContentType="application/vnd.openxmlformats-officedocument.wordprocessingml.webSettings+xml"/><Override PartName="/word/fontTable.xml" ContentType="application/vnd.openxmlformats-officedocument.wordprocessingml.fontTable+xml"/><Override PartName="/word/theme/theme1.xml" ContentType="application/vnd.openxmlformats-officedocument.theme+xml"/><Override PartName="/docProps/core.xml" ContentType="application/vnd.openxmlformats-package.core-properties+xml"/><Override PartName="/docProps/app.xml" ContentType="application/vnd.openxmlformats-officedocument.extended-properties+xml"/></Types> \ No newline at end of file
diff --git a/extract/test/background_lines_1.pdf.mutool.docx.dir.ref/_rels/.rels b/extract/test/background_lines_1.pdf.mutool.docx.dir.ref/_rels/.rels
new file mode 100644
index 00000000..32548d42
--- /dev/null
+++ b/extract/test/background_lines_1.pdf.mutool.docx.dir.ref/_rels/.rels
@@ -0,0 +1,2 @@
+<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
+<Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships"><Relationship Id="rId3" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties" Target="docProps/app.xml"/><Relationship Id="rId2" Type="http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties" Target="docProps/core.xml"/><Relationship Id="rId1" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument" Target="word/document.xml"/></Relationships> \ No newline at end of file
diff --git a/extract/test/background_lines_1.pdf.mutool.docx.dir.ref/docProps/app.xml b/extract/test/background_lines_1.pdf.mutool.docx.dir.ref/docProps/app.xml
new file mode 100644
index 00000000..eb8dd2e5
--- /dev/null
+++ b/extract/test/background_lines_1.pdf.mutool.docx.dir.ref/docProps/app.xml
@@ -0,0 +1,2 @@
+<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
+<Properties xmlns="http://schemas.openxmlformats.org/officeDocument/2006/extended-properties" xmlns:vt="http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes"><Template>Normal.dotm</Template><TotalTime>3</TotalTime><Pages>1</Pages><Words>2</Words><Characters>18</Characters><Application>Microsoft Office Word</Application><DocSecurity>0</DocSecurity><Lines>1</Lines><Paragraphs>1</Paragraphs><ScaleCrop>false</ScaleCrop><Company></Company><LinksUpToDate>false</LinksUpToDate><CharactersWithSpaces>19</CharactersWithSpaces><SharedDoc>false</SharedDoc><HyperlinksChanged>false</HyperlinksChanged><AppVersion>16.0000</AppVersion></Properties> \ No newline at end of file
diff --git a/extract/test/background_lines_1.pdf.mutool.docx.dir.ref/docProps/core.xml b/extract/test/background_lines_1.pdf.mutool.docx.dir.ref/docProps/core.xml
new file mode 100644
index 00000000..195d77a9
--- /dev/null
+++ b/extract/test/background_lines_1.pdf.mutool.docx.dir.ref/docProps/core.xml
@@ -0,0 +1,2 @@
+<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
+<cp:coreProperties xmlns:cp="http://schemas.openxmlformats.org/package/2006/metadata/core-properties" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:dcterms="http://purl.org/dc/terms/" xmlns:dcmitype="http://purl.org/dc/dcmitype/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><dc:title></dc:title><dc:subject></dc:subject><dc:creator></dc:creator><cp:keywords></cp:keywords><dc:description></dc:description><cp:lastModifiedBy></cp:lastModifiedBy><cp:revision>1</cp:revision><dcterms:created xsi:type="dcterms:W3CDTF">2020-09-25T17:04:00Z</dcterms:created><dcterms:modified xsi:type="dcterms:W3CDTF">2020-09-25T17:07:00Z</dcterms:modified></cp:coreProperties> \ No newline at end of file
diff --git a/extract/test/background_lines_1.pdf.mutool.docx.dir.ref/word/_rels/document.xml.rels b/extract/test/background_lines_1.pdf.mutool.docx.dir.ref/word/_rels/document.xml.rels
new file mode 100644
index 00000000..2d778e67
--- /dev/null
+++ b/extract/test/background_lines_1.pdf.mutool.docx.dir.ref/word/_rels/document.xml.rels
@@ -0,0 +1,2 @@
+<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
+<Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships"><Relationship Id="rId3" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/webSettings" Target="webSettings.xml"/><Relationship Id="rId2" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/settings" Target="settings.xml"/><Relationship Id="rId1" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles" Target="styles.xml"/><Relationship Id="rId5" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme" Target="theme/theme1.xml"/><Relationship Id="rId4" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/fontTable" Target="fontTable.xml"/><Relationship Id="rId11" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/image" Target="media/image11.jpeg"/></Relationships> \ No newline at end of file
diff --git a/extract/test/background_lines_1.pdf.mutool.docx.dir.ref/word/document.xml b/extract/test/background_lines_1.pdf.mutool.docx.dir.ref/word/document.xml
new file mode 100644
index 00000000..0839c4e5
--- /dev/null
+++ b/extract/test/background_lines_1.pdf.mutool.docx.dir.ref/word/document.xml
@@ -0,0 +1,1069 @@
+<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
+<w:document xmlns:wpc="http://schemas.microsoft.com/office/word/2010/wordprocessingCanvas" xmlns:cx="http://schemas.microsoft.com/office/drawing/2014/chartex" xmlns:cx1="http://schemas.microsoft.com/office/drawing/2015/9/8/chartex" xmlns:cx2="http://schemas.microsoft.com/office/drawing/2015/10/21/chartex" xmlns:cx3="http://schemas.microsoft.com/office/drawing/2016/5/9/chartex" xmlns:cx4="http://schemas.microsoft.com/office/drawing/2016/5/10/chartex" xmlns:cx5="http://schemas.microsoft.com/office/drawing/2016/5/11/chartex" xmlns:cx6="http://schemas.microsoft.com/office/drawing/2016/5/12/chartex" xmlns:cx7="http://schemas.microsoft.com/office/drawing/2016/5/13/chartex" xmlns:cx8="http://schemas.microsoft.com/office/drawing/2016/5/14/chartex" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:aink="http://schemas.microsoft.com/office/drawing/2016/ink" xmlns:am3d="http://schemas.microsoft.com/office/drawing/2017/model3d" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships" xmlns:m="http://schemas.openxmlformats.org/officeDocument/2006/math" xmlns:v="urn:schemas-microsoft-com:vml" xmlns:wp14="http://schemas.microsoft.com/office/word/2010/wordprocessingDrawing" xmlns:wp="http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing" xmlns:w10="urn:schemas-microsoft-com:office:word" xmlns:w="http://schemas.openxmlformats.org/wordprocessingml/2006/main" xmlns:w14="http://schemas.microsoft.com/office/word/2010/wordml" xmlns:w15="http://schemas.microsoft.com/office/word/2012/wordml" xmlns:w16cex="http://schemas.microsoft.com/office/word/2018/wordml/cex" xmlns:w16cid="http://schemas.microsoft.com/office/word/2016/wordml/cid" xmlns:w16="http://schemas.microsoft.com/office/word/2018/wordml" xmlns:w16se="http://schemas.microsoft.com/office/word/2015/wordml/symex" xmlns:wpg="http://schemas.microsoft.com/office/word/2010/wordprocessingGroup" xmlns:wpi="http://schemas.microsoft.com/office/word/2010/wordprocessingInk" xmlns:wne="http://schemas.microsoft.com/office/word/2006/wordml" xmlns:wps="http://schemas.microsoft.com/office/word/2010/wordprocessingShape" mc:Ignorable="w14 w15 w16se w16cid w16 w16cex wp14"><w:body>
+
+<w:p>
+ <w:r>
+ <mc:AlternateContent>
+ <mc:Choice Requires="wps">
+ <w:drawing>
+ <wp:anchor distT="0" distB="0" distL="0" distR="0" simplePos="0" relativeHeight="0" behindDoc="0" locked="0" layoutInCell="1" allowOverlap="1" wp14:anchorId="53A210D1" wp14:editId="2B7E8016">
+ <wp:simplePos x="0" y="0"/>
+ <wp:positionH relativeFrom="page">
+ <wp:posOffset>-38</wp:posOffset>
+ </wp:positionH>
+ <wp:positionV relativeFrom="page">
+ <wp:posOffset>10744157</wp:posOffset>
+ </wp:positionV>
+ <wp:extent cx="1157678" cy="20231098"/>
+ <wp:effectExtent l="381000" t="723900" r="371475" b="723900"/>
+ <wp:wrapNone/>
+ <wp:docPr id="1" name="Text Box 1"/>
+ <wp:cNvGraphicFramePr/>
+ <a:graphic xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main">
+ <a:graphicData uri="http://schemas.microsoft.com/office/word/2010/wordprocessingShape">
+ <wps:wsp>
+ <wps:cNvSpPr txBox="1"/>
+ <wps:spPr>
+ <a:xfrm rot="11">
+ <a:off x="0" y="0"/>
+ <a:ext cx="3228975" cy="2286000"/>
+ </a:xfrm>
+ <a:prstGeom prst="rect">
+ <a:avLst/>
+ </a:prstGeom>
+ </wps:spPr>
+ <wps:txbx>
+ <w:txbxContent>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="TrebuchetMS" w:hAnsi="TrebuchetMS"/><w:sz w:val="18.000000"/><w:szCs w:val="13.500000"/></w:rPr><w:t xml:space="preserve">Annual Report 2009-10</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="TrebuchetMS" w:hAnsi="TrebuchetMS"/><w:sz w:val="18.000000"/><w:szCs w:val="13.500000"/></w:rPr><w:t xml:space="preserve">29</w:t></w:r>
+</w:p>
+ </w:txbxContent>
+ </wps:txbx>
+ <wps:bodyPr rot="0" spcFirstLastPara="0" vertOverflow="overflow" horzOverflow="overflow" vert="horz" wrap="square" lIns="91440" tIns="45720" rIns="91440" bIns="45720" numCol="1" spcCol="0" rtlCol="0" fromWordArt="0" anchor="t" anchorCtr="0" forceAA="0" compatLnSpc="1">
+ <a:prstTxWarp prst="textNoShape">
+ <a:avLst/>
+ </a:prstTxWarp>
+ <a:noAutofit/>
+ </wps:bodyPr>
+ </wps:wsp>
+ </a:graphicData>
+ </a:graphic>
+ </wp:anchor>
+ </w:drawing>
+ </mc:Choice>
+ <mc:Fallback>
+ <w:pict>
+ <v:shapetype w14:anchorId="53A210D1" id="_x0000_t202" coordsize="21600,21600" o:spt="202" path="m,l,21600r21600,l21600,xe">
+ <v:stroke joinstyle="miter"/>
+ <v:path gradientshapeok="t" o:connecttype="rect"/>
+ </v:shapetype>
+ <v:shape id="Text Box 1" o:spid="_x0000_s1026" type="#_x0000_t202" style="position:absolute;margin-left:71.25pt;margin-top:48.75pt;width:254.25pt;height:180pt;rotation:-2241476fd;z-index:251659264;visibility:visible;mso-wrap-style:square;mso-wrap-distance-left:9pt;mso-wrap-distance-top:0;mso-wrap-distance-right:9pt;mso-wrap-distance-bottom:0;mso-position-horizontal:absolute;mso-position-horizontal-relative:text;mso-position-vertical:absolute;mso-position-vertical-relative:text;v-text-anchor:top" o:gfxdata="UEsDBBQABgAIAAAAIQC2gziS/gAAAOEBAAATAAAAW0NvbnRlbnRfVHlwZXNdLnhtbJSRQU7DMBBF&#10;90jcwfIWJU67QAgl6YK0S0CoHGBkTxKLZGx5TGhvj5O2G0SRWNoz/78nu9wcxkFMGNg6quQqL6RA&#10;0s5Y6ir5vt9lD1JwBDIwOMJKHpHlpr69KfdHjyxSmriSfYz+USnWPY7AufNIadK6MEJMx9ApD/oD&#10;OlTrorhX2lFEilmcO2RdNtjC5xDF9pCuTyYBB5bi6bQ4syoJ3g9WQ0ymaiLzg5KdCXlKLjvcW893&#10;SUOqXwnz5DrgnHtJTxOsQfEKIT7DmDSUCaxw7Rqn8787ZsmRM9e2VmPeBN4uqYvTtW7jvijg9N/y&#10;JsXecLq0q+WD6m8AAAD//wMAUEsDBBQABgAIAAAAIQA4/SH/1gAAAJQBAAALAAAAX3JlbHMvLnJl&#10;bHOkkMFqwzAMhu+DvYPRfXGawxijTi+j0GvpHsDYimMaW0Yy2fr2M4PBMnrbUb/Q94l/f/hMi1qR&#10;JVI2sOt6UJgd+ZiDgffL8ekFlFSbvV0oo4EbChzGx4f9GRdb25HMsYhqlCwG5lrLq9biZkxWOiqY&#10;22YiTra2kYMu1l1tQD30/bPm3wwYN0x18gb45AdQl1tp5j/sFB2T0FQ7R0nTNEV3j6o9feQzro1i&#10;OWA14Fm+Q8a1a8+Bvu/d/dMb2JY5uiPbhG/ktn4cqGU/er3pcvwCAAD//wMAUEsDBBQABgAIAAAA&#10;IQDQg5pQVgIAALEEAAAOAAAAZHJzL2Uyb0RvYy54bWysVE1v2zAMvQ/YfxB0X+2k+WiDOEXWosOA&#10;oi3QDj0rstwYk0VNUmJ3v35PipMl3U7DLgJFPj+Rj6TnV12j2VY5X5Mp+OAs50wZSWVtXgv+7fn2&#10;0wVnPghTCk1GFfxNeX61+Phh3tqZGtKadKkcA4nxs9YWfB2CnWWZl2vVCH9GVhkEK3KNCLi616x0&#10;ogV7o7Nhnk+yllxpHUnlPbw3uyBfJP6qUjI8VJVXgemCI7eQTpfOVTyzxVzMXp2w61r2aYh/yKIR&#10;tcGjB6obEQTbuPoPqqaWjjxV4UxSk1FV1VKlGlDNIH9XzdNaWJVqgTjeHmTy/49W3m8fHatL9I4z&#10;Ixq06Fl1gX2mjg2iOq31M4CeLGChgzsie7+HMxbdVa5hjiDu4HI8ml5MpkkLVMcAh+xvB6kjt4Tz&#10;fDi8uJyOOZOIwZ7keWpGtmOLrNb58EVRw6JRcIdeJlqxvfMBGQC6h0S4J12Xt7XW6RLnR11rx7YC&#10;ndch5YwvTlDasLbgk/NxnohPYpH68P1KC/k9Vn3KgJs2cEaNdlpEK3SrrhdoReUbdEvSQAZv5W0N&#10;3jvhw6NwGDQ4sTzhAUelCclQb3G2Jvfzb/6IR/8R5azF4Bbc/9gIpzjTXw0m43IwGsVJT5fReDrE&#10;xR1HVscRs2muCQqh+8gumREf9N6sHDUv2LFlfBUhYSTeLnjYm9dht07YUamWywTCbFsR7syTlZF6&#10;383n7kU42/czYBTuaT/iYvaurTts/NLQchOoqlPPo8A7VXvdsRepLf0Ox8U7vifU7z/N4hcAAAD/&#10;/wMAUEsDBBQABgAIAAAAIQBh17L63wAAAAoBAAAPAAAAZHJzL2Rvd25yZXYueG1sTI9BT4NAEIXv&#10;Jv6HzZh4s0ubgpayNIboSW3Syg9Y2BGI7CyyS0v99Y4nPU3ezMub72W72fbihKPvHClYLiIQSLUz&#10;HTUKyvfnuwcQPmgyuneECi7oYZdfX2U6Ne5MBzwdQyM4hHyqFbQhDKmUvm7Rar9wAxLfPtxodWA5&#10;NtKM+szhtperKEqk1R3xh1YPWLRYfx4nq8APVfz9VQxPb+WUNC+vZbGPDhelbm/mxy2IgHP4M8Mv&#10;PqNDzkyVm8h40bNer2K2Ktjc82RDEi+5XKVgHfNG5pn8XyH/AQAA//8DAFBLAQItABQABgAIAAAA&#10;IQC2gziS/gAAAOEBAAATAAAAAAAAAAAAAAAAAAAAAABbQ29udGVudF9UeXBlc10ueG1sUEsBAi0A&#10;FAAGAAgAAAAhADj9If/WAAAAlAEAAAsAAAAAAAAAAAAAAAAALwEAAF9yZWxzLy5yZWxzUEsBAi0A&#10;FAAGAAgAAAAhANCDmlBWAgAAsQQAAA4AAAAAAAAAAAAAAAAALgIAAGRycy9lMm9Eb2MueG1sUEsB&#10;Ai0AFAAGAAgAAAAhAGHXsvrfAAAACgEAAA8AAAAAAAAAAAAAAAAAsAQAAGRycy9kb3ducmV2Lnht&#10;bFBLBQYAAAAABAAEAPMAAAC8BQAAAAA=&#10;" fillcolor="white [3201]" strokeweight=".5pt">
+ <v:textbox>
+ <w:txbxContent>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="TrebuchetMS" w:hAnsi="TrebuchetMS"/><w:sz w:val="18.000000"/><w:szCs w:val="13.500000"/></w:rPr><w:t xml:space="preserve">Annual Report 2009-10</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="TrebuchetMS" w:hAnsi="TrebuchetMS"/><w:sz w:val="18.000000"/><w:szCs w:val="13.500000"/></w:rPr><w:t xml:space="preserve">29</w:t></w:r>
+</w:p>
+
+ </w:txbxContent>
+ </v:textbox>
+ </v:shape>
+ </w:pict>
+ </mc:Fallback>
+ </mc:AlternateContent>
+ </w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="TrebuchetMS" w:hAnsi="TrebuchetMS"/><w:sz w:val="21.000000"/><w:szCs w:val="15.750000"/></w:rPr><w:t xml:space="preserve">The Red Ribbon Express (RRE) is the world&#x2019;s largest mass mobilisation drive on HIV/AIDS. The train will travel through 22 states, during its one year long journey, halting at 152 stations. Through the RRE, NACO, intends to break the silence surrounding the issue of HIV/AIDS, by taking the messages on prevention, care and support to people living in small towns and villages across the country. The aim is also to create an environment, free from stigma and discrimination faced by people living with HIV, so they can access the services, without fear and prejudice, and live a life of dignity. It has proved to be a successful multi- sectoral initiative, of the NACO and a powerful advocacy tool, both at the state and district level, besides enhancing local capacity to deal with HIV prevention.</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="TrebuchetMS" w:hAnsi="TrebuchetMS"/><w:sz w:val="21.000000"/><w:szCs w:val="15.750000"/></w:rPr><w:t xml:space="preserve">Table 6.1: The highlights of RRE&#x2013;II coverage (till 11 March, 2010) </w:t></w:r>
+</w:p>
+ <w:tbl>
+ <w:tblLayout w:type="autofit"/>
+ <w:tr>
+ <w:trPr/>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="TrebuchetMS-Bold" w:hAnsi="TrebuchetMS-Bold"/><w:b/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">State </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="TrebuchetMS-Bold" w:hAnsi="TrebuchetMS-Bold"/><w:b/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">Date </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="TrebuchetMS-Bold" w:hAnsi="TrebuchetMS-Bold"/><w:b/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">Halt stations </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="TrebuchetMS-Bold" w:hAnsi="TrebuchetMS-Bold"/><w:b/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">Halt days</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="TrebuchetMS-Bold" w:hAnsi="TrebuchetMS-Bold"/><w:b/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">Persons directly reached (in lakh)</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="TrebuchetMS-Bold" w:hAnsi="TrebuchetMS-Bold"/><w:b/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">Persons trained</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="TrebuchetMS-Bold" w:hAnsi="TrebuchetMS-Bold"/><w:b/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">Persons counseled</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="TrebuchetMS-Bold" w:hAnsi="TrebuchetMS-Bold"/><w:b/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">Persons tested for HIV</w:t></w:r>
+</w:p> </w:tc>
+ </w:tr>
+ <w:tr>
+ <w:trPr/>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="TrebuchetMS" w:hAnsi="TrebuchetMS"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">Delhi</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="TrebuchetMS" w:hAnsi="TrebuchetMS"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">1.12.2009</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="restart"/>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="TrebuchetMS" w:hAnsi="TrebuchetMS"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">8</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="restart"/>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="TrebuchetMS" w:hAnsi="TrebuchetMS"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">17</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="restart"/>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="TrebuchetMS" w:hAnsi="TrebuchetMS"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">1.29</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="restart"/>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="TrebuchetMS" w:hAnsi="TrebuchetMS"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">3,665</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="restart"/>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="TrebuchetMS" w:hAnsi="TrebuchetMS"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">2,409</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="restart"/>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="TrebuchetMS" w:hAnsi="TrebuchetMS"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">1,000</w:t></w:r>
+</w:p> </w:tc>
+ </w:tr>
+ <w:tr>
+ <w:trPr/>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="TrebuchetMS" w:hAnsi="TrebuchetMS"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">Rajasthan</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="TrebuchetMS" w:hAnsi="TrebuchetMS"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">2.12.2009 to 19.12.2009</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ </w:tr>
+ <w:tr>
+ <w:trPr/>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="TrebuchetMS" w:hAnsi="TrebuchetMS"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">Gujarat</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="TrebuchetMS" w:hAnsi="TrebuchetMS"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">20.12.2009 to 3.1.2010</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="TrebuchetMS" w:hAnsi="TrebuchetMS"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">6</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="TrebuchetMS" w:hAnsi="TrebuchetMS"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">13</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="TrebuchetMS" w:hAnsi="TrebuchetMS"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">6.03</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="TrebuchetMS" w:hAnsi="TrebuchetMS"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">3,810</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="TrebuchetMS" w:hAnsi="TrebuchetMS"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">2,317</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="TrebuchetMS" w:hAnsi="TrebuchetMS"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">1,453</w:t></w:r>
+</w:p> </w:tc>
+ </w:tr>
+ <w:tr>
+ <w:trPr/>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="TrebuchetMS" w:hAnsi="TrebuchetMS"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">Maharashtra</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="TrebuchetMS" w:hAnsi="TrebuchetMS"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">4.01.2010 to 1.2.2010</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="TrebuchetMS" w:hAnsi="TrebuchetMS"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">13</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="TrebuchetMS" w:hAnsi="TrebuchetMS"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">26</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="TrebuchetMS" w:hAnsi="TrebuchetMS"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">1.27</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="TrebuchetMS" w:hAnsi="TrebuchetMS"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">5,680</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="TrebuchetMS" w:hAnsi="TrebuchetMS"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">9,027</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="TrebuchetMS" w:hAnsi="TrebuchetMS"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">4,153</w:t></w:r>
+</w:p> </w:tc>
+ </w:tr>
+ <w:tr>
+ <w:trPr/>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="TrebuchetMS" w:hAnsi="TrebuchetMS"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">Karnataka </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="TrebuchetMS" w:hAnsi="TrebuchetMS"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">2.2.2010 to 22.2.2010</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="TrebuchetMS" w:hAnsi="TrebuchetMS"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">11</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="TrebuchetMS" w:hAnsi="TrebuchetMS"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">19</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="TrebuchetMS" w:hAnsi="TrebuchetMS"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">1.80</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="TrebuchetMS" w:hAnsi="TrebuchetMS"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">5,741</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="TrebuchetMS" w:hAnsi="TrebuchetMS"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">3,658</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="TrebuchetMS" w:hAnsi="TrebuchetMS"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">3,183</w:t></w:r>
+</w:p> </w:tc>
+ </w:tr>
+ <w:tr>
+ <w:trPr/>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="TrebuchetMS" w:hAnsi="TrebuchetMS"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">Kerala</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="TrebuchetMS" w:hAnsi="TrebuchetMS"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">23.2.2010 to 11.3.2010</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="TrebuchetMS" w:hAnsi="TrebuchetMS"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">9</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="TrebuchetMS" w:hAnsi="TrebuchetMS"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">17</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="TrebuchetMS" w:hAnsi="TrebuchetMS"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">1.42</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="TrebuchetMS" w:hAnsi="TrebuchetMS"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">3,559</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="TrebuchetMS" w:hAnsi="TrebuchetMS"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">2,173</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="TrebuchetMS" w:hAnsi="TrebuchetMS"/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">855</w:t></w:r>
+</w:p> </w:tc>
+ </w:tr>
+ <w:tr>
+ <w:trPr/>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:gridSpan w:val="2"/>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="TrebuchetMS-Bold" w:hAnsi="TrebuchetMS-Bold"/><w:b/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">Total</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="TrebuchetMS-Bold" w:hAnsi="TrebuchetMS-Bold"/><w:b/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">47</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="TrebuchetMS-Bold" w:hAnsi="TrebuchetMS-Bold"/><w:b/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">92</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="TrebuchetMS-Bold" w:hAnsi="TrebuchetMS-Bold"/><w:b/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">11.81</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="TrebuchetMS-Bold" w:hAnsi="TrebuchetMS-Bold"/><w:b/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">22,455</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="TrebuchetMS-Bold" w:hAnsi="TrebuchetMS-Bold"/><w:b/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">19,584</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="TrebuchetMS-Bold" w:hAnsi="TrebuchetMS-Bold"/><w:b/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">10,644</w:t></w:r>
+</w:p> </w:tc>
+ </w:tr>
+ </w:tbl>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="TrebuchetMS" w:hAnsi="TrebuchetMS"/><w:sz w:val="14.000000"/><w:szCs w:val="10.500000"/></w:rPr><w:t xml:space="preserve">It includes visitors to train exhibition and those reached through outreach activities</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="TrebuchetMS" w:hAnsi="TrebuchetMS"/><w:sz w:val="21.000000"/><w:szCs w:val="15.750000"/></w:rPr><w:t xml:space="preserve">about injecting drug use and unprotected sex, </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="TrebuchetMS-Bold" w:hAnsi="TrebuchetMS-Bold"/><w:b/><w:sz w:val="21.000000"/><w:szCs w:val="15.750000"/></w:rPr><w:t xml:space="preserve">Radio programmes: </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="TrebuchetMS" w:hAnsi="TrebuchetMS"/><w:sz w:val="21.000000"/><w:szCs w:val="15.750000"/></w:rPr><w:t xml:space="preserve">Three radio programmes in reducing stigma and discrimination associated Hindi &#x2013; &#x201c;</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="TrebuchetMS-Italic" w:hAnsi="TrebuchetMS-Italic"/><w:i/><w:sz w:val="21.000000"/><w:szCs w:val="15.750000"/></w:rPr><w:t xml:space="preserve">Babli Boli</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="TrebuchetMS" w:hAnsi="TrebuchetMS"/><w:sz w:val="21.000000"/><w:szCs w:val="15.750000"/></w:rPr><w:t xml:space="preserve">&#x201d;, &#x201c;</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="TrebuchetMS-Italic" w:hAnsi="TrebuchetMS-Italic"/><w:i/><w:sz w:val="21.000000"/><w:szCs w:val="15.750000"/></w:rPr><w:t xml:space="preserve">5 Down Mohabbat Express</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="TrebuchetMS" w:hAnsi="TrebuchetMS"/><w:sz w:val="21.000000"/><w:szCs w:val="15.750000"/></w:rPr><w:t xml:space="preserve">&#x201d; attached to HIV/AIDS and promoting HIV and &#x201c;</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="TrebuchetMS-Italic" w:hAnsi="TrebuchetMS-Italic"/><w:i/><w:sz w:val="21.000000"/><w:szCs w:val="15.750000"/></w:rPr><w:t xml:space="preserve">Kitne Door, Kitne Pass</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="TrebuchetMS" w:hAnsi="TrebuchetMS"/><w:sz w:val="21.000000"/><w:szCs w:val="15.750000"/></w:rPr><w:t xml:space="preserve">&#x201d; were launched by related services. The music competitions and NACO, targeting rural women, rural youth and football tournaments organised at district level urban migrants respectively. The programmes culminated in the state level mega events, which were aired for six months from September, saw huge youth participation. 2009 to March, 2010. The duration of the each episode was half an hour and two episodes Faith based organisations were also sensitised of each programme were aired every week. and involved in the campaign. A special effort The programmes were linked to the ground was made to reach out to the out-of-school youth mobilisation in 21 vulnerable districts, in the in the states through training of youth clubs at states of UP, Bihar, Rajasthan, MP and Delhi district, block and village levels. The winners through 100 Radio Listener Clubs formed in each of the music competitions positioned as &quot;youth of these districts. The radio clubs promoted not icons&quot; are further reaching out with messages on only listenership of the programmes, but also HIV/AIDS to the community through road shows at helped in further dissemination of messages in village/block level in their respective districts. the communities. The SACS also produce and air </w:t></w:r>
+</w:p>
+ <w:p>
+ <w:r>
+ <w:rPr>
+ <w:noProof/>
+ </w:rPr>
+ <w:drawing>
+ <wp:inline distT="0" distB="0" distL="0" distR="0" wp14:anchorId="7057A832" wp14:editId="466EB3FB">
+ <wp:extent cx="2933700" cy="2200275"/>
+ <wp:effectExtent l="0" t="0" r="0" b="9525"/>
+ <wp:docPr id="1" name="Picture 1"/>
+ <wp:cNvGraphicFramePr>
+ <a:graphicFrameLocks xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main" noChangeAspect="1"/>
+ </wp:cNvGraphicFramePr>
+ <a:graphic xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main">
+ <a:graphicData uri="http://schemas.openxmlformats.org/drawingml/2006/picture">
+ <pic:pic xmlns:pic="http://schemas.openxmlformats.org/drawingml/2006/picture">
+ <pic:nvPicPr>
+ <pic:cNvPr id="1" name="Picture 1"/>
+ <pic:cNvPicPr>
+ <a:picLocks noChangeAspect="1" noChangeArrowheads="1"/>
+ </pic:cNvPicPr>
+ </pic:nvPicPr>
+ <pic:blipFill>
+ <a:blip r:embed="rId11">
+ <a:extLst>
+ <a:ext uri="{28A0092B-C50C-407E-A947-70E740481C1C}">
+ <a14:useLocalDpi xmlns:a14="http://schemas.microsoft.com/office/drawing/2010/main" val="0"/>
+ </a:ext>
+ </a:extLst>
+ </a:blip>
+ <a:stretch>
+ <a:fillRect/>
+ </a:stretch>
+ </pic:blipFill>
+ <pic:spPr bwMode="auto">
+ <a:xfrm>
+ <a:off x="0" y="0"/>
+ <a:ext cx="2933700" cy="2200275"/>
+ </a:xfrm>
+ <a:prstGeom prst="rect">
+ <a:avLst/>
+ </a:prstGeom>
+ <a:noFill/>
+ <a:ln>
+ <a:noFill/>
+ </a:ln>
+ </pic:spPr>
+ </pic:pic>
+ </a:graphicData>
+ </a:graphic>
+ </wp:inline>
+ </w:drawing>
+ </w:r>
+ </w:p>
+
+</w:body></w:document> \ No newline at end of file
diff --git a/extract/test/background_lines_1.pdf.mutool.docx.dir.ref/word/fontTable.xml b/extract/test/background_lines_1.pdf.mutool.docx.dir.ref/word/fontTable.xml
new file mode 100644
index 00000000..a39546e5
--- /dev/null
+++ b/extract/test/background_lines_1.pdf.mutool.docx.dir.ref/word/fontTable.xml
@@ -0,0 +1,2 @@
+<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
+<w:fonts xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships" xmlns:w="http://schemas.openxmlformats.org/wordprocessingml/2006/main" xmlns:w14="http://schemas.microsoft.com/office/word/2010/wordml" xmlns:w15="http://schemas.microsoft.com/office/word/2012/wordml" xmlns:w16cex="http://schemas.microsoft.com/office/word/2018/wordml/cex" xmlns:w16cid="http://schemas.microsoft.com/office/word/2016/wordml/cid" xmlns:w16="http://schemas.microsoft.com/office/word/2018/wordml" xmlns:w16se="http://schemas.microsoft.com/office/word/2015/wordml/symex" mc:Ignorable="w14 w15 w16se w16cid w16 w16cex"><w:font w:name="Calibri"><w:panose1 w:val="020F0502020204030204"/><w:charset w:val="00"/><w:family w:val="swiss"/><w:pitch w:val="variable"/><w:sig w:usb0="E4002EFF" w:usb1="C000247B" w:usb2="00000009" w:usb3="00000000" w:csb0="000001FF" w:csb1="00000000"/></w:font><w:font w:name="Times New Roman"><w:panose1 w:val="02020603050405020304"/><w:charset w:val="00"/><w:family w:val="roman"/><w:pitch w:val="variable"/><w:sig w:usb0="E0002EFF" w:usb1="C000785B" w:usb2="00000009" w:usb3="00000000" w:csb0="000001FF" w:csb1="00000000"/></w:font><w:font w:name="Calibri Light"><w:panose1 w:val="020F0302020204030204"/><w:charset w:val="00"/><w:family w:val="swiss"/><w:pitch w:val="variable"/><w:sig w:usb0="E4002EFF" w:usb1="C000247B" w:usb2="00000009" w:usb3="00000000" w:csb0="000001FF" w:csb1="00000000"/></w:font></w:fonts> \ No newline at end of file
diff --git a/extract/test/background_lines_1.pdf.mutool.docx.dir.ref/word/media/image11.jpeg b/extract/test/background_lines_1.pdf.mutool.docx.dir.ref/word/media/image11.jpeg
new file mode 100644
index 00000000..6f217acf
--- /dev/null
+++ b/extract/test/background_lines_1.pdf.mutool.docx.dir.ref/word/media/image11.jpeg
Binary files differ
diff --git a/extract/test/background_lines_1.pdf.mutool.docx.dir.ref/word/settings.xml b/extract/test/background_lines_1.pdf.mutool.docx.dir.ref/word/settings.xml
new file mode 100644
index 00000000..c403540d
--- /dev/null
+++ b/extract/test/background_lines_1.pdf.mutool.docx.dir.ref/word/settings.xml
@@ -0,0 +1,2 @@
+<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
+<w:settings xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships" xmlns:m="http://schemas.openxmlformats.org/officeDocument/2006/math" xmlns:v="urn:schemas-microsoft-com:vml" xmlns:w10="urn:schemas-microsoft-com:office:word" xmlns:w="http://schemas.openxmlformats.org/wordprocessingml/2006/main" xmlns:w14="http://schemas.microsoft.com/office/word/2010/wordml" xmlns:w15="http://schemas.microsoft.com/office/word/2012/wordml" xmlns:w16cex="http://schemas.microsoft.com/office/word/2018/wordml/cex" xmlns:w16cid="http://schemas.microsoft.com/office/word/2016/wordml/cid" xmlns:w16="http://schemas.microsoft.com/office/word/2018/wordml" xmlns:w16se="http://schemas.microsoft.com/office/word/2015/wordml/symex" xmlns:sl="http://schemas.openxmlformats.org/schemaLibrary/2006/main" mc:Ignorable="w14 w15 w16se w16cid w16 w16cex"><w:zoom w:percent="100"/><w:proofState w:spelling="clean" w:grammar="clean"/><w:defaultTabStop w:val="720"/><w:characterSpacingControl w:val="doNotCompress"/><w:compat><w:compatSetting w:name="compatibilityMode" w:uri="http://schemas.microsoft.com/office/word" w:val="15"/><w:compatSetting w:name="overrideTableStyleFontSizeAndJustification" w:uri="http://schemas.microsoft.com/office/word" w:val="1"/><w:compatSetting w:name="enableOpenTypeFeatures" w:uri="http://schemas.microsoft.com/office/word" w:val="1"/><w:compatSetting w:name="doNotFlipMirrorIndents" w:uri="http://schemas.microsoft.com/office/word" w:val="1"/><w:compatSetting w:name="differentiateMultirowTableHeaders" w:uri="http://schemas.microsoft.com/office/word" w:val="1"/><w:compatSetting w:name="useWord2013TrackBottomHyphenation" w:uri="http://schemas.microsoft.com/office/word" w:val="0"/></w:compat><w:rsids><w:rsidRoot w:val="007F4427"/><w:rsid w:val="00255448"/><w:rsid w:val="007F4427"/></w:rsids><m:mathPr><m:mathFont m:val="Cambria Math"/><m:brkBin m:val="before"/><m:brkBinSub m:val="--"/><m:smallFrac m:val="0"/><m:dispDef/><m:lMargin m:val="0"/><m:rMargin m:val="0"/><m:defJc m:val="centerGroup"/><m:wrapIndent m:val="1440"/><m:intLim m:val="subSup"/><m:naryLim m:val="undOvr"/></m:mathPr><w:themeFontLang w:val="en-GB"/><w:clrSchemeMapping w:bg1="light1" w:t1="dark1" w:bg2="light2" w:t2="dark2" w:accent1="accent1" w:accent2="accent2" w:accent3="accent3" w:accent4="accent4" w:accent5="accent5" w:accent6="accent6" w:hyperlink="hyperlink" w:followedHyperlink="followedHyperlink"/><w:shapeDefaults><o:shapedefaults v:ext="edit" spidmax="1026"/><o:shapelayout v:ext="edit"><o:idmap v:ext="edit" data="1"/></o:shapelayout></w:shapeDefaults><w:decimalSymbol w:val="."/><w:listSeparator w:val=","/><w14:docId w14:val="32E52EF8"/><w15:chartTrackingRefBased/><w15:docId w15:val="{A10F59F7-497D-44D4-A338-47719734E7A0}"/></w:settings> \ No newline at end of file
diff --git a/extract/test/background_lines_1.pdf.mutool.docx.dir.ref/word/styles.xml b/extract/test/background_lines_1.pdf.mutool.docx.dir.ref/word/styles.xml
new file mode 100644
index 00000000..38e5e2bd
--- /dev/null
+++ b/extract/test/background_lines_1.pdf.mutool.docx.dir.ref/word/styles.xml
@@ -0,0 +1,2 @@
+<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
+<w:styles xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships" xmlns:w="http://schemas.openxmlformats.org/wordprocessingml/2006/main" xmlns:w14="http://schemas.microsoft.com/office/word/2010/wordml" xmlns:w15="http://schemas.microsoft.com/office/word/2012/wordml" xmlns:w16cex="http://schemas.microsoft.com/office/word/2018/wordml/cex" xmlns:w16cid="http://schemas.microsoft.com/office/word/2016/wordml/cid" xmlns:w16="http://schemas.microsoft.com/office/word/2018/wordml" xmlns:w16se="http://schemas.microsoft.com/office/word/2015/wordml/symex" mc:Ignorable="w14 w15 w16se w16cid w16 w16cex"><w:docDefaults><w:rPrDefault><w:rPr><w:rFonts w:asciiTheme="minorHAnsi" w:eastAsiaTheme="minorHAnsi" w:hAnsiTheme="minorHAnsi" w:cstheme="minorBidi"/><w:sz w:val="22"/><w:szCs w:val="22"/><w:lang w:val="en-GB" w:eastAsia="en-US" w:bidi="ar-SA"/></w:rPr></w:rPrDefault><w:pPrDefault><w:pPr><w:spacing w:after="160" w:line="259" w:lineRule="auto"/></w:pPr></w:pPrDefault></w:docDefaults><w:latentStyles w:defLockedState="0" w:defUIPriority="99" w:defSemiHidden="0" w:defUnhideWhenUsed="0" w:defQFormat="0" w:count="376"><w:lsdException w:name="Normal" w:uiPriority="0" w:qFormat="1"/><w:lsdException w:name="heading 1" w:uiPriority="9" w:qFormat="1"/><w:lsdException w:name="heading 2" w:semiHidden="1" w:uiPriority="9" w:unhideWhenUsed="1" w:qFormat="1"/><w:lsdException w:name="heading 3" w:semiHidden="1" w:uiPriority="9" w:unhideWhenUsed="1" w:qFormat="1"/><w:lsdException w:name="heading 4" w:semiHidden="1" w:uiPriority="9" w:unhideWhenUsed="1" w:qFormat="1"/><w:lsdException w:name="heading 5" w:semiHidden="1" w:uiPriority="9" w:unhideWhenUsed="1" w:qFormat="1"/><w:lsdException w:name="heading 6" w:semiHidden="1" w:uiPriority="9" w:unhideWhenUsed="1" w:qFormat="1"/><w:lsdException w:name="heading 7" w:semiHidden="1" w:uiPriority="9" w:unhideWhenUsed="1" w:qFormat="1"/><w:lsdException w:name="heading 8" w:semiHidden="1" w:uiPriority="9" w:unhideWhenUsed="1" w:qFormat="1"/><w:lsdException w:name="heading 9" w:semiHidden="1" w:uiPriority="9" w:unhideWhenUsed="1" w:qFormat="1"/><w:lsdException w:name="index 1" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="index 2" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="index 3" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="index 4" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="index 5" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="index 6" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="index 7" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="index 8" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="index 9" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="toc 1" w:semiHidden="1" w:uiPriority="39" w:unhideWhenUsed="1"/><w:lsdException w:name="toc 2" w:semiHidden="1" w:uiPriority="39" w:unhideWhenUsed="1"/><w:lsdException w:name="toc 3" w:semiHidden="1" w:uiPriority="39" w:unhideWhenUsed="1"/><w:lsdException w:name="toc 4" w:semiHidden="1" w:uiPriority="39" w:unhideWhenUsed="1"/><w:lsdException w:name="toc 5" w:semiHidden="1" w:uiPriority="39" w:unhideWhenUsed="1"/><w:lsdException w:name="toc 6" w:semiHidden="1" w:uiPriority="39" w:unhideWhenUsed="1"/><w:lsdException w:name="toc 7" w:semiHidden="1" w:uiPriority="39" w:unhideWhenUsed="1"/><w:lsdException w:name="toc 8" w:semiHidden="1" w:uiPriority="39" w:unhideWhenUsed="1"/><w:lsdException w:name="toc 9" w:semiHidden="1" w:uiPriority="39" w:unhideWhenUsed="1"/><w:lsdException w:name="Normal Indent" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="footnote text" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="annotation text" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="header" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="footer" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="index heading" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="caption" w:semiHidden="1" w:uiPriority="35" w:unhideWhenUsed="1" w:qFormat="1"/><w:lsdException w:name="table of figures" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="envelope address" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="envelope return" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="footnote reference" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="annotation reference" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="line number" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="page number" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="endnote reference" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="endnote text" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="table of authorities" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="macro" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="toa heading" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="List" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="List Bullet" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="List Number" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="List 2" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="List 3" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="List 4" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="List 5" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="List Bullet 2" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="List Bullet 3" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="List Bullet 4" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="List Bullet 5" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="List Number 2" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="List Number 3" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="List Number 4" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="List Number 5" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Title" w:uiPriority="10" w:qFormat="1"/><w:lsdException w:name="Closing" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Signature" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Default Paragraph Font" w:semiHidden="1" w:uiPriority="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Body Text" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Body Text Indent" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="List Continue" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="List Continue 2" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="List Continue 3" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="List Continue 4" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="List Continue 5" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Message Header" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Subtitle" w:uiPriority="11" w:qFormat="1"/><w:lsdException w:name="Salutation" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Date" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Body Text First Indent" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Body Text First Indent 2" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Note Heading" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Body Text 2" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Body Text 3" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Body Text Indent 2" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Body Text Indent 3" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Block Text" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Hyperlink" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="FollowedHyperlink" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Strong" w:uiPriority="22" w:qFormat="1"/><w:lsdException w:name="Emphasis" w:uiPriority="20" w:qFormat="1"/><w:lsdException w:name="Document Map" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Plain Text" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="E-mail Signature" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="HTML Top of Form" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="HTML Bottom of Form" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Normal (Web)" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="HTML Acronym" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="HTML Address" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="HTML Cite" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="HTML Code" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="HTML Definition" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="HTML Keyboard" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="HTML Preformatted" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="HTML Sample" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="HTML Typewriter" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="HTML Variable" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Normal Table" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="annotation subject" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="No List" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Outline List 1" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Outline List 2" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Outline List 3" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Simple 1" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Simple 2" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Simple 3" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Classic 1" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Classic 2" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Classic 3" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Classic 4" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Colorful 1" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Colorful 2" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Colorful 3" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Columns 1" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Columns 2" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Columns 3" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Columns 4" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Columns 5" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Grid 1" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Grid 2" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Grid 3" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Grid 4" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Grid 5" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Grid 6" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Grid 7" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Grid 8" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table List 1" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table List 2" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table List 3" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table List 4" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table List 5" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table List 6" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table List 7" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table List 8" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table 3D effects 1" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table 3D effects 2" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table 3D effects 3" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Contemporary" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Elegant" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Professional" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Subtle 1" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Subtle 2" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Web 1" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Web 2" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Web 3" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Balloon Text" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Grid" w:uiPriority="39"/><w:lsdException w:name="Table Theme" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Placeholder Text" w:semiHidden="1"/><w:lsdException w:name="No Spacing" w:uiPriority="1" w:qFormat="1"/><w:lsdException w:name="Light Shading" w:uiPriority="60"/><w:lsdException w:name="Light List" w:uiPriority="61"/><w:lsdException w:name="Light Grid" w:uiPriority="62"/><w:lsdException w:name="Medium Shading 1" w:uiPriority="63"/><w:lsdException w:name="Medium Shading 2" w:uiPriority="64"/><w:lsdException w:name="Medium List 1" w:uiPriority="65"/><w:lsdException w:name="Medium List 2" w:uiPriority="66"/><w:lsdException w:name="Medium Grid 1" w:uiPriority="67"/><w:lsdException w:name="Medium Grid 2" w:uiPriority="68"/><w:lsdException w:name="Medium Grid 3" w:uiPriority="69"/><w:lsdException w:name="Dark List" w:uiPriority="70"/><w:lsdException w:name="Colorful Shading" w:uiPriority="71"/><w:lsdException w:name="Colorful List" w:uiPriority="72"/><w:lsdException w:name="Colorful Grid" w:uiPriority="73"/><w:lsdException w:name="Light Shading Accent 1" w:uiPriority="60"/><w:lsdException w:name="Light List Accent 1" w:uiPriority="61"/><w:lsdException w:name="Light Grid Accent 1" w:uiPriority="62"/><w:lsdException w:name="Medium Shading 1 Accent 1" w:uiPriority="63"/><w:lsdException w:name="Medium Shading 2 Accent 1" w:uiPriority="64"/><w:lsdException w:name="Medium List 1 Accent 1" w:uiPriority="65"/><w:lsdException w:name="Revision" w:semiHidden="1"/><w:lsdException w:name="List Paragraph" w:uiPriority="34" w:qFormat="1"/><w:lsdException w:name="Quote" w:uiPriority="29" w:qFormat="1"/><w:lsdException w:name="Intense Quote" w:uiPriority="30" w:qFormat="1"/><w:lsdException w:name="Medium List 2 Accent 1" w:uiPriority="66"/><w:lsdException w:name="Medium Grid 1 Accent 1" w:uiPriority="67"/><w:lsdException w:name="Medium Grid 2 Accent 1" w:uiPriority="68"/><w:lsdException w:name="Medium Grid 3 Accent 1" w:uiPriority="69"/><w:lsdException w:name="Dark List Accent 1" w:uiPriority="70"/><w:lsdException w:name="Colorful Shading Accent 1" w:uiPriority="71"/><w:lsdException w:name="Colorful List Accent 1" w:uiPriority="72"/><w:lsdException w:name="Colorful Grid Accent 1" w:uiPriority="73"/><w:lsdException w:name="Light Shading Accent 2" w:uiPriority="60"/><w:lsdException w:name="Light List Accent 2" w:uiPriority="61"/><w:lsdException w:name="Light Grid Accent 2" w:uiPriority="62"/><w:lsdException w:name="Medium Shading 1 Accent 2" w:uiPriority="63"/><w:lsdException w:name="Medium Shading 2 Accent 2" w:uiPriority="64"/><w:lsdException w:name="Medium List 1 Accent 2" w:uiPriority="65"/><w:lsdException w:name="Medium List 2 Accent 2" w:uiPriority="66"/><w:lsdException w:name="Medium Grid 1 Accent 2" w:uiPriority="67"/><w:lsdException w:name="Medium Grid 2 Accent 2" w:uiPriority="68"/><w:lsdException w:name="Medium Grid 3 Accent 2" w:uiPriority="69"/><w:lsdException w:name="Dark List Accent 2" w:uiPriority="70"/><w:lsdException w:name="Colorful Shading Accent 2" w:uiPriority="71"/><w:lsdException w:name="Colorful List Accent 2" w:uiPriority="72"/><w:lsdException w:name="Colorful Grid Accent 2" w:uiPriority="73"/><w:lsdException w:name="Light Shading Accent 3" w:uiPriority="60"/><w:lsdException w:name="Light List Accent 3" w:uiPriority="61"/><w:lsdException w:name="Light Grid Accent 3" w:uiPriority="62"/><w:lsdException w:name="Medium Shading 1 Accent 3" w:uiPriority="63"/><w:lsdException w:name="Medium Shading 2 Accent 3" w:uiPriority="64"/><w:lsdException w:name="Medium List 1 Accent 3" w:uiPriority="65"/><w:lsdException w:name="Medium List 2 Accent 3" w:uiPriority="66"/><w:lsdException w:name="Medium Grid 1 Accent 3" w:uiPriority="67"/><w:lsdException w:name="Medium Grid 2 Accent 3" w:uiPriority="68"/><w:lsdException w:name="Medium Grid 3 Accent 3" w:uiPriority="69"/><w:lsdException w:name="Dark List Accent 3" w:uiPriority="70"/><w:lsdException w:name="Colorful Shading Accent 3" w:uiPriority="71"/><w:lsdException w:name="Colorful List Accent 3" w:uiPriority="72"/><w:lsdException w:name="Colorful Grid Accent 3" w:uiPriority="73"/><w:lsdException w:name="Light Shading Accent 4" w:uiPriority="60"/><w:lsdException w:name="Light List Accent 4" w:uiPriority="61"/><w:lsdException w:name="Light Grid Accent 4" w:uiPriority="62"/><w:lsdException w:name="Medium Shading 1 Accent 4" w:uiPriority="63"/><w:lsdException w:name="Medium Shading 2 Accent 4" w:uiPriority="64"/><w:lsdException w:name="Medium List 1 Accent 4" w:uiPriority="65"/><w:lsdException w:name="Medium List 2 Accent 4" w:uiPriority="66"/><w:lsdException w:name="Medium Grid 1 Accent 4" w:uiPriority="67"/><w:lsdException w:name="Medium Grid 2 Accent 4" w:uiPriority="68"/><w:lsdException w:name="Medium Grid 3 Accent 4" w:uiPriority="69"/><w:lsdException w:name="Dark List Accent 4" w:uiPriority="70"/><w:lsdException w:name="Colorful Shading Accent 4" w:uiPriority="71"/><w:lsdException w:name="Colorful List Accent 4" w:uiPriority="72"/><w:lsdException w:name="Colorful Grid Accent 4" w:uiPriority="73"/><w:lsdException w:name="Light Shading Accent 5" w:uiPriority="60"/><w:lsdException w:name="Light List Accent 5" w:uiPriority="61"/><w:lsdException w:name="Light Grid Accent 5" w:uiPriority="62"/><w:lsdException w:name="Medium Shading 1 Accent 5" w:uiPriority="63"/><w:lsdException w:name="Medium Shading 2 Accent 5" w:uiPriority="64"/><w:lsdException w:name="Medium List 1 Accent 5" w:uiPriority="65"/><w:lsdException w:name="Medium List 2 Accent 5" w:uiPriority="66"/><w:lsdException w:name="Medium Grid 1 Accent 5" w:uiPriority="67"/><w:lsdException w:name="Medium Grid 2 Accent 5" w:uiPriority="68"/><w:lsdException w:name="Medium Grid 3 Accent 5" w:uiPriority="69"/><w:lsdException w:name="Dark List Accent 5" w:uiPriority="70"/><w:lsdException w:name="Colorful Shading Accent 5" w:uiPriority="71"/><w:lsdException w:name="Colorful List Accent 5" w:uiPriority="72"/><w:lsdException w:name="Colorful Grid Accent 5" w:uiPriority="73"/><w:lsdException w:name="Light Shading Accent 6" w:uiPriority="60"/><w:lsdException w:name="Light List Accent 6" w:uiPriority="61"/><w:lsdException w:name="Light Grid Accent 6" w:uiPriority="62"/><w:lsdException w:name="Medium Shading 1 Accent 6" w:uiPriority="63"/><w:lsdException w:name="Medium Shading 2 Accent 6" w:uiPriority="64"/><w:lsdException w:name="Medium List 1 Accent 6" w:uiPriority="65"/><w:lsdException w:name="Medium List 2 Accent 6" w:uiPriority="66"/><w:lsdException w:name="Medium Grid 1 Accent 6" w:uiPriority="67"/><w:lsdException w:name="Medium Grid 2 Accent 6" w:uiPriority="68"/><w:lsdException w:name="Medium Grid 3 Accent 6" w:uiPriority="69"/><w:lsdException w:name="Dark List Accent 6" w:uiPriority="70"/><w:lsdException w:name="Colorful Shading Accent 6" w:uiPriority="71"/><w:lsdException w:name="Colorful List Accent 6" w:uiPriority="72"/><w:lsdException w:name="Colorful Grid Accent 6" w:uiPriority="73"/><w:lsdException w:name="Subtle Emphasis" w:uiPriority="19" w:qFormat="1"/><w:lsdException w:name="Intense Emphasis" w:uiPriority="21" w:qFormat="1"/><w:lsdException w:name="Subtle Reference" w:uiPriority="31" w:qFormat="1"/><w:lsdException w:name="Intense Reference" w:uiPriority="32" w:qFormat="1"/><w:lsdException w:name="Book Title" w:uiPriority="33" w:qFormat="1"/><w:lsdException w:name="Bibliography" w:semiHidden="1" w:uiPriority="37" w:unhideWhenUsed="1"/><w:lsdException w:name="TOC Heading" w:semiHidden="1" w:uiPriority="39" w:unhideWhenUsed="1" w:qFormat="1"/><w:lsdException w:name="Plain Table 1" w:uiPriority="41"/><w:lsdException w:name="Plain Table 2" w:uiPriority="42"/><w:lsdException w:name="Plain Table 3" w:uiPriority="43"/><w:lsdException w:name="Plain Table 4" w:uiPriority="44"/><w:lsdException w:name="Plain Table 5" w:uiPriority="45"/><w:lsdException w:name="Grid Table Light" w:uiPriority="40"/><w:lsdException w:name="Grid Table 1 Light" w:uiPriority="46"/><w:lsdException w:name="Grid Table 2" w:uiPriority="47"/><w:lsdException w:name="Grid Table 3" w:uiPriority="48"/><w:lsdException w:name="Grid Table 4" w:uiPriority="49"/><w:lsdException w:name="Grid Table 5 Dark" w:uiPriority="50"/><w:lsdException w:name="Grid Table 6 Colorful" w:uiPriority="51"/><w:lsdException w:name="Grid Table 7 Colorful" w:uiPriority="52"/><w:lsdException w:name="Grid Table 1 Light Accent 1" w:uiPriority="46"/><w:lsdException w:name="Grid Table 2 Accent 1" w:uiPriority="47"/><w:lsdException w:name="Grid Table 3 Accent 1" w:uiPriority="48"/><w:lsdException w:name="Grid Table 4 Accent 1" w:uiPriority="49"/><w:lsdException w:name="Grid Table 5 Dark Accent 1" w:uiPriority="50"/><w:lsdException w:name="Grid Table 6 Colorful Accent 1" w:uiPriority="51"/><w:lsdException w:name="Grid Table 7 Colorful Accent 1" w:uiPriority="52"/><w:lsdException w:name="Grid Table 1 Light Accent 2" w:uiPriority="46"/><w:lsdException w:name="Grid Table 2 Accent 2" w:uiPriority="47"/><w:lsdException w:name="Grid Table 3 Accent 2" w:uiPriority="48"/><w:lsdException w:name="Grid Table 4 Accent 2" w:uiPriority="49"/><w:lsdException w:name="Grid Table 5 Dark Accent 2" w:uiPriority="50"/><w:lsdException w:name="Grid Table 6 Colorful Accent 2" w:uiPriority="51"/><w:lsdException w:name="Grid Table 7 Colorful Accent 2" w:uiPriority="52"/><w:lsdException w:name="Grid Table 1 Light Accent 3" w:uiPriority="46"/><w:lsdException w:name="Grid Table 2 Accent 3" w:uiPriority="47"/><w:lsdException w:name="Grid Table 3 Accent 3" w:uiPriority="48"/><w:lsdException w:name="Grid Table 4 Accent 3" w:uiPriority="49"/><w:lsdException w:name="Grid Table 5 Dark Accent 3" w:uiPriority="50"/><w:lsdException w:name="Grid Table 6 Colorful Accent 3" w:uiPriority="51"/><w:lsdException w:name="Grid Table 7 Colorful Accent 3" w:uiPriority="52"/><w:lsdException w:name="Grid Table 1 Light Accent 4" w:uiPriority="46"/><w:lsdException w:name="Grid Table 2 Accent 4" w:uiPriority="47"/><w:lsdException w:name="Grid Table 3 Accent 4" w:uiPriority="48"/><w:lsdException w:name="Grid Table 4 Accent 4" w:uiPriority="49"/><w:lsdException w:name="Grid Table 5 Dark Accent 4" w:uiPriority="50"/><w:lsdException w:name="Grid Table 6 Colorful Accent 4" w:uiPriority="51"/><w:lsdException w:name="Grid Table 7 Colorful Accent 4" w:uiPriority="52"/><w:lsdException w:name="Grid Table 1 Light Accent 5" w:uiPriority="46"/><w:lsdException w:name="Grid Table 2 Accent 5" w:uiPriority="47"/><w:lsdException w:name="Grid Table 3 Accent 5" w:uiPriority="48"/><w:lsdException w:name="Grid Table 4 Accent 5" w:uiPriority="49"/><w:lsdException w:name="Grid Table 5 Dark Accent 5" w:uiPriority="50"/><w:lsdException w:name="Grid Table 6 Colorful Accent 5" w:uiPriority="51"/><w:lsdException w:name="Grid Table 7 Colorful Accent 5" w:uiPriority="52"/><w:lsdException w:name="Grid Table 1 Light Accent 6" w:uiPriority="46"/><w:lsdException w:name="Grid Table 2 Accent 6" w:uiPriority="47"/><w:lsdException w:name="Grid Table 3 Accent 6" w:uiPriority="48"/><w:lsdException w:name="Grid Table 4 Accent 6" w:uiPriority="49"/><w:lsdException w:name="Grid Table 5 Dark Accent 6" w:uiPriority="50"/><w:lsdException w:name="Grid Table 6 Colorful Accent 6" w:uiPriority="51"/><w:lsdException w:name="Grid Table 7 Colorful Accent 6" w:uiPriority="52"/><w:lsdException w:name="List Table 1 Light" w:uiPriority="46"/><w:lsdException w:name="List Table 2" w:uiPriority="47"/><w:lsdException w:name="List Table 3" w:uiPriority="48"/><w:lsdException w:name="List Table 4" w:uiPriority="49"/><w:lsdException w:name="List Table 5 Dark" w:uiPriority="50"/><w:lsdException w:name="List Table 6 Colorful" w:uiPriority="51"/><w:lsdException w:name="List Table 7 Colorful" w:uiPriority="52"/><w:lsdException w:name="List Table 1 Light Accent 1" w:uiPriority="46"/><w:lsdException w:name="List Table 2 Accent 1" w:uiPriority="47"/><w:lsdException w:name="List Table 3 Accent 1" w:uiPriority="48"/><w:lsdException w:name="List Table 4 Accent 1" w:uiPriority="49"/><w:lsdException w:name="List Table 5 Dark Accent 1" w:uiPriority="50"/><w:lsdException w:name="List Table 6 Colorful Accent 1" w:uiPriority="51"/><w:lsdException w:name="List Table 7 Colorful Accent 1" w:uiPriority="52"/><w:lsdException w:name="List Table 1 Light Accent 2" w:uiPriority="46"/><w:lsdException w:name="List Table 2 Accent 2" w:uiPriority="47"/><w:lsdException w:name="List Table 3 Accent 2" w:uiPriority="48"/><w:lsdException w:name="List Table 4 Accent 2" w:uiPriority="49"/><w:lsdException w:name="List Table 5 Dark Accent 2" w:uiPriority="50"/><w:lsdException w:name="List Table 6 Colorful Accent 2" w:uiPriority="51"/><w:lsdException w:name="List Table 7 Colorful Accent 2" w:uiPriority="52"/><w:lsdException w:name="List Table 1 Light Accent 3" w:uiPriority="46"/><w:lsdException w:name="List Table 2 Accent 3" w:uiPriority="47"/><w:lsdException w:name="List Table 3 Accent 3" w:uiPriority="48"/><w:lsdException w:name="List Table 4 Accent 3" w:uiPriority="49"/><w:lsdException w:name="List Table 5 Dark Accent 3" w:uiPriority="50"/><w:lsdException w:name="List Table 6 Colorful Accent 3" w:uiPriority="51"/><w:lsdException w:name="List Table 7 Colorful Accent 3" w:uiPriority="52"/><w:lsdException w:name="List Table 1 Light Accent 4" w:uiPriority="46"/><w:lsdException w:name="List Table 2 Accent 4" w:uiPriority="47"/><w:lsdException w:name="List Table 3 Accent 4" w:uiPriority="48"/><w:lsdException w:name="List Table 4 Accent 4" w:uiPriority="49"/><w:lsdException w:name="List Table 5 Dark Accent 4" w:uiPriority="50"/><w:lsdException w:name="List Table 6 Colorful Accent 4" w:uiPriority="51"/><w:lsdException w:name="List Table 7 Colorful Accent 4" w:uiPriority="52"/><w:lsdException w:name="List Table 1 Light Accent 5" w:uiPriority="46"/><w:lsdException w:name="List Table 2 Accent 5" w:uiPriority="47"/><w:lsdException w:name="List Table 3 Accent 5" w:uiPriority="48"/><w:lsdException w:name="List Table 4 Accent 5" w:uiPriority="49"/><w:lsdException w:name="List Table 5 Dark Accent 5" w:uiPriority="50"/><w:lsdException w:name="List Table 6 Colorful Accent 5" w:uiPriority="51"/><w:lsdException w:name="List Table 7 Colorful Accent 5" w:uiPriority="52"/><w:lsdException w:name="List Table 1 Light Accent 6" w:uiPriority="46"/><w:lsdException w:name="List Table 2 Accent 6" w:uiPriority="47"/><w:lsdException w:name="List Table 3 Accent 6" w:uiPriority="48"/><w:lsdException w:name="List Table 4 Accent 6" w:uiPriority="49"/><w:lsdException w:name="List Table 5 Dark Accent 6" w:uiPriority="50"/><w:lsdException w:name="List Table 6 Colorful Accent 6" w:uiPriority="51"/><w:lsdException w:name="List Table 7 Colorful Accent 6" w:uiPriority="52"/><w:lsdException w:name="Mention" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Smart Hyperlink" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Hashtag" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Unresolved Mention" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Smart Link" w:semiHidden="1" w:unhideWhenUsed="1"/></w:latentStyles><w:style w:type="paragraph" w:default="1" w:styleId="Normal"><w:name w:val="Normal"/><w:qFormat/></w:style><w:style w:type="character" w:default="1" w:styleId="DefaultParagraphFont"><w:name w:val="Default Paragraph Font"/><w:uiPriority w:val="1"/><w:semiHidden/><w:unhideWhenUsed/></w:style><w:style w:type="table" w:default="1" w:styleId="TableNormal"><w:name w:val="Normal Table"/><w:uiPriority w:val="99"/><w:semiHidden/><w:unhideWhenUsed/><w:tblPr><w:tblInd w:w="0" w:type="dxa"/><w:tblCellMar><w:top w:w="0" w:type="dxa"/><w:left w:w="108" w:type="dxa"/><w:bottom w:w="0" w:type="dxa"/><w:right w:w="108" w:type="dxa"/></w:tblCellMar></w:tblPr></w:style><w:style w:type="numbering" w:default="1" w:styleId="NoList"><w:name w:val="No List"/><w:uiPriority w:val="99"/><w:semiHidden/><w:unhideWhenUsed/></w:style></w:styles> \ No newline at end of file
diff --git a/extract/test/background_lines_1.pdf.mutool.docx.dir.ref/word/theme/theme1.xml b/extract/test/background_lines_1.pdf.mutool.docx.dir.ref/word/theme/theme1.xml
new file mode 100644
index 00000000..d1a502f8
--- /dev/null
+++ b/extract/test/background_lines_1.pdf.mutool.docx.dir.ref/word/theme/theme1.xml
@@ -0,0 +1,2 @@
+<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
+<a:theme xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main" name="Office Theme"><a:themeElements><a:clrScheme name="Office"><a:dk1><a:sysClr val="windowText" lastClr="000000"/></a:dk1><a:lt1><a:sysClr val="window" lastClr="FFFFFF"/></a:lt1><a:dk2><a:srgbClr val="44546A"/></a:dk2><a:lt2><a:srgbClr val="E7E6E6"/></a:lt2><a:accent1><a:srgbClr val="4472C4"/></a:accent1><a:accent2><a:srgbClr val="ED7D31"/></a:accent2><a:accent3><a:srgbClr val="A5A5A5"/></a:accent3><a:accent4><a:srgbClr val="FFC000"/></a:accent4><a:accent5><a:srgbClr val="5B9BD5"/></a:accent5><a:accent6><a:srgbClr val="70AD47"/></a:accent6><a:hlink><a:srgbClr val="0563C1"/></a:hlink><a:folHlink><a:srgbClr val="954F72"/></a:folHlink></a:clrScheme><a:fontScheme name="Office"><a:majorFont><a:latin typeface="Calibri Light" panose="020F0302020204030204"/><a:ea typeface=""/><a:cs typeface=""/><a:font script="Jpan" typeface="游ゴシック Light"/><a:font script="Hang" typeface="맑은 고딕"/><a:font script="Hans" typeface="等线 Light"/><a:font script="Hant" typeface="新細明體"/><a:font script="Arab" typeface="Times New Roman"/><a:font script="Hebr" typeface="Times New Roman"/><a:font script="Thai" typeface="Angsana New"/><a:font script="Ethi" typeface="Nyala"/><a:font script="Beng" typeface="Vrinda"/><a:font script="Gujr" typeface="Shruti"/><a:font script="Khmr" typeface="MoolBoran"/><a:font script="Knda" typeface="Tunga"/><a:font script="Guru" typeface="Raavi"/><a:font script="Cans" typeface="Euphemia"/><a:font script="Cher" typeface="Plantagenet Cherokee"/><a:font script="Yiii" typeface="Microsoft Yi Baiti"/><a:font script="Tibt" typeface="Microsoft Himalaya"/><a:font script="Thaa" typeface="MV Boli"/><a:font script="Deva" typeface="Mangal"/><a:font script="Telu" typeface="Gautami"/><a:font script="Taml" typeface="Latha"/><a:font script="Syrc" typeface="Estrangelo Edessa"/><a:font script="Orya" typeface="Kalinga"/><a:font script="Mlym" typeface="Kartika"/><a:font script="Laoo" typeface="DokChampa"/><a:font script="Sinh" typeface="Iskoola Pota"/><a:font script="Mong" typeface="Mongolian Baiti"/><a:font script="Viet" typeface="Times New Roman"/><a:font script="Uigh" typeface="Microsoft Uighur"/><a:font script="Geor" typeface="Sylfaen"/><a:font script="Armn" typeface="Arial"/><a:font script="Bugi" typeface="Leelawadee UI"/><a:font script="Bopo" typeface="Microsoft JhengHei"/><a:font script="Java" typeface="Javanese Text"/><a:font script="Lisu" typeface="Segoe UI"/><a:font script="Mymr" typeface="Myanmar Text"/><a:font script="Nkoo" typeface="Ebrima"/><a:font script="Olck" typeface="Nirmala UI"/><a:font script="Osma" typeface="Ebrima"/><a:font script="Phag" typeface="Phagspa"/><a:font script="Syrn" typeface="Estrangelo Edessa"/><a:font script="Syrj" typeface="Estrangelo Edessa"/><a:font script="Syre" typeface="Estrangelo Edessa"/><a:font script="Sora" typeface="Nirmala UI"/><a:font script="Tale" typeface="Microsoft Tai Le"/><a:font script="Talu" typeface="Microsoft New Tai Lue"/><a:font script="Tfng" typeface="Ebrima"/></a:majorFont><a:minorFont><a:latin typeface="Calibri" panose="020F0502020204030204"/><a:ea typeface=""/><a:cs typeface=""/><a:font script="Jpan" typeface="游明朝"/><a:font script="Hang" typeface="맑은 고딕"/><a:font script="Hans" typeface="等线"/><a:font script="Hant" typeface="新細明體"/><a:font script="Arab" typeface="Arial"/><a:font script="Hebr" typeface="Arial"/><a:font script="Thai" typeface="Cordia New"/><a:font script="Ethi" typeface="Nyala"/><a:font script="Beng" typeface="Vrinda"/><a:font script="Gujr" typeface="Shruti"/><a:font script="Khmr" typeface="DaunPenh"/><a:font script="Knda" typeface="Tunga"/><a:font script="Guru" typeface="Raavi"/><a:font script="Cans" typeface="Euphemia"/><a:font script="Cher" typeface="Plantagenet Cherokee"/><a:font script="Yiii" typeface="Microsoft Yi Baiti"/><a:font script="Tibt" typeface="Microsoft Himalaya"/><a:font script="Thaa" typeface="MV Boli"/><a:font script="Deva" typeface="Mangal"/><a:font script="Telu" typeface="Gautami"/><a:font script="Taml" typeface="Latha"/><a:font script="Syrc" typeface="Estrangelo Edessa"/><a:font script="Orya" typeface="Kalinga"/><a:font script="Mlym" typeface="Kartika"/><a:font script="Laoo" typeface="DokChampa"/><a:font script="Sinh" typeface="Iskoola Pota"/><a:font script="Mong" typeface="Mongolian Baiti"/><a:font script="Viet" typeface="Arial"/><a:font script="Uigh" typeface="Microsoft Uighur"/><a:font script="Geor" typeface="Sylfaen"/><a:font script="Armn" typeface="Arial"/><a:font script="Bugi" typeface="Leelawadee UI"/><a:font script="Bopo" typeface="Microsoft JhengHei"/><a:font script="Java" typeface="Javanese Text"/><a:font script="Lisu" typeface="Segoe UI"/><a:font script="Mymr" typeface="Myanmar Text"/><a:font script="Nkoo" typeface="Ebrima"/><a:font script="Olck" typeface="Nirmala UI"/><a:font script="Osma" typeface="Ebrima"/><a:font script="Phag" typeface="Phagspa"/><a:font script="Syrn" typeface="Estrangelo Edessa"/><a:font script="Syrj" typeface="Estrangelo Edessa"/><a:font script="Syre" typeface="Estrangelo Edessa"/><a:font script="Sora" typeface="Nirmala UI"/><a:font script="Tale" typeface="Microsoft Tai Le"/><a:font script="Talu" typeface="Microsoft New Tai Lue"/><a:font script="Tfng" typeface="Ebrima"/></a:minorFont></a:fontScheme><a:fmtScheme name="Office"><a:fillStyleLst><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:gradFill rotWithShape="1"><a:gsLst><a:gs pos="0"><a:schemeClr val="phClr"><a:lumMod val="110000"/><a:satMod val="105000"/><a:tint val="67000"/></a:schemeClr></a:gs><a:gs pos="50000"><a:schemeClr val="phClr"><a:lumMod val="105000"/><a:satMod val="103000"/><a:tint val="73000"/></a:schemeClr></a:gs><a:gs pos="100000"><a:schemeClr val="phClr"><a:lumMod val="105000"/><a:satMod val="109000"/><a:tint val="81000"/></a:schemeClr></a:gs></a:gsLst><a:lin ang="5400000" scaled="0"/></a:gradFill><a:gradFill rotWithShape="1"><a:gsLst><a:gs pos="0"><a:schemeClr val="phClr"><a:satMod val="103000"/><a:lumMod val="102000"/><a:tint val="94000"/></a:schemeClr></a:gs><a:gs pos="50000"><a:schemeClr val="phClr"><a:satMod val="110000"/><a:lumMod val="100000"/><a:shade val="100000"/></a:schemeClr></a:gs><a:gs pos="100000"><a:schemeClr val="phClr"><a:lumMod val="99000"/><a:satMod val="120000"/><a:shade val="78000"/></a:schemeClr></a:gs></a:gsLst><a:lin ang="5400000" scaled="0"/></a:gradFill></a:fillStyleLst><a:lnStyleLst><a:ln w="6350" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:prstDash val="solid"/><a:miter lim="800000"/></a:ln><a:ln w="12700" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:prstDash val="solid"/><a:miter lim="800000"/></a:ln><a:ln w="19050" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:prstDash val="solid"/><a:miter lim="800000"/></a:ln></a:lnStyleLst><a:effectStyleLst><a:effectStyle><a:effectLst/></a:effectStyle><a:effectStyle><a:effectLst/></a:effectStyle><a:effectStyle><a:effectLst><a:outerShdw blurRad="57150" dist="19050" dir="5400000" algn="ctr" rotWithShape="0"><a:srgbClr val="000000"><a:alpha val="63000"/></a:srgbClr></a:outerShdw></a:effectLst></a:effectStyle></a:effectStyleLst><a:bgFillStyleLst><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:solidFill><a:schemeClr val="phClr"><a:tint val="95000"/><a:satMod val="170000"/></a:schemeClr></a:solidFill><a:gradFill rotWithShape="1"><a:gsLst><a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="93000"/><a:satMod val="150000"/><a:shade val="98000"/><a:lumMod val="102000"/></a:schemeClr></a:gs><a:gs pos="50000"><a:schemeClr val="phClr"><a:tint val="98000"/><a:satMod val="130000"/><a:shade val="90000"/><a:lumMod val="103000"/></a:schemeClr></a:gs><a:gs pos="100000"><a:schemeClr val="phClr"><a:shade val="63000"/><a:satMod val="120000"/></a:schemeClr></a:gs></a:gsLst><a:lin ang="5400000" scaled="0"/></a:gradFill></a:bgFillStyleLst></a:fmtScheme></a:themeElements><a:objectDefaults/><a:extraClrSchemeLst/><a:extLst><a:ext uri="{05A4C25C-085E-4340-85A3-A5531E510DB2}"><thm15:themeFamily xmlns:thm15="http://schemas.microsoft.com/office/thememl/2012/main" name="Office Theme" id="{62F939B6-93AF-4DB8-9C6B-D6C7DFDC589F}" vid="{4A3C46E8-61CC-4603-A589-7422A47A8E4A}"/></a:ext></a:extLst></a:theme> \ No newline at end of file
diff --git a/extract/test/background_lines_1.pdf.mutool.docx.dir.ref/word/webSettings.xml b/extract/test/background_lines_1.pdf.mutool.docx.dir.ref/word/webSettings.xml
new file mode 100644
index 00000000..629ae06a
--- /dev/null
+++ b/extract/test/background_lines_1.pdf.mutool.docx.dir.ref/word/webSettings.xml
@@ -0,0 +1,2 @@
+<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
+<w:webSettings xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships" xmlns:w="http://schemas.openxmlformats.org/wordprocessingml/2006/main" xmlns:w14="http://schemas.microsoft.com/office/word/2010/wordml" xmlns:w15="http://schemas.microsoft.com/office/word/2012/wordml" xmlns:w16cex="http://schemas.microsoft.com/office/word/2018/wordml/cex" xmlns:w16cid="http://schemas.microsoft.com/office/word/2016/wordml/cid" xmlns:w16="http://schemas.microsoft.com/office/word/2018/wordml" xmlns:w16se="http://schemas.microsoft.com/office/word/2015/wordml/symex" mc:Ignorable="w14 w15 w16se w16cid w16 w16cex"><w:optimizeForBrowser/><w:allowPNG/></w:webSettings> \ No newline at end of file
diff --git a/extract/test/background_lines_1.pdf.mutool.html.ref b/extract/test/background_lines_1.pdf.mutool.html.ref
new file mode 100644
index 00000000..74c4f28f
--- /dev/null
+++ b/extract/test/background_lines_1.pdf.mutool.html.ref
@@ -0,0 +1,51 @@
+<html>
+<body>
+
+
+<p>Annual Report 2009-10
+</p>
+
+<p>The Red Ribbon Express (RRE) is the world&#x2019;s largest mass mobilisation drive on HIV/AIDS. The train will travel through 22 states, during its one year long journey, halting at 152 stations. Through the RRE, NACO, intends to break the silence surrounding the issue of HIV/AIDS, by taking the messages on prevention, care and support to people living in small towns and villages across the country. The aim is also to create an environment, free from stigma and discrimination faced by people living with HIV, so they can access the services, without fear and prejudice, and live a life of dignity. It has proved to be a successful multi- sectoral initiative, of the NACO and a powerful advocacy tool, both at the state and district level, besides enhancing local capacity to deal with HIV prevention.
+</p>
+
+<p>Table 6.1: The highlights of RRE&#x2013;II coverage (till 11 March, 2010)
+</p>
+
+<table border="1" style="border-collapse:collapse">
+ <tr>
+ <td><p><b>State </p></b></td><td><p><b>Date </p></b></td><td><p><b>Halt stations </p></b></td><td><p><b>Halt days</p></b></td><td><p><b>Persons directly reached (in lakh)</p></b></td><td><p><b>Persons trained</p></b></td><td><p><b>Persons counseled</p></b></td><td><p><b>Persons tested for HIV</p></b></td>
+ </tr>
+ <tr>
+ <td><p>Delhi</p></td><td><p>1.12.2009</p></td><td rowspan="2"><p>8</p></td><td rowspan="2"><p>17</p></td><td rowspan="2"><p>1.29</p></td><td rowspan="2"><p>3,665</p></td><td rowspan="2"><p>2,409</p></td><td rowspan="2"><p>1,000</p></td>
+ </tr>
+ <tr>
+ <td><p>Rajasthan</p></td><td><p>2.12.2009 to 19.12.2009</p></td>
+ </tr>
+ <tr>
+ <td><p>Gujarat</p></td><td><p>20.12.2009 to 3.1.2010</p></td><td><p>6</p></td><td><p>13</p></td><td><p>6.03</p></td><td><p>3,810</p></td><td><p>2,317</p></td><td><p>1,453</p></td>
+ </tr>
+ <tr>
+ <td><p>Maharashtra</p></td><td><p>4.01.2010 to 1.2.2010</p></td><td><p>13</p></td><td><p>26</p></td><td><p>1.27</p></td><td><p>5,680</p></td><td><p>9,027</p></td><td><p>4,153</p></td>
+ </tr>
+ <tr>
+ <td><p>Karnataka </p></td><td><p>2.2.2010 to 22.2.2010</p></td><td><p>11</p></td><td><p>19</p></td><td><p>1.80</p></td><td><p>5,741</p></td><td><p>3,658</p></td><td><p>3,183</p></td>
+ </tr>
+ <tr>
+ <td><p>Kerala</p></td><td><p>23.2.2010 to 11.3.2010</p></td><td><p>9</p></td><td><p>17</p></td><td><p>1.42</p></td><td><p>3,559</p></td><td><p>2,173</p></td><td><p>855</p></td>
+ </tr>
+ <tr>
+ <td colspan="2"><p><b>Total</p></b></td><td><p><b>47</p></b></td><td><p><b>92</p></b></td><td><p><b>11.81</p></b></td><td><p><b>22,455</p></b></td><td><p><b>19,584</p></b></td><td><p><b>10,644</p></b></td>
+ </tr>
+</table>
+
+
+
+<p>It includes visitors to train exhibition and those reached through outreach activities
+</p>
+
+<p>about injecting drug use and unprotected sex, <b>Radio programmes: </b>Three radio programmes in reducing stigma and discrimination associated Hindi &#x2013; &#x201c;<i>Babli Boli</i>&#x201d;, &#x201c;<i>5 Down Mohabbat Express</i>&#x201d; attached to HIV/AIDS and promoting HIV and &#x201c;<i>Kitne Door, Kitne Pass</i>&#x201d; were launched by related services. The music competitions and NACO, targeting rural women, rural youth and football tournaments organised at district level urban migrants respectively. The programmes culminated in the state level mega events, which were aired for six months from September, saw huge youth participation. 2009 to March, 2010. The duration of the each episode was half an hour and two episodes Faith based organisations were also sensitised of each programme were aired every week. and involved in the campaign. A special effort The programmes were linked to the ground was made to reach out to the out-of-school youth mobilisation in 21 vulnerable districts, in the in the states through training of youth clubs at states of UP, Bihar, Rajasthan, MP and Delhi district, block and village levels. The winners through 100 Radio Listener Clubs formed in each of the music competitions positioned as &quot;youth of these districts. The radio clubs promoted not icons&quot; are further reaching out with messages on only listenership of the programmes, but also HIV/AIDS to the community through road shows at helped in further dissemination of messages in village/block level in their respective districts. the communities. The SACS also produce and air
+</p>
+
+<p>29
+</p></body>
+</html>
diff --git a/extract/test/background_lines_1.pdf.mutool.odt.dir.ref/META-INF/manifest.xml b/extract/test/background_lines_1.pdf.mutool.odt.dir.ref/META-INF/manifest.xml
new file mode 100644
index 00000000..a75f3862
--- /dev/null
+++ b/extract/test/background_lines_1.pdf.mutool.odt.dir.ref/META-INF/manifest.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<manifest:manifest xmlns:manifest="urn:oasis:names:tc:opendocument:xmlns:manifest:1.0" manifest:version="1.3" xmlns:loext="urn:org:documentfoundation:names:experimental:office:xmlns:loext:1.0">
+ <manifest:file-entry manifest:full-path="/" manifest:version="1.3" manifest:media-type="application/vnd.oasis.opendocument.text"/>
+ <manifest:file-entry manifest:full-path="meta.xml" manifest:media-type="text/xml"/>
+ <manifest:file-entry manifest:full-path="settings.xml" manifest:media-type="text/xml"/>
+ <manifest:file-entry manifest:full-path="Configurations2/" manifest:media-type="application/vnd.sun.xml.ui.configuration"/>
+ <manifest:file-entry manifest:full-path="manifest.rdf" manifest:media-type="application/rdf+xml"/>
+ <manifest:file-entry manifest:full-path="styles.xml" manifest:media-type="text/xml"/>
+ <manifest:file-entry manifest:full-path="content.xml" manifest:media-type="text/xml"/>
+ <manifest:file-entry manifest:full-path="Thumbnails/thumbnail.png" manifest:media-type="image/png"/>
+<manifest:file-entry manifest:full-path="Pictures/image11.jpeg" manifest:media-type="image/jpeg"/>
+</manifest:manifest> \ No newline at end of file
diff --git a/extract/test/background_lines_1.pdf.mutool.odt.dir.ref/Pictures/image11.jpeg b/extract/test/background_lines_1.pdf.mutool.odt.dir.ref/Pictures/image11.jpeg
new file mode 100644
index 00000000..6f217acf
--- /dev/null
+++ b/extract/test/background_lines_1.pdf.mutool.odt.dir.ref/Pictures/image11.jpeg
Binary files differ
diff --git a/extract/test/background_lines_1.pdf.mutool.odt.dir.ref/Thumbnails/thumbnail.png b/extract/test/background_lines_1.pdf.mutool.odt.dir.ref/Thumbnails/thumbnail.png
new file mode 100644
index 00000000..0dd1608e
--- /dev/null
+++ b/extract/test/background_lines_1.pdf.mutool.odt.dir.ref/Thumbnails/thumbnail.png
@@ -0,0 +1,2 @@
+PNG
+
diff --git a/extract/test/background_lines_1.pdf.mutool.odt.dir.ref/content.xml b/extract/test/background_lines_1.pdf.mutool.odt.dir.ref/content.xml
new file mode 100644
index 00000000..c7d01695
--- /dev/null
+++ b/extract/test/background_lines_1.pdf.mutool.odt.dir.ref/content.xml
@@ -0,0 +1,359 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<office:document-content xmlns:css3t="http://www.w3.org/TR/css3-text/" xmlns:grddl="http://www.w3.org/2003/g/data-view#" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xforms="http://www.w3.org/2002/xforms" xmlns:dom="http://www.w3.org/2001/xml-events" xmlns:script="urn:oasis:names:tc:opendocument:xmlns:script:1.0" xmlns:form="urn:oasis:names:tc:opendocument:xmlns:form:1.0" xmlns:math="http://www.w3.org/1998/Math/MathML" xmlns:number="urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0" xmlns:field="urn:openoffice:names:experimental:ooo-ms-interop:xmlns:field:1.0" xmlns:meta="urn:oasis:names:tc:opendocument:xmlns:meta:1.0" xmlns:loext="urn:org:documentfoundation:names:experimental:office:xmlns:loext:1.0" xmlns:officeooo="http://openoffice.org/2009/office" xmlns:table="urn:oasis:names:tc:opendocument:xmlns:table:1.0" xmlns:chart="urn:oasis:names:tc:opendocument:xmlns:chart:1.0" xmlns:tableooo="http://openoffice.org/2009/table" xmlns:draw="urn:oasis:names:tc:opendocument:xmlns:drawing:1.0" xmlns:rpt="http://openoffice.org/2005/report" xmlns:dr3d="urn:oasis:names:tc:opendocument:xmlns:dr3d:1.0" xmlns:of="urn:oasis:names:tc:opendocument:xmlns:of:1.2" xmlns:text="urn:oasis:names:tc:opendocument:xmlns:text:1.0" xmlns:style="urn:oasis:names:tc:opendocument:xmlns:style:1.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:calcext="urn:org:documentfoundation:names:experimental:calc:xmlns:calcext:1.0" xmlns:oooc="http://openoffice.org/2004/calc" xmlns:drawooo="http://openoffice.org/2010/draw" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:ooo="http://openoffice.org/2004/office" xmlns:ooow="http://openoffice.org/2004/writer" xmlns:fo="urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0" xmlns:formx="urn:openoffice:names:experimental:ooxml-odf-interop:xmlns:form:1.0" xmlns:svg="urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0" xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" office:version="1.3"><office:scripts/><office:font-face-decls><style:font-face style:name="Liberation Serif" svg:font-family="&apos;Liberation Serif&apos;" style:font-family-generic="roman" style:font-pitch="variable"/><style:font-face style:name="Liberation Sans" svg:font-family="&apos;Liberation Sans&apos;" style:font-family-generic="swiss" style:font-pitch="variable"/><style:font-face style:name="Unifont" svg:font-family="Unifont" style:font-family-generic="system" style:font-pitch="variable"/></office:font-face-decls><office:automatic-styles><style:style style:name="T17" style:family="text"><style:text-properties style:font-name="TrebuchetMS-Italic" fo:font-size="10.50pt" fo:font-weight="normal" fo:font-style="italic" /></style:style><style:style style:name="T16" style:family="text"><style:text-properties style:font-name="TrebuchetMS-Bold" fo:font-size="10.50pt" fo:font-weight="bold" fo:font-style="normal" /></style:style><style:style style:name="T13" style:family="text"><style:text-properties style:font-name="TrebuchetMS-Bold" fo:font-size="10.00pt" fo:font-weight="bold" fo:font-style="normal" /></style:style><style:style style:name="T12" style:family="text"><style:text-properties style:font-name="TrebuchetMS" fo:font-size="10.50pt" fo:font-weight="normal" fo:font-style="normal" /></style:style><style:style style:name="T14" style:family="text"><style:text-properties style:font-name="TrebuchetMS" fo:font-size="10.00pt" fo:font-weight="normal" fo:font-style="normal" /></style:style><style:style style:name="T11" style:family="text"><style:text-properties style:font-name="TrebuchetMS" fo:font-size="9.00pt" fo:font-weight="normal" fo:font-style="normal" /></style:style><style:style style:name="T15" style:family="text"><style:text-properties style:font-name="TrebuchetMS" fo:font-size="7.00pt" fo:font-weight="normal" fo:font-style="normal" /></style:style><style:style style:name="gr1" style:family="graphic">
+<style:graphic-properties draw:stroke="none" svg:stroke-color="#000000" draw:fill="none" draw:fill-color="#ffffff" fo:min-height="1.9898in" style:run-through="foreground" style:wrap="run-through" style:number-wrapped-paragraphs="no-limit" style:vertical-pos="from-top" style:vertical-rel="paragraph" style:horizontal-pos="from-left" style:horizontal-rel="paragraph" />
+<style:paragraph-properties style:writing-mode="lr-tb"/>
+</style:style>
+<style:style style:name="fr1" style:family="graphic" style:parent-style-name="Graphics">
+<style:graphic-properties fo:margin-left="0in" fo:margin-right="0in" fo:margin-top="0in" fo:margin-bottom="0in" style:vertical-pos="top" style:vertical-rel="baseline" fo:background-color="transparent" draw:fill="none" draw:fill-color="#ffffff" fo:padding="0in" fo:border="none" style:mirror="none" fo:clip="rect(0in, 0in, 0in, 0in)" draw:luminance="0%" draw:contrast="0%" draw:red="0%" draw:green="0%" draw:blue="0%" draw:gamma="100%" draw:color-inversion="false" draw:image-opacity="100%" draw:color-mode="standard"/>
+</style:style>
+</office:automatic-styles>
+<style:style style:name="extract.table" style:family="table"/>
+<style:style style:name="extract.table.column" style:family="table-column"/>
+<office:body><office:text><text:sequence-decls><text:sequence-decl text:display-outline-level="0" text:name="Illustration"/><text:sequence-decl text:display-outline-level="0" text:name="Table"/><text:sequence-decl text:display-outline-level="0" text:name="Text"/><text:sequence-decl text:display-outline-level="0" text:name="Drawing"/><text:sequence-decl text:display-outline-level="0" text:name="Figure"/></text:sequence-decls><text:p text:style-name="Standard"/>
+<text:p text:style-name="Standard">
+<draw:frame text:anchor-type="paragraph" draw:z-index="5" draw:name="Shape1" draw:style-name="gr1" draw:text-style-name="Standard" svg:width="1.266052in" svg:height="11.062500in" draw:transform="rotate (-0.000003) translate (-0.000005in 11.749953in)">
+<draw:text-box>
+
+
+<text:p><text:span text:style-name="T11">Annual Report 2009-10</text:span></text:p>
+
+<text:p><text:span text:style-name="T11">29</text:span></text:p>
+</draw:text-box>
+</draw:frame>
+</text:p>
+
+
+<text:p><text:span text:style-name="T12">The Red Ribbon Express (RRE) is the world&#x2019;s largest mass mobilisation drive on HIV/AIDS. The train will travel through 22 states, during its one year long journey, halting at 152 stations. Through the RRE, NACO, intends to break the silence surrounding the issue of HIV/AIDS, by taking the messages on prevention, care and support to people living in small towns and villages across the country. The aim is also to create an environment, free from stigma and discrimination faced by people living with HIV, so they can access the services, without fear and prejudice, and live a life of dignity. It has proved to be a successful multi- sectoral initiative, of the NACO and a powerful advocacy tool, both at the state and district level, besides enhancing local capacity to deal with HIV prevention.</text:span></text:p>
+
+<text:p><text:span text:style-name="T12">Table 6.1: The highlights of RRE&#x2013;II coverage (till 11 March, 2010) </text:span></text:p>
+ <table:table text:style-name="extract.table" table:name="extract.table.1">
+ <table:table-columns>
+ <table:table-column table:style-name="extract.table.column"/>
+ <table:table-column table:style-name="extract.table.column"/>
+ <table:table-column table:style-name="extract.table.column"/>
+ <table:table-column table:style-name="extract.table.column"/>
+ <table:table-column table:style-name="extract.table.column"/>
+ <table:table-column table:style-name="extract.table.column"/>
+ <table:table-column table:style-name="extract.table.column"/>
+ <table:table-column table:style-name="extract.table.column"/>
+ </table:table-columns>
+ <table:table-row>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">State </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">Date </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">Halt stations </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">Halt days</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">Persons directly reached (in lakh)</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">Persons trained</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">Persons counseled</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">Persons tested for HIV</text:span></text:p>
+ </table:table-cell>
+ </table:table-row>
+ <table:table-row>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">Delhi</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">1.12.2009</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell table:number-rows-spanned="2">
+
+
+<text:p><text:span text:style-name="T14">8</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell table:number-rows-spanned="2">
+
+
+<text:p><text:span text:style-name="T14">17</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell table:number-rows-spanned="2">
+
+
+<text:p><text:span text:style-name="T14">1.29</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell table:number-rows-spanned="2">
+
+
+<text:p><text:span text:style-name="T14">3,665</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell table:number-rows-spanned="2">
+
+
+<text:p><text:span text:style-name="T14">2,409</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell table:number-rows-spanned="2">
+
+
+<text:p><text:span text:style-name="T14">1,000</text:span></text:p>
+ </table:table-cell>
+ </table:table-row>
+ <table:table-row>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">Rajasthan</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">2.12.2009 to 19.12.2009</text:span></text:p>
+ </table:table-cell>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ </table:table-row>
+ <table:table-row>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">Gujarat</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">20.12.2009 to 3.1.2010</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">6</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">13</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">6.03</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">3,810</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">2,317</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">1,453</text:span></text:p>
+ </table:table-cell>
+ </table:table-row>
+ <table:table-row>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">Maharashtra</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">4.01.2010 to 1.2.2010</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">13</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">26</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">1.27</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">5,680</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">9,027</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">4,153</text:span></text:p>
+ </table:table-cell>
+ </table:table-row>
+ <table:table-row>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">Karnataka </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">2.2.2010 to 22.2.2010</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">11</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">19</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">1.80</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">5,741</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">3,658</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">3,183</text:span></text:p>
+ </table:table-cell>
+ </table:table-row>
+ <table:table-row>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">Kerala</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">23.2.2010 to 11.3.2010</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">9</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">17</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">1.42</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">3,559</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">2,173</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">855</text:span></text:p>
+ </table:table-cell>
+ </table:table-row>
+ <table:table-row>
+ <table:table-cell table:number-columns-spanned="2">
+
+
+<text:p><text:span text:style-name="T13">Total</text:span></text:p>
+ </table:table-cell>
+ <table:covered-table-cell/>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">47</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">92</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">11.81</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">22,455</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">19,584</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">10,644</text:span></text:p>
+ </table:table-cell>
+ </table:table-row>
+ </table:table>
+
+
+<text:p><text:span text:style-name="T15">It includes visitors to train exhibition and those reached through outreach activities</text:span></text:p>
+
+<text:p><text:span text:style-name="T12">about injecting drug use and unprotected sex, </text:span><text:span text:style-name="T16">Radio programmes: </text:span><text:span text:style-name="T12">Three radio programmes in reducing stigma and discrimination associated Hindi &#x2013; &#x201c;</text:span><text:span text:style-name="T17">Babli Boli</text:span><text:span text:style-name="T12">&#x201d;, &#x201c;</text:span><text:span text:style-name="T17">5 Down Mohabbat Express</text:span><text:span text:style-name="T12">&#x201d; attached to HIV/AIDS and promoting HIV and &#x201c;</text:span><text:span text:style-name="T17">Kitne Door, Kitne Pass</text:span><text:span text:style-name="T12">&#x201d; were launched by related services. The music competitions and NACO, targeting rural women, rural youth and football tournaments organised at district level urban migrants respectively. The programmes culminated in the state level mega events, which were aired for six months from September, saw huge youth participation. 2009 to March, 2010. The duration of the each episode was half an hour and two episodes Faith based organisations were also sensitised of each programme were aired every week. and involved in the campaign. A special effort The programmes were linked to the ground was made to reach out to the out-of-school youth mobilisation in 21 vulnerable districts, in the in the states through training of youth clubs at states of UP, Bihar, Rajasthan, MP and Delhi district, block and village levels. The winners through 100 Radio Listener Clubs formed in each of the music competitions positioned as &quot;youth of these districts. The radio clubs promoted not icons&quot; are further reaching out with messages on only listenership of the programmes, but also HIV/AIDS to the community through road shows at helped in further dissemination of messages in village/block level in their respective districts. the communities. The SACS also produce and air </text:span></text:p>
+<text:p text:style-name="Standard">
+<draw:frame draw:style-name="fr1" draw:name="Picture rId11" text:anchor-type="as-char" svg:width="2.527778in" svg:height="2.958333in" draw:z-index="0">
+<draw:image xlink:href="Pictures/image11.jpeg" xlink:type="simple" xlink:show="embed" xlink:actuate="onLoad" draw:mime-type="image/jpeg"/>
+</draw:frame>
+</text:p>
+</office:text></office:body></office:document-content> \ No newline at end of file
diff --git a/extract/test/background_lines_1.pdf.mutool.odt.dir.ref/manifest.rdf b/extract/test/background_lines_1.pdf.mutool.odt.dir.ref/manifest.rdf
new file mode 100644
index 00000000..927e206b
--- /dev/null
+++ b/extract/test/background_lines_1.pdf.mutool.odt.dir.ref/manifest.rdf
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="utf-8"?>
+<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
+ <rdf:Description rdf:about="styles.xml">
+ <rdf:type rdf:resource="http://docs.oasis-open.org/ns/office/1.2/meta/odf#StylesFile"/>
+ </rdf:Description>
+ <rdf:Description rdf:about="">
+ <ns0:hasPart xmlns:ns0="http://docs.oasis-open.org/ns/office/1.2/meta/pkg#" rdf:resource="styles.xml"/>
+ </rdf:Description>
+ <rdf:Description rdf:about="content.xml">
+ <rdf:type rdf:resource="http://docs.oasis-open.org/ns/office/1.2/meta/odf#ContentFile"/>
+ </rdf:Description>
+ <rdf:Description rdf:about="">
+ <ns0:hasPart xmlns:ns0="http://docs.oasis-open.org/ns/office/1.2/meta/pkg#" rdf:resource="content.xml"/>
+ </rdf:Description>
+ <rdf:Description rdf:about="">
+ <rdf:type rdf:resource="http://docs.oasis-open.org/ns/office/1.2/meta/pkg#Document"/>
+ </rdf:Description>
+</rdf:RDF>
diff --git a/extract/test/background_lines_1.pdf.mutool.odt.dir.ref/meta.xml b/extract/test/background_lines_1.pdf.mutool.odt.dir.ref/meta.xml
new file mode 100644
index 00000000..6b42561e
--- /dev/null
+++ b/extract/test/background_lines_1.pdf.mutool.odt.dir.ref/meta.xml
@@ -0,0 +1,2 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<office:document-meta xmlns:grddl="http://www.w3.org/2003/g/data-view#" xmlns:meta="urn:oasis:names:tc:opendocument:xmlns:meta:1.0" xmlns:ooo="http://openoffice.org/2004/office" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" office:version="1.3"><office:meta><meta:creation-date>2021-04-05T17:06:57.937137058</meta:creation-date><meta:generator>LibreOffice/7.0.1.2$OpenBSD_X86_64 LibreOffice_project/00$Build-2</meta:generator><dc:date>2021-04-06T17:14:51.409959656</dc:date><meta:editing-duration>PT20S</meta:editing-duration><meta:editing-cycles>1</meta:editing-cycles><meta:document-statistic meta:table-count="0" meta:image-count="0" meta:object-count="0" meta:page-count="1" meta:paragraph-count="0" meta:word-count="0" meta:character-count="0" meta:non-whitespace-character-count="0"/></office:meta></office:document-meta> \ No newline at end of file
diff --git a/extract/test/background_lines_1.pdf.mutool.odt.dir.ref/mimetype b/extract/test/background_lines_1.pdf.mutool.odt.dir.ref/mimetype
new file mode 100644
index 00000000..2e95b81c
--- /dev/null
+++ b/extract/test/background_lines_1.pdf.mutool.odt.dir.ref/mimetype
@@ -0,0 +1 @@
+application/vnd.oasis.opendocument.text \ No newline at end of file
diff --git a/extract/test/background_lines_1.pdf.mutool.odt.dir.ref/settings.xml b/extract/test/background_lines_1.pdf.mutool.odt.dir.ref/settings.xml
new file mode 100644
index 00000000..35a8138f
--- /dev/null
+++ b/extract/test/background_lines_1.pdf.mutool.odt.dir.ref/settings.xml
@@ -0,0 +1,2 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<office:document-settings xmlns:config="urn:oasis:names:tc:opendocument:xmlns:config:1.0" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:ooo="http://openoffice.org/2004/office" xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" office:version="1.3"><office:settings><config:config-item-set config:name="ooo:view-settings"><config:config-item config:name="ViewAreaTop" config:type="long">0</config:config-item><config:config-item config:name="ViewAreaLeft" config:type="long">0</config:config-item><config:config-item config:name="ViewAreaWidth" config:type="long">26275</config:config-item><config:config-item config:name="ViewAreaHeight" config:type="long">19502</config:config-item><config:config-item config:name="ShowRedlineChanges" config:type="boolean">true</config:config-item><config:config-item config:name="InBrowseMode" config:type="boolean">false</config:config-item><config:config-item-map-indexed config:name="Views"><config:config-item-map-entry><config:config-item config:name="ViewId" config:type="string">view2</config:config-item><config:config-item config:name="ViewLeft" config:type="long">4343</config:config-item><config:config-item config:name="ViewTop" config:type="long">2501</config:config-item><config:config-item config:name="VisibleLeft" config:type="long">0</config:config-item><config:config-item config:name="VisibleTop" config:type="long">0</config:config-item><config:config-item config:name="VisibleRight" config:type="long">26273</config:config-item><config:config-item config:name="VisibleBottom" config:type="long">19500</config:config-item><config:config-item config:name="ZoomType" config:type="short">0</config:config-item><config:config-item config:name="ViewLayoutColumns" config:type="short">1</config:config-item><config:config-item config:name="ViewLayoutBookMode" config:type="boolean">false</config:config-item><config:config-item config:name="ZoomFactor" config:type="short">100</config:config-item><config:config-item config:name="IsSelectedFrame" config:type="boolean">false</config:config-item><config:config-item config:name="AnchoredTextOverflowLegacy" config:type="boolean">false</config:config-item></config:config-item-map-entry></config:config-item-map-indexed></config:config-item-set><config:config-item-set config:name="ooo:configuration-settings"><config:config-item config:name="PrintBlackFonts" config:type="boolean">false</config:config-item><config:config-item config:name="PrintReversed" config:type="boolean">false</config:config-item><config:config-item config:name="SaveThumbnail" config:type="boolean">true</config:config-item><config:config-item config:name="EmbedFonts" config:type="boolean">false</config:config-item><config:config-item config:name="PrintControls" config:type="boolean">true</config:config-item><config:config-item config:name="OutlineLevelYieldsNumbering" config:type="boolean">false</config:config-item><config:config-item config:name="PrintPageBackground" config:type="boolean">true</config:config-item><config:config-item config:name="PrintAnnotationMode" config:type="short">0</config:config-item><config:config-item config:name="PrintGraphics" config:type="boolean">true</config:config-item><config:config-item config:name="EmbeddedDatabaseName" config:type="string"/><config:config-item config:name="ProtectForm" config:type="boolean">false</config:config-item><config:config-item config:name="PrintLeftPages" config:type="boolean">true</config:config-item><config:config-item config:name="PrintProspect" config:type="boolean">false</config:config-item><config:config-item config:name="PrintHiddenText" config:type="boolean">false</config:config-item><config:config-item config:name="PrintRightPages" config:type="boolean">true</config:config-item><config:config-item config:name="PrintFaxName" config:type="string"/><config:config-item config:name="PrintPaperFromSetup" config:type="boolean">false</config:config-item><config:config-item config:name="TabsRelativeToIndent" config:type="boolean">true</config:config-item><config:config-item config:name="RedlineProtectionKey" config:type="base64Binary"/><config:config-item config:name="PrintTextPlaceholder" config:type="boolean">false</config:config-item><config:config-item config:name="MathBaselineAlignment" config:type="boolean">true</config:config-item><config:config-item config:name="ProtectBookmarks" config:type="boolean">false</config:config-item><config:config-item config:name="IgnoreTabsAndBlanksForLineCalculation" config:type="boolean">false</config:config-item><config:config-item config:name="ContinuousEndnotes" config:type="boolean">false</config:config-item><config:config-item config:name="FieldAutoUpdate" config:type="boolean">true</config:config-item><config:config-item config:name="EmptyDbFieldHidesPara" config:type="boolean">true</config:config-item><config:config-item config:name="ApplyParagraphMarkFormatToNumbering" config:type="boolean">false</config:config-item><config:config-item config:name="PrintEmptyPages" config:type="boolean">true</config:config-item><config:config-item config:name="TabOverMargin" config:type="boolean">false</config:config-item><config:config-item config:name="EmbedAsianScriptFonts" config:type="boolean">true</config:config-item><config:config-item config:name="EmbedLatinScriptFonts" config:type="boolean">true</config:config-item><config:config-item config:name="DisableOffPagePositioning" config:type="boolean">false</config:config-item><config:config-item config:name="EmbedOnlyUsedFonts" config:type="boolean">false</config:config-item><config:config-item config:name="MsWordCompMinLineHeightByFly" config:type="boolean">false</config:config-item><config:config-item config:name="SurroundTextWrapSmall" config:type="boolean">false</config:config-item><config:config-item config:name="BackgroundParaOverDrawings" config:type="boolean">false</config:config-item><config:config-item config:name="ClippedPictures" config:type="boolean">false</config:config-item><config:config-item config:name="FloattableNomargins" config:type="boolean">false</config:config-item><config:config-item config:name="UnbreakableNumberings" config:type="boolean">false</config:config-item><config:config-item config:name="EmbedSystemFonts" config:type="boolean">false</config:config-item><config:config-item config:name="TabOverflow" config:type="boolean">true</config:config-item><config:config-item config:name="PrintTables" config:type="boolean">true</config:config-item><config:config-item config:name="PrintDrawings" config:type="boolean">true</config:config-item><config:config-item config:name="ConsiderTextWrapOnObjPos" config:type="boolean">false</config:config-item><config:config-item config:name="PrintSingleJobs" config:type="boolean">false</config:config-item><config:config-item config:name="SmallCapsPercentage66" config:type="boolean">false</config:config-item><config:config-item config:name="CollapseEmptyCellPara" config:type="boolean">true</config:config-item><config:config-item config:name="HeaderSpacingBelowLastPara" config:type="boolean">false</config:config-item><config:config-item config:name="RsidRoot" config:type="int">2052946</config:config-item><config:config-item config:name="PrinterSetup" config:type="base64Binary"/><config:config-item config:name="CurrentDatabaseCommand" config:type="string"/><config:config-item config:name="AlignTabStopPosition" config:type="boolean">true</config:config-item><config:config-item config:name="ClipAsCharacterAnchoredWriterFlyFrames" config:type="boolean">false</config:config-item><config:config-item config:name="DoNotCaptureDrawObjsOnPage" config:type="boolean">false</config:config-item><config:config-item config:name="SaveGlobalDocumentLinks" config:type="boolean">false</config:config-item><config:config-item config:name="CurrentDatabaseCommandType" config:type="int">0</config:config-item><config:config-item config:name="LoadReadonly" config:type="boolean">false</config:config-item><config:config-item config:name="DoNotResetParaAttrsForNumFont" config:type="boolean">false</config:config-item><config:config-item config:name="StylesNoDefault" config:type="boolean">false</config:config-item><config:config-item config:name="LinkUpdateMode" config:type="short">1</config:config-item><config:config-item config:name="DoNotJustifyLinesWithManualBreak" config:type="boolean">false</config:config-item><config:config-item config:name="PropLineSpacingShrinksFirstLine" config:type="boolean">true</config:config-item><config:config-item config:name="TabAtLeftIndentForParagraphsInList" config:type="boolean">false</config:config-item><config:config-item config:name="ProtectFields" config:type="boolean">false</config:config-item><config:config-item config:name="UnxForceZeroExtLeading" config:type="boolean">false</config:config-item><config:config-item config:name="CurrentDatabaseDataSource" config:type="string"/><config:config-item config:name="UseFormerTextWrapping" config:type="boolean">false</config:config-item><config:config-item config:name="UseFormerLineSpacing" config:type="boolean">false</config:config-item><config:config-item config:name="AllowPrintJobCancel" config:type="boolean">true</config:config-item><config:config-item config:name="SubtractFlysAnchoredAtFlys" config:type="boolean">false</config:config-item><config:config-item config:name="AddParaSpacingToTableCells" config:type="boolean">true</config:config-item><config:config-item config:name="AddExternalLeading" config:type="boolean">true</config:config-item><config:config-item config:name="Rsid" config:type="int">2178852</config:config-item><config:config-item config:name="AddVerticalFrameOffsets" config:type="boolean">false</config:config-item><config:config-item config:name="TreatSingleColumnBreakAsPageBreak" config:type="boolean">false</config:config-item><config:config-item config:name="AddFrameOffsets" config:type="boolean">false</config:config-item><config:config-item config:name="IsLabelDocument" config:type="boolean">false</config:config-item><config:config-item config:name="MsWordCompTrailingBlanks" config:type="boolean">false</config:config-item><config:config-item config:name="PrinterPaperFromSetup" config:type="boolean">false</config:config-item><config:config-item config:name="IgnoreFirstLineIndentInNumbering" config:type="boolean">false</config:config-item><config:config-item config:name="PrinterName" config:type="string"/><config:config-item config:name="IsKernAsianPunctuation" config:type="boolean">false</config:config-item><config:config-item config:name="PrinterIndependentLayout" config:type="string">high-resolution</config:config-item><config:config-item config:name="TableRowKeep" config:type="boolean">false</config:config-item><config:config-item config:name="UpdateFromTemplate" config:type="boolean">true</config:config-item><config:config-item config:name="EmbedComplexScriptFonts" config:type="boolean">true</config:config-item><config:config-item config:name="UseOldPrinterMetrics" config:type="boolean">false</config:config-item><config:config-item config:name="InvertBorderSpacing" config:type="boolean">false</config:config-item><config:config-item config:name="PrintProspectRTL" config:type="boolean">false</config:config-item><config:config-item config:name="ApplyUserData" config:type="boolean">true</config:config-item><config:config-item config:name="AddParaTableSpacingAtStart" config:type="boolean">true</config:config-item><config:config-item config:name="SaveVersionOnClose" config:type="boolean">false</config:config-item><config:config-item config:name="CharacterCompressionType" config:type="short">0</config:config-item><config:config-item config:name="UseOldNumbering" config:type="boolean">false</config:config-item><config:config-item config:name="UseFormerObjectPositioning" config:type="boolean">false</config:config-item><config:config-item config:name="ChartAutoUpdate" config:type="boolean">true</config:config-item><config:config-item config:name="AddParaTableSpacing" config:type="boolean">true</config:config-item></config:config-item-set></office:settings></office:document-settings> \ No newline at end of file
diff --git a/extract/test/background_lines_1.pdf.mutool.odt.dir.ref/styles.xml b/extract/test/background_lines_1.pdf.mutool.odt.dir.ref/styles.xml
new file mode 100644
index 00000000..91403c4e
--- /dev/null
+++ b/extract/test/background_lines_1.pdf.mutool.odt.dir.ref/styles.xml
@@ -0,0 +1,2 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<office:document-styles xmlns:css3t="http://www.w3.org/TR/css3-text/" xmlns:grddl="http://www.w3.org/2003/g/data-view#" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:dom="http://www.w3.org/2001/xml-events" xmlns:script="urn:oasis:names:tc:opendocument:xmlns:script:1.0" xmlns:form="urn:oasis:names:tc:opendocument:xmlns:form:1.0" xmlns:math="http://www.w3.org/1998/Math/MathML" xmlns:number="urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0" xmlns:field="urn:openoffice:names:experimental:ooo-ms-interop:xmlns:field:1.0" xmlns:meta="urn:oasis:names:tc:opendocument:xmlns:meta:1.0" xmlns:loext="urn:org:documentfoundation:names:experimental:office:xmlns:loext:1.0" xmlns:officeooo="http://openoffice.org/2009/office" xmlns:table="urn:oasis:names:tc:opendocument:xmlns:table:1.0" xmlns:chart="urn:oasis:names:tc:opendocument:xmlns:chart:1.0" xmlns:tableooo="http://openoffice.org/2009/table" xmlns:draw="urn:oasis:names:tc:opendocument:xmlns:drawing:1.0" xmlns:rpt="http://openoffice.org/2005/report" xmlns:dr3d="urn:oasis:names:tc:opendocument:xmlns:dr3d:1.0" xmlns:of="urn:oasis:names:tc:opendocument:xmlns:of:1.2" xmlns:text="urn:oasis:names:tc:opendocument:xmlns:text:1.0" xmlns:style="urn:oasis:names:tc:opendocument:xmlns:style:1.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:calcext="urn:org:documentfoundation:names:experimental:calc:xmlns:calcext:1.0" xmlns:oooc="http://openoffice.org/2004/calc" xmlns:drawooo="http://openoffice.org/2010/draw" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:ooo="http://openoffice.org/2004/office" xmlns:ooow="http://openoffice.org/2004/writer" xmlns:fo="urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0" xmlns:svg="urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0" xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" office:version="1.3"><office:font-face-decls><style:font-face style:name="Liberation Serif" svg:font-family="&apos;Liberation Serif&apos;" style:font-family-generic="roman" style:font-pitch="variable"/><style:font-face style:name="Liberation Sans" svg:font-family="&apos;Liberation Sans&apos;" style:font-family-generic="swiss" style:font-pitch="variable"/><style:font-face style:name="Unifont" svg:font-family="Unifont" style:font-family-generic="system" style:font-pitch="variable"/></office:font-face-decls><office:styles><style:default-style style:family="graphic"><style:graphic-properties svg:stroke-color="#3465a4" draw:fill-color="#729fcf" fo:wrap-option="no-wrap" draw:shadow-offset-x="0.1181in" draw:shadow-offset-y="0.1181in" draw:start-line-spacing-horizontal="0.1114in" draw:start-line-spacing-vertical="0.1114in" draw:end-line-spacing-horizontal="0.1114in" draw:end-line-spacing-vertical="0.1114in" style:flow-with-text="false"/><style:paragraph-properties style:text-autospace="ideograph-alpha" style:line-break="strict" style:font-independent-line-spacing="false"><style:tab-stops/></style:paragraph-properties><style:text-properties style:use-window-font-color="true" loext:opacity="0%" style:font-name="Liberation Serif" fo:font-size="12pt" fo:language="en" fo:country="US" style:letter-kerning="true" style:font-name-asian="Unifont" style:font-size-asian="10.5pt" style:language-asian="zh" style:country-asian="CN" style:font-name-complex="Unifont" style:font-size-complex="12pt" style:language-complex="hi" style:country-complex="IN"/></style:default-style><style:default-style style:family="paragraph"><style:paragraph-properties fo:orphans="2" fo:widows="2" fo:hyphenation-ladder-count="no-limit" style:text-autospace="ideograph-alpha" style:punctuation-wrap="hanging" style:line-break="strict" style:tab-stop-distance="0.4925in" style:writing-mode="page"/><style:text-properties style:use-window-font-color="true" loext:opacity="0%" style:font-name="Liberation Serif" fo:font-size="12pt" fo:language="en" fo:country="US" style:letter-kerning="true" style:font-name-asian="Unifont" style:font-size-asian="10.5pt" style:language-asian="zh" style:country-asian="CN" style:font-name-complex="Unifont" style:font-size-complex="12pt" style:language-complex="hi" style:country-complex="IN" fo:hyphenate="false" fo:hyphenation-remain-char-count="2" fo:hyphenation-push-char-count="2" loext:hyphenation-no-caps="false"/></style:default-style><style:default-style style:family="table"><style:table-properties table:border-model="collapsing"/></style:default-style><style:default-style style:family="table-row"><style:table-row-properties fo:keep-together="auto"/></style:default-style><style:style style:name="Standard" style:family="paragraph" style:class="text"><style:paragraph-properties fo:margin-top="0in" fo:margin-bottom="0.0799in" style:contextual-spacing="false"/></style:style><style:style style:name="Heading" style:family="paragraph" style:parent-style-name="Standard" style:next-style-name="Text_20_body" style:class="text"><style:paragraph-properties fo:margin-top="0.1665in" fo:margin-bottom="0.0835in" style:contextual-spacing="false" fo:keep-with-next="always"/><style:text-properties style:font-name="Liberation Sans" fo:font-family="&apos;Liberation Sans&apos;" style:font-family-generic="swiss" style:font-pitch="variable" fo:font-size="14pt" style:font-name-asian="Unifont" style:font-family-asian="Unifont" style:font-family-generic-asian="system" style:font-pitch-asian="variable" style:font-size-asian="14pt" style:font-name-complex="Unifont" style:font-family-complex="Unifont" style:font-family-generic-complex="system" style:font-pitch-complex="variable" style:font-size-complex="14pt"/></style:style><style:style style:name="Text_20_body" style:display-name="Text body" style:family="paragraph" style:parent-style-name="Standard" style:class="text"><style:paragraph-properties fo:margin-top="0in" fo:margin-bottom="0.0972in" style:contextual-spacing="false" fo:line-height="115%"/></style:style><style:style style:name="List" style:family="paragraph" style:parent-style-name="Text_20_body" style:class="list"><style:text-properties style:font-size-asian="12pt"/></style:style><style:style style:name="Caption" style:family="paragraph" style:parent-style-name="Standard" style:class="extra"><style:paragraph-properties fo:margin-top="0.0835in" fo:margin-bottom="0.0835in" style:contextual-spacing="false" text:number-lines="false" text:line-number="0"/><style:text-properties fo:font-size="12pt" fo:font-style="italic" style:font-size-asian="12pt" style:font-style-asian="italic" style:font-size-complex="12pt" style:font-style-complex="italic"/></style:style><style:style style:name="Index" style:family="paragraph" style:parent-style-name="Standard" style:class="index"><style:paragraph-properties text:number-lines="false" text:line-number="0"/><style:text-properties style:font-size-asian="12pt"/></style:style><text:outline-style style:name="Outline"><text:outline-level-style text:level="1" style:num-format=""><style:list-level-properties text:list-level-position-and-space-mode="label-alignment"><style:list-level-label-alignment text:label-followed-by="listtab"/></style:list-level-properties></text:outline-level-style><text:outline-level-style text:level="2" style:num-format=""><style:list-level-properties text:list-level-position-and-space-mode="label-alignment"><style:list-level-label-alignment text:label-followed-by="listtab"/></style:list-level-properties></text:outline-level-style><text:outline-level-style text:level="3" style:num-format=""><style:list-level-properties text:list-level-position-and-space-mode="label-alignment"><style:list-level-label-alignment text:label-followed-by="listtab"/></style:list-level-properties></text:outline-level-style><text:outline-level-style text:level="4" style:num-format=""><style:list-level-properties text:list-level-position-and-space-mode="label-alignment"><style:list-level-label-alignment text:label-followed-by="listtab"/></style:list-level-properties></text:outline-level-style><text:outline-level-style text:level="5" style:num-format=""><style:list-level-properties text:list-level-position-and-space-mode="label-alignment"><style:list-level-label-alignment text:label-followed-by="listtab"/></style:list-level-properties></text:outline-level-style><text:outline-level-style text:level="6" style:num-format=""><style:list-level-properties text:list-level-position-and-space-mode="label-alignment"><style:list-level-label-alignment text:label-followed-by="listtab"/></style:list-level-properties></text:outline-level-style><text:outline-level-style text:level="7" style:num-format=""><style:list-level-properties text:list-level-position-and-space-mode="label-alignment"><style:list-level-label-alignment text:label-followed-by="listtab"/></style:list-level-properties></text:outline-level-style><text:outline-level-style text:level="8" style:num-format=""><style:list-level-properties text:list-level-position-and-space-mode="label-alignment"><style:list-level-label-alignment text:label-followed-by="listtab"/></style:list-level-properties></text:outline-level-style><text:outline-level-style text:level="9" style:num-format=""><style:list-level-properties text:list-level-position-and-space-mode="label-alignment"><style:list-level-label-alignment text:label-followed-by="listtab"/></style:list-level-properties></text:outline-level-style><text:outline-level-style text:level="10" style:num-format=""><style:list-level-properties text:list-level-position-and-space-mode="label-alignment"><style:list-level-label-alignment text:label-followed-by="listtab"/></style:list-level-properties></text:outline-level-style></text:outline-style><text:notes-configuration text:note-class="footnote" style:num-format="1" text:start-value="0" text:footnotes-position="page" text:start-numbering-at="document"/><text:notes-configuration text:note-class="endnote" style:num-format="i" text:start-value="0"/><text:linenumbering-configuration text:number-lines="false" text:offset="0.1965in" style:num-format="1" text:number-position="left" text:increment="5"/></office:styles><office:automatic-styles><style:page-layout style:name="Mpm1"><style:page-layout-properties fo:page-width="8.5in" fo:page-height="11in" style:num-format="1" style:print-orientation="portrait" fo:margin-top="0.7874in" fo:margin-bottom="0.7874in" fo:margin-left="0.7874in" fo:margin-right="0.7874in" style:writing-mode="lr-tb" style:layout-grid-color="#c0c0c0" style:layout-grid-lines="20" style:layout-grid-base-height="0.278in" style:layout-grid-ruby-height="0.139in" style:layout-grid-mode="none" style:layout-grid-ruby-below="false" style:layout-grid-print="false" style:layout-grid-display="false" style:footnote-max-height="0in"><style:footnote-sep style:width="0.0071in" style:distance-before-sep="0.0398in" style:distance-after-sep="0.0398in" style:line-style="solid" style:adjustment="left" style:rel-width="25%" style:color="#000000"/></style:page-layout-properties><style:header-style/><style:footer-style/></style:page-layout></office:automatic-styles><office:master-styles><style:master-page style:name="Standard" style:page-layout-name="Mpm1"/></office:master-styles></office:document-styles> \ No newline at end of file
diff --git a/extract/test/background_lines_2.pdf b/extract/test/background_lines_2.pdf
new file mode 100755
index 00000000..b64b2f27
--- /dev/null
+++ b/extract/test/background_lines_2.pdf
Binary files differ
diff --git a/extract/test/background_lines_2.pdf.mutool.docx.dir.ref/[Content_Types].xml b/extract/test/background_lines_2.pdf.mutool.docx.dir.ref/[Content_Types].xml
new file mode 100644
index 00000000..07d88cca
--- /dev/null
+++ b/extract/test/background_lines_2.pdf.mutool.docx.dir.ref/[Content_Types].xml
@@ -0,0 +1,2 @@
+<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
+<Types xmlns="http://schemas.openxmlformats.org/package/2006/content-types"><Default Extension="rels" ContentType="application/vnd.openxmlformats-package.relationships+xml"/><Default Extension="xml" ContentType="application/xml"/><Override PartName="/word/document.xml" ContentType="application/vnd.openxmlformats-officedocument.wordprocessingml.document.main+xml"/><Override PartName="/word/styles.xml" ContentType="application/vnd.openxmlformats-officedocument.wordprocessingml.styles+xml"/><Override PartName="/word/settings.xml" ContentType="application/vnd.openxmlformats-officedocument.wordprocessingml.settings+xml"/><Override PartName="/word/webSettings.xml" ContentType="application/vnd.openxmlformats-officedocument.wordprocessingml.webSettings+xml"/><Override PartName="/word/fontTable.xml" ContentType="application/vnd.openxmlformats-officedocument.wordprocessingml.fontTable+xml"/><Override PartName="/word/theme/theme1.xml" ContentType="application/vnd.openxmlformats-officedocument.theme+xml"/><Override PartName="/docProps/core.xml" ContentType="application/vnd.openxmlformats-package.core-properties+xml"/><Override PartName="/docProps/app.xml" ContentType="application/vnd.openxmlformats-officedocument.extended-properties+xml"/></Types> \ No newline at end of file
diff --git a/extract/test/background_lines_2.pdf.mutool.docx.dir.ref/_rels/.rels b/extract/test/background_lines_2.pdf.mutool.docx.dir.ref/_rels/.rels
new file mode 100644
index 00000000..32548d42
--- /dev/null
+++ b/extract/test/background_lines_2.pdf.mutool.docx.dir.ref/_rels/.rels
@@ -0,0 +1,2 @@
+<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
+<Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships"><Relationship Id="rId3" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties" Target="docProps/app.xml"/><Relationship Id="rId2" Type="http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties" Target="docProps/core.xml"/><Relationship Id="rId1" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument" Target="word/document.xml"/></Relationships> \ No newline at end of file
diff --git a/extract/test/background_lines_2.pdf.mutool.docx.dir.ref/docProps/app.xml b/extract/test/background_lines_2.pdf.mutool.docx.dir.ref/docProps/app.xml
new file mode 100644
index 00000000..eb8dd2e5
--- /dev/null
+++ b/extract/test/background_lines_2.pdf.mutool.docx.dir.ref/docProps/app.xml
@@ -0,0 +1,2 @@
+<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
+<Properties xmlns="http://schemas.openxmlformats.org/officeDocument/2006/extended-properties" xmlns:vt="http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes"><Template>Normal.dotm</Template><TotalTime>3</TotalTime><Pages>1</Pages><Words>2</Words><Characters>18</Characters><Application>Microsoft Office Word</Application><DocSecurity>0</DocSecurity><Lines>1</Lines><Paragraphs>1</Paragraphs><ScaleCrop>false</ScaleCrop><Company></Company><LinksUpToDate>false</LinksUpToDate><CharactersWithSpaces>19</CharactersWithSpaces><SharedDoc>false</SharedDoc><HyperlinksChanged>false</HyperlinksChanged><AppVersion>16.0000</AppVersion></Properties> \ No newline at end of file
diff --git a/extract/test/background_lines_2.pdf.mutool.docx.dir.ref/docProps/core.xml b/extract/test/background_lines_2.pdf.mutool.docx.dir.ref/docProps/core.xml
new file mode 100644
index 00000000..195d77a9
--- /dev/null
+++ b/extract/test/background_lines_2.pdf.mutool.docx.dir.ref/docProps/core.xml
@@ -0,0 +1,2 @@
+<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
+<cp:coreProperties xmlns:cp="http://schemas.openxmlformats.org/package/2006/metadata/core-properties" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:dcterms="http://purl.org/dc/terms/" xmlns:dcmitype="http://purl.org/dc/dcmitype/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><dc:title></dc:title><dc:subject></dc:subject><dc:creator></dc:creator><cp:keywords></cp:keywords><dc:description></dc:description><cp:lastModifiedBy></cp:lastModifiedBy><cp:revision>1</cp:revision><dcterms:created xsi:type="dcterms:W3CDTF">2020-09-25T17:04:00Z</dcterms:created><dcterms:modified xsi:type="dcterms:W3CDTF">2020-09-25T17:07:00Z</dcterms:modified></cp:coreProperties> \ No newline at end of file
diff --git a/extract/test/background_lines_2.pdf.mutool.docx.dir.ref/word/_rels/document.xml.rels b/extract/test/background_lines_2.pdf.mutool.docx.dir.ref/word/_rels/document.xml.rels
new file mode 100644
index 00000000..3b2b7f8c
--- /dev/null
+++ b/extract/test/background_lines_2.pdf.mutool.docx.dir.ref/word/_rels/document.xml.rels
@@ -0,0 +1,2 @@
+<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
+<Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships"><Relationship Id="rId3" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/webSettings" Target="webSettings.xml"/><Relationship Id="rId2" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/settings" Target="settings.xml"/><Relationship Id="rId1" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles" Target="styles.xml"/><Relationship Id="rId5" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme" Target="theme/theme1.xml"/><Relationship Id="rId4" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/fontTable" Target="fontTable.xml"/></Relationships> \ No newline at end of file
diff --git a/extract/test/background_lines_2.pdf.mutool.docx.dir.ref/word/document.xml b/extract/test/background_lines_2.pdf.mutool.docx.dir.ref/word/document.xml
new file mode 100644
index 00000000..84a7ca47
--- /dev/null
+++ b/extract/test/background_lines_2.pdf.mutool.docx.dir.ref/word/document.xml
@@ -0,0 +1,1028 @@
+<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
+<w:document xmlns:wpc="http://schemas.microsoft.com/office/word/2010/wordprocessingCanvas" xmlns:cx="http://schemas.microsoft.com/office/drawing/2014/chartex" xmlns:cx1="http://schemas.microsoft.com/office/drawing/2015/9/8/chartex" xmlns:cx2="http://schemas.microsoft.com/office/drawing/2015/10/21/chartex" xmlns:cx3="http://schemas.microsoft.com/office/drawing/2016/5/9/chartex" xmlns:cx4="http://schemas.microsoft.com/office/drawing/2016/5/10/chartex" xmlns:cx5="http://schemas.microsoft.com/office/drawing/2016/5/11/chartex" xmlns:cx6="http://schemas.microsoft.com/office/drawing/2016/5/12/chartex" xmlns:cx7="http://schemas.microsoft.com/office/drawing/2016/5/13/chartex" xmlns:cx8="http://schemas.microsoft.com/office/drawing/2016/5/14/chartex" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:aink="http://schemas.microsoft.com/office/drawing/2016/ink" xmlns:am3d="http://schemas.microsoft.com/office/drawing/2017/model3d" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships" xmlns:m="http://schemas.openxmlformats.org/officeDocument/2006/math" xmlns:v="urn:schemas-microsoft-com:vml" xmlns:wp14="http://schemas.microsoft.com/office/word/2010/wordprocessingDrawing" xmlns:wp="http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing" xmlns:w10="urn:schemas-microsoft-com:office:word" xmlns:w="http://schemas.openxmlformats.org/wordprocessingml/2006/main" xmlns:w14="http://schemas.microsoft.com/office/word/2010/wordml" xmlns:w15="http://schemas.microsoft.com/office/word/2012/wordml" xmlns:w16cex="http://schemas.microsoft.com/office/word/2018/wordml/cex" xmlns:w16cid="http://schemas.microsoft.com/office/word/2016/wordml/cid" xmlns:w16="http://schemas.microsoft.com/office/word/2018/wordml" xmlns:w16se="http://schemas.microsoft.com/office/word/2015/wordml/symex" xmlns:wpg="http://schemas.microsoft.com/office/word/2010/wordprocessingGroup" xmlns:wpi="http://schemas.microsoft.com/office/word/2010/wordprocessingInk" xmlns:wne="http://schemas.microsoft.com/office/word/2006/wordml" xmlns:wps="http://schemas.microsoft.com/office/word/2010/wordprocessingShape" mc:Ignorable="w14 w15 w16se w16cid w16 w16cex wp14"><w:body>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRoman,Bold" w:hAnsi="TimesNewRoman,Bold"/><w:b/><w:sz w:val="21.300000"/><w:szCs w:val="15.975000"/></w:rPr><w:t xml:space="preserve">INPUT SURVEY, 1996-1997</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRoman,Bold" w:hAnsi="TimesNewRoman,Bold"/><w:b/><w:sz w:val="17.600000"/><w:szCs w:val="13.200000"/></w:rPr><w:t xml:space="preserve">TABLE 5J : ESTIMATED AREA UNDER PADDY TREATED WITH AZETOBACTOR BY SIZE GROUPS.</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRoman,Bold" w:hAnsi="TimesNewRoman,Bold"/><w:b/><w:sz w:val="17.600000"/><w:szCs w:val="13.200000"/></w:rPr><w:t xml:space="preserve">STATE : ADILABAD 1</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRoman,Bold" w:hAnsi="TimesNewRoman,Bold"/><w:b/><w:sz w:val="17.600000"/><w:szCs w:val="13.200000"/></w:rPr><w:t xml:space="preserve">ANDHRA PRADESH DISTRICT : PAGE NO.</w:t></w:r>
+</w:p>
+ <w:tbl>
+ <w:tblLayout w:type="autofit"/>
+ <w:tr>
+ <w:trPr/>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:gridSpan w:val="2"/>
+ <w:vMerge w:val="restart"/>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRoman,Bold" w:hAnsi="TimesNewRoman,Bold"/><w:b/><w:sz w:val="14.100000"/><w:szCs w:val="10.575000"/></w:rPr><w:t xml:space="preserve">Sl.No</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:gridSpan w:val="2"/>
+ <w:vMerge w:val="restart"/>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRoman,Bold" w:hAnsi="TimesNewRoman,Bold"/><w:b/><w:sz w:val="14.100000"/><w:szCs w:val="10.575000"/></w:rPr><w:t xml:space="preserve">SIZE GROUP (HA) </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:gridSpan w:val="2"/>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRoman,Bold" w:hAnsi="TimesNewRoman,Bold"/><w:b/><w:sz w:val="14.100000"/><w:szCs w:val="10.575000"/></w:rPr><w:t xml:space="preserve">NO. OF HOLDINGS GROWING THE CROP </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:gridSpan w:val="3"/>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRoman,Bold" w:hAnsi="TimesNewRoman,Bold"/><w:b/><w:sz w:val="14.100000"/><w:szCs w:val="10.575000"/></w:rPr><w:t xml:space="preserve">AREA UNDER THE CROP</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:gridSpan w:val="6"/>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRoman,Bold" w:hAnsi="TimesNewRoman,Bold"/><w:b/><w:sz w:val="14.100000"/><w:szCs w:val="10.575000"/></w:rPr><w:t xml:space="preserve">AREA UNDER THE CROP TREATED WITH THE MANURE</w:t></w:r>
+</w:p> </w:tc>
+ </w:tr>
+ <w:tr>
+ <w:trPr/>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:gridSpan w:val="2"/>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:gridSpan w:val="2"/>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRoman,Bold" w:hAnsi="TimesNewRoman,Bold"/><w:b/><w:sz w:val="14.100000"/><w:szCs w:val="10.575000"/></w:rPr><w:t xml:space="preserve">TOTAL NO.</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRoman,Bold" w:hAnsi="TimesNewRoman,Bold"/><w:b/><w:sz w:val="14.100000"/><w:szCs w:val="10.575000"/></w:rPr><w:t xml:space="preserve">NO. TREATED WITH THE MANURE</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRoman,Bold" w:hAnsi="TimesNewRoman,Bold"/><w:b/><w:sz w:val="14.100000"/><w:szCs w:val="10.575000"/></w:rPr><w:t xml:space="preserve">HYV</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRoman,Bold" w:hAnsi="TimesNewRoman,Bold"/><w:b/><w:sz w:val="14.100000"/><w:szCs w:val="10.575000"/></w:rPr><w:t xml:space="preserve">OTHERS</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRoman,Bold" w:hAnsi="TimesNewRoman,Bold"/><w:b/><w:sz w:val="14.100000"/><w:szCs w:val="10.575000"/></w:rPr><w:t xml:space="preserve">TOTAL</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:gridSpan w:val="2"/>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRoman,Bold" w:hAnsi="TimesNewRoman,Bold"/><w:b/><w:sz w:val="14.100000"/><w:szCs w:val="10.575000"/></w:rPr><w:t xml:space="preserve">HYV</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:gridSpan w:val="2"/>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRoman,Bold" w:hAnsi="TimesNewRoman,Bold"/><w:b/><w:sz w:val="14.100000"/><w:szCs w:val="10.575000"/></w:rPr><w:t xml:space="preserve">OTHERS</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:gridSpan w:val="2"/>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRoman,Bold" w:hAnsi="TimesNewRoman,Bold"/><w:b/><w:sz w:val="14.100000"/><w:szCs w:val="10.575000"/></w:rPr><w:t xml:space="preserve">TOTAL</w:t></w:r>
+</w:p> </w:tc>
+ </w:tr>
+ <w:tr>
+ <w:trPr/>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:gridSpan w:val="2"/>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRoman,Bold" w:hAnsi="TimesNewRoman,Bold"/><w:b/><w:sz w:val="14.100000"/><w:szCs w:val="10.575000"/></w:rPr><w:t xml:space="preserve">(1)</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:gridSpan w:val="2"/>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRoman,Bold" w:hAnsi="TimesNewRoman,Bold"/><w:b/><w:sz w:val="14.100000"/><w:szCs w:val="10.575000"/></w:rPr><w:t xml:space="preserve">(2)</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRoman,Bold" w:hAnsi="TimesNewRoman,Bold"/><w:b/><w:sz w:val="14.100000"/><w:szCs w:val="10.575000"/></w:rPr><w:t xml:space="preserve">(3)</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRoman,Bold" w:hAnsi="TimesNewRoman,Bold"/><w:b/><w:sz w:val="14.100000"/><w:szCs w:val="10.575000"/></w:rPr><w:t xml:space="preserve">(4)</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRoman,Bold" w:hAnsi="TimesNewRoman,Bold"/><w:b/><w:sz w:val="14.100000"/><w:szCs w:val="10.575000"/></w:rPr><w:t xml:space="preserve">(5)</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRoman,Bold" w:hAnsi="TimesNewRoman,Bold"/><w:b/><w:sz w:val="14.100000"/><w:szCs w:val="10.575000"/></w:rPr><w:t xml:space="preserve">(6)</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRoman,Bold" w:hAnsi="TimesNewRoman,Bold"/><w:b/><w:sz w:val="14.100000"/><w:szCs w:val="10.575000"/></w:rPr><w:t xml:space="preserve">(7)</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:gridSpan w:val="2"/>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRoman,Bold" w:hAnsi="TimesNewRoman,Bold"/><w:b/><w:sz w:val="14.100000"/><w:szCs w:val="10.575000"/></w:rPr><w:t xml:space="preserve">(8)</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:gridSpan w:val="2"/>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRoman,Bold" w:hAnsi="TimesNewRoman,Bold"/><w:b/><w:sz w:val="14.100000"/><w:szCs w:val="10.575000"/></w:rPr><w:t xml:space="preserve">(9)</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:gridSpan w:val="2"/>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRoman,Bold" w:hAnsi="TimesNewRoman,Bold"/><w:b/><w:sz w:val="14.100000"/><w:szCs w:val="10.575000"/></w:rPr><w:t xml:space="preserve">(10)</w:t></w:r>
+</w:p> </w:tc>
+ </w:tr>
+ <w:tr>
+ <w:trPr/>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="restart"/>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRoman" w:hAnsi="TimesNewRoman"/><w:sz w:val="17.900000"/><w:szCs w:val="13.425000"/></w:rPr><w:t xml:space="preserve">1</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:gridSpan w:val="14"/>
+ <w:vMerge w:val="restart"/>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRoman" w:hAnsi="TimesNewRoman"/><w:sz w:val="17.900000"/><w:szCs w:val="13.425000"/></w:rPr><w:t xml:space="preserve">MARGINAL (BELOW 1.0)</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRoman,Bold" w:hAnsi="TimesNewRoman,Bold"/><w:b/><w:sz w:val="17.600000"/><w:szCs w:val="13.200000"/></w:rPr><w:t xml:space="preserve">I</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRoman" w:hAnsi="TimesNewRoman"/><w:sz w:val="17.900000"/><w:szCs w:val="13.425000"/></w:rPr><w:t xml:space="preserve"> 39053 0 12142 3322 15464 0 0 0</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRoman,Bold" w:hAnsi="TimesNewRoman,Bold"/><w:b/><w:sz w:val="17.600000"/><w:szCs w:val="13.200000"/></w:rPr><w:t xml:space="preserve">UI</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRoman" w:hAnsi="TimesNewRoman"/><w:sz w:val="17.900000"/><w:szCs w:val="13.425000"/></w:rPr><w:t xml:space="preserve"> 7429 0 2088 1560 3648 0 0 0</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRoman,Bold" w:hAnsi="TimesNewRoman,Bold"/><w:b/><w:sz w:val="17.600000"/><w:szCs w:val="13.200000"/></w:rPr><w:t xml:space="preserve">T</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRoman" w:hAnsi="TimesNewRoman"/><w:sz w:val="17.900000"/><w:szCs w:val="13.425000"/></w:rPr><w:t xml:space="preserve"> 46484 0 14230 4882 19112 0 0 0</w:t></w:r>
+</w:p> </w:tc>
+ </w:tr>
+ <w:tr>
+ <w:trPr/>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:gridSpan w:val="14"/>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ </w:tr>
+ <w:tr>
+ <w:trPr/>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:gridSpan w:val="14"/>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ </w:tr>
+ <w:tr>
+ <w:trPr/>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="restart"/>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRoman" w:hAnsi="TimesNewRoman"/><w:sz w:val="17.900000"/><w:szCs w:val="13.425000"/></w:rPr><w:t xml:space="preserve">2</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:gridSpan w:val="14"/>
+ <w:vMerge w:val="restart"/>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRoman" w:hAnsi="TimesNewRoman"/><w:sz w:val="17.900000"/><w:szCs w:val="13.425000"/></w:rPr><w:t xml:space="preserve">SMALL (1.0 - 1.99)</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRoman,Bold" w:hAnsi="TimesNewRoman,Bold"/><w:b/><w:sz w:val="17.600000"/><w:szCs w:val="13.200000"/></w:rPr><w:t xml:space="preserve">I</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRoman" w:hAnsi="TimesNewRoman"/><w:sz w:val="17.900000"/><w:szCs w:val="13.425000"/></w:rPr><w:t xml:space="preserve"> 20341 0 16685 1631 18316 0 0 0</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRoman,Bold" w:hAnsi="TimesNewRoman,Bold"/><w:b/><w:sz w:val="17.600000"/><w:szCs w:val="13.200000"/></w:rPr><w:t xml:space="preserve">UI</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRoman" w:hAnsi="TimesNewRoman"/><w:sz w:val="17.900000"/><w:szCs w:val="13.425000"/></w:rPr><w:t xml:space="preserve"> 6854 0 4594 1885 6479 0 0 0</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRoman,Bold" w:hAnsi="TimesNewRoman,Bold"/><w:b/><w:sz w:val="17.600000"/><w:szCs w:val="13.200000"/></w:rPr><w:t xml:space="preserve">T</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRoman" w:hAnsi="TimesNewRoman"/><w:sz w:val="17.900000"/><w:szCs w:val="13.425000"/></w:rPr><w:t xml:space="preserve"> 27197 0 21279 3516 24795 0 0 0</w:t></w:r>
+</w:p> </w:tc>
+ </w:tr>
+ <w:tr>
+ <w:trPr/>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:gridSpan w:val="14"/>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ </w:tr>
+ <w:tr>
+ <w:trPr/>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:gridSpan w:val="14"/>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ </w:tr>
+ <w:tr>
+ <w:trPr/>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="restart"/>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRoman" w:hAnsi="TimesNewRoman"/><w:sz w:val="17.900000"/><w:szCs w:val="13.425000"/></w:rPr><w:t xml:space="preserve">3</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:gridSpan w:val="14"/>
+ <w:vMerge w:val="restart"/>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRoman" w:hAnsi="TimesNewRoman"/><w:sz w:val="17.900000"/><w:szCs w:val="13.425000"/></w:rPr><w:t xml:space="preserve">SEMI-MEDIUM (2.0 - 3.99)</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRoman,Bold" w:hAnsi="TimesNewRoman,Bold"/><w:b/><w:sz w:val="17.600000"/><w:szCs w:val="13.200000"/></w:rPr><w:t xml:space="preserve">I</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRoman" w:hAnsi="TimesNewRoman"/><w:sz w:val="17.900000"/><w:szCs w:val="13.425000"/></w:rPr><w:t xml:space="preserve"> 20800 0 16991 7643 24634 0 0 0</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRoman,Bold" w:hAnsi="TimesNewRoman,Bold"/><w:b/><w:sz w:val="17.600000"/><w:szCs w:val="13.200000"/></w:rPr><w:t xml:space="preserve">UI</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRoman" w:hAnsi="TimesNewRoman"/><w:sz w:val="17.900000"/><w:szCs w:val="13.425000"/></w:rPr><w:t xml:space="preserve"> 5856 0 1017 4819 5836 0 0 0</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRoman,Bold" w:hAnsi="TimesNewRoman,Bold"/><w:b/><w:sz w:val="17.600000"/><w:szCs w:val="13.200000"/></w:rPr><w:t xml:space="preserve">T</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRoman" w:hAnsi="TimesNewRoman"/><w:sz w:val="17.900000"/><w:szCs w:val="13.425000"/></w:rPr><w:t xml:space="preserve"> 26555 0 18008 12462 30470 0 0 0</w:t></w:r>
+</w:p> </w:tc>
+ </w:tr>
+ <w:tr>
+ <w:trPr/>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:gridSpan w:val="14"/>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ </w:tr>
+ <w:tr>
+ <w:trPr/>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:gridSpan w:val="14"/>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ </w:tr>
+ <w:tr>
+ <w:trPr/>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="restart"/>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRoman" w:hAnsi="TimesNewRoman"/><w:sz w:val="17.900000"/><w:szCs w:val="13.425000"/></w:rPr><w:t xml:space="preserve">4</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:gridSpan w:val="14"/>
+ <w:vMerge w:val="restart"/>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRoman" w:hAnsi="TimesNewRoman"/><w:sz w:val="17.900000"/><w:szCs w:val="13.425000"/></w:rPr><w:t xml:space="preserve">MEDIUM (4.0 - 9.99)</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRoman,Bold" w:hAnsi="TimesNewRoman,Bold"/><w:b/><w:sz w:val="17.600000"/><w:szCs w:val="13.200000"/></w:rPr><w:t xml:space="preserve">I</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRoman" w:hAnsi="TimesNewRoman"/><w:sz w:val="17.900000"/><w:szCs w:val="13.425000"/></w:rPr><w:t xml:space="preserve"> 11986 0 17576 4120 21696 0 0 0</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRoman,Bold" w:hAnsi="TimesNewRoman,Bold"/><w:b/><w:sz w:val="17.600000"/><w:szCs w:val="13.200000"/></w:rPr><w:t xml:space="preserve">UI</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRoman" w:hAnsi="TimesNewRoman"/><w:sz w:val="17.900000"/><w:szCs w:val="13.425000"/></w:rPr><w:t xml:space="preserve"> 4615 0 1446 6227 7673 0 0 0</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRoman,Bold" w:hAnsi="TimesNewRoman,Bold"/><w:b/><w:sz w:val="17.600000"/><w:szCs w:val="13.200000"/></w:rPr><w:t xml:space="preserve">T</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRoman" w:hAnsi="TimesNewRoman"/><w:sz w:val="17.900000"/><w:szCs w:val="13.425000"/></w:rPr><w:t xml:space="preserve"> 16312 0 19022 10347 29369 0 0 0</w:t></w:r>
+</w:p> </w:tc>
+ </w:tr>
+ <w:tr>
+ <w:trPr/>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:gridSpan w:val="14"/>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ </w:tr>
+ <w:tr>
+ <w:trPr/>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:gridSpan w:val="14"/>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ </w:tr>
+ <w:tr>
+ <w:trPr/>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="restart"/>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRoman" w:hAnsi="TimesNewRoman"/><w:sz w:val="17.900000"/><w:szCs w:val="13.425000"/></w:rPr><w:t xml:space="preserve">5</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:gridSpan w:val="14"/>
+ <w:vMerge w:val="restart"/>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRoman" w:hAnsi="TimesNewRoman"/><w:sz w:val="17.900000"/><w:szCs w:val="13.425000"/></w:rPr><w:t xml:space="preserve">LARGE (10 AND ABOVE)</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRoman,Bold" w:hAnsi="TimesNewRoman,Bold"/><w:b/><w:sz w:val="17.600000"/><w:szCs w:val="13.200000"/></w:rPr><w:t xml:space="preserve">I</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRoman" w:hAnsi="TimesNewRoman"/><w:sz w:val="17.900000"/><w:szCs w:val="13.425000"/></w:rPr><w:t xml:space="preserve"> 2005 0 3671 639 4310 0 0 0</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRoman,Bold" w:hAnsi="TimesNewRoman,Bold"/><w:b/><w:sz w:val="17.600000"/><w:szCs w:val="13.200000"/></w:rPr><w:t xml:space="preserve">UI</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRoman" w:hAnsi="TimesNewRoman"/><w:sz w:val="17.900000"/><w:szCs w:val="13.425000"/></w:rPr><w:t xml:space="preserve"> 521 0 611 831 1442 0 0 0</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRoman,Bold" w:hAnsi="TimesNewRoman,Bold"/><w:b/><w:sz w:val="17.600000"/><w:szCs w:val="13.200000"/></w:rPr><w:t xml:space="preserve">T</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRoman" w:hAnsi="TimesNewRoman"/><w:sz w:val="17.900000"/><w:szCs w:val="13.425000"/></w:rPr><w:t xml:space="preserve"> 2485 0 4282 1470 5752 0 0 0</w:t></w:r>
+</w:p> </w:tc>
+ </w:tr>
+ <w:tr>
+ <w:trPr/>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:gridSpan w:val="14"/>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ </w:tr>
+ <w:tr>
+ <w:trPr/>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:gridSpan w:val="14"/>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ </w:tr>
+ <w:tr>
+ <w:trPr/>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="restart"/>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRoman" w:hAnsi="TimesNewRoman"/><w:sz w:val="17.900000"/><w:szCs w:val="13.425000"/></w:rPr><w:t xml:space="preserve">6</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:gridSpan w:val="14"/>
+ <w:vMerge w:val="restart"/>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRoman" w:hAnsi="TimesNewRoman"/><w:sz w:val="17.900000"/><w:szCs w:val="13.425000"/></w:rPr><w:t xml:space="preserve">ALL GROUPS</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRoman,Bold" w:hAnsi="TimesNewRoman,Bold"/><w:b/><w:sz w:val="17.600000"/><w:szCs w:val="13.200000"/></w:rPr><w:t xml:space="preserve">I</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRoman" w:hAnsi="TimesNewRoman"/><w:sz w:val="17.900000"/><w:szCs w:val="13.425000"/></w:rPr><w:t xml:space="preserve"> 94185 0 67065 17355 84420 0 0 0</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRoman,Bold" w:hAnsi="TimesNewRoman,Bold"/><w:b/><w:sz w:val="17.600000"/><w:szCs w:val="13.200000"/></w:rPr><w:t xml:space="preserve">UI</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRoman" w:hAnsi="TimesNewRoman"/><w:sz w:val="17.900000"/><w:szCs w:val="13.425000"/></w:rPr><w:t xml:space="preserve"> 25275 0 9756 15322 25078 0 0 0</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRoman,Bold" w:hAnsi="TimesNewRoman,Bold"/><w:b/><w:sz w:val="17.600000"/><w:szCs w:val="13.200000"/></w:rPr><w:t xml:space="preserve">T</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRoman" w:hAnsi="TimesNewRoman"/><w:sz w:val="17.900000"/><w:szCs w:val="13.425000"/></w:rPr><w:t xml:space="preserve"> 119033 0 76821 32677 109498 0 0 0</w:t></w:r>
+</w:p> </w:tc>
+ </w:tr>
+ <w:tr>
+ <w:trPr/>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:gridSpan w:val="14"/>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ </w:tr>
+ <w:tr>
+ <w:trPr/>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:gridSpan w:val="14"/>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ </w:tr>
+ </w:tbl>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRoman,Bold" w:hAnsi="TimesNewRoman,Bold"/><w:b/><w:sz w:val="17.600000"/><w:szCs w:val="13.200000"/></w:rPr><w:t xml:space="preserve">NOTE: I-IRRIGATED UI-UNIRRIGATED T = TOTAL OF I &amp; UI IN CASE OF COLUMNS 3 AND 4 </w:t></w:r>
+</w:p></w:body></w:document> \ No newline at end of file
diff --git a/extract/test/background_lines_2.pdf.mutool.docx.dir.ref/word/fontTable.xml b/extract/test/background_lines_2.pdf.mutool.docx.dir.ref/word/fontTable.xml
new file mode 100644
index 00000000..a39546e5
--- /dev/null
+++ b/extract/test/background_lines_2.pdf.mutool.docx.dir.ref/word/fontTable.xml
@@ -0,0 +1,2 @@
+<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
+<w:fonts xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships" xmlns:w="http://schemas.openxmlformats.org/wordprocessingml/2006/main" xmlns:w14="http://schemas.microsoft.com/office/word/2010/wordml" xmlns:w15="http://schemas.microsoft.com/office/word/2012/wordml" xmlns:w16cex="http://schemas.microsoft.com/office/word/2018/wordml/cex" xmlns:w16cid="http://schemas.microsoft.com/office/word/2016/wordml/cid" xmlns:w16="http://schemas.microsoft.com/office/word/2018/wordml" xmlns:w16se="http://schemas.microsoft.com/office/word/2015/wordml/symex" mc:Ignorable="w14 w15 w16se w16cid w16 w16cex"><w:font w:name="Calibri"><w:panose1 w:val="020F0502020204030204"/><w:charset w:val="00"/><w:family w:val="swiss"/><w:pitch w:val="variable"/><w:sig w:usb0="E4002EFF" w:usb1="C000247B" w:usb2="00000009" w:usb3="00000000" w:csb0="000001FF" w:csb1="00000000"/></w:font><w:font w:name="Times New Roman"><w:panose1 w:val="02020603050405020304"/><w:charset w:val="00"/><w:family w:val="roman"/><w:pitch w:val="variable"/><w:sig w:usb0="E0002EFF" w:usb1="C000785B" w:usb2="00000009" w:usb3="00000000" w:csb0="000001FF" w:csb1="00000000"/></w:font><w:font w:name="Calibri Light"><w:panose1 w:val="020F0302020204030204"/><w:charset w:val="00"/><w:family w:val="swiss"/><w:pitch w:val="variable"/><w:sig w:usb0="E4002EFF" w:usb1="C000247B" w:usb2="00000009" w:usb3="00000000" w:csb0="000001FF" w:csb1="00000000"/></w:font></w:fonts> \ No newline at end of file
diff --git a/extract/test/background_lines_2.pdf.mutool.docx.dir.ref/word/settings.xml b/extract/test/background_lines_2.pdf.mutool.docx.dir.ref/word/settings.xml
new file mode 100644
index 00000000..c403540d
--- /dev/null
+++ b/extract/test/background_lines_2.pdf.mutool.docx.dir.ref/word/settings.xml
@@ -0,0 +1,2 @@
+<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
+<w:settings xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships" xmlns:m="http://schemas.openxmlformats.org/officeDocument/2006/math" xmlns:v="urn:schemas-microsoft-com:vml" xmlns:w10="urn:schemas-microsoft-com:office:word" xmlns:w="http://schemas.openxmlformats.org/wordprocessingml/2006/main" xmlns:w14="http://schemas.microsoft.com/office/word/2010/wordml" xmlns:w15="http://schemas.microsoft.com/office/word/2012/wordml" xmlns:w16cex="http://schemas.microsoft.com/office/word/2018/wordml/cex" xmlns:w16cid="http://schemas.microsoft.com/office/word/2016/wordml/cid" xmlns:w16="http://schemas.microsoft.com/office/word/2018/wordml" xmlns:w16se="http://schemas.microsoft.com/office/word/2015/wordml/symex" xmlns:sl="http://schemas.openxmlformats.org/schemaLibrary/2006/main" mc:Ignorable="w14 w15 w16se w16cid w16 w16cex"><w:zoom w:percent="100"/><w:proofState w:spelling="clean" w:grammar="clean"/><w:defaultTabStop w:val="720"/><w:characterSpacingControl w:val="doNotCompress"/><w:compat><w:compatSetting w:name="compatibilityMode" w:uri="http://schemas.microsoft.com/office/word" w:val="15"/><w:compatSetting w:name="overrideTableStyleFontSizeAndJustification" w:uri="http://schemas.microsoft.com/office/word" w:val="1"/><w:compatSetting w:name="enableOpenTypeFeatures" w:uri="http://schemas.microsoft.com/office/word" w:val="1"/><w:compatSetting w:name="doNotFlipMirrorIndents" w:uri="http://schemas.microsoft.com/office/word" w:val="1"/><w:compatSetting w:name="differentiateMultirowTableHeaders" w:uri="http://schemas.microsoft.com/office/word" w:val="1"/><w:compatSetting w:name="useWord2013TrackBottomHyphenation" w:uri="http://schemas.microsoft.com/office/word" w:val="0"/></w:compat><w:rsids><w:rsidRoot w:val="007F4427"/><w:rsid w:val="00255448"/><w:rsid w:val="007F4427"/></w:rsids><m:mathPr><m:mathFont m:val="Cambria Math"/><m:brkBin m:val="before"/><m:brkBinSub m:val="--"/><m:smallFrac m:val="0"/><m:dispDef/><m:lMargin m:val="0"/><m:rMargin m:val="0"/><m:defJc m:val="centerGroup"/><m:wrapIndent m:val="1440"/><m:intLim m:val="subSup"/><m:naryLim m:val="undOvr"/></m:mathPr><w:themeFontLang w:val="en-GB"/><w:clrSchemeMapping w:bg1="light1" w:t1="dark1" w:bg2="light2" w:t2="dark2" w:accent1="accent1" w:accent2="accent2" w:accent3="accent3" w:accent4="accent4" w:accent5="accent5" w:accent6="accent6" w:hyperlink="hyperlink" w:followedHyperlink="followedHyperlink"/><w:shapeDefaults><o:shapedefaults v:ext="edit" spidmax="1026"/><o:shapelayout v:ext="edit"><o:idmap v:ext="edit" data="1"/></o:shapelayout></w:shapeDefaults><w:decimalSymbol w:val="."/><w:listSeparator w:val=","/><w14:docId w14:val="32E52EF8"/><w15:chartTrackingRefBased/><w15:docId w15:val="{A10F59F7-497D-44D4-A338-47719734E7A0}"/></w:settings> \ No newline at end of file
diff --git a/extract/test/background_lines_2.pdf.mutool.docx.dir.ref/word/styles.xml b/extract/test/background_lines_2.pdf.mutool.docx.dir.ref/word/styles.xml
new file mode 100644
index 00000000..38e5e2bd
--- /dev/null
+++ b/extract/test/background_lines_2.pdf.mutool.docx.dir.ref/word/styles.xml
@@ -0,0 +1,2 @@
+<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
+<w:styles xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships" xmlns:w="http://schemas.openxmlformats.org/wordprocessingml/2006/main" xmlns:w14="http://schemas.microsoft.com/office/word/2010/wordml" xmlns:w15="http://schemas.microsoft.com/office/word/2012/wordml" xmlns:w16cex="http://schemas.microsoft.com/office/word/2018/wordml/cex" xmlns:w16cid="http://schemas.microsoft.com/office/word/2016/wordml/cid" xmlns:w16="http://schemas.microsoft.com/office/word/2018/wordml" xmlns:w16se="http://schemas.microsoft.com/office/word/2015/wordml/symex" mc:Ignorable="w14 w15 w16se w16cid w16 w16cex"><w:docDefaults><w:rPrDefault><w:rPr><w:rFonts w:asciiTheme="minorHAnsi" w:eastAsiaTheme="minorHAnsi" w:hAnsiTheme="minorHAnsi" w:cstheme="minorBidi"/><w:sz w:val="22"/><w:szCs w:val="22"/><w:lang w:val="en-GB" w:eastAsia="en-US" w:bidi="ar-SA"/></w:rPr></w:rPrDefault><w:pPrDefault><w:pPr><w:spacing w:after="160" w:line="259" w:lineRule="auto"/></w:pPr></w:pPrDefault></w:docDefaults><w:latentStyles w:defLockedState="0" w:defUIPriority="99" w:defSemiHidden="0" w:defUnhideWhenUsed="0" w:defQFormat="0" w:count="376"><w:lsdException w:name="Normal" w:uiPriority="0" w:qFormat="1"/><w:lsdException w:name="heading 1" w:uiPriority="9" w:qFormat="1"/><w:lsdException w:name="heading 2" w:semiHidden="1" w:uiPriority="9" w:unhideWhenUsed="1" w:qFormat="1"/><w:lsdException w:name="heading 3" w:semiHidden="1" w:uiPriority="9" w:unhideWhenUsed="1" w:qFormat="1"/><w:lsdException w:name="heading 4" w:semiHidden="1" w:uiPriority="9" w:unhideWhenUsed="1" w:qFormat="1"/><w:lsdException w:name="heading 5" w:semiHidden="1" w:uiPriority="9" w:unhideWhenUsed="1" w:qFormat="1"/><w:lsdException w:name="heading 6" w:semiHidden="1" w:uiPriority="9" w:unhideWhenUsed="1" w:qFormat="1"/><w:lsdException w:name="heading 7" w:semiHidden="1" w:uiPriority="9" w:unhideWhenUsed="1" w:qFormat="1"/><w:lsdException w:name="heading 8" w:semiHidden="1" w:uiPriority="9" w:unhideWhenUsed="1" w:qFormat="1"/><w:lsdException w:name="heading 9" w:semiHidden="1" w:uiPriority="9" w:unhideWhenUsed="1" w:qFormat="1"/><w:lsdException w:name="index 1" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="index 2" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="index 3" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="index 4" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="index 5" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="index 6" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="index 7" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="index 8" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="index 9" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="toc 1" w:semiHidden="1" w:uiPriority="39" w:unhideWhenUsed="1"/><w:lsdException w:name="toc 2" w:semiHidden="1" w:uiPriority="39" w:unhideWhenUsed="1"/><w:lsdException w:name="toc 3" w:semiHidden="1" w:uiPriority="39" w:unhideWhenUsed="1"/><w:lsdException w:name="toc 4" w:semiHidden="1" w:uiPriority="39" w:unhideWhenUsed="1"/><w:lsdException w:name="toc 5" w:semiHidden="1" w:uiPriority="39" w:unhideWhenUsed="1"/><w:lsdException w:name="toc 6" w:semiHidden="1" w:uiPriority="39" w:unhideWhenUsed="1"/><w:lsdException w:name="toc 7" w:semiHidden="1" w:uiPriority="39" w:unhideWhenUsed="1"/><w:lsdException w:name="toc 8" w:semiHidden="1" w:uiPriority="39" w:unhideWhenUsed="1"/><w:lsdException w:name="toc 9" w:semiHidden="1" w:uiPriority="39" w:unhideWhenUsed="1"/><w:lsdException w:name="Normal Indent" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="footnote text" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="annotation text" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="header" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="footer" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="index heading" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="caption" w:semiHidden="1" w:uiPriority="35" w:unhideWhenUsed="1" w:qFormat="1"/><w:lsdException w:name="table of figures" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="envelope address" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="envelope return" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="footnote reference" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="annotation reference" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="line number" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="page number" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="endnote reference" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="endnote text" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="table of authorities" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="macro" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="toa heading" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="List" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="List Bullet" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="List Number" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="List 2" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="List 3" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="List 4" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="List 5" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="List Bullet 2" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="List Bullet 3" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="List Bullet 4" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="List Bullet 5" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="List Number 2" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="List Number 3" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="List Number 4" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="List Number 5" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Title" w:uiPriority="10" w:qFormat="1"/><w:lsdException w:name="Closing" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Signature" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Default Paragraph Font" w:semiHidden="1" w:uiPriority="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Body Text" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Body Text Indent" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="List Continue" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="List Continue 2" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="List Continue 3" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="List Continue 4" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="List Continue 5" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Message Header" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Subtitle" w:uiPriority="11" w:qFormat="1"/><w:lsdException w:name="Salutation" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Date" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Body Text First Indent" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Body Text First Indent 2" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Note Heading" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Body Text 2" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Body Text 3" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Body Text Indent 2" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Body Text Indent 3" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Block Text" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Hyperlink" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="FollowedHyperlink" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Strong" w:uiPriority="22" w:qFormat="1"/><w:lsdException w:name="Emphasis" w:uiPriority="20" w:qFormat="1"/><w:lsdException w:name="Document Map" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Plain Text" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="E-mail Signature" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="HTML Top of Form" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="HTML Bottom of Form" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Normal (Web)" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="HTML Acronym" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="HTML Address" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="HTML Cite" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="HTML Code" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="HTML Definition" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="HTML Keyboard" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="HTML Preformatted" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="HTML Sample" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="HTML Typewriter" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="HTML Variable" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Normal Table" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="annotation subject" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="No List" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Outline List 1" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Outline List 2" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Outline List 3" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Simple 1" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Simple 2" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Simple 3" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Classic 1" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Classic 2" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Classic 3" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Classic 4" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Colorful 1" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Colorful 2" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Colorful 3" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Columns 1" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Columns 2" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Columns 3" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Columns 4" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Columns 5" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Grid 1" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Grid 2" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Grid 3" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Grid 4" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Grid 5" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Grid 6" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Grid 7" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Grid 8" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table List 1" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table List 2" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table List 3" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table List 4" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table List 5" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table List 6" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table List 7" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table List 8" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table 3D effects 1" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table 3D effects 2" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table 3D effects 3" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Contemporary" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Elegant" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Professional" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Subtle 1" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Subtle 2" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Web 1" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Web 2" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Web 3" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Balloon Text" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Grid" w:uiPriority="39"/><w:lsdException w:name="Table Theme" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Placeholder Text" w:semiHidden="1"/><w:lsdException w:name="No Spacing" w:uiPriority="1" w:qFormat="1"/><w:lsdException w:name="Light Shading" w:uiPriority="60"/><w:lsdException w:name="Light List" w:uiPriority="61"/><w:lsdException w:name="Light Grid" w:uiPriority="62"/><w:lsdException w:name="Medium Shading 1" w:uiPriority="63"/><w:lsdException w:name="Medium Shading 2" w:uiPriority="64"/><w:lsdException w:name="Medium List 1" w:uiPriority="65"/><w:lsdException w:name="Medium List 2" w:uiPriority="66"/><w:lsdException w:name="Medium Grid 1" w:uiPriority="67"/><w:lsdException w:name="Medium Grid 2" w:uiPriority="68"/><w:lsdException w:name="Medium Grid 3" w:uiPriority="69"/><w:lsdException w:name="Dark List" w:uiPriority="70"/><w:lsdException w:name="Colorful Shading" w:uiPriority="71"/><w:lsdException w:name="Colorful List" w:uiPriority="72"/><w:lsdException w:name="Colorful Grid" w:uiPriority="73"/><w:lsdException w:name="Light Shading Accent 1" w:uiPriority="60"/><w:lsdException w:name="Light List Accent 1" w:uiPriority="61"/><w:lsdException w:name="Light Grid Accent 1" w:uiPriority="62"/><w:lsdException w:name="Medium Shading 1 Accent 1" w:uiPriority="63"/><w:lsdException w:name="Medium Shading 2 Accent 1" w:uiPriority="64"/><w:lsdException w:name="Medium List 1 Accent 1" w:uiPriority="65"/><w:lsdException w:name="Revision" w:semiHidden="1"/><w:lsdException w:name="List Paragraph" w:uiPriority="34" w:qFormat="1"/><w:lsdException w:name="Quote" w:uiPriority="29" w:qFormat="1"/><w:lsdException w:name="Intense Quote" w:uiPriority="30" w:qFormat="1"/><w:lsdException w:name="Medium List 2 Accent 1" w:uiPriority="66"/><w:lsdException w:name="Medium Grid 1 Accent 1" w:uiPriority="67"/><w:lsdException w:name="Medium Grid 2 Accent 1" w:uiPriority="68"/><w:lsdException w:name="Medium Grid 3 Accent 1" w:uiPriority="69"/><w:lsdException w:name="Dark List Accent 1" w:uiPriority="70"/><w:lsdException w:name="Colorful Shading Accent 1" w:uiPriority="71"/><w:lsdException w:name="Colorful List Accent 1" w:uiPriority="72"/><w:lsdException w:name="Colorful Grid Accent 1" w:uiPriority="73"/><w:lsdException w:name="Light Shading Accent 2" w:uiPriority="60"/><w:lsdException w:name="Light List Accent 2" w:uiPriority="61"/><w:lsdException w:name="Light Grid Accent 2" w:uiPriority="62"/><w:lsdException w:name="Medium Shading 1 Accent 2" w:uiPriority="63"/><w:lsdException w:name="Medium Shading 2 Accent 2" w:uiPriority="64"/><w:lsdException w:name="Medium List 1 Accent 2" w:uiPriority="65"/><w:lsdException w:name="Medium List 2 Accent 2" w:uiPriority="66"/><w:lsdException w:name="Medium Grid 1 Accent 2" w:uiPriority="67"/><w:lsdException w:name="Medium Grid 2 Accent 2" w:uiPriority="68"/><w:lsdException w:name="Medium Grid 3 Accent 2" w:uiPriority="69"/><w:lsdException w:name="Dark List Accent 2" w:uiPriority="70"/><w:lsdException w:name="Colorful Shading Accent 2" w:uiPriority="71"/><w:lsdException w:name="Colorful List Accent 2" w:uiPriority="72"/><w:lsdException w:name="Colorful Grid Accent 2" w:uiPriority="73"/><w:lsdException w:name="Light Shading Accent 3" w:uiPriority="60"/><w:lsdException w:name="Light List Accent 3" w:uiPriority="61"/><w:lsdException w:name="Light Grid Accent 3" w:uiPriority="62"/><w:lsdException w:name="Medium Shading 1 Accent 3" w:uiPriority="63"/><w:lsdException w:name="Medium Shading 2 Accent 3" w:uiPriority="64"/><w:lsdException w:name="Medium List 1 Accent 3" w:uiPriority="65"/><w:lsdException w:name="Medium List 2 Accent 3" w:uiPriority="66"/><w:lsdException w:name="Medium Grid 1 Accent 3" w:uiPriority="67"/><w:lsdException w:name="Medium Grid 2 Accent 3" w:uiPriority="68"/><w:lsdException w:name="Medium Grid 3 Accent 3" w:uiPriority="69"/><w:lsdException w:name="Dark List Accent 3" w:uiPriority="70"/><w:lsdException w:name="Colorful Shading Accent 3" w:uiPriority="71"/><w:lsdException w:name="Colorful List Accent 3" w:uiPriority="72"/><w:lsdException w:name="Colorful Grid Accent 3" w:uiPriority="73"/><w:lsdException w:name="Light Shading Accent 4" w:uiPriority="60"/><w:lsdException w:name="Light List Accent 4" w:uiPriority="61"/><w:lsdException w:name="Light Grid Accent 4" w:uiPriority="62"/><w:lsdException w:name="Medium Shading 1 Accent 4" w:uiPriority="63"/><w:lsdException w:name="Medium Shading 2 Accent 4" w:uiPriority="64"/><w:lsdException w:name="Medium List 1 Accent 4" w:uiPriority="65"/><w:lsdException w:name="Medium List 2 Accent 4" w:uiPriority="66"/><w:lsdException w:name="Medium Grid 1 Accent 4" w:uiPriority="67"/><w:lsdException w:name="Medium Grid 2 Accent 4" w:uiPriority="68"/><w:lsdException w:name="Medium Grid 3 Accent 4" w:uiPriority="69"/><w:lsdException w:name="Dark List Accent 4" w:uiPriority="70"/><w:lsdException w:name="Colorful Shading Accent 4" w:uiPriority="71"/><w:lsdException w:name="Colorful List Accent 4" w:uiPriority="72"/><w:lsdException w:name="Colorful Grid Accent 4" w:uiPriority="73"/><w:lsdException w:name="Light Shading Accent 5" w:uiPriority="60"/><w:lsdException w:name="Light List Accent 5" w:uiPriority="61"/><w:lsdException w:name="Light Grid Accent 5" w:uiPriority="62"/><w:lsdException w:name="Medium Shading 1 Accent 5" w:uiPriority="63"/><w:lsdException w:name="Medium Shading 2 Accent 5" w:uiPriority="64"/><w:lsdException w:name="Medium List 1 Accent 5" w:uiPriority="65"/><w:lsdException w:name="Medium List 2 Accent 5" w:uiPriority="66"/><w:lsdException w:name="Medium Grid 1 Accent 5" w:uiPriority="67"/><w:lsdException w:name="Medium Grid 2 Accent 5" w:uiPriority="68"/><w:lsdException w:name="Medium Grid 3 Accent 5" w:uiPriority="69"/><w:lsdException w:name="Dark List Accent 5" w:uiPriority="70"/><w:lsdException w:name="Colorful Shading Accent 5" w:uiPriority="71"/><w:lsdException w:name="Colorful List Accent 5" w:uiPriority="72"/><w:lsdException w:name="Colorful Grid Accent 5" w:uiPriority="73"/><w:lsdException w:name="Light Shading Accent 6" w:uiPriority="60"/><w:lsdException w:name="Light List Accent 6" w:uiPriority="61"/><w:lsdException w:name="Light Grid Accent 6" w:uiPriority="62"/><w:lsdException w:name="Medium Shading 1 Accent 6" w:uiPriority="63"/><w:lsdException w:name="Medium Shading 2 Accent 6" w:uiPriority="64"/><w:lsdException w:name="Medium List 1 Accent 6" w:uiPriority="65"/><w:lsdException w:name="Medium List 2 Accent 6" w:uiPriority="66"/><w:lsdException w:name="Medium Grid 1 Accent 6" w:uiPriority="67"/><w:lsdException w:name="Medium Grid 2 Accent 6" w:uiPriority="68"/><w:lsdException w:name="Medium Grid 3 Accent 6" w:uiPriority="69"/><w:lsdException w:name="Dark List Accent 6" w:uiPriority="70"/><w:lsdException w:name="Colorful Shading Accent 6" w:uiPriority="71"/><w:lsdException w:name="Colorful List Accent 6" w:uiPriority="72"/><w:lsdException w:name="Colorful Grid Accent 6" w:uiPriority="73"/><w:lsdException w:name="Subtle Emphasis" w:uiPriority="19" w:qFormat="1"/><w:lsdException w:name="Intense Emphasis" w:uiPriority="21" w:qFormat="1"/><w:lsdException w:name="Subtle Reference" w:uiPriority="31" w:qFormat="1"/><w:lsdException w:name="Intense Reference" w:uiPriority="32" w:qFormat="1"/><w:lsdException w:name="Book Title" w:uiPriority="33" w:qFormat="1"/><w:lsdException w:name="Bibliography" w:semiHidden="1" w:uiPriority="37" w:unhideWhenUsed="1"/><w:lsdException w:name="TOC Heading" w:semiHidden="1" w:uiPriority="39" w:unhideWhenUsed="1" w:qFormat="1"/><w:lsdException w:name="Plain Table 1" w:uiPriority="41"/><w:lsdException w:name="Plain Table 2" w:uiPriority="42"/><w:lsdException w:name="Plain Table 3" w:uiPriority="43"/><w:lsdException w:name="Plain Table 4" w:uiPriority="44"/><w:lsdException w:name="Plain Table 5" w:uiPriority="45"/><w:lsdException w:name="Grid Table Light" w:uiPriority="40"/><w:lsdException w:name="Grid Table 1 Light" w:uiPriority="46"/><w:lsdException w:name="Grid Table 2" w:uiPriority="47"/><w:lsdException w:name="Grid Table 3" w:uiPriority="48"/><w:lsdException w:name="Grid Table 4" w:uiPriority="49"/><w:lsdException w:name="Grid Table 5 Dark" w:uiPriority="50"/><w:lsdException w:name="Grid Table 6 Colorful" w:uiPriority="51"/><w:lsdException w:name="Grid Table 7 Colorful" w:uiPriority="52"/><w:lsdException w:name="Grid Table 1 Light Accent 1" w:uiPriority="46"/><w:lsdException w:name="Grid Table 2 Accent 1" w:uiPriority="47"/><w:lsdException w:name="Grid Table 3 Accent 1" w:uiPriority="48"/><w:lsdException w:name="Grid Table 4 Accent 1" w:uiPriority="49"/><w:lsdException w:name="Grid Table 5 Dark Accent 1" w:uiPriority="50"/><w:lsdException w:name="Grid Table 6 Colorful Accent 1" w:uiPriority="51"/><w:lsdException w:name="Grid Table 7 Colorful Accent 1" w:uiPriority="52"/><w:lsdException w:name="Grid Table 1 Light Accent 2" w:uiPriority="46"/><w:lsdException w:name="Grid Table 2 Accent 2" w:uiPriority="47"/><w:lsdException w:name="Grid Table 3 Accent 2" w:uiPriority="48"/><w:lsdException w:name="Grid Table 4 Accent 2" w:uiPriority="49"/><w:lsdException w:name="Grid Table 5 Dark Accent 2" w:uiPriority="50"/><w:lsdException w:name="Grid Table 6 Colorful Accent 2" w:uiPriority="51"/><w:lsdException w:name="Grid Table 7 Colorful Accent 2" w:uiPriority="52"/><w:lsdException w:name="Grid Table 1 Light Accent 3" w:uiPriority="46"/><w:lsdException w:name="Grid Table 2 Accent 3" w:uiPriority="47"/><w:lsdException w:name="Grid Table 3 Accent 3" w:uiPriority="48"/><w:lsdException w:name="Grid Table 4 Accent 3" w:uiPriority="49"/><w:lsdException w:name="Grid Table 5 Dark Accent 3" w:uiPriority="50"/><w:lsdException w:name="Grid Table 6 Colorful Accent 3" w:uiPriority="51"/><w:lsdException w:name="Grid Table 7 Colorful Accent 3" w:uiPriority="52"/><w:lsdException w:name="Grid Table 1 Light Accent 4" w:uiPriority="46"/><w:lsdException w:name="Grid Table 2 Accent 4" w:uiPriority="47"/><w:lsdException w:name="Grid Table 3 Accent 4" w:uiPriority="48"/><w:lsdException w:name="Grid Table 4 Accent 4" w:uiPriority="49"/><w:lsdException w:name="Grid Table 5 Dark Accent 4" w:uiPriority="50"/><w:lsdException w:name="Grid Table 6 Colorful Accent 4" w:uiPriority="51"/><w:lsdException w:name="Grid Table 7 Colorful Accent 4" w:uiPriority="52"/><w:lsdException w:name="Grid Table 1 Light Accent 5" w:uiPriority="46"/><w:lsdException w:name="Grid Table 2 Accent 5" w:uiPriority="47"/><w:lsdException w:name="Grid Table 3 Accent 5" w:uiPriority="48"/><w:lsdException w:name="Grid Table 4 Accent 5" w:uiPriority="49"/><w:lsdException w:name="Grid Table 5 Dark Accent 5" w:uiPriority="50"/><w:lsdException w:name="Grid Table 6 Colorful Accent 5" w:uiPriority="51"/><w:lsdException w:name="Grid Table 7 Colorful Accent 5" w:uiPriority="52"/><w:lsdException w:name="Grid Table 1 Light Accent 6" w:uiPriority="46"/><w:lsdException w:name="Grid Table 2 Accent 6" w:uiPriority="47"/><w:lsdException w:name="Grid Table 3 Accent 6" w:uiPriority="48"/><w:lsdException w:name="Grid Table 4 Accent 6" w:uiPriority="49"/><w:lsdException w:name="Grid Table 5 Dark Accent 6" w:uiPriority="50"/><w:lsdException w:name="Grid Table 6 Colorful Accent 6" w:uiPriority="51"/><w:lsdException w:name="Grid Table 7 Colorful Accent 6" w:uiPriority="52"/><w:lsdException w:name="List Table 1 Light" w:uiPriority="46"/><w:lsdException w:name="List Table 2" w:uiPriority="47"/><w:lsdException w:name="List Table 3" w:uiPriority="48"/><w:lsdException w:name="List Table 4" w:uiPriority="49"/><w:lsdException w:name="List Table 5 Dark" w:uiPriority="50"/><w:lsdException w:name="List Table 6 Colorful" w:uiPriority="51"/><w:lsdException w:name="List Table 7 Colorful" w:uiPriority="52"/><w:lsdException w:name="List Table 1 Light Accent 1" w:uiPriority="46"/><w:lsdException w:name="List Table 2 Accent 1" w:uiPriority="47"/><w:lsdException w:name="List Table 3 Accent 1" w:uiPriority="48"/><w:lsdException w:name="List Table 4 Accent 1" w:uiPriority="49"/><w:lsdException w:name="List Table 5 Dark Accent 1" w:uiPriority="50"/><w:lsdException w:name="List Table 6 Colorful Accent 1" w:uiPriority="51"/><w:lsdException w:name="List Table 7 Colorful Accent 1" w:uiPriority="52"/><w:lsdException w:name="List Table 1 Light Accent 2" w:uiPriority="46"/><w:lsdException w:name="List Table 2 Accent 2" w:uiPriority="47"/><w:lsdException w:name="List Table 3 Accent 2" w:uiPriority="48"/><w:lsdException w:name="List Table 4 Accent 2" w:uiPriority="49"/><w:lsdException w:name="List Table 5 Dark Accent 2" w:uiPriority="50"/><w:lsdException w:name="List Table 6 Colorful Accent 2" w:uiPriority="51"/><w:lsdException w:name="List Table 7 Colorful Accent 2" w:uiPriority="52"/><w:lsdException w:name="List Table 1 Light Accent 3" w:uiPriority="46"/><w:lsdException w:name="List Table 2 Accent 3" w:uiPriority="47"/><w:lsdException w:name="List Table 3 Accent 3" w:uiPriority="48"/><w:lsdException w:name="List Table 4 Accent 3" w:uiPriority="49"/><w:lsdException w:name="List Table 5 Dark Accent 3" w:uiPriority="50"/><w:lsdException w:name="List Table 6 Colorful Accent 3" w:uiPriority="51"/><w:lsdException w:name="List Table 7 Colorful Accent 3" w:uiPriority="52"/><w:lsdException w:name="List Table 1 Light Accent 4" w:uiPriority="46"/><w:lsdException w:name="List Table 2 Accent 4" w:uiPriority="47"/><w:lsdException w:name="List Table 3 Accent 4" w:uiPriority="48"/><w:lsdException w:name="List Table 4 Accent 4" w:uiPriority="49"/><w:lsdException w:name="List Table 5 Dark Accent 4" w:uiPriority="50"/><w:lsdException w:name="List Table 6 Colorful Accent 4" w:uiPriority="51"/><w:lsdException w:name="List Table 7 Colorful Accent 4" w:uiPriority="52"/><w:lsdException w:name="List Table 1 Light Accent 5" w:uiPriority="46"/><w:lsdException w:name="List Table 2 Accent 5" w:uiPriority="47"/><w:lsdException w:name="List Table 3 Accent 5" w:uiPriority="48"/><w:lsdException w:name="List Table 4 Accent 5" w:uiPriority="49"/><w:lsdException w:name="List Table 5 Dark Accent 5" w:uiPriority="50"/><w:lsdException w:name="List Table 6 Colorful Accent 5" w:uiPriority="51"/><w:lsdException w:name="List Table 7 Colorful Accent 5" w:uiPriority="52"/><w:lsdException w:name="List Table 1 Light Accent 6" w:uiPriority="46"/><w:lsdException w:name="List Table 2 Accent 6" w:uiPriority="47"/><w:lsdException w:name="List Table 3 Accent 6" w:uiPriority="48"/><w:lsdException w:name="List Table 4 Accent 6" w:uiPriority="49"/><w:lsdException w:name="List Table 5 Dark Accent 6" w:uiPriority="50"/><w:lsdException w:name="List Table 6 Colorful Accent 6" w:uiPriority="51"/><w:lsdException w:name="List Table 7 Colorful Accent 6" w:uiPriority="52"/><w:lsdException w:name="Mention" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Smart Hyperlink" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Hashtag" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Unresolved Mention" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Smart Link" w:semiHidden="1" w:unhideWhenUsed="1"/></w:latentStyles><w:style w:type="paragraph" w:default="1" w:styleId="Normal"><w:name w:val="Normal"/><w:qFormat/></w:style><w:style w:type="character" w:default="1" w:styleId="DefaultParagraphFont"><w:name w:val="Default Paragraph Font"/><w:uiPriority w:val="1"/><w:semiHidden/><w:unhideWhenUsed/></w:style><w:style w:type="table" w:default="1" w:styleId="TableNormal"><w:name w:val="Normal Table"/><w:uiPriority w:val="99"/><w:semiHidden/><w:unhideWhenUsed/><w:tblPr><w:tblInd w:w="0" w:type="dxa"/><w:tblCellMar><w:top w:w="0" w:type="dxa"/><w:left w:w="108" w:type="dxa"/><w:bottom w:w="0" w:type="dxa"/><w:right w:w="108" w:type="dxa"/></w:tblCellMar></w:tblPr></w:style><w:style w:type="numbering" w:default="1" w:styleId="NoList"><w:name w:val="No List"/><w:uiPriority w:val="99"/><w:semiHidden/><w:unhideWhenUsed/></w:style></w:styles> \ No newline at end of file
diff --git a/extract/test/background_lines_2.pdf.mutool.docx.dir.ref/word/theme/theme1.xml b/extract/test/background_lines_2.pdf.mutool.docx.dir.ref/word/theme/theme1.xml
new file mode 100644
index 00000000..d1a502f8
--- /dev/null
+++ b/extract/test/background_lines_2.pdf.mutool.docx.dir.ref/word/theme/theme1.xml
@@ -0,0 +1,2 @@
+<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
+<a:theme xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main" name="Office Theme"><a:themeElements><a:clrScheme name="Office"><a:dk1><a:sysClr val="windowText" lastClr="000000"/></a:dk1><a:lt1><a:sysClr val="window" lastClr="FFFFFF"/></a:lt1><a:dk2><a:srgbClr val="44546A"/></a:dk2><a:lt2><a:srgbClr val="E7E6E6"/></a:lt2><a:accent1><a:srgbClr val="4472C4"/></a:accent1><a:accent2><a:srgbClr val="ED7D31"/></a:accent2><a:accent3><a:srgbClr val="A5A5A5"/></a:accent3><a:accent4><a:srgbClr val="FFC000"/></a:accent4><a:accent5><a:srgbClr val="5B9BD5"/></a:accent5><a:accent6><a:srgbClr val="70AD47"/></a:accent6><a:hlink><a:srgbClr val="0563C1"/></a:hlink><a:folHlink><a:srgbClr val="954F72"/></a:folHlink></a:clrScheme><a:fontScheme name="Office"><a:majorFont><a:latin typeface="Calibri Light" panose="020F0302020204030204"/><a:ea typeface=""/><a:cs typeface=""/><a:font script="Jpan" typeface="游ゴシック Light"/><a:font script="Hang" typeface="맑은 고딕"/><a:font script="Hans" typeface="等线 Light"/><a:font script="Hant" typeface="新細明體"/><a:font script="Arab" typeface="Times New Roman"/><a:font script="Hebr" typeface="Times New Roman"/><a:font script="Thai" typeface="Angsana New"/><a:font script="Ethi" typeface="Nyala"/><a:font script="Beng" typeface="Vrinda"/><a:font script="Gujr" typeface="Shruti"/><a:font script="Khmr" typeface="MoolBoran"/><a:font script="Knda" typeface="Tunga"/><a:font script="Guru" typeface="Raavi"/><a:font script="Cans" typeface="Euphemia"/><a:font script="Cher" typeface="Plantagenet Cherokee"/><a:font script="Yiii" typeface="Microsoft Yi Baiti"/><a:font script="Tibt" typeface="Microsoft Himalaya"/><a:font script="Thaa" typeface="MV Boli"/><a:font script="Deva" typeface="Mangal"/><a:font script="Telu" typeface="Gautami"/><a:font script="Taml" typeface="Latha"/><a:font script="Syrc" typeface="Estrangelo Edessa"/><a:font script="Orya" typeface="Kalinga"/><a:font script="Mlym" typeface="Kartika"/><a:font script="Laoo" typeface="DokChampa"/><a:font script="Sinh" typeface="Iskoola Pota"/><a:font script="Mong" typeface="Mongolian Baiti"/><a:font script="Viet" typeface="Times New Roman"/><a:font script="Uigh" typeface="Microsoft Uighur"/><a:font script="Geor" typeface="Sylfaen"/><a:font script="Armn" typeface="Arial"/><a:font script="Bugi" typeface="Leelawadee UI"/><a:font script="Bopo" typeface="Microsoft JhengHei"/><a:font script="Java" typeface="Javanese Text"/><a:font script="Lisu" typeface="Segoe UI"/><a:font script="Mymr" typeface="Myanmar Text"/><a:font script="Nkoo" typeface="Ebrima"/><a:font script="Olck" typeface="Nirmala UI"/><a:font script="Osma" typeface="Ebrima"/><a:font script="Phag" typeface="Phagspa"/><a:font script="Syrn" typeface="Estrangelo Edessa"/><a:font script="Syrj" typeface="Estrangelo Edessa"/><a:font script="Syre" typeface="Estrangelo Edessa"/><a:font script="Sora" typeface="Nirmala UI"/><a:font script="Tale" typeface="Microsoft Tai Le"/><a:font script="Talu" typeface="Microsoft New Tai Lue"/><a:font script="Tfng" typeface="Ebrima"/></a:majorFont><a:minorFont><a:latin typeface="Calibri" panose="020F0502020204030204"/><a:ea typeface=""/><a:cs typeface=""/><a:font script="Jpan" typeface="游明朝"/><a:font script="Hang" typeface="맑은 고딕"/><a:font script="Hans" typeface="等线"/><a:font script="Hant" typeface="新細明體"/><a:font script="Arab" typeface="Arial"/><a:font script="Hebr" typeface="Arial"/><a:font script="Thai" typeface="Cordia New"/><a:font script="Ethi" typeface="Nyala"/><a:font script="Beng" typeface="Vrinda"/><a:font script="Gujr" typeface="Shruti"/><a:font script="Khmr" typeface="DaunPenh"/><a:font script="Knda" typeface="Tunga"/><a:font script="Guru" typeface="Raavi"/><a:font script="Cans" typeface="Euphemia"/><a:font script="Cher" typeface="Plantagenet Cherokee"/><a:font script="Yiii" typeface="Microsoft Yi Baiti"/><a:font script="Tibt" typeface="Microsoft Himalaya"/><a:font script="Thaa" typeface="MV Boli"/><a:font script="Deva" typeface="Mangal"/><a:font script="Telu" typeface="Gautami"/><a:font script="Taml" typeface="Latha"/><a:font script="Syrc" typeface="Estrangelo Edessa"/><a:font script="Orya" typeface="Kalinga"/><a:font script="Mlym" typeface="Kartika"/><a:font script="Laoo" typeface="DokChampa"/><a:font script="Sinh" typeface="Iskoola Pota"/><a:font script="Mong" typeface="Mongolian Baiti"/><a:font script="Viet" typeface="Arial"/><a:font script="Uigh" typeface="Microsoft Uighur"/><a:font script="Geor" typeface="Sylfaen"/><a:font script="Armn" typeface="Arial"/><a:font script="Bugi" typeface="Leelawadee UI"/><a:font script="Bopo" typeface="Microsoft JhengHei"/><a:font script="Java" typeface="Javanese Text"/><a:font script="Lisu" typeface="Segoe UI"/><a:font script="Mymr" typeface="Myanmar Text"/><a:font script="Nkoo" typeface="Ebrima"/><a:font script="Olck" typeface="Nirmala UI"/><a:font script="Osma" typeface="Ebrima"/><a:font script="Phag" typeface="Phagspa"/><a:font script="Syrn" typeface="Estrangelo Edessa"/><a:font script="Syrj" typeface="Estrangelo Edessa"/><a:font script="Syre" typeface="Estrangelo Edessa"/><a:font script="Sora" typeface="Nirmala UI"/><a:font script="Tale" typeface="Microsoft Tai Le"/><a:font script="Talu" typeface="Microsoft New Tai Lue"/><a:font script="Tfng" typeface="Ebrima"/></a:minorFont></a:fontScheme><a:fmtScheme name="Office"><a:fillStyleLst><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:gradFill rotWithShape="1"><a:gsLst><a:gs pos="0"><a:schemeClr val="phClr"><a:lumMod val="110000"/><a:satMod val="105000"/><a:tint val="67000"/></a:schemeClr></a:gs><a:gs pos="50000"><a:schemeClr val="phClr"><a:lumMod val="105000"/><a:satMod val="103000"/><a:tint val="73000"/></a:schemeClr></a:gs><a:gs pos="100000"><a:schemeClr val="phClr"><a:lumMod val="105000"/><a:satMod val="109000"/><a:tint val="81000"/></a:schemeClr></a:gs></a:gsLst><a:lin ang="5400000" scaled="0"/></a:gradFill><a:gradFill rotWithShape="1"><a:gsLst><a:gs pos="0"><a:schemeClr val="phClr"><a:satMod val="103000"/><a:lumMod val="102000"/><a:tint val="94000"/></a:schemeClr></a:gs><a:gs pos="50000"><a:schemeClr val="phClr"><a:satMod val="110000"/><a:lumMod val="100000"/><a:shade val="100000"/></a:schemeClr></a:gs><a:gs pos="100000"><a:schemeClr val="phClr"><a:lumMod val="99000"/><a:satMod val="120000"/><a:shade val="78000"/></a:schemeClr></a:gs></a:gsLst><a:lin ang="5400000" scaled="0"/></a:gradFill></a:fillStyleLst><a:lnStyleLst><a:ln w="6350" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:prstDash val="solid"/><a:miter lim="800000"/></a:ln><a:ln w="12700" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:prstDash val="solid"/><a:miter lim="800000"/></a:ln><a:ln w="19050" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:prstDash val="solid"/><a:miter lim="800000"/></a:ln></a:lnStyleLst><a:effectStyleLst><a:effectStyle><a:effectLst/></a:effectStyle><a:effectStyle><a:effectLst/></a:effectStyle><a:effectStyle><a:effectLst><a:outerShdw blurRad="57150" dist="19050" dir="5400000" algn="ctr" rotWithShape="0"><a:srgbClr val="000000"><a:alpha val="63000"/></a:srgbClr></a:outerShdw></a:effectLst></a:effectStyle></a:effectStyleLst><a:bgFillStyleLst><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:solidFill><a:schemeClr val="phClr"><a:tint val="95000"/><a:satMod val="170000"/></a:schemeClr></a:solidFill><a:gradFill rotWithShape="1"><a:gsLst><a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="93000"/><a:satMod val="150000"/><a:shade val="98000"/><a:lumMod val="102000"/></a:schemeClr></a:gs><a:gs pos="50000"><a:schemeClr val="phClr"><a:tint val="98000"/><a:satMod val="130000"/><a:shade val="90000"/><a:lumMod val="103000"/></a:schemeClr></a:gs><a:gs pos="100000"><a:schemeClr val="phClr"><a:shade val="63000"/><a:satMod val="120000"/></a:schemeClr></a:gs></a:gsLst><a:lin ang="5400000" scaled="0"/></a:gradFill></a:bgFillStyleLst></a:fmtScheme></a:themeElements><a:objectDefaults/><a:extraClrSchemeLst/><a:extLst><a:ext uri="{05A4C25C-085E-4340-85A3-A5531E510DB2}"><thm15:themeFamily xmlns:thm15="http://schemas.microsoft.com/office/thememl/2012/main" name="Office Theme" id="{62F939B6-93AF-4DB8-9C6B-D6C7DFDC589F}" vid="{4A3C46E8-61CC-4603-A589-7422A47A8E4A}"/></a:ext></a:extLst></a:theme> \ No newline at end of file
diff --git a/extract/test/background_lines_2.pdf.mutool.docx.dir.ref/word/webSettings.xml b/extract/test/background_lines_2.pdf.mutool.docx.dir.ref/word/webSettings.xml
new file mode 100644
index 00000000..629ae06a
--- /dev/null
+++ b/extract/test/background_lines_2.pdf.mutool.docx.dir.ref/word/webSettings.xml
@@ -0,0 +1,2 @@
+<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
+<w:webSettings xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships" xmlns:w="http://schemas.openxmlformats.org/wordprocessingml/2006/main" xmlns:w14="http://schemas.microsoft.com/office/word/2010/wordml" xmlns:w15="http://schemas.microsoft.com/office/word/2012/wordml" xmlns:w16cex="http://schemas.microsoft.com/office/word/2018/wordml/cex" xmlns:w16cid="http://schemas.microsoft.com/office/word/2016/wordml/cid" xmlns:w16="http://schemas.microsoft.com/office/word/2018/wordml" xmlns:w16se="http://schemas.microsoft.com/office/word/2015/wordml/symex" mc:Ignorable="w14 w15 w16se w16cid w16 w16cex"><w:optimizeForBrowser/><w:allowPNG/></w:webSettings> \ No newline at end of file
diff --git a/extract/test/background_lines_2.pdf.mutool.html.ref b/extract/test/background_lines_2.pdf.mutool.html.ref
new file mode 100644
index 00000000..03ee5855
--- /dev/null
+++ b/extract/test/background_lines_2.pdf.mutool.html.ref
@@ -0,0 +1,87 @@
+<html>
+<body>
+
+
+<p><b>INPUT SURVEY, 1996-1997
+</p></b>
+
+<p><b>TABLE 5J : ESTIMATED AREA UNDER PADDY TREATED WITH AZETOBACTOR BY SIZE GROUPS.
+</p></b>
+
+<p><b>ANDHRA PRADESH DISTRICT : PAGE NO.
+</p></b>
+
+<p><b>STATE : ADILABAD 1
+</p></b>
+
+<table border="1" style="border-collapse:collapse">
+ <tr>
+ <td colspan="2" rowspan="2"><p><b>Sl.No</p></b></td><td colspan="2" rowspan="2"><p><b>SIZE GROUP (HA) </p></b></td><td colspan="2"><p><b>NO. OF HOLDINGS GROWING THE CROP </p></b></td><td colspan="3"><p><b>AREA UNDER THE CROP</p></b></td><td colspan="6"><p><b>AREA UNDER THE CROP TREATED WITH THE MANURE</p></b></td>
+ </tr>
+ <tr>
+ <td><p><b>TOTAL NO.</p></b></td><td><p><b>NO. TREATED WITH THE MANURE</p></b></td><td><p><b>HYV</p></b></td><td><p><b>OTHERS</p></b></td><td><p><b>TOTAL</p></b></td><td colspan="2"><p><b>HYV</p></b></td><td colspan="2"><p><b>OTHERS</p></b></td><td colspan="2"><p><b>TOTAL</p></b></td>
+ </tr>
+ <tr>
+ <td colspan="2"><p><b>(1)</p></b></td><td colspan="2"><p><b>(2)</p></b></td><td><p><b>(3)</p></b></td><td><p><b>(4)</p></b></td><td><p><b>(5)</p></b></td><td><p><b>(6)</p></b></td><td><p><b>(7)</p></b></td><td colspan="2"><p><b>(8)</p></b></td><td colspan="2"><p><b>(9)</p></b></td><td colspan="2"><p><b>(10)</p></b></td>
+ </tr>
+ <tr>
+ <td rowspan="3"><p>1</p></td><td colspan="14" rowspan="3"><p>MARGINAL (BELOW 1.0)</p><p><b>I</b> 39053 0 12142 3322 15464 0 0 0</p><p><b>UI</b> 7429 0 2088 1560 3648 0 0 0</p><p><b>T</b> 46484 0 14230 4882 19112 0 0 0</p></td>
+ </tr>
+ <tr>
+
+ </tr>
+ <tr>
+
+ </tr>
+ <tr>
+ <td rowspan="3"><p>2</p></td><td colspan="14" rowspan="3"><p>SMALL (1.0 - 1.99)</p><p><b>I</b> 20341 0 16685 1631 18316 0 0 0</p><p><b>UI</b> 6854 0 4594 1885 6479 0 0 0</p><p><b>T</b> 27197 0 21279 3516 24795 0 0 0</p></td>
+ </tr>
+ <tr>
+
+ </tr>
+ <tr>
+
+ </tr>
+ <tr>
+ <td rowspan="3"><p>3</p></td><td colspan="14" rowspan="3"><p>SEMI-MEDIUM (2.0 - 3.99)</p><p><b>I</b> 20800 0 16991 7643 24634 0 0 0</p><p><b>UI</b> 5856 0 1017 4819 5836 0 0 0</p><p><b>T</b> 26555 0 18008 12462 30470 0 0 0</p></td>
+ </tr>
+ <tr>
+
+ </tr>
+ <tr>
+
+ </tr>
+ <tr>
+ <td rowspan="3"><p>4</p></td><td colspan="14" rowspan="3"><p>MEDIUM (4.0 - 9.99)</p><p><b>I</b> 11986 0 17576 4120 21696 0 0 0</p><p><b>UI</b> 4615 0 1446 6227 7673 0 0 0</p><p><b>T</b> 16312 0 19022 10347 29369 0 0 0</p></td>
+ </tr>
+ <tr>
+
+ </tr>
+ <tr>
+
+ </tr>
+ <tr>
+ <td rowspan="3"><p>5</p></td><td colspan="14" rowspan="3"><p>LARGE (10 AND ABOVE)</p><p><b>I</b> 2005 0 3671 639 4310 0 0 0</p><p><b>UI</b> 521 0 611 831 1442 0 0 0</p><p><b>T</b> 2485 0 4282 1470 5752 0 0 0</p></td>
+ </tr>
+ <tr>
+
+ </tr>
+ <tr>
+
+ </tr>
+ <tr>
+ <td rowspan="3"><p>6</p></td><td colspan="14" rowspan="3"><p>ALL GROUPS</p><p><b>I</b> 94185 0 67065 17355 84420 0 0 0</p><p><b>UI</b> 25275 0 9756 15322 25078 0 0 0</p><p><b>T</b> 119033 0 76821 32677 109498 0 0 0</p></td>
+ </tr>
+ <tr>
+
+ </tr>
+ <tr>
+
+ </tr>
+</table>
+
+
+
+<p><b>NOTE: I-IRRIGATED UI-UNIRRIGATED T = TOTAL OF I &amp; UI IN CASE OF COLUMNS 3 AND 4
+</p></b></body>
+</html>
diff --git a/extract/test/background_lines_2.pdf.mutool.odt.dir.ref/META-INF/manifest.xml b/extract/test/background_lines_2.pdf.mutool.odt.dir.ref/META-INF/manifest.xml
new file mode 100644
index 00000000..ec991d79
--- /dev/null
+++ b/extract/test/background_lines_2.pdf.mutool.odt.dir.ref/META-INF/manifest.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<manifest:manifest xmlns:manifest="urn:oasis:names:tc:opendocument:xmlns:manifest:1.0" manifest:version="1.3" xmlns:loext="urn:org:documentfoundation:names:experimental:office:xmlns:loext:1.0">
+ <manifest:file-entry manifest:full-path="/" manifest:version="1.3" manifest:media-type="application/vnd.oasis.opendocument.text"/>
+ <manifest:file-entry manifest:full-path="meta.xml" manifest:media-type="text/xml"/>
+ <manifest:file-entry manifest:full-path="settings.xml" manifest:media-type="text/xml"/>
+ <manifest:file-entry manifest:full-path="Configurations2/" manifest:media-type="application/vnd.sun.xml.ui.configuration"/>
+ <manifest:file-entry manifest:full-path="manifest.rdf" manifest:media-type="application/rdf+xml"/>
+ <manifest:file-entry manifest:full-path="styles.xml" manifest:media-type="text/xml"/>
+ <manifest:file-entry manifest:full-path="content.xml" manifest:media-type="text/xml"/>
+ <manifest:file-entry manifest:full-path="Thumbnails/thumbnail.png" manifest:media-type="image/png"/>
+</manifest:manifest> \ No newline at end of file
diff --git a/extract/test/background_lines_2.pdf.mutool.odt.dir.ref/Thumbnails/thumbnail.png b/extract/test/background_lines_2.pdf.mutool.odt.dir.ref/Thumbnails/thumbnail.png
new file mode 100644
index 00000000..0dd1608e
--- /dev/null
+++ b/extract/test/background_lines_2.pdf.mutool.odt.dir.ref/Thumbnails/thumbnail.png
@@ -0,0 +1,2 @@
+PNG
+
diff --git a/extract/test/background_lines_2.pdf.mutool.odt.dir.ref/content.xml b/extract/test/background_lines_2.pdf.mutool.odt.dir.ref/content.xml
new file mode 100644
index 00000000..b0a8120f
--- /dev/null
+++ b/extract/test/background_lines_2.pdf.mutool.odt.dir.ref/content.xml
@@ -0,0 +1,575 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<office:document-content xmlns:css3t="http://www.w3.org/TR/css3-text/" xmlns:grddl="http://www.w3.org/2003/g/data-view#" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xforms="http://www.w3.org/2002/xforms" xmlns:dom="http://www.w3.org/2001/xml-events" xmlns:script="urn:oasis:names:tc:opendocument:xmlns:script:1.0" xmlns:form="urn:oasis:names:tc:opendocument:xmlns:form:1.0" xmlns:math="http://www.w3.org/1998/Math/MathML" xmlns:number="urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0" xmlns:field="urn:openoffice:names:experimental:ooo-ms-interop:xmlns:field:1.0" xmlns:meta="urn:oasis:names:tc:opendocument:xmlns:meta:1.0" xmlns:loext="urn:org:documentfoundation:names:experimental:office:xmlns:loext:1.0" xmlns:officeooo="http://openoffice.org/2009/office" xmlns:table="urn:oasis:names:tc:opendocument:xmlns:table:1.0" xmlns:chart="urn:oasis:names:tc:opendocument:xmlns:chart:1.0" xmlns:tableooo="http://openoffice.org/2009/table" xmlns:draw="urn:oasis:names:tc:opendocument:xmlns:drawing:1.0" xmlns:rpt="http://openoffice.org/2005/report" xmlns:dr3d="urn:oasis:names:tc:opendocument:xmlns:dr3d:1.0" xmlns:of="urn:oasis:names:tc:opendocument:xmlns:of:1.2" xmlns:text="urn:oasis:names:tc:opendocument:xmlns:text:1.0" xmlns:style="urn:oasis:names:tc:opendocument:xmlns:style:1.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:calcext="urn:org:documentfoundation:names:experimental:calc:xmlns:calcext:1.0" xmlns:oooc="http://openoffice.org/2004/calc" xmlns:drawooo="http://openoffice.org/2010/draw" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:ooo="http://openoffice.org/2004/office" xmlns:ooow="http://openoffice.org/2004/writer" xmlns:fo="urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0" xmlns:formx="urn:openoffice:names:experimental:ooxml-odf-interop:xmlns:form:1.0" xmlns:svg="urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0" xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" office:version="1.3"><office:scripts/><office:font-face-decls><style:font-face style:name="Liberation Serif" svg:font-family="&apos;Liberation Serif&apos;" style:font-family-generic="roman" style:font-pitch="variable"/><style:font-face style:name="Liberation Sans" svg:font-family="&apos;Liberation Sans&apos;" style:font-family-generic="swiss" style:font-pitch="variable"/><style:font-face style:name="Unifont" svg:font-family="Unifont" style:font-family-generic="system" style:font-pitch="variable"/></office:font-face-decls><office:automatic-styles><style:style style:name="T11" style:family="text"><style:text-properties style:font-name="TimesNewRoman,Bold" fo:font-size="10.65pt" fo:font-weight="bold" fo:font-style="normal" /></style:style><style:style style:name="T12" style:family="text"><style:text-properties style:font-name="TimesNewRoman,Bold" fo:font-size="8.80pt" fo:font-weight="bold" fo:font-style="normal" /></style:style><style:style style:name="T13" style:family="text"><style:text-properties style:font-name="TimesNewRoman,Bold" fo:font-size="7.05pt" fo:font-weight="bold" fo:font-style="normal" /></style:style><style:style style:name="T14" style:family="text"><style:text-properties style:font-name="TimesNewRoman" fo:font-size="8.95pt" fo:font-weight="normal" fo:font-style="normal" /></style:style><style:style style:name="gr1" style:family="graphic">
+<style:graphic-properties draw:stroke="none" svg:stroke-color="#000000" draw:fill="none" draw:fill-color="#ffffff" fo:min-height="1.9898in" style:run-through="foreground" style:wrap="run-through" style:number-wrapped-paragraphs="no-limit" style:vertical-pos="from-top" style:vertical-rel="paragraph" style:horizontal-pos="from-left" style:horizontal-rel="paragraph" />
+<style:paragraph-properties style:writing-mode="lr-tb"/>
+</style:style>
+<style:style style:name="fr1" style:family="graphic" style:parent-style-name="Graphics">
+<style:graphic-properties fo:margin-left="0in" fo:margin-right="0in" fo:margin-top="0in" fo:margin-bottom="0in" style:vertical-pos="top" style:vertical-rel="baseline" fo:background-color="transparent" draw:fill="none" draw:fill-color="#ffffff" fo:padding="0in" fo:border="none" style:mirror="none" fo:clip="rect(0in, 0in, 0in, 0in)" draw:luminance="0%" draw:contrast="0%" draw:red="0%" draw:green="0%" draw:blue="0%" draw:gamma="100%" draw:color-inversion="false" draw:image-opacity="100%" draw:color-mode="standard"/>
+</style:style>
+</office:automatic-styles>
+<style:style style:name="extract.table" style:family="table"/>
+<style:style style:name="extract.table.column" style:family="table-column"/>
+<office:body><office:text><text:sequence-decls><text:sequence-decl text:display-outline-level="0" text:name="Illustration"/><text:sequence-decl text:display-outline-level="0" text:name="Table"/><text:sequence-decl text:display-outline-level="0" text:name="Text"/><text:sequence-decl text:display-outline-level="0" text:name="Drawing"/><text:sequence-decl text:display-outline-level="0" text:name="Figure"/></text:sequence-decls><text:p text:style-name="Standard"/>
+
+<text:p><text:span text:style-name="T11">INPUT SURVEY, 1996-1997</text:span></text:p>
+
+<text:p><text:span text:style-name="T12">TABLE 5J : ESTIMATED AREA UNDER PADDY TREATED WITH AZETOBACTOR BY SIZE GROUPS.</text:span></text:p>
+
+<text:p><text:span text:style-name="T12">STATE : ADILABAD 1</text:span></text:p>
+
+<text:p><text:span text:style-name="T12">ANDHRA PRADESH DISTRICT : PAGE NO.</text:span></text:p>
+ <table:table text:style-name="extract.table" table:name="extract.table.1">
+ <table:table-columns>
+ <table:table-column table:style-name="extract.table.column"/>
+ <table:table-column table:style-name="extract.table.column"/>
+ <table:table-column table:style-name="extract.table.column"/>
+ <table:table-column table:style-name="extract.table.column"/>
+ <table:table-column table:style-name="extract.table.column"/>
+ <table:table-column table:style-name="extract.table.column"/>
+ <table:table-column table:style-name="extract.table.column"/>
+ <table:table-column table:style-name="extract.table.column"/>
+ <table:table-column table:style-name="extract.table.column"/>
+ <table:table-column table:style-name="extract.table.column"/>
+ <table:table-column table:style-name="extract.table.column"/>
+ <table:table-column table:style-name="extract.table.column"/>
+ <table:table-column table:style-name="extract.table.column"/>
+ <table:table-column table:style-name="extract.table.column"/>
+ <table:table-column table:style-name="extract.table.column"/>
+ </table:table-columns>
+ <table:table-row>
+ <table:table-cell table:number-columns-spanned="2" table:number-rows-spanned="2">
+
+
+<text:p><text:span text:style-name="T13">Sl.No</text:span></text:p>
+ </table:table-cell>
+ <table:covered-table-cell/>
+ <table:table-cell table:number-columns-spanned="2" table:number-rows-spanned="2">
+
+
+<text:p><text:span text:style-name="T13">SIZE GROUP (HA) </text:span></text:p>
+ </table:table-cell>
+ <table:covered-table-cell/>
+ <table:table-cell table:number-columns-spanned="2">
+
+
+<text:p><text:span text:style-name="T13">NO. OF HOLDINGS GROWING THE CROP </text:span></text:p>
+ </table:table-cell>
+ <table:covered-table-cell/>
+ <table:table-cell table:number-columns-spanned="3">
+
+
+<text:p><text:span text:style-name="T13">AREA UNDER THE CROP</text:span></text:p>
+ </table:table-cell>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:table-cell table:number-columns-spanned="6">
+
+
+<text:p><text:span text:style-name="T13">AREA UNDER THE CROP TREATED WITH THE MANURE</text:span></text:p>
+ </table:table-cell>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ </table:table-row>
+ <table:table-row>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">TOTAL NO.</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">NO. TREATED WITH THE MANURE</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">HYV</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">OTHERS</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">TOTAL</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell table:number-columns-spanned="2">
+
+
+<text:p><text:span text:style-name="T13">HYV</text:span></text:p>
+ </table:table-cell>
+ <table:covered-table-cell/>
+ <table:table-cell table:number-columns-spanned="2">
+
+
+<text:p><text:span text:style-name="T13">OTHERS</text:span></text:p>
+ </table:table-cell>
+ <table:covered-table-cell/>
+ <table:table-cell table:number-columns-spanned="2">
+
+
+<text:p><text:span text:style-name="T13">TOTAL</text:span></text:p>
+ </table:table-cell>
+ <table:covered-table-cell/>
+ </table:table-row>
+ <table:table-row>
+ <table:table-cell table:number-columns-spanned="2">
+
+
+<text:p><text:span text:style-name="T13">(1)</text:span></text:p>
+ </table:table-cell>
+ <table:covered-table-cell/>
+ <table:table-cell table:number-columns-spanned="2">
+
+
+<text:p><text:span text:style-name="T13">(2)</text:span></text:p>
+ </table:table-cell>
+ <table:covered-table-cell/>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">(3)</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">(4)</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">(5)</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">(6)</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">(7)</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell table:number-columns-spanned="2">
+
+
+<text:p><text:span text:style-name="T13">(8)</text:span></text:p>
+ </table:table-cell>
+ <table:covered-table-cell/>
+ <table:table-cell table:number-columns-spanned="2">
+
+
+<text:p><text:span text:style-name="T13">(9)</text:span></text:p>
+ </table:table-cell>
+ <table:covered-table-cell/>
+ <table:table-cell table:number-columns-spanned="2">
+
+
+<text:p><text:span text:style-name="T13">(10)</text:span></text:p>
+ </table:table-cell>
+ <table:covered-table-cell/>
+ </table:table-row>
+ <table:table-row>
+ <table:table-cell table:number-rows-spanned="3">
+
+
+<text:p><text:span text:style-name="T14">1</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell table:number-columns-spanned="14" table:number-rows-spanned="3">
+
+
+<text:p><text:span text:style-name="T14">MARGINAL (BELOW 1.0)</text:span></text:p>
+
+<text:p><text:span text:style-name="T12">I</text:span><text:span text:style-name="T14"> 39053 0 12142 3322 15464 0 0 0</text:span></text:p>
+
+<text:p><text:span text:style-name="T12">UI</text:span><text:span text:style-name="T14"> 7429 0 2088 1560 3648 0 0 0</text:span></text:p>
+
+<text:p><text:span text:style-name="T12">T</text:span><text:span text:style-name="T14"> 46484 0 14230 4882 19112 0 0 0</text:span></text:p>
+ </table:table-cell>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ </table:table-row>
+ <table:table-row>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ </table:table-row>
+ <table:table-row>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ </table:table-row>
+ <table:table-row>
+ <table:table-cell table:number-rows-spanned="3">
+
+
+<text:p><text:span text:style-name="T14">2</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell table:number-columns-spanned="14" table:number-rows-spanned="3">
+
+
+<text:p><text:span text:style-name="T14">SMALL (1.0 - 1.99)</text:span></text:p>
+
+<text:p><text:span text:style-name="T12">I</text:span><text:span text:style-name="T14"> 20341 0 16685 1631 18316 0 0 0</text:span></text:p>
+
+<text:p><text:span text:style-name="T12">UI</text:span><text:span text:style-name="T14"> 6854 0 4594 1885 6479 0 0 0</text:span></text:p>
+
+<text:p><text:span text:style-name="T12">T</text:span><text:span text:style-name="T14"> 27197 0 21279 3516 24795 0 0 0</text:span></text:p>
+ </table:table-cell>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ </table:table-row>
+ <table:table-row>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ </table:table-row>
+ <table:table-row>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ </table:table-row>
+ <table:table-row>
+ <table:table-cell table:number-rows-spanned="3">
+
+
+<text:p><text:span text:style-name="T14">3</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell table:number-columns-spanned="14" table:number-rows-spanned="3">
+
+
+<text:p><text:span text:style-name="T14">SEMI-MEDIUM (2.0 - 3.99)</text:span></text:p>
+
+<text:p><text:span text:style-name="T12">I</text:span><text:span text:style-name="T14"> 20800 0 16991 7643 24634 0 0 0</text:span></text:p>
+
+<text:p><text:span text:style-name="T12">UI</text:span><text:span text:style-name="T14"> 5856 0 1017 4819 5836 0 0 0</text:span></text:p>
+
+<text:p><text:span text:style-name="T12">T</text:span><text:span text:style-name="T14"> 26555 0 18008 12462 30470 0 0 0</text:span></text:p>
+ </table:table-cell>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ </table:table-row>
+ <table:table-row>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ </table:table-row>
+ <table:table-row>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ </table:table-row>
+ <table:table-row>
+ <table:table-cell table:number-rows-spanned="3">
+
+
+<text:p><text:span text:style-name="T14">4</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell table:number-columns-spanned="14" table:number-rows-spanned="3">
+
+
+<text:p><text:span text:style-name="T14">MEDIUM (4.0 - 9.99)</text:span></text:p>
+
+<text:p><text:span text:style-name="T12">I</text:span><text:span text:style-name="T14"> 11986 0 17576 4120 21696 0 0 0</text:span></text:p>
+
+<text:p><text:span text:style-name="T12">UI</text:span><text:span text:style-name="T14"> 4615 0 1446 6227 7673 0 0 0</text:span></text:p>
+
+<text:p><text:span text:style-name="T12">T</text:span><text:span text:style-name="T14"> 16312 0 19022 10347 29369 0 0 0</text:span></text:p>
+ </table:table-cell>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ </table:table-row>
+ <table:table-row>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ </table:table-row>
+ <table:table-row>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ </table:table-row>
+ <table:table-row>
+ <table:table-cell table:number-rows-spanned="3">
+
+
+<text:p><text:span text:style-name="T14">5</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell table:number-columns-spanned="14" table:number-rows-spanned="3">
+
+
+<text:p><text:span text:style-name="T14">LARGE (10 AND ABOVE)</text:span></text:p>
+
+<text:p><text:span text:style-name="T12">I</text:span><text:span text:style-name="T14"> 2005 0 3671 639 4310 0 0 0</text:span></text:p>
+
+<text:p><text:span text:style-name="T12">UI</text:span><text:span text:style-name="T14"> 521 0 611 831 1442 0 0 0</text:span></text:p>
+
+<text:p><text:span text:style-name="T12">T</text:span><text:span text:style-name="T14"> 2485 0 4282 1470 5752 0 0 0</text:span></text:p>
+ </table:table-cell>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ </table:table-row>
+ <table:table-row>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ </table:table-row>
+ <table:table-row>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ </table:table-row>
+ <table:table-row>
+ <table:table-cell table:number-rows-spanned="3">
+
+
+<text:p><text:span text:style-name="T14">6</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell table:number-columns-spanned="14" table:number-rows-spanned="3">
+
+
+<text:p><text:span text:style-name="T14">ALL GROUPS</text:span></text:p>
+
+<text:p><text:span text:style-name="T12">I</text:span><text:span text:style-name="T14"> 94185 0 67065 17355 84420 0 0 0</text:span></text:p>
+
+<text:p><text:span text:style-name="T12">UI</text:span><text:span text:style-name="T14"> 25275 0 9756 15322 25078 0 0 0</text:span></text:p>
+
+<text:p><text:span text:style-name="T12">T</text:span><text:span text:style-name="T14"> 119033 0 76821 32677 109498 0 0 0</text:span></text:p>
+ </table:table-cell>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ </table:table-row>
+ <table:table-row>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ </table:table-row>
+ <table:table-row>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ </table:table-row>
+ </table:table>
+
+
+<text:p><text:span text:style-name="T12">NOTE: I-IRRIGATED UI-UNIRRIGATED T = TOTAL OF I &amp; UI IN CASE OF COLUMNS 3 AND 4 </text:span></text:p></office:text></office:body></office:document-content> \ No newline at end of file
diff --git a/extract/test/background_lines_2.pdf.mutool.odt.dir.ref/manifest.rdf b/extract/test/background_lines_2.pdf.mutool.odt.dir.ref/manifest.rdf
new file mode 100644
index 00000000..927e206b
--- /dev/null
+++ b/extract/test/background_lines_2.pdf.mutool.odt.dir.ref/manifest.rdf
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="utf-8"?>
+<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
+ <rdf:Description rdf:about="styles.xml">
+ <rdf:type rdf:resource="http://docs.oasis-open.org/ns/office/1.2/meta/odf#StylesFile"/>
+ </rdf:Description>
+ <rdf:Description rdf:about="">
+ <ns0:hasPart xmlns:ns0="http://docs.oasis-open.org/ns/office/1.2/meta/pkg#" rdf:resource="styles.xml"/>
+ </rdf:Description>
+ <rdf:Description rdf:about="content.xml">
+ <rdf:type rdf:resource="http://docs.oasis-open.org/ns/office/1.2/meta/odf#ContentFile"/>
+ </rdf:Description>
+ <rdf:Description rdf:about="">
+ <ns0:hasPart xmlns:ns0="http://docs.oasis-open.org/ns/office/1.2/meta/pkg#" rdf:resource="content.xml"/>
+ </rdf:Description>
+ <rdf:Description rdf:about="">
+ <rdf:type rdf:resource="http://docs.oasis-open.org/ns/office/1.2/meta/pkg#Document"/>
+ </rdf:Description>
+</rdf:RDF>
diff --git a/extract/test/background_lines_2.pdf.mutool.odt.dir.ref/meta.xml b/extract/test/background_lines_2.pdf.mutool.odt.dir.ref/meta.xml
new file mode 100644
index 00000000..6b42561e
--- /dev/null
+++ b/extract/test/background_lines_2.pdf.mutool.odt.dir.ref/meta.xml
@@ -0,0 +1,2 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<office:document-meta xmlns:grddl="http://www.w3.org/2003/g/data-view#" xmlns:meta="urn:oasis:names:tc:opendocument:xmlns:meta:1.0" xmlns:ooo="http://openoffice.org/2004/office" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" office:version="1.3"><office:meta><meta:creation-date>2021-04-05T17:06:57.937137058</meta:creation-date><meta:generator>LibreOffice/7.0.1.2$OpenBSD_X86_64 LibreOffice_project/00$Build-2</meta:generator><dc:date>2021-04-06T17:14:51.409959656</dc:date><meta:editing-duration>PT20S</meta:editing-duration><meta:editing-cycles>1</meta:editing-cycles><meta:document-statistic meta:table-count="0" meta:image-count="0" meta:object-count="0" meta:page-count="1" meta:paragraph-count="0" meta:word-count="0" meta:character-count="0" meta:non-whitespace-character-count="0"/></office:meta></office:document-meta> \ No newline at end of file
diff --git a/extract/test/background_lines_2.pdf.mutool.odt.dir.ref/mimetype b/extract/test/background_lines_2.pdf.mutool.odt.dir.ref/mimetype
new file mode 100644
index 00000000..2e95b81c
--- /dev/null
+++ b/extract/test/background_lines_2.pdf.mutool.odt.dir.ref/mimetype
@@ -0,0 +1 @@
+application/vnd.oasis.opendocument.text \ No newline at end of file
diff --git a/extract/test/background_lines_2.pdf.mutool.odt.dir.ref/settings.xml b/extract/test/background_lines_2.pdf.mutool.odt.dir.ref/settings.xml
new file mode 100644
index 00000000..35a8138f
--- /dev/null
+++ b/extract/test/background_lines_2.pdf.mutool.odt.dir.ref/settings.xml
@@ -0,0 +1,2 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<office:document-settings xmlns:config="urn:oasis:names:tc:opendocument:xmlns:config:1.0" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:ooo="http://openoffice.org/2004/office" xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" office:version="1.3"><office:settings><config:config-item-set config:name="ooo:view-settings"><config:config-item config:name="ViewAreaTop" config:type="long">0</config:config-item><config:config-item config:name="ViewAreaLeft" config:type="long">0</config:config-item><config:config-item config:name="ViewAreaWidth" config:type="long">26275</config:config-item><config:config-item config:name="ViewAreaHeight" config:type="long">19502</config:config-item><config:config-item config:name="ShowRedlineChanges" config:type="boolean">true</config:config-item><config:config-item config:name="InBrowseMode" config:type="boolean">false</config:config-item><config:config-item-map-indexed config:name="Views"><config:config-item-map-entry><config:config-item config:name="ViewId" config:type="string">view2</config:config-item><config:config-item config:name="ViewLeft" config:type="long">4343</config:config-item><config:config-item config:name="ViewTop" config:type="long">2501</config:config-item><config:config-item config:name="VisibleLeft" config:type="long">0</config:config-item><config:config-item config:name="VisibleTop" config:type="long">0</config:config-item><config:config-item config:name="VisibleRight" config:type="long">26273</config:config-item><config:config-item config:name="VisibleBottom" config:type="long">19500</config:config-item><config:config-item config:name="ZoomType" config:type="short">0</config:config-item><config:config-item config:name="ViewLayoutColumns" config:type="short">1</config:config-item><config:config-item config:name="ViewLayoutBookMode" config:type="boolean">false</config:config-item><config:config-item config:name="ZoomFactor" config:type="short">100</config:config-item><config:config-item config:name="IsSelectedFrame" config:type="boolean">false</config:config-item><config:config-item config:name="AnchoredTextOverflowLegacy" config:type="boolean">false</config:config-item></config:config-item-map-entry></config:config-item-map-indexed></config:config-item-set><config:config-item-set config:name="ooo:configuration-settings"><config:config-item config:name="PrintBlackFonts" config:type="boolean">false</config:config-item><config:config-item config:name="PrintReversed" config:type="boolean">false</config:config-item><config:config-item config:name="SaveThumbnail" config:type="boolean">true</config:config-item><config:config-item config:name="EmbedFonts" config:type="boolean">false</config:config-item><config:config-item config:name="PrintControls" config:type="boolean">true</config:config-item><config:config-item config:name="OutlineLevelYieldsNumbering" config:type="boolean">false</config:config-item><config:config-item config:name="PrintPageBackground" config:type="boolean">true</config:config-item><config:config-item config:name="PrintAnnotationMode" config:type="short">0</config:config-item><config:config-item config:name="PrintGraphics" config:type="boolean">true</config:config-item><config:config-item config:name="EmbeddedDatabaseName" config:type="string"/><config:config-item config:name="ProtectForm" config:type="boolean">false</config:config-item><config:config-item config:name="PrintLeftPages" config:type="boolean">true</config:config-item><config:config-item config:name="PrintProspect" config:type="boolean">false</config:config-item><config:config-item config:name="PrintHiddenText" config:type="boolean">false</config:config-item><config:config-item config:name="PrintRightPages" config:type="boolean">true</config:config-item><config:config-item config:name="PrintFaxName" config:type="string"/><config:config-item config:name="PrintPaperFromSetup" config:type="boolean">false</config:config-item><config:config-item config:name="TabsRelativeToIndent" config:type="boolean">true</config:config-item><config:config-item config:name="RedlineProtectionKey" config:type="base64Binary"/><config:config-item config:name="PrintTextPlaceholder" config:type="boolean">false</config:config-item><config:config-item config:name="MathBaselineAlignment" config:type="boolean">true</config:config-item><config:config-item config:name="ProtectBookmarks" config:type="boolean">false</config:config-item><config:config-item config:name="IgnoreTabsAndBlanksForLineCalculation" config:type="boolean">false</config:config-item><config:config-item config:name="ContinuousEndnotes" config:type="boolean">false</config:config-item><config:config-item config:name="FieldAutoUpdate" config:type="boolean">true</config:config-item><config:config-item config:name="EmptyDbFieldHidesPara" config:type="boolean">true</config:config-item><config:config-item config:name="ApplyParagraphMarkFormatToNumbering" config:type="boolean">false</config:config-item><config:config-item config:name="PrintEmptyPages" config:type="boolean">true</config:config-item><config:config-item config:name="TabOverMargin" config:type="boolean">false</config:config-item><config:config-item config:name="EmbedAsianScriptFonts" config:type="boolean">true</config:config-item><config:config-item config:name="EmbedLatinScriptFonts" config:type="boolean">true</config:config-item><config:config-item config:name="DisableOffPagePositioning" config:type="boolean">false</config:config-item><config:config-item config:name="EmbedOnlyUsedFonts" config:type="boolean">false</config:config-item><config:config-item config:name="MsWordCompMinLineHeightByFly" config:type="boolean">false</config:config-item><config:config-item config:name="SurroundTextWrapSmall" config:type="boolean">false</config:config-item><config:config-item config:name="BackgroundParaOverDrawings" config:type="boolean">false</config:config-item><config:config-item config:name="ClippedPictures" config:type="boolean">false</config:config-item><config:config-item config:name="FloattableNomargins" config:type="boolean">false</config:config-item><config:config-item config:name="UnbreakableNumberings" config:type="boolean">false</config:config-item><config:config-item config:name="EmbedSystemFonts" config:type="boolean">false</config:config-item><config:config-item config:name="TabOverflow" config:type="boolean">true</config:config-item><config:config-item config:name="PrintTables" config:type="boolean">true</config:config-item><config:config-item config:name="PrintDrawings" config:type="boolean">true</config:config-item><config:config-item config:name="ConsiderTextWrapOnObjPos" config:type="boolean">false</config:config-item><config:config-item config:name="PrintSingleJobs" config:type="boolean">false</config:config-item><config:config-item config:name="SmallCapsPercentage66" config:type="boolean">false</config:config-item><config:config-item config:name="CollapseEmptyCellPara" config:type="boolean">true</config:config-item><config:config-item config:name="HeaderSpacingBelowLastPara" config:type="boolean">false</config:config-item><config:config-item config:name="RsidRoot" config:type="int">2052946</config:config-item><config:config-item config:name="PrinterSetup" config:type="base64Binary"/><config:config-item config:name="CurrentDatabaseCommand" config:type="string"/><config:config-item config:name="AlignTabStopPosition" config:type="boolean">true</config:config-item><config:config-item config:name="ClipAsCharacterAnchoredWriterFlyFrames" config:type="boolean">false</config:config-item><config:config-item config:name="DoNotCaptureDrawObjsOnPage" config:type="boolean">false</config:config-item><config:config-item config:name="SaveGlobalDocumentLinks" config:type="boolean">false</config:config-item><config:config-item config:name="CurrentDatabaseCommandType" config:type="int">0</config:config-item><config:config-item config:name="LoadReadonly" config:type="boolean">false</config:config-item><config:config-item config:name="DoNotResetParaAttrsForNumFont" config:type="boolean">false</config:config-item><config:config-item config:name="StylesNoDefault" config:type="boolean">false</config:config-item><config:config-item config:name="LinkUpdateMode" config:type="short">1</config:config-item><config:config-item config:name="DoNotJustifyLinesWithManualBreak" config:type="boolean">false</config:config-item><config:config-item config:name="PropLineSpacingShrinksFirstLine" config:type="boolean">true</config:config-item><config:config-item config:name="TabAtLeftIndentForParagraphsInList" config:type="boolean">false</config:config-item><config:config-item config:name="ProtectFields" config:type="boolean">false</config:config-item><config:config-item config:name="UnxForceZeroExtLeading" config:type="boolean">false</config:config-item><config:config-item config:name="CurrentDatabaseDataSource" config:type="string"/><config:config-item config:name="UseFormerTextWrapping" config:type="boolean">false</config:config-item><config:config-item config:name="UseFormerLineSpacing" config:type="boolean">false</config:config-item><config:config-item config:name="AllowPrintJobCancel" config:type="boolean">true</config:config-item><config:config-item config:name="SubtractFlysAnchoredAtFlys" config:type="boolean">false</config:config-item><config:config-item config:name="AddParaSpacingToTableCells" config:type="boolean">true</config:config-item><config:config-item config:name="AddExternalLeading" config:type="boolean">true</config:config-item><config:config-item config:name="Rsid" config:type="int">2178852</config:config-item><config:config-item config:name="AddVerticalFrameOffsets" config:type="boolean">false</config:config-item><config:config-item config:name="TreatSingleColumnBreakAsPageBreak" config:type="boolean">false</config:config-item><config:config-item config:name="AddFrameOffsets" config:type="boolean">false</config:config-item><config:config-item config:name="IsLabelDocument" config:type="boolean">false</config:config-item><config:config-item config:name="MsWordCompTrailingBlanks" config:type="boolean">false</config:config-item><config:config-item config:name="PrinterPaperFromSetup" config:type="boolean">false</config:config-item><config:config-item config:name="IgnoreFirstLineIndentInNumbering" config:type="boolean">false</config:config-item><config:config-item config:name="PrinterName" config:type="string"/><config:config-item config:name="IsKernAsianPunctuation" config:type="boolean">false</config:config-item><config:config-item config:name="PrinterIndependentLayout" config:type="string">high-resolution</config:config-item><config:config-item config:name="TableRowKeep" config:type="boolean">false</config:config-item><config:config-item config:name="UpdateFromTemplate" config:type="boolean">true</config:config-item><config:config-item config:name="EmbedComplexScriptFonts" config:type="boolean">true</config:config-item><config:config-item config:name="UseOldPrinterMetrics" config:type="boolean">false</config:config-item><config:config-item config:name="InvertBorderSpacing" config:type="boolean">false</config:config-item><config:config-item config:name="PrintProspectRTL" config:type="boolean">false</config:config-item><config:config-item config:name="ApplyUserData" config:type="boolean">true</config:config-item><config:config-item config:name="AddParaTableSpacingAtStart" config:type="boolean">true</config:config-item><config:config-item config:name="SaveVersionOnClose" config:type="boolean">false</config:config-item><config:config-item config:name="CharacterCompressionType" config:type="short">0</config:config-item><config:config-item config:name="UseOldNumbering" config:type="boolean">false</config:config-item><config:config-item config:name="UseFormerObjectPositioning" config:type="boolean">false</config:config-item><config:config-item config:name="ChartAutoUpdate" config:type="boolean">true</config:config-item><config:config-item config:name="AddParaTableSpacing" config:type="boolean">true</config:config-item></config:config-item-set></office:settings></office:document-settings> \ No newline at end of file
diff --git a/extract/test/background_lines_2.pdf.mutool.odt.dir.ref/styles.xml b/extract/test/background_lines_2.pdf.mutool.odt.dir.ref/styles.xml
new file mode 100644
index 00000000..91403c4e
--- /dev/null
+++ b/extract/test/background_lines_2.pdf.mutool.odt.dir.ref/styles.xml
@@ -0,0 +1,2 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<office:document-styles xmlns:css3t="http://www.w3.org/TR/css3-text/" xmlns:grddl="http://www.w3.org/2003/g/data-view#" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:dom="http://www.w3.org/2001/xml-events" xmlns:script="urn:oasis:names:tc:opendocument:xmlns:script:1.0" xmlns:form="urn:oasis:names:tc:opendocument:xmlns:form:1.0" xmlns:math="http://www.w3.org/1998/Math/MathML" xmlns:number="urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0" xmlns:field="urn:openoffice:names:experimental:ooo-ms-interop:xmlns:field:1.0" xmlns:meta="urn:oasis:names:tc:opendocument:xmlns:meta:1.0" xmlns:loext="urn:org:documentfoundation:names:experimental:office:xmlns:loext:1.0" xmlns:officeooo="http://openoffice.org/2009/office" xmlns:table="urn:oasis:names:tc:opendocument:xmlns:table:1.0" xmlns:chart="urn:oasis:names:tc:opendocument:xmlns:chart:1.0" xmlns:tableooo="http://openoffice.org/2009/table" xmlns:draw="urn:oasis:names:tc:opendocument:xmlns:drawing:1.0" xmlns:rpt="http://openoffice.org/2005/report" xmlns:dr3d="urn:oasis:names:tc:opendocument:xmlns:dr3d:1.0" xmlns:of="urn:oasis:names:tc:opendocument:xmlns:of:1.2" xmlns:text="urn:oasis:names:tc:opendocument:xmlns:text:1.0" xmlns:style="urn:oasis:names:tc:opendocument:xmlns:style:1.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:calcext="urn:org:documentfoundation:names:experimental:calc:xmlns:calcext:1.0" xmlns:oooc="http://openoffice.org/2004/calc" xmlns:drawooo="http://openoffice.org/2010/draw" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:ooo="http://openoffice.org/2004/office" xmlns:ooow="http://openoffice.org/2004/writer" xmlns:fo="urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0" xmlns:svg="urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0" xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" office:version="1.3"><office:font-face-decls><style:font-face style:name="Liberation Serif" svg:font-family="&apos;Liberation Serif&apos;" style:font-family-generic="roman" style:font-pitch="variable"/><style:font-face style:name="Liberation Sans" svg:font-family="&apos;Liberation Sans&apos;" style:font-family-generic="swiss" style:font-pitch="variable"/><style:font-face style:name="Unifont" svg:font-family="Unifont" style:font-family-generic="system" style:font-pitch="variable"/></office:font-face-decls><office:styles><style:default-style style:family="graphic"><style:graphic-properties svg:stroke-color="#3465a4" draw:fill-color="#729fcf" fo:wrap-option="no-wrap" draw:shadow-offset-x="0.1181in" draw:shadow-offset-y="0.1181in" draw:start-line-spacing-horizontal="0.1114in" draw:start-line-spacing-vertical="0.1114in" draw:end-line-spacing-horizontal="0.1114in" draw:end-line-spacing-vertical="0.1114in" style:flow-with-text="false"/><style:paragraph-properties style:text-autospace="ideograph-alpha" style:line-break="strict" style:font-independent-line-spacing="false"><style:tab-stops/></style:paragraph-properties><style:text-properties style:use-window-font-color="true" loext:opacity="0%" style:font-name="Liberation Serif" fo:font-size="12pt" fo:language="en" fo:country="US" style:letter-kerning="true" style:font-name-asian="Unifont" style:font-size-asian="10.5pt" style:language-asian="zh" style:country-asian="CN" style:font-name-complex="Unifont" style:font-size-complex="12pt" style:language-complex="hi" style:country-complex="IN"/></style:default-style><style:default-style style:family="paragraph"><style:paragraph-properties fo:orphans="2" fo:widows="2" fo:hyphenation-ladder-count="no-limit" style:text-autospace="ideograph-alpha" style:punctuation-wrap="hanging" style:line-break="strict" style:tab-stop-distance="0.4925in" style:writing-mode="page"/><style:text-properties style:use-window-font-color="true" loext:opacity="0%" style:font-name="Liberation Serif" fo:font-size="12pt" fo:language="en" fo:country="US" style:letter-kerning="true" style:font-name-asian="Unifont" style:font-size-asian="10.5pt" style:language-asian="zh" style:country-asian="CN" style:font-name-complex="Unifont" style:font-size-complex="12pt" style:language-complex="hi" style:country-complex="IN" fo:hyphenate="false" fo:hyphenation-remain-char-count="2" fo:hyphenation-push-char-count="2" loext:hyphenation-no-caps="false"/></style:default-style><style:default-style style:family="table"><style:table-properties table:border-model="collapsing"/></style:default-style><style:default-style style:family="table-row"><style:table-row-properties fo:keep-together="auto"/></style:default-style><style:style style:name="Standard" style:family="paragraph" style:class="text"><style:paragraph-properties fo:margin-top="0in" fo:margin-bottom="0.0799in" style:contextual-spacing="false"/></style:style><style:style style:name="Heading" style:family="paragraph" style:parent-style-name="Standard" style:next-style-name="Text_20_body" style:class="text"><style:paragraph-properties fo:margin-top="0.1665in" fo:margin-bottom="0.0835in" style:contextual-spacing="false" fo:keep-with-next="always"/><style:text-properties style:font-name="Liberation Sans" fo:font-family="&apos;Liberation Sans&apos;" style:font-family-generic="swiss" style:font-pitch="variable" fo:font-size="14pt" style:font-name-asian="Unifont" style:font-family-asian="Unifont" style:font-family-generic-asian="system" style:font-pitch-asian="variable" style:font-size-asian="14pt" style:font-name-complex="Unifont" style:font-family-complex="Unifont" style:font-family-generic-complex="system" style:font-pitch-complex="variable" style:font-size-complex="14pt"/></style:style><style:style style:name="Text_20_body" style:display-name="Text body" style:family="paragraph" style:parent-style-name="Standard" style:class="text"><style:paragraph-properties fo:margin-top="0in" fo:margin-bottom="0.0972in" style:contextual-spacing="false" fo:line-height="115%"/></style:style><style:style style:name="List" style:family="paragraph" style:parent-style-name="Text_20_body" style:class="list"><style:text-properties style:font-size-asian="12pt"/></style:style><style:style style:name="Caption" style:family="paragraph" style:parent-style-name="Standard" style:class="extra"><style:paragraph-properties fo:margin-top="0.0835in" fo:margin-bottom="0.0835in" style:contextual-spacing="false" text:number-lines="false" text:line-number="0"/><style:text-properties fo:font-size="12pt" fo:font-style="italic" style:font-size-asian="12pt" style:font-style-asian="italic" style:font-size-complex="12pt" style:font-style-complex="italic"/></style:style><style:style style:name="Index" style:family="paragraph" style:parent-style-name="Standard" style:class="index"><style:paragraph-properties text:number-lines="false" text:line-number="0"/><style:text-properties style:font-size-asian="12pt"/></style:style><text:outline-style style:name="Outline"><text:outline-level-style text:level="1" style:num-format=""><style:list-level-properties text:list-level-position-and-space-mode="label-alignment"><style:list-level-label-alignment text:label-followed-by="listtab"/></style:list-level-properties></text:outline-level-style><text:outline-level-style text:level="2" style:num-format=""><style:list-level-properties text:list-level-position-and-space-mode="label-alignment"><style:list-level-label-alignment text:label-followed-by="listtab"/></style:list-level-properties></text:outline-level-style><text:outline-level-style text:level="3" style:num-format=""><style:list-level-properties text:list-level-position-and-space-mode="label-alignment"><style:list-level-label-alignment text:label-followed-by="listtab"/></style:list-level-properties></text:outline-level-style><text:outline-level-style text:level="4" style:num-format=""><style:list-level-properties text:list-level-position-and-space-mode="label-alignment"><style:list-level-label-alignment text:label-followed-by="listtab"/></style:list-level-properties></text:outline-level-style><text:outline-level-style text:level="5" style:num-format=""><style:list-level-properties text:list-level-position-and-space-mode="label-alignment"><style:list-level-label-alignment text:label-followed-by="listtab"/></style:list-level-properties></text:outline-level-style><text:outline-level-style text:level="6" style:num-format=""><style:list-level-properties text:list-level-position-and-space-mode="label-alignment"><style:list-level-label-alignment text:label-followed-by="listtab"/></style:list-level-properties></text:outline-level-style><text:outline-level-style text:level="7" style:num-format=""><style:list-level-properties text:list-level-position-and-space-mode="label-alignment"><style:list-level-label-alignment text:label-followed-by="listtab"/></style:list-level-properties></text:outline-level-style><text:outline-level-style text:level="8" style:num-format=""><style:list-level-properties text:list-level-position-and-space-mode="label-alignment"><style:list-level-label-alignment text:label-followed-by="listtab"/></style:list-level-properties></text:outline-level-style><text:outline-level-style text:level="9" style:num-format=""><style:list-level-properties text:list-level-position-and-space-mode="label-alignment"><style:list-level-label-alignment text:label-followed-by="listtab"/></style:list-level-properties></text:outline-level-style><text:outline-level-style text:level="10" style:num-format=""><style:list-level-properties text:list-level-position-and-space-mode="label-alignment"><style:list-level-label-alignment text:label-followed-by="listtab"/></style:list-level-properties></text:outline-level-style></text:outline-style><text:notes-configuration text:note-class="footnote" style:num-format="1" text:start-value="0" text:footnotes-position="page" text:start-numbering-at="document"/><text:notes-configuration text:note-class="endnote" style:num-format="i" text:start-value="0"/><text:linenumbering-configuration text:number-lines="false" text:offset="0.1965in" style:num-format="1" text:number-position="left" text:increment="5"/></office:styles><office:automatic-styles><style:page-layout style:name="Mpm1"><style:page-layout-properties fo:page-width="8.5in" fo:page-height="11in" style:num-format="1" style:print-orientation="portrait" fo:margin-top="0.7874in" fo:margin-bottom="0.7874in" fo:margin-left="0.7874in" fo:margin-right="0.7874in" style:writing-mode="lr-tb" style:layout-grid-color="#c0c0c0" style:layout-grid-lines="20" style:layout-grid-base-height="0.278in" style:layout-grid-ruby-height="0.139in" style:layout-grid-mode="none" style:layout-grid-ruby-below="false" style:layout-grid-print="false" style:layout-grid-display="false" style:footnote-max-height="0in"><style:footnote-sep style:width="0.0071in" style:distance-before-sep="0.0398in" style:distance-after-sep="0.0398in" style:line-style="solid" style:adjustment="left" style:rel-width="25%" style:color="#000000"/></style:page-layout-properties><style:header-style/><style:footer-style/></style:page-layout></office:automatic-styles><office:master-styles><style:master-page style:name="Standard" style:page-layout-name="Mpm1"/></office:master-styles></office:document-styles> \ No newline at end of file
diff --git a/extract/test/column_span_1.pdf b/extract/test/column_span_1.pdf
new file mode 100755
index 00000000..e7c164e1
--- /dev/null
+++ b/extract/test/column_span_1.pdf
Binary files differ
diff --git a/extract/test/column_span_1.pdf.mutool.docx.dir.ref/[Content_Types].xml b/extract/test/column_span_1.pdf.mutool.docx.dir.ref/[Content_Types].xml
new file mode 100644
index 00000000..07d88cca
--- /dev/null
+++ b/extract/test/column_span_1.pdf.mutool.docx.dir.ref/[Content_Types].xml
@@ -0,0 +1,2 @@
+<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
+<Types xmlns="http://schemas.openxmlformats.org/package/2006/content-types"><Default Extension="rels" ContentType="application/vnd.openxmlformats-package.relationships+xml"/><Default Extension="xml" ContentType="application/xml"/><Override PartName="/word/document.xml" ContentType="application/vnd.openxmlformats-officedocument.wordprocessingml.document.main+xml"/><Override PartName="/word/styles.xml" ContentType="application/vnd.openxmlformats-officedocument.wordprocessingml.styles+xml"/><Override PartName="/word/settings.xml" ContentType="application/vnd.openxmlformats-officedocument.wordprocessingml.settings+xml"/><Override PartName="/word/webSettings.xml" ContentType="application/vnd.openxmlformats-officedocument.wordprocessingml.webSettings+xml"/><Override PartName="/word/fontTable.xml" ContentType="application/vnd.openxmlformats-officedocument.wordprocessingml.fontTable+xml"/><Override PartName="/word/theme/theme1.xml" ContentType="application/vnd.openxmlformats-officedocument.theme+xml"/><Override PartName="/docProps/core.xml" ContentType="application/vnd.openxmlformats-package.core-properties+xml"/><Override PartName="/docProps/app.xml" ContentType="application/vnd.openxmlformats-officedocument.extended-properties+xml"/></Types> \ No newline at end of file
diff --git a/extract/test/column_span_1.pdf.mutool.docx.dir.ref/_rels/.rels b/extract/test/column_span_1.pdf.mutool.docx.dir.ref/_rels/.rels
new file mode 100644
index 00000000..32548d42
--- /dev/null
+++ b/extract/test/column_span_1.pdf.mutool.docx.dir.ref/_rels/.rels
@@ -0,0 +1,2 @@
+<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
+<Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships"><Relationship Id="rId3" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties" Target="docProps/app.xml"/><Relationship Id="rId2" Type="http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties" Target="docProps/core.xml"/><Relationship Id="rId1" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument" Target="word/document.xml"/></Relationships> \ No newline at end of file
diff --git a/extract/test/column_span_1.pdf.mutool.docx.dir.ref/docProps/app.xml b/extract/test/column_span_1.pdf.mutool.docx.dir.ref/docProps/app.xml
new file mode 100644
index 00000000..eb8dd2e5
--- /dev/null
+++ b/extract/test/column_span_1.pdf.mutool.docx.dir.ref/docProps/app.xml
@@ -0,0 +1,2 @@
+<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
+<Properties xmlns="http://schemas.openxmlformats.org/officeDocument/2006/extended-properties" xmlns:vt="http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes"><Template>Normal.dotm</Template><TotalTime>3</TotalTime><Pages>1</Pages><Words>2</Words><Characters>18</Characters><Application>Microsoft Office Word</Application><DocSecurity>0</DocSecurity><Lines>1</Lines><Paragraphs>1</Paragraphs><ScaleCrop>false</ScaleCrop><Company></Company><LinksUpToDate>false</LinksUpToDate><CharactersWithSpaces>19</CharactersWithSpaces><SharedDoc>false</SharedDoc><HyperlinksChanged>false</HyperlinksChanged><AppVersion>16.0000</AppVersion></Properties> \ No newline at end of file
diff --git a/extract/test/column_span_1.pdf.mutool.docx.dir.ref/docProps/core.xml b/extract/test/column_span_1.pdf.mutool.docx.dir.ref/docProps/core.xml
new file mode 100644
index 00000000..195d77a9
--- /dev/null
+++ b/extract/test/column_span_1.pdf.mutool.docx.dir.ref/docProps/core.xml
@@ -0,0 +1,2 @@
+<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
+<cp:coreProperties xmlns:cp="http://schemas.openxmlformats.org/package/2006/metadata/core-properties" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:dcterms="http://purl.org/dc/terms/" xmlns:dcmitype="http://purl.org/dc/dcmitype/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><dc:title></dc:title><dc:subject></dc:subject><dc:creator></dc:creator><cp:keywords></cp:keywords><dc:description></dc:description><cp:lastModifiedBy></cp:lastModifiedBy><cp:revision>1</cp:revision><dcterms:created xsi:type="dcterms:W3CDTF">2020-09-25T17:04:00Z</dcterms:created><dcterms:modified xsi:type="dcterms:W3CDTF">2020-09-25T17:07:00Z</dcterms:modified></cp:coreProperties> \ No newline at end of file
diff --git a/extract/test/column_span_1.pdf.mutool.docx.dir.ref/word/_rels/document.xml.rels b/extract/test/column_span_1.pdf.mutool.docx.dir.ref/word/_rels/document.xml.rels
new file mode 100644
index 00000000..3b2b7f8c
--- /dev/null
+++ b/extract/test/column_span_1.pdf.mutool.docx.dir.ref/word/_rels/document.xml.rels
@@ -0,0 +1,2 @@
+<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
+<Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships"><Relationship Id="rId3" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/webSettings" Target="webSettings.xml"/><Relationship Id="rId2" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/settings" Target="settings.xml"/><Relationship Id="rId1" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles" Target="styles.xml"/><Relationship Id="rId5" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme" Target="theme/theme1.xml"/><Relationship Id="rId4" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/fontTable" Target="fontTable.xml"/></Relationships> \ No newline at end of file
diff --git a/extract/test/column_span_1.pdf.mutool.docx.dir.ref/word/document.xml b/extract/test/column_span_1.pdf.mutool.docx.dir.ref/word/document.xml
new file mode 100644
index 00000000..12223232
--- /dev/null
+++ b/extract/test/column_span_1.pdf.mutool.docx.dir.ref/word/document.xml
@@ -0,0 +1,6936 @@
+<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
+<w:document xmlns:wpc="http://schemas.microsoft.com/office/word/2010/wordprocessingCanvas" xmlns:cx="http://schemas.microsoft.com/office/drawing/2014/chartex" xmlns:cx1="http://schemas.microsoft.com/office/drawing/2015/9/8/chartex" xmlns:cx2="http://schemas.microsoft.com/office/drawing/2015/10/21/chartex" xmlns:cx3="http://schemas.microsoft.com/office/drawing/2016/5/9/chartex" xmlns:cx4="http://schemas.microsoft.com/office/drawing/2016/5/10/chartex" xmlns:cx5="http://schemas.microsoft.com/office/drawing/2016/5/11/chartex" xmlns:cx6="http://schemas.microsoft.com/office/drawing/2016/5/12/chartex" xmlns:cx7="http://schemas.microsoft.com/office/drawing/2016/5/13/chartex" xmlns:cx8="http://schemas.microsoft.com/office/drawing/2016/5/14/chartex" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:aink="http://schemas.microsoft.com/office/drawing/2016/ink" xmlns:am3d="http://schemas.microsoft.com/office/drawing/2017/model3d" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships" xmlns:m="http://schemas.openxmlformats.org/officeDocument/2006/math" xmlns:v="urn:schemas-microsoft-com:vml" xmlns:wp14="http://schemas.microsoft.com/office/word/2010/wordprocessingDrawing" xmlns:wp="http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing" xmlns:w10="urn:schemas-microsoft-com:office:word" xmlns:w="http://schemas.openxmlformats.org/wordprocessingml/2006/main" xmlns:w14="http://schemas.microsoft.com/office/word/2010/wordml" xmlns:w15="http://schemas.microsoft.com/office/word/2012/wordml" xmlns:w16cex="http://schemas.microsoft.com/office/word/2018/wordml/cex" xmlns:w16cid="http://schemas.microsoft.com/office/word/2016/wordml/cid" xmlns:w16="http://schemas.microsoft.com/office/word/2018/wordml" xmlns:w16se="http://schemas.microsoft.com/office/word/2015/wordml/symex" xmlns:wpg="http://schemas.microsoft.com/office/word/2010/wordprocessingGroup" xmlns:wpi="http://schemas.microsoft.com/office/word/2010/wordprocessingInk" xmlns:wne="http://schemas.microsoft.com/office/word/2006/wordml" xmlns:wps="http://schemas.microsoft.com/office/word/2010/wordprocessingShape" mc:Ignorable="w14 w15 w16se w16cid w16 w16cex wp14"><w:body>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT" w:hAnsi="TimesNewRomanPSMT"/><w:sz w:val="18.860000"/><w:szCs w:val="14.145000"/></w:rPr><w:t xml:space="preserve"> </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow-Bold" w:hAnsi="ArialNarrow-Bold"/><w:b/><w:sz w:val="24.500000"/><w:szCs w:val="18.375000"/></w:rPr><w:t xml:space="preserve">Rate of Accidental Deaths &amp; Suicides and Population Growth During 1967 to 2013 </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT" w:hAnsi="TimesNewRomanPSMT"/><w:sz w:val="18.860000"/><w:szCs w:val="14.145000"/></w:rPr><w:t xml:space="preserve"> </w:t></w:r>
+</w:p>
+ <w:tbl>
+ <w:tblLayout w:type="autofit"/>
+ <w:tr>
+ <w:trPr/>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="restart"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="restart"/>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow-Bold" w:hAnsi="ArialNarrow-Bold"/><w:b/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">Sl. No. </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="restart"/>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow-Bold" w:hAnsi="ArialNarrow-Bold"/><w:b/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">Year </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="restart"/>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow-Bold" w:hAnsi="ArialNarrow-Bold"/><w:b/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">Population (in Lakh) </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:gridSpan w:val="2"/>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow-Bold" w:hAnsi="ArialNarrow-Bold"/><w:b/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">Accidental Deaths </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:gridSpan w:val="2"/>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow-Bold" w:hAnsi="ArialNarrow-Bold"/><w:b/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">Suicides </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="restart"/>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow-Bold" w:hAnsi="ArialNarrow-Bold"/><w:b/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">Percentage Population growth </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="restart"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ </w:tr>
+ <w:tr>
+ <w:trPr/>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow-Bold" w:hAnsi="ArialNarrow-Bold"/><w:b/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">Incidence </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow-Bold" w:hAnsi="ArialNarrow-Bold"/><w:b/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">Rate </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow-Bold" w:hAnsi="ArialNarrow-Bold"/><w:b/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">Incidence </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow-Bold" w:hAnsi="ArialNarrow-Bold"/><w:b/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">Rate </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ </w:tr>
+ <w:tr>
+ <w:trPr/>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow-Bold" w:hAnsi="ArialNarrow-Bold"/><w:b/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">(1) </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow-Bold" w:hAnsi="ArialNarrow-Bold"/><w:b/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">(2) </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow-Bold" w:hAnsi="ArialNarrow-Bold"/><w:b/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">(3) </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow-Bold" w:hAnsi="ArialNarrow-Bold"/><w:b/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">(4) </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow-Bold" w:hAnsi="ArialNarrow-Bold"/><w:b/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">(5) </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow-Bold" w:hAnsi="ArialNarrow-Bold"/><w:b/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">(6) </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow-Bold" w:hAnsi="ArialNarrow-Bold"/><w:b/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">(7) </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow-Bold" w:hAnsi="ArialNarrow-Bold"/><w:b/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">(8) </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ </w:tr>
+ <w:tr>
+ <w:trPr/>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">1. </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">1967 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">4999 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">126762 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">25.4 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">38829 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">7.8 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">2.2 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ </w:tr>
+ <w:tr>
+ <w:trPr/>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">2. </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">1968 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">5111 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">126232 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">24.7 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">40688 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">8.0 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">2.2 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ </w:tr>
+ <w:tr>
+ <w:trPr/>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">3. </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">1969 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">5225 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">130755 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">25.0 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">43633 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">8.4 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">2.2 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ </w:tr>
+ <w:tr>
+ <w:trPr/>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">4. </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">1970 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">5343 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">139752 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">26.2 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">48428 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">9.1 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">2.3 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ </w:tr>
+ <w:tr>
+ <w:trPr/>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">5. </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">1971 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">5512 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">105601 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">19.2 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">43675 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">7.9 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">3.2 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ </w:tr>
+ <w:tr>
+ <w:trPr/>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">6. </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">1972 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">5635 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">106184 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">18.8 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">43601 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">7.7 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">2.2 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ </w:tr>
+ <w:tr>
+ <w:trPr/>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">7. </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">1973 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">5759 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">130654 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">22.7 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">40807 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">7.1 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">2.2 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ </w:tr>
+ <w:tr>
+ <w:trPr/>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">8. </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">1974 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">5883 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">110624 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">18.8 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">46008 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">7.8 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">2.2 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ </w:tr>
+ <w:tr>
+ <w:trPr/>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">9. </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">1975 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">6008 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">113016 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">18.8 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">42890 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">7.1 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">2.1 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ </w:tr>
+ <w:tr>
+ <w:trPr/>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">10. </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">1976 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">6136 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">111611 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">18.2 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">41415 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">6.7 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">2.1 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ </w:tr>
+ <w:tr>
+ <w:trPr/>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">11. </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">1977 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">6258 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">117338 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">18.8 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">39718 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">6.3 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">2.0 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ </w:tr>
+ <w:tr>
+ <w:trPr/>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">12. </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">1978 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">6384 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">118594 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">18.6 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">40207 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">6.3 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">2.0 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ </w:tr>
+ <w:tr>
+ <w:trPr/>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">13. </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">1979 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">6510 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">108987 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">16.7 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">38217 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">5.9 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">2.0 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ </w:tr>
+ <w:tr>
+ <w:trPr/>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">14. </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">1980 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">6636 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">116912 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">17.6 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">41663 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">6.3 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">1.9 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ </w:tr>
+ <w:tr>
+ <w:trPr/>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">15. </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">1981 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">6840 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">122221 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">17.9 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">40245 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">5.9 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">3.1 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ </w:tr>
+ <w:tr>
+ <w:trPr/>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">16. </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">1982 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">7052 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">125993 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">17.9 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">44732 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">6.3 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">3.1 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ </w:tr>
+ <w:tr>
+ <w:trPr/>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">17. </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">1983 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">7204 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">128576 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">17.8 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">46579 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">6.5 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">2.2 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ </w:tr>
+ <w:tr>
+ <w:trPr/>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">18. </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">1984 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">7356 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">134628 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">18.3 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">50571 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">6.9 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">2.1 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ </w:tr>
+ <w:tr>
+ <w:trPr/>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">19. </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">1985 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">7509 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">139657 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">18.6 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">52811 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">7.0 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">2.1 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ </w:tr>
+ <w:tr>
+ <w:trPr/>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">20. </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">1986 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">7661 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">147023 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">19.2 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">54357 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">7.1 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">2.0 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ </w:tr>
+ <w:tr>
+ <w:trPr/>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">21. </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">1987 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">7814 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">152314 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">19.5 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">58568 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">7.5 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">2.0 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ </w:tr>
+ <w:tr>
+ <w:trPr/>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">22. </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">1988 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">7966 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">163522 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">20.5 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">64270 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">8.1 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">1.9 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ </w:tr>
+ <w:tr>
+ <w:trPr/>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">23. </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">1989 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">8118 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">169066 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">20.8 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">68744 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">8.5 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">1.9 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ </w:tr>
+ <w:tr>
+ <w:trPr/>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">24. </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">1990 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">8270 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">174401 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">21.1 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">73911 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">8.9 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">1.9 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ </w:tr>
+ <w:tr>
+ <w:trPr/>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">25. </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">1991 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">8496 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">188003 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">22.1 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">78450 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">9.2 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">2.7 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ </w:tr>
+ <w:tr>
+ <w:trPr/>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">26. </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">1992 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">8677 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">194910 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">22.5 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">80149 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">9.2 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">2.1 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ </w:tr>
+ <w:tr>
+ <w:trPr/>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">27. </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">1993 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">8838 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">192357 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">21.8 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">84244 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">9.5 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">1.9 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ </w:tr>
+ <w:tr>
+ <w:trPr/>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">28. </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">1994 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">8997 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">190435 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">21.2 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">89195 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">9.9 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">1.8 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ </w:tr>
+ <w:tr>
+ <w:trPr/>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">29. </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">1995 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">9160 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">222487 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">24.3 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">89178 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">9.7 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">1.8 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ </w:tr>
+ <w:tr>
+ <w:trPr/>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">30. </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">1996 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">9319 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">220094 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">23.6 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">88241 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">9.5 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">1.7 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ </w:tr>
+ <w:tr>
+ <w:trPr/>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">31. </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">1997 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">9552 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">233903 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">24.5 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">95829 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">10.0 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">2.5 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ </w:tr>
+ <w:tr>
+ <w:trPr/>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">32. </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">1998 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">9709 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">258409 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">26.6 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">104713 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">10.8 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">1.6 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ </w:tr>
+ <w:tr>
+ <w:trPr/>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">33. </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">1999 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">9866 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">271918 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">27.6 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">110587 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">11.2 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">1.6 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ </w:tr>
+ <w:tr>
+ <w:trPr/>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">34. </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">2000 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">10021 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">255883 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">25.5 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">108593 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">10.8 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">1.6 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ </w:tr>
+ <w:tr>
+ <w:trPr/>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">35. </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">2001 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">10270 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">271019 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">26.4 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">108506 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">10.6 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">2.5 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ </w:tr>
+ <w:tr>
+ <w:trPr/>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">36. </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">2002 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">10506 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">260122 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">24.8 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">110417 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">10.5 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">2.3 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ </w:tr>
+ <w:tr>
+ <w:trPr/>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">37. </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">2003 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">10682 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">259625 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">24.3 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">110851 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">10.4 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">1.7 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ </w:tr>
+ <w:tr>
+ <w:trPr/>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">38. </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">2004 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">10856 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">277263 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">25.5 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">113697 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">10.5 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">1.6 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ </w:tr>
+ <w:tr>
+ <w:trPr/>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">39. </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">2005 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">11028 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">294175 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">26.7 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">113914 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">10.3 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">1.6 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ </w:tr>
+ <w:tr>
+ <w:trPr/>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">40. </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">2006 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">11198 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">314704 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">28.1 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">118112 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">10.5 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">1.5 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ </w:tr>
+ <w:tr>
+ <w:trPr/>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">41. </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">2007 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">11366 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">340794 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">30.0 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">122637 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">10.8 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">1.5 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ </w:tr>
+ <w:tr>
+ <w:trPr/>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">42. </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">2008 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">11531 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">342309 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">29.7 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">125017 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">10.8 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">1.4 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ </w:tr>
+ <w:tr>
+ <w:trPr/>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">43. </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">2009 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">11694 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">357021 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">30.5 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">127151 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">10.9 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">1.4 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ </w:tr>
+ <w:tr>
+ <w:trPr/>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">44. </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">2010 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">11858 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">384649 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">32.4 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">134599 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">11.4 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">1.4 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ </w:tr>
+ <w:tr>
+ <w:trPr/>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">45. </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">2011 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">12102 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">390884 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">32.3 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">135585 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">11.2 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">2.1 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ </w:tr>
+ <w:tr>
+ <w:trPr/>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">46. </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">2012 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">12134 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">394982 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">32.6 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">135445 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">11.2 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">1.0 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ </w:tr>
+ <w:tr>
+ <w:trPr/>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">47. </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">2013 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">12288 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">400517 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">32.6 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">134799 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">11.0 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialNarrow" w:hAnsi="ArialNarrow"/><w:sz w:val="16.940000"/><w:szCs w:val="12.705000"/></w:rPr><w:t xml:space="preserve">1.0 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ </w:tr>
+ </w:tbl>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="18.860000"/><w:szCs w:val="14.145000"/></w:rPr><w:t xml:space="preserve"> (xx) </w:t></w:r>
+</w:p></w:body></w:document> \ No newline at end of file
diff --git a/extract/test/column_span_1.pdf.mutool.docx.dir.ref/word/fontTable.xml b/extract/test/column_span_1.pdf.mutool.docx.dir.ref/word/fontTable.xml
new file mode 100644
index 00000000..a39546e5
--- /dev/null
+++ b/extract/test/column_span_1.pdf.mutool.docx.dir.ref/word/fontTable.xml
@@ -0,0 +1,2 @@
+<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
+<w:fonts xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships" xmlns:w="http://schemas.openxmlformats.org/wordprocessingml/2006/main" xmlns:w14="http://schemas.microsoft.com/office/word/2010/wordml" xmlns:w15="http://schemas.microsoft.com/office/word/2012/wordml" xmlns:w16cex="http://schemas.microsoft.com/office/word/2018/wordml/cex" xmlns:w16cid="http://schemas.microsoft.com/office/word/2016/wordml/cid" xmlns:w16="http://schemas.microsoft.com/office/word/2018/wordml" xmlns:w16se="http://schemas.microsoft.com/office/word/2015/wordml/symex" mc:Ignorable="w14 w15 w16se w16cid w16 w16cex"><w:font w:name="Calibri"><w:panose1 w:val="020F0502020204030204"/><w:charset w:val="00"/><w:family w:val="swiss"/><w:pitch w:val="variable"/><w:sig w:usb0="E4002EFF" w:usb1="C000247B" w:usb2="00000009" w:usb3="00000000" w:csb0="000001FF" w:csb1="00000000"/></w:font><w:font w:name="Times New Roman"><w:panose1 w:val="02020603050405020304"/><w:charset w:val="00"/><w:family w:val="roman"/><w:pitch w:val="variable"/><w:sig w:usb0="E0002EFF" w:usb1="C000785B" w:usb2="00000009" w:usb3="00000000" w:csb0="000001FF" w:csb1="00000000"/></w:font><w:font w:name="Calibri Light"><w:panose1 w:val="020F0302020204030204"/><w:charset w:val="00"/><w:family w:val="swiss"/><w:pitch w:val="variable"/><w:sig w:usb0="E4002EFF" w:usb1="C000247B" w:usb2="00000009" w:usb3="00000000" w:csb0="000001FF" w:csb1="00000000"/></w:font></w:fonts> \ No newline at end of file
diff --git a/extract/test/column_span_1.pdf.mutool.docx.dir.ref/word/settings.xml b/extract/test/column_span_1.pdf.mutool.docx.dir.ref/word/settings.xml
new file mode 100644
index 00000000..c403540d
--- /dev/null
+++ b/extract/test/column_span_1.pdf.mutool.docx.dir.ref/word/settings.xml
@@ -0,0 +1,2 @@
+<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
+<w:settings xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships" xmlns:m="http://schemas.openxmlformats.org/officeDocument/2006/math" xmlns:v="urn:schemas-microsoft-com:vml" xmlns:w10="urn:schemas-microsoft-com:office:word" xmlns:w="http://schemas.openxmlformats.org/wordprocessingml/2006/main" xmlns:w14="http://schemas.microsoft.com/office/word/2010/wordml" xmlns:w15="http://schemas.microsoft.com/office/word/2012/wordml" xmlns:w16cex="http://schemas.microsoft.com/office/word/2018/wordml/cex" xmlns:w16cid="http://schemas.microsoft.com/office/word/2016/wordml/cid" xmlns:w16="http://schemas.microsoft.com/office/word/2018/wordml" xmlns:w16se="http://schemas.microsoft.com/office/word/2015/wordml/symex" xmlns:sl="http://schemas.openxmlformats.org/schemaLibrary/2006/main" mc:Ignorable="w14 w15 w16se w16cid w16 w16cex"><w:zoom w:percent="100"/><w:proofState w:spelling="clean" w:grammar="clean"/><w:defaultTabStop w:val="720"/><w:characterSpacingControl w:val="doNotCompress"/><w:compat><w:compatSetting w:name="compatibilityMode" w:uri="http://schemas.microsoft.com/office/word" w:val="15"/><w:compatSetting w:name="overrideTableStyleFontSizeAndJustification" w:uri="http://schemas.microsoft.com/office/word" w:val="1"/><w:compatSetting w:name="enableOpenTypeFeatures" w:uri="http://schemas.microsoft.com/office/word" w:val="1"/><w:compatSetting w:name="doNotFlipMirrorIndents" w:uri="http://schemas.microsoft.com/office/word" w:val="1"/><w:compatSetting w:name="differentiateMultirowTableHeaders" w:uri="http://schemas.microsoft.com/office/word" w:val="1"/><w:compatSetting w:name="useWord2013TrackBottomHyphenation" w:uri="http://schemas.microsoft.com/office/word" w:val="0"/></w:compat><w:rsids><w:rsidRoot w:val="007F4427"/><w:rsid w:val="00255448"/><w:rsid w:val="007F4427"/></w:rsids><m:mathPr><m:mathFont m:val="Cambria Math"/><m:brkBin m:val="before"/><m:brkBinSub m:val="--"/><m:smallFrac m:val="0"/><m:dispDef/><m:lMargin m:val="0"/><m:rMargin m:val="0"/><m:defJc m:val="centerGroup"/><m:wrapIndent m:val="1440"/><m:intLim m:val="subSup"/><m:naryLim m:val="undOvr"/></m:mathPr><w:themeFontLang w:val="en-GB"/><w:clrSchemeMapping w:bg1="light1" w:t1="dark1" w:bg2="light2" w:t2="dark2" w:accent1="accent1" w:accent2="accent2" w:accent3="accent3" w:accent4="accent4" w:accent5="accent5" w:accent6="accent6" w:hyperlink="hyperlink" w:followedHyperlink="followedHyperlink"/><w:shapeDefaults><o:shapedefaults v:ext="edit" spidmax="1026"/><o:shapelayout v:ext="edit"><o:idmap v:ext="edit" data="1"/></o:shapelayout></w:shapeDefaults><w:decimalSymbol w:val="."/><w:listSeparator w:val=","/><w14:docId w14:val="32E52EF8"/><w15:chartTrackingRefBased/><w15:docId w15:val="{A10F59F7-497D-44D4-A338-47719734E7A0}"/></w:settings> \ No newline at end of file
diff --git a/extract/test/column_span_1.pdf.mutool.docx.dir.ref/word/styles.xml b/extract/test/column_span_1.pdf.mutool.docx.dir.ref/word/styles.xml
new file mode 100644
index 00000000..38e5e2bd
--- /dev/null
+++ b/extract/test/column_span_1.pdf.mutool.docx.dir.ref/word/styles.xml
@@ -0,0 +1,2 @@
+<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
+<w:styles xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships" xmlns:w="http://schemas.openxmlformats.org/wordprocessingml/2006/main" xmlns:w14="http://schemas.microsoft.com/office/word/2010/wordml" xmlns:w15="http://schemas.microsoft.com/office/word/2012/wordml" xmlns:w16cex="http://schemas.microsoft.com/office/word/2018/wordml/cex" xmlns:w16cid="http://schemas.microsoft.com/office/word/2016/wordml/cid" xmlns:w16="http://schemas.microsoft.com/office/word/2018/wordml" xmlns:w16se="http://schemas.microsoft.com/office/word/2015/wordml/symex" mc:Ignorable="w14 w15 w16se w16cid w16 w16cex"><w:docDefaults><w:rPrDefault><w:rPr><w:rFonts w:asciiTheme="minorHAnsi" w:eastAsiaTheme="minorHAnsi" w:hAnsiTheme="minorHAnsi" w:cstheme="minorBidi"/><w:sz w:val="22"/><w:szCs w:val="22"/><w:lang w:val="en-GB" w:eastAsia="en-US" w:bidi="ar-SA"/></w:rPr></w:rPrDefault><w:pPrDefault><w:pPr><w:spacing w:after="160" w:line="259" w:lineRule="auto"/></w:pPr></w:pPrDefault></w:docDefaults><w:latentStyles w:defLockedState="0" w:defUIPriority="99" w:defSemiHidden="0" w:defUnhideWhenUsed="0" w:defQFormat="0" w:count="376"><w:lsdException w:name="Normal" w:uiPriority="0" w:qFormat="1"/><w:lsdException w:name="heading 1" w:uiPriority="9" w:qFormat="1"/><w:lsdException w:name="heading 2" w:semiHidden="1" w:uiPriority="9" w:unhideWhenUsed="1" w:qFormat="1"/><w:lsdException w:name="heading 3" w:semiHidden="1" w:uiPriority="9" w:unhideWhenUsed="1" w:qFormat="1"/><w:lsdException w:name="heading 4" w:semiHidden="1" w:uiPriority="9" w:unhideWhenUsed="1" w:qFormat="1"/><w:lsdException w:name="heading 5" w:semiHidden="1" w:uiPriority="9" w:unhideWhenUsed="1" w:qFormat="1"/><w:lsdException w:name="heading 6" w:semiHidden="1" w:uiPriority="9" w:unhideWhenUsed="1" w:qFormat="1"/><w:lsdException w:name="heading 7" w:semiHidden="1" w:uiPriority="9" w:unhideWhenUsed="1" w:qFormat="1"/><w:lsdException w:name="heading 8" w:semiHidden="1" w:uiPriority="9" w:unhideWhenUsed="1" w:qFormat="1"/><w:lsdException w:name="heading 9" w:semiHidden="1" w:uiPriority="9" w:unhideWhenUsed="1" w:qFormat="1"/><w:lsdException w:name="index 1" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="index 2" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="index 3" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="index 4" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="index 5" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="index 6" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="index 7" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="index 8" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="index 9" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="toc 1" w:semiHidden="1" w:uiPriority="39" w:unhideWhenUsed="1"/><w:lsdException w:name="toc 2" w:semiHidden="1" w:uiPriority="39" w:unhideWhenUsed="1"/><w:lsdException w:name="toc 3" w:semiHidden="1" w:uiPriority="39" w:unhideWhenUsed="1"/><w:lsdException w:name="toc 4" w:semiHidden="1" w:uiPriority="39" w:unhideWhenUsed="1"/><w:lsdException w:name="toc 5" w:semiHidden="1" w:uiPriority="39" w:unhideWhenUsed="1"/><w:lsdException w:name="toc 6" w:semiHidden="1" w:uiPriority="39" w:unhideWhenUsed="1"/><w:lsdException w:name="toc 7" w:semiHidden="1" w:uiPriority="39" w:unhideWhenUsed="1"/><w:lsdException w:name="toc 8" w:semiHidden="1" w:uiPriority="39" w:unhideWhenUsed="1"/><w:lsdException w:name="toc 9" w:semiHidden="1" w:uiPriority="39" w:unhideWhenUsed="1"/><w:lsdException w:name="Normal Indent" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="footnote text" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="annotation text" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="header" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="footer" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="index heading" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="caption" w:semiHidden="1" w:uiPriority="35" w:unhideWhenUsed="1" w:qFormat="1"/><w:lsdException w:name="table of figures" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="envelope address" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="envelope return" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="footnote reference" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="annotation reference" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="line number" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="page number" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="endnote reference" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="endnote text" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="table of authorities" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="macro" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="toa heading" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="List" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="List Bullet" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="List Number" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="List 2" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="List 3" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="List 4" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="List 5" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="List Bullet 2" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="List Bullet 3" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="List Bullet 4" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="List Bullet 5" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="List Number 2" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="List Number 3" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="List Number 4" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="List Number 5" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Title" w:uiPriority="10" w:qFormat="1"/><w:lsdException w:name="Closing" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Signature" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Default Paragraph Font" w:semiHidden="1" w:uiPriority="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Body Text" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Body Text Indent" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="List Continue" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="List Continue 2" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="List Continue 3" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="List Continue 4" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="List Continue 5" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Message Header" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Subtitle" w:uiPriority="11" w:qFormat="1"/><w:lsdException w:name="Salutation" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Date" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Body Text First Indent" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Body Text First Indent 2" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Note Heading" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Body Text 2" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Body Text 3" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Body Text Indent 2" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Body Text Indent 3" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Block Text" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Hyperlink" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="FollowedHyperlink" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Strong" w:uiPriority="22" w:qFormat="1"/><w:lsdException w:name="Emphasis" w:uiPriority="20" w:qFormat="1"/><w:lsdException w:name="Document Map" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Plain Text" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="E-mail Signature" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="HTML Top of Form" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="HTML Bottom of Form" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Normal (Web)" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="HTML Acronym" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="HTML Address" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="HTML Cite" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="HTML Code" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="HTML Definition" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="HTML Keyboard" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="HTML Preformatted" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="HTML Sample" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="HTML Typewriter" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="HTML Variable" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Normal Table" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="annotation subject" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="No List" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Outline List 1" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Outline List 2" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Outline List 3" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Simple 1" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Simple 2" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Simple 3" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Classic 1" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Classic 2" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Classic 3" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Classic 4" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Colorful 1" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Colorful 2" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Colorful 3" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Columns 1" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Columns 2" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Columns 3" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Columns 4" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Columns 5" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Grid 1" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Grid 2" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Grid 3" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Grid 4" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Grid 5" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Grid 6" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Grid 7" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Grid 8" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table List 1" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table List 2" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table List 3" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table List 4" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table List 5" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table List 6" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table List 7" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table List 8" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table 3D effects 1" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table 3D effects 2" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table 3D effects 3" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Contemporary" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Elegant" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Professional" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Subtle 1" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Subtle 2" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Web 1" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Web 2" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Web 3" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Balloon Text" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Grid" w:uiPriority="39"/><w:lsdException w:name="Table Theme" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Placeholder Text" w:semiHidden="1"/><w:lsdException w:name="No Spacing" w:uiPriority="1" w:qFormat="1"/><w:lsdException w:name="Light Shading" w:uiPriority="60"/><w:lsdException w:name="Light List" w:uiPriority="61"/><w:lsdException w:name="Light Grid" w:uiPriority="62"/><w:lsdException w:name="Medium Shading 1" w:uiPriority="63"/><w:lsdException w:name="Medium Shading 2" w:uiPriority="64"/><w:lsdException w:name="Medium List 1" w:uiPriority="65"/><w:lsdException w:name="Medium List 2" w:uiPriority="66"/><w:lsdException w:name="Medium Grid 1" w:uiPriority="67"/><w:lsdException w:name="Medium Grid 2" w:uiPriority="68"/><w:lsdException w:name="Medium Grid 3" w:uiPriority="69"/><w:lsdException w:name="Dark List" w:uiPriority="70"/><w:lsdException w:name="Colorful Shading" w:uiPriority="71"/><w:lsdException w:name="Colorful List" w:uiPriority="72"/><w:lsdException w:name="Colorful Grid" w:uiPriority="73"/><w:lsdException w:name="Light Shading Accent 1" w:uiPriority="60"/><w:lsdException w:name="Light List Accent 1" w:uiPriority="61"/><w:lsdException w:name="Light Grid Accent 1" w:uiPriority="62"/><w:lsdException w:name="Medium Shading 1 Accent 1" w:uiPriority="63"/><w:lsdException w:name="Medium Shading 2 Accent 1" w:uiPriority="64"/><w:lsdException w:name="Medium List 1 Accent 1" w:uiPriority="65"/><w:lsdException w:name="Revision" w:semiHidden="1"/><w:lsdException w:name="List Paragraph" w:uiPriority="34" w:qFormat="1"/><w:lsdException w:name="Quote" w:uiPriority="29" w:qFormat="1"/><w:lsdException w:name="Intense Quote" w:uiPriority="30" w:qFormat="1"/><w:lsdException w:name="Medium List 2 Accent 1" w:uiPriority="66"/><w:lsdException w:name="Medium Grid 1 Accent 1" w:uiPriority="67"/><w:lsdException w:name="Medium Grid 2 Accent 1" w:uiPriority="68"/><w:lsdException w:name="Medium Grid 3 Accent 1" w:uiPriority="69"/><w:lsdException w:name="Dark List Accent 1" w:uiPriority="70"/><w:lsdException w:name="Colorful Shading Accent 1" w:uiPriority="71"/><w:lsdException w:name="Colorful List Accent 1" w:uiPriority="72"/><w:lsdException w:name="Colorful Grid Accent 1" w:uiPriority="73"/><w:lsdException w:name="Light Shading Accent 2" w:uiPriority="60"/><w:lsdException w:name="Light List Accent 2" w:uiPriority="61"/><w:lsdException w:name="Light Grid Accent 2" w:uiPriority="62"/><w:lsdException w:name="Medium Shading 1 Accent 2" w:uiPriority="63"/><w:lsdException w:name="Medium Shading 2 Accent 2" w:uiPriority="64"/><w:lsdException w:name="Medium List 1 Accent 2" w:uiPriority="65"/><w:lsdException w:name="Medium List 2 Accent 2" w:uiPriority="66"/><w:lsdException w:name="Medium Grid 1 Accent 2" w:uiPriority="67"/><w:lsdException w:name="Medium Grid 2 Accent 2" w:uiPriority="68"/><w:lsdException w:name="Medium Grid 3 Accent 2" w:uiPriority="69"/><w:lsdException w:name="Dark List Accent 2" w:uiPriority="70"/><w:lsdException w:name="Colorful Shading Accent 2" w:uiPriority="71"/><w:lsdException w:name="Colorful List Accent 2" w:uiPriority="72"/><w:lsdException w:name="Colorful Grid Accent 2" w:uiPriority="73"/><w:lsdException w:name="Light Shading Accent 3" w:uiPriority="60"/><w:lsdException w:name="Light List Accent 3" w:uiPriority="61"/><w:lsdException w:name="Light Grid Accent 3" w:uiPriority="62"/><w:lsdException w:name="Medium Shading 1 Accent 3" w:uiPriority="63"/><w:lsdException w:name="Medium Shading 2 Accent 3" w:uiPriority="64"/><w:lsdException w:name="Medium List 1 Accent 3" w:uiPriority="65"/><w:lsdException w:name="Medium List 2 Accent 3" w:uiPriority="66"/><w:lsdException w:name="Medium Grid 1 Accent 3" w:uiPriority="67"/><w:lsdException w:name="Medium Grid 2 Accent 3" w:uiPriority="68"/><w:lsdException w:name="Medium Grid 3 Accent 3" w:uiPriority="69"/><w:lsdException w:name="Dark List Accent 3" w:uiPriority="70"/><w:lsdException w:name="Colorful Shading Accent 3" w:uiPriority="71"/><w:lsdException w:name="Colorful List Accent 3" w:uiPriority="72"/><w:lsdException w:name="Colorful Grid Accent 3" w:uiPriority="73"/><w:lsdException w:name="Light Shading Accent 4" w:uiPriority="60"/><w:lsdException w:name="Light List Accent 4" w:uiPriority="61"/><w:lsdException w:name="Light Grid Accent 4" w:uiPriority="62"/><w:lsdException w:name="Medium Shading 1 Accent 4" w:uiPriority="63"/><w:lsdException w:name="Medium Shading 2 Accent 4" w:uiPriority="64"/><w:lsdException w:name="Medium List 1 Accent 4" w:uiPriority="65"/><w:lsdException w:name="Medium List 2 Accent 4" w:uiPriority="66"/><w:lsdException w:name="Medium Grid 1 Accent 4" w:uiPriority="67"/><w:lsdException w:name="Medium Grid 2 Accent 4" w:uiPriority="68"/><w:lsdException w:name="Medium Grid 3 Accent 4" w:uiPriority="69"/><w:lsdException w:name="Dark List Accent 4" w:uiPriority="70"/><w:lsdException w:name="Colorful Shading Accent 4" w:uiPriority="71"/><w:lsdException w:name="Colorful List Accent 4" w:uiPriority="72"/><w:lsdException w:name="Colorful Grid Accent 4" w:uiPriority="73"/><w:lsdException w:name="Light Shading Accent 5" w:uiPriority="60"/><w:lsdException w:name="Light List Accent 5" w:uiPriority="61"/><w:lsdException w:name="Light Grid Accent 5" w:uiPriority="62"/><w:lsdException w:name="Medium Shading 1 Accent 5" w:uiPriority="63"/><w:lsdException w:name="Medium Shading 2 Accent 5" w:uiPriority="64"/><w:lsdException w:name="Medium List 1 Accent 5" w:uiPriority="65"/><w:lsdException w:name="Medium List 2 Accent 5" w:uiPriority="66"/><w:lsdException w:name="Medium Grid 1 Accent 5" w:uiPriority="67"/><w:lsdException w:name="Medium Grid 2 Accent 5" w:uiPriority="68"/><w:lsdException w:name="Medium Grid 3 Accent 5" w:uiPriority="69"/><w:lsdException w:name="Dark List Accent 5" w:uiPriority="70"/><w:lsdException w:name="Colorful Shading Accent 5" w:uiPriority="71"/><w:lsdException w:name="Colorful List Accent 5" w:uiPriority="72"/><w:lsdException w:name="Colorful Grid Accent 5" w:uiPriority="73"/><w:lsdException w:name="Light Shading Accent 6" w:uiPriority="60"/><w:lsdException w:name="Light List Accent 6" w:uiPriority="61"/><w:lsdException w:name="Light Grid Accent 6" w:uiPriority="62"/><w:lsdException w:name="Medium Shading 1 Accent 6" w:uiPriority="63"/><w:lsdException w:name="Medium Shading 2 Accent 6" w:uiPriority="64"/><w:lsdException w:name="Medium List 1 Accent 6" w:uiPriority="65"/><w:lsdException w:name="Medium List 2 Accent 6" w:uiPriority="66"/><w:lsdException w:name="Medium Grid 1 Accent 6" w:uiPriority="67"/><w:lsdException w:name="Medium Grid 2 Accent 6" w:uiPriority="68"/><w:lsdException w:name="Medium Grid 3 Accent 6" w:uiPriority="69"/><w:lsdException w:name="Dark List Accent 6" w:uiPriority="70"/><w:lsdException w:name="Colorful Shading Accent 6" w:uiPriority="71"/><w:lsdException w:name="Colorful List Accent 6" w:uiPriority="72"/><w:lsdException w:name="Colorful Grid Accent 6" w:uiPriority="73"/><w:lsdException w:name="Subtle Emphasis" w:uiPriority="19" w:qFormat="1"/><w:lsdException w:name="Intense Emphasis" w:uiPriority="21" w:qFormat="1"/><w:lsdException w:name="Subtle Reference" w:uiPriority="31" w:qFormat="1"/><w:lsdException w:name="Intense Reference" w:uiPriority="32" w:qFormat="1"/><w:lsdException w:name="Book Title" w:uiPriority="33" w:qFormat="1"/><w:lsdException w:name="Bibliography" w:semiHidden="1" w:uiPriority="37" w:unhideWhenUsed="1"/><w:lsdException w:name="TOC Heading" w:semiHidden="1" w:uiPriority="39" w:unhideWhenUsed="1" w:qFormat="1"/><w:lsdException w:name="Plain Table 1" w:uiPriority="41"/><w:lsdException w:name="Plain Table 2" w:uiPriority="42"/><w:lsdException w:name="Plain Table 3" w:uiPriority="43"/><w:lsdException w:name="Plain Table 4" w:uiPriority="44"/><w:lsdException w:name="Plain Table 5" w:uiPriority="45"/><w:lsdException w:name="Grid Table Light" w:uiPriority="40"/><w:lsdException w:name="Grid Table 1 Light" w:uiPriority="46"/><w:lsdException w:name="Grid Table 2" w:uiPriority="47"/><w:lsdException w:name="Grid Table 3" w:uiPriority="48"/><w:lsdException w:name="Grid Table 4" w:uiPriority="49"/><w:lsdException w:name="Grid Table 5 Dark" w:uiPriority="50"/><w:lsdException w:name="Grid Table 6 Colorful" w:uiPriority="51"/><w:lsdException w:name="Grid Table 7 Colorful" w:uiPriority="52"/><w:lsdException w:name="Grid Table 1 Light Accent 1" w:uiPriority="46"/><w:lsdException w:name="Grid Table 2 Accent 1" w:uiPriority="47"/><w:lsdException w:name="Grid Table 3 Accent 1" w:uiPriority="48"/><w:lsdException w:name="Grid Table 4 Accent 1" w:uiPriority="49"/><w:lsdException w:name="Grid Table 5 Dark Accent 1" w:uiPriority="50"/><w:lsdException w:name="Grid Table 6 Colorful Accent 1" w:uiPriority="51"/><w:lsdException w:name="Grid Table 7 Colorful Accent 1" w:uiPriority="52"/><w:lsdException w:name="Grid Table 1 Light Accent 2" w:uiPriority="46"/><w:lsdException w:name="Grid Table 2 Accent 2" w:uiPriority="47"/><w:lsdException w:name="Grid Table 3 Accent 2" w:uiPriority="48"/><w:lsdException w:name="Grid Table 4 Accent 2" w:uiPriority="49"/><w:lsdException w:name="Grid Table 5 Dark Accent 2" w:uiPriority="50"/><w:lsdException w:name="Grid Table 6 Colorful Accent 2" w:uiPriority="51"/><w:lsdException w:name="Grid Table 7 Colorful Accent 2" w:uiPriority="52"/><w:lsdException w:name="Grid Table 1 Light Accent 3" w:uiPriority="46"/><w:lsdException w:name="Grid Table 2 Accent 3" w:uiPriority="47"/><w:lsdException w:name="Grid Table 3 Accent 3" w:uiPriority="48"/><w:lsdException w:name="Grid Table 4 Accent 3" w:uiPriority="49"/><w:lsdException w:name="Grid Table 5 Dark Accent 3" w:uiPriority="50"/><w:lsdException w:name="Grid Table 6 Colorful Accent 3" w:uiPriority="51"/><w:lsdException w:name="Grid Table 7 Colorful Accent 3" w:uiPriority="52"/><w:lsdException w:name="Grid Table 1 Light Accent 4" w:uiPriority="46"/><w:lsdException w:name="Grid Table 2 Accent 4" w:uiPriority="47"/><w:lsdException w:name="Grid Table 3 Accent 4" w:uiPriority="48"/><w:lsdException w:name="Grid Table 4 Accent 4" w:uiPriority="49"/><w:lsdException w:name="Grid Table 5 Dark Accent 4" w:uiPriority="50"/><w:lsdException w:name="Grid Table 6 Colorful Accent 4" w:uiPriority="51"/><w:lsdException w:name="Grid Table 7 Colorful Accent 4" w:uiPriority="52"/><w:lsdException w:name="Grid Table 1 Light Accent 5" w:uiPriority="46"/><w:lsdException w:name="Grid Table 2 Accent 5" w:uiPriority="47"/><w:lsdException w:name="Grid Table 3 Accent 5" w:uiPriority="48"/><w:lsdException w:name="Grid Table 4 Accent 5" w:uiPriority="49"/><w:lsdException w:name="Grid Table 5 Dark Accent 5" w:uiPriority="50"/><w:lsdException w:name="Grid Table 6 Colorful Accent 5" w:uiPriority="51"/><w:lsdException w:name="Grid Table 7 Colorful Accent 5" w:uiPriority="52"/><w:lsdException w:name="Grid Table 1 Light Accent 6" w:uiPriority="46"/><w:lsdException w:name="Grid Table 2 Accent 6" w:uiPriority="47"/><w:lsdException w:name="Grid Table 3 Accent 6" w:uiPriority="48"/><w:lsdException w:name="Grid Table 4 Accent 6" w:uiPriority="49"/><w:lsdException w:name="Grid Table 5 Dark Accent 6" w:uiPriority="50"/><w:lsdException w:name="Grid Table 6 Colorful Accent 6" w:uiPriority="51"/><w:lsdException w:name="Grid Table 7 Colorful Accent 6" w:uiPriority="52"/><w:lsdException w:name="List Table 1 Light" w:uiPriority="46"/><w:lsdException w:name="List Table 2" w:uiPriority="47"/><w:lsdException w:name="List Table 3" w:uiPriority="48"/><w:lsdException w:name="List Table 4" w:uiPriority="49"/><w:lsdException w:name="List Table 5 Dark" w:uiPriority="50"/><w:lsdException w:name="List Table 6 Colorful" w:uiPriority="51"/><w:lsdException w:name="List Table 7 Colorful" w:uiPriority="52"/><w:lsdException w:name="List Table 1 Light Accent 1" w:uiPriority="46"/><w:lsdException w:name="List Table 2 Accent 1" w:uiPriority="47"/><w:lsdException w:name="List Table 3 Accent 1" w:uiPriority="48"/><w:lsdException w:name="List Table 4 Accent 1" w:uiPriority="49"/><w:lsdException w:name="List Table 5 Dark Accent 1" w:uiPriority="50"/><w:lsdException w:name="List Table 6 Colorful Accent 1" w:uiPriority="51"/><w:lsdException w:name="List Table 7 Colorful Accent 1" w:uiPriority="52"/><w:lsdException w:name="List Table 1 Light Accent 2" w:uiPriority="46"/><w:lsdException w:name="List Table 2 Accent 2" w:uiPriority="47"/><w:lsdException w:name="List Table 3 Accent 2" w:uiPriority="48"/><w:lsdException w:name="List Table 4 Accent 2" w:uiPriority="49"/><w:lsdException w:name="List Table 5 Dark Accent 2" w:uiPriority="50"/><w:lsdException w:name="List Table 6 Colorful Accent 2" w:uiPriority="51"/><w:lsdException w:name="List Table 7 Colorful Accent 2" w:uiPriority="52"/><w:lsdException w:name="List Table 1 Light Accent 3" w:uiPriority="46"/><w:lsdException w:name="List Table 2 Accent 3" w:uiPriority="47"/><w:lsdException w:name="List Table 3 Accent 3" w:uiPriority="48"/><w:lsdException w:name="List Table 4 Accent 3" w:uiPriority="49"/><w:lsdException w:name="List Table 5 Dark Accent 3" w:uiPriority="50"/><w:lsdException w:name="List Table 6 Colorful Accent 3" w:uiPriority="51"/><w:lsdException w:name="List Table 7 Colorful Accent 3" w:uiPriority="52"/><w:lsdException w:name="List Table 1 Light Accent 4" w:uiPriority="46"/><w:lsdException w:name="List Table 2 Accent 4" w:uiPriority="47"/><w:lsdException w:name="List Table 3 Accent 4" w:uiPriority="48"/><w:lsdException w:name="List Table 4 Accent 4" w:uiPriority="49"/><w:lsdException w:name="List Table 5 Dark Accent 4" w:uiPriority="50"/><w:lsdException w:name="List Table 6 Colorful Accent 4" w:uiPriority="51"/><w:lsdException w:name="List Table 7 Colorful Accent 4" w:uiPriority="52"/><w:lsdException w:name="List Table 1 Light Accent 5" w:uiPriority="46"/><w:lsdException w:name="List Table 2 Accent 5" w:uiPriority="47"/><w:lsdException w:name="List Table 3 Accent 5" w:uiPriority="48"/><w:lsdException w:name="List Table 4 Accent 5" w:uiPriority="49"/><w:lsdException w:name="List Table 5 Dark Accent 5" w:uiPriority="50"/><w:lsdException w:name="List Table 6 Colorful Accent 5" w:uiPriority="51"/><w:lsdException w:name="List Table 7 Colorful Accent 5" w:uiPriority="52"/><w:lsdException w:name="List Table 1 Light Accent 6" w:uiPriority="46"/><w:lsdException w:name="List Table 2 Accent 6" w:uiPriority="47"/><w:lsdException w:name="List Table 3 Accent 6" w:uiPriority="48"/><w:lsdException w:name="List Table 4 Accent 6" w:uiPriority="49"/><w:lsdException w:name="List Table 5 Dark Accent 6" w:uiPriority="50"/><w:lsdException w:name="List Table 6 Colorful Accent 6" w:uiPriority="51"/><w:lsdException w:name="List Table 7 Colorful Accent 6" w:uiPriority="52"/><w:lsdException w:name="Mention" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Smart Hyperlink" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Hashtag" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Unresolved Mention" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Smart Link" w:semiHidden="1" w:unhideWhenUsed="1"/></w:latentStyles><w:style w:type="paragraph" w:default="1" w:styleId="Normal"><w:name w:val="Normal"/><w:qFormat/></w:style><w:style w:type="character" w:default="1" w:styleId="DefaultParagraphFont"><w:name w:val="Default Paragraph Font"/><w:uiPriority w:val="1"/><w:semiHidden/><w:unhideWhenUsed/></w:style><w:style w:type="table" w:default="1" w:styleId="TableNormal"><w:name w:val="Normal Table"/><w:uiPriority w:val="99"/><w:semiHidden/><w:unhideWhenUsed/><w:tblPr><w:tblInd w:w="0" w:type="dxa"/><w:tblCellMar><w:top w:w="0" w:type="dxa"/><w:left w:w="108" w:type="dxa"/><w:bottom w:w="0" w:type="dxa"/><w:right w:w="108" w:type="dxa"/></w:tblCellMar></w:tblPr></w:style><w:style w:type="numbering" w:default="1" w:styleId="NoList"><w:name w:val="No List"/><w:uiPriority w:val="99"/><w:semiHidden/><w:unhideWhenUsed/></w:style></w:styles> \ No newline at end of file
diff --git a/extract/test/column_span_1.pdf.mutool.docx.dir.ref/word/theme/theme1.xml b/extract/test/column_span_1.pdf.mutool.docx.dir.ref/word/theme/theme1.xml
new file mode 100644
index 00000000..d1a502f8
--- /dev/null
+++ b/extract/test/column_span_1.pdf.mutool.docx.dir.ref/word/theme/theme1.xml
@@ -0,0 +1,2 @@
+<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
+<a:theme xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main" name="Office Theme"><a:themeElements><a:clrScheme name="Office"><a:dk1><a:sysClr val="windowText" lastClr="000000"/></a:dk1><a:lt1><a:sysClr val="window" lastClr="FFFFFF"/></a:lt1><a:dk2><a:srgbClr val="44546A"/></a:dk2><a:lt2><a:srgbClr val="E7E6E6"/></a:lt2><a:accent1><a:srgbClr val="4472C4"/></a:accent1><a:accent2><a:srgbClr val="ED7D31"/></a:accent2><a:accent3><a:srgbClr val="A5A5A5"/></a:accent3><a:accent4><a:srgbClr val="FFC000"/></a:accent4><a:accent5><a:srgbClr val="5B9BD5"/></a:accent5><a:accent6><a:srgbClr val="70AD47"/></a:accent6><a:hlink><a:srgbClr val="0563C1"/></a:hlink><a:folHlink><a:srgbClr val="954F72"/></a:folHlink></a:clrScheme><a:fontScheme name="Office"><a:majorFont><a:latin typeface="Calibri Light" panose="020F0302020204030204"/><a:ea typeface=""/><a:cs typeface=""/><a:font script="Jpan" typeface="游ゴシック Light"/><a:font script="Hang" typeface="맑은 고딕"/><a:font script="Hans" typeface="等线 Light"/><a:font script="Hant" typeface="新細明體"/><a:font script="Arab" typeface="Times New Roman"/><a:font script="Hebr" typeface="Times New Roman"/><a:font script="Thai" typeface="Angsana New"/><a:font script="Ethi" typeface="Nyala"/><a:font script="Beng" typeface="Vrinda"/><a:font script="Gujr" typeface="Shruti"/><a:font script="Khmr" typeface="MoolBoran"/><a:font script="Knda" typeface="Tunga"/><a:font script="Guru" typeface="Raavi"/><a:font script="Cans" typeface="Euphemia"/><a:font script="Cher" typeface="Plantagenet Cherokee"/><a:font script="Yiii" typeface="Microsoft Yi Baiti"/><a:font script="Tibt" typeface="Microsoft Himalaya"/><a:font script="Thaa" typeface="MV Boli"/><a:font script="Deva" typeface="Mangal"/><a:font script="Telu" typeface="Gautami"/><a:font script="Taml" typeface="Latha"/><a:font script="Syrc" typeface="Estrangelo Edessa"/><a:font script="Orya" typeface="Kalinga"/><a:font script="Mlym" typeface="Kartika"/><a:font script="Laoo" typeface="DokChampa"/><a:font script="Sinh" typeface="Iskoola Pota"/><a:font script="Mong" typeface="Mongolian Baiti"/><a:font script="Viet" typeface="Times New Roman"/><a:font script="Uigh" typeface="Microsoft Uighur"/><a:font script="Geor" typeface="Sylfaen"/><a:font script="Armn" typeface="Arial"/><a:font script="Bugi" typeface="Leelawadee UI"/><a:font script="Bopo" typeface="Microsoft JhengHei"/><a:font script="Java" typeface="Javanese Text"/><a:font script="Lisu" typeface="Segoe UI"/><a:font script="Mymr" typeface="Myanmar Text"/><a:font script="Nkoo" typeface="Ebrima"/><a:font script="Olck" typeface="Nirmala UI"/><a:font script="Osma" typeface="Ebrima"/><a:font script="Phag" typeface="Phagspa"/><a:font script="Syrn" typeface="Estrangelo Edessa"/><a:font script="Syrj" typeface="Estrangelo Edessa"/><a:font script="Syre" typeface="Estrangelo Edessa"/><a:font script="Sora" typeface="Nirmala UI"/><a:font script="Tale" typeface="Microsoft Tai Le"/><a:font script="Talu" typeface="Microsoft New Tai Lue"/><a:font script="Tfng" typeface="Ebrima"/></a:majorFont><a:minorFont><a:latin typeface="Calibri" panose="020F0502020204030204"/><a:ea typeface=""/><a:cs typeface=""/><a:font script="Jpan" typeface="游明朝"/><a:font script="Hang" typeface="맑은 고딕"/><a:font script="Hans" typeface="等线"/><a:font script="Hant" typeface="新細明體"/><a:font script="Arab" typeface="Arial"/><a:font script="Hebr" typeface="Arial"/><a:font script="Thai" typeface="Cordia New"/><a:font script="Ethi" typeface="Nyala"/><a:font script="Beng" typeface="Vrinda"/><a:font script="Gujr" typeface="Shruti"/><a:font script="Khmr" typeface="DaunPenh"/><a:font script="Knda" typeface="Tunga"/><a:font script="Guru" typeface="Raavi"/><a:font script="Cans" typeface="Euphemia"/><a:font script="Cher" typeface="Plantagenet Cherokee"/><a:font script="Yiii" typeface="Microsoft Yi Baiti"/><a:font script="Tibt" typeface="Microsoft Himalaya"/><a:font script="Thaa" typeface="MV Boli"/><a:font script="Deva" typeface="Mangal"/><a:font script="Telu" typeface="Gautami"/><a:font script="Taml" typeface="Latha"/><a:font script="Syrc" typeface="Estrangelo Edessa"/><a:font script="Orya" typeface="Kalinga"/><a:font script="Mlym" typeface="Kartika"/><a:font script="Laoo" typeface="DokChampa"/><a:font script="Sinh" typeface="Iskoola Pota"/><a:font script="Mong" typeface="Mongolian Baiti"/><a:font script="Viet" typeface="Arial"/><a:font script="Uigh" typeface="Microsoft Uighur"/><a:font script="Geor" typeface="Sylfaen"/><a:font script="Armn" typeface="Arial"/><a:font script="Bugi" typeface="Leelawadee UI"/><a:font script="Bopo" typeface="Microsoft JhengHei"/><a:font script="Java" typeface="Javanese Text"/><a:font script="Lisu" typeface="Segoe UI"/><a:font script="Mymr" typeface="Myanmar Text"/><a:font script="Nkoo" typeface="Ebrima"/><a:font script="Olck" typeface="Nirmala UI"/><a:font script="Osma" typeface="Ebrima"/><a:font script="Phag" typeface="Phagspa"/><a:font script="Syrn" typeface="Estrangelo Edessa"/><a:font script="Syrj" typeface="Estrangelo Edessa"/><a:font script="Syre" typeface="Estrangelo Edessa"/><a:font script="Sora" typeface="Nirmala UI"/><a:font script="Tale" typeface="Microsoft Tai Le"/><a:font script="Talu" typeface="Microsoft New Tai Lue"/><a:font script="Tfng" typeface="Ebrima"/></a:minorFont></a:fontScheme><a:fmtScheme name="Office"><a:fillStyleLst><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:gradFill rotWithShape="1"><a:gsLst><a:gs pos="0"><a:schemeClr val="phClr"><a:lumMod val="110000"/><a:satMod val="105000"/><a:tint val="67000"/></a:schemeClr></a:gs><a:gs pos="50000"><a:schemeClr val="phClr"><a:lumMod val="105000"/><a:satMod val="103000"/><a:tint val="73000"/></a:schemeClr></a:gs><a:gs pos="100000"><a:schemeClr val="phClr"><a:lumMod val="105000"/><a:satMod val="109000"/><a:tint val="81000"/></a:schemeClr></a:gs></a:gsLst><a:lin ang="5400000" scaled="0"/></a:gradFill><a:gradFill rotWithShape="1"><a:gsLst><a:gs pos="0"><a:schemeClr val="phClr"><a:satMod val="103000"/><a:lumMod val="102000"/><a:tint val="94000"/></a:schemeClr></a:gs><a:gs pos="50000"><a:schemeClr val="phClr"><a:satMod val="110000"/><a:lumMod val="100000"/><a:shade val="100000"/></a:schemeClr></a:gs><a:gs pos="100000"><a:schemeClr val="phClr"><a:lumMod val="99000"/><a:satMod val="120000"/><a:shade val="78000"/></a:schemeClr></a:gs></a:gsLst><a:lin ang="5400000" scaled="0"/></a:gradFill></a:fillStyleLst><a:lnStyleLst><a:ln w="6350" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:prstDash val="solid"/><a:miter lim="800000"/></a:ln><a:ln w="12700" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:prstDash val="solid"/><a:miter lim="800000"/></a:ln><a:ln w="19050" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:prstDash val="solid"/><a:miter lim="800000"/></a:ln></a:lnStyleLst><a:effectStyleLst><a:effectStyle><a:effectLst/></a:effectStyle><a:effectStyle><a:effectLst/></a:effectStyle><a:effectStyle><a:effectLst><a:outerShdw blurRad="57150" dist="19050" dir="5400000" algn="ctr" rotWithShape="0"><a:srgbClr val="000000"><a:alpha val="63000"/></a:srgbClr></a:outerShdw></a:effectLst></a:effectStyle></a:effectStyleLst><a:bgFillStyleLst><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:solidFill><a:schemeClr val="phClr"><a:tint val="95000"/><a:satMod val="170000"/></a:schemeClr></a:solidFill><a:gradFill rotWithShape="1"><a:gsLst><a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="93000"/><a:satMod val="150000"/><a:shade val="98000"/><a:lumMod val="102000"/></a:schemeClr></a:gs><a:gs pos="50000"><a:schemeClr val="phClr"><a:tint val="98000"/><a:satMod val="130000"/><a:shade val="90000"/><a:lumMod val="103000"/></a:schemeClr></a:gs><a:gs pos="100000"><a:schemeClr val="phClr"><a:shade val="63000"/><a:satMod val="120000"/></a:schemeClr></a:gs></a:gsLst><a:lin ang="5400000" scaled="0"/></a:gradFill></a:bgFillStyleLst></a:fmtScheme></a:themeElements><a:objectDefaults/><a:extraClrSchemeLst/><a:extLst><a:ext uri="{05A4C25C-085E-4340-85A3-A5531E510DB2}"><thm15:themeFamily xmlns:thm15="http://schemas.microsoft.com/office/thememl/2012/main" name="Office Theme" id="{62F939B6-93AF-4DB8-9C6B-D6C7DFDC589F}" vid="{4A3C46E8-61CC-4603-A589-7422A47A8E4A}"/></a:ext></a:extLst></a:theme> \ No newline at end of file
diff --git a/extract/test/column_span_1.pdf.mutool.docx.dir.ref/word/webSettings.xml b/extract/test/column_span_1.pdf.mutool.docx.dir.ref/word/webSettings.xml
new file mode 100644
index 00000000..629ae06a
--- /dev/null
+++ b/extract/test/column_span_1.pdf.mutool.docx.dir.ref/word/webSettings.xml
@@ -0,0 +1,2 @@
+<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
+<w:webSettings xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships" xmlns:w="http://schemas.openxmlformats.org/wordprocessingml/2006/main" xmlns:w14="http://schemas.microsoft.com/office/word/2010/wordml" xmlns:w15="http://schemas.microsoft.com/office/word/2012/wordml" xmlns:w16cex="http://schemas.microsoft.com/office/word/2018/wordml/cex" xmlns:w16cid="http://schemas.microsoft.com/office/word/2016/wordml/cid" xmlns:w16="http://schemas.microsoft.com/office/word/2018/wordml" xmlns:w16se="http://schemas.microsoft.com/office/word/2015/wordml/symex" mc:Ignorable="w14 w15 w16se w16cid w16 w16cex"><w:optimizeForBrowser/><w:allowPNG/></w:webSettings> \ No newline at end of file
diff --git a/extract/test/column_span_1.pdf.mutool.html.ref b/extract/test/column_span_1.pdf.mutool.html.ref
new file mode 100644
index 00000000..aebd9b96
--- /dev/null
+++ b/extract/test/column_span_1.pdf.mutool.html.ref
@@ -0,0 +1,165 @@
+<html>
+<body>
+
+
+<p> <b>Rate of Accidental Deaths &amp; Suicides and Population Growth During 1967 to 2013 </b>
+</p>
+
+<table border="1" style="border-collapse:collapse">
+ <tr>
+ <td rowspan="50"></td><td rowspan="2"><p><b>Sl. No. </p></b></td><td rowspan="2"><p><b>Year </p></b></td><td rowspan="2"><p><b>Population (in Lakh) </p></b></td><td colspan="2"><p><b>Accidental Deaths </p></b></td><td colspan="2"><p><b>Suicides </p></b></td><td rowspan="2"><p><b>Percentage Population growth </p></b></td><td rowspan="50"></td>
+ </tr>
+ <tr>
+ <td><p><b>Incidence </p></b></td><td><p><b>Rate </p></b></td><td><p><b>Incidence </p></b></td><td><p><b>Rate </p></b></td>
+ </tr>
+ <tr>
+ <td><p><b>(1) </p></b></td><td><p><b>(2) </p></b></td><td><p><b>(3) </p></b></td><td><p><b>(4) </p></b></td><td><p><b>(5) </p></b></td><td><p><b>(6) </p></b></td><td><p><b>(7) </p></b></td><td><p><b>(8) </p></b></td>
+ </tr>
+ <tr>
+ <td><p>1. </p></td><td><p>1967 </p></td><td><p>4999 </p></td><td><p>126762 </p></td><td><p>25.4 </p></td><td><p>38829 </p></td><td><p>7.8 </p></td><td><p>2.2 </p></td>
+ </tr>
+ <tr>
+ <td><p>2. </p></td><td><p>1968 </p></td><td><p>5111 </p></td><td><p>126232 </p></td><td><p>24.7 </p></td><td><p>40688 </p></td><td><p>8.0 </p></td><td><p>2.2 </p></td>
+ </tr>
+ <tr>
+ <td><p>3. </p></td><td><p>1969 </p></td><td><p>5225 </p></td><td><p>130755 </p></td><td><p>25.0 </p></td><td><p>43633 </p></td><td><p>8.4 </p></td><td><p>2.2 </p></td>
+ </tr>
+ <tr>
+ <td><p>4. </p></td><td><p>1970 </p></td><td><p>5343 </p></td><td><p>139752 </p></td><td><p>26.2 </p></td><td><p>48428 </p></td><td><p>9.1 </p></td><td><p>2.3 </p></td>
+ </tr>
+ <tr>
+ <td><p>5. </p></td><td><p>1971 </p></td><td><p>5512 </p></td><td><p>105601 </p></td><td><p>19.2 </p></td><td><p>43675 </p></td><td><p>7.9 </p></td><td><p>3.2 </p></td>
+ </tr>
+ <tr>
+ <td><p>6. </p></td><td><p>1972 </p></td><td><p>5635 </p></td><td><p>106184 </p></td><td><p>18.8 </p></td><td><p>43601 </p></td><td><p>7.7 </p></td><td><p>2.2 </p></td>
+ </tr>
+ <tr>
+ <td><p>7. </p></td><td><p>1973 </p></td><td><p>5759 </p></td><td><p>130654 </p></td><td><p>22.7 </p></td><td><p>40807 </p></td><td><p>7.1 </p></td><td><p>2.2 </p></td>
+ </tr>
+ <tr>
+ <td><p>8. </p></td><td><p>1974 </p></td><td><p>5883 </p></td><td><p>110624 </p></td><td><p>18.8 </p></td><td><p>46008 </p></td><td><p>7.8 </p></td><td><p>2.2 </p></td>
+ </tr>
+ <tr>
+ <td><p>9. </p></td><td><p>1975 </p></td><td><p>6008 </p></td><td><p>113016 </p></td><td><p>18.8 </p></td><td><p>42890 </p></td><td><p>7.1 </p></td><td><p>2.1 </p></td>
+ </tr>
+ <tr>
+ <td><p>10. </p></td><td><p>1976 </p></td><td><p>6136 </p></td><td><p>111611 </p></td><td><p>18.2 </p></td><td><p>41415 </p></td><td><p>6.7 </p></td><td><p>2.1 </p></td>
+ </tr>
+ <tr>
+ <td><p>11. </p></td><td><p>1977 </p></td><td><p>6258 </p></td><td><p>117338 </p></td><td><p>18.8 </p></td><td><p>39718 </p></td><td><p>6.3 </p></td><td><p>2.0 </p></td>
+ </tr>
+ <tr>
+ <td><p>12. </p></td><td><p>1978 </p></td><td><p>6384 </p></td><td><p>118594 </p></td><td><p>18.6 </p></td><td><p>40207 </p></td><td><p>6.3 </p></td><td><p>2.0 </p></td>
+ </tr>
+ <tr>
+ <td><p>13. </p></td><td><p>1979 </p></td><td><p>6510 </p></td><td><p>108987 </p></td><td><p>16.7 </p></td><td><p>38217 </p></td><td><p>5.9 </p></td><td><p>2.0 </p></td>
+ </tr>
+ <tr>
+ <td><p>14. </p></td><td><p>1980 </p></td><td><p>6636 </p></td><td><p>116912 </p></td><td><p>17.6 </p></td><td><p>41663 </p></td><td><p>6.3 </p></td><td><p>1.9 </p></td>
+ </tr>
+ <tr>
+ <td><p>15. </p></td><td><p>1981 </p></td><td><p>6840 </p></td><td><p>122221 </p></td><td><p>17.9 </p></td><td><p>40245 </p></td><td><p>5.9 </p></td><td><p>3.1 </p></td>
+ </tr>
+ <tr>
+ <td><p>16. </p></td><td><p>1982 </p></td><td><p>7052 </p></td><td><p>125993 </p></td><td><p>17.9 </p></td><td><p>44732 </p></td><td><p>6.3 </p></td><td><p>3.1 </p></td>
+ </tr>
+ <tr>
+ <td><p>17. </p></td><td><p>1983 </p></td><td><p>7204 </p></td><td><p>128576 </p></td><td><p>17.8 </p></td><td><p>46579 </p></td><td><p>6.5 </p></td><td><p>2.2 </p></td>
+ </tr>
+ <tr>
+ <td><p>18. </p></td><td><p>1984 </p></td><td><p>7356 </p></td><td><p>134628 </p></td><td><p>18.3 </p></td><td><p>50571 </p></td><td><p>6.9 </p></td><td><p>2.1 </p></td>
+ </tr>
+ <tr>
+ <td><p>19. </p></td><td><p>1985 </p></td><td><p>7509 </p></td><td><p>139657 </p></td><td><p>18.6 </p></td><td><p>52811 </p></td><td><p>7.0 </p></td><td><p>2.1 </p></td>
+ </tr>
+ <tr>
+ <td><p>20. </p></td><td><p>1986 </p></td><td><p>7661 </p></td><td><p>147023 </p></td><td><p>19.2 </p></td><td><p>54357 </p></td><td><p>7.1 </p></td><td><p>2.0 </p></td>
+ </tr>
+ <tr>
+ <td><p>21. </p></td><td><p>1987 </p></td><td><p>7814 </p></td><td><p>152314 </p></td><td><p>19.5 </p></td><td><p>58568 </p></td><td><p>7.5 </p></td><td><p>2.0 </p></td>
+ </tr>
+ <tr>
+ <td><p>22. </p></td><td><p>1988 </p></td><td><p>7966 </p></td><td><p>163522 </p></td><td><p>20.5 </p></td><td><p>64270 </p></td><td><p>8.1 </p></td><td><p>1.9 </p></td>
+ </tr>
+ <tr>
+ <td><p>23. </p></td><td><p>1989 </p></td><td><p>8118 </p></td><td><p>169066 </p></td><td><p>20.8 </p></td><td><p>68744 </p></td><td><p>8.5 </p></td><td><p>1.9 </p></td>
+ </tr>
+ <tr>
+ <td><p>24. </p></td><td><p>1990 </p></td><td><p>8270 </p></td><td><p>174401 </p></td><td><p>21.1 </p></td><td><p>73911 </p></td><td><p>8.9 </p></td><td><p>1.9 </p></td>
+ </tr>
+ <tr>
+ <td><p>25. </p></td><td><p>1991 </p></td><td><p>8496 </p></td><td><p>188003 </p></td><td><p>22.1 </p></td><td><p>78450 </p></td><td><p>9.2 </p></td><td><p>2.7 </p></td>
+ </tr>
+ <tr>
+ <td><p>26. </p></td><td><p>1992 </p></td><td><p>8677 </p></td><td><p>194910 </p></td><td><p>22.5 </p></td><td><p>80149 </p></td><td><p>9.2 </p></td><td><p>2.1 </p></td>
+ </tr>
+ <tr>
+ <td><p>27. </p></td><td><p>1993 </p></td><td><p>8838 </p></td><td><p>192357 </p></td><td><p>21.8 </p></td><td><p>84244 </p></td><td><p>9.5 </p></td><td><p>1.9 </p></td>
+ </tr>
+ <tr>
+ <td><p>28. </p></td><td><p>1994 </p></td><td><p>8997 </p></td><td><p>190435 </p></td><td><p>21.2 </p></td><td><p>89195 </p></td><td><p>9.9 </p></td><td><p>1.8 </p></td>
+ </tr>
+ <tr>
+ <td><p>29. </p></td><td><p>1995 </p></td><td><p>9160 </p></td><td><p>222487 </p></td><td><p>24.3 </p></td><td><p>89178 </p></td><td><p>9.7 </p></td><td><p>1.8 </p></td>
+ </tr>
+ <tr>
+ <td><p>30. </p></td><td><p>1996 </p></td><td><p>9319 </p></td><td><p>220094 </p></td><td><p>23.6 </p></td><td><p>88241 </p></td><td><p>9.5 </p></td><td><p>1.7 </p></td>
+ </tr>
+ <tr>
+ <td><p>31. </p></td><td><p>1997 </p></td><td><p>9552 </p></td><td><p>233903 </p></td><td><p>24.5 </p></td><td><p>95829 </p></td><td><p>10.0 </p></td><td><p>2.5 </p></td>
+ </tr>
+ <tr>
+ <td><p>32. </p></td><td><p>1998 </p></td><td><p>9709 </p></td><td><p>258409 </p></td><td><p>26.6 </p></td><td><p>104713 </p></td><td><p>10.8 </p></td><td><p>1.6 </p></td>
+ </tr>
+ <tr>
+ <td><p>33. </p></td><td><p>1999 </p></td><td><p>9866 </p></td><td><p>271918 </p></td><td><p>27.6 </p></td><td><p>110587 </p></td><td><p>11.2 </p></td><td><p>1.6 </p></td>
+ </tr>
+ <tr>
+ <td><p>34. </p></td><td><p>2000 </p></td><td><p>10021 </p></td><td><p>255883 </p></td><td><p>25.5 </p></td><td><p>108593 </p></td><td><p>10.8 </p></td><td><p>1.6 </p></td>
+ </tr>
+ <tr>
+ <td><p>35. </p></td><td><p>2001 </p></td><td><p>10270 </p></td><td><p>271019 </p></td><td><p>26.4 </p></td><td><p>108506 </p></td><td><p>10.6 </p></td><td><p>2.5 </p></td>
+ </tr>
+ <tr>
+ <td><p>36. </p></td><td><p>2002 </p></td><td><p>10506 </p></td><td><p>260122 </p></td><td><p>24.8 </p></td><td><p>110417 </p></td><td><p>10.5 </p></td><td><p>2.3 </p></td>
+ </tr>
+ <tr>
+ <td><p>37. </p></td><td><p>2003 </p></td><td><p>10682 </p></td><td><p>259625 </p></td><td><p>24.3 </p></td><td><p>110851 </p></td><td><p>10.4 </p></td><td><p>1.7 </p></td>
+ </tr>
+ <tr>
+ <td><p>38. </p></td><td><p>2004 </p></td><td><p>10856 </p></td><td><p>277263 </p></td><td><p>25.5 </p></td><td><p>113697 </p></td><td><p>10.5 </p></td><td><p>1.6 </p></td>
+ </tr>
+ <tr>
+ <td><p>39. </p></td><td><p>2005 </p></td><td><p>11028 </p></td><td><p>294175 </p></td><td><p>26.7 </p></td><td><p>113914 </p></td><td><p>10.3 </p></td><td><p>1.6 </p></td>
+ </tr>
+ <tr>
+ <td><p>40. </p></td><td><p>2006 </p></td><td><p>11198 </p></td><td><p>314704 </p></td><td><p>28.1 </p></td><td><p>118112 </p></td><td><p>10.5 </p></td><td><p>1.5 </p></td>
+ </tr>
+ <tr>
+ <td><p>41. </p></td><td><p>2007 </p></td><td><p>11366 </p></td><td><p>340794 </p></td><td><p>30.0 </p></td><td><p>122637 </p></td><td><p>10.8 </p></td><td><p>1.5 </p></td>
+ </tr>
+ <tr>
+ <td><p>42. </p></td><td><p>2008 </p></td><td><p>11531 </p></td><td><p>342309 </p></td><td><p>29.7 </p></td><td><p>125017 </p></td><td><p>10.8 </p></td><td><p>1.4 </p></td>
+ </tr>
+ <tr>
+ <td><p>43. </p></td><td><p>2009 </p></td><td><p>11694 </p></td><td><p>357021 </p></td><td><p>30.5 </p></td><td><p>127151 </p></td><td><p>10.9 </p></td><td><p>1.4 </p></td>
+ </tr>
+ <tr>
+ <td><p>44. </p></td><td><p>2010 </p></td><td><p>11858 </p></td><td><p>384649 </p></td><td><p>32.4 </p></td><td><p>134599 </p></td><td><p>11.4 </p></td><td><p>1.4 </p></td>
+ </tr>
+ <tr>
+ <td><p>45. </p></td><td><p>2011 </p></td><td><p>12102 </p></td><td><p>390884 </p></td><td><p>32.3 </p></td><td><p>135585 </p></td><td><p>11.2 </p></td><td><p>2.1 </p></td>
+ </tr>
+ <tr>
+ <td><p>46. </p></td><td><p>2012 </p></td><td><p>12134 </p></td><td><p>394982 </p></td><td><p>32.6 </p></td><td><p>135445 </p></td><td><p>11.2 </p></td><td><p>1.0 </p></td>
+ </tr>
+ <tr>
+ <td><p>47. </p></td><td><p>2013 </p></td><td><p>12288 </p></td><td><p>400517 </p></td><td><p>32.6 </p></td><td><p>134799 </p></td><td><p>11.0 </p></td><td><p>1.0 </p></td>
+ </tr>
+</table>
+
+
+
+<p> (xx)
+</p></body>
+</html>
diff --git a/extract/test/column_span_1.pdf.mutool.odt.dir.ref/META-INF/manifest.xml b/extract/test/column_span_1.pdf.mutool.odt.dir.ref/META-INF/manifest.xml
new file mode 100644
index 00000000..ec991d79
--- /dev/null
+++ b/extract/test/column_span_1.pdf.mutool.odt.dir.ref/META-INF/manifest.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<manifest:manifest xmlns:manifest="urn:oasis:names:tc:opendocument:xmlns:manifest:1.0" manifest:version="1.3" xmlns:loext="urn:org:documentfoundation:names:experimental:office:xmlns:loext:1.0">
+ <manifest:file-entry manifest:full-path="/" manifest:version="1.3" manifest:media-type="application/vnd.oasis.opendocument.text"/>
+ <manifest:file-entry manifest:full-path="meta.xml" manifest:media-type="text/xml"/>
+ <manifest:file-entry manifest:full-path="settings.xml" manifest:media-type="text/xml"/>
+ <manifest:file-entry manifest:full-path="Configurations2/" manifest:media-type="application/vnd.sun.xml.ui.configuration"/>
+ <manifest:file-entry manifest:full-path="manifest.rdf" manifest:media-type="application/rdf+xml"/>
+ <manifest:file-entry manifest:full-path="styles.xml" manifest:media-type="text/xml"/>
+ <manifest:file-entry manifest:full-path="content.xml" manifest:media-type="text/xml"/>
+ <manifest:file-entry manifest:full-path="Thumbnails/thumbnail.png" manifest:media-type="image/png"/>
+</manifest:manifest> \ No newline at end of file
diff --git a/extract/test/column_span_1.pdf.mutool.odt.dir.ref/Thumbnails/thumbnail.png b/extract/test/column_span_1.pdf.mutool.odt.dir.ref/Thumbnails/thumbnail.png
new file mode 100644
index 00000000..0dd1608e
--- /dev/null
+++ b/extract/test/column_span_1.pdf.mutool.odt.dir.ref/Thumbnails/thumbnail.png
@@ -0,0 +1,2 @@
+PNG
+
diff --git a/extract/test/column_span_1.pdf.mutool.odt.dir.ref/content.xml b/extract/test/column_span_1.pdf.mutool.odt.dir.ref/content.xml
new file mode 100644
index 00000000..25684c16
--- /dev/null
+++ b/extract/test/column_span_1.pdf.mutool.odt.dir.ref/content.xml
@@ -0,0 +1,2211 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<office:document-content xmlns:css3t="http://www.w3.org/TR/css3-text/" xmlns:grddl="http://www.w3.org/2003/g/data-view#" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xforms="http://www.w3.org/2002/xforms" xmlns:dom="http://www.w3.org/2001/xml-events" xmlns:script="urn:oasis:names:tc:opendocument:xmlns:script:1.0" xmlns:form="urn:oasis:names:tc:opendocument:xmlns:form:1.0" xmlns:math="http://www.w3.org/1998/Math/MathML" xmlns:number="urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0" xmlns:field="urn:openoffice:names:experimental:ooo-ms-interop:xmlns:field:1.0" xmlns:meta="urn:oasis:names:tc:opendocument:xmlns:meta:1.0" xmlns:loext="urn:org:documentfoundation:names:experimental:office:xmlns:loext:1.0" xmlns:officeooo="http://openoffice.org/2009/office" xmlns:table="urn:oasis:names:tc:opendocument:xmlns:table:1.0" xmlns:chart="urn:oasis:names:tc:opendocument:xmlns:chart:1.0" xmlns:tableooo="http://openoffice.org/2009/table" xmlns:draw="urn:oasis:names:tc:opendocument:xmlns:drawing:1.0" xmlns:rpt="http://openoffice.org/2005/report" xmlns:dr3d="urn:oasis:names:tc:opendocument:xmlns:dr3d:1.0" xmlns:of="urn:oasis:names:tc:opendocument:xmlns:of:1.2" xmlns:text="urn:oasis:names:tc:opendocument:xmlns:text:1.0" xmlns:style="urn:oasis:names:tc:opendocument:xmlns:style:1.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:calcext="urn:org:documentfoundation:names:experimental:calc:xmlns:calcext:1.0" xmlns:oooc="http://openoffice.org/2004/calc" xmlns:drawooo="http://openoffice.org/2010/draw" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:ooo="http://openoffice.org/2004/office" xmlns:ooow="http://openoffice.org/2004/writer" xmlns:fo="urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0" xmlns:formx="urn:openoffice:names:experimental:ooxml-odf-interop:xmlns:form:1.0" xmlns:svg="urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0" xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" office:version="1.3"><office:scripts/><office:font-face-decls><style:font-face style:name="Liberation Serif" svg:font-family="&apos;Liberation Serif&apos;" style:font-family-generic="roman" style:font-pitch="variable"/><style:font-face style:name="Liberation Sans" svg:font-family="&apos;Liberation Sans&apos;" style:font-family-generic="swiss" style:font-pitch="variable"/><style:font-face style:name="Unifont" svg:font-family="Unifont" style:font-family-generic="system" style:font-pitch="variable"/></office:font-face-decls><office:automatic-styles><style:style style:name="T11" style:family="text"><style:text-properties style:font-name="TimesNewRomanPSMT" fo:font-size="9.43pt" fo:font-weight="normal" fo:font-style="normal" /></style:style><style:style style:name="T12" style:family="text"><style:text-properties style:font-name="ArialNarrow-Bold" fo:font-size="12.25pt" fo:font-weight="bold" fo:font-style="normal" /></style:style><style:style style:name="T13" style:family="text"><style:text-properties style:font-name="ArialNarrow-Bold" fo:font-size="8.47pt" fo:font-weight="bold" fo:font-style="normal" /></style:style><style:style style:name="T14" style:family="text"><style:text-properties style:font-name="ArialNarrow" fo:font-size="8.47pt" fo:font-weight="normal" fo:font-style="normal" /></style:style><style:style style:name="T15" style:family="text"><style:text-properties style:font-name="ArialMT" fo:font-size="9.43pt" fo:font-weight="normal" fo:font-style="normal" /></style:style><style:style style:name="gr1" style:family="graphic">
+<style:graphic-properties draw:stroke="none" svg:stroke-color="#000000" draw:fill="none" draw:fill-color="#ffffff" fo:min-height="1.9898in" style:run-through="foreground" style:wrap="run-through" style:number-wrapped-paragraphs="no-limit" style:vertical-pos="from-top" style:vertical-rel="paragraph" style:horizontal-pos="from-left" style:horizontal-rel="paragraph" />
+<style:paragraph-properties style:writing-mode="lr-tb"/>
+</style:style>
+<style:style style:name="fr1" style:family="graphic" style:parent-style-name="Graphics">
+<style:graphic-properties fo:margin-left="0in" fo:margin-right="0in" fo:margin-top="0in" fo:margin-bottom="0in" style:vertical-pos="top" style:vertical-rel="baseline" fo:background-color="transparent" draw:fill="none" draw:fill-color="#ffffff" fo:padding="0in" fo:border="none" style:mirror="none" fo:clip="rect(0in, 0in, 0in, 0in)" draw:luminance="0%" draw:contrast="0%" draw:red="0%" draw:green="0%" draw:blue="0%" draw:gamma="100%" draw:color-inversion="false" draw:image-opacity="100%" draw:color-mode="standard"/>
+</style:style>
+</office:automatic-styles>
+<style:style style:name="extract.table" style:family="table"/>
+<style:style style:name="extract.table.column" style:family="table-column"/>
+<office:body><office:text><text:sequence-decls><text:sequence-decl text:display-outline-level="0" text:name="Illustration"/><text:sequence-decl text:display-outline-level="0" text:name="Table"/><text:sequence-decl text:display-outline-level="0" text:name="Text"/><text:sequence-decl text:display-outline-level="0" text:name="Drawing"/><text:sequence-decl text:display-outline-level="0" text:name="Figure"/></text:sequence-decls><text:p text:style-name="Standard"/>
+
+<text:p><text:span text:style-name="T11"> </text:span><text:span text:style-name="T12">Rate of Accidental Deaths &amp; Suicides and Population Growth During 1967 to 2013 </text:span><text:span text:style-name="T11"> </text:span></text:p>
+ <table:table text:style-name="extract.table" table:name="extract.table.1">
+ <table:table-columns>
+ <table:table-column table:style-name="extract.table.column"/>
+ <table:table-column table:style-name="extract.table.column"/>
+ <table:table-column table:style-name="extract.table.column"/>
+ <table:table-column table:style-name="extract.table.column"/>
+ <table:table-column table:style-name="extract.table.column"/>
+ <table:table-column table:style-name="extract.table.column"/>
+ <table:table-column table:style-name="extract.table.column"/>
+ <table:table-column table:style-name="extract.table.column"/>
+ <table:table-column table:style-name="extract.table.column"/>
+ <table:table-column table:style-name="extract.table.column"/>
+ </table:table-columns>
+ <table:table-row>
+ <table:table-cell table:number-rows-spanned="50">
+
+ </table:table-cell>
+ <table:table-cell table:number-rows-spanned="2">
+
+
+<text:p><text:span text:style-name="T13">Sl. No. </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell table:number-rows-spanned="2">
+
+
+<text:p><text:span text:style-name="T13">Year </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell table:number-rows-spanned="2">
+
+
+<text:p><text:span text:style-name="T13">Population (in Lakh) </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell table:number-columns-spanned="2">
+
+
+<text:p><text:span text:style-name="T13">Accidental Deaths </text:span></text:p>
+ </table:table-cell>
+ <table:covered-table-cell/>
+ <table:table-cell table:number-columns-spanned="2">
+
+
+<text:p><text:span text:style-name="T13">Suicides </text:span></text:p>
+ </table:table-cell>
+ <table:covered-table-cell/>
+ <table:table-cell table:number-rows-spanned="2">
+
+
+<text:p><text:span text:style-name="T13">Percentage Population growth </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell table:number-rows-spanned="50">
+
+ </table:table-cell>
+ </table:table-row>
+ <table:table-row>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">Incidence </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">Rate </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">Incidence </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">Rate </text:span></text:p>
+ </table:table-cell>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ </table:table-row>
+ <table:table-row>
+ <table:covered-table-cell/>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">(1) </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">(2) </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">(3) </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">(4) </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">(5) </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">(6) </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">(7) </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">(8) </text:span></text:p>
+ </table:table-cell>
+ <table:covered-table-cell/>
+ </table:table-row>
+ <table:table-row>
+ <table:covered-table-cell/>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">1. </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">1967 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">4999 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">126762 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">25.4 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">38829 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">7.8 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">2.2 </text:span></text:p>
+ </table:table-cell>
+ <table:covered-table-cell/>
+ </table:table-row>
+ <table:table-row>
+ <table:covered-table-cell/>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">2. </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">1968 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">5111 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">126232 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">24.7 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">40688 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">8.0 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">2.2 </text:span></text:p>
+ </table:table-cell>
+ <table:covered-table-cell/>
+ </table:table-row>
+ <table:table-row>
+ <table:covered-table-cell/>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">3. </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">1969 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">5225 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">130755 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">25.0 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">43633 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">8.4 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">2.2 </text:span></text:p>
+ </table:table-cell>
+ <table:covered-table-cell/>
+ </table:table-row>
+ <table:table-row>
+ <table:covered-table-cell/>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">4. </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">1970 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">5343 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">139752 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">26.2 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">48428 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">9.1 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">2.3 </text:span></text:p>
+ </table:table-cell>
+ <table:covered-table-cell/>
+ </table:table-row>
+ <table:table-row>
+ <table:covered-table-cell/>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">5. </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">1971 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">5512 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">105601 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">19.2 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">43675 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">7.9 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">3.2 </text:span></text:p>
+ </table:table-cell>
+ <table:covered-table-cell/>
+ </table:table-row>
+ <table:table-row>
+ <table:covered-table-cell/>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">6. </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">1972 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">5635 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">106184 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">18.8 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">43601 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">7.7 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">2.2 </text:span></text:p>
+ </table:table-cell>
+ <table:covered-table-cell/>
+ </table:table-row>
+ <table:table-row>
+ <table:covered-table-cell/>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">7. </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">1973 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">5759 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">130654 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">22.7 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">40807 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">7.1 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">2.2 </text:span></text:p>
+ </table:table-cell>
+ <table:covered-table-cell/>
+ </table:table-row>
+ <table:table-row>
+ <table:covered-table-cell/>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">8. </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">1974 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">5883 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">110624 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">18.8 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">46008 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">7.8 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">2.2 </text:span></text:p>
+ </table:table-cell>
+ <table:covered-table-cell/>
+ </table:table-row>
+ <table:table-row>
+ <table:covered-table-cell/>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">9. </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">1975 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">6008 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">113016 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">18.8 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">42890 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">7.1 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">2.1 </text:span></text:p>
+ </table:table-cell>
+ <table:covered-table-cell/>
+ </table:table-row>
+ <table:table-row>
+ <table:covered-table-cell/>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">10. </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">1976 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">6136 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">111611 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">18.2 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">41415 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">6.7 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">2.1 </text:span></text:p>
+ </table:table-cell>
+ <table:covered-table-cell/>
+ </table:table-row>
+ <table:table-row>
+ <table:covered-table-cell/>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">11. </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">1977 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">6258 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">117338 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">18.8 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">39718 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">6.3 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">2.0 </text:span></text:p>
+ </table:table-cell>
+ <table:covered-table-cell/>
+ </table:table-row>
+ <table:table-row>
+ <table:covered-table-cell/>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">12. </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">1978 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">6384 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">118594 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">18.6 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">40207 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">6.3 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">2.0 </text:span></text:p>
+ </table:table-cell>
+ <table:covered-table-cell/>
+ </table:table-row>
+ <table:table-row>
+ <table:covered-table-cell/>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">13. </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">1979 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">6510 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">108987 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">16.7 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">38217 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">5.9 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">2.0 </text:span></text:p>
+ </table:table-cell>
+ <table:covered-table-cell/>
+ </table:table-row>
+ <table:table-row>
+ <table:covered-table-cell/>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">14. </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">1980 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">6636 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">116912 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">17.6 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">41663 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">6.3 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">1.9 </text:span></text:p>
+ </table:table-cell>
+ <table:covered-table-cell/>
+ </table:table-row>
+ <table:table-row>
+ <table:covered-table-cell/>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">15. </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">1981 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">6840 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">122221 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">17.9 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">40245 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">5.9 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">3.1 </text:span></text:p>
+ </table:table-cell>
+ <table:covered-table-cell/>
+ </table:table-row>
+ <table:table-row>
+ <table:covered-table-cell/>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">16. </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">1982 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">7052 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">125993 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">17.9 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">44732 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">6.3 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">3.1 </text:span></text:p>
+ </table:table-cell>
+ <table:covered-table-cell/>
+ </table:table-row>
+ <table:table-row>
+ <table:covered-table-cell/>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">17. </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">1983 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">7204 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">128576 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">17.8 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">46579 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">6.5 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">2.2 </text:span></text:p>
+ </table:table-cell>
+ <table:covered-table-cell/>
+ </table:table-row>
+ <table:table-row>
+ <table:covered-table-cell/>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">18. </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">1984 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">7356 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">134628 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">18.3 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">50571 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">6.9 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">2.1 </text:span></text:p>
+ </table:table-cell>
+ <table:covered-table-cell/>
+ </table:table-row>
+ <table:table-row>
+ <table:covered-table-cell/>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">19. </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">1985 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">7509 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">139657 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">18.6 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">52811 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">7.0 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">2.1 </text:span></text:p>
+ </table:table-cell>
+ <table:covered-table-cell/>
+ </table:table-row>
+ <table:table-row>
+ <table:covered-table-cell/>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">20. </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">1986 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">7661 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">147023 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">19.2 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">54357 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">7.1 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">2.0 </text:span></text:p>
+ </table:table-cell>
+ <table:covered-table-cell/>
+ </table:table-row>
+ <table:table-row>
+ <table:covered-table-cell/>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">21. </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">1987 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">7814 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">152314 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">19.5 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">58568 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">7.5 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">2.0 </text:span></text:p>
+ </table:table-cell>
+ <table:covered-table-cell/>
+ </table:table-row>
+ <table:table-row>
+ <table:covered-table-cell/>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">22. </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">1988 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">7966 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">163522 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">20.5 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">64270 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">8.1 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">1.9 </text:span></text:p>
+ </table:table-cell>
+ <table:covered-table-cell/>
+ </table:table-row>
+ <table:table-row>
+ <table:covered-table-cell/>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">23. </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">1989 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">8118 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">169066 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">20.8 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">68744 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">8.5 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">1.9 </text:span></text:p>
+ </table:table-cell>
+ <table:covered-table-cell/>
+ </table:table-row>
+ <table:table-row>
+ <table:covered-table-cell/>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">24. </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">1990 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">8270 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">174401 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">21.1 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">73911 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">8.9 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">1.9 </text:span></text:p>
+ </table:table-cell>
+ <table:covered-table-cell/>
+ </table:table-row>
+ <table:table-row>
+ <table:covered-table-cell/>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">25. </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">1991 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">8496 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">188003 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">22.1 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">78450 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">9.2 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">2.7 </text:span></text:p>
+ </table:table-cell>
+ <table:covered-table-cell/>
+ </table:table-row>
+ <table:table-row>
+ <table:covered-table-cell/>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">26. </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">1992 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">8677 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">194910 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">22.5 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">80149 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">9.2 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">2.1 </text:span></text:p>
+ </table:table-cell>
+ <table:covered-table-cell/>
+ </table:table-row>
+ <table:table-row>
+ <table:covered-table-cell/>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">27. </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">1993 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">8838 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">192357 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">21.8 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">84244 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">9.5 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">1.9 </text:span></text:p>
+ </table:table-cell>
+ <table:covered-table-cell/>
+ </table:table-row>
+ <table:table-row>
+ <table:covered-table-cell/>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">28. </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">1994 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">8997 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">190435 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">21.2 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">89195 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">9.9 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">1.8 </text:span></text:p>
+ </table:table-cell>
+ <table:covered-table-cell/>
+ </table:table-row>
+ <table:table-row>
+ <table:covered-table-cell/>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">29. </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">1995 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">9160 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">222487 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">24.3 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">89178 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">9.7 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">1.8 </text:span></text:p>
+ </table:table-cell>
+ <table:covered-table-cell/>
+ </table:table-row>
+ <table:table-row>
+ <table:covered-table-cell/>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">30. </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">1996 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">9319 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">220094 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">23.6 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">88241 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">9.5 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">1.7 </text:span></text:p>
+ </table:table-cell>
+ <table:covered-table-cell/>
+ </table:table-row>
+ <table:table-row>
+ <table:covered-table-cell/>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">31. </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">1997 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">9552 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">233903 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">24.5 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">95829 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">10.0 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">2.5 </text:span></text:p>
+ </table:table-cell>
+ <table:covered-table-cell/>
+ </table:table-row>
+ <table:table-row>
+ <table:covered-table-cell/>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">32. </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">1998 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">9709 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">258409 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">26.6 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">104713 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">10.8 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">1.6 </text:span></text:p>
+ </table:table-cell>
+ <table:covered-table-cell/>
+ </table:table-row>
+ <table:table-row>
+ <table:covered-table-cell/>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">33. </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">1999 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">9866 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">271918 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">27.6 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">110587 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">11.2 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">1.6 </text:span></text:p>
+ </table:table-cell>
+ <table:covered-table-cell/>
+ </table:table-row>
+ <table:table-row>
+ <table:covered-table-cell/>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">34. </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">2000 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">10021 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">255883 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">25.5 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">108593 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">10.8 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">1.6 </text:span></text:p>
+ </table:table-cell>
+ <table:covered-table-cell/>
+ </table:table-row>
+ <table:table-row>
+ <table:covered-table-cell/>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">35. </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">2001 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">10270 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">271019 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">26.4 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">108506 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">10.6 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">2.5 </text:span></text:p>
+ </table:table-cell>
+ <table:covered-table-cell/>
+ </table:table-row>
+ <table:table-row>
+ <table:covered-table-cell/>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">36. </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">2002 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">10506 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">260122 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">24.8 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">110417 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">10.5 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">2.3 </text:span></text:p>
+ </table:table-cell>
+ <table:covered-table-cell/>
+ </table:table-row>
+ <table:table-row>
+ <table:covered-table-cell/>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">37. </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">2003 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">10682 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">259625 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">24.3 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">110851 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">10.4 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">1.7 </text:span></text:p>
+ </table:table-cell>
+ <table:covered-table-cell/>
+ </table:table-row>
+ <table:table-row>
+ <table:covered-table-cell/>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">38. </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">2004 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">10856 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">277263 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">25.5 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">113697 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">10.5 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">1.6 </text:span></text:p>
+ </table:table-cell>
+ <table:covered-table-cell/>
+ </table:table-row>
+ <table:table-row>
+ <table:covered-table-cell/>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">39. </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">2005 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">11028 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">294175 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">26.7 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">113914 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">10.3 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">1.6 </text:span></text:p>
+ </table:table-cell>
+ <table:covered-table-cell/>
+ </table:table-row>
+ <table:table-row>
+ <table:covered-table-cell/>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">40. </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">2006 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">11198 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">314704 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">28.1 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">118112 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">10.5 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">1.5 </text:span></text:p>
+ </table:table-cell>
+ <table:covered-table-cell/>
+ </table:table-row>
+ <table:table-row>
+ <table:covered-table-cell/>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">41. </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">2007 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">11366 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">340794 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">30.0 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">122637 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">10.8 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">1.5 </text:span></text:p>
+ </table:table-cell>
+ <table:covered-table-cell/>
+ </table:table-row>
+ <table:table-row>
+ <table:covered-table-cell/>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">42. </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">2008 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">11531 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">342309 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">29.7 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">125017 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">10.8 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">1.4 </text:span></text:p>
+ </table:table-cell>
+ <table:covered-table-cell/>
+ </table:table-row>
+ <table:table-row>
+ <table:covered-table-cell/>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">43. </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">2009 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">11694 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">357021 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">30.5 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">127151 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">10.9 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">1.4 </text:span></text:p>
+ </table:table-cell>
+ <table:covered-table-cell/>
+ </table:table-row>
+ <table:table-row>
+ <table:covered-table-cell/>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">44. </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">2010 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">11858 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">384649 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">32.4 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">134599 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">11.4 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">1.4 </text:span></text:p>
+ </table:table-cell>
+ <table:covered-table-cell/>
+ </table:table-row>
+ <table:table-row>
+ <table:covered-table-cell/>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">45. </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">2011 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">12102 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">390884 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">32.3 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">135585 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">11.2 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">2.1 </text:span></text:p>
+ </table:table-cell>
+ <table:covered-table-cell/>
+ </table:table-row>
+ <table:table-row>
+ <table:covered-table-cell/>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">46. </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">2012 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">12134 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">394982 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">32.6 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">135445 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">11.2 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">1.0 </text:span></text:p>
+ </table:table-cell>
+ <table:covered-table-cell/>
+ </table:table-row>
+ <table:table-row>
+ <table:covered-table-cell/>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">47. </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">2013 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">12288 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">400517 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">32.6 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">134799 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">11.0 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">1.0 </text:span></text:p>
+ </table:table-cell>
+ <table:covered-table-cell/>
+ </table:table-row>
+ </table:table>
+
+
+<text:p><text:span text:style-name="T15"> (xx) </text:span></text:p></office:text></office:body></office:document-content> \ No newline at end of file
diff --git a/extract/test/column_span_1.pdf.mutool.odt.dir.ref/manifest.rdf b/extract/test/column_span_1.pdf.mutool.odt.dir.ref/manifest.rdf
new file mode 100644
index 00000000..927e206b
--- /dev/null
+++ b/extract/test/column_span_1.pdf.mutool.odt.dir.ref/manifest.rdf
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="utf-8"?>
+<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
+ <rdf:Description rdf:about="styles.xml">
+ <rdf:type rdf:resource="http://docs.oasis-open.org/ns/office/1.2/meta/odf#StylesFile"/>
+ </rdf:Description>
+ <rdf:Description rdf:about="">
+ <ns0:hasPart xmlns:ns0="http://docs.oasis-open.org/ns/office/1.2/meta/pkg#" rdf:resource="styles.xml"/>
+ </rdf:Description>
+ <rdf:Description rdf:about="content.xml">
+ <rdf:type rdf:resource="http://docs.oasis-open.org/ns/office/1.2/meta/odf#ContentFile"/>
+ </rdf:Description>
+ <rdf:Description rdf:about="">
+ <ns0:hasPart xmlns:ns0="http://docs.oasis-open.org/ns/office/1.2/meta/pkg#" rdf:resource="content.xml"/>
+ </rdf:Description>
+ <rdf:Description rdf:about="">
+ <rdf:type rdf:resource="http://docs.oasis-open.org/ns/office/1.2/meta/pkg#Document"/>
+ </rdf:Description>
+</rdf:RDF>
diff --git a/extract/test/column_span_1.pdf.mutool.odt.dir.ref/meta.xml b/extract/test/column_span_1.pdf.mutool.odt.dir.ref/meta.xml
new file mode 100644
index 00000000..6b42561e
--- /dev/null
+++ b/extract/test/column_span_1.pdf.mutool.odt.dir.ref/meta.xml
@@ -0,0 +1,2 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<office:document-meta xmlns:grddl="http://www.w3.org/2003/g/data-view#" xmlns:meta="urn:oasis:names:tc:opendocument:xmlns:meta:1.0" xmlns:ooo="http://openoffice.org/2004/office" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" office:version="1.3"><office:meta><meta:creation-date>2021-04-05T17:06:57.937137058</meta:creation-date><meta:generator>LibreOffice/7.0.1.2$OpenBSD_X86_64 LibreOffice_project/00$Build-2</meta:generator><dc:date>2021-04-06T17:14:51.409959656</dc:date><meta:editing-duration>PT20S</meta:editing-duration><meta:editing-cycles>1</meta:editing-cycles><meta:document-statistic meta:table-count="0" meta:image-count="0" meta:object-count="0" meta:page-count="1" meta:paragraph-count="0" meta:word-count="0" meta:character-count="0" meta:non-whitespace-character-count="0"/></office:meta></office:document-meta> \ No newline at end of file
diff --git a/extract/test/column_span_1.pdf.mutool.odt.dir.ref/mimetype b/extract/test/column_span_1.pdf.mutool.odt.dir.ref/mimetype
new file mode 100644
index 00000000..2e95b81c
--- /dev/null
+++ b/extract/test/column_span_1.pdf.mutool.odt.dir.ref/mimetype
@@ -0,0 +1 @@
+application/vnd.oasis.opendocument.text \ No newline at end of file
diff --git a/extract/test/column_span_1.pdf.mutool.odt.dir.ref/settings.xml b/extract/test/column_span_1.pdf.mutool.odt.dir.ref/settings.xml
new file mode 100644
index 00000000..35a8138f
--- /dev/null
+++ b/extract/test/column_span_1.pdf.mutool.odt.dir.ref/settings.xml
@@ -0,0 +1,2 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<office:document-settings xmlns:config="urn:oasis:names:tc:opendocument:xmlns:config:1.0" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:ooo="http://openoffice.org/2004/office" xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" office:version="1.3"><office:settings><config:config-item-set config:name="ooo:view-settings"><config:config-item config:name="ViewAreaTop" config:type="long">0</config:config-item><config:config-item config:name="ViewAreaLeft" config:type="long">0</config:config-item><config:config-item config:name="ViewAreaWidth" config:type="long">26275</config:config-item><config:config-item config:name="ViewAreaHeight" config:type="long">19502</config:config-item><config:config-item config:name="ShowRedlineChanges" config:type="boolean">true</config:config-item><config:config-item config:name="InBrowseMode" config:type="boolean">false</config:config-item><config:config-item-map-indexed config:name="Views"><config:config-item-map-entry><config:config-item config:name="ViewId" config:type="string">view2</config:config-item><config:config-item config:name="ViewLeft" config:type="long">4343</config:config-item><config:config-item config:name="ViewTop" config:type="long">2501</config:config-item><config:config-item config:name="VisibleLeft" config:type="long">0</config:config-item><config:config-item config:name="VisibleTop" config:type="long">0</config:config-item><config:config-item config:name="VisibleRight" config:type="long">26273</config:config-item><config:config-item config:name="VisibleBottom" config:type="long">19500</config:config-item><config:config-item config:name="ZoomType" config:type="short">0</config:config-item><config:config-item config:name="ViewLayoutColumns" config:type="short">1</config:config-item><config:config-item config:name="ViewLayoutBookMode" config:type="boolean">false</config:config-item><config:config-item config:name="ZoomFactor" config:type="short">100</config:config-item><config:config-item config:name="IsSelectedFrame" config:type="boolean">false</config:config-item><config:config-item config:name="AnchoredTextOverflowLegacy" config:type="boolean">false</config:config-item></config:config-item-map-entry></config:config-item-map-indexed></config:config-item-set><config:config-item-set config:name="ooo:configuration-settings"><config:config-item config:name="PrintBlackFonts" config:type="boolean">false</config:config-item><config:config-item config:name="PrintReversed" config:type="boolean">false</config:config-item><config:config-item config:name="SaveThumbnail" config:type="boolean">true</config:config-item><config:config-item config:name="EmbedFonts" config:type="boolean">false</config:config-item><config:config-item config:name="PrintControls" config:type="boolean">true</config:config-item><config:config-item config:name="OutlineLevelYieldsNumbering" config:type="boolean">false</config:config-item><config:config-item config:name="PrintPageBackground" config:type="boolean">true</config:config-item><config:config-item config:name="PrintAnnotationMode" config:type="short">0</config:config-item><config:config-item config:name="PrintGraphics" config:type="boolean">true</config:config-item><config:config-item config:name="EmbeddedDatabaseName" config:type="string"/><config:config-item config:name="ProtectForm" config:type="boolean">false</config:config-item><config:config-item config:name="PrintLeftPages" config:type="boolean">true</config:config-item><config:config-item config:name="PrintProspect" config:type="boolean">false</config:config-item><config:config-item config:name="PrintHiddenText" config:type="boolean">false</config:config-item><config:config-item config:name="PrintRightPages" config:type="boolean">true</config:config-item><config:config-item config:name="PrintFaxName" config:type="string"/><config:config-item config:name="PrintPaperFromSetup" config:type="boolean">false</config:config-item><config:config-item config:name="TabsRelativeToIndent" config:type="boolean">true</config:config-item><config:config-item config:name="RedlineProtectionKey" config:type="base64Binary"/><config:config-item config:name="PrintTextPlaceholder" config:type="boolean">false</config:config-item><config:config-item config:name="MathBaselineAlignment" config:type="boolean">true</config:config-item><config:config-item config:name="ProtectBookmarks" config:type="boolean">false</config:config-item><config:config-item config:name="IgnoreTabsAndBlanksForLineCalculation" config:type="boolean">false</config:config-item><config:config-item config:name="ContinuousEndnotes" config:type="boolean">false</config:config-item><config:config-item config:name="FieldAutoUpdate" config:type="boolean">true</config:config-item><config:config-item config:name="EmptyDbFieldHidesPara" config:type="boolean">true</config:config-item><config:config-item config:name="ApplyParagraphMarkFormatToNumbering" config:type="boolean">false</config:config-item><config:config-item config:name="PrintEmptyPages" config:type="boolean">true</config:config-item><config:config-item config:name="TabOverMargin" config:type="boolean">false</config:config-item><config:config-item config:name="EmbedAsianScriptFonts" config:type="boolean">true</config:config-item><config:config-item config:name="EmbedLatinScriptFonts" config:type="boolean">true</config:config-item><config:config-item config:name="DisableOffPagePositioning" config:type="boolean">false</config:config-item><config:config-item config:name="EmbedOnlyUsedFonts" config:type="boolean">false</config:config-item><config:config-item config:name="MsWordCompMinLineHeightByFly" config:type="boolean">false</config:config-item><config:config-item config:name="SurroundTextWrapSmall" config:type="boolean">false</config:config-item><config:config-item config:name="BackgroundParaOverDrawings" config:type="boolean">false</config:config-item><config:config-item config:name="ClippedPictures" config:type="boolean">false</config:config-item><config:config-item config:name="FloattableNomargins" config:type="boolean">false</config:config-item><config:config-item config:name="UnbreakableNumberings" config:type="boolean">false</config:config-item><config:config-item config:name="EmbedSystemFonts" config:type="boolean">false</config:config-item><config:config-item config:name="TabOverflow" config:type="boolean">true</config:config-item><config:config-item config:name="PrintTables" config:type="boolean">true</config:config-item><config:config-item config:name="PrintDrawings" config:type="boolean">true</config:config-item><config:config-item config:name="ConsiderTextWrapOnObjPos" config:type="boolean">false</config:config-item><config:config-item config:name="PrintSingleJobs" config:type="boolean">false</config:config-item><config:config-item config:name="SmallCapsPercentage66" config:type="boolean">false</config:config-item><config:config-item config:name="CollapseEmptyCellPara" config:type="boolean">true</config:config-item><config:config-item config:name="HeaderSpacingBelowLastPara" config:type="boolean">false</config:config-item><config:config-item config:name="RsidRoot" config:type="int">2052946</config:config-item><config:config-item config:name="PrinterSetup" config:type="base64Binary"/><config:config-item config:name="CurrentDatabaseCommand" config:type="string"/><config:config-item config:name="AlignTabStopPosition" config:type="boolean">true</config:config-item><config:config-item config:name="ClipAsCharacterAnchoredWriterFlyFrames" config:type="boolean">false</config:config-item><config:config-item config:name="DoNotCaptureDrawObjsOnPage" config:type="boolean">false</config:config-item><config:config-item config:name="SaveGlobalDocumentLinks" config:type="boolean">false</config:config-item><config:config-item config:name="CurrentDatabaseCommandType" config:type="int">0</config:config-item><config:config-item config:name="LoadReadonly" config:type="boolean">false</config:config-item><config:config-item config:name="DoNotResetParaAttrsForNumFont" config:type="boolean">false</config:config-item><config:config-item config:name="StylesNoDefault" config:type="boolean">false</config:config-item><config:config-item config:name="LinkUpdateMode" config:type="short">1</config:config-item><config:config-item config:name="DoNotJustifyLinesWithManualBreak" config:type="boolean">false</config:config-item><config:config-item config:name="PropLineSpacingShrinksFirstLine" config:type="boolean">true</config:config-item><config:config-item config:name="TabAtLeftIndentForParagraphsInList" config:type="boolean">false</config:config-item><config:config-item config:name="ProtectFields" config:type="boolean">false</config:config-item><config:config-item config:name="UnxForceZeroExtLeading" config:type="boolean">false</config:config-item><config:config-item config:name="CurrentDatabaseDataSource" config:type="string"/><config:config-item config:name="UseFormerTextWrapping" config:type="boolean">false</config:config-item><config:config-item config:name="UseFormerLineSpacing" config:type="boolean">false</config:config-item><config:config-item config:name="AllowPrintJobCancel" config:type="boolean">true</config:config-item><config:config-item config:name="SubtractFlysAnchoredAtFlys" config:type="boolean">false</config:config-item><config:config-item config:name="AddParaSpacingToTableCells" config:type="boolean">true</config:config-item><config:config-item config:name="AddExternalLeading" config:type="boolean">true</config:config-item><config:config-item config:name="Rsid" config:type="int">2178852</config:config-item><config:config-item config:name="AddVerticalFrameOffsets" config:type="boolean">false</config:config-item><config:config-item config:name="TreatSingleColumnBreakAsPageBreak" config:type="boolean">false</config:config-item><config:config-item config:name="AddFrameOffsets" config:type="boolean">false</config:config-item><config:config-item config:name="IsLabelDocument" config:type="boolean">false</config:config-item><config:config-item config:name="MsWordCompTrailingBlanks" config:type="boolean">false</config:config-item><config:config-item config:name="PrinterPaperFromSetup" config:type="boolean">false</config:config-item><config:config-item config:name="IgnoreFirstLineIndentInNumbering" config:type="boolean">false</config:config-item><config:config-item config:name="PrinterName" config:type="string"/><config:config-item config:name="IsKernAsianPunctuation" config:type="boolean">false</config:config-item><config:config-item config:name="PrinterIndependentLayout" config:type="string">high-resolution</config:config-item><config:config-item config:name="TableRowKeep" config:type="boolean">false</config:config-item><config:config-item config:name="UpdateFromTemplate" config:type="boolean">true</config:config-item><config:config-item config:name="EmbedComplexScriptFonts" config:type="boolean">true</config:config-item><config:config-item config:name="UseOldPrinterMetrics" config:type="boolean">false</config:config-item><config:config-item config:name="InvertBorderSpacing" config:type="boolean">false</config:config-item><config:config-item config:name="PrintProspectRTL" config:type="boolean">false</config:config-item><config:config-item config:name="ApplyUserData" config:type="boolean">true</config:config-item><config:config-item config:name="AddParaTableSpacingAtStart" config:type="boolean">true</config:config-item><config:config-item config:name="SaveVersionOnClose" config:type="boolean">false</config:config-item><config:config-item config:name="CharacterCompressionType" config:type="short">0</config:config-item><config:config-item config:name="UseOldNumbering" config:type="boolean">false</config:config-item><config:config-item config:name="UseFormerObjectPositioning" config:type="boolean">false</config:config-item><config:config-item config:name="ChartAutoUpdate" config:type="boolean">true</config:config-item><config:config-item config:name="AddParaTableSpacing" config:type="boolean">true</config:config-item></config:config-item-set></office:settings></office:document-settings> \ No newline at end of file
diff --git a/extract/test/column_span_1.pdf.mutool.odt.dir.ref/styles.xml b/extract/test/column_span_1.pdf.mutool.odt.dir.ref/styles.xml
new file mode 100644
index 00000000..91403c4e
--- /dev/null
+++ b/extract/test/column_span_1.pdf.mutool.odt.dir.ref/styles.xml
@@ -0,0 +1,2 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<office:document-styles xmlns:css3t="http://www.w3.org/TR/css3-text/" xmlns:grddl="http://www.w3.org/2003/g/data-view#" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:dom="http://www.w3.org/2001/xml-events" xmlns:script="urn:oasis:names:tc:opendocument:xmlns:script:1.0" xmlns:form="urn:oasis:names:tc:opendocument:xmlns:form:1.0" xmlns:math="http://www.w3.org/1998/Math/MathML" xmlns:number="urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0" xmlns:field="urn:openoffice:names:experimental:ooo-ms-interop:xmlns:field:1.0" xmlns:meta="urn:oasis:names:tc:opendocument:xmlns:meta:1.0" xmlns:loext="urn:org:documentfoundation:names:experimental:office:xmlns:loext:1.0" xmlns:officeooo="http://openoffice.org/2009/office" xmlns:table="urn:oasis:names:tc:opendocument:xmlns:table:1.0" xmlns:chart="urn:oasis:names:tc:opendocument:xmlns:chart:1.0" xmlns:tableooo="http://openoffice.org/2009/table" xmlns:draw="urn:oasis:names:tc:opendocument:xmlns:drawing:1.0" xmlns:rpt="http://openoffice.org/2005/report" xmlns:dr3d="urn:oasis:names:tc:opendocument:xmlns:dr3d:1.0" xmlns:of="urn:oasis:names:tc:opendocument:xmlns:of:1.2" xmlns:text="urn:oasis:names:tc:opendocument:xmlns:text:1.0" xmlns:style="urn:oasis:names:tc:opendocument:xmlns:style:1.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:calcext="urn:org:documentfoundation:names:experimental:calc:xmlns:calcext:1.0" xmlns:oooc="http://openoffice.org/2004/calc" xmlns:drawooo="http://openoffice.org/2010/draw" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:ooo="http://openoffice.org/2004/office" xmlns:ooow="http://openoffice.org/2004/writer" xmlns:fo="urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0" xmlns:svg="urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0" xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" office:version="1.3"><office:font-face-decls><style:font-face style:name="Liberation Serif" svg:font-family="&apos;Liberation Serif&apos;" style:font-family-generic="roman" style:font-pitch="variable"/><style:font-face style:name="Liberation Sans" svg:font-family="&apos;Liberation Sans&apos;" style:font-family-generic="swiss" style:font-pitch="variable"/><style:font-face style:name="Unifont" svg:font-family="Unifont" style:font-family-generic="system" style:font-pitch="variable"/></office:font-face-decls><office:styles><style:default-style style:family="graphic"><style:graphic-properties svg:stroke-color="#3465a4" draw:fill-color="#729fcf" fo:wrap-option="no-wrap" draw:shadow-offset-x="0.1181in" draw:shadow-offset-y="0.1181in" draw:start-line-spacing-horizontal="0.1114in" draw:start-line-spacing-vertical="0.1114in" draw:end-line-spacing-horizontal="0.1114in" draw:end-line-spacing-vertical="0.1114in" style:flow-with-text="false"/><style:paragraph-properties style:text-autospace="ideograph-alpha" style:line-break="strict" style:font-independent-line-spacing="false"><style:tab-stops/></style:paragraph-properties><style:text-properties style:use-window-font-color="true" loext:opacity="0%" style:font-name="Liberation Serif" fo:font-size="12pt" fo:language="en" fo:country="US" style:letter-kerning="true" style:font-name-asian="Unifont" style:font-size-asian="10.5pt" style:language-asian="zh" style:country-asian="CN" style:font-name-complex="Unifont" style:font-size-complex="12pt" style:language-complex="hi" style:country-complex="IN"/></style:default-style><style:default-style style:family="paragraph"><style:paragraph-properties fo:orphans="2" fo:widows="2" fo:hyphenation-ladder-count="no-limit" style:text-autospace="ideograph-alpha" style:punctuation-wrap="hanging" style:line-break="strict" style:tab-stop-distance="0.4925in" style:writing-mode="page"/><style:text-properties style:use-window-font-color="true" loext:opacity="0%" style:font-name="Liberation Serif" fo:font-size="12pt" fo:language="en" fo:country="US" style:letter-kerning="true" style:font-name-asian="Unifont" style:font-size-asian="10.5pt" style:language-asian="zh" style:country-asian="CN" style:font-name-complex="Unifont" style:font-size-complex="12pt" style:language-complex="hi" style:country-complex="IN" fo:hyphenate="false" fo:hyphenation-remain-char-count="2" fo:hyphenation-push-char-count="2" loext:hyphenation-no-caps="false"/></style:default-style><style:default-style style:family="table"><style:table-properties table:border-model="collapsing"/></style:default-style><style:default-style style:family="table-row"><style:table-row-properties fo:keep-together="auto"/></style:default-style><style:style style:name="Standard" style:family="paragraph" style:class="text"><style:paragraph-properties fo:margin-top="0in" fo:margin-bottom="0.0799in" style:contextual-spacing="false"/></style:style><style:style style:name="Heading" style:family="paragraph" style:parent-style-name="Standard" style:next-style-name="Text_20_body" style:class="text"><style:paragraph-properties fo:margin-top="0.1665in" fo:margin-bottom="0.0835in" style:contextual-spacing="false" fo:keep-with-next="always"/><style:text-properties style:font-name="Liberation Sans" fo:font-family="&apos;Liberation Sans&apos;" style:font-family-generic="swiss" style:font-pitch="variable" fo:font-size="14pt" style:font-name-asian="Unifont" style:font-family-asian="Unifont" style:font-family-generic-asian="system" style:font-pitch-asian="variable" style:font-size-asian="14pt" style:font-name-complex="Unifont" style:font-family-complex="Unifont" style:font-family-generic-complex="system" style:font-pitch-complex="variable" style:font-size-complex="14pt"/></style:style><style:style style:name="Text_20_body" style:display-name="Text body" style:family="paragraph" style:parent-style-name="Standard" style:class="text"><style:paragraph-properties fo:margin-top="0in" fo:margin-bottom="0.0972in" style:contextual-spacing="false" fo:line-height="115%"/></style:style><style:style style:name="List" style:family="paragraph" style:parent-style-name="Text_20_body" style:class="list"><style:text-properties style:font-size-asian="12pt"/></style:style><style:style style:name="Caption" style:family="paragraph" style:parent-style-name="Standard" style:class="extra"><style:paragraph-properties fo:margin-top="0.0835in" fo:margin-bottom="0.0835in" style:contextual-spacing="false" text:number-lines="false" text:line-number="0"/><style:text-properties fo:font-size="12pt" fo:font-style="italic" style:font-size-asian="12pt" style:font-style-asian="italic" style:font-size-complex="12pt" style:font-style-complex="italic"/></style:style><style:style style:name="Index" style:family="paragraph" style:parent-style-name="Standard" style:class="index"><style:paragraph-properties text:number-lines="false" text:line-number="0"/><style:text-properties style:font-size-asian="12pt"/></style:style><text:outline-style style:name="Outline"><text:outline-level-style text:level="1" style:num-format=""><style:list-level-properties text:list-level-position-and-space-mode="label-alignment"><style:list-level-label-alignment text:label-followed-by="listtab"/></style:list-level-properties></text:outline-level-style><text:outline-level-style text:level="2" style:num-format=""><style:list-level-properties text:list-level-position-and-space-mode="label-alignment"><style:list-level-label-alignment text:label-followed-by="listtab"/></style:list-level-properties></text:outline-level-style><text:outline-level-style text:level="3" style:num-format=""><style:list-level-properties text:list-level-position-and-space-mode="label-alignment"><style:list-level-label-alignment text:label-followed-by="listtab"/></style:list-level-properties></text:outline-level-style><text:outline-level-style text:level="4" style:num-format=""><style:list-level-properties text:list-level-position-and-space-mode="label-alignment"><style:list-level-label-alignment text:label-followed-by="listtab"/></style:list-level-properties></text:outline-level-style><text:outline-level-style text:level="5" style:num-format=""><style:list-level-properties text:list-level-position-and-space-mode="label-alignment"><style:list-level-label-alignment text:label-followed-by="listtab"/></style:list-level-properties></text:outline-level-style><text:outline-level-style text:level="6" style:num-format=""><style:list-level-properties text:list-level-position-and-space-mode="label-alignment"><style:list-level-label-alignment text:label-followed-by="listtab"/></style:list-level-properties></text:outline-level-style><text:outline-level-style text:level="7" style:num-format=""><style:list-level-properties text:list-level-position-and-space-mode="label-alignment"><style:list-level-label-alignment text:label-followed-by="listtab"/></style:list-level-properties></text:outline-level-style><text:outline-level-style text:level="8" style:num-format=""><style:list-level-properties text:list-level-position-and-space-mode="label-alignment"><style:list-level-label-alignment text:label-followed-by="listtab"/></style:list-level-properties></text:outline-level-style><text:outline-level-style text:level="9" style:num-format=""><style:list-level-properties text:list-level-position-and-space-mode="label-alignment"><style:list-level-label-alignment text:label-followed-by="listtab"/></style:list-level-properties></text:outline-level-style><text:outline-level-style text:level="10" style:num-format=""><style:list-level-properties text:list-level-position-and-space-mode="label-alignment"><style:list-level-label-alignment text:label-followed-by="listtab"/></style:list-level-properties></text:outline-level-style></text:outline-style><text:notes-configuration text:note-class="footnote" style:num-format="1" text:start-value="0" text:footnotes-position="page" text:start-numbering-at="document"/><text:notes-configuration text:note-class="endnote" style:num-format="i" text:start-value="0"/><text:linenumbering-configuration text:number-lines="false" text:offset="0.1965in" style:num-format="1" text:number-position="left" text:increment="5"/></office:styles><office:automatic-styles><style:page-layout style:name="Mpm1"><style:page-layout-properties fo:page-width="8.5in" fo:page-height="11in" style:num-format="1" style:print-orientation="portrait" fo:margin-top="0.7874in" fo:margin-bottom="0.7874in" fo:margin-left="0.7874in" fo:margin-right="0.7874in" style:writing-mode="lr-tb" style:layout-grid-color="#c0c0c0" style:layout-grid-lines="20" style:layout-grid-base-height="0.278in" style:layout-grid-ruby-height="0.139in" style:layout-grid-mode="none" style:layout-grid-ruby-below="false" style:layout-grid-print="false" style:layout-grid-display="false" style:footnote-max-height="0in"><style:footnote-sep style:width="0.0071in" style:distance-before-sep="0.0398in" style:distance-after-sep="0.0398in" style:line-style="solid" style:adjustment="left" style:rel-width="25%" style:color="#000000"/></style:page-layout-properties><style:header-style/><style:footer-style/></style:page-layout></office:automatic-styles><office:master-styles><style:master-page style:name="Standard" style:page-layout-name="Mpm1"/></office:master-styles></office:document-styles> \ No newline at end of file
diff --git a/extract/test/column_span_2.pdf b/extract/test/column_span_2.pdf
new file mode 100755
index 00000000..5cab9031
--- /dev/null
+++ b/extract/test/column_span_2.pdf
Binary files differ
diff --git a/extract/test/column_span_2.pdf.mutool-0.csv.ref b/extract/test/column_span_2.pdf.mutool-0.csv.ref
new file mode 100644
index 00000000..2af46cf9
--- /dev/null
+++ b/extract/test/column_span_2.pdf.mutool-0.csv.ref
@@ -0,0 +1,11 @@
+"Investigations","No. of HHs","Age/Sex/ Physiological Group","Preva lence","C.I*","Relative Precision","Sample size per State"
+"Anthropometry","2400"," All the available individuals","","","",""
+"Clinical Examination","","","","","",""
+"History of morbidity","","","","","",""
+"Diet survey","1200","All the individuals partaking meals in the HH","","","",""
+"Blood Pressure #","2400","Men (&#x2265; 18yrs)","10%","95%","20%","1728"
+"","","Women (&#x2265; 18 yrs)","","","","1728"
+"Fasting blood glucose","2400","Men (&#x2265; 18 yrs)","5%","95%","20%","1825"
+"","","Women (&#x2265; 18 yrs)","","","","1825"
+"Knowledge &amp; Practices on HTN &amp; DM","2400","Men (&#x2265; 18 yrs)","-","-","-","1728"
+"","2400","Women (&#x2265; 18 yrs)","-","-","-","1728"
diff --git a/extract/test/column_span_2.pdf.mutool.docx.dir.ref/[Content_Types].xml b/extract/test/column_span_2.pdf.mutool.docx.dir.ref/[Content_Types].xml
new file mode 100644
index 00000000..07d88cca
--- /dev/null
+++ b/extract/test/column_span_2.pdf.mutool.docx.dir.ref/[Content_Types].xml
@@ -0,0 +1,2 @@
+<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
+<Types xmlns="http://schemas.openxmlformats.org/package/2006/content-types"><Default Extension="rels" ContentType="application/vnd.openxmlformats-package.relationships+xml"/><Default Extension="xml" ContentType="application/xml"/><Override PartName="/word/document.xml" ContentType="application/vnd.openxmlformats-officedocument.wordprocessingml.document.main+xml"/><Override PartName="/word/styles.xml" ContentType="application/vnd.openxmlformats-officedocument.wordprocessingml.styles+xml"/><Override PartName="/word/settings.xml" ContentType="application/vnd.openxmlformats-officedocument.wordprocessingml.settings+xml"/><Override PartName="/word/webSettings.xml" ContentType="application/vnd.openxmlformats-officedocument.wordprocessingml.webSettings+xml"/><Override PartName="/word/fontTable.xml" ContentType="application/vnd.openxmlformats-officedocument.wordprocessingml.fontTable+xml"/><Override PartName="/word/theme/theme1.xml" ContentType="application/vnd.openxmlformats-officedocument.theme+xml"/><Override PartName="/docProps/core.xml" ContentType="application/vnd.openxmlformats-package.core-properties+xml"/><Override PartName="/docProps/app.xml" ContentType="application/vnd.openxmlformats-officedocument.extended-properties+xml"/></Types> \ No newline at end of file
diff --git a/extract/test/column_span_2.pdf.mutool.docx.dir.ref/_rels/.rels b/extract/test/column_span_2.pdf.mutool.docx.dir.ref/_rels/.rels
new file mode 100644
index 00000000..32548d42
--- /dev/null
+++ b/extract/test/column_span_2.pdf.mutool.docx.dir.ref/_rels/.rels
@@ -0,0 +1,2 @@
+<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
+<Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships"><Relationship Id="rId3" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties" Target="docProps/app.xml"/><Relationship Id="rId2" Type="http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties" Target="docProps/core.xml"/><Relationship Id="rId1" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument" Target="word/document.xml"/></Relationships> \ No newline at end of file
diff --git a/extract/test/column_span_2.pdf.mutool.docx.dir.ref/docProps/app.xml b/extract/test/column_span_2.pdf.mutool.docx.dir.ref/docProps/app.xml
new file mode 100644
index 00000000..eb8dd2e5
--- /dev/null
+++ b/extract/test/column_span_2.pdf.mutool.docx.dir.ref/docProps/app.xml
@@ -0,0 +1,2 @@
+<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
+<Properties xmlns="http://schemas.openxmlformats.org/officeDocument/2006/extended-properties" xmlns:vt="http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes"><Template>Normal.dotm</Template><TotalTime>3</TotalTime><Pages>1</Pages><Words>2</Words><Characters>18</Characters><Application>Microsoft Office Word</Application><DocSecurity>0</DocSecurity><Lines>1</Lines><Paragraphs>1</Paragraphs><ScaleCrop>false</ScaleCrop><Company></Company><LinksUpToDate>false</LinksUpToDate><CharactersWithSpaces>19</CharactersWithSpaces><SharedDoc>false</SharedDoc><HyperlinksChanged>false</HyperlinksChanged><AppVersion>16.0000</AppVersion></Properties> \ No newline at end of file
diff --git a/extract/test/column_span_2.pdf.mutool.docx.dir.ref/docProps/core.xml b/extract/test/column_span_2.pdf.mutool.docx.dir.ref/docProps/core.xml
new file mode 100644
index 00000000..195d77a9
--- /dev/null
+++ b/extract/test/column_span_2.pdf.mutool.docx.dir.ref/docProps/core.xml
@@ -0,0 +1,2 @@
+<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
+<cp:coreProperties xmlns:cp="http://schemas.openxmlformats.org/package/2006/metadata/core-properties" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:dcterms="http://purl.org/dc/terms/" xmlns:dcmitype="http://purl.org/dc/dcmitype/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><dc:title></dc:title><dc:subject></dc:subject><dc:creator></dc:creator><cp:keywords></cp:keywords><dc:description></dc:description><cp:lastModifiedBy></cp:lastModifiedBy><cp:revision>1</cp:revision><dcterms:created xsi:type="dcterms:W3CDTF">2020-09-25T17:04:00Z</dcterms:created><dcterms:modified xsi:type="dcterms:W3CDTF">2020-09-25T17:07:00Z</dcterms:modified></cp:coreProperties> \ No newline at end of file
diff --git a/extract/test/column_span_2.pdf.mutool.docx.dir.ref/word/_rels/document.xml.rels b/extract/test/column_span_2.pdf.mutool.docx.dir.ref/word/_rels/document.xml.rels
new file mode 100644
index 00000000..3b2b7f8c
--- /dev/null
+++ b/extract/test/column_span_2.pdf.mutool.docx.dir.ref/word/_rels/document.xml.rels
@@ -0,0 +1,2 @@
+<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
+<Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships"><Relationship Id="rId3" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/webSettings" Target="webSettings.xml"/><Relationship Id="rId2" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/settings" Target="settings.xml"/><Relationship Id="rId1" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles" Target="styles.xml"/><Relationship Id="rId5" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme" Target="theme/theme1.xml"/><Relationship Id="rId4" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/fontTable" Target="fontTable.xml"/></Relationships> \ No newline at end of file
diff --git a/extract/test/column_span_2.pdf.mutool.docx.dir.ref/word/document.xml b/extract/test/column_span_2.pdf.mutool.docx.dir.ref/word/document.xml
new file mode 100644
index 00000000..af79ad54
--- /dev/null
+++ b/extract/test/column_span_2.pdf.mutool.docx.dir.ref/word/document.xml
@@ -0,0 +1,950 @@
+<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
+<w:document xmlns:wpc="http://schemas.microsoft.com/office/word/2010/wordprocessingCanvas" xmlns:cx="http://schemas.microsoft.com/office/drawing/2014/chartex" xmlns:cx1="http://schemas.microsoft.com/office/drawing/2015/9/8/chartex" xmlns:cx2="http://schemas.microsoft.com/office/drawing/2015/10/21/chartex" xmlns:cx3="http://schemas.microsoft.com/office/drawing/2016/5/9/chartex" xmlns:cx4="http://schemas.microsoft.com/office/drawing/2016/5/10/chartex" xmlns:cx5="http://schemas.microsoft.com/office/drawing/2016/5/11/chartex" xmlns:cx6="http://schemas.microsoft.com/office/drawing/2016/5/12/chartex" xmlns:cx7="http://schemas.microsoft.com/office/drawing/2016/5/13/chartex" xmlns:cx8="http://schemas.microsoft.com/office/drawing/2016/5/14/chartex" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:aink="http://schemas.microsoft.com/office/drawing/2016/ink" xmlns:am3d="http://schemas.microsoft.com/office/drawing/2017/model3d" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships" xmlns:m="http://schemas.openxmlformats.org/officeDocument/2006/math" xmlns:v="urn:schemas-microsoft-com:vml" xmlns:wp14="http://schemas.microsoft.com/office/word/2010/wordprocessingDrawing" xmlns:wp="http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing" xmlns:w10="urn:schemas-microsoft-com:office:word" xmlns:w="http://schemas.openxmlformats.org/wordprocessingml/2006/main" xmlns:w14="http://schemas.microsoft.com/office/word/2010/wordml" xmlns:w15="http://schemas.microsoft.com/office/word/2012/wordml" xmlns:w16cex="http://schemas.microsoft.com/office/word/2018/wordml/cex" xmlns:w16cid="http://schemas.microsoft.com/office/word/2016/wordml/cid" xmlns:w16="http://schemas.microsoft.com/office/word/2018/wordml" xmlns:w16se="http://schemas.microsoft.com/office/word/2015/wordml/symex" xmlns:wpg="http://schemas.microsoft.com/office/word/2010/wordprocessingGroup" xmlns:wpi="http://schemas.microsoft.com/office/word/2010/wordprocessingInk" xmlns:wne="http://schemas.microsoft.com/office/word/2006/wordml" xmlns:wps="http://schemas.microsoft.com/office/word/2010/wordprocessingShape" mc:Ignorable="w14 w15 w16se w16cid w16 w16cex wp14"><w:body>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:i/><w:sz w:val="23.000000"/><w:szCs w:val="17.250000"/></w:rPr><w:t xml:space="preserve">The sample size required for each State for various investigations among different target groups of individuals are given below:</w:t></w:r>
+</w:p>
+ <w:tbl>
+ <w:tblLayout w:type="autofit"/>
+ <w:tr>
+ <w:trPr/>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica-Bold" w:hAnsi="Helvetica-Bold"/><w:b/><w:sz w:val="19.000000"/><w:szCs w:val="14.250000"/></w:rPr><w:t xml:space="preserve">Investigations</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica-Bold" w:hAnsi="Helvetica-Bold"/><w:b/><w:sz w:val="19.000000"/><w:szCs w:val="14.250000"/></w:rPr><w:t xml:space="preserve">No. of HHs</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica-Bold" w:hAnsi="Helvetica-Bold"/><w:b/><w:sz w:val="19.000000"/><w:szCs w:val="14.250000"/></w:rPr><w:t xml:space="preserve">Age/Sex/Physiological Group</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica-Bold" w:hAnsi="Helvetica-Bold"/><w:b/><w:sz w:val="19.000000"/><w:szCs w:val="14.250000"/></w:rPr><w:t xml:space="preserve">Prevalence</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica-Bold" w:hAnsi="Helvetica-Bold"/><w:b/><w:sz w:val="19.000000"/><w:szCs w:val="14.250000"/></w:rPr><w:t xml:space="preserve">C.I*</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica-Bold" w:hAnsi="Helvetica-Bold"/><w:b/><w:sz w:val="19.000000"/><w:szCs w:val="14.250000"/></w:rPr><w:t xml:space="preserve">Relative Precision</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica-Bold" w:hAnsi="Helvetica-Bold"/><w:b/><w:sz w:val="19.000000"/><w:szCs w:val="14.250000"/></w:rPr><w:t xml:space="preserve">Sample size per State</w:t></w:r>
+</w:p> </w:tc>
+ </w:tr>
+ <w:tr>
+ <w:trPr/>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:i/><w:sz w:val="19.000000"/><w:szCs w:val="14.250000"/></w:rPr><w:t xml:space="preserve">Anthropometry</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="restart"/>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:i/><w:sz w:val="19.000000"/><w:szCs w:val="14.250000"/></w:rPr><w:t xml:space="preserve">2400</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:gridSpan w:val="5"/>
+ <w:vMerge w:val="restart"/>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:i/><w:sz w:val="19.000000"/><w:szCs w:val="14.250000"/></w:rPr><w:t xml:space="preserve"> All the available individuals</w:t></w:r>
+</w:p> </w:tc>
+ </w:tr>
+ <w:tr>
+ <w:trPr/>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:i/><w:sz w:val="19.000000"/><w:szCs w:val="14.250000"/></w:rPr><w:t xml:space="preserve">Clinical Examination</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:gridSpan w:val="5"/>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ </w:tr>
+ <w:tr>
+ <w:trPr/>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:i/><w:sz w:val="19.000000"/><w:szCs w:val="14.250000"/></w:rPr><w:t xml:space="preserve">History of morbidity</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:gridSpan w:val="5"/>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ </w:tr>
+ <w:tr>
+ <w:trPr/>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:i/><w:sz w:val="19.000000"/><w:szCs w:val="14.250000"/></w:rPr><w:t xml:space="preserve">Diet survey</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:i/><w:sz w:val="19.000000"/><w:szCs w:val="14.250000"/></w:rPr><w:t xml:space="preserve">1200</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:gridSpan w:val="5"/>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:i/><w:sz w:val="19.000000"/><w:szCs w:val="14.250000"/></w:rPr><w:t xml:space="preserve">All the individuals partaking meals in the HH</w:t></w:r>
+</w:p> </w:tc>
+ </w:tr>
+ <w:tr>
+ <w:trPr/>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="restart"/>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:i/><w:sz w:val="19.000000"/><w:szCs w:val="14.250000"/></w:rPr><w:t xml:space="preserve">Blood Pressure #</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="restart"/>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:i/><w:sz w:val="19.000000"/><w:szCs w:val="14.250000"/></w:rPr><w:t xml:space="preserve">2400</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:i/><w:sz w:val="19.000000"/><w:szCs w:val="14.250000"/></w:rPr><w:t xml:space="preserve">Men (</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="Symbol" w:hAnsi="Symbol"/><w:sz w:val="19.000000"/><w:szCs w:val="14.250000"/></w:rPr><w:t xml:space="preserve">&#x2265;</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:i/><w:sz w:val="19.000000"/><w:szCs w:val="14.250000"/></w:rPr><w:t xml:space="preserve"> 18yrs)</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="restart"/>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:i/><w:sz w:val="19.000000"/><w:szCs w:val="14.250000"/></w:rPr><w:t xml:space="preserve">10%</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="restart"/>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:i/><w:sz w:val="19.000000"/><w:szCs w:val="14.250000"/></w:rPr><w:t xml:space="preserve">95%</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="restart"/>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:i/><w:sz w:val="19.000000"/><w:szCs w:val="14.250000"/></w:rPr><w:t xml:space="preserve">20%</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:i/><w:sz w:val="19.000000"/><w:szCs w:val="14.250000"/></w:rPr><w:t xml:space="preserve">1728</w:t></w:r>
+</w:p> </w:tc>
+ </w:tr>
+ <w:tr>
+ <w:trPr/>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:i/><w:sz w:val="19.000000"/><w:szCs w:val="14.250000"/></w:rPr><w:t xml:space="preserve">Women (</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="Symbol" w:hAnsi="Symbol"/><w:sz w:val="19.000000"/><w:szCs w:val="14.250000"/></w:rPr><w:t xml:space="preserve">&#x2265;</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:i/><w:sz w:val="19.000000"/><w:szCs w:val="14.250000"/></w:rPr><w:t xml:space="preserve"> 18 yrs)</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:i/><w:sz w:val="19.000000"/><w:szCs w:val="14.250000"/></w:rPr><w:t xml:space="preserve">1728</w:t></w:r>
+</w:p> </w:tc>
+ </w:tr>
+ <w:tr>
+ <w:trPr/>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="restart"/>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:i/><w:sz w:val="19.000000"/><w:szCs w:val="14.250000"/></w:rPr><w:t xml:space="preserve">Fasting blood glucose</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="restart"/>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:i/><w:sz w:val="19.000000"/><w:szCs w:val="14.250000"/></w:rPr><w:t xml:space="preserve">2400</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:i/><w:sz w:val="19.000000"/><w:szCs w:val="14.250000"/></w:rPr><w:t xml:space="preserve">Men (</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="Symbol" w:hAnsi="Symbol"/><w:sz w:val="19.000000"/><w:szCs w:val="14.250000"/></w:rPr><w:t xml:space="preserve">&#x2265;</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:i/><w:sz w:val="19.000000"/><w:szCs w:val="14.250000"/></w:rPr><w:t xml:space="preserve"> 18 yrs)</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="restart"/>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:i/><w:sz w:val="19.000000"/><w:szCs w:val="14.250000"/></w:rPr><w:t xml:space="preserve">5%</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="restart"/>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:i/><w:sz w:val="19.000000"/><w:szCs w:val="14.250000"/></w:rPr><w:t xml:space="preserve">95%</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="restart"/>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:i/><w:sz w:val="19.000000"/><w:szCs w:val="14.250000"/></w:rPr><w:t xml:space="preserve">20%</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:i/><w:sz w:val="19.000000"/><w:szCs w:val="14.250000"/></w:rPr><w:t xml:space="preserve">1825</w:t></w:r>
+</w:p> </w:tc>
+ </w:tr>
+ <w:tr>
+ <w:trPr/>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:i/><w:sz w:val="19.000000"/><w:szCs w:val="14.250000"/></w:rPr><w:t xml:space="preserve">Women (</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="Symbol" w:hAnsi="Symbol"/><w:sz w:val="19.000000"/><w:szCs w:val="14.250000"/></w:rPr><w:t xml:space="preserve">&#x2265;</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:i/><w:sz w:val="19.000000"/><w:szCs w:val="14.250000"/></w:rPr><w:t xml:space="preserve"> 18 yrs)</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:i/><w:sz w:val="19.000000"/><w:szCs w:val="14.250000"/></w:rPr><w:t xml:space="preserve">1825</w:t></w:r>
+</w:p> </w:tc>
+ </w:tr>
+ <w:tr>
+ <w:trPr/>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="restart"/>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:i/><w:sz w:val="19.000000"/><w:szCs w:val="14.250000"/></w:rPr><w:t xml:space="preserve">Knowledge &amp; Practices on HTN &amp; DM</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:i/><w:sz w:val="19.000000"/><w:szCs w:val="14.250000"/></w:rPr><w:t xml:space="preserve">2400</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:i/><w:sz w:val="19.000000"/><w:szCs w:val="14.250000"/></w:rPr><w:t xml:space="preserve">Men (</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="Symbol" w:hAnsi="Symbol"/><w:sz w:val="19.000000"/><w:szCs w:val="14.250000"/></w:rPr><w:t xml:space="preserve">&#x2265;</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:i/><w:sz w:val="19.000000"/><w:szCs w:val="14.250000"/></w:rPr><w:t xml:space="preserve"> 18 yrs)</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:i/><w:sz w:val="19.000000"/><w:szCs w:val="14.250000"/></w:rPr><w:t xml:space="preserve"></w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:i/><w:sz w:val="19.000000"/><w:szCs w:val="14.250000"/></w:rPr><w:t xml:space="preserve"></w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:i/><w:sz w:val="19.000000"/><w:szCs w:val="14.250000"/></w:rPr><w:t xml:space="preserve"></w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:i/><w:sz w:val="19.000000"/><w:szCs w:val="14.250000"/></w:rPr><w:t xml:space="preserve">1728</w:t></w:r>
+</w:p> </w:tc>
+ </w:tr>
+ <w:tr>
+ <w:trPr/>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:i/><w:sz w:val="19.000000"/><w:szCs w:val="14.250000"/></w:rPr><w:t xml:space="preserve">2400</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:i/><w:sz w:val="19.000000"/><w:szCs w:val="14.250000"/></w:rPr><w:t xml:space="preserve">Women (</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="Symbol" w:hAnsi="Symbol"/><w:sz w:val="19.000000"/><w:szCs w:val="14.250000"/></w:rPr><w:t xml:space="preserve">&#x2265;</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:i/><w:sz w:val="19.000000"/><w:szCs w:val="14.250000"/></w:rPr><w:t xml:space="preserve"> 18 yrs)</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:i/><w:sz w:val="19.000000"/><w:szCs w:val="14.250000"/></w:rPr><w:t xml:space="preserve"></w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:i/><w:sz w:val="19.000000"/><w:szCs w:val="14.250000"/></w:rPr><w:t xml:space="preserve"></w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:i/><w:sz w:val="19.000000"/><w:szCs w:val="14.250000"/></w:rPr><w:t xml:space="preserve"></w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:i/><w:sz w:val="19.000000"/><w:szCs w:val="14.250000"/></w:rPr><w:t xml:space="preserve">1728</w:t></w:r>
+</w:p> </w:tc>
+ </w:tr>
+ </w:tbl>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:i/><w:sz w:val="19.000000"/><w:szCs w:val="14.250000"/></w:rPr><w:t xml:space="preserve">*CI: Confidence Interval # Design effect 2</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica-Bold" w:hAnsi="Helvetica-Bold"/><w:b/><w:sz w:val="23.000000"/><w:szCs w:val="17.250000"/></w:rPr><w:t xml:space="preserve">3.4.2. Measurement of blood pressure</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:i/><w:sz w:val="23.000000"/><w:szCs w:val="17.250000"/></w:rPr><w:t xml:space="preserve">Earlier studies have revealed that the prevalence of hypertension among the rural</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:i/><w:sz w:val="13.400000"/><w:szCs w:val="10.050000"/></w:rPr><w:t xml:space="preserve">3 </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:i/><w:sz w:val="23.000000"/><w:szCs w:val="17.250000"/></w:rPr><w:t xml:space="preserve">adults of </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="Symbol" w:hAnsi="Symbol"/><w:sz w:val="23.000000"/><w:szCs w:val="17.250000"/></w:rPr><w:t xml:space="preserve">&#x2265;</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:i/><w:sz w:val="23.000000"/><w:szCs w:val="17.250000"/></w:rPr><w:t xml:space="preserve">18 years in the State of Gujarat was 10% which was lowest compared to other NNMB States. Assuming 10% prevalence of hypertension among rural adults, with 95% confidence interval, 20% relative precision and design effect of 2, the sample size computed for each State was 1,728 adults in each gender.</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica-Bold" w:hAnsi="Helvetica-Bold"/><w:b/><w:sz w:val="23.000000"/><w:szCs w:val="17.250000"/></w:rPr><w:t xml:space="preserve">3.4.3. Estimation of fasting blood glucose</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:i/><w:sz w:val="23.000000"/><w:szCs w:val="17.250000"/></w:rPr><w:t xml:space="preserve">Earlier studies have revealed that the overall prevalence of diabetes among the</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:i/><w:sz w:val="13.400000"/><w:szCs w:val="10.050000"/></w:rPr><w:t xml:space="preserve">3 </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:i/><w:sz w:val="23.000000"/><w:szCs w:val="17.250000"/></w:rPr><w:t xml:space="preserve">rural adults of </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="Symbol" w:hAnsi="Symbol"/><w:sz w:val="23.000000"/><w:szCs w:val="17.250000"/></w:rPr><w:t xml:space="preserve">&#x2265;</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:i/><w:sz w:val="23.000000"/><w:szCs w:val="17.250000"/></w:rPr><w:t xml:space="preserve">18 years was about 5% . Assuming 5% prevalence of diabetes among rural adults, with 95% confidence interval and 20% relative precision, the sample size computed was 1,825 adults in each gender.</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica-Bold" w:hAnsi="Helvetica-Bold"/><w:b/><w:sz w:val="23.000000"/><w:szCs w:val="17.250000"/></w:rPr><w:t xml:space="preserve">3.5. Investigations</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:i/><w:sz w:val="23.000000"/><w:szCs w:val="17.250000"/></w:rPr><w:t xml:space="preserve">The following investigations were carried out in the selected HHs:</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica-Bold" w:hAnsi="Helvetica-Bold"/><w:b/><w:sz w:val="23.000000"/><w:szCs w:val="17.250000"/></w:rPr><w:t xml:space="preserve">3.5.1. Socioeconomic and demographic particulars of households</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:i/><w:sz w:val="23.000000"/><w:szCs w:val="17.250000"/></w:rPr><w:t xml:space="preserve">Socioeconomic and demographic particulars, such as age, sex, occupation, annual family income, family size, type of family, literacy level of individuals, information about possession of agricultural land, types of crops raised, their yield during previous year, live stock, type of dwelling, environmental sanitation etc. from all the selected 20 HHs were collected using pretested questionnaires.</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:i/><w:sz w:val="20.000000"/><w:szCs w:val="15.000000"/></w:rPr><w:t xml:space="preserve">NNMB 3 RuralThird Repeat Survey 201112</w:t></w:r>
+</w:p></w:body></w:document> \ No newline at end of file
diff --git a/extract/test/column_span_2.pdf.mutool.docx.dir.ref/word/fontTable.xml b/extract/test/column_span_2.pdf.mutool.docx.dir.ref/word/fontTable.xml
new file mode 100644
index 00000000..a39546e5
--- /dev/null
+++ b/extract/test/column_span_2.pdf.mutool.docx.dir.ref/word/fontTable.xml
@@ -0,0 +1,2 @@
+<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
+<w:fonts xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships" xmlns:w="http://schemas.openxmlformats.org/wordprocessingml/2006/main" xmlns:w14="http://schemas.microsoft.com/office/word/2010/wordml" xmlns:w15="http://schemas.microsoft.com/office/word/2012/wordml" xmlns:w16cex="http://schemas.microsoft.com/office/word/2018/wordml/cex" xmlns:w16cid="http://schemas.microsoft.com/office/word/2016/wordml/cid" xmlns:w16="http://schemas.microsoft.com/office/word/2018/wordml" xmlns:w16se="http://schemas.microsoft.com/office/word/2015/wordml/symex" mc:Ignorable="w14 w15 w16se w16cid w16 w16cex"><w:font w:name="Calibri"><w:panose1 w:val="020F0502020204030204"/><w:charset w:val="00"/><w:family w:val="swiss"/><w:pitch w:val="variable"/><w:sig w:usb0="E4002EFF" w:usb1="C000247B" w:usb2="00000009" w:usb3="00000000" w:csb0="000001FF" w:csb1="00000000"/></w:font><w:font w:name="Times New Roman"><w:panose1 w:val="02020603050405020304"/><w:charset w:val="00"/><w:family w:val="roman"/><w:pitch w:val="variable"/><w:sig w:usb0="E0002EFF" w:usb1="C000785B" w:usb2="00000009" w:usb3="00000000" w:csb0="000001FF" w:csb1="00000000"/></w:font><w:font w:name="Calibri Light"><w:panose1 w:val="020F0302020204030204"/><w:charset w:val="00"/><w:family w:val="swiss"/><w:pitch w:val="variable"/><w:sig w:usb0="E4002EFF" w:usb1="C000247B" w:usb2="00000009" w:usb3="00000000" w:csb0="000001FF" w:csb1="00000000"/></w:font></w:fonts> \ No newline at end of file
diff --git a/extract/test/column_span_2.pdf.mutool.docx.dir.ref/word/settings.xml b/extract/test/column_span_2.pdf.mutool.docx.dir.ref/word/settings.xml
new file mode 100644
index 00000000..c403540d
--- /dev/null
+++ b/extract/test/column_span_2.pdf.mutool.docx.dir.ref/word/settings.xml
@@ -0,0 +1,2 @@
+<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
+<w:settings xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships" xmlns:m="http://schemas.openxmlformats.org/officeDocument/2006/math" xmlns:v="urn:schemas-microsoft-com:vml" xmlns:w10="urn:schemas-microsoft-com:office:word" xmlns:w="http://schemas.openxmlformats.org/wordprocessingml/2006/main" xmlns:w14="http://schemas.microsoft.com/office/word/2010/wordml" xmlns:w15="http://schemas.microsoft.com/office/word/2012/wordml" xmlns:w16cex="http://schemas.microsoft.com/office/word/2018/wordml/cex" xmlns:w16cid="http://schemas.microsoft.com/office/word/2016/wordml/cid" xmlns:w16="http://schemas.microsoft.com/office/word/2018/wordml" xmlns:w16se="http://schemas.microsoft.com/office/word/2015/wordml/symex" xmlns:sl="http://schemas.openxmlformats.org/schemaLibrary/2006/main" mc:Ignorable="w14 w15 w16se w16cid w16 w16cex"><w:zoom w:percent="100"/><w:proofState w:spelling="clean" w:grammar="clean"/><w:defaultTabStop w:val="720"/><w:characterSpacingControl w:val="doNotCompress"/><w:compat><w:compatSetting w:name="compatibilityMode" w:uri="http://schemas.microsoft.com/office/word" w:val="15"/><w:compatSetting w:name="overrideTableStyleFontSizeAndJustification" w:uri="http://schemas.microsoft.com/office/word" w:val="1"/><w:compatSetting w:name="enableOpenTypeFeatures" w:uri="http://schemas.microsoft.com/office/word" w:val="1"/><w:compatSetting w:name="doNotFlipMirrorIndents" w:uri="http://schemas.microsoft.com/office/word" w:val="1"/><w:compatSetting w:name="differentiateMultirowTableHeaders" w:uri="http://schemas.microsoft.com/office/word" w:val="1"/><w:compatSetting w:name="useWord2013TrackBottomHyphenation" w:uri="http://schemas.microsoft.com/office/word" w:val="0"/></w:compat><w:rsids><w:rsidRoot w:val="007F4427"/><w:rsid w:val="00255448"/><w:rsid w:val="007F4427"/></w:rsids><m:mathPr><m:mathFont m:val="Cambria Math"/><m:brkBin m:val="before"/><m:brkBinSub m:val="--"/><m:smallFrac m:val="0"/><m:dispDef/><m:lMargin m:val="0"/><m:rMargin m:val="0"/><m:defJc m:val="centerGroup"/><m:wrapIndent m:val="1440"/><m:intLim m:val="subSup"/><m:naryLim m:val="undOvr"/></m:mathPr><w:themeFontLang w:val="en-GB"/><w:clrSchemeMapping w:bg1="light1" w:t1="dark1" w:bg2="light2" w:t2="dark2" w:accent1="accent1" w:accent2="accent2" w:accent3="accent3" w:accent4="accent4" w:accent5="accent5" w:accent6="accent6" w:hyperlink="hyperlink" w:followedHyperlink="followedHyperlink"/><w:shapeDefaults><o:shapedefaults v:ext="edit" spidmax="1026"/><o:shapelayout v:ext="edit"><o:idmap v:ext="edit" data="1"/></o:shapelayout></w:shapeDefaults><w:decimalSymbol w:val="."/><w:listSeparator w:val=","/><w14:docId w14:val="32E52EF8"/><w15:chartTrackingRefBased/><w15:docId w15:val="{A10F59F7-497D-44D4-A338-47719734E7A0}"/></w:settings> \ No newline at end of file
diff --git a/extract/test/column_span_2.pdf.mutool.docx.dir.ref/word/styles.xml b/extract/test/column_span_2.pdf.mutool.docx.dir.ref/word/styles.xml
new file mode 100644
index 00000000..38e5e2bd
--- /dev/null
+++ b/extract/test/column_span_2.pdf.mutool.docx.dir.ref/word/styles.xml
@@ -0,0 +1,2 @@
+<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
+<w:styles xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships" xmlns:w="http://schemas.openxmlformats.org/wordprocessingml/2006/main" xmlns:w14="http://schemas.microsoft.com/office/word/2010/wordml" xmlns:w15="http://schemas.microsoft.com/office/word/2012/wordml" xmlns:w16cex="http://schemas.microsoft.com/office/word/2018/wordml/cex" xmlns:w16cid="http://schemas.microsoft.com/office/word/2016/wordml/cid" xmlns:w16="http://schemas.microsoft.com/office/word/2018/wordml" xmlns:w16se="http://schemas.microsoft.com/office/word/2015/wordml/symex" mc:Ignorable="w14 w15 w16se w16cid w16 w16cex"><w:docDefaults><w:rPrDefault><w:rPr><w:rFonts w:asciiTheme="minorHAnsi" w:eastAsiaTheme="minorHAnsi" w:hAnsiTheme="minorHAnsi" w:cstheme="minorBidi"/><w:sz w:val="22"/><w:szCs w:val="22"/><w:lang w:val="en-GB" w:eastAsia="en-US" w:bidi="ar-SA"/></w:rPr></w:rPrDefault><w:pPrDefault><w:pPr><w:spacing w:after="160" w:line="259" w:lineRule="auto"/></w:pPr></w:pPrDefault></w:docDefaults><w:latentStyles w:defLockedState="0" w:defUIPriority="99" w:defSemiHidden="0" w:defUnhideWhenUsed="0" w:defQFormat="0" w:count="376"><w:lsdException w:name="Normal" w:uiPriority="0" w:qFormat="1"/><w:lsdException w:name="heading 1" w:uiPriority="9" w:qFormat="1"/><w:lsdException w:name="heading 2" w:semiHidden="1" w:uiPriority="9" w:unhideWhenUsed="1" w:qFormat="1"/><w:lsdException w:name="heading 3" w:semiHidden="1" w:uiPriority="9" w:unhideWhenUsed="1" w:qFormat="1"/><w:lsdException w:name="heading 4" w:semiHidden="1" w:uiPriority="9" w:unhideWhenUsed="1" w:qFormat="1"/><w:lsdException w:name="heading 5" w:semiHidden="1" w:uiPriority="9" w:unhideWhenUsed="1" w:qFormat="1"/><w:lsdException w:name="heading 6" w:semiHidden="1" w:uiPriority="9" w:unhideWhenUsed="1" w:qFormat="1"/><w:lsdException w:name="heading 7" w:semiHidden="1" w:uiPriority="9" w:unhideWhenUsed="1" w:qFormat="1"/><w:lsdException w:name="heading 8" w:semiHidden="1" w:uiPriority="9" w:unhideWhenUsed="1" w:qFormat="1"/><w:lsdException w:name="heading 9" w:semiHidden="1" w:uiPriority="9" w:unhideWhenUsed="1" w:qFormat="1"/><w:lsdException w:name="index 1" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="index 2" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="index 3" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="index 4" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="index 5" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="index 6" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="index 7" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="index 8" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="index 9" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="toc 1" w:semiHidden="1" w:uiPriority="39" w:unhideWhenUsed="1"/><w:lsdException w:name="toc 2" w:semiHidden="1" w:uiPriority="39" w:unhideWhenUsed="1"/><w:lsdException w:name="toc 3" w:semiHidden="1" w:uiPriority="39" w:unhideWhenUsed="1"/><w:lsdException w:name="toc 4" w:semiHidden="1" w:uiPriority="39" w:unhideWhenUsed="1"/><w:lsdException w:name="toc 5" w:semiHidden="1" w:uiPriority="39" w:unhideWhenUsed="1"/><w:lsdException w:name="toc 6" w:semiHidden="1" w:uiPriority="39" w:unhideWhenUsed="1"/><w:lsdException w:name="toc 7" w:semiHidden="1" w:uiPriority="39" w:unhideWhenUsed="1"/><w:lsdException w:name="toc 8" w:semiHidden="1" w:uiPriority="39" w:unhideWhenUsed="1"/><w:lsdException w:name="toc 9" w:semiHidden="1" w:uiPriority="39" w:unhideWhenUsed="1"/><w:lsdException w:name="Normal Indent" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="footnote text" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="annotation text" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="header" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="footer" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="index heading" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="caption" w:semiHidden="1" w:uiPriority="35" w:unhideWhenUsed="1" w:qFormat="1"/><w:lsdException w:name="table of figures" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="envelope address" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="envelope return" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="footnote reference" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="annotation reference" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="line number" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="page number" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="endnote reference" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="endnote text" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="table of authorities" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="macro" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="toa heading" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="List" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="List Bullet" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="List Number" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="List 2" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="List 3" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="List 4" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="List 5" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="List Bullet 2" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="List Bullet 3" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="List Bullet 4" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="List Bullet 5" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="List Number 2" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="List Number 3" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="List Number 4" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="List Number 5" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Title" w:uiPriority="10" w:qFormat="1"/><w:lsdException w:name="Closing" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Signature" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Default Paragraph Font" w:semiHidden="1" w:uiPriority="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Body Text" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Body Text Indent" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="List Continue" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="List Continue 2" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="List Continue 3" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="List Continue 4" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="List Continue 5" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Message Header" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Subtitle" w:uiPriority="11" w:qFormat="1"/><w:lsdException w:name="Salutation" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Date" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Body Text First Indent" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Body Text First Indent 2" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Note Heading" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Body Text 2" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Body Text 3" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Body Text Indent 2" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Body Text Indent 3" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Block Text" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Hyperlink" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="FollowedHyperlink" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Strong" w:uiPriority="22" w:qFormat="1"/><w:lsdException w:name="Emphasis" w:uiPriority="20" w:qFormat="1"/><w:lsdException w:name="Document Map" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Plain Text" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="E-mail Signature" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="HTML Top of Form" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="HTML Bottom of Form" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Normal (Web)" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="HTML Acronym" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="HTML Address" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="HTML Cite" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="HTML Code" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="HTML Definition" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="HTML Keyboard" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="HTML Preformatted" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="HTML Sample" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="HTML Typewriter" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="HTML Variable" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Normal Table" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="annotation subject" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="No List" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Outline List 1" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Outline List 2" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Outline List 3" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Simple 1" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Simple 2" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Simple 3" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Classic 1" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Classic 2" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Classic 3" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Classic 4" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Colorful 1" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Colorful 2" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Colorful 3" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Columns 1" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Columns 2" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Columns 3" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Columns 4" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Columns 5" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Grid 1" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Grid 2" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Grid 3" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Grid 4" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Grid 5" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Grid 6" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Grid 7" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Grid 8" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table List 1" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table List 2" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table List 3" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table List 4" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table List 5" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table List 6" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table List 7" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table List 8" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table 3D effects 1" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table 3D effects 2" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table 3D effects 3" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Contemporary" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Elegant" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Professional" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Subtle 1" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Subtle 2" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Web 1" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Web 2" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Web 3" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Balloon Text" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Grid" w:uiPriority="39"/><w:lsdException w:name="Table Theme" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Placeholder Text" w:semiHidden="1"/><w:lsdException w:name="No Spacing" w:uiPriority="1" w:qFormat="1"/><w:lsdException w:name="Light Shading" w:uiPriority="60"/><w:lsdException w:name="Light List" w:uiPriority="61"/><w:lsdException w:name="Light Grid" w:uiPriority="62"/><w:lsdException w:name="Medium Shading 1" w:uiPriority="63"/><w:lsdException w:name="Medium Shading 2" w:uiPriority="64"/><w:lsdException w:name="Medium List 1" w:uiPriority="65"/><w:lsdException w:name="Medium List 2" w:uiPriority="66"/><w:lsdException w:name="Medium Grid 1" w:uiPriority="67"/><w:lsdException w:name="Medium Grid 2" w:uiPriority="68"/><w:lsdException w:name="Medium Grid 3" w:uiPriority="69"/><w:lsdException w:name="Dark List" w:uiPriority="70"/><w:lsdException w:name="Colorful Shading" w:uiPriority="71"/><w:lsdException w:name="Colorful List" w:uiPriority="72"/><w:lsdException w:name="Colorful Grid" w:uiPriority="73"/><w:lsdException w:name="Light Shading Accent 1" w:uiPriority="60"/><w:lsdException w:name="Light List Accent 1" w:uiPriority="61"/><w:lsdException w:name="Light Grid Accent 1" w:uiPriority="62"/><w:lsdException w:name="Medium Shading 1 Accent 1" w:uiPriority="63"/><w:lsdException w:name="Medium Shading 2 Accent 1" w:uiPriority="64"/><w:lsdException w:name="Medium List 1 Accent 1" w:uiPriority="65"/><w:lsdException w:name="Revision" w:semiHidden="1"/><w:lsdException w:name="List Paragraph" w:uiPriority="34" w:qFormat="1"/><w:lsdException w:name="Quote" w:uiPriority="29" w:qFormat="1"/><w:lsdException w:name="Intense Quote" w:uiPriority="30" w:qFormat="1"/><w:lsdException w:name="Medium List 2 Accent 1" w:uiPriority="66"/><w:lsdException w:name="Medium Grid 1 Accent 1" w:uiPriority="67"/><w:lsdException w:name="Medium Grid 2 Accent 1" w:uiPriority="68"/><w:lsdException w:name="Medium Grid 3 Accent 1" w:uiPriority="69"/><w:lsdException w:name="Dark List Accent 1" w:uiPriority="70"/><w:lsdException w:name="Colorful Shading Accent 1" w:uiPriority="71"/><w:lsdException w:name="Colorful List Accent 1" w:uiPriority="72"/><w:lsdException w:name="Colorful Grid Accent 1" w:uiPriority="73"/><w:lsdException w:name="Light Shading Accent 2" w:uiPriority="60"/><w:lsdException w:name="Light List Accent 2" w:uiPriority="61"/><w:lsdException w:name="Light Grid Accent 2" w:uiPriority="62"/><w:lsdException w:name="Medium Shading 1 Accent 2" w:uiPriority="63"/><w:lsdException w:name="Medium Shading 2 Accent 2" w:uiPriority="64"/><w:lsdException w:name="Medium List 1 Accent 2" w:uiPriority="65"/><w:lsdException w:name="Medium List 2 Accent 2" w:uiPriority="66"/><w:lsdException w:name="Medium Grid 1 Accent 2" w:uiPriority="67"/><w:lsdException w:name="Medium Grid 2 Accent 2" w:uiPriority="68"/><w:lsdException w:name="Medium Grid 3 Accent 2" w:uiPriority="69"/><w:lsdException w:name="Dark List Accent 2" w:uiPriority="70"/><w:lsdException w:name="Colorful Shading Accent 2" w:uiPriority="71"/><w:lsdException w:name="Colorful List Accent 2" w:uiPriority="72"/><w:lsdException w:name="Colorful Grid Accent 2" w:uiPriority="73"/><w:lsdException w:name="Light Shading Accent 3" w:uiPriority="60"/><w:lsdException w:name="Light List Accent 3" w:uiPriority="61"/><w:lsdException w:name="Light Grid Accent 3" w:uiPriority="62"/><w:lsdException w:name="Medium Shading 1 Accent 3" w:uiPriority="63"/><w:lsdException w:name="Medium Shading 2 Accent 3" w:uiPriority="64"/><w:lsdException w:name="Medium List 1 Accent 3" w:uiPriority="65"/><w:lsdException w:name="Medium List 2 Accent 3" w:uiPriority="66"/><w:lsdException w:name="Medium Grid 1 Accent 3" w:uiPriority="67"/><w:lsdException w:name="Medium Grid 2 Accent 3" w:uiPriority="68"/><w:lsdException w:name="Medium Grid 3 Accent 3" w:uiPriority="69"/><w:lsdException w:name="Dark List Accent 3" w:uiPriority="70"/><w:lsdException w:name="Colorful Shading Accent 3" w:uiPriority="71"/><w:lsdException w:name="Colorful List Accent 3" w:uiPriority="72"/><w:lsdException w:name="Colorful Grid Accent 3" w:uiPriority="73"/><w:lsdException w:name="Light Shading Accent 4" w:uiPriority="60"/><w:lsdException w:name="Light List Accent 4" w:uiPriority="61"/><w:lsdException w:name="Light Grid Accent 4" w:uiPriority="62"/><w:lsdException w:name="Medium Shading 1 Accent 4" w:uiPriority="63"/><w:lsdException w:name="Medium Shading 2 Accent 4" w:uiPriority="64"/><w:lsdException w:name="Medium List 1 Accent 4" w:uiPriority="65"/><w:lsdException w:name="Medium List 2 Accent 4" w:uiPriority="66"/><w:lsdException w:name="Medium Grid 1 Accent 4" w:uiPriority="67"/><w:lsdException w:name="Medium Grid 2 Accent 4" w:uiPriority="68"/><w:lsdException w:name="Medium Grid 3 Accent 4" w:uiPriority="69"/><w:lsdException w:name="Dark List Accent 4" w:uiPriority="70"/><w:lsdException w:name="Colorful Shading Accent 4" w:uiPriority="71"/><w:lsdException w:name="Colorful List Accent 4" w:uiPriority="72"/><w:lsdException w:name="Colorful Grid Accent 4" w:uiPriority="73"/><w:lsdException w:name="Light Shading Accent 5" w:uiPriority="60"/><w:lsdException w:name="Light List Accent 5" w:uiPriority="61"/><w:lsdException w:name="Light Grid Accent 5" w:uiPriority="62"/><w:lsdException w:name="Medium Shading 1 Accent 5" w:uiPriority="63"/><w:lsdException w:name="Medium Shading 2 Accent 5" w:uiPriority="64"/><w:lsdException w:name="Medium List 1 Accent 5" w:uiPriority="65"/><w:lsdException w:name="Medium List 2 Accent 5" w:uiPriority="66"/><w:lsdException w:name="Medium Grid 1 Accent 5" w:uiPriority="67"/><w:lsdException w:name="Medium Grid 2 Accent 5" w:uiPriority="68"/><w:lsdException w:name="Medium Grid 3 Accent 5" w:uiPriority="69"/><w:lsdException w:name="Dark List Accent 5" w:uiPriority="70"/><w:lsdException w:name="Colorful Shading Accent 5" w:uiPriority="71"/><w:lsdException w:name="Colorful List Accent 5" w:uiPriority="72"/><w:lsdException w:name="Colorful Grid Accent 5" w:uiPriority="73"/><w:lsdException w:name="Light Shading Accent 6" w:uiPriority="60"/><w:lsdException w:name="Light List Accent 6" w:uiPriority="61"/><w:lsdException w:name="Light Grid Accent 6" w:uiPriority="62"/><w:lsdException w:name="Medium Shading 1 Accent 6" w:uiPriority="63"/><w:lsdException w:name="Medium Shading 2 Accent 6" w:uiPriority="64"/><w:lsdException w:name="Medium List 1 Accent 6" w:uiPriority="65"/><w:lsdException w:name="Medium List 2 Accent 6" w:uiPriority="66"/><w:lsdException w:name="Medium Grid 1 Accent 6" w:uiPriority="67"/><w:lsdException w:name="Medium Grid 2 Accent 6" w:uiPriority="68"/><w:lsdException w:name="Medium Grid 3 Accent 6" w:uiPriority="69"/><w:lsdException w:name="Dark List Accent 6" w:uiPriority="70"/><w:lsdException w:name="Colorful Shading Accent 6" w:uiPriority="71"/><w:lsdException w:name="Colorful List Accent 6" w:uiPriority="72"/><w:lsdException w:name="Colorful Grid Accent 6" w:uiPriority="73"/><w:lsdException w:name="Subtle Emphasis" w:uiPriority="19" w:qFormat="1"/><w:lsdException w:name="Intense Emphasis" w:uiPriority="21" w:qFormat="1"/><w:lsdException w:name="Subtle Reference" w:uiPriority="31" w:qFormat="1"/><w:lsdException w:name="Intense Reference" w:uiPriority="32" w:qFormat="1"/><w:lsdException w:name="Book Title" w:uiPriority="33" w:qFormat="1"/><w:lsdException w:name="Bibliography" w:semiHidden="1" w:uiPriority="37" w:unhideWhenUsed="1"/><w:lsdException w:name="TOC Heading" w:semiHidden="1" w:uiPriority="39" w:unhideWhenUsed="1" w:qFormat="1"/><w:lsdException w:name="Plain Table 1" w:uiPriority="41"/><w:lsdException w:name="Plain Table 2" w:uiPriority="42"/><w:lsdException w:name="Plain Table 3" w:uiPriority="43"/><w:lsdException w:name="Plain Table 4" w:uiPriority="44"/><w:lsdException w:name="Plain Table 5" w:uiPriority="45"/><w:lsdException w:name="Grid Table Light" w:uiPriority="40"/><w:lsdException w:name="Grid Table 1 Light" w:uiPriority="46"/><w:lsdException w:name="Grid Table 2" w:uiPriority="47"/><w:lsdException w:name="Grid Table 3" w:uiPriority="48"/><w:lsdException w:name="Grid Table 4" w:uiPriority="49"/><w:lsdException w:name="Grid Table 5 Dark" w:uiPriority="50"/><w:lsdException w:name="Grid Table 6 Colorful" w:uiPriority="51"/><w:lsdException w:name="Grid Table 7 Colorful" w:uiPriority="52"/><w:lsdException w:name="Grid Table 1 Light Accent 1" w:uiPriority="46"/><w:lsdException w:name="Grid Table 2 Accent 1" w:uiPriority="47"/><w:lsdException w:name="Grid Table 3 Accent 1" w:uiPriority="48"/><w:lsdException w:name="Grid Table 4 Accent 1" w:uiPriority="49"/><w:lsdException w:name="Grid Table 5 Dark Accent 1" w:uiPriority="50"/><w:lsdException w:name="Grid Table 6 Colorful Accent 1" w:uiPriority="51"/><w:lsdException w:name="Grid Table 7 Colorful Accent 1" w:uiPriority="52"/><w:lsdException w:name="Grid Table 1 Light Accent 2" w:uiPriority="46"/><w:lsdException w:name="Grid Table 2 Accent 2" w:uiPriority="47"/><w:lsdException w:name="Grid Table 3 Accent 2" w:uiPriority="48"/><w:lsdException w:name="Grid Table 4 Accent 2" w:uiPriority="49"/><w:lsdException w:name="Grid Table 5 Dark Accent 2" w:uiPriority="50"/><w:lsdException w:name="Grid Table 6 Colorful Accent 2" w:uiPriority="51"/><w:lsdException w:name="Grid Table 7 Colorful Accent 2" w:uiPriority="52"/><w:lsdException w:name="Grid Table 1 Light Accent 3" w:uiPriority="46"/><w:lsdException w:name="Grid Table 2 Accent 3" w:uiPriority="47"/><w:lsdException w:name="Grid Table 3 Accent 3" w:uiPriority="48"/><w:lsdException w:name="Grid Table 4 Accent 3" w:uiPriority="49"/><w:lsdException w:name="Grid Table 5 Dark Accent 3" w:uiPriority="50"/><w:lsdException w:name="Grid Table 6 Colorful Accent 3" w:uiPriority="51"/><w:lsdException w:name="Grid Table 7 Colorful Accent 3" w:uiPriority="52"/><w:lsdException w:name="Grid Table 1 Light Accent 4" w:uiPriority="46"/><w:lsdException w:name="Grid Table 2 Accent 4" w:uiPriority="47"/><w:lsdException w:name="Grid Table 3 Accent 4" w:uiPriority="48"/><w:lsdException w:name="Grid Table 4 Accent 4" w:uiPriority="49"/><w:lsdException w:name="Grid Table 5 Dark Accent 4" w:uiPriority="50"/><w:lsdException w:name="Grid Table 6 Colorful Accent 4" w:uiPriority="51"/><w:lsdException w:name="Grid Table 7 Colorful Accent 4" w:uiPriority="52"/><w:lsdException w:name="Grid Table 1 Light Accent 5" w:uiPriority="46"/><w:lsdException w:name="Grid Table 2 Accent 5" w:uiPriority="47"/><w:lsdException w:name="Grid Table 3 Accent 5" w:uiPriority="48"/><w:lsdException w:name="Grid Table 4 Accent 5" w:uiPriority="49"/><w:lsdException w:name="Grid Table 5 Dark Accent 5" w:uiPriority="50"/><w:lsdException w:name="Grid Table 6 Colorful Accent 5" w:uiPriority="51"/><w:lsdException w:name="Grid Table 7 Colorful Accent 5" w:uiPriority="52"/><w:lsdException w:name="Grid Table 1 Light Accent 6" w:uiPriority="46"/><w:lsdException w:name="Grid Table 2 Accent 6" w:uiPriority="47"/><w:lsdException w:name="Grid Table 3 Accent 6" w:uiPriority="48"/><w:lsdException w:name="Grid Table 4 Accent 6" w:uiPriority="49"/><w:lsdException w:name="Grid Table 5 Dark Accent 6" w:uiPriority="50"/><w:lsdException w:name="Grid Table 6 Colorful Accent 6" w:uiPriority="51"/><w:lsdException w:name="Grid Table 7 Colorful Accent 6" w:uiPriority="52"/><w:lsdException w:name="List Table 1 Light" w:uiPriority="46"/><w:lsdException w:name="List Table 2" w:uiPriority="47"/><w:lsdException w:name="List Table 3" w:uiPriority="48"/><w:lsdException w:name="List Table 4" w:uiPriority="49"/><w:lsdException w:name="List Table 5 Dark" w:uiPriority="50"/><w:lsdException w:name="List Table 6 Colorful" w:uiPriority="51"/><w:lsdException w:name="List Table 7 Colorful" w:uiPriority="52"/><w:lsdException w:name="List Table 1 Light Accent 1" w:uiPriority="46"/><w:lsdException w:name="List Table 2 Accent 1" w:uiPriority="47"/><w:lsdException w:name="List Table 3 Accent 1" w:uiPriority="48"/><w:lsdException w:name="List Table 4 Accent 1" w:uiPriority="49"/><w:lsdException w:name="List Table 5 Dark Accent 1" w:uiPriority="50"/><w:lsdException w:name="List Table 6 Colorful Accent 1" w:uiPriority="51"/><w:lsdException w:name="List Table 7 Colorful Accent 1" w:uiPriority="52"/><w:lsdException w:name="List Table 1 Light Accent 2" w:uiPriority="46"/><w:lsdException w:name="List Table 2 Accent 2" w:uiPriority="47"/><w:lsdException w:name="List Table 3 Accent 2" w:uiPriority="48"/><w:lsdException w:name="List Table 4 Accent 2" w:uiPriority="49"/><w:lsdException w:name="List Table 5 Dark Accent 2" w:uiPriority="50"/><w:lsdException w:name="List Table 6 Colorful Accent 2" w:uiPriority="51"/><w:lsdException w:name="List Table 7 Colorful Accent 2" w:uiPriority="52"/><w:lsdException w:name="List Table 1 Light Accent 3" w:uiPriority="46"/><w:lsdException w:name="List Table 2 Accent 3" w:uiPriority="47"/><w:lsdException w:name="List Table 3 Accent 3" w:uiPriority="48"/><w:lsdException w:name="List Table 4 Accent 3" w:uiPriority="49"/><w:lsdException w:name="List Table 5 Dark Accent 3" w:uiPriority="50"/><w:lsdException w:name="List Table 6 Colorful Accent 3" w:uiPriority="51"/><w:lsdException w:name="List Table 7 Colorful Accent 3" w:uiPriority="52"/><w:lsdException w:name="List Table 1 Light Accent 4" w:uiPriority="46"/><w:lsdException w:name="List Table 2 Accent 4" w:uiPriority="47"/><w:lsdException w:name="List Table 3 Accent 4" w:uiPriority="48"/><w:lsdException w:name="List Table 4 Accent 4" w:uiPriority="49"/><w:lsdException w:name="List Table 5 Dark Accent 4" w:uiPriority="50"/><w:lsdException w:name="List Table 6 Colorful Accent 4" w:uiPriority="51"/><w:lsdException w:name="List Table 7 Colorful Accent 4" w:uiPriority="52"/><w:lsdException w:name="List Table 1 Light Accent 5" w:uiPriority="46"/><w:lsdException w:name="List Table 2 Accent 5" w:uiPriority="47"/><w:lsdException w:name="List Table 3 Accent 5" w:uiPriority="48"/><w:lsdException w:name="List Table 4 Accent 5" w:uiPriority="49"/><w:lsdException w:name="List Table 5 Dark Accent 5" w:uiPriority="50"/><w:lsdException w:name="List Table 6 Colorful Accent 5" w:uiPriority="51"/><w:lsdException w:name="List Table 7 Colorful Accent 5" w:uiPriority="52"/><w:lsdException w:name="List Table 1 Light Accent 6" w:uiPriority="46"/><w:lsdException w:name="List Table 2 Accent 6" w:uiPriority="47"/><w:lsdException w:name="List Table 3 Accent 6" w:uiPriority="48"/><w:lsdException w:name="List Table 4 Accent 6" w:uiPriority="49"/><w:lsdException w:name="List Table 5 Dark Accent 6" w:uiPriority="50"/><w:lsdException w:name="List Table 6 Colorful Accent 6" w:uiPriority="51"/><w:lsdException w:name="List Table 7 Colorful Accent 6" w:uiPriority="52"/><w:lsdException w:name="Mention" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Smart Hyperlink" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Hashtag" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Unresolved Mention" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Smart Link" w:semiHidden="1" w:unhideWhenUsed="1"/></w:latentStyles><w:style w:type="paragraph" w:default="1" w:styleId="Normal"><w:name w:val="Normal"/><w:qFormat/></w:style><w:style w:type="character" w:default="1" w:styleId="DefaultParagraphFont"><w:name w:val="Default Paragraph Font"/><w:uiPriority w:val="1"/><w:semiHidden/><w:unhideWhenUsed/></w:style><w:style w:type="table" w:default="1" w:styleId="TableNormal"><w:name w:val="Normal Table"/><w:uiPriority w:val="99"/><w:semiHidden/><w:unhideWhenUsed/><w:tblPr><w:tblInd w:w="0" w:type="dxa"/><w:tblCellMar><w:top w:w="0" w:type="dxa"/><w:left w:w="108" w:type="dxa"/><w:bottom w:w="0" w:type="dxa"/><w:right w:w="108" w:type="dxa"/></w:tblCellMar></w:tblPr></w:style><w:style w:type="numbering" w:default="1" w:styleId="NoList"><w:name w:val="No List"/><w:uiPriority w:val="99"/><w:semiHidden/><w:unhideWhenUsed/></w:style></w:styles> \ No newline at end of file
diff --git a/extract/test/column_span_2.pdf.mutool.docx.dir.ref/word/theme/theme1.xml b/extract/test/column_span_2.pdf.mutool.docx.dir.ref/word/theme/theme1.xml
new file mode 100644
index 00000000..d1a502f8
--- /dev/null
+++ b/extract/test/column_span_2.pdf.mutool.docx.dir.ref/word/theme/theme1.xml
@@ -0,0 +1,2 @@
+<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
+<a:theme xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main" name="Office Theme"><a:themeElements><a:clrScheme name="Office"><a:dk1><a:sysClr val="windowText" lastClr="000000"/></a:dk1><a:lt1><a:sysClr val="window" lastClr="FFFFFF"/></a:lt1><a:dk2><a:srgbClr val="44546A"/></a:dk2><a:lt2><a:srgbClr val="E7E6E6"/></a:lt2><a:accent1><a:srgbClr val="4472C4"/></a:accent1><a:accent2><a:srgbClr val="ED7D31"/></a:accent2><a:accent3><a:srgbClr val="A5A5A5"/></a:accent3><a:accent4><a:srgbClr val="FFC000"/></a:accent4><a:accent5><a:srgbClr val="5B9BD5"/></a:accent5><a:accent6><a:srgbClr val="70AD47"/></a:accent6><a:hlink><a:srgbClr val="0563C1"/></a:hlink><a:folHlink><a:srgbClr val="954F72"/></a:folHlink></a:clrScheme><a:fontScheme name="Office"><a:majorFont><a:latin typeface="Calibri Light" panose="020F0302020204030204"/><a:ea typeface=""/><a:cs typeface=""/><a:font script="Jpan" typeface="游ゴシック Light"/><a:font script="Hang" typeface="맑은 고딕"/><a:font script="Hans" typeface="等线 Light"/><a:font script="Hant" typeface="新細明體"/><a:font script="Arab" typeface="Times New Roman"/><a:font script="Hebr" typeface="Times New Roman"/><a:font script="Thai" typeface="Angsana New"/><a:font script="Ethi" typeface="Nyala"/><a:font script="Beng" typeface="Vrinda"/><a:font script="Gujr" typeface="Shruti"/><a:font script="Khmr" typeface="MoolBoran"/><a:font script="Knda" typeface="Tunga"/><a:font script="Guru" typeface="Raavi"/><a:font script="Cans" typeface="Euphemia"/><a:font script="Cher" typeface="Plantagenet Cherokee"/><a:font script="Yiii" typeface="Microsoft Yi Baiti"/><a:font script="Tibt" typeface="Microsoft Himalaya"/><a:font script="Thaa" typeface="MV Boli"/><a:font script="Deva" typeface="Mangal"/><a:font script="Telu" typeface="Gautami"/><a:font script="Taml" typeface="Latha"/><a:font script="Syrc" typeface="Estrangelo Edessa"/><a:font script="Orya" typeface="Kalinga"/><a:font script="Mlym" typeface="Kartika"/><a:font script="Laoo" typeface="DokChampa"/><a:font script="Sinh" typeface="Iskoola Pota"/><a:font script="Mong" typeface="Mongolian Baiti"/><a:font script="Viet" typeface="Times New Roman"/><a:font script="Uigh" typeface="Microsoft Uighur"/><a:font script="Geor" typeface="Sylfaen"/><a:font script="Armn" typeface="Arial"/><a:font script="Bugi" typeface="Leelawadee UI"/><a:font script="Bopo" typeface="Microsoft JhengHei"/><a:font script="Java" typeface="Javanese Text"/><a:font script="Lisu" typeface="Segoe UI"/><a:font script="Mymr" typeface="Myanmar Text"/><a:font script="Nkoo" typeface="Ebrima"/><a:font script="Olck" typeface="Nirmala UI"/><a:font script="Osma" typeface="Ebrima"/><a:font script="Phag" typeface="Phagspa"/><a:font script="Syrn" typeface="Estrangelo Edessa"/><a:font script="Syrj" typeface="Estrangelo Edessa"/><a:font script="Syre" typeface="Estrangelo Edessa"/><a:font script="Sora" typeface="Nirmala UI"/><a:font script="Tale" typeface="Microsoft Tai Le"/><a:font script="Talu" typeface="Microsoft New Tai Lue"/><a:font script="Tfng" typeface="Ebrima"/></a:majorFont><a:minorFont><a:latin typeface="Calibri" panose="020F0502020204030204"/><a:ea typeface=""/><a:cs typeface=""/><a:font script="Jpan" typeface="游明朝"/><a:font script="Hang" typeface="맑은 고딕"/><a:font script="Hans" typeface="等线"/><a:font script="Hant" typeface="新細明體"/><a:font script="Arab" typeface="Arial"/><a:font script="Hebr" typeface="Arial"/><a:font script="Thai" typeface="Cordia New"/><a:font script="Ethi" typeface="Nyala"/><a:font script="Beng" typeface="Vrinda"/><a:font script="Gujr" typeface="Shruti"/><a:font script="Khmr" typeface="DaunPenh"/><a:font script="Knda" typeface="Tunga"/><a:font script="Guru" typeface="Raavi"/><a:font script="Cans" typeface="Euphemia"/><a:font script="Cher" typeface="Plantagenet Cherokee"/><a:font script="Yiii" typeface="Microsoft Yi Baiti"/><a:font script="Tibt" typeface="Microsoft Himalaya"/><a:font script="Thaa" typeface="MV Boli"/><a:font script="Deva" typeface="Mangal"/><a:font script="Telu" typeface="Gautami"/><a:font script="Taml" typeface="Latha"/><a:font script="Syrc" typeface="Estrangelo Edessa"/><a:font script="Orya" typeface="Kalinga"/><a:font script="Mlym" typeface="Kartika"/><a:font script="Laoo" typeface="DokChampa"/><a:font script="Sinh" typeface="Iskoola Pota"/><a:font script="Mong" typeface="Mongolian Baiti"/><a:font script="Viet" typeface="Arial"/><a:font script="Uigh" typeface="Microsoft Uighur"/><a:font script="Geor" typeface="Sylfaen"/><a:font script="Armn" typeface="Arial"/><a:font script="Bugi" typeface="Leelawadee UI"/><a:font script="Bopo" typeface="Microsoft JhengHei"/><a:font script="Java" typeface="Javanese Text"/><a:font script="Lisu" typeface="Segoe UI"/><a:font script="Mymr" typeface="Myanmar Text"/><a:font script="Nkoo" typeface="Ebrima"/><a:font script="Olck" typeface="Nirmala UI"/><a:font script="Osma" typeface="Ebrima"/><a:font script="Phag" typeface="Phagspa"/><a:font script="Syrn" typeface="Estrangelo Edessa"/><a:font script="Syrj" typeface="Estrangelo Edessa"/><a:font script="Syre" typeface="Estrangelo Edessa"/><a:font script="Sora" typeface="Nirmala UI"/><a:font script="Tale" typeface="Microsoft Tai Le"/><a:font script="Talu" typeface="Microsoft New Tai Lue"/><a:font script="Tfng" typeface="Ebrima"/></a:minorFont></a:fontScheme><a:fmtScheme name="Office"><a:fillStyleLst><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:gradFill rotWithShape="1"><a:gsLst><a:gs pos="0"><a:schemeClr val="phClr"><a:lumMod val="110000"/><a:satMod val="105000"/><a:tint val="67000"/></a:schemeClr></a:gs><a:gs pos="50000"><a:schemeClr val="phClr"><a:lumMod val="105000"/><a:satMod val="103000"/><a:tint val="73000"/></a:schemeClr></a:gs><a:gs pos="100000"><a:schemeClr val="phClr"><a:lumMod val="105000"/><a:satMod val="109000"/><a:tint val="81000"/></a:schemeClr></a:gs></a:gsLst><a:lin ang="5400000" scaled="0"/></a:gradFill><a:gradFill rotWithShape="1"><a:gsLst><a:gs pos="0"><a:schemeClr val="phClr"><a:satMod val="103000"/><a:lumMod val="102000"/><a:tint val="94000"/></a:schemeClr></a:gs><a:gs pos="50000"><a:schemeClr val="phClr"><a:satMod val="110000"/><a:lumMod val="100000"/><a:shade val="100000"/></a:schemeClr></a:gs><a:gs pos="100000"><a:schemeClr val="phClr"><a:lumMod val="99000"/><a:satMod val="120000"/><a:shade val="78000"/></a:schemeClr></a:gs></a:gsLst><a:lin ang="5400000" scaled="0"/></a:gradFill></a:fillStyleLst><a:lnStyleLst><a:ln w="6350" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:prstDash val="solid"/><a:miter lim="800000"/></a:ln><a:ln w="12700" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:prstDash val="solid"/><a:miter lim="800000"/></a:ln><a:ln w="19050" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:prstDash val="solid"/><a:miter lim="800000"/></a:ln></a:lnStyleLst><a:effectStyleLst><a:effectStyle><a:effectLst/></a:effectStyle><a:effectStyle><a:effectLst/></a:effectStyle><a:effectStyle><a:effectLst><a:outerShdw blurRad="57150" dist="19050" dir="5400000" algn="ctr" rotWithShape="0"><a:srgbClr val="000000"><a:alpha val="63000"/></a:srgbClr></a:outerShdw></a:effectLst></a:effectStyle></a:effectStyleLst><a:bgFillStyleLst><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:solidFill><a:schemeClr val="phClr"><a:tint val="95000"/><a:satMod val="170000"/></a:schemeClr></a:solidFill><a:gradFill rotWithShape="1"><a:gsLst><a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="93000"/><a:satMod val="150000"/><a:shade val="98000"/><a:lumMod val="102000"/></a:schemeClr></a:gs><a:gs pos="50000"><a:schemeClr val="phClr"><a:tint val="98000"/><a:satMod val="130000"/><a:shade val="90000"/><a:lumMod val="103000"/></a:schemeClr></a:gs><a:gs pos="100000"><a:schemeClr val="phClr"><a:shade val="63000"/><a:satMod val="120000"/></a:schemeClr></a:gs></a:gsLst><a:lin ang="5400000" scaled="0"/></a:gradFill></a:bgFillStyleLst></a:fmtScheme></a:themeElements><a:objectDefaults/><a:extraClrSchemeLst/><a:extLst><a:ext uri="{05A4C25C-085E-4340-85A3-A5531E510DB2}"><thm15:themeFamily xmlns:thm15="http://schemas.microsoft.com/office/thememl/2012/main" name="Office Theme" id="{62F939B6-93AF-4DB8-9C6B-D6C7DFDC589F}" vid="{4A3C46E8-61CC-4603-A589-7422A47A8E4A}"/></a:ext></a:extLst></a:theme> \ No newline at end of file
diff --git a/extract/test/column_span_2.pdf.mutool.docx.dir.ref/word/webSettings.xml b/extract/test/column_span_2.pdf.mutool.docx.dir.ref/word/webSettings.xml
new file mode 100644
index 00000000..629ae06a
--- /dev/null
+++ b/extract/test/column_span_2.pdf.mutool.docx.dir.ref/word/webSettings.xml
@@ -0,0 +1,2 @@
+<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
+<w:webSettings xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships" xmlns:w="http://schemas.openxmlformats.org/wordprocessingml/2006/main" xmlns:w14="http://schemas.microsoft.com/office/word/2010/wordml" xmlns:w15="http://schemas.microsoft.com/office/word/2012/wordml" xmlns:w16cex="http://schemas.microsoft.com/office/word/2018/wordml/cex" xmlns:w16cid="http://schemas.microsoft.com/office/word/2016/wordml/cid" xmlns:w16="http://schemas.microsoft.com/office/word/2018/wordml" xmlns:w16se="http://schemas.microsoft.com/office/word/2015/wordml/symex" mc:Ignorable="w14 w15 w16se w16cid w16 w16cex"><w:optimizeForBrowser/><w:allowPNG/></w:webSettings> \ No newline at end of file
diff --git a/extract/test/column_span_2.pdf.mutool.html.ref b/extract/test/column_span_2.pdf.mutool.html.ref
new file mode 100644
index 00000000..7d5a89c3
--- /dev/null
+++ b/extract/test/column_span_2.pdf.mutool.html.ref
@@ -0,0 +1,81 @@
+<html>
+<body>
+
+
+<p><i>The sample size required for each State for various investigations among different target groups of individuals are given below:
+</p></i>
+
+<table border="1" style="border-collapse:collapse">
+ <tr>
+ <td><p><b>Investigations</p></b></td><td><p><b>No. of HHs</p></b></td><td><p><b>Age/Sex/ Physiological Group</p></b></td><td><p><b>Preva lence</p></b></td><td><p><b>C.I*</p></b></td><td><p><b>Relative Precision</p></b></td><td><p><b>Sample size per State</p></b></td>
+ </tr>
+ <tr>
+ <td><p><i>Anthropometry</p></i></td><td rowspan="3"><p><i>2400</p></i></td><td colspan="5" rowspan="3"><p><i> All the available individuals</p></i></td>
+ </tr>
+ <tr>
+ <td><p><i>Clinical Examination</p></i></td>
+ </tr>
+ <tr>
+ <td><p><i>History of morbidity</p></i></td>
+ </tr>
+ <tr>
+ <td><p><i>Diet survey</p></i></td><td><p><i>1200</p></i></td><td colspan="5"><p><i>All the individuals partaking meals in the HH</p></i></td>
+ </tr>
+ <tr>
+ <td rowspan="2"><p><i>Blood Pressure #</p></i></td><td rowspan="2"><p><i>2400</p></i></td><td><p><i>Men (</i>&#x2265;<i> 18yrs)</p></i></td><td rowspan="2"><p><i>10%</p></i></td><td rowspan="2"><p><i>95%</p></i></td><td rowspan="2"><p><i>20%</p></i></td><td><p><i>1728</p></i></td>
+ </tr>
+ <tr>
+ <td><p><i>Women (</i>&#x2265;<i> 18 yrs)</p></i></td><td><p><i>1728</p></i></td>
+ </tr>
+ <tr>
+ <td rowspan="2"><p><i>Fasting blood glucose</p></i></td><td rowspan="2"><p><i>2400</p></i></td><td><p><i>Men (</i>&#x2265;<i> 18 yrs)</p></i></td><td rowspan="2"><p><i>5%</p></i></td><td rowspan="2"><p><i>95%</p></i></td><td rowspan="2"><p><i>20%</p></i></td><td><p><i>1825</p></i></td>
+ </tr>
+ <tr>
+ <td><p><i>Women (</i>&#x2265;<i> 18 yrs)</p></i></td><td><p><i>1825</p></i></td>
+ </tr>
+ <tr>
+ <td rowspan="2"><p><i>Knowledge &amp; Practices on HTN &amp; DM</p></i></td><td><p><i>2400</p></i></td><td><p><i>Men (</i>&#x2265;<i> 18 yrs)</p></i></td><td><p><i>-</p></i></td><td><p><i>-</p></i></td><td><p><i>-</p></i></td><td><p><i>1728</p></i></td>
+ </tr>
+ <tr>
+ <td><p><i>2400</p></i></td><td><p><i>Women (</i>&#x2265;<i> 18 yrs)</p></i></td><td><p><i>-</p></i></td><td><p><i>-</p></i></td><td><p><i>-</p></i></td><td><p><i>1728</p></i></td>
+ </tr>
+</table>
+
+
+
+<p><i>*CI: Confidence Interval # Design effect 2
+</p></i>
+
+<p><b>3.4.2. Measurement of blood pressure
+</p></b>
+
+<p><i>Earlier studies have revealed that the prevalence of hypertension among the rural
+</p></i>
+
+<p><i>3 adults of </i>&#x2265;<i>18 years in the State of Gujarat was 10% which was lowest compared to other NNMB States. Assuming 10% prevalence of hypertension among rural adults, with 95% confidence interval, 20% relative precision and design effect of 2, the sample size computed for each State was 1,728 adults in each gender.
+</p></i>
+
+<p><b>3.4.3. Estimation of fasting blood glucose
+</p></b>
+
+<p><i>Earlier studies have revealed that the overall prevalence of diabetes among the
+</p></i>
+
+<p><i>3 rural adults of </i>&#x2265;<i>18 years was about 5% . Assuming 5% prevalence of diabetes among rural adults, with 95% confidence interval and 20% relative precision, the sample size computed was 1,825 adults in each gender.
+</p></i>
+
+<p><b>3.5. Investigations
+</p></b>
+
+<p><i>The following investigations were carried out in the selected HHs:
+</p></i>
+
+<p><b>3.5.1. Socio-economic and demographic particulars of households
+</p></b>
+
+<p><i>Socioeconomic and demographic particulars, such as age, sex, occupation, annual family income, family size, type of family, literacy level of individuals, information about possession of agricultural land, types of crops raised, their yield during previous year, live stock, type of dwelling, environmental sanitation etc. from all the selected 20 HHs were collected using pre-tested questionnaires.
+</p></i>
+
+<p><i>NNMB 3 Rural-Third Repeat Survey 2011-12
+</p></i></body>
+</html>
diff --git a/extract/test/column_span_2.pdf.mutool.odt.dir.ref/META-INF/manifest.xml b/extract/test/column_span_2.pdf.mutool.odt.dir.ref/META-INF/manifest.xml
new file mode 100644
index 00000000..ec991d79
--- /dev/null
+++ b/extract/test/column_span_2.pdf.mutool.odt.dir.ref/META-INF/manifest.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<manifest:manifest xmlns:manifest="urn:oasis:names:tc:opendocument:xmlns:manifest:1.0" manifest:version="1.3" xmlns:loext="urn:org:documentfoundation:names:experimental:office:xmlns:loext:1.0">
+ <manifest:file-entry manifest:full-path="/" manifest:version="1.3" manifest:media-type="application/vnd.oasis.opendocument.text"/>
+ <manifest:file-entry manifest:full-path="meta.xml" manifest:media-type="text/xml"/>
+ <manifest:file-entry manifest:full-path="settings.xml" manifest:media-type="text/xml"/>
+ <manifest:file-entry manifest:full-path="Configurations2/" manifest:media-type="application/vnd.sun.xml.ui.configuration"/>
+ <manifest:file-entry manifest:full-path="manifest.rdf" manifest:media-type="application/rdf+xml"/>
+ <manifest:file-entry manifest:full-path="styles.xml" manifest:media-type="text/xml"/>
+ <manifest:file-entry manifest:full-path="content.xml" manifest:media-type="text/xml"/>
+ <manifest:file-entry manifest:full-path="Thumbnails/thumbnail.png" manifest:media-type="image/png"/>
+</manifest:manifest> \ No newline at end of file
diff --git a/extract/test/column_span_2.pdf.mutool.odt.dir.ref/Thumbnails/thumbnail.png b/extract/test/column_span_2.pdf.mutool.odt.dir.ref/Thumbnails/thumbnail.png
new file mode 100644
index 00000000..0dd1608e
--- /dev/null
+++ b/extract/test/column_span_2.pdf.mutool.odt.dir.ref/Thumbnails/thumbnail.png
@@ -0,0 +1,2 @@
+PNG
+
diff --git a/extract/test/column_span_2.pdf.mutool.odt.dir.ref/content.xml b/extract/test/column_span_2.pdf.mutool.odt.dir.ref/content.xml
new file mode 100644
index 00000000..9d00aae1
--- /dev/null
+++ b/extract/test/column_span_2.pdf.mutool.odt.dir.ref/content.xml
@@ -0,0 +1,333 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<office:document-content xmlns:css3t="http://www.w3.org/TR/css3-text/" xmlns:grddl="http://www.w3.org/2003/g/data-view#" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xforms="http://www.w3.org/2002/xforms" xmlns:dom="http://www.w3.org/2001/xml-events" xmlns:script="urn:oasis:names:tc:opendocument:xmlns:script:1.0" xmlns:form="urn:oasis:names:tc:opendocument:xmlns:form:1.0" xmlns:math="http://www.w3.org/1998/Math/MathML" xmlns:number="urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0" xmlns:field="urn:openoffice:names:experimental:ooo-ms-interop:xmlns:field:1.0" xmlns:meta="urn:oasis:names:tc:opendocument:xmlns:meta:1.0" xmlns:loext="urn:org:documentfoundation:names:experimental:office:xmlns:loext:1.0" xmlns:officeooo="http://openoffice.org/2009/office" xmlns:table="urn:oasis:names:tc:opendocument:xmlns:table:1.0" xmlns:chart="urn:oasis:names:tc:opendocument:xmlns:chart:1.0" xmlns:tableooo="http://openoffice.org/2009/table" xmlns:draw="urn:oasis:names:tc:opendocument:xmlns:drawing:1.0" xmlns:rpt="http://openoffice.org/2005/report" xmlns:dr3d="urn:oasis:names:tc:opendocument:xmlns:dr3d:1.0" xmlns:of="urn:oasis:names:tc:opendocument:xmlns:of:1.2" xmlns:text="urn:oasis:names:tc:opendocument:xmlns:text:1.0" xmlns:style="urn:oasis:names:tc:opendocument:xmlns:style:1.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:calcext="urn:org:documentfoundation:names:experimental:calc:xmlns:calcext:1.0" xmlns:oooc="http://openoffice.org/2004/calc" xmlns:drawooo="http://openoffice.org/2010/draw" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:ooo="http://openoffice.org/2004/office" xmlns:ooow="http://openoffice.org/2004/writer" xmlns:fo="urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0" xmlns:formx="urn:openoffice:names:experimental:ooxml-odf-interop:xmlns:form:1.0" xmlns:svg="urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0" xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" office:version="1.3"><office:scripts/><office:font-face-decls><style:font-face style:name="Liberation Serif" svg:font-family="&apos;Liberation Serif&apos;" style:font-family-generic="roman" style:font-pitch="variable"/><style:font-face style:name="Liberation Sans" svg:font-family="&apos;Liberation Sans&apos;" style:font-family-generic="swiss" style:font-pitch="variable"/><style:font-face style:name="Unifont" svg:font-family="Unifont" style:font-family-generic="system" style:font-pitch="variable"/></office:font-face-decls><office:automatic-styles><style:style style:name="T17" style:family="text"><style:text-properties style:font-name="Symbol" fo:font-size="11.50pt" fo:font-weight="normal" fo:font-style="normal" /></style:style><style:style style:name="T14" style:family="text"><style:text-properties style:font-name="Symbol" fo:font-size="9.50pt" fo:font-weight="normal" fo:font-style="normal" /></style:style><style:style style:name="T15" style:family="text"><style:text-properties style:font-name="Helvetica-Bold" fo:font-size="11.50pt" fo:font-weight="bold" fo:font-style="normal" /></style:style><style:style style:name="T12" style:family="text"><style:text-properties style:font-name="Helvetica-Bold" fo:font-size="9.50pt" fo:font-weight="bold" fo:font-style="normal" /></style:style><style:style style:name="T11" style:family="text"><style:text-properties style:font-name="Helvetica" fo:font-size="11.50pt" fo:font-weight="normal" fo:font-style="italic" /></style:style><style:style style:name="T18" style:family="text"><style:text-properties style:font-name="Helvetica" fo:font-size="10.00pt" fo:font-weight="normal" fo:font-style="italic" /></style:style><style:style style:name="T13" style:family="text"><style:text-properties style:font-name="Helvetica" fo:font-size="9.50pt" fo:font-weight="normal" fo:font-style="italic" /></style:style><style:style style:name="T16" style:family="text"><style:text-properties style:font-name="Helvetica" fo:font-size="6.70pt" fo:font-weight="normal" fo:font-style="italic" /></style:style><style:style style:name="gr1" style:family="graphic">
+<style:graphic-properties draw:stroke="none" svg:stroke-color="#000000" draw:fill="none" draw:fill-color="#ffffff" fo:min-height="1.9898in" style:run-through="foreground" style:wrap="run-through" style:number-wrapped-paragraphs="no-limit" style:vertical-pos="from-top" style:vertical-rel="paragraph" style:horizontal-pos="from-left" style:horizontal-rel="paragraph" />
+<style:paragraph-properties style:writing-mode="lr-tb"/>
+</style:style>
+<style:style style:name="fr1" style:family="graphic" style:parent-style-name="Graphics">
+<style:graphic-properties fo:margin-left="0in" fo:margin-right="0in" fo:margin-top="0in" fo:margin-bottom="0in" style:vertical-pos="top" style:vertical-rel="baseline" fo:background-color="transparent" draw:fill="none" draw:fill-color="#ffffff" fo:padding="0in" fo:border="none" style:mirror="none" fo:clip="rect(0in, 0in, 0in, 0in)" draw:luminance="0%" draw:contrast="0%" draw:red="0%" draw:green="0%" draw:blue="0%" draw:gamma="100%" draw:color-inversion="false" draw:image-opacity="100%" draw:color-mode="standard"/>
+</style:style>
+</office:automatic-styles>
+<style:style style:name="extract.table" style:family="table"/>
+<style:style style:name="extract.table.column" style:family="table-column"/>
+<office:body><office:text><text:sequence-decls><text:sequence-decl text:display-outline-level="0" text:name="Illustration"/><text:sequence-decl text:display-outline-level="0" text:name="Table"/><text:sequence-decl text:display-outline-level="0" text:name="Text"/><text:sequence-decl text:display-outline-level="0" text:name="Drawing"/><text:sequence-decl text:display-outline-level="0" text:name="Figure"/></text:sequence-decls><text:p text:style-name="Standard"/>
+
+<text:p><text:span text:style-name="T11">The sample size required for each State for various investigations among different target groups of individuals are given below:</text:span></text:p>
+ <table:table text:style-name="extract.table" table:name="extract.table.1">
+ <table:table-columns>
+ <table:table-column table:style-name="extract.table.column"/>
+ <table:table-column table:style-name="extract.table.column"/>
+ <table:table-column table:style-name="extract.table.column"/>
+ <table:table-column table:style-name="extract.table.column"/>
+ <table:table-column table:style-name="extract.table.column"/>
+ <table:table-column table:style-name="extract.table.column"/>
+ <table:table-column table:style-name="extract.table.column"/>
+ </table:table-columns>
+ <table:table-row>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T12">Investigations</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T12">No. of HHs</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T12">Age/Sex/Physiological Group</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T12">Prevalence</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T12">C.I*</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T12">Relative Precision</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T12">Sample size per State</text:span></text:p>
+ </table:table-cell>
+ </table:table-row>
+ <table:table-row>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">Anthropometry</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell table:number-rows-spanned="3">
+
+
+<text:p><text:span text:style-name="T13">2400</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell table:number-columns-spanned="5" table:number-rows-spanned="3">
+
+
+<text:p><text:span text:style-name="T13"> All the available individuals</text:span></text:p>
+ </table:table-cell>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ </table:table-row>
+ <table:table-row>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">Clinical Examination</text:span></text:p>
+ </table:table-cell>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ </table:table-row>
+ <table:table-row>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">History of morbidity</text:span></text:p>
+ </table:table-cell>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ </table:table-row>
+ <table:table-row>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">Diet survey</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">1200</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell table:number-columns-spanned="5">
+
+
+<text:p><text:span text:style-name="T13">All the individuals partaking meals in the HH</text:span></text:p>
+ </table:table-cell>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ </table:table-row>
+ <table:table-row>
+ <table:table-cell table:number-rows-spanned="2">
+
+
+<text:p><text:span text:style-name="T13">Blood Pressure #</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell table:number-rows-spanned="2">
+
+
+<text:p><text:span text:style-name="T13">2400</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">Men (</text:span><text:span text:style-name="T14">&#x2265;</text:span><text:span text:style-name="T13"> 18yrs)</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell table:number-rows-spanned="2">
+
+
+<text:p><text:span text:style-name="T13">10%</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell table:number-rows-spanned="2">
+
+
+<text:p><text:span text:style-name="T13">95%</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell table:number-rows-spanned="2">
+
+
+<text:p><text:span text:style-name="T13">20%</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">1728</text:span></text:p>
+ </table:table-cell>
+ </table:table-row>
+ <table:table-row>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">Women (</text:span><text:span text:style-name="T14">&#x2265;</text:span><text:span text:style-name="T13"> 18 yrs)</text:span></text:p>
+ </table:table-cell>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">1728</text:span></text:p>
+ </table:table-cell>
+ </table:table-row>
+ <table:table-row>
+ <table:table-cell table:number-rows-spanned="2">
+
+
+<text:p><text:span text:style-name="T13">Fasting blood glucose</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell table:number-rows-spanned="2">
+
+
+<text:p><text:span text:style-name="T13">2400</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">Men (</text:span><text:span text:style-name="T14">&#x2265;</text:span><text:span text:style-name="T13"> 18 yrs)</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell table:number-rows-spanned="2">
+
+
+<text:p><text:span text:style-name="T13">5%</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell table:number-rows-spanned="2">
+
+
+<text:p><text:span text:style-name="T13">95%</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell table:number-rows-spanned="2">
+
+
+<text:p><text:span text:style-name="T13">20%</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">1825</text:span></text:p>
+ </table:table-cell>
+ </table:table-row>
+ <table:table-row>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">Women (</text:span><text:span text:style-name="T14">&#x2265;</text:span><text:span text:style-name="T13"> 18 yrs)</text:span></text:p>
+ </table:table-cell>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">1825</text:span></text:p>
+ </table:table-cell>
+ </table:table-row>
+ <table:table-row>
+ <table:table-cell table:number-rows-spanned="2">
+
+
+<text:p><text:span text:style-name="T13">Knowledge &amp; Practices on HTN &amp; DM</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">2400</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">Men (</text:span><text:span text:style-name="T14">&#x2265;</text:span><text:span text:style-name="T13"> 18 yrs)</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13"></text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13"></text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13"></text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">1728</text:span></text:p>
+ </table:table-cell>
+ </table:table-row>
+ <table:table-row>
+ <table:covered-table-cell/>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">2400</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">Women (</text:span><text:span text:style-name="T14">&#x2265;</text:span><text:span text:style-name="T13"> 18 yrs)</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13"></text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13"></text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13"></text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">1728</text:span></text:p>
+ </table:table-cell>
+ </table:table-row>
+ </table:table>
+
+
+<text:p><text:span text:style-name="T13">*CI: Confidence Interval # Design effect 2</text:span></text:p>
+
+<text:p><text:span text:style-name="T15">3.4.2. Measurement of blood pressure</text:span></text:p>
+
+<text:p><text:span text:style-name="T11">Earlier studies have revealed that the prevalence of hypertension among the rural</text:span></text:p>
+
+<text:p><text:span text:style-name="T16">3 </text:span><text:span text:style-name="T11">adults of </text:span><text:span text:style-name="T17">&#x2265;</text:span><text:span text:style-name="T11">18 years in the State of Gujarat was 10% which was lowest compared to other NNMB States. Assuming 10% prevalence of hypertension among rural adults, with 95% confidence interval, 20% relative precision and design effect of 2, the sample size computed for each State was 1,728 adults in each gender.</text:span></text:p>
+
+<text:p><text:span text:style-name="T15">3.4.3. Estimation of fasting blood glucose</text:span></text:p>
+
+<text:p><text:span text:style-name="T11">Earlier studies have revealed that the overall prevalence of diabetes among the</text:span></text:p>
+
+<text:p><text:span text:style-name="T16">3 </text:span><text:span text:style-name="T11">rural adults of </text:span><text:span text:style-name="T17">&#x2265;</text:span><text:span text:style-name="T11">18 years was about 5% . Assuming 5% prevalence of diabetes among rural adults, with 95% confidence interval and 20% relative precision, the sample size computed was 1,825 adults in each gender.</text:span></text:p>
+
+<text:p><text:span text:style-name="T15">3.5. Investigations</text:span></text:p>
+
+<text:p><text:span text:style-name="T11">The following investigations were carried out in the selected HHs:</text:span></text:p>
+
+<text:p><text:span text:style-name="T15">3.5.1. Socioeconomic and demographic particulars of households</text:span></text:p>
+
+<text:p><text:span text:style-name="T11">Socioeconomic and demographic particulars, such as age, sex, occupation, annual family income, family size, type of family, literacy level of individuals, information about possession of agricultural land, types of crops raised, their yield during previous year, live stock, type of dwelling, environmental sanitation etc. from all the selected 20 HHs were collected using pretested questionnaires.</text:span></text:p>
+
+<text:p><text:span text:style-name="T18">NNMB 3 RuralThird Repeat Survey 201112</text:span></text:p></office:text></office:body></office:document-content> \ No newline at end of file
diff --git a/extract/test/column_span_2.pdf.mutool.odt.dir.ref/manifest.rdf b/extract/test/column_span_2.pdf.mutool.odt.dir.ref/manifest.rdf
new file mode 100644
index 00000000..927e206b
--- /dev/null
+++ b/extract/test/column_span_2.pdf.mutool.odt.dir.ref/manifest.rdf
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="utf-8"?>
+<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
+ <rdf:Description rdf:about="styles.xml">
+ <rdf:type rdf:resource="http://docs.oasis-open.org/ns/office/1.2/meta/odf#StylesFile"/>
+ </rdf:Description>
+ <rdf:Description rdf:about="">
+ <ns0:hasPart xmlns:ns0="http://docs.oasis-open.org/ns/office/1.2/meta/pkg#" rdf:resource="styles.xml"/>
+ </rdf:Description>
+ <rdf:Description rdf:about="content.xml">
+ <rdf:type rdf:resource="http://docs.oasis-open.org/ns/office/1.2/meta/odf#ContentFile"/>
+ </rdf:Description>
+ <rdf:Description rdf:about="">
+ <ns0:hasPart xmlns:ns0="http://docs.oasis-open.org/ns/office/1.2/meta/pkg#" rdf:resource="content.xml"/>
+ </rdf:Description>
+ <rdf:Description rdf:about="">
+ <rdf:type rdf:resource="http://docs.oasis-open.org/ns/office/1.2/meta/pkg#Document"/>
+ </rdf:Description>
+</rdf:RDF>
diff --git a/extract/test/column_span_2.pdf.mutool.odt.dir.ref/meta.xml b/extract/test/column_span_2.pdf.mutool.odt.dir.ref/meta.xml
new file mode 100644
index 00000000..6b42561e
--- /dev/null
+++ b/extract/test/column_span_2.pdf.mutool.odt.dir.ref/meta.xml
@@ -0,0 +1,2 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<office:document-meta xmlns:grddl="http://www.w3.org/2003/g/data-view#" xmlns:meta="urn:oasis:names:tc:opendocument:xmlns:meta:1.0" xmlns:ooo="http://openoffice.org/2004/office" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" office:version="1.3"><office:meta><meta:creation-date>2021-04-05T17:06:57.937137058</meta:creation-date><meta:generator>LibreOffice/7.0.1.2$OpenBSD_X86_64 LibreOffice_project/00$Build-2</meta:generator><dc:date>2021-04-06T17:14:51.409959656</dc:date><meta:editing-duration>PT20S</meta:editing-duration><meta:editing-cycles>1</meta:editing-cycles><meta:document-statistic meta:table-count="0" meta:image-count="0" meta:object-count="0" meta:page-count="1" meta:paragraph-count="0" meta:word-count="0" meta:character-count="0" meta:non-whitespace-character-count="0"/></office:meta></office:document-meta> \ No newline at end of file
diff --git a/extract/test/column_span_2.pdf.mutool.odt.dir.ref/mimetype b/extract/test/column_span_2.pdf.mutool.odt.dir.ref/mimetype
new file mode 100644
index 00000000..2e95b81c
--- /dev/null
+++ b/extract/test/column_span_2.pdf.mutool.odt.dir.ref/mimetype
@@ -0,0 +1 @@
+application/vnd.oasis.opendocument.text \ No newline at end of file
diff --git a/extract/test/column_span_2.pdf.mutool.odt.dir.ref/settings.xml b/extract/test/column_span_2.pdf.mutool.odt.dir.ref/settings.xml
new file mode 100644
index 00000000..35a8138f
--- /dev/null
+++ b/extract/test/column_span_2.pdf.mutool.odt.dir.ref/settings.xml
@@ -0,0 +1,2 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<office:document-settings xmlns:config="urn:oasis:names:tc:opendocument:xmlns:config:1.0" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:ooo="http://openoffice.org/2004/office" xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" office:version="1.3"><office:settings><config:config-item-set config:name="ooo:view-settings"><config:config-item config:name="ViewAreaTop" config:type="long">0</config:config-item><config:config-item config:name="ViewAreaLeft" config:type="long">0</config:config-item><config:config-item config:name="ViewAreaWidth" config:type="long">26275</config:config-item><config:config-item config:name="ViewAreaHeight" config:type="long">19502</config:config-item><config:config-item config:name="ShowRedlineChanges" config:type="boolean">true</config:config-item><config:config-item config:name="InBrowseMode" config:type="boolean">false</config:config-item><config:config-item-map-indexed config:name="Views"><config:config-item-map-entry><config:config-item config:name="ViewId" config:type="string">view2</config:config-item><config:config-item config:name="ViewLeft" config:type="long">4343</config:config-item><config:config-item config:name="ViewTop" config:type="long">2501</config:config-item><config:config-item config:name="VisibleLeft" config:type="long">0</config:config-item><config:config-item config:name="VisibleTop" config:type="long">0</config:config-item><config:config-item config:name="VisibleRight" config:type="long">26273</config:config-item><config:config-item config:name="VisibleBottom" config:type="long">19500</config:config-item><config:config-item config:name="ZoomType" config:type="short">0</config:config-item><config:config-item config:name="ViewLayoutColumns" config:type="short">1</config:config-item><config:config-item config:name="ViewLayoutBookMode" config:type="boolean">false</config:config-item><config:config-item config:name="ZoomFactor" config:type="short">100</config:config-item><config:config-item config:name="IsSelectedFrame" config:type="boolean">false</config:config-item><config:config-item config:name="AnchoredTextOverflowLegacy" config:type="boolean">false</config:config-item></config:config-item-map-entry></config:config-item-map-indexed></config:config-item-set><config:config-item-set config:name="ooo:configuration-settings"><config:config-item config:name="PrintBlackFonts" config:type="boolean">false</config:config-item><config:config-item config:name="PrintReversed" config:type="boolean">false</config:config-item><config:config-item config:name="SaveThumbnail" config:type="boolean">true</config:config-item><config:config-item config:name="EmbedFonts" config:type="boolean">false</config:config-item><config:config-item config:name="PrintControls" config:type="boolean">true</config:config-item><config:config-item config:name="OutlineLevelYieldsNumbering" config:type="boolean">false</config:config-item><config:config-item config:name="PrintPageBackground" config:type="boolean">true</config:config-item><config:config-item config:name="PrintAnnotationMode" config:type="short">0</config:config-item><config:config-item config:name="PrintGraphics" config:type="boolean">true</config:config-item><config:config-item config:name="EmbeddedDatabaseName" config:type="string"/><config:config-item config:name="ProtectForm" config:type="boolean">false</config:config-item><config:config-item config:name="PrintLeftPages" config:type="boolean">true</config:config-item><config:config-item config:name="PrintProspect" config:type="boolean">false</config:config-item><config:config-item config:name="PrintHiddenText" config:type="boolean">false</config:config-item><config:config-item config:name="PrintRightPages" config:type="boolean">true</config:config-item><config:config-item config:name="PrintFaxName" config:type="string"/><config:config-item config:name="PrintPaperFromSetup" config:type="boolean">false</config:config-item><config:config-item config:name="TabsRelativeToIndent" config:type="boolean">true</config:config-item><config:config-item config:name="RedlineProtectionKey" config:type="base64Binary"/><config:config-item config:name="PrintTextPlaceholder" config:type="boolean">false</config:config-item><config:config-item config:name="MathBaselineAlignment" config:type="boolean">true</config:config-item><config:config-item config:name="ProtectBookmarks" config:type="boolean">false</config:config-item><config:config-item config:name="IgnoreTabsAndBlanksForLineCalculation" config:type="boolean">false</config:config-item><config:config-item config:name="ContinuousEndnotes" config:type="boolean">false</config:config-item><config:config-item config:name="FieldAutoUpdate" config:type="boolean">true</config:config-item><config:config-item config:name="EmptyDbFieldHidesPara" config:type="boolean">true</config:config-item><config:config-item config:name="ApplyParagraphMarkFormatToNumbering" config:type="boolean">false</config:config-item><config:config-item config:name="PrintEmptyPages" config:type="boolean">true</config:config-item><config:config-item config:name="TabOverMargin" config:type="boolean">false</config:config-item><config:config-item config:name="EmbedAsianScriptFonts" config:type="boolean">true</config:config-item><config:config-item config:name="EmbedLatinScriptFonts" config:type="boolean">true</config:config-item><config:config-item config:name="DisableOffPagePositioning" config:type="boolean">false</config:config-item><config:config-item config:name="EmbedOnlyUsedFonts" config:type="boolean">false</config:config-item><config:config-item config:name="MsWordCompMinLineHeightByFly" config:type="boolean">false</config:config-item><config:config-item config:name="SurroundTextWrapSmall" config:type="boolean">false</config:config-item><config:config-item config:name="BackgroundParaOverDrawings" config:type="boolean">false</config:config-item><config:config-item config:name="ClippedPictures" config:type="boolean">false</config:config-item><config:config-item config:name="FloattableNomargins" config:type="boolean">false</config:config-item><config:config-item config:name="UnbreakableNumberings" config:type="boolean">false</config:config-item><config:config-item config:name="EmbedSystemFonts" config:type="boolean">false</config:config-item><config:config-item config:name="TabOverflow" config:type="boolean">true</config:config-item><config:config-item config:name="PrintTables" config:type="boolean">true</config:config-item><config:config-item config:name="PrintDrawings" config:type="boolean">true</config:config-item><config:config-item config:name="ConsiderTextWrapOnObjPos" config:type="boolean">false</config:config-item><config:config-item config:name="PrintSingleJobs" config:type="boolean">false</config:config-item><config:config-item config:name="SmallCapsPercentage66" config:type="boolean">false</config:config-item><config:config-item config:name="CollapseEmptyCellPara" config:type="boolean">true</config:config-item><config:config-item config:name="HeaderSpacingBelowLastPara" config:type="boolean">false</config:config-item><config:config-item config:name="RsidRoot" config:type="int">2052946</config:config-item><config:config-item config:name="PrinterSetup" config:type="base64Binary"/><config:config-item config:name="CurrentDatabaseCommand" config:type="string"/><config:config-item config:name="AlignTabStopPosition" config:type="boolean">true</config:config-item><config:config-item config:name="ClipAsCharacterAnchoredWriterFlyFrames" config:type="boolean">false</config:config-item><config:config-item config:name="DoNotCaptureDrawObjsOnPage" config:type="boolean">false</config:config-item><config:config-item config:name="SaveGlobalDocumentLinks" config:type="boolean">false</config:config-item><config:config-item config:name="CurrentDatabaseCommandType" config:type="int">0</config:config-item><config:config-item config:name="LoadReadonly" config:type="boolean">false</config:config-item><config:config-item config:name="DoNotResetParaAttrsForNumFont" config:type="boolean">false</config:config-item><config:config-item config:name="StylesNoDefault" config:type="boolean">false</config:config-item><config:config-item config:name="LinkUpdateMode" config:type="short">1</config:config-item><config:config-item config:name="DoNotJustifyLinesWithManualBreak" config:type="boolean">false</config:config-item><config:config-item config:name="PropLineSpacingShrinksFirstLine" config:type="boolean">true</config:config-item><config:config-item config:name="TabAtLeftIndentForParagraphsInList" config:type="boolean">false</config:config-item><config:config-item config:name="ProtectFields" config:type="boolean">false</config:config-item><config:config-item config:name="UnxForceZeroExtLeading" config:type="boolean">false</config:config-item><config:config-item config:name="CurrentDatabaseDataSource" config:type="string"/><config:config-item config:name="UseFormerTextWrapping" config:type="boolean">false</config:config-item><config:config-item config:name="UseFormerLineSpacing" config:type="boolean">false</config:config-item><config:config-item config:name="AllowPrintJobCancel" config:type="boolean">true</config:config-item><config:config-item config:name="SubtractFlysAnchoredAtFlys" config:type="boolean">false</config:config-item><config:config-item config:name="AddParaSpacingToTableCells" config:type="boolean">true</config:config-item><config:config-item config:name="AddExternalLeading" config:type="boolean">true</config:config-item><config:config-item config:name="Rsid" config:type="int">2178852</config:config-item><config:config-item config:name="AddVerticalFrameOffsets" config:type="boolean">false</config:config-item><config:config-item config:name="TreatSingleColumnBreakAsPageBreak" config:type="boolean">false</config:config-item><config:config-item config:name="AddFrameOffsets" config:type="boolean">false</config:config-item><config:config-item config:name="IsLabelDocument" config:type="boolean">false</config:config-item><config:config-item config:name="MsWordCompTrailingBlanks" config:type="boolean">false</config:config-item><config:config-item config:name="PrinterPaperFromSetup" config:type="boolean">false</config:config-item><config:config-item config:name="IgnoreFirstLineIndentInNumbering" config:type="boolean">false</config:config-item><config:config-item config:name="PrinterName" config:type="string"/><config:config-item config:name="IsKernAsianPunctuation" config:type="boolean">false</config:config-item><config:config-item config:name="PrinterIndependentLayout" config:type="string">high-resolution</config:config-item><config:config-item config:name="TableRowKeep" config:type="boolean">false</config:config-item><config:config-item config:name="UpdateFromTemplate" config:type="boolean">true</config:config-item><config:config-item config:name="EmbedComplexScriptFonts" config:type="boolean">true</config:config-item><config:config-item config:name="UseOldPrinterMetrics" config:type="boolean">false</config:config-item><config:config-item config:name="InvertBorderSpacing" config:type="boolean">false</config:config-item><config:config-item config:name="PrintProspectRTL" config:type="boolean">false</config:config-item><config:config-item config:name="ApplyUserData" config:type="boolean">true</config:config-item><config:config-item config:name="AddParaTableSpacingAtStart" config:type="boolean">true</config:config-item><config:config-item config:name="SaveVersionOnClose" config:type="boolean">false</config:config-item><config:config-item config:name="CharacterCompressionType" config:type="short">0</config:config-item><config:config-item config:name="UseOldNumbering" config:type="boolean">false</config:config-item><config:config-item config:name="UseFormerObjectPositioning" config:type="boolean">false</config:config-item><config:config-item config:name="ChartAutoUpdate" config:type="boolean">true</config:config-item><config:config-item config:name="AddParaTableSpacing" config:type="boolean">true</config:config-item></config:config-item-set></office:settings></office:document-settings> \ No newline at end of file
diff --git a/extract/test/column_span_2.pdf.mutool.odt.dir.ref/styles.xml b/extract/test/column_span_2.pdf.mutool.odt.dir.ref/styles.xml
new file mode 100644
index 00000000..91403c4e
--- /dev/null
+++ b/extract/test/column_span_2.pdf.mutool.odt.dir.ref/styles.xml
@@ -0,0 +1,2 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<office:document-styles xmlns:css3t="http://www.w3.org/TR/css3-text/" xmlns:grddl="http://www.w3.org/2003/g/data-view#" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:dom="http://www.w3.org/2001/xml-events" xmlns:script="urn:oasis:names:tc:opendocument:xmlns:script:1.0" xmlns:form="urn:oasis:names:tc:opendocument:xmlns:form:1.0" xmlns:math="http://www.w3.org/1998/Math/MathML" xmlns:number="urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0" xmlns:field="urn:openoffice:names:experimental:ooo-ms-interop:xmlns:field:1.0" xmlns:meta="urn:oasis:names:tc:opendocument:xmlns:meta:1.0" xmlns:loext="urn:org:documentfoundation:names:experimental:office:xmlns:loext:1.0" xmlns:officeooo="http://openoffice.org/2009/office" xmlns:table="urn:oasis:names:tc:opendocument:xmlns:table:1.0" xmlns:chart="urn:oasis:names:tc:opendocument:xmlns:chart:1.0" xmlns:tableooo="http://openoffice.org/2009/table" xmlns:draw="urn:oasis:names:tc:opendocument:xmlns:drawing:1.0" xmlns:rpt="http://openoffice.org/2005/report" xmlns:dr3d="urn:oasis:names:tc:opendocument:xmlns:dr3d:1.0" xmlns:of="urn:oasis:names:tc:opendocument:xmlns:of:1.2" xmlns:text="urn:oasis:names:tc:opendocument:xmlns:text:1.0" xmlns:style="urn:oasis:names:tc:opendocument:xmlns:style:1.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:calcext="urn:org:documentfoundation:names:experimental:calc:xmlns:calcext:1.0" xmlns:oooc="http://openoffice.org/2004/calc" xmlns:drawooo="http://openoffice.org/2010/draw" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:ooo="http://openoffice.org/2004/office" xmlns:ooow="http://openoffice.org/2004/writer" xmlns:fo="urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0" xmlns:svg="urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0" xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" office:version="1.3"><office:font-face-decls><style:font-face style:name="Liberation Serif" svg:font-family="&apos;Liberation Serif&apos;" style:font-family-generic="roman" style:font-pitch="variable"/><style:font-face style:name="Liberation Sans" svg:font-family="&apos;Liberation Sans&apos;" style:font-family-generic="swiss" style:font-pitch="variable"/><style:font-face style:name="Unifont" svg:font-family="Unifont" style:font-family-generic="system" style:font-pitch="variable"/></office:font-face-decls><office:styles><style:default-style style:family="graphic"><style:graphic-properties svg:stroke-color="#3465a4" draw:fill-color="#729fcf" fo:wrap-option="no-wrap" draw:shadow-offset-x="0.1181in" draw:shadow-offset-y="0.1181in" draw:start-line-spacing-horizontal="0.1114in" draw:start-line-spacing-vertical="0.1114in" draw:end-line-spacing-horizontal="0.1114in" draw:end-line-spacing-vertical="0.1114in" style:flow-with-text="false"/><style:paragraph-properties style:text-autospace="ideograph-alpha" style:line-break="strict" style:font-independent-line-spacing="false"><style:tab-stops/></style:paragraph-properties><style:text-properties style:use-window-font-color="true" loext:opacity="0%" style:font-name="Liberation Serif" fo:font-size="12pt" fo:language="en" fo:country="US" style:letter-kerning="true" style:font-name-asian="Unifont" style:font-size-asian="10.5pt" style:language-asian="zh" style:country-asian="CN" style:font-name-complex="Unifont" style:font-size-complex="12pt" style:language-complex="hi" style:country-complex="IN"/></style:default-style><style:default-style style:family="paragraph"><style:paragraph-properties fo:orphans="2" fo:widows="2" fo:hyphenation-ladder-count="no-limit" style:text-autospace="ideograph-alpha" style:punctuation-wrap="hanging" style:line-break="strict" style:tab-stop-distance="0.4925in" style:writing-mode="page"/><style:text-properties style:use-window-font-color="true" loext:opacity="0%" style:font-name="Liberation Serif" fo:font-size="12pt" fo:language="en" fo:country="US" style:letter-kerning="true" style:font-name-asian="Unifont" style:font-size-asian="10.5pt" style:language-asian="zh" style:country-asian="CN" style:font-name-complex="Unifont" style:font-size-complex="12pt" style:language-complex="hi" style:country-complex="IN" fo:hyphenate="false" fo:hyphenation-remain-char-count="2" fo:hyphenation-push-char-count="2" loext:hyphenation-no-caps="false"/></style:default-style><style:default-style style:family="table"><style:table-properties table:border-model="collapsing"/></style:default-style><style:default-style style:family="table-row"><style:table-row-properties fo:keep-together="auto"/></style:default-style><style:style style:name="Standard" style:family="paragraph" style:class="text"><style:paragraph-properties fo:margin-top="0in" fo:margin-bottom="0.0799in" style:contextual-spacing="false"/></style:style><style:style style:name="Heading" style:family="paragraph" style:parent-style-name="Standard" style:next-style-name="Text_20_body" style:class="text"><style:paragraph-properties fo:margin-top="0.1665in" fo:margin-bottom="0.0835in" style:contextual-spacing="false" fo:keep-with-next="always"/><style:text-properties style:font-name="Liberation Sans" fo:font-family="&apos;Liberation Sans&apos;" style:font-family-generic="swiss" style:font-pitch="variable" fo:font-size="14pt" style:font-name-asian="Unifont" style:font-family-asian="Unifont" style:font-family-generic-asian="system" style:font-pitch-asian="variable" style:font-size-asian="14pt" style:font-name-complex="Unifont" style:font-family-complex="Unifont" style:font-family-generic-complex="system" style:font-pitch-complex="variable" style:font-size-complex="14pt"/></style:style><style:style style:name="Text_20_body" style:display-name="Text body" style:family="paragraph" style:parent-style-name="Standard" style:class="text"><style:paragraph-properties fo:margin-top="0in" fo:margin-bottom="0.0972in" style:contextual-spacing="false" fo:line-height="115%"/></style:style><style:style style:name="List" style:family="paragraph" style:parent-style-name="Text_20_body" style:class="list"><style:text-properties style:font-size-asian="12pt"/></style:style><style:style style:name="Caption" style:family="paragraph" style:parent-style-name="Standard" style:class="extra"><style:paragraph-properties fo:margin-top="0.0835in" fo:margin-bottom="0.0835in" style:contextual-spacing="false" text:number-lines="false" text:line-number="0"/><style:text-properties fo:font-size="12pt" fo:font-style="italic" style:font-size-asian="12pt" style:font-style-asian="italic" style:font-size-complex="12pt" style:font-style-complex="italic"/></style:style><style:style style:name="Index" style:family="paragraph" style:parent-style-name="Standard" style:class="index"><style:paragraph-properties text:number-lines="false" text:line-number="0"/><style:text-properties style:font-size-asian="12pt"/></style:style><text:outline-style style:name="Outline"><text:outline-level-style text:level="1" style:num-format=""><style:list-level-properties text:list-level-position-and-space-mode="label-alignment"><style:list-level-label-alignment text:label-followed-by="listtab"/></style:list-level-properties></text:outline-level-style><text:outline-level-style text:level="2" style:num-format=""><style:list-level-properties text:list-level-position-and-space-mode="label-alignment"><style:list-level-label-alignment text:label-followed-by="listtab"/></style:list-level-properties></text:outline-level-style><text:outline-level-style text:level="3" style:num-format=""><style:list-level-properties text:list-level-position-and-space-mode="label-alignment"><style:list-level-label-alignment text:label-followed-by="listtab"/></style:list-level-properties></text:outline-level-style><text:outline-level-style text:level="4" style:num-format=""><style:list-level-properties text:list-level-position-and-space-mode="label-alignment"><style:list-level-label-alignment text:label-followed-by="listtab"/></style:list-level-properties></text:outline-level-style><text:outline-level-style text:level="5" style:num-format=""><style:list-level-properties text:list-level-position-and-space-mode="label-alignment"><style:list-level-label-alignment text:label-followed-by="listtab"/></style:list-level-properties></text:outline-level-style><text:outline-level-style text:level="6" style:num-format=""><style:list-level-properties text:list-level-position-and-space-mode="label-alignment"><style:list-level-label-alignment text:label-followed-by="listtab"/></style:list-level-properties></text:outline-level-style><text:outline-level-style text:level="7" style:num-format=""><style:list-level-properties text:list-level-position-and-space-mode="label-alignment"><style:list-level-label-alignment text:label-followed-by="listtab"/></style:list-level-properties></text:outline-level-style><text:outline-level-style text:level="8" style:num-format=""><style:list-level-properties text:list-level-position-and-space-mode="label-alignment"><style:list-level-label-alignment text:label-followed-by="listtab"/></style:list-level-properties></text:outline-level-style><text:outline-level-style text:level="9" style:num-format=""><style:list-level-properties text:list-level-position-and-space-mode="label-alignment"><style:list-level-label-alignment text:label-followed-by="listtab"/></style:list-level-properties></text:outline-level-style><text:outline-level-style text:level="10" style:num-format=""><style:list-level-properties text:list-level-position-and-space-mode="label-alignment"><style:list-level-label-alignment text:label-followed-by="listtab"/></style:list-level-properties></text:outline-level-style></text:outline-style><text:notes-configuration text:note-class="footnote" style:num-format="1" text:start-value="0" text:footnotes-position="page" text:start-numbering-at="document"/><text:notes-configuration text:note-class="endnote" style:num-format="i" text:start-value="0"/><text:linenumbering-configuration text:number-lines="false" text:offset="0.1965in" style:num-format="1" text:number-position="left" text:increment="5"/></office:styles><office:automatic-styles><style:page-layout style:name="Mpm1"><style:page-layout-properties fo:page-width="8.5in" fo:page-height="11in" style:num-format="1" style:print-orientation="portrait" fo:margin-top="0.7874in" fo:margin-bottom="0.7874in" fo:margin-left="0.7874in" fo:margin-right="0.7874in" style:writing-mode="lr-tb" style:layout-grid-color="#c0c0c0" style:layout-grid-lines="20" style:layout-grid-base-height="0.278in" style:layout-grid-ruby-height="0.139in" style:layout-grid-mode="none" style:layout-grid-ruby-below="false" style:layout-grid-print="false" style:layout-grid-display="false" style:footnote-max-height="0in"><style:footnote-sep style:width="0.0071in" style:distance-before-sep="0.0398in" style:distance-after-sep="0.0398in" style:line-style="solid" style:adjustment="left" style:rel-width="25%" style:color="#000000"/></style:page-layout-properties><style:header-style/><style:footer-style/></style:page-layout></office:automatic-styles><office:master-styles><style:master-page style:name="Standard" style:page-layout-name="Mpm1"/></office:master-styles></office:document-styles> \ No newline at end of file
diff --git a/extract/test/electoral_roll.pdf b/extract/test/electoral_roll.pdf
new file mode 100755
index 00000000..384b496d
--- /dev/null
+++ b/extract/test/electoral_roll.pdf
Binary files differ
diff --git a/extract/test/electoral_roll.pdf.mutool-0.csv.ref b/extract/test/electoral_roll.pdf.mutool-0.csv.ref
new file mode 100644
index 00000000..3c66905a
--- /dev/null
+++ b/extract/test/electoral_roll.pdf.mutool-0.csv.ref
@@ -0,0 +1,2 @@
+" 1","Sex : MaleNEL0000001n Doe","","",""," 2","5 Sex : MaleNEL0000002 Doe","","",""," 3","5 Sex : MaleNEL0000003 Doe","",""
+"Name : Father&apos;s : Name 0JohHouse No : Age : 55","","","","","Name : Father&apos;s : Name 1 House No :JohnAge : 63","","","","","Name : Father&apos;s : Name 1 House No :JohnAge : 33","","",""
diff --git a/extract/test/electoral_roll.pdf.mutool.docx.dir.ref/[Content_Types].xml b/extract/test/electoral_roll.pdf.mutool.docx.dir.ref/[Content_Types].xml
new file mode 100644
index 00000000..07d88cca
--- /dev/null
+++ b/extract/test/electoral_roll.pdf.mutool.docx.dir.ref/[Content_Types].xml
@@ -0,0 +1,2 @@
+<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
+<Types xmlns="http://schemas.openxmlformats.org/package/2006/content-types"><Default Extension="rels" ContentType="application/vnd.openxmlformats-package.relationships+xml"/><Default Extension="xml" ContentType="application/xml"/><Override PartName="/word/document.xml" ContentType="application/vnd.openxmlformats-officedocument.wordprocessingml.document.main+xml"/><Override PartName="/word/styles.xml" ContentType="application/vnd.openxmlformats-officedocument.wordprocessingml.styles+xml"/><Override PartName="/word/settings.xml" ContentType="application/vnd.openxmlformats-officedocument.wordprocessingml.settings+xml"/><Override PartName="/word/webSettings.xml" ContentType="application/vnd.openxmlformats-officedocument.wordprocessingml.webSettings+xml"/><Override PartName="/word/fontTable.xml" ContentType="application/vnd.openxmlformats-officedocument.wordprocessingml.fontTable+xml"/><Override PartName="/word/theme/theme1.xml" ContentType="application/vnd.openxmlformats-officedocument.theme+xml"/><Override PartName="/docProps/core.xml" ContentType="application/vnd.openxmlformats-package.core-properties+xml"/><Override PartName="/docProps/app.xml" ContentType="application/vnd.openxmlformats-officedocument.extended-properties+xml"/></Types> \ No newline at end of file
diff --git a/extract/test/electoral_roll.pdf.mutool.docx.dir.ref/_rels/.rels b/extract/test/electoral_roll.pdf.mutool.docx.dir.ref/_rels/.rels
new file mode 100644
index 00000000..32548d42
--- /dev/null
+++ b/extract/test/electoral_roll.pdf.mutool.docx.dir.ref/_rels/.rels
@@ -0,0 +1,2 @@
+<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
+<Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships"><Relationship Id="rId3" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties" Target="docProps/app.xml"/><Relationship Id="rId2" Type="http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties" Target="docProps/core.xml"/><Relationship Id="rId1" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument" Target="word/document.xml"/></Relationships> \ No newline at end of file
diff --git a/extract/test/electoral_roll.pdf.mutool.docx.dir.ref/docProps/app.xml b/extract/test/electoral_roll.pdf.mutool.docx.dir.ref/docProps/app.xml
new file mode 100644
index 00000000..eb8dd2e5
--- /dev/null
+++ b/extract/test/electoral_roll.pdf.mutool.docx.dir.ref/docProps/app.xml
@@ -0,0 +1,2 @@
+<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
+<Properties xmlns="http://schemas.openxmlformats.org/officeDocument/2006/extended-properties" xmlns:vt="http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes"><Template>Normal.dotm</Template><TotalTime>3</TotalTime><Pages>1</Pages><Words>2</Words><Characters>18</Characters><Application>Microsoft Office Word</Application><DocSecurity>0</DocSecurity><Lines>1</Lines><Paragraphs>1</Paragraphs><ScaleCrop>false</ScaleCrop><Company></Company><LinksUpToDate>false</LinksUpToDate><CharactersWithSpaces>19</CharactersWithSpaces><SharedDoc>false</SharedDoc><HyperlinksChanged>false</HyperlinksChanged><AppVersion>16.0000</AppVersion></Properties> \ No newline at end of file
diff --git a/extract/test/electoral_roll.pdf.mutool.docx.dir.ref/docProps/core.xml b/extract/test/electoral_roll.pdf.mutool.docx.dir.ref/docProps/core.xml
new file mode 100644
index 00000000..195d77a9
--- /dev/null
+++ b/extract/test/electoral_roll.pdf.mutool.docx.dir.ref/docProps/core.xml
@@ -0,0 +1,2 @@
+<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
+<cp:coreProperties xmlns:cp="http://schemas.openxmlformats.org/package/2006/metadata/core-properties" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:dcterms="http://purl.org/dc/terms/" xmlns:dcmitype="http://purl.org/dc/dcmitype/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><dc:title></dc:title><dc:subject></dc:subject><dc:creator></dc:creator><cp:keywords></cp:keywords><dc:description></dc:description><cp:lastModifiedBy></cp:lastModifiedBy><cp:revision>1</cp:revision><dcterms:created xsi:type="dcterms:W3CDTF">2020-09-25T17:04:00Z</dcterms:created><dcterms:modified xsi:type="dcterms:W3CDTF">2020-09-25T17:07:00Z</dcterms:modified></cp:coreProperties> \ No newline at end of file
diff --git a/extract/test/electoral_roll.pdf.mutool.docx.dir.ref/word/_rels/document.xml.rels b/extract/test/electoral_roll.pdf.mutool.docx.dir.ref/word/_rels/document.xml.rels
new file mode 100644
index 00000000..3b2b7f8c
--- /dev/null
+++ b/extract/test/electoral_roll.pdf.mutool.docx.dir.ref/word/_rels/document.xml.rels
@@ -0,0 +1,2 @@
+<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
+<Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships"><Relationship Id="rId3" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/webSettings" Target="webSettings.xml"/><Relationship Id="rId2" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/settings" Target="settings.xml"/><Relationship Id="rId1" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles" Target="styles.xml"/><Relationship Id="rId5" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme" Target="theme/theme1.xml"/><Relationship Id="rId4" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/fontTable" Target="fontTable.xml"/></Relationships> \ No newline at end of file
diff --git a/extract/test/electoral_roll.pdf.mutool.docx.dir.ref/word/document.xml b/extract/test/electoral_roll.pdf.mutool.docx.dir.ref/word/document.xml
new file mode 100644
index 00000000..b2fea5b5
--- /dev/null
+++ b/extract/test/electoral_roll.pdf.mutool.docx.dir.ref/word/document.xml
@@ -0,0 +1,2918 @@
+<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
+<w:document xmlns:wpc="http://schemas.microsoft.com/office/word/2010/wordprocessingCanvas" xmlns:cx="http://schemas.microsoft.com/office/drawing/2014/chartex" xmlns:cx1="http://schemas.microsoft.com/office/drawing/2015/9/8/chartex" xmlns:cx2="http://schemas.microsoft.com/office/drawing/2015/10/21/chartex" xmlns:cx3="http://schemas.microsoft.com/office/drawing/2016/5/9/chartex" xmlns:cx4="http://schemas.microsoft.com/office/drawing/2016/5/10/chartex" xmlns:cx5="http://schemas.microsoft.com/office/drawing/2016/5/11/chartex" xmlns:cx6="http://schemas.microsoft.com/office/drawing/2016/5/12/chartex" xmlns:cx7="http://schemas.microsoft.com/office/drawing/2016/5/13/chartex" xmlns:cx8="http://schemas.microsoft.com/office/drawing/2016/5/14/chartex" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:aink="http://schemas.microsoft.com/office/drawing/2016/ink" xmlns:am3d="http://schemas.microsoft.com/office/drawing/2017/model3d" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships" xmlns:m="http://schemas.openxmlformats.org/officeDocument/2006/math" xmlns:v="urn:schemas-microsoft-com:vml" xmlns:wp14="http://schemas.microsoft.com/office/word/2010/wordprocessingDrawing" xmlns:wp="http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing" xmlns:w10="urn:schemas-microsoft-com:office:word" xmlns:w="http://schemas.openxmlformats.org/wordprocessingml/2006/main" xmlns:w14="http://schemas.microsoft.com/office/word/2010/wordml" xmlns:w15="http://schemas.microsoft.com/office/word/2012/wordml" xmlns:w16cex="http://schemas.microsoft.com/office/word/2018/wordml/cex" xmlns:w16cid="http://schemas.microsoft.com/office/word/2016/wordml/cid" xmlns:w16="http://schemas.microsoft.com/office/word/2018/wordml" xmlns:w16se="http://schemas.microsoft.com/office/word/2015/wordml/symex" xmlns:wpg="http://schemas.microsoft.com/office/word/2010/wordprocessingGroup" xmlns:wpi="http://schemas.microsoft.com/office/word/2010/wordprocessingInk" xmlns:wne="http://schemas.microsoft.com/office/word/2006/wordml" xmlns:wps="http://schemas.microsoft.com/office/word/2010/wordprocessingShape" mc:Ignorable="w14 w15 w16se w16cid w16 w16cex wp14"><w:body>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Arial-Bold" w:hAnsi="Arial-Bold"/><w:b/><w:sz w:val="19.300000"/><w:szCs w:val="14.475000"/></w:rPr><w:t xml:space="preserve">Section No &amp; Name </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="Arial-Unicode-MS-Bold" w:hAnsi="Arial-Unicode-MS-Bold"/><w:b/><w:sz w:val="16.400000"/><w:szCs w:val="12.300000"/></w:rPr><w:t xml:space="preserve">11</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="Arial-Bold" w:hAnsi="Arial-Bold"/><w:b/><w:sz w:val="19.300000"/><w:szCs w:val="14.475000"/></w:rPr><w:t xml:space="preserve"></w:t></w:r>
+</w:p>
+ <w:tbl>
+ <w:tblLayout w:type="autofit"/>
+ <w:tr>
+ <w:trPr/>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Arial" w:hAnsi="Arial"/><w:sz w:val="14.300000"/><w:szCs w:val="10.725000"/></w:rPr><w:t xml:space="preserve"> 1 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:gridSpan w:val="2"/>
+ <w:vMerge w:val="restart"/>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Times-New-Roman-Italic" w:hAnsi="Times-New-Roman-Italic"/><w:i/><w:sz w:val="16.000000"/><w:szCs w:val="12.000000"/></w:rPr><w:t xml:space="preserve">Sex : Male</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="NotoSans" w:hAnsi="NotoSans"/><w:sz w:val="15.900000"/><w:szCs w:val="11.925000"/></w:rPr><w:t xml:space="preserve">NEL0000001</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="NotoSans" w:hAnsi="NotoSans"/><w:sz w:val="14.100000"/><w:szCs w:val="10.575000"/></w:rPr><w:t xml:space="preserve">n</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:sz w:val="14.100000"/><w:szCs w:val="10.575000"/></w:rPr><w:t xml:space="preserve"> </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="NotoSans" w:hAnsi="NotoSans"/><w:sz w:val="14.100000"/><w:szCs w:val="10.575000"/></w:rPr><w:t xml:space="preserve">Doe</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="restart"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Arial" w:hAnsi="Arial"/><w:sz w:val="14.300000"/><w:szCs w:val="10.725000"/></w:rPr><w:t xml:space="preserve"> 2 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:gridSpan w:val="2"/>
+ <w:vMerge w:val="restart"/>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Times-New-Roman" w:hAnsi="Times-New-Roman"/><w:sz w:val="14.100000"/><w:szCs w:val="10.575000"/></w:rPr><w:t xml:space="preserve">5 </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="Times-New-Roman-Italic" w:hAnsi="Times-New-Roman-Italic"/><w:i/><w:sz w:val="16.000000"/><w:szCs w:val="12.000000"/></w:rPr><w:t xml:space="preserve">Sex : Male</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="NotoSans" w:hAnsi="NotoSans"/><w:sz w:val="15.900000"/><w:szCs w:val="11.925000"/></w:rPr><w:t xml:space="preserve">NEL0000002</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:sz w:val="14.100000"/><w:szCs w:val="10.575000"/></w:rPr><w:t xml:space="preserve"> </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="NotoSans" w:hAnsi="NotoSans"/><w:sz w:val="14.100000"/><w:szCs w:val="10.575000"/></w:rPr><w:t xml:space="preserve">Doe</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="restart"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Arial" w:hAnsi="Arial"/><w:sz w:val="14.300000"/><w:szCs w:val="10.725000"/></w:rPr><w:t xml:space="preserve"> 3 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:gridSpan w:val="2"/>
+ <w:vMerge w:val="restart"/>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Times-New-Roman" w:hAnsi="Times-New-Roman"/><w:sz w:val="14.100000"/><w:szCs w:val="10.575000"/></w:rPr><w:t xml:space="preserve">5 </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="Times-New-Roman-Italic" w:hAnsi="Times-New-Roman-Italic"/><w:i/><w:sz w:val="16.000000"/><w:szCs w:val="12.000000"/></w:rPr><w:t xml:space="preserve">Sex : Male</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="NotoSans" w:hAnsi="NotoSans"/><w:sz w:val="15.900000"/><w:szCs w:val="11.925000"/></w:rPr><w:t xml:space="preserve">NEL0000003</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:sz w:val="14.100000"/><w:szCs w:val="10.575000"/></w:rPr><w:t xml:space="preserve"> </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="NotoSans" w:hAnsi="NotoSans"/><w:sz w:val="14.100000"/><w:szCs w:val="10.575000"/></w:rPr><w:t xml:space="preserve">Doe</w:t></w:r>
+</w:p> </w:tc>
+ </w:tr>
+ <w:tr>
+ <w:trPr/>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Times-New-Roman-Italic" w:hAnsi="Times-New-Roman-Italic"/><w:i/><w:sz w:val="16.000000"/><w:szCs w:val="12.000000"/></w:rPr><w:t xml:space="preserve">Name : </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="Times-New-Roman-Italic" w:hAnsi="Times-New-Roman-Italic"/><w:i/><w:sz w:val="14.100000"/><w:szCs w:val="10.575000"/></w:rPr><w:t xml:space="preserve">Father&apos;s </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="Arial" w:hAnsi="Arial"/><w:sz w:val="14.300000"/><w:szCs w:val="10.725000"/></w:rPr><w:t xml:space="preserve">: </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="Times-New-Roman-Italic" w:hAnsi="Times-New-Roman-Italic"/><w:i/><w:sz w:val="14.100000"/><w:szCs w:val="10.575000"/></w:rPr><w:t xml:space="preserve">Name </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="Times-New-Roman" w:hAnsi="Times-New-Roman"/><w:sz w:val="14.100000"/><w:szCs w:val="10.575000"/></w:rPr><w:t xml:space="preserve">0</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="NotoSans" w:hAnsi="NotoSans"/><w:sz w:val="14.100000"/><w:szCs w:val="10.575000"/></w:rPr><w:t xml:space="preserve">Joh</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="NotoSans" w:hAnsi="NotoSans"/><w:sz w:val="16.000000"/><w:szCs w:val="12.000000"/></w:rPr><w:t xml:space="preserve">House</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:sz w:val="16.000000"/><w:szCs w:val="12.000000"/></w:rPr><w:t xml:space="preserve"> </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="NotoSans" w:hAnsi="NotoSans"/><w:sz w:val="16.000000"/><w:szCs w:val="12.000000"/></w:rPr><w:t xml:space="preserve">No</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:sz w:val="16.000000"/><w:szCs w:val="12.000000"/></w:rPr><w:t xml:space="preserve"> </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="NotoSans" w:hAnsi="NotoSans"/><w:sz w:val="16.000000"/><w:szCs w:val="12.000000"/></w:rPr><w:t xml:space="preserve">: Age</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:sz w:val="16.000000"/><w:szCs w:val="12.000000"/></w:rPr><w:t xml:space="preserve"> </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="NotoSans" w:hAnsi="NotoSans"/><w:sz w:val="16.000000"/><w:szCs w:val="12.000000"/></w:rPr><w:t xml:space="preserve">:</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:sz w:val="16.000000"/><w:szCs w:val="12.000000"/></w:rPr><w:t xml:space="preserve"> </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="NotoSans" w:hAnsi="NotoSans"/><w:sz w:val="16.000000"/><w:szCs w:val="12.000000"/></w:rPr><w:t xml:space="preserve">55</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:gridSpan w:val="2"/>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Times-New-Roman-Italic" w:hAnsi="Times-New-Roman-Italic"/><w:i/><w:sz w:val="16.000000"/><w:szCs w:val="12.000000"/></w:rPr><w:t xml:space="preserve">Name : </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="Times-New-Roman-Italic" w:hAnsi="Times-New-Roman-Italic"/><w:i/><w:sz w:val="14.100000"/><w:szCs w:val="10.575000"/></w:rPr><w:t xml:space="preserve">Father&apos;s </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="Arial" w:hAnsi="Arial"/><w:sz w:val="14.300000"/><w:szCs w:val="10.725000"/></w:rPr><w:t xml:space="preserve">: </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="Times-New-Roman-Italic" w:hAnsi="Times-New-Roman-Italic"/><w:i/><w:sz w:val="14.100000"/><w:szCs w:val="10.575000"/></w:rPr><w:t xml:space="preserve">Name </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="Times-New-Roman" w:hAnsi="Times-New-Roman"/><w:sz w:val="14.100000"/><w:szCs w:val="10.575000"/></w:rPr><w:t xml:space="preserve">1 </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="Times-New-Roman-Italic" w:hAnsi="Times-New-Roman-Italic"/><w:i/><w:sz w:val="16.000000"/><w:szCs w:val="12.000000"/></w:rPr><w:t xml:space="preserve">House No :</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="NotoSans" w:hAnsi="NotoSans"/><w:sz w:val="14.100000"/><w:szCs w:val="10.575000"/></w:rPr><w:t xml:space="preserve">John</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="NotoSans" w:hAnsi="NotoSans"/><w:sz w:val="16.000000"/><w:szCs w:val="12.000000"/></w:rPr><w:t xml:space="preserve">Age</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:sz w:val="16.000000"/><w:szCs w:val="12.000000"/></w:rPr><w:t xml:space="preserve"> </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="NotoSans" w:hAnsi="NotoSans"/><w:sz w:val="16.000000"/><w:szCs w:val="12.000000"/></w:rPr><w:t xml:space="preserve">:</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:sz w:val="16.000000"/><w:szCs w:val="12.000000"/></w:rPr><w:t xml:space="preserve"> </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="NotoSans" w:hAnsi="NotoSans"/><w:sz w:val="16.000000"/><w:szCs w:val="12.000000"/></w:rPr><w:t xml:space="preserve">63</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:gridSpan w:val="2"/>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Times-New-Roman-Italic" w:hAnsi="Times-New-Roman-Italic"/><w:i/><w:sz w:val="16.000000"/><w:szCs w:val="12.000000"/></w:rPr><w:t xml:space="preserve">Name : </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="Times-New-Roman-Italic" w:hAnsi="Times-New-Roman-Italic"/><w:i/><w:sz w:val="14.100000"/><w:szCs w:val="10.575000"/></w:rPr><w:t xml:space="preserve">Father&apos;s </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="Arial" w:hAnsi="Arial"/><w:sz w:val="14.300000"/><w:szCs w:val="10.725000"/></w:rPr><w:t xml:space="preserve">: </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="Times-New-Roman-Italic" w:hAnsi="Times-New-Roman-Italic"/><w:i/><w:sz w:val="14.100000"/><w:szCs w:val="10.575000"/></w:rPr><w:t xml:space="preserve">Name </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="Times-New-Roman" w:hAnsi="Times-New-Roman"/><w:sz w:val="14.100000"/><w:szCs w:val="10.575000"/></w:rPr><w:t xml:space="preserve">1 </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="Times-New-Roman-Italic" w:hAnsi="Times-New-Roman-Italic"/><w:i/><w:sz w:val="16.000000"/><w:szCs w:val="12.000000"/></w:rPr><w:t xml:space="preserve">House No :</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="NotoSans" w:hAnsi="NotoSans"/><w:sz w:val="14.100000"/><w:szCs w:val="10.575000"/></w:rPr><w:t xml:space="preserve">John</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="NotoSans" w:hAnsi="NotoSans"/><w:sz w:val="16.000000"/><w:szCs w:val="12.000000"/></w:rPr><w:t xml:space="preserve">Age</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:sz w:val="16.000000"/><w:szCs w:val="12.000000"/></w:rPr><w:t xml:space="preserve"> </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="NotoSans" w:hAnsi="NotoSans"/><w:sz w:val="16.000000"/><w:szCs w:val="12.000000"/></w:rPr><w:t xml:space="preserve">:</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:sz w:val="16.000000"/><w:szCs w:val="12.000000"/></w:rPr><w:t xml:space="preserve"> </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="NotoSans" w:hAnsi="NotoSans"/><w:sz w:val="16.000000"/><w:szCs w:val="12.000000"/></w:rPr><w:t xml:space="preserve">33</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:gridSpan w:val="2"/>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ </w:tr>
+ <w:tr>
+ <w:trPr/>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Arial" w:hAnsi="Arial"/><w:sz w:val="14.300000"/><w:szCs w:val="10.725000"/></w:rPr><w:t xml:space="preserve"> 4 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:gridSpan w:val="2"/>
+ <w:vMerge w:val="restart"/>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Times-New-Roman" w:hAnsi="Times-New-Roman"/><w:sz w:val="14.100000"/><w:szCs w:val="10.575000"/></w:rPr><w:t xml:space="preserve">1</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="NotoSans" w:hAnsi="NotoSans"/><w:sz w:val="15.900000"/><w:szCs w:val="11.925000"/></w:rPr><w:t xml:space="preserve">NEL0000004</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:sz w:val="14.100000"/><w:szCs w:val="10.575000"/></w:rPr><w:t xml:space="preserve"> </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="NotoSans" w:hAnsi="NotoSans"/><w:sz w:val="14.100000"/><w:szCs w:val="10.575000"/></w:rPr><w:t xml:space="preserve">Doe</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="NotoSans" w:hAnsi="NotoSans"/><w:sz w:val="16.000000"/><w:szCs w:val="12.000000"/></w:rPr><w:t xml:space="preserve">Sex</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:sz w:val="16.000000"/><w:szCs w:val="12.000000"/></w:rPr><w:t xml:space="preserve"> </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="NotoSans" w:hAnsi="NotoSans"/><w:sz w:val="16.000000"/><w:szCs w:val="12.000000"/></w:rPr><w:t xml:space="preserve">:</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:sz w:val="16.000000"/><w:szCs w:val="12.000000"/></w:rPr><w:t xml:space="preserve"> </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="NotoSans" w:hAnsi="NotoSans"/><w:sz w:val="16.000000"/><w:szCs w:val="12.000000"/></w:rPr><w:t xml:space="preserve">Female</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Arial" w:hAnsi="Arial"/><w:sz w:val="14.300000"/><w:szCs w:val="10.725000"/></w:rPr><w:t xml:space="preserve"> 5 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:gridSpan w:val="2"/>
+ <w:vMerge w:val="restart"/>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Times-New-Roman" w:hAnsi="Times-New-Roman"/><w:sz w:val="14.100000"/><w:szCs w:val="10.575000"/></w:rPr><w:t xml:space="preserve">8 </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="Times-New-Roman-Italic" w:hAnsi="Times-New-Roman-Italic"/><w:i/><w:sz w:val="16.000000"/><w:szCs w:val="12.000000"/></w:rPr><w:t xml:space="preserve">Sex : Male</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="NotoSans" w:hAnsi="NotoSans"/><w:sz w:val="15.900000"/><w:szCs w:val="11.925000"/></w:rPr><w:t xml:space="preserve">NEL0000005</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:sz w:val="14.100000"/><w:szCs w:val="10.575000"/></w:rPr><w:t xml:space="preserve"> </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="NotoSans" w:hAnsi="NotoSans"/><w:sz w:val="14.100000"/><w:szCs w:val="10.575000"/></w:rPr><w:t xml:space="preserve">Doe</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Arial" w:hAnsi="Arial"/><w:sz w:val="14.300000"/><w:szCs w:val="10.725000"/></w:rPr><w:t xml:space="preserve"> 6 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:gridSpan w:val="2"/>
+ <w:vMerge w:val="restart"/>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Times-New-Roman" w:hAnsi="Times-New-Roman"/><w:sz w:val="14.100000"/><w:szCs w:val="10.575000"/></w:rPr><w:t xml:space="preserve">5 </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="Times-New-Roman-Italic" w:hAnsi="Times-New-Roman-Italic"/><w:i/><w:sz w:val="16.000000"/><w:szCs w:val="12.000000"/></w:rPr><w:t xml:space="preserve">Sex : Female</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="NotoSans" w:hAnsi="NotoSans"/><w:sz w:val="15.900000"/><w:szCs w:val="11.925000"/></w:rPr><w:t xml:space="preserve">NEL0000006</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:sz w:val="14.100000"/><w:szCs w:val="10.575000"/></w:rPr><w:t xml:space="preserve"> </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="NotoSans" w:hAnsi="NotoSans"/><w:sz w:val="14.100000"/><w:szCs w:val="10.575000"/></w:rPr><w:t xml:space="preserve">Doe</w:t></w:r>
+</w:p> </w:tc>
+ </w:tr>
+ <w:tr>
+ <w:trPr/>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Times-New-Roman-Italic" w:hAnsi="Times-New-Roman-Italic"/><w:i/><w:sz w:val="16.000000"/><w:szCs w:val="12.000000"/></w:rPr><w:t xml:space="preserve">Name : </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="Times-New-Roman-Italic" w:hAnsi="Times-New-Roman-Italic"/><w:i/><w:sz w:val="14.100000"/><w:szCs w:val="10.575000"/></w:rPr><w:t xml:space="preserve">Father&apos;s </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="Arial" w:hAnsi="Arial"/><w:sz w:val="14.300000"/><w:szCs w:val="10.725000"/></w:rPr><w:t xml:space="preserve">: </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="Times-New-Roman-Italic" w:hAnsi="Times-New-Roman-Italic"/><w:i/><w:sz w:val="14.100000"/><w:szCs w:val="10.575000"/></w:rPr><w:t xml:space="preserve">Name </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="Times-New-Roman" w:hAnsi="Times-New-Roman"/><w:sz w:val="14.100000"/><w:szCs w:val="10.575000"/></w:rPr><w:t xml:space="preserve">3 </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="Times-New-Roman-Italic" w:hAnsi="Times-New-Roman-Italic"/><w:i/><w:sz w:val="16.000000"/><w:szCs w:val="12.000000"/></w:rPr><w:t xml:space="preserve">House No : Age : 23</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="NotoSans" w:hAnsi="NotoSans"/><w:sz w:val="14.100000"/><w:szCs w:val="10.575000"/></w:rPr><w:t xml:space="preserve">Jane</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:gridSpan w:val="2"/>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Times-New-Roman-Italic" w:hAnsi="Times-New-Roman-Italic"/><w:i/><w:sz w:val="16.000000"/><w:szCs w:val="12.000000"/></w:rPr><w:t xml:space="preserve">Name : </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="Times-New-Roman-Italic" w:hAnsi="Times-New-Roman-Italic"/><w:i/><w:sz w:val="14.100000"/><w:szCs w:val="10.575000"/></w:rPr><w:t xml:space="preserve">Father&apos;s </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="Arial" w:hAnsi="Arial"/><w:sz w:val="14.300000"/><w:szCs w:val="10.725000"/></w:rPr><w:t xml:space="preserve">: </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="Times-New-Roman-Italic" w:hAnsi="Times-New-Roman-Italic"/><w:i/><w:sz w:val="14.100000"/><w:szCs w:val="10.575000"/></w:rPr><w:t xml:space="preserve">Name </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="Times-New-Roman" w:hAnsi="Times-New-Roman"/><w:sz w:val="14.100000"/><w:szCs w:val="10.575000"/></w:rPr><w:t xml:space="preserve">4 </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="Times-New-Roman-Italic" w:hAnsi="Times-New-Roman-Italic"/><w:i/><w:sz w:val="16.000000"/><w:szCs w:val="12.000000"/></w:rPr><w:t xml:space="preserve">Age : 22</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="NotoSans" w:hAnsi="NotoSans"/><w:sz w:val="14.100000"/><w:szCs w:val="10.575000"/></w:rPr><w:t xml:space="preserve">John</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="NotoSans" w:hAnsi="NotoSans"/><w:sz w:val="16.000000"/><w:szCs w:val="12.000000"/></w:rPr><w:t xml:space="preserve">House</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:sz w:val="16.000000"/><w:szCs w:val="12.000000"/></w:rPr><w:t xml:space="preserve"> </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="NotoSans" w:hAnsi="NotoSans"/><w:sz w:val="16.000000"/><w:szCs w:val="12.000000"/></w:rPr><w:t xml:space="preserve">No</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:sz w:val="16.000000"/><w:szCs w:val="12.000000"/></w:rPr><w:t xml:space="preserve"> </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="NotoSans" w:hAnsi="NotoSans"/><w:sz w:val="16.000000"/><w:szCs w:val="12.000000"/></w:rPr><w:t xml:space="preserve">:</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:gridSpan w:val="2"/>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Times-New-Roman-Italic" w:hAnsi="Times-New-Roman-Italic"/><w:i/><w:sz w:val="16.000000"/><w:szCs w:val="12.000000"/></w:rPr><w:t xml:space="preserve">Name : </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="Times-New-Roman-Italic" w:hAnsi="Times-New-Roman-Italic"/><w:i/><w:sz w:val="14.100000"/><w:szCs w:val="10.575000"/></w:rPr><w:t xml:space="preserve">Husband&apos;s </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="Arial" w:hAnsi="Arial"/><w:sz w:val="14.300000"/><w:szCs w:val="10.725000"/></w:rPr><w:t xml:space="preserve">: </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="Times-New-Roman-Italic" w:hAnsi="Times-New-Roman-Italic"/><w:i/><w:sz w:val="14.100000"/><w:szCs w:val="10.575000"/></w:rPr><w:t xml:space="preserve">Name </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="Times-New-Roman" w:hAnsi="Times-New-Roman"/><w:sz w:val="14.100000"/><w:szCs w:val="10.575000"/></w:rPr><w:t xml:space="preserve">5 </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="Times-New-Roman-Italic" w:hAnsi="Times-New-Roman-Italic"/><w:i/><w:sz w:val="16.000000"/><w:szCs w:val="12.000000"/></w:rPr><w:t xml:space="preserve">House No : Age : 62</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="NotoSans" w:hAnsi="NotoSans"/><w:sz w:val="14.100000"/><w:szCs w:val="10.575000"/></w:rPr><w:t xml:space="preserve">Jane</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:gridSpan w:val="2"/>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ </w:tr>
+ <w:tr>
+ <w:trPr/>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Arial" w:hAnsi="Arial"/><w:sz w:val="14.300000"/><w:szCs w:val="10.725000"/></w:rPr><w:t xml:space="preserve"> 7 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:gridSpan w:val="2"/>
+ <w:vMerge w:val="restart"/>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Times-New-Roman" w:hAnsi="Times-New-Roman"/><w:sz w:val="14.100000"/><w:szCs w:val="10.575000"/></w:rPr><w:t xml:space="preserve">2 </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="Times-New-Roman-Italic" w:hAnsi="Times-New-Roman-Italic"/><w:i/><w:sz w:val="16.000000"/><w:szCs w:val="12.000000"/></w:rPr><w:t xml:space="preserve">Sex : Female</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="NotoSans" w:hAnsi="NotoSans"/><w:sz w:val="15.900000"/><w:szCs w:val="11.925000"/></w:rPr><w:t xml:space="preserve">NEL0000007</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:sz w:val="14.100000"/><w:szCs w:val="10.575000"/></w:rPr><w:t xml:space="preserve"> </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="NotoSans" w:hAnsi="NotoSans"/><w:sz w:val="14.100000"/><w:szCs w:val="10.575000"/></w:rPr><w:t xml:space="preserve">Doe</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Arial" w:hAnsi="Arial"/><w:sz w:val="14.300000"/><w:szCs w:val="10.725000"/></w:rPr><w:t xml:space="preserve"> 8 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:gridSpan w:val="2"/>
+ <w:vMerge w:val="restart"/>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Times-New-Roman" w:hAnsi="Times-New-Roman"/><w:sz w:val="14.100000"/><w:szCs w:val="10.575000"/></w:rPr><w:t xml:space="preserve">3 </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="Times-New-Roman-Italic" w:hAnsi="Times-New-Roman-Italic"/><w:i/><w:sz w:val="16.000000"/><w:szCs w:val="12.000000"/></w:rPr><w:t xml:space="preserve">Sex : Male</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="NotoSans" w:hAnsi="NotoSans"/><w:sz w:val="15.900000"/><w:szCs w:val="11.925000"/></w:rPr><w:t xml:space="preserve">NEL0000008</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:sz w:val="14.100000"/><w:szCs w:val="10.575000"/></w:rPr><w:t xml:space="preserve"> </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="NotoSans" w:hAnsi="NotoSans"/><w:sz w:val="14.100000"/><w:szCs w:val="10.575000"/></w:rPr><w:t xml:space="preserve">Doe</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Arial" w:hAnsi="Arial"/><w:sz w:val="14.300000"/><w:szCs w:val="10.725000"/></w:rPr><w:t xml:space="preserve"> 9 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:gridSpan w:val="2"/>
+ <w:vMerge w:val="restart"/>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Times-New-Roman" w:hAnsi="Times-New-Roman"/><w:sz w:val="14.100000"/><w:szCs w:val="10.575000"/></w:rPr><w:t xml:space="preserve">3 </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="Times-New-Roman-Italic" w:hAnsi="Times-New-Roman-Italic"/><w:i/><w:sz w:val="16.000000"/><w:szCs w:val="12.000000"/></w:rPr><w:t xml:space="preserve">Sex : Female</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="NotoSans" w:hAnsi="NotoSans"/><w:sz w:val="15.900000"/><w:szCs w:val="11.925000"/></w:rPr><w:t xml:space="preserve">NEL0000009</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:sz w:val="14.100000"/><w:szCs w:val="10.575000"/></w:rPr><w:t xml:space="preserve"> </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="NotoSans" w:hAnsi="NotoSans"/><w:sz w:val="14.100000"/><w:szCs w:val="10.575000"/></w:rPr><w:t xml:space="preserve">Doe</w:t></w:r>
+</w:p> </w:tc>
+ </w:tr>
+ <w:tr>
+ <w:trPr/>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Times-New-Roman-Italic" w:hAnsi="Times-New-Roman-Italic"/><w:i/><w:sz w:val="16.000000"/><w:szCs w:val="12.000000"/></w:rPr><w:t xml:space="preserve">Name : </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="Times-New-Roman-Italic" w:hAnsi="Times-New-Roman-Italic"/><w:i/><w:sz w:val="14.100000"/><w:szCs w:val="10.575000"/></w:rPr><w:t xml:space="preserve">Husband&apos;s </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="Arial" w:hAnsi="Arial"/><w:sz w:val="14.300000"/><w:szCs w:val="10.725000"/></w:rPr><w:t xml:space="preserve">: </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="Times-New-Roman-Italic" w:hAnsi="Times-New-Roman-Italic"/><w:i/><w:sz w:val="14.100000"/><w:szCs w:val="10.575000"/></w:rPr><w:t xml:space="preserve">Name </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="Times-New-Roman" w:hAnsi="Times-New-Roman"/><w:sz w:val="14.100000"/><w:szCs w:val="10.575000"/></w:rPr><w:t xml:space="preserve">6 </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="Times-New-Roman-Italic" w:hAnsi="Times-New-Roman-Italic"/><w:i/><w:sz w:val="16.000000"/><w:szCs w:val="12.000000"/></w:rPr><w:t xml:space="preserve">House No : Age : 80</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="NotoSans" w:hAnsi="NotoSans"/><w:sz w:val="14.100000"/><w:szCs w:val="10.575000"/></w:rPr><w:t xml:space="preserve">Jane</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:gridSpan w:val="2"/>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Times-New-Roman-Italic" w:hAnsi="Times-New-Roman-Italic"/><w:i/><w:sz w:val="16.000000"/><w:szCs w:val="12.000000"/></w:rPr><w:t xml:space="preserve">Name : </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="Times-New-Roman-Italic" w:hAnsi="Times-New-Roman-Italic"/><w:i/><w:sz w:val="14.100000"/><w:szCs w:val="10.575000"/></w:rPr><w:t xml:space="preserve">Father&apos;s </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="Arial" w:hAnsi="Arial"/><w:sz w:val="14.300000"/><w:szCs w:val="10.725000"/></w:rPr><w:t xml:space="preserve">: </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="Times-New-Roman-Italic" w:hAnsi="Times-New-Roman-Italic"/><w:i/><w:sz w:val="14.100000"/><w:szCs w:val="10.575000"/></w:rPr><w:t xml:space="preserve">Name </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="Times-New-Roman" w:hAnsi="Times-New-Roman"/><w:sz w:val="14.100000"/><w:szCs w:val="10.575000"/></w:rPr><w:t xml:space="preserve">6 </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="Times-New-Roman-Italic" w:hAnsi="Times-New-Roman-Italic"/><w:i/><w:sz w:val="16.000000"/><w:szCs w:val="12.000000"/></w:rPr><w:t xml:space="preserve">House No : Age : 61</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="NotoSans" w:hAnsi="NotoSans"/><w:sz w:val="14.100000"/><w:szCs w:val="10.575000"/></w:rPr><w:t xml:space="preserve">John</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:gridSpan w:val="2"/>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Times-New-Roman-Italic" w:hAnsi="Times-New-Roman-Italic"/><w:i/><w:sz w:val="16.000000"/><w:szCs w:val="12.000000"/></w:rPr><w:t xml:space="preserve">Name : </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="Times-New-Roman-Italic" w:hAnsi="Times-New-Roman-Italic"/><w:i/><w:sz w:val="14.100000"/><w:szCs w:val="10.575000"/></w:rPr><w:t xml:space="preserve">Husband&apos;s </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="Arial" w:hAnsi="Arial"/><w:sz w:val="14.300000"/><w:szCs w:val="10.725000"/></w:rPr><w:t xml:space="preserve">: </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="Times-New-Roman-Italic" w:hAnsi="Times-New-Roman-Italic"/><w:i/><w:sz w:val="14.100000"/><w:szCs w:val="10.575000"/></w:rPr><w:t xml:space="preserve">Name </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="Times-New-Roman" w:hAnsi="Times-New-Roman"/><w:sz w:val="14.100000"/><w:szCs w:val="10.575000"/></w:rPr><w:t xml:space="preserve">6 </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="Times-New-Roman-Italic" w:hAnsi="Times-New-Roman-Italic"/><w:i/><w:sz w:val="16.000000"/><w:szCs w:val="12.000000"/></w:rPr><w:t xml:space="preserve">House No : Age : 54</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="NotoSans" w:hAnsi="NotoSans"/><w:sz w:val="14.100000"/><w:szCs w:val="10.575000"/></w:rPr><w:t xml:space="preserve">Jane</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:gridSpan w:val="2"/>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ </w:tr>
+ <w:tr>
+ <w:trPr/>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Arial" w:hAnsi="Arial"/><w:sz w:val="14.300000"/><w:szCs w:val="10.725000"/></w:rPr><w:t xml:space="preserve"> 10 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:gridSpan w:val="2"/>
+ <w:vMerge w:val="restart"/>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Times-New-Roman" w:hAnsi="Times-New-Roman"/><w:sz w:val="14.100000"/><w:szCs w:val="10.575000"/></w:rPr><w:t xml:space="preserve">3 </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="Times-New-Roman-Italic" w:hAnsi="Times-New-Roman-Italic"/><w:i/><w:sz w:val="16.000000"/><w:szCs w:val="12.000000"/></w:rPr><w:t xml:space="preserve">Sex : Female</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="NotoSans" w:hAnsi="NotoSans"/><w:sz w:val="15.900000"/><w:szCs w:val="11.925000"/></w:rPr><w:t xml:space="preserve">NEL0000010</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:sz w:val="14.100000"/><w:szCs w:val="10.575000"/></w:rPr><w:t xml:space="preserve"> </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="NotoSans" w:hAnsi="NotoSans"/><w:sz w:val="14.100000"/><w:szCs w:val="10.575000"/></w:rPr><w:t xml:space="preserve">Doe</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Arial" w:hAnsi="Arial"/><w:sz w:val="14.300000"/><w:szCs w:val="10.725000"/></w:rPr><w:t xml:space="preserve"> 11 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:gridSpan w:val="2"/>
+ <w:vMerge w:val="restart"/>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Times-New-Roman" w:hAnsi="Times-New-Roman"/><w:sz w:val="14.100000"/><w:szCs w:val="10.575000"/></w:rPr><w:t xml:space="preserve">5 </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="Times-New-Roman-Italic" w:hAnsi="Times-New-Roman-Italic"/><w:i/><w:sz w:val="16.000000"/><w:szCs w:val="12.000000"/></w:rPr><w:t xml:space="preserve">Sex : Male</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="NotoSans" w:hAnsi="NotoSans"/><w:sz w:val="15.900000"/><w:szCs w:val="11.925000"/></w:rPr><w:t xml:space="preserve">NEL0000011</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:sz w:val="14.100000"/><w:szCs w:val="10.575000"/></w:rPr><w:t xml:space="preserve"> </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="NotoSans" w:hAnsi="NotoSans"/><w:sz w:val="14.100000"/><w:szCs w:val="10.575000"/></w:rPr><w:t xml:space="preserve">Doe</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Arial" w:hAnsi="Arial"/><w:sz w:val="14.300000"/><w:szCs w:val="10.725000"/></w:rPr><w:t xml:space="preserve"> 12 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:gridSpan w:val="2"/>
+ <w:vMerge w:val="restart"/>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Times-New-Roman" w:hAnsi="Times-New-Roman"/><w:sz w:val="14.100000"/><w:szCs w:val="10.575000"/></w:rPr><w:t xml:space="preserve">8 </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="Times-New-Roman-Italic" w:hAnsi="Times-New-Roman-Italic"/><w:i/><w:sz w:val="16.000000"/><w:szCs w:val="12.000000"/></w:rPr><w:t xml:space="preserve">Sex : Female</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="NotoSans" w:hAnsi="NotoSans"/><w:sz w:val="15.900000"/><w:szCs w:val="11.925000"/></w:rPr><w:t xml:space="preserve">LQK0000012</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:sz w:val="14.100000"/><w:szCs w:val="10.575000"/></w:rPr><w:t xml:space="preserve"> </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="NotoSans" w:hAnsi="NotoSans"/><w:sz w:val="14.100000"/><w:szCs w:val="10.575000"/></w:rPr><w:t xml:space="preserve">Doe</w:t></w:r>
+</w:p> </w:tc>
+ </w:tr>
+ <w:tr>
+ <w:trPr/>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Times-New-Roman-Italic" w:hAnsi="Times-New-Roman-Italic"/><w:i/><w:sz w:val="16.000000"/><w:szCs w:val="12.000000"/></w:rPr><w:t xml:space="preserve">Name : </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="Times-New-Roman-Italic" w:hAnsi="Times-New-Roman-Italic"/><w:i/><w:sz w:val="14.100000"/><w:szCs w:val="10.575000"/></w:rPr><w:t xml:space="preserve">Father&apos;s </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="Arial" w:hAnsi="Arial"/><w:sz w:val="14.300000"/><w:szCs w:val="10.725000"/></w:rPr><w:t xml:space="preserve">: </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="Times-New-Roman-Italic" w:hAnsi="Times-New-Roman-Italic"/><w:i/><w:sz w:val="14.100000"/><w:szCs w:val="10.575000"/></w:rPr><w:t xml:space="preserve">Name </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="Times-New-Roman" w:hAnsi="Times-New-Roman"/><w:sz w:val="14.100000"/><w:szCs w:val="10.575000"/></w:rPr><w:t xml:space="preserve">7 </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="Times-New-Roman-Italic" w:hAnsi="Times-New-Roman-Italic"/><w:i/><w:sz w:val="16.000000"/><w:szCs w:val="12.000000"/></w:rPr><w:t xml:space="preserve">House No : Age : 20</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="NotoSans" w:hAnsi="NotoSans"/><w:sz w:val="14.100000"/><w:szCs w:val="10.575000"/></w:rPr><w:t xml:space="preserve">Jane</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:gridSpan w:val="2"/>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Times-New-Roman-Italic" w:hAnsi="Times-New-Roman-Italic"/><w:i/><w:sz w:val="16.000000"/><w:szCs w:val="12.000000"/></w:rPr><w:t xml:space="preserve">Name : </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="Times-New-Roman-Italic" w:hAnsi="Times-New-Roman-Italic"/><w:i/><w:sz w:val="14.100000"/><w:szCs w:val="10.575000"/></w:rPr><w:t xml:space="preserve">Father&apos;s </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="Arial" w:hAnsi="Arial"/><w:sz w:val="14.300000"/><w:szCs w:val="10.725000"/></w:rPr><w:t xml:space="preserve">: </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="Times-New-Roman-Italic" w:hAnsi="Times-New-Roman-Italic"/><w:i/><w:sz w:val="14.100000"/><w:szCs w:val="10.575000"/></w:rPr><w:t xml:space="preserve">Name </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="Times-New-Roman" w:hAnsi="Times-New-Roman"/><w:sz w:val="14.100000"/><w:szCs w:val="10.575000"/></w:rPr><w:t xml:space="preserve">7 </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="Times-New-Roman-Italic" w:hAnsi="Times-New-Roman-Italic"/><w:i/><w:sz w:val="16.000000"/><w:szCs w:val="12.000000"/></w:rPr><w:t xml:space="preserve">House No : Age : 49</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="NotoSans" w:hAnsi="NotoSans"/><w:sz w:val="14.100000"/><w:szCs w:val="10.575000"/></w:rPr><w:t xml:space="preserve">John</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:gridSpan w:val="2"/>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Times-New-Roman-Italic" w:hAnsi="Times-New-Roman-Italic"/><w:i/><w:sz w:val="16.000000"/><w:szCs w:val="12.000000"/></w:rPr><w:t xml:space="preserve">Name : </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="Times-New-Roman-Italic" w:hAnsi="Times-New-Roman-Italic"/><w:i/><w:sz w:val="14.100000"/><w:szCs w:val="10.575000"/></w:rPr><w:t xml:space="preserve">Father&apos;s </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="Arial" w:hAnsi="Arial"/><w:sz w:val="14.300000"/><w:szCs w:val="10.725000"/></w:rPr><w:t xml:space="preserve">: </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="Times-New-Roman-Italic" w:hAnsi="Times-New-Roman-Italic"/><w:i/><w:sz w:val="14.100000"/><w:szCs w:val="10.575000"/></w:rPr><w:t xml:space="preserve">Name </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="Times-New-Roman" w:hAnsi="Times-New-Roman"/><w:sz w:val="14.100000"/><w:szCs w:val="10.575000"/></w:rPr><w:t xml:space="preserve">8 </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="Times-New-Roman-Italic" w:hAnsi="Times-New-Roman-Italic"/><w:i/><w:sz w:val="16.000000"/><w:szCs w:val="12.000000"/></w:rPr><w:t xml:space="preserve">House No : Age : 41</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="NotoSans" w:hAnsi="NotoSans"/><w:sz w:val="14.100000"/><w:szCs w:val="10.575000"/></w:rPr><w:t xml:space="preserve">Jane</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:gridSpan w:val="2"/>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ </w:tr>
+ <w:tr>
+ <w:trPr/>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Arial" w:hAnsi="Arial"/><w:sz w:val="14.300000"/><w:szCs w:val="10.725000"/></w:rPr><w:t xml:space="preserve"> 13 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:gridSpan w:val="2"/>
+ <w:vMerge w:val="restart"/>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Times-New-Roman" w:hAnsi="Times-New-Roman"/><w:sz w:val="14.100000"/><w:szCs w:val="10.575000"/></w:rPr><w:t xml:space="preserve">2 </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="Times-New-Roman-Italic" w:hAnsi="Times-New-Roman-Italic"/><w:i/><w:sz w:val="16.000000"/><w:szCs w:val="12.000000"/></w:rPr><w:t xml:space="preserve">Sex : Female</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="NotoSans" w:hAnsi="NotoSans"/><w:sz w:val="15.900000"/><w:szCs w:val="11.925000"/></w:rPr><w:t xml:space="preserve">NEL0000013</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:sz w:val="14.100000"/><w:szCs w:val="10.575000"/></w:rPr><w:t xml:space="preserve"> </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="NotoSans" w:hAnsi="NotoSans"/><w:sz w:val="14.100000"/><w:szCs w:val="10.575000"/></w:rPr><w:t xml:space="preserve">Doe</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Arial" w:hAnsi="Arial"/><w:sz w:val="14.300000"/><w:szCs w:val="10.725000"/></w:rPr><w:t xml:space="preserve"> 14 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:gridSpan w:val="2"/>
+ <w:vMerge w:val="restart"/>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Times-New-Roman" w:hAnsi="Times-New-Roman"/><w:sz w:val="14.100000"/><w:szCs w:val="10.575000"/></w:rPr><w:t xml:space="preserve">04 </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="Times-New-Roman-Italic" w:hAnsi="Times-New-Roman-Italic"/><w:i/><w:sz w:val="16.000000"/><w:szCs w:val="12.000000"/></w:rPr><w:t xml:space="preserve">Sex : Female</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="NotoSans" w:hAnsi="NotoSans"/><w:sz w:val="15.900000"/><w:szCs w:val="11.925000"/></w:rPr><w:t xml:space="preserve">NEL0000014</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:sz w:val="14.100000"/><w:szCs w:val="10.575000"/></w:rPr><w:t xml:space="preserve"> </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="NotoSans" w:hAnsi="NotoSans"/><w:sz w:val="14.100000"/><w:szCs w:val="10.575000"/></w:rPr><w:t xml:space="preserve">Doe</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Arial" w:hAnsi="Arial"/><w:sz w:val="14.300000"/><w:szCs w:val="10.725000"/></w:rPr><w:t xml:space="preserve"> 15 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:gridSpan w:val="2"/>
+ <w:vMerge w:val="restart"/>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Times-New-Roman" w:hAnsi="Times-New-Roman"/><w:sz w:val="14.100000"/><w:szCs w:val="10.575000"/></w:rPr><w:t xml:space="preserve">04 </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="Times-New-Roman-Italic" w:hAnsi="Times-New-Roman-Italic"/><w:i/><w:sz w:val="16.000000"/><w:szCs w:val="12.000000"/></w:rPr><w:t xml:space="preserve">Sex : Male</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="NotoSans" w:hAnsi="NotoSans"/><w:sz w:val="15.900000"/><w:szCs w:val="11.925000"/></w:rPr><w:t xml:space="preserve">NEL0000015</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:sz w:val="14.100000"/><w:szCs w:val="10.575000"/></w:rPr><w:t xml:space="preserve"> </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="NotoSans" w:hAnsi="NotoSans"/><w:sz w:val="14.100000"/><w:szCs w:val="10.575000"/></w:rPr><w:t xml:space="preserve">Doe</w:t></w:r>
+</w:p> </w:tc>
+ </w:tr>
+ <w:tr>
+ <w:trPr/>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Times-New-Roman-Italic" w:hAnsi="Times-New-Roman-Italic"/><w:i/><w:sz w:val="16.000000"/><w:szCs w:val="12.000000"/></w:rPr><w:t xml:space="preserve">Name : </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="Times-New-Roman-Italic" w:hAnsi="Times-New-Roman-Italic"/><w:i/><w:sz w:val="14.100000"/><w:szCs w:val="10.575000"/></w:rPr><w:t xml:space="preserve">Husband&apos;s </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="Arial" w:hAnsi="Arial"/><w:sz w:val="14.300000"/><w:szCs w:val="10.725000"/></w:rPr><w:t xml:space="preserve">: </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="Times-New-Roman-Italic" w:hAnsi="Times-New-Roman-Italic"/><w:i/><w:sz w:val="14.100000"/><w:szCs w:val="10.575000"/></w:rPr><w:t xml:space="preserve">Name </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="Times-New-Roman" w:hAnsi="Times-New-Roman"/><w:sz w:val="14.100000"/><w:szCs w:val="10.575000"/></w:rPr><w:t xml:space="preserve">9 </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="Times-New-Roman-Italic" w:hAnsi="Times-New-Roman-Italic"/><w:i/><w:sz w:val="16.000000"/><w:szCs w:val="12.000000"/></w:rPr><w:t xml:space="preserve">House No : Age : 28</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="NotoSans" w:hAnsi="NotoSans"/><w:sz w:val="14.100000"/><w:szCs w:val="10.575000"/></w:rPr><w:t xml:space="preserve">Jane</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:gridSpan w:val="2"/>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Times-New-Roman-Italic" w:hAnsi="Times-New-Roman-Italic"/><w:i/><w:sz w:val="16.000000"/><w:szCs w:val="12.000000"/></w:rPr><w:t xml:space="preserve">Name : </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="Times-New-Roman-Italic" w:hAnsi="Times-New-Roman-Italic"/><w:i/><w:sz w:val="14.100000"/><w:szCs w:val="10.575000"/></w:rPr><w:t xml:space="preserve">Husband&apos;s </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="Arial" w:hAnsi="Arial"/><w:sz w:val="14.300000"/><w:szCs w:val="10.725000"/></w:rPr><w:t xml:space="preserve">: </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="Times-New-Roman-Italic" w:hAnsi="Times-New-Roman-Italic"/><w:i/><w:sz w:val="14.100000"/><w:szCs w:val="10.575000"/></w:rPr><w:t xml:space="preserve">Name </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="Times-New-Roman" w:hAnsi="Times-New-Roman"/><w:sz w:val="14.100000"/><w:szCs w:val="10.575000"/></w:rPr><w:t xml:space="preserve">1 </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="Times-New-Roman-Italic" w:hAnsi="Times-New-Roman-Italic"/><w:i/><w:sz w:val="16.000000"/><w:szCs w:val="12.000000"/></w:rPr><w:t xml:space="preserve">House No : Age : 45</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="NotoSans" w:hAnsi="NotoSans"/><w:sz w:val="14.100000"/><w:szCs w:val="10.575000"/></w:rPr><w:t xml:space="preserve">Jane</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:gridSpan w:val="2"/>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Times-New-Roman-Italic" w:hAnsi="Times-New-Roman-Italic"/><w:i/><w:sz w:val="16.000000"/><w:szCs w:val="12.000000"/></w:rPr><w:t xml:space="preserve">Name : </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="Times-New-Roman-Italic" w:hAnsi="Times-New-Roman-Italic"/><w:i/><w:sz w:val="14.100000"/><w:szCs w:val="10.575000"/></w:rPr><w:t xml:space="preserve">Father&apos;s </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="Arial" w:hAnsi="Arial"/><w:sz w:val="14.300000"/><w:szCs w:val="10.725000"/></w:rPr><w:t xml:space="preserve">: </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="Times-New-Roman-Italic" w:hAnsi="Times-New-Roman-Italic"/><w:i/><w:sz w:val="14.100000"/><w:szCs w:val="10.575000"/></w:rPr><w:t xml:space="preserve">Name </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="Times-New-Roman" w:hAnsi="Times-New-Roman"/><w:sz w:val="14.100000"/><w:szCs w:val="10.575000"/></w:rPr><w:t xml:space="preserve">1 </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="Times-New-Roman-Italic" w:hAnsi="Times-New-Roman-Italic"/><w:i/><w:sz w:val="16.000000"/><w:szCs w:val="12.000000"/></w:rPr><w:t xml:space="preserve">House No : Age : 43</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="NotoSans" w:hAnsi="NotoSans"/><w:sz w:val="14.100000"/><w:szCs w:val="10.575000"/></w:rPr><w:t xml:space="preserve">John</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:gridSpan w:val="2"/>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ </w:tr>
+ <w:tr>
+ <w:trPr/>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Arial" w:hAnsi="Arial"/><w:sz w:val="14.300000"/><w:szCs w:val="10.725000"/></w:rPr><w:t xml:space="preserve"> 16 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:gridSpan w:val="2"/>
+ <w:vMerge w:val="restart"/>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Times-New-Roman" w:hAnsi="Times-New-Roman"/><w:sz w:val="14.100000"/><w:szCs w:val="10.575000"/></w:rPr><w:t xml:space="preserve">04 </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="Times-New-Roman-Italic" w:hAnsi="Times-New-Roman-Italic"/><w:i/><w:sz w:val="16.000000"/><w:szCs w:val="12.000000"/></w:rPr><w:t xml:space="preserve">Sex : Female</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="NotoSans" w:hAnsi="NotoSans"/><w:sz w:val="15.900000"/><w:szCs w:val="11.925000"/></w:rPr><w:t xml:space="preserve">NEL0000016</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:sz w:val="14.100000"/><w:szCs w:val="10.575000"/></w:rPr><w:t xml:space="preserve"> </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="NotoSans" w:hAnsi="NotoSans"/><w:sz w:val="14.100000"/><w:szCs w:val="10.575000"/></w:rPr><w:t xml:space="preserve">Doe</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Arial" w:hAnsi="Arial"/><w:sz w:val="14.300000"/><w:szCs w:val="10.725000"/></w:rPr><w:t xml:space="preserve"> 17 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:gridSpan w:val="2"/>
+ <w:vMerge w:val="restart"/>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Times-New-Roman" w:hAnsi="Times-New-Roman"/><w:sz w:val="14.100000"/><w:szCs w:val="10.575000"/></w:rPr><w:t xml:space="preserve">19-B </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="Times-New-Roman-Italic" w:hAnsi="Times-New-Roman-Italic"/><w:i/><w:sz w:val="16.000000"/><w:szCs w:val="12.000000"/></w:rPr><w:t xml:space="preserve">Sex : Female</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="NotoSans" w:hAnsi="NotoSans"/><w:sz w:val="15.900000"/><w:szCs w:val="11.925000"/></w:rPr><w:t xml:space="preserve">NEL0000017</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:sz w:val="14.100000"/><w:szCs w:val="10.575000"/></w:rPr><w:t xml:space="preserve"> </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="NotoSans" w:hAnsi="NotoSans"/><w:sz w:val="14.100000"/><w:szCs w:val="10.575000"/></w:rPr><w:t xml:space="preserve">Doe</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Arial" w:hAnsi="Arial"/><w:sz w:val="14.300000"/><w:szCs w:val="10.725000"/></w:rPr><w:t xml:space="preserve"> 18 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:gridSpan w:val="2"/>
+ <w:vMerge w:val="restart"/>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Times-New-Roman" w:hAnsi="Times-New-Roman"/><w:sz w:val="14.100000"/><w:szCs w:val="10.575000"/></w:rPr><w:t xml:space="preserve">26 </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="Times-New-Roman-Italic" w:hAnsi="Times-New-Roman-Italic"/><w:i/><w:sz w:val="16.000000"/><w:szCs w:val="12.000000"/></w:rPr><w:t xml:space="preserve">Sex : Female</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="NotoSans" w:hAnsi="NotoSans"/><w:sz w:val="15.900000"/><w:szCs w:val="11.925000"/></w:rPr><w:t xml:space="preserve">NEL0000018</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:sz w:val="14.100000"/><w:szCs w:val="10.575000"/></w:rPr><w:t xml:space="preserve"> </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="NotoSans" w:hAnsi="NotoSans"/><w:sz w:val="14.100000"/><w:szCs w:val="10.575000"/></w:rPr><w:t xml:space="preserve">Doe</w:t></w:r>
+</w:p> </w:tc>
+ </w:tr>
+ <w:tr>
+ <w:trPr/>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Times-New-Roman-Italic" w:hAnsi="Times-New-Roman-Italic"/><w:i/><w:sz w:val="16.000000"/><w:szCs w:val="12.000000"/></w:rPr><w:t xml:space="preserve">Name : </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="Times-New-Roman-Italic" w:hAnsi="Times-New-Roman-Italic"/><w:i/><w:sz w:val="14.100000"/><w:szCs w:val="10.575000"/></w:rPr><w:t xml:space="preserve">Father&apos;s </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="Arial" w:hAnsi="Arial"/><w:sz w:val="14.300000"/><w:szCs w:val="10.725000"/></w:rPr><w:t xml:space="preserve">: </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="Times-New-Roman-Italic" w:hAnsi="Times-New-Roman-Italic"/><w:i/><w:sz w:val="14.100000"/><w:szCs w:val="10.575000"/></w:rPr><w:t xml:space="preserve">Name </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="Times-New-Roman" w:hAnsi="Times-New-Roman"/><w:sz w:val="14.100000"/><w:szCs w:val="10.575000"/></w:rPr><w:t xml:space="preserve">1 </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="Times-New-Roman-Italic" w:hAnsi="Times-New-Roman-Italic"/><w:i/><w:sz w:val="16.000000"/><w:szCs w:val="12.000000"/></w:rPr><w:t xml:space="preserve">House No : Age : 23</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="NotoSans" w:hAnsi="NotoSans"/><w:sz w:val="14.100000"/><w:szCs w:val="10.575000"/></w:rPr><w:t xml:space="preserve">Jane</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:gridSpan w:val="2"/>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Times-New-Roman-Italic" w:hAnsi="Times-New-Roman-Italic"/><w:i/><w:sz w:val="16.000000"/><w:szCs w:val="12.000000"/></w:rPr><w:t xml:space="preserve">Name : </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="Times-New-Roman-Italic" w:hAnsi="Times-New-Roman-Italic"/><w:i/><w:sz w:val="14.100000"/><w:szCs w:val="10.575000"/></w:rPr><w:t xml:space="preserve">Father&apos;s </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="Arial" w:hAnsi="Arial"/><w:sz w:val="14.300000"/><w:szCs w:val="10.725000"/></w:rPr><w:t xml:space="preserve">: </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="Times-New-Roman-Italic" w:hAnsi="Times-New-Roman-Italic"/><w:i/><w:sz w:val="14.100000"/><w:szCs w:val="10.575000"/></w:rPr><w:t xml:space="preserve">Name </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="Times-New-Roman" w:hAnsi="Times-New-Roman"/><w:sz w:val="14.100000"/><w:szCs w:val="10.575000"/></w:rPr><w:t xml:space="preserve">1 </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="Times-New-Roman-Italic" w:hAnsi="Times-New-Roman-Italic"/><w:i/><w:sz w:val="16.000000"/><w:szCs w:val="12.000000"/></w:rPr><w:t xml:space="preserve">House No : Age : 46</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="NotoSans" w:hAnsi="NotoSans"/><w:sz w:val="14.100000"/><w:szCs w:val="10.575000"/></w:rPr><w:t xml:space="preserve">Jane</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:gridSpan w:val="2"/>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Times-New-Roman-Italic" w:hAnsi="Times-New-Roman-Italic"/><w:i/><w:sz w:val="16.000000"/><w:szCs w:val="12.000000"/></w:rPr><w:t xml:space="preserve">Name : </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="Times-New-Roman-Italic" w:hAnsi="Times-New-Roman-Italic"/><w:i/><w:sz w:val="14.100000"/><w:szCs w:val="10.575000"/></w:rPr><w:t xml:space="preserve">Father&apos;s </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="Arial" w:hAnsi="Arial"/><w:sz w:val="14.300000"/><w:szCs w:val="10.725000"/></w:rPr><w:t xml:space="preserve">: </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="Times-New-Roman-Italic" w:hAnsi="Times-New-Roman-Italic"/><w:i/><w:sz w:val="14.100000"/><w:szCs w:val="10.575000"/></w:rPr><w:t xml:space="preserve">Name </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="Times-New-Roman" w:hAnsi="Times-New-Roman"/><w:sz w:val="14.100000"/><w:szCs w:val="10.575000"/></w:rPr><w:t xml:space="preserve">1 </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="Times-New-Roman-Italic" w:hAnsi="Times-New-Roman-Italic"/><w:i/><w:sz w:val="16.000000"/><w:szCs w:val="12.000000"/></w:rPr><w:t xml:space="preserve">House No : Age : 22</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="NotoSans" w:hAnsi="NotoSans"/><w:sz w:val="14.100000"/><w:szCs w:val="10.575000"/></w:rPr><w:t xml:space="preserve">Jane</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:gridSpan w:val="2"/>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ </w:tr>
+ <w:tr>
+ <w:trPr/>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Arial" w:hAnsi="Arial"/><w:sz w:val="14.300000"/><w:szCs w:val="10.725000"/></w:rPr><w:t xml:space="preserve"> 19 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:gridSpan w:val="2"/>
+ <w:vMerge w:val="restart"/>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Times-New-Roman" w:hAnsi="Times-New-Roman"/><w:sz w:val="14.100000"/><w:szCs w:val="10.575000"/></w:rPr><w:t xml:space="preserve">33 </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="Times-New-Roman-Italic" w:hAnsi="Times-New-Roman-Italic"/><w:i/><w:sz w:val="16.000000"/><w:szCs w:val="12.000000"/></w:rPr><w:t xml:space="preserve">Sex : Male</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="NotoSans" w:hAnsi="NotoSans"/><w:sz w:val="15.900000"/><w:szCs w:val="11.925000"/></w:rPr><w:t xml:space="preserve">NEL0000019</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="NotoSans" w:hAnsi="NotoSans"/><w:sz w:val="14.100000"/><w:szCs w:val="10.575000"/></w:rPr><w:t xml:space="preserve">n</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:sz w:val="14.100000"/><w:szCs w:val="10.575000"/></w:rPr><w:t xml:space="preserve"> </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="NotoSans" w:hAnsi="NotoSans"/><w:sz w:val="14.100000"/><w:szCs w:val="10.575000"/></w:rPr><w:t xml:space="preserve">Doe</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Arial" w:hAnsi="Arial"/><w:sz w:val="14.300000"/><w:szCs w:val="10.725000"/></w:rPr><w:t xml:space="preserve"> 20 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:gridSpan w:val="2"/>
+ <w:vMerge w:val="restart"/>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Times-New-Roman" w:hAnsi="Times-New-Roman"/><w:sz w:val="14.100000"/><w:szCs w:val="10.575000"/></w:rPr><w:t xml:space="preserve">43 </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="Times-New-Roman-Italic" w:hAnsi="Times-New-Roman-Italic"/><w:i/><w:sz w:val="16.000000"/><w:szCs w:val="12.000000"/></w:rPr><w:t xml:space="preserve">Sex : Male</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="NotoSans" w:hAnsi="NotoSans"/><w:sz w:val="15.900000"/><w:szCs w:val="11.925000"/></w:rPr><w:t xml:space="preserve">NEL0000020</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:sz w:val="14.100000"/><w:szCs w:val="10.575000"/></w:rPr><w:t xml:space="preserve"> </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="NotoSans" w:hAnsi="NotoSans"/><w:sz w:val="14.100000"/><w:szCs w:val="10.575000"/></w:rPr><w:t xml:space="preserve">Doe</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Arial" w:hAnsi="Arial"/><w:sz w:val="14.300000"/><w:szCs w:val="10.725000"/></w:rPr><w:t xml:space="preserve"> 21 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:gridSpan w:val="2"/>
+ <w:vMerge w:val="restart"/>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Times-New-Roman" w:hAnsi="Times-New-Roman"/><w:sz w:val="14.100000"/><w:szCs w:val="10.575000"/></w:rPr><w:t xml:space="preserve">45 </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="Times-New-Roman-Italic" w:hAnsi="Times-New-Roman-Italic"/><w:i/><w:sz w:val="16.000000"/><w:szCs w:val="12.000000"/></w:rPr><w:t xml:space="preserve">Sex : Male</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="NotoSans" w:hAnsi="NotoSans"/><w:sz w:val="15.900000"/><w:szCs w:val="11.925000"/></w:rPr><w:t xml:space="preserve">NEL0000021</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:sz w:val="14.100000"/><w:szCs w:val="10.575000"/></w:rPr><w:t xml:space="preserve"> </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="NotoSans" w:hAnsi="NotoSans"/><w:sz w:val="14.100000"/><w:szCs w:val="10.575000"/></w:rPr><w:t xml:space="preserve">Doe</w:t></w:r>
+</w:p> </w:tc>
+ </w:tr>
+ <w:tr>
+ <w:trPr/>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Times-New-Roman-Italic" w:hAnsi="Times-New-Roman-Italic"/><w:i/><w:sz w:val="16.000000"/><w:szCs w:val="12.000000"/></w:rPr><w:t xml:space="preserve">Name : </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="Times-New-Roman-Italic" w:hAnsi="Times-New-Roman-Italic"/><w:i/><w:sz w:val="14.100000"/><w:szCs w:val="10.575000"/></w:rPr><w:t xml:space="preserve">Father&apos;s </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="Arial" w:hAnsi="Arial"/><w:sz w:val="14.300000"/><w:szCs w:val="10.725000"/></w:rPr><w:t xml:space="preserve">: </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="Times-New-Roman-Italic" w:hAnsi="Times-New-Roman-Italic"/><w:i/><w:sz w:val="14.100000"/><w:szCs w:val="10.575000"/></w:rPr><w:t xml:space="preserve">Name </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="Times-New-Roman" w:hAnsi="Times-New-Roman"/><w:sz w:val="14.100000"/><w:szCs w:val="10.575000"/></w:rPr><w:t xml:space="preserve">1 </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="Times-New-Roman-Italic" w:hAnsi="Times-New-Roman-Italic"/><w:i/><w:sz w:val="16.000000"/><w:szCs w:val="12.000000"/></w:rPr><w:t xml:space="preserve">House No : Age : 29</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="NotoSans" w:hAnsi="NotoSans"/><w:sz w:val="14.100000"/><w:szCs w:val="10.575000"/></w:rPr><w:t xml:space="preserve">Joh</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:gridSpan w:val="2"/>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Times-New-Roman-Italic" w:hAnsi="Times-New-Roman-Italic"/><w:i/><w:sz w:val="16.000000"/><w:szCs w:val="12.000000"/></w:rPr><w:t xml:space="preserve">Name : </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="Times-New-Roman-Italic" w:hAnsi="Times-New-Roman-Italic"/><w:i/><w:sz w:val="14.100000"/><w:szCs w:val="10.575000"/></w:rPr><w:t xml:space="preserve">Father&apos;s </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="Arial" w:hAnsi="Arial"/><w:sz w:val="14.300000"/><w:szCs w:val="10.725000"/></w:rPr><w:t xml:space="preserve">: </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="Times-New-Roman-Italic" w:hAnsi="Times-New-Roman-Italic"/><w:i/><w:sz w:val="14.100000"/><w:szCs w:val="10.575000"/></w:rPr><w:t xml:space="preserve">Name </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="Times-New-Roman" w:hAnsi="Times-New-Roman"/><w:sz w:val="14.100000"/><w:szCs w:val="10.575000"/></w:rPr><w:t xml:space="preserve">1 </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="Times-New-Roman-Italic" w:hAnsi="Times-New-Roman-Italic"/><w:i/><w:sz w:val="16.000000"/><w:szCs w:val="12.000000"/></w:rPr><w:t xml:space="preserve">House No : Age : 25</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="NotoSans" w:hAnsi="NotoSans"/><w:sz w:val="14.100000"/><w:szCs w:val="10.575000"/></w:rPr><w:t xml:space="preserve">John</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:gridSpan w:val="2"/>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Times-New-Roman-Italic" w:hAnsi="Times-New-Roman-Italic"/><w:i/><w:sz w:val="16.000000"/><w:szCs w:val="12.000000"/></w:rPr><w:t xml:space="preserve">Name : </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="Times-New-Roman-Italic" w:hAnsi="Times-New-Roman-Italic"/><w:i/><w:sz w:val="14.100000"/><w:szCs w:val="10.575000"/></w:rPr><w:t xml:space="preserve">Father&apos;s </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="Arial" w:hAnsi="Arial"/><w:sz w:val="14.300000"/><w:szCs w:val="10.725000"/></w:rPr><w:t xml:space="preserve">: </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="Times-New-Roman-Italic" w:hAnsi="Times-New-Roman-Italic"/><w:i/><w:sz w:val="14.100000"/><w:szCs w:val="10.575000"/></w:rPr><w:t xml:space="preserve">Name </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="Times-New-Roman" w:hAnsi="Times-New-Roman"/><w:sz w:val="14.100000"/><w:szCs w:val="10.575000"/></w:rPr><w:t xml:space="preserve">1 </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="Times-New-Roman-Italic" w:hAnsi="Times-New-Roman-Italic"/><w:i/><w:sz w:val="16.000000"/><w:szCs w:val="12.000000"/></w:rPr><w:t xml:space="preserve">House No : Age : 47</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="NotoSans" w:hAnsi="NotoSans"/><w:sz w:val="14.100000"/><w:szCs w:val="10.575000"/></w:rPr><w:t xml:space="preserve">John</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:gridSpan w:val="2"/>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ </w:tr>
+ <w:tr>
+ <w:trPr/>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Arial" w:hAnsi="Arial"/><w:sz w:val="14.300000"/><w:szCs w:val="10.725000"/></w:rPr><w:t xml:space="preserve"> 22 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:gridSpan w:val="2"/>
+ <w:vMerge w:val="restart"/>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Times-New-Roman" w:hAnsi="Times-New-Roman"/><w:sz w:val="14.100000"/><w:szCs w:val="10.575000"/></w:rPr><w:t xml:space="preserve">47 </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="Times-New-Roman-Italic" w:hAnsi="Times-New-Roman-Italic"/><w:i/><w:sz w:val="16.000000"/><w:szCs w:val="12.000000"/></w:rPr><w:t xml:space="preserve">Sex : Female</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="NotoSans" w:hAnsi="NotoSans"/><w:sz w:val="15.900000"/><w:szCs w:val="11.925000"/></w:rPr><w:t xml:space="preserve">NEL0000022</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:sz w:val="14.100000"/><w:szCs w:val="10.575000"/></w:rPr><w:t xml:space="preserve"> </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="NotoSans" w:hAnsi="NotoSans"/><w:sz w:val="14.100000"/><w:szCs w:val="10.575000"/></w:rPr><w:t xml:space="preserve">Doe</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Arial" w:hAnsi="Arial"/><w:sz w:val="14.300000"/><w:szCs w:val="10.725000"/></w:rPr><w:t xml:space="preserve"> 23 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:gridSpan w:val="2"/>
+ <w:vMerge w:val="restart"/>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Times-New-Roman" w:hAnsi="Times-New-Roman"/><w:sz w:val="14.100000"/><w:szCs w:val="10.575000"/></w:rPr><w:t xml:space="preserve">51 </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="Times-New-Roman-Italic" w:hAnsi="Times-New-Roman-Italic"/><w:i/><w:sz w:val="16.000000"/><w:szCs w:val="12.000000"/></w:rPr><w:t xml:space="preserve">Sex : Male</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="NotoSans" w:hAnsi="NotoSans"/><w:sz w:val="15.900000"/><w:szCs w:val="11.925000"/></w:rPr><w:t xml:space="preserve">NEL0000023</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:sz w:val="14.100000"/><w:szCs w:val="10.575000"/></w:rPr><w:t xml:space="preserve"> </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="NotoSans" w:hAnsi="NotoSans"/><w:sz w:val="14.100000"/><w:szCs w:val="10.575000"/></w:rPr><w:t xml:space="preserve">Doe</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Arial" w:hAnsi="Arial"/><w:sz w:val="14.300000"/><w:szCs w:val="10.725000"/></w:rPr><w:t xml:space="preserve"> 24 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:gridSpan w:val="2"/>
+ <w:vMerge w:val="restart"/>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Times-New-Roman" w:hAnsi="Times-New-Roman"/><w:sz w:val="14.100000"/><w:szCs w:val="10.575000"/></w:rPr><w:t xml:space="preserve">55 </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="Times-New-Roman-Italic" w:hAnsi="Times-New-Roman-Italic"/><w:i/><w:sz w:val="16.000000"/><w:szCs w:val="12.000000"/></w:rPr><w:t xml:space="preserve">Sex : Female</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="NotoSans" w:hAnsi="NotoSans"/><w:sz w:val="15.900000"/><w:szCs w:val="11.925000"/></w:rPr><w:t xml:space="preserve">NEL0000024</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:sz w:val="14.100000"/><w:szCs w:val="10.575000"/></w:rPr><w:t xml:space="preserve"> </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="NotoSans" w:hAnsi="NotoSans"/><w:sz w:val="14.100000"/><w:szCs w:val="10.575000"/></w:rPr><w:t xml:space="preserve">Doe</w:t></w:r>
+</w:p> </w:tc>
+ </w:tr>
+ <w:tr>
+ <w:trPr/>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Times-New-Roman-Italic" w:hAnsi="Times-New-Roman-Italic"/><w:i/><w:sz w:val="16.000000"/><w:szCs w:val="12.000000"/></w:rPr><w:t xml:space="preserve">Name : </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="Times-New-Roman-Italic" w:hAnsi="Times-New-Roman-Italic"/><w:i/><w:sz w:val="14.100000"/><w:szCs w:val="10.575000"/></w:rPr><w:t xml:space="preserve">Father&apos;s </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="Arial" w:hAnsi="Arial"/><w:sz w:val="14.300000"/><w:szCs w:val="10.725000"/></w:rPr><w:t xml:space="preserve">: </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="Times-New-Roman-Italic" w:hAnsi="Times-New-Roman-Italic"/><w:i/><w:sz w:val="14.100000"/><w:szCs w:val="10.575000"/></w:rPr><w:t xml:space="preserve">Name </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="Times-New-Roman" w:hAnsi="Times-New-Roman"/><w:sz w:val="14.100000"/><w:szCs w:val="10.575000"/></w:rPr><w:t xml:space="preserve">1 </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="Times-New-Roman-Italic" w:hAnsi="Times-New-Roman-Italic"/><w:i/><w:sz w:val="16.000000"/><w:szCs w:val="12.000000"/></w:rPr><w:t xml:space="preserve">House No : Age : 20</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="NotoSans" w:hAnsi="NotoSans"/><w:sz w:val="14.100000"/><w:szCs w:val="10.575000"/></w:rPr><w:t xml:space="preserve">Jane</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:gridSpan w:val="2"/>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Times-New-Roman-Italic" w:hAnsi="Times-New-Roman-Italic"/><w:i/><w:sz w:val="16.000000"/><w:szCs w:val="12.000000"/></w:rPr><w:t xml:space="preserve">Name : </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="Times-New-Roman-Italic" w:hAnsi="Times-New-Roman-Italic"/><w:i/><w:sz w:val="14.100000"/><w:szCs w:val="10.575000"/></w:rPr><w:t xml:space="preserve">Mother&apos;s </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="Arial" w:hAnsi="Arial"/><w:sz w:val="14.300000"/><w:szCs w:val="10.725000"/></w:rPr><w:t xml:space="preserve">: </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="Times-New-Roman-Italic" w:hAnsi="Times-New-Roman-Italic"/><w:i/><w:sz w:val="14.100000"/><w:szCs w:val="10.575000"/></w:rPr><w:t xml:space="preserve">Name </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="Times-New-Roman" w:hAnsi="Times-New-Roman"/><w:sz w:val="14.100000"/><w:szCs w:val="10.575000"/></w:rPr><w:t xml:space="preserve">1 </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="Times-New-Roman-Italic" w:hAnsi="Times-New-Roman-Italic"/><w:i/><w:sz w:val="16.000000"/><w:szCs w:val="12.000000"/></w:rPr><w:t xml:space="preserve">House No : Age : 24</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="NotoSans" w:hAnsi="NotoSans"/><w:sz w:val="14.100000"/><w:szCs w:val="10.575000"/></w:rPr><w:t xml:space="preserve">John</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:gridSpan w:val="2"/>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Times-New-Roman-Italic" w:hAnsi="Times-New-Roman-Italic"/><w:i/><w:sz w:val="16.000000"/><w:szCs w:val="12.000000"/></w:rPr><w:t xml:space="preserve">Name : </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="Times-New-Roman-Italic" w:hAnsi="Times-New-Roman-Italic"/><w:i/><w:sz w:val="14.100000"/><w:szCs w:val="10.575000"/></w:rPr><w:t xml:space="preserve">Father&apos;s </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="Arial" w:hAnsi="Arial"/><w:sz w:val="14.300000"/><w:szCs w:val="10.725000"/></w:rPr><w:t xml:space="preserve">: </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="Times-New-Roman-Italic" w:hAnsi="Times-New-Roman-Italic"/><w:i/><w:sz w:val="14.100000"/><w:szCs w:val="10.575000"/></w:rPr><w:t xml:space="preserve">Name </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="Times-New-Roman" w:hAnsi="Times-New-Roman"/><w:sz w:val="14.100000"/><w:szCs w:val="10.575000"/></w:rPr><w:t xml:space="preserve">1 </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="Times-New-Roman-Italic" w:hAnsi="Times-New-Roman-Italic"/><w:i/><w:sz w:val="16.000000"/><w:szCs w:val="12.000000"/></w:rPr><w:t xml:space="preserve">House No : Age : 21</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="NotoSans" w:hAnsi="NotoSans"/><w:sz w:val="14.100000"/><w:szCs w:val="10.575000"/></w:rPr><w:t xml:space="preserve">Jane</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:gridSpan w:val="2"/>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ </w:tr>
+ <w:tr>
+ <w:trPr/>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Arial" w:hAnsi="Arial"/><w:sz w:val="14.300000"/><w:szCs w:val="10.725000"/></w:rPr><w:t xml:space="preserve"> 25 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:gridSpan w:val="2"/>
+ <w:vMerge w:val="restart"/>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Times-New-Roman" w:hAnsi="Times-New-Roman"/><w:sz w:val="14.100000"/><w:szCs w:val="10.575000"/></w:rPr><w:t xml:space="preserve">78 </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="Times-New-Roman-Italic" w:hAnsi="Times-New-Roman-Italic"/><w:i/><w:sz w:val="16.000000"/><w:szCs w:val="12.000000"/></w:rPr><w:t xml:space="preserve">Sex : Male</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="NotoSans" w:hAnsi="NotoSans"/><w:sz w:val="15.900000"/><w:szCs w:val="11.925000"/></w:rPr><w:t xml:space="preserve">NEL0000025</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="NotoSans" w:hAnsi="NotoSans"/><w:sz w:val="14.100000"/><w:szCs w:val="10.575000"/></w:rPr><w:t xml:space="preserve">n</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:sz w:val="14.100000"/><w:szCs w:val="10.575000"/></w:rPr><w:t xml:space="preserve"> </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="NotoSans" w:hAnsi="NotoSans"/><w:sz w:val="14.100000"/><w:szCs w:val="10.575000"/></w:rPr><w:t xml:space="preserve">Doe</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Arial" w:hAnsi="Arial"/><w:sz w:val="14.300000"/><w:szCs w:val="10.725000"/></w:rPr><w:t xml:space="preserve"> 26 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:gridSpan w:val="2"/>
+ <w:vMerge w:val="restart"/>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Times-New-Roman" w:hAnsi="Times-New-Roman"/><w:sz w:val="14.100000"/><w:szCs w:val="10.575000"/></w:rPr><w:t xml:space="preserve">78 </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="Times-New-Roman-Italic" w:hAnsi="Times-New-Roman-Italic"/><w:i/><w:sz w:val="16.000000"/><w:szCs w:val="12.000000"/></w:rPr><w:t xml:space="preserve">Sex : Female</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="NotoSans" w:hAnsi="NotoSans"/><w:sz w:val="15.900000"/><w:szCs w:val="11.925000"/></w:rPr><w:t xml:space="preserve">NEL0000026</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:sz w:val="14.100000"/><w:szCs w:val="10.575000"/></w:rPr><w:t xml:space="preserve"> </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="NotoSans" w:hAnsi="NotoSans"/><w:sz w:val="14.100000"/><w:szCs w:val="10.575000"/></w:rPr><w:t xml:space="preserve">Doe</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Arial" w:hAnsi="Arial"/><w:sz w:val="14.300000"/><w:szCs w:val="10.725000"/></w:rPr><w:t xml:space="preserve"> 27 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:gridSpan w:val="2"/>
+ <w:vMerge w:val="restart"/>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Times-New-Roman" w:hAnsi="Times-New-Roman"/><w:sz w:val="14.100000"/><w:szCs w:val="10.575000"/></w:rPr><w:t xml:space="preserve">94 </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="Times-New-Roman-Italic" w:hAnsi="Times-New-Roman-Italic"/><w:i/><w:sz w:val="16.000000"/><w:szCs w:val="12.000000"/></w:rPr><w:t xml:space="preserve">Sex : Male</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="NotoSans" w:hAnsi="NotoSans"/><w:sz w:val="15.900000"/><w:szCs w:val="11.925000"/></w:rPr><w:t xml:space="preserve">NEL0000027</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:sz w:val="14.100000"/><w:szCs w:val="10.575000"/></w:rPr><w:t xml:space="preserve"> </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="NotoSans" w:hAnsi="NotoSans"/><w:sz w:val="14.100000"/><w:szCs w:val="10.575000"/></w:rPr><w:t xml:space="preserve">Doe</w:t></w:r>
+</w:p> </w:tc>
+ </w:tr>
+ <w:tr>
+ <w:trPr/>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Times-New-Roman-Italic" w:hAnsi="Times-New-Roman-Italic"/><w:i/><w:sz w:val="16.000000"/><w:szCs w:val="12.000000"/></w:rPr><w:t xml:space="preserve">Name : </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="Times-New-Roman-Italic" w:hAnsi="Times-New-Roman-Italic"/><w:i/><w:sz w:val="14.100000"/><w:szCs w:val="10.575000"/></w:rPr><w:t xml:space="preserve">Father&apos;s </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="Arial" w:hAnsi="Arial"/><w:sz w:val="14.300000"/><w:szCs w:val="10.725000"/></w:rPr><w:t xml:space="preserve">: </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="Times-New-Roman-Italic" w:hAnsi="Times-New-Roman-Italic"/><w:i/><w:sz w:val="14.100000"/><w:szCs w:val="10.575000"/></w:rPr><w:t xml:space="preserve">Name </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="Times-New-Roman" w:hAnsi="Times-New-Roman"/><w:sz w:val="14.100000"/><w:szCs w:val="10.575000"/></w:rPr><w:t xml:space="preserve">1 </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="Times-New-Roman-Italic" w:hAnsi="Times-New-Roman-Italic"/><w:i/><w:sz w:val="16.000000"/><w:szCs w:val="12.000000"/></w:rPr><w:t xml:space="preserve">House No : Age : 41</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="NotoSans" w:hAnsi="NotoSans"/><w:sz w:val="14.100000"/><w:szCs w:val="10.575000"/></w:rPr><w:t xml:space="preserve">Joh</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:gridSpan w:val="2"/>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Times-New-Roman-Italic" w:hAnsi="Times-New-Roman-Italic"/><w:i/><w:sz w:val="16.000000"/><w:szCs w:val="12.000000"/></w:rPr><w:t xml:space="preserve">Name : </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="Times-New-Roman-Italic" w:hAnsi="Times-New-Roman-Italic"/><w:i/><w:sz w:val="14.100000"/><w:szCs w:val="10.575000"/></w:rPr><w:t xml:space="preserve">Husband&apos;s </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="Arial" w:hAnsi="Arial"/><w:sz w:val="14.300000"/><w:szCs w:val="10.725000"/></w:rPr><w:t xml:space="preserve">: </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="Times-New-Roman-Italic" w:hAnsi="Times-New-Roman-Italic"/><w:i/><w:sz w:val="14.100000"/><w:szCs w:val="10.575000"/></w:rPr><w:t xml:space="preserve">Name </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="Times-New-Roman" w:hAnsi="Times-New-Roman"/><w:sz w:val="14.100000"/><w:szCs w:val="10.575000"/></w:rPr><w:t xml:space="preserve">1 </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="Times-New-Roman-Italic" w:hAnsi="Times-New-Roman-Italic"/><w:i/><w:sz w:val="16.000000"/><w:szCs w:val="12.000000"/></w:rPr><w:t xml:space="preserve">House No : Age : 35</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="NotoSans" w:hAnsi="NotoSans"/><w:sz w:val="14.100000"/><w:szCs w:val="10.575000"/></w:rPr><w:t xml:space="preserve">Jane</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:gridSpan w:val="2"/>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Times-New-Roman-Italic" w:hAnsi="Times-New-Roman-Italic"/><w:i/><w:sz w:val="16.000000"/><w:szCs w:val="12.000000"/></w:rPr><w:t xml:space="preserve">Name : </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="Times-New-Roman-Italic" w:hAnsi="Times-New-Roman-Italic"/><w:i/><w:sz w:val="14.100000"/><w:szCs w:val="10.575000"/></w:rPr><w:t xml:space="preserve">Father&apos;s </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="Arial" w:hAnsi="Arial"/><w:sz w:val="14.300000"/><w:szCs w:val="10.725000"/></w:rPr><w:t xml:space="preserve">: </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="Times-New-Roman-Italic" w:hAnsi="Times-New-Roman-Italic"/><w:i/><w:sz w:val="14.100000"/><w:szCs w:val="10.575000"/></w:rPr><w:t xml:space="preserve">Name </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="Times-New-Roman" w:hAnsi="Times-New-Roman"/><w:sz w:val="14.100000"/><w:szCs w:val="10.575000"/></w:rPr><w:t xml:space="preserve">1 </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="Times-New-Roman-Italic" w:hAnsi="Times-New-Roman-Italic"/><w:i/><w:sz w:val="16.000000"/><w:szCs w:val="12.000000"/></w:rPr><w:t xml:space="preserve">House No : Age : 59</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="NotoSans" w:hAnsi="NotoSans"/><w:sz w:val="14.100000"/><w:szCs w:val="10.575000"/></w:rPr><w:t xml:space="preserve">John</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:gridSpan w:val="2"/>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ </w:tr>
+ <w:tr>
+ <w:trPr/>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Arial" w:hAnsi="Arial"/><w:sz w:val="14.300000"/><w:szCs w:val="10.725000"/></w:rPr><w:t xml:space="preserve"> 28 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:gridSpan w:val="2"/>
+ <w:vMerge w:val="restart"/>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Times-New-Roman" w:hAnsi="Times-New-Roman"/><w:sz w:val="14.100000"/><w:szCs w:val="10.575000"/></w:rPr><w:t xml:space="preserve">95 </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="Times-New-Roman-Italic" w:hAnsi="Times-New-Roman-Italic"/><w:i/><w:sz w:val="16.000000"/><w:szCs w:val="12.000000"/></w:rPr><w:t xml:space="preserve">Sex : Female</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="NotoSans" w:hAnsi="NotoSans"/><w:sz w:val="15.900000"/><w:szCs w:val="11.925000"/></w:rPr><w:t xml:space="preserve">NEL0000028</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:sz w:val="14.100000"/><w:szCs w:val="10.575000"/></w:rPr><w:t xml:space="preserve"> </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="NotoSans" w:hAnsi="NotoSans"/><w:sz w:val="14.100000"/><w:szCs w:val="10.575000"/></w:rPr><w:t xml:space="preserve">Doe</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Arial" w:hAnsi="Arial"/><w:sz w:val="14.300000"/><w:szCs w:val="10.725000"/></w:rPr><w:t xml:space="preserve"> 29 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:gridSpan w:val="2"/>
+ <w:vMerge w:val="restart"/>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Times-New-Roman" w:hAnsi="Times-New-Roman"/><w:sz w:val="14.100000"/><w:szCs w:val="10.575000"/></w:rPr><w:t xml:space="preserve">95 </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="Times-New-Roman-Italic" w:hAnsi="Times-New-Roman-Italic"/><w:i/><w:sz w:val="16.000000"/><w:szCs w:val="12.000000"/></w:rPr><w:t xml:space="preserve">Sex : Female</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="NotoSans" w:hAnsi="NotoSans"/><w:sz w:val="15.900000"/><w:szCs w:val="11.925000"/></w:rPr><w:t xml:space="preserve">NEL0000029</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:sz w:val="14.100000"/><w:szCs w:val="10.575000"/></w:rPr><w:t xml:space="preserve"> </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="NotoSans" w:hAnsi="NotoSans"/><w:sz w:val="14.100000"/><w:szCs w:val="10.575000"/></w:rPr><w:t xml:space="preserve">Doe</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Arial" w:hAnsi="Arial"/><w:sz w:val="14.300000"/><w:szCs w:val="10.725000"/></w:rPr><w:t xml:space="preserve"> 30 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:gridSpan w:val="2"/>
+ <w:vMerge w:val="restart"/>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Times-New-Roman" w:hAnsi="Times-New-Roman"/><w:sz w:val="14.100000"/><w:szCs w:val="10.575000"/></w:rPr><w:t xml:space="preserve">01 </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="Times-New-Roman-Italic" w:hAnsi="Times-New-Roman-Italic"/><w:i/><w:sz w:val="16.000000"/><w:szCs w:val="12.000000"/></w:rPr><w:t xml:space="preserve">Sex : Male</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="NotoSans" w:hAnsi="NotoSans"/><w:sz w:val="15.900000"/><w:szCs w:val="11.925000"/></w:rPr><w:t xml:space="preserve">NEL0000030</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:sz w:val="14.100000"/><w:szCs w:val="10.575000"/></w:rPr><w:t xml:space="preserve"> </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="NotoSans" w:hAnsi="NotoSans"/><w:sz w:val="14.100000"/><w:szCs w:val="10.575000"/></w:rPr><w:t xml:space="preserve">Doe</w:t></w:r>
+</w:p> </w:tc>
+ </w:tr>
+ <w:tr>
+ <w:trPr/>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Times-New-Roman-Italic" w:hAnsi="Times-New-Roman-Italic"/><w:i/><w:sz w:val="16.000000"/><w:szCs w:val="12.000000"/></w:rPr><w:t xml:space="preserve">Name : </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="Times-New-Roman-Italic" w:hAnsi="Times-New-Roman-Italic"/><w:i/><w:sz w:val="14.100000"/><w:szCs w:val="10.575000"/></w:rPr><w:t xml:space="preserve">Husband&apos;s </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="Arial" w:hAnsi="Arial"/><w:sz w:val="14.300000"/><w:szCs w:val="10.725000"/></w:rPr><w:t xml:space="preserve">: </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="Times-New-Roman-Italic" w:hAnsi="Times-New-Roman-Italic"/><w:i/><w:sz w:val="14.100000"/><w:szCs w:val="10.575000"/></w:rPr><w:t xml:space="preserve">Name </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="Times-New-Roman" w:hAnsi="Times-New-Roman"/><w:sz w:val="14.100000"/><w:szCs w:val="10.575000"/></w:rPr><w:t xml:space="preserve">1 </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="Times-New-Roman-Italic" w:hAnsi="Times-New-Roman-Italic"/><w:i/><w:sz w:val="16.000000"/><w:szCs w:val="12.000000"/></w:rPr><w:t xml:space="preserve">House No : Age : 33</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="NotoSans" w:hAnsi="NotoSans"/><w:sz w:val="14.100000"/><w:szCs w:val="10.575000"/></w:rPr><w:t xml:space="preserve">Jane</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:gridSpan w:val="2"/>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Times-New-Roman-Italic" w:hAnsi="Times-New-Roman-Italic"/><w:i/><w:sz w:val="16.000000"/><w:szCs w:val="12.000000"/></w:rPr><w:t xml:space="preserve">Name : </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="Times-New-Roman-Italic" w:hAnsi="Times-New-Roman-Italic"/><w:i/><w:sz w:val="14.100000"/><w:szCs w:val="10.575000"/></w:rPr><w:t xml:space="preserve">Husband&apos;s </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="Arial" w:hAnsi="Arial"/><w:sz w:val="14.300000"/><w:szCs w:val="10.725000"/></w:rPr><w:t xml:space="preserve">: </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="Times-New-Roman-Italic" w:hAnsi="Times-New-Roman-Italic"/><w:i/><w:sz w:val="14.100000"/><w:szCs w:val="10.575000"/></w:rPr><w:t xml:space="preserve">Name </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="Times-New-Roman" w:hAnsi="Times-New-Roman"/><w:sz w:val="14.100000"/><w:szCs w:val="10.575000"/></w:rPr><w:t xml:space="preserve">1 </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="Times-New-Roman-Italic" w:hAnsi="Times-New-Roman-Italic"/><w:i/><w:sz w:val="16.000000"/><w:szCs w:val="12.000000"/></w:rPr><w:t xml:space="preserve">House No : Age : 28</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="NotoSans" w:hAnsi="NotoSans"/><w:sz w:val="14.100000"/><w:szCs w:val="10.575000"/></w:rPr><w:t xml:space="preserve">Jane</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:gridSpan w:val="2"/>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Times-New-Roman-Italic" w:hAnsi="Times-New-Roman-Italic"/><w:i/><w:sz w:val="16.000000"/><w:szCs w:val="12.000000"/></w:rPr><w:t xml:space="preserve">Name : </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="Times-New-Roman-Italic" w:hAnsi="Times-New-Roman-Italic"/><w:i/><w:sz w:val="14.100000"/><w:szCs w:val="10.575000"/></w:rPr><w:t xml:space="preserve">Father&apos;s </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="Arial" w:hAnsi="Arial"/><w:sz w:val="14.300000"/><w:szCs w:val="10.725000"/></w:rPr><w:t xml:space="preserve">: </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="Times-New-Roman-Italic" w:hAnsi="Times-New-Roman-Italic"/><w:i/><w:sz w:val="14.100000"/><w:szCs w:val="10.575000"/></w:rPr><w:t xml:space="preserve">Name </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="Times-New-Roman" w:hAnsi="Times-New-Roman"/><w:sz w:val="14.100000"/><w:szCs w:val="10.575000"/></w:rPr><w:t xml:space="preserve">2 </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="Times-New-Roman-Italic" w:hAnsi="Times-New-Roman-Italic"/><w:i/><w:sz w:val="16.000000"/><w:szCs w:val="12.000000"/></w:rPr><w:t xml:space="preserve">House No : Age : 45</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="NotoSans" w:hAnsi="NotoSans"/><w:sz w:val="14.100000"/><w:szCs w:val="10.575000"/></w:rPr><w:t xml:space="preserve">John</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:gridSpan w:val="2"/>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ </w:tr>
+ </w:tbl>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Times-New-Roman" w:hAnsi="Times-New-Roman"/><w:sz w:val="14.100000"/><w:szCs w:val="10.575000"/></w:rPr><w:t xml:space="preserve">S-Shifted, E-Expired, M-Missing, Q- Disqualification, R-Duplicate </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="Times-New-Roman" w:hAnsi="Times-New-Roman"/><w:sz w:val="16.000000"/><w:szCs w:val="12.000000"/></w:rPr><w:t xml:space="preserve">Page 3 of 33 Age as on 01-01-2016 Issued By Electoral Registration Officer</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="NotoSans" w:hAnsi="NotoSans"/><w:sz w:val="19.500000"/><w:szCs w:val="14.625000"/></w:rPr><w:t xml:space="preserve">Electoral</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:sz w:val="19.500000"/><w:szCs w:val="14.625000"/></w:rPr><w:t xml:space="preserve"> </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="NotoSans" w:hAnsi="NotoSans"/><w:sz w:val="19.500000"/><w:szCs w:val="14.625000"/></w:rPr><w:t xml:space="preserve">Roll,</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:sz w:val="19.500000"/><w:szCs w:val="14.625000"/></w:rPr><w:t xml:space="preserve"> </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="NotoSans" w:hAnsi="NotoSans"/><w:sz w:val="19.500000"/><w:szCs w:val="14.625000"/></w:rPr><w:t xml:space="preserve">2016</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:sz w:val="19.500000"/><w:szCs w:val="14.625000"/></w:rPr><w:t xml:space="preserve"> </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="NotoSans" w:hAnsi="NotoSans"/><w:sz w:val="19.500000"/><w:szCs w:val="14.625000"/></w:rPr><w:t xml:space="preserve">of</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:sz w:val="19.500000"/><w:szCs w:val="14.625000"/></w:rPr><w:t xml:space="preserve"> </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="NotoSans" w:hAnsi="NotoSans"/><w:sz w:val="19.500000"/><w:szCs w:val="14.625000"/></w:rPr><w:t xml:space="preserve">Assembly</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:sz w:val="19.500000"/><w:szCs w:val="14.625000"/></w:rPr><w:t xml:space="preserve"> </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="NotoSans" w:hAnsi="NotoSans"/><w:sz w:val="19.500000"/><w:szCs w:val="14.625000"/></w:rPr><w:t xml:space="preserve">Constituency</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:sz w:val="19.500000"/><w:szCs w:val="14.625000"/></w:rPr><w:t xml:space="preserve"> </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="NotoSans" w:hAnsi="NotoSans"/><w:sz w:val="19.500000"/><w:szCs w:val="14.625000"/></w:rPr><w:t xml:space="preserve"></w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:sz w:val="19.500000"/><w:szCs w:val="14.625000"/></w:rPr><w:t xml:space="preserve"> </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="NotoSans" w:hAnsi="NotoSans"/><w:sz w:val="19.500000"/><w:szCs w:val="14.625000"/></w:rPr><w:t xml:space="preserve">VIKASPURI,</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:sz w:val="19.500000"/><w:szCs w:val="14.625000"/></w:rPr><w:t xml:space="preserve"> </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="NotoSans" w:hAnsi="NotoSans"/><w:sz w:val="19.500000"/><w:szCs w:val="14.625000"/></w:rPr><w:t xml:space="preserve">(GEN)</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:sz w:val="19.500000"/><w:szCs w:val="14.625000"/></w:rPr><w:t xml:space="preserve"> </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="NotoSans" w:hAnsi="NotoSans"/><w:sz w:val="19.500000"/><w:szCs w:val="14.625000"/></w:rPr><w:t xml:space="preserve">NCT</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:sz w:val="19.500000"/><w:szCs w:val="14.625000"/></w:rPr><w:t xml:space="preserve"> </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="NotoSans" w:hAnsi="NotoSans"/><w:sz w:val="19.500000"/><w:szCs w:val="14.625000"/></w:rPr><w:t xml:space="preserve">of</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:sz w:val="19.500000"/><w:szCs w:val="14.625000"/></w:rPr><w:t xml:space="preserve"> </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="NotoSans" w:hAnsi="NotoSans"/><w:sz w:val="19.500000"/><w:szCs w:val="14.625000"/></w:rPr><w:t xml:space="preserve">Delhi </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="Times-Bold" w:hAnsi="Times-Bold"/><w:b/><w:sz w:val="20.300000"/><w:szCs w:val="15.225000"/></w:rPr><w:t xml:space="preserve">Part No - xxx</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:sz w:val="16.400000"/><w:szCs w:val="12.300000"/></w:rPr><w:t xml:space="preserve"> </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="NotoSans" w:hAnsi="NotoSans"/><w:sz w:val="16.400000"/><w:szCs w:val="12.300000"/></w:rPr><w:t xml:space="preserve">VIKAS</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:sz w:val="16.400000"/><w:szCs w:val="12.300000"/></w:rPr><w:t xml:space="preserve"> </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="NotoSans" w:hAnsi="NotoSans"/><w:sz w:val="16.400000"/><w:szCs w:val="12.300000"/></w:rPr><w:t xml:space="preserve">PURI,</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:sz w:val="16.400000"/><w:szCs w:val="12.300000"/></w:rPr><w:t xml:space="preserve"> </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="NotoSans" w:hAnsi="NotoSans"/><w:sz w:val="16.400000"/><w:szCs w:val="12.300000"/></w:rPr><w:t xml:space="preserve">DELHI </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="LiberationSans-Bold" w:hAnsi="LiberationSans-Bold"/><w:b/><w:sz w:val="19.300000"/><w:szCs w:val="14.475000"/></w:rPr><w:t xml:space="preserve">(This PDF file has been edited)</w:t></w:r>
+</w:p></w:body></w:document> \ No newline at end of file
diff --git a/extract/test/electoral_roll.pdf.mutool.docx.dir.ref/word/fontTable.xml b/extract/test/electoral_roll.pdf.mutool.docx.dir.ref/word/fontTable.xml
new file mode 100644
index 00000000..a39546e5
--- /dev/null
+++ b/extract/test/electoral_roll.pdf.mutool.docx.dir.ref/word/fontTable.xml
@@ -0,0 +1,2 @@
+<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
+<w:fonts xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships" xmlns:w="http://schemas.openxmlformats.org/wordprocessingml/2006/main" xmlns:w14="http://schemas.microsoft.com/office/word/2010/wordml" xmlns:w15="http://schemas.microsoft.com/office/word/2012/wordml" xmlns:w16cex="http://schemas.microsoft.com/office/word/2018/wordml/cex" xmlns:w16cid="http://schemas.microsoft.com/office/word/2016/wordml/cid" xmlns:w16="http://schemas.microsoft.com/office/word/2018/wordml" xmlns:w16se="http://schemas.microsoft.com/office/word/2015/wordml/symex" mc:Ignorable="w14 w15 w16se w16cid w16 w16cex"><w:font w:name="Calibri"><w:panose1 w:val="020F0502020204030204"/><w:charset w:val="00"/><w:family w:val="swiss"/><w:pitch w:val="variable"/><w:sig w:usb0="E4002EFF" w:usb1="C000247B" w:usb2="00000009" w:usb3="00000000" w:csb0="000001FF" w:csb1="00000000"/></w:font><w:font w:name="Times New Roman"><w:panose1 w:val="02020603050405020304"/><w:charset w:val="00"/><w:family w:val="roman"/><w:pitch w:val="variable"/><w:sig w:usb0="E0002EFF" w:usb1="C000785B" w:usb2="00000009" w:usb3="00000000" w:csb0="000001FF" w:csb1="00000000"/></w:font><w:font w:name="Calibri Light"><w:panose1 w:val="020F0302020204030204"/><w:charset w:val="00"/><w:family w:val="swiss"/><w:pitch w:val="variable"/><w:sig w:usb0="E4002EFF" w:usb1="C000247B" w:usb2="00000009" w:usb3="00000000" w:csb0="000001FF" w:csb1="00000000"/></w:font></w:fonts> \ No newline at end of file
diff --git a/extract/test/electoral_roll.pdf.mutool.docx.dir.ref/word/settings.xml b/extract/test/electoral_roll.pdf.mutool.docx.dir.ref/word/settings.xml
new file mode 100644
index 00000000..c403540d
--- /dev/null
+++ b/extract/test/electoral_roll.pdf.mutool.docx.dir.ref/word/settings.xml
@@ -0,0 +1,2 @@
+<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
+<w:settings xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships" xmlns:m="http://schemas.openxmlformats.org/officeDocument/2006/math" xmlns:v="urn:schemas-microsoft-com:vml" xmlns:w10="urn:schemas-microsoft-com:office:word" xmlns:w="http://schemas.openxmlformats.org/wordprocessingml/2006/main" xmlns:w14="http://schemas.microsoft.com/office/word/2010/wordml" xmlns:w15="http://schemas.microsoft.com/office/word/2012/wordml" xmlns:w16cex="http://schemas.microsoft.com/office/word/2018/wordml/cex" xmlns:w16cid="http://schemas.microsoft.com/office/word/2016/wordml/cid" xmlns:w16="http://schemas.microsoft.com/office/word/2018/wordml" xmlns:w16se="http://schemas.microsoft.com/office/word/2015/wordml/symex" xmlns:sl="http://schemas.openxmlformats.org/schemaLibrary/2006/main" mc:Ignorable="w14 w15 w16se w16cid w16 w16cex"><w:zoom w:percent="100"/><w:proofState w:spelling="clean" w:grammar="clean"/><w:defaultTabStop w:val="720"/><w:characterSpacingControl w:val="doNotCompress"/><w:compat><w:compatSetting w:name="compatibilityMode" w:uri="http://schemas.microsoft.com/office/word" w:val="15"/><w:compatSetting w:name="overrideTableStyleFontSizeAndJustification" w:uri="http://schemas.microsoft.com/office/word" w:val="1"/><w:compatSetting w:name="enableOpenTypeFeatures" w:uri="http://schemas.microsoft.com/office/word" w:val="1"/><w:compatSetting w:name="doNotFlipMirrorIndents" w:uri="http://schemas.microsoft.com/office/word" w:val="1"/><w:compatSetting w:name="differentiateMultirowTableHeaders" w:uri="http://schemas.microsoft.com/office/word" w:val="1"/><w:compatSetting w:name="useWord2013TrackBottomHyphenation" w:uri="http://schemas.microsoft.com/office/word" w:val="0"/></w:compat><w:rsids><w:rsidRoot w:val="007F4427"/><w:rsid w:val="00255448"/><w:rsid w:val="007F4427"/></w:rsids><m:mathPr><m:mathFont m:val="Cambria Math"/><m:brkBin m:val="before"/><m:brkBinSub m:val="--"/><m:smallFrac m:val="0"/><m:dispDef/><m:lMargin m:val="0"/><m:rMargin m:val="0"/><m:defJc m:val="centerGroup"/><m:wrapIndent m:val="1440"/><m:intLim m:val="subSup"/><m:naryLim m:val="undOvr"/></m:mathPr><w:themeFontLang w:val="en-GB"/><w:clrSchemeMapping w:bg1="light1" w:t1="dark1" w:bg2="light2" w:t2="dark2" w:accent1="accent1" w:accent2="accent2" w:accent3="accent3" w:accent4="accent4" w:accent5="accent5" w:accent6="accent6" w:hyperlink="hyperlink" w:followedHyperlink="followedHyperlink"/><w:shapeDefaults><o:shapedefaults v:ext="edit" spidmax="1026"/><o:shapelayout v:ext="edit"><o:idmap v:ext="edit" data="1"/></o:shapelayout></w:shapeDefaults><w:decimalSymbol w:val="."/><w:listSeparator w:val=","/><w14:docId w14:val="32E52EF8"/><w15:chartTrackingRefBased/><w15:docId w15:val="{A10F59F7-497D-44D4-A338-47719734E7A0}"/></w:settings> \ No newline at end of file
diff --git a/extract/test/electoral_roll.pdf.mutool.docx.dir.ref/word/styles.xml b/extract/test/electoral_roll.pdf.mutool.docx.dir.ref/word/styles.xml
new file mode 100644
index 00000000..38e5e2bd
--- /dev/null
+++ b/extract/test/electoral_roll.pdf.mutool.docx.dir.ref/word/styles.xml
@@ -0,0 +1,2 @@
+<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
+<w:styles xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships" xmlns:w="http://schemas.openxmlformats.org/wordprocessingml/2006/main" xmlns:w14="http://schemas.microsoft.com/office/word/2010/wordml" xmlns:w15="http://schemas.microsoft.com/office/word/2012/wordml" xmlns:w16cex="http://schemas.microsoft.com/office/word/2018/wordml/cex" xmlns:w16cid="http://schemas.microsoft.com/office/word/2016/wordml/cid" xmlns:w16="http://schemas.microsoft.com/office/word/2018/wordml" xmlns:w16se="http://schemas.microsoft.com/office/word/2015/wordml/symex" mc:Ignorable="w14 w15 w16se w16cid w16 w16cex"><w:docDefaults><w:rPrDefault><w:rPr><w:rFonts w:asciiTheme="minorHAnsi" w:eastAsiaTheme="minorHAnsi" w:hAnsiTheme="minorHAnsi" w:cstheme="minorBidi"/><w:sz w:val="22"/><w:szCs w:val="22"/><w:lang w:val="en-GB" w:eastAsia="en-US" w:bidi="ar-SA"/></w:rPr></w:rPrDefault><w:pPrDefault><w:pPr><w:spacing w:after="160" w:line="259" w:lineRule="auto"/></w:pPr></w:pPrDefault></w:docDefaults><w:latentStyles w:defLockedState="0" w:defUIPriority="99" w:defSemiHidden="0" w:defUnhideWhenUsed="0" w:defQFormat="0" w:count="376"><w:lsdException w:name="Normal" w:uiPriority="0" w:qFormat="1"/><w:lsdException w:name="heading 1" w:uiPriority="9" w:qFormat="1"/><w:lsdException w:name="heading 2" w:semiHidden="1" w:uiPriority="9" w:unhideWhenUsed="1" w:qFormat="1"/><w:lsdException w:name="heading 3" w:semiHidden="1" w:uiPriority="9" w:unhideWhenUsed="1" w:qFormat="1"/><w:lsdException w:name="heading 4" w:semiHidden="1" w:uiPriority="9" w:unhideWhenUsed="1" w:qFormat="1"/><w:lsdException w:name="heading 5" w:semiHidden="1" w:uiPriority="9" w:unhideWhenUsed="1" w:qFormat="1"/><w:lsdException w:name="heading 6" w:semiHidden="1" w:uiPriority="9" w:unhideWhenUsed="1" w:qFormat="1"/><w:lsdException w:name="heading 7" w:semiHidden="1" w:uiPriority="9" w:unhideWhenUsed="1" w:qFormat="1"/><w:lsdException w:name="heading 8" w:semiHidden="1" w:uiPriority="9" w:unhideWhenUsed="1" w:qFormat="1"/><w:lsdException w:name="heading 9" w:semiHidden="1" w:uiPriority="9" w:unhideWhenUsed="1" w:qFormat="1"/><w:lsdException w:name="index 1" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="index 2" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="index 3" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="index 4" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="index 5" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="index 6" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="index 7" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="index 8" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="index 9" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="toc 1" w:semiHidden="1" w:uiPriority="39" w:unhideWhenUsed="1"/><w:lsdException w:name="toc 2" w:semiHidden="1" w:uiPriority="39" w:unhideWhenUsed="1"/><w:lsdException w:name="toc 3" w:semiHidden="1" w:uiPriority="39" w:unhideWhenUsed="1"/><w:lsdException w:name="toc 4" w:semiHidden="1" w:uiPriority="39" w:unhideWhenUsed="1"/><w:lsdException w:name="toc 5" w:semiHidden="1" w:uiPriority="39" w:unhideWhenUsed="1"/><w:lsdException w:name="toc 6" w:semiHidden="1" w:uiPriority="39" w:unhideWhenUsed="1"/><w:lsdException w:name="toc 7" w:semiHidden="1" w:uiPriority="39" w:unhideWhenUsed="1"/><w:lsdException w:name="toc 8" w:semiHidden="1" w:uiPriority="39" w:unhideWhenUsed="1"/><w:lsdException w:name="toc 9" w:semiHidden="1" w:uiPriority="39" w:unhideWhenUsed="1"/><w:lsdException w:name="Normal Indent" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="footnote text" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="annotation text" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="header" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="footer" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="index heading" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="caption" w:semiHidden="1" w:uiPriority="35" w:unhideWhenUsed="1" w:qFormat="1"/><w:lsdException w:name="table of figures" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="envelope address" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="envelope return" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="footnote reference" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="annotation reference" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="line number" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="page number" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="endnote reference" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="endnote text" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="table of authorities" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="macro" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="toa heading" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="List" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="List Bullet" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="List Number" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="List 2" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="List 3" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="List 4" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="List 5" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="List Bullet 2" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="List Bullet 3" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="List Bullet 4" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="List Bullet 5" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="List Number 2" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="List Number 3" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="List Number 4" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="List Number 5" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Title" w:uiPriority="10" w:qFormat="1"/><w:lsdException w:name="Closing" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Signature" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Default Paragraph Font" w:semiHidden="1" w:uiPriority="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Body Text" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Body Text Indent" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="List Continue" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="List Continue 2" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="List Continue 3" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="List Continue 4" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="List Continue 5" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Message Header" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Subtitle" w:uiPriority="11" w:qFormat="1"/><w:lsdException w:name="Salutation" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Date" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Body Text First Indent" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Body Text First Indent 2" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Note Heading" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Body Text 2" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Body Text 3" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Body Text Indent 2" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Body Text Indent 3" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Block Text" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Hyperlink" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="FollowedHyperlink" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Strong" w:uiPriority="22" w:qFormat="1"/><w:lsdException w:name="Emphasis" w:uiPriority="20" w:qFormat="1"/><w:lsdException w:name="Document Map" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Plain Text" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="E-mail Signature" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="HTML Top of Form" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="HTML Bottom of Form" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Normal (Web)" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="HTML Acronym" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="HTML Address" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="HTML Cite" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="HTML Code" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="HTML Definition" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="HTML Keyboard" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="HTML Preformatted" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="HTML Sample" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="HTML Typewriter" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="HTML Variable" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Normal Table" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="annotation subject" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="No List" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Outline List 1" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Outline List 2" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Outline List 3" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Simple 1" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Simple 2" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Simple 3" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Classic 1" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Classic 2" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Classic 3" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Classic 4" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Colorful 1" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Colorful 2" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Colorful 3" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Columns 1" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Columns 2" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Columns 3" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Columns 4" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Columns 5" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Grid 1" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Grid 2" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Grid 3" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Grid 4" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Grid 5" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Grid 6" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Grid 7" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Grid 8" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table List 1" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table List 2" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table List 3" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table List 4" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table List 5" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table List 6" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table List 7" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table List 8" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table 3D effects 1" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table 3D effects 2" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table 3D effects 3" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Contemporary" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Elegant" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Professional" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Subtle 1" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Subtle 2" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Web 1" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Web 2" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Web 3" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Balloon Text" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Grid" w:uiPriority="39"/><w:lsdException w:name="Table Theme" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Placeholder Text" w:semiHidden="1"/><w:lsdException w:name="No Spacing" w:uiPriority="1" w:qFormat="1"/><w:lsdException w:name="Light Shading" w:uiPriority="60"/><w:lsdException w:name="Light List" w:uiPriority="61"/><w:lsdException w:name="Light Grid" w:uiPriority="62"/><w:lsdException w:name="Medium Shading 1" w:uiPriority="63"/><w:lsdException w:name="Medium Shading 2" w:uiPriority="64"/><w:lsdException w:name="Medium List 1" w:uiPriority="65"/><w:lsdException w:name="Medium List 2" w:uiPriority="66"/><w:lsdException w:name="Medium Grid 1" w:uiPriority="67"/><w:lsdException w:name="Medium Grid 2" w:uiPriority="68"/><w:lsdException w:name="Medium Grid 3" w:uiPriority="69"/><w:lsdException w:name="Dark List" w:uiPriority="70"/><w:lsdException w:name="Colorful Shading" w:uiPriority="71"/><w:lsdException w:name="Colorful List" w:uiPriority="72"/><w:lsdException w:name="Colorful Grid" w:uiPriority="73"/><w:lsdException w:name="Light Shading Accent 1" w:uiPriority="60"/><w:lsdException w:name="Light List Accent 1" w:uiPriority="61"/><w:lsdException w:name="Light Grid Accent 1" w:uiPriority="62"/><w:lsdException w:name="Medium Shading 1 Accent 1" w:uiPriority="63"/><w:lsdException w:name="Medium Shading 2 Accent 1" w:uiPriority="64"/><w:lsdException w:name="Medium List 1 Accent 1" w:uiPriority="65"/><w:lsdException w:name="Revision" w:semiHidden="1"/><w:lsdException w:name="List Paragraph" w:uiPriority="34" w:qFormat="1"/><w:lsdException w:name="Quote" w:uiPriority="29" w:qFormat="1"/><w:lsdException w:name="Intense Quote" w:uiPriority="30" w:qFormat="1"/><w:lsdException w:name="Medium List 2 Accent 1" w:uiPriority="66"/><w:lsdException w:name="Medium Grid 1 Accent 1" w:uiPriority="67"/><w:lsdException w:name="Medium Grid 2 Accent 1" w:uiPriority="68"/><w:lsdException w:name="Medium Grid 3 Accent 1" w:uiPriority="69"/><w:lsdException w:name="Dark List Accent 1" w:uiPriority="70"/><w:lsdException w:name="Colorful Shading Accent 1" w:uiPriority="71"/><w:lsdException w:name="Colorful List Accent 1" w:uiPriority="72"/><w:lsdException w:name="Colorful Grid Accent 1" w:uiPriority="73"/><w:lsdException w:name="Light Shading Accent 2" w:uiPriority="60"/><w:lsdException w:name="Light List Accent 2" w:uiPriority="61"/><w:lsdException w:name="Light Grid Accent 2" w:uiPriority="62"/><w:lsdException w:name="Medium Shading 1 Accent 2" w:uiPriority="63"/><w:lsdException w:name="Medium Shading 2 Accent 2" w:uiPriority="64"/><w:lsdException w:name="Medium List 1 Accent 2" w:uiPriority="65"/><w:lsdException w:name="Medium List 2 Accent 2" w:uiPriority="66"/><w:lsdException w:name="Medium Grid 1 Accent 2" w:uiPriority="67"/><w:lsdException w:name="Medium Grid 2 Accent 2" w:uiPriority="68"/><w:lsdException w:name="Medium Grid 3 Accent 2" w:uiPriority="69"/><w:lsdException w:name="Dark List Accent 2" w:uiPriority="70"/><w:lsdException w:name="Colorful Shading Accent 2" w:uiPriority="71"/><w:lsdException w:name="Colorful List Accent 2" w:uiPriority="72"/><w:lsdException w:name="Colorful Grid Accent 2" w:uiPriority="73"/><w:lsdException w:name="Light Shading Accent 3" w:uiPriority="60"/><w:lsdException w:name="Light List Accent 3" w:uiPriority="61"/><w:lsdException w:name="Light Grid Accent 3" w:uiPriority="62"/><w:lsdException w:name="Medium Shading 1 Accent 3" w:uiPriority="63"/><w:lsdException w:name="Medium Shading 2 Accent 3" w:uiPriority="64"/><w:lsdException w:name="Medium List 1 Accent 3" w:uiPriority="65"/><w:lsdException w:name="Medium List 2 Accent 3" w:uiPriority="66"/><w:lsdException w:name="Medium Grid 1 Accent 3" w:uiPriority="67"/><w:lsdException w:name="Medium Grid 2 Accent 3" w:uiPriority="68"/><w:lsdException w:name="Medium Grid 3 Accent 3" w:uiPriority="69"/><w:lsdException w:name="Dark List Accent 3" w:uiPriority="70"/><w:lsdException w:name="Colorful Shading Accent 3" w:uiPriority="71"/><w:lsdException w:name="Colorful List Accent 3" w:uiPriority="72"/><w:lsdException w:name="Colorful Grid Accent 3" w:uiPriority="73"/><w:lsdException w:name="Light Shading Accent 4" w:uiPriority="60"/><w:lsdException w:name="Light List Accent 4" w:uiPriority="61"/><w:lsdException w:name="Light Grid Accent 4" w:uiPriority="62"/><w:lsdException w:name="Medium Shading 1 Accent 4" w:uiPriority="63"/><w:lsdException w:name="Medium Shading 2 Accent 4" w:uiPriority="64"/><w:lsdException w:name="Medium List 1 Accent 4" w:uiPriority="65"/><w:lsdException w:name="Medium List 2 Accent 4" w:uiPriority="66"/><w:lsdException w:name="Medium Grid 1 Accent 4" w:uiPriority="67"/><w:lsdException w:name="Medium Grid 2 Accent 4" w:uiPriority="68"/><w:lsdException w:name="Medium Grid 3 Accent 4" w:uiPriority="69"/><w:lsdException w:name="Dark List Accent 4" w:uiPriority="70"/><w:lsdException w:name="Colorful Shading Accent 4" w:uiPriority="71"/><w:lsdException w:name="Colorful List Accent 4" w:uiPriority="72"/><w:lsdException w:name="Colorful Grid Accent 4" w:uiPriority="73"/><w:lsdException w:name="Light Shading Accent 5" w:uiPriority="60"/><w:lsdException w:name="Light List Accent 5" w:uiPriority="61"/><w:lsdException w:name="Light Grid Accent 5" w:uiPriority="62"/><w:lsdException w:name="Medium Shading 1 Accent 5" w:uiPriority="63"/><w:lsdException w:name="Medium Shading 2 Accent 5" w:uiPriority="64"/><w:lsdException w:name="Medium List 1 Accent 5" w:uiPriority="65"/><w:lsdException w:name="Medium List 2 Accent 5" w:uiPriority="66"/><w:lsdException w:name="Medium Grid 1 Accent 5" w:uiPriority="67"/><w:lsdException w:name="Medium Grid 2 Accent 5" w:uiPriority="68"/><w:lsdException w:name="Medium Grid 3 Accent 5" w:uiPriority="69"/><w:lsdException w:name="Dark List Accent 5" w:uiPriority="70"/><w:lsdException w:name="Colorful Shading Accent 5" w:uiPriority="71"/><w:lsdException w:name="Colorful List Accent 5" w:uiPriority="72"/><w:lsdException w:name="Colorful Grid Accent 5" w:uiPriority="73"/><w:lsdException w:name="Light Shading Accent 6" w:uiPriority="60"/><w:lsdException w:name="Light List Accent 6" w:uiPriority="61"/><w:lsdException w:name="Light Grid Accent 6" w:uiPriority="62"/><w:lsdException w:name="Medium Shading 1 Accent 6" w:uiPriority="63"/><w:lsdException w:name="Medium Shading 2 Accent 6" w:uiPriority="64"/><w:lsdException w:name="Medium List 1 Accent 6" w:uiPriority="65"/><w:lsdException w:name="Medium List 2 Accent 6" w:uiPriority="66"/><w:lsdException w:name="Medium Grid 1 Accent 6" w:uiPriority="67"/><w:lsdException w:name="Medium Grid 2 Accent 6" w:uiPriority="68"/><w:lsdException w:name="Medium Grid 3 Accent 6" w:uiPriority="69"/><w:lsdException w:name="Dark List Accent 6" w:uiPriority="70"/><w:lsdException w:name="Colorful Shading Accent 6" w:uiPriority="71"/><w:lsdException w:name="Colorful List Accent 6" w:uiPriority="72"/><w:lsdException w:name="Colorful Grid Accent 6" w:uiPriority="73"/><w:lsdException w:name="Subtle Emphasis" w:uiPriority="19" w:qFormat="1"/><w:lsdException w:name="Intense Emphasis" w:uiPriority="21" w:qFormat="1"/><w:lsdException w:name="Subtle Reference" w:uiPriority="31" w:qFormat="1"/><w:lsdException w:name="Intense Reference" w:uiPriority="32" w:qFormat="1"/><w:lsdException w:name="Book Title" w:uiPriority="33" w:qFormat="1"/><w:lsdException w:name="Bibliography" w:semiHidden="1" w:uiPriority="37" w:unhideWhenUsed="1"/><w:lsdException w:name="TOC Heading" w:semiHidden="1" w:uiPriority="39" w:unhideWhenUsed="1" w:qFormat="1"/><w:lsdException w:name="Plain Table 1" w:uiPriority="41"/><w:lsdException w:name="Plain Table 2" w:uiPriority="42"/><w:lsdException w:name="Plain Table 3" w:uiPriority="43"/><w:lsdException w:name="Plain Table 4" w:uiPriority="44"/><w:lsdException w:name="Plain Table 5" w:uiPriority="45"/><w:lsdException w:name="Grid Table Light" w:uiPriority="40"/><w:lsdException w:name="Grid Table 1 Light" w:uiPriority="46"/><w:lsdException w:name="Grid Table 2" w:uiPriority="47"/><w:lsdException w:name="Grid Table 3" w:uiPriority="48"/><w:lsdException w:name="Grid Table 4" w:uiPriority="49"/><w:lsdException w:name="Grid Table 5 Dark" w:uiPriority="50"/><w:lsdException w:name="Grid Table 6 Colorful" w:uiPriority="51"/><w:lsdException w:name="Grid Table 7 Colorful" w:uiPriority="52"/><w:lsdException w:name="Grid Table 1 Light Accent 1" w:uiPriority="46"/><w:lsdException w:name="Grid Table 2 Accent 1" w:uiPriority="47"/><w:lsdException w:name="Grid Table 3 Accent 1" w:uiPriority="48"/><w:lsdException w:name="Grid Table 4 Accent 1" w:uiPriority="49"/><w:lsdException w:name="Grid Table 5 Dark Accent 1" w:uiPriority="50"/><w:lsdException w:name="Grid Table 6 Colorful Accent 1" w:uiPriority="51"/><w:lsdException w:name="Grid Table 7 Colorful Accent 1" w:uiPriority="52"/><w:lsdException w:name="Grid Table 1 Light Accent 2" w:uiPriority="46"/><w:lsdException w:name="Grid Table 2 Accent 2" w:uiPriority="47"/><w:lsdException w:name="Grid Table 3 Accent 2" w:uiPriority="48"/><w:lsdException w:name="Grid Table 4 Accent 2" w:uiPriority="49"/><w:lsdException w:name="Grid Table 5 Dark Accent 2" w:uiPriority="50"/><w:lsdException w:name="Grid Table 6 Colorful Accent 2" w:uiPriority="51"/><w:lsdException w:name="Grid Table 7 Colorful Accent 2" w:uiPriority="52"/><w:lsdException w:name="Grid Table 1 Light Accent 3" w:uiPriority="46"/><w:lsdException w:name="Grid Table 2 Accent 3" w:uiPriority="47"/><w:lsdException w:name="Grid Table 3 Accent 3" w:uiPriority="48"/><w:lsdException w:name="Grid Table 4 Accent 3" w:uiPriority="49"/><w:lsdException w:name="Grid Table 5 Dark Accent 3" w:uiPriority="50"/><w:lsdException w:name="Grid Table 6 Colorful Accent 3" w:uiPriority="51"/><w:lsdException w:name="Grid Table 7 Colorful Accent 3" w:uiPriority="52"/><w:lsdException w:name="Grid Table 1 Light Accent 4" w:uiPriority="46"/><w:lsdException w:name="Grid Table 2 Accent 4" w:uiPriority="47"/><w:lsdException w:name="Grid Table 3 Accent 4" w:uiPriority="48"/><w:lsdException w:name="Grid Table 4 Accent 4" w:uiPriority="49"/><w:lsdException w:name="Grid Table 5 Dark Accent 4" w:uiPriority="50"/><w:lsdException w:name="Grid Table 6 Colorful Accent 4" w:uiPriority="51"/><w:lsdException w:name="Grid Table 7 Colorful Accent 4" w:uiPriority="52"/><w:lsdException w:name="Grid Table 1 Light Accent 5" w:uiPriority="46"/><w:lsdException w:name="Grid Table 2 Accent 5" w:uiPriority="47"/><w:lsdException w:name="Grid Table 3 Accent 5" w:uiPriority="48"/><w:lsdException w:name="Grid Table 4 Accent 5" w:uiPriority="49"/><w:lsdException w:name="Grid Table 5 Dark Accent 5" w:uiPriority="50"/><w:lsdException w:name="Grid Table 6 Colorful Accent 5" w:uiPriority="51"/><w:lsdException w:name="Grid Table 7 Colorful Accent 5" w:uiPriority="52"/><w:lsdException w:name="Grid Table 1 Light Accent 6" w:uiPriority="46"/><w:lsdException w:name="Grid Table 2 Accent 6" w:uiPriority="47"/><w:lsdException w:name="Grid Table 3 Accent 6" w:uiPriority="48"/><w:lsdException w:name="Grid Table 4 Accent 6" w:uiPriority="49"/><w:lsdException w:name="Grid Table 5 Dark Accent 6" w:uiPriority="50"/><w:lsdException w:name="Grid Table 6 Colorful Accent 6" w:uiPriority="51"/><w:lsdException w:name="Grid Table 7 Colorful Accent 6" w:uiPriority="52"/><w:lsdException w:name="List Table 1 Light" w:uiPriority="46"/><w:lsdException w:name="List Table 2" w:uiPriority="47"/><w:lsdException w:name="List Table 3" w:uiPriority="48"/><w:lsdException w:name="List Table 4" w:uiPriority="49"/><w:lsdException w:name="List Table 5 Dark" w:uiPriority="50"/><w:lsdException w:name="List Table 6 Colorful" w:uiPriority="51"/><w:lsdException w:name="List Table 7 Colorful" w:uiPriority="52"/><w:lsdException w:name="List Table 1 Light Accent 1" w:uiPriority="46"/><w:lsdException w:name="List Table 2 Accent 1" w:uiPriority="47"/><w:lsdException w:name="List Table 3 Accent 1" w:uiPriority="48"/><w:lsdException w:name="List Table 4 Accent 1" w:uiPriority="49"/><w:lsdException w:name="List Table 5 Dark Accent 1" w:uiPriority="50"/><w:lsdException w:name="List Table 6 Colorful Accent 1" w:uiPriority="51"/><w:lsdException w:name="List Table 7 Colorful Accent 1" w:uiPriority="52"/><w:lsdException w:name="List Table 1 Light Accent 2" w:uiPriority="46"/><w:lsdException w:name="List Table 2 Accent 2" w:uiPriority="47"/><w:lsdException w:name="List Table 3 Accent 2" w:uiPriority="48"/><w:lsdException w:name="List Table 4 Accent 2" w:uiPriority="49"/><w:lsdException w:name="List Table 5 Dark Accent 2" w:uiPriority="50"/><w:lsdException w:name="List Table 6 Colorful Accent 2" w:uiPriority="51"/><w:lsdException w:name="List Table 7 Colorful Accent 2" w:uiPriority="52"/><w:lsdException w:name="List Table 1 Light Accent 3" w:uiPriority="46"/><w:lsdException w:name="List Table 2 Accent 3" w:uiPriority="47"/><w:lsdException w:name="List Table 3 Accent 3" w:uiPriority="48"/><w:lsdException w:name="List Table 4 Accent 3" w:uiPriority="49"/><w:lsdException w:name="List Table 5 Dark Accent 3" w:uiPriority="50"/><w:lsdException w:name="List Table 6 Colorful Accent 3" w:uiPriority="51"/><w:lsdException w:name="List Table 7 Colorful Accent 3" w:uiPriority="52"/><w:lsdException w:name="List Table 1 Light Accent 4" w:uiPriority="46"/><w:lsdException w:name="List Table 2 Accent 4" w:uiPriority="47"/><w:lsdException w:name="List Table 3 Accent 4" w:uiPriority="48"/><w:lsdException w:name="List Table 4 Accent 4" w:uiPriority="49"/><w:lsdException w:name="List Table 5 Dark Accent 4" w:uiPriority="50"/><w:lsdException w:name="List Table 6 Colorful Accent 4" w:uiPriority="51"/><w:lsdException w:name="List Table 7 Colorful Accent 4" w:uiPriority="52"/><w:lsdException w:name="List Table 1 Light Accent 5" w:uiPriority="46"/><w:lsdException w:name="List Table 2 Accent 5" w:uiPriority="47"/><w:lsdException w:name="List Table 3 Accent 5" w:uiPriority="48"/><w:lsdException w:name="List Table 4 Accent 5" w:uiPriority="49"/><w:lsdException w:name="List Table 5 Dark Accent 5" w:uiPriority="50"/><w:lsdException w:name="List Table 6 Colorful Accent 5" w:uiPriority="51"/><w:lsdException w:name="List Table 7 Colorful Accent 5" w:uiPriority="52"/><w:lsdException w:name="List Table 1 Light Accent 6" w:uiPriority="46"/><w:lsdException w:name="List Table 2 Accent 6" w:uiPriority="47"/><w:lsdException w:name="List Table 3 Accent 6" w:uiPriority="48"/><w:lsdException w:name="List Table 4 Accent 6" w:uiPriority="49"/><w:lsdException w:name="List Table 5 Dark Accent 6" w:uiPriority="50"/><w:lsdException w:name="List Table 6 Colorful Accent 6" w:uiPriority="51"/><w:lsdException w:name="List Table 7 Colorful Accent 6" w:uiPriority="52"/><w:lsdException w:name="Mention" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Smart Hyperlink" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Hashtag" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Unresolved Mention" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Smart Link" w:semiHidden="1" w:unhideWhenUsed="1"/></w:latentStyles><w:style w:type="paragraph" w:default="1" w:styleId="Normal"><w:name w:val="Normal"/><w:qFormat/></w:style><w:style w:type="character" w:default="1" w:styleId="DefaultParagraphFont"><w:name w:val="Default Paragraph Font"/><w:uiPriority w:val="1"/><w:semiHidden/><w:unhideWhenUsed/></w:style><w:style w:type="table" w:default="1" w:styleId="TableNormal"><w:name w:val="Normal Table"/><w:uiPriority w:val="99"/><w:semiHidden/><w:unhideWhenUsed/><w:tblPr><w:tblInd w:w="0" w:type="dxa"/><w:tblCellMar><w:top w:w="0" w:type="dxa"/><w:left w:w="108" w:type="dxa"/><w:bottom w:w="0" w:type="dxa"/><w:right w:w="108" w:type="dxa"/></w:tblCellMar></w:tblPr></w:style><w:style w:type="numbering" w:default="1" w:styleId="NoList"><w:name w:val="No List"/><w:uiPriority w:val="99"/><w:semiHidden/><w:unhideWhenUsed/></w:style></w:styles> \ No newline at end of file
diff --git a/extract/test/electoral_roll.pdf.mutool.docx.dir.ref/word/theme/theme1.xml b/extract/test/electoral_roll.pdf.mutool.docx.dir.ref/word/theme/theme1.xml
new file mode 100644
index 00000000..d1a502f8
--- /dev/null
+++ b/extract/test/electoral_roll.pdf.mutool.docx.dir.ref/word/theme/theme1.xml
@@ -0,0 +1,2 @@
+<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
+<a:theme xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main" name="Office Theme"><a:themeElements><a:clrScheme name="Office"><a:dk1><a:sysClr val="windowText" lastClr="000000"/></a:dk1><a:lt1><a:sysClr val="window" lastClr="FFFFFF"/></a:lt1><a:dk2><a:srgbClr val="44546A"/></a:dk2><a:lt2><a:srgbClr val="E7E6E6"/></a:lt2><a:accent1><a:srgbClr val="4472C4"/></a:accent1><a:accent2><a:srgbClr val="ED7D31"/></a:accent2><a:accent3><a:srgbClr val="A5A5A5"/></a:accent3><a:accent4><a:srgbClr val="FFC000"/></a:accent4><a:accent5><a:srgbClr val="5B9BD5"/></a:accent5><a:accent6><a:srgbClr val="70AD47"/></a:accent6><a:hlink><a:srgbClr val="0563C1"/></a:hlink><a:folHlink><a:srgbClr val="954F72"/></a:folHlink></a:clrScheme><a:fontScheme name="Office"><a:majorFont><a:latin typeface="Calibri Light" panose="020F0302020204030204"/><a:ea typeface=""/><a:cs typeface=""/><a:font script="Jpan" typeface="游ゴシック Light"/><a:font script="Hang" typeface="맑은 고딕"/><a:font script="Hans" typeface="等线 Light"/><a:font script="Hant" typeface="新細明體"/><a:font script="Arab" typeface="Times New Roman"/><a:font script="Hebr" typeface="Times New Roman"/><a:font script="Thai" typeface="Angsana New"/><a:font script="Ethi" typeface="Nyala"/><a:font script="Beng" typeface="Vrinda"/><a:font script="Gujr" typeface="Shruti"/><a:font script="Khmr" typeface="MoolBoran"/><a:font script="Knda" typeface="Tunga"/><a:font script="Guru" typeface="Raavi"/><a:font script="Cans" typeface="Euphemia"/><a:font script="Cher" typeface="Plantagenet Cherokee"/><a:font script="Yiii" typeface="Microsoft Yi Baiti"/><a:font script="Tibt" typeface="Microsoft Himalaya"/><a:font script="Thaa" typeface="MV Boli"/><a:font script="Deva" typeface="Mangal"/><a:font script="Telu" typeface="Gautami"/><a:font script="Taml" typeface="Latha"/><a:font script="Syrc" typeface="Estrangelo Edessa"/><a:font script="Orya" typeface="Kalinga"/><a:font script="Mlym" typeface="Kartika"/><a:font script="Laoo" typeface="DokChampa"/><a:font script="Sinh" typeface="Iskoola Pota"/><a:font script="Mong" typeface="Mongolian Baiti"/><a:font script="Viet" typeface="Times New Roman"/><a:font script="Uigh" typeface="Microsoft Uighur"/><a:font script="Geor" typeface="Sylfaen"/><a:font script="Armn" typeface="Arial"/><a:font script="Bugi" typeface="Leelawadee UI"/><a:font script="Bopo" typeface="Microsoft JhengHei"/><a:font script="Java" typeface="Javanese Text"/><a:font script="Lisu" typeface="Segoe UI"/><a:font script="Mymr" typeface="Myanmar Text"/><a:font script="Nkoo" typeface="Ebrima"/><a:font script="Olck" typeface="Nirmala UI"/><a:font script="Osma" typeface="Ebrima"/><a:font script="Phag" typeface="Phagspa"/><a:font script="Syrn" typeface="Estrangelo Edessa"/><a:font script="Syrj" typeface="Estrangelo Edessa"/><a:font script="Syre" typeface="Estrangelo Edessa"/><a:font script="Sora" typeface="Nirmala UI"/><a:font script="Tale" typeface="Microsoft Tai Le"/><a:font script="Talu" typeface="Microsoft New Tai Lue"/><a:font script="Tfng" typeface="Ebrima"/></a:majorFont><a:minorFont><a:latin typeface="Calibri" panose="020F0502020204030204"/><a:ea typeface=""/><a:cs typeface=""/><a:font script="Jpan" typeface="游明朝"/><a:font script="Hang" typeface="맑은 고딕"/><a:font script="Hans" typeface="等线"/><a:font script="Hant" typeface="新細明體"/><a:font script="Arab" typeface="Arial"/><a:font script="Hebr" typeface="Arial"/><a:font script="Thai" typeface="Cordia New"/><a:font script="Ethi" typeface="Nyala"/><a:font script="Beng" typeface="Vrinda"/><a:font script="Gujr" typeface="Shruti"/><a:font script="Khmr" typeface="DaunPenh"/><a:font script="Knda" typeface="Tunga"/><a:font script="Guru" typeface="Raavi"/><a:font script="Cans" typeface="Euphemia"/><a:font script="Cher" typeface="Plantagenet Cherokee"/><a:font script="Yiii" typeface="Microsoft Yi Baiti"/><a:font script="Tibt" typeface="Microsoft Himalaya"/><a:font script="Thaa" typeface="MV Boli"/><a:font script="Deva" typeface="Mangal"/><a:font script="Telu" typeface="Gautami"/><a:font script="Taml" typeface="Latha"/><a:font script="Syrc" typeface="Estrangelo Edessa"/><a:font script="Orya" typeface="Kalinga"/><a:font script="Mlym" typeface="Kartika"/><a:font script="Laoo" typeface="DokChampa"/><a:font script="Sinh" typeface="Iskoola Pota"/><a:font script="Mong" typeface="Mongolian Baiti"/><a:font script="Viet" typeface="Arial"/><a:font script="Uigh" typeface="Microsoft Uighur"/><a:font script="Geor" typeface="Sylfaen"/><a:font script="Armn" typeface="Arial"/><a:font script="Bugi" typeface="Leelawadee UI"/><a:font script="Bopo" typeface="Microsoft JhengHei"/><a:font script="Java" typeface="Javanese Text"/><a:font script="Lisu" typeface="Segoe UI"/><a:font script="Mymr" typeface="Myanmar Text"/><a:font script="Nkoo" typeface="Ebrima"/><a:font script="Olck" typeface="Nirmala UI"/><a:font script="Osma" typeface="Ebrima"/><a:font script="Phag" typeface="Phagspa"/><a:font script="Syrn" typeface="Estrangelo Edessa"/><a:font script="Syrj" typeface="Estrangelo Edessa"/><a:font script="Syre" typeface="Estrangelo Edessa"/><a:font script="Sora" typeface="Nirmala UI"/><a:font script="Tale" typeface="Microsoft Tai Le"/><a:font script="Talu" typeface="Microsoft New Tai Lue"/><a:font script="Tfng" typeface="Ebrima"/></a:minorFont></a:fontScheme><a:fmtScheme name="Office"><a:fillStyleLst><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:gradFill rotWithShape="1"><a:gsLst><a:gs pos="0"><a:schemeClr val="phClr"><a:lumMod val="110000"/><a:satMod val="105000"/><a:tint val="67000"/></a:schemeClr></a:gs><a:gs pos="50000"><a:schemeClr val="phClr"><a:lumMod val="105000"/><a:satMod val="103000"/><a:tint val="73000"/></a:schemeClr></a:gs><a:gs pos="100000"><a:schemeClr val="phClr"><a:lumMod val="105000"/><a:satMod val="109000"/><a:tint val="81000"/></a:schemeClr></a:gs></a:gsLst><a:lin ang="5400000" scaled="0"/></a:gradFill><a:gradFill rotWithShape="1"><a:gsLst><a:gs pos="0"><a:schemeClr val="phClr"><a:satMod val="103000"/><a:lumMod val="102000"/><a:tint val="94000"/></a:schemeClr></a:gs><a:gs pos="50000"><a:schemeClr val="phClr"><a:satMod val="110000"/><a:lumMod val="100000"/><a:shade val="100000"/></a:schemeClr></a:gs><a:gs pos="100000"><a:schemeClr val="phClr"><a:lumMod val="99000"/><a:satMod val="120000"/><a:shade val="78000"/></a:schemeClr></a:gs></a:gsLst><a:lin ang="5400000" scaled="0"/></a:gradFill></a:fillStyleLst><a:lnStyleLst><a:ln w="6350" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:prstDash val="solid"/><a:miter lim="800000"/></a:ln><a:ln w="12700" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:prstDash val="solid"/><a:miter lim="800000"/></a:ln><a:ln w="19050" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:prstDash val="solid"/><a:miter lim="800000"/></a:ln></a:lnStyleLst><a:effectStyleLst><a:effectStyle><a:effectLst/></a:effectStyle><a:effectStyle><a:effectLst/></a:effectStyle><a:effectStyle><a:effectLst><a:outerShdw blurRad="57150" dist="19050" dir="5400000" algn="ctr" rotWithShape="0"><a:srgbClr val="000000"><a:alpha val="63000"/></a:srgbClr></a:outerShdw></a:effectLst></a:effectStyle></a:effectStyleLst><a:bgFillStyleLst><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:solidFill><a:schemeClr val="phClr"><a:tint val="95000"/><a:satMod val="170000"/></a:schemeClr></a:solidFill><a:gradFill rotWithShape="1"><a:gsLst><a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="93000"/><a:satMod val="150000"/><a:shade val="98000"/><a:lumMod val="102000"/></a:schemeClr></a:gs><a:gs pos="50000"><a:schemeClr val="phClr"><a:tint val="98000"/><a:satMod val="130000"/><a:shade val="90000"/><a:lumMod val="103000"/></a:schemeClr></a:gs><a:gs pos="100000"><a:schemeClr val="phClr"><a:shade val="63000"/><a:satMod val="120000"/></a:schemeClr></a:gs></a:gsLst><a:lin ang="5400000" scaled="0"/></a:gradFill></a:bgFillStyleLst></a:fmtScheme></a:themeElements><a:objectDefaults/><a:extraClrSchemeLst/><a:extLst><a:ext uri="{05A4C25C-085E-4340-85A3-A5531E510DB2}"><thm15:themeFamily xmlns:thm15="http://schemas.microsoft.com/office/thememl/2012/main" name="Office Theme" id="{62F939B6-93AF-4DB8-9C6B-D6C7DFDC589F}" vid="{4A3C46E8-61CC-4603-A589-7422A47A8E4A}"/></a:ext></a:extLst></a:theme> \ No newline at end of file
diff --git a/extract/test/electoral_roll.pdf.mutool.docx.dir.ref/word/webSettings.xml b/extract/test/electoral_roll.pdf.mutool.docx.dir.ref/word/webSettings.xml
new file mode 100644
index 00000000..629ae06a
--- /dev/null
+++ b/extract/test/electoral_roll.pdf.mutool.docx.dir.ref/word/webSettings.xml
@@ -0,0 +1,2 @@
+<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
+<w:webSettings xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships" xmlns:w="http://schemas.openxmlformats.org/wordprocessingml/2006/main" xmlns:w14="http://schemas.microsoft.com/office/word/2010/wordml" xmlns:w15="http://schemas.microsoft.com/office/word/2012/wordml" xmlns:w16cex="http://schemas.microsoft.com/office/word/2018/wordml/cex" xmlns:w16cid="http://schemas.microsoft.com/office/word/2016/wordml/cid" xmlns:w16="http://schemas.microsoft.com/office/word/2018/wordml" xmlns:w16se="http://schemas.microsoft.com/office/word/2015/wordml/symex" mc:Ignorable="w14 w15 w16se w16cid w16 w16cex"><w:optimizeForBrowser/><w:allowPNG/></w:webSettings> \ No newline at end of file
diff --git a/extract/test/electoral_roll.pdf.mutool.html.ref b/extract/test/electoral_roll.pdf.mutool.html.ref
new file mode 100644
index 00000000..4d14bf3d
--- /dev/null
+++ b/extract/test/electoral_roll.pdf.mutool.html.ref
@@ -0,0 +1,81 @@
+<html>
+<body>
+
+
+<p>Electoral Roll, 2016 of Assembly Constituency - VIKASPURI, (GEN) NCT of Delhi <b>Part No - xxx
+</p></b>
+
+<p> VIKAS PURI, DELHI <b>(This PDF file has been edited)
+</p></b>
+
+<p><b>Section No &amp; Name -11-
+</p></b>
+
+<table border="1" style="border-collapse:collapse">
+ <tr>
+ <td><p> 1 </p></td><td colspan="2" rowspan="2"><p><i>Sex : Male</p><p></i>NEL0000001</p><p>n Doe</p></td><td rowspan="20"></td><td><p> 2 </p></td><td colspan="2" rowspan="2"><p>5 <i>Sex : Male</p><p></i>NEL0000002</p><p> Doe</p></td><td rowspan="20"></td><td><p> 3 </p></td><td colspan="2" rowspan="2"><p>5 <i>Sex : Male</p><p></i>NEL0000003</p><p> Doe</p></td>
+ </tr>
+ <tr>
+ <td><p><i>Name : Father&apos;s </i>: <i>Name </i>0</p><p>Joh</p><p>House No : Age : 55</p></td><td><p><i>Name : Father&apos;s </i>: <i>Name </i>1 <i>House No :</p><p></i>John</p><p>Age : 63</p></td><td><p><i>Name : Father&apos;s </i>: <i>Name </i>1 <i>House No :</p><p></i>John</p><p>Age : 33</p></td>
+ </tr>
+ <tr>
+ <td><p> 4 </p></td><td colspan="2" rowspan="2"><p>1</p><p>NEL0000004</p><p> Doe</p><p>Sex : Female</p></td><td><p> 5 </p></td><td colspan="2" rowspan="2"><p>8 <i>Sex : Male</p><p></i>NEL0000005</p><p> Doe</p></td><td><p> 6 </p></td><td colspan="2" rowspan="2"><p>5 <i>Sex : Female</p><p></i>NEL0000006</p><p> Doe</p></td>
+ </tr>
+ <tr>
+ <td><p><i>Name : Father&apos;s </i>: <i>Name </i>3 <i>House No : Age : 23</p><p></i>Jane</p></td><td><p><i>Name : Father&apos;s </i>: <i>Name </i>4 <i>Age : 22</p><p></i>John</p><p>House No :</p></td><td><p><i>Name : Husband&apos;s </i>: <i>Name </i>5 <i>House No : Age : 62</p><p></i>Jane</p></td>
+ </tr>
+ <tr>
+ <td><p> 7 </p></td><td colspan="2" rowspan="2"><p>2 <i>Sex : Female</p><p></i>NEL0000007</p><p> Doe</p></td><td><p> 8 </p></td><td colspan="2" rowspan="2"><p>3 <i>Sex : Male</p><p></i>NEL0000008</p><p> Doe</p></td><td><p> 9 </p></td><td colspan="2" rowspan="2"><p>3 <i>Sex : Female</p><p></i>NEL0000009</p><p> Doe</p></td>
+ </tr>
+ <tr>
+ <td><p><i>Name : Husband&apos;s </i>: <i>Name </i>6 <i>House No : Age : 80</p><p></i>Jane</p></td><td><p><i>Name : Father&apos;s </i>: <i>Name </i>6 <i>House No : Age : 61</p><p></i>John</p></td><td><p><i>Name : Husband&apos;s </i>: <i>Name </i>6 <i>House No : Age : 54</p><p></i>Jane</p></td>
+ </tr>
+ <tr>
+ <td><p> 10 </p></td><td colspan="2" rowspan="2"><p>3 <i>Sex : Female</p><p></i>NEL0000010</p><p> Doe</p></td><td><p> 11 </p></td><td colspan="2" rowspan="2"><p>5 <i>Sex : Male</p><p></i>NEL0000011</p><p> Doe</p></td><td><p> 12 </p></td><td colspan="2" rowspan="2"><p>8 <i>Sex : Female</p><p></i>LQK0000012</p><p> Doe</p></td>
+ </tr>
+ <tr>
+ <td><p><i>Name : Father&apos;s </i>: <i>Name </i>7 <i>House No : Age : 20</p><p></i>Jane</p></td><td><p><i>Name : Father&apos;s </i>: <i>Name </i>7 <i>House No : Age : 49</p><p></i>John</p></td><td><p><i>Name : Father&apos;s </i>: <i>Name </i>8 <i>House No : Age : 41</p><p></i>Jane</p></td>
+ </tr>
+ <tr>
+ <td><p> 13 </p></td><td colspan="2" rowspan="2"><p>2 <i>Sex : Female</p><p></i>NEL0000013</p><p> Doe</p></td><td><p> 14 </p></td><td colspan="2" rowspan="2"><p>04 <i>Sex : Female</p><p></i>NEL0000014</p><p> Doe</p></td><td><p> 15 </p></td><td colspan="2" rowspan="2"><p>04 <i>Sex : Male</p><p></i>NEL0000015</p><p> Doe</p></td>
+ </tr>
+ <tr>
+ <td><p><i>Name : Husband&apos;s </i>: <i>Name </i>9 <i>House No : Age : 28</p><p></i>Jane</p></td><td><p><i>Name : Husband&apos;s </i>: <i>Name </i>1 <i>House No : Age : 45</p><p></i>Jane</p></td><td><p><i>Name : Father&apos;s </i>: <i>Name </i>1 <i>House No : Age : 43</p><p></i>John</p></td>
+ </tr>
+ <tr>
+ <td><p> 16 </p></td><td colspan="2" rowspan="2"><p>04 <i>Sex : Female</p><p></i>NEL0000016</p><p> Doe</p></td><td><p> 17 </p></td><td colspan="2" rowspan="2"><p>19-B <i>Sex : Female</p><p></i>NEL0000017</p><p> Doe</p></td><td><p> 18 </p></td><td colspan="2" rowspan="2"><p>26 <i>Sex : Female</p><p></i>NEL0000018</p><p> Doe</p></td>
+ </tr>
+ <tr>
+ <td><p><i>Name : Father&apos;s </i>: <i>Name </i>1 <i>House No : Age : 23</p><p></i>Jane</p></td><td><p><i>Name : Father&apos;s </i>: <i>Name </i>1 <i>House No : Age : 46</p><p></i>Jane</p></td><td><p><i>Name : Father&apos;s </i>: <i>Name </i>1 <i>House No : Age : 22</p><p></i>Jane</p></td>
+ </tr>
+ <tr>
+ <td><p> 19 </p></td><td colspan="2" rowspan="2"><p>33 <i>Sex : Male</p><p></i>NEL0000019</p><p>n Doe</p></td><td><p> 20 </p></td><td colspan="2" rowspan="2"><p>43 <i>Sex : Male</p><p></i>NEL0000020</p><p> Doe</p></td><td><p> 21 </p></td><td colspan="2" rowspan="2"><p>45 <i>Sex : Male</p><p></i>NEL0000021</p><p> Doe</p></td>
+ </tr>
+ <tr>
+ <td><p><i>Name : Father&apos;s </i>: <i>Name </i>1 <i>House No : Age : 29</p><p></i>Joh</p></td><td><p><i>Name : Father&apos;s </i>: <i>Name </i>1 <i>House No : Age : 25</p><p></i>John</p></td><td><p><i>Name : Father&apos;s </i>: <i>Name </i>1 <i>House No : Age : 47</p><p></i>John</p></td>
+ </tr>
+ <tr>
+ <td><p> 22 </p></td><td colspan="2" rowspan="2"><p>47 <i>Sex : Female</p><p></i>NEL0000022</p><p> Doe</p></td><td><p> 23 </p></td><td colspan="2" rowspan="2"><p>51 <i>Sex : Male</p><p></i>NEL0000023</p><p> Doe</p></td><td><p> 24 </p></td><td colspan="2" rowspan="2"><p>55 <i>Sex : Female</p><p></i>NEL0000024</p><p> Doe</p></td>
+ </tr>
+ <tr>
+ <td><p><i>Name : Father&apos;s </i>: <i>Name </i>1 <i>House No : Age : 20</p><p></i>Jane</p></td><td><p><i>Name : Mother&apos;s </i>: <i>Name </i>1 <i>House No : Age : 24</p><p></i>John</p></td><td><p><i>Name : Father&apos;s </i>: <i>Name </i>1 <i>House No : Age : 21</p><p></i>Jane</p></td>
+ </tr>
+ <tr>
+ <td><p> 25 </p></td><td colspan="2" rowspan="2"><p>78 <i>Sex : Male</p><p></i>NEL0000025</p><p>n Doe</p></td><td><p> 26 </p></td><td colspan="2" rowspan="2"><p>78 <i>Sex : Female</p><p></i>NEL0000026</p><p> Doe</p></td><td><p> 27 </p></td><td colspan="2" rowspan="2"><p>94 <i>Sex : Male</p><p></i>NEL0000027</p><p> Doe</p></td>
+ </tr>
+ <tr>
+ <td><p><i>Name : Father&apos;s </i>: <i>Name </i>1 <i>House No : Age : 41</p><p></i>Joh</p></td><td><p><i>Name : Husband&apos;s </i>: <i>Name </i>1 <i>House No : Age : 35</p><p></i>Jane</p></td><td><p><i>Name : Father&apos;s </i>: <i>Name </i>1 <i>House No : Age : 59</p><p></i>John</p></td>
+ </tr>
+ <tr>
+ <td><p> 28 </p></td><td colspan="2" rowspan="2"><p>95 <i>Sex : Female</p><p></i>NEL0000028</p><p> Doe</p></td><td><p> 29 </p></td><td colspan="2" rowspan="2"><p>95 <i>Sex : Female</p><p></i>NEL0000029</p><p> Doe</p></td><td><p> 30 </p></td><td colspan="2" rowspan="2"><p>01 <i>Sex : Male</p><p></i>NEL0000030</p><p> Doe</p></td>
+ </tr>
+ <tr>
+ <td><p><i>Name : Husband&apos;s </i>: <i>Name </i>1 <i>House No : Age : 33</p><p></i>Jane</p></td><td><p><i>Name : Husband&apos;s </i>: <i>Name </i>1 <i>House No : Age : 28</p><p></i>Jane</p></td><td><p><i>Name : Father&apos;s </i>: <i>Name </i>2 <i>House No : Age : 45</p><p></i>John</p></td>
+ </tr>
+</table>
+
+
+
+<p>S-Shifted, E-Expired, M-Missing, Q- Disqualification, R-Duplicate Page 3 of 33 Age as on 01-01-2016 Issued By Electoral Registration Officer
+</p></body>
+</html>
diff --git a/extract/test/electoral_roll.pdf.mutool.odt.dir.ref/META-INF/manifest.xml b/extract/test/electoral_roll.pdf.mutool.odt.dir.ref/META-INF/manifest.xml
new file mode 100644
index 00000000..ec991d79
--- /dev/null
+++ b/extract/test/electoral_roll.pdf.mutool.odt.dir.ref/META-INF/manifest.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<manifest:manifest xmlns:manifest="urn:oasis:names:tc:opendocument:xmlns:manifest:1.0" manifest:version="1.3" xmlns:loext="urn:org:documentfoundation:names:experimental:office:xmlns:loext:1.0">
+ <manifest:file-entry manifest:full-path="/" manifest:version="1.3" manifest:media-type="application/vnd.oasis.opendocument.text"/>
+ <manifest:file-entry manifest:full-path="meta.xml" manifest:media-type="text/xml"/>
+ <manifest:file-entry manifest:full-path="settings.xml" manifest:media-type="text/xml"/>
+ <manifest:file-entry manifest:full-path="Configurations2/" manifest:media-type="application/vnd.sun.xml.ui.configuration"/>
+ <manifest:file-entry manifest:full-path="manifest.rdf" manifest:media-type="application/rdf+xml"/>
+ <manifest:file-entry manifest:full-path="styles.xml" manifest:media-type="text/xml"/>
+ <manifest:file-entry manifest:full-path="content.xml" manifest:media-type="text/xml"/>
+ <manifest:file-entry manifest:full-path="Thumbnails/thumbnail.png" manifest:media-type="image/png"/>
+</manifest:manifest> \ No newline at end of file
diff --git a/extract/test/electoral_roll.pdf.mutool.odt.dir.ref/Thumbnails/thumbnail.png b/extract/test/electoral_roll.pdf.mutool.odt.dir.ref/Thumbnails/thumbnail.png
new file mode 100644
index 00000000..0dd1608e
--- /dev/null
+++ b/extract/test/electoral_roll.pdf.mutool.odt.dir.ref/Thumbnails/thumbnail.png
@@ -0,0 +1,2 @@
+PNG
+
diff --git a/extract/test/electoral_roll.pdf.mutool.odt.dir.ref/content.xml b/extract/test/electoral_roll.pdf.mutool.odt.dir.ref/content.xml
new file mode 100644
index 00000000..8fc6ecae
--- /dev/null
+++ b/extract/test/electoral_roll.pdf.mutool.odt.dir.ref/content.xml
@@ -0,0 +1,850 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<office:document-content xmlns:css3t="http://www.w3.org/TR/css3-text/" xmlns:grddl="http://www.w3.org/2003/g/data-view#" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xforms="http://www.w3.org/2002/xforms" xmlns:dom="http://www.w3.org/2001/xml-events" xmlns:script="urn:oasis:names:tc:opendocument:xmlns:script:1.0" xmlns:form="urn:oasis:names:tc:opendocument:xmlns:form:1.0" xmlns:math="http://www.w3.org/1998/Math/MathML" xmlns:number="urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0" xmlns:field="urn:openoffice:names:experimental:ooo-ms-interop:xmlns:field:1.0" xmlns:meta="urn:oasis:names:tc:opendocument:xmlns:meta:1.0" xmlns:loext="urn:org:documentfoundation:names:experimental:office:xmlns:loext:1.0" xmlns:officeooo="http://openoffice.org/2009/office" xmlns:table="urn:oasis:names:tc:opendocument:xmlns:table:1.0" xmlns:chart="urn:oasis:names:tc:opendocument:xmlns:chart:1.0" xmlns:tableooo="http://openoffice.org/2009/table" xmlns:draw="urn:oasis:names:tc:opendocument:xmlns:drawing:1.0" xmlns:rpt="http://openoffice.org/2005/report" xmlns:dr3d="urn:oasis:names:tc:opendocument:xmlns:dr3d:1.0" xmlns:of="urn:oasis:names:tc:opendocument:xmlns:of:1.2" xmlns:text="urn:oasis:names:tc:opendocument:xmlns:text:1.0" xmlns:style="urn:oasis:names:tc:opendocument:xmlns:style:1.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:calcext="urn:org:documentfoundation:names:experimental:calc:xmlns:calcext:1.0" xmlns:oooc="http://openoffice.org/2004/calc" xmlns:drawooo="http://openoffice.org/2010/draw" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:ooo="http://openoffice.org/2004/office" xmlns:ooow="http://openoffice.org/2004/writer" xmlns:fo="urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0" xmlns:formx="urn:openoffice:names:experimental:ooxml-odf-interop:xmlns:form:1.0" xmlns:svg="urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0" xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" office:version="1.3"><office:scripts/><office:font-face-decls><style:font-face style:name="Liberation Serif" svg:font-family="&apos;Liberation Serif&apos;" style:font-family-generic="roman" style:font-pitch="variable"/><style:font-face style:name="Liberation Sans" svg:font-family="&apos;Liberation Sans&apos;" style:font-family-generic="swiss" style:font-pitch="variable"/><style:font-face style:name="Unifont" svg:font-family="Unifont" style:font-family-generic="system" style:font-pitch="variable"/></office:font-face-decls><office:automatic-styles><style:style style:name="T14" style:family="text"><style:text-properties style:font-name="Times-New-Roman-Italic" fo:font-size="8.00pt" fo:font-weight="normal" fo:font-style="italic" /></style:style><style:style style:name="T19" style:family="text"><style:text-properties style:font-name="Times-New-Roman-Italic" fo:font-size="7.05pt" fo:font-weight="normal" fo:font-style="italic" /></style:style><style:style style:name="T22" style:family="text"><style:text-properties style:font-name="Times-New-Roman" fo:font-size="8.00pt" fo:font-weight="normal" fo:font-style="normal" /></style:style><style:style style:name="T18" style:family="text"><style:text-properties style:font-name="Times-New-Roman" fo:font-size="7.05pt" fo:font-weight="normal" fo:font-style="normal" /></style:style><style:style style:name="T25" style:family="text"><style:text-properties style:font-name="Times-Bold" fo:font-size="10.15pt" fo:font-weight="bold" fo:font-style="normal" /></style:style><style:style style:name="T23" style:family="text"><style:text-properties style:font-name="NotoSans" fo:font-size="9.75pt" fo:font-weight="normal" fo:font-style="normal" /></style:style><style:style style:name="T27" style:family="text"><style:text-properties style:font-name="NotoSans" fo:font-size="8.20pt" fo:font-weight="normal" fo:font-style="normal" /></style:style><style:style style:name="T20" style:family="text"><style:text-properties style:font-name="NotoSans" fo:font-size="8.00pt" fo:font-weight="normal" fo:font-style="normal" /></style:style><style:style style:name="T15" style:family="text"><style:text-properties style:font-name="NotoSans" fo:font-size="7.95pt" fo:font-weight="normal" fo:font-style="normal" /></style:style><style:style style:name="T16" style:family="text"><style:text-properties style:font-name="NotoSans" fo:font-size="7.05pt" fo:font-weight="normal" fo:font-style="normal" /></style:style><style:style style:name="T28" style:family="text"><style:text-properties style:font-name="LiberationSans-Bold" fo:font-size="9.65pt" fo:font-weight="bold" fo:font-style="normal" /></style:style><style:style style:name="T24" style:family="text"><style:text-properties style:font-name="Helvetica" fo:font-size="9.75pt" fo:font-weight="normal" fo:font-style="normal" /></style:style><style:style style:name="T26" style:family="text"><style:text-properties style:font-name="Helvetica" fo:font-size="8.20pt" fo:font-weight="normal" fo:font-style="normal" /></style:style><style:style style:name="T21" style:family="text"><style:text-properties style:font-name="Helvetica" fo:font-size="8.00pt" fo:font-weight="normal" fo:font-style="normal" /></style:style><style:style style:name="T17" style:family="text"><style:text-properties style:font-name="Helvetica" fo:font-size="7.05pt" fo:font-weight="normal" fo:font-style="normal" /></style:style><style:style style:name="T12" style:family="text"><style:text-properties style:font-name="Arial-Unicode-MS-Bold" fo:font-size="8.20pt" fo:font-weight="bold" fo:font-style="normal" /></style:style><style:style style:name="T11" style:family="text"><style:text-properties style:font-name="Arial-Bold" fo:font-size="9.65pt" fo:font-weight="bold" fo:font-style="normal" /></style:style><style:style style:name="T13" style:family="text"><style:text-properties style:font-name="Arial" fo:font-size="7.15pt" fo:font-weight="normal" fo:font-style="normal" /></style:style><style:style style:name="gr1" style:family="graphic">
+<style:graphic-properties draw:stroke="none" svg:stroke-color="#000000" draw:fill="none" draw:fill-color="#ffffff" fo:min-height="1.9898in" style:run-through="foreground" style:wrap="run-through" style:number-wrapped-paragraphs="no-limit" style:vertical-pos="from-top" style:vertical-rel="paragraph" style:horizontal-pos="from-left" style:horizontal-rel="paragraph" />
+<style:paragraph-properties style:writing-mode="lr-tb"/>
+</style:style>
+<style:style style:name="fr1" style:family="graphic" style:parent-style-name="Graphics">
+<style:graphic-properties fo:margin-left="0in" fo:margin-right="0in" fo:margin-top="0in" fo:margin-bottom="0in" style:vertical-pos="top" style:vertical-rel="baseline" fo:background-color="transparent" draw:fill="none" draw:fill-color="#ffffff" fo:padding="0in" fo:border="none" style:mirror="none" fo:clip="rect(0in, 0in, 0in, 0in)" draw:luminance="0%" draw:contrast="0%" draw:red="0%" draw:green="0%" draw:blue="0%" draw:gamma="100%" draw:color-inversion="false" draw:image-opacity="100%" draw:color-mode="standard"/>
+</style:style>
+</office:automatic-styles>
+<style:style style:name="extract.table" style:family="table"/>
+<style:style style:name="extract.table.column" style:family="table-column"/>
+<office:body><office:text><text:sequence-decls><text:sequence-decl text:display-outline-level="0" text:name="Illustration"/><text:sequence-decl text:display-outline-level="0" text:name="Table"/><text:sequence-decl text:display-outline-level="0" text:name="Text"/><text:sequence-decl text:display-outline-level="0" text:name="Drawing"/><text:sequence-decl text:display-outline-level="0" text:name="Figure"/></text:sequence-decls><text:p text:style-name="Standard"/>
+
+<text:p><text:span text:style-name="T11">Section No &amp; Name </text:span><text:span text:style-name="T12">11</text:span><text:span text:style-name="T11"></text:span></text:p>
+ <table:table text:style-name="extract.table" table:name="extract.table.1">
+ <table:table-columns>
+ <table:table-column table:style-name="extract.table.column"/>
+ <table:table-column table:style-name="extract.table.column"/>
+ <table:table-column table:style-name="extract.table.column"/>
+ <table:table-column table:style-name="extract.table.column"/>
+ <table:table-column table:style-name="extract.table.column"/>
+ <table:table-column table:style-name="extract.table.column"/>
+ <table:table-column table:style-name="extract.table.column"/>
+ <table:table-column table:style-name="extract.table.column"/>
+ <table:table-column table:style-name="extract.table.column"/>
+ <table:table-column table:style-name="extract.table.column"/>
+ <table:table-column table:style-name="extract.table.column"/>
+ </table:table-columns>
+ <table:table-row>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13"> 1 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell table:number-columns-spanned="2" table:number-rows-spanned="2">
+
+
+<text:p><text:span text:style-name="T14">Sex : Male</text:span></text:p>
+
+<text:p><text:span text:style-name="T15">NEL0000001</text:span></text:p>
+
+<text:p><text:span text:style-name="T16">n</text:span><text:span text:style-name="T17"> </text:span><text:span text:style-name="T16">Doe</text:span></text:p>
+ </table:table-cell>
+ <table:covered-table-cell/>
+ <table:table-cell table:number-rows-spanned="20">
+
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13"> 2 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell table:number-columns-spanned="2" table:number-rows-spanned="2">
+
+
+<text:p><text:span text:style-name="T18">5 </text:span><text:span text:style-name="T14">Sex : Male</text:span></text:p>
+
+<text:p><text:span text:style-name="T15">NEL0000002</text:span></text:p>
+
+<text:p><text:span text:style-name="T17"> </text:span><text:span text:style-name="T16">Doe</text:span></text:p>
+ </table:table-cell>
+ <table:covered-table-cell/>
+ <table:table-cell table:number-rows-spanned="20">
+
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13"> 3 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell table:number-columns-spanned="2" table:number-rows-spanned="2">
+
+
+<text:p><text:span text:style-name="T18">5 </text:span><text:span text:style-name="T14">Sex : Male</text:span></text:p>
+
+<text:p><text:span text:style-name="T15">NEL0000003</text:span></text:p>
+
+<text:p><text:span text:style-name="T17"> </text:span><text:span text:style-name="T16">Doe</text:span></text:p>
+ </table:table-cell>
+ <table:covered-table-cell/>
+ </table:table-row>
+ <table:table-row>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">Name : </text:span><text:span text:style-name="T19">Father&apos;s </text:span><text:span text:style-name="T13">: </text:span><text:span text:style-name="T19">Name </text:span><text:span text:style-name="T18">0</text:span></text:p>
+
+<text:p><text:span text:style-name="T16">Joh</text:span></text:p>
+
+<text:p><text:span text:style-name="T20">House</text:span><text:span text:style-name="T21"> </text:span><text:span text:style-name="T20">No</text:span><text:span text:style-name="T21"> </text:span><text:span text:style-name="T20">: Age</text:span><text:span text:style-name="T21"> </text:span><text:span text:style-name="T20">:</text:span><text:span text:style-name="T21"> </text:span><text:span text:style-name="T20">55</text:span></text:p>
+ </table:table-cell>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">Name : </text:span><text:span text:style-name="T19">Father&apos;s </text:span><text:span text:style-name="T13">: </text:span><text:span text:style-name="T19">Name </text:span><text:span text:style-name="T18">1 </text:span><text:span text:style-name="T14">House No :</text:span></text:p>
+
+<text:p><text:span text:style-name="T16">John</text:span></text:p>
+
+<text:p><text:span text:style-name="T20">Age</text:span><text:span text:style-name="T21"> </text:span><text:span text:style-name="T20">:</text:span><text:span text:style-name="T21"> </text:span><text:span text:style-name="T20">63</text:span></text:p>
+ </table:table-cell>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">Name : </text:span><text:span text:style-name="T19">Father&apos;s </text:span><text:span text:style-name="T13">: </text:span><text:span text:style-name="T19">Name </text:span><text:span text:style-name="T18">1 </text:span><text:span text:style-name="T14">House No :</text:span></text:p>
+
+<text:p><text:span text:style-name="T16">John</text:span></text:p>
+
+<text:p><text:span text:style-name="T20">Age</text:span><text:span text:style-name="T21"> </text:span><text:span text:style-name="T20">:</text:span><text:span text:style-name="T21"> </text:span><text:span text:style-name="T20">33</text:span></text:p>
+ </table:table-cell>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ </table:table-row>
+ <table:table-row>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13"> 4 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell table:number-columns-spanned="2" table:number-rows-spanned="2">
+
+
+<text:p><text:span text:style-name="T18">1</text:span></text:p>
+
+<text:p><text:span text:style-name="T15">NEL0000004</text:span></text:p>
+
+<text:p><text:span text:style-name="T17"> </text:span><text:span text:style-name="T16">Doe</text:span></text:p>
+
+<text:p><text:span text:style-name="T20">Sex</text:span><text:span text:style-name="T21"> </text:span><text:span text:style-name="T20">:</text:span><text:span text:style-name="T21"> </text:span><text:span text:style-name="T20">Female</text:span></text:p>
+ </table:table-cell>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13"> 5 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell table:number-columns-spanned="2" table:number-rows-spanned="2">
+
+
+<text:p><text:span text:style-name="T18">8 </text:span><text:span text:style-name="T14">Sex : Male</text:span></text:p>
+
+<text:p><text:span text:style-name="T15">NEL0000005</text:span></text:p>
+
+<text:p><text:span text:style-name="T17"> </text:span><text:span text:style-name="T16">Doe</text:span></text:p>
+ </table:table-cell>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13"> 6 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell table:number-columns-spanned="2" table:number-rows-spanned="2">
+
+
+<text:p><text:span text:style-name="T18">5 </text:span><text:span text:style-name="T14">Sex : Female</text:span></text:p>
+
+<text:p><text:span text:style-name="T15">NEL0000006</text:span></text:p>
+
+<text:p><text:span text:style-name="T17"> </text:span><text:span text:style-name="T16">Doe</text:span></text:p>
+ </table:table-cell>
+ <table:covered-table-cell/>
+ </table:table-row>
+ <table:table-row>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">Name : </text:span><text:span text:style-name="T19">Father&apos;s </text:span><text:span text:style-name="T13">: </text:span><text:span text:style-name="T19">Name </text:span><text:span text:style-name="T18">3 </text:span><text:span text:style-name="T14">House No : Age : 23</text:span></text:p>
+
+<text:p><text:span text:style-name="T16">Jane</text:span></text:p>
+ </table:table-cell>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">Name : </text:span><text:span text:style-name="T19">Father&apos;s </text:span><text:span text:style-name="T13">: </text:span><text:span text:style-name="T19">Name </text:span><text:span text:style-name="T18">4 </text:span><text:span text:style-name="T14">Age : 22</text:span></text:p>
+
+<text:p><text:span text:style-name="T16">John</text:span></text:p>
+
+<text:p><text:span text:style-name="T20">House</text:span><text:span text:style-name="T21"> </text:span><text:span text:style-name="T20">No</text:span><text:span text:style-name="T21"> </text:span><text:span text:style-name="T20">:</text:span></text:p>
+ </table:table-cell>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">Name : </text:span><text:span text:style-name="T19">Husband&apos;s </text:span><text:span text:style-name="T13">: </text:span><text:span text:style-name="T19">Name </text:span><text:span text:style-name="T18">5 </text:span><text:span text:style-name="T14">House No : Age : 62</text:span></text:p>
+
+<text:p><text:span text:style-name="T16">Jane</text:span></text:p>
+ </table:table-cell>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ </table:table-row>
+ <table:table-row>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13"> 7 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell table:number-columns-spanned="2" table:number-rows-spanned="2">
+
+
+<text:p><text:span text:style-name="T18">2 </text:span><text:span text:style-name="T14">Sex : Female</text:span></text:p>
+
+<text:p><text:span text:style-name="T15">NEL0000007</text:span></text:p>
+
+<text:p><text:span text:style-name="T17"> </text:span><text:span text:style-name="T16">Doe</text:span></text:p>
+ </table:table-cell>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13"> 8 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell table:number-columns-spanned="2" table:number-rows-spanned="2">
+
+
+<text:p><text:span text:style-name="T18">3 </text:span><text:span text:style-name="T14">Sex : Male</text:span></text:p>
+
+<text:p><text:span text:style-name="T15">NEL0000008</text:span></text:p>
+
+<text:p><text:span text:style-name="T17"> </text:span><text:span text:style-name="T16">Doe</text:span></text:p>
+ </table:table-cell>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13"> 9 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell table:number-columns-spanned="2" table:number-rows-spanned="2">
+
+
+<text:p><text:span text:style-name="T18">3 </text:span><text:span text:style-name="T14">Sex : Female</text:span></text:p>
+
+<text:p><text:span text:style-name="T15">NEL0000009</text:span></text:p>
+
+<text:p><text:span text:style-name="T17"> </text:span><text:span text:style-name="T16">Doe</text:span></text:p>
+ </table:table-cell>
+ <table:covered-table-cell/>
+ </table:table-row>
+ <table:table-row>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">Name : </text:span><text:span text:style-name="T19">Husband&apos;s </text:span><text:span text:style-name="T13">: </text:span><text:span text:style-name="T19">Name </text:span><text:span text:style-name="T18">6 </text:span><text:span text:style-name="T14">House No : Age : 80</text:span></text:p>
+
+<text:p><text:span text:style-name="T16">Jane</text:span></text:p>
+ </table:table-cell>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">Name : </text:span><text:span text:style-name="T19">Father&apos;s </text:span><text:span text:style-name="T13">: </text:span><text:span text:style-name="T19">Name </text:span><text:span text:style-name="T18">6 </text:span><text:span text:style-name="T14">House No : Age : 61</text:span></text:p>
+
+<text:p><text:span text:style-name="T16">John</text:span></text:p>
+ </table:table-cell>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">Name : </text:span><text:span text:style-name="T19">Husband&apos;s </text:span><text:span text:style-name="T13">: </text:span><text:span text:style-name="T19">Name </text:span><text:span text:style-name="T18">6 </text:span><text:span text:style-name="T14">House No : Age : 54</text:span></text:p>
+
+<text:p><text:span text:style-name="T16">Jane</text:span></text:p>
+ </table:table-cell>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ </table:table-row>
+ <table:table-row>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13"> 10 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell table:number-columns-spanned="2" table:number-rows-spanned="2">
+
+
+<text:p><text:span text:style-name="T18">3 </text:span><text:span text:style-name="T14">Sex : Female</text:span></text:p>
+
+<text:p><text:span text:style-name="T15">NEL0000010</text:span></text:p>
+
+<text:p><text:span text:style-name="T17"> </text:span><text:span text:style-name="T16">Doe</text:span></text:p>
+ </table:table-cell>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13"> 11 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell table:number-columns-spanned="2" table:number-rows-spanned="2">
+
+
+<text:p><text:span text:style-name="T18">5 </text:span><text:span text:style-name="T14">Sex : Male</text:span></text:p>
+
+<text:p><text:span text:style-name="T15">NEL0000011</text:span></text:p>
+
+<text:p><text:span text:style-name="T17"> </text:span><text:span text:style-name="T16">Doe</text:span></text:p>
+ </table:table-cell>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13"> 12 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell table:number-columns-spanned="2" table:number-rows-spanned="2">
+
+
+<text:p><text:span text:style-name="T18">8 </text:span><text:span text:style-name="T14">Sex : Female</text:span></text:p>
+
+<text:p><text:span text:style-name="T15">LQK0000012</text:span></text:p>
+
+<text:p><text:span text:style-name="T17"> </text:span><text:span text:style-name="T16">Doe</text:span></text:p>
+ </table:table-cell>
+ <table:covered-table-cell/>
+ </table:table-row>
+ <table:table-row>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">Name : </text:span><text:span text:style-name="T19">Father&apos;s </text:span><text:span text:style-name="T13">: </text:span><text:span text:style-name="T19">Name </text:span><text:span text:style-name="T18">7 </text:span><text:span text:style-name="T14">House No : Age : 20</text:span></text:p>
+
+<text:p><text:span text:style-name="T16">Jane</text:span></text:p>
+ </table:table-cell>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">Name : </text:span><text:span text:style-name="T19">Father&apos;s </text:span><text:span text:style-name="T13">: </text:span><text:span text:style-name="T19">Name </text:span><text:span text:style-name="T18">7 </text:span><text:span text:style-name="T14">House No : Age : 49</text:span></text:p>
+
+<text:p><text:span text:style-name="T16">John</text:span></text:p>
+ </table:table-cell>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">Name : </text:span><text:span text:style-name="T19">Father&apos;s </text:span><text:span text:style-name="T13">: </text:span><text:span text:style-name="T19">Name </text:span><text:span text:style-name="T18">8 </text:span><text:span text:style-name="T14">House No : Age : 41</text:span></text:p>
+
+<text:p><text:span text:style-name="T16">Jane</text:span></text:p>
+ </table:table-cell>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ </table:table-row>
+ <table:table-row>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13"> 13 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell table:number-columns-spanned="2" table:number-rows-spanned="2">
+
+
+<text:p><text:span text:style-name="T18">2 </text:span><text:span text:style-name="T14">Sex : Female</text:span></text:p>
+
+<text:p><text:span text:style-name="T15">NEL0000013</text:span></text:p>
+
+<text:p><text:span text:style-name="T17"> </text:span><text:span text:style-name="T16">Doe</text:span></text:p>
+ </table:table-cell>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13"> 14 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell table:number-columns-spanned="2" table:number-rows-spanned="2">
+
+
+<text:p><text:span text:style-name="T18">04 </text:span><text:span text:style-name="T14">Sex : Female</text:span></text:p>
+
+<text:p><text:span text:style-name="T15">NEL0000014</text:span></text:p>
+
+<text:p><text:span text:style-name="T17"> </text:span><text:span text:style-name="T16">Doe</text:span></text:p>
+ </table:table-cell>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13"> 15 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell table:number-columns-spanned="2" table:number-rows-spanned="2">
+
+
+<text:p><text:span text:style-name="T18">04 </text:span><text:span text:style-name="T14">Sex : Male</text:span></text:p>
+
+<text:p><text:span text:style-name="T15">NEL0000015</text:span></text:p>
+
+<text:p><text:span text:style-name="T17"> </text:span><text:span text:style-name="T16">Doe</text:span></text:p>
+ </table:table-cell>
+ <table:covered-table-cell/>
+ </table:table-row>
+ <table:table-row>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">Name : </text:span><text:span text:style-name="T19">Husband&apos;s </text:span><text:span text:style-name="T13">: </text:span><text:span text:style-name="T19">Name </text:span><text:span text:style-name="T18">9 </text:span><text:span text:style-name="T14">House No : Age : 28</text:span></text:p>
+
+<text:p><text:span text:style-name="T16">Jane</text:span></text:p>
+ </table:table-cell>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">Name : </text:span><text:span text:style-name="T19">Husband&apos;s </text:span><text:span text:style-name="T13">: </text:span><text:span text:style-name="T19">Name </text:span><text:span text:style-name="T18">1 </text:span><text:span text:style-name="T14">House No : Age : 45</text:span></text:p>
+
+<text:p><text:span text:style-name="T16">Jane</text:span></text:p>
+ </table:table-cell>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">Name : </text:span><text:span text:style-name="T19">Father&apos;s </text:span><text:span text:style-name="T13">: </text:span><text:span text:style-name="T19">Name </text:span><text:span text:style-name="T18">1 </text:span><text:span text:style-name="T14">House No : Age : 43</text:span></text:p>
+
+<text:p><text:span text:style-name="T16">John</text:span></text:p>
+ </table:table-cell>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ </table:table-row>
+ <table:table-row>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13"> 16 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell table:number-columns-spanned="2" table:number-rows-spanned="2">
+
+
+<text:p><text:span text:style-name="T18">04 </text:span><text:span text:style-name="T14">Sex : Female</text:span></text:p>
+
+<text:p><text:span text:style-name="T15">NEL0000016</text:span></text:p>
+
+<text:p><text:span text:style-name="T17"> </text:span><text:span text:style-name="T16">Doe</text:span></text:p>
+ </table:table-cell>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13"> 17 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell table:number-columns-spanned="2" table:number-rows-spanned="2">
+
+
+<text:p><text:span text:style-name="T18">19-B </text:span><text:span text:style-name="T14">Sex : Female</text:span></text:p>
+
+<text:p><text:span text:style-name="T15">NEL0000017</text:span></text:p>
+
+<text:p><text:span text:style-name="T17"> </text:span><text:span text:style-name="T16">Doe</text:span></text:p>
+ </table:table-cell>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13"> 18 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell table:number-columns-spanned="2" table:number-rows-spanned="2">
+
+
+<text:p><text:span text:style-name="T18">26 </text:span><text:span text:style-name="T14">Sex : Female</text:span></text:p>
+
+<text:p><text:span text:style-name="T15">NEL0000018</text:span></text:p>
+
+<text:p><text:span text:style-name="T17"> </text:span><text:span text:style-name="T16">Doe</text:span></text:p>
+ </table:table-cell>
+ <table:covered-table-cell/>
+ </table:table-row>
+ <table:table-row>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">Name : </text:span><text:span text:style-name="T19">Father&apos;s </text:span><text:span text:style-name="T13">: </text:span><text:span text:style-name="T19">Name </text:span><text:span text:style-name="T18">1 </text:span><text:span text:style-name="T14">House No : Age : 23</text:span></text:p>
+
+<text:p><text:span text:style-name="T16">Jane</text:span></text:p>
+ </table:table-cell>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">Name : </text:span><text:span text:style-name="T19">Father&apos;s </text:span><text:span text:style-name="T13">: </text:span><text:span text:style-name="T19">Name </text:span><text:span text:style-name="T18">1 </text:span><text:span text:style-name="T14">House No : Age : 46</text:span></text:p>
+
+<text:p><text:span text:style-name="T16">Jane</text:span></text:p>
+ </table:table-cell>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">Name : </text:span><text:span text:style-name="T19">Father&apos;s </text:span><text:span text:style-name="T13">: </text:span><text:span text:style-name="T19">Name </text:span><text:span text:style-name="T18">1 </text:span><text:span text:style-name="T14">House No : Age : 22</text:span></text:p>
+
+<text:p><text:span text:style-name="T16">Jane</text:span></text:p>
+ </table:table-cell>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ </table:table-row>
+ <table:table-row>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13"> 19 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell table:number-columns-spanned="2" table:number-rows-spanned="2">
+
+
+<text:p><text:span text:style-name="T18">33 </text:span><text:span text:style-name="T14">Sex : Male</text:span></text:p>
+
+<text:p><text:span text:style-name="T15">NEL0000019</text:span></text:p>
+
+<text:p><text:span text:style-name="T16">n</text:span><text:span text:style-name="T17"> </text:span><text:span text:style-name="T16">Doe</text:span></text:p>
+ </table:table-cell>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13"> 20 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell table:number-columns-spanned="2" table:number-rows-spanned="2">
+
+
+<text:p><text:span text:style-name="T18">43 </text:span><text:span text:style-name="T14">Sex : Male</text:span></text:p>
+
+<text:p><text:span text:style-name="T15">NEL0000020</text:span></text:p>
+
+<text:p><text:span text:style-name="T17"> </text:span><text:span text:style-name="T16">Doe</text:span></text:p>
+ </table:table-cell>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13"> 21 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell table:number-columns-spanned="2" table:number-rows-spanned="2">
+
+
+<text:p><text:span text:style-name="T18">45 </text:span><text:span text:style-name="T14">Sex : Male</text:span></text:p>
+
+<text:p><text:span text:style-name="T15">NEL0000021</text:span></text:p>
+
+<text:p><text:span text:style-name="T17"> </text:span><text:span text:style-name="T16">Doe</text:span></text:p>
+ </table:table-cell>
+ <table:covered-table-cell/>
+ </table:table-row>
+ <table:table-row>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">Name : </text:span><text:span text:style-name="T19">Father&apos;s </text:span><text:span text:style-name="T13">: </text:span><text:span text:style-name="T19">Name </text:span><text:span text:style-name="T18">1 </text:span><text:span text:style-name="T14">House No : Age : 29</text:span></text:p>
+
+<text:p><text:span text:style-name="T16">Joh</text:span></text:p>
+ </table:table-cell>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">Name : </text:span><text:span text:style-name="T19">Father&apos;s </text:span><text:span text:style-name="T13">: </text:span><text:span text:style-name="T19">Name </text:span><text:span text:style-name="T18">1 </text:span><text:span text:style-name="T14">House No : Age : 25</text:span></text:p>
+
+<text:p><text:span text:style-name="T16">John</text:span></text:p>
+ </table:table-cell>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">Name : </text:span><text:span text:style-name="T19">Father&apos;s </text:span><text:span text:style-name="T13">: </text:span><text:span text:style-name="T19">Name </text:span><text:span text:style-name="T18">1 </text:span><text:span text:style-name="T14">House No : Age : 47</text:span></text:p>
+
+<text:p><text:span text:style-name="T16">John</text:span></text:p>
+ </table:table-cell>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ </table:table-row>
+ <table:table-row>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13"> 22 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell table:number-columns-spanned="2" table:number-rows-spanned="2">
+
+
+<text:p><text:span text:style-name="T18">47 </text:span><text:span text:style-name="T14">Sex : Female</text:span></text:p>
+
+<text:p><text:span text:style-name="T15">NEL0000022</text:span></text:p>
+
+<text:p><text:span text:style-name="T17"> </text:span><text:span text:style-name="T16">Doe</text:span></text:p>
+ </table:table-cell>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13"> 23 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell table:number-columns-spanned="2" table:number-rows-spanned="2">
+
+
+<text:p><text:span text:style-name="T18">51 </text:span><text:span text:style-name="T14">Sex : Male</text:span></text:p>
+
+<text:p><text:span text:style-name="T15">NEL0000023</text:span></text:p>
+
+<text:p><text:span text:style-name="T17"> </text:span><text:span text:style-name="T16">Doe</text:span></text:p>
+ </table:table-cell>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13"> 24 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell table:number-columns-spanned="2" table:number-rows-spanned="2">
+
+
+<text:p><text:span text:style-name="T18">55 </text:span><text:span text:style-name="T14">Sex : Female</text:span></text:p>
+
+<text:p><text:span text:style-name="T15">NEL0000024</text:span></text:p>
+
+<text:p><text:span text:style-name="T17"> </text:span><text:span text:style-name="T16">Doe</text:span></text:p>
+ </table:table-cell>
+ <table:covered-table-cell/>
+ </table:table-row>
+ <table:table-row>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">Name : </text:span><text:span text:style-name="T19">Father&apos;s </text:span><text:span text:style-name="T13">: </text:span><text:span text:style-name="T19">Name </text:span><text:span text:style-name="T18">1 </text:span><text:span text:style-name="T14">House No : Age : 20</text:span></text:p>
+
+<text:p><text:span text:style-name="T16">Jane</text:span></text:p>
+ </table:table-cell>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">Name : </text:span><text:span text:style-name="T19">Mother&apos;s </text:span><text:span text:style-name="T13">: </text:span><text:span text:style-name="T19">Name </text:span><text:span text:style-name="T18">1 </text:span><text:span text:style-name="T14">House No : Age : 24</text:span></text:p>
+
+<text:p><text:span text:style-name="T16">John</text:span></text:p>
+ </table:table-cell>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">Name : </text:span><text:span text:style-name="T19">Father&apos;s </text:span><text:span text:style-name="T13">: </text:span><text:span text:style-name="T19">Name </text:span><text:span text:style-name="T18">1 </text:span><text:span text:style-name="T14">House No : Age : 21</text:span></text:p>
+
+<text:p><text:span text:style-name="T16">Jane</text:span></text:p>
+ </table:table-cell>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ </table:table-row>
+ <table:table-row>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13"> 25 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell table:number-columns-spanned="2" table:number-rows-spanned="2">
+
+
+<text:p><text:span text:style-name="T18">78 </text:span><text:span text:style-name="T14">Sex : Male</text:span></text:p>
+
+<text:p><text:span text:style-name="T15">NEL0000025</text:span></text:p>
+
+<text:p><text:span text:style-name="T16">n</text:span><text:span text:style-name="T17"> </text:span><text:span text:style-name="T16">Doe</text:span></text:p>
+ </table:table-cell>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13"> 26 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell table:number-columns-spanned="2" table:number-rows-spanned="2">
+
+
+<text:p><text:span text:style-name="T18">78 </text:span><text:span text:style-name="T14">Sex : Female</text:span></text:p>
+
+<text:p><text:span text:style-name="T15">NEL0000026</text:span></text:p>
+
+<text:p><text:span text:style-name="T17"> </text:span><text:span text:style-name="T16">Doe</text:span></text:p>
+ </table:table-cell>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13"> 27 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell table:number-columns-spanned="2" table:number-rows-spanned="2">
+
+
+<text:p><text:span text:style-name="T18">94 </text:span><text:span text:style-name="T14">Sex : Male</text:span></text:p>
+
+<text:p><text:span text:style-name="T15">NEL0000027</text:span></text:p>
+
+<text:p><text:span text:style-name="T17"> </text:span><text:span text:style-name="T16">Doe</text:span></text:p>
+ </table:table-cell>
+ <table:covered-table-cell/>
+ </table:table-row>
+ <table:table-row>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">Name : </text:span><text:span text:style-name="T19">Father&apos;s </text:span><text:span text:style-name="T13">: </text:span><text:span text:style-name="T19">Name </text:span><text:span text:style-name="T18">1 </text:span><text:span text:style-name="T14">House No : Age : 41</text:span></text:p>
+
+<text:p><text:span text:style-name="T16">Joh</text:span></text:p>
+ </table:table-cell>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">Name : </text:span><text:span text:style-name="T19">Husband&apos;s </text:span><text:span text:style-name="T13">: </text:span><text:span text:style-name="T19">Name </text:span><text:span text:style-name="T18">1 </text:span><text:span text:style-name="T14">House No : Age : 35</text:span></text:p>
+
+<text:p><text:span text:style-name="T16">Jane</text:span></text:p>
+ </table:table-cell>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">Name : </text:span><text:span text:style-name="T19">Father&apos;s </text:span><text:span text:style-name="T13">: </text:span><text:span text:style-name="T19">Name </text:span><text:span text:style-name="T18">1 </text:span><text:span text:style-name="T14">House No : Age : 59</text:span></text:p>
+
+<text:p><text:span text:style-name="T16">John</text:span></text:p>
+ </table:table-cell>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ </table:table-row>
+ <table:table-row>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13"> 28 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell table:number-columns-spanned="2" table:number-rows-spanned="2">
+
+
+<text:p><text:span text:style-name="T18">95 </text:span><text:span text:style-name="T14">Sex : Female</text:span></text:p>
+
+<text:p><text:span text:style-name="T15">NEL0000028</text:span></text:p>
+
+<text:p><text:span text:style-name="T17"> </text:span><text:span text:style-name="T16">Doe</text:span></text:p>
+ </table:table-cell>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13"> 29 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell table:number-columns-spanned="2" table:number-rows-spanned="2">
+
+
+<text:p><text:span text:style-name="T18">95 </text:span><text:span text:style-name="T14">Sex : Female</text:span></text:p>
+
+<text:p><text:span text:style-name="T15">NEL0000029</text:span></text:p>
+
+<text:p><text:span text:style-name="T17"> </text:span><text:span text:style-name="T16">Doe</text:span></text:p>
+ </table:table-cell>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13"> 30 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell table:number-columns-spanned="2" table:number-rows-spanned="2">
+
+
+<text:p><text:span text:style-name="T18">01 </text:span><text:span text:style-name="T14">Sex : Male</text:span></text:p>
+
+<text:p><text:span text:style-name="T15">NEL0000030</text:span></text:p>
+
+<text:p><text:span text:style-name="T17"> </text:span><text:span text:style-name="T16">Doe</text:span></text:p>
+ </table:table-cell>
+ <table:covered-table-cell/>
+ </table:table-row>
+ <table:table-row>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">Name : </text:span><text:span text:style-name="T19">Husband&apos;s </text:span><text:span text:style-name="T13">: </text:span><text:span text:style-name="T19">Name </text:span><text:span text:style-name="T18">1 </text:span><text:span text:style-name="T14">House No : Age : 33</text:span></text:p>
+
+<text:p><text:span text:style-name="T16">Jane</text:span></text:p>
+ </table:table-cell>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">Name : </text:span><text:span text:style-name="T19">Husband&apos;s </text:span><text:span text:style-name="T13">: </text:span><text:span text:style-name="T19">Name </text:span><text:span text:style-name="T18">1 </text:span><text:span text:style-name="T14">House No : Age : 28</text:span></text:p>
+
+<text:p><text:span text:style-name="T16">Jane</text:span></text:p>
+ </table:table-cell>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T14">Name : </text:span><text:span text:style-name="T19">Father&apos;s </text:span><text:span text:style-name="T13">: </text:span><text:span text:style-name="T19">Name </text:span><text:span text:style-name="T18">2 </text:span><text:span text:style-name="T14">House No : Age : 45</text:span></text:p>
+
+<text:p><text:span text:style-name="T16">John</text:span></text:p>
+ </table:table-cell>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ </table:table-row>
+ </table:table>
+
+
+<text:p><text:span text:style-name="T18">S-Shifted, E-Expired, M-Missing, Q- Disqualification, R-Duplicate </text:span><text:span text:style-name="T22">Page 3 of 33 Age as on 01-01-2016 Issued By Electoral Registration Officer</text:span></text:p>
+
+<text:p><text:span text:style-name="T23">Electoral</text:span><text:span text:style-name="T24"> </text:span><text:span text:style-name="T23">Roll,</text:span><text:span text:style-name="T24"> </text:span><text:span text:style-name="T23">2016</text:span><text:span text:style-name="T24"> </text:span><text:span text:style-name="T23">of</text:span><text:span text:style-name="T24"> </text:span><text:span text:style-name="T23">Assembly</text:span><text:span text:style-name="T24"> </text:span><text:span text:style-name="T23">Constituency</text:span><text:span text:style-name="T24"> </text:span><text:span text:style-name="T23"></text:span><text:span text:style-name="T24"> </text:span><text:span text:style-name="T23">VIKASPURI,</text:span><text:span text:style-name="T24"> </text:span><text:span text:style-name="T23">(GEN)</text:span><text:span text:style-name="T24"> </text:span><text:span text:style-name="T23">NCT</text:span><text:span text:style-name="T24"> </text:span><text:span text:style-name="T23">of</text:span><text:span text:style-name="T24"> </text:span><text:span text:style-name="T23">Delhi </text:span><text:span text:style-name="T25">Part No - xxx</text:span></text:p>
+
+<text:p><text:span text:style-name="T26"> </text:span><text:span text:style-name="T27">VIKAS</text:span><text:span text:style-name="T26"> </text:span><text:span text:style-name="T27">PURI,</text:span><text:span text:style-name="T26"> </text:span><text:span text:style-name="T27">DELHI </text:span><text:span text:style-name="T28">(This PDF file has been edited)</text:span></text:p></office:text></office:body></office:document-content> \ No newline at end of file
diff --git a/extract/test/electoral_roll.pdf.mutool.odt.dir.ref/manifest.rdf b/extract/test/electoral_roll.pdf.mutool.odt.dir.ref/manifest.rdf
new file mode 100644
index 00000000..927e206b
--- /dev/null
+++ b/extract/test/electoral_roll.pdf.mutool.odt.dir.ref/manifest.rdf
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="utf-8"?>
+<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
+ <rdf:Description rdf:about="styles.xml">
+ <rdf:type rdf:resource="http://docs.oasis-open.org/ns/office/1.2/meta/odf#StylesFile"/>
+ </rdf:Description>
+ <rdf:Description rdf:about="">
+ <ns0:hasPart xmlns:ns0="http://docs.oasis-open.org/ns/office/1.2/meta/pkg#" rdf:resource="styles.xml"/>
+ </rdf:Description>
+ <rdf:Description rdf:about="content.xml">
+ <rdf:type rdf:resource="http://docs.oasis-open.org/ns/office/1.2/meta/odf#ContentFile"/>
+ </rdf:Description>
+ <rdf:Description rdf:about="">
+ <ns0:hasPart xmlns:ns0="http://docs.oasis-open.org/ns/office/1.2/meta/pkg#" rdf:resource="content.xml"/>
+ </rdf:Description>
+ <rdf:Description rdf:about="">
+ <rdf:type rdf:resource="http://docs.oasis-open.org/ns/office/1.2/meta/pkg#Document"/>
+ </rdf:Description>
+</rdf:RDF>
diff --git a/extract/test/electoral_roll.pdf.mutool.odt.dir.ref/meta.xml b/extract/test/electoral_roll.pdf.mutool.odt.dir.ref/meta.xml
new file mode 100644
index 00000000..6b42561e
--- /dev/null
+++ b/extract/test/electoral_roll.pdf.mutool.odt.dir.ref/meta.xml
@@ -0,0 +1,2 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<office:document-meta xmlns:grddl="http://www.w3.org/2003/g/data-view#" xmlns:meta="urn:oasis:names:tc:opendocument:xmlns:meta:1.0" xmlns:ooo="http://openoffice.org/2004/office" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" office:version="1.3"><office:meta><meta:creation-date>2021-04-05T17:06:57.937137058</meta:creation-date><meta:generator>LibreOffice/7.0.1.2$OpenBSD_X86_64 LibreOffice_project/00$Build-2</meta:generator><dc:date>2021-04-06T17:14:51.409959656</dc:date><meta:editing-duration>PT20S</meta:editing-duration><meta:editing-cycles>1</meta:editing-cycles><meta:document-statistic meta:table-count="0" meta:image-count="0" meta:object-count="0" meta:page-count="1" meta:paragraph-count="0" meta:word-count="0" meta:character-count="0" meta:non-whitespace-character-count="0"/></office:meta></office:document-meta> \ No newline at end of file
diff --git a/extract/test/electoral_roll.pdf.mutool.odt.dir.ref/mimetype b/extract/test/electoral_roll.pdf.mutool.odt.dir.ref/mimetype
new file mode 100644
index 00000000..2e95b81c
--- /dev/null
+++ b/extract/test/electoral_roll.pdf.mutool.odt.dir.ref/mimetype
@@ -0,0 +1 @@
+application/vnd.oasis.opendocument.text \ No newline at end of file
diff --git a/extract/test/electoral_roll.pdf.mutool.odt.dir.ref/settings.xml b/extract/test/electoral_roll.pdf.mutool.odt.dir.ref/settings.xml
new file mode 100644
index 00000000..35a8138f
--- /dev/null
+++ b/extract/test/electoral_roll.pdf.mutool.odt.dir.ref/settings.xml
@@ -0,0 +1,2 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<office:document-settings xmlns:config="urn:oasis:names:tc:opendocument:xmlns:config:1.0" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:ooo="http://openoffice.org/2004/office" xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" office:version="1.3"><office:settings><config:config-item-set config:name="ooo:view-settings"><config:config-item config:name="ViewAreaTop" config:type="long">0</config:config-item><config:config-item config:name="ViewAreaLeft" config:type="long">0</config:config-item><config:config-item config:name="ViewAreaWidth" config:type="long">26275</config:config-item><config:config-item config:name="ViewAreaHeight" config:type="long">19502</config:config-item><config:config-item config:name="ShowRedlineChanges" config:type="boolean">true</config:config-item><config:config-item config:name="InBrowseMode" config:type="boolean">false</config:config-item><config:config-item-map-indexed config:name="Views"><config:config-item-map-entry><config:config-item config:name="ViewId" config:type="string">view2</config:config-item><config:config-item config:name="ViewLeft" config:type="long">4343</config:config-item><config:config-item config:name="ViewTop" config:type="long">2501</config:config-item><config:config-item config:name="VisibleLeft" config:type="long">0</config:config-item><config:config-item config:name="VisibleTop" config:type="long">0</config:config-item><config:config-item config:name="VisibleRight" config:type="long">26273</config:config-item><config:config-item config:name="VisibleBottom" config:type="long">19500</config:config-item><config:config-item config:name="ZoomType" config:type="short">0</config:config-item><config:config-item config:name="ViewLayoutColumns" config:type="short">1</config:config-item><config:config-item config:name="ViewLayoutBookMode" config:type="boolean">false</config:config-item><config:config-item config:name="ZoomFactor" config:type="short">100</config:config-item><config:config-item config:name="IsSelectedFrame" config:type="boolean">false</config:config-item><config:config-item config:name="AnchoredTextOverflowLegacy" config:type="boolean">false</config:config-item></config:config-item-map-entry></config:config-item-map-indexed></config:config-item-set><config:config-item-set config:name="ooo:configuration-settings"><config:config-item config:name="PrintBlackFonts" config:type="boolean">false</config:config-item><config:config-item config:name="PrintReversed" config:type="boolean">false</config:config-item><config:config-item config:name="SaveThumbnail" config:type="boolean">true</config:config-item><config:config-item config:name="EmbedFonts" config:type="boolean">false</config:config-item><config:config-item config:name="PrintControls" config:type="boolean">true</config:config-item><config:config-item config:name="OutlineLevelYieldsNumbering" config:type="boolean">false</config:config-item><config:config-item config:name="PrintPageBackground" config:type="boolean">true</config:config-item><config:config-item config:name="PrintAnnotationMode" config:type="short">0</config:config-item><config:config-item config:name="PrintGraphics" config:type="boolean">true</config:config-item><config:config-item config:name="EmbeddedDatabaseName" config:type="string"/><config:config-item config:name="ProtectForm" config:type="boolean">false</config:config-item><config:config-item config:name="PrintLeftPages" config:type="boolean">true</config:config-item><config:config-item config:name="PrintProspect" config:type="boolean">false</config:config-item><config:config-item config:name="PrintHiddenText" config:type="boolean">false</config:config-item><config:config-item config:name="PrintRightPages" config:type="boolean">true</config:config-item><config:config-item config:name="PrintFaxName" config:type="string"/><config:config-item config:name="PrintPaperFromSetup" config:type="boolean">false</config:config-item><config:config-item config:name="TabsRelativeToIndent" config:type="boolean">true</config:config-item><config:config-item config:name="RedlineProtectionKey" config:type="base64Binary"/><config:config-item config:name="PrintTextPlaceholder" config:type="boolean">false</config:config-item><config:config-item config:name="MathBaselineAlignment" config:type="boolean">true</config:config-item><config:config-item config:name="ProtectBookmarks" config:type="boolean">false</config:config-item><config:config-item config:name="IgnoreTabsAndBlanksForLineCalculation" config:type="boolean">false</config:config-item><config:config-item config:name="ContinuousEndnotes" config:type="boolean">false</config:config-item><config:config-item config:name="FieldAutoUpdate" config:type="boolean">true</config:config-item><config:config-item config:name="EmptyDbFieldHidesPara" config:type="boolean">true</config:config-item><config:config-item config:name="ApplyParagraphMarkFormatToNumbering" config:type="boolean">false</config:config-item><config:config-item config:name="PrintEmptyPages" config:type="boolean">true</config:config-item><config:config-item config:name="TabOverMargin" config:type="boolean">false</config:config-item><config:config-item config:name="EmbedAsianScriptFonts" config:type="boolean">true</config:config-item><config:config-item config:name="EmbedLatinScriptFonts" config:type="boolean">true</config:config-item><config:config-item config:name="DisableOffPagePositioning" config:type="boolean">false</config:config-item><config:config-item config:name="EmbedOnlyUsedFonts" config:type="boolean">false</config:config-item><config:config-item config:name="MsWordCompMinLineHeightByFly" config:type="boolean">false</config:config-item><config:config-item config:name="SurroundTextWrapSmall" config:type="boolean">false</config:config-item><config:config-item config:name="BackgroundParaOverDrawings" config:type="boolean">false</config:config-item><config:config-item config:name="ClippedPictures" config:type="boolean">false</config:config-item><config:config-item config:name="FloattableNomargins" config:type="boolean">false</config:config-item><config:config-item config:name="UnbreakableNumberings" config:type="boolean">false</config:config-item><config:config-item config:name="EmbedSystemFonts" config:type="boolean">false</config:config-item><config:config-item config:name="TabOverflow" config:type="boolean">true</config:config-item><config:config-item config:name="PrintTables" config:type="boolean">true</config:config-item><config:config-item config:name="PrintDrawings" config:type="boolean">true</config:config-item><config:config-item config:name="ConsiderTextWrapOnObjPos" config:type="boolean">false</config:config-item><config:config-item config:name="PrintSingleJobs" config:type="boolean">false</config:config-item><config:config-item config:name="SmallCapsPercentage66" config:type="boolean">false</config:config-item><config:config-item config:name="CollapseEmptyCellPara" config:type="boolean">true</config:config-item><config:config-item config:name="HeaderSpacingBelowLastPara" config:type="boolean">false</config:config-item><config:config-item config:name="RsidRoot" config:type="int">2052946</config:config-item><config:config-item config:name="PrinterSetup" config:type="base64Binary"/><config:config-item config:name="CurrentDatabaseCommand" config:type="string"/><config:config-item config:name="AlignTabStopPosition" config:type="boolean">true</config:config-item><config:config-item config:name="ClipAsCharacterAnchoredWriterFlyFrames" config:type="boolean">false</config:config-item><config:config-item config:name="DoNotCaptureDrawObjsOnPage" config:type="boolean">false</config:config-item><config:config-item config:name="SaveGlobalDocumentLinks" config:type="boolean">false</config:config-item><config:config-item config:name="CurrentDatabaseCommandType" config:type="int">0</config:config-item><config:config-item config:name="LoadReadonly" config:type="boolean">false</config:config-item><config:config-item config:name="DoNotResetParaAttrsForNumFont" config:type="boolean">false</config:config-item><config:config-item config:name="StylesNoDefault" config:type="boolean">false</config:config-item><config:config-item config:name="LinkUpdateMode" config:type="short">1</config:config-item><config:config-item config:name="DoNotJustifyLinesWithManualBreak" config:type="boolean">false</config:config-item><config:config-item config:name="PropLineSpacingShrinksFirstLine" config:type="boolean">true</config:config-item><config:config-item config:name="TabAtLeftIndentForParagraphsInList" config:type="boolean">false</config:config-item><config:config-item config:name="ProtectFields" config:type="boolean">false</config:config-item><config:config-item config:name="UnxForceZeroExtLeading" config:type="boolean">false</config:config-item><config:config-item config:name="CurrentDatabaseDataSource" config:type="string"/><config:config-item config:name="UseFormerTextWrapping" config:type="boolean">false</config:config-item><config:config-item config:name="UseFormerLineSpacing" config:type="boolean">false</config:config-item><config:config-item config:name="AllowPrintJobCancel" config:type="boolean">true</config:config-item><config:config-item config:name="SubtractFlysAnchoredAtFlys" config:type="boolean">false</config:config-item><config:config-item config:name="AddParaSpacingToTableCells" config:type="boolean">true</config:config-item><config:config-item config:name="AddExternalLeading" config:type="boolean">true</config:config-item><config:config-item config:name="Rsid" config:type="int">2178852</config:config-item><config:config-item config:name="AddVerticalFrameOffsets" config:type="boolean">false</config:config-item><config:config-item config:name="TreatSingleColumnBreakAsPageBreak" config:type="boolean">false</config:config-item><config:config-item config:name="AddFrameOffsets" config:type="boolean">false</config:config-item><config:config-item config:name="IsLabelDocument" config:type="boolean">false</config:config-item><config:config-item config:name="MsWordCompTrailingBlanks" config:type="boolean">false</config:config-item><config:config-item config:name="PrinterPaperFromSetup" config:type="boolean">false</config:config-item><config:config-item config:name="IgnoreFirstLineIndentInNumbering" config:type="boolean">false</config:config-item><config:config-item config:name="PrinterName" config:type="string"/><config:config-item config:name="IsKernAsianPunctuation" config:type="boolean">false</config:config-item><config:config-item config:name="PrinterIndependentLayout" config:type="string">high-resolution</config:config-item><config:config-item config:name="TableRowKeep" config:type="boolean">false</config:config-item><config:config-item config:name="UpdateFromTemplate" config:type="boolean">true</config:config-item><config:config-item config:name="EmbedComplexScriptFonts" config:type="boolean">true</config:config-item><config:config-item config:name="UseOldPrinterMetrics" config:type="boolean">false</config:config-item><config:config-item config:name="InvertBorderSpacing" config:type="boolean">false</config:config-item><config:config-item config:name="PrintProspectRTL" config:type="boolean">false</config:config-item><config:config-item config:name="ApplyUserData" config:type="boolean">true</config:config-item><config:config-item config:name="AddParaTableSpacingAtStart" config:type="boolean">true</config:config-item><config:config-item config:name="SaveVersionOnClose" config:type="boolean">false</config:config-item><config:config-item config:name="CharacterCompressionType" config:type="short">0</config:config-item><config:config-item config:name="UseOldNumbering" config:type="boolean">false</config:config-item><config:config-item config:name="UseFormerObjectPositioning" config:type="boolean">false</config:config-item><config:config-item config:name="ChartAutoUpdate" config:type="boolean">true</config:config-item><config:config-item config:name="AddParaTableSpacing" config:type="boolean">true</config:config-item></config:config-item-set></office:settings></office:document-settings> \ No newline at end of file
diff --git a/extract/test/electoral_roll.pdf.mutool.odt.dir.ref/styles.xml b/extract/test/electoral_roll.pdf.mutool.odt.dir.ref/styles.xml
new file mode 100644
index 00000000..91403c4e
--- /dev/null
+++ b/extract/test/electoral_roll.pdf.mutool.odt.dir.ref/styles.xml
@@ -0,0 +1,2 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<office:document-styles xmlns:css3t="http://www.w3.org/TR/css3-text/" xmlns:grddl="http://www.w3.org/2003/g/data-view#" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:dom="http://www.w3.org/2001/xml-events" xmlns:script="urn:oasis:names:tc:opendocument:xmlns:script:1.0" xmlns:form="urn:oasis:names:tc:opendocument:xmlns:form:1.0" xmlns:math="http://www.w3.org/1998/Math/MathML" xmlns:number="urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0" xmlns:field="urn:openoffice:names:experimental:ooo-ms-interop:xmlns:field:1.0" xmlns:meta="urn:oasis:names:tc:opendocument:xmlns:meta:1.0" xmlns:loext="urn:org:documentfoundation:names:experimental:office:xmlns:loext:1.0" xmlns:officeooo="http://openoffice.org/2009/office" xmlns:table="urn:oasis:names:tc:opendocument:xmlns:table:1.0" xmlns:chart="urn:oasis:names:tc:opendocument:xmlns:chart:1.0" xmlns:tableooo="http://openoffice.org/2009/table" xmlns:draw="urn:oasis:names:tc:opendocument:xmlns:drawing:1.0" xmlns:rpt="http://openoffice.org/2005/report" xmlns:dr3d="urn:oasis:names:tc:opendocument:xmlns:dr3d:1.0" xmlns:of="urn:oasis:names:tc:opendocument:xmlns:of:1.2" xmlns:text="urn:oasis:names:tc:opendocument:xmlns:text:1.0" xmlns:style="urn:oasis:names:tc:opendocument:xmlns:style:1.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:calcext="urn:org:documentfoundation:names:experimental:calc:xmlns:calcext:1.0" xmlns:oooc="http://openoffice.org/2004/calc" xmlns:drawooo="http://openoffice.org/2010/draw" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:ooo="http://openoffice.org/2004/office" xmlns:ooow="http://openoffice.org/2004/writer" xmlns:fo="urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0" xmlns:svg="urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0" xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" office:version="1.3"><office:font-face-decls><style:font-face style:name="Liberation Serif" svg:font-family="&apos;Liberation Serif&apos;" style:font-family-generic="roman" style:font-pitch="variable"/><style:font-face style:name="Liberation Sans" svg:font-family="&apos;Liberation Sans&apos;" style:font-family-generic="swiss" style:font-pitch="variable"/><style:font-face style:name="Unifont" svg:font-family="Unifont" style:font-family-generic="system" style:font-pitch="variable"/></office:font-face-decls><office:styles><style:default-style style:family="graphic"><style:graphic-properties svg:stroke-color="#3465a4" draw:fill-color="#729fcf" fo:wrap-option="no-wrap" draw:shadow-offset-x="0.1181in" draw:shadow-offset-y="0.1181in" draw:start-line-spacing-horizontal="0.1114in" draw:start-line-spacing-vertical="0.1114in" draw:end-line-spacing-horizontal="0.1114in" draw:end-line-spacing-vertical="0.1114in" style:flow-with-text="false"/><style:paragraph-properties style:text-autospace="ideograph-alpha" style:line-break="strict" style:font-independent-line-spacing="false"><style:tab-stops/></style:paragraph-properties><style:text-properties style:use-window-font-color="true" loext:opacity="0%" style:font-name="Liberation Serif" fo:font-size="12pt" fo:language="en" fo:country="US" style:letter-kerning="true" style:font-name-asian="Unifont" style:font-size-asian="10.5pt" style:language-asian="zh" style:country-asian="CN" style:font-name-complex="Unifont" style:font-size-complex="12pt" style:language-complex="hi" style:country-complex="IN"/></style:default-style><style:default-style style:family="paragraph"><style:paragraph-properties fo:orphans="2" fo:widows="2" fo:hyphenation-ladder-count="no-limit" style:text-autospace="ideograph-alpha" style:punctuation-wrap="hanging" style:line-break="strict" style:tab-stop-distance="0.4925in" style:writing-mode="page"/><style:text-properties style:use-window-font-color="true" loext:opacity="0%" style:font-name="Liberation Serif" fo:font-size="12pt" fo:language="en" fo:country="US" style:letter-kerning="true" style:font-name-asian="Unifont" style:font-size-asian="10.5pt" style:language-asian="zh" style:country-asian="CN" style:font-name-complex="Unifont" style:font-size-complex="12pt" style:language-complex="hi" style:country-complex="IN" fo:hyphenate="false" fo:hyphenation-remain-char-count="2" fo:hyphenation-push-char-count="2" loext:hyphenation-no-caps="false"/></style:default-style><style:default-style style:family="table"><style:table-properties table:border-model="collapsing"/></style:default-style><style:default-style style:family="table-row"><style:table-row-properties fo:keep-together="auto"/></style:default-style><style:style style:name="Standard" style:family="paragraph" style:class="text"><style:paragraph-properties fo:margin-top="0in" fo:margin-bottom="0.0799in" style:contextual-spacing="false"/></style:style><style:style style:name="Heading" style:family="paragraph" style:parent-style-name="Standard" style:next-style-name="Text_20_body" style:class="text"><style:paragraph-properties fo:margin-top="0.1665in" fo:margin-bottom="0.0835in" style:contextual-spacing="false" fo:keep-with-next="always"/><style:text-properties style:font-name="Liberation Sans" fo:font-family="&apos;Liberation Sans&apos;" style:font-family-generic="swiss" style:font-pitch="variable" fo:font-size="14pt" style:font-name-asian="Unifont" style:font-family-asian="Unifont" style:font-family-generic-asian="system" style:font-pitch-asian="variable" style:font-size-asian="14pt" style:font-name-complex="Unifont" style:font-family-complex="Unifont" style:font-family-generic-complex="system" style:font-pitch-complex="variable" style:font-size-complex="14pt"/></style:style><style:style style:name="Text_20_body" style:display-name="Text body" style:family="paragraph" style:parent-style-name="Standard" style:class="text"><style:paragraph-properties fo:margin-top="0in" fo:margin-bottom="0.0972in" style:contextual-spacing="false" fo:line-height="115%"/></style:style><style:style style:name="List" style:family="paragraph" style:parent-style-name="Text_20_body" style:class="list"><style:text-properties style:font-size-asian="12pt"/></style:style><style:style style:name="Caption" style:family="paragraph" style:parent-style-name="Standard" style:class="extra"><style:paragraph-properties fo:margin-top="0.0835in" fo:margin-bottom="0.0835in" style:contextual-spacing="false" text:number-lines="false" text:line-number="0"/><style:text-properties fo:font-size="12pt" fo:font-style="italic" style:font-size-asian="12pt" style:font-style-asian="italic" style:font-size-complex="12pt" style:font-style-complex="italic"/></style:style><style:style style:name="Index" style:family="paragraph" style:parent-style-name="Standard" style:class="index"><style:paragraph-properties text:number-lines="false" text:line-number="0"/><style:text-properties style:font-size-asian="12pt"/></style:style><text:outline-style style:name="Outline"><text:outline-level-style text:level="1" style:num-format=""><style:list-level-properties text:list-level-position-and-space-mode="label-alignment"><style:list-level-label-alignment text:label-followed-by="listtab"/></style:list-level-properties></text:outline-level-style><text:outline-level-style text:level="2" style:num-format=""><style:list-level-properties text:list-level-position-and-space-mode="label-alignment"><style:list-level-label-alignment text:label-followed-by="listtab"/></style:list-level-properties></text:outline-level-style><text:outline-level-style text:level="3" style:num-format=""><style:list-level-properties text:list-level-position-and-space-mode="label-alignment"><style:list-level-label-alignment text:label-followed-by="listtab"/></style:list-level-properties></text:outline-level-style><text:outline-level-style text:level="4" style:num-format=""><style:list-level-properties text:list-level-position-and-space-mode="label-alignment"><style:list-level-label-alignment text:label-followed-by="listtab"/></style:list-level-properties></text:outline-level-style><text:outline-level-style text:level="5" style:num-format=""><style:list-level-properties text:list-level-position-and-space-mode="label-alignment"><style:list-level-label-alignment text:label-followed-by="listtab"/></style:list-level-properties></text:outline-level-style><text:outline-level-style text:level="6" style:num-format=""><style:list-level-properties text:list-level-position-and-space-mode="label-alignment"><style:list-level-label-alignment text:label-followed-by="listtab"/></style:list-level-properties></text:outline-level-style><text:outline-level-style text:level="7" style:num-format=""><style:list-level-properties text:list-level-position-and-space-mode="label-alignment"><style:list-level-label-alignment text:label-followed-by="listtab"/></style:list-level-properties></text:outline-level-style><text:outline-level-style text:level="8" style:num-format=""><style:list-level-properties text:list-level-position-and-space-mode="label-alignment"><style:list-level-label-alignment text:label-followed-by="listtab"/></style:list-level-properties></text:outline-level-style><text:outline-level-style text:level="9" style:num-format=""><style:list-level-properties text:list-level-position-and-space-mode="label-alignment"><style:list-level-label-alignment text:label-followed-by="listtab"/></style:list-level-properties></text:outline-level-style><text:outline-level-style text:level="10" style:num-format=""><style:list-level-properties text:list-level-position-and-space-mode="label-alignment"><style:list-level-label-alignment text:label-followed-by="listtab"/></style:list-level-properties></text:outline-level-style></text:outline-style><text:notes-configuration text:note-class="footnote" style:num-format="1" text:start-value="0" text:footnotes-position="page" text:start-numbering-at="document"/><text:notes-configuration text:note-class="endnote" style:num-format="i" text:start-value="0"/><text:linenumbering-configuration text:number-lines="false" text:offset="0.1965in" style:num-format="1" text:number-position="left" text:increment="5"/></office:styles><office:automatic-styles><style:page-layout style:name="Mpm1"><style:page-layout-properties fo:page-width="8.5in" fo:page-height="11in" style:num-format="1" style:print-orientation="portrait" fo:margin-top="0.7874in" fo:margin-bottom="0.7874in" fo:margin-left="0.7874in" fo:margin-right="0.7874in" style:writing-mode="lr-tb" style:layout-grid-color="#c0c0c0" style:layout-grid-lines="20" style:layout-grid-base-height="0.278in" style:layout-grid-ruby-height="0.139in" style:layout-grid-mode="none" style:layout-grid-ruby-below="false" style:layout-grid-print="false" style:layout-grid-display="false" style:footnote-max-height="0in"><style:footnote-sep style:width="0.0071in" style:distance-before-sep="0.0398in" style:distance-after-sep="0.0398in" style:line-style="solid" style:adjustment="left" style:rel-width="25%" style:color="#000000"/></style:page-layout-properties><style:header-style/><style:footer-style/></style:page-layout></office:automatic-styles><office:master-styles><style:master-page style:name="Standard" style:page-layout-name="Mpm1"/></office:master-styles></office:document-styles> \ No newline at end of file
diff --git a/extract/test/rotated.pdf b/extract/test/rotated.pdf
new file mode 100755
index 00000000..8b7a6152
--- /dev/null
+++ b/extract/test/rotated.pdf
Binary files differ
diff --git a/extract/test/rotated.pdf.mutool.docx.dir.ref/[Content_Types].xml b/extract/test/rotated.pdf.mutool.docx.dir.ref/[Content_Types].xml
new file mode 100644
index 00000000..07d88cca
--- /dev/null
+++ b/extract/test/rotated.pdf.mutool.docx.dir.ref/[Content_Types].xml
@@ -0,0 +1,2 @@
+<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
+<Types xmlns="http://schemas.openxmlformats.org/package/2006/content-types"><Default Extension="rels" ContentType="application/vnd.openxmlformats-package.relationships+xml"/><Default Extension="xml" ContentType="application/xml"/><Override PartName="/word/document.xml" ContentType="application/vnd.openxmlformats-officedocument.wordprocessingml.document.main+xml"/><Override PartName="/word/styles.xml" ContentType="application/vnd.openxmlformats-officedocument.wordprocessingml.styles+xml"/><Override PartName="/word/settings.xml" ContentType="application/vnd.openxmlformats-officedocument.wordprocessingml.settings+xml"/><Override PartName="/word/webSettings.xml" ContentType="application/vnd.openxmlformats-officedocument.wordprocessingml.webSettings+xml"/><Override PartName="/word/fontTable.xml" ContentType="application/vnd.openxmlformats-officedocument.wordprocessingml.fontTable+xml"/><Override PartName="/word/theme/theme1.xml" ContentType="application/vnd.openxmlformats-officedocument.theme+xml"/><Override PartName="/docProps/core.xml" ContentType="application/vnd.openxmlformats-package.core-properties+xml"/><Override PartName="/docProps/app.xml" ContentType="application/vnd.openxmlformats-officedocument.extended-properties+xml"/></Types> \ No newline at end of file
diff --git a/extract/test/rotated.pdf.mutool.docx.dir.ref/_rels/.rels b/extract/test/rotated.pdf.mutool.docx.dir.ref/_rels/.rels
new file mode 100644
index 00000000..32548d42
--- /dev/null
+++ b/extract/test/rotated.pdf.mutool.docx.dir.ref/_rels/.rels
@@ -0,0 +1,2 @@
+<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
+<Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships"><Relationship Id="rId3" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties" Target="docProps/app.xml"/><Relationship Id="rId2" Type="http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties" Target="docProps/core.xml"/><Relationship Id="rId1" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument" Target="word/document.xml"/></Relationships> \ No newline at end of file
diff --git a/extract/test/rotated.pdf.mutool.docx.dir.ref/docProps/app.xml b/extract/test/rotated.pdf.mutool.docx.dir.ref/docProps/app.xml
new file mode 100644
index 00000000..eb8dd2e5
--- /dev/null
+++ b/extract/test/rotated.pdf.mutool.docx.dir.ref/docProps/app.xml
@@ -0,0 +1,2 @@
+<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
+<Properties xmlns="http://schemas.openxmlformats.org/officeDocument/2006/extended-properties" xmlns:vt="http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes"><Template>Normal.dotm</Template><TotalTime>3</TotalTime><Pages>1</Pages><Words>2</Words><Characters>18</Characters><Application>Microsoft Office Word</Application><DocSecurity>0</DocSecurity><Lines>1</Lines><Paragraphs>1</Paragraphs><ScaleCrop>false</ScaleCrop><Company></Company><LinksUpToDate>false</LinksUpToDate><CharactersWithSpaces>19</CharactersWithSpaces><SharedDoc>false</SharedDoc><HyperlinksChanged>false</HyperlinksChanged><AppVersion>16.0000</AppVersion></Properties> \ No newline at end of file
diff --git a/extract/test/rotated.pdf.mutool.docx.dir.ref/docProps/core.xml b/extract/test/rotated.pdf.mutool.docx.dir.ref/docProps/core.xml
new file mode 100644
index 00000000..195d77a9
--- /dev/null
+++ b/extract/test/rotated.pdf.mutool.docx.dir.ref/docProps/core.xml
@@ -0,0 +1,2 @@
+<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
+<cp:coreProperties xmlns:cp="http://schemas.openxmlformats.org/package/2006/metadata/core-properties" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:dcterms="http://purl.org/dc/terms/" xmlns:dcmitype="http://purl.org/dc/dcmitype/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><dc:title></dc:title><dc:subject></dc:subject><dc:creator></dc:creator><cp:keywords></cp:keywords><dc:description></dc:description><cp:lastModifiedBy></cp:lastModifiedBy><cp:revision>1</cp:revision><dcterms:created xsi:type="dcterms:W3CDTF">2020-09-25T17:04:00Z</dcterms:created><dcterms:modified xsi:type="dcterms:W3CDTF">2020-09-25T17:07:00Z</dcterms:modified></cp:coreProperties> \ No newline at end of file
diff --git a/extract/test/rotated.pdf.mutool.docx.dir.ref/word/_rels/document.xml.rels b/extract/test/rotated.pdf.mutool.docx.dir.ref/word/_rels/document.xml.rels
new file mode 100644
index 00000000..3b2b7f8c
--- /dev/null
+++ b/extract/test/rotated.pdf.mutool.docx.dir.ref/word/_rels/document.xml.rels
@@ -0,0 +1,2 @@
+<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
+<Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships"><Relationship Id="rId3" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/webSettings" Target="webSettings.xml"/><Relationship Id="rId2" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/settings" Target="settings.xml"/><Relationship Id="rId1" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles" Target="styles.xml"/><Relationship Id="rId5" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme" Target="theme/theme1.xml"/><Relationship Id="rId4" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/fontTable" Target="fontTable.xml"/></Relationships> \ No newline at end of file
diff --git a/extract/test/rotated.pdf.mutool.docx.dir.ref/word/document.xml b/extract/test/rotated.pdf.mutool.docx.dir.ref/word/document.xml
new file mode 100644
index 00000000..2bb21496
--- /dev/null
+++ b/extract/test/rotated.pdf.mutool.docx.dir.ref/word/document.xml
@@ -0,0 +1,2216 @@
+<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
+<w:document xmlns:wpc="http://schemas.microsoft.com/office/word/2010/wordprocessingCanvas" xmlns:cx="http://schemas.microsoft.com/office/drawing/2014/chartex" xmlns:cx1="http://schemas.microsoft.com/office/drawing/2015/9/8/chartex" xmlns:cx2="http://schemas.microsoft.com/office/drawing/2015/10/21/chartex" xmlns:cx3="http://schemas.microsoft.com/office/drawing/2016/5/9/chartex" xmlns:cx4="http://schemas.microsoft.com/office/drawing/2016/5/10/chartex" xmlns:cx5="http://schemas.microsoft.com/office/drawing/2016/5/11/chartex" xmlns:cx6="http://schemas.microsoft.com/office/drawing/2016/5/12/chartex" xmlns:cx7="http://schemas.microsoft.com/office/drawing/2016/5/13/chartex" xmlns:cx8="http://schemas.microsoft.com/office/drawing/2016/5/14/chartex" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:aink="http://schemas.microsoft.com/office/drawing/2016/ink" xmlns:am3d="http://schemas.microsoft.com/office/drawing/2017/model3d" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships" xmlns:m="http://schemas.openxmlformats.org/officeDocument/2006/math" xmlns:v="urn:schemas-microsoft-com:vml" xmlns:wp14="http://schemas.microsoft.com/office/word/2010/wordprocessingDrawing" xmlns:wp="http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing" xmlns:w10="urn:schemas-microsoft-com:office:word" xmlns:w="http://schemas.openxmlformats.org/wordprocessingml/2006/main" xmlns:w14="http://schemas.microsoft.com/office/word/2010/wordml" xmlns:w15="http://schemas.microsoft.com/office/word/2012/wordml" xmlns:w16cex="http://schemas.microsoft.com/office/word/2018/wordml/cex" xmlns:w16cid="http://schemas.microsoft.com/office/word/2016/wordml/cid" xmlns:w16="http://schemas.microsoft.com/office/word/2018/wordml" xmlns:w16se="http://schemas.microsoft.com/office/word/2015/wordml/symex" xmlns:wpg="http://schemas.microsoft.com/office/word/2010/wordprocessingGroup" xmlns:wpi="http://schemas.microsoft.com/office/word/2010/wordprocessingInk" xmlns:wne="http://schemas.microsoft.com/office/word/2006/wordml" xmlns:wps="http://schemas.microsoft.com/office/word/2010/wordprocessingShape" mc:Ignorable="w14 w15 w16se w16cid w16 w16cex wp14"><w:body>
+ <w:tbl>
+ <w:tblLayout w:type="autofit"/>
+ <w:tr>
+ <w:trPr/>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="restart"/>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica-Bold" w:hAnsi="Helvetica-Bold"/><w:b/><w:sz w:val="22.000000"/><w:szCs w:val="16.500000"/></w:rPr><w:t xml:space="preserve">2011-12)</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica-Bold" w:hAnsi="Helvetica-Bold"/><w:b/><w:sz w:val="22.000000"/><w:szCs w:val="16.500000"/></w:rPr><w:t xml:space="preserve">(No.ofadults:</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica-Bold" w:hAnsi="Helvetica-Bold"/><w:b/><w:sz w:val="22.000000"/><w:szCs w:val="16.500000"/></w:rPr><w:t xml:space="preserve">FastingBloodSugar </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica-Bold" w:hAnsi="Helvetica-Bold"/><w:b/><w:sz w:val="22.000000"/><w:szCs w:val="16.500000"/></w:rPr><w:t xml:space="preserve">Women</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:sz w:val="22.000000"/><w:szCs w:val="16.500000"/></w:rPr><w:t xml:space="preserve">2391</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:sz w:val="22.000000"/><w:szCs w:val="16.500000"/></w:rPr><w:t xml:space="preserve">1739</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:sz w:val="22.000000"/><w:szCs w:val="16.500000"/></w:rPr><w:t xml:space="preserve">2028</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:sz w:val="22.000000"/><w:szCs w:val="16.500000"/></w:rPr><w:t xml:space="preserve">1529</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:sz w:val="22.000000"/><w:szCs w:val="16.500000"/></w:rPr><w:t xml:space="preserve">1599</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:sz w:val="22.000000"/><w:szCs w:val="16.500000"/></w:rPr><w:t xml:space="preserve">2503</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:sz w:val="22.000000"/><w:szCs w:val="16.500000"/></w:rPr><w:t xml:space="preserve">1709</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:sz w:val="22.000000"/><w:szCs w:val="16.500000"/></w:rPr><w:t xml:space="preserve">1628</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:sz w:val="22.000000"/><w:szCs w:val="16.500000"/></w:rPr><w:t xml:space="preserve">2027</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:sz w:val="22.000000"/><w:szCs w:val="16.500000"/></w:rPr><w:t xml:space="preserve">1366</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica-Bold" w:hAnsi="Helvetica-Bold"/><w:b/><w:sz w:val="22.000000"/><w:szCs w:val="16.500000"/></w:rPr><w:t xml:space="preserve">18519</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="restart"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="restart"/>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:sz w:val="22.000000"/><w:szCs w:val="16.500000"/></w:rPr><w:t xml:space="preserve">*Datanotavailable </w:t></w:r>
+</w:p> </w:tc>
+ </w:tr>
+ <w:tr>
+ <w:trPr/>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica-Bold" w:hAnsi="Helvetica-Bold"/><w:b/><w:sz w:val="22.000000"/><w:szCs w:val="16.500000"/></w:rPr><w:t xml:space="preserve">Men</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:sz w:val="22.000000"/><w:szCs w:val="16.500000"/></w:rPr><w:t xml:space="preserve">1645</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:sz w:val="22.000000"/><w:szCs w:val="16.500000"/></w:rPr><w:t xml:space="preserve">1119</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:sz w:val="22.000000"/><w:szCs w:val="16.500000"/></w:rPr><w:t xml:space="preserve">1628</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:sz w:val="22.000000"/><w:szCs w:val="16.500000"/></w:rPr><w:t xml:space="preserve">1111</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:sz w:val="22.000000"/><w:szCs w:val="16.500000"/></w:rPr><w:t xml:space="preserve">1417</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:sz w:val="22.000000"/><w:szCs w:val="16.500000"/></w:rPr><w:t xml:space="preserve">2122</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:sz w:val="22.000000"/><w:szCs w:val="16.500000"/></w:rPr><w:t xml:space="preserve">1579</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:sz w:val="22.000000"/><w:szCs w:val="16.500000"/></w:rPr><w:t xml:space="preserve">1093</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:sz w:val="22.000000"/><w:szCs w:val="16.500000"/></w:rPr><w:t xml:space="preserve">1413</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:sz w:val="22.000000"/><w:szCs w:val="16.500000"/></w:rPr><w:t xml:space="preserve">1185</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica-Bold" w:hAnsi="Helvetica-Bold"/><w:b/><w:sz w:val="22.000000"/><w:szCs w:val="16.500000"/></w:rPr><w:t xml:space="preserve">14312</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ </w:tr>
+ <w:tr>
+ <w:trPr/>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="restart"/>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica-Bold" w:hAnsi="Helvetica-Bold"/><w:b/><w:sz w:val="22.000000"/><w:szCs w:val="16.500000"/></w:rPr><w:t xml:space="preserve">2011-12)</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica-Bold" w:hAnsi="Helvetica-Bold"/><w:b/><w:sz w:val="22.000000"/><w:szCs w:val="16.500000"/></w:rPr><w:t xml:space="preserve">(No.ofadults: </w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica-Bold" w:hAnsi="Helvetica-Bold"/><w:b/><w:sz w:val="22.000000"/><w:szCs w:val="16.500000"/></w:rPr><w:t xml:space="preserve">BloodPressure </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica-Bold" w:hAnsi="Helvetica-Bold"/><w:b/><w:sz w:val="22.000000"/><w:szCs w:val="16.500000"/></w:rPr><w:t xml:space="preserve">Women</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:sz w:val="22.000000"/><w:szCs w:val="16.500000"/></w:rPr><w:t xml:space="preserve">3195</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:sz w:val="22.000000"/><w:szCs w:val="16.500000"/></w:rPr><w:t xml:space="preserve">2858</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:sz w:val="22.000000"/><w:szCs w:val="16.500000"/></w:rPr><w:t xml:space="preserve">2894</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:sz w:val="22.000000"/><w:szCs w:val="16.500000"/></w:rPr><w:t xml:space="preserve">2493</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:sz w:val="22.000000"/><w:szCs w:val="16.500000"/></w:rPr><w:t xml:space="preserve">2648</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:sz w:val="22.000000"/><w:szCs w:val="16.500000"/></w:rPr><w:t xml:space="preserve">3021</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:sz w:val="22.000000"/><w:szCs w:val="16.500000"/></w:rPr><w:t xml:space="preserve">2150</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:sz w:val="22.000000"/><w:szCs w:val="16.500000"/></w:rPr><w:t xml:space="preserve">2624</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:sz w:val="22.000000"/><w:szCs w:val="16.500000"/></w:rPr><w:t xml:space="preserve">2743</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:sz w:val="22.000000"/><w:szCs w:val="16.500000"/></w:rPr><w:t xml:space="preserve">2415</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica-Bold" w:hAnsi="Helvetica-Bold"/><w:b/><w:sz w:val="22.000000"/><w:szCs w:val="16.500000"/></w:rPr><w:t xml:space="preserve">27041</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ </w:tr>
+ <w:tr>
+ <w:trPr/>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica-Bold" w:hAnsi="Helvetica-Bold"/><w:b/><w:sz w:val="22.000000"/><w:szCs w:val="16.500000"/></w:rPr><w:t xml:space="preserve">Men</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:sz w:val="22.000000"/><w:szCs w:val="16.500000"/></w:rPr><w:t xml:space="preserve">2161</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:sz w:val="22.000000"/><w:szCs w:val="16.500000"/></w:rPr><w:t xml:space="preserve">2134</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:sz w:val="22.000000"/><w:szCs w:val="16.500000"/></w:rPr><w:t xml:space="preserve">2467</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:sz w:val="22.000000"/><w:szCs w:val="16.500000"/></w:rPr><w:t xml:space="preserve">1899</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:sz w:val="22.000000"/><w:szCs w:val="16.500000"/></w:rPr><w:t xml:space="preserve">2368</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:sz w:val="22.000000"/><w:szCs w:val="16.500000"/></w:rPr><w:t xml:space="preserve">2687</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:sz w:val="22.000000"/><w:szCs w:val="16.500000"/></w:rPr><w:t xml:space="preserve">1965</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:sz w:val="22.000000"/><w:szCs w:val="16.500000"/></w:rPr><w:t xml:space="preserve">2040</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:sz w:val="22.000000"/><w:szCs w:val="16.500000"/></w:rPr><w:t xml:space="preserve">2058</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:sz w:val="22.000000"/><w:szCs w:val="16.500000"/></w:rPr><w:t xml:space="preserve">2139</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica-Bold" w:hAnsi="Helvetica-Bold"/><w:b/><w:sz w:val="22.000000"/><w:szCs w:val="16.500000"/></w:rPr><w:t xml:space="preserve">21918</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ </w:tr>
+ <w:tr>
+ <w:trPr/>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:gridSpan w:val="2"/>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica-Bold" w:hAnsi="Helvetica-Bold"/><w:b/><w:sz w:val="22.000000"/><w:szCs w:val="16.500000"/></w:rPr><w:t xml:space="preserve">2011-12)</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica-Bold" w:hAnsi="Helvetica-Bold"/><w:b/><w:sz w:val="22.000000"/><w:szCs w:val="16.500000"/></w:rPr><w:t xml:space="preserve">IYCFPractices </w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica-Bold" w:hAnsi="Helvetica-Bold"/><w:b/><w:sz w:val="22.000000"/><w:szCs w:val="16.500000"/></w:rPr><w:t xml:space="preserve">(No.ofmothers: </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:sz w:val="22.000000"/><w:szCs w:val="16.500000"/></w:rPr><w:t xml:space="preserve">245</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:sz w:val="22.000000"/><w:szCs w:val="16.500000"/></w:rPr><w:t xml:space="preserve">413</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:sz w:val="22.000000"/><w:szCs w:val="16.500000"/></w:rPr><w:t xml:space="preserve">428</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:sz w:val="22.000000"/><w:szCs w:val="16.500000"/></w:rPr><w:t xml:space="preserve">557</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:sz w:val="22.000000"/><w:szCs w:val="16.500000"/></w:rPr><w:t xml:space="preserve">467</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:sz w:val="22.000000"/><w:szCs w:val="16.500000"/></w:rPr><w:t xml:space="preserve">477</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:sz w:val="22.000000"/><w:szCs w:val="16.500000"/></w:rPr><w:t xml:space="preserve">470</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:sz w:val="22.000000"/><w:szCs w:val="16.500000"/></w:rPr><w:t xml:space="preserve">398</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:sz w:val="22.000000"/><w:szCs w:val="16.500000"/></w:rPr><w:t xml:space="preserve">423</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:sz w:val="22.000000"/><w:szCs w:val="16.500000"/></w:rPr><w:t xml:space="preserve">581</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica-Bold" w:hAnsi="Helvetica-Bold"/><w:b/><w:sz w:val="22.000000"/><w:szCs w:val="16.500000"/></w:rPr><w:t xml:space="preserve">4459</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ </w:tr>
+ <w:tr>
+ <w:trPr/>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="restart"/>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica-Bold" w:hAnsi="Helvetica-Bold"/><w:b/><w:sz w:val="22.000000"/><w:szCs w:val="16.500000"/></w:rPr><w:t xml:space="preserve">(No.ofindividuals) </w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica-Bold" w:hAnsi="Helvetica-Bold"/><w:b/><w:sz w:val="22.000000"/><w:szCs w:val="16.500000"/></w:rPr><w:t xml:space="preserve">NutritionalAssessment </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica-Bold" w:hAnsi="Helvetica-Bold"/><w:b/><w:sz w:val="20.020000"/><w:szCs w:val="15.015000"/></w:rPr><w:t xml:space="preserve">2011-12 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:sz w:val="22.000000"/><w:szCs w:val="16.500000"/></w:rPr><w:t xml:space="preserve">8297</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:sz w:val="22.000000"/><w:szCs w:val="16.500000"/></w:rPr><w:t xml:space="preserve">7851</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:sz w:val="22.000000"/><w:szCs w:val="16.500000"/></w:rPr><w:t xml:space="preserve">8958</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:sz w:val="22.000000"/><w:szCs w:val="16.500000"/></w:rPr><w:t xml:space="preserve">8300</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:sz w:val="22.000000"/><w:szCs w:val="16.500000"/></w:rPr><w:t xml:space="preserve">9525</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:sz w:val="22.000000"/><w:szCs w:val="16.500000"/></w:rPr><w:t xml:space="preserve">9645</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:sz w:val="22.000000"/><w:szCs w:val="16.500000"/></w:rPr><w:t xml:space="preserve">7942</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:sz w:val="22.000000"/><w:szCs w:val="16.500000"/></w:rPr><w:t xml:space="preserve">8473</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:sz w:val="22.000000"/><w:szCs w:val="16.500000"/></w:rPr><w:t xml:space="preserve">8047</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:sz w:val="22.000000"/><w:szCs w:val="16.500000"/></w:rPr><w:t xml:space="preserve">9860</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica-Bold" w:hAnsi="Helvetica-Bold"/><w:b/><w:sz w:val="22.000000"/><w:szCs w:val="16.500000"/></w:rPr><w:t xml:space="preserve">86898</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ </w:tr>
+ <w:tr>
+ <w:trPr/>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica-Bold" w:hAnsi="Helvetica-Bold"/><w:b/><w:sz w:val="20.020000"/><w:szCs w:val="15.015000"/></w:rPr><w:t xml:space="preserve">1996-97</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:sz w:val="22.000000"/><w:szCs w:val="16.500000"/></w:rPr><w:t xml:space="preserve">8864</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:sz w:val="22.000000"/><w:szCs w:val="16.500000"/></w:rPr><w:t xml:space="preserve">5813</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:sz w:val="22.000000"/><w:szCs w:val="16.500000"/></w:rPr><w:t xml:space="preserve">12606</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:sz w:val="22.000000"/><w:szCs w:val="16.500000"/></w:rPr><w:t xml:space="preserve">9545</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:sz w:val="22.000000"/><w:szCs w:val="16.500000"/></w:rPr><w:t xml:space="preserve">6883</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:sz w:val="22.000000"/><w:szCs w:val="16.500000"/></w:rPr><w:t xml:space="preserve">4866</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:sz w:val="22.000000"/><w:szCs w:val="16.500000"/></w:rPr><w:t xml:space="preserve">*</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:sz w:val="22.000000"/><w:szCs w:val="16.500000"/></w:rPr><w:t xml:space="preserve">12024</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:sz w:val="22.000000"/><w:szCs w:val="16.500000"/></w:rPr><w:t xml:space="preserve">*</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:sz w:val="22.000000"/><w:szCs w:val="16.500000"/></w:rPr><w:t xml:space="preserve">*</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica-Bold" w:hAnsi="Helvetica-Bold"/><w:b/><w:sz w:val="22.000000"/><w:szCs w:val="16.500000"/></w:rPr><w:t xml:space="preserve">60601</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ </w:tr>
+ <w:tr>
+ <w:trPr/>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica-Bold" w:hAnsi="Helvetica-Bold"/><w:b/><w:sz w:val="20.020000"/><w:szCs w:val="15.015000"/></w:rPr><w:t xml:space="preserve">1988-90</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:sz w:val="22.000000"/><w:szCs w:val="16.500000"/></w:rPr><w:t xml:space="preserve">6633</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:sz w:val="22.000000"/><w:szCs w:val="16.500000"/></w:rPr><w:t xml:space="preserve">10217</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:sz w:val="22.000000"/><w:szCs w:val="16.500000"/></w:rPr><w:t xml:space="preserve">8138</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:sz w:val="22.000000"/><w:szCs w:val="16.500000"/></w:rPr><w:t xml:space="preserve">9920</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:sz w:val="22.000000"/><w:szCs w:val="16.500000"/></w:rPr><w:t xml:space="preserve">7796</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:sz w:val="22.000000"/><w:szCs w:val="16.500000"/></w:rPr><w:t xml:space="preserve">5374</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:sz w:val="22.000000"/><w:szCs w:val="16.500000"/></w:rPr><w:t xml:space="preserve">*</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:sz w:val="22.000000"/><w:szCs w:val="16.500000"/></w:rPr><w:t xml:space="preserve">5540</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:sz w:val="22.000000"/><w:szCs w:val="16.500000"/></w:rPr><w:t xml:space="preserve">*</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:sz w:val="22.000000"/><w:szCs w:val="16.500000"/></w:rPr><w:t xml:space="preserve">*</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica-Bold" w:hAnsi="Helvetica-Bold"/><w:b/><w:sz w:val="22.000000"/><w:szCs w:val="16.500000"/></w:rPr><w:t xml:space="preserve">53618</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ </w:tr>
+ <w:tr>
+ <w:trPr/>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica-Bold" w:hAnsi="Helvetica-Bold"/><w:b/><w:sz w:val="20.020000"/><w:szCs w:val="15.015000"/></w:rPr><w:t xml:space="preserve">1975-79</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:sz w:val="22.000000"/><w:szCs w:val="16.500000"/></w:rPr><w:t xml:space="preserve">5738</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:sz w:val="22.000000"/><w:szCs w:val="16.500000"/></w:rPr><w:t xml:space="preserve">7387</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:sz w:val="22.000000"/><w:szCs w:val="16.500000"/></w:rPr><w:t xml:space="preserve">6453</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:sz w:val="22.000000"/><w:szCs w:val="16.500000"/></w:rPr><w:t xml:space="preserve">5844</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:sz w:val="22.000000"/><w:szCs w:val="16.500000"/></w:rPr><w:t xml:space="preserve">5161</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:sz w:val="22.000000"/><w:szCs w:val="16.500000"/></w:rPr><w:t xml:space="preserve">4403</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:sz w:val="22.000000"/><w:szCs w:val="16.500000"/></w:rPr><w:t xml:space="preserve">*</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:sz w:val="22.000000"/><w:szCs w:val="16.500000"/></w:rPr><w:t xml:space="preserve">3756</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:sz w:val="22.000000"/><w:szCs w:val="16.500000"/></w:rPr><w:t xml:space="preserve">*</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:sz w:val="22.000000"/><w:szCs w:val="16.500000"/></w:rPr><w:t xml:space="preserve">*</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica-Bold" w:hAnsi="Helvetica-Bold"/><w:b/><w:sz w:val="22.000000"/><w:szCs w:val="16.500000"/></w:rPr><w:t xml:space="preserve">38742</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ </w:tr>
+ <w:tr>
+ <w:trPr/>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:gridSpan w:val="2"/>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica-Bold" w:hAnsi="Helvetica-Bold"/><w:b/><w:sz w:val="22.000000"/><w:szCs w:val="16.500000"/></w:rPr><w:t xml:space="preserve">State</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:sz w:val="22.000000"/><w:szCs w:val="16.500000"/></w:rPr><w:t xml:space="preserve">Kerala</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:sz w:val="22.000000"/><w:szCs w:val="16.500000"/></w:rPr><w:t xml:space="preserve">TamilNadu</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:sz w:val="22.000000"/><w:szCs w:val="16.500000"/></w:rPr><w:t xml:space="preserve">Karnataka</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:sz w:val="22.000000"/><w:szCs w:val="16.500000"/></w:rPr><w:t xml:space="preserve">AndhraPradesh</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:sz w:val="22.000000"/><w:szCs w:val="16.500000"/></w:rPr><w:t xml:space="preserve">Maharashtra</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:sz w:val="22.000000"/><w:szCs w:val="16.500000"/></w:rPr><w:t xml:space="preserve">Gujarat</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:sz w:val="22.000000"/><w:szCs w:val="16.500000"/></w:rPr><w:t xml:space="preserve">MadhyaPradesh</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:sz w:val="22.000000"/><w:szCs w:val="16.500000"/></w:rPr><w:t xml:space="preserve">Orissa</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:sz w:val="22.000000"/><w:szCs w:val="16.500000"/></w:rPr><w:t xml:space="preserve">WestBengal</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:sz w:val="22.000000"/><w:szCs w:val="16.500000"/></w:rPr><w:t xml:space="preserve">UttarPradesh</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica-Bold" w:hAnsi="Helvetica-Bold"/><w:b/><w:sz w:val="22.000000"/><w:szCs w:val="16.500000"/></w:rPr><w:t xml:space="preserve">Pooled</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ </w:tr>
+ </w:tbl>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:sz w:val="22.000000"/><w:szCs w:val="16.500000"/></w:rPr><w:t xml:space="preserve">(Contd...)</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica-Bold" w:hAnsi="Helvetica-Bold"/><w:b/><w:sz w:val="22.000000"/><w:szCs w:val="16.500000"/></w:rPr><w:t xml:space="preserve">Table1:STATEWISECOVERAGEPARTICULARSBYPERIODOFSURVEY </w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:sz w:val="20.020000"/><w:szCs w:val="15.015000"/></w:rPr><w:t xml:space="preserve">NNMB72Rural-ThirdRepeatSurvey2011-12 </w:t></w:r>
+</w:p></w:body></w:document> \ No newline at end of file
diff --git a/extract/test/rotated.pdf.mutool.docx.dir.ref/word/fontTable.xml b/extract/test/rotated.pdf.mutool.docx.dir.ref/word/fontTable.xml
new file mode 100644
index 00000000..a39546e5
--- /dev/null
+++ b/extract/test/rotated.pdf.mutool.docx.dir.ref/word/fontTable.xml
@@ -0,0 +1,2 @@
+<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
+<w:fonts xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships" xmlns:w="http://schemas.openxmlformats.org/wordprocessingml/2006/main" xmlns:w14="http://schemas.microsoft.com/office/word/2010/wordml" xmlns:w15="http://schemas.microsoft.com/office/word/2012/wordml" xmlns:w16cex="http://schemas.microsoft.com/office/word/2018/wordml/cex" xmlns:w16cid="http://schemas.microsoft.com/office/word/2016/wordml/cid" xmlns:w16="http://schemas.microsoft.com/office/word/2018/wordml" xmlns:w16se="http://schemas.microsoft.com/office/word/2015/wordml/symex" mc:Ignorable="w14 w15 w16se w16cid w16 w16cex"><w:font w:name="Calibri"><w:panose1 w:val="020F0502020204030204"/><w:charset w:val="00"/><w:family w:val="swiss"/><w:pitch w:val="variable"/><w:sig w:usb0="E4002EFF" w:usb1="C000247B" w:usb2="00000009" w:usb3="00000000" w:csb0="000001FF" w:csb1="00000000"/></w:font><w:font w:name="Times New Roman"><w:panose1 w:val="02020603050405020304"/><w:charset w:val="00"/><w:family w:val="roman"/><w:pitch w:val="variable"/><w:sig w:usb0="E0002EFF" w:usb1="C000785B" w:usb2="00000009" w:usb3="00000000" w:csb0="000001FF" w:csb1="00000000"/></w:font><w:font w:name="Calibri Light"><w:panose1 w:val="020F0302020204030204"/><w:charset w:val="00"/><w:family w:val="swiss"/><w:pitch w:val="variable"/><w:sig w:usb0="E4002EFF" w:usb1="C000247B" w:usb2="00000009" w:usb3="00000000" w:csb0="000001FF" w:csb1="00000000"/></w:font></w:fonts> \ No newline at end of file
diff --git a/extract/test/rotated.pdf.mutool.docx.dir.ref/word/settings.xml b/extract/test/rotated.pdf.mutool.docx.dir.ref/word/settings.xml
new file mode 100644
index 00000000..c403540d
--- /dev/null
+++ b/extract/test/rotated.pdf.mutool.docx.dir.ref/word/settings.xml
@@ -0,0 +1,2 @@
+<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
+<w:settings xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships" xmlns:m="http://schemas.openxmlformats.org/officeDocument/2006/math" xmlns:v="urn:schemas-microsoft-com:vml" xmlns:w10="urn:schemas-microsoft-com:office:word" xmlns:w="http://schemas.openxmlformats.org/wordprocessingml/2006/main" xmlns:w14="http://schemas.microsoft.com/office/word/2010/wordml" xmlns:w15="http://schemas.microsoft.com/office/word/2012/wordml" xmlns:w16cex="http://schemas.microsoft.com/office/word/2018/wordml/cex" xmlns:w16cid="http://schemas.microsoft.com/office/word/2016/wordml/cid" xmlns:w16="http://schemas.microsoft.com/office/word/2018/wordml" xmlns:w16se="http://schemas.microsoft.com/office/word/2015/wordml/symex" xmlns:sl="http://schemas.openxmlformats.org/schemaLibrary/2006/main" mc:Ignorable="w14 w15 w16se w16cid w16 w16cex"><w:zoom w:percent="100"/><w:proofState w:spelling="clean" w:grammar="clean"/><w:defaultTabStop w:val="720"/><w:characterSpacingControl w:val="doNotCompress"/><w:compat><w:compatSetting w:name="compatibilityMode" w:uri="http://schemas.microsoft.com/office/word" w:val="15"/><w:compatSetting w:name="overrideTableStyleFontSizeAndJustification" w:uri="http://schemas.microsoft.com/office/word" w:val="1"/><w:compatSetting w:name="enableOpenTypeFeatures" w:uri="http://schemas.microsoft.com/office/word" w:val="1"/><w:compatSetting w:name="doNotFlipMirrorIndents" w:uri="http://schemas.microsoft.com/office/word" w:val="1"/><w:compatSetting w:name="differentiateMultirowTableHeaders" w:uri="http://schemas.microsoft.com/office/word" w:val="1"/><w:compatSetting w:name="useWord2013TrackBottomHyphenation" w:uri="http://schemas.microsoft.com/office/word" w:val="0"/></w:compat><w:rsids><w:rsidRoot w:val="007F4427"/><w:rsid w:val="00255448"/><w:rsid w:val="007F4427"/></w:rsids><m:mathPr><m:mathFont m:val="Cambria Math"/><m:brkBin m:val="before"/><m:brkBinSub m:val="--"/><m:smallFrac m:val="0"/><m:dispDef/><m:lMargin m:val="0"/><m:rMargin m:val="0"/><m:defJc m:val="centerGroup"/><m:wrapIndent m:val="1440"/><m:intLim m:val="subSup"/><m:naryLim m:val="undOvr"/></m:mathPr><w:themeFontLang w:val="en-GB"/><w:clrSchemeMapping w:bg1="light1" w:t1="dark1" w:bg2="light2" w:t2="dark2" w:accent1="accent1" w:accent2="accent2" w:accent3="accent3" w:accent4="accent4" w:accent5="accent5" w:accent6="accent6" w:hyperlink="hyperlink" w:followedHyperlink="followedHyperlink"/><w:shapeDefaults><o:shapedefaults v:ext="edit" spidmax="1026"/><o:shapelayout v:ext="edit"><o:idmap v:ext="edit" data="1"/></o:shapelayout></w:shapeDefaults><w:decimalSymbol w:val="."/><w:listSeparator w:val=","/><w14:docId w14:val="32E52EF8"/><w15:chartTrackingRefBased/><w15:docId w15:val="{A10F59F7-497D-44D4-A338-47719734E7A0}"/></w:settings> \ No newline at end of file
diff --git a/extract/test/rotated.pdf.mutool.docx.dir.ref/word/styles.xml b/extract/test/rotated.pdf.mutool.docx.dir.ref/word/styles.xml
new file mode 100644
index 00000000..38e5e2bd
--- /dev/null
+++ b/extract/test/rotated.pdf.mutool.docx.dir.ref/word/styles.xml
@@ -0,0 +1,2 @@
+<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
+<w:styles xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships" xmlns:w="http://schemas.openxmlformats.org/wordprocessingml/2006/main" xmlns:w14="http://schemas.microsoft.com/office/word/2010/wordml" xmlns:w15="http://schemas.microsoft.com/office/word/2012/wordml" xmlns:w16cex="http://schemas.microsoft.com/office/word/2018/wordml/cex" xmlns:w16cid="http://schemas.microsoft.com/office/word/2016/wordml/cid" xmlns:w16="http://schemas.microsoft.com/office/word/2018/wordml" xmlns:w16se="http://schemas.microsoft.com/office/word/2015/wordml/symex" mc:Ignorable="w14 w15 w16se w16cid w16 w16cex"><w:docDefaults><w:rPrDefault><w:rPr><w:rFonts w:asciiTheme="minorHAnsi" w:eastAsiaTheme="minorHAnsi" w:hAnsiTheme="minorHAnsi" w:cstheme="minorBidi"/><w:sz w:val="22"/><w:szCs w:val="22"/><w:lang w:val="en-GB" w:eastAsia="en-US" w:bidi="ar-SA"/></w:rPr></w:rPrDefault><w:pPrDefault><w:pPr><w:spacing w:after="160" w:line="259" w:lineRule="auto"/></w:pPr></w:pPrDefault></w:docDefaults><w:latentStyles w:defLockedState="0" w:defUIPriority="99" w:defSemiHidden="0" w:defUnhideWhenUsed="0" w:defQFormat="0" w:count="376"><w:lsdException w:name="Normal" w:uiPriority="0" w:qFormat="1"/><w:lsdException w:name="heading 1" w:uiPriority="9" w:qFormat="1"/><w:lsdException w:name="heading 2" w:semiHidden="1" w:uiPriority="9" w:unhideWhenUsed="1" w:qFormat="1"/><w:lsdException w:name="heading 3" w:semiHidden="1" w:uiPriority="9" w:unhideWhenUsed="1" w:qFormat="1"/><w:lsdException w:name="heading 4" w:semiHidden="1" w:uiPriority="9" w:unhideWhenUsed="1" w:qFormat="1"/><w:lsdException w:name="heading 5" w:semiHidden="1" w:uiPriority="9" w:unhideWhenUsed="1" w:qFormat="1"/><w:lsdException w:name="heading 6" w:semiHidden="1" w:uiPriority="9" w:unhideWhenUsed="1" w:qFormat="1"/><w:lsdException w:name="heading 7" w:semiHidden="1" w:uiPriority="9" w:unhideWhenUsed="1" w:qFormat="1"/><w:lsdException w:name="heading 8" w:semiHidden="1" w:uiPriority="9" w:unhideWhenUsed="1" w:qFormat="1"/><w:lsdException w:name="heading 9" w:semiHidden="1" w:uiPriority="9" w:unhideWhenUsed="1" w:qFormat="1"/><w:lsdException w:name="index 1" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="index 2" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="index 3" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="index 4" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="index 5" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="index 6" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="index 7" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="index 8" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="index 9" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="toc 1" w:semiHidden="1" w:uiPriority="39" w:unhideWhenUsed="1"/><w:lsdException w:name="toc 2" w:semiHidden="1" w:uiPriority="39" w:unhideWhenUsed="1"/><w:lsdException w:name="toc 3" w:semiHidden="1" w:uiPriority="39" w:unhideWhenUsed="1"/><w:lsdException w:name="toc 4" w:semiHidden="1" w:uiPriority="39" w:unhideWhenUsed="1"/><w:lsdException w:name="toc 5" w:semiHidden="1" w:uiPriority="39" w:unhideWhenUsed="1"/><w:lsdException w:name="toc 6" w:semiHidden="1" w:uiPriority="39" w:unhideWhenUsed="1"/><w:lsdException w:name="toc 7" w:semiHidden="1" w:uiPriority="39" w:unhideWhenUsed="1"/><w:lsdException w:name="toc 8" w:semiHidden="1" w:uiPriority="39" w:unhideWhenUsed="1"/><w:lsdException w:name="toc 9" w:semiHidden="1" w:uiPriority="39" w:unhideWhenUsed="1"/><w:lsdException w:name="Normal Indent" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="footnote text" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="annotation text" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="header" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="footer" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="index heading" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="caption" w:semiHidden="1" w:uiPriority="35" w:unhideWhenUsed="1" w:qFormat="1"/><w:lsdException w:name="table of figures" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="envelope address" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="envelope return" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="footnote reference" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="annotation reference" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="line number" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="page number" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="endnote reference" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="endnote text" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="table of authorities" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="macro" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="toa heading" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="List" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="List Bullet" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="List Number" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="List 2" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="List 3" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="List 4" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="List 5" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="List Bullet 2" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="List Bullet 3" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="List Bullet 4" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="List Bullet 5" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="List Number 2" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="List Number 3" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="List Number 4" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="List Number 5" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Title" w:uiPriority="10" w:qFormat="1"/><w:lsdException w:name="Closing" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Signature" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Default Paragraph Font" w:semiHidden="1" w:uiPriority="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Body Text" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Body Text Indent" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="List Continue" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="List Continue 2" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="List Continue 3" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="List Continue 4" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="List Continue 5" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Message Header" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Subtitle" w:uiPriority="11" w:qFormat="1"/><w:lsdException w:name="Salutation" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Date" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Body Text First Indent" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Body Text First Indent 2" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Note Heading" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Body Text 2" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Body Text 3" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Body Text Indent 2" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Body Text Indent 3" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Block Text" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Hyperlink" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="FollowedHyperlink" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Strong" w:uiPriority="22" w:qFormat="1"/><w:lsdException w:name="Emphasis" w:uiPriority="20" w:qFormat="1"/><w:lsdException w:name="Document Map" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Plain Text" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="E-mail Signature" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="HTML Top of Form" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="HTML Bottom of Form" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Normal (Web)" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="HTML Acronym" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="HTML Address" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="HTML Cite" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="HTML Code" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="HTML Definition" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="HTML Keyboard" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="HTML Preformatted" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="HTML Sample" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="HTML Typewriter" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="HTML Variable" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Normal Table" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="annotation subject" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="No List" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Outline List 1" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Outline List 2" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Outline List 3" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Simple 1" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Simple 2" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Simple 3" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Classic 1" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Classic 2" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Classic 3" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Classic 4" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Colorful 1" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Colorful 2" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Colorful 3" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Columns 1" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Columns 2" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Columns 3" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Columns 4" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Columns 5" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Grid 1" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Grid 2" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Grid 3" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Grid 4" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Grid 5" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Grid 6" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Grid 7" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Grid 8" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table List 1" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table List 2" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table List 3" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table List 4" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table List 5" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table List 6" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table List 7" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table List 8" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table 3D effects 1" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table 3D effects 2" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table 3D effects 3" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Contemporary" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Elegant" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Professional" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Subtle 1" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Subtle 2" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Web 1" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Web 2" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Web 3" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Balloon Text" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Grid" w:uiPriority="39"/><w:lsdException w:name="Table Theme" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Placeholder Text" w:semiHidden="1"/><w:lsdException w:name="No Spacing" w:uiPriority="1" w:qFormat="1"/><w:lsdException w:name="Light Shading" w:uiPriority="60"/><w:lsdException w:name="Light List" w:uiPriority="61"/><w:lsdException w:name="Light Grid" w:uiPriority="62"/><w:lsdException w:name="Medium Shading 1" w:uiPriority="63"/><w:lsdException w:name="Medium Shading 2" w:uiPriority="64"/><w:lsdException w:name="Medium List 1" w:uiPriority="65"/><w:lsdException w:name="Medium List 2" w:uiPriority="66"/><w:lsdException w:name="Medium Grid 1" w:uiPriority="67"/><w:lsdException w:name="Medium Grid 2" w:uiPriority="68"/><w:lsdException w:name="Medium Grid 3" w:uiPriority="69"/><w:lsdException w:name="Dark List" w:uiPriority="70"/><w:lsdException w:name="Colorful Shading" w:uiPriority="71"/><w:lsdException w:name="Colorful List" w:uiPriority="72"/><w:lsdException w:name="Colorful Grid" w:uiPriority="73"/><w:lsdException w:name="Light Shading Accent 1" w:uiPriority="60"/><w:lsdException w:name="Light List Accent 1" w:uiPriority="61"/><w:lsdException w:name="Light Grid Accent 1" w:uiPriority="62"/><w:lsdException w:name="Medium Shading 1 Accent 1" w:uiPriority="63"/><w:lsdException w:name="Medium Shading 2 Accent 1" w:uiPriority="64"/><w:lsdException w:name="Medium List 1 Accent 1" w:uiPriority="65"/><w:lsdException w:name="Revision" w:semiHidden="1"/><w:lsdException w:name="List Paragraph" w:uiPriority="34" w:qFormat="1"/><w:lsdException w:name="Quote" w:uiPriority="29" w:qFormat="1"/><w:lsdException w:name="Intense Quote" w:uiPriority="30" w:qFormat="1"/><w:lsdException w:name="Medium List 2 Accent 1" w:uiPriority="66"/><w:lsdException w:name="Medium Grid 1 Accent 1" w:uiPriority="67"/><w:lsdException w:name="Medium Grid 2 Accent 1" w:uiPriority="68"/><w:lsdException w:name="Medium Grid 3 Accent 1" w:uiPriority="69"/><w:lsdException w:name="Dark List Accent 1" w:uiPriority="70"/><w:lsdException w:name="Colorful Shading Accent 1" w:uiPriority="71"/><w:lsdException w:name="Colorful List Accent 1" w:uiPriority="72"/><w:lsdException w:name="Colorful Grid Accent 1" w:uiPriority="73"/><w:lsdException w:name="Light Shading Accent 2" w:uiPriority="60"/><w:lsdException w:name="Light List Accent 2" w:uiPriority="61"/><w:lsdException w:name="Light Grid Accent 2" w:uiPriority="62"/><w:lsdException w:name="Medium Shading 1 Accent 2" w:uiPriority="63"/><w:lsdException w:name="Medium Shading 2 Accent 2" w:uiPriority="64"/><w:lsdException w:name="Medium List 1 Accent 2" w:uiPriority="65"/><w:lsdException w:name="Medium List 2 Accent 2" w:uiPriority="66"/><w:lsdException w:name="Medium Grid 1 Accent 2" w:uiPriority="67"/><w:lsdException w:name="Medium Grid 2 Accent 2" w:uiPriority="68"/><w:lsdException w:name="Medium Grid 3 Accent 2" w:uiPriority="69"/><w:lsdException w:name="Dark List Accent 2" w:uiPriority="70"/><w:lsdException w:name="Colorful Shading Accent 2" w:uiPriority="71"/><w:lsdException w:name="Colorful List Accent 2" w:uiPriority="72"/><w:lsdException w:name="Colorful Grid Accent 2" w:uiPriority="73"/><w:lsdException w:name="Light Shading Accent 3" w:uiPriority="60"/><w:lsdException w:name="Light List Accent 3" w:uiPriority="61"/><w:lsdException w:name="Light Grid Accent 3" w:uiPriority="62"/><w:lsdException w:name="Medium Shading 1 Accent 3" w:uiPriority="63"/><w:lsdException w:name="Medium Shading 2 Accent 3" w:uiPriority="64"/><w:lsdException w:name="Medium List 1 Accent 3" w:uiPriority="65"/><w:lsdException w:name="Medium List 2 Accent 3" w:uiPriority="66"/><w:lsdException w:name="Medium Grid 1 Accent 3" w:uiPriority="67"/><w:lsdException w:name="Medium Grid 2 Accent 3" w:uiPriority="68"/><w:lsdException w:name="Medium Grid 3 Accent 3" w:uiPriority="69"/><w:lsdException w:name="Dark List Accent 3" w:uiPriority="70"/><w:lsdException w:name="Colorful Shading Accent 3" w:uiPriority="71"/><w:lsdException w:name="Colorful List Accent 3" w:uiPriority="72"/><w:lsdException w:name="Colorful Grid Accent 3" w:uiPriority="73"/><w:lsdException w:name="Light Shading Accent 4" w:uiPriority="60"/><w:lsdException w:name="Light List Accent 4" w:uiPriority="61"/><w:lsdException w:name="Light Grid Accent 4" w:uiPriority="62"/><w:lsdException w:name="Medium Shading 1 Accent 4" w:uiPriority="63"/><w:lsdException w:name="Medium Shading 2 Accent 4" w:uiPriority="64"/><w:lsdException w:name="Medium List 1 Accent 4" w:uiPriority="65"/><w:lsdException w:name="Medium List 2 Accent 4" w:uiPriority="66"/><w:lsdException w:name="Medium Grid 1 Accent 4" w:uiPriority="67"/><w:lsdException w:name="Medium Grid 2 Accent 4" w:uiPriority="68"/><w:lsdException w:name="Medium Grid 3 Accent 4" w:uiPriority="69"/><w:lsdException w:name="Dark List Accent 4" w:uiPriority="70"/><w:lsdException w:name="Colorful Shading Accent 4" w:uiPriority="71"/><w:lsdException w:name="Colorful List Accent 4" w:uiPriority="72"/><w:lsdException w:name="Colorful Grid Accent 4" w:uiPriority="73"/><w:lsdException w:name="Light Shading Accent 5" w:uiPriority="60"/><w:lsdException w:name="Light List Accent 5" w:uiPriority="61"/><w:lsdException w:name="Light Grid Accent 5" w:uiPriority="62"/><w:lsdException w:name="Medium Shading 1 Accent 5" w:uiPriority="63"/><w:lsdException w:name="Medium Shading 2 Accent 5" w:uiPriority="64"/><w:lsdException w:name="Medium List 1 Accent 5" w:uiPriority="65"/><w:lsdException w:name="Medium List 2 Accent 5" w:uiPriority="66"/><w:lsdException w:name="Medium Grid 1 Accent 5" w:uiPriority="67"/><w:lsdException w:name="Medium Grid 2 Accent 5" w:uiPriority="68"/><w:lsdException w:name="Medium Grid 3 Accent 5" w:uiPriority="69"/><w:lsdException w:name="Dark List Accent 5" w:uiPriority="70"/><w:lsdException w:name="Colorful Shading Accent 5" w:uiPriority="71"/><w:lsdException w:name="Colorful List Accent 5" w:uiPriority="72"/><w:lsdException w:name="Colorful Grid Accent 5" w:uiPriority="73"/><w:lsdException w:name="Light Shading Accent 6" w:uiPriority="60"/><w:lsdException w:name="Light List Accent 6" w:uiPriority="61"/><w:lsdException w:name="Light Grid Accent 6" w:uiPriority="62"/><w:lsdException w:name="Medium Shading 1 Accent 6" w:uiPriority="63"/><w:lsdException w:name="Medium Shading 2 Accent 6" w:uiPriority="64"/><w:lsdException w:name="Medium List 1 Accent 6" w:uiPriority="65"/><w:lsdException w:name="Medium List 2 Accent 6" w:uiPriority="66"/><w:lsdException w:name="Medium Grid 1 Accent 6" w:uiPriority="67"/><w:lsdException w:name="Medium Grid 2 Accent 6" w:uiPriority="68"/><w:lsdException w:name="Medium Grid 3 Accent 6" w:uiPriority="69"/><w:lsdException w:name="Dark List Accent 6" w:uiPriority="70"/><w:lsdException w:name="Colorful Shading Accent 6" w:uiPriority="71"/><w:lsdException w:name="Colorful List Accent 6" w:uiPriority="72"/><w:lsdException w:name="Colorful Grid Accent 6" w:uiPriority="73"/><w:lsdException w:name="Subtle Emphasis" w:uiPriority="19" w:qFormat="1"/><w:lsdException w:name="Intense Emphasis" w:uiPriority="21" w:qFormat="1"/><w:lsdException w:name="Subtle Reference" w:uiPriority="31" w:qFormat="1"/><w:lsdException w:name="Intense Reference" w:uiPriority="32" w:qFormat="1"/><w:lsdException w:name="Book Title" w:uiPriority="33" w:qFormat="1"/><w:lsdException w:name="Bibliography" w:semiHidden="1" w:uiPriority="37" w:unhideWhenUsed="1"/><w:lsdException w:name="TOC Heading" w:semiHidden="1" w:uiPriority="39" w:unhideWhenUsed="1" w:qFormat="1"/><w:lsdException w:name="Plain Table 1" w:uiPriority="41"/><w:lsdException w:name="Plain Table 2" w:uiPriority="42"/><w:lsdException w:name="Plain Table 3" w:uiPriority="43"/><w:lsdException w:name="Plain Table 4" w:uiPriority="44"/><w:lsdException w:name="Plain Table 5" w:uiPriority="45"/><w:lsdException w:name="Grid Table Light" w:uiPriority="40"/><w:lsdException w:name="Grid Table 1 Light" w:uiPriority="46"/><w:lsdException w:name="Grid Table 2" w:uiPriority="47"/><w:lsdException w:name="Grid Table 3" w:uiPriority="48"/><w:lsdException w:name="Grid Table 4" w:uiPriority="49"/><w:lsdException w:name="Grid Table 5 Dark" w:uiPriority="50"/><w:lsdException w:name="Grid Table 6 Colorful" w:uiPriority="51"/><w:lsdException w:name="Grid Table 7 Colorful" w:uiPriority="52"/><w:lsdException w:name="Grid Table 1 Light Accent 1" w:uiPriority="46"/><w:lsdException w:name="Grid Table 2 Accent 1" w:uiPriority="47"/><w:lsdException w:name="Grid Table 3 Accent 1" w:uiPriority="48"/><w:lsdException w:name="Grid Table 4 Accent 1" w:uiPriority="49"/><w:lsdException w:name="Grid Table 5 Dark Accent 1" w:uiPriority="50"/><w:lsdException w:name="Grid Table 6 Colorful Accent 1" w:uiPriority="51"/><w:lsdException w:name="Grid Table 7 Colorful Accent 1" w:uiPriority="52"/><w:lsdException w:name="Grid Table 1 Light Accent 2" w:uiPriority="46"/><w:lsdException w:name="Grid Table 2 Accent 2" w:uiPriority="47"/><w:lsdException w:name="Grid Table 3 Accent 2" w:uiPriority="48"/><w:lsdException w:name="Grid Table 4 Accent 2" w:uiPriority="49"/><w:lsdException w:name="Grid Table 5 Dark Accent 2" w:uiPriority="50"/><w:lsdException w:name="Grid Table 6 Colorful Accent 2" w:uiPriority="51"/><w:lsdException w:name="Grid Table 7 Colorful Accent 2" w:uiPriority="52"/><w:lsdException w:name="Grid Table 1 Light Accent 3" w:uiPriority="46"/><w:lsdException w:name="Grid Table 2 Accent 3" w:uiPriority="47"/><w:lsdException w:name="Grid Table 3 Accent 3" w:uiPriority="48"/><w:lsdException w:name="Grid Table 4 Accent 3" w:uiPriority="49"/><w:lsdException w:name="Grid Table 5 Dark Accent 3" w:uiPriority="50"/><w:lsdException w:name="Grid Table 6 Colorful Accent 3" w:uiPriority="51"/><w:lsdException w:name="Grid Table 7 Colorful Accent 3" w:uiPriority="52"/><w:lsdException w:name="Grid Table 1 Light Accent 4" w:uiPriority="46"/><w:lsdException w:name="Grid Table 2 Accent 4" w:uiPriority="47"/><w:lsdException w:name="Grid Table 3 Accent 4" w:uiPriority="48"/><w:lsdException w:name="Grid Table 4 Accent 4" w:uiPriority="49"/><w:lsdException w:name="Grid Table 5 Dark Accent 4" w:uiPriority="50"/><w:lsdException w:name="Grid Table 6 Colorful Accent 4" w:uiPriority="51"/><w:lsdException w:name="Grid Table 7 Colorful Accent 4" w:uiPriority="52"/><w:lsdException w:name="Grid Table 1 Light Accent 5" w:uiPriority="46"/><w:lsdException w:name="Grid Table 2 Accent 5" w:uiPriority="47"/><w:lsdException w:name="Grid Table 3 Accent 5" w:uiPriority="48"/><w:lsdException w:name="Grid Table 4 Accent 5" w:uiPriority="49"/><w:lsdException w:name="Grid Table 5 Dark Accent 5" w:uiPriority="50"/><w:lsdException w:name="Grid Table 6 Colorful Accent 5" w:uiPriority="51"/><w:lsdException w:name="Grid Table 7 Colorful Accent 5" w:uiPriority="52"/><w:lsdException w:name="Grid Table 1 Light Accent 6" w:uiPriority="46"/><w:lsdException w:name="Grid Table 2 Accent 6" w:uiPriority="47"/><w:lsdException w:name="Grid Table 3 Accent 6" w:uiPriority="48"/><w:lsdException w:name="Grid Table 4 Accent 6" w:uiPriority="49"/><w:lsdException w:name="Grid Table 5 Dark Accent 6" w:uiPriority="50"/><w:lsdException w:name="Grid Table 6 Colorful Accent 6" w:uiPriority="51"/><w:lsdException w:name="Grid Table 7 Colorful Accent 6" w:uiPriority="52"/><w:lsdException w:name="List Table 1 Light" w:uiPriority="46"/><w:lsdException w:name="List Table 2" w:uiPriority="47"/><w:lsdException w:name="List Table 3" w:uiPriority="48"/><w:lsdException w:name="List Table 4" w:uiPriority="49"/><w:lsdException w:name="List Table 5 Dark" w:uiPriority="50"/><w:lsdException w:name="List Table 6 Colorful" w:uiPriority="51"/><w:lsdException w:name="List Table 7 Colorful" w:uiPriority="52"/><w:lsdException w:name="List Table 1 Light Accent 1" w:uiPriority="46"/><w:lsdException w:name="List Table 2 Accent 1" w:uiPriority="47"/><w:lsdException w:name="List Table 3 Accent 1" w:uiPriority="48"/><w:lsdException w:name="List Table 4 Accent 1" w:uiPriority="49"/><w:lsdException w:name="List Table 5 Dark Accent 1" w:uiPriority="50"/><w:lsdException w:name="List Table 6 Colorful Accent 1" w:uiPriority="51"/><w:lsdException w:name="List Table 7 Colorful Accent 1" w:uiPriority="52"/><w:lsdException w:name="List Table 1 Light Accent 2" w:uiPriority="46"/><w:lsdException w:name="List Table 2 Accent 2" w:uiPriority="47"/><w:lsdException w:name="List Table 3 Accent 2" w:uiPriority="48"/><w:lsdException w:name="List Table 4 Accent 2" w:uiPriority="49"/><w:lsdException w:name="List Table 5 Dark Accent 2" w:uiPriority="50"/><w:lsdException w:name="List Table 6 Colorful Accent 2" w:uiPriority="51"/><w:lsdException w:name="List Table 7 Colorful Accent 2" w:uiPriority="52"/><w:lsdException w:name="List Table 1 Light Accent 3" w:uiPriority="46"/><w:lsdException w:name="List Table 2 Accent 3" w:uiPriority="47"/><w:lsdException w:name="List Table 3 Accent 3" w:uiPriority="48"/><w:lsdException w:name="List Table 4 Accent 3" w:uiPriority="49"/><w:lsdException w:name="List Table 5 Dark Accent 3" w:uiPriority="50"/><w:lsdException w:name="List Table 6 Colorful Accent 3" w:uiPriority="51"/><w:lsdException w:name="List Table 7 Colorful Accent 3" w:uiPriority="52"/><w:lsdException w:name="List Table 1 Light Accent 4" w:uiPriority="46"/><w:lsdException w:name="List Table 2 Accent 4" w:uiPriority="47"/><w:lsdException w:name="List Table 3 Accent 4" w:uiPriority="48"/><w:lsdException w:name="List Table 4 Accent 4" w:uiPriority="49"/><w:lsdException w:name="List Table 5 Dark Accent 4" w:uiPriority="50"/><w:lsdException w:name="List Table 6 Colorful Accent 4" w:uiPriority="51"/><w:lsdException w:name="List Table 7 Colorful Accent 4" w:uiPriority="52"/><w:lsdException w:name="List Table 1 Light Accent 5" w:uiPriority="46"/><w:lsdException w:name="List Table 2 Accent 5" w:uiPriority="47"/><w:lsdException w:name="List Table 3 Accent 5" w:uiPriority="48"/><w:lsdException w:name="List Table 4 Accent 5" w:uiPriority="49"/><w:lsdException w:name="List Table 5 Dark Accent 5" w:uiPriority="50"/><w:lsdException w:name="List Table 6 Colorful Accent 5" w:uiPriority="51"/><w:lsdException w:name="List Table 7 Colorful Accent 5" w:uiPriority="52"/><w:lsdException w:name="List Table 1 Light Accent 6" w:uiPriority="46"/><w:lsdException w:name="List Table 2 Accent 6" w:uiPriority="47"/><w:lsdException w:name="List Table 3 Accent 6" w:uiPriority="48"/><w:lsdException w:name="List Table 4 Accent 6" w:uiPriority="49"/><w:lsdException w:name="List Table 5 Dark Accent 6" w:uiPriority="50"/><w:lsdException w:name="List Table 6 Colorful Accent 6" w:uiPriority="51"/><w:lsdException w:name="List Table 7 Colorful Accent 6" w:uiPriority="52"/><w:lsdException w:name="Mention" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Smart Hyperlink" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Hashtag" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Unresolved Mention" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Smart Link" w:semiHidden="1" w:unhideWhenUsed="1"/></w:latentStyles><w:style w:type="paragraph" w:default="1" w:styleId="Normal"><w:name w:val="Normal"/><w:qFormat/></w:style><w:style w:type="character" w:default="1" w:styleId="DefaultParagraphFont"><w:name w:val="Default Paragraph Font"/><w:uiPriority w:val="1"/><w:semiHidden/><w:unhideWhenUsed/></w:style><w:style w:type="table" w:default="1" w:styleId="TableNormal"><w:name w:val="Normal Table"/><w:uiPriority w:val="99"/><w:semiHidden/><w:unhideWhenUsed/><w:tblPr><w:tblInd w:w="0" w:type="dxa"/><w:tblCellMar><w:top w:w="0" w:type="dxa"/><w:left w:w="108" w:type="dxa"/><w:bottom w:w="0" w:type="dxa"/><w:right w:w="108" w:type="dxa"/></w:tblCellMar></w:tblPr></w:style><w:style w:type="numbering" w:default="1" w:styleId="NoList"><w:name w:val="No List"/><w:uiPriority w:val="99"/><w:semiHidden/><w:unhideWhenUsed/></w:style></w:styles> \ No newline at end of file
diff --git a/extract/test/rotated.pdf.mutool.docx.dir.ref/word/theme/theme1.xml b/extract/test/rotated.pdf.mutool.docx.dir.ref/word/theme/theme1.xml
new file mode 100644
index 00000000..d1a502f8
--- /dev/null
+++ b/extract/test/rotated.pdf.mutool.docx.dir.ref/word/theme/theme1.xml
@@ -0,0 +1,2 @@
+<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
+<a:theme xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main" name="Office Theme"><a:themeElements><a:clrScheme name="Office"><a:dk1><a:sysClr val="windowText" lastClr="000000"/></a:dk1><a:lt1><a:sysClr val="window" lastClr="FFFFFF"/></a:lt1><a:dk2><a:srgbClr val="44546A"/></a:dk2><a:lt2><a:srgbClr val="E7E6E6"/></a:lt2><a:accent1><a:srgbClr val="4472C4"/></a:accent1><a:accent2><a:srgbClr val="ED7D31"/></a:accent2><a:accent3><a:srgbClr val="A5A5A5"/></a:accent3><a:accent4><a:srgbClr val="FFC000"/></a:accent4><a:accent5><a:srgbClr val="5B9BD5"/></a:accent5><a:accent6><a:srgbClr val="70AD47"/></a:accent6><a:hlink><a:srgbClr val="0563C1"/></a:hlink><a:folHlink><a:srgbClr val="954F72"/></a:folHlink></a:clrScheme><a:fontScheme name="Office"><a:majorFont><a:latin typeface="Calibri Light" panose="020F0302020204030204"/><a:ea typeface=""/><a:cs typeface=""/><a:font script="Jpan" typeface="游ゴシック Light"/><a:font script="Hang" typeface="맑은 고딕"/><a:font script="Hans" typeface="等线 Light"/><a:font script="Hant" typeface="新細明體"/><a:font script="Arab" typeface="Times New Roman"/><a:font script="Hebr" typeface="Times New Roman"/><a:font script="Thai" typeface="Angsana New"/><a:font script="Ethi" typeface="Nyala"/><a:font script="Beng" typeface="Vrinda"/><a:font script="Gujr" typeface="Shruti"/><a:font script="Khmr" typeface="MoolBoran"/><a:font script="Knda" typeface="Tunga"/><a:font script="Guru" typeface="Raavi"/><a:font script="Cans" typeface="Euphemia"/><a:font script="Cher" typeface="Plantagenet Cherokee"/><a:font script="Yiii" typeface="Microsoft Yi Baiti"/><a:font script="Tibt" typeface="Microsoft Himalaya"/><a:font script="Thaa" typeface="MV Boli"/><a:font script="Deva" typeface="Mangal"/><a:font script="Telu" typeface="Gautami"/><a:font script="Taml" typeface="Latha"/><a:font script="Syrc" typeface="Estrangelo Edessa"/><a:font script="Orya" typeface="Kalinga"/><a:font script="Mlym" typeface="Kartika"/><a:font script="Laoo" typeface="DokChampa"/><a:font script="Sinh" typeface="Iskoola Pota"/><a:font script="Mong" typeface="Mongolian Baiti"/><a:font script="Viet" typeface="Times New Roman"/><a:font script="Uigh" typeface="Microsoft Uighur"/><a:font script="Geor" typeface="Sylfaen"/><a:font script="Armn" typeface="Arial"/><a:font script="Bugi" typeface="Leelawadee UI"/><a:font script="Bopo" typeface="Microsoft JhengHei"/><a:font script="Java" typeface="Javanese Text"/><a:font script="Lisu" typeface="Segoe UI"/><a:font script="Mymr" typeface="Myanmar Text"/><a:font script="Nkoo" typeface="Ebrima"/><a:font script="Olck" typeface="Nirmala UI"/><a:font script="Osma" typeface="Ebrima"/><a:font script="Phag" typeface="Phagspa"/><a:font script="Syrn" typeface="Estrangelo Edessa"/><a:font script="Syrj" typeface="Estrangelo Edessa"/><a:font script="Syre" typeface="Estrangelo Edessa"/><a:font script="Sora" typeface="Nirmala UI"/><a:font script="Tale" typeface="Microsoft Tai Le"/><a:font script="Talu" typeface="Microsoft New Tai Lue"/><a:font script="Tfng" typeface="Ebrima"/></a:majorFont><a:minorFont><a:latin typeface="Calibri" panose="020F0502020204030204"/><a:ea typeface=""/><a:cs typeface=""/><a:font script="Jpan" typeface="游明朝"/><a:font script="Hang" typeface="맑은 고딕"/><a:font script="Hans" typeface="等线"/><a:font script="Hant" typeface="新細明體"/><a:font script="Arab" typeface="Arial"/><a:font script="Hebr" typeface="Arial"/><a:font script="Thai" typeface="Cordia New"/><a:font script="Ethi" typeface="Nyala"/><a:font script="Beng" typeface="Vrinda"/><a:font script="Gujr" typeface="Shruti"/><a:font script="Khmr" typeface="DaunPenh"/><a:font script="Knda" typeface="Tunga"/><a:font script="Guru" typeface="Raavi"/><a:font script="Cans" typeface="Euphemia"/><a:font script="Cher" typeface="Plantagenet Cherokee"/><a:font script="Yiii" typeface="Microsoft Yi Baiti"/><a:font script="Tibt" typeface="Microsoft Himalaya"/><a:font script="Thaa" typeface="MV Boli"/><a:font script="Deva" typeface="Mangal"/><a:font script="Telu" typeface="Gautami"/><a:font script="Taml" typeface="Latha"/><a:font script="Syrc" typeface="Estrangelo Edessa"/><a:font script="Orya" typeface="Kalinga"/><a:font script="Mlym" typeface="Kartika"/><a:font script="Laoo" typeface="DokChampa"/><a:font script="Sinh" typeface="Iskoola Pota"/><a:font script="Mong" typeface="Mongolian Baiti"/><a:font script="Viet" typeface="Arial"/><a:font script="Uigh" typeface="Microsoft Uighur"/><a:font script="Geor" typeface="Sylfaen"/><a:font script="Armn" typeface="Arial"/><a:font script="Bugi" typeface="Leelawadee UI"/><a:font script="Bopo" typeface="Microsoft JhengHei"/><a:font script="Java" typeface="Javanese Text"/><a:font script="Lisu" typeface="Segoe UI"/><a:font script="Mymr" typeface="Myanmar Text"/><a:font script="Nkoo" typeface="Ebrima"/><a:font script="Olck" typeface="Nirmala UI"/><a:font script="Osma" typeface="Ebrima"/><a:font script="Phag" typeface="Phagspa"/><a:font script="Syrn" typeface="Estrangelo Edessa"/><a:font script="Syrj" typeface="Estrangelo Edessa"/><a:font script="Syre" typeface="Estrangelo Edessa"/><a:font script="Sora" typeface="Nirmala UI"/><a:font script="Tale" typeface="Microsoft Tai Le"/><a:font script="Talu" typeface="Microsoft New Tai Lue"/><a:font script="Tfng" typeface="Ebrima"/></a:minorFont></a:fontScheme><a:fmtScheme name="Office"><a:fillStyleLst><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:gradFill rotWithShape="1"><a:gsLst><a:gs pos="0"><a:schemeClr val="phClr"><a:lumMod val="110000"/><a:satMod val="105000"/><a:tint val="67000"/></a:schemeClr></a:gs><a:gs pos="50000"><a:schemeClr val="phClr"><a:lumMod val="105000"/><a:satMod val="103000"/><a:tint val="73000"/></a:schemeClr></a:gs><a:gs pos="100000"><a:schemeClr val="phClr"><a:lumMod val="105000"/><a:satMod val="109000"/><a:tint val="81000"/></a:schemeClr></a:gs></a:gsLst><a:lin ang="5400000" scaled="0"/></a:gradFill><a:gradFill rotWithShape="1"><a:gsLst><a:gs pos="0"><a:schemeClr val="phClr"><a:satMod val="103000"/><a:lumMod val="102000"/><a:tint val="94000"/></a:schemeClr></a:gs><a:gs pos="50000"><a:schemeClr val="phClr"><a:satMod val="110000"/><a:lumMod val="100000"/><a:shade val="100000"/></a:schemeClr></a:gs><a:gs pos="100000"><a:schemeClr val="phClr"><a:lumMod val="99000"/><a:satMod val="120000"/><a:shade val="78000"/></a:schemeClr></a:gs></a:gsLst><a:lin ang="5400000" scaled="0"/></a:gradFill></a:fillStyleLst><a:lnStyleLst><a:ln w="6350" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:prstDash val="solid"/><a:miter lim="800000"/></a:ln><a:ln w="12700" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:prstDash val="solid"/><a:miter lim="800000"/></a:ln><a:ln w="19050" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:prstDash val="solid"/><a:miter lim="800000"/></a:ln></a:lnStyleLst><a:effectStyleLst><a:effectStyle><a:effectLst/></a:effectStyle><a:effectStyle><a:effectLst/></a:effectStyle><a:effectStyle><a:effectLst><a:outerShdw blurRad="57150" dist="19050" dir="5400000" algn="ctr" rotWithShape="0"><a:srgbClr val="000000"><a:alpha val="63000"/></a:srgbClr></a:outerShdw></a:effectLst></a:effectStyle></a:effectStyleLst><a:bgFillStyleLst><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:solidFill><a:schemeClr val="phClr"><a:tint val="95000"/><a:satMod val="170000"/></a:schemeClr></a:solidFill><a:gradFill rotWithShape="1"><a:gsLst><a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="93000"/><a:satMod val="150000"/><a:shade val="98000"/><a:lumMod val="102000"/></a:schemeClr></a:gs><a:gs pos="50000"><a:schemeClr val="phClr"><a:tint val="98000"/><a:satMod val="130000"/><a:shade val="90000"/><a:lumMod val="103000"/></a:schemeClr></a:gs><a:gs pos="100000"><a:schemeClr val="phClr"><a:shade val="63000"/><a:satMod val="120000"/></a:schemeClr></a:gs></a:gsLst><a:lin ang="5400000" scaled="0"/></a:gradFill></a:bgFillStyleLst></a:fmtScheme></a:themeElements><a:objectDefaults/><a:extraClrSchemeLst/><a:extLst><a:ext uri="{05A4C25C-085E-4340-85A3-A5531E510DB2}"><thm15:themeFamily xmlns:thm15="http://schemas.microsoft.com/office/thememl/2012/main" name="Office Theme" id="{62F939B6-93AF-4DB8-9C6B-D6C7DFDC589F}" vid="{4A3C46E8-61CC-4603-A589-7422A47A8E4A}"/></a:ext></a:extLst></a:theme> \ No newline at end of file
diff --git a/extract/test/rotated.pdf.mutool.docx.dir.ref/word/webSettings.xml b/extract/test/rotated.pdf.mutool.docx.dir.ref/word/webSettings.xml
new file mode 100644
index 00000000..629ae06a
--- /dev/null
+++ b/extract/test/rotated.pdf.mutool.docx.dir.ref/word/webSettings.xml
@@ -0,0 +1,2 @@
+<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
+<w:webSettings xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships" xmlns:w="http://schemas.openxmlformats.org/wordprocessingml/2006/main" xmlns:w14="http://schemas.microsoft.com/office/word/2010/wordml" xmlns:w15="http://schemas.microsoft.com/office/word/2012/wordml" xmlns:w16cex="http://schemas.microsoft.com/office/word/2018/wordml/cex" xmlns:w16cid="http://schemas.microsoft.com/office/word/2016/wordml/cid" xmlns:w16="http://schemas.microsoft.com/office/word/2018/wordml" xmlns:w16se="http://schemas.microsoft.com/office/word/2015/wordml/symex" mc:Ignorable="w14 w15 w16se w16cid w16 w16cex"><w:optimizeForBrowser/><w:allowPNG/></w:webSettings> \ No newline at end of file
diff --git a/extract/test/rotated.pdf.mutool.html.ref b/extract/test/rotated.pdf.mutool.html.ref
new file mode 100644
index 00000000..e98ffed6
--- /dev/null
+++ b/extract/test/rotated.pdf.mutool.html.ref
@@ -0,0 +1,48 @@
+<html>
+<body>
+
+
+<table border="1" style="border-collapse:collapse">
+ <tr>
+ <td rowspan="2"><p><b>2011-12)</p><p>(No.ofadults:</p><p>FastingBloodSugar </p></b></td><td><p><b>Women</p></b></td><td><p>2391</p></td><td><p>1739</p></td><td><p>2028</p></td><td><p>1529</p></td><td><p>1599</p></td><td><p>2503</p></td><td><p>1709</p></td><td><p>1628</p></td><td><p>2027</p></td><td><p>1366</p></td><td><p><b>18519</p></b></td><td></td><td rowspan="10"></td><td rowspan="10"><p>*Datanotavailable </p></td>
+ </tr>
+ <tr>
+ <td><p><b>Men</p></b></td><td><p>1645</p></td><td><p>1119</p></td><td><p>1628</p></td><td><p>1111</p></td><td><p>1417</p></td><td><p>2122</p></td><td><p>1579</p></td><td><p>1093</p></td><td><p>1413</p></td><td><p>1185</p></td><td><p><b>14312</p></b></td><td></td>
+ </tr>
+ <tr>
+ <td rowspan="2"><p><b>2011-12)</p><p>(No.ofadults: </p><p>BloodPressure </p></b></td><td><p><b>Women</p></b></td><td><p>3195</p></td><td><p>2858</p></td><td><p>2894</p></td><td><p>2493</p></td><td><p>2648</p></td><td><p>3021</p></td><td><p>2150</p></td><td><p>2624</p></td><td><p>2743</p></td><td><p>2415</p></td><td><p><b>27041</p></b></td><td></td>
+ </tr>
+ <tr>
+ <td><p><b>Men</p></b></td><td><p>2161</p></td><td><p>2134</p></td><td><p>2467</p></td><td><p>1899</p></td><td><p>2368</p></td><td><p>2687</p></td><td><p>1965</p></td><td><p>2040</p></td><td><p>2058</p></td><td><p>2139</p></td><td><p><b>21918</p></b></td><td></td>
+ </tr>
+ <tr>
+ <td colspan="2"><p><b>2011-12)</p><p>IYCFPractices </p><p>(No.ofmothers: </p></b></td><td><p>245</p></td><td><p>413</p></td><td><p>428</p></td><td><p>557</p></td><td><p>467</p></td><td><p>477</p></td><td><p>470</p></td><td><p>398</p></td><td><p>423</p></td><td><p>581</p></td><td><p><b>4459</p></b></td><td></td>
+ </tr>
+ <tr>
+ <td rowspan="4"><p><b>(No.ofindividuals) </p><p>NutritionalAssessment </p></b></td><td><p><b>2011-12 </p></b></td><td><p>8297</p></td><td><p>7851</p></td><td><p>8958</p></td><td><p>8300</p></td><td><p>9525</p></td><td><p>9645</p></td><td><p>7942</p></td><td><p>8473</p></td><td><p>8047</p></td><td><p>9860</p></td><td><p><b>86898</p></b></td><td></td>
+ </tr>
+ <tr>
+ <td><p><b>1996-97</p></b></td><td><p>8864</p></td><td><p>5813</p></td><td><p>12606</p></td><td><p>9545</p></td><td><p>6883</p></td><td><p>4866</p></td><td><p>*</p></td><td><p>12024</p></td><td><p>*</p></td><td><p>*</p></td><td><p><b>60601</p></b></td><td></td>
+ </tr>
+ <tr>
+ <td><p><b>1988-90</p></b></td><td><p>6633</p></td><td><p>10217</p></td><td><p>8138</p></td><td><p>9920</p></td><td><p>7796</p></td><td><p>5374</p></td><td><p>*</p></td><td><p>5540</p></td><td><p>*</p></td><td><p>*</p></td><td><p><b>53618</p></b></td><td></td>
+ </tr>
+ <tr>
+ <td><p><b>1975-79</p></b></td><td><p>5738</p></td><td><p>7387</p></td><td><p>6453</p></td><td><p>5844</p></td><td><p>5161</p></td><td><p>4403</p></td><td><p>*</p></td><td><p>3756</p></td><td><p>*</p></td><td><p>*</p></td><td><p><b>38742</p></b></td><td></td>
+ </tr>
+ <tr>
+ <td colspan="2"><p><b>State</p></b></td><td><p>Kerala</p></td><td><p>TamilNadu</p></td><td><p>Karnataka</p></td><td><p>AndhraPradesh</p></td><td><p>Maharashtra</p></td><td><p>Gujarat</p></td><td><p>MadhyaPradesh</p></td><td><p>Orissa</p></td><td><p>WestBengal</p></td><td><p>UttarPradesh</p></td><td><p><b>Pooled</p></b></td><td></td>
+ </tr>
+</table>
+
+
+
+<p>(Contd...)
+</p>
+
+<p><b>Table1:STATEWISECOVERAGEPARTICULARSBYPERIODOFSURVEY
+</p></b>
+
+<p>NNMB72Rural-ThirdRepeatSurvey2011-12
+</p></body>
+</html>
diff --git a/extract/test/rotated.pdf.mutool.odt.dir.ref/META-INF/manifest.xml b/extract/test/rotated.pdf.mutool.odt.dir.ref/META-INF/manifest.xml
new file mode 100644
index 00000000..ec991d79
--- /dev/null
+++ b/extract/test/rotated.pdf.mutool.odt.dir.ref/META-INF/manifest.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<manifest:manifest xmlns:manifest="urn:oasis:names:tc:opendocument:xmlns:manifest:1.0" manifest:version="1.3" xmlns:loext="urn:org:documentfoundation:names:experimental:office:xmlns:loext:1.0">
+ <manifest:file-entry manifest:full-path="/" manifest:version="1.3" manifest:media-type="application/vnd.oasis.opendocument.text"/>
+ <manifest:file-entry manifest:full-path="meta.xml" manifest:media-type="text/xml"/>
+ <manifest:file-entry manifest:full-path="settings.xml" manifest:media-type="text/xml"/>
+ <manifest:file-entry manifest:full-path="Configurations2/" manifest:media-type="application/vnd.sun.xml.ui.configuration"/>
+ <manifest:file-entry manifest:full-path="manifest.rdf" manifest:media-type="application/rdf+xml"/>
+ <manifest:file-entry manifest:full-path="styles.xml" manifest:media-type="text/xml"/>
+ <manifest:file-entry manifest:full-path="content.xml" manifest:media-type="text/xml"/>
+ <manifest:file-entry manifest:full-path="Thumbnails/thumbnail.png" manifest:media-type="image/png"/>
+</manifest:manifest> \ No newline at end of file
diff --git a/extract/test/rotated.pdf.mutool.odt.dir.ref/Thumbnails/thumbnail.png b/extract/test/rotated.pdf.mutool.odt.dir.ref/Thumbnails/thumbnail.png
new file mode 100644
index 00000000..0dd1608e
--- /dev/null
+++ b/extract/test/rotated.pdf.mutool.odt.dir.ref/Thumbnails/thumbnail.png
@@ -0,0 +1,2 @@
+PNG
+
diff --git a/extract/test/rotated.pdf.mutool.odt.dir.ref/content.xml b/extract/test/rotated.pdf.mutool.odt.dir.ref/content.xml
new file mode 100644
index 00000000..d6ae7484
--- /dev/null
+++ b/extract/test/rotated.pdf.mutool.odt.dir.ref/content.xml
@@ -0,0 +1,751 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<office:document-content xmlns:css3t="http://www.w3.org/TR/css3-text/" xmlns:grddl="http://www.w3.org/2003/g/data-view#" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xforms="http://www.w3.org/2002/xforms" xmlns:dom="http://www.w3.org/2001/xml-events" xmlns:script="urn:oasis:names:tc:opendocument:xmlns:script:1.0" xmlns:form="urn:oasis:names:tc:opendocument:xmlns:form:1.0" xmlns:math="http://www.w3.org/1998/Math/MathML" xmlns:number="urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0" xmlns:field="urn:openoffice:names:experimental:ooo-ms-interop:xmlns:field:1.0" xmlns:meta="urn:oasis:names:tc:opendocument:xmlns:meta:1.0" xmlns:loext="urn:org:documentfoundation:names:experimental:office:xmlns:loext:1.0" xmlns:officeooo="http://openoffice.org/2009/office" xmlns:table="urn:oasis:names:tc:opendocument:xmlns:table:1.0" xmlns:chart="urn:oasis:names:tc:opendocument:xmlns:chart:1.0" xmlns:tableooo="http://openoffice.org/2009/table" xmlns:draw="urn:oasis:names:tc:opendocument:xmlns:drawing:1.0" xmlns:rpt="http://openoffice.org/2005/report" xmlns:dr3d="urn:oasis:names:tc:opendocument:xmlns:dr3d:1.0" xmlns:of="urn:oasis:names:tc:opendocument:xmlns:of:1.2" xmlns:text="urn:oasis:names:tc:opendocument:xmlns:text:1.0" xmlns:style="urn:oasis:names:tc:opendocument:xmlns:style:1.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:calcext="urn:org:documentfoundation:names:experimental:calc:xmlns:calcext:1.0" xmlns:oooc="http://openoffice.org/2004/calc" xmlns:drawooo="http://openoffice.org/2010/draw" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:ooo="http://openoffice.org/2004/office" xmlns:ooow="http://openoffice.org/2004/writer" xmlns:fo="urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0" xmlns:formx="urn:openoffice:names:experimental:ooxml-odf-interop:xmlns:form:1.0" xmlns:svg="urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0" xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" office:version="1.3"><office:scripts/><office:font-face-decls><style:font-face style:name="Liberation Serif" svg:font-family="&apos;Liberation Serif&apos;" style:font-family-generic="roman" style:font-pitch="variable"/><style:font-face style:name="Liberation Sans" svg:font-family="&apos;Liberation Sans&apos;" style:font-family-generic="swiss" style:font-pitch="variable"/><style:font-face style:name="Unifont" svg:font-family="Unifont" style:font-family-generic="system" style:font-pitch="variable"/></office:font-face-decls><office:automatic-styles><style:style style:name="T11" style:family="text"><style:text-properties style:font-name="Helvetica-Bold" fo:font-size="11.00pt" fo:font-weight="bold" fo:font-style="normal" /></style:style><style:style style:name="T13" style:family="text"><style:text-properties style:font-name="Helvetica-Bold" fo:font-size="10.01pt" fo:font-weight="bold" fo:font-style="normal" /></style:style><style:style style:name="T12" style:family="text"><style:text-properties style:font-name="Helvetica" fo:font-size="11.00pt" fo:font-weight="normal" fo:font-style="normal" /></style:style><style:style style:name="T14" style:family="text"><style:text-properties style:font-name="Helvetica" fo:font-size="10.01pt" fo:font-weight="normal" fo:font-style="normal" /></style:style><style:style style:name="gr1" style:family="graphic">
+<style:graphic-properties draw:stroke="none" svg:stroke-color="#000000" draw:fill="none" draw:fill-color="#ffffff" fo:min-height="1.9898in" style:run-through="foreground" style:wrap="run-through" style:number-wrapped-paragraphs="no-limit" style:vertical-pos="from-top" style:vertical-rel="paragraph" style:horizontal-pos="from-left" style:horizontal-rel="paragraph" />
+<style:paragraph-properties style:writing-mode="lr-tb"/>
+</style:style>
+<style:style style:name="fr1" style:family="graphic" style:parent-style-name="Graphics">
+<style:graphic-properties fo:margin-left="0in" fo:margin-right="0in" fo:margin-top="0in" fo:margin-bottom="0in" style:vertical-pos="top" style:vertical-rel="baseline" fo:background-color="transparent" draw:fill="none" draw:fill-color="#ffffff" fo:padding="0in" fo:border="none" style:mirror="none" fo:clip="rect(0in, 0in, 0in, 0in)" draw:luminance="0%" draw:contrast="0%" draw:red="0%" draw:green="0%" draw:blue="0%" draw:gamma="100%" draw:color-inversion="false" draw:image-opacity="100%" draw:color-mode="standard"/>
+</style:style>
+</office:automatic-styles>
+<style:style style:name="extract.table" style:family="table"/>
+<style:style style:name="extract.table.column" style:family="table-column"/>
+<office:body><office:text><text:sequence-decls><text:sequence-decl text:display-outline-level="0" text:name="Illustration"/><text:sequence-decl text:display-outline-level="0" text:name="Table"/><text:sequence-decl text:display-outline-level="0" text:name="Text"/><text:sequence-decl text:display-outline-level="0" text:name="Drawing"/><text:sequence-decl text:display-outline-level="0" text:name="Figure"/></text:sequence-decls><text:p text:style-name="Standard"/>
+ <table:table text:style-name="extract.table" table:name="extract.table.1">
+ <table:table-columns>
+ <table:table-column table:style-name="extract.table.column"/>
+ <table:table-column table:style-name="extract.table.column"/>
+ <table:table-column table:style-name="extract.table.column"/>
+ <table:table-column table:style-name="extract.table.column"/>
+ <table:table-column table:style-name="extract.table.column"/>
+ <table:table-column table:style-name="extract.table.column"/>
+ <table:table-column table:style-name="extract.table.column"/>
+ <table:table-column table:style-name="extract.table.column"/>
+ <table:table-column table:style-name="extract.table.column"/>
+ <table:table-column table:style-name="extract.table.column"/>
+ <table:table-column table:style-name="extract.table.column"/>
+ <table:table-column table:style-name="extract.table.column"/>
+ <table:table-column table:style-name="extract.table.column"/>
+ <table:table-column table:style-name="extract.table.column"/>
+ <table:table-column table:style-name="extract.table.column"/>
+ <table:table-column table:style-name="extract.table.column"/>
+ </table:table-columns>
+ <table:table-row>
+ <table:table-cell table:number-rows-spanned="2">
+
+
+<text:p><text:span text:style-name="T11">2011-12)</text:span></text:p>
+
+<text:p><text:span text:style-name="T11">(No.ofadults:</text:span></text:p>
+
+<text:p><text:span text:style-name="T11">FastingBloodSugar </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T11">Women</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T12">2391</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T12">1739</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T12">2028</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T12">1529</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T12">1599</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T12">2503</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T12">1709</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T12">1628</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T12">2027</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T12">1366</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T11">18519</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+ </table:table-cell>
+ <table:table-cell table:number-rows-spanned="10">
+
+ </table:table-cell>
+ <table:table-cell table:number-rows-spanned="10">
+
+
+<text:p><text:span text:style-name="T12">*Datanotavailable </text:span></text:p>
+ </table:table-cell>
+ </table:table-row>
+ <table:table-row>
+ <table:covered-table-cell/>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T11">Men</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T12">1645</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T12">1119</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T12">1628</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T12">1111</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T12">1417</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T12">2122</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T12">1579</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T12">1093</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T12">1413</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T12">1185</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T11">14312</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+ </table:table-cell>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ </table:table-row>
+ <table:table-row>
+ <table:table-cell table:number-rows-spanned="2">
+
+
+<text:p><text:span text:style-name="T11">2011-12)</text:span></text:p>
+
+<text:p><text:span text:style-name="T11">(No.ofadults: </text:span></text:p>
+
+<text:p><text:span text:style-name="T11">BloodPressure </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T11">Women</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T12">3195</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T12">2858</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T12">2894</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T12">2493</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T12">2648</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T12">3021</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T12">2150</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T12">2624</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T12">2743</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T12">2415</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T11">27041</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+ </table:table-cell>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ </table:table-row>
+ <table:table-row>
+ <table:covered-table-cell/>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T11">Men</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T12">2161</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T12">2134</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T12">2467</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T12">1899</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T12">2368</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T12">2687</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T12">1965</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T12">2040</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T12">2058</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T12">2139</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T11">21918</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+ </table:table-cell>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ </table:table-row>
+ <table:table-row>
+ <table:table-cell table:number-columns-spanned="2">
+
+
+<text:p><text:span text:style-name="T11">2011-12)</text:span></text:p>
+
+<text:p><text:span text:style-name="T11">IYCFPractices </text:span></text:p>
+
+<text:p><text:span text:style-name="T11">(No.ofmothers: </text:span></text:p>
+ </table:table-cell>
+ <table:covered-table-cell/>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T12">245</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T12">413</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T12">428</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T12">557</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T12">467</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T12">477</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T12">470</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T12">398</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T12">423</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T12">581</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T11">4459</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+ </table:table-cell>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ </table:table-row>
+ <table:table-row>
+ <table:table-cell table:number-rows-spanned="4">
+
+
+<text:p><text:span text:style-name="T11">(No.ofindividuals) </text:span></text:p>
+
+<text:p><text:span text:style-name="T11">NutritionalAssessment </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">2011-12 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T12">8297</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T12">7851</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T12">8958</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T12">8300</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T12">9525</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T12">9645</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T12">7942</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T12">8473</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T12">8047</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T12">9860</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T11">86898</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+ </table:table-cell>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ </table:table-row>
+ <table:table-row>
+ <table:covered-table-cell/>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">1996-97</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T12">8864</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T12">5813</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T12">12606</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T12">9545</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T12">6883</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T12">4866</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T12">*</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T12">12024</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T12">*</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T12">*</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T11">60601</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+ </table:table-cell>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ </table:table-row>
+ <table:table-row>
+ <table:covered-table-cell/>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">1988-90</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T12">6633</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T12">10217</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T12">8138</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T12">9920</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T12">7796</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T12">5374</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T12">*</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T12">5540</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T12">*</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T12">*</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T11">53618</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+ </table:table-cell>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ </table:table-row>
+ <table:table-row>
+ <table:covered-table-cell/>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">1975-79</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T12">5738</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T12">7387</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T12">6453</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T12">5844</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T12">5161</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T12">4403</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T12">*</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T12">3756</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T12">*</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T12">*</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T11">38742</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+ </table:table-cell>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ </table:table-row>
+ <table:table-row>
+ <table:table-cell table:number-columns-spanned="2">
+
+
+<text:p><text:span text:style-name="T11">State</text:span></text:p>
+ </table:table-cell>
+ <table:covered-table-cell/>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T12">Kerala</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T12">TamilNadu</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T12">Karnataka</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T12">AndhraPradesh</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T12">Maharashtra</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T12">Gujarat</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T12">MadhyaPradesh</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T12">Orissa</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T12">WestBengal</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T12">UttarPradesh</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T11">Pooled</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+ </table:table-cell>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ </table:table-row>
+ </table:table>
+
+
+<text:p><text:span text:style-name="T12">(Contd...)</text:span></text:p>
+
+<text:p><text:span text:style-name="T11">Table1:STATEWISECOVERAGEPARTICULARSBYPERIODOFSURVEY </text:span></text:p>
+
+<text:p><text:span text:style-name="T14">NNMB72Rural-ThirdRepeatSurvey2011-12 </text:span></text:p></office:text></office:body></office:document-content> \ No newline at end of file
diff --git a/extract/test/rotated.pdf.mutool.odt.dir.ref/manifest.rdf b/extract/test/rotated.pdf.mutool.odt.dir.ref/manifest.rdf
new file mode 100644
index 00000000..927e206b
--- /dev/null
+++ b/extract/test/rotated.pdf.mutool.odt.dir.ref/manifest.rdf
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="utf-8"?>
+<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
+ <rdf:Description rdf:about="styles.xml">
+ <rdf:type rdf:resource="http://docs.oasis-open.org/ns/office/1.2/meta/odf#StylesFile"/>
+ </rdf:Description>
+ <rdf:Description rdf:about="">
+ <ns0:hasPart xmlns:ns0="http://docs.oasis-open.org/ns/office/1.2/meta/pkg#" rdf:resource="styles.xml"/>
+ </rdf:Description>
+ <rdf:Description rdf:about="content.xml">
+ <rdf:type rdf:resource="http://docs.oasis-open.org/ns/office/1.2/meta/odf#ContentFile"/>
+ </rdf:Description>
+ <rdf:Description rdf:about="">
+ <ns0:hasPart xmlns:ns0="http://docs.oasis-open.org/ns/office/1.2/meta/pkg#" rdf:resource="content.xml"/>
+ </rdf:Description>
+ <rdf:Description rdf:about="">
+ <rdf:type rdf:resource="http://docs.oasis-open.org/ns/office/1.2/meta/pkg#Document"/>
+ </rdf:Description>
+</rdf:RDF>
diff --git a/extract/test/rotated.pdf.mutool.odt.dir.ref/meta.xml b/extract/test/rotated.pdf.mutool.odt.dir.ref/meta.xml
new file mode 100644
index 00000000..6b42561e
--- /dev/null
+++ b/extract/test/rotated.pdf.mutool.odt.dir.ref/meta.xml
@@ -0,0 +1,2 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<office:document-meta xmlns:grddl="http://www.w3.org/2003/g/data-view#" xmlns:meta="urn:oasis:names:tc:opendocument:xmlns:meta:1.0" xmlns:ooo="http://openoffice.org/2004/office" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" office:version="1.3"><office:meta><meta:creation-date>2021-04-05T17:06:57.937137058</meta:creation-date><meta:generator>LibreOffice/7.0.1.2$OpenBSD_X86_64 LibreOffice_project/00$Build-2</meta:generator><dc:date>2021-04-06T17:14:51.409959656</dc:date><meta:editing-duration>PT20S</meta:editing-duration><meta:editing-cycles>1</meta:editing-cycles><meta:document-statistic meta:table-count="0" meta:image-count="0" meta:object-count="0" meta:page-count="1" meta:paragraph-count="0" meta:word-count="0" meta:character-count="0" meta:non-whitespace-character-count="0"/></office:meta></office:document-meta> \ No newline at end of file
diff --git a/extract/test/rotated.pdf.mutool.odt.dir.ref/mimetype b/extract/test/rotated.pdf.mutool.odt.dir.ref/mimetype
new file mode 100644
index 00000000..2e95b81c
--- /dev/null
+++ b/extract/test/rotated.pdf.mutool.odt.dir.ref/mimetype
@@ -0,0 +1 @@
+application/vnd.oasis.opendocument.text \ No newline at end of file
diff --git a/extract/test/rotated.pdf.mutool.odt.dir.ref/settings.xml b/extract/test/rotated.pdf.mutool.odt.dir.ref/settings.xml
new file mode 100644
index 00000000..35a8138f
--- /dev/null
+++ b/extract/test/rotated.pdf.mutool.odt.dir.ref/settings.xml
@@ -0,0 +1,2 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<office:document-settings xmlns:config="urn:oasis:names:tc:opendocument:xmlns:config:1.0" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:ooo="http://openoffice.org/2004/office" xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" office:version="1.3"><office:settings><config:config-item-set config:name="ooo:view-settings"><config:config-item config:name="ViewAreaTop" config:type="long">0</config:config-item><config:config-item config:name="ViewAreaLeft" config:type="long">0</config:config-item><config:config-item config:name="ViewAreaWidth" config:type="long">26275</config:config-item><config:config-item config:name="ViewAreaHeight" config:type="long">19502</config:config-item><config:config-item config:name="ShowRedlineChanges" config:type="boolean">true</config:config-item><config:config-item config:name="InBrowseMode" config:type="boolean">false</config:config-item><config:config-item-map-indexed config:name="Views"><config:config-item-map-entry><config:config-item config:name="ViewId" config:type="string">view2</config:config-item><config:config-item config:name="ViewLeft" config:type="long">4343</config:config-item><config:config-item config:name="ViewTop" config:type="long">2501</config:config-item><config:config-item config:name="VisibleLeft" config:type="long">0</config:config-item><config:config-item config:name="VisibleTop" config:type="long">0</config:config-item><config:config-item config:name="VisibleRight" config:type="long">26273</config:config-item><config:config-item config:name="VisibleBottom" config:type="long">19500</config:config-item><config:config-item config:name="ZoomType" config:type="short">0</config:config-item><config:config-item config:name="ViewLayoutColumns" config:type="short">1</config:config-item><config:config-item config:name="ViewLayoutBookMode" config:type="boolean">false</config:config-item><config:config-item config:name="ZoomFactor" config:type="short">100</config:config-item><config:config-item config:name="IsSelectedFrame" config:type="boolean">false</config:config-item><config:config-item config:name="AnchoredTextOverflowLegacy" config:type="boolean">false</config:config-item></config:config-item-map-entry></config:config-item-map-indexed></config:config-item-set><config:config-item-set config:name="ooo:configuration-settings"><config:config-item config:name="PrintBlackFonts" config:type="boolean">false</config:config-item><config:config-item config:name="PrintReversed" config:type="boolean">false</config:config-item><config:config-item config:name="SaveThumbnail" config:type="boolean">true</config:config-item><config:config-item config:name="EmbedFonts" config:type="boolean">false</config:config-item><config:config-item config:name="PrintControls" config:type="boolean">true</config:config-item><config:config-item config:name="OutlineLevelYieldsNumbering" config:type="boolean">false</config:config-item><config:config-item config:name="PrintPageBackground" config:type="boolean">true</config:config-item><config:config-item config:name="PrintAnnotationMode" config:type="short">0</config:config-item><config:config-item config:name="PrintGraphics" config:type="boolean">true</config:config-item><config:config-item config:name="EmbeddedDatabaseName" config:type="string"/><config:config-item config:name="ProtectForm" config:type="boolean">false</config:config-item><config:config-item config:name="PrintLeftPages" config:type="boolean">true</config:config-item><config:config-item config:name="PrintProspect" config:type="boolean">false</config:config-item><config:config-item config:name="PrintHiddenText" config:type="boolean">false</config:config-item><config:config-item config:name="PrintRightPages" config:type="boolean">true</config:config-item><config:config-item config:name="PrintFaxName" config:type="string"/><config:config-item config:name="PrintPaperFromSetup" config:type="boolean">false</config:config-item><config:config-item config:name="TabsRelativeToIndent" config:type="boolean">true</config:config-item><config:config-item config:name="RedlineProtectionKey" config:type="base64Binary"/><config:config-item config:name="PrintTextPlaceholder" config:type="boolean">false</config:config-item><config:config-item config:name="MathBaselineAlignment" config:type="boolean">true</config:config-item><config:config-item config:name="ProtectBookmarks" config:type="boolean">false</config:config-item><config:config-item config:name="IgnoreTabsAndBlanksForLineCalculation" config:type="boolean">false</config:config-item><config:config-item config:name="ContinuousEndnotes" config:type="boolean">false</config:config-item><config:config-item config:name="FieldAutoUpdate" config:type="boolean">true</config:config-item><config:config-item config:name="EmptyDbFieldHidesPara" config:type="boolean">true</config:config-item><config:config-item config:name="ApplyParagraphMarkFormatToNumbering" config:type="boolean">false</config:config-item><config:config-item config:name="PrintEmptyPages" config:type="boolean">true</config:config-item><config:config-item config:name="TabOverMargin" config:type="boolean">false</config:config-item><config:config-item config:name="EmbedAsianScriptFonts" config:type="boolean">true</config:config-item><config:config-item config:name="EmbedLatinScriptFonts" config:type="boolean">true</config:config-item><config:config-item config:name="DisableOffPagePositioning" config:type="boolean">false</config:config-item><config:config-item config:name="EmbedOnlyUsedFonts" config:type="boolean">false</config:config-item><config:config-item config:name="MsWordCompMinLineHeightByFly" config:type="boolean">false</config:config-item><config:config-item config:name="SurroundTextWrapSmall" config:type="boolean">false</config:config-item><config:config-item config:name="BackgroundParaOverDrawings" config:type="boolean">false</config:config-item><config:config-item config:name="ClippedPictures" config:type="boolean">false</config:config-item><config:config-item config:name="FloattableNomargins" config:type="boolean">false</config:config-item><config:config-item config:name="UnbreakableNumberings" config:type="boolean">false</config:config-item><config:config-item config:name="EmbedSystemFonts" config:type="boolean">false</config:config-item><config:config-item config:name="TabOverflow" config:type="boolean">true</config:config-item><config:config-item config:name="PrintTables" config:type="boolean">true</config:config-item><config:config-item config:name="PrintDrawings" config:type="boolean">true</config:config-item><config:config-item config:name="ConsiderTextWrapOnObjPos" config:type="boolean">false</config:config-item><config:config-item config:name="PrintSingleJobs" config:type="boolean">false</config:config-item><config:config-item config:name="SmallCapsPercentage66" config:type="boolean">false</config:config-item><config:config-item config:name="CollapseEmptyCellPara" config:type="boolean">true</config:config-item><config:config-item config:name="HeaderSpacingBelowLastPara" config:type="boolean">false</config:config-item><config:config-item config:name="RsidRoot" config:type="int">2052946</config:config-item><config:config-item config:name="PrinterSetup" config:type="base64Binary"/><config:config-item config:name="CurrentDatabaseCommand" config:type="string"/><config:config-item config:name="AlignTabStopPosition" config:type="boolean">true</config:config-item><config:config-item config:name="ClipAsCharacterAnchoredWriterFlyFrames" config:type="boolean">false</config:config-item><config:config-item config:name="DoNotCaptureDrawObjsOnPage" config:type="boolean">false</config:config-item><config:config-item config:name="SaveGlobalDocumentLinks" config:type="boolean">false</config:config-item><config:config-item config:name="CurrentDatabaseCommandType" config:type="int">0</config:config-item><config:config-item config:name="LoadReadonly" config:type="boolean">false</config:config-item><config:config-item config:name="DoNotResetParaAttrsForNumFont" config:type="boolean">false</config:config-item><config:config-item config:name="StylesNoDefault" config:type="boolean">false</config:config-item><config:config-item config:name="LinkUpdateMode" config:type="short">1</config:config-item><config:config-item config:name="DoNotJustifyLinesWithManualBreak" config:type="boolean">false</config:config-item><config:config-item config:name="PropLineSpacingShrinksFirstLine" config:type="boolean">true</config:config-item><config:config-item config:name="TabAtLeftIndentForParagraphsInList" config:type="boolean">false</config:config-item><config:config-item config:name="ProtectFields" config:type="boolean">false</config:config-item><config:config-item config:name="UnxForceZeroExtLeading" config:type="boolean">false</config:config-item><config:config-item config:name="CurrentDatabaseDataSource" config:type="string"/><config:config-item config:name="UseFormerTextWrapping" config:type="boolean">false</config:config-item><config:config-item config:name="UseFormerLineSpacing" config:type="boolean">false</config:config-item><config:config-item config:name="AllowPrintJobCancel" config:type="boolean">true</config:config-item><config:config-item config:name="SubtractFlysAnchoredAtFlys" config:type="boolean">false</config:config-item><config:config-item config:name="AddParaSpacingToTableCells" config:type="boolean">true</config:config-item><config:config-item config:name="AddExternalLeading" config:type="boolean">true</config:config-item><config:config-item config:name="Rsid" config:type="int">2178852</config:config-item><config:config-item config:name="AddVerticalFrameOffsets" config:type="boolean">false</config:config-item><config:config-item config:name="TreatSingleColumnBreakAsPageBreak" config:type="boolean">false</config:config-item><config:config-item config:name="AddFrameOffsets" config:type="boolean">false</config:config-item><config:config-item config:name="IsLabelDocument" config:type="boolean">false</config:config-item><config:config-item config:name="MsWordCompTrailingBlanks" config:type="boolean">false</config:config-item><config:config-item config:name="PrinterPaperFromSetup" config:type="boolean">false</config:config-item><config:config-item config:name="IgnoreFirstLineIndentInNumbering" config:type="boolean">false</config:config-item><config:config-item config:name="PrinterName" config:type="string"/><config:config-item config:name="IsKernAsianPunctuation" config:type="boolean">false</config:config-item><config:config-item config:name="PrinterIndependentLayout" config:type="string">high-resolution</config:config-item><config:config-item config:name="TableRowKeep" config:type="boolean">false</config:config-item><config:config-item config:name="UpdateFromTemplate" config:type="boolean">true</config:config-item><config:config-item config:name="EmbedComplexScriptFonts" config:type="boolean">true</config:config-item><config:config-item config:name="UseOldPrinterMetrics" config:type="boolean">false</config:config-item><config:config-item config:name="InvertBorderSpacing" config:type="boolean">false</config:config-item><config:config-item config:name="PrintProspectRTL" config:type="boolean">false</config:config-item><config:config-item config:name="ApplyUserData" config:type="boolean">true</config:config-item><config:config-item config:name="AddParaTableSpacingAtStart" config:type="boolean">true</config:config-item><config:config-item config:name="SaveVersionOnClose" config:type="boolean">false</config:config-item><config:config-item config:name="CharacterCompressionType" config:type="short">0</config:config-item><config:config-item config:name="UseOldNumbering" config:type="boolean">false</config:config-item><config:config-item config:name="UseFormerObjectPositioning" config:type="boolean">false</config:config-item><config:config-item config:name="ChartAutoUpdate" config:type="boolean">true</config:config-item><config:config-item config:name="AddParaTableSpacing" config:type="boolean">true</config:config-item></config:config-item-set></office:settings></office:document-settings> \ No newline at end of file
diff --git a/extract/test/rotated.pdf.mutool.odt.dir.ref/styles.xml b/extract/test/rotated.pdf.mutool.odt.dir.ref/styles.xml
new file mode 100644
index 00000000..91403c4e
--- /dev/null
+++ b/extract/test/rotated.pdf.mutool.odt.dir.ref/styles.xml
@@ -0,0 +1,2 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<office:document-styles xmlns:css3t="http://www.w3.org/TR/css3-text/" xmlns:grddl="http://www.w3.org/2003/g/data-view#" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:dom="http://www.w3.org/2001/xml-events" xmlns:script="urn:oasis:names:tc:opendocument:xmlns:script:1.0" xmlns:form="urn:oasis:names:tc:opendocument:xmlns:form:1.0" xmlns:math="http://www.w3.org/1998/Math/MathML" xmlns:number="urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0" xmlns:field="urn:openoffice:names:experimental:ooo-ms-interop:xmlns:field:1.0" xmlns:meta="urn:oasis:names:tc:opendocument:xmlns:meta:1.0" xmlns:loext="urn:org:documentfoundation:names:experimental:office:xmlns:loext:1.0" xmlns:officeooo="http://openoffice.org/2009/office" xmlns:table="urn:oasis:names:tc:opendocument:xmlns:table:1.0" xmlns:chart="urn:oasis:names:tc:opendocument:xmlns:chart:1.0" xmlns:tableooo="http://openoffice.org/2009/table" xmlns:draw="urn:oasis:names:tc:opendocument:xmlns:drawing:1.0" xmlns:rpt="http://openoffice.org/2005/report" xmlns:dr3d="urn:oasis:names:tc:opendocument:xmlns:dr3d:1.0" xmlns:of="urn:oasis:names:tc:opendocument:xmlns:of:1.2" xmlns:text="urn:oasis:names:tc:opendocument:xmlns:text:1.0" xmlns:style="urn:oasis:names:tc:opendocument:xmlns:style:1.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:calcext="urn:org:documentfoundation:names:experimental:calc:xmlns:calcext:1.0" xmlns:oooc="http://openoffice.org/2004/calc" xmlns:drawooo="http://openoffice.org/2010/draw" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:ooo="http://openoffice.org/2004/office" xmlns:ooow="http://openoffice.org/2004/writer" xmlns:fo="urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0" xmlns:svg="urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0" xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" office:version="1.3"><office:font-face-decls><style:font-face style:name="Liberation Serif" svg:font-family="&apos;Liberation Serif&apos;" style:font-family-generic="roman" style:font-pitch="variable"/><style:font-face style:name="Liberation Sans" svg:font-family="&apos;Liberation Sans&apos;" style:font-family-generic="swiss" style:font-pitch="variable"/><style:font-face style:name="Unifont" svg:font-family="Unifont" style:font-family-generic="system" style:font-pitch="variable"/></office:font-face-decls><office:styles><style:default-style style:family="graphic"><style:graphic-properties svg:stroke-color="#3465a4" draw:fill-color="#729fcf" fo:wrap-option="no-wrap" draw:shadow-offset-x="0.1181in" draw:shadow-offset-y="0.1181in" draw:start-line-spacing-horizontal="0.1114in" draw:start-line-spacing-vertical="0.1114in" draw:end-line-spacing-horizontal="0.1114in" draw:end-line-spacing-vertical="0.1114in" style:flow-with-text="false"/><style:paragraph-properties style:text-autospace="ideograph-alpha" style:line-break="strict" style:font-independent-line-spacing="false"><style:tab-stops/></style:paragraph-properties><style:text-properties style:use-window-font-color="true" loext:opacity="0%" style:font-name="Liberation Serif" fo:font-size="12pt" fo:language="en" fo:country="US" style:letter-kerning="true" style:font-name-asian="Unifont" style:font-size-asian="10.5pt" style:language-asian="zh" style:country-asian="CN" style:font-name-complex="Unifont" style:font-size-complex="12pt" style:language-complex="hi" style:country-complex="IN"/></style:default-style><style:default-style style:family="paragraph"><style:paragraph-properties fo:orphans="2" fo:widows="2" fo:hyphenation-ladder-count="no-limit" style:text-autospace="ideograph-alpha" style:punctuation-wrap="hanging" style:line-break="strict" style:tab-stop-distance="0.4925in" style:writing-mode="page"/><style:text-properties style:use-window-font-color="true" loext:opacity="0%" style:font-name="Liberation Serif" fo:font-size="12pt" fo:language="en" fo:country="US" style:letter-kerning="true" style:font-name-asian="Unifont" style:font-size-asian="10.5pt" style:language-asian="zh" style:country-asian="CN" style:font-name-complex="Unifont" style:font-size-complex="12pt" style:language-complex="hi" style:country-complex="IN" fo:hyphenate="false" fo:hyphenation-remain-char-count="2" fo:hyphenation-push-char-count="2" loext:hyphenation-no-caps="false"/></style:default-style><style:default-style style:family="table"><style:table-properties table:border-model="collapsing"/></style:default-style><style:default-style style:family="table-row"><style:table-row-properties fo:keep-together="auto"/></style:default-style><style:style style:name="Standard" style:family="paragraph" style:class="text"><style:paragraph-properties fo:margin-top="0in" fo:margin-bottom="0.0799in" style:contextual-spacing="false"/></style:style><style:style style:name="Heading" style:family="paragraph" style:parent-style-name="Standard" style:next-style-name="Text_20_body" style:class="text"><style:paragraph-properties fo:margin-top="0.1665in" fo:margin-bottom="0.0835in" style:contextual-spacing="false" fo:keep-with-next="always"/><style:text-properties style:font-name="Liberation Sans" fo:font-family="&apos;Liberation Sans&apos;" style:font-family-generic="swiss" style:font-pitch="variable" fo:font-size="14pt" style:font-name-asian="Unifont" style:font-family-asian="Unifont" style:font-family-generic-asian="system" style:font-pitch-asian="variable" style:font-size-asian="14pt" style:font-name-complex="Unifont" style:font-family-complex="Unifont" style:font-family-generic-complex="system" style:font-pitch-complex="variable" style:font-size-complex="14pt"/></style:style><style:style style:name="Text_20_body" style:display-name="Text body" style:family="paragraph" style:parent-style-name="Standard" style:class="text"><style:paragraph-properties fo:margin-top="0in" fo:margin-bottom="0.0972in" style:contextual-spacing="false" fo:line-height="115%"/></style:style><style:style style:name="List" style:family="paragraph" style:parent-style-name="Text_20_body" style:class="list"><style:text-properties style:font-size-asian="12pt"/></style:style><style:style style:name="Caption" style:family="paragraph" style:parent-style-name="Standard" style:class="extra"><style:paragraph-properties fo:margin-top="0.0835in" fo:margin-bottom="0.0835in" style:contextual-spacing="false" text:number-lines="false" text:line-number="0"/><style:text-properties fo:font-size="12pt" fo:font-style="italic" style:font-size-asian="12pt" style:font-style-asian="italic" style:font-size-complex="12pt" style:font-style-complex="italic"/></style:style><style:style style:name="Index" style:family="paragraph" style:parent-style-name="Standard" style:class="index"><style:paragraph-properties text:number-lines="false" text:line-number="0"/><style:text-properties style:font-size-asian="12pt"/></style:style><text:outline-style style:name="Outline"><text:outline-level-style text:level="1" style:num-format=""><style:list-level-properties text:list-level-position-and-space-mode="label-alignment"><style:list-level-label-alignment text:label-followed-by="listtab"/></style:list-level-properties></text:outline-level-style><text:outline-level-style text:level="2" style:num-format=""><style:list-level-properties text:list-level-position-and-space-mode="label-alignment"><style:list-level-label-alignment text:label-followed-by="listtab"/></style:list-level-properties></text:outline-level-style><text:outline-level-style text:level="3" style:num-format=""><style:list-level-properties text:list-level-position-and-space-mode="label-alignment"><style:list-level-label-alignment text:label-followed-by="listtab"/></style:list-level-properties></text:outline-level-style><text:outline-level-style text:level="4" style:num-format=""><style:list-level-properties text:list-level-position-and-space-mode="label-alignment"><style:list-level-label-alignment text:label-followed-by="listtab"/></style:list-level-properties></text:outline-level-style><text:outline-level-style text:level="5" style:num-format=""><style:list-level-properties text:list-level-position-and-space-mode="label-alignment"><style:list-level-label-alignment text:label-followed-by="listtab"/></style:list-level-properties></text:outline-level-style><text:outline-level-style text:level="6" style:num-format=""><style:list-level-properties text:list-level-position-and-space-mode="label-alignment"><style:list-level-label-alignment text:label-followed-by="listtab"/></style:list-level-properties></text:outline-level-style><text:outline-level-style text:level="7" style:num-format=""><style:list-level-properties text:list-level-position-and-space-mode="label-alignment"><style:list-level-label-alignment text:label-followed-by="listtab"/></style:list-level-properties></text:outline-level-style><text:outline-level-style text:level="8" style:num-format=""><style:list-level-properties text:list-level-position-and-space-mode="label-alignment"><style:list-level-label-alignment text:label-followed-by="listtab"/></style:list-level-properties></text:outline-level-style><text:outline-level-style text:level="9" style:num-format=""><style:list-level-properties text:list-level-position-and-space-mode="label-alignment"><style:list-level-label-alignment text:label-followed-by="listtab"/></style:list-level-properties></text:outline-level-style><text:outline-level-style text:level="10" style:num-format=""><style:list-level-properties text:list-level-position-and-space-mode="label-alignment"><style:list-level-label-alignment text:label-followed-by="listtab"/></style:list-level-properties></text:outline-level-style></text:outline-style><text:notes-configuration text:note-class="footnote" style:num-format="1" text:start-value="0" text:footnotes-position="page" text:start-numbering-at="document"/><text:notes-configuration text:note-class="endnote" style:num-format="i" text:start-value="0"/><text:linenumbering-configuration text:number-lines="false" text:offset="0.1965in" style:num-format="1" text:number-position="left" text:increment="5"/></office:styles><office:automatic-styles><style:page-layout style:name="Mpm1"><style:page-layout-properties fo:page-width="8.5in" fo:page-height="11in" style:num-format="1" style:print-orientation="portrait" fo:margin-top="0.7874in" fo:margin-bottom="0.7874in" fo:margin-left="0.7874in" fo:margin-right="0.7874in" style:writing-mode="lr-tb" style:layout-grid-color="#c0c0c0" style:layout-grid-lines="20" style:layout-grid-base-height="0.278in" style:layout-grid-ruby-height="0.139in" style:layout-grid-mode="none" style:layout-grid-ruby-below="false" style:layout-grid-print="false" style:layout-grid-display="false" style:footnote-max-height="0in"><style:footnote-sep style:width="0.0071in" style:distance-before-sep="0.0398in" style:distance-after-sep="0.0398in" style:line-style="solid" style:adjustment="left" style:rel-width="25%" style:color="#000000"/></style:page-layout-properties><style:header-style/><style:footer-style/></style:page-layout></office:automatic-styles><office:master-styles><style:master-page style:name="Standard" style:page-layout-name="Mpm1"/></office:master-styles></office:document-styles> \ No newline at end of file
diff --git a/extract/test/row_span.pdf b/extract/test/row_span.pdf
new file mode 100755
index 00000000..ef2c7ce4
--- /dev/null
+++ b/extract/test/row_span.pdf
Binary files differ
diff --git a/extract/test/row_span.pdf.mutool-0.csv.ref b/extract/test/row_span.pdf.mutool-0.csv.ref
new file mode 100644
index 00000000..1adfb481
--- /dev/null
+++ b/extract/test/row_span.pdf.mutool-0.csv.ref
@@ -0,0 +1,40 @@
+"Plan Type","County","Plan Name","Totals"
+"GMC","Sacramento","Anthem Blue Cross","164,380"
+"","","Health Net","126,547"
+"","","Kaiser Foundation","74,620"
+"","","Molina Healthcare","59,989"
+"","San Diego","Care 1st Health Plan","71,831"
+"","","Community Health Group","264,639"
+"","","Health Net","72,404"
+"","","Kaiser","50,415"
+"","","Molina Healthcare","206,430"
+"","Total GMC Enrollment","","1,091,255"
+"COHS","Marin","Partnership Health Plan of CA","36,006"
+"","Mendocino",""," 37,243"
+"","Napa","","28,398"
+"","Solano","","113,220"
+"","Sonoma","","112,271"
+"","Yolo","","52,674"
+"","Del Norte","","11,242"
+"","Humboldt","","49,911"
+"","Lake","","29,149"
+"","Lassen","","7,360"
+"","Modoc","","2,940"
+"","Shasta","","61,763"
+"","Siskiyou","","16,715"
+"","Trinity","","4,542"
+"","Merced","Central California Alliance for Health"," 123,907"
+"","Monterey",""," 147,397"
+"","Santa Cruz",""," 69,458"
+"","Santa Barbara","CenCal","117,609"
+"","San Luis Obispo","","55,761"
+"","Orange","CalOptima","783,079"
+"","San Mateo","Health Plan of San Mateo","113,202"
+"","Ventura","Gold Coast Health Plan","202,217"
+"","Total COHS Enrollment","","2,176,064"
+"Subtotal for Two-Plan, Regional Model, GMC and COHS","","","10,132,022"
+"PCCM","Los Angeles","AIDS Healthcare Foundation","828"
+"","San Francisco","Family Mosaic","25"
+"","Total PHP Enrollment","","853"
+"All Models Total Enrollments","","","10,132,875"
+"Source: Data Warehouse 12/14/15","","",""
diff --git a/extract/test/row_span.pdf.mutool.docx.dir.ref/[Content_Types].xml b/extract/test/row_span.pdf.mutool.docx.dir.ref/[Content_Types].xml
new file mode 100644
index 00000000..07d88cca
--- /dev/null
+++ b/extract/test/row_span.pdf.mutool.docx.dir.ref/[Content_Types].xml
@@ -0,0 +1,2 @@
+<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
+<Types xmlns="http://schemas.openxmlformats.org/package/2006/content-types"><Default Extension="rels" ContentType="application/vnd.openxmlformats-package.relationships+xml"/><Default Extension="xml" ContentType="application/xml"/><Override PartName="/word/document.xml" ContentType="application/vnd.openxmlformats-officedocument.wordprocessingml.document.main+xml"/><Override PartName="/word/styles.xml" ContentType="application/vnd.openxmlformats-officedocument.wordprocessingml.styles+xml"/><Override PartName="/word/settings.xml" ContentType="application/vnd.openxmlformats-officedocument.wordprocessingml.settings+xml"/><Override PartName="/word/webSettings.xml" ContentType="application/vnd.openxmlformats-officedocument.wordprocessingml.webSettings+xml"/><Override PartName="/word/fontTable.xml" ContentType="application/vnd.openxmlformats-officedocument.wordprocessingml.fontTable+xml"/><Override PartName="/word/theme/theme1.xml" ContentType="application/vnd.openxmlformats-officedocument.theme+xml"/><Override PartName="/docProps/core.xml" ContentType="application/vnd.openxmlformats-package.core-properties+xml"/><Override PartName="/docProps/app.xml" ContentType="application/vnd.openxmlformats-officedocument.extended-properties+xml"/></Types> \ No newline at end of file
diff --git a/extract/test/row_span.pdf.mutool.docx.dir.ref/_rels/.rels b/extract/test/row_span.pdf.mutool.docx.dir.ref/_rels/.rels
new file mode 100644
index 00000000..32548d42
--- /dev/null
+++ b/extract/test/row_span.pdf.mutool.docx.dir.ref/_rels/.rels
@@ -0,0 +1,2 @@
+<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
+<Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships"><Relationship Id="rId3" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties" Target="docProps/app.xml"/><Relationship Id="rId2" Type="http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties" Target="docProps/core.xml"/><Relationship Id="rId1" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument" Target="word/document.xml"/></Relationships> \ No newline at end of file
diff --git a/extract/test/row_span.pdf.mutool.docx.dir.ref/docProps/app.xml b/extract/test/row_span.pdf.mutool.docx.dir.ref/docProps/app.xml
new file mode 100644
index 00000000..eb8dd2e5
--- /dev/null
+++ b/extract/test/row_span.pdf.mutool.docx.dir.ref/docProps/app.xml
@@ -0,0 +1,2 @@
+<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
+<Properties xmlns="http://schemas.openxmlformats.org/officeDocument/2006/extended-properties" xmlns:vt="http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes"><Template>Normal.dotm</Template><TotalTime>3</TotalTime><Pages>1</Pages><Words>2</Words><Characters>18</Characters><Application>Microsoft Office Word</Application><DocSecurity>0</DocSecurity><Lines>1</Lines><Paragraphs>1</Paragraphs><ScaleCrop>false</ScaleCrop><Company></Company><LinksUpToDate>false</LinksUpToDate><CharactersWithSpaces>19</CharactersWithSpaces><SharedDoc>false</SharedDoc><HyperlinksChanged>false</HyperlinksChanged><AppVersion>16.0000</AppVersion></Properties> \ No newline at end of file
diff --git a/extract/test/row_span.pdf.mutool.docx.dir.ref/docProps/core.xml b/extract/test/row_span.pdf.mutool.docx.dir.ref/docProps/core.xml
new file mode 100644
index 00000000..195d77a9
--- /dev/null
+++ b/extract/test/row_span.pdf.mutool.docx.dir.ref/docProps/core.xml
@@ -0,0 +1,2 @@
+<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
+<cp:coreProperties xmlns:cp="http://schemas.openxmlformats.org/package/2006/metadata/core-properties" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:dcterms="http://purl.org/dc/terms/" xmlns:dcmitype="http://purl.org/dc/dcmitype/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><dc:title></dc:title><dc:subject></dc:subject><dc:creator></dc:creator><cp:keywords></cp:keywords><dc:description></dc:description><cp:lastModifiedBy></cp:lastModifiedBy><cp:revision>1</cp:revision><dcterms:created xsi:type="dcterms:W3CDTF">2020-09-25T17:04:00Z</dcterms:created><dcterms:modified xsi:type="dcterms:W3CDTF">2020-09-25T17:07:00Z</dcterms:modified></cp:coreProperties> \ No newline at end of file
diff --git a/extract/test/row_span.pdf.mutool.docx.dir.ref/word/_rels/document.xml.rels b/extract/test/row_span.pdf.mutool.docx.dir.ref/word/_rels/document.xml.rels
new file mode 100644
index 00000000..3b2b7f8c
--- /dev/null
+++ b/extract/test/row_span.pdf.mutool.docx.dir.ref/word/_rels/document.xml.rels
@@ -0,0 +1,2 @@
+<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
+<Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships"><Relationship Id="rId3" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/webSettings" Target="webSettings.xml"/><Relationship Id="rId2" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/settings" Target="settings.xml"/><Relationship Id="rId1" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles" Target="styles.xml"/><Relationship Id="rId5" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme" Target="theme/theme1.xml"/><Relationship Id="rId4" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/fontTable" Target="fontTable.xml"/></Relationships> \ No newline at end of file
diff --git a/extract/test/row_span.pdf.mutool.docx.dir.ref/word/document.xml b/extract/test/row_span.pdf.mutool.docx.dir.ref/word/document.xml
new file mode 100644
index 00000000..3b0fbd27
--- /dev/null
+++ b/extract/test/row_span.pdf.mutool.docx.dir.ref/word/document.xml
@@ -0,0 +1,2133 @@
+<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
+<w:document xmlns:wpc="http://schemas.microsoft.com/office/word/2010/wordprocessingCanvas" xmlns:cx="http://schemas.microsoft.com/office/drawing/2014/chartex" xmlns:cx1="http://schemas.microsoft.com/office/drawing/2015/9/8/chartex" xmlns:cx2="http://schemas.microsoft.com/office/drawing/2015/10/21/chartex" xmlns:cx3="http://schemas.microsoft.com/office/drawing/2016/5/9/chartex" xmlns:cx4="http://schemas.microsoft.com/office/drawing/2016/5/10/chartex" xmlns:cx5="http://schemas.microsoft.com/office/drawing/2016/5/11/chartex" xmlns:cx6="http://schemas.microsoft.com/office/drawing/2016/5/12/chartex" xmlns:cx7="http://schemas.microsoft.com/office/drawing/2016/5/13/chartex" xmlns:cx8="http://schemas.microsoft.com/office/drawing/2016/5/14/chartex" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:aink="http://schemas.microsoft.com/office/drawing/2016/ink" xmlns:am3d="http://schemas.microsoft.com/office/drawing/2017/model3d" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships" xmlns:m="http://schemas.openxmlformats.org/officeDocument/2006/math" xmlns:v="urn:schemas-microsoft-com:vml" xmlns:wp14="http://schemas.microsoft.com/office/word/2010/wordprocessingDrawing" xmlns:wp="http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing" xmlns:w10="urn:schemas-microsoft-com:office:word" xmlns:w="http://schemas.openxmlformats.org/wordprocessingml/2006/main" xmlns:w14="http://schemas.microsoft.com/office/word/2010/wordml" xmlns:w15="http://schemas.microsoft.com/office/word/2012/wordml" xmlns:w16cex="http://schemas.microsoft.com/office/word/2018/wordml/cex" xmlns:w16cid="http://schemas.microsoft.com/office/word/2016/wordml/cid" xmlns:w16="http://schemas.microsoft.com/office/word/2018/wordml" xmlns:w16se="http://schemas.microsoft.com/office/word/2015/wordml/symex" xmlns:wpg="http://schemas.microsoft.com/office/word/2010/wordprocessingGroup" xmlns:wpi="http://schemas.microsoft.com/office/word/2010/wordprocessingInk" xmlns:wne="http://schemas.microsoft.com/office/word/2006/wordml" xmlns:wps="http://schemas.microsoft.com/office/word/2010/wordprocessingShape" mc:Ignorable="w14 w15 w16se w16cid w16 w16cex wp14"><w:body>
+ <w:tbl>
+ <w:tblLayout w:type="autofit"/>
+ <w:tr>
+ <w:trPr/>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Arial-BoldMT" w:hAnsi="Arial-BoldMT"/><w:b/><w:sz w:val="20.400000"/><w:szCs w:val="15.300000"/></w:rPr><w:t xml:space="preserve">Plan Type </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Arial-BoldMT" w:hAnsi="Arial-BoldMT"/><w:b/><w:sz w:val="20.400000"/><w:szCs w:val="15.300000"/></w:rPr><w:t xml:space="preserve">County </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Arial-BoldMT" w:hAnsi="Arial-BoldMT"/><w:b/><w:sz w:val="20.400000"/><w:szCs w:val="15.300000"/></w:rPr><w:t xml:space="preserve">Plan Name </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Arial-BoldMT" w:hAnsi="Arial-BoldMT"/><w:b/><w:sz w:val="20.400000"/><w:szCs w:val="15.300000"/></w:rPr><w:t xml:space="preserve">Totals </w:t></w:r>
+</w:p> </w:tc>
+ </w:tr>
+ <w:tr>
+ <w:trPr/>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="restart"/>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Arial-BoldMT" w:hAnsi="Arial-BoldMT"/><w:b/><w:sz w:val="18.720000"/><w:szCs w:val="14.040000"/></w:rPr><w:t xml:space="preserve">GMC </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="restart"/>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="18.720000"/><w:szCs w:val="14.040000"/></w:rPr><w:t xml:space="preserve">Sacramento </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="18.720000"/><w:szCs w:val="14.040000"/></w:rPr><w:t xml:space="preserve">Anthem Blue Cross </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="18.720000"/><w:szCs w:val="14.040000"/></w:rPr><w:t xml:space="preserve">164,380 </w:t></w:r>
+</w:p> </w:tc>
+ </w:tr>
+ <w:tr>
+ <w:trPr/>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="18.720000"/><w:szCs w:val="14.040000"/></w:rPr><w:t xml:space="preserve">Health Net </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="18.720000"/><w:szCs w:val="14.040000"/></w:rPr><w:t xml:space="preserve">126,547 </w:t></w:r>
+</w:p> </w:tc>
+ </w:tr>
+ <w:tr>
+ <w:trPr/>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="18.720000"/><w:szCs w:val="14.040000"/></w:rPr><w:t xml:space="preserve">Kaiser Foundation </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="18.720000"/><w:szCs w:val="14.040000"/></w:rPr><w:t xml:space="preserve">74,620 </w:t></w:r>
+</w:p> </w:tc>
+ </w:tr>
+ <w:tr>
+ <w:trPr/>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="18.720000"/><w:szCs w:val="14.040000"/></w:rPr><w:t xml:space="preserve">Molina Healthcare </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="18.720000"/><w:szCs w:val="14.040000"/></w:rPr><w:t xml:space="preserve">59,989 </w:t></w:r>
+</w:p> </w:tc>
+ </w:tr>
+ <w:tr>
+ <w:trPr/>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="restart"/>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="18.720000"/><w:szCs w:val="14.040000"/></w:rPr><w:t xml:space="preserve">San Diego </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="18.720000"/><w:szCs w:val="14.040000"/></w:rPr><w:t xml:space="preserve">Care 1st Health Plan </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="18.720000"/><w:szCs w:val="14.040000"/></w:rPr><w:t xml:space="preserve">71,831 </w:t></w:r>
+</w:p> </w:tc>
+ </w:tr>
+ <w:tr>
+ <w:trPr/>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="18.720000"/><w:szCs w:val="14.040000"/></w:rPr><w:t xml:space="preserve">Community Health Group </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="18.720000"/><w:szCs w:val="14.040000"/></w:rPr><w:t xml:space="preserve">264,639 </w:t></w:r>
+</w:p> </w:tc>
+ </w:tr>
+ <w:tr>
+ <w:trPr/>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="18.720000"/><w:szCs w:val="14.040000"/></w:rPr><w:t xml:space="preserve">Health Net </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="18.720000"/><w:szCs w:val="14.040000"/></w:rPr><w:t xml:space="preserve">72,404 </w:t></w:r>
+</w:p> </w:tc>
+ </w:tr>
+ <w:tr>
+ <w:trPr/>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="18.720000"/><w:szCs w:val="14.040000"/></w:rPr><w:t xml:space="preserve">Kaiser </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="18.720000"/><w:szCs w:val="14.040000"/></w:rPr><w:t xml:space="preserve">50,415 </w:t></w:r>
+</w:p> </w:tc>
+ </w:tr>
+ <w:tr>
+ <w:trPr/>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="18.720000"/><w:szCs w:val="14.040000"/></w:rPr><w:t xml:space="preserve">Molina Healthcare </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="18.720000"/><w:szCs w:val="14.040000"/></w:rPr><w:t xml:space="preserve">206,430 </w:t></w:r>
+</w:p> </w:tc>
+ </w:tr>
+ <w:tr>
+ <w:trPr/>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:gridSpan w:val="2"/>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Arial-BoldMT" w:hAnsi="Arial-BoldMT"/><w:b/><w:sz w:val="18.720000"/><w:szCs w:val="14.040000"/></w:rPr><w:t xml:space="preserve">Total GMC Enrollment </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Arial-BoldMT" w:hAnsi="Arial-BoldMT"/><w:b/><w:sz w:val="18.720000"/><w:szCs w:val="14.040000"/></w:rPr><w:t xml:space="preserve">1,091,255 </w:t></w:r>
+</w:p> </w:tc>
+ </w:tr>
+ <w:tr>
+ <w:trPr/>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="restart"/>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Arial-BoldMT" w:hAnsi="Arial-BoldMT"/><w:b/><w:sz w:val="18.720000"/><w:szCs w:val="14.040000"/></w:rPr><w:t xml:space="preserve">COHS </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="18.720000"/><w:szCs w:val="14.040000"/></w:rPr><w:t xml:space="preserve">Marin </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="restart"/>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="18.720000"/><w:szCs w:val="14.040000"/></w:rPr><w:t xml:space="preserve">Partnership Health Plan of CA </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="18.720000"/><w:szCs w:val="14.040000"/></w:rPr><w:t xml:space="preserve">36,006 </w:t></w:r>
+</w:p> </w:tc>
+ </w:tr>
+ <w:tr>
+ <w:trPr/>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="18.720000"/><w:szCs w:val="14.040000"/></w:rPr><w:t xml:space="preserve">Mendocino</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="18.720000"/><w:szCs w:val="14.040000"/></w:rPr><w:t xml:space="preserve"> 37,243 </w:t></w:r>
+</w:p> </w:tc>
+ </w:tr>
+ <w:tr>
+ <w:trPr/>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="18.720000"/><w:szCs w:val="14.040000"/></w:rPr><w:t xml:space="preserve">Napa </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="18.720000"/><w:szCs w:val="14.040000"/></w:rPr><w:t xml:space="preserve">28,398 </w:t></w:r>
+</w:p> </w:tc>
+ </w:tr>
+ <w:tr>
+ <w:trPr/>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="18.720000"/><w:szCs w:val="14.040000"/></w:rPr><w:t xml:space="preserve">Solano </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="18.720000"/><w:szCs w:val="14.040000"/></w:rPr><w:t xml:space="preserve">113,220 </w:t></w:r>
+</w:p> </w:tc>
+ </w:tr>
+ <w:tr>
+ <w:trPr/>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="18.720000"/><w:szCs w:val="14.040000"/></w:rPr><w:t xml:space="preserve">Sonoma </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="18.720000"/><w:szCs w:val="14.040000"/></w:rPr><w:t xml:space="preserve">112,271 </w:t></w:r>
+</w:p> </w:tc>
+ </w:tr>
+ <w:tr>
+ <w:trPr/>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="18.720000"/><w:szCs w:val="14.040000"/></w:rPr><w:t xml:space="preserve">Yolo </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="18.720000"/><w:szCs w:val="14.040000"/></w:rPr><w:t xml:space="preserve">52,674 </w:t></w:r>
+</w:p> </w:tc>
+ </w:tr>
+ <w:tr>
+ <w:trPr/>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="18.720000"/><w:szCs w:val="14.040000"/></w:rPr><w:t xml:space="preserve">Del Norte </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="18.720000"/><w:szCs w:val="14.040000"/></w:rPr><w:t xml:space="preserve">11,242 </w:t></w:r>
+</w:p> </w:tc>
+ </w:tr>
+ <w:tr>
+ <w:trPr/>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="18.720000"/><w:szCs w:val="14.040000"/></w:rPr><w:t xml:space="preserve">Humboldt </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="18.720000"/><w:szCs w:val="14.040000"/></w:rPr><w:t xml:space="preserve">49,911 </w:t></w:r>
+</w:p> </w:tc>
+ </w:tr>
+ <w:tr>
+ <w:trPr/>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="18.720000"/><w:szCs w:val="14.040000"/></w:rPr><w:t xml:space="preserve">Lake </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="18.720000"/><w:szCs w:val="14.040000"/></w:rPr><w:t xml:space="preserve">29,149 </w:t></w:r>
+</w:p> </w:tc>
+ </w:tr>
+ <w:tr>
+ <w:trPr/>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="18.720000"/><w:szCs w:val="14.040000"/></w:rPr><w:t xml:space="preserve">Lassen </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="18.720000"/><w:szCs w:val="14.040000"/></w:rPr><w:t xml:space="preserve">7,360 </w:t></w:r>
+</w:p> </w:tc>
+ </w:tr>
+ <w:tr>
+ <w:trPr/>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="18.720000"/><w:szCs w:val="14.040000"/></w:rPr><w:t xml:space="preserve">Modoc </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="18.720000"/><w:szCs w:val="14.040000"/></w:rPr><w:t xml:space="preserve">2,940 </w:t></w:r>
+</w:p> </w:tc>
+ </w:tr>
+ <w:tr>
+ <w:trPr/>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="18.720000"/><w:szCs w:val="14.040000"/></w:rPr><w:t xml:space="preserve">Shasta </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="18.720000"/><w:szCs w:val="14.040000"/></w:rPr><w:t xml:space="preserve">61,763 </w:t></w:r>
+</w:p> </w:tc>
+ </w:tr>
+ <w:tr>
+ <w:trPr/>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="18.720000"/><w:szCs w:val="14.040000"/></w:rPr><w:t xml:space="preserve">Siskiyou </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="18.720000"/><w:szCs w:val="14.040000"/></w:rPr><w:t xml:space="preserve">16,715 </w:t></w:r>
+</w:p> </w:tc>
+ </w:tr>
+ <w:tr>
+ <w:trPr/>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="18.720000"/><w:szCs w:val="14.040000"/></w:rPr><w:t xml:space="preserve">Trinity </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="18.720000"/><w:szCs w:val="14.040000"/></w:rPr><w:t xml:space="preserve">4,542 </w:t></w:r>
+</w:p> </w:tc>
+ </w:tr>
+ <w:tr>
+ <w:trPr/>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="18.720000"/><w:szCs w:val="14.040000"/></w:rPr><w:t xml:space="preserve">Merced</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="restart"/>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="18.720000"/><w:szCs w:val="14.040000"/></w:rPr><w:t xml:space="preserve">Central California Alliance for Health</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="18.720000"/><w:szCs w:val="14.040000"/></w:rPr><w:t xml:space="preserve"> 123,907 </w:t></w:r>
+</w:p> </w:tc>
+ </w:tr>
+ <w:tr>
+ <w:trPr/>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="18.720000"/><w:szCs w:val="14.040000"/></w:rPr><w:t xml:space="preserve">Monterey </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="18.720000"/><w:szCs w:val="14.040000"/></w:rPr><w:t xml:space="preserve"> 147,397 </w:t></w:r>
+</w:p> </w:tc>
+ </w:tr>
+ <w:tr>
+ <w:trPr/>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="18.720000"/><w:szCs w:val="14.040000"/></w:rPr><w:t xml:space="preserve">Santa Cruz</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="18.720000"/><w:szCs w:val="14.040000"/></w:rPr><w:t xml:space="preserve"> 69,458 </w:t></w:r>
+</w:p> </w:tc>
+ </w:tr>
+ <w:tr>
+ <w:trPr/>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="18.720000"/><w:szCs w:val="14.040000"/></w:rPr><w:t xml:space="preserve">Santa Barbara </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="restart"/>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="18.720000"/><w:szCs w:val="14.040000"/></w:rPr><w:t xml:space="preserve">CenCal </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="18.720000"/><w:szCs w:val="14.040000"/></w:rPr><w:t xml:space="preserve">117,609 </w:t></w:r>
+</w:p> </w:tc>
+ </w:tr>
+ <w:tr>
+ <w:trPr/>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="18.720000"/><w:szCs w:val="14.040000"/></w:rPr><w:t xml:space="preserve">San Luis Obispo </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="18.720000"/><w:szCs w:val="14.040000"/></w:rPr><w:t xml:space="preserve">55,761 </w:t></w:r>
+</w:p> </w:tc>
+ </w:tr>
+ <w:tr>
+ <w:trPr/>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="18.720000"/><w:szCs w:val="14.040000"/></w:rPr><w:t xml:space="preserve">Orange </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="18.720000"/><w:szCs w:val="14.040000"/></w:rPr><w:t xml:space="preserve">CalOptima </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="18.720000"/><w:szCs w:val="14.040000"/></w:rPr><w:t xml:space="preserve">783,079 </w:t></w:r>
+</w:p> </w:tc>
+ </w:tr>
+ <w:tr>
+ <w:trPr/>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="18.720000"/><w:szCs w:val="14.040000"/></w:rPr><w:t xml:space="preserve">San Mateo </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="18.720000"/><w:szCs w:val="14.040000"/></w:rPr><w:t xml:space="preserve">Health Plan of San Mateo </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="18.720000"/><w:szCs w:val="14.040000"/></w:rPr><w:t xml:space="preserve">113,202 </w:t></w:r>
+</w:p> </w:tc>
+ </w:tr>
+ <w:tr>
+ <w:trPr/>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="18.720000"/><w:szCs w:val="14.040000"/></w:rPr><w:t xml:space="preserve">Ventura </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="18.720000"/><w:szCs w:val="14.040000"/></w:rPr><w:t xml:space="preserve">Gold Coast Health Plan </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="18.720000"/><w:szCs w:val="14.040000"/></w:rPr><w:t xml:space="preserve">202,217 </w:t></w:r>
+</w:p> </w:tc>
+ </w:tr>
+ <w:tr>
+ <w:trPr/>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:gridSpan w:val="2"/>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Arial-BoldMT" w:hAnsi="Arial-BoldMT"/><w:b/><w:sz w:val="18.720000"/><w:szCs w:val="14.040000"/></w:rPr><w:t xml:space="preserve">Total COHS Enrollment </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Arial-BoldMT" w:hAnsi="Arial-BoldMT"/><w:b/><w:sz w:val="18.720000"/><w:szCs w:val="14.040000"/></w:rPr><w:t xml:space="preserve">2,176,064 </w:t></w:r>
+</w:p> </w:tc>
+ </w:tr>
+ <w:tr>
+ <w:trPr/>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:gridSpan w:val="3"/>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Arial-BoldMT" w:hAnsi="Arial-BoldMT"/><w:b/><w:sz w:val="18.720000"/><w:szCs w:val="14.040000"/></w:rPr><w:t xml:space="preserve">Subtotal for Two-Plan, Regional Model, GMC and COHS </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Arial-BoldMT" w:hAnsi="Arial-BoldMT"/><w:b/><w:sz w:val="18.720000"/><w:szCs w:val="14.040000"/></w:rPr><w:t xml:space="preserve">10,132,022 </w:t></w:r>
+</w:p> </w:tc>
+ </w:tr>
+ <w:tr>
+ <w:trPr/>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="restart"/>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Arial-BoldMT" w:hAnsi="Arial-BoldMT"/><w:b/><w:sz w:val="18.720000"/><w:szCs w:val="14.040000"/></w:rPr><w:t xml:space="preserve">PCCM </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="18.720000"/><w:szCs w:val="14.040000"/></w:rPr><w:t xml:space="preserve">Los Angeles </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="18.720000"/><w:szCs w:val="14.040000"/></w:rPr><w:t xml:space="preserve">AIDS Healthcare Foundation </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="18.720000"/><w:szCs w:val="14.040000"/></w:rPr><w:t xml:space="preserve">828 </w:t></w:r>
+</w:p> </w:tc>
+ </w:tr>
+ <w:tr>
+ <w:trPr/>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="18.720000"/><w:szCs w:val="14.040000"/></w:rPr><w:t xml:space="preserve">San Francisco </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="18.720000"/><w:szCs w:val="14.040000"/></w:rPr><w:t xml:space="preserve">Family Mosaic </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="18.720000"/><w:szCs w:val="14.040000"/></w:rPr><w:t xml:space="preserve">25 </w:t></w:r>
+</w:p> </w:tc>
+ </w:tr>
+ <w:tr>
+ <w:trPr/>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:gridSpan w:val="2"/>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Arial-BoldMT" w:hAnsi="Arial-BoldMT"/><w:b/><w:sz w:val="18.720000"/><w:szCs w:val="14.040000"/></w:rPr><w:t xml:space="preserve">Total PHP Enrollment </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Arial-BoldMT" w:hAnsi="Arial-BoldMT"/><w:b/><w:sz w:val="18.720000"/><w:szCs w:val="14.040000"/></w:rPr><w:t xml:space="preserve">853 </w:t></w:r>
+</w:p> </w:tc>
+ </w:tr>
+ <w:tr>
+ <w:trPr/>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:gridSpan w:val="3"/>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Arial-BoldMT" w:hAnsi="Arial-BoldMT"/><w:b/><w:sz w:val="18.720000"/><w:szCs w:val="14.040000"/></w:rPr><w:t xml:space="preserve">All Models Total Enrollments </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Arial-BoldMT" w:hAnsi="Arial-BoldMT"/><w:b/><w:sz w:val="18.720000"/><w:szCs w:val="14.040000"/></w:rPr><w:t xml:space="preserve">10,132,875 </w:t></w:r>
+</w:p> </w:tc>
+ </w:tr>
+ <w:tr>
+ <w:trPr/>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:gridSpan w:val="4"/>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="18.720000"/><w:szCs w:val="14.040000"/></w:rPr><w:t xml:space="preserve">Source: Data Warehouse 12/14/15 </w:t></w:r>
+</w:p> </w:tc>
+ </w:tr>
+ </w:tbl>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Calibri" w:hAnsi="Calibri"/><w:sz w:val="17.280000"/><w:szCs w:val="12.960000"/></w:rPr><w:t xml:space="preserve">.</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="Times-Roman" w:hAnsi="Times-Roman"/><w:sz w:val="17.280000"/><w:szCs w:val="12.960000"/></w:rPr><w:t xml:space="preserve"> </w:t></w:r>
+</w:p></w:body></w:document> \ No newline at end of file
diff --git a/extract/test/row_span.pdf.mutool.docx.dir.ref/word/fontTable.xml b/extract/test/row_span.pdf.mutool.docx.dir.ref/word/fontTable.xml
new file mode 100644
index 00000000..a39546e5
--- /dev/null
+++ b/extract/test/row_span.pdf.mutool.docx.dir.ref/word/fontTable.xml
@@ -0,0 +1,2 @@
+<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
+<w:fonts xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships" xmlns:w="http://schemas.openxmlformats.org/wordprocessingml/2006/main" xmlns:w14="http://schemas.microsoft.com/office/word/2010/wordml" xmlns:w15="http://schemas.microsoft.com/office/word/2012/wordml" xmlns:w16cex="http://schemas.microsoft.com/office/word/2018/wordml/cex" xmlns:w16cid="http://schemas.microsoft.com/office/word/2016/wordml/cid" xmlns:w16="http://schemas.microsoft.com/office/word/2018/wordml" xmlns:w16se="http://schemas.microsoft.com/office/word/2015/wordml/symex" mc:Ignorable="w14 w15 w16se w16cid w16 w16cex"><w:font w:name="Calibri"><w:panose1 w:val="020F0502020204030204"/><w:charset w:val="00"/><w:family w:val="swiss"/><w:pitch w:val="variable"/><w:sig w:usb0="E4002EFF" w:usb1="C000247B" w:usb2="00000009" w:usb3="00000000" w:csb0="000001FF" w:csb1="00000000"/></w:font><w:font w:name="Times New Roman"><w:panose1 w:val="02020603050405020304"/><w:charset w:val="00"/><w:family w:val="roman"/><w:pitch w:val="variable"/><w:sig w:usb0="E0002EFF" w:usb1="C000785B" w:usb2="00000009" w:usb3="00000000" w:csb0="000001FF" w:csb1="00000000"/></w:font><w:font w:name="Calibri Light"><w:panose1 w:val="020F0302020204030204"/><w:charset w:val="00"/><w:family w:val="swiss"/><w:pitch w:val="variable"/><w:sig w:usb0="E4002EFF" w:usb1="C000247B" w:usb2="00000009" w:usb3="00000000" w:csb0="000001FF" w:csb1="00000000"/></w:font></w:fonts> \ No newline at end of file
diff --git a/extract/test/row_span.pdf.mutool.docx.dir.ref/word/settings.xml b/extract/test/row_span.pdf.mutool.docx.dir.ref/word/settings.xml
new file mode 100644
index 00000000..c403540d
--- /dev/null
+++ b/extract/test/row_span.pdf.mutool.docx.dir.ref/word/settings.xml
@@ -0,0 +1,2 @@
+<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
+<w:settings xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships" xmlns:m="http://schemas.openxmlformats.org/officeDocument/2006/math" xmlns:v="urn:schemas-microsoft-com:vml" xmlns:w10="urn:schemas-microsoft-com:office:word" xmlns:w="http://schemas.openxmlformats.org/wordprocessingml/2006/main" xmlns:w14="http://schemas.microsoft.com/office/word/2010/wordml" xmlns:w15="http://schemas.microsoft.com/office/word/2012/wordml" xmlns:w16cex="http://schemas.microsoft.com/office/word/2018/wordml/cex" xmlns:w16cid="http://schemas.microsoft.com/office/word/2016/wordml/cid" xmlns:w16="http://schemas.microsoft.com/office/word/2018/wordml" xmlns:w16se="http://schemas.microsoft.com/office/word/2015/wordml/symex" xmlns:sl="http://schemas.openxmlformats.org/schemaLibrary/2006/main" mc:Ignorable="w14 w15 w16se w16cid w16 w16cex"><w:zoom w:percent="100"/><w:proofState w:spelling="clean" w:grammar="clean"/><w:defaultTabStop w:val="720"/><w:characterSpacingControl w:val="doNotCompress"/><w:compat><w:compatSetting w:name="compatibilityMode" w:uri="http://schemas.microsoft.com/office/word" w:val="15"/><w:compatSetting w:name="overrideTableStyleFontSizeAndJustification" w:uri="http://schemas.microsoft.com/office/word" w:val="1"/><w:compatSetting w:name="enableOpenTypeFeatures" w:uri="http://schemas.microsoft.com/office/word" w:val="1"/><w:compatSetting w:name="doNotFlipMirrorIndents" w:uri="http://schemas.microsoft.com/office/word" w:val="1"/><w:compatSetting w:name="differentiateMultirowTableHeaders" w:uri="http://schemas.microsoft.com/office/word" w:val="1"/><w:compatSetting w:name="useWord2013TrackBottomHyphenation" w:uri="http://schemas.microsoft.com/office/word" w:val="0"/></w:compat><w:rsids><w:rsidRoot w:val="007F4427"/><w:rsid w:val="00255448"/><w:rsid w:val="007F4427"/></w:rsids><m:mathPr><m:mathFont m:val="Cambria Math"/><m:brkBin m:val="before"/><m:brkBinSub m:val="--"/><m:smallFrac m:val="0"/><m:dispDef/><m:lMargin m:val="0"/><m:rMargin m:val="0"/><m:defJc m:val="centerGroup"/><m:wrapIndent m:val="1440"/><m:intLim m:val="subSup"/><m:naryLim m:val="undOvr"/></m:mathPr><w:themeFontLang w:val="en-GB"/><w:clrSchemeMapping w:bg1="light1" w:t1="dark1" w:bg2="light2" w:t2="dark2" w:accent1="accent1" w:accent2="accent2" w:accent3="accent3" w:accent4="accent4" w:accent5="accent5" w:accent6="accent6" w:hyperlink="hyperlink" w:followedHyperlink="followedHyperlink"/><w:shapeDefaults><o:shapedefaults v:ext="edit" spidmax="1026"/><o:shapelayout v:ext="edit"><o:idmap v:ext="edit" data="1"/></o:shapelayout></w:shapeDefaults><w:decimalSymbol w:val="."/><w:listSeparator w:val=","/><w14:docId w14:val="32E52EF8"/><w15:chartTrackingRefBased/><w15:docId w15:val="{A10F59F7-497D-44D4-A338-47719734E7A0}"/></w:settings> \ No newline at end of file
diff --git a/extract/test/row_span.pdf.mutool.docx.dir.ref/word/styles.xml b/extract/test/row_span.pdf.mutool.docx.dir.ref/word/styles.xml
new file mode 100644
index 00000000..38e5e2bd
--- /dev/null
+++ b/extract/test/row_span.pdf.mutool.docx.dir.ref/word/styles.xml
@@ -0,0 +1,2 @@
+<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
+<w:styles xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships" xmlns:w="http://schemas.openxmlformats.org/wordprocessingml/2006/main" xmlns:w14="http://schemas.microsoft.com/office/word/2010/wordml" xmlns:w15="http://schemas.microsoft.com/office/word/2012/wordml" xmlns:w16cex="http://schemas.microsoft.com/office/word/2018/wordml/cex" xmlns:w16cid="http://schemas.microsoft.com/office/word/2016/wordml/cid" xmlns:w16="http://schemas.microsoft.com/office/word/2018/wordml" xmlns:w16se="http://schemas.microsoft.com/office/word/2015/wordml/symex" mc:Ignorable="w14 w15 w16se w16cid w16 w16cex"><w:docDefaults><w:rPrDefault><w:rPr><w:rFonts w:asciiTheme="minorHAnsi" w:eastAsiaTheme="minorHAnsi" w:hAnsiTheme="minorHAnsi" w:cstheme="minorBidi"/><w:sz w:val="22"/><w:szCs w:val="22"/><w:lang w:val="en-GB" w:eastAsia="en-US" w:bidi="ar-SA"/></w:rPr></w:rPrDefault><w:pPrDefault><w:pPr><w:spacing w:after="160" w:line="259" w:lineRule="auto"/></w:pPr></w:pPrDefault></w:docDefaults><w:latentStyles w:defLockedState="0" w:defUIPriority="99" w:defSemiHidden="0" w:defUnhideWhenUsed="0" w:defQFormat="0" w:count="376"><w:lsdException w:name="Normal" w:uiPriority="0" w:qFormat="1"/><w:lsdException w:name="heading 1" w:uiPriority="9" w:qFormat="1"/><w:lsdException w:name="heading 2" w:semiHidden="1" w:uiPriority="9" w:unhideWhenUsed="1" w:qFormat="1"/><w:lsdException w:name="heading 3" w:semiHidden="1" w:uiPriority="9" w:unhideWhenUsed="1" w:qFormat="1"/><w:lsdException w:name="heading 4" w:semiHidden="1" w:uiPriority="9" w:unhideWhenUsed="1" w:qFormat="1"/><w:lsdException w:name="heading 5" w:semiHidden="1" w:uiPriority="9" w:unhideWhenUsed="1" w:qFormat="1"/><w:lsdException w:name="heading 6" w:semiHidden="1" w:uiPriority="9" w:unhideWhenUsed="1" w:qFormat="1"/><w:lsdException w:name="heading 7" w:semiHidden="1" w:uiPriority="9" w:unhideWhenUsed="1" w:qFormat="1"/><w:lsdException w:name="heading 8" w:semiHidden="1" w:uiPriority="9" w:unhideWhenUsed="1" w:qFormat="1"/><w:lsdException w:name="heading 9" w:semiHidden="1" w:uiPriority="9" w:unhideWhenUsed="1" w:qFormat="1"/><w:lsdException w:name="index 1" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="index 2" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="index 3" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="index 4" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="index 5" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="index 6" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="index 7" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="index 8" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="index 9" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="toc 1" w:semiHidden="1" w:uiPriority="39" w:unhideWhenUsed="1"/><w:lsdException w:name="toc 2" w:semiHidden="1" w:uiPriority="39" w:unhideWhenUsed="1"/><w:lsdException w:name="toc 3" w:semiHidden="1" w:uiPriority="39" w:unhideWhenUsed="1"/><w:lsdException w:name="toc 4" w:semiHidden="1" w:uiPriority="39" w:unhideWhenUsed="1"/><w:lsdException w:name="toc 5" w:semiHidden="1" w:uiPriority="39" w:unhideWhenUsed="1"/><w:lsdException w:name="toc 6" w:semiHidden="1" w:uiPriority="39" w:unhideWhenUsed="1"/><w:lsdException w:name="toc 7" w:semiHidden="1" w:uiPriority="39" w:unhideWhenUsed="1"/><w:lsdException w:name="toc 8" w:semiHidden="1" w:uiPriority="39" w:unhideWhenUsed="1"/><w:lsdException w:name="toc 9" w:semiHidden="1" w:uiPriority="39" w:unhideWhenUsed="1"/><w:lsdException w:name="Normal Indent" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="footnote text" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="annotation text" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="header" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="footer" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="index heading" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="caption" w:semiHidden="1" w:uiPriority="35" w:unhideWhenUsed="1" w:qFormat="1"/><w:lsdException w:name="table of figures" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="envelope address" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="envelope return" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="footnote reference" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="annotation reference" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="line number" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="page number" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="endnote reference" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="endnote text" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="table of authorities" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="macro" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="toa heading" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="List" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="List Bullet" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="List Number" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="List 2" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="List 3" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="List 4" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="List 5" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="List Bullet 2" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="List Bullet 3" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="List Bullet 4" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="List Bullet 5" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="List Number 2" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="List Number 3" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="List Number 4" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="List Number 5" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Title" w:uiPriority="10" w:qFormat="1"/><w:lsdException w:name="Closing" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Signature" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Default Paragraph Font" w:semiHidden="1" w:uiPriority="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Body Text" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Body Text Indent" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="List Continue" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="List Continue 2" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="List Continue 3" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="List Continue 4" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="List Continue 5" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Message Header" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Subtitle" w:uiPriority="11" w:qFormat="1"/><w:lsdException w:name="Salutation" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Date" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Body Text First Indent" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Body Text First Indent 2" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Note Heading" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Body Text 2" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Body Text 3" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Body Text Indent 2" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Body Text Indent 3" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Block Text" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Hyperlink" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="FollowedHyperlink" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Strong" w:uiPriority="22" w:qFormat="1"/><w:lsdException w:name="Emphasis" w:uiPriority="20" w:qFormat="1"/><w:lsdException w:name="Document Map" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Plain Text" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="E-mail Signature" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="HTML Top of Form" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="HTML Bottom of Form" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Normal (Web)" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="HTML Acronym" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="HTML Address" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="HTML Cite" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="HTML Code" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="HTML Definition" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="HTML Keyboard" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="HTML Preformatted" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="HTML Sample" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="HTML Typewriter" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="HTML Variable" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Normal Table" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="annotation subject" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="No List" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Outline List 1" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Outline List 2" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Outline List 3" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Simple 1" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Simple 2" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Simple 3" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Classic 1" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Classic 2" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Classic 3" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Classic 4" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Colorful 1" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Colorful 2" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Colorful 3" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Columns 1" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Columns 2" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Columns 3" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Columns 4" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Columns 5" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Grid 1" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Grid 2" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Grid 3" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Grid 4" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Grid 5" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Grid 6" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Grid 7" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Grid 8" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table List 1" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table List 2" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table List 3" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table List 4" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table List 5" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table List 6" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table List 7" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table List 8" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table 3D effects 1" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table 3D effects 2" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table 3D effects 3" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Contemporary" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Elegant" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Professional" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Subtle 1" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Subtle 2" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Web 1" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Web 2" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Web 3" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Balloon Text" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Grid" w:uiPriority="39"/><w:lsdException w:name="Table Theme" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Placeholder Text" w:semiHidden="1"/><w:lsdException w:name="No Spacing" w:uiPriority="1" w:qFormat="1"/><w:lsdException w:name="Light Shading" w:uiPriority="60"/><w:lsdException w:name="Light List" w:uiPriority="61"/><w:lsdException w:name="Light Grid" w:uiPriority="62"/><w:lsdException w:name="Medium Shading 1" w:uiPriority="63"/><w:lsdException w:name="Medium Shading 2" w:uiPriority="64"/><w:lsdException w:name="Medium List 1" w:uiPriority="65"/><w:lsdException w:name="Medium List 2" w:uiPriority="66"/><w:lsdException w:name="Medium Grid 1" w:uiPriority="67"/><w:lsdException w:name="Medium Grid 2" w:uiPriority="68"/><w:lsdException w:name="Medium Grid 3" w:uiPriority="69"/><w:lsdException w:name="Dark List" w:uiPriority="70"/><w:lsdException w:name="Colorful Shading" w:uiPriority="71"/><w:lsdException w:name="Colorful List" w:uiPriority="72"/><w:lsdException w:name="Colorful Grid" w:uiPriority="73"/><w:lsdException w:name="Light Shading Accent 1" w:uiPriority="60"/><w:lsdException w:name="Light List Accent 1" w:uiPriority="61"/><w:lsdException w:name="Light Grid Accent 1" w:uiPriority="62"/><w:lsdException w:name="Medium Shading 1 Accent 1" w:uiPriority="63"/><w:lsdException w:name="Medium Shading 2 Accent 1" w:uiPriority="64"/><w:lsdException w:name="Medium List 1 Accent 1" w:uiPriority="65"/><w:lsdException w:name="Revision" w:semiHidden="1"/><w:lsdException w:name="List Paragraph" w:uiPriority="34" w:qFormat="1"/><w:lsdException w:name="Quote" w:uiPriority="29" w:qFormat="1"/><w:lsdException w:name="Intense Quote" w:uiPriority="30" w:qFormat="1"/><w:lsdException w:name="Medium List 2 Accent 1" w:uiPriority="66"/><w:lsdException w:name="Medium Grid 1 Accent 1" w:uiPriority="67"/><w:lsdException w:name="Medium Grid 2 Accent 1" w:uiPriority="68"/><w:lsdException w:name="Medium Grid 3 Accent 1" w:uiPriority="69"/><w:lsdException w:name="Dark List Accent 1" w:uiPriority="70"/><w:lsdException w:name="Colorful Shading Accent 1" w:uiPriority="71"/><w:lsdException w:name="Colorful List Accent 1" w:uiPriority="72"/><w:lsdException w:name="Colorful Grid Accent 1" w:uiPriority="73"/><w:lsdException w:name="Light Shading Accent 2" w:uiPriority="60"/><w:lsdException w:name="Light List Accent 2" w:uiPriority="61"/><w:lsdException w:name="Light Grid Accent 2" w:uiPriority="62"/><w:lsdException w:name="Medium Shading 1 Accent 2" w:uiPriority="63"/><w:lsdException w:name="Medium Shading 2 Accent 2" w:uiPriority="64"/><w:lsdException w:name="Medium List 1 Accent 2" w:uiPriority="65"/><w:lsdException w:name="Medium List 2 Accent 2" w:uiPriority="66"/><w:lsdException w:name="Medium Grid 1 Accent 2" w:uiPriority="67"/><w:lsdException w:name="Medium Grid 2 Accent 2" w:uiPriority="68"/><w:lsdException w:name="Medium Grid 3 Accent 2" w:uiPriority="69"/><w:lsdException w:name="Dark List Accent 2" w:uiPriority="70"/><w:lsdException w:name="Colorful Shading Accent 2" w:uiPriority="71"/><w:lsdException w:name="Colorful List Accent 2" w:uiPriority="72"/><w:lsdException w:name="Colorful Grid Accent 2" w:uiPriority="73"/><w:lsdException w:name="Light Shading Accent 3" w:uiPriority="60"/><w:lsdException w:name="Light List Accent 3" w:uiPriority="61"/><w:lsdException w:name="Light Grid Accent 3" w:uiPriority="62"/><w:lsdException w:name="Medium Shading 1 Accent 3" w:uiPriority="63"/><w:lsdException w:name="Medium Shading 2 Accent 3" w:uiPriority="64"/><w:lsdException w:name="Medium List 1 Accent 3" w:uiPriority="65"/><w:lsdException w:name="Medium List 2 Accent 3" w:uiPriority="66"/><w:lsdException w:name="Medium Grid 1 Accent 3" w:uiPriority="67"/><w:lsdException w:name="Medium Grid 2 Accent 3" w:uiPriority="68"/><w:lsdException w:name="Medium Grid 3 Accent 3" w:uiPriority="69"/><w:lsdException w:name="Dark List Accent 3" w:uiPriority="70"/><w:lsdException w:name="Colorful Shading Accent 3" w:uiPriority="71"/><w:lsdException w:name="Colorful List Accent 3" w:uiPriority="72"/><w:lsdException w:name="Colorful Grid Accent 3" w:uiPriority="73"/><w:lsdException w:name="Light Shading Accent 4" w:uiPriority="60"/><w:lsdException w:name="Light List Accent 4" w:uiPriority="61"/><w:lsdException w:name="Light Grid Accent 4" w:uiPriority="62"/><w:lsdException w:name="Medium Shading 1 Accent 4" w:uiPriority="63"/><w:lsdException w:name="Medium Shading 2 Accent 4" w:uiPriority="64"/><w:lsdException w:name="Medium List 1 Accent 4" w:uiPriority="65"/><w:lsdException w:name="Medium List 2 Accent 4" w:uiPriority="66"/><w:lsdException w:name="Medium Grid 1 Accent 4" w:uiPriority="67"/><w:lsdException w:name="Medium Grid 2 Accent 4" w:uiPriority="68"/><w:lsdException w:name="Medium Grid 3 Accent 4" w:uiPriority="69"/><w:lsdException w:name="Dark List Accent 4" w:uiPriority="70"/><w:lsdException w:name="Colorful Shading Accent 4" w:uiPriority="71"/><w:lsdException w:name="Colorful List Accent 4" w:uiPriority="72"/><w:lsdException w:name="Colorful Grid Accent 4" w:uiPriority="73"/><w:lsdException w:name="Light Shading Accent 5" w:uiPriority="60"/><w:lsdException w:name="Light List Accent 5" w:uiPriority="61"/><w:lsdException w:name="Light Grid Accent 5" w:uiPriority="62"/><w:lsdException w:name="Medium Shading 1 Accent 5" w:uiPriority="63"/><w:lsdException w:name="Medium Shading 2 Accent 5" w:uiPriority="64"/><w:lsdException w:name="Medium List 1 Accent 5" w:uiPriority="65"/><w:lsdException w:name="Medium List 2 Accent 5" w:uiPriority="66"/><w:lsdException w:name="Medium Grid 1 Accent 5" w:uiPriority="67"/><w:lsdException w:name="Medium Grid 2 Accent 5" w:uiPriority="68"/><w:lsdException w:name="Medium Grid 3 Accent 5" w:uiPriority="69"/><w:lsdException w:name="Dark List Accent 5" w:uiPriority="70"/><w:lsdException w:name="Colorful Shading Accent 5" w:uiPriority="71"/><w:lsdException w:name="Colorful List Accent 5" w:uiPriority="72"/><w:lsdException w:name="Colorful Grid Accent 5" w:uiPriority="73"/><w:lsdException w:name="Light Shading Accent 6" w:uiPriority="60"/><w:lsdException w:name="Light List Accent 6" w:uiPriority="61"/><w:lsdException w:name="Light Grid Accent 6" w:uiPriority="62"/><w:lsdException w:name="Medium Shading 1 Accent 6" w:uiPriority="63"/><w:lsdException w:name="Medium Shading 2 Accent 6" w:uiPriority="64"/><w:lsdException w:name="Medium List 1 Accent 6" w:uiPriority="65"/><w:lsdException w:name="Medium List 2 Accent 6" w:uiPriority="66"/><w:lsdException w:name="Medium Grid 1 Accent 6" w:uiPriority="67"/><w:lsdException w:name="Medium Grid 2 Accent 6" w:uiPriority="68"/><w:lsdException w:name="Medium Grid 3 Accent 6" w:uiPriority="69"/><w:lsdException w:name="Dark List Accent 6" w:uiPriority="70"/><w:lsdException w:name="Colorful Shading Accent 6" w:uiPriority="71"/><w:lsdException w:name="Colorful List Accent 6" w:uiPriority="72"/><w:lsdException w:name="Colorful Grid Accent 6" w:uiPriority="73"/><w:lsdException w:name="Subtle Emphasis" w:uiPriority="19" w:qFormat="1"/><w:lsdException w:name="Intense Emphasis" w:uiPriority="21" w:qFormat="1"/><w:lsdException w:name="Subtle Reference" w:uiPriority="31" w:qFormat="1"/><w:lsdException w:name="Intense Reference" w:uiPriority="32" w:qFormat="1"/><w:lsdException w:name="Book Title" w:uiPriority="33" w:qFormat="1"/><w:lsdException w:name="Bibliography" w:semiHidden="1" w:uiPriority="37" w:unhideWhenUsed="1"/><w:lsdException w:name="TOC Heading" w:semiHidden="1" w:uiPriority="39" w:unhideWhenUsed="1" w:qFormat="1"/><w:lsdException w:name="Plain Table 1" w:uiPriority="41"/><w:lsdException w:name="Plain Table 2" w:uiPriority="42"/><w:lsdException w:name="Plain Table 3" w:uiPriority="43"/><w:lsdException w:name="Plain Table 4" w:uiPriority="44"/><w:lsdException w:name="Plain Table 5" w:uiPriority="45"/><w:lsdException w:name="Grid Table Light" w:uiPriority="40"/><w:lsdException w:name="Grid Table 1 Light" w:uiPriority="46"/><w:lsdException w:name="Grid Table 2" w:uiPriority="47"/><w:lsdException w:name="Grid Table 3" w:uiPriority="48"/><w:lsdException w:name="Grid Table 4" w:uiPriority="49"/><w:lsdException w:name="Grid Table 5 Dark" w:uiPriority="50"/><w:lsdException w:name="Grid Table 6 Colorful" w:uiPriority="51"/><w:lsdException w:name="Grid Table 7 Colorful" w:uiPriority="52"/><w:lsdException w:name="Grid Table 1 Light Accent 1" w:uiPriority="46"/><w:lsdException w:name="Grid Table 2 Accent 1" w:uiPriority="47"/><w:lsdException w:name="Grid Table 3 Accent 1" w:uiPriority="48"/><w:lsdException w:name="Grid Table 4 Accent 1" w:uiPriority="49"/><w:lsdException w:name="Grid Table 5 Dark Accent 1" w:uiPriority="50"/><w:lsdException w:name="Grid Table 6 Colorful Accent 1" w:uiPriority="51"/><w:lsdException w:name="Grid Table 7 Colorful Accent 1" w:uiPriority="52"/><w:lsdException w:name="Grid Table 1 Light Accent 2" w:uiPriority="46"/><w:lsdException w:name="Grid Table 2 Accent 2" w:uiPriority="47"/><w:lsdException w:name="Grid Table 3 Accent 2" w:uiPriority="48"/><w:lsdException w:name="Grid Table 4 Accent 2" w:uiPriority="49"/><w:lsdException w:name="Grid Table 5 Dark Accent 2" w:uiPriority="50"/><w:lsdException w:name="Grid Table 6 Colorful Accent 2" w:uiPriority="51"/><w:lsdException w:name="Grid Table 7 Colorful Accent 2" w:uiPriority="52"/><w:lsdException w:name="Grid Table 1 Light Accent 3" w:uiPriority="46"/><w:lsdException w:name="Grid Table 2 Accent 3" w:uiPriority="47"/><w:lsdException w:name="Grid Table 3 Accent 3" w:uiPriority="48"/><w:lsdException w:name="Grid Table 4 Accent 3" w:uiPriority="49"/><w:lsdException w:name="Grid Table 5 Dark Accent 3" w:uiPriority="50"/><w:lsdException w:name="Grid Table 6 Colorful Accent 3" w:uiPriority="51"/><w:lsdException w:name="Grid Table 7 Colorful Accent 3" w:uiPriority="52"/><w:lsdException w:name="Grid Table 1 Light Accent 4" w:uiPriority="46"/><w:lsdException w:name="Grid Table 2 Accent 4" w:uiPriority="47"/><w:lsdException w:name="Grid Table 3 Accent 4" w:uiPriority="48"/><w:lsdException w:name="Grid Table 4 Accent 4" w:uiPriority="49"/><w:lsdException w:name="Grid Table 5 Dark Accent 4" w:uiPriority="50"/><w:lsdException w:name="Grid Table 6 Colorful Accent 4" w:uiPriority="51"/><w:lsdException w:name="Grid Table 7 Colorful Accent 4" w:uiPriority="52"/><w:lsdException w:name="Grid Table 1 Light Accent 5" w:uiPriority="46"/><w:lsdException w:name="Grid Table 2 Accent 5" w:uiPriority="47"/><w:lsdException w:name="Grid Table 3 Accent 5" w:uiPriority="48"/><w:lsdException w:name="Grid Table 4 Accent 5" w:uiPriority="49"/><w:lsdException w:name="Grid Table 5 Dark Accent 5" w:uiPriority="50"/><w:lsdException w:name="Grid Table 6 Colorful Accent 5" w:uiPriority="51"/><w:lsdException w:name="Grid Table 7 Colorful Accent 5" w:uiPriority="52"/><w:lsdException w:name="Grid Table 1 Light Accent 6" w:uiPriority="46"/><w:lsdException w:name="Grid Table 2 Accent 6" w:uiPriority="47"/><w:lsdException w:name="Grid Table 3 Accent 6" w:uiPriority="48"/><w:lsdException w:name="Grid Table 4 Accent 6" w:uiPriority="49"/><w:lsdException w:name="Grid Table 5 Dark Accent 6" w:uiPriority="50"/><w:lsdException w:name="Grid Table 6 Colorful Accent 6" w:uiPriority="51"/><w:lsdException w:name="Grid Table 7 Colorful Accent 6" w:uiPriority="52"/><w:lsdException w:name="List Table 1 Light" w:uiPriority="46"/><w:lsdException w:name="List Table 2" w:uiPriority="47"/><w:lsdException w:name="List Table 3" w:uiPriority="48"/><w:lsdException w:name="List Table 4" w:uiPriority="49"/><w:lsdException w:name="List Table 5 Dark" w:uiPriority="50"/><w:lsdException w:name="List Table 6 Colorful" w:uiPriority="51"/><w:lsdException w:name="List Table 7 Colorful" w:uiPriority="52"/><w:lsdException w:name="List Table 1 Light Accent 1" w:uiPriority="46"/><w:lsdException w:name="List Table 2 Accent 1" w:uiPriority="47"/><w:lsdException w:name="List Table 3 Accent 1" w:uiPriority="48"/><w:lsdException w:name="List Table 4 Accent 1" w:uiPriority="49"/><w:lsdException w:name="List Table 5 Dark Accent 1" w:uiPriority="50"/><w:lsdException w:name="List Table 6 Colorful Accent 1" w:uiPriority="51"/><w:lsdException w:name="List Table 7 Colorful Accent 1" w:uiPriority="52"/><w:lsdException w:name="List Table 1 Light Accent 2" w:uiPriority="46"/><w:lsdException w:name="List Table 2 Accent 2" w:uiPriority="47"/><w:lsdException w:name="List Table 3 Accent 2" w:uiPriority="48"/><w:lsdException w:name="List Table 4 Accent 2" w:uiPriority="49"/><w:lsdException w:name="List Table 5 Dark Accent 2" w:uiPriority="50"/><w:lsdException w:name="List Table 6 Colorful Accent 2" w:uiPriority="51"/><w:lsdException w:name="List Table 7 Colorful Accent 2" w:uiPriority="52"/><w:lsdException w:name="List Table 1 Light Accent 3" w:uiPriority="46"/><w:lsdException w:name="List Table 2 Accent 3" w:uiPriority="47"/><w:lsdException w:name="List Table 3 Accent 3" w:uiPriority="48"/><w:lsdException w:name="List Table 4 Accent 3" w:uiPriority="49"/><w:lsdException w:name="List Table 5 Dark Accent 3" w:uiPriority="50"/><w:lsdException w:name="List Table 6 Colorful Accent 3" w:uiPriority="51"/><w:lsdException w:name="List Table 7 Colorful Accent 3" w:uiPriority="52"/><w:lsdException w:name="List Table 1 Light Accent 4" w:uiPriority="46"/><w:lsdException w:name="List Table 2 Accent 4" w:uiPriority="47"/><w:lsdException w:name="List Table 3 Accent 4" w:uiPriority="48"/><w:lsdException w:name="List Table 4 Accent 4" w:uiPriority="49"/><w:lsdException w:name="List Table 5 Dark Accent 4" w:uiPriority="50"/><w:lsdException w:name="List Table 6 Colorful Accent 4" w:uiPriority="51"/><w:lsdException w:name="List Table 7 Colorful Accent 4" w:uiPriority="52"/><w:lsdException w:name="List Table 1 Light Accent 5" w:uiPriority="46"/><w:lsdException w:name="List Table 2 Accent 5" w:uiPriority="47"/><w:lsdException w:name="List Table 3 Accent 5" w:uiPriority="48"/><w:lsdException w:name="List Table 4 Accent 5" w:uiPriority="49"/><w:lsdException w:name="List Table 5 Dark Accent 5" w:uiPriority="50"/><w:lsdException w:name="List Table 6 Colorful Accent 5" w:uiPriority="51"/><w:lsdException w:name="List Table 7 Colorful Accent 5" w:uiPriority="52"/><w:lsdException w:name="List Table 1 Light Accent 6" w:uiPriority="46"/><w:lsdException w:name="List Table 2 Accent 6" w:uiPriority="47"/><w:lsdException w:name="List Table 3 Accent 6" w:uiPriority="48"/><w:lsdException w:name="List Table 4 Accent 6" w:uiPriority="49"/><w:lsdException w:name="List Table 5 Dark Accent 6" w:uiPriority="50"/><w:lsdException w:name="List Table 6 Colorful Accent 6" w:uiPriority="51"/><w:lsdException w:name="List Table 7 Colorful Accent 6" w:uiPriority="52"/><w:lsdException w:name="Mention" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Smart Hyperlink" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Hashtag" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Unresolved Mention" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Smart Link" w:semiHidden="1" w:unhideWhenUsed="1"/></w:latentStyles><w:style w:type="paragraph" w:default="1" w:styleId="Normal"><w:name w:val="Normal"/><w:qFormat/></w:style><w:style w:type="character" w:default="1" w:styleId="DefaultParagraphFont"><w:name w:val="Default Paragraph Font"/><w:uiPriority w:val="1"/><w:semiHidden/><w:unhideWhenUsed/></w:style><w:style w:type="table" w:default="1" w:styleId="TableNormal"><w:name w:val="Normal Table"/><w:uiPriority w:val="99"/><w:semiHidden/><w:unhideWhenUsed/><w:tblPr><w:tblInd w:w="0" w:type="dxa"/><w:tblCellMar><w:top w:w="0" w:type="dxa"/><w:left w:w="108" w:type="dxa"/><w:bottom w:w="0" w:type="dxa"/><w:right w:w="108" w:type="dxa"/></w:tblCellMar></w:tblPr></w:style><w:style w:type="numbering" w:default="1" w:styleId="NoList"><w:name w:val="No List"/><w:uiPriority w:val="99"/><w:semiHidden/><w:unhideWhenUsed/></w:style></w:styles> \ No newline at end of file
diff --git a/extract/test/row_span.pdf.mutool.docx.dir.ref/word/theme/theme1.xml b/extract/test/row_span.pdf.mutool.docx.dir.ref/word/theme/theme1.xml
new file mode 100644
index 00000000..d1a502f8
--- /dev/null
+++ b/extract/test/row_span.pdf.mutool.docx.dir.ref/word/theme/theme1.xml
@@ -0,0 +1,2 @@
+<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
+<a:theme xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main" name="Office Theme"><a:themeElements><a:clrScheme name="Office"><a:dk1><a:sysClr val="windowText" lastClr="000000"/></a:dk1><a:lt1><a:sysClr val="window" lastClr="FFFFFF"/></a:lt1><a:dk2><a:srgbClr val="44546A"/></a:dk2><a:lt2><a:srgbClr val="E7E6E6"/></a:lt2><a:accent1><a:srgbClr val="4472C4"/></a:accent1><a:accent2><a:srgbClr val="ED7D31"/></a:accent2><a:accent3><a:srgbClr val="A5A5A5"/></a:accent3><a:accent4><a:srgbClr val="FFC000"/></a:accent4><a:accent5><a:srgbClr val="5B9BD5"/></a:accent5><a:accent6><a:srgbClr val="70AD47"/></a:accent6><a:hlink><a:srgbClr val="0563C1"/></a:hlink><a:folHlink><a:srgbClr val="954F72"/></a:folHlink></a:clrScheme><a:fontScheme name="Office"><a:majorFont><a:latin typeface="Calibri Light" panose="020F0302020204030204"/><a:ea typeface=""/><a:cs typeface=""/><a:font script="Jpan" typeface="游ゴシック Light"/><a:font script="Hang" typeface="맑은 고딕"/><a:font script="Hans" typeface="等线 Light"/><a:font script="Hant" typeface="新細明體"/><a:font script="Arab" typeface="Times New Roman"/><a:font script="Hebr" typeface="Times New Roman"/><a:font script="Thai" typeface="Angsana New"/><a:font script="Ethi" typeface="Nyala"/><a:font script="Beng" typeface="Vrinda"/><a:font script="Gujr" typeface="Shruti"/><a:font script="Khmr" typeface="MoolBoran"/><a:font script="Knda" typeface="Tunga"/><a:font script="Guru" typeface="Raavi"/><a:font script="Cans" typeface="Euphemia"/><a:font script="Cher" typeface="Plantagenet Cherokee"/><a:font script="Yiii" typeface="Microsoft Yi Baiti"/><a:font script="Tibt" typeface="Microsoft Himalaya"/><a:font script="Thaa" typeface="MV Boli"/><a:font script="Deva" typeface="Mangal"/><a:font script="Telu" typeface="Gautami"/><a:font script="Taml" typeface="Latha"/><a:font script="Syrc" typeface="Estrangelo Edessa"/><a:font script="Orya" typeface="Kalinga"/><a:font script="Mlym" typeface="Kartika"/><a:font script="Laoo" typeface="DokChampa"/><a:font script="Sinh" typeface="Iskoola Pota"/><a:font script="Mong" typeface="Mongolian Baiti"/><a:font script="Viet" typeface="Times New Roman"/><a:font script="Uigh" typeface="Microsoft Uighur"/><a:font script="Geor" typeface="Sylfaen"/><a:font script="Armn" typeface="Arial"/><a:font script="Bugi" typeface="Leelawadee UI"/><a:font script="Bopo" typeface="Microsoft JhengHei"/><a:font script="Java" typeface="Javanese Text"/><a:font script="Lisu" typeface="Segoe UI"/><a:font script="Mymr" typeface="Myanmar Text"/><a:font script="Nkoo" typeface="Ebrima"/><a:font script="Olck" typeface="Nirmala UI"/><a:font script="Osma" typeface="Ebrima"/><a:font script="Phag" typeface="Phagspa"/><a:font script="Syrn" typeface="Estrangelo Edessa"/><a:font script="Syrj" typeface="Estrangelo Edessa"/><a:font script="Syre" typeface="Estrangelo Edessa"/><a:font script="Sora" typeface="Nirmala UI"/><a:font script="Tale" typeface="Microsoft Tai Le"/><a:font script="Talu" typeface="Microsoft New Tai Lue"/><a:font script="Tfng" typeface="Ebrima"/></a:majorFont><a:minorFont><a:latin typeface="Calibri" panose="020F0502020204030204"/><a:ea typeface=""/><a:cs typeface=""/><a:font script="Jpan" typeface="游明朝"/><a:font script="Hang" typeface="맑은 고딕"/><a:font script="Hans" typeface="等线"/><a:font script="Hant" typeface="新細明體"/><a:font script="Arab" typeface="Arial"/><a:font script="Hebr" typeface="Arial"/><a:font script="Thai" typeface="Cordia New"/><a:font script="Ethi" typeface="Nyala"/><a:font script="Beng" typeface="Vrinda"/><a:font script="Gujr" typeface="Shruti"/><a:font script="Khmr" typeface="DaunPenh"/><a:font script="Knda" typeface="Tunga"/><a:font script="Guru" typeface="Raavi"/><a:font script="Cans" typeface="Euphemia"/><a:font script="Cher" typeface="Plantagenet Cherokee"/><a:font script="Yiii" typeface="Microsoft Yi Baiti"/><a:font script="Tibt" typeface="Microsoft Himalaya"/><a:font script="Thaa" typeface="MV Boli"/><a:font script="Deva" typeface="Mangal"/><a:font script="Telu" typeface="Gautami"/><a:font script="Taml" typeface="Latha"/><a:font script="Syrc" typeface="Estrangelo Edessa"/><a:font script="Orya" typeface="Kalinga"/><a:font script="Mlym" typeface="Kartika"/><a:font script="Laoo" typeface="DokChampa"/><a:font script="Sinh" typeface="Iskoola Pota"/><a:font script="Mong" typeface="Mongolian Baiti"/><a:font script="Viet" typeface="Arial"/><a:font script="Uigh" typeface="Microsoft Uighur"/><a:font script="Geor" typeface="Sylfaen"/><a:font script="Armn" typeface="Arial"/><a:font script="Bugi" typeface="Leelawadee UI"/><a:font script="Bopo" typeface="Microsoft JhengHei"/><a:font script="Java" typeface="Javanese Text"/><a:font script="Lisu" typeface="Segoe UI"/><a:font script="Mymr" typeface="Myanmar Text"/><a:font script="Nkoo" typeface="Ebrima"/><a:font script="Olck" typeface="Nirmala UI"/><a:font script="Osma" typeface="Ebrima"/><a:font script="Phag" typeface="Phagspa"/><a:font script="Syrn" typeface="Estrangelo Edessa"/><a:font script="Syrj" typeface="Estrangelo Edessa"/><a:font script="Syre" typeface="Estrangelo Edessa"/><a:font script="Sora" typeface="Nirmala UI"/><a:font script="Tale" typeface="Microsoft Tai Le"/><a:font script="Talu" typeface="Microsoft New Tai Lue"/><a:font script="Tfng" typeface="Ebrima"/></a:minorFont></a:fontScheme><a:fmtScheme name="Office"><a:fillStyleLst><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:gradFill rotWithShape="1"><a:gsLst><a:gs pos="0"><a:schemeClr val="phClr"><a:lumMod val="110000"/><a:satMod val="105000"/><a:tint val="67000"/></a:schemeClr></a:gs><a:gs pos="50000"><a:schemeClr val="phClr"><a:lumMod val="105000"/><a:satMod val="103000"/><a:tint val="73000"/></a:schemeClr></a:gs><a:gs pos="100000"><a:schemeClr val="phClr"><a:lumMod val="105000"/><a:satMod val="109000"/><a:tint val="81000"/></a:schemeClr></a:gs></a:gsLst><a:lin ang="5400000" scaled="0"/></a:gradFill><a:gradFill rotWithShape="1"><a:gsLst><a:gs pos="0"><a:schemeClr val="phClr"><a:satMod val="103000"/><a:lumMod val="102000"/><a:tint val="94000"/></a:schemeClr></a:gs><a:gs pos="50000"><a:schemeClr val="phClr"><a:satMod val="110000"/><a:lumMod val="100000"/><a:shade val="100000"/></a:schemeClr></a:gs><a:gs pos="100000"><a:schemeClr val="phClr"><a:lumMod val="99000"/><a:satMod val="120000"/><a:shade val="78000"/></a:schemeClr></a:gs></a:gsLst><a:lin ang="5400000" scaled="0"/></a:gradFill></a:fillStyleLst><a:lnStyleLst><a:ln w="6350" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:prstDash val="solid"/><a:miter lim="800000"/></a:ln><a:ln w="12700" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:prstDash val="solid"/><a:miter lim="800000"/></a:ln><a:ln w="19050" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:prstDash val="solid"/><a:miter lim="800000"/></a:ln></a:lnStyleLst><a:effectStyleLst><a:effectStyle><a:effectLst/></a:effectStyle><a:effectStyle><a:effectLst/></a:effectStyle><a:effectStyle><a:effectLst><a:outerShdw blurRad="57150" dist="19050" dir="5400000" algn="ctr" rotWithShape="0"><a:srgbClr val="000000"><a:alpha val="63000"/></a:srgbClr></a:outerShdw></a:effectLst></a:effectStyle></a:effectStyleLst><a:bgFillStyleLst><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:solidFill><a:schemeClr val="phClr"><a:tint val="95000"/><a:satMod val="170000"/></a:schemeClr></a:solidFill><a:gradFill rotWithShape="1"><a:gsLst><a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="93000"/><a:satMod val="150000"/><a:shade val="98000"/><a:lumMod val="102000"/></a:schemeClr></a:gs><a:gs pos="50000"><a:schemeClr val="phClr"><a:tint val="98000"/><a:satMod val="130000"/><a:shade val="90000"/><a:lumMod val="103000"/></a:schemeClr></a:gs><a:gs pos="100000"><a:schemeClr val="phClr"><a:shade val="63000"/><a:satMod val="120000"/></a:schemeClr></a:gs></a:gsLst><a:lin ang="5400000" scaled="0"/></a:gradFill></a:bgFillStyleLst></a:fmtScheme></a:themeElements><a:objectDefaults/><a:extraClrSchemeLst/><a:extLst><a:ext uri="{05A4C25C-085E-4340-85A3-A5531E510DB2}"><thm15:themeFamily xmlns:thm15="http://schemas.microsoft.com/office/thememl/2012/main" name="Office Theme" id="{62F939B6-93AF-4DB8-9C6B-D6C7DFDC589F}" vid="{4A3C46E8-61CC-4603-A589-7422A47A8E4A}"/></a:ext></a:extLst></a:theme> \ No newline at end of file
diff --git a/extract/test/row_span.pdf.mutool.docx.dir.ref/word/webSettings.xml b/extract/test/row_span.pdf.mutool.docx.dir.ref/word/webSettings.xml
new file mode 100644
index 00000000..629ae06a
--- /dev/null
+++ b/extract/test/row_span.pdf.mutool.docx.dir.ref/word/webSettings.xml
@@ -0,0 +1,2 @@
+<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
+<w:webSettings xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships" xmlns:w="http://schemas.openxmlformats.org/wordprocessingml/2006/main" xmlns:w14="http://schemas.microsoft.com/office/word/2010/wordml" xmlns:w15="http://schemas.microsoft.com/office/word/2012/wordml" xmlns:w16cex="http://schemas.microsoft.com/office/word/2018/wordml/cex" xmlns:w16cid="http://schemas.microsoft.com/office/word/2016/wordml/cid" xmlns:w16="http://schemas.microsoft.com/office/word/2018/wordml" xmlns:w16se="http://schemas.microsoft.com/office/word/2015/wordml/symex" mc:Ignorable="w14 w15 w16se w16cid w16 w16cex"><w:optimizeForBrowser/><w:allowPNG/></w:webSettings> \ No newline at end of file
diff --git a/extract/test/row_span.pdf.mutool.html.ref b/extract/test/row_span.pdf.mutool.html.ref
new file mode 100644
index 00000000..744fc08d
--- /dev/null
+++ b/extract/test/row_span.pdf.mutool.html.ref
@@ -0,0 +1,132 @@
+<html>
+<body>
+
+
+<table border="1" style="border-collapse:collapse">
+ <tr>
+ <td><p><b>Plan Type </p></b></td><td><p><b>County </p></b></td><td><p><b>Plan Name </p></b></td><td><p><b>Totals </p></b></td>
+ </tr>
+ <tr>
+ <td rowspan="10"><p><b>GMC </p></b></td><td rowspan="4"><p>Sacramento </p></td><td><p>Anthem Blue Cross </p></td><td><p>164,380 </p></td>
+ </tr>
+ <tr>
+ <td><p>Health Net </p></td><td><p>126,547 </p></td>
+ </tr>
+ <tr>
+ <td><p>Kaiser Foundation </p></td><td><p>74,620 </p></td>
+ </tr>
+ <tr>
+ <td><p>Molina Healthcare </p></td><td><p>59,989 </p></td>
+ </tr>
+ <tr>
+ <td rowspan="5"><p>San Diego </p></td><td><p>Care 1st Health Plan </p></td><td><p>71,831 </p></td>
+ </tr>
+ <tr>
+ <td><p>Community Health Group </p></td><td><p>264,639 </p></td>
+ </tr>
+ <tr>
+ <td><p>Health Net </p></td><td><p>72,404 </p></td>
+ </tr>
+ <tr>
+ <td><p>Kaiser </p></td><td><p>50,415 </p></td>
+ </tr>
+ <tr>
+ <td><p>Molina Healthcare </p></td><td><p>206,430 </p></td>
+ </tr>
+ <tr>
+ <td colspan="2"><p><b>Total GMC Enrollment </p></b></td><td><p><b>1,091,255 </p></b></td>
+ </tr>
+ <tr>
+ <td rowspan="23"><p><b>COHS </p></b></td><td><p>Marin </p></td><td rowspan="14"><p>Partnership Health Plan of CA </p></td><td><p>36,006 </p></td>
+ </tr>
+ <tr>
+ <td><p>Mendocino</p></td><td><p> 37,243 </p></td>
+ </tr>
+ <tr>
+ <td><p>Napa </p></td><td><p>28,398 </p></td>
+ </tr>
+ <tr>
+ <td><p>Solano </p></td><td><p>113,220 </p></td>
+ </tr>
+ <tr>
+ <td><p>Sonoma </p></td><td><p>112,271 </p></td>
+ </tr>
+ <tr>
+ <td><p>Yolo </p></td><td><p>52,674 </p></td>
+ </tr>
+ <tr>
+ <td><p>Del Norte </p></td><td><p>11,242 </p></td>
+ </tr>
+ <tr>
+ <td><p>Humboldt </p></td><td><p>49,911 </p></td>
+ </tr>
+ <tr>
+ <td><p>Lake </p></td><td><p>29,149 </p></td>
+ </tr>
+ <tr>
+ <td><p>Lassen </p></td><td><p>7,360 </p></td>
+ </tr>
+ <tr>
+ <td><p>Modoc </p></td><td><p>2,940 </p></td>
+ </tr>
+ <tr>
+ <td><p>Shasta </p></td><td><p>61,763 </p></td>
+ </tr>
+ <tr>
+ <td><p>Siskiyou </p></td><td><p>16,715 </p></td>
+ </tr>
+ <tr>
+ <td><p>Trinity </p></td><td><p>4,542 </p></td>
+ </tr>
+ <tr>
+ <td><p>Merced</p></td><td rowspan="3"><p>Central California Alliance for Health</p></td><td><p> 123,907 </p></td>
+ </tr>
+ <tr>
+ <td><p>Monterey </p></td><td><p> 147,397 </p></td>
+ </tr>
+ <tr>
+ <td><p>Santa Cruz</p></td><td><p> 69,458 </p></td>
+ </tr>
+ <tr>
+ <td><p>Santa Barbara </p></td><td rowspan="2"><p>CenCal </p></td><td><p>117,609 </p></td>
+ </tr>
+ <tr>
+ <td><p>San Luis Obispo </p></td><td><p>55,761 </p></td>
+ </tr>
+ <tr>
+ <td><p>Orange </p></td><td><p>CalOptima </p></td><td><p>783,079 </p></td>
+ </tr>
+ <tr>
+ <td><p>San Mateo </p></td><td><p>Health Plan of San Mateo </p></td><td><p>113,202 </p></td>
+ </tr>
+ <tr>
+ <td><p>Ventura </p></td><td><p>Gold Coast Health Plan </p></td><td><p>202,217 </p></td>
+ </tr>
+ <tr>
+ <td colspan="2"><p><b>Total COHS Enrollment </p></b></td><td><p><b>2,176,064 </p></b></td>
+ </tr>
+ <tr>
+ <td colspan="3"><p><b>Subtotal for Two-Plan, Regional Model, GMC and COHS </p></b></td><td><p><b>10,132,022 </p></b></td>
+ </tr>
+ <tr>
+ <td rowspan="3"><p><b>PCCM </p></b></td><td><p>Los Angeles </p></td><td><p>AIDS Healthcare Foundation </p></td><td><p>828 </p></td>
+ </tr>
+ <tr>
+ <td><p>San Francisco </p></td><td><p>Family Mosaic </p></td><td><p>25 </p></td>
+ </tr>
+ <tr>
+ <td colspan="2"><p><b>Total PHP Enrollment </p></b></td><td><p><b>853 </p></b></td>
+ </tr>
+ <tr>
+ <td colspan="3"><p><b>All Models Total Enrollments </p></b></td><td><p><b>10,132,875 </p></b></td>
+ </tr>
+ <tr>
+ <td colspan="4"><p>Source: Data Warehouse 12/14/15 </p></td>
+ </tr>
+</table>
+
+
+
+<p>.
+</p></body>
+</html>
diff --git a/extract/test/row_span.pdf.mutool.odt.dir.ref/META-INF/manifest.xml b/extract/test/row_span.pdf.mutool.odt.dir.ref/META-INF/manifest.xml
new file mode 100644
index 00000000..ec991d79
--- /dev/null
+++ b/extract/test/row_span.pdf.mutool.odt.dir.ref/META-INF/manifest.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<manifest:manifest xmlns:manifest="urn:oasis:names:tc:opendocument:xmlns:manifest:1.0" manifest:version="1.3" xmlns:loext="urn:org:documentfoundation:names:experimental:office:xmlns:loext:1.0">
+ <manifest:file-entry manifest:full-path="/" manifest:version="1.3" manifest:media-type="application/vnd.oasis.opendocument.text"/>
+ <manifest:file-entry manifest:full-path="meta.xml" manifest:media-type="text/xml"/>
+ <manifest:file-entry manifest:full-path="settings.xml" manifest:media-type="text/xml"/>
+ <manifest:file-entry manifest:full-path="Configurations2/" manifest:media-type="application/vnd.sun.xml.ui.configuration"/>
+ <manifest:file-entry manifest:full-path="manifest.rdf" manifest:media-type="application/rdf+xml"/>
+ <manifest:file-entry manifest:full-path="styles.xml" manifest:media-type="text/xml"/>
+ <manifest:file-entry manifest:full-path="content.xml" manifest:media-type="text/xml"/>
+ <manifest:file-entry manifest:full-path="Thumbnails/thumbnail.png" manifest:media-type="image/png"/>
+</manifest:manifest> \ No newline at end of file
diff --git a/extract/test/row_span.pdf.mutool.odt.dir.ref/Thumbnails/thumbnail.png b/extract/test/row_span.pdf.mutool.odt.dir.ref/Thumbnails/thumbnail.png
new file mode 100644
index 00000000..0dd1608e
--- /dev/null
+++ b/extract/test/row_span.pdf.mutool.odt.dir.ref/Thumbnails/thumbnail.png
@@ -0,0 +1,2 @@
+PNG
+
diff --git a/extract/test/row_span.pdf.mutool.odt.dir.ref/content.xml b/extract/test/row_span.pdf.mutool.odt.dir.ref/content.xml
new file mode 100644
index 00000000..76cb4ac2
--- /dev/null
+++ b/extract/test/row_span.pdf.mutool.odt.dir.ref/content.xml
@@ -0,0 +1,639 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<office:document-content xmlns:css3t="http://www.w3.org/TR/css3-text/" xmlns:grddl="http://www.w3.org/2003/g/data-view#" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xforms="http://www.w3.org/2002/xforms" xmlns:dom="http://www.w3.org/2001/xml-events" xmlns:script="urn:oasis:names:tc:opendocument:xmlns:script:1.0" xmlns:form="urn:oasis:names:tc:opendocument:xmlns:form:1.0" xmlns:math="http://www.w3.org/1998/Math/MathML" xmlns:number="urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0" xmlns:field="urn:openoffice:names:experimental:ooo-ms-interop:xmlns:field:1.0" xmlns:meta="urn:oasis:names:tc:opendocument:xmlns:meta:1.0" xmlns:loext="urn:org:documentfoundation:names:experimental:office:xmlns:loext:1.0" xmlns:officeooo="http://openoffice.org/2009/office" xmlns:table="urn:oasis:names:tc:opendocument:xmlns:table:1.0" xmlns:chart="urn:oasis:names:tc:opendocument:xmlns:chart:1.0" xmlns:tableooo="http://openoffice.org/2009/table" xmlns:draw="urn:oasis:names:tc:opendocument:xmlns:drawing:1.0" xmlns:rpt="http://openoffice.org/2005/report" xmlns:dr3d="urn:oasis:names:tc:opendocument:xmlns:dr3d:1.0" xmlns:of="urn:oasis:names:tc:opendocument:xmlns:of:1.2" xmlns:text="urn:oasis:names:tc:opendocument:xmlns:text:1.0" xmlns:style="urn:oasis:names:tc:opendocument:xmlns:style:1.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:calcext="urn:org:documentfoundation:names:experimental:calc:xmlns:calcext:1.0" xmlns:oooc="http://openoffice.org/2004/calc" xmlns:drawooo="http://openoffice.org/2010/draw" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:ooo="http://openoffice.org/2004/office" xmlns:ooow="http://openoffice.org/2004/writer" xmlns:fo="urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0" xmlns:formx="urn:openoffice:names:experimental:ooxml-odf-interop:xmlns:form:1.0" xmlns:svg="urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0" xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" office:version="1.3"><office:scripts/><office:font-face-decls><style:font-face style:name="Liberation Serif" svg:font-family="&apos;Liberation Serif&apos;" style:font-family-generic="roman" style:font-pitch="variable"/><style:font-face style:name="Liberation Sans" svg:font-family="&apos;Liberation Sans&apos;" style:font-family-generic="swiss" style:font-pitch="variable"/><style:font-face style:name="Unifont" svg:font-family="Unifont" style:font-family-generic="system" style:font-pitch="variable"/></office:font-face-decls><office:automatic-styles><style:style style:name="T15" style:family="text"><style:text-properties style:font-name="Times-Roman" fo:font-size="8.64pt" fo:font-weight="normal" fo:font-style="normal" /></style:style><style:style style:name="T14" style:family="text"><style:text-properties style:font-name="Calibri" fo:font-size="8.64pt" fo:font-weight="normal" fo:font-style="normal" /></style:style><style:style style:name="T13" style:family="text"><style:text-properties style:font-name="ArialMT" fo:font-size="9.36pt" fo:font-weight="normal" fo:font-style="normal" /></style:style><style:style style:name="T11" style:family="text"><style:text-properties style:font-name="Arial-BoldMT" fo:font-size="10.20pt" fo:font-weight="bold" fo:font-style="normal" /></style:style><style:style style:name="T12" style:family="text"><style:text-properties style:font-name="Arial-BoldMT" fo:font-size="9.36pt" fo:font-weight="bold" fo:font-style="normal" /></style:style><style:style style:name="gr1" style:family="graphic">
+<style:graphic-properties draw:stroke="none" svg:stroke-color="#000000" draw:fill="none" draw:fill-color="#ffffff" fo:min-height="1.9898in" style:run-through="foreground" style:wrap="run-through" style:number-wrapped-paragraphs="no-limit" style:vertical-pos="from-top" style:vertical-rel="paragraph" style:horizontal-pos="from-left" style:horizontal-rel="paragraph" />
+<style:paragraph-properties style:writing-mode="lr-tb"/>
+</style:style>
+<style:style style:name="fr1" style:family="graphic" style:parent-style-name="Graphics">
+<style:graphic-properties fo:margin-left="0in" fo:margin-right="0in" fo:margin-top="0in" fo:margin-bottom="0in" style:vertical-pos="top" style:vertical-rel="baseline" fo:background-color="transparent" draw:fill="none" draw:fill-color="#ffffff" fo:padding="0in" fo:border="none" style:mirror="none" fo:clip="rect(0in, 0in, 0in, 0in)" draw:luminance="0%" draw:contrast="0%" draw:red="0%" draw:green="0%" draw:blue="0%" draw:gamma="100%" draw:color-inversion="false" draw:image-opacity="100%" draw:color-mode="standard"/>
+</style:style>
+</office:automatic-styles>
+<style:style style:name="extract.table" style:family="table"/>
+<style:style style:name="extract.table.column" style:family="table-column"/>
+<office:body><office:text><text:sequence-decls><text:sequence-decl text:display-outline-level="0" text:name="Illustration"/><text:sequence-decl text:display-outline-level="0" text:name="Table"/><text:sequence-decl text:display-outline-level="0" text:name="Text"/><text:sequence-decl text:display-outline-level="0" text:name="Drawing"/><text:sequence-decl text:display-outline-level="0" text:name="Figure"/></text:sequence-decls><text:p text:style-name="Standard"/>
+ <table:table text:style-name="extract.table" table:name="extract.table.1">
+ <table:table-columns>
+ <table:table-column table:style-name="extract.table.column"/>
+ <table:table-column table:style-name="extract.table.column"/>
+ <table:table-column table:style-name="extract.table.column"/>
+ <table:table-column table:style-name="extract.table.column"/>
+ </table:table-columns>
+ <table:table-row>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T11">Plan Type </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T11">County </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T11">Plan Name </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T11">Totals </text:span></text:p>
+ </table:table-cell>
+ </table:table-row>
+ <table:table-row>
+ <table:table-cell table:number-rows-spanned="10">
+
+
+<text:p><text:span text:style-name="T12">GMC </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell table:number-rows-spanned="4">
+
+
+<text:p><text:span text:style-name="T13">Sacramento </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">Anthem Blue Cross </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">164,380 </text:span></text:p>
+ </table:table-cell>
+ </table:table-row>
+ <table:table-row>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">Health Net </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">126,547 </text:span></text:p>
+ </table:table-cell>
+ </table:table-row>
+ <table:table-row>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">Kaiser Foundation </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">74,620 </text:span></text:p>
+ </table:table-cell>
+ </table:table-row>
+ <table:table-row>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">Molina Healthcare </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">59,989 </text:span></text:p>
+ </table:table-cell>
+ </table:table-row>
+ <table:table-row>
+ <table:covered-table-cell/>
+ <table:table-cell table:number-rows-spanned="5">
+
+
+<text:p><text:span text:style-name="T13">San Diego </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">Care 1st Health Plan </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">71,831 </text:span></text:p>
+ </table:table-cell>
+ </table:table-row>
+ <table:table-row>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">Community Health Group </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">264,639 </text:span></text:p>
+ </table:table-cell>
+ </table:table-row>
+ <table:table-row>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">Health Net </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">72,404 </text:span></text:p>
+ </table:table-cell>
+ </table:table-row>
+ <table:table-row>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">Kaiser </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">50,415 </text:span></text:p>
+ </table:table-cell>
+ </table:table-row>
+ <table:table-row>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">Molina Healthcare </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">206,430 </text:span></text:p>
+ </table:table-cell>
+ </table:table-row>
+ <table:table-row>
+ <table:covered-table-cell/>
+ <table:table-cell table:number-columns-spanned="2">
+
+
+<text:p><text:span text:style-name="T12">Total GMC Enrollment </text:span></text:p>
+ </table:table-cell>
+ <table:covered-table-cell/>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T12">1,091,255 </text:span></text:p>
+ </table:table-cell>
+ </table:table-row>
+ <table:table-row>
+ <table:table-cell table:number-rows-spanned="23">
+
+
+<text:p><text:span text:style-name="T12">COHS </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">Marin </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell table:number-rows-spanned="14">
+
+
+<text:p><text:span text:style-name="T13">Partnership Health Plan of CA </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">36,006 </text:span></text:p>
+ </table:table-cell>
+ </table:table-row>
+ <table:table-row>
+ <table:covered-table-cell/>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">Mendocino</text:span></text:p>
+ </table:table-cell>
+ <table:covered-table-cell/>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13"> 37,243 </text:span></text:p>
+ </table:table-cell>
+ </table:table-row>
+ <table:table-row>
+ <table:covered-table-cell/>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">Napa </text:span></text:p>
+ </table:table-cell>
+ <table:covered-table-cell/>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">28,398 </text:span></text:p>
+ </table:table-cell>
+ </table:table-row>
+ <table:table-row>
+ <table:covered-table-cell/>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">Solano </text:span></text:p>
+ </table:table-cell>
+ <table:covered-table-cell/>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">113,220 </text:span></text:p>
+ </table:table-cell>
+ </table:table-row>
+ <table:table-row>
+ <table:covered-table-cell/>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">Sonoma </text:span></text:p>
+ </table:table-cell>
+ <table:covered-table-cell/>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">112,271 </text:span></text:p>
+ </table:table-cell>
+ </table:table-row>
+ <table:table-row>
+ <table:covered-table-cell/>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">Yolo </text:span></text:p>
+ </table:table-cell>
+ <table:covered-table-cell/>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">52,674 </text:span></text:p>
+ </table:table-cell>
+ </table:table-row>
+ <table:table-row>
+ <table:covered-table-cell/>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">Del Norte </text:span></text:p>
+ </table:table-cell>
+ <table:covered-table-cell/>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">11,242 </text:span></text:p>
+ </table:table-cell>
+ </table:table-row>
+ <table:table-row>
+ <table:covered-table-cell/>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">Humboldt </text:span></text:p>
+ </table:table-cell>
+ <table:covered-table-cell/>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">49,911 </text:span></text:p>
+ </table:table-cell>
+ </table:table-row>
+ <table:table-row>
+ <table:covered-table-cell/>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">Lake </text:span></text:p>
+ </table:table-cell>
+ <table:covered-table-cell/>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">29,149 </text:span></text:p>
+ </table:table-cell>
+ </table:table-row>
+ <table:table-row>
+ <table:covered-table-cell/>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">Lassen </text:span></text:p>
+ </table:table-cell>
+ <table:covered-table-cell/>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">7,360 </text:span></text:p>
+ </table:table-cell>
+ </table:table-row>
+ <table:table-row>
+ <table:covered-table-cell/>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">Modoc </text:span></text:p>
+ </table:table-cell>
+ <table:covered-table-cell/>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">2,940 </text:span></text:p>
+ </table:table-cell>
+ </table:table-row>
+ <table:table-row>
+ <table:covered-table-cell/>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">Shasta </text:span></text:p>
+ </table:table-cell>
+ <table:covered-table-cell/>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">61,763 </text:span></text:p>
+ </table:table-cell>
+ </table:table-row>
+ <table:table-row>
+ <table:covered-table-cell/>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">Siskiyou </text:span></text:p>
+ </table:table-cell>
+ <table:covered-table-cell/>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">16,715 </text:span></text:p>
+ </table:table-cell>
+ </table:table-row>
+ <table:table-row>
+ <table:covered-table-cell/>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">Trinity </text:span></text:p>
+ </table:table-cell>
+ <table:covered-table-cell/>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">4,542 </text:span></text:p>
+ </table:table-cell>
+ </table:table-row>
+ <table:table-row>
+ <table:covered-table-cell/>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">Merced</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell table:number-rows-spanned="3">
+
+
+<text:p><text:span text:style-name="T13">Central California Alliance for Health</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13"> 123,907 </text:span></text:p>
+ </table:table-cell>
+ </table:table-row>
+ <table:table-row>
+ <table:covered-table-cell/>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">Monterey </text:span></text:p>
+ </table:table-cell>
+ <table:covered-table-cell/>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13"> 147,397 </text:span></text:p>
+ </table:table-cell>
+ </table:table-row>
+ <table:table-row>
+ <table:covered-table-cell/>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">Santa Cruz</text:span></text:p>
+ </table:table-cell>
+ <table:covered-table-cell/>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13"> 69,458 </text:span></text:p>
+ </table:table-cell>
+ </table:table-row>
+ <table:table-row>
+ <table:covered-table-cell/>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">Santa Barbara </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell table:number-rows-spanned="2">
+
+
+<text:p><text:span text:style-name="T13">CenCal </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">117,609 </text:span></text:p>
+ </table:table-cell>
+ </table:table-row>
+ <table:table-row>
+ <table:covered-table-cell/>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">San Luis Obispo </text:span></text:p>
+ </table:table-cell>
+ <table:covered-table-cell/>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">55,761 </text:span></text:p>
+ </table:table-cell>
+ </table:table-row>
+ <table:table-row>
+ <table:covered-table-cell/>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">Orange </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">CalOptima </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">783,079 </text:span></text:p>
+ </table:table-cell>
+ </table:table-row>
+ <table:table-row>
+ <table:covered-table-cell/>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">San Mateo </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">Health Plan of San Mateo </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">113,202 </text:span></text:p>
+ </table:table-cell>
+ </table:table-row>
+ <table:table-row>
+ <table:covered-table-cell/>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">Ventura </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">Gold Coast Health Plan </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">202,217 </text:span></text:p>
+ </table:table-cell>
+ </table:table-row>
+ <table:table-row>
+ <table:covered-table-cell/>
+ <table:table-cell table:number-columns-spanned="2">
+
+
+<text:p><text:span text:style-name="T12">Total COHS Enrollment </text:span></text:p>
+ </table:table-cell>
+ <table:covered-table-cell/>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T12">2,176,064 </text:span></text:p>
+ </table:table-cell>
+ </table:table-row>
+ <table:table-row>
+ <table:table-cell table:number-columns-spanned="3">
+
+
+<text:p><text:span text:style-name="T12">Subtotal for Two-Plan, Regional Model, GMC and COHS </text:span></text:p>
+ </table:table-cell>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T12">10,132,022 </text:span></text:p>
+ </table:table-cell>
+ </table:table-row>
+ <table:table-row>
+ <table:table-cell table:number-rows-spanned="3">
+
+
+<text:p><text:span text:style-name="T12">PCCM </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">Los Angeles </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">AIDS Healthcare Foundation </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">828 </text:span></text:p>
+ </table:table-cell>
+ </table:table-row>
+ <table:table-row>
+ <table:covered-table-cell/>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">San Francisco </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">Family Mosaic </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">25 </text:span></text:p>
+ </table:table-cell>
+ </table:table-row>
+ <table:table-row>
+ <table:covered-table-cell/>
+ <table:table-cell table:number-columns-spanned="2">
+
+
+<text:p><text:span text:style-name="T12">Total PHP Enrollment </text:span></text:p>
+ </table:table-cell>
+ <table:covered-table-cell/>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T12">853 </text:span></text:p>
+ </table:table-cell>
+ </table:table-row>
+ <table:table-row>
+ <table:table-cell table:number-columns-spanned="3">
+
+
+<text:p><text:span text:style-name="T12">All Models Total Enrollments </text:span></text:p>
+ </table:table-cell>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T12">10,132,875 </text:span></text:p>
+ </table:table-cell>
+ </table:table-row>
+ <table:table-row>
+ <table:table-cell table:number-columns-spanned="4">
+
+
+<text:p><text:span text:style-name="T13">Source: Data Warehouse 12/14/15 </text:span></text:p>
+ </table:table-cell>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ </table:table-row>
+ </table:table>
+
+
+<text:p><text:span text:style-name="T14">.</text:span><text:span text:style-name="T15"> </text:span></text:p></office:text></office:body></office:document-content> \ No newline at end of file
diff --git a/extract/test/row_span.pdf.mutool.odt.dir.ref/manifest.rdf b/extract/test/row_span.pdf.mutool.odt.dir.ref/manifest.rdf
new file mode 100644
index 00000000..927e206b
--- /dev/null
+++ b/extract/test/row_span.pdf.mutool.odt.dir.ref/manifest.rdf
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="utf-8"?>
+<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
+ <rdf:Description rdf:about="styles.xml">
+ <rdf:type rdf:resource="http://docs.oasis-open.org/ns/office/1.2/meta/odf#StylesFile"/>
+ </rdf:Description>
+ <rdf:Description rdf:about="">
+ <ns0:hasPart xmlns:ns0="http://docs.oasis-open.org/ns/office/1.2/meta/pkg#" rdf:resource="styles.xml"/>
+ </rdf:Description>
+ <rdf:Description rdf:about="content.xml">
+ <rdf:type rdf:resource="http://docs.oasis-open.org/ns/office/1.2/meta/odf#ContentFile"/>
+ </rdf:Description>
+ <rdf:Description rdf:about="">
+ <ns0:hasPart xmlns:ns0="http://docs.oasis-open.org/ns/office/1.2/meta/pkg#" rdf:resource="content.xml"/>
+ </rdf:Description>
+ <rdf:Description rdf:about="">
+ <rdf:type rdf:resource="http://docs.oasis-open.org/ns/office/1.2/meta/pkg#Document"/>
+ </rdf:Description>
+</rdf:RDF>
diff --git a/extract/test/row_span.pdf.mutool.odt.dir.ref/meta.xml b/extract/test/row_span.pdf.mutool.odt.dir.ref/meta.xml
new file mode 100644
index 00000000..6b42561e
--- /dev/null
+++ b/extract/test/row_span.pdf.mutool.odt.dir.ref/meta.xml
@@ -0,0 +1,2 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<office:document-meta xmlns:grddl="http://www.w3.org/2003/g/data-view#" xmlns:meta="urn:oasis:names:tc:opendocument:xmlns:meta:1.0" xmlns:ooo="http://openoffice.org/2004/office" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" office:version="1.3"><office:meta><meta:creation-date>2021-04-05T17:06:57.937137058</meta:creation-date><meta:generator>LibreOffice/7.0.1.2$OpenBSD_X86_64 LibreOffice_project/00$Build-2</meta:generator><dc:date>2021-04-06T17:14:51.409959656</dc:date><meta:editing-duration>PT20S</meta:editing-duration><meta:editing-cycles>1</meta:editing-cycles><meta:document-statistic meta:table-count="0" meta:image-count="0" meta:object-count="0" meta:page-count="1" meta:paragraph-count="0" meta:word-count="0" meta:character-count="0" meta:non-whitespace-character-count="0"/></office:meta></office:document-meta> \ No newline at end of file
diff --git a/extract/test/row_span.pdf.mutool.odt.dir.ref/mimetype b/extract/test/row_span.pdf.mutool.odt.dir.ref/mimetype
new file mode 100644
index 00000000..2e95b81c
--- /dev/null
+++ b/extract/test/row_span.pdf.mutool.odt.dir.ref/mimetype
@@ -0,0 +1 @@
+application/vnd.oasis.opendocument.text \ No newline at end of file
diff --git a/extract/test/row_span.pdf.mutool.odt.dir.ref/settings.xml b/extract/test/row_span.pdf.mutool.odt.dir.ref/settings.xml
new file mode 100644
index 00000000..35a8138f
--- /dev/null
+++ b/extract/test/row_span.pdf.mutool.odt.dir.ref/settings.xml
@@ -0,0 +1,2 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<office:document-settings xmlns:config="urn:oasis:names:tc:opendocument:xmlns:config:1.0" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:ooo="http://openoffice.org/2004/office" xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" office:version="1.3"><office:settings><config:config-item-set config:name="ooo:view-settings"><config:config-item config:name="ViewAreaTop" config:type="long">0</config:config-item><config:config-item config:name="ViewAreaLeft" config:type="long">0</config:config-item><config:config-item config:name="ViewAreaWidth" config:type="long">26275</config:config-item><config:config-item config:name="ViewAreaHeight" config:type="long">19502</config:config-item><config:config-item config:name="ShowRedlineChanges" config:type="boolean">true</config:config-item><config:config-item config:name="InBrowseMode" config:type="boolean">false</config:config-item><config:config-item-map-indexed config:name="Views"><config:config-item-map-entry><config:config-item config:name="ViewId" config:type="string">view2</config:config-item><config:config-item config:name="ViewLeft" config:type="long">4343</config:config-item><config:config-item config:name="ViewTop" config:type="long">2501</config:config-item><config:config-item config:name="VisibleLeft" config:type="long">0</config:config-item><config:config-item config:name="VisibleTop" config:type="long">0</config:config-item><config:config-item config:name="VisibleRight" config:type="long">26273</config:config-item><config:config-item config:name="VisibleBottom" config:type="long">19500</config:config-item><config:config-item config:name="ZoomType" config:type="short">0</config:config-item><config:config-item config:name="ViewLayoutColumns" config:type="short">1</config:config-item><config:config-item config:name="ViewLayoutBookMode" config:type="boolean">false</config:config-item><config:config-item config:name="ZoomFactor" config:type="short">100</config:config-item><config:config-item config:name="IsSelectedFrame" config:type="boolean">false</config:config-item><config:config-item config:name="AnchoredTextOverflowLegacy" config:type="boolean">false</config:config-item></config:config-item-map-entry></config:config-item-map-indexed></config:config-item-set><config:config-item-set config:name="ooo:configuration-settings"><config:config-item config:name="PrintBlackFonts" config:type="boolean">false</config:config-item><config:config-item config:name="PrintReversed" config:type="boolean">false</config:config-item><config:config-item config:name="SaveThumbnail" config:type="boolean">true</config:config-item><config:config-item config:name="EmbedFonts" config:type="boolean">false</config:config-item><config:config-item config:name="PrintControls" config:type="boolean">true</config:config-item><config:config-item config:name="OutlineLevelYieldsNumbering" config:type="boolean">false</config:config-item><config:config-item config:name="PrintPageBackground" config:type="boolean">true</config:config-item><config:config-item config:name="PrintAnnotationMode" config:type="short">0</config:config-item><config:config-item config:name="PrintGraphics" config:type="boolean">true</config:config-item><config:config-item config:name="EmbeddedDatabaseName" config:type="string"/><config:config-item config:name="ProtectForm" config:type="boolean">false</config:config-item><config:config-item config:name="PrintLeftPages" config:type="boolean">true</config:config-item><config:config-item config:name="PrintProspect" config:type="boolean">false</config:config-item><config:config-item config:name="PrintHiddenText" config:type="boolean">false</config:config-item><config:config-item config:name="PrintRightPages" config:type="boolean">true</config:config-item><config:config-item config:name="PrintFaxName" config:type="string"/><config:config-item config:name="PrintPaperFromSetup" config:type="boolean">false</config:config-item><config:config-item config:name="TabsRelativeToIndent" config:type="boolean">true</config:config-item><config:config-item config:name="RedlineProtectionKey" config:type="base64Binary"/><config:config-item config:name="PrintTextPlaceholder" config:type="boolean">false</config:config-item><config:config-item config:name="MathBaselineAlignment" config:type="boolean">true</config:config-item><config:config-item config:name="ProtectBookmarks" config:type="boolean">false</config:config-item><config:config-item config:name="IgnoreTabsAndBlanksForLineCalculation" config:type="boolean">false</config:config-item><config:config-item config:name="ContinuousEndnotes" config:type="boolean">false</config:config-item><config:config-item config:name="FieldAutoUpdate" config:type="boolean">true</config:config-item><config:config-item config:name="EmptyDbFieldHidesPara" config:type="boolean">true</config:config-item><config:config-item config:name="ApplyParagraphMarkFormatToNumbering" config:type="boolean">false</config:config-item><config:config-item config:name="PrintEmptyPages" config:type="boolean">true</config:config-item><config:config-item config:name="TabOverMargin" config:type="boolean">false</config:config-item><config:config-item config:name="EmbedAsianScriptFonts" config:type="boolean">true</config:config-item><config:config-item config:name="EmbedLatinScriptFonts" config:type="boolean">true</config:config-item><config:config-item config:name="DisableOffPagePositioning" config:type="boolean">false</config:config-item><config:config-item config:name="EmbedOnlyUsedFonts" config:type="boolean">false</config:config-item><config:config-item config:name="MsWordCompMinLineHeightByFly" config:type="boolean">false</config:config-item><config:config-item config:name="SurroundTextWrapSmall" config:type="boolean">false</config:config-item><config:config-item config:name="BackgroundParaOverDrawings" config:type="boolean">false</config:config-item><config:config-item config:name="ClippedPictures" config:type="boolean">false</config:config-item><config:config-item config:name="FloattableNomargins" config:type="boolean">false</config:config-item><config:config-item config:name="UnbreakableNumberings" config:type="boolean">false</config:config-item><config:config-item config:name="EmbedSystemFonts" config:type="boolean">false</config:config-item><config:config-item config:name="TabOverflow" config:type="boolean">true</config:config-item><config:config-item config:name="PrintTables" config:type="boolean">true</config:config-item><config:config-item config:name="PrintDrawings" config:type="boolean">true</config:config-item><config:config-item config:name="ConsiderTextWrapOnObjPos" config:type="boolean">false</config:config-item><config:config-item config:name="PrintSingleJobs" config:type="boolean">false</config:config-item><config:config-item config:name="SmallCapsPercentage66" config:type="boolean">false</config:config-item><config:config-item config:name="CollapseEmptyCellPara" config:type="boolean">true</config:config-item><config:config-item config:name="HeaderSpacingBelowLastPara" config:type="boolean">false</config:config-item><config:config-item config:name="RsidRoot" config:type="int">2052946</config:config-item><config:config-item config:name="PrinterSetup" config:type="base64Binary"/><config:config-item config:name="CurrentDatabaseCommand" config:type="string"/><config:config-item config:name="AlignTabStopPosition" config:type="boolean">true</config:config-item><config:config-item config:name="ClipAsCharacterAnchoredWriterFlyFrames" config:type="boolean">false</config:config-item><config:config-item config:name="DoNotCaptureDrawObjsOnPage" config:type="boolean">false</config:config-item><config:config-item config:name="SaveGlobalDocumentLinks" config:type="boolean">false</config:config-item><config:config-item config:name="CurrentDatabaseCommandType" config:type="int">0</config:config-item><config:config-item config:name="LoadReadonly" config:type="boolean">false</config:config-item><config:config-item config:name="DoNotResetParaAttrsForNumFont" config:type="boolean">false</config:config-item><config:config-item config:name="StylesNoDefault" config:type="boolean">false</config:config-item><config:config-item config:name="LinkUpdateMode" config:type="short">1</config:config-item><config:config-item config:name="DoNotJustifyLinesWithManualBreak" config:type="boolean">false</config:config-item><config:config-item config:name="PropLineSpacingShrinksFirstLine" config:type="boolean">true</config:config-item><config:config-item config:name="TabAtLeftIndentForParagraphsInList" config:type="boolean">false</config:config-item><config:config-item config:name="ProtectFields" config:type="boolean">false</config:config-item><config:config-item config:name="UnxForceZeroExtLeading" config:type="boolean">false</config:config-item><config:config-item config:name="CurrentDatabaseDataSource" config:type="string"/><config:config-item config:name="UseFormerTextWrapping" config:type="boolean">false</config:config-item><config:config-item config:name="UseFormerLineSpacing" config:type="boolean">false</config:config-item><config:config-item config:name="AllowPrintJobCancel" config:type="boolean">true</config:config-item><config:config-item config:name="SubtractFlysAnchoredAtFlys" config:type="boolean">false</config:config-item><config:config-item config:name="AddParaSpacingToTableCells" config:type="boolean">true</config:config-item><config:config-item config:name="AddExternalLeading" config:type="boolean">true</config:config-item><config:config-item config:name="Rsid" config:type="int">2178852</config:config-item><config:config-item config:name="AddVerticalFrameOffsets" config:type="boolean">false</config:config-item><config:config-item config:name="TreatSingleColumnBreakAsPageBreak" config:type="boolean">false</config:config-item><config:config-item config:name="AddFrameOffsets" config:type="boolean">false</config:config-item><config:config-item config:name="IsLabelDocument" config:type="boolean">false</config:config-item><config:config-item config:name="MsWordCompTrailingBlanks" config:type="boolean">false</config:config-item><config:config-item config:name="PrinterPaperFromSetup" config:type="boolean">false</config:config-item><config:config-item config:name="IgnoreFirstLineIndentInNumbering" config:type="boolean">false</config:config-item><config:config-item config:name="PrinterName" config:type="string"/><config:config-item config:name="IsKernAsianPunctuation" config:type="boolean">false</config:config-item><config:config-item config:name="PrinterIndependentLayout" config:type="string">high-resolution</config:config-item><config:config-item config:name="TableRowKeep" config:type="boolean">false</config:config-item><config:config-item config:name="UpdateFromTemplate" config:type="boolean">true</config:config-item><config:config-item config:name="EmbedComplexScriptFonts" config:type="boolean">true</config:config-item><config:config-item config:name="UseOldPrinterMetrics" config:type="boolean">false</config:config-item><config:config-item config:name="InvertBorderSpacing" config:type="boolean">false</config:config-item><config:config-item config:name="PrintProspectRTL" config:type="boolean">false</config:config-item><config:config-item config:name="ApplyUserData" config:type="boolean">true</config:config-item><config:config-item config:name="AddParaTableSpacingAtStart" config:type="boolean">true</config:config-item><config:config-item config:name="SaveVersionOnClose" config:type="boolean">false</config:config-item><config:config-item config:name="CharacterCompressionType" config:type="short">0</config:config-item><config:config-item config:name="UseOldNumbering" config:type="boolean">false</config:config-item><config:config-item config:name="UseFormerObjectPositioning" config:type="boolean">false</config:config-item><config:config-item config:name="ChartAutoUpdate" config:type="boolean">true</config:config-item><config:config-item config:name="AddParaTableSpacing" config:type="boolean">true</config:config-item></config:config-item-set></office:settings></office:document-settings> \ No newline at end of file
diff --git a/extract/test/row_span.pdf.mutool.odt.dir.ref/styles.xml b/extract/test/row_span.pdf.mutool.odt.dir.ref/styles.xml
new file mode 100644
index 00000000..91403c4e
--- /dev/null
+++ b/extract/test/row_span.pdf.mutool.odt.dir.ref/styles.xml
@@ -0,0 +1,2 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<office:document-styles xmlns:css3t="http://www.w3.org/TR/css3-text/" xmlns:grddl="http://www.w3.org/2003/g/data-view#" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:dom="http://www.w3.org/2001/xml-events" xmlns:script="urn:oasis:names:tc:opendocument:xmlns:script:1.0" xmlns:form="urn:oasis:names:tc:opendocument:xmlns:form:1.0" xmlns:math="http://www.w3.org/1998/Math/MathML" xmlns:number="urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0" xmlns:field="urn:openoffice:names:experimental:ooo-ms-interop:xmlns:field:1.0" xmlns:meta="urn:oasis:names:tc:opendocument:xmlns:meta:1.0" xmlns:loext="urn:org:documentfoundation:names:experimental:office:xmlns:loext:1.0" xmlns:officeooo="http://openoffice.org/2009/office" xmlns:table="urn:oasis:names:tc:opendocument:xmlns:table:1.0" xmlns:chart="urn:oasis:names:tc:opendocument:xmlns:chart:1.0" xmlns:tableooo="http://openoffice.org/2009/table" xmlns:draw="urn:oasis:names:tc:opendocument:xmlns:drawing:1.0" xmlns:rpt="http://openoffice.org/2005/report" xmlns:dr3d="urn:oasis:names:tc:opendocument:xmlns:dr3d:1.0" xmlns:of="urn:oasis:names:tc:opendocument:xmlns:of:1.2" xmlns:text="urn:oasis:names:tc:opendocument:xmlns:text:1.0" xmlns:style="urn:oasis:names:tc:opendocument:xmlns:style:1.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:calcext="urn:org:documentfoundation:names:experimental:calc:xmlns:calcext:1.0" xmlns:oooc="http://openoffice.org/2004/calc" xmlns:drawooo="http://openoffice.org/2010/draw" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:ooo="http://openoffice.org/2004/office" xmlns:ooow="http://openoffice.org/2004/writer" xmlns:fo="urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0" xmlns:svg="urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0" xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" office:version="1.3"><office:font-face-decls><style:font-face style:name="Liberation Serif" svg:font-family="&apos;Liberation Serif&apos;" style:font-family-generic="roman" style:font-pitch="variable"/><style:font-face style:name="Liberation Sans" svg:font-family="&apos;Liberation Sans&apos;" style:font-family-generic="swiss" style:font-pitch="variable"/><style:font-face style:name="Unifont" svg:font-family="Unifont" style:font-family-generic="system" style:font-pitch="variable"/></office:font-face-decls><office:styles><style:default-style style:family="graphic"><style:graphic-properties svg:stroke-color="#3465a4" draw:fill-color="#729fcf" fo:wrap-option="no-wrap" draw:shadow-offset-x="0.1181in" draw:shadow-offset-y="0.1181in" draw:start-line-spacing-horizontal="0.1114in" draw:start-line-spacing-vertical="0.1114in" draw:end-line-spacing-horizontal="0.1114in" draw:end-line-spacing-vertical="0.1114in" style:flow-with-text="false"/><style:paragraph-properties style:text-autospace="ideograph-alpha" style:line-break="strict" style:font-independent-line-spacing="false"><style:tab-stops/></style:paragraph-properties><style:text-properties style:use-window-font-color="true" loext:opacity="0%" style:font-name="Liberation Serif" fo:font-size="12pt" fo:language="en" fo:country="US" style:letter-kerning="true" style:font-name-asian="Unifont" style:font-size-asian="10.5pt" style:language-asian="zh" style:country-asian="CN" style:font-name-complex="Unifont" style:font-size-complex="12pt" style:language-complex="hi" style:country-complex="IN"/></style:default-style><style:default-style style:family="paragraph"><style:paragraph-properties fo:orphans="2" fo:widows="2" fo:hyphenation-ladder-count="no-limit" style:text-autospace="ideograph-alpha" style:punctuation-wrap="hanging" style:line-break="strict" style:tab-stop-distance="0.4925in" style:writing-mode="page"/><style:text-properties style:use-window-font-color="true" loext:opacity="0%" style:font-name="Liberation Serif" fo:font-size="12pt" fo:language="en" fo:country="US" style:letter-kerning="true" style:font-name-asian="Unifont" style:font-size-asian="10.5pt" style:language-asian="zh" style:country-asian="CN" style:font-name-complex="Unifont" style:font-size-complex="12pt" style:language-complex="hi" style:country-complex="IN" fo:hyphenate="false" fo:hyphenation-remain-char-count="2" fo:hyphenation-push-char-count="2" loext:hyphenation-no-caps="false"/></style:default-style><style:default-style style:family="table"><style:table-properties table:border-model="collapsing"/></style:default-style><style:default-style style:family="table-row"><style:table-row-properties fo:keep-together="auto"/></style:default-style><style:style style:name="Standard" style:family="paragraph" style:class="text"><style:paragraph-properties fo:margin-top="0in" fo:margin-bottom="0.0799in" style:contextual-spacing="false"/></style:style><style:style style:name="Heading" style:family="paragraph" style:parent-style-name="Standard" style:next-style-name="Text_20_body" style:class="text"><style:paragraph-properties fo:margin-top="0.1665in" fo:margin-bottom="0.0835in" style:contextual-spacing="false" fo:keep-with-next="always"/><style:text-properties style:font-name="Liberation Sans" fo:font-family="&apos;Liberation Sans&apos;" style:font-family-generic="swiss" style:font-pitch="variable" fo:font-size="14pt" style:font-name-asian="Unifont" style:font-family-asian="Unifont" style:font-family-generic-asian="system" style:font-pitch-asian="variable" style:font-size-asian="14pt" style:font-name-complex="Unifont" style:font-family-complex="Unifont" style:font-family-generic-complex="system" style:font-pitch-complex="variable" style:font-size-complex="14pt"/></style:style><style:style style:name="Text_20_body" style:display-name="Text body" style:family="paragraph" style:parent-style-name="Standard" style:class="text"><style:paragraph-properties fo:margin-top="0in" fo:margin-bottom="0.0972in" style:contextual-spacing="false" fo:line-height="115%"/></style:style><style:style style:name="List" style:family="paragraph" style:parent-style-name="Text_20_body" style:class="list"><style:text-properties style:font-size-asian="12pt"/></style:style><style:style style:name="Caption" style:family="paragraph" style:parent-style-name="Standard" style:class="extra"><style:paragraph-properties fo:margin-top="0.0835in" fo:margin-bottom="0.0835in" style:contextual-spacing="false" text:number-lines="false" text:line-number="0"/><style:text-properties fo:font-size="12pt" fo:font-style="italic" style:font-size-asian="12pt" style:font-style-asian="italic" style:font-size-complex="12pt" style:font-style-complex="italic"/></style:style><style:style style:name="Index" style:family="paragraph" style:parent-style-name="Standard" style:class="index"><style:paragraph-properties text:number-lines="false" text:line-number="0"/><style:text-properties style:font-size-asian="12pt"/></style:style><text:outline-style style:name="Outline"><text:outline-level-style text:level="1" style:num-format=""><style:list-level-properties text:list-level-position-and-space-mode="label-alignment"><style:list-level-label-alignment text:label-followed-by="listtab"/></style:list-level-properties></text:outline-level-style><text:outline-level-style text:level="2" style:num-format=""><style:list-level-properties text:list-level-position-and-space-mode="label-alignment"><style:list-level-label-alignment text:label-followed-by="listtab"/></style:list-level-properties></text:outline-level-style><text:outline-level-style text:level="3" style:num-format=""><style:list-level-properties text:list-level-position-and-space-mode="label-alignment"><style:list-level-label-alignment text:label-followed-by="listtab"/></style:list-level-properties></text:outline-level-style><text:outline-level-style text:level="4" style:num-format=""><style:list-level-properties text:list-level-position-and-space-mode="label-alignment"><style:list-level-label-alignment text:label-followed-by="listtab"/></style:list-level-properties></text:outline-level-style><text:outline-level-style text:level="5" style:num-format=""><style:list-level-properties text:list-level-position-and-space-mode="label-alignment"><style:list-level-label-alignment text:label-followed-by="listtab"/></style:list-level-properties></text:outline-level-style><text:outline-level-style text:level="6" style:num-format=""><style:list-level-properties text:list-level-position-and-space-mode="label-alignment"><style:list-level-label-alignment text:label-followed-by="listtab"/></style:list-level-properties></text:outline-level-style><text:outline-level-style text:level="7" style:num-format=""><style:list-level-properties text:list-level-position-and-space-mode="label-alignment"><style:list-level-label-alignment text:label-followed-by="listtab"/></style:list-level-properties></text:outline-level-style><text:outline-level-style text:level="8" style:num-format=""><style:list-level-properties text:list-level-position-and-space-mode="label-alignment"><style:list-level-label-alignment text:label-followed-by="listtab"/></style:list-level-properties></text:outline-level-style><text:outline-level-style text:level="9" style:num-format=""><style:list-level-properties text:list-level-position-and-space-mode="label-alignment"><style:list-level-label-alignment text:label-followed-by="listtab"/></style:list-level-properties></text:outline-level-style><text:outline-level-style text:level="10" style:num-format=""><style:list-level-properties text:list-level-position-and-space-mode="label-alignment"><style:list-level-label-alignment text:label-followed-by="listtab"/></style:list-level-properties></text:outline-level-style></text:outline-style><text:notes-configuration text:note-class="footnote" style:num-format="1" text:start-value="0" text:footnotes-position="page" text:start-numbering-at="document"/><text:notes-configuration text:note-class="endnote" style:num-format="i" text:start-value="0"/><text:linenumbering-configuration text:number-lines="false" text:offset="0.1965in" style:num-format="1" text:number-position="left" text:increment="5"/></office:styles><office:automatic-styles><style:page-layout style:name="Mpm1"><style:page-layout-properties fo:page-width="8.5in" fo:page-height="11in" style:num-format="1" style:print-orientation="portrait" fo:margin-top="0.7874in" fo:margin-bottom="0.7874in" fo:margin-left="0.7874in" fo:margin-right="0.7874in" style:writing-mode="lr-tb" style:layout-grid-color="#c0c0c0" style:layout-grid-lines="20" style:layout-grid-base-height="0.278in" style:layout-grid-ruby-height="0.139in" style:layout-grid-mode="none" style:layout-grid-ruby-below="false" style:layout-grid-print="false" style:layout-grid-display="false" style:footnote-max-height="0in"><style:footnote-sep style:width="0.0071in" style:distance-before-sep="0.0398in" style:distance-after-sep="0.0398in" style:line-style="solid" style:adjustment="left" style:rel-width="25%" style:color="#000000"/></style:page-layout-properties><style:header-style/><style:footer-style/></style:page-layout></office:automatic-styles><office:master-styles><style:master-page style:name="Standard" style:page-layout-name="Mpm1"/></office:master-styles></office:document-styles> \ No newline at end of file
diff --git a/extract/test/table.pdf b/extract/test/table.pdf
new file mode 100644
index 00000000..742e0185
--- /dev/null
+++ b/extract/test/table.pdf
Binary files differ
diff --git a/extract/test/table.pdf.mutool-0.csv.ref b/extract/test/table.pdf.mutool-0.csv.ref
new file mode 100644
index 00000000..b8a245c1
--- /dev/null
+++ b/extract/test/table.pdf.mutool-0.csv.ref
@@ -0,0 +1,7 @@
+"Cycle Name","KI (1/km)","Distance (mi)","Percent Fuel Savings","","",""
+"","","","Improved Speed","Decreased Accel","Eliminate Stops","Decreased Idle"
+"2012_2","3.30","1.3","5.9%","9.5%","29.2%","17.4%"
+"2145_1","0.68","11.2","2.4%","0.1%","9.5%","2.7%"
+"4234_1","0.59","58.7","8.5%","1.3%","8.5%","3.3%"
+"2032_2","0.17","57.8","21.7%","0.3%","2.7%","1.2%"
+"4171_1","0.07","173.9","58.1%","1.6%","2.1%","0.5%"
diff --git a/extract/test/table.pdf.mutool.docx.dir.ref/[Content_Types].xml b/extract/test/table.pdf.mutool.docx.dir.ref/[Content_Types].xml
new file mode 100644
index 00000000..07d88cca
--- /dev/null
+++ b/extract/test/table.pdf.mutool.docx.dir.ref/[Content_Types].xml
@@ -0,0 +1,2 @@
+<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
+<Types xmlns="http://schemas.openxmlformats.org/package/2006/content-types"><Default Extension="rels" ContentType="application/vnd.openxmlformats-package.relationships+xml"/><Default Extension="xml" ContentType="application/xml"/><Override PartName="/word/document.xml" ContentType="application/vnd.openxmlformats-officedocument.wordprocessingml.document.main+xml"/><Override PartName="/word/styles.xml" ContentType="application/vnd.openxmlformats-officedocument.wordprocessingml.styles+xml"/><Override PartName="/word/settings.xml" ContentType="application/vnd.openxmlformats-officedocument.wordprocessingml.settings+xml"/><Override PartName="/word/webSettings.xml" ContentType="application/vnd.openxmlformats-officedocument.wordprocessingml.webSettings+xml"/><Override PartName="/word/fontTable.xml" ContentType="application/vnd.openxmlformats-officedocument.wordprocessingml.fontTable+xml"/><Override PartName="/word/theme/theme1.xml" ContentType="application/vnd.openxmlformats-officedocument.theme+xml"/><Override PartName="/docProps/core.xml" ContentType="application/vnd.openxmlformats-package.core-properties+xml"/><Override PartName="/docProps/app.xml" ContentType="application/vnd.openxmlformats-officedocument.extended-properties+xml"/></Types> \ No newline at end of file
diff --git a/extract/test/table.pdf.mutool.docx.dir.ref/_rels/.rels b/extract/test/table.pdf.mutool.docx.dir.ref/_rels/.rels
new file mode 100644
index 00000000..32548d42
--- /dev/null
+++ b/extract/test/table.pdf.mutool.docx.dir.ref/_rels/.rels
@@ -0,0 +1,2 @@
+<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
+<Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships"><Relationship Id="rId3" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties" Target="docProps/app.xml"/><Relationship Id="rId2" Type="http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties" Target="docProps/core.xml"/><Relationship Id="rId1" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument" Target="word/document.xml"/></Relationships> \ No newline at end of file
diff --git a/extract/test/table.pdf.mutool.docx.dir.ref/docProps/app.xml b/extract/test/table.pdf.mutool.docx.dir.ref/docProps/app.xml
new file mode 100644
index 00000000..eb8dd2e5
--- /dev/null
+++ b/extract/test/table.pdf.mutool.docx.dir.ref/docProps/app.xml
@@ -0,0 +1,2 @@
+<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
+<Properties xmlns="http://schemas.openxmlformats.org/officeDocument/2006/extended-properties" xmlns:vt="http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes"><Template>Normal.dotm</Template><TotalTime>3</TotalTime><Pages>1</Pages><Words>2</Words><Characters>18</Characters><Application>Microsoft Office Word</Application><DocSecurity>0</DocSecurity><Lines>1</Lines><Paragraphs>1</Paragraphs><ScaleCrop>false</ScaleCrop><Company></Company><LinksUpToDate>false</LinksUpToDate><CharactersWithSpaces>19</CharactersWithSpaces><SharedDoc>false</SharedDoc><HyperlinksChanged>false</HyperlinksChanged><AppVersion>16.0000</AppVersion></Properties> \ No newline at end of file
diff --git a/extract/test/table.pdf.mutool.docx.dir.ref/docProps/core.xml b/extract/test/table.pdf.mutool.docx.dir.ref/docProps/core.xml
new file mode 100644
index 00000000..195d77a9
--- /dev/null
+++ b/extract/test/table.pdf.mutool.docx.dir.ref/docProps/core.xml
@@ -0,0 +1,2 @@
+<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
+<cp:coreProperties xmlns:cp="http://schemas.openxmlformats.org/package/2006/metadata/core-properties" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:dcterms="http://purl.org/dc/terms/" xmlns:dcmitype="http://purl.org/dc/dcmitype/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><dc:title></dc:title><dc:subject></dc:subject><dc:creator></dc:creator><cp:keywords></cp:keywords><dc:description></dc:description><cp:lastModifiedBy></cp:lastModifiedBy><cp:revision>1</cp:revision><dcterms:created xsi:type="dcterms:W3CDTF">2020-09-25T17:04:00Z</dcterms:created><dcterms:modified xsi:type="dcterms:W3CDTF">2020-09-25T17:07:00Z</dcterms:modified></cp:coreProperties> \ No newline at end of file
diff --git a/extract/test/table.pdf.mutool.docx.dir.ref/word/_rels/document.xml.rels b/extract/test/table.pdf.mutool.docx.dir.ref/word/_rels/document.xml.rels
new file mode 100644
index 00000000..3b2b7f8c
--- /dev/null
+++ b/extract/test/table.pdf.mutool.docx.dir.ref/word/_rels/document.xml.rels
@@ -0,0 +1,2 @@
+<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
+<Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships"><Relationship Id="rId3" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/webSettings" Target="webSettings.xml"/><Relationship Id="rId2" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/settings" Target="settings.xml"/><Relationship Id="rId1" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles" Target="styles.xml"/><Relationship Id="rId5" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme" Target="theme/theme1.xml"/><Relationship Id="rId4" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/fontTable" Target="fontTable.xml"/></Relationships> \ No newline at end of file
diff --git a/extract/test/table.pdf.mutool.docx.dir.ref/word/document.xml b/extract/test/table.pdf.mutool.docx.dir.ref/word/document.xml
new file mode 100644
index 00000000..75d8dd94
--- /dev/null
+++ b/extract/test/table.pdf.mutool.docx.dir.ref/word/document.xml
@@ -0,0 +1,738 @@
+<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
+<w:document xmlns:wpc="http://schemas.microsoft.com/office/word/2010/wordprocessingCanvas" xmlns:cx="http://schemas.microsoft.com/office/drawing/2014/chartex" xmlns:cx1="http://schemas.microsoft.com/office/drawing/2015/9/8/chartex" xmlns:cx2="http://schemas.microsoft.com/office/drawing/2015/10/21/chartex" xmlns:cx3="http://schemas.microsoft.com/office/drawing/2016/5/9/chartex" xmlns:cx4="http://schemas.microsoft.com/office/drawing/2016/5/10/chartex" xmlns:cx5="http://schemas.microsoft.com/office/drawing/2016/5/11/chartex" xmlns:cx6="http://schemas.microsoft.com/office/drawing/2016/5/12/chartex" xmlns:cx7="http://schemas.microsoft.com/office/drawing/2016/5/13/chartex" xmlns:cx8="http://schemas.microsoft.com/office/drawing/2016/5/14/chartex" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:aink="http://schemas.microsoft.com/office/drawing/2016/ink" xmlns:am3d="http://schemas.microsoft.com/office/drawing/2017/model3d" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships" xmlns:m="http://schemas.openxmlformats.org/officeDocument/2006/math" xmlns:v="urn:schemas-microsoft-com:vml" xmlns:wp14="http://schemas.microsoft.com/office/word/2010/wordprocessingDrawing" xmlns:wp="http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing" xmlns:w10="urn:schemas-microsoft-com:office:word" xmlns:w="http://schemas.openxmlformats.org/wordprocessingml/2006/main" xmlns:w14="http://schemas.microsoft.com/office/word/2010/wordml" xmlns:w15="http://schemas.microsoft.com/office/word/2012/wordml" xmlns:w16cex="http://schemas.microsoft.com/office/word/2018/wordml/cex" xmlns:w16cid="http://schemas.microsoft.com/office/word/2016/wordml/cid" xmlns:w16="http://schemas.microsoft.com/office/word/2018/wordml" xmlns:w16se="http://schemas.microsoft.com/office/word/2015/wordml/symex" xmlns:wpg="http://schemas.microsoft.com/office/word/2010/wordprocessingGroup" xmlns:wpi="http://schemas.microsoft.com/office/word/2010/wordprocessingInk" xmlns:wne="http://schemas.microsoft.com/office/word/2006/wordml" xmlns:wps="http://schemas.microsoft.com/office/word/2010/wordprocessingShape" mc:Ignorable="w14 w15 w16se w16cid w16 w16cex wp14"><w:body>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Arial-BoldMT" w:hAnsi="Arial-BoldMT"/><w:b/><w:sz w:val="30.000000"/><w:szCs w:val="22.500000"/></w:rPr><w:t xml:space="preserve">2 Quantifying Fuel-Saving Opportunities from Specific Driving Behavior Changes </w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Arial-BoldMT" w:hAnsi="Arial-BoldMT"/><w:b/><w:sz w:val="21.960000"/><w:szCs w:val="16.470000"/></w:rPr><w:t xml:space="preserve">2.1 </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="Arial-BoldMT" w:hAnsi="Arial-BoldMT"/><w:b/><w:sz w:val="24.000000"/><w:szCs w:val="18.000000"/></w:rPr><w:t xml:space="preserve">Savings from Improving Individual Driving Profiles</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="Arial-BoldMT" w:hAnsi="Arial-BoldMT"/><w:b/><w:sz w:val="21.960000"/><w:szCs w:val="16.470000"/></w:rPr><w:t xml:space="preserve"> </w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Arial-BoldItalicMT" w:hAnsi="Arial-BoldItalicMT"/><w:b/><w:i/><w:sz w:val="21.960000"/><w:szCs w:val="16.470000"/></w:rPr><w:t xml:space="preserve">2.1.1 Drive Profile Subsample from Real-World Travel Survey </w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT" w:hAnsi="TimesNewRomanPSMT"/><w:sz w:val="24.000000"/><w:szCs w:val="18.000000"/></w:rPr><w:t xml:space="preserve">The interim report (Gonder et al. 2010) included results from detailed analyses on five cycles selected from a large set of real-world global positioning system (GPS) travel data collected in 2006 as part of a study by the Texas Transportation Institute and the Texas Department of Transportation (Ojah and Pearson 2008). The cycles were selected to reflect a range of kinetic intensity (KI) values. (KI represents a ratio of characteristic acceleration to aerodynamic speed and has been shown to be a useful drive cycle classification parameter [O&#x2019;Keefe et al. 2007].) To determine the maximum possible cycle improvement fuel savings, the real-world cycles were converted into equivalent &#x201c;ideal&#x201d; cycles using the following steps: </w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT" w:hAnsi="TimesNewRomanPSMT"/><w:sz w:val="24.000000"/><w:szCs w:val="18.000000"/></w:rPr><w:t xml:space="preserve">1.</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="24.000000"/><w:szCs w:val="18.000000"/></w:rPr><w:t xml:space="preserve"> </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT" w:hAnsi="TimesNewRomanPSMT"/><w:sz w:val="24.000000"/><w:szCs w:val="18.000000"/></w:rPr><w:t xml:space="preserve">Calculate the trip distance of each sample trip. </w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT" w:hAnsi="TimesNewRomanPSMT"/><w:sz w:val="24.000000"/><w:szCs w:val="18.000000"/></w:rPr><w:t xml:space="preserve">2.</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="24.000000"/><w:szCs w:val="18.000000"/></w:rPr><w:t xml:space="preserve"> </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT" w:hAnsi="TimesNewRomanPSMT"/><w:sz w:val="24.000000"/><w:szCs w:val="18.000000"/></w:rPr><w:t xml:space="preserve">Eliminate stop-and-go and idling within each trip. </w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT" w:hAnsi="TimesNewRomanPSMT"/><w:sz w:val="24.000000"/><w:szCs w:val="18.000000"/></w:rPr><w:t xml:space="preserve">3.</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="24.000000"/><w:szCs w:val="18.000000"/></w:rPr><w:t xml:space="preserve"> </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT" w:hAnsi="TimesNewRomanPSMT"/><w:sz w:val="24.000000"/><w:szCs w:val="18.000000"/></w:rPr><w:t xml:space="preserve">Set the acceleration rate to 3 mph/s. </w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT" w:hAnsi="TimesNewRomanPSMT"/><w:sz w:val="24.000000"/><w:szCs w:val="18.000000"/></w:rPr><w:t xml:space="preserve">4.</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="24.000000"/><w:szCs w:val="18.000000"/></w:rPr><w:t xml:space="preserve"> </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT" w:hAnsi="TimesNewRomanPSMT"/><w:sz w:val="24.000000"/><w:szCs w:val="18.000000"/></w:rPr><w:t xml:space="preserve">Set the cruising speed to 40 mph. </w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT" w:hAnsi="TimesNewRomanPSMT"/><w:sz w:val="24.000000"/><w:szCs w:val="18.000000"/></w:rPr><w:t xml:space="preserve">5.</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="24.000000"/><w:szCs w:val="18.000000"/></w:rPr><w:t xml:space="preserve"> </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT" w:hAnsi="TimesNewRomanPSMT"/><w:sz w:val="24.000000"/><w:szCs w:val="18.000000"/></w:rPr><w:t xml:space="preserve">Continue cruising at 40 mph until the trip distance is reached. </w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT" w:hAnsi="TimesNewRomanPSMT"/><w:sz w:val="24.000000"/><w:szCs w:val="18.000000"/></w:rPr><w:t xml:space="preserve">To compare vehicle simulations over each real-world cycle and its corresponding ideal cycle, a midsize conventional vehicle model from a previous NREL study was used (Earleywine et al. 2010). The results indicated a fuel savings potential of roughly 60% for the drive profiles with either very high or very low KI and of 30%&#x2013;40% for the cycles with moderate KI values. </w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT" w:hAnsi="TimesNewRomanPSMT"/><w:sz w:val="24.000000"/><w:szCs w:val="18.000000"/></w:rPr><w:t xml:space="preserve">Table 2-1 takes the analysis of these five cycles from the interim report a step further by examining the impact of the optimization steps one at a time in isolation. As indicated by other simulations from the interim report (Gonder et al. 2010), acceleration rate reductions can deliver some small fuel savings, but avoiding accelerations and decelerations (accel/decel) altogether saves larger amounts of fuel. This suggests that driving style improvements should focus on reducing the number of stops in high KI cycles, and not just the rate of accelerating out of a stop. </w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Arial-BoldMT" w:hAnsi="Arial-BoldMT"/><w:b/><w:sz w:val="20.040000"/><w:szCs w:val="15.030000"/></w:rPr><w:t xml:space="preserve">Table 2-1. Simulated fuel savings from isolated cycle improvements </w:t></w:r>
+</w:p>
+ <w:tbl>
+ <w:tblLayout w:type="autofit"/>
+ <w:tr>
+ <w:trPr/>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="restart"/>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Arial-BoldMT" w:hAnsi="Arial-BoldMT"/><w:b/><w:sz w:val="20.040000"/><w:szCs w:val="15.030000"/></w:rPr><w:t xml:space="preserve">Cycle Name </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="restart"/>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Arial-BoldMT" w:hAnsi="Arial-BoldMT"/><w:b/><w:sz w:val="20.040000"/><w:szCs w:val="15.030000"/></w:rPr><w:t xml:space="preserve">KI (1/km) </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="restart"/>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Arial-BoldMT" w:hAnsi="Arial-BoldMT"/><w:b/><w:sz w:val="20.040000"/><w:szCs w:val="15.030000"/></w:rPr><w:t xml:space="preserve">Distance (mi) </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:gridSpan w:val="4"/>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Arial-BoldMT" w:hAnsi="Arial-BoldMT"/><w:b/><w:sz w:val="20.040000"/><w:szCs w:val="15.030000"/></w:rPr><w:t xml:space="preserve">Percent Fuel Savings </w:t></w:r>
+</w:p> </w:tc>
+ </w:tr>
+ <w:tr>
+ <w:trPr/>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Arial-BoldMT" w:hAnsi="Arial-BoldMT"/><w:b/><w:sz w:val="20.040000"/><w:szCs w:val="15.030000"/></w:rPr><w:t xml:space="preserve">Improved Speed </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Arial-BoldMT" w:hAnsi="Arial-BoldMT"/><w:b/><w:sz w:val="20.040000"/><w:szCs w:val="15.030000"/></w:rPr><w:t xml:space="preserve">Decreased Accel </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Arial-BoldMT" w:hAnsi="Arial-BoldMT"/><w:b/><w:sz w:val="20.040000"/><w:szCs w:val="15.030000"/></w:rPr><w:t xml:space="preserve">Eliminate Stops </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Arial-BoldMT" w:hAnsi="Arial-BoldMT"/><w:b/><w:sz w:val="20.040000"/><w:szCs w:val="15.030000"/></w:rPr><w:t xml:space="preserve">Decreased Idle </w:t></w:r>
+</w:p> </w:tc>
+ </w:tr>
+ <w:tr>
+ <w:trPr/>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="20.040000"/><w:szCs w:val="15.030000"/></w:rPr><w:t xml:space="preserve">2012_2 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="20.040000"/><w:szCs w:val="15.030000"/></w:rPr><w:t xml:space="preserve">3.30 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="20.040000"/><w:szCs w:val="15.030000"/></w:rPr><w:t xml:space="preserve">1.3 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="20.040000"/><w:szCs w:val="15.030000"/></w:rPr><w:t xml:space="preserve">5.9% </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="20.040000"/><w:szCs w:val="15.030000"/></w:rPr><w:t xml:space="preserve">9.5% </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="20.040000"/><w:szCs w:val="15.030000"/></w:rPr><w:t xml:space="preserve">29.2% </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="20.040000"/><w:szCs w:val="15.030000"/></w:rPr><w:t xml:space="preserve">17.4% </w:t></w:r>
+</w:p> </w:tc>
+ </w:tr>
+ <w:tr>
+ <w:trPr/>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="20.040000"/><w:szCs w:val="15.030000"/></w:rPr><w:t xml:space="preserve">2145_1 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="20.040000"/><w:szCs w:val="15.030000"/></w:rPr><w:t xml:space="preserve">0.68 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="20.040000"/><w:szCs w:val="15.030000"/></w:rPr><w:t xml:space="preserve">11.2 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="20.040000"/><w:szCs w:val="15.030000"/></w:rPr><w:t xml:space="preserve">2.4% </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="20.040000"/><w:szCs w:val="15.030000"/></w:rPr><w:t xml:space="preserve">0.1% </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="20.040000"/><w:szCs w:val="15.030000"/></w:rPr><w:t xml:space="preserve">9.5% </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="20.040000"/><w:szCs w:val="15.030000"/></w:rPr><w:t xml:space="preserve">2.7% </w:t></w:r>
+</w:p> </w:tc>
+ </w:tr>
+ <w:tr>
+ <w:trPr/>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="20.040000"/><w:szCs w:val="15.030000"/></w:rPr><w:t xml:space="preserve">4234_1 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="20.040000"/><w:szCs w:val="15.030000"/></w:rPr><w:t xml:space="preserve">0.59 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="20.040000"/><w:szCs w:val="15.030000"/></w:rPr><w:t xml:space="preserve">58.7 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="20.040000"/><w:szCs w:val="15.030000"/></w:rPr><w:t xml:space="preserve">8.5% </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="20.040000"/><w:szCs w:val="15.030000"/></w:rPr><w:t xml:space="preserve">1.3% </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="20.040000"/><w:szCs w:val="15.030000"/></w:rPr><w:t xml:space="preserve">8.5% </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="20.040000"/><w:szCs w:val="15.030000"/></w:rPr><w:t xml:space="preserve">3.3% </w:t></w:r>
+</w:p> </w:tc>
+ </w:tr>
+ <w:tr>
+ <w:trPr/>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="20.040000"/><w:szCs w:val="15.030000"/></w:rPr><w:t xml:space="preserve">2032_2 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="20.040000"/><w:szCs w:val="15.030000"/></w:rPr><w:t xml:space="preserve">0.17 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="20.040000"/><w:szCs w:val="15.030000"/></w:rPr><w:t xml:space="preserve">57.8 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="20.040000"/><w:szCs w:val="15.030000"/></w:rPr><w:t xml:space="preserve">21.7% </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="20.040000"/><w:szCs w:val="15.030000"/></w:rPr><w:t xml:space="preserve">0.3% </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="20.040000"/><w:szCs w:val="15.030000"/></w:rPr><w:t xml:space="preserve">2.7% </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="20.040000"/><w:szCs w:val="15.030000"/></w:rPr><w:t xml:space="preserve">1.2% </w:t></w:r>
+</w:p> </w:tc>
+ </w:tr>
+ <w:tr>
+ <w:trPr/>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="20.040000"/><w:szCs w:val="15.030000"/></w:rPr><w:t xml:space="preserve">4171_1 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="20.040000"/><w:szCs w:val="15.030000"/></w:rPr><w:t xml:space="preserve">0.07 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="20.040000"/><w:szCs w:val="15.030000"/></w:rPr><w:t xml:space="preserve">173.9 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="20.040000"/><w:szCs w:val="15.030000"/></w:rPr><w:t xml:space="preserve">58.1% </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="20.040000"/><w:szCs w:val="15.030000"/></w:rPr><w:t xml:space="preserve">1.6% </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="20.040000"/><w:szCs w:val="15.030000"/></w:rPr><w:t xml:space="preserve">2.1% </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="20.040000"/><w:szCs w:val="15.030000"/></w:rPr><w:t xml:space="preserve">0.5% </w:t></w:r>
+</w:p> </w:tc>
+ </w:tr>
+ </w:tbl>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="ArialMT" w:hAnsi="ArialMT"/><w:sz w:val="21.960000"/><w:szCs w:val="16.470000"/></w:rPr><w:t xml:space="preserve"> </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT" w:hAnsi="TimesNewRomanPSMT"/><w:sz w:val="24.000000"/><w:szCs w:val="18.000000"/></w:rPr><w:t xml:space="preserve">Figure 2-1 extends the analysis from eliminating stops for the five example cycles and examines the additional benefit from avoiding slow-and-go driving below various speed thresholds. </w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT" w:hAnsi="TimesNewRomanPSMT"/><w:sz w:val="24.000000"/><w:szCs w:val="18.000000"/></w:rPr><w:t xml:space="preserve">3 </w:t></w:r>
+</w:p></w:body></w:document> \ No newline at end of file
diff --git a/extract/test/table.pdf.mutool.docx.dir.ref/word/fontTable.xml b/extract/test/table.pdf.mutool.docx.dir.ref/word/fontTable.xml
new file mode 100644
index 00000000..a39546e5
--- /dev/null
+++ b/extract/test/table.pdf.mutool.docx.dir.ref/word/fontTable.xml
@@ -0,0 +1,2 @@
+<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
+<w:fonts xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships" xmlns:w="http://schemas.openxmlformats.org/wordprocessingml/2006/main" xmlns:w14="http://schemas.microsoft.com/office/word/2010/wordml" xmlns:w15="http://schemas.microsoft.com/office/word/2012/wordml" xmlns:w16cex="http://schemas.microsoft.com/office/word/2018/wordml/cex" xmlns:w16cid="http://schemas.microsoft.com/office/word/2016/wordml/cid" xmlns:w16="http://schemas.microsoft.com/office/word/2018/wordml" xmlns:w16se="http://schemas.microsoft.com/office/word/2015/wordml/symex" mc:Ignorable="w14 w15 w16se w16cid w16 w16cex"><w:font w:name="Calibri"><w:panose1 w:val="020F0502020204030204"/><w:charset w:val="00"/><w:family w:val="swiss"/><w:pitch w:val="variable"/><w:sig w:usb0="E4002EFF" w:usb1="C000247B" w:usb2="00000009" w:usb3="00000000" w:csb0="000001FF" w:csb1="00000000"/></w:font><w:font w:name="Times New Roman"><w:panose1 w:val="02020603050405020304"/><w:charset w:val="00"/><w:family w:val="roman"/><w:pitch w:val="variable"/><w:sig w:usb0="E0002EFF" w:usb1="C000785B" w:usb2="00000009" w:usb3="00000000" w:csb0="000001FF" w:csb1="00000000"/></w:font><w:font w:name="Calibri Light"><w:panose1 w:val="020F0302020204030204"/><w:charset w:val="00"/><w:family w:val="swiss"/><w:pitch w:val="variable"/><w:sig w:usb0="E4002EFF" w:usb1="C000247B" w:usb2="00000009" w:usb3="00000000" w:csb0="000001FF" w:csb1="00000000"/></w:font></w:fonts> \ No newline at end of file
diff --git a/extract/test/table.pdf.mutool.docx.dir.ref/word/settings.xml b/extract/test/table.pdf.mutool.docx.dir.ref/word/settings.xml
new file mode 100644
index 00000000..c403540d
--- /dev/null
+++ b/extract/test/table.pdf.mutool.docx.dir.ref/word/settings.xml
@@ -0,0 +1,2 @@
+<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
+<w:settings xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships" xmlns:m="http://schemas.openxmlformats.org/officeDocument/2006/math" xmlns:v="urn:schemas-microsoft-com:vml" xmlns:w10="urn:schemas-microsoft-com:office:word" xmlns:w="http://schemas.openxmlformats.org/wordprocessingml/2006/main" xmlns:w14="http://schemas.microsoft.com/office/word/2010/wordml" xmlns:w15="http://schemas.microsoft.com/office/word/2012/wordml" xmlns:w16cex="http://schemas.microsoft.com/office/word/2018/wordml/cex" xmlns:w16cid="http://schemas.microsoft.com/office/word/2016/wordml/cid" xmlns:w16="http://schemas.microsoft.com/office/word/2018/wordml" xmlns:w16se="http://schemas.microsoft.com/office/word/2015/wordml/symex" xmlns:sl="http://schemas.openxmlformats.org/schemaLibrary/2006/main" mc:Ignorable="w14 w15 w16se w16cid w16 w16cex"><w:zoom w:percent="100"/><w:proofState w:spelling="clean" w:grammar="clean"/><w:defaultTabStop w:val="720"/><w:characterSpacingControl w:val="doNotCompress"/><w:compat><w:compatSetting w:name="compatibilityMode" w:uri="http://schemas.microsoft.com/office/word" w:val="15"/><w:compatSetting w:name="overrideTableStyleFontSizeAndJustification" w:uri="http://schemas.microsoft.com/office/word" w:val="1"/><w:compatSetting w:name="enableOpenTypeFeatures" w:uri="http://schemas.microsoft.com/office/word" w:val="1"/><w:compatSetting w:name="doNotFlipMirrorIndents" w:uri="http://schemas.microsoft.com/office/word" w:val="1"/><w:compatSetting w:name="differentiateMultirowTableHeaders" w:uri="http://schemas.microsoft.com/office/word" w:val="1"/><w:compatSetting w:name="useWord2013TrackBottomHyphenation" w:uri="http://schemas.microsoft.com/office/word" w:val="0"/></w:compat><w:rsids><w:rsidRoot w:val="007F4427"/><w:rsid w:val="00255448"/><w:rsid w:val="007F4427"/></w:rsids><m:mathPr><m:mathFont m:val="Cambria Math"/><m:brkBin m:val="before"/><m:brkBinSub m:val="--"/><m:smallFrac m:val="0"/><m:dispDef/><m:lMargin m:val="0"/><m:rMargin m:val="0"/><m:defJc m:val="centerGroup"/><m:wrapIndent m:val="1440"/><m:intLim m:val="subSup"/><m:naryLim m:val="undOvr"/></m:mathPr><w:themeFontLang w:val="en-GB"/><w:clrSchemeMapping w:bg1="light1" w:t1="dark1" w:bg2="light2" w:t2="dark2" w:accent1="accent1" w:accent2="accent2" w:accent3="accent3" w:accent4="accent4" w:accent5="accent5" w:accent6="accent6" w:hyperlink="hyperlink" w:followedHyperlink="followedHyperlink"/><w:shapeDefaults><o:shapedefaults v:ext="edit" spidmax="1026"/><o:shapelayout v:ext="edit"><o:idmap v:ext="edit" data="1"/></o:shapelayout></w:shapeDefaults><w:decimalSymbol w:val="."/><w:listSeparator w:val=","/><w14:docId w14:val="32E52EF8"/><w15:chartTrackingRefBased/><w15:docId w15:val="{A10F59F7-497D-44D4-A338-47719734E7A0}"/></w:settings> \ No newline at end of file
diff --git a/extract/test/table.pdf.mutool.docx.dir.ref/word/styles.xml b/extract/test/table.pdf.mutool.docx.dir.ref/word/styles.xml
new file mode 100644
index 00000000..38e5e2bd
--- /dev/null
+++ b/extract/test/table.pdf.mutool.docx.dir.ref/word/styles.xml
@@ -0,0 +1,2 @@
+<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
+<w:styles xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships" xmlns:w="http://schemas.openxmlformats.org/wordprocessingml/2006/main" xmlns:w14="http://schemas.microsoft.com/office/word/2010/wordml" xmlns:w15="http://schemas.microsoft.com/office/word/2012/wordml" xmlns:w16cex="http://schemas.microsoft.com/office/word/2018/wordml/cex" xmlns:w16cid="http://schemas.microsoft.com/office/word/2016/wordml/cid" xmlns:w16="http://schemas.microsoft.com/office/word/2018/wordml" xmlns:w16se="http://schemas.microsoft.com/office/word/2015/wordml/symex" mc:Ignorable="w14 w15 w16se w16cid w16 w16cex"><w:docDefaults><w:rPrDefault><w:rPr><w:rFonts w:asciiTheme="minorHAnsi" w:eastAsiaTheme="minorHAnsi" w:hAnsiTheme="minorHAnsi" w:cstheme="minorBidi"/><w:sz w:val="22"/><w:szCs w:val="22"/><w:lang w:val="en-GB" w:eastAsia="en-US" w:bidi="ar-SA"/></w:rPr></w:rPrDefault><w:pPrDefault><w:pPr><w:spacing w:after="160" w:line="259" w:lineRule="auto"/></w:pPr></w:pPrDefault></w:docDefaults><w:latentStyles w:defLockedState="0" w:defUIPriority="99" w:defSemiHidden="0" w:defUnhideWhenUsed="0" w:defQFormat="0" w:count="376"><w:lsdException w:name="Normal" w:uiPriority="0" w:qFormat="1"/><w:lsdException w:name="heading 1" w:uiPriority="9" w:qFormat="1"/><w:lsdException w:name="heading 2" w:semiHidden="1" w:uiPriority="9" w:unhideWhenUsed="1" w:qFormat="1"/><w:lsdException w:name="heading 3" w:semiHidden="1" w:uiPriority="9" w:unhideWhenUsed="1" w:qFormat="1"/><w:lsdException w:name="heading 4" w:semiHidden="1" w:uiPriority="9" w:unhideWhenUsed="1" w:qFormat="1"/><w:lsdException w:name="heading 5" w:semiHidden="1" w:uiPriority="9" w:unhideWhenUsed="1" w:qFormat="1"/><w:lsdException w:name="heading 6" w:semiHidden="1" w:uiPriority="9" w:unhideWhenUsed="1" w:qFormat="1"/><w:lsdException w:name="heading 7" w:semiHidden="1" w:uiPriority="9" w:unhideWhenUsed="1" w:qFormat="1"/><w:lsdException w:name="heading 8" w:semiHidden="1" w:uiPriority="9" w:unhideWhenUsed="1" w:qFormat="1"/><w:lsdException w:name="heading 9" w:semiHidden="1" w:uiPriority="9" w:unhideWhenUsed="1" w:qFormat="1"/><w:lsdException w:name="index 1" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="index 2" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="index 3" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="index 4" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="index 5" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="index 6" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="index 7" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="index 8" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="index 9" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="toc 1" w:semiHidden="1" w:uiPriority="39" w:unhideWhenUsed="1"/><w:lsdException w:name="toc 2" w:semiHidden="1" w:uiPriority="39" w:unhideWhenUsed="1"/><w:lsdException w:name="toc 3" w:semiHidden="1" w:uiPriority="39" w:unhideWhenUsed="1"/><w:lsdException w:name="toc 4" w:semiHidden="1" w:uiPriority="39" w:unhideWhenUsed="1"/><w:lsdException w:name="toc 5" w:semiHidden="1" w:uiPriority="39" w:unhideWhenUsed="1"/><w:lsdException w:name="toc 6" w:semiHidden="1" w:uiPriority="39" w:unhideWhenUsed="1"/><w:lsdException w:name="toc 7" w:semiHidden="1" w:uiPriority="39" w:unhideWhenUsed="1"/><w:lsdException w:name="toc 8" w:semiHidden="1" w:uiPriority="39" w:unhideWhenUsed="1"/><w:lsdException w:name="toc 9" w:semiHidden="1" w:uiPriority="39" w:unhideWhenUsed="1"/><w:lsdException w:name="Normal Indent" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="footnote text" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="annotation text" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="header" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="footer" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="index heading" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="caption" w:semiHidden="1" w:uiPriority="35" w:unhideWhenUsed="1" w:qFormat="1"/><w:lsdException w:name="table of figures" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="envelope address" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="envelope return" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="footnote reference" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="annotation reference" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="line number" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="page number" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="endnote reference" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="endnote text" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="table of authorities" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="macro" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="toa heading" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="List" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="List Bullet" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="List Number" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="List 2" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="List 3" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="List 4" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="List 5" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="List Bullet 2" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="List Bullet 3" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="List Bullet 4" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="List Bullet 5" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="List Number 2" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="List Number 3" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="List Number 4" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="List Number 5" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Title" w:uiPriority="10" w:qFormat="1"/><w:lsdException w:name="Closing" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Signature" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Default Paragraph Font" w:semiHidden="1" w:uiPriority="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Body Text" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Body Text Indent" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="List Continue" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="List Continue 2" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="List Continue 3" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="List Continue 4" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="List Continue 5" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Message Header" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Subtitle" w:uiPriority="11" w:qFormat="1"/><w:lsdException w:name="Salutation" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Date" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Body Text First Indent" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Body Text First Indent 2" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Note Heading" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Body Text 2" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Body Text 3" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Body Text Indent 2" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Body Text Indent 3" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Block Text" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Hyperlink" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="FollowedHyperlink" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Strong" w:uiPriority="22" w:qFormat="1"/><w:lsdException w:name="Emphasis" w:uiPriority="20" w:qFormat="1"/><w:lsdException w:name="Document Map" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Plain Text" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="E-mail Signature" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="HTML Top of Form" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="HTML Bottom of Form" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Normal (Web)" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="HTML Acronym" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="HTML Address" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="HTML Cite" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="HTML Code" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="HTML Definition" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="HTML Keyboard" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="HTML Preformatted" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="HTML Sample" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="HTML Typewriter" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="HTML Variable" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Normal Table" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="annotation subject" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="No List" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Outline List 1" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Outline List 2" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Outline List 3" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Simple 1" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Simple 2" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Simple 3" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Classic 1" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Classic 2" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Classic 3" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Classic 4" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Colorful 1" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Colorful 2" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Colorful 3" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Columns 1" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Columns 2" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Columns 3" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Columns 4" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Columns 5" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Grid 1" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Grid 2" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Grid 3" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Grid 4" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Grid 5" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Grid 6" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Grid 7" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Grid 8" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table List 1" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table List 2" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table List 3" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table List 4" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table List 5" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table List 6" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table List 7" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table List 8" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table 3D effects 1" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table 3D effects 2" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table 3D effects 3" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Contemporary" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Elegant" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Professional" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Subtle 1" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Subtle 2" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Web 1" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Web 2" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Web 3" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Balloon Text" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Grid" w:uiPriority="39"/><w:lsdException w:name="Table Theme" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Placeholder Text" w:semiHidden="1"/><w:lsdException w:name="No Spacing" w:uiPriority="1" w:qFormat="1"/><w:lsdException w:name="Light Shading" w:uiPriority="60"/><w:lsdException w:name="Light List" w:uiPriority="61"/><w:lsdException w:name="Light Grid" w:uiPriority="62"/><w:lsdException w:name="Medium Shading 1" w:uiPriority="63"/><w:lsdException w:name="Medium Shading 2" w:uiPriority="64"/><w:lsdException w:name="Medium List 1" w:uiPriority="65"/><w:lsdException w:name="Medium List 2" w:uiPriority="66"/><w:lsdException w:name="Medium Grid 1" w:uiPriority="67"/><w:lsdException w:name="Medium Grid 2" w:uiPriority="68"/><w:lsdException w:name="Medium Grid 3" w:uiPriority="69"/><w:lsdException w:name="Dark List" w:uiPriority="70"/><w:lsdException w:name="Colorful Shading" w:uiPriority="71"/><w:lsdException w:name="Colorful List" w:uiPriority="72"/><w:lsdException w:name="Colorful Grid" w:uiPriority="73"/><w:lsdException w:name="Light Shading Accent 1" w:uiPriority="60"/><w:lsdException w:name="Light List Accent 1" w:uiPriority="61"/><w:lsdException w:name="Light Grid Accent 1" w:uiPriority="62"/><w:lsdException w:name="Medium Shading 1 Accent 1" w:uiPriority="63"/><w:lsdException w:name="Medium Shading 2 Accent 1" w:uiPriority="64"/><w:lsdException w:name="Medium List 1 Accent 1" w:uiPriority="65"/><w:lsdException w:name="Revision" w:semiHidden="1"/><w:lsdException w:name="List Paragraph" w:uiPriority="34" w:qFormat="1"/><w:lsdException w:name="Quote" w:uiPriority="29" w:qFormat="1"/><w:lsdException w:name="Intense Quote" w:uiPriority="30" w:qFormat="1"/><w:lsdException w:name="Medium List 2 Accent 1" w:uiPriority="66"/><w:lsdException w:name="Medium Grid 1 Accent 1" w:uiPriority="67"/><w:lsdException w:name="Medium Grid 2 Accent 1" w:uiPriority="68"/><w:lsdException w:name="Medium Grid 3 Accent 1" w:uiPriority="69"/><w:lsdException w:name="Dark List Accent 1" w:uiPriority="70"/><w:lsdException w:name="Colorful Shading Accent 1" w:uiPriority="71"/><w:lsdException w:name="Colorful List Accent 1" w:uiPriority="72"/><w:lsdException w:name="Colorful Grid Accent 1" w:uiPriority="73"/><w:lsdException w:name="Light Shading Accent 2" w:uiPriority="60"/><w:lsdException w:name="Light List Accent 2" w:uiPriority="61"/><w:lsdException w:name="Light Grid Accent 2" w:uiPriority="62"/><w:lsdException w:name="Medium Shading 1 Accent 2" w:uiPriority="63"/><w:lsdException w:name="Medium Shading 2 Accent 2" w:uiPriority="64"/><w:lsdException w:name="Medium List 1 Accent 2" w:uiPriority="65"/><w:lsdException w:name="Medium List 2 Accent 2" w:uiPriority="66"/><w:lsdException w:name="Medium Grid 1 Accent 2" w:uiPriority="67"/><w:lsdException w:name="Medium Grid 2 Accent 2" w:uiPriority="68"/><w:lsdException w:name="Medium Grid 3 Accent 2" w:uiPriority="69"/><w:lsdException w:name="Dark List Accent 2" w:uiPriority="70"/><w:lsdException w:name="Colorful Shading Accent 2" w:uiPriority="71"/><w:lsdException w:name="Colorful List Accent 2" w:uiPriority="72"/><w:lsdException w:name="Colorful Grid Accent 2" w:uiPriority="73"/><w:lsdException w:name="Light Shading Accent 3" w:uiPriority="60"/><w:lsdException w:name="Light List Accent 3" w:uiPriority="61"/><w:lsdException w:name="Light Grid Accent 3" w:uiPriority="62"/><w:lsdException w:name="Medium Shading 1 Accent 3" w:uiPriority="63"/><w:lsdException w:name="Medium Shading 2 Accent 3" w:uiPriority="64"/><w:lsdException w:name="Medium List 1 Accent 3" w:uiPriority="65"/><w:lsdException w:name="Medium List 2 Accent 3" w:uiPriority="66"/><w:lsdException w:name="Medium Grid 1 Accent 3" w:uiPriority="67"/><w:lsdException w:name="Medium Grid 2 Accent 3" w:uiPriority="68"/><w:lsdException w:name="Medium Grid 3 Accent 3" w:uiPriority="69"/><w:lsdException w:name="Dark List Accent 3" w:uiPriority="70"/><w:lsdException w:name="Colorful Shading Accent 3" w:uiPriority="71"/><w:lsdException w:name="Colorful List Accent 3" w:uiPriority="72"/><w:lsdException w:name="Colorful Grid Accent 3" w:uiPriority="73"/><w:lsdException w:name="Light Shading Accent 4" w:uiPriority="60"/><w:lsdException w:name="Light List Accent 4" w:uiPriority="61"/><w:lsdException w:name="Light Grid Accent 4" w:uiPriority="62"/><w:lsdException w:name="Medium Shading 1 Accent 4" w:uiPriority="63"/><w:lsdException w:name="Medium Shading 2 Accent 4" w:uiPriority="64"/><w:lsdException w:name="Medium List 1 Accent 4" w:uiPriority="65"/><w:lsdException w:name="Medium List 2 Accent 4" w:uiPriority="66"/><w:lsdException w:name="Medium Grid 1 Accent 4" w:uiPriority="67"/><w:lsdException w:name="Medium Grid 2 Accent 4" w:uiPriority="68"/><w:lsdException w:name="Medium Grid 3 Accent 4" w:uiPriority="69"/><w:lsdException w:name="Dark List Accent 4" w:uiPriority="70"/><w:lsdException w:name="Colorful Shading Accent 4" w:uiPriority="71"/><w:lsdException w:name="Colorful List Accent 4" w:uiPriority="72"/><w:lsdException w:name="Colorful Grid Accent 4" w:uiPriority="73"/><w:lsdException w:name="Light Shading Accent 5" w:uiPriority="60"/><w:lsdException w:name="Light List Accent 5" w:uiPriority="61"/><w:lsdException w:name="Light Grid Accent 5" w:uiPriority="62"/><w:lsdException w:name="Medium Shading 1 Accent 5" w:uiPriority="63"/><w:lsdException w:name="Medium Shading 2 Accent 5" w:uiPriority="64"/><w:lsdException w:name="Medium List 1 Accent 5" w:uiPriority="65"/><w:lsdException w:name="Medium List 2 Accent 5" w:uiPriority="66"/><w:lsdException w:name="Medium Grid 1 Accent 5" w:uiPriority="67"/><w:lsdException w:name="Medium Grid 2 Accent 5" w:uiPriority="68"/><w:lsdException w:name="Medium Grid 3 Accent 5" w:uiPriority="69"/><w:lsdException w:name="Dark List Accent 5" w:uiPriority="70"/><w:lsdException w:name="Colorful Shading Accent 5" w:uiPriority="71"/><w:lsdException w:name="Colorful List Accent 5" w:uiPriority="72"/><w:lsdException w:name="Colorful Grid Accent 5" w:uiPriority="73"/><w:lsdException w:name="Light Shading Accent 6" w:uiPriority="60"/><w:lsdException w:name="Light List Accent 6" w:uiPriority="61"/><w:lsdException w:name="Light Grid Accent 6" w:uiPriority="62"/><w:lsdException w:name="Medium Shading 1 Accent 6" w:uiPriority="63"/><w:lsdException w:name="Medium Shading 2 Accent 6" w:uiPriority="64"/><w:lsdException w:name="Medium List 1 Accent 6" w:uiPriority="65"/><w:lsdException w:name="Medium List 2 Accent 6" w:uiPriority="66"/><w:lsdException w:name="Medium Grid 1 Accent 6" w:uiPriority="67"/><w:lsdException w:name="Medium Grid 2 Accent 6" w:uiPriority="68"/><w:lsdException w:name="Medium Grid 3 Accent 6" w:uiPriority="69"/><w:lsdException w:name="Dark List Accent 6" w:uiPriority="70"/><w:lsdException w:name="Colorful Shading Accent 6" w:uiPriority="71"/><w:lsdException w:name="Colorful List Accent 6" w:uiPriority="72"/><w:lsdException w:name="Colorful Grid Accent 6" w:uiPriority="73"/><w:lsdException w:name="Subtle Emphasis" w:uiPriority="19" w:qFormat="1"/><w:lsdException w:name="Intense Emphasis" w:uiPriority="21" w:qFormat="1"/><w:lsdException w:name="Subtle Reference" w:uiPriority="31" w:qFormat="1"/><w:lsdException w:name="Intense Reference" w:uiPriority="32" w:qFormat="1"/><w:lsdException w:name="Book Title" w:uiPriority="33" w:qFormat="1"/><w:lsdException w:name="Bibliography" w:semiHidden="1" w:uiPriority="37" w:unhideWhenUsed="1"/><w:lsdException w:name="TOC Heading" w:semiHidden="1" w:uiPriority="39" w:unhideWhenUsed="1" w:qFormat="1"/><w:lsdException w:name="Plain Table 1" w:uiPriority="41"/><w:lsdException w:name="Plain Table 2" w:uiPriority="42"/><w:lsdException w:name="Plain Table 3" w:uiPriority="43"/><w:lsdException w:name="Plain Table 4" w:uiPriority="44"/><w:lsdException w:name="Plain Table 5" w:uiPriority="45"/><w:lsdException w:name="Grid Table Light" w:uiPriority="40"/><w:lsdException w:name="Grid Table 1 Light" w:uiPriority="46"/><w:lsdException w:name="Grid Table 2" w:uiPriority="47"/><w:lsdException w:name="Grid Table 3" w:uiPriority="48"/><w:lsdException w:name="Grid Table 4" w:uiPriority="49"/><w:lsdException w:name="Grid Table 5 Dark" w:uiPriority="50"/><w:lsdException w:name="Grid Table 6 Colorful" w:uiPriority="51"/><w:lsdException w:name="Grid Table 7 Colorful" w:uiPriority="52"/><w:lsdException w:name="Grid Table 1 Light Accent 1" w:uiPriority="46"/><w:lsdException w:name="Grid Table 2 Accent 1" w:uiPriority="47"/><w:lsdException w:name="Grid Table 3 Accent 1" w:uiPriority="48"/><w:lsdException w:name="Grid Table 4 Accent 1" w:uiPriority="49"/><w:lsdException w:name="Grid Table 5 Dark Accent 1" w:uiPriority="50"/><w:lsdException w:name="Grid Table 6 Colorful Accent 1" w:uiPriority="51"/><w:lsdException w:name="Grid Table 7 Colorful Accent 1" w:uiPriority="52"/><w:lsdException w:name="Grid Table 1 Light Accent 2" w:uiPriority="46"/><w:lsdException w:name="Grid Table 2 Accent 2" w:uiPriority="47"/><w:lsdException w:name="Grid Table 3 Accent 2" w:uiPriority="48"/><w:lsdException w:name="Grid Table 4 Accent 2" w:uiPriority="49"/><w:lsdException w:name="Grid Table 5 Dark Accent 2" w:uiPriority="50"/><w:lsdException w:name="Grid Table 6 Colorful Accent 2" w:uiPriority="51"/><w:lsdException w:name="Grid Table 7 Colorful Accent 2" w:uiPriority="52"/><w:lsdException w:name="Grid Table 1 Light Accent 3" w:uiPriority="46"/><w:lsdException w:name="Grid Table 2 Accent 3" w:uiPriority="47"/><w:lsdException w:name="Grid Table 3 Accent 3" w:uiPriority="48"/><w:lsdException w:name="Grid Table 4 Accent 3" w:uiPriority="49"/><w:lsdException w:name="Grid Table 5 Dark Accent 3" w:uiPriority="50"/><w:lsdException w:name="Grid Table 6 Colorful Accent 3" w:uiPriority="51"/><w:lsdException w:name="Grid Table 7 Colorful Accent 3" w:uiPriority="52"/><w:lsdException w:name="Grid Table 1 Light Accent 4" w:uiPriority="46"/><w:lsdException w:name="Grid Table 2 Accent 4" w:uiPriority="47"/><w:lsdException w:name="Grid Table 3 Accent 4" w:uiPriority="48"/><w:lsdException w:name="Grid Table 4 Accent 4" w:uiPriority="49"/><w:lsdException w:name="Grid Table 5 Dark Accent 4" w:uiPriority="50"/><w:lsdException w:name="Grid Table 6 Colorful Accent 4" w:uiPriority="51"/><w:lsdException w:name="Grid Table 7 Colorful Accent 4" w:uiPriority="52"/><w:lsdException w:name="Grid Table 1 Light Accent 5" w:uiPriority="46"/><w:lsdException w:name="Grid Table 2 Accent 5" w:uiPriority="47"/><w:lsdException w:name="Grid Table 3 Accent 5" w:uiPriority="48"/><w:lsdException w:name="Grid Table 4 Accent 5" w:uiPriority="49"/><w:lsdException w:name="Grid Table 5 Dark Accent 5" w:uiPriority="50"/><w:lsdException w:name="Grid Table 6 Colorful Accent 5" w:uiPriority="51"/><w:lsdException w:name="Grid Table 7 Colorful Accent 5" w:uiPriority="52"/><w:lsdException w:name="Grid Table 1 Light Accent 6" w:uiPriority="46"/><w:lsdException w:name="Grid Table 2 Accent 6" w:uiPriority="47"/><w:lsdException w:name="Grid Table 3 Accent 6" w:uiPriority="48"/><w:lsdException w:name="Grid Table 4 Accent 6" w:uiPriority="49"/><w:lsdException w:name="Grid Table 5 Dark Accent 6" w:uiPriority="50"/><w:lsdException w:name="Grid Table 6 Colorful Accent 6" w:uiPriority="51"/><w:lsdException w:name="Grid Table 7 Colorful Accent 6" w:uiPriority="52"/><w:lsdException w:name="List Table 1 Light" w:uiPriority="46"/><w:lsdException w:name="List Table 2" w:uiPriority="47"/><w:lsdException w:name="List Table 3" w:uiPriority="48"/><w:lsdException w:name="List Table 4" w:uiPriority="49"/><w:lsdException w:name="List Table 5 Dark" w:uiPriority="50"/><w:lsdException w:name="List Table 6 Colorful" w:uiPriority="51"/><w:lsdException w:name="List Table 7 Colorful" w:uiPriority="52"/><w:lsdException w:name="List Table 1 Light Accent 1" w:uiPriority="46"/><w:lsdException w:name="List Table 2 Accent 1" w:uiPriority="47"/><w:lsdException w:name="List Table 3 Accent 1" w:uiPriority="48"/><w:lsdException w:name="List Table 4 Accent 1" w:uiPriority="49"/><w:lsdException w:name="List Table 5 Dark Accent 1" w:uiPriority="50"/><w:lsdException w:name="List Table 6 Colorful Accent 1" w:uiPriority="51"/><w:lsdException w:name="List Table 7 Colorful Accent 1" w:uiPriority="52"/><w:lsdException w:name="List Table 1 Light Accent 2" w:uiPriority="46"/><w:lsdException w:name="List Table 2 Accent 2" w:uiPriority="47"/><w:lsdException w:name="List Table 3 Accent 2" w:uiPriority="48"/><w:lsdException w:name="List Table 4 Accent 2" w:uiPriority="49"/><w:lsdException w:name="List Table 5 Dark Accent 2" w:uiPriority="50"/><w:lsdException w:name="List Table 6 Colorful Accent 2" w:uiPriority="51"/><w:lsdException w:name="List Table 7 Colorful Accent 2" w:uiPriority="52"/><w:lsdException w:name="List Table 1 Light Accent 3" w:uiPriority="46"/><w:lsdException w:name="List Table 2 Accent 3" w:uiPriority="47"/><w:lsdException w:name="List Table 3 Accent 3" w:uiPriority="48"/><w:lsdException w:name="List Table 4 Accent 3" w:uiPriority="49"/><w:lsdException w:name="List Table 5 Dark Accent 3" w:uiPriority="50"/><w:lsdException w:name="List Table 6 Colorful Accent 3" w:uiPriority="51"/><w:lsdException w:name="List Table 7 Colorful Accent 3" w:uiPriority="52"/><w:lsdException w:name="List Table 1 Light Accent 4" w:uiPriority="46"/><w:lsdException w:name="List Table 2 Accent 4" w:uiPriority="47"/><w:lsdException w:name="List Table 3 Accent 4" w:uiPriority="48"/><w:lsdException w:name="List Table 4 Accent 4" w:uiPriority="49"/><w:lsdException w:name="List Table 5 Dark Accent 4" w:uiPriority="50"/><w:lsdException w:name="List Table 6 Colorful Accent 4" w:uiPriority="51"/><w:lsdException w:name="List Table 7 Colorful Accent 4" w:uiPriority="52"/><w:lsdException w:name="List Table 1 Light Accent 5" w:uiPriority="46"/><w:lsdException w:name="List Table 2 Accent 5" w:uiPriority="47"/><w:lsdException w:name="List Table 3 Accent 5" w:uiPriority="48"/><w:lsdException w:name="List Table 4 Accent 5" w:uiPriority="49"/><w:lsdException w:name="List Table 5 Dark Accent 5" w:uiPriority="50"/><w:lsdException w:name="List Table 6 Colorful Accent 5" w:uiPriority="51"/><w:lsdException w:name="List Table 7 Colorful Accent 5" w:uiPriority="52"/><w:lsdException w:name="List Table 1 Light Accent 6" w:uiPriority="46"/><w:lsdException w:name="List Table 2 Accent 6" w:uiPriority="47"/><w:lsdException w:name="List Table 3 Accent 6" w:uiPriority="48"/><w:lsdException w:name="List Table 4 Accent 6" w:uiPriority="49"/><w:lsdException w:name="List Table 5 Dark Accent 6" w:uiPriority="50"/><w:lsdException w:name="List Table 6 Colorful Accent 6" w:uiPriority="51"/><w:lsdException w:name="List Table 7 Colorful Accent 6" w:uiPriority="52"/><w:lsdException w:name="Mention" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Smart Hyperlink" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Hashtag" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Unresolved Mention" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Smart Link" w:semiHidden="1" w:unhideWhenUsed="1"/></w:latentStyles><w:style w:type="paragraph" w:default="1" w:styleId="Normal"><w:name w:val="Normal"/><w:qFormat/></w:style><w:style w:type="character" w:default="1" w:styleId="DefaultParagraphFont"><w:name w:val="Default Paragraph Font"/><w:uiPriority w:val="1"/><w:semiHidden/><w:unhideWhenUsed/></w:style><w:style w:type="table" w:default="1" w:styleId="TableNormal"><w:name w:val="Normal Table"/><w:uiPriority w:val="99"/><w:semiHidden/><w:unhideWhenUsed/><w:tblPr><w:tblInd w:w="0" w:type="dxa"/><w:tblCellMar><w:top w:w="0" w:type="dxa"/><w:left w:w="108" w:type="dxa"/><w:bottom w:w="0" w:type="dxa"/><w:right w:w="108" w:type="dxa"/></w:tblCellMar></w:tblPr></w:style><w:style w:type="numbering" w:default="1" w:styleId="NoList"><w:name w:val="No List"/><w:uiPriority w:val="99"/><w:semiHidden/><w:unhideWhenUsed/></w:style></w:styles> \ No newline at end of file
diff --git a/extract/test/table.pdf.mutool.docx.dir.ref/word/theme/theme1.xml b/extract/test/table.pdf.mutool.docx.dir.ref/word/theme/theme1.xml
new file mode 100644
index 00000000..d1a502f8
--- /dev/null
+++ b/extract/test/table.pdf.mutool.docx.dir.ref/word/theme/theme1.xml
@@ -0,0 +1,2 @@
+<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
+<a:theme xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main" name="Office Theme"><a:themeElements><a:clrScheme name="Office"><a:dk1><a:sysClr val="windowText" lastClr="000000"/></a:dk1><a:lt1><a:sysClr val="window" lastClr="FFFFFF"/></a:lt1><a:dk2><a:srgbClr val="44546A"/></a:dk2><a:lt2><a:srgbClr val="E7E6E6"/></a:lt2><a:accent1><a:srgbClr val="4472C4"/></a:accent1><a:accent2><a:srgbClr val="ED7D31"/></a:accent2><a:accent3><a:srgbClr val="A5A5A5"/></a:accent3><a:accent4><a:srgbClr val="FFC000"/></a:accent4><a:accent5><a:srgbClr val="5B9BD5"/></a:accent5><a:accent6><a:srgbClr val="70AD47"/></a:accent6><a:hlink><a:srgbClr val="0563C1"/></a:hlink><a:folHlink><a:srgbClr val="954F72"/></a:folHlink></a:clrScheme><a:fontScheme name="Office"><a:majorFont><a:latin typeface="Calibri Light" panose="020F0302020204030204"/><a:ea typeface=""/><a:cs typeface=""/><a:font script="Jpan" typeface="游ゴシック Light"/><a:font script="Hang" typeface="맑은 고딕"/><a:font script="Hans" typeface="等线 Light"/><a:font script="Hant" typeface="新細明體"/><a:font script="Arab" typeface="Times New Roman"/><a:font script="Hebr" typeface="Times New Roman"/><a:font script="Thai" typeface="Angsana New"/><a:font script="Ethi" typeface="Nyala"/><a:font script="Beng" typeface="Vrinda"/><a:font script="Gujr" typeface="Shruti"/><a:font script="Khmr" typeface="MoolBoran"/><a:font script="Knda" typeface="Tunga"/><a:font script="Guru" typeface="Raavi"/><a:font script="Cans" typeface="Euphemia"/><a:font script="Cher" typeface="Plantagenet Cherokee"/><a:font script="Yiii" typeface="Microsoft Yi Baiti"/><a:font script="Tibt" typeface="Microsoft Himalaya"/><a:font script="Thaa" typeface="MV Boli"/><a:font script="Deva" typeface="Mangal"/><a:font script="Telu" typeface="Gautami"/><a:font script="Taml" typeface="Latha"/><a:font script="Syrc" typeface="Estrangelo Edessa"/><a:font script="Orya" typeface="Kalinga"/><a:font script="Mlym" typeface="Kartika"/><a:font script="Laoo" typeface="DokChampa"/><a:font script="Sinh" typeface="Iskoola Pota"/><a:font script="Mong" typeface="Mongolian Baiti"/><a:font script="Viet" typeface="Times New Roman"/><a:font script="Uigh" typeface="Microsoft Uighur"/><a:font script="Geor" typeface="Sylfaen"/><a:font script="Armn" typeface="Arial"/><a:font script="Bugi" typeface="Leelawadee UI"/><a:font script="Bopo" typeface="Microsoft JhengHei"/><a:font script="Java" typeface="Javanese Text"/><a:font script="Lisu" typeface="Segoe UI"/><a:font script="Mymr" typeface="Myanmar Text"/><a:font script="Nkoo" typeface="Ebrima"/><a:font script="Olck" typeface="Nirmala UI"/><a:font script="Osma" typeface="Ebrima"/><a:font script="Phag" typeface="Phagspa"/><a:font script="Syrn" typeface="Estrangelo Edessa"/><a:font script="Syrj" typeface="Estrangelo Edessa"/><a:font script="Syre" typeface="Estrangelo Edessa"/><a:font script="Sora" typeface="Nirmala UI"/><a:font script="Tale" typeface="Microsoft Tai Le"/><a:font script="Talu" typeface="Microsoft New Tai Lue"/><a:font script="Tfng" typeface="Ebrima"/></a:majorFont><a:minorFont><a:latin typeface="Calibri" panose="020F0502020204030204"/><a:ea typeface=""/><a:cs typeface=""/><a:font script="Jpan" typeface="游明朝"/><a:font script="Hang" typeface="맑은 고딕"/><a:font script="Hans" typeface="等线"/><a:font script="Hant" typeface="新細明體"/><a:font script="Arab" typeface="Arial"/><a:font script="Hebr" typeface="Arial"/><a:font script="Thai" typeface="Cordia New"/><a:font script="Ethi" typeface="Nyala"/><a:font script="Beng" typeface="Vrinda"/><a:font script="Gujr" typeface="Shruti"/><a:font script="Khmr" typeface="DaunPenh"/><a:font script="Knda" typeface="Tunga"/><a:font script="Guru" typeface="Raavi"/><a:font script="Cans" typeface="Euphemia"/><a:font script="Cher" typeface="Plantagenet Cherokee"/><a:font script="Yiii" typeface="Microsoft Yi Baiti"/><a:font script="Tibt" typeface="Microsoft Himalaya"/><a:font script="Thaa" typeface="MV Boli"/><a:font script="Deva" typeface="Mangal"/><a:font script="Telu" typeface="Gautami"/><a:font script="Taml" typeface="Latha"/><a:font script="Syrc" typeface="Estrangelo Edessa"/><a:font script="Orya" typeface="Kalinga"/><a:font script="Mlym" typeface="Kartika"/><a:font script="Laoo" typeface="DokChampa"/><a:font script="Sinh" typeface="Iskoola Pota"/><a:font script="Mong" typeface="Mongolian Baiti"/><a:font script="Viet" typeface="Arial"/><a:font script="Uigh" typeface="Microsoft Uighur"/><a:font script="Geor" typeface="Sylfaen"/><a:font script="Armn" typeface="Arial"/><a:font script="Bugi" typeface="Leelawadee UI"/><a:font script="Bopo" typeface="Microsoft JhengHei"/><a:font script="Java" typeface="Javanese Text"/><a:font script="Lisu" typeface="Segoe UI"/><a:font script="Mymr" typeface="Myanmar Text"/><a:font script="Nkoo" typeface="Ebrima"/><a:font script="Olck" typeface="Nirmala UI"/><a:font script="Osma" typeface="Ebrima"/><a:font script="Phag" typeface="Phagspa"/><a:font script="Syrn" typeface="Estrangelo Edessa"/><a:font script="Syrj" typeface="Estrangelo Edessa"/><a:font script="Syre" typeface="Estrangelo Edessa"/><a:font script="Sora" typeface="Nirmala UI"/><a:font script="Tale" typeface="Microsoft Tai Le"/><a:font script="Talu" typeface="Microsoft New Tai Lue"/><a:font script="Tfng" typeface="Ebrima"/></a:minorFont></a:fontScheme><a:fmtScheme name="Office"><a:fillStyleLst><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:gradFill rotWithShape="1"><a:gsLst><a:gs pos="0"><a:schemeClr val="phClr"><a:lumMod val="110000"/><a:satMod val="105000"/><a:tint val="67000"/></a:schemeClr></a:gs><a:gs pos="50000"><a:schemeClr val="phClr"><a:lumMod val="105000"/><a:satMod val="103000"/><a:tint val="73000"/></a:schemeClr></a:gs><a:gs pos="100000"><a:schemeClr val="phClr"><a:lumMod val="105000"/><a:satMod val="109000"/><a:tint val="81000"/></a:schemeClr></a:gs></a:gsLst><a:lin ang="5400000" scaled="0"/></a:gradFill><a:gradFill rotWithShape="1"><a:gsLst><a:gs pos="0"><a:schemeClr val="phClr"><a:satMod val="103000"/><a:lumMod val="102000"/><a:tint val="94000"/></a:schemeClr></a:gs><a:gs pos="50000"><a:schemeClr val="phClr"><a:satMod val="110000"/><a:lumMod val="100000"/><a:shade val="100000"/></a:schemeClr></a:gs><a:gs pos="100000"><a:schemeClr val="phClr"><a:lumMod val="99000"/><a:satMod val="120000"/><a:shade val="78000"/></a:schemeClr></a:gs></a:gsLst><a:lin ang="5400000" scaled="0"/></a:gradFill></a:fillStyleLst><a:lnStyleLst><a:ln w="6350" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:prstDash val="solid"/><a:miter lim="800000"/></a:ln><a:ln w="12700" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:prstDash val="solid"/><a:miter lim="800000"/></a:ln><a:ln w="19050" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:prstDash val="solid"/><a:miter lim="800000"/></a:ln></a:lnStyleLst><a:effectStyleLst><a:effectStyle><a:effectLst/></a:effectStyle><a:effectStyle><a:effectLst/></a:effectStyle><a:effectStyle><a:effectLst><a:outerShdw blurRad="57150" dist="19050" dir="5400000" algn="ctr" rotWithShape="0"><a:srgbClr val="000000"><a:alpha val="63000"/></a:srgbClr></a:outerShdw></a:effectLst></a:effectStyle></a:effectStyleLst><a:bgFillStyleLst><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:solidFill><a:schemeClr val="phClr"><a:tint val="95000"/><a:satMod val="170000"/></a:schemeClr></a:solidFill><a:gradFill rotWithShape="1"><a:gsLst><a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="93000"/><a:satMod val="150000"/><a:shade val="98000"/><a:lumMod val="102000"/></a:schemeClr></a:gs><a:gs pos="50000"><a:schemeClr val="phClr"><a:tint val="98000"/><a:satMod val="130000"/><a:shade val="90000"/><a:lumMod val="103000"/></a:schemeClr></a:gs><a:gs pos="100000"><a:schemeClr val="phClr"><a:shade val="63000"/><a:satMod val="120000"/></a:schemeClr></a:gs></a:gsLst><a:lin ang="5400000" scaled="0"/></a:gradFill></a:bgFillStyleLst></a:fmtScheme></a:themeElements><a:objectDefaults/><a:extraClrSchemeLst/><a:extLst><a:ext uri="{05A4C25C-085E-4340-85A3-A5531E510DB2}"><thm15:themeFamily xmlns:thm15="http://schemas.microsoft.com/office/thememl/2012/main" name="Office Theme" id="{62F939B6-93AF-4DB8-9C6B-D6C7DFDC589F}" vid="{4A3C46E8-61CC-4603-A589-7422A47A8E4A}"/></a:ext></a:extLst></a:theme> \ No newline at end of file
diff --git a/extract/test/table.pdf.mutool.docx.dir.ref/word/webSettings.xml b/extract/test/table.pdf.mutool.docx.dir.ref/word/webSettings.xml
new file mode 100644
index 00000000..629ae06a
--- /dev/null
+++ b/extract/test/table.pdf.mutool.docx.dir.ref/word/webSettings.xml
@@ -0,0 +1,2 @@
+<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
+<w:webSettings xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships" xmlns:w="http://schemas.openxmlformats.org/wordprocessingml/2006/main" xmlns:w14="http://schemas.microsoft.com/office/word/2010/wordml" xmlns:w15="http://schemas.microsoft.com/office/word/2012/wordml" xmlns:w16cex="http://schemas.microsoft.com/office/word/2018/wordml/cex" xmlns:w16cid="http://schemas.microsoft.com/office/word/2016/wordml/cid" xmlns:w16="http://schemas.microsoft.com/office/word/2018/wordml" xmlns:w16se="http://schemas.microsoft.com/office/word/2015/wordml/symex" mc:Ignorable="w14 w15 w16se w16cid w16 w16cex"><w:optimizeForBrowser/><w:allowPNG/></w:webSettings> \ No newline at end of file
diff --git a/extract/test/table.pdf.mutool.html.ref b/extract/test/table.pdf.mutool.html.ref
new file mode 100644
index 00000000..a1945c06
--- /dev/null
+++ b/extract/test/table.pdf.mutool.html.ref
@@ -0,0 +1,72 @@
+<html>
+<body>
+
+
+<p><b>2 Quantifying Fuel-Saving Opportunities from Specific Driving Behavior Changes
+</p></b>
+
+<p><b>2.1 Savings from Improving Individual Driving Profiles
+</p></b>
+
+<p><b><i>2.1.1 Drive Profile Subsample from Real-World Travel Survey
+</p></b></i>
+
+<p>The interim report (Gonder et al. 2010) included results from detailed analyses on five cycles selected from a large set of real-world global positioning system (GPS) travel data collected in 2006 as part of a study by the Texas Transportation Institute and the Texas Department of Transportation (Ojah and Pearson 2008). The cycles were selected to reflect a range of kinetic intensity (KI) values. (KI represents a ratio of characteristic acceleration to aerodynamic speed and has been shown to be a useful drive cycle classification parameter [O&#x2019;Keefe et al. 2007].) To determine the maximum possible cycle improvement fuel savings, the real-world cycles were converted into equivalent &#x201c;ideal&#x201d; cycles using the following steps:
+</p>
+
+<p>1. Calculate the trip distance of each sample trip.
+</p>
+
+<p>2. Eliminate stop-and-go and idling within each trip.
+</p>
+
+<p>3. Set the acceleration rate to 3 mph/s.
+</p>
+
+<p>4. Set the cruising speed to 40 mph.
+</p>
+
+<p>5. Continue cruising at 40 mph until the trip distance is reached.
+</p>
+
+<p>To compare vehicle simulations over each real-world cycle and its corresponding ideal cycle, a midsize conventional vehicle model from a previous NREL study was used (Earleywine et al. 2010). The results indicated a fuel savings potential of roughly 60% for the drive profiles with either very high or very low KI and of 30%&#x2013;40% for the cycles with moderate KI values.
+</p>
+
+<p>Table 2-1 takes the analysis of these five cycles from the interim report a step further by examining the impact of the optimization steps one at a time in isolation. As indicated by other simulations from the interim report (Gonder et al. 2010), acceleration rate reductions can deliver some small fuel savings, but avoiding accelerations and decelerations (accel/decel) altogether saves larger amounts of fuel. This suggests that driving style improvements should focus on reducing the number of stops in high KI cycles, and not just the rate of accelerating out of a stop.
+</p>
+
+<p><b>Table 2-1. Simulated fuel savings from isolated cycle improvements
+</p></b>
+
+<table border="1" style="border-collapse:collapse">
+ <tr>
+ <td rowspan="2"><p><b>Cycle Name </p></b></td><td rowspan="2"><p><b>KI (1/km) </p></b></td><td rowspan="2"><p><b>Distance (mi) </p></b></td><td colspan="4"><p><b>Percent Fuel Savings </p></b></td>
+ </tr>
+ <tr>
+ <td><p><b>Improved Speed </p></b></td><td><p><b>Decreased Accel </p></b></td><td><p><b>Eliminate Stops </p></b></td><td><p><b>Decreased Idle </p></b></td>
+ </tr>
+ <tr>
+ <td><p>2012_2 </p></td><td><p>3.30 </p></td><td><p>1.3 </p></td><td><p>5.9% </p></td><td><p>9.5% </p></td><td><p>29.2% </p></td><td><p>17.4% </p></td>
+ </tr>
+ <tr>
+ <td><p>2145_1 </p></td><td><p>0.68 </p></td><td><p>11.2 </p></td><td><p>2.4% </p></td><td><p>0.1% </p></td><td><p>9.5% </p></td><td><p>2.7% </p></td>
+ </tr>
+ <tr>
+ <td><p>4234_1 </p></td><td><p>0.59 </p></td><td><p>58.7 </p></td><td><p>8.5% </p></td><td><p>1.3% </p></td><td><p>8.5% </p></td><td><p>3.3% </p></td>
+ </tr>
+ <tr>
+ <td><p>2032_2 </p></td><td><p>0.17 </p></td><td><p>57.8 </p></td><td><p>21.7% </p></td><td><p>0.3% </p></td><td><p>2.7% </p></td><td><p>1.2% </p></td>
+ </tr>
+ <tr>
+ <td><p>4171_1 </p></td><td><p>0.07 </p></td><td><p>173.9 </p></td><td><p>58.1% </p></td><td><p>1.6% </p></td><td><p>2.1% </p></td><td><p>0.5% </p></td>
+ </tr>
+</table>
+
+
+
+<p> Figure 2-1 extends the analysis from eliminating stops for the five example cycles and examines the additional benefit from avoiding slow-and-go driving below various speed thresholds.
+</p>
+
+<p>3
+</p></body>
+</html>
diff --git a/extract/test/table.pdf.mutool.odt.dir.ref/META-INF/manifest.xml b/extract/test/table.pdf.mutool.odt.dir.ref/META-INF/manifest.xml
new file mode 100644
index 00000000..ec991d79
--- /dev/null
+++ b/extract/test/table.pdf.mutool.odt.dir.ref/META-INF/manifest.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<manifest:manifest xmlns:manifest="urn:oasis:names:tc:opendocument:xmlns:manifest:1.0" manifest:version="1.3" xmlns:loext="urn:org:documentfoundation:names:experimental:office:xmlns:loext:1.0">
+ <manifest:file-entry manifest:full-path="/" manifest:version="1.3" manifest:media-type="application/vnd.oasis.opendocument.text"/>
+ <manifest:file-entry manifest:full-path="meta.xml" manifest:media-type="text/xml"/>
+ <manifest:file-entry manifest:full-path="settings.xml" manifest:media-type="text/xml"/>
+ <manifest:file-entry manifest:full-path="Configurations2/" manifest:media-type="application/vnd.sun.xml.ui.configuration"/>
+ <manifest:file-entry manifest:full-path="manifest.rdf" manifest:media-type="application/rdf+xml"/>
+ <manifest:file-entry manifest:full-path="styles.xml" manifest:media-type="text/xml"/>
+ <manifest:file-entry manifest:full-path="content.xml" manifest:media-type="text/xml"/>
+ <manifest:file-entry manifest:full-path="Thumbnails/thumbnail.png" manifest:media-type="image/png"/>
+</manifest:manifest> \ No newline at end of file
diff --git a/extract/test/table.pdf.mutool.odt.dir.ref/Thumbnails/thumbnail.png b/extract/test/table.pdf.mutool.odt.dir.ref/Thumbnails/thumbnail.png
new file mode 100644
index 00000000..0dd1608e
--- /dev/null
+++ b/extract/test/table.pdf.mutool.odt.dir.ref/Thumbnails/thumbnail.png
@@ -0,0 +1,2 @@
+PNG
+
diff --git a/extract/test/table.pdf.mutool.odt.dir.ref/content.xml b/extract/test/table.pdf.mutool.odt.dir.ref/content.xml
new file mode 100644
index 00000000..68609da0
--- /dev/null
+++ b/extract/test/table.pdf.mutool.odt.dir.ref/content.xml
@@ -0,0 +1,287 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<office:document-content xmlns:css3t="http://www.w3.org/TR/css3-text/" xmlns:grddl="http://www.w3.org/2003/g/data-view#" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xforms="http://www.w3.org/2002/xforms" xmlns:dom="http://www.w3.org/2001/xml-events" xmlns:script="urn:oasis:names:tc:opendocument:xmlns:script:1.0" xmlns:form="urn:oasis:names:tc:opendocument:xmlns:form:1.0" xmlns:math="http://www.w3.org/1998/Math/MathML" xmlns:number="urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0" xmlns:field="urn:openoffice:names:experimental:ooo-ms-interop:xmlns:field:1.0" xmlns:meta="urn:oasis:names:tc:opendocument:xmlns:meta:1.0" xmlns:loext="urn:org:documentfoundation:names:experimental:office:xmlns:loext:1.0" xmlns:officeooo="http://openoffice.org/2009/office" xmlns:table="urn:oasis:names:tc:opendocument:xmlns:table:1.0" xmlns:chart="urn:oasis:names:tc:opendocument:xmlns:chart:1.0" xmlns:tableooo="http://openoffice.org/2009/table" xmlns:draw="urn:oasis:names:tc:opendocument:xmlns:drawing:1.0" xmlns:rpt="http://openoffice.org/2005/report" xmlns:dr3d="urn:oasis:names:tc:opendocument:xmlns:dr3d:1.0" xmlns:of="urn:oasis:names:tc:opendocument:xmlns:of:1.2" xmlns:text="urn:oasis:names:tc:opendocument:xmlns:text:1.0" xmlns:style="urn:oasis:names:tc:opendocument:xmlns:style:1.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:calcext="urn:org:documentfoundation:names:experimental:calc:xmlns:calcext:1.0" xmlns:oooc="http://openoffice.org/2004/calc" xmlns:drawooo="http://openoffice.org/2010/draw" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:ooo="http://openoffice.org/2004/office" xmlns:ooow="http://openoffice.org/2004/writer" xmlns:fo="urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0" xmlns:formx="urn:openoffice:names:experimental:ooxml-odf-interop:xmlns:form:1.0" xmlns:svg="urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0" xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" office:version="1.3"><office:scripts/><office:font-face-decls><style:font-face style:name="Liberation Serif" svg:font-family="&apos;Liberation Serif&apos;" style:font-family-generic="roman" style:font-pitch="variable"/><style:font-face style:name="Liberation Sans" svg:font-family="&apos;Liberation Sans&apos;" style:font-family-generic="swiss" style:font-pitch="variable"/><style:font-face style:name="Unifont" svg:font-family="Unifont" style:font-family-generic="system" style:font-pitch="variable"/></office:font-face-decls><office:automatic-styles><style:style style:name="T15" style:family="text"><style:text-properties style:font-name="TimesNewRomanPSMT" fo:font-size="12.00pt" fo:font-weight="normal" fo:font-style="normal" /></style:style><style:style style:name="T16" style:family="text"><style:text-properties style:font-name="ArialMT" fo:font-size="12.00pt" fo:font-weight="normal" fo:font-style="normal" /></style:style><style:style style:name="T19" style:family="text"><style:text-properties style:font-name="ArialMT" fo:font-size="10.98pt" fo:font-weight="normal" fo:font-style="normal" /></style:style><style:style style:name="T18" style:family="text"><style:text-properties style:font-name="ArialMT" fo:font-size="10.02pt" fo:font-weight="normal" fo:font-style="normal" /></style:style><style:style style:name="T11" style:family="text"><style:text-properties style:font-name="Arial-BoldMT" fo:font-size="15.00pt" fo:font-weight="bold" fo:font-style="normal" /></style:style><style:style style:name="T13" style:family="text"><style:text-properties style:font-name="Arial-BoldMT" fo:font-size="12.00pt" fo:font-weight="bold" fo:font-style="normal" /></style:style><style:style style:name="T12" style:family="text"><style:text-properties style:font-name="Arial-BoldMT" fo:font-size="10.98pt" fo:font-weight="bold" fo:font-style="normal" /></style:style><style:style style:name="T17" style:family="text"><style:text-properties style:font-name="Arial-BoldMT" fo:font-size="10.02pt" fo:font-weight="bold" fo:font-style="normal" /></style:style><style:style style:name="T14" style:family="text"><style:text-properties style:font-name="Arial-BoldItalicMT" fo:font-size="10.98pt" fo:font-weight="bold" fo:font-style="italic" /></style:style><style:style style:name="gr1" style:family="graphic">
+<style:graphic-properties draw:stroke="none" svg:stroke-color="#000000" draw:fill="none" draw:fill-color="#ffffff" fo:min-height="1.9898in" style:run-through="foreground" style:wrap="run-through" style:number-wrapped-paragraphs="no-limit" style:vertical-pos="from-top" style:vertical-rel="paragraph" style:horizontal-pos="from-left" style:horizontal-rel="paragraph" />
+<style:paragraph-properties style:writing-mode="lr-tb"/>
+</style:style>
+<style:style style:name="fr1" style:family="graphic" style:parent-style-name="Graphics">
+<style:graphic-properties fo:margin-left="0in" fo:margin-right="0in" fo:margin-top="0in" fo:margin-bottom="0in" style:vertical-pos="top" style:vertical-rel="baseline" fo:background-color="transparent" draw:fill="none" draw:fill-color="#ffffff" fo:padding="0in" fo:border="none" style:mirror="none" fo:clip="rect(0in, 0in, 0in, 0in)" draw:luminance="0%" draw:contrast="0%" draw:red="0%" draw:green="0%" draw:blue="0%" draw:gamma="100%" draw:color-inversion="false" draw:image-opacity="100%" draw:color-mode="standard"/>
+</style:style>
+</office:automatic-styles>
+<style:style style:name="extract.table" style:family="table"/>
+<style:style style:name="extract.table.column" style:family="table-column"/>
+<office:body><office:text><text:sequence-decls><text:sequence-decl text:display-outline-level="0" text:name="Illustration"/><text:sequence-decl text:display-outline-level="0" text:name="Table"/><text:sequence-decl text:display-outline-level="0" text:name="Text"/><text:sequence-decl text:display-outline-level="0" text:name="Drawing"/><text:sequence-decl text:display-outline-level="0" text:name="Figure"/></text:sequence-decls><text:p text:style-name="Standard"/>
+
+<text:p><text:span text:style-name="T11">2 Quantifying Fuel-Saving Opportunities from Specific Driving Behavior Changes </text:span></text:p>
+
+<text:p><text:span text:style-name="T12">2.1 </text:span><text:span text:style-name="T13">Savings from Improving Individual Driving Profiles</text:span><text:span text:style-name="T12"> </text:span></text:p>
+
+<text:p><text:span text:style-name="T14">2.1.1 Drive Profile Subsample from Real-World Travel Survey </text:span></text:p>
+
+<text:p><text:span text:style-name="T15">The interim report (Gonder et al. 2010) included results from detailed analyses on five cycles selected from a large set of real-world global positioning system (GPS) travel data collected in 2006 as part of a study by the Texas Transportation Institute and the Texas Department of Transportation (Ojah and Pearson 2008). The cycles were selected to reflect a range of kinetic intensity (KI) values. (KI represents a ratio of characteristic acceleration to aerodynamic speed and has been shown to be a useful drive cycle classification parameter [O&#x2019;Keefe et al. 2007].) To determine the maximum possible cycle improvement fuel savings, the real-world cycles were converted into equivalent &#x201c;ideal&#x201d; cycles using the following steps: </text:span></text:p>
+
+<text:p><text:span text:style-name="T15">1.</text:span><text:span text:style-name="T16"> </text:span><text:span text:style-name="T15">Calculate the trip distance of each sample trip. </text:span></text:p>
+
+<text:p><text:span text:style-name="T15">2.</text:span><text:span text:style-name="T16"> </text:span><text:span text:style-name="T15">Eliminate stop-and-go and idling within each trip. </text:span></text:p>
+
+<text:p><text:span text:style-name="T15">3.</text:span><text:span text:style-name="T16"> </text:span><text:span text:style-name="T15">Set the acceleration rate to 3 mph/s. </text:span></text:p>
+
+<text:p><text:span text:style-name="T15">4.</text:span><text:span text:style-name="T16"> </text:span><text:span text:style-name="T15">Set the cruising speed to 40 mph. </text:span></text:p>
+
+<text:p><text:span text:style-name="T15">5.</text:span><text:span text:style-name="T16"> </text:span><text:span text:style-name="T15">Continue cruising at 40 mph until the trip distance is reached. </text:span></text:p>
+
+<text:p><text:span text:style-name="T15">To compare vehicle simulations over each real-world cycle and its corresponding ideal cycle, a midsize conventional vehicle model from a previous NREL study was used (Earleywine et al. 2010). The results indicated a fuel savings potential of roughly 60% for the drive profiles with either very high or very low KI and of 30%&#x2013;40% for the cycles with moderate KI values. </text:span></text:p>
+
+<text:p><text:span text:style-name="T15">Table 2-1 takes the analysis of these five cycles from the interim report a step further by examining the impact of the optimization steps one at a time in isolation. As indicated by other simulations from the interim report (Gonder et al. 2010), acceleration rate reductions can deliver some small fuel savings, but avoiding accelerations and decelerations (accel/decel) altogether saves larger amounts of fuel. This suggests that driving style improvements should focus on reducing the number of stops in high KI cycles, and not just the rate of accelerating out of a stop. </text:span></text:p>
+
+<text:p><text:span text:style-name="T17">Table 2-1. Simulated fuel savings from isolated cycle improvements </text:span></text:p>
+ <table:table text:style-name="extract.table" table:name="extract.table.1">
+ <table:table-columns>
+ <table:table-column table:style-name="extract.table.column"/>
+ <table:table-column table:style-name="extract.table.column"/>
+ <table:table-column table:style-name="extract.table.column"/>
+ <table:table-column table:style-name="extract.table.column"/>
+ <table:table-column table:style-name="extract.table.column"/>
+ <table:table-column table:style-name="extract.table.column"/>
+ <table:table-column table:style-name="extract.table.column"/>
+ </table:table-columns>
+ <table:table-row>
+ <table:table-cell table:number-rows-spanned="2">
+
+
+<text:p><text:span text:style-name="T17">Cycle Name </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell table:number-rows-spanned="2">
+
+
+<text:p><text:span text:style-name="T17">KI (1/km) </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell table:number-rows-spanned="2">
+
+
+<text:p><text:span text:style-name="T17">Distance (mi) </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell table:number-columns-spanned="4">
+
+
+<text:p><text:span text:style-name="T17">Percent Fuel Savings </text:span></text:p>
+ </table:table-cell>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ </table:table-row>
+ <table:table-row>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T17">Improved Speed </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T17">Decreased Accel </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T17">Eliminate Stops </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T17">Decreased Idle </text:span></text:p>
+ </table:table-cell>
+ </table:table-row>
+ <table:table-row>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T18">2012_2 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T18">3.30 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T18">1.3 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T18">5.9% </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T18">9.5% </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T18">29.2% </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T18">17.4% </text:span></text:p>
+ </table:table-cell>
+ </table:table-row>
+ <table:table-row>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T18">2145_1 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T18">0.68 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T18">11.2 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T18">2.4% </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T18">0.1% </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T18">9.5% </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T18">2.7% </text:span></text:p>
+ </table:table-cell>
+ </table:table-row>
+ <table:table-row>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T18">4234_1 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T18">0.59 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T18">58.7 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T18">8.5% </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T18">1.3% </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T18">8.5% </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T18">3.3% </text:span></text:p>
+ </table:table-cell>
+ </table:table-row>
+ <table:table-row>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T18">2032_2 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T18">0.17 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T18">57.8 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T18">21.7% </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T18">0.3% </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T18">2.7% </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T18">1.2% </text:span></text:p>
+ </table:table-cell>
+ </table:table-row>
+ <table:table-row>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T18">4171_1 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T18">0.07 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T18">173.9 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T18">58.1% </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T18">1.6% </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T18">2.1% </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T18">0.5% </text:span></text:p>
+ </table:table-cell>
+ </table:table-row>
+ </table:table>
+
+
+<text:p><text:span text:style-name="T19"> </text:span><text:span text:style-name="T15">Figure 2-1 extends the analysis from eliminating stops for the five example cycles and examines the additional benefit from avoiding slow-and-go driving below various speed thresholds. </text:span></text:p>
+
+<text:p><text:span text:style-name="T15">3 </text:span></text:p></office:text></office:body></office:document-content> \ No newline at end of file
diff --git a/extract/test/table.pdf.mutool.odt.dir.ref/manifest.rdf b/extract/test/table.pdf.mutool.odt.dir.ref/manifest.rdf
new file mode 100644
index 00000000..927e206b
--- /dev/null
+++ b/extract/test/table.pdf.mutool.odt.dir.ref/manifest.rdf
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="utf-8"?>
+<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
+ <rdf:Description rdf:about="styles.xml">
+ <rdf:type rdf:resource="http://docs.oasis-open.org/ns/office/1.2/meta/odf#StylesFile"/>
+ </rdf:Description>
+ <rdf:Description rdf:about="">
+ <ns0:hasPart xmlns:ns0="http://docs.oasis-open.org/ns/office/1.2/meta/pkg#" rdf:resource="styles.xml"/>
+ </rdf:Description>
+ <rdf:Description rdf:about="content.xml">
+ <rdf:type rdf:resource="http://docs.oasis-open.org/ns/office/1.2/meta/odf#ContentFile"/>
+ </rdf:Description>
+ <rdf:Description rdf:about="">
+ <ns0:hasPart xmlns:ns0="http://docs.oasis-open.org/ns/office/1.2/meta/pkg#" rdf:resource="content.xml"/>
+ </rdf:Description>
+ <rdf:Description rdf:about="">
+ <rdf:type rdf:resource="http://docs.oasis-open.org/ns/office/1.2/meta/pkg#Document"/>
+ </rdf:Description>
+</rdf:RDF>
diff --git a/extract/test/table.pdf.mutool.odt.dir.ref/meta.xml b/extract/test/table.pdf.mutool.odt.dir.ref/meta.xml
new file mode 100644
index 00000000..6b42561e
--- /dev/null
+++ b/extract/test/table.pdf.mutool.odt.dir.ref/meta.xml
@@ -0,0 +1,2 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<office:document-meta xmlns:grddl="http://www.w3.org/2003/g/data-view#" xmlns:meta="urn:oasis:names:tc:opendocument:xmlns:meta:1.0" xmlns:ooo="http://openoffice.org/2004/office" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" office:version="1.3"><office:meta><meta:creation-date>2021-04-05T17:06:57.937137058</meta:creation-date><meta:generator>LibreOffice/7.0.1.2$OpenBSD_X86_64 LibreOffice_project/00$Build-2</meta:generator><dc:date>2021-04-06T17:14:51.409959656</dc:date><meta:editing-duration>PT20S</meta:editing-duration><meta:editing-cycles>1</meta:editing-cycles><meta:document-statistic meta:table-count="0" meta:image-count="0" meta:object-count="0" meta:page-count="1" meta:paragraph-count="0" meta:word-count="0" meta:character-count="0" meta:non-whitespace-character-count="0"/></office:meta></office:document-meta> \ No newline at end of file
diff --git a/extract/test/table.pdf.mutool.odt.dir.ref/mimetype b/extract/test/table.pdf.mutool.odt.dir.ref/mimetype
new file mode 100644
index 00000000..2e95b81c
--- /dev/null
+++ b/extract/test/table.pdf.mutool.odt.dir.ref/mimetype
@@ -0,0 +1 @@
+application/vnd.oasis.opendocument.text \ No newline at end of file
diff --git a/extract/test/table.pdf.mutool.odt.dir.ref/settings.xml b/extract/test/table.pdf.mutool.odt.dir.ref/settings.xml
new file mode 100644
index 00000000..35a8138f
--- /dev/null
+++ b/extract/test/table.pdf.mutool.odt.dir.ref/settings.xml
@@ -0,0 +1,2 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<office:document-settings xmlns:config="urn:oasis:names:tc:opendocument:xmlns:config:1.0" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:ooo="http://openoffice.org/2004/office" xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" office:version="1.3"><office:settings><config:config-item-set config:name="ooo:view-settings"><config:config-item config:name="ViewAreaTop" config:type="long">0</config:config-item><config:config-item config:name="ViewAreaLeft" config:type="long">0</config:config-item><config:config-item config:name="ViewAreaWidth" config:type="long">26275</config:config-item><config:config-item config:name="ViewAreaHeight" config:type="long">19502</config:config-item><config:config-item config:name="ShowRedlineChanges" config:type="boolean">true</config:config-item><config:config-item config:name="InBrowseMode" config:type="boolean">false</config:config-item><config:config-item-map-indexed config:name="Views"><config:config-item-map-entry><config:config-item config:name="ViewId" config:type="string">view2</config:config-item><config:config-item config:name="ViewLeft" config:type="long">4343</config:config-item><config:config-item config:name="ViewTop" config:type="long">2501</config:config-item><config:config-item config:name="VisibleLeft" config:type="long">0</config:config-item><config:config-item config:name="VisibleTop" config:type="long">0</config:config-item><config:config-item config:name="VisibleRight" config:type="long">26273</config:config-item><config:config-item config:name="VisibleBottom" config:type="long">19500</config:config-item><config:config-item config:name="ZoomType" config:type="short">0</config:config-item><config:config-item config:name="ViewLayoutColumns" config:type="short">1</config:config-item><config:config-item config:name="ViewLayoutBookMode" config:type="boolean">false</config:config-item><config:config-item config:name="ZoomFactor" config:type="short">100</config:config-item><config:config-item config:name="IsSelectedFrame" config:type="boolean">false</config:config-item><config:config-item config:name="AnchoredTextOverflowLegacy" config:type="boolean">false</config:config-item></config:config-item-map-entry></config:config-item-map-indexed></config:config-item-set><config:config-item-set config:name="ooo:configuration-settings"><config:config-item config:name="PrintBlackFonts" config:type="boolean">false</config:config-item><config:config-item config:name="PrintReversed" config:type="boolean">false</config:config-item><config:config-item config:name="SaveThumbnail" config:type="boolean">true</config:config-item><config:config-item config:name="EmbedFonts" config:type="boolean">false</config:config-item><config:config-item config:name="PrintControls" config:type="boolean">true</config:config-item><config:config-item config:name="OutlineLevelYieldsNumbering" config:type="boolean">false</config:config-item><config:config-item config:name="PrintPageBackground" config:type="boolean">true</config:config-item><config:config-item config:name="PrintAnnotationMode" config:type="short">0</config:config-item><config:config-item config:name="PrintGraphics" config:type="boolean">true</config:config-item><config:config-item config:name="EmbeddedDatabaseName" config:type="string"/><config:config-item config:name="ProtectForm" config:type="boolean">false</config:config-item><config:config-item config:name="PrintLeftPages" config:type="boolean">true</config:config-item><config:config-item config:name="PrintProspect" config:type="boolean">false</config:config-item><config:config-item config:name="PrintHiddenText" config:type="boolean">false</config:config-item><config:config-item config:name="PrintRightPages" config:type="boolean">true</config:config-item><config:config-item config:name="PrintFaxName" config:type="string"/><config:config-item config:name="PrintPaperFromSetup" config:type="boolean">false</config:config-item><config:config-item config:name="TabsRelativeToIndent" config:type="boolean">true</config:config-item><config:config-item config:name="RedlineProtectionKey" config:type="base64Binary"/><config:config-item config:name="PrintTextPlaceholder" config:type="boolean">false</config:config-item><config:config-item config:name="MathBaselineAlignment" config:type="boolean">true</config:config-item><config:config-item config:name="ProtectBookmarks" config:type="boolean">false</config:config-item><config:config-item config:name="IgnoreTabsAndBlanksForLineCalculation" config:type="boolean">false</config:config-item><config:config-item config:name="ContinuousEndnotes" config:type="boolean">false</config:config-item><config:config-item config:name="FieldAutoUpdate" config:type="boolean">true</config:config-item><config:config-item config:name="EmptyDbFieldHidesPara" config:type="boolean">true</config:config-item><config:config-item config:name="ApplyParagraphMarkFormatToNumbering" config:type="boolean">false</config:config-item><config:config-item config:name="PrintEmptyPages" config:type="boolean">true</config:config-item><config:config-item config:name="TabOverMargin" config:type="boolean">false</config:config-item><config:config-item config:name="EmbedAsianScriptFonts" config:type="boolean">true</config:config-item><config:config-item config:name="EmbedLatinScriptFonts" config:type="boolean">true</config:config-item><config:config-item config:name="DisableOffPagePositioning" config:type="boolean">false</config:config-item><config:config-item config:name="EmbedOnlyUsedFonts" config:type="boolean">false</config:config-item><config:config-item config:name="MsWordCompMinLineHeightByFly" config:type="boolean">false</config:config-item><config:config-item config:name="SurroundTextWrapSmall" config:type="boolean">false</config:config-item><config:config-item config:name="BackgroundParaOverDrawings" config:type="boolean">false</config:config-item><config:config-item config:name="ClippedPictures" config:type="boolean">false</config:config-item><config:config-item config:name="FloattableNomargins" config:type="boolean">false</config:config-item><config:config-item config:name="UnbreakableNumberings" config:type="boolean">false</config:config-item><config:config-item config:name="EmbedSystemFonts" config:type="boolean">false</config:config-item><config:config-item config:name="TabOverflow" config:type="boolean">true</config:config-item><config:config-item config:name="PrintTables" config:type="boolean">true</config:config-item><config:config-item config:name="PrintDrawings" config:type="boolean">true</config:config-item><config:config-item config:name="ConsiderTextWrapOnObjPos" config:type="boolean">false</config:config-item><config:config-item config:name="PrintSingleJobs" config:type="boolean">false</config:config-item><config:config-item config:name="SmallCapsPercentage66" config:type="boolean">false</config:config-item><config:config-item config:name="CollapseEmptyCellPara" config:type="boolean">true</config:config-item><config:config-item config:name="HeaderSpacingBelowLastPara" config:type="boolean">false</config:config-item><config:config-item config:name="RsidRoot" config:type="int">2052946</config:config-item><config:config-item config:name="PrinterSetup" config:type="base64Binary"/><config:config-item config:name="CurrentDatabaseCommand" config:type="string"/><config:config-item config:name="AlignTabStopPosition" config:type="boolean">true</config:config-item><config:config-item config:name="ClipAsCharacterAnchoredWriterFlyFrames" config:type="boolean">false</config:config-item><config:config-item config:name="DoNotCaptureDrawObjsOnPage" config:type="boolean">false</config:config-item><config:config-item config:name="SaveGlobalDocumentLinks" config:type="boolean">false</config:config-item><config:config-item config:name="CurrentDatabaseCommandType" config:type="int">0</config:config-item><config:config-item config:name="LoadReadonly" config:type="boolean">false</config:config-item><config:config-item config:name="DoNotResetParaAttrsForNumFont" config:type="boolean">false</config:config-item><config:config-item config:name="StylesNoDefault" config:type="boolean">false</config:config-item><config:config-item config:name="LinkUpdateMode" config:type="short">1</config:config-item><config:config-item config:name="DoNotJustifyLinesWithManualBreak" config:type="boolean">false</config:config-item><config:config-item config:name="PropLineSpacingShrinksFirstLine" config:type="boolean">true</config:config-item><config:config-item config:name="TabAtLeftIndentForParagraphsInList" config:type="boolean">false</config:config-item><config:config-item config:name="ProtectFields" config:type="boolean">false</config:config-item><config:config-item config:name="UnxForceZeroExtLeading" config:type="boolean">false</config:config-item><config:config-item config:name="CurrentDatabaseDataSource" config:type="string"/><config:config-item config:name="UseFormerTextWrapping" config:type="boolean">false</config:config-item><config:config-item config:name="UseFormerLineSpacing" config:type="boolean">false</config:config-item><config:config-item config:name="AllowPrintJobCancel" config:type="boolean">true</config:config-item><config:config-item config:name="SubtractFlysAnchoredAtFlys" config:type="boolean">false</config:config-item><config:config-item config:name="AddParaSpacingToTableCells" config:type="boolean">true</config:config-item><config:config-item config:name="AddExternalLeading" config:type="boolean">true</config:config-item><config:config-item config:name="Rsid" config:type="int">2178852</config:config-item><config:config-item config:name="AddVerticalFrameOffsets" config:type="boolean">false</config:config-item><config:config-item config:name="TreatSingleColumnBreakAsPageBreak" config:type="boolean">false</config:config-item><config:config-item config:name="AddFrameOffsets" config:type="boolean">false</config:config-item><config:config-item config:name="IsLabelDocument" config:type="boolean">false</config:config-item><config:config-item config:name="MsWordCompTrailingBlanks" config:type="boolean">false</config:config-item><config:config-item config:name="PrinterPaperFromSetup" config:type="boolean">false</config:config-item><config:config-item config:name="IgnoreFirstLineIndentInNumbering" config:type="boolean">false</config:config-item><config:config-item config:name="PrinterName" config:type="string"/><config:config-item config:name="IsKernAsianPunctuation" config:type="boolean">false</config:config-item><config:config-item config:name="PrinterIndependentLayout" config:type="string">high-resolution</config:config-item><config:config-item config:name="TableRowKeep" config:type="boolean">false</config:config-item><config:config-item config:name="UpdateFromTemplate" config:type="boolean">true</config:config-item><config:config-item config:name="EmbedComplexScriptFonts" config:type="boolean">true</config:config-item><config:config-item config:name="UseOldPrinterMetrics" config:type="boolean">false</config:config-item><config:config-item config:name="InvertBorderSpacing" config:type="boolean">false</config:config-item><config:config-item config:name="PrintProspectRTL" config:type="boolean">false</config:config-item><config:config-item config:name="ApplyUserData" config:type="boolean">true</config:config-item><config:config-item config:name="AddParaTableSpacingAtStart" config:type="boolean">true</config:config-item><config:config-item config:name="SaveVersionOnClose" config:type="boolean">false</config:config-item><config:config-item config:name="CharacterCompressionType" config:type="short">0</config:config-item><config:config-item config:name="UseOldNumbering" config:type="boolean">false</config:config-item><config:config-item config:name="UseFormerObjectPositioning" config:type="boolean">false</config:config-item><config:config-item config:name="ChartAutoUpdate" config:type="boolean">true</config:config-item><config:config-item config:name="AddParaTableSpacing" config:type="boolean">true</config:config-item></config:config-item-set></office:settings></office:document-settings> \ No newline at end of file
diff --git a/extract/test/table.pdf.mutool.odt.dir.ref/styles.xml b/extract/test/table.pdf.mutool.odt.dir.ref/styles.xml
new file mode 100644
index 00000000..91403c4e
--- /dev/null
+++ b/extract/test/table.pdf.mutool.odt.dir.ref/styles.xml
@@ -0,0 +1,2 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<office:document-styles xmlns:css3t="http://www.w3.org/TR/css3-text/" xmlns:grddl="http://www.w3.org/2003/g/data-view#" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:dom="http://www.w3.org/2001/xml-events" xmlns:script="urn:oasis:names:tc:opendocument:xmlns:script:1.0" xmlns:form="urn:oasis:names:tc:opendocument:xmlns:form:1.0" xmlns:math="http://www.w3.org/1998/Math/MathML" xmlns:number="urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0" xmlns:field="urn:openoffice:names:experimental:ooo-ms-interop:xmlns:field:1.0" xmlns:meta="urn:oasis:names:tc:opendocument:xmlns:meta:1.0" xmlns:loext="urn:org:documentfoundation:names:experimental:office:xmlns:loext:1.0" xmlns:officeooo="http://openoffice.org/2009/office" xmlns:table="urn:oasis:names:tc:opendocument:xmlns:table:1.0" xmlns:chart="urn:oasis:names:tc:opendocument:xmlns:chart:1.0" xmlns:tableooo="http://openoffice.org/2009/table" xmlns:draw="urn:oasis:names:tc:opendocument:xmlns:drawing:1.0" xmlns:rpt="http://openoffice.org/2005/report" xmlns:dr3d="urn:oasis:names:tc:opendocument:xmlns:dr3d:1.0" xmlns:of="urn:oasis:names:tc:opendocument:xmlns:of:1.2" xmlns:text="urn:oasis:names:tc:opendocument:xmlns:text:1.0" xmlns:style="urn:oasis:names:tc:opendocument:xmlns:style:1.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:calcext="urn:org:documentfoundation:names:experimental:calc:xmlns:calcext:1.0" xmlns:oooc="http://openoffice.org/2004/calc" xmlns:drawooo="http://openoffice.org/2010/draw" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:ooo="http://openoffice.org/2004/office" xmlns:ooow="http://openoffice.org/2004/writer" xmlns:fo="urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0" xmlns:svg="urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0" xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" office:version="1.3"><office:font-face-decls><style:font-face style:name="Liberation Serif" svg:font-family="&apos;Liberation Serif&apos;" style:font-family-generic="roman" style:font-pitch="variable"/><style:font-face style:name="Liberation Sans" svg:font-family="&apos;Liberation Sans&apos;" style:font-family-generic="swiss" style:font-pitch="variable"/><style:font-face style:name="Unifont" svg:font-family="Unifont" style:font-family-generic="system" style:font-pitch="variable"/></office:font-face-decls><office:styles><style:default-style style:family="graphic"><style:graphic-properties svg:stroke-color="#3465a4" draw:fill-color="#729fcf" fo:wrap-option="no-wrap" draw:shadow-offset-x="0.1181in" draw:shadow-offset-y="0.1181in" draw:start-line-spacing-horizontal="0.1114in" draw:start-line-spacing-vertical="0.1114in" draw:end-line-spacing-horizontal="0.1114in" draw:end-line-spacing-vertical="0.1114in" style:flow-with-text="false"/><style:paragraph-properties style:text-autospace="ideograph-alpha" style:line-break="strict" style:font-independent-line-spacing="false"><style:tab-stops/></style:paragraph-properties><style:text-properties style:use-window-font-color="true" loext:opacity="0%" style:font-name="Liberation Serif" fo:font-size="12pt" fo:language="en" fo:country="US" style:letter-kerning="true" style:font-name-asian="Unifont" style:font-size-asian="10.5pt" style:language-asian="zh" style:country-asian="CN" style:font-name-complex="Unifont" style:font-size-complex="12pt" style:language-complex="hi" style:country-complex="IN"/></style:default-style><style:default-style style:family="paragraph"><style:paragraph-properties fo:orphans="2" fo:widows="2" fo:hyphenation-ladder-count="no-limit" style:text-autospace="ideograph-alpha" style:punctuation-wrap="hanging" style:line-break="strict" style:tab-stop-distance="0.4925in" style:writing-mode="page"/><style:text-properties style:use-window-font-color="true" loext:opacity="0%" style:font-name="Liberation Serif" fo:font-size="12pt" fo:language="en" fo:country="US" style:letter-kerning="true" style:font-name-asian="Unifont" style:font-size-asian="10.5pt" style:language-asian="zh" style:country-asian="CN" style:font-name-complex="Unifont" style:font-size-complex="12pt" style:language-complex="hi" style:country-complex="IN" fo:hyphenate="false" fo:hyphenation-remain-char-count="2" fo:hyphenation-push-char-count="2" loext:hyphenation-no-caps="false"/></style:default-style><style:default-style style:family="table"><style:table-properties table:border-model="collapsing"/></style:default-style><style:default-style style:family="table-row"><style:table-row-properties fo:keep-together="auto"/></style:default-style><style:style style:name="Standard" style:family="paragraph" style:class="text"><style:paragraph-properties fo:margin-top="0in" fo:margin-bottom="0.0799in" style:contextual-spacing="false"/></style:style><style:style style:name="Heading" style:family="paragraph" style:parent-style-name="Standard" style:next-style-name="Text_20_body" style:class="text"><style:paragraph-properties fo:margin-top="0.1665in" fo:margin-bottom="0.0835in" style:contextual-spacing="false" fo:keep-with-next="always"/><style:text-properties style:font-name="Liberation Sans" fo:font-family="&apos;Liberation Sans&apos;" style:font-family-generic="swiss" style:font-pitch="variable" fo:font-size="14pt" style:font-name-asian="Unifont" style:font-family-asian="Unifont" style:font-family-generic-asian="system" style:font-pitch-asian="variable" style:font-size-asian="14pt" style:font-name-complex="Unifont" style:font-family-complex="Unifont" style:font-family-generic-complex="system" style:font-pitch-complex="variable" style:font-size-complex="14pt"/></style:style><style:style style:name="Text_20_body" style:display-name="Text body" style:family="paragraph" style:parent-style-name="Standard" style:class="text"><style:paragraph-properties fo:margin-top="0in" fo:margin-bottom="0.0972in" style:contextual-spacing="false" fo:line-height="115%"/></style:style><style:style style:name="List" style:family="paragraph" style:parent-style-name="Text_20_body" style:class="list"><style:text-properties style:font-size-asian="12pt"/></style:style><style:style style:name="Caption" style:family="paragraph" style:parent-style-name="Standard" style:class="extra"><style:paragraph-properties fo:margin-top="0.0835in" fo:margin-bottom="0.0835in" style:contextual-spacing="false" text:number-lines="false" text:line-number="0"/><style:text-properties fo:font-size="12pt" fo:font-style="italic" style:font-size-asian="12pt" style:font-style-asian="italic" style:font-size-complex="12pt" style:font-style-complex="italic"/></style:style><style:style style:name="Index" style:family="paragraph" style:parent-style-name="Standard" style:class="index"><style:paragraph-properties text:number-lines="false" text:line-number="0"/><style:text-properties style:font-size-asian="12pt"/></style:style><text:outline-style style:name="Outline"><text:outline-level-style text:level="1" style:num-format=""><style:list-level-properties text:list-level-position-and-space-mode="label-alignment"><style:list-level-label-alignment text:label-followed-by="listtab"/></style:list-level-properties></text:outline-level-style><text:outline-level-style text:level="2" style:num-format=""><style:list-level-properties text:list-level-position-and-space-mode="label-alignment"><style:list-level-label-alignment text:label-followed-by="listtab"/></style:list-level-properties></text:outline-level-style><text:outline-level-style text:level="3" style:num-format=""><style:list-level-properties text:list-level-position-and-space-mode="label-alignment"><style:list-level-label-alignment text:label-followed-by="listtab"/></style:list-level-properties></text:outline-level-style><text:outline-level-style text:level="4" style:num-format=""><style:list-level-properties text:list-level-position-and-space-mode="label-alignment"><style:list-level-label-alignment text:label-followed-by="listtab"/></style:list-level-properties></text:outline-level-style><text:outline-level-style text:level="5" style:num-format=""><style:list-level-properties text:list-level-position-and-space-mode="label-alignment"><style:list-level-label-alignment text:label-followed-by="listtab"/></style:list-level-properties></text:outline-level-style><text:outline-level-style text:level="6" style:num-format=""><style:list-level-properties text:list-level-position-and-space-mode="label-alignment"><style:list-level-label-alignment text:label-followed-by="listtab"/></style:list-level-properties></text:outline-level-style><text:outline-level-style text:level="7" style:num-format=""><style:list-level-properties text:list-level-position-and-space-mode="label-alignment"><style:list-level-label-alignment text:label-followed-by="listtab"/></style:list-level-properties></text:outline-level-style><text:outline-level-style text:level="8" style:num-format=""><style:list-level-properties text:list-level-position-and-space-mode="label-alignment"><style:list-level-label-alignment text:label-followed-by="listtab"/></style:list-level-properties></text:outline-level-style><text:outline-level-style text:level="9" style:num-format=""><style:list-level-properties text:list-level-position-and-space-mode="label-alignment"><style:list-level-label-alignment text:label-followed-by="listtab"/></style:list-level-properties></text:outline-level-style><text:outline-level-style text:level="10" style:num-format=""><style:list-level-properties text:list-level-position-and-space-mode="label-alignment"><style:list-level-label-alignment text:label-followed-by="listtab"/></style:list-level-properties></text:outline-level-style></text:outline-style><text:notes-configuration text:note-class="footnote" style:num-format="1" text:start-value="0" text:footnotes-position="page" text:start-numbering-at="document"/><text:notes-configuration text:note-class="endnote" style:num-format="i" text:start-value="0"/><text:linenumbering-configuration text:number-lines="false" text:offset="0.1965in" style:num-format="1" text:number-position="left" text:increment="5"/></office:styles><office:automatic-styles><style:page-layout style:name="Mpm1"><style:page-layout-properties fo:page-width="8.5in" fo:page-height="11in" style:num-format="1" style:print-orientation="portrait" fo:margin-top="0.7874in" fo:margin-bottom="0.7874in" fo:margin-left="0.7874in" fo:margin-right="0.7874in" style:writing-mode="lr-tb" style:layout-grid-color="#c0c0c0" style:layout-grid-lines="20" style:layout-grid-base-height="0.278in" style:layout-grid-ruby-height="0.139in" style:layout-grid-mode="none" style:layout-grid-ruby-below="false" style:layout-grid-print="false" style:layout-grid-display="false" style:footnote-max-height="0in"><style:footnote-sep style:width="0.0071in" style:distance-before-sep="0.0398in" style:distance-after-sep="0.0398in" style:line-style="solid" style:adjustment="left" style:rel-width="25%" style:color="#000000"/></style:page-layout-properties><style:header-style/><style:footer-style/></style:page-layout></office:automatic-styles><office:master-styles><style:master-page style:name="Standard" style:page-layout-name="Mpm1"/></office:master-styles></office:document-styles> \ No newline at end of file
diff --git a/extract/test/text_graphic_image.pdf.gs.docx.dir.ref/word/document.xml b/extract/test/text_graphic_image.pdf.gs.docx.dir.ref/word/document.xml
index 57a86260..4303fe53 100644
--- a/extract/test/text_graphic_image.pdf.gs.docx.dir.ref/word/document.xml
+++ b/extract/test/text_graphic_image.pdf.gs.docx.dir.ref/word/document.xml
@@ -10,5 +10,5 @@
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT" w:hAnsi="TimesNewRomanPSMT"/><w:sz w:val="96.000000"/><w:szCs w:val="72.000000"/></w:rPr><w:t xml:space="preserve">Neutral CIELAB</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT" w:hAnsi="TimesNewRomanPSMT"/><w:sz w:val="96.000000"/><w:szCs w:val="72.000000"/></w:rPr><w:t xml:space="preserve">Neutral CIELAB</w:t></w:r>
</w:p></w:body></w:document> \ No newline at end of file
diff --git a/extract/test/text_graphic_image.pdf.intermediate-gs.xml.extract-autosplit.docx.dir.ref/word/document.xml b/extract/test/text_graphic_image.pdf.intermediate-gs.xml.extract-autosplit.docx.dir.ref/word/document.xml
index 40bb6d6d..2e71112d 100644
--- a/extract/test/text_graphic_image.pdf.intermediate-gs.xml.extract-autosplit.docx.dir.ref/word/document.xml
+++ b/extract/test/text_graphic_image.pdf.intermediate-gs.xml.extract-autosplit.docx.dir.ref/word/document.xml
@@ -22,5 +22,5 @@
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT" w:hAnsi="TimesNewRomanPSMT"/><w:sz w:val="96.000000"/><w:szCs w:val="72.000000"/></w:rPr><w:t xml:space="preserve">Neutral CIELAB</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT" w:hAnsi="TimesNewRomanPSMT"/><w:sz w:val="96.000000"/><w:szCs w:val="72.000000"/></w:rPr><w:t xml:space="preserve">Neutral CIELAB</w:t></w:r>
</w:p></w:body></w:document> \ No newline at end of file
diff --git a/extract/test/text_graphic_image.pdf.intermediate-gs.xml.extract-rotate-spacing.docx.dir.ref/word/document.xml b/extract/test/text_graphic_image.pdf.intermediate-gs.xml.extract-rotate-spacing.docx.dir.ref/word/document.xml
index 40bb6d6d..2e71112d 100644
--- a/extract/test/text_graphic_image.pdf.intermediate-gs.xml.extract-rotate-spacing.docx.dir.ref/word/document.xml
+++ b/extract/test/text_graphic_image.pdf.intermediate-gs.xml.extract-rotate-spacing.docx.dir.ref/word/document.xml
@@ -22,5 +22,5 @@
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT" w:hAnsi="TimesNewRomanPSMT"/><w:sz w:val="96.000000"/><w:szCs w:val="72.000000"/></w:rPr><w:t xml:space="preserve">Neutral CIELAB</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT" w:hAnsi="TimesNewRomanPSMT"/><w:sz w:val="96.000000"/><w:szCs w:val="72.000000"/></w:rPr><w:t xml:space="preserve">Neutral CIELAB</w:t></w:r>
</w:p></w:body></w:document> \ No newline at end of file
diff --git a/extract/test/text_graphic_image.pdf.intermediate-gs.xml.extract-rotate.docx.dir.ref/word/document.xml b/extract/test/text_graphic_image.pdf.intermediate-gs.xml.extract-rotate.docx.dir.ref/word/document.xml
index 57a86260..4303fe53 100644
--- a/extract/test/text_graphic_image.pdf.intermediate-gs.xml.extract-rotate.docx.dir.ref/word/document.xml
+++ b/extract/test/text_graphic_image.pdf.intermediate-gs.xml.extract-rotate.docx.dir.ref/word/document.xml
@@ -10,5 +10,5 @@
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT" w:hAnsi="TimesNewRomanPSMT"/><w:sz w:val="96.000000"/><w:szCs w:val="72.000000"/></w:rPr><w:t xml:space="preserve">Neutral CIELAB</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT" w:hAnsi="TimesNewRomanPSMT"/><w:sz w:val="96.000000"/><w:szCs w:val="72.000000"/></w:rPr><w:t xml:space="preserve">Neutral CIELAB</w:t></w:r>
</w:p></w:body></w:document> \ No newline at end of file
diff --git a/extract/test/text_graphic_image.pdf.intermediate-gs.xml.extract.docx.dir.ref/word/document.xml b/extract/test/text_graphic_image.pdf.intermediate-gs.xml.extract.docx.dir.ref/word/document.xml
index 40bb6d6d..2e71112d 100644
--- a/extract/test/text_graphic_image.pdf.intermediate-gs.xml.extract.docx.dir.ref/word/document.xml
+++ b/extract/test/text_graphic_image.pdf.intermediate-gs.xml.extract.docx.dir.ref/word/document.xml
@@ -22,5 +22,5 @@
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT" w:hAnsi="TimesNewRomanPSMT"/><w:sz w:val="96.000000"/><w:szCs w:val="72.000000"/></w:rPr><w:t xml:space="preserve">Neutral CIELAB</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT" w:hAnsi="TimesNewRomanPSMT"/><w:sz w:val="96.000000"/><w:szCs w:val="72.000000"/></w:rPr><w:t xml:space="preserve">Neutral CIELAB</w:t></w:r>
</w:p></w:body></w:document> \ No newline at end of file
diff --git a/extract/test/text_graphic_image.pdf.intermediate-mu.xml.extract-autosplit.docx.dir.ref/word/document.xml b/extract/test/text_graphic_image.pdf.intermediate-mu.xml.extract-autosplit.docx.dir.ref/word/document.xml
index 90ae4318..a40ae3c9 100644
--- a/extract/test/text_graphic_image.pdf.intermediate-mu.xml.extract-autosplit.docx.dir.ref/word/document.xml
+++ b/extract/test/text_graphic_image.pdf.intermediate-mu.xml.extract-autosplit.docx.dir.ref/word/document.xml
@@ -22,7 +22,7 @@
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT" w:hAnsi="TimesNewRomanPSMT"/><w:sz w:val="96.000000"/><w:szCs w:val="72.000000"/></w:rPr><w:t xml:space="preserve">Neutral CIELAB</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT" w:hAnsi="TimesNewRomanPSMT"/><w:sz w:val="96.000000"/><w:szCs w:val="72.000000"/></w:rPr><w:t xml:space="preserve">Neutral CIELAB</w:t></w:r>
</w:p>
<w:p>
<w:r>
diff --git a/extract/test/text_graphic_image.pdf.intermediate-mu.xml.extract-rotate-spacing.docx.dir.ref/word/document.xml b/extract/test/text_graphic_image.pdf.intermediate-mu.xml.extract-rotate-spacing.docx.dir.ref/word/document.xml
index efcf1da8..a40ae3c9 100644
--- a/extract/test/text_graphic_image.pdf.intermediate-mu.xml.extract-rotate-spacing.docx.dir.ref/word/document.xml
+++ b/extract/test/text_graphic_image.pdf.intermediate-mu.xml.extract-rotate-spacing.docx.dir.ref/word/document.xml
@@ -22,7 +22,7 @@
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT" w:hAnsi="TimesNewRomanPSMT"/><w:sz w:val="96.000000"/><w:szCs w:val="72.000000"/></w:rPr><w:t xml:space="preserve">NeutralCIELAB</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT" w:hAnsi="TimesNewRomanPSMT"/><w:sz w:val="96.000000"/><w:szCs w:val="72.000000"/></w:rPr><w:t xml:space="preserve">Neutral CIELAB</w:t></w:r>
</w:p>
<w:p>
<w:r>
diff --git a/extract/test/text_graphic_image.pdf.intermediate-mu.xml.extract-rotate.docx.dir.ref/word/document.xml b/extract/test/text_graphic_image.pdf.intermediate-mu.xml.extract-rotate.docx.dir.ref/word/document.xml
index 841daec9..71101ece 100644
--- a/extract/test/text_graphic_image.pdf.intermediate-mu.xml.extract-rotate.docx.dir.ref/word/document.xml
+++ b/extract/test/text_graphic_image.pdf.intermediate-mu.xml.extract-rotate.docx.dir.ref/word/document.xml
@@ -10,7 +10,7 @@
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT" w:hAnsi="TimesNewRomanPSMT"/><w:sz w:val="96.000000"/><w:szCs w:val="72.000000"/></w:rPr><w:t xml:space="preserve">NeutralCIELAB</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT" w:hAnsi="TimesNewRomanPSMT"/><w:sz w:val="96.000000"/><w:szCs w:val="72.000000"/></w:rPr><w:t xml:space="preserve">Neutral CIELAB</w:t></w:r>
</w:p>
<w:p>
<w:r>
diff --git a/extract/test/text_graphic_image.pdf.intermediate-mu.xml.extract.docx.dir.ref/word/document.xml b/extract/test/text_graphic_image.pdf.intermediate-mu.xml.extract.docx.dir.ref/word/document.xml
index efcf1da8..a40ae3c9 100644
--- a/extract/test/text_graphic_image.pdf.intermediate-mu.xml.extract.docx.dir.ref/word/document.xml
+++ b/extract/test/text_graphic_image.pdf.intermediate-mu.xml.extract.docx.dir.ref/word/document.xml
@@ -22,7 +22,7 @@
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT" w:hAnsi="TimesNewRomanPSMT"/><w:sz w:val="96.000000"/><w:szCs w:val="72.000000"/></w:rPr><w:t xml:space="preserve">NeutralCIELAB</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT" w:hAnsi="TimesNewRomanPSMT"/><w:sz w:val="96.000000"/><w:szCs w:val="72.000000"/></w:rPr><w:t xml:space="preserve">Neutral CIELAB</w:t></w:r>
</w:p>
<w:p>
<w:r>
diff --git a/extract/test/text_graphic_image.pdf.mutool-norotate.docx.dir.ref/word/document.xml b/extract/test/text_graphic_image.pdf.mutool-norotate.docx.dir.ref/word/document.xml
index 841daec9..71101ece 100644
--- a/extract/test/text_graphic_image.pdf.mutool-norotate.docx.dir.ref/word/document.xml
+++ b/extract/test/text_graphic_image.pdf.mutool-norotate.docx.dir.ref/word/document.xml
@@ -10,7 +10,7 @@
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT" w:hAnsi="TimesNewRomanPSMT"/><w:sz w:val="96.000000"/><w:szCs w:val="72.000000"/></w:rPr><w:t xml:space="preserve">NeutralCIELAB</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT" w:hAnsi="TimesNewRomanPSMT"/><w:sz w:val="96.000000"/><w:szCs w:val="72.000000"/></w:rPr><w:t xml:space="preserve">Neutral CIELAB</w:t></w:r>
</w:p>
<w:p>
<w:r>
diff --git a/extract/test/text_graphic_image.pdf.mutool.docx.dir.ref/word/document.xml b/extract/test/text_graphic_image.pdf.mutool.docx.dir.ref/word/document.xml
index 841daec9..71101ece 100644
--- a/extract/test/text_graphic_image.pdf.mutool.docx.dir.ref/word/document.xml
+++ b/extract/test/text_graphic_image.pdf.mutool.docx.dir.ref/word/document.xml
@@ -10,7 +10,7 @@
</w:p>
<w:p>
-<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT" w:hAnsi="TimesNewRomanPSMT"/><w:sz w:val="96.000000"/><w:szCs w:val="72.000000"/></w:rPr><w:t xml:space="preserve">NeutralCIELAB</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT" w:hAnsi="TimesNewRomanPSMT"/><w:sz w:val="96.000000"/><w:szCs w:val="72.000000"/></w:rPr><w:t xml:space="preserve">Neutral CIELAB</w:t></w:r>
</w:p>
<w:p>
<w:r>
diff --git a/extract/test/text_graphic_image.pdf.mutool.odt.dir.ref/content.xml b/extract/test/text_graphic_image.pdf.mutool.odt.dir.ref/content.xml
index 233fd264..4151db06 100644
--- a/extract/test/text_graphic_image.pdf.mutool.odt.dir.ref/content.xml
+++ b/extract/test/text_graphic_image.pdf.mutool.odt.dir.ref/content.xml
@@ -6,13 +6,16 @@
<style:style style:name="fr1" style:family="graphic" style:parent-style-name="Graphics">
<style:graphic-properties fo:margin-left="0in" fo:margin-right="0in" fo:margin-top="0in" fo:margin-bottom="0in" style:vertical-pos="top" style:vertical-rel="baseline" fo:background-color="transparent" draw:fill="none" draw:fill-color="#ffffff" fo:padding="0in" fo:border="none" style:mirror="none" fo:clip="rect(0in, 0in, 0in, 0in)" draw:luminance="0%" draw:contrast="0%" draw:red="0%" draw:green="0%" draw:blue="0%" draw:gamma="100%" draw:color-inversion="false" draw:image-opacity="100%" draw:color-mode="standard"/>
</style:style>
-</office:automatic-styles><office:body><office:text><text:sequence-decls><text:sequence-decl text:display-outline-level="0" text:name="Illustration"/><text:sequence-decl text:display-outline-level="0" text:name="Table"/><text:sequence-decl text:display-outline-level="0" text:name="Text"/><text:sequence-decl text:display-outline-level="0" text:name="Drawing"/><text:sequence-decl text:display-outline-level="0" text:name="Figure"/></text:sequence-decls><text:p text:style-name="Standard"/>
+</office:automatic-styles>
+<style:style style:name="extract.table" style:family="table"/>
+<style:style style:name="extract.table.column" style:family="table-column"/>
+<office:body><office:text><text:sequence-decls><text:sequence-decl text:display-outline-level="0" text:name="Illustration"/><text:sequence-decl text:display-outline-level="0" text:name="Table"/><text:sequence-decl text:display-outline-level="0" text:name="Text"/><text:sequence-decl text:display-outline-level="0" text:name="Drawing"/><text:sequence-decl text:display-outline-level="0" text:name="Figure"/></text:sequence-decls><text:p text:style-name="Standard"/>
<text:p><text:span text:style-name="T11">Black RGB </text:span></text:p>
<text:p><text:span text:style-name="T11">Gray RGB </text:span></text:p>
-<text:p><text:span text:style-name="T11">NeutralCIELAB</text:span></text:p>
+<text:p><text:span text:style-name="T11">Neutral CIELAB</text:span></text:p>
<text:p text:style-name="Standard">
<draw:frame draw:style-name="fr1" draw:name="Picture rId11" text:anchor-type="as-char" svg:width="4.277778in" svg:height="3.208333in" draw:z-index="0">
<draw:image xlink:href="Pictures/image11.jpeg" xlink:type="simple" xlink:show="embed" xlink:actuate="onLoad" draw:mime-type="image/jpeg"/>
diff --git a/extract/test/text_graphic_image.pdf.mutool.text.ref b/extract/test/text_graphic_image.pdf.mutool.text.ref
new file mode 100644
index 00000000..a2568e4e
--- /dev/null
+++ b/extract/test/text_graphic_image.pdf.mutool.text.ref
@@ -0,0 +1,3 @@
+Black RGB
+Gray RGB
+Neutral CIELAB
diff --git a/extract/test/twotables_1.pdf b/extract/test/twotables_1.pdf
new file mode 100755
index 00000000..cbbeeda8
--- /dev/null
+++ b/extract/test/twotables_1.pdf
Binary files differ
diff --git a/extract/test/twotables_1.pdf.mutool-0.csv.ref b/extract/test/twotables_1.pdf.mutool-0.csv.ref
new file mode 100644
index 00000000..ab4bf8a8
--- /dev/null
+++ b/extract/test/twotables_1.pdf.mutool-0.csv.ref
@@ -0,0 +1,7 @@
+"Sl. No.","Name of","Name of District","Disease/ Illness","No. of Cases","No. of Deaths","Date of start of outbreak","Date of reporting","Current Status","Comments/ Action taken"
+"","State/UT","","","","","","","",""
+"","","","","","","","","",""
+""," West Bengal ","Bankura ","xix. Acute","46","0","10/11/13","15/11/13","Under Control","Cases of loose motion and vomiting reported from Village Daldali, SC Binodnagar, Block Onda, District Bankura. District RRT and Block health team investigated the outbreak. Active search for cases done. Cases treated at local health centre. 2 stool samples collected were negative for cholera culture. Out of 3 water samples collected 1 sample was non potable. Chlorination of water sources done. Health education given regarding safe drinking water and sanitation."
+"","","","Diarrhoeal Disease","","","","","",""
+"","","","xx. Acute","34","0","10/11/13","14/11/13","Under Control","Cases of loose motion and vomiting reported from Village Icharia, SC Mankhamar, Block Onda, District Bankura. District RRT and Block health team investigated the outbreak. House to house survey done. All cases treated locally. 4 stool samples collected were negative for cholera culture. Out of 34 water samples collected, 8 samples were non potable. Chlorination of water sources done. Health education given regarding safe drinking water and sanitation."
+"","","","Diarrhoeal Disease","","","","","",""
diff --git a/extract/test/twotables_1.pdf.mutool.docx.dir.ref/[Content_Types].xml b/extract/test/twotables_1.pdf.mutool.docx.dir.ref/[Content_Types].xml
new file mode 100644
index 00000000..07d88cca
--- /dev/null
+++ b/extract/test/twotables_1.pdf.mutool.docx.dir.ref/[Content_Types].xml
@@ -0,0 +1,2 @@
+<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
+<Types xmlns="http://schemas.openxmlformats.org/package/2006/content-types"><Default Extension="rels" ContentType="application/vnd.openxmlformats-package.relationships+xml"/><Default Extension="xml" ContentType="application/xml"/><Override PartName="/word/document.xml" ContentType="application/vnd.openxmlformats-officedocument.wordprocessingml.document.main+xml"/><Override PartName="/word/styles.xml" ContentType="application/vnd.openxmlformats-officedocument.wordprocessingml.styles+xml"/><Override PartName="/word/settings.xml" ContentType="application/vnd.openxmlformats-officedocument.wordprocessingml.settings+xml"/><Override PartName="/word/webSettings.xml" ContentType="application/vnd.openxmlformats-officedocument.wordprocessingml.webSettings+xml"/><Override PartName="/word/fontTable.xml" ContentType="application/vnd.openxmlformats-officedocument.wordprocessingml.fontTable+xml"/><Override PartName="/word/theme/theme1.xml" ContentType="application/vnd.openxmlformats-officedocument.theme+xml"/><Override PartName="/docProps/core.xml" ContentType="application/vnd.openxmlformats-package.core-properties+xml"/><Override PartName="/docProps/app.xml" ContentType="application/vnd.openxmlformats-officedocument.extended-properties+xml"/></Types> \ No newline at end of file
diff --git a/extract/test/twotables_1.pdf.mutool.docx.dir.ref/_rels/.rels b/extract/test/twotables_1.pdf.mutool.docx.dir.ref/_rels/.rels
new file mode 100644
index 00000000..32548d42
--- /dev/null
+++ b/extract/test/twotables_1.pdf.mutool.docx.dir.ref/_rels/.rels
@@ -0,0 +1,2 @@
+<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
+<Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships"><Relationship Id="rId3" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties" Target="docProps/app.xml"/><Relationship Id="rId2" Type="http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties" Target="docProps/core.xml"/><Relationship Id="rId1" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument" Target="word/document.xml"/></Relationships> \ No newline at end of file
diff --git a/extract/test/twotables_1.pdf.mutool.docx.dir.ref/docProps/app.xml b/extract/test/twotables_1.pdf.mutool.docx.dir.ref/docProps/app.xml
new file mode 100644
index 00000000..eb8dd2e5
--- /dev/null
+++ b/extract/test/twotables_1.pdf.mutool.docx.dir.ref/docProps/app.xml
@@ -0,0 +1,2 @@
+<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
+<Properties xmlns="http://schemas.openxmlformats.org/officeDocument/2006/extended-properties" xmlns:vt="http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes"><Template>Normal.dotm</Template><TotalTime>3</TotalTime><Pages>1</Pages><Words>2</Words><Characters>18</Characters><Application>Microsoft Office Word</Application><DocSecurity>0</DocSecurity><Lines>1</Lines><Paragraphs>1</Paragraphs><ScaleCrop>false</ScaleCrop><Company></Company><LinksUpToDate>false</LinksUpToDate><CharactersWithSpaces>19</CharactersWithSpaces><SharedDoc>false</SharedDoc><HyperlinksChanged>false</HyperlinksChanged><AppVersion>16.0000</AppVersion></Properties> \ No newline at end of file
diff --git a/extract/test/twotables_1.pdf.mutool.docx.dir.ref/docProps/core.xml b/extract/test/twotables_1.pdf.mutool.docx.dir.ref/docProps/core.xml
new file mode 100644
index 00000000..195d77a9
--- /dev/null
+++ b/extract/test/twotables_1.pdf.mutool.docx.dir.ref/docProps/core.xml
@@ -0,0 +1,2 @@
+<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
+<cp:coreProperties xmlns:cp="http://schemas.openxmlformats.org/package/2006/metadata/core-properties" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:dcterms="http://purl.org/dc/terms/" xmlns:dcmitype="http://purl.org/dc/dcmitype/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><dc:title></dc:title><dc:subject></dc:subject><dc:creator></dc:creator><cp:keywords></cp:keywords><dc:description></dc:description><cp:lastModifiedBy></cp:lastModifiedBy><cp:revision>1</cp:revision><dcterms:created xsi:type="dcterms:W3CDTF">2020-09-25T17:04:00Z</dcterms:created><dcterms:modified xsi:type="dcterms:W3CDTF">2020-09-25T17:07:00Z</dcterms:modified></cp:coreProperties> \ No newline at end of file
diff --git a/extract/test/twotables_1.pdf.mutool.docx.dir.ref/word/_rels/document.xml.rels b/extract/test/twotables_1.pdf.mutool.docx.dir.ref/word/_rels/document.xml.rels
new file mode 100644
index 00000000..3b2b7f8c
--- /dev/null
+++ b/extract/test/twotables_1.pdf.mutool.docx.dir.ref/word/_rels/document.xml.rels
@@ -0,0 +1,2 @@
+<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
+<Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships"><Relationship Id="rId3" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/webSettings" Target="webSettings.xml"/><Relationship Id="rId2" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/settings" Target="settings.xml"/><Relationship Id="rId1" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles" Target="styles.xml"/><Relationship Id="rId5" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme" Target="theme/theme1.xml"/><Relationship Id="rId4" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/fontTable" Target="fontTable.xml"/></Relationships> \ No newline at end of file
diff --git a/extract/test/twotables_1.pdf.mutool.docx.dir.ref/word/document.xml b/extract/test/twotables_1.pdf.mutool.docx.dir.ref/word/document.xml
new file mode 100644
index 00000000..9a9a656e
--- /dev/null
+++ b/extract/test/twotables_1.pdf.mutool.docx.dir.ref/word/document.xml
@@ -0,0 +1,2464 @@
+<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
+<w:document xmlns:wpc="http://schemas.microsoft.com/office/word/2010/wordprocessingCanvas" xmlns:cx="http://schemas.microsoft.com/office/drawing/2014/chartex" xmlns:cx1="http://schemas.microsoft.com/office/drawing/2015/9/8/chartex" xmlns:cx2="http://schemas.microsoft.com/office/drawing/2015/10/21/chartex" xmlns:cx3="http://schemas.microsoft.com/office/drawing/2016/5/9/chartex" xmlns:cx4="http://schemas.microsoft.com/office/drawing/2016/5/10/chartex" xmlns:cx5="http://schemas.microsoft.com/office/drawing/2016/5/11/chartex" xmlns:cx6="http://schemas.microsoft.com/office/drawing/2016/5/12/chartex" xmlns:cx7="http://schemas.microsoft.com/office/drawing/2016/5/13/chartex" xmlns:cx8="http://schemas.microsoft.com/office/drawing/2016/5/14/chartex" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:aink="http://schemas.microsoft.com/office/drawing/2016/ink" xmlns:am3d="http://schemas.microsoft.com/office/drawing/2017/model3d" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships" xmlns:m="http://schemas.openxmlformats.org/officeDocument/2006/math" xmlns:v="urn:schemas-microsoft-com:vml" xmlns:wp14="http://schemas.microsoft.com/office/word/2010/wordprocessingDrawing" xmlns:wp="http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing" xmlns:w10="urn:schemas-microsoft-com:office:word" xmlns:w="http://schemas.openxmlformats.org/wordprocessingml/2006/main" xmlns:w14="http://schemas.microsoft.com/office/word/2010/wordml" xmlns:w15="http://schemas.microsoft.com/office/word/2012/wordml" xmlns:w16cex="http://schemas.microsoft.com/office/word/2018/wordml/cex" xmlns:w16cid="http://schemas.microsoft.com/office/word/2016/wordml/cid" xmlns:w16="http://schemas.microsoft.com/office/word/2018/wordml" xmlns:w16se="http://schemas.microsoft.com/office/word/2015/wordml/symex" xmlns:wpg="http://schemas.microsoft.com/office/word/2010/wordprocessingGroup" xmlns:wpi="http://schemas.microsoft.com/office/word/2010/wordprocessingInk" xmlns:wne="http://schemas.microsoft.com/office/word/2006/wordml" xmlns:wps="http://schemas.microsoft.com/office/word/2010/wordprocessingShape" mc:Ignorable="w14 w15 w16se w16cid w16 w16cex wp14"><w:body>
+ <w:tbl>
+ <w:tblLayout w:type="autofit"/>
+ <w:tr>
+ <w:trPr/>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="restart"/>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPS-BoldMT" w:hAnsi="TimesNewRomanPS-BoldMT"/><w:b/><w:sz w:val="20.160000"/><w:szCs w:val="15.120000"/></w:rPr><w:t xml:space="preserve">Sl. No. </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPS-BoldMT" w:hAnsi="TimesNewRomanPS-BoldMT"/><w:b/><w:sz w:val="20.160000"/><w:szCs w:val="15.120000"/></w:rPr><w:t xml:space="preserve">Name of </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="restart"/>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPS-BoldMT" w:hAnsi="TimesNewRomanPS-BoldMT"/><w:b/><w:sz w:val="20.160000"/><w:szCs w:val="15.120000"/></w:rPr><w:t xml:space="preserve">Name of District </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="restart"/>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPS-BoldMT" w:hAnsi="TimesNewRomanPS-BoldMT"/><w:b/><w:sz w:val="20.160000"/><w:szCs w:val="15.120000"/></w:rPr><w:t xml:space="preserve">Disease/ Illness </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="restart"/>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPS-BoldMT" w:hAnsi="TimesNewRomanPS-BoldMT"/><w:b/><w:sz w:val="20.160000"/><w:szCs w:val="15.120000"/></w:rPr><w:t xml:space="preserve">No. of Cases </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="restart"/>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPS-BoldMT" w:hAnsi="TimesNewRomanPS-BoldMT"/><w:b/><w:sz w:val="20.160000"/><w:szCs w:val="15.120000"/></w:rPr><w:t xml:space="preserve">No. of Deaths </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="restart"/>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPS-BoldMT" w:hAnsi="TimesNewRomanPS-BoldMT"/><w:b/><w:sz w:val="20.160000"/><w:szCs w:val="15.120000"/></w:rPr><w:t xml:space="preserve">Date of start of outbreak </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="restart"/>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPS-BoldMT" w:hAnsi="TimesNewRomanPS-BoldMT"/><w:b/><w:sz w:val="20.160000"/><w:szCs w:val="15.120000"/></w:rPr><w:t xml:space="preserve">Date of reporting </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="restart"/>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPS-BoldMT" w:hAnsi="TimesNewRomanPS-BoldMT"/><w:b/><w:sz w:val="20.160000"/><w:szCs w:val="15.120000"/></w:rPr><w:t xml:space="preserve">Current Status </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPS-BoldMT" w:hAnsi="TimesNewRomanPS-BoldMT"/><w:b/><w:sz w:val="20.160000"/><w:szCs w:val="15.120000"/></w:rPr><w:t xml:space="preserve">Comments/ Action taken </w:t></w:r>
+</w:p> </w:tc>
+ </w:tr>
+ <w:tr>
+ <w:trPr/>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="restart"/>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPS-BoldMT" w:hAnsi="TimesNewRomanPS-BoldMT"/><w:b/><w:sz w:val="20.160000"/><w:szCs w:val="15.120000"/></w:rPr><w:t xml:space="preserve">State/UT </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPS-BoldMT" w:hAnsi="TimesNewRomanPS-BoldMT"/><w:b/><w:sz w:val="20.160000"/><w:szCs w:val="15.120000"/></w:rPr><w:t xml:space="preserve"> </w:t></w:r>
+</w:p> </w:tc>
+ </w:tr>
+ <w:tr>
+ <w:trPr/>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPS-BoldMT" w:hAnsi="TimesNewRomanPS-BoldMT"/><w:b/><w:sz w:val="20.160000"/><w:szCs w:val="15.120000"/></w:rPr><w:t xml:space="preserve"> </w:t></w:r>
+</w:p> </w:tc>
+ </w:tr>
+ <w:tr>
+ <w:trPr/>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="restart"/>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPS-BoldMT" w:hAnsi="TimesNewRomanPS-BoldMT"/><w:b/><w:sz w:val="20.160000"/><w:szCs w:val="15.120000"/></w:rPr><w:t xml:space="preserve"> </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="restart"/>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPS-BoldMT" w:hAnsi="TimesNewRomanPS-BoldMT"/><w:b/><w:sz w:val="20.160000"/><w:szCs w:val="15.120000"/></w:rPr><w:t xml:space="preserve"> </w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPS-BoldMT" w:hAnsi="TimesNewRomanPS-BoldMT"/><w:b/><w:sz w:val="20.160000"/><w:szCs w:val="15.120000"/></w:rPr><w:t xml:space="preserve"> </w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPS-BoldMT" w:hAnsi="TimesNewRomanPS-BoldMT"/><w:b/><w:sz w:val="20.160000"/><w:szCs w:val="15.120000"/></w:rPr><w:t xml:space="preserve"> </w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPS-BoldMT" w:hAnsi="TimesNewRomanPS-BoldMT"/><w:b/><w:sz w:val="20.160000"/><w:szCs w:val="15.120000"/></w:rPr><w:t xml:space="preserve">West Bengal </w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPS-BoldMT" w:hAnsi="TimesNewRomanPS-BoldMT"/><w:b/><w:sz w:val="20.160000"/><w:szCs w:val="15.120000"/></w:rPr><w:t xml:space="preserve"> </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="restart"/>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPS-BoldMT" w:hAnsi="TimesNewRomanPS-BoldMT"/><w:b/><w:sz w:val="20.160000"/><w:szCs w:val="15.120000"/></w:rPr><w:t xml:space="preserve">Bankura </w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPS-BoldMT" w:hAnsi="TimesNewRomanPS-BoldMT"/><w:b/><w:sz w:val="20.160000"/><w:szCs w:val="15.120000"/></w:rPr><w:t xml:space="preserve"> </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPS-BoldMT" w:hAnsi="TimesNewRomanPS-BoldMT"/><w:b/><w:sz w:val="20.160000"/><w:szCs w:val="15.120000"/></w:rPr><w:t xml:space="preserve">xix.</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="Arial-BoldMT" w:hAnsi="Arial-BoldMT"/><w:b/><w:sz w:val="20.160000"/><w:szCs w:val="15.120000"/></w:rPr><w:t xml:space="preserve"> </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPS-BoldMT" w:hAnsi="TimesNewRomanPS-BoldMT"/><w:b/><w:sz w:val="20.160000"/><w:szCs w:val="15.120000"/></w:rPr><w:t xml:space="preserve">Acute </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="restart"/>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT" w:hAnsi="TimesNewRomanPSMT"/><w:sz w:val="20.160000"/><w:szCs w:val="15.120000"/></w:rPr><w:t xml:space="preserve">46 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="restart"/>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT" w:hAnsi="TimesNewRomanPSMT"/><w:sz w:val="20.160000"/><w:szCs w:val="15.120000"/></w:rPr><w:t xml:space="preserve">0 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="restart"/>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT" w:hAnsi="TimesNewRomanPSMT"/><w:sz w:val="20.160000"/><w:szCs w:val="15.120000"/></w:rPr><w:t xml:space="preserve">10/11/13 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="restart"/>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT" w:hAnsi="TimesNewRomanPSMT"/><w:sz w:val="20.160000"/><w:szCs w:val="15.120000"/></w:rPr><w:t xml:space="preserve">15/11/13 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="restart"/>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT" w:hAnsi="TimesNewRomanPSMT"/><w:sz w:val="20.160000"/><w:szCs w:val="15.120000"/></w:rPr><w:t xml:space="preserve">Under Control</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="Calibri" w:hAnsi="Calibri"/><w:sz w:val="20.160000"/><w:szCs w:val="15.120000"/></w:rPr><w:t xml:space="preserve"> </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="restart"/>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT" w:hAnsi="TimesNewRomanPSMT"/><w:sz w:val="20.160000"/><w:szCs w:val="15.120000"/></w:rPr><w:t xml:space="preserve">Cases of loose motion and vomiting reported from Village Daldali, SC Binodnagar, Block Onda, District Bankura. District RRT and Block health team investigated the outbreak. Active search for cases done. Cases treated at local health centre. 2 stool samples collected were negative for cholera culture. Out of 3 water samples collected 1 sample was non potable. Chlorination of water sources done. Health education given regarding safe drinking water and sanitation. </w:t></w:r>
+</w:p> </w:tc>
+ </w:tr>
+ <w:tr>
+ <w:trPr/>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPS-BoldMT" w:hAnsi="TimesNewRomanPS-BoldMT"/><w:b/><w:sz w:val="20.160000"/><w:szCs w:val="15.120000"/></w:rPr><w:t xml:space="preserve">Diarrhoeal Disease </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ </w:tr>
+ <w:tr>
+ <w:trPr/>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPS-BoldMT" w:hAnsi="TimesNewRomanPS-BoldMT"/><w:b/><w:sz w:val="20.160000"/><w:szCs w:val="15.120000"/></w:rPr><w:t xml:space="preserve">xx.</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="Arial-BoldMT" w:hAnsi="Arial-BoldMT"/><w:b/><w:sz w:val="20.160000"/><w:szCs w:val="15.120000"/></w:rPr><w:t xml:space="preserve"> </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPS-BoldMT" w:hAnsi="TimesNewRomanPS-BoldMT"/><w:b/><w:sz w:val="20.160000"/><w:szCs w:val="15.120000"/></w:rPr><w:t xml:space="preserve">Acute </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="restart"/>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT" w:hAnsi="TimesNewRomanPSMT"/><w:sz w:val="20.160000"/><w:szCs w:val="15.120000"/></w:rPr><w:t xml:space="preserve">34 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="restart"/>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT" w:hAnsi="TimesNewRomanPSMT"/><w:sz w:val="20.160000"/><w:szCs w:val="15.120000"/></w:rPr><w:t xml:space="preserve">0 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="restart"/>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT" w:hAnsi="TimesNewRomanPSMT"/><w:sz w:val="20.160000"/><w:szCs w:val="15.120000"/></w:rPr><w:t xml:space="preserve">10/11/13 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="restart"/>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT" w:hAnsi="TimesNewRomanPSMT"/><w:sz w:val="20.160000"/><w:szCs w:val="15.120000"/></w:rPr><w:t xml:space="preserve">14/11/13 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="restart"/>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT" w:hAnsi="TimesNewRomanPSMT"/><w:sz w:val="20.160000"/><w:szCs w:val="15.120000"/></w:rPr><w:t xml:space="preserve">Under Control</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="Calibri" w:hAnsi="Calibri"/><w:sz w:val="20.160000"/><w:szCs w:val="15.120000"/></w:rPr><w:t xml:space="preserve"> </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="restart"/>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT" w:hAnsi="TimesNewRomanPSMT"/><w:sz w:val="20.160000"/><w:szCs w:val="15.120000"/></w:rPr><w:t xml:space="preserve">Cases of loose motion and vomiting reported from Village Icharia, SC Mankhamar, Block Onda, District Bankura. District RRT and Block health team investigated the outbreak. House to house survey done. All cases treated locally. 4 stool samples collected were negative for cholera culture. Out of 34 water samples collected, 8 samples were non potable. Chlorination of water sources done. Health education given regarding safe drinking water and sanitation. </w:t></w:r>
+</w:p> </w:tc>
+ </w:tr>
+ <w:tr>
+ <w:trPr/>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPS-BoldMT" w:hAnsi="TimesNewRomanPS-BoldMT"/><w:b/><w:sz w:val="20.160000"/><w:szCs w:val="15.120000"/></w:rPr><w:t xml:space="preserve">Diarrhoeal Disease </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ </w:tr>
+ </w:tbl>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPS-BoldMT" w:hAnsi="TimesNewRomanPS-BoldMT"/><w:b/><w:sz w:val="20.160000"/><w:szCs w:val="15.120000"/></w:rPr><w:t xml:space="preserve"> </w:t></w:r>
+</w:p>
+ <w:tbl>
+ <w:tblLayout w:type="autofit"/>
+ <w:tr>
+ <w:trPr/>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:gridSpan w:val="9"/>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT" w:hAnsi="TimesNewRomanPSMT"/><w:sz w:val="20.160000"/><w:szCs w:val="15.120000"/></w:rPr><w:t xml:space="preserve"> </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPS-BoldMT" w:hAnsi="TimesNewRomanPS-BoldMT"/><w:b/><w:sz w:val="20.160000"/><w:szCs w:val="15.120000"/></w:rPr><w:t xml:space="preserve">DISEASE OUTBREAKS OF PREVIOUS WEEKS REPORTED LATE </w:t></w:r>
+</w:p> </w:tc>
+ </w:tr>
+ <w:tr>
+ <w:trPr/>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="restart"/>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPS-BoldMT" w:hAnsi="TimesNewRomanPS-BoldMT"/><w:b/><w:sz w:val="20.160000"/><w:szCs w:val="15.120000"/></w:rPr><w:t xml:space="preserve">Sl. No </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPS-BoldMT" w:hAnsi="TimesNewRomanPS-BoldMT"/><w:b/><w:sz w:val="20.160000"/><w:szCs w:val="15.120000"/></w:rPr><w:t xml:space="preserve">Name of </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="restart"/>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPS-BoldMT" w:hAnsi="TimesNewRomanPS-BoldMT"/><w:b/><w:sz w:val="20.160000"/><w:szCs w:val="15.120000"/></w:rPr><w:t xml:space="preserve">Name of District </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="restart"/>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPS-BoldMT" w:hAnsi="TimesNewRomanPS-BoldMT"/><w:b/><w:sz w:val="20.160000"/><w:szCs w:val="15.120000"/></w:rPr><w:t xml:space="preserve">Disease/ Illness </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="restart"/>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPS-BoldMT" w:hAnsi="TimesNewRomanPS-BoldMT"/><w:b/><w:sz w:val="20.160000"/><w:szCs w:val="15.120000"/></w:rPr><w:t xml:space="preserve">Cases </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="restart"/>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPS-BoldMT" w:hAnsi="TimesNewRomanPS-BoldMT"/><w:b/><w:sz w:val="20.160000"/><w:szCs w:val="15.120000"/></w:rPr><w:t xml:space="preserve">Deaths </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="restart"/>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPS-BoldMT" w:hAnsi="TimesNewRomanPS-BoldMT"/><w:b/><w:sz w:val="20.160000"/><w:szCs w:val="15.120000"/></w:rPr><w:t xml:space="preserve">Date of start of outbreak </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="restart"/>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPS-BoldMT" w:hAnsi="TimesNewRomanPS-BoldMT"/><w:b/><w:sz w:val="20.160000"/><w:szCs w:val="15.120000"/></w:rPr><w:t xml:space="preserve">Current Status </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="restart"/>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPS-BoldMT" w:hAnsi="TimesNewRomanPS-BoldMT"/><w:b/><w:sz w:val="20.160000"/><w:szCs w:val="15.120000"/></w:rPr><w:t xml:space="preserve">Comments/ Action taken </w:t></w:r>
+</w:p> </w:tc>
+ </w:tr>
+ <w:tr>
+ <w:trPr/>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPS-BoldMT" w:hAnsi="TimesNewRomanPS-BoldMT"/><w:b/><w:sz w:val="20.160000"/><w:szCs w:val="15.120000"/></w:rPr><w:t xml:space="preserve">State/UT </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ </w:tr>
+ <w:tr>
+ <w:trPr/>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="restart"/>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPS-BoldMT" w:hAnsi="TimesNewRomanPS-BoldMT"/><w:b/><w:sz w:val="20.160000"/><w:szCs w:val="15.120000"/></w:rPr><w:t xml:space="preserve">1 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="restart"/>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPS-BoldMT" w:hAnsi="TimesNewRomanPS-BoldMT"/><w:b/><w:sz w:val="20.160000"/><w:szCs w:val="15.120000"/></w:rPr><w:t xml:space="preserve"> </w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPS-BoldMT" w:hAnsi="TimesNewRomanPS-BoldMT"/><w:b/><w:sz w:val="20.160000"/><w:szCs w:val="15.120000"/></w:rPr><w:t xml:space="preserve">Bihar </w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPS-BoldMT" w:hAnsi="TimesNewRomanPS-BoldMT"/><w:b/><w:sz w:val="20.160000"/><w:szCs w:val="15.120000"/></w:rPr><w:t xml:space="preserve"> </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="restart"/>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPS-BoldMT" w:hAnsi="TimesNewRomanPS-BoldMT"/><w:b/><w:sz w:val="20.160000"/><w:szCs w:val="15.120000"/></w:rPr><w:t xml:space="preserve">Madhubani </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="restart"/>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT" w:hAnsi="TimesNewRomanPSMT"/><w:sz w:val="20.160000"/><w:szCs w:val="15.120000"/></w:rPr><w:t xml:space="preserve">69 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="restart"/>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT" w:hAnsi="TimesNewRomanPSMT"/><w:sz w:val="20.160000"/><w:szCs w:val="15.120000"/></w:rPr><w:t xml:space="preserve">0 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="restart"/>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT" w:hAnsi="TimesNewRomanPSMT"/><w:sz w:val="20.160000"/><w:szCs w:val="15.120000"/></w:rPr><w:t xml:space="preserve">30/09/13 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="restart"/>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT" w:hAnsi="TimesNewRomanPSMT"/><w:sz w:val="20.160000"/><w:szCs w:val="15.120000"/></w:rPr><w:t xml:space="preserve">Under Control </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="restart"/>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT" w:hAnsi="TimesNewRomanPSMT"/><w:sz w:val="20.160000"/><w:szCs w:val="15.120000"/></w:rPr><w:t xml:space="preserve">Cases of diarrhoea and vomiting reported from Village Indra Mandal tola, SC Sugapatti, PHC Phulparas, District Madhubani. District RRT investigated the outbreak. House to house survey done. Medical camp organized. Symptomatic treatement given to cases. ORS packets and halogen tablets distributed in the community. Chlorination of water sources done. IEC done regarding safe drinking water and sanitation. </w:t></w:r>
+</w:p> </w:tc>
+ </w:tr>
+ <w:tr>
+ <w:trPr/>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPS-BoldMT" w:hAnsi="TimesNewRomanPS-BoldMT"/><w:b/><w:sz w:val="20.160000"/><w:szCs w:val="15.120000"/></w:rPr><w:t xml:space="preserve">xxi.</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="Arial-BoldMT" w:hAnsi="Arial-BoldMT"/><w:b/><w:sz w:val="20.160000"/><w:szCs w:val="15.120000"/></w:rPr><w:t xml:space="preserve"> </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPS-BoldMT" w:hAnsi="TimesNewRomanPS-BoldMT"/><w:b/><w:sz w:val="20.160000"/><w:szCs w:val="15.120000"/></w:rPr><w:t xml:space="preserve">Acute </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ </w:tr>
+ <w:tr>
+ <w:trPr/>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPS-BoldMT" w:hAnsi="TimesNewRomanPS-BoldMT"/><w:b/><w:sz w:val="20.160000"/><w:szCs w:val="15.120000"/></w:rPr><w:t xml:space="preserve">Diarrhoeal </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ </w:tr>
+ <w:tr>
+ <w:trPr/>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPS-BoldMT" w:hAnsi="TimesNewRomanPS-BoldMT"/><w:b/><w:sz w:val="20.160000"/><w:szCs w:val="15.120000"/></w:rPr><w:t xml:space="preserve">Disease </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ </w:tr>
+ <w:tr>
+ <w:trPr/>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="restart"/>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPS-BoldMT" w:hAnsi="TimesNewRomanPS-BoldMT"/><w:b/><w:sz w:val="20.160000"/><w:szCs w:val="15.120000"/></w:rPr><w:t xml:space="preserve">Madhubani </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="restart"/>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT" w:hAnsi="TimesNewRomanPSMT"/><w:sz w:val="20.160000"/><w:szCs w:val="15.120000"/></w:rPr><w:t xml:space="preserve">30 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="restart"/>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT" w:hAnsi="TimesNewRomanPSMT"/><w:sz w:val="20.160000"/><w:szCs w:val="15.120000"/></w:rPr><w:t xml:space="preserve">1 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="restart"/>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT" w:hAnsi="TimesNewRomanPSMT"/><w:sz w:val="20.160000"/><w:szCs w:val="15.120000"/></w:rPr><w:t xml:space="preserve">28/10/13 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="restart"/>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT" w:hAnsi="TimesNewRomanPSMT"/><w:sz w:val="20.160000"/><w:szCs w:val="15.120000"/></w:rPr><w:t xml:space="preserve">Under Control </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="restart"/>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT" w:hAnsi="TimesNewRomanPSMT"/><w:sz w:val="20.160000"/><w:szCs w:val="15.120000"/></w:rPr><w:t xml:space="preserve">Cases of diarrhoea and vomiting reported from Village/SC Rupauli, PHC Jhanjharpur, District Madhubani. District RRT and Block health team investigated the outbreak. Active search for cases done. Medical camp organized. All cases treated. One death occurred in 14yr old female child. ORS packets and halogen tablets distributed. Chlorination of water sources done. IEC activity regarding safe drinking water done. </w:t></w:r>
+</w:p> </w:tc>
+ </w:tr>
+ <w:tr>
+ <w:trPr/>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPS-BoldMT" w:hAnsi="TimesNewRomanPS-BoldMT"/><w:b/><w:sz w:val="20.160000"/><w:szCs w:val="15.120000"/></w:rPr><w:t xml:space="preserve">xxii.</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="Arial-BoldMT" w:hAnsi="Arial-BoldMT"/><w:b/><w:sz w:val="20.160000"/><w:szCs w:val="15.120000"/></w:rPr><w:t xml:space="preserve"> </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPS-BoldMT" w:hAnsi="TimesNewRomanPS-BoldMT"/><w:b/><w:sz w:val="20.160000"/><w:szCs w:val="15.120000"/></w:rPr><w:t xml:space="preserve">Acute </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ </w:tr>
+ <w:tr>
+ <w:trPr/>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPS-BoldMT" w:hAnsi="TimesNewRomanPS-BoldMT"/><w:b/><w:sz w:val="20.160000"/><w:szCs w:val="15.120000"/></w:rPr><w:t xml:space="preserve">Diarrhoeal </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ </w:tr>
+ <w:tr>
+ <w:trPr/>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPS-BoldMT" w:hAnsi="TimesNewRomanPS-BoldMT"/><w:b/><w:sz w:val="20.160000"/><w:szCs w:val="15.120000"/></w:rPr><w:t xml:space="preserve">Disease </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ </w:tr>
+ <w:tr>
+ <w:trPr/>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="restart"/>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPS-BoldMT" w:hAnsi="TimesNewRomanPS-BoldMT"/><w:b/><w:sz w:val="20.160000"/><w:szCs w:val="15.120000"/></w:rPr><w:t xml:space="preserve">Katihar </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPS-BoldMT" w:hAnsi="TimesNewRomanPS-BoldMT"/><w:b/><w:sz w:val="20.160000"/><w:szCs w:val="15.120000"/></w:rPr><w:t xml:space="preserve">xxiii.</w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="Arial-BoldMT" w:hAnsi="Arial-BoldMT"/><w:b/><w:sz w:val="20.160000"/><w:szCs w:val="15.120000"/></w:rPr><w:t xml:space="preserve"> </w:t></w:r>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPS-BoldMT" w:hAnsi="TimesNewRomanPS-BoldMT"/><w:b/><w:sz w:val="20.160000"/><w:szCs w:val="15.120000"/></w:rPr><w:t xml:space="preserve">Acute </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="restart"/>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT" w:hAnsi="TimesNewRomanPSMT"/><w:sz w:val="20.160000"/><w:szCs w:val="15.120000"/></w:rPr><w:t xml:space="preserve">13 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="restart"/>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT" w:hAnsi="TimesNewRomanPSMT"/><w:sz w:val="20.160000"/><w:szCs w:val="15.120000"/></w:rPr><w:t xml:space="preserve">3 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="restart"/>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT" w:hAnsi="TimesNewRomanPSMT"/><w:sz w:val="20.160000"/><w:szCs w:val="15.120000"/></w:rPr><w:t xml:space="preserve">24/10/13 </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="restart"/>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT" w:hAnsi="TimesNewRomanPSMT"/><w:sz w:val="20.160000"/><w:szCs w:val="15.120000"/></w:rPr><w:t xml:space="preserve">Under control </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="restart"/>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPSMT" w:hAnsi="TimesNewRomanPSMT"/><w:sz w:val="20.160000"/><w:szCs w:val="15.120000"/></w:rPr><w:t xml:space="preserve">Cases of diarrhoea reported from Village Ahuta, Alipur, SC Lachhor, PHC/Block Balrampur, District Katihar. District RRT investigated the outbreak. House to house survey done. Cases occurred in a Adiwasi community. 3 deaths occurred in 45yr, 35yr and 5yr old male. Temporary medical camps organized. All cases treated symptomatically. Chlorination of water sources done. Health education given. </w:t></w:r>
+</w:p> </w:tc>
+ </w:tr>
+ <w:tr>
+ <w:trPr/>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="TimesNewRomanPS-BoldMT" w:hAnsi="TimesNewRomanPS-BoldMT"/><w:b/><w:sz w:val="20.160000"/><w:szCs w:val="15.120000"/></w:rPr><w:t xml:space="preserve">Diarrhoeal Disease </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ </w:tr>
+ </w:tbl>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Calibri" w:hAnsi="Calibri"/><w:sz w:val="20.160000"/><w:szCs w:val="15.120000"/></w:rPr><w:t xml:space="preserve">5</w:t></w:r>
+</w:p>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Calibri" w:hAnsi="Calibri"/><w:sz w:val="20.160000"/><w:szCs w:val="15.120000"/></w:rPr><w:t xml:space="preserve"> </w:t></w:r>
+</w:p></w:body></w:document> \ No newline at end of file
diff --git a/extract/test/twotables_1.pdf.mutool.docx.dir.ref/word/fontTable.xml b/extract/test/twotables_1.pdf.mutool.docx.dir.ref/word/fontTable.xml
new file mode 100644
index 00000000..a39546e5
--- /dev/null
+++ b/extract/test/twotables_1.pdf.mutool.docx.dir.ref/word/fontTable.xml
@@ -0,0 +1,2 @@
+<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
+<w:fonts xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships" xmlns:w="http://schemas.openxmlformats.org/wordprocessingml/2006/main" xmlns:w14="http://schemas.microsoft.com/office/word/2010/wordml" xmlns:w15="http://schemas.microsoft.com/office/word/2012/wordml" xmlns:w16cex="http://schemas.microsoft.com/office/word/2018/wordml/cex" xmlns:w16cid="http://schemas.microsoft.com/office/word/2016/wordml/cid" xmlns:w16="http://schemas.microsoft.com/office/word/2018/wordml" xmlns:w16se="http://schemas.microsoft.com/office/word/2015/wordml/symex" mc:Ignorable="w14 w15 w16se w16cid w16 w16cex"><w:font w:name="Calibri"><w:panose1 w:val="020F0502020204030204"/><w:charset w:val="00"/><w:family w:val="swiss"/><w:pitch w:val="variable"/><w:sig w:usb0="E4002EFF" w:usb1="C000247B" w:usb2="00000009" w:usb3="00000000" w:csb0="000001FF" w:csb1="00000000"/></w:font><w:font w:name="Times New Roman"><w:panose1 w:val="02020603050405020304"/><w:charset w:val="00"/><w:family w:val="roman"/><w:pitch w:val="variable"/><w:sig w:usb0="E0002EFF" w:usb1="C000785B" w:usb2="00000009" w:usb3="00000000" w:csb0="000001FF" w:csb1="00000000"/></w:font><w:font w:name="Calibri Light"><w:panose1 w:val="020F0302020204030204"/><w:charset w:val="00"/><w:family w:val="swiss"/><w:pitch w:val="variable"/><w:sig w:usb0="E4002EFF" w:usb1="C000247B" w:usb2="00000009" w:usb3="00000000" w:csb0="000001FF" w:csb1="00000000"/></w:font></w:fonts> \ No newline at end of file
diff --git a/extract/test/twotables_1.pdf.mutool.docx.dir.ref/word/settings.xml b/extract/test/twotables_1.pdf.mutool.docx.dir.ref/word/settings.xml
new file mode 100644
index 00000000..c403540d
--- /dev/null
+++ b/extract/test/twotables_1.pdf.mutool.docx.dir.ref/word/settings.xml
@@ -0,0 +1,2 @@
+<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
+<w:settings xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships" xmlns:m="http://schemas.openxmlformats.org/officeDocument/2006/math" xmlns:v="urn:schemas-microsoft-com:vml" xmlns:w10="urn:schemas-microsoft-com:office:word" xmlns:w="http://schemas.openxmlformats.org/wordprocessingml/2006/main" xmlns:w14="http://schemas.microsoft.com/office/word/2010/wordml" xmlns:w15="http://schemas.microsoft.com/office/word/2012/wordml" xmlns:w16cex="http://schemas.microsoft.com/office/word/2018/wordml/cex" xmlns:w16cid="http://schemas.microsoft.com/office/word/2016/wordml/cid" xmlns:w16="http://schemas.microsoft.com/office/word/2018/wordml" xmlns:w16se="http://schemas.microsoft.com/office/word/2015/wordml/symex" xmlns:sl="http://schemas.openxmlformats.org/schemaLibrary/2006/main" mc:Ignorable="w14 w15 w16se w16cid w16 w16cex"><w:zoom w:percent="100"/><w:proofState w:spelling="clean" w:grammar="clean"/><w:defaultTabStop w:val="720"/><w:characterSpacingControl w:val="doNotCompress"/><w:compat><w:compatSetting w:name="compatibilityMode" w:uri="http://schemas.microsoft.com/office/word" w:val="15"/><w:compatSetting w:name="overrideTableStyleFontSizeAndJustification" w:uri="http://schemas.microsoft.com/office/word" w:val="1"/><w:compatSetting w:name="enableOpenTypeFeatures" w:uri="http://schemas.microsoft.com/office/word" w:val="1"/><w:compatSetting w:name="doNotFlipMirrorIndents" w:uri="http://schemas.microsoft.com/office/word" w:val="1"/><w:compatSetting w:name="differentiateMultirowTableHeaders" w:uri="http://schemas.microsoft.com/office/word" w:val="1"/><w:compatSetting w:name="useWord2013TrackBottomHyphenation" w:uri="http://schemas.microsoft.com/office/word" w:val="0"/></w:compat><w:rsids><w:rsidRoot w:val="007F4427"/><w:rsid w:val="00255448"/><w:rsid w:val="007F4427"/></w:rsids><m:mathPr><m:mathFont m:val="Cambria Math"/><m:brkBin m:val="before"/><m:brkBinSub m:val="--"/><m:smallFrac m:val="0"/><m:dispDef/><m:lMargin m:val="0"/><m:rMargin m:val="0"/><m:defJc m:val="centerGroup"/><m:wrapIndent m:val="1440"/><m:intLim m:val="subSup"/><m:naryLim m:val="undOvr"/></m:mathPr><w:themeFontLang w:val="en-GB"/><w:clrSchemeMapping w:bg1="light1" w:t1="dark1" w:bg2="light2" w:t2="dark2" w:accent1="accent1" w:accent2="accent2" w:accent3="accent3" w:accent4="accent4" w:accent5="accent5" w:accent6="accent6" w:hyperlink="hyperlink" w:followedHyperlink="followedHyperlink"/><w:shapeDefaults><o:shapedefaults v:ext="edit" spidmax="1026"/><o:shapelayout v:ext="edit"><o:idmap v:ext="edit" data="1"/></o:shapelayout></w:shapeDefaults><w:decimalSymbol w:val="."/><w:listSeparator w:val=","/><w14:docId w14:val="32E52EF8"/><w15:chartTrackingRefBased/><w15:docId w15:val="{A10F59F7-497D-44D4-A338-47719734E7A0}"/></w:settings> \ No newline at end of file
diff --git a/extract/test/twotables_1.pdf.mutool.docx.dir.ref/word/styles.xml b/extract/test/twotables_1.pdf.mutool.docx.dir.ref/word/styles.xml
new file mode 100644
index 00000000..38e5e2bd
--- /dev/null
+++ b/extract/test/twotables_1.pdf.mutool.docx.dir.ref/word/styles.xml
@@ -0,0 +1,2 @@
+<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
+<w:styles xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships" xmlns:w="http://schemas.openxmlformats.org/wordprocessingml/2006/main" xmlns:w14="http://schemas.microsoft.com/office/word/2010/wordml" xmlns:w15="http://schemas.microsoft.com/office/word/2012/wordml" xmlns:w16cex="http://schemas.microsoft.com/office/word/2018/wordml/cex" xmlns:w16cid="http://schemas.microsoft.com/office/word/2016/wordml/cid" xmlns:w16="http://schemas.microsoft.com/office/word/2018/wordml" xmlns:w16se="http://schemas.microsoft.com/office/word/2015/wordml/symex" mc:Ignorable="w14 w15 w16se w16cid w16 w16cex"><w:docDefaults><w:rPrDefault><w:rPr><w:rFonts w:asciiTheme="minorHAnsi" w:eastAsiaTheme="minorHAnsi" w:hAnsiTheme="minorHAnsi" w:cstheme="minorBidi"/><w:sz w:val="22"/><w:szCs w:val="22"/><w:lang w:val="en-GB" w:eastAsia="en-US" w:bidi="ar-SA"/></w:rPr></w:rPrDefault><w:pPrDefault><w:pPr><w:spacing w:after="160" w:line="259" w:lineRule="auto"/></w:pPr></w:pPrDefault></w:docDefaults><w:latentStyles w:defLockedState="0" w:defUIPriority="99" w:defSemiHidden="0" w:defUnhideWhenUsed="0" w:defQFormat="0" w:count="376"><w:lsdException w:name="Normal" w:uiPriority="0" w:qFormat="1"/><w:lsdException w:name="heading 1" w:uiPriority="9" w:qFormat="1"/><w:lsdException w:name="heading 2" w:semiHidden="1" w:uiPriority="9" w:unhideWhenUsed="1" w:qFormat="1"/><w:lsdException w:name="heading 3" w:semiHidden="1" w:uiPriority="9" w:unhideWhenUsed="1" w:qFormat="1"/><w:lsdException w:name="heading 4" w:semiHidden="1" w:uiPriority="9" w:unhideWhenUsed="1" w:qFormat="1"/><w:lsdException w:name="heading 5" w:semiHidden="1" w:uiPriority="9" w:unhideWhenUsed="1" w:qFormat="1"/><w:lsdException w:name="heading 6" w:semiHidden="1" w:uiPriority="9" w:unhideWhenUsed="1" w:qFormat="1"/><w:lsdException w:name="heading 7" w:semiHidden="1" w:uiPriority="9" w:unhideWhenUsed="1" w:qFormat="1"/><w:lsdException w:name="heading 8" w:semiHidden="1" w:uiPriority="9" w:unhideWhenUsed="1" w:qFormat="1"/><w:lsdException w:name="heading 9" w:semiHidden="1" w:uiPriority="9" w:unhideWhenUsed="1" w:qFormat="1"/><w:lsdException w:name="index 1" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="index 2" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="index 3" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="index 4" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="index 5" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="index 6" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="index 7" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="index 8" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="index 9" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="toc 1" w:semiHidden="1" w:uiPriority="39" w:unhideWhenUsed="1"/><w:lsdException w:name="toc 2" w:semiHidden="1" w:uiPriority="39" w:unhideWhenUsed="1"/><w:lsdException w:name="toc 3" w:semiHidden="1" w:uiPriority="39" w:unhideWhenUsed="1"/><w:lsdException w:name="toc 4" w:semiHidden="1" w:uiPriority="39" w:unhideWhenUsed="1"/><w:lsdException w:name="toc 5" w:semiHidden="1" w:uiPriority="39" w:unhideWhenUsed="1"/><w:lsdException w:name="toc 6" w:semiHidden="1" w:uiPriority="39" w:unhideWhenUsed="1"/><w:lsdException w:name="toc 7" w:semiHidden="1" w:uiPriority="39" w:unhideWhenUsed="1"/><w:lsdException w:name="toc 8" w:semiHidden="1" w:uiPriority="39" w:unhideWhenUsed="1"/><w:lsdException w:name="toc 9" w:semiHidden="1" w:uiPriority="39" w:unhideWhenUsed="1"/><w:lsdException w:name="Normal Indent" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="footnote text" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="annotation text" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="header" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="footer" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="index heading" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="caption" w:semiHidden="1" w:uiPriority="35" w:unhideWhenUsed="1" w:qFormat="1"/><w:lsdException w:name="table of figures" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="envelope address" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="envelope return" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="footnote reference" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="annotation reference" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="line number" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="page number" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="endnote reference" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="endnote text" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="table of authorities" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="macro" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="toa heading" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="List" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="List Bullet" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="List Number" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="List 2" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="List 3" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="List 4" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="List 5" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="List Bullet 2" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="List Bullet 3" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="List Bullet 4" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="List Bullet 5" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="List Number 2" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="List Number 3" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="List Number 4" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="List Number 5" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Title" w:uiPriority="10" w:qFormat="1"/><w:lsdException w:name="Closing" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Signature" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Default Paragraph Font" w:semiHidden="1" w:uiPriority="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Body Text" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Body Text Indent" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="List Continue" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="List Continue 2" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="List Continue 3" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="List Continue 4" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="List Continue 5" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Message Header" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Subtitle" w:uiPriority="11" w:qFormat="1"/><w:lsdException w:name="Salutation" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Date" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Body Text First Indent" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Body Text First Indent 2" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Note Heading" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Body Text 2" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Body Text 3" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Body Text Indent 2" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Body Text Indent 3" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Block Text" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Hyperlink" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="FollowedHyperlink" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Strong" w:uiPriority="22" w:qFormat="1"/><w:lsdException w:name="Emphasis" w:uiPriority="20" w:qFormat="1"/><w:lsdException w:name="Document Map" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Plain Text" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="E-mail Signature" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="HTML Top of Form" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="HTML Bottom of Form" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Normal (Web)" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="HTML Acronym" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="HTML Address" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="HTML Cite" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="HTML Code" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="HTML Definition" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="HTML Keyboard" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="HTML Preformatted" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="HTML Sample" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="HTML Typewriter" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="HTML Variable" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Normal Table" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="annotation subject" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="No List" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Outline List 1" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Outline List 2" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Outline List 3" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Simple 1" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Simple 2" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Simple 3" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Classic 1" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Classic 2" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Classic 3" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Classic 4" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Colorful 1" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Colorful 2" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Colorful 3" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Columns 1" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Columns 2" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Columns 3" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Columns 4" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Columns 5" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Grid 1" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Grid 2" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Grid 3" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Grid 4" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Grid 5" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Grid 6" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Grid 7" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Grid 8" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table List 1" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table List 2" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table List 3" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table List 4" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table List 5" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table List 6" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table List 7" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table List 8" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table 3D effects 1" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table 3D effects 2" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table 3D effects 3" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Contemporary" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Elegant" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Professional" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Subtle 1" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Subtle 2" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Web 1" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Web 2" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Web 3" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Balloon Text" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Grid" w:uiPriority="39"/><w:lsdException w:name="Table Theme" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Placeholder Text" w:semiHidden="1"/><w:lsdException w:name="No Spacing" w:uiPriority="1" w:qFormat="1"/><w:lsdException w:name="Light Shading" w:uiPriority="60"/><w:lsdException w:name="Light List" w:uiPriority="61"/><w:lsdException w:name="Light Grid" w:uiPriority="62"/><w:lsdException w:name="Medium Shading 1" w:uiPriority="63"/><w:lsdException w:name="Medium Shading 2" w:uiPriority="64"/><w:lsdException w:name="Medium List 1" w:uiPriority="65"/><w:lsdException w:name="Medium List 2" w:uiPriority="66"/><w:lsdException w:name="Medium Grid 1" w:uiPriority="67"/><w:lsdException w:name="Medium Grid 2" w:uiPriority="68"/><w:lsdException w:name="Medium Grid 3" w:uiPriority="69"/><w:lsdException w:name="Dark List" w:uiPriority="70"/><w:lsdException w:name="Colorful Shading" w:uiPriority="71"/><w:lsdException w:name="Colorful List" w:uiPriority="72"/><w:lsdException w:name="Colorful Grid" w:uiPriority="73"/><w:lsdException w:name="Light Shading Accent 1" w:uiPriority="60"/><w:lsdException w:name="Light List Accent 1" w:uiPriority="61"/><w:lsdException w:name="Light Grid Accent 1" w:uiPriority="62"/><w:lsdException w:name="Medium Shading 1 Accent 1" w:uiPriority="63"/><w:lsdException w:name="Medium Shading 2 Accent 1" w:uiPriority="64"/><w:lsdException w:name="Medium List 1 Accent 1" w:uiPriority="65"/><w:lsdException w:name="Revision" w:semiHidden="1"/><w:lsdException w:name="List Paragraph" w:uiPriority="34" w:qFormat="1"/><w:lsdException w:name="Quote" w:uiPriority="29" w:qFormat="1"/><w:lsdException w:name="Intense Quote" w:uiPriority="30" w:qFormat="1"/><w:lsdException w:name="Medium List 2 Accent 1" w:uiPriority="66"/><w:lsdException w:name="Medium Grid 1 Accent 1" w:uiPriority="67"/><w:lsdException w:name="Medium Grid 2 Accent 1" w:uiPriority="68"/><w:lsdException w:name="Medium Grid 3 Accent 1" w:uiPriority="69"/><w:lsdException w:name="Dark List Accent 1" w:uiPriority="70"/><w:lsdException w:name="Colorful Shading Accent 1" w:uiPriority="71"/><w:lsdException w:name="Colorful List Accent 1" w:uiPriority="72"/><w:lsdException w:name="Colorful Grid Accent 1" w:uiPriority="73"/><w:lsdException w:name="Light Shading Accent 2" w:uiPriority="60"/><w:lsdException w:name="Light List Accent 2" w:uiPriority="61"/><w:lsdException w:name="Light Grid Accent 2" w:uiPriority="62"/><w:lsdException w:name="Medium Shading 1 Accent 2" w:uiPriority="63"/><w:lsdException w:name="Medium Shading 2 Accent 2" w:uiPriority="64"/><w:lsdException w:name="Medium List 1 Accent 2" w:uiPriority="65"/><w:lsdException w:name="Medium List 2 Accent 2" w:uiPriority="66"/><w:lsdException w:name="Medium Grid 1 Accent 2" w:uiPriority="67"/><w:lsdException w:name="Medium Grid 2 Accent 2" w:uiPriority="68"/><w:lsdException w:name="Medium Grid 3 Accent 2" w:uiPriority="69"/><w:lsdException w:name="Dark List Accent 2" w:uiPriority="70"/><w:lsdException w:name="Colorful Shading Accent 2" w:uiPriority="71"/><w:lsdException w:name="Colorful List Accent 2" w:uiPriority="72"/><w:lsdException w:name="Colorful Grid Accent 2" w:uiPriority="73"/><w:lsdException w:name="Light Shading Accent 3" w:uiPriority="60"/><w:lsdException w:name="Light List Accent 3" w:uiPriority="61"/><w:lsdException w:name="Light Grid Accent 3" w:uiPriority="62"/><w:lsdException w:name="Medium Shading 1 Accent 3" w:uiPriority="63"/><w:lsdException w:name="Medium Shading 2 Accent 3" w:uiPriority="64"/><w:lsdException w:name="Medium List 1 Accent 3" w:uiPriority="65"/><w:lsdException w:name="Medium List 2 Accent 3" w:uiPriority="66"/><w:lsdException w:name="Medium Grid 1 Accent 3" w:uiPriority="67"/><w:lsdException w:name="Medium Grid 2 Accent 3" w:uiPriority="68"/><w:lsdException w:name="Medium Grid 3 Accent 3" w:uiPriority="69"/><w:lsdException w:name="Dark List Accent 3" w:uiPriority="70"/><w:lsdException w:name="Colorful Shading Accent 3" w:uiPriority="71"/><w:lsdException w:name="Colorful List Accent 3" w:uiPriority="72"/><w:lsdException w:name="Colorful Grid Accent 3" w:uiPriority="73"/><w:lsdException w:name="Light Shading Accent 4" w:uiPriority="60"/><w:lsdException w:name="Light List Accent 4" w:uiPriority="61"/><w:lsdException w:name="Light Grid Accent 4" w:uiPriority="62"/><w:lsdException w:name="Medium Shading 1 Accent 4" w:uiPriority="63"/><w:lsdException w:name="Medium Shading 2 Accent 4" w:uiPriority="64"/><w:lsdException w:name="Medium List 1 Accent 4" w:uiPriority="65"/><w:lsdException w:name="Medium List 2 Accent 4" w:uiPriority="66"/><w:lsdException w:name="Medium Grid 1 Accent 4" w:uiPriority="67"/><w:lsdException w:name="Medium Grid 2 Accent 4" w:uiPriority="68"/><w:lsdException w:name="Medium Grid 3 Accent 4" w:uiPriority="69"/><w:lsdException w:name="Dark List Accent 4" w:uiPriority="70"/><w:lsdException w:name="Colorful Shading Accent 4" w:uiPriority="71"/><w:lsdException w:name="Colorful List Accent 4" w:uiPriority="72"/><w:lsdException w:name="Colorful Grid Accent 4" w:uiPriority="73"/><w:lsdException w:name="Light Shading Accent 5" w:uiPriority="60"/><w:lsdException w:name="Light List Accent 5" w:uiPriority="61"/><w:lsdException w:name="Light Grid Accent 5" w:uiPriority="62"/><w:lsdException w:name="Medium Shading 1 Accent 5" w:uiPriority="63"/><w:lsdException w:name="Medium Shading 2 Accent 5" w:uiPriority="64"/><w:lsdException w:name="Medium List 1 Accent 5" w:uiPriority="65"/><w:lsdException w:name="Medium List 2 Accent 5" w:uiPriority="66"/><w:lsdException w:name="Medium Grid 1 Accent 5" w:uiPriority="67"/><w:lsdException w:name="Medium Grid 2 Accent 5" w:uiPriority="68"/><w:lsdException w:name="Medium Grid 3 Accent 5" w:uiPriority="69"/><w:lsdException w:name="Dark List Accent 5" w:uiPriority="70"/><w:lsdException w:name="Colorful Shading Accent 5" w:uiPriority="71"/><w:lsdException w:name="Colorful List Accent 5" w:uiPriority="72"/><w:lsdException w:name="Colorful Grid Accent 5" w:uiPriority="73"/><w:lsdException w:name="Light Shading Accent 6" w:uiPriority="60"/><w:lsdException w:name="Light List Accent 6" w:uiPriority="61"/><w:lsdException w:name="Light Grid Accent 6" w:uiPriority="62"/><w:lsdException w:name="Medium Shading 1 Accent 6" w:uiPriority="63"/><w:lsdException w:name="Medium Shading 2 Accent 6" w:uiPriority="64"/><w:lsdException w:name="Medium List 1 Accent 6" w:uiPriority="65"/><w:lsdException w:name="Medium List 2 Accent 6" w:uiPriority="66"/><w:lsdException w:name="Medium Grid 1 Accent 6" w:uiPriority="67"/><w:lsdException w:name="Medium Grid 2 Accent 6" w:uiPriority="68"/><w:lsdException w:name="Medium Grid 3 Accent 6" w:uiPriority="69"/><w:lsdException w:name="Dark List Accent 6" w:uiPriority="70"/><w:lsdException w:name="Colorful Shading Accent 6" w:uiPriority="71"/><w:lsdException w:name="Colorful List Accent 6" w:uiPriority="72"/><w:lsdException w:name="Colorful Grid Accent 6" w:uiPriority="73"/><w:lsdException w:name="Subtle Emphasis" w:uiPriority="19" w:qFormat="1"/><w:lsdException w:name="Intense Emphasis" w:uiPriority="21" w:qFormat="1"/><w:lsdException w:name="Subtle Reference" w:uiPriority="31" w:qFormat="1"/><w:lsdException w:name="Intense Reference" w:uiPriority="32" w:qFormat="1"/><w:lsdException w:name="Book Title" w:uiPriority="33" w:qFormat="1"/><w:lsdException w:name="Bibliography" w:semiHidden="1" w:uiPriority="37" w:unhideWhenUsed="1"/><w:lsdException w:name="TOC Heading" w:semiHidden="1" w:uiPriority="39" w:unhideWhenUsed="1" w:qFormat="1"/><w:lsdException w:name="Plain Table 1" w:uiPriority="41"/><w:lsdException w:name="Plain Table 2" w:uiPriority="42"/><w:lsdException w:name="Plain Table 3" w:uiPriority="43"/><w:lsdException w:name="Plain Table 4" w:uiPriority="44"/><w:lsdException w:name="Plain Table 5" w:uiPriority="45"/><w:lsdException w:name="Grid Table Light" w:uiPriority="40"/><w:lsdException w:name="Grid Table 1 Light" w:uiPriority="46"/><w:lsdException w:name="Grid Table 2" w:uiPriority="47"/><w:lsdException w:name="Grid Table 3" w:uiPriority="48"/><w:lsdException w:name="Grid Table 4" w:uiPriority="49"/><w:lsdException w:name="Grid Table 5 Dark" w:uiPriority="50"/><w:lsdException w:name="Grid Table 6 Colorful" w:uiPriority="51"/><w:lsdException w:name="Grid Table 7 Colorful" w:uiPriority="52"/><w:lsdException w:name="Grid Table 1 Light Accent 1" w:uiPriority="46"/><w:lsdException w:name="Grid Table 2 Accent 1" w:uiPriority="47"/><w:lsdException w:name="Grid Table 3 Accent 1" w:uiPriority="48"/><w:lsdException w:name="Grid Table 4 Accent 1" w:uiPriority="49"/><w:lsdException w:name="Grid Table 5 Dark Accent 1" w:uiPriority="50"/><w:lsdException w:name="Grid Table 6 Colorful Accent 1" w:uiPriority="51"/><w:lsdException w:name="Grid Table 7 Colorful Accent 1" w:uiPriority="52"/><w:lsdException w:name="Grid Table 1 Light Accent 2" w:uiPriority="46"/><w:lsdException w:name="Grid Table 2 Accent 2" w:uiPriority="47"/><w:lsdException w:name="Grid Table 3 Accent 2" w:uiPriority="48"/><w:lsdException w:name="Grid Table 4 Accent 2" w:uiPriority="49"/><w:lsdException w:name="Grid Table 5 Dark Accent 2" w:uiPriority="50"/><w:lsdException w:name="Grid Table 6 Colorful Accent 2" w:uiPriority="51"/><w:lsdException w:name="Grid Table 7 Colorful Accent 2" w:uiPriority="52"/><w:lsdException w:name="Grid Table 1 Light Accent 3" w:uiPriority="46"/><w:lsdException w:name="Grid Table 2 Accent 3" w:uiPriority="47"/><w:lsdException w:name="Grid Table 3 Accent 3" w:uiPriority="48"/><w:lsdException w:name="Grid Table 4 Accent 3" w:uiPriority="49"/><w:lsdException w:name="Grid Table 5 Dark Accent 3" w:uiPriority="50"/><w:lsdException w:name="Grid Table 6 Colorful Accent 3" w:uiPriority="51"/><w:lsdException w:name="Grid Table 7 Colorful Accent 3" w:uiPriority="52"/><w:lsdException w:name="Grid Table 1 Light Accent 4" w:uiPriority="46"/><w:lsdException w:name="Grid Table 2 Accent 4" w:uiPriority="47"/><w:lsdException w:name="Grid Table 3 Accent 4" w:uiPriority="48"/><w:lsdException w:name="Grid Table 4 Accent 4" w:uiPriority="49"/><w:lsdException w:name="Grid Table 5 Dark Accent 4" w:uiPriority="50"/><w:lsdException w:name="Grid Table 6 Colorful Accent 4" w:uiPriority="51"/><w:lsdException w:name="Grid Table 7 Colorful Accent 4" w:uiPriority="52"/><w:lsdException w:name="Grid Table 1 Light Accent 5" w:uiPriority="46"/><w:lsdException w:name="Grid Table 2 Accent 5" w:uiPriority="47"/><w:lsdException w:name="Grid Table 3 Accent 5" w:uiPriority="48"/><w:lsdException w:name="Grid Table 4 Accent 5" w:uiPriority="49"/><w:lsdException w:name="Grid Table 5 Dark Accent 5" w:uiPriority="50"/><w:lsdException w:name="Grid Table 6 Colorful Accent 5" w:uiPriority="51"/><w:lsdException w:name="Grid Table 7 Colorful Accent 5" w:uiPriority="52"/><w:lsdException w:name="Grid Table 1 Light Accent 6" w:uiPriority="46"/><w:lsdException w:name="Grid Table 2 Accent 6" w:uiPriority="47"/><w:lsdException w:name="Grid Table 3 Accent 6" w:uiPriority="48"/><w:lsdException w:name="Grid Table 4 Accent 6" w:uiPriority="49"/><w:lsdException w:name="Grid Table 5 Dark Accent 6" w:uiPriority="50"/><w:lsdException w:name="Grid Table 6 Colorful Accent 6" w:uiPriority="51"/><w:lsdException w:name="Grid Table 7 Colorful Accent 6" w:uiPriority="52"/><w:lsdException w:name="List Table 1 Light" w:uiPriority="46"/><w:lsdException w:name="List Table 2" w:uiPriority="47"/><w:lsdException w:name="List Table 3" w:uiPriority="48"/><w:lsdException w:name="List Table 4" w:uiPriority="49"/><w:lsdException w:name="List Table 5 Dark" w:uiPriority="50"/><w:lsdException w:name="List Table 6 Colorful" w:uiPriority="51"/><w:lsdException w:name="List Table 7 Colorful" w:uiPriority="52"/><w:lsdException w:name="List Table 1 Light Accent 1" w:uiPriority="46"/><w:lsdException w:name="List Table 2 Accent 1" w:uiPriority="47"/><w:lsdException w:name="List Table 3 Accent 1" w:uiPriority="48"/><w:lsdException w:name="List Table 4 Accent 1" w:uiPriority="49"/><w:lsdException w:name="List Table 5 Dark Accent 1" w:uiPriority="50"/><w:lsdException w:name="List Table 6 Colorful Accent 1" w:uiPriority="51"/><w:lsdException w:name="List Table 7 Colorful Accent 1" w:uiPriority="52"/><w:lsdException w:name="List Table 1 Light Accent 2" w:uiPriority="46"/><w:lsdException w:name="List Table 2 Accent 2" w:uiPriority="47"/><w:lsdException w:name="List Table 3 Accent 2" w:uiPriority="48"/><w:lsdException w:name="List Table 4 Accent 2" w:uiPriority="49"/><w:lsdException w:name="List Table 5 Dark Accent 2" w:uiPriority="50"/><w:lsdException w:name="List Table 6 Colorful Accent 2" w:uiPriority="51"/><w:lsdException w:name="List Table 7 Colorful Accent 2" w:uiPriority="52"/><w:lsdException w:name="List Table 1 Light Accent 3" w:uiPriority="46"/><w:lsdException w:name="List Table 2 Accent 3" w:uiPriority="47"/><w:lsdException w:name="List Table 3 Accent 3" w:uiPriority="48"/><w:lsdException w:name="List Table 4 Accent 3" w:uiPriority="49"/><w:lsdException w:name="List Table 5 Dark Accent 3" w:uiPriority="50"/><w:lsdException w:name="List Table 6 Colorful Accent 3" w:uiPriority="51"/><w:lsdException w:name="List Table 7 Colorful Accent 3" w:uiPriority="52"/><w:lsdException w:name="List Table 1 Light Accent 4" w:uiPriority="46"/><w:lsdException w:name="List Table 2 Accent 4" w:uiPriority="47"/><w:lsdException w:name="List Table 3 Accent 4" w:uiPriority="48"/><w:lsdException w:name="List Table 4 Accent 4" w:uiPriority="49"/><w:lsdException w:name="List Table 5 Dark Accent 4" w:uiPriority="50"/><w:lsdException w:name="List Table 6 Colorful Accent 4" w:uiPriority="51"/><w:lsdException w:name="List Table 7 Colorful Accent 4" w:uiPriority="52"/><w:lsdException w:name="List Table 1 Light Accent 5" w:uiPriority="46"/><w:lsdException w:name="List Table 2 Accent 5" w:uiPriority="47"/><w:lsdException w:name="List Table 3 Accent 5" w:uiPriority="48"/><w:lsdException w:name="List Table 4 Accent 5" w:uiPriority="49"/><w:lsdException w:name="List Table 5 Dark Accent 5" w:uiPriority="50"/><w:lsdException w:name="List Table 6 Colorful Accent 5" w:uiPriority="51"/><w:lsdException w:name="List Table 7 Colorful Accent 5" w:uiPriority="52"/><w:lsdException w:name="List Table 1 Light Accent 6" w:uiPriority="46"/><w:lsdException w:name="List Table 2 Accent 6" w:uiPriority="47"/><w:lsdException w:name="List Table 3 Accent 6" w:uiPriority="48"/><w:lsdException w:name="List Table 4 Accent 6" w:uiPriority="49"/><w:lsdException w:name="List Table 5 Dark Accent 6" w:uiPriority="50"/><w:lsdException w:name="List Table 6 Colorful Accent 6" w:uiPriority="51"/><w:lsdException w:name="List Table 7 Colorful Accent 6" w:uiPriority="52"/><w:lsdException w:name="Mention" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Smart Hyperlink" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Hashtag" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Unresolved Mention" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Smart Link" w:semiHidden="1" w:unhideWhenUsed="1"/></w:latentStyles><w:style w:type="paragraph" w:default="1" w:styleId="Normal"><w:name w:val="Normal"/><w:qFormat/></w:style><w:style w:type="character" w:default="1" w:styleId="DefaultParagraphFont"><w:name w:val="Default Paragraph Font"/><w:uiPriority w:val="1"/><w:semiHidden/><w:unhideWhenUsed/></w:style><w:style w:type="table" w:default="1" w:styleId="TableNormal"><w:name w:val="Normal Table"/><w:uiPriority w:val="99"/><w:semiHidden/><w:unhideWhenUsed/><w:tblPr><w:tblInd w:w="0" w:type="dxa"/><w:tblCellMar><w:top w:w="0" w:type="dxa"/><w:left w:w="108" w:type="dxa"/><w:bottom w:w="0" w:type="dxa"/><w:right w:w="108" w:type="dxa"/></w:tblCellMar></w:tblPr></w:style><w:style w:type="numbering" w:default="1" w:styleId="NoList"><w:name w:val="No List"/><w:uiPriority w:val="99"/><w:semiHidden/><w:unhideWhenUsed/></w:style></w:styles> \ No newline at end of file
diff --git a/extract/test/twotables_1.pdf.mutool.docx.dir.ref/word/theme/theme1.xml b/extract/test/twotables_1.pdf.mutool.docx.dir.ref/word/theme/theme1.xml
new file mode 100644
index 00000000..d1a502f8
--- /dev/null
+++ b/extract/test/twotables_1.pdf.mutool.docx.dir.ref/word/theme/theme1.xml
@@ -0,0 +1,2 @@
+<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
+<a:theme xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main" name="Office Theme"><a:themeElements><a:clrScheme name="Office"><a:dk1><a:sysClr val="windowText" lastClr="000000"/></a:dk1><a:lt1><a:sysClr val="window" lastClr="FFFFFF"/></a:lt1><a:dk2><a:srgbClr val="44546A"/></a:dk2><a:lt2><a:srgbClr val="E7E6E6"/></a:lt2><a:accent1><a:srgbClr val="4472C4"/></a:accent1><a:accent2><a:srgbClr val="ED7D31"/></a:accent2><a:accent3><a:srgbClr val="A5A5A5"/></a:accent3><a:accent4><a:srgbClr val="FFC000"/></a:accent4><a:accent5><a:srgbClr val="5B9BD5"/></a:accent5><a:accent6><a:srgbClr val="70AD47"/></a:accent6><a:hlink><a:srgbClr val="0563C1"/></a:hlink><a:folHlink><a:srgbClr val="954F72"/></a:folHlink></a:clrScheme><a:fontScheme name="Office"><a:majorFont><a:latin typeface="Calibri Light" panose="020F0302020204030204"/><a:ea typeface=""/><a:cs typeface=""/><a:font script="Jpan" typeface="游ゴシック Light"/><a:font script="Hang" typeface="맑은 고딕"/><a:font script="Hans" typeface="等线 Light"/><a:font script="Hant" typeface="新細明體"/><a:font script="Arab" typeface="Times New Roman"/><a:font script="Hebr" typeface="Times New Roman"/><a:font script="Thai" typeface="Angsana New"/><a:font script="Ethi" typeface="Nyala"/><a:font script="Beng" typeface="Vrinda"/><a:font script="Gujr" typeface="Shruti"/><a:font script="Khmr" typeface="MoolBoran"/><a:font script="Knda" typeface="Tunga"/><a:font script="Guru" typeface="Raavi"/><a:font script="Cans" typeface="Euphemia"/><a:font script="Cher" typeface="Plantagenet Cherokee"/><a:font script="Yiii" typeface="Microsoft Yi Baiti"/><a:font script="Tibt" typeface="Microsoft Himalaya"/><a:font script="Thaa" typeface="MV Boli"/><a:font script="Deva" typeface="Mangal"/><a:font script="Telu" typeface="Gautami"/><a:font script="Taml" typeface="Latha"/><a:font script="Syrc" typeface="Estrangelo Edessa"/><a:font script="Orya" typeface="Kalinga"/><a:font script="Mlym" typeface="Kartika"/><a:font script="Laoo" typeface="DokChampa"/><a:font script="Sinh" typeface="Iskoola Pota"/><a:font script="Mong" typeface="Mongolian Baiti"/><a:font script="Viet" typeface="Times New Roman"/><a:font script="Uigh" typeface="Microsoft Uighur"/><a:font script="Geor" typeface="Sylfaen"/><a:font script="Armn" typeface="Arial"/><a:font script="Bugi" typeface="Leelawadee UI"/><a:font script="Bopo" typeface="Microsoft JhengHei"/><a:font script="Java" typeface="Javanese Text"/><a:font script="Lisu" typeface="Segoe UI"/><a:font script="Mymr" typeface="Myanmar Text"/><a:font script="Nkoo" typeface="Ebrima"/><a:font script="Olck" typeface="Nirmala UI"/><a:font script="Osma" typeface="Ebrima"/><a:font script="Phag" typeface="Phagspa"/><a:font script="Syrn" typeface="Estrangelo Edessa"/><a:font script="Syrj" typeface="Estrangelo Edessa"/><a:font script="Syre" typeface="Estrangelo Edessa"/><a:font script="Sora" typeface="Nirmala UI"/><a:font script="Tale" typeface="Microsoft Tai Le"/><a:font script="Talu" typeface="Microsoft New Tai Lue"/><a:font script="Tfng" typeface="Ebrima"/></a:majorFont><a:minorFont><a:latin typeface="Calibri" panose="020F0502020204030204"/><a:ea typeface=""/><a:cs typeface=""/><a:font script="Jpan" typeface="游明朝"/><a:font script="Hang" typeface="맑은 고딕"/><a:font script="Hans" typeface="等线"/><a:font script="Hant" typeface="新細明體"/><a:font script="Arab" typeface="Arial"/><a:font script="Hebr" typeface="Arial"/><a:font script="Thai" typeface="Cordia New"/><a:font script="Ethi" typeface="Nyala"/><a:font script="Beng" typeface="Vrinda"/><a:font script="Gujr" typeface="Shruti"/><a:font script="Khmr" typeface="DaunPenh"/><a:font script="Knda" typeface="Tunga"/><a:font script="Guru" typeface="Raavi"/><a:font script="Cans" typeface="Euphemia"/><a:font script="Cher" typeface="Plantagenet Cherokee"/><a:font script="Yiii" typeface="Microsoft Yi Baiti"/><a:font script="Tibt" typeface="Microsoft Himalaya"/><a:font script="Thaa" typeface="MV Boli"/><a:font script="Deva" typeface="Mangal"/><a:font script="Telu" typeface="Gautami"/><a:font script="Taml" typeface="Latha"/><a:font script="Syrc" typeface="Estrangelo Edessa"/><a:font script="Orya" typeface="Kalinga"/><a:font script="Mlym" typeface="Kartika"/><a:font script="Laoo" typeface="DokChampa"/><a:font script="Sinh" typeface="Iskoola Pota"/><a:font script="Mong" typeface="Mongolian Baiti"/><a:font script="Viet" typeface="Arial"/><a:font script="Uigh" typeface="Microsoft Uighur"/><a:font script="Geor" typeface="Sylfaen"/><a:font script="Armn" typeface="Arial"/><a:font script="Bugi" typeface="Leelawadee UI"/><a:font script="Bopo" typeface="Microsoft JhengHei"/><a:font script="Java" typeface="Javanese Text"/><a:font script="Lisu" typeface="Segoe UI"/><a:font script="Mymr" typeface="Myanmar Text"/><a:font script="Nkoo" typeface="Ebrima"/><a:font script="Olck" typeface="Nirmala UI"/><a:font script="Osma" typeface="Ebrima"/><a:font script="Phag" typeface="Phagspa"/><a:font script="Syrn" typeface="Estrangelo Edessa"/><a:font script="Syrj" typeface="Estrangelo Edessa"/><a:font script="Syre" typeface="Estrangelo Edessa"/><a:font script="Sora" typeface="Nirmala UI"/><a:font script="Tale" typeface="Microsoft Tai Le"/><a:font script="Talu" typeface="Microsoft New Tai Lue"/><a:font script="Tfng" typeface="Ebrima"/></a:minorFont></a:fontScheme><a:fmtScheme name="Office"><a:fillStyleLst><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:gradFill rotWithShape="1"><a:gsLst><a:gs pos="0"><a:schemeClr val="phClr"><a:lumMod val="110000"/><a:satMod val="105000"/><a:tint val="67000"/></a:schemeClr></a:gs><a:gs pos="50000"><a:schemeClr val="phClr"><a:lumMod val="105000"/><a:satMod val="103000"/><a:tint val="73000"/></a:schemeClr></a:gs><a:gs pos="100000"><a:schemeClr val="phClr"><a:lumMod val="105000"/><a:satMod val="109000"/><a:tint val="81000"/></a:schemeClr></a:gs></a:gsLst><a:lin ang="5400000" scaled="0"/></a:gradFill><a:gradFill rotWithShape="1"><a:gsLst><a:gs pos="0"><a:schemeClr val="phClr"><a:satMod val="103000"/><a:lumMod val="102000"/><a:tint val="94000"/></a:schemeClr></a:gs><a:gs pos="50000"><a:schemeClr val="phClr"><a:satMod val="110000"/><a:lumMod val="100000"/><a:shade val="100000"/></a:schemeClr></a:gs><a:gs pos="100000"><a:schemeClr val="phClr"><a:lumMod val="99000"/><a:satMod val="120000"/><a:shade val="78000"/></a:schemeClr></a:gs></a:gsLst><a:lin ang="5400000" scaled="0"/></a:gradFill></a:fillStyleLst><a:lnStyleLst><a:ln w="6350" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:prstDash val="solid"/><a:miter lim="800000"/></a:ln><a:ln w="12700" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:prstDash val="solid"/><a:miter lim="800000"/></a:ln><a:ln w="19050" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:prstDash val="solid"/><a:miter lim="800000"/></a:ln></a:lnStyleLst><a:effectStyleLst><a:effectStyle><a:effectLst/></a:effectStyle><a:effectStyle><a:effectLst/></a:effectStyle><a:effectStyle><a:effectLst><a:outerShdw blurRad="57150" dist="19050" dir="5400000" algn="ctr" rotWithShape="0"><a:srgbClr val="000000"><a:alpha val="63000"/></a:srgbClr></a:outerShdw></a:effectLst></a:effectStyle></a:effectStyleLst><a:bgFillStyleLst><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:solidFill><a:schemeClr val="phClr"><a:tint val="95000"/><a:satMod val="170000"/></a:schemeClr></a:solidFill><a:gradFill rotWithShape="1"><a:gsLst><a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="93000"/><a:satMod val="150000"/><a:shade val="98000"/><a:lumMod val="102000"/></a:schemeClr></a:gs><a:gs pos="50000"><a:schemeClr val="phClr"><a:tint val="98000"/><a:satMod val="130000"/><a:shade val="90000"/><a:lumMod val="103000"/></a:schemeClr></a:gs><a:gs pos="100000"><a:schemeClr val="phClr"><a:shade val="63000"/><a:satMod val="120000"/></a:schemeClr></a:gs></a:gsLst><a:lin ang="5400000" scaled="0"/></a:gradFill></a:bgFillStyleLst></a:fmtScheme></a:themeElements><a:objectDefaults/><a:extraClrSchemeLst/><a:extLst><a:ext uri="{05A4C25C-085E-4340-85A3-A5531E510DB2}"><thm15:themeFamily xmlns:thm15="http://schemas.microsoft.com/office/thememl/2012/main" name="Office Theme" id="{62F939B6-93AF-4DB8-9C6B-D6C7DFDC589F}" vid="{4A3C46E8-61CC-4603-A589-7422A47A8E4A}"/></a:ext></a:extLst></a:theme> \ No newline at end of file
diff --git a/extract/test/twotables_1.pdf.mutool.docx.dir.ref/word/webSettings.xml b/extract/test/twotables_1.pdf.mutool.docx.dir.ref/word/webSettings.xml
new file mode 100644
index 00000000..629ae06a
--- /dev/null
+++ b/extract/test/twotables_1.pdf.mutool.docx.dir.ref/word/webSettings.xml
@@ -0,0 +1,2 @@
+<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
+<w:webSettings xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships" xmlns:w="http://schemas.openxmlformats.org/wordprocessingml/2006/main" xmlns:w14="http://schemas.microsoft.com/office/word/2010/wordml" xmlns:w15="http://schemas.microsoft.com/office/word/2012/wordml" xmlns:w16cex="http://schemas.microsoft.com/office/word/2018/wordml/cex" xmlns:w16cid="http://schemas.microsoft.com/office/word/2016/wordml/cid" xmlns:w16="http://schemas.microsoft.com/office/word/2018/wordml" xmlns:w16se="http://schemas.microsoft.com/office/word/2015/wordml/symex" mc:Ignorable="w14 w15 w16se w16cid w16 w16cex"><w:optimizeForBrowser/><w:allowPNG/></w:webSettings> \ No newline at end of file
diff --git a/extract/test/twotables_1.pdf.mutool.html.ref b/extract/test/twotables_1.pdf.mutool.html.ref
new file mode 100644
index 00000000..1b66afc5
--- /dev/null
+++ b/extract/test/twotables_1.pdf.mutool.html.ref
@@ -0,0 +1,83 @@
+<html>
+<body>
+
+
+<table border="1" style="border-collapse:collapse">
+ <tr>
+ <td rowspan="3"><p><b>Sl. No. </p></b></td><td><p><b>Name of </p></b></td><td rowspan="3"><p><b>Name of District </p></b></td><td rowspan="3"><p><b>Disease/ Illness </p></b></td><td rowspan="3"><p><b>No. of Cases </p></b></td><td rowspan="3"><p><b>No. of Deaths </p></b></td><td rowspan="3"><p><b>Date of start of outbreak </p></b></td><td rowspan="3"><p><b>Date of reporting </p></b></td><td rowspan="3"><p><b>Current Status </p></b></td><td><p><b>Comments/ Action taken </p></b></td>
+ </tr>
+ <tr>
+ <td rowspan="2"><p><b>State/UT </p></b></td><td><p><b> </p></b></td>
+ </tr>
+ <tr>
+ <td><p><b> </p></b></td>
+ </tr>
+ <tr>
+ <td rowspan="4"><p><b> </p></b></td><td rowspan="4"><p><b> </p><p> </p><p> </p><p>West Bengal </p><p> </p></b></td><td rowspan="4"><p><b>Bankura </p><p> </p></b></td><td><p><b>xix. Acute </p></b></td><td rowspan="2"><p>46 </p></td><td rowspan="2"><p>0 </p></td><td rowspan="2"><p>10/11/13 </p></td><td rowspan="2"><p>15/11/13 </p></td><td rowspan="2"><p>Under Control </p></td><td rowspan="2"><p>Cases of loose motion and vomiting reported from Village Daldali, SC Binodnagar, Block Onda, District Bankura. District RRT and Block health team investigated the outbreak. Active search for cases done. Cases treated at local health centre. 2 stool samples collected were negative for cholera culture. Out of 3 water samples collected 1 sample was non potable. Chlorination of water sources done. Health education given regarding safe drinking water and sanitation. </p></td>
+ </tr>
+ <tr>
+ <td><p><b>Diarrhoeal Disease </p></b></td>
+ </tr>
+ <tr>
+ <td><p><b>xx. Acute </p></b></td><td rowspan="2"><p>34 </p></td><td rowspan="2"><p>0 </p></td><td rowspan="2"><p>10/11/13 </p></td><td rowspan="2"><p>14/11/13 </p></td><td rowspan="2"><p>Under Control </p></td><td rowspan="2"><p>Cases of loose motion and vomiting reported from Village Icharia, SC Mankhamar, Block Onda, District Bankura. District RRT and Block health team investigated the outbreak. House to house survey done. All cases treated locally. 4 stool samples collected were negative for cholera culture. Out of 34 water samples collected, 8 samples were non potable. Chlorination of water sources done. Health education given regarding safe drinking water and sanitation. </p></td>
+ </tr>
+ <tr>
+ <td><p><b>Diarrhoeal Disease </p></b></td>
+ </tr>
+</table>
+
+
+
+<p><b>
+</p></b>
+
+<table border="1" style="border-collapse:collapse">
+ <tr>
+ <td colspan="9"><p> <b>DISEASE OUTBREAKS OF PREVIOUS WEEKS REPORTED LATE </p></b></td>
+ </tr>
+ <tr>
+ <td rowspan="2"><p><b>Sl. No </p></b></td><td><p><b>Name of </p></b></td><td rowspan="2"><p><b>Name of District </p></b></td><td rowspan="2"><p><b>Disease/ Illness </p></b></td><td rowspan="2"><p><b>Cases </p></b></td><td rowspan="2"><p><b>Deaths </p></b></td><td rowspan="2"><p><b>Date of start of outbreak </p></b></td><td rowspan="2"><p><b>Current Status </p></b></td><td rowspan="2"><p><b>Comments/ Action taken </p></b></td>
+ </tr>
+ <tr>
+ <td><p><b>State/UT </p></b></td>
+ </tr>
+ <tr>
+ <td rowspan="10"><p><b>1 </p></b></td><td rowspan="10"><p><b> </p><p>Bihar </p><p> </p></b></td><td rowspan="4"><p><b>Madhubani </p></b></td><td></td><td rowspan="4"><p>69 </p></td><td rowspan="4"><p>0 </p></td><td rowspan="4"><p>30/09/13 </p></td><td rowspan="4"><p>Under Control </p></td><td rowspan="4"><p>Cases of diarrhoea and vomiting reported from Village Indra Mandal tola, SC Sugapatti, PHC Phulparas, District Madhubani. District RRT investigated the outbreak. House to house survey done. Medical camp organized. Symptomatic treatement given to cases. ORS packets and halogen tablets distributed in the community. Chlorination of water sources done. IEC done regarding safe drinking water and sanitation. </p></td>
+ </tr>
+ <tr>
+ <td><p><b>xxi. Acute </p></b></td>
+ </tr>
+ <tr>
+ <td><p><b>Diarrhoeal </p></b></td>
+ </tr>
+ <tr>
+ <td><p><b>Disease </p></b></td>
+ </tr>
+ <tr>
+ <td rowspan="4"><p><b>Madhubani </p></b></td><td></td><td rowspan="4"><p>30 </p></td><td rowspan="4"><p>1 </p></td><td rowspan="4"><p>28/10/13 </p></td><td rowspan="4"><p>Under Control </p></td><td rowspan="4"><p>Cases of diarrhoea and vomiting reported from Village/SC Rupauli, PHC Jhanjharpur, District Madhubani. District RRT and Block health team investigated the outbreak. Active search for cases done. Medical camp organized. All cases treated. One death occurred in 14yr old female child. ORS packets and halogen tablets distributed. Chlorination of water sources done. IEC activity regarding safe drinking water done. </p></td>
+ </tr>
+ <tr>
+ <td><p><b>xxii. Acute </p></b></td>
+ </tr>
+ <tr>
+ <td><p><b>Diarrhoeal </p></b></td>
+ </tr>
+ <tr>
+ <td><p><b>Disease </p></b></td>
+ </tr>
+ <tr>
+ <td rowspan="2"><p><b>Katihar </p></b></td><td><p><b>xxiii. Acute </p></b></td><td rowspan="2"><p>13 </p></td><td rowspan="2"><p>3 </p></td><td rowspan="2"><p>24/10/13 </p></td><td rowspan="2"><p>Under control </p></td><td rowspan="2"><p>Cases of diarrhoea reported from Village Ahuta, Alipur, SC Lachhor, PHC/Block Balrampur, District Katihar. District RRT investigated the outbreak. House to house survey done. Cases occurred in a Adiwasi community. 3 deaths occurred in 45yr, 35yr and 5yr old male. Temporary medical camps organized. All cases treated symptomatically. Chlorination of water sources done. Health education given. </p></td>
+ </tr>
+ <tr>
+ <td><p><b>Diarrhoeal Disease </p></b></td>
+ </tr>
+</table>
+
+
+
+<p>5
+</p>
+
+<p>
+</p></body>
+</html>
diff --git a/extract/test/twotables_1.pdf.mutool.odt.dir.ref/META-INF/manifest.xml b/extract/test/twotables_1.pdf.mutool.odt.dir.ref/META-INF/manifest.xml
new file mode 100644
index 00000000..ec991d79
--- /dev/null
+++ b/extract/test/twotables_1.pdf.mutool.odt.dir.ref/META-INF/manifest.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<manifest:manifest xmlns:manifest="urn:oasis:names:tc:opendocument:xmlns:manifest:1.0" manifest:version="1.3" xmlns:loext="urn:org:documentfoundation:names:experimental:office:xmlns:loext:1.0">
+ <manifest:file-entry manifest:full-path="/" manifest:version="1.3" manifest:media-type="application/vnd.oasis.opendocument.text"/>
+ <manifest:file-entry manifest:full-path="meta.xml" manifest:media-type="text/xml"/>
+ <manifest:file-entry manifest:full-path="settings.xml" manifest:media-type="text/xml"/>
+ <manifest:file-entry manifest:full-path="Configurations2/" manifest:media-type="application/vnd.sun.xml.ui.configuration"/>
+ <manifest:file-entry manifest:full-path="manifest.rdf" manifest:media-type="application/rdf+xml"/>
+ <manifest:file-entry manifest:full-path="styles.xml" manifest:media-type="text/xml"/>
+ <manifest:file-entry manifest:full-path="content.xml" manifest:media-type="text/xml"/>
+ <manifest:file-entry manifest:full-path="Thumbnails/thumbnail.png" manifest:media-type="image/png"/>
+</manifest:manifest> \ No newline at end of file
diff --git a/extract/test/twotables_1.pdf.mutool.odt.dir.ref/Thumbnails/thumbnail.png b/extract/test/twotables_1.pdf.mutool.odt.dir.ref/Thumbnails/thumbnail.png
new file mode 100644
index 00000000..0dd1608e
--- /dev/null
+++ b/extract/test/twotables_1.pdf.mutool.odt.dir.ref/Thumbnails/thumbnail.png
@@ -0,0 +1,2 @@
+PNG
+
diff --git a/extract/test/twotables_1.pdf.mutool.odt.dir.ref/content.xml b/extract/test/twotables_1.pdf.mutool.odt.dir.ref/content.xml
new file mode 100644
index 00000000..6a377300
--- /dev/null
+++ b/extract/test/twotables_1.pdf.mutool.odt.dir.ref/content.xml
@@ -0,0 +1,576 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<office:document-content xmlns:css3t="http://www.w3.org/TR/css3-text/" xmlns:grddl="http://www.w3.org/2003/g/data-view#" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xforms="http://www.w3.org/2002/xforms" xmlns:dom="http://www.w3.org/2001/xml-events" xmlns:script="urn:oasis:names:tc:opendocument:xmlns:script:1.0" xmlns:form="urn:oasis:names:tc:opendocument:xmlns:form:1.0" xmlns:math="http://www.w3.org/1998/Math/MathML" xmlns:number="urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0" xmlns:field="urn:openoffice:names:experimental:ooo-ms-interop:xmlns:field:1.0" xmlns:meta="urn:oasis:names:tc:opendocument:xmlns:meta:1.0" xmlns:loext="urn:org:documentfoundation:names:experimental:office:xmlns:loext:1.0" xmlns:officeooo="http://openoffice.org/2009/office" xmlns:table="urn:oasis:names:tc:opendocument:xmlns:table:1.0" xmlns:chart="urn:oasis:names:tc:opendocument:xmlns:chart:1.0" xmlns:tableooo="http://openoffice.org/2009/table" xmlns:draw="urn:oasis:names:tc:opendocument:xmlns:drawing:1.0" xmlns:rpt="http://openoffice.org/2005/report" xmlns:dr3d="urn:oasis:names:tc:opendocument:xmlns:dr3d:1.0" xmlns:of="urn:oasis:names:tc:opendocument:xmlns:of:1.2" xmlns:text="urn:oasis:names:tc:opendocument:xmlns:text:1.0" xmlns:style="urn:oasis:names:tc:opendocument:xmlns:style:1.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:calcext="urn:org:documentfoundation:names:experimental:calc:xmlns:calcext:1.0" xmlns:oooc="http://openoffice.org/2004/calc" xmlns:drawooo="http://openoffice.org/2010/draw" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:ooo="http://openoffice.org/2004/office" xmlns:ooow="http://openoffice.org/2004/writer" xmlns:fo="urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0" xmlns:formx="urn:openoffice:names:experimental:ooxml-odf-interop:xmlns:form:1.0" xmlns:svg="urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0" xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" office:version="1.3"><office:scripts/><office:font-face-decls><style:font-face style:name="Liberation Serif" svg:font-family="&apos;Liberation Serif&apos;" style:font-family-generic="roman" style:font-pitch="variable"/><style:font-face style:name="Liberation Sans" svg:font-family="&apos;Liberation Sans&apos;" style:font-family-generic="swiss" style:font-pitch="variable"/><style:font-face style:name="Unifont" svg:font-family="Unifont" style:font-family-generic="system" style:font-pitch="variable"/></office:font-face-decls><office:automatic-styles><style:style style:name="T13" style:family="text"><style:text-properties style:font-name="TimesNewRomanPSMT" fo:font-size="10.08pt" fo:font-weight="normal" fo:font-style="normal" /></style:style><style:style style:name="T11" style:family="text"><style:text-properties style:font-name="TimesNewRomanPS-BoldMT" fo:font-size="10.08pt" fo:font-weight="bold" fo:font-style="normal" /></style:style><style:style style:name="T14" style:family="text"><style:text-properties style:font-name="Calibri" fo:font-size="10.08pt" fo:font-weight="normal" fo:font-style="normal" /></style:style><style:style style:name="T12" style:family="text"><style:text-properties style:font-name="Arial-BoldMT" fo:font-size="10.08pt" fo:font-weight="bold" fo:font-style="normal" /></style:style><style:style style:name="gr1" style:family="graphic">
+<style:graphic-properties draw:stroke="none" svg:stroke-color="#000000" draw:fill="none" draw:fill-color="#ffffff" fo:min-height="1.9898in" style:run-through="foreground" style:wrap="run-through" style:number-wrapped-paragraphs="no-limit" style:vertical-pos="from-top" style:vertical-rel="paragraph" style:horizontal-pos="from-left" style:horizontal-rel="paragraph" />
+<style:paragraph-properties style:writing-mode="lr-tb"/>
+</style:style>
+<style:style style:name="fr1" style:family="graphic" style:parent-style-name="Graphics">
+<style:graphic-properties fo:margin-left="0in" fo:margin-right="0in" fo:margin-top="0in" fo:margin-bottom="0in" style:vertical-pos="top" style:vertical-rel="baseline" fo:background-color="transparent" draw:fill="none" draw:fill-color="#ffffff" fo:padding="0in" fo:border="none" style:mirror="none" fo:clip="rect(0in, 0in, 0in, 0in)" draw:luminance="0%" draw:contrast="0%" draw:red="0%" draw:green="0%" draw:blue="0%" draw:gamma="100%" draw:color-inversion="false" draw:image-opacity="100%" draw:color-mode="standard"/>
+</style:style>
+</office:automatic-styles>
+<style:style style:name="extract.table" style:family="table"/>
+<style:style style:name="extract.table.column" style:family="table-column"/>
+<office:body><office:text><text:sequence-decls><text:sequence-decl text:display-outline-level="0" text:name="Illustration"/><text:sequence-decl text:display-outline-level="0" text:name="Table"/><text:sequence-decl text:display-outline-level="0" text:name="Text"/><text:sequence-decl text:display-outline-level="0" text:name="Drawing"/><text:sequence-decl text:display-outline-level="0" text:name="Figure"/></text:sequence-decls><text:p text:style-name="Standard"/>
+ <table:table text:style-name="extract.table" table:name="extract.table.1">
+ <table:table-columns>
+ <table:table-column table:style-name="extract.table.column"/>
+ <table:table-column table:style-name="extract.table.column"/>
+ <table:table-column table:style-name="extract.table.column"/>
+ <table:table-column table:style-name="extract.table.column"/>
+ <table:table-column table:style-name="extract.table.column"/>
+ <table:table-column table:style-name="extract.table.column"/>
+ <table:table-column table:style-name="extract.table.column"/>
+ <table:table-column table:style-name="extract.table.column"/>
+ <table:table-column table:style-name="extract.table.column"/>
+ <table:table-column table:style-name="extract.table.column"/>
+ </table:table-columns>
+ <table:table-row>
+ <table:table-cell table:number-rows-spanned="3">
+
+
+<text:p><text:span text:style-name="T11">Sl. No. </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T11">Name of </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell table:number-rows-spanned="3">
+
+
+<text:p><text:span text:style-name="T11">Name of District </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell table:number-rows-spanned="3">
+
+
+<text:p><text:span text:style-name="T11">Disease/ Illness </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell table:number-rows-spanned="3">
+
+
+<text:p><text:span text:style-name="T11">No. of Cases </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell table:number-rows-spanned="3">
+
+
+<text:p><text:span text:style-name="T11">No. of Deaths </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell table:number-rows-spanned="3">
+
+
+<text:p><text:span text:style-name="T11">Date of start of outbreak </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell table:number-rows-spanned="3">
+
+
+<text:p><text:span text:style-name="T11">Date of reporting </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell table:number-rows-spanned="3">
+
+
+<text:p><text:span text:style-name="T11">Current Status </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T11">Comments/ Action taken </text:span></text:p>
+ </table:table-cell>
+ </table:table-row>
+ <table:table-row>
+ <table:covered-table-cell/>
+ <table:table-cell table:number-rows-spanned="2">
+
+
+<text:p><text:span text:style-name="T11">State/UT </text:span></text:p>
+ </table:table-cell>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T11"> </text:span></text:p>
+ </table:table-cell>
+ </table:table-row>
+ <table:table-row>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T11"> </text:span></text:p>
+ </table:table-cell>
+ </table:table-row>
+ <table:table-row>
+ <table:table-cell table:number-rows-spanned="4">
+
+
+<text:p><text:span text:style-name="T11"> </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell table:number-rows-spanned="4">
+
+
+<text:p><text:span text:style-name="T11"> </text:span></text:p>
+
+<text:p><text:span text:style-name="T11"> </text:span></text:p>
+
+<text:p><text:span text:style-name="T11"> </text:span></text:p>
+
+<text:p><text:span text:style-name="T11">West Bengal </text:span></text:p>
+
+<text:p><text:span text:style-name="T11"> </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell table:number-rows-spanned="4">
+
+
+<text:p><text:span text:style-name="T11">Bankura </text:span></text:p>
+
+<text:p><text:span text:style-name="T11"> </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T11">xix.</text:span><text:span text:style-name="T12"> </text:span><text:span text:style-name="T11">Acute </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell table:number-rows-spanned="2">
+
+
+<text:p><text:span text:style-name="T13">46 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell table:number-rows-spanned="2">
+
+
+<text:p><text:span text:style-name="T13">0 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell table:number-rows-spanned="2">
+
+
+<text:p><text:span text:style-name="T13">10/11/13 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell table:number-rows-spanned="2">
+
+
+<text:p><text:span text:style-name="T13">15/11/13 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell table:number-rows-spanned="2">
+
+
+<text:p><text:span text:style-name="T13">Under Control</text:span><text:span text:style-name="T14"> </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell table:number-rows-spanned="2">
+
+
+<text:p><text:span text:style-name="T13">Cases of loose motion and vomiting reported from Village Daldali, SC Binodnagar, Block Onda, District Bankura. District RRT and Block health team investigated the outbreak. Active search for cases done. Cases treated at local health centre. 2 stool samples collected were negative for cholera culture. Out of 3 water samples collected 1 sample was non potable. Chlorination of water sources done. Health education given regarding safe drinking water and sanitation. </text:span></text:p>
+ </table:table-cell>
+ </table:table-row>
+ <table:table-row>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T11">Diarrhoeal Disease </text:span></text:p>
+ </table:table-cell>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ </table:table-row>
+ <table:table-row>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T11">xx.</text:span><text:span text:style-name="T12"> </text:span><text:span text:style-name="T11">Acute </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell table:number-rows-spanned="2">
+
+
+<text:p><text:span text:style-name="T13">34 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell table:number-rows-spanned="2">
+
+
+<text:p><text:span text:style-name="T13">0 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell table:number-rows-spanned="2">
+
+
+<text:p><text:span text:style-name="T13">10/11/13 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell table:number-rows-spanned="2">
+
+
+<text:p><text:span text:style-name="T13">14/11/13 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell table:number-rows-spanned="2">
+
+
+<text:p><text:span text:style-name="T13">Under Control</text:span><text:span text:style-name="T14"> </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell table:number-rows-spanned="2">
+
+
+<text:p><text:span text:style-name="T13">Cases of loose motion and vomiting reported from Village Icharia, SC Mankhamar, Block Onda, District Bankura. District RRT and Block health team investigated the outbreak. House to house survey done. All cases treated locally. 4 stool samples collected were negative for cholera culture. Out of 34 water samples collected, 8 samples were non potable. Chlorination of water sources done. Health education given regarding safe drinking water and sanitation. </text:span></text:p>
+ </table:table-cell>
+ </table:table-row>
+ <table:table-row>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T11">Diarrhoeal Disease </text:span></text:p>
+ </table:table-cell>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ </table:table-row>
+ </table:table>
+
+
+<text:p><text:span text:style-name="T11"> </text:span></text:p>
+ <table:table text:style-name="extract.table" table:name="extract.table.2">
+ <table:table-columns>
+ <table:table-column table:style-name="extract.table.column"/>
+ <table:table-column table:style-name="extract.table.column"/>
+ <table:table-column table:style-name="extract.table.column"/>
+ <table:table-column table:style-name="extract.table.column"/>
+ <table:table-column table:style-name="extract.table.column"/>
+ <table:table-column table:style-name="extract.table.column"/>
+ <table:table-column table:style-name="extract.table.column"/>
+ <table:table-column table:style-name="extract.table.column"/>
+ <table:table-column table:style-name="extract.table.column"/>
+ </table:table-columns>
+ <table:table-row>
+ <table:table-cell table:number-columns-spanned="9">
+
+
+<text:p><text:span text:style-name="T13"> </text:span><text:span text:style-name="T11">DISEASE OUTBREAKS OF PREVIOUS WEEKS REPORTED LATE </text:span></text:p>
+ </table:table-cell>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ </table:table-row>
+ <table:table-row>
+ <table:table-cell table:number-rows-spanned="2">
+
+
+<text:p><text:span text:style-name="T11">Sl. No </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T11">Name of </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell table:number-rows-spanned="2">
+
+
+<text:p><text:span text:style-name="T11">Name of District </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell table:number-rows-spanned="2">
+
+
+<text:p><text:span text:style-name="T11">Disease/ Illness </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell table:number-rows-spanned="2">
+
+
+<text:p><text:span text:style-name="T11">Cases </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell table:number-rows-spanned="2">
+
+
+<text:p><text:span text:style-name="T11">Deaths </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell table:number-rows-spanned="2">
+
+
+<text:p><text:span text:style-name="T11">Date of start of outbreak </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell table:number-rows-spanned="2">
+
+
+<text:p><text:span text:style-name="T11">Current Status </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell table:number-rows-spanned="2">
+
+
+<text:p><text:span text:style-name="T11">Comments/ Action taken </text:span></text:p>
+ </table:table-cell>
+ </table:table-row>
+ <table:table-row>
+ <table:covered-table-cell/>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T11">State/UT </text:span></text:p>
+ </table:table-cell>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ </table:table-row>
+ <table:table-row>
+ <table:table-cell table:number-rows-spanned="10">
+
+
+<text:p><text:span text:style-name="T11">1 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell table:number-rows-spanned="10">
+
+
+<text:p><text:span text:style-name="T11"> </text:span></text:p>
+
+<text:p><text:span text:style-name="T11">Bihar </text:span></text:p>
+
+<text:p><text:span text:style-name="T11"> </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell table:number-rows-spanned="4">
+
+
+<text:p><text:span text:style-name="T11">Madhubani </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+ </table:table-cell>
+ <table:table-cell table:number-rows-spanned="4">
+
+
+<text:p><text:span text:style-name="T13">69 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell table:number-rows-spanned="4">
+
+
+<text:p><text:span text:style-name="T13">0 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell table:number-rows-spanned="4">
+
+
+<text:p><text:span text:style-name="T13">30/09/13 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell table:number-rows-spanned="4">
+
+
+<text:p><text:span text:style-name="T13">Under Control </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell table:number-rows-spanned="4">
+
+
+<text:p><text:span text:style-name="T13">Cases of diarrhoea and vomiting reported from Village Indra Mandal tola, SC Sugapatti, PHC Phulparas, District Madhubani. District RRT investigated the outbreak. House to house survey done. Medical camp organized. Symptomatic treatement given to cases. ORS packets and halogen tablets distributed in the community. Chlorination of water sources done. IEC done regarding safe drinking water and sanitation. </text:span></text:p>
+ </table:table-cell>
+ </table:table-row>
+ <table:table-row>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T11">xxi.</text:span><text:span text:style-name="T12"> </text:span><text:span text:style-name="T11">Acute </text:span></text:p>
+ </table:table-cell>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ </table:table-row>
+ <table:table-row>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T11">Diarrhoeal </text:span></text:p>
+ </table:table-cell>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ </table:table-row>
+ <table:table-row>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T11">Disease </text:span></text:p>
+ </table:table-cell>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ </table:table-row>
+ <table:table-row>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:table-cell table:number-rows-spanned="4">
+
+
+<text:p><text:span text:style-name="T11">Madhubani </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+ </table:table-cell>
+ <table:table-cell table:number-rows-spanned="4">
+
+
+<text:p><text:span text:style-name="T13">30 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell table:number-rows-spanned="4">
+
+
+<text:p><text:span text:style-name="T13">1 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell table:number-rows-spanned="4">
+
+
+<text:p><text:span text:style-name="T13">28/10/13 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell table:number-rows-spanned="4">
+
+
+<text:p><text:span text:style-name="T13">Under Control </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell table:number-rows-spanned="4">
+
+
+<text:p><text:span text:style-name="T13">Cases of diarrhoea and vomiting reported from Village/SC Rupauli, PHC Jhanjharpur, District Madhubani. District RRT and Block health team investigated the outbreak. Active search for cases done. Medical camp organized. All cases treated. One death occurred in 14yr old female child. ORS packets and halogen tablets distributed. Chlorination of water sources done. IEC activity regarding safe drinking water done. </text:span></text:p>
+ </table:table-cell>
+ </table:table-row>
+ <table:table-row>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T11">xxii.</text:span><text:span text:style-name="T12"> </text:span><text:span text:style-name="T11">Acute </text:span></text:p>
+ </table:table-cell>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ </table:table-row>
+ <table:table-row>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T11">Diarrhoeal </text:span></text:p>
+ </table:table-cell>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ </table:table-row>
+ <table:table-row>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T11">Disease </text:span></text:p>
+ </table:table-cell>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ </table:table-row>
+ <table:table-row>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:table-cell table:number-rows-spanned="2">
+
+
+<text:p><text:span text:style-name="T11">Katihar </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T11">xxiii.</text:span><text:span text:style-name="T12"> </text:span><text:span text:style-name="T11">Acute </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell table:number-rows-spanned="2">
+
+
+<text:p><text:span text:style-name="T13">13 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell table:number-rows-spanned="2">
+
+
+<text:p><text:span text:style-name="T13">3 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell table:number-rows-spanned="2">
+
+
+<text:p><text:span text:style-name="T13">24/10/13 </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell table:number-rows-spanned="2">
+
+
+<text:p><text:span text:style-name="T13">Under control </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell table:number-rows-spanned="2">
+
+
+<text:p><text:span text:style-name="T13">Cases of diarrhoea reported from Village Ahuta, Alipur, SC Lachhor, PHC/Block Balrampur, District Katihar. District RRT investigated the outbreak. House to house survey done. Cases occurred in a Adiwasi community. 3 deaths occurred in 45yr, 35yr and 5yr old male. Temporary medical camps organized. All cases treated symptomatically. Chlorination of water sources done. Health education given. </text:span></text:p>
+ </table:table-cell>
+ </table:table-row>
+ <table:table-row>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T11">Diarrhoeal Disease </text:span></text:p>
+ </table:table-cell>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ </table:table-row>
+ </table:table>
+
+
+<text:p><text:span text:style-name="T14">5</text:span></text:p>
+
+<text:p><text:span text:style-name="T14"> </text:span></text:p></office:text></office:body></office:document-content> \ No newline at end of file
diff --git a/extract/test/twotables_1.pdf.mutool.odt.dir.ref/manifest.rdf b/extract/test/twotables_1.pdf.mutool.odt.dir.ref/manifest.rdf
new file mode 100644
index 00000000..927e206b
--- /dev/null
+++ b/extract/test/twotables_1.pdf.mutool.odt.dir.ref/manifest.rdf
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="utf-8"?>
+<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
+ <rdf:Description rdf:about="styles.xml">
+ <rdf:type rdf:resource="http://docs.oasis-open.org/ns/office/1.2/meta/odf#StylesFile"/>
+ </rdf:Description>
+ <rdf:Description rdf:about="">
+ <ns0:hasPart xmlns:ns0="http://docs.oasis-open.org/ns/office/1.2/meta/pkg#" rdf:resource="styles.xml"/>
+ </rdf:Description>
+ <rdf:Description rdf:about="content.xml">
+ <rdf:type rdf:resource="http://docs.oasis-open.org/ns/office/1.2/meta/odf#ContentFile"/>
+ </rdf:Description>
+ <rdf:Description rdf:about="">
+ <ns0:hasPart xmlns:ns0="http://docs.oasis-open.org/ns/office/1.2/meta/pkg#" rdf:resource="content.xml"/>
+ </rdf:Description>
+ <rdf:Description rdf:about="">
+ <rdf:type rdf:resource="http://docs.oasis-open.org/ns/office/1.2/meta/pkg#Document"/>
+ </rdf:Description>
+</rdf:RDF>
diff --git a/extract/test/twotables_1.pdf.mutool.odt.dir.ref/meta.xml b/extract/test/twotables_1.pdf.mutool.odt.dir.ref/meta.xml
new file mode 100644
index 00000000..6b42561e
--- /dev/null
+++ b/extract/test/twotables_1.pdf.mutool.odt.dir.ref/meta.xml
@@ -0,0 +1,2 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<office:document-meta xmlns:grddl="http://www.w3.org/2003/g/data-view#" xmlns:meta="urn:oasis:names:tc:opendocument:xmlns:meta:1.0" xmlns:ooo="http://openoffice.org/2004/office" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" office:version="1.3"><office:meta><meta:creation-date>2021-04-05T17:06:57.937137058</meta:creation-date><meta:generator>LibreOffice/7.0.1.2$OpenBSD_X86_64 LibreOffice_project/00$Build-2</meta:generator><dc:date>2021-04-06T17:14:51.409959656</dc:date><meta:editing-duration>PT20S</meta:editing-duration><meta:editing-cycles>1</meta:editing-cycles><meta:document-statistic meta:table-count="0" meta:image-count="0" meta:object-count="0" meta:page-count="1" meta:paragraph-count="0" meta:word-count="0" meta:character-count="0" meta:non-whitespace-character-count="0"/></office:meta></office:document-meta> \ No newline at end of file
diff --git a/extract/test/twotables_1.pdf.mutool.odt.dir.ref/mimetype b/extract/test/twotables_1.pdf.mutool.odt.dir.ref/mimetype
new file mode 100644
index 00000000..2e95b81c
--- /dev/null
+++ b/extract/test/twotables_1.pdf.mutool.odt.dir.ref/mimetype
@@ -0,0 +1 @@
+application/vnd.oasis.opendocument.text \ No newline at end of file
diff --git a/extract/test/twotables_1.pdf.mutool.odt.dir.ref/settings.xml b/extract/test/twotables_1.pdf.mutool.odt.dir.ref/settings.xml
new file mode 100644
index 00000000..35a8138f
--- /dev/null
+++ b/extract/test/twotables_1.pdf.mutool.odt.dir.ref/settings.xml
@@ -0,0 +1,2 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<office:document-settings xmlns:config="urn:oasis:names:tc:opendocument:xmlns:config:1.0" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:ooo="http://openoffice.org/2004/office" xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" office:version="1.3"><office:settings><config:config-item-set config:name="ooo:view-settings"><config:config-item config:name="ViewAreaTop" config:type="long">0</config:config-item><config:config-item config:name="ViewAreaLeft" config:type="long">0</config:config-item><config:config-item config:name="ViewAreaWidth" config:type="long">26275</config:config-item><config:config-item config:name="ViewAreaHeight" config:type="long">19502</config:config-item><config:config-item config:name="ShowRedlineChanges" config:type="boolean">true</config:config-item><config:config-item config:name="InBrowseMode" config:type="boolean">false</config:config-item><config:config-item-map-indexed config:name="Views"><config:config-item-map-entry><config:config-item config:name="ViewId" config:type="string">view2</config:config-item><config:config-item config:name="ViewLeft" config:type="long">4343</config:config-item><config:config-item config:name="ViewTop" config:type="long">2501</config:config-item><config:config-item config:name="VisibleLeft" config:type="long">0</config:config-item><config:config-item config:name="VisibleTop" config:type="long">0</config:config-item><config:config-item config:name="VisibleRight" config:type="long">26273</config:config-item><config:config-item config:name="VisibleBottom" config:type="long">19500</config:config-item><config:config-item config:name="ZoomType" config:type="short">0</config:config-item><config:config-item config:name="ViewLayoutColumns" config:type="short">1</config:config-item><config:config-item config:name="ViewLayoutBookMode" config:type="boolean">false</config:config-item><config:config-item config:name="ZoomFactor" config:type="short">100</config:config-item><config:config-item config:name="IsSelectedFrame" config:type="boolean">false</config:config-item><config:config-item config:name="AnchoredTextOverflowLegacy" config:type="boolean">false</config:config-item></config:config-item-map-entry></config:config-item-map-indexed></config:config-item-set><config:config-item-set config:name="ooo:configuration-settings"><config:config-item config:name="PrintBlackFonts" config:type="boolean">false</config:config-item><config:config-item config:name="PrintReversed" config:type="boolean">false</config:config-item><config:config-item config:name="SaveThumbnail" config:type="boolean">true</config:config-item><config:config-item config:name="EmbedFonts" config:type="boolean">false</config:config-item><config:config-item config:name="PrintControls" config:type="boolean">true</config:config-item><config:config-item config:name="OutlineLevelYieldsNumbering" config:type="boolean">false</config:config-item><config:config-item config:name="PrintPageBackground" config:type="boolean">true</config:config-item><config:config-item config:name="PrintAnnotationMode" config:type="short">0</config:config-item><config:config-item config:name="PrintGraphics" config:type="boolean">true</config:config-item><config:config-item config:name="EmbeddedDatabaseName" config:type="string"/><config:config-item config:name="ProtectForm" config:type="boolean">false</config:config-item><config:config-item config:name="PrintLeftPages" config:type="boolean">true</config:config-item><config:config-item config:name="PrintProspect" config:type="boolean">false</config:config-item><config:config-item config:name="PrintHiddenText" config:type="boolean">false</config:config-item><config:config-item config:name="PrintRightPages" config:type="boolean">true</config:config-item><config:config-item config:name="PrintFaxName" config:type="string"/><config:config-item config:name="PrintPaperFromSetup" config:type="boolean">false</config:config-item><config:config-item config:name="TabsRelativeToIndent" config:type="boolean">true</config:config-item><config:config-item config:name="RedlineProtectionKey" config:type="base64Binary"/><config:config-item config:name="PrintTextPlaceholder" config:type="boolean">false</config:config-item><config:config-item config:name="MathBaselineAlignment" config:type="boolean">true</config:config-item><config:config-item config:name="ProtectBookmarks" config:type="boolean">false</config:config-item><config:config-item config:name="IgnoreTabsAndBlanksForLineCalculation" config:type="boolean">false</config:config-item><config:config-item config:name="ContinuousEndnotes" config:type="boolean">false</config:config-item><config:config-item config:name="FieldAutoUpdate" config:type="boolean">true</config:config-item><config:config-item config:name="EmptyDbFieldHidesPara" config:type="boolean">true</config:config-item><config:config-item config:name="ApplyParagraphMarkFormatToNumbering" config:type="boolean">false</config:config-item><config:config-item config:name="PrintEmptyPages" config:type="boolean">true</config:config-item><config:config-item config:name="TabOverMargin" config:type="boolean">false</config:config-item><config:config-item config:name="EmbedAsianScriptFonts" config:type="boolean">true</config:config-item><config:config-item config:name="EmbedLatinScriptFonts" config:type="boolean">true</config:config-item><config:config-item config:name="DisableOffPagePositioning" config:type="boolean">false</config:config-item><config:config-item config:name="EmbedOnlyUsedFonts" config:type="boolean">false</config:config-item><config:config-item config:name="MsWordCompMinLineHeightByFly" config:type="boolean">false</config:config-item><config:config-item config:name="SurroundTextWrapSmall" config:type="boolean">false</config:config-item><config:config-item config:name="BackgroundParaOverDrawings" config:type="boolean">false</config:config-item><config:config-item config:name="ClippedPictures" config:type="boolean">false</config:config-item><config:config-item config:name="FloattableNomargins" config:type="boolean">false</config:config-item><config:config-item config:name="UnbreakableNumberings" config:type="boolean">false</config:config-item><config:config-item config:name="EmbedSystemFonts" config:type="boolean">false</config:config-item><config:config-item config:name="TabOverflow" config:type="boolean">true</config:config-item><config:config-item config:name="PrintTables" config:type="boolean">true</config:config-item><config:config-item config:name="PrintDrawings" config:type="boolean">true</config:config-item><config:config-item config:name="ConsiderTextWrapOnObjPos" config:type="boolean">false</config:config-item><config:config-item config:name="PrintSingleJobs" config:type="boolean">false</config:config-item><config:config-item config:name="SmallCapsPercentage66" config:type="boolean">false</config:config-item><config:config-item config:name="CollapseEmptyCellPara" config:type="boolean">true</config:config-item><config:config-item config:name="HeaderSpacingBelowLastPara" config:type="boolean">false</config:config-item><config:config-item config:name="RsidRoot" config:type="int">2052946</config:config-item><config:config-item config:name="PrinterSetup" config:type="base64Binary"/><config:config-item config:name="CurrentDatabaseCommand" config:type="string"/><config:config-item config:name="AlignTabStopPosition" config:type="boolean">true</config:config-item><config:config-item config:name="ClipAsCharacterAnchoredWriterFlyFrames" config:type="boolean">false</config:config-item><config:config-item config:name="DoNotCaptureDrawObjsOnPage" config:type="boolean">false</config:config-item><config:config-item config:name="SaveGlobalDocumentLinks" config:type="boolean">false</config:config-item><config:config-item config:name="CurrentDatabaseCommandType" config:type="int">0</config:config-item><config:config-item config:name="LoadReadonly" config:type="boolean">false</config:config-item><config:config-item config:name="DoNotResetParaAttrsForNumFont" config:type="boolean">false</config:config-item><config:config-item config:name="StylesNoDefault" config:type="boolean">false</config:config-item><config:config-item config:name="LinkUpdateMode" config:type="short">1</config:config-item><config:config-item config:name="DoNotJustifyLinesWithManualBreak" config:type="boolean">false</config:config-item><config:config-item config:name="PropLineSpacingShrinksFirstLine" config:type="boolean">true</config:config-item><config:config-item config:name="TabAtLeftIndentForParagraphsInList" config:type="boolean">false</config:config-item><config:config-item config:name="ProtectFields" config:type="boolean">false</config:config-item><config:config-item config:name="UnxForceZeroExtLeading" config:type="boolean">false</config:config-item><config:config-item config:name="CurrentDatabaseDataSource" config:type="string"/><config:config-item config:name="UseFormerTextWrapping" config:type="boolean">false</config:config-item><config:config-item config:name="UseFormerLineSpacing" config:type="boolean">false</config:config-item><config:config-item config:name="AllowPrintJobCancel" config:type="boolean">true</config:config-item><config:config-item config:name="SubtractFlysAnchoredAtFlys" config:type="boolean">false</config:config-item><config:config-item config:name="AddParaSpacingToTableCells" config:type="boolean">true</config:config-item><config:config-item config:name="AddExternalLeading" config:type="boolean">true</config:config-item><config:config-item config:name="Rsid" config:type="int">2178852</config:config-item><config:config-item config:name="AddVerticalFrameOffsets" config:type="boolean">false</config:config-item><config:config-item config:name="TreatSingleColumnBreakAsPageBreak" config:type="boolean">false</config:config-item><config:config-item config:name="AddFrameOffsets" config:type="boolean">false</config:config-item><config:config-item config:name="IsLabelDocument" config:type="boolean">false</config:config-item><config:config-item config:name="MsWordCompTrailingBlanks" config:type="boolean">false</config:config-item><config:config-item config:name="PrinterPaperFromSetup" config:type="boolean">false</config:config-item><config:config-item config:name="IgnoreFirstLineIndentInNumbering" config:type="boolean">false</config:config-item><config:config-item config:name="PrinterName" config:type="string"/><config:config-item config:name="IsKernAsianPunctuation" config:type="boolean">false</config:config-item><config:config-item config:name="PrinterIndependentLayout" config:type="string">high-resolution</config:config-item><config:config-item config:name="TableRowKeep" config:type="boolean">false</config:config-item><config:config-item config:name="UpdateFromTemplate" config:type="boolean">true</config:config-item><config:config-item config:name="EmbedComplexScriptFonts" config:type="boolean">true</config:config-item><config:config-item config:name="UseOldPrinterMetrics" config:type="boolean">false</config:config-item><config:config-item config:name="InvertBorderSpacing" config:type="boolean">false</config:config-item><config:config-item config:name="PrintProspectRTL" config:type="boolean">false</config:config-item><config:config-item config:name="ApplyUserData" config:type="boolean">true</config:config-item><config:config-item config:name="AddParaTableSpacingAtStart" config:type="boolean">true</config:config-item><config:config-item config:name="SaveVersionOnClose" config:type="boolean">false</config:config-item><config:config-item config:name="CharacterCompressionType" config:type="short">0</config:config-item><config:config-item config:name="UseOldNumbering" config:type="boolean">false</config:config-item><config:config-item config:name="UseFormerObjectPositioning" config:type="boolean">false</config:config-item><config:config-item config:name="ChartAutoUpdate" config:type="boolean">true</config:config-item><config:config-item config:name="AddParaTableSpacing" config:type="boolean">true</config:config-item></config:config-item-set></office:settings></office:document-settings> \ No newline at end of file
diff --git a/extract/test/twotables_1.pdf.mutool.odt.dir.ref/styles.xml b/extract/test/twotables_1.pdf.mutool.odt.dir.ref/styles.xml
new file mode 100644
index 00000000..91403c4e
--- /dev/null
+++ b/extract/test/twotables_1.pdf.mutool.odt.dir.ref/styles.xml
@@ -0,0 +1,2 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<office:document-styles xmlns:css3t="http://www.w3.org/TR/css3-text/" xmlns:grddl="http://www.w3.org/2003/g/data-view#" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:dom="http://www.w3.org/2001/xml-events" xmlns:script="urn:oasis:names:tc:opendocument:xmlns:script:1.0" xmlns:form="urn:oasis:names:tc:opendocument:xmlns:form:1.0" xmlns:math="http://www.w3.org/1998/Math/MathML" xmlns:number="urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0" xmlns:field="urn:openoffice:names:experimental:ooo-ms-interop:xmlns:field:1.0" xmlns:meta="urn:oasis:names:tc:opendocument:xmlns:meta:1.0" xmlns:loext="urn:org:documentfoundation:names:experimental:office:xmlns:loext:1.0" xmlns:officeooo="http://openoffice.org/2009/office" xmlns:table="urn:oasis:names:tc:opendocument:xmlns:table:1.0" xmlns:chart="urn:oasis:names:tc:opendocument:xmlns:chart:1.0" xmlns:tableooo="http://openoffice.org/2009/table" xmlns:draw="urn:oasis:names:tc:opendocument:xmlns:drawing:1.0" xmlns:rpt="http://openoffice.org/2005/report" xmlns:dr3d="urn:oasis:names:tc:opendocument:xmlns:dr3d:1.0" xmlns:of="urn:oasis:names:tc:opendocument:xmlns:of:1.2" xmlns:text="urn:oasis:names:tc:opendocument:xmlns:text:1.0" xmlns:style="urn:oasis:names:tc:opendocument:xmlns:style:1.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:calcext="urn:org:documentfoundation:names:experimental:calc:xmlns:calcext:1.0" xmlns:oooc="http://openoffice.org/2004/calc" xmlns:drawooo="http://openoffice.org/2010/draw" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:ooo="http://openoffice.org/2004/office" xmlns:ooow="http://openoffice.org/2004/writer" xmlns:fo="urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0" xmlns:svg="urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0" xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" office:version="1.3"><office:font-face-decls><style:font-face style:name="Liberation Serif" svg:font-family="&apos;Liberation Serif&apos;" style:font-family-generic="roman" style:font-pitch="variable"/><style:font-face style:name="Liberation Sans" svg:font-family="&apos;Liberation Sans&apos;" style:font-family-generic="swiss" style:font-pitch="variable"/><style:font-face style:name="Unifont" svg:font-family="Unifont" style:font-family-generic="system" style:font-pitch="variable"/></office:font-face-decls><office:styles><style:default-style style:family="graphic"><style:graphic-properties svg:stroke-color="#3465a4" draw:fill-color="#729fcf" fo:wrap-option="no-wrap" draw:shadow-offset-x="0.1181in" draw:shadow-offset-y="0.1181in" draw:start-line-spacing-horizontal="0.1114in" draw:start-line-spacing-vertical="0.1114in" draw:end-line-spacing-horizontal="0.1114in" draw:end-line-spacing-vertical="0.1114in" style:flow-with-text="false"/><style:paragraph-properties style:text-autospace="ideograph-alpha" style:line-break="strict" style:font-independent-line-spacing="false"><style:tab-stops/></style:paragraph-properties><style:text-properties style:use-window-font-color="true" loext:opacity="0%" style:font-name="Liberation Serif" fo:font-size="12pt" fo:language="en" fo:country="US" style:letter-kerning="true" style:font-name-asian="Unifont" style:font-size-asian="10.5pt" style:language-asian="zh" style:country-asian="CN" style:font-name-complex="Unifont" style:font-size-complex="12pt" style:language-complex="hi" style:country-complex="IN"/></style:default-style><style:default-style style:family="paragraph"><style:paragraph-properties fo:orphans="2" fo:widows="2" fo:hyphenation-ladder-count="no-limit" style:text-autospace="ideograph-alpha" style:punctuation-wrap="hanging" style:line-break="strict" style:tab-stop-distance="0.4925in" style:writing-mode="page"/><style:text-properties style:use-window-font-color="true" loext:opacity="0%" style:font-name="Liberation Serif" fo:font-size="12pt" fo:language="en" fo:country="US" style:letter-kerning="true" style:font-name-asian="Unifont" style:font-size-asian="10.5pt" style:language-asian="zh" style:country-asian="CN" style:font-name-complex="Unifont" style:font-size-complex="12pt" style:language-complex="hi" style:country-complex="IN" fo:hyphenate="false" fo:hyphenation-remain-char-count="2" fo:hyphenation-push-char-count="2" loext:hyphenation-no-caps="false"/></style:default-style><style:default-style style:family="table"><style:table-properties table:border-model="collapsing"/></style:default-style><style:default-style style:family="table-row"><style:table-row-properties fo:keep-together="auto"/></style:default-style><style:style style:name="Standard" style:family="paragraph" style:class="text"><style:paragraph-properties fo:margin-top="0in" fo:margin-bottom="0.0799in" style:contextual-spacing="false"/></style:style><style:style style:name="Heading" style:family="paragraph" style:parent-style-name="Standard" style:next-style-name="Text_20_body" style:class="text"><style:paragraph-properties fo:margin-top="0.1665in" fo:margin-bottom="0.0835in" style:contextual-spacing="false" fo:keep-with-next="always"/><style:text-properties style:font-name="Liberation Sans" fo:font-family="&apos;Liberation Sans&apos;" style:font-family-generic="swiss" style:font-pitch="variable" fo:font-size="14pt" style:font-name-asian="Unifont" style:font-family-asian="Unifont" style:font-family-generic-asian="system" style:font-pitch-asian="variable" style:font-size-asian="14pt" style:font-name-complex="Unifont" style:font-family-complex="Unifont" style:font-family-generic-complex="system" style:font-pitch-complex="variable" style:font-size-complex="14pt"/></style:style><style:style style:name="Text_20_body" style:display-name="Text body" style:family="paragraph" style:parent-style-name="Standard" style:class="text"><style:paragraph-properties fo:margin-top="0in" fo:margin-bottom="0.0972in" style:contextual-spacing="false" fo:line-height="115%"/></style:style><style:style style:name="List" style:family="paragraph" style:parent-style-name="Text_20_body" style:class="list"><style:text-properties style:font-size-asian="12pt"/></style:style><style:style style:name="Caption" style:family="paragraph" style:parent-style-name="Standard" style:class="extra"><style:paragraph-properties fo:margin-top="0.0835in" fo:margin-bottom="0.0835in" style:contextual-spacing="false" text:number-lines="false" text:line-number="0"/><style:text-properties fo:font-size="12pt" fo:font-style="italic" style:font-size-asian="12pt" style:font-style-asian="italic" style:font-size-complex="12pt" style:font-style-complex="italic"/></style:style><style:style style:name="Index" style:family="paragraph" style:parent-style-name="Standard" style:class="index"><style:paragraph-properties text:number-lines="false" text:line-number="0"/><style:text-properties style:font-size-asian="12pt"/></style:style><text:outline-style style:name="Outline"><text:outline-level-style text:level="1" style:num-format=""><style:list-level-properties text:list-level-position-and-space-mode="label-alignment"><style:list-level-label-alignment text:label-followed-by="listtab"/></style:list-level-properties></text:outline-level-style><text:outline-level-style text:level="2" style:num-format=""><style:list-level-properties text:list-level-position-and-space-mode="label-alignment"><style:list-level-label-alignment text:label-followed-by="listtab"/></style:list-level-properties></text:outline-level-style><text:outline-level-style text:level="3" style:num-format=""><style:list-level-properties text:list-level-position-and-space-mode="label-alignment"><style:list-level-label-alignment text:label-followed-by="listtab"/></style:list-level-properties></text:outline-level-style><text:outline-level-style text:level="4" style:num-format=""><style:list-level-properties text:list-level-position-and-space-mode="label-alignment"><style:list-level-label-alignment text:label-followed-by="listtab"/></style:list-level-properties></text:outline-level-style><text:outline-level-style text:level="5" style:num-format=""><style:list-level-properties text:list-level-position-and-space-mode="label-alignment"><style:list-level-label-alignment text:label-followed-by="listtab"/></style:list-level-properties></text:outline-level-style><text:outline-level-style text:level="6" style:num-format=""><style:list-level-properties text:list-level-position-and-space-mode="label-alignment"><style:list-level-label-alignment text:label-followed-by="listtab"/></style:list-level-properties></text:outline-level-style><text:outline-level-style text:level="7" style:num-format=""><style:list-level-properties text:list-level-position-and-space-mode="label-alignment"><style:list-level-label-alignment text:label-followed-by="listtab"/></style:list-level-properties></text:outline-level-style><text:outline-level-style text:level="8" style:num-format=""><style:list-level-properties text:list-level-position-and-space-mode="label-alignment"><style:list-level-label-alignment text:label-followed-by="listtab"/></style:list-level-properties></text:outline-level-style><text:outline-level-style text:level="9" style:num-format=""><style:list-level-properties text:list-level-position-and-space-mode="label-alignment"><style:list-level-label-alignment text:label-followed-by="listtab"/></style:list-level-properties></text:outline-level-style><text:outline-level-style text:level="10" style:num-format=""><style:list-level-properties text:list-level-position-and-space-mode="label-alignment"><style:list-level-label-alignment text:label-followed-by="listtab"/></style:list-level-properties></text:outline-level-style></text:outline-style><text:notes-configuration text:note-class="footnote" style:num-format="1" text:start-value="0" text:footnotes-position="page" text:start-numbering-at="document"/><text:notes-configuration text:note-class="endnote" style:num-format="i" text:start-value="0"/><text:linenumbering-configuration text:number-lines="false" text:offset="0.1965in" style:num-format="1" text:number-position="left" text:increment="5"/></office:styles><office:automatic-styles><style:page-layout style:name="Mpm1"><style:page-layout-properties fo:page-width="8.5in" fo:page-height="11in" style:num-format="1" style:print-orientation="portrait" fo:margin-top="0.7874in" fo:margin-bottom="0.7874in" fo:margin-left="0.7874in" fo:margin-right="0.7874in" style:writing-mode="lr-tb" style:layout-grid-color="#c0c0c0" style:layout-grid-lines="20" style:layout-grid-base-height="0.278in" style:layout-grid-ruby-height="0.139in" style:layout-grid-mode="none" style:layout-grid-ruby-below="false" style:layout-grid-print="false" style:layout-grid-display="false" style:footnote-max-height="0in"><style:footnote-sep style:width="0.0071in" style:distance-before-sep="0.0398in" style:distance-after-sep="0.0398in" style:line-style="solid" style:adjustment="left" style:rel-width="25%" style:color="#000000"/></style:page-layout-properties><style:header-style/><style:footer-style/></style:page-layout></office:automatic-styles><office:master-styles><style:master-page style:name="Standard" style:page-layout-name="Mpm1"/></office:master-styles></office:document-styles> \ No newline at end of file
diff --git a/extract/test/twotables_2.pdf b/extract/test/twotables_2.pdf
new file mode 100755
index 00000000..52498878
--- /dev/null
+++ b/extract/test/twotables_2.pdf
Binary files differ
diff --git a/extract/test/twotables_2.pdf.mutool-0.csv.ref b/extract/test/twotables_2.pdf.mutool-0.csv.ref
new file mode 100644
index 00000000..e69de29b
--- /dev/null
+++ b/extract/test/twotables_2.pdf.mutool-0.csv.ref
diff --git a/extract/test/twotables_2.pdf.mutool.docx.dir.ref/[Content_Types].xml b/extract/test/twotables_2.pdf.mutool.docx.dir.ref/[Content_Types].xml
new file mode 100644
index 00000000..07d88cca
--- /dev/null
+++ b/extract/test/twotables_2.pdf.mutool.docx.dir.ref/[Content_Types].xml
@@ -0,0 +1,2 @@
+<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
+<Types xmlns="http://schemas.openxmlformats.org/package/2006/content-types"><Default Extension="rels" ContentType="application/vnd.openxmlformats-package.relationships+xml"/><Default Extension="xml" ContentType="application/xml"/><Override PartName="/word/document.xml" ContentType="application/vnd.openxmlformats-officedocument.wordprocessingml.document.main+xml"/><Override PartName="/word/styles.xml" ContentType="application/vnd.openxmlformats-officedocument.wordprocessingml.styles+xml"/><Override PartName="/word/settings.xml" ContentType="application/vnd.openxmlformats-officedocument.wordprocessingml.settings+xml"/><Override PartName="/word/webSettings.xml" ContentType="application/vnd.openxmlformats-officedocument.wordprocessingml.webSettings+xml"/><Override PartName="/word/fontTable.xml" ContentType="application/vnd.openxmlformats-officedocument.wordprocessingml.fontTable+xml"/><Override PartName="/word/theme/theme1.xml" ContentType="application/vnd.openxmlformats-officedocument.theme+xml"/><Override PartName="/docProps/core.xml" ContentType="application/vnd.openxmlformats-package.core-properties+xml"/><Override PartName="/docProps/app.xml" ContentType="application/vnd.openxmlformats-officedocument.extended-properties+xml"/></Types> \ No newline at end of file
diff --git a/extract/test/twotables_2.pdf.mutool.docx.dir.ref/_rels/.rels b/extract/test/twotables_2.pdf.mutool.docx.dir.ref/_rels/.rels
new file mode 100644
index 00000000..32548d42
--- /dev/null
+++ b/extract/test/twotables_2.pdf.mutool.docx.dir.ref/_rels/.rels
@@ -0,0 +1,2 @@
+<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
+<Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships"><Relationship Id="rId3" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties" Target="docProps/app.xml"/><Relationship Id="rId2" Type="http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties" Target="docProps/core.xml"/><Relationship Id="rId1" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument" Target="word/document.xml"/></Relationships> \ No newline at end of file
diff --git a/extract/test/twotables_2.pdf.mutool.docx.dir.ref/docProps/app.xml b/extract/test/twotables_2.pdf.mutool.docx.dir.ref/docProps/app.xml
new file mode 100644
index 00000000..eb8dd2e5
--- /dev/null
+++ b/extract/test/twotables_2.pdf.mutool.docx.dir.ref/docProps/app.xml
@@ -0,0 +1,2 @@
+<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
+<Properties xmlns="http://schemas.openxmlformats.org/officeDocument/2006/extended-properties" xmlns:vt="http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes"><Template>Normal.dotm</Template><TotalTime>3</TotalTime><Pages>1</Pages><Words>2</Words><Characters>18</Characters><Application>Microsoft Office Word</Application><DocSecurity>0</DocSecurity><Lines>1</Lines><Paragraphs>1</Paragraphs><ScaleCrop>false</ScaleCrop><Company></Company><LinksUpToDate>false</LinksUpToDate><CharactersWithSpaces>19</CharactersWithSpaces><SharedDoc>false</SharedDoc><HyperlinksChanged>false</HyperlinksChanged><AppVersion>16.0000</AppVersion></Properties> \ No newline at end of file
diff --git a/extract/test/twotables_2.pdf.mutool.docx.dir.ref/docProps/core.xml b/extract/test/twotables_2.pdf.mutool.docx.dir.ref/docProps/core.xml
new file mode 100644
index 00000000..195d77a9
--- /dev/null
+++ b/extract/test/twotables_2.pdf.mutool.docx.dir.ref/docProps/core.xml
@@ -0,0 +1,2 @@
+<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
+<cp:coreProperties xmlns:cp="http://schemas.openxmlformats.org/package/2006/metadata/core-properties" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:dcterms="http://purl.org/dc/terms/" xmlns:dcmitype="http://purl.org/dc/dcmitype/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><dc:title></dc:title><dc:subject></dc:subject><dc:creator></dc:creator><cp:keywords></cp:keywords><dc:description></dc:description><cp:lastModifiedBy></cp:lastModifiedBy><cp:revision>1</cp:revision><dcterms:created xsi:type="dcterms:W3CDTF">2020-09-25T17:04:00Z</dcterms:created><dcterms:modified xsi:type="dcterms:W3CDTF">2020-09-25T17:07:00Z</dcterms:modified></cp:coreProperties> \ No newline at end of file
diff --git a/extract/test/twotables_2.pdf.mutool.docx.dir.ref/word/_rels/document.xml.rels b/extract/test/twotables_2.pdf.mutool.docx.dir.ref/word/_rels/document.xml.rels
new file mode 100644
index 00000000..3b2b7f8c
--- /dev/null
+++ b/extract/test/twotables_2.pdf.mutool.docx.dir.ref/word/_rels/document.xml.rels
@@ -0,0 +1,2 @@
+<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
+<Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships"><Relationship Id="rId3" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/webSettings" Target="webSettings.xml"/><Relationship Id="rId2" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/settings" Target="settings.xml"/><Relationship Id="rId1" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles" Target="styles.xml"/><Relationship Id="rId5" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme" Target="theme/theme1.xml"/><Relationship Id="rId4" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/fontTable" Target="fontTable.xml"/></Relationships> \ No newline at end of file
diff --git a/extract/test/twotables_2.pdf.mutool.docx.dir.ref/word/document.xml b/extract/test/twotables_2.pdf.mutool.docx.dir.ref/word/document.xml
new file mode 100644
index 00000000..387f686e
--- /dev/null
+++ b/extract/test/twotables_2.pdf.mutool.docx.dir.ref/word/document.xml
@@ -0,0 +1,2866 @@
+<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
+<w:document xmlns:wpc="http://schemas.microsoft.com/office/word/2010/wordprocessingCanvas" xmlns:cx="http://schemas.microsoft.com/office/drawing/2014/chartex" xmlns:cx1="http://schemas.microsoft.com/office/drawing/2015/9/8/chartex" xmlns:cx2="http://schemas.microsoft.com/office/drawing/2015/10/21/chartex" xmlns:cx3="http://schemas.microsoft.com/office/drawing/2016/5/9/chartex" xmlns:cx4="http://schemas.microsoft.com/office/drawing/2016/5/10/chartex" xmlns:cx5="http://schemas.microsoft.com/office/drawing/2016/5/11/chartex" xmlns:cx6="http://schemas.microsoft.com/office/drawing/2016/5/12/chartex" xmlns:cx7="http://schemas.microsoft.com/office/drawing/2016/5/13/chartex" xmlns:cx8="http://schemas.microsoft.com/office/drawing/2016/5/14/chartex" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:aink="http://schemas.microsoft.com/office/drawing/2016/ink" xmlns:am3d="http://schemas.microsoft.com/office/drawing/2017/model3d" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships" xmlns:m="http://schemas.openxmlformats.org/officeDocument/2006/math" xmlns:v="urn:schemas-microsoft-com:vml" xmlns:wp14="http://schemas.microsoft.com/office/word/2010/wordprocessingDrawing" xmlns:wp="http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing" xmlns:w10="urn:schemas-microsoft-com:office:word" xmlns:w="http://schemas.openxmlformats.org/wordprocessingml/2006/main" xmlns:w14="http://schemas.microsoft.com/office/word/2010/wordml" xmlns:w15="http://schemas.microsoft.com/office/word/2012/wordml" xmlns:w16cex="http://schemas.microsoft.com/office/word/2018/wordml/cex" xmlns:w16cid="http://schemas.microsoft.com/office/word/2016/wordml/cid" xmlns:w16="http://schemas.microsoft.com/office/word/2018/wordml" xmlns:w16se="http://schemas.microsoft.com/office/word/2015/wordml/symex" xmlns:wpg="http://schemas.microsoft.com/office/word/2010/wordprocessingGroup" xmlns:wpi="http://schemas.microsoft.com/office/word/2010/wordprocessingInk" xmlns:wne="http://schemas.microsoft.com/office/word/2006/wordml" xmlns:wps="http://schemas.microsoft.com/office/word/2010/wordprocessingShape" mc:Ignorable="w14 w15 w16se w16cid w16 w16cex wp14"><w:body>
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica-Bold" w:hAnsi="Helvetica-Bold"/><w:b/><w:sz w:val="20.700000"/><w:szCs w:val="15.525000"/></w:rPr><w:t xml:space="preserve">Table 6 : DISTRIBUTION (%) OF HOUSEHOLDS BY LITERACY STATUS OF MALE HEAD OF THE HOUSEHOLD </w:t></w:r>
+</w:p>
+ <w:tbl>
+ <w:tblLayout w:type="autofit"/>
+ <w:tr>
+ <w:trPr/>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="restart"/>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica-Bold" w:hAnsi="Helvetica-Bold"/><w:b/><w:sz w:val="22.560000"/><w:szCs w:val="16.920000"/></w:rPr><w:t xml:space="preserve">n </w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:gridSpan w:val="6"/>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica-Bold" w:hAnsi="Helvetica-Bold"/><w:b/><w:sz w:val="20.700000"/><w:szCs w:val="15.525000"/></w:rPr><w:t xml:space="preserve">Literacy Status </w:t></w:r>
+</w:p> </w:tc>
+ </w:tr>
+ <w:tr>
+ <w:trPr/>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica-Bold" w:hAnsi="Helvetica-Bold"/><w:b/><w:sz w:val="20.700000"/><w:szCs w:val="15.525000"/></w:rPr><w:t xml:space="preserve">State</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica-Bold" w:hAnsi="Helvetica-Bold"/><w:b/><w:sz w:val="20.700000"/><w:szCs w:val="15.525000"/></w:rPr><w:t xml:space="preserve">Illiterate</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica-Bold" w:hAnsi="Helvetica-Bold"/><w:b/><w:sz w:val="20.700000"/><w:szCs w:val="15.525000"/></w:rPr><w:t xml:space="preserve">Read &amp; Write</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica-Bold" w:hAnsi="Helvetica-Bold"/><w:b/><w:sz w:val="20.700000"/><w:szCs w:val="15.525000"/></w:rPr><w:t xml:space="preserve">1-4 std.</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica-Bold" w:hAnsi="Helvetica-Bold"/><w:b/><w:sz w:val="20.700000"/><w:szCs w:val="15.525000"/></w:rPr><w:t xml:space="preserve">5-8 std.</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica-Bold" w:hAnsi="Helvetica-Bold"/><w:b/><w:sz w:val="20.700000"/><w:szCs w:val="15.525000"/></w:rPr><w:t xml:space="preserve">9-12 std.</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica-Bold" w:hAnsi="Helvetica-Bold"/><w:b/><w:sz w:val="20.700000"/><w:szCs w:val="15.525000"/></w:rPr><w:t xml:space="preserve">College</w:t></w:r>
+</w:p> </w:tc>
+ </w:tr>
+ <w:tr>
+ <w:trPr/>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:sz w:val="20.700000"/><w:szCs w:val="15.525000"/></w:rPr><w:t xml:space="preserve">Kerala</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:sz w:val="20.700000"/><w:szCs w:val="15.525000"/></w:rPr><w:t xml:space="preserve">2400</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:sz w:val="20.700000"/><w:szCs w:val="15.525000"/></w:rPr><w:t xml:space="preserve">7.2</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:sz w:val="20.700000"/><w:szCs w:val="15.525000"/></w:rPr><w:t xml:space="preserve">0.5</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:sz w:val="20.700000"/><w:szCs w:val="15.525000"/></w:rPr><w:t xml:space="preserve">25.3</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:sz w:val="20.700000"/><w:szCs w:val="15.525000"/></w:rPr><w:t xml:space="preserve">20.1</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:sz w:val="20.700000"/><w:szCs w:val="15.525000"/></w:rPr><w:t xml:space="preserve">41.5</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:sz w:val="20.700000"/><w:szCs w:val="15.525000"/></w:rPr><w:t xml:space="preserve">5.5</w:t></w:r>
+</w:p> </w:tc>
+ </w:tr>
+ <w:tr>
+ <w:trPr/>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:sz w:val="20.700000"/><w:szCs w:val="15.525000"/></w:rPr><w:t xml:space="preserve">Tamil Nadu</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:sz w:val="20.700000"/><w:szCs w:val="15.525000"/></w:rPr><w:t xml:space="preserve">2400</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:sz w:val="20.700000"/><w:szCs w:val="15.525000"/></w:rPr><w:t xml:space="preserve">21.4</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:sz w:val="20.700000"/><w:szCs w:val="15.525000"/></w:rPr><w:t xml:space="preserve">2.3</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:sz w:val="20.700000"/><w:szCs w:val="15.525000"/></w:rPr><w:t xml:space="preserve">8.8</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:sz w:val="20.700000"/><w:szCs w:val="15.525000"/></w:rPr><w:t xml:space="preserve">35.5</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:sz w:val="20.700000"/><w:szCs w:val="15.525000"/></w:rPr><w:t xml:space="preserve">25.8</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:sz w:val="20.700000"/><w:szCs w:val="15.525000"/></w:rPr><w:t xml:space="preserve">6.2</w:t></w:r>
+</w:p> </w:tc>
+ </w:tr>
+ <w:tr>
+ <w:trPr/>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:sz w:val="20.700000"/><w:szCs w:val="15.525000"/></w:rPr><w:t xml:space="preserve">Karnataka</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:sz w:val="20.700000"/><w:szCs w:val="15.525000"/></w:rPr><w:t xml:space="preserve">2399</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:sz w:val="20.700000"/><w:szCs w:val="15.525000"/></w:rPr><w:t xml:space="preserve">37.4</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:sz w:val="20.700000"/><w:szCs w:val="15.525000"/></w:rPr><w:t xml:space="preserve">2.8</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:sz w:val="20.700000"/><w:szCs w:val="15.525000"/></w:rPr><w:t xml:space="preserve">12.5</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:sz w:val="20.700000"/><w:szCs w:val="15.525000"/></w:rPr><w:t xml:space="preserve">18.3</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:sz w:val="20.700000"/><w:szCs w:val="15.525000"/></w:rPr><w:t xml:space="preserve">23.1</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:sz w:val="20.700000"/><w:szCs w:val="15.525000"/></w:rPr><w:t xml:space="preserve">5.8</w:t></w:r>
+</w:p> </w:tc>
+ </w:tr>
+ <w:tr>
+ <w:trPr/>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:sz w:val="20.700000"/><w:szCs w:val="15.525000"/></w:rPr><w:t xml:space="preserve">Andhra Pradesh</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:sz w:val="20.700000"/><w:szCs w:val="15.525000"/></w:rPr><w:t xml:space="preserve">2400</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:sz w:val="20.700000"/><w:szCs w:val="15.525000"/></w:rPr><w:t xml:space="preserve">54.0</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:sz w:val="20.700000"/><w:szCs w:val="15.525000"/></w:rPr><w:t xml:space="preserve">1.7</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:sz w:val="20.700000"/><w:szCs w:val="15.525000"/></w:rPr><w:t xml:space="preserve">8.4</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:sz w:val="20.700000"/><w:szCs w:val="15.525000"/></w:rPr><w:t xml:space="preserve">13.2</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:sz w:val="20.700000"/><w:szCs w:val="15.525000"/></w:rPr><w:t xml:space="preserve">18.8</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:sz w:val="20.700000"/><w:szCs w:val="15.525000"/></w:rPr><w:t xml:space="preserve">3.9</w:t></w:r>
+</w:p> </w:tc>
+ </w:tr>
+ <w:tr>
+ <w:trPr/>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:sz w:val="20.700000"/><w:szCs w:val="15.525000"/></w:rPr><w:t xml:space="preserve">Maharashtra</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:sz w:val="20.700000"/><w:szCs w:val="15.525000"/></w:rPr><w:t xml:space="preserve">2400</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:sz w:val="20.700000"/><w:szCs w:val="15.525000"/></w:rPr><w:t xml:space="preserve">22.0</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:sz w:val="20.700000"/><w:szCs w:val="15.525000"/></w:rPr><w:t xml:space="preserve">0.9</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:sz w:val="20.700000"/><w:szCs w:val="15.525000"/></w:rPr><w:t xml:space="preserve">17.3</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:sz w:val="20.700000"/><w:szCs w:val="15.525000"/></w:rPr><w:t xml:space="preserve">20.3</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:sz w:val="20.700000"/><w:szCs w:val="15.525000"/></w:rPr><w:t xml:space="preserve">32.6</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:sz w:val="20.700000"/><w:szCs w:val="15.525000"/></w:rPr><w:t xml:space="preserve">7.0</w:t></w:r>
+</w:p> </w:tc>
+ </w:tr>
+ <w:tr>
+ <w:trPr/>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:sz w:val="20.700000"/><w:szCs w:val="15.525000"/></w:rPr><w:t xml:space="preserve">Gujarat</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:sz w:val="20.700000"/><w:szCs w:val="15.525000"/></w:rPr><w:t xml:space="preserve">2390</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:sz w:val="20.700000"/><w:szCs w:val="15.525000"/></w:rPr><w:t xml:space="preserve">28.6</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:sz w:val="20.700000"/><w:szCs w:val="15.525000"/></w:rPr><w:t xml:space="preserve">0.1</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:sz w:val="20.700000"/><w:szCs w:val="15.525000"/></w:rPr><w:t xml:space="preserve">14.4</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:sz w:val="20.700000"/><w:szCs w:val="15.525000"/></w:rPr><w:t xml:space="preserve">23.1</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:sz w:val="20.700000"/><w:szCs w:val="15.525000"/></w:rPr><w:t xml:space="preserve">26.9</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:sz w:val="20.700000"/><w:szCs w:val="15.525000"/></w:rPr><w:t xml:space="preserve">6.8</w:t></w:r>
+</w:p> </w:tc>
+ </w:tr>
+ <w:tr>
+ <w:trPr/>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:sz w:val="20.700000"/><w:szCs w:val="15.525000"/></w:rPr><w:t xml:space="preserve">Madhya Pradesh</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:sz w:val="20.700000"/><w:szCs w:val="15.525000"/></w:rPr><w:t xml:space="preserve">2402</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:sz w:val="20.700000"/><w:szCs w:val="15.525000"/></w:rPr><w:t xml:space="preserve">29.1</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:sz w:val="20.700000"/><w:szCs w:val="15.525000"/></w:rPr><w:t xml:space="preserve">3.4</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:sz w:val="20.700000"/><w:szCs w:val="15.525000"/></w:rPr><w:t xml:space="preserve">8.5</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:sz w:val="20.700000"/><w:szCs w:val="15.525000"/></w:rPr><w:t xml:space="preserve">35.1</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:sz w:val="20.700000"/><w:szCs w:val="15.525000"/></w:rPr><w:t xml:space="preserve">13.3</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:sz w:val="20.700000"/><w:szCs w:val="15.525000"/></w:rPr><w:t xml:space="preserve">10.6</w:t></w:r>
+</w:p> </w:tc>
+ </w:tr>
+ <w:tr>
+ <w:trPr/>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:sz w:val="20.700000"/><w:szCs w:val="15.525000"/></w:rPr><w:t xml:space="preserve">Orissa</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:sz w:val="20.700000"/><w:szCs w:val="15.525000"/></w:rPr><w:t xml:space="preserve">2405</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:sz w:val="20.700000"/><w:szCs w:val="15.525000"/></w:rPr><w:t xml:space="preserve">33.2</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:sz w:val="20.700000"/><w:szCs w:val="15.525000"/></w:rPr><w:t xml:space="preserve">1.0</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:sz w:val="20.700000"/><w:szCs w:val="15.525000"/></w:rPr><w:t xml:space="preserve">10.4</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:sz w:val="20.700000"/><w:szCs w:val="15.525000"/></w:rPr><w:t xml:space="preserve">25.7</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:sz w:val="20.700000"/><w:szCs w:val="15.525000"/></w:rPr><w:t xml:space="preserve">21.2</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:sz w:val="20.700000"/><w:szCs w:val="15.525000"/></w:rPr><w:t xml:space="preserve">8.5</w:t></w:r>
+</w:p> </w:tc>
+ </w:tr>
+ <w:tr>
+ <w:trPr/>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:sz w:val="20.700000"/><w:szCs w:val="15.525000"/></w:rPr><w:t xml:space="preserve">West Bengal</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:sz w:val="20.700000"/><w:szCs w:val="15.525000"/></w:rPr><w:t xml:space="preserve">2293</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:sz w:val="20.700000"/><w:szCs w:val="15.525000"/></w:rPr><w:t xml:space="preserve">41.7</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:sz w:val="20.700000"/><w:szCs w:val="15.525000"/></w:rPr><w:t xml:space="preserve">4.4</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:sz w:val="20.700000"/><w:szCs w:val="15.525000"/></w:rPr><w:t xml:space="preserve">13.2</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:sz w:val="20.700000"/><w:szCs w:val="15.525000"/></w:rPr><w:t xml:space="preserve">17.1</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:sz w:val="20.700000"/><w:szCs w:val="15.525000"/></w:rPr><w:t xml:space="preserve">21.2</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:sz w:val="20.700000"/><w:szCs w:val="15.525000"/></w:rPr><w:t xml:space="preserve">2.4</w:t></w:r>
+</w:p> </w:tc>
+ </w:tr>
+ <w:tr>
+ <w:trPr/>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:sz w:val="20.700000"/><w:szCs w:val="15.525000"/></w:rPr><w:t xml:space="preserve">Uttar Pradesh</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:sz w:val="20.700000"/><w:szCs w:val="15.525000"/></w:rPr><w:t xml:space="preserve">2400</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:sz w:val="20.700000"/><w:szCs w:val="15.525000"/></w:rPr><w:t xml:space="preserve">35.3</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:sz w:val="20.700000"/><w:szCs w:val="15.525000"/></w:rPr><w:t xml:space="preserve">2.1</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:sz w:val="20.700000"/><w:szCs w:val="15.525000"/></w:rPr><w:t xml:space="preserve">4.5</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:sz w:val="20.700000"/><w:szCs w:val="15.525000"/></w:rPr><w:t xml:space="preserve">23.3</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:sz w:val="20.700000"/><w:szCs w:val="15.525000"/></w:rPr><w:t xml:space="preserve">27.1</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:sz w:val="20.700000"/><w:szCs w:val="15.525000"/></w:rPr><w:t xml:space="preserve">7.6</w:t></w:r>
+</w:p> </w:tc>
+ </w:tr>
+ <w:tr>
+ <w:trPr/>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica-Bold" w:hAnsi="Helvetica-Bold"/><w:b/><w:sz w:val="20.700000"/><w:szCs w:val="15.525000"/></w:rPr><w:t xml:space="preserve">Pooled</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica-Bold" w:hAnsi="Helvetica-Bold"/><w:b/><w:sz w:val="20.700000"/><w:szCs w:val="15.525000"/></w:rPr><w:t xml:space="preserve">23889</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica-Bold" w:hAnsi="Helvetica-Bold"/><w:b/><w:sz w:val="20.700000"/><w:szCs w:val="15.525000"/></w:rPr><w:t xml:space="preserve">30.9</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica-Bold" w:hAnsi="Helvetica-Bold"/><w:b/><w:sz w:val="20.700000"/><w:szCs w:val="15.525000"/></w:rPr><w:t xml:space="preserve">1.9</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica-Bold" w:hAnsi="Helvetica-Bold"/><w:b/><w:sz w:val="20.700000"/><w:szCs w:val="15.525000"/></w:rPr><w:t xml:space="preserve">12.3</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica-Bold" w:hAnsi="Helvetica-Bold"/><w:b/><w:sz w:val="20.700000"/><w:szCs w:val="15.525000"/></w:rPr><w:t xml:space="preserve">23.2</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica-Bold" w:hAnsi="Helvetica-Bold"/><w:b/><w:sz w:val="20.700000"/><w:szCs w:val="15.525000"/></w:rPr><w:t xml:space="preserve">25.2</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica-Bold" w:hAnsi="Helvetica-Bold"/><w:b/><w:sz w:val="20.700000"/><w:szCs w:val="15.525000"/></w:rPr><w:t xml:space="preserve">6.4</w:t></w:r>
+</w:p> </w:tc>
+ </w:tr>
+ </w:tbl>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica-Bold" w:hAnsi="Helvetica-Bold"/><w:b/><w:sz w:val="20.700000"/><w:szCs w:val="15.525000"/></w:rPr><w:t xml:space="preserve">Table 7 : DISTRIBUTION (%) OF HOUSEHOLDS BY LITERACY STATUS OF ADULT WOMEN </w:t></w:r>
+</w:p>
+ <w:tbl>
+ <w:tblLayout w:type="autofit"/>
+ <w:tr>
+ <w:trPr/>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="restart"/>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica-Bold" w:hAnsi="Helvetica-Bold"/><w:b/><w:sz w:val="20.700000"/><w:szCs w:val="15.525000"/></w:rPr><w:t xml:space="preserve">n</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:gridSpan w:val="6"/>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica-Bold" w:hAnsi="Helvetica-Bold"/><w:b/><w:sz w:val="20.700000"/><w:szCs w:val="15.525000"/></w:rPr><w:t xml:space="preserve">Literacy Status</w:t></w:r>
+</w:p> </w:tc>
+ </w:tr>
+ <w:tr>
+ <w:trPr/>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica-Bold" w:hAnsi="Helvetica-Bold"/><w:b/><w:sz w:val="20.700000"/><w:szCs w:val="15.525000"/></w:rPr><w:t xml:space="preserve">State</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ <w:vMerge w:val="continue"/>
+ </w:tcPr>
+<w:p/>
+ </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica-Bold" w:hAnsi="Helvetica-Bold"/><w:b/><w:sz w:val="20.700000"/><w:szCs w:val="15.525000"/></w:rPr><w:t xml:space="preserve">Illiterate</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica-Bold" w:hAnsi="Helvetica-Bold"/><w:b/><w:sz w:val="20.700000"/><w:szCs w:val="15.525000"/></w:rPr><w:t xml:space="preserve">Read &amp; Write</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica-Bold" w:hAnsi="Helvetica-Bold"/><w:b/><w:sz w:val="20.700000"/><w:szCs w:val="15.525000"/></w:rPr><w:t xml:space="preserve">1-4 std.</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica-Bold" w:hAnsi="Helvetica-Bold"/><w:b/><w:sz w:val="20.700000"/><w:szCs w:val="15.525000"/></w:rPr><w:t xml:space="preserve">5-8 std.</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica-Bold" w:hAnsi="Helvetica-Bold"/><w:b/><w:sz w:val="20.700000"/><w:szCs w:val="15.525000"/></w:rPr><w:t xml:space="preserve">9-12 std.</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica-Bold" w:hAnsi="Helvetica-Bold"/><w:b/><w:sz w:val="20.700000"/><w:szCs w:val="15.525000"/></w:rPr><w:t xml:space="preserve">College</w:t></w:r>
+</w:p> </w:tc>
+ </w:tr>
+ <w:tr>
+ <w:trPr/>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:sz w:val="20.700000"/><w:szCs w:val="15.525000"/></w:rPr><w:t xml:space="preserve">Kerala</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:sz w:val="20.700000"/><w:szCs w:val="15.525000"/></w:rPr><w:t xml:space="preserve">2400</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:sz w:val="20.700000"/><w:szCs w:val="15.525000"/></w:rPr><w:t xml:space="preserve">8.8</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:sz w:val="20.700000"/><w:szCs w:val="15.525000"/></w:rPr><w:t xml:space="preserve">0.3</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:sz w:val="20.700000"/><w:szCs w:val="15.525000"/></w:rPr><w:t xml:space="preserve">20.1</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:sz w:val="20.700000"/><w:szCs w:val="15.525000"/></w:rPr><w:t xml:space="preserve">17.0</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:sz w:val="20.700000"/><w:szCs w:val="15.525000"/></w:rPr><w:t xml:space="preserve">45.6</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:sz w:val="20.700000"/><w:szCs w:val="15.525000"/></w:rPr><w:t xml:space="preserve">8.2</w:t></w:r>
+</w:p> </w:tc>
+ </w:tr>
+ <w:tr>
+ <w:trPr/>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:sz w:val="20.700000"/><w:szCs w:val="15.525000"/></w:rPr><w:t xml:space="preserve">Tamil Nadu</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:sz w:val="20.700000"/><w:szCs w:val="15.525000"/></w:rPr><w:t xml:space="preserve">2400</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:sz w:val="20.700000"/><w:szCs w:val="15.525000"/></w:rPr><w:t xml:space="preserve">29.9</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:sz w:val="20.700000"/><w:szCs w:val="15.525000"/></w:rPr><w:t xml:space="preserve">1.5</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:sz w:val="20.700000"/><w:szCs w:val="15.525000"/></w:rPr><w:t xml:space="preserve">8.5</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:sz w:val="20.700000"/><w:szCs w:val="15.525000"/></w:rPr><w:t xml:space="preserve">33.1</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:sz w:val="20.700000"/><w:szCs w:val="15.525000"/></w:rPr><w:t xml:space="preserve">22.3</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:sz w:val="20.700000"/><w:szCs w:val="15.525000"/></w:rPr><w:t xml:space="preserve">4.8</w:t></w:r>
+</w:p> </w:tc>
+ </w:tr>
+ <w:tr>
+ <w:trPr/>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:sz w:val="20.700000"/><w:szCs w:val="15.525000"/></w:rPr><w:t xml:space="preserve">Karnataka</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:sz w:val="20.700000"/><w:szCs w:val="15.525000"/></w:rPr><w:t xml:space="preserve">2399</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:sz w:val="20.700000"/><w:szCs w:val="15.525000"/></w:rPr><w:t xml:space="preserve">47.9</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:sz w:val="20.700000"/><w:szCs w:val="15.525000"/></w:rPr><w:t xml:space="preserve">2.5</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:sz w:val="20.700000"/><w:szCs w:val="15.525000"/></w:rPr><w:t xml:space="preserve">10.2</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:sz w:val="20.700000"/><w:szCs w:val="15.525000"/></w:rPr><w:t xml:space="preserve">18.8</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:sz w:val="20.700000"/><w:szCs w:val="15.525000"/></w:rPr><w:t xml:space="preserve">18.4</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:sz w:val="20.700000"/><w:szCs w:val="15.525000"/></w:rPr><w:t xml:space="preserve">2.3</w:t></w:r>
+</w:p> </w:tc>
+ </w:tr>
+ <w:tr>
+ <w:trPr/>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:sz w:val="20.700000"/><w:szCs w:val="15.525000"/></w:rPr><w:t xml:space="preserve">Andhra Pradesh</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:sz w:val="20.700000"/><w:szCs w:val="15.525000"/></w:rPr><w:t xml:space="preserve">2400</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:sz w:val="20.700000"/><w:szCs w:val="15.525000"/></w:rPr><w:t xml:space="preserve">66.4</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:sz w:val="20.700000"/><w:szCs w:val="15.525000"/></w:rPr><w:t xml:space="preserve">0.7</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:sz w:val="20.700000"/><w:szCs w:val="15.525000"/></w:rPr><w:t xml:space="preserve">6.8</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:sz w:val="20.700000"/><w:szCs w:val="15.525000"/></w:rPr><w:t xml:space="preserve">12.9</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:sz w:val="20.700000"/><w:szCs w:val="15.525000"/></w:rPr><w:t xml:space="preserve">11.4</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:sz w:val="20.700000"/><w:szCs w:val="15.525000"/></w:rPr><w:t xml:space="preserve">1.8</w:t></w:r>
+</w:p> </w:tc>
+ </w:tr>
+ <w:tr>
+ <w:trPr/>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:sz w:val="20.700000"/><w:szCs w:val="15.525000"/></w:rPr><w:t xml:space="preserve">Maharashtra</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:sz w:val="20.700000"/><w:szCs w:val="15.525000"/></w:rPr><w:t xml:space="preserve">2400</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:sz w:val="20.700000"/><w:szCs w:val="15.525000"/></w:rPr><w:t xml:space="preserve">41.3</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:sz w:val="20.700000"/><w:szCs w:val="15.525000"/></w:rPr><w:t xml:space="preserve">0.6</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:sz w:val="20.700000"/><w:szCs w:val="15.525000"/></w:rPr><w:t xml:space="preserve">14.1</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:sz w:val="20.700000"/><w:szCs w:val="15.525000"/></w:rPr><w:t xml:space="preserve">20.1</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:sz w:val="20.700000"/><w:szCs w:val="15.525000"/></w:rPr><w:t xml:space="preserve">21.6</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:sz w:val="20.700000"/><w:szCs w:val="15.525000"/></w:rPr><w:t xml:space="preserve">2.2</w:t></w:r>
+</w:p> </w:tc>
+ </w:tr>
+ <w:tr>
+ <w:trPr/>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:sz w:val="20.700000"/><w:szCs w:val="15.525000"/></w:rPr><w:t xml:space="preserve">Gujarat</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:sz w:val="20.700000"/><w:szCs w:val="15.525000"/></w:rPr><w:t xml:space="preserve">2390</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:sz w:val="20.700000"/><w:szCs w:val="15.525000"/></w:rPr><w:t xml:space="preserve">57.6</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:sz w:val="20.700000"/><w:szCs w:val="15.525000"/></w:rPr><w:t xml:space="preserve">0.1</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:sz w:val="20.700000"/><w:szCs w:val="15.525000"/></w:rPr><w:t xml:space="preserve">10.3</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:sz w:val="20.700000"/><w:szCs w:val="15.525000"/></w:rPr><w:t xml:space="preserve">16.5</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:sz w:val="20.700000"/><w:szCs w:val="15.525000"/></w:rPr><w:t xml:space="preserve">12.9</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:sz w:val="20.700000"/><w:szCs w:val="15.525000"/></w:rPr><w:t xml:space="preserve">2.7</w:t></w:r>
+</w:p> </w:tc>
+ </w:tr>
+ <w:tr>
+ <w:trPr/>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:sz w:val="20.700000"/><w:szCs w:val="15.525000"/></w:rPr><w:t xml:space="preserve">Madhya Pradesh</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:sz w:val="20.700000"/><w:szCs w:val="15.525000"/></w:rPr><w:t xml:space="preserve">2402</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:sz w:val="20.700000"/><w:szCs w:val="15.525000"/></w:rPr><w:t xml:space="preserve">58.7</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:sz w:val="20.700000"/><w:szCs w:val="15.525000"/></w:rPr><w:t xml:space="preserve">2.2</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:sz w:val="20.700000"/><w:szCs w:val="15.525000"/></w:rPr><w:t xml:space="preserve">6.6</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:sz w:val="20.700000"/><w:szCs w:val="15.525000"/></w:rPr><w:t xml:space="preserve">24.1</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:sz w:val="20.700000"/><w:szCs w:val="15.525000"/></w:rPr><w:t xml:space="preserve">5.3</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:sz w:val="20.700000"/><w:szCs w:val="15.525000"/></w:rPr><w:t xml:space="preserve">3.0</w:t></w:r>
+</w:p> </w:tc>
+ </w:tr>
+ <w:tr>
+ <w:trPr/>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:sz w:val="20.700000"/><w:szCs w:val="15.525000"/></w:rPr><w:t xml:space="preserve">Orissa</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:sz w:val="20.700000"/><w:szCs w:val="15.525000"/></w:rPr><w:t xml:space="preserve">2405</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:sz w:val="20.700000"/><w:szCs w:val="15.525000"/></w:rPr><w:t xml:space="preserve">50.0</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:sz w:val="20.700000"/><w:szCs w:val="15.525000"/></w:rPr><w:t xml:space="preserve">0.9</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:sz w:val="20.700000"/><w:szCs w:val="15.525000"/></w:rPr><w:t xml:space="preserve">8.1</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:sz w:val="20.700000"/><w:szCs w:val="15.525000"/></w:rPr><w:t xml:space="preserve">21.9</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:sz w:val="20.700000"/><w:szCs w:val="15.525000"/></w:rPr><w:t xml:space="preserve">15.1</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:sz w:val="20.700000"/><w:szCs w:val="15.525000"/></w:rPr><w:t xml:space="preserve">4.0</w:t></w:r>
+</w:p> </w:tc>
+ </w:tr>
+ <w:tr>
+ <w:trPr/>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:sz w:val="20.700000"/><w:szCs w:val="15.525000"/></w:rPr><w:t xml:space="preserve">West Bengal</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:sz w:val="20.700000"/><w:szCs w:val="15.525000"/></w:rPr><w:t xml:space="preserve">2293</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:sz w:val="20.700000"/><w:szCs w:val="15.525000"/></w:rPr><w:t xml:space="preserve">49.1</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:sz w:val="20.700000"/><w:szCs w:val="15.525000"/></w:rPr><w:t xml:space="preserve">4.8</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:sz w:val="20.700000"/><w:szCs w:val="15.525000"/></w:rPr><w:t xml:space="preserve">11.2</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:sz w:val="20.700000"/><w:szCs w:val="15.525000"/></w:rPr><w:t xml:space="preserve">16.8</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:sz w:val="20.700000"/><w:szCs w:val="15.525000"/></w:rPr><w:t xml:space="preserve">17.1</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:sz w:val="20.700000"/><w:szCs w:val="15.525000"/></w:rPr><w:t xml:space="preserve">1.1</w:t></w:r>
+</w:p> </w:tc>
+ </w:tr>
+ <w:tr>
+ <w:trPr/>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:sz w:val="20.700000"/><w:szCs w:val="15.525000"/></w:rPr><w:t xml:space="preserve">Uttar Pradesh</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:sz w:val="20.700000"/><w:szCs w:val="15.525000"/></w:rPr><w:t xml:space="preserve">2400</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:sz w:val="20.700000"/><w:szCs w:val="15.525000"/></w:rPr><w:t xml:space="preserve">67.3</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:sz w:val="20.700000"/><w:szCs w:val="15.525000"/></w:rPr><w:t xml:space="preserve">2.0</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:sz w:val="20.700000"/><w:szCs w:val="15.525000"/></w:rPr><w:t xml:space="preserve">3.1</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:sz w:val="20.700000"/><w:szCs w:val="15.525000"/></w:rPr><w:t xml:space="preserve">17.2</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:sz w:val="20.700000"/><w:szCs w:val="15.525000"/></w:rPr><w:t xml:space="preserve">7.7</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:sz w:val="20.700000"/><w:szCs w:val="15.525000"/></w:rPr><w:t xml:space="preserve">2.7</w:t></w:r>
+</w:p> </w:tc>
+ </w:tr>
+ <w:tr>
+ <w:trPr/>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica-Bold" w:hAnsi="Helvetica-Bold"/><w:b/><w:sz w:val="20.700000"/><w:szCs w:val="15.525000"/></w:rPr><w:t xml:space="preserve">Pooled</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica-Bold" w:hAnsi="Helvetica-Bold"/><w:b/><w:sz w:val="20.700000"/><w:szCs w:val="15.525000"/></w:rPr><w:t xml:space="preserve">23889</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica-Bold" w:hAnsi="Helvetica-Bold"/><w:b/><w:sz w:val="20.700000"/><w:szCs w:val="15.525000"/></w:rPr><w:t xml:space="preserve">47.7</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica-Bold" w:hAnsi="Helvetica-Bold"/><w:b/><w:sz w:val="20.700000"/><w:szCs w:val="15.525000"/></w:rPr><w:t xml:space="preserve">1.5</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica-Bold" w:hAnsi="Helvetica-Bold"/><w:b/><w:sz w:val="20.700000"/><w:szCs w:val="15.525000"/></w:rPr><w:t xml:space="preserve">9.9</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica-Bold" w:hAnsi="Helvetica-Bold"/><w:b/><w:sz w:val="20.700000"/><w:szCs w:val="15.525000"/></w:rPr><w:t xml:space="preserve">19.9</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica-Bold" w:hAnsi="Helvetica-Bold"/><w:b/><w:sz w:val="20.700000"/><w:szCs w:val="15.525000"/></w:rPr><w:t xml:space="preserve">17.8</w:t></w:r>
+</w:p> </w:tc>
+ <w:tc>
+ <w:tcPr>
+ <w:tcBorders>
+ <w:top w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:start w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:bottom w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ <w:end w:val="double" w:sz="2" w:space="0" w:color="808080"/>
+ </w:tcBorders>
+ </w:tcPr>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica-Bold" w:hAnsi="Helvetica-Bold"/><w:b/><w:sz w:val="20.700000"/><w:szCs w:val="15.525000"/></w:rPr><w:t xml:space="preserve">3.3</w:t></w:r>
+</w:p> </w:tc>
+ </w:tr>
+ </w:tbl>
+
+
+<w:p>
+<w:r><w:rPr><w:rFonts w:ascii="Helvetica" w:hAnsi="Helvetica"/><w:sz w:val="18.840000"/><w:szCs w:val="14.130000"/></w:rPr><w:t xml:space="preserve">NNMB 75 Rural-Third Repeat Survey 2011-12 </w:t></w:r>
+</w:p></w:body></w:document> \ No newline at end of file
diff --git a/extract/test/twotables_2.pdf.mutool.docx.dir.ref/word/fontTable.xml b/extract/test/twotables_2.pdf.mutool.docx.dir.ref/word/fontTable.xml
new file mode 100644
index 00000000..a39546e5
--- /dev/null
+++ b/extract/test/twotables_2.pdf.mutool.docx.dir.ref/word/fontTable.xml
@@ -0,0 +1,2 @@
+<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
+<w:fonts xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships" xmlns:w="http://schemas.openxmlformats.org/wordprocessingml/2006/main" xmlns:w14="http://schemas.microsoft.com/office/word/2010/wordml" xmlns:w15="http://schemas.microsoft.com/office/word/2012/wordml" xmlns:w16cex="http://schemas.microsoft.com/office/word/2018/wordml/cex" xmlns:w16cid="http://schemas.microsoft.com/office/word/2016/wordml/cid" xmlns:w16="http://schemas.microsoft.com/office/word/2018/wordml" xmlns:w16se="http://schemas.microsoft.com/office/word/2015/wordml/symex" mc:Ignorable="w14 w15 w16se w16cid w16 w16cex"><w:font w:name="Calibri"><w:panose1 w:val="020F0502020204030204"/><w:charset w:val="00"/><w:family w:val="swiss"/><w:pitch w:val="variable"/><w:sig w:usb0="E4002EFF" w:usb1="C000247B" w:usb2="00000009" w:usb3="00000000" w:csb0="000001FF" w:csb1="00000000"/></w:font><w:font w:name="Times New Roman"><w:panose1 w:val="02020603050405020304"/><w:charset w:val="00"/><w:family w:val="roman"/><w:pitch w:val="variable"/><w:sig w:usb0="E0002EFF" w:usb1="C000785B" w:usb2="00000009" w:usb3="00000000" w:csb0="000001FF" w:csb1="00000000"/></w:font><w:font w:name="Calibri Light"><w:panose1 w:val="020F0302020204030204"/><w:charset w:val="00"/><w:family w:val="swiss"/><w:pitch w:val="variable"/><w:sig w:usb0="E4002EFF" w:usb1="C000247B" w:usb2="00000009" w:usb3="00000000" w:csb0="000001FF" w:csb1="00000000"/></w:font></w:fonts> \ No newline at end of file
diff --git a/extract/test/twotables_2.pdf.mutool.docx.dir.ref/word/settings.xml b/extract/test/twotables_2.pdf.mutool.docx.dir.ref/word/settings.xml
new file mode 100644
index 00000000..c403540d
--- /dev/null
+++ b/extract/test/twotables_2.pdf.mutool.docx.dir.ref/word/settings.xml
@@ -0,0 +1,2 @@
+<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
+<w:settings xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships" xmlns:m="http://schemas.openxmlformats.org/officeDocument/2006/math" xmlns:v="urn:schemas-microsoft-com:vml" xmlns:w10="urn:schemas-microsoft-com:office:word" xmlns:w="http://schemas.openxmlformats.org/wordprocessingml/2006/main" xmlns:w14="http://schemas.microsoft.com/office/word/2010/wordml" xmlns:w15="http://schemas.microsoft.com/office/word/2012/wordml" xmlns:w16cex="http://schemas.microsoft.com/office/word/2018/wordml/cex" xmlns:w16cid="http://schemas.microsoft.com/office/word/2016/wordml/cid" xmlns:w16="http://schemas.microsoft.com/office/word/2018/wordml" xmlns:w16se="http://schemas.microsoft.com/office/word/2015/wordml/symex" xmlns:sl="http://schemas.openxmlformats.org/schemaLibrary/2006/main" mc:Ignorable="w14 w15 w16se w16cid w16 w16cex"><w:zoom w:percent="100"/><w:proofState w:spelling="clean" w:grammar="clean"/><w:defaultTabStop w:val="720"/><w:characterSpacingControl w:val="doNotCompress"/><w:compat><w:compatSetting w:name="compatibilityMode" w:uri="http://schemas.microsoft.com/office/word" w:val="15"/><w:compatSetting w:name="overrideTableStyleFontSizeAndJustification" w:uri="http://schemas.microsoft.com/office/word" w:val="1"/><w:compatSetting w:name="enableOpenTypeFeatures" w:uri="http://schemas.microsoft.com/office/word" w:val="1"/><w:compatSetting w:name="doNotFlipMirrorIndents" w:uri="http://schemas.microsoft.com/office/word" w:val="1"/><w:compatSetting w:name="differentiateMultirowTableHeaders" w:uri="http://schemas.microsoft.com/office/word" w:val="1"/><w:compatSetting w:name="useWord2013TrackBottomHyphenation" w:uri="http://schemas.microsoft.com/office/word" w:val="0"/></w:compat><w:rsids><w:rsidRoot w:val="007F4427"/><w:rsid w:val="00255448"/><w:rsid w:val="007F4427"/></w:rsids><m:mathPr><m:mathFont m:val="Cambria Math"/><m:brkBin m:val="before"/><m:brkBinSub m:val="--"/><m:smallFrac m:val="0"/><m:dispDef/><m:lMargin m:val="0"/><m:rMargin m:val="0"/><m:defJc m:val="centerGroup"/><m:wrapIndent m:val="1440"/><m:intLim m:val="subSup"/><m:naryLim m:val="undOvr"/></m:mathPr><w:themeFontLang w:val="en-GB"/><w:clrSchemeMapping w:bg1="light1" w:t1="dark1" w:bg2="light2" w:t2="dark2" w:accent1="accent1" w:accent2="accent2" w:accent3="accent3" w:accent4="accent4" w:accent5="accent5" w:accent6="accent6" w:hyperlink="hyperlink" w:followedHyperlink="followedHyperlink"/><w:shapeDefaults><o:shapedefaults v:ext="edit" spidmax="1026"/><o:shapelayout v:ext="edit"><o:idmap v:ext="edit" data="1"/></o:shapelayout></w:shapeDefaults><w:decimalSymbol w:val="."/><w:listSeparator w:val=","/><w14:docId w14:val="32E52EF8"/><w15:chartTrackingRefBased/><w15:docId w15:val="{A10F59F7-497D-44D4-A338-47719734E7A0}"/></w:settings> \ No newline at end of file
diff --git a/extract/test/twotables_2.pdf.mutool.docx.dir.ref/word/styles.xml b/extract/test/twotables_2.pdf.mutool.docx.dir.ref/word/styles.xml
new file mode 100644
index 00000000..38e5e2bd
--- /dev/null
+++ b/extract/test/twotables_2.pdf.mutool.docx.dir.ref/word/styles.xml
@@ -0,0 +1,2 @@
+<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
+<w:styles xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships" xmlns:w="http://schemas.openxmlformats.org/wordprocessingml/2006/main" xmlns:w14="http://schemas.microsoft.com/office/word/2010/wordml" xmlns:w15="http://schemas.microsoft.com/office/word/2012/wordml" xmlns:w16cex="http://schemas.microsoft.com/office/word/2018/wordml/cex" xmlns:w16cid="http://schemas.microsoft.com/office/word/2016/wordml/cid" xmlns:w16="http://schemas.microsoft.com/office/word/2018/wordml" xmlns:w16se="http://schemas.microsoft.com/office/word/2015/wordml/symex" mc:Ignorable="w14 w15 w16se w16cid w16 w16cex"><w:docDefaults><w:rPrDefault><w:rPr><w:rFonts w:asciiTheme="minorHAnsi" w:eastAsiaTheme="minorHAnsi" w:hAnsiTheme="minorHAnsi" w:cstheme="minorBidi"/><w:sz w:val="22"/><w:szCs w:val="22"/><w:lang w:val="en-GB" w:eastAsia="en-US" w:bidi="ar-SA"/></w:rPr></w:rPrDefault><w:pPrDefault><w:pPr><w:spacing w:after="160" w:line="259" w:lineRule="auto"/></w:pPr></w:pPrDefault></w:docDefaults><w:latentStyles w:defLockedState="0" w:defUIPriority="99" w:defSemiHidden="0" w:defUnhideWhenUsed="0" w:defQFormat="0" w:count="376"><w:lsdException w:name="Normal" w:uiPriority="0" w:qFormat="1"/><w:lsdException w:name="heading 1" w:uiPriority="9" w:qFormat="1"/><w:lsdException w:name="heading 2" w:semiHidden="1" w:uiPriority="9" w:unhideWhenUsed="1" w:qFormat="1"/><w:lsdException w:name="heading 3" w:semiHidden="1" w:uiPriority="9" w:unhideWhenUsed="1" w:qFormat="1"/><w:lsdException w:name="heading 4" w:semiHidden="1" w:uiPriority="9" w:unhideWhenUsed="1" w:qFormat="1"/><w:lsdException w:name="heading 5" w:semiHidden="1" w:uiPriority="9" w:unhideWhenUsed="1" w:qFormat="1"/><w:lsdException w:name="heading 6" w:semiHidden="1" w:uiPriority="9" w:unhideWhenUsed="1" w:qFormat="1"/><w:lsdException w:name="heading 7" w:semiHidden="1" w:uiPriority="9" w:unhideWhenUsed="1" w:qFormat="1"/><w:lsdException w:name="heading 8" w:semiHidden="1" w:uiPriority="9" w:unhideWhenUsed="1" w:qFormat="1"/><w:lsdException w:name="heading 9" w:semiHidden="1" w:uiPriority="9" w:unhideWhenUsed="1" w:qFormat="1"/><w:lsdException w:name="index 1" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="index 2" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="index 3" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="index 4" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="index 5" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="index 6" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="index 7" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="index 8" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="index 9" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="toc 1" w:semiHidden="1" w:uiPriority="39" w:unhideWhenUsed="1"/><w:lsdException w:name="toc 2" w:semiHidden="1" w:uiPriority="39" w:unhideWhenUsed="1"/><w:lsdException w:name="toc 3" w:semiHidden="1" w:uiPriority="39" w:unhideWhenUsed="1"/><w:lsdException w:name="toc 4" w:semiHidden="1" w:uiPriority="39" w:unhideWhenUsed="1"/><w:lsdException w:name="toc 5" w:semiHidden="1" w:uiPriority="39" w:unhideWhenUsed="1"/><w:lsdException w:name="toc 6" w:semiHidden="1" w:uiPriority="39" w:unhideWhenUsed="1"/><w:lsdException w:name="toc 7" w:semiHidden="1" w:uiPriority="39" w:unhideWhenUsed="1"/><w:lsdException w:name="toc 8" w:semiHidden="1" w:uiPriority="39" w:unhideWhenUsed="1"/><w:lsdException w:name="toc 9" w:semiHidden="1" w:uiPriority="39" w:unhideWhenUsed="1"/><w:lsdException w:name="Normal Indent" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="footnote text" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="annotation text" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="header" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="footer" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="index heading" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="caption" w:semiHidden="1" w:uiPriority="35" w:unhideWhenUsed="1" w:qFormat="1"/><w:lsdException w:name="table of figures" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="envelope address" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="envelope return" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="footnote reference" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="annotation reference" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="line number" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="page number" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="endnote reference" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="endnote text" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="table of authorities" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="macro" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="toa heading" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="List" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="List Bullet" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="List Number" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="List 2" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="List 3" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="List 4" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="List 5" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="List Bullet 2" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="List Bullet 3" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="List Bullet 4" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="List Bullet 5" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="List Number 2" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="List Number 3" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="List Number 4" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="List Number 5" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Title" w:uiPriority="10" w:qFormat="1"/><w:lsdException w:name="Closing" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Signature" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Default Paragraph Font" w:semiHidden="1" w:uiPriority="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Body Text" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Body Text Indent" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="List Continue" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="List Continue 2" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="List Continue 3" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="List Continue 4" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="List Continue 5" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Message Header" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Subtitle" w:uiPriority="11" w:qFormat="1"/><w:lsdException w:name="Salutation" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Date" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Body Text First Indent" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Body Text First Indent 2" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Note Heading" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Body Text 2" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Body Text 3" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Body Text Indent 2" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Body Text Indent 3" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Block Text" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Hyperlink" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="FollowedHyperlink" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Strong" w:uiPriority="22" w:qFormat="1"/><w:lsdException w:name="Emphasis" w:uiPriority="20" w:qFormat="1"/><w:lsdException w:name="Document Map" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Plain Text" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="E-mail Signature" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="HTML Top of Form" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="HTML Bottom of Form" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Normal (Web)" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="HTML Acronym" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="HTML Address" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="HTML Cite" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="HTML Code" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="HTML Definition" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="HTML Keyboard" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="HTML Preformatted" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="HTML Sample" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="HTML Typewriter" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="HTML Variable" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Normal Table" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="annotation subject" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="No List" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Outline List 1" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Outline List 2" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Outline List 3" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Simple 1" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Simple 2" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Simple 3" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Classic 1" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Classic 2" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Classic 3" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Classic 4" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Colorful 1" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Colorful 2" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Colorful 3" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Columns 1" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Columns 2" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Columns 3" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Columns 4" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Columns 5" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Grid 1" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Grid 2" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Grid 3" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Grid 4" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Grid 5" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Grid 6" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Grid 7" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Grid 8" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table List 1" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table List 2" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table List 3" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table List 4" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table List 5" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table List 6" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table List 7" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table List 8" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table 3D effects 1" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table 3D effects 2" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table 3D effects 3" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Contemporary" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Elegant" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Professional" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Subtle 1" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Subtle 2" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Web 1" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Web 2" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Web 3" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Balloon Text" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Table Grid" w:uiPriority="39"/><w:lsdException w:name="Table Theme" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Placeholder Text" w:semiHidden="1"/><w:lsdException w:name="No Spacing" w:uiPriority="1" w:qFormat="1"/><w:lsdException w:name="Light Shading" w:uiPriority="60"/><w:lsdException w:name="Light List" w:uiPriority="61"/><w:lsdException w:name="Light Grid" w:uiPriority="62"/><w:lsdException w:name="Medium Shading 1" w:uiPriority="63"/><w:lsdException w:name="Medium Shading 2" w:uiPriority="64"/><w:lsdException w:name="Medium List 1" w:uiPriority="65"/><w:lsdException w:name="Medium List 2" w:uiPriority="66"/><w:lsdException w:name="Medium Grid 1" w:uiPriority="67"/><w:lsdException w:name="Medium Grid 2" w:uiPriority="68"/><w:lsdException w:name="Medium Grid 3" w:uiPriority="69"/><w:lsdException w:name="Dark List" w:uiPriority="70"/><w:lsdException w:name="Colorful Shading" w:uiPriority="71"/><w:lsdException w:name="Colorful List" w:uiPriority="72"/><w:lsdException w:name="Colorful Grid" w:uiPriority="73"/><w:lsdException w:name="Light Shading Accent 1" w:uiPriority="60"/><w:lsdException w:name="Light List Accent 1" w:uiPriority="61"/><w:lsdException w:name="Light Grid Accent 1" w:uiPriority="62"/><w:lsdException w:name="Medium Shading 1 Accent 1" w:uiPriority="63"/><w:lsdException w:name="Medium Shading 2 Accent 1" w:uiPriority="64"/><w:lsdException w:name="Medium List 1 Accent 1" w:uiPriority="65"/><w:lsdException w:name="Revision" w:semiHidden="1"/><w:lsdException w:name="List Paragraph" w:uiPriority="34" w:qFormat="1"/><w:lsdException w:name="Quote" w:uiPriority="29" w:qFormat="1"/><w:lsdException w:name="Intense Quote" w:uiPriority="30" w:qFormat="1"/><w:lsdException w:name="Medium List 2 Accent 1" w:uiPriority="66"/><w:lsdException w:name="Medium Grid 1 Accent 1" w:uiPriority="67"/><w:lsdException w:name="Medium Grid 2 Accent 1" w:uiPriority="68"/><w:lsdException w:name="Medium Grid 3 Accent 1" w:uiPriority="69"/><w:lsdException w:name="Dark List Accent 1" w:uiPriority="70"/><w:lsdException w:name="Colorful Shading Accent 1" w:uiPriority="71"/><w:lsdException w:name="Colorful List Accent 1" w:uiPriority="72"/><w:lsdException w:name="Colorful Grid Accent 1" w:uiPriority="73"/><w:lsdException w:name="Light Shading Accent 2" w:uiPriority="60"/><w:lsdException w:name="Light List Accent 2" w:uiPriority="61"/><w:lsdException w:name="Light Grid Accent 2" w:uiPriority="62"/><w:lsdException w:name="Medium Shading 1 Accent 2" w:uiPriority="63"/><w:lsdException w:name="Medium Shading 2 Accent 2" w:uiPriority="64"/><w:lsdException w:name="Medium List 1 Accent 2" w:uiPriority="65"/><w:lsdException w:name="Medium List 2 Accent 2" w:uiPriority="66"/><w:lsdException w:name="Medium Grid 1 Accent 2" w:uiPriority="67"/><w:lsdException w:name="Medium Grid 2 Accent 2" w:uiPriority="68"/><w:lsdException w:name="Medium Grid 3 Accent 2" w:uiPriority="69"/><w:lsdException w:name="Dark List Accent 2" w:uiPriority="70"/><w:lsdException w:name="Colorful Shading Accent 2" w:uiPriority="71"/><w:lsdException w:name="Colorful List Accent 2" w:uiPriority="72"/><w:lsdException w:name="Colorful Grid Accent 2" w:uiPriority="73"/><w:lsdException w:name="Light Shading Accent 3" w:uiPriority="60"/><w:lsdException w:name="Light List Accent 3" w:uiPriority="61"/><w:lsdException w:name="Light Grid Accent 3" w:uiPriority="62"/><w:lsdException w:name="Medium Shading 1 Accent 3" w:uiPriority="63"/><w:lsdException w:name="Medium Shading 2 Accent 3" w:uiPriority="64"/><w:lsdException w:name="Medium List 1 Accent 3" w:uiPriority="65"/><w:lsdException w:name="Medium List 2 Accent 3" w:uiPriority="66"/><w:lsdException w:name="Medium Grid 1 Accent 3" w:uiPriority="67"/><w:lsdException w:name="Medium Grid 2 Accent 3" w:uiPriority="68"/><w:lsdException w:name="Medium Grid 3 Accent 3" w:uiPriority="69"/><w:lsdException w:name="Dark List Accent 3" w:uiPriority="70"/><w:lsdException w:name="Colorful Shading Accent 3" w:uiPriority="71"/><w:lsdException w:name="Colorful List Accent 3" w:uiPriority="72"/><w:lsdException w:name="Colorful Grid Accent 3" w:uiPriority="73"/><w:lsdException w:name="Light Shading Accent 4" w:uiPriority="60"/><w:lsdException w:name="Light List Accent 4" w:uiPriority="61"/><w:lsdException w:name="Light Grid Accent 4" w:uiPriority="62"/><w:lsdException w:name="Medium Shading 1 Accent 4" w:uiPriority="63"/><w:lsdException w:name="Medium Shading 2 Accent 4" w:uiPriority="64"/><w:lsdException w:name="Medium List 1 Accent 4" w:uiPriority="65"/><w:lsdException w:name="Medium List 2 Accent 4" w:uiPriority="66"/><w:lsdException w:name="Medium Grid 1 Accent 4" w:uiPriority="67"/><w:lsdException w:name="Medium Grid 2 Accent 4" w:uiPriority="68"/><w:lsdException w:name="Medium Grid 3 Accent 4" w:uiPriority="69"/><w:lsdException w:name="Dark List Accent 4" w:uiPriority="70"/><w:lsdException w:name="Colorful Shading Accent 4" w:uiPriority="71"/><w:lsdException w:name="Colorful List Accent 4" w:uiPriority="72"/><w:lsdException w:name="Colorful Grid Accent 4" w:uiPriority="73"/><w:lsdException w:name="Light Shading Accent 5" w:uiPriority="60"/><w:lsdException w:name="Light List Accent 5" w:uiPriority="61"/><w:lsdException w:name="Light Grid Accent 5" w:uiPriority="62"/><w:lsdException w:name="Medium Shading 1 Accent 5" w:uiPriority="63"/><w:lsdException w:name="Medium Shading 2 Accent 5" w:uiPriority="64"/><w:lsdException w:name="Medium List 1 Accent 5" w:uiPriority="65"/><w:lsdException w:name="Medium List 2 Accent 5" w:uiPriority="66"/><w:lsdException w:name="Medium Grid 1 Accent 5" w:uiPriority="67"/><w:lsdException w:name="Medium Grid 2 Accent 5" w:uiPriority="68"/><w:lsdException w:name="Medium Grid 3 Accent 5" w:uiPriority="69"/><w:lsdException w:name="Dark List Accent 5" w:uiPriority="70"/><w:lsdException w:name="Colorful Shading Accent 5" w:uiPriority="71"/><w:lsdException w:name="Colorful List Accent 5" w:uiPriority="72"/><w:lsdException w:name="Colorful Grid Accent 5" w:uiPriority="73"/><w:lsdException w:name="Light Shading Accent 6" w:uiPriority="60"/><w:lsdException w:name="Light List Accent 6" w:uiPriority="61"/><w:lsdException w:name="Light Grid Accent 6" w:uiPriority="62"/><w:lsdException w:name="Medium Shading 1 Accent 6" w:uiPriority="63"/><w:lsdException w:name="Medium Shading 2 Accent 6" w:uiPriority="64"/><w:lsdException w:name="Medium List 1 Accent 6" w:uiPriority="65"/><w:lsdException w:name="Medium List 2 Accent 6" w:uiPriority="66"/><w:lsdException w:name="Medium Grid 1 Accent 6" w:uiPriority="67"/><w:lsdException w:name="Medium Grid 2 Accent 6" w:uiPriority="68"/><w:lsdException w:name="Medium Grid 3 Accent 6" w:uiPriority="69"/><w:lsdException w:name="Dark List Accent 6" w:uiPriority="70"/><w:lsdException w:name="Colorful Shading Accent 6" w:uiPriority="71"/><w:lsdException w:name="Colorful List Accent 6" w:uiPriority="72"/><w:lsdException w:name="Colorful Grid Accent 6" w:uiPriority="73"/><w:lsdException w:name="Subtle Emphasis" w:uiPriority="19" w:qFormat="1"/><w:lsdException w:name="Intense Emphasis" w:uiPriority="21" w:qFormat="1"/><w:lsdException w:name="Subtle Reference" w:uiPriority="31" w:qFormat="1"/><w:lsdException w:name="Intense Reference" w:uiPriority="32" w:qFormat="1"/><w:lsdException w:name="Book Title" w:uiPriority="33" w:qFormat="1"/><w:lsdException w:name="Bibliography" w:semiHidden="1" w:uiPriority="37" w:unhideWhenUsed="1"/><w:lsdException w:name="TOC Heading" w:semiHidden="1" w:uiPriority="39" w:unhideWhenUsed="1" w:qFormat="1"/><w:lsdException w:name="Plain Table 1" w:uiPriority="41"/><w:lsdException w:name="Plain Table 2" w:uiPriority="42"/><w:lsdException w:name="Plain Table 3" w:uiPriority="43"/><w:lsdException w:name="Plain Table 4" w:uiPriority="44"/><w:lsdException w:name="Plain Table 5" w:uiPriority="45"/><w:lsdException w:name="Grid Table Light" w:uiPriority="40"/><w:lsdException w:name="Grid Table 1 Light" w:uiPriority="46"/><w:lsdException w:name="Grid Table 2" w:uiPriority="47"/><w:lsdException w:name="Grid Table 3" w:uiPriority="48"/><w:lsdException w:name="Grid Table 4" w:uiPriority="49"/><w:lsdException w:name="Grid Table 5 Dark" w:uiPriority="50"/><w:lsdException w:name="Grid Table 6 Colorful" w:uiPriority="51"/><w:lsdException w:name="Grid Table 7 Colorful" w:uiPriority="52"/><w:lsdException w:name="Grid Table 1 Light Accent 1" w:uiPriority="46"/><w:lsdException w:name="Grid Table 2 Accent 1" w:uiPriority="47"/><w:lsdException w:name="Grid Table 3 Accent 1" w:uiPriority="48"/><w:lsdException w:name="Grid Table 4 Accent 1" w:uiPriority="49"/><w:lsdException w:name="Grid Table 5 Dark Accent 1" w:uiPriority="50"/><w:lsdException w:name="Grid Table 6 Colorful Accent 1" w:uiPriority="51"/><w:lsdException w:name="Grid Table 7 Colorful Accent 1" w:uiPriority="52"/><w:lsdException w:name="Grid Table 1 Light Accent 2" w:uiPriority="46"/><w:lsdException w:name="Grid Table 2 Accent 2" w:uiPriority="47"/><w:lsdException w:name="Grid Table 3 Accent 2" w:uiPriority="48"/><w:lsdException w:name="Grid Table 4 Accent 2" w:uiPriority="49"/><w:lsdException w:name="Grid Table 5 Dark Accent 2" w:uiPriority="50"/><w:lsdException w:name="Grid Table 6 Colorful Accent 2" w:uiPriority="51"/><w:lsdException w:name="Grid Table 7 Colorful Accent 2" w:uiPriority="52"/><w:lsdException w:name="Grid Table 1 Light Accent 3" w:uiPriority="46"/><w:lsdException w:name="Grid Table 2 Accent 3" w:uiPriority="47"/><w:lsdException w:name="Grid Table 3 Accent 3" w:uiPriority="48"/><w:lsdException w:name="Grid Table 4 Accent 3" w:uiPriority="49"/><w:lsdException w:name="Grid Table 5 Dark Accent 3" w:uiPriority="50"/><w:lsdException w:name="Grid Table 6 Colorful Accent 3" w:uiPriority="51"/><w:lsdException w:name="Grid Table 7 Colorful Accent 3" w:uiPriority="52"/><w:lsdException w:name="Grid Table 1 Light Accent 4" w:uiPriority="46"/><w:lsdException w:name="Grid Table 2 Accent 4" w:uiPriority="47"/><w:lsdException w:name="Grid Table 3 Accent 4" w:uiPriority="48"/><w:lsdException w:name="Grid Table 4 Accent 4" w:uiPriority="49"/><w:lsdException w:name="Grid Table 5 Dark Accent 4" w:uiPriority="50"/><w:lsdException w:name="Grid Table 6 Colorful Accent 4" w:uiPriority="51"/><w:lsdException w:name="Grid Table 7 Colorful Accent 4" w:uiPriority="52"/><w:lsdException w:name="Grid Table 1 Light Accent 5" w:uiPriority="46"/><w:lsdException w:name="Grid Table 2 Accent 5" w:uiPriority="47"/><w:lsdException w:name="Grid Table 3 Accent 5" w:uiPriority="48"/><w:lsdException w:name="Grid Table 4 Accent 5" w:uiPriority="49"/><w:lsdException w:name="Grid Table 5 Dark Accent 5" w:uiPriority="50"/><w:lsdException w:name="Grid Table 6 Colorful Accent 5" w:uiPriority="51"/><w:lsdException w:name="Grid Table 7 Colorful Accent 5" w:uiPriority="52"/><w:lsdException w:name="Grid Table 1 Light Accent 6" w:uiPriority="46"/><w:lsdException w:name="Grid Table 2 Accent 6" w:uiPriority="47"/><w:lsdException w:name="Grid Table 3 Accent 6" w:uiPriority="48"/><w:lsdException w:name="Grid Table 4 Accent 6" w:uiPriority="49"/><w:lsdException w:name="Grid Table 5 Dark Accent 6" w:uiPriority="50"/><w:lsdException w:name="Grid Table 6 Colorful Accent 6" w:uiPriority="51"/><w:lsdException w:name="Grid Table 7 Colorful Accent 6" w:uiPriority="52"/><w:lsdException w:name="List Table 1 Light" w:uiPriority="46"/><w:lsdException w:name="List Table 2" w:uiPriority="47"/><w:lsdException w:name="List Table 3" w:uiPriority="48"/><w:lsdException w:name="List Table 4" w:uiPriority="49"/><w:lsdException w:name="List Table 5 Dark" w:uiPriority="50"/><w:lsdException w:name="List Table 6 Colorful" w:uiPriority="51"/><w:lsdException w:name="List Table 7 Colorful" w:uiPriority="52"/><w:lsdException w:name="List Table 1 Light Accent 1" w:uiPriority="46"/><w:lsdException w:name="List Table 2 Accent 1" w:uiPriority="47"/><w:lsdException w:name="List Table 3 Accent 1" w:uiPriority="48"/><w:lsdException w:name="List Table 4 Accent 1" w:uiPriority="49"/><w:lsdException w:name="List Table 5 Dark Accent 1" w:uiPriority="50"/><w:lsdException w:name="List Table 6 Colorful Accent 1" w:uiPriority="51"/><w:lsdException w:name="List Table 7 Colorful Accent 1" w:uiPriority="52"/><w:lsdException w:name="List Table 1 Light Accent 2" w:uiPriority="46"/><w:lsdException w:name="List Table 2 Accent 2" w:uiPriority="47"/><w:lsdException w:name="List Table 3 Accent 2" w:uiPriority="48"/><w:lsdException w:name="List Table 4 Accent 2" w:uiPriority="49"/><w:lsdException w:name="List Table 5 Dark Accent 2" w:uiPriority="50"/><w:lsdException w:name="List Table 6 Colorful Accent 2" w:uiPriority="51"/><w:lsdException w:name="List Table 7 Colorful Accent 2" w:uiPriority="52"/><w:lsdException w:name="List Table 1 Light Accent 3" w:uiPriority="46"/><w:lsdException w:name="List Table 2 Accent 3" w:uiPriority="47"/><w:lsdException w:name="List Table 3 Accent 3" w:uiPriority="48"/><w:lsdException w:name="List Table 4 Accent 3" w:uiPriority="49"/><w:lsdException w:name="List Table 5 Dark Accent 3" w:uiPriority="50"/><w:lsdException w:name="List Table 6 Colorful Accent 3" w:uiPriority="51"/><w:lsdException w:name="List Table 7 Colorful Accent 3" w:uiPriority="52"/><w:lsdException w:name="List Table 1 Light Accent 4" w:uiPriority="46"/><w:lsdException w:name="List Table 2 Accent 4" w:uiPriority="47"/><w:lsdException w:name="List Table 3 Accent 4" w:uiPriority="48"/><w:lsdException w:name="List Table 4 Accent 4" w:uiPriority="49"/><w:lsdException w:name="List Table 5 Dark Accent 4" w:uiPriority="50"/><w:lsdException w:name="List Table 6 Colorful Accent 4" w:uiPriority="51"/><w:lsdException w:name="List Table 7 Colorful Accent 4" w:uiPriority="52"/><w:lsdException w:name="List Table 1 Light Accent 5" w:uiPriority="46"/><w:lsdException w:name="List Table 2 Accent 5" w:uiPriority="47"/><w:lsdException w:name="List Table 3 Accent 5" w:uiPriority="48"/><w:lsdException w:name="List Table 4 Accent 5" w:uiPriority="49"/><w:lsdException w:name="List Table 5 Dark Accent 5" w:uiPriority="50"/><w:lsdException w:name="List Table 6 Colorful Accent 5" w:uiPriority="51"/><w:lsdException w:name="List Table 7 Colorful Accent 5" w:uiPriority="52"/><w:lsdException w:name="List Table 1 Light Accent 6" w:uiPriority="46"/><w:lsdException w:name="List Table 2 Accent 6" w:uiPriority="47"/><w:lsdException w:name="List Table 3 Accent 6" w:uiPriority="48"/><w:lsdException w:name="List Table 4 Accent 6" w:uiPriority="49"/><w:lsdException w:name="List Table 5 Dark Accent 6" w:uiPriority="50"/><w:lsdException w:name="List Table 6 Colorful Accent 6" w:uiPriority="51"/><w:lsdException w:name="List Table 7 Colorful Accent 6" w:uiPriority="52"/><w:lsdException w:name="Mention" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Smart Hyperlink" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Hashtag" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Unresolved Mention" w:semiHidden="1" w:unhideWhenUsed="1"/><w:lsdException w:name="Smart Link" w:semiHidden="1" w:unhideWhenUsed="1"/></w:latentStyles><w:style w:type="paragraph" w:default="1" w:styleId="Normal"><w:name w:val="Normal"/><w:qFormat/></w:style><w:style w:type="character" w:default="1" w:styleId="DefaultParagraphFont"><w:name w:val="Default Paragraph Font"/><w:uiPriority w:val="1"/><w:semiHidden/><w:unhideWhenUsed/></w:style><w:style w:type="table" w:default="1" w:styleId="TableNormal"><w:name w:val="Normal Table"/><w:uiPriority w:val="99"/><w:semiHidden/><w:unhideWhenUsed/><w:tblPr><w:tblInd w:w="0" w:type="dxa"/><w:tblCellMar><w:top w:w="0" w:type="dxa"/><w:left w:w="108" w:type="dxa"/><w:bottom w:w="0" w:type="dxa"/><w:right w:w="108" w:type="dxa"/></w:tblCellMar></w:tblPr></w:style><w:style w:type="numbering" w:default="1" w:styleId="NoList"><w:name w:val="No List"/><w:uiPriority w:val="99"/><w:semiHidden/><w:unhideWhenUsed/></w:style></w:styles> \ No newline at end of file
diff --git a/extract/test/twotables_2.pdf.mutool.docx.dir.ref/word/theme/theme1.xml b/extract/test/twotables_2.pdf.mutool.docx.dir.ref/word/theme/theme1.xml
new file mode 100644
index 00000000..d1a502f8
--- /dev/null
+++ b/extract/test/twotables_2.pdf.mutool.docx.dir.ref/word/theme/theme1.xml
@@ -0,0 +1,2 @@
+<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
+<a:theme xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main" name="Office Theme"><a:themeElements><a:clrScheme name="Office"><a:dk1><a:sysClr val="windowText" lastClr="000000"/></a:dk1><a:lt1><a:sysClr val="window" lastClr="FFFFFF"/></a:lt1><a:dk2><a:srgbClr val="44546A"/></a:dk2><a:lt2><a:srgbClr val="E7E6E6"/></a:lt2><a:accent1><a:srgbClr val="4472C4"/></a:accent1><a:accent2><a:srgbClr val="ED7D31"/></a:accent2><a:accent3><a:srgbClr val="A5A5A5"/></a:accent3><a:accent4><a:srgbClr val="FFC000"/></a:accent4><a:accent5><a:srgbClr val="5B9BD5"/></a:accent5><a:accent6><a:srgbClr val="70AD47"/></a:accent6><a:hlink><a:srgbClr val="0563C1"/></a:hlink><a:folHlink><a:srgbClr val="954F72"/></a:folHlink></a:clrScheme><a:fontScheme name="Office"><a:majorFont><a:latin typeface="Calibri Light" panose="020F0302020204030204"/><a:ea typeface=""/><a:cs typeface=""/><a:font script="Jpan" typeface="游ゴシック Light"/><a:font script="Hang" typeface="맑은 고딕"/><a:font script="Hans" typeface="等线 Light"/><a:font script="Hant" typeface="新細明體"/><a:font script="Arab" typeface="Times New Roman"/><a:font script="Hebr" typeface="Times New Roman"/><a:font script="Thai" typeface="Angsana New"/><a:font script="Ethi" typeface="Nyala"/><a:font script="Beng" typeface="Vrinda"/><a:font script="Gujr" typeface="Shruti"/><a:font script="Khmr" typeface="MoolBoran"/><a:font script="Knda" typeface="Tunga"/><a:font script="Guru" typeface="Raavi"/><a:font script="Cans" typeface="Euphemia"/><a:font script="Cher" typeface="Plantagenet Cherokee"/><a:font script="Yiii" typeface="Microsoft Yi Baiti"/><a:font script="Tibt" typeface="Microsoft Himalaya"/><a:font script="Thaa" typeface="MV Boli"/><a:font script="Deva" typeface="Mangal"/><a:font script="Telu" typeface="Gautami"/><a:font script="Taml" typeface="Latha"/><a:font script="Syrc" typeface="Estrangelo Edessa"/><a:font script="Orya" typeface="Kalinga"/><a:font script="Mlym" typeface="Kartika"/><a:font script="Laoo" typeface="DokChampa"/><a:font script="Sinh" typeface="Iskoola Pota"/><a:font script="Mong" typeface="Mongolian Baiti"/><a:font script="Viet" typeface="Times New Roman"/><a:font script="Uigh" typeface="Microsoft Uighur"/><a:font script="Geor" typeface="Sylfaen"/><a:font script="Armn" typeface="Arial"/><a:font script="Bugi" typeface="Leelawadee UI"/><a:font script="Bopo" typeface="Microsoft JhengHei"/><a:font script="Java" typeface="Javanese Text"/><a:font script="Lisu" typeface="Segoe UI"/><a:font script="Mymr" typeface="Myanmar Text"/><a:font script="Nkoo" typeface="Ebrima"/><a:font script="Olck" typeface="Nirmala UI"/><a:font script="Osma" typeface="Ebrima"/><a:font script="Phag" typeface="Phagspa"/><a:font script="Syrn" typeface="Estrangelo Edessa"/><a:font script="Syrj" typeface="Estrangelo Edessa"/><a:font script="Syre" typeface="Estrangelo Edessa"/><a:font script="Sora" typeface="Nirmala UI"/><a:font script="Tale" typeface="Microsoft Tai Le"/><a:font script="Talu" typeface="Microsoft New Tai Lue"/><a:font script="Tfng" typeface="Ebrima"/></a:majorFont><a:minorFont><a:latin typeface="Calibri" panose="020F0502020204030204"/><a:ea typeface=""/><a:cs typeface=""/><a:font script="Jpan" typeface="游明朝"/><a:font script="Hang" typeface="맑은 고딕"/><a:font script="Hans" typeface="等线"/><a:font script="Hant" typeface="新細明體"/><a:font script="Arab" typeface="Arial"/><a:font script="Hebr" typeface="Arial"/><a:font script="Thai" typeface="Cordia New"/><a:font script="Ethi" typeface="Nyala"/><a:font script="Beng" typeface="Vrinda"/><a:font script="Gujr" typeface="Shruti"/><a:font script="Khmr" typeface="DaunPenh"/><a:font script="Knda" typeface="Tunga"/><a:font script="Guru" typeface="Raavi"/><a:font script="Cans" typeface="Euphemia"/><a:font script="Cher" typeface="Plantagenet Cherokee"/><a:font script="Yiii" typeface="Microsoft Yi Baiti"/><a:font script="Tibt" typeface="Microsoft Himalaya"/><a:font script="Thaa" typeface="MV Boli"/><a:font script="Deva" typeface="Mangal"/><a:font script="Telu" typeface="Gautami"/><a:font script="Taml" typeface="Latha"/><a:font script="Syrc" typeface="Estrangelo Edessa"/><a:font script="Orya" typeface="Kalinga"/><a:font script="Mlym" typeface="Kartika"/><a:font script="Laoo" typeface="DokChampa"/><a:font script="Sinh" typeface="Iskoola Pota"/><a:font script="Mong" typeface="Mongolian Baiti"/><a:font script="Viet" typeface="Arial"/><a:font script="Uigh" typeface="Microsoft Uighur"/><a:font script="Geor" typeface="Sylfaen"/><a:font script="Armn" typeface="Arial"/><a:font script="Bugi" typeface="Leelawadee UI"/><a:font script="Bopo" typeface="Microsoft JhengHei"/><a:font script="Java" typeface="Javanese Text"/><a:font script="Lisu" typeface="Segoe UI"/><a:font script="Mymr" typeface="Myanmar Text"/><a:font script="Nkoo" typeface="Ebrima"/><a:font script="Olck" typeface="Nirmala UI"/><a:font script="Osma" typeface="Ebrima"/><a:font script="Phag" typeface="Phagspa"/><a:font script="Syrn" typeface="Estrangelo Edessa"/><a:font script="Syrj" typeface="Estrangelo Edessa"/><a:font script="Syre" typeface="Estrangelo Edessa"/><a:font script="Sora" typeface="Nirmala UI"/><a:font script="Tale" typeface="Microsoft Tai Le"/><a:font script="Talu" typeface="Microsoft New Tai Lue"/><a:font script="Tfng" typeface="Ebrima"/></a:minorFont></a:fontScheme><a:fmtScheme name="Office"><a:fillStyleLst><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:gradFill rotWithShape="1"><a:gsLst><a:gs pos="0"><a:schemeClr val="phClr"><a:lumMod val="110000"/><a:satMod val="105000"/><a:tint val="67000"/></a:schemeClr></a:gs><a:gs pos="50000"><a:schemeClr val="phClr"><a:lumMod val="105000"/><a:satMod val="103000"/><a:tint val="73000"/></a:schemeClr></a:gs><a:gs pos="100000"><a:schemeClr val="phClr"><a:lumMod val="105000"/><a:satMod val="109000"/><a:tint val="81000"/></a:schemeClr></a:gs></a:gsLst><a:lin ang="5400000" scaled="0"/></a:gradFill><a:gradFill rotWithShape="1"><a:gsLst><a:gs pos="0"><a:schemeClr val="phClr"><a:satMod val="103000"/><a:lumMod val="102000"/><a:tint val="94000"/></a:schemeClr></a:gs><a:gs pos="50000"><a:schemeClr val="phClr"><a:satMod val="110000"/><a:lumMod val="100000"/><a:shade val="100000"/></a:schemeClr></a:gs><a:gs pos="100000"><a:schemeClr val="phClr"><a:lumMod val="99000"/><a:satMod val="120000"/><a:shade val="78000"/></a:schemeClr></a:gs></a:gsLst><a:lin ang="5400000" scaled="0"/></a:gradFill></a:fillStyleLst><a:lnStyleLst><a:ln w="6350" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:prstDash val="solid"/><a:miter lim="800000"/></a:ln><a:ln w="12700" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:prstDash val="solid"/><a:miter lim="800000"/></a:ln><a:ln w="19050" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:prstDash val="solid"/><a:miter lim="800000"/></a:ln></a:lnStyleLst><a:effectStyleLst><a:effectStyle><a:effectLst/></a:effectStyle><a:effectStyle><a:effectLst/></a:effectStyle><a:effectStyle><a:effectLst><a:outerShdw blurRad="57150" dist="19050" dir="5400000" algn="ctr" rotWithShape="0"><a:srgbClr val="000000"><a:alpha val="63000"/></a:srgbClr></a:outerShdw></a:effectLst></a:effectStyle></a:effectStyleLst><a:bgFillStyleLst><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:solidFill><a:schemeClr val="phClr"><a:tint val="95000"/><a:satMod val="170000"/></a:schemeClr></a:solidFill><a:gradFill rotWithShape="1"><a:gsLst><a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="93000"/><a:satMod val="150000"/><a:shade val="98000"/><a:lumMod val="102000"/></a:schemeClr></a:gs><a:gs pos="50000"><a:schemeClr val="phClr"><a:tint val="98000"/><a:satMod val="130000"/><a:shade val="90000"/><a:lumMod val="103000"/></a:schemeClr></a:gs><a:gs pos="100000"><a:schemeClr val="phClr"><a:shade val="63000"/><a:satMod val="120000"/></a:schemeClr></a:gs></a:gsLst><a:lin ang="5400000" scaled="0"/></a:gradFill></a:bgFillStyleLst></a:fmtScheme></a:themeElements><a:objectDefaults/><a:extraClrSchemeLst/><a:extLst><a:ext uri="{05A4C25C-085E-4340-85A3-A5531E510DB2}"><thm15:themeFamily xmlns:thm15="http://schemas.microsoft.com/office/thememl/2012/main" name="Office Theme" id="{62F939B6-93AF-4DB8-9C6B-D6C7DFDC589F}" vid="{4A3C46E8-61CC-4603-A589-7422A47A8E4A}"/></a:ext></a:extLst></a:theme> \ No newline at end of file
diff --git a/extract/test/twotables_2.pdf.mutool.docx.dir.ref/word/webSettings.xml b/extract/test/twotables_2.pdf.mutool.docx.dir.ref/word/webSettings.xml
new file mode 100644
index 00000000..629ae06a
--- /dev/null
+++ b/extract/test/twotables_2.pdf.mutool.docx.dir.ref/word/webSettings.xml
@@ -0,0 +1,2 @@
+<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
+<w:webSettings xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships" xmlns:w="http://schemas.openxmlformats.org/wordprocessingml/2006/main" xmlns:w14="http://schemas.microsoft.com/office/word/2010/wordml" xmlns:w15="http://schemas.microsoft.com/office/word/2012/wordml" xmlns:w16cex="http://schemas.microsoft.com/office/word/2018/wordml/cex" xmlns:w16cid="http://schemas.microsoft.com/office/word/2016/wordml/cid" xmlns:w16="http://schemas.microsoft.com/office/word/2018/wordml" xmlns:w16se="http://schemas.microsoft.com/office/word/2015/wordml/symex" mc:Ignorable="w14 w15 w16se w16cid w16 w16cex"><w:optimizeForBrowser/><w:allowPNG/></w:webSettings> \ No newline at end of file
diff --git a/extract/test/twotables_2.pdf.mutool.html.ref b/extract/test/twotables_2.pdf.mutool.html.ref
new file mode 100644
index 00000000..84d1e69d
--- /dev/null
+++ b/extract/test/twotables_2.pdf.mutool.html.ref
@@ -0,0 +1,101 @@
+<html>
+<body>
+
+
+<p><b>Table 6 : DISTRIBUTION (%) OF HOUSEHOLDS BY LITERACY STATUS OF MALE HEAD OF THE HOUSEHOLD
+</p></b>
+
+<table border="1" style="border-collapse:collapse">
+ <tr>
+ <td></td><td rowspan="2"><p><b>n </p></b></td><td colspan="6"><p><b>Literacy Status </p></b></td>
+ </tr>
+ <tr>
+ <td><p><b>State</p></b></td><td><p><b>Illiterate</p></b></td><td><p><b>Read &amp; Write</p></b></td><td><p><b>1-4 std.</p></b></td><td><p><b>5-8 std.</p></b></td><td><p><b>9-12 std.</p></b></td><td><p><b>College</p></b></td>
+ </tr>
+ <tr>
+ <td><p>Kerala</p></td><td><p>2400</p></td><td><p>7.2</p></td><td><p>0.5</p></td><td><p>25.3</p></td><td><p>20.1</p></td><td><p>41.5</p></td><td><p>5.5</p></td>
+ </tr>
+ <tr>
+ <td><p>Tamil Nadu</p></td><td><p>2400</p></td><td><p>21.4</p></td><td><p>2.3</p></td><td><p>8.8</p></td><td><p>35.5</p></td><td><p>25.8</p></td><td><p>6.2</p></td>
+ </tr>
+ <tr>
+ <td><p>Karnataka</p></td><td><p>2399</p></td><td><p>37.4</p></td><td><p>2.8</p></td><td><p>12.5</p></td><td><p>18.3</p></td><td><p>23.1</p></td><td><p>5.8</p></td>
+ </tr>
+ <tr>
+ <td><p>Andhra Pradesh</p></td><td><p>2400</p></td><td><p>54.0</p></td><td><p>1.7</p></td><td><p>8.4</p></td><td><p>13.2</p></td><td><p>18.8</p></td><td><p>3.9</p></td>
+ </tr>
+ <tr>
+ <td><p>Maharashtra</p></td><td><p>2400</p></td><td><p>22.0</p></td><td><p>0.9</p></td><td><p>17.3</p></td><td><p>20.3</p></td><td><p>32.6</p></td><td><p>7.0</p></td>
+ </tr>
+ <tr>
+ <td><p>Gujarat</p></td><td><p>2390</p></td><td><p>28.6</p></td><td><p>0.1</p></td><td><p>14.4</p></td><td><p>23.1</p></td><td><p>26.9</p></td><td><p>6.8</p></td>
+ </tr>
+ <tr>
+ <td><p>Madhya Pradesh</p></td><td><p>2402</p></td><td><p>29.1</p></td><td><p>3.4</p></td><td><p>8.5</p></td><td><p>35.1</p></td><td><p>13.3</p></td><td><p>10.6</p></td>
+ </tr>
+ <tr>
+ <td><p>Orissa</p></td><td><p>2405</p></td><td><p>33.2</p></td><td><p>1.0</p></td><td><p>10.4</p></td><td><p>25.7</p></td><td><p>21.2</p></td><td><p>8.5</p></td>
+ </tr>
+ <tr>
+ <td><p>West Bengal</p></td><td><p>2293</p></td><td><p>41.7</p></td><td><p>4.4</p></td><td><p>13.2</p></td><td><p>17.1</p></td><td><p>21.2</p></td><td><p>2.4</p></td>
+ </tr>
+ <tr>
+ <td><p>Uttar Pradesh</p></td><td><p>2400</p></td><td><p>35.3</p></td><td><p>2.1</p></td><td><p>4.5</p></td><td><p>23.3</p></td><td><p>27.1</p></td><td><p>7.6</p></td>
+ </tr>
+ <tr>
+ <td><p><b>Pooled</p></b></td><td><p><b>23889</p></b></td><td><p><b>30.9</p></b></td><td><p><b>1.9</p></b></td><td><p><b>12.3</p></b></td><td><p><b>23.2</p></b></td><td><p><b>25.2</p></b></td><td><p><b>6.4</p></b></td>
+ </tr>
+</table>
+
+
+
+<p><b>Table 7 : DISTRIBUTION (%) OF HOUSEHOLDS BY LITERACY STATUS OF ADULT WOMEN
+</p></b>
+
+<table border="1" style="border-collapse:collapse">
+ <tr>
+ <td></td><td rowspan="2"><p><b>n</p></b></td><td colspan="6"><p><b>Literacy Status</p></b></td>
+ </tr>
+ <tr>
+ <td><p><b>State</p></b></td><td><p><b>Illiterate</p></b></td><td><p><b>Read &amp; Write</p></b></td><td><p><b>1-4 std.</p></b></td><td><p><b>5-8 std.</p></b></td><td><p><b>9-12 std.</p></b></td><td><p><b>College</p></b></td>
+ </tr>
+ <tr>
+ <td><p>Kerala</p></td><td><p>2400</p></td><td><p>8.8</p></td><td><p>0.3</p></td><td><p>20.1</p></td><td><p>17.0</p></td><td><p>45.6</p></td><td><p>8.2</p></td>
+ </tr>
+ <tr>
+ <td><p>Tamil Nadu</p></td><td><p>2400</p></td><td><p>29.9</p></td><td><p>1.5</p></td><td><p>8.5</p></td><td><p>33.1</p></td><td><p>22.3</p></td><td><p>4.8</p></td>
+ </tr>
+ <tr>
+ <td><p>Karnataka</p></td><td><p>2399</p></td><td><p>47.9</p></td><td><p>2.5</p></td><td><p>10.2</p></td><td><p>18.8</p></td><td><p>18.4</p></td><td><p>2.3</p></td>
+ </tr>
+ <tr>
+ <td><p>Andhra Pradesh</p></td><td><p>2400</p></td><td><p>66.4</p></td><td><p>0.7</p></td><td><p>6.8</p></td><td><p>12.9</p></td><td><p>11.4</p></td><td><p>1.8</p></td>
+ </tr>
+ <tr>
+ <td><p>Maharashtra</p></td><td><p>2400</p></td><td><p>41.3</p></td><td><p>0.6</p></td><td><p>14.1</p></td><td><p>20.1</p></td><td><p>21.6</p></td><td><p>2.2</p></td>
+ </tr>
+ <tr>
+ <td><p>Gujarat</p></td><td><p>2390</p></td><td><p>57.6</p></td><td><p>0.1</p></td><td><p>10.3</p></td><td><p>16.5</p></td><td><p>12.9</p></td><td><p>2.7</p></td>
+ </tr>
+ <tr>
+ <td><p>Madhya Pradesh</p></td><td><p>2402</p></td><td><p>58.7</p></td><td><p>2.2</p></td><td><p>6.6</p></td><td><p>24.1</p></td><td><p>5.3</p></td><td><p>3.0</p></td>
+ </tr>
+ <tr>
+ <td><p>Orissa</p></td><td><p>2405</p></td><td><p>50.0</p></td><td><p>0.9</p></td><td><p>8.1</p></td><td><p>21.9</p></td><td><p>15.1</p></td><td><p>4.0</p></td>
+ </tr>
+ <tr>
+ <td><p>West Bengal</p></td><td><p>2293</p></td><td><p>49.1</p></td><td><p>4.8</p></td><td><p>11.2</p></td><td><p>16.8</p></td><td><p>17.1</p></td><td><p>1.1</p></td>
+ </tr>
+ <tr>
+ <td><p>Uttar Pradesh</p></td><td><p>2400</p></td><td><p>67.3</p></td><td><p>2.0</p></td><td><p>3.1</p></td><td><p>17.2</p></td><td><p>7.7</p></td><td><p>2.7</p></td>
+ </tr>
+ <tr>
+ <td><p><b>Pooled</p></b></td><td><p><b>23889</p></b></td><td><p><b>47.7</p></b></td><td><p><b>1.5</p></b></td><td><p><b>9.9</p></b></td><td><p><b>19.9</p></b></td><td><p><b>17.8</p></b></td><td><p><b>3.3</p></b></td>
+ </tr>
+</table>
+
+
+
+<p>NNMB 75 Rural-Third Repeat Survey 2011-12
+</p></body>
+</html>
diff --git a/extract/test/twotables_2.pdf.mutool.odt.dir.ref/META-INF/manifest.xml b/extract/test/twotables_2.pdf.mutool.odt.dir.ref/META-INF/manifest.xml
new file mode 100644
index 00000000..ec991d79
--- /dev/null
+++ b/extract/test/twotables_2.pdf.mutool.odt.dir.ref/META-INF/manifest.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<manifest:manifest xmlns:manifest="urn:oasis:names:tc:opendocument:xmlns:manifest:1.0" manifest:version="1.3" xmlns:loext="urn:org:documentfoundation:names:experimental:office:xmlns:loext:1.0">
+ <manifest:file-entry manifest:full-path="/" manifest:version="1.3" manifest:media-type="application/vnd.oasis.opendocument.text"/>
+ <manifest:file-entry manifest:full-path="meta.xml" manifest:media-type="text/xml"/>
+ <manifest:file-entry manifest:full-path="settings.xml" manifest:media-type="text/xml"/>
+ <manifest:file-entry manifest:full-path="Configurations2/" manifest:media-type="application/vnd.sun.xml.ui.configuration"/>
+ <manifest:file-entry manifest:full-path="manifest.rdf" manifest:media-type="application/rdf+xml"/>
+ <manifest:file-entry manifest:full-path="styles.xml" manifest:media-type="text/xml"/>
+ <manifest:file-entry manifest:full-path="content.xml" manifest:media-type="text/xml"/>
+ <manifest:file-entry manifest:full-path="Thumbnails/thumbnail.png" manifest:media-type="image/png"/>
+</manifest:manifest> \ No newline at end of file
diff --git a/extract/test/twotables_2.pdf.mutool.odt.dir.ref/Thumbnails/thumbnail.png b/extract/test/twotables_2.pdf.mutool.odt.dir.ref/Thumbnails/thumbnail.png
new file mode 100644
index 00000000..0dd1608e
--- /dev/null
+++ b/extract/test/twotables_2.pdf.mutool.odt.dir.ref/Thumbnails/thumbnail.png
@@ -0,0 +1,2 @@
+PNG
+
diff --git a/extract/test/twotables_2.pdf.mutool.odt.dir.ref/content.xml b/extract/test/twotables_2.pdf.mutool.odt.dir.ref/content.xml
new file mode 100644
index 00000000..0e125ec7
--- /dev/null
+++ b/extract/test/twotables_2.pdf.mutool.odt.dir.ref/content.xml
@@ -0,0 +1,1084 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<office:document-content xmlns:css3t="http://www.w3.org/TR/css3-text/" xmlns:grddl="http://www.w3.org/2003/g/data-view#" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xforms="http://www.w3.org/2002/xforms" xmlns:dom="http://www.w3.org/2001/xml-events" xmlns:script="urn:oasis:names:tc:opendocument:xmlns:script:1.0" xmlns:form="urn:oasis:names:tc:opendocument:xmlns:form:1.0" xmlns:math="http://www.w3.org/1998/Math/MathML" xmlns:number="urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0" xmlns:field="urn:openoffice:names:experimental:ooo-ms-interop:xmlns:field:1.0" xmlns:meta="urn:oasis:names:tc:opendocument:xmlns:meta:1.0" xmlns:loext="urn:org:documentfoundation:names:experimental:office:xmlns:loext:1.0" xmlns:officeooo="http://openoffice.org/2009/office" xmlns:table="urn:oasis:names:tc:opendocument:xmlns:table:1.0" xmlns:chart="urn:oasis:names:tc:opendocument:xmlns:chart:1.0" xmlns:tableooo="http://openoffice.org/2009/table" xmlns:draw="urn:oasis:names:tc:opendocument:xmlns:drawing:1.0" xmlns:rpt="http://openoffice.org/2005/report" xmlns:dr3d="urn:oasis:names:tc:opendocument:xmlns:dr3d:1.0" xmlns:of="urn:oasis:names:tc:opendocument:xmlns:of:1.2" xmlns:text="urn:oasis:names:tc:opendocument:xmlns:text:1.0" xmlns:style="urn:oasis:names:tc:opendocument:xmlns:style:1.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:calcext="urn:org:documentfoundation:names:experimental:calc:xmlns:calcext:1.0" xmlns:oooc="http://openoffice.org/2004/calc" xmlns:drawooo="http://openoffice.org/2010/draw" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:ooo="http://openoffice.org/2004/office" xmlns:ooow="http://openoffice.org/2004/writer" xmlns:fo="urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0" xmlns:formx="urn:openoffice:names:experimental:ooxml-odf-interop:xmlns:form:1.0" xmlns:svg="urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0" xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" office:version="1.3"><office:scripts/><office:font-face-decls><style:font-face style:name="Liberation Serif" svg:font-family="&apos;Liberation Serif&apos;" style:font-family-generic="roman" style:font-pitch="variable"/><style:font-face style:name="Liberation Sans" svg:font-family="&apos;Liberation Sans&apos;" style:font-family-generic="swiss" style:font-pitch="variable"/><style:font-face style:name="Unifont" svg:font-family="Unifont" style:font-family-generic="system" style:font-pitch="variable"/></office:font-face-decls><office:automatic-styles><style:style style:name="T12" style:family="text"><style:text-properties style:font-name="Helvetica-Bold" fo:font-size="11.28pt" fo:font-weight="bold" fo:font-style="normal" /></style:style><style:style style:name="T11" style:family="text"><style:text-properties style:font-name="Helvetica-Bold" fo:font-size="10.35pt" fo:font-weight="bold" fo:font-style="normal" /></style:style><style:style style:name="T13" style:family="text"><style:text-properties style:font-name="Helvetica" fo:font-size="10.35pt" fo:font-weight="normal" fo:font-style="normal" /></style:style><style:style style:name="T14" style:family="text"><style:text-properties style:font-name="Helvetica" fo:font-size="9.42pt" fo:font-weight="normal" fo:font-style="normal" /></style:style><style:style style:name="gr1" style:family="graphic">
+<style:graphic-properties draw:stroke="none" svg:stroke-color="#000000" draw:fill="none" draw:fill-color="#ffffff" fo:min-height="1.9898in" style:run-through="foreground" style:wrap="run-through" style:number-wrapped-paragraphs="no-limit" style:vertical-pos="from-top" style:vertical-rel="paragraph" style:horizontal-pos="from-left" style:horizontal-rel="paragraph" />
+<style:paragraph-properties style:writing-mode="lr-tb"/>
+</style:style>
+<style:style style:name="fr1" style:family="graphic" style:parent-style-name="Graphics">
+<style:graphic-properties fo:margin-left="0in" fo:margin-right="0in" fo:margin-top="0in" fo:margin-bottom="0in" style:vertical-pos="top" style:vertical-rel="baseline" fo:background-color="transparent" draw:fill="none" draw:fill-color="#ffffff" fo:padding="0in" fo:border="none" style:mirror="none" fo:clip="rect(0in, 0in, 0in, 0in)" draw:luminance="0%" draw:contrast="0%" draw:red="0%" draw:green="0%" draw:blue="0%" draw:gamma="100%" draw:color-inversion="false" draw:image-opacity="100%" draw:color-mode="standard"/>
+</style:style>
+</office:automatic-styles>
+<style:style style:name="extract.table" style:family="table"/>
+<style:style style:name="extract.table.column" style:family="table-column"/>
+<office:body><office:text><text:sequence-decls><text:sequence-decl text:display-outline-level="0" text:name="Illustration"/><text:sequence-decl text:display-outline-level="0" text:name="Table"/><text:sequence-decl text:display-outline-level="0" text:name="Text"/><text:sequence-decl text:display-outline-level="0" text:name="Drawing"/><text:sequence-decl text:display-outline-level="0" text:name="Figure"/></text:sequence-decls><text:p text:style-name="Standard"/>
+
+<text:p><text:span text:style-name="T11">Table 6 : DISTRIBUTION (%) OF HOUSEHOLDS BY LITERACY STATUS OF MALE HEAD OF THE HOUSEHOLD </text:span></text:p>
+ <table:table text:style-name="extract.table" table:name="extract.table.1">
+ <table:table-columns>
+ <table:table-column table:style-name="extract.table.column"/>
+ <table:table-column table:style-name="extract.table.column"/>
+ <table:table-column table:style-name="extract.table.column"/>
+ <table:table-column table:style-name="extract.table.column"/>
+ <table:table-column table:style-name="extract.table.column"/>
+ <table:table-column table:style-name="extract.table.column"/>
+ <table:table-column table:style-name="extract.table.column"/>
+ <table:table-column table:style-name="extract.table.column"/>
+ </table:table-columns>
+ <table:table-row>
+ <table:table-cell>
+
+ </table:table-cell>
+ <table:table-cell table:number-rows-spanned="2">
+
+
+<text:p><text:span text:style-name="T12">n </text:span></text:p>
+ </table:table-cell>
+ <table:table-cell table:number-columns-spanned="6">
+
+
+<text:p><text:span text:style-name="T11">Literacy Status </text:span></text:p>
+ </table:table-cell>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ </table:table-row>
+ <table:table-row>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T11">State</text:span></text:p>
+ </table:table-cell>
+ <table:covered-table-cell/>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T11">Illiterate</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T11">Read &amp; Write</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T11">1-4 std.</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T11">5-8 std.</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T11">9-12 std.</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T11">College</text:span></text:p>
+ </table:table-cell>
+ </table:table-row>
+ <table:table-row>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">Kerala</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">2400</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">7.2</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">0.5</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">25.3</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">20.1</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">41.5</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">5.5</text:span></text:p>
+ </table:table-cell>
+ </table:table-row>
+ <table:table-row>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">Tamil Nadu</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">2400</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">21.4</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">2.3</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">8.8</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">35.5</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">25.8</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">6.2</text:span></text:p>
+ </table:table-cell>
+ </table:table-row>
+ <table:table-row>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">Karnataka</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">2399</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">37.4</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">2.8</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">12.5</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">18.3</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">23.1</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">5.8</text:span></text:p>
+ </table:table-cell>
+ </table:table-row>
+ <table:table-row>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">Andhra Pradesh</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">2400</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">54.0</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">1.7</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">8.4</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">13.2</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">18.8</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">3.9</text:span></text:p>
+ </table:table-cell>
+ </table:table-row>
+ <table:table-row>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">Maharashtra</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">2400</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">22.0</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">0.9</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">17.3</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">20.3</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">32.6</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">7.0</text:span></text:p>
+ </table:table-cell>
+ </table:table-row>
+ <table:table-row>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">Gujarat</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">2390</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">28.6</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">0.1</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">14.4</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">23.1</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">26.9</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">6.8</text:span></text:p>
+ </table:table-cell>
+ </table:table-row>
+ <table:table-row>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">Madhya Pradesh</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">2402</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">29.1</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">3.4</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">8.5</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">35.1</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">13.3</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">10.6</text:span></text:p>
+ </table:table-cell>
+ </table:table-row>
+ <table:table-row>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">Orissa</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">2405</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">33.2</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">1.0</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">10.4</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">25.7</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">21.2</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">8.5</text:span></text:p>
+ </table:table-cell>
+ </table:table-row>
+ <table:table-row>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">West Bengal</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">2293</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">41.7</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">4.4</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">13.2</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">17.1</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">21.2</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">2.4</text:span></text:p>
+ </table:table-cell>
+ </table:table-row>
+ <table:table-row>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">Uttar Pradesh</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">2400</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">35.3</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">2.1</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">4.5</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">23.3</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">27.1</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">7.6</text:span></text:p>
+ </table:table-cell>
+ </table:table-row>
+ <table:table-row>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T11">Pooled</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T11">23889</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T11">30.9</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T11">1.9</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T11">12.3</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T11">23.2</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T11">25.2</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T11">6.4</text:span></text:p>
+ </table:table-cell>
+ </table:table-row>
+ </table:table>
+
+
+<text:p><text:span text:style-name="T11">Table 7 : DISTRIBUTION (%) OF HOUSEHOLDS BY LITERACY STATUS OF ADULT WOMEN </text:span></text:p>
+ <table:table text:style-name="extract.table" table:name="extract.table.2">
+ <table:table-columns>
+ <table:table-column table:style-name="extract.table.column"/>
+ <table:table-column table:style-name="extract.table.column"/>
+ <table:table-column table:style-name="extract.table.column"/>
+ <table:table-column table:style-name="extract.table.column"/>
+ <table:table-column table:style-name="extract.table.column"/>
+ <table:table-column table:style-name="extract.table.column"/>
+ <table:table-column table:style-name="extract.table.column"/>
+ <table:table-column table:style-name="extract.table.column"/>
+ </table:table-columns>
+ <table:table-row>
+ <table:table-cell>
+
+ </table:table-cell>
+ <table:table-cell table:number-rows-spanned="2">
+
+
+<text:p><text:span text:style-name="T11">n</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell table:number-columns-spanned="6">
+
+
+<text:p><text:span text:style-name="T11">Literacy Status</text:span></text:p>
+ </table:table-cell>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ <table:covered-table-cell/>
+ </table:table-row>
+ <table:table-row>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T11">State</text:span></text:p>
+ </table:table-cell>
+ <table:covered-table-cell/>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T11">Illiterate</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T11">Read &amp; Write</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T11">1-4 std.</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T11">5-8 std.</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T11">9-12 std.</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T11">College</text:span></text:p>
+ </table:table-cell>
+ </table:table-row>
+ <table:table-row>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">Kerala</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">2400</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">8.8</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">0.3</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">20.1</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">17.0</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">45.6</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">8.2</text:span></text:p>
+ </table:table-cell>
+ </table:table-row>
+ <table:table-row>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">Tamil Nadu</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">2400</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">29.9</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">1.5</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">8.5</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">33.1</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">22.3</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">4.8</text:span></text:p>
+ </table:table-cell>
+ </table:table-row>
+ <table:table-row>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">Karnataka</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">2399</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">47.9</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">2.5</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">10.2</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">18.8</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">18.4</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">2.3</text:span></text:p>
+ </table:table-cell>
+ </table:table-row>
+ <table:table-row>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">Andhra Pradesh</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">2400</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">66.4</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">0.7</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">6.8</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">12.9</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">11.4</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">1.8</text:span></text:p>
+ </table:table-cell>
+ </table:table-row>
+ <table:table-row>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">Maharashtra</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">2400</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">41.3</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">0.6</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">14.1</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">20.1</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">21.6</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">2.2</text:span></text:p>
+ </table:table-cell>
+ </table:table-row>
+ <table:table-row>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">Gujarat</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">2390</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">57.6</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">0.1</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">10.3</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">16.5</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">12.9</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">2.7</text:span></text:p>
+ </table:table-cell>
+ </table:table-row>
+ <table:table-row>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">Madhya Pradesh</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">2402</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">58.7</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">2.2</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">6.6</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">24.1</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">5.3</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">3.0</text:span></text:p>
+ </table:table-cell>
+ </table:table-row>
+ <table:table-row>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">Orissa</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">2405</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">50.0</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">0.9</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">8.1</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">21.9</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">15.1</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">4.0</text:span></text:p>
+ </table:table-cell>
+ </table:table-row>
+ <table:table-row>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">West Bengal</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">2293</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">49.1</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">4.8</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">11.2</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">16.8</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">17.1</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">1.1</text:span></text:p>
+ </table:table-cell>
+ </table:table-row>
+ <table:table-row>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">Uttar Pradesh</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">2400</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">67.3</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">2.0</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">3.1</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">17.2</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">7.7</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T13">2.7</text:span></text:p>
+ </table:table-cell>
+ </table:table-row>
+ <table:table-row>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T11">Pooled</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T11">23889</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T11">47.7</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T11">1.5</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T11">9.9</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T11">19.9</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T11">17.8</text:span></text:p>
+ </table:table-cell>
+ <table:table-cell>
+
+
+<text:p><text:span text:style-name="T11">3.3</text:span></text:p>
+ </table:table-cell>
+ </table:table-row>
+ </table:table>
+
+
+<text:p><text:span text:style-name="T14">NNMB 75 Rural-Third Repeat Survey 2011-12 </text:span></text:p></office:text></office:body></office:document-content> \ No newline at end of file
diff --git a/extract/test/twotables_2.pdf.mutool.odt.dir.ref/manifest.rdf b/extract/test/twotables_2.pdf.mutool.odt.dir.ref/manifest.rdf
new file mode 100644
index 00000000..927e206b
--- /dev/null
+++ b/extract/test/twotables_2.pdf.mutool.odt.dir.ref/manifest.rdf
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="utf-8"?>
+<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
+ <rdf:Description rdf:about="styles.xml">
+ <rdf:type rdf:resource="http://docs.oasis-open.org/ns/office/1.2/meta/odf#StylesFile"/>
+ </rdf:Description>
+ <rdf:Description rdf:about="">
+ <ns0:hasPart xmlns:ns0="http://docs.oasis-open.org/ns/office/1.2/meta/pkg#" rdf:resource="styles.xml"/>
+ </rdf:Description>
+ <rdf:Description rdf:about="content.xml">
+ <rdf:type rdf:resource="http://docs.oasis-open.org/ns/office/1.2/meta/odf#ContentFile"/>
+ </rdf:Description>
+ <rdf:Description rdf:about="">
+ <ns0:hasPart xmlns:ns0="http://docs.oasis-open.org/ns/office/1.2/meta/pkg#" rdf:resource="content.xml"/>
+ </rdf:Description>
+ <rdf:Description rdf:about="">
+ <rdf:type rdf:resource="http://docs.oasis-open.org/ns/office/1.2/meta/pkg#Document"/>
+ </rdf:Description>
+</rdf:RDF>
diff --git a/extract/test/twotables_2.pdf.mutool.odt.dir.ref/meta.xml b/extract/test/twotables_2.pdf.mutool.odt.dir.ref/meta.xml
new file mode 100644
index 00000000..6b42561e
--- /dev/null
+++ b/extract/test/twotables_2.pdf.mutool.odt.dir.ref/meta.xml
@@ -0,0 +1,2 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<office:document-meta xmlns:grddl="http://www.w3.org/2003/g/data-view#" xmlns:meta="urn:oasis:names:tc:opendocument:xmlns:meta:1.0" xmlns:ooo="http://openoffice.org/2004/office" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" office:version="1.3"><office:meta><meta:creation-date>2021-04-05T17:06:57.937137058</meta:creation-date><meta:generator>LibreOffice/7.0.1.2$OpenBSD_X86_64 LibreOffice_project/00$Build-2</meta:generator><dc:date>2021-04-06T17:14:51.409959656</dc:date><meta:editing-duration>PT20S</meta:editing-duration><meta:editing-cycles>1</meta:editing-cycles><meta:document-statistic meta:table-count="0" meta:image-count="0" meta:object-count="0" meta:page-count="1" meta:paragraph-count="0" meta:word-count="0" meta:character-count="0" meta:non-whitespace-character-count="0"/></office:meta></office:document-meta> \ No newline at end of file
diff --git a/extract/test/twotables_2.pdf.mutool.odt.dir.ref/mimetype b/extract/test/twotables_2.pdf.mutool.odt.dir.ref/mimetype
new file mode 100644
index 00000000..2e95b81c
--- /dev/null
+++ b/extract/test/twotables_2.pdf.mutool.odt.dir.ref/mimetype
@@ -0,0 +1 @@
+application/vnd.oasis.opendocument.text \ No newline at end of file
diff --git a/extract/test/twotables_2.pdf.mutool.odt.dir.ref/settings.xml b/extract/test/twotables_2.pdf.mutool.odt.dir.ref/settings.xml
new file mode 100644
index 00000000..35a8138f
--- /dev/null
+++ b/extract/test/twotables_2.pdf.mutool.odt.dir.ref/settings.xml
@@ -0,0 +1,2 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<office:document-settings xmlns:config="urn:oasis:names:tc:opendocument:xmlns:config:1.0" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:ooo="http://openoffice.org/2004/office" xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" office:version="1.3"><office:settings><config:config-item-set config:name="ooo:view-settings"><config:config-item config:name="ViewAreaTop" config:type="long">0</config:config-item><config:config-item config:name="ViewAreaLeft" config:type="long">0</config:config-item><config:config-item config:name="ViewAreaWidth" config:type="long">26275</config:config-item><config:config-item config:name="ViewAreaHeight" config:type="long">19502</config:config-item><config:config-item config:name="ShowRedlineChanges" config:type="boolean">true</config:config-item><config:config-item config:name="InBrowseMode" config:type="boolean">false</config:config-item><config:config-item-map-indexed config:name="Views"><config:config-item-map-entry><config:config-item config:name="ViewId" config:type="string">view2</config:config-item><config:config-item config:name="ViewLeft" config:type="long">4343</config:config-item><config:config-item config:name="ViewTop" config:type="long">2501</config:config-item><config:config-item config:name="VisibleLeft" config:type="long">0</config:config-item><config:config-item config:name="VisibleTop" config:type="long">0</config:config-item><config:config-item config:name="VisibleRight" config:type="long">26273</config:config-item><config:config-item config:name="VisibleBottom" config:type="long">19500</config:config-item><config:config-item config:name="ZoomType" config:type="short">0</config:config-item><config:config-item config:name="ViewLayoutColumns" config:type="short">1</config:config-item><config:config-item config:name="ViewLayoutBookMode" config:type="boolean">false</config:config-item><config:config-item config:name="ZoomFactor" config:type="short">100</config:config-item><config:config-item config:name="IsSelectedFrame" config:type="boolean">false</config:config-item><config:config-item config:name="AnchoredTextOverflowLegacy" config:type="boolean">false</config:config-item></config:config-item-map-entry></config:config-item-map-indexed></config:config-item-set><config:config-item-set config:name="ooo:configuration-settings"><config:config-item config:name="PrintBlackFonts" config:type="boolean">false</config:config-item><config:config-item config:name="PrintReversed" config:type="boolean">false</config:config-item><config:config-item config:name="SaveThumbnail" config:type="boolean">true</config:config-item><config:config-item config:name="EmbedFonts" config:type="boolean">false</config:config-item><config:config-item config:name="PrintControls" config:type="boolean">true</config:config-item><config:config-item config:name="OutlineLevelYieldsNumbering" config:type="boolean">false</config:config-item><config:config-item config:name="PrintPageBackground" config:type="boolean">true</config:config-item><config:config-item config:name="PrintAnnotationMode" config:type="short">0</config:config-item><config:config-item config:name="PrintGraphics" config:type="boolean">true</config:config-item><config:config-item config:name="EmbeddedDatabaseName" config:type="string"/><config:config-item config:name="ProtectForm" config:type="boolean">false</config:config-item><config:config-item config:name="PrintLeftPages" config:type="boolean">true</config:config-item><config:config-item config:name="PrintProspect" config:type="boolean">false</config:config-item><config:config-item config:name="PrintHiddenText" config:type="boolean">false</config:config-item><config:config-item config:name="PrintRightPages" config:type="boolean">true</config:config-item><config:config-item config:name="PrintFaxName" config:type="string"/><config:config-item config:name="PrintPaperFromSetup" config:type="boolean">false</config:config-item><config:config-item config:name="TabsRelativeToIndent" config:type="boolean">true</config:config-item><config:config-item config:name="RedlineProtectionKey" config:type="base64Binary"/><config:config-item config:name="PrintTextPlaceholder" config:type="boolean">false</config:config-item><config:config-item config:name="MathBaselineAlignment" config:type="boolean">true</config:config-item><config:config-item config:name="ProtectBookmarks" config:type="boolean">false</config:config-item><config:config-item config:name="IgnoreTabsAndBlanksForLineCalculation" config:type="boolean">false</config:config-item><config:config-item config:name="ContinuousEndnotes" config:type="boolean">false</config:config-item><config:config-item config:name="FieldAutoUpdate" config:type="boolean">true</config:config-item><config:config-item config:name="EmptyDbFieldHidesPara" config:type="boolean">true</config:config-item><config:config-item config:name="ApplyParagraphMarkFormatToNumbering" config:type="boolean">false</config:config-item><config:config-item config:name="PrintEmptyPages" config:type="boolean">true</config:config-item><config:config-item config:name="TabOverMargin" config:type="boolean">false</config:config-item><config:config-item config:name="EmbedAsianScriptFonts" config:type="boolean">true</config:config-item><config:config-item config:name="EmbedLatinScriptFonts" config:type="boolean">true</config:config-item><config:config-item config:name="DisableOffPagePositioning" config:type="boolean">false</config:config-item><config:config-item config:name="EmbedOnlyUsedFonts" config:type="boolean">false</config:config-item><config:config-item config:name="MsWordCompMinLineHeightByFly" config:type="boolean">false</config:config-item><config:config-item config:name="SurroundTextWrapSmall" config:type="boolean">false</config:config-item><config:config-item config:name="BackgroundParaOverDrawings" config:type="boolean">false</config:config-item><config:config-item config:name="ClippedPictures" config:type="boolean">false</config:config-item><config:config-item config:name="FloattableNomargins" config:type="boolean">false</config:config-item><config:config-item config:name="UnbreakableNumberings" config:type="boolean">false</config:config-item><config:config-item config:name="EmbedSystemFonts" config:type="boolean">false</config:config-item><config:config-item config:name="TabOverflow" config:type="boolean">true</config:config-item><config:config-item config:name="PrintTables" config:type="boolean">true</config:config-item><config:config-item config:name="PrintDrawings" config:type="boolean">true</config:config-item><config:config-item config:name="ConsiderTextWrapOnObjPos" config:type="boolean">false</config:config-item><config:config-item config:name="PrintSingleJobs" config:type="boolean">false</config:config-item><config:config-item config:name="SmallCapsPercentage66" config:type="boolean">false</config:config-item><config:config-item config:name="CollapseEmptyCellPara" config:type="boolean">true</config:config-item><config:config-item config:name="HeaderSpacingBelowLastPara" config:type="boolean">false</config:config-item><config:config-item config:name="RsidRoot" config:type="int">2052946</config:config-item><config:config-item config:name="PrinterSetup" config:type="base64Binary"/><config:config-item config:name="CurrentDatabaseCommand" config:type="string"/><config:config-item config:name="AlignTabStopPosition" config:type="boolean">true</config:config-item><config:config-item config:name="ClipAsCharacterAnchoredWriterFlyFrames" config:type="boolean">false</config:config-item><config:config-item config:name="DoNotCaptureDrawObjsOnPage" config:type="boolean">false</config:config-item><config:config-item config:name="SaveGlobalDocumentLinks" config:type="boolean">false</config:config-item><config:config-item config:name="CurrentDatabaseCommandType" config:type="int">0</config:config-item><config:config-item config:name="LoadReadonly" config:type="boolean">false</config:config-item><config:config-item config:name="DoNotResetParaAttrsForNumFont" config:type="boolean">false</config:config-item><config:config-item config:name="StylesNoDefault" config:type="boolean">false</config:config-item><config:config-item config:name="LinkUpdateMode" config:type="short">1</config:config-item><config:config-item config:name="DoNotJustifyLinesWithManualBreak" config:type="boolean">false</config:config-item><config:config-item config:name="PropLineSpacingShrinksFirstLine" config:type="boolean">true</config:config-item><config:config-item config:name="TabAtLeftIndentForParagraphsInList" config:type="boolean">false</config:config-item><config:config-item config:name="ProtectFields" config:type="boolean">false</config:config-item><config:config-item config:name="UnxForceZeroExtLeading" config:type="boolean">false</config:config-item><config:config-item config:name="CurrentDatabaseDataSource" config:type="string"/><config:config-item config:name="UseFormerTextWrapping" config:type="boolean">false</config:config-item><config:config-item config:name="UseFormerLineSpacing" config:type="boolean">false</config:config-item><config:config-item config:name="AllowPrintJobCancel" config:type="boolean">true</config:config-item><config:config-item config:name="SubtractFlysAnchoredAtFlys" config:type="boolean">false</config:config-item><config:config-item config:name="AddParaSpacingToTableCells" config:type="boolean">true</config:config-item><config:config-item config:name="AddExternalLeading" config:type="boolean">true</config:config-item><config:config-item config:name="Rsid" config:type="int">2178852</config:config-item><config:config-item config:name="AddVerticalFrameOffsets" config:type="boolean">false</config:config-item><config:config-item config:name="TreatSingleColumnBreakAsPageBreak" config:type="boolean">false</config:config-item><config:config-item config:name="AddFrameOffsets" config:type="boolean">false</config:config-item><config:config-item config:name="IsLabelDocument" config:type="boolean">false</config:config-item><config:config-item config:name="MsWordCompTrailingBlanks" config:type="boolean">false</config:config-item><config:config-item config:name="PrinterPaperFromSetup" config:type="boolean">false</config:config-item><config:config-item config:name="IgnoreFirstLineIndentInNumbering" config:type="boolean">false</config:config-item><config:config-item config:name="PrinterName" config:type="string"/><config:config-item config:name="IsKernAsianPunctuation" config:type="boolean">false</config:config-item><config:config-item config:name="PrinterIndependentLayout" config:type="string">high-resolution</config:config-item><config:config-item config:name="TableRowKeep" config:type="boolean">false</config:config-item><config:config-item config:name="UpdateFromTemplate" config:type="boolean">true</config:config-item><config:config-item config:name="EmbedComplexScriptFonts" config:type="boolean">true</config:config-item><config:config-item config:name="UseOldPrinterMetrics" config:type="boolean">false</config:config-item><config:config-item config:name="InvertBorderSpacing" config:type="boolean">false</config:config-item><config:config-item config:name="PrintProspectRTL" config:type="boolean">false</config:config-item><config:config-item config:name="ApplyUserData" config:type="boolean">true</config:config-item><config:config-item config:name="AddParaTableSpacingAtStart" config:type="boolean">true</config:config-item><config:config-item config:name="SaveVersionOnClose" config:type="boolean">false</config:config-item><config:config-item config:name="CharacterCompressionType" config:type="short">0</config:config-item><config:config-item config:name="UseOldNumbering" config:type="boolean">false</config:config-item><config:config-item config:name="UseFormerObjectPositioning" config:type="boolean">false</config:config-item><config:config-item config:name="ChartAutoUpdate" config:type="boolean">true</config:config-item><config:config-item config:name="AddParaTableSpacing" config:type="boolean">true</config:config-item></config:config-item-set></office:settings></office:document-settings> \ No newline at end of file
diff --git a/extract/test/twotables_2.pdf.mutool.odt.dir.ref/styles.xml b/extract/test/twotables_2.pdf.mutool.odt.dir.ref/styles.xml
new file mode 100644
index 00000000..91403c4e
--- /dev/null
+++ b/extract/test/twotables_2.pdf.mutool.odt.dir.ref/styles.xml
@@ -0,0 +1,2 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<office:document-styles xmlns:css3t="http://www.w3.org/TR/css3-text/" xmlns:grddl="http://www.w3.org/2003/g/data-view#" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:dom="http://www.w3.org/2001/xml-events" xmlns:script="urn:oasis:names:tc:opendocument:xmlns:script:1.0" xmlns:form="urn:oasis:names:tc:opendocument:xmlns:form:1.0" xmlns:math="http://www.w3.org/1998/Math/MathML" xmlns:number="urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0" xmlns:field="urn:openoffice:names:experimental:ooo-ms-interop:xmlns:field:1.0" xmlns:meta="urn:oasis:names:tc:opendocument:xmlns:meta:1.0" xmlns:loext="urn:org:documentfoundation:names:experimental:office:xmlns:loext:1.0" xmlns:officeooo="http://openoffice.org/2009/office" xmlns:table="urn:oasis:names:tc:opendocument:xmlns:table:1.0" xmlns:chart="urn:oasis:names:tc:opendocument:xmlns:chart:1.0" xmlns:tableooo="http://openoffice.org/2009/table" xmlns:draw="urn:oasis:names:tc:opendocument:xmlns:drawing:1.0" xmlns:rpt="http://openoffice.org/2005/report" xmlns:dr3d="urn:oasis:names:tc:opendocument:xmlns:dr3d:1.0" xmlns:of="urn:oasis:names:tc:opendocument:xmlns:of:1.2" xmlns:text="urn:oasis:names:tc:opendocument:xmlns:text:1.0" xmlns:style="urn:oasis:names:tc:opendocument:xmlns:style:1.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:calcext="urn:org:documentfoundation:names:experimental:calc:xmlns:calcext:1.0" xmlns:oooc="http://openoffice.org/2004/calc" xmlns:drawooo="http://openoffice.org/2010/draw" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:ooo="http://openoffice.org/2004/office" xmlns:ooow="http://openoffice.org/2004/writer" xmlns:fo="urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0" xmlns:svg="urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0" xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" office:version="1.3"><office:font-face-decls><style:font-face style:name="Liberation Serif" svg:font-family="&apos;Liberation Serif&apos;" style:font-family-generic="roman" style:font-pitch="variable"/><style:font-face style:name="Liberation Sans" svg:font-family="&apos;Liberation Sans&apos;" style:font-family-generic="swiss" style:font-pitch="variable"/><style:font-face style:name="Unifont" svg:font-family="Unifont" style:font-family-generic="system" style:font-pitch="variable"/></office:font-face-decls><office:styles><style:default-style style:family="graphic"><style:graphic-properties svg:stroke-color="#3465a4" draw:fill-color="#729fcf" fo:wrap-option="no-wrap" draw:shadow-offset-x="0.1181in" draw:shadow-offset-y="0.1181in" draw:start-line-spacing-horizontal="0.1114in" draw:start-line-spacing-vertical="0.1114in" draw:end-line-spacing-horizontal="0.1114in" draw:end-line-spacing-vertical="0.1114in" style:flow-with-text="false"/><style:paragraph-properties style:text-autospace="ideograph-alpha" style:line-break="strict" style:font-independent-line-spacing="false"><style:tab-stops/></style:paragraph-properties><style:text-properties style:use-window-font-color="true" loext:opacity="0%" style:font-name="Liberation Serif" fo:font-size="12pt" fo:language="en" fo:country="US" style:letter-kerning="true" style:font-name-asian="Unifont" style:font-size-asian="10.5pt" style:language-asian="zh" style:country-asian="CN" style:font-name-complex="Unifont" style:font-size-complex="12pt" style:language-complex="hi" style:country-complex="IN"/></style:default-style><style:default-style style:family="paragraph"><style:paragraph-properties fo:orphans="2" fo:widows="2" fo:hyphenation-ladder-count="no-limit" style:text-autospace="ideograph-alpha" style:punctuation-wrap="hanging" style:line-break="strict" style:tab-stop-distance="0.4925in" style:writing-mode="page"/><style:text-properties style:use-window-font-color="true" loext:opacity="0%" style:font-name="Liberation Serif" fo:font-size="12pt" fo:language="en" fo:country="US" style:letter-kerning="true" style:font-name-asian="Unifont" style:font-size-asian="10.5pt" style:language-asian="zh" style:country-asian="CN" style:font-name-complex="Unifont" style:font-size-complex="12pt" style:language-complex="hi" style:country-complex="IN" fo:hyphenate="false" fo:hyphenation-remain-char-count="2" fo:hyphenation-push-char-count="2" loext:hyphenation-no-caps="false"/></style:default-style><style:default-style style:family="table"><style:table-properties table:border-model="collapsing"/></style:default-style><style:default-style style:family="table-row"><style:table-row-properties fo:keep-together="auto"/></style:default-style><style:style style:name="Standard" style:family="paragraph" style:class="text"><style:paragraph-properties fo:margin-top="0in" fo:margin-bottom="0.0799in" style:contextual-spacing="false"/></style:style><style:style style:name="Heading" style:family="paragraph" style:parent-style-name="Standard" style:next-style-name="Text_20_body" style:class="text"><style:paragraph-properties fo:margin-top="0.1665in" fo:margin-bottom="0.0835in" style:contextual-spacing="false" fo:keep-with-next="always"/><style:text-properties style:font-name="Liberation Sans" fo:font-family="&apos;Liberation Sans&apos;" style:font-family-generic="swiss" style:font-pitch="variable" fo:font-size="14pt" style:font-name-asian="Unifont" style:font-family-asian="Unifont" style:font-family-generic-asian="system" style:font-pitch-asian="variable" style:font-size-asian="14pt" style:font-name-complex="Unifont" style:font-family-complex="Unifont" style:font-family-generic-complex="system" style:font-pitch-complex="variable" style:font-size-complex="14pt"/></style:style><style:style style:name="Text_20_body" style:display-name="Text body" style:family="paragraph" style:parent-style-name="Standard" style:class="text"><style:paragraph-properties fo:margin-top="0in" fo:margin-bottom="0.0972in" style:contextual-spacing="false" fo:line-height="115%"/></style:style><style:style style:name="List" style:family="paragraph" style:parent-style-name="Text_20_body" style:class="list"><style:text-properties style:font-size-asian="12pt"/></style:style><style:style style:name="Caption" style:family="paragraph" style:parent-style-name="Standard" style:class="extra"><style:paragraph-properties fo:margin-top="0.0835in" fo:margin-bottom="0.0835in" style:contextual-spacing="false" text:number-lines="false" text:line-number="0"/><style:text-properties fo:font-size="12pt" fo:font-style="italic" style:font-size-asian="12pt" style:font-style-asian="italic" style:font-size-complex="12pt" style:font-style-complex="italic"/></style:style><style:style style:name="Index" style:family="paragraph" style:parent-style-name="Standard" style:class="index"><style:paragraph-properties text:number-lines="false" text:line-number="0"/><style:text-properties style:font-size-asian="12pt"/></style:style><text:outline-style style:name="Outline"><text:outline-level-style text:level="1" style:num-format=""><style:list-level-properties text:list-level-position-and-space-mode="label-alignment"><style:list-level-label-alignment text:label-followed-by="listtab"/></style:list-level-properties></text:outline-level-style><text:outline-level-style text:level="2" style:num-format=""><style:list-level-properties text:list-level-position-and-space-mode="label-alignment"><style:list-level-label-alignment text:label-followed-by="listtab"/></style:list-level-properties></text:outline-level-style><text:outline-level-style text:level="3" style:num-format=""><style:list-level-properties text:list-level-position-and-space-mode="label-alignment"><style:list-level-label-alignment text:label-followed-by="listtab"/></style:list-level-properties></text:outline-level-style><text:outline-level-style text:level="4" style:num-format=""><style:list-level-properties text:list-level-position-and-space-mode="label-alignment"><style:list-level-label-alignment text:label-followed-by="listtab"/></style:list-level-properties></text:outline-level-style><text:outline-level-style text:level="5" style:num-format=""><style:list-level-properties text:list-level-position-and-space-mode="label-alignment"><style:list-level-label-alignment text:label-followed-by="listtab"/></style:list-level-properties></text:outline-level-style><text:outline-level-style text:level="6" style:num-format=""><style:list-level-properties text:list-level-position-and-space-mode="label-alignment"><style:list-level-label-alignment text:label-followed-by="listtab"/></style:list-level-properties></text:outline-level-style><text:outline-level-style text:level="7" style:num-format=""><style:list-level-properties text:list-level-position-and-space-mode="label-alignment"><style:list-level-label-alignment text:label-followed-by="listtab"/></style:list-level-properties></text:outline-level-style><text:outline-level-style text:level="8" style:num-format=""><style:list-level-properties text:list-level-position-and-space-mode="label-alignment"><style:list-level-label-alignment text:label-followed-by="listtab"/></style:list-level-properties></text:outline-level-style><text:outline-level-style text:level="9" style:num-format=""><style:list-level-properties text:list-level-position-and-space-mode="label-alignment"><style:list-level-label-alignment text:label-followed-by="listtab"/></style:list-level-properties></text:outline-level-style><text:outline-level-style text:level="10" style:num-format=""><style:list-level-properties text:list-level-position-and-space-mode="label-alignment"><style:list-level-label-alignment text:label-followed-by="listtab"/></style:list-level-properties></text:outline-level-style></text:outline-style><text:notes-configuration text:note-class="footnote" style:num-format="1" text:start-value="0" text:footnotes-position="page" text:start-numbering-at="document"/><text:notes-configuration text:note-class="endnote" style:num-format="i" text:start-value="0"/><text:linenumbering-configuration text:number-lines="false" text:offset="0.1965in" style:num-format="1" text:number-position="left" text:increment="5"/></office:styles><office:automatic-styles><style:page-layout style:name="Mpm1"><style:page-layout-properties fo:page-width="8.5in" fo:page-height="11in" style:num-format="1" style:print-orientation="portrait" fo:margin-top="0.7874in" fo:margin-bottom="0.7874in" fo:margin-left="0.7874in" fo:margin-right="0.7874in" style:writing-mode="lr-tb" style:layout-grid-color="#c0c0c0" style:layout-grid-lines="20" style:layout-grid-base-height="0.278in" style:layout-grid-ruby-height="0.139in" style:layout-grid-mode="none" style:layout-grid-ruby-below="false" style:layout-grid-print="false" style:layout-grid-display="false" style:footnote-max-height="0in"><style:footnote-sep style:width="0.0071in" style:distance-before-sep="0.0398in" style:distance-after-sep="0.0398in" style:line-style="solid" style:adjustment="left" style:rel-width="25%" style:color="#000000"/></style:page-layout-properties><style:header-style/><style:footer-style/></style:page-layout></office:automatic-styles><office:master-styles><style:master-page style:name="Standard" style:page-layout-name="Mpm1"/></office:master-styles></office:document-styles> \ No newline at end of file
diff --git a/extract/test/zlib.3.pdf.mutool.odt.dir.ref/content.xml b/extract/test/zlib.3.pdf.mutool.odt.dir.ref/content.xml
index d3f5f2be..7e0234a6 100644
--- a/extract/test/zlib.3.pdf.mutool.odt.dir.ref/content.xml
+++ b/extract/test/zlib.3.pdf.mutool.odt.dir.ref/content.xml
@@ -6,7 +6,10 @@
<style:style style:name="fr1" style:family="graphic" style:parent-style-name="Graphics">
<style:graphic-properties fo:margin-left="0in" fo:margin-right="0in" fo:margin-top="0in" fo:margin-bottom="0in" style:vertical-pos="top" style:vertical-rel="baseline" fo:background-color="transparent" draw:fill="none" draw:fill-color="#ffffff" fo:padding="0in" fo:border="none" style:mirror="none" fo:clip="rect(0in, 0in, 0in, 0in)" draw:luminance="0%" draw:contrast="0%" draw:red="0%" draw:green="0%" draw:blue="0%" draw:gamma="100%" draw:color-inversion="false" draw:image-opacity="100%" draw:color-mode="standard"/>
</style:style>
-</office:automatic-styles><office:body><office:text><text:sequence-decls><text:sequence-decl text:display-outline-level="0" text:name="Illustration"/><text:sequence-decl text:display-outline-level="0" text:name="Table"/><text:sequence-decl text:display-outline-level="0" text:name="Text"/><text:sequence-decl text:display-outline-level="0" text:name="Drawing"/><text:sequence-decl text:display-outline-level="0" text:name="Figure"/></text:sequence-decls><text:p text:style-name="Standard"/>
+</office:automatic-styles>
+<style:style style:name="extract.table" style:family="table"/>
+<style:style style:name="extract.table.column" style:family="table-column"/>
+<office:body><office:text><text:sequence-decls><text:sequence-decl text:display-outline-level="0" text:name="Illustration"/><text:sequence-decl text:display-outline-level="0" text:name="Table"/><text:sequence-decl text:display-outline-level="0" text:name="Text"/><text:sequence-decl text:display-outline-level="0" text:name="Drawing"/><text:sequence-decl text:display-outline-level="0" text:name="Figure"/></text:sequence-decls><text:p text:style-name="Standard"/>
<text:p><text:span text:style-name="T11">ZLIB(3) ZLIB(3)</text:span></text:p>
diff --git a/extract/test/zlib.3.pdf.mutool.text.ref b/extract/test/zlib.3.pdf.mutool.text.ref
new file mode 100644
index 00000000..48d47d77
--- /dev/null
+++ b/extract/test/zlib.3.pdf.mutool.text.ref
@@ -0,0 +1,34 @@
+ZLIB(3) ZLIB(3)
+NAME zlib - compression/decompression library
+SYNOPSIS [see zlib.h for full description]
+DESCRIPTION The zlib library is a general purpose data compression library. The code is thread safe, assuming that the standard library functions used are thread safe, such as memory allocation routines. It provides in-memory compression and decompression functions, including integrity checks of the uncompressed data. This version of the library supports only one compression method (deflation) but other algorithms may be added later with the same stream interface.
+Compression can be done in a single step if the buffers are large enough or can be done by repeated calls of the compression function. In the latter case, the application must provide more input and/or consume the output (providing more output space) before each call.
+The library also supports reading and writing files in gzip(1) (.gz) format with an interface similar to that of stdio.
+The library does not install any signal handler. The decoder checks the consistency of the compressed data, so the library should never crash even in the case of corrupted input.
+All functions of the compression library are documented in the file zlib.h. The distribution source includes examples of use of the library in the files test/example.c and test/minigzip.c, as well as other examples in the examples/ directory.
+Changes to this version are documented in the file ChangeLog that accompanies the source.
+zlib is built in to many languages and operating systems, including but not limited to Java, Python, .NET, PHP, Perl, Ruby, Swift, and Go.
+An experimental package to read and write files in the .zip format, written on top of zlib by Gilles Vollant (info@winimage.com), is available at:
+http://www.winimage.com/zLibDll/minizip.html and also in the contrib/minizip directory of the main zlib source distribution.
+SEE ALSO The zlib web site can be found at:
+http://zlib.net/
+The data format used by the zlib library is described by RFC (Request for Comments) 1950 to 1952 in the files:
+http://tools.ietf.org/html/rfc1950 (for the zlib header and trailer format) http://tools.ietf.org/html/rfc1951 (for the deflate compressed data format) http://tools.ietf.org/html/rfc1952 (for the gzip header and trailer format)
+Mark Nelson wrote an article about zlib for the Jan. 1997 issue of Dr. Dobb's Journal; a copy of the article is available at:
+http://marknelson.us/1997/01/01/zlib-engine/
+REPORTING PROBLEMS Before reporting a problem, please check the zlib web site to verify that you have the latest version of zlib; otherwise, obtain the latest version and see if the problem still exists. Please read the zlib FAQ at:
+http://zlib.net/zlib_faq.html
+before asking for help. Send questions and/or comments to zlib@gzip.org, or (for the Windows DLL version) to Gilles Vollant (info@winimage.com).
+15 Jan 2017 1
+ZLIB(3) ZLIB(3)
+AUTHORS AND LICENSE Version 1.2.11
+Copyright (C) 1995-2017 Jean-loup Gailly and Mark Adler
+This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for any damages arising from the use of this software.
+Permission is granted to anyone to use this software for any purpose, including commercial applications, and to alter it and redistribute it freely, subject to the following restrictions:
+1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required.
+2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software.
+3. This notice may not be removed or altered from any source distribution.
+Jean-loup Gailly Mark Adler jloup@gzip.org madler@alumni.caltech.edu
+The deflate format used by zlib was defined by Phil Katz. The deflate and zlib specifications were written by L. Peter Deutsch. Thanks to all the people who reported problems and suggested various improvements in zlib; who are too numerous to cite here.
+UNIX manual page by R. P. C. Rodgers, U.S. National Library of Medicine (rodgers@nlm.nih.gov).
+15 Jan 2017 2
diff --git a/freetype/CMakeLists.txt b/freetype/CMakeLists.txt
index 3ed55aad..4335d66d 100644
--- a/freetype/CMakeLists.txt
+++ b/freetype/CMakeLists.txt
@@ -1,6 +1,6 @@
# CMakeLists.txt
#
-# Copyright (C) 2013-2020 by
+# Copyright (C) 2013-2021 by
# David Turner, Robert Wilhelm, and Werner Lemberg.
#
# Written originally by John Cary <cary@txcorp.com>
@@ -12,13 +12,17 @@
# fully.
#
#
-# The following will 1. create a build directory and 2. change into it and
+# The following will (1) create a build directory, and (2) change into it and
# call cmake to configure the build with default parameters as a static
-# library. See https://cmake.org/cmake/help/latest/variable/CMAKE_BUILD_TYPE.html
-# for information about Debug, Release, etc. builds.
+# library. See
+#
+# https://cmake.org/cmake/help/latest/variable/CMAKE_BUILD_TYPE.html
+#
+# for information about debug or release builds, for example
#
# cmake -B build -D CMAKE_BUILD_TYPE=Release
#
+#
# For a dynamic library, use
#
# cmake -B build -D BUILD_SHARED_LIBS=true -D CMAKE_BUILD_TYPE=Release
@@ -39,7 +43,8 @@
#
# cmake -E chdir build cmake -G Xcode -D IOS_PLATFORM=SIMULATOR64 ..
#
-# Finally, build the project with:
+#
+# Finally, build the project with
#
# cmake --build build
#
@@ -56,40 +61,47 @@
#
# Some notes.
#
-# . `cmake' creates configuration files in
+# - `cmake' creates configuration files in
#
# <build-directory>/include/freetype/config
#
# which should be further modified if necessary.
#
-# . You can use `cmake' directly on a freshly cloned FreeType git
+# - You can use `cmake' directly on a freshly cloned FreeType git
# repository.
#
-# . `CMakeLists.txt' is provided as-is since it is normally not used by the
+# - `CMakeLists.txt' is provided as-is since it is normally not used by the
# developer team.
#
-# . Set the `FT_WITH_ZLIB', `FT_WITH_BZIP2', `FT_WITH_PNG',
-# `FT_WITH_HARFBUZZ', and `FT_WITH_BROTLI' CMake variables to `ON' to
-# force using a dependency. Leave a variable undefined (which is the
-# default) to use the dependency only if it is available. Example:
+# - Set the `FT_REQUIRE_ZLIB', `FT_REQUIRE_BZIP2', `FT_REQUIRE_PNG',
+# `FT_REQUIRE_HARFBUZZ', and `FT_REQUIRE_BROTLI' CMake variables to `ON'
+# or `TRUE' to force using a dependency. Leave a variable undefined
+# (which is the default) to use the dependency only if it is available.
+# Example:
#
-# cmake -B build -D FT_WITH_ZLIB=ON \
-# -D FT_WITH_BZIP2=ON \
-# -D FT_WITH_PNG=ON \
-# -D FT_WITH_HARFBUZZ=ON \
-# -D FT_WITH_BROTLI=ON [...]
+# cmake -B build -D FT_REQUIRE_ZLIB=TRUE \
+# -D FT_REQUIRE_BZIP2=TRUE \
+# -D FT_REQUIRE_PNG=TRUE \
+# -D FT_REQUIRE_HARFBUZZ=TRUE \
+# -D FT_REQUIRE_BROTLI=TRUE [...]
#
-# Set `CMAKE_DISABLE_FIND_PACKAGE_XXX=TRUE' to disable a dependency completely
-# (where `XXX' is a CMake package name like `BZip2'). Example for disabling all
+# - Set `FT_DISABLE_XXX=TRUE' to disable a dependency completely (where
+# `XXX' is a CMake package name like `BZip2'). Example for disabling all
# dependencies:
#
-# cmake -B build -D CMAKE_DISABLE_FIND_PACKAGE_ZLIB=TRUE \
-# -D CMAKE_DISABLE_FIND_PACKAGE_BZip2=TRUE \
-# -D CMAKE_DISABLE_FIND_PACKAGE_PNG=TRUE \
-# -D CMAKE_DISABLE_FIND_PACKAGE_HarfBuzz=TRUE \
-# -D CMAKE_DISABLE_FIND_PACKAGE_BrotliDec=TRUE [...]
+# cmake -B build -D FT_DISABLE_ZLIB=TRUE \
+# -D FT_DISABLE_BZIP2=TRUE \
+# -D FT_DISABLE_PNG=TRUE \
+# -D FT_DISABLE_HARFBUZZ=TRUE \
+# -D FT_DISABLE_BROTLI=TRUE [...]
+#
+# - NOTE: If a package is set as DISABLED, it cannot be set as REQUIRED
+# without unsetting the DISABLED value first. For example, if
+# `FT_DISABLE_HARFBUZZ=TRUE' has been set (Cache is present), you need to
+# call `FT_DISABLE_HARFBUZZ=FALSE' before calling
+# `FT_REQUIRE_HARFBUZZ=TRUE'.
#
-# . Installation of FreeType can be controlled with the CMake variables
+# - Installation of FreeType can be controlled with the CMake variables
# `SKIP_INSTALL_HEADERS', `SKIP_INSTALL_LIBRARIES', and `SKIP_INSTALL_ALL'
# (this is compatible with the same CMake variables in zlib's CMake
# support).
@@ -103,9 +115,13 @@ if (NOT CMAKE_VERSION VERSION_LESS 3.3)
# Allow symbol visibility settings also on static libraries. CMake < 3.3
# only sets the property on a shared library build.
cmake_policy(SET CMP0063 NEW)
+
+ # Support new IN_LIST if() operator.
+ cmake_policy(SET CMP0057 NEW)
endif ()
include(CheckIncludeFile)
+include(CMakeDependentOption)
# CMAKE_TOOLCHAIN_FILE must be set before `project' is called, which
# configures the base build environment and references the toolchain file
@@ -146,8 +162,8 @@ endif ()
project(freetype C)
set(VERSION_MAJOR "2")
-set(VERSION_MINOR "10")
-set(VERSION_PATCH "4")
+set(VERSION_MINOR "11")
+set(VERSION_PATCH "1")
# Generate LIBRARY_VERSION and LIBRARY_SOVERSION.
set(LIBTOOL_REGEX "version_info='([0-9]+):([0-9]+):([0-9]+)'")
@@ -168,13 +184,37 @@ string(REGEX REPLACE
math(EXPR LIBRARY_SOVERSION "${LIBTOOL_CURRENT} - ${LIBTOOL_AGE}")
set(LIBRARY_VERSION "${LIBRARY_SOVERSION}.${LIBTOOL_AGE}.${LIBTOOL_REVISION}")
-# External dependency library detection is automatic. See the notes at the top
-# of this file, for how to force or disable dependencies completely.
-option(FT_WITH_ZLIB "Use system zlib instead of internal library." OFF)
-option(FT_WITH_BZIP2 "Support bzip2 compressed fonts." OFF)
-option(FT_WITH_PNG "Support PNG compressed OpenType embedded bitmaps." OFF)
-option(FT_WITH_HARFBUZZ "Improve auto-hinting of OpenType fonts." OFF)
-option(FT_WITH_BROTLI "Support compressed WOFF2 fonts." OFF)
+# External dependency library detection is automatic. See the notes at the
+# top of this file, for how to force or disable dependencies completely.
+option(FT_DISABLE_ZLIB
+ "Disable use of system zlib and use internal zlib library instead." OFF)
+cmake_dependent_option(FT_REQUIRE_ZLIB
+ "Require system zlib instead of internal zlib library." OFF
+ "NOT FT_DISABLE_ZLIB" OFF)
+
+option(FT_DISABLE_BZIP2
+ "Disable support of bzip2 compressed fonts." OFF)
+cmake_dependent_option(FT_REQUIRE_BZIP2
+ "Require support of bzip2 compressed fonts." OFF
+ "NOT FT_DISABLE_BZIP2" OFF)
+
+option(FT_DISABLE_PNG
+ "Disable support of PNG compressed OpenType embedded bitmaps." OFF)
+cmake_dependent_option(FT_REQUIRE_PNG
+ "Require support of PNG compressed OpenType embedded bitmaps." OFF
+ "NOT FT_DISABLE_PNG" OFF)
+
+option(FT_DISABLE_HARFBUZZ
+ "Disable HarfBuzz (used for improving auto-hinting of OpenType fonts)." OFF)
+cmake_dependent_option(FT_REQUIRE_HARFBUZZ
+ "Require HarfBuzz for improving auto-hinting of OpenType fonts." OFF
+ "NOT FT_DISABLE_HARFBUZZ" OFF)
+
+option(FT_DISABLE_BROTLI
+ "Disable support of compressed WOFF2 fonts." OFF)
+cmake_dependent_option(FT_REQUIRE_BROTLI
+ "Require support of compressed WOFF2 fonts." OFF
+ "NOT FT_DISABLE_BROTLI" OFF)
# Disallow in-source builds
@@ -205,35 +245,45 @@ endif ()
# Find dependencies
-set(HARFBUZZ_MIN_VERSION "1.8.0")
-if (FT_WITH_HARFBUZZ)
- find_package(HarfBuzz ${HARFBUZZ_MIN_VERSION} REQUIRED)
-else ()
- find_package(HarfBuzz ${HARFBUZZ_MIN_VERSION})
+if (NOT FT_DISABLE_HARFBUZZ)
+ set(HARFBUZZ_MIN_VERSION "2.0.0")
+ if (FT_REQUIRE_HARFBUZZ)
+ find_package(HarfBuzz ${HARFBUZZ_MIN_VERSION} REQUIRED)
+ else ()
+ find_package(HarfBuzz ${HARFBUZZ_MIN_VERSION})
+ endif ()
endif ()
-if (FT_WITH_PNG)
- find_package(PNG REQUIRED)
-else ()
- find_package(PNG)
+if (NOT FT_DISABLE_PNG)
+ if (FT_REQUIRE_PNG)
+ find_package(PNG REQUIRED)
+ else ()
+ find_package(PNG)
+ endif ()
endif ()
-if (FT_WITH_ZLIB)
- find_package(ZLIB REQUIRED)
-else ()
- find_package(ZLIB)
+if (NOT FT_DISABLE_ZLIB)
+ if (FT_REQUIRE_ZLIB)
+ find_package(ZLIB REQUIRED)
+ else ()
+ find_package(ZLIB)
+ endif ()
endif ()
-if (FT_WITH_BZIP2)
- find_package(BZip2 REQUIRED)
-else ()
- find_package(BZip2)
+if (NOT FT_DISABLE_BZIP2)
+ if (FT_REQUIRE_BZIP2)
+ find_package(BZip2 REQUIRED)
+ else ()
+ find_package(BZip2)
+ endif ()
endif ()
-if (FT_WITH_BROTLI)
- find_package(BrotliDec REQUIRED)
-else ()
- find_package(BrotliDec)
+if (NOT FT_DISABLE_BROTLI)
+ if (FT_REQUIRE_BROTLI)
+ find_package(BrotliDec REQUIRED)
+ else ()
+ find_package(BrotliDec)
+ endif ()
endif ()
# Create the configuration file
@@ -347,6 +397,7 @@ set(BASE_SRCS
src/pshinter/pshinter.c
src/psnames/psnames.c
src/raster/raster.c
+ src/sdf/sdf.c
src/sfnt/sfnt.c
src/smooth/smooth.c
src/truetype/truetype.c
@@ -357,6 +408,8 @@ set(BASE_SRCS
if (UNIX)
list(APPEND BASE_SRCS "builds/unix/ftsystem.c")
+elseif (WIN32)
+ list(APPEND BASE_SRCS "builds/windows/ftsystem.c")
else ()
list(APPEND BASE_SRCS "src/base/ftsystem.c")
endif ()
@@ -420,7 +473,7 @@ target_include_directories(
PRIVATE
${CMAKE_CURRENT_BINARY_DIR}/include
${CMAKE_CURRENT_SOURCE_DIR}/include
-
+
# Make <ftconfig.h> available for builds/unix/ftsystem.c.
${CMAKE_CURRENT_BINARY_DIR}/include/freetype/config
)
@@ -440,6 +493,7 @@ endif ()
set(PKG_CONFIG_REQUIRED_PRIVATE "")
+set(PKG_CONFIG_LIBS_PRIVATE "")
if (ZLIB_FOUND)
target_link_libraries(freetype PRIVATE ${ZLIB_LIBRARIES})
@@ -449,7 +503,7 @@ endif ()
if (BZIP2_FOUND)
target_link_libraries(freetype PRIVATE ${BZIP2_LIBRARIES})
target_include_directories(freetype PRIVATE ${BZIP2_INCLUDE_DIR}) # not BZIP2_INCLUDE_DIRS
- list(APPEND PKG_CONFIG_REQUIRED_PRIVATE "bzip2")
+ list(APPEND PKG_CONFIG_LIBS_PRIVATE "-lbz2")
endif ()
if (PNG_FOUND)
target_link_libraries(freetype PRIVATE ${PNG_LIBRARIES})
@@ -457,9 +511,9 @@ if (PNG_FOUND)
target_include_directories(freetype PRIVATE ${PNG_INCLUDE_DIRS})
list(APPEND PKG_CONFIG_REQUIRED_PRIVATE "libpng")
endif ()
-if (HARFBUZZ_FOUND)
- target_link_libraries(freetype PRIVATE ${HARFBUZZ_LIBRARIES})
- target_include_directories(freetype PRIVATE ${HARFBUZZ_INCLUDE_DIRS})
+if (HarfBuzz_FOUND)
+ target_link_libraries(freetype PRIVATE ${HarfBuzz_LIBRARY})
+ target_include_directories(freetype PRIVATE ${HarfBuzz_INCLUDE_DIRS})
list(APPEND PKG_CONFIG_REQUIRED_PRIVATE "harfbuzz >= ${HARFBUZZ_MIN_VERSION}")
endif ()
if (BROTLIDEC_FOUND)
@@ -491,41 +545,39 @@ endif ()
if (NOT SKIP_INSTALL_LIBRARIES AND NOT SKIP_INSTALL_ALL)
# Generate the pkg-config file
- if (UNIX)
- file(READ "${PROJECT_SOURCE_DIR}/builds/unix/freetype2.in" FREETYPE2_PC_IN)
-
- string(REPLACE ";" ", " PKG_CONFIG_REQUIRED_PRIVATE "${PKG_CONFIG_REQUIRED_PRIVATE}")
-
- string(REPLACE "%prefix%" ${CMAKE_INSTALL_PREFIX}
- FREETYPE2_PC_IN ${FREETYPE2_PC_IN})
- string(REPLACE "%exec_prefix%" "\${prefix}"
- FREETYPE2_PC_IN ${FREETYPE2_PC_IN})
- string(REPLACE "%libdir%" "\${prefix}/${CMAKE_INSTALL_LIBDIR}"
- FREETYPE2_PC_IN ${FREETYPE2_PC_IN})
- string(REPLACE "%includedir%" "\${prefix}/${CMAKE_INSTALL_INCLUDEDIR}"
- FREETYPE2_PC_IN ${FREETYPE2_PC_IN})
- string(REPLACE "%ft_version%" "${LIBTOOL_CURRENT}.${LIBTOOL_REVISION}.${LIBTOOL_AGE}"
- FREETYPE2_PC_IN ${FREETYPE2_PC_IN})
- string(REPLACE "%REQUIRES_PRIVATE%" "${PKG_CONFIG_REQUIRED_PRIVATE}"
- FREETYPE2_PC_IN ${FREETYPE2_PC_IN})
- string(REPLACE "%LIBS_PRIVATE%" "" # All libs support pkg-config
- FREETYPE2_PC_IN ${FREETYPE2_PC_IN})
-
- set(FREETYPE2_PC_IN_NAME "${PROJECT_BINARY_DIR}/freetype2.pc")
- if (EXISTS "${FREETYPE2_PC_IN_NAME}")
- file(READ "${FREETYPE2_PC_IN_NAME}" ORIGINAL_FREETYPE2_PC_IN)
- else ()
- set(ORIGINAL_FREETYPE2_PC_IN "")
- endif ()
- if (NOT (ORIGINAL_FREETYPE2_PC_IN STREQUAL FREETYPE2_PC_IN))
- file(WRITE "${FREETYPE2_PC_IN_NAME}" ${FREETYPE2_PC_IN})
- endif ()
-
- install(
- FILES ${PROJECT_BINARY_DIR}/freetype2.pc
- DESTINATION ${CMAKE_INSTALL_LIBDIR}/pkgconfig
- COMPONENT pkgconfig)
+ file(READ "${PROJECT_SOURCE_DIR}/builds/unix/freetype2.in" FREETYPE2_PC_IN)
+
+ string(REPLACE ";" ", " PKG_CONFIG_REQUIRED_PRIVATE "${PKG_CONFIG_REQUIRED_PRIVATE}")
+
+ string(REPLACE "%prefix%" ${CMAKE_INSTALL_PREFIX}
+ FREETYPE2_PC_IN ${FREETYPE2_PC_IN})
+ string(REPLACE "%exec_prefix%" "\${prefix}"
+ FREETYPE2_PC_IN ${FREETYPE2_PC_IN})
+ string(REPLACE "%libdir%" "\${prefix}/${CMAKE_INSTALL_LIBDIR}"
+ FREETYPE2_PC_IN ${FREETYPE2_PC_IN})
+ string(REPLACE "%includedir%" "\${prefix}/${CMAKE_INSTALL_INCLUDEDIR}"
+ FREETYPE2_PC_IN ${FREETYPE2_PC_IN})
+ string(REPLACE "%ft_version%" "${LIBTOOL_CURRENT}.${LIBTOOL_REVISION}.${LIBTOOL_AGE}"
+ FREETYPE2_PC_IN ${FREETYPE2_PC_IN})
+ string(REPLACE "%REQUIRES_PRIVATE%" "${PKG_CONFIG_REQUIRED_PRIVATE}"
+ FREETYPE2_PC_IN ${FREETYPE2_PC_IN})
+ string(REPLACE "%LIBS_PRIVATE%" "${PKG_CONFIG_LIBS_PRIVATE}"
+ FREETYPE2_PC_IN ${FREETYPE2_PC_IN})
+
+ set(FREETYPE2_PC_IN_NAME "${PROJECT_BINARY_DIR}/freetype2.pc")
+ if (EXISTS "${FREETYPE2_PC_IN_NAME}")
+ file(READ "${FREETYPE2_PC_IN_NAME}" ORIGINAL_FREETYPE2_PC_IN)
+ else ()
+ set(ORIGINAL_FREETYPE2_PC_IN "")
endif ()
+ if (NOT (ORIGINAL_FREETYPE2_PC_IN STREQUAL FREETYPE2_PC_IN))
+ file(WRITE "${FREETYPE2_PC_IN_NAME}" ${FREETYPE2_PC_IN})
+ endif ()
+
+ install(
+ FILES ${PROJECT_BINARY_DIR}/freetype2.pc
+ DESTINATION ${CMAKE_INSTALL_LIBDIR}/pkgconfig
+ COMPONENT pkgconfig)
include(CMakePackageConfigHelpers)
write_basic_package_version_file(
@@ -557,7 +609,7 @@ endif ()
set(CPACK_PACKAGE_NAME ${CMAKE_PROJECT_NAME})
set(CPACK_PACKAGE_DESCRIPTION_SUMMARY "The FreeType font rendering library.")
set(CPACK_PACKAGE_DESCRIPTION_FILE "${CMAKE_CURRENT_SOURCE_DIR}/README")
-set(CPACK_RESOURCE_FILE_LICENSE "${CMAKE_CURRENT_SOURCE_DIR}/docs/LICENSE.TXT")
+set(CPACK_RESOURCE_FILE_LICENSE "${CMAKE_CURRENT_SOURCE_DIR}/LICENSE.TXT")
set(CPACK_PACKAGE_VERSION_MAJOR ${VERSION_MAJOR})
set(CPACK_PACKAGE_VERSION_MINOR ${VERSION_MINOR})
diff --git a/freetype/ChangeLog b/freetype/ChangeLog
index 42f7c34b..e419b471 100644
--- a/freetype/ChangeLog
+++ b/freetype/ChangeLog
@@ -1,5066 +1,1685 @@
-2020-10-20 Werner Lemberg <wl@gnu.org>
+2021-12-02 Werner Lemberg <wl@gnu.org>
- * Version 2.10.4 released.
+ * Version 2.11.1 released.
==========================
+ Tag sources with `VER-2-11-1'.
- Tag sources with `VER-2-10-4'.
-
- * docs/VERSION.TXT: Add entry for version 2.10.4.
- * docs/CHANGES: Updated.
-
- * README, src/base/ftver.rc, builds/windows/vc2010/index.html,
- builds/windows/visualc/index.html,
- builds/windows/visualce/index.html,
- builds/wince/vc2005-ce/index.html,
- builds/wince/vc2008-ce/index.html, docs/freetype-config.1:
- s/2.10.3/2.10.4/, s/2103/2104/.
-
- * include/freetype/freetype.h (FREETYPE_PATCH): Set to 4.
-
- * builds/unix/configure.raw (version_info): Set to 23:4:17.
- * CMakeLists.txt (VERSION_PATCH): Set to 4.
-
-2020-10-19 Werner Lemberg <wl@gnu.org>
-
- [sfnt] Fix heap buffer overflow (#59308).
-
- This is CVE-2020-15999.
-
- * src/sfnt/pngshim.c (Load_SBit_Png): Test bitmap size earlier.
-
-2020-10-17 Alexei Podtelezhnikov <apodtele@gmail.com>
-
- * src/sfnt/tt{colr,cpal}.c: Fix signedness warnings from VC++.
-
-2020-10-17 Alexei Podtelezhnikov <apodtele@gmail.com>
-
- * src/sfnt/sfwoff2.c (Read255UShort): Tweak types to please VC++.
-
-2020-10-10 Werner Lemberg <wl@gnu.org>
-
- * Version 2.10.3 released.
- ==========================
-
-
- Tag sources with `VER-2-10-3'.
-
- * docs/VERSION.TXT: Add entry for version 2.10.3.
+ * docs/VERSION.TXT: Add entry for version 2.11.1.
+ * docs/CHANGES, docs/release: Updated.
* README, src/base/ftver.rc, builds/windows/vc2010/index.html,
- builds/windows/visualc/index.html,
- builds/windows/visualce/index.html,
- builds/wince/vc2005-ce/index.html,
- builds/wince/vc2008-ce/index.html, docs/freetype-config.1:
- s/2.10.2/2.10.3/, s/2102/2103/.
-
- * include/freetype/freetype.h (FREETYPE_PATCH): Set to 3.
-
- * builds/unix/configure.raw (version_info): Set to 23:3:17.
- * CMakeLists.txt (VERSION_PATCH): Set to 3.
-
-2020-09-25 Werner Lemberg <wl@gnu.org>
-
- [autofit] Synchronize with ttfautohint.
-
- This corresponds to the following commits in the ttfautohint git
- repository:
-
- bb6842bd3bd437b7b4a7921b0376c860f5e73d18 Typo, formatting.
- d5c91ddb1cb310257a3dfe9a8e20e1fc51335faa Add Medefaidrin script.
-
- * src/autofit/afblue.dat: Add blue zone data for Medefaidrin.
- * src/autofit/afblue.c, src/autofit/afblue.h: Regenerated.
-
- * src/autofit/afscript.h: Add Medefaidrin standard characters.
-
- * src/autofit/afranges.c, src/autofit/afstyles.h: Add Medefaidrin
- data.
-
-2020-09-25 Werner Lemberg <wl@gnu.org>
-
- Move `scripts/make_distribution_archives.py` to `src/tools`.
-
- * scr/tools/scripts/make_distribution_archives.py: (_TOP_DIR,
- _SCRIPT_DIR): Updated to new location.
- (main): s/shutils.copyfile/shutils.copy/ to preserve file
- permissions.
- (main): Prefix source file paths with `git_dir` while copying files
- to allow calls of the script from other places than the top-level
- directory.
-
-2020-09-24 Werner Lemberg <wl@gnu.org>
-
- * src/cff/cffgload.c (cff_slot_load): Scale `vertBearingY`.
-
- Towards the end of the the function there is a call to
- `FT_Outline_Get_CBox` that retrieves the glyph bbox in scaled units.
- That sets `horiBearing{X,Y}` and `vertBearingX` but `vertBearingY`
- is left alone, and is not scaled.
-
- Patch from Eric Muller <emuller@amazon.com>.
-
-2020-09-24 Werner Lemberg <wl@gnu.org>
-
- * src/base/ftobjs.c (FT_Load_Glyph): Trace glyph metrics.
-
-2020-09-22 Werner Lemberg <wl@gnu.org>
-
- [meson] Move auxiliary scripts to `builds/meson`.
-
- Suggested by Alexei.
-
- * scripts/*.py: Move meson scripts to...
- * builds/meson/*.py: ... this new location.
-
- * meson.build: Updated.
-
-2020-09-21 David Turner <david@freetype.org>
-
- Add python script for building tarballs.
-
- * scripts/make_distribution_archives.py: New file.
-
- This standalone Python script should be equivalent to running `make
- dist` with the Make-based build system, with the following minor
- differences:
-
- - Since `make distclean` doesn't always clean up `objs/` properly,
- `make dist` archives may contain some stale binaries like
- `objs/.libs/libfreetype.so.6` or others.
-
- - `config.guess` and `config.sub` are not updated unless option
- `--gnu-config-dir=DIR` is used to specify the location of these
- files.
-
- - Some bits of the auto-generated reference documentation may
- appear in slightly different order, probably due to issues related
- to mkdocs and docwriter.
-
- As an example, the call
-
- scripts/make_distribution_archives.py /tmp/freetype2-dist
-
- creates the following files under `/tmp/freetype2-dist`:
-
- freetype-<version>.tar.gz
- freetype-<version>.tar.xz
- ft<winversion>.zip
-
-2020-09-21 Werner Lemberg <wl@gnu.org>
-
- * scripts/extract_freetype_version.py: Fix regex typos.
-
-2020-09-21 David Turner <david@freetype.org>
-
- Add Meson build project file.
-
- Example usage:
-
- # Configure Meson build in directory `build-meson` to generate
- # release binaries comparable to to the ones from the
- # autotools/make build system.
- meson setup build-meson \
- --prefix=/usr/local \
- --buildtype=debugoptimized \
- --strip \
- -Db_ndebug=true
-
- # After configuring the Meson build with the above command,
- # compile and install to `/usr/local/`; this includes a pkg-config
- # file.
- ninja -C build-meson install
-
- # Alternatively, compile and install to `/tmp/aa/usr/local/...`
- # for packaging.
- DESTDIR=/tmp/aa ninja -C build-meson install
-
- # Generate documentation under `build-meson/docs`.
- ninja -C build-meson docs
-
- Library size comparison for stripped `libfreetype.so` generated by
- all three build systems:
-
- - Default build (autotools + libtool): 712 KiB
- - CMake build (RelWithDebInfo): 712 KiB
- - Meson build: 712 KiB
-
-
- * meson.build: New top-level Meson build file for the library.
-
- * meson_options.txt: New file. It holds user-selectable options for
- the build, which can be printed with `meson configure`, and selected
- at `meson setup` or `meson --reconfigure` time with
- `-D<option>=<value>`.
-
- * scripts/parse_modules_cfg.py: A script invoked by `meson.build` to
- parse `modules.cfg` and extract important information out of it
- (i.e., the list of modules).
-
- * scripts/process_ftoption_h.py: New script invoked by `meson.build`
- to process the original `ftoption.h` file. It enables or disables
- configuration macro variables based on the available dependencies.
- This is similar to what other build systems are using (i.e., Meson's
- `configure_file()` command is not used here).
-
- * scripts/extract_freetype_version.py: New script invoked by
- `meson.build` to extract the FreeType version number from
- `<freetype/freetype.h>`.
-
- * scripts/extract_libtool_version.py: New script invoked by
- `meson.build` to extract the libtool `revision_info` data from
- `builds/unix/configure.raw`, and to generate the corresponding
- shared library suffix.
-
- * scripts/generate_reference_docs.py: New script invoked by
- `meson.build` to generate the FreeType 2 reference documentation
- (using the `docwriter` and `mkdocs` packages, which must be already
- installed).
-
-2020-09-11 Alexei Podtelezhnikov <apodtele@gmail.com>
-
- [raster] Improve the second pass (#58373).
-
- Besides dropout control the second horizontal sweep is supposed to
- clean up straight horizontal edges that are mishandled by the first
- vertical sweep when a line passes through pixel centers. This line
- would present as perfectly aligned span edges in the second sweep.
-
- * src/raster/ftraster.c (Horizontal_Sweep_Span): Replace the old
- implementation with a better one focusing on aligned span edges only.
-
-2020-09-08 Alexei Podtelezhnikov <apodtele@gmail.com>
-
- [raster] Tune SMART macro (#58352).
-
- Windows seems to perform smart dropout control at 26.6 precision.
- To mimick Windows independent of increased precision, we need to tweak
- the macro so that some close calls break down rather than up.
-
- * src/raster/ftraster.c (SMART): Tweak the macro.
-
-2020-09-08 Alexei Podtelezhnikov <apodtele@gmail.com>
-
- [raster] Introduce SMART macro.
-
- * src/raster/ftraster.c (SMART): New macro for smart dropout rounding.
- (Verstical_Sweep_Drop, Horizontal_Sweep_Drop): Use it.
-
-2020-09-03 Boris Dalstein <dalboris@gmail.com>
-
- [build] Make CMake install basic version information.
-
- * CMakeLists.txt: Do it.
-
-2020-09-02 Alexei Podtelezhnikov <apodtele@gmail.com>
-
- [truetype] Reduce Infinality footprint (cont'd).
-
- * src/truetype/ttinterp.c (Ins_DELTAP): Shrink variable scope.
- (Ins_SHPIX, Ins_MIRP): Revise if-logic.
-
-2020-09-02 Alexei Podtelezhnikov <apodtele@gmail.com>
-
- [truetype] Reduce Infinality footprint.
-
- * src/truetype/ttinterp.c (Ins_SHPIX, Ins_MSIRP, Ins_MIAP, Ins_MDRP,
- Ins_MIRP): Shrink variable scopes and consolidate ifdefs.
-
-2020-09-01 Alexei Podtelezhnikov <apodtele@gmail.com>
-
- [truetype] Refactor compensation color.
-
- * src/truetype/ttinterp.h (TT_Round_Func): Change the last argument.
- * src/truetype/ttinterp.c (Ins_ROUND, Ins_NROUND, Ins_MDAP, Ins_MIAP,
- Ins_MDRP, Ins_MIRP): Move compensation retrieval from here...
- (Round_*): ... to here.
- * src/truetype/ttobjs.c (tt_size_init_bytecode): Reserve zero
- compensation at color index 3.
-
-2020-08-28 Alexei Podtelezhnikov <apodtele@gmail.com>
-
- [smooth] Don't set target in direct mode.
-
- * src/smooth/ftsmooth.c (ft_smooth_raster_overlap): Remove assignment.
- (ft_smooth_raster_lcd) [!FT_CONFIG_OPTION_SUBPIXEL_RENDERING]: Ditto.
-
-2020-08-25 Alexei Podtelezhnikov <apodtele@gmail.com>
-
- * src/smooth/ftsmooth.c (ft_smooth_raster_overlap): Limit width.
-
- Segmentation fault reported as
-
- https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=24729
-
-2020-08-22 Werner Lemberg <wl@gnu.org>
-
- * src/truetype/ttgload.c (TT_Get_VMetrics): Add tracing message.
-
-2020-08-05 Alexei Podtelezhnikov <apodtele@gmail.com>
-
- [truetype] Retain OVERLAP_SIMPLE and OVERLAP_COMPOUND.
-
- For glyphs with OVERLAP_SIMPLE or OVERLAP_COMPOUND, set
- FT_OUTLINE_OVERLAP to render them with direct oversampling, which
- mitigates artifacts (see 3bb512bc9f62).
-
- * include/freetype/ftimage.h (FT_OUTLINE_OVERLAP): Redefine to rhyme
- with OVERLAP_SIMPLE.
- * src/base/ftgloadr.c (FT_GlyphLoader_Rewind): Reset outline flags.
- * src/truetype/ttgload.c
- (TT_Load_Simple_Glyph): Retain OVERLAP_SIMPLE.
- (load_truetype_glyph): Retain OVERLAP_COMPOUND.
-
-2020-08-04 Alexei Podtelezhnikov <apodtele@gmail.com>
-
- * src/truetype/ttgload.c (TT_Load_Glyph): More tracing.
-
-2020-07-28 Alexei Podtelezhnikov <apodtele@gmail.com>
-
- Hide internal functions with SunPro.
-
- * include/freetype/internal/compiler-macros.h
- (FT_INTERNAL_FUNCTION_ATTRIBUTE) <__SUNPRO_C>: Define as __hidden.
-
-2020-07-28 Anuj Verma <anujv@iitbhilai.ac.in>
-
- Fix static compilation with Visual C.
-
- * include/freetype/internal/compiler-macros.h
- (FT_INTERNAL_FUNCTION_ATTRIBUTE) <_WIN32>: Define as empty.
-
-2020-07-28 Priyesh Kumar <priyeshkkumar@gmail.com>
-
- Fix `-Wformat' compiler warnings.
-
- * src/*: Fix format specifiers.
-
- * builds/unix/ftsystem.c (FT_Stream_Open): Ditto.
-
-2020-07-25 Werner Lemberg <wl@gnu.org>
-
- Fix `-Wformat' compiler warnings.
-
- Problem reported by Priyesh kumar <priyeshkkumar@gmail.com>
-
- * src/base/ftoutln.c (FT_Outline_Decompose): Fix number of arguments
- to tracing macro.
-
- * src/bdf/bdfdrivr.c (bdf_cmap_char_next, bdf_get_bdf_property):
- Ditto.
-
- * src/cache/ftcbasic.c (ftc_basic_family_get_count): Ditto.
- Reformulate message.
-
- * src/pcf/pcfdrivr.c (pcf_get_bdf_property): Ditto.
-
- * src/sfnt/sfwoff2.c (woff2_open_font): Ditto.
- Trace table offset, too.
-
- * src/truetype/ttgxvar.c (ft_var_apply_tuple): Ditto.
-
-2020-07-23 Werner Lemberg <wl@gnu.org>
-
- * src/sfnt/sfwoff2.c (woff2_decompress): Fix compiler warning.
-
- Reported by Hin-Tak.
-
-2020-07-12 Werner Lemberg <wl@gnu.org>
-
- * builds/unix/configure.raw: Fix inclusion of `ftoption.h'.
-
-2020-07-07 Werner Lemberg <wl@gnu.org>
-
- Fix clang warnings.
-
- * include/freetype/internal/autohint.h
- (FT_DECLARE_AUTOHINTER_INTERFACE): New macro.
- * src/autofit/afmodule.h: Use it to declare
- `af_autofitter_interface'.
-
- * include/freetype/internal/ftobjs.h (FT_DECLARE_GLYPH): New macro.
- * src/base/ftbase.h: Use it to declare `ft_bitmap_glyph_class' and
- `ft_outline_glyph_class'.
-
- * src/base/ftglyph.c: Include `ftbase.h'.
-
- * src/cff/cffparse.c (cff_parser_run): Fix type of `t2_size'.
-
- * src/pcf/pcfdrivr.c (pcf_cmap_char_next): Fix type of `result'.
-
- * src/psaux/psauxmod.c (psaux_module_class): Use `FT_DEFINE_MODULE'.
- * src/psaux/psauxmod.h: Declare `afm_parser_funcs',
- `t1_cmap_classes', `cff_decoder_funcs', and `psaux_module_class'.
-
- * src/pshinter/pshmod.c: Include `pshmod.h'.
-
- * src/sfnt/sfwoff2.c (ROUND4, WRITE_SHORT): Fix implicit sign
- conversion.
- (compute_ULong_sum): Fix return type.
- Fix implicit sign conversion.
- (store_points): Fix type of `last_flag', `repeat_count', and `flag'.
- Use casts to avoid warnings.
- (reconstruct_glyf): Fix implicit sign conversion.
- Use cast to avoid warning.
- (get_x_mins): Fix implicit sign conversion.
- * src/sfnt/ttcmap.c: Undef `TTCMAPCITEM'.
- * src/sfnt/ttcmap.h: Define `TTCMAPCITEM' and include `ttcmapc.h' to
- declare cmap classes.
-
- * src/smooth/ftsmooth.c (ft_smooth_overlap_spans): Use cast.
-
- * src/truetype/ttinterp.c (Ins_MIAP): Fix typo.
-
-2020-07-07 David Turner <david@freetype.org>
-
- [build] Really fix multi and C++ builds.
-
- The following builds were still failing due to previous changes:
-
- make multi
- make multi CC="c++"
- make CC="c++"
-
- This patch fixes the issues, which were missing includes to get the
- right macro definitions in multi-build mode.
-
- Also, `FT_UNUSED' is actually used by third-party code, so move it
- back to `public-macros.h' to avoid breaking it.
-
- * include/freetype/config/public-macros.h (FT_EXPORT): Remove
- special definition for C++.
- (FT_UNUSED): Define here instead of...
- * include/freetype/config/compiler-macros.h: ... here.
- (FT_FUNCTION_DECLARATION): Remove special definition for C++.
- (FT_LOCAL_ARRAY_DEF): Fix definition.
-
- * src/cache/ftccback.h, src/lzw/ftzopen.h, src/gxvalid/gxvmort.h,
- src/gxvalid/gxvmorx.h: Add `FT_BEGIN_HEADER' and `FT_END_HEADER'.
-
-2020-07-06 David Turner <david@freetype.org>
-
- [build] Fix multi and C++ builds.
-
- The following builds were failing due to previous changes:
-
- make multi
- make multi CC="c++"
-
- * include/freetype/config/ftconfig.h: Remove `FT_END_HEADER'.
-
- * include/freetype/config/ftheader.h (FT_BEGIN_HEADER,
- FT_END_HEADER): Protect against redefinition.
-
- * src/cache/ftccache.h, src/cache/ftcmru.h, src/pcf/pcfutil.h,
- src/psaux/pserror.h, src/psaux/psft.h, src/psaux/psstack.h,
- src/sfnt/woff2tags.h: Include `compiler-macros.h'.
-
- * src/sfnt/woff2tags.c: Include `woff2tags.h'.
-
-2020-07-06 Werner Lemberg <wl@gnu.org>
-
- [psaux] Improve `t1_decoder_parse_metrics' (#58646).
-
- * src/psaux/t1decode.c (t1_decoder_parse_metrics): Copy
- corresponding code from old engine's `t1_decoder_parse_charstrings'
- function to handle `op_callsubr' and `op_return'.
-
-2020-07-05 David Turner <david@freetype.org>
-
- [build] Improve visibility support of library function names.
-
- * include/freetype/config/public-macros.h
- (FT_PUBLIC_FUNCTION_ATTRIBUTE): New macro to tag functions as
- public (and thus exportable).
- (FT_EXPORT): Use it.
-
- * include/freetype/config/compiler-macros.h
- (FT_INTERNAL_FUNCTION_ATTRIBUTE): New macro to tag functions as
- internal to the library (and thus hidden). Note that on ELF
- systems, all internal functions have hidden visibility, which avoids
- the need to enforce this when invoking the compiler (e.g., with an
- option like `-fvisibility=hidden').
-
- (FT_FUNCTION_DECLARATION, FT_FUNCTION_DEFINITION): New base macros
- to deal with C and C++ linkage issues at the same time.
-
- (FT_LOCAL, FT_LOCAL_DEF, FT_LOCAL_ARRAY, FT_LOCAL_ARRAY_DEF,
- FT_BASE, FT_BASE_DEF, FT_EXPORT_VAR, FT_BASE_CALLBACK,
- FT_BASE_CALLBACK_DEF): Redefined using new macros.
-
-2020-07-05 David Turner <david@freetype.org>
-
- [build] Split off more stuff from `ftconfig.h'.
-
- * builds/unix/ftconfig.h.in, builds/vms/ftconfig.h,
- include/freetype/config/ftconfig.h: Split off macro definitions
- required by the FreeType API headers to...
- * include/freetype/config/public-macros.h: ...this new file.
-
- * builds/unix/ftconfig.h.in, builds/vms/ftconfig.h,
- include/freetype/config/ftconfig.h: Split off macro definitions used
- by the library but not to be exposed to clients to...
- * include/freetype/config/compiler-macros.h: ...this new file.
-
- * include/freetype/internal/*.h, src/raster/ftraster.h: Include
- `compiler-macros.h' where needed.
-
-2020-07-05 David Turner <david@freetype.org>
-
- [build] Move mac support code to `mac-support.h'.
-
- * builds/unix/ftconfig.h.in, builds/vms/ftconfig.h,
- include/freetype/config/ftconfig.h: Split off mac-specific stuff
- to...
- * include/freetype/config/mac-support.h: ...this new file.
-
- * CMakeLists.txt, builds/unix/configure.raw: Remove `/undef ->
- #undef' string replacement; the affected code is no longer part of
- the `ftconfig.h' template.
-
-2020-07-05 David Turner <david@freetype.org>
-
- [build] Put integer type definitions into `integer-types.h'.
-
- Refactor some of the `ftconfig.h' headers and template to move the
- definition of the FreeType integer types (e.g., `FT_Int16') to a
- common header file `freetype/config/integer-types.h'.
-
- * builds/unix/ftconfig.h.in, builds/vms/ftconfig.h,
- include/freetype/config/ftconfig.h: Split off integer type
- definition stuff to...
- * include/freetype/config/integer-types.h: ...this new file.
-
- * builds/unix/ftconfig.h.in: Control the definition of
- `FT_SIZEOF_INT' and `FT_SIZEOF_LONG' with macro
- `FT_USE_AUTOCONF_SIZEOF_TYPES'. If these are not defined, auto
- detection happens in `integer-types.h' as usual based on `INTXX_MAX'
- values. Otherwise the autoconf-detected values are used.
-
- * builds/unix/configure.raw (CPPFLAGS): Don't include path to
- `config' directory. Instead, ...
- (FT_CONFIG_STANDARD_LIBRARY_H): Use complete path.
-
-2020-07-05 David Turner <david@freetype.org>
-
- [build] Rename `build/unix/ftconfig.in' to `ftconfig.h.in'.
-
- Since we are no longer limited to 8.3 file names, it is simpler to
- follow the usual conventions for template files.
-
- * builds/unix/ftconfig.in: Renamed to...
- * builds/unix/ftconfig.h.in: ...this.
-
- * CMakeLists.txt, builds/unix/configure.raw: Updated.
-
-2020-07-03 Alexei Podtelezhnikov <apodtele@gmail.com>
-
- [smooth] Introduce direct oversampling for overlaps.
-
- This implements oversampling to mitigate artifacts in pixels partially
- covered by overlapping contours. It turns out that the 4x4
- oversampling is sufficient but, at least, quadruples the rendering
- time. The outline has to set FT_OUTLINE_OVERLAP to use this method.
-
- * include/freetype/ftimage.h (FT_OUTLINE_OVERLAP): New flag.
- * src/smooth/ftsmooth.c (ft_smooth_render): Check it to...
- (ft_smooth_raster_overlap): ... inflate outline and set up direct
- rendering for oversampling with...
- (ft_smooth_overlap_spans): ... new span function that integrates them.
-
-2020-07-03 Alexei Podtelezhnikov <apodtele@gmail.com>
-
- [smooth] Use direct rendering mode in Harmony.
-
- Instead of rendering 3 bitmaps side by side and reshuffling, we use
- direct rendering to deliver the bitmaps on each third byte.
-
- * src/smooth/ftsmooth.c (ft_smooth_raster_lcd)
- [!FT_CONFIG_OPTION_SUBPIXEL_RENDERING]: Set up direct mode with...
- (ft_smooth_lcd_spans): ... new span function.
-
-2020-07-03 Alexei Podtelezhnikov <apodtele@gmail.com>
-
- [smooth] Separate LCD paths from gray rendering.
-
- This makes `ft_smooth_render' a lot smaller and easier to follow. It
- also cleanly separates Harmony and ClearType-style LCD rendering
- algorithms. Now I only wish to move LCD filtering and geometry from
- FT_Library to FT_Renderer.
-
- * src/smooth/ftsmooth.c (ft_smooth_render): Move LCD code from here...
- (ft_smooth_raster_lcd, ft_smooth_raster_lcdv): ... to here.
- [FT_CONFIG_OPTION_SUBPIXEL_RENDERING]: Reorganize #ifdef's.
-
-2020-06-20 Sebastian Rasmussen <sebras@gmail.com>
-
- [cff] Fix handling of `style_name == NULL' (#58630).
-
- * src/cff/cffobjs.c (cff_face_init): If a call to `cff_strcpy' fails
- by returning NULL in `cff_face_init', `remove_style' is still
- called. This means that the NULL pointer is dereferenced, causing a
- crash.
-
-2020-06-19 Sebastian Rasmussen <sebras@gmail.com>
-
- [cff] Fix another two memory leaks (#58629).
-
- * src/cff/cffobjs.c (cff_size_init): If a call to `funcs->create'
- fails to allocate one of the `internal->subfont' variables, make
- sure to free `internal->topfont' and any successfully allocated
- subfonts.
-
-2020-06-19 Sebastian Rasmussen <sebras@gmail.com>
-
- [psaux] Fix memory leak (#58626).
-
- * src/psaux/psstack.c (cf2_stack_init): If `cf2_stack_init' fails to
- allocate the stack, return error early.
-
-2020-06-19 Sebastian Rasmussen <sebras@gmail.com>
-
- [base] Fix memory leak (#58624).
-
- * src/base/ftobjs.c (FT_New_Size): Avoid trying to free
- `size->internal' unless `size' has been allocated. This mistake
- appeared in the fix for issue #58611.
-
-2020-06-19 Alexei Podtelezhnikov <apodtele@gmail.com>
-
- [base] Rework d1180b5f9598 until further notice.
-
- * src/base/ftoutln.c (FT_Outline_Get_Orientation): Reject large
- outlines.
-
-2020-06-19 Sebastian Rasmussen <sebras@gmail.com>
-
- [cff, cid] Fix segfaults in case of error (#58621).
-
- * src/cff/cffobjs.c (cff_slot_done), src/cid/cidobjs.c
- (cid_slot_done): If `ft_glyphslot_init' fails to allocate
- `internal', then the class' `done_slot' callback (called by
- `ft_glyphslot_done') must not dereference the pointer to `internal'.
-
-2020-06-19 Werner Lemberg <wl@gnu.org>
-
- [base] Fix UBSAN error.
-
- Reported as
-
- https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=23166
-
- * src/base/ftoutln.c (FT_Outline_Get_Orientation): Avoid values
- larger than 32 bits.
-
-2020-06-19 Werner Lemberg <wl@gnu.org>
-
- [woff2] Fix segfault.
-
- Reported as
-
- https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=23402
-
- * src/sfnt/sfwoff2.c (get_x_mins): Check whether `loca' table
- exists.
-
-2020-06-19 Stephen McDowell <svenevs.dev@gmail.com>
-
- [sfnt] Support Intel compilers.
-
- * src/sfnt/pngshim.c (premultiply_data): Intel compilers do not
- currently support `__builtin_shuffle'.
-
-2020-06-19 Sebastian Rasmussen <sebras@gmail.com>
-
- [base] Fix memory leak (#58611).
-
- * src/base/ftobjs.c (FT_New_Size): When the call to `clazz->init_size'
- fails, make sure to free `size->internal'.
-
-2020-06-19 Sebastian Rasmussen <sebras@gmail.com>
-
- [cff] Fix memory leak (#58610).
-
- * src/cff/cffobjs.c (cff_size_init): When the call to
- `funcs->create' fails, make sure to free `internal'.
-
-2020-06-19 Werner Lemberg <wl@gnu.org>
-
- * src/cff/cffload.c (cff_index_get_pointers): Rename `t' to `tbl'.
-
-2020-06-19 Sebastian Rasmussen <sebras@gmail.com>
-
- [cff] Free table upon error allocating other data (#58609).
-
- * src/cff/cffload.c (cff_index_get_pointers): When new_bytes fails
- to allocate, make sure to free the table. Do the same for both
- allocations if there is a later error.
-
-2020-06-13 Werner Lemberg <wl@gnu.org>
-
- Remove redundant inclusion of `ft2build.h'.
-
- * */*: Remove `#include <ft2build.h>' where possible.
-
- * include/freetype/freetype.h: Remove cpp error about missing
- inclusion of `ft2build.h'.
-
-2020-06-08 David Turner <david@freetype.org>
-
- Make macros for header file names optional.
-
- We no longer have to take care of the 8.3 file name limit; this
- allows us (a) to introduce longer, meaningful file names, and (b) to
- avoid macro names in `#include' lines altogether since some
- compilers (most notably Visual C++) doesn't support this properly.
-
- */*: Replace
-
- #include FOO_H
-
- with
-
- #include <freetype/foo.h>
-
- or something similar. Also update the documentation.
-
-2020-06-02 Werner Lemberg <wl@gnu.org>
-
- * src/sfnt/ttcmap.c (tt_face_build_cmaps): Trace number of cmaps.
-
-2020-05-18 David Turner <david@freetype.org>
-
- Remove obsolete HAVE_STDINT_H probing macro.
-
- This macro was updated by the unix configure script and the
- `CMakeLists.txt' one, but is never used in the source tree (nor is
- <stdint.h> included anywhere).
-
- * CMakeLists.txt, builds/unix/ftconfig.in: Don't handle
- `HAVE_STDINT_H'.
-
-2020-05-18 David Turner <david@freetype.org>
-
- Remove Jamfile files from the tree.
-
- These have not been used in a very, very long time, so better remove
- them. A corresponding patch will be submitted to the
- `freetype2-demos' repository.
-
- * src/Jamfile, src/*/Jamfile, Jamrules: Delete.
-
-2020-05-12 Alexei Podtelezhnikov <apodtele@gmail.com>
-
- [smooth] Turn on LCD filtering during FreeType initialization.
-
- * src/smooth/ftsmooth.c (ft_smooth_init): Enable LCD filtering.
-
- * include/freetype/ftlcdfil.h: Document it, remove patent warnings.
- * include/freetype/freetype.h (FT_Render_Mode): Updated.
- * include/freetype/config/ftoption.h, devel/ftoption.h
- [FT_CONFIG_OPTION_SUBPIXEL_RENDERING]: Do not mention patents.
-
-2020-05-11 Alexei Podtelezhnikov <apodtele@gmail.com>
-
- [smooth] Stop using dedicated LCD modules and classes.
-
- The LCD modules were never truly independent. They mostly served as
- a way to disable patented LCD rendering, which is no longer necessary.
- The `smooth' module now handles LCD modes as well.
-
- * src/smooth/ftsmooth.c (ft_smooth_lcd_renderer_class.
- ft_smooth_lcdv_renderer_class): Deleted.
- (ft_render_smooth): Reworked from `ft_render_smooth_generic'.
- * src/smooth/ftsmooth.h: Remove dedicated LCD classes.
- * src/smooth/module.mk: Remove dedicated LCD modules.
- * include/freetype/config/ftmodule.h: Ditto.
- * builds/amiga/include/config/ftmodule.h: Ditto.
- * include/freetype/ftmodapi.h: Do not mention LCD modules.
-
-2020-05-09 Werner Lemberg <wl@gnu.org>
-
- * Version 2.10.2 released.
- ==========================
-
-
- Tag sources with `VER-2-10-2'.
-
- * docs/VERSION.TXT: Add entry for version 2.10.2.
-
- * README, Jamfile (RefDoc), src/base/ftver.rc,
- builds/windows/vc2010/index.html, builds/windows/visualc/index.html,
- builds/windows/visualce/index.html,
- builds/wince/vc2005-ce/index.html,
- builds/wince/vc2008-ce/index.html, docs/freetype-config.1:
- s/2.10.1/2.10.2/, s/2101/2102/.
-
- * include/freetype/freetype.h (FREETYPE_PATCH): Set to 2.
-
- * builds/unix/configure.raw (version_info): Set to 23:2:17.
- * CMakeLists.txt (VERSION_PATCH): Set to 2.
-
- * docs/CHANGES: Updated.
-
-2020-05-08 Jakub Alba <jalba@vewd.com>
-
- * src/truetype/ttinterp.c (TT_RunIns): Adjust loop counter (#58319).
-
- The font that exceeds the old limit is Icono Regular, version
- 1.00000.
-
-2020-05-03 Alexei Podtelezhnikov <apodtele@gmail.com>
-
- * builds/freetype.mk: Refactor for readability.
-
-2020-05-02 Alexei Podtelezhnikov <apodtele@gmail.com>
-
- [builds] Clean up Windows CE project files.
-
- Remove version from filenames that caused a lot of polution in the
- release process. Use VERSIONINFO resource instead.
-
- * builds/wince/vc2005-ce/freetype.vcproj,
- builds/wince/vc2008-ce/freetype.vcproj,
- builds/windows/visualce/freetype.vcproj,
- builds/windows/visualce/freetype.dsp: s/2101//g, but add `ftver.rc'.
- * builds/wince/vc2008-ce/index.html,
- builds/wince/vc2005-ce/index.html,
- builds/windows/visualce/index.html: s/2101//g.
-
-2020-05-01 Alexei Podtelezhnikov <apodtele@gmail.com>
-
- * devel/ft2build.h: Override FT_CONFIG_MODULES_H here as well.
-
-2020-05-01 Alexei Podtelezhnikov <apodtele@gmail.com>
-
- [builds/unix] Consolidate marco overrides (for the demos to see them).
-
- * builds/unix/unix-cc.in (FT_CONFIG_MODULES_H, FT_CONFIG_OPTIONS_H):
- Override them here...
- * builds/freetype.mk: ... instead of here.
-
-2020-04-08 Werner Lemberg <wl@gnu.org>
-
- Allow setting `CC' in Unix build (#58051).
-
- * builds/unix/unix-cc.in (CC): Use `override'. The command line
- value of `CC' (if any) is stored already in `CCraw'.
-
-2020-04-04 Nikhil Ramakrishnan <ramakrishnan.nikhil@gmail.com>
-
- [woff2] Return if single stream operation fails.
-
- * src/sfnt/sfwoff2.c (get_x_mins): Do it.
-
- * src/sfnt/woff2tags.c: Remove unused include.
-
-2020-03-22 Nikhil Ramakrishnan <ramakrishnan.nikhil@gmail.com>
-
- [docs] Fix building docs if `srcdir' != `builddir'.
-
- `docs/reference/*' was moved one directory up in commit 237fed6.
-
- * builds/unix/unix-def.in (PIP): Remove variable.
-
- * configure: Create `docs' directory and copy assets from
- `docs/markdown'.
-
- * docs/README: Output directory is `reference'.
-
-2020-03-21 Nikhil Ramakrishnan <ramakrishnan.nikhil@gmail.com>
-
- [docwriter] Drop support for Python < 3.5.
-
- Python versions < 3.5 have reached end-of-life and as such, no
- security or bug fixes will be provided for those versions. See
-
- https://devguide.python.org/#status-of-python-branches
-
- for more information.
-
- * Jamfile (RefDoc): Add `site' parameter.
-
- * builds/detect.mk (std_setup): Update Python version requirement.
-
- * builds/freetype.mk (refdoc-venv): Use pip as `python -m pip'.
-
- * builds/unix/ax_compare_version.m4,
- builds/unix/ax_prog_python_version.m4: Macros to detect Python
- version. New files.
-
- * builds/unix/configure.raw: Check for Python >= 3.5 and remove
- check for `pip'.
-
- * docs/CHANGES, docs/INSTALL.GNU, docs/README: Updated.
-
-2020-03-02 Moazin Khatti <moazinkhatri@gmail.com>
-
- [gzip] Support `gzip' encoded header conditionally.
-
- In order to support `gzip' encoded header the call to
- `inflateInit2' was modified in commit 6a92b1fadde26477a9179.
- However, this code breaks with the outdated internal version
- of zlib. This is a temporary fix to conditionally support
- `gzip' encoded header whenever a system installation of zlib
- is being used.
-
- Problem report in
-
- https://lists.nongnu.org/archive/html/freetype-devel/2020-02/msg00023.html
-
- * src/gzip/ftgzip.c (FT_Gzip_Uncompress): Change the the call to
- `inflateInit2' depending on whether the system installation is
- being used or the internal copy.
-
-2020-02-29 Ben Wagner <bungeman@google.com>
-
- [truetype] Fix state of `FT_Face' for buggy `gvar' tables (#57923).
-
- By resetting the blend as implemented with this commit fonts with
- invalid `gvar' tables may keep calling into `ft_var_load_gvar' from
- `tt_set_mm_blend' and failing, but the font was invalid anyway and
- we want to keep seeing the failure in `tt_set_mm_blend'.
-
- * src/truetype/ttgxvar.c (ft_var_load_gvar): Calculate length of
- offset array once.
- Allocate arrays after `FT_FRAME_ENTER' (extra check before
- allocating and avoid needing to free array later if error entering
- frame).
- Always call `FT_FRAME_EXIT'.
- Consistently set counts immediately after array initialized.
- Reset the blend (particularly `blend->glyphoffsets') on failure.
-
-2020-03-01 Nikhil Ramakrishnan <ramakrishnan.nikhil@gmail.com>
-
- [docs] Update docwriter stylesheet.
-
- This change is required to support docwriter 1.2.1.
-
- See
-
- https://github.com/freetype/docwriter/issues/36
-
- for more information.
-
- * docs/markdown/stylesheets/extra.css:
- (.md-typeset code) -> (.md-typeset pre>code)
- (pre) -> (pre>code)
- (p, .md-typeset p, h4): Remove commented styles.
- (table.index): Remove unused styles.
-
-2020-02-28 Ben Wagner <bungeman@google.com>
-
- [truetype] Add better checks for loading `gvar' table (#57905).
-
- * src/truetype/ttgxvar.c (ft_var_load_gvar): Delay settings of any
- `blend->xxxcount' values until the corresponding data has been
- checked.
- Also do some sanitizing to avoid a too early exit.
-
- (TT_Vary_Apply_Glyph_Deltas): Improve tracing message.
-
-2020-02-27 Werner Lemberg <wl@gnu.org>
-
- Make `FT_HAS_*' and `FT_IS_*' really return true (#57906).
-
- * include/freetype/freetype.h (FT_HAS_*, FT_IS_*): Implement it.
-
-2020-02-25 Dominik Röttsches <drott@chromium.org>
-
- Fix for CFF space glyph regression (#57541).
-
- * src/psaux/psft.c (cf2_decoder_parse_substrings): Replace early-out
- with FT_OFFSET.
-
-2020-02-22 Werner Lemberg <wl@gnu.org>
-
- [woff2] Fix font table access.
-
- Reported as
-
- https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=20778
-
- * src/sfnt/sfwoff2.c (get_x_mins): Explicitly check for presence of
- `head' table, which might not have been processed yet.
-
-2020-02-21 Werner Lemberg <wl@gnu.org>
-
- [psaux] Make `t1_decoder_parse_metrics' handle `op_div' (#57519).
-
- * src/psaux/t1decode.c (t1_decoder_parse_metrics): Copy
- corresponding code from old engine's `t1_decoder_parse_charstrings'
- function.
-
-2020-02-19 Nikolaus Waxweiler <nikolaus.waxweiler@daltonmaag.com>
-
- [autofit] Add support for Hanifi Rohingya script.
-
- * src/autofit/afblue.dat: Add blue zone data for Hanifi Rohingya.
- * src/autofit/afblue.c, src/autofit/afblue.h: Regenerated.
-
- * src/autofit/afscript.h: Add Hanifi Rohingya standard character.
-
- * src/autofit/afranges.c, src/autofit/afstyles.h: Add Hanifi
- Rohingya data.
-
-2020-02-19 Werner Lemberg <wl@gnu.org>
-
- Require HarfBuzz 1.8.
-
- * builds/unix/configure.raw, CMakeLists.txt: Request HarfBuzz 1.8.0
- or newer.
-
- We are going to add auto-hinter support for Hanifi Rohingya, which
- was introduced in Unicode 11.0.
-
-2020-02-12 Werner Lemberg <wl@gnu.org>
-
- * src/sfnt/ttcmap.c (tt_face_build_cmaps): Ignore version (#57708).
-
-2020-02-04 Werner Lemberg <wl@gnu.org>
-
- * src/truetype/ttinterp.c (TT_RunIns): Adjust loop counter (#57732).
-
- The font that exceeds the old limit is Constantine, version 1.001.
-
-2020-01-04 Werner Lemberg <wl@gnu.org>
-
- [base] Fix `FREETYPE_PROPERTIES=type1:hinting-engine=adobe`.
-
- * src/base/ftpsprop.c (ps_property_set) [hinting-engine]: Avoid an
- incorrect return value that caused a warning. The function did the
- right thing, though.
-
-2020-01-03 Werner Lemberg <wl@gnu.org>
-
- [woff2] Fix memory leaks and a runtime warning.
-
- Reported as
-
- https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=19773
- https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=18101
-
- * src/sfnt/sfwoff2.c (compute_ULong_sum): Add missing cast.
- (reconstruct_hmtx): Add missing deallocation calls.
-
-2020-01-02 Dominik Röttsches <drott@chromium.org>
-
- [truetype] Fix UBSan warning on offset to nullptr (#57501).
-
- * src/truetype/ttinterp.c (Ins_CALL): Fail if `exc->FDefs' is null.
-
-2019-12-31 Nikhil Ramakrishnan <ramakrishnan.nikhil@gmail.com>
-
- [woff2] Allow bitmap-only fonts (#57394).
-
- * src/sfnt/sfwoff2.c (reconstruct_font): Fix test for `glyf' and
- `loca' tables.
-
-2019-12-21 Hugh McMaster <hugh.mcmaster@outlook.com>
-
- [docs] (2/2) Fix generation of API documentation (#56745).
-
- Creating the API Reference in the (new) `reference' sub-directory is
- consistent with other documentation sub-topics, such as `design',
- `glyphs' and `tutorial'.
-
- This patch fixes broken hyperlinks in the documentation pointing to
- and from the API Reference. It also allows web assets to load from
- their relative paths.
-
- * builds/freetype.mk (DOC_DIR): Adjust.
- (refdoc, refdoc-venv): Add `--site' argument.
-
- * builds/toplevel.mk (do-dist): Updated.
-
-2019-12-21 Hugh McMaster <hugh.mcmaster@outlook.com>
-
- [docs] (1/2) Move static web assets (#56745).
-
- * docs/reference/*: Move ...
- * docs: ... one directory up.
-
-2019-12-21 Dominik Röttsches <drott@chromium.org>
-
- Fix more UBSan warnings on adding offset to nullptr (#57432).
-
- * src/truetype/ttinterp.c (Ins_LOOPCALL), src/psaux/psft.c
- (cf2_initLocalRegionBuffer): Use `FT_OFFSET'.
-
-2019-12-16 Werner Lemberg <wl@gnu.org>
-
- [truetype] Fix UBSan warnings on adding offsets to nullptr.
-
- Reported as
-
- https://bugs.chromium.org/p/chromium/issues/detail?id=1032152
-
- * src/truetype/ttinterp.c (Ins_FDEF, Ins_IDEF): Use `FT_OFFSET'.
-
-2019-12-14 Werner Lemberg <wl@gnu.org>
-
- [truetype] Fix integer overflow.
-
- Reported as
-
- https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=19305
-
- * src/truetype/ttinterp.c (Ins_MIRP): Use `ADD_LONG'.
-
-2019-12-13 Werner Lemberg <wl@gnu.org>
-
- Another bunch of UBSan warnings on adding offsets to nullptr.
-
- Reported as
-
- https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=19427
- https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=19433
- https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=19441
- https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=19451
- https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=19452
- https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=19457
-
- * src/autofit/aflatin.c (af_latin_hints_compute_segments,
- af_latin_hints_compute_edges): Use `FT_OFFSET'.
-
- * src/base/ftstream.c (FT_Stream_EnterFrame): Use `FT_OFFSET'.
-
- * src/psaux/cffdecode.c (cff_decoder_parse_charstrings): Exit early
- if there is no charstring.
-
- * src/psaux/psobjs.c (t1_decrypt): Use `FT_OFFSET'.
-
- * src/smooth/ftsmooth.c (ft_smooth_render_generic): Exit early for
- zero bitmap dimensions.
-
-2019-12-09 Dominik Röttsches <drott@chromium.org>
-
- Fix more UBSan warnings on adding offset to nullptr (#57384).
-
- * src/smooth/ftsmooth.c (ft_smooth_render_generic),
- src/psaux/psobjs.c (ps_table_add): Use `FT_OFFSET'.
-
-2019-12-05 Werner Lemberg <wl@gnu.org>
-
- * src/truetype/ttinterp.c (TT_RunIns): Use `FT_OFFSET'.
-
- Reported as
-
- https://bugs.chromium.org/p/chromium/issues/detail?id=1030614
-
-2019-12-03 Werner Lemberg <wl@gnu.org>
-
- More nullptr offset UBSan warnings (#57331, #57347).
-
- * src/autofit/afcjk.c (af_cjk_hints_compute_segments),
- src/psaux/psft.c (cf2_getSeacComponent), src/truetype/ttinterp.c
- (Ins_UNKNOWN): Use `FT_OFFSET'.
-
-2019-11-29 Dominik Röttsches <drott@chromium.org>
-
- Avoid more nullptr offset UBSan warnings (#57316).
-
- * src/base/ftoutln.c (FT_Outline_Transform): Bail on empty points.
- * src/cff/cffload.c (cff_subfont_load): Use `FT_OFFSET'.
- * src/psaux/psft.c (cf2_decoder_parse_substrings): Early out if
- `charstring_base' or `charstring_len' are null.
- * src/sfnt/ttload.c (tt_face_load_name): Use `FT_OFFSET'.
-
-2019-11-23 John Stracke <jstracke@Google.com>
-
- [base] Really fix #57194.
-
- Apply accidentally missed second part of patch.
-
- * src/base/ftgloadr.c (FT_GlyphLoader_CheckPoints): Call
- `FT_GlyphLoader_CreateExtra'.
-
-2019-11-23 Werner Lemberg <wl@gnu.org>
-
- [truetype] Avoid sanitizer warning (#57289).
-
- * src/truetype/ttpload.c (tt_face_get_device_metrics): Use
- `FT_OFFSET'.
-
-2019-11-23 Armin Hasitzka <prince.cherusker@gmail.com>
-
- [truetype] Fix integer overflow (#57287).
-
- * src/truetype/ttgload.c (compute_glyph_metrics): Use `SUB_LONG'.
-
-2019-11-23 Ben Wagner <bungeman@google.com>
-
- [sfnt] Avoid sanitizer warning (#57286).
-
- * src/sfnt/ttcmap.c (tt_face_build_cmaps): Avoid possible `NULL +
- offset' computation.
- Tag `table' as `const'.
-
-2019-11-23 John Stracke <jstracke@Google.com>
- Werner Lemberg <wl@gnu.org>
-
- [base] Fix `NULL + offset' sanitizer warnings (#57194).
-
- * src/base/ftgloadr.c (FT_GlyphLoader_Adjust_Points,
- FT_GlyphLoader_Adjust_Subglyphs): Use `FT_OFFSET'.
- (FT_GlyphLoader_CreateExtra): Add short cut if some values are zero.
-
-2019-11-23 Werner Lemberg <wl@gnu.org>
-
- * include/freetype/internal/ftmemory.h (FT_OFFSET): New macro.
-
- Use this for `base + offset' pointer calculations where `base' can
- be NULL (triggering a sanitizer warning even if the resulting
- pointer gets never dereferenced since it is undefined behaviour
- in C).
-
- Suggested by Ben Wagner.
-
-2019-11-23 Ben Wagner <bungeman@google.com>
-
- [sfnt] Ensure OTTO fonts have tables (#57285).
-
- * src/sfnt/ttload.c (tt_face_load_font_dir): Add test.
-
-2019-11-23 Behdad Esfahbod <behdad@behdad.org>
-
- Minor fixes for recent compilers.
-
- * src/gzip/infutil.h (inflate_mask): Add `const'.
-
- * src/autofit/aflatin2.c: Include `ft2build.h'.
-
-2019-11-07 Nikolaus Waxweiler <madigens@gmail.com>
-
- * CMakeLists.txt: Minor additions to the notes, compile
- builds/unix/ftsystem.c instead of src/base/ftsystem.c on UNIX.
-
- The latter change is based on the code proposed by rim in #55235.
-
-2019-10-25 Werner Lemberg <wl@gnu.org>
-
- * src/sfnt/sfwoff2.c (woff2_open_font): Check `num_fonts' for TTCs.
-
- Reported as
-
- https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=18494
-
-2019-10-22 Werner Lemberg <wl@gnu.org>
-
- * src/sfnt/sfwoff2.c (woff2_open_font): Avoid undefined shift.
-
- Also improve tracing.
-
- Reported as
-
- https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=18390
-
-2019-10-10 Alexei Podtelezhnikov <apodtele@gmail.com>
-
- * src/sfnt/pngshim.c (premultiply_data): Optimize for __SSE__ only.
-
-2019-10-10 Werner Lemberg <wl@gnu.org>
-
- * src/sfnt/sfwoff2.c (reconstruct_glyf): Check `triplet_size'.
-
- Reported as
-
- https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=18108
-
-2019-10-09 John Tytgat <John.Tytgat@esko.com>
-
- [cff] Fix FT_FACE_FLAG_GLYPH_NAMES for CFF2 based fonts (#57023).
-
- * src/cff/cffobjs.c (cff_face_init): Don't set
- FT_FACE_FLAG_GLYPH_NAMES for CFF2 based fonts.
-
-2019-10-08 Werner Lemberg <wl@gnu.org>
-
- [woff2] Fix SFNT table checks.
-
- Also reduce number of SFNT table lookups.
-
- Reported as
-
- https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=18065
-
- * include/freetype/internal/wofftypes.h (WOFF2_InfoRec): Add fields
- `glyf_table', `loca_table', and `head_table'.
-
- * src/sfnt/sfwoff2.c (reconstruct_glyf): Update signature.
- Use table pointers in `info' parameter.
- (get_x_mins): Check `maxp_table'
- Use table pointers in `info' parameter.
- (reconstruct_font): Use and set table pointers in `info' parameter.
- Fix check for `glyf' and `loca' tables.
- Update call to `reconstruct_glyf'.
- (woff2_open_font): Updated.
-
-2019-10-06 Werner Lemberg <wl@gnu.org>
-
- * src/sfnt/sfwoff2.c (reconstruct_glyf): Fix reallocation.
-
- Reported as
-
- https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=18046
-
-2019-10-06 Werner Lemberg <wl@gnu.org>
-
- Improve memory debugging.
-
- * include/freetype/internal/ftmemory.h (FT_MEM_FREE): Use
- `FT_DEBUG_INNER' to set source code file name and line.
-
- * src/base/ftdbgmem.c (ft_mem_table_remove): Better formatting of
- tracing message.
-
-2019-10-03 Werner Lemberg <wl@gnu.org>
-
- * src/sfnt/sfwoff2 (reconstruct_font): Fix reallocation.
-
- Reported as
-
- https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=17966
-
-2019-10-01 Alexei Podtelezhnikov <apodtele@gmail.com>
-
- * src/base/ftstroke.c (ft_stroker_inside): Speed up.
-
-2019-10-01 Werner Lemberg <wl@gnu.org>
-
- * src/sfnt/sfwoff2 (woff2_open_font): Initialize `woff2.ttc_fonts'.
-
- Reported as
-
- https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=17804
-
-2019-09-30 Werner Lemberg <wl@gnu.org>
-
- * src/sfnt/sfwoff2.c (reconstruct_font): Fix memory leak.
-
- Reported as
-
- https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=17812
-
-2019-09-30 Werner Lemberg <wl@gnu.org>
-
- [woff2] Reject fonts without `head' table.
-
- Also fix memory deallocation in case of error.
-
- `head' problem reported as
-
- https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=17820
-
- * src/sfnt/sfwoff2.c (reconstruct_glyf): Don't use `stream_close'.
- Abort if `head_table' is NULL.
- Don't free `transformed_buf' in case of error.
- (woff2_open_font): Don't set `uncompressed_buf' to NULL.
-
-2019-09-29 Werner Lemberg <wl@gnu.org>
-
- [woff2] Fix compiler warnings.
-
- Problem reported by Alexei.
-
- * src/sfnt/sfwoff2.c (reconstruct_glyf): Initialize `x_min'.
- (reconstruct_font): Initialize `num_hmetrics'.
- (woff2_open_font): Initialize `info'.
-
-2019-09-28 Werner Lemberg <wl@gnu.org>
-
- * src/sfnt/sfwoff2.c (woff2_open_font): Fix sanity check.
-
- Correct thinkos in patch from 2019-09-01.
-
-2019-09-28 Werner Lemberg <wl@gnu.org>
-
- [woff2] Fix memory leaks.
-
- One of them reported as
-
- https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=17766
-
- * src/sfnt/sfwoff2.c (woff2_open_font): Free `info->x_mins' and
- `woff2->ttc_fonts'.
-
- (reconstruct_glyf): Initialize `info->x_mins'.
-
-2019-09-27 Alexei Podtelezhnikov <apodtele@gmail.com>
-
- * src/base/ftstroke.c (ft_stroker_cap): Speed up caps.
-
-2019-09-25 Alexei Podtelezhnikov <apodtele@gmail.com>
-
- * src/base/ftstroke.c (ft_stroker_outside): Speed up clipped miter.
- * include/freetype/ftstroke.h: Wordsmith miter docs.
-
-2019-09-25 Werner Lemberg <wl@gnu.org>
-
- * src/sfnt/sfwoff2.c (woff2_open_font): Check (sum of) table sizes.
-
- Reported as
-
- https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=17684
-
-2019-09-23 Alexei Podtelezhnikov <apodtele@gmail.com>
-
- * src/base/ftstroke.c (ft_stroke_border_arcto): Speed up calculations.
-
-2019-09-20 Nikhil Ramakrishnan <ramakrishnan.nikhil@gmail.com>
-
- [woff2] Fix memory leaks.
-
- Reported as
-
- https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=16896
-
- * src/sfnt/sfwoff2.c (woff2_open_font): Fix error handling.
- Free `uncompressed_buf'.
- (reconstruct_font): Free `transformed_buf'.
-
-2019-09-17 Werner Lemberg <wl@gnu.org>
-
- * src/otvalid/otvcommon.c (otv_Coverage_get_last): Guard `count'.
-
- Problem reported by Marc Schönefeld <marc.schoenefeld@gmx.org>.
-
-2019-09-17 Werner Lemberg <wl@gnu.org>
-
- * src/sfnt/sfwoff2.c (woff2_open_font): Check table index.
-
- Reported as
-
- https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=17100
-
-2019-09-15 Avi Halachmi (:avih) <avihpit@yahoo.com>
-
- [cmake] Don't fail if brotli is missing (#56894).
-
- The libs which cmake controls are commented out at
-
- include/freetype/config/ftoption.h
-
- and cmake un-comment each enabled library, but the brotli option was
- not commented out, therefore `FT_CONFIG_OPTION_USE_BROTLI' remained
- defined even if brotli was missing/disabled/etc.
-
- Comment it such that cmake can control it, which means leaving it
- undefined if brotli is missing.
-
- * include/freetype/config/ftoption.h: Fix typo.
-
-2019-09-05 Werner Lemberg <wl@gnu.org>
-
- [cmake] Add brotli support.
-
- * CMakeLists.txt (FT_WITH_BROTLI): New option.
-
- * builds/cmake/FindBrotliDec.cmake: New file.
-
-2019-09-05 Werner Lemberg <wl@gnu.org>
-
- Fix handling of `AF_CONFIG_OPTION_INDIC'.
-
- * devel/ftoption.h, include/freetype/config/ftoption.h:
- `AF_CONFIG_OPTION_INDIC' needs `AF_CONFIG_OPTION_CJK'.
-
-2019-09-05 Werner Lemberg <wl@gnu.org>
-
- CMakeLists.txt: Fix generation of DLL related stuff (#56852).
-
- Extract `version_info' variable from `builds/unix/configure.raw' and
- use the data to correctly set `LIBRARY_VERSION' and
- `LIBRARY_SOVERSION'.
-
- Also use the data to set `ft_version' field in `freetype2.pc'.
- Also fix the needed minimum version of HarfBuzz in `freetype2.pc'.
-
-2019-09-03 Werner Lemberg <wl@gnu.org>
-
- * src/sfnt/sfwoff2.c (compute_ULong_sum): Fix undefined shift.
-
- Reported as
-
- https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=16933
-
-2019-09-01 Werner Lemberg <wl@gnu.org>
-
- * src/sfnt/sfwoff2.c (woff2_open_font): Add sanity check.
-
- Don't trust `totalSfntSize' unconditionally.
-
- Reported as
-
- https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=16893
-
-2019-08-27 Dominik Röttsches <drott@chromium.org>
-
- [woff2] Don't use `FT_UInt64' (#56815).
-
- * src/sfnt/sfwoff2.c (woff2_open_font): Use `FT_UInt32' for
- `file_offset'. This fixes builds on platforms where `FT_LONG64' is
- not defined while still being sufficient to store a file offset.
-
-2019-08-27 Werner Lemberg <wl@gnu.org>
-
- [truetype] Prevent crash in `TT_Set_Named_Instance' (#56813).
-
- * src/truetype/ttgxvar.c (TT_Set_Named_Instance): Fix error
- handling.
-
-2019-08-27 Werner Lemberg <wl@gnu.org>
-
- [woff2] Fix compiler warnings.
-
- * src/sfnt/sfwoff2.c (read_num_hmetrics): Remove unused argument
- `table_len'.
- Update caller.
- (triplet_decode, compute_bbox, store_loca, reconstruct_glyf): Make
- `i' variable unsigned.
- (reconstruct_glyph): Remove condition which is always false.
- (reconstruct_html): Removed unused argument `transformed_size'.
- Update caller.
-
- * src/sfnt/woff2tags.c (woff2_known_tags): Remove condition which is
- always false.
-
-2019-08-27 Nikhil Ramakrishnan <ramakrishnan.nikhil@gmail.com>
-
- [woff2] Check whether known tag is in array bounds.
-
- If table tag is not 0x3f, we expect a value between 0 and 62. If
- this is not the case, exit with errors.
-
- * src/sfnt/sfwoff2/c: Check whether table tag makes sense.
-
- * src/sfnt/woff2tags.c: Return 0 if tag is out of bounds.
-
-2019-08-27 Nikhil Ramakrishnan <ramakrishnan.nikhil@gmail.com>
-
- * src/sfnt/sfwoff2.c: Improve trace comments.
-
- Adjust tracing levels for comments, and more formatting.
-
-2019-08-27 Nikhil Ramakrishnan <ramakrishnan.nikhil@gmail.com>
-
- [woff2] Support `hmtx' reconstruction when `glyf' is untransformed.
-
- `reconstruct_hmtx' requires `info->x_mins' and `info->num_glyphs' to
- reconstruct the hmtx table. In case glyf is not transformed, we
- call `get_x_mins' which does the necessary work.
-
- * src/sfnt/sfwoff2.c (get_x_mins): New function.
- (reconstruct_font): Call get_x_mins.
-
-2019-08-27 Nikhil Ramakrishnan <ramakrishnan.nikhil@gmail.com>
-
- [sfnt] Support `face->num_faces' for WOFF2 fonts.
-
- Set correct value of `face->num_faces' for WOFF2 fonts. This is
- being handled separately because we only load the tables for the
- requested font face in `woff2_open_font' and create a single-face
- sfnt stream.
-
- The full discussion is at:
-
- https://lists.gnu.org/archive/html/freetype-devel/2019-08/msg00000.html
-
- * src/sfnt/sfobjs.c (sfnt_open_font): Add parameter
- `woff2_num_faces'.
- (sfnt_init_face): Introduce variable `woff2_num_faces', and change
- `face->root.num_faces' if `woff2_num_faces' is set.
-
- * src/sfnt/sfwoff2.c (woff2_open_font): Validate requested face
- index and handle negative face indices.
-
- * src/sfnt/sfwoff2.h (woff2_open_font): Add parameter `num_faces' to
- declaration.
-
-2019-08-27 Nikhil Ramakrishnan <ramakrishnan.nikhil@gmail.com>
-
- [woff2] Improve memory and error handling.
-
- Free up memory after use, and improve error handling.
-
- * src/sfnt/sfwoff2.c (reconstruct_font, woff2_open_font): Implement
- changes.
-
-2019-08-27 Nikhil Ramakrishnan <ramakrishnan.nikhil@gmail.com>
-
- [woff2] Avoid too many calls to `FT_REALLOC'.
-
- We do this by using `totalSfntSize' as an initial reference, and
- extending the buffer when required. This reduces rendering time
- considerably.
-
- * include/freetype/internal/wofftypes.h (WOFF2_HeaderRec): Add
- `totalSfntSize', rename `total_sfnt_size' to `actual_sfnt_size'.
-
- * src/sfnt/sfwoff2.c (write_buf): Add parameter `dst_size' to keep
- track of and update total size of stream.
-
- (WRITE_SFNT_BUF, WRITE_SFNT_BUF_AT): Modify macros accordingly.
-
- (pad4, store_loca, reconstruct_glyf, reconstruct_hmtx,
- reconstruct_font): Update parameters to accept `sfnt_size'.
-
- (woff2_open_font): Add variable `sfnt_size'. Use WOFF2 header field
- `totalSfntSize' as initial reference (if value makes sense) and
- allocate `totalSfntSize' bytes for the sfnt stream. `write_buf'
- handles reallocation if and when required. Also resize the stream
- to `actual_sfnt_size' after reconstruction.
-
-2019-08-27 Nikhil Ramakrishnan <ramakrishnan.nikhil@gmail.com>
-
- [woff2] Reconstruct `loca', `hmtx', and swap out stream.
-
- Add necessary functions to reconstruct loca and hmtx tables (the two
- remaining tables that can have a transform). `woff2_open_font' is
- now capable of loading a woff2 font face. This code may still need
- more refining and better memory management.
-
- * include/freetype/internal/wofftypes.h (WOFF2_HeaderRec): Add total
- (final) size of sfnt stream.
-
- (WOFF2_InfoRec): Add header checksum value.
-
- * src/sfnt/sfobjs.c (sfnt_open_font): Change `face_instance_index'
- parameter to its pointer so its value can be modified by
- `woff2_open_font'.
-
- * src/sfnt/sfwoff2.c: (WRITE_SFNT_BUF_AT): New macro to write into
- sfnt buffer at given position.
-
- (write_buf): Add parameter `extend_buf' which allows caller to
- specify whether buffer should be reallocated before copying data.
-
- (WRITE_SFNT_BUF): Updated.
-
- (pad4, store_loca, reconstruct_htmx): New functions.
-
- (reconstruct_glyf): Calculate loca values and store them.
-
- (reconstruct_font): Call `reconstruct_hmtx', write table record
- entries, and calculate table checksums. Also calculate font
- checksum and update `checksumAdjustment' entry in head table.
-
- (woff2_open_font): Open stream for sfnt buffer, swap out input
- stream and return.
-
- * src/sfnt/sfwoff2.h (woff2_open_font): Modify parameter to accept
- pointer to `face_index'.
-
-2019-08-27 Nikhil Ramakrishnan <ramakrishnan.nikhil@gmail.com>
-
- [woff2] Reconstruct transformed `glyf' table.
-
- Reconstruct `glyf' table if it is transformed in the uncompressed
- table stream. Also add necessary structures, macros and functions.
-
- * include/freetype/internal/wofftypes.h (WOFF2_InfoRec,
- WOFF2_SubstreamRec, WOFF2_PointRec): New structures.
- (WOFF2_TableRec): s/OrigLength/dst_length/.
-
- * src/sfnt/sfwoff2.c (READ_255USHORT, READ_BASE128): Use
- `FT_SET_ERROR' to set implicit `error' variable.
-
- (WRITE_SHORT): New macro.
-
- (N_CONTOUR_STREAM, N_POINTS_STREAM, FLAG_STREAM, GLYPH_STREAM,
- COMPOSITE_STREAM, BBOX_STREAM, INSTRUCTION_STREAM): New macros to
- refer to substreams of the transformed `glyf' tables.
-
- (Read255UShort, ReadBase128): Return errors set by `FT_READ_XXX'
- macros.
-
- (with_sign, safe_int_addition): New functions to add sign to values
- based on a flag and perform safe addition respectively.
-
- (triplet_decode): Decode variable-length (flag, xCoordinate,
- yCoordinate) triplet for a simple glyph. See
-
- https://www.w3.org/TR/WOFF2/#triplet_decoding
-
- (store_points, compute_bbox, composteGlyph_size, reconstruct_glyf):
- New functions.
-
- (reconstruct_font): Call `reconstruct_glyf'.
-
- * src/sfnt/sfwoff2.h: Add required constants.
-
- * src/sfnt/woff2tags.h: Move out constants to `sfwoff2.h'.
-
-2019-08-27 Nikhil Ramakrishnan <ramakrishnan.nikhil@gmail.com>
-
- [woff2] Copy un-transformed tables to sfnt stream.
-
- Copy un-transformed tables to the sfnt stream.
-
- * src/sfnt/sfwoff2.c: (WRITE_SFNT_BUF): New macro.
- (write_buf): New function. Extend memory of `dst' buffer and copy
- bytes from `src'.
- (compute_ULong_sum): New function. Calculate checksum of table.
- (reconstruct_font): Change `FT_Byte* sfnt' to `FT_Byte**
- sfnt_bytes'. This has been done because we reallocate memory to
- `sfnt' multiple times, which may change the pointer value of `sfnt'.
- This new pointer must be propogated back to the caller. Same reason
- for using a double pointer in `write_buf'.
-
- * src/sfnt/woff2tags.h (WOFF2_DEFAULT_MAX_SIZE): New macro used for
- overflow checking.
-
-2019-08-27 Nikhil Ramakrishnan <ramakrishnan.nikhil@gmail.com>
-
- [woff2] Create stream for uncompressed buffer.
-
- Uncompressed buffer is now an `FT_Stream'.
-
- Perform basic checks and start iterating over tables.
-
- * src/sfnt/sfwoff2.c (stream_close, find_table, read_num_hmetrics):
- New functions.
- (reconstruct_font): Modify parameters and iterate over tables.
- (woff2_open_font): Updated.
-
-2019-08-27 Nikhil Ramakrishnan <ramakrishnan.nikhil@gmail.com>
-
- [woff2] Handle TTCs and start reconstructing font.
-
- We `handle' TTCs by modifying the `indices' array to point to only
- those tables that are part of the requested `face_index'.
-
- Set and use `num_tables' in `WOFF2_TtcFont'.
-
- * src/sfnt/sfwoff2.c (reconstruct_font): New function.
- (woff2_open_font): Start reconstruction of font.
-
-2019-08-27 Nikhil Ramakrishnan <ramakrishnan.nikhil@gmail.com>
-
- [woff2] Get known tags from function.
-
- Change `KnownTags' to a function (`woff2_known_tags'). This avoids
- introducing a global constant array. This function returns the
- specified index without *any* checks. The caller must ensure that
- `index' is within array limits.
-
- * src/sfnt/sfwoff2.c (woff2_open_font): Change `KnownTags[...]'
- notation to `woff2_known_tags( ... )'.
-
- * src/sfnt/woff2tags.c: Perform changes.
-
- * src/sfnt/woff2tags.h: Update definitions.
-
-2019-08-27 Nikhil Ramakrishnan <ramakrishnan.nikhil@gmail.com>
-
- [woff2] Minor.
-
- * src/sfnt/sfwoff2.c (woff2_uncompress): Add error message
- (woff2_open_font): Free `uncompressed_buf'.
-
-2019-08-27 Nikhil Ramakrishnan <ramakrishnan.nikhil@gmail.com>
-
- [woff2] Uncompress Brotli streams and `face_index' support.
-
- WOFF2 compressed stream is now uncompressed if Brotli is available.
- This data is stored in a separate buffer (uncompressed_buf) because
- it does not contain direct table data. Certain tables have
- transformations applied to them, and they must be reconstructed
- before we can write those tables to the SFNT stream.
-
- `face_index' is now being passed as a parameter to
- `woff2_open_font'.
-
- * src/sfnt/sfobjs.c (sfnt_open_font): Add parameter
- `face_instance_index'.
-
- * src/sfnt/sfwoff2.c (woff2_uncompress): New function.
- (woff2_open_font): Call `woff2_uncompress'.
- (compute_first_table_offset): Fix return type.
-
- * src/sfnt/sfwoff2.h (woff2_open_font): Modify declaration.
-
-2019-08-27 Nikhil Ramakrishnan <ramakrishnan.nikhil@gmail.com>
-
- * builds/unix/configure.raw: Change argument name to `brotli'.
-
-2019-08-27 Nikhil Ramakrishnan <ramakrishnan.nikhil@gmail.com>
-
- Add Brotli dependency and required checks.
-
- Brotli is required for decompressing WOFF2 font directory streams.
- The library is thus being added as an optional dependency for
- FreeType.
-
- * builds/unix/configure.raw: Add checks for `libbrotlidec'.
- (REQUIRES_PRIVATE, LIBS_PRIVATE, LIBSSTATIC_CONFIG): Updated.
-
- * devel/ftoption.h, include/freetype/config/ftoption.h
- (FT_CONFIG_OPTION_USE_BROTLI): New macro.
-
-2019-08-27 Nikhil Ramakrishnan <ramakrishnan.nikhil@gmail.com>
-
- [woff2] Write SFNT Offset table.
-
- * src/sfnt/sfwoff2.c (WRITE_USHORT, WRITE_ULONG): New macros.
- (compare_tags): New function.
- (woff2_open_font): Implement it.
-
-2019-08-27 Nikhil Ramakrishnan <ramakrishnan.nikhil@gmail.com>
-
- * src/sfnt/sfwoff2.c: #undef macros.
-
-2019-08-27 Nikhil Ramakrishnan <ramakrishnan.nikhil@gmail.com>
-
- [woff2] Read table and collection directory.
-
- * include/freetype/internal/wofftypes.h (WOFF2_TtcFontRec): New
- structure.
- (WOFF2_HeaderRec): Add more fields.
-
- * src/sfnt/sfwoff2.c (READ_255USHORT, READ_BASE128, ROUND4): New
- macros.
- (Read255UShort, CollectionHeaderSize, compute_first_table_offset):
- New functions.
- (ReadBase128): Use `FT_READ_BYTE'.
- (woff2_open_font): Add functionality to read table directory and
- collection directory (if present).
-
-2019-08-27 Nikhil Ramakrishnan <ramakrishnan.nikhil@gmail.com>
-
- [sfnt] Include `woff2tags.c' for building.
-
- * src/sfnt/rules.mk (SFNT_DRV_SRC): Add `woff2tags.c'.
-
- * src/sfnt/sfnt.c: Include `woff2tags.c'.
-
-2019-08-27 Nikhil Ramakrishnan <ramakrishnan.nikhil@gmail.com>
-
- [sfnt] Add WOFF2 constants.
-
- Add constants required for WOFF2, and known table tags as defined in
- the specification. See
-
- https://www.w3.org/TR/WOFF2/#table_dir_format
-
- for details.
-
- * src/sfnt/woff2tags.c, src/sfnt/woff2tags.h: New files.
-
-2019-08-27 Nikhil Ramakrishnan <ramakrishnan.nikhil@gmail.com>
-
- [sfnt] Read WOFF 2 header.
-
- Check for WOFF2 tag, call `woff2_open_font', and implement it to read
- header according to specification.
-
- * include/freetype/internal/fttrace.h: Add `sfwoff2.c'.
-
- * src/sfnt/rules.mk (SFNT_DRV_SRC): Add `sfwoff2.c'.
-
- * src/sfnt/sfnt.c: Include `sfwoff2.c'.
-
- * src/sfnt/sfobjs.c (sfnt_open_font): Check for `wOF2' tag and call
- `woff2_open_font'.
-
- * src/sfnt/sfwoff2.c, src/sfnt/sfwoff2.h: New files.
-
-2019-08-27 Nikhil Ramakrishnan <ramakrishnan.nikhil@gmail.com>
-
- Add structures for WOFF2.
-
- Add structures and macro for WOFF 2 header and table directory.
-
- * include/freetype/internal/wofftypes.h (WOFF2_HeaderRec,
- WOFF2_TableRec_): New structures.
-
- * include/freetype/tttags.h (TTAG_wOF2): New macro.
-
-2019-08-26 Werner Lemberg <wl@gnu.org>
-
- * src/psaux/cffdecode.c (cff_operator_seac): Fix numeric overflow.
-
- Reported as
-
- https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=16470
-
-2019-08-26 Werner Lemberg <wl@gnu.org>
-
- [type1] Fix `FT_Get_Var_Axis_Flags' (#56804).
-
- * src/type1/t1load.c (T1_Get_MM_Var): Allocate space for axis flags.
- Also remove redundant assignment.
-
-2019-07-24 Alexei Podtelezhnikov <apodtele@gmail.com>
-
- * src/base/ftbbox.c (cubic_peak): Sanitize left shift (#56586).
-
-2019-07-22 Weiyi Wu <w1w2y3@gmail.com>
-
- * src/cid/cidload.c (cid_hex_to_binary): Fix typo (#56653).
-
-2019-07-12 Werner Lemberg <wl@gnu.org>
-
- [sfnt, winfonts] Avoid memory leaks in case of error (#56587).
-
- * src/sfnt/sfwoff.c (woff_open_font): Call `FT_FRAME_EXIT' in case
- of error.
-
- * src/winfonts/winfnt.c (fnt_face_get_dll_font): Ditto.
-
-2019-07-12 Ben Wagner <bungeman@google.com>
-
- Properly handle phantom points for variation fonts (#56601).
-
- * src/truetype/ttgload.c (TT_Process_Simple_Glyph): Scale phantom
- points if HVAR and/or VVAR is present.
-
-2019-07-04 Werner Lemberg <wl@gnu.org>
-
- [psaux] (2/2) Handle fonts that use SEAC for ligatures (#56580).
-
- The same as previous commit but for the old engine.
-
- * src/psaux/t1decode.c (t1operator_seac): Implement it.
-
-2019-07-04 Chris Liddell <chris.liddell@artifex.com>
-
- [psaux] (1/2) Handle fonts that use SEAC for ligatures (#56580).
-
- As originally intended, a Type 1 SEAC charstring would be used for
- an accented glyph (like `acaron' or `uumlaut'), where the advance
- width of the SEAC glyph is the same as that of the `base' glyph
- (like `a' or `u'). In this case it is not uncommon for the SEAC
- glyph to not use an (H)SBW opcode of its own but to rely on the
- value from the base glyph.
-
- However, out-of-spec fonts also use SEAC glyphs for ligatures (like
- `oe' or `fi'), and in those cases the overall advance width is
- greater than that of the `base' glyph. For this reason we have to
- allow that the SEAC glyph can have an (H)SBW value of its own, and
- if it has, retain this value, rather than the one from the base
- glyph.
-
- * src/psaux/psintrp.c (cf2_interpT2CharString) <cf2_escSEAC>:
- Implement it.
-
-2019-07-01 Werner Lemberg <wl@gnu.org>
-
- * Version 2.10.1 released.
- ==========================
-
-
- Tag sources with `VER-2-10-1'.
-
- * docs/VERSION.TXT: Add entry for version 2.10.1.
-
- * README, Jamfile (RefDoc), src/base/ftver.rc,
- builds/windows/vc2010/freetype.vcxproj,
- builds/windows/vc2010/index.html,
- builds/windows/visualc/freetype.dsp,
- builds/windows/visualc/freetype.vcproj,
- builds/windows/visualc/index.html,
- builds/windows/visualce/freetype.dsp,
- builds/windows/visualce/freetype.vcproj,
- builds/windows/visualce/index.html,
- builds/wince/vc2005-ce/freetype.vcproj,
- builds/wince/vc2005-ce/index.html,
- builds/wince/vc2008-ce/freetype.vcproj,
- builds/wince/vc2008-ce/index.html: s/2.10.0/2.10.1/, s/2100/2101/.
+ builds/windows/visualc/index.html, builds/windows/visualce/index.html,
+ builds/wince/vc2005-ce/index.html, builds/wince/vc2008-ce/index.html,
+ docs/freetype-config.1: s/2.11.0/2.11.1/, s/2110/2111/.
* include/freetype/freetype.h (FREETYPE_PATCH): Set to 1.
- * builds/unix/configure.raw (version_info): Set to 23:1:17.
+ * builds/unix/configure.raw (version_info): Set to 24:1:18.
* CMakeLists.txt (VERSION_PATCH): Set to 1.
- * include/freetype/fterrors.h (FT_Error_String): Fix C++ compilation.
-
-2019-06-26 Alexei Podtelezhnikov <apodtele@gmail.com>
-
- * src/bdf/bdfdrivr.c (bdf_cmap_char_{index,next}): Fix inequality.
-
- Reported by Armin Hasitzka.
-
-2019-06-16 Werner Lemberg <wl@gnu.org>
-
- * src/tools/apinames.c: Formatting, minor edits.
-
-2019-06-16 Werner Lemberg <wl@gnu.org>
-
- [autofit] Disable hinting if no blue zones are available (#56450).
-
- * src/autofit/afglobal.c (af_face_global_get_metrics): Start again
- (with dummy hinter module) if no blue zones are present.
-
- * src/autofit/aflatin.c (af_latin_metrics_init_blues): Change
- signature to return error code.
- If no blue zones are found, update `glyph_styles' array to hold
- AF_STYLE_NONE_DFLT instead of the current style.
- (af_latin_metrics_init): Return internal error code if no blue zones
- are found.
-
-2019-06-16 Werner Lemberg <wl@gnu.org>
-
- Towards better VMS support.
-
- More to come.
-
- * builds/vms/LIBS.OPT_IA64, builds/vms/_LINK.OPT_IA64,
- builds/vms/vmslib.dat: New files provided by Jouk Jansen
- <joukj@hrem.nano.tudelft.nl>.
-
- * builds/vms/ftconfig.h: Update, also from Jouk.
-
-2019-06-13 Werner Lemberg <wl@gnu.org>
-
- * src/autofit/aflatin.c (af_latin_metrics_init_widths): Minor.
-
-2019-06-13 Alexei Podtelezhnikov <apodtele@gmail.com>
-
- [smooth] Restore the span buffering for direct mode only.
-
- The buffer size FT_MAX_GRAY_SPANS is set to 10 spans, which should be
- enough to cover the entire scanline for simple glyphs in most cases:
- each slightly slanted edge needs up to two spans, plus a filling span
- in-between. This is not new, we used to do it before cb4388783cecc.
-
- * src/smooth/ftgrays.c (gray_TWorker): Add `spans' and `num_spans'.
- (gray_hline, gray_sweep): Implement the span buffering.
- (gray_raster_render): Use negative `num_spans' to avoid the direct
- mode.
-
-2019-06-12 Alexei Podtelezhnikov <apodtele@gmail.com>
-
- * include/freetype/ftmodapi.h (FT_DebugHook_Func): Return error.
-
- Fix a warning by adding a return value as in `TT_RunIns',
- which should not be a compatibility issue.
-
-2019-06-11 Alexei Podtelezhnikov <apodtele@gmail.com>
-
- * src/truetype/ttobjs.c (tt_check_trickyness_family): Add `const'.
-
-2019-06-11 Moazin Khatti <moazinkhatri@gmail.com>
-
- [gzip] Add support for `gzip' encoded header.
-
- * src/gzip/ftgzip.c (FT_Gzip_Uncompress): Modify the the call to
- `inflateInit2' to enable support for `gzip' encoded headers.
-
-2019-06-10 Alexei Podtelezhnikov <apodtele@gmail.com>
-
- [type1,type42] Use `const' for string literals.
-
- * include/freetype/internal/psaux.h (PS_Table_FuncsRec): Updated.
- * include/freetype/internal/t1types.h (T1_EncodingRec): Updated.
- * src/psaux/psobjs.[ch] (ps_table_add): Updated.
- * src/type1/t1load.c (T1_Open_Face, parse_encoding): Updated.
- * src/type42/t42objs.c (T42_Open_Face): Updated.
- * src/type42/t42parse.c (t42_parse_encoding): Updated.
-
- * src/cff/cffobjs.c (cff_face_init): Minor.
-
-2019-06-10 Alexei Podtelezhnikov <apodtele@gmail.com>
-
- [bdf,pcf] Use `const' for string literals.
-
- * src/bdf/bdf.h (bdf_property_t): Updated `name'.
- * src/bdf/bdflib.c (_bdf_list_split,bdf_create_property,
- _bdf_add_property,_bdf_ato*): Updated.
- * src/bdf/bdfdrivr.c (bdf_interpret_style): Updated.
- * src/pcf/pcfread.c (pcf_intrpret_style): Ditto.
-
-2019-06-07 Philip Race <philip.race@oracle.com>
-
- * src/base/ftinit.c (FT_Set_Default_Properties): Fix crash.
-
- Terminate loop at end of environment.
-
-2019-05-31 Alexei Podtelezhnikov <apodtele@gmail.com>
-
- Solidify VC2005 builds.
-
- * include/freetype/internal/ftcalc.h (FT_MSB) [_MSC_VER]: Explicitly
- declare `_BitScanReverse' intrinsic.
- * builds/windows/visualc/freetype.vcproj [Debug]: Disable intrinsics.
-
-2019-05-30 Nikhil Ramakrishnan <ramakrishnan.nikhil@gmail.com>
-
- [sfnt] Separate WOFF sources and headers.
-
- Move WOFF sources and headers to separate files.
-
- * include/freetype/internal/wofftypes.h, src/sfnt/sfwoff.c,
- src/sfnt/sfwoff.h: New files.
-
- * include/freetype/internal/fttrace.h: Register `sfwoff.c'.
-
- * include/freetype/internal/internal.h: Define
- FT_INTERNAL_WOFF_TYPES_H.
-
- * include/freetype/internal/sfnt.h: Include FT_INTERNAL_WOFF_TYPES_H.
-
- * include/freetype/internal/tttypes.h: Move out WOFF structures.
-
- * src/sfnt/rules.mk: Add `sfwoff.c'.
-
- * src/sfnt/sfnt.c: Include `sfwoff.c'.
-
- * src/sfnt/sfobjs.c: Include `sfwoff.h', move out WOFF sources.
-
-2019-05-30 Werner Lemberg <wl@gnu.org>
-
- [base] Fix `make multi'.
-
- Reported by Nikhil.
-
- * src/base/fterrors.c: Include FT_INTERNAL_DEBUG_H.
-
-2019-05-29 Ben Wagner <bungeman@google.com>
-
- [truetype] Fix copy-and-paste error (#56409).
-
- * src/truetype/ttgload.c (load_truetype_glyph): Use correct indices
- into `unrounded' array for phantom points.
-
-2019-05-29 Werner Lemberg <wl@gnu.org>
-
- [truetype] Fix 32bit builds (#56404).
-
- Patch suggested by Ben Wagner <bungeman@google.com>.
-
- * src/truetype/ttgxvar.c (FT_fixedToInt, FT_fixedToFdot6): Remove
- harmful cast to unsigned type.
-
-2019-05-26 Ben Wagner <bungeman@google.com>
-
- * src/truetype/ttgload.c (TT_Process_Simple_Glyph): Improve accuracy.
-
-2019-05-23 Werner Lemberg <wl@gnu.org>
-
- [truetype] Draw glyphs without deltas in variation font (#56374).
-
- * src/truetype/ttgxvar.c (TT_Vary_Apply_Glyph_Deltas): Always fill
- `unrounded' array.
-
-2019-05-21 Werner Lemberg <wl@gnu.org>
-
- * src/truetype/ttinterp.c (opcode_name): Improve mnemonics.
-
-2019-05-16 Werner Lemberg <wl@gnu.org>
-
- [truetype] Actually scale varied CVT values.
-
- Up to now, only the unscaled CVT values were varied; in other words,
- the `CVAR' data was never used for bytecode hinting.
-
- * src/truetype/ttgxvar.c (tt_cvt_ready_iterator): New auxiliary
- function.
- (tt_face_vary_cvt): Use it to trigger rescaling of CVT values.
-
-2019-05-16 Werner Lemberg <wl@gnu.org>
-
- [truetype] Use 26.6 format for storing unscaled CVT values.
-
- If `CVAR' data is applied to variation fonts, fractional values are
- possible.
-
- * include/freetype/internal/tttypes.h (TT_FaceRec): Change type of
- `cvt' from `FT_Short' to `FT_Int32'.
-
- * src/truetype/ttgxvar.c (FT_fdot6ToFixed): New macro.
- (tt_face_vary_cvt): Use it to update code to 26.6 format.
-
- * src/truetype/ttobjs.c (tt_size_run_prep): Update code to 26.6
- format.
-
- * src/truetype/ttpload.c (tt_face_load_cvt): Stora data in 26.6
- format.
-
-2019-05-16 Werner Lemberg <wl@gnu.org>
-
- * src/truetype/ttgload.c (load_truetype_glyph): Init `unrounded'.
-
- This fixes linear advance width values for spacing glyphs. Bug
- introduced 2019-05-09.
-
-2019-05-16 Werner Lemberg <wl@gnu.org>
-
- [truetype] Avoid code duplication.
-
- * src/truetype/ttobjs.c (tt_size_run_prep): Scale CVT values in this
- function.
- (tt_size_ready_bytecode): Updated.
- * src/truetype/ttgload.c (tt_loader_init): Updated.
-
-2019-05-13 Jouk Jansen <joukj@hrem.nano.tudelft.nl>
-
- * vms_make.com: Updated. Handle `bzip2' directory, too.
-
-2019-05-13 Werner Lemberg <wl@gnu.org>
-
- * src/psaux/psfont.c (cf2_font_setup): Fix compiler warning.
-
-2019-05-12 Werner Lemberg <wl@gnu.org>
-
- [truetype] Doh. Fix last commit to make it work.
-
- Very embarassing :-)
-
- Reported as
-
- https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=14701
- https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=14705
- https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=14710
-
- * src/truetype/ttgload.c (IS_DEFAULT_INSTANCE): Move up and add
- argument; update all callers.
- (TT_Process_Simple_Glyph): Use it. The `unrounded' array is active
- for variation fonts only, thus also enclose related code with
- `#ifdef TT_CONFIG_OPTION_GX_VAR_SUPPORT ... #endif' where
- necessary.
- Revert commit a113e5d from 2019-05-09, and don't use `extra_points2'
- but allocate a temporary array.
- Speed up the scaling of the `unrounded' array.
-
- * src/truetype/ttgxvar.c (FT_fixedToInt, FT_FixedToFdot6): Fix type
- conversions and rounding. The unsigned type must have more or equal
- bits to the signed type.
-
-2019-05-09 Werner Lemberg <wl@gnu.org>
-
- [truetype] Increase precision of font variation (#54371).
-
- This patch makes FreeType use font units in 26.6 format internally
- instead of integers.
-
- * src/truetype/ttgxvar.c (FT_fixedToFdot6): New macro.
- (TT_Vary_Apply_Glyph_Deltas): Add argument to output unrounded font
- coordinates.
- * src/truetype/ttgxvar.h: Updated.
-
- * src/truetype/ttgload.c (TT_Process_Simple_Glyph): Use
- `extra_points2' array to temporarily hold unrounded point
- coordinates; use them to compute scaled coordinates and linear
- advance width and height.
- (load_truetype_code): Adjust similarly.
-
-2019-05-09 Werner Lemberg <wl@gnu.org>
-
- * src/truetype/ttgload.c (TT_Process_Simple_Glyph): Minor.
-
-2019-05-08 Alexei Podtelezhnikov <apodtele@gmail.com>
-
- [smooth] Faster fractions.
-
- * src/smooth/ftgrays.c (SUBPIXELS): Replace with...
- (FRACT): A fractional coordinate macro to use in...
- (gray_render_line, gray_render_scanline): ... here.
-
-2019-05-07 Alexei Podtelezhnikov <apodtele@gmail.com>
-
- * src/raster/ftraster.c (Draw_Sweep): Unbreak.
-
-2019-05-05 Alexei Podtelezhnikov <apodtele@gmail.com>
-
- * src/raster/ftraster.c: Clean-ups.
-
-2019-05-05 Werner Lemberg <wl@gnu.org>
-
- * src/truetype/ttgxvar.c: More use of `FT_fdot14ToFixed'.
-
-2019-05-04 Alexei Podtelezhnikov <apodtele@gmail.com>
-
- * src/smooth/ftgrays.c (gray_render_line): Small shortcut.
-
-2019-05-04 Werner Lemberg <wl@gnu.org>
-
- Various clang 8.0 static analyzer fixes.
-
- Reported by Sender Ghost <lightside@gmx.com>.
-
- * src/autofit/afcjk.c (af_cjk_hints_compute_edges): Catch a corner
- case where `edge->first' could be NULL.
-
- * src/pfr/pfrobjs.c (pfr_slot_load): Remove unnecessary test of
- `size'.
-
- * src/raster/ftraster.c (Draw_Sweep): Catch a corner case where
- `draw_right' might be NULL.
-
- * src/sfnt/ttmtx.c (tt_face_get_metrics): Fix limit test for
- `aadvance'.
- Ensure `abearing' always hold a meaningful result.
-
- * src/truetype/ttgload.c (load_truetype_glyph): Ensure `subglyph' is
- not NULL before accessing it.
- * src/truetype/ttgxvar.c (TT_Set_Named_Instance): Remove unnecessary
- test of `namedstyle'.
-
- * src/type42/t42parse.c (t42_parser_done): Ensure
- `parser->root.funcs.done' is not NULL before accessing it.
-
-2019-05-03 Alexei Podtelezhnikov <apodtele@gmail.com>
-
- Miscellaneous macro updates.
-
- * src/base/ftoutln.c (SCALED): Updated.
- * src/smooth/ftgrays.c (SCALED): Ditto.
- (FLOOR, ROUND, CEILING): Removed.
- * src/psaux/psfixed.h (cf2_fracToFixed): Updated.
-
-2019-05-02 Alexei Podtelezhnikov <apodtele@gmail.com>
-
- Tweak LCD filtering.
-
- * src/base/ftlcdfil.c (ft_lcd_filter_fir, _ft_lcd_filter_legacy):
- Choose direction from bitmap's pixel_mode.
- * include/freetype/internal/ftobjs.c (FT_Bitmap_LcdFilterFunc):
- Updated.
- * src/smooth/ftsmooth.c (ft_smooth_render_generic): Updated.
-
-2019-05-02 Werner Lemberg <wl@gnu.org>
-
- * vms_make.com: Updated (#56253).
-
- Remove no longer existing directories (`autohint', `otlayout').
- Update used base extensions.
- Activate `autofit' module.
- Add `gxvalid' module.
- Update copyright notices.
-
-2019-04-29 Alexei Podtelezhnikov <apodtele@gmail.com>
-
- [smooth] Simplify cubic Bézier flattening.
-
- The previous implementation is correct but it is too complex.
- The revised algorithm is based on the fact that each split moves
- the control points closer to the trisection points on the chord.
- The corresponding distances are good surrogates for the curve
- deviation from the straight line.
-
- This cubic flattening algorithm is somewhat similar to the conic
- algorithm based the distance from the control point to the middle of
- the chord. The cubic distances, however, decrease less predictably
- but are easy enough to calculate on each step.
-
- The new algorithm produces slightly larger number of splits, which is
- compensated by its simplicity. The overall rendering performance is
- improved by 1-2%. The larger number of splits does not necessarily
- result in higher quality, which stays comparable.
-
- * src/smooth/ftgrays.c (gray_render_cubic): Replace the split
- condition.
-
-2019-04-26 Alexei Podtelezhnikov <apodtele@gmail.com>
-
- [smooth] Bithacks and cosmetics.
-
- * src/smooth/ftgrays.c (gray_record_cell, gray_set_cell, gray_hline,
- gray_render_conic, gray_convert_glyph_inner): Updated.
-
-2019-04-25 Alexei Podtelezhnikov <apodtele@gmail.com>
-
- Optimize Bézier bisections.
-
- This change makes bisections faster by 20-30%. When inlined into
- `gray_render_cubic', this makes the function faster by 10% and is
- noticeable in the overall rendering performance.
-
- * src/raster/ftraster.c (Split_Conic, Split_Cubic): Use shifts and
- refactor.
- * src/smooth/ftgrays.c (gray_split_conic, gray_split_cubic): Ditto.
- * src/base/ftstroke.c (ft_conic_split, ft_cubic_split): Ditto.
- * src/base/ftbbox.c (cubic_peak): Use shifts.
-
-2019-04-23 Werner Lemberg <wl@gnu.org>
-
- * src/sfnt/ttcmap.c (tt_cmap12_next): Remove dead code.
-
- Found by clang 8.0's static analyzer and reported by Sender Ghost
- <lightside@gmx.com>.
-
-2019-04-23 Werner Lemberg <wl@gnu.org>
-
- [base] Fix thinko in previous commit.
-
- * src/base/ftbitmap.c (FT_Bitmap_Blend): Check final width, not
- target pitch.
-
- Problem reported by Sender Ghost <lightside@gmx.com>.
-
-2019-04-22 Werner Lemberg <wl@gnu.org>
-
- * src/base/ftbitmap.c (FT_Bitmap_Blend): Check target pitch.
-
- Problem reported by Sender Ghost <lightside@gmx.com>.
-
-2019-04-22 Werner Lemberg <wl@gnu.org>
-
- Fix return value of `FT_Set_Named_Instance' (#56186).
-
- * src/truetype/ttgxvar.c (TT_Set_Named_Instance): Correctly handle
- internal return value -1 of `TT_Set_Var_Design'.
-
-2019-04-18 Werner Lemberg <wl@gnu.org>
-
- [pcf] Fix handling of undefined glyph (#56067).
-
- This commit fixes the changes from 2018-07-21, which broke charmap
- iteration. We now add the default character as a new glyph with
- index 0, thus increasing the number of glyphs by one (as before).
-
- * src/pcf/pcfread.c (pcf_get_metrics): Adjust to new artificial
- glyph with index 0.
- Limit number of elements to 65534.
- (pcf_get_bitmaps): Ditto.
- Unify two loops into one; this avoids allocation of an intermediate
- array.
- (pcf_get_encodings): Don't flip indices but copy glyph metrics of
- default character to index 0.
- Also handle invalid default character.
-
- * docs/CHANGES: Updated.
-
-2019-04-15 Minmin Gong <gongminmin@msn.com>
-
- * CMakeLists.txt: Avoid rewriting of unchanged configuration files.
-
- Reported as
-
- https://savannah.nongnu.org/patch/index.php?9755
-
-2019-04-15 JDG <JonathanG@iQmetrix.com>
-
- * src/tools/apinames.c (main): Fix error message.
-
- Reported as
-
- https://savannah.nongnu.org/patch/?9796
-
-2019-04-11 Alexei Podtelezhnikov <apodtele@gmail.com>
-
- [smooth] Fix segfault in direct mode (#56092).
-
- * src/base/ftoutln.c (FT_Outline_Render): Set missing clip_box for
- direct mode.
- * src/smooth/ftgrays.c (gray_raster_render): Use it.
-
-2019-04-06 Werner Lemberg <wl@gnu.org>
-
- * src/sfnt/ttcmap.c (tt_get_glyph_name): Pacify compiler (#56061).
-
- This is for Visual Studio 2019 on ARM.
-
-2019-04-06 Werner Lemberg <wl@gnu.org>
-
- For distribution, replace `.tar.bz2' with `.tar.xz' bundles.
-
- * builds/toplevel.mk (build): Do it.
-
- * README, docs/CHANGES, docs/release: Updated.
-
-2019-04-06 Antony Lee <anntzer.lee@gmail.com>
-
- Make `glyph_name' parameter to `FT_Get_Name_Index' a `const'.
-
- * include/freetype/freetype.h (FT_Get_Name_Index),
- include/freetype/internal/ftobjs.h (FT_Face_GetGlyphNameIndexFunc),
- include/freetype/internal/services/svgldict.h
- (FT_GlyphDict_NameIndexFunc), src/base/ftobjs.c (FT_Get_Name_Index),
- src/cff/cffdrivr.c (cff_get_name_index), src/sfnt/sfdriver.c
- (sfnt_get_name_index), src/type1/t1driver.c (t1_get_name_index),
- src/type42/t42drivr.c (t42_get_name_index): Add `const' to second
- argument.
-
-2019-03-31 Armin Hasitzka <prince.cherusker@gmail.com>
-
- [cff] Fix boundary checks.
-
- 642bc7590c701c8cd35a9f60fa899cfa518b17ff introduced dynamically
- allocated memory when parsing CFF files with the "old" engine. Bounds
- checks have never been updated, however, leading to pointless
- comparisons of pointers in some cases. This commit presents a
- solution for bounds checks in the CFF module with an extended logic
- for the "old" engine while staying as concise as possible for the
- "new" one.
-
- * src/cff/cffparse.h: Introduce the struct `CFF_T2_StringRec' and
- the additional field `t2_strings' within `CFF_ParserRec'.
-
- * src/cff/cffparse.c (cff_parser_within_limits): Move all boundary
- checks into this new function and update the rest of `cffparse.c' to
- use it.
-
- Reported as
-
- https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=12137
-
-2019-03-20 Werner Lemberg <wl@gnu.org>
-
- [autofit] Fix Mongolian blue zone characters.
-
- * src/autofit/afblue.dat: Use U+200D (ZERO-WIDTH JOINER) characters
- to get medial forms for some Mongolian characters.
- * src/autofit/afblue.c, src/autofit/afblue.h: Regenerated.
-
-2019-03-19 Werner Lemberg <wl@gnu.org>
-
- [autofit] Add support for Mongolian script.
-
- As a de-facto standard, layouts using this script are constructed
- horizontally line by line, then the lines are rotated clockwise for
- vertical display.
-
- * src/autofit/afblue.dat: Add blue zone data for Mongolian.
- * src/autofit/afblue.c, src/autofit/afblue.h: Regenerated.
-
- * src/autofit/afscript.h: Add Mongolian standard characters.
-
- * src/autofit/afranges.c, src/autofit/afstyles.h: Add Mongolian
- data.
-
-2019-03-15 Werner Lemberg <wl@gnu.org>
-
- * Version 2.10.0 released.
- ==========================
-
-
- Tag sources with `VER-2-10-0'.
-
- * docs/VERSION.TXT: Add entry for version 2.10.0.
- * docs/CHANGES: Updated.
-
- * README, Jamfile (RefDoc), src/base/ftver.rc,
- builds/windows/vc2010/freetype.vcxproj,
- builds/windows/vc2010/index.html,
- builds/windows/visualc/freetype.dsp,
- builds/windows/visualc/freetype.vcproj,
- builds/windows/visualc/index.html,
- builds/windows/visualce/freetype.dsp,
- builds/windows/visualce/freetype.vcproj,
- builds/windows/visualce/index.html,
- builds/wince/vc2005-ce/freetype.vcproj,
- builds/wince/vc2005-ce/index.html,
- builds/wince/vc2008-ce/freetype.vcproj,
- builds/wince/vc2008-ce/index.html: s/2.9.1/2.10.0/, s/291/2100/.
-
- * include/freetype/freetype.h (FREETYPE_MINOR): Set to 10.
- (FREETYPE_PATCH): Set to 0.
-
- * builds/unix/configure.raw (version_info): Set to 23:0:17.
- * CMakeLists.txt (VERSION_MINOR): Set to 10.
- (VERSION_PATCH): Set to 0.
-
- * builds/toplevel.mk (version, winversion): Since the minor version
- number has two digits now, never omit the patch number. We would
- get ambiguous zip file names otherwise.
- (dist): Remove remnants of `docmaker' tool.
- (do-dist): Remove unused intermediate files.
-
- * src/cff/cffparse.c (destrict_c2s_item): Guard function with
- CFF_CONFIG_OPTION_OLD_ENGINE macro.
-
-2019-03-07 Andrei Alexeyev <0x416b617269@gmail.com>
- Werner Lemberg <wl@gnu.org>
-
- Fix invalid function pointer casts.
-
- This change should allow Freetype to work on WASM/Emscripten without
- needing `-s EMULATE_FUNCTION_POINTER_CASTS=1'.
-
- * src/autofit/afdummy.c (af_dummy_hints_apply): Fix signature.
-
- * src/cid/cidload.c (cid_parse_font_matrix, parse_fd_array,
- parse_expansion_factor, parse_font_name): Return `void', not
- `FT_Error'.
-
- * include/freetype/internal/ftobjs.h (FT_CMap_CharVarIsDefaultFunc):
- Fix signature.
-
-2019-03-05 Werner Lemberg <wl@gnu.org>
-
- [base] Handle numeric overflow (#55827).
-
- * src/base/ftglyph.c (FT_Glyph_Get_CBox): Use `FT_PIX_CEIL_LONG'.
-
-2019-03-05 Sebastian Rasmussen <sebras@gmail.com>
-
- [psaux] Fix use of uninitialized memory (#55832).
-
- * src/psaux/psintrp.c (cf2_interpT2CharString): The call to
- `cf2_arrstack_setCount' may fail because the allocator ran out of
- memory. When this happens the stack is still written to before the
- error condition is checked. This means that FreeType writes outside
- of allocated memory. This commit moves the error check prior to the
- stack assignment, hence the function now properly returns with an
- error condition.
-
-2019-02-23 Werner Lemberg <wl@gnu.org>
-
- * src/base/ftbitmap.c (FT_Bitmap_Blend): No fractional offsets.
-
- The function only provided a framework without an actual
- implementation, which this commit removes.
-
-2019-02-23 Werner Lemberg <wl@gnu.org>
-
- * src/tools/update-copyright-year: Insert `(C)'.
-
-2019-02-21 Armin Hasitzka <prince.cherusker@gmail.com>
-
- [truetype] Mask numeric overflows.
-
- * src/truetype/ttinterp.c (Move_CVT, Move_CVT_Stretched, Ins_MIRP):
- Mask numeric overflows.
-
- Reported as
-
- https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=11681
- https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=11734
-
-2019-02-21 Armin Hasitzka <prince.cherusker@gmail.com>
-
- [psaux] Mask numeric overflow.
-
- * src/psaux/cffdecode.c (cff_decoder_parse_charstrings): Mask numeric
- overflow.
-
- Reported as
-
- https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=13041
-
-2019-02-16 Wink Saville <wink@saville.com>
-
- * src/autofit/afwarp.h (af_warper_compute): Fix declaration.
-
-2019-02-02 Nikolaus Waxweiler <madigens@gmail.com>
-
- [truetype] Apply MVAR hasc, hdsc and hlgp metrics to current FT_Face metrics.
-
- Instead of setting typo or win metrics as the new `FT_Face' metrics
- indiscriminately, apply only typo deltas to the currently active
- `FT_Face' metrics. This prevents line height differences when the
- default outlines were used as the regular face and instances for
- everything else, for example.
-
- * src/truetype/ttgxvar.c (tt_apply_mvar): Implement.
-
-2019-02-02 Nikolaus Waxweiler <madigens@gmail.com>
-
- [sfnt] Use typo metrics if OS/2 fsSelection USE_TYPO_METRICS bit is set.
-
- If the `OS/2' table exists and `fsSelection' bit 7
- (USE_TYPO_METRICS) is set, use the `sTypo*' set of values to compute
- the `FT_Face's ascender, descender, and height. Otherwise, fall
- back to old behavior.
-
- * src/sfnt/sfobjs.c (sfnt_load_face): Implement.
-
-2019-01-18 John Tytgat <John.Tytgat@esko.com>
-
- [sfnt] Handle TT fonts having two PostScript font names (#55471).
-
- * src/sfnt/sfdriver.c (sfnt_get_name_id): Prefer English over any
- other language found for PostScript font names.
-
-2019-01-08 Chris Liddell <chris.liddell@artifex.com>
-
- [psaux] Fix closepath (#55414).
-
- All of the Type 1 path building is done with code common to the
- revised CFF engine, with the exception of closepath, which was still
- calling ps_builder_close_contour(), thus previously cached segments
- were not always written to the path, and glyph corruption, or even
- invalid outlines were possible.
-
- * src/psauc/psinterp.c (cf2_interpT2CharString) <cf2_cmdCLOSEPATH>:
- Switch to calling `cf2_glyphpath_closeOpenPath'.
-
-2018-12-29 Werner Lemberg <wl@gnu.org>
-
- * src/autofit/aflatin2.c: Some fixes from `aflatin.c' (#55310).
-
-2018-12-25 Werner Lemberg <wl@gnu.org>
-
- * src/psaux/cffdecode.c (cff_operaor_seac): Fix numeric overflow.
-
- Reported as
-
- https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=11915
-
-2018-12-12 Werner Lemberg <wl@gnu.org>
-
- [gxvalid] Fix compiler warnings.
+ * builds/toplevel.mk (version_tag, CHANGELOG_SCRIPT): New variables.
+ (do-dist): Generate `ChangeLog` file with all commits since last release.
- * src/gxvalid/gxvjust.c (gxv_just_check_max_gid),
- src/gxvalid/gxvmort.c (gxv_mort_coverage_validate): Use `FT_UNUSED'.
+2021-11-30 Alexei Podtelezhnikov <apodtele@gmail.com>
-2018-12-11 Werner Lemberg <wl@gnu.org>
+ [builds/windows] Improve debugging.
- * src/truetype/ttgload.c (TT_Hint_Glyph): Remove useless test.
+ * builds/windows/ftdebug.c (FT_Message, FT_Panic): Buffer output
+ and call `OutputDebugStringA` only if `IsDebuggerPresent`.
+ [_WIN32_WCE] (OutputDebugStringA): Implement the missing API.
- `control_len' only gets its value from `n_ins' (and vice versa),
- which is always read as `unsigned short' and thus can't be larger
- than 0xFFFF.
+2021-11-29 Seigo Nonaka <nona@google.com>
-2018-12-04 Werner Lemberg <wl@gnu.org>
+ * src/base/ftobjs.c (FT_Request_Metrics): Fix build warning on Android.
- [bdf] Ignore data after `ENDFONT'.
+ Use casts since `FT_USHORT_MAX` is unsigned short in bionic (libc used in
+ Android).
- Reported as
-
- https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=10798
-
- * src/bdf/bdflib.c (_bdf_parse_end): New function.
- (_bdf_parse_glyphs): Switch to `_bdf_parse_end' after `ENDFONT' has
- been encountered.
+2021-11-28 Alexei Podtelezhnikov <apodtele@gmail.com>
-2018-12-02 Alexei Podtelezhnikov <apodtele@gmail.com>
+ * builds/windows/vc2010/freetype.vcxproj (DlgCopy): Minor tweak.
- * builds/windows/visualc/freetype.dsp: Dust off.
+2021-11-26 Alexei Podtelezhnikov <apodtele@gmail.com>
-2018-11-27 Alexei Podtelezhnikov <apodtele@gmail.com>
+ * src/truetype/ttpload.c (tt_face_load_hdmx): Added comments.
- * builds/windows/vc2010/freetype.vcxproj: Simplify.
+2021-11-26 Alexei Podtelezhnikov <apodtele@gmail.com>
-2018-11-27 Chris Liddell <chris.liddell@artifex.com>
+ [truetype] Quietly reject out-of-spec `hdmx` tables.
- [type1,cff] Add FT_{Set,Get}_MM_WeightVector API calls.
+ The `hdmx` table is optional and can be safely rejected without
+ an error if it does not follow specifications. The record size
+ must be equal to the number of glyphs + 2 + 32-bit padding.
- For multiple master fonts, common usage (in Postscript) is to modify
- the WeightVector of an existing font instance, this addition
- supports that use.
+ * src/truetype/ttpload.c (tt_face_load_hdmx): Thoroughly check
+ the record size and improve tracing.
- * include/freetype/ftmm.h, src/base/ftmm.c (FT_Set_MM_WeightVector,
- FT_Get_MM_WeightVector): New API functions.
+2021-11-23 Alexei Podtelezhnikov <apodtele@gmail.com>
- * include/freetype/internalservices/svmm.h
- (FT_Set_MM_WeightVector_Func, FT_Get_MM_WeightVector_Func): New
- function types.
- (MultiMasters): Add `set_mm_weightvector' and `get_mm_weightvector'
- members.
- (FT_DEFINE_SERVICE_MULTIMASTERSREC): Updated.
+ [truetype] Partly revert 5b626281.
- * src/cffcffdrivr.c (cff_set_mm_weightvector,
- cff_get_mm_weightvector): New functions.
- (cff_service_multi_masters): Register them.
+ Fixes #1118.
- * src/truetype/ttdriver.c (tt_service_gx_multi_masters): Updated.
- This driver doesn't use the new interface.
+ * src/truetype/ttpload.c (tt_face_load_hdmx): Do not assume that
+ `record_size` is rounded even though the records are padded.
- * src/type1/t1load.c (T1_Set_MM_WeightVector,
- T1_Get_MM_WeightVector): New functions.
- * src/type1/t1driver.c (t1_service_multi_masters): Register them.
- * src/type1/t1load.h: Updated.
+2021-11-23 Alexei Podtelezhnikov <apodtele@gmail.com>
-2018-11-27 Ben Wagner <bungeman@google.com>
+ * builds/windows/vc2010/freetype.vcxproj (DlgCopy): Use transforms.
- [cff] Fix compiler warning (#55105).
+2021-11-22 Werner Lemberg <wl@gnu.org>
- * src/cff/cffparse.c (cff_parser_run): Guard label only used if
- CFF_CONFIG_OPTION_OLD_ENGINE is active.
+ Update `CHANGES` files, other minor whitespace and documentation issues.
-2018-11-27 Ben Wagner <bungeman@google.com>
+2021-11-21 Werner Lemberg <wl@gnu.org>
- [truetype] Fix numeric overflow (#55103).
+ formats.txt: Add info about WOFF and WOFF2.
- * src/truetype/ttgload.c (compute_glyph_metrics): Use `SUB_LONG'.
+2021-11-21 Werner Lemberg <wl@gnu.org>
-2018-11-25 Alexei Podtelezhnikov <apodtele@gmail.com>
+ meson.build: Initialize `common_ldflags`.
- [builds] Belated DLL support with vc2002-vc2008.
+2021-11-21 Lukas Oberhuber <@lukaso>
- The solution and project files should be automatically upgraded for
- the approriate Visual C++ version.
+ * meson.build: Fix compatibility version on MacOS.
- * builds/windows/visualc/freetype.{sln,vcproj}: Major upgrades.
- * builds/windows/visualc/index.html: Document the change.
- * builds/windows/vc2005, builds/windows/vc2008: Removed as redundant.
+ Fixes #1117.
-2018-11-22 Armin Hasitzka <prince.cherusker@gmail.com>
+2021-11-21 Werner Lemberg <wl@gnu.org>
- * src/cff/cffparse.c: Please the compiler.
-
-2018-11-22 Armin Hasitzka <prince.cherusker@gmail.com>
-
- [cff] Fix memory overflow.
+ * src/truetype/ttinterp.c (Ins_MD): Avoid `FT_ABS`.
Reported as
- https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=9869
- https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=10869
-
- * src/cff/cffparse.c (destruct_t2s_item, cff_parser_run): Store
- evaluated T2 charstrings in separately allocated memory.
-
-2018-11-18 Alexei Podtelezhnikov <apodtele@gmail.com>
-
- * builds/windows/{visualc,vc2005,vc2008}/freetype.vcproj: Fix it.
-
-2018-11-10 Alexei Podtelezhnikov <apodtele@gmail.com>
-
- [smooth] Placeholder only for library-enabled LCD filtering.
-
- * src/smooth/ftsmooth.c (ft_smooth_init): Add disabled
- `FT_Library_SetLcdFilter' call.
+ https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=38562
-2018-11-09 Young Xiao <yangx92@hotmail.com>
+2021-11-20 Alexei Podtelezhnikov <apodtele@gmail.com>
- [psaux] Add safety guard (#54985).
+ * include/freetype/fttypes.h (FT_MAKE_TAG): Remove the same casting.
- * src/psaux/psobjs.c (cff_builder_close_contour): Do it.
+2021-11-20 Werner Lemberg <wl@gnu.org>
-2018-11-08 Alexei Podtelezhnikov <apodtele@gmail.com>
+ [gxvalid] Fix minor compilation warning.
- * builds/unix/configure.raw: Require `windows.h' for windres.
+ * src/gxvalid/gxvmort5.c (gxv_mort_subtable_type5_subtable_setup): Declare
+ as static.
-2018-11-08 Alexei Podtelezhnikov <apodtele@gmail.com>
+2021-11-20 Werner Lemberg <wl@gnu.org>
- [ftstroke] Fix unpredictable failures (#54986).
-
- * src/base/ftstroke.c (ft_sroke_border_lineto): Fix lineto check.
-
-2018-11-08 Alexei Podtelezhnikov <apodtele@gmail.com>
-
- [ftstroke] Fix unpredictable failures (#54976).
-
- * src/base/ftstroke.c (ft_sroke_border_close): Set the start tags.
-
-2018-11-07 Ben Wagner <bungeman@google.com>
-
- [truetype] Fix VF check from 2018-09-12 (#54973).
-
- * src/truetype/ttgxvar.c (TT_Vary_Apply_Glyph_Deltas): Use correct
- offsets for estimates.
-
-2018-11-06 Werner Lemberg <wl@gnu.org>
-
- [pshinter] Fix numeric overflow.
-
- Reported as
+ [smooth] Fix stand-alone compilation.
- https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=11242
+ * src/smooth/ftgrays.c (FT_Trace_Enable, FT_Trace_Disable)[STANDALONE_]:
+ Define.
- * src/pshinter/pshrec.c (ps_dimension_add_t1stem): Implement it.
+2021-11-20 Werner Lemberg <wl@gnu.org>
-2018-11-06 Werner Lemberg <wl@gnu.org>
+ Avoid undefined left-shifts.
- [psaux] Fix timeout in old CFF engine.
+ We really have to use double casts to avoid issues with C's and C++'s
+ signedness propagation rules in implicit casts.
Reported as
- https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=11260
+ https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=41178
+ https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=41182
- * src/psaux/cffdecode.c (cff_decoder_parse_charstrings)
- <cff_op_sqrt> [CFF_CONFIG_OPTION_OLD_ENGINE]: Fix potential endless
- loop.
+ * include/freetype/config/public-macros.h (FT_STATIC_CAST,
+ FT_REINTERPRET_CAST): Modify macro to take two arguments.
+ Update all callers.
+ (FT_STATIC_BYTE_CAST): New macro.
-2018-11-04 Alexei Podtelezhnikov <apodtele@gmail.com>
+ * include/freetype/freetype.h (FT_ENC_TAG): Use `FT_STATIC_BYTE_CAST`.
+ * include/freetype/ftimage.h (FT_IMAGE_TAG): Ditto.
+ * include/freetype/fttypes.h (FT_MAKE_TAG): Ditto.
+ Use `FT_Tag` for casting.
- * src/truetype/ttgxvar.c: Use enum definitions.
+ * src/ftraster/ftmisc.h (FT_MAKE_TAG): Removed, no longer needed.
+ (FT_STATIC_BYTE_CAST): New macro.
-2018-11-03 Alexei Podtelezhnikov <apodtele@gmail.com>
+ * src/smooth/ftgrays.c (FT_STATIC_CAST): Replace with...
+ (FT_STATIC_BYTE_CAST): ... this.
- * src/truetype/ttgxvar.c (ft_var_apply_tuple): Adjust condition.
+2021-11-18 Werner Lemberg <wl@gnu.org>
-2018-11-03 Alexei Podtelezhnikov <apodtele@gmail.com>
+ Provide C++ versions for public macros with casts.
- * src/truetype/ttgxvar.c (ft_var_apply_tuple): Tracing tweaks.
+ Many FreeType clients use C++. However `g++ -Wold-style-cast` warns for
+ macros with C-style casts even for system header files; this also affects
+ directories included with `-isystem`. While this could be seen as a problem
+ with g++, the problem is more a philosophical one: Over the time, C and C++
+ diverged more and more, and some features of C are no longer the 'right'
+ solution in C++.
-2018-11-03 Alexei Podtelezhnikov <apodtele@gmail.com>
+ * include/freetype/config/public-macros.h (FT_STATIC_CAST,
+ FT_REINTERPRET_CAST): New macros.
- Revert due to specs: [truetype] Speed up variation IUP.
+ * include/freetype/freetype.h (FT_ENC_TAG, FT_LOAD_TARGET_,
+ FT_LOAD_TARGET_MODE): Use `FT_STATIC_CAST`.
+ Correctly handle negative 'signed char' input.
+ * include/freetype/ftimage.h (FT_IMAGE_TAG): Ditto.
+ * include/freetype/fttypes.h (FT_MAKE_TAG, FT_BOOL): Ditto.
+ * include/freetype/ftmodapi.h (FT_FACE_DRIVER_NAME): Use
+ `FT_REINTERPRET_CAST`.
-2018-11-02 Alexei Podtelezhnikov <apodtele@gmail.com>
+ * src/smooth/ftgrays.c (FT_STATIC_CAST)[STANDALONE_]: New macro.
+ [!STANDALONE]: Include `FT_CONFIG_CONFIG_H`.
- * src/truetype/ttgxvar.c (ft_var_get_item_delta): Fixed logic.
+ Fixes #1116.
- Reported and tested by Behdad.
+2021-11-16 Werner Lemberg <wl@gnu.org>
-2018-11-02 Shailesh Mistry <shailesh.mistry@hotmail.co.uk>
-
- [autofit] Prevent SEGV.
-
- See
-
- https://bugs.ghostscript.com/show_bug.cgi?id=697545
-
- for more details on how the bug was found.
-
- * src/autofit/afloader.c (af_loader_load_glyph): Propagate error
- code.
-
-2018-10-31 Alexei Podtelezhnikov <apodtele@gmail.com>
-
- [truetype] Speed up variation IUP.
-
- * src/truetype/ttgxvar.c (tt_delta_interpolate): Separate trivial
- snapping to the same position from true interpolation.
-
-2018-10-31 Alexei Podtelezhnikov <apodtele@gmail.com>
-
- * src/type1/t1load.c (t1_set_mm_blend): Optimized.
-
-2018-10-31 Alexei Podtelezhnikov <apodtele@gmail.com>
-
- * src/truetype/ttgxvar.c (ft_var_get_item_delta): Optimized.
-
-2018-10-29 Werner Lemberg <wl@gnu.org>
-
- [base] Fix numeric overflow.
-
- Reported as
-
- https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=11080
-
- * src/base/ftoutln.c (FT_Outline_Get_Orientation): Use `MUL_LONG'.
-
-2018-10-29 Werner Lemberg <wl@gnu.org>
-
- [cff] Fix numeric overflow.
-
- Reported as
+ Fix clang++ warnings.
- https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=10988
+ * src/*: Initialize some variables to NULL.
- * src/cff/cffparse.c (cff_parser_run)
- [CFF_CONFIG_OPTION_OLD_ENGINE]: Use `NEG_LONG'.
+2021-11-16 Werner Lemberg <wl@gnu.org>
-2018-10-27 Alexei Podtelezhnikov <apodtele@gmail.com>
+ [truetype] Updates for the forthcoming OpenType 1.9 standard (2/2).
- [sfnt] Make `head' timestamps unsigned.
+ * src/truetype/ttgxvar.c (ft_var_load_item_variation_store):
+ s/shortDeltaCount/wordDeltaCount/ (as done in the specification, too).
+ Recognize new format and reject it for now.
- It's been more than 2^31 seconds since 1904.
+2021-11-16 Werner Lemberg <wl@gnu.org>
- * include/freetype/tttables.h (TT_Header): Change field types.
- * src/sfnt/ttload.c (tt_face_load_generic_header): Updated.
+ [truetype] Updates for the forthcoming OpenType 1.9 standard (1/2).
-2018-10-27 Alexei Podtelezhnikov <apodtele@gmail.com>
+ This is in preparation for implementing `DeltaSetIndexMap` format 1, which
+ is used by `COLR` v1 tables, and which allows 32bit indices.
- Revert: Align FreeType with standard C memory management.
+ https://docs.microsoft.com/en-us/typography/opentype/otspec190/delta/otvarcommonformats_delta.html
-2018-10-27 Werner Lemberg <wl@gnu.org>
+ * src/truetype/ttgxvar.h (GX_DeltaSetIdxMapRec): Change type of `mapCount`
+ to `FT_ULong`.
- [psaux] Fix numeric overflow.
+ * src/truetype/ttgxvar.c (ft_var_load_delta_set_index_mapping): Add argument
+ for passing the table size; update caller.
+ Implement new format.
- Triggered by
+2021-11-14 Werner Lemberg <wl@gnu.org>
- https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=11157
-
- * src/psaux/cffdecode.c (cff_decoder_parse_charstrings) <cff_op_blend>
- [CFF_CONFIG_OPTION_OLD_ENGINE]: Fix integer overflow.
-
-2018-10-20 Werner Lemberg <wl@gnu.org>
-
- Avoid endless loop while tracing (#54858).
-
- * src/type1/t1load.c (parse_buildchar): Guard tracing stuff with
- FT_DEBUG_LEVEL_TRACE.
-
-2018-10-17 David Demelier <markand@malikania.fr>
-
- * CMakeLists.txt: Specify `RUNTIME DESTINATION'.
-
- This is needed for DLL builds.
-
-2018-10-07 Werner Lemberg <wl@gnu.org>
-
- A missing Unicode cmap is not a fatal error.
-
- This is a follow-up to the previous commit.
-
- * src/cff/cffobjs.c (cff_face_init), src/sfnt/sfobjs.c
- (sfnt_load_face), src/type1/t1objs.c (T1_Face_Init),
- src/type42/t42objs.c (T42_Face_Init): Implement it.
-
-2018-10-07 Werner Lemberg <wl@gnu.org>
+ Fix clang warnings.
- Fix handling of FT_CONFIG_OPTION_ADOBE_GLYPH_LIST (#54794).
+ * src/gxvalid/gxvcmmn.h (GXV_SET_ERR_IF_PARANOID): Use 'do' block.
+ * src/gxvalid/gxvmod.c (GXV_TABLE_LOAD, GXV_TABLE_VALIDATE): Ditto.
- * src/cff/cffcmap.c (cff_cmap_unicode_init), src/psaux/t1cmap.c
- (t1_cmap_unicode_init), src/sfnt/ttcmap.c (tt_cmap_unicode_init):
- Check `unicodes_init' field.
+ * src/smooth/ftgrays.c (gray_convert_glyph): Add cast.
-2018-10-03 Werner Lemberg <wl@gnu.org>
+ * src/type1/t1gload.c (T1_Parse_Glyph_And_Get_Char_String): Remove cast.
+ * src/type1/t1load.c (read_binay_data): Use `FT_ULong` for `size` parameter.
+ (parse_subrs, parse_charstrings, parse_dict): Ditto; also add some casts.
- [ftgrays] Fix typo in stand-alone mode (#54771).
+2021-11-13 Dominik Röttsches <drott@chromium.org>
- * src/smooth/ftgrays.c (FT_THROW) [STANDALONE_ &&
- FT_DEBUG_LEVEL_TRACE]: Fix call to `FT_ERR_CAT'.
+ [sfnt] Avoid undefined shifts in `COLR` v1 paint parsing
-2018-10-02 Werner Lemberg <wl@gnu.org>
+ * src/sfnt/ttcolr.c (read_paint, tt_face_get_paint): Tighten shift
+ behavior by using multiplication, mostly using macros from ftcalc.h.
- [psaux] Fix segfault.
+ Fixes: https://bugs.chromium.org/p/chromium/issues/detail?id=1269168
- Reported as
+2021-11-13 Alexei Podtelezhnikov <apodtele@gmail.com>
- https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=10768
+ [builds/windows] Improve `DlgCopy` target.
- * src/psaux/cffdecode.c (cff_decoder_parse_charstrings)
- <cff_op_callothersubr> [CFF_CONFIG_OPTION_OLD_ENGINE]: Check
- argument.
+ Fixes #1113.
-2018-10-02 Werner Lemberg <wl@gnu.org>
+ * builds/windows/vc2010/freetype.vcxproj: Run `DlgCopy` conditionally
+ and decouple it from `Build`.
- [psaux] Fix numeric overflow.
+2021-11-12 Alexei Podtelezhnikov <apodtele@gmail.com>
- Reported as
+ Explicitly define `FT_MSB` for Clang.
- https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=10740
+ * include/freetype/internal/ftcalc.h [__clang__] (FT_MSB): Updated.
- * src/psaux/cffdecode.c (cff_decoder_parse_charstrings) <cff_op_roll>
- [CFF_CONFIG_OPTION_OLD_ENGINE]: Use NEG_INT.
+2021-11-10 Alexei Podtelezhnikov <apodtele@gmail.com>
-2018-10-02 Werner Lemberg <wl@gnu.org>
+ * src/truetype/ttgxvar.c (ft_var_to_normalized): Edge optimization.
- [pshinter] Handle numeric overflow.
+2021-11-10 Alexei Podtelezhnikov <apodtele@gmail.com>
- Reported as
+ Additional `FT_MSB` macro definitions.
- https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=10550
+ Better macros for Windoes CE and ARM in general, based on !109
+ from metarutaiga.
- * src/pshinter/pshglob.c (psh_blues_snap_stem): Mask numeric
- overflow.
+ * include/freetype/internal/ftcalc.h [_MSC_VER] (FT_MSB): Updated.
-2018-09-27 Alexei Podtelezhnikov <apodtele@gmail.com>
+2021-11-09 Alexei Podtelezhnikov <apodtele@gmail.com>
- Align FreeType with standard C memory management.
+ [build/windows] Remove logging from default debug configurations.
- * include/freetype/ftsystem.h: Include FT_TYPES_H.
- (*FT_Alloc_Func, *FT_Realloc_Func): Use size_t for the size arguments.
- * src/raster/ftmisc.h: Ditto.
+ DLG is rather costly for performance and should be used judiciously.
+ This removes it from the default configurations but gives an example
+ how to enable it using the `UserDefines` property.
- * builds/amiga/src/base/ftsystem.c, builds/unix/ftsystem.c,
- * builds/vms/ftsystem.c, src/base/ftsystem.c (ft_alloc, ft_realloc):
- Use size_t for the size arguments.
+ * builds/windows/vc2010/freetype.vcxproj: Hide FT_DEBUG_LOGGING.
- * src/base/ftdbgmem.c (ft_mem_debug_alloc, ft_mem_debug_realloc): Use
- FT_Offset, aka size_t, for the size arguments.
+2021-11-08 Werner Lemberg <wl@gnu.org>
-2018-09-25 Werner Lemberg <wl@gnu.org>
+ * src/sfnt/sfobjs.c (sfnt_open_font): Fix typo.
- Fix handling of `FT_Bool'.
+2021-11-08 Werner Lemberg <wl@gnu.org>
- Before this commit we had code like
+ * src/gxvalid.*, src/otvalid.*: Fix `-Wformat` warnings.
- (FT_Bool)( globals->glyph_styles[gindex] & 0x8000)
+2021-11-08 Werner Lemberg <wl@gnu.org>
- Since `FT_Bool' is defined to be an `unsigned char', the code
- evaluated to something like
+ [pshinter] Fix C++ compilation.
- (unsigned char)( 0x8532 & 0x8000)
+ * src/pshinter/pshalgo.c (psh_compute_dir): Fix type of `result`.
+ (psh_hint_table_find_strong_points): Add cast.
- which in turn expanded to
+2021-11-08 Werner Lemberg <wl@gnu.org>
- (unsigned char)( 0x8000)
+ [sfnt] Reduce footprint if WOFF and WOFF2 support is not needed.
- and finally yielded 0x00 – i.e., false – not as expected.
+ Based on a patch from metarutaiga (MR !106). The gist of this commit is
+ that it doesn't make sense to support WOFF without compression (which would
+ be only possible in WOFF 1.0 anyway).
- Problem reported and analyzed by Tony Smith <tony.smith@macro4.com>.
+ * src/sfnt/sfobjs.c (sfnt_open_font): Guard WOFF code with
+ `FT_CONFIG_OPTION_USE_ZLIB` block.
+ Guard WOFF2 code with `FT_CONFIG_OPTION_USE_BROTLI` block.
- * include/freetype/fttypes.h (FT_BOOL): Add a comparison against
- zero so that we always have a Boolean expression.
+ * src/sfnt/sfwoff.c, src/sfnt/sfwoff.h: Guard files with
+ `FT_CONFIG_OPTION_USE_ZLIB` blocks, not parts of the code.
- */*: Replace castings to `FT_Bool' with calls to `FT_BOOL' where
- possible.
+ * src/sfnt/sfwoff2.c, src/sfnt/sfwoff2.h, src/sfnt/woff2tags.c,
+ src/sfnt/woff2tags.h: Guard files with `FT_CONFIG_OPTION_USE_BROTLI` blocks,
+ not parts of the code.
-2018-09-23 Alexei Podtelezhnikov <apodtele@gmail.com>
+ Fixes #1111.
- [bdf] Speed up charmap access.
+2021-11-08 Werner Lemberg <wl@gnu.org>
- This makes FT_Get_Char_Index and FT_Get_Next_Char 4-5 times faster.
+ [truetype] Make trickyness checks depend on TT_USE_BYTECODE_INTERPRETER.
- * src/bdf/bdfdrivr.c (bdf_cmap_char_{index,next}): Help binary search
- with continuous prediction.
+ Based on a patch from metarutaiga (MR !106).
-2018-09-22 Alexei Podtelezhnikov <apodtele@gmail.com>
+ * src/truetype/ttobjs.c (tt_skip_pdffont_random_tag,
+ tt_check_trickyness_family, tt_synth_sfnt_checksum, tt_get_sfnt_checksum,
+ tt_check_trickyness_sfnt_ids, tt_check_trickyness): Put functions into a
+ `TT_USE_BYTECODE_INTERPRETER` block.
+ (tt_face_init): Put trickyness checks into a `TT_USE_BYTECODE_INTERPRETER`
+ block.
- * src/base/ftobjs.c (ft_glyphslot_preset_bimap): Another tweak.
+ Fixes #1111.
- This one should be clearer. When the rounded monochrome bbox collapses
- we add a pixel that covers most if not all original cbox.
+2021-11-08 Alexei Podtelezhnikov <apodtele@gmail.com>
-2018-09-21 Alexei Podtelezhnikov <apodtele@gmail.com>
+ * src/sfnt/ttload.c (tt_face_load_gasp): Fix a type mismatch warning.
- * src/base/ftobjs.c (ft_glyphslot_preset_bimap): Further tweak.
+2021-11-07 Alexei Podtelezhnikov <apodtele@gmail.com>
-2018-09-21 Ben Wagner <bungeman@google.com>
+ [dlg] Define DLG_STATIC explicitly.
- Improve auto-hinter handling of bitmap fonts (#54681).
+ DLG_STATIC is intended to disable Windows DLL linking attributes.
+ It does not hurt to define it explicitly when we wrap DLG code.
+ This fixes tons of LNK4286 and C4273 warnings from MSVC if we
+ forget to define DLG_STATIC as a compiler option.
- For bitmap fonts, `FT_Load_Glyph' should either return an error or
- not set the format to `FT_GLYPH_FORMAT_OUTLINE'. However, in this
- case `FT_Load_Glyph' calls into the auto-hinter which calls back
- into `FT_Load_Glyph' with `FT_LOAD_NO_SCALE' in the flags, which
- marks the glyph as `FT_GLYPH_FORMAT_OUTLINE' with an empty path
- (even though it doesn't have any path). It appears that the
- auto-hinter should not be called when the face doesn't have
- outlines. The current test for using the auto-hinter in
- `FT_Load_Glyph' checks whether the driver supports scalable
- outlines, but not if the face supports scalable outlines.
+ * builds/windows/vc2010/freetype.vcxproj: Remove DLG_STATIC option.
+ * src/dlg/dlgwrap.c [FT_DEBUG_LOGGING]: Define DLG_STATIC.
+ * include/freetype/internal/ftdebug.h [FT_DEBUG_LOGGING]: Ditto.
- * src/base/ftobjs.c (FT_Load_Glyph): Directly check whether we have
- scalable outlines.
+2021-11-07 Alexei Podtelezhnikov <apodtele@gmail.com>
-2018-09-21 Werner Lemberg <wl@gnu.org>
+ [dlg] Lighten up the inclusions.
- [raster] Fix disappearing vertical lines (#54589).
+ The DLG wrapper needs to know if FT_DEBUG_LOGGING is defined in
+ `ftoption.h`. It does not need entire FreeType.
- * src/raster/ftraster.c (Vertical_Sweep_Span): Handle special case
- where both left and right outline exactly pass pixel centers.
+ * src/dlg/dlgwrap.c: Include FT_CONFIG_OPTIONS_H directly.
-2018-09-20 Alexei Podtelezhnikov <apodtele@gmail.com>
+2021-11-07 Alexei Podtelezhnikov <apodtele@gmail.com>
- * src/base/ftobjs.c (ft_glyphslot_preset_bimap): Tiny rounding tweak.
+ [truetype] Avoid some memory zeroing in variations.
- This adds pixels in case a contour goes through the center
- and they need to be turned on in the b/w rasterizer.
+ * src/truetype/ttgxvar.c (ft_var_readpackeddeltas, ft_var_load_avar,
+ ft_var_load_item_variation_store, ft_var_load_gvar): Use FT_QNEW_ARRAY
+ if memory immediately initialized or discarded otherwise.
-2018-09-20 Alexei Podtelezhnikov <apodtele@gmail.com>
+2021-11-05 Jany Belluz <jany.belluz@daltonmaag.com>
- [pcf] Replace charmap implementation.
+ [truetype] Fix handling of packed deltas in Variation Fonts.
- PCF comes with charmap lookup table, aka PCF encodings. Using it
- directly makes FT_Get_Char_Index and FT_Get_Next_Char 4-5 times
- faster than the original BDF-like binary searches.
+ * src/truetype/ttgxvar (ft_var_readpackeddeltas): Don't expect the number of
+ bytes used to encode the deltas to be higher than the number of encoded
+ values. The specification allows a very compact encoding; for example, a
+ list of 200 zeros can be encoded with just a couple of bytes.
- * src/pcf/pcf.h (PCF_EncodingRec): Removed.
- (PCF_FaceRec): Remove `nencodings' and `encodings'.
- * src/pcf/pcfdrivr.c (pcf_cmap_char_{index,next}): Replaced.
- * src/pcf/pcfread.c (pcf_get_encodings): Store data differently.
+ We now count the consumed bytes to make sure to not read more than expected.
-2018-09-20 Werner Lemberg <wl@gnu.org>
+2021-11-04 Jany Belluz <jany.belluz@daltonmaag.com>
- [base] Remove unused function `FT_GlyphLoader_CopyPoints'.
+ [truetype] Fix CVAR handling of tuples for all points.
- * include/freetype/internal/ftgloadr.h, src/base/ftgloadr.c
- (FT_GlyphLoader_CopyPoints): Do it.
+ * src/truetype/ttgxvar (tt_face_vary_cvt): Function
+ `ft_var_readpackedpoints`, when it returns `ALL_POINTS`, also sets
+ `point_count` to value 0. However, the CVAR code was incorrectly expecting
+ that `point_count` would be set to match the length of the CVT table.
-2018-09-19 Alexei Podtelezhnikov <apodtele@gmail.com>
+2021-11-04 Jany Belluz <jany.belluz@daltonmaag.com>
- [pcf] Prepare to replace charmap implementation.
+ * src/truetype/ttgxvar.c: Fix typos in macros that guard CVAR code.
- * src/pcf/pcf.h (PCF_FaceRec): Updated to include...
- (PCF_EncRec): ... this new structure to store charmap geometry.
+2021-11-04 Alexei Podtelezhnikov <apodtele@gmail.com>
- * src/pcf/pcfread.c (pcf_get_encodings): Store charmap geometry.
+ * docs/INSTALL: Mention Meson and MSBuild more prominently.
-2018-09-18 Alexei Podtelezhnikov <apodtele@gmail.com>
+2021-11-03 Gabor Kertesz <gabor.kertesz@linaro.org>
- Remove unused fields.
+ [libpng] Update Meson wrap for win-arm64
- * src/pcf.h (PCF_FaceRec): Remove `charmap' and `charmap_handle'.
- * src/bdfdrvr.h (BDF_FaceRec): Ditto.
- * src/winfonts/winfnt.h (FNT_FaceRec): Ditto.
+ 1.6.37-5 released patches for win-arm64 to successfully build
+ libpng with Meson:
+ https://github.com/mesonbuild/wrapdb/pull/205
+ https://github.com/mesonbuild/wrapdb/pull/216
-2018-09-17 Werner Lemberg <wl@gnu.org>
+ Updated by the following command:
+ meson wrap update libpng
- [pshinter] Handle numeric overflow.
+ Tested on win-arm64 and x64.
- Reported as
+2021-11-03 Dominik Röttsches <drott@chromium.org>
- https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=10396
+ [sfnt] Clarify `COLR` v1 FT_Paint* format representations
- * src/pshinter/pshglob.c: Include FT_INTERNAL_CALC_H.
- (psh_blues_snap_stem): Mask numeric overflow.
+ * include/freetype/ftcolor.h (FT_PaintLinearGradient,
+ FT_PaintRadialGradient, FT_PaintSweepGradient, FT_PaintTransform,
+ FT_PaintTranslate, FT_PaintScale, FT_PaintRotate, FT_PaintSkew): Clarify
+ 16.16 fixed point representation of struct fields.
+ * src/sfnt/ttcolr.c (read_paint): Shift coordinates for
+ FT_PaintLinearGradient, FT_PaintRadialGradient, FT_PaintSweepGradient
+ accordingly.
-2018-09-13 Werner Lemberg <wl@gnu.org>
+ Fixes: https://gitlab.freedesktop.org/freetype/freetype/-/issues/1110
- [truetype] Some fixes for VF checks.
+2021-11-03 Alexei Podtelezhnikov <apodtele@gmail.com>
- Reported as
+ [builds/windows] Let MSBuild handle DLG copy.
- https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=10317
+ * builds/windows/vc2010/freetype.vcxproj: Specify DlgCopy target.
+ * builds/windows/vc2010/script.bat: Deleted.
- * src/truetype/ttgxvar.c (ft_var_load_gvar): Properly exit memory
- frame if we have invalid glyph variation data offsets.
- (tt_face_vary_cvt): Protect against missing `tuplecoords' array.
- Fix typo.
+2021-10-29 Alexei Podtelezhnikov <apodtele@gmail.com>
-2018-09-13 Werner Lemberg <wl@gnu.org>
+ * src/truetype/ttgload.c (load_truetype_glyph): Fix MSVC warning C4312.
- * src/sfnt/sfdriver.c (sfnt_get_var_ps_name): Fix last commit.
+2021-10-29 Alexei Podtelezhnikov <apodtele@gmail.com>
-2018-09-13 Werner Lemberg <wl@gnu.org>
+ [builds/windows] Separate MSVC linker and librarian.
- * src/sfnt/sfdriver.c (sfnt_get_var_ps_name): Check `result'.
+ MSVC uses LIB for static and LINK for dynamic libraries. They are
+ related but the former has much smaller set of options.
- Reported as
+ * builds/windows/vc2010/freetype.vcxproj: Updated.
- https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=10316
+2021-10-29 Alexei Podtelezhnikov <apodtele@gmail.com>
-2018-09-12 John Tytgat <John.Tytgat@esko.com>
+ [builds/windows] Revise MSVC linking optimizations.
- [sfnt] Better PS name handling (#54629).
+ * builds/windows/vc2010/freetype.vcxproj: Optimize DLL linking only.
+ * builds/windows/visualc/freetype.dsp: Ditto.
+ * builds/windows/visualc/freetype.vcproj: Ditto.
- * src/sfnt/sfdriver (IS_WIN, IS_APPLE): Omit language ID checks.
- (get_win_string, get_apple_string): Return NULL when the PostScript
- font name characters is not according to specification.
- (get_win_string): Make trace output work if the high byte if
- non-zero.
- (sfnt_get_var_ps_name, sfnt_get_ps_name): Previously we preferred
- Win PS name (when there is also an Apple PS name); change this into
- a fallback to Apple PS name in case the Win PS name is invalid.
+2021-10-28 Alexei Podtelezhnikov <apodtele@gmail.com>
-2018-09-12 Werner Lemberg <wl@gnu.org>
+ [woff] Optimize table tagging.
- [truetype] Improve VF check.
+ * include/freetype/internal/wofftypes.h (WOFF_TableRec): Use
+ 32-bit tag.
+ * src/sfnt/sfwoff.c (woff_open_font): Use 32-bit tag.
- Triggered by
+2021-10-28 Alexei Podtelezhnikov <apodtele@gmail.com>
- https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=10255
+ [woff2] Optimize table tagging.
- * src/truetype/ttgxvar.c (ft_var_load_gvar): Use better limit check
- for `tupleCount'.
+ Fixes #1107.
-2018-09-12 Werner Lemberg <wl@gnu.org>
+ * include/freetype/internal/wofftypes.h (WOFF2_TableRec): Use
+ 32-bit tag.
+ * src/sfnt/sfwoff2.c (compare_tags, find_table, woff2_open_font):
+ Use 32-bit tag.
+ * src/sfnt/woff2tags.[ch] (woff2_known_tags): Use static storage and
+ return 32-bit tag.
- * src/truetype/ttgxvar.c (ft_var_load_gvar): Check `glyphoffsets'.
+2021-10-26 Werner Lemberg <wl@gnu.org>
-2018-09-10 Armin Hasitzka <prince.cherusker@gmail.com>
+ Formatting.
- * src/pshinter/pshrec.c (t2_hints_stems): Mask numeric overflow.
+2021-10-26 Ben Wagner <bungeman@chromium.org>
- Reported as
+ [mm] Tolerate missing Blend dictionary entries
- https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=10215
+ In a Multiple Master font, the Blend dictionary must contain valid
+ Private, FontInfo, and FontBBox. The current code will error if any of
+ these are present and invalid, but will not error and will provide
+ uninitialized data if the Blend dictionary exists but does not contain
+ one of these entries. This change reverts to the older behavior of
+ treating any missing entries as containing all zero data and not
+ returning an error.
-2018-09-09 Ben Wagner <bungeman@google.com>
+ In the future it may be best to keep track of when these are actually
+ initialized and error if they are not.
- * builds/freetype.mk (refdoc-venv): Ensure python version (#54631).
+ * src/type1/t1load.c (t1_allocate_blend): Zero initiailize.
-2018-09-07 Werner Lemberg <wl@gnu.org>
+2021-10-26 Alexei Podtelezhnikov <apodtele@gmail.com>
- [truetype] Fix assertion failure.
+ [builds/windows] Add MSVC linker optimazations.
- Triggered by
+ We continue to build static libraries with statically linked C run-
+ time and add options to optimize references.
- https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=10212
+ * builds/windows/vc2010/freetype.vcxproj: Sort entries, add options.
- * src/truetype/ttgload.c (load_truetype_glyph): Reintroduce
- `opened_frame' (removed in a change from 2018-08-26) to handle
- deallocation of the second frame.
+2021-10-23 Alexei Podtelezhnikov <apodtele@gmail.com>
-2018-09-05 Werner Lemberg <wl@gnu.org>
+ * builds/windows/vc2010/freetype.vcxproj: Use MachineARM64.
- Synchronize `ftdebug.c' files.
+2021-10-22 Alexei Podtelezhnikov <apodtele@gmail.com>
- * builds/amiga/src/base/ftdebug.c, builds/wince/ftdebug.c,
- builds/windows/ftdebug.c: Synchronize with `src/base/ftdebug.c'.
+ [builds/windows] Prioritize x64.
-2018-09-05 Nikhil Ramakrishnan <ramakrishnan.nikhil@gmail.com>
+ * builds/windows/vc2010/freetype.sln: Sort entries.
- Add documentation guidelines file.
+2021-10-22 Gabor Kertesz <gabor.kertesz@linaro.org>
- * docs/DOCGUIDE: New file.
+ [builds/windows] Add ARM64 platform.
-2018-09-04 Werner Lemberg <wl@gnu.org>
+ * builds/windows/vc2010/freetype.sln: Updated
+ * builds/windows/vc2010/freetype.vcxproj: Updated.
+ * builds/windows/vc2010/freetype.vcxproj.filters: Minor fix.
- * devel/ftoption.h: Synchronize with master `ftoption.h'.
+2021-10-21 Ben Wagner <bungeman@chromium.org>
-2018-09-03 Nikhil Ramakrishnan <ramakrishnan.nikhil@gmail.com>
+ [mm] Delay setting blend weight and design position.
- [docwriter] Don't break code snippets accross lines.
+ Previously the `blend->weight_vector`, `blend->default_weight_vector`,
+ and `blend->design_pos` were set early to allocated but uninitialized
+ memory under the assumption that the memory would eventually be
+ initialized. However, it is possible that some of the required
+ keywords may not actually be present, leaving the memory uninitialized.
+ This is different from a present but invalid table, which would produce
+ an error.
Reported as
+ https://bugs.chromium.org/p/chromium/issues/detail?id=1261762
- https://lists.nongnu.org/archive/html/freetype-devel/2018-08/msg00124.html
-
- * docs/reference/markdown/stylesheets/extra.css (.md-typeset code):
- Add rule `white-space'.
-
-2018-09-03 Werner Lemberg <wl@gnu.org>
-
- */*: s/PSNames/psnames/.
-
- Only tracing messages are affected.
-
-2018-09-03 Werner Lemberg <wl@gnu.org>
-
- [sfnt] Fix heap buffer overflow in CPAL handling.
-
- * src/sfnt/ttcpal.c (tt_face_palette_set): Fix boundary test.
- (tt_face_load_cpal): Updated.
-
-2018-09-01 Werner Lemberg <wl@gnu.org>
-
- Remove `FT_Outline_{New,Done}_Internal'.
-
- These public API functions(!) were always undocumented and have
- escaped all clean-up efforts until now.
-
- * include/freetype/ftoutln.h (FT_Outline_New_Internal,
- FT_Outline_Done_Internal): Removed.
-
- * src/base/ftoutln.h (FT_Outline_New_Internal,
- FT_Outline_Done_Internal): Merge into...
- (FT_Outline_New, FT_Outline_Done): ... these functions.
-
- * docs/README: Updated.
-
-2018-08-30 Alexei Podtelezhnikov <apodtele@gmail.com>
-
- * src/base/ftobjs.c (ft_glyphslot_preset_bitmap): Check glyph format.
-
-2018-08-31 Armin Hasitzka <prince.cherusker@gmail.com>
-
- [errors] Refine the macro logic surrounding `FT_Error_String'.
-
- * include/freetype/fterrors.h (FT_INCLUDE_ERR_PROTOS,
- FT_ERR_PROTOS_DEFINED): Undefine `FT_INCLUDE_ERR_PROTOS' after
- checking it and introduce a new macro that takes proper care of
- multiple-inclusion protection.
-
-2018-08-31 Werner Lemberg <wl@gnu.org>
-
- * src/base/ftdebug.c (FT_Throw): Restore missing `FT_UNUSED' calls.
-
-2018-08-31 Werner Lemberg <wl@gnu.org>
-
- * src/base/ftdebug.c (FT_Throw): Reduce chattiness.
+ * src/type1/t1load.c (t1_allocate_blend): Remove early allocation and
+ initialization.
+ (parse_blend_design_positions, parse_weight_vector): Parse into local
+ and assign to blend if valid.
+ (T1_Open_Face): Check that if a blend exists that it has the weight
+ vector and design positions.
-2018-08-31 Werner Lemberg <wl@gnu.org>
+2021-10-21 Ben Wagner <bungeman@chromium.org>
- * src/autofit/afhints.c (af_glyph_hints_reload): Add initialization.
+ [cff] Commit vstore data and regions on allocation.
-2018-08-30 Alexei Podtelezhnikov <apodtele@gmail.com>
+ The vstore->regionCount and vstore->dataCount were read directly
+ from the data. However, vstore->varRegionList and vstore->varData
+ would still contain uninitialized entries with uninitialized
+ pointers in the event of an error, leading to issues when attempting
+ to clean up.
- Consolidate bitmap presetting and size assessment.
+ Reportd as
+ https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=40104
- * include/freetype/internal/ftobjs.h (ft_glyphslot_preset_bitmap):
- Change return type.
- * src/base/ftobjs.c (ft_glyphslot_preset_bitmap): Return the bitmap
- size assessment.
+ * src/cff/cffload.c (cff_vstore_load): Read the region and data counts
+ into locals and update the vstore counts immediately after each entry
+ becomes free-able.
- * src/raster/ftrend1.c (ft_raster1_render): Use it to refuse the
- rendering of enourmous or far-fetched outlines.
- * src/smooth/ftsmooth.c (ft_smooth_render_generic): Ditto.
+2021-10-20 Ben Wagner <bungeman@chromium.org>
-2018-08-30 Alexei Podtelezhnikov <apodtele@gmail.com>
+ [sfnt] Delay setting gasp ranges and count until computed.
- * src/base/ftobjs.c (ft_glyphslot_preset_bitmap): Correct mono.
-
-2018-08-30 Armin Hasitzka <prince.cherusker@gmail.com>
-
- [errors] Introduce a macro to control `FT_Error_String'.
-
- * devel/ftoption.h (FT_CONFIG_OPTION_ERROR_STRINGS),
- include/freetype/config/ftoption.h (FT_CONFIG_OPTION_ERROR_STRINGS):
- New macro.
-
-2018-08-30 Armin Hasitzka <prince.cherusker@gmail.com>
-
- [errors] Introduce `FT_Error_String'.
-
- * include/freetype/fterrors.h (FT_Error_String),
- src/base/fterrors.c (FT_Error_String): Implement `FT_Error_String'.
-
- * src/base/ftbase.c, src/base/Jamfile (_source),
- src/base/rules.mk (BASE_SRC): Add `fterrors.c' to the build logic.
-
- * src/base/ftdebug.c (FT_Throw): Use `FT_Error_String'.
-
-2018-08-30 Werner Lemberg <wl@gnu.org>
-
- [autofit] Trace `before' and `after' edges of strong points.
-
- * src/autofit/afhints.h (AF_PointRec) [FT_DEBUG_AUTOFIT]: New arrays
- `before' and `after'.
-
- * src/autofit/afhints.c (af_get_strong_edge_index): New auxiliary
- function.
- (af_glyph_hints_dump_points): Trace `before' and `after' edges.
- (af_glyph_hints_align_strong_points) [FT_DEBUG_AUTOFIT]: Set
- `before' and `after' information.
-
-2018-08-30 Alexei Podtelezhnikov <apodtele@gmail.com>
-
- [base] Overflow-resistant bitmap presetting.
-
- * src/base/ftobjs.c (ft_glyphslot_preset_bitmap): Implement it.
-
-2018-08-29 Armin Hasitzka <prince.cherusker@gmail.com>
-
- Fix numeric overflows.
-
- * src/pshint/pshalgo.c (psh_hint_align, psh_hint_align_light,
- psh_hint_table_find_strong_points): Fix numeric overflows.
-
- Reported as
-
- https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=10083
-
-2018-08-29 Werner Lemberg <wl@gnu.org>
-
- [cff] Fix handling of `roll' op in old engine.
+ Previously, the gasp.numRanges was set and gasp.gaspRanges was
+ allocated and assigned before a possible early exit if the frame could
+ not be entered. It is also possible that the gaspRanges allocation
+ could fail but the numRanges still be set to non-zero. In such cases
+ an error would be returned, but the face would have a gasp in an
+ inconsistent state which may still be accessed.
Reported as
+ https://bugs.chromium.org/p/chromium/issues/detail?id=1261450
- https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=10080
-
- * src/psaux/cffdecode.c (cff_decoder_parse_charstrings) <cff_op_roll>
- [CFF_CONFIG_OPTION_OLD_ENGINE]: Use modulo for loop count, as
- documented in the specification.
-
-2018-08-26 Werner Lemberg <wl@gnu.org>
+ * src/sfnt/ttload.c (tt_face_load_gasp): Delay setting gasp.numRanges
+ and gasp.gaspRanges until after the ranges are initialized.
- * src/truetype/ttobjs.c (tt_size_read_bytecode): Trace CVT values.
+2021-10-20 Ben Wagner <bungeman@chromium.org>
-2018-08-26 Nikhil Ramakrishnan <ramakrishnan.nikhil@gmail.com>
+ [sfnt] Delay setting names and langTags until computed.
- * configure: Copy assets required by docwriter.
-
- Copy directory `docs/reference/markdown' when FreeType is compiled in a
- different directory.
-
- Fixes `make refdoc' if builddir != srcdir.
+ Previously, the table->names and table->langTags fields were created
+ pointing to uninitialized memory and an early exit could happen if the
+ frame could not be entered. The caller would then be unable to properly
+ dispose of the memory as the string fields had not been initialized.
Reported as
+ https://bugs.chromium.org/p/chromium/issues/detail?id=1261343
- https://lists.nongnu.org/archive/html/freetype-devel/2018-08/msg00083.html
+ * src/sfnt/ttload.c (tt_face_load_name): delay setting table->langTags
+ and table->names until after the memory they will point to is fully
+ initialized.
-2018-08-26 Werner Lemberg <wl@gnu.org>
+2021-10-20 Alexei Podtelezhnikov <apodtele@gmail.com>
- * src/pshint/pshalgo.c (psh_hint_overlap): Fix numeric overflow.
+ * tests/issue-1063/main.c: s/PATH_MAX/FILENAME_MAX/.
- Reported as
+ Closes !97 for Windows by using a standard macro.
- https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=10057
+2021-10-19 Werner Lemberg <wl@gnu.org>
-2018-08-26 Werner Lemberg <wl@gnu.org>
+ [bdf, cid, pfr, winfonts] Improve rejection of other font formats.
- Minor tracing adjustments.
+ This is mainly for better diagnostics of malformed fonts.
- * src/base/ftstream.c (FT_Stream_EnterFrame, FT_Stream_ExitFrame):
- Trace.
+ * src/bdf/bdflib.c (_bfd_readstream): Stop font format testing if the first
+ input line is too long or doesn't end with `\r` or `\n`.
- * src/truetype/ttgload.c (TT_Access_Glyph_Frame): Remove tracing.
+ * src/cid/cidparse.c (cid_parser_new): Don't handle too short input as an
+ error but as an unknown format.
-2018-08-26 Werner Lemberg <wl@gnu.org>
+ * src/pfr/pfrobjs.c (pfr_face_init): Ditto.
- [truetype] Avoid nested frames.
+ * src/winfonts/winfnt.c (fnt_font_load, fnt_face_get_dll_font): Ditto.
- Triggered by
+2021-10-19 Alexei Podtelezhnikov <apodtele@gmail.com>
- https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=10054
+ [pcf] Zero out the allocated properties.
- * src/truetype/ttgload.c (load_truetype_glyph): Don't use variable
- `opened_frame' to trace whether a frame must be closed at the end of
- function: This fails because `TT_Vary_Apply_Glyph_Deltas' (which
- gets called for space glyphs) uses a frame by itself. Instead,
- close the frame after loading the header, then use another frame for
- the remaining part of the glyph later on.
+ Fallout reported as
+ https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=40033
- Also avoid calling `tt_get_metrics' twice under some circumstances.
+ * src/pcf/pcfread.c (pcf_get_properties): Use FT_NEW_ARRAY and zero
+ out `properties` in case of failure.
-2018-08-26 Werner Lemberg <wl@gnu.org>
+2021-10-18 Werner Lemberg <wl@gnu.org>
- Various minor clean-ups.
+ configure: Use string comparison for directory inodes.
- * src/base/ftapi.c: Remove. Unused.
- * src/base/Jamfile (_sources): Updated.
+ Inode values might be larger than integers supported by the shell.
- * src/base/ftstream.c (FT_Stream_ReleaseFrame): Remove redundant
- code.
+ Fixes #1105.
-2018-08-25 Nikhil Ramakrishnan <ramakrishnan.nikhil@gmail.com>
+2021-10-17 Alexei Podtelezhnikov <apodtele@gmail.com>
- Convert documentation markup to Markdown.
+ * src/sfnt/ttload.c (tt_face_load_name): NULL-initialize langTag.
- It is the result of a GSoC 2018 project; this separate ChangeLog
- commit covers the last four commits
+ Another attempt to fix fallout reported as
+ https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=40024
- ae5d1a4cec37557f31aec270332cfe886a62f9a0
- 53c69ce04faed3dcc68ca0f54cb8d703d8babf69
- 195728d5ba38f34fb2c2c20807c01656f2f59b66
- c962db28ea59225f0105c03d907d4a9b71765687
+2021-10-17 Alexei Podtelezhnikov <apodtele@gmail.com>
- * docs/reference/markdown/images/favico.ico,
- docs/reference/markdown/javascripts/extra.js,
- docs/reference/markdown/stylesheets/extra.css: New files.
+ [bdf] Fix up user properties.
- * docs/reference/.gitignore, docs/reference/README: Updated.
+ Fallout reported as
+ https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=40027
- * src/tools/docmaker/*: Removed. It has been replaced with
- `docwriter', a python package available at
+ * src/bdf/bdflib.c (_bdf_add_property): Cosmetic NULL.
+ (bdf_create_property): Limit allocations to customary signed
+ FT_Long and NULL-initialize unused storage.
+ (bdf_free_font): Do not free unused storage.
- https://pypi.org/project/docwriter/
+2021-10-17 Alexei Podtelezhnikov <apodtele@gmail.com>
- * Jamfile: Updated.
- * builds/ansi/ansi-def.mk, builds/beos/beos-def.mk,
- builds/dos/dos-def.mk, builds/os2/os2-def.mk (BIN),
- builds/unix/unixddef.mk, builds/windows/win32-def.mk: New variable.
+ * src/sfnt/ttload.c (tt_face_load_name): Accounting fix.
- * builds/unix/configure.raw: Check for `python' and `pip'.
- If not present, warn that `make refdoc' will fail.
- * builds/unix/unix-def.in (PYTHON, PIP, BIN): New variables.
+ Fallout reported as
+ https://crbug.com/40024
- * builds/freetype.mk (PYTHON, PIP, VENV_NAME, VENV_DIR, ENV_PYTHON,
- ENV_PIP): New variables.
- (refdoc): Updated.
- (refdoc-venv): New target.
- (.PHONY): Updated.
+2021-10-16 Ben Wagner <bungeman@chromium.org>
-2018-08-23 Werner Lemberg <wl@gnu.org>
+ Fix typos in memory macros.
- Add macros for handling over-/underflowing `FT_Int64' values.
+ FT_QNEW_ARRAY and FT_QRENEW_ARRAY were using the non-Q
+ FT_MEM_NEW_ARRAY and FT_MEM_RENEW_ARRAY. Change these to use the Q
+ versions. Also fix the one issue discovered in tt_face_load_name
+ where table->names is created with FT_QNEW_ARRAY but the extra
+ string member is not initialized to NULL.
- * include/freetype/internal/ftcalc.h (ADD_INT64, SUB_INT64,
- MUL_INT64, DIV_INT64) [FT_LONG64]: New macros.
+ * include/freetype/internal/ftmemory.h (FT_Q(RE)NEW_ARRAY):
+ Use FT_MEM_Q(RE)NEW_ARRAY as needed.
- * src/base/ftcalc.c (ft_corner_orientation) [FT_LONG64]: Use
- `SUB_INT64' and `MUL_INT64'.
+ * src/sfnt/ttload.c (tt_face_load_name): Initialize `entry->string`.
- Reported as
+2021-10-15 Ben Wagner <bungeman@chromium.org>
- https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=10028
+ [truetype] Reload context after re-executing `prep`.
-2018-08-22 Werner Lemberg <wl@gnu.org>
+ When a different hinting mode from the current is selected, the `prep` table
+ must be re-executed with the new mode. After this happens the context must
+ be re-loaded in preparation for the glyph program to be run.
- [truetype] Improve legibility of `glyf' parsing.
+ Fixes #1104.
- * src/truetype/ttgload.c (ON_CURVE_POINT, X_SHORT_VECTOR,
- Y_SHORT_VECTOR, REPEAT_FLAG, X_POSITIVE, SAME_X, Y_POSITIVE, SAME_Y,
- OVERLAP_SIMPLE): New macros.
- (TT_Load_Simple_Glyph): Use new macros to make code more readable.
- Remove useless adjustment of `outline->tags' elements.
+ * truetype/ttgload.c (tt_loader_init): Add call to `TT_Load_Context`.
-2018-08-21 Werner Lemberg <wl@gnu.org>
+2021-10-15 Werner Lemberg <wl@gnu.org>
- * src/sfnt/ttcpal.c (tt_face_load_cpal): Add missing safety check.
+ [truetype] Minor documentation improvements.
- Reported as
+2021-10-14 Anurag Thakur <anuthadev@gmail.com>
- https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=9981
+ Add clang build to linux CI
-2018-08-18 Werner Lemberg <wl@gnu.org>
+2021-10-12 Anurag Thakur <anuthadev@gmail.com>
- [psaux] Avoid slow PS font parsing in case of error.
+ CI: Add macOS CI, including a clang build
- Reported as
+2021-10-12 Alexei Podtelezhnikov <apodtele@gmail.com>
- https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=9955
+ * src/cid/cidload.c (parse_fd_array): Protect against trancation.
- * src/psaux/psobjs.c (ps_parser_to_bytes): Set `parser->cursor' even
- in case of error to avoid potential re-scanning.
+2021-10-12 Alexei Podtelezhnikov <apodtele@gmail.com>
-2018-08-18 Werner Lemberg <wl@gnu.org>
+ [type1] Revert to signed size for binary data.
- [cff] Fix heap buffer overflow in old engine.
+ Recently introduced and reported as
+ https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=39838
- Reported as
+ * src/type1/t1load.c (read_binary_data): Reject negative size.
+ (parse_subrs, parse_charstrings): Use customary signed size.
- https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=9967
+2021-10-11 Alexei Podtelezhnikov <apodtele@gmail.com>
- * src/psaux/cffdecode.c (cff_decoder_parse_charstrings)
- <cff_op_blend> [CFF_CONFIG_OPTION_OLD_ENGINE]: `num_designs' must be
- non-zero.
+ [psaux] Signedness revisions.
-2018-08-16 Young Xiao <yangx92@hotmail.com>
+ Unsigned indexes are easier to check.
- * builds/mac/ftmac.c (parse_fond): Fix buffer overrun.
+ * src/psaux/cffdecode.c (cff_decoder_parse_charstrings): Updated.
+ * src/psaux/psintrp.c (cf2_interpT2CharString): Ditto.
+ * src/psaux/t1decode.c (t1_decoder_parse_charstrings): Ditto.
+ * src/type1/t1load.c (read_binary_data): Ditto.
- Reported as bug #54515, duplicate of #43540.
+2021-10-11 Alexei Podtelezhnikov <apodtele@gmail.com>
-2018-08-16 Werner Lemberg <wl@gnu.org>
+ [cid] Signedness revisions.
- * builds/*/ftsystem.c (FT_COMPONENT): Updated also.
+ Unsigned checks are simpler.
-2018-08-15 Alexei Podtelezhnikov <apodtele@gmail.com>
+ * include/freetype/t1tables.h (CID_FaceInfoRec): Change to unsignd
+ `num_dicts`.
+ * src/cid/cidparse.h (CID_Parser): Change to unsigned `num_dict`.
- [bdf] Don't track duplicate encodings.
+ * src/cid/cidgload.c (cid_load_glyph): Updated.
+ * src/cid/cidload.c (cid_load_keyword, parse_fd_array,
+ parse_expansion_factor, parse_font_name, cid_read_subrs,
+ cid_face_open): Updated.
+ * src/cid/cidobjs.c (cid_face_done): Updated.
+ * src/cid/cidparse.c (cid_parser_new): Updated.
- There is no harm except some umbiguity in broken fonts with duplicate
- encodings.
+2021-10-09 Alexei Podtelezhnikov <apodtele@gmail.com>
- * src/bdf/bdflib.c (_bdf_parse_glyphs): Remove duplicate tracking.
- (_bdf_parse_t): Remove large `have' bitfield.
+ * src/cid/cidload.c (cid_face_open): Streamline CIDCount check.
-2018-08-15 Werner Lemberg <wl@gnu.org>
+2021-10-08 Alexei Podtelezhnikov <apodtele@gmail.com>
- Don't use `trace_' prefix for FT_COMPONENT arguments.
+ * src/cid/cidload.c (cid_face_open): Streamline SubrCount check.
- * include/freetype/internal/ftdebug.h (FT_TRACE_COMP,
- FT_TRACE_COMP_): New auxiliary macros to add `trace_' prefix.
- (FT_TRACE): Use `FT_TRACE_COMP'.
+2021-10-08 Alexei Podtelezhnikov <apodtele@gmail.com>
- */* (FT_COMPONENT): Updated.
+ * src/cid/cidgload.c (cid_load_glyph): Fortify incremental loading.
-2018-08-14 Werner Lemberg <wl@gnu.org>
+2021-10-08 Alexei Podtelezhnikov <apodtele@gmail.com>
- Use formatting string in FT_TRACEX calls for non-simple arguments.
+ Signedness revisions.
- * src/psaux/cffdecode.c (cff_decoder_parse_charstrings)
- <cff_op_hstem, cff_op_hintmask, cff_op_hlineto, cff_op_vhcurveto>:
- Do it.
+ This eliminates explicit casting by switching to unsigned fields.
+ The revisions mostly impact the handling of CID fonts.
- * src/psaux/pshints.c (cf2_hintmap_build): Ditto.
+ * include/freetype/fttypes.h (FT_Data): Change to unsigned `length`.
+ * include/freetype/t1tables.h (CID_FaceDictRec): Ditto for `sd_bytes`.
+ (CID_FaceInfoRec): Ditto for `gd_bytes` and `gd_bytes`.
+ * include/freetype/internal/tttypes.h (TT_LoaderRec): Ditto for
+ `byte_len`.
- * src/psaux/psintrp.c (cf2_interpT2CharString) <cf2_cmdHSTEM,
- cf2_cmdVSTEM, cf2_cmdHLINETO, cf2_cmdRRCURVETO, cf2_cmdCALLSUBR,
- cf2_escHSTEM3, cf2_cmdHINTMASK, cf2_cmdHVCURVETO>: Ditto.
+ * src/cid/cidgload.c (cid_load_glyph): Updated.
+ * src/cid/cidload.h (cid_get_offset): Update argument.
+ * src/cid/cidload.c (cid_get_offset, cid_read_subrs, cid_face_open):
+ Updated.
+ * src/cff/cffgload.c (cff_get_glyph_data, cff_free_glyph_data):
+ Updated.
+ * src/psaux/psft.c (cf2_getT1SeacComponent): Updated.
+ * src/truetype/ttgload.c (TT_Process_Composite_Glyph,
+ load_truetype_glyph): Updated.
- * src/truetype/ttinterp.c (TT_RunIns): Ditto.
+2021-10-07 Jan Alexander Steffens (heftig) <jan.steffens@gmail.com>
-2018-08-14 Alexei Podtelezhnikov <apodtele@gmail.com>
+ meson.build (gen_docs): Use `current_source_dir` instead of `source_root`.
- [bdf] Remove unused fields.
+ These two are not equal when FreeType is used as a subproject, such as in
+ `freetype-demos`. In that case, `source_root` points at the root project,
+ causing the docs build to fail.
- * src/bdf/bdf.h (bdf_font_t): Remove `nmod', `umod', and `modified',
- which were set but never used.
- * src/bdf/bdflib.c (_bdf_parse_{glyphs,properties}, bdf_load_font):
- Updated accordingly.
+2021-10-05 Alexei Podtelezhnikov <apodtele@gmail.com>
-2018-08-14 Werner Lemberg <wl@gnu.org>
+ * src/smooth/ftgrays.c (FT_DIV_MOD): Limit the ARM workaround.
- [cff] Fix another segv in old engine.
+2021-10-05 Alexei Podtelezhnikov <apodtele@gmail.com>
- Reported as
+ [builds/unix, builds/vms] Standardize `mmap` failure.
- https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=9872
+ * builds/unix/ftsystem.c (FT_Stream_Open): Check for MAP_FAILED.
+ * builds/vms/ftsystem.c (FT_Stream_Open): Ditto.
- * src/psaux/cffdecode.c (cff_decoder_parse_charstrings)
- [CFF_CONFIG_OPTION_OLD_ENGINE]: Disallow invalid T1 opcodes in
- dictionaries.
+ This should cover https://savannah.nongnu.org/patch/?5909 as well.
-2018-08-14 Werner Lemberg <wl@gnu.org>
+2021-10-05 Hugh McMaster <hugh.mcmaster@outlook.com>
- [cff] Fix missing error handling.
+ autogen.sh: Only copy submodules if building from a git branch.
- Reported as
+ `autogen.sh` fails if building from a standard source tarball. Firstly, git
+ expects to be called in a git repository, then `copy_submodule_files`
+ blindly attempts to copy files.
- https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=9865
+ Debian, Ubuntu, Linux Mint, and other derivatives all run `autogen.sh`
+ before compiling to regenerate build files.
- * src/psaux/cffparse.c (cff_parser_run)
- [CFF_CONFIG_OPTION_OLD_ENGINE]: Don't ignore return value of
- `parse_charstrings_old'.
+ This patch ensures that various git commands are only called and 'dlg' files
+ are only copied if `autogen.sh` is called from a git repository.
-2018-08-14 Alexei Podtelezhnikov <apodtele@gmail.com>
+2021-10-05 Alexei Podtelezhnikov <apodtele@gmail.com>
- [bdf] Remove unused overflow storage.
+ * include/freetype/internal/ftgloadr.h: Add missing header.
- * src/bdf/bdf.h (bdf_glyphlist_t): Remove this type.
- (bdf_font_t): Remove `overflow' field.
- * src/bdf/bdflib.c (bdf_free_font): Remove `overflow' freeing.
+ Noticed by Jouk Jansen.
-2018-08-14 Werner Lemberg <wl@gnu.org>
+2021-10-05 Alexei Podtelezhnikov <apodtele@gmail.com>
- [cff] Fix segv in old engine.
+ [pshinter] Additional clean-ups.
- Reported as
+ * src/pshinter/pshalgo.h (psh_hint_table_find_strong_points): Streamline code.
+ * src/pshinter/pshalgo.h (PSH_Glyph): Remove unused fields.
- https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=9864
+2021-10-04 Alexei Podtelezhnikov <apodtele@gmail.com>
- * src/psaux/cffdecode.c (cff_decoder_parse_charstrings)
- <cff_op_random> [CFF_CONFIG_OPTION_OLD_ENGINE]: Use top dict's
- `random' field directly if parsing dictionaries.
+ [pshinter] More convenient direction definition.
-2018-08-13 Alexei Podtelezhnikov <apodtele@gmail.com>
+ It is easier to check directions using flags than integer values.
- [bdf] Use unsigned types.
+ * src/pshinter/pshalgo.h (PSH_Dir): Redefine directions.
+ (PSH_PointRec): Use them as an enum type.
- * src/bdf/bdf.h (bdf_glyph_t): Unsign `encoding'.
- (bdf_font_t): Unsign `default_char'.
- * src/bdf/bdfdrivr.h (BDF_encoding_el): Unsign `enc'.
+ * src/pshinter/pshalgo.c (psh_compute_dir): Modify return type.
+ (psh_glyph_init, psh_hint_table_find_strong_points,
+ psh_glyph_find_blue_points): Update users.
- * src/bdf/bdflib.c (_bdf_add_property, _bdf_parse_glyphs,
- _bdf_parse_start): Updated accordingly.
- * src/bdf/bdfdrivr.c (bdf_cmap_char_{index,next}): Ditto.
+2021-10-04 Alexei Podtelezhnikov <apodtele@gmail.com>
-2018-08-13 Werner Lemberg <wl@gnu.org>
+ [pshinter] Remove unnecessary check.
- * src/type42/t42parse.c (t42_parse_sfnts): One more format check.
+ * src/pshinter/pshalgo.c (psh_hint_table_find_strong_points): Do not
+ check if direction is defined before checking how.
- Reported as
+2021-10-02 AnuthaDev <anuthadev@gmail.com>
- https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=9832
+ CI: Hardcode meson version to fix build failure on windows
-2018-08-11 Werner Lemberg <wl@gnu.org>
+2021-10-01 Alexei Podtelezhnikov <apodtele@gmail.com>
- * src/base/ftcalc.c (FT_Matrix_Check): Fix integer overflow.
+ Additional `FT_MSB` macro definitions.
- Reported as
+ * include/freetype/internal/ftcalc.h [__DECC,_CRAYC]: Use builtins
+ and intrinsics.
- https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=9811
+2021-10-01 Alexei Podtelezhnikov <apodtele@gmail.com>
-2018-08-10 Alexei Podtelezhnikov <apodtele@gmail.com>
+ * src/autofit/afhints.c (af_glyph_hints_reload): Decrease casting.
- * src/sfnt/ttsbit.c (tt_sbit_decoder_load_compound): Follow specs.
+2021-09-30 Alexei Podtelezhnikov <apodtele@gmail.com>
-2018-08-10 Ben Wagner <bungeman@google.com>
+ * src/tools/apinames.c: Facilitate OpenVMS linker options.
- * src/sfnt/sfobjs.c (sfnt_done_face): Fix memory leak (#54435).
+2021-09-29 Alexei Podtelezhnikov <apodtele@gmail.com>
-2018-08-10 Werner Lemberg <wl@gnu.org>
+ * src/winfonts/winfnt.c (FNT_Face_Init): Correct reallocation.
- * src/base/ftobjs.c (FT_Render_Glyph_Internal): Improve tracing.
+2021-09-25 Alexei Podtelezhnikov <apodtele@gmail.com>
-2018-08-10 Werner Lemberg <wl@gnu.org>
+ [builds/unix] Do not use autoconf SIZEOF.
- Fix clang warnings.
+ * builds/unix/ftconfig.h.in [FT_USE_AUTOCONF_SIZEOF_TYPES]: Removed.
+ * builds/unix/configure.raw: Remove AC_CHECK_SIZEOF and update.
- * src/base/ftdebug.c (ft_trace_level_enabled,
- ft_trace_level_disabled): Add `static' keyword.
+ After this commit, autoconf builds will fully rely on <limits.h>
+ rather than falling back on it if AC_CHECK_SIZEOF failed for some
+ reason. There is a risk that misconfigured cross-compilation might
+ have wrong headers. Note that Meson and CMake builds always relied on
+ <limits.h> for sizes and availability of integer types.
-2018-08-09 Alexei Podtelezhnikov <apodtele@gmail.com>
+2021-09-25 Alexei Podtelezhnikov <apodtele@gmail.com>
- [raster, smooth] Reinstate bitmap size limits.
+ Propagate sign when reading OFF3.
- This again moves outline and bitmap size checks one level up.
+ Signed 24-bit values are extremely rare. FreeType only reads them in
+ PFR fonts with bitmap strikes conditionally. They have not been seen
+ in the known fonts. That is why this bug could never be discovered.
+ `FT_FRAME_OFF3` propagates sign correctly.
- * src/base/ftoutln.c (FT_Outline_Render): Explicitly reject enormous
- outlines.
- * src/raster/ftrend1.c (ft_raster1_render): Reject enormous bitmaps
- and, therefore, outlines that require them.
- * src/smooth/ftsmooth.c (ft_smooth_render_generic): Ditto.
+ * include/freetype/internal/ftstream.h (FT_PEEK_OFF3, FT_PEEK_OFF3_LE):
+ Propagate sign into 32-bit value.
+ (FT_GET_OFF3, FT_READ_OFF3): Needed fixing but removed as unused.
- * src/raster/ftraster.c (ft_black_render): Remove outline size checks.
- * src/smooth/ftgrays.c (gray_raster_render): Ditto.
- [STANDALONE]: Remove `FT_Outline_Get_CBox' copy.
+2021-09-25 Alexei Podtelezhnikov <apodtele@gmail.com>
-2018-08-08 Alexei Podtelezhnikov <apodtele@gmail.com>
+ [bdf] Simplify comment collection or lack thereof.
- [pcf] Revert massive unsigning.
+ BDF comments are neither actually collected nor retrieved. There is
+ no need to be fancy with delimiters.
-2018-08-08 Werner Lemberg <wl@gnu.org>
+ * src/bdf/bdflib.c (_add_bdf_comment): Delimit comments with zeros...
+ (bdf_load_font): ...and do not null-terminate comments additionally.
+ (_bdf_parse_glyphs): Check if comments are kept, which they are not.
+ (_bdf_parse_start): Minor clean up.
- [smooth] Improve tracing.
+2021-09-24 Alexei Podtelezhnikov <apodtele@gmail.com>
- * src/smooth/ftgrays.c (gray_convert_glyph_inner): Only use tracing
- if called the first time.
- (gray_convert_glyph): Updated.
+ Use NULL for pointers only.
-2018-08-08 Werner Lemberg <wl@gnu.org>
+ * src/bdf/bdflib.c (*): Code changes.
+ * include/freetype/freetype.h: Comments only.
+ * src/cff/cffload.c, src/cff/cffobjs.c: Ditto.
+ * src/winfonts/winfnt.c: Ditto.
- Add internal functions `FT_Trace_Disable' and `FT_Trace_Enable'.
+2021-09-23 Werner Lemberg <wl@gnu.org>
- It sometimes makes sense to suppress tracing informations, for
- example, if it outputs identical messages again and again.
+ Minor documentation fixes and improvements.
- * include/freetype/internal/ftdebug.h: Make `ft_trace_levels' a
- pointer.
- (FT_Trace_Disable, FT_Trace_Enable): New declarations.
+2021-09-23 Alexei Podtelezhnikov <apodtele@gmail.com>
- * src/base/ftdebug.c (ft_trace_levels): Rename to...
- (ft_trace_levels_enabled): ... this.
- (ft_trace_levels_disabled): New array.
- (ft_trace_levels): New pointer.
- (FT_Trace_Disable, FT_Trace_Enable): Implement.
- (ft_debug_init): Updated.
+ Reference `fopen` in the docs.
-2018-08-08 Werner Lemberg <wl@gnu.org>
+2021-09-23 Alexei Podtelezhnikov <apodtele@gmail.com>
- Debugging improvements.
+ [bdf, pcf] Minor optimization.
- * src/base/ftobjs.c (pixel_modes): Move this array to top level
- from ...
- (FT_Load_Glyph): ... here.
- (FT_Render_Glyph_Internal): Use `width' x `height' in trace message.
- Use `pixel_modes'.
+ * src/pcf/pcfread.c (pcf_load_font): Do not call `FT_MulDiv` for a
+ small job.
+ * src/bdf/bdfdrivr.c (BDF_Face_Init): Ditto.
+ * src/bdf/bdflib.c (_bdf_parse_glyphs): Fix a comment.
-2018-08-08 Alexei Podtelezhnikov <apodtele@gmail.com>
+2021-09-22 Alexei Podtelezhnikov <apodtele@gmail.com>
- [pcf] Massive unsigning (part 2).
+ [base] Initialize stream memory earlier.
- Treat all size related properties as unsigned values.
+ With Windows memory management tracking heap, it is important to use
+ it during the stream opening fallback. In Unix, the argument is
+ unused, but it is better to set it correctly.
- * src/pcf/pcf.h (PCF_ParsePropertyRec): Use unsigned `name' and
- `value'.
- * src/pcf/pcfread.c (pcf_get_properties, pcf_load_font): Updated
- parsing code and handling of AVERAGE_WIDTH, POINT_SIZE, PIXEL_SIZE,
- RESOLUTION_X and RESOLUTION_Y.
+ * src/base/ftobjs.c (FT_Stream_New): Set memory before calling
+ `FT_Stream_Open`.
+ * builds/windows/ftsystem.c, builds/unix/ftsystem.c (FT_Stream_Open,
+ ft_close_stream_by_free): Call `ft_alloc` and `ft_free` with proper
+ memory argumment.
-2018-08-08 Alexei Podtelezhnikov <apodtele@gmail.com>
+2021-09-22 Alexei Podtelezhnikov <apodtele@gmail.com>
- [pcf] Massive unsigning (part 1).
+ [builds/windows] Revert back to `CreateFileA` only.
- Unofficial specifications hesitate to use unsigned 32-bit integers.
- Negative values caused a lot of trouble in the past and it is safer
- and easier to treat some properties as unsigned.
+ Calling `CreateFileW` without making sure that the patname is really
+ `wchar_t` is a bad idea and can lead to unpredictable overreads. For
+ Windows CE, we impelemnt the missing API.
- * src/pcf/pcf.h (PCF_AccelRec): Use unsigned values for `fontAscent',
- `fontDescent', and `maxOverlap'.
- * src/pcf/pcfread.c (pcf_load_font, pcf_get_accel): Updated.
- * src/pcf/pcfdrivr.c (PCF_Glyph_Load, PCF_Size_Select,
- PCF_Size_Request): Updated.
+ Fixes #1098 and !76 again.
-2018-08-07 Alexei Podtelezhnikov <apodtele@gmail.com>
+ * builds/windows/ftsystem.c (FT_Stream_Open): Call `CreateFileA`.
+ [_WIN32_WCE] (CreateFileA, FileSizeEx): Implement missing interfaces.
- * src/pcf/pcfread.c (pcf_get_bitmaps): Unsign `offsets' and
- `bitmapSizes'.
+2021-09-21 Alexei Podtelezhnikov <apodtele@gmail.com>
-2018-08-06 Werner Lemberg <wl@gnu.org>
+ * src/bdf/bdflib.c (_bdf_parse_{start,glyphs}): Use appropriate scanner.
- * devel/ftoption.h: Synchronize with main `ftoption.h'.
+2021-09-21 Alexei Podtelezhnikov <apodtele@gmail.com>
-2018-08-06 Alexei Podtelezhnikov <apodtele@gmail.com>
+ Minor.
- [pcf] Use unsigned types.
+2021-09-20 Alexei Podtelezhnikov <apodtele@gmail.com>
- * src/pcf/pcf.h (PCF_Encoding): Use unsigned `enc'.
- * src/pcf/pcfdrivr.c (pcf_cmap_char_{index,next}): Ditto.
- * src/pcf/pcfread.c (pcf_get_encodings): Use unsigned types.
+ * src/cff/cffdrivr.c (cff_ps_get_font_{info,extra}): Use FT_QNEW.
-2018-08-05 Werner Lemberg <wl@gnu.org>
+2021-09-18 Alexei Podtelezhnikov <apodtele@gmail.com>
- * src/truetype/ttgload.c (compute_glyph_metrics): Fix overflow.
+ [cache] Minor clean-ups.
- Reported as
+ * src/cache/ftccache.h (FTC_CACHE_LOOKUP_CMP): Remove parantheses.
+ * src/cache/ftccache.c (FTC_Cache_Lookup): Ditto.
+ (FTC_Cache_RemoveFaceID): Remove unnecessary variable.
- https://bugs.chromium.org/p/chromium/issues/detail?id=777151
+2021-09-17 Alexei Podtelezhnikov <apodtele@gmail.com>
-2018-08-04 Werner Lemberg <wl@gnu.org>
+ [builds/windows] Try both wide and narrow `CreateFile`
- * src/truetype/ttinterp.c (opcode_name): Fix typos.
+ Windows handles wchar_t* UTF-16 and char* ANSI (presently UTF-8)
+ filenames using alternative -A and -W API. We'll try them both
+ when opening a file. This means that you should not worry about
+ about conversions.
-2018-08-04 Werner Lemberg <wl@gnu.org>
+ Fixes #1098 and !76.
- Fix clang warnings.
+ * builds/windows/ftsystem.c (FT_Stream_Open): Call alternative
+ `CreateFile` in the case of failure.
- * src/base/ftoutln.c (FT_Outline_EmboldenXY): Fix type of
- `orientation'.
+2021-09-17 Edwin Steiner <edwin.steiner@gmail.com>
- * src/gxvalid/gxvcommn.c (gx_lookup_value_read): Fix signature.
+ [cff] Explicitly set StandardEncoding or ExpertEncoding offsets.
- * src/pcf/pcfread.c (pcf_get_encodings): Fix type of some variables.
- Add cast.
+ Fixes #1097.
- * src/type1/t1load.c (parse_weight_vector): Fix cast.
+ * src/cff/cffload.c (cff_encoding_load): Set special offset values.
-2018-07-31 Werner Lemberg <wl@gnu.org>
+2021-09-16 Alexei Podtelezhnikov <apodtele@gmail.com>
- * src/cid/cidtoken.h: Handle `XUID' keyword.
+ [cache] Miscellaneous clean-ups.
-2018-07-31 Werner Lemberg <wl@gnu.org>
+ * src/cache/ftccache.c (ftc_get_top_node_for_hash, FTC_Cache_Clear):
+ Remove barely used variables.
+ (ftc_cache_add): Adjust casting.
+ * src/cache/ftccmap.c (FTC_CMapCache_Lookup): Remove casting.
+ * src/cache/ftcsbits.c (ftc_snode_load): Remove casting.
- [cid] Trace PostScript dictionaries.
+2021-09-16 Alexei Podtelezhnikov <apodtele@gmail.com>
- * src/cid/cidload.c: Include FT_INTERNAL_POSTSCRIPT_AUX_H.
- (cid_load_keyword, cid_parse_font_matrix, parse_fd_array,
- parse_expansion_factor, cid_parse_dict): Add tracing calls.
- (parse_font_name): New function to trace `/FontName' keywords in
- /FDArray dict.
- (cid_field_records): Register `parse_font_name'.
+ * src/cff/cffload.c (cff_fd_select_get): Remove casting.
-2018-07-30 Werner Lemberg <wl@gnu.org>
+2021-09-16 Alexei Podtelezhnikov <apodtele@gmail.com>
- [cff] Fix typo.
+ * src/pcf/pcfread.c (pcf_read_TOC): Remove casting.
- Reported as
+2021-09-15 Alexei Podtelezhnikov <apodtele@gmail.com>
- https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=9409
+ Minor type adjustments.
- * src/cff/cffdrivr.c (cff_get_cid_from_glyph_index): Fix boundary
- check.
+ * src/cff/cffobjs.c (cff_face_init): Reduce casting.
+ * src/truetype/ttobjs.c (tt_size_ready_bytecode): Ditto.
+ * src/type1/t1load.c (T1_Set_MM_Design): Ditto.
-2018-07-29 Werner Lemberg <wl@gnu.org>
+2021-09-15 Alexei Podtelezhnikov <apodtele@gmail.com>
- * src/pcf/pcfread.c (pcf_get_encodings): Another thinko.
+ Replace boolean allocation macros with MEM ones.
- Reported as
+ * src/base/ftbitmap.c (FT_Bitmap_Copy): Use MEM-macro.
+ * src/base/ftobjs.c (ft_glyphslot_alloc_bitmap): Ditto.
+ * src/bzip2/ftbzip2.c (ft_bzip2_alloc): Ditto.
+ * src/cache/ftccache.c (ftc_cache_init): Ditto
+ * src/gzip/ftgzip.c (ft_gzip_alloc): Ditto.
+ * src/psnames/psmodule.c (ps_unicodes_init): Ditto.
+ * src/sfnt/sfobjs.c (sfnt_load_face): Ditto.
+ * src/sfnt/ttload.c (tt_face_load_name): Ditto.
- https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=9608
+2021-09-15 Alexei Podtelezhnikov <apodtele@gmail.com>
-2018-07-28 Alexei Podtelezhnikov <apodtele@gmail.com>
+ [cache] Revert to some zeroing.
- [smooth] Fix Harmony memory management.
+ * src/cache/ftccache.c (ftc_cache_init, ftc_cache_resize): Zero
+ `buckets` again to fix some crashes.
- Reported as
+2021-09-14 Alexei Podtelezhnikov <apodtele@gmail.com>
- https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=9501
+ * src/pshinter/pshrec.c (ps_mask_table_merge_all): Tweak loops.
- * src/smooth/ftgrays.c (ft_smooth_render_generic): Restore buffer
- after each rendering in case of failure.
+ Fixes fallout from 731d0b685685 reported as
-2018-07-28 Werner Lemberg <wl@gnu.org>
+ https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=38685
- [type1] Avoid segfaults with `FT_Get_PS_Font_Value'.
+2021-09-13 Alexei Podtelezhnikov <apodtele@gmail.com>
- Reported as
+ [cff, pshinter] Clean up unsigned counters.
- https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=9610
+ Loops with unsigned decrement can be reliably stopped when the counter
+ wraps around after reaching zero.
- * src/type1/t1driver.c (t1_ps_get_font_value): Protect against NULL.
+ * src/cff/cffload.c (cff_charset_compute_cids): Use unsigned counter.
+ * src/pshinter/pshalgo.c (psh_hint_table_activate_mask): Ditto.
+ * src/pshinter/pshrec.c (ps_mask_table_merge): Ditto.
-2018-07-27 Werner Lemberg <wl@gnu.org>
+2021-09-13 Alexei Podtelezhnikov <apodtele@gmail.com>
- [truetype] Make `TT_Set_MM_Blend' idempotent (#54388).
+ [bdf, psnames, sfnt] Avoid some memory zeroing.
- * src/truetype/ttgxvar.c (tt_set_mm_blend): Correctly set
- `face->doblend' if the current call to the function yields the same
- blend coordinates as the previous call.
+ * src/bdf/bdfdrivr.c (BDF_Face_Init): Use Q-macro.
+ * src/sfnt/sfobjs.c (sfnt_load_face): Ditto.
+ * src/psnames/psmodule.c (src/psnames/psmodule.c): Remove zero.
-2018-07-27 Werner Lemberg <wl@gnu.org>
+2021-09-13 Alexei Podtelezhnikov <apodtele@gmail.com>
- [psaux, type1]: More tracing improvements.
+ * src/base/ftobjs.c (FT_CMap_New): Revert to zeroing.
- * src/psaux/psintrp.c (cf2_interpT2CharString): Trace skipped
- outline commands.
+ Fixes fallout from c1fa7aa2bc96, reported as
- * src/psaux/t1decode.c (t1_decoder_parse_charstring): Fix
- missing case.
- (t1_decoder_parse_metrics): Make tracing output more compact.
+ https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=38641
- * src/type1/t1gload.c (T1_Compute_Max_Advance): Be less verbose.
- (T1_Get_Advances): Add tracing.
+2021-09-13 Alexei Podtelezhnikov <apodtele@gmail.com>
-2018-07-25 Werner Lemberg <wl@gnu.org>
+ [truetype] Clean up `exec` initialization.
- [psaux, type1] Trace PostScript dictionaries and other things.
+ * src/truetype/ttinterp.c (Init_Context): Absorbed into...
+ (TT_New_Context): ... this function.
- The tracing of /Encoding, /Subrs, and /Charstrings is rudimentary
- right now.
+2021-09-13 Alexei Podtelezhnikov <apodtele@gmail.com>
- * src/psaux/psobjs.c (ps_parser_load_field,
- ps_parser_load_field_table): Add tracing calls.
+ [truetype] Avoid some memory zeroing.
- * src/psaux/t1decode.c (t1_decoder_parse_charstrings): Make tracing
- output more compact.
+ * src/truetype/ttgload.c (load_truetype_glyph): Use Q-macro.
+ * src/truetype/ttinterp.c (Update_Max): Ditto.
+ * src/truetype/ttpload.c (src/truetype/ttpload.c): Ditto.
- * src/type1/t1gload.c (T1_Compute_Max_Advance, T1_Get_Advances): Add
- tracing messages.
+2021-09-13 Alexei Podtelezhnikov <apodtele@gmail.com>
- * src/type1/t1load.c (parse_blend_axis_types,
- parse_blend_design_positions, parse_blend_design_map,
- parse_weight_vector, t1_load_keyword, t1_parse_font_matrix,
- parse_encoding, parse_subrs, parse_charstrings, T1_Open_Face): Add
- tracing calls.
+ [base] Avoid some memory zeroing.
- * src/type1/t1objs.c (T1_Face_Init): Add tracing call.
+ * src/base/ftobjs.c (FT_New_Size, FT_CMap_New, FT_CMap_Done,
+ ft_open_face_internal, ft_open_face_internal): Use Q-macros.
- * src/sfnt/sfobjs.c (sfnt_init_face): Make tracing message more
- verbose.
+2021-09-13 Alexei Podtelezhnikov <apodtele@gmail.com>
-2018-07-25 Werner Lemberg <wl@gnu.org>
+ [cache, psaux] Remove zeros.
- Fix minor ASAN run-time warnings.
+ * src/cache/ftcmru.c (FTC_MruList_New): Remove initialization.
+ * src/psaux/psstack.c (cf2_stack_init): Ditto.
- * src/base/ftutil.c (ft_mem_alloc, ft_mem_realloc): Only call
- `FT_MEM_ZERO' if we actually have a buffer.
- (ft_mem_dup): Only call `ft_memcpy' if we actually have a buffer.
+2021-09-12 Alexei Podtelezhnikov <apodtele@gmail.com>
-2018-07-24 Alexei Podtelezhnikov <apodtele@gmail.com>
+ [cache] Avoid some memory zeroing.
- [build] Fortify dllexport/dllimport attributes (#53969,#54330).
+ * src/cache/ftcmru.c (FTC_MruList_New): Use Q-macro.
+ * src/cache/ftcmanag.c (FTC_Manager_RegisterCache): Ditto.
+ * src/cache/ftccache.c (ftc_cache_init, ftc_cache_resize): Ditto.
- We no longer use predefined _DLL, which can be defined for static
- builds too with /MD. We use DLL_EXPORT and DLL_IMPORT instead,
- following libtool convention.
+2021-09-11 Alexei Podtelezhnikov <apodtele@gmail.com>
- * CMakeLists.txt [WIN32], builds/windows/vc2010/freetype.vcxproj:
- Define DLL_EXPORT manually.
+ * src/cache/ftcmanag.c (FTC_Manager_New): Add missing zero.
- * include/freetype/config/ftconfig.h, builds/unix/ftconfig.in,
- builds/vms/ftconfig.h, builds/windows/vc2010/index.html,
- src/base/ftver.rc: /_DLL/d, s/FT2_DLLIMPORT/DLL_IMPORT/.
+ Fixes fall out from a7b199d081e7.
-2018-07-24 Werner Lemberg <wl@gnu.org>
+2021-09-10 Alexei Podtelezhnikov <apodtele@gmail.com>
- [type1] Check relationship between number of axes and designs.
+ [truetype] Tweak `hdmx` checking.
- For Multiple Masters fonts we don't support intermediate designs;
- this implies that
+ Fixes #1096.
- number_of_designs == 2 ^^ number_of_axes
+ * src/truetype/ttpload.c (tt_face_load_hdmx): Account for padding.
- Reported as
+2021-09-10 Alexei Podtelezhnikov <apodtele@gmail.com>
- https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=9557
+ [truetype] Tweak `loca` clamping.
- * src/type1/t1load.c (T1_Open_Face): Ensure above constraint.
- (T1_Get_MM_Var): Remove now redundant test.
+ Fixes #1095.
-2018-07-24 Hin-Tak Leung <htl10@users.sourceforge.net>
+ * src/truetype/ttpload.c (tt_face_load_loca): Fix up clamping.
+ * include/freetype/internal/tttypes.h (TT_Face): Correct docs.
- [truetype] Match ttdebug's naming of instruction mnemonics.
+2021-09-08 Alexei Podtelezhnikov <apodtele@gmail.com>
- * src/truetype/ttinterp.c: The form used in ttdebug,
- "MDRP[G,B,W,?]", etc., is slightly more readable than
- "MDRP[00,01,02,03]".
+ Fortify memory debugging (cont'd).
-2018-07-24 Werner Lemberg <wl@gnu.org>
+ * src/base/ftdbgmem.c (FT_DumpMemory): Check for active debugger.
+ (ft_mem_table_destroy): Move `FT_DumpMemory` call from here...
+ (ft_mem_debug_done): ... to here.
- * src/pcf/pcfread.c (pcf_get_encodings): Thinko.
+2021-09-08 Alexei Podtelezhnikov <apodtele@gmail.com>
- Reported as
+ Fortify memory debugging.
- https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=9561
+ These changes are neccessary to properly recover `memory->user` that
+ holds the Windows heap handle now.
-2018-07-22 Werner Lemberg <wl@gnu.org>
+ * src/base/ftdbgmem.c (ft_mem_debug_init): Handle all table allocations,
+ initializations, and sizing instead of...
+ (ft_mem_table_new): ... this function removed.
+ (ft_mem_debug_done): Better check for the active debugger and free the
+ debugger table here instead of...
+ (ft_mem_table_destroy): ... here.
- * src/pcf/pcfread.c (pcf_get_encodings): Check index of defaultChar.
+2021-09-08 Werner Lemberg <wl@gnu.org>
- Reported as
+ src/tools/ftrandom/ftrandom.c (_XOPEN_SOURCE): Set to 600.
- https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=9527
+ This allows C99 compilation on Solaris.
-2018-07-22 Werner Lemberg <wl@gnu.org>
+ Problem reported by Mojca Miklavec.
- * src/pcf/pcfread.c (pcf_load_font): Fix number of glyphs.
+2021-09-07 Alexei Podtelezhnikov <apodtele@gmail.com>
- This is an oversight of the module change 2018-07-21.
+ [builds/windows] Use native memory allocation API.
- Reported as
-
- https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=9524
-
-2018-07-22 Werner Lemberg <wl@gnu.org>
+ * builds/windows/ftsystem.c (ft_alloc, ft_realloc, ft_free):
+ Wrap HeapAlloc, HeapReAlloc, and HeapFree.
+ (FT_New_Memory): Set the heap handle.
- [cid] Sanitize `BlueShift' and `BlueFuzz'.
+2021-09-07 Werner Lemberg <wl@gnu.org>
- This code is taken from the type1 module.
-
- Reported as
+ [dlg] Synchronize with upstream.
- https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=9510
+ * src/dlg/dlgwrap.c (_XOPEN_SOURCE): Set to 600.
- * src/cid/cidload.c (parse_fd_array): Set some private dict default
- values.
- (cid_face_open): Do the sanitizing.
- Fix some tracing messages.
+ Fixes #1093.
-2018-07-21 Werner Lemberg <wl@gnu.org>
+2021-09-04 Alexei Podtelezhnikov <apodtele@gmail.com>
- [pcf] Fix handling of the undefined glyph.
+ Cosmetic zeros.
- This change makes the driver use the `defaultChar' property of PCF
- files.
+2021-09-03 Alexei Podtelezhnikov <apodtele@gmail.com>
- * src/pcf/pcf.h (PCF_FaceRec): Change type of `defaultChar' to
- unsigned.
+ * src/bdf/bdflib.c (_bdf_parse_start): Keep parser memory.
- * src/pcf/pcfread.c (pcf_get_encodings): Read `defaultChar' as
- unsigned.
- Validate `defaultChar'.
- If `defaultChar' doesn't point to glyph index zero, swap glyphs with
- index zero and index `defaultChar' and adjust the encodings
- accordingly.
+2021-09-03 Werner Lemberg <wl@gnu.org>
- * src/pcf/pcfdrivr.c (pcf_cmap_char_index, pcf_cmap_char_next,
- PCF_Glyph_Load): Undo change from 2002-06-16 which always enforced
- the first character in the font to be the default character.
+ autogen.sh: Make it work with old Solaris 10 shell.
-2018-07-20 Armin Hasitzka <prince.cherusker@gmail.com>
+2021-09-03 Alexei Podtelezhnikov <apodtele@gmail.com>
- Move the legacy fuzz target to the `freetype-testing' repository.
+ [smooth, raster, sdf] Clean up initialization calls.
- It can now be found at
+ * src/raster/ftraster.c (ft_black_init): Removed.
+ (ft_black_new): Clean up.
+ * src/sdf/ftbsdf.c (bsdf_raster_new): Ditto.
+ * src/sdf/ftsdf.c (sdf_raster_new): Ditto.
+ * src/smooth/ftgrays.c (gray_raster_new): Ditto.
- https://github.com/freetype/freetype2-testing/tree/master/fuzzing/src/legacy
+2021-09-03 Alexei Podtelezhnikov <apodtele@gmail.com>
- * src/tools/ftfuzzer: Remove this folder and its contents from the
- repository.
+ * src/cache/ftcmanag.c (FTC_Manager_New): Avoid some zeroing.
-2018-07-20 Werner Lemberg <wl@gnu.org>
+2021-09-03 Alexei Podtelezhnikov <apodtele@gmail.com>
- [cff] Avoid left-shift of negative numbers (#54322).
+ * src/bdf/bdflib.c (bdf_load_font): Remove memory shuffling.
- * src/cff/cffgload.c (cff_slot_load): Use multiplication.
+2021-09-03 Alexei Podtelezhnikov <apodtele@gmail.com>
-2018-07-17 Werner Lemberg <wl@gnu.org>
+ Cosmetic zeros.
- Allow FT_ENCODING_NONE for `FT_Select_Charmap'.
+2021-09-02 Alexei Podtelezhnikov <apodtele@gmail.com>
- This is a valid encoding tag for BDF, PCF, and Windows FNT, and
- there is no reason to disallow it for these formats.
+ [base] Clean up stream reading.
- * src/base/ftobjs.c (FT_Select_Charmap): Implement it.
+ * src/base/ftstream.c (FT_Stream_ReadUShort, FT_Stream_ReadUOffset,
+ FT_Stream_ReadULong and their LE variants): Remove unnecessary
+ initialization and slightly refactor.
+ (FT_Stream_GetByte, FT_Stream_ReadByte): Rename to return unsigned
+ value and align with sister functions.
-2018-07-17 Werner Lemberg <wl@gnu.org>
+ * include/freetype/internal/ftstream.h (FT_Stream_GetByte,
+ FT_Stream_ReadByte): Update prototypes and caller macros.
- * src/pcf/pcfread.c (pcf_get_encodings): Trace `defaultChar'.
+2021-09-02 Alexei Podtelezhnikov <apodtele@gmail.com>
-2018-07-16 Armin Hasitzka <prince.cherusker@gmail.com>
+ s/0/NULL/ where appropriate.
- * include/freetype/internal/ftcalc.h: Add macros for handling
- harmless over-/underflowing `FT_Int' values.
+2021-08-30 Alexei Podtelezhnikov <apodtele@gmail.com>
- * src/sfnt/sfdriver.c (fixed2float): Fix negation of
- `(int)(-2147483648)'.
+ * builds/windows/ftsystem.c (FT_Stream_Open): Fix double-close.
- Reported as
+2021-08-30 Alexei Podtelezhnikov <apodtele@gmail.com>
- https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=9423
+ [smooth] Reduce shift in multiply-shift optimization.
-2018-07-16 Werner Lemberg <wl@gnu.org>
+ * src/smooth/ftgrays.c (FT_UDIVPREP, FT_UDIV): Reduce shift.
- * src/truetype/ttgxvar.c (tt_set_mm_blend): Fix off-by-one error.
+ Smaller shifts that keep the division operands of FT_UDIVPREP within
+ 32 bits result in slightly faster divisions, which is noticeable in
+ the overall performance. The loss of precision is tolerable until the
+ divisors (the components dx and dy) approach 32 - PIXEL_BITS. With
+ PIXEL_BITS = 8, this corresponds to 65,000 pixels or the bitmap size
+ that we refuse to render anyway.
- Reported as
+ Using `ftbench -p -s60 -t5 -bc timesi.ttf`,
- https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=9412
+ Before: 8.52 us/op
+ After: 8.32 us/op
-2018-07-12 Werner Lemberg <wl@gnu.org>
+2021-08-28 Werner Lemberg <wl@gnu.org>
- * src/base/ftoutln.c (FT_Outline_Get_Orientation): Init `cbox'.
+ [truetype] Fix compilation if !TT_CONFIG_OPTION_BYTECODE_INTERPRETER.
- Taken from patch #9667, written by Steve Langasek
- <vorlon@debian.org>.
+ * src/truetype/ttgxvar.c (tt_cvt_ready_iterator): Compile function
+ conditionally.
+ (tt_face_vary_cvt) [!TT_CONFIG_OPTION_BYTECODE_INTERPRETER]: Add code.
- This fixes a build failure (most probably a bug in gcc) on ppc64el
- when building with -O3.
+ Fixes #1091.
-2018-07-05 Werner Lemberg <wl@gnu.org>
+2021-08-27 Alexei Podtelezhnikov <apodtele@gmail.com>
- Fix typo (#54238).
+ [builds/windows] Revise SSE2 settings.
- * src/base/ftcolor.c (FT_Palette_Set_Foreground_Color)
- [!TT_CONFIG_OPTION_COLOR_LAYERS]: Add return value.
+ * builds/windows/vc2010/freetype.vcxproj [x64]: Remove explicit SSE2.
+ * builds/windows/visualc/freetype.vcproj [Win32]: Add explicit SSE2.
-2018-07-05 Werner Lemberg <wl@gnu.org>
+2021-08-27 Ben Wagner <bungeman@chromium.org>
- Adjust table size comparisons (#54242).
+ [smooth] Detect SSE2 with MSVC for x86
- * src/sfnt/ttcpal.c (tt_face_load_cpal): Implement it.
+ MSVC does not set `__SSE2__`. Instead one must check whether `_M_IX86_FP` is
+ defined and greater than or equal to 2.
-2018-07-05 Werner Lemberg <wl@gnu.org>
+ * src/smooth/ftgrays.c (FT_SSE2): New macro.
+ Use it where appropriate.
- Fix more 32bit issues (#54208).
+2021-08-26 Alexei Podtelezhnikov <apodtele@gmail.com>
- * src/cff/cffload.c (cff_blend_build_vector): Convert assertion into
- run-time error.
+ Expand comment (cont'd).
- * src/truetype/ttgxvar.c (ft_var_to_normalized): Protect against
- numeric overflow.
+2021-08-26 Alexei Podtelezhnikov <apodtele@gmail.com>
-2018-07-04 Werner Lemberg <wl@gnu.org>
+ Expand comment.
- Fix 32bit build warnings (#54239).
+2021-08-24 Alexei Podtelezhnikov <apodtele@gmail.com>
- * src/base/ftbitmap.c (FT_Bitmap_Blend): Add casts to avoid signed
- vs. unsigned comparisons.
+ * src/smooth/ftgrays.c (gray_render_conic): Refactor redundancy.
- * srb/sfnt/ttcolr.c (tt_face_get_colr_layer): Ditto.
+2021-08-24 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
-2018-07-02 Jeff Carey <Jeff.Carey@monotype.com>
+ [truetype] Fix for the family name shorter than 8 characters.
- * src/psnames/psmodule.c (ps_unicodes_init): Fix alloc debugging.
+ * src/truetype/ttobjs.c (tt_skip_pdffont_random_tag):
+ If the family name to be checked is shorter than 8 characters,
+ do not check its syntax.
-2018-07-02 Werner Lemberg <wl@gnu.org>
+2021-08-24 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
- s/palette_types/palette_flags/.
+ [truetype] Simplify `trick_names'.
- Suggested by Behdad.
+ * src/truetype/ttobjs.c (tt_check_trickyness_family): For the case
+ that the beginning part of a long tricky family name is already
+ registered as another tricky family name, no need to double-check
+ the longer one. Such long tricky family names are removed from
+ the `trick_names'.
-2018-07-02 Werner Lemberg <wl@gnu.org>
+2021-08-24 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
- Make `FT_Get_Color_Glyph_Layer' return FT_Bool.
+ [truetype] Add 2 tricky font names.
- * include/freetype/freetype.h, src/base/ftobjs.c
- (FT_Get_Color_Glyph_Layer, FT_Render_Glyph_Internal): Updated.
+ Additional fix for the issue #1087.
- * include/freetype/internal/sfnt.h (TT_Get_Colr_Layer_Func),
- src/sfnt/ttcolr.h, src/sfnt/ttcolr.c (tt_face_get_colr_layer):
- Updated.
+ * src/truetype/ttobjs.c (tt_check_trickyness_family): Add 2 tricky
+ font names reported in #1087.
-2018-07-01 Werner Lemberg <wl@gnu.org>
+2021-08-24 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
- * src/base/ftobjs.c (FT_Get_Color_Glyph_Layer): Guard SFNT function.
+ [truetype] New function to skip the randomization tag.
- Reported by Behdad.
+ * src/truetype/ttobjs.c (tt_skip_pdffont_random_tag):
+ New function to skip the randomization tag in the names of the
+ fonts embedded in a PDF. It is used by tt_check_trickyness_family(),
+ to keep from mistaking "DLC" in the randomization tag as a
+ tricky font name. See discussion in:
-2018-06-28 Alexei Podtelezhnikov <apodtele@gmail.com>
+ https://lists.nongnu.org/archive/html/freetype-devel/2021-02/msg00002.html
- * src/base/fttrigon.c (FT_Tan): Improve accuracy.
- (FT_Vector_Rotate): Simplify.
+ For technical detail about the randomization tag, please find
+ PDF Reference 5.5.3 "Font Subsets". Thanks to Justyna Wawrzynska
+ for pointing out the issue caused by the randomization tag.
-2018-06-28 Alexei Podtelezhnikov <apodtele@gmail.com>
+2021-08-24 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
- * src/base/ftobjs.c (FT_Set_Charmap): Robustify.
+ [truetype] Add checksums for 2 tricky fonts.
-2018-06-25 Werner Lemberg <wl@gnu.org>
+ Thanks to Ting717 for providing sample PDF. Fixes #1087.
- [truetype] Fix memory leak.
+ * src/truetype/ttobjs.c (tt_check_trickyness_sfnt_ids): Add
+ checksums for 2 tricky fonts `DFHei-Bd-WIN-HK-BF' and
+ `DFMing-Md-WIN-HK-BF'.
- * src/truetype/ttgxvar.c (TT_Vary_Apply_Glyph_Deltas): Add initializers.
- Fix typo in `goto' destination.
+2021-08-23 Alexei Podtelezhnikov <apodtele@gmail.com>
- Reported as
+ Whitespace formatting.
- https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=9071
+2021-08-22 Alexei Podtelezhnikov <apodtele@gmail.com>
-2018-06-25 Werner Lemberg <wl@gnu.org>
+ Decorate const arguments.
- * src/truetype/ttgxvar.c (tt_face_vary_cvt): Add initializers.
+ * src/base/ftglyph.c (FT_Glyph_Transform, FT_Glyph_To_Bitmap): Do it.
+ * include/freetype/ftglyph.h (FT_Glyph_Transform, FT_Glyph_To_Bitmap):
+ Do it.
- Reported as
+2021-08-21 Alexei Podtelezhnikov <apodtele@gmail.com>
- https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=9070
+ [smooth] Clean up the null cell usage.
-2018-06-24 Werner Lemberg <wl@gnu.org>
+ Put the null cell at the end of the pool and store it explicitly so that
+ we can use it as both the limit and the dumpster.
- [truetype] Increase precision while applying VF deltas.
+ * src/smooth/ftgrays.c (gray_TWorker): Store the last `cell_null` and
+ remove unnecesary fields.
+ (NULL_CELL_PTR, CELL_IS_NULL): Remove in favor of explicit `cell_null`.
+ (gray_dump_cells, gray_set_cell, gray_sweep{,_direct}): Update callers.
+ (gray_convert_glyph_inner): Trace remaining cells (oh well).
+ (gray_convert_glyph): Set up `cell_null` and slightly improve the pool
+ management.
- It turned out that we incorrectly round CVT and glyph point deltas
- before accumulation, leading to severe positioning errors if there
- are many delta values to sum up.
+2021-08-20 Alexei Podtelezhnikov <apodtele@gmail.com>
- Problem reported by Akiem Helmling <akiem@underware.nl> and analyzed
- by Behdad.
+ [base] Restore quiet no-op rendering of bitmap glyphs.
- * src/truetype/ttgxvar.c (ft_var_readpackeddelta): Return deltas in
- 16.16 format.
- (tt_face_var_cvt): Collect deltas in `cvt_deltas', which is a 16.16
- format array, and add the accumulated values to the CVT at the end
- of the function.
- (TT_Vary_Apply_Glyph_Deltas): Store data in `points_org' and
- `points_out' in 16.16 format.
- Collect deltas in `point_deltas_x' and `point_deltas_y', which are
- 16.16 format arrays, and add the accumulated values to the glyph
- coordinates at the end of the function.
+ Fixes #1076.
-2018-06-24 Werner Lemberg <wl@gnu.org>
+ * src/base/ftobjs.c (FT_Render_Glyph_Internal): Discard an error when
+ rendering a bitmap glyph.
- New base function `FT_Matrix_Check' (#54019).
+2021-08-20 Alexei Podtelezhnikov <apodtele@gmail.com>
- * src/base/ftcalc.c (FT_Matrix_Check): New base function to properly
- reject degenerate font matrices.
+ [smooth] Fortify 64-bit algorithm.
- * include/freetype/internal/ftcalc.h: Updated.
+ * src/smooth/ftgrays.c (FT_UDIVPREP, FT_UDIV): s/long/FT_Int64/ and
+ s/unsigned long/FT_UInt64/.
+ (gray_render_line): Adjust a critical variable type.
- * src/cff/cffparse.c (cff_parse_font_matrix), src/cid/cidload.c
- (cid_parse_font_matrix), src/type1/t1load.c (t1_parse_font_matrix),
- src/type42/t42parse.c (t42_parse_font_matrix): Use
- `FT_Matrix_Check'.
+2021-08-20 Carlo Bramini <carlo.bramix@libero.it>
-2018-06-23 Werner Lemberg <wl@gnu.org>
+ * builds/windows/ftsystem.c (FT_Stream_Open): Support legacy Windows.
- Fix typo.
+2021-08-20 Alexei Podtelezhnikov <apodtele@gmail.com>
- Reported by Behdad.
+ Determine `long long` availability based on its size.
- * src/base/ftcolor.c (FT_Palette_Data_Get)
- [!TT_CONFIG_OPTION_COLOR_LAYERS]: s/apalette/apalette_data/.
+ MSVC, for example, used `long long` even without full C99 support.
-2018-06-21 Werner Lemberg <wl@gnu.org>
+ * include/freetype/config/ftstdlib.h: Check if `long long` limits are
+ defined in <limits.h>.
+ * include/freetype/config/integer-types.h: Check `long long` size and
+ use it to typedef FT_Int64.
- s/FT_PALETTE_USABLE_WITH_/FT_PALETTE_FOR_/.
+2021-08-19 Dominik Röttsches <drott@chromium.org>
- * include/freetype/ftcolor.h, include/freetype/internal/sfnt.h,
- src/sfnt/ttcolr.c: Do it.
+ [sfnt] Fix format expectation for `COLR` v1 ClipList
-2018-06-19 Werner Lemberg <wl@gnu.org>
+ * src/sfnt/ttcolr.c (tt_face_get_color_glyph_clipbox): Change ClipList
+ format expectation to 1 instead of 0 to make it compliant with the
+ latest spec.
- [sfnt] Fix CPAL heap buffer overflow.
+2021-08-19 Alexei Podtelezhnikov <apodtele@gmail.com>
- Reported as
+ Readily use `long long` as a 64-bit type in C99 mode.
- https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=8968
+ * include/freetype/config/integer-types.h (FT_INT64):
+ FT_CONFIG_OPTION_FORCE_INT64 is no longer required to use `long long`.
- * src/sfnt/ttcpal.c (tt_face_load_cpal): Guard CPAL version 1
- offsets.
+2021-08-19 Alexei Podtelezhnikov <apodtele@gmail.com>
-2018-06-19 Werner Lemberg <wl@gnu.org>
+ Use FT_INT64 instead of FT_LONG64.
- Doh. Don't use CPAL or COLR data if tables are missing.
+ * include/freetype/config/integer-types.h: Remove synonymous FT_LONG64.
+ * include/freetype/internal/ftcalc.h: s/FT_LONG64/FT_INT64/.
+ * src/base/ftcalc.c: Ditto.
+ * src/base/fttrigon.c: Ditto.
+ * src/smooth/ftgrays.c: Ditto.
- Reported by Alexei.
+2021-08-18 Alexei Podtelezhnikov <apodtele@gmail.com>
- * src/sfnt/ttcolr.c (tt_face_get_colr_layer): Return immediately if
- `colr' is NULL.
+ [builds/windows] Do not set CharacterSet for VC++.
- * src/sfnt/ttcpal.c (tt_face_palette_set): Return immediately, if
- `cpal' is NULL.
+ * builds/windows/vc2010/freetype.vcxproj: s/Unicode/NotSet/.
+ * builds/windows/visualc/freetype.vcproj: s/"1"/"0"/.
-2018-06-17 Alexei Podtelezhnikov <apodtele@gmail.com>
+2021-08-18 Werner Lemberg <wl@gnu.org>
- [base] Introduce `FT_New_Glyph'.
+ * src/sdf/ftsdf.c (get_control_box): Fix compiler warning.
- This function facilitates access to full capabilities of FreeType
- rendering engine for custom glyphs. This can be quite useful for
- consistent rendering of mathematical and chemical formulas, e.g.
+2021-08-18 Werner Lemberg <wl@gnu.org>
- https://bugs.chromium.org/p/chromium/issues/detail?id=757078
+ [base] Fix ppem size overflow.
- * include/freetype/ftglyph.h, src/base/ftglyph.c (FT_New_Glyph): New
- function.
+ Fixes #1086.
-2018-06-17 Armin Hasitzka <prince.cherusker@gmail.com>
+ * src/base/ftobjs.c (FT_Request_Metrics): Add return value.
+ Check whether ppem values fit into unsigned short values.
+ (FT_Request_Size): Updated.
- [bdf] Fix underflow of an unsigned value.
+ * include/freetype/internal/ftobjs.h: Updated.
- bdflib.c:1562 could be reached with `font->glyphs_used == 0'. That
- caused an underflow of the unsigned value which results in undefined
- behaviour.
+ * src/cff/cffobjs.c (cff_size_request), src/cid/cidobjs.c
+ (cid_size_request), src/truetype/ttdriver.c (tt_size_request),
+ src/type1/t1objs.c (T1_Size_Request): Updated.
- * src/bdf/bdflib.c (_bdf_parse_glyphs): Bail out earlier than before
- if the `ENCODING' keyword cannot be found.
+2021-08-18 Alexei Podtelezhnikov <apodtele@gmail.com>
-2018-06-17 Werner Lemberg <wl@gnu.org>
+ * builds/windows/ftsystem.c (FT_Stream_Open): Cast to remove warning.
- [base] Add tracing for `FT_Bitmap_Blend'.
+2021-08-18 Alexei Podtelezhnikov <apodtele@gmail.com>
- * include/freetype/internal/fttrace.h (trace_bitmap): New
- enumeration.
+ * builds/windows/ftsystem.c (FT_Stream_Open): Support UNICODE compilation.
- * src/base/ftbitmap.c (FT_COMPONENT): Define.
- (FT_Bitmap_Blend): Add `FT_TRACE5' calls.
+2021-08-09 Werner Lemberg <wl@gnu.org>
-2018-06-17 Werner Lemberg <wl@gnu.org>
+ * src/sfnt/ttcolr.c (tt_face_get_color_glyph_clipbox): Minor fix.
- s/trace_bitmap/trace_checksum/.
+2021-08-09 Dominik Röttsches <drott@chromium.org>
- * include/freetype/internal/fttrace.h: s/bitmap/checksum/.
+ [sfnt] Add missing blend mode 'plus' to 'COLR' v1.
- * src/base/ftobjs.c (FT_COMPONENT): s/trace_bitmap/trace_checksum/.
- Adjust code.
+ * include/freetype/ftcolor.h (FT_Composite_Mode): Add missing blend mode
+ 'plus' after it was added to the spec.
-2018-06-16 Werner Lemberg <wl@gnu.org>
+2021-08-08 Werner Lemberg <wl@gnu.org>
- [sfnt] Fix color glyph layer loading.
+ include/freetype/freetype.h (FT_Encoding): Improve documentation.
- * src/sfnt/ttcolr.c (Colr): Add `table_size' field.
- (tt_face_load_colr): Set it.
- (tt_face_get_colr_layer): Check pointer limit for layer entries.
+ Based on a suggestion by Antony Lee <anntzer.lee@gmail.com>.
-2018-06-16 Werner Lemberg <wl@gnu.org>
+2021-08-07 Werner Lemberg <wl@gnu.org>
- [sfnt] Fix color palette loading.
+ [smooth] Avoid integer overflow.
Reported as
- https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=8933
-
- * src/sfnt/ttcpal.c (Cpal): Add `table_size' field.
- (tt_face_load_cpal): Set it.
- (tt_face_palette_set): Check pointer limit for color entries.
-
-2018-06-16 Werner Lemberg <wl@gnu.org>
-
- * src/base/ftbitmap.c (FT_Bitmap_Blend): Avoid integer overflow.
-
-2018-06-16 Werner Lemberg <wl@gnu.org>
-
- Add `FT_Bitmap_Blend' API.
-
- Still missing: Support for negative bitmap pitch and subpixel offset
- of source bitmap.
-
- * include/freetype/ftbitmap.h, src/base/ftbitmap.c
- (FT_Bitmap_Blend): New function.
-
-2018-06-14 Werner Lemberg <wl@gnu.org>
-
- Replace `FT_Get_GlyphLayers' with `FT_Get_Color_Glyph_Layer'.
-
- This avoids any additional allocation of COLR related structures in
- a glyph slot.
-
- * include/freetype/freetype.h (FT_Glyph_Layer, FT_Glyph_LayerRec,
- FT_Get_GlyphLayers): Removed.
-
- * include/freetype/internal/ftobjs.h (FT_Colr_InternalRec): Removed.
- (FT_Slot_InternalRec): Remove `color_layers'.
-
- * include/freetype/internal/sfnt.h (TT_Load_Colr_Layer_Func):
- Removed.
- (SFNT_Interface, FT_DEFINE_SFNT_INTERFACE): Remove
- `load_colr_layer'.
-
- * src/base/ftobjs.c (ft_glyph_slot_done): Updated.
- (FT_Render_Glyph_Internal): Use `FT_Get_Color_Glyph_Layer'.
- (FT_Get_GlyphLayers): Removed.
-
- * src/sfnt/sfdriver.c (sfnt_interface): Updated.
-
- * src/sfnt/ttcolr.c (tt_face_load_colr_layers): Removed.
- * src/sfnt/ttcolr.h: Updated.
-
- * src/truetype/ttgload.c (TT_Load_Glyph): Updated.
-
-2018-06-14 Werner Lemberg <wl@gnu.org>
-
- Provide iterative API to access `COLR' data.
-
- This solution doesn't store any data in an `FT_GlyphSlot' object.
-
- * include/freetype/freetype.h (FT_LayerIterator): New structure.
- (FT_Get_Color_Glyph_Layer): New function.
-
- * include/freetype/internal/sfnt.h (TT_Get_Colr_Layer_Func): New
- function type.
- (SFNT_Interface, FT_DEFINE_SFNT_INTERFACE): Add it.
+ https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=36243
- * src/base/ftobjs.c (FT_Get_Color_Glyph_Layer): Implement it.
+ * src/smooth/ftgrays.c(ADD_LONG, SUB_LONG, MUL_LONG, NEG_LONG)
+ [STANDALONE_]: Removed, unused.
+ (ADD_INT) [STANDALONE_]: New macro.
+ (FT_INTEGRATE): Use ADD_INT.
- * src/sfnt/ttcolr.c (tt_face_get_colr_layer): New function.
- * src/sfnt/ttcolr.h: Updated.
-
- * src/sfnt/sfdriver.c (sfnt_interface): Updated.
-
-2018-06-14 Werner Lemberg <wl@gnu.org>
-
- Add glyph index and glyph load flags to glyph slot.
-
- * include/freetype/freetype.h (FT_GlyphSlotRec): Rename unused
- `reserved' field to `glyph_index'.
-
- * include/freetype/internal/ftobjs.h (FT_Slot_InternalRec): Add
- `load_flags' field.
-
- * src/base/ftobjs.c (FT_Load_Glyph): Set new fields.
-
-2018-06-14 Werner Lemberg <wl@gnu.org>
-
- [sfnt] Move `CPAL' stuff into separate files.
-
- * src/sfnt/sfdriver.c: Include `ttcpal.h'.
- * src/sfnt/sfnt.c: Include `ttcpal.c'.
+2021-08-07 Dominik Röttsches <drott@chromium.org>
- * src/sfnt/ttcolr.c, src/sfnt/ttcolr.h: Move CPAL stuff to ...
- * src/sfnt/ttcpal.c, src/sfnt/ttcpal.c: ... these new files.
+ [sfnt] Add API for retrieving a 'COLR' v1 'ClipBox' table.
- * src/sfnt/Jamfile (_sources), src/sfnt/rules.mk (SFNT_DRV_SRC):
- Updated.
-
- * include/freetype/internal/fttrace.h: Add support for `colr' and
- `cpal'.
- Sort entries.
+ The optional 'COLR' v1 glyph-specific clip box helps upstream graphics
+ libraries allocate a sufficiently large bitmap for a glyph without having to
+ traverse the glyph graph for that. See
-2018-06-13 Werner Lemberg <wl@gnu.org>
+ https://github.com/googlefonts/colr-gradients-spec/issues/251
- [sfnt] Separate `CPAL' and `COLR' table handling.
+ for background on the introduction of this specification change.
- Later on we want to support the `SVG' table also, which needs `CPAL'
- (but not `COLR').
+ * include/freetype/ftcolor.h (FT_ClipBox): New structure.
+ (FT_Get_Color_Glyph_ClipBox): New function declaration.
- * include/freetype/internal/sfnt.h (SFNT_Interface): Add `load_cpal'
- and `free_cpal' fields.
- (FT_DEFINE_SFNT_INTERFACE): Updated.
+ * include/freetype/internal/sfnt.h (TT_Get_Color_Glyph_ClipBox_Func):
+ New function type.
+ (SFNT_Interface, FT_DEFINE_SFNT_INTERFACE): Use it.
- * include/freetype/internal/tttypes.h (TT_FaceRec): Replace
- `colr_and_cpal' fields with `cpal' and `colr'.
+ * src/base/ftobjs.c (FT_Get_Color_Glyph_ClipBox): New function to link API
+ with SFNT implementation.
* src/sfnt/sfdriver.c (sfnt_interface): Updated.
-
- * src/sfnt/sfobjs.c (sfnt_load_face, sfnt_done_face): Updated.
-
- * src/sfnt/ttcolr.c (Colr, Cpal): Add `table' field.
- (ColrCpal): Removed.
- (tt_face_load_colr): Split off CPAL handling into...
- (tt_face_load_cpal): ... this new function.
- (tt_face_free_colr): Split off CPAL handling into...
- (tt_face_free_cpal): ... this new function.
- (tt_face_load_colr_layers, tt_face_palette_set): Updated.
-
- * src/sfnt/ttcolr.h: Updated.
-
- * src/truetype/ttgload.c (TT_Load_Glyph): Updated.
-
-2018-06-12 Werner Lemberg <wl@gnu.org>
-
- [sfnt] Fix `sizeof' thinko.
-
- * src/sfnt/ttcolr.c (tt_face_load_colr, tt_face_palette_set): Don't
- use `sizeof' for computing array limit.
-
-2018-06-12 Werner Lemberg <wl@gnu.org>
-
- Finish CPAL/COLR support (4/4).
-
- * src/sfnt/ttcolr.c (tt_face_find_color): Removed.
- (tt_face_colr_blend_layer): Use `face->palette' instead of calling
- `tt_face_find_color'.
- Use and set text foreground color.
-
-2018-06-12 Werner Lemberg <wl@gnu.org>
-
- Finish CPAL/COLR support (3/4).
-
- * src/base/ftcolor.c: Include FT_INTERNAL_SFNT_H.
- (FT_Palette_Select, FT_Palette_Set_Foreground_Color): Implement
- functions.
-
-2018-06-12 Werner Lemberg <wl@gnu.org>
-
- Finish CPAL/COLR support (2/4).
-
- * src/sfnt/ttcolr.c (tt_face_palette_set): New function.
- (tt_face_load_colr): Allocate `face->palette' and call
- `tt_face_palette_set'.
- Adjust return error code in case of error.
-
- * src/sfnt/ttcolr.h: Updated.
-
- * include/freetype/internal/sfnt.h (TT_Set_Palette_Func): New
- function type.
- (SFNT_Interface, FT_DEFINE_SFNT_INTERFACE): Add it.
-
- * src/sfnt/sfdriver.c (sfnt_interface), src/sfnt/sfobjs.c
- (sfnt_done_face): Updated.
-
-2018-06-12 Werner Lemberg <wl@gnu.org>
-
- Finish CPAL/COLR support (1/4).
-
- * include/freetype/internal/tttypes.h (TT_FaceRec): New fields
- `palette_index', `palette', `have_foreground_color' and
- `foreground_color'.
-
-2018-06-12 Werner Lemberg <wl@gnu.org>
-
- [sfnt] Minor.
-
- * src/sfnt/ttcolr.c (tt_face_load_colr_layers):
- s/palette_index/palette_entry_index/ for consistency.
- Adjust return error code in case of error.
-
-2018-06-11 Alexei Podtelezhnikov <apodtele@gmail.com>
-
- [raster] Clean up.
-
- * src/raster/ftraster.c (black_TWorker, SCALED, Set_High_Precision):
- Clean up after 5-level gray removal (8dc8635874).
- (Vertical_Sweep_Span): Be brief.
-
-2018-06-10 Werner Lemberg <wl@gnu.org>
-
- [sfnt] Fix compiler warnings.
-
- * src/sfnt/ttcolr.c (tt_face_load_colr, tt_face_load_colr_layers,
- tt_face_colr_blend_layer): Add `NULL' initializers.
-
-2018-06-10 Werner Lemberg <wl@gnu.org>
-
- s/FT_Palette/FT_Palette_Data/, s/palette/palette_data/.
-
- * include/freetype/ftcolor.h, include/freetype/internal/tttypes.h,
- src/base/ftcolor.c, src/sfnt/sfobjs.c, src/sfnt/ttcolr.c: Updated.
-
-2018-06-10 Nikolaus Waxweiler <madigens@gmail.com>
-
- CMakeLists: also accept IOS_PLATFORM=SIMULATOR64
-
- This might be needed to build FreeType for the iOS simulator. See
- https://savannah.nongnu.org/bugs/index.php?54048. Patch contributed
- by Steve Robinson.
-
- * CMakeLists.txt: Accept IOS_PLATFORM=SIMULATOR64
-
-2018-06-10 Werner Lemberg <wl@gnu.org>
-
- Implement `FT_Palette_Get'.
-
- * src/base/ftcolor.c: New file.
-
- * src/base/Jamefile (_sources), src/base/rules.mk (BASE_SRC),
- src/base/ftbase.c: Add `ftcolor.c'.
-
-2018-06-10 Werner Lemberg <wl@gnu.org>
-
- * src/sfnt/ttcolr.c (tt_face_load_colr): Improve overflow checks.
-
-2018-06-09 Alexei Podtelezhnikov <apodtele@gmail.com>
-
- [raster] Deal with pitch sign earlier.
-
- * src/raster/ftraster.c (black_TWorker): Remove unused `traceG',
- s/bTarget/bOrigin/.
- (Render_Glyph): Set `ras.bOrigin' at the bottom-left corner.
- (Vertical_Sweep_Init, {Vertical,Horizontal}_Sweep_{Span,Drop}):
- Updated accordingly.
-
-2018-06-09 Werner Lemberg <wl@gnu.org>
-
- [sfnt] Read `CPAL' version 1 tables.
-
- * include/freetype/internal.tttypes.h: Include FT_COLOR_H.
- (TT_FaceRec): Add `palette' field.
-
- * src/sfnt/ttcolr.c: Include FT_COLOR_H.
- (Cpal): Remove all data covered by the new `palette' field in
- `TT_FaceRec'.
- (tt_face_load_colr): Updated.
- Read `CPAL' version 1 data.
- (tt_face_load_colr_layers, tt_face_find_color): Updated.
-
- * src/sfnt/sfobjs.c (sfnt_done_face): Free glyph color palette data.
-
-2018-06-07 Alexei Podtelezhnikov <apodtele@gmail.com>
-
- [base] API for Harmony LCD rendering.
-
- This introduces `FT_Library_SetLcdGeometry' for setting up arbitrary
- LCD subpixel geometry including non-striped patterns.
-
- * src/base/ftlcdfil.c (FT_Library_SetLcdGeometry): New function.
- * include/freetype/ftlcdfil.h: Document it.
- * include/freetype/freetype.h: Minor.
- * include/freetype/ftchapters.h: Minor.
-
-2018-06-06 Werner Lemberg <wl@gnu.org>
-
- ftcolor.h: Redesign API.
-
- While going to implement it I noticed that I need access to most of
- the `CPAL' elements; I thus plan to add a `cpal' field to
- `TT_FaceRec', which makes most of the previously suggested API
- functions obsolete because the fields will be directly accessible.
-
-2018-06-06 Parth Wazurkar <parthwazurkar@gmail.com>
-
- [bdf, pcf] Remove deprecated FT_FACE_FLAG_FAST_GLYPHS flag.
-
- * src/bdf/bdfdrivr.c (BDF_Face_Init): Remove deprecated
- FT_FACE_FLAG_FAST_GLYPHS flag.
-
- * src/pcf/pcfread.c (pcf_load_font): Remove deprecated
- FT_FACE_FLAG_FAST_GLYPHS flag.
-
-2018-06-06 Werner Lemberg <wl@gnu.org>
-
- [smooth, raster] Limit bitmap size (#54019).
-
- * src/raster/ftraster.c [STANDALONE] (FT_Outline_Get_CBox): Add
- function.
- [!STANDALONE]: Include FT_OUTLINE_H.
- (ft_black_render): Compute CBox and reject glyphs larger than
- 0xFFFF x 0xFFFF.
-
- * src/smooth/ftgrays.c (gray_raster_render): Reject glyphs larger
- than 0xFFFF x 0xFFFF.
-
-2018-06-03 Armin Hasitzka <prince.cherusker@gmail.com>
-
- * src/smooth/ftgrays.c (gray_convert_glyph): Remove unused variables.
-
-2018-06-03 Werner Lemberg <wl@gnu.org>
-
- * src/tools/glnames.py (main): Emit header in `light' comment style.
-
-2018-06-02 Alexei Podtelezhnikov <apodtele@gmail.com>
-
- [smooth] Attempt to mitigate bug #54019.
-
- The robust rendering of estra large glyphs came with unbearable cost.
- The old way of bisecting should fail but fail faster.
-
- * src/smooth/ftgrays.c (gray_convert_glyph): Switch back to bisecting
- in y-direction.
-
-2018-06-02 Werner Lemberg <wl@gnu.org>
-
- * src/truetype/ttinterp.c (Ins_MIRP): Use SUB_LONG; avoid FT_ABS.
-
- Reported as
-
- https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=8706
-
-2018-06-02 Werner Lemberg <wl@gnu.org>
-
- * src/autofit/afwarp.h: Use AF_CONFIG_OPTION_USE_WARPER (#54033).
-
-2018-05-31 Werner Lemberg <wl@gnu.org>
-
- * src/raster/ftraster.c (black_TWorker_): Remove `gTarget' field.
-
- This is no longer used.
-
-2018-05-31 Werner Lemberg <wl@gnu.org>
-
- [sfnt] Get colors from `CPAL' table in right order (#54015).
-
- * src/sfnt/ttcolr.c (tt_face_find_color): Fix it.
-
-2018-05-30 Werner Lemberg <wl@gnu.org>
-
- ftcolor.h: Improve API design, fix typos (#54011, #54014).
-
- * include/freetype/ftcolor.h (FT_Palette_Get_Names): Replace with...
- (FT_Palette_Get_Name_IDs): ... this function.
- (FT_Palette_Get_Entry_Names): Replace with...
- (FT_Palette_Get_Entry_Name_IDs): ... this function
- s/FT_Palette_Set_Foreground_COlor/FT_Palette_Set_Foreground_Color/.
-
-2018-05-30 Armin Hasitzka <prince.cherusker@gmail.com>
-
- Beautify a3cfed5e87232c933bdc64f43e8ebebcfd18b41b.
-
- * src/autofit/afloader.c (af_loader_load_glyph): Move the
- initialisationand declaration of variables into the if-block.
-
-2018-05-30 Armin Hasitzka <prince.cherusker@gmail.com>
-
- Fix pointer underflow.
-
- The declaration of `edge2' can be reached with `edge1 == NULL' and
- `axis->edges == 0' which results in undefined behaviour.
-
- * src/autofit/afloader.c (af_loader_load_glyph): Initialise `edge2'
- after checking `axis->num_edges > 1'. `edge1 != NULL' can be assumed.
-
-2018-05-30 Werner Lemberg <wl@gnu.org>
-
- Various minor color fixes.
-
- * include/freetype/config/ftheader.h (FT_COLOR_H): New macro.
-
- * include/freetype/internal/ftobjs.h (FT_Colr_Internal): Change
- type of `load_flags' to `FT_Int32'.
-
- * include/freetype/internal/sfnt.h (TT_Load_Colr_Layer_Func): Change
- type of `idx' to `FT_UInt'.
- (TT_Blend_Colr_Func): Change type of `color_index' to `FT_UInt'.
-
- * src/base/ftobjs.c (FT_Render_Glyph_Internal): Change type of
- `load_flags' to `FT_Int32'.
-
- * src/sfnt/ttcolr.c (find_base_glyph_record,
- tt_face_load_colr_layers): Change type of `glyph_id' to `FT_UInt'.
- (tt_face_find_color, tt_face_colr_blend_layer): Change type of
- `color_index' to `FT_UInt'.
- Fix signedness and type issues.
-
+ * src/sfnt/ttcolr.c (Colr): New field `clip_list`.
+ (tt_face_load_colr): Parse global clip list offset.
+ (tt_face_get_color_glyph_clipbox): New function to find the clip box for a
+ glyph id from the clip list array.
* src/sfnt/ttcolr.h: Updated.
-2018-05-25 Nikhil Ramakrishnan <ramakrishnan.nikhil@gmail.com>
-
- [docmaker] Fix missing `Defined in (...)' under Windows/Cygwin.
-
- This platform uses backslashes for paths, which docmaker didn't
- understand correctly.
-
- * src/tools/docmaker/tohtml.py (HtmlFormatter::blockEnter): Use
- `os.path.normpath' to normalize the path for the platform being
- used.
-
-2018-05-24 Alexei Podtelezhnikov <apodtele@gmail.com>
-
- [smooth] Formalize Harmony LCD rendering.
+2021-08-06 Werner Lemberg <wl@gnu.org>
- This generalizes magic outline shifts that make Harmony LCD
- rendering work in terms of precise two-dimensional RGB subpixel
- positions. These coordinates are now set in time of the `smooth'
- module initialization and later used to shift a glyph outline for
- rendering. FT_RENDER_MODE_LCD and FT_RENDER_MODE_LCD_V use the same
- coordinates. The letter, however, rotates them before using.
- The LCD bitmap padding is also calculated using these coordinates.
-
- * include/freetype/internal/ftobjs.h (FT_LibraryRec): New array field
- `lcd_geometry'.
- * src/base/ftlcdfil.c (ft_lcd_padding): Reworked.
- * src/base/ftobjs.c (ft_glyphslot_preset_bitmap): Updated accordingly.
-
- * src/smooth/ftsmooth.c [!FT_CONFIG_OPTION_SUBPIXEL_RENDERING]
- (ft_smooth_init): Initialize `lcd_geometry'.
- (ft_smooth_render_generic): Formalize outline shifts.
-
-2018-05-22 Werner Lemberg <wl@gnu.org>
-
- [truetype] Reject elements of composites with invalid glyph indices.
+ [smooth] Fix left shifts of negative numbers.
Reported as
- https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=8413
-
- * src/truetype/ttgload.c (TT_Load_Composite_Glyph): Implement it.
-
-2018-05-22 Werner Lemberg <wl@gnu.org>
-
- * src/truetype/ttgload.c (TT_Load_Simple_Glyph): Trace # of points.
-
-2018-05-20 Werner Lemberg <wl@gnu.org>
-
- * include/freetype/ftcolor.h: New file.
-
- This is an interface to the `CPAL' OpenType table. No
- implementation yet.
-
-2018-05-18 Alexei Podtelezhnikov <apodtele@gmail.com>
-
- * include/freetype/internal/ftcalc.h (FT_MSB): Verified `_MSC_VER'.
-
- Actually `_BitScanReverse' is available since VS2005.
-
-2018-05-18 Werner Lemberg <wl@gnu.org>
-
- * include/freetype/internal/ftcalc.h (FT_MSB): Use `_MSC_VER' value.
-
- Older VC versions don't provide `_BitScanReverse'. We test for VC
- 2013.
-
- Reported by John Emmas <john@creativepost.co.uk>.
-
-2018-05-17 Werner Lemberg <wl@gnu.org>
-
- s/inline/__inline/ for MSVC.
-
- Reported by John Emmas <john@creativepost.co.uk>.
-
- * include/freetype/internal/ftcalc.h (FT_MSB) [_MSC_VER]: Do it.
-
-2018-05-16 Werner Lemberg <wl@gnu.org>
-
- Add function `FT_Get_GlyphLayers' to access `COLR' table data.
-
- * include/freetype/internal/ftobjs.h (FT_Glyph_LayerRec): Move this
- structure to...
- * include/freetype/freetype.h (FT_Glyph_LayerRec): ... this
- header file.
- (FT_Glyph_Layer): New typedef.
- Update code to use it where appropriate.
-
- * src/base/ftobjs.c (FT_Get_GlyphLayers): New function.
-
-2018-05-15 Alexei Podtelezhnikov <apodtele@gmail.com>
-
- [base] Fix mono bitmap presetting (#53896).
-
- It is rather fundamental to set monochrome bitmap based on rounded
- CBox because the b/w rasterizer turns on pixels when their centers are
- inside the glyph outline. The dropout control is unpredictable and can
- distort narrow glyphs if the bitmap is too wide.
-
- Reported by Chris Liddell.
-
- * src/base/ftobjs.c (ft_glyphslot_preset_bitmap): If BBox boundaries
- are too close, adjust them before rounding.
-
-2018-05-15 Werner Lemberg <wl@gnu.org>
-
- [psaux] Fix compiler warning (#53915).
-
- * src/psaux/psft.c (cf2_freeT1SeacComponent): Do it.
-
-2018-05-15 Werner Lemberg <wl@gnu.org>
-
- [sfnt] Fix memory leak in handling `COLR' data.
-
- * src/truetype/ttgload.c (TT_Load_Glyph): Free old `layers' array
- before reassigning allocated memory.
- Only allocate `color_layers' if we don't have one already.
-
-2018-05-15 Werner Lemberg <wl@gnu.org>
-
- [sfnt] If `COLR' is present, don't assume that all glyphs use it.
-
- * src/sfnt/ttcolr.c (tt_face_load_colr_layers): Return FT_Err_Ok if
- current glyph is not a `COLR' base glyph.
-
- * src/truetype/ttgload.c (TT_Load_Glyph): Don't allocate
- `color_layers' if there are no color layers.
-
-2018-05-14 Werner Lemberg <wl@gnu.org>
-
- * src/base/ftobjs.c (FT_Load_Glyph): Fix signature of `pixel_modes'.
-
-2018-05-14 Werner Lemberg <wl@gnu.org>
-
- Provide dummy functions if `TT_CONFIG_OPTION_SFNT_NAMES' is not set.
-
- * src/base/ftsnames.c [!TT_CONFIG_OPTION_SFNT_NAMES]: Implement it.
-
-2018-05-13 Werner Lemberg <wl@gnu.org>
-
- * src/base/ftobjs.c (FT_Load_Glyph): Improve tracing.
-
-2018-05-13 Shao Yu Zhang <shaozhang@fb.com>
- Werner Lemberg <wl@gnu.org>
+ https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=36241
- [sfnt] Preliminary support of colored layer outlines (#44689).
+ * src/smooth/ftgrays.c (LEFT_SHIFT): New macro.
+ (gray_render_conic) [BEZIER_USE_DDA]: Use it.
- This commit enables OpenType's COLR/CPAL table handling; a typical
- application are color emojis that can be scaled to any size.
+2021-08-02 Werner Lemberg <wl@gnu.org>
- If the color palette does not exist or is invalid, the rendering
- step rasterizes the outline instead. The current implementation
- assumes that the foreground is black.
+ * meson.build: Fix zlib support.
- Enable this by defining option TT_CONFIG_OPTION_COLOR_LAYERS.
+ This commit synchronizes zlib support with both autotools and cmake: If no
+ external zlib is found (or intentionally disabled on the command line), use
+ the internal zlib by undefining `FT_CONFIG_OPTION_SYSTEM_ZLIB` without
+ modifying `FT_CONFIG_OPTION_USE_ZLIB`.
- There are still some issues with metrics; additionally, an API to
- fetch color layers is missing.
+ Also improve summary output.
- * devel/ftoption.h, include/freetype/config/ftoption.h
- (TT_CONFIG_OPTION_COLOR_LAYERS): New macro.
+ Problem reported by Moazin.
- * include/freetype/internal/ftobjs.h (FT_Glyph_LayerRec,
- FT_Colr_InternalRec): New structures.
- (FT_Slot_InternalRec): Add `color_layers' field.
+2021-08-02 Anuj Verma <anujv@iitbhilai.ac.in>
- * include/freetype/internal/sfnt.h (TT_Load_Colr_Layer_Func,
- TT_Blend_Colr_Func): New function types.
- (SFNT_Interface): Add `load_colr', `free_colr', `load_colr_layer',
- and `colr_blend' fields.
+ [sdf] Fix out-of-range-access.
- * include/freetype/internal/tttypes.h (TT_FaceRec): Add
- `colr_and_cpal' field.
+ * src/sdf/ftbsdf.c (first_pass, second_pass): Fix range during forward pass.
+ Otherwise the index goes out of range for the last column.
- * include/freetype/internal/tttags. (TTAG_COLR, TTAG_CPAL): New
- macros.
+ Fixes issue #1077.
- * src/sfnt/ttcolr.c, src/sfnt/ttcolr.h: New files.
+2021-08-02 Anuj Verma <anujv@iitbhilai.ac.in>
- * src/base/ftobjs.c (ft_glyphslot_done, FT_Render_Glyph_Internal):
- Handle glyph color layers.
+ Fix invalid memory access in `bsdf` rasterizer.
- * src/sfnt/Jamfile (_sources), src/sfnt/rules.mk (SFNT_DRV_SRC): Add
- `ttcolr.c'.
+ Do not generate SDF from bitmap if the `FT_GLYPH_OWN_BITMAP` flag is not
+ set. In some cases the bitmap buffer is freed but still points to a valid
+ address; to handle those cases check the flag before accessing the memory.
- * src/sfnt/sfdriver.c: Include `ttcolr.h'.
- (PUT_COLOR_LAYERS): New macro.
- Update call to `FT_DEFINE_SFNT_INTERFACE'.
+ * src/sdf/ftsdfrend.c (ft_bsdf_render): Handle the above case.
+ Also, return an error message if the bitmap's rows/pitch is invalid,
+ otherwise `slot->buffer` might be assigned to some invalid memory location.
+ (ft_sdf_render): Same as above.
+ Plus, move the outline back to original state after rasterization and not if
+ any error occurs.
- * src/sfnt/sfnt.c: Include `ttcolr.c'.
+2021-07-29 Heiko Becker <heirecka@exherbo.org>
- * src/sfnt/sfobjs.c (sfnt_load_face): Load `COLR' and `CPAL' tables.
- (sfnt_done_face): Updated.
+ * meson.build: Honor `--includedir` instead of hard-coding 'include'.
- * src/truetype/ttgload.c (TT_Load_Glyph): Handle color layers.
+2021-07-29 Werner Lemberg <wl@gnu.org>
-2018-05-12 Arkady Shapkin <arkady.shapkin@gmail.com>
+ src/sfnt/ttcolr.c: Minor formatting.
- Use MS VC++'s _BitScanReverse to calculate MSB (patch #9636).
+2021-07-29 Dominik Röttsches <drott@chromium.org>
- * include/freetype/internal/ftcalc.h (FT_MSB) [_MSC_VER]: Implement
- it.
+ [sfnt] 'COLR' v1 PaintSweepGradient spec update
-2018-05-10 Alan Coopersmith <alan.coopersmith@oracle.com>
+ * src/sfnt/ttcolr.c (read_paint): PaintSweepGradient follows other
+ spec changes and now has the angles specified as F2DOT14, reflect
+ that in the implementation.
+ * include/freetype/ftcolor.h (FT_PaintSweepGradient): Update
+ documentation.
- Fix DLL compilation on Solaris.
+2021-07-29 Dominik Röttsches <drott@chromium.org>
- AC_COMPILE_IFELSE only tries to compile a `*.c' to a `*.o'. The
- Solaris Studio 12.1 through 12.5 compilers see the
- `-fvisibility=hidden' flag, but ignore it with a warning of:
+ [sfnt] Retrieve affine matrix from offset in 'COLR' v1 parsing.
- cc: Warning: Option -fvisibility=hidden passed to ld,
- if ld is invoked, ignored otherwise
+ * src/sfnt/ttcolr.c (read_paint): Implement spec change where
+ affine transform matrix is now referenced by offset instead of
+ being placed inline in the PaintTransform table.
- AC_LINK_IFELSE does the compile and then tries to link the result,
- at which point the Solaris linker will issue an error:
+2021-07-29 Dominik Röttsches <drott@chromium.org>
- ld: fatal: option '-fvisibility=hidden' is incompatible with
- building a dynamic executable
+ [sfnt] 'COLR' v1 PaintSkew related spec updates
- If we don't use AC_LINK_IFELSE to catch the error, then configure
- will fail further tests which attempt to link, such as those testing
- dependencies like `libbz2'.
+ * src/sfnt/ttcolr.c (read_paint): Implement spec changes around
+ PaintSkew, PaintSkewAroundCenter. Update parsing to read shorter
+ values as changed in the spec.
+ * include/freetype/ftcolor.h (FT_PaintSkew): Update documentation.
- Also, don't try adding `-fvisibility' if we have already added
- `-xldscope', just use one of them, since Sun Studio 12 and earlier
- compilers only issue a warning, and don't try passing through to the
- linker to generate an error, so AC_LINK_IFELSE doesn't catch them.
+2021-07-29 Dominik Röttsches <drott@chromium.org>
- Tested on Solaris 11.4 beta with compiler versions:
+ [sfnt] PaintRotate/PaintRotateAroundCenter spec updates
- Sun Studio 8 (Sun C 5.5)
- Sun Studio 10 (Sun C 5.7)
- Sun Studio 11 (Sun C 5.8)
- Sun Studio 12 (Sun C 5.9)
- Sun Studio 12.1 (Sun C 5.10)
- Oracle Solaris Studio 12.2 (Sun C 5.11)
- Oracle Solaris Studio 12.3 (Sun C 5.12)
- Oracle Solaris Studio 12.4 (Sun C 5.13)
- Oracle Developer Studio 12.5 (Sun C 5.14)
- Oracle Developer Studio 12.6 (Sun C 5.15)
- gcc 5.5.0
- gcc 7.3.0
+ * src/sfnt/ttcolr.c (read_paint): Implement spec change where
+ PaintRotate and PaintRotateAroundCenter were split for a more
+ compact format definition. Update parsing to read shorter values
+ as changed in the spec.
+ * include/freetype/ftcolor.h (FT_PaintRotate): Update documentation.
- and verified the libfreetype.so.6 generated by each of those
- compilers exported the same set of symbols.
+2021-07-29 Dominik Röttsches <drott@chromium.org>
- * builds/unix/configure.raw: Implement it.
+ [sfnt] 'COLR' v1 PaintTranslate and PaintScale precision
-2018-05-08 Werner Lemberg <wl@gnu.org>
+ * src/sfnt/ttcolr.c (read_paint): Implement spec changes in
+ PaintTranslate and PaintScale and friends. Update parsing to read
+ new shorter values.
- [autofit] Avoid potential SEGV if running out of memory.
+2021-07-29 AnuthaDev <anuthadev@gmail.com>
- Problem reported by Shailesh Mistry <shailesh.mistry@hotmail.co.uk>.
+ README.git: Add Code of Conduct.
- * src/autofit/afshaper.c (af_shaper_buf_create,
- af_shaper_buf_destroy) [!FT_CONFIG_OPTION_USE_HARFBUZZ]: Don't
- allocate and free a four-byte buffer. Instead, make those functions
- no-ops; the calling functions will provide a pointer to a buffer
- instead.
+2021-07-25 Werner Lemberg <wl@gnu.org>
- * src/autofit/afcjk.c (af_cjk_metrics_init_widths,
- af_cjk_metrics_init_blues, af_cjk_metrics_check_digits),
- src/autofit/aflatin.c (af_latin_metrics_init_widths,
- af_latin_metrics_init_blues, af_latin_metrics_check_digits)
- [!FT_CONFIG_OPTION_USE_HARFBUZZ]: Use pointer to local variable for
- `shaper_buf'.
+ ChangeLog housekeeping.
-2018-05-07 Nikolaus Waxweiler <madigens@gmail.com>
+ Archive old `ChangeLog` file.
- [cmake] Allow using project as subfolder in other project.
+ We no longer write ChangeLog entries manually; instead, the file will be
+ created from commit messages (which should be formatted in GNU's ChangeLog
+ style) by a call to
- * CMakeLists.txt: Test for CMake build directory being different
- from source directory. Provide other parts of the build system
- access the full include directory.
+ gitlog-to-changelog --format='%B%n'
-2018-05-07 Werner Lemberg <wl@gnu.org>
+ or something similar (this script is part of the 'gnulib' repository).
- [build] Suppress configure's `nothing to be done' message.
+2021-07-24 Werner Lemberg <wl@gnu.org>
- This is due to calling the configure script via `make' (within the
- top-level `configure' wrapper script). The same can happen for all
- other secondary make targets that are used to only modify the
- primary one, e.g., `make setup devel'.
+ Fix some `cppcheck` warnings.
- * builds/dos/detect.mk (emx, turboc, watcom, borlandc, borlandc16),
- builds/os2/detect (visualage, watcom, borlandc, devel),
- builds/unix/detect.mk (devel, lcc, unix), builds/windows/detect.mk
- (visualc, watcom, visualage, lcc, mingw32, bcc32, devel-bcc,
- devel-gcc): Use no-op recipe.
+ * src/bzip2/ftbzip2.c (ft_bzip2_file_skip_output), src/gzip/ftgzip.c
+ (ft_gzip_file_skip_output): Reduce scope of `delta`.
-2018-05-04 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+ * src/psaux/psintrp.c, src/psaux/psintrp.h (cf2_interpT2CharString): Add
+ `const` to `buf` parameter.
- Support symbol visibility features of Sun / Oracle C compilers.
+ * src/raster/ftraster.c (DelOld): Add `const` to `profile` parameter.
+ (Vertical_Sweep_Span): Reduce scope of `target`.
+ (FT_Outline_Get_CBox): Reduce scope of `xMin`, `xMax`, `yMin`, `yMax`.
- Reported by Kiyoshi Kanazawa:
- https://lists.gnu.org/archive/html/freetype-devel/2018-05/msg00008.html
- Thanks to the suggestions by Alexei and Alan Coopersmith.
+ * src/smooth/ftgrays.c (gray_render_conic): Reduce scope of `split`.
+ (gray_sweep, gray_sweep_direct): Reduce scope of `area`.
- * builds/unix/configure.raw: Check if "-xldscope=hidden" is
- accepted, and if so, it is added to CFLAGS. This is the option
- making Sun / Oracle C compilers hide the symbols from global
- scope.
- * include/freetype/config/ftconfig.h: Use "__global" prefix
- for FT_EXPORT() macro, if SunPro C is newer than Sun ONE
- Studio 8 (2003).
- * builds/unix/ftconfig.in: Ditto.
- * builds/vms/ftconfig.h: Ditto.
+ * src/tools/apinames.c (names_dump) <OUTPUT_WATCOM_LBC>: Reduce scope of
+ `temp`.
-2018-05-02 Nikolaus Waxweiler <madigens@gmail.com>
+2021-07-24 AnuthaDev <anuthadev@gmail.com>
- Unbreak CMake Windows installation
+ * .gitlab-ci.yml: Fixed cmake build, using correct options.
- * CMakeLists.txt: Generate ftconfig.h on non-UNIX.
+2021-07-24 AnuthaDev <anuthadev@gmail.com>
-2018-05-02 Werner Lemberg <wl@gnu.org>
+ * CMakeLists.txt: Make `cmake` handle disabled dependencies correctly.
- Remove FT_CONFIG_OPTION_PIC and related code.
+ Include 'CMakeDependentOption'.
- */* [FT_CONFIG_OPTION_PIC]: Remove all code guarded by this
- preprocessor symbol.
+ Replace `FT_WITH_XXX` options with `FT_DISABLE_XXX` and `FT_REQUIRE_XXX`
+ pairs. Update option logic accordingly.
- */*: Replace `XXX_GET' macros (which could be either a function in
- PIC mode or an array in non-PIC mode) with `xxx' arrays.
+ Fixes #1066.
- * include/freetype/internal/ftpic.h, src/autofit/afpic.c,
- src/autofit/afpic.h, src/base/basepic.c, src/base/basepic.h,
- src/base/ftpic.c, src/cff/cffpic.c, src/cff/cffpic.h,
- src/pshinter/pshpic.c, src/pshinter/pshpic.h, src/psnames/pspic.c,
- src/psnames/pspic.h, src/raster/rastpic.c, src/raster/rastpic.h,
- src/sfnt/sfntpic.c, src/sfnt/sfntpic.h, src/smooth/ftspic.c,
- src/smooth/ftspic.h, src/truetype/ttpic.c, src/truetype/ttpic.h:
- Removed.
+2021-07-24 Ben Wagner <bungeman@chromium.org>
+ [autofit] Split `afwrtsys.h`.
-----------------------------------------------------------------------------
+ The header file `afwrtsys.h` has two distinct functions: to include the
+ required writing system headers and also to generate code for each writing
+ system. At each current use site only one or the other is used, with
+ various macro trickery selecting one or the other. Split this header into
+ `afws-decl.h` for the required writing system declarations and `afws-iter.h`
+ for iterating over the writing systems to generate code.
-Copyright (C) 2018-2020 by
-David Turner, Robert Wilhelm, and Werner Lemberg.
+ The motivation for this change is that the Visual C++ compiler treats the
+ standard include guard idiom like `#pragma once` 'if no non-comment code or
+ preprocessor directive comes before or after the standard form of the
+ idiom'. It appears to check this after macro expansion, so if
+ `WRITING_SYSTEM` expands to empty the bottom of `afwrtsys.h` is empty and
+ looks like the standard include guard idiom which is treated like `#pragma
+ once`, so subsequent inclusion of `afwrtsys.h` is elided.
-This file is part of the FreeType project, and may only be used, modified,
-and distributed under the terms of the FreeType project license,
-LICENSE.TXT. By continuing to use, modify, or distribute this file you
-indicate that you have read the license and understand and accept it
-fully.
+ Fixes #1075.
+ * src/autofit/afglobal.c (af_writing_system_classes), src/autofit/aftypes.h
+ (AF_WritingSystem), src/autofit/rules.mk (AUTOF_DRV_H): Updated.
-Local Variables:
-version-control: never
-coding: utf-8
-End:
+ * src/autofit/afwrtsys.h: Split into...
+ * src/autofit/afws-decl.h, src/autofit/afws-iter.h: New files.
diff --git a/freetype/LICENSE.TXT b/freetype/LICENSE.TXT
new file mode 100644
index 00000000..b1def65d
--- /dev/null
+++ b/freetype/LICENSE.TXT
@@ -0,0 +1,42 @@
+FREETYPE LICENSES
+-----------------
+
+The FreeType 2 font engine is copyrighted work and cannot be used
+legally without a software license. In order to make this project
+usable to a vast majority of developers, we distribute it under two
+mutually exclusive open-source licenses.
+
+This means that *you* must choose *one* of the two licenses described
+below, then obey all its terms and conditions when using FreeType 2 in
+any of your projects or products.
+
+ - The FreeType License, found in the file `docs/FTL.TXT`, which is
+ similar to the original BSD license *with* an advertising clause
+ that forces you to explicitly cite the FreeType project in your
+ product's documentation. All details are in the license file.
+ This license is suited to products which don't use the GNU General
+ Public License.
+
+ Note that this license is compatible to the GNU General Public
+ License version 3, but not version 2.
+
+ - The GNU General Public License version 2, found in
+ `docs/GPLv2.TXT` (any later version can be used also), for
+ programs which already use the GPL. Note that the FTL is
+ incompatible with GPLv2 due to its advertisement clause.
+
+The contributed BDF and PCF drivers come with a license similar to
+that of the X Window System. It is compatible to the above two
+licenses (see files `src/bdf/README` and `src/pcf/README`). The same
+holds for the source code files `src/base/fthash.c` and
+`include/freetype/internal/fthash.h`; they wer part of the BDF driver
+in earlier FreeType versions.
+
+The gzip module uses the zlib license (see `src/gzip/zlib.h`) which
+too is compatible to the above two licenses.
+
+The MD5 checksum support (only used for debugging in development
+builds) is in the public domain.
+
+
+--- end of LICENSE.TXT ---
diff --git a/freetype/Makefile b/freetype/Makefile
index e1d1469d..f1284170 100644
--- a/freetype/Makefile
+++ b/freetype/Makefile
@@ -3,7 +3,7 @@
#
-# Copyright (C) 1996-2020 by
+# Copyright (C) 1996-2021 by
# David Turner, Robert Wilhelm, and Werner Lemberg.
#
# This file is part of the FreeType project, and may only be used, modified,
diff --git a/freetype/README b/freetype/README
index e4c8cf1c..6a320df9 100644
--- a/freetype/README
+++ b/freetype/README
@@ -1,92 +1,98 @@
- FreeType 2.10.4
- ===============
+FreeType 2.11.1
+===============
- Homepage: https://www.freetype.org
+Homepage: https://www.freetype.org
- FreeType is a freely available software library to render fonts.
+FreeType is a freely available software library to render fonts.
- It is written in C, designed to be small, efficient, highly
- customizable, and portable while capable of producing high-quality
- output (glyph images) of most vector and bitmap font formats.
+It is written in C, designed to be small, efficient, highly
+customizable, and portable while capable of producing high-quality
+output (glyph images) of most vector and bitmap font formats.
- Please read the docs/CHANGES file, it contains IMPORTANT
- INFORMATION.
+Please read the `docs/CHANGES` file, it contains IMPORTANT
+INFORMATION.
- Read the files `docs/INSTALL*' for installation instructions; see
- the file `docs/LICENSE.TXT' for the available licenses.
+Read the files `docs/INSTALL*` for installation instructions; see the
+file `docs/LICENSE.TXT` for the available licenses.
- The FreeType 2 API reference is located in `docs/reference/site';
- use the file `index.html' as the top entry point. [Please note that
- currently the search function for locally installed documentation
- doesn't work due to cross-site scripting issues.]
+For using FreeType's git repository instead of a distribution bundle,
+please read file `README.git`.
- Additional documentation is available as a separate package from our
- sites. Go to
+The FreeType 2 API reference is located in directory `docs/reference`;
+use the file `index.html` as the top entry point. [Please note that
+currently the search function for locally installed documentation
+doesn't work due to cross-site scripting issues.]
- https://download.savannah.gnu.org/releases/freetype/
+Additional documentation is available as a separate package from our
+sites. Go to
- and download one of the following files.
+ https://download.savannah.gnu.org/releases/freetype/
- freetype-doc-2.10.4.tar.xz
- freetype-doc-2.10.4.tar.gz
- ftdoc2104.zip
+and download one of the following files.
- To view the documentation online, go to
+ freetype-doc-2.11.1.tar.xz
+ freetype-doc-2.11.1.tar.gz
+ ftdoc2111.zip
- https://www.freetype.org/freetype2/docs/
+To view the documentation online, go to
+ https://www.freetype.org/freetype2/docs/
- Mailing Lists
- =============
- The preferred way of communication with the FreeType team is using
- e-mail lists.
+Mailing Lists
+-------------
- general use and discussion: freetype@nongnu.org
- engine internals, porting, etc.: freetype-devel@nongnu.org
- announcements: freetype-announce@nongnu.org
- git repository tracker: freetype-commit@nongnu.org
+The preferred way of communication with the FreeType team is using
+e-mail lists.
- The lists are moderated; see
+ general use and discussion: freetype@nongnu.org
+ engine internals, porting, etc.: freetype-devel@nongnu.org
+ announcements: freetype-announce@nongnu.org
+ git repository tracker: freetype-commit@nongnu.org
- https://www.freetype.org/contact.html
+The lists are moderated; see
- how to subscribe.
+ https://www.freetype.org/contact.html
+how to subscribe.
- Bugs
- ====
- Please submit bug reports at
+Bugs
+----
- https://savannah.nongnu.org/bugs/?group=freetype
+Please submit bug reports at
- Alternatively, you might report bugs by e-mail to
- `freetype-devel@nongnu.org'. Don't forget to send a detailed
- explanation of the problem -- there is nothing worse than receiving
- a terse message that only says `it doesn't work'.
+ https://gitlab.freedesktop.org/freetype/freetype/-/issues
+Alternatively, you might report bugs by e-mail to
+`freetype-devel@nongnu.org`. Don't forget to send a detailed
+explanation of the problem -- there is nothing worse than receiving a
+terse message that only says 'it doesn't work'.
- Patches
- =======
- Please submit patches to the `freetype-devel@nongnu.org' mailing
- list -- and thank you in advance for your work on improving
- FreeType!
+Patches
+-------
- Details on the process can be found here:
+For larger changes please provide merge requests at
- https://www.freetype.org/developer.html#patches
+ https://gitlab.freedesktop.org/freetype/freetype/-/merge_requests
+Alternatively, you can send patches to the `freetype-devel@nongnu.org`
+mailing list -- and thank you in advance for your work on improving
+FreeType!
- Enjoy!
+Details on the process can be found here:
+ https://www.freetype.org/developer.html#patches
- The FreeType Team
+
+Enjoy!
+
+ The FreeType Team
----------------------------------------------------------------------
-Copyright (C) 2006-2020 by
+Copyright (C) 2006-2021 by
David Turner, Robert Wilhelm, and Werner Lemberg.
This file is part of the FreeType project, and may only be used,
diff --git a/freetype/README.git b/freetype/README.git
index c4f0033c..ad3c74ca 100644
--- a/freetype/README.git
+++ b/freetype/README.git
@@ -1,4 +1,36 @@
-The git archive doesn't contain pre-built configuration scripts for
+README.git
+==========
+
+
+repository issues
+-----------------
+
+FreeType's official repository site is
+
+ https://gitlab.freedesktop.org/freetype ,
+
+from which the 'freetype.git' and 'freetype-demos.git' repositories
+can be cloned in the usual way.
+
+ git clone https://gitlab.freedesktop.org/freetype/freetype.git
+ git clone https://gitlab.freedesktop.org/freetype/freetype-demos.git
+
+If you want to use the Savannah mirror instead, you have to do a
+slightly different incantation because the repository names contain
+digit '2' for historical reasons.
+
+ git clone \
+ https://git.savannah.nongnu.org/git/freetype/freetype2.git \
+ freetype
+ git clone \
+ https://git.savannah.nongnu.org/git/freetype/freetype2-demos.git \
+ freetype-demos
+
+
+standard builds with `configure`
+--------------------------------
+
+The git repository doesn't contain pre-built configuration scripts for
UNIXish platforms. To generate them say
sh autogen.sh
@@ -10,34 +42,54 @@ which in turn depends on the following packages:
autoconf (2.62)
The versions given in parentheses are known to work. Newer versions
-should work too, of course. Note that autogen.sh also sets up proper
-file permissions for the `configure' and auxiliary scripts.
+should work too, of course. Note that `autogen.sh` also sets up
+proper file permissions for the `configure` and auxiliary scripts.
+
+The `autogen.sh` script checks whether the versions of the above three
+tools match the numbers above. Otherwise it will complain and suggest
+either upgrading or using environment variables to point to more
+recent versions of the required tools.
-The autogen.sh script now checks the version of above three packages
-whether they match the numbers above. Otherwise it will complain and
-suggest either upgrading or using an environment variable to point to
-a more recent version of the required tool(s).
+Note that `aclocal` is provided by the 'automake' package on Linux,
+and that `libtoolize` is called `glibtoolize` on Darwin (OS X).
-Note that `aclocal' is provided by the `automake' package on Linux,
-and that `libtoolize' is called `glibtoolize' on Darwin (OS X).
+alternative build methods
+-------------------------
-For static builds which don't use platform specific optimizations, no
+For static builds that don't use platform-specific optimizations, no
configure script is necessary at all; saying
make setup ansi
make
-should work on all platforms which have GNU make (or makepp).
+should work on all platforms that have GNU `make` (or `makepp`).
+
+A build with `cmake` or `meson` can be done directly from the git
+repository. However, if you want to use the `FT_DEBUG_LOGGING` macro
+(see file `docs/DEBUG` for more information) it is currently mandatory
+to execute `autogen.sh` in advance; this script clones the 'dlg' git
+submodule and copies some files into FreeType's source tree.
+
+
+Code of Conduct
+---------------
+
+Please note that this project is released with a Contributor Code of
+Conduct (CoC). By participating in this project you agree to abide by
+its terms, which you can find in the following link:
+ https://www.freedesktop.org/wiki/CodeOfConduct
-Similarly, a build with `cmake' can be done directly from the git
-repository.
+CoC issues may be raised to the project maintainers at the following
+address:
+ wl@gnu.org
+ apodtele@gmail.com
----------------------------------------------------------------------
-Copyright (C) 2005-2020 by
+Copyright (C) 2005-2021 by
David Turner, Robert Wilhelm, and Werner Lemberg.
This file is part of the FreeType project, and may only be used,
diff --git a/freetype/autogen.sh b/freetype/autogen.sh
index 79c4e4e1..8cca7c84 100755
--- a/freetype/autogen.sh
+++ b/freetype/autogen.sh
@@ -1,6 +1,6 @@
#!/bin/sh
-# Copyright (C) 2005-2020 by
+# Copyright (C) 2005-2021 by
# David Turner, Robert Wilhelm, and Werner Lemberg.
#
# This file is part of the FreeType project, and may only be used, modified,
@@ -110,7 +110,10 @@ check_tool_version ()
fi
}
-if test ! -f ./builds/unix/configure.raw; then
+# Solaris 10's shell doesn't like the `!` operator to negate the exit status.
+if test -f ./builds/unix/configure.raw; then
+ :
+else
echo "You must be in the same directory as \`autogen.sh'."
echo "Bootstrapping doesn't work if srcdir != builddir."
exit 1
@@ -138,18 +141,25 @@ check_tool_version $ACLOCAL aclocal ACLOCAL 1.10.1
check_tool_version $LIBTOOLIZE libtoolize LIBTOOLIZE 2.2.4
check_tool_version $AUTOCONF autoconf AUTOCONF 2.62
-# This sets freetype_major, freetype_minor, and freetype_patch.
-eval `sed -nf version.sed include/freetype/freetype.h`
+# This sets FREETYPE version.
+eval `sed -n \
+-e 's/^#define *\(FREETYPE_MAJOR\) *\([0-9][0-9]*\).*/\1=\2/p' \
+-e 's/^#define *\(FREETYPE_MINOR\) *\([0-9][0-9]*\).*/\1=\2/p' \
+-e 's/^#define *\(FREETYPE_PATCH\) *\([0-9][0-9]*\).*/\1=\2/p' \
+include/freetype/freetype.h`
-# We set freetype-patch to an empty value if it is zero.
-if test "$freetype_patch" = ".0"; then
- freetype_patch=
+if test "$FREETYPE_PATCH" = "0"; then
+ FREETYPE=$FREETYPE_MAJOR.$FREETYPE_MINOR
+else
+ FREETYPE=$FREETYPE_MAJOR.$FREETYPE_MINOR.$FREETYPE_PATCH
fi
+echo "FreeType $FREETYPE:"
+
cd builds/unix
echo "generating \`configure.ac'"
-sed -e "s;@VERSION@;$freetype_major$freetype_minor$freetype_patch;" \
+sed -e "s;@VERSION@;$FREETYPE;" \
< configure.raw > configure.ac
run aclocal -I . --force
@@ -162,4 +172,29 @@ cd ../..
chmod +x ./configure
+# Copy all necessary 'dlg' files.
+copy_submodule_files ()
+{
+ echo "Copying files from \`subprojects/dlg' to \`src/dlg' and \`include/dlg'"
+ mkdir include/dlg 2> /dev/null
+ cp $DLG_INC_DIR/output.h include/dlg
+ cp $DLG_INC_DIR/dlg.h include/dlg
+ cp $DLG_SRC_DIR/* src/dlg
+}
+
+if test -d ".git"; then
+ DLG_INC_DIR=subprojects/dlg/include/dlg
+ DLG_SRC_DIR=subprojects/dlg/src/dlg
+
+ if test -d "$DLG_INC_DIR"; then
+ :
+ else
+ echo "Checking out submodule in \`subprojects/dlg':"
+ git submodule init
+ git submodule update
+ fi
+
+ copy_submodule_files
+fi
+
# EOF
diff --git a/freetype/builds/amiga/README b/freetype/builds/amiga/README
index c5525277..4ec8770b 100644
--- a/freetype/builds/amiga/README
+++ b/freetype/builds/amiga/README
@@ -1,7 +1,7 @@
README for the builds/amiga subdirectory.
-Copyright (C) 2005-2020 by
+Copyright (C) 2005-2021 by
Werner Lemberg and Detlef Wrkner.
This file is part of the FreeType project, and may only be used, modified,
diff --git a/freetype/builds/amiga/include/config/ftconfig.h b/freetype/builds/amiga/include/config/ftconfig.h
index 4976c75f..6deea6b7 100644
--- a/freetype/builds/amiga/include/config/ftconfig.h
+++ b/freetype/builds/amiga/include/config/ftconfig.h
@@ -4,7 +4,7 @@
/* */
/* Amiga-specific configuration file (specification only). */
/* */
-/* Copyright (C) 2005-2020 by */
+/* Copyright (C) 2005-2021 by */
/* Werner Lemberg and Detlef Wrkner. */
/* */
/* This file is part of the FreeType project, and may only be used, */
diff --git a/freetype/builds/amiga/include/config/ftmodule.h b/freetype/builds/amiga/include/config/ftmodule.h
index 6035bf01..873537ca 100644
--- a/freetype/builds/amiga/include/config/ftmodule.h
+++ b/freetype/builds/amiga/include/config/ftmodule.h
@@ -4,7 +4,7 @@
/* */
/* Amiga-specific FreeType module selection. */
/* */
-/* Copyright (C) 2005-2020 by */
+/* Copyright (C) 2005-2021 by */
/* Werner Lemberg and Detlef Wrkner. */
/* */
/* This file is part of the FreeType project, and may only be used, */
diff --git a/freetype/builds/amiga/makefile b/freetype/builds/amiga/makefile
index 50315f38..ed7c780b 100644
--- a/freetype/builds/amiga/makefile
+++ b/freetype/builds/amiga/makefile
@@ -5,7 +5,7 @@
#
-# Copyright (C) 2005-2020 by
+# Copyright (C) 2005-2021 by
# Werner Lemberg and Detlef Wrkner.
#
# This file is part of the FreeType project, and may only be used, modified,
diff --git a/freetype/builds/amiga/makefile.os4 b/freetype/builds/amiga/makefile.os4
index cd5151c6..58c89208 100644
--- a/freetype/builds/amiga/makefile.os4
+++ b/freetype/builds/amiga/makefile.os4
@@ -4,7 +4,7 @@
#
-# Copyright (C) 2005-2020 by
+# Copyright (C) 2005-2021 by
# Werner Lemberg and Detlef Wrkner.
#
# This file is part of the FreeType project, and may only be used, modified,
diff --git a/freetype/builds/amiga/smakefile b/freetype/builds/amiga/smakefile
index fa416765..aaddd199 100644
--- a/freetype/builds/amiga/smakefile
+++ b/freetype/builds/amiga/smakefile
@@ -3,7 +3,7 @@
#
-# Copyright (C) 2005-2020 by
+# Copyright (C) 2005-2021 by
# Werner Lemberg and Detlef Wrkner.
#
# This file is part of the FreeType project, and may only be used, modified,
diff --git a/freetype/builds/amiga/src/base/ftdebug.c b/freetype/builds/amiga/src/base/ftdebug.c
index 6510d206..dc7e968d 100644
--- a/freetype/builds/amiga/src/base/ftdebug.c
+++ b/freetype/builds/amiga/src/base/ftdebug.c
@@ -4,7 +4,7 @@
*
* Debugging and logging component for amiga (body).
*
- * Copyright (C) 1996-2020 by
+ * Copyright (C) 1996-2021 by
* David Turner, Robert Wilhelm, Werner Lemberg, and Detlef Wuerkner.
*
* This file is part of the FreeType project, and may only be used,
diff --git a/freetype/builds/amiga/src/base/ftsystem.c b/freetype/builds/amiga/src/base/ftsystem.c
index 1dfbd661..5c69e3ac 100644
--- a/freetype/builds/amiga/src/base/ftsystem.c
+++ b/freetype/builds/amiga/src/base/ftsystem.c
@@ -4,7 +4,7 @@
/* */
/* Amiga-specific FreeType low-level system interface (body). */
/* */
-/* Copyright (C) 1996-2020 by */
+/* Copyright (C) 1996-2021 by */
/* David Turner, Robert Wilhelm, Werner Lemberg and Detlef Wrkner. */
/* */
/* This file is part of the FreeType project, and may only be used, */
@@ -264,7 +264,7 @@ Free_VecPooled( APTR poolHeader,
stream->descriptor.pointer = NULL;
stream->size = 0;
- stream->base = 0;
+ stream->base = NULL;
}
diff --git a/freetype/builds/ansi/ansi-def.mk b/freetype/builds/ansi/ansi-def.mk
index 9642098d..218d5c0d 100644
--- a/freetype/builds/ansi/ansi-def.mk
+++ b/freetype/builds/ansi/ansi-def.mk
@@ -3,7 +3,7 @@
#
-# Copyright (C) 1996-2020 by
+# Copyright (C) 1996-2021 by
# David Turner, Robert Wilhelm, and Werner Lemberg.
#
# This file is part of the FreeType project, and may only be used, modified,
@@ -13,11 +13,11 @@
# fully.
-DELETE := rm -f
-CAT := cat
-SEP := /
-BUILD_DIR := $(TOP_DIR)/builds/ansi
-PLATFORM := ansi
+DELETE := rm -f
+CAT := cat
+SEP := /
+PLATFORM_DIR := $(TOP_DIR)/builds/ansi
+PLATFORM := ansi
# This is used for `make refdoc' and `make refdoc-venv'
#
@@ -64,14 +64,14 @@ T := -o$(space)
#
# These should concern: debug output, optimization & warnings.
#
-# Use the ANSIFLAGS variable to define the compiler flags used to enfore
+# Use the ANSIFLAGS variable to define the compiler flags used to enforce
# ANSI compliance.
#
CFLAGS ?= -c
# ANSIFLAGS: Put there the flags used to make your compiler ANSI-compliant.
#
-ANSIFLAGS :=
+ANSIFLAGS ?=
# EOF
diff --git a/freetype/builds/ansi/ansi.mk b/freetype/builds/ansi/ansi.mk
index c2448030..b36c64e2 100644
--- a/freetype/builds/ansi/ansi.mk
+++ b/freetype/builds/ansi/ansi.mk
@@ -3,7 +3,7 @@
#
-# Copyright (C) 1996-2020 by
+# Copyright (C) 1996-2021 by
# David Turner, Robert Wilhelm, and Werner Lemberg.
#
# This file is part of the FreeType project, and may only be used, modified,
diff --git a/freetype/builds/atari/README.TXT b/freetype/builds/atari/README.TXT
index ffe65456..1300817b 100644
--- a/freetype/builds/atari/README.TXT
+++ b/freetype/builds/atari/README.TXT
@@ -15,7 +15,7 @@ To compile FreeType 2 as a library the following changes must be applied:
INCLUDE;E:\freetype2\include
-- The file `freetype2/include/Ft2build.h' must be patched as follows to
+- The file `freetype/include/Ft2build.h' must be patched as follows to
include ATARI.H:
#ifndef FT2_BUILD_GENERIC_H_
@@ -40,7 +40,7 @@ gendert werden:
INCLUDE;E:\freetype2\include
-- In der Datei freetype2/include/Ft2build.h muss zu Beginn
+- In der Datei freetype/include/Ft2build.h muss zu Beginn
ein #include "ATARI.H" wie folgt eingefgt werden:
#ifndef FT2_BUILD_GENERIC_H_
diff --git a/freetype/builds/beos/beos-def.mk b/freetype/builds/beos/beos-def.mk
index 5ae7ed8f..d7d63b37 100644
--- a/freetype/builds/beos/beos-def.mk
+++ b/freetype/builds/beos/beos-def.mk
@@ -5,7 +5,7 @@
#
-# Copyright (C) 1996-2020 by
+# Copyright (C) 1996-2021 by
# David Turner, Robert Wilhelm, and Werner Lemberg.
#
# This file is part of the FreeType project, and may only be used, modified,
@@ -15,11 +15,11 @@
# fully.
-DELETE := rm -f
-CAT := cat
-SEP := /
-BUILD_DIR := $(TOP_DIR)/builds/beos
-PLATFORM := beos
+DELETE := rm -f
+CAT := cat
+SEP := /
+PLATFORM_DIR := $(TOP_DIR)/builds/beos
+PLATFORM := beos
# This is used for `make refdoc' and `make refdoc-venv'
#
@@ -66,14 +66,14 @@ T := -o$(space)
#
# These should concern: debug output, optimization & warnings.
#
-# Use the ANSIFLAGS variable to define the compiler flags used to enfore
+# Use the ANSIFLAGS variable to define the compiler flags used to enforce
# ANSI compliance.
#
CFLAGS ?= -c
# ANSIFLAGS: Put there the flags used to make your compiler ANSI-compliant.
#
-ANSIFLAGS :=
+ANSIFLAGS ?=
# EOF
diff --git a/freetype/builds/beos/beos.mk b/freetype/builds/beos/beos.mk
index 1a082c18..f3e3fbbe 100644
--- a/freetype/builds/beos/beos.mk
+++ b/freetype/builds/beos/beos.mk
@@ -2,7 +2,7 @@
# FreeType 2 configuration rules for a BeOS system
#
-# Copyright (C) 1996-2020 by
+# Copyright (C) 1996-2021 by
# David Turner, Robert Wilhelm, and Werner Lemberg.
#
# This file is part of the FreeType project, and may only be used, modified,
diff --git a/freetype/builds/beos/detect.mk b/freetype/builds/beos/detect.mk
index 5b92512a..521ecae9 100644
--- a/freetype/builds/beos/detect.mk
+++ b/freetype/builds/beos/detect.mk
@@ -3,7 +3,7 @@
#
-# Copyright (C) 1996-2020 by
+# Copyright (C) 1996-2021 by
# David Turner, Robert Wilhelm, and Werner Lemberg.
#
# This file is part of the FreeType project, and may only be used, modified,
@@ -27,11 +27,11 @@ endif
ifeq ($(PLATFORM),beos)
- DELETE := rm -f
- CAT := cat
- SEP := /
- BUILD_DIR := $(TOP_DIR)/builds/beos
- CONFIG_FILE := beos.mk
+ DELETE := rm -f
+ CAT := cat
+ SEP := /
+ PLATFORM_DIR := $(TOP_DIR)/builds/beos
+ CONFIG_FILE := beos.mk
setup: std_setup
diff --git a/freetype/builds/cmake/FindBrotliDec.cmake b/freetype/builds/cmake/FindBrotliDec.cmake
index 7c484c7d..46356b1f 100644
--- a/freetype/builds/cmake/FindBrotliDec.cmake
+++ b/freetype/builds/cmake/FindBrotliDec.cmake
@@ -1,6 +1,6 @@
# FindBrotliDec.cmake
#
-# Copyright (C) 2019-2020 by
+# Copyright (C) 2019-2021 by
# David Turner, Robert Wilhelm, and Werner Lemberg.
#
# Written by Werner Lemberg <wl@gnu.org>
@@ -19,7 +19,8 @@
# BROTLIDEC_INCLUDE_DIRS
# BROTLIDEC_LIBRARIES
-include(FindPkgConfig)
+find_package(PkgConfig QUIET)
+
pkg_check_modules(PC_BROTLIDEC QUIET libbrotlidec)
if (PC_BROTLIDEC_VERSION)
@@ -41,7 +42,7 @@ find_library(BROTLIDEC_LIBRARIES
include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(
- brotlidec
+ BrotliDec
REQUIRED_VARS BROTLIDEC_INCLUDE_DIRS BROTLIDEC_LIBRARIES
FOUND_VAR BROTLIDEC_FOUND
VERSION_VAR BROTLIDEC_VERSION)
diff --git a/freetype/builds/cmake/FindHarfBuzz.cmake b/freetype/builds/cmake/FindHarfBuzz.cmake
index d489613f..b481fa41 100644
--- a/freetype/builds/cmake/FindHarfBuzz.cmake
+++ b/freetype/builds/cmake/FindHarfBuzz.cmake
@@ -1,4 +1,5 @@
# Copyright (c) 2012, Intel Corporation
+# Copyright (c) 2019 Sony Interactive Entertainment Inc.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
@@ -23,65 +24,180 @@
# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
# POSSIBILITY OF SUCH DAMAGE.
-
-
-# Try to find HarfBuzz include and library directories.
#
-# After successful discovery, this will set for inclusion where needed:
+# Try to find Harfbuzz include and library directories.
#
-# HARFBUZZ_INCLUDE_DIRS - containg the HarfBuzz headers
-# HARFBUZZ_LIBRARIES - containg the HarfBuzz library
+# After successful discovery, this will set for inclusion where needed:
+# HarfBuzz_INCLUDE_DIRS - containg the HarfBuzz headers
+# HarfBuzz_LIBRARIES - containg the HarfBuzz library
+
+#[=======================================================================[.rst:
+FindHarfBuzz
+--------------
+
+Find HarfBuzz headers and libraries.
+
+Imported Targets
+^^^^^^^^^^^^^^^^
+
+``HarfBuzz::HarfBuzz``
+ The HarfBuzz library, if found.
+
+``HarfBuzz::ICU``
+ The HarfBuzz ICU library, if found.
-include(FindPkgConfig)
+Result Variables
+^^^^^^^^^^^^^^^^
+
+This will define the following variables in your project:
+
+``HarfBuzz_FOUND``
+ true if (the requested version of) HarfBuzz is available.
+``HarfBuzz_VERSION``
+ the version of HarfBuzz.
+``HarfBuzz_LIBRARIES``
+ the libraries to link against to use HarfBuzz.
+``HarfBuzz_INCLUDE_DIRS``
+ where to find the HarfBuzz headers.
+``HarfBuzz_COMPILE_OPTIONS``
+ this should be passed to target_compile_options(), if the
+ target is not used for linking
+
+#]=======================================================================]
+
+find_package(PkgConfig QUIET)
pkg_check_modules(PC_HARFBUZZ QUIET harfbuzz)
+set(HarfBuzz_COMPILE_OPTIONS ${PC_HARFBUZZ_CFLAGS_OTHER})
+set(HarfBuzz_VERSION ${PC_HARFBUZZ_CFLAGS_VERSION})
+
+find_path(HarfBuzz_INCLUDE_DIR
+ NAMES hb.h
+ HINTS ${PC_HARFBUZZ_INCLUDEDIR} ${PC_HARFBUZZ_INCLUDE_DIRS}
+ PATH_SUFFIXES harfbuzz
+)
+
+find_library(HarfBuzz_LIBRARY
+ NAMES ${HarfBuzz_NAMES} harfbuzz
+ HINTS ${PC_HARFBUZZ_LIBDIR} ${PC_HARFBUZZ_LIBRARY_DIRS}
+)
+
+if (HarfBuzz_INCLUDE_DIR AND NOT HarfBuzz_VERSION)
+ if (EXISTS "${HarfBuzz_INCLUDE_DIR}/hb-version.h")
+ file(READ "${HarfBuzz_INCLUDE_DIR}/hb-version.h" _harfbuzz_version_content)
+
+ string(REGEX MATCH "#define +HB_VERSION_STRING +\"([0-9]+\\.[0-9]+\\.[0-9]+)\"" _dummy "${_harfbuzz_version_content}")
+ set(HarfBuzz_VERSION "${CMAKE_MATCH_1}")
+ endif ()
+endif ()
-find_path(HARFBUZZ_INCLUDE_DIRS
- NAMES hb.h
- HINTS ${PC_HARFBUZZ_INCLUDEDIR}
- ${PC_HARFBUZZ_INCLUDE_DIRS}
- PATH_SUFFIXES harfbuzz)
-
-find_library(HARFBUZZ_LIBRARIES
- NAMES harfbuzz
- HINTS ${PC_HARFBUZZ_LIBDIR}
- ${PC_HARFBUZZ_LIBRARY_DIRS})
-
-if (HARFBUZZ_INCLUDE_DIRS)
- if (EXISTS "${HARFBUZZ_INCLUDE_DIRS}/hb-version.h")
- file(READ "${HARFBUZZ_INCLUDE_DIRS}/hb-version.h" _harfbuzz_version_content)
-
- string(REGEX MATCH
- "#define +HB_VERSION_STRING +\"([0-9]+\\.[0-9]+\\.[0-9]+)\""
- _dummy "${_harfbuzz_version_content}")
- set(HARFBUZZ_VERSION "${CMAKE_MATCH_1}")
+if ("${HarfBuzz_FIND_VERSION}" VERSION_GREATER "${HarfBuzz_VERSION}")
+ if (HarfBuzz_FIND_REQUIRED)
+ message(FATAL_ERROR
+ "Required version (" ${HarfBuzz_FIND_VERSION} ")"
+ " is higher than found version (" ${HarfBuzz_VERSION} ")")
+ else ()
+ message(WARNING
+ "Required version (" ${HarfBuzz_FIND_VERSION} ")"
+ " is higher than found version (" ${HarfBuzz_VERSION} ")")
+ unset(HarfBuzz_VERSION)
+ unset(HarfBuzz_INCLUDE_DIRS)
+ unset(HarfBuzz_LIBRARIES)
+ return ()
endif ()
endif ()
-if ("${harfbuzz_FIND_VERSION}" VERSION_GREATER "${HARFBUZZ_VERSION}")
- message(FATAL_ERROR
- "Required version (" ${harfbuzz_FIND_VERSION} ")"
- " is higher than found version (" ${HARFBUZZ_VERSION} ")")
+# Find components
+if (HarfBuzz_INCLUDE_DIR AND HarfBuzz_LIBRARY)
+ set(_HarfBuzz_REQUIRED_LIBS_FOUND ON)
+ set(HarfBuzz_LIBS_FOUND "HarfBuzz (required): ${HarfBuzz_LIBRARY}")
+else ()
+ set(_HarfBuzz_REQUIRED_LIBS_FOUND OFF)
+ set(HarfBuzz_LIBS_NOT_FOUND "HarfBuzz (required)")
endif ()
-include(FindPackageHandleStandardArgs)
-find_package_handle_standard_args(
- harfbuzz
- REQUIRED_VARS HARFBUZZ_INCLUDE_DIRS HARFBUZZ_LIBRARIES
- VERSION_VAR HARFBUZZ_VERSION)
+if (NOT CMAKE_VERSION VERSION_LESS 3.3)
+ if ("ICU" IN_LIST HarfBuzz_FIND_COMPONENTS)
+ pkg_check_modules(PC_HARFBUZZ_ICU QUIET harfbuzz-icu)
+ set(HarfBuzz_ICU_COMPILE_OPTIONS ${PC_HARFBUZZ_ICU_CFLAGS_OTHER})
-mark_as_advanced(
- HARFBUZZ_INCLUDE_DIRS
- HARFBUZZ_LIBRARIES)
+ find_path(HarfBuzz_ICU_INCLUDE_DIR
+ NAMES hb-icu.h
+ HINTS ${PC_HARFBUZZ_ICU_INCLUDEDIR} ${PC_HARFBUZZ_ICU_INCLUDE_DIRS}
+ PATH_SUFFIXES harfbuzz
+ )
+
+ find_library(HarfBuzz_ICU_LIBRARY
+ NAMES ${HarfBuzz_ICU_NAMES} harfbuzz-icu
+ HINTS ${PC_HARFBUZZ_ICU_LIBDIR} ${PC_HARFBUZZ_ICU_LIBRARY_DIRS}
+ )
+
+ if (HarfBuzz_ICU_LIBRARY)
+ if (HarfBuzz_FIND_REQUIRED_ICU)
+ list(APPEND HarfBuzz_LIBS_FOUND "ICU (required): ${HarfBuzz_ICU_LIBRARY}")
+ else ()
+ list(APPEND HarfBuzz_LIBS_FOUND "ICU (optional): ${HarfBuzz_ICU_LIBRARY}")
+ endif ()
+ else ()
+ if (HarfBuzz_FIND_REQUIRED_ICU)
+ set(_HarfBuzz_REQUIRED_LIBS_FOUND OFF)
+ list(APPEND HarfBuzz_LIBS_NOT_FOUND "ICU (required)")
+ else ()
+ list(APPEND HarfBuzz_LIBS_NOT_FOUND "ICU (optional)")
+ endif ()
+ endif ()
+ endif ()
+endif ()
+
+if (NOT HarfBuzz_FIND_QUIETLY)
+ if (HarfBuzz_LIBS_FOUND)
+ message(STATUS "Found the following HarfBuzz libraries:")
+ foreach (found ${HarfBuzz_LIBS_FOUND})
+ message(STATUS " ${found}")
+ endforeach ()
+ endif ()
+ if (HarfBuzz_LIBS_NOT_FOUND)
+ message(STATUS "The following HarfBuzz libraries were not found:")
+ foreach (found ${HarfBuzz_LIBS_NOT_FOUND})
+ message(STATUS " ${found}")
+ endforeach ()
+ endif ()
+endif ()
+
+include(FindPackageHandleStandardArgs)
+find_package_handle_standard_args(HarfBuzz
+ FOUND_VAR HarfBuzz_FOUND
+ REQUIRED_VARS HarfBuzz_INCLUDE_DIR HarfBuzz_LIBRARY _HarfBuzz_REQUIRED_LIBS_FOUND
+ VERSION_VAR HarfBuzz_VERSION
+)
-# Allow easy linking as in
-#
-# target_link_libraries(freetype PRIVATE Harfbuzz::Harfbuzz)
-#
if (NOT CMAKE_VERSION VERSION_LESS 3.1)
- if (HARFBUZZ_FOUND AND NOT TARGET Harfbuzz::Harfbuzz)
- add_library(Harfbuzz::Harfbuzz INTERFACE IMPORTED)
- set_target_properties(
- Harfbuzz::Harfbuzz PROPERTIES
- INTERFACE_INCLUDE_DIRECTORIES "${HARFBUZZ_INCLUDE_DIRS}")
+ if (HarfBuzz_LIBRARY AND NOT TARGET HarfBuzz::HarfBuzz)
+ add_library(HarfBuzz::HarfBuzz UNKNOWN IMPORTED GLOBAL)
+ set_target_properties(HarfBuzz::HarfBuzz PROPERTIES
+ IMPORTED_LOCATION "${HarfBuzz_LIBRARY}"
+ INTERFACE_COMPILE_OPTIONS "${HarfBuzz_COMPILE_OPTIONS}"
+ INTERFACE_INCLUDE_DIRECTORIES "${HarfBuzz_INCLUDE_DIR}"
+ )
+ endif ()
+
+ if (HarfBuzz_ICU_LIBRARY AND NOT TARGET HarfBuzz::ICU)
+ add_library(HarfBuzz::ICU UNKNOWN IMPORTED GLOBAL)
+ set_target_properties(HarfBuzz::ICU PROPERTIES
+ IMPORTED_LOCATION "${HarfBuzz_ICU_LIBRARY}"
+ INTERFACE_COMPILE_OPTIONS "${HarfBuzz_ICU_COMPILE_OPTIONS}"
+ INTERFACE_INCLUDE_DIRECTORIES "${HarfBuzz_ICU_INCLUDE_DIR}"
+ )
endif ()
endif ()
+
+mark_as_advanced(
+ HarfBuzz_INCLUDE_DIR
+ HarfBuzz_ICU_INCLUDE_DIR
+ HarfBuzz_LIBRARY
+ HarfBuzz_ICU_LIBRARY
+)
+
+if (HarfBuzz_FOUND)
+ set(HarfBuzz_LIBRARIES ${HarfBuzz_LIBRARY} ${HarfBuzz_ICU_LIBRARY})
+ set(HarfBuzz_INCLUDE_DIRS ${HarfBuzz_INCLUDE_DIR} ${HarfBuzz_ICU_INCLUDE_DIR})
+endif ()
diff --git a/freetype/builds/cmake/iOS.cmake b/freetype/builds/cmake/iOS.cmake
index 6f46836a..258654d4 100644
--- a/freetype/builds/cmake/iOS.cmake
+++ b/freetype/builds/cmake/iOS.cmake
@@ -1,6 +1,6 @@
# iOS.cmake
#
-# Copyright (C) 2014-2020 by
+# Copyright (C) 2014-2021 by
# David Turner, Robert Wilhelm, and Werner Lemberg.
#
# Written by David Wimsey <david@wimsey.us>
diff --git a/freetype/builds/cmake/testbuild.sh b/freetype/builds/cmake/testbuild.sh
index cc67abd4..c6c63720 100755
--- a/freetype/builds/cmake/testbuild.sh
+++ b/freetype/builds/cmake/testbuild.sh
@@ -1,6 +1,6 @@
#!/bin/sh -e
-# Copyright (C) 2015-2020 by
+# Copyright (C) 2015-2021 by
# David Turner, Robert Wilhelm, and Werner Lemberg.
#
# This file is part of the FreeType project, and may only be used, modified,
diff --git a/freetype/builds/compiler/ansi-cc.mk b/freetype/builds/compiler/ansi-cc.mk
index 78b13a49..e73e6fca 100644
--- a/freetype/builds/compiler/ansi-cc.mk
+++ b/freetype/builds/compiler/ansi-cc.mk
@@ -3,7 +3,7 @@
#
-# Copyright (C) 1996-2020 by
+# Copyright (C) 1996-2021 by
# David Turner, Robert Wilhelm, and Werner Lemberg.
#
# This file is part of the FreeType project, and may only be used, modified,
@@ -59,7 +59,7 @@ T := -o$(space)
#
# These should concern: debug output, optimization & warnings.
#
-# Use the ANSIFLAGS variable to define the compiler flags used to enfore
+# Use the ANSIFLAGS variable to define the compiler flags used to enforce
# ANSI compliance.
#
CFLAGS ?= -c
@@ -68,7 +68,7 @@ CFLAGS ?= -c
#
# we assume the compiler is already strictly ANSI
#
-ANSIFLAGS :=
+ANSIFLAGS ?=
# Library linking
diff --git a/freetype/builds/compiler/bcc-dev.mk b/freetype/builds/compiler/bcc-dev.mk
index 5f6f161c..71804529 100644
--- a/freetype/builds/compiler/bcc-dev.mk
+++ b/freetype/builds/compiler/bcc-dev.mk
@@ -3,7 +3,7 @@
#
-# Copyright (C) 1996-2020 by
+# Copyright (C) 1996-2021 by
# David Turner, Robert Wilhelm, and Werner Lemberg.
#
# This file is part of the FreeType project, and may only be used, modified,
@@ -60,14 +60,14 @@ TE := -e
#
# These should concern: debug output, optimization & warnings.
#
-# Use the ANSIFLAGS variable to define the compiler flags used to enfore
+# Use the ANSIFLAGS variable to define the compiler flags used to enforce
# ANSI compliance.
#
CFLAGS ?= -q -c -y -d -v -Od -w-par -w-ccc -w-rch -w-pro -w-aus
# ANSIFLAGS: Put there the flags used to make your compiler ANSI-compliant.
#
-ANSIFLAGS := -A
+ANSIFLAGS ?= -A
# Library linking
diff --git a/freetype/builds/compiler/bcc.mk b/freetype/builds/compiler/bcc.mk
index f5e2e8a8..321db108 100644
--- a/freetype/builds/compiler/bcc.mk
+++ b/freetype/builds/compiler/bcc.mk
@@ -3,7 +3,7 @@
#
-# Copyright (C) 1996-2020 by
+# Copyright (C) 1996-2021 by
# David Turner, Robert Wilhelm, and Werner Lemberg.
#
# This file is part of the FreeType project, and may only be used, modified,
@@ -60,14 +60,14 @@ TE := -e
#
# These should concern: debug output, optimization & warnings.
#
-# Use the ANSIFLAGS variable to define the compiler flags used to enfore
+# Use the ANSIFLAGS variable to define the compiler flags used to enforce
# ANSI compliance.
#
CFLAGS ?= -c -q -y -d -v -Od -w-par -w-ccc -w-rch -w-pro -w-aus
# ANSIFLAGS: Put there the flags used to make your compiler ANSI-compliant.
#
-ANSIFLAGS := -A
+ANSIFLAGS ?= -A
# Library linking
diff --git a/freetype/builds/compiler/emx.mk b/freetype/builds/compiler/emx.mk
index bbb76049..b3b6047e 100644
--- a/freetype/builds/compiler/emx.mk
+++ b/freetype/builds/compiler/emx.mk
@@ -3,7 +3,7 @@
#
-# Copyright (C) 2003-2020 by
+# Copyright (C) 2003-2021 by
# David Turner, Robert Wilhelm, and Werner Lemberg.
#
# This file is part of the FreeType project, and may only be used, modified,
@@ -58,14 +58,14 @@ T := -o$(space)
#
# These should concern: debug output, optimization & warnings.
#
-# Use the ANSIFLAGS variable to define the compiler flags used to enfore
+# Use the ANSIFLAGS variable to define the compiler flags used to enforce
# ANSI compliance.
#
CFLAGS ?= -c -g -O6 -Wall
# ANSIFLAGS: Put there the flags used to make your compiler ANSI-compliant.
#
-ANSIFLAGS :=
+ANSIFLAGS ?=
# Library linking
diff --git a/freetype/builds/compiler/gcc-dev.mk b/freetype/builds/compiler/gcc-dev.mk
index 95b5f50d..f01192f7 100644
--- a/freetype/builds/compiler/gcc-dev.mk
+++ b/freetype/builds/compiler/gcc-dev.mk
@@ -3,7 +3,7 @@
#
-# Copyright (C) 1996-2020 by
+# Copyright (C) 1996-2021 by
# David Turner, Robert Wilhelm, and Werner Lemberg.
#
# This file is part of the FreeType project, and may only be used, modified,
@@ -59,7 +59,7 @@ T := -o$(space)
#
# These should concern: debug output, optimization & warnings.
#
-# Use the ANSIFLAGS variable to define the compiler flags used to enfore
+# Use the ANSIFLAGS variable to define the compiler flags used to enforce
# ANSI compliance.
#
ifndef CFLAGS
@@ -82,8 +82,9 @@ ifndef CFLAGS
endif
# ANSIFLAGS: Put there the flags used to make your compiler ANSI-compliant.
+# You can override this on the command line.
#
-ANSIFLAGS := -ansi -pedantic
+ANSIFLAGS ?= -std=c99 -pedantic
# Library linking
diff --git a/freetype/builds/compiler/gcc.mk b/freetype/builds/compiler/gcc.mk
index 63cd93b2..ede20b2f 100644
--- a/freetype/builds/compiler/gcc.mk
+++ b/freetype/builds/compiler/gcc.mk
@@ -3,7 +3,7 @@
#
-# Copyright (C) 1996-2020 by
+# Copyright (C) 1996-2021 by
# David Turner, Robert Wilhelm, and Werner Lemberg.
#
# This file is part of the FreeType project, and may only be used, modified,
@@ -58,14 +58,14 @@ T := -o$(space)
#
# These should concern: debug output, optimization & warnings.
#
-# Use the ANSIFLAGS variable to define the compiler flags used to enfore
+# Use the ANSIFLAGS variable to define the compiler flags used to enforce
# ANSI compliance.
#
CFLAGS ?= -c -g -O3 -Wall
# ANSIFLAGS: Put there the flags used to make your compiler ANSI-compliant.
#
-ANSIFLAGS := -ansi -pedantic
+ANSIFLAGS ?= -std=c99 -pedantic
# Library linking
diff --git a/freetype/builds/compiler/intelc.mk b/freetype/builds/compiler/intelc.mk
index b3c69b04..e5dcf90b 100644
--- a/freetype/builds/compiler/intelc.mk
+++ b/freetype/builds/compiler/intelc.mk
@@ -3,7 +3,7 @@
#
-# Copyright (C) 1996-2020 by
+# Copyright (C) 1996-2021 by
# David Turner, Robert Wilhelm, and Werner Lemberg.
#
# This file is part of the FreeType project, and may only be used, modified,
@@ -61,7 +61,7 @@ TE := /Fe
#
# These should concern: debug output, optimization & warnings.
#
-# Use the ANSIFLAGS variable to define the compiler flags used to enfore
+# Use the ANSIFLAGS variable to define the compiler flags used to enforce
# ANSI compliance.
#
# Note that the Intel C/C++ compiler version 4.5 complains about
@@ -74,7 +74,7 @@ CFLAGS ?= /nologo /c /Ox /G5 /W3 /Qwd32
# ANSIFLAGS: Put there the flags used to make your compiler ANSI-compliant.
#
-ANSIFLAGS := /Qansi_alias /Za
+ANSIFLAGS ?= /Qansi_alias /Za
# Library linking
#
diff --git a/freetype/builds/compiler/unix-lcc.mk b/freetype/builds/compiler/unix-lcc.mk
index 26f8e7b7..40322b4b 100644
--- a/freetype/builds/compiler/unix-lcc.mk
+++ b/freetype/builds/compiler/unix-lcc.mk
@@ -3,7 +3,7 @@
#
-# Copyright (C) 1996-2020 by
+# Copyright (C) 1996-2021 by
# David Turner, Robert Wilhelm, and Werner Lemberg.
#
# This file is part of the FreeType project, and may only be used, modified,
@@ -60,7 +60,7 @@ T := -o$(space)
#
# These should concern: debug output, optimization & warnings.
#
-# Use the ANSIFLAGS variable to define the compiler flags used to enfore
+# Use the ANSIFLAGS variable to define the compiler flags used to enforce
# ANSI compliance.
#
CFLAGS ?= -c -g
@@ -71,7 +71,7 @@ CFLAGS ?= -c -g
#
# the "-A" flag simply increments verbosity about non ANSI code
#
-ANSIFLAGS := -A
+ANSIFLAGS ?= -A
# library linking
diff --git a/freetype/builds/compiler/visualage.mk b/freetype/builds/compiler/visualage.mk
index 4a8c8ac1..ebc3e48c 100644
--- a/freetype/builds/compiler/visualage.mk
+++ b/freetype/builds/compiler/visualage.mk
@@ -3,7 +3,7 @@
#
-# Copyright (C) 1996-2020 by
+# Copyright (C) 1996-2021 by
# David Turner, Robert Wilhelm, and Werner Lemberg.
#
# This file is part of the FreeType project, and may only be used, modified,
diff --git a/freetype/builds/compiler/visualc.mk b/freetype/builds/compiler/visualc.mk
index a9cf71d8..dc6998ad 100644
--- a/freetype/builds/compiler/visualc.mk
+++ b/freetype/builds/compiler/visualc.mk
@@ -3,7 +3,7 @@
#
-# Copyright (C) 1996-2020 by
+# Copyright (C) 1996-2021 by
# David Turner, Robert Wilhelm, and Werner Lemberg.
#
# This file is part of the FreeType project, and may only be used, modified,
@@ -63,14 +63,14 @@ TE := /Fe
#
# These should concern: debug output, optimization & warnings.
#
-# Use the ANSIFLAGS variable to define the compiler flags used to enfore
+# Use the ANSIFLAGS variable to define the compiler flags used to enforce
# ANSI compliance.
#
CFLAGS ?= /nologo /c /Ox /W3 /WX
# ANSIFLAGS: Put there the flags used to make your compiler ANSI-compliant.
#
-ANSIFLAGS := /Za /D_CRT_SECURE_NO_DEPRECATE
+ANSIFLAGS ?= /Za /D_CRT_SECURE_NO_DEPRECATE
# Library linking
diff --git a/freetype/builds/compiler/watcom.mk b/freetype/builds/compiler/watcom.mk
index 43a9e066..c1d1b665 100644
--- a/freetype/builds/compiler/watcom.mk
+++ b/freetype/builds/compiler/watcom.mk
@@ -3,7 +3,7 @@
#
-# Copyright (C) 1996-2020 by
+# Copyright (C) 1996-2021 by
# David Turner, Robert Wilhelm, and Werner Lemberg.
#
# This file is part of the FreeType project, and may only be used, modified,
@@ -60,14 +60,14 @@ T := -FO=
#
# These should concern: debug output, optimization & warnings.
#
-# Use the ANSIFLAGS variable to define the compiler flags used to enfore
+# Use the ANSIFLAGS variable to define the compiler flags used to enforce
# ANSI compliance.
#
CFLAGS ?= -zq
# ANSIFLAGS: Put there the flags used to make your compiler ANSI-compliant.
#
-ANSIFLAGS := -za
+ANSIFLAGS ?= -za
# Library linking
diff --git a/freetype/builds/compiler/win-lcc.mk b/freetype/builds/compiler/win-lcc.mk
index 00d9d31d..27fbc303 100644
--- a/freetype/builds/compiler/win-lcc.mk
+++ b/freetype/builds/compiler/win-lcc.mk
@@ -3,7 +3,7 @@
#
-# Copyright (C) 1996-2020 by
+# Copyright (C) 1996-2021 by
# David Turner, Robert Wilhelm, and Werner Lemberg.
#
# This file is part of the FreeType project, and may only be used, modified,
@@ -60,7 +60,7 @@ T := -Fo
#
# These should concern: debug output, optimization & warnings.
#
-# Use the ANSIFLAGS variable to define the compiler flags used to enfore
+# Use the ANSIFLAGS variable to define the compiler flags used to enforce
# ANSI compliance.
#
CFLAGS ?= -c -g2 -O
@@ -69,7 +69,7 @@ CFLAGS ?= -c -g2 -O
#
# LCC is pure ANSI anyway!
#
-ANSIFLAGS :=
+ANSIFLAGS ?=
# library linking
diff --git a/freetype/builds/detect.mk b/freetype/builds/detect.mk
index 94627fc0..78e9e750 100644
--- a/freetype/builds/detect.mk
+++ b/freetype/builds/detect.mk
@@ -3,7 +3,7 @@
#
-# Copyright (C) 1996-2020 by
+# Copyright (C) 1996-2021 by
# David Turner, Robert Wilhelm, and Werner Lemberg.
#
# This file is part of the FreeType project, and may only be used, modified,
@@ -16,7 +16,7 @@
# This sub-Makefile is in charge of detecting the current platform. It sets
# the following variables:
#
-# BUILD_DIR The configuration and system-specific directory. Usually
+# PLATFORM_DIR The configuration and system-specific directory. Usually
# `builds/$(PLATFORM)' but can be different for custom builds
# of the library.
#
@@ -49,8 +49,8 @@ SEP := /
BUILD_CONFIG := $(TOP_DIR)/builds
# These two assignments must be delayed.
-BUILD_DIR = $(BUILD_CONFIG)/$(PLATFORM)
-CONFIG_RULES = $(BUILD_DIR)/$(CONFIG_FILE)
+PLATFORM_DIR = $(BUILD_CONFIG)/$(PLATFORM)
+CONFIG_RULES = $(PLATFORM_DIR)/$(CONFIG_FILE)
# We define the BACKSLASH variable to hold a single back-slash character.
# This is needed because a line like
@@ -113,7 +113,7 @@ std_setup:
$(info )
$(info $(empty) platform $(PLATFORM))
$(info $(empty) compiler $(CC))
- $(info $(empty) configuration directory $(subst /,$(SEP),$(BUILD_DIR)))
+ $(info $(empty) configuration directory $(subst /,$(SEP),$(PLATFORM_DIR)))
$(info $(empty) configuration rules $(subst /,$(SEP),$(CONFIG_RULES)))
$(info )
$(info If this does not correspond to your system or settings please remove the file)
diff --git a/freetype/builds/dos/detect.mk b/freetype/builds/dos/detect.mk
index f5987947..d95a2caa 100644
--- a/freetype/builds/dos/detect.mk
+++ b/freetype/builds/dos/detect.mk
@@ -3,7 +3,7 @@
#
-# Copyright (C) 1996-2020 by
+# Copyright (C) 1996-2021 by
# David Turner, Robert Wilhelm, and Werner Lemberg.
#
# This file is part of the FreeType project, and may only be used, modified,
diff --git a/freetype/builds/dos/dos-def.mk b/freetype/builds/dos/dos-def.mk
index 067d1d42..f7fbc4d6 100644
--- a/freetype/builds/dos/dos-def.mk
+++ b/freetype/builds/dos/dos-def.mk
@@ -3,7 +3,7 @@
#
-# Copyright (C) 1996-2020 by
+# Copyright (C) 1996-2021 by
# David Turner, Robert Wilhelm, and Werner Lemberg.
#
# This file is part of the FreeType project, and may only be used, modified,
@@ -13,11 +13,11 @@
# fully.
-DELETE := del
-CAT := type
-SEP := $(strip \ )
-BUILD_DIR := $(TOP_DIR)/builds/dos
-PLATFORM := dos
+DELETE := del
+CAT := type
+SEP := $(strip \ )
+PLATFORM_DIR := $(TOP_DIR)/builds/dos
+PLATFORM := dos
# This is used for `make refdoc' and `make refdoc-venv'
#
diff --git a/freetype/builds/dos/dos-emx.mk b/freetype/builds/dos/dos-emx.mk
index 51732083..dd994796 100644
--- a/freetype/builds/dos/dos-emx.mk
+++ b/freetype/builds/dos/dos-emx.mk
@@ -3,7 +3,7 @@
#
-# Copyright (C) 2003-2020 by
+# Copyright (C) 2003-2021 by
# David Turner, Robert Wilhelm, and Werner Lemberg.
#
# This file is part of the FreeType project, and may only be used, modified,
diff --git a/freetype/builds/dos/dos-gcc.mk b/freetype/builds/dos/dos-gcc.mk
index 638892db..9abdabea 100644
--- a/freetype/builds/dos/dos-gcc.mk
+++ b/freetype/builds/dos/dos-gcc.mk
@@ -3,7 +3,7 @@
#
-# Copyright (C) 1996-2020 by
+# Copyright (C) 1996-2021 by
# David Turner, Robert Wilhelm, and Werner Lemberg.
#
# This file is part of the FreeType project, and may only be used, modified,
diff --git a/freetype/builds/dos/dos-wat.mk b/freetype/builds/dos/dos-wat.mk
index 4e39d21a..7ab82afe 100644
--- a/freetype/builds/dos/dos-wat.mk
+++ b/freetype/builds/dos/dos-wat.mk
@@ -3,7 +3,7 @@
#
-# Copyright (C) 2003-2020 by
+# Copyright (C) 2003-2021 by
# David Turner, Robert Wilhelm, and Werner Lemberg.
#
# This file is part of the FreeType project, and may only be used, modified,
diff --git a/freetype/builds/exports.mk b/freetype/builds/exports.mk
index eba96687..67c7c993 100644
--- a/freetype/builds/exports.mk
+++ b/freetype/builds/exports.mk
@@ -3,7 +3,7 @@
#
-# Copyright (C) 2005-2020 by
+# Copyright (C) 2005-2021 by
# David Turner, Robert Wilhelm, and Werner Lemberg.
#
# This file is part of the FreeType project, and may only be used, modified,
diff --git a/freetype/builds/freetype.mk b/freetype/builds/freetype.mk
index 1d7eeb60..bae81455 100644
--- a/freetype/builds/freetype.mk
+++ b/freetype/builds/freetype.mk
@@ -3,7 +3,7 @@
#
-# Copyright (C) 1996-2020 by
+# Copyright (C) 1996-2021 by
# David Turner, Robert Wilhelm, and Werner Lemberg.
#
# This file is part of the FreeType project, and may only be used, modified,
@@ -20,8 +20,8 @@
# The following variables (set by other Makefile components, in the
# environment, or on the command line) are used:
#
-# BUILD_DIR The architecture dependent directory,
-# e.g. `$(TOP_DIR)/builds/unix'. Added to INCLUDES also.
+# PLATFORM_DIR The architecture-dependent directory,
+# e.g., `$(TOP_DIR)/builds/unix'. Added to INCLUDES also.
#
# OBJ_DIR The directory in which object files are created.
#
@@ -121,7 +121,7 @@ PROJECT_LIBRARY := $(LIB_DIR)/$(LIBRARY).$A
#
INCLUDES := $(subst /,$(COMPILER_SEP),$(OBJ_DIR) \
$(DEVEL_DIR) \
- $(BUILD_DIR) \
+ $(PLATFORM_DIR) \
$(TOP_DIR)/include)
INCLUDE_FLAGS := $(INCLUDES:%=$I%)
@@ -150,9 +150,9 @@ endif
#
# `CPPFLAGS' might be specified by the user in the environment.
#
-FT_CFLAGS = $(CPPFLAGS) \
- $(CFLAGS) \
- $DFT2_BUILD_LIBRARY
+FT_CFLAGS = $(CPPFLAGS) \
+ $(CFLAGS) \
+ $DFT2_BUILD_LIBRARY
FT_COMPILE := $(CC) $(ANSIFLAGS) $(INCLUDE_FLAGS) $(FT_CFLAGS)
@@ -175,16 +175,16 @@ OBJECTS_LIST :=
# changes, the whole library is recompiled.
#
ifneq ($(wildcard $(OBJ_DIR)/ftoption.h),)
- FTOPTION_H := $(OBJ_DIR)/ftoption.h
-else ifneq ($(wildcard $(BUILD_DIR)/ftoption.h),)
- FTOPTION_H := $(BUILD_DIR)/ftoption.h
+ FTOPTION_H := $(OBJ_DIR)/ftoption.h
+else ifneq ($(wildcard $(PLATFORM_DIR)/ftoption.h),)
+ FTOPTION_H := $(PLATFORM_DIR)/ftoption.h
endif
PUBLIC_H := $(wildcard $(PUBLIC_DIR)/*.h)
INTERNAL_H := $(wildcard $(INTERNAL_DIR)/*.h) \
$(wildcard $(SERVICES_DIR)/*.h)
CONFIG_H := $(wildcard $(CONFIG_DIR)/*.h) \
- $(wildcard $(BUILD_DIR)/config/*.h) \
+ $(wildcard $(PLATFORM_DIR)/config/*.h) \
$(FTMODULE_H) \
$(FTOPTION_H)
DEVEL_H := $(wildcard $(TOP_DIR)/devel/*.h)
@@ -220,6 +220,7 @@ $(FTDEBUG_OBJ): $(FTDEBUG_SRC) $(FREETYPE_H)
#
include $(SRC_DIR)/base/rules.mk
include $(patsubst %,$(SRC_DIR)/%/rules.mk,$(MODULES))
+include $(SRC_DIR)/dlg/rules.mk
# ftinit component
@@ -260,8 +261,8 @@ endif
# All FreeType library objects.
#
-OBJ_M := $(BASE_OBJ_M) $(BASE_EXT_OBJ) $(DRV_OBJS_M)
-OBJ_S := $(BASE_OBJ_S) $(BASE_EXT_OBJ) $(DRV_OBJS_S)
+OBJ_M := $(BASE_OBJ_M) $(BASE_EXT_OBJ) $(DRV_OBJS_M) $(DLG_OBJS_M)
+OBJ_S := $(BASE_OBJ_S) $(BASE_EXT_OBJ) $(DRV_OBJS_S) $(DLG_OBJS_S)
# The target `multi' on the Make command line indicates that we want to
diff --git a/freetype/builds/link_dos.mk b/freetype/builds/link_dos.mk
index c1ed1507..8716be51 100644
--- a/freetype/builds/link_dos.mk
+++ b/freetype/builds/link_dos.mk
@@ -3,7 +3,7 @@
#
-# Copyright (C) 1996-2020 by
+# Copyright (C) 1996-2021 by
# David Turner, Robert Wilhelm, and Werner Lemberg.
#
# This file is part of the FreeType project, and may only be used, modified,
diff --git a/freetype/builds/link_std.mk b/freetype/builds/link_std.mk
index 940e6748..03f77721 100644
--- a/freetype/builds/link_std.mk
+++ b/freetype/builds/link_std.mk
@@ -3,7 +3,7 @@
#
-# Copyright (C) 1996-2020 by
+# Copyright (C) 1996-2021 by
# David Turner, Robert Wilhelm, and Werner Lemberg.
#
# This file is part of the FreeType project, and may only be used, modified,
diff --git a/freetype/builds/mac/ftmac.c b/freetype/builds/mac/ftmac.c
index 2cb30468..cd3f4844 100644
--- a/freetype/builds/mac/ftmac.c
+++ b/freetype/builds/mac/ftmac.c
@@ -5,7 +5,7 @@
/* Mac FOND support. Written by just@letterror.com. */
/* Heavily Fixed by mpsuzuki, George Williams and Sean McBride */
/* */
-/* Copyright (C) 1996-2020 by */
+/* Copyright (C) 1996-2021 by */
/* Just van Rossum, David Turner, Robert Wilhelm, and Werner Lemberg. */
/* */
/* This file is part of the FreeType project, and may only be used, */
@@ -447,7 +447,7 @@ typedef short ResourceIndex;
stream->descriptor.pointer = NULL;
stream->size = 0;
- stream->base = 0;
+ stream->base = NULL;
}
@@ -939,7 +939,7 @@ typedef short ResourceIndex;
if ( lwfn_file_name[0] )
{
err = lookup_lwfn_by_fond( pathname, lwfn_file_name,
- buff, sizeof ( buff ) );
+ buff, sizeof ( buff ) );
if ( !err )
have_lwfn = 1;
}
@@ -1011,7 +1011,7 @@ typedef short ResourceIndex;
old_total_size = total_size;
}
- if ( FT_ALLOC( buffer, (FT_Long)total_size ) )
+ if ( FT_QALLOC( buffer, (FT_Long)total_size ) )
goto Error;
/* Second pass: append all POST data to the buffer, add PFB fields. */
@@ -1127,7 +1127,7 @@ typedef short ResourceIndex;
return FT_THROW( Invalid_Handle );
sfnt_size = (FT_ULong)GetHandleSize( sfnt );
- if ( FT_ALLOC( sfnt_data, (FT_Long)sfnt_size ) )
+ if ( FT_QALLOC( sfnt_data, (FT_Long)sfnt_size ) )
{
ReleaseResource( sfnt );
return error;
diff --git a/freetype/builds/meson/extract_freetype_version.py b/freetype/builds/meson/extract_freetype_version.py
index 15e87dbc..ab79fdb3 100644
--- a/freetype/builds/meson/extract_freetype_version.py
+++ b/freetype/builds/meson/extract_freetype_version.py
@@ -1,4 +1,14 @@
#!/usr/bin/env python
+#
+# Copyright (C) 2020-2021 by
+# David Turner, Robert Wilhelm, and Werner Lemberg.
+#
+# This file is part of the FreeType project, and may only be used, modified,
+# and distributed under the terms of the FreeType project license,
+# LICENSE.TXT. By continuing to use, modify, or distribute this file you
+# indicate that you have read the license and understand and accept it
+# fully.
+
"""Extract the FreeType version numbers from `<freetype/freetype.h>`.
This script parses the header to extract the version number defined there.
diff --git a/freetype/builds/meson/extract_libtool_version.py b/freetype/builds/meson/extract_libtool_version.py
index 0569481b..4527f11b 100644
--- a/freetype/builds/meson/extract_libtool_version.py
+++ b/freetype/builds/meson/extract_libtool_version.py
@@ -1,4 +1,14 @@
#!/usr/bin/env python
+#
+# Copyright (C) 2020-2021 by
+# David Turner, Robert Wilhelm, and Werner Lemberg.
+#
+# This file is part of the FreeType project, and may only be used, modified,
+# and distributed under the terms of the FreeType project license,
+# LICENSE.TXT. By continuing to use, modify, or distribute this file you
+# indicate that you have read the license and understand and accept it
+# fully.
+
"""Extract the libtool version from `configure.raw`.
This script parses the `configure.raw` file to extract the libtool version
diff --git a/freetype/builds/meson/generate_reference_docs.py b/freetype/builds/meson/generate_reference_docs.py
index 219017c9..15d9b066 100644
--- a/freetype/builds/meson/generate_reference_docs.py
+++ b/freetype/builds/meson/generate_reference_docs.py
@@ -1,4 +1,14 @@
#!/usr/bin/env python
+#
+# Copyright (C) 2020-2021 by
+# David Turner, Robert Wilhelm, and Werner Lemberg.
+#
+# This file is part of the FreeType project, and may only be used, modified,
+# and distributed under the terms of the FreeType project license,
+# LICENSE.TXT. By continuing to use, modify, or distribute this file you
+# indicate that you have read the license and understand and accept it
+# fully.
+
"""Generate FreeType reference documentation."""
from __future__ import print_function
diff --git a/freetype/builds/meson/parse_modules_cfg.py b/freetype/builds/meson/parse_modules_cfg.py
index e0f76056..aa6e9e17 100644
--- a/freetype/builds/meson/parse_modules_cfg.py
+++ b/freetype/builds/meson/parse_modules_cfg.py
@@ -1,4 +1,14 @@
#!/usr/bin/env python
+#
+# Copyright (C) 2020-2021 by
+# David Turner, Robert Wilhelm, and Werner Lemberg.
+#
+# This file is part of the FreeType project, and may only be used, modified,
+# and distributed under the terms of the FreeType project license,
+# LICENSE.TXT. By continuing to use, modify, or distribute this file you
+# indicate that you have read the license and understand and accept it
+# fully.
+
"""Parse modules.cfg and dump its output either as ftmodule.h or a list of
base extensions.
"""
diff --git a/freetype/builds/meson/process_ftoption_h.py b/freetype/builds/meson/process_ftoption_h.py
index b5f80c31..fe608878 100644
--- a/freetype/builds/meson/process_ftoption_h.py
+++ b/freetype/builds/meson/process_ftoption_h.py
@@ -1,4 +1,14 @@
-#!/usr/bin/python
+#!/usr/bin/env python
+#
+# Copyright (C) 2020-2021 by
+# David Turner, Robert Wilhelm, and Werner Lemberg.
+#
+# This file is part of the FreeType project, and may only be used, modified,
+# and distributed under the terms of the FreeType project license,
+# LICENSE.TXT. By continuing to use, modify, or distribute this file you
+# indicate that you have read the license and understand and accept it
+# fully.
+
"""Toggle settings in `ftoption.h` file based on command-line arguments.
This script takes an `ftoption.h` file as input and rewrites
@@ -82,7 +92,7 @@ def main():
line = "#define " + option_name
new_lines.append(line)
- result = "\n".join(new_lines)
+ result = "\n".join(new_lines) + "\n"
# Sanity check that all command-line options were actually processed.
cmdline_options = set(args.enable) | set(args.disable)
diff --git a/freetype/builds/modules.mk b/freetype/builds/modules.mk
index ae2e238f..33fccdf9 100644
--- a/freetype/builds/modules.mk
+++ b/freetype/builds/modules.mk
@@ -3,7 +3,7 @@
#
-# Copyright (C) 1996-2020 by
+# Copyright (C) 1996-2021 by
# David Turner, Robert Wilhelm, and Werner Lemberg.
#
# This file is part of the FreeType project, and may only be used, modified,
diff --git a/freetype/builds/os2/detect.mk b/freetype/builds/os2/detect.mk
index 659b6c4a..7b8962b1 100644
--- a/freetype/builds/os2/detect.mk
+++ b/freetype/builds/os2/detect.mk
@@ -3,7 +3,7 @@
#
-# Copyright (C) 1996-2020 by
+# Copyright (C) 1996-2021 by
# David Turner, Robert Wilhelm, and Werner Lemberg.
#
# This file is part of the FreeType project, and may only be used, modified,
diff --git a/freetype/builds/os2/os2-def.mk b/freetype/builds/os2/os2-def.mk
index b0976540..08aab957 100644
--- a/freetype/builds/os2/os2-def.mk
+++ b/freetype/builds/os2/os2-def.mk
@@ -3,7 +3,7 @@
#
-# Copyright (C) 1996-2020 by
+# Copyright (C) 1996-2021 by
# David Turner, Robert Wilhelm, and Werner Lemberg.
#
# This file is part of the FreeType project, and may only be used, modified,
@@ -13,11 +13,11 @@
# fully.
-DELETE := del
-CAT := type
-SEP := $(strip \ )
-BUILD_DIR := $(TOP_DIR)/builds/os2
-PLATFORM := os2
+DELETE := del
+CAT := type
+SEP := $(strip \ )
+PLATFORM_DIR := $(TOP_DIR)/builds/os2
+PLATFORM := os2
# This is used for `make refdoc' and `make refdoc-venv'
#
diff --git a/freetype/builds/os2/os2-dev.mk b/freetype/builds/os2/os2-dev.mk
index 8e2a4eb6..40591ffe 100644
--- a/freetype/builds/os2/os2-dev.mk
+++ b/freetype/builds/os2/os2-dev.mk
@@ -5,7 +5,7 @@
#
-# Copyright (C) 1996-2020 by
+# Copyright (C) 1996-2021 by
# David Turner, Robert Wilhelm, and Werner Lemberg.
#
# This file is part of the FreeType project, and may only be used, modified,
diff --git a/freetype/builds/os2/os2-gcc.mk b/freetype/builds/os2/os2-gcc.mk
index 2bd39ae5..854c46df 100644
--- a/freetype/builds/os2/os2-gcc.mk
+++ b/freetype/builds/os2/os2-gcc.mk
@@ -3,7 +3,7 @@
#
-# Copyright (C) 1996-2020 by
+# Copyright (C) 1996-2021 by
# David Turner, Robert Wilhelm, and Werner Lemberg.
#
# This file is part of the FreeType project, and may only be used, modified,
diff --git a/freetype/builds/symbian/bld.inf b/freetype/builds/symbian/bld.inf
index 9739da1c..b9d000b1 100644
--- a/freetype/builds/symbian/bld.inf
+++ b/freetype/builds/symbian/bld.inf
@@ -2,7 +2,7 @@
// FreeType 2 project for the symbian platform
//
-// Copyright (C) 2008-2020 by
+// Copyright (C) 2008-2021 by
// David Turner, Robert Wilhelm, and Werner Lemberg.
//
// This file is part of the FreeType project, and may only be used, modified,
diff --git a/freetype/builds/symbian/freetype.mmp b/freetype/builds/symbian/freetype.mmp
index 90fc6bb8..fa49157a 100644
--- a/freetype/builds/symbian/freetype.mmp
+++ b/freetype/builds/symbian/freetype.mmp
@@ -2,7 +2,7 @@
// FreeType 2 makefile for the symbian platform
//
-// Copyright (C) 2008-2020 by
+// Copyright (C) 2008-2021 by
// David Turner, Robert Wilhelm, and Werner Lemberg.
//
// This file is part of the FreeType project, and may only be used, modified,
diff --git a/freetype/builds/toplevel.mk b/freetype/builds/toplevel.mk
index 5de61c11..53b6d6fc 100644
--- a/freetype/builds/toplevel.mk
+++ b/freetype/builds/toplevel.mk
@@ -3,7 +3,7 @@
#
-# Copyright (C) 1996-2020 by
+# Copyright (C) 1996-2021 by
# David Turner, Robert Wilhelm, and Werner Lemberg.
#
# This file is part of the FreeType project, and may only be used, modified,
@@ -103,6 +103,7 @@ ifneq ($(findstring setup,$(MAKECMDGOALS)),)
check_platform := 1
endif
+
# Include the automatic host platform detection rules when we need to
# check the platform.
#
@@ -112,6 +113,17 @@ ifdef check_platform
include $(TOP_DIR)/builds/detect.mk
+ # For builds directly from the git repository we need to copy files
+ # from `subprojects/dlg' to `src/dlg' and `include/dlg'.
+ #
+ ifeq ($(wildcard $(TOP_DIR)/src/dlg/dlg.*),)
+ ifeq ($(wildcard $(TOP_DIR)/subprojects/dlg/*),)
+ copy_submodule: check_out_submodule
+ endif
+
+ setup: copy_submodule
+ endif
+
# This rule makes sense for Unix only to remove files created by a run of
# the configure script which hasn't been successful (so that no
# `config.mk' has been created). It uses the built-in $(RM) command of
@@ -154,6 +166,23 @@ else
endif # test check_platform
+.PHONY: check_out_submodule copy_submodule
+
+check_out_submodule:
+ $(info Checking out submodule in `subprojects/dlg')
+ git submodule init
+ git submodule update
+
+copy_submodule:
+ $(info Copying files from `subprojects/dlg' to `src/dlg' and `include/dlg')
+ ifeq ($(wildcard include/dlg),)
+ mkdir $(subst /,$(SEP),include/dlg)
+ endif
+ $(COPY) $(subst /,$(SEP),subprojects/dlg/include/dlg/output.h include/dlg)
+ $(COPY) $(subst /,$(SEP),subprojects/dlg/include/dlg/dlg.h include/dlg)
+ $(COPY) $(subst /,$(SEP),subprojects/dlg/src/dlg/dlg.c src/dlg)
+
+
# We always need the list of modules in ftmodule.h.
#
all setup: $(FTMODULE_H)
@@ -197,6 +226,7 @@ patch := $(firstword $(patch))
# else
version := $(major).$(minor).$(patch)
winversion := $(major)$(minor)$(patch)
+ version_tag := VER-$(major)-$(minor)-$(patch)
# endif
@@ -219,7 +249,10 @@ dist:
currdir=`pwd` ; \
for f in `find . -wholename '*/.git' -prune \
+ -o -name .gitattributes \
-o -name .gitignore \
+ -o -name .gitlab-ci.yml \
+ -o -name .gitmodules \
-o -name .mailmap \
-o -type d \
-o -print` ; do \
@@ -250,6 +283,10 @@ dist:
CONFIG_GUESS = ~/git/config/config.guess
CONFIG_SUB = ~/git/config/config.sub
+# We also use this repository to access the gnulib script that converts git
+# commit messages to a ChangeLog file.
+CHANGELOG_SCRIPT = ~/git/config/gitlog-to-changelog
+
# Don't say `make do-dist'. Always use `make dist' instead.
#
@@ -267,8 +304,20 @@ do-dist: distclean refdoc
cp $(CONFIG_GUESS) builds/unix
cp $(CONFIG_SUB) builds/unix
+ @# Generate `ChangeLog' file with commits since previous release.
+ $(CHANGELOG_SCRIPT) \
+ --format='%B%n' \
+ --no-cluster \
+ -- `git describe --tags \
+ --abbrev=0 \
+ $(version_tag)^`..$(version_tag) \
+ > ChangeLog
+
@# Remove intermediate files created by the `refdoc' target.
rm -rf docs/markdown
rm -f docs/mkdocs.yml
+ @# Remove more stuff related to git.
+ rm -rf subprojects
+
# EOF
diff --git a/freetype/builds/unix/aclocal.m4 b/freetype/builds/unix/aclocal.m4
index adad988e..96c1cc7f 100644
--- a/freetype/builds/unix/aclocal.m4
+++ b/freetype/builds/unix/aclocal.m4
@@ -1,6 +1,6 @@
-# generated automatically by aclocal 1.15.1 -*- Autoconf -*-
+# generated automatically by aclocal 1.16.5 -*- Autoconf -*-
-# Copyright (C) 1996-2017 Free Software Foundation, Inc.
+# Copyright (C) 1996-2021 Free Software Foundation, Inc.
# This file is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
@@ -8359,120 +8359,6 @@ _LT_DECL([to_tool_file_cmd], [lt_cv_to_tool_file_cmd],
[0], [convert $build files to toolchain format])dnl
])# _LT_PATH_CONVERSION_FUNCTIONS
-# longlong.m4 serial 17
-dnl Copyright (C) 1999-2007, 2009-2016 Free Software Foundation, Inc.
-dnl This file is free software; the Free Software Foundation
-dnl gives unlimited permission to copy and/or distribute it,
-dnl with or without modifications, as long as this notice is preserved.
-
-dnl From Paul Eggert.
-
-# Define HAVE_LONG_LONG_INT if 'long long int' works.
-# This fixes a bug in Autoconf 2.61, and can be faster
-# than what's in Autoconf 2.62 through 2.68.
-
-# Note: If the type 'long long int' exists but is only 32 bits large
-# (as on some very old compilers), HAVE_LONG_LONG_INT will not be
-# defined. In this case you can treat 'long long int' like 'long int'.
-
-AC_DEFUN([AC_TYPE_LONG_LONG_INT],
-[
- AC_REQUIRE([AC_TYPE_UNSIGNED_LONG_LONG_INT])
- AC_CACHE_CHECK([for long long int], [ac_cv_type_long_long_int],
- [ac_cv_type_long_long_int=yes
- if test "x${ac_cv_prog_cc_c99-no}" = xno; then
- ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
- if test $ac_cv_type_long_long_int = yes; then
- dnl Catch a bug in Tandem NonStop Kernel (OSS) cc -O circa 2004.
- dnl If cross compiling, assume the bug is not important, since
- dnl nobody cross compiles for this platform as far as we know.
- AC_RUN_IFELSE(
- [AC_LANG_PROGRAM(
- [[@%:@include <limits.h>
- @%:@ifndef LLONG_MAX
- @%:@ define HALF \
- (1LL << (sizeof (long long int) * CHAR_BIT - 2))
- @%:@ define LLONG_MAX (HALF - 1 + HALF)
- @%:@endif]],
- [[long long int n = 1;
- int i;
- for (i = 0; ; i++)
- {
- long long int m = n << i;
- if (m >> i != n)
- return 1;
- if (LLONG_MAX / 2 < m)
- break;
- }
- return 0;]])],
- [],
- [ac_cv_type_long_long_int=no],
- [:])
- fi
- fi])
- if test $ac_cv_type_long_long_int = yes; then
- AC_DEFINE([HAVE_LONG_LONG_INT], [1],
- [Define to 1 if the system has the type 'long long int'.])
- fi
-])
-
-# Define HAVE_UNSIGNED_LONG_LONG_INT if 'unsigned long long int' works.
-# This fixes a bug in Autoconf 2.61, and can be faster
-# than what's in Autoconf 2.62 through 2.68.
-
-# Note: If the type 'unsigned long long int' exists but is only 32 bits
-# large (as on some very old compilers), AC_TYPE_UNSIGNED_LONG_LONG_INT
-# will not be defined. In this case you can treat 'unsigned long long int'
-# like 'unsigned long int'.
-
-AC_DEFUN([AC_TYPE_UNSIGNED_LONG_LONG_INT],
-[
- AC_CACHE_CHECK([for unsigned long long int],
- [ac_cv_type_unsigned_long_long_int],
- [ac_cv_type_unsigned_long_long_int=yes
- if test "x${ac_cv_prog_cc_c99-no}" = xno; then
- AC_LINK_IFELSE(
- [_AC_TYPE_LONG_LONG_SNIPPET],
- [],
- [ac_cv_type_unsigned_long_long_int=no])
- fi])
- if test $ac_cv_type_unsigned_long_long_int = yes; then
- AC_DEFINE([HAVE_UNSIGNED_LONG_LONG_INT], [1],
- [Define to 1 if the system has the type 'unsigned long long int'.])
- fi
-])
-
-# Expands to a C program that can be used to test for simultaneous support
-# of 'long long' and 'unsigned long long'. We don't want to say that
-# 'long long' is available if 'unsigned long long' is not, or vice versa,
-# because too many programs rely on the symmetry between signed and unsigned
-# integer types (excluding 'bool').
-AC_DEFUN([_AC_TYPE_LONG_LONG_SNIPPET],
-[
- AC_LANG_PROGRAM(
- [[/* For now, do not test the preprocessor; as of 2007 there are too many
- implementations with broken preprocessors. Perhaps this can
- be revisited in 2012. In the meantime, code should not expect
- #if to work with literals wider than 32 bits. */
- /* Test literals. */
- long long int ll = 9223372036854775807ll;
- long long int nll = -9223372036854775807LL;
- unsigned long long int ull = 18446744073709551615ULL;
- /* Test constant expressions. */
- typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
- ? 1 : -1)];
- typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
- ? 1 : -1)];
- int i = 63;]],
- [[/* Test availability of runtime routines for shift and division. */
- long long int llmax = 9223372036854775807ll;
- unsigned long long int ullmax = 18446744073709551615ull;
- return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
- | (llmax / ll) | (llmax % ll)
- | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
- | (ullmax / ull) | (ullmax % ull));]])
-])
-
# Helper functions for option handling. -*- Autoconf -*-
#
# Copyright (C) 2004-2005, 2007-2009, 2011-2015 Free Software
@@ -9156,5 +9042,6 @@ m4_ifndef([_LT_PROG_CXX], [AC_DEFUN([_LT_PROG_CXX])])
m4_include([ax_compare_version.m4])
m4_include([ax_prog_python_version.m4])
+m4_include([ax_pthread.m4])
m4_include([ft-munmap.m4])
m4_include([pkg.m4])
diff --git a/freetype/builds/unix/ax_pthread.m4 b/freetype/builds/unix/ax_pthread.m4
new file mode 100644
index 00000000..e5858e50
--- /dev/null
+++ b/freetype/builds/unix/ax_pthread.m4
@@ -0,0 +1,522 @@
+# ===========================================================================
+# https://www.gnu.org/software/autoconf-archive/ax_pthread.html
+# ===========================================================================
+#
+# SYNOPSIS
+#
+# AX_PTHREAD([ACTION-IF-FOUND[, ACTION-IF-NOT-FOUND]])
+#
+# DESCRIPTION
+#
+# This macro figures out how to build C programs using POSIX threads. It
+# sets the PTHREAD_LIBS output variable to the threads library and linker
+# flags, and the PTHREAD_CFLAGS output variable to any special C compiler
+# flags that are needed. (The user can also force certain compiler
+# flags/libs to be tested by setting these environment variables.)
+#
+# Also sets PTHREAD_CC and PTHREAD_CXX to any special C compiler that is
+# needed for multi-threaded programs (defaults to the value of CC
+# respectively CXX otherwise). (This is necessary on e.g. AIX to use the
+# special cc_r/CC_r compiler alias.)
+#
+# NOTE: You are assumed to not only compile your program with these flags,
+# but also to link with them as well. For example, you might link with
+# $PTHREAD_CC $CFLAGS $PTHREAD_CFLAGS $LDFLAGS ... $PTHREAD_LIBS $LIBS
+# $PTHREAD_CXX $CXXFLAGS $PTHREAD_CFLAGS $LDFLAGS ... $PTHREAD_LIBS $LIBS
+#
+# If you are only building threaded programs, you may wish to use these
+# variables in your default LIBS, CFLAGS, and CC:
+#
+# LIBS="$PTHREAD_LIBS $LIBS"
+# CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
+# CXXFLAGS="$CXXFLAGS $PTHREAD_CFLAGS"
+# CC="$PTHREAD_CC"
+# CXX="$PTHREAD_CXX"
+#
+# In addition, if the PTHREAD_CREATE_JOINABLE thread-attribute constant
+# has a nonstandard name, this macro defines PTHREAD_CREATE_JOINABLE to
+# that name (e.g. PTHREAD_CREATE_UNDETACHED on AIX).
+#
+# Also HAVE_PTHREAD_PRIO_INHERIT is defined if pthread is found and the
+# PTHREAD_PRIO_INHERIT symbol is defined when compiling with
+# PTHREAD_CFLAGS.
+#
+# ACTION-IF-FOUND is a list of shell commands to run if a threads library
+# is found, and ACTION-IF-NOT-FOUND is a list of commands to run it if it
+# is not found. If ACTION-IF-FOUND is not specified, the default action
+# will define HAVE_PTHREAD.
+#
+# Please let the authors know if this macro fails on any platform, or if
+# you have any other suggestions or comments. This macro was based on work
+# by SGJ on autoconf scripts for FFTW (http://www.fftw.org/) (with help
+# from M. Frigo), as well as ac_pthread and hb_pthread macros posted by
+# Alejandro Forero Cuervo to the autoconf macro repository. We are also
+# grateful for the helpful feedback of numerous users.
+#
+# Updated for Autoconf 2.68 by Daniel Richard G.
+#
+# LICENSE
+#
+# Copyright (c) 2008 Steven G. Johnson <stevenj@alum.mit.edu>
+# Copyright (c) 2011 Daniel Richard G. <skunk@iSKUNK.ORG>
+# Copyright (c) 2019 Marc Stevens <marc.stevens@cwi.nl>
+#
+# This program is free software: you can redistribute it and/or modify it
+# under the terms of the GNU General Public License as published by the
+# Free Software Foundation, either version 3 of the License, or (at your
+# option) any later version.
+#
+# This program is distributed in the hope that it will be useful, but
+# WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
+# Public License for more details.
+#
+# You should have received a copy of the GNU General Public License along
+# with this program. If not, see <https://www.gnu.org/licenses/>.
+#
+# As a special exception, the respective Autoconf Macro's copyright owner
+# gives unlimited permission to copy, distribute and modify the configure
+# scripts that are the output of Autoconf when processing the Macro. You
+# need not follow the terms of the GNU General Public License when using
+# or distributing such scripts, even though portions of the text of the
+# Macro appear in them. The GNU General Public License (GPL) does govern
+# all other use of the material that constitutes the Autoconf Macro.
+#
+# This special exception to the GPL applies to versions of the Autoconf
+# Macro released by the Autoconf Archive. When you make and distribute a
+# modified version of the Autoconf Macro, you may extend this special
+# exception to the GPL to apply to your modified version as well.
+
+#serial 30
+
+AU_ALIAS([ACX_PTHREAD], [AX_PTHREAD])
+AC_DEFUN([AX_PTHREAD], [
+AC_REQUIRE([AC_CANONICAL_TARGET])
+AC_REQUIRE([AC_PROG_CC])
+AC_REQUIRE([AC_PROG_SED])
+AC_LANG_PUSH([C])
+ax_pthread_ok=no
+
+# We used to check for pthread.h first, but this fails if pthread.h
+# requires special compiler flags (e.g. on Tru64 or Sequent).
+# It gets checked for in the link test anyway.
+
+# First of all, check if the user has set any of the PTHREAD_LIBS,
+# etcetera environment variables, and if threads linking works using
+# them:
+if test "x$PTHREAD_CFLAGS$PTHREAD_LIBS" != "x"; then
+ ax_pthread_save_CC="$CC"
+ ax_pthread_save_CFLAGS="$CFLAGS"
+ ax_pthread_save_LIBS="$LIBS"
+ AS_IF([test "x$PTHREAD_CC" != "x"], [CC="$PTHREAD_CC"])
+ AS_IF([test "x$PTHREAD_CXX" != "x"], [CXX="$PTHREAD_CXX"])
+ CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
+ LIBS="$PTHREAD_LIBS $LIBS"
+ AC_MSG_CHECKING([for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS])
+ AC_LINK_IFELSE([AC_LANG_CALL([], [pthread_join])], [ax_pthread_ok=yes])
+ AC_MSG_RESULT([$ax_pthread_ok])
+ if test "x$ax_pthread_ok" = "xno"; then
+ PTHREAD_LIBS=""
+ PTHREAD_CFLAGS=""
+ fi
+ CC="$ax_pthread_save_CC"
+ CFLAGS="$ax_pthread_save_CFLAGS"
+ LIBS="$ax_pthread_save_LIBS"
+fi
+
+# We must check for the threads library under a number of different
+# names; the ordering is very important because some systems
+# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
+# libraries is broken (non-POSIX).
+
+# Create a list of thread flags to try. Items with a "," contain both
+# C compiler flags (before ",") and linker flags (after ","). Other items
+# starting with a "-" are C compiler flags, and remaining items are
+# library names, except for "none" which indicates that we try without
+# any flags at all, and "pthread-config" which is a program returning
+# the flags for the Pth emulation library.
+
+ax_pthread_flags="pthreads none -Kthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
+
+# The ordering *is* (sometimes) important. Some notes on the
+# individual items follow:
+
+# pthreads: AIX (must check this before -lpthread)
+# none: in case threads are in libc; should be tried before -Kthread and
+# other compiler flags to prevent continual compiler warnings
+# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
+# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads), Tru64
+# (Note: HP C rejects this with "bad form for `-t' option")
+# -pthreads: Solaris/gcc (Note: HP C also rejects)
+# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
+# doesn't hurt to check since this sometimes defines pthreads and
+# -D_REENTRANT too), HP C (must be checked before -lpthread, which
+# is present but should not be used directly; and before -mthreads,
+# because the compiler interprets this as "-mt" + "-hreads")
+# -mthreads: Mingw32/gcc, Lynx/gcc
+# pthread: Linux, etcetera
+# --thread-safe: KAI C++
+# pthread-config: use pthread-config program (for GNU Pth library)
+
+case $target_os in
+
+ freebsd*)
+
+ # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
+ # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
+
+ ax_pthread_flags="-kthread lthread $ax_pthread_flags"
+ ;;
+
+ hpux*)
+
+ # From the cc(1) man page: "[-mt] Sets various -D flags to enable
+ # multi-threading and also sets -lpthread."
+
+ ax_pthread_flags="-mt -pthread pthread $ax_pthread_flags"
+ ;;
+
+ openedition*)
+
+ # IBM z/OS requires a feature-test macro to be defined in order to
+ # enable POSIX threads at all, so give the user a hint if this is
+ # not set. (We don't define these ourselves, as they can affect
+ # other portions of the system API in unpredictable ways.)
+
+ AC_EGREP_CPP([AX_PTHREAD_ZOS_MISSING],
+ [
+# if !defined(_OPEN_THREADS) && !defined(_UNIX03_THREADS)
+ AX_PTHREAD_ZOS_MISSING
+# endif
+ ],
+ [AC_MSG_WARN([IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support.])])
+ ;;
+
+ solaris*)
+
+ # On Solaris (at least, for some versions), libc contains stubbed
+ # (non-functional) versions of the pthreads routines, so link-based
+ # tests will erroneously succeed. (N.B.: The stubs are missing
+ # pthread_cleanup_push, or rather a function called by this macro,
+ # so we could check for that, but who knows whether they'll stub
+ # that too in a future libc.) So we'll check first for the
+ # standard Solaris way of linking pthreads (-mt -lpthread).
+
+ ax_pthread_flags="-mt,-lpthread pthread $ax_pthread_flags"
+ ;;
+esac
+
+# Are we compiling with Clang?
+
+AC_CACHE_CHECK([whether $CC is Clang],
+ [ax_cv_PTHREAD_CLANG],
+ [ax_cv_PTHREAD_CLANG=no
+ # Note that Autoconf sets GCC=yes for Clang as well as GCC
+ if test "x$GCC" = "xyes"; then
+ AC_EGREP_CPP([AX_PTHREAD_CC_IS_CLANG],
+ [/* Note: Clang 2.7 lacks __clang_[a-z]+__ */
+# if defined(__clang__) && defined(__llvm__)
+ AX_PTHREAD_CC_IS_CLANG
+# endif
+ ],
+ [ax_cv_PTHREAD_CLANG=yes])
+ fi
+ ])
+ax_pthread_clang="$ax_cv_PTHREAD_CLANG"
+
+
+# GCC generally uses -pthread, or -pthreads on some platforms (e.g. SPARC)
+
+# Note that for GCC and Clang -pthread generally implies -lpthread,
+# except when -nostdlib is passed.
+# This is problematic using libtool to build C++ shared libraries with pthread:
+# [1] https://gcc.gnu.org/bugzilla/show_bug.cgi?id=25460
+# [2] https://bugzilla.redhat.com/show_bug.cgi?id=661333
+# [3] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=468555
+# To solve this, first try -pthread together with -lpthread for GCC
+
+AS_IF([test "x$GCC" = "xyes"],
+ [ax_pthread_flags="-pthread,-lpthread -pthread -pthreads $ax_pthread_flags"])
+
+# Clang takes -pthread (never supported any other flag), but we'll try with -lpthread first
+
+AS_IF([test "x$ax_pthread_clang" = "xyes"],
+ [ax_pthread_flags="-pthread,-lpthread -pthread"])
+
+
+# The presence of a feature test macro requesting re-entrant function
+# definitions is, on some systems, a strong hint that pthreads support is
+# correctly enabled
+
+case $target_os in
+ darwin* | hpux* | linux* | osf* | solaris*)
+ ax_pthread_check_macro="_REENTRANT"
+ ;;
+
+ aix*)
+ ax_pthread_check_macro="_THREAD_SAFE"
+ ;;
+
+ *)
+ ax_pthread_check_macro="--"
+ ;;
+esac
+AS_IF([test "x$ax_pthread_check_macro" = "x--"],
+ [ax_pthread_check_cond=0],
+ [ax_pthread_check_cond="!defined($ax_pthread_check_macro)"])
+
+
+if test "x$ax_pthread_ok" = "xno"; then
+for ax_pthread_try_flag in $ax_pthread_flags; do
+
+ case $ax_pthread_try_flag in
+ none)
+ AC_MSG_CHECKING([whether pthreads work without any flags])
+ ;;
+
+ *,*)
+ PTHREAD_CFLAGS=`echo $ax_pthread_try_flag | sed "s/^\(.*\),\(.*\)$/\1/"`
+ PTHREAD_LIBS=`echo $ax_pthread_try_flag | sed "s/^\(.*\),\(.*\)$/\2/"`
+ AC_MSG_CHECKING([whether pthreads work with "$PTHREAD_CFLAGS" and "$PTHREAD_LIBS"])
+ ;;
+
+ -*)
+ AC_MSG_CHECKING([whether pthreads work with $ax_pthread_try_flag])
+ PTHREAD_CFLAGS="$ax_pthread_try_flag"
+ ;;
+
+ pthread-config)
+ AC_CHECK_PROG([ax_pthread_config], [pthread-config], [yes], [no])
+ AS_IF([test "x$ax_pthread_config" = "xno"], [continue])
+ PTHREAD_CFLAGS="`pthread-config --cflags`"
+ PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
+ ;;
+
+ *)
+ AC_MSG_CHECKING([for the pthreads library -l$ax_pthread_try_flag])
+ PTHREAD_LIBS="-l$ax_pthread_try_flag"
+ ;;
+ esac
+
+ ax_pthread_save_CFLAGS="$CFLAGS"
+ ax_pthread_save_LIBS="$LIBS"
+ CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
+ LIBS="$PTHREAD_LIBS $LIBS"
+
+ # Check for various functions. We must include pthread.h,
+ # since some functions may be macros. (On the Sequent, we
+ # need a special flag -Kthread to make this header compile.)
+ # We check for pthread_join because it is in -lpthread on IRIX
+ # while pthread_create is in libc. We check for pthread_attr_init
+ # due to DEC craziness with -lpthreads. We check for
+ # pthread_cleanup_push because it is one of the few pthread
+ # functions on Solaris that doesn't have a non-functional libc stub.
+ # We try pthread_create on general principles.
+
+ AC_LINK_IFELSE([AC_LANG_PROGRAM([#include <pthread.h>
+# if $ax_pthread_check_cond
+# error "$ax_pthread_check_macro must be defined"
+# endif
+ static void *some_global = NULL;
+ static void routine(void *a)
+ {
+ /* To avoid any unused-parameter or
+ unused-but-set-parameter warning. */
+ some_global = a;
+ }
+ static void *start_routine(void *a) { return a; }],
+ [pthread_t th; pthread_attr_t attr;
+ pthread_create(&th, 0, start_routine, 0);
+ pthread_join(th, 0);
+ pthread_attr_init(&attr);
+ pthread_cleanup_push(routine, 0);
+ pthread_cleanup_pop(0) /* ; */])],
+ [ax_pthread_ok=yes],
+ [])
+
+ CFLAGS="$ax_pthread_save_CFLAGS"
+ LIBS="$ax_pthread_save_LIBS"
+
+ AC_MSG_RESULT([$ax_pthread_ok])
+ AS_IF([test "x$ax_pthread_ok" = "xyes"], [break])
+
+ PTHREAD_LIBS=""
+ PTHREAD_CFLAGS=""
+done
+fi
+
+
+# Clang needs special handling, because older versions handle the -pthread
+# option in a rather... idiosyncratic way
+
+if test "x$ax_pthread_clang" = "xyes"; then
+
+ # Clang takes -pthread; it has never supported any other flag
+
+ # (Note 1: This will need to be revisited if a system that Clang
+ # supports has POSIX threads in a separate library. This tends not
+ # to be the way of modern systems, but it's conceivable.)
+
+ # (Note 2: On some systems, notably Darwin, -pthread is not needed
+ # to get POSIX threads support; the API is always present and
+ # active. We could reasonably leave PTHREAD_CFLAGS empty. But
+ # -pthread does define _REENTRANT, and while the Darwin headers
+ # ignore this macro, third-party headers might not.)
+
+ # However, older versions of Clang make a point of warning the user
+ # that, in an invocation where only linking and no compilation is
+ # taking place, the -pthread option has no effect ("argument unused
+ # during compilation"). They expect -pthread to be passed in only
+ # when source code is being compiled.
+ #
+ # Problem is, this is at odds with the way Automake and most other
+ # C build frameworks function, which is that the same flags used in
+ # compilation (CFLAGS) are also used in linking. Many systems
+ # supported by AX_PTHREAD require exactly this for POSIX threads
+ # support, and in fact it is often not straightforward to specify a
+ # flag that is used only in the compilation phase and not in
+ # linking. Such a scenario is extremely rare in practice.
+ #
+ # Even though use of the -pthread flag in linking would only print
+ # a warning, this can be a nuisance for well-run software projects
+ # that build with -Werror. So if the active version of Clang has
+ # this misfeature, we search for an option to squash it.
+
+ AC_CACHE_CHECK([whether Clang needs flag to prevent "argument unused" warning when linking with -pthread],
+ [ax_cv_PTHREAD_CLANG_NO_WARN_FLAG],
+ [ax_cv_PTHREAD_CLANG_NO_WARN_FLAG=unknown
+ # Create an alternate version of $ac_link that compiles and
+ # links in two steps (.c -> .o, .o -> exe) instead of one
+ # (.c -> exe), because the warning occurs only in the second
+ # step
+ ax_pthread_save_ac_link="$ac_link"
+ ax_pthread_sed='s/conftest\.\$ac_ext/conftest.$ac_objext/g'
+ ax_pthread_link_step=`AS_ECHO(["$ac_link"]) | sed "$ax_pthread_sed"`
+ ax_pthread_2step_ac_link="($ac_compile) && (echo ==== >&5) && ($ax_pthread_link_step)"
+ ax_pthread_save_CFLAGS="$CFLAGS"
+ for ax_pthread_try in '' -Qunused-arguments -Wno-unused-command-line-argument unknown; do
+ AS_IF([test "x$ax_pthread_try" = "xunknown"], [break])
+ CFLAGS="-Werror -Wunknown-warning-option $ax_pthread_try -pthread $ax_pthread_save_CFLAGS"
+ ac_link="$ax_pthread_save_ac_link"
+ AC_LINK_IFELSE([AC_LANG_SOURCE([[int main(void){return 0;}]])],
+ [ac_link="$ax_pthread_2step_ac_link"
+ AC_LINK_IFELSE([AC_LANG_SOURCE([[int main(void){return 0;}]])],
+ [break])
+ ])
+ done
+ ac_link="$ax_pthread_save_ac_link"
+ CFLAGS="$ax_pthread_save_CFLAGS"
+ AS_IF([test "x$ax_pthread_try" = "x"], [ax_pthread_try=no])
+ ax_cv_PTHREAD_CLANG_NO_WARN_FLAG="$ax_pthread_try"
+ ])
+
+ case "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" in
+ no | unknown) ;;
+ *) PTHREAD_CFLAGS="$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG $PTHREAD_CFLAGS" ;;
+ esac
+
+fi # $ax_pthread_clang = yes
+
+
+
+# Various other checks:
+if test "x$ax_pthread_ok" = "xyes"; then
+ ax_pthread_save_CFLAGS="$CFLAGS"
+ ax_pthread_save_LIBS="$LIBS"
+ CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
+ LIBS="$PTHREAD_LIBS $LIBS"
+
+ # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
+ AC_CACHE_CHECK([for joinable pthread attribute],
+ [ax_cv_PTHREAD_JOINABLE_ATTR],
+ [ax_cv_PTHREAD_JOINABLE_ATTR=unknown
+ for ax_pthread_attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
+ AC_LINK_IFELSE([AC_LANG_PROGRAM([#include <pthread.h>],
+ [int attr = $ax_pthread_attr; return attr /* ; */])],
+ [ax_cv_PTHREAD_JOINABLE_ATTR=$ax_pthread_attr; break],
+ [])
+ done
+ ])
+ AS_IF([test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xunknown" && \
+ test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xPTHREAD_CREATE_JOINABLE" && \
+ test "x$ax_pthread_joinable_attr_defined" != "xyes"],
+ [AC_DEFINE_UNQUOTED([PTHREAD_CREATE_JOINABLE],
+ [$ax_cv_PTHREAD_JOINABLE_ATTR],
+ [Define to necessary symbol if this constant
+ uses a non-standard name on your system.])
+ ax_pthread_joinable_attr_defined=yes
+ ])
+
+ AC_CACHE_CHECK([whether more special flags are required for pthreads],
+ [ax_cv_PTHREAD_SPECIAL_FLAGS],
+ [ax_cv_PTHREAD_SPECIAL_FLAGS=no
+ case $target_os in
+ solaris*)
+ ax_cv_PTHREAD_SPECIAL_FLAGS="-D_POSIX_PTHREAD_SEMANTICS"
+ ;;
+ esac
+ ])
+ AS_IF([test "x$ax_cv_PTHREAD_SPECIAL_FLAGS" != "xno" && \
+ test "x$ax_pthread_special_flags_added" != "xyes"],
+ [PTHREAD_CFLAGS="$ax_cv_PTHREAD_SPECIAL_FLAGS $PTHREAD_CFLAGS"
+ ax_pthread_special_flags_added=yes])
+
+ AC_CACHE_CHECK([for PTHREAD_PRIO_INHERIT],
+ [ax_cv_PTHREAD_PRIO_INHERIT],
+ [AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <pthread.h>]],
+ [[int i = PTHREAD_PRIO_INHERIT;
+ return i;]])],
+ [ax_cv_PTHREAD_PRIO_INHERIT=yes],
+ [ax_cv_PTHREAD_PRIO_INHERIT=no])
+ ])
+ AS_IF([test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes" && \
+ test "x$ax_pthread_prio_inherit_defined" != "xyes"],
+ [AC_DEFINE([HAVE_PTHREAD_PRIO_INHERIT], [1], [Have PTHREAD_PRIO_INHERIT.])
+ ax_pthread_prio_inherit_defined=yes
+ ])
+
+ CFLAGS="$ax_pthread_save_CFLAGS"
+ LIBS="$ax_pthread_save_LIBS"
+
+ # More AIX lossage: compile with *_r variant
+ if test "x$GCC" != "xyes"; then
+ case $target_os in
+ aix*)
+ AS_CASE(["x/$CC"],
+ [x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6],
+ [#handle absolute path differently from PATH based program lookup
+ AS_CASE(["x$CC"],
+ [x/*],
+ [
+ AS_IF([AS_EXECUTABLE_P([${CC}_r])],[PTHREAD_CC="${CC}_r"])
+ AS_IF([test "x${CXX}" != "x"], [AS_IF([AS_EXECUTABLE_P([${CXX}_r])],[PTHREAD_CXX="${CXX}_r"])])
+ ],
+ [
+ AC_CHECK_PROGS([PTHREAD_CC],[${CC}_r],[$CC])
+ AS_IF([test "x${CXX}" != "x"], [AC_CHECK_PROGS([PTHREAD_CXX],[${CXX}_r],[$CXX])])
+ ]
+ )
+ ])
+ ;;
+ esac
+ fi
+fi
+
+test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
+test -n "$PTHREAD_CXX" || PTHREAD_CXX="$CXX"
+
+AC_SUBST([PTHREAD_LIBS])
+AC_SUBST([PTHREAD_CFLAGS])
+AC_SUBST([PTHREAD_CC])
+AC_SUBST([PTHREAD_CXX])
+
+# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
+if test "x$ax_pthread_ok" = "xyes"; then
+ ifelse([$1],,[AC_DEFINE([HAVE_PTHREAD],[1],[Define if you have POSIX threads libraries and header files.])],[$1])
+ :
+else
+ ax_pthread_ok=no
+ $2
+fi
+AC_LANG_POP
+])dnl AX_PTHREAD
diff --git a/freetype/builds/unix/configure.ac b/freetype/builds/unix/configure.ac
index f54b9463..d1b7f1a7 100644
--- a/freetype/builds/unix/configure.ac
+++ b/freetype/builds/unix/configure.ac
@@ -2,7 +2,7 @@
#
# Process this file with autoconf to produce a configure script.
#
-# Copyright (C) 2001-2020 by
+# Copyright (C) 2001-2021 by
# David Turner, Robert Wilhelm, and Werner Lemberg.
#
# This file is part of the FreeType project, and may only be used, modified,
@@ -11,13 +11,13 @@
# indicate that you have read the license and understand and accept it
# fully.
-AC_INIT([FreeType], [2.10.4], [freetype@nongnu.org], [freetype])
+AC_INIT([FreeType], [2.11.1], [freetype@nongnu.org], [freetype])
AC_CONFIG_SRCDIR([ftconfig.h.in])
# Don't forget to update `docs/VERSIONS.TXT'!
-version_info='23:4:17'
+version_info='24:1:18'
AC_SUBST([version_info])
ft_version=`echo $version_info | tr : .`
AC_SUBST([ft_version])
@@ -97,85 +97,12 @@ esac
# checks for header files
-AC_HEADER_STDC
AC_CHECK_HEADERS([fcntl.h unistd.h])
# checks for typedefs, structures, and compiler characteristics
AC_C_CONST
-AC_CHECK_SIZEOF([int])
-AC_CHECK_SIZEOF([long])
-AC_TYPE_LONG_LONG_INT
-
-
-# check whether cpp computation of size of int and long in ftconfig.h.in works
-
-AC_MSG_CHECKING([whether cpp computation of bit length in ftconfig.h.in works])
-orig_CPPFLAGS="${CPPFLAGS}"
-CPPFLAGS="-I${srcdir} -I. -I${srcdir}/../../include ${CPPFLAGS}"
-
-ac_clean_files=
-if test ! -f ft2build.h; then
- ac_clean_files=ft2build.h
- touch ft2build.h
-fi
-
-cat > conftest.c <<\_ACEOF
-#include <limits.h>
-#define FT_CONFIG_OPTIONS_H <freetype/config/ftoption.h>
-#define FT_CONFIG_STANDARD_LIBRARY_H <freetype/config/ftstdlib.h>
-#define FT_UINT_MAX UINT_MAX
-#define FT_ULONG_MAX ULONG_MAX
-#include "ftconfig.h.in"
-_ACEOF
-echo >> conftest.c "#if FT_SIZEOF_INT == "${ac_cv_sizeof_int}
-echo >> conftest.c "ac_cpp_ft_sizeof_int="${ac_cv_sizeof_int}
-echo >> conftest.c "#endif"
-echo >> conftest.c "#if FT_SIZEOF_LONG == "${ac_cv_sizeof_long}
-echo >> conftest.c "ac_cpp_ft_sizeof_long="${ac_cv_sizeof_long}
-echo >> conftest.c "#endif"
-
-${CPP} ${CPPFLAGS} conftest.c | ${GREP} ac_cpp_ft > conftest.sh
-eval `cat conftest.sh`
-rm -f conftest.* $ac_clean_files
-
-if test x != "x${ac_cpp_ft_sizeof_int}" \
- -a x != x"${ac_cpp_ft_sizeof_long}"; then
- unset ft_use_autoconf_sizeof_types
-else
- ft_use_autoconf_sizeof_types=yes
-fi
-
-AC_ARG_ENABLE(biarch-config,
-[ --enable-biarch-config install biarch ftconfig.h to support multiple
- architectures by single file], [], [])
-
-case :${ft_use_autoconf_sizeof_types}:${enable_biarch_config}: in
- :yes:yes:)
- AC_MSG_RESULT([broken but use it])
- unset ft_use_autoconf_sizeof_types
- ;;
- ::no:)
- AC_MSG_RESULT([works but ignore it])
- ft_use_autoconf_sizeof_types=yes
- ;;
- ::yes: | :::)
- AC_MSG_RESULT([yes])
- unset ft_use_autoconf_sizeof_types
- ;;
- *)
- AC_MSG_RESULT([no])
- ft_use_autoconf_sizeof_types=yes
- ;;
-esac
-
-if test x"${ft_use_autoconf_sizeof_types}" = xyes; then
- AC_DEFINE([FT_USE_AUTOCONF_SIZEOF_TYPES], [],
- [Define if autoconf sizeof types should be used.])
-fi
-
-CPPFLAGS="${orig_CPPFLAGS}"
AC_ARG_ENABLE([freetype-config],
AS_HELP_STRING([--enable-freetype-config], [install freetype-config]),
@@ -192,53 +119,59 @@ AC_SUBST(INSTALL_FT2_CONFIG, [$enable_freetype_config])
AC_SYS_LARGEFILE
# Here we check whether we can use our mmap file component.
+#
+# Note that `ftsystem.c` for Windows has its own mmap-like implementation
+# not covered by `AC_FUNC_MMAP` and/or `FT_UNMAP_PARAM`.
AC_ARG_ENABLE([mmap],
AS_HELP_STRING([--disable-mmap],
[do not check mmap() and do not use]),
[enable_mmap="no"], [enable_mmap="yes"])
if test "x${enable_mmap}" != "xno"; then
- AC_FUNC_MMAP
-fi
-if test "x${enable_mmap}" = "xno" \
- -o "$ac_cv_func_mmap_fixed_mapped" != "yes"; then
- FTSYS_SRC='$(BASE_DIR)/ftsystem.c'
-else
- FTSYS_SRC='$(BUILD_DIR)/ftsystem.c'
+ case "$host" in
+ *-*-mingw*)
+ AC_MSG_CHECKING([for working mmap])
+ AC_MSG_RESULT([using MapViewOfFile in Windows])
+ FTSYS_SRC='$(TOP_DIR)/builds/windows/ftsystem.c'
+ ;;
+ *)
+ AC_FUNC_MMAP
+ if test "$ac_cv_func_mmap_fixed_mapped" = "yes"; then
+ FTSYS_SRC='$(PLATFORM_DIR)/ftsystem.c'
- AC_CHECK_DECLS([munmap],
- [],
- [],
- [
+ AC_CHECK_DECLS([munmap],
+ [],
+ [],
+ [
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
#include <sys/mman.h>
- ])
+ ])
- FT_MUNMAP_PARAM
+ FT_MUNMAP_PARAM
+ fi
+ ;;
+ esac
+fi
+
+if test -z "$FTSYS_SRC"; then
+ FTSYS_SRC='$(BASE_DIR)/ftsystem.c'
fi
AC_SUBST([FTSYS_SRC])
+
AC_CHECK_FUNCS([memcpy memmove])
# get compiler flags right
#
-# We try to make the compiler work for C89-strict source. Even if the
-# C compiler is gcc and C89 flags are available, some system headers
-# (e.g., Android Bionic libc) are broken in C89 mode. We have to check
-# whether the compilation finishes successfully.
-#
-# Due to bugs in mingwrt 4.0.3 we don't use `-ansi' for MinGW.
-#
-# To avoid zillions of
-#
-# ISO C90 does not support 'long long'
-#
-# warnings, we disable `-pedantic' for gcc version < 4.6.
+# We try to make the compiler work for C99-strict source. Even if the
+# C compiler is gcc and C99 flags are available, some system headers
+# might be broken in C99 mode. We have to check whether compilation
+# finishes successfully.
#
if test "x$GCC" = xyes; then
XX_CFLAGS="-Wall"
@@ -250,23 +183,11 @@ if test "x$GCC" = xyes; then
XX_ANSIFLAGS="-pedantic"
;;
*)
- GCC_VERSION=`$CC -dumpversion`
- GCC_MAJOR=`echo "$GCC_VERSION" | sed 's/\([[^.]][[^.]]*\).*/\1/'`
- GCC_MINOR=`echo "$GCC_VERSION" | sed 's/[[^.]][[^.]]*.\([[^.]][[^.]]*\).*/\1/'`
-
- XX_PEDANTIC=-pedantic
- if test $GCC_MAJOR -lt 4; then
- XX_PEDANTIC=
- else
- if test $GCC_MAJOR -eq 4 -a $GCC_MINOR -lt 6; then
- XX_PEDANTIC=
- fi
- fi
-
XX_ANSIFLAGS=""
- for a in $XX_PEDANTIC -ansi
+
+ for a in "-pedantic" "-std=c99"
do
- AC_MSG_CHECKING([gcc compiler flag ${a} to assure ANSI C works correctly])
+ AC_MSG_CHECKING([$CC compiler flag ${a} to assure ANSI C99 works correctly])
orig_CFLAGS="${CFLAGS}"
CFLAGS="${CFLAGS} ${XX_ANSIFLAGS} ${a}"
AC_COMPILE_IFELSE([
@@ -508,7 +429,7 @@ AC_ARG_WITH([harfbuzz],
have_harfbuzz=no
if test x"$with_harfbuzz" = xyes -o x"$with_harfbuzz" = xauto; then
- harfbuzz_pkg="harfbuzz >= 1.8.0"
+ harfbuzz_pkg="harfbuzz >= 2.0.0"
have_harfbuzz_pkg=no
if test x"$HARFBUZZ_CFLAGS" = x -a x"$HARFBUZZ_LIBS" = x; then
@@ -1012,6 +933,10 @@ case "$CFLAGS" in
;;
esac
+# Check for pthreads
+
+AX_PTHREAD([have_pthread=yes], [have_pthread=no])
+
# Check for Python and docwriter
have_py3=no
@@ -1024,7 +949,7 @@ if test "x$PYTHON" != "xmissing"; then
if test "x$have_py3" = "xyes"; then
PIP="$PYTHON -m $PIP"
- AC_MSG_CHECKING([for \`docwriter' Python module])
+ AC_MSG_CHECKING([for `docwriter' Python module])
$PYTHON -m docwriter -h > /dev/null 2>&1
if test "x$?" = "x0"; then
have_docwriter=yes
@@ -1142,6 +1067,11 @@ else
ftoption_unset FT_CONFIG_OPTION_USE_BROTLI
fi
+if test "$have_pthread" != no; then
+ CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
+ LDFLAGS="$LDFLAGS $PTHREAD_CFLAGS $PTHREAD_LIBS"
+fi
+
AC_SUBST([CFLAGS])
AC_SUBST([LDFLAGS])
@@ -1176,16 +1106,27 @@ Library configuration:
libpng: $have_libpng
harfbuzz: $have_harfbuzz
brotli: $have_brotli
+ pthread: $have_pthread
])
# Warn if docwriter is not installed
if test $have_docwriter = no; then
AC_MSG_WARN([
- \`make refdoc' will fail since pip package \`docwriter' is not installed.
- To install, run \`$PIP install docwriter', or to use a Python
- virtual environment, run \`make refdoc-venv' (requires pip package
- \`virtualenv'). These operations require Python >= 3.5.
+ `make refdoc' will fail since pip package `docwriter' is not installed.
+ To install, run `$PIP install docwriter', or to use a Python
+ virtual environment, run `make refdoc-venv' (requires pip package
+ `virtualenv'). These operations require Python >= 3.5.
+ ])
+fi
+
+# Warn if pthread is not available
+
+if test $have_pthread = no; then
+ AC_MSG_WARN([
+ `FT_DEBUG_LOGGING' will not work since the `pthread' library is not
+ available. This warning can be safely ignored if you don't plan to use
+ this configuration macro.
])
fi
diff --git a/freetype/builds/unix/configure.raw b/freetype/builds/unix/configure.raw
index bc65e452..f326872c 100644
--- a/freetype/builds/unix/configure.raw
+++ b/freetype/builds/unix/configure.raw
@@ -2,7 +2,7 @@
#
# Process this file with autoconf to produce a configure script.
#
-# Copyright (C) 2001-2020 by
+# Copyright (C) 2001-2021 by
# David Turner, Robert Wilhelm, and Werner Lemberg.
#
# This file is part of the FreeType project, and may only be used, modified,
@@ -17,7 +17,7 @@ AC_CONFIG_SRCDIR([ftconfig.h.in])
# Don't forget to update `docs/VERSIONS.TXT'!
-version_info='23:4:17'
+version_info='24:1:18'
AC_SUBST([version_info])
ft_version=`echo $version_info | tr : .`
AC_SUBST([ft_version])
@@ -97,85 +97,12 @@ esac
# checks for header files
-AC_HEADER_STDC
AC_CHECK_HEADERS([fcntl.h unistd.h])
# checks for typedefs, structures, and compiler characteristics
AC_C_CONST
-AC_CHECK_SIZEOF([int])
-AC_CHECK_SIZEOF([long])
-AC_TYPE_LONG_LONG_INT
-
-
-# check whether cpp computation of size of int and long in ftconfig.h.in works
-
-AC_MSG_CHECKING([whether cpp computation of bit length in ftconfig.h.in works])
-orig_CPPFLAGS="${CPPFLAGS}"
-CPPFLAGS="-I${srcdir} -I. -I${srcdir}/../../include ${CPPFLAGS}"
-
-ac_clean_files=
-if test ! -f ft2build.h; then
- ac_clean_files=ft2build.h
- touch ft2build.h
-fi
-
-cat > conftest.c <<\_ACEOF
-#include <limits.h>
-#define FT_CONFIG_OPTIONS_H <freetype/config/ftoption.h>
-#define FT_CONFIG_STANDARD_LIBRARY_H <freetype/config/ftstdlib.h>
-#define FT_UINT_MAX UINT_MAX
-#define FT_ULONG_MAX ULONG_MAX
-#include "ftconfig.h.in"
-_ACEOF
-echo >> conftest.c "#if FT_SIZEOF_INT == "${ac_cv_sizeof_int}
-echo >> conftest.c "ac_cpp_ft_sizeof_int="${ac_cv_sizeof_int}
-echo >> conftest.c "#endif"
-echo >> conftest.c "#if FT_SIZEOF_LONG == "${ac_cv_sizeof_long}
-echo >> conftest.c "ac_cpp_ft_sizeof_long="${ac_cv_sizeof_long}
-echo >> conftest.c "#endif"
-
-${CPP} ${CPPFLAGS} conftest.c | ${GREP} ac_cpp_ft > conftest.sh
-eval `cat conftest.sh`
-rm -f conftest.* $ac_clean_files
-
-if test x != "x${ac_cpp_ft_sizeof_int}" \
- -a x != x"${ac_cpp_ft_sizeof_long}"; then
- unset ft_use_autoconf_sizeof_types
-else
- ft_use_autoconf_sizeof_types=yes
-fi
-
-AC_ARG_ENABLE(biarch-config,
-[ --enable-biarch-config install biarch ftconfig.h to support multiple
- architectures by single file], [], [])
-
-case :${ft_use_autoconf_sizeof_types}:${enable_biarch_config}: in
- :yes:yes:)
- AC_MSG_RESULT([broken but use it])
- unset ft_use_autoconf_sizeof_types
- ;;
- ::no:)
- AC_MSG_RESULT([works but ignore it])
- ft_use_autoconf_sizeof_types=yes
- ;;
- ::yes: | :::)
- AC_MSG_RESULT([yes])
- unset ft_use_autoconf_sizeof_types
- ;;
- *)
- AC_MSG_RESULT([no])
- ft_use_autoconf_sizeof_types=yes
- ;;
-esac
-
-if test x"${ft_use_autoconf_sizeof_types}" = xyes; then
- AC_DEFINE([FT_USE_AUTOCONF_SIZEOF_TYPES], [],
- [Define if autoconf sizeof types should be used.])
-fi
-
-CPPFLAGS="${orig_CPPFLAGS}"
AC_ARG_ENABLE([freetype-config],
AS_HELP_STRING([--enable-freetype-config], [install freetype-config]),
@@ -192,53 +119,59 @@ AC_SUBST(INSTALL_FT2_CONFIG, [$enable_freetype_config])
AC_SYS_LARGEFILE
# Here we check whether we can use our mmap file component.
+#
+# Note that `ftsystem.c` for Windows has its own mmap-like implementation
+# not covered by `AC_FUNC_MMAP` and/or `FT_UNMAP_PARAM`.
AC_ARG_ENABLE([mmap],
AS_HELP_STRING([--disable-mmap],
[do not check mmap() and do not use]),
[enable_mmap="no"], [enable_mmap="yes"])
if test "x${enable_mmap}" != "xno"; then
- AC_FUNC_MMAP
-fi
-if test "x${enable_mmap}" = "xno" \
- -o "$ac_cv_func_mmap_fixed_mapped" != "yes"; then
- FTSYS_SRC='$(BASE_DIR)/ftsystem.c'
-else
- FTSYS_SRC='$(BUILD_DIR)/ftsystem.c'
+ case "$host" in
+ *-*-mingw*)
+ AC_MSG_CHECKING([for working mmap])
+ AC_MSG_RESULT([using MapViewOfFile in Windows])
+ FTSYS_SRC='$(TOP_DIR)/builds/windows/ftsystem.c'
+ ;;
+ *)
+ AC_FUNC_MMAP
+ if test "$ac_cv_func_mmap_fixed_mapped" = "yes"; then
+ FTSYS_SRC='$(PLATFORM_DIR)/ftsystem.c'
- AC_CHECK_DECLS([munmap],
- [],
- [],
- [
+ AC_CHECK_DECLS([munmap],
+ [],
+ [],
+ [
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
#include <sys/mman.h>
- ])
+ ])
- FT_MUNMAP_PARAM
+ FT_MUNMAP_PARAM
+ fi
+ ;;
+ esac
+fi
+
+if test -z "$FTSYS_SRC"; then
+ FTSYS_SRC='$(BASE_DIR)/ftsystem.c'
fi
AC_SUBST([FTSYS_SRC])
+
AC_CHECK_FUNCS([memcpy memmove])
# get compiler flags right
#
-# We try to make the compiler work for C89-strict source. Even if the
-# C compiler is gcc and C89 flags are available, some system headers
-# (e.g., Android Bionic libc) are broken in C89 mode. We have to check
-# whether the compilation finishes successfully.
-#
-# Due to bugs in mingwrt 4.0.3 we don't use `-ansi' for MinGW.
-#
-# To avoid zillions of
-#
-# ISO C90 does not support 'long long'
-#
-# warnings, we disable `-pedantic' for gcc version < 4.6.
+# We try to make the compiler work for C99-strict source. Even if the
+# C compiler is gcc and C99 flags are available, some system headers
+# might be broken in C99 mode. We have to check whether compilation
+# finishes successfully.
#
if test "x$GCC" = xyes; then
XX_CFLAGS="-Wall"
@@ -250,23 +183,11 @@ if test "x$GCC" = xyes; then
XX_ANSIFLAGS="-pedantic"
;;
*)
- GCC_VERSION=`$CC -dumpversion`
- GCC_MAJOR=`echo "$GCC_VERSION" | sed 's/\([[^.]][[^.]]*\).*/\1/'`
- GCC_MINOR=`echo "$GCC_VERSION" | sed 's/[[^.]][[^.]]*.\([[^.]][[^.]]*\).*/\1/'`
-
- XX_PEDANTIC=-pedantic
- if test $GCC_MAJOR -lt 4; then
- XX_PEDANTIC=
- else
- if test $GCC_MAJOR -eq 4 -a $GCC_MINOR -lt 6; then
- XX_PEDANTIC=
- fi
- fi
-
XX_ANSIFLAGS=""
- for a in $XX_PEDANTIC -ansi
+
+ for a in "-pedantic" "-std=c99"
do
- AC_MSG_CHECKING([gcc compiler flag ${a} to assure ANSI C works correctly])
+ AC_MSG_CHECKING([$CC compiler flag ${a} to assure ANSI C99 works correctly])
orig_CFLAGS="${CFLAGS}"
CFLAGS="${CFLAGS} ${XX_ANSIFLAGS} ${a}"
AC_COMPILE_IFELSE([
@@ -508,7 +429,7 @@ AC_ARG_WITH([harfbuzz],
have_harfbuzz=no
if test x"$with_harfbuzz" = xyes -o x"$with_harfbuzz" = xauto; then
- harfbuzz_pkg="harfbuzz >= 1.8.0"
+ harfbuzz_pkg="harfbuzz >= 2.0.0"
have_harfbuzz_pkg=no
if test x"$HARFBUZZ_CFLAGS" = x -a x"$HARFBUZZ_LIBS" = x; then
@@ -1012,6 +933,10 @@ case "$CFLAGS" in
;;
esac
+# Check for pthreads
+
+AX_PTHREAD([have_pthread=yes], [have_pthread=no])
+
# Check for Python and docwriter
have_py3=no
@@ -1024,7 +949,7 @@ if test "x$PYTHON" != "xmissing"; then
if test "x$have_py3" = "xyes"; then
PIP="$PYTHON -m $PIP"
- AC_MSG_CHECKING([for \`docwriter' Python module])
+ AC_MSG_CHECKING([for `docwriter' Python module])
$PYTHON -m docwriter -h > /dev/null 2>&1
if test "x$?" = "x0"; then
have_docwriter=yes
@@ -1142,6 +1067,11 @@ else
ftoption_unset FT_CONFIG_OPTION_USE_BROTLI
fi
+if test "$have_pthread" != no; then
+ CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
+ LDFLAGS="$LDFLAGS $PTHREAD_CFLAGS $PTHREAD_LIBS"
+fi
+
AC_SUBST([CFLAGS])
AC_SUBST([LDFLAGS])
@@ -1176,16 +1106,27 @@ Library configuration:
libpng: $have_libpng
harfbuzz: $have_harfbuzz
brotli: $have_brotli
+ pthread: $have_pthread
])
# Warn if docwriter is not installed
if test $have_docwriter = no; then
AC_MSG_WARN([
- \`make refdoc' will fail since pip package \`docwriter' is not installed.
- To install, run \`$PIP install docwriter', or to use a Python
- virtual environment, run \`make refdoc-venv' (requires pip package
- \`virtualenv'). These operations require Python >= 3.5.
+ `make refdoc' will fail since pip package `docwriter' is not installed.
+ To install, run `$PIP install docwriter', or to use a Python
+ virtual environment, run `make refdoc-venv' (requires pip package
+ `virtualenv'). These operations require Python >= 3.5.
+ ])
+fi
+
+# Warn if pthread is not available
+
+if test $have_pthread = no; then
+ AC_MSG_WARN([
+ `FT_DEBUG_LOGGING' will not work since the `pthread' library is not
+ available. This warning can be safely ignored if you don't plan to use
+ this configuration macro.
])
fi
diff --git a/freetype/builds/unix/detect.mk b/freetype/builds/unix/detect.mk
index c7e8408d..862b4321 100644
--- a/freetype/builds/unix/detect.mk
+++ b/freetype/builds/unix/detect.mk
@@ -3,7 +3,7 @@
#
-# Copyright (C) 1996-2020 by
+# Copyright (C) 1996-2021 by
# David Turner, Robert Wilhelm, and Werner Lemberg.
#
# This file is part of the FreeType project, and may only be used, modified,
diff --git a/freetype/builds/unix/freetype-config.in b/freetype/builds/unix/freetype-config.in
index 3918ddb9..4edb092d 100644
--- a/freetype/builds/unix/freetype-config.in
+++ b/freetype/builds/unix/freetype-config.in
@@ -1,6 +1,6 @@
#! /bin/sh
#
-# Copyright (C) 2000-2020 by
+# Copyright (C) 2000-2021 by
# David Turner, Robert Wilhelm, and Werner Lemberg.
#
# This file is part of the FreeType project, and may only be used, modified,
diff --git a/freetype/builds/unix/freetype2.m4 b/freetype/builds/unix/freetype2.m4
index 207c263f..478a4221 100644
--- a/freetype/builds/unix/freetype2.m4
+++ b/freetype/builds/unix/freetype2.m4
@@ -1,7 +1,7 @@
# Configure paths for FreeType2
-# Marcelo Magallon 2001-10-26, based on gtk.m4 by Owen Taylor
+# Marcelo Magallon 2001-10-26, based on `gtk.m4` by Owen Taylor
#
-# Copyright (C) 2001-2020 by
+# Copyright (C) 2001-2021 by
# David Turner, Robert Wilhelm, and Werner Lemberg.
#
# This file is part of the FreeType project, and may only be used, modified,
@@ -15,32 +15,32 @@
# generated by Autoconf, under the same distribution terms as the rest of
# that program.
#
-# serial 5
+# serial 6
# AC_CHECK_FT2([MINIMUM-VERSION [, ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]]])
# Test for FreeType 2, and define FT2_CFLAGS and FT2_LIBS.
-# MINIMUM-VERSION is what libtool reports; the default is `7.0.1' (this is
+# MINIMUM-VERSION is what libtool reports; the default is '7.0.1' (this is
# FreeType 2.0.4).
#
+# To make this code work with older autoconf versions, `AS_HELP_STRING` is
+# not quoted.
+#
AC_DEFUN([AC_CHECK_FT2],
[# Get the cflags and libraries from the freetype-config script
#
AC_ARG_WITH([ft-prefix],
- dnl don't quote AS_HELP_STRING!
AS_HELP_STRING([--with-ft-prefix=PREFIX],
[Prefix where FreeType is installed (optional)]),
[ft_config_prefix="$withval"],
[ft_config_prefix=""])
AC_ARG_WITH([ft-exec-prefix],
- dnl don't quote AS_HELP_STRING!
AS_HELP_STRING([--with-ft-exec-prefix=PREFIX],
[Exec prefix where FreeType is installed (optional)]),
[ft_config_exec_prefix="$withval"],
[ft_config_exec_prefix=""])
AC_ARG_ENABLE([freetypetest],
- dnl don't quote AS_HELP_STRING!
AS_HELP_STRING([--disable-freetypetest],
[Do not try to compile and run a test FreeType program]),
[],
diff --git a/freetype/builds/unix/ft-munmap.m4 b/freetype/builds/unix/ft-munmap.m4
index a1aea2ba..275481ba 100644
--- a/freetype/builds/unix/ft-munmap.m4
+++ b/freetype/builds/unix/ft-munmap.m4
@@ -1,6 +1,6 @@
## FreeType specific autoconf tests
#
-# Copyright (C) 2002-2020 by
+# Copyright (C) 2002-2021 by
# David Turner, Robert Wilhelm, and Werner Lemberg.
#
# This file is part of the FreeType project, and may only be used, modified,
diff --git a/freetype/builds/unix/ftconfig.h.in b/freetype/builds/unix/ftconfig.h.in
index 00b5a822..b42fe42f 100644
--- a/freetype/builds/unix/ftconfig.h.in
+++ b/freetype/builds/unix/ftconfig.h.in
@@ -4,7 +4,7 @@
*
* UNIX-specific configuration file (specification only).
*
- * Copyright (C) 1996-2020 by
+ * Copyright (C) 1996-2021 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
@@ -42,16 +42,6 @@
#undef HAVE_UNISTD_H
#undef HAVE_FCNTL_H
-#undef FT_USE_AUTOCONF_SIZEOF_TYPES
-#ifdef FT_USE_AUTOCONF_SIZEOF_TYPES
-
-#undef SIZEOF_INT
-#undef SIZEOF_LONG
-#define FT_SIZEOF_INT SIZEOF_INT
-#define FT_SIZEOF_LONG SIZEOF_LONG
-
-#endif /* FT_USE_AUTOCONF_SIZEOF_TYPES */
-
#include <freetype/config/integer-types.h>
#include <freetype/config/public-macros.h>
#include <freetype/config/mac-support.h>
diff --git a/freetype/builds/unix/ftsystem.c b/freetype/builds/unix/ftsystem.c
index b4d71d40..81ed9285 100644
--- a/freetype/builds/unix/ftsystem.c
+++ b/freetype/builds/unix/ftsystem.c
@@ -1,19 +1,19 @@
-/***************************************************************************/
-/* */
-/* ftsystem.c */
-/* */
-/* Unix-specific FreeType low-level system interface (body). */
-/* */
-/* Copyright (C) 1996-2020 by */
-/* David Turner, Robert Wilhelm, and Werner Lemberg. */
-/* */
-/* This file is part of the FreeType project, and may only be used, */
-/* modified, and distributed under the terms of the FreeType project */
-/* license, LICENSE.TXT. By continuing to use, modify, or distribute */
-/* this file you indicate that you have read the license and */
-/* understand and accept it fully. */
-/* */
-/***************************************************************************/
+/****************************************************************************
+ *
+ * ftsystem.c
+ *
+ * Unix-specific FreeType low-level system interface (body).
+ *
+ * Copyright (C) 1996-2021 by
+ * David Turner, Robert Wilhelm, and Werner Lemberg.
+ *
+ * This file is part of the FreeType project, and may only be used,
+ * modified, and distributed under the terms of the FreeType project
+ * license, LICENSE.TXT. By continuing to use, modify, or distribute
+ * this file you indicate that you have read the license and
+ * understand and accept it fully.
+ *
+ */
#include <ft2build.h>
@@ -70,29 +70,40 @@
#include <errno.h>
- /*************************************************************************/
- /* */
- /* MEMORY MANAGEMENT INTERFACE */
- /* */
- /*************************************************************************/
-
-
- /*************************************************************************/
- /* */
- /* <Function> */
- /* ft_alloc */
- /* */
- /* <Description> */
- /* The memory allocation function. */
- /* */
- /* <Input> */
- /* memory :: A pointer to the memory object. */
- /* */
- /* size :: The requested size in bytes. */
- /* */
- /* <Return> */
- /* The address of newly allocated block. */
- /* */
+ /**************************************************************************
+ *
+ * MEMORY MANAGEMENT INTERFACE
+ *
+ */
+
+
+ /**************************************************************************
+ *
+ * It is not necessary to do any error checking for the
+ * allocation-related functions. This will be done by the higher level
+ * routines like ft_mem_alloc() or ft_mem_realloc().
+ *
+ */
+
+
+ /**************************************************************************
+ *
+ * @Function:
+ * ft_alloc
+ *
+ * @Description:
+ * The memory allocation function.
+ *
+ * @Input:
+ * memory ::
+ * A pointer to the memory object.
+ *
+ * size ::
+ * The requested size in bytes.
+ *
+ * @Return:
+ * The address of newly allocated block.
+ */
FT_CALLBACK_DEF( void* )
ft_alloc( FT_Memory memory,
long size )
@@ -103,26 +114,30 @@
}
- /*************************************************************************/
- /* */
- /* <Function> */
- /* ft_realloc */
- /* */
- /* <Description> */
- /* The memory reallocation function. */
- /* */
- /* <Input> */
- /* memory :: A pointer to the memory object. */
- /* */
- /* cur_size :: The current size of the allocated memory block. */
- /* */
- /* new_size :: The newly requested size in bytes. */
- /* */
- /* block :: The current address of the block in memory. */
- /* */
- /* <Return> */
- /* The address of the reallocated memory block. */
- /* */
+ /**************************************************************************
+ *
+ * @Function:
+ * ft_realloc
+ *
+ * @Description:
+ * The memory reallocation function.
+ *
+ * @Input:
+ * memory ::
+ * A pointer to the memory object.
+ *
+ * cur_size ::
+ * The current size of the allocated memory block.
+ *
+ * new_size ::
+ * The newly requested size in bytes.
+ *
+ * block ::
+ * The current address of the block in memory.
+ *
+ * @Return:
+ * The address of the reallocated memory block.
+ */
FT_CALLBACK_DEF( void* )
ft_realloc( FT_Memory memory,
long cur_size,
@@ -136,19 +151,21 @@
}
- /*************************************************************************/
- /* */
- /* <Function> */
- /* ft_free */
- /* */
- /* <Description> */
- /* The memory release function. */
- /* */
- /* <Input> */
- /* memory :: A pointer to the memory object. */
- /* */
- /* block :: The address of block in memory to be freed. */
- /* */
+ /**************************************************************************
+ *
+ * @Function:
+ * ft_free
+ *
+ * @Description:
+ * The memory release function.
+ *
+ * @Input:
+ * memory ::
+ * A pointer to the memory object.
+ *
+ * block ::
+ * The address of block in memory to be freed.
+ */
FT_CALLBACK_DEF( void )
ft_free( FT_Memory memory,
void* block )
@@ -159,19 +176,19 @@
}
- /*************************************************************************/
- /* */
- /* RESOURCE MANAGEMENT INTERFACE */
- /* */
- /*************************************************************************/
+ /**************************************************************************
+ *
+ * RESOURCE MANAGEMENT INTERFACE
+ *
+ */
- /*************************************************************************/
- /* */
- /* The macro FT_COMPONENT is used in trace mode. It is an implicit */
- /* parameter of the FT_TRACE() and FT_ERROR() macros, used to print/log */
- /* messages during execution. */
- /* */
+ /**************************************************************************
+ *
+ * The macro FT_COMPONENT is used in trace mode. It is an implicit
+ * parameter of the FT_TRACE() and FT_ERROR() macros, used to print/log
+ * messages during execution.
+ */
#undef FT_COMPONENT
#define FT_COMPONENT io
@@ -180,17 +197,17 @@
#define STREAM_FILE( stream ) ( (FILE*)stream->descriptor.pointer )
- /*************************************************************************/
- /* */
- /* <Function> */
- /* ft_close_stream_by_munmap */
- /* */
- /* <Description> */
- /* The function to close a stream which is opened by mmap. */
- /* */
- /* <Input> */
- /* stream :: A pointer to the stream object. */
- /* */
+ /**************************************************************************
+ *
+ * @Function:
+ * ft_close_stream_by_munmap
+ *
+ * @Description:
+ * The function to close a stream which is opened by mmap.
+ *
+ * @Input:
+ * stream :: A pointer to the stream object.
+ */
FT_CALLBACK_DEF( void )
ft_close_stream_by_munmap( FT_Stream stream )
{
@@ -198,29 +215,29 @@
stream->descriptor.pointer = NULL;
stream->size = 0;
- stream->base = 0;
+ stream->base = NULL;
}
- /*************************************************************************/
- /* */
- /* <Function> */
- /* ft_close_stream_by_free */
- /* */
- /* <Description> */
- /* The function to close a stream which is created by ft_alloc. */
- /* */
- /* <Input> */
- /* stream :: A pointer to the stream object. */
- /* */
+ /**************************************************************************
+ *
+ * @Function:
+ * ft_close_stream_by_free
+ *
+ * @Description:
+ * The function to close a stream which is created by ft_alloc.
+ *
+ * @Input:
+ * stream :: A pointer to the stream object.
+ */
FT_CALLBACK_DEF( void )
ft_close_stream_by_free( FT_Stream stream )
{
- ft_free( NULL, stream->descriptor.pointer );
+ ft_free( stream->memory, stream->descriptor.pointer );
stream->descriptor.pointer = NULL;
stream->size = 0;
- stream->base = 0;
+ stream->base = NULL;
}
@@ -296,8 +313,7 @@
file,
0 );
- /* on some RTOS, mmap might return 0 */
- if ( (long)stream->base != -1 && stream->base != NULL )
+ if ( stream->base != MAP_FAILED )
stream->close = ft_close_stream_by_munmap;
else
{
@@ -307,7 +323,7 @@
FT_ERROR(( "FT_Stream_Open:" ));
FT_ERROR(( " could not `mmap' file `%s'\n", filepathname ));
- stream->base = (unsigned char*)ft_alloc( NULL, stream->size );
+ stream->base = (unsigned char*)ft_alloc( stream->memory, stream->size );
if ( !stream->base )
{
@@ -348,7 +364,7 @@
stream->descriptor.pointer = stream->base;
stream->pathname.pointer = (char*)filepathname;
- stream->read = 0;
+ stream->read = NULL;
FT_TRACE1(( "FT_Stream_Open:" ));
FT_TRACE1(( " opened `%s' (%ld bytes) successfully\n",
@@ -357,7 +373,7 @@
return FT_Err_Ok;
Fail_Read:
- ft_free( NULL, stream->base );
+ ft_free( stream->memory, stream->base );
Fail_Map:
close( file );
@@ -392,7 +408,7 @@
memory = (FT_Memory)malloc( sizeof ( *memory ) );
if ( memory )
{
- memory->user = 0;
+ memory->user = NULL;
memory->alloc = ft_alloc;
memory->realloc = ft_realloc;
memory->free = ft_free;
diff --git a/freetype/builds/unix/install.mk b/freetype/builds/unix/install.mk
index aa251876..45b761d5 100644
--- a/freetype/builds/unix/install.mk
+++ b/freetype/builds/unix/install.mk
@@ -3,7 +3,7 @@
#
-# Copyright (C) 1996-2020 by
+# Copyright (C) 1996-2021 by
# David Turner, Robert Wilhelm, and Werner Lemberg.
#
# This file is part of the FreeType project, and may only be used, modified,
@@ -62,7 +62,7 @@ endif
$(DESTDIR)$(includedir)/freetype2/freetype/config/ftmodule.h
$(INSTALL_DATA) $(OBJ_BUILD)/ftoption.h \
$(DESTDIR)$(includedir)/freetype2/freetype/config/ftoption.h
- $(INSTALL_SCRIPT) -m 644 $(BUILD_DIR)/freetype2.m4 \
+ $(INSTALL_SCRIPT) -m 644 $(PLATFORM_DIR)/freetype2.m4 \
$(DESTDIR)$(datadir)/aclocal/freetype2.m4
$(INSTALL_SCRIPT) -m 644 $(OBJ_BUILD)/freetype2.pc \
$(DESTDIR)$(libdir)/pkgconfig/freetype2.pc
diff --git a/freetype/builds/unix/unix-cc.in b/freetype/builds/unix/unix-cc.in
index 30d097b2..89be4501 100644
--- a/freetype/builds/unix/unix-cc.in
+++ b/freetype/builds/unix/unix-cc.in
@@ -2,7 +2,7 @@
# FreeType 2 template for Unix-specific compiler definitions
#
-# Copyright (C) 1996-2020 by
+# Copyright (C) 1996-2021 by
# David Turner, Robert Wilhelm, and Werner Lemberg.
#
# This file is part of the FreeType project, and may only be used, modified,
@@ -14,7 +14,7 @@
CC := @CC@
COMPILER_SEP := $(SEP)
-FT_LIBTOOL_DIR ?= $(BUILD_DIR)
+FT_LIBTOOL_DIR ?= $(PLATFORM_DIR)
LIBTOOL := $(FT_LIBTOOL_DIR)/libtool
@@ -73,7 +73,7 @@ T := -o$(space)
#
# These should concern: debug output, optimization & warnings.
#
-# Use the ANSIFLAGS variable to define the compiler flags used to enfore
+# Use the ANSIFLAGS variable to define the compiler flags used to enforce
# ANSI compliance.
#
# We use our own FreeType configuration files overriding defaults.
diff --git a/freetype/builds/unix/unix-def.in b/freetype/builds/unix/unix-def.in
index 5e04f1c6..d0c758d0 100644
--- a/freetype/builds/unix/unix-def.in
+++ b/freetype/builds/unix/unix-def.in
@@ -3,7 +3,7 @@
#
-# Copyright (C) 1996-2020 by
+# Copyright (C) 1996-2021 by
# David Turner, Robert Wilhelm, and Werner Lemberg.
#
# This file is part of the FreeType project, and may only be used, modified,
@@ -27,7 +27,7 @@ PYTHON := @PYTHON@
BIN := bin
# this is used for `make distclean' and `make install'
-OBJ_BUILD ?= $(BUILD_DIR)
+OBJ_BUILD ?= $(PLATFORM_DIR)
# don't use `:=' here since the path stuff will be included after this file
#
diff --git a/freetype/builds/unix/unix-dev.mk b/freetype/builds/unix/unix-dev.mk
index 13525752..0b572a03 100644
--- a/freetype/builds/unix/unix-dev.mk
+++ b/freetype/builds/unix/unix-dev.mk
@@ -6,7 +6,7 @@
#
-# Copyright (C) 1996-2020 by
+# Copyright (C) 1996-2021 by
# David Turner, Robert Wilhelm, and Werner Lemberg.
#
# This file is part of the FreeType project, and may only be used, modified,
diff --git a/freetype/builds/unix/unix-lcc.mk b/freetype/builds/unix/unix-lcc.mk
index a6579db9..db57835a 100644
--- a/freetype/builds/unix/unix-lcc.mk
+++ b/freetype/builds/unix/unix-lcc.mk
@@ -6,7 +6,7 @@
#
-# Copyright (C) 1996-2020 by
+# Copyright (C) 1996-2021 by
# David Turner, Robert Wilhelm, and Werner Lemberg.
#
# This file is part of the FreeType project, and may only be used, modified,
diff --git a/freetype/builds/unix/unix.mk b/freetype/builds/unix/unix.mk
index e08727d9..262fafb7 100644
--- a/freetype/builds/unix/unix.mk
+++ b/freetype/builds/unix/unix.mk
@@ -3,7 +3,7 @@
#
-# Copyright (C) 1996-2020 by
+# Copyright (C) 1996-2021 by
# David Turner, Robert Wilhelm, and Werner Lemberg.
#
# This file is part of the FreeType project, and may only be used, modified,
@@ -13,8 +13,8 @@
# fully.
# We need these declarations here since unix-def.mk is a generated file.
-BUILD_DIR := $(TOP_DIR)/builds/unix
-PLATFORM := unix
+PLATFORM_DIR := $(TOP_DIR)/builds/unix
+PLATFORM := unix
have_mk := $(wildcard $(OBJ_DIR)/unix-def.mk)
ifneq ($(have_mk),)
@@ -22,8 +22,8 @@ ifneq ($(have_mk),)
include $(OBJ_DIR)/unix-def.mk
include $(OBJ_DIR)/unix-cc.mk
else
- include $(BUILD_DIR)/unix-def.mk
- include $(BUILD_DIR)/unix-cc.mk
+ include $(PLATFORM_DIR)/unix-def.mk
+ include $(PLATFORM_DIR)/unix-cc.mk
endif
ifdef BUILD_PROJECT
diff --git a/freetype/builds/unix/unixddef.mk b/freetype/builds/unix/unixddef.mk
index b8e32176..77c2a0df 100644
--- a/freetype/builds/unix/unixddef.mk
+++ b/freetype/builds/unix/unixddef.mk
@@ -4,7 +4,7 @@
#
-# Copyright (C) 1996-2020 by
+# Copyright (C) 1996-2021 by
# David Turner, Robert Wilhelm, and Werner Lemberg.
#
# This file is part of the FreeType project, and may only be used, modified,
@@ -27,9 +27,6 @@ SEP := /
#
BIN := bin
-# we use a special devel ftoption.h
-DEVEL_DIR := $(TOP_DIR)/devel
-
# library file name
#
diff --git a/freetype/builds/vms/ftconfig.h b/freetype/builds/vms/ftconfig.h
index 07e5f83d..2445b7d7 100644
--- a/freetype/builds/vms/ftconfig.h
+++ b/freetype/builds/vms/ftconfig.h
@@ -4,7 +4,7 @@
*
* VMS-specific configuration file (specification only).
*
- * Copyright (C) 1996-2020 by
+ * Copyright (C) 1996-2021 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
diff --git a/freetype/builds/vms/ftsystem.c b/freetype/builds/vms/ftsystem.c
index 177481ab..31b08708 100644
--- a/freetype/builds/vms/ftsystem.c
+++ b/freetype/builds/vms/ftsystem.c
@@ -4,7 +4,7 @@
/* */
/* VMS-specific FreeType low-level system interface (body). */
/* */
-/* Copyright (C) 1996-2020 by */
+/* Copyright (C) 1996-2021 by */
/* David Turner, Robert Wilhelm, and Werner Lemberg. */
/* */
/* This file is part of the FreeType project, and may only be used, */
@@ -197,7 +197,7 @@
stream->descriptor.pointer = NULL;
stream->size = 0;
- stream->base = 0;
+ stream->base = NULL;
}
@@ -246,7 +246,7 @@
file,
0 );
- if ( (long)stream->base == -1 )
+ if ( stream->base == MAP_FAILED )
{
FT_ERROR(( "FT_Stream_Open:" ));
FT_ERROR(( " could not `mmap' file `%s'\n", filepathname ));
@@ -259,7 +259,7 @@
stream->pathname.pointer = (char*)filepathname;
stream->close = ft_close_stream;
- stream->read = 0;
+ stream->read = NULL;
FT_TRACE1(( "FT_Stream_Open:" ));
FT_TRACE1(( " opened `%s' (%d bytes) successfully\n",
@@ -300,7 +300,7 @@
memory = (FT_Memory)malloc( sizeof ( *memory ) );
if ( memory )
{
- memory->user = 0;
+ memory->user = NULL;
memory->alloc = ft_alloc;
memory->realloc = ft_realloc;
memory->free = ft_free;
diff --git a/freetype/builds/wince/ftdebug.c b/freetype/builds/wince/ftdebug.c
index 734c4f0a..9e177766 100644
--- a/freetype/builds/wince/ftdebug.c
+++ b/freetype/builds/wince/ftdebug.c
@@ -4,7 +4,7 @@
*
* Debugging and logging component for WinCE (body).
*
- * Copyright (C) 1996-2020 by
+ * Copyright (C) 1996-2021 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
@@ -230,7 +230,7 @@
/* const char* ft2_debug = getenv( "FT2_DEBUG" ); */
- const char* ft2_debug = 0;
+ const char* ft2_debug = NULL;
if ( ft2_debug )
diff --git a/freetype/builds/wince/vc2005-ce/index.html b/freetype/builds/wince/vc2005-ce/index.html
index 6936a890..3e42cf99 100644
--- a/freetype/builds/wince/vc2005-ce/index.html
+++ b/freetype/builds/wince/vc2005-ce/index.html
@@ -21,7 +21,7 @@ the following targets:
<li>PPC/SP WM6 (Windows Mobile 6)</li>
</ul>
-It compiles the following libraries from the FreeType 2.10.4 sources:</p>
+It compiles the following libraries from the FreeType 2.11.1 sources:</p>
<ul>
<pre>
diff --git a/freetype/builds/wince/vc2008-ce/index.html b/freetype/builds/wince/vc2008-ce/index.html
index ee385af8..645675c7 100644
--- a/freetype/builds/wince/vc2008-ce/index.html
+++ b/freetype/builds/wince/vc2008-ce/index.html
@@ -21,7 +21,7 @@ the following targets:
<li>PPC/SP WM6 (Windows Mobile 6)</li>
</ul>
-It compiles the following libraries from the FreeType 2.10.4 sources:</p>
+It compiles the following libraries from the FreeType 2.11.1 sources:</p>
<ul>
<pre>
diff --git a/freetype/builds/windows/detect.mk b/freetype/builds/windows/detect.mk
index 303dc8b9..3eef47aa 100644
--- a/freetype/builds/windows/detect.mk
+++ b/freetype/builds/windows/detect.mk
@@ -3,7 +3,7 @@
#
-# Copyright (C) 1996-2020 by
+# Copyright (C) 1996-2021 by
# David Turner, Robert Wilhelm, and Werner Lemberg.
#
# This file is part of the FreeType project, and may only be used, modified,
@@ -81,9 +81,9 @@ ifeq ($(PLATFORM),windows)
# (2004-11-11), and then in the devel mailing list (2004-11-20 to -23).
#
ifeq ($(OS),Windows_NT)
- COPY := cmd.exe /c copy
+ COPY := >nul cmd.exe /c copy
else
- COPY := copy
+ COPY := >nul copy
endif # test NT
diff --git a/freetype/builds/windows/ftdebug.c b/freetype/builds/windows/ftdebug.c
index d5894900..94c22da7 100644
--- a/freetype/builds/windows/ftdebug.c
+++ b/freetype/builds/windows/ftdebug.c
@@ -4,7 +4,7 @@
*
* Debugging and logging component for Win32 (body).
*
- * Copyright (C) 1996-2020 by
+ * Copyright (C) 1996-2021 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
@@ -42,33 +42,108 @@
#include <freetype/freetype.h>
+#include <freetype/ftlogging.h>
#include <freetype/internal/ftdebug.h>
+#include <freetype/internal/ftobjs.h>
-#ifdef FT_DEBUG_LEVEL_ERROR
+#ifdef FT_DEBUG_LOGGING
-#include <stdarg.h>
-#include <stdlib.h>
-#include <string.h>
+ /**************************************************************************
+ *
+ * Variables used to control logging.
+ *
+ * 1. `ft_default_trace_level` stores the value of trace levels, which are
+ * provided to FreeType using the `FT2_DEBUG` environment variable.
+ *
+ * 2. `ft_fileptr` stores the `FILE*` handle.
+ *
+ * 3. `ft_component` is a string that holds the name of `FT_COMPONENT`.
+ *
+ * 4. The flag `ft_component_flag` prints the name of `FT_COMPONENT` along
+ * with the actual log message if set to true.
+ *
+ * 5. The flag `ft_timestamp_flag` prints time along with the actual log
+ * message if set to ture.
+ *
+ * 6. `ft_have_newline_char` is used to differentiate between a log
+ * message with and without a trailing newline character.
+ *
+ * 7. `ft_custom_trace_level` stores the custom trace level value, which
+ * is provided by the user at run-time.
+ *
+ * We use `static` to avoid 'unused variable' warnings.
+ *
+ */
+ static const char* ft_default_trace_level = NULL;
+ static FILE* ft_fileptr = NULL;
+ static const char* ft_component = NULL;
+ static FT_Bool ft_component_flag = FALSE;
+ static FT_Bool ft_timestamp_flag = FALSE;
+ static FT_Bool ft_have_newline_char = TRUE;
+ static const char* ft_custom_trace_level = NULL;
+ /* declared in ftdebug.h */
+
+ dlg_handler ft_default_log_handler = NULL;
+ FT_Custom_Log_Handler custom_output_handler = NULL;
+
+#endif /* FT_DEBUG_LOGGING */
+
+
+#ifdef FT_DEBUG_LEVEL_ERROR
+
+#define WIN32_LEAN_AND_MEAN
#include <windows.h>
+#ifdef _WIN32_WCE
+
+ FT_LOACAL_DEF( void )
+ OutputDebugStringA( LPCSTR lpOutputString )
+ {
+ int len;
+ LPWSTR lpOutputStringW;
+
+
+ /* allocate memory space for converted string */
+ len = MultiByteToWideChar( CP_ACP, MB_ERR_INVALID_CHARS,
+ lpOutputString, -1, NULL, 0 );
+
+ lpOutputStringW = (LPWSTR)_alloca( len * sizeof ( WCHAR ) );
+
+ if ( !len || !lpOutputStringW )
+ return;
+
+ /* now it is safe to do the translation */
+ MultiByteToWideChar( CP_ACP, MB_ERR_INVALID_CHARS,
+ lpOutputString, -1, lpOutputStringW, len );
+
+ OutputDebugStringW( lpOutputStringW );
+ }
+
+#endif /* _WIN32_WCE */
+
+
/* documentation is in ftdebug.h */
FT_BASE_DEF( void )
FT_Message( const char* fmt,
... )
{
- static char buf[8192];
- va_list ap;
+ va_list ap;
va_start( ap, fmt );
vfprintf( stderr, fmt, ap );
- /* send the string to the debugger as well */
- vsprintf( buf, fmt, ap );
- OutputDebugStringA( buf );
+ if ( IsDebuggerPresent() )
+ {
+ static char buf[1024];
+
+
+ vsnprintf( buf, sizeof buf, fmt, ap );
+ OutputDebugStringA( buf );
+ }
va_end( ap );
}
@@ -79,13 +154,19 @@
FT_Panic( const char* fmt,
... )
{
- static char buf[8192];
- va_list ap;
+ va_list ap;
va_start( ap, fmt );
- vsprintf( buf, fmt, ap );
- OutputDebugStringA( buf );
+ vfprintf( stderr, fmt, ap );
+ if ( IsDebuggerPresent() )
+ {
+ static char buf[1024];
+
+
+ vsnprintf( buf, sizeof buf, fmt, ap );
+ OutputDebugStringA( buf );
+ }
va_end( ap );
exit( EXIT_FAILURE );
@@ -207,9 +288,18 @@
FT_BASE_DEF( void )
ft_debug_init( void )
{
- const char* ft2_debug = getenv( "FT2_DEBUG" );
+ const char* ft2_debug = NULL;
+#ifdef FT_DEBUG_LOGGING
+ if ( ft_custom_trace_level != NULL )
+ ft2_debug = ft_custom_trace_level;
+ else
+ ft2_debug = ft_default_trace_level;
+#else
+ ft2_debug = ft_getenv( "FT2_DEBUG" );
+#endif
+
if ( ft2_debug )
{
const char* p = ft2_debug;
@@ -222,6 +312,49 @@
if ( *p == ' ' || *p == '\t' || *p == ',' || *p == ';' || *p == '=' )
continue;
+#ifdef FT_DEBUG_LOGGING
+
+ /* check extra arguments for logging */
+ if ( *p == '-' )
+ {
+ const char* r = ++p;
+
+
+ if ( *r == 'v' )
+ {
+ const char* s = ++r;
+
+
+ ft_component_flag = TRUE;
+
+ if ( *s == 't' )
+ {
+ ft_timestamp_flag = TRUE;
+ p++;
+ }
+
+ p++;
+ }
+
+ else if ( *r == 't' )
+ {
+ const char* s = ++r;
+
+
+ ft_timestamp_flag = TRUE;
+
+ if ( *s == 'v' )
+ {
+ ft_component_flag = TRUE;
+ p++;
+ }
+
+ p++;
+ }
+ }
+
+#endif /* FT_DEBUG_LOGGING */
+
/* read toggle name, followed by ':' */
q = p;
while ( *p && *p != ':' )
@@ -323,8 +456,237 @@
/* nothing */
}
-
#endif /* !FT_DEBUG_LEVEL_TRACE */
+#ifdef FT_DEBUG_LOGGING
+
+ /**************************************************************************
+ *
+ * Initialize and de-initialize 'dlg' library.
+ *
+ */
+
+ FT_BASE_DEF( void )
+ ft_logging_init( void )
+ {
+ ft_default_log_handler = ft_log_handler;
+ ft_default_trace_level = ft_getenv( "FT2_DEBUG" );
+
+ if ( ft_getenv( "FT_LOGGING_FILE" ) )
+ ft_fileptr = ft_fopen( ft_getenv( "FT_LOGGING_FILE" ), "w" );
+ else
+ ft_fileptr = stderr;
+
+ ft_debug_init();
+
+ /* Set the default output handler for 'dlg'. */
+ dlg_set_handler( ft_default_log_handler, NULL );
+ }
+
+
+ FT_BASE_DEF( void )
+ ft_logging_deinit( void )
+ {
+ if ( ft_fileptr != stderr )
+ ft_fclose( ft_fileptr );
+ }
+
+
+ /**************************************************************************
+ *
+ * An output log handler for FreeType.
+ *
+ */
+ FT_BASE_DEF( void )
+ ft_log_handler( const struct dlg_origin* origin,
+ const char* string,
+ void* data )
+ {
+ char features_buf[128];
+ char* bufp = features_buf;
+
+ FT_UNUSED( data );
+
+
+ if ( ft_have_newline_char )
+ {
+ const char* features = NULL;
+ size_t features_length = 0;
+
+
+#define FEATURES_TIMESTAMP "[%h:%m] "
+#define FEATURES_COMPONENT "[%t] "
+#define FEATURES_TIMESTAMP_COMPONENT "[%h:%m %t] "
+
+ if ( ft_timestamp_flag && ft_component_flag )
+ {
+ features = FEATURES_TIMESTAMP_COMPONENT;
+ features_length = sizeof ( FEATURES_TIMESTAMP_COMPONENT );
+ }
+ else if ( ft_timestamp_flag )
+ {
+ features = FEATURES_TIMESTAMP;
+ features_length = sizeof ( FEATURES_TIMESTAMP );
+ }
+ else if ( ft_component_flag )
+ {
+ features = FEATURES_COMPONENT;
+ features_length = sizeof ( FEATURES_COMPONENT );
+ }
+
+ if ( ft_component_flag || ft_timestamp_flag )
+ {
+ ft_strncpy( features_buf, features, features_length );
+ bufp += features_length - 1;
+ }
+
+ if ( ft_component_flag )
+ {
+ size_t tag_length = ft_strlen( *origin->tags );
+ size_t i;
+
+
+ /* To vertically align tracing messages we compensate the */
+ /* different FT_COMPONENT string lengths by inserting an */
+ /* appropriate amount of space characters. */
+ for ( i = 0;
+ i < FT_MAX_TRACE_LEVEL_LENGTH - tag_length;
+ i++ )
+ *bufp++ = ' ';
+ }
+ }
+
+ /* Finally add the format string for the tracing message. */
+ *bufp++ = '%';
+ *bufp++ = 'c';
+ *bufp = '\0';
+
+ dlg_generic_outputf_stream( ft_fileptr,
+ (const char*)features_buf,
+ origin,
+ string,
+ dlg_default_output_styles,
+ true );
+
+ if ( ft_strrchr( string, '\n' ) )
+ ft_have_newline_char = TRUE;
+ else
+ ft_have_newline_char = FALSE;
+ }
+
+
+ /* documentation is in ftdebug.h */
+ FT_BASE_DEF( void )
+ ft_add_tag( const char* tag )
+ {
+ ft_component = tag;
+
+ dlg_add_tag( tag, NULL );
+ }
+
+
+ /* documentation is in ftdebug.h */
+ FT_BASE_DEF( void )
+ ft_remove_tag( const char* tag )
+ {
+ dlg_remove_tag( tag, NULL );
+ }
+
+
+ /* documentation is in ftlogging.h */
+
+ FT_EXPORT_DEF( void )
+ FT_Trace_Set_Level( const char* level )
+ {
+ ft_component_flag = FALSE;
+ ft_timestamp_flag = FALSE;
+ ft_custom_trace_level = level;
+
+ ft_debug_init();
+ }
+
+
+ /* documentation is in ftlogging.h */
+
+ FT_EXPORT_DEF( void )
+ FT_Trace_Set_Default_Level( void )
+ {
+ ft_component_flag = FALSE;
+ ft_timestamp_flag = FALSE;
+ ft_custom_trace_level = NULL;
+
+ ft_debug_init();
+ }
+
+
+ /**************************************************************************
+ *
+ * Functions to handle a custom log handler.
+ *
+ */
+
+ /* documentation is in ftlogging.h */
+
+ FT_EXPORT_DEF( void )
+ FT_Set_Log_Handler( FT_Custom_Log_Handler handler )
+ {
+ custom_output_handler = handler;
+ }
+
+
+ /* documentation is in ftlogging.h */
+
+ FT_EXPORT_DEF( void )
+ FT_Set_Default_Log_Handler( void )
+ {
+ custom_output_handler = NULL;
+ }
+
+
+ /* documentation is in ftdebug.h */
+ FT_BASE_DEF( void )
+ FT_Logging_Callback( const char* fmt,
+ ... )
+ {
+ va_list ap;
+
+
+ va_start( ap, fmt );
+ custom_output_handler( ft_component, fmt, ap );
+ va_end( ap );
+ }
+
+#else /* !FT_DEBUG_LOGGING */
+
+ FT_EXPORT_DEF( void )
+ FT_Trace_Set_Level( const char* level )
+ {
+ FT_UNUSED( level );
+ }
+
+
+ FT_EXPORT_DEF( void )
+ FT_Trace_Set_Default_Level( void )
+ {
+ /* nothing */
+ }
+
+
+ FT_EXPORT_DEF( void )
+ FT_Set_Log_Handler( FT_Custom_Log_Handler handler )
+ {
+ FT_UNUSED( handler );
+ }
+
+
+ FT_EXPORT_DEF( void )
+ FT_Set_Default_Log_Handler( void )
+ {
+ /* nothing */
+ }
+
+#endif /* !FT_DEBUG_LOGGING */
+
+
/* END */
diff --git a/freetype/builds/windows/ftsystem.c b/freetype/builds/windows/ftsystem.c
new file mode 100644
index 00000000..1ebadd49
--- /dev/null
+++ b/freetype/builds/windows/ftsystem.c
@@ -0,0 +1,436 @@
+/****************************************************************************
+ *
+ * ftsystem.c
+ *
+ * Windows-specific FreeType low-level system interface (body).
+ *
+ * Copyright (C) 2021 by
+ * David Turner, Robert Wilhelm, and Werner Lemberg.
+ *
+ * This file is part of the FreeType project, and may only be used,
+ * modified, and distributed under the terms of the FreeType project
+ * license, LICENSE.TXT. By continuing to use, modify, or distribute
+ * this file you indicate that you have read the license and
+ * understand and accept it fully.
+ *
+ */
+
+
+#include <ft2build.h>
+ /* we use our special ftconfig.h file, not the standard one */
+#include FT_CONFIG_CONFIG_H
+#include <freetype/internal/ftdebug.h>
+#include <freetype/ftsystem.h>
+#include <freetype/fterrors.h>
+#include <freetype/fttypes.h>
+#include <freetype/internal/ftstream.h>
+
+ /* memory mapping and allocation includes and definitions */
+#define WIN32_LEAN_AND_MEAN
+#include <windows.h>
+
+
+ /**************************************************************************
+ *
+ * MEMORY MANAGEMENT INTERFACE
+ *
+ */
+
+
+ /**************************************************************************
+ *
+ * It is not necessary to do any error checking for the
+ * allocation-related functions. This will be done by the higher level
+ * routines like ft_mem_alloc() or ft_mem_realloc().
+ *
+ */
+
+
+ /**************************************************************************
+ *
+ * @Function:
+ * ft_alloc
+ *
+ * @Description:
+ * The memory allocation function.
+ *
+ * @Input:
+ * memory ::
+ * A pointer to the memory object.
+ *
+ * size ::
+ * The requested size in bytes.
+ *
+ * @Return:
+ * The address of newly allocated block.
+ */
+ FT_CALLBACK_DEF( void* )
+ ft_alloc( FT_Memory memory,
+ long size )
+ {
+ return HeapAlloc( memory->user, 0, size );
+ }
+
+
+ /**************************************************************************
+ *
+ * @Function:
+ * ft_realloc
+ *
+ * @Description:
+ * The memory reallocation function.
+ *
+ * @Input:
+ * memory ::
+ * A pointer to the memory object.
+ *
+ * cur_size ::
+ * The current size of the allocated memory block.
+ *
+ * new_size ::
+ * The newly requested size in bytes.
+ *
+ * block ::
+ * The current address of the block in memory.
+ *
+ * @Return:
+ * The address of the reallocated memory block.
+ */
+ FT_CALLBACK_DEF( void* )
+ ft_realloc( FT_Memory memory,
+ long cur_size,
+ long new_size,
+ void* block )
+ {
+ FT_UNUSED( cur_size );
+
+ return HeapReAlloc( memory->user, 0, block, new_size );
+ }
+
+
+ /**************************************************************************
+ *
+ * @Function:
+ * ft_free
+ *
+ * @Description:
+ * The memory release function.
+ *
+ * @Input:
+ * memory ::
+ * A pointer to the memory object.
+ *
+ * block ::
+ * The address of block in memory to be freed.
+ */
+ FT_CALLBACK_DEF( void )
+ ft_free( FT_Memory memory,
+ void* block )
+ {
+ HeapFree( memory->user, 0, block );
+ }
+
+
+ /**************************************************************************
+ *
+ * RESOURCE MANAGEMENT INTERFACE
+ *
+ */
+
+
+ /**************************************************************************
+ *
+ * The macro FT_COMPONENT is used in trace mode. It is an implicit
+ * parameter of the FT_TRACE() and FT_ERROR() macros, used to print/log
+ * messages during execution.
+ */
+#undef FT_COMPONENT
+#define FT_COMPONENT io
+
+ /* We use the macro STREAM_FILE for convenience to extract the */
+ /* system-specific stream handle from a given FreeType stream object */
+#define STREAM_FILE( stream ) ( (FILE*)stream->descriptor.pointer )
+
+
+ /**************************************************************************
+ *
+ * @Function:
+ * ft_close_stream_by_munmap
+ *
+ * @Description:
+ * The function to close a stream which is opened by mmap.
+ *
+ * @Input:
+ * stream :: A pointer to the stream object.
+ */
+ FT_CALLBACK_DEF( void )
+ ft_close_stream_by_munmap( FT_Stream stream )
+ {
+ UnmapViewOfFile( (LPCVOID)stream->descriptor.pointer );
+
+ stream->descriptor.pointer = NULL;
+ stream->size = 0;
+ stream->base = NULL;
+ }
+
+
+ /**************************************************************************
+ *
+ * @Function:
+ * ft_close_stream_by_free
+ *
+ * @Description:
+ * The function to close a stream which is created by ft_alloc.
+ *
+ * @Input:
+ * stream :: A pointer to the stream object.
+ */
+ FT_CALLBACK_DEF( void )
+ ft_close_stream_by_free( FT_Stream stream )
+ {
+ ft_free( stream->memory, stream->descriptor.pointer );
+
+ stream->descriptor.pointer = NULL;
+ stream->size = 0;
+ stream->base = NULL;
+ }
+
+
+#ifdef _WIN32_WCE
+
+ FT_LOCAL_DEF( HANDLE )
+ CreateFileA( LPCSTR lpFileName,
+ DWORD dwDesiredAccess,
+ DWORD dwShareMode,
+ LPSECURITY_ATTRIBUTES lpSecurityAttributes,
+ DWORD dwCreationDisposition,
+ DWORD dwFlagsAndAttributes,
+ HANDLE hTemplateFile )
+ {
+ int len;
+ LPWSTR lpFileNameW;
+
+
+ /* allocate memory space for converted path name */
+ len = MultiByteToWideChar( CP_ACP, MB_ERR_INVALID_CHARS,
+ lpFileName, -1, NULL, 0 );
+
+ lpFileNameW = (LPWSTR)_alloca( len * sizeof ( WCHAR ) );
+
+ if ( !len || !lpFileNameW )
+ {
+ FT_ERROR(( "FT_Stream_Open: cannot convert file name to LPWSTR\n" ));
+ return INVALID_HANDLE_VALUE;
+ }
+
+ /* now it is safe to do the translation */
+ MultiByteToWideChar( CP_ACP, MB_ERR_INVALID_CHARS,
+ lpFileName, -1, lpFileNameW, len );
+
+ /* open the file */
+ return CreateFileW( lpFileNameW, dwDesiredAccess, dwShareMode,
+ lpSecurityAttributes, dwCreationDisposition,
+ dwFlagsAndAttributes, hTemplateFile );
+ }
+
+
+ FT_LOCAL_DEF( BOOL )
+ GetFileSizeEx( HANDLE hFile,
+ PLARGE_INTEGER lpFileSize )
+ {
+ lpFileSize->u.LowPart = GetFileSize( hFile,
+ (DWORD *)&lpFileSize->u.HighPart );
+
+ if ( lpFileSize->u.LowPart == INVALID_FILE_SIZE &&
+ GetLastError() != NO_ERROR )
+ return FALSE;
+ else
+ return TRUE;
+ }
+
+#endif /* _WIN32_WCE */
+
+
+ /* documentation is in ftobjs.h */
+
+ FT_BASE_DEF( FT_Error )
+ FT_Stream_Open( FT_Stream stream,
+ const char* filepathname )
+ {
+ HANDLE file;
+ HANDLE fm;
+ LARGE_INTEGER size;
+
+
+ if ( !stream )
+ return FT_THROW( Invalid_Stream_Handle );
+
+ /* open the file */
+ file = CreateFileA( (LPCSTR)filepathname, GENERIC_READ, FILE_SHARE_READ,
+ NULL, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, 0 );
+ if ( file == INVALID_HANDLE_VALUE )
+ {
+ FT_ERROR(( "FT_Stream_Open:" ));
+ FT_ERROR(( " could not open `%s'\n", filepathname ));
+ return FT_THROW( Cannot_Open_Resource );
+ }
+
+ if ( GetFileSizeEx( file, &size ) == FALSE )
+ {
+ FT_ERROR(( "FT_Stream_Open:" ));
+ FT_ERROR(( " could not retrieve size of file `%s'\n", filepathname ));
+ goto Fail_Open;
+ }
+
+ /* `stream->size' is typedef'd to unsigned long (in `ftsystem.h'); */
+ /* So avoid overflow caused by fonts in huge files larger than */
+ /* 2GB, do a test. */
+ if ( size.QuadPart > LONG_MAX )
+ {
+ FT_ERROR(( "FT_Stream_Open: file is too big\n" ));
+ goto Fail_Open;
+ }
+ else if ( size.QuadPart == 0 )
+ {
+ FT_ERROR(( "FT_Stream_Open: zero-length file\n" ));
+ goto Fail_Open;
+ }
+
+ fm = CreateFileMapping( file, NULL, PAGE_READONLY, 0, 0, NULL );
+ if ( fm == NULL )
+ {
+ FT_ERROR(( "FT_Stream_Open: can not map file\n" ));
+ goto Fail_Open;
+ }
+
+ /* Store only the low part of this 64 bits integer because long is */
+ /* a 32 bits type. Anyway, a check has been done above to forbid */
+ /* a size greater than LONG_MAX */
+ stream->size = size.LowPart;
+ stream->pos = 0;
+ stream->base = (unsigned char *)
+ MapViewOfFile( fm, FILE_MAP_READ, 0, 0, 0 );
+
+ CloseHandle( fm );
+
+ if ( stream->base != NULL )
+ stream->close = ft_close_stream_by_munmap;
+ else
+ {
+ DWORD total_read_count;
+
+
+ FT_ERROR(( "FT_Stream_Open:" ));
+ FT_ERROR(( " could not `mmap' file `%s'\n", filepathname ));
+
+ stream->base = (unsigned char*)ft_alloc( stream->memory, stream->size );
+
+ if ( !stream->base )
+ {
+ FT_ERROR(( "FT_Stream_Open:" ));
+ FT_ERROR(( " could not `alloc' memory\n" ));
+ goto Fail_Open;
+ }
+
+ total_read_count = 0;
+ do
+ {
+ DWORD read_count;
+
+
+ if ( ReadFile( file,
+ stream->base + total_read_count,
+ stream->size - total_read_count,
+ &read_count, NULL ) == FALSE )
+ {
+ FT_ERROR(( "FT_Stream_Open:" ));
+ FT_ERROR(( " error while `read'ing file `%s'\n", filepathname ));
+ goto Fail_Read;
+ }
+
+ total_read_count += read_count;
+
+ } while ( total_read_count != stream->size );
+
+ stream->close = ft_close_stream_by_free;
+ }
+
+ CloseHandle( file );
+
+ stream->descriptor.pointer = stream->base;
+ stream->pathname.pointer = (char*)filepathname;
+
+ stream->read = NULL;
+
+ FT_TRACE1(( "FT_Stream_Open:" ));
+ FT_TRACE1(( " opened `%s' (%ld bytes) successfully\n",
+ filepathname, stream->size ));
+
+ return FT_Err_Ok;
+
+ Fail_Read:
+ ft_free( stream->memory, stream->base );
+
+ Fail_Open:
+ CloseHandle( file );
+
+ stream->base = NULL;
+ stream->size = 0;
+ stream->pos = 0;
+
+ return FT_THROW( Cannot_Open_Stream );
+ }
+
+
+#ifdef FT_DEBUG_MEMORY
+
+ extern FT_Int
+ ft_mem_debug_init( FT_Memory memory );
+
+ extern void
+ ft_mem_debug_done( FT_Memory memory );
+
+#endif
+
+
+ /* documentation is in ftobjs.h */
+
+ FT_BASE_DEF( FT_Memory )
+ FT_New_Memory( void )
+ {
+ HANDLE heap;
+ FT_Memory memory;
+
+
+ heap = GetProcessHeap();
+ memory = heap ? (FT_Memory)HeapAlloc( heap, 0, sizeof ( *memory ) )
+ : NULL;
+
+ if ( memory )
+ {
+ memory->user = heap;
+ memory->alloc = ft_alloc;
+ memory->realloc = ft_realloc;
+ memory->free = ft_free;
+#ifdef FT_DEBUG_MEMORY
+ ft_mem_debug_init( memory );
+#endif
+ }
+
+ return memory;
+ }
+
+
+ /* documentation is in ftobjs.h */
+
+ FT_BASE_DEF( void )
+ FT_Done_Memory( FT_Memory memory )
+ {
+#ifdef FT_DEBUG_MEMORY
+ ft_mem_debug_done( memory );
+#endif
+ memory->free( memory, memory );
+ }
+
+
+/* END */
diff --git a/freetype/builds/windows/vc2010/freetype.sln b/freetype/builds/windows/vc2010/freetype.sln
index 1bea194c..5f3b1141 100644
--- a/freetype/builds/windows/vc2010/freetype.sln
+++ b/freetype/builds/windows/vc2010/freetype.sln
@@ -4,34 +4,49 @@ Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "freetype", "freetype.vcxpro
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
- Debug|Win32 = Debug|Win32
Debug|x64 = Debug|x64
- Debug Static|Win32 = Debug Static|Win32
+ Debug|ARM64 = Debug|ARM64
+ Debug|Win32 = Debug|Win32
Debug Static|x64 = Debug Static|x64
- Release|Win32 = Release|Win32
+ Debug Static|ARM64 = Debug Static|ARM64
+ Debug Static|Win32 = Debug Static|Win32
Release|x64 = Release|x64
- Release Static|Win32 = Release Static|Win32
+ Release|ARM64 = Release|ARM64
+ Release|Win32 = Release|Win32
Release Static|x64 = Release Static|x64
+ Release Static|ARM64 = Release Static|ARM64
+ Release Static|Win32 = Release Static|Win32
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
- {78B079BD-9FC7-4B9E-B4A6-96DA0F00248B}.Debug|Win32.ActiveCfg = Debug|Win32
- {78B079BD-9FC7-4B9E-B4A6-96DA0F00248B}.Debug|Win32.Build.0 = Debug|Win32
{78B079BD-9FC7-4B9E-B4A6-96DA0F00248B}.Debug|x64.ActiveCfg = Debug|x64
{78B079BD-9FC7-4B9E-B4A6-96DA0F00248B}.Debug|x64.Build.0 = Debug|x64
- {78B079BD-9FC7-4B9E-B4A6-96DA0F00248B}.Debug Static|Win32.ActiveCfg = Debug Static|Win32
- {78B079BD-9FC7-4B9E-B4A6-96DA0F00248B}.Debug Static|Win32.Build.0 = Debug Static|Win32
+ {78B079BD-9FC7-4B9E-B4A6-96DA0F00248B}.Debug|ARM64.ActiveCfg = Debug|ARM64
+ {78B079BD-9FC7-4B9E-B4A6-96DA0F00248B}.Debug|ARM64.Build.0 = Debug|ARM64
+ {78B079BD-9FC7-4B9E-B4A6-96DA0F00248B}.Debug|Win32.ActiveCfg = Debug|Win32
+ {78B079BD-9FC7-4B9E-B4A6-96DA0F00248B}.Debug|Win32.Build.0 = Debug|Win32
{78B079BD-9FC7-4B9E-B4A6-96DA0F00248B}.Debug Static|x64.ActiveCfg = Debug Static|x64
{78B079BD-9FC7-4B9E-B4A6-96DA0F00248B}.Debug Static|x64.Build.0 = Debug Static|x64
- {78B079BD-9FC7-4B9E-B4A6-96DA0F00248B}.Release|Win32.ActiveCfg = Release|Win32
- {78B079BD-9FC7-4B9E-B4A6-96DA0F00248B}.Release|Win32.Build.0 = Release|Win32
+ {78B079BD-9FC7-4B9E-B4A6-96DA0F00248B}.Debug Static|ARM64.ActiveCfg = Debug Static|ARM64
+ {78B079BD-9FC7-4B9E-B4A6-96DA0F00248B}.Debug Static|ARM64.Build.0 = Debug Static|ARM64
+ {78B079BD-9FC7-4B9E-B4A6-96DA0F00248B}.Debug Static|Win32.ActiveCfg = Debug Static|Win32
+ {78B079BD-9FC7-4B9E-B4A6-96DA0F00248B}.Debug Static|Win32.Build.0 = Debug Static|Win32
{78B079BD-9FC7-4B9E-B4A6-96DA0F00248B}.Release|x64.ActiveCfg = Release|x64
{78B079BD-9FC7-4B9E-B4A6-96DA0F00248B}.Release|x64.Build.0 = Release|x64
- {78B079BD-9FC7-4B9E-B4A6-96DA0F00248B}.Release Static|Win32.ActiveCfg = Release Static|Win32
- {78B079BD-9FC7-4B9E-B4A6-96DA0F00248B}.Release Static|Win32.Build.0 = Release Static|Win32
+ {78B079BD-9FC7-4B9E-B4A6-96DA0F00248B}.Release|ARM64.ActiveCfg = Release|ARM64
+ {78B079BD-9FC7-4B9E-B4A6-96DA0F00248B}.Release|ARM64.Build.0 = Release|ARM64
+ {78B079BD-9FC7-4B9E-B4A6-96DA0F00248B}.Release|Win32.ActiveCfg = Release|Win32
+ {78B079BD-9FC7-4B9E-B4A6-96DA0F00248B}.Release|Win32.Build.0 = Release|Win32
{78B079BD-9FC7-4B9E-B4A6-96DA0F00248B}.Release Static|x64.ActiveCfg = Release Static|x64
{78B079BD-9FC7-4B9E-B4A6-96DA0F00248B}.Release Static|x64.Build.0 = Release Static|x64
+ {78B079BD-9FC7-4B9E-B4A6-96DA0F00248B}.Release Static|ARM64.ActiveCfg = Release Static|ARM64
+ {78B079BD-9FC7-4B9E-B4A6-96DA0F00248B}.Release Static|ARM64.Build.0 = Release Static|ARM64
+ {78B079BD-9FC7-4B9E-B4A6-96DA0F00248B}.Release Static|Win32.ActiveCfg = Release Static|Win32
+ {78B079BD-9FC7-4B9E-B4A6-96DA0F00248B}.Release Static|Win32.Build.0 = Release Static|Win32
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
+ GlobalSection(ExtensibilityGlobals) = postSolution
+ SolutionGuid = {90811697-0889-4381-80BC-C3FE8FA4931F}
+ EndGlobalSection
EndGlobal
diff --git a/freetype/builds/windows/vc2010/freetype.vcxproj b/freetype/builds/windows/vc2010/freetype.vcxproj
index f249e5af..28411061 100644
--- a/freetype/builds/windows/vc2010/freetype.vcxproj
+++ b/freetype/builds/windows/vc2010/freetype.vcxproj
@@ -1,10 +1,26 @@
<?xml version="1.0" encoding="utf-8"?>
-<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+<!--
+ You can use this file to build FreeType with MSBuild as follows
+
+ MSBuild.exe -t:Rebuild
+ -p:Configuration=Debug
+ -p:Platform=x64
+ -p:UserDefines=FT_DEBUG_LOGGING
+ builds/windows/vc2010/freetype.vcxproj
+
+ or with different appropriate switches. It also works with Visual Studio.
+ Additional customization can be made in `freetype.user.props`.
+-->
+<Project DefaultTargets="DlgCopy;Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ItemGroup Label="ProjectConfigurations">
<ProjectConfiguration Include="Debug|Win32">
<Configuration>Debug</Configuration>
<Platform>Win32</Platform>
</ProjectConfiguration>
+ <ProjectConfiguration Include="Debug|ARM64">
+ <Configuration>Debug</Configuration>
+ <Platform>ARM64</Platform>
+ </ProjectConfiguration>
<ProjectConfiguration Include="Debug|x64">
<Configuration>Debug</Configuration>
<Platform>x64</Platform>
@@ -13,6 +29,10 @@
<Configuration>Debug Static</Configuration>
<Platform>Win32</Platform>
</ProjectConfiguration>
+ <ProjectConfiguration Include="Debug Static|ARM64">
+ <Configuration>Debug Static</Configuration>
+ <Platform>ARM64</Platform>
+ </ProjectConfiguration>
<ProjectConfiguration Include="Debug Static|x64">
<Configuration>Debug Static</Configuration>
<Platform>x64</Platform>
@@ -21,6 +41,10 @@
<Configuration>Release</Configuration>
<Platform>Win32</Platform>
</ProjectConfiguration>
+ <ProjectConfiguration Include="Release|ARM64">
+ <Configuration>Release</Configuration>
+ <Platform>ARM64</Platform>
+ </ProjectConfiguration>
<ProjectConfiguration Include="Release|x64">
<Configuration>Release</Configuration>
<Platform>x64</Platform>
@@ -29,6 +53,10 @@
<Configuration>Release Static</Configuration>
<Platform>Win32</Platform>
</ProjectConfiguration>
+ <ProjectConfiguration Include="Release Static|ARM64">
+ <Configuration>Release Static</Configuration>
+ <Platform>ARM64</Platform>
+ </ProjectConfiguration>
<ProjectConfiguration Include="Release Static|x64">
<Configuration>Release Static</Configuration>
<Platform>x64</Platform>
@@ -44,35 +72,51 @@
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
<ConfigurationType>DynamicLibrary</ConfigurationType>
- <CharacterSet>Unicode</CharacterSet>
+ <CharacterSet>NotSet</CharacterSet>
+ </PropertyGroup>
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|ARM64'" Label="Configuration">
+ <ConfigurationType>DynamicLibrary</ConfigurationType>
+ <CharacterSet>NotSet</CharacterSet>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
<ConfigurationType>DynamicLibrary</ConfigurationType>
- <CharacterSet>Unicode</CharacterSet>
+ <CharacterSet>NotSet</CharacterSet>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug Static|Win32'" Label="Configuration">
<ConfigurationType>StaticLibrary</ConfigurationType>
- <CharacterSet>Unicode</CharacterSet>
+ <CharacterSet>NotSet</CharacterSet>
+ </PropertyGroup>
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug Static|ARM64'" Label="Configuration">
+ <ConfigurationType>StaticLibrary</ConfigurationType>
+ <CharacterSet>NotSet</CharacterSet>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug Static|x64'" Label="Configuration">
<ConfigurationType>StaticLibrary</ConfigurationType>
- <CharacterSet>Unicode</CharacterSet>
+ <CharacterSet>NotSet</CharacterSet>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
<ConfigurationType>DynamicLibrary</ConfigurationType>
- <CharacterSet>Unicode</CharacterSet>
+ <CharacterSet>NotSet</CharacterSet>
+ </PropertyGroup>
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|ARM64'" Label="Configuration">
+ <ConfigurationType>DynamicLibrary</ConfigurationType>
+ <CharacterSet>NotSet</CharacterSet>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
<ConfigurationType>DynamicLibrary</ConfigurationType>
- <CharacterSet>Unicode</CharacterSet>
+ <CharacterSet>NotSet</CharacterSet>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release Static|Win32'" Label="Configuration">
<ConfigurationType>StaticLibrary</ConfigurationType>
- <CharacterSet>Unicode</CharacterSet>
+ <CharacterSet>NotSet</CharacterSet>
+ </PropertyGroup>
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release Static|ARM64'" Label="Configuration">
+ <ConfigurationType>StaticLibrary</ConfigurationType>
+ <CharacterSet>NotSet</CharacterSet>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release Static|x64'" Label="Configuration">
<ConfigurationType>StaticLibrary</ConfigurationType>
- <CharacterSet>Unicode</CharacterSet>
+ <CharacterSet>NotSet</CharacterSet>
</PropertyGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
<ImportGroup Label="ExtensionSettings">
@@ -93,7 +137,7 @@
<PreprocessorDefinitions>WIN32;_DEBUG;_LIB;_CRT_SECURE_NO_WARNINGS;FT_DEBUG_LEVEL_ERROR;FT_DEBUG_LEVEL_TRACE;FT2_BUILD_LIBRARY;DLL_EXPORT;$(UserDefines);%(PreprocessorDefinitions)</PreprocessorDefinitions>
<BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
<RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
- <DisableLanguageExtensions>true</DisableLanguageExtensions>
+ <DisableLanguageExtensions>false</DisableLanguageExtensions>
<WarningLevel>Level4</WarningLevel>
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
<CompileAs>Default</CompileAs>
@@ -106,11 +150,39 @@
<PreprocessorDefinitions>_DEBUG;DLL_EXPORT;$(UserDefines);%(PreprocessorDefinitions)</PreprocessorDefinitions>
<Culture>0x0409</Culture>
</ResourceCompile>
- <Lib>
+ <Link>
+ <GenerateDebugInformation>true</GenerateDebugInformation>
<TargetMachine>MachineX86</TargetMachine>
<AdditionalLibraryDirectories>$(UserLibraryDirectories);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
<AdditionalDependencies>$(UserDependencies);%(AdditionalDependencies)</AdditionalDependencies>
- </Lib>
+ </Link>
+ </ItemDefinitionGroup>
+ <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|ARM64'">
+ <ClCompile>
+ <Optimization>Disabled</Optimization>
+ <AdditionalIncludeDirectories>$(UserOptionDirectory);..\..\..\include;$(UserIncludeDirectories);%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
+ <PreprocessorDefinitions>WIN32;_DEBUG;_LIB;_CRT_SECURE_NO_WARNINGS;FT_DEBUG_LEVEL_ERROR;FT_DEBUG_LEVEL_TRACE;FT2_BUILD_LIBRARY;DLL_EXPORT;$(UserDefines);%(PreprocessorDefinitions)</PreprocessorDefinitions>
+ <BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
+ <RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
+ <DisableLanguageExtensions>false</DisableLanguageExtensions>
+ <WarningLevel>Level4</WarningLevel>
+ <DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
+ <CompileAs>Default</CompileAs>
+ <DisableSpecificWarnings>4001</DisableSpecificWarnings>
+ <MultiProcessorCompilation>true</MultiProcessorCompilation>
+ <ProgramDataBaseFileName>$(OutDir)$(TargetName).pdb</ProgramDataBaseFileName>
+ <InlineFunctionExpansion>Disabled</InlineFunctionExpansion>
+ </ClCompile>
+ <ResourceCompile>
+ <PreprocessorDefinitions>_DEBUG;DLL_EXPORT;$(UserDefines);%(PreprocessorDefinitions)</PreprocessorDefinitions>
+ <Culture>0x0409</Culture>
+ </ResourceCompile>
+ <Link>
+ <GenerateDebugInformation>true</GenerateDebugInformation>
+ <TargetMachine>MachineARM64</TargetMachine>
+ <AdditionalLibraryDirectories>$(UserLibraryDirectories);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
+ <AdditionalDependencies>$(UserDependencies);%(AdditionalDependencies)</AdditionalDependencies>
+ </Link>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
<ClCompile>
@@ -119,7 +191,7 @@
<PreprocessorDefinitions>WIN32;_DEBUG;_LIB;_CRT_SECURE_NO_WARNINGS;FT_DEBUG_LEVEL_ERROR;FT_DEBUG_LEVEL_TRACE;FT2_BUILD_LIBRARY;DLL_EXPORT;$(UserDefines);%(PreprocessorDefinitions)</PreprocessorDefinitions>
<BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
<RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
- <DisableLanguageExtensions>true</DisableLanguageExtensions>
+ <DisableLanguageExtensions>false</DisableLanguageExtensions>
<WarningLevel>Level4</WarningLevel>
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
<CompileAs>Default</CompileAs>
@@ -132,11 +204,12 @@
<PreprocessorDefinitions>_DEBUG;DLL_EXPORT;$(UserDefines);%(PreprocessorDefinitions)</PreprocessorDefinitions>
<Culture>0x0409</Culture>
</ResourceCompile>
- <Lib>
+ <Link>
+ <GenerateDebugInformation>true</GenerateDebugInformation>
<TargetMachine>MachineX64</TargetMachine>
<AdditionalLibraryDirectories>$(UserLibraryDirectories);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
<AdditionalDependencies>$(UserDependencies);%(AdditionalDependencies)</AdditionalDependencies>
- </Lib>
+ </Link>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug Static|Win32'">
<ClCompile>
@@ -145,7 +218,7 @@
<PreprocessorDefinitions>WIN32;_DEBUG;_LIB;_CRT_SECURE_NO_WARNINGS;FT_DEBUG_LEVEL_ERROR;FT_DEBUG_LEVEL_TRACE;FT2_BUILD_LIBRARY;$(UserDefines);%(PreprocessorDefinitions)</PreprocessorDefinitions>
<BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
<RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary>
- <DisableLanguageExtensions>true</DisableLanguageExtensions>
+ <DisableLanguageExtensions>false</DisableLanguageExtensions>
<WarningLevel>Level4</WarningLevel>
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
<CompileAs>Default</CompileAs>
@@ -164,6 +237,32 @@
<AdditionalDependencies>$(UserDependencies);%(AdditionalDependencies)</AdditionalDependencies>
</Lib>
</ItemDefinitionGroup>
+ <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug Static|ARM64'">
+ <ClCompile>
+ <Optimization>Disabled</Optimization>
+ <AdditionalIncludeDirectories>$(UserOptionDirectory);..\..\..\include;$(UserIncludeDirectories);%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
+ <PreprocessorDefinitions>WIN32;_DEBUG;_LIB;_CRT_SECURE_NO_WARNINGS;FT_DEBUG_LEVEL_ERROR;FT_DEBUG_LEVEL_TRACE;FT2_BUILD_LIBRARY;$(UserDefines);%(PreprocessorDefinitions)</PreprocessorDefinitions>
+ <BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
+ <RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary>
+ <DisableLanguageExtensions>false</DisableLanguageExtensions>
+ <WarningLevel>Level4</WarningLevel>
+ <DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
+ <CompileAs>Default</CompileAs>
+ <DisableSpecificWarnings>4001</DisableSpecificWarnings>
+ <MultiProcessorCompilation>true</MultiProcessorCompilation>
+ <ProgramDataBaseFileName>$(OutDir)$(TargetName).pdb</ProgramDataBaseFileName>
+ <InlineFunctionExpansion>Disabled</InlineFunctionExpansion>
+ </ClCompile>
+ <ResourceCompile>
+ <PreprocessorDefinitions>_DEBUG;$(UserDefines);%(PreprocessorDefinitions)</PreprocessorDefinitions>
+ <Culture>0x0409</Culture>
+ </ResourceCompile>
+ <Lib>
+ <TargetMachine>MachineARM64</TargetMachine>
+ <AdditionalLibraryDirectories>$(UserLibraryDirectories);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
+ <AdditionalDependencies>$(UserDependencies);%(AdditionalDependencies)</AdditionalDependencies>
+ </Lib>
+ </ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug Static|x64'">
<ClCompile>
<Optimization>Disabled</Optimization>
@@ -171,7 +270,7 @@
<PreprocessorDefinitions>WIN32;_DEBUG;_LIB;_CRT_SECURE_NO_WARNINGS;FT_DEBUG_LEVEL_ERROR;FT_DEBUG_LEVEL_TRACE;FT2_BUILD_LIBRARY;$(UserDefines);%(PreprocessorDefinitions)</PreprocessorDefinitions>
<BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
<RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary>
- <DisableLanguageExtensions>true</DisableLanguageExtensions>
+ <DisableLanguageExtensions>false</DisableLanguageExtensions>
<WarningLevel>Level4</WarningLevel>
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
<CompileAs>Default</CompileAs>
@@ -210,12 +309,41 @@
<PreprocessorDefinitions>NDEBUG;DLL_EXPORT;$(UserDefines);%(PreprocessorDefinitions)</PreprocessorDefinitions>
<Culture>0x0409</Culture>
</ResourceCompile>
- <Lib>
- <LinkTimeCodeGeneration>true</LinkTimeCodeGeneration>
+ <Link>
+ <EnableCOMDATFolding>true</EnableCOMDATFolding>
+ <OptimizeReferences>true</OptimizeReferences>
<TargetMachine>MachineX86</TargetMachine>
<AdditionalLibraryDirectories>$(UserLibraryDirectories);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
<AdditionalDependencies>$(UserDependencies);%(AdditionalDependencies)</AdditionalDependencies>
- </Lib>
+ </Link>
+ </ItemDefinitionGroup>
+ <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|ARM64'">
+ <ClCompile>
+ <Optimization>MaxSpeed</Optimization>
+ <InlineFunctionExpansion>AnySuitable</InlineFunctionExpansion>
+ <AdditionalIncludeDirectories>$(UserOptionDirectory);..\..\..\include;$(UserIncludeDirectories);%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
+ <PreprocessorDefinitions>WIN32;NDEBUG;_LIB;_CRT_SECURE_NO_WARNINGS;FT2_BUILD_LIBRARY;DLL_EXPORT;$(UserDefines);%(PreprocessorDefinitions)</PreprocessorDefinitions>
+ <RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
+ <FunctionLevelLinking>true</FunctionLevelLinking>
+ <DisableLanguageExtensions>true</DisableLanguageExtensions>
+ <WarningLevel>Level4</WarningLevel>
+ <CompileAs>Default</CompileAs>
+ <DisableSpecificWarnings>4001</DisableSpecificWarnings>
+ <MultiProcessorCompilation>true</MultiProcessorCompilation>
+ <EnableEnhancedInstructionSet>NotSet</EnableEnhancedInstructionSet>
+ <IntrinsicFunctions>true</IntrinsicFunctions>
+ </ClCompile>
+ <ResourceCompile>
+ <PreprocessorDefinitions>NDEBUG;DLL_EXPORT;$(UserDefines);%(PreprocessorDefinitions)</PreprocessorDefinitions>
+ <Culture>0x0409</Culture>
+ </ResourceCompile>
+ <Link>
+ <EnableCOMDATFolding>true</EnableCOMDATFolding>
+ <OptimizeReferences>true</OptimizeReferences>
+ <TargetMachine>MachineARM64</TargetMachine>
+ <AdditionalLibraryDirectories>$(UserLibraryDirectories);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
+ <AdditionalDependencies>$(UserDependencies);%(AdditionalDependencies)</AdditionalDependencies>
+ </Link>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
<ClCompile>
@@ -230,19 +358,19 @@
<CompileAs>Default</CompileAs>
<DisableSpecificWarnings>4001</DisableSpecificWarnings>
<MultiProcessorCompilation>true</MultiProcessorCompilation>
- <EnableEnhancedInstructionSet>StreamingSIMDExtensions2</EnableEnhancedInstructionSet>
<IntrinsicFunctions>true</IntrinsicFunctions>
</ClCompile>
<ResourceCompile>
<PreprocessorDefinitions>NDEBUG;DLL_EXPORT;$(UserDefines);%(PreprocessorDefinitions)</PreprocessorDefinitions>
<Culture>0x0409</Culture>
</ResourceCompile>
- <Lib>
- <LinkTimeCodeGeneration>true</LinkTimeCodeGeneration>
+ <Link>
+ <EnableCOMDATFolding>true</EnableCOMDATFolding>
+ <OptimizeReferences>true</OptimizeReferences>
<TargetMachine>MachineX64</TargetMachine>
<AdditionalLibraryDirectories>$(UserLibraryDirectories);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
<AdditionalDependencies>$(UserDependencies);%(AdditionalDependencies)</AdditionalDependencies>
- </Lib>
+ </Link>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release Static|Win32'">
<ClCompile>
@@ -265,12 +393,37 @@
<Culture>0x0409</Culture>
</ResourceCompile>
<Lib>
- <LinkTimeCodeGeneration>true</LinkTimeCodeGeneration>
<TargetMachine>MachineX86</TargetMachine>
<AdditionalLibraryDirectories>$(UserLibraryDirectories);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
<AdditionalDependencies>$(UserDependencies);%(AdditionalDependencies)</AdditionalDependencies>
</Lib>
</ItemDefinitionGroup>
+ <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release Static|ARM64'">
+ <ClCompile>
+ <Optimization>MaxSpeed</Optimization>
+ <InlineFunctionExpansion>AnySuitable</InlineFunctionExpansion>
+ <AdditionalIncludeDirectories>$(UserOptionDirectory);..\..\..\include;$(UserIncludeDirectories);%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
+ <PreprocessorDefinitions>WIN32;NDEBUG;_LIB;_CRT_SECURE_NO_WARNINGS;FT2_BUILD_LIBRARY;$(UserDefines);%(PreprocessorDefinitions)</PreprocessorDefinitions>
+ <RuntimeLibrary>MultiThreaded</RuntimeLibrary>
+ <FunctionLevelLinking>true</FunctionLevelLinking>
+ <DisableLanguageExtensions>true</DisableLanguageExtensions>
+ <WarningLevel>Level4</WarningLevel>
+ <CompileAs>Default</CompileAs>
+ <DisableSpecificWarnings>4001</DisableSpecificWarnings>
+ <MultiProcessorCompilation>true</MultiProcessorCompilation>
+ <EnableEnhancedInstructionSet>NotSet</EnableEnhancedInstructionSet>
+ <IntrinsicFunctions>true</IntrinsicFunctions>
+ </ClCompile>
+ <ResourceCompile>
+ <PreprocessorDefinitions>NDEBUG;$(UserDefines);%(PreprocessorDefinitions)</PreprocessorDefinitions>
+ <Culture>0x0409</Culture>
+ </ResourceCompile>
+ <Lib>
+ <TargetMachine>MachineARM64</TargetMachine>
+ <AdditionalLibraryDirectories>$(UserLibraryDirectories);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
+ <AdditionalDependencies>$(UserDependencies);%(AdditionalDependencies)</AdditionalDependencies>
+ </Lib>
+ </ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release Static|x64'">
<ClCompile>
<Optimization>MaxSpeed</Optimization>
@@ -284,7 +437,6 @@
<CompileAs>Default</CompileAs>
<DisableSpecificWarnings>4001</DisableSpecificWarnings>
<MultiProcessorCompilation>true</MultiProcessorCompilation>
- <EnableEnhancedInstructionSet>StreamingSIMDExtensions2</EnableEnhancedInstructionSet>
<IntrinsicFunctions>true</IntrinsicFunctions>
</ClCompile>
<ResourceCompile>
@@ -292,7 +444,6 @@
<Culture>0x0409</Culture>
</ResourceCompile>
<Lib>
- <LinkTimeCodeGeneration>true</LinkTimeCodeGeneration>
<TargetMachine>MachineX64</TargetMachine>
<AdditionalLibraryDirectories>$(UserLibraryDirectories);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
<AdditionalDependencies>$(UserDependencies);%(AdditionalDependencies)</AdditionalDependencies>
@@ -316,13 +467,13 @@
<ClCompile Include="..\..\..\src\base\ftpfr.c" />
<ClCompile Include="..\..\..\src\base\ftstroke.c" />
<ClCompile Include="..\..\..\src\base\ftsynth.c" />
- <ClCompile Include="..\..\..\src\base\ftsystem.c" />
<ClCompile Include="..\..\..\src\base\fttype1.c" />
<ClCompile Include="..\..\..\src\base\ftwinfnt.c" />
<ClCompile Include="..\..\..\src\bdf\bdf.c" />
<ClCompile Include="..\..\..\src\cache\ftcache.c" />
<ClCompile Include="..\..\..\src\cff\cff.c" />
<ClCompile Include="..\..\..\src\cid\type1cid.c" />
+ <ClCompile Include="..\..\..\src\dlg\dlgwrap.c" />
<ClCompile Include="..\..\..\src\gzip\ftgzip.c" />
<ClCompile Include="..\..\..\src\lzw\ftlzw.c" />
<ClCompile Include="..\..\..\src\pcf\pcf.c" />
@@ -333,6 +484,7 @@
<ClCompile Include="..\..\..\src\raster\raster.c" />
<ClCompile Include="..\..\..\src\sfnt\sfnt.c" />
<ClCompile Include="..\..\..\src\smooth\smooth.c" />
+ <ClCompile Include="..\..\..\src\sdf\sdf.c" />
<ClCompile Include="..\..\..\src\truetype\truetype.c" />
<ClCompile Include="..\..\..\src\type1\type1.c" />
<ClCompile Include="..\..\..\src\type42\type42.c" />
@@ -340,12 +492,33 @@
<ClCompile Include="..\ftdebug.c">
<DisableLanguageExtensions>false</DisableLanguageExtensions>
</ClCompile>
+ <ClCompile Include="..\ftsystem.c">
+ <DisableLanguageExtensions>false</DisableLanguageExtensions>
+ </ClCompile>
<ResourceCompile Include="..\..\..\src\base\ftver.rc" />
</ItemGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
<ImportGroup Label="ExtensionTargets">
</ImportGroup>
+ <ItemGroup Condition="Exists('..\..\..\subprojects\dlg\.git')">
+ <DlgSrc Include="..\..\..\subprojects\dlg\include\dlg\output.h">
+ <DlgDst>..\..\..\include\dlg\output.h</DlgDst>
+ </DlgSrc>
+ <DlgSrc Include="..\..\..\subprojects\dlg\include\dlg\dlg.h">
+ <DlgDst>..\..\..\include\dlg\dlg.h</DlgDst>
+ </DlgSrc>
+ <DlgSrc Include="..\..\..\subprojects\dlg\src\dlg\dlg.c">
+ <DlgDst>..\..\..\src\dlg\dlg.c</DlgDst>
+ </DlgSrc>
+ </ItemGroup>
+ <Target Name="DlgCopy" Inputs="@(DlgSrc)" Outputs="@(DlgSrc->'%(DlgDst)')" Condition="Exists('..\..\..\subprojects\dlg\.git')">
+ <Copy SourceFiles="@(DlgSrc)" DestinationFiles="@(DlgSrc->'%(DlgDst)')" />
+ </Target>
<Target Name="AfterBuild">
- <Copy SourceFiles="$(TargetPath)" DestinationFolder="..\..\..\objs" />
+ <ItemGroup>
+ <TargetFiles Include="$(TargetDir)$(TargetName).*" />
+ </ItemGroup>
+ <Copy SourceFiles="@(TargetFiles)" DestinationFolder="..\..\..\objs" />
+ <Copy SourceFiles="$(TargetDir)$(TargetFileName)" DestinationFolder="..\..\..\..\freetype-demos\bin" Condition="'$(TargetExt)'=='.dll'" />
</Target>
</Project>
diff --git a/freetype/builds/windows/vc2010/freetype.vcxproj.filters b/freetype/builds/windows/vc2010/freetype.vcxproj.filters
index edfeacfe..f0a075c6 100644
--- a/freetype/builds/windows/vc2010/freetype.vcxproj.filters
+++ b/freetype/builds/windows/vc2010/freetype.vcxproj.filters
@@ -23,9 +23,6 @@
<ClCompile Include="..\..\..\src\base\ftinit.c">
<Filter>Source Files</Filter>
</ClCompile>
- <ClCompile Include="..\..\..\src\base\ftsystem.c">
- <Filter>Source Files</Filter>
- </ClCompile>
<ClCompile Include="..\..\..\src\bdf\bdf.c">
<Filter>Source Files</Filter>
</ClCompile>
@@ -65,6 +62,9 @@
<ClCompile Include="..\..\..\src\sfnt\sfnt.c">
<Filter>Source Files</Filter>
</ClCompile>
+ <ClCompile Include="..\..\..\src\sdf\sdf.c">
+ <Filter>Source Files</Filter>
+ </ClCompile>
<ClCompile Include="..\..\..\src\smooth\smooth.c">
<Filter>Source Files</Filter>
</ClCompile>
@@ -131,6 +131,12 @@
<ClCompile Include="..\..\..\src\base\ftwinfnt.c">
<Filter>Source Files\FT_MODULES</Filter>
</ClCompile>
+ <ClCompile Include="..\..\..\src\dlg\dlgwrap.c">
+ <Filter>Source Files</Filter>
+ </ClCompile>
+ <ClCompile Include="..\ftsystem.c">
+ <Filter>Source Files</Filter>
+ </ClCompile>
</ItemGroup>
<ItemGroup>
<ResourceCompile Include="..\..\..\src\base\ftver.rc">
diff --git a/freetype/builds/windows/vc2010/index.html b/freetype/builds/windows/vc2010/index.html
index 3b60c5fe..dcb1944b 100644
--- a/freetype/builds/windows/vc2010/index.html
+++ b/freetype/builds/windows/vc2010/index.html
@@ -12,7 +12,7 @@
<p>This directory contains solution and project files for
Visual&nbsp;C++&nbsp;2010 or newer, named <tt>freetype.sln</tt>,
and <tt>freetype.vcxproj</tt>. It compiles the following libraries
-from the FreeType 2.10.4 sources:</p>
+from the FreeType 2.11.1 sources:</p>
<ul>
<li>freetype.dll using 'Release' or 'Debug' configurations</li>
diff --git a/freetype/builds/windows/visualc/freetype.dsp b/freetype/builds/windows/visualc/freetype.dsp
index 36e9fc3b..451fab28 100644
--- a/freetype/builds/windows/visualc/freetype.dsp
+++ b/freetype/builds/windows/visualc/freetype.dsp
@@ -58,7 +58,7 @@ BSC32=bscmake.exe
# ADD BSC32 /nologo
LINK32=link.exe
# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /dll /machine:I386
-# ADD LINK32 /nologo /dll /machine:I386 /out:"$(OutDir)\freetype.dll"
+# ADD LINK32 /nologo /dll /machine:I386 /opt:REF,ICF /out:"$(OutDir)\freetype.dll"
!ELSEIF "$(CFG)" == "freetype - Win32 Debug"
diff --git a/freetype/builds/windows/visualc/freetype.vcproj b/freetype/builds/windows/visualc/freetype.vcproj
index 9ff82a5b..f69bc421 100644
--- a/freetype/builds/windows/visualc/freetype.vcproj
+++ b/freetype/builds/windows/visualc/freetype.vcproj
@@ -19,7 +19,7 @@
ConfigurationType="2"
UseOfMFC="0"
ATLMinimizesCRunTimeLibraryUsage="false"
- CharacterSet="1"
+ CharacterSet="0"
>
<Tool
Name="VCPreBuildEventTool"
@@ -45,6 +45,7 @@
PreprocessorDefinitions="NDEBUG;WIN32;_LIB;_CRT_SECURE_NO_WARNINGS;FT2_BUILD_LIBRARY;DLL_EXPORT"
StringPooling="true"
RuntimeLibrary="2"
+ EnableEnhancedInstructionSet="2"
EnableFunctionLevelLinking="true"
DisableLanguageExtensions="true"
WarningLevel="4"
@@ -65,6 +66,8 @@
/>
<Tool
Name="VCLinkerTool"
+ OptimizeReferences="2"
+ EnableCOMDATFolding="2"
/>
<Tool
Name="VCALinkTool"
@@ -95,7 +98,7 @@
ConfigurationType="4"
UseOfMFC="0"
ATLMinimizesCRunTimeLibraryUsage="false"
- CharacterSet="1"
+ CharacterSet="0"
>
<Tool
Name="VCPreBuildEventTool"
@@ -121,6 +124,7 @@
PreprocessorDefinitions="NDEBUG;WIN32;_LIB;_CRT_SECURE_NO_WARNINGS;FT2_BUILD_LIBRARY"
StringPooling="true"
RuntimeLibrary="0"
+ EnableEnhancedInstructionSet="2"
EnableFunctionLevelLinking="true"
DisableLanguageExtensions="true"
WarningLevel="4"
@@ -165,7 +169,7 @@
ConfigurationType="2"
UseOfMFC="0"
ATLMinimizesCRunTimeLibraryUsage="false"
- CharacterSet="1"
+ CharacterSet="0"
>
<Tool
Name="VCPreBuildEventTool"
@@ -238,7 +242,7 @@
ConfigurationType="4"
UseOfMFC="0"
ATLMinimizesCRunTimeLibraryUsage="false"
- CharacterSet="1"
+ CharacterSet="0"
>
<Tool
Name="VCPreBuildEventTool"
@@ -395,8 +399,40 @@
>
</File>
<File
- RelativePath="..\..\..\src\base\ftsystem.c"
+ RelativePath="..\ftsystem.c"
>
+ <FileConfiguration
+ Name="Release|Win32"
+ >
+ <Tool
+ Name="VCCLCompilerTool"
+ DisableLanguageExtensions="false"
+ />
+ </FileConfiguration>
+ <FileConfiguration
+ Name="Release Static|Win32"
+ >
+ <Tool
+ Name="VCCLCompilerTool"
+ DisableLanguageExtensions="false"
+ />
+ </FileConfiguration>
+ <FileConfiguration
+ Name="Debug|Win32"
+ >
+ <Tool
+ Name="VCCLCompilerTool"
+ DisableLanguageExtensions="false"
+ />
+ </FileConfiguration>
+ <FileConfiguration
+ Name="Debug Static|Win32"
+ >
+ <Tool
+ Name="VCCLCompilerTool"
+ DisableLanguageExtensions="false"
+ />
+ </FileConfiguration>
</File>
<File
RelativePath="..\..\..\src\smooth\smooth.c"
diff --git a/freetype/builds/windows/visualc/index.html b/freetype/builds/windows/visualc/index.html
index cec26d27..d0c8f2f9 100644
--- a/freetype/builds/windows/visualc/index.html
+++ b/freetype/builds/windows/visualc/index.html
@@ -12,7 +12,7 @@
<p>This directory contains project files <tt>freetype.dsp</tt> for
Visual C++ 6.0, and <tt>freetype.vcproj</tt> for Visual C++ 2002
through 2008, which you might need to upgrade automatically.
-It compiles the following libraries from the FreeType 2.10.4 sources:</p>
+It compiles the following libraries from the FreeType 2.11.1 sources:</p>
<ul>
<li>freetype.dll using 'Release' or 'Debug' configurations</li>
diff --git a/freetype/builds/windows/visualce/index.html b/freetype/builds/windows/visualce/index.html
index 474e85c3..b50ef79b 100644
--- a/freetype/builds/windows/visualce/index.html
+++ b/freetype/builds/windows/visualce/index.html
@@ -21,7 +21,7 @@ the following targets:
<li>PPC/SP WM6 (Windows Mobile 6)</li>
</ul>
-It compiles the following libraries from the FreeType 2.10.4 sources:</p>
+It compiles the following libraries from the FreeType 2.11.1 sources:</p>
<ul>
<pre>
diff --git a/freetype/builds/windows/w32-bcc.mk b/freetype/builds/windows/w32-bcc.mk
index c80710ea..d497dd15 100644
--- a/freetype/builds/windows/w32-bcc.mk
+++ b/freetype/builds/windows/w32-bcc.mk
@@ -3,7 +3,7 @@
#
-# Copyright (C) 1996-2020 by
+# Copyright (C) 1996-2021 by
# David Turner, Robert Wilhelm, and Werner Lemberg.
#
# This file is part of the FreeType project, and may only be used, modified,
diff --git a/freetype/builds/windows/w32-bccd.mk b/freetype/builds/windows/w32-bccd.mk
index 966bdb51..701b83d2 100644
--- a/freetype/builds/windows/w32-bccd.mk
+++ b/freetype/builds/windows/w32-bccd.mk
@@ -3,7 +3,7 @@
#
-# Copyright (C) 1996-2020 by
+# Copyright (C) 1996-2021 by
# David Turner, Robert Wilhelm, and Werner Lemberg.
#
# This file is part of the FreeType project, and may only be used, modified,
diff --git a/freetype/builds/windows/w32-dev.mk b/freetype/builds/windows/w32-dev.mk
index b2af6679..a2f46447 100644
--- a/freetype/builds/windows/w32-dev.mk
+++ b/freetype/builds/windows/w32-dev.mk
@@ -5,7 +5,7 @@
#
-# Copyright (C) 1996-2020 by
+# Copyright (C) 1996-2021 by
# David Turner, Robert Wilhelm, and Werner Lemberg.
#
# This file is part of the FreeType project, and may only be used, modified,
diff --git a/freetype/builds/windows/w32-gcc.mk b/freetype/builds/windows/w32-gcc.mk
index f27e6b12..4117453e 100644
--- a/freetype/builds/windows/w32-gcc.mk
+++ b/freetype/builds/windows/w32-gcc.mk
@@ -3,7 +3,7 @@
#
-# Copyright (C) 1996-2020 by
+# Copyright (C) 1996-2021 by
# David Turner, Robert Wilhelm, and Werner Lemberg.
#
# This file is part of the FreeType project, and may only be used, modified,
diff --git a/freetype/builds/windows/w32-icc.mk b/freetype/builds/windows/w32-icc.mk
index 2e696092..ebab45ef 100644
--- a/freetype/builds/windows/w32-icc.mk
+++ b/freetype/builds/windows/w32-icc.mk
@@ -3,7 +3,7 @@
#
-# Copyright (C) 1996-2020 by
+# Copyright (C) 1996-2021 by
# David Turner, Robert Wilhelm, and Werner Lemberg.
#
# This file is part of the FreeType project, and may only be used, modified,
diff --git a/freetype/builds/windows/w32-intl.mk b/freetype/builds/windows/w32-intl.mk
index 88e62697..0fef8d72 100644
--- a/freetype/builds/windows/w32-intl.mk
+++ b/freetype/builds/windows/w32-intl.mk
@@ -3,7 +3,7 @@
#
-# Copyright (C) 1996-2020 by
+# Copyright (C) 1996-2021 by
# David Turner, Robert Wilhelm, and Werner Lemberg.
#
# This file is part of the FreeType project, and may only be used, modified,
diff --git a/freetype/builds/windows/w32-lcc.mk b/freetype/builds/windows/w32-lcc.mk
index 6cf64606..7aed5b51 100644
--- a/freetype/builds/windows/w32-lcc.mk
+++ b/freetype/builds/windows/w32-lcc.mk
@@ -3,7 +3,7 @@
#
-# Copyright (C) 1996-2020 by
+# Copyright (C) 1996-2021 by
# David Turner, Robert Wilhelm, and Werner Lemberg.
#
# This file is part of the FreeType project, and may only be used, modified,
diff --git a/freetype/builds/windows/w32-mingw32.mk b/freetype/builds/windows/w32-mingw32.mk
index f2eb0216..67317788 100644
--- a/freetype/builds/windows/w32-mingw32.mk
+++ b/freetype/builds/windows/w32-mingw32.mk
@@ -3,7 +3,7 @@
#
-# Copyright (C) 1996-2020 by
+# Copyright (C) 1996-2021 by
# David Turner, Robert Wilhelm, and Werner Lemberg.
#
# This file is part of the FreeType project, and may only be used, modified,
diff --git a/freetype/builds/windows/w32-vcc.mk b/freetype/builds/windows/w32-vcc.mk
index e800d274..278624f3 100644
--- a/freetype/builds/windows/w32-vcc.mk
+++ b/freetype/builds/windows/w32-vcc.mk
@@ -3,7 +3,7 @@
#
-# Copyright (C) 1996-2020 by
+# Copyright (C) 1996-2021 by
# David Turner, Robert Wilhelm, and Werner Lemberg.
#
# This file is part of the FreeType project, and may only be used, modified,
diff --git a/freetype/builds/windows/w32-wat.mk b/freetype/builds/windows/w32-wat.mk
index a0de4bbb..df2ece36 100644
--- a/freetype/builds/windows/w32-wat.mk
+++ b/freetype/builds/windows/w32-wat.mk
@@ -3,7 +3,7 @@
#
-# Copyright (C) 1996-2020 by
+# Copyright (C) 1996-2021 by
# David Turner, Robert Wilhelm, and Werner Lemberg.
#
# This file is part of the FreeType project, and may only be used, modified,
diff --git a/freetype/builds/windows/win32-def.mk b/freetype/builds/windows/win32-def.mk
index f7598539..15bfd0cf 100644
--- a/freetype/builds/windows/win32-def.mk
+++ b/freetype/builds/windows/win32-def.mk
@@ -3,7 +3,7 @@
#
-# Copyright (C) 1996-2020 by
+# Copyright (C) 1996-2021 by
# David Turner, Robert Wilhelm, and Werner Lemberg.
#
# This file is part of the FreeType project, and may only be used, modified,
@@ -13,11 +13,11 @@
# fully.
-DELETE := del
-CAT := type
-SEP := $(strip \ )
-BUILD_DIR := $(TOP_DIR)/builds/windows
-PLATFORM := windows
+DELETE := del
+CAT := type
+SEP := $(strip \ )
+PLATFORM_DIR := $(TOP_DIR)/builds/windows
+PLATFORM := windows
# This is used for `make refdoc' and `make refdoc-venv'
#
diff --git a/freetype/devel/ft2build.h b/freetype/devel/ft2build.h
index 0ab8ba0f..117532ba 100644
--- a/freetype/devel/ft2build.h
+++ b/freetype/devel/ft2build.h
@@ -4,7 +4,7 @@
*
* FreeType 2 build and setup macros (development version).
*
- * Copyright (C) 1996-2020 by
+ * Copyright (C) 1996-2021 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
diff --git a/freetype/devel/ftoption.h b/freetype/devel/ftoption.h
index 307d1a38..f92b4167 100644
--- a/freetype/devel/ftoption.h
+++ b/freetype/devel/ftoption.h
@@ -4,7 +4,7 @@
*
* User-selectable configuration macros (specification only).
*
- * Copyright (C) 1996-2020 by
+ * Copyright (C) 1996-2021 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
@@ -105,8 +105,7 @@ FT_BEGIN_HEADER
*
* ```
* FREETYPE_PROPERTIES=truetype:interpreter-version=35 \
- * cff:no-stem-darkening=1 \
- * autofitter:warping=1
+ * cff:no-stem-darkening=1
* ```
*
*/
@@ -433,6 +432,21 @@ FT_BEGIN_HEADER
/**************************************************************************
*
+ * Logging
+ *
+ * Compiling FreeType in debug or trace mode makes FreeType write error
+ * and trace log messages to `stderr`. Enabling this macro
+ * automatically forces the `FT_DEBUG_LEVEL_ERROR` and
+ * `FT_DEBUG_LEVEL_TRACE` macros and allows FreeType to write error and
+ * trace log messages to a file instead of `stderr`. For writing logs
+ * to a file, FreeType uses an the external `dlg` library (the source
+ * code is in `src/dlg`).
+ */
+#define FT_DEBUG_LOGGING
+
+
+ /**************************************************************************
+ *
* Autofitter debugging
*
* If `FT_DEBUG_AUTOFIT` is defined, FreeType provides some means to
@@ -894,24 +908,6 @@ FT_BEGIN_HEADER
/**************************************************************************
*
- * Compile 'autofit' module with warp hinting. The idea of the warping
- * code is to slightly scale and shift a glyph within a single dimension so
- * that as much of its segments are aligned (more or less) on the grid. To
- * find out the optimal scaling and shifting value, various parameter
- * combinations are tried and scored.
- *
- * You can switch warping on and off with the `warping` property of the
- * auto-hinter (see file `ftdriver.h` for more information; by default it
- * is switched off).
- *
- * This experimental option is not active if the rendering mode is
- * `FT_RENDER_MODE_LIGHT`.
- */
-#define AF_CONFIG_OPTION_USE_WARPER
-
-
- /**************************************************************************
- *
* Use TrueType-like size metrics for 'light' auto-hinting.
*
* It is strongly recommended to avoid this option, which exists only to
@@ -962,6 +958,21 @@ FT_BEGIN_HEADER
/*
+ * The TT_SUPPORT_COLRV1 macro is defined to indicate to clients that this
+ * version of FreeType has support for 'COLR' v1 API. This definition is
+ * useful to FreeType clients that want to build in support for 'COLR' v1
+ * depending on a tip-of-tree checkout before it is officially released in
+ * FreeType, and while the feature cannot yet be tested against using
+ * version macros. Don't change this macro. This may be removed once the
+ * feature is in a FreeType release version and version macros can be used
+ * to test for availability.
+ */
+#ifdef TT_CONFIG_OPTION_COLOR_LAYERS
+#define TT_SUPPORT_COLRV1
+#endif
+
+
+ /*
* Check CFF darkening parameters. The checks are the same as in function
* `cff_property_set` in file `cffdrivr.c`.
*/
diff --git a/freetype/docs/CHANGES b/freetype/docs/CHANGES
index 3bd5291a..5eb8cdb9 100644
--- a/freetype/docs/CHANGES
+++ b/freetype/docs/CHANGES
@@ -1,4 +1,154 @@
-CHANGES BETWEEN 2.10.3 and 2.10.4
+CHANGES BETWEEN 2.11.0 and 2.11.1
+
+ I. IMPORTANT CHANGES
+
+ - Some fields in the `CID_FaceDictRec`, `CID_FaceInfoRec`, and
+ `FT_Data` structures have been changed from signed to unsigned
+ type, which better reflects the actual usage. It is also an
+ additional means to protect against malformed input.
+
+
+ II. MISCELLANEOUS
+
+ - Cmake support has been further improved. To do that various
+ backward-incompatible changes were necessary; please see file
+ `CMakeLists.txt` for more details.
+
+ - Since version 2.11.0, a C99 compiler is necessary to compile
+ FreeType.
+
+ - The experimental 'COLR' v1 API has been updated to the latest
+ OpenType standard 1.9.
+
+ - The `apinames` tool got a new option `-wV` to output an OpenVMS
+ Linker Option File.
+
+ - VMS support was updated.
+
+ - MS Visual Studio support was added to build the demo programs.
+
+
+======================================================================
+
+CHANGES BETWEEN 2.10.4 and 2.11.0
+
+ I. IMPORTANT CHANGES
+
+ - A new rendering module has been added to create 8-bit Signed
+ Distance Field (SDF) bitmaps for both outline and bitmap glyphs.
+ The new rendering mode is called `FT_RENDER_MODE_SDF`, the pixel
+ mode is `FT_PIXEL_MODE_GRAY8`, and the corresponding raster flag
+ is `FT_RASTER_FLAG_SDF`.
+
+ This work was Anuj Verma's GSoC 2020 project.
+
+ - A new, experimental API is now available for surfacing properties
+ of 'COLR' v1 color fonts (as the name says, this is an extension
+ to the 'COLR' table for outline color fonts using the SFNT
+ container format). 'COLR' v1 fonts are a recently proposed
+ addition to OFF and OpenType; specification work currently happens
+ in
+
+ https://github.com/googlefonts/colr-gradients-spec/
+
+ 'COLR' v1 is expected to be merged to OpenType; the ISO
+ standardisation process for adding 'COLR' v1 as an amendment to
+ OFF is underway.
+
+ Functions similar to the already existing 'COLR' API have been
+ added to access the corresponding data.
+
+ FT_Get_Color_Glyph_Paint
+ Retrieve the root paint for a given glyph ID.
+
+ FT_Get_Paint_Layers
+ Access the layers of a `PaintColrLayers` table.
+
+ FT_Get_Colorline_Stops
+ Retrieve the 'color stops' on a color line. As an input, a
+ color stop iterator gets used, which in turn is retrieved from
+ a paint.
+
+ FT_Get_Paint
+ Dereference an `FT_OpaquePaint` object and retrieve the
+ corresponding `FT_COLR_Paint` object, which contains details
+ on how to draw the respective 'COLR' v1 `Paint` table.
+
+
+ II. MISCELLANEOUS
+
+ - FreeType has moved its infrastructure to
+
+ https://gitlab.freedesktop.org/freetype
+
+ A side effect is that the git repositories are now called
+ `freetype.git` and `freetype-demos.git`, which by default expand
+ to the directories `freetype` and `freetype-demos`, respectively.
+ The documentation has been updated accordingly.
+
+ FreeType's Savannah repositories will stay; they are now mirrors
+ of the 'freedesktop.org' repositories.
+
+ - A new function `FT_Get_Transform` returns the values set by
+ `FT_Set_Transform`.
+
+ - A new configuration macro `FT_DEBUG_LOGGING` is available. It
+ provides extended debugging capabilities for FreeType, for example
+ showing a time stamp or displaying the component a tracing message
+ comes from. See file `docs/DEBUG` for more information.
+
+ This work was Priyesh Kumar's GSoC 2020 project.
+
+ - The legacy Type 1 and CFF engines are further demoted due to lack
+ of CFF2 charstring support. You now need to use `FT_Property_Set`
+ to enable them besides the `T1_CONFIG_OPTION_OLD_ENGINE` and
+ `CFF_CONFIG_OPTION_OLD_ENGINE` options, respectively.
+
+ - The experimental 'warp' mode (AF_CONFIG_OPTION_USE_WARPER) for the
+ auto-hinter has been removed.
+
+ - The smooth rasterizer performance has been improved by >10%. Note
+ that due to necessary code changes there might be very subtle
+ differences in rendering. They are not visible by the eye,
+ however.
+
+ - PCF bitmap fonts compressed with LZW (these are usually files with
+ the extension `.pcf.Z`) are now handled correctly.
+
+ - Improved Meson build files, including support to build the
+ FreeType demo programs.
+
+ - A new demo program `ftsdf` is available to display Signed Distance
+ Fields of glyphs.
+
+ - The `ftlint` demo program has been extended to do more testing of
+ its input. In particular, it can display horizontal and vertical
+ acutances for quality assessment, together with computing MD5
+ checksums of rendered glyphs.
+
+ [The acutance measures how sharply the pixel coverage changes at
+ glyph edges. For monochrome bitmaps, it is always 2.0 in either
+ X or Y direction. For anti-aliased bitmaps, it depends on the
+ hinting and the shape of a glyph and might approach or even reach
+ value 2.0 for glyphs like 'I', 'L', '+', '-', or '=', while it
+ might be lower for glyphs like 'O', 'S', or 'W'.]
+
+ - The `ttdebug` demo program didn't show changed point coordinates
+ (bug introduced in version 2.10.3).
+
+ - It is now possible to adjust the axis increment for variable fonts
+ in the `ftmulti` demo program.
+
+ - It is now possible to change the hinting engine in the `ftstring`
+ demo program.
+
+ - The graphical demo programs work better now in native color depth
+ on win32 and x11.
+
+
+======================================================================
+
+CHANGES BETWEEN 2.10.3 and 2.10.4 (2020-Oct-20)
I. IMPORTANT BUG FIXES
@@ -13,7 +163,7 @@ CHANGES BETWEEN 2.10.3 and 2.10.4
======================================================================
-CHANGES BETWEEN 2.10.2 and 2.10.3
+CHANGES BETWEEN 2.10.2 and 2.10.3 (2020-Oct-10)
I. IMPORTANT CHANGES
@@ -63,7 +213,7 @@ CHANGES BETWEEN 2.10.2 and 2.10.3
======================================================================
-CHANGES BETWEEN 2.10.1 and 2.10.2
+CHANGES BETWEEN 2.10.1 and 2.10.2 (2020-May-09)
I. IMPORTANT CHANGES
@@ -100,7 +250,7 @@ CHANGES BETWEEN 2.10.1 and 2.10.2
======================================================================
-CHANGES BETWEEN 2.10.0 and 2.10.1
+CHANGES BETWEEN 2.10.0 and 2.10.1 (2019-Jul-01)
I. IMPORTANT BUG FIXES
@@ -154,7 +304,7 @@ CHANGES BETWEEN 2.10.0 and 2.10.1
======================================================================
-CHANGES BETWEEN 2.9.1 and 2.10.0
+CHANGES BETWEEN 2.9.1 and 2.10.0 (2019-Mar-15)
I. IMPORTANT CHANGES
@@ -280,7 +430,7 @@ CHANGES BETWEEN 2.9.1 and 2.10.0
======================================================================
-CHANGES BETWEEN 2.9 and 2.9.1
+CHANGES BETWEEN 2.9 and 2.9.1 (2019-May-01)
I. IMPORTANT BUG FIXES
@@ -328,7 +478,7 @@ CHANGES BETWEEN 2.9 and 2.9.1
======================================================================
-CHANGES BETWEEN 2.8.1 and 2.9
+CHANGES BETWEEN 2.8.1 and 2.9 (2018-Jan-08)
I. IMPORTANT BUG FIXES
@@ -418,7 +568,7 @@ CHANGES BETWEEN 2.8.1 and 2.9
======================================================================
-CHANGES BETWEEN 2.8 and 2.8.1
+CHANGES BETWEEN 2.8 and 2.8.1 (2017-Sep-16)
I. IMPORTANT BUG FIXES
@@ -501,7 +651,7 @@ CHANGES BETWEEN 2.8 and 2.8.1
======================================================================
-CHANGES BETWEEN 2.7.1 and 2.8
+CHANGES BETWEEN 2.7.1 and 2.8 (2017-May-13)
I. IMPORTANT CHANGES
@@ -622,7 +772,7 @@ CHANGES BETWEEN 2.7.1 and 2.8
======================================================================
-CHANGES BETWEEN 2.7 and 2.7.1
+CHANGES BETWEEN 2.7 and 2.7.1 (2016-Dec-30)
I. IMPORTANT CHANGES
@@ -699,7 +849,7 @@ CHANGES BETWEEN 2.7 and 2.7.1
======================================================================
-CHANGES BETWEEN 2.6.5 and 2.7
+CHANGES BETWEEN 2.6.5 and 2.7 (2016-Sep-08)
I. IMPORTANT CHANGES
@@ -763,7 +913,7 @@ CHANGES BETWEEN 2.6.5 and 2.7
======================================================================
-CHANGES BETWEEN 2.6.4 and 2.6.5
+CHANGES BETWEEN 2.6.4 and 2.6.5 (2016-Jul-12)
I. IMPORTANT BUG FIXES
@@ -783,7 +933,7 @@ CHANGES BETWEEN 2.6.4 and 2.6.5
======================================================================
-CHANGES BETWEEN 2.6.3 and 2.6.4
+CHANGES BETWEEN 2.6.3 and 2.6.4 (2016-Jul-05)
I. IMPORTANT CHANGES
@@ -849,7 +999,7 @@ CHANGES BETWEEN 2.6.3 and 2.6.4
======================================================================
-CHANGES BETWEEN 2.6.2 and 2.6.3
+CHANGES BETWEEN 2.6.2 and 2.6.3 (2016-Feb-08)
I. IMPORTANT CHANGES
@@ -898,7 +1048,7 @@ CHANGES BETWEEN 2.6.2 and 2.6.3
======================================================================
-CHANGES BETWEEN 2.6.1 and 2.6.2
+CHANGES BETWEEN 2.6.1 and 2.6.2 (2015-Nov-28)
I. IMPORTANT CHANGES
@@ -958,7 +1108,7 @@ CHANGES BETWEEN 2.6.1 and 2.6.2
======================================================================
-CHANGES BETWEEN 2.6 and 2.6.1
+CHANGES BETWEEN 2.6 and 2.6.1 (2015-Oct-04)
I. IMPORTANT BUG FIXES
@@ -1039,7 +1189,7 @@ CHANGES BETWEEN 2.6 and 2.6.1
======================================================================
-CHANGES BETWEEN 2.5.5 and 2.6
+CHANGES BETWEEN 2.5.5 and 2.6 (2015-Jun-07)
I. IMPORTANT CHANGES
@@ -1145,7 +1295,7 @@ CHANGES BETWEEN 2.5.5 and 2.6
======================================================================
-CHANGES BETWEEN 2.5.4 and 2.5.5
+CHANGES BETWEEN 2.5.4 and 2.5.5 (2014-Dec-30)
I. IMPORTANT BUG FIXES
@@ -1155,7 +1305,7 @@ CHANGES BETWEEN 2.5.4 and 2.5.5
======================================================================
-CHANGES BETWEEN 2.5.3 and 2.5.4
+CHANGES BETWEEN 2.5.3 and 2.5.4 (2014-Dec-06)
I. IMPORTANT BUG FIXES
@@ -1226,7 +1376,7 @@ CHANGES BETWEEN 2.5.3 and 2.5.4
======================================================================
-CHANGES BETWEEN 2.5.2 and 2.5.3
+CHANGES BETWEEN 2.5.2 and 2.5.3 (2014-Mar-06)
I. IMPORTANT BUG FIXES
@@ -1294,7 +1444,7 @@ CHANGES BETWEEN 2.5.2 and 2.5.3
======================================================================
-CHANGES BETWEEN 2.5.1 and 2.5.2
+CHANGES BETWEEN 2.5.1 and 2.5.2 (2013-Dec-08)
I. IMPORTANT BUG FIXES
@@ -1318,7 +1468,7 @@ CHANGES BETWEEN 2.5.1 and 2.5.2
======================================================================
-CHANGES BETWEEN 2.5 and 2.5.1
+CHANGES BETWEEN 2.5 and 2.5.1 (2013-Nov-25)
I. IMPORTANT BUG FIXES
@@ -1422,7 +1572,7 @@ CHANGES BETWEEN 2.5 and 2.5.1
======================================================================
-CHANGES BETWEEN 2.4.12 and 2.5
+CHANGES BETWEEN 2.4.12 and 2.5 (2013-Jun-19)
I. IMPORTANT BUG FIXES
@@ -1502,7 +1652,7 @@ CHANGES BETWEEN 2.4.12 and 2.5
======================================================================
-CHANGES BETWEEN 2.4.11 and 2.4.12
+CHANGES BETWEEN 2.4.11 and 2.4.12 (2013-May-08)
- We have another CFF parsing and hinting engine! Written by Dave
Arnold <darnold@adobe.com>, this work has been contributed by
@@ -1590,7 +1740,7 @@ index ebcf189..3f2ce6b 100644
======================================================================
-CHANGES BETWEEN 2.4.10 and 2.4.11
+CHANGES BETWEEN 2.4.10 and 2.4.11 (2012-Dec-20)
I. IMPORTANT BUG FIXES
@@ -1650,7 +1800,7 @@ CHANGES BETWEEN 2.4.10 and 2.4.11
======================================================================
-CHANGES BETWEEN 2.4.9 and 2.4.10
+CHANGES BETWEEN 2.4.9 and 2.4.10 (2012-Jun-15)
I. IMPORTANT BUG FIXES
@@ -1675,7 +1825,7 @@ CHANGES BETWEEN 2.4.9 and 2.4.10
======================================================================
-CHANGES BETWEEN 2.4.8 and 2.4.9
+CHANGES BETWEEN 2.4.8 and 2.4.9 (2012-Mar-08)
I. IMPORTANT BUG FIXES
@@ -1703,7 +1853,7 @@ CHANGES BETWEEN 2.4.8 and 2.4.9
======================================================================
-CHANGES BETWEEN 2.4.7 and 2.4.8
+CHANGES BETWEEN 2.4.7 and 2.4.8 (2011-Nov-14)
I. IMPORTANT BUG FIXES
@@ -1719,7 +1869,7 @@ CHANGES BETWEEN 2.4.7 and 2.4.8
======================================================================
-CHANGES BETWEEN 2.4.6 and 2.4.7
+CHANGES BETWEEN 2.4.6 and 2.4.7 (2011-Oct-18)
I. IMPORTANT BUG FIXES
@@ -1736,7 +1886,7 @@ CHANGES BETWEEN 2.4.6 and 2.4.7
======================================================================
-CHANGES BETWEEN 2.4.5 and 2.4.6
+CHANGES BETWEEN 2.4.5 and 2.4.6 (2011-Jul-29)
I. IMPORTANT BUG FIXES
@@ -1775,7 +1925,7 @@ CHANGES BETWEEN 2.4.5 and 2.4.6
======================================================================
-CHANGES BETWEEN 2.4.4 and 2.4.5
+CHANGES BETWEEN 2.4.4 and 2.4.5 (2011-Jun-25)
I. IMPORTANT BUG FIXES
@@ -1822,7 +1972,7 @@ CHANGES BETWEEN 2.4.4 and 2.4.5
======================================================================
-CHANGES BETWEEN 2.4.3 and 2.4.4
+CHANGES BETWEEN 2.4.3 and 2.4.4 (2010-Nov-28)
I. IMPORTANT BUG FIXES
@@ -1847,7 +1997,7 @@ CHANGES BETWEEN 2.4.3 and 2.4.4
======================================================================
-CHANGES BETWEEN 2.4.2 and 2.4.3
+CHANGES BETWEEN 2.4.2 and 2.4.3 (2010-Oct-03)
I. IMPORTANT BUG FIXES
@@ -1866,7 +2016,7 @@ CHANGES BETWEEN 2.4.2 and 2.4.3
======================================================================
-CHANGES BETWEEN 2.4.1 and 2.4.2
+CHANGES BETWEEN 2.4.1 and 2.4.2 (2010-Aug-06)
I. IMPORTANT BUG FIXES
@@ -1890,7 +2040,7 @@ CHANGES BETWEEN 2.4.1 and 2.4.2
======================================================================
-CHANGES BETWEEN 2.4.0 and 2.4.1
+CHANGES BETWEEN 2.4.0 and 2.4.1 (2010-Jul-18)
I. IMPORTANT CHANGES
@@ -1900,7 +2050,7 @@ CHANGES BETWEEN 2.4.0 and 2.4.1
======================================================================
-CHANGES BETWEEN 2.3.12 and 2.4.0
+CHANGES BETWEEN 2.3.12 and 2.4.0 (2010-Jul-12)
I. IMPORTANT CHANGES
@@ -5299,7 +5449,7 @@ Extensions support:
------------------------------------------------------------------------
-Copyright (C) 2000-2020 by
+Copyright (C) 2000-2021 by
David Turner, Robert Wilhelm, and Werner Lemberg.
This file is part of the FreeType project, and may only be used,
diff --git a/freetype/docs/CUSTOMIZE b/freetype/docs/CUSTOMIZE
index 0f92e700..a03f9ddd 100644
--- a/freetype/docs/CUSTOMIZE
+++ b/freetype/docs/CUSTOMIZE
@@ -139,7 +139,7 @@ IV. Overriding default configuration and module headers
----------------------------------------------------------------------
-Copyright (C) 2003-2020 by
+Copyright (C) 2003-2021 by
David Turner, Robert Wilhelm, and Werner Lemberg.
This file is part of the FreeType project, and may only be used,
diff --git a/freetype/docs/DEBUG b/freetype/docs/DEBUG
index a96b5e27..4f358779 100644
--- a/freetype/docs/DEBUG
+++ b/freetype/docs/DEBUG
@@ -44,6 +44,21 @@ located in the file `ftoption.h'. The macros are:
When `FT2_DEBUG_MEMORY' isn't defined at runtime, the debugging
memory manager is ignored, and performance is unaffected.
+ FT_DEBUG_LOGGING
+
+ #define this macro for enhanced logging support; it automatically
+ sets `FT_DEBUG_LEVEL_TRACE' and `FT_DEBUG_LEVEL_ERROR'.
+
+ If defined, `FT_TRACE' and `FT_ERROR' can send tracing and
+ debugging messages to a file. The location of the log file has to
+ be set with the `FT_LOGGING_FILE' environment variable (more on
+ this later).
+
+ The main enhancements are the possibility of logging the time and
+ the name of the `FT_COMPONENT' macro together with the affected
+ `FT_TRACE' or `FT_ERROR' calls. See below how to activate this in
+ the `FT2_DEBUG' environment variable.
+
II. Debugging macros
--------------------
@@ -150,6 +165,43 @@ behaviour of FreeType at runtime.
the memory and io components, which are set to the trace levels 5
and 4, respectively.
+ If `FT_DEBUG_LOGGING' is defined, two more options are available.
+
+ * -v: Print also the name of FreeType's component from which the
+ current log is produced, together with the tracing level.
+
+ * -t: Print also the time.
+
+ Here are some examples how the output might look like.
+
+ FT2_DEBUG="any:7 memory:5 -vt"
+
+ => [20:32:02:44969 ttload:2] table directory loaded
+
+ FT2_DEBUG="any:7 memory:5 -t"
+
+ => [20:32:02:44969] table directory loaded
+
+ FT2_DEBUG="any:7 memory:5 -v"
+
+ => [ttload:2] table directory loaded
+
+
+ FT_LOGGING_FILE
+
+ This variable is only used if FreeType is built with the
+ `FT_DEBUG_LOGGING' macro defined. It contains the path to the
+ file where the user wants to put his log file. If it is not set,
+ FreeType uses stderr.
+
+ Examples:
+
+ On UNIX-like systems with bash:
+ export FT_LOGGING_FILE="/tmp/freetype2.log"
+
+ On Windows:
+ set FT_LOGGING_FILE=C:\Users\AppData\Local\Temp\freetype2.log
+
FT2_DEBUG_MEMORY
@@ -201,9 +253,51 @@ behaviour of FreeType at runtime.
If it is undefined, or if its value is not strictly positive,
freed blocks are released at runtime.
+
+IV. Additional Capabilities with `FT_DEBUG_LOGGING'
+---------------------------------------------------
+
+If `FT_DEBUG_LOGGING' is defined, four APIs are available to provide
+additional debugging support. Use
+
+ #include <freetype/ftlogging.h>
+
+to access them.
+
+ FT_Trace_Set_Level( const char* level )
+
+ By default, FreeType uses the tracing levels set in the
+ `FT2_DEBUG' environment variable. Use this function to override
+ the value with `level'. Use value `NULL' to disable tracing.
+
+ FT_Trace_Set_Default_Level():
+
+ Reset the tracing levels to the default value, i.e., the value of
+ the `FT2_DEBUG' environment variable or no tracing if not set.
+
+ FT_Set_Log_Handler( ft_custom_log_handler handler ):
+
+ Use `handler' as a custom handler for formatting tracing and error
+ messages. The `ft_custom_log_handler' typedef has the following
+ prototype.
+
+ void
+ (*ft_custom_log_handler)( const char* ft_component,
+ const char* fmt,
+ va_list args );
+
+ `ft_component' is the current component like `ttload', `fmt' is the
+ first argument of `FT_TRACE' or `FT_ERROR', and `args' holds the
+ remaining arguments.
+
+ FT_Set_Default_Log_Handler():
+
+ Reset the log handler to the default version.
+
+
------------------------------------------------------------------------
-Copyright (C) 2002-2020 by
+Copyright (C) 2002-2021 by
David Turner, Robert Wilhelm, and Werner Lemberg.
This file is part of the FreeType project, and may only be used,
diff --git a/freetype/docs/DOCGUIDE b/freetype/docs/DOCGUIDE
index 89617b42..499608d5 100644
--- a/freetype/docs/DOCGUIDE
+++ b/freetype/docs/DOCGUIDE
@@ -154,7 +154,7 @@ above for consistency.
Note that there may be cases where having two asterisks or underscores
in a line may lead to text being picked up as italics or bold.
-Although unintentional, this is correct markdown behavior.
+Although unintentional, this is correct markdown behavior.
For inline code, wrap the sequence with backticks (see below). This
renders symbols correctly without modifications. If a symbol is
@@ -201,7 +201,7 @@ Other sub-sections can be linked with the `@` symbol:
@description:
While FreeType's CFF driver doesn't expose API functions by
- itself, it is possible to control its behaviour with
+ itself, it is possible to control its behaviour with
@FT_Property_Set and @FT_Property_Get.
If a field in the `values` table of another sub-section is linked, the
@@ -285,7 +285,7 @@ is converted to
----------------------------------------------------------------------
-Copyright (C) 2018-2020 by
+Copyright (C) 2018-2021 by
Nikhil Ramakrishnan, David Turner, Robert Wilhelm, and Werner Lemberg.
This file is part of the FreeType project, and may only be used,
diff --git a/freetype/docs/INSTALL b/freetype/docs/INSTALL
index 814fc7bc..be56e02c 100644
--- a/freetype/docs/INSTALL
+++ b/freetype/docs/INSTALL
@@ -4,65 +4,89 @@ your system and the level of customization you need. Here is a short
overview of the documentation available:
-I. Normal installation and upgrades
-===================================
+I. Prerequisites and dependencies
+=================================
- 1. Unix Systems (including Mac OS X, Cygwin, and MSys on Windows)
+ FreeType is a low level C library that only depends on the standard
+ C library with very few platform-dependent optimizations utilized at
+ build time. Any C99-compliant compiler should be able to compile
+ FreeType. System libraries, such as zlib, Gzip, bzip2, Brotli,
+ and libpng, might be used to handle compressed fonts or decode
+ embedded PNG glyphs.
- Please read `INSTALL.UNIX' to install or upgrade FreeType 2 on a
+ FreeType auto-configuration scripts should be able to detect the
+ prerequisites if the necessary headers are available at the default
+ locations. Otherwise, modify `include/freetype/config/ftoption.h`
+ to control how the FreeType library gets built. Normally, you don't
+ need to change anything.
+
+ Applications have very limited control over FreeType's behaviour at
+ run-time; look at the documentation of function `FT_Property_Set`.
+
+
+II. Normal installation and upgrades
+====================================
+
+ 1. Unix and Unix-like systems
+
+ This also includes MacOS, Cygwin, MinGW + MSYS, Mingw-w64 + MSYS2,
+ and possibly other, similar environments.
+
+ Please read `INSTALL.UNIX` to install or upgrade FreeType 2 on a
Unix system. Note that you *need* GNU Make for automatic
compilation, since other make tools won't work (this includes BSD
Make).
GNU Make VERSION 3.81 OR NEWER IS NEEDED!
- [For `cmake' see below.]
+ 2. Other systems using GNU Make
- 2. On VMS with the `mms' build tool
+ On some non-Unix platforms, it is possible to build the library
+ using only the GNU Make utility. Note that *NO OTHER MAKE TOOL
+ WILL WORK*[1]! This methods supports several compilers on
+ Windows, OS/2, and BeOS, including MinGW* (without MSYS*), Visual
+ C++, Borland C++, and more.
- See `INSTALL.VMS' for installation instructions on this platform.
+ Instructions are provided in the file `INSTALL.GNU`.
- 3. Other systems using GNU Make
+ 3. Other build tools and platforms.
- On non-Unix platforms, it is possible to build the library using
- GNU Make utility. Note that *NO OTHER MAKE TOOL WILL WORK*[1]!
- This methods supports several compilers on Windows, OS/2, and
- BeOS, including MinGW, Visual C++, Borland C++, and more.
+ A few other tools can be used to build FreeType. You can find
+ the corresponding instruction files in the FreeType root folder
+ or the builds/ sub-folder.
- Instructions are provided in the file `INSTALL.GNU'.
+ CMake :: see `CMakeLists.txt` for more information
+ Meson :: see `meson.build` for more information
+ MSBuild :: see `builds/windows/vc2010/freetype.vcxproj`
+ MMS :: see `vms_make.com` and `docs/INSTALL.VMS`
4. With an IDE Project File (e.g., for Visual Studio or CodeWarrior)
- We provide a small number of `project files' for various IDEs to
+ We provide a small number of 'project files' for various IDEs to
automatically build the library as well. Note that these files
- are not supported and only sporadically maintained by FreeType
- developers, so don't expect them to work in each release.
+ are not actively supported by FreeType developers, they can break
+ or become obsolete.
- To find them, have a look at the content of the `builds/<system>'
+ To find them, have a look at the content of the `builds/<system>`
directory, where <system> stands for your OS or environment.
- 5. Using cmake
-
- See the top-level `CMakeLists.txt' file for more information.
-
-
- 6. From you own IDE, or own Makefiles
+ 5. From you own IDE, or own Makefiles
If you want to create your own project file, follow the
- instructions given in the `INSTALL.ANY' document of this
+ instructions given in the `INSTALL.ANY` document of this
directory.
-II. Custom builds of the library
-================================
+III. Custom builds of the library
+=================================
Customizing the compilation of FreeType is easy, and allows you to
select only the components of the font engine that you really need.
- For more details read the file `CUSTOMIZE'.
+ For more details read the file `CUSTOMIZE`.
----------------------------------------------------------------------
@@ -73,11 +97,11 @@ II. Custom builds of the library
https://makepp.sourceforge.net
for more information; you need version 2.0 or newer, and you must
- pass option `--norc-substitution'.
+ pass option `--norc-substitution`.
----------------------------------------------------------------------
-Copyright (C) 2000-2020 by
+Copyright (C) 2000-2021 by
David Turner, Robert Wilhelm, and Werner Lemberg.
This file is part of the FreeType project, and may only be used,
diff --git a/freetype/docs/INSTALL.ANY b/freetype/docs/INSTALL.ANY
index 879dddb8..31366131 100644
--- a/freetype/docs/INSTALL.ANY
+++ b/freetype/docs/INSTALL.ANY
@@ -10,7 +10,7 @@ I. Standard procedure
* If you use macro names for FreeType header files (while mandatory
in earlier versions, this is now optional since FreeType version
- 2.10.3) it is necessary to disable pre-compiled headers. This is
+ 2.6.1) it is necessary to disable pre-compiled headers. This is
very important for Visual C++, because lines like
#include FT_FREETYPE_H
@@ -21,9 +21,9 @@ I. Standard procedure
* You need to add the directory `include' to your include path when
compiling the library.
- * FreeType 2 is made of several components; each of them is located
- in a subdirectory of `freetype2/src'. For example,
- `freetype2/src/truetype/' contains the TrueType font driver.
+ * FreeType 2 is made of several components; each of them is located
+ in a subdirectory of `freetype/src'. For example,
+ `freetype/src/truetype/' contains the TrueType font driver.
* DO NOT COMPILE ALL C FILES! Rather, compile the following ones.
@@ -73,6 +73,7 @@ I. Standard procedure
formats)
src/raster/raster.c -- monochrome rasterizer
+ src/sdf/sdf.c -- Signed Distance Field driver
src/smooth/smooth.c -- anti-aliasing rasterizer
-- auxiliary modules (optional)
@@ -125,9 +126,9 @@ II. Support for flat-directory compilation
1. Copy all files in current directory
- cp freetype2/src/base/*.[hc] .
- cp freetype2/src/raster1/*.[hc] .
- cp freetype2/src/smooth/*.[hc] .
+ cp freetype/src/base/*.[hc] .
+ cp freetype/src/raster1/*.[hc] .
+ cp freetype/src/smooth/*.[hc] .
etc.
2. Compile sources
@@ -143,7 +144,7 @@ II. Support for flat-directory compilation
----------------------------------------------------------------------
-Copyright (C) 2003-2020 by
+Copyright (C) 2003-2021 by
David Turner, Robert Wilhelm, and Werner Lemberg.
This file is part of the FreeType project, and may only be used,
diff --git a/freetype/docs/INSTALL.CROSS b/freetype/docs/INSTALL.CROSS
index 85118056..f57b14c8 100644
--- a/freetype/docs/INSTALL.CROSS
+++ b/freetype/docs/INSTALL.CROSS
@@ -163,7 +163,7 @@ procedure.
----------------------------------------------------------------------
-Copyright (C) 2006-2020 by
+Copyright (C) 2006-2021 by
suzuki toshiya, David Turner, Robert Wilhelm, and Werner Lemberg.
diff --git a/freetype/docs/INSTALL.GNU b/freetype/docs/INSTALL.GNU
index 8fdbb825..a04e6fc1 100644
--- a/freetype/docs/INSTALL.GNU
+++ b/freetype/docs/INSTALL.GNU
@@ -11,9 +11,6 @@ instructions in the file `INSTALL.UNIX' instead.
1. Install GNU Make
-------------------
- Because GNU Make is the only Make tool supported to compile
- FreeType 2, you should install it on your machine.
-
The FreeType 2 build system relies on many features special to GNU
Make.
@@ -100,6 +97,28 @@ instructions in the file `INSTALL.UNIX' instead.
step 5.
+ 3a. Use clang instead of gcc
+ ----------------------------
+
+ The `clang' compiler can use FreeType's setup for `gcc'; it is
+ sufficient to set the `CC' variable, for example
+
+ make CC=clang
+
+
+ 3b. Compiling with a C++ compiler
+ ---------------------------------
+
+ FreeType can be built with a C++ compiler, for example
+
+ make CC="g++"
+
+ If `clang++' should be used it is necessary to also override the
+ `ANSIFLAGS' variable:
+
+ make CC="clang++" ANSIFLAGS=""
+
+
4. Configure the build system for an unknown platform/compiler
--------------------------------------------------------------
@@ -133,7 +152,8 @@ instructions in the file `INSTALL.UNIX' instead.
To launch the build, simply invoke GNU Make again: The top
Makefile will detect the configuration file and run the build with
- it.
+ it. If you have used variables in step 3, you must use the same
+ variables here, too.
Final note
@@ -148,7 +168,7 @@ instructions in the file `INSTALL.UNIX' instead.
----------------------------------------------------------------------
-Copyright (C) 2003-2020 by
+Copyright (C) 2003-2021 by
David Turner, Robert Wilhelm, and Werner Lemberg.
This file is part of the FreeType project, and may only be used,
diff --git a/freetype/docs/INSTALL.UNIX b/freetype/docs/INSTALL.UNIX
index f8d220ac..ff4eabed 100644
--- a/freetype/docs/INSTALL.UNIX
+++ b/freetype/docs/INSTALL.UNIX
@@ -44,14 +44,23 @@ or MSys on Win32:
sh autogen.sh
- In case of problems, you may need to install or upgrade Automake,
- Autoconf or Libtool. See README.git in the top-level directory
+ In case of problems, you may need to install or upgrade Automake,
+ Autoconf or Libtool. See `README.git' in the top-level directory
for more information.
3. Build and install the library
--------------------------------
+ Say
+
+ ./configure --help
+
+ to see the list of possible configuration options and important
+ environment variables. The ./configure script will detect some
+ prerequisite system libraries (libpng, brotli, etc.) if their
+ headers are available at the default locations.
+
The following should work on all Unix systems where the `make'
command invokes GNU Make:
@@ -75,6 +84,18 @@ or MSys on Win32:
If this still doesn't work, there must be a problem with your
system (e.g., you are using a very old version of GNU Make).
+ For library identification, FreeType's `configure' script uses the
+ `pkg-config' interface: Assuming it needs library `foo', it calls
+ the `pkg-config' program to find information on library `foo',
+ which in turn looks for a `foo.pc' file installed at the system.
+ Some platforms, however, don't come with `pkg-support'; you then
+ have to use environment variables as described by `configure
+ --help'. Example:
+
+ LIBPNG_CFLAGS="-I/path/to/libpng/include/directory" \
+ LIBPNG_LIBS="-L/path/to/libpng/lib/directory" \
+ configure ...
+
It is possible to compile FreeType in a different directory.
Assuming the FreeType source files in directory `/src/freetype' a
compilation in directory `foo' works as follows:
@@ -105,7 +126,7 @@ or MSys on Win32:
----------------------------------------------------------------------
-Copyright (C) 2003-2020 by
+Copyright (C) 2003-2021 by
David Turner, Robert Wilhelm, and Werner Lemberg.
This file is part of the FreeType project, and may only be used,
diff --git a/freetype/docs/INSTALL.VMS b/freetype/docs/INSTALL.VMS
index e1817ec6..f0dec3bd 100644
--- a/freetype/docs/INSTALL.VMS
+++ b/freetype/docs/INSTALL.VMS
@@ -49,7 +49,7 @@ V7.2-1.
------------------------------------------------------------------------
-Copyright (C) 2000-2020 by
+Copyright (C) 2000-2021 by
David Turner, Robert Wilhelm, and Werner Lemberg.
This file is part of the FreeType project, and may only be used,
diff --git a/freetype/docs/TODO b/freetype/docs/TODO
index 8b27e269..ecc1efdb 100644
--- a/freetype/docs/TODO
+++ b/freetype/docs/TODO
@@ -27,7 +27,7 @@ Other bugs have been registered at the savannah bugzilla of FreeType.
------------------------------------------------------------------------
-Copyright (C) 2001-2020 by
+Copyright (C) 2001-2021 by
David Turner, Robert Wilhelm, and Werner Lemberg.
This file is part of the FreeType project, and may only be used,
diff --git a/freetype/docs/VERSIONS.TXT b/freetype/docs/VERSIONS.TXT
index 4e281a72..afe50a4c 100644
--- a/freetype/docs/VERSIONS.TXT
+++ b/freetype/docs/VERSIONS.TXT
@@ -60,6 +60,8 @@ found on _most_ systems, but not all of them:
release libtool so
-------------------------------
+ 2.11.1 24.1.18 6.18.1
+ 2.11.0 24.0.18 6.18.0
2.10.4 23.4.17 6.17.4
2.10.3 23.3.17 6.17.3
2.10.2 23.2.17 6.17.2
@@ -117,7 +119,7 @@ other release numbers.
----------------------------------------------------------------------
-Copyright (C) 2002-2020 by
+Copyright (C) 2002-2021 by
David Turner, Robert Wilhelm, and Werner Lemberg.
This file is part of the FreeType project, and may only be used,
diff --git a/freetype/docs/formats.txt b/freetype/docs/formats.txt
index e640fab2..1c25ac00 100644
--- a/freetype/docs/formats.txt
+++ b/freetype/docs/formats.txt
@@ -79,8 +79,7 @@ which isn't supported yet please send a mail too.
SFNT PS TYPE_1 --- type1 Type 1 GX Font Format
(for the Mac) [3]
- SFNT PS TYPE_1 CID cid 5180.sfnt.pdf (for the Mac)
- [3]
+ SFNT PS TYPE_1 CID cid 5180.sfnt.pdf (for the Mac) [3]
SFNT PS CFF --- cff OT spec, 5176.CFF.pdf
(`OTTO' format)
SFNT PS CFF CID cff OT spec, 5176.CFF.pdf
@@ -97,6 +96,12 @@ which isn't supported yet please send a mail too.
(`?var' + `?VAR' tables)
+ WOFF --- --- --- cff, Compressed SFNT, ver. 1.0 [6]
+ truetype
+ WOFF2 --- --- --- cff, Compressed SFNT, ver. 2.0 [6]
+ truetype
+
+
--- PS TYPE_1 --- type1 T1_SPEC.pdf
(PFA, Type 1 font resource)
PFB PS TYPE_1 --- type1 T1_SPEC.pdf,
@@ -185,13 +190,17 @@ which isn't supported yet please send a mail too.
https://fontforge.github.io/pcf-format.html
-[5] This is from MS Windows 3; see Microsoft's Knowledge Base article at
+[5] This is from MS Windows 3; see Microsoft's Knowledge Base article
+ at
https://support.microsoft.com/kb/65123
+[6] Supported font formats are TrueType and OpenType fonts as
+ defined in the OpenType specification 1.6 and newer.
+
------------------------------------------------------------------------
-Copyright (C) 2004-2020 by
+Copyright (C) 2004-2021 by
David Turner, Robert Wilhelm, and Werner Lemberg.
This file is part of the FreeType project, and may only be used,
diff --git a/freetype/docs/freetype-config.1 b/freetype/docs/freetype-config.1
index 7dea66af..8145c9f2 100644
--- a/freetype/docs/freetype-config.1
+++ b/freetype/docs/freetype-config.1
@@ -1,4 +1,4 @@
-.TH FREETYPE-CONFIG 1 "October 2020" "FreeType 2.10.4"
+.TH FREETYPE-CONFIG 1 "December 2021" "FreeType 2.11.1"
.
.
.SH NAME
diff --git a/freetype/docs/oldlogs/ChangeLog.20 b/freetype/docs/oldlogs/ChangeLog.20
new file mode 100644
index 00000000..15ae8fe9
--- /dev/null
+++ b/freetype/docs/oldlogs/ChangeLog.20
@@ -0,0 +1,2613 @@
+2002-02-09 Werner Lemberg <wl@gnu.org>
+
+ * README: Fix typo.
+ * docs/CHANGES: Minor fixes.
+
+
+ * Version 2.0.8 released.
+ =========================
+
+
+2002-02-08 David Turner <david@freetype.org>
+
+ * docs/CHANGES: Updating for 2.0.8.
+
+ * include/freetype/freetype.h: Setting `PATCH_LEVEL' to 8 and
+ removing `FT_Get_Next_Char' from the API (temporarily).
+
+ * include/freetype/freetype.h: Adding comments to FT_Get_Next_Char;
+ note that this function might temporarily be removed for the 2.0.8
+ release.
+
+2002-02-07 David Turner <david@freetype.org>
+
+ * src/pcf/pcfread.c (pcf_load_font): Removed immature support of
+ the AVERAGE_WIDTH property.
+
+2002-02-06 David Turner <david@freetype.org>
+
+ * src/sfnt/sfobjs.c (SFNT_Load_Face): Since many fonts embedded in
+ PDF documents do not include 'cmap', 'post' and 'name' tables, the
+ SFNT face loader has been changed to not immediately report an
+ error if these are not present.
+
+ Note that the specification _requires_ these tables, but Adobe
+ seems to ignore it completely.
+
+ * src/sfnt/ttcmap.c: Removing compiler warnings.
+
+ * src/pcf/pcfread.c (pcf_read_TOC): Use FT_UInt.
+ (pcf_parse_metric, pcf_parse_compressed_metric): Removed. Code
+ is now in ...
+ (pcf_get_metric): Here.
+ (pcfSeekToType): Renamed to ...
+ (pcf_seek_to_table_type): This.
+ Use FT_Int.
+ (pcfHasType): Renamed to ...
+ (pcf_has_table_type): This.
+ Use FT_Int.
+ (find_property): Renamed to ...
+ (pcf_find_property): This.
+ Use FT_Int.
+ (pcf_get_bitmaps, pcf_get_encodings): Handle invalid PCF fonts
+ better (delaying format checks out of FT_Access_Frame ..
+ FT_Forget_Frame blocks to avoid leaving the stream in an incorrect
+ state when encountering an invalid PCF font).
+
+ * src/pcf/pcfdriver.c (PCF_Done_Face): Renamed to ...
+ (PCF_Face_Done): This.
+ (PCF_Init_Face): Renamed to ...
+ (PCF_Face_Init): This.
+ (PCF_Get_Char_Index): Renamed to ...
+ (PCF_Char_Get_Index): This.
+ (PCF_Get_Next_Char): Renamed to ...
+ (PCF_Char_Get_Next): This.
+ (pcf_driver_class): Updated.
+
+ * src/pcf/pcf.h (PCF_Done_Face): Removed.
+
+2002-02-06 Detlef Würkner <TetiSoft@apg.lahn.de>
+
+ * src/pcf/pcfdriver.c (FT_Done_Face): Fixed small memory leak.
+
+ * src/pcf/pcfread.c (pcf_load_font): Now handles the `AVERAGE_WIDTH'
+ property to return correct character pixel (width/height) pairs for
+ embedded bitmaps.
+
+2002-02-04 Keith Packard <keithp@keithp.com>
+
+ Adding the function `FT_Get_Next_Char', doing the obvious thing
+ w.r.t. the selected charmap.
+
+ * include/freetype/freetype.h: Add prototype.
+ * include/freetype/internal/ftdriver.h: Add `FTDriver_getNextChar'
+ typedef.
+ (FT_Driver_Class): Use it.
+ * include/freetype/internal/psnames.h: Add `PS_Next_Unicode_Func'
+ typedef.
+ (PSNames_Interface): Use it.
+ * include/freetype/internal/tttypes.h: Add `TT_CharNext_Func'
+ typedef.
+ (TT_CMapTable): Use it.
+
+ * src/base/ftobjs.c (FT_Get_Next_Char): New function, implementing
+ high-level API.
+ * src/cff/cffdrivr.c (cff_get_next_char): New function.
+ (cff_driver_class): Add it.
+ * src/cid/cidriver.c (Cid_Get_Next_Char): New function.
+ (t1cid_driver_class): Add it.
+ * src/pcf/pcfdriver.c (PCF_Get_Next_Char): New function.
+ (pcf_driver_class): Add it.
+ * src/psnames/psmodule.c (PS_Next_Unicode): New function.
+ (psnames_interface): Add it.
+ * src/sfnt/ttcmap.c (code_to_next0, code_to_next2, code_to_next4,
+ code_to_next6, code_to_next_8_12, code_to_next_10): New auxiliary
+ functions.
+ (TT_CharMap_Load): Use them.
+ * src/truetype/ttdriver.c (Get_Next_Char): New function.
+ (tt_driver_class): Add it.
+ * src/type1/t1driver.c (Get_Next_Char): New function.
+ (t1_driver_class): Add it.
+ * src/winfonts/winfnt.c (FNT_Get_Next_Char): New function.
+ (winfnt_driver_class): Add it.
+
+ * src/pcf/pcfread.c (pcf_load_font): For now, report Unicode for
+ Unicode and Latin 1 encodings.
+
+2002-02-02 Keith Packard <keithp@keithp.com>
+
+ * builds/unix/freetype-config.in: Add missing `fi'.
+
+
+ * Version 2.0.7 released.
+ =========================
+
+
+2002-02-01 David Turner <david@freetype.org>
+
+ * include/freetype/freetype.h: Increasing FREETYPE_PATCH to 7
+ for the new release.
+
+2002-01-31 David Turner <david@freetype.org>
+
+ * README, README.UNX, docs/CHANGES: Updating documentation for the
+ 2.0.7 release.
+
+2002-01-30 David Turner <david@freetype.org>
+
+ * INSTALL: Moved to ...
+ * docs/INSTALL: Here to avoid conflicts with the `install' script on
+ Windows, where the filesystem doesn't preserve case.
+
+2002-01-29 David Turner <david@freetype.org>
+
+ * configure: Fixed the script. It previously didn't accept more
+ than one argument correctly. For example, when typing:
+
+ ./configure --disable-shared --disable-nls
+
+ the `--disable-nls' was incorrectly sent to the `make' program.
+
+2002-01-29 Werner Lemberg <wl@gnu.org>
+
+ * README.UNX: Fix typo.
+ * builds/unix/install.mk (uninstall): Fix library name for libtool.
+
+2002-01-28 Francesco Zappa Nardelli <Francesco.Zappa.Nardelli@ens.fr>
+
+ * src/pcf/pcfdriver.c (PCF_Done_Face): Fix incorrect destruction of
+ the face object (face->toc.tables, face->root.family_name,
+ face->root.available_size, face->charset_encoding,
+ face->charset_registry are now freed). Thanks to Niels Moseley.
+
+2002-01-28 Roberto Alameda <ojancano@geekmail.de>
+
+ * src/type1/t1load.c (parse_encoding): Set `loader->num_chars'.
+
+2002-01-28 Werner Lemberg <wl@gnu.org>
+
+ * src/type1/t1load.c (parse_subrs, parse_charstrings): Use copy
+ of `base' string for decrypting to not modify the original data.
+ Based on a patch by Jakub Bogusz <qboosh@pld.org.pl>.
+
+2002-01-27 Giuliano Pochini <pochini@shiny.it>
+
+ * src/smooth/ftgrays.c (gray_render_scanline): Fix bug which caused
+ bad rendering of thin lines (less than one pixel thick).
+
+2002-01-25 Werner Lemberg <wl@gnu.org>
+
+ * src/cff/cffdrivr.c (cff_get_name_index): Make last patch work
+ actually.
+
+2002-01-25 Martin Zinser <zinser@decus.de>
+
+ * src/cache/ftccache.c (ftc_node_done, ftc_node_destroy): Fix
+ compilation warnings.
+ * src/base/descrip.mms (OBJS): Add `ftmm.obj'.
+ * src/cache/descrip.mms (ftcache.obj): Dependencies added.
+
+2002-01-25 WANG Yi <wangyi@founder.com.cn>
+
+ * src/cff/cffdrivr.c (cff_get_name_index): Fix deallocation bug.
+
+2002-01-21 Antoine Leca <Antoine-Freetype@Leca-Marti.org>
+
+ * docs/PATENTS: Typo fixed (thanks to Detlef `Hawkeye' Würkner) in
+ the URL for the online resource.
+
+2002-01-18 Ian Brown <ian.brown@printsoft.de>
+
+ * builds/win32/ftdebug.c: New file.
+ * builds/win32/visualc/freetype.dsp: Updated.
+
+2002-01-18 Detlef Würkner <TetiSoft@apg.lahn.de>
+
+ * builds/amiga/src/base/ftsystem.c: Updated for AmigaOS 3.9.
+ * builds/amiga/README: Updated.
+
+2002-01-18 Ian Brown <ian.brown@printsoft.de>
+
+ * builds/win32/visualc/freetype.dsp: Updated.
+
+2002-01-13 Werner Lemberg <wl@gnu.org>
+
+ * builds/unix/freetype2.a4: The script was still buggy.
+ * builds/unix/freetype-config.in: Make it really work for any install
+ prefix.
+
+2002-01-10 Werner Lemberg <wl@gnu.org>
+
+ * builds/unix/freetype2.a4: Fix some serious bugs.
+
+2002-01-09 David Turner <david@freetype.org>
+
+ * builds/unix/configure.ac: Build top-level Jamfile.
+
+2002-01-09 Maxim Shemanarev <mcseemagg@yahoo.com>
+
+ * src/smooth/ftgrays.c (gray_render_line): Small optimization to
+ the smooth anti-aliased renderer that deals with vertical segments.
+ This results in a 5-7% speedup in rendering speed.
+
+2002-01-08 David Turner <david@freetype.org>
+
+ Added some wrapper scripts to make the installation more
+ Unix-friendly.
+
+ * configure, install: New files.
+
+ * INSTALL, README.UNX: Updated installation documentation to use the
+ new 'configure' and 'install' scripts.
+
+2002-01-07 David Turner <david@freetype.org>
+
+
+ * Version 2.0.6 released.
+ =========================
+
+
+ * docs/BUGS, docs/CHANGES: Updating documentation for 2.0.6 release.
+
+ * src/tools/docmaker.py: Fixed HTML quoting in sources.
+ (html_format): Replaced with ...
+ (html_quote): New function.
+ (html_quote0): New function.
+ (DocCode::dump_html): Small improvement.
+ (DocParagraph::dump, DocBlock::html): Use html_quote0 and html_quote.
+
+ * include/freetype/config/ftoption.h: Setting default options for
+ a release build (debugging off, bytecode interpreter off).
+
+ * src/base/ftobjs.c, src/base/ftoutln.c, src/cache/ftccmap.c,
+ src/cff/cffload.c, src/cff/cffobjs.c, src/pshinter/pshalgo2.c,
+ src/sfnt/ttload.c, src/sfnt/ttsbit.c: Removing small compiler
+ warnings (in pedantic compilation modes).
+
+2002-01-05 David Turner <david@freetype.org>
+
+ * src/autohint/ahhint.c (ah_align_linked_edge): Modified computation
+ of auto-hinted stem widths; this avoids color fringes in
+ `ClearType-like' rendering.
+
+ * src/truetype/ttgload.c (TT_Load_Glyph_Header,
+ TT_Load_Simple_Glyph, TT_Load_Composite_Glyph, load_truetype_glyph):
+ Modified the TrueType loader to make it more paranoid; this avoids
+ nasty buffer overflows in the case of invalid glyph data (as
+ encountered in the output of some buggy font converters).
+
+2002-01-04 David Turner <david@freetype.org>
+
+ * README.UNX: Added special README file for Unix users.
+
+ * builds/unix/ftsystem.c (FT_New_Stream): Fixed typo.
+
+ * src/base/ftobjs.c: Added #include FT_OUTLINE_H to get rid
+ of compiler warnings.
+
+ * src/base/ftoutln.c (FT_Outline_Check): Remove compiler warning.
+
+2002-01-03 Werner Lemberg <wl@gnu.org>
+
+ * src/type1/t1objs.c (T1_Face_Init): Add cast to avoid compiler
+ warning.
+
+2002-01-03 Keith Packard <keithp@keithp.com>
+
+ * builds/unix/ftsystem.c (FT_New_Stream): Added a fix to ensure that
+ all FreeType input streams are closed in child processes of a `fork'
+ on Unix systems. This is important to avoid (potential) access
+ control issues.
+
+2002-01-03 David Turner <david@freetype.org>
+
+ * src/type1/t1objs.c (T1_Face_Init): Fixed a bug that crashed the
+ library when dealing with certain weird fonts like `Stalingrad', in
+ `sadn.pfb' (this font has no full font name entry).
+
+ * src/base/ftoutln.c, include/freetype/ftoutln.h (FT_Outline_Check):
+ New function to check the consistency of outline data.
+
+ * src/base/ftobjs.c (FT_Load_Glyph): Use `FT_Outline_Check' to
+ ensure that loaded glyphs are valid. This allows certain fonts like
+ `tt1095m_.ttf' to be loaded even though it appears they contain
+ really funky glyphs.
+
+ There still is a bug there, though.
+
+ * src/truetype/ttgload.c (load_truetype_glyph): Fix error condition.
+
+2001-12-30 David Turner <david@freetype.org>
+
+ * src/autohint/ahhint.c (ah_hinter_load): Fix advance width
+ computation of auto-hinted glyphs. This noticeably improves the
+ spacing of letters in KDE and Gnome.
+
+2001-12-25 Antoine Leca <Antoine-Freetype@Leca-Marti.org>
+
+ * builds/dos/detect.mk: Correcting the order for Borland compilers:
+ 16-bit bcc was never selected, always overridden by 32-bit bcc32.
+
+2001-12-22 Francesco Zappa Nardelli <Francesco.Zappa.Nardelli@ens.fr>
+
+ * src/pcf/pcfread.c (pcf_load_font): Handle property `POINT_SIZE'
+ and fix incorrect computation of `available_sizes'.
+
+2001-12-22 David Turner <david@freetype.org>
+
+ * src/autohint/ahhint.c (ah_hinter_load): Auto-hinted glyphs had an
+ incorrect glyph advance in the case of mono-width fonts (like
+ Courier, Andale Mono, and others).
+
+2001-12-22 Detlef Würkner <TetiSoft@apg.lahn.de>
+
+ * builds/amiga/*: Adaptations to latest changes.
+ Support added for MorphOS.
+
+2001-12-22 Werner Lemberg <wl@gnu.org>
+
+ * src/pshinter/pshrec.c (FT_COMPONENT): Redefine to `trace_pshrec'.
+ (ps_mask_table_merge, ps_hints_open, ps_hints_stem,
+ ps_hints_t1stem3, ps_hints_t2mask, ps_hints_t2counter): Fix
+ FT_ERROR messages.
+ * src/pshinter/pshalgo1.c (FT_COMPONENT): Define as
+ `trace_pshalgo1'.
+ * src/pshinter/pshalgo2.c (FT_COMPONENT): Define as
+ `trace_pshalgo2'.
+ * include/freetype/internal/ftdebug.h (FT_Trace): Updated.
+
+ * docs/modules.txt: New file.
+
+2001-12-21 David Turner <david@freetype.org>
+
+ * src/pshinter/pshrec.c (ps_hints_t2mask, ps_hints_t2counter):
+ Ignore invalid `hintmask' and `cntrmask' operators (instead of
+ returning an error). Glyph 2028 of the CFF font `MSung-Light-Acro'
+ couldn't be rendered otherwise (it seems its charstring is buggy,
+ though this requires more analysis).
+ (FT_COMPONENT): Define.
+
+ * src/cff/cffgload.c (CFF_Parse_CharStrings), src/psaux/t1decode.c
+ (T1_Decoder_Parse_Charstrings), src/pshinter/pshalgo2.c (*), Fixed a
+ bug where the X and Y axis where inverted in the postscript hinter.
+ This caused problem when displaying on non-square surfaces.
+
+ * src/pshinter/pshalgo2.c: s/vertical/dimension/.
+
+ * src/pshinter/pshglob.c (psh_globals_new): Replaced a floating
+ point constant with a fixed-float equivalent. For some reasons not
+ all compilers are capable of directly computing a floating pointer
+ constant casted to FT_Fixed, and will link a math library instead.
+
+2001-12-20 Werner Lemberg <wl@gnu.org>
+
+ * src/cache/ftccache.c (ftc_node_destroy, ftc_cache_lookup): Fix
+ tracing strings.
+ * src/cache/ftccmap.c (ftc_cmap_family_init): Ditto.
+ * src/cache/ftcmanag.c (ftc_family_table_alloc,
+ ftc_family_table_free, FTC_Manager_Check): Ditto.
+ * src/cache/ftcsbits.c (ftc_sbit_node_load): Ditto.
+
+ * src/base/ftobjs.c (FT_Done_Library): Remove compiler warning.
+
+2001-12-20 David Turner <david@freetype.org>
+
+ Added PostScript hinter support to the CFF and CID drivers.
+
+ * include/freetype/internal/cfftypes.h (CFF_Font): New member
+ `pshinter'.
+ * src/cff/cffload.c (CFF_Get_Standard_Encoding): New function.
+ * src/cff/cffload.h: Updated.
+ * src/cff/cffgload.c (CFF_Init_Builder): Renamed to ...
+ (CFF_Builder_Init): This.
+ Added new argument `hinting'.
+ (CFF_Done_Builder): Renamed to ...
+ (CFF_Builder_Done): This.
+ (CFF_Init_Decoder): Added new argument `hinting'.
+ (CFF_Parse_CharStrings): Implement vstem support.
+ (CFF_Load_Glyph): Updated.
+ Add hinting support.
+ (cff_lookup_glyph_by_stdcharcode): Use CFF_Get_Standard_Encoding().
+ (cff_argument_counts): Updated.
+ * src/cff/cffgload.h: Updated.
+ * src/cff/cffobjs.c: Include FT_INTERNAL_POSTSCRIPT_HINTS_H.
+ (CFF_Size_Get_Globals_Funcs, CFF_Size_Done, CFF_Size_Init,
+ CFF_Size_Reset, CFF_GlyphSlot_Done, CFF_GlyphSlot_Init): New
+ functions.
+ (CFF_Init_Face): Renamed to ...
+ (CFF_Face_Init): This.
+ Add hinter support.
+ (CFF_Done_Face): Renamed to ...
+ (CFF_Face_Done): This.
+ (CFF_Init_Driver): Renamed to ...
+ (CFF_Driver_Init): This.
+ (CFF_Done_Driver): Renamed to ...
+ (CFF_Driver_Done): This.
+ * src/cff/cffobjs.h: Updated.
+ * src/cff/cffdrivr.c (cff_driver_class): Updated.
+
+ * include/freetype/internal/t1types.h (CID_FaceRec): New member
+ `pshinter'.
+ * src/cid/cidgload.c (CID_Load_Glyph): Add hinter support.
+ * src/cid/cidobjs.c: Include FT_INTERNAL_POSTSCRIPT_HINTS_H.
+ (CID_GlyphSlot_Done, CID_GlyphSlot_Init, CID_Size_Get_Globals_Funcs,
+ CID_Size_Done, CID_Size_Init, CID_Size_Reset): New functions.
+ (CID_Done_Face): Renamed to ...
+ (CID_Face_Done): This.
+ (CID_Init_Face): Renamed to ...
+ (CID_Face_Init): This.
+ Add hinting support.
+ (CID_Init_Driver): Renamed to ...
+ (CID_Driver_Init): This.
+ (CID_Done_Driver): Renamed to ...
+ (CID_Driver_Done): This.
+ * src/cid/cidobjs.h: Updated.
+ * src/cidriver.c: Updated.
+
+ * src/pshinter/pshrec.c (t2_hint_stems): Fixed.
+
+ * src/base/ftobjs.c (FT_Done_Library): Fixed a stupid bug that
+ crashed the library on exit.
+
+ * src/type1/t1gload.c (T1_Load_Glyph): Enable font matrix
+ transformation of hinted glyphs.
+
+ * src/cid/cidload.c (cid_read_subrs): Fix error condition.
+
+ * src/cid/cidobjs.c (CID_Face_Done): Fixed a memory leak; the subrs
+ routines were never released when CID faces were destroyed.
+
+ * src/cff/cffload.h, src/cff/cffload.c, src/cff/cffgload.c: Updated
+ to move the definition of encoding tables back within `cffload.c'
+ instead of making them part of a shared header (causing problems in
+ `multi' builds). This reverts change 2001-08-08.
+
+ * docs/CHANGES: Updated for 2.0.6 release.
+ * docs/TODO: Added `stem3 and counter hints support' to the TODO
+ list for the Postscript hinter.
+ * docs/BUGS: Closed the AUTOHINT-NO-SBITS bug.
+
+2001-12-19 David Turner <david@freetype.org>
+
+ * include/freetype/cache/ftcache.h: Added comments to indicate that
+ some of the exported functions should only be used by applications
+ that need to implement custom cache types.
+
+ * src/truetype/ttgload.c (cur_to_org, org_to_cur): Fixed a nasty bug
+ that prevented composites from loading correctly, due to missing
+ parentheses around macro parameters.
+
+ * src/sfnt/sfobjs.c (SFNT_Load_Face): Make the `post' and `name'
+ tables optional to load PCL fonts properly.
+
+ * src/truetype/ttgload.c (TT_Load_Glyph), src/base/ftobjs.c
+ (FT_Load_Glyph), include/freetype/freetype.h (FT_LOAD_SBITS_ONLY):
+ `Fixed' the bug that prevented embedded bitmaps to be loaded when
+ the auto-hinter is used. This actually is a hack but will be enough
+ until the internal re-design scheduled for FreeType 2.1.
+
+ * src/raster/ftrend1.c (ft_raster1_render): Fixed a nasty outline
+ shifting bug in the monochrome renderer.
+
+ * README: Updated version numbers to 2.0.6.
+
+2001-12-17 Werner Lemberg <wl@gnu.org>
+
+ * src/truetype/ttgload.c (load_truetype_glyph): Fix test for invalid
+ glyph header.
+
+2001-12-15 Werner Lemberg <wl@gnu.org>
+
+ * src/base/ftglyph.c (FT_Glyph_To_Bitmap): Remove compiler warning.
+ * include/freetype/ftcache.h (FTC_Node_Unref): Removed. It is
+ already in ftcmanag.h.
+ * src/cache/ftcsbits.c (ftc_sbit_node_load): Remove unused variable
+ `gfam'.
+ * src/cache/ftcmanag.c (ftc_family_table_alloc,
+ * ftc_family_table_free): Use FT_EXPORT_DEF.
+ * include/freetype/cache/ftcmanag.h: Updated.
+ * src/cache/ftccache.c (ftc_node_destroy): Use FT_EXPORT_DEF.
+ * src/cache/ftccmap.c (ftc_cmap_node_init): Remove unused variable
+ `cfam'.
+ Remove compiler warning.
+ (FTC_CMapCache_Lookup): Remove compiler warnings.
+ (ftc_cmap_family_init): Ditto.
+ (FTC_CMapCache_Lookup): Ditto.
+
+ * builds/unix/configure.ac: Increase `version_info' to 8:0:2.
+ * builds/unix/configure: Regenerated.
+
+2001-12-14 Werner Lemberg <wl@gnu.org>
+
+ * builds/mac/README: Updated.
+
+2001-12-14 Scott Long <scott@swiftview.com>
+
+ * src/truetype/ttgload.c (load_truetype_glyph): Fixing crash when
+ dealing with invalid fonts (i.e. glyph size < 10 bytes).
+
+2001-12-14 Sam Latinga <slouken@devolution.com>
+
+ * builds/mac/freetype.make: A new Makefile to build with MPW on
+ MacOS classic.
+
+2001-12-14 David Turner <david@freetype.org>
+
+ * src/truetype/ttgload.c (TT_Load_Glyph), src/type1/t1gload.c
+ (T1_Load_Glyph), src/cid/cidgload.c (CID_Load_Glyph),
+ src/cff/cffgload.c (CFF_Load_Glyph): Fixed a serious bug common to
+ all font drivers (the advance width was never hinted when it
+ should).
+
+ * include/freetype/freetype.h (FREETYPE_PATCH): New macro.
+ * src/base/ftdbgmem.c (debug_mem_dummy) [!FT_DEBUG_MEMORY]: Don't
+ use `extern' keyword.
+
+2001-12-12 David Turner <david@freetype.org>
+
+ * src/pshinter/pshglob.c (psh_blues_scale_zones, psh_blues_snap_stem
+ psh_globals_new): Adding correct BlueScale/BlueShift support, plus
+ family blues processing.
+ * src/pshinter/pshglob.h (PSH_BluesRec): Updated.
+
+ Started adding support for the Postscript hinter in the CFF module.
+
+ * src/cff/cffgload.c: Include FT_INTERNAL_POSTSCRIPT_HINTS_H.
+ (CFF_Parse_CharStrings): Implement it.
+ * src/cff/cffgload.h: Updated.
+
+2001-12-12 Werner Lemberg <wl@gnu.org>
+
+ * builds/unix/freetype2.m4: Some portability fixes.
+
+2001-12-11 Jouk Jansen <joukj@hrem.stm.tudelft.nl>
+
+ * src/base/descrip.mms (OBJS): Add ftdebug.obj.
+
+2001-12-11 Werner Lemberg <wl@gnu.org>
+
+ * src/sfnt/ttload.c (TT_Load_Generic_Header): Typos.
+
+2001-12-11 David Turner <david@freetype.org>
+
+ * builds/unix/freetype-config.in: Modified the script to prevent
+ passing `-L/usr/lib' to gcc.
+
+ * docs/FTL.TXT: Simple fix (change `LICENSE.TXT' to `FTL.TXT').
+
+ * builds/unix/freetype2.m4: New file for checking configure paths.
+ We need to install it in $(prefix)/share/aclocal/freetype2.m4 but I
+ didn't modify builds/unix/install.mk yet.
+
+ * INSTALL: Updated the instructions to build shared libraries with
+ Jam. They were simply wrong.
+
+ * src/base/fttrigon.c (FT_Cos): Fixed a small bug that caused
+ slightly improper results for `FT_Cos' and `FT_Sin' (example:
+ FT_Sin(0) == -1!).
+
+2001-12-11 Detlef Würkner <TetiSoft@apg.lahn.de>
+
+ * include/freetype/internal/ftstream.h (GET_LongLE, GET_ULongLE):
+ Fixed incorrect argument types.
+
+2001-12-10 Francesco Zappa Nardelli <Francesco.Zappa.Nardelli@ens.fr>
+
+ * src/pcf/pcfdriver.c (PCF_Init_Face): Allow Xft to use PCF fonts
+ by setting the `face->metrics.max_advance' correctly.
+
+2001-12-07 David Turner <david@freetype.org>
+
+ * include/freetype/cache/ftccmap.h, src/cache/ftccmap.c: Added new
+ charmap cache.
+ * src/cache/ftcache.c: Updated.
+
+ * src/autohint/ahhint.c (ah_hinter_hint_edges): s/UNUSED/FT_UNUSED/.
+
+2001-12-06 Leonard Rosenthol <leonardr@lazerware.com>
+
+ Added support for reading .dfont files on Mac OS X. Also added a
+ new routine which looks up a given font by name in the Mac OS and
+ returns the disk file where it resides.
+
+ * src/base/ftmac.c: Include <Files.h> and <TextUtils.h>.
+ (is_dfont): New auxiliary function.
+ (FT_New_Face_From_dfont): New function.
+ (FT_GetFile_From_Mac_Name): New exported function.
+ (FT_New_Face): Updated.
+ * include/freetype/ftmac.h: Updated.
+
+2001-12-06 David Turner <david@freetype.org>
+
+ * src/cache/Jamfile, src/cache/rules.mk: Updated.
+
+2001-12-06 Werner Lemberg <wl@gnu.org>
+
+ * INSTALL: Small update.
+
+2001-12-05 David Turner <david@freetype.org>
+
+ * src/base/ftglyph.c (FT_Glyph_To_Bitmap): Re-ordered code for
+ debugging purposes.
+ Comment out use of `origin'.
+
+ * src/smooth/ftsmooth.c (ft_smooth_render): Fixed a nasty hidden bug
+ where outline shifting wasn't correctly undone after bitmap
+ rasterization. This created problems with certain glyphs (like '"'
+ of certain fonts) and the cache system.
+
+ * src/pshinter/pshalgo1.c (psh1_hint_table_init): Fix typo.
+ * src/pshinter/pshalgo2.c (psh2_hint_table_init): Fix typo.
+ (ps2_hints_apply): Small fix.
+
+2001-12-05 David Turner <david@freetype.org>
+
+ * src/pshinter/pshalgo2.c (psh2_hint_table_init),
+ src/pshinter/pshalgo1.c (psh1_hint_table_init): Removed compiler
+ warnings.
+
+ * include/freetype/ftcache.h, include/freetype/cache/*, src/cache/*:
+ Yet another massive rewrite of the caching sub-system in order to
+ both increase performance and allow simpler cache sub-classing. As
+ an example, the code for the image and sbit caches is now much
+ simpler.
+
+ I still need to update the documentation in
+ www/freetype2/docs/cache.html to reflect the new design though.
+
+ * include/freetype/config/ftheader.h (FT_CACHE_CHARMAP_H): New
+ macro.
+ (FT_CACHE_INTERNAL_CACHE_H): Updated.
+
+2001-12-05 David Krause <freetype@davidkrause.com>
+
+ * docs/license.txt: s/X Windows/X Window System/.
+
+2001-12-04 Werner Lemberg <wl@gnu.org>
+
+ * src/raster/ftraster.c: Fix definition condition of MEM_Set().
+ * src/smooth/ftgrays.c (M_Y): Change value to 192.
+ * src/base/ftdbgmem.c (ft_mem_table_destroy): Fix printf() parameter.
+ Remove unused variable.
+ * src/cache/ftcimage.c (ftc_image_node_init,
+ ftc_image_node_compare): Remove unused variables.
+ * src/cache/ftcsbits.c (ftc_sbit_node_weight): Remove unused
+ variable.
+ * src/raster/ftraster.c (MEM_Set): Move definition down to avoid
+ compiler warning.
+ * src/autohint/ahhint.c (ah_hinter_hint_edges): Use UNUSED() to
+ avoid compiler warnings.
+ * src/pcf/pcfread.c (tableNames): Use `const'.
+ (pcf_read_TOC): Change counter name to avoid compiler warning.
+ Use `const'.
+ * src/pshinter/pshrec.c (ps_hints_close): Remove redundant
+ declaration.
+ * src/pshinter/pshalgo1.c (psh1_hint_table_init): Rename variables
+ to avoid shadowing.
+ * src/pshinter/pshalgo2.c (psh2_hint_table_activate_mask): Ditto.
+ * src/type1/t1objs.h: Remove double declarations of `T1_Size_Init()'
+ and `T1_Size_Done()'.
+
+2001-11-20 Antoine Leca <antoineleca@multimania.com>
+
+ * include/freetype/ttnameid.h: Added some new Microsoft language
+ codes and LCIDs as found in MSDN (Passport SDK). Also added
+ comments about the meaning of bit 57 of the `OS/2' table
+ (TT_UCR_SURROGATES) which (with OpenType v.1.3) now means `there is
+ a character beyond 0xFFFF in this font'. Thanks to Detlef Würkner
+ <TetiSoft@apg.lahn.de> for noticing this.
+
+2001-11-20 David Turner <david@freetype.org>
+
+ * src/pshinter/{pshalgo2.c, pshalgo1.c}: Fixed stupid bug in sorting
+ routine that created nasty alignment artefacts.
+
+ * src/pshinter/pshrec.c, tests/gview.c: Debugging updates.
+
+ * src/smooth/ftgrays.c: De-activated experimental gamma support.
+ Apparently, `optimal' gamma tables depend on the monitor type,
+ resolution and general karma, so it's better to compute them outside
+ of the rasterizer itself.
+ (gray_convert_glyph): Use `volatile' keyword.
+
+2001-10-29 David Turner <david@freetype.org>
+
+ Adding experimental `gamma' support. This produces smoother glyphs
+ at small sizes for very little cost.
+
+ * src/smooth/ftgrays.c (grays_init_gamma): New function.
+ (gray_raster_new): Use it.
+
+ Various fixes to the auto-hinter. They merely improve the output of
+ sans-serif fonts. Note that there are still problems with serifed
+ fonts and composites (accented characters).
+
+ * src/autohint/ahglyph.c (ah_outline_load,
+ ah_outline_link_segments): Implement it.
+ Fix typos.
+ (ah_outline_save, ah_outline_compute_segments): Fix typos.
+ * src/autohint/ahhint.c (ah_align_serif_edge): New argument
+ `vertical'. Implement improvement.
+ (ah_hint_edges_3, ah_hinter_hint_edges): Implement it.
+ Fix typos.
+ (ah_hinter_align_strong_points, ah_hinter_align_weak_points): Fix
+ typos.
+ (ah_hinter_load): Set `ah_debug_hinter' if DEBUG_HINTER is defined.
+ * src/autohint/ahmodule.c: Implement support for DEBUG_HINTER macro.
+ * src/autohint/ahtypes.h: Ditto.
+ (AH_Hinter): Remove `disable_horz_edges' and `disable_vert_edges'
+ (making them global as `ah_debug_disable_horz' and
+ `ah_debug_disable_vert').
+ Fix typos.
+
+ * tests/gview.c: Updated the debugging glyph viewer to show the
+ hints generated by the `autohint' module.
+
+2001-10-27 David Turner <david@freetype.org>
+
+ * src/cache/ftcchunk.c (ftc_chunk_cache_lookup): Fixed a bug that
+ considerably lowered the performance of the abstract chunk cache.
+
+2001-10-26 David Turner <david@freetype.org>
+
+ * include/freetype/ftcache.h, include/freetype/cache/*.h,
+ src/cache/*.c: Major re-design of the cache sub-system to provide
+ better performance as well as an `Acquire'/`Release' API. Seems to
+ work well here, but probably needs a bit more testing.
+
+2001-10-26 Leonard Rosenthol <leonardr@lazerware.com>
+
+ * builds/mac/README: Updated to reflect my taking over the project
+ and that is now being actively maintained.
+
+ * src/base/ftmac.c (parse_fond): Applied patches from Paul Miller
+ <paulm@profoundeffects.com> to support loading a face other than the
+ first from a FOND resource.
+ (FT_New_Face_From_FOND): Updated.
+
+2001-10-25 Leonard Rosenthol <leonardr@lazerware.com>
+
+ * builds/mac/ftlib.prj: Update of CodeWarrior project file for Mac
+ OS for latest version (7) of CWPro and for recent changes to the FT
+ source tree.
+
+2001-10-25 David Turner <david@freetype.org>
+
+ * include/freetype/config/ftoption.h: Updated comments to explain
+ precisely how to use project-specific macro definitions without
+ modifying this file manually.
+
+ (FT_CONFIG_FORCE_INT64): Define.
+
+ (FT_DEBUG_MEMORY): New macro.
+
+2001-10-24 Tom Kacvinsky <tkacvins@freetype.org>
+
+ * builds/unix/ftsystem.c (FT_New_Memory): Added a missing `{'.
+
+2001-10-23 David Turner <david@freetype.org>
+
+ * include/freetype/internal/ftmemory.h, src/base/ftdbgmem.c:
+ Improvements to the memory debugger to report more information in
+ case of errors. Also, some allocations that occurred through REALLOC
+ couldn't be previously caught correctly.
+
+ * src/autohint/ahglyph.c (ah_outline_compute_segments,
+ ah_outline_compute_edges), src/raster/ftraster.c (ft_black_new),
+ src/smooth/ftgrays.c (gray_render_span, gray_raster_new): Replaced
+ liberal uses of memset() by the MEM_Set() macro.
+
+2001-10-23 David Turner <david@freetype.org>
+
+ * src/raster/ftraster.c (Update): Removed to be inlined in ...
+ (Sort): Updated.
+
+2001-10-22 David Turner <david@freetype.org>
+
+ * builds/unix/ftsystem.c (FT_New_Memory, FT_Done_Memory),
+ builds/vms/ftsystem.c (FT_New_Memory, FT_Done_Memory),
+ builds/amiga/ftsystem.c (FT_New_Memory, FT_Done_Memory),
+ src/base/ftdbgmem.c: Updated the memory debugger and
+ platform-specific implementations of `ftsystem' in order to be able
+ to debug memory allocations on Unix, VMS and Amiga too!
+
+ * src/pshinter/pshalgo2.c (psh2_hint_table_record_mask): Removed
+ some bogus warnings.
+
+ * include/freetype/internal/ftmemory.h, src/base/ftdbgmem.c:
+ Modified the debugging memory manager to report the location (source
+ file name + line number) where leaked memory blocks are allocated in
+ the source file.
+
+ * src/base/ftdbgmem.c: New debugging memory manager. You must
+ define the FT_DEBUG_MEMORY macro in `ftoption.h' to enable it. It
+ will record every memory block allocated and report simple errors
+ like memory leaks and double deletes.
+
+ * src/base/Jamfile: Include ftdbgmem.
+ * src/base/rules.mk: Ditto.
+ * src/base/ftbase.c: Include ftdbgmem.c.
+
+ * include/freetype/config/ftoption.h: Added the FT_DEBUG_MEMORY
+ macro definition.
+
+ * src/base/ftsystem.c (FT_New_Memory, FT_Done_Memory): Modified the
+ base component to use the debugging memory manager when the macro
+ FT_DEBUG_MEMORY is defined.
+
+2001-10-21 Tom Kacvinsky <tkacvins@freetype.org>
+
+ * src/cff/cffload.c (CFF_Done_Font): Free subfonts array only if
+ we are working with a CID keyed CFF font. Otherwise, a variable
+ that was never allocated memory might freed. This is a correction
+ to the previous patch for freeing subfonts.
+
+2001-10-21 Tom Kacvinsky <tkacvins@freetype.org>
+
+ * src/cff/cffload.c (CFF_Done_Font): Free the subfonts array to
+ avoid a memory leak.
+
+2001-10-21 David Turner <david@freetype.org>
+
+ * src/pshinter/pshalgo2.c, src/pshinter/pshalgo1.c,
+ src/pshinter/pshglob.c: Removing compiler warnings in pedantic modes
+ (in multi-object compilation mode, mainly).
+
+2001-10-20 Tom Kacvinsky <tkacvins@freetype.org>
+
+ * src/type1/t1load.c (parse_encoding): Add a test to make sure
+ that custom encodings (i.e., neither StandardEncoding nor
+ ExpertEncoding) are not loaded twice when the Type 1 font is
+ synthetic.
+
+ * src/type1/t1load.c (parse_font_name, parse_subrs): Added a test
+ for when loading synthetic fonts to make sure that the font name
+ and subroutines are not loaded twice. This is to remove a memory
+ leak that occurred because the original memory blocks for these
+ objects were not deallocated when the objects were parsed the
+ second time.
+
+2001-10-19 David Turner <david@freetype.org>
+
+ * src/smooth/ftgrays.c, src/pshinter/pshglob.h,
+ src/pshinter/pshrec.c, src/pshinter/pshalgo2.c: Getting rid of
+ compiler warnings.
+
+ * src/pshinter/module.mk, src/pshinter/rules.mk: Adding control
+ files to build the PostScript hinter with the `old' build system.
+
+2001-10-19 Jacob Jansen <joukj@hrem.stm.tudelft.nl>
+
+ * descrip.mms, src/pshinter/descrip.mms: Updates to the VMS build
+ files.
+
+2001-10-18 David Turner <david@freetype.org>
+
+ * src/psnames/pstables.h, src/tools/glnames.py: Rewrote the
+ `glnames.py' script used to generate the `pstables.h' header file.
+ The old one contained a serious bug that made FreeType return
+ incorrect glyph names for certain glyphs.
+
+ * src/truetype/ttdriver.c (Set_Char_Sizes): Changing computation of
+ pixel size from character size to use rounding. This is an
+ experiment to see whether this gives values similar to Windows for
+ scaled ascent/descent/etc.
+
+ * src/base/ftcalc.c (FT_Div64by32): Changed the implementation
+ slightly since the original code was mis-compiled on Mac machines
+ using the MPW C compiler.
+
+ * src/base/ftobjs.c (FT_Realloc): When a memory block was grown
+ through FT_Realloc(), the new bytes were not set to 0, which created
+ some strange bugs in the PostScript hinter.
+ (destroy_face): Don't deallocate unconditionally.
+
+ * src/cid/cidgload.c (CID_Compute_Max_Advance, CID_Load_Glyph):
+ Adding support to new PostScript hinter.
+
+ * include/freetype/internal/psglobal.h,
+ include/freetype/internal/pshints.h,
+ include/freetype/config/ftmodule.h, src/pshinter/Jamfile,
+ src/pshinter/pshalgo.h, src/pshinter/pshalgo1.h,
+ src/pshinter/pshalgo1.c, src/pshinter/pshalgo2.h,
+ src/pshinter/pshalgo2.c, src/pshinter/pshglob.h,
+ src/pshinter/pshglob.c, src/pshinter/pshinter.c,
+ src/pshinter/pshmod.c, src/pshinter/pshmod.h, src/pshinter/pshrec.c,
+ src/pshinter/pshrec.h: Adding new PostScript hinter module.
+
+ * include/freetype/internal/ftobjs.h,
+ include/freetype/internal/internal.h,
+ include/freetype/internal/psaux.h,
+ include/freetype/internal/t1types.h, src/psaux/psobjs.c,
+ src/psaux/psobjs.h, src/psaux/t1decode.h, src/psaux/t1decode.c,
+ src/type1/t1driver.c, src/type1/t1gload.c, src/type1/t1objs.c,
+ src/type1/t1objs.h: Updates to use the new PostScript hinter.
+
+ * tests/Jamfile, tests/gview.c: Adding a new glyph hinting
+ viewer/debugger to the source tree. Note that you will _not_ be
+ able to compile it since it depends on an unavailable graphics
+ library named `Nirvana' to render vector images.
+
+2001-10-17 David Turner <david@freetype.org>
+
+
+ * Version 2.0.5 released.
+ =========================
+
+
+ * include/freetype/freetype.h, include/internal/ftobjs.h,
+ src/base/ftobjs.c, src/type1/t1driver.c: Adding a new function named
+ 'FT_Get_Postscript_Name' to retrieve the PostScript name of a given
+ font. Should work with all formats except pure CFF/CEF fonts (this
+ will be added soon).
+
+ * src/cid/cidriver (cid_get_postscript_name): New function.
+ (CID_Get_Interface): Handle `postscript_name' interface.
+
+ * src/sfnt/sfdriver.c (get_sfnt_postscript_name): New function.
+ (SFNT_Get_Interface): Handle `postscript_name' interface.
+
+ * src/type1/t1driver.c (t1_get_ps_name): New function.
+ (Get_Interface): Handle `postscript_name' interface.
+
+ * README, docs/CHANGES: Updated for 2.0.5 release.
+
+2001-10-08 David Turner <david@freetype.org>
+
+ Fixed a bug in `glnames.py' that prevented it from generating
+ correct glyph names tables. This resulted in the unavailability of
+ certain glyphs like `Cacute', `cacute' and `lslash' in Unicode
+ charmaps, even if these were present in the font (causing problems
+ for Polish users).
+
+ * src/tools/glnames.py (mac_standard_names): Fixed.
+ (t1_standard_strings): Some fixes and renamed to ...
+ (sid_standard_names): This.
+ (t1_expert_encoding): Fixed.
+ (the_adobe_glyph_list): Renamed to ...
+ (adobe_glyph_names): This.
+ (the_adobe_glyphs): Renamed to ...
+ (adobe_glyph_values): This.
+ (dump_mac_indices, dump_glyph_list, dump_unicode_values, main):
+ Updated.
+ * src/psnames/pstables.h: Regenerated.
+ * src/psnames/psmodule.c (PS_Unicode_Value): Fix offset.
+ Fix return value.
+ Use `sid_standard_table' and `ps_names_to_unicode' instead of
+ `t1_standard_glyphs' and `names_to_unicode'.
+ (PS_Macintosh_Name): Use `ps_glyph_names' instead of
+ `standard_glyph_names'.
+ (PS_Standard_Strings): Use `sid_standard_names' instead of
+ `t1_standard_glyphs'.
+
+ * doc/BUGS, doc/TODO: New documents.
+
+2001-10-07 Richard Barber <rich@solutionuk.com>
+
+ * src/cache/ftlru.c (FT_Lru_Lookup_Node): Fixed a bug that prevented
+ correct LRU behaviour.
+
+2001-10-07 David Turner <david@freetype.org>
+
+ setjmp() and longjmp() are now used for rollback (i.e. when memory
+ pool overflow occurs).
+
+ Function names are now all uniformly prefixed with `gray_'.
+
+ * src/smooth/ftgrays.c: Include <setjmp.h>.
+ (ErrRaster_MemoryOverflow): New macro.
+ (TArea): New type to store area values in each cell (using `int' was
+ too small on 16-bit systems). <limits.h> is included to properly
+ get the needed data type.
+ (TCell, TRaster): Use it.
+ (TRaster): New element `jump_buffer'.
+ (gray_compute_cbox): Use `RAS_ARG' as the only parameter and get
+ `outline' from it.
+ (gray_record_cell): Use longjmp().
+ (gray_set_cell): Use gray_record_cell() for error handling.
+ (gray_render_line, gray_render_conic, gray_render_cubic): Simplify.
+ (gray_convert_glyph_inner): New function, using setjmp().
+ (gray_convert_glyph): Use it.
+
+2001-10-07 David Turner <david@freetype.org>
+
+ Provide a public API to manage multiple size objects for a given
+ FT_Face in the new header file `ftsizes.h'.
+
+ * include/freetype/ftsizes.h: New header file,
+ * include/freetype/internal/ftobjs.h: Use it.
+ Remove declarations of FT_New_Size and FT_Done_Size (moved to
+ ftsizes.h).
+ * include/freetype/config/ftheader.h (FT_SIZES_H): New macro.
+ * src/base/ftobjs.c (FT_Activate_Size): New function.
+ * src/cache/ftcmanag.c: Include ftsizes.h.
+ (ftc_manager_init_size, ftc_manager_flush_size): Use
+ FT_Activate_Size.
+
+2001-09-20 Detlef Würkner <TetiSoft@apg.lahn.de>
+
+ * builds/amiga/*: Added port to Amiga with the SAS/C compiler.
+
+2001-09-15 Detlef Würkner <TetiSoft@apg.lahn.de>
+
+ * src/type1/t1afm.c (T1_Done_AFM): Free `afm'.
+
+2001-09-10 Yao Zhang <yzhang@sharemedia.com>
+
+ * src/sfnt/ttcmap.c (code_to_index2): Handle code values with
+ hi-byte == 0 correctly.
+
+2001-09-10 Werner Lemberg <wl@gnu.org>
+
+ * builds/link-std.mk ($(PROJECT_LIBRARY)): Fix typo.
+
+2001-08-30 Martin Muskens <mmuskens@aurelon.com>
+
+ * src/type1/t1load.c (parse_font_matrix): A new way to compute the
+ units per EM with greater accuracy (important for embedded T1 fonts
+ in PDF documents that were automatically generated from TrueType
+ ones).
+
+ * src/type1/t1load.c (is_alpha): Now supports `+' in font names;
+ this is used in embedded fonts.
+
+ * src/psaux/psobjs.c (PS_Table_Add): Fixed a reallocation bug that
+ generated a dangling pointer reference.
+
+2001-08-30 Anthony Feik <afeick@hotmail.com>
+
+ * src/type1/t1afm.c (T1_Read_AFM): Now correctly sets the flag
+ FT_FACE_FLAG_KERNING when appropriate for Type1 + AFM files.
+
+2001-08-25 Werner Lemberg <wl@gnu.org>
+
+ * src/sfnt/ttload.c (TT_Load_CMap): Fix frame length of
+ `cmap_rec_fields'.
+
+ * include/freetype/fterrors.h [!FT_CONFIG_OPTION_USE_MODULE_ERRORS]:
+ Undefine FT_ERR_BASE before defining again.
+
+2001-08-22 Werner Lemberg <wl@gnu.org>
+
+ * src/truetype/ttinterp.h: Fix prototype of TT_Move_Func.
+
+2001-08-21 Werner Lemberg <wl@gnu.org>
+
+ * builds/dos/dos-def.mk (NO_OUTPUT): Don't use `&>' but `>'.
+
+2001-08-21 David Turner <david@freetype.org>
+
+ * include/freetype/config/ftoption.h: Changed the default setting
+ for FT_CONFIG_OPTION_USE_MODULE_ERRORS to undefined, since it breaks
+ source compatibility in a few cases. Updated the comment to explain
+ that too.
+
+2001-08-17 Martin Muskens <mmuskens@aurelon.com>
+
+ * src/base/ftcalc.c (FT_MulDiv): Fixed serious typo.
+
+2001-08-12 Werner Lemberg <wl@gnu.org>
+
+ Updating to OpenType 1.3.
+
+ * include/freetype/internal/tttypes.h (TT_CMap0, TT_CMap2, TT_CMap4,
+ TT_CMap6): Adding field `language'.
+ (TT_CMapTable): Removing field `language'.
+ Type of `length' field changed to FT_ULong.
+ Adding fields for cmaps format 8, 10, and 12.
+ (TT_CMapGroup): New auxiliary structure.
+ (TT_CMap8_12, TT_CMap10): New structures.
+ * include/freetype/tttables.h (TT_HoriHeader, TT_VertHeader):
+ Removed last element of `Reserved' array.
+ * include/freetype/ttnameid.h (TT_PLATFORM_CUSTOM, TT_MS_ID_UCS_4,
+ TT_NAME_ID_CID_FINDFONT_NAME): New macros.
+
+ * src/sfnt/ttcmap.c (TT_CharMap_Load): Updated loading of `language'
+ field to the new structures.
+ Fixed freeing of arrays in case of unsuccessful loads.
+ Added support for loading format 8, 10, and 12 cmaps.
+ (TT_CharMap_Free): Added support for freeing format 8, 10, and 12
+ cmaps.
+ (code_to_index4): Small improvement.
+ (code_to_index6): Ditto.
+ (code_to_index8_12, code_to_index10): New functions.
+ * src/sfnt/ttload.c (TT_Load_Metrics_Header): Updated to new
+ structure.
+ (TT_Load_CMap): Ditto.
+
+ * src/sfnt/sfobjs.c (tt_encodings): Add MS UCS4 table (before MS
+ Unicode).
+
+2001-08-11 Werner Lemberg <wl@gnu.org>
+
+ * src/type1/t1driver.c (t1_get_name_index): Fix compiler warning.
+
+2001-08-09 Tom Kacvinsky <tkacvins@freetype.org>
+
+ * src/cff/cffdrivr.c (get_cff_glyph_name): Renamed to
+ cff_get_glyph_name for consistency.
+
+ (cff_get_glyph_index): Minor documentation change.
+
+ * src/type1/t1driver.c (t1_get_name_index): New function used in
+ Get_Interface as the function returned when the `name_index'
+ function is requested.
+
+ (get_t1_glyph_name): Renamed to t1_get_glyph_name for consistency.
+
+2001-08-08 Tom Kacvinsky <tkacvins@freetype.org>
+
+ * src/cff/cffload.c: Removed definitions of cff_isoadobe_charset,
+ cff_expert_charset, cff_expertsubset_charset, cff_standard_encoding,
+ and cff_expert_encoding arrays to cffload.h.
+
+ * src/cff/cffload.h: Added definitions of cff_isoadobe_charset,
+ cff_expert_charset, cff_expertsubset_charset, cff_standard_encoding,
+ and cff_expert_encoding arrays.
+
+ * src/cff/cffdrivr.c (cff_get_name_index): New function, returned
+ when `cff_get_interface' is called with a request for the
+ `name_index' function.
+
+ (cff_get_interface): Modified so that it returns the function
+ `cff_get_name_index' when the `name_index' function is requested.
+
+ * src/base/ftobjs.c (FT_Get_Name_Index): New function, used to
+ return a glyph index for a given glyph name only if the driver
+ supports glyph names.
+
+ * include/freetype/internal/ftobjs.h (FT_Name_Index_Requester):
+ New function pointer type definition used in the function
+ FT_Get_Name_Index.
+
+ * include/freetype/freetype.h (FT_Get_Name_Index): Added
+ documentation and prototype.
+
+2001-07-26 Werner Lemberg <wl@gnu.org>
+
+ * builds/cygwin/*: Removed. Use the unix stuff instead.
+
+2001-07-26 Jouk Jansen <joukj@hrem.stm.tudelft.nl>
+
+ * builds/vms/ftconfig.h (FT_CALLBACK_DEF): Updated to change dated
+ 2001-06-27.
+
+2001-07-17 Werner Lemberg <wl@gnu.org>
+
+ * include/freetype/internal/psaux.h (PS_Table): Use FT_Offset for
+ `cursor' and `capacity'.
+ * src/psaux/psobjs.c (reallocate_t1_table): Use FT_Long for second
+ parameter.
+ (PS_Table_Add): Use FT_Offset for `new_size'.
+
+ Add support for version 0.5 maxp tables.
+
+ * src/sfnt/ttload.c (TT_Load_MaxProfile): Implement it.
+ (TT_Load_OS2): Initialize some values.
+
+2001-07-13 Werner Lemberg <wl@gnu.org>
+
+ * src/base/ftsynth.c: Include ftcalc.h unconditionally.
+
+2001-07-07 David Turner <david@freetype.org>
+
+ * src/truetype/ttgload.c, src/truetype/ttinterp.c, src/pcf/pcfread:
+ Removed pedantic compiler warnings when the bytecode interpreter is
+ compiled in.
+
+2001-07-03 Werner Lemberg <wl@gnu.org>
+
+ * src/autohint/ahhint.c (ah_hinter_align_weak_points): Remove
+ unused variable `edges'.
+ (ah_hinter_load): Remove unused variables `old_width' and
+ `new_width'.
+ * src/cid/cidload.c (cid_decrypt): Use `U' for constant (again).
+ * src/psaux/psobjs.c (T1_Decrypt): Ditto.
+ * src/type1/t1parse.c (T1_Get_Private_Dict): Ditto.
+
+2001-06-28 David Turner <david@freetype.org>
+
+ * include/internal/ftstream.h: Modified the definitions
+ of the FT_GET_XXXX and NEXT_XXXX macros for 16-bit correctness.
+
+2001-06-26 Werner Lemberg <wl@gnu.org>
+
+ * src/cid/cidload.c, src/cid/cidload.h (cid_decrypt): Use FT_Offset
+ instead of FT_Int as type for `length' parameter.
+ * include/freetype/internal/psaux.h (PSAux_Interface): Updated.
+
+2001-06-27 Wolfgang Domröse <porthos.domroese@harz.de>
+
+ * src/psaux/psobjs.c, src/psaux/psobjs.h (T1_Decrypt): Use FT_Offset
+ instead of FT_Int as type for `length' parameter.
+
+
+ * Version 2.0.4 released.
+ =========================
+
+
+2001-06-27 David Turner <david@freetype.org>
+
+ * builds/unix/ftconfig.in: Changed the definition of the
+ FT_CALLBACK_DEF macro.
+
+ * include/freetype/ftconfig.h, src/*/*.c: Changed the definition and
+ use of the FT_CALLBACK_DEF macro in order to support 16-bit
+ compilers.
+
+ * builds/unix/ftconfig.in: Changed the definition of the
+ FT_CALLBACK_DEF macro.
+
+ * src/sfnt/ttload.c (TT_Load_Kern): The kern table loader now ensures
+ that the kerning table is correctly sorted (some problem fonts don't
+ have a correct kern table).
+
+2001-06-26 Wolfgang Domröse <porthos.domroese@harz.de>
+
+ * include/freetype/internal/ftstream.h (FT_GET_OFF3_LE): Fix typo.
+
+2001-06-24 David Turner <david@freetype.org>
+
+ * src/base/ftcalc.c (ft_div64by32): Fixed the source to work
+ correctly on 16-bit systems.
+
+2001-06-23 Anthony Fok <fok@debian.org>
+
+ * debian/*: Added Debian package build directory for 2.0.4.
+
+2001-06-22 David Turner <david@freetype.org>
+
+ * docs/PATENTS: Added patents disclaimer. This one was missing!
+
+ * docs/CHANGES, docs/todo: Updated for the upcoming 2.0.4 release.
+
+2001-06-20 Werner Lemberg <wl@gnu.org>
+
+ * include/freetype/config/ftconfig.h: Add two more `L's to
+ constants.
+ Add missing semicolons.
+
+ * builds/toplevel.mk: Do similar change as for
+ builds/unix/detect.mk.
+
+ * include/freetype/freetype.h (FT_ENC_TAG): New version to make it
+ easier to redefine.
+ * include/freetype/ftimage.h (FT_IMAGE_TAG): Ditto.
+
+ * src/pcf/pcfread.c (pcf_get_encodings): Add cast.
+
+2001-06-19 David Turner <david@freetype.org>
+
+ * builds/win32/visualc/freetype.dsp, builds/win32/visualc/index.html:
+ Updated the Visual C++ project (for the 2.0.4 release).
+
+ * builds/unix/detect.mk: Added rule for AIX detection (which uses
+ /usr/sbin/init instead of /sbin/init).
+
+ * include/freetype/fterrors.h, src/*/*err*.h: Updated some of the
+ error macros to simplify handling of new error scheme.
+
+2001-06-19 Werner Lemberg <wl@gnu.org>
+
+ * include/freetype/fttypes.h (FT_ERROR_MODULE): New macro.
+
+2001-06-19 David Turner <david@freetype.org>
+
+ Removing _lots_ of compiler warnings when the most pedantic warning
+ levels of Visual C++ and Borland C++ are used. Too many files to be
+ listed here, but FT2 now compiles without warnings with VC++ and the
+ `/W4' warning level (lint-style).
+
+ * include/freetype/freetype.h (FT_New_Memory_Face): Updated
+ documentation.
+ * include/freetype/fttypes.h (FT_BOOL): New macro.
+ * include/freetype/internal/ftdebug.h: Add #pragma for Visual C++
+ to suppress warning.
+ * include/freetype/internal/ftstream.h (FT_GET_SHORT_{BE,LE},
+ FT_GET_OFF3_{BE,LE}, FT_GET_LONG_{BE,LE}): New macros.
+ (NEXT_*): Use them.
+ * src/autohint/ahglobal.c: Include FT_INTERNAL_DEBUG_H.
+ (FT_New_Memory_Face): Add `const' to function declaration.
+
+2001-06-18 Werner Lemberg <wl@gnu.org>
+
+ Minor cleanups to remove compiler warnings.
+
+ * include/freetype/cache/ftcmanag.h (FTC_MAX_BYTES_DEFAULT): Use
+ `L' for constant.
+ * include/freetype/config/ftoption.h (FT_RENDER_POOL_SIZE): Ditto.
+ * src/base/ftcalc.c (FT_MulDiv): Use `L' for constant.
+ * src/base/ftglyph.c (FT_Glyph_Get_CBox): Remove `error' variable.
+ * src/base/fttrigon.c (ft_trig_arctan_table): Use `L' for constants.
+ * src/base/ftobjs.c (FT_Done_Size): Fix return value.
+ (FT_Set_Char_Size, FT_Set_Pixel_Sizes, FT_Get_Kerning): Remove
+ unused `memory' variable.
+ * src/autohint/ahglyph.c (ah_get_orientation): Use `L' for constant.
+ * src/autohint/ahhint.c (ah_hint_edges_3,
+ ah_hinter_align_edge_points): Remove unused `before' and `after'
+ variables.
+ (ah_hinter_align_weak_points): Remove unused `edge_limit' variable.
+ (ah_hinter_load): Remove unused `new_advance', `start_contour',
+ and `metrics' variables.
+ * src/cff/cffload.c (CFF_Load_Encoding): Remove dead code to avoid
+ compiler warning.
+ * src/cff/cffobjs.c (CFF_Init_Face): Remove unused `base_offset'
+ variable.
+ * src/cff/cffgload.c (CFF_Parse_CharStrings): Remove unused
+ `outline' variable.
+ (cff_compute_bias): Use `U' for constant.
+ * src/cid/cidload.c (cid_decrypt): Ditto.
+ * src/psaux/psobjs.c (T1_Decrypt): Ditto.
+ * src/psaux/t1decode.c (T1_Decoder_Parse_Charstrings): Ditto.
+ * src/sfnt/ttload.c (TT_Load_Kern): Remove unused `version'
+ variable.
+ * src/sfnt/ttsbit.c (TT_Load_SBit_Image): Remove unused `top'
+ variable.
+ * src/truetype/ttgload.c (load_truetype_glyph): Remove unused
+ `num_contours' and `ins_offset' variables.
+ (compute_glyph_metrics): Remove unused `Top' and `x_scale'
+ variables.
+ (TT_Load_Glyph): Remove unused `memory' variable.
+ * src/smooth/ftgrays.c (grays_raster_render): Use `L' for constants.
+
+2001-06-18 Werner Lemberg <wl@gnu.org>
+
+ Make the new error scheme source compatible with older FT versions
+ by introducing another layer.
+
+ * include/freetype/fterrors.h (FT_ERRORDEF_, FT_NOERRORDEF_): New
+ macros.
+ (FT_NOERRORDEF): Removed.
+ * include/*/*err*.h: Use FT_ERRORDEF_ and FT_NOERRORDEF_.
+
+2001-06-16 Werner Lemberg <wl@gnu.org>
+
+ * include/freetype/freetype.h (FT_ENC_TAG): New macro.
+ (FT_Encoding_): Use it.
+ * include/freetype/ftimage.h (FT_IMAGE_TAG): Define it
+ conditionally.
+
+2001-06-14 David Turner <david@freetype.org>
+
+ Modified the TrueType interpreter to let it use the new
+ trigonometric functions provided in `fttrigon.h'. This gets rid of
+ some old 64-bit computation routines, as well as many warnings when
+ compiling the library with the `long long' 64-bit integer type.
+
+ * include/freetype/config/ftoption.h: Undefine
+ FT_CONFIG_OPTION_OLD_CALCS.
+ * include/freetype/internal/ftcalc.h: Rearrange use of
+ FT_CONFIG_OPTION_OLD_CALCS.
+ * src/base/ftcalc.c: Add declaration of FT_Int64 if
+ FT_CONFIG_OPTION_OLD_CALCS isn't defined.
+ * src/truetype/ttinterp.c: Use FT_TRIGONOMETRY_H.
+ (Norm): Add a special version if FT_CONFIG_OPTION_OLD_CALCS isn't
+ defined.
+ (Current_Ratio, Normalize): Simplify code.
+
+2001-06-11 Mike Owens <MOwens@amtdatasouth.com>
+
+ * src/base/ftcalc.c (FT_MulDiv, FT_DivFix, FT_Sqrt64): Remove
+ compiler warnings.
+
+2001-06-08 Werner Lemberg <wl@gnu.org>
+
+ * builds/unix/configure.in: Renamed to ...
+ * builds/unix/configure.ac: This to make sure that autoconf 2.50 is
+ needed.
+ Run `autoupdate' on it.
+ Increase `version_info' to 7:0:1.
+ * builds/unix/configure: Regenerated.
+
+2001-06-08 David Turner <david@freetype.org>
+
+ * src/autohint/ahhint.c (ah_hinter_load_glyph): Fixed a bug that
+ corrupted transformed glyphs that were auto-hinted (the transform
+ was applied twice).
+
+ Fixed a bug that returned an invalid linear width for composite
+ TrueType glyphs.
+
+ * include/internal/tttypes.h (TT_Loader_): Two new elements `linear'
+ and `linear_def'.
+ * src/truetype/ttgload.c (load_truetype_glyph,
+ compute_glyph_metrics): Use it.
+
+ * include/fttypes.h (FT_ERROR_BASE): New macro.
+ * src/base/ftobjs.c (FT_Open_Face, FT_Render_Glyph_Internal): Use it
+ to make source code work with the new error scheme implemented by
+ Werner.
+ * src/base/ftoutln.c (FT_Outline_Render): Ditto.
+
+2001-06-07 Werner Lemberg <wl@gnu.org>
+
+ Updating to libtool 1.4.0 and autoconf 2.50.
+
+ * builds/unix/ltconfig: Removed.
+ * builds/unix/ltmain.sh, builds/unix/configure.in,
+ builds/unix/aclocal.m4: Updated.
+ * builds/unix/configure: Regenerated.
+
+2001-06-06 Werner Lemberg <wl@gnu.org>
+
+ Complete redesign of error codes. Please check ftmoderr.h for more
+ details.
+
+ * include/freetype/internal/cfferrs.h,
+ include/freetype/internal/tterrors.h,
+ include/freetype/internal/t1errors.h: Removed. Replaced with files
+ local to the module. All extra error codes have been moved to
+ `fterrors.h'.
+
+ * src/sfnt/ttpost.h: Move error codes to `fterrors.h'.
+
+ * src/autohint/aherrors.h, src/cache/ftcerror.h, src/cff/cfferrs.h,
+ src/cid/ciderrs.h, src/pcf/pcferror.h, src/psaux/psauxerr.h,
+ src/psnames/psnamerr.h, src/raster/rasterrs.h, src/sfnt/sferrors.h,
+ src/smooth/ftsmerrs.h, src/truetype/tterrors.h,
+ src/type1/t1errors.h, src/winfonts/fnterrs.h: New files defining the
+ error names for the module it belongs to.
+
+ * include/freetype/ftmoderr.h: New file, defining the module error
+ offsets. Its structure is similar to `fterrors.h'.
+
+ * include/freetype/fterrors.h (FT_NOERRORDEF): New macro.
+ (FT_ERRORDEF): Redefined to use module error offsets.
+ All internal error codes are now public; unused error codes have
+ been removed, some are new.
+
+ * include/freetype/config/ftheader.h (FT_MODULE_ERRORS_H): New
+ macro.
+ * include/freetype/config/ftoption.h
+ (FT_CONFIG_OPTION_USE_MODULE_ERRORS): New macro.
+
+ All other source files have been updated to use the new error codes;
+ some already existing (internal) error codes local to a module have
+ been renamed to give them the same name as in the base module.
+
+ All make files have been updated to include the local error files.
+
+2001-06-06 Werner Lemberg <wl@gnu.org>
+
+ * src/cid/cidtokens.h: Replaced with...
+ * src/cid/cidtoken.h: This file for 8+3 consistency.
+
+ * src/raster/ftraster.c: Use macros for header file names.
+
+ * src/include/freetype/tttables.h (TT_HoriHeader_, TT_VertHeader_):
+ Fix length of `Reserved' array. Note that this isn't the real fix
+ since recent OpenType specs have introduced a `CaretOffset' field
+ instead of the first reserved byte.
+
+2001-05-29 Werner Lemberg <wl@gnu.org>
+
+ * INSTALL: Minor fixes.
+
+
+ * Version 2.0.3 released.
+ =========================
+
+
+2001-05-29 David Turner <david@freetype.org>
+
+ * INSTALL, docs/CHANGES: Updated.
+
+2001-05-25 David Turner <david@freetype.org>
+
+ Moved several documents from the top-level to the `docs' directory.
+
+ * src/base/ftcalc.c (FT_DivFix): Small fix to return value.
+
+2001-05-16 David Turner <david@freetype.org>
+
+ * src/truetype/ttgload.c (load_truetype_glyph): Fixed a bug in the
+ composite loader. Spotted by Keith Packard.
+ * src/base/ftobjs.c (FT_GlyphLoader_Check_Points,
+ FT_GlyphLoader_Check_Subglyphs): Ditto.
+
+2001-05-14 David Turner <david@freetype.org>
+
+ Fixed the incorrect blue zone computations, and improved the
+ composite support. Note that these changes result in improved
+ rendering, while sometimes introducing their own artefacts. This is
+ probably the last big change to the autohinter before the
+ introduction of a complete replacement.
+
+ * src/autohint/ahglobal.c (sort_values): Fix loop.
+ * src/autohint/ahglyph.c: Removed some obsolete code.
+ (ah_outline_compute_edges): Modify code to set the ah_edge_round
+ flag.
+ (ah_outline_compute_blue_edges): Add code to compute active blue
+ zones.
+ * src/autohint/ahhint.c (ah_hinter_glyph_load): Change load_flags
+ value.
+
+ * src/base/ftcalc.c (FT_DivFix): Fixed a bug in the 64-bit code that
+ created incorrect scale factors!
+ (FT_RoundFix, FT_CeilFix, FT_FloorFix): Minor improvements.
+
+2001-05-12 Werner Lemberg <wl@gnu.org>
+
+ * include/freetype/ftbbox.h: FTBBOX_H -> __FTBBOX_H__.
+ * include/freetype/fttrigon.h: __FT_TRIGONOMETRY_H__ ->
+ __FTTRIGON_H__.
+ Include FT_FREETYPE_H.
+ Beautified; added copyright.
+ * src/base/fttrigon.c: Beautified; added copyright.
+
+2001-05-11 David Turner <david@freetype.org>
+
+ * src/cff/cffparse.c (cff_parse_font_matrix), src/cid/cidload.c
+ (parse_font_matrix), src/type1/t1load.c (parse_font_matrix): Fixed
+ the incorrect EM size computation.
+
+ * include/freetype/fttrigon.h, src/base/fttrigon.c: New files,
+ adding trigonometric functions to the core API (using Cordic
+ algorithms).
+ * src/base/ftbase.c, src/base/Jamfile, src/base/rules.mk: Use them.
+
+ * builds/newline: New file.
+ * builds/top_level.mk, builds/detect.mk: Use it. This fixes
+ problems with Make on Windows 2000, as well as problems when `make
+ distclean' is invoked on a non-Unix platform when there is no
+ `config.mk' in the current directory.
+
+ * builds/freetype.mk: Fixed a problem with object deletions under
+ Dos/Windows/OS/2 systems.
+
+ Added new directory to hold tools and test programs.
+
+ * docs/docmaker.py, docs/glnames.py: Moved to...
+ * src/tools/docmaker.py, src/tools/glnames.py: This place.
+ * src/tools/cordic.py: New file used to compute arctangent table
+ needed by fttrigon.c.
+ * src/tools/test_bbox.c, src/tools/test_trig.c: New test files.
+
+ * src/tools/docmaker.py: Improved the script to add the current date
+ at the footer of each web page (useful to distinguish between
+ versions).
+
+ * Jamfile: Fixed incorrect HDRMACRO argument.
+
+ * TODO: Removed the cubic arc bbox computation note, since it has been
+ fixed recently.
+ * src/base/ftbbox.c (test_cubic_zero): Renamed to...
+ (test_cubic_extrema): This function. Use `UL' for unsigned long
+ constants.
+
+ * include/freetype/t1tables.h, include/freetype/config/ftoption.h:
+ Formatting.
+
+2001-05-10 David Turner <david@freetype.org>
+
+ * src/base/ftobjs.c (FT_Open_Face): Fixed a small memory leak
+ which happened when trying to open 0-size font files!
+
+2001-05-09 Werner Lemberg <wl@gnu.org>
+
+ * include/freetype/internal/ftcalc.h: Move declaration of
+ FT_SqrtFixed() out of `#ifdef FT_LONG64'.
+
+2001-05-08 Francesco Zappa Nardelli <Francesco.Zappa.Nardelli@ens.fr>
+
+ * src/pcfdriver.c (PCF_Load_Glyph): Fixed incorrect bitmap width
+ computation.
+
+2001-05-08 David Turner <david@freetype.org>
+
+ * docs/docmaker.py: Updated the DocMaker script in order to add
+ command line options (--output,--prefix,--title), fix the erroneous
+ line numbers reported during errors and warnings, and other
+ formatting issues.
+
+ * src/base/ftcalc.c (FT_MulDiv, FT_MulFix, FT_DivFix): Various tiny
+ fixes related to rounding in 64-bits routines and
+ pseudo-`optimizations'.
+
+2001-04-27 David Turner <david@freetype.org>
+
+ * src/base/ftbbox.c (BBox_Cubic_Check): Fixed the coefficient
+ normalization algorithm (invalid final bit position, and invalid
+ shift computation).
+
+2001-04-26 Werner Lemberg <wl@gnu.org>
+
+ * builds/unix/config.guess, builds/unix/config.sub: Updated to
+ latest versions from gnu.org.
+
+ * builds/compiler/gcc-dev.mk: Add `-Wno-long-long' flag.
+
+ * include/freetype/internal/ftcalc.h: Define FT_SqrtFixed()
+ unconditionally.
+ * src/base/ftbbox.c: Include FT_INTERNAL_CALC_H.
+ Fix compiler warnings.
+ * src/base/ftcalc.c: Fix (potential) compiler warnings.
+
+2001-04-26 David Turner <david@freetype.org>
+
+ * src/base/ftcalc.c (FT_SqrtFixed): Corrected/optimized the 32-bit
+ fixed-point square root computation. It is now used even with
+ 64-bits integers, as it is _much_ faster than calling FT_Sqrt64 :-)
+
+ * src/base/ftbbox.c: Removed invalid `#include FT_BEZIER_H' line.
+
+2001-04-25 David Turner <david@freetype.org>
+
+ * src/base/ftbbox.c (BBox_Cubic_Check): Rewrote function to use
+ direct computations with 16.16 values instead of sub-divisions. It
+ is now slower, but proves a point :-)
+
+ * src/raster/ftraster.c, src/smooth/ftgrays.c, src/base/ftbbox.c:
+ Fixed the Bézier stack depths.
+
+ * src/base/ftcalc.c (FT_MulFix): Minor rounding fix.
+
+ * builds/beos: Added BeOS-specific files to the old build system
+ (no changes were necessary to support BeOS in the Jamfile though).
+
+2001-04-20 David Turner <david@freetype.org>
+
+ * ftconfig.h, ftoption.h: Updated `ftconfig.h' to detect 64-bit int
+ types on platforms where Autoconf is not available). Also removed
+ FTCALC_USE_LONG_LONG and replaced it with
+ FT_CONFIG_OPTION_FORCE_INT64.
+
+ * builds/win32/freetype.dsp: Updated the Visual C++ project file.
+ Doesn't create a DLL yet.
+
+ * cffgload.c: Removed a compilation warning.
+
+2001-04-10 Tom Kacvinsky <tkacvins@freetype.org>
+
+ * t1load.c (parse_charstrings): Changed code for placing .notdef
+ glyph into slot 0 so that we no longer have a memory access
+ violation.
+
+ * t1load.h: In structure T1_Loader, added swap_table (of type
+ PS_Table) to facilitate placing the .notdef glyph into slot 0.
+
+2001-04-10 Francesco Zappa Nardelli <francesco.zappa.nardelli@ens.fr>
+
+ * src/pcf/pcfdriver.c (PCF_Get_Char_Index): Fix return value.
+
+2001-04-09 Laurence Withers <lwithers@lwithers.demon.co.uk>
+
+ * builds/dos/detect.mk: Add support for bash.
+
+2001-04-05 Werner Lemberg <wl@gnu.org>
+
+ * builds/os2/*.mk: These files have been forgotten to update to
+ the structure of similar makefiles.
+ * builds/dos/*.mk: Ditto.
+ * builds/ansi/*.mk: Ditto.
+
+ * builds/win32/win32-def.mk (BUILD): Fix typo.
+
+ * builds/compiler/*.mk (CLEAN_LIBRARY): Don't use NO_OUTPUT.
+ This is already used in the link_*.mk files.
+
+2001-04-03 Werner Lemberg <wl@gnu.org>
+
+ * src/*/Jamfile: Slight changes to make files more cryptic.
+
+2001-04-03 Werner Lemberg <wl@gnu.org>
+
+ * Jamfile, src/Jamfile, src/*/Jamfile: Formatted. Slight changes
+ to give files identical structure.
+
+2001-04-02 Werner Lemberg <wl@gnu.org>
+
+ * CHANGES: Reformatted, minor fixes.
+ * TODO: Updated.
+ * README: Formatting.
+ * include/freetype/freetype.h: Formatting.
+
+ * Jamfile: Fix typo.
+
+ * src/cff/cffparse.c: Move error code #defines to...
+ * include/freetype/internal/cfferrs.h: This file.
+ * src/cff/cffdrivr.c, src/cff/cffobjs.c, src/cff/cffload.c: Replaced
+ `FT_Err_*' with `CFF_Err_*'.
+ * src/cid/cidparse.c: Replaced `FT_Err_*' with `T1_Err_*'.
+ * src/psaux/psobjs.c, src/psaux/t1decode.c: Ditto.
+ * src/sfnt/sfobjs.c, src/sfnt/ttload.c: Replaced `FT_Err_*' with
+ `TT_Err_*'.
+ * src/truetype/ttgload.c, src/truetype/ttobjs.c: Ditto.
+ * src/type1/t1gload.c, src/type1/t1load.c, src/type1/t1objs.c,
+ src/type1/t1parse.c: Replaced `FT_Err_*' with `T1_Err_*'.
+
+ * include/freetype/internal/cfferrs.h: Add
+ `CFF_Err_Unknown_File_Format'.
+ * include/freetype/internal/t1errors.h: Add
+ `T1_Err_Unknown_File_Format'.
+ * include/freetype/internal/tterrors.h: Add
+ `TT_Err_Unknown_File_Format'.
+
+ * src/cff/cffload.h: Add `cff_*_encoding' and `cff_*_charset'
+ references.
+ * src/psaux/psobjs.c: Include `FT_INTERNAL_TYPE1_ERRORS_H'.
+
+ * src/cff/cffobjs.c (CFF_Init_Face, CFF_Done_Face): Use
+ FT_LOCAL_DEF.
+ * src/cid/cidobjs.c (CID_Done_Driver): Ditto.
+ * src/truetype/ttobjs.c (TT_Init_Face, TT_Done_Face, TT_Init_Size):
+ Ditto.
+ * src/type1/t1objs.c (T1_Done_Driver): Ditto.
+ * src/pcf/pcfdriver.c (PCF_Done_Face): Ditto.
+ * src/pcf/pcf.h: Use FT_LOCAL for `PCF_Done_Face'.
+
+2001-04-02 Tom Kacvinsky <tkacvins@freetype.org>
+
+ * src/sfnt/ttload.c (TT_Load_Metrics): Fix an improper pointer
+ dereference. Submitted by Herbert Duerr <duerr@sun.com>.
+
+2001-03-26 Tom Kacvinsky <tkacvins@freetype.org>
+
+ * include/freetype/config/ftconfig.h: Changed hexadecimal
+ constants to use suffix U to avoid problems with HP-UX's c89
+ compiler. Submitted by G.W. Lucas <glucas@sonalysts.com>.
+
+2001-03-24 David Turner <david.turner@freetype.org>
+
+ * Jamrules, Jamfile, src/Jamfile, src/*/Jamfile: Adding jamfiles to
+ the source tree. See www.freetype.org/jam/index.html for details.
+
+
+ * Version 2.0.2 released.
+ =========================
+
+
+2001-03-20 Werner Lemberg <wl@gnu.org>
+
+ * builds/win32/detect.mk: Fix .PHONY target for Intel compiler.
+
+2001-03-20 David Turner <david.turner@freetype.org>
+
+ * include/freetype/config/ftheader.h, include/freetype/ftsnames.h:
+ Renamed `ftnames.h' to `ftsnames.h', and FT_NAMES_H to
+ FT_SFNT_NAMES_H.
+
+ * docs/docmaker.py: Added generation of INDEX link in table of
+ contents.
+
+ * INSTALL, docs/BUILD: Updated documentation to indicate that the
+ compilation process has changed slightly (no more `src' required in
+ the include path).
+
+ * builds/*/*-def.mk: Changed the objects directory from `obj' to
+ `objs'.
+
+ * include/freetype/config/ftheader.h: Removed obsolete macros like
+ FT_SOURCE_FILE, etc. and added cache-specific macro definitions that
+ were previously defined in <freetype/ftcache.h>. Added comments to
+ be included in a new API Reference section.
+
+ * src/*/*: Removed the use of FT_SOURCE_FILE, etc. Now, each
+ component needs to add its own directory to the include path at
+ compile time. Modified all `rules.mk' and `descrip.mms'
+ accordingly.
+
+2001-03-20 Werner Lemberg <wl@gnu.org>
+
+ * builds/unix/configure.in: Add $ft_version.
+ * builds/unix/freetype-config.in: Use it.
+ * builds/unix/configure: Updated.
+
+2001-03-19 Tom Kacvinsky <tkacvins@freetype.org>
+
+ * src/type1/t1load.c (parse_font_matrix): Assign the units per em
+ value an unsigned short value, first by shifting right 16 bits,
+ then by casting the results to FT_UShort.
+
+ * src/cff/cffparse.c (cff_parse_font_bbox): Assign the units per em
+ value an unsigned short value, first by shifting right 16 bits,
+ then by casting the results to FT_UShort.
+
+2001-03-17 David Turner <david.turner@freetype.org>
+
+ * src/cid/cidobjs.c, src/cid/cidload.c, src/pcf/pcfread.c,
+ src/type1/t1load.c, src/type1/t1objs.c: Added a few casts to remove
+ compiler warnings in pedantic modes.
+
+ * include/config/ft2build.h, include/config/ftheader.h: The file
+ `ft2build.h' was renamed to `ftheader.h' to avoid conflicts with the
+ top-level <ft2build.h>.
+
+ * include/config/ftheader.h: Added new section describing the #include
+ macros.
+
+2001-03-17 Tom Kacvinsky <tkacvins@freetype.org>
+
+ * src/cff/cffparse.c (cff_parse_font_bbox): Obtain rounded FT_Fixed
+ values for the bounding box numbers.
+
+ * src/cff/cffobjs.c (CFF_Init_Face): When processing a CFF/CEF font,
+ set `root->ascender' (`root->descender') to the integer part of
+ `root->bbox.yMax' (`root->bbox.yMin', respectively).
+
+2001-03-16 Tom Kacvinsky <tkacvins@freetype.org>
+
+ * src/cff/cffdrivr.c (get_cff_glyph_name): New function. Used in
+ cff_get_interface to facilitate getting a glyph name for glyph index
+ via FT_Get_Glyph_Name().
+
+ (cff_get_interface): Added support for getting a glyph name via the
+ `glyph_name' module interface. Uses the new function
+ get_cff_glyph_name().
+ Submitted by Sander van der Wal <svdwal@xs4all.nl>.
+
+ * src/cff/cffobjs.c (CFF_Init_Face): Logical or the face flags with
+ FT_FACE_FLAG_GLYPH_NAMES only if FT_CONFIG_OPTION_NO_GLYPH_NAMES is
+ not defined. This is to add support for getting a glyph name from a
+ glyph index via FT_Get_Glyph_Name().
+ Submitted by Sander van der Wal <svdwal@xs4all.nl>.
+
+ * src/cff/cffgload.c (CFF_Parse_CharStrings): Added support for
+ deprecated operator `dotsection'.
+ Submitted by Sander van der Wal <svdwal@xs4all.nl>.
+
+2001-03-12 Werner Lemberg <wl@gnu.org>
+
+ * src/psaux/t1decode.c (T1_Decoder_Parse_Charstrings): Fix error
+ messages.
+
+ * INSTALL, docs/BUILD: We need GNU make 3.78.1 or newer.
+
+2001-03-12 Tom Kacvinsky <tkacvins@freetype.org>
+
+ * include/freetype/internal/psaux.h: Changed the lenIV member of
+ the T1_Decoder_ struct to be an FT_Int instead of an FT_UInt.
+
+ * src/psaux/t1decode.c (T1_Decoder_Parse_Charstrings): Adjust
+ for lenIV seed bytes at the start of a decrypted subroutine.
+
+ * src/cid/cidload.c (cid_read_subrs): Decrypt subroutines only
+ if lenIV >= 0.
+
+ * src/cid/cidgload.c (cid_load_glyph): Decrypt charstrings only
+ if lenIV >= 0.
+
+2001-03-11 Werner Lemberg <wl@gnu.org>
+
+ * TODO: Updated.
+
+ * src/pcf/pcfread.c: Put READ_Fields() always in a conditional to
+ avoid compiler warnings.
+
+2001-03-10 Tom Kacvinsky <tkacvins@freetype.org>
+
+ * TODO: New file.
+
+ * include/freetype/freetype.h: Added prototypes and notes for
+ three new functions: FT_RoundFix, FT_CeilFix, and FT_FloorFix.
+ * src/base/ftcalc.c (FT_RoundFix, FT_CeilFix, FT_FloorFix): Added
+ implementation code.
+
+ * src/cid/cidobjs.c (CID_Init_Face): Use calculated units_per_EM,
+ and if that is not available, default to 1000 units per EM. Changed
+ assignment code for ascender and descender values.
+ * src/cid/cidload.c (parse_font_matrix): Added units_per_EM
+ processing.
+ (parse_font_bbox): Changed to use FT_Fixed number handling.
+
+ * src/type1/t1objs.c (T1_Init_Face): Changed the assignment code
+ for ascender, descender, and max_advance_width.
+ * src/type1/t1load.c (parse_font_bbox): Changed to use FT_Fixed
+ number handling.
+
+2001-03-10 Henrik Grubbström <grubba@roxen.com>
+
+ * src/*/*.c: Added many casts to make code more 64bit-safe.
+
+2001-03-07 Werner Lemberg <wl@gnu.org>
+
+ * INSTALL, docs/BUILD: We need GNU make 3.78 or newer.
+
+2001-03-07 Tom Kacvinsky <tkacvins@freetype.org>
+
+ * src/type1/t1objs.c (T1_Init_Face): Minor correction: We must wait
+ until parse_font_bbox is changed before we use logical shift rights
+ in the assignments of `root->ascender', `root->descender', and
+ `root->max_advance_width'.
+
+ (T1_Done_Face): Free `char_name' table to avoid a memory leak.
+ Submitted by Sander van der Wal <svdwal@xs4all.nl>.
+
+2001-03-05 Tom Kacvinsky <tkacvins@freetype.org>
+
+ * src/cff/cffgload.c (CFF_Load_Glyph): Set glyph control data to the
+ the Type 2 glyph charstring (used by conversion programs).
+ Submitted by Ha Shao <hashao@chinese.com>.
+
+2001-03-04 Antoine Leca <Antoine.Leca@renault.fr>
+
+ * include/freetype/ttnameid.h: Correct a stupid typo which prevented
+ correct compilation (TT_MS_LANGID_TIGRIGNA_ETHIOPIA appeared twice).
+
+2001-03-04 Werner Lemberg <wl@gnu.org>
+
+ * src/autohint/ahtypes.h (AH_Hinter): Add elements
+ `disable_horz_edges', `disable_vert_edges'.
+ * src/autohint/ahhint.c (ah_hint_edges_3, ah_hinter_hint_edges): Use
+ them (and remove static variables with the same names).
+ * src/pcf/pcfutil.c (BitOrderInvert): Add `const'.
+ * docs/glnames.py: Updated to latest pstables.h changes.
+
+ * builds/unix/detect.mk: Add test for Hurd.
+ * builds/hurd/detect.mk: Removed.
+
+2001-03-04 Sander van der Wal <svdwal@xs4all.nl>
+
+ * src/psnames/pstables.h: Add more `const'.
+ * src/pcf/pcfutil.c: Ditto.
+
+2001-03-04 Werner Lemberg <wl@gnu.org>
+
+ * src/base/ftglyph.c (FT_Glyph_To_Bitmap): Fixing typo
+ (FT_Glyph_Done -> FT_Done_Glyph).
+
+2001-03-01 Antoine Leca <Antoine.Leca@renault.fr>
+
+ * include/freetype/ttnameid.h: Added some new Microsoft language
+ codes and LCIDs as found in Office Xp.
+
+2001-02-28 David Turner <david.turner@freetype.org>
+
+ * builds/hurd/detect.mk: New file. Added support to detect the GNU
+ Hurd operating system as Unix-like. Fix submitted by Anthony Fok
+ <foka@debian.org>.
+
+ * src/type1/t1gload.c (T1_Load_Glyph): Set glyph control data to the
+ the Type 1 glyph charstring (used by conversion programs).
+ Submitted by Ha Shao <hashao@chinese.com>.
+
+2001-02-22 David Turner <david.turner@freetype.org>
+
+ * src/base/ftgrays.c (grays_sweep): The function didn't exit
+ immediately if `num_cells' was 0 as it should. Thanks to Boris for
+ finding this out.
+
+ * src/base/ftglyph.c (FT_Glyph_To_Bitmap): Fixed memory leak when
+ bitmap rendering fails (thanks to Graham Asher).
+
+2001-02-13 Werner Lemberg <wl@gnu.org>
+
+ * docs/docmaker.py (DocSection::add_element): Use
+ `self.print_error()'.
+
+ * builds/unix/config.{guess,sub}: Updated (from ftp.gnu.org).
+
+2001-02-13 David Turner <david.turner@freetype.org>
+
+ * docs/docmaker.py, include/freetype/*.h: Updated the DocMaker
+ script to support chapters and section block ordering. Updated the
+ public header files accordingly.
+
+ * src/base/ftglyph.c (FT_Glyph_Copy): Advance width and glyph format
+ were not correctly copied.
+
+2001-02-08 Tom Kacvinsky <tkacvins@freetype.org>
+
+ * src/cff/cffparse.c (cff_parse_font_matrix): Removed an
+ unnecessary fprintf( stderr, ... ).
+
+2001-02-07 Tom Kacvinsky <tkacvins@freetype.org>
+
+ * src/type1/t1objs.c (T1_Init_Face): Added code to get the
+ units_per_EM from the value assigned in parse_font_matrix, if
+ available. Default to 1000 if not available.
+
+ * src/cff/cffparse.c (cff_parse_font_matrix): Added logic to get
+ the units_per_EM from the FontMatrix.
+
+ (cff_parse_fixed_thousand): New function. Gets a real number from
+ the CFF font, but multiplies by 1000 (this is to avoid rounding
+ errors when placing this real number into a 16.16 fixed number).
+
+ (cff_parse_real): Added code so that the integer part is moved
+ into the high sixteen bits of the 16.16 fixed number.
+
+ * src/cff/cffobjs.c (CFF_Init_Face): Added logic to get the units
+ per EM from the CFF dictionary, if available.
+
+ * include/freetype/internal/cfftypes.h: In struct CFF_Font_Dict_,
+ added a units_per_em member to facilitate passing of units_per_em
+ from function cff_parse_font_matrix.
+
+ * src/type1/t1load.c (is_alpha): Make `-' a legal alphanumeric
+ character. This is so that font names with `-' are fully parsed,
+ etc...
+
+2001-02-02 Werner Lemberg <wl@gnu.org>
+
+ * src/psaux/psobjs.c (shift_elements): Remove if clause (which is
+ obsolete now).
+
+ (reallocate_t1_table, PS_Table_Done): Replace REALLOC() with ALLOC()
+ + MEM_Copy() to avoid a memory bug.
+
+2001-02-01 David Turner <david.turner@freetype.org>
+
+ * docs/docmaker.py: Improved the index sorting routine to place
+ capital letters before small ones. Added the `<order>' marker to
+ section blocks in order to give the order of blocks.
+
+2001-01-30 Antoine Leca <Antoine.Leca@renault.fr>
+
+ * include/freetype/ttnameid.h: Latest updates to Microsoft language
+ ID codes.
+
+2001-01-24 Tom Kacvinsky <tkacvins@freetype.org>
+
+ * src/cff/t1load.c (parse_font_matrix): Added heuristic to get
+ units_per_EM from the font matrix.
+
+ (parse_dict): Deleted test to see whether the FontInfo keyword has
+ been seen. Deletion of this test allows fonts without FontInfo
+ dictionaries to be parsed by the Type 1 driver.
+
+ (T1_Open_Face): Deleted empty subroutines array test to make sure
+ fonts with no subroutines still are parsed.
+
+2001-01-17 Francesco Zappa Nardelli <francesco.zappa.nardelli@ens.fr>
+
+ * src/pcfread.c (pcf_get_properties, pcf_get_metrics,
+ pcf_get_bitmaps): Fix compiler errors.
+
+2001-01-11 David Turner <david.turner@freetype.org>
+
+ * src/pcf/pcfread.c: Removed some compilation warnings related
+ to comparison of signed vs. unsigned integers.
+
+ * include/freetype/internal/ftdebug.h: Changed the debug trace
+ constants from trace_t2xxxx to trace_cffxxxx to be able to compile
+ the CFF driver in debug mode.
+
+2001-01-11 Matthew Crosby <mcrosby@marthon.org>
+
+ * builds/unix/freetype-config.in: Fix problems with separate
+ --prefix and --exec-prefix.
+
+2001-01-11 David Turner <david.turner@freetype.org>
+
+ * docs/docmaker.py: Added cross-references generation as well as
+ more robust handling of pathname wildcard matching.
+
+2001-01-10 Werner Lemberg <wl@gnu.org>
+
+ * docs/docmaker.py: Minor improvements to reduce unwanted spaces
+ and empty lines in output.
+
+2001-01-09 David Turner <david.turner@freetype.org>
+
+ * docs/docmaker.py: Improved script to generate table of contents
+ and index pages. It also supports wildcards on non Unix systems.
+
+ * include/freetype/*.h, include/freetype/cache/*.h: Updated comments
+ to include section definitions/delimitations for the API Reference
+ generator.
+
+ * include/freetype/freetype.h: Moved declaration of
+ `FT_Generic_Finalizer' and the `FT_Generic' structure to...
+ * include/freetype/fttypes.h: here.
+
+2001-01-04 Werner Lemberg <wl@gnu.org>
+
+ * include/freetype/ttnameid.h: Updated Unicode code range comments.
+
+2001-01-03 Tom Kacvinsky <tkacvins@freetype.org>
+
+ * src/cff/rules.mk: Use cffgload.{c,h} instead of t2gload.{c,h}.
+
+ * include/freetype/internal/internal.h: Changed to use cfftypes.h
+ (cfferrs.h) instead of t2types.h (t2errors.h, respectively).
+
+ * include/freetype/internal/cfftypes.h: Merged in changes from
+ t2types.h and made this the canonical `types' header for the CFF
+ driver.
+
+ * include/freetype/internal/t2types.h: This file was merged with
+ cfftypes.h and is no longer necessary.
+
+ * include/freetype/internal/t2errors.h: Renamed to cfferrs.h.
+
+ * src/cff/cffobjs.c, src/cff/cffobjs.h, src/cff/cffparse.c,
+ src/cff/cffdrivr.c, src/cff/cff.c, src/cff/cffload.c,
+ src/cff/cffgload.c, src/cff/cffgload.h: Changed to use
+ cffgload.{c,h} instead of t2gload.{c,h}. All occurrences of t2_
+ (T2_) were replaced with cff_ (CFF_, respectively).
+
+ * src/cff/t2gload.h: Renamed cffgload.h.
+
+ * src/cff/t2gload.c: Renamed cffgload.c
+
+2000-01-02 Jouk Jansen <joukj@hrem.stm.tudelft.nl>
+
+ * builds/vms: Support files for VMS architecture added.
+ * descrip.mms, src/*/descrip.mms: VMS makefiles added.
+ * README.VMS: New file.
+
+2000-01-01 Werner Lemberg <wl@gnu.org>
+
+ * LICENSE.TXT: Added info about PCF driver license.
+
+2001-01-01 Francesco Zappa Nardelli <francesco.zappa.nardelli@ens.fr>
+
+ * src/pcf/*: New driver module for PCF font format (used in
+ X Window System).
+ * include/freetype/internal/ftdebug.h (FT_Trace): Added values for
+ PCF driver.
+ * include/freetype/internal/pcftypes.h: New file.
+ * include/freetype/config/ftmodule.h: Added PCF driver module.
+
+2001-01-01 Werner Lemberg <wl@gnu.org>
+
+ * src/winfonts/winfnt.c (FNT_Get_Char_Index): Fix parameter type.
+
+2000-12-31 Werner Lemberg <wl@gnu.org>
+
+ * builds/modules.mk (clean_module_list): Fixed deletion of module
+ file in case `make make_module_list' is called before `make setup'.
+
+2000-12-30 Werner Lemberg <wl@gnu.org>
+
+ * src/cff/cffload.c (CFF_Load_Charset): Improved error messages.
+ (CFF_Load_Charset, CFF_Load_Encoding): Remove unnecessary variable
+ definition.
+
+2000-12-30 Tom Kacvinsky <tkacvins@freetype.org>
+
+ * include/freetype/internal/t2types.h,
+ include/freetype/internal/cfftypes.h: Changed the structures for
+ CFF_Charset and CFF_Encoding for the new implementations of the
+ charset and encoding parsers in the CFF driver.
+
+ * src/cff/t2gload.c (t2_lookup_glyph_by_stdcharcode,
+ t2_operator_seac): Added these functions for use in implementing the
+ seac emulation provided by the Type 2 endchar operator.
+ (T2_Parse_CharStrings): Added seac emulation for the endchar
+ operator.
+
+ * src/cff/cffload.c (CFF_Load_Encoding, CFF_Load_Charset,
+ CFF_Done_Encoding, CFF_Done_Charset): Extended to load and parse the
+ charset/encoding tables, and free the memory used by them when the
+ CFF driver is finished with them. Added tables
+
+ cff_isoadobe_charset
+ cff_expert_charset
+ cff_expertsubset_charset
+ cff_standard_encoding
+ cff_expert_encoding
+
+ so that the encoding/charset parser can handle predefined encodings and
+ charsets.
+
+2000-12-24 Tom Kacvinsky <tkacvins@freetype.org>
+
+ * src/cff/t2gload.c (T2_Load_Glyph): Added code so that the font
+ transform is applied.
+
+ * src/cff/cffparse.c (cff_parse_font_matrix): Added code so that
+ the font matrix numbers are scaled by 1/(matrix->yy). Also, the
+ offset vector now contains integer values instead of 16.16 fixed
+ numbers.
+
+2000-12-22 Tom Kacvinsky <tkacvins@freetype.org>
+
+ * src/autohint/ahhint.c (ah_hinter_load_glyph):
+ Removed unnecessary comments and commented-out code.
+
+2000-12-21 David Turner <david.turner@freetype.org>
+
+ * src/cid/cidafm.c, src/cid/cidafm.h: removed un-needed files,
+ we'll work on supporting CID AFM files later I guess :-)
+
+2000-12-21 Tom Kacvinsky <tkacvins@freetype.org>
+
+ * src/autohint/ahhint.c (ah_hinter_load, ah_hinter_load_glyph):
+ Changed so that fonts with a non-standard FontMatrix render
+ correctly. Previously, the first glyph rendered from such a
+ font did not have the transformation matrix applied.
+
+2000-12-17 Werner Lemberg <wl@gnu.org>
+
+ * *.mk: Added lots of `.PHONY' targets.
+
+2000-12-17 Karsten Fleischer <kfleisc1@ford.com>
+
+ * *.mk: Implemented `platform' target to disable auto-detection.
+
+2000-12-14 Werner Lemberg <wl@gnu.org>
+
+ * docs/design/modules.html: Removed. Covered by design-*.html.
+
+ * INSTALL: Added info about makepp.
+
+2000-12-14 David Turner <david.turner@freetype.org>
+
+ Added support for clipped direct rendering in the smooth renderer.
+ This should not break binary compatibility of existing applications.
+
+ * include/freetype/fttypes.h, include/freetype/ftimage.h: Move
+ definition of the FT_BBox structure from the former to the latter.
+ * include/freetype/ftimage.h: Add `ft_raster_flag_clip' value to
+ FT_Raster_Flag enumeration.
+ Add `clip_box' element to FT_Raster_Params structure.
+ * src/smooth/ftgrays.c (grays_convert_glyph): Implement it.
+
+ * INSTALL: Updated installation instructions on Win32, listing the
+ new `make setup list' target used to list supported
+ compilers/targets.
+
+ * src/raster/ftraster.c (ft_black_render): Test for unsupported
+ direct rendering before testing arguments.
+
+2000-12-13 David Turner <david.turner@freetype.org>
+
+ * include/freetype/config/ft2build.h,
+ include/freetype/internal/internal.h: Fixed header inclusion macros
+ to use direct definitions. This is the only way to do these things
+ in a portable way :-( The rest of the code should follow shortly
+ though everything compiles now.
+
+ * builds/compiler/intelc.mk, builds/compiler/watcom.mk: New files.
+
+ * builds/win32/detect.mk: Added support for the Intel C/C++
+ compiler, as well as _preliminary_ (read: doesn't work!) support for
+ Watcom. Also added a new setup target. Type `make setup list' for
+ a list of supported command-line compilers on Win32.
+
+ * src/base/ftdebug.c: Added dummy symbol to avoid empty file if
+ conditionals are off.
+
+2000-12-13 Werner Lemberg <wl@gnu.org>
+
+ * builds/unix/ftsystem.c: Fixed typos. Fixed inclusion of wrong
+ ftconfig.h file.
+
+2000-12-12 Werner Lemberg <wl@gnu.org>
+
+ * include/freetype/config/ft2build.h (FT2_ROOT, FT2_CONFIG_ROOT):
+ Removed. ANSI C doesn't (explicitly) allow macro expansion in
+ arguments using `##'.
+ (FT2_PUBLIC_FILE, FT2_CONFIG_FILE, FT2_INTERNAL_FILE): Use directory
+ names directly. Make them configurable. Use `##' to strip leading
+ and trailing spaces from arguments.
+
+ * builds/unix/ft2unix.h: Adapted.
+
+ * src/base/ftsystem.c (ft_alloc, ft_realloc, ft_free, ft_io_stream,
+ ft_close_stream): Use FT_CALLBACK_DEF.
+
+ * builds/unix/ftsystem.c: Use new header scheme.
+ (FT_Done_Memory): Use free() from FT_Memory structure.
+
+ * src/base/ftinit.c, src/base/ftmac.c: Header scheme fixes.
+
+2000-12-11 Werner Lemberg <wl@gnu.org>
+
+ * include/freetype/config/ft2build.h (FT2_CONFIG_ROOT,
+ FT2_PUBLIC_FILE, FT2_CONFIG_FILE, FT2_INTERNAL_FILE,
+ FT_SOURCE_FILE): Use `##' operator to be really ANSI C compliant.
+
+2000-12-09 Werner Lemberg <wl@gnu.org>
+
+ * builds/unix/detect.mk: Remove unused USE_CFLAGS variable.
+
+2000-12-08 Werner Lemberg <wl@gnu.org>
+
+ * */*.h: Changed body inclusion macro names to start and end with
+ `__' (those which haven't converted yet). Fixed minor conversion
+ issues.
+
+ * src/winfonts/winfnt.c: Updated to new header inclusion scheme.
+
+ * src/truetype/ttinterp.c: Remove unused CALC_Length() macro.
+
+2000-12-07 David Turner <david.turner@freetype.org>
+
+ * */*.[ch]: Changed source files to adhere to the new
+ header inclusion scheme. Not completely tested but works for now
+ here.
+
+ * src/cff/t2driver.c: Renamed and updated to...
+ * src/cff/cffdrivr.c: New file.
+ * src/cff/t2driver.h: Renamed and updated to...
+ * src/cff/cffdrivr.h: New file.
+ * src/cff/t2load.c: Renamed and updated to...
+ * src/cff/cffload.c: New file.
+ * src/cff/t2load.h: Renamed and updated to...
+ * src/cff/cffload.h: New file.
+ * src/cff/t2objs.c: Renamed and updated to...
+ * src/cff/cffobjs.c: New file.
+ * src/cff/t2objs.h: Renamed and updated to...
+ * src/cff/cffobjs.h: New file.
+ * src/cff/t2parse.c: Renamed and updated to...
+ * src/cff/cffparse.c: New file.
+ * src/cff/t2parse.h: Renamed and updated to...
+ * src/cff/cffparse.h: New file.
+ * src/cff/t2tokens.h: Renamed and updated to...
+ * src/cff/cfftoken.h: New file.
+
+ * src/cff/cff.c, src/cff/rules.mk: Updated.
+
+2000-12-06 David Turner <david.turner@freetype.org>
+
+ * src/cache/ftlru.c (FT_Lru_Done): Fixed memory leak.
+
+2000-12-06 Werner Lemberg <wl@gnu.org>
+
+ * builds/module.mk: Replaced `xxx #' with `xxx$(space).
+ * builds/os2/detect.mk, builds/win32/detect.mk: Moved comment to
+ avoid trailing spaces in variable.
+ * builds/freetype.mk: Use $(D) instead of $D to make statement more
+ readable.
+
+ * docs/docmaker.py: Formatting.
+
+2000-12-05 David Turner <david.turner@freetype.org>
+
+ * src/psaux/psauxmod.c: Fixed a broken inclusion of component
+ header files (an FT_FLAT_COMPILE test was missing).
+
+ * src/cache/ftcmanag.c (FTC_Manager_Done): Fixed a bug that caused
+ an occasional crash when the function was called (due to a dangling
+ pointer).
+
+ * src/base/ftsystem.c (FT_Done_Memory): Fixed an obvious bug:
+ The ANSI `free()' function was called instead of `memory->free()'.
+
+ * docs/docmaker.py: Added section filtering, multi-page generation
+ (index page generation is still missing though).
+
+2000-12-04 David Turner <david.turner@freetype.org>
+
+ * builds/unix/install.mk, builds/unix/ft2unix.h: The file `ft2unix.h'
+ is now installed as <ft2build.h> for Unix systems. Note that we
+ still use the `freetype2/freetype' installation path for now.
+
+ * */*.[ch]: Now using <ft2build.h> as the default build and setup
+ configuration file in all public headers. Internal source files
+ still need some changes though.
+
+ * builds/devel/ft2build.h, builds/devel/ftoption.h: Created a new
+ directory to hold all development options for both the Unix and
+ Win32 developer builds.
+
+ * builds/win32/detect.mk, builds/win32/w32-bccd.mk,
+ builds/win32/w32-dev.mk: Changed the developer build targets to
+ `devel-gcc' and `devel-bcc' in order to be able to develop with the
+ Borland C++ compiler.
+
+2000-12-01 David Turner <david.turner@freetype.org>
+
+
+ * Version 2.0.1 released.
+ =========================
+
+
+ * builds/unix/configure.in, builds/unix/configure,
+ builds/cygwin/configure.in, builds/cygwin/configure: Setting
+ `version_info' to 6:1:0 for the 2.0.1 release.
+
+ * CHANGES: Added a summary of changes between 2.0.1 and 2.0.
+
+ * builds/unix/ftconfig.in, builds/cygwin/ftconfig.in: Changes
+ to allow compilation under Unix with the Unix-specific config
+ files.
+
+2000-12-01 Werner Lemberg <wl@gnu.org>
+
+ * INSTALL: Revised.
+ * builds/compiler/bcc-dev.mk, builds/compiler/visualage.mk,
+ builds/compiler/bcc.mk, builds/win32/w32-bcc.mk,
+ builds/win32/w32-bccd.mk: Revised.
+ * include/freetype/config/ftbuild.h,
+ include/freetype/internal/internal.h: Revised.
+ * include/freetype/ftimage.h: Updated to new header inclusion scheme.
+
+2000-11-30 Werner Lemberg <wl@gnu.org>
+
+ * builds/toplevel.mk (.PHONY): Adding `distclean'.
+ * builds/unix/detect.mk (.PHONY): Adding `devel', `unix', `lcc',
+ `setup'.
+
+2000-11-30 David Turner <david.turner@freetype.org>
+
+ * INSTALL: Slightly updated the quick starter documentation to
+ include IDE compilation, prevent against BSD Make, and specify `make
+ setup' instead of a single `make' for build configuration.
+
+ * include/config/ftbuild.h, include/internal/internal.h: Added new
+ configuration files used to determine the location of all public,
+ configuration, and internal header files for FreeType 2. Modified
+ all headers under `include/freetype' to reflect this change. Note
+ that we still need to change the library source files themselves
+ though.
+
+ * builds/compiler/bcc.mk, builds/compiler/bcc-dev.mk,
+ builds/win32/w32-bcc.mk, builds/win32/w32-bccd.mk,
+ builds/win32/detect.mk: Added new files to support compilation with
+ the free Borland C++ command-line compiler. Modified the detection
+ rules to recognize the new `bcc32' target in `make setup bcc32'.
+
+ * src/sfnt/ttcmap.c, src/sfnt/ttpost.c, src/sfnt/ttsbit.c,
+ src/truetype/ttobjs.c, src/truetype/ttgload.c,
+ src/truetype/ttinterp.c: Fixed a few comparisons that Borland C++
+ didn't really like. Basically, this compiler complains when FT_UInt
+ is compared to FT_UShort (apparently, it promotes `UShort' to `Int'
+ in these cases).
+
+2000-11-30 Tom Kacvinsky <tkacvins@freetype.org>
+
+ * t2objs.c (T2_Init_Face): Added calculation of `face->height' for
+ pure CFF fonts.
+
+ * t1objs.c (T1_Init_Face): Fixed computation of `face->height'.
+
+2000-11-29 David Turner <david.turner@freetype.org>
+
+ * src/base/ftbbox.c (BBox_Conic_Check): Fixed a really stupid
+ bug in the formula used to compute the conic Bézier extrema
+ of non-monotonous arcs.
+
+2000-11-29 Werner Lemberg <wl@gnu.org>
+
+ * src/base/ftcalc.c (FT_SqrtFixed), src/base/ftobjs.c
+ (FT_Set_Renderer): Use FT_EXPORT_DEF.
+ * src/cache/ftcimage.c (FTC_Image_Cache_Lookup),
+ src/cache/ftcmanag.c (FTC_Manager_Done, FTC_Manager_Reset,
+ FTC_Manager_Lookup_Face, FTC_Manager_Lookup_Size,
+ FTC_Manager_Register_Cache), src/cache/ftcsbits.c
+ (FTC_SBit_Cache_Lookup): Ditto.
+
+ * src/include/freetype/cache/ftcglyph.h (FTC_GlyphNode_Init),
+ src/include/freetype/ftmac.h (FT_New_Face_From_FOND): Use FT_EXPORT.
+
+2000-11-29 Werner Lemberg <wl@gnu.org>
+
+ * src/sfnt/sfdriver.c: Include ttsbit.h and ttpost.h only
+ conditionally.
+
+ * src/truetype/ttdriver.c (Set_Char_Sizes, Set_Pixel_Sizes): Set
+ `size->strike_index' only conditionally.
+
+ * src/type1/t1driver.c, src/type1/t1objs.c: Include t1afm.h only
+ conditionally.
+
+ * src/winfonts/winfnt.h: Move all type definitions to...
+ * src/include/freetype/internal/fnttypes.h: New file.
+ * src/winfonts/winfnt.c: Use it.
+
+2000-11-29 ??? ??? <darin@eazel.com>
+
+ * include/freetype/internal/ftdebug.h: Replaced FT_CAT and FT_XCAT
+ with a direct solution (which also satisfies picky compilers).
+
+2000-11-28 YAMANO-UCHI Hidetoshi <mer@din.or.jp>
+
+ * src/truetype/ttobjs.c (TT_Init_Size): Fix #ifdef's to work with
+ disabled interpreter also.
+
+ * src/base/ftnames.c (FT_Get_Sfnt_Name_Count): Fix incorrect
+ parentheses.
+
+2000-11-26 Tom Kacvinsky <tkacvins@freetype.org>
+
+ * src/cff/t2gload.c (T2_Parse_CharStrings): Added logic to glyph
+ width setting code to take into account even/odd argument counts
+ and glyph width operand before endchar/hmoveto/vmoveto.
+
+2000-11-26 Werner Lemberg <wl@gnu.org>
+
+ * builds/ansi/ansi.mk: Fix inclusion order of files.
+
+2000-11-26 Keith Packard <keithp@keithp.com>
+
+ * src/type1/t1objs.c (T1_Init_Face): Compute style flags.
+
+2000-11-26 Werner Lemberg <wl@gnu.org>
+
+ * builds/compiler/ansi-cc.mk (CLEAN_LIBRARY): Fix rule and
+ conditional.
+
+2000-11-23 Werner Lemberg <wl@gnu.org>
+
+ * src/type1/t1load.c (parse_subrs, parse_charstrings): Use decrypt
+ function from PSAux module.
+
+ * src/type1/t1parse.c (T1_Done_Parse): Renamed to...
+ (T1_Finalize_Parser): New function (to avoid name clash with a
+ function in the PSAux module).
+ (T1_Decrypt): Removed since it is duplicated in the PSAux module.
+ (T1_Get_Private_Dict): Added `psaux' as new parameter; use decrypt
+ function from PSAux module.
+
+ * src/type1/t1parse.h: Adapted.
+
+2000-11-22 Tom Kacvinsky <tkacvins@freetype.org>
+
+ * src/cff/t2objs.c (T2_Init_Face): For pure CFF fonts, set
+ `root->num_faces' to `cff->num_faces' and set `units_per_EM'
+ to 1000.
+
+ * src/cff/t2parse.c (parse_t2_real): Fixed real number parsing
+ loop.
+
+ * src/cff/t2load.c (T2_Get_String): Called T2_Get_Name with a
+ sid that was off by one.
+
+2000-11-16 David Turner <david@freetype.org>
+
+ * src/autohint/ahtypes.h (AH_Hinter): Added new fields to control
+ auto-hinting of synthetic Type 1 fonts.
+
+ * src/autohint/ahhint.c (ah_hinter_load, ah_hinter_load_glyph):
+ Added auto-hinting support of synthetic Type 1 fonts.
+
+2000-11-12 Tom Kacvinsky <tkacvins@freetype.org>
+
+ * src/sfnt/ttload.c (TT_LookUp_Table, TT_Load_Generic_Table): Change
+ tracing output.
+
+ * src/sfnt/sfobjs.c (SFNT_Load_Face): Set boolean variable
+ `has-outline' to true only if the font has a `glyf' or `CFF ' table.
+
+2000-11-11 Werner Lemberg <wl@gnu.org>
+
+ * builds/win32/visualc/freetype.dsp: Fix raster1->raster and
+ type1z->type1.
+
+2000-11-11 Tom Kacvinsky <tkacvins@freetype.org>
+
+ * builds/unix/freetype-config.in, builds/cygwin/freetype-config.in:
+ Added a --libtool option. When freetype-config --libtool is
+ invoked, the absolute path to the libtool convenience library
+ is returned.
+
+2000-11-11 Werner Lemberg <wl@gnu.org>
+
+ * builds/cygwin/cygwin-def.in: Same fix as previous.
+
+2000-11-10 Tom Kacvinsky <tkacvins@freetype.org>
+
+ * builds/unix/unix-def.in: Add
+
+ INSTALL_PROGRAM := @INSTALL_PROGRAM@
+ INSTALL_SCRIPT := @INSTALL_SCRIPT@
+
+ so that installation of freetype-config does not fail.
+
+2000-11-10 Werner Lemberg <wl@gnu.org>
+
+ * builds/cygwin/freetype-config.in, builds/unix/freetype-config.in:
+ Move test down for empty --exec-prefix.
+ Fix --version.
+
+ * builds/cygwin/install.mk, builds/unix/install.mk: Use
+ $(INSTALL_SCRIPT) for installation of freetype-config.
+
+ * builds/cygwin/install.mk: Fix clean target names.
+
+2000-11-09 David Turner <david@freetype.org>
+
+
+ * Version 2.0 released.
+ =======================
+
+----------------------------------------------------------------------------
+
+Copyright (C) 2000-2021 by
+David Turner, Robert Wilhelm, and Werner Lemberg.
+
+This file is part of the FreeType project, and may only be used, modified,
+and distributed under the terms of the FreeType project license,
+LICENSE.TXT. By continuing to use, modify, or distribute this file you
+indicate that you have read the license and understand and accept it
+fully.
+
+
+Local Variables:
+version-control: never
+coding: utf-8
+End:
diff --git a/freetype/docs/oldlogs/ChangeLog.21 b/freetype/docs/oldlogs/ChangeLog.21
new file mode 100644
index 00000000..71f9f00d
--- /dev/null
+++ b/freetype/docs/oldlogs/ChangeLog.21
@@ -0,0 +1,9438 @@
+2005-06-08 Werner Lemberg <wl@gnu.org>
+
+
+ * Version 2.1.10 released.
+ ==========================
+
+
+ * src/pcf/readme: Renamed to...
+ * src/pcf/README: This.
+
+2005-06-07 Detlef Würkner <TetiSoft@apg.lahn.de>
+
+ * builds/amiga/*: Added copyright notes, reworked some comments.
+
+2005-06-05 Werner Lemberg <wl@gnu.org>
+
+ * Add copyright notices to all files which don't have one.
+
+ * docs/license.txt: Renamed to...
+ * docs/LICENSE.TXT: This.
+ * docs/FTL.txt: Renamed to...
+ * docs/FTL.TXT: This.
+ * docs/GPL.txt: Renamed to...
+ * docs/GPL.TXT: This.
+
+ * docs/PATENTS: Slightly reworded. Suggested by Sylvain Beucler
+ <beuc@gnu.org>.
+
+2005-06-04 Werner Lemberg <wl@gnu.org>
+
+ * include/freetype/ftimage.h (FT_Outline_MoveToFunc,
+ FT_Outline_LineToFunc, FT_Outline_ConicToFunc,
+ FT_Outline_CubicToFunc, FT_Raster_RenderFunc),
+ include/freetype/ftrender.h (FT_Glyph_TransformFunc,
+ FT_Renderer_RenderFunc, FT_Renderer_TransformFunc): Don't use
+ `const' to stay compatible with FreeType 2.1.9.
+
+2005-06-01 Adam D. Moss <adam@gimp.org>
+
+ * src/base/ftstroke.c (ft_stroker_inside): Revert `sigma' patch from
+ 2004-07-11; this gives much better results under normal
+ circumstances.
+
+2005-05-30 Chia I Wu <b90201047@ntu.edu.tw>
+
+ * include/freetype/ftbitmap.h (FT_Bitmap_Embolden): Minor
+ documentation improvements.
+
+ * include/freetype/ftoutln.h (FT_Outline_Embolden): Fix typos.
+
+ * src/base/ftbitmap.c (FT_Bitmap_Embolden): Add support for bitmap
+ of pixel_mode FT_PIXEL_MODE_GRAY2 or FT_PIXEL_MODE_GRAY4.
+ If xstr is larger than 8 and bitmap is of pixel_mode
+ FT_PIXEL_MODE_MONO, set xstr to 8 instead of returning error.
+
+2005-05-29 Chia I Wu <b90201047@ntu.edu.tw>
+
+ * src/base/ftbitmap.c (FT_Bitmap_Embolden): Fix emboldening bitmap
+ of mode FT_PIXEL_MODE_GRAY. Also add support for mode
+ FT_PIXEL_MODE_LCD and FT_PIXEL_MODE_LCD_V.
+ (ft_bitmap_assure_buffer): FT_PIXEL_MODE_LCD and FT_PIXEL_MODE_LCD_V
+ should have ppb (pixel per byte) 1.
+ Zero the padding when there's no need to allocate memory.
+
+ * src/base/ftsynth.c (FT_GlyphSlot_Embolden): Handle slot->advance
+ too.
+ More suited emboldening strength.
+
+2005-05-28 Chia I Wu <b90201047@ntu.edu.tw>
+
+ * src/base/ftbitmap.c (FT_Bitmap_Embolden): Handle negative pitch.
+ Handle FT_PIXEL_MODE_GRAY with num_gray != 256.
+ Improve speed for FT_PIXEL_MODE_GRAY.
+ (ft_bitmap_assure_buffer): Accept FT_PIXEL_MODE_LCD and
+ FT_PIXEL_MODE_LCD_V.
+
+2005-05-27 Chia I Wu <b90201047@ntu.edu.tw>
+
+ * src/base/ftsynth.c (FT_GlyphSlot_Embolden): Initialize `error'.
+
+ * src/base/ftobjs.c (ft_cmap_done_internal): New function.
+ (FT_CMap_Done): Remove cmap from cmap list.
+ (destroy_charmaps, FT_CMap_New): Don't call FT_CMap_Done but
+ ft_cmap_done_internal.
+
+2005-05-26 Werner Lemberg <wl@gnu.org>
+
+ * docs/GPL.txt: Update postal address of FSF.
+
+2005-05-26 Chia I Wu <b90201047@ntu.edu.tw>
+
+ * include/freetype/ftbitmap.h (FT_Bitmap_Embolden): Improve
+ documentation.
+
+ * src/base/ftsynth.c (FT_BOLD_THRESHOLD): Removed.
+ (FT_GlyphSlot_Embolden): Check whether slot is bitmap owner.
+ Always modify the metrics.
+
+2005-05-24 Werner Lemberg <wl@gnu.org>
+
+ * docs/CHANGES: Updated.
+
+2005-05-24 Chia I Wu <b90201047@ntu.edu.tw>
+
+ * include/freetype/ftbitmap.h (FT_Bitmap_Embolden): New declaration.
+
+ * include/freetype/ftoutln.h (FT_Outline_Embolden): New declaration.
+
+ * src/base/ftbitmap.c (ft_bitmap_assure_buffer): New auxiliary
+ function.
+ (FT_Bitmap_Embolden): New function.
+
+ * src/base/ftoutln.c (FT_Outline_Embolden): New function.
+
+ * src/base/ftsynth.c: Don't include FT_INTERNAL_CALC_H and
+ FT_TRIGONOMETRY_H but FT_BITMAP_H.
+ (FT_GlyphSlot_Embolden): Use FT_Outline_Embolden or
+ FT_Bitmap_Embolden.
+
+2005-05-24 Werner Lemberg <wl@gnu.org>
+
+ * configure: Always remove config.mk, builds/unix/unix-def.mk, and
+ builds/unix/unix-cc.mk. This fixes repeated calls of the script.
+ Reported by Nelson Beebe and Behdad Esfahbod.
+
+ * README.CVS: Mention file permissions.
+
+2005-05-23 Werner Lemberg <wl@gnu.org>
+
+ * builds/amiga/makefile.os4 (WARNINGS), builds/compiler/gcc-dev.mk
+ (CFLAGS), builds/compiler/gcc.mk (CFLAGS): Remove
+ -fno-strict-aliasing.
+
+ * src/sfnt/rules.mk (SFNT_DRV_SRC): Don't include ttsbit0.c --
+ it is currently loaded from ttsbit.c.
+
+2005-05-23 Behdad Esfahbod <behdad@cs.toronto.edu>
+
+ Say you have `(Foo*)x' and want to assign, pass, or return it as
+ `(Bar*)'. If you simply say `x' or `(Bar*)x', then the C compiler
+ would warn you that type casting incompatible pointer types breaks
+ strict-aliasing. The solution is to cast to `(void*)' instead which
+ is the generic pointer type, so the compiler knows that it should
+ make no strict-aliasing assumption on `x'. But the problem with
+ `(void*)x' is that seems like in C++, unlike C, `void*' is not a
+ generic pointer type and assigning `void*' to `Bar*' without a cast
+ causes an error. The solution is to cast to `Bar*' too, with
+ `(Bar*)(void*)x' as the result -- this is what the patch does.
+
+ * include/freetype/cache/ftccache.h (FTC_CACHE_LOOKUP_CMP),
+ include/freetype/cache/ftcmru.h (FTC_MRULIST_LOOKUP_CMP): Remove
+ cast on lvalue, use a temporary pointer instead.
+ Cast temporarily to (void*) to not break strict aliasing.
+
+ * include/freetype/internal/ftmemory.h (FT_MEM_ALLOC,
+ FT_MEM_REALLOC, FT_MEM_QALLOC, FT_MEM_QREALLOC, FT_MEM_FREE),
+ src/base/ftglyph.c (FT_Glyph_To_Bitmap): Cast temporarily to (void*)
+ to not break strict aliasing.
+
+ * src/base/ftinit.c (FT_USE_MODULE): Fix wrong type information.
+
+ * builds/unix/configure.ac (XX_CFLAGS): Remove -fno-strict-aliasing.
+
+2005-05-23 David Turner <dturner@freetype.org>
+
+ Fix Savannah bug #12213 (incorrect behaviour of the cache sub-system
+ in low-memory conditions).
+
+ * include/freetype/cache/ftccache.h (FTC_CACHE_TRYLOOP,
+ FTC_CACHE_TRYLOOP_END): New macros.
+
+ * src/cache/ftccache.c (FTC_Cache_NewNode), src/cache/ftcsbits.c
+ (ftc_snode_compare): Use FT_CACHE_TRYLOOP and FTC_CACHE_TRYLOOP_END.
+
+2005-05-23 Werner Lemberg <wl@gnu.org>
+
+ * src/base/rules.mk (BASE_SRC): Don't add ftsynth.c here but...
+ (BASE_EXT_SRC): Here.
+
+2005-05-22 Werner Lemberg <wl@gnu.org>
+
+ * src/base/ftrfork.c (raccess_guess_apple_generic): Mark
+ `version_number' and `entry_length' as unused.
+ (raccess_guess_linux_double_from_file_name): Remove `memory'.
+ (raccess_make_file_name): Mark `error' as unused.
+
+ * src/bdf/bdflib.c (_bdf_parse_properties): Remove `memory'.
+
+ * src/cid/cidobjs.c (cid_face_init): Remove `psnames'.
+
+ * src/sfnt/sfobjs.c (sfnt_load_face): Remove `memory'.
+
+ * src/truetype/ttgxvar.c (ft_var_readpackedpoints,
+ ft_var_readpackeddeltas, ft_var_load_avar): Mark `error' as unused.
+
+ * src/base/rules.mk (BASE_SRC): Add ftsynth.c.
+
+2005-05-21 David Turner <david@freetype.org>
+
+ * src/base/ftsynth.c (FT_GlyphSlot_Embolden): Fix a bug that
+ produced unpleasant artefacts when trying to embolden very sharp
+ corners.
+
+2005-05-20 Werner Lemberg <wl@gnu.org>
+
+ * docs/CHANGES: Updated.
+
+2005-05-20 Chia I Wu <b90201047@ntu.edu.tw>
+
+ * src/base/ftbitmap.c: Don't include FT_FREETYPE_H and FT_IMAGE_H
+ but FT_BITMAP_H.
+ (FT_Bitmap_Copy): New function (from ftglyph.c).
+
+ * include/freetype/ftbitmap.h (FT_Bitmap_Copy): New public
+ definition.
+
+ * src/base/ftglyph.c: Include FT_BITMAP_H.
+ (ft_bitmap_copy): Move to ftbitmap.c.
+ (ft_bitmap_glyph_init): Remove `memory' variable.
+ Create new bitmap object if FT_GLYPH_OWN_BITMAP isn't set.
+ (ft_bitmap_glyph_copy): Use FT_Bitmap_Copy.
+ (ft_bitmap_glyph_done): Use FT_Bitmap_Done.
+ (ft_outline_glyph_init): Use FT_Outline_Copy.
+
+ * src/base/ftoutln.c (FT_Outline_Copy): Handle source == target.
+ (FT_Outline_Done_Internal): Check for valid `memory' pointer.
+ (FT_Outline_Translate, FT_Outline_Reverse, FT_Outline_Render,
+ FT_Outline_Transform): Check for valid `outline' pointer.
+
+ * src/base/ftobjs.c (FT_New_GlyphSlot): Prepend glyph slot to
+ face->glyph, otherwise a new second glyph slot cannot be created.
+ (FT_Done_GlyphSlot): Fix memory leak.
+ (FT_Open_Face): Updated -- face->glyph is already managed by
+ FT_New_GlyphSlot.
+
+ * src/type42/t42objs.c (T42_GlyphSlot_Done): Updated.
+
+2005-05-20 Kirill Smelkov <kirr@mns.spb.ru>
+
+ * include/freetype/ftimage.h (FT_Raster_Params),
+ include/freetype/ftoutln.h (FT_Outline_Translate,
+ FT_Outline_Transform), src/base/ftoutln.c (FT_Outline_Translate,
+ FT_Outline_Transform): Decorate parameters with `const' where
+ appropriate.
+ Update all callers.
+
+ * src/raster/ftraster.c (ft_black_reset), src/smooth/ftgrays.c
+ (gray_raster_reset): Remove `const' from `pool_base' argument.
+
+2005-05-18 Kirill Smelkov <kirr@mns.spb.ru>
+
+ * src/raster/ftmisc.h: New file. Only needed if ftraster.c is
+ compiled as stand-alone.
+
+ * src/raster/ftraster.c: Add comment how to compile as stand-alone.
+ s/FT_CONFIG_OPTION_STATIC_RASTER/FT_STATIC_RASTER/.
+ s/TT_STATIC_RASTER/FT_STATIC_RASTER/.
+ [_STANDALONE_]: Include ftimage.h and ftmisc.h.
+ (FT_TRACE1, FT_TRACE6, ft_memset, FT_MEM_ZERO): Define
+ conditionally.
+ (Render_Glyph, Render_Gray_Glyph): Return Raster_Err_None (or
+ Raster_Err_Unsupported).
+ (ft_black_new) [_STANDALONE_]: Fix type of `the_raster'.
+ (ft_black_init, ft_black_reset, ft_black_set_mode, ft_black_render):
+ Use `ras', not `raster'.
+ (ft_black_done): Use FT_UNUSED_RASTER.
+ (Horizontal_Sweep_Init, Horizontal_Sweep_Step,
+ Horizontal_Gray_Sweep_Span): Use FT_UNUSED_RASTER.
+
+2005-05-18 Werner Lemberg <wl@gnu.org>
+
+ * docs/announce: Start updating.
+
+ * docs/CHANGES: Updated.
+
+2005-05-16 Vitaliy Pasternak <v_a_pasternak@mail.ru>
+
+ * builds/win32/visualc/freetype.vcproj: Updated.
+ Exclude debug info for `Release' versions to reduce library size.
+
+2005-05-16 Werner Lemberg <wl@gnu.org>
+
+ * src/base/ftobjs.c (FT_Open_Face): Make it work as documented, this
+ is, ignore `aface' completely if face_index < 0. Reported by David
+ Osborn <spam@habitualhiatus.com>.
+
+2005-05-16 Kirill Smelkov <kirr@mns.spb.ru>
+
+ * include/freetype/ftimage.h (FT_Outline_MoveToFunc,
+ FT_Outline_LineTo_Func, FT_Outline_ConicToFunc,
+ FT_Outline_CubicToFunc), src/smooth/ftgrays.c (gray_render_conic,
+ gray_render_cubic, gray_move_to, gray_line_to, gray_conic_to,
+ gray_cubic_to, gray_render_span, gray_sweep): Decorate parameters
+ with `const' where appropriate.
+
+2005-05-11 Kirill Smelkov <kirr@mns.spb.ru>
+
+ * include/freetype/ftimage.h (FT_Raster_RenderFunc),
+ include/freetype/ftrender.h (FT_Glyph_TransformFunc,
+ FT_Renderer_Render_Func, FT_Renderer_TransformFunc),
+ src/base/ftglyph.c (ft_outline_glyph_transform),
+ src/raster/ftrend1.c (ft_raster1_transform, ft_raster1_render),
+ src/smooth/ftgrays.c (FT_Outline_Decompose, gray_raster_render),
+ src/smooth/ftsmooth.c (ft_smooth_transform,
+ ft_smooth_render_generic, ft_smooth_render, ft_smooth_render_lcd,
+ ft_smooth_render_lcd_v): Decorate parameters with `const' where
+ appropriate.
+
+ * src/raster/ftraster.c (RASTER_RENDER_POOL): Removed. Obsolete.
+ (ft_black_render): Decorate parameters with `const' where
+ appropriate.
+
+2005-05-11 Werner Lemberg <wl@gnu.org>
+
+ * src/sfnt/ttcmap.c (tt_cmap4_set_range): Fix typo (FT_PEEK_SHORT ->
+ FT_PEEK_USHORT) which caused crashes. Reported by Ismail Donmez
+ <ismail@kde.org.tr>.
+
+2005-05-08 Werner Lemberg <wl@gnu.org>
+
+ * include/freetype/internal/ftserv.h (FT_FACE_FIND_GLOBAL_SERVICE)
+ [__cplusplus]: Fix typo.
+
+2005-05-07 Werner Lemberg <wl@gnu.org>
+
+ Handle unsorted SFNT type 4 cmaps correctly (reported by Dirck
+ Blaskey <listtarget@danbala.com>).
+
+ * src/sfnt/ttcmap.h (TT_CMap): Add member `unsorted'.
+ * src/sfnt/ttcmap.c: Use SFNT_Err_Ok where appropriate.
+
+ (tt_cmap0_validate, tt_cmap2_validate, tt_cmap6_validate,
+ tt_cmap8_validate, tt_cmap10_validate, tt_cmap12_validate): Use
+ `FT_Error' as return type.
+ (tt_cmap4_validate): Use `FT_Error' as return type.
+ Return error code for unsorted cmap.
+ (tt_cmap4_char_index, tt_cmap4_char_next): Use old code for unsorted
+ cmaps.
+ (tt_face_build_cmaps): Set `unsorted' variable in cmap.
+
+2005-05-07 Werner Lemberg <wl@gnu.org>
+
+ * src/truetype/ttpload.c (tt_face_get_location): Fix typo.
+
+2005-05-06 Werner Lemberg <wl@gnu.org>
+
+ * src/cff/cffobjs.c (cff_face_init): Set ppem value in top
+ dictionary for SFNT-based CFF.
+
+2005-05-05 Werner Lemberg <wl@gnu.org>
+
+ Handle malformed `loca' table entries.
+
+ * docs/TODO: Add some bugs which should be fixed.
+
+ * include/freetype/internal/tttypes.h (TT_FaceRec): Add `glyf_len'
+ element.
+
+ * src/truetype/ttpload.c (tt_face_load_loca): Get length of `glyf'
+ table.
+ (tt_face_get_location): Fix computation of `asize' for malformed
+ `loca' entries.
+
+2005-05-01 David Turner <david@freetype.org>
+
+ * Jamfile: Remove `otvalid' from the list of compiled modules.
+
+ * include/freetype/internal/ftserv.h: Add compiler pragmas to get
+ rid of annoying warnings with Visual C++ compiler in maximum warning
+ mode.
+
+ * src/autofit/afhints.c, src/autofit/aflatin.c, src/base/ftstroke.c,
+ src/bdf/bdfdrivr.c, src/cache/ftcbasic.c, src/cache/ftccmap.c,
+ src/cache/ftcmanag.c, src/cff/cffload.c, src/cid/cidload.c,
+ src/lzw/zopen.c, src/otvalid/otvgdef.c, src/pcf/pcfread.c,
+ src/sfnt/sfobjs.c, src/truetype/ttgxvar.c: Remove compiler warnings.
+
+2005-04-28 Werner Lemberg <wl@gnu.org>
+
+ * docs/TODO: Updated.
+
+2005-04-24 Werner Lemberg <wl@gnu.org>
+
+ * src/otvalid/otvcommn.c
+ (otv_GSUBGPOS_have_MarkAttachmentType_flag): Handle table == 0.
+
+2005-04-16 Werner Lemberg <wl@gnu.org>
+
+ * src/cff/cffobjs.c (cff_face_init): Set default upem value in top
+ font dict also.
+ Handle font matrix settings in subfonts.
+
+ * src/cff/cffgload.c (cff_slot_load): Use the correct font matrix
+ for CID-keyed fonts with subfonts.
+
+ * docs/formats.txt: Updated.
+
+2005-04-14 Kirill Smelkov <kirr@mns.spb.ru>
+
+ * include/freetype/freetype.h (FT_Vector_Transform),
+ include/freetype/ftimage.h (FT_Raster_Params),
+ include/freetype/ftoutln.h, src/base/ftoutln.c (FT_Outline_Get_CBox,
+ FT_Outline_Copy, FT_Outline_Transform, FT_Vector_Transform,
+ FT_Outline_Get_Bitmap), src/raster/ftraster.c (ft_black_render),
+ src/smooth/ftgrays.c (gray_raster_render): Decorate parameters with
+ `const' where appropriate.
+
+2005-04-14 Werner Lemberg <wl@gnu.org>
+
+ * src/type1/t1load.c (parse_charstrings): Catch this non-standard
+ beginning of the /CharStrings dictionary:
+
+ /CharStrings 118 dict def
+ Private begin
+ CharStrings begin
+
+ * src/sfnt/ttsbit0.c (tt_sbit_decoder_load_image): Fix arguments
+ to call of tt_sbit_decoder_load_bitmap.
+
+2005-04-13 Werner Lemberg <wl@gnu.org>
+
+ * docs/TODO: Updated.
+
+ * autogen.sh: Use `--force' for all commands.
+
+2005-04-09 Werner Lemberg <wl@gnu.org>
+
+ * src/pshinter/pshalgo.c (ps_hints_apply): Change scaling values
+ only if `fitted' is not zero.
+
+2005-04-06 Werner Lemberg <wl@gnu.org>
+
+ * src/truetype/ttgload.c (tt_face_get_metrics) [FT_OPTIMIZE_MEMORY]:
+ Fix typo which sometimes causes wrong metrics for the last glyph.
+
+2005-04-04 David Turner <david@freetype.org>
+
+ * devel/ftoption.h, include/freetype/config/ftoption.h
+ (FT_OPTIMIZE_MEMORY): Comment out this macro for the upcoming 2.1.10
+ release.
+ (*_CHESTER_*): Removed. No longer used.
+
+ * src/autofit/afhints.c (af_axis_hints_new_segment,
+ af_axis_hints_new_edge): Small tweak to use less heap memory.
+
+2005-04-03 Werner Lemberg <wl@gnu.org>
+
+ * src/type1/t1parse.c (T1_New_Parser): Relax the check for a valid
+ first line in the font.
+
+2005-04-03 Werner Lemberg <wl@gnu.org>
+
+ * docs/CHANGES, include/freetype/freetype.h: Improve documentation
+ of FT_Set_Pixel_Sizes and FT_Set_Char_Size.
+
+2005-03-26 Detlef Würkner <TetiSoft@apg.lahn.de>
+
+ * builds/amiga/src/base/ftsystem.c (ft_amiga_stream_io): Fix buffer
+ offsets after a large read.
+
+2005-03-26 Werner Lemberg <wl@gnu.org>
+
+ * src/autofit/afglobal.c (af_face_globals_get_metrics):
+ s/index/gidx/.
+
+ * src/sfnt/ttsbit0.c (tt_sbit_decoder_load_image): Fix compiler
+ warnings.
+
+ * src/sfnt/rules.mk (SFNT_DRV_SRC): Add ttsbit0.c.
+
+ * src/sfnt/ttsbit0.h: Dummy file for build with `make'.
+
+2005-03-26 Detlef Würkner <TetiSoft@apg.lahn.de>
+
+ Update of the Amiga port.
+
+ * builds/amiga/makefile, builds/amiga/makefile.os4,
+ builds/amiga/smakefile: Included the base extension files
+ (ftbitmap.c, ftotval.c, ftpfr.c, ftstroke.c, ftxf86.c).
+
+2005-03-25 Detlef Würkner <TetiSoft@apg.lahn.de>
+
+ Update of the Amiga port.
+
+ * builds/amiga/makefile, builds/amiga/smakefile: Handle new modules.
+
+ * builds/amiga/makefile.os4: Makefile for AmigaOS4 SDK.
+
+ * builds/amiga/README: Updated.
+
+ * builds/amiga/include/freetype/config/ftconfig.h: Handle gcc for
+ AmigaOS4.
+
+ * builds/amiga/include/freetype/config/ftmodule.h: Handle new
+ modules.
+
+ * builds/amiga/src/base/ftdebug.c: Updated to current version of
+ default ftdebug.c.
+ Add various include files and macros to have proper support for
+ both AmigaOS4 and older AmigaOS versions.
+ Don't declare KVPrintF explicitly.
+ Replace getenv with GetVar.
+ Actually enable debugging code.
+
+ * builds/amiga/src/base/ftsystem.c: Major rewrite.
+
+2005-03-23 Werner Lemberg <wl@gnu.org>
+
+ * tests/*: Removed.
+
+2005-03-23 Werner Lemberg <wl@gnu.org>
+
+ * docs/CHANGES, docs/INSTALL.ANY: Updated.
+
+ * include/freetype/ftmoderr.h: Replace `Autohint' with `Autofit'.
+ Add `OTvalid'.
+
+ * src/autofit/aferrors.h: New file.
+
+ * src/autofit/afglobal.c, src/autofit/afhints.c,
+ src/autofit/aflatin.c, src/autofit/afloader.c: s/FT_Err_/AF_Err_/.
+ Include aferrors.h.
+
+ * src/autofit/rules.mk (AUTOF_DRV_H): Include aferrors.h.
+
+ * src/otvalid/otverror.h: s/FT_Mod_Err_OTV/FT_Mod_Err_OTvalid/.
+
+2005-03-22 David Turner <david@freetype.org>
+
+ * src/autohint/*: Removed.
+ * Jamfile: Updated.
+
+2005-03-15 David Turner <david@freetype.org>
+
+ * src/bdf/bdflib.c: Remove compiler warnings.
+ (hash_rehash, hash_init): Don't call FT_MEM_ZERO.
+ (_bdf_list_t): Add `memory' field.
+ (_bdf_list_init, _bdf_list_done, _bdf_list_ensure): New functions.
+ (_bdf_shift, _bdf_join): Rename to...
+ (_bdf_list_shift, _bdf_list_join): This.
+ (_bdf_split): Renamed to...
+ (_bdf_list_split): This. Use new functions.
+ (bdf_internal_readstream): Removed.
+ (NO_SKIP): New macro.
+ (_bdf_readstream): Rewritten.
+ (bdf_create_property, _bdf_add_comment): Improve allocation.
+ (_bdf_set_default_spacing, _bdf_parse_glyphs): Updated. Improve
+ allocation.
+ (_bdf_parse_properties, _bdf_parse_start): Updated.
+ (bdf_load_font): Updated to use new functions.
+
+ * src/type1/t1parse.c (check_type1_format): New function.
+ (T1_New_Parser): Use it to check font header before allocating
+ anything on the heap.
+
+ * src/type42/t42parse.c (t42_parser_init): Modify functions to check
+ the font header before allocating anything on the heap.
+
+ * include/freetype/internal/ftmemory.h (FT_ARRAY_MAX,
+ FT_ARRAY_CHECK): New macros.
+
+ * src/base/ftstream.c (FT_Stream_TryRead): New function.
+ * include/freetype/internal/ftstream.h: Updated.
+
+ * src/pcf/pcfread.c (pcf_read_TOC), src/pcf/pcfutil.c
+ (BitOrderInvert, TwoByteSwap, FourByteSwap): Minor fixes and
+ simplifications. Try to protect the PCF driver from doing stupid
+ things with broken fonts.
+
+ * src/lzw/ftlzw.c (FT_Stream_OpenLZW): Check the LZW header before
+ doing anything else. This avoids unnecessary heap allocations
+ (400KByte of heap memory for the LZW decoder).
+
+ * src/gzip/ftgzip.c (FT_Stream_OpenGzip): Ditto for the gzip
+ decoder, although the code savings are smaller.
+
+ * docs/CHANGES: Updated.
+
+2005-03-10 David Turner <david@freetype.org>
+
+ * src/tools/glnames.py: Add comment to explain the compression
+ being used for the Adobe Glyph List.
+
+2005-03-10 Werner Lemberg <wl@gnu.org>
+
+ * src/truetype/ttpload.c (tt_face_load_cvt, tt_face_load_fpgm):
+ Fix serious typo which prevented correct TT rendering.
+
+ * include/freetype/internal/ftmemory.h: Undo change from 2005-03-03.
+ To suppress warnings it is sufficient to use `-fno-strict-aliasing'.
+
+2005-03-10 Werner Lemberg <wl@gnu.org>
+
+ * src/tools/glnames.py: Formatted.
+ Format output to be in sync with other FreeType code.
+ Import `re' and `os.path'.
+ (StringTable) <__init__>: Add parameter to initialize master table
+ name.
+ (StringTable) <dump>: Don't pass master table name.
+ (StringTable) <dump_sublist>: Emit explanatory comment.
+ Simplify and make output more human readable.
+ (t1_bias, glyph_list, adobe_glyph_names): Removed. Unused.
+ (main): Use `basename' for file name in header.
+
+ * src/psnames/pstables.h: Regenerated.
+
+2005-03-09 David Turner <david@freetype.org>
+
+ * src/tools/glnames.py: Rewrite the generator for the `pstables.h'
+ header file which contains various constant tables related to glyph
+ names. It now uses a different, more compact storage scheme that
+ saves about 20KB. This also closes Savannah bug #12262.
+
+ * src/psnames/pstables.h: Regenerated.
+
+ * src/psnames/psmodule.c (ps_unicode_value): Use
+ `ft_get_adobe_glyph_index', a new function defined in `pstables.h'.
+ (ps_get_macintosh_name, ps_get_standard_strings): Updated.
+
+ * src/base/ftobjs.c (FT_Set_Char_Size): Handle fractional sizes
+ more carefully. This fixes Savannah bug #12263.
+
+2005-03-06 David Turner <david@freetype.org>
+
+ * src/otvalid/otvgsub.c, src/otvalid/otvgpos.c: Make static tables
+ constant.
+
+ * src/autofit/aflatin.c (af_latin_metrics_init): Fix Savannah bug
+ #12212 (auto-hinter refuses to work if no Unicode charmap in font).
+
+2005-03-05 Werner Lemberg <wl@gnu.org>
+
+ * autogen.sh: New script for bootstrapping.
+
+ * README.CVS: New file which documents bootstrapping.
+
+ * builds/unix/aclocal.m4, builds/unix/config.guess,
+ builds/unix/config.sub, builds/unix/configure,
+ builds/unix/ltmain.sh: Removed.
+
+2005-03-04 Werner Lemberg <wl@gnu.org>
+
+ * src/base/ftutil.c: Include FT_INTERNAL_OBJECTS_H.
+
+2005-03-03 Werner Lemberg <wl@gnu.org>
+
+ Various fixes for C and C++ compiling.
+
+ * src/autofit/*: Add copyright messages.
+
+ * src/autofit/afhints.c (af_glyph_hints_done): Don't use
+ `AF_Dimension' but `int' for loop counter.
+
+ * src/autofit/aflatin.c (af_latin_metrics_init_widths): Don't use
+ `AF_Dimension' but `int' for loop counter.
+ Use proper enumeration value for `render_mode'.
+ (af_latin_metrics_scale_dim): Don't shadow variables.
+ (af_latin_hints_compute_segments): Use proper cast for `major_dir'
+ and `segment_dir'.
+ (af_latin_align_linked_edge, af_latin_hint_edges): Fix arguments of call to
+ `af_latin_compute_stem_width'.
+ (af_latin_hints_apply): Don't use `AF_Dimension' but `int' for loop
+ counter.
+
+ * src/base/ftdbgmem.c (ft_mem_table_get_source, FT_DumpMemory): Use
+ proper cast for memory allocation.
+
+ * src/cff/cffdrivr.c (cff_get_kerning): Use proper cast for
+ initialization of `sfnt'.
+
+ * src/sfnt/sfdriver.c: Include `ttkern.h'.
+
+ * src/sfnt/ttkern.c (tt_face_get_kerning): Don't shadow variables.
+
+ * src/truetype/ttgload.c: Include `ttpload.h'.
+
+2005-03-03 David Turner <david@freetype.org>
+
+ * include/freetype/internal/ftmemory.h (FT_ALLOC, FT_REALLOC,
+ FT_QALLOC, FT_QREALLOC) [gcc >= 3.3]: Provide macro versions which
+ avoid compiler warnings.
+ (FT_NEW, FT_NEW_ARRAY, FT_RENEW_ARRAY, FT_QNEW, FT_QNEW_ARRAY,
+ FT_QRENEW_ARRAY, FT_ALLOC_ARRAY, FT_REALLOC_ARRAY): Updated.
+
+ * include/freetype/internal/ftserv.h (FT_FACE_FIND_SERVICE,
+ FT_FACE_FIND_GLOBAL_SERVICE, FT_FACE_LOOKUP_SERVICE) [__cplusplus]:
+ Provide macro versions which avoid compiler warnings.
+
+ * src/base/ftutil.c (ft_highpow2): New utility function.
+
+ * include/freetype/internal/ftobjs.h: Updated.
+
+ * src/pfr/pfrload.c (pfr_get_gindex, pfr_compare_kern_pairs,
+ pfr_sort_kerning_pairs): Don't define if FT_OPTIMIZE_MEMORY is set.
+ (pfr_phy_font_done): Don't handle `kern_pairs' if FT_OPTIMIZE_MEMORY
+ is set.
+ (pfr_phy_font_load): Don't call `pfr_sort_kerning_pairs' if
+ FT_OPTIMIZE_MEMORY is set.
+
+ * src/pfr/pfrobjs.c (pfr_slot_load): Comment out some code which
+ doesn't work with broken fonts.
+ (pfr_face_get_kerning) [FT_OPTIMIZE_MEMORY]: Implement.
+
+ * src/pfr/pfrtypes.h (PFR_KernItemRec): Optimize member types.
+ (PFR_NEXT_KPAIR): New macro.
+ (PFR_PhyFontRec): Don't define `kern_pairs' if FT_OPTIMIZE_MEMORY is
+ set.
+
+ * src/sfnt/ttsbit0.c (tt_sbit_decoder_load_image): Introduce
+ temporary variable to avoid gcc warning.
+ (tt_face_load_sbit_image): Mark unused variables with FT_UNUSED.
+
+ * src/truetype/ttpload.c (tt_face_load_loca) [FT_OPTIMIZE_MEMORY]:
+ Remove redundant variable.
+
+ * include/freetype/config/ftmodule.h: Moving the order of drivers to
+ speed up font loading. The PCF and BDF loaders are still slow and
+ consume far too much memory.
+
+2005-03-03 Werner Lemberg <wl@gnu.org>
+
+ * devel/ftoption.h: Updated to recent changes.
+
+2005-03-02 Werner Lemberg <wl@gnu.org>
+
+ * src/autofit/afdummy.c, src/autofit/afdummy.h
+ (af_dummy_script_class): Fix type.
+
+ * src/autofit/aflatin.c, src/autofit/aflatin.h
+ (af_latin_script_class): Fix type.
+
+ * src/autofit/rules.mk (AUTOF_DRV_SRC): Fix typo.
+
+2005-03-01 David Turner <david@freetype.org>
+
+ * src/sfnt/ttkern.c (tt_face_load_kern, tt_face_get_kerning),
+ src/sfnt/ttsbit0.c (tt_face_load_sbit_strikes,
+ tt_sbit_decoder_load_byte_aligned, tt_sbit_decoder_load_compound,
+ tt_sbit_decoder_load_image), src/sfnt/ttload.c
+ (tt_face_load_metrics): Remove compiler warnings
+ -- redundant variables, missing initializations, etc.
+
+ * src/sfnt/ttsbit.h: Handle FT_OPTIMIZE_MEMORY.
+
+ * src/autofit/rules.mk, src/autofit/module.mk,
+ src/autofit/afangles.h: New files.
+
+ * src/autofit/afhints.c (af_axis_hints_new_segment,
+ af_axis_hints_new_edge): New functions.
+ (af_glyph_hints_done): Do proper deallocation.
+ (af_glyph_hints_reload): Only reallocate points array. This
+ drastically reduces heap usage.
+
+ * src/autofit/afhints.h (AF_PointRec, AF_SegmentRec): Optimize
+ member types and positions.
+ (AF_AxisHintsRec): Add `max_segments' and `max_edges'.
+ (af_axis_hints_new_segment, af_axis_hints_new_edge): New prototypes.
+
+ * src/autofit/aflatin.c (af_latin_metrics_scale): Don't call
+ AF_SCALER_EQUAL_SCALES.
+ (af_latin_hints_compute_segments): Change return type to FT_Error.
+ Update all callers.
+ Improve segment allocation.
+ (af_latin_hints_compute_edges): Change return type to FT_Error.
+ Update all callers.
+ Improve edge allocation and link handling.
+ (af_latin_hints_detect_features): Change return type to FT_Error.
+ Update all callers.
+
+ * src/autofit/aflatin.h: Updated.
+
+ * src/autofit/afloader.c (af_loader_load_g)
+ <FT_GLYPH_FORMAT_OUTLINE>: Assure axis->num_edges > 1. This fixes
+ a bug with certain fonts.
+
+ * include/freetype/config/ftmodule.h: The auto-fitter is now the
+ only supported auto-hinting module.
+
+ * include/freetype/config/ftstdlib.h (FT_INT_MAX): New macro.
+
+2005-02-28 Werner Lemberg <wl@gnu.org>
+
+ * src/truetype/ttpload.c (tt_face_load_loca): Fix typo.
+
+ * src/sfnt/ttkern.c: Include `ttkern.h'.
+ (FT_COMPONENT): Updated.
+
+ * include/freetype/internal/fttrace.h: Add entry for `ttkern'.
+
+ * src/sfnt/ttsbit0.c: s/FT_Err_/SFNT_Err_/.
+ Decorate constants with `U' and `L' where necessary.
+
+ * src/sfnt/ttcmap.c (tt_cmap4_next): Remove unused variable.
+
+2005-02-28 David Turner <david@freetype.org>
+
+ * src/base/ftdbgmem.c (FT_DumpMemory): Added sorting of memory
+ sources according to decreasing maximum cumulative allocations.
+ (ft_mem_source_compare): New auxiliary function.
+
+ * src/sfnt/ttsbit0.c: New file, implementing a heap-optimized
+ embedded bitmap loader.
+
+ * src/sfnt/ttsbit.c: Include `ft2build.h', FT_INTERNAL_DEBUG_H,
+ FT_INTERNAL_STREAM_H, FT_TRUETYPE_TAGS_H.
+ Load `ttsbit0.c' if FT_OPTIMIZE_MEMORY is set, otherwise use
+ file contents.
+ (tt_face_load_sbit_strikes): Set up root fields to indicate the
+ strikes. This fixes Savannah bug #12107.
+ Use `static' keyword for `sbit_line_metrics_field',
+ `strike_start_fields', `strike_end_fields'.
+
+ * include/freetype/internal/tttypes.h (TT_FaceRec): Define
+ `sbit_table', `sbit_table_size', `sbit_num_strikes' if
+ FT_OPTIMIZE_MEMORY is set.
+ Don't define `num_sbit_strikes' and `sbit_strikes' if
+ FT_OPTIMIZE_MEMORY is set.
+
+ * src/cff/cffobjs.c (sbit_size_reset): Handle FT_OPTIMIZE_MEMORY.
+
+ * src/sfnt/sfobjs.c (sfnt_load_face): Fixed bug that prevented
+ loading SFNT fonts without a `kern' table.
+ Properly pass root->face_flags.
+ Remove code for TT_CONFIG_OPTION_EMBEDDED_BITMAPS.
+
+ * src/sfnt/sfdriver.c (sfnt_interface)
+ [TT_CONFIG_OPTION_EMBEDDED_BITMAPS]: Don't use `tt_find_sbit_image'
+ and `tt_load_sbit_metrics'.
+
+ * src/sfnt/ttcmap.c: Optimize linear charmap scanning for Format 4.
+ (OPT_CMAP4): New macro.
+ (TT_CMap4Rec) [OPT_CMAP4]: New structure.
+ (tt_cmap4_init, tt_cmap4_set_range, tt_cmap4_next, tt_cmap4_reset)
+ [OPT_CMAP4]: New functions.
+ (tt_cmap4_char_next) [OPT_CMAP4]: Use `tt_cmap4_next' and
+ `tt_cmap4_reset'.
+ (tt_cmap4_class_rec) [OPT_CMAP4]: Use `TT_CMap4Rec' and
+ `tt_cmap4_init'.
+
+ * src/truetype/ttobjs.c (Reset_SBit_Size): Handle
+ FT_OPTIMIZE_MEMORY.
+
+ * src/autofit/afhints.h (AF_PointRec, AF_SegmentRec, AF_EdgeRec):
+ Optimize member types.
+
+ * src/autofit/afloader.c (af_loader_done): Call
+ `af_glyph_hints_done'.
+
+2005-02-27 David Turner <david@freetype.org>
+
+ * src/sfnt/ttkern.c (tt_face_load_kern): Fix a small bug which
+ caused invalid (random) return values for the horizontal kerning.
+
+2005-02-25 David Turner <david@freetype.org>
+
+ Implement several memory optimizations to drastically reduce the
+ heap usage of FreeType, especially in the case of memory-mapped
+ files. The idea is to avoid loading and decoding tables in the
+ heap, and instead access the raw data whenever possible (i.e., when
+ it doesn't compromise performance).
+
+ This has several benefits: For example, opening vera.ttf now uses
+ just a small amount of memory (even when the FT_Library footprint is
+ accounted for), until you start loading glyphs. Even then, you save
+ at least 20KB compared to the non-optimized case. Performance of
+ various operations, including open and close, has also been
+ dramatically improved.
+
+ More optimizations to come, especially for the auto-hinter.
+
+ * include/freetype/internal/sfnt.h (TT_Face_GetKerningFunc): New
+ function type.
+ (SFNT_Interface): Add it.
+
+ * include/freetype/internal/tttypes.h (TT_HdmxEntryRec, TT_HdmxRec,
+ TT_Kern0_PairRec): Don't define if FT_OPTIMIZE_MEMORY is set.
+ (TT_FaceRec): Define `horz_metrics', `horz_metrics_size',
+ `vert_metrics', `vert_metrics_size', `hdmx_table',
+ `hdmx_table_size', `hdmx_record_count', `hdmx_record_size',
+ `hdmx_record_sizes', `kern_table', `kern_table_size,
+ `num_kern_tables', `kern_avail_bits', `kern_order_bits' if
+ FT_OPTIMIZE_MEMORY is set.
+ Don't define `hdmx', `num_kern_pairs', `kern_table_index',
+ `kern_pairs' if FT_OPTIMIZE_MEMORY is set.
+
+ * src/base/ftdbgmem.c (ft_mem_table_set): Don't shadow variable.
+ Fix compiler warning.
+
+ * src/cff/cffdrivr.c (Get_Kerning): Renamed to...
+ (cff_get_kerning): This. Simplify.
+ (cff_driver_class): Updated.
+
+ * src/sfnt/Jamfile (_sources): Add `ttkern'.
+ * src/sfnt/rules.mk (SFNT_DRV_SRC): Add `ttkern.c'.
+
+ * src/sfnt/sfdriver.c (sfnt_interface): Add `tt_face_get_kerning'.
+
+ * src/sfnt/sfnt.c: Include `ttkern.c'.
+
+ * src/sfnt/sfobjs.c: Include `ttkern.h'.
+ (sfnt_load_face): Consider the `kern' and `gasp' table as optional.
+ (sfnt_done_face): Call `tt_face_done_kern'.
+ Handle horizontal metrics for FT_OPTIMIZE_MEMORY.
+
+ * src/sfnt/ttkern.c, src/sfnt/ttkern.h: New files. Code has been
+ taken from `ttload.c' and `ttload.h'.
+ Provide special versions of `tt_face_load_kern',
+ `tt_face_get_kerning', and `tt_face_done_kern' for
+ FT_OPTIMIZE_MEMORY.
+
+ * src/sfnt/ttload.c (tt_face_load_metrics, tt_face_load_hdmx,
+ tt_face_free_hdmx): Provide version for FT_OPTIMIZE_MEMORY.
+ (tt_face_load_kern, tt_kern_pair_compare, TT_KERN_INDEX): Moved to
+ `ttkern.c'.
+
+ * src/sfnt/ttload.h: Updated.
+
+ * src/sfnt/ttsbit.c (sbit_metrics_field): Add `static' keyword.
+
+ * src/truetype/ttdriver.c (Get_Kerning): Renamed to...
+ (tt_get_kerning): This. Simplify.
+ (tt_driver_class): Updated.
+
+ * src/truetype/ttgload.c (TT_Get_Metrics): Renamed to...
+ (tt_face_get_metrics): This. Provide version for FT_OPTIMIZE_MEMORY.
+ Update all callers.
+ (Get_Advance_Widths): Replaced with...
+ (Get_Advance_WidthPtr): This. Provide version for
+ FT_OPTIMIZE_MEMORY.
+ Update all callers.
+
+ * src/truetype/ttgload.h: Updated.
+
+2005-02-22 David Turner <david@freetype.org>
+
+ * src/base/ftdbgmem.c: Partly rewritten. Added the ability to list
+ all allocation sites in the memory debugger. Also a new function
+ FT_DumpMemory() was added. It is only available in builds with
+ FT_DEBUG_MEMORY defined, and you must declare it in your own code to
+ use it, i.e., with something like:
+
+ extern void FT_DumpMemory( FT_Memory );
+
+ ...
+
+ FT_DumpMemory( memory );
+
+ * include/freetype/config/ftoption.h
+ (TT_CONFIG_OPTION_BYTECODE_INTERPRETER): Comment out definition --
+ again.
+ (FT_OPTIMIZE_MEMORY): New configuration macro to control various
+ optimizations for reducing the heap footprint of memory-mapped
+ TrueType files.
+
+ * include/freetype/internal/ftmemory.h (FT_ARRAY_ZERO): New
+ convenience macro.
+
+ * include/freetype/internal/tttypes.h (TT_FaceRec)
+ [FT_OPTIMIZE_MEMORY]: Use optimized types for `num_locations' and
+ `glyph_locations'.
+
+ * src/truetype/ttgload.c (load_truetype_glyph): Call
+ `tt_face_get_location'.
+
+ * src/truetype/ttobjs.c (tt_face_init)
+ [FT_CONFIG_OPTION_INCREMENTAL]: Improve error handling.
+ (tt_face_done): Call `tt_face_done_loca'.
+
+ * src/truetype/ttpload.c (tt_face_get_location, tt_face_done_loca):
+ New functions. If FT_OPTIMIZE_MEMORY is set, the locations table is
+ read directly from memory-mapped streams, instead of being decoded
+ into the heap.
+ (tt_face_load_loca) [FT_OPTIMIZE_MEMORY]: New implementation.
+ (tt_face_load_cvt, tt_face_load_fpgm): Only load table if the
+ bytecode interpreter is compiled in.
+
+ * src/truetype/ttpload.h: Updated.
+
+ * src/autohint/ahglyph.c (ah_outline_load): Improve allocation
+ logic.
+
+2005-02-20 Werner Lemberg <wl@gnu.org>
+
+ * builds/unix/ltmain.sh: Regenerated with `libtoolize --force
+ --copy' from libtool 1.5.14.
+ * builds/unix/aclocal.m4: Regenerated with `aclocal -I .' from
+ automake 1.9.4.
+
+ * builds/unix/config.guess, builds/unix/config.sub: Updated from
+ `config' CVS module at subversions.gnu.org.
+
+ * builds/unix/install-sh, builds/unix/mkinstalldirs: Updated from
+ `texinfo' CVS module at subversions.gnu.org.
+
+2005-02-14 Werner Lemberg <wl@gnu.org>
+
+ * src/cff/cffcmap.c (cff_cmap_unicode_init): Don't try to build
+ a cmap for a CID-keyed font which doesn't have SIDs.
+
+2005-02-13 Werner Lemberg <wl@gnu.org>
+
+ * src/type1/t1load.c (read_binary_data): Return more meaningful
+ value.
+ (parse_encoding, parse_subrs, parse_charstrings, parse_dict): Check
+ parser error value after call to T1_Skip_PS_Token (where necessary).
+
+ * src/type1/t1parse.c (T1_Get_Private_Dict): Check parser error
+ value after call to T1_Skip_PS_Token.
+
+ * src/cid/cidparse.c (cid_parser_new): Check parser error value
+ after call to cid_parser_skip_PS_token.
+
+ * src/type42/t42parse.c (t42_parse_encoding, t42_parse_sfnts,
+ t42_parse_charstrings, t42_parse_dict): Check parser error value
+ after call to T1_Skip_PS_Token (where necessary).
+
+ * src/psaux/psobjs.c (skip_string, ps_parser_skip_PS_token,
+ ps_tobytes): Add error messages.
+
+2005-02-12 Werner Lemberg <wl@gnu.org>
+
+ * configure: Output more variables to the created Makefile so that
+ it can be used for ft2demos also (if the FT2DEMOS variable is
+ defined).
+
+2005-02-10 David Turner <david@freetype.org>
+
+ * src/pfr/pfrgload.c (pfr_glyph_load): Fix an unbounded growing
+ dynamic array when loading a glyph from a PFR font (Savannah bug
+ #11921).
+
+ * src/base/ftbitmap.c (FT_Bitmap_Convert): Small improvements to the
+ conversion function (mainly stupid optimization).
+
+ * src/base/Jamfile: Adding ftbitmap.c to the list of compiled files.
+
+2005-02-10 Werner Lemberg <wl@gnu.org>
+
+ * builds/unix/freetype-config.in: Add new flag `--ftversion' to
+ return the FreeType version. Suggested by George Williams
+ <gww@silcom.com>.
+
+ * docs/CHANGES: Updated.
+
+2005-02-09 Werner Lemberg <wl@gnu.org>
+
+ * src/otvalid/otvmod.c (otv_validate): Deallocate arrays in case
+ of error. Reported by YAMANO-UCHI Hidetoshi <mer@din.or.jp>.
+
+2005-02-08 Werner Lemberg <wl@gnu.org>
+
+ * src/psaux/t1decode.c (t1_decoder_parse_charstrings)
+ <op_closepath>: Accept `T1_Parse_Have_Moveto' state also which can
+ happen in empty glyphs. Reported by Ian Brown
+ <ian.brown@printsoft.de> (Savannah bug #11856).
+
+2005-02-04 Werner Lemberg <wl@gnu.org>
+
+ * src/otlayout/*: Removed. Obsolete.
+
+2004-12-28 Werner Lemberg <wl@gnu.org>
+
+ * builds/unix/ltmain.sh: Regenerated with `libtoolize --force
+ --copy' from libtool 1.5.10.
+ * builds/unix/aclocal.m4: Regenerated with `aclocal -I .' from
+ automake 1.9.4.
+ * builds/unix/configure: Regenerated with autoconf 2.59b.
+
+ * builds/unix/config.guess, builds/unix/config.sub: Updated from
+ `config' CVS module at subversions.gnu.org.
+
+ * builds/unix/install-sh: Updated from
+ `texinfo' CVS module at subversions.gnu.org.
+
+ * builds/unix/ftsystem.c (FT_Stream_Open): Add proper cast for
+ ft_alloc.
+ Fix compiler warning.
+
+2004-12-27 Dirck Blaskey <listtarget@danbala.com>
+
+ * src/cff/cffobjs.c (cff_face_init): Improve computation of
+ FT_STYLE_BOLD_FLAG.
+
+2004-12-27 Werner Lemberg <wl@gnu.org>
+
+ * src/cff/cffobjs.c (cff_face_init): A CFF within an SFNT can have
+ only a single font. This is undocumented but has been verified on
+ the opentype list.
+
+2004-12-26 Werner Lemberg <wl@gnu.org>
+
+ * Jamfile (FT2_COMPONENTS): Add `otvalid'.
+
+2004-12-25 Werner Lemberg <wl@gnu.org>
+
+ * src/base/ftbitmap.c (FT_Bitmap_Convert): Fix compiler warning.
+
+2004-12-15 Werner Lemberg <wl@gnu.org>
+
+ * vms_make.com: Add ftbitmap.obj.
+
+2004-12-14 Werner Lemberg <wl@gnu.org>
+
+ * src/base/ftbitmap.c, include/freetype/ftbitmap.h: New files for
+ handling various bitmap formats.
+
+ * include/freetype/config/ftheader.h (FT_BITMAP_H): New macro.
+
+ * src/base/rules.mk (BASE_EXT_SRC): Add ftbitmap.c.
+
+ * src/bdf/bdfdrivr.c (BDF_Glyph_Load): Don't convert bitmaps to 8bpp
+ but return them as-is.
+
+ * docs/CHANGES: Mention new bitmap API.
+ * include/freetype/ftchapters.h: Updated.
+
+2004-12-11 Robert Clark <freetype@ratty.org.uk>
+
+ * src/base/ftobjs.c (FT_Get_Kerning): Make kerning amount
+ dependent on ppem by scaling down for ppem < 25, then do normal
+ rounding. This gives slightly better results than rounding towards
+ zero.
+
+2004-12-09 Werner Lemberg <wl@gnu.org>
+
+ * src/base/ftobjs.c (FT_Get_Kerning): Always round towards zero
+ for FT_KERNING_DEFAULT. This greatly enhances the kerning for
+ small ppem values.
+
+2004-12-08 Werner Lemberg <wl@gnu.org>
+
+ * src/base/ftobjs.c (ft_glyphslot_clear): Reset `lsb_delta' and
+ `rsb_delta'.
+
+2004-12-05 Werner Lemberg <wl@gnu.org>
+
+ * builds/unix/install.mk (install): Use $(OBJ_BUILD) for ftconfig.h.
+
+2004-12-03 Antoine Leca <Antoine-Freetype@Leca-Marti.org>
+
+ * include/freetype/ttnameid.h: Updated to latest
+ specifications from Microsoft.
+
+2004-11-26 Jouk Jansen <joukj@hrem.stm.tudelft.nl>
+
+ * vms_make.com: Include ftbbox.c.
+ Fix `ccopt'.
+ Handle `otvalid' module.
+ Update `vmslib.dat' default values.
+ Fixes to `libs.opt'.
+
+2004-11-23 Anders Kaseorg <anders@kaseorg.com>
+
+ * src/base/ftoutln.c (FT_OrientationExtremumRec,
+ ft_orientation_extremum_compute): Removed.
+ (FT_Outline_Get_Orientation): Rewritten, simplified.
+
+ * src/autohint/ahglyph.c: Include FT_OUTLINE_H.
+ (ah_test_extremum, ah_get_orientation): Removed.
+ (ah_outline_load): Use FT_Outline_Get_Orientation.
+
+ * src/base/ftsynth.c (ft_test_extrema, ft_get_orientation): Removed.
+ (FT_GlyphSlot_Embolden): Use FT_Outline_Get_Orientation.
+
+2004-11-23 Fernando Papa <fpapa@netgate.com.uy>
+
+ * src/truetype/ttinterp.h: Fix typo.
+
+2004-11-22 Antoine Leca <Antoine-Freetype@Leca-Marti.org>
+
+ * builds/win32/detect.mk: Corrected logic that detects Windows NT to
+ use the previous change even if win32 is forced. Corrected
+ detection of win32 on Win9X.
+
+ * builds/dos/detect.mk: Added same correction as for win32 about
+ COPY on Windows NT. Detection of plain DOS 7.x.
+
+2004-11-22 Werner Lemberg <wl@gnu.org>
+
+ * builds/detect.mk: Undo change from 2004-11-20.
+ * builds/win32/detect.mk: If the `OS' environment variable contains
+ `Windows_NT', use `cmd.exe /c copy' for copying files.
+
+2004-11-20 Werner Lemberg <wl@gnu.org>
+
+ * builds/detect.mk (dos_setup): Use `cmd.exe' for copying
+ $(CONFIG_MK) to force lowercase file name under Windows.
+
+2004-11-19 Werner Lemberg <wl@gnu.org>
+
+ Fix a serious bug in the TT hinter.
+
+ * src/truetype/ttgload.c (TT_Process_Simple_Glyph): Don't shift
+ points vertically before hinting.
+
+ * docs/CHANGES: Updated.
+
+ * src/cache/ftcglyph.c (FTC_GNode_UnselectFamily,
+ FTC_GCache_Lookup): A new try to fix comparison with zero.
+
+2004-11-16 Werner Lemberg <wl@gnu.org>
+
+ * builds/unix/configure.ac: Add `-fno-strict-aliasing' if gcc is
+ used.
+ * builds/unix/configure: Regenerated.
+ * builds/unix/config.guess, builds/unix/config.sub: Updated from
+ `config' CVS module at subversions.gnu.org.
+
+2004-11-16 Dr. Martin P.J. Zinser <zinser@decus.de>
+
+ * src/cache/ftcglyph.c (FTC_GNode_UnselectFamily,
+ FTC_GCache_Lookup): Fix comparison with zero.
+
+ * docs/INSTALL.VMS: Updated.
+
+ * vms_make.com: Updated. All `descrip.mms' files are now created
+ automatically.
+
+ * src/*/descrip.mms: Removed.
+
+2004-11-16 Owen Taylor <otaylor@redhat.com>
+
+ * builds/unix/freetype-config.in: Suppress -L$libdir for
+ /usr/lib64 as well as /usr/lib. (Reported by Dan Winship -
+ https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=139199)
+
+2004-11-11 Werner Lemberg <wl@gnu.org>
+
+ * src/cff/cffdrivr.c (cff_service_ps_info): Updated.
+ * src/cid/cidriver.c (cid_service_ps_info): Updated.
+ * src/type42/t42drivr.c (t42_ps_get_font_private): New function.
+ (t42_service_ps_info): Updated.
+
+ * src/type42/t42parse.c (t42_parse_dict): Remove compiler warning.
+
+2004-11-11 David Bevan <dbevan@emtex.com>
+
+ Add new function FT_Get_PS_Font_Private().
+
+ * include/freetype/internal/services/svpsinfo.h
+ (PS_GetFontPrivateFunc): New service function.
+
+ * include/freetype/t1tables.h, src/base/fttype1.c
+ (FT_Get_PS_Font_Private): New function.
+
+ * src/type1/t1driver.c (t1_ps_get_font_private): New function.
+ (t1_service_ps_info): Updated.
+
+2004-10-13 Werner Lemberg <wl@gnu.org>
+
+ * include/freetype/config/ftstdlib.h: Include `stddef.h'.
+ (ft_ptrdiff_t): Define.
+
+ * include/freetype/fttypes.h (FT_PtrDist): Use `ft_ptrdiff_t'.
+
+ * src/cid/cidload.c (cid_parse_dict), src/type1/t1load.c
+ (parse_dict): Fix compiler warning.
+
+2004-10-11 Joshua Neal <jneal@csdaily.com>
+
+ * src/sfnt/ttcmap.c (tt_face_build_cmaps): Check for pointer
+ overflow.
+
+ * src/sfnt/ttload.c (tt_face_load_hdmx): Protect against bad input.
+ Don't use FT_QNEW_ARRAY but FT_NEW_ARRAY to make deallocation work
+ in case of failure.
+
+ * src/sfnt/ttsbit.c (Load_SBit_Range): Check range intervals.
+ (tt_face_load_sbit_strikes): Allocate `strike_sbit_ranges' after
+ frame test.
+
+ * src/truetype/ttgload.c (TTLoad_Simple_Glyph): Add assertion for
+ `flag'.
+
+2004-10-09 Werner Lemberg <wl@gnu.org>
+
+ * docs/CHANGES: Updated.
+
+2004-10-09 Boris Letocha <b.letocha@cz.gmc.net>
+
+ Fix handling of NPUSHW if skipped in data stream.
+
+ * src/truetype/ttinterp.c (opcode_length): Set value for NPUSHW
+ to -2.
+ (SkipCode, TT_RunIns): Use opcode_length value for computation of
+ bytes to be skipped.
+
+2004-09-10 Jouk Jansen <joukj@hrem.stm.tudelft.nl>
+
+ * vms_make.com: Updated.
+
+2004-09-09 Werner Lemberg <wl@gnu.org>
+
+ Adding OpenType validation module. The code is based on the
+ (unfinished) `otlayout' module but has been heavily modified to make
+ it much more compact.
+
+ * src/otvalid/*: New module.
+
+ * include/freetype/ftotval.h, src/base/ftotval.c,
+ include/freetype/internal/services/svotval.h: New files.
+
+ * include/freetype/config/ftmodule.h: Add otv_module_class.
+ * include/freetype/config/ftheader.h (FT_OPENTYPE_VALIDATE_H): New
+ macro.
+ * include/freetype/internal/ftserv.h
+ (FT_SERVICE_OPENTYPE_VALIDATE_H): New macro.
+ * include/freetype/internal/fttrace.h (otvmodule, otvcommon,
+ otvbase, otvgdef, otvgpos, otvgsub, otvjstf): New trace components.
+
+ * include/freetype/ftchapters.h: Updated.
+
+ * src/base/Jamfile (Library), src/base/descrip.mms (OBJS),
+ src/base/rules.mk (BASE_EXT_SRC): Updated.
+
+ * docs/CHANGES: Updated.
+
+2004-09-08 Werner Lemberg <wl@gnu.org>
+
+ * src/tools/docmaker/sources.py (re_source_block_format2) <column>:
+ Use lookahead assertion to not match `*/'. This removes spurious
+ insertions of `/' in the HTML output.
+
+2004-09-07 Werner Lemberg <wl@gnu.org>
+
+ * src/truetype/ttgxvar.c (TT_Vary_Get_Glyph_Deltas): Fix call to
+ FT_NEW_ARRAY.
+
+2004-09-04 Werner Lemberg <wl@gnu.org>
+
+ * include/freetype/internal/ftobjs.h: Don't include
+ FT_CONFIG_STANDARD_LIBRARY_H.
+ (FT_Validator, FT_ValidationLevel, FT_ValidatorRec, FT_VALIDATOR,
+ ft_validator_init, ft_validator_run, ft_validator_error, FT_INVALID,
+ FT_INVALID_TOO_SHORT, FT_INVALID_OFFSET, FT_INVALID_FORMAT,
+ FT_INVALID_GLYPH_ID, FT_INVALID_DATA): Move to...
+
+ * include/freetype/internal/ftvalid.h: New file.
+ Make FT_INVALID return module-specific error codes.
+
+ * include/freetype/internal/internal.h (FT_INTERNAL_VALIDATE_H): New
+ macro.
+
+ * include/freetype/fterrors.h: Undefine FT_ERR_PREFIX only if
+ FT_KEEP_ERR_PREFIX isn't defined.
+
+ * src/base/ftobjs.c: Include FT_INTERNAL_VALIDATE_H.
+
+ * src/sfnt/ttcmap.h: Don't include FT_INTERNAL_OBJECTS_H but
+ FT_INTERNAL_VALIDATE_H.
+
+ * src/sfnt/ttcmap.c: Don't include FT_INTERNAL_OBJECTS_H but
+ FT_INTERNAL_VALIDATE_H.
+ Include sferrors.h before FT_INTERNAL_VALIDATE_H.
+ s/FT_Err_Ok/SFNT_Err_Ok/.
+
+ * src/sfnt/sferrors.h: Define FT_KEEP_ERR_PREFIX.
+
+ * src/type1/t1afm.c: Include t1errors.h.
+
+2004-09-03 Werner Lemberg <wl@gnu.org>
+
+ * src/base/ftdebug.c (ft_debug_init): Highest debug level is 7,
+ not 6.
+ * docs/DEBUG: Updated.
+
+2004-08-30 Werner Lemberg <wl@gnu.org>
+
+ * include/freetype/tttags.h (TTAG_BASE, TTAG_GDEF, TTAG_GPOS,
+ TTAG_JSTF): New tags.
+
+ * include/freetype/fttypes.h (FT_Bytes, FT_Tag): New typedefs.
+ (FT_Int): Add `signed'.
+
+2004-08-29 Werner Lemberg <wl@gnu.org>
+
+ * src/otlayout/otlgpos.c (otl_gpos_subtable_validate): Add argument
+ to pass number of lookups.
+ Update all callers.
+ Don't call otl_lookup_list_validate but otl_lookup_validate.
+ (otl_gpos_validate): Call otl_lookup_list_validate instead of
+ otl_gpos_subtable_validate.
+
+ * src/otlayout/otlgpos.h: Updated.
+
+ * src/otlayout/otljstf.c (otl_jstf_max_validate): Add argument to
+ pass number of lookups.
+ Update all callers.
+
+
+ * src/cff/cffparse.c (cff_parse_real): s/exp/exponent/ to avoid
+ compiler warning.
+
+
+ * src/sfnt/ttcmap0.c, src/sfnt/ttcmap0.h: Renamed to...
+ * src/sfnt/ttcmap.c, src/sfnt/ttcmap.h: This.
+ * src/sfnt/Jamfile, src/sfnt/rules.mk, src/sfnt/sfdriver.c,
+ src/sfnt/sfnt.c, src/sfnt/sfobjs.c: Updated.
+
+
+ * builds/compiler/gcc-dev.mk (CFLAGS): Don't add `-Wnested-externs'
+ if compiler is g++ (v3.3.3 emits a warning otherwise).
+
+2004-08-28 Werner Lemberg <wl@gnu.org>
+
+ * src/otlayout/otlgpos.c (otl_value_length): Return number of bytes,
+ not number of 16bit entities.
+ (otl_gpos_lookup2_validate): Check class definition tables for
+ format 2.
+ Fix loop for format 2.
+ (otl_liga_mark2_validate): Fix offset for otl_anchor_validate.
+
+2004-08-27 Werner Lemberg <wl@gnu.org>
+
+ * src/base/ftmac.c: Don't include truetype/ttobjs.h.
+ Don't include type1/t1objs.h.
+ (FT_New_Face_From_FSSpec) [!__MWERKS__]: Remove compiler warnings.
+
+2004-08-27 Mathieu Malaterre <mathieu@malaterre.com>
+
+ * src/base/ftmac.c: Handle OS_INLINE for xlc compiler also.
+
+2004-08-27 Werner Lemberg <wl@gnu.org>
+
+ * src/otlayout/otlayout.h: Add copyright.
+ (OTL_INVALID_OFFSET): Removed.
+
+ * src/otlayout/otlgdef.h: Include otlayout.h.
+ Comment out inclusion of otltable.h.
+
+ * src/otlayout/otlgpos.c (otl_gpos_lookup4_validate): Fix call
+ to otl_base_array_validate.
+ (otl_liga_mark2_validate): Fix `for' loop.
+
+ * src/otlayout/otlgsub.c (otl_ligature_validate): Check `glyph_id',
+ not components array.
+
+ * src/otlcommn.c (otl_lookup_get_count, otl_feature_get_count):
+ Comment out.
+ (otl_lookup_list_get_count, otl_feature_list_get_count): Activate.
+ (otl_feature_list_validate, otl_gsubgpos_get_lookup_count):
+ s/otl_lookup_get_count/otl_lookup_list_get_count/.
+ (otl_script_list_validate):
+ s/otl_feature_get_count/otl_feature_list_get_count/.
+ (otl_script_validate): Call otl_lang_validate for default language.
+
+ * src/otlayout/otlcommn.h: Updated.
+
+2004-08-16 Werner Lemberg <wl@gnu.org>
+
+ * src/otlayout/otlgpos.c (otl_gpos_lookup1_validate,
+ otl_gpos_lookup2_validate, otl_gpos_lookup3_validate,
+ otl_gpos_lookup4_validate, otl_gpos_lookup5_validate,
+ otl_gpos_lookup6_validate, otl_gpos_lookup9_validate,
+ otl_gpos_validate): Update
+ function arguments.
+ (otl_gpos_lookup7_validate, otl_gpos_lookup8_validate): Update
+ function arguments.
+ Handle NULL offsets correctly.
+ Check sequence and lookup indices for format 3.
+ (otl_pos_rule_validate, otl_chain_pos_rule_validate): Add argument
+ to pass lookup count.
+ Check sequence and glyph indices.
+ (otl_gpos_subtable_validate): Update function arguments.
+ Update callers.
+
+ * src/otlayout/otlgpos.h: Updated.
+
+ * src/otlayout/otlgsub.c (otl_gsub_lookup1_validate,
+ otl_gsub_lookup3_validate, otl_gsub_lookup8_validate): Update
+ function arguments.
+ Add glyph index checks.
+ (otl_sequence_validate, otl_alternate_set_validate,
+ otl_ligature_validate): Add argument to pass glyph count.
+ Update callers.
+ Add glyph index check.
+ (otl_gsub_lookup2_validate, otl_gsub_lookup4_validate): Update
+ function arguments.
+ (otl_ligature_set_validate): Add argument to pass glyph count.
+ Update caller.
+ (otl_sub_class_rule_validate,
+ otl_sub_class_rule_set_validate): Removed.
+ (otl_sub_rule_validate, otl_chain_sub_rule_validate): Add argument
+ to pass lookup count.
+ Update callers.
+ Add lookup index check.
+ (otl_sub_rule_set_validate, otl_chain_sub_rule_set_validate): Add
+ argument to pass lookup count.
+ Update callers.
+ (otl_gsub_lookup5_validate): Update function arguments.
+ Handle NULL offsets correctly.
+ Don't call otl_sub_class_rule_set_validate but
+ otl_sub_rule_set_validate.
+ Check sequence and lookup indices for format 3.
+ (otl_gsub_lookup6_validate): Update function arguments.
+ Handle NULL offsets correctly.
+ Check sequence and lookup indices for format 3.
+ (otl_gsub_lookup7_validate, otl_gsub_validate): Update function
+ arguments.
+
+ * src/otlayout/otlgsub.h: Updated.
+
+ * src/otlayout/otlbase.c (otl_base_validate): Handle NULL offsets
+ correctly.
+
+ * src/otlayout/otlcommn.c (otl_class_definition_validate): Fix
+ compiler warning.
+ (otl_coverage_get_first, otl_coverage_get_last): New functions.
+ (otl_lookup_validate): Add arguments to pass lookup and glyph
+ counts.
+ Update callers.
+ (otl_lookup_list_validate): Add argument to pass glyph count.
+ Update callers.
+
+ * src/otlayout/otlcommn.h: Updated.
+
+ * src/otlayout/otljstf.c (otl_jstf_extender_validate,
+ otl_jstf_max_validate, otl_jstf_script_validate,
+ otl_jstf_priority_validate, otl_jstf_lang_validate): Add parameter
+ to validate glyph indices.
+ Update callers.
+ (otl_jstf_validate): Add parameter which specifies number of glyphs
+ in font.
+
+ * src/otlayout/otljstf.h: Updated.
+
+2004-08-15 Werner Lemberg <wl@gnu.org>
+
+ * src/otlayout/otlgpos.c (otl_liga_mark2_validate): Add parameter
+ to handle possible NULL values properly.
+ Update all callers.
+
+2004-08-15 Werner Lemberg <wl@gnu.org>
+
+ * src/otlayout/gpos.c: Rename counting variables to be more
+ meaningful.
+ Add copyright.
+ (otl_liga_attach_validate): Renamed to...
+ (otl_liga_mark2_validate): This.
+ Update all callers.
+ (otl_mark2_array_validate): Removed.
+ (otl_gpos_lookup6_validate): Call otl_liga_mark2_validate, not
+ otl_mark2_array_validate.
+ (otl_pos_class_set_validate, otl_pos_class_rule_validate): Removed.
+ (otl_gpos_lookup7_validate): Complete code for format 2.
+ (otl_chain_pos_class_rule_validate,
+ otl_chain_pos_class_set_validate): Removed.
+ (otl_gpos_lookup8_validate): Don't call
+ otl_chain_pos_class_set_validate but
+ otl_chain_pos_rule_set_validate.
+ Simplify some code.
+
+ * src/otlayout/otlgpos.h: Add copyright.
+
+2004-08-14 Werner Lemberg <wl@gnu.org>
+
+ * src/otlayout/otljstf.c (otl_jstf_gsub_mods_validate): Removed.
+ (otl_jstf_gpos_mods_validate): Renamed to...
+ (otl_jstf_gsubgpos_mods_validate): This.
+ Test whether lookup_count is zero.
+ (otl_jstf_priority_validate): Use otl_jstf_gsubgpos_mods_validate.
+ (otl_jstf_validate): Initialize gsub_lookup_count and
+ gpos_lookup_count if gsub or gpos is zero.
+
+ * src/otlayout/otlgsub.c: Rename counting variables to be more
+ meaningful.
+ Add copyright.
+ (otl_gsub_lookup1_validate): Simplify code.
+ (otl_gsub_lookup2_validate, otl_gsub_lookup3_validate,
+ otl_gsub_lookup4_validate, otl_gsub_lookup7_validate): Remove unused
+ variables.
+ (otl_gsub_lookup5_validate): Remove unused variable.
+ Fix call to otl_sub_rule_set_validate and
+ otl_sub_class_rule_set_validate.
+ (otl_chain_sub_class_rule_validate,
+ otl_chain_sub_class_set_validate): Removed.
+ (otl_gsub_lookup6_validate): Remove unused variable.
+ Fix call to otl_chain_sub_rule_set_validate.
+ (otl_gsub_lookup7_validate): Handle lookup type 8 also.
+ (otl_gsub_lookup8_validate: New function.
+ (otl_gsub_lookup1_apply, otl_gsub_lookup2_apply,
+ otl_gsub_lookup3_apply): Commented out.
+ (otl_gsub_validate_funcs): Add otl_gsub_lookup7_validate and
+ otl_gsub_lookup8_validate.
+ (otl_gsub_validate): Updated.
+
+ * src/otlayout/otlgsub.h: Add copyright.
+
+ * src/otlayout/otlcommn.c, src/otlayout/otlcommn.h
+ (otl_coverage_get_index): Comment out.
+
+2004-08-13 Werner Lemberg <wl@gnu.org>
+
+ * src/otlayout/otlcommn.c (otl_gsubgpos_get_lookup_count): New
+ function.
+ * src/otlayout/otlcommn.h: Updated.
+
+ * src/otlayout/otlbase.c: Rename counting variables to be more
+ meaningful.
+ Add copyright message.
+ * src/otlayout/otlbase.h: Add copyright message.
+
+ * src/otlayout/otlgdef.c: Rename counting variables to be more
+ meaningful.
+ Add copyright message.
+ Use OTL_CHECK everywhere.
+ (otl_caret_value_validate): Remove unused variable.
+ (otl_gdef_validate): All tables are optional.
+ * src/otlayout/otlgdef.h: Add copyright message.
+
+ * src/otlayout/otljstf.c: Rename counting variables to be more
+ meaningful.
+ Add copyright message.
+ (otl_jstf_gsub_mods_validate, otl_jstf_gpos_mods_validate): Add
+ parameter to pass lookup count.
+ Update all callers.
+ Check lookup array.
+ (otl_jstf_max_validate):
+ s/otl_gpos_subtable_check/otl_gpos_subtable_validate/.
+ (otl_jstf_priority_validate, otl_jstf_lang_validate,
+ otl_jstf_script_validate): Add two parameters to pass lookup counts.
+ Update all callers.
+ (otl_jstf_validate): Add two parameters to pass GPOS and GSUB
+ table offsets; use otl_gsubgpos_get_lookup_count to convert extract
+ lookup counts.
+ Fix typo.
+ * src/otlayout/otljstf.h: Updated.
+ Add copyright message.
+
+ * src/otlayout/otlgpos.c (otl_gpos_subtable_validate): New function.
+ (otl_gpos_validate): Use it.
+ * src/otlayout/otlgpos.h: Updated.
+
+2004-08-13 Werner Lemberg <wl@gnu.org>
+
+ * src/otlayout/otcommn.c: Use OTL_CHECK everywhere.
+ (otl_coverage_validate): Initialize `p',
+ s/count/num_glyphs/.
+ s/start_cover/start_coverage/.
+ (otl_coverage_get_index): Return OTL_Long, not OTL_Int.
+ Remove unused variables.
+ (otl_class_definition_validate): s/count/num_glyphs/.
+ Remove unused variables.
+ (otl_class_definition_get_value, otl_device_table_get_start,
+ otl_device_table_get_end, otl_device_table_get_delta,
+ otl_lookup_get_table, otl_lookup_list_get_count,
+ otl_lookup_list_get_lookup, otl_lookup_list_get_table,
+ otl_feature_get_lookups, otl_feature_list_get_count,
+ otl_feature_list_get_feature, otl_lang_get_count,
+ otl_lang_get_req_feature, otl_lang_get_features): Commented out
+ temporarily until we really need it.
+ (otl_lookup_validate): Removed.
+ (otl_lookup_table_validate): Renamed to ...
+ (otl_lookup_validate): This. Update callers.
+ (otl_lookup_list_validate): Remove already commented out definition
+ and move the other definition up.
+ (otl_feature_validate): Add parameter to pass number of lookups.
+ Update callers.
+ Check lookup indices.
+ (otl_feature_list_validate): Add parameter to pass lookup table.
+ Update callers.
+ (otl_lang_validate): Add parameter to pass number of features.
+ Update callers.
+ Handle req_feature and check feature indices.
+ (otl_script_validate): Add parameter to pass number of features.
+ Update callers.
+ (otl_script_list_validate): Add parameter to pass feature table.
+ Update callers.
+
+ * src/otlayout/otcommn.h: s/LOCALDEF/LOCAL/.
+ Comment out the same functions as in otcommn.c.
+ (otl_script_list_get_script): Removed.
+
+ * src/otlayout/otlgsub.c (otl_gsub_lookup1_apply): Change `index' to
+ type OTL_Long.
+ (otl_gsub_lookup2_apply, otl_gsub_lookup3_apply): Change `index' to
+ type OTL_Long.
+ Fix test.
+ (otl_gsub_validate): Fix order of validation.
+
+ * src/otlayout/otlgpos.c (otl_gpos_validate): Fix order of
+ validation.
+
+2004-08-12 Werner Lemberg <wl@gnu.org>
+
+ Make otlayout module compile (without actually working).
+
+ * src/otlayout/*: s/OTL_Valid/OTL_Validator/.
+ s/NULL/0/.
+
+ * src/otlayout/otlayout.h: Fix various typos.
+ (OTL_Bool): New typedef.
+ (OTL_Int, OTL_Long, OTL_Int16, OTL_Int32): Use `signed' keyword.
+ (OTL_Err_InvalidArgument): Removed.
+ (OTL_Err_InvalidData, OTL_Err_InvalidSize): New enum values.
+ (OTL_MAKE_TAG): Add missing parenthesis.
+ (OTL_INVALID_DATA): Use OTL_Err_InvalidData.
+ (OTL_INVALID_TOO_SHORT): Use OTL_Err_InvalidSize.
+ (OTL_INVALID_FORMAT, OTL_INVALID_OFFSET): New macros.
+
+ * src/otlayout/otlgpos.c: s/FT_/OTL_/.
+ s/OTL_Short/OTL_Int16/.
+ (otl_gpos_pairset_validate): Add return type.
+ (otl_base_array_validate): Fix call to otl_anchor_validate.
+ (otl_liga_array_validate): Fix call to otl_liga_attach_validate.
+ (otl_gpos_lookup5_validate): Fix typos.
+ (otl_gpos_lookup6_validate): Fix call to otl_mark2_array_validate.
+ (otl_gpos_lookup7_validate): Comment out unfinished code.
+ Fix typos.
+
+ * src/otlayout/otlgsub.c: Add forward declaration for
+ otl_gsub_validate_funcs.
+ (otl_gsub_lookup1_apply, otl_gsub_lookup2_apply,
+ otl_gsub_lookup3_apply): Fix call to otl_parser_check_property.
+ s/otl_coverage_lookup/otl_coverage_get_index/.
+ (otl_ligature_validate): Add missing variable declaration.
+ (otl_sub_rule_validate): Fix typo.
+ (otl_sub_class_rule_validate): Add missing variable declaration.
+ Fix typo.
+ (otl_gsub_lookup5_validate): Fix typo.
+ (otl_gsub_lookup6_validate): Fix call to
+ otl_chain_sub_class_set_validate.
+ (otl_gsub_validate_funcs): Don't use `const'.
+
+ * src/otlayout/otlcommn.c (otl_class_definition_get_value,
+ otl_device_table_validate, otl_device_table_get_delta,
+ otl_lookup_validate, otl_script_validate): Add missing
+ variable declarations.
+ (otl_lookup_list_validate): Comment out first definition.
+ (otl_lookup_list_foreach, otl_feature_list_foreach): Comment out.
+ (otl_feature_list_validate):
+ s/otl_feature_table_validate/otl_feature_validate/.
+ (otl_script_list_validate):
+ s/otl_script_table_validate/otl_script_validate/.
+
+ * src/otlayout/otlcommn.h: Comment out first declaration.
+ (otl_lookup_list_foreach, otl_feature_list_foreach): Comment out.
+
+ * src/otlayout/otlbase.c (otl_base_coord_validate): Fix call to
+ otl_device_table_validate.
+ (otl_base_script_validate): Add missing variable declarations.
+ (otl_base_script_list_validate): Fix call to
+ otl_base_script_validate.
+ (otl_axis_table_validate): Fix calls to otl_base_tag_list_validate
+ and otl_base_script_list_validate.
+ (otl_base_validate): Fix calls to otl_axis_table_validate.
+
+ * src/otlayout/otlgdef.c (otl_attach_list_validate): Fix call to
+ otl_attach_point_validate.
+ (otl_caret_value_validate): Add missing variable declaration.
+ Fix call to otl_device_table_validate.
+ (otl_ligature_glyph_validate): Fix call to otl_caret_value_validate.
+ (otl_ligature_caret_list_validate): Fix call to
+ otl_ligature_glyph_validate.
+ (otl_gdef_validate): Fix calls to otl_class_definition_validate,
+ otl_attach_list_validate, otl_ligature_caret_list_validate, and
+ otl_class_definition_validate.
+
+ * src/otlayout/otltable.h (otl_table_validate, otl_table_init,
+ otl_table_set_script): Comment out.
+
+ * src/otlayout/otlparse.h (OTL_ParserRec):
+ s/OTL_Alternate/OTL_GSUB_Alternate/.
+ (OTL_ParseError): Add OTL_Err_Parser_Memory and
+ OTL_Err_Parser_Internal.
+ (otl_parser_error): Fix typo.
+ (otl_parser_check_property): Remove third argument.
+
+ * src/otlayout/otlparse.c (otl_string_ensure):
+ s/OTL_Parse_Err_Memory/OTL_Err_Parser_Memory/.
+ (OTL_STRING_ENSURE, otl_parser_error, otl_parser_get_index,
+ otl_parser_replace_1, otl_parser_replace_n): Fix typos.
+ (OTL_PARSER_UNCOVERED): Removed.
+ (otl_parser_check_property): Remove third argument.
+
+ * src/otlayout/otljstf.c (otl_jstf_priority_validate): Add missing
+ variable declaration.
+
+ * src/otlayout/otlutils.h (OTL_MEM_REALLOC): Fix typo.
+
+2004-08-11 Danny <dannyboynow@yahoo.com>
+
+ * src/base/ftstream.c (FT_Stream_Close): Don't reset stream->close
+ to NULL. This allows custom close functions to delete the FT_STREAM
+ object.
+
+2004-08-11 Werner Lemberg <wl@gnu.org>
+
+ Add API to get information about SFNT tables.
+
+ * include/freetype/internal/services/svsfnt.h
+ (FT_SFNT_Table_Info_Func): New typedef.
+ (SFNT_Table): Add it.
+
+ * src/base/ftobjs (FT_Sfnt_Table_Info): New function.
+
+ * include/freetype/tttables.h: Updated.
+
+ * src/sfnt/sfdriver.c (sfnt_table_info): New function.
+ (sfnt_service_sfnt_table): Add it.
+
+ * docs/CHANGES: Updated.
+
+
+ * include/freetype/freetype.h (FREETYPE_PATCH): Set to 10.
+
+ * builds/unix/configure.ac (version_info): Set to 9:8:3.
+ * builds/unix/configure: Updated.
+
+ * builds/win32/visualc/index.html,
+ builds/win32/visualc/freetype.dsp,
+ builds/win32/visualc/freetype.vcproj: s/219/2110/, s/2.1.9/2.1.10/.
+
+ * builds/freetype.mk (refdoc), README, Jamfile (RefDoc):
+ s/2.1.9/2.1.10/.
+
+ * docs/CHANGES, docs/VERSION.DLL: Updated.
+
+2004-08-11 Detlef Würkner <TetiSoft@apg.lahn.de>
+
+ * src/base/ftrfork.c (FT_Raccess_Guess)
+ [!FT_CONFIG_OPTION_GUESSING_EMBEDDED_RFORK]: Remove compiler
+ warnings.
+
+2004-08-06 Adam Piotrowski <st_intel@poczta.onet.pl>
+
+ * src/pfr/pfrload.c (pfr_sort_kerning_pairs): Single-byte
+ adjustments are unsigned, not signed.
+
+2004-08-05 David Turner <david@freetype.org>
+
+ `Activate' gray-scale specifying hinting within the TrueType
+ bytecode interpreter. This is an experimental feature which
+ should probably be made optional.
+
+ * src/truetype/ttgload.c (TT_Process_Simple_Glyph,
+ load_truetype_glyph): Move the code to set the pedantic_hinting flag
+ to...
+ (TT_Load_Glyph): Here.
+ Set `grayscale' flag except for `FT_LOAD_TARGET_MONO'.
+
+ * src/truetype/ttinterp.c (Ins_GETINFO): Return MS rasterizer
+ version 1.7.
+ Return rotation and stretching info only if glyph is rotated or
+ stretched, respectively.
+ Handle grayscale info.
+
+ * src/truetype/ttinterp.h (TT_ExecContextRec): Add `grayscale'
+ member.
+
+2004-08-02 George Williams <gww@silcom.com>
+
+ * src/base/ftobjs.c (FT_Attach_File): Initialize `open.stream'.
+
+2004-08-01 Werner Lemberg <wl@gnu.org>
+
+ * docs/CHANGES: Updated.
+
+2004-08-01 George Williams <gww@silcom.com>
+
+ FreeType now can read kerning values from PFM files.
+
+ * src/type1/t1afm.c (T1_Done_AFM): Renamed to...
+ (T1_Done_Metrics): This.
+ Update all callers.
+ (T1_Read_AFM): Make it static.
+ Don't enter and leave a frame.
+ (LITTLE_ENDIAN_USHORT, LITTLE_ENDIAN_UINT): New macros.
+ (T1_Read_PFM): New function.
+ (T1_Read_Metrics): New higher-level function to be used instead of
+ T1_Read_AFM.
+ Update all callers.
+
+2004-07-31 Werner Lemberg <wl@gnu.org>
+
+ * src/pcf/pcfread (pcf_load_font), src/bdf/bdfdrivr.c
+ (BDF_Face_Init), src/truetype/ttgxvar (TT_Get_MM_Var,
+ tt_face_vary_cvt): Fix compiler warnings.
+
+2004-07-26 Søren Sandmann <sandmann@daimi.au.dk>
+
+ * src/pcf/pcfread.c (pcf_interpret_style): Always allocate memory for
+ face->style_name.
+ * src/pcf/pcfdrivr.c (PCF_Face_Done): Free `style_name'.
+
+2004-07-26 Darren J Longhorn <darren.longhorn@redcom.co.uk>
+
+ * include/freetype/config/ftconfig.h (FT_SIZEOF_LONG): Recognize
+ five-byte `long' (which is avoided then).
+
+2004-07-25 Detlef Würkner <TetiSoft@apg.lahn.de>
+
+ * src/pcf/pcfdrivr.c (PCF_Set_Pixel_Size): Compare heights, not
+ ppem values.
+ (PCF_Set_Point_Size): Don't call PCF_Set_Pixel_Size but provide own
+ code to compare ppem values.
+ * src/bdf/bdfdrivr.c (BDF_Set_Pixel_Size): Compare heights, not
+ ppem values.
+ (BDF_Set_Point_Size): Don't call BDF_Set_Pixel_Size but provide own
+ code to compare ppem values.
+
+2004-07-25 Kornfeld Eliyahu Peter <peter@e-kadmon.net>
+
+ * src/sfnt/sfobjs.c (sfnt_load_face): Handle
+ TT_NAME_ID_PREFERRED_FAMILY and TT_NAME_ID_PREFERRED_SUBFAMILY.
+
+2004-07-24 Derek B. Noonburg <derekn@foolabs.com>
+
+ * src/cff/cffload.c (cff_font_load): Always create inverse mapping.
+ Even if the charstring count is the same as the CID count, it is
+ still possible that the font uses a different CID -> GID mapping.
+
+2004-07-23 Werner Lemberg <wl@gnu.org>
+
+ * src/truetype/ttobjs.c (tt_face_init): Accept 0x00020000 format tag
+ found in some Arphic fonts made for Chinese version of Windows 3.1.
+
+2004-07-17 David Turner <david@freetype.org>
+
+ Fixed a dangling pointer bug in the cache code that happened in very
+ rare cases, i.e., when a new family object was destroyed by an
+ out-of-memory condition during a glyph node initialization. The
+ function FTC_Cache_Lookup would flush the cache and restart the
+ lookup with a bad pointer.
+
+ * include/freetype/cache/ftcglyph.h (FTC_FAMILY_TREE): New macro.
+ (FTC_GCACHE_LOOKUP_CMP): Use it.
+ Handle reference count in `num_nodes' correctly.
+
+ * src/cache/ftcglyph.c (FTC_GNode_UnselectFamily): Use
+ FTC_FAMILY_FREE.
+ (FTC_GCache_Lookup): Handle reference count in `num_nodes' correctly.
+
+ * src/cache/ftcmanag.c (FTC_Manager_FlushN): Fixed a cache flushing
+ bug.
+
+ * src/truetype/ttinterp.c (Normalize): Fixed a bug that caused
+ long and unnecessary delays while normalizing huge vectors.
+
+2004-07-15 Werner Lemberg <wl@gnu.org>
+
+ * docs/CHANGES: Updated.
+
+ * src/base/ftstroke.c (FT_Stroker_ParseOutline): Fix compiler
+ warning.
+
+2004-07-15 David Turner <david@freetype.org>
+
+ * src/base/ftstroke.c (FT_Stroker_ParseOutline): Single points
+ are not stroked, preventing a bug with pala.ttf and other
+ fonts.
+
+ * include/freetype/ftstroke.h: Updating documentation comments.
+
+2004-07-13 Werner Lemberg <wl@gnu.org>
+
+ * src/base/ftstroke.c (ft_stroke_border_reverse): Removed. Unused.
+
+2004-07-12 David Turner <david@freetype.org>
+
+ * src/base/ftstroke.c (ft_stroke_border_close): Add second parameter
+ to indicate reversion of points.
+ Update all callers.
+ (ft_stroke_border_reverse): Fix initialization of `point1' and
+ `tag1'.
+
+ * src/cache/ftcsbits.c (ftc_snode_load): Fixing advance computation
+ for transformed glyphs.
+
+2004-07-11 David Turner <david@freetype.org>
+
+ Fix bugs that prevented the stroker to correctly generate stroked
+ paths from closed paths, i.e., nearly all glyphs in vectorial fonts.
+
+ The code is still _very_ buggy though; treat with special care.
+
+ * src/base/ftstroke.c (FT_STROKE_TAG_BEGIN_END): New macro.
+ (ft_stroke_border_reverse): New function.
+ (ft_stroker_inside): Remove local variable `sigma'; use different
+ threshold.
+ (ft_stroker_add_reverse_left): Switch begin/end tags if necessary.
+ (FT_Stroker_EndSubPath): Call ft_stroker_inside and
+ ft_stroke_border_reverse.
+
+2004-06-26 Peter Kovar <peter.kovar@r3.roburnet.sk>
+
+ * src/truetype/ttgload.c (load_truetype_glyph): Fix typo.
+
+2004-06-25 Werner Lemberg <wl@gnu.org>
+
+ * src/type1/t1afm.c (afm_atoindex): Fix boundary test. Reported
+ by Dirck Blaskey.
+
+2004-06-24 David Turner <david@freetype.org>
+
+
+ * Version 2.1.9 released.
+ =========================
+
+
+ * src/truetype/ttgload.c, src/truetype/ttxgvar.c: Removing
+ compiler warnings.
+
+2004-06-23 Werner Lemberg <wl@gnu.org>
+
+ * include/freetype/internal/ftmemory.h [FT_DEBUG_MEMORY]: Declare
+ FT_QAlloc_Debug and FT_QRealloc_Debug.
+
+ * src/base/ftutil.c (FT_QAlloc): Fix error and debug messages.
+ (FT_QRealloc): Call FT_QAlloc if original pointer is NULL.
+ Fix error message.
+
+2004-06-23 David Turner <david@freetype.org>
+
+ * include/freetype/internal/ftmemory.h, src/base/ftutil.c
+ (FT_QAlloc, FT_QRealloc), src/base/ftdbgmem.c (FT_QAlloc_Debug,
+ FT_QRealloc_Debug): New functions that perform allocation without
+ zero-ing out the corresponding blocks.
+
+ * include/freetype/internal/ftmemory.h (FT_MEM_QALLOC,
+ FT_MEM_QREALLOC, FT_MEM_QNEW, FT_MEM_QNEW_ARRAY,
+ FT_MEM_QRENEW_ARRAY, FT_QALLOC, FT_QREALLOC, FT_QNEW, FT_QNEW_ARRAY,
+ FT_QRENEW_ARRAY): New macros.
+
+ * src/base/ftstream.c (FT_Stream_EnterFrame): Use FT_QALLOC.
+ * src/gzip/ftgzip.c (FT_Stream_OpenGzip): Use FT_QNEW_ARRAY.
+ * src/sfnt/sfobjs.c (tt_face_get_name): Use FT_QNEW_ARRAY.
+
+ * src/sfnt/ttload.c (tt_face_load_directory, tt_face_load_metrics,
+ tt_face_load_gasp): Use FT_QNEW_ARRAY.
+ (tt_face_load_kern): Use FT_QNEW_ARRAY.
+ Small optimization in the kerning table verifier; this speeds up
+ TrueType face opening by about 7%.
+ (tt_face_load_hdmx): Use FT_QNEW_ARRAY and FT_QALLOC.
+
+ * include/freetype/config/ftmodule.h: Changed the order of modules,
+ putting TrueType and Type 1 first. This dramatically improves the
+ performance of face open/close operations. For example, putting the
+ TrueType driver first in the list results in a 5x speedup when
+ opening `Vera.ttf'.
+
+ The very problem is that both the PCF and BDF drivers do a lot more
+ than necessary to detect that they cannot handle a font file.
+
+2004-06-22 Werner Lemberg <wl@gnu.org>
+
+ * src/pcf/pcfread.c (pcf_read_TOC, pcf_get_properties,
+ pcf_get_metrics, pcf_get_bitmaps, pcf_get_encodings): Improve
+ debugging messages.
+
+ * src/pcf/pcfdrivr.c (FT_COMPONENT): Move up.
+ (PCF_Face_Init): Simplify code.
+
+ * src/bdf/bdfdrivr.h (BDF_FaceRec): New element `default_glyph'.
+
+ * src/bdf/bdflib.c (_bdf_add_property, _bdf_parse_start),
+ src/bdf/bdf.h (bdf_font_t): s/default_glyph/default_char/.
+
+ * src/bdf/bdfdrivr.c (BDF_Face_Init): Fix number of glyphs.
+ Set `default_glyph'.
+ (BDF_Glyph_Load): Use `default_glyph' for undefined glyph.
+
+ * docs/CHANGES: Updated.
+
+2004-06-21 Werner Lemberg <wl@gnu.org>
+
+ * docs/CHANGES: Updated.
+
+2004-06-21 David Turner <david@freetype.org>
+
+ * src/truetype/ttgload.c (TT_Process_Simple_Glyph,
+ load_truetype_glyph): Don't access (unrounded)
+ `TT_Size.root.metrics' but (rounded) `TT_Size.metrics'. This fixes
+ a scaling bug that caused incorrect rendering when the bytecode
+ interpreter was enabled.
+
+2004-06-14 Huw D M Davies <h.davies1@physics.ox.ac.uk>
+
+ * src/winfonts/winfnt.c (FNT_Face_Init): Set x_ppem and y_ppem
+ based on pixel_width and pixel_height.
+ (FNT_Size_Set_Pixels): Updated.
+
+2004-06-14 Werner Lemberg <wl@gnu.org>
+
+ * src/lzw/zopen.c: Comment out inclusion of signal.h and unistd.h.
+ Reported by Hyvärinen Jyrki Juhani.
+
+2004-06-11 Werner Lemberg <wl@gnu.org>
+
+ * docs/CHANGES: Updated.
+
+2004-06-10 David Turner <david@freetype.org>
+
+ * src/base/ftobject.c, src/base/fthash.c, src/base/ftexcept.c,
+ src/base/ftsysio.c, src/base/ftsysmem.c, src/base/ftlist.c: Removed.
+ Obsolete.
+
+ * src/raster/ftraster.c (Alignment, PAlignment): New union to fix
+ problems with 64bit systems.
+ (AlignProfileSize): Use it.
+
+2004-06-08 David Turner <david@freetype.org>
+
+ * include/freetype/freetype.h (FT_Glyph_Metrics): Move `lsb_delta'
+ and `rsb_delta' elements to...
+ (FT_GlyphSlotRec): Here to retain binary compatibility with older
+ FreeType versions.
+ Update all users.
+
+ * src/sfnt/sfobjs.c (tt_face_get_name): Remove compiler warning.
+
+ * src/winfonts/winfnt.c (FNT_Load_Glyph): Add missing initialization
+ of slot->metrics.width and slot->metrics.height when loading a
+ Windows FNT glyph. Thanks to Huw Davies.
+
+ * include/freetype/cache/ftcmru.h (FTC_MruNode_CompareFunc): Change
+ return type to FT_Bool.
+
+ * src/cache/ftcbasic.c (ftc_basic_family_compare): Change return
+ type to FT_Bool.
+
+ * src/cache/ftccache.c (FTC_Cache_Init, ftc_cache_init): Make
+ the former call the latter, not vice versa.
+ (FTC_Cache_Done, ftc_cache_done): Ditto.
+
+ * src/cache/ftcglyph.c (FTC_GNode_Compare, ftc_gnode_compare): Make
+ the former call the latter, not vice versa.
+ (FTC_GCache_Init, ftc_gcache_init): Ditto.
+ (FTC_GCache_Done, ftc_gcache_done): Ditto.
+
+ * src/cache/ftcimage.c (FTC_INode_Free, ftc_inode_free): Make the
+ former call the latter, not vice versa.
+ (FTC_INode_Weight, ftc_inode_weight): Ditto.
+
+ * src/cache/ftcmanag.c (ftc_size_node_compare,
+ ftc_size_node_compare_faceid, ftc_face_node_compare): Change return
+ type to FT_Bool.
+
+ * src/cache/ftcsbits.c (FTC_SNode_Free, ftc_snode_free): Make the
+ former call the latter, not vice versa.
+ (FTC_SNode_Weight, ftc_snode_weight): Ditto.
+ (FTC_SNode_Compare, ftc_snode_compare): Ditto.
+
+ * src/cache/ftcsbits.c: Fix some bugs and inefficiencies in the cache
+ sub-system.
+
+2004-06-05 Werner Lemberg <wl@gnu.org>
+
+ * src/autofit/afloader.c (af_loader_load_g): Set `lsb_delta' and
+ `rsb_delta' in slot->metrics and tune side bearings slightly.
+
+2004-06-04 Werner Lemberg <wl@gnu.org>
+
+ * docs/CHANGES: Updated.
+
+2004-06-04 David Chester <davidchester@qmx.net>
+
+ Improve inter-letter spacing for autohinted glyphs.
+
+ * include/freetype/freetype.h (FT_Glyph_Metrics): Add elements
+ `lsb_delta' and `rsb_delta'.
+
+ * src/autohint/ahhint.c (ah_hinter_load): Set `lsb_delta' and
+ `rsb_delta' in slot->metrics and tune side bearings slightly.
+
+2004-06-04 David Turner <david@freetype.org>
+
+ * src/autofit/*: Important fixes to the auto-fitter. The output
+ now seems to be 100% equivalent to the auto-hinter, while being
+ about 2% faster (which proves that script-specific algorithm
+ selection isn't a performance problem).
+
+ To test it, change `autohint' to `autofit' in
+ <freetype/config/ftmodule.h> and recompile.
+
+ A few more testing is needed before making this the official
+ auto-hinting module.
+
+2004-06-02 Werner Lemberg <wl@gnu.org>
+
+ * src/truetype/ttgload.c (compute_glyph_metrics): Fix compiler
+ warnings.
+
+2004-06-01 Werner Lemberg <wl@gnu.org>
+
+ * src/sfnt/sfobjs.c (tt_face_get_name): Make sure that an English
+ name record for the Apple platform is preferred to a non-English
+ entry for the Microsoft platform. Problem reported by HANDA
+ Ken'ichi.
+
+2004-05-19 George Williams <gww@silcom.com>
+
+ * src/type1/t1load.c (mm_axis_unmap, mm_weights_unmap): New
+ auxiliary functions.
+ (T1_Get_MM_Var): Provide axis tags.
+ Use mm_axis_unmap and mm_weights_unmap to provide default values
+ for design and normalized axis coordinates.
+
+ * include/freetype/t1tables.h (PS_DesignMapRec): Change type of
+ `design_points' to FT_Long.
+ Update all users.
+
+2004-05-17 Werner Lemberg <wl@gnu.org>
+
+ * src/base/ftbbox.c (BBox_Conic_Check): Fix boundary cases.
+ Reported by Mikey Anbary <manbary@vizrt.com>.
+
+2004-05-15 Werner Lemberg <wl@gnu.org>
+
+ * src/sfnt/sfobjs.c (sfnt_done_face): Free face->postscript_name.
+
+2004-05-15 George Williams <gww@silcom.com>
+
+ * src/sfnt/ttload.c (tt_face_load_max_profile): Always set
+ face->root.num_glyphs.
+
+2004-05-14 Masatake YAMATO <jet@gyve.org>
+ George Williams <gww@silcom.com>
+
+ * src/sfnt/ttload.c (sfnt_dir_check): Handle `bhed' properly.
+
+2004-05-14 Werner Lemberg <wl@gnu.org>
+
+ * src/cache/ftcbasic.c (ftc_basic_family_compare,
+ ftc_basic_family_init, ftc_basic_family_get_count,
+ ftc_basic_family_load_bitmap, ftc_basic_family_load_glyph,
+ ftc_basic_gnode_compare_faceid): Adjust parameters and return types
+ to prototypes given in header files from include/freetype/cache.
+ Use casts to proper types locally.
+ (ftc_basic_image_family_class, ftc_basic_image_cache_class,
+ ftc_basic_sbit_family_class, ftc_basic_sbit_cache_class): Remove
+ casts.
+
+ * src/cache/ftccback.h: Adjust parameters and return types to
+ prototypes given in header files from include/freetype/cache.
+
+ * src/cache/ftcimage.c (ftc_inode_free, ftc_inode_new,
+ ftc_inode_weight): Adjust parameters and return types to prototypes
+ given in header files from include/freetype/cache. Use casts to
+ proper types locally.
+
+ * src/cache/ftcsbits.c (ftc_snode_free, ftc_snode_new,
+ ftc_snode_weight, ftc_snode_compare): Adjust parameters and return
+ types to prototypes given in header files from
+ include/freetype/cache. Use casts to proper types locally.
+
+ * src/cache/ftccmap.c (ftc_cmap_node_free, ftc_cmap_node_new,
+ ftc_cmap_node_weight, ftc_cmap_node_compare,
+ ftc_cmap_node_remove_faceid): Adjust parameters and return types to
+ prototypes given in header files from include/freetype/cache. Use
+ casts to proper types locally.
+ (ftc_cmap_cache_class): Remove casts.
+
+ * src/cache/ftcglyph.c (ftc_gnode_compare, ftc_gcache_init,
+ ftc_gcache_done): Adjust parameters and return types to prototypes
+ given in header files from include/freetype/cache. Use casts to
+ proper types locally.
+
+ * src/cache/ftcmanag.c (ftc_size_node_done, ftc_size_node_compare,
+ ftc_size_node_init, ftc_size_node_reset,
+ ftc_size_node_compare_faceid, ftc_face_node_init,
+ ftc_face_node_done, ftc_face_node_compare: Adjust parameters and
+ return types to prototypes given in header files from
+ include/freetype/cache. Use casts to proper types locally.
+
+ (ftc_size_list_class, ftc_face_list_class): Remove casts.
+
+2004-05-13 Werner Lemberg <wl@gnu.org>
+
+ * src/autohint/ahmodule.c (ft_autohinter_init, ft_autohinter_done):
+ Use FT_Module as parameter and do a cast to FT_AutoHinter locally.
+ (autohint_module_class): Remove casts.
+
+ * src/base/ftglyph.c (ft_bitmap_glyph_init, ft_bitmap_glyph_copy,
+ ft_bitmap_glyph_done, ft_bitmap_glyph_bbox, ft_outline_glyph_init,
+ ft_outline_glyph_done, ft_outline_glyph_copy,
+ ft_outline_glyph_transform, ft_outline_glyph_bbox,
+ ft_outline_glyph_prepare): Use FT_Glyph as parameter and do a cast
+ to FT_XXXGlyph locally.
+ Use FT_CALLBACK_DEF throughout.
+ (ft_bitmap_glyph_class, ft_outline_glyph_class): Remove casts.
+
+ * src/bdf/bdfdrivr.c (bdf_cmap_init, bdf_cmap_done,
+ bdf_cmap_char_index, bdf_cmap_char_next): Use FT_CMap as parameter
+ and do a cast to BDF_CMap locally.
+ (bdf_cmap_class): Remove casts.
+
+2004-05-12 Werner Lemberg <wl@gnu.org>
+
+ * src/cff/cffgload.h (CFF_Builder): Remove `error'.
+ * src/cff/cffgload.c (cff_decoder_parse_charstrings): Replace
+ `Memory_Error' with `Fail' and update all users.
+
+2004-05-11 Werner Lemberg <wl@gnu.org>
+
+ * include/freetype/internal/psaux.h (T1_ParseState): New
+ enumeration.
+ (T1_BuilderRec): Replace `path_begun' with `parse_state'.
+ Remove `error'.
+ * src/psaux/t1decode.c (t1_decoder_parse_charstrings): Replace
+ `Memory_Error' with `Fail' and update all users.
+ Don't use `builder->error'.
+ Replace `path_begun' with `parse_state' and check parsing states.
+
+ * src/psaux/psobjs.c (t1_builder_init, t1_builder_start_point):
+ Replace `path_begun' with `parse_state' and check parsing states.
+
+2004-05-10 George Williams <gww@silcom.com>
+
+ * src/truetype/ttxgvar.c (ft_var_load_avar): Do free arrays in case
+ of error -- `avar' is optional so we can't rely on tt_done_blend
+ being called automatically.
+
+2004-05-09 George Williams <gww@silcom.com>
+
+ * src/truetype/ttxgvar.c (ft_var_load_avar, ft_var_load_gvar): Fix
+ error handling.
+
+2004-05-07 Werner Lemberg <wl@gnu.org>
+
+ * src/pfr/pfrobjs.c, src/pfr/pfrobjs.h (pfr_face_init,
+ pfr_face_done, pfr_face_get_kerning, pfr_slot_init, pfr_slot_done,
+ pfr_slot_load): Don't use PFR_XXX but FT_XXX arguments which are
+ typecast to the proper PFR_XXX types within the function.
+ Update code accordingly.
+
+ * src/pfr/pfrdrivr.c (pfr_get_kerning, pfr_get_advance,
+ pfr_get_metrics, pfr_get_service): Don't use PFR_XXX but FT_XXX
+ arguments which are typecast to the proper PFR_XXX types within the
+ function.
+ Update code accordingly.
+ Use FT_CALLBACK_DEF throughout.
+ (pfr_metrics_service_rec, pfr_driver_class): Remove casts.
+
+2004-05-06 Masatake YAMATO <jet@gyve.org>
+
+ * src/truetype/ttgxvar.c (ft_var_load_gvar): Use FT_FACE_STREAM.
+ (*): Rename local variable OffsetToData to offsetToData.
+
+2004-05-06 Werner Lemberg <wl@gnu.org>
+
+ * src/cff/cffobjs.c (cff_size_done, cff_size_init, cff_size_reset,
+ cff_slot_done, cff_slot_init, cff_face_init, cff_face_done): Access
+ root fields directly.
+ * src/cff/cffdrivr.c (Load_Glyph): Access root fields directly.
+
+ * src/truetype/ttgload.c (TT_Process_Simple_Glyph): Save current
+ frame before calling TT_Vary_Get_Glyph_Deltas.
+
+ * src/pcf/pcfdrivr.c (PCF_CMapRec): Rename `cmap' to `root' for
+ consistency.
+ (pcf_cmap_init, pcf_cmap_done, pcf_cmap_char_index,
+ pcf_cmap_char_next): Don't use PCF_XXX but FT_XXX arguments which
+ are typecast to the proper PCF_XXX types within the function.
+ Update code accordingly.
+ (pcf_cmap_class): Remove casts.
+ (PCF_Face_Done, PCF_Face_Init, PCF_Set_Pixel_Size): Don't use
+ PCF_XXX but FT_XXX arguments which are typecast to the proper
+ PCF_XXX types within the function.
+ Update code accordingly.
+ Use FT_CALLBACK_DEF throughout.
+ (PCF_Set_Point_Size): New wrapper function.
+ (PCF_Glyph_Load, pcf_driver_requester): Use FT_CALLBACK_DEF.
+ (pcf_driver_class): Remove casts.
+
+2004-05-04 Steve Hartwell <shspamsink@comcast.net>
+
+ * src/truetype/ttobjs.c (tt_driver_done): Fix typo.
+
+2004-05-04 Werner Lemberg <wl@gnu.org>
+
+ * src/bdf/bdfdrivr.c (BDF_Face_Done, BDF_Face_Init,
+ BDF_Set_Pixel_Size): Don't use BDF_XXX but FT_XXX arguments which
+ are typecast to the proper BDF_XXX types within the function.
+ Update code accordingly.
+ Use FT_CALLBACK_DEF throughout.
+ (BDF_Set_Point_Size): New wrapper function.
+ (bdf_driver_class): Remove casts.
+
+ * src/cff/cffdrivr.c (Get_Kerning, Load_Glyph, cff_get_interface):
+ Don't use CFF_XXX but FT_XXX arguments which are typecast to the
+ proper CFF_XXX types within the function.
+ Update code accordingly.
+ Use FT_CALLBACK_DEF throughout.
+ (cff_driver_class): Remove casts.
+
+ * src/cff/cffobjs.h, src/cff/cffobjs.c (cff_size_done,
+ cff_size_init, cff_size_reset, cff_slot_done, cff_slot_init,
+ cff_face_init, cff_face_done, cff_driver_init, cff_driver_done):
+ Don't use CFF_XXX but FT_XXX arguments which are typecast to the
+ proper CFF_XXX types within the function.
+ Update code accordingly.
+ (cff_point_size_reset): New wrapper function.
+
+ * src/cid/cidobjs.h, src/cid/cidobjs.c (cid_slot_done,
+ cid_slot_init, cid_size_done, cid_size_init, cid_size_reset,
+ cid_face_done, cid_face_init, cid_driver_init, cid_driver_done):
+ Don't use CID_XXX but FT_XXX arguments which are typecast to the
+ proper CID_XXX types within the function.
+ Update code accordingly.
+ (cid_point_size_reset): New wrapper function.
+
+ * src/cid/cidgload.c, src/cid/cidgload.h (cid_slot_load_glyph):
+ Don't use CID_XXX but FT_XXX arguments which are typecast to the
+ proper CID_XXX types within the function.
+ Update code accordingly.
+
+ * src/cid/cidriver.c (cid_get_interface):
+ Don't use CID_XXX but FT_XXX arguments which are typecast to the
+ proper CID_XXX types within the function.
+ Update code accordingly.
+ Use FT_CALLBACK_DEF.
+ (t1cid_driver_class): Remove casts.
+
+ * src/truetype/ttdriver.c (tt_get_interface): Use FT_CALLBACK_DEF.
+ * src/truetype/ttgxvar.c (ft_var_load_avar): Don't free non-local
+ variables (this is done later).
+ (ft_var_load_avar): Fix call to FT_FRAME_ENTER.
+ (TT_Get_MM_Var): Fix size for `fvar_fields'.
+ (TT_Vary_Get_Glyph_Deltas): Handle deallocation of local variables
+ correctly.
+
+ * src/base/ftdbgmem.c (ft_mem_debug_realloc): Don't abort if
+ current size is zero.
+
+2004-05-03 Steve Hartwell <shspamsink@comcast.net>
+
+ * src/truetype/ttobjs.h, src/truetype/ttobjs.c (tt_face_init,
+ tt_face_done, tt_size_init, tt_size_done, tt_driver_init,
+ tt_driver_done): Don't use TT_XXX but FT_XXX arguments which are
+ typecast to the proper TT_XXX types within the function.
+ Update code accordingly.
+
+ * src/truetype/ttdriver.c (Get_Kerning, Set_Char_Sizes,
+ Set_Pixel_Sizes, Load_Glyph, tt_get_interface): Don't use TT_XXX but
+ FT_XXX arguments which are typecast to the proper TT_XXX types
+ within the function.
+ Update code accordingly.
+ (tt_driver_class): Remove casts.
+
+2004-05-02 Werner Lemberg <wl@gnu.org>
+
+ * src/sfnt/ttload.c (tt_face_free_names): Check that `table->names'
+ is not NULL. Reported by Gordon Childs <gchilds@quickcut.com.au>.
+
+2004-04-29 Werner Lemberg <wl@gnu.org>
+
+ * docs/formats.txt: Add more information on PFR format.
+
+2004-04-28 Werner Lemberg <wl@gnu.org>
+
+ * docs/formats.txt: New file.
+ * docs/CHANGES: Updated.
+
+2004-04-28 Masatake YAMATO <jet@gyve.org>
+
+ * include/freetype/internal/tttypes.h (GX_BlendRec_)
+ [TT_CONFIG_OPTION_GX_VAR_SUPPORT]: Fix a typo.
+
+ * src/truetype/ttgxvar.h (GX_BlendRec_): Fix a typo.
+
+2004-04-27 Masatake YAMATO <jet@gyve.org>
+
+ * src/truetype/ttgxvar.h: Use FT_LOCAL instead of FT_LOCAL_DEF
+ for function declarations.
+
+2004-04-25 George Williams <gww@silcom.com>
+
+ * src/truetype/ttgxvar.c (ft_var_apply_tuple): Fix typo.
+
+2004-04-25 Werner Lemberg <wl@gnu.org>
+
+ * src/truetype/Jamfile, docs/CHANGES: Updated.
+
+2004-04-24 Werner Lemberg <wl@gnu.org>
+
+ * src/pcf/pcfdrivr.c: Revert change from 2004-04-17.
+ * src/pcf/pcfutil.c: Use FT_LOCAL_DEF.
+ * src/pcf/pcfutil.h: Include FT_CONFIG_CONFIG_H.
+ Use FT_BEGIN_HEADER and FT_END_HEADER.
+ Use FT_LOCAL.
+
+2004-04-24 George Williams <gww@silcom.com>
+
+ Add support for Apple's distortable font technology (in GX fonts).
+
+ * devel/ftoption.h, include/freetype/config/ftoption.h
+ (TT_CONFIG_OPTION_GX_VAR_SUPPORT): New macro.
+
+ * include/freetype/ftmm.h (FT_Var_Axis, FT_Var_Named_Style,
+ FT_MM_Var): New structures.
+ (FT_Get_MM_Var, FT_Set_Var_Design_Coordinates,
+ FT_Set_Var_Blend_Coordinates): New function declarations.
+
+ * include/freetype/internal/services/svmm.h (FT_Get_MM_Var_Func,
+ FT_Set_Var_Design_Func): New typedefs.
+ Update MultiMasters service.
+
+ * include/freetype/internal/tttypes.h
+ [TT_CONFIG_OPTION_GX_VAR_SUPPORT]: Include FT_MULTIPLE_MASTERS_H.
+ (GX_Blend) [TT_CONFIG_OPTION_GX_VAR_SUPPORT]: New typedef.
+ (TT_Face) [TT_CONFIG_OPTION_GX_VAR_SUPPORT]: New members `doblend'
+ and `blend'.
+
+ * include/freetype/tttags.h (TTAG_avar, TTAG_cvar, TTAG_gvar): New
+ macros.
+
+ * include/freetype/internal/fttrace.h: Add `ttgxvar'.
+
+ * src/base/ftmm.c (FT_Get_MM_Var, FT_Set_Var_Design_Coordinates,
+ FT_Set_Var_Blend_Coordinates): New functions.
+
+ * src/sfnt/sfobjs.c (sfnt_load_face)
+ [TT_CONFIG_OPTION_GX_VAR_SUPPORT]: Set FT_FACE_FLAG_MULTIPLE_MASTERS
+ flag for GX var fonts.
+
+ * src/truetype/ttgxvar.c, src/truetype/ttgxvar.h: New files.
+
+ * src/truetype/truetype.c [TT_CONFIG_OPTION_GX_VAR_SUPPORT]: Include
+ ttgxvar.c.
+
+ * src/truetype/ttdriver.c [TT_CONFIG_OPTION_GX_VAR_SUPPORT]: Include
+ FT_MULTIPLE_MASTERS_H, FT_SERVICE_MULTIPLE_MASTERS_H, and ttgxvar.h.
+ (tt_service_gx_multi_masters) [TT_CONFIG_OPTION_GX_VAR_SUPPORT]:
+ New service.
+ (tt_services) [TT_CONFIG_OPTION_GX_VAR_SUPPORT]: Updated.
+
+ * src/truetype/ttgload.c [TT_CONFIG_OPTION_GX_VAR_SUPPORT]: Include
+ ttgxvar.h.
+ (TT_Process_Simple_Glyph, load_truetype_glyph)
+ [TT_CONFIG_OPTION_GX_VAR_SUPPORT]: Support GX var fonts.
+
+ * src/truetype/ttobjs.c [TT_CONFIG_OPTION_GX_VAR_SUPPORT]: Include
+ ttgxvar.h.
+ (tt_done_face) [TT_CONFIG_OPTION_GX_VAR_SUPPORT]: Call
+ tt_done_blend.
+
+ * src/truetype/ttpload.c [TT_CONFIG_OPTION_GX_VAR_SUPPORT]: Include
+ ttgxvar.h.
+ (tt_face_load_cvt) [TT_CONFIG_OPTION_GX_VAR_SUPPORT]: Call
+ tt_face_vary_cvt.
+
+ * src/truetype/rules.mk (TT_DRV_SRC): Add ttgxvar.c.
+
+ * src/type1/t1driver.c (t1_service_multi_masters): Add T1_Get_MM_Var
+ and T1_Set_Var_Design.
+
+ * src/type1/t1load.c (FT_INT_TO_FIXED, FT_FIXED_TO_INT): New macros.
+ (T1_Get_MM_Var, T1_Set_Var_Design): New functions.
+
+ * src/type1/t1load.h (T1_Get_MM_Var, T1_Set_Var_Design): New
+ function declarations.
+
+2004-04-23 Werner Lemberg <wl@gnu.org>
+
+ * include/freetype/ftcache.h (FT_Get_CharMap_Index): Rename
+ declaration and move to...
+ * include/freetype/freetype.h (FT_Get_Charmap_Index): Here.
+ (FREETYPE_PATCH): Set to 9.
+
+ * src/base/ftobjs.c (FT_Get_Charmap_Index): New function.
+
+ * builds/unix/configure.ac (version_info): Set to 9:7:3.
+ * builds/unix/configure: Updated.
+
+ * builds/win32/visualc/index.html,
+ builds/win32/visualc/freetype.dsp,
+ builds/win32/visualc/freetype.vcproj: s/218/219/.
+
+ * builds/freetype.mk (refdoc), README, Jamfile (RefDoc):
+ s/2.1.8/2.1.9/.
+
+ * docs/CHANGES, docs/VERSION.DLL: Updated.
+
+2004-04-21 Werner Lemberg <wl@gnu.org>
+
+ * src/cff/cffparse.c (cff_parser_run), src/psaux/psobjs.c
+ (ps_parser_load_field): Use FT_CHAR_BIT.
+
+2004-04-21 David Turner <david@freetype.org>
+
+
+ * Version 2.1.8 released.
+ =========================
+
+
+ * src/cff/cffobjs.c (cff_face_init): Fix a small memory leak.
+
+ * src/autofit/afloader.c (af_loader_load_g), src/autofit/afmodule.c
+ (af_autofitter_load_glyph), src/base/ftdebug.c (FT_Trace_Get_Name):
+ Remove compiler warnings.
+
+ * src/autofit/aftypes.h: Undefine AF_DEBUG.
+
+ * src/lzw/zopen.c (rmask), src/pcf/pcfdrivr.c (pcf_service_bdf,
+ pcf_services), src/pcf/pcfread.c (tableNames), src/psaux/psobjs.c
+ (ft_char_table), src/type42/t42drivr.c (t42_service_glyph_dict,
+ t42_service_ps_font_name): Decorate data arrays with `const' to
+ avoid populating the `.data' segment.
+
+ * src/lzw/Jamfile: New file.
+
+2004-04-20 Werner Lemberg <wl@gnu.org>
+
+ * src/psaux/psobjs.c (T1Radix): Renamed to...
+ (ps_radix): This.
+ Update current cursor position.
+
+ * docs/CHANGES: Updated.
+
+2004-04-18 Werner Lemberg <wl@gnu.org>
+
+ * src/truetype/ttgload.c, src/truetype/ttgload.h (TT_Load_Glyph),
+ src/ttdriver.c (Load_Glyph): Change type of `glyph_index' to
+ FT_UInt. From Lex Warners.
+
+2004-04-17 Chisato Yamauchi <cyamauch@a.phys.nagoya-u.ac.jp>
+
+ * src/sfnt/ttload.c (tt_face_load_sfnt_header): Really fix change
+ from 2004-03-19.
+
+ * src/bdf/bdfdrivr.c (BDF_Face_Init): Use `ft_strlen'.
+
+ * src/pcf/pcfutil.c, src/pcf/pcfutil.h: Decorate functions with
+ `static'.
+ Remove unused function `RepadBitmap'.
+ * src/pcf/pcfdrivr.c: Don't include pcfutil.h.
+
+2004-04-16 Werner Lemberg <wl@gnu.org>
+
+ * builds/unix/freetype-config.in (usage): Fix and improve usage
+ information.
+
+2004-04-15 Werner Lemberg <wl@gnu.org>
+
+ * builds/unix/ftconfig.in, builds/vms/ftconfig.h: Define
+ FT_CHAR_BIT.
+
+ * src/base/ftobjs.c (FT_Load_Glyph): Don't apply autohinting if
+ glyph is vertically distorted or mirrored.
+
+ * src/cff/cffgload.c (cff_slot_load): Handle zero `size' properly
+ for embedded bitmaps.
+
+ * docs/CHANGES: Updated.
+
+2004-04-15 bytesoftware <bytesoftware@btinternet.com>
+
+ * include/freetype/config/ftconfig.h, src/base/ftstream.c
+ (FT_Stream_ReadFields): More fixes using FT_CHAR_BIT.
+
+2004-04-14 Werner Lemberg <wl@gnu.org>
+
+ * include/freetype/config/ftconfig.h (FT_CHAR_BIT): New macro.
+
+2004-04-14 Alex Strelnikov <ptktyrf@mail.ru>
+
+ * src/cache/ftcsbits.c (ftc_snode_load): Initialize `*asize' in case
+ of error.
+
+2004-04-14 Werner Lemberg <wl@gnu.org>
+
+ * src/base/ftmac.c [__GNUC__]: Define OS_INLINE.
+ * builds/unix/configure.ac: Don't try to remove `-ansi' compilation
+ switch on the Mac.
+
+ * builds/unix/ltmain.sh: Regenerated with `libtoolize --force
+ --copy' from libtool 1.5.6.
+ * builds/unix/aclocal.m4: Regenerated with `aclocal -I .' from
+ automake 1.8a.
+ * builds/unix/configure: Regenerated with autoconf 2.59a.
+
+2004-04-13 Werner Lemberg <wl@gnu.org>
+
+ * include/freetype/config/ftconfig.h: Use CHAR_BIT to define
+ size of FT_SIZEOF_xxx.
+
+2004-04-12 Chisato Yamauchi <cyamauch@a.phys.nagoya-u.ac.jp>
+
+ * include/freetype/internal/sfnt.h (TT_Find_SBit_Image_Func,
+ TT_Load_SBit_Metrics_Func): New typedefs.
+ (SFNT_Interface): Add find_sbit_image and load_sbit_metrics.
+
+ * src/sfnt/sfdriver.c (sfnt_interface): Updated.
+ * src/sfnt/ttsbit.h (tt_find_sbit_image, tt_load_sbit_metrics): New
+ declarations.
+ * src/sfnt/ttsbit.c (find_sbit_image): Renamed to...
+ (tt_find_sbit_image): This.
+ Updated all callers.
+ (load_sbit_metrics): Renamed to...
+ (tt_load_sbit_metrics): This.
+ Updated all callers.
+
+2004-04-12 Werner Lemberg <wl@gnu.org>
+
+ * configure: Accept makepp also.
+
+ * builds/unix/detect.mk: Use proper path to unix-def.mk.
+ * builds/unix/unix-def.in (BUILD_DIR, PLATFORM): Remove.
+ * builds/unix/unix.mk (BUILD_DIR, PLATFORM): Define.
+ Use BUILD_DIR.
+
+ * docs/INSTALL, docs/INSTALL.GNU, docs/INSTALL.UNX: Update
+ documentation on makepp.
+
+2004-04-11 Werner Lemberg <wl@gnu.org>
+
+ * src/lzw/zopen.c: Don't include sys/param.h and sys/stat.h.
+
+2004-04-10 Werner Lemberg <wl@gnu.org>
+
+ * src/lzw/ftlzw.c: Include zopen.h dependent on
+ FT_CONFIG_OPTION_USE_LZW.
+
+ * src/base/ftdebug.c: s/index/idx/ to avoid compiler warnings.
+
+2004-04-02 Werner Lemberg <wl@gnu.org>
+
+ * builds/unix/ltmain.sh: Regenerated with `libtoolize --force
+ --copy' from libtool 1.5.2.
+ * builds/unix/aclocal.m4: Regenerated with `aclocal -I .' from
+ automake 1.8a.
+ * builds/unix/configure: Regenerated with autoconf 2.59a.
+
+2004-04-01 Werner Lemberg <wl@gnu.org>
+
+ * builds/unix/ft-munmap.m4 (FT_MUNMAP_PARAM): Fix arguments of
+ AC_COMPILE_IFELSE.
+ * builds/unix/aclocal.m4: Regenerated with `aclocal -I .' from
+ automake 1.8a.
+ * builds/unix/configure: Regenerated with autoconf 2.59a.
+ * builds/unix/config.guess, builds/unix/config.sub: Updated from
+ `config' CVS module at subversions.gnu.org.
+ * builds/unix/install-sh, builds/unix/mkinstalldirs: Updated from
+ `texinfo' CVS module at subversions.gnu.org.
+ * builds/freetype.mk (refdoc): Updated.
+
+2004-03-31 Werner Lemberg <wl@gnu.org>
+
+ Handle broken FNT files which don't have a trailing NULL byte
+ in the face name string.
+
+ * src/winfonts/winfnt.h (FNT_FontRec): New member `family_name'.
+ * src/winfonts/winfnt.c (fnt_font_done): Free font->family_name.
+ (FNT_Face_Init): Append a final zero byte to the font face name.
+
+2004-03-30 Werner Lemberg <wl@gnu.org>
+
+ * src/sfnt/ttload.c (tt_face_load_sfnt_header): Fix change from
+ 2004-03-19.
+
+2004-03-27 Werner Lemberg <wl@gnu.org>
+
+ * src/base/descrip.mms (OBJS): Add ftbbox.obj.
+
+2004-03-26 George Williams <gww@silcom.com>
+
+ Add vertical phantom points.
+
+ * include/freetype/internal/tttypes.h (TT_LoaderRec): Add
+ `top_bearing', `vadvance', `pp3', and `pp4'.
+
+ * src/autofit/afloader.c (af_loader_load_g): Handle two more points.
+
+ * src/autohint/ahhint.c (ah_hinter_load): Handle two more points.
+ * src/truetype/ttgload.c (Get_VMetrics): New function.
+ (TT_Load_Simple_Glyph, TT_Process_Simple_Glyph): Handle two more
+ points.
+ (load_truetype_glyph): Use Get_VMetrics.
+ Handle two more points.
+ (compute_glyph_metrics): Thanks to vertical phantom points we now
+ can always compute `advance_height' and `top_bearing'.
+ * src/truetype/ttobjs.h (TT_SubglyphRec): Add vertical phantom
+ points.
+
+
+ * src/autohint/ahglyph.c (ah_outline_load): Fix allocation of
+ `news'.
+
+2004-03-21 Werner Lemberg <wl@gnu.org>
+
+ * src/bdf/bdfdrivr.c (BDF_Glyph_Load): Fix left side bearing.
+
+2004-03-20 Steve Hartwell <shspamsink@comcast.net>
+
+ * src/cache/ftcmru.c (FTC_MruList_RemoveSelection): Handle a NULL
+ value for `selection' as `select all'.
+
+2004-03-19 Steve Hartwell <shspamsink@comcast.net>
+
+ * src/sfnt/ttload.c (tt_face_load_sfnt_header): Reject face_index
+ values > 0 if loading non-TTC fonts.
+
+ * src/base/ftmac.c (open_face_from_buffer): Set positive face_index
+ to zero before calling FT_Open_Face.
+
+ * docs/CHANGES: Updated.
+
+2004-03-04 Werner Lemberg <wl@gnu.org>
+
+ * Jamfile, vms_make.com, builds/win32/visualc/freetype.dsp,
+ builds/win32/visualc/freetype/vcproj, include/freetype/ftmoderr.h:
+ Add LZW module.
+
+ * Jamfile.in: Removed.
+
+ * docs/CHANGES: Updated.
+
+ * include/freetype/internal/ftobjs.h: s/MIN/FT_MIN/, s/MAX/FT_MAX/,
+ s/ABS/FT_ABS/. Updated all callers.
+
+ * src/type1/t1load.c (parse_dict), src/pcf/pcfdrivr.c
+ (PCF_Face_Init): Use FT_ERROR_BASE.
+
+2004-03-04 Albert Chin <china@thewrittenword.com>
+
+ Add support for PCF fonts compressed with LZW (extension .pcf.Z,
+ created with `compress').
+
+ * include/freetype/config/ftoption.h, devel/ftoption.h
+ (FT_CONFIG_OPTION_USE_LZW): New macro.
+
+ * include/freetype/ftlzw.h: New file.
+ * include/freetype/config/ftheader.h (FT_LZW_H): New macro for
+ ftlzw.h.
+
+ * src/lzw/*: New files.
+
+ * src/pcf/pcfdrivr.c: Include FT_LZW_H.
+ (PCF_Face_Init): Try LZW also.
+
+ * src/gzip/ftgzip.c: s/0/Gzip_Err_Ok/ where appropriate.
+ Beautify.
+
+2004-03-03 Werner Lemberg <wl@gnu.org>
+
+ * src/pshinter/pshalgo.c (psh_hint_table_init): Simplify code.
+
+2004-03-02 Werner Lemberg <wl@gnu.org>
+
+ Add embedded bitmap support to CFF driver.
+
+ * src/cff/cffobjs.h (CFF_SizeRec): New structure.
+
+ * src/cff/cffgload.c (cff_builder_init): Updated.
+ (cff_slot_load): Updated.
+ [TT_CONFIG_OPTION_EMBEDDED_BITMAPS]: Load sbit.
+
+ * src/cff/cffobjs.c (sbit_size_reset)
+ [TT_CONFIG_OPTION_EMBEDDED_BITMAPS]: New function.
+ (cff_size_get_globals_funcs, cff_size_done, cff_size_init): Updated.
+ (cff_size_reset): Updated.
+ [TT_CONFIG_OPTION_EMBEDDED_BITMAPS]: Call sbit_size_reset.
+
+ * src/cff/cffdrivr.c (Load_Glyph): Updated.
+ (cff_driver_class): Use CFF_SizeRec.
+
+ * docs/CHANGES: Updated.
+
+2004-03-01 Werner Lemberg <wl@gnu.org>
+
+ * src/pshinter/pshglob.c (psh_globals_scale_widths): Don't use
+ FT_RoundFix but FT_PIX_ROUND.
+ (psh_blues_snap_stem): Don't use blue_shift but blue_threshold.
+
+ * src/pshinter/pshalgo.c (PSH_STRONG_THRESHOLD_MAXIMUM): New macro.
+ (psh_glyph_find_strong_points): Use PSH_STRONG_THRESHOLD_MAXIMUM.
+ (psh_glyph_find_blue_points): New function. Needed for fonts like
+ p052003l.pfb (URW Palladio L Roman) which have flex curves at the
+ base line within blue zones, but the flex curves aren't covered by
+ hints.
+ (ps_hints_apply): Use psh_glyph_find_blue_points.
+
+2004-02-27 Garrick Meeker <garrick@digitalanarchy.com>
+
+ * builds/unix/configure.ac: Fix compiler flags for
+ `--with-old-mac-fonts'.
+ * builds/unix/configure: Regenerated.
+
+ * src/base/ftmac.c: s/TARGET_API_MAC_CARBON/!TARGET_API_MAC_OS8/.
+ (FT_New_Face_From_Resource): New function.
+ (FT_New_Face): Use FT_New_Face_From_Resource.
+ (FT_New_Face_From_FSSpec): Use FT_New_Face_From_Resource.
+ [__MWERKS__]: Don't include FSp_fopen.h.
+
+2004-02-26 Werner Lemberg <wl@gnu.org>
+
+ * src/pshinter/pshglob.c (psh_globals_new): Fix value of
+ `dim->stdw.count'.
+ Don't assign default values to blue scale and blue shift.
+
+2004-02-25 Werner Lemberg <wl@gnu.org>
+
+ * docs/CHANGES: Updated.
+
+2004-02-25 Garrick Meeker <garrick@digitalanarchy.com>
+ Steve Hartwell <shspamsink@comcast.net>
+
+ Improve MacOS fond support. Provide a new API
+ `FT_New_Face_From_FSSpec' similar to `FT_New_Face'.
+
+ * src/base/ftmac.c [__MWERKS__]: Include FSp_fopen.h.
+ STREAM_FILE [__MWERKS__]: New macro.
+ (ft_FSp_stream_close, ft_FSp_stream_io) [__MWERKS__]: New functions.
+ (file_spec_from_path) [__MWERKS__]: Updated #if statement.
+ (get_file_type, make_lwfn_spec): Use `const' for argument.
+ (is_dfont) [TARGET_API_MAC_CARBON]: Removed.
+ (count_face_sfnt, count_faces): New functions.
+ (parse_fond): Do some range checking.
+ (read_lwfn): Change type of second argument.
+ No longer call FSpOpenResFile.
+ (OpenFileAsResource): New function.
+ (FT_New_Face_From_LWFN): Use `const' for second argument.
+ Use OpenFileAsResource.
+ (FT_New_Face_From_Suitcase): Change type of second argument.
+ No longer call FSpOpenResFile.
+ Loop over all resource indices.
+ (FT_New_Face_From_dfont) [TARGET_API_MAC_CARBON]: Removed.
+ (FT_GetFile_From_Mac_Name): Use `const' for first argument.
+ (ResourceForkSize): Removed.
+ (FT_New_Face): Updated to use new functions.
+ (FT_New_Face_From_FSSpec): New function.
+
+ * include/freetype/ftmac.h: Updated.
+
+2004-02-24 Malcolm Taylor <mtaylor@clear.net.nz>
+
+ * src/autohint/ahhint.c (ah_hinter_load) <FT_GLYPH_FORMAT_OUTLINE>:
+ Handle case where outline->num_vedges is zero while computing hinted
+ metrics.
+
+2004-02-24 Gordon Childs <gchilds@quickcut.com.au>
+
+ * src/cff/cffcmap.c (cff_cmap_unicode_init): Provide correct value
+ for `count'.
+
+2004-02-24 Werner Lemberg <wl@gnu.org>
+
+ * include/freetype/t1tables.h (PS_PrivateRec): Add
+ `expansion_factor'.
+
+ * src/pshinter/pshglob (psh_blues_scale_zones): Fix computation
+ of blues->no_overshoots -- `blues_scale' is stored with a
+ magnification of 1000, and `scale' returns fractional pixels.
+
+ * src/type1/t1load.c (T1_Open_Face): Initialize `blue_shift',
+ `blue_fuzz', `expansion_factor', and `blue_scale' according to the
+ Type 1 specification.
+
+ * src/type1/t1tokens.h: Handle `ExpansionFactor'.
+
+ * docs/CHANGES: Updated.
+
+2004-02-24 Masatake YAMATO <jet@gyve.org>
+
+ Provide generic access to MacOS resource forks.
+
+ * src/base/ftrfork.c, include/freetype/internal/ftrfork.h: New
+ files.
+
+ * src/base/ftobjs.c: Include FT_INTERNAL_RFORK_H.
+ (Mac_Read_POST_Resource, Mac_Read_sfnt_Resource): Remove arguments
+ `resource_listoffset' and `resource_data' and adapt code
+ accordingly. These values are calculated outside of the function
+ now.
+ Add new argument `offsets'.
+ (IsMacResource): Use `FT_Raccess_Get_HeaderInfo' and
+ `FT_Raccess_Get_DataOffsets'.
+ (load_face_in_embedded_rfork): New function.
+ (load_mac_face): Use load_face_in_embedded_rfork.
+ (ft_input_stream_new): Renamed to...
+ (FT_Stream_New): This. Use FT_BASE_DEF. Updated all callers.
+ (ft_input_stream_free): Renamed to...
+ (FT_Stream_Free): This. Use FT_BASE_DEF. Updated all callers.
+
+ * src/base/ftbase.c: Include ftrfork.c.
+
+ * src/base/rules.mk (BASE_SRC), src/base/Jamfile: Updated.
+
+ * include/freetype/internal/internal.h (FT_INTERNAL_RFORK_H):
+ New macro.
+
+ * include/freetype/internal/fttrace.h: Added `rfork' as a new
+ trace definition.
+
+ * include/freetype/internal/ftstream.h: Declare FT_Stream_New and
+ FT_Stream_Free.
+
+ * include/freetype/config/ftoption.h, devel/ftoption.h
+ (FT_CONFIG_OPTION_GUESSING_EMBEDDED_RFORK): New option.
+
+ * include/freetype/config/ftstdlib.h (ft_strrchr): New macro.
+
+2004-02-23 Werner Lemberg <wl@gnu.org>
+
+ * docs/CHANGES: Updated.
+
+ * include/freetype/internal/ftdebug.h: Include FT_FREETYPE_H.
+
+2004-02-23 Masatake YAMATO <jet@gyve.org>
+
+ Provide a simple API to control FreeType's tracing levels.
+
+ * include/freetype/internal/ftdebug.h (FT_Trace_Get_Count,
+ FT_Trace_Get_Name): New declarations.
+
+ * src/base/ftdebug.c (FT_Trace_Get_Count, FT_Trace_Get_Name): New
+ functions.
+
+2004-02-23 David Turner <david@freetype.org>
+
+ * src/autofit/afhints.c, src/autofit/afhints.h,
+ src/autofit/aflatin.c, src/autofit/afloader.c, src/types.h: Grave
+ bugs have been fixed. The auto-fitter works, doesn't crash, but
+ still produces unexpected results...
+
+2004-02-21 Werner Lemberg <wl@gnu.org>
+
+ * src/pshinter/pshalgo.c (PSH_STRONG_THRESHOLD): Changed to hold
+ the accepted shift for strong points in fractional pixels (which
+ is a heuristic value).
+ (psh_glyph_find_strong_points): Compute threshold for
+ psh_hint_table_find_strong_points.
+ (psh_hint_table_find_strong_point): Add parameter to pass threshold.
+
+2004-02-20 Werner Lemberg <wl@gnu.org>
+
+ * src/pshinter/pshrec.c (ps_mask_table_set_bits): Don't call
+ ps_mask_table_alloc but ps_mask_table_last.
+ (ps_hints_t2mask): Use correct position and number for vertical
+ and horizontal hinter mask bits.
+
+ * docs/CHANGES: Updated.
+
+2004-02-19 Werner Lemberg <wl@gnu.org>
+
+ * src/base/ftstroke.c (FT_Glyph_StrokeBorder): Fix enum handling.
+ * src/cff/cffdrivr.c (cff_get_cmap_info): Remove compiler warning.
+
+2004-02-18 Werner Lemberg <wl@gnu.org>
+
+ * include/freetype/freetype.h: Document FT_LOAD_TARGET_XXX properly.
+
+ * src/base/ftglyph.c (ft_bitmap_glyph_class,
+ ft_outline_glyph_class): Tag with FT_CALLBACK_TABLE_DEF.
+
+ * src/smooth/ftsmooth.c (ft_smooth_render): Handle
+ FT_RENDER_MODE_LIGHT.
+
+2004-02-17 Werner Lemberg <wl@gnu.org>
+
+ Fix callback functions in cache module.
+
+ * src/cache/ftccback.h: New file for callback declarations.
+
+ * src/cache/ftcbasic.c (ftc_basic_family_compare,
+ ftc_basic_family_init, ftc_basic_family_get_count,
+ ftc_basic_family_load_bitmap, ftc_basic_family_load_glyph,
+ ftc_basic_gnode_compare_faceid): Use FT_CALLBACK_DEF.
+ (ftc_basic_image_family_class, ftc_basic_image_cache_class,
+ ftc_basic_sbit_family_class, ftc_basic_sbit_cache_class):
+ Use FT_CALLBACK_TABLE_DEF and local wrapper functions.
+
+ * src/cache/ftccache.c: Include ftccback.h.
+ (ftc_cache_init, ftc_cache_done): New wrapper functions which use
+ FT_LOCAL_DEF.
+
+ * src/cache/ftccmap.c: Include ftccback.h.
+ (ftc_cmap_cache_class): Use local wrapper functions.
+
+ * src/cache/ftcglyph.c: Include ftccback.h.
+ (ftc_gnode_compare, ftc_gcache_init, ftc_gcache_done): New wrapper
+ functions which use FT_LOCAL_DEF.
+
+ * src/cache/ftcimage.c: Include ftccback.h.
+ (ftc_inode_free, ftc_inode_new, ftc_inode_weight): New wrapper
+ functions which use FT_LOCAL_DEF.
+
+ * src/cache/ftcmanag.c (ftc_size_list_class, ftc_face_list_class):
+ Use FT_CALLBACK_TABLE_DEF.
+
+ * src/cache;/ftcsbits.c: Include ftccback.h.
+ (ftc_snode_free, ftc_snode_new, ftc_snode_weight,
+ ftc_snode_compare): New wrapper functions which use FT_LOCAL_DEF.
+
+ * src/cache/rules.mk (CACHE_DRV_H): Add ftccback.h.
+
+2004-02-17 Masatake YAMATO <jet@gyve.org>
+
+ * include/freetype/ftmac.h (FT_GetFile_From_Mac_Name): Fix a typo
+ (FT_EXPORT_DEF -> FT_EXPORT).
+
+ * include/freetype/ftxf86.h (FT_Get_X11_Font_Format): Ditto.
+
+2004-02-15 Werner Lemberg <wl@gnu.org>
+
+ * src/base/ftobjs.c (FT_Set_Char_Size): Fix typo.
+
+2004-02-14 Masatake YAMATO <jet@gyve.org>
+
+ * builds/unix/ftsystem.c: Include errno.h.
+ (ft_close_stream): Renamed to...
+ (ft_close_stream_by_munmap): This.
+ (ft_close_stream_by_free): New function.
+ (FT_Stream_Open): Use fallback method if mmap fails.
+ Use proper function for closing the stream.
+
+2004-02-14 Werner Lemberg <wl@gnu.org>
+
+ * src/type1/t1load.c (parse_dict): Initialize `start_binary'.
+
+2004-02-13 Robert Etheridge <roberte@stcc.cc.tx.us>
+
+ * src/type42/t42objs.c (T42_Face_Init), src/type1/t1objs.c
+ (T1_Face_Init), src/cid/cidobjs.c (cid_face_init): Fix computation
+ of underline_position and underline_thickness.
+
+2004-02-12 Werner Lemberg <wl@gnu.org>
+
+ * src/base/ftobjs.c (FT_Set_Char_Size): Return immediately if
+ ppem values don't change. Suggested by Graham Asher.
+
+2004-02-11 Werner Lemberg <wl@gnu.org>
+
+ * src/cid/cidload.c (cid_face_open): Always allocate
+ face->cid_stream so that we can deallocate it safely.
+
+2004-02-10 Werner Lemberg <wl@gnu.org>
+
+ Make the PS parser more tolerant w.r.t. non-standard font data. In
+ general, an error is only reported in case of a syntax error; a
+ wrong type is now simply ignored (if possible). To be independent
+ of the order of various MM-specific keywords, the parse_shared_dict
+ routine has been removed -- the PS parser is now capable to skip
+ this data. It no longer fails on parsing e.g.
+
+ dup /WeightVector exch def
+
+ Since the token following /WeightVector isn't `[' (starting an
+ array) it is simply ignored.
+
+ * include/freetype/fterrdef.h: Define `FT_Err_Ignore' (0xA2) as a
+ new internal error value.
+
+ * src/type1/t1load.c (parse_blend_axis_types,
+ parse_blend_design_positions, parse_blend_design_map): Return
+ T1_Err_Ignore if no proper array is following the keyword.
+ (parse_weight_vector): Use T1_ToTokenArray, initializing `blend'
+ structure, if necessary.
+ Return T1_Err_Ignore if no proper array is following the keyword.
+ (parse_shared_dict): Removed.
+ (parse_encoding): Set parser->root.error to return T1_Err_Ignore
+ if no result can be obtained.
+ Check for errors before accessing `elements' array.
+ (t1_keywords): Remove /shareddict.
+ (parse_dict): Reset error if t1_load_keyword returns T1_Err_Ignore.
+ Set keyword_flag only in case of success.
+ Check error code if skipping an unrecognized token.
+ (T1_Open_Face) [!T1_CONFIG_OPTION_NO_MM_SUPPORT]: Call T1_Done_Blend
+ if blend commands haven't set up a proper MM font.
+
+ * src/psaux/psobjs.c (ps_parser_load_field_table): Remove special
+ code for synthetic fonts.
+ Return PSaux_Err_Ignore if no proper value has been found.
+
+2004-02-09 Werner Lemberg <wl@gnu.org>
+
+ * src/cff/cffgload.c (cff_decoder_parse_charstrings)
+ <cff_op_endchar>: Preserve glyph width before calling
+ cff_operator_seac.
+
+2004-02-09 Martin Muskens <mmuskens@aurelon.com>
+
+ * src/cff/cffgload.c (cff_decoder_parse_charstrings): Handle special
+ first argument for `hintmask' and `cntrmask' operators also.
+
+2004-02-08 Werner Lemberg <wl@gnu.org>
+
+ * builds/unix/configure.in: Call AC_SUBST for `enable_shared',
+ `hardcode_libdir_flag_spec', and `wl'.
+ * builds/unix/configure: Regenerated.
+
+ * builds/unix/freetype-config.in: Make --prefix and --exec-prefix
+ actually work.
+ Report a proper --rpath (or -R) value for --libs argument if a
+ shared library has been built.
+
+ * docs/CHANGES: Updated.
+
+2004-02-07 Keith Packard <keithp@keithp.com>
+
+ * src/bdf/bdfdrivr.c (BDF_Face_Init, BDF_Set_Pixel_Size): Fix
+ computation of various vertical and horizontal metric values.
+
+ * src/pcfdrivr.c (PCF_Set_Pixel_Size), src/pcfread (pcf_load_font):
+ Ditto.
+
+2004-02-07 Werner Lemberg <wl@gnu.org>
+
+ * builds/win32/visualc/index.html,
+ builds/win32/visualc/freetype.dsp,
+ builds/win32/visualc/freetype.dsw, docs/CHANGES: Updated.
+
+2004-02-07 Vitaliy Pasternak <v_a_pasternak@mail.ru>
+
+ * builds/win32/visualc/freetype.sln,
+ builds/win32/visualc/freetype.vcproj: New files for VS.NET 2003.
+
+2004-02-03 Werner Lemberg <wl@gnu.org>
+
+ * include/freetype/cache/ftccache.h (FTC_CACHE_LOOKUP_CMP):
+ Initialize `node'.
+ * src/type1/t1load.c (parse_dict): Initialize `have_integer'.
+
+2004-02-02 Werner Lemberg <wl@gnu.org>
+
+ * src/type1/t1load.c (parse_dict): Handle `RD' and `-|' commands
+ outside of /Subrs or /CharStrings. This can happen if there is
+ additional code manipulating those two arrays so that FreeType
+ doesn't recognize them properly.
+ (T1_Open_Face): Improve an error message.
+
+2004-02-01 Werner Lemberg <wl@gnu.org>
+
+ * src/type1/t1load.c (parse_charstrings): Exit immediately if
+ there are no elements in /CharStrings. This is needed for fonts
+ like Optima-Oblique which not only define /CharStrings but access it
+ also.
+
+2004-02-01 David Turner <david@freetype.org>
+
+ * src/sfnt/Jamfile: Removing `ttcmap' from the list of sources.
+
+ * include/freetype/cache/ftccache.h (FTC_CACHE_LOOKUP_CMP)
+ <FTC_INLINE>: Provide macro version which doesn't use inline code.
+ * include/freetype/cache/ftcglyph.h (FTC_GCACHE_LOOKUP_CMP)
+ <FTC_INLINE>: Ditto.
+ Use FTC_MRULIST_LOOKUP_CMP.
+ * include/freetype/cache/ftcmru.h (FTC_MRULIST_LOOKUP_CMP): New
+ macro.
+ (FTC_MRULIST_LOOKUP): Use it.
+
+ * src/cache/Jamfile (_sources), src/cache/descrip.mms: Updated.
+ * src/cache/ftcbasic.c: Fix compiler warnings.
+ * src/cache/ftcmanag.c (FTC_Manager_LookupSize,
+ FTC_Manager_LookupFace) <FTC_INLINE>: Use FTC_MRULIST_LOOKUP_CMP.
+ * src/cache/ftcmru.c (FTC_MruList_Find): Fix a bug (found after
+ heavy testing).
+
+ * Jamfile: Updating `refdoc' target, and adding `autohint' to the
+ list of modules to build. Both the autohinter and autofitter will
+ be built by default. But which one will be used is determined by
+ the content of `ftmodule.h'.
+
+ * src/autofit/*: Many updates, but the code is still buggy...
+
+2004-01-31 Werner Lemberg <wl@gnu.org>
+
+ * src/cff/cffgload.c (cff_operator_seac): Fix magnitude of
+ accent offset.
+ Update code similarly to the seac support for Type 1 fonts.
+ (cff_decoder_parse_charstrings) <cff_op_endchar>: Fix magnitude
+ of accent offset.
+ Don't hint glyphs twice if seac is emulated.
+ <cff_op_flex>: Assign correct point tags.
+ * docs/CHANGES: Updated.
+
+2004-01-30 Werner Lemberg <wl@gnu.org>
+
+ * src/type1/t1parse.c (T1_Get_Private_Dict): Use FT_MEM_MOVE, not
+ FT_MEM_COPY, for copying the private dict.
+
+ * src/type1/t1load.c (parse_subrs): Assign number of subrs only
+ in first run.
+ (parse_charstrings): Parse /CharStrings in second run without
+ assigning values.
+ (parse_dict): Skip all /CharStrings arrays but the first. We need
+ this for non-standard fonts like `Optima' which have different
+ outlines depending on the resolution. Note that there is no
+ guarantee that we get fitting /Subrs and /CharStrings arrays; this
+ can only be done by a real PS interpreter.
+
+2004-01-29 Antoine Leca <Antoine-Freetype@Leca-Marti.org>
+
+ * builds/win32/visualc/index.html: New file, giving detailed
+ explanations about forcing CR+LF line endings for the VC++ project
+ files.
+
+2004-01-22 Garrick Meeker <garrick@digitalanarchy.com>
+
+ * src/cff/cffload.c (cff_subfont_load): Initialize `dict'.
+
+2004-01-22 Werner Lemberg <wl@gnu.org>
+
+ Add support for the hexadecimal representation of binary data
+ started with `StartData' in CID-keyed Type 1 fonts.
+
+ * include/freetype/internal/t1types.h (CID_FaceRec): Add new
+ members `binary_data' and `cid_stream'.
+
+ * src/cid/cidload.c (cid_read_subrs): Use `face->cid_stream'.
+ (cid_hex_to_binary): New auxiliary function.
+ (cid_face_open): Add new argument `face_index' to return quickly
+ if less than zero. Updated all callers.
+ Call `cid_hex_to_binary', then open and assign memory stream to
+ `face->cid_stream' if `parser->binary_length' is non-zero.
+ * src/cid/cidload.h: Updated.
+
+ * src/cid/cidobjs.c (cid_face_done): Free `binary_data' and
+ `cid_stream'.
+
+ * src/cid/cidparse.c (cid_parser_new): Check arguments to
+ `StartData' and set parser->binary_length accordingly.
+ * src/cid/cidparse.h (CID_Parser): New member `binary_length'.
+
+ * src/cid/cidgload.c (cid_load_glyph): Use `face->cid_stream'.
+
+ * docs/CHANGES: Updated.
+
+2004-01-21 Werner Lemberg <wl@gnu.org>
+
+ include/freetype/config/ftstdlib.h (ft_atoi): Replaced with...
+ (ft_atol): This.
+ * src/base/ftdbgmem.c: s/atol/ft_atol/.
+ * src/type42/t42drivr.c: s/ft_atoi/ft_atol/.
+
+2004-01-20 Masatake YAMATO <jet@gyve.org>
+
+ * include/freetype/ftcache.h: Delete duplicated definition of
+ FTC_FaceID.
+
+ * src/cff/cffdrivr.c (cff_get_cmap_info): Call sfnt module's TT CMap
+ Info service function if the cmap comes from sfnt. Return 0 if the
+ cmap is synthesized in cff module.
+
+2004-01-20 David Turner <david@freetype.org>
+
+ * src/cache/ftcmanag.c (ftc_size_node_compare): Call
+ FT_Activate_Size.
+
+2004-01-20 Werner Lemberg <wl@gnu.org>
+
+ * src/type1/t1parse.c (T1_Get_Private_Dict): Skip exactly one
+ CR, LF, or CR/LF after `eexec'.
+
+2004-01-18 David Turner <david@freetype.org>
+
+ * src/sfnt/ttsbit.c (tt_face_set_sbit_strike): Remove compiler
+ warning.
+
+ * src/tools/docmaker/*: Updating beautifier tool.
+
+2004-01-15 David Turner <david@freetype.org>
+
+ * src/base/ftoutln.c (ft_orientation_extremum_compute): Fix
+ infinite loop bug.
+
+ * include/freetype/ftstroke.h: Include FT_GLYPH_H.
+ (FT_Stroker_Rewind, FT_Glyph_Stroke, FT_Glyph_StrokeBorder): New
+ declarations.
+
+ * src/base/ftstroke.c: Include FT_INTERNAL_OBJECTS_H.
+ (FT_Outline_GetOutsideBorder): Inverse result.
+ (FT_Stroker_Rewind, FT_Glyph_Stroke, FT_Glyph_StrokeBorder): New
+ functions.
+ (FT_Stroker_EndSubPath): Close path if needed.
+ (FT_Stroker_Set, FT_Stroker_ParseOutline): Use FT_Stroker_Rewind.
+
+ * include/freetype/cache/ftcmanag.h (FTC_ScalerRec,
+ FTC_Manager_LookupSize): Moved to...
+ * include/freetype/ftcache.h (FTC_ScalerRec,
+ FTC_Manager_LookupSize): Here.
+
+ * src/tools/docmaker/docbeauty.py: New file to beautify the
+ documentation comments (e.g., to convert them to single block border
+ mode).
+ * src/tools/docmaker/docmaker.py (file_exists, make_file_list):
+ Moved to...
+ * src/tools/docmaker/utils.py (file_exists, make_file_list): Here.
+
+2004-01-14 David Turner <david@freetype.org>
+
+ * include/freetype/internal/ftmemory.h (FT_ARRAY_COPY,
+ FT_ARRAY_MOVE): New macros to make copying arrays easier.
+ Updated all relevant code to use them.
+
+2004-01-14 Werner Lemberg <wl@gnu.org>
+
+ * src/cff/cffload.c (cff_font_load): Load charstrings_index earlier.
+ Use number of charstrings as argument to CFF_Load_FD_Select (as
+ documented in the CFF specs).
+
+2004-01-13 Graham Asher <graham.asher@btinternet.com>
+
+ * src/pshinter/pshalgo.c (psh_glyph_init): Move assignment of
+ `glyph->memory' up to free arrays properly in case of failure.
+
+2004-01-10 Masatake YAMATO <jet@gyve.org>
+
+ Make `FT_Get_CMap_Language_ID' work with CFF. Bug reported by
+ Steve Hartwell <shspamsink@comcast.net>.
+
+ * src/cff/cffdrivr.c: Include FT_SERVICE_TT_CMAP_H.
+ (cff_services): Added an entry for FT_SERVICE_ID_TT_CMAP.
+ (cff_get_cmap_info): New function.
+ (cff_service_get_cmap_info) New entry for cff_services.
+
+ * src/sfnt/ttcmap0.c: Exit loop after a format match has been found.
+ Suggested by Steve Hartwell <shspamsink@comcast.net>.
+
+2004-01-03 Masatake YAMATO <jet@gyve.org>
+
+ * src/base/ftobjs.c (destroy_charmaps): New function.
+ (destroy_face, open_face): Use `destroy_charmaps'.
+
+2004-01-01 Werner Lemberg <wl@gnu.org>
+
+ * docs/CHANGES: Updated.
+
+2004-01-01 Michael Jansson <mjan@em2-solutions.com>
+
+ * src/winfonts/winfnt.c (FNT_Size_Set_Pixels): Fix sign of
+ size->metrics.descender.
+
+2003-12-31 Wolfgang Domröse <porthos.domroese@harz.de>
+
+ * src/cff/cffgload.c (cff_decoder_parse_charstrings)
+ [FT_DEBUG_LEVEL_TRACE]: Use `%ld' in FT_TRACE4.
+ <cff_op_flex1>: Change type of dx and dy to FT_Pos and remove
+ cast for accessing arguments.
+
+2003-12-31 Werner Lemberg <wl@gnu.org>
+
+ * src/truetype/ttgload.c (TT_Load_Simple_Glyph): Revert previous
+ change. It's not necessary.
+
+2003-12-29 Smith Charles <smith.charles@free.fr>
+
+ * src/truetype/ttgload.c (TT_Load_Simple_Glyph): Handle `repeated
+ flags set' correctly.
+
+2003-12-29 Werner Lemberg <wl@gnu.org>
+
+ * src/cff/cffobjs.c (cff_face_init): Fix memory leak by deallocating
+ `full' and `weight' properly.
+ * src/cff/cffgload.c (cff_decoder_parse_charstrings)
+ <cff_op_hintmask> [FT_DEBUG_LEVEL_TRACE]: Use `0x' as prefix for
+ tracing output.
+
+2003-12-26 Werner Lemberg <wl@gnu.org>
+
+ * include/freetype/internal/sfnt.h (TT_Set_SBit_Strike_Func):
+ Use FT_UInt for ppem values.
+ * src/sfnt/ttsbit.c (tt_face_set_sbit_strike): Use FT_UInt for
+ ppem values.
+ * src/sfnt/ttsbit.h: Updated.
+
+ * src/base/ftobjs.c (FT_Set_Pixel_Sizes): Don't allow ppem values
+ larger than -0FFFF.
+
+2003-12-25 Werner Lemberg <wl@gnu.org>
+
+ * src/base/fttrigon.c, src/base/ftgloadr.c: Include
+ FT_INTERNAL_OBJECTS_H.
+
+ * src/base/ftstroke.c (FT_Outline_GetInsideBorder,
+ FT_Outline_GetOutsideBorder): s/or/o/ to make it compile with
+ C++ compilers.
+
+ * src/cache/ftcmru.c, include/freetype/cache/ftcmru.h:
+ s/select/selection/ to avoid compiler warning.
+ * src/cff/cffload.h: s/select/ftselect/ to avoid potential
+ compiler warning.
+
+2003-12-24 Werner Lemberg <wl@gnu.org>
+
+ * src/cache/ftcsbits.c (FTC_SNode_Weight):
+ s/FTC_SBIT_ITEM_PER_NODE/FTC_SBIT_ITEMS_PER_NODE/.
+
+2003-12-24 David Turner <david@freetype.org>
+
+ * Fixed compilation problems in the cache sub-system.
+
+ * Partial updates to src/autofit.
+
+ * Jamfile (FT2_COMPONENTS): Add autofit module.
+
+2003-12-23 Werner Lemberg <wl@gnu.org>
+
+ * src/cff/cffgload.c (cff_lookup_glyph_by_stdcharcode): Handle
+ CID-keyed fonts.
+
+2003-12-23 David Turner <david@freetype.org>
+
+ * include/freetype/internal/ftobjs.h (FT_PAD_FLOOR, FT_PAD_ROUND,
+ FT_PAD_CEIL, FT_PIX_FLOOR, FT_PIX_ROUND, FT_PIX_CEIL): New macros.
+ They are used to avoid compiler warnings with very pedantic compilers.
+ Note that `(x) & -64' causes a warning if (x) is not signed. Use
+ `(x) & ~63' instead!
+ Updated all related code.
+
+ Add support for extraction of `inside' and `outside' borders.
+
+ * src/base/ftstroke.c (FT_StrokerBorder): New enumeration.
+ (FT_Outline_GetInsideBorder, FT_Outline_GetOutsideBorder,
+ FT_Stroker_GetBorderCounts, FT_Stroker_ExportBorder): New functions.
+ (FT_StrokeBorderRec): New boolean member `valid'.
+ (ft_stroke_border_get_counts): Updated.
+ * include/freetype/ftstroke.h: Updated.
+
+2003-12-22 Werner Lemberg <wl@gnu.org>
+
+ * include/freetype/ftwinfnt.h (FT_WinFNT_ID_*): New definitions
+ to describe the `charset' field in FT_WinFNT_HeaderRec.
+ * src/winfonts/winfnt.c (FNT_Face_Init): Set encoding to
+ FT_ENCODING_NONE except for FT_WinFNT_ID_MAC.
+
+ * include/freetype/freetype.h (FT_Encoding): Improve comment,
+ based on work by Detlef Würkner <TetiSoft@apg.lahn.de>.
+
+ * docs/CHANGES: Updated.
+
+2003-12-22 David Turner <david@freetype.org>
+
+ * include/freetype/ftcache.h,
+ include/freetype/cache/ftcmanag.h,
+ include/freetype/cache/ftccache.h,
+ include/freetype/cache/ftcmanag.h,
+ include/freetype/cache/ftcmru.h (added),
+ include/freetype/cache/ftlru.h (removed),
+ include/freetype/cache/ftcsbits.h,
+ include/freetype/cache/ftcimage.h,
+ include/freetype/cache/ftcglyph.h,
+ src/cache/ftcmru.c,
+ src/cache/ftcmanag.c,
+ src/cache/ftccache.c,
+ src/cache/ftcglyph.c,
+ src/cache/ftcimage.c,
+ src/cache/ftcsbits.c,
+ src/cache/ftccmap.c,
+ src/cache/ftcbasic.c (added),
+ src/cache/ftlru.c (removed):
+
+ *Complete* rewrite of the cache sub-system to `solve' the
+ following points:
+
+ - all public APIs have been moved to FT_CACHE_H, everything
+ under `include/freetype/cache' is only needed by client
+ applications that want to implement their own caches
+
+ - a new function named FTC_Manager_RemoveFaceID to deal
+ with the uninstallation of FaceIDs
+
+ - the image and sbit cache are now abstract classes, that
+ can be extended much more easily by client applications
+
+ - better performance in certain areas. Further optimizations
+ to come shortly anyway...
+
+ - the FTC_CMapCache_Lookup function has changed its signature,
+ charmaps can now only be retrieved by index
+
+ - FTC_Manager_Lookup_Face => FTC_Manager_LookupFace
+ FTC_Manager_Lookup_Size => FTC_Manager_LookupSize (still in
+ private header for the moment)
+
+2003-12-21 Werner Lemberg <wl@gnu.org>
+
+ * src/type1/t1load.c (parse_dict): Stop parsing if `eexec' keyword
+ is encountered.
+
+2003-12-19 Werner Lemberg <wl@gnu.org>
+
+ * src/cff/cfftypes.h (CFF_MAX_CID_FONTS): Increase to 32. For
+ example, the Japanese Hiragino font already contains 15 subfonts.
+
+ * src/cff/cffload.c (cff_font_load): Deallocate `sids' array for
+ CID-keyed fonts.
+
+ * devel/ftoption.h: Define FT_DEBUG_MEMORY.
+
+2003-12-18 Werner Lemberg <wl@gnu.org>
+
+ * include/freetype/ttnameid.h (TT_ADOBE_ID_LATIN_1): New macro.
+ * src/type1/t1objs.c (T1_Face_Init): Use TT_ADOBE_ID* values.
+
+2003-12-18 Werner Lemberg <wl@gnu.org>
+
+ * src/cff/cfftypes.h (CFF_FontRecDictRec): Change type of
+ `cid_count' to `FT_ULong'.
+
+ * src/cff/cffgload.c (cff_slot_load): Take care of empty `cids'
+ array.
+
+ * src/cff/cffload.c (cff_charset_done): Free `cids' array.
+ (cff_font_load): Create cids array only for CID-keyed fonts which
+ are subsetted.
+
+ * src/cff/cffobjs.c (cff_face_init): Check the availability of
+ the PSNames modules for non-pure CFFs also.
+ Set FT_FACE_FLAG_GLYPH_NAMES for a non-pure CFF also if it isn't
+ CID-keyed.
+
+ * src/cff/rules.mk (CFF_DRV_H): Add cfftypes.h.
+
+2003-12-17 Werner Lemberg <wl@gnu.org>
+
+ * src/sfnt/sfobjs.c (sfnt_init_face): Don't set
+ FT_FACE_FLAG_GLYPH_NAMES if the font contains a version 3.0 `post'
+ table.
+
+ * docs/CHANGES: Updated.
+
+2003-12-17 Masatake YAMATO <jet@gyve.org>
+
+ Add new function FT_Get_CMap_Language_ID to extract the language ID
+ for TrueType/sfnt fonts.
+
+ * include/freetype/internal/services/svttcmap.h: New file.
+ * include/freetype/internal/ftserv.h (FT_SERVICE_TT_CMAP_H): Add
+ svttcmap.h.
+
+ * src/sfnt/sfdriver.c: Include ttcmap0.h.
+ (tt_service_get_cmap_info): New service.
+ (sfnt_services): Updated.
+
+ * src/sfnt/ttcmap0.c (tt_cmap*_get_info): New functions.
+ (tt_cmap*_class_rec): Add tt_cmap*_get_info members.
+ (tt_get_cmap_info): New function.
+ * src/sfnt/ttcmap0.h: Include FT_SERVICE_TT_CMAP_H.
+ (TT_CMap_ClassRec): New field `get_cmap_info'.
+ (tt_get_cmap_info): New declaration.
+
+ * src/base/ftobjs.c: Include FT_SERVICE_TT_CMAP_H.
+ (FT_Get_CMap_Language_ID): New function implementation.
+ * include/freetype/tttables.h (FT_Get_CMap_Language_ID): New
+ function declaration.
+
+2003-12-16 Werner Lemberg <wl@gnu.org>
+
+ * src/sfnt/ttcmap.c, src/sfnt/ttcmap.h: Removed. Obsolete.
+
+ * include/freetype/internal/sfnt.h (SFNT_Interface): Remove
+ obsolete fields `load_charmap' and `free_charmap'.
+ (TT_CharMap_Load_Func, TT_CharMap_Free_Func): Removed.
+ * src/sfnt/sfnt.c: Don't include ttcmap.c.
+ * src/sfnt/rules.mk (SFNT_DRV_SRC): Don't include ttcmap.c.
+ * src/sfnt/ttload.c: Don't include ttcmap.h.
+ * src/sfnt/sfdriver.c: Don't include ttcmap.h.
+ (sfnt_interface): Updated.
+
+ * include/freetype/internal/tttypes.h (TT_TableDirRec,
+ TT_CMapDirRec, TT_CMapDirEntryRec, TT_CMap0, TT_CMap2SubHeaderRec,
+ TT_CMap2Rec, TT_CMap4Segment, TT_CMap4Rec, TT_CMap6,
+ TT_CMapGroupRec, TT_CMap8_12Rec, TT_CMap10Rec, TT_CharMap_Func,
+ TT_CharNext_Func, TT_CMapTableRec, TT_CharMapRec): Removed.
+ Obsolete.
+ * src/cff/cffobjs.h (CFF_CharMapRec): Removed. Obsolete.
+
+2003-12-15 Werner Lemberg <wl@gnu.org>
+
+ * docs/CHANGES: Updated.
+
+2003-12-15 Wolfgang Domröse <porthos.domroese@harz.de>
+
+ * builds/atari/*: New directory for building FreeType 2 on Atari
+ with the PureC compiler.
+
+2003-12-12 Wolfgang Domröse <porthos.domroese@harz.de>
+
+ * src/type1/t1gload.c (T1_Parse_Glyph_And_Get_Char_String): Add
+ cast.
+ * src/cff/cffdrivr.c (cff_ps_has_glyph_names): Assure that return
+ value is either 0 or 1.
+
+2003-12-12 Werner Lemberg <wl@gnu.org>
+
+ * src/cff/cffdrivr.c (cff_get_glyph_name): Improve error message.
+ (cff_get_name_index): Return if no PSNames service is available.
+ (cff_ps_has_glyph_names): Handle CID-keyed fonts correctly.
+ * src/cff/cfftypes.h (CFF_CharsetRec): New field `cids', used for
+ CID-keyed fonts. This is the inverse mapping of `sids'.
+ * src/cff/cffload.c (cff_charset_load): New argument `invert'.
+ Initialize charset->cids if `invert' is set.
+ (cff_font_load): In call to cff_charset_load, set `invert' to true
+ for CID-keyed fonts.
+ * src/cff/cffgload.c (cff_slot_load): Handle glyph index as CID
+ and map it to the real glyph index.
+
+ * docs/CHANGES: Updated.
+
+2003-12-11 Werner Lemberg <wl@gnu.org>
+
+ * src/cff/cffobjs.c (cff_face_init): Don't set
+ FT_FACE_FLAG_GLYPH_NAMES for CID-keyed fonts.
+ Don't construct a cmap for CID-keyed fonts.
+
+2003-12-10 Werner Lemberg <wl@gnu.org>
+
+ Use implementation specific SID value 0xFFFF to indicate that
+ a dictionary element is missing.
+
+ * src/cff/cffload.c (cff_subfont_load): Initialize all fields
+ which hold SIDs to 0xFFFF.
+ (cff_index_get_sid_string): Handle SID value 0xFFFF.
+ Handle case where `psnames' is zero.
+ (cff_font_load): Updated.
+ Don't load encoding for CID-keyed CFFs.
+
+ * src/cff/cffobjs.c (cff_face_init): Updated.
+ Don't check for PSNames module if font is CID-keyed.
+ Compute style name properly (using the same algorithm as in the
+ CID driver).
+ Fix computation of style flags.
+
+ * src/cff/cfftoken.h: Comment out handling of base_font_name.
+ Rename `postscript' field to `embedded_postscript'
+ * src/cff/cfftypes.h (CFF_FontRecDictRec): Remove `base_font_name'
+ and `postscript'.
+
+2003-12-10 Detlef Würkner <TetiSoft@apg.lahn.de>
+
+ * src/pcf/pcfdrivr.c (pcf_get_charset_id): New function (a clone
+ of the similar BDF function).
+ (pcf_service_bdf): Use it.
+
+2003-12-09 Werner Lemberg <wl@gnu.org>
+
+ * src/sfnt/sfobjs.c (sfnt_load_face): Set FT_FACE_FLAG_GLYPH_NAMES
+ only if a `post' table is present.
+
+2003-12-09 George Williams <gww@silcom.com>
+
+ * src/base/ftobjs.c (load_mac_face): Recent versions of Linux
+ support Mac's HFS+ file system, thus enable code to read /rsrc on
+ non-Macintosh platforms also.
+
+2003-12-08 Werner Lemberg <wl@gnu.org>
+
+ * include/freetype/internal/psaux.h (PS_TableRec): Change type
+ of `lengths' to FT_PtrDist.
+ (T1_DecoderRec): Change type of `subrs_len' to FT_PtrDist.
+ * include/freetype/internal/t1types.h (T1_FontRec): Change type
+ of `subrs_len' and `charstrings_len' to FT_PtrDist.
+
+ * src/base/ftobjs.c (Mac_Read_POST_Resource): Replace `junk'
+ variable with better solution.
+ (IsMacResource): Remove unused variable `map_len'.
+ Replace `junk' variable with better solution.
+ (FT_Open_Face) [!FT_MACINTOSH]: Add conditional
+ FT_CONFIG_OPTION_MAC_FONTS.
+
+2003-12-08 Wolfgang Domröse <porthos.domroese@harz.de>
+
+ * src/autohint/ahhint.c (ah_hinter_hint_edges,
+ ah_hinter_align_strong_points): Add some casts.
+
+ * src/base/ftoutln.c (FT_OrientationExtremumRec): Change type
+ of `pos' to FT_Long.
+
+ * src/base/ftobjs.c (Mac_Read_POST_Resource,
+ Mac_Read_sfnt_Resource): Change type of `len' to FT_Long.
+
+ * src/type42/t42parse.c (t42_parse_dict): Add cast for `n_keywords'.
+
+2003-12-07 Werner Lemberg <wl@gnu.org>
+
+ * docs/raster.txt: New file, taken from FreeType 1 and completely
+ revised.
+
+2003-12-04 Masatake YAMATO <jet@gyve.org>
+
+ * src/type1/t1driver.c (Get_Interface): Remove FT_UNUSED for
+ t1_interface. t1_interface is used.
+
+2003-11-27 David Turner <david@freetype.org>
+
+ * src/pfr/pfrdrivr.c (pfr_get_metrics): Revert incorrect change of
+ 2003-11-23: For PFR fonts, metrics->x_scale and metrics->y_scale are
+ the scaling values for outline units, not for metric units.
+
+2003-11-25 Werner Lemberg <wl@gnu.org>
+
+ * src/base/ftcalc.c, include/freetype/internal/ftcalc.h
+ (FT_MulDiv_No_Round): Surround code with `#ifdef
+ TT_CONFIG_OPTION_BYTECODE_INTERPRETER ... #endif'.
+
+2003-11-23 Werner Lemberg <wl@gnu.org>
+
+ * src/base/ftcalc.c (FT_MulDiv_No_Round): New function (32 and
+ 64 bit version).
+ * include/freetype/internal/ftcalc.h: Updated.
+
+ * src/truetype/ttinterp.c (TT_MULDIV_NO_ROUND): New macro.
+ (TT_INT64): Removed.
+ (DO_DIV): Use TT_MULDIV_NO_ROUND.
+
+ * src/pfr/pfrdrivr.c (pfr_get_metrics): Directly use
+ metrics->x_scale and metrics->y_scale.
+
+2003-11-22 Rogier van Dalen <R.C.van.Dalen@umail.leidenuniv.nl>
+
+ * src/truetype/ttinterp.c (CUR_Func_move_orig): New macro.
+ (Direct_Move_Orig, Direct_Move_Orig_X, Direct_Move_Orig_Y): New
+ functions. Similar to Direct_Move, Direct_Move_X, and
+ Direct_Move_Y but without touching.
+ (Compute_Funcs): Use new functions.
+
+ (Round_None, Round_To_Grid, Round_To_Half_Grid, Round_Down_To_Grid,
+ Round_Up_To_Grid, Round_To_Double_Grid, Round_Super,
+ Round_Super_45): Fix rounding of value zero.
+
+ (DO_DIV): Don't use TT_MULDIV.
+
+ (Ins_SHC): This instruction actually touches the points.
+ (Ins_MSIRP): Fix undocumented behaviour.
+
+ * src/truetype/ttinterp.h (TT_ExecContextRec): Updated.
+
+2003-11-22 Werner Lemberg <wl@gnu.org>
+
+ * docs/VERSION.DLL, docs/CHANGES: Updated.
+
+ * src/base/ftobjs.c (FT_Set_Char_Size): Make metrics->x_scale and
+ metrics->y_scale really precise.
+
+ (FT_Load_Glyph): Update computation of linearHoriAdvance and
+ linearVertAdvance.
+
+ * src/truetype/ttinterp.c (Update_Max): Use FT_REALLOC.
+
+2003-11-22 David Turner <david@freetype.org>
+
+ * src/autofit/*: More updates.
+
+ * include/freetype/freetype.h (FREETYPE_PATCH): Set to 8.
+ * builds/unix/configure.ac (version_info): Set to 9:6:3.
+ * README: Updated.
+
+2003-11-13 John A. Boyd Jr. <jaboydjr@netwalk.com>
+
+ * src/bdf/bdfdrivr.c (bdf_interpret_style), src/pcf/pcfread.c
+ (pcf_interpret_style): Replace spaces with dashes in properties
+ SETWIDTH_NAME and ADD_STYLE_NAME to simplify parsing.
+
+2003-11-11 Werner Lemberg <wl@gnu.org>
+
+ * docs/CHANGES: Updated.
+
+2003-11-11 John A. Boyd Jr. <jaboydjr@netwalk.com>
+
+ Handle SETWIDTH_NAME and ADD_STYLE_NAME properties for BDF and PCF
+ fonts.
+
+ * src/bdf/bdfdrivr.c (bdf_interpret_style): New auxiliary function.
+ (BDF_Face_Init): Don't handle style properties but call
+ bdf_interpret_style.
+
+ * src/pcf/pcfread.c (pcf_interpret_style): New auxiliary function.
+ (pcf_load_font): Don't handle style properties but call
+ pcf_interpret_style.
+
+2003-11-07 Werner Lemberg <wl@gnu.org>
+
+
+ * Version 2.1.7 released.
+ =========================
+
+
+ * include/freetype/freetype.h (FREETYPE_PATCH): Set to 7.
+
+ * builds/unix/ft2unix.h: Fix comments.
+
+ * builds/unix/ftconfig.in: Synchronized with ANSI version.
+ Use `#undef' in templates as recommended in the autoconf
+ documentation.
+ Since real `#undef' lines don't survive during configuration, use
+ `/undef' instead; the postprocessing facility of the
+ AC_CONFIG_HEADERS autoconf macro converts them to `#undef'.
+
+ * builds/unix/install.mk (install): Install Unix version of
+ `ftconfig.h'.
+
+ * builds/unix/unix-cc.in (CFLAGS): Set FT_CONFIG_CONFIG_H macro
+ to include the correct `ftconfig.h' file.
+
+ * builds/unix/ft-munmap.m4 (FT_MUNMAP_DECL): Removed.
+ (FT_MUNMAP_PARAM): Updated syntax to autoconf 2.59.
+
+ * builds/unix/freetype2.m4: Updated syntax to autoconf 2.59.
+
+ * builds/unix/configure.ac: Use AC_CONFIG_HEADERS instead of
+ AC_CONFIG_HEADER to create ftconfig.h, and use second argument
+ to replace `/undef' with `#undef'.
+ Don't use FT_MUNMAP_DECL but AC_CHECK_DECLS to check for munmap.
+ Use AS_HELP_STRING in AC_ARG_WITH.
+ Update syntax to autoconf 2.59.
+
+ * builds/unix/ltmain.sh: Regenerated with `libtoolize --force
+ --copy' from libtool 1.5.
+ * builds/unix/aclocal.m4: Regenerated with `aclocal -I .' from
+ automake 1.7.8.
+ * builds/unix/configure: Regenerated with autoconf 2.59.
+ * builds/unix/config.guess, builds/unix/config.sub: Updated from
+ `config' CVS module at subversions.gnu.org
+ * builds/unix/install-sh, builds/unix/mkinstalldirs: Updated from
+ `texinfo' CVS module at subversions.gnu.org.
+
+ * builds/vms/ftconfig.h: Synchronized with ANSI version.
+
+ * docs/CUSTOMIZE: Fix documentation error.
+ * docs/CHANGES, docs/VERSION.DLL, docs/release: Updated.
+
+ * builds/freetype.mk (refdoc): Updated --title.
+
+2003-11-07 David Turner <david@freetype.org>
+
+
+ * Version 2.1.6 released.
+ =========================
+
+
+ * install: Removed. Obsolete.
+
+2003-11-04 Werner Lemberg <wl@gnu.org>
+
+ * src/sfnt/sfdriver.c: Include FT_SERVICE_SFNT_H.
+ (sfnt_service_sfnt_table): New service.
+ (sfnt_services): Updated.
+
+ * docs/license.txt: Reworded.
+
+2003-11-03 Werner Lemberg <wl@gnu.org>
+
+ * include/freetype/*: Add a guard to all public header files which
+ load FT_FREETYPE_H to reject freetype.h from FreeType 1.
+
+2003-11-02 Patrick Welche <prlw1@newn.cam.ac.uk>
+
+ * builds/unix/freetype2.m4, builds/unix/ft-munmap.m4: Protect
+ first argument of AC_DEFUN with brackets to avoid possible
+ expansion.
+
+2003-11-02 Werner Lemberg <wl@gnu.org>
+
+ * include/freetype/cache/ftcglyph.h: Don't include stddef.h.
+
+ * include/freetype/freetype.h: Fix check for ft2build.h.
+
+2003-11-01 Werner Lemberg <wl@gnu.org>
+
+ * include/freetype/freetype.h: Check that ft2build.h has been
+ loaded first.
+
+ * src/base/fttype1.c (FT_Get_PS_Font_Info): Fix incorrectly applied
+ patch.
+
+2003-10-31 Detlef Würkner <TetiSoft@apg.lahn.de>
+
+ * src/base/fttype1.c (FT_Get_PS_Font_Info, FT_Has_PS_Glyph_Names):
+ Fix parameter order in calls to FT_FACE_FIND_SERVICE.
+
+2003-10-31 Werner Lemberg <wl@gnu.org>
+
+ * include/freetype/internal/ftserv.h
+ (FT_SERVICE_POSTSCRIPT_NAMES_H): Removed. Unused.
+
+ * src/type42/t42drivr.c (t42_services): Updated.
+
+2003-10-29 David Turner <david@freetype.org>
+
+ * include/freetype/internal/bdftypes.h: Removed. Obsolete.
+ * src/base/ftbdf.c: Updated.
+
+ * include/freetype/internal/cfftypes.h: Moved to...
+ * src/cff/cfftypes.h: This place since no other module needs to
+ know about those types.
+
+ * include/freetype/internal/t42types.h: Moved to...
+ * src/type42/t42types.h: This place since no other module needs to
+ know about those types.
+
+ * include/freetype/internal/services/svbdf.h: Include FT_BDF_H.
+
+ * include/freetype/internal/services/svpsname.h: Renamed to...
+ * include/freetype/internal/services/svpscmap.h: This.
+ Updated `FT_Service_PsNames' -> `FT_Service_PsCMaps' and
+ `POSTSCRIPT_NAMES' -> `POSTSCRIPT_CMAPS' everywhere.
+
+ * include/freetype/internal/services/svpsinfo.h: New file, providing
+ PostScript info service.
+
+ * include/freetype/internal/ftserv.h (FT_SERVICE_POSTSCRIPT_CMAPS_H,
+ FT_SERVICE_POSTSCRIPT_INFO_H): New macros for svpscmap.h and
+ svpsinfo.h.
+ * include/freetype/internal/internal.h (FT_INTERNAL_TYPE42_TYPES_H,
+ FT_INTERNAL_CFF_TYPES_H, FT_INTERNAL_BDF_TYPES_H): Removed.
+
+ * src/base/fttype1.c: Don't include FT_INTERNAL_TYPE1_TYPES_H and
+ FT_INTERNAL_TYPE42_TYPES_H but FT_INTERNAL_SERVICE_H and
+ FT_SERVICE_POSTSCRIPT_INFO_H.
+ (FT_Get_PS_Font_Info, FT_Has_PS_Glyph_Names): Use new
+ POSTSCRIPT_INFO service.
+
+ * src/cff/cffdrivr.c: Include FT_SERVICE_POSTSCRIPT_INFO_H.
+ (cff_ps_has_glyph_names): New function.
+ (cff_service_ps_info): New service.
+ (cff_services): Updated.
+
+ * src/cff/cffload.h, src/cff/cffobjs.h, src/cff/cffparse.h: Don't
+ include FT_INTERNAL_CFF_TYPES_H but cfftypes.h directly.
+
+ * src/cid/cidriver.c: Include FT_SERVICE_POSTSCRIPT_INFO_H.
+ (cid_ps_get_font_info): New function.
+ (cid_service_ps_info): New service.
+ (cid_services): Updated.
+
+ * src/type1/t1driver.c: Include FT_SERVICE_POSTSCRIPT_INFO_H.
+ (t1_ps_get_font_info, t1_ps_has_glyph_names): New functions.
+ (t1_service_ps_info): New service.
+ (t1_services): Updated.
+
+ * src/type42/t42drivr.c: Include FT_SERVICE_POSTSCRIPT_INFO_H.
+ (t42_ps_get_font_info, t42_ps_has_glyph_names): New functions.
+ (t42_service_ps_info): New service.
+
+ * src/type42/t42objs.h: Don't include FT_INTERNAL_TYPE42_TYPES_H
+ but t42types.h directly.
+
+ * src/psnames/psmodule.c (psnames_interface, psnames_services):
+ Renamed to...
+ (pscmaps_interface, pscmaps_services): This.
+ Updated all users.
+
+
+ * src/gzip/infblock.c (inflate_blocks): Remove compiler warning.
+
+2003-10-22 Werner Lemberg <wl@gnu.org>
+
+ * src/type1/t1load.c (parse_encoding): Handle `/Encoding [ ... ]'.
+
+ * src/type1/t1parse.c (T1_Get_Private_Dict): Test whether `eexec'
+ is real.
+
+ * src/type42/t42parse.c (t42_parse_encoding): Improve boundary
+ checking while parsing.
+
+ * docs/CHANGES: Updated.
+
+2003-10-21 Josselin Mouette <joss@debian.org>
+
+ * include/freetype/internal/t1types.h (T1_FontRec): `paint_type'
+ and `stroke_width' aren't pointers.
+
+ * src/type42/t42objs.c (T42_Face_Done), src/type1/t1objs.c
+ (T1_Face_Done): Don't free `paint_type' and `stroke_width'.
+
+2003-10-20 Graham Asher <graham.asher@btinternet.com>
+
+ * src/winfonts/winfnt.c (fnt_cmap_class): Fix position of `const'.
+
+2003-10-19 Werner Lemberg <wl@gnu.org>
+
+ * src/autohint/ahhint.c (ah_hinter_load_glyph): Patch from
+ 2003-08-18 introduced a severe bug (FT_Render_Glyph was called
+ twice under some circumstances, causing strange results). This
+ is fixed now by clearing the FT_LOAD_RENDER bit of `load_flags'.
+
+ * src/base/ftpfr.c (FT_Get_PFR_Metrics): Initialize `error'.
+ * src/psaux/psobjs.c (ps_tobytes): Initialize `n'.
+ * src/type42/t42parse.c (t42_parse_sfnts): Initialize `string_size'.
+
+2003-10-16 Werner Lemberg <wl@gnu.org>
+
+ Completely revised Type 42 parser. It now handles both fonts
+ produced with ttftot42 (tested version 0.3.1) and
+ TrueTypeToType42.ps (tested version May 2001; it is necessary to
+ fix the broken header comment to be `%!PS-TrueTypeFont...').
+
+ * src/type42/t42objs.c (T42_GlyphSlot_Load): Change fourth
+ parameter to `FT_UInt'.
+ * src/type42/t42objs.h: Updated.
+
+ * src/type42/t42parse.h (T42_ParserRec): Change type of `in_memory'
+ to FT_Bool.
+ (T42_Loader): Change type of `num_chars' and `num_glyphs' to
+ FT_UInt.
+ Add `swap_table' element.
+ * src/type42/t42parse.c (T42_KEYWORD_COUNT, T1_ToFixed,
+ T1_ToCoordArray, T1_ToTokenArray): Removed.
+ (T1_ToBytes): New macro.
+ (t42_is_alpha, t42_hexval): Removed.
+ (t42_is_space): Handle `\0'.
+ (t42_parse_encoding): Updated to use new PostScript parser routines
+ from psaux.
+ Handle `/Encoding [ ... ]' also.
+ (T42_Load_Status): New enumeration.
+ (t42_parse_sfnts): Updated to use new PostScript parser routines
+ from psaux.
+ (t42_parse_charstrings): Updated to use new PostScript parser
+ routines from psaux.
+ Handle `/CharStrings << ... >>' also.
+ Don't expect that /.notdef is the first element in dictionary. Copy
+ code from type1 module to handle this.
+ (t42_parse_dict): Updated to use new PostScript parser routines
+ from psaux.
+ Remove code for synthetic fonts (which can't occur in Type 42
+ fonts).
+ (t42_loader_done): Release `swap_table'.
+
+ * src/psaux/psobjs.c (skip_string): Increase `cur' properly.
+
+ * src/type1/t1load.c (parse_charstrings): Make test for `.notdef'
+ faster.
+
+2003-10-15 Graham Asher <graham.asher@btinternet.com>
+
+ * src/autohint/ahglobal.c (blue_chars), src/winfonts/winfnt.c
+ (fnt_cmap_class_rec, fnt_cmap_class), src/bdf/bdflib.c (empty,
+ _num_bdf_properties), src/gzip/infutil.c (inflate_mask),
+ src/gzip/inffixed.h (fixed_bl, fixed_bd, fixed_tl, fixed_td),
+ src/gzip/inftrees.h (inflate_trees_fixed), src/gzip/inftrees.c
+ (inflate_trees_fixed): Decorate with more `const' to avoid
+ writable global variables which are disallowed on ARM.
+
+2003-10-08 Werner Lemberg <wl@gnu.org>
+
+ * src/type1/t1load.c (parse_font_matrix, parse_charstrings): Remove
+ code specially for synthetic fonts; this is handled elsewhere.
+ (parse_encoding): Remove code specially for synthetic fonts; this is
+ handled elsewhere.
+ Improve boundary checking while parsing.
+ (parse_dict): Improve boundary checking while parsing.
+ Use ft_memcmp to simplify code.
+
+2003-10-07 Werner Lemberg <wl@gnu.org>
+
+ * src/type1/t1load.c (parse_subrs, parse_dict): Handle synthetic
+ fonts properly.
+ (parse_charstrings): Copy correct number of characters into
+ `name_table'.
+
+2003-10-06 Werner Lemberg <wl@gnu.org>
+
+ Heavy modification of the PS parser to handle comments and strings
+ correctly. This doesn't slow down the loading of PS fonts
+ significantly since charstrings aren't affected.
+
+ * include/freetype/config/ftstdlib.h (ft_xdigit): Renamed to...
+ (ft_isxdigit): This. Updated all callers.
+ (ft_isdigit): New alias to `isdigit'.
+
+ * include/freetype/internal/psaux.h (PS_Parser_FuncsRec): Renamed
+ `skip_alpha' to `skip_PS_token'.
+ Add parameter to `to_bytes' and change some argument types.
+
+ * src/psaux/psauxmod.c (ps_parser_funcs): Updated.
+ * src/psaux/psobjs.c (ft_char_table): New array to map character
+ codes (ASCII and EBCDIC) of digits to numbers.
+ (OP): New auxiliary macro holding either `>=' or `<' depending on
+ the character encoding.
+ (skip_comment): New function.
+ (skip_spaces): Use it.
+ (skip_alpha): Removed.
+ (skip_literal_string, skip_string): New functions.
+ (ps_parser_skip_PS_token): New function. This is a better
+ replacement of...
+ (ps_parser_skip_alpha): Removed.
+ (ps_parser_to_token, ps_parser_to_token_array): Updated.
+ (T1Radix): Rewritten, using `ft_char_table'.
+ (t1_toint): Renamed to...
+ (ps_toint): This. Update all callers.
+ Use `ft_char_table'.
+ (ps_tobytes): Add parameter to handle delimiters and change some
+ argument types.
+ Use `ft_char_table'.
+ (t1_tofixed): Renamed to...
+ (ps_tofixed): This. Update all callers.
+ Use `ft_char_table'.
+ (t1_tocoordarray): Renamed and updated to...
+ (ps_tocoordarray): This. Update all callers.
+ (t1_tofixedarray): Renamed and updated to...
+ (ps_tofixedarray): This. Update all callers.
+ (t1_tobool): Renamed to...
+ (ps_tobool): This. Update all callers.
+ (ps_parser_load_field): Updated.
+ (ps_parser_load_field_table): Use `T1_MAX_TABLE_ELEMENTS'
+ everywhere.
+ (ps_parser_to_int, ps_parser_to_fixed, ps_parser_to_coord_array,
+ ps_parser_to_fixed_array): Skip spaces. Updated.
+ (ps_parser_to_bytes): Add parameter to handle delimiters and change
+ some argument types. Updated.
+ * src/psaux/psobjs.h: Updated.
+
+ * src/cid/cidload.c (cid_parse_dict): Updated.
+ * src/cid/cidparse.c (cid_parser_new): Check whether the `StartData'
+ token was really found.
+ * src/cid/cidparse.h (cid_parser_skip_alpha): Updated and renamed
+ to...
+ (cid_parser_skip_PS_token): This.
+
+ * src/type1/t1parse.h (T1_ParserRec): Use `FT_Bool' for boolean
+ fields.
+ (T1_Skip_Alpha): Replaced with...
+ (T1_Skip_PS_Token): This new macro.
+ * src/type1/t1parse.c (hexa_value): Removed.
+ (T1_Get_Private_Dict): Use `ft_isxdigit' and
+ `psaux->ps_parser_funcs_to_bytes' for handling ASCII hexadecimal
+ encoding.
+ After decrypting, replace the four random bytes at the beginning
+ with whitespace.
+ * src/type1/t1load.c (t1_allocate_blend): Use proper error values.
+ (parser_blend_design_positions, parse_blend_design_map,
+ parse_weight_vector): Updated.
+ (is_space): Handle `\f' also.
+ (is_name_char): Removed.
+ (read_binary_data): Updated.
+ (parse_encoding): Use `ft_isdigit'.
+ Updated.
+ (parse_subrs): Updated.
+ (TABLE_EXTEND): New macro.
+ (parse_charstrings): Updated.
+ Provide a workaround for buggy fonts which have more entries in the
+ /CharStrings dictionary then expected; the function now adds some
+ slots and skips entries which still exceed the new limit.
+ (parse_dict): Updated.
+ Terminate on the token `closefile'.
+
+ * src/type42/t42parse.c (T1_Skip_Alpha): Replaced with...
+ (T1_Skip_PS_Token): This new macro. Updated all callers.
+ (t42_parse_encoding): Use `ft_isdigit'.
+
+
+ * src/base/ftmm.c (ft_face_get_mm_service): Return FT_Err_Ok if
+ success.
+
+2003-10-05 Werner Lemberg <wl@gnu.org>
+
+ * include/freetype/ftmodule.h: Renamed to...
+ * include/freetype/ftmodapi.h: This to avoid duplicate file names.
+ * include/freetype/config/ftheader.h (FT_MODULE_H): Updated.
+
+2003-10-04 Werner Lemberg <wl@gnu.org>
+
+ * src/base/ftoutln.c (FT_OrientationExtremumRec,
+ FT_Outline_Get_Orientation): Trivial typo fixes to make it compile.
+
+2003-10-02 Markus F.X.J. Oberhumer <markus@oberhumer.com>
+
+ * src/winfonts/winfnt.c (FT_WinFNT_HeaderRec): `color_table_offset'
+ has four bytes, not two.
+ Fix all users.
+ (fnt_font_load, FNT_Load_Glyph): Add more font validity tests.
+
+2003-10-01 David Turner <david@freetype.org>
+
+ * src/autofit/*: Adding first source files of the new multi-script
+ `auto-fitter'.
+
+ * include/freetype/ftoutln.h (FT_Orientation): New enumeration.
+ (FT_Outline_Get_Orientation): New declaration.
+
+ * src/base/ftoutln.c (FT_OrientationExtremumRec): New structure.
+ (ft_orientation_extremum_compute): New auxiliary function.
+ (FT_Outline_Get_Orientation): New function to compute the fill
+ orientation of a given glyph outline.
+
+ * include/freetype/internal/ftserv.h (FT_FACE_LOOKUP_SERVICE): Fixed
+ trivial bug which could crash the font engine when a cached service
+ pointer was retrieved.
+
+2003-09-30 Werner Lemberg <wl@gnu.org>
+
+ * src/cid/cidload.c (cid_parse_dict): Skip token if no keyword is
+ found.
+
+ * src/type1/t1parse.c (IS_T1_WHITESPACE, IS_T1_LINESPACE,
+ IS_T1_SPACE): Removed.
+ (PFB_Tag): Removed.
+ (read_pfb_tag): Don't use PFB_Tag.
+
+ * src/type42/t42parse.c (t42_is_space): Handle `\f' also.
+ (t42_parse_encoding): Handle synthetic fonts.
+
+2003-09-29 Werner Lemberg <wl@gnu.org>
+
+ * include/freetype/internal/t1types.h: Don't include
+ FT_INTERNAL_OBJECTS_H but FT_INTERNAL_SERVICE_H.
+ * src/truetype/ttobjs.c: Don't include
+ FT_SERVICE_POSTSCRIPT_NAMES_H.
+
+2003-09-29 David Turner <david@freetype.org>
+
+ Added new service to handle glyph name dictionaries, replacing the
+ old internal header named `psnames.h' by `services/svpsname.h'.
+ Note that this is different from `services/svpostnm.h' which only
+ handles the retrieval of PostScript font names for a given face.
+ (Should we merge these two services into a single header?)
+
+ * include/freetype/internal/psnames.h: Removed. Most of its
+ contents is moved to...
+ * include/freetype/internal/services/svpsname.h: New file.
+
+ * include/freetype/internal/services/svpostnm.h
+ (FT_SERVICE_ID_POSTSCRIPT_NAME): Replaced with...
+ (FT_SERVICE_ID_POSTSCRIPT_FONT_NAME): New macro.
+ (PsName): Service named changed to...
+ (PsFontName): This.
+ Updated `FT_Service_PsName' -> `FT_Service_PsFontName' and
+ `POSTSCRIPT_NAME' -> `POSTSCRIPT_FONT_NAME' everywhere.
+
+ * include/freetype/internal/internal.h
+ (FT_INTERNAL_POSTSCRIPT_NAMES_H): Removed.
+ * include/freetype/internal/psaux.h: Include
+ FT_SERVICE_POSTSCRIPT_NAMES_H.
+ (T1_DecoderRec): Updated type of `psnames'.
+ * include/freetype/internal/t1types.h: Don't include
+ FT_INTERNAL_POSTSCRIPT_NAMES_H but FT_SERVICE_POSTSCRIPT_NAMES_H.
+ Include FT_INTERNAL_OBJECTS_H.
+ * include/freetype/internal/t42types.h: Don't include
+ FT_INTERNAL_POSTSCRIPT_NAMES_H.
+ * include/freetype/internal/tttypes.h (TT_FaceRec): Updated.
+
+ * include/freetype/internal/ftserv.h (FT_FACE_FIND_SERVICE): Changed
+ order of parameters. All callers updated.
+ (FT_FACE_FIND_GLOBAL_SERVICE): New macro to look up a service
+ globally, checking all modules.
+ (FT_ServiceCacheRec): Updated.
+ (FT_SERVICE_POSTSCRIPT_NAMES_H): New macro for accessing
+ `svpsname.h'.
+
+ * include/freetype/internal/ftobjs.h, src/base/ftobjs.c
+ (ft_module_get_service): New function.
+
+ * src/cff/cffdrivr.c: Don't include FT_INTERNAL_POSTSCRIPT_NAMES_H
+ but FT_SERVICE_POSTSCRIPT_NAMES_H.
+ (cff_get_glyph_name, cff_get_name_index): Use new POSTSCRIPT_NAMES
+ service.
+ * src/cff/cffcmap.c (cff_cmap_unicode_init): Updated.
+ * src/cff/cffload.c, src/cff/cffload.h: Don't include
+ FT_INTERNAL_POSTSCRIPT_NAMES_H but FT_SERVICE_POSTSCRIPT_NAMES_H.
+ (cff_index_get_sid_string): Updated.
+ * src/cff/cffobjs.c: Don't include FT_INTERNAL_POSTSCRIPT_NAMES_H
+ but FT_SERVICE_POSTSCRIPT_NAMES_H.
+ (cff_face_init): Use new POSTSCRIPT_NAMES service.
+ * src/cff/cffobjs.h: Don't include FT_INTERNAL_POSTSCRIPT_NAMES_H
+ but FT_SERVICE_POSTSCRIPT_NAMES_H.
+
+ * src/cid/cidobjs.c: Don't include FT_INTERNAL_POSTSCRIPT_NAMES_H
+ but FT_SERVICE_POSTSCRIPT_NAMES_H.
+ (cid_face_init): Use new POSTSCRIPT_NAMES service.
+ * src/cid/cidriver.c: Don't include FT_INTERNAL_POSTSCRIPT_NAMES_H.
+
+ * src/psaux/t1cmap.c (t1_cmap_std_init, t1_cmap_unicode_init): Use
+ new POSTSCRIPT_NAMES service.
+ * src/psaux/t1decode.h (t1_lookup_glyph_by_stdcharcode,
+ t1_decode_init): Use new POSTSCRIPT_NAMES service.
+ * src/psaux/t1cmap.h, src/psaux/t1decode.h: Don't include
+ FT_INTERNAL_POSTSCRIPT_NAMES_H.
+
+ * src/psnames/psmodule.c: Don't include
+ FT_INTERNAL_POSTSCRIPT_NAMES_H but FT_SERVICE_POSTSCRIPT_NAMES_H.
+ (ps_build_unicode_table): Renamed to...
+ (ps_unicodes_init): This.
+ (ps_lookup_unicode): Renamed to...
+ (ps_unicodes_char_index): This.
+ (ps_next_unicode): Renamed to...
+ (ps_unicodes_char_next): This.
+ (psnames_interface): Updated.
+ (psnames_services): New services list.
+ (psnames_get_service): New function.
+ (psnames_module_class): Updated.
+
+ * src/sfnt/sfobjs.c: Don't include FT_INTERNAL_POSTSCRIPT_NAMES_H
+ but FT_SERVICE_POSTSCRIPT_NAMES_H.
+ (sfnt_init_face): Use new POSTSCRIPT_NAMES service.
+ * src/sfnt/ttpost.c: Don't include FT_INTERNAL_POSTSCRIPT_NAMES_H
+ but FT_SERVICE_POSTSCRIPT_NAMES_H.
+ (tt_face_get_ps_name): Updated.
+
+ * src/truetype/ttobjs.c: Don't include
+ FT_INTERNAL_POSTSCRIPT_NAMES_H but FT_SERVICE_POSTSCRIPT_NAMES_H.
+
+ * src/type1/t1driver.c: Don't include
+ FT_INTERNAL_POSTSCRIPT_NAMES_H but FT_SERVICE_POSTSCRIPT_NAMES_H.
+ * src/type1/t1objs.c: Don't include
+ FT_INTERNAL_POSTSCRIPT_NAMES_H but FT_SERVICE_POSTSCRIPT_NAMES_H.
+ (T1_Face_Init): Use new POSTSCRIPT_NAMES service.
+
+ * src/type42/t42drivr.c (t42_get_ps_name): Renamed to...
+ (t42_get_ps_font_name): This.
+ (t42_service_ps_name): Renamed to...
+ (t42_service_ps_font_name): This.
+ (t42_services): Updated.
+ * src/type42/t42objs.c (T42_Face_Init): Use new POSTSCRIPT_NAMES
+ service.
+ * src/type42/t42objs.h: Don't include
+ FT_INTERNAL_POSTSCRIPT_NAMES_H but FT_SERVICE_POSTSCRIPT_NAMES_H.
+
+
+ * src/base/ftglyph.c (FT_Get_Glyph): Don't access `slot' before
+ testing its validity. Reported by Henry Maddocks
+ <maddocks@metservice.com>.
+
+2003-09-21 Werner Lemberg <wl@gnu.org>
+
+ * include/freetype/internal/ftserv.h (FT_FACE_FIND_SERVICE):
+ Fix compilation warning (s/pptr/Pptr/).
+
+ * include/freetype/internal/internal.h (FT_INTERNAL_PFR_H,
+ FT_INTERNAL_FNT_TYPES_H): Removed.
+
+2003-09-21 David Turner <david@freetype.org>
+
+ Migrating the PFR and WINFNT drivers to the new service-based
+ internal API.
+
+ * include/freetype/internal/fnttypes.h: Removed. Most of its data
+ are moved to winfnt.h and...
+ * include/freetype/internal/services/svwinfnt.h: New file.
+
+ * include/freetype/internal/pfr.h: Removed. Most of its data are
+ moved to...
+ * include/freetype/internal/services/svpfr.h: New file.
+
+ * include/freetype/internal/ftserv.h (FT_FACE_FIND_SERVICE,
+ FT_FACE_LOOKUP_SERVICE): Simplify fix of 2003-09-16 by removing
+ pointer type argument.
+ Updated all callers.
+ Update macro names of services header files.
+
+ * src/base/ftobjs.c (FT_Get_Name_Index): Simplified code.
+
+ * src/base/ftpfr.c: Include FT_SERVICE_PFR_H instead of
+ FT_INTERNAL_PFR_H.
+ (ft_pfr_check, FT_Get_PFR_Metrics, FT_Get_PFR_Kerning,
+ FT_Get_PFR_Advance): Use services provided in `PFR_METRICS'.
+
+ * src/base/ftwinfnt.c: Include FT_SERVICE_WINFNT_H instead of
+ FT_INTERNAL_FNT_TYPES_H.
+ (FT_Get_WinFNT_Header): Use service provided in `WINFNT'.
+
+ * src/pfr/pfrdrivr.c: Include FT_SERVICE_PFR_H and
+ FT_SERVICE_XFREE86_NAME_H instead of FT_INTERNAL_PFR_H.
+ (pfr_service_bdf): Updated.
+ (pfr_services): New services list.
+ (pfr_get_service): New function.
+ (pfr_driver_class): Updated.
+
+ * src/winfonts/winfnt.c: Include FT_SERVICE_WINFNT_H and
+ FT_SERVICE_XFREE86_NAME_H instead of FT_INTERNAL_FNT_TYPES_H.
+ (winfnt_get_header, winfnt_get_service): New functions.
+ (winfnt_service_rec): New structure providing WINFNT services.
+ (winfnt_services): New services list.
+ (winfnt_driver_class): Updated.
+ * src/winfonts/winfnt.h: Add most of the removed fnttypes.h data.
+
+ * src/sfnt/sfdriver.c (sfnt_service_ps_name): Fix typo.
+
+ * src/type1/t1driver.c (t1_service_ps_name): Fix typo.
+
+ * src/cff/cffobjs.c, src/cid/cidobjs.c, src/pfr/pfrsbit.c,
+ src/psaux/psobjs.c, src/sfnt/sfobjs.c, src/truetype/ttobjs.c,
+ src/type1/t1objs.c, src/type42/t42objs.c: Removing various compiler
+ warnings.
+
+2003-09-19 David Bevan <dbevan@emtex.com>
+
+ * src/type1/t1parse.c (pfb_tag_fields): Removed.
+ (read_pfb_tag): Fix code so that it doesn't fail on end-of-file
+ indicator (0x8003).
+ * docs/CHANGES: Updated.
+
+2003-09-16 Werner Lemberg <wl@gnu.org>
+
+ * include/freetype/internal/ftserv.h (FT_FACE_FIND_SERVICE,
+ FT_FACE_LOOKUP_SERVICE): Add parameter to pass pointer type.
+ Ugly, I know, but this is needed for compilation with C++ --
+ maybe someone knows a better solution?
+ Updated all callers.
+
+ * src/base/ftobjs.c (FT_Get_Name_Index, FT_Get_Glyph_Name): Remove
+ C++ compiler warnings.
+
+ * src/base/ftbdf.c (FT_Get_BDF_Charset_ID, FT_Get_BDF_Property):
+ Fix order of arguments passed to FT_FACE_FIND_SERVICE.
+
+2003-09-15 Werner Lemberg <wl@gnu.org>
+
+ Avoid header files with identical names.
+
+ * include/freetype/internal/services/bdf.h: Renamed to...
+ * include/freetype/internal/services/svbdf.h: This.
+ Add copyright notice.
+ * include/freetype/internal/services/glyfdict.h: Renamed to...
+ * include/freetype/internal/services/svgldict.h: This.
+ Add copyright notice.
+ * include/freetype/internal/services/multmast.h: Renamed to...
+ * include/freetype/internal/services/svmm.h: This.
+ Add copyright notice.
+ Add FT_BEGIN_HEADER and FT_END_HEADER.
+ * include/freetype/internal/services/sfnt.h: Renamed to...
+ * include/freetype/internal/services/svsfnt.h: This.
+ Add copyright notice.
+ * include/freetype/internal/services/postname.h: Renamed to...
+ * include/freetype/internal/services/svpostnm.h: This.
+ Add copyright notice.
+ * include/freetype/internal/services/xf86name.h: Renamed to...
+ * include/freetype/internal/services/svxf86nm.h: This.
+ Add copyright notice.
+
+ * include/freetype/internal/ftserv.h: Add FT_BEGIN_HEADER and
+ FT_END_HEADER.
+ Add copyright notice.
+ Update macro names of services header files.
+
+ * builds/freetype.mk (SERVICES_DIR): New variable.
+ (BASE_H): Add services header files.
+
+2003-09-11 Werner Lemberg <wl@gnu.org>
+
+ * builds/toplevel.mk (distclean): Remove `builds/unix/freetype2.pc'.
+
+ * src/cff/cffdrivr.c: Don't load headers twice.
+
+ * include/freetype/internal/ftserv.h (FT_SERVICE_SFNT_H): New macro.
+ * src/base/ftobjs.c: Include FT_SERVICE_SFNT_H.
+
+ * src/cff/cffcmap.c: Include `cfferrs.h'.
+ * src/pfr/pfrdrivr.c: Include `pfrerror.h'.
+ * src/sfnt/sfdriver.c: Include `sferrors.h'.
+ * src/psaux/psobjs.h: Add declaration for `ps_parser_to_bytes'.
+
+2003-09-11 David Turner <david@freetype.org>
+
+ Introducing the concept of `module services'. This is the first
+ step towards a massive simplification of the engine's internals, in
+ order to get rid of various numbers of hacks.
+
+ Note that these changes will break source & binary compatibility for
+ authors of external font drivers.
+
+ * include/freetype/config/ftconfig.h (FT_BEGIN_STMNT, FT_END_STMNT,
+ FT_DUMMY_STMNT): New macros.
+
+ * include/freetype/internal/ftserv.h: New file, containing the new
+ structures and macros to provide `services'.
+
+ * include/freetype/internal/internal.h (FT_INTERNAL_EXTENSION_H,
+ FT_INTERNAL_EXTEND_H, FT_INTERNAL_HASH_H, FT_INTERNAL_OBJECT_H):
+ Removed, obsolete.
+ (FT_INTERNAL_SERVICE_H): New macro for `ftserv.h'.
+
+ * include/freetype/internal/services/bdf.h,
+ include/freetype/internal/services/glyfdict.h,
+ include/freetype/internal/services/postname.h,
+ include/freetype/internal/services/xf86name.h: New files.
+
+ * include/freetype/ftmm.h (FT_Get_MM_Func, FT_Set_MM_Design_Func,
+ FT_Set_MM_Blend_Func): Function pointers moved (in modified form)
+ to...
+ * include/freetype/internal/services/multmast.h: New file.
+
+ * include/freetype/internal/sfnt.h (SFNT_Interface): `get_interface'
+ is now of type `FT_Module_Requester'.
+ (SFNT_Get_Interface_Func, SFNT_Load_Table_Func): Function pointers
+ moved (in modified form) to...
+ * include/freetype/internal/services/sfnt.h: New file.
+
+ * include/freetype/tttables.h (FT_Get_Sfnt_Table_Func): Function
+ pointer moved (in modified form) to `services/sfnt.h'.
+
+ * include/freetype/ftmodule.h (FT_Module_Interface): Make it a
+ a typedef to `FT_Pointer'.
+
+ * include/freetype/internal/tttypes.h (TT_FaceRec): Add
+ `postscript_name'.
+ * include/freetype/internal/ftobjs.h (FT_Face_InternalRec): Remove
+ `postscript_name'.
+ Add `services' element.
+ (FT_LibraryRec): Remove `meta_class'.
+
+ * src/base/ftbdf.c: Include FT_SERVICE_BDF_H.
+ (test_font_type): Removed.
+ (FT_Get_BDF_Charset_ID, FT_Get_BDF_Property): Use services
+ provided in `FT_SERVICE_ID_BDF'.
+
+ * src/base/ftmm.c: Include FT_SERVICE_MULTIPLE_MASTERS_H.
+ (ft_face_get_mm_service): New auxiliary function to get services
+ from `FT_SERVICE_ID_MULTI_MASTERS'.
+ (FT_Get_Multi_Master, FT_Set_MM_Design_Coordinates,
+ FT_Set_MM_Blend_Coordinates): Use `ft_face_get_mm_service'.
+
+ * src/base/ftobjs.c: Include FT_SERVICE_POSTSCRIPT_NAME_H and
+ FT_SERVICE_GLYPH_DICT_H.
+ (ft_service_list_lookup): New function to get a specific service.
+ (destroy_face): Updated.
+ (Mac_Read_POST_Resource): Simplify some code.
+ (IsMacResource): Fix warnings.
+ (FT_Get_Name_Index, FT_Get_Glyph_Name): Use services provided in
+ `FT_SERVICE_ID_GLYPH_DICT'.
+ (FT_Get_Postscript_Name): Use service provided in
+ `FT_SERVICE_ID_POSTSCRIPT_NAME'.
+ (FT_Get_Sfnt_Table, FT_Load_Sfnt_Table): Use services provided in
+ `FT_SERVICE_ID_SFNT_TABLE'.
+
+ * src/base/ftxf86.c: Include FT_SERVICE_XFREE86_NAME_H.
+ (FT_Get_X11_Font_Format): Use service provided in
+ `FT_SERVICE_ID_XF86_NAME'.
+
+ * src/bdf/bdfdrivr.c: Include FT_SERVICE_BDF_H and
+ FT_SERVICE_XFREE86_NAME_H.
+ (bdf_get_charset_id): New function.
+ (bdf_service_bdf): New structure providing BDF services.
+ (bdf_services): New services list.
+ (bdf_driver_requester): Use `ft_service_list_lookup'.
+
+ * src/cff/cffdrivr.c: Include FT_SERVICE_XFREE86_NAME_H and
+ FT_SERVICE_GLYPH_DICT_H.
+ (cff_service_glyph_dict): New structure providing CFF services.
+ (cff_services): New services list.
+ (cff_get_interface): Use `ft_service_list_lookup'.
+
+ * src/cid/cidriver.c: Include FT_SERVICE_POSTSCRIPT_NAME_H and
+ FT_SERVICE_XFREE86_NAME_H.
+ (cid_service_ps_name): New structure providing CID services.
+ (cid_services): New services list.
+ (cid_get_interface): Use `ft_service_list_lookup'.
+
+ * src/pcf/pcfdrivr.c: Include FT_SERVICE_BDF_H and
+ FT_SERVICE_XFREE86_NAME_H.
+ (pcf_service_bdf): New structure providing PCF services.
+ (pcf_services): New services list.
+ (pcf_driver_requester): Use `ft_service_list_lookup'.
+
+ * src/sfnt/sfdriver.c: Include FT_SERVICE_GLYPH_DICT_H and
+ FT_SERVICE_POSTSCRIPT_NAME_H.
+ (get_sfnt_glyph_name): Renamed to...
+ (sfnt_get_glyph_name): This.
+ (get_sfnt_postscript_name): Renamed to...
+ (sfnt_get_ps_name): This.
+ Updated.
+ (sfnt_service_glyph_dict, sfnt_service_ps_name): New structures
+ providing services.
+ (sfnt_services): New services list.
+ (sfnt_get_interface): Use `ft_service_list_lookup'.
+
+ * src/truetype/ttdriver.c: Include FT_SERVICE_XFREE86_NAME_H.
+ (tt_services): New services list.
+ (tt_get_interface): Use `ft_service_list_lookup'.
+
+ * src/type1/t1driver.c: Include FT_SERVICE_MULTIPLE_MASTERS_H,
+ FT_SERVICE_GLYPH_DICT_H, FT_SERVICE_XFREE86_NAME_H, and
+ FT_SERVICE_POSTSCRIPT_NAME_H.
+ (t1_service_glyph_dict, t1_service_ps_name,
+ t1_service_multi_masters): New structures providing Type 1 services.
+ (t1_services): New services list.
+ (Get_Interface): Use `ft_service_list_lookup'.
+
+ * src/type42/t42drivr.c: Include FT_SERVICE_XFREE86_NAME_H,
+ FT_SERVICE_GLYPH_DICT_H, and FT_SERVICE_POSTSCRIPT_NAME_H.
+ (t42_service_glyph_dict, t42_service_ps_name): New structures
+ providing Type 42 services.
+ (t42_services): New services list.
+ (T42_Get_Interface): Use `ft_service_list_lookup'.
+
+
+ * README, docs/CHANGES: Updating version numbers for 2.1.6, and
+ removing obsolete warnings in the documentation.
+ * include/freetype/freetype.h (FREETYPE_PATCH): Set to 6.
+ * builds/unix/configure.ac (version_info): Set to 9:5:3.
+ * builds/unix/configure: Regenerated.
+
+ * include/freetype/internal/ftcore.h,
+ include/freetype/internal/ftexcept.h,
+ include/freetype/internal/fthash.h,
+ include/freetype/internal/ftobject.h: Removed. Obsolete.
+
+2003-09-09 David Turner <david@freetype.org>
+
+ Fixing PFR kerning support. The tables within the font file contain
+ (charcode,charcode) kerning pairs, we need to convert them to
+ (gindex,gindex).
+
+ * src/base/ftpfr.c (ft_pfr_check): Fix serious typo.
+ * src/pfr/pfrload.c: Remove dead code.
+ (pfr_get_gindex, pfr_compare_kern_pairs, pfr_sort_kerning_pairs):
+ New functions.
+ (pfr_phy_font_done): Free `kern_pairs'.
+ (pfr_phy_font_load): Call `pfr_sort_kerning_pairs'.
+ * src/pfr/pfrobjs.c (pfr_face_get_kerning): Fix kerning extraction.
+ * src/pfr/pfrtypes.h (PFR_KERN_PAIR_INDEX): New macro.
+ (PFR_KernPairRec): Make `kerning' an FT_Int.
+ (PFR_PhyFontRec): New element `kern_pairs'.
+ (PFR_KernFlags): Values of PFR_KERN_2BYTE_CHAR and
+ PFR_KERN_2BYTE_ADJ were erroneously reversed.
+
+ * include/freetype/ftoption.h: Commenting out the macro
+ TT_CONFIG_OPTION_BYTECODE_INTERPRETER.
+
+2003-09-02 David Turner <david@freetype.org>
+
+
+ * Version 2.1.5 released.
+ =========================
+
+
+2003-08-31 Manish Singh <yosh@gimp.org>
+
+ * src/bdf/bdflib.c (_bdf_readstream): Don't use FT_MEM_COPY but
+ FT_MEM_MOVE.
+
+2003-08-30 Werner Lemberg <wl@gnu.org>
+
+ * include/freetype/freetype.h (FT_ENCODING_SJIS, FT_ENCODING_GB2312,
+ FT_ENCODING_BIG5, FT_ENCODING_WANSUNG, FT_ENCODING_JOHAB): New
+ enumerations of FT_Encoding. The FT_ENCODING_MS_* variants except
+ FT_ENCODING_MS_SYMBOL are now deprecated.
+ Updated all users.
+ * docs/CHANGES: Document it.
+
+2003-08-27 Werner Lemberg <wl@gnu.org>
+
+ * src/bdf/bdfdrivr.c (BDF_Face_Init): Accept lowercase characters
+ for spacing.
+
+2003-08-27 Mike FABIAN <mfabian@suse.de>
+
+ * src/pcf/pcfread.c (pcf_load_font), src/bdf/bdfdrivr.c
+ (BDF_Face_Init): Accept lowercase characters for slant and weight.
+
+2003-08-18 David Turner <david@freetype.org>
+
+ * include/freetype/config/ftoption.h: Disabling TrueType bytecode
+ interpreter until the UNPATENTED_HINTING works as advertised.
+
+ * src/autohint/ahhint.c (ah_hinter_load_glyph): Use `|' for
+ setting `load_flags'.
+
+ * Jamfile: Adding the `refdoc' target to the Jamfile in order to
+ build the API Reference in `docs/reference' automatically.
+
+ * include/freetype/t1tables.h (PS_FontInfoRec), src/cid/cidtoken.h,
+ src/type1/t1tokens.h, src/type42/t42parse.c: Resetting the types of
+ `italic_angle', `underline_position', and `underline_thickness' to
+ their previous values (i.e., long, short, and ushort) in order to
+ avoid breaking binary compatibility.
+
+ * include/freetype/ttunpat.h: Fixing documentation comment.
+
+ * include/freetype/config/ftoption.h, devel/ftoption.h
+ (TT_CONFIG_OPTION_COMPILE_UNPATENTED_HINTING): Replaced with...
+ (TT_CONFIG_OPTION_UNPATENTED_HINTING): This. Updated all users.
+ (TT_CONFIG_OPTION_FORCE_UNPATENTED_HINTING): Removed.
+
+ * include/freetype/internal/ftobjs.h (FT_DEBUG_HOOK_TYPE1): Removed.
+ (FT_DEBUG_HOOK_UNPATENTED_HINTING): New macro. Use this with
+ `FT_Set_Debug_Hook' to get the same effect as the removed
+ TT_CONFIG_OPTION_FORCE_UNPATENTED_HINTING.
+
+ * src/truetype/ttobjs.c (tt_face_init): Use
+ `FT_DEBUG_HOOK_UNPATENTED_HINTING'.
+
+2003-08-06 Werner Lemberg <wl@gnu.org>
+
+ * src/type1/t1gload.c (T1_Load_Glyph), src/cff/cffgload.c
+ (cff_slot_load), src/cid/cidgload.c (cid_slot_load_glyph): Fix
+ previous change.
+
+2003-08-05 Werner Lemberg <wl@gnu.org>
+
+ * src/type1/t1gload.c (T1_Load_Glyph), src/cff/cffgload.c
+ (cff_slot_load), src/cid/cidgload.c (cid_slot_load_glyph): Apply
+ font matrix to advance width also.
+ * docs/CHANGES: Updated.
+
+2003-07-26 Werner Lemberg <wl@gnu.org>
+
+ * builds/unix/configure.ac (version_info): Set to 9:4:3.
+ * builds/unix/configure: Updated.
+ * docs/CHANGES, docs/VERSION.DLL: Updated.
+
+ * include/freetype/freetype.h (FT_GlyphSlot): Change 2003-06-16
+ also breaks binary compatibility. Reintroduce an unsigned integer
+ at the old position of `flags' called `reserved'.
+
+2003-07-25 Werner Lemberg <wl@gnu.org>
+
+ Make API reference valid HTML 4.01 transitional.
+
+ * src/tools/docmaker/tohtml.py (html_header_1): Add doctype
+ and charset.
+ (html_header_2): Fix style elements and add some more.
+ Fix syntax.
+ (block_header, block_footer, description_header, description_footer,
+ marker_header, marker_footer, source_header, source_footer,
+ chapter_header): Don't use <center>...</center> but `align=center'
+ table attribute.
+ (chapter_inter, chapter_footer): Add <li> and use special <ul>
+ class.
+ Use double quotes around table widths given in percent.
+ (keyword_prefix, keyword_suffix): Don't change font color directly
+ but use a new <span> class.
+ (section_synopsis_header, section_synopsis_footer): Don't change
+ color.
+ (code_header, code_footer): Don't change font color directly but
+ use a special <pre> class.
+ (print_html_field): <tr> gets the `valign' attribute, not <table>.
+ (print_html_field_list): Ditto.
+ (index_exit): Don't use <center>...</center> but `align=center'
+ table attribute.
+ (section_enter): Ditto.
+ (toc_exit): Don't emit </table>.
+ (block_enter): Use <h4><a>, not <a><h4>.
+ (__init__): Fix tag order in self.html_footer.
+
+2003-07-25 David Turner <david@freetype.org>
+
+ This change reimplements fix from 2003-05-30 without breaking
+ binary compatibility.
+
+ * include/freetype/t1tables.h (PS_FontInfoRec): `italic_angle',
+ `is_fixed_pitch', `underline_position', `underline_thickness' are
+ reverted to be normal values.
+
+ * include/freetype/internal/psaux.h (T1_FieldType): Remove
+ `T1_FIELD_TYPE_BOOL_P', `T1_FIELD_TYPE_INTEGER_P',
+ `T1_FIELD_TYPE_FIXED_P', `T1_FIELD_TYPE_FIXED_1000_P'.
+ (T1_FIELD_TYPE_BOOL_P, T1_FIELD_NUM_P, T1_FIELD_FIXED_P,
+ T1_FIELD_FIXED_1000_P): Removed.
+ (T1_FIELD_TYPE_BOOL): Renamed to...
+ (T1_FIELD_BOOL): New macro. Updated all callers.
+
+ * src/type42/t42parse.c: `italic_angle', `is_fixed_pitch',
+ `underline_position', `underline_thickness', `paint_type',
+ `stroke_width' are reverted to be normal values.
+ (T42_KEYWORD_COUNT): New macro.
+ (t42_parse_dict): New array `keyword_flags' to mark that a value has
+ already been assigned to a dictionary entry.
+ * src/type42/t42objs.c (T42_Face_Init, T42_Face_Done): Updated.
+
+ * src/cid/cidtoken.h: `italic_angle', `is_fixed_pitch',
+ `underline_position', `underline_thickness' are reverted to be
+ normal values.
+ * src/cid/cidobjs.c (cid_face_done, cid_face_init): Updated.
+
+ * src/psaux/psobjs.c (ps_parser_load_field): Updated.
+
+ * src/type1/t1tokens.h: `italic_angle', `is_fixed_pitch',
+ `underline_position', `underline_thickness', `paint_type',
+ `stroke_width' are reverted to be normal values.
+ * src/type1/t1objs.c (T1_Face_Done, T1_Face_Init): Updated.
+ * src/type1/t1load.c (T1_FIELD_COUNT): New macro.
+ (parse_dict): Add parameter for keyword flags.
+ Record only first instance of a field.
+ (T1_Open_Face): New array `keyword_flags'.
+
+2003-07-24 Werner Lemberg <wl@gnu.org>
+
+ * include/freetype/freetype.h (FREETYPE_PATCH): Set to 5.
+ * builds/unix/configure.ac (version_info): Set to 10:0:3.
+ * builds/unix/configure: Updated.
+ * builds/freetype.mk (refdoc): Fix --title.
+
+ * docs/CHANGES, docs/VERSION.DLL, README: Updated.
+
+ * src/tools/docmaker/sources.py (re_crossref): Fix regular
+ expression to handle trailing punctuation characters.
+ * src/tools/docmaker/tohtml.py (make_html_word): Updated.
+
+ * docs/release: New file.
+
+2003-07-23 YAMANO-UCHI Hidetoshi <mer@din.or.jp>
+
+ * include/freetype/internal/psaux.h (PS_Parser_FuncsRec): New
+ member function `to_bytes'.
+
+ * src/psaux/psauxmod.c (ps_parser_funcs): New member
+ `ps_parser_to_bytes'.
+ (psaux_module_class): Increase version to 0x20000L.
+
+ * src/psaux/psobjs.c (IS_T1_LINESPACE): Add \f.
+ (IS_T1_NULLSPACE): New macro.
+ (IS_T1_SPACE): Add it.
+ (skip_spaces, skip_alpha): New functions.
+ (ps_parser_skip_spaces, ps_parser_skip_alpha): Use them.
+ (ps_tobytes, ps_parser_to_bytes): New functions.
+
+2003-07-07 Werner Lemberg <wl@gnu.org>
+
+ * builds/freetype.mk (DOC_DIR): New variable.
+ (refdoc): Use *_DIR variables.
+ (distclean): Remove documentation files.
+
+ * builds/detect.mk (std_setup, dos_setup): Mention `make refdoc'.
+
+ * configure: Set DOC_DIR variable.
+
+2003-07-07 Patrik Hägglund <patrik.hagglund@bredband.net>
+
+ * builds/freetype.mk (refdoc): New target to build the
+ documentation.
+ (.PHONY): Updated.
+
+ * include/freetype/freetype.h: Improve documentation of FT_CharMap.
+ * include/freetype/ftimage,h: Fix documentation of FT_OUTLINE_FLAGS.
+ * include/freetype/tttables.h: Document FT_Sfnt_Tag.
+
+2003-07-06 Werner Lemberg <wl@gnu.org>
+
+ * src/bdf/bdfdrivr.c (BDF_Face_Init), src/pcf/pcfread.c
+ (pcf_load_font): Fix computation of height if PIXEL_SIZE property is
+ missing.
+
+2003-07-01 Werner Lemberg <wl@gnu.org>
+
+ * src/cache/ftcsbits.c (ftc_sbit_node_compare): Only add `size' if
+ there is no error. Reported by Knut St. Osmundsen
+ <bird-freetype@anduin.net>.
+
+2003-06-30 Werner Lemberg <wl@gnu.org>
+
+ A new try to synchronize bitmap font access.
+
+ * include/freetype/freetype.h (FT_Bitmap_Size): `height' is now
+ defined to return the baseline-to-baseline distance. This was
+ already the value returned by the BDF and PCF drivers.
+
+ The `width' field now gives the average width. I wasn't able to
+ find something better. It should be taken as informative only.
+
+ New fields `size', `x_ppem', and `y_ppem'.
+
+ * src/pcf/pcfread.c (pcf_load_font): Updated to properly fill
+ FT_Bitmap_Size.
+ Do proper rounding and conversion from 72.27 to 72 points.
+
+ * src/bdf/bdfdrivr.c (BDF_Face_Init): Updated to properly fill
+ FT_Bitmap_Size.
+ Do proper rounding and conversion from 72.27 to 72 points.
+
+ * src/sfnt/sfobjs.c (sfnt_load_face): Updated to properly fill
+ FT_Bitmap_Size.
+
+ * src/winfonts/winfnt.c (FNT_Face_Init): Updated to properly fill
+ FT_Bitmap_Size.
+
+2003-06-29 Werner Lemberg <wl@gnu.org>
+
+ Redesigning the FNT driver to return multiple faces, not multiple
+ strikes. At least one font (app850.fon from WinME) contains
+ different FNT charmaps for its subfonts. Consequently, the previous
+ design of having multiple bitmap strikes in a single font face fails
+ since we have only one charmap per face.
+
+ * include/freetype/internal/fnttypes.h (FNT_Size_Rec): Removed.
+ (FNT_FaceRec): Remove `num_fonts' field and replace `fonts' with
+ `font'.
+
+ * src/base/ftwinfnt.c (FT_Get_WinFNT_Header): Updated.
+
+ * src/winfonts/winfnt.c (fnt_font_load): Don't set pixel_width equal
+ to pixel_height.
+ (fnt_face_done_fonts): Removed.
+ (fnt_face_get_dll_fonts): Renamed to...
+ (fnt_face_get_dll_font): This. Add second function argument to
+ select face index.
+ Updated to load just one subfont.
+ (fnt_font_done, FNT_Face_Done): Updated.
+ (FNT_Face_Init): Handle `face_index'.
+ Updated.
+ (FNT_Size_Set_Pixels): Simplified; similar to BDF and PCF, the
+ bitmap width is now ignored.
+ (FNT_Load_Glyph): Updated.
+ Fix glyph index computation.
+ (winfnt_driver_class): Updated.
+
+2003-06-25 Owen Taylor <otaylor@redhat.com>
+
+ * src/sfnt/ttload.c (tt_face_load_hdmx): Don't assign
+ num_records until we actually decide to load the table,
+ otherwise, we'll segfault in tt_face_free_hdmx.
+
+2003-06-24 Werner Lemberg <wl@gnu.org>
+
+ * src/cff/cffdrivr.c (cff_get_glyph_name): Protect against zero
+ glyph name pointer. Reported by Mikey Anbary <manbary@vizrt.com>.
+
+2003-06-23 Werner Lemberg <wl@gnu.org>
+
+ * src/tools/glnames.py: Updated to AGL 2.0.
+ * src/psnames/pstables.h: Regenerated.
+
+2003-06-22 Werner Lemberg <wl@gnu.org>
+
+ * include/freetype/cache/ftcglyph.h, include/freetype/ttnameid.h,
+ src/base/ftcalc.c, src/base/fttrigon.c, src/cff/cffgload.c,
+ src/otlayout/otlgsub.c, src/pshinter/pshrec.c,
+ src/psnames/psmodule.c, src/sfnt/sfobjs.c, src/truetype/ttdriver.c:
+ Decorate constants with `U' and `L' if appropriate.
+
+ * include/freetype/ftmoderr.h: Updated to include recent module
+ additions.
+
+ * src/pshinter/pshnterr.h (FT_ERR_BASE): Define as
+ `FT_Mod_Err_PShinter'.
+ * src/type42/t42error.h (FT_ERR_BASE): Define as
+ `FT_Mod_Err_Type42'.
+
+ * src/pshinter/pshrec.h (PS_HINTS_MAGIC): Removed. Not used.
+
+ * include/freetype/config/ftconfig.h [__MWERKS__]: Define FT_LONG64
+ and FT_INT64.
+
+2003-06-21 Werner Lemberg <wl@gnu.org>
+
+ * src/winfonts/winfnt.c (FNT_Load_Glyph): Use first_char in
+ computation of glyph_index.
+ (FNT_Size_Set_Pixels): To find a strike, first check pixel_height
+ only, then try to find a better hit by comparing pixel_width also.
+ Without this fix it isn't possible to access all strikes.
+ Also compute metrics.max_advance to be in sync with other bitmap
+ drivers.
+
+ * src/base/ftobjs.c (FT_Set_Char_Size): Remove redundant code.
+ (FT_Set_Pixel_Sizes): Assign value to `metrics' after validation of
+ arguments.
+
+2003-06-20 Werner Lemberg <wl@gnu.org>
+
+ Synchronize computation of height and width for bitmap strikes. The
+ `width' field in the FT_Bitmap_Size structure is now only useful to
+ enumerate different strikes. The `max_advance' field of the
+ FT_Size_Metrics structure should be used to get the (maximum) width
+ of a strike.
+
+ * src/bdf/bdfdrivr.c (BDF_Face_Init): Don't use AVERAGE_WIDTH for
+ computing `available_sizes->width' but make it always equal to
+ `available_sizes->height'.
+
+ * src/pcf/pcfread.c (pcf_load_font): Don't use RESOLUTION_X for
+ computing `available_sizes->width' but make it always equal to
+ `available_sizes->height'.
+
+ * src/truetype/ttdriver.c (Set_Pixel_Sizes): Pass only single
+ argument to function.
+
+ * src/psnames/psmodule.c (ps_unicode_value): Handle `.' after
+ `uniXXXX' and `uXXXX[X[X]]'.
+
+2003-06-19 Werner Lemberg <wl@gnu.org>
+
+ * src/bdf/bdfdrivr.c: s/FT_Err_/BDF_Err/.
+ * src/cache/ftccache.c, src/cache/ftcsbits.c, src/cache/ftlru.c:
+ s/FT_Err_/FTC_Err_/.
+ * src/cff/cffcmap.c: s/FT_Err_/CFF_Err_/.
+ * src/pcf/pcfdrivr.c: s/FT_Err_/PCF_Err_/.
+ * src/psaux/t1cmap.c: Include psauxerr.h.
+ s/FT_Err_/PSaux_Err_/.
+ * src/pshinter/pshnterr.h: New file.
+ * src/pshinter/rules.mk: Updated.
+ * src/pshinter/pshalgo.c, src/pshinter/pshrec.c: Include pshnterr.h.
+ s/FT_Err_/PSH_Err_/.
+ * src/pfr/pfrdrivr.c, src/pfr/pfrobjs.c, src/pfr/pfrsbit.c:
+ s/FT_Err_/PFR_Err_/.
+ * src/sfnt/sfdriver.c, src/sfnt/sfobjs.c, src/sfnt/ttcmap0.c,
+ src/sfnt/ttload.c: s/FT_Err_/SFNT_Err_/.
+ * src/truetype/ttgload.c: s/FT_Err_/TT_Err_/.
+ * src/gzip/ftgzip.c: Load FT_MODULE_ERRORS_H and define
+ FT_ERR_PREFIX and FT_ERR_BASE.
+ s/FT_Err_/Gzip_Err_/.
+
+2003-06-19 Dirck Blaskey <listtarget@danbala.com>
+
+ * src/cff/cffload (cff_encoding_load): `nleft' must be FT_UInt,
+ otherwise adding 1 might wrap the result.
+
+2003-06-18 Werner Lemberg <wl@gnu.org>
+
+ * src/psnames/psmodule.c (ps_unicode_value): Add support to
+ recognize `uXXXX[X[X]]' glyph names.
+ Don't handle glyph names starting with `uni' which have more than
+ four digits.
+
+2003-06-16 Werner Lemberg <wl@gnu.org>
+
+ * include/freetype/freetype.h (FT_Open_Flags): Replaced with
+ #defines for the constants.
+ (FT_Open_Args): Change type of `flags' to FT_UInt.
+ (FT_GlyphSlot): Move `flags' to FT_Slot_Internal.
+
+ * include/freetype/ftimage.h (FT_Outline_Flags, FT_Raster_Flag):
+ Replaced with #defines for the constants.
+
+ * include/freetype/internal/ftobjs.h (FT_Slot_Internal): New
+ field `flags' (from FT_GlyphSlot).
+ Updated all affected source files.
+ (FT_GLYPH_OWN_BITMAP): New macro (from ftgloadr.h).
+
+ * include/freetype/internal/ftgloadr.h (FT_GLYPH_OWN_BITMAP): Moved
+ to ftobjs.h.
+
+ * src/base/ftglyph.c (FT_Glyph_To_Bitmap): Use dummy
+ FT_GlyphSlot_Internal object.
+
+2003-06-15 Werner Lemberg <wl@gnu.org>
+
+ * builds/compiler/gcc.mk, builds/compiler/gcc-dev.mk (CFLAGS):
+ Add -fno-strict-aliasing to get rid of zillion warnings from gcc
+ version 3.3.
+
+2003-06-14 Werner Lemberg <wl@gnu.org>
+
+ * include/freetype/ftglyph.h (ft_glyph_bbox_unscaled,
+ ft_glyph_bbox_subpixels, ft_glyph_bbox_gridfit,
+ ft_glyph_bbox_truncate, ft_glyph_bbox_pixels): Replaced with
+ FT_GLYPH_BBOX_UNSCALED, FT_GLYPH_BBOX_SUBPIXELS,
+ FT_GLYPH_BBOX_GRIDFIT, FT_GLYPH_BBOX_TRUNCATE, FT_GLYPH_BBOX_PIXELS.
+ The lowercase variants are now (deprecated aliases) to the uppercase
+ versions.
+ Updated all other files.
+
+ * include/freetype/ftmodule.h (ft_module_font_driver,
+ ft_module_renderer, ft_module_hinter, ft_module_styler,
+ ft_module_driver_scalable, ft_module_driver_no_outlines,
+ ft_module_driver_has_hinter): Replaced with FT_MODULE_FONT_DRIVER,
+ FT_MODULE_RENDERER, FT_MODULE_HINTER, FT_MODULE_STYLER,
+ FT_MODULE_DRIVER_SCALABLE, FT_MODULE_DRIVER_NO_OUTLINES,
+ FT_MODULE_DRIVER_HAS_HINTER.
+ The lowercase variants are now (deprecated aliases) to the uppercase
+ versions.
+ Updated all other files.
+
+ * src/base/ftglyph.c (FT_Glyph_Get_CBox): Handle bbox_mode better
+ as enumeration.
+
+ * src/pcf/pcfdrivr.c (pcf_driver_class), src/winfonts/winfnt.c
+ (winfnt_driver_class), src/bdf/bdfdrivr.c (bdf_driver_class): Add
+ the FT_MODULE_DRIVER_NO_OUTLINES flag.
+
+2003-06-13 Detlef Würkner <TetiSoft@apg.lahn.de>
+
+ * src/pfr/pfrobjs.c (pfr_slot_load): Apply font matrix.
+
+2003-06-13 Werner Lemberg <wl@gnu.org>
+
+ * builds/dos/detect.mk: Test not only for `Dos' but for `DOS' also.
+
+ * builds/dos/dos-emx.mk, builds/compiler/emx.mk: New files for
+ EMX gcc compiler.
+ * builds/dos/detect.mk: Add target `emx'.
+
+ * builds/compiler/watcom.mk (LINK_LIBRARY): GNU Make for DOS doesn't
+ like a trailing semicolon; add a dummy command.
+
+ * src/cid/cidload.c: Remove parse_font_bbox code (already enclosed
+ with #if 0 ... #endif).
+
+ * src/type1/t1tokens.h: Handle /FontName.
+ * src/type1/t1load.c (parse_font_name): Removed.
+ Remove parse_font_bbox code (already enclosed with #if 0 ...
+ #endif).
+
+ * src/type42/t42parse.c (t42_parse_font_name): Removed.
+ Remove t42_parse_font_bbox code (already enclosed with #if 0 ...
+ #endif).
+ (t42_keywords): Handle /FontName with T1_FIELD_KEY.
+
+2003-06-12 Werner Lemberg <wl@gnu.org>
+
+ * include/freetype/internal/psaux.h (T1_FieldType): Add
+ T1_FIELD_TYPE_KEY.
+ (T1_FIELD_KEY): New macro.
+ * src/psaux/psobjs.c (ps_parser_load_field): Handle
+ T1_FIELD_TYPE_KEY.
+
+ * src/cid/cidtoken.h: Use T1_FIELD_KEY for /CIDFontName.
+
+2003-06-11 Alexander Malmberg <alexander@malmberg.org>
+
+ * src/cache/ftlru.c (FT_LruList_Remove_Selection): Decrease
+ number of nodes.
+ (FT_LruList_Lookup): Fix assertion for out-of-memory case.
+
+2003-06-11 Werner Lemberg <wl@gnu.org>
+
+ * src/cid/cidload.c (cid_decrypt): Removed.
+ (cid_read_subrs): Use t1_decrypt from psaux module.
+ * src/cid/cidload.h: Updated.
+ * src/cid/cidgload.c (cid_load_glyph): Use t1_decrypt from psaux
+ module.
+
+2003-06-10 Werner Lemberg <wl@gnu.org>
+
+ * src/cid/cidobjs.c: Apply change 2003-05-31 from <Ron.Dev@gmx.de>.
+ Compute style flags.
+ Fix computation of root->height.
+ * src/cid/cidtoken.h: Handle FontBBox.
+ * src/cid/cidload.c (cid_load_keyword): Handle
+ T1_FIELD_LOCATION_BBOX.
+ (parse_font_bbox): Commented out.
+ (cid_field_records): Comment out element for parsing FontBBox.
+
+ * src/type42/t42parse.c (t42_parse_font_bbox): Commented out.
+ (t42_keywords): Handle FontBBox with T1_FIELD_BBOX, not with
+ T1_FIELD_CALLBACK.
+ (t42_parse_font_bbox): Commented out.
+ (t42_load_keyword): Handle T1_FIELD_LOCATION_BBOX.
+ * src/type42/t42objs.c (T42_Face_Init): Apply change 2003-05-31
+ from <Ron.Dev@gmx.de>.
+
+2003-06-09 George Williams <gww@silcom.com>
+
+ * src/truetype/ttinterp.c (SetSuperRound) <0x30>: Follow Apple's
+ TrueType specification.
+ (Ins_MDRP, Ins_MIRP): Fix single width cut-in test.
+
+2003-06-09 Detlef Würkner <TetiSoft@apg.lahn.de>
+
+ * src/gzip/ftgzip.c: (inflate_mask): Replaced with...
+ (NO_INFLATE_MASK): This.
+ * src/gzip/infutil.h: Declare `inflate_mask' conditionally by
+ NO_INFLATE_MASK.
+
+2003-06-09 Alexis S. L. Carvalho <alexis@cecm.usp.br>
+
+ * src/gzip/ftgzip.c (ft_gzip_file_fill_output): Handle Z_STREAM_END
+ correctly.
+
+2003-06-09 Wolfgang Domröse <porthos.domroese@harz.de>
+
+ * src/pshinter/pshglob.c (psh_globals_new): Change calculation of
+ dim->stdw.count to avoid compiler problem.
+
+ * src/truetype/ttgload.c (TT_Load_Simple_Glyph): Move the block
+ variables to the beginning of the function to avoid compiler
+ problems.
+ Add casts necessary for 16bit compilers.
+
+2003-06-09 Werner Lemberg <wl@gnu.org>
+
+ * src/pfr/rules.mk (PFR_DRV_SRC): Add pfrsbit.c.
+ (PFR_DRV_H): Add pfrtypes.h.
+
+ * include/freetype/config/ftconfig.h: s/__MWKS__/__MWERKS__/.
+
+2003-06-08 Karl Schultz <kschultz@rsinc.com>
+
+ * src/pfr/pfrsbit.c (pfr_bitwriter_init): Change type of third
+ argument to FT_Bool.
+ (pfr_lookup_bitmap_data): Change type of third and fourth argument
+ to FT_UInt. Updated caller.
+ (pfr_load_bitmap_bits): Change type of fourth argument to FT_Bool.
+
+2003-06-08 Werner Lemberg <wl@gnu.org>
+
+ Completely revised FreeType's make management.
+
+ . In all makefiles `/' is used as the path separator. The
+ conversion to the real path separators is done as late as
+ possible using $(subst ...).
+
+ . $(HOSTSEP) no longer exists. Now, $(SEP) gives the path separator
+ for the operating system, and the new $(COMPILER_SEP) the path
+ separator for the compiler tools.
+
+ . $(BUILD) has been renamed to $(BUILD_DIR). In general, all
+ directory variables end with `_DIR'. The variants ending in `_'
+ (like `BASE_' have been removed).
+
+ The following ChangeLog entries only describe changes which are
+ not related to the redesign.
+
+ * builds/beos/beos-def.mk (BUILD_DIR): Fix typo.
+ * builds/compiler/watcom.mk (LINK_LIBRARY): Fix linker call to avoid
+ overlong arguments as suggested by J. Ali Harlow
+ <ali@avrc.city.ac.uk>.
+ * builds/dos/dos-wat.mk: New file.
+ * builds/freetype.mk (FREETYPE_H): Include header files from the
+ `devel' subdirectory.
+
+ * builds/os2/os2-dev.mk, builds/unix/unixddef.mk,
+ builds/unix/unixddef.mk, builds/win32/w32-bccd.mk,
+ builds/win32/w32-dev.mk (BUILD_DIR): Fix path.
+
+ * builds/unix/configure.ac, builds/unix/configure: Updated.
+ * builds/unix/unix-def.in (DISTCLEAN): Add `freetype2.pc'.
+
+2003-06-07 Werner Lemberg <wl@gnu.org>
+
+ * src/base/ftmac.c (FT_New_Face_From_SFNT): s/rlen/sfnt_size/ to
+ make it compile.
+
+ * devel/ftoption.h: Updated.
+
+2003-06-07 Detlef Würkner <TetiSoft@apg.lahn.de>
+
+ * include/freetype/internal/psaux.h, src/truetype/ttgload.h:
+ s/index/idx/ to fix compiler warnings.
+
+ * src/sfnt/ttcmap0.c (tt_face_build_cmaps): Use more `volatile' to
+ fix compiler warning.
+
+ * src/gzip/ftgzip.c (BUILDFIXED): Removed.
+ * src/gzip/inftrees.c (inflate_trees_fixed) [!BUILDFIXED]: Use
+ FT_UNUSED to remove compiler warning.
+
+2003-06-06 Werner Lemberg <wl@gnu.org>
+
+ * include/freetype/ftstroker.h: Renamed to...
+ * include/freetype/ftstroke.h: This.
+
+ * src/base/ftstroker.c: Renamed to...
+ * src/base/ftstroke.c: This.
+
+ * include/freetype/config/ftheader.h (FT_STROKER_H): Updated.
+
+ * src/base/descrip.mms, src/base/Jamfile, src/base/rules.mk:
+ Updated.
+
+ * src/pcf/pcfdriver.c: Renamed to...
+ * src/pcf/pcfdrivr.c: This.
+ * src/pcf/pcfdriver.h: Renamed to...
+ * src/pcf/pcfdrivr.h: This.
+
+ * src/pcf/Jamfile, src/pcf/rules.mk: Updated.
+
+2003-06-05 Wenlin Institute (Tom Bishop) <wenlin@wenlin.com>
+
+ * src/base/ftmac.c (file_spec_from_path) [TARGET_API_MAC_CARBON]:
+ Add `#if !defined(__MWERKS__)'.
+
+2003-06-05 Werner Lemberg <wl@gnu.org>
+
+ * include/freetype/internal/psaux.h (T1_FieldType): Add
+ T1_FIELD_TYPE_FIXED_1000 and T1_FIELD_TYPE_FIXED_1000_P.
+ (T1_FIELD_FIXED_1000, T1_FIELD_FIXED_1000_P): New macros.
+ * src/psaux/psobjs.c (ps_parser_load_field): Handle
+ T1_FIELD_TYPE_FIXED_1000 and T1_FIELD_TYPE_FIXED_1000_P.
+
+ * src/cff/cffparse.c (cff_kind_fixed_thousand): New enumeration.
+ (CFF_FIELD_FIXED_1000): New macro.
+ (cff_parser_run): Handle cff_kind_fixed_thousand.
+ * src/cff/cfftoken.h: Use CFF_FIELD_FIXED_1000 for blue_scale.
+ * src/cff/cffload (cff_subfont_load): Fix default values of
+ expansion_factor and blue_scale.
+
+ * src/cid/cidtoken.h, src/type1/t1tokens.h: Use T1_FIELD_FIXED_1000
+ for blue_scale.
+
+ * src/pshinter/pshglob.c (psh_globals_new): Fix default value of
+ blue_scale.
+
+2003-06-04 Wolfgang Domröse <porthos.domroese@harz.de>
+
+ * include/freetype/internal/ftdriver.h,
+ include/freetype/internal/ftobjs.h,
+ include/freetype/internal/psaux.h, src/cid/cidgload.c,
+ src/psaux/psobjs.c, src/psaux/t1decode.c, src/psaux/psobjs.h,
+ src/pshinter/pshrec.c, src/pshinter/pshalgo.c,
+ src/psnames/psmodule.c, src/raster/ftraster.c, src/sfnt/sfobjs.c,
+ src/smooth/ftgrays.c, src/smooth/ftsmooth.c, src/truetype/ttobjs.c,
+ src/truetype/ttdriver.c, src/truetype/ttgload.c, src/type1/t1afm.c,
+ src/type1/t1gload.c, src/type1/t1gload.h, src/type1/t1load.c,
+ src/type1/t1objs.c, src/type42/t42parse.c, src/type42/t42parse.h:
+ Many casts and slight argument type changes to make it work with
+ a 16bit compiler.
+
+2003-06-04 Werner Lemberg <wl@gnu.org>
+
+ * include/freetype/config/ftoption.h: Defining
+ TT_CONFIG_OPTION_FORCE_UNPATENTED_HINTING by default is a bad idea
+ since some fonts (e.g. Arial) produce worse results than without
+ hinting. Reverted.
+
+2003-06-04 Werner Lemberg <wl@gnu.org>
+
+ * src/truetype/ttgload.c (load_truetype_glyph)
+ [TT_CONFIG_OPTION_BYTECODE_INTERPRETER]: Call
+ FT_GlyphLoader_CheckPoints before adding phantom points. This fixes
+ a segfault bug with fonts (e.g. htst3.ttf) which have nested
+ subglyphs more than one level deep. Reported by Anthony Fok.
+
+ * include/freetype/config/ftoption.h: Define
+ TT_CONFIG_OPTION_BYTECODE_INTERPRETER,
+ TT_CONFIG_OPTION_COMPILE_UNPATENTED_HINTING, and
+ TT_CONFIG_OPTION_FORCE_UNPATENTED_HINTING to make it the new
+ default.
+
+2003-06-03 Werner Lemberg <wl@gnu.org>
+
+ * src/autohint/ahhint.c (ah_hinter_hint_edges): Removed. Just a
+ wrapper for ah_hint_edges.
+ (ah_hint_edges): Renamed to...
+ (ah_hinter_hint_edges): This.
+
+ * src/base/ftobjs.c (FT_Set_Hint_Flags): Removed. Unused.
+
+ * include/freetype/internal/ftobjs.h (FT_Face_InternalRec),
+ include/freetype/internal/psaux.h (T1_DecoderRec),
+ src/cff/cffgload.h (CFF_Builder): Remove `hint_flags' field.
+ Unused.
+
+ * src/cff/cffgload.c (cff_builder_init): Updated.
+ (cff_decoder_parse_charstrings) <cff_op_endchar>: Call hinter->apply
+ with decoder->hint_mode instead of builder->hint_flags.
+ * src/psaux/t1decode.c (t1_decoder_init): Updated.
+
+ * src/base/ftstroker.c (ft_stroke_border_export): s/index/idx/.
+
+ * src/sfnt/sfobjs.c (sfnt_load_face): Commented out code which
+ increased root->height by 15% if the line gap was zero. There exist
+ fonts (containing e.g. form drawing characters) which intentionally
+ have a zero line gap value.
+
+ * src/truetype/ttinterp.c (Free_Project, CUR_Func_freeProj):
+ Removed. Unused.
+ Updated all callers.
+
+2003-06-02 Werner Lemberg <wl@gnu.org>
+
+ * src/cff/cffobjs.c (cff_face_init): Use symbolic names for
+ Adobe specific encoding IDs (there was a wrong EID value for custom
+ encoding).
+
+ * src/cff/cffcmap.h (CFF_CMapStdRec): Remove `count'.
+ * src/cff/cffcmap.c (cff_cmap_encoding_init,
+ cff_cmap_encoding_done): Updated.
+ (cff_cmap_encoding_char_index, cff_cmap_encoding_char_next): Use
+ 256 as limit for character code.
+
+2003-06-01 Werner Lemberg <wl@gnu.org>
+
+ * src/winfonts/winfnt.c (FNT_Load_Glyph): Revert change from
+ 2003-03-20.
+
+2003-05-31 Werner Lemberg <wl@gnu.org>
+
+ * include/freetype/fttrigon.h (FT_Vector_Normalize): Removed.
+
+2003-05-31 <Ron.Dev@gmx.de>
+
+ * src/type1/t1objs.c (T1_Face_Init): Improve algorithm for guessing
+ the font style by ignoring spaces and hyphens.
+
+ * builds/unix/freetype2.in: Fix `Version' field.
+
+2003-05-30 Werner Lemberg <wl@gnu.org>
+
+ Avoid overwriting of numeric font dictionary entries for synthetic
+ fonts. Additionally, some entries were handled as `integer' instead
+ of `number'.
+
+ * include/freetype/internal/psaux.h (T1_FieldType): Add
+ T1_FIELD_TYPE_BOOL_P, T1_FIELD_TYPE_INTEGER_P, and
+ T1_FIELD_TYPE_FIXED_P.
+ (T1_FIELD_BOOL_P, T1_FIELD_NUM_P, T1_FIELD_FIXED_P): New macros.
+ * src/psaux/psobjs.c (ps_parser_load_field): Handle new field types.
+
+ * include/freetype/internal/cfftypes.h (CFF_FontRecDict),
+ src/cff/cfftoken.h: Change type of underline_position and
+ underline_thickness to FT_Fixed.
+ * src/cff/cffload.c (cff_subfont_load): Fix default values of
+ underline_position and underline_thickness.
+ * src/cff/cffobjs.c (cff_face_init): Set underline_position
+ and underline_thickness in `root'.
+
+ * include/freetype/internal/t1types.h (T1_Font): Change point_type
+ and stroke_width to pointers.
+ * include/freetype/t1tables.h (PS_FontInfo): Change italic_angle,
+ is_fixed_pitch, underline_position, and underline_thickness to
+ pointers.
+ * src/type1/t1tokens.h: Change italic_angle, is_fixed_pitch,
+ underline_position, and underline_thickness to pointers. Change
+ the type of the latter two to `fixed'.
+ Change type of stroke_width to `fixed' and make it a pointer.
+ Change paint_type to pointer.
+ * src/type1/t1objs.c (T1_Face_Done): Updated.
+ (T1_Face_Init): Updated.
+ Fix assignment of underline_position and underline_thickness.
+
+ * src/cid/cidtoken.h: Change italic_angle, is_fixed_pitch,
+ underline_position, and underline_thickness to pointers. Change
+ the type of the latter two to `fixed'.
+ Change type of stroke_width to `fixed'.
+ * src/cid/cidobjs.c (cid_face_done): Updated.
+ (cid_face_init): Updated.
+ Fix assignment of underline_position and underline_thickness.
+
+ * src/type42/t42parse.c: Change italic_angle, is_fixed_pitch,
+ underline_position, and underline_thickness to pointers. Change the
+ type of the latter two to `fixed'.
+ Change type of stroke_width to `fixed' and make it a pointer.
+ Change paint_type to pointer.
+ * src/type42/t42objs.c (T42_Face_Init): Updated.
+ Fix assignment of underline_position and underline_thickness.
+ (T42_Face_Done): Updated.
+
+ * src/base/ftobjs.c (open_face_from_buffer): Fix compiler warning.
+ * src/pshinter/pshglob.c, src/pshinter/pshglob.h
+ (psh_globals_set_scale): Make it a local function.
+
+ * test/gview.c: Fix renaming ps3->ps typo.
+ Formatting.
+
+2003-05-29 Werner Lemberg <wl@gnu.org>
+
+ * src/pshinter/pshalgo1.[ch], src/pshinter/pshalgo2.[ch]: Removed.
+ * src/pshinter/pshalgo.h: Removed.
+
+ * src/pshinter/pshalgo3.[ch]: Renamed to...
+ * src/pshinter/pshalgo.[ch]: New files.
+ s/PSH3/PSH/.
+ s/psh3/psh/.
+ s/ps3/ps/.
+
+ * src/pshinter/pshrec.c, src/pshinter/pshinter.c: Updated.
+ * src/pshinter/rules.mk, src/pshinter/Jamfile: Updated.
+
+ * src/pshinter/pshglob.[ch] (psh_dimension_snap_width): Commented
+ out.
+
+ * tests/gview.c: Remove code for pshalgo1 and pshalgo2.
+ Updated.
+
+2003-05-28 Martin Zinser <zinser@decus.de>
+
+ * vms_make.com: Reworked support for shareable images on VMS. The
+ first version was kind of a hack; the current implementation of the
+ procedure to extract the required symbols is much cleaner.
+
+ Reworked creation of MMS files, avoiding a number of temporary files
+ which were created in the previous version.
+
+ Further work on creating descrip.mms files on the fly.
+
+ * builds/vms/descrip.mms, src/autohint/descrip.mms,
+ src/type1/descrip.mms: Removed.
+
+2003-05-28 Werner Lemberg <wl@gnu.org>
+
+ * src/pshinter/pshalgo3.c (psh3_glyph_compute_extrema): Skip
+ contours with only a single point to avoid segfault.
+
+ * src/base/ftglyph.c (FT_Glyph_To_Bitmap): Activate code for
+ handling `origin'.
+
+2003-05-24 Werner Lemberg <wl@gnu.org>
+
+ * src/autohint/ahtypes.h (AH_OPTION_NO_STRONG_INTERPOLATION):
+ Removed since unused.
+
+2003-05-21 Werner Lemberg <wl@gnu.org>
+
+ * include/freetype/config/ftstdlib.h (ft_strcat): New wrapper macro
+ for strcat.
+
+ * src/base/ftmac.c (create_lwfn_name): s/isupper/ft_isupper/.
+ (parse_font): s/memcpy/ft_memcpy/.
+ (is_dfont) [TARGET_API_MAC_CARBON]: s/memcmp/ft_memcmp/.
+ * src/base/ftobjs.c (load_mac_face) [FT_MACINTOSH]:
+ s/strlen/ft_strlen/.
+ s/strcat/ft_strcat/.
+ s/strcpy/ft_strcpy/.
+ * src/gzip/zutil.h: s/memset/ft_memset/.
+ s/memcmp/ft_memcmp/.
+
+ * src/bdf/bdfdrivr.c (BDF_Face_Init), src/pcf/pcfdriver.c
+ (PCF_Face_Init): Test for charset registry case-insensitively.
+
+ * src/gzip/ftgzip.c (ft_gzip_file_io): Revert change from yesterday;
+ it has already been fixed differently.
+
+ * src/truetype/ttinterp.c (DO_SFVTL): Add missing braces around
+ if-clause.
+
+2003-05-21 Martin Zinser <zinser@decus.de>
+
+ * t1load.c (parse_blend_axis_types): Fix compiler warning.
+
+ * descrip.mms: Removed. Now created by...
+
+ * vms_make.com: New file.
+
+2003-05-21 Weiqi Gao <weiqigao@networkusa.net>
+
+ * src/gzip/ftgzip.c (ft_gzip_file_io): Avoid zero value of `delta'
+ to prevent infinite loop.
+
+2003-05-21 Lars Clausen <lrclause@cs.uiuc.edu>
+
+ * docs/VERSION.DLL: Provide better autoconf snippet to check
+ FreeType version.
+
+2003-05-21 Werner Lemberg <wl@gnu.org>
+
+ * src/base/ftobjs.c (open_face): Free `internal' not
+ `face->internal' in case of error to avoid possible segfault.
+
+ * src/pshinter/pshalgo3.c (ps3_hints_apply): Check whether we
+ actually have an outline.
+
+2003-05-20 David Chester <davidchester@qmx.net>
+
+ * src/pshinter/pshalgo3.c (ps3_hints_apply): Try to optimize
+ y_scale so that the top of non-capital letters is aligned on a pixel
+ boundary whenever possible.
+
+ * src/autohint/ahhint.c (ah_hint_edges): Make sure that lowercase
+ m's maintain their symmetry.
+
+2003-05-20 Werner Lemberg <wl@gnu.org>
+
+ * src/autohint/ahhint.c (ah_hinter_load_glyph): Oops! David's
+ patch from yesterday has been resolved already in a different
+ way. Reverted.
+
+2003-05-19 David Chester <davidchester@qmx.net>
+
+ * src/autohint/ahhint.c (ah_hinter_load_glyph): Don't scale
+ y_scale locally but face->size->metrics.y_scale.
+
+2003-05-19 David Turner <david@freetype.org>
+
+ * src/sfnt/ttcmap0.c (tt_cmap4_char_next): Select proper start
+ value for `hi' to avoid infinite loop.
+
+2003-05-18 Yong Sun <sunyong@njstar.com>
+
+ * src/raster/ftraster.c (Insert_Y_Turn): Fix overflow test.
+
+2003-05-18 Werner Lemberg <wl@gnu.org>
+
+ * include/freetype/config/ftoption.h [FT_CONFIG_OPTION_MAC_FONTS]:
+ New macro.
+ * src/base/ftobjs.c: Use it to control mac font support on non-mac
+ platforms.
+
+2003-05-17 George Williams <gww@silcom.com>
+
+ Implement partial support of Mac fonts on non-Mac platforms.
+
+ * src/base/ftobjs.c (memory_stream_close, new_memory_stream,
+ open_face_from_buffer, Mac_Read_POST_Resource,
+ Mac_Read_sfnt_Resource, IsMacResource, IsMacBinary, load_mac_face)
+ [!FT_MACINTOSH]: New functions.
+ (FT_Open_Face) [!FT_MACINTOSH]: Use load_mac_face.
+
+2003-05-17 Werner Lemberg <wl@gnu.org>
+
+ * src/base/ftobjs.c (FT_Load_Glyph): Scale linear advance width only
+ if FT_FACE_FLAG_SCALABLE is set (otherwise we have a division by
+ zero since FNT and friends don't define `face->units_per_EM').
+
+2003-05-15 David Turner <david@freetype.org>
+
+ * src/base/fttrigon.c (FT_Vector_Rotate): Avoid rounding errors
+ for small values.
+
+2003-05-15 Werner Lemberg <wl@gnu.org>
+
+ * src/autohint/ahtypes.h (AH_PointRec): Remove unused `in_angle'
+ and `out_angle' fields.
+
+2003-05-14 George Williams <gww@silcom.com>
+
+ * src/base/ftmac.c (FT_New_Face_From_SFNT): Handle CFF files also.
+
+2003-05-14 Werner Lemberg <wl@gnu.org>
+
+ * include/freetype/freetype.h: Fix typo in comment
+ (FT_HAS_FIXED_SIZES).
+
+2003-05-10 Dan Williams <dan@bigw.org>
+
+ * builds/unix/aclocal.m4: Comment out definition of
+ `allow_undefined_flag' for Darwin 1.3.
+ * builds/unix/configure.ac: Add option --with-old-mac-fonts.
+ * builds/unix/ltmain.sh: Fix version numbering for Darwin 1.3.
+ * builds/unix/configure: Regenerated.
+
+ * include/freetype/config/ftconfig.h: Fix conditions for defining
+ `FT_MACINTOSH'.
+ * src/base/ftbase.c: Include `ftmac.c' conditionally.
+ * src/base/ftmac.c: Handle __GNUC__.
+
+2003-05-07 YAMANO-UCHI Hidetoshi <mer@din.or.jp>
+
+ * src/cid/cidload.c (is_alpha): Removed.
+ (cid_parse_dict): Use `cid_parser_skip_alpha' instead of `is_alpha'.
+
+2003-05-07 Werner Lemberg <wl@gnu.org>
+
+ * src/autohint/ahoptim.c, src/autohint/ahoptim.h: Obsolete, removed.
+
+2003-05-07 David Turner <david@freetype.org>
+
+ * src/autohint/ahglyph.c (ah_setup_uv): Exchange `for' loop and
+ `switch' statement to make it run faster.
+ (ah_outline_compute_segments): Reset `segment->score' and
+ `segment->link'.
+ (ah_outline_link_segments): Provide alternative code which does
+ the same but runs much faster.
+ Handle major direction also.
+ (ah_outline_compute_edges): Scale `edge_distance_threshold' down
+ after rounding instead of scaling comparison value in loop.
+
+ * src/autohint/ahhint.c (ah_hinter_align_strong_points): Provide
+ alternative code which runs faster.
+ Handle `before->scale == 0'.
+
+ * src/autohint/ahtypes.h (AH_SegmentRec): Move some fields down.
+ (AH_EdgeRec): Move some fields in structure.
+ New field `scale'.
+
+ * src/sfnt/ttcmap0.c (tt_cmap4_char_next): Use binary search.
+
+2003-05-02 Werner Lemberg <wl@gnu.org>
+
+ * src/autohint/ahoptim.c (LOG): Renamed to...
+ (AH_OPTIM_LOG): This.
+ (AH_Dump_Springs): Fix log message format.
+
+ * src/autohint/ahhint.c (ah_hint_edges_3): Renamed to...
+ (ah_hint_edges): This.
+
+2002-05-02 Keith Packard <keithp@keithp.com>
+
+ * src/bdf/bdfdrivr.c (BDF_Set_Pixel_Size): Initialize `max_advance'.
+
+2003-05-01 Werner Lemberg <wl@gnu.org>
+
+ * src/autohint/ahglyph.c (ah_test_extrema): Renamed to...
+ (ah_test_extremum): This.
+
+2003-04-28 Werner Lemberg <wl@gnu.org>
+
+ * builds/unix/configure.ac: Generate `freetype.pc' from
+ `freetype.in'.
+ * builds/unix/configure: Regenerated.
+ * builds/unix/install.mk (install, uninstall): Handle `freetype.pc'.
+
+2003-04-28 Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
+
+ * builds/unix/freetype2.in: New file. Contains building information
+ for the `pkg-config' package.
+
+2003-04-28 David Turner <david@freetype.org>
+
+ * src/base/ftobjs.c (FT_Load_Glyph): Fix boundary check for
+ `glyph_index'.
+
+2003-04-25: Graham Asher <graham.asher@btinternet.com>
+
+ Added the optional unpatented hinting system for TrueType. It
+ allows typefaces which need hinting to produce correct glyph forms
+ (e.g., Chinese typefaces from Dynalab) to work acceptably without
+ infringing Apple patents. This system is compiled only if
+ TT_CONFIG_OPTION_COMPILE_UNPATENTED_HINTING is defined in
+ ftoption.h.
+
+ * include/freetype/ttunpat.h: New file. Defines
+ FT_PARAM_TAG_UNPATENTED_HINTING.
+
+ * include/freetype/config/ftheader.h (FT_TRUETYPE_UNPATENTED_H): New
+ macro to use when including ttunpat.h.
+
+ * include/freetype/config/ftoption.h
+ (TT_CONFIG_OPTION_COMPILE_UNPATENTED_HINTING,
+ TT_CONFIG_OPTION_FORCE_UNPATENTED_HINTING): New configuration macros
+ (not defined, but in comments) for the unpatented hinting system.
+
+ * include/freetype/internal/tttypes.h (TT_FaceRec)
+ [TT_CONFIG_OPTION_COMPILE_UNPATENTED_HINTING]: New element `FT_Bool
+ unpatented_hinting'.
+
+ * src/truetype/ttinterp.c (NO_APPLE_PATENT, APPLE_THRESHOLD):
+ Removed.
+ (GUESS_VECTOR): New macro.
+ (TT_Run_Context) [TT_CONFIG_OPTION_COMPILE_UNPATENTED_HINTING]:
+ Set `both_x_axis'.
+ (tt_default_graphics_state)
+ [TT_CONFIG_OPTION_COMPILE_UNPATENTED_HINTING]: Updated.
+ (Current_Ratio) [TT_CONFIG_OPTION_COMPILE_UNPATENTED_HINTING]:
+ Handle `unpatented_hinting'.
+ (Direct_Move) [NO_APPLE_PATENT]: Removed.
+ [TT_CONFIG_OPTION_COMPILE_UNPATENTED_HINTING]: Insert assertion.
+ (Project, FreeProject)
+ [TT_CONFIG_OPTION_COMPILE_UNPATENTED_HINTING]: Insert assertion.
+ (Compute_Funcs) [TT_CONFIG_OPTION_COMPILE_UNPATENTED_HINTING]:
+ Implement unpatented hinting.
+ (DO_SPVTCA, DO_SFVTCA, DO_SPVTL, DO_SFVTL, DO_SPVFS, DO_SFVFS,
+ Ins_SDPVTL): Call `GUESS_VECTOR'.
+ (DO_GPV, DO_GFV) [TT_CONFIG_OPTION_COMPILE_UNPATENTED_HINTING]:
+ Handle `unpatented_hinting'.
+ (Compute_Point_Displacement) [NO_APPLE_PATENT]: Removed.
+ [TT_CONFIG_OPTION_COMPILE_UNPATENTED_HINTING]: Implement unpatented
+ hinting.
+ (Move_Zp2_Point, Ins_SHPIX, Ins_DELTAP, Ins_DELTAC)
+ [TT_CONFIG_OPTION_COMPILE_UNPATENTED_HINTING]: Implement unpatented
+ hinting.
+ (TT_RunIns): Updated.
+
+ * src/truetype/ttobjs.c
+ [TT_CONFIG_OPTION_COMPILE_UNPATENTED_HINTING]: Include
+ FT_TRUETYPE_UNPATENTED_H.
+ (tt_face_init) [TT_CONFIG_OPTION_COMPILE_UNPATENTED_HINTING,
+ TT_CONFIG_OPTION_FORCE_UNPATENTED_HINTING]: Check
+ FT_PARAM_TAG_UNPATENTED_HINTING.
+
+ * src/truetype/ttobjs.h (TT_GraphicsState)
+ [TT_CONFIG_OPTION_COMPILE_UNPATENTED_HINTING]: Add `both_x_axis'.
+
+2003-04-25 Werner Lemberg <wl@gnu.org>
+
+ * src/bdf/bdflib.c (hash_bucket, hash_lookup): Use `const' for first
+ argument.
+ (bdf_get_font_property): Use `const' for third argument.
+ Updated all callers.
+ * src/bdf/bdfdrivr.c (BDF_Face_Init): Set pixel width and height
+ similar to the PCF driver.
+ * src/bdf/bdf.h (_hashnode): Use `const' for `key'.
+ Updated.
+
+ * src/gzip/ftgzip.c: C++ doesn't like that the array `inflate_mask'
+ is declared twice. It is perhaps better to modify the zlib source
+ files directly instead of this hack.
+ (zcalloc, zfree, ft_gzip_stream_close, ft_gzip_stream_io): Add casts
+ to make build with g++ successful.
+
+2003-04-24 Manish Singh <yosh@gimp.org>
+
+ * src/cid/cidobjs.c (cid_face_init), src/type1/t1objs.c
+ (T1_Face_Init), src/type42/t42objs.c (T42_Face_Init): Split on `-'
+ also for searching the style name.
+
+2003-04-24 David Turner <david@freetype.org>
+
+ * src/pcf/pcfread.c (pcf_load_font): Fixed the computation of
+ face->num_glyphs. We must increase the value by 1 to respect the
+ convention that glyph index 0 always corresponds to the `missing
+ glyph'.
+
+2003-04-24 Werner Lemberg <wl@gnu.org>
+
+ * builds/unix/unix-cc.in (CFLAGS): Add @CPPFLAGS@.
+
+2003-04-24 Dieter Baron <dillo@netbsd.org>
+
+ * builds/unix/freetype-config.in (cflags): Emit FreeType 2's include
+ files first. Otherwise there are conflicts with FreeType 1
+ installed simultaneously.
+
+2003-04-23 Werner Lemberg <wl@gnu.org>
+
+ Fixing bugs reported by Nelson Beebe.
+
+ * src/base/ftstroker.c (FT_Stroker_ParseOutline): Remove unused
+ variable `in_path'.
+
+ * src/base/ftobjs (ft_glyphslot_set_bitmap): Change type of
+ second argument to `FT_Byte*'.
+ * include/freetype/internal/ftobjs.h: Updated.
+
+ * src/bdf/bdflib.c (_bdf_readstream): Remove unused variable `res'.
+ (_bdf_parse_glyphs): Remove unused variable `next'.
+ Mark `call_data' as unused.
+
+ * src/cache/ftlru.c (FT_LruList_Lookup): Remove unused variable
+ `plast'.
+
+ * src/pcf/pcfread.c (pcf_seek_to_table_type): Slight recoding to
+ actually use `error'.
+ (pcf_load_font): Remove unused variable `avgw'.
+
+ * src/pfr/pfrobjs.c (pfr_face_get_kerning): Change return type
+ to `void'.
+ Mark `error' as unused.
+ * src/pfr/pfrobjs.h: Updated.
+ * src/pfr/pfrdrivr.c (pfr_get_kerning): Updated.
+
+ * src/sfnt/ttload.c (sfnt_dir_check): Remove unused variable
+ `format_tag'.
+
+ * src/sfnt/ttcmap0.c (tt_cmap6_validate, tt_cmap10_validate): Remove
+ unused variable `start'.
+ (tt_cmap10_char_next): Remove unused variable `result'
+
+ * src/sfnt/sfobjs.c (tt_face_get_name): Mark `error' as unused.
+
+ * src/sfnt/sfdriver.c (get_sfnt_postscript_name): Mark `error' as
+ unused.
+
+ * src/type1/t1objs.c (T1_Face_Init): Remove unused variable
+ `pshinter'.
+
+ * src/type1/t1gload.c (T1_Load_Glyph): Use `glyph_data_loaded'
+ only for FT_CONFIG_OPTION_INCREMENTAL.
+
+2003-04-23 Akito Hirai <akito@kde.gr.jp>
+
+ * src/sfnt/ttcmap0.c (tt_cmap4_validate): Provide a weak variant
+ of the glyph ID bounding check if FT_VALIDATE_TIGHT is not active.
+ Without this change, many CJK fonts from Dynalab are rejected.
+
+2003-04-23 Joe Marcus Clarke <marcus@FreeBSD.org>
+
+ * src/base/ftbdf.c (FT_Get_BDF_Property): Check for valid
+ `get_interface'.
+
+2003-04-23 Paul Miller <paulm@profoundeffects.com>
+
+ * src/base/ftmac.c (parse_fond): Fix handling of style names.
+
+2003-04-23 Werner Lemberg <wl@gnu.org>
+
+ * src/pfr/pfrload.c (pfr_extra_item_load_font_id): Use FT_PtrDist
+ instead of FT_UInt for `len'.
+
+2003-04-22 Werner Lemberg <wl@gnu.org>
+
+ * src/gzip/ftgzip.c (zcalloc) [!FT_CONFIG_OPTION_SYSTEM_ZLIB]:
+ Convert K&R format to modern C usage.
+ (FT_Stream_OpenGzip): Use long constant.
+
+2003-04-21 Werner Lemberg <wl@gnu.org>
+
+ * src/cache/ftccache.c (ftc_cache_lookup): Remove shadow declaration
+ of `manager'.
+
+2003-04-20 Werner Lemberg <wl@gnu.org>
+
+ * doc/INSTALL.UNX: Cleaned up.
+
+2003-04-09 Torrey Lyons <torrey@mrcla.com>
+
+ * src/base/ftmac.c (open_face_from_buffer): Removed a double-free
+ bug that had nasty consequences when trying to open an `invalid'
+ font on a Mac.
+
+2003-04-09 Mike Fabian <mfabian@suse.de>
+
+ * src/bdf/bdfdrivr.h (BDF_encoding_el), src/pcf/pcf.h
+ (PCF_EncodingRec): Changed FT_Short to FT_UShort in order to be able
+ to access more than 32768 glyphs in fonts.
+
+2003-04-08 David Turner <david@freetype.org>
+
+
+ * Version 2.1.4 released.
+ =========================
+
+
+2003-04-03 Martin Muskens <mmuskens@aurelon.com>
+
+ * src/type1/t1load.c (T1_Open_Face): Fixed the code to make it
+ handle special cases where a font only contains a `.notdef' glyph
+ (happens in PDF-embedded fonts). Otherwise, FT_Panic was called.
+
+2003-03-27 David Turner <david@freetype.org>
+
+ * README: Updated.
+
+ * README.UNX: Removed (now replaced by docs/INSTALL.UNX).
+
+ * src/pshinter/pshalgo3.c: The hinter now performs as in 2.1.3 and
+ will ignore stem quantization only when FT_LOAD_TARGET_SMOOTH is
+ used.
+ (psh3_dimension_quantize_len): Enabled.
+ (psh3_hint_align): Enable commented code.
+ (psh3_hint_align_light): Commented out.
+
+ * src/base/ftobjs.c (FT_Set_Char_Size): Changed the default
+ computations to include rounding in all cases; this is required to
+ provide accurate kerning data when native TrueType hinting is
+ enabled.
+
+ * src/type1/t1load.c (is_name_char): The Type 1 loader now accepts
+ more general names according to the PostScript specification (the
+ previous one was too restrictive).
+ (parse_font_name, parse_encoding, parse_charstrings, parse_dict):
+ Use `is_name_char'.
+ (parse_subrs): Handle empty arrays.
+
+2003-03-20 David Turner <david@freetype.org>
+
+ Serious rewriting of the documentation.
+
+ * docs/BUGS, docs/BUILD: Removed.
+ * docs/DEBUG.TXT: Renamed to...
+ * docs/DEBUG: This.
+ * docs/CUSTOMIZE, docs/TRUETYPE, docs/UPGRADE.UNX: New files.
+ * docs/INSTALL.ANY, docs/INSTALL.UNX, docs/INSTALL.GNU New files,
+ containing platform specific information previously in INSTALL.
+ * docs/readme.vms: Renamed to...
+ * docs/INSTALL.VMS: This.
+
+ * docs/*: Updated.
+
+ Introduced three new functions to deal with glyph bitmaps within
+ FT_GlyphSlot objects:
+
+ ft_glyphslot_free_bitmap
+ ft_glyphslot_alloc_bitmap
+ ft_glyphslot_set_bitmap
+
+ These functions are much more convenient to use than managing the
+ FT_GLYPH_OWN_BITMAP flag manually.
+
+ * include/freetype/internal/ftobjs.h (ft_glyphslot_free_bitmap,
+ ft_glyphslot_alloc_bitmap, ft_glyphslot_set_bitmap): New functions.
+ * src/base/ftobjs.c: Implement them.
+ (ft_glyphslot_done): Use ft_glyphslot_free_bitmap.
+
+ * src/bdf/bdfdrivr.c (BDF_Glyph_Load), src/pcf/pcfdriver.c
+ (PCF_Glyph_Load): Remove unused variable `memory'.
+ Use `ft_glyphslot_*' functions.
+ Don't set `FT_GLYPH_OWN_BITMAP'.
+
+ * src/pfr/pfrsbit.c (pfr_slot_load_bitmap): Use
+ `ft_glyphslot_alloc_bitmap'.
+
+ * src/sfnt/ttsbit.c (Load_SBit_Image): Change 5th argument to type
+ `FT_GlyphSlot'.
+ Adding argument `depth' to handle recursive calls.
+ Use `ft_glyphslot_alloc_bitmap'.
+ (tt_face_load_sbit_image): Remove unused variable `memory'.
+ Don't handle `FT_GLYPH_OWN_BITMAP'.
+ Update call to Load_SBit_Image.
+
+ * src/type42/t42objs.c (ft_glyphslot_clear): Renamed to...
+ (t42_glyphslot_clear): This. Updated caller.
+ Call `ft_glyphslot_free_bitmap'.
+
+ * src/winfonts/winfnt.c (FNT_Load_Glyph): Use
+ `ft_glyphslot_set_bitmap'.
+ Don't handle `FT_GLYPH_OWN_BITMAP'.
+
+ * src/cache/ftlru.c (FT_LruList_Lookup): Fixed an invalid assertion
+ check.
+
+ * src/autohint/ahglyph.c (ah_outline_load): Add two scaling
+ arguments.
+ * src/autohint/ahglyph.h: Updated.
+ * src/autohint/ahhint.c (ah_hinter_load): Updated.
+ * src/autohint/ahglobal.c (ah_hinter_compute_widths): Updated.
+
+ * src/cache/ftccache.c (ftc_family_done): Fixed small bug that could
+ crash the cache in rare circumstances (mostly with broken fonts).
+
+2003-03-15 David Turner <david@freetype.org>
+
+ * src/truetype/ttdriver.c (Set_Char_Sizes): Fixed a small rounding
+ bug. Actually, it seems that previous versions of FreeType didn't
+ perform TrueType rounding exactly as appropriate.
+
+2003-03-14 David Turner <david@freetype.org>
+
+ * src/truetype/ttdriver.c (Set_Char_Sizes): Fixing the small
+ TrueType native rendering glitches; they came from a small rounding
+ error.
+
+2003-03-13 David Turner <david@freetype.org>
+
+ Added new environment variables to control memory debugging with
+ FreeType. See the description of `FT2_DEBUG_MEMORY',
+ `FT2_ALLOC_TOTAL_MAX' and `FT2_ALLOC_COUNT_MAX' in DEBUG.TXT.
+
+ * src/base/ftdbgmem.c (FT_MemTableRec): Add `alloc_count',
+ `bound_total', `alloc_total_max', `bound_count', `alloc_count_max'.
+ (ft_mem_debug_alloc): Handle new variables.
+ (ft_mem_debug_init): s/FT_DEBUG_MEMORY/FT2_DEBUG_MEMORY/.
+ Handle new environment variables.
+ * docs/DEBUG.TXT: Updated.
+
+ Fixed the cache sub-system to correctly deal with out-of-memory
+ conditions.
+
+ * src/cache/ftccache.c (ftc_node_destroy): Comment out generic
+ check.
+ (ftc_cache_lookup): Implement loop.
+ * src/cache/ftccmap.c: Define FT_COMPONENT.
+ * src/cache/ftcsbits.c (ftc_sbit_node_load): Handle
+ FT_Err_Out_Of_Memory.
+ * src/cache/ftlru.c: Include FT_INTERNAL_DEBUG_H.
+ (FT_LruList_Lookup): Implement loop.
+
+ * src/pfr/pfrobjs.c (pfr_face_done): Fix memory leak.
+ (pfr_face_init): Fixing compiler warnings.
+
+ * src/psaux/psobjs.c (reallocate_t1_table): Fixed a bug (memory
+ leak) that only happened when a try to resize an array would end in
+ an out-of-memory condition.
+
+ * src/smooth/ftgrays.c (gray_convert_glyph): Removed compiler
+ warnings / volatile bug.
+
+ * src/truetype/ttobjs.c (tt_glyphzone_done): Removed segmentation
+ fault that happened in tight memory environments.
+
+2003-02-28 Pixel <pixel@mandrakesoft.com>
+
+ * src/gzip/ftgzip.c (ft_gzip_file_done): Fixed memory leak: The ZLib
+ stream was not properly finalized.
+
+2003-02-25 Anthony Fok <anthony@thizlinux.com>
+
+ * src/cache/ftccmap.c: Include FT_TRUETYPE_IDS_H.
+ (ftc_cmap_family_init): The cmap cache now
+ supports UCS-4 charmaps when available in Asian fonts.
+
+ * src/sfnt/ttload.c, src/base/ftobjs.c: Changed `asian' to `Asian'
+ in comments.
+
+2003-02-25 David Turner <david@freetype.org>
+
+ * src/gzip/ftgzip.c (ft_gzip_file_fill_output): Fixed a bug that
+ caused FreeType to loop endlessly when trying to read certain
+ compressed gzip files. The following test reveals the bug:
+
+ touch 0123456789 ; gzip 0123456789 ; ftdump 0123456789.gz
+
+ Several fixes to the PFR font driver:
+
+ - The list of available embedded bitmaps was not correctly set in
+ the root FT_FaceRec structure describing the face.
+
+ - The glyph loader always tried to load the outlines when
+ FT_LOAD_SBITS_ONLY was specified.
+
+ - The table loaded now scans for *undocumented* elements of a
+ physical font's auxiliary data record. This is necessary to
+ retrieve the `real' family and style names.
+
+ NOTE THAT THESE CHANGES THE FAMILY NAME OF MANY PFR FONTS!
+
+ * src/pfr/pfrload.c (pfr_aux_name_load): New function.
+ (pfr_phy_font_done): Free `family_name' and `style_name' also.
+ Remove unused variables.
+ (pfr_phy_font_load): Extract useful information from the auxiliary
+ bytes.
+
+ * src/pfr/pfrobjs.c (pfr_face_done): Set pointers to NULL.
+ (pfr_face_init): Provide fallback values for `family_name' and
+ `style_name'.
+ Handle strikes.
+ (pfr_slot_load): Handle FT_LOAD_SBITS_ONLY.
+ * src/pfr/pfrtypes.h (PFR_PhyFontRec): Add fields `ascent',
+ `descent', `leading', `family_name', and `style_name'.
+
+ * src/truetype/ttdriver.c (Set_Char_Sizes): Fixed a rounding bug
+ when computing the scale factors for a given character size in
+ points with resolution.
+
+ * devel/ft2build.h, devel/ftoption.h: New files (in a new directory)
+ which are special development versions of include/ft2build.h and
+ include/freetype/config/ftoption.h, respectively.
+
+2003-02-18 David Turner <david@freetype.org>
+
+ Fixing the slight distortion problem that occurred due to the latest
+ auto-hinter changes.
+
+ * src/base/ftobjs.c (ft_recompute_scaled_metrics): Fix rounding.
+
+ * src/truetype/ttdriver.c (Set_Char_Sizes): New variable `metrics2'.
+ [!TT_CONFIG_OPTION_BYTECODE_INTERPRETER]: Removed.
+
+ * src/truetype/ttobjs.h (TT_SizeRec): New field `metrics'.
+ * src/truetype/ttobjs.c (Reset_Outline_Size): Fix initialization of
+ `metrics'.
+ [FT_CONFIG_CHESTER_ASCENDER]: Code removed.
+ (Reset_SBit_Size): Fix initialization of `metrics'.
+
+ * src/truetype/ttinterp.c (TT_Load_Context): Fix initialization of
+ `exec->metrics'.
+
+ * src/autohint/ahhint.c (ah_hinter_load): Disabled the advance width
+ `correction' which seemed to provide more trouble than benefits.
+
+2003-02-13 Graham Asher <graham.asher@btinternet.com>
+
+ Changed the incremental loading interface in a way that makes it
+ simpler and allows glyph metrics to be changed (e.g., by adding a
+ constant, as required by CFF fonts) rather than just overridden.
+ This was required to make the GhostScript-to-FreeType bridge work.
+
+ * src/cff/cffgload.c (cff_slot_load) [FT_CONFIG_OPTION_INCREMENTAL]:
+ Allow metrics to be overridden.
+ * src/cid/cidgload.c (cid_load_glyph) [FT_CONFIG_OPTION_INCREMENTAL]:
+ Ditto.
+
+ * src/truetype/ttgload.c (load_truetype_glyph)
+ [FT_CONFIG_OPTION_INCREMENTAL]: Simplify.
+ (compute_glyph_metrics) [FT_CONFIG_OPTION_INCREMENTAL]: Code block
+ moved down.
+
+ * src/type1/t1gload.c (T1_Parse_Glyph_And_Get_Char_String)
+ [FT_CONFIG_OPTION_INCREMENTAL]: Updated.
+
+ * include/freetype/ftincrem.h: Updated.
+
+2003-01-31 David Turner <david@freetype.org>
+
+ * docs/CHANGES, docs/VERSION.DLL, docs/TODO: Updating documentation
+ for the 2.1.4 release.
+
+ * builds/win32/visualc/freetype.dsp,
+ builds/win32/visualc/index.html: Updating the project file for
+ 2.1.4.
+
+ * src/gzip/adler32.c, src/gzip/ftgzip.c, src/gzip/infblock.c,
+ src/gzip/infcodes.c, src/gzip/inflate.c, src/gzip/inftrees.c,
+ src/gzip/infutil.c: Removed old-style (K&R)function definitions.
+ This avoids warnings with Visual C++ at its most pedantic mode.
+
+ * src/pfr/pfrsbit.c: Removed compiler warnings.
+
+ * src/cache/ftccmap.c (ftc_cmap_family_init): Changed an FT_ERROR
+ into an FT_TRACE1 since it caused `ftview' and others to dump too
+ much junk when trying to display a waterfall with a font without a
+ Unicode charmap (e.g. SYMBOL.TTF).
+
+ Implemented FT_CONFIG_CHESTER_BLUE_SCALE, corresponding to the last
+ patch from David Chester, but with a much simpler (and saner)
+ implementation.
+
+ * src/autohint/ahhint.c (ah_hinter_load_glyph)
+ [FT_CONFIG_CHESTER_BLUE_SCALE]: Try to optimize the y_scale so that
+ the top of non-capital letters is aligned on a pixel boundary
+ whenever possible.
+
+ * src/base/ftobjs.c (FT_Set_Char_Size)
+ [FT_CONFIG_CHESTER_BLUE_SCALE]: Round differently.
+ * src/truetype/ttdriver.c (Set_Char_Sizes)
+ [TT_CONFIG_OPTION_BYTECODE_INTERPRETER]: Do some rounding only
+ if this macro is defined.
+
+ * src/truetype/ttobjs.c (Reset_Outline_Size)
+ [FT_CONFIG_CHESTER_ASCENDER]: Round differently.
+
+ * src/pshinter/pshalgo3.c: Improved the Postscript hinter. Getting
+ rid of stem snapping seems to work well here (though the stems are
+ still slightly moved to increase contrast).
+ (psh3_dimension_quantize_len): Commented out.
+ (psh3_hint_align_light): New function.
+ (psh3_hint_align): Comment out some code.
+
+ THIS IMPROVES ANTI-ALIASED RENDERING, BUT MONOCHROME AND LCD MODES
+ STILL SUCK.
+
+2003-01-22 David Chester <davidchester@qmx.net>
+
+ * src/autohint/ahhint.c (ah_compute_stem_width): Small fix to the
+ stem width optimization.
+
+2003-01-22 David Turner <david@freetype.org>
+
+ Adding a new API `FT_Get_BDF_Property' to retrieve the BDF
+ properties of a given PCF or BDF font.
+
+ * include/freetype/ftbdf.h (BDF_PropertyType): New enumeration.
+ (BDF_Property, BDF_PropertyRec): New structure.
+ FT_Get_BDF_Property): New function.
+ * include/freetype/internal/bdftypes.h: Include FT_BDF_H.
+ (BDF_GetPropertyFunc): New function pointer.
+
+ * src/base/ftbdf.c (test_font_type): New helper function.
+ (FT_Get_BDF_Charset_ID): Use `test_font_type'.
+ (FT_Get_BDF_Property): New function.
+
+ * src/bdf/bdfdrivr.c: Include FT_BDF_H.
+ (bdf_get_bdf_property, bdf_driver_requester): New functions.
+ (bdf_driver_class): Use `bdf_driver_requester'.
+
+ * src/pcf/pcfdrivr.c: Include FT_BDF_H.
+ (pcf_get_bdf_property, pcf_driver_requester): New functions
+ (pcf_driver_class): Use `pcf_driver_requester'.
+
+ * src/pcf/pcfread.c: Include `pcfread.h'.
+ (pcf_find_property): Decorate it with FT_LOCAL_DEF.
+ * src/pcf/pcfread.h: New file, providing `pcf_find_property'.
+
+ * src/sfnt/ttload.c (sfnt_dir_check): Relaxed the `head' table size
+ verification to accept a few broken fonts who pad the size
+ incorrectly (the table should be padded, but its `size' field
+ shouldn't according to the specification).
+
+2003-01-18 Werner Lemberg <wl@gnu.org>
+
+ * builds/unix/ltmain.sh: Regenerated with `libtoolize --force
+ --copy' from libtool 1.4.3.
+ * builds/unix/aclocal.m4: Regenerated with `aclocal -I .' from
+ automake 1.7.1.
+ * builds/unix/configure: Regenerated with autoconf 2.54.
+ * builds/unix/config.guess, builds/unix/config.sub: Updated from
+ `config' CVS module at subversions.gnu.org.
+ * builds/unix/install-sh, builds/unix/mkinstalldirs: Updated from
+ `automake' CVS module at subversions.gnu.org.
+
+2003-01-15 David Turner <david@freetype.org>
+
+ * include/freetype/freetype.h: Fixed documentation for
+ FT_Size_Metrics.
+
+2003-01-15 James Su <suzhe@turbolinux.com.cn>
+
+ * src/gzip/ftgzip.c (ft_gzip_check_header): Bugfix: couldn't read
+ certain gzip-ed font files (typo: `&&' -> `&').
+
+2003-01-15 Huw D M Davies <h.davies1@physics.ox.ac.uk>
+
+ Added a Windows .FNT specific API (mostly for Wine). Also fixed a
+ nasty bug in the header loader which would cause invalid memory
+ overwrites.
+
+ * include/freetype/config/ftheader.h (FT_WINFONTS_H): New macro
+ for ftwinfnt.h.
+ * include/freetype/internal/fnttypes.h: Include FT_WINFONTS_H.
+ (FNT_FontRec): Updated.
+ Move Windows FNT definition to...
+ * include/freetype/ftwinfnt.h: This new file.
+ (FT_WinFNT_HeaderRec): Rename `reserved2' to `reserved1'.
+ * src/base/ftwinfnt.c: New file, providing `FT_Get_WinFNT_Header'.
+ * src/winfonts/winfnt.c (winfnt_header_fields): Updated.
+ Rename `reserved2' to `reserved1'.
+ (fnt_font_load): Updated.
+
+ * src/base/Jamfile, src/base/descrip.mms, src/base/rules.mk:
+ Updated.
+
+2003-01-14 Graham Asher <graham.asher@btinternet.com>
+
+ * include/freetype/ftglyph.h, src/base/ftglyph.c: Added `const' to
+ the type of the first argument to FT_Matrix_Multiply, which isn't
+ changed -- this adds documentation and convenience.
+
+2003-01-13 Graham Asher <graham.asher@btinternet.com>
+
+ * src/sfnt/ttload.c (tt_face_load_metrics)
+ [FT_CONFIG_OPTION_INCREMENTAL]: TrueType typefaces without
+ horizontal metrics (without the `hmtx' table) are now tolerated if
+ an incremental interface has been specified that has a
+ get_glyph_metrics function, implying that metrics will be supplied
+ from outside. This happens for certain Type 42 fonts passed from
+ GhostScript.
+
+2003-01-11 David Chester <davidchester@qmx.net>
+
+ Patches to the auto-hinter in order to slightly improve the output.
+ Note that everything is controlled through the new
+ FT_CONFIG_OPTION_CHESTER_HINTS defined in `ftoption.h'. There are
+ also individual FT_CONFIG_CHESTER_XXX macros to control individual
+ `features'.
+
+ Note that all improvements are enabled by default, but can be
+ tweaked for optimization and testing purposes. The configuration
+ macros will most likely disappear in the short future.
+
+ * include/freetype/config/ftoption.h
+ (FT_CONFIG_OPTION_CHESTER_HINTS): New macro.
+ (FT_CONFIG_CHESTER_{SMALL_F,ASCENDER,SERIF,STEM,BLUE_SCALE})
+ [FT_CONFIG_OPTION_CHESTER_HINTS]: New macros to control individual
+ features.
+
+ * src/autohint/ahglobal.c (blue_chars) [FT_CONFIG_CHESTER_SMALL_F]:
+ Add blue zone for `fijkdbh'.
+ * src/autohint/ahglobal.h (AH_IS_TOP_BLUE)
+ [FT_CONFIG_CHESTER_SMALL_F]: Use `AH_BLUE_SMALL_F_TOP'.
+ * src/autohint/ahglyph.c (ah_outline_compute_edges)
+ [FT_CONFIG_CHESTER_SERIF]: Use `AH_EDGE_SERIF'.
+ (ah_outline_compute_blue_edges) [FT_CONFIG_CHESTER_SMALL_F]:
+ Increase threshold for `best_dist'.
+ * src/autohint/ahhint.c (ah_compute_stem_width)
+ [FT_CONFIG_CHESTER_SERIF]: Provide new version for improved serif
+ handling.
+ (ah_align_linked_edge) [FT_CONFIG_CHESTER_SERIF]: Use special
+ version of `ah_compute_stem_width'.
+ (ah_hint_edges_3) [FT_CONFIG_CHESTER_STEM]: A new algorithm for stem
+ alignment when stem widths are less than 1.5 pixels wide centers the
+ stem slightly off-center of the center of a pixel (this increases
+ sharpness and consistency).
+ [FT_CONFIG_CHESTER_SERIF]: Use special version of
+ `ah_compute_stem_width'.
+ * src/autohint/ahtypes.h [FT_CONFIG_CHESTER_SMALL_F]: Add
+ `AH_BLUE_SMALL_F_TOP'.
+
+2003-01-11 David Turner <david@freetype.org>
+
+ * include/freetype/internal/fnttypes.h (WinFNT_HeaderRec): Increase
+ size of `reserved2' to avoid memory overwrites.
+
+2003-01-08 Huw Davies <huw@codeweavers.com>
+
+ * src/winfonts/winfnt.c (winfnt_header_fields): Read 16 bytes into
+ `reserved2', not `reserved'.
+
+ * src/base/ftobjs.c (find_unicode_charmap): Fixed the error code
+ returned when the font doesn't contain a Unicode charmap. This
+ allows FT2 to load `symbol.ttf' and a few others correctly since the
+ last release.
+ (open_face): Fix return value.
+
+2003-01-08 Owen Taylor <owen@redhat.com>
+
+ Implemented the FT_RENDER_MODE_LIGHT hinting mode in the auto and
+ postscript hinters.
+
+ * src/autohint/ahtypes.h (AH_HinterRec): Add `do_stem_adjust'.
+ * src/autohint/ahhint.c (ah_compute_stem_width): Handle
+ hinter->do_stem_adjust.
+ (ah_hinter_load_glyph): Set hinter->do_stem_adjust.
+
+ * src/pshinter/pshalgo3.h (PSH3_GlyphRec): Add `do_stem_adjust'.
+ * src/pshinter/pshalgo3.c (psh3_hint_align): Use `do_stem_adjust'.
+ (ps3_hints_apply): Handle FT_RENDER_MODE_LIGHT.
+
+ * include/freetype/freetype.h (FT_Render_Mode): Add
+ FT_RENDER_MODE_LIGHT.
+
+ * src/truetype/ttgload.c: Fixing the TrueType loader to handle
+ invalid composites correctly by limiting the recursion depth.
+ (TT_MAX_COMPOSITE_RECURSE): New macro.
+ (load_truetype_glyph): Add argument `recurse_count'.
+ Load a composite only if the numbers of contours is -1, emit error
+ otherwise.
+ (TT_Load_Glyph): Updated.
+
+2003-01-08 David Turner <david@freetype.org>
+
+ * Jamrules, Jamfile, Jamfile.in, src/*/Jamfile: Small changes to
+ support the compilation of FreeType 2 as part of larger projects
+ with their own configuration options (only with Jam).
+
+2003-01-07 David Turner <david@freetype.org>
+
+ * src/base/ftstroker.c: Probably the last bug-fixes to the stroker;
+ the API is likely to change, however.
+ (ft_stroke_border_close): Don't record empty paths.
+ (ft_stroke_border_get_counts): Increase `num_points' also in for loop.
+ (ft_stroke_border_export): Don't increase `write' twice in for loops.
+ (ft_stroker_outside): Handle `phi' together with `theta'.
+ (FT_Stroker_ParseOutline): New function.
+
+ * src/base/fttrigon.c (FT_Angle_Diff): Fixing function: It returned
+ invalid values for large negative angle differences (resulting in
+ incorrect stroker computations, among other things).
+
+ * src/cache/ftccache.c (ftc_node_hash_unlink): Removing incorrect
+ assertion, and changing code to avoid hash table size contraction.
+
+ * src/base/Jamfile, src/base/rules.mk, src/base/descrip.mms: Adding
+ `ftstroker' to default build, as optional component.
+
+2002-12-26 David Turner <david@freetype.org>
+
+ * src/gzip/adler32.c, src/gzip/infblock.c, src/gzip/inflate.c,
+ src/gzip/inftrees.c, src/gzip/zconf.h, src/gzip/zlib.h,
+ src/gzip/zutil.h: Updates to allow compilation without compiler
+ warnings with LCC-Win32.
+
+ * include/freetype/freetype.h (FREETYPE_PATCH): Set to 4.
+ * builds/unix/configure.ac (version_info): Increased to 9:3:3.
+ * builds/unix/configure: Regenerated.
+ * docs/VERSION.DLL: Updated.
+
+2002-12-23 Anthony Fok <anthony@thizlinux.com>
+
+ * builds/unix/configure.ac, builds/unix/unix-cc.in (LINK_LIBRARY),
+ builds/unix/unix-def.in (SYSTEM_ZLIB): Small fix to configure
+ sub-system on Unix to allow other programs to correctly link with
+ zlib when needed.
+
+2002-12-19 David Turner <david@freetype.org>
+
+ * include/freetype/internal/sfnt.h (SFNT_Load_Table_Func): New
+ function pointer.
+
+ * include/freetype/tttables.h (FT_Load_Sfnt_Table): New function.
+ * src/base/ftobjs.c: Implement it.
+
+ * src/sfnt/sfdriver.c (sfnt_get_interface): Handle `load_sfnt'
+ module request.
+
+2002-12-17 David Turner <david@freetype.org>
+
+ * src/base/ftobjs.c (find_unicode_charmap): Added some comments to
+ better explain what's happening there.
+ (open_face): Included Graham Asher's fix to prevent faces without
+ Unicode charmaps from loading.
+
+ * src/winfonts/winfnt.c: Included George Williams's fix to support
+ version 2 fonts correctly.
+ (winfnt_header_fields): Updated.
+ (fnt_font_load): Handle version 2 fonts.
+ (FNT_Load_Glyph): Updated.
+
+2002-12-16 David Turner <david@freetype.org>
+
+ * docs/VERSION.DLL: Updating document to better explain the
+ differences between the three version numbers being used on Unix, as
+ well as providing an autoconf fragment provided by Lars Clausen.
+
+ * src/smooth/ftgrays.c (gray_render_conic): Fixed small bug that
+ prevented Bézier arcs with negative vertical coordinates to be
+ rendered appropriately.
+
+2002-12-02 Antoine Leca <Antoine-Freetype@Leca-Marti.org>
+
+ * src/base/ftobjs.c: Modified the logic to get Unicode charmaps.
+ Now it loads UCS-4 charmaps when there is one.
+ (find_unicode_charmap): New function.
+ (open_face): Refer to the above one.
+ (FT_Select_Charmap): Idem.
+
+2002-11-29 Antoine Leca <Antoine-Freetype@Leca-Marti.org>
+
+ * include/freetype/ftgzip.h: Correct the name of the controlling
+ macro (was __FTXF86_H__ ...).
+
+2002-11-27 Vincent Caron <v.caron@zerodeux.net>
+
+ * builds/unix/unix-def.in, builds/unix/freetype-config.in,
+ builds/unix/configure.ac, src/gzip/rules.mk, src/gzip/ftgzip.c
+ [FT_CONFIG_OPTION_SYSTEM_ZLIB]: Adding support for system zlib
+ installations if available on the target platform (Unix only).
+
+2002-11-23 David Turner <david@freetype.org>
+
+ * src/cff/cffload.c (cff_charset_load, cff_encoding_load): Modified
+ charset loader to accept pre-defined charsets, even when the font
+ contains fewer glyphs. Also enforced more checks to ensure that we
+ never overflow the character codes array in the encoding.
+
+2002-11-22 Antoine Leca <Antoine-Freetype@Leca-Marti.org>
+
+ * include/freetype/ttnameid.h: Updated to latest OpenType
+ specification.
+
+2002-11-18 David Turner <david@freetype.org>
+
+
+ * Version 2.1.3 released.
+ =========================
+
+
+2002-11-07 David Turner <david@freetype.org>
+
+ * src/cache/ftcsbits.c (ftc_sbit_node_load): Fixed a small bug that
+ caused problems with embedded bitmaps.
+
+ * src/otlayout/otlayout.h, src/otlayout/otlconf.h,
+ src/otlayout/otlgsub.c, src/otlayout/otlgsub.h,
+ src/otlayout/otlparse.c, src/otlayout/otlparse.h,
+ src/otlayout/otlutils.h: Updating the OpenType Layout code, adding
+ support for the first GSUB lookups. Nothing that really compiles
+ for now though.
+
+ * src/autohint/ahhint.c (ah_align_serif_edge): Disabled serif stem
+ width quantization. It produces slightly better shapes though this
+ is not distinguishable with many fonts.
+ Remove other dead code.
+
+ * src/Jamfile, src/*/Jamfile: Simplified.
+ Use $(FT2_SRC_DIR).
+
+2002-11-06 David Turner <david@freetype.org>
+
+ * include/freetype/freetype.h (FT_LOAD_TARGET_LIGHT): New macro.
+ (FT_LOAD_TARGET, FT_LOAD_TARGET_MODE): Use `& 15' instead of `& 7'.
+
+2002-11-05 David Turner <david@freetype.org>
+
+ * include/freetype/config/ftoption.h, src/gzip/ftgzip.c: Added
+ support for the FT_CONFIG_OPTION_SYSTEM_ZLIB option, used to specify
+ the use of system-wide zlib.
+
+ Note that this macro, as well as
+ TT_CONFIG_OPTION_BYTECODE_INTERPRETER, is not #undef-ed anymore.
+ This allows the build system to define them depending on the
+ configuration (typically by adding -D flags at compile time).
+
+ * src/sfnt/ttcmap0.c (tt_face_build_cmaps): Removed compiler
+ warnings in optimized mode relative to the `volatile' local
+ variables. This was not a compiler bug after all, but the fact that
+ a pointer to a volatile variable is not the same as a volatile
+ pointer to a variable :-)
+
+ The fix was to change
+ `volatile FT_Byte* p'
+ into
+ `FT_Byte* volatile p'.
+
+ * src/pfr/pfrload.c (pfr_phy_font_load), src/pfr/pfrdrivr.c
+ (pfr_get_metrics), src/gzip/inftrees.c: Removed compiler warnings in
+ optimized modes.
+
+ * src/gzip/*.[hc]: Modified our zlib copy in order to prevent
+ exporting any zlib function names outside of the component. This
+ prevents linking problems on some platforms, when applications want
+ to link FreeType _and_ zlib together.
+
+2002-11-05 Juliusz <jch@pps.jussieu.fr>
+
+ * src/psaux/psobjs.c (ps_table_add): Modified increment loop in
+ order to implement exponential behaviour.
+
+2002-11-01 David Turner <david@freetype.org>
+
+ Added PFR-specific public API. Fixed the kerning retrieval routine
+ (it returned invalid values when the outline and metrics resolution
+ differ).
+
+ * include/freetype/ftpfr.h, include/freetype/internal/pfr.h: New
+ files.
+
+ * include/freetype/internal/internal.h (FT_INTERNAL_PFR_H): New
+ macro for pfr.h.
+
+ * src/base/ftpfr.c: New file.
+ * src/base/Jamfile, src/base/descrip.mms: Updated.
+
+ * src/pfr/pfrdrivr.c: Include FT_INTERNAL_PFR_H.
+ (pfr_get_kerning, pfr_get_advance, pfr_get_metrics): New functions.
+ (pfr_service_rec): New format interface.
+ (pfr_driver_class): Use `pfr_service_rec'.
+ Replace `pfr_face_get_kerning' with `pfr_get_kerning'.
+ * src/pfr/pfrobjs.c: Remove dead code.
+
+ * src/base/ftobjs.c (ft_glyphslot_clear): Small internal fix to
+ better support bitmap-based font formats.
+
+ * src/base/ftsynth.c (FT_GlyphSlot_Embolden): Fix handling of
+ `scale'.
+ Fix arguments to `FT_Vector_From_Polar'.
+
+2002-10-31 David Turner <david@freetype.org>
+
+ Add support for automatic handling of gzip-compressed PCF files.
+
+ * src/gzip/*: New files, taken from the zlib package (except
+ ftgzip.c).
+
+ * include/freetype/ftgzip.h, src/gzip/ftgzip.c: New files.
+ * include/freetype/config/ftheader.h (FT_GZIP_H): New macro for
+ `ftgzip.h'.
+
+ * src/pcf/pcfdriver.c: Include FT_GZIP_H and FT_ERRORS_H.
+ (PCF_Face_Init): If normal open fails, try to open gzip stream.
+ (PCF_Face_Done): Close gzip stream.
+
+ * include/freetype/internal/pcftypes.h (PCF_Public_FaceRec),
+ src/pcf/pcf.h (PCF_FaceRec): Add `gzip_stream' and `gzip_source'.
+
+ * include/freetype/config/ftoption.h (FT_CONFIG_OPTION_USE_ZLIB):
+ New macro.
+ (T1_CONFIG_OPTION_DISABLE_HINTER, FT_CONFIG_OPTION_USE_CMAPS
+ FT_CONFIG_OPTION_NO_CONVENIENCE_FUNCS,
+ FT_CONFIG_OPTION_ALTERNATE_GLYPH_FORMATS): Removed.
+
+ (FT_EXPORT, FT_EXPORT_DEF, FT_DEBUG_LEVEL_ERROR,
+ FT_DEBUG_LEVEL_TRACE, FT_DEBUG_MEMORY): Comment out definitions so
+ that platform specific configuration file can override.
+
+ * include/freetype/internal/ftstream.h: Include FT_SYSTEM_H.
+
+2002-10-30 David Turner <david@freetype.org>
+
+ * FreeType 2.1.3rc3 released.
+
+2002-10-25 David Turner <david@freetype.org>
+
+ * include/freetype/ftcache.h (FT_POINTER_TO_ULONG): New macro.
+ (FTC_FACE_ID_HASH): Rewritten, using FT_POINTER_TO_ULONG.
+
+2002-10-22 Giuseppe Ghibò <ghibo@mandrakesoft.com>
+
+ * include/freetype/freetype.h (FT_Encoding): Fix entry for latin-2.
+
+2002-10-07 Werner Lemberg <wl@gnu.org>
+
+ * include/freetype/freetype.h (FT_Open_Face): Use `const' for `args'
+ (suggested by Graham).
+ * src/base/ftobjs.c (FT_Open_Face): Updated.
+ (ft_input_stream_new): Ditto.
+
+2002-10-05 David Turner <david@freetype.org>
+
+ Adding support for embedded bitmaps to the PFR driver, and rewriting
+ its kerning loader/handler to use all kerning pairs in a physical
+ font (and not just the first item).
+
+ * src/pfr/pfr.c: Include `pfrsbit.c'.
+ * src/pfr/pfrgload.c: Include `pfrsbit.h'.
+ * src/pfr/pfrload.c (pfr_extra_item_load_kerning_pairs): Rewritten.
+ (pfr_phy_font_done, pfr_phy_font_load): Updated.
+ * src/pfr/pfrobjs.c: Include `pfrsbit.h'.
+ (pfr_face_init): Handle kerning and embedded bitmaps.
+ (pfr_slot_load): Load embedded bitmaps.
+ (PFR_KERN_INDEX): Removed.
+ (pfr_face_get_kerning): Rewritten.
+ * src/pfr/pfrsbit.c, src/pfr/pfrsbit.h: New files.
+ * src/pfr/pfrtypes.h (PFR_KernItemRec): New structure.
+ (PFR_KERN_INDEX): New macro.
+ (PFR_PhyFontRec): Add items for kerning and embedded bitmaps.
+ * src/pfr/Jamfile (_sources) [FT2_MULTI]: Add `pfrsbit'.
+
+ * src/base/ftobjs.c (FT_Load_Glyph): Don't load bitmap fonts if
+ FT_LOAD_NO_RECURSE is set.
+ Load embedded bitmaps only if FT_LOAD_NO_BITMAP isn't set.
+
+ * src/tools/docmaker/content.py, src/tools/docmaker/sources.py,
+ src/tools/docmaker/tohtml.py: Fixing a few nasty bugs.
+
+ * src/sfnt/ttcmap0.c (tt_cmap4_validate): The validator for format 4
+ sub-tables is now capable of dealing with invalid `length' fields at
+ the start of the sub-table. This allows fonts like `mg______.ttf'
+ (i.e. Marriage) to return accurate charmaps.
+
+ * docs/CHANGES: Updated.
+
+2002-10-05 Werner Lemberg <wl@gnu.org>
+
+ * src/smooth/ftgrays.c (SUBPIXELS): Add cast to `TPos'.
+ Update all callers.
+ (TRUNC): Add cast to `TCoord'.
+ Update all callers.
+ (TRaster): Use `TPos' for min_ex, max_ex, min_ey, max_ey, and
+ last_ey.
+ Update all casts.
+ (gray_render_line): Fix casts for `p' and `first'.
+
+2002-10-02 Detlef Würkner <TetiSoft@apg.lahn.de>
+
+ * src/bdf/bdflib.c (bdf_load_font): Allocate the _bdf_parse_t
+ structure with FT_ALLOC instead of using the stack.
+
+2002-09-27 Werner Lemberg <wl@gnu.org>
+
+ * src/include/freetype/internal/tttypes.h (num_sbit_strikes,
+ num_sbit_scales): Use `FT_ULong'.
+ * src/sfnt/sfobjs.c (sfnt_load_face): Updated accordingly.
+ * src/sfnt/ttsbit.c (tt_face_set_sbit_strike): Ditto.
+ (find_sbit_image): Remove cast.
+ * src/raster/ftrend1.c (ft_raster1_render): Fix cast.
+
+2002-09-27 Wolfgang Domröse <porthos.domroese@harz.de>
+
+ * src/sfnt/ttload.c (tt_face_load_names): Use cast.
+ * src/sfnt/ttcmap.c (code_to_next2): Use long constant.
+ (code_to_index4): Use cast.
+ (code_to_index8_12): Fix cast.
+ * src/sfnt/ttcmap0.c (tt_cmap4_char_next, tt_cmap8_char_index,
+ tt_cmap12_char_index): Use cast for `result'.
+ (tt_face_build_cmaps): Use cast.
+ * src/sfnt/sfobjs.c (tt_name_entry_ascii_from_ucs4): Use cast for
+ `code'.
+ (sfnt_load_face): Use FT_Int32 for `flags'.
+
+ * src/smooth/ftgrays.c (gray_render_scanline, gray_render_line,
+ gray_compute_cbox, gray_convert_glyph, gray_raster_reset): Add casts
+ to `TCoord' and `int'.
+ More 16bit fixes.
+ s/FT_Pos/TPos/.
+ * src/smooth/ftsmooth.c (ft_smooth_render_generic): Add casts.
+
+2002-09-26 Werner Lemberg <wl@gnu.org>
+
+ * src/sfnt/ttpost.c (load_post_names, tt_face_free_ps_names,
+ tt_face_get_ps_name): Replace switch statement with if clauses to
+ make it more portable.
+
+ * src/cff/cffobjs.c (cff_face_init): Ditto.
+
+ * include/freetype/ftmodule.h (FT_Module_Class): Use `FT_Long' for
+ `module_size'.
+ * include/freetype/ftrender.h (FT_Glyph_Class_): Use `FT_Long' for
+ `glyph_size'.
+
+ * src/base/ftobjs.c (FT_Render_Glyph): Change second parameter to
+ `FT_Render_Mode'.
+ (FT_Render_Glyph_Internal): Change third parameter to
+ `FT_Render_Mode'.
+ * src/base/ftglyph.c (FT_Glyph_To_Bitmap): Change second parameter
+ to `FT_Render_Mode'.
+
+ * src/raster/ftrend1.c (ft_raster1_render): Change third parameter
+ to `FT_Render_Mode'.
+ * src/smooth/ftsmooth.c (ft_smooth_render, ft_smooth_render_lcd,
+ ft_smooth_render_lcd_v): Ditto.
+ (ft_smooth_render_generic): Change third and fifth parameter to
+ `FT_Render_Mode'.
+
+ * include/freetype/freetype.h, include/freetype/internal/ftobjs.h,
+ include/freetype/ftglyph.h: Updated.
+
+ * src/cff/cffdrivr.c (Load_Glyph), src/pcf/pcfdriver.c
+ (PCF_Glyph_Load), src/pfr/pfrobjs.c (pfr_slot_load),
+ src/winfonts/winfnt.c (FNT_Load_Glyph), src/t42/t42objs.c
+ (T42_GlyphSlot_Load), src/bdf/bdfdrivr.c (BDF_Glyph_Load): Change
+ fourth parameter to `FT_Int32'.
+
+ * src/pfr/pfrobjs.c (pfr_face_init): Add two missing parameters
+ and declare them as unused.
+
+ * src/cid/cidparse.h (CID_Parser): Use FT_Long for `postscript_len'.
+
+ * src/psnames/psnames.h (PS_Unicode_Value_Func): Change return
+ value to FT_UInt32.
+ * src/psnames/psmodule.c (ps_unicode_value, ps_build_unicode_table):
+ Updated accordingly.
+
+2002-09-26 Wolfgang Domröse <porthos.domroese@harz.de>
+
+ * src/cff/cffdrivr.c (Get_Kerning): Use FT_Long for `middle'.
+ (cff_get_glyph_name): Use cast for result of ft_strlen.
+ * src/cff/cffparse.c (cff_parse_real): User cast for assigning
+ `exp'.
+ * src/cff/cffload.c (cff_index_get_pointers): Use FT_ULong for
+ some local variables.
+ (cff_charset_load, cff_encoding_load): Use casts to FT_UInt for some
+ switch statements.
+ (cff_font_load): Use cast in call to CFF_Load_FD_Select.
+ * src/cff/cffobjs.c (cff_size_init): Use more casts.
+ (cff_face_init): Use FT_Int32 for `flags'.
+ * src/cff/cffgload.c (cff_operator_seac): Use cast for assigning
+ `adx' and `ady'.
+ (cff_decoder_parse_charstrings): Use FT_ULong for third parameter.
+ Use more casts.
+ * src/cff/cffcmap.c (cff_cmap_unicode_init): Use cast for `count'.
+
+ * src/cid/cidload.c (cid_read_subrs): Use FT_ULong for `len'.
+ * src/cid/cidgload.c (cid_load_glyph): Add missing cast for
+ `cid_get_offset'.
+
+ * src/psaux/t1decode.c (t1_decoder_parse_charstrings) <18>: Use
+ cast for `num_points'.
+ (t1_decoder_init): Use cast for assigning `decoder->num_glyphs'.
+
+ * src/base/ftdebug.c (ft_debug_init): Use FT_Int.
+ * include/freetype/internal/ftdriver.h (FT_Slot_LoadFunc): Use
+ `FT_Int32' for fourth parameter.
+ * src/base/ftobjs.c (open_face): Use cast for calling
+ clazz->init_face.
+
+ * src/raster/ftraster.c (Set_High_Precision): Use `1' instead of
+ `1L'.
+ (Finalize_Profile_Table, Line_Up, ft_black_init): Use casts.
+ * src/raster/ftrend1.c (ft_raster1_render): Ditto.
+
+ * src/sfnt/sfnt_dir_check: Compare `magic' with unsigned long
+ constant.
+
+2002-09-26 Detlef Würkner <TetiSoft@apg.lahn.de>
+
+ * builds/amiga/include/freetype/config/ftmodule.h: Updated.
+
+2002-09-25 David Turner <david@freetype.org>
+
+ * src/autohint/ahtypes.h (AH_HINT_METRICS): Disabling metrics
+ hinting in the auto-hinter. This produces much better anti-aliased
+ text.
+
+ * docs/CHANGES: Updating the changes documentation.
+
+2002-09-25 Anthony Fok <anthony@thizlinux.com>
+
+ * src/sfnt/ttcmap0.c (tt_cmap4_validate, tt_cmap4_char_index,
+ tt_cmap4_char_next): Added support for opens___.ttf (it contains a
+ charmap that uses offset=0xFFFFU instead of 0x0000 to indicate a
+ missing glyph).
+
+2002-09-21 Wolfgang Domröse <porthos.domroese@harz.de>
+
+ * src/truetype/ttdriver.c (Load_Glyph): Fourth parameter must be
+ FT_Int32.
+ * src/truetype/ttgload.c, src/truetype/ttgload.h (TT_Load_Glyph):
+ Ditto.
+
+2002-09-19 Wolfgang Domröse <porthos.domroese@harz.de>
+
+ More 16bit fixes.
+
+ * src/autohint/ahglobal.c (sort_values): Use FT_Pos for `swap'.
+ (ah_hinter_compute_widths): Use FT_Pos for `dist'.
+ Use AH_MAX_WIDTHS.
+ * src/autohint/ahglyph.c (ah_outline_scale_blue_edges): Use FT_Pos
+ for `delta'.
+ (ah_outline_compute_edges): Replace some ints with FT_Int and
+ FT_Pos.
+ (ah_test_extrema): Clean up code.
+ (ah_get_orientation): Use 4 FT_Int variables instead of FT_BBox to
+ hold indices.
+ * src/autohint/ahtypes.h (AH_SegmentRec): Change type of `score'
+ to FT_Pos.
+
+2002-09-19 Werner Lemberg <wl@gnu.org>
+
+ * builds/unix/config.guess, builds/unix/config.sub: Updated to
+ recent versions.
+
+2002-09-18 David Turner <david@freetype.org>
+
+ * src/base/ftobjs.c (FT_Library_Version): Bugfix.
+
+ * FreeType 2.1.3rc2 (release candidate 2) is released!
+
+2002-09-17 David Turner <david@freetype.org>
+
+ * include/freetype/freetype.h, include/freetype/ftimage.h,
+ include/freetype/ftstroker.h, include/freetype/ftsysio.h,
+ include/freetype/ftsysmem.h, include/freetype/ttnameid.h: Updating
+ the in-source documentation.
+
+ * src/tools/docmaker/tohtml.py: Updating the HTML formatter in the
+ DocMaker tool.
+
+ * src/tools/docmaker.py: Removed.
+
+2002-09-17 Werner Lemberg <wl@gnu.org>
+
+ More 16bit fixes.
+
+ * src/psaux/psobjs.c (reallocate_t1_table): Use FT_Long for
+ second parameter.
+
+2002-09-16 Werner Lemberg <wl@gnu.org>
+
+ 16bit fixes from Wolfgang Domröse.
+
+ * src/type1/t1parse.h (T1_ParserRec): Change type of `base_len'
+ and `private_len' to FT_Long.
+ * src/type1/t1parse.c (T1_Get_Private_Dict): Remove cast for
+ `private_len'.
+ * src/type1/t1load.c: Use FT_Int cast for most calls of T1_ToInt.
+ Use FT_PtrDist where appropriate.
+ (parse_encoding): Use FT_Long for `count' and `n'.
+ (read_binary_data): Use FT_Long* for second parameter.
+ * src/type1/t1afm.c (afm_atoindex): Use FT_PtrDist.
+
+ * src/cache/ftcsbits.c (ftc_sbit_node_load): Remove unused label.
+ * src/pshinter/pshalgo3.c (psh3_hint_align): Remove unused variable.
+
+2002-09-14 Werner Lemberg <wl@gnu.org>
+
+ Making ftgrays.c compile stand-alone again.
+
+ * include/freetype/ftimage.h: Include ft2build.h only if _STANDALONE_
+ isn't defined.
+ * src/smooth/ftgrays.c [_STANDALONE_]: Define ft_memset,
+ FT_BEGIN_HEADER, FT_END_HEADER.
+ (FT_MEM_ZERO): Define.
+ (TRaster) [GRAYS_USE_GAMMA]: Use `unsigned char' instead of FT_Byte.
+ (gray_render_span, gray_init_gamma): Don't use `FT_UInt'.
+ Don't cast with `FT_Byte'.
+ (grays_init_gamma): Don't use `FT_UInt'.
+
+2002-09-14 Werner Lemberg <wl@gnu.org>
+
+ * src/base/ftinit.c (FT_Add_Default_Modules): Improve error message.
+ * src/pcf/pcfdriver.c (PCF_Face_Done): Improve tracing message.
+ * include/freetype/config/ftoption.h (FT_MAX_MODULES): Increased
+ to 32.
+
+2002-09-10 Werner Lemberg <wl@gnu.org>
+
+ * builds/unix/configure.ac (version_info): Set to 9:2:3.
+ * builds/unix/configure: Regenerated.
+ * docs/VERSION.DLL: Updated.
+
+2002-09-09 David Turner <david@freetype.org>
+
+ * src/pshinter/pshalgo2.c (psh2_glyph_find_strong_points),
+ src/pshinter/pshalgo3.c (psh3_glyph_find_strong_points): Adding fix
+ to prevent segfault when hints are provided in an empty glyph.
+
+ * src/cache/ftccache.i (GEN_CACHE_LOOKUP) [FT_DEBUG_LEVEL_ERROR]:
+ Removed conditional code. This fixes a bug that prevented
+ compilation in debug mode of template instantiation.
+
+ * include/freetype/ftimage.h: Removed incorrect `zft_' definitions
+ and updated constants documentation comments.
+
+ * src/cff/cffparse.c (cff_parser_run): Fixed the CFF table loader.
+ It didn't accept empty arrays, and this prevented the loading of
+ certain fonts.
+
+ * include/freetype/freetype.h (FT_FaceRec): Updating documentation
+ comment. The `descender' value is always *negative*, not positive.
+
+2002-09-09 Owen Taylor <owen@redhat.com>
+
+ * src/pcf/pcfdriver.c (PCF_Glyph_Load): Fixing incorrect computation
+ of bitmap metrics.
+
+2002-09-08 David Turner <david@freetype.org>
+
+ Various updates to correctly support subpixel rendering.
+
+ * include/freetype/config/ftmodule.h: Add two renderers for LCD.
+
+ * src/base/ftobjs.c (FT_Load_Glyph): Updated.
+
+ * src/smooth/ftsmooth.c (ft_smooth_render_lcd,
+ ft_smooth_render_lcd_v): Set FT_PIXEL_MODE_LCD and
+ FT_PIXEL_MODE_LCD_V, respectively.
+
+ * include/freetype/cache/ftcimage.h (FTC_ImageTypeRec): New
+ structure.
+ Updated all users.
+ (FTC_ImageDesc): Removed.
+ (FTC_ImageCache_Lookup): Second parameter is now of type
+ `FTC_ImageType'.
+ Updated all users.
+ (FTC_IMAGE_DESC_COMPARE): Updated and renamed to...
+ (FTC_IMAGE_TYPE_COMPARE): This.
+ (FTC_IMAGE_DESC_HASH): Updated and renamed to...
+ (FTC_IMAGE_TYPE_HASH): This.
+
+ * include/freetype/cache/ftcsbits.h (FTC_SBitRec): Field `num_grays'
+ replaced with `max_grays'.
+ `pitch' is now FT_Short.
+ (FTC_SBitCache_Lookup): Second parameter is now of type
+ `FTC_ImageType'.
+ Updated all users.
+
+ * src/cache/ftcimage.c (FTC_ImageQueryRec, FTC_ImageFamilyRec):
+ Updated.
+ (ftc_image_node_init): Updated.
+ Moved code to convert type flags to load flags to...
+ (FTC_Image_Cache_Lookup): This function.
+ (ftc_image_family_init): Updated.
+
+ * src/cache/ftcsbits.c (FTC_SBitQueryRec, FTC_SBitFamilyRec):
+ Updated.
+ (ftc_sbit_node_load): Updated.
+ Moved code to convert type flags to load flags to...
+ (FTC_SBitCache_Lookup): This function.
+
+ * src/autohint/ahtypes.h (AH_HinterRec): Replace `no_*_hints' with
+ `do_*_snapping'.
+ Update all users (with negation).
+ * src/autohint/ahhint.c (ah_compute_stem_width): Fix threshold for
+ `dist' for `delta' < 40.
+
+ * src/pshinter/pshalgo3.h (PSH3_GlyphRec): Replace `no_*_hints' with
+ `do_*_snapping'.
+ Update all users (with negation).
+ * src/pshinter/pshalgo3.c (psh3_dimension_quantize_len): New
+ function.
+ (psh3_hint_align): Use it.
+ Improve hinting code.
+ [STRONGER]: Removed.
+ (STRONGER): Removed.
+
+ * include/freetype/freetype.h (FT_Set_Hint_Flags, FT_HINT_*):
+ Removed.
+
+2002-09-05 Werner Lemberg <wl@gnu.org>
+
+ * src/cid/cidobjs.c (CID_Size_Init): Renamed to...
+ (cid_size_init): This.
+ * src/psaux/psobjs.c (T1_Builder_Add_Point1): Renamed to...
+ (t1_builder_add_point1): This.
+
+ Updated all affected code.
+
+ * src/pshinter/pshalgo3.c (psh3_hint_align): Fix compiler warnings.
+ * src/type1/t1gload.c (T1_Compute_Max_Advance): Ditto.
+
+2002-09-04 David Turner <david@freetype.org>
+
+ * include/freetype/freetype.h: Corrected the definition of
+ ft_encoding_symbol to be FT_ENCODING_MS_SYMBOL (instead of
+ the erroneous FT_ENCODING_SYMBOL).
+
+ * builds/unix/unix-def.in (datadir): Initialize it (thanks to
+ Anthony Fok).
+
+2002-08-29 David Turner <david@freetype.org>
+
+ Slight modification to the Postscript hinter to slightly increase
+ the contrast of smooth hinting. This is very similar to what the
+ auto-hinter does when it comes to stem width computations. However,
+ it produces better results with well-hinted fonts.
+
+ * include/freetype/internal/psaux.h (T1_Decoder_FuncsRec): Add hint
+ mode to `init' member function.
+ (T1_DecoderRec): Add hint mode.
+ * include/freetype/internal/pshints (T1_Hints_ApplyFunc,
+ T2_Hints_ApplyFunc): Pass `hint_mode', not `hint_flags'.
+ * src/psaux/t1decode.c (t1_decoder_init): Add hint mode argument.
+ * src/pshinter/pshalgo1.c (ps1_hints_apply): Pass hint mode, not
+ hint flags.
+ * src/pshinter/pshalgo2.c (ps2_hints_apply): Ditto.
+ * src/pshinter/pshalgo3.c (ps3_hints_apply): Ditto.
+ (STRONGER): New macro.
+ (psh3_hint_align, psh3_hint_table_align_hints): Pass `glyph' instead
+ of `hint_flags'.
+ Implement announced changes.
+ * src/pshinter/pshalgo3.h (PSH3_GlyphRec): Add flags to control
+ vertical and horizontal hints and snapping.
+
+ * README, docs/CHANGES: Updating for the 2.1.3 release.
+
+2002-08-27 David Turner <david@freetype.org>
+
+ * Massive re-formatting changes to many, many source files. I don't
+ want to list them all here. The operations performed were all
+ logical transformations of the sources:
+
+ - trying to convert all enums and constants to CAPITALIZED_STYLE,
+ #with define definitions like
+
+ #define my_old_constants MY_NEW_CONSTANT
+
+ - big, big update of the documentation comments
+
+ * include/freetype/freetype.h, src/base/ftobjs.c,
+ src/smooth/ftsmooth.c, include/freetype/ftimage.h: Adding support
+ for LCD-optimized rendering though the new constants/enums:
+
+ FT_RENDER_MODE_LCD, FT_RENDER_MODE_LCD_V
+ FT_PIXEL_MODE_LCD, FT_PIXEL_MODE_LCD_V
+
+ This is still work in progress, don't expect everything to work
+ correctly though most of the features have been implemented.
+
+ * Adding new FT_LOAD_XXX flags, used to specify both hinting and
+ rendering targets:
+
+ FT_LOAD_TARGET_NORMAL :: anti-aliased hinting & rendering
+ FT_LOAD_TARGET_MONO :: monochrome bitmaps
+ FT_LOAD_TARGET_LCD :: horizontal RGB/BGR decimated
+ hinting & rendering
+ FT_LOAD_TARGET_LCD_V :: vertical RGB/BGR decimated
+ hinting & rendering
+
+ Note that FT_LOAD_TARGET_NORMAL is 0, which means that the default
+ behaviour of the font engine is _unchanged_.
+
+ * include/freetype/ftimage.h
+ (FT_Outline_{Move,Line,Conic,Cubic}To_Func): Renamed to...
+ (FT_Outline_{Move,Line,Conic,Cubic}ToFunc): This.
+ (FT_Raster_Span_Func): Renamed to ...
+ (FT_SpanFunc): This.
+ (FT_Raster_{New,Done,Reset,Set_Mode,Render}_Func): Renamed to ...
+ (FT_Raster_{New,Done,Reset,SetMode,Render}Func}: This.
+
+ Updated all affected code.
+
+ * include/freetype/ftrender.h
+ (FT_Glyph_{Init,Done,Transform,BBox,Copy,Prepare}_Func): Renamed
+ to ...
+ (FT_Glyph_{Init,Done,Transform,GetBBox,Copy,Prepare}Func): This.
+ (FTRenderer_{render,transform,getCBox,setMode}): Renamed to ...
+ (FT_Renderer_{RenderFunc,TransformFunc,GetCBoxFunc,SetModeFunc}):
+ This.
+
+ Updated all affected code.
+
+ * src/autohint/ahtypes.h (AH_Point, AH_Segment, AH_Edge, AH_Globals,
+ AH_Face_Globals, AH_Outline, AH_Hinter): These typedefs are now
+ pointers to the corresponding `*Rec' structures. All source files
+ have been updated accordingly.
+
+ * src/cff/cffgload.c (cff_decoder_init): Add hint mode as parameter.
+ * src/cff/cffgload.h (CFF_Decoder): Add `hint_mode' element.
+
+ * src/cid/cidgload.c (CID_Compute_Max_Advance): Renamed to...
+ (cid_face_compute_max_advance): This.
+ (CID_Load_Glyph): Renamed to...
+ (cid_slot_load_glyph): This.
+ * src/cid/cidload.c (CID_Open_Face): Renamed to...
+ (cid_face_open): This.
+ * src/cid/cidobjs.c (CID_GlyphSlot_{Done,Init}): Renamed to...
+ (cid_slot_{done,init}): This.
+ (CID_Size_{Get_Globals_Funcs,Done,Reset): Renamed to...
+ (cid_size_{get_globals_funcs,done,reset): This.
+ (CID_Face_{Done,Init}): Renamed to...
+ (cid_face_{done,init}): This.
+ (CID_Driver_{Done,Init}: Renamed to...
+ (cid_driver_{done,init}: This.
+ * src/cid/cidparse.c (CID_{New,Done}_Parser): Renamed to...
+ (cid_parser_{new,done}): This.
+ * src/cid/cidparse.h (CID_Skip_{Spaces,Alpha}): Renamed to...
+ (cid_parser_skip_{spaces,alpha}): This.
+ (CID_To{Int,Fixed,CoordArray,FixedArray,Token,TokenArray}): Renamed
+ to...
+ (cid_parser_to_{int,fixed,coord_array,fixed_array,token,token_array}):
+ This.
+ (CID_Load_{Field,Field_Table): Renamed to...
+ (cid_parser_load_{field,field_table}): This.
+ * src/cid/cidriver.c (CID_Get_Interface): Renamed to...
+ (cid_get_interface): This.
+
+ Updated all affected code.
+
+ * src/psaux/psobjs.c (PS_Table_*): Renamed to...
+ (ps_table_*): This.
+ (T1_Builder_*): Renamed to...
+ (t1_builder_*): This.
+ * src/psaux/t1decode.c (T1_Decoder_*): Renamed to...
+ (t1_decoder_*): This.
+
+ * src/psnames/psmodule.c (PS_*): Renamed to...
+ (ps_*): This.
+
+ Updated all affected code.
+
+ * src/sfnt/sfdriver (SFNT_Get_Interface): Renamed to...
+ (sfnt_get_interface): This.
+ * src/sfnt/sfobjs.c (SFNT_*): Renamed to...
+ (sfnt_*): This.
+ * src/sfnt/ttcmap.c (TT_CharMap_{Load,Free}): Renamed to...
+ (tt_face_{load,free}_charmap): This.
+ * src/sfnt/ttcmap0.c (TT_Build_CMaps): Renamed to...
+ (tt_face_build_cmaps): This.
+ * src/sfnt/ttload.c (TT_*): Renamed to...
+ (tt_face_*): This.
+ * src/sfnt/ttpost.c (TT_Post_Default_Names): Renamed to...
+ (tt_post_default_names): This.
+ (Load_*): Renamed to...
+ (load_*): This.
+ (TT_*): Renamed to...
+ (tt_face_*): This.
+ * src/sfnt/ttsbit.c (TT_*): Renamed to...
+ (tt_face_*): This.
+ ({Find,Load,Crop}_*): Renamed to...
+ ({find,load,crop}_*): This.
+
+ Updated all affected code.
+
+ * src/smooth/ftsmooth.c (ft_smooth_render): Renamed to...
+ (ft_smooth_render_generic): This.
+ Make function more generic by adding vertical and horizontal scaling
+ factors.
+ (ft_smooth_render, ft_smooth_render_lcd, ft_smooth_render_lcd_v):
+ New functions.
+
+ (ft_smooth_lcd_renderer_class, ft_smooth_lcdv_renderer_class): New
+ classes.
+
+ * src/truetype/ttobjs.c (TT_{Done,New}_GlyphZone): Renamed to...
+ (tt_glyphzone_{done,new}): This.
+ (TT_{Face,Size,Driver}_*): Renamed to...
+ (tt_{face,size,driver}_*): This.
+ * src/truetype/ttpload.c (TT_Load_Locations): Renamed to...
+ (tt_face_load_loca): This.
+ (TT_Load_Programs): Renamed to...
+ (tt_face_load_fpgm): This.
+ (TT_*): Renamed to...
+ (tt_face_*): This.
+
+2002-08-27 Werner Lemberg <wl@gnu.org>
+
+ * docs/VERSION.DLL: New file.
+
+2002-08-23 Graham Asher <graham.asher@btinternet.com>
+
+ * src/cff/cffgload.c (cff_operator_seac)
+ [FT_CONFIG_OPTION_INCREMENTAL]: Incremental fonts (actually not
+ incremental in the case of CFF but just using callbacks to get glyph
+ recipes) pass the character code, not the glyph index, to the
+ get_glyph_data function; they have no valid charset table.
+
+ * src/cff/cffload.c (cff_font_load): Removed special cases for
+ FT_CONFIG_OPTION_INCREMENTAL, which are no longer necessary; CFF
+ fonts provided via the incremental interface now have to conform
+ more closely to the CFF font format.
+
+ * src/cff/cffload.h (cff_font_load): Removed argument now unneeded.
+
+ * src/cff/cffobjs.c (cff_face_init): Changed call to cff_font_load
+ to conform with new signature.
+
+2002-08-22 David Turner <david@freetype.org>
+
+ * src/base/ftobject.c, src/base/ftsynth.c, src/base/ftstroker.c,
+ src/bdf/bdfdrivr.c: Removed compiler warnings.
+
+2002-08-21 Werner Lemberg <wl@gnu.org>
+
+ * src/pshinter/pshalgo3.c (psh3_glyph_compute_inflections,
+ psh3_glyph_compute_extrema, psh3_hint_table_find_strong_point): Fix
+ compiler warnings and resolve shadowing of local variables.
+
+2002-08-21 David Turner <david@freetype.org>
+
+ The automatic and Postscript hinter now automatically detect
+ inflection points in glyph outlines and treats them specially. This
+ is very useful to prevent nasty effect like the disappearing
+ diagonals of `S' and `s' in many, many fonts.
+
+ * src/autohint/ahtypes.h (ah_flag_inflection): New macro.
+ * src/autohint/ahangles.c (ah_angle_diff): New function.
+ * src/autohint/ahangles.h: Updated.
+ * src/autohint/ahglyph.c (ah_outline_compute_inflections): New
+ function.
+ (ah_outline_detect_features): Use it.
+ * src/autohint/ahhint.c (ah_hinter_align_strong_points)
+ [!AH_OPTION_NO_WEAK_INTERPOLATION]: Handle inflection.
+
+ * src/tools/docmaker/docmaker.py, src/tools/docmaker/utils.py,
+ src/tools/docmaker/tohtml.py: Updating the DocMaker tool.
+
+ * include/freetype/freetype.h: Changing the type of the `load_flags'
+ parameter from `FT_Int' to `FT_Int32', this in order to support more
+ options. This should only break binary and/or source compatibility
+ on 16-bit platforms (Atari?).
+ (FT_LOAD_NO_AUTOHINT): New macro.
+
+ * src/base/ftobjs.c (FT_Load_Glyph): Updated.
+ Handle FT_LOAD_NO_AUTOHINT.
+ (FT_Load_Char): Updated.
+
+ * src/pshinter/pshalgo3.c, src/base/ftobjs.c, src/base/ftobject.c,
+ src/autohint/ahglyph.c, include/freetype/freetype.h: Fixing typos
+ and removing compiler warnings.
+
+2002-08-20 Werner Lemberg <wl@gnu.org>
+
+ * src/truetype/ttgload.c (TT_Get_Metrics): Add guard for k = 0.
+
+2002-08-20 David Turner <david@freetype.org>
+
+ * src/pshinter/pshalgo1.c, src/pshinter/pshalgo2.c,
+ src/pshinter/pshglob.c, src/pshinter/pshrec.c,
+ src/autohint/ahmodule.c [DEBUG_HINTER]: Removing compiler warnings
+ (only used in development builds anyway).
+
+ Improve support of local extrema and stem edge points.
+
+ * src/pshinter/pshalgo3.h (PSH3_Hint_TableRec): Use PSH3_ZoneRec
+ for `zones'.
+ (PSH3_DIR_UP, PSH3_DIR_DOWN): Exchange values.
+ (PSH3_DIR_HORIZONTAL, PSH3_DIR_VERTICAL): New macros.
+ (PSH3_DIR_COMPARE, PSH3_DIR_IS_HORIZONTAL, PSH3_IS_VERTICAL): New
+ macros.
+ (PSH3_POINT_INFLEX): New enum.
+ (psh3_point_{is,set}_{off,inflex}): New macros.
+ (PSH3_POINT_{EXTREMUM,POSITIVE,NEGATIVE,EDGE_MIN,EDGE_MAX): New
+ enum values.
+ (psh3_point_{is,set}_{extremum,positive,negative,edge_min,edge_max}):
+ New macros.
+ (PSH3_PointRec): New members `flags2' and `org_v'.
+ (PSH3_POINT_EQUAL_ARG, PSH3_POINT_ANGLE): New macros.
+
+ * src/pshinter/pshalgo3.c [DEBUG_HINTER]: Removing compiler
+ warnings.
+ (COMPUTE_INFLEXS): New macro.
+ (psh3_hint_align): Simplify some basic arithmetic computations.
+ (psh3_point_is_extremum): Removed.
+ (psh3_glyph_compute_inflections) [COMPUTE_INFLEXS]: New function.
+ (psh3_glyph_init) [COMPUTE_INFLEXS]: Use it.
+ (psh3_glyph_compute_extrema): New function.
+ (PSH3_STRONG_THRESHOLD): Increased to 30.
+ (psh3_hint_table_find_strong_point): Improved.
+ (psh3_glyph_find_strong_points,
+ psh3_glyph_interpolate_strong_points): Updated.
+ (psh3_hints_apply): Use psh3_glyph_compute_extrema.
+
+ * test/gview.c (draw_ps3_hint, ps3_draw_control_points): New
+ functions.
+ Other small updates.
+
+ * Jamfile: Small updates.
+
+2002-08-18 Arkadiusz Miskiewicz <misiek@pld.ORG.PL>
+
+ * builds/unix/install.mk (install, uninstall): Add $(DESTDIR) to
+ make life easier for package maintainers.
+
+2002-08-18 Werner Lemberg <wl@gnu.org>
+
+ * src/pcf/pcfdriver.c (PCF_Glyph_Load): Fix computation of
+ horiBearingX.
+ * src/bdf/bdfdrivr.c (BDF_Glyph_Load): Fix computation of
+ horiBearingY.
+
+2002-08-16 George Williams <gww@silcom.com>
+
+ Add support for Apple composite glyphs.
+
+ * include/freetype/config/ftoption.h
+ (TT_CONFIG_OPTION_COMPONENT_OFFSET_SCALED): New macro.
+
+ * src/truetype/ttgload.c (OVERLAP_COMPOUND, SCALED_COMPONENT_OFFSET,
+ UNSCALED_COMPONENT_OFFSET): New macros for additional OpenType
+ glyph loading flags.
+ (load_truetype_glyph): Implement it.
+
+2002-08-16 Werner Lemberg <wl@gnu.org>
+
+ * src/cff/cffgload.c (cff_free_glyph_data),
+ src/cff/cffload.c (cff_font_load): Use FT_UNUSED.
+
+2002-08-15 Werner Lemberg <wl@gnu.org>
+
+ * src/base/ftglyph.c (FT_Glyph_To_Bitmap): Initialize `error'.
+ * src/sfnt/sfobjs.c (SFNT_Load_Face): Fix compiler warning.
+
+2002-08-15 Graham Asher <graham.asher@btinternet.com>
+
+ Implemented the incremental font loading system for the CFF driver.
+ Tested using the GhostScript-to-FreeType bridge (under development).
+
+ * src/cff/cffgload.c (cff_get_glyph_data, cff_free_glyph_data): New
+ functions.
+ (cff_operator_seac, cff_compute_max_advance, cff_slot_load): Use
+ them.
+ * src/cff/cffload.c (cff_font_load): Add `face' parameter.
+ Load charset and encoding only if there are glyphs.
+ [FT_CONFIG_OPTION_INCREMENTAL]: Incremental fonts don't need
+ character recipes.
+ * src/cff/cffload.h, src/cff/cffobjs.c: Updated.
+
+ * src/cid/cidgload.c (cid_load_glyph)
+ [FT_CONFIG_OPTION_INCREMENTAL]: Corrected the incremental font
+ loading implementation to use the new system introduced on
+ 2002-08-01.
+
+2002-08-06 Werner Lemberg <wl@gnu.org>
+
+ * src/cff/cffcmap.c: Remove compiler warnings.
+ * src/cache/ftccache.c, src/cache/ftccache.i,
+ src/pfr/pfrload.c, src/pfr/pfrgload.c: s/index/idx/.
+ * src/cff/cffload.c: s/select/fdselect/.
+ * src/raster/ftraster.c: s/wait/waiting/.
+
+2002-08-01 Graham Asher <graham.asher@btinternet.com>
+
+ * src/type1/t1load.c (T1_Open_Face): Tolerate a face with no
+ charstrings if there is an incremental loading interface. Type 1
+ faces supplied by PostScript interpreters like GhostScript will
+ typically not provide any charstrings at load time, so this is
+ essential if they are to work.
+
+2002-08-01 Graham Asher <graham.asher@btinternet.com>
+
+ Modified incremental loading interface to be closer to David's
+ preferences. The header freetype.h is not now affected, the
+ interface is specified via an FT_Parameter, the pointer to the
+ interface is hidden in an internal part of the face record, and all
+ the definitions are in ftincrem.h.
+
+ * include/freetype/freetype.h [FT_CONFIG_OPTION_INCREMENTAL]:
+ Removed.
+ * include/freetype/internal/ftobjs.h [FT_CONFIG_OPTION_INCREMENTAL]:
+ Include FT_INCREMENTAL_H.
+ (FT_Face_InternalRec) [FT_CONFIG_OPTION_INCREMENTAL]: Add
+ `incremental_interface'.
+
+ * src/base/ftobjs.c (open_face, FT_Open_Face)
+ [FT_CONFIG_OPTION_INCREMENTAL]: Updated.
+ * src/sfnt/sfobjs.c (SFNT_Load_Face) [FT_CONFIG_OPTION_INCREMENTAL]:
+ Updated.
+
+ * src/truetype/ttgload.c (load_truetype_glyph)
+ [FT_CONFIG_OPTION_INCREMENTAL]: Updated.
+ Free loaded glyph data properly.
+ (compute_glyph_metrics, TT_Load_Glyph)
+ [FT_CONFIG_OPTION_INCREMENTAL]: Updated.
+ * src/truetype/ttobjs.c (TT_Face_Init)
+ [FT_CONFIG_OPTION_INCREMENTAL]: Updated.
+
+ * src/type1/t1gload.c (T1_Parse_Glyph_And_Get_Char_String)
+ [FT_CONFIG_OPTION_INCREMENTAL]: Updated.
+ (T1_Parse_Glyph) [FT_CONFIG_OPTION_INCREMENTAL]: Updated.
+ Free loaded glyph data properly.
+ (T1_Load_Glyph): Updated.
+ [FT_CONFIG_OPTION_INCREMENTAL]: Free loaded glyph data properly.
+
+2002-07-30 David Turner <david@freetype.org>
+
+ * include/freetype/ftincrem.h: Adding new experimental header file
+ to demonstrate a `cleaner' API to support incremental font loading.
+
+ * include/freetype/config/ftheader.h (FT_INCREMENTAL_H): New macro.
+
+ * src/tools/docmaker/*: Adding new (more advanced) version of
+ the DocMaker tool, using Python's sophisticated regexps.
+
+2002-07-28 Werner Lemberg <wl@gnu.org>
+
+ s/ft_memset/FT_MEM_SET/.
+ s/FT_MEM_SET/FT_MEM_ZERO/ where appropriate.
+
+2002-07-27 Werner Lemberg <wl@gnu.org>
+
+ * src/sfnt/ttload.c (sfnt_dir_check): Make it work with TTCs.
+
+2002-07-26 Werner Lemberg <wl@gnu.org>
+
+ * src/truetype/ttgload.c (load_truetype_glyph)
+ [FT_CONFIG_OPTION_INCREMENTAL]: s/memset/ft_memset/.
+
+ * src/autohint/ahhint.c (ah_hint_edges_3): Fix compiler warning.
+ * src/cff/cffload.c (cff_encoding_load): Remove `memory' variable.
+ * src/cff/cffcmap.c (cff_cmap_encoding_init): Remove `psnames'
+ variable.
+ * src/truetype/ttgload.c (load_truetype_glyph): Remove statement
+ without effect.
+ * src/truetype/ttdriver (Get_Char_Index, Get_Next_Char): Removed.
+
+ * src/pshinter/pshalgo3.c (psh3_hint_table_record,
+ psh3_hint_table_init, psh3_hint_table_activate_mask): Fix error
+ message.
+
+2002-07-24 Graham Asher <graham.asher@btinternet.com>
+
+ * src/truetype/ttobjs.c: Fix for bug reported by Sven Neumann
+ [sven@gimp.org] on the FreeType development forum: `If
+ FT_CONFIG_OPTION_INCREMENTAL is undefined (this is the default), the
+ TrueType loader crashes in line 852 of src/truetype/ttgload.c when
+ it tries to access face->glyph_locations.'
+
+2002-07-18 Graham Asher <graham.asher@btinternet.com>
+
+ Added types and structures to support incremental typeface loading.
+ The FT_Incremental_Interface structure, defined in freetype.h, is
+ designed to be passed to FT_Open_Face to provide callback functions
+ to obtain glyph recipes and metrics, for fonts like those passed
+ from PostScript that do not necessarily provide all, or any, glyph
+ information, when first opened.
+
+ * include/freetype/config/ftoption.h (FT_CONFIG_OPTION_INCREMENTAL):
+ New configuration macro to enable incremental face loading. By
+ default it is not defined.
+
+ * include/freetype/freetype.h (FT_Basic_Glyph_Metrics,
+ FT_Get_Glyph_Data_Func, FT_Get_Glyph_Metrics_Func,
+ FT_Incremental_Interface_Funcs, FT_Incremental_Interface)
+ [FT_CONFIG_OPTION_INCREMENTAL]: New.
+ (FT_Open_Args, FT_FaceRec) [FT_CONFIG_OPTION_INCREMENTAL]: New field
+ `incremental_interface'.
+ (FT_Open_Flags) [FT_CONFIG_OPTION_INCREMENTAL]: New enum
+ `ft_open_incremental'.
+
+ * include/freetype/fttypes.h: Include FT_CONFIG_CONFIG_H.
+ (FT_Data): New structure to represent binary data.
+
+ * src/base/ftobjs.c (open_face) [FT_CONFIG_OPTION_INCREMENTAL]:
+ Add parameter for incremental loading.
+ (FT_Open_Face) [FT_CONFIG_OPTION_INCREMENTAL]: Use incremental
+ interface.
+
+ * src/truetype/ttgload.c (load_truetype_glyph)
+ [FT_CONFIG_OPTION_INCREMENTAL]: Added the incremental loading system
+ for the TrueType driver.
+ (compute_glyph_metrics): Return FT_Error.
+ [FT_CONFIG_OPTION_INCREMENTAL]: Check for overriding metrics.
+ (TT_Load_Glyph) [FT_CONFIG_OPTION_INCREMENTAL]: Don't look for
+ the glyph table while handling an incremental font.
+ Get glyph offset.
+
+ * src/truetype/ttobjs.c (TT_Face_Init)
+ [FT_CONFIG_OPTION_INCREMENTAL]: Added the incremental loading
+ system for the TrueType driver.
+
+ * src/cid/cidgload.c (cid_load_glyph)
+ [FT_CONFIG_OPTION_INCREMENTAL]: Added the incremental loading system
+ for the CID driver.
+
+ * src/sfnt/sfobjs.c (SFNT_Load_Face) [FT_CONFIG_OPTION_INCREMENTAL]:
+ Changes to support incremental Type 42 fonts: Assume a font has
+ glyphs if it has an incremental interface object.
+
+ * src/type1/t1gload.c (T1_Parse_Glyph): Renamed to...
+ (T1_Parse_Glyph_And_Get_Char_String): This.
+ [FT_CONFIG_OPTION_INCREMENTAL]: Added support for incrementally
+ loaded Type 1 faces.
+ (T1_Parse_Glyph): New function.
+ (T1_Load_Glyph): Updated.
+
+2002-07-17 David Turner <david@freetype.org>
+
+ Cleaning up the cache sub-system code; linear hashing is now the
+ default.
+
+ * include/freetype/cache/ftccache.h, src/cache/ftccache.i,
+ src/cache/ftccache.c [!FTC_CACHE_USE_LINEAR_HASHING]: Removed.
+ (FTC_CACHE_USE_LINEAR_HASHING): Removed also.
+
+ FT_CONFIG_OPTION_USE_CMAPS is now the default.
+
+ * include/freetype/internal/ftdriver.h (FT_Driver_ClassRec): Remove
+ `get_char_index' and `get_next_char'.
+
+ * include/freetype/config/ftoption.h,
+ include/freetype/internal/tttypes.h, src/base/ftobjs.c,
+ src/bdf/bdfdrivr.c, src/cff/cffobjs.c, src/pcf/pcfdrivr.c,
+ src/pfr/pfrdrivr.c, src/sfnt/sfobjs.c, src/sfnt/ttcmap0.c,
+ src/sfnt/ttcmap0.h, src/sfnt/ttload.c, src/type1/t1objs.c,
+ src/type42/t42objs.c, src/winfonts/winfnt.c
+ [!FT_CONFIG_OPTION_USE_CMAPS]: Removed. The new cmap code is now
+ the default.
+
+ * src/type42/t42objs.c (T42_CMap_CharIndex, T42_CMap_CharNext):
+ Removed.
+ * src/type42/t42objs.h: Updated.
+
+ * src/cid/cidriver.c (Cid_Get_Char_Index, Cid_Get_Next_Char):
+ Removed.
+ (t1cid_driver_class): Updated.
+ * src/truetype/ttdriver.c (tt_driver_class): Updated.
+ * src/type1/t1driver.c (Get_Char_Index, Get_Next_Char): Removed
+ (t1_driver_class): Updated.
+ * src/type42/t42drivr.c (t42_driver_class): Updated.
+
+ * src/base/ftobjs.c (open_face): Select Unicode cmap by default.
+
+ * src/sfnt/ttload.c (TT_Load_SFNT_Header): Fixed a recent bug that
+ prevented OpenType fonts to be recognized by FreeType.
+
+2002-07-11 David Turner <david@freetype.org>
+
+ Changing the SFNT loader to check for SFNT-based font files
+ differently. We now ignore the range `helper' fields and check the
+ `head' table's magic number instead.
+
+ * include/freetype/internal/tttypes.h (SFNT_HeaderRec): Add `offset'
+ field.
+
+ * src/sfnt/ttload.c (sfnt_dir_check): New function.
+ (TT_Load_SFNT_HeaderRec): Renamed to...
+ (TT_Load_SFNT_Header): This.
+ Implement new functionality.
+ * src/sfnt/ttload.h: Updated.
+ * src/sfnt/sfdriver.c (sfnt_interface): Updated.
+
+ * src/base/ftobject.c, src/base/fthash.c: Updated object sub-system
+ and dynamic hash table implementation (still experimental, don't
+ use).
+ * include/freetype/internal/fthash.h: Updated.
+ * include/freetype/internal/ftobjs.h (FT_LibraryRec): New member
+ `meta_class'.
+
+ Fixing a bug in the Type 1 loader that prevented valid font bounding
+ boxes to be loaded from multiple master fonts.
+
+ * include/freetype/t1tables.h (PS_BlendRec): Add `bboxes' field.
+
+ * include/freetype/internal/psaux.h (T1_FieldType): Add
+ `T1_FIELD_TYPE_BBOX'.
+ (T1_FieldLocation): Add `T1_FIELD_LOCATION_BBOX'.
+ (T1_FIELD_BBOX): New macro.
+
+ * src/psaux/psobjs.c (PS_Parser_LoadField): Handle T1_FIELD_TYPE_BBOX.
+ * src/type1/t1load.c (t1_allocate_blend): Create blend->bboxes.
+ (T1_Done_Blend): Free blend->bboxes.
+ (t1_load_keyword): Handle T1_FIELD_LOCATION_BBOX.
+ (parse_font_bbox): Commented out.
+ (t1_keywords): Comment out `parse_font_bbox'.
+ * src/type1/t1tokens.h: Define `FontBBox' field.
+
+2002-07-10 David Turner <david@freetype.org>
+
+ * src/cff/cffobjs.c: Small fix to select the Unicode charmap by
+ default when needed.
+ Small fix to allow OpenType fonts to support Adobe charmaps when
+ needed.
+
+ * src/cff/cffcmap.c, src/cff/cffcmap.h: New files to support
+ charmaps for CFF fonts.
+
+ * src/cff/cff.c, src/cff/Jamfile, src/cff/rules.mk: Updated.
+
+ * include/freetype/internal/cfftypes.h (CFF_EncodingRec): Use
+ fixed-length arrays for `sids' and `codes'. Add `count' member.
+ (CFF_FontRec): Add `psnames' member.
+
+ * src/cff/cffdrivr.c, src/cff/cffload.c, src/cff/cffload.h,
+ src/cff/cffobjs.c, src/cff/cffobjs.h, src/cff/cffparse.c,
+ src/cffparse.h, src/cff/cffgload.c, src/cff/cffgload.h: Adding
+ support for CFF charmaps, reformatting the sources, and removing
+ some bugs in the Encoding and Charset loaders.
+ Many fonts renamed to use lowercase only:
+
+ CFF_Builder_Init -> cff_builder_init
+ CFF_Builder_Done -> cff_builder_done
+ CFF_Init_Decoder -> cff_decoder_init
+ CFF_Parse_CharStrings -> cff_decoder_parse_charstrings
+ CFF_Load_Glyph -> cff_slot_load
+ CFF_Init_Decoder -> cff_decoder_init
+ CFF_Prepare_Decoder -> cff_decoder_prepare
+ CFF_Get_Standard_Encoding -> cff_get_standard_encoding
+ CFF_Access_Element -> cff_index_access_element
+ CFF_Forget_Element -> cff_index_forget_element
+ CFF_Get_Name -> cff_index_get_name
+ CFF_Get_String -> cff_index_get_sid_string
+ CFF_Get_FD -> cff_fd_select_get
+ CFF_Done_Charset -> cff_charset_done
+ CFF_Load_Charset -> cff_charset_load
+ CFF_Done_Encoding -> cff_encoding_done
+ CFF_Load_Encoding -> cff_encoding_load
+ CFF_Done_SubFont -> cff_subfont_done
+ CFF_Load_Font -> cff_font_load
+ CFF_Done_Font -> cff_font_done
+ CFF_Size_Get_Globals_Funcs -> cff_size_get_globals_funcs
+ CFF_Size_Done -> cff_size_done
+ CFF_Size_Init -> cff_size_init
+ CFF_Size_Reset -> cff_size_reset
+ CFF_GlyphSlot_Done -> cff_slot_done
+ CFF_GlyphSlot_Init -> cff_slot_init
+ CFF_StrCopy -> cff_strcpy
+ CFF_Face_Init -> cff_face_init
+ CFF_Face_Done -> cff_face_done
+ CFF_Driver_Init -> cff_driver_init
+ CFF_Driver_Done -> cff_driver_done
+ CFF_Parser_Init -> cff_parser_init
+ CFF_Parser_Run -> cff_parser_run
+
+ add_point -> cff_builder_add_point
+ add_point1 -> cff_builder_add_point1
+ add_contour -> cff_builder_add_contour
+ close_contour -> cff_builder_close_contour
+ cff_explicit_index -> cff_index_get_pointers
+
+2002-07-09 Owen Taylor <owen@redhat.com>
+
+ * src/pshinter/pshglob.c (psh_globals_new): Fixed a bug that
+ prevented the hinter from using correct standard width and height
+ values, resulting in hinting bugs with certain fonts (e.g. Utopia).
+
+2002-07-07 David Turner <david@freetype.org>
+
+ * src/base/ftglyph.c (FT_Glyph_To_Bitmap): Added code to return
+ successfully when the function is called with a bitmap glyph (the
+ previous code simply returned with an error).
+
+ * docs/DEBUG.TXT: Adding debugging support documentation.
+
+ * src/base/ftdebug.c (ft_debug_init), builds/win32/ftdebug.c
+ (ft_debug_init), builds/amiga/src/ftdebug.c (ft_debug_init): Changed
+ the syntax of the FT2_DEBUG environment variable used to control
+ debugging output (i.e. logging and error messages). It must now
+ look like:
+
+ any:6 memory:4 io:3 or
+ any:6,memory:4,io:3 or
+ any:6;memory:4;io:3
+
+2002-07-07 Owen Taylor <owen@redhat.com>
+
+ * src/pshinter/pshglob.c (psh_blues_snap_stem): Adding support for
+ blue fuzz.
+ * src/pshinter/pshglob.h (PSH_BluesRec): Add `blue_fuzz' field.
+ * src/type1/t1load.c (T1_Open_Face): Initialize `blue_fuzz'.
+
+ Adding support for hinter-specific bit flags, and the new
+ FT_Set_Hint_Flags high-level API.
+
+ * include/freetype/freetype.h (FT_Set_Hint_Flags): New function.
+ (FT_HINT_NO_INTEGER_STEM, FT_HINT_NO_HSTEM_ALIGN,
+ FT_HINT_NO_VSTEM_ALIGN): New macros.
+
+ * include/freetype/internal/ftobjs.h (FT_Face_InternalRec): Add
+ `hint_flags' member.
+
+ * src/base/ftobjs.c (FT_Set_Hint_Flags): New function.
+
+ * include/freetype/internal/psaux.h (T1_DecoderRec): Add `hint_flags'
+ member.
+
+ * include/freetype/internal/pshints.h (T1_Hints_ApplyFunc,
+ T2_Hints_ApplyFunc): Add parameter to pass hint flags.
+
+ * src/psaux/t1decode.c (T1_Decoder_Parse_Charstrings,
+ T1_Decoder_Init): Use decoder->hint_flags.
+ * src/cff/cffgload.h (CFF_Builder): Add `hint_flags' field.
+ * src/cff/cffgload.c (CFF_Builder_Init): Set builder->hint_flags.
+ (CFF_Parse_CharStrings): Updated.
+ * src/pshinter/pshalgo1.c (ps1_hints_apply): Add parameter to handle
+ hint flags (unused).
+ * src/pshinter/pshalgo1.h: Updated.
+ * src/pshinter/pshalgo2.c (ps2_hints_apply): Add parameter to handle
+ hint flags (unused).
+ * src/pshinter/pshalgo2.h: Updated.
+ * src/pshinter/pshalgo3.c (ps3_hints_apply): Add parameter to handle
+ hint flags.
+ * src/pshinter/pshalgo3.h: Updated.
+
+2002-07-04 David Turner <david@freetype.org>
+
+ * src/pfr/pfrobjs.c (pfr_slot_load): Fixed a small bug that returned
+ incorrect advances when the outline resolution was different from
+ the metrics resolution.
+
+ * src/autohint/ahhint.c: Removing compiler warnings.
+
+ * src/autohint/ahglyph.c: s/FT_MEM_SET/FT_ZERO/ where appropriate.
+ (ah_outline_link_segments): Slight improvements to the serif
+ detection code. More work is needed though.
+
+2002-07-03 David Turner <david@freetype.org>
+
+ Small improvements to the automatic hinter. Uneven stem-widths have
+ now disappeared and everything looks much better, even if there are
+ still issues with serifed fonts.
+
+ * src/autohint/ahtypes.h (AH_Globals): Added `stds' array.
+ * src/autohint/ahhint.c (OPTIM_STEM_SNAP): New #define.
+ (ah_snap_width): Commented out.
+ (ah_align_linked_edge): Renamed to...
+ (ah_compute_stem_width): This.
+ Don't allow uneven stem-widths.
+ (ah_align_linked_edge): New function.
+ (ah_align_serifed_edge): Don't strengthen serifs.
+ (ah_hint_edges_3, ah_hinter_scale_globals): Updated.
+
+2002-07-03 Owen Taylor <owen@redhat.com>
+
+ Adding new algorithm based on Owen Taylor's recent work.
+
+ * src/pshinter/pshalgo3.c, src/pshinter/pshalgo3.h: New files.
+ * src/pshinter/pshalgo.h: Updated.
+ Use pshalgo3 by default.
+ * src/pshinter/pshinter.c: Include pshalgo3.c.
+
+ * src/pshinter/Jamfile, src/pshinter/rules.mk: Updated.
+
+2002-07-01 Owen Taylor <owen@redhat.com>
+
+ * src/pshinter/pshalgo2.c (psh2_glyph_find_strong_points): Fix a bug
+ where, if a glyph has more than hint mask, the second mask gets
+ applied to points that should have been covered by the first mask.
+
+2002-07-01 Keith Packard <keithp@keithp.com>
+
+ * src/sfnt/ttcmap0.c (tt_cmap8_char_next, tt_cmap12_char_next):
+ Fixing the cmap 8 and 12 parsing routines.
+
+2002-07-01 David Turner <david@freetype.org>
+
+ * src/base/ftsynth.c: Include FT_TRIGONOMETRY_H.
+ (FT_Outline_Embolden): Renamed to...
+ (FT_GlyphSlot_Embolden): This.
+ Updated to new trigonometric functions.
+ (FT_Outline_Oblique): Renamed to...
+ (FT_GlyphSlot_Oblique): This.
+ (ft_norm): Removed.
+ * include/freetype/ftsynth.h: Updated.
+
+2002-06-26 David Turner <david@freetype.org>
+
+ * include/freetype/internal/ftobject.h: Updating the object
+ sub-system definitions (still experimental).
+
+ * src/base/fthash.c (ft_hash_remove): Fixing a small reallocation
+ bug.
+
+ * src/base/fttrigon.c (FT_Vector_From_Polar, FT_Angle_Diff): New
+ functions.
+ * include/freetype/fttrigon.h: Updated.
+
+
+ Adding path stroker component (work in progress).
+
+ * include/freetype/ftstroker.h, src/base/ftstroker.c: New files.
+ * src/base/Jamfile: Updated.
+
+ * include/freetype/config/ftheader.h (FT_STROKER_H): New macro.
+
+
+ * src/truetype/ttgload.c (TT_Load_Composite_Glyph),
+ src/base/ftoutln.c (FT_Vector_Transform): Fixed Werner's latest fix.
+ FT_Vector_Transform wasn't buggy, the TrueType composite loader was.
+
+2002-06-24 Werner Lemberg <wl@gnu.org>
+
+ * include/freetype/freetype.h (FREETYPE_PATCH): Set to 3.
+
+2002-06-21 David Turner <david@freetype.org>
+
+
+ * Version 2.1.2 released.
+ =========================
+
+
+2002-06-21 Roberto Alameda <ojancano@geekmail.de>.
+
+ * include/freetype/internal/t42types.h (T42_Font): Removed since
+ it is already in t42objs.h.
+ (T42_Face): Use T1_FontRec.
+
+ * src/base/fttype1.c (FT_Get_PS_Font_Info): Updated.
+ (FT_Has_PS_Glyph_Names): Check for type42 driver name also.
+ * src/type42/t42objs.h: Include FT_INTERNAL_TYPE42_TYPES_H.
+ (T42_Face): Removed since it is already in t42types.h.
+
+2002-06-21 Detlef Würkner <TetiSoft@apg.lahn.de>
+
+ * src/pfrgload.c (pfr_glyph_load_compound): Fix loading of composite
+ glyphs.
+
+2002-06-21 Sven Neumann <sven@convergence.de>
+
+ * src/pfr/pfrtypes.h (PFR_KernPair): New structure.
+ (PFR_PhyFont): Use it.
+ (PFR_KernFlags): New enumeration.
+ * src/pfr/pfrload.c (pfr_extra_item_load_kerning_pairs): New
+ function.
+ (pfr_phy_font_extra_items): Use it.
+ (pfr_phy_font_done): Updated.
+ * src/pfr/pfrobjs.c (pfr_face_init): Set kerning flag conditionally.
+ (pfr_face_get_kerning): New function.
+ * src/pfr/pfrobjs.h: Updated.
+ * src/pfr/pfrdrivr.c (pfr_driver_class): Updated.
+
+2002-06-21 David Turner <david@freetype.org>
+
+ * README, docs/CHANGES: Preparing the 2.1.2 release.
+
+2002-06-19 Detlef Würkner <TetiSoft@apg.lahn.de>
+
+ * src/base/fttype1.c: Include FT_INTERNAL_TYPE42_TYPES_H.
+ (t1_face_check_cast): Removed.
+ (FT_Get_PS_Font_Info): Make it work with CID and Type 42 drivers
+ also.
+
+2002-06-19 Sebastien BARRE <http://barre.nom.fr/contact.html#email>
+
+ * src/type42/t42parse.c (t42_parse_sfnts): Fix compiler warning.
+
+2002-06-19 Werner Lemberg <wl@gnu.org>
+
+ * src/base/ftoutln.c (FT_Vector_Transform): Fix serious typo
+ (xy <-> yx).
+ * src/truetype/ttgload.c (load_truetype_glyph): Replace `|' with
+ `||' to make code easier to read.
+
+2002-06-18 Roberto Alameda <ojancano@geekmail.de>.
+
+ * src/type42/t42objs.c (t42_check_size_change): Removed.
+ (T42_Size_SetChars, T42_Size_SetPixels): Use FT_Activate_Size
+ instead.
+ (T42_GlyphSlot_Load): Remove call to t42_check_size_change.
+
+2002-06-18 Detlef Würkner <TetiSoft@apg.lahn.de>
+
+ * src/psaux/t1cmap.c (t1_cmap_custom_char_index,
+ t1_cmap_custom_char_next): Fix index computation -- indices start
+ with 0 and not with cmap->first.
+
+ Provide default charmaps.
+
+ * src/bdf/bdfdrivr.c (BDF_Face_Init), src/pcf/pcfdriver.c
+ (PCF_Face_Init), src/pfr/pfrobjs.c (pfr_face_init),
+ src/type1/t1objs (T1_Face_Init), src/winfonts/winfnt.c
+ (FNT_Face_Init): Implement it.
+
+2002-06-17 Sven Neumann <sven@gimp.org>
+
+ * src/pfr/pfrobjs.c (pfr_face_init): Fix typo.
+
+2002-06-16 Leonard Rosenthol <leonardr@lazerware.com>
+
+ Updated Win32/VC++ projects to include the new PFR driver.
+
+ * builds/win32/visualc/freetype.dsp: Updated.
+
+2002-06-16 Anthony Fok <fok@debian.org>
+
+ Install freetype2.m4.
+
+ * builds/unix/install.mk (install, uninstall): Handle it.
+
+2002-06-16 Detlef Würkner <TetiSoft@apg.lahn.de>
+
+ Same fix for PFR driver.
+
+ * src/pfr/pfrcmap.c (pfr_cmap_char_index, pfr_cmap_char_next):
+ Increase return value by 1.
+ * src/pfr/pfrobjs.c (pfr_slot_load): Decrease index by 1.
+
+2002-06-15 Detlef Würkner <TetiSoft@apg.lahn.de>
+
+ Fix glyph indices to make index zero always the undefined glyph.
+
+ * src/bdf/bdfdrivr.c (bdf_cmap_init): Don't decrease
+ cmap->num_encodings.
+ (bdf_cmap_char_index, bdf_cmap_char_next, BDF_Get_Char_Index):
+ Increase result by 1 for normal cases.
+ (BDF_Glyph_Load): Decrease index by 1.
+
+ * src/pcf/pcfdriver.c (pcf_cmap_char_index, pcf_cmap_char_next,
+ PCF_Char_Get_Index): Increase result by 1 for normal cases.
+ (PCF_Glyph_Load): Decrease index by 1.
+ * src/pcf/pcfread.c (pcf_get_encodings): Don't decrease j for
+ allocating `encoding'.
+
+ * src/base/ftobjs.c (FT_Load_Glyph, FT_Get_Glyph_Name): Fix
+ bounding tests.
+
+2002-06-14 Detlef Würkner <TetiSoft@apg.lahn.de>
+
+ Add new cmap support to BDF driver.
+
+ * src/bdf/bdfdrivr.c (BDF_CMapRec) [FT_CONFIG_OPTION_USE_CMAPS]:
+ New structure.
+ (bdf_cmap_init, bdf_cmap_done, bdf_cmap_char_index,
+ bdf_cmap_char_next) [FT_CONFIG_OPTION_USE_CMAPS]: New functions.
+ (BDF_Get_Char_Index) [!FT_CONFIG_OPTION_USE_CMAPS]: Use only
+ conditionally.
+ (BDF_Face_Init): Handle `AVERAGE_WIDTH' and `POINT_SIZE' keywords.
+ Implement new cmap handling.
+ (bdf_driver_class): Updated.
+
+2002-06-14 Werner Lemberg <wl@gnu.org>
+
+ * Makefile, configure, */*.mk, builds/unix/unix-def.in,
+ docs/CHANGES, docs/INSTALL: s/TOP/TOP_DIR/.
+
+2002-06-12 Werner Lemberg <wl@gnu.org>
+
+ * src/bdf/bdflib.c: s/FT_Short/short/ for consistency.
+
+2002-06-11 David Turner <david@freetype.org>
+
+ * builds/win32/ftdebug.c: Added a missing #endif.
+
+ * src/sfnt/ttload.c, src/bdf/bdflib.c: Removing compiler warnings.
+
+ Removed the bug in Type 42 driver that prevented un-hinted outlines
+ to be loaded.
+
+ * src/type42/t42objs.c (T42_Face_Init): Call FT_Done_Size.
+ (T42_Size_Init): Call FT_Activate_Size.
+ (t42_check_size_change): New function.
+ (T42_Size_SetChars, T42_Size_SetPixels): Use it.
+ (ft_glyphslot_clear): Replace FT_MEM_SET with FT_ZERO.
+ (T42_GlyphSlot_Load): Use t42_check_size_change.
+ Initialize more fields of `glyph'.
+
+ * builds/win32/visualc/freetype.dsp: Updated.
+
+2002-06-09 David Turner <david@freetype.org>
+
+
+ * Version 2.1.1 released.
+ =========================
+
+
+2002-06-08 Juliusz Chroboczek <jch@pps.jussieu.fr>
+
+ * include/freetype/internal/ftobjs.h, src/autohint/ahglyph.c,
+ src/base/ftobjs.c, src/sfnt/ttcmap0.c, src/smooth/ftgrays.c: Don't
+ use `setjmp', `longjmp', and `jmp_buf' but `ft_setjmp', `ft_longjmp',
+ and `ft_jmp_buf'.
+ Removed direct references to <stdio.h> and <setjmp.h> when
+ appropriate, to eventually replace them with a
+ FT_CONFIG_STANDARD_LIBRARY_H. Useful for the XFree86 Font Server
+ backend based on FT2.
+
+ * src/base/fttype1.c (FT_Has_PS_Glyph_Names): Fix return value.
+
+2002-06-08 David Turner <david@freetype.org>
+
+ * src/pcf/pcfdriver.c (pcf_cmap_char_next): Fixed a bug that caused
+ the function to return invalid values.
+
+ * src/cache/ftccache.i: Removing a typo that prevented
+ the source's compilation.
+
+ * src/cache/ftccache.c (ftc_node_hash_unlink): Fixed a
+ bug that caused nasty memory overwrites. The hash table's
+ buckets array wasn't correctly resized when shrunk.
+
+2002-06-08 Detlef Würkner <TetiSoft@apg.lahn.de>
+
+ * builds/amiga/smakefile, builds/amiga/makefile: Updated.
+
+2002-06-08 Werner Lemberg <wl@gnu.org>
+
+ * src/cache/ftccache.c (ftc_node_hash_unlink, ftc_node_hash_link)
+ [FTC_CACHE_USE_LINEAR_HASHING]: Fix returned error code.
+ Fix debugging messages.
+ * src/cache/ftccache.i (GEN_CACHE_LOOKUP): Move declaration of
+ `family' and `hash' up to make it compilable with g++.
+
+ * src/type42/t42error.h: New file.
+ * src/type42/t42drivr.c, src/type42/t42objs.c,
+ src/type42/t42parse.c: Use t42 error codes.
+ * src/type42/rules.mk: Updated.
+
+ * src/base/ftnames.c: Include FT_INTERNAL_STREAM_H.
+
+2002-06-08 David Turner <david@freetype.org>
+
+ * src/cache/ftccmap.c: GEN_CACHE_FAMILY_COMPARE,
+ GEN_CACHE_NODE_COMPARE, GEN_CACHE_LOOKUP) [FTC_CACHE_USE_INLINE]:
+ New macros.
+ (ftc_cmap_cache_lookup) [!FTC_CACHE_USE_INLINE]: Typedef to
+ ftc_cache_lookup.
+ (FTC_CMapCache_Lookup): Updated.
+
+ Adding various experimental optimizations to the cache manager.
+
+ * include/freetype/cache/ftccache.h (FTC_CACHE_USE_INLINE,
+ FTC_CACHE_USE_LINEAR_HASHING): New options.
+ (FTC_CacheRec) [FTC_CACHE_USE_LINEAR_HASHING]: New elements `p',
+ `mask', and `slack'.
+
+ * src/cache/ftccache.c (FTC_HASH_MAX_LOAD, FTC_HASH_MIN_LOAD,
+ FTC_HASH_SUB_LOAD) [FTC_CACHE_USE_LINEAR_HASHING,
+ FTC_HASH_INITIAL_SIZE]: New macros.
+ (ftc_node_mru_link, ftc_node_mru_up): Optimized.
+ (ftc_node_hash_unlink, ftc_node_hash_link)
+ [FTC_CACHE_USE_LINEAR_HASHING]: New variants.
+ (FTC_PRIMES_MIN, FTC_PRIMES_MAX, ftc_primes, ftc_prime_closest,
+ FTC_CACHE_RESIZE_TEST, ftc_cache_resize)
+ [!FTC_CACHE_USE_LINEAR_HASHING]: Define it conditionally.
+ (ftc_cache_init, ftc_cache_clear) [FTC_CACHE_USE_LINEAR_HASHING]:
+ Updated.
+ (ftc_cache_lookup) [FTC_CACHE_USE_LINEAR_HASHING]: Implement it.
+
+ * src/cache/ftccache.i: New file.
+
+ * src/cache/ftcsbits.c (GEN_CACHE_FAMILY_COMPARE,
+ GEN_CACHE_NODE_COMPARE, GEN_CACHE_LOOKUP) [FTC_CACHE_USE_INLINE]:
+ New macros.
+ (ftc_sbit_cache_lookup) [!FTC_CACHE_USE_INLINE]: Typedef to
+ ftc_cache_lookup.
+ (FTC_SBitCache_Lookup): Updated.
+
+ * src/type42/t42parse.c: Removing duplicate function.
+
+2002-06-07 Graham Asher <graham.asher@btinternet.com>
+
+ * src/base/ftobjs.c (FT_Render_Glyph_Internal): Changed definition
+ from FT_EXPORT_DEF to FT_BASE_DEF.
+
+2002-06-07 David Turner <david@freetype.org>
+
+ Fixed the bug that prevented the correct display of fonts with
+ `ftview'.
+
+ * src/type42/t42drivr.c: Split into...
+ * src/type42/t42drivr.h, src/type42/t42parse.c,
+ src/type42/t42parse.h, src/type42/t42objs.h, src/type42/t42objs.c,
+ src/type42/type42.c: New files.
+
+ (t42_get_glyph_name, t42_get_ps_name, t42_get_name_index): Use
+ `face->type1'.
+
+ (Get_Interface): Renamed to...
+ (T42_Get_Interface): This.
+ Updated.
+ (T42_Open_Face, T42_Face_Done): Updated.
+ (T42_Face_Init): Add new cmap support.
+ Updated.
+ (T42_Driver_Init, T42_Driver_Done, T42_Size_Init, T42_Size_Done,
+ T42_GlyphSlot_Init, T42_GlyphSlot_Done): Updated.
+ (Get_Char_Index, Get_Next_Char): Renamed to...
+ (T42_CMap_CharIndex, T42_CMap_CharNext): This.
+ Updated.
+ (T42_Char_Size, T42_Pixel_Size): Renamed to...
+ (T42_Size_SetChars, T42_Size_SetPixels): This.
+ (T42_Load_Glyph): Renamed to...
+ (T42_GlyphSlot_Load): This.
+
+ (t42_init_loader, t42_done_loader): Renamed to...
+ (t42_loader_init, t42_loader_done): This.
+ (T42_New_Parser, T42_Finalize_Parser): Renamed to...
+ (t42_parser_init, t42_parser_done): This.
+ (parse_dict): Renamed to...
+ (t42_parse_dict): This.
+ (is_alpha, is_space, hexval): Renamed to...
+ (t42_is_alpha, t42_is_space, t42_hexval): This.
+ (parse_font_name, parse_font_bbox, parse_font_matrix,
+ parse_encoding, parse_sfnts, parse_charstrings, parse_dict):
+ Renamed to...
+ (t42_parse_font_name, t42_parse_font_bbox, t42_parse_font_matrix,
+ t42_parse_encoding, t42_parse_sfnts, t42_parse_charstrings,
+ t42_parse_dict): This.
+ Updated.
+
+ (t42_keywords): Updated.
+
+ * src/type42/Jamfile, src/type42/descrip.mms: Updated.
+
+2002-06-03 Werner Lemberg <wl@gnu.org>
+
+ Add 8bpp support to BDF driver.
+
+ * src/bdf/bdflib.c (_bdf_parse_start): Handle 8bpp.
+ * src/bdf/bdfdrivr.c (BDF_Glyph_Load): Ditto.
+ * src/bdf/README: Updated.
+
+2002-06-02 Detlef Würkner <TetiSoft@apg.lahn.de>
+
+ * src/pfr/pfrload.c (pfr_phy_font_done): Free `blue_values' array.
+
+2002-05-29 Detlef Würkner <TetiSoft@apg.lahn.de>
+
+ * src/bdf/bdflib.c (_bdf_readstream): Allocate `buf' dynamically.
+ (_bdf_parse_glyphs): Use correct size for allocating
+ `font->unencoded'.
+ (bdf_load_font): Free array conditionally.
+ Return proper error code in case of failure.
+ * src/bdf/bdfdrivr.c (BDF_Face_Init): Make it more robust against
+ unusual fonts.
+
+2002-05-29 Werner Lemberg <wl@gnu.org>
+
+ * src/bdf/descrip.mms, src/type42/descrip.mms: New files.
+ * descrip.mms (all): Updated.
+
+ * src/bdf/bdflib.c (_bdf_parse_glyphs): Fix typo which prevented
+ compilation.
+ * src/pshglob.c (psh_blues_scale_zones): Fix compiler warning.
+
+2002-05-28 Detlef Würkner <TetiSoft@apg.lahn.de>
+
+ * builds/amiga/makefile, builds/amiga/smakefile,
+ amiga/include/freetype/config/ftmodule.h: Updated to include
+ support for BDF and Type42 drivers.
+
+ * docs/modules.txt: Updated.
+
+2005-05-28 David Turner <david@freetype.org>
+
+ * docs/CHANGES: Updating file for next release (2.1.1).
+
+ * src/bdf/bdflib.c: Removing compiler warnings.
+
+ * include/freetype/ftxf86.h, src/base/ftxf86.c: New files.
+ They provide a new API (FT_Get_X11_Font_Format) to retrieve an
+ X11-compatible string describing the font format of a given face.
+ This was put in a new optional base source file, corresponding to a
+ new public header (named FT_XFREE86_H since this function should
+ only be used within the XFree86 font server IMO).
+
+ * include/freetype/config/ftheader.h (FT_XFREE86_H): New macro (not
+ documented yet).
+
+ * src/base/fttype1.c: New file, providing two new API functions
+ (FT_Get_PS_Font_Info and FT_Has_PS_Glyph_Names).
+ * include/freetype/t1tables.h: Updated.
+
+ * src/base/Jamfile, src/base/rules.mk, src/base/descrip.mms:
+ Updating build control files for the new files `ftxf86.c' and
+ `fttype1.c' in src/base.
+
+ * src/pshinter/pshglob.c (psh_blues_scale_zones): Fixed a bug that
+ prevented family blue zones substitution from happening correctly.
+
+ * include/freetype/ftbdf.h FT_Get_BDF_Charset_ID): Adding
+ documentation comment.
+
+2002-05-28 Werner Lemberg <wl@gnu.org>
+
+ * src/base/ftnames.c (FT_Get_Sfnt_Name): Don't use FT_STREAM_READ_AT
+ but FT_STREAM_READ.
+ Declare `stream' variable.
+
+ * src/bdf/bdflib.c (_bdf_parse_glyphs): Replace floating point math
+ with calls to `FT_MulDiv'.
+
+2002-05-28 David Turner <david@freetype.org>
+
+ Fixing the SFNT name table loader to support various buggy fonts.
+ It now ignores empty name entries, entries with invalid pointer
+ Offsets and certain fonts containing tables with broken
+ `storageOffset' fields.
+
+ Name strings are now loaded on demand, which reduces the memory
+ requirements for a given FT_Face tremendously (for example, the name
+ table of Arial.ttf is about 10Kb and contains 70 names).
+
+ This is a temporary fix. The whole name table loader and interface
+ will be rewritten in a much more cleanly way shortly, once CSEH have
+ been introduced in the sources.
+
+ * include/freetype/internal/tttypes.h (TT_NameEntryRec): Change
+ type of `stringOffset' to FT_ULong.
+ (TT_NameTableRec): Change type of `numNameRecords' and
+ `storageOffset' to FT_UInt.
+ Replace `storage' with `stream'.
+ * src/base/ftnames.c (FT_Get_Sfnt_Name): Load name on demand.
+ * src/sfnt/sfdriver.c (get_sfnt_postscript_name): Ditto.
+ Make code more robust.
+ * src/sfnt/sfobjs.c (TT_NameEntry_ConvertFunc): New typedef.
+ (tt_face_get_name): Use it.
+ Make code more robust.
+ * src/sfnt/ttload.c (TT_Load_Names): Use `static' for arrays.
+ Handle invalid `storageOffset' data better.
+ Set length fields to zero for invalid or ignored data.
+ Remove code within FT_DEBUG_LEVEL_TRACE.
+ (TT_Free_Names): Updated.
+
+2002-05-24 Tim Mooney <enchanter@users.sourceforge.net>
+
+ * builds/unix/ft-munmap.m4: New file, extracted FT_MUNMAP_DECL and
+ FT_MUNMAP_PARAM from aclocal.m4 into here, so aclocal.m4 can be
+ rebuilt from sources. Set macro serial to 1, and use third argument
+ to AC_DEFINE for our two custom symbols, so ftconfig.in could one day
+ be rebuilt with autoheader (not recommended now, ftconfig.in is a
+ custom source file)
+
+2002-05-22 Werner Lemberg <wl@gnu.org>
+
+ * include/freetype/config/ftheader.h (FT_BEZIER_H): Removed.
+ (FT_BDF_H): New macro for accessing `ftbdf.h'.
+
+ * src/type42/t42drivr.c (hexval): Fix typo.
+
+2002-05-21 Martin Muskens <mmuskens@aurelon.com>
+
+ * src/psaux/psobjs.c (T1Radix): New function.
+ (t1_toint): Use it to handle numbers in radix format.
+
+ * src/psaux/t1decode.c (T1_Decoder_Parse_Charstrings): Add dummy
+ for undocumented, obsolete opcode 15.
+
+2002-05-21 David Turner <david@freetype.org>
+
+ * src/bdf/bdflib.c: Removed compiler warning, and changed all tables
+ to the `static const' storage specifier (instead of simply
+ `static').
+
+ * src/type42/t42drivr.c (hexval): Use more efficient code.
+ Removing compiler warnings.
+ * src/bdf/bdfdrivr.c: Removing compiler warnings.
+
+ * include/freetype/internal/ftbdf.h, src/base/ftbdf.c,
+ src/base/descrip.mms, src/base/Jamfile, src/base/rules.mk
+ (FT_Get_BDF_Charset_ID): New API to retrieve BDF-specific strings
+ from a face. This is much cleaner than accessing the internal types
+ `BDF_Public_Face' defined in FT_INTERNAL_BDF_TYPES_H.
+
+2002-05-21 Werner Lemberg <wl@gnu.org>
+
+ * src/bdf/README: Mention Microsoft's SBIT tool.
+
+ * src/cff/cffdrivr.c, src/cid/cidriver.c, src/pcf/pcfdriver.c,
+ src/truetype/ttdriver.c, src/type1/t1driver.c,
+ src/winfonts/winfnt.c, src/type42/t42drivr.c, src/bdf/bdfdrivr.c
+ [FT_CONFIG_OPTION_DYNAMIC_DRIVERS]: Completely removed. It has
+ been never used.
+
+2002-05-21 Roberto Alameda <ojancano@geekmail.de>.
+
+ * src/type42/t42drivr.c: s/T42_ENCODING_TYPE_/T1_ENCODING_TYPE_/.
+ (parse_font_matrix): Remove unnecessary code.
+ (parse_sfnts): Initialize some variables.
+ (t42_driver_class) [TT_CONFIG_OPTION_BYTECODE_INTERPRETER]: Use
+ ft_module_driver_has_hinter conditionally.
+ Moved some type 42 specific structure definitions to...
+ * include/freetype/internal/t42types.h: New file.
+ * include/freetype/internal/internal.h (FT_INTERNAL_T42_TYPES_H):
+ New macro.
+
+2002-05-20 Werner Lemberg <wl@gnu.org>
+
+ * include/freetype/cache/ftcsbits.h (FTC_SBit): Added a new field
+ `num_grays' for specifying the number of used gray levels.
+ * src/cache/ftcsbits.c (ftc_sbit_node_load): Initialize it.
+
+2002-05-19 Werner Lemberg <wl@gnu.org>
+
+ Adding a driver for BDF fonts written by Francesco Zappa Nardelli
+ <Francesco.Zappa.Nardelli@ens.fr>. Heavily modified by me to
+ better adapt it to FreeType, removing unneeded stuff. Additionally,
+ it now supports Mark Leisher's BDF extension for anti-aliased
+ bitmap glyphs with 2 and 4 bpp.
+
+ * src/bdf/*: New driver.
+ * include/freetype/internal/bdftypes.h: New file.
+ * include/freetype/internal/fttrace.h: Added BDF driver components.
+ * include/freetype/fterrdef.h: Added error codes for BDF driver.
+ * include/freetype/config/ftmodule.h, src/Jamfile: Updated.
+ * include/freetype/internal/internal.h (FT_INTERNAL_BDF_TYPES_H):
+ New macro.
+
+ * include/freetype/config/ftstdlib.h (ft_sprintf): New alias for
+ sprintf.
+
+2002-05-18 Werner Lemberg <wl@gnu.org>
+
+ * include/freetype/internal/fttrace.h: Added Type 42 driver
+ component.
+ * src/type42/t42drivr.c: Use it.
+
+ * include/freetype/internal/internal.h (FT_INTERNAL_PCF_TYPES_H):
+ New macro.
+
+2002-05-17 Werner Lemberg <wl@gnu.org>
+
+ * src/type42/Jamfile: New file.
+
+2002-05-14 Werner Lemberg <wl@gnu.org>
+
+ Adding a driver for Type42 fonts written by Roberto Alameda
+ <ojancano@geekmail.de>.
+
+ * src/type42/*: New driver.
+ * include/freetype/config/ftmodule.h, src/Jamfile: Updated.
+ * include/freetype/config/ftstdlib.h (ft_xdigit, ft_memcmp,
+ ft_atoi): New aliases for xdigit, memcmp, and atoi, respectively.
+
+2002-05-12 Owen Taylor <otaylor@redhat.com>
+
+ * src/sfnt/ttload.c (TT_LookUp_Table): Protect against tables
+ with a zero length value.
+
+2002-05-12 Michael Pfeiffer <michael.pfeiffer@utanet.at>
+
+ * builds/beos/beos.mk: Include `link-std.mk'.
+
+2002-05-12 Werner Lemberg <wl@gnu.org>
+
+ * src/type1/t1load.h (T1_Loader): Renamed to...
+ (T1_LoaderRec): This.
+ (T1_Loader): Now pointer to T1_LoaderRec.
+ * src/type1/t1load.c: Updated.
+
+ * include/freetype/internal/t1types.h, src/type1/t1load.c,
+ src/type1/t1objs.c:
+ s/T1_ENCODING_TYPE_EXPORT/T1_ENCODING_TYPE_EXPERT/.
+
+2002-05-06 Werner Lemberg <wl@gnu.org>
+
+ * README: Add a note regarding libttf vs. libfreetype.
+
+2002-05-05 Werner Lemberg <wl@gnu.org>
+
+ FreeType 2 can now be built in an external directory with the
+ configure script also.
+
+ * builds/freetype.mk (INCLUDES): Add `OBJ_DIR'.
+
+ * builds/unix/detect.mk (have_mk): New variable to test for
+ external build.
+ (unix-def.mk): Defined according to value of `have_mk'.
+ * builds/unix/unix.mk (have_mk): New variable to test for
+ external build.
+ Select include paths for unix-def.mk and unix-cc.mk according
+ to value of `have_mk'.
+ * builds/unix/unix-def.in (OBJ_BUILD): New variable.
+ (DISTCLEAN): Use it.
+ * builds/unix/unix-cc.in (LIBTOOL): Define default value only
+ if not yet defined.
+ * builds/unix/install.mk (install): Use `OBJ_BUILD' for installing
+ freetype-config.
+
+ * configure: Don't depend on bash features.
+ (ft2_dir, abs_curr_dir, abs_ft2_dir): New variables (code
+ partially taken from Autoconf).
+ Build a dummy Makefile if not building in source tree.
+
+ * docs/INSTALL: Document it.
+
+2002-05-04 David Turner <david@freetype.org>
+
+ * src/truetype/ttgload.c (TT_Load_Glyph): Finally fixing the last
+ bug that prevented FreeType 2.x and FreeType 1.x to produce
+ bit-by-bit identical monochrome glyph bitmaps with native TrueType
+ hinting. The culprit was a single-bit flag that wasn't set
+ correctly by the TrueType glyph loader.
+
+ * src/otlayout/otlayout.h, src/otlayout/otlbase.c,
+ src/otlayout/otlbase.h, src/otlayout/otlconf.h,
+ src/otlayout/otlgdef.c, src/otlayout/otlgdef.h,
+ src/otlayout/otlgpos.c, src/otlayout/otlgpos.h,
+ src/otlayout/otlgsub.c, src/otlayout/otlgsub.h,
+ src/otlayout/otljstf.c, src/otlayout/otljstf.h,
+ src/otlayout/otltable.c, src/otlayout/otltable.h,
+ src/otlayout/otltags.h: New OpenType Layout source files. The
+ module is still incomplete.
+
+2002-05-02 Werner Lemberg <wl@gnu.org>
+
+ * src/sfnt/ttcmap0.c (tt_cmap4_char_index): Fix serious typo
+ (0xFFFU -> 0xFFFFU).
+
+2002-05-01 Werner Lemberg <wl@gnu.org>
+
+ * docs/INSTALL: Fix URL of makepp.
+
+2002-05-01 David Turner <david@freetype.org>
+
+ * src/sfnt/sfobjs.c (tt_face_get_name): Fixing a bug that caused
+ FreeType to crash when certain broken fonts (e.g. `hya6gb.ttf')
+ were opened.
+
+ * src/sfnt/ttload.c (TT_Load_Names): Applied a small work-around to
+ manage fonts containing a broken name table (e.g. `hya6gb.ttf').
+
+ * src/sfnt/ttcmap0.c (tt_cmap4_validate): Fixed over-restrictive
+ validation test. The charmap validator now accepts overlapping
+ ranges in format 4 charmaps.
+
+ * src/sfnt/ttcmap0.c (tt_cmap4_char_index): Switched to a binary
+ search algorithm. Certain fonts contain more than 170 distinct
+ segments!
+
+ * include/freetype/config/ftstdlib.h: Adding an alias for the `exit'
+ function. This will be used in the near future to panic in case of
+ unexpected exception (which shouldn't happen in theory).
+
+ * include/freetype/internal/fthash.h, src/base/fthash.c: New files.
+ This is generic implementation of dynamic hash tables using a linear
+ algorithm (to get rid of `stalls' during resizes). In the future
+ this will be used in at least three parts of the library: the cache
+ sub-system, the object sub-system, and the memory debugger.
+
+ * src/base/Jamfile: Updated.
+
+ * include/freetype/internal/internal.h (FT_INTERNAL_HASH_H,
+ FT_INTERNAL_OBJECT_H): New macros.
+
+ * include/freetype/internal/ftcore.h: New file to group all new
+ definitions related to exception handling and memory management. It
+ is very likely that this file will disappear or be renamed in the
+ future.
+
+ * include/freetype/internal/ftobject.h, include/freetype/ftsysmem.h:
+ Adding comments to better explain the object sub-system as well as
+ the new memory manager interface.
+
+2002-04-30 Wenlin Institute (Tom Bishop) <wenlin@wenlin.com>
+
+ * src/base/ftmac.c (p2c_str): Removed.
+ (file_spec_from_path) [TARGET_API_MAC_CARBON]: Added support for
+ OS X.
+ (is_dfont) [TARGET_API_MAC_CARBON]: Define only for OS X.
+ Handle `nameLen' <= 6 also.
+ (parse_fond): Remove unused variable `name_table'.
+ Use functionality of old p2c_str directly.
+ Add safety checks.
+ (read_lwfn): Initialize `size_p'.
+ Check for size_p == NULL.
+ (new_memory_stream, open_face_from_buffer): Updated to FreeType 2.1.
+ (FT_New_Face_From_LWFN): Remove unused variable `memory'.
+ Remove some dead code.
+ (FT_New_Face_From_SFNT): Remove unused variable `stream'.
+ (FT_New_Face_From_dfont) [TARGET_API_MAC_CARBON]: Define only for
+ OS X.
+ (FT_New_Face_From_FOND): Remove unused variable `error'.
+ (ResourceForkSize): New function.
+ (FT_New_Face): Use it.
+ Handle empty resource forks.
+ Conditionalize some code for OS X.
+ Add code to call normal loader as a fallback.
+
+2002-04-30 Werner Lemberg <wl@gnu.org>
+
+ `interface' is reserved on the Mac.
+
+ * include/freetype/ftoutln.h, include/freetype/internal/sfnt.h,
+ src/base/ftoutln.c: s/interface/func_interface/.
+ * src/base/ftbbox.c (FT_Outline_Get_BBox):
+ s/interface/bbox_interface/.
+ * src/cff/cffdrivr.c: s/interface/module_interface/.
+ * src/cff/cffload.c, src/cff/cffload.h:
+ s/interface/psnames_interface/.
+ * src/cid/cidriver.c: s/interface/cid_interface/.
+ * src/sfnt/sfdriver.c: s/interface/module_interface/.
+ * src/smooth/ftgrays.c: s/interface/func_interface/.
+ * src/truetype/ttdriver.c: s/interface/tt_interface/.
+ * src/type1/t1driver.c: s/interface/t1_interface/.
+
+ Some more variable renames to avoid troubles on the Mac.
+
+ * src/raster/ftraster.c:
+ s/Unknown|Ascending|Descending|Flat/\1_State/.
+ * src/smooth/ftgrays.c: s/TScan/TCoord/.
+
+ Other changes for the Mac.
+
+ * include/freetype/config/ftconfig.h: Define FT_MACINTOSH for
+ Mac platforms.
+ * src/base/ftobjs.c: s/macintosh/FT_MACINTOSH/.
+
+ * src/raster/ftrend1.c (ft_raster1_render): Make `pitch' always
+ an even number.
+
+2002-04-29 Jouk Jansen <joukj@hrem.stm.tudelft.nl>
+
+ * descrip.mms (all): Add pfr driver.
+
+2002-04-28 Werner Lemberg <wl@gnu.org>
+
+ * src/pfr/pfrerror.h: New file.
+ * include/freetype/ftmoderr.h: Add PFR error codes.
+ * src/pfr/pfrgload.c: Include pfrerror.h.
+ Use PCF error codes.
+ (pfr_extra_item_load_stem_snaps): Fix debug message.
+ * src/pfr/pfrgload.c: Include pfrerror.h.
+ Use PCF error codes.
+ (pfr_extra_item_load_bitmap_info, pfr_glyph_load_simple,
+ pfr_glyph_load_compound): Fix debug message.
+ * src/pfr/pfrobjs.c: Include pfrerror.h.
+ Use PCF error codes.
+ (pfr_face_init): Return PFR_Err_Unknown_File_Format.
+ * src/pfr/rules.mk (PFR_DRV_H): Include pfrerror.h.
+
+ * src/pcf/pcfdriver.c (PCF_Face_Init) [!FT_CONFIG_OPTION_USE_CMAPS]:
+ `root' -> `face->root'.
+ * src/sfnt/ttcmap0.c (TT_Build_CMaps) [!FT_CONFIG_OPTION_USE_CMAPS]:
+ Removed.
+ * src/sfnt/ttcmap0.c: Declare TT_Build_CMaps only for
+ FT_CONFIG_OPTION_USE_CMAPS.
+
+2002-04-27 Werner Lemberg <wl@gnu.org>
+
+ * src/cache/ftccache.c (ftc_cache_lookup),
+ src/cache/ftccmap.c (ftc_cmap_family_init),
+ src/cache/ftcmanag.c (ftc_family_table_alloc),
+ src/cache/ftcsbits.c (FTC_SBit_Cache_Lookup): Use FTC_Err_*.
+ src/cache/ftcimage.c (FTC_Image_Cache_Lookup): Use FTC_Err_*.
+ (FTC_ImageCache_Lookup): Fix handling of invalid arguments.
+
+2002-04-22 Werner Lemberg <wl@gnu.org>
+
+ * builds/unix/configure.ac: Set `version_info' to 9:1:3 (FT2
+ version 2.0.9 has 9:0:3).
+ * builds/unix/configure: Regenerated (using autoconf 2.53).
+
+2002-04-19 Werner Lemberg <wl@gnu.org>
+
+ * src/pfr/pfrload.c (pfr_extra_items_parse): Fix debug message.
+ (pfr_phy_font_load): s/size/Size/ for local variable to avoid
+ compiler warning.
+ * src/pfr/pfrobjs.c (pfr_face_init): Fix debug message.
+ (pfr_slot_load): Remove redundant local variable.
+
+2002-04-19 David Turner <david@freetype.org>
+
+ Adding a PFR font driver to the FreeType sources. Note that it
+ doesn't support embedded bitmaps or kerning tables yet.
+
+ src/pfr/*: New files.
+
+ * include/freetype/config/ftmodule.h,
+ include/freetype/internal/fttrace.h, src/Jamfile: Updated.
+
+ * src/type1/t1gload.h (T1_Load_Glyph), src/type1/t1gload.c
+ (T1_Load_Glyph): Fixed incorrect parameter sign-ness in callback
+ function.
+
+ * include/freetype/internal/ftmemory.h (FT_MEM_ZERO, FT_ZERO): New
+ macros.
+
+ * include/freetype/internal/ftstream.h (FT_NEXT_OFF3, FT_NEXT_UOFF3,
+ FT_NEXT_OFF3_LE, FT_NEXT_UOFF3_LE): New macros to parse in-memory
+ 24-bit integers.
+
+2002-04-18 David Turner <david@freetype.org>
+
+ * src/base/ftobjs.c, builds/win32/ftdebug.c,
+ builds/amiga/src/base/ftdebug.c: Version 2.1.0 couldn't be linked
+ against applications in Win32 and Amiga builds due to changes to
+ `src/base/ftdebug.c' that were not properly propagated to
+ `builds/win32' and `builds/amiga'. This has been fixed.
+
+ * include/freetype/internal/ftobject.h,
+ include/freetype/internal/ftexcept.h, include/freetype/ftsysmem.h,
+ include/freetype/ftsysio.h, src/base/ftsysmem.c, src/base/ftsysio.c:
+ New experimental files.
+
+2002-04-17 David Turner <david@freetype.org>
+
+
+ * Version 2.1.0 released.
+ =========================
+
+
+2002-04-17 Michael Jansson <mjan@em2-solutions.com>
+
+ * src/type1/t1gload.c (T1_Compute_Max_Advance): Fixed a small bug
+ that prevented the function to return the correct value.
+
+2002-04-16 Francesco Zappa Nardelli <Francesco.Zappa.Nardelli@ens.fr>
+
+ * src/pcf/pcfread.c (pcf_get_accel): Fix parsing of accelerator
+ tables.
+
+2002-04-15 David Turner <david@freetype.org>
+
+ * docs/FTL.txt: Formatting.
+
+ * include/freetype/config/ftoption.h: Reduce the size of the
+ render pool from 32kByte to 16kByte.
+
+ * src/pcf/pcfread.c (pcf_seek_to_table_type): Remove compiler
+ warning.
+
+ * include/freetype/config/ftoption.h (FT_MAX_EXTENSIONS): Removed.
+
+ * docs/CHANGES: Preparing 2.1.0 release.
+
+2002-04-13 Werner LEMBERG <wl@gnu.org>
+
+ * src/cff/cffgload.c (CFF_Parse_CharStrings): s/rand/Rand/ to avoid
+ compiler warning.
+
+2002-04-12 David Turner <david@freetype.org>
+
+ * README.UNX: Updated the Unix-specific quick-compilation guide to
+ warn about the GNU Make requirement at compile time.
+
+ * include/freetype/config/ftstdlib.h,
+ include/freetype/config/ftconfig.h,
+ include/freetype/config/ftheader.h,
+ include/freetype/internal/ftmemory.h,
+ include/freetype/internal/ftobjs.h,
+
+ src/autohint/ahoptim.c,
+
+ src/base/ftdbgmem.c, src/base/ftdebug.c, src/base/ftmac.c,
+ src/base/ftobjs.c, src/base/ftsystem.c,
+
+ src/cache/ftcimage.c, src/cache/ftcsbits.c,
+
+ src/cff/cffdrivr.c, src/cff/cffload.c, src/cff/cffobjs.c,
+
+ src/cid/cidload.c, src/cid/cidparse.c, src/cid/cidriver.c,
+
+ src/pcf/pcfdriver.c, src/pcf/pcfread.c,
+
+ src/psaux/t1cmap.c, src/psaux/t1decode.c,
+
+ src/pshinter/pshalgo1.c, src/pshinter/pshalgo2.c,
+ src/pshinter/pshrec.c,
+
+ src/psnames/psmodule.c,
+
+ src/raster/ftraster.c,
+
+ src/sfnt/sfdriver.c, src/sfnt/ttload.c,
+
+ src/smooth/ftgrays.c,
+
+ src/type1/t1afm.c, src/type1/t1driver.c, src/type1/t1gload.c,
+ src/type1/t1load.c, src/type1/t1objs.c, src/type1/t1parse.c,
+
+ builds/unix/ftconfig.in, builds/vms/ftconfig.h,
+
+ builds/amiga/src/base/ftdebug.c:
+
+ Added the new configuration file `ftstdlib.h' used to define
+ aliases for all ISO C library functions used by the engine
+ (e.g. strlen, qsort, setjmp, etc.).
+
+ This eases the porting of FreeType 2 to environments like
+ XFree86 modules/extensions.
+
+ Also removed many #include <string.h>, #include <stdlib.h>, etc.
+ from the engine's sources where they are not needed.
+
+ * src/sfnt/ttpost.c: Use macro name for psnames.h.
+
+2002-04-12 Vincent Caron <v.caron@zerodeux.net>
+
+ * configure, builds/detect.mk: Updated the build system to print
+ a warning message in case GNU Make isn't used to build the library.
+
+2002-04-11 David Turner <david@freetype.org>
+
+ * README, docs/CHANGES, Jamfile.in: Updates for the 2.1.0 release.
+
+ * docs/FTL.txt: Updated license text to provide a preferred
+ disclaimer and adjust copyright dates/extents.
+
+ * include/freetype/cache/ftcglyph.h: Removing obsolete (and
+ confusing) comment.
+
+ * Jamfile.in: New file.
+
+2002-04-11 Maxim Shemanarev <mcseemagg@yahoo.com>
+
+ * src/smooth/ftgrays.c (gray_hline): Minor optimization.
+
+2002-04-02 Werner Lemberg <wl@gnu.org>
+
+ Fixes from the stable branch:
+
+ * include/freetype/config/ftoption.h (FT_CONFIG_OPTION_OLD_CALCS):
+ Removed.
+ [FT_CONFIG_OPTION_OLD_CALCS]: Removed.
+ * include/freetype/internal/ftcalc.h, src/base/ftcalc.c
+ [FT_CONFIG_OPTION_OLD_CALCS]: Removed.
+
+ * src/base/fttrigon.c (FT_Vector_Length): Change algorithm to match
+ output of FreeType 1.
+
+ * src/pshinter/pshglob.c (psh_globals_scale_widths): Fixed a small
+ bug that created un-even stem widths when hinting Postscript fonts.
+
+ * src/type1/t1driver.c, src/type1/t1parse.c: 16bit fixes.
+
+2002-04-01 Werner Lemberg <wl@gnu.org>
+
+ * src/truetype/ttgload.c: 16bit fixes.
+ (TT_Load_Simple_Glyph): Improve debug messages.
+ (load_truetype_glyph): Remove dead code.
+ * src/truetype/ttinterp.c: 16bit fixes.
+ * src/truetype/ttobjs.c: Ditto.
+
+ * include/freetype/ftsnames.h, include/freetype/internal/sfnt.h,
+ src/cff/cffload.h, src/psaux/psobjs.h, src/truetype/ttinterp.[ch],
+ src/sfnt/ttpost.h: s/index/idx/.
+
+2002-03-31 Yao Zhang <yaoz@vidar.niaaa.nih.gov>
+
+ * src/truetype/ttobjs.c (TT_Size_Init): Fix typo.
+
+2002-03-31 Werner Lemberg <wl@gnu.org>
+
+ * src/otlayout/otlcommn.c, src/otlayout/otlcommn.h: s/index/idx/.
+ * src/psaux/t1cmap.c: Ditto.
+ * src/sfnt/ttcmap0.c: Ditto.
+
+ * include/freetype/internal/tttypes.h,
+ include/freetype/internal/sfnt.h (TT_Goto_Table_Func): Renamed to ...
+ (TT_Loader_GotoTableFunc): This.
+ * src/psaux/t1decode.c (T1_Decoder_Parse_Charstrings): Fix debug
+ messages.
+ * src/psnames/psmodule.c (psnames_interface)
+ [!FT_CONFIG_OPTION_ADOBE_GLYPH_LIST]: Fix typo.
+ * src/sfnt/sfdriver.c (get_sfnt_table): 16bit fix.
+ * src/sfnt/ttcmap.c: 16bit fixes (0xFFFF -> 0xFFFFU).
+ * src/sfnt/ttcmap0.c: 16bit fixes.
+ (TT_Build_CMaps): Simplify debug messages.
+ (tt_cmap12_char_next): Fix offset.
+ * src/sfnt/ttload.c (TT_Load_Names, TT_Load_CMap): Fix debug
+ messages.
+ (TT_Load_OS2): 16bit fix.
+
+2002-03-30 David Turner <david@freetype.org>
+
+ * include/freetype/internal/tttypes.h: Adding comments to some of
+ the TT_FaceRec fields.
+
+ * src/sfnt/ttcmap0.c (TT_Build_CMaps): Removed compiler warnings.
+
+ * src/sfnt/sfobjs.c (tt_name_entry_ascii_from_{utf16,ucs4,other}:
+ New functions.
+ (tt_face_get_name): Use them to properly extract an ascii font name.
+
+2002-03-30 Werner Lemberg <wl@gnu.org>
+
+ * include/freetype/t1tables.h (t1_blend_max): Fix typo.
+ * src/base/ftstream.c: Simplify FT_ERROR calls.
+ * src/cff/cffdrivr.c (cff_get_glyph_name): Fix debug message.
+
+ * src/cff/cffobjs.c (CFF_Driver_Init, CFF_Driver_Done)
+ [TT_CONFIG_OPTION_EXTEND_ENGINE]: Removed.
+ * src/cff/sfobjs.c (SFNT_Load_Face)
+ [TT_CONFIG_OPTION_EXTEND_ENGINE]: Ditto.
+ * src/truetype/ttobjs.c (TT_Init_Driver, TT_Done_Driver)
+ [TT_CONFIG_OPTION_EXTEND_ENGINE]: Ditto.
+
+ * src/truetype/ttdriver.c, src/truetype/ttobjs.c,
+ src/truetype/ttobjs.h: Renaming driver functions to the
+ FT_<Subject>_<Action> scheme:
+
+ TT_Init_Driver => TT_Driver_Init
+ TT_Done_Driver => TT_Driver_Done
+ TT_Init_Face => TT_Face_Init
+ TT_Done_Face => TT_Face_Done
+ TT_Init_Size => TT_Size_Init
+ TT_Done_Size => TT_Size_Done
+ TT_Reset_Size => TT_Size_Reset
+
+2002-03-29 Werner Lemberg <wl@gnu.org>
+
+ * builds/vms/ftconfig.h: Rename LOCAL_DEF and LOCAL_FUNC to
+ FT_LOCAL and FT_LOCAL_DEF, respectively, as with other ftconfig.h
+ files.
+ * builds/unix/ftconfig.in: Add argument to FT_LOCAL and
+ FT_LOCAL_DEF.
+ * src/truetype/ttinterp.c: s/FT_Assert/FT_ASSERT/.
+ * builds/unix/configure.ac: Temporarily deactivate creation of
+ ../../Jamfile.
+ * builds/unix/configure: Updated.
+
+2002-03-28 KUSANO Takayuki <AE5T-KSN@asahi-net.or.jp>
+
+ * src/sfnt/sfdriver.c (get_sfnt_postscript_name): Fix serious typos.
+
+2002-03-28 Werner Lemberg <wl@gnu.org>
+
+ * include/freetype/internal/psaux.h (PSAux_ServiceRec): Fix
+ compiler warnings.
+ * include/freetype/internal/t1types.h (T1_FaceRec): Use `const' for
+ some members.
+ * src/base/ftapi.c (FT_New_Memory_Stream): Fix typos.
+ * src/psaux/t1cmap.c (t1_cmap_std_init, t1_cmap_unicode_init): Add
+ cast.
+ (t1_cmap_{standard,expert,custom,unicode}_class_rec): Use
+ `FT_CALLBACK_TABLE_DEF'.
+ * src/psaux/t1cmap.h: Updated.
+ * src/sfnt/ttcmap0.c (TT_Build_CMaps): Use `ft_encoding_none'
+ instead of zero.
+ * src/type1/t1objs.c (T1_Face_Init): Use casts.
+
+2002-03-26 David Turner <david@freetype.org>
+
+ * src/sfnt/sfdriver.c, src/sfnt/sfobjs.c, src/sfnt/ttcmap0.c:
+ Fixed a small bug in the FT_CMaps support code.
+
+2002-03-25 David Turner <david@freetype.org>
+
+ * src/truetype/ttinterp.c (Norm): Replaced with...
+ (TT_VecLen): This.
+ (TT_MulFix14, TT_DotFix14): New functions.
+ (Project, Dual_Project, Free_Project, Compute_Point_Displacement,
+ Ins_SHPIX, Ins_MIAP, Ins_MIRP): Use them.
+ [FT_CONFIG_OPTION_OLD_CALCS]: Removed all code.
+
+2002-03-22 David Turner <david@freetype.org>
+
+ * src/base/ftobjs.c, src/sfnt/ttcmap0.c, src/type1/t1objs.c:
+ Various fixes to make the FT_CMaps support work correctly (more
+ tests are still needed).
+
+ * include/freetype/internal/ftobjs.h, src/sfnt/Jamfile,
+ src/sfnt/rules.mk, src/sfnt/sfnt.c, src/sfnt/sfobjs.c,
+ src/sfnt/ttload.c, src/sfnt/ttcmap0.c, src/sfnt/ttcmap0.h: Updated
+ the SFNT charmap support to use FT_CMaps.
+
+ * include/freetype/fterrdef.h: New file.
+ * include/freetype/fterrors.h: Include it. It contains all error
+ codes.
+ * include/freetype/config/ftheader.h (FT_ERROR_DEFINITIONS_H): New
+ macro.
+
+ * include/freetype/internal/ftmemory.h, and a lot of other files:
+ Changed the names of memory macros. Examples:
+
+ MEM_Set => FT_MEM_SET
+ MEM_Copy => FT_MEM_COPY
+ MEM_Move => FT_MEM_MOVE
+
+ ALLOC => FT_ALLOC
+ FREE => FT_FREE
+ REALLOC = >FT_REALLOC
+
+ FT_NEW was introduced to allocate a new object from a _typed_
+ pointer.
+
+ Note that ALLOC_ARRAY and REALLOC_ARRAY have been replaced by
+ FT_NEW_ARRAY and FT_RENEW_ARRAY which take _typed_ pointer
+ arguments.
+
+ This results in _lots_ of sources being changed, but makes the code
+ more generic and less error-prone.
+
+ * include/freetype/internal/ftstream.h, src/base/ftstream.c,
+ src/cff/cffload.c, src/pcf/pcfread.c, src/sfnt/ttcmap.c,
+ src/sfnt/ttcmap0.c, src/sfnt/ttload.c, src/sfnt/ttpost.c,
+ src/sfnt/ttsbit.c, src/truetype/ttgload.c, src/truetype/ttpload.c,
+ src/winfonts/winfnt.c: Changed the definitions of stream macros.
+ Examples:
+
+ NEXT_Byte => FT_NEXT_BYTE
+ NEXT_Short => FT_NEXT_SHORT
+ NEXT_UShortLE => FT_NEXT_USHORT_LE
+ READ_Short => FT_READ_SHORT
+ GET_Long => FT_GET_LONG
+ etc.
+
+ Also introduced the FT_PEEK_XXXX functions.
+
+ * src/cff/cffobjs.c (CFF_Build_Unicode_Charmap): Removed commented
+ out function.
+ (find_encoding): Removed.
+ (CFF_Face_Init): Remove charmap support.
+
+ * include/freetype/config/ftoption.h (FT_CONFIG_OPTION_USE_CMAPS,
+ TT_CONFIG_CMAP_FORMAT{0,2,4,6,8,10,12}): New macros to fine-tune
+ support of cmaps.
+
+2002-03-21 David Turner <david@freetype.org>
+
+ * src/base/ftobjs.c, src/pcf/pcfdriver.c, src/pcf/pcfread.c: Updated
+ to new FT_CMap definitions.
+
+ * src/psaux/t1cmap.h, src/psaux/t1cmap.c, src/type1/t1cmap.h,
+ src/type1/t1cmap.c: Updating and moving the Type 1 FT_CMap support
+ from `src/type1' to `src/psaux' since it is going to be shared by
+ the Type 1 and CID font drivers.
+
+ * src/psaux/Jamfile, src/psaux/psaux.c, src/psaux/psauxmod.c,
+ src/psaux/rules.mk, include/freetype/internal/psaux.h: Added support
+ for Type 1 FT_CMaps.
+
+2002-03-20 David Turner <david@freetype.org>
+
+ * src/base/ftgloadr.c (FT_GlyphLoader_CheckSubGlyphs): Fixed a
+ memory allocation bug that was due to un-careful renaming of the
+ FT_SubGlyph type.
+
+ * src/base/ftdbgmem.c (ft_mem_table_destroy): Fixed a small bug that
+ caused the library to crash with Electric Fence when memory
+ debugging is used.
+
+ * Renaming stream macros. Examples:
+
+ FILE_Skip => FT_STREAM_SKIP
+ FILE_Read => FT_STREAM_READ
+ ACCESS_Frame => FT_FRAME_ENTER
+ FORGET_Frame => FT_FRAME_EXIT
+ etc.
+
+ * src/sfnt/sfdriver.c (get_sfnt_postscript_name): Fixed memory leak.
+
+ * include/freetype/internal/ftobjs.h: Changing the definition of
+ FT_CMap_CharNextFunc slightly.
+
+ * src/cff/*.c: Updating CFF type definitions.
+
+2002-03-14 David Turner <david@freetype.org>
+
+ * include/freetype/internal/autohint.h, src/autohint/ahmodule.c,
+ src/base/ftapi.c, src/base/ftobjs.c: Updating the type definitions
+ for the auto-hinter module.
+
+ FT_AutoHinter_Interface => FT_AutoHinter_ServiceRec
+ FT_AutoHinter_Interface* => FT_AutoHinter_Service
+ etc.
+
+ FT_AutoHinter_Get_Global_Func => FT_AutoHinter_GlobalGetFunc
+ FT_AutoHinter_Done_Global_Func => FT_AutoHinter_GlobalDoneFunc
+ etc.
+
+ * ahloader.h [_STANDALONE_]: Removed all conditional code.
+
+ * include/freetype/internal/cfftypes.h, src/cff/*.c: Updating the
+ type definitions of the CFF font driver.
+
+ CFF_Font => CFF_FontRec
+ CFF_Font* => CFF_Font
+ etc.
+
+ * include/freetype/internal/fnttypes.h, src/winfonts/*.c: Updating
+ type definitions of the Windows FNT font driver.
+
+ * include/freetype/internal/ftdriver.h,
+ include/freetype/internal/ftobjs.h, src/base/ftapi.c,
+ src/base/ftobjs.c, src/cff/cffdrivr.c, src/cff/cffdrivr.h,
+ src/cid/cidriver.c, src/cid/cidriver.h, src/pcf/pcfdriver.c,
+ src/pcf/pcfdriver.h, src/truetype/ttdriver.c,
+ src/truetype/ttdriver.h, src/type1/t1driver.c, src/type1/t1driver.h,
+ src/winfonts/winfnt.c, src/winfonts/winfnt.h: Updating type
+ definitions for font drivers.
+
+ FTDriver_initFace => FT_Face_InitFunc
+ FTDriver_initGlyphSlot => FT_Slot_InitFunc
+ etc.
+
+ * src/cid/cidobjs.c (CID_Face_Init): Remove dead code.
+
+ * include/freetype/internal/ftobjs.h, src/base/ftobjs.c: Updated a
+ few face method definitions:
+
+ FT_PSName_Requester => FT_Face_GetPostscriptNameFunc
+ FT_Glyph_Name_Requester => FT_Face_GetGlyphNameFunc
+ FT_Name_Index_Requester => FT_Face_GetGlyphNameIndexFunc
+
+ * src/base/ftapi.c: New file. It contains backward compatibility
+ functions.
+
+ * include/freetype/internal/psaux.h, src/cid/cidload.c,
+ src/cidtoken.h, src/psaux/psobjs.c, src/psaux/psobjs.h,
+ src/psaux/t1decode.c, src/type1/t1load.c, src/type1/t1tokens.h:
+ Updated common PostScript type definitions.
+ Renamed all enumeration values like to uppercase variants:
+
+ t1_token_any => T1_TOKEN_TYPE_ANY
+ t1_field_cid_info => T1_FIELD_LOCATION_CID_INFO
+ etc.
+
+ * include/freetype/internal/psglobal.h: Removed.
+ * include/freetype/internal/pshints.h, src/pshinter/pshglob.h:
+ Updated.
+
+ * include/freetype/internal/tttypes.h,
+ include/freetype/internal/sfnt.h, src/base/ftnames.c,
+ src/cff/cffdrivr.c, src/sfnt/*.c, src/truetype/*.c: Updated
+ SFNT/TrueType type definitions.
+
+ * include/freetype/freetype.h, include/freetype/internal/ftgloadr.h:
+ Updating type definitions for the glyph loader.
+
+2002-03-13 Antoine Leca <antoine@oriolnet.com>
+
+ * include/freetype/config/ftoption.h: Changed the automatic
+ detection of Microsoft C compilers to automatically support 64-bit
+ integers only since revision 9.00 (i.e. >= Visual C++ 2.0).
+
+2002-03-08 Werner Lemberg <wl@gnu.org>
+
+ * src/base/ftutil.c (FT_Realloc): Use MEM_Set instead of memset.
+
+2002-03-07 Werner Lemberg <wl@gnu.org>
+
+ * src/base/ftdbgmem.c (ft_mem_table_resize, ft_mem_table_new,
+ ft_mem_table_set, ft_mem_debug_alloc, ft_mem_debug_free,
+ ft_mem_debug_realloc, ft_mem_debug_done, FT_Alloc_Debug,
+ FT_Realloc_Debug, FT_Free_Debug): Fix compiler warnings.
+ * src/base/ftcalc.c (FT_MulFix): Ditto.
+ * src/cff/cffdrivr.c (cff_get_name_index): Ditto.
+ * src/cff/cffobjs.c (CFF_Size_Get_Globals_Funcs, CFF_Size_Init,
+ CFF_GlyphSlot_Init): Ditto.
+ * src/cid/cidobjs.c (CID_GlyphSlot_Init,
+ CID_Size_Get_Globals_Funcs): Ditto.
+ * src/type1/t1objs.c (T1_Size_Get_Globals_Funcs, T1_GlyphSlot_Init):
+ Ditto.
+ * src/pshinter/pshmod.c (pshinter_interface): Use `static const'.
+ * src/winfonts/winfnt.c (FNT_Get_Next_Char): Remove unused
+ variables.
+
+ * include/freetype/internal/psaux.h (T1_Builder_Funcs): Renamed
+ to...
+ (T1_Builder_FuncsRec): This.
+ (T1_Builder_Funcs): New typedef.
+ (PSAux_Interface): Remove compiler warnings.
+ * src/psaux/psauxmod.c (t1_builder_funcs), src/psaux/psobjs.h
+ (t1_builder_funcs): Updated.
+
+ * src/pshinter/pshglob.h (PSH_Blue_Align): Replaced with ...
+ (PSH_BLUE_ALIGN_{NONE,TOP,BOT}): New defines.
+ (PSH_AlignmentRec): Updated.
+
+ * include/freetype/internal/ftstream.h (GET_Char, GET_Byte): Fix
+ typo.
+ * include/freetype/internal/ftgloadr.h (FT_SubGlyph): Ditto.
+ * src/base/ftstream (FT_Get_Char): Rename to...
+ (FT_Stream_Get_Char): This.
+
+ * src/base/ftnames.c (FT_Get_Sfnt_Name): s/index/idx/ -- `index' is
+ a built-in function in gcc, causing warning messages with gcc 3.0.
+ * src/autohint/ahglyph.c (ah_outline_load): Ditto.
+ * src/autohint/ahglobal.c (ah_hinter_compute_blues): Ditto.
+ * src/cache/ftcmanag.c (ftc_family_table_alloc,
+ ftc_family_table_free, FTC_Manager_Done, FTC_Manager_Register_Cache):
+ Ditto.
+ * src/cff/cffload.c (cff_new_index, cff_done_index,
+ cff_explicit_index, CFF_Access_Element, CFF_Forget_Element,
+ CFF_Get_Name, CFF_Get_String, CFF_Load_SubFont, CFF_Load_Font,
+ CFF_Done_Font): Ditto.
+ * src/psaux/psobjs.c (PS_Table_Add, PS_Parser_LoadField): Ditto.
+ * src/psaux/t1decode.c (T1_Decoder_Parse_Charstrings): Ditto.
+ * src/pshinter/pshrec.c (ps_mask_test_bit, ps_mask_clear_bit,
+ ps_mask_set_bit, ps_dimension_add_t1stem, ps_hints_t1stem3,
+ * src/pshinter/pshalgo1.c (psh1_hint_table_record,
+ psh1_hint_table_record_mask, psh1_hint_table_activate_mask): Ditto.
+ * src/pshinter/pshalgo2.c (psh2_hint_table_record,
+ psh2_hint_table_record_mask, psh2_hint_table_activate_mask): Ditto.
+ * src/sfnt/ttpost.c (Load_Format_20, Load_Format_25,
+ TT_Get_PS_Name): Ditto.
+ * src/truetype/ttgload.c (TT_Get_Metrics, Get_HMetrics,
+ load_truetype_glyph): Ditto.
+ * src/type1/t1load.c (parse_subrs, T1_Open_Face): Ditto.
+ * src/type1/t1afm.c (T1_Get_Kerning): Ditto.
+ * include/freetype/cache/ftcmanag.h (ftc_family_table_free): Ditto.
+
+2002-03-06 David Turner <david@freetype.org>
+
+ * src/type1/t1objs.c (T1_Face_Init), src/cid/cidobjs.c
+ (CID_Face_Init): Fixed another bug related to the
+ ascender/descender/text height of Postscript fonts.
+
+ * src/pshinter/pshalgo2.c (print_zone): Renamed to ...
+ (psh2_print_zone): This.
+ * src/pshinter/pshalgo1.c (print_zone): Renamed to ...
+ (psh1_print_zone): This.
+
+ * include/freetype/freetype.h, include/freetype/internal/ftobjs.h,
+ src/base/ftobjs.c: Adding the new FT_Library_Version API to return
+ the library's current version in dynamic links.
+ * src/base/ftinit.c (FT_Init_FreeType): Updated.
+
+2002-03-06 Werner Lemberg <wl@gnu.org>
+
+ * src/pshinter/pshglob.h (PSH_DimensionRec): s/std/stdw/.
+ * src/pshinter/pshglob.c (psh_global_scale_widths,
+ psh_dimension_snap_width, psh_globals_destroy, psh_globals_new):
+ Ditto.
+
+2002-03-05 David Turner <david@freetype.org>
+
+ * src/type1/t1objs.c (T1_Face_Init), src/cff/cffobjs.c
+ (CFF_Face_Init), src/cid/cidobjs.c (CID_Face_Init): Removing the bug
+ that returned global BBox values in 16.16 fixed format (instead of
+ integer font units).
+
+ * src/cid/cidriver.c (cid_get_postscript_name): Fixed a bug that
+ caused the CID driver to return Postscript font names with a leading
+ slash (`/') as in `/MOEKai-Regular'.
+
+ * src/sfnt/ttload.c (TT_Load_Names), src/sfnt/sfobjs.c (Get_Name),
+ src/sfnt/sfdriver.c (get_sfnt_postscript_name): Fixed the loader so
+ that it accepts broken fonts like `foxjump.ttf', which made FreeType
+ crash when trying to load them.
+
+ Also improved the name table parser to be able to load
+ Windows-encoded entries before Macintosh or Unicode ones, since it
+ seems some fonts don't have reliable values here anyway.
+
+ * include/freetype/internal/psnames.h: Add typedef for
+ `PSNames_Service'.
+
+2002-03-05 Werner Lemberg <wl@gnu.org>
+
+ * builds/unix/aclocal.m4, builds/unix/ltmain.sh: Update to libtool
+ 1.4.2.
+ Apply a small patch for AIX to make shared libraries work (this
+ patch is already in the CVS version of libtool).
+
+ * builds/unix/config.sub, builds/unix/config.guess: Updated to
+ recent versions.
+
+ * builds/unix/configure.ac: Fix typo
+ (AC_CONFIG_FILE->AC_CONFIG_FILES).
+
+ * builds/unix/configure: Regenerated.
+
+2002-02-28 David Turner <david@freetype.org>
+
+ * include/freetype/ftconfig.h: Changed `FT_LOCAL xxxx' to
+ `FT_LOCAL( xxxx )' everywhere in the source. The same goes for
+ `FT_LOCAL_DEF xxxx' which is translated to `FT_LOCAL_DEF( xxxxx )'.
+
+ * include/freetype/freetype.h (FREETYPE_MINOR, FREETYPE_PATCH):
+ Changing version to 2.1.0 to indicate an unstable branch.
+ Added the declarations of FT_Get_First_Char and FT_Get_Next_Char.
+
+ * src/base/ftobjs.c: Implement FT_Get_First_Char and
+ FT_Get_Next_Char.
+
+ * include/freetype/t1tables.h: Renaming structure types. This
+
+ typedef T1_Struct_
+ {
+ } T1_Struct;
+
+ becomes
+
+ typedef PS_StructRec_
+ {
+ } PS_StructRec, *PS_Struct;
+
+ typedef PS_StructRec T1_Struct; /* backward compatibility */
+
+ Hence, we increase the coherency of the source code by effectively
+ using the `Rec' prefix for structure types.
+
+2002-02-27 David Turner <david@freetype.org>
+
+ * src/sfnt/ttload.c (TT_Load_Names): Simplifying and securing the
+ names table loader. Invalid individual name entries are now handled
+ correctly. This allows the loading of very buggy fonts like
+ `foxjump.ttf' without allocating tons of memory and causing crashes.
+
+ * src/otlayout/otlcommon.h, src/otlayout/otlcommon.c: Adding (still
+ experimental) code for OpenType Layout tables validation and
+ parsing.
+
+ * src/type1/t1cmap.h, src/type1/t1cmap.c: Adding (still
+ experimental) code for Type 1 charmap processing.
+
+ * src/sfnt/ttcmap0.c: New file. It contains a new, still
+ experimental SFNT charmap processing support.
+
+ * include/freetype/internal/ftobjs.h: Adding validation support as
+ well as internal charmap object definitions (FT_CMap != FT_CharMap).
+
+2002-02-24 David Turner <david@freetype.org>
+
+ * Renaming stream functions to the FT_<Subject>_<Action> scheme:
+
+ FT_Seek_Stream => FT_Stream_Seek
+ FT_Skip_Stream => FT_Stream_Skip
+ FT_Read_Stream => FT_Stream_Read
+ FT_Read_Stream_At => FT_Stream_Read_At
+ FT_Access_Frame => FT_Stream_Enter_Frame
+ FT_Forget_Frame => FT_Stream_Exit_Frame
+ FT_Extract_Frame => FT_Stream_Extract_Frame
+ FT_Release_Frame => FT_Stream_Release_Frame
+ FT_Get_XXXX => FT_Stream_Get_XXXX
+ FT_Read_XXXX => FT_Stream_Read_XXXX
+
+ FT_New_Stream( filename, stream ) =>
+ FT_Stream_Open( stream, filename )
+
+ (The function doesn't create the FT_Stream structure, it simply
+ initializes it for reading.)
+
+ FT_New_Memory_Stream( library, FT_Byte* base, size, stream ) =>
+ FT_Stream_Open_Memory( stream, const FT_Byte* base, size )
+
+ FT_Done_Stream => FT_Stream_Close
+ FT_Stream_IO => FT_Stream_IOFunc
+ FT_Stream_Close => FT_Stream_CloseFunc
+
+ ft_close_stream => ft_ansi_stream_close (in base/ftsystem.c only)
+ ft_io_stream => ft_ansi_stream_io (in base/ftsystem.c only)
+
+ * src/base/ftutil.c: New file. Contains all memory and list
+ management code (previously in `ftobjs.c' and `ftlist.c',
+ respectively).
+
+ * include/freetype/internal/ftobjs.h: Moving all code related to
+ glyph loaders to ...
+ * include/freetype/internal/ftgloadr.h: This new file.
+ `FT_GlyphLoader' is now a pointer to the structure
+ `FT_GlyphLoaderRec'.
+ (ft_glyph_own_bitmap): Renamed to ...
+ (FT_GLYPH_OWN_BITMAP): This.
+ * src/base/ftobjs.c: Moving all code related to glyph loaders
+ to ...
+ * src/base/ftgloadr.c: This new file.
+
+2002-02-22 Werner Lemberg <wl@gnu.org>
+
+ * include/freetype/internal/ftdebug.h (FT_Trace): Remove comma in
+ enum to avoid compiler warnings.
+
+2002-02-21 David Turner <david@freetype.org>
+
+ Modified the debug sub-system initialization. Trace levels can now
+ be specified within the `FT2_DEBUG' environment variable. See the
+ comments within `ftdebug.c' for more details.
+
+ * src/base/ftdebug.c: (FT_SetTraceLevel): Removed.
+ (ft_debug_init): New function.
+ (ft_debug_dummy): Removed.
+ Updated to changes in ftdebug.h
+
+ * include/freetype/internal/ftdebug.h: Always define
+ FT_DEBUG_LEVEL_ERROR if FT_DEBUG_LEVEL_TRACE is defined.
+ (FT_Assert): Renamed to ...
+ (FT_ASSERT): This.
+ Some stuff from ftdebug.h has been moved to ...
+
+ * include/freetype/internal/fttrace.h: New file, to define the trace
+ levels used for debugging. It is used both to define enums and
+ toggle names for FT2_DEBUG.
+
+ * include/freetype/internal/internal.h: Updated.
+
+ * src/base/ftobjs.c, src/base/ftstream.c: Updated.
+
+ * include/freetype/internal/ftextend.h, src/base/ftextend.c:
+ Removed. Both files are now completely obsolete.
+ * src/base/Jamfile, src/base/rules.mk: Updated.
+
+ * include/freetype/fterrors.h: Adding `#undef FT_ERR_CAT' and
+ `#undef FT_ERR_XCAT' to avoid warnings with certain compilers (like
+ LCC).
+
+ * src/pshinter/pshalgo2.c (print_zone): Renamed to ...
+ (psh2_print_zone): This to avoid errors during compilation of debug
+ library.
+
+ * src/smooth/ftgrays.c (FT_COMPONENT): Change definition to as
+ `trace_smooth'.
+
+2002-02-20 David Turner <david@freetype.org>
+
+ * README: Adding `devel@freetype.org' address for bug reports.
+
+2002-02-20 Werner Lemberg <wl@gnu.org>
+
+ * builds/unix/install.mk (check): New dummy target.
+ (.PHONY): Add it.
+
+2002-02-19 Werner Lemberg <wl@gnu.org>
+
+ * builds/freetype.mk (FT_CFLAGS): Use $(INCLUDE_FLAGS) first.
+
+ * src/cache/ftccache.c (ftc_cache_resize): Mark `error' as unused
+ to avoid compiler warning.
+ * src/cff/cffload.c (CFF_Get_String): Ditto.
+ * src/cff/cffobjs.c (CFF_StrCopy): Ditto.
+ * src/psaux/psobjs.c (PS_Table_Done): Ditto.
+ * src/pcf/pcfread.c (pcf_seek_to_table_type): Ditto.
+ * src/sfnt/sfdriver.c (get_sfnt_postscript_name): Ditto.
+ (pcf_get_bitmaps): The same for `sizebitmaps'.
+ * src/psaux/t1decode.c (T1_Decoder_Parse_Charstrings): The same for
+ `orig_y'.
+ (t1operator_seac): Comment out more dead code.
+ * src/pshinter/pshalgo2.c (ps2_hints_apply): Add `DEBUG_HINTER'
+ conditional.
+ * src/truetype/ttgload.c (TT_Process_Simple_Glyph,
+ load_truetype_glyph): Add `TT_CONFIG_OPTION_BYTECODE_INTERPRETER'
+ conditional.
+
+2002-02-18 Werner Lemberg <wl@gnu.org>
+
+ * src/autohint/ahglyph.c (ah_outline_link_segments): Remove unused
+ variables.
+ * src/autohint/ahhint.c (ah_align_serif_edge): Use FT_UNUSED instead
+ of UNUSED.
+ * src/autohint/ahmodule.c (ft_autohinter_reset): Ditto.
+ * src/pshinter/pshrec.c (ps_mask_table_merge): Fix typo in variable
+ swapping code.
+ * src/pshinter/pshglob.h (PSH_Blue_Align): Add PSH_BLUE_ALIGN_NONE.
+ * src/pshinter/pshglob.c (psh_blues_snap_stem): Use it.
+ * src/pshinter/pshalgo1.c (psh1_hint_table_optimize): Ditto.
+ * src/pshinter/pshalgo2.c (psh2_hint_align): Ditto.
+ * include/freetype/internal/ftobjs.h (UNUSED): Removed.
+
+2002-02-10 Roberto Alameda <ojancano@geekmail.de>
+
+ Add support for ISOLatin1 PS encoding.
+
+ * include/freetype/freetype.h (ft_encoding_latin_1): New tag
+ (`lat1').
+ * include/freetype/internal/t1types.h (T1_Encoding_Type): Add
+ `t1_encoding_isolatin1'.
+ * src/type1/t1driver.c (Get_Char_Index, Get_Next_Char): Handle
+ ft_encoding_latin_1.
+ * src/type1/t1load.c (parse_encoding): Handle `ISOLatin1Encoding'.
+ * src/type1/t1objs.c (T1_Face_Init): Handle `t1_encoding_isolatin1'.
+
+----------------------------------------------------------------------------
+
+Copyright (C) 2002-2021 by
+David Turner, Robert Wilhelm, and Werner Lemberg.
+
+This file is part of the FreeType project, and may only be used, modified,
+and distributed under the terms of the FreeType project license,
+LICENSE.TXT. By continuing to use, modify, or distribute this file you
+indicate that you have read the license and understand and accept it
+fully.
+
+
+Local Variables:
+version-control: never
+coding: utf-8
+End:
diff --git a/freetype/docs/oldlogs/ChangeLog.210 b/freetype/docs/oldlogs/ChangeLog.210
new file mode 100644
index 00000000..eea4d27b
--- /dev/null
+++ b/freetype/docs/oldlogs/ChangeLog.210
@@ -0,0 +1,7815 @@
+2021-07-18 Werner Lemberg <wl@gnu.org>
+
+ * Version 2.11.0 released.
+ ==========================
+
+
+ Tag sources with `VER-2-11-0'.
+
+ * docs/VERSION.TXT: Add entry for version 2.11.0.
+ * docs/CHANGES: Updated.
+
+ * README, src/base/ftver.rc, builds/windows/vc2010/index.html,
+ builds/windows/visualc/index.html,
+ builds/windows/visualce/index.html,
+ builds/wince/vc2005-ce/index.html,
+ builds/wince/vc2008-ce/index.html, docs/freetype-config.1:
+ s/2.10.4/2.11.0/, s/2104/2110/.
+
+ * include/freetype/freetype.h (FREETYPE_MINOR): Set to 11.
+ (FREETYPE_PATCH): Set to 0.
+
+ * builds/unix/configure.raw (version_info): Set to 24:0:18.
+ * CMakeLists.txt (VERSION_MINOR): Set to 11.
+ (VERSION_PATCH): Set to 0.
+
+ * builds/toplevel.mk (dist): Ignore more git-related files.
+
+2021-07-17 David Turner <david@freetype.org>
+
+ * src/smooth/ftgrays.c: Fix compilation if `FT_LONG64` is undefined.
+
+ The code assumed that if `__SSE2__` is defined, then 64-bit integer
+ types are available. This is not the case apparently for certain
+ multilib compiler targets like 'x86_32.x86' used by Gentoo.
+
+ This patch fixes the issue by disabling the special code path when
+ 64-bit integer types are not available.
+
+ Fixes #1071.
+
+2021-07-16 Alex Richardson <Alexander.Richardson@cl.cam.ac.uk>
+
+ [tests] Allow arbitrary build directories.
+
+ * tests/issue-1063/main.c (main): I am building with a build
+ directory that is not directly inside the source tree, so the path
+ `../tests/data/As.I.Lay.Dying.ttf` does not resolve to the test
+ input file. This change passes the test data directory as an
+ environment variable to allow arbitrary build directories.
+
+ * tests/meson.build: Updated.
+
+2021-07-16 Alex Richardson <Alexander.Richardson@cl.cam.ac.uk>
+
+ * tests/issue-1063/main.c (main): Fix uninitialized variable.
+
+ I tried running `meson test` but the test just crashed and gdb
+ reported that the face argument to `FT_Get_Char_Index` was nonsense.
+ With this change the test prints 'Could not open file: ' as it
+ should.
+
+2021-07-16 Werner Lemberg <wl@gnu.org>
+
+ [smooth] Minor fixes.
+
+ * src/smooth/ftgrays.c (gray_render_conic): Move variable and
+ structure declarations to beginning of function. Inspite of C99
+ compliance we still do this for the sake of backward compatibility.
+ This also avoids a shadowing declaration of `count`.
+ (gray_convert_glyph_inner): Fix typo.
+
+2021-07-15 Ben Wagner <bungeman@chromium.org>
+
+ * src/smooth/ftgrays.c: Guard inclusion of `emmintrin.h`.
+
+ Guard inclusion of `emmintrin.h` with `#ifdef __SSE2__`. The gcc
+ version of this header, `xmmintrin.h`, and `mmintrin.h` check that
+ the appropriate defines are set before defining anything (are
+ internally guarded). However, the clang versions of these includes
+ are not internally guarded. As a result of this, externally guard
+ the inclusion of these headers.
+
+2021-07-15 David Turner <david@freetype.org>
+
+ [smooth] Implement Bézier quadratic arc flattening with DDA.
+
+ Benchmarking shows that this provides a very slighty performance
+ boost when rendering fonts with lots of quadratic Bézier arcs,
+ compared to the recursive arc splitting, but only when SSE2 is
+ available, or on 64-bit CPUs.
+
+ On a 2017 Core i5-7300U CPU on Linux/x86_64:
+
+ ftbench -p -s10 -t5 -cb DroidSansFallbackFull.ttf
+
+ Before: 4.033 us/op (best of 5 runs for all numbers)
+ After: 3.876 us/op
+
+ ftbench -p -s60 -t5 -cb DroidSansFallbackFull.ttf
+
+ Before: 13.467 us/op
+ After: 13.385 us/op
+
+ * src/smooth/ftgrays.c (gray_render_conic): New implementation
+ based on DDA and optionally SSE2.
+
+2021-07-15 David Turner <david@freetype.org>
+
+ [smooth] Minor speedup to smooth rasterizer.
+
+ This speeds up the smooth rasterizer by avoiding conditional
+ branches in the hot path.
+
+ - Define a fixed 'null cell', which will be pointed to whenever the
+ current cell is outside of the current target region. This avoids
+ a `ras.cell != NULL` check in the `FT_INTEGRATE` macro.
+
+ - Also use the null cell as a sentinel at the end of all `ycells`
+ linked-lists, by setting its x coordinate to `INT_MAX`. This
+ avoids a `if (!cell)` check in `gray_set_cell` as well.
+
+ - Slightly change the worker struct fields to perform a little less
+ operations during rendering.
+
+ Example results (on a 2013 Corei5-3337U CPU)
+
+ out/ftbench -p -s10 -t5 -bc DroidSansFallbackFull.ttf
+
+ Before: 5.472 us/op
+ After: 5.275 us/op
+
+ out/ftbench -p -s60 -t5 -bc DroidSansFallbackFull.ttf
+
+ Before: 17.988 us/op
+ After: 17.389 us/op
+
+ * src/smooth/ftgrays.c (grat_TWorker): Replace `num_cells` field with
+ `cell_free` and `cell_limit`.
+ (NULL_CELL_PTR, CELL_MAX_X_VALUE, CELL_IS_NULL): New macros.
+ (gray_dump_cells, gray_set_cell, gray_sweep, gray_sweep_direct,
+ gray_convert_glyph_inner, gray_convert_glyph): Updated.
+
+2021-07-15 David Turner <david@freetype.org>
+
+ [tests] Rewrite download script in Python3.
+
+ This commit replaces the bash script with a Python script that does
+ the same work, plus avoiding to download anything if the files are
+ already installed with the right content.
+
+ We now use the first 8 bytes of each file's sha256 hash for the
+ digest.
+
+ * tests/scripts/download-test-fonts.sh: Removed.
+ * tests/scripts/download-test-fonts.py: New script.
+ * tests/README.md: Updated.
+
+2021-07-15 Alex Richardson <Alexander.Richardson@cl.cam.ac.uk>
+
+ Support architectures where `long` is smaller than pointers.
+
+ I am currently trying to compile FreeType for CHERI-extended ISAs
+ (CHERI-RISC-V and Arm's Morello), but I am getting compiler warnings
+ from the `FT_UINT_TO_POINTER` macro. When compiling with the CHERI
+ Clang compiler, not using `uinptr_t` for casts between integers an
+ pointers results in the following `-Werror` build failures:
+
+ ```
+ In file included from .../src/truetype/truetype.c:22:
+ .../src/truetype/ttgload.c:1925:22: error:
+ cast from provenance-free integer type to pointer type will
+ give pointer that can not be dereferenced
+ [-Werror,-Wcheri-capability-misuse]
+ node->data = FT_UINT_TO_POINTER( glyph_index );
+ ^
+ .../include/freetype/internal/compiler-macros.h:79:34: note:
+ expanded from macro 'FT_UINT_TO_POINTER'
+ ```
+
+ * include/freetype/internal/compiler-macros.h (FT_UINT_TO_POINTER):
+ The ISO C standard compliant fix for this would be to use
+ `uintptr_t` from `stdint.h`, but I am not sure if this is supported
+ by the minimum compiler version. Therefore, use the
+ compiler-defined `__UINTPTR_TYPE__` macro (supported in GCC 4.6+ and
+ Clang since about 3.0) before checking for `_WIN64` and falling back
+ to `unsigned long`.
+
+2021-07-13 Oleg Oshmyan <chortos@inbox.lv>
+
+ [base] Fix `FT_Open_Face`'s handling of user-supplied streams.
+
+ This was already true (though undocumented) most of the time, but
+ not if `FT_NEW` inside `FT_Stream_New` failed or if the
+ `FT_OPEN_XXX` flags were bad.
+
+ Normally, `FT_Open_Face` calls `FT_Stream_New`, which returns the
+ user-supplied stream unchanged, and in case of any subsequent error
+ in `FT_Open_Face`, the stream is closed via `FT_Stream_Free`.
+
+ Up to now, however, `FT_Stream_New` allocates a new stream even if
+ it is already given one by the user. If this allocation fails, the
+ user-supplied stream is not returned to `FT_Open_Face` and never
+ closed. Moreover, the user cannot detect this situation: all they
+ see is that `FT_Open_Face` returns `FT_Err_Out_Of_Memory`, but that
+ can also happen after a different allocation fails within the main
+ body of `FT_Open_Face`, when the user's stream has already been
+ closed by `FT_Open_Face`. It is plausible that the user stream's
+ `close` method frees memory allocated for the stream object itself,
+ so the user cannot defensively free it upon `FT_Open_Face` failure
+ lest it ends up doubly freed. All in all, this ends up leaking the
+ memory/resources used by user's stream.
+
+ Furthermore, `FT_Stream_New` simply returns an error if the
+ `FT_OPEN_XXX` flags are unsupported, which can mean either an
+ invalid combination of flags or a perfectly innocent
+ `FT_OPEN_STREAM` on a FreeType build that lacks stream support.
+ With this patch, the user-supplied stream is closed even in these
+ cases, so the user can be sure that if `FT_Open_Face` failed, the
+ stream is definitely closed.
+
+ * src/base/ftobjs.c (FT_Stream_New): Don't allocate a buffer
+ unnecessarily.
+ Move error-handling code to make the control flow more obvious.
+ Close user-supplied stream if the flags are unsupported.
+ `FT_Stream_Open` always sets `pathname.pointer`, so remove the
+ redundant (re)assignment. None of the `FT_Stream_Open...` functions
+ uses `stream->memory`, so keep just one assignment at the end,
+ shared among all possible control flow paths.
+ ('Unsupported flags' that may need a stream closure can be either an
+ invalid combination of multiple `FT_OPEN_XXX` mode flags or a clean
+ `FT_OPEN_STREAM` flag on a FreeType build that lacks stream
+ support.)
+
+2021-07-13 Oleg Oshmyan <chortos@inbox.lv>
+
+ [base] Reject combinations of incompatible `FT_OPEN_XXX` flags.
+
+ The three modes are mutually exclusive, and the documentation of the
+ `FT_OPEN_XXX` constants notes this. However, there was no check to
+ validate this in the code, and the documentation on `FT_Open_Args`
+ claimed that the corresponding bits were checked in a well-defined
+ order, implying it was valid (if useless) to specify more than one.
+ Ironically, this documented order did not agree with the actual
+ code, so it could not be relied upon; hopefully, nobody did this and
+ nobody will be hurt by the new validation.
+
+ Even if multiple mode bits were allowed, they could cause memory
+ leaks: if both `FT_OPEN_STREAM` and `stream` are set along with
+ either `FT_OPEN_MEMORY` or `FT_OPEN_PATHNAME`, then `FT_Stream_New`
+ allocated a new stream but `FT_Open_Face` marked it as an 'external'
+ stream, so the stream object was never released.
+
+ * src/base/ftobjs.c (FT_Stream_New): Reject incompatible
+ `FT_OPEN_XXX` flags.
+
+2021-07-12 Alex Richardson <Alexander.Richardson@cl.cam.ac.uk>
+
+ * meson.build: Fix build for other UNIX systems (e.g., FreeBSD).
+
+ Without this change the build of `unix/ftsystem.c` fails because the
+ `ftconfig.h` header that defines macros such as `HAVE_UNISTD_H` and
+ `HAVE_FCNTL_H` is only being generated for Linux, macOS, and Cygwin
+ systems:
+
+ ```
+ .../builds/unix/ftsystem.c:258:32: error:
+ use of undeclared identifier 'O_RDONLY'
+ file = open( filepathname, O_RDONLY );
+ ```
+
+ Instead of hardcoding a list of operating systems for this check,
+ update the logic that decides whether to build the file and set a
+ boolean flag that can be checked instead.
+
+2021-07-12 Werner Lemberg <wl@gnu.org>
+
+ [autofit] More clean-ups.
+
+ * src/autofit/afhints.h (AF_GlyphHintsRec): Remove the no longer
+ needed fields `xmin_delta` and `xmax_delta`.
+
+ * src/autofit/afhints.c (af_glyph_hints_reload),
+ src/autofit/afloader.c (af_loader_load_glyph): Updated.
+
+2021-07-12 Werner Lemberg <wl@gnu.org>
+
+ Small clean-ups for the last few commits.
+
+ * include/freetype/fttrace.h (afwarp): Removed.
+
+2021-07-12 David Turner <david@freetype.org>
+
+ Remove obsolete `AF_Angle` type and related sources.
+
+ * src/autofit/afangles.c: File removed. Functions related to
+ sorting moved to...
+ * src/autofit/afhints.c (af_sort_pos, af_sort_and_quantize_widths):
+ This file.
+ * src/autofit/afangles.h: File removed.
+ * src/autofit/aftypes.h: Updated.
+ * src/autofit/autofit.c: Updated.
+
+ * src/autofit/rules.mk (AUTOF_DRV_SRC): Updated.
+
+2021-07-12 David Turner <david@freetype.org>
+
+ Remove experimental auto-hinting 'warp' mode.
+
+ This feature was always experimental, and probably never worked
+ properly. This patch completely removes it from the source code,
+ except for a documentation block describing it for historical
+ purposes.
+
+ * devel/ftoption.h, include/freetype/config/ftoption.h: Remove
+ `AF_CONFIG_OPTION_USE_WARPER`.
+
+ * include/freetype/ftdriver.h: Document 'warping' property as
+ obsolete.
+
+ * src/autofit/afwarp.c, src/autofit/afwarp.h: Files removed.
+ * src/autofit/*: Remove any code related to warp mode.
+
+2021-07-12 David Turner <david@freetype.org>
+
+ Remove experimental 'Latin2' writing system (`FT_OPTION_AUTOFIT2`).
+
+ This code has always been experimental and was never compiled anyway
+ (`FT_OPTION_AUTOFIT2` does not appear in `ftoption.h` or even any of
+ our build files).
+
+ * include/freetype/internal/fttrace.h (aflatin2): Removed.
+ * src/autofit/aflatin2.h, src/autofit/aflatin2.c: Files removed.
+ * src/autofit/afloader.c: Remove undocumented hook to activate
+ Latin2 system.
+ * src/autofit/afstyles.h: Remove `ltn2_dflt` style definition.
+ * src/autofit/afwrtsys.h: Remove `LATIN2` writing system definition.
+ * src/autofit/autofit.c: Updated.
+
+2021-07-05 Werner Lemberg <wl@gnu.org>
+
+ * src/base/ftlcdfil.c (FT_Library_SetLcdGeometry): Fix argument.
+
+ Reported by Hin-Tak.
+
+2021-07-03 Werner Lemberg <wl@gnu.org>
+
+ * meson_options.txt: Sort alphabetically; no final full stops.
+
+2021-07-01 Ben Wagner <bungeman@chromium.org>
+
+ * src/truetype/ttgxvar.c (tt_set_mm_blend): Test `coords`.
+
+ It is undefined behavior to pass `NULL` to `memcpy`. `coords' is
+ passed to `memcpy` but `TT_Get_MM_Blend` and `TT_Get_Var_Design`
+ explictly call `tt_set_mm_blend` with `coords` as `NULL`. In
+ addition, `TT_Set_MM_Blend` has a similar possible issue.
+
+2021-06-30 Dominik Röttsches <drott@chromium.org>
+
+ [sfnt] Support PaintScale in 'COLR' v1 parsing.
+
+ * include/freetype/ftcolor.h (FT_PaintFormat): Renumber values, add
+ `FT_COLR_PAINTFORMAT_SCALE`.
+ (FT_PaintScale): New structure to represent 'PaintScale*' tables.
+ (FT_COLR_Paint): Updated.
+
+ * src/sfnt/ttcolr.c (FT_PaintFormat_Internal): New enumeration.
+ (read_paint): Parse 'PaintScale' and friends.
+
+2021-06-30 Dominik Röttsches <drott@chromium.org>
+
+ [sfnt] Handle fonts without layer list in 'COLR' v1.
+
+ 'COLR' v1 fonts do not necessarily need to have a layer list; for
+ this reason, 'fontTools' recently started generating fonts in a way
+ that drops the layer list if there are no layers in it. This
+ results in the layer list offset becoming zero, which FreeType
+ treated as an invalid table. Fix that and handle the case for layer
+ list offset being 0. This slightly changes how we need to calculate
+ the starting offset for paints.
+
+ * src/sfnt/ttcolr.c (tt_face_load_colr): Handle case of layer list
+ offset being zero without outright rejecting table.
+
+2021-06-30 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ * src/raster/ftraster.c (Render_Single_Pass): Simplify `band_stack'.
+
+2021-06-29 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ [raster] Do not skip the second pass without dropout control.
+
+ The second pass also fixes horizontal lines through the pixel centers.
+
+ * src/raster/ftraster.c (black_TWorker): Do not use `second_pass'.
+ (Render_Glyph): Skip the second pass only with the appropriate flag.
+
+2021-06-29 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ [raster] Handle sub-band stack locally.
+
+ * src/raster/ftraster.c (black_TWorker): Move `band_stack' from here..
+ (Render_Single_Pass): ... to here and accept limit arguments.
+ (Render_Glyph): Updated.
+
+2021-06-25 Anurag Thakur <anuthadev@gmail.com>
+
+ [CI] Introduce linux CI and refactor job names.
+
+ * .gitlab-ci.yml: Added jobs for building freetype on linux.
+
+2021-06-28 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ [raster] Handle Bézier stack locally.
+
+ * src/raster/ftraster.c (black_TWorker): Move `arcs' from here...
+ (Conic_To, Cubic_To): ... to here to tighten their scope.
+ (Bezier_Up, Bezier_Down): ... Take the current `arc' argument.
+
+2021-06-28 Dominik Röttsches <drott@chromium.org>
+
+ [sfnt] Improve paint limit checks
+
+ Paint tables can appear before the `base_glyphs_v1` offset if the
+ font is produced with the layer list before the base glyph list. In
+ this case paint tables can occur after the layer list but before the
+ base glyph list. Checks in the 'COLR' v1 code were rejecting fonts
+ with this layout. Improve these checks by calculating a minimum
+ offset after which paint tables can occur and use that in safety
+ checks.
+
+ * src/sfnt/ttcolr.c (Colr, tt_face_load_colr): Declare
+ `paint_start_v1` and calculate that as the minimum of the end of
+ layer list and base glyph list.
+ (get_child_table_pointer, read_paint, tt_face_get_paint_layers):
+ Use that in safety checks.
+
+2021-06-28 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ [raster] Clean up vertical sweep.
+
+ * src/raster/ftraster.c (black_TWorker): Replace the current line
+ offset with the pointer and drop the increment.
+ (Function_Sweep_Init): Take values as arguments instead of pointers.
+ (Vertical_Sweep_*, Horizontal_Sweep_Init, Draw_Sweep): Updated.
+
+2021-06-25 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ [raster] Make `band_top' local variable.
+
+ * src/raster/ftraster.c (black_TWorker): Move `band_top' from here...
+ (Render_Single_Pass): ... to here, and refactor.
+ (Render_Glyph): Updated.
+
+2021-06-25 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ [raster] Adjust sub-band bisecting limits.
+
+ We can bisect a band until it is just a single scan line. This might
+ be slow and cause time-outs but if we need to impose limits it should
+ be elsewhere.
+
+ * src/raster/ftraster.c (Render_Single_Pass): Tweak sub-banding.
+
+2021-06-25 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ * src/raster/ftraster.c (Render_Single_Pass): Remove dead code.
+
+2021-06-25 Werner Lemberg <wl@gnu.org>
+
+ [base] Add trace level to logging output.
+
+ Some practical debugging work has shown that displaying level X of
+ an `FT_TRACEX` macro in the output of `FT2_DEBUG="... -v"` would be
+ very helpful to find out which trace level should be selected. As
+ an example, we now get output like
+
+ ```
+ [ttobjs:2] TTF driver
+ [ttobjs:2] SFNT driver
+ [sfobjs:2] not a font using the SFNT container format
+ [t1objs:2] Type 1 driver
+ [stream:7] FT_Stream_EnterFrame: 14 bytes
+ ```
+
+ * include/freetype/internal/ftdebug.h (FT_LOGGING_TAGX): New macro.
+ (FT_LOG): Use it to add the trace level to the logging tag.
+
+ * include/freetype/internal/fttrace.h (FT_MAX_TRACE_LEVEL_LENGTH):
+ Adjust.
+
+ * docs/DEBUG: Updated.
+
+2021-06-24 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ [smooth, raster] Fix up and align error codes.
+
+ FT_Render_Glyph picked up FAILURE or 1 returned from the raster
+ function, which became a confusing error code. Instead, return
+ Raster_Overflow in the unlikely event that banding does not help or
+ another meaningful error.
+
+ * src/smooth/ftgrays.c (gray_convert_glyph_inner, gray_convert_glyph):
+ Use Raster_Overflow when the rendering pool is exhausted and return it
+ if banding does not help.
+ (gray_raster_render): Use Smooth_Err_Ok.
+
+ * src/raster/ftraster.c (Render_Single_Pass): Return Raster_Overflow
+ if banding does not help or another error code.
+
+2021-06-23 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ [smooth, raster] Remove synonymous error macros.
+
+ * src/smooth/ftgays.c [STANDALONE_]: s/ErrRaster_/Smooth_Err_/.
+ (gray_convert_glyph_inner): Updated accordingly.
+
+ * src/raster/ftraster.c [STANDALONE_]: Do not abbreviate error macros.
+ (New_Profile, End_Profile, Insert_Y_Turn, Line_Up, Bezier_Up,
+ Decompose_Curve, Draw_Sweep, Render_Single_Pass, ft_black_render):
+ Updated accordingly.
+
+2021-06-22 Dominik Röttsches <drott@chromium.org>
+
+ [sfnt] s/PaintTransformed/PaintTransform/, s/transformed/transform/.
+
+ * include/freetype/ftcolor.h (FT_PaintTransformed, FT_PaintFormat,
+ FT_COLR_Paint): Do it to make it harmonize with other names such as
+ 'PaintTranslate'.
+
+ * src/sfnt/ttcolr.c (read_paint, tt_face_get_paint): Ditto.
+
+2021-06-22 Dominik Röttsches <drott@chromium.org>
+
+ Move 'COLR' API to `ftcolor.h`.
+
+ * include/freetype/freetype.h: Cut section layer managament
+ containing 'COLR' v0 and v1 API and move it to `ftcolor.h` as
+ requested by Werner on freetype-devel.
+ * include/freetype/ftcolor.h: Paste that section.
+
+2021-06-19 Werner Lemberg <david@freetype.org>
+
+ [truetype] Fix integer overflow.
+
+ Reported as
+
+ https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=35312
+
+ * src/truetype/ttinterp.c (Ins_JMPR): Use `ADD_LONG`.
+
+2021-06-19 Werner Lemberg <david@freetype.org>
+
+ [autofit] Prevent hinting if there are too many segments.
+
+ This speeds up handling of broken glyphs.
+
+ Reported as
+
+ https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=35309
+
+ * src/autofit/aflatin.c (af_latin_hints_compute_segments): Implement
+ it.
+
+2021-06-18 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ * src/sdf/ftsdfrend.c (ft_(b)sdf_render): Do not FT_ERROR routinely.
+
+2021-06-16 David Turner <david@freetype.org>
+
+ [autofit] Fix return value of `FT_Load_Glyph`.
+
+ * src/autofit/afglobal.c (af_face_globals_get_metrics): The issue is
+ that `style_metrics_init` sometimes returns -1 without clearing
+ `error`. While looping to `Again`, the next operation is
+ successful, but -1 is still returned by the function. The fix is to
+ set `error` to 0 appropriately.
+
+ Fixes #1063.
+
+2021-06-15 David Turner <david@freetype.org>
+
+ [meson] Add first regression test to FreeType.
+
+ * tests/README.md: New file that explains how to build and run the
+ tests with the Meson build.
+
+ * tests/scripts/download-test-fonts.sh: New bash script to download
+ test font files to the `tests/data` folder.
+
+ * meson.build, meson_options.txt: Add 'tests' option to enable
+ building and running the test programs (disabled by default).
+
+ * tests/meson.build: New file.
+
+ * tests/issue-1063/main.c: Simple regression test to exhibit issue
+ 1063.
+
+ * .gitignore: Ignore the content of the `tests/data` folder for
+ now.
+
+2021-06-12 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ [type42] Fix new memory leak.
+
+ We need to inverse inheritance of FT_GlyphSlot_Internal so that we
+ have a chance to free the rendered bitmap from the parent slot.
+
+ * src/type42/t42objs.c (T42_GlyphSlot_Init): Remove the internal parts
+ of the child `ttslot' and replace it with the parent structure.
+ (T42_GlyphSlot_Done): Updated accordingly.
+
+2021-06-12 Werner Lemberg <wl@gnu.org>
+
+ [psaux] Fix another assertion.
+
+ * src/psaux/psintrp.c (cf2_interpT2CharString)
+ <cf2_escCALLOTHERSUBR>: Convert assertion into error, since the
+ problem can happen with invalid user input.
+
+ Test case is file
+
+ fuzzing/corpora/legacy/oss-fuzz/5754332360212480-unknown-read
+
+ in the `freetype2-testing` repository.
+
+2021-06-12 Werner Lemberg <wl@gnu.org>
+
+ [psaux] Fix assertions.
+
+ * src/psaux/pshints.c (cf2_hintmap_adjustHints): Check for overflow
+ before emitting an assertion error.
+
+ Test case is file
+
+ fuzzing/corpora/legacy/oss-fuzz/4594115297673216-integer-overflow
+
+ in the `freetype2-testing` repository.
+
+2021-06-09 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ * src/truetype/ttinterp.c (TT_RunIns): Optimize tracing.
+
+2021-06-09 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ [sdf] Fix SDF positioning.
+
+ * src/sdf/ftsdfrend.c (ft_sdf_render, ft_bsdf_render): Add padding to
+ `bitmap_top' and `bitmap_left'.
+
+ * sdf/sdf/ftsdf.c (sdf_generate_with_overlaps): Fix VC++ warning.
+
+2021-06-08 Werner Lemberg <wl@gnu.org>
+
+ Fix 'devel' build for 'COLR' v1.
+
+ * devel/ftoption.h: Synchronize with
+ `include/freetype/config/ftoption.h`.
+
+2021-06-08 Werner Lemberg <wl@gnu.org>
+
+ [sfnt] Sanitize cmap4 table better.
+
+ Fixes #1062.
+
+ * src/sfnt/ttcmap.c (tt_cmap4_validate): Handle a too-small value of
+ `length` gracefully.
+
+2021-06-08 Dominik Röttsches <drott@chromium.org>
+
+ [sfnt] Pointer validity check when reading 'COLR' v1 layers
+
+ * src/sfnt/ttcolr.c (tt_face_get_paint_layers): In addition to the
+ existing sanity checks, ensure that the pointer to the layer to be
+ read is within the 'COLR' v1 table.
+
+2021-06-08 Werner Lemberg <wl@gnu.org>
+
+ * src/sdf/ftsdfcommon.c: Fix inclusion of header files.
+
+2021-06-08 Werner Lemberg <wl@gnu.org>
+
+ [sdf] Make `make multi` work.
+
+ * src/sdf/ftsdf.c: Include `ftbitmap.h`.
+
+ * src/sdf/ftsdfcommon.h: Move function bodies to `ftsdfcommon.c`.
+ Include `ftobjs.h` to get definitions of `FT_LOCAL` and friends.
+
+ * src/sdf/ftsdfcommon.c: New file.
+
+ * src/sdf/rules.mk, src/sdf/sdf.c: Updated.
+
+2021-06-08 Anuj Verma <anujv@iitbhilai.ac.in>
+
+ [sdf] Use 8 bits for final SDF output instead of 16bits.
+
+ Since 8-bits is enough to represent SDF data we no longer require
+ 16-bits for this purpose. Also, we now normalize the output data
+ to use the entire 8-bit range efficiently. For example: if we use
+ 3.5 format with a spread of 1 we basically only use the starting
+ 5-bits. By normalizing we can use the entire 8-bit range.
+
+ * include/freetype/freetype.h (FT_Render_Mode): Updated description
+ for `FT_RENDER_MODE_SDF` regarding this change.
+
+ * include/freetype/ftimage.h (FT_Pixel_Mode): Removed
+ `FT_PIXEL_MODE_GRAY16` since no longer required.
+
+ * include/freetype/fttypes.h (FT_F6Dot10): Removed since no longer
+ required.
+
+ * src/sdf/ftsdfrend.c (ft_sdf_render, ft_bsdf_render): Allocate 8-bit
+ bitmap instead of 16-bit buffer.
+
+ * src/sdf/ftsdfcommon.h (map_fixed_to_sdf): Added function to convert
+ 16.16 distance value to our desired format.
+
+ * src/sdf/ftsdf.c (sdf_generate_with_overlaps,
+ sdf_generate_bounding_box): Use the new `map_fixed_to_sdf` function
+ and also use 8-bit output buffer.
+
+ * src/sdf/ftbsdf.c (finalize_sdf): Output to a 8-bit buffer instead
+ of 16-bit buffer.
+
+2021-06-02 Ben Wagner <bungeman@chromium.org>
+ Werner Lemberg <wl@gnu.org>
+
+ [sfnt] Fix fallout from 2021-05-29 change.
+
+ * src/sfnt/ttcolr.c (find_base_glyph_record,
+ find_base_glyph_v1_record): Adjust binary search.
+
+ Needs to be updated with change to unsigned.
+
+2021-06-02 Werner Lemberg <wl@gnu.org>
+
+ * src/autofit/aflatin.c (af_latin_metrics_scale_dim): Fix tracing.
+
+ Problem reported by Alexei.
+
+2021-06-02 Werner Lemberg <wl@gnu.org>
+
+ [psaux] Fix MSVC compiler warnings.
+
+ * src/psaux/afmparse.c (afm_parse_track_kern, afm_parse_kern_pairs):
+ Add cast.
+
+2021-05-29 Werner Lemberg <wl@gnu.org>
+
+ Fix compilation errors and (some) warnings for clang++.
+
+ * src/autofit/afmodule.c (AF_GlyphHintsRec): Make it static.
+
+ * src/cache/ftcache.c (FTC_Cache_NewNode), src/cache/ftcsbits.c
+ (ftc_snode_compare): Remove semicolon.
+
+ * src/cff/cffparse.c (cff_parser_run): Add `break` statement.
+
+ * src/cid/cidload.c (cid_hex_to_binary): Add cast.
+
+ * src/sdf/ftbsdf.c (CHECK_NEIGHBOR): Use `do {} while(0)` loop.
+ (bsdf_init_distance_map, finalize_sdf, bsdf_raster_render): Add
+ casts.
+ * src/sdf/ftsdf.c (sdf_generate_bounding_box,
+ sdf_generate_with_overlaps): Ditto.
+ * src/sdf/ftsdfcommon.h (square_root): Ditto.
+ * src/sdf/ftsdfrend.c (sdf_property_get, ft_sdf_render,
+ ft_bsdf_render): Ditto.
+
+ * src/sfnt/ttcolr.c (find_base_glyph_record,
+ find_base_glyph_v1_record): Fix variable signedness.
+ (read_color_line): Add cast.
+ (read_paint): Add casts.
+ Fix signedness issue.
+ (tt_face_get_colorline_stops) Fix signedness issues.
+
+ * src/sfnt/ttpost.c (load_format_20): Add casts.
+
+ * src/truetype/ttsubpix.c (TWEAK_RULES, TWEAK_RULES_EXCEPTIONS):
+ Remove final semicolons.
+
+2021-05-29 Werner Lemberg <wl@gnu.org>
+
+ [build] Allow overriding of `ANSIFLAGS` for GNU make build.
+
+ * builds/*: Implement it.
+
+2021-05-27 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ [type42] Fix auto-hinting.
+
+ The autohinter could not access the base (unscaled) outline in the
+ child TrueType glyph slot. We now share the internal parts between
+ the parent and child glyph slots. Fixes #1057.
+
+ * src/type42/t42objs.c (T42_GlyphSlot_Init): Remove the internal parts
+ of `T42_GlyphSlot' and replace it with the child TrueType structure.
+ (T42_GlyphSlot_Done): Updated accordingly.
+
+2021-05-25 Werner Lemberg <wl@gnu.org>
+
+ [psaux] Guard and trace AFM kern data allocation.
+
+ Reported as
+
+ https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=31543
+
+ * include/freetype/internal/fttrace.h: Add 'afmparse' trace
+ component.
+
+ * src/psaux/afmparse.c (FT_COMPONENT): Define.
+ (afm_parse_track_kern, afm_parse_kern_pairs): Protect against
+ allocations bombs.
+ Add tracing.
+ (afm_parse_kern_data): Don't allow multiple kern data sections.
+
+2021-05-23 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ * meson.build (ft2_public_headers): Add missing `ftcid.h'.
+
+ Fixes #1058.
+
+2021-05-20 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ [type42] Avoid some memory zeroing.
+
+ * src/type42/t42objs.c (T42_Open_Face): Tweak allocation macro.
+ * src/type42/t42parse.c (t42_parse_sfnts): Ditto.
+
+2021-05-19 Nikolaus Waxweiler <madigens@gmail.com>
+
+ [CMake] Update dependency finders.
+
+ 1. Fixes CMake using any found HarfBuzz version lower than the minimum
+ required. This is based on HALX99's merge request at
+ https://gitlab.freedesktop.org/freetype/freetype/-/merge_requests/31
+ 2. Update FindHarfBuzz.cmake from
+ https://github.com/WebKit/WebKit/blob/1ce32454/Source/cmake/FindHarfBuzz.cmake
+ and guard post-CMake-3.1 features to keep the minimum version unchanged
+ 3. Update FindBrotliDec.cmake to stop the warnings, based on what
+ https://github.com/google/woff2/blob/a0d0ed7d/cmake/FindBrotliDec.cmake
+ is doing
+
+ * CMakeLists.txt, builds/cmake/FindHarfBuzz.cmake: Implement 1 and 2.
+ * builds/cmake/FindBrotliDec.cmake: Implement 3.
+
+2021-05-19 Ben Wagner <bungeman@chromium.org>
+
+ [gzip] Use exact type for `ft_gzip_alloc` and `ft_gzip_free`.
+
+ While a function pointer may be cast to another function pointer
+ type, it is required to cast the function pointer back to the
+ original function pointer type before calling it. If a parameter is
+ a pointer the exact pointer type is required. Using a pointer to a
+ different underlying type is technically undefined behavior. The
+ wrapper functions `ft_gzip_alloc` and `ft_gzip_free` took
+ `FT_Memory` (a `FT_MemoryRec_*`) instead of `voidpf` (`void*`), so
+ when gzip calls these callbacks through `alloc_func` or `free_func`
+ it invokes undefined behavior. On most platforms this works out as
+ expected, but newer undefined behavior detectors and targets like
+ wasm can detect this and will produce an error.
+
+ * src/gzip/ftgzip.c (ft_gzip_alloc, ft_gzip_free): Update signatures
+ to exactly match `alloc_func` and `free_func`, respectively.
+ Internally, cast the `void*` opaque pointer to `FT_Memory`.
+
+2021-05-18 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ Prioritize the anti-aliasing renderer module.
+
+ * modules.cfg: Reorder the renderers.
+ * include/freetype/config/ftmodule.h: Ditto.
+
+2021-05-16 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ [sfnt] Additional guards on the POST table.
+
+ Fixes timeout (#1055) analyzed by Ben Wagner, reported as
+
+ https://crbug.com/1194092
+
+ * src/sfnt/ttload.c (tt_face_load_post): Check POST format.
+ * src/sfnt/sfobjs.c (sfnt_load_face): Synthesize the missing unicode
+ charmap only if the glyph names exist.
+ * src/psnames/psmodule.c (ps_unicode_value): Short cut ".notdef" and
+ ".null".
+
+2021-05-13 Daniel McArdle <dmcardle@chromium.org>
+
+ [psaux] Use doubling allocation strategy for CF2_ArrStack.
+
+ Fixes timeout reported as
+
+ https://crbug.com/1206181
+
+ * src/psaux/psarrst.c (cf2_arrstack_{push,init}): Implement it.
+ * src/psaux/psarrst.h (CF2_ArrStackiRec): Drop `chunk'.
+
+2021-05-12 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ * src/smooth/ftgrays.c (FT_MAX_GRAY_SPANS): Increase from 10 to 16.
+
+ Ten was barely enough for two slanted stems. Sixteen can actually fit
+ a bit more complicated scanlines.
+
+2021-05-11 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ * src/smooth/ftgrays.c (FT_GRAY_SET): Adjust for better code.
+
+2021-05-11 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ [smooth] Faster bitmap sweeping.
+
+ Selecting the fill rule or checking the direct mode each time we call
+ `gray_hline' is sub-optimal. This effectively splits the direct mode
+ into a separate code path while inlining `gray_hline' and saving 5-7%
+ of rendering time.
+
+ * src/smooth/ftgrays.c (gray_hline): Eliminated in favor of...
+ (FT_FILL_RULE, FT_GRAY_SET): ... these new macros...
+ (gray_sweep): ... inlined here.
+ (gray_sweep_direct): New function that handles the direct span buffer.
+ (gray_TWorker): Remove the span buffer.
+ (gray_raster_render, gray_convert_glyph): Updated.
+
+2021-05-10 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ * src/smooth/ftgrays.c (gray_hline): Simplify even-odd computations.
+
+ It is too bad the even-odd rule is not used much.
+
+2021-05-07 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ [type1] Avoid MM memory zeroing.
+
+ * src/type1/t1load.c (t1_allocate_blend, parse_blend_design_map):
+ Tweak allocation macros.
+ * src/type1/t1objs.c (T1_Face_Done): Minor.
+
+2021-05-07 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ * src/bdf/bdflib.c (_bdf_list_ensure): Tweak allocation macro.
+
+2021-05-06 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ * src/psaux/psobjs.c (ps_parser_load_field): Tweak allocation macro.
+
+2021-05-06 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ * src/sfnt/sfobjs.c (sfnt_load_face): Tweak allocation macro.
+
+2021-05-06 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ * src/cid/cidload.c (cid_read_subrs): Tweak allocation macro.
+
+2021-05-06 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ * src/base/ftrfork.c (FT_Raccess_Get_DataOffsets): Tweak allocation.
+
+2021-05-05 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ [cff,psaux] Avoid memory zeroing (contd.).
+
+ * src/cff/cffload.c (cff_blend_doBlend, cff_blend_build_vector): Tweak
+ allocation macros.
+ * src/psaux/psarrst.c (cf2_arrstack_setNumElements): Ditto.
+ * src/psaux/psstack.c (cf2_stack_init): Ditto.
+
+2021-05-04 Ben Wagner <bungeman@chromium.org>
+
+ * src/cid/cidload.c (cid_hex_to_binary): Improve return value.
+
+ Add argument to return the actual number of bytes that were decoded.
+ The actual number of bytes decoded can be quite variable depending
+ on the number of ignored 'whitespace' bytes or early termination
+ with `>`.
+ (cid_face_open): Updated to use this calculated value. This avoids
+ trusting `parser->binary_length` is always be correct and reading
+ uninitialized bits if fewer are actually decoded.
+
+ First reported as
+
+ https://crbug.com/1203240
+
+2021-05-03 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ [sfnt] Streamline POST format 2.0 handing.
+
+ To reduce memory allocations, we read an entire Pascal-string buffer
+ and convert it to a C-string buffer. We also reject tables with
+ Postscript glyph names exceeding 63 bytes.
+
+ * src/sfnt/ttpost.c (load_format20): Implement it.
+ (load_post_names): Check the minimal POST table size.
+ (load_format25, tt_face_free_ps_names): Updated accordingly.
+
+2021-05-02 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ [bdf,pcf] Avoid memory zeroing (contd.).
+
+ * src/bdf/bdflib.c (bdf_create_property, _bdf_add_comment,
+ _bdf_add_property, bdf_load_font): Tweak allocation macros.
+ * src/pcf/pcfread.c (pcf_get_properties, pcf_get_metrics): Ditto.
+
+2021-05-01 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ * src/cid/cidload.c (cid_read_subrs): Tweak allocaton macro.
+
+2021-05-01 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ [sfnt] Avoid some memory zeroing.
+
+ * src/sfnt/sfobjs.c (sfnt_open_font, sfnt_init_face,
+ tt_name_ascii_from_{utf16,other}): Tweak allocaton macros.
+ * src/sfnt/ttload.c (tt_face_load_name): Ditto.
+
+2021-05-01 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ * src/sfnt/ttpost.c (load_format_{20,25}): Tweak allocaton macros.
+
+2021-05-01 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ * src/sfnt/pngshim.c (Load_SBit_Png): Tweak allocaton macro.
+
+2021-05-01 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ [truetype] Avoid some memory zeroing.
+
+ * src/truetype/ttinterp.c (Init_Context): Tweak allocation macro.
+ * src/truetype/ttpload.c (tt_face_load_cvt): Ditto.
+
+2021-05-01 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ [woff2] Avoid some memory zeroing.
+
+ * src/sfnt/sfwoff2.c (store_loca, woff2_open_font): Tweak macros.
+
+2021-04-30 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ * src/gzip/ftgzip.c (ft_gzip_alloc): Zero out memory again.
+
+2021-04-27 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ [lzw] Preserve decompression stack when relocating to heap.
+
+ * src/lzw/ftzopen.c (ft_lzwstate_stack_grow): Copy stack when
+ relocating to heap.
+
+2021-04-27 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ * src/cid/cidgload.c (cid_load_glyph): Restore the glyph_length check.
+
+2021-04-27 Werner Lemberg <wl@gnu.org>
+
+ * src/psmodule.c (ps_unicodes_init): Ignore empty glyph names.
+
+ Reported as
+
+ https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=33637
+
+2021-04-26 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ * src/sfnt/sfobjs.c (sfnt_init_face): Revert macro change.
+
+2021-04-26 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ [cff] Avoid some memory zeroing.
+
+ * src/cff/cffparse.c (cff_parser_init): Tweak memory macro.
+ * src/cff/cffload.c (cff_index_load_offsets, cff_index_get_pointers,
+ cff_charset_load, cff_vstore_load): Ditto.
+
+2021-04-26 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ [pfr] Avoid some memory zeroing.
+
+ * src/pfr/pfrobjs.c (pfr_face_init) : Tweak memory macro.
+ * src/pfr/pfrload.c (pfr_extra_item_load_stem_snaps,
+ pfr_phy_font_load): Ditto.
+
+2021-04-26 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ * src/winfonts/winfnt.c (FNT_Face_Init): Tweak memory macro.
+
+2021-04-26 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ [psaux,psnames] Avoid some memory zeroing.
+
+ * src/psaux/psstack.c (cf2_stack_init): Tweak memory macro.
+ * src/psnames/psmodule.c (ps_unicodes_init): Ditto.
+
+2021-04-25 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ [base] Avoid some memory zeroing.
+
+ * src/base/ftrfork.c (FT_Raccess_Get_DataOffsets): Use FT_QNEW_ARRAY.
+ * src/base/ftsnames.c (FT_Get_Sfnt_{Name,LangTag}): Ditto.
+
+2021-04-25 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ [bdf,pcf] Avoid some memory zeroing.
+
+ * src/pcf/pcfread.c (pcf_read_TOC, pcf_get_properties, pcf_load_font):
+ Tweak memory macros.
+ * src/bdf/bdfdrivr.c (BDF_Face_Init): Ditto.
+ * src/bdf/bdflib.c (_bdf_readstreami, bdf_create_property,
+ _bdf_parse_glyphs, _bdf_parse_start): Ditto.
+ (_bdf_add_property): Do not handle zero size.
+
+2021-04-25 Issam E. Maghni <issam.e.maghni@mailbox.org>
+
+ * builds/meson/process_ftoption_h.py: Add LF at EOF.
+
+ This fixes
+
+ .../ftoption.h:1030:10: error:
+ no newline at end of file [-Werror,-Wnewline-eof]
+
+ for the generated `ftoption.h` file.
+
+2021-04-24 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ * src/cff/cffload.c (cff_index_get_pointers): s/FT_QALLOC/FT_ALLOC/.
+
+2021-04-23 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ * src/base/ftobjs.c (Mac_Read_POST_Resource): s/FT_ALLOC/FT_QALLOC/.
+ * builds/mac/ftmac.c (FT_New_Face_From_SFNT, read_lwfn): Ditto.
+
+2021-04-23 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ * src/sdf/ftsdf.c (sdf_{edge,contour,shape}_new): Use FT_QALLOC.
+
+2021-04-23 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ [sfnt] s/FT_ALLOC/FT_QALLOC/ for initialized buffers.
+
+ * src/sfnt/sfdriver.c (get_win_string, get_apple_string,
+ sfnt_get_var_ps_name): Do not zero out the buffer.
+ * src/sfnt/sfobjs.c (sfnt_init_face): Ditto.
+ * src/sfnt/sfwoff.c (woff_open_font): Ditto.
+ * src/sfnt/sfwoff2.c (woff2_open_font): Ditto.
+
+2021-04-23 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ [cff,type1,type42] s/FT_ALLOC/FT_QALLOC/ for initialized buffers.
+
+ * src/cff/cffload.c (cff_index_get_pointers, cff_index_get_name):
+ Do not zero out the buffer.
+ * src/cff/cffdrivr.c (cff_ps_get_font_info): Ditto.
+ * src/type1/t1load.c (parse_subrs, parse_charstrings,
+ parse_blend_axis_types): Ditto.
+ * src/type1/t1parse.c (T1_New_Parser, T1_Get_Private_Dict): Ditto.
+ * src/type42/t42parse.c (t42_parser_init): Ditto.
+
+2021-04-23 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ [cid] s/FT_ALLOC/FT_QALLOC/ and clean up.
+
+ * src/cid/cidgload.c (cid_load_glyph): Do not zero out the buffer.
+ * src/cid/cidload.c (cid_face_open, cid_read_subrs): Ditto.
+
+2021-04-23 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ [pfr] s/FT_ALLOC/FT_QALLOC/ for initialized buffers.
+
+ * src/pfr/pfrload.c (pfr_extra_item_load_font_id, pfr_aux_name_load):
+ Do not zero out the buffer.
+
+2021-04-23 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ [bzip2,gzip] s/FT_ALLOC/FT_QALLOC/ for initialized buffers.
+
+ * src/bzip2/ftbzip2.c (ft_bzip2_alloc): Do not zero out the buffer.
+ * src/gzip/ftgzip.c (ft_gzip_alloc, FT_Stream_OpenGzip): Ditto.
+
+2021-04-23 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ [pcf,bdf,winfonts] s/FT_ALLOC/FT_QALLOC/ for initialized buffers.
+
+ * src/pcf/pcfread.c (pcf_interpret_style): Do not zero out the buffer.
+ * src/bdf/bdfdrivr.c (bdf_interpret_style): Ditto.
+ * src/winfonts/winfnt.c (FNT_Face_Init, FNT_Load_Glyph): Ditto.
+
+2021-04-22 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ [cache] Optimize SBit copying.
+
+ * src/cache/ftcsbits.c (ftc_snode_load): Do not initialize the buffer.
+ (ftc_sbit_copy_bitmap): Accept zero size, s/FT_ALLOC/FT_QALLOC/.
+
+2021-04-22 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ [gxvalid,otvalid] s/FT_ALLOC/FT_QALLOC/ for initialized buffers.
+
+ * src/gxvalid/gxvmod.c (gxv_load_table): Do not zero out the buffer.
+ * src/otvalid/otvmod.c (otv_load_table): Ditto.
+
+2021-04-22 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ [psaux] s/FT_ALLOC/FT_QALLOC/ for initialized buffers.
+
+ * src/psaux/psobjs.c (ps_table_done, ps_parser_load_field): Do not
+ zero out the buffer.
+
+2021-04-22 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ [base] s/FT_ALLOC/FT_QALLOC/ for initialized buffers.
+
+ * src/base/ftobjs.c (open_face_PS_from_sfnt_stream,
+ Mac_Read_sfnt_Resource): Do not zero out the buffer.
+ * src/base/ftmac.c (FT_New_Face_From_SFNT, read_lwfn): Ditto.
+ * src/base/ftrfork.c (raccess_make_file_name,
+ raccess_guess_darwin_hfsplus, raccess_guess_darwin_newvfs): Ditto.
+
+2021-04-20 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ [cache] Restore SBit copying for unowned (BDF) bitmaps.
+
+ * src/cache/ftcsbits.c (ftc_sbit_copy_bitmap): Restore.
+ (ftc_snode_load): Check ownership and copy unowned bitmaps.
+
+2021-04-19 Dominik Röttsches <drott@chromium.org>
+
+ [sfnt] Return in 'COLR' v1 when layer pointer outside table
+
+ * src/sfnt/ttcolr.c (tt_face_get_paint_layers): Add missing return
+ when paint pointer outside table.
+ (read_paint): Add missing return when paint pointer outside table.
+
+2021-04-18 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ [cache] Switch to lazy SBit setting.
+
+ * src/cache/ftcsbits.c (ftc_sbit_copy_bitmap): Removed.
+ (ftc_snode_load): Take the bitmap ownership instead of copying.
+
+2021-04-16 Daniel Welty <@danielwelty>
+
+ * src/cache/ftcsbits.c (ftc_snode_load): Properly handle short pitch.
+
+2021-04-16 Werner Lemberg <wl@gnu.org>
+
+ * builds/unix/freetype2.m4: Fix help string formatting.
+
+ The indented `dnl` macros inserted unwanted horizontal space.
+
+ Problem reported by Ozkan Sezer <sezeroz@gmail.com>.
+
+2021-04-16 Dominik Röttsches <drott@chromium.org>
+
+ [sfnt] Safeguard 'COLR' v1 layer extraction
+
+ * src/sfnt/ttcolr.c (tt_face_get_paint_layers): Do not output
+ layer pointer to iterator if it is outside the 'COLR' table.
+ (read_paint): Do not attempt to read layers that are outside the
+ table.
+
+2021-04-02 Ben Wagner <bungeman@chromium.org>
+
+ [base] Complete `ft_glyphslot_clear`.
+
+ * src/base/ftobjs.c (ft_glyphslot_clear): This function is intended
+ to reset all the values of a glyph slot. However, it was not
+ resetting the values of the advances and `glyph_index`. Reset the
+ advances and `glyph_index` to zero.
+
+2021-04-02 Ben Wagner <bungeman@chromium.org>
+
+ [truetype] Prevent glyph program state from persisting.
+
+ `FDEF` instructions are specified as allowed only in 'prep' or
+ 'fpgm'. FreeType has attempted to prevent their use in the glyph
+ program, but they were still allowed in glyph programs if defined in
+ a function defined in 'prep' or 'fpgm' and called from the glyph
+ program.
+
+ Similarly, `IDEF` instructions are specified not to be able to
+ modify any existing instruction. FreeType has attempted to prevent
+ their use in the glyph program, but they can still be used like
+ `FDEF`.
+
+ This change stores the initial bytecode range type and disallows the
+ use of `FDEF` and `IDEF` while running the glyph program.
+
+ Most other state is copied from the `TT_Size` into the execution
+ context. However, it is possible for a glyph program to use `WS` to
+ write to the storage area or `WCVTP`, `WCVTF`, and `DELTAC[123]` to
+ write to the control value table.
+
+ Allowing any change to the global state from the glyph program is
+ problematic as the outlines of any given glyph may change based on
+ the order the glyphs are loaded or even how many times they are
+ loaded. There exist fonts that write to the storage area or the
+ control value table in the glyph program, so their use should not be
+ an error.
+
+ Possible solutions to using these in the glyph program are
+
+ * ignore the writes;
+ * value-level copy on write, discard modified values when finished;
+ * array-level copy on write, discard the copy when finished;
+ * array-level copy up-front.
+
+ Ignoring the writes may break otherwise good uses. A full copy
+ up-front was implemented, but was quite heavy as even well behaved
+ fonts required a full copy and the memory management that goes along
+ with it. Value-level copy on write could use less memory but
+ requires a great deal more record keeping and complexity. This
+ change implements array-level copy on write. If any attempt is made
+ to write to the control value table or the storage area when the
+ initial bytecode range was in a glyph program, the relevant array
+ will be copied to a designated storage area and the copy used for
+ the rest of the glyph program's execution.
+
+ * src/truetype/ttinterp.h (TT_ExecContextRec): New fields
+ `iniRange`, `glyfCvtSize`, `glyfCvt`, `origCvt`, `glyfStoreSize`,
+ `glyfStorage`, and `origStorage`.
+
+ * src/truetype/ttinterp.c (Modify_CVT_Check): New function to handle
+ `exc->glyfCvt`.
+ (Write_CVT, Write_CVT_Stretched, Move_CVT, Move_CVT_Stretched): Use
+ it.
+ (Ins_WS): Handle `exc->glyfStorage`.
+ (Ins_FDEF, Ins_IDEF): Updated.
+ (TT_RunIns): Updated.
+ (TT_Done_Context): Free 'glyf' CVT working and storage area.
+ (TT_Load_Context): Fix/add casts.
+
+ * src/truetype/ttgload.c (TT_Load_Simple_Glyph): Fix cast.
+
+2021-03-30 Dominik Röttsches <drott@chromium.org>
+
+ [sfnt] Check validity of pointer location of `read_color_line`.
+
+ * src/sfnt/ttcolr.c (get_child_table_pointer): New function to fetch
+ child table pointer early for all paint formats that compute a child
+ table pointer.
+ (read_color_line, read_paint): Updated.
+ (tt_face_get_colorline_stops): Check `colr->table`.
+
+2021-03-28 Nikhil Ramakrishnan <ramakrishnan.nikhil@gmail.com>
+
+ [docs] Update docwriter stylesheet for 1.3.1.
+
+ This change is required to support docwriter 1.3.1.
+
+ See
+
+ https://gitlab.freedesktop.org/freetype/docwriter/-/merge_requests/101
+
+ for more information.
+
+ * docs/markdown/stylesheets/extra.css:
+ (.wy-nav-content, .md-sidebar--secondary): Remove.
+
+2021-03-16 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ * src/sfnt/pngshim.c (Load_SBit_Png): Free `rows` once later.
+
+2021-03-16 Ben Wagner <bungeman@google.com>
+
+ [sfnt] Fix memory leak in png loading.
+
+ Reported as
+
+ https://bugs.chromium.org/p/chromium/issues/detail?id=1182552
+
+ Memory is allocated and the pointer assigned to `rows` inside a
+ 'setjmp' scope. This memory must be freed outside the 'setjmp'
+ scope after a 'longjmp'. Since `rows` is a local and modified
+ inside the 'setjmp' scope it must be marked volatile or it will have
+ an indeterminate value after the 'longjmp'.
+
+ * src/sfnt/pngshim.c (Load_SBit_Png): Fix memory leak of `rows`.
+
+2021-03-16 Christopher Degawa <ccom@randomderp.com>
+
+ * CMakeLists.txt: Don't limit generation of 'pkg-config' file to UNIX.
+
+ mingw-w64 uses the 'pkg-config' files but does not set UNIX.
+
+2021-03-11 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ * src/smooth/ftgrays.c (gray_set_cell): Refactor to fix VC++ warning.
+
+2021-03-13 Werner Lemberg <wl@gnu.org>
+
+ Handle various VC++ compiler warnings.
+
+ Fixes #1039.
+
+ * src/base/ftstroke.c (ft_stroker_inside, ft_stroker_outside):
+ Initialize `sigma`.
+
+ * src/sdf/ftsdf.c (sdf_generate_with_overlaps): Exit immediately if
+ function arguments are invalid.
+ * src/sdf/ftsdfrend.c (sdf_property_set) <"overlaps">: Fix cast.
+
+ * src/sfnt/sfwoff2.c (woff2_decompress)
+ [!FT_CONFIG_OPTION_USE_BROTLI]: Use `FT_UNUSED`.
+
+ * src/truetype/ttgxvar.c (TT_Get_MM_Var): Initialize `fvar_head`.
+
+2021-03-11 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ [smooth] Reduce copying during integration phase.
+
+ We now record `cover' and `area' directly into the linked list. This
+ makes rendering faster by 10% or even more at larger sizes.
+
+ * src/smooth/ftgrays.c (FT_INTEGRATE): Write directly.
+ (gray_TWorker): Add direct cell reference and remove unused fields.
+ (gray_set_cell): Consolidate the linked list management and pointers.
+ (gray_convert_glyph, gray_convert_glyph_inner): Updated.
+
+2021-03-10 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ * src/smooth/ftgrays.c (FT_INTEGRATE): New convenience macro.
+ (gray_render_line, gray_render_scanline): Use it.
+
+2021-03-09 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ * src/smooth/ftgrays.c (gray_render_line): Rearrange conditionals.
+
+ These produce faster or more optimizable code.
+
+2021-03-08 Tim-Philipp Müller <tim@centricular.com>
+
+ [meson] Fix 'mmap' handling on Windows.
+
+ * meson.build (ft2_sources): Always use `windows/ftsystem.c` on
+ Windows unless mmap has been disabled.
+
+ https://gitlab.freedesktop.org/freetype/freetype/-/merge_requests/5#note_829289
+
+2021-03-07 Tim-Philipp Müller <tim@centricular.com>
+
+ [ci] Add basic support for Meson builds with MSVC on Windows.
+
+ This adds meson jobs for VS2017 (x86 and x86_64).
+
+ * .gitlab-ci.yml: New file.
+
+2021-03-07 Tim-Philipp Müller <tim@centricular.com>
+
+ [meson] Add subproject fallbacks for 'libpng' and 'zlib'.
+
+ * subprojects/libpng.wrap, subprojects/zlib.wrap: New files.
+
+ * meson.build: Updated.
+
+2021-03-07 Xavier Claessens <xavier.claessens@collabora.com>
+
+ [meson] Make it work with Windows.
+
+ * meson.build: Do not process `ftconfig.h` when not using
+ `ftconfig.h.in`.
+
+ Fixes #1029.
+
+2021-02-25 Werner Lemberg <wl@gnu.org>
+
+ [woff2] Fix memory leak.
+
+ Reported as
+
+ https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=28148
+
+ * src/sfnt/sfwoff2.c (woff2_open_font): Reject fonts that have
+ multiple tables with the same tag. While not explicitly forbidden
+ in the OpenType specification, it is implicitly forbidden by
+ describing a binary search algorithm for tables that only works
+ reliably if table tags are unique.
+
+2021-02-22 Werner Lemberg <wl@gnu.org>
+
+ * CMakeLists.txt: Update location of `LICENSE.TXT`.
+
+ Fixes #1035.
+
+2021-02-19 Werner Lemberg <wl@gnu.org>
+
+ * builds/unix/ax_pthread.m4: Update from 'autoconf-archive'.
+
+ A bunch of fixes were added recently to its git repository.
+
+2021-02-17 Werner Lemberg <wl@gnu.org>
+
+ [unix] Updates for autoconf 2.71.
+
+ This fixes warnings reported by autoupdate.
+
+ * builds/unix/ax_pthread.m4: Replace `as_echo` with `AS_ECHO`.
+
+ * builds/unix/configure.raw: Remove obsolete `AC_HEADER_STDC`.
+ Don't escape back quotes in messages for `AC_MSG_WARN`.
+
+2021-02-16 Werner Lemberg <wl@gnu.org>
+
+ * builds/toplevel.mk: Fix previous commit.
+
+ <top_level>: Use `TOP_DIR` in `wildcard` function.
+ (check_out_submodule, copy_submodule): Move down to come after
+ definition of `all` rule.
+ Call `mkdir` conditionally.
+
+2021-02-16 Werner Lemberg <wl@gnu.org>
+
+ * builds/toplevel.mk: Use rules for handling 'dlg'.
+
+ Suggested by Alexei.
+
+ (check_out_submodule, copy_submodule): New targets.
+ <top-level>: Replace calls to `shell` with rules.
+
+2021-02-16 Werner Lemberg <wl@gnu.org>
+
+ * builds/toplevel.mk: Avoid side effects of `shell`.
+
+ We use a dummy variable to catch its output. Otherwise the `make`
+ program is going to interpret the return value of `shell`; this can
+ cause obscure warning or error messages or even be harmful.
+
+2021-02-16 Werner Lemberg <wl@gnu.org>
+
+ Move 'dlg' submodule to `subprojects` directory.
+
+ This is for future changes with Meson, which doesn't allow a
+ different name for its `subprojects` directory. Having both a
+ `submodules` and a `subprojects` directory is confusing.
+
+ * .gitmodules, autogen.sh (copy_submodule_files, DLG_INC_DIR,
+ DLG_SRC_DIR): Updated.
+
+ * builds/toplevel.mk (<top-level>, do-dist),
+ builds/windows/vc2010/script.bat: Updated.
+
+ * src/tools/no-copyright: Updated.
+
+2021-02-16 Dominik Röttsches <drott@chromium.org>
+
+ [sfnt] Update paint format values to support non-variable paints.
+
+ * freetype.h (FT_PaintFormat): Update paint format identifiers after
+ a specification change. The specification was updated to have
+ sibling formats, variable and non-variable variants for each.
+ Reflect that here.
+
+ * sfnt/ttcolr.c (read_paint): Remove parsing of variable indices as
+ the non-variable formats no longer have them.
+
+2021-02-15 Daniel E <daniel.engberg.lists@pyret.net>
+
+ * CMakeLists.txt: Improve 'bz2' support.
+
+ Not all distributions such as FreeBSD provide a `.pc` file for
+ '(lib)bz2' so follow autotools and add it to `Libs.private` instead.
+
+2021-02-13 Werner Lemberg <wl@gnu.org>
+
+ * src/tools/update-copyright-year: Fix single-year entry handling.
+
+ The fix from 2021-01-17 didn't cover the case where the year to be
+ updated is identical to the current year.
+
+2021-02-13 Werner Lemberg <wl@gnu.org>
+
+ Add new function `FT_Get_Transform`.
+
+ See
+
+ https://github.com/harfbuzz/harfbuzz/issues/2428
+
+ for some reasons to introduce this function.
+
+ * include/freetype/freetype.h, src/base/ftobjs.c (FT_Get_Transform):
+ Implement it.
+
+2021-02-12 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ Decorate `qsort` callbacks with `cdecl`.
+
+ * include/freetype/internal/compiler-macros.h (FT_COMPARE_DEF):
+ Add new macro.
+
+ * src/base/ftrfork.c, src/bdf/bdflib.c, src/gxvalid/gxvcommn.c,
+ src/psaux/afmparse.c, src/psnames/psmodule.c, src/type1/t1afm.c,
+ src/sfnt/sfwoff.c, src/sfnt/sfwoff2.c: Update `qsort` callbacks.
+
+ Fixes #1026 when compiling FreeType with an unusual calling
+ convention while the C library function `qsort` still expects
+ `cdecl`.
+
+2021-02-10 Dominik Röttsches <drott@chromium.org>
+
+ [sfnt] Implement 'COLR' v1 sweep gradients.
+
+ * freetype.h (FT_PaintSweepGradient): Add `FT_PaintSweepGradient` to
+ represent a 'COLR' v1 sweep gradient.
+ Update format.
+ (FT_PaintFormat): Update shifted paint formats.
+ Sync with spec.
+ * sfnt/ttcolr.c (read_paint): Logic to parse sweep gradients.
+ Fix struct access in radial gradient implementation.
+
+2021-02-09 Dominik Röttsches <drott@chromium.org>
+
+ [sfnt] Provide optional root transform for 'COLR' v1 glyph graph.
+
+ * include/freetype/freetype.h (FT_Get_Color_Glyph_Paint):
+ Additional function argument `root_transform` to control whether
+ root transform should be returned.
+ (FT_OpaquePaint): Additional tracking field to denote whether
+ root transform is to be returned.
+ * include/freetype/internal/sfnt.h
+ (TT_Get_Color_Glyph_Paint_Func): Propagate additional argument.
+ * src/base/ftobjs.c (FT_Get_Color_Glyph_Paint): Ditto.
+ * src/sfnt/ttcolr.c (tt_face_get_colr_glyph_paint): Return root
+ transform reflecting the size and tranform configured on
+ `FT_Face`.
+ (read_paint): Initialize and track status of insert_root_transform
+ flag.
+
+2021-02-09 Xavier Claessens <xavier.claessens@collabora.com>
+
+ * meson.build: s/freetype2_dep/freetype_dep/.
+
+ Many projects (e.g., fontconfig, cairo) hardcode the `freetype_dep`
+ variable name to use FreeType as subproject because that was the
+ variable name in Centricular's Meson port of FreeType. While they
+ should stop hardcoding that variable name, it does not cost us
+ anything to keep using that name to ease transition.
+
+2021-02-09 Xavier Claessens <xavier.claessens@collabora.com>
+
+ [meson] Fix handling of HarfBuzz library.
+
+ * meson.build (harfbuzz_dep): Do not fall back to HarfBuzz by
+ default.
+
+ Otherwise it causes a dependency cycle:
+
+ cairo => fontconfig => freetype2 => harfbuzz => cairo
+
+ Meson will still fall back to HarfBuzz subprojects if the `harfbuzz`
+ option is set to `enabled` instead of `auto` and a
+ `subprojects/harfbuzz.wrap` file is present. In that case it is the
+ responsibility of the main project to set the proper options on each
+ subproject to break the dependency cycle.
+
+ Fixes: #1028.
+
+2021-02-09 Xavier Claessens <xavier.claessens@collabora.com>
+
+ [meson] Fix dependency lookup and generate `ftconfig.h`.
+
+ - zlib: If not found on the system, meson can build it as a
+ subproject. We thus never use the (outdated) zlib support that
+ comes with FreeType. Doing so has the additional advantage that
+ the zlib code can be shared with other projects like GLib if both
+ are subprojects of an application.
+ - harfbuzz: Build as a subproject if not found on the system.
+ - 'QUESTION: What if the compiler doesn't support `-D` but uses `/D`
+ instead as on Windows?' Answer: Meson translate arguments for us.
+ - visibility: Replace self-made code with meson-specific solution.
+
+ * meson.build (ft2_defines): Rewrite logic to set and handle it.
+ (process_header_command): New variable, previously called
+ `ftoption_command`.
+ (ftoption_command, ftconfig_command): New variables.
+ (zlib_option): Removed.
+ (zlib_dep): New variable.
+ (ft2_deps): Updated.
+ (harfbuzz_dep): Updated.
+ (ftconfig_h_in, ftconfig_h): New variables.
+ (ft2_sources): Updated.
+ (ft2_lib): Updated, handle visibility.
+ (summary): Updted.
+
+ * meson_options.txt (zlib): Updated.
+
+2021-02-09 Xavier Claessens <xavier.claessens@collabora.com>
+
+ * meson.build: Fix resource compilation on Windows.
+
+ This is copied from GStreamer's meson port of FreeType.
+
+ (ft2_sources): Add both debug and resource file (the latter for
+ Windows only).
+ (ft2_debug_src): Removed.
+
+2021-02-09 Xavier Claessens <xavier.claessens@collabora.com>
+
+ * meson.build: s/ft2_libtool_version/ft2_pkgconfig_version/.
+
+ (freetype2_dep): Use it.
+
+ `ft2_libtool_version` would be the shared library version, not the
+ one we should use in file `freetype2.pc`.
+
+2021-02-09 Xavier Claessens <xavier.claessens@collabora.com>
+
+ * meson.build: Use `meson.override_dependency`.
+
+ This is a new meson mechanism to avoid other projects to hard-code
+ the `freetype2_dep` variable name in their build definition. It
+ also ensures that meson does not mix system and subproject versions
+ of FreeType inside of the same project.
+
+ Also remove outdated TODO because `declare_dependency` was already
+ there.
+
+2021-02-09 Xavier Claessens <xavier.claessens@collabora.com>
+
+ * meson.build (bzip2_dep): Simplify.
+
+ We remove `static:false` from `find_library('bz2')`.
+
+ I don't know whether the previous code was a workaround for an old
+ meson bug, but at least with version >=0.55.0 (which FreeType uses)
+ it picks the shared library when both are available.
+
+ File `freetype2.pc` still contains the full path to file `libbz2.so`
+ instead of `-lbz2` – that we need to do this is a meson bug even
+ present in the current version (0.57.0).
+
+2021-02-09 Xavier Claessens <xavier.claessens@collabora.com>
+
+ * meson.build: Set project version.
+
+2021-02-04 Werner Lemberg <wl@gnu.org>
+
+ [base] Fix Netpbm tracing message.
+
+ * src/base/ftobjs.c (FT_Render_Glyph_Internal): Don't emit Netpbm
+ warning if there is nothing to output.
+
+2021-02-04 Werner Lemberg <wl@gnu.org>
+
+ * src/*: Don't use more than one '\n' in `FT_TRACE` and `FT_ERROR`.
+
+ This ensures good logging output, with all lines having a proper
+ prefix (if requested).
+
+ This is a continuation of a similar patch from 2020-12-02, which
+ missed some locations.
+
+2021-02-03 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ * builds/unix/configure.raw [mmap]: Restore default path.
+
+ Fixes #1023.
+
+2021-02-03 Werner Lemberg <wl@gnu.org>
+
+ [psaux] Fix integer overflow.
+
+ Reported as
+
+ https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=30154
+
+ * src/psaux/psblues.c (cf2_blues_capture): Use `SUB_INT32`.
+
+2021-02-02 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ * builds/unix/configure.raw [mmap support]: Explicitly handle Windows.
+
+ Fixes #1024.
+
+2021-01-31 Werner Lemberg <wl@gnu.org>
+
+ * builds/unix/configure.raw [mmap support]: Correctly handle Windows.
+
+ Fixes #1024.
+
+2021-01-31 Werner Lemberg <wl@gnu.org>
+
+ * builds/windows/ftdebug.c: Synchronize with `src/base/ftdebug.c`.
+
+2021-01-31 Werner Lemberg <wl@gnu.org>
+
+ Always provide logging API.
+
+ It's easier to have stubs if FT_DEBUG_LOGGING is undefined than to
+ modify `ftexport.sym` conditionally.
+
+ Problem reported by Alexei.
+
+ * src/base/ftdebug.c: Include `ftlogging.h`.
+ (FT_Trace_Set_Level, FT_Trace_Set_Default_Level, FT_Set_Log_Handler,
+ FT_Set_Default_Log_Handler) [!FT_DEBUG_LOGGING]: Provide stubs.
+
+2021-01-31 Werner Lemberg <wl@gnu.org>
+
+ * builds/unix/configure.raw: Fix typo.
+
+ Bug introduced in Vincent's last commit bb33f03.
+
+ Fixes issue #1021.
+
+2021-01-27 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ * src/base/ftstroke.c (FT_Stroker_EndSubPath): Ignore tiny gaps.
+
+ Fixes bug #1020.
+
+2021-01-27 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ [stroker] Minor clean-up.
+
+ * src/base/ftstroke.c (FT_Stroker_{ConicTo,CubicTo}): Reset the last
+ line length.
+ (FT_Stroker_EndSubPath): Call `ft_stroker_process_corner'.
+
+2021-01-27 Vincent Torri <vincent.torri@gmail.com>
+
+ * builds/windows/ftsystem.c: Add shared memory support on Windows.
+
+ * CMakeLists.txt (BASE_SRCS), builds/unix/configure.raw (FTSYS_SRC),
+ builds/windows/vc2010/freetype.vcxproj,
+ builds/windows/visualc/freetype.vcproj, meson.build (ft2_sources):
+ Add it (conditionally).
+
+2021-01-23 Werner Lemberg <wl@gnu.org>
+
+ Require HarfBuzz 2.0.0.
+
+ This is needed to make commit f1f9705f9 work.
+
+ * CMakeLists.txt (HARFBUZZ_MIN_VERSION), builds/unix/configure.raw
+ (harfbuzz_pkg), meson.build (harfbuzz_dep): Updated.
+
+2021-01-22 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ * autogen.sh: Absorb `version.sed'.
+ * version.sed: Removed.
+
+2021-01-19 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ * srd/base/ftlcdfil.c (FT_Library_SetLcdGeometry): Fix return value.
+
+2021-01-15 Nikolaus Waxweiler <madigens@gmail.com>
+
+ [afshaper] Fix hb_ot_tags_from_script deprecation warning.
+
+ * autofit/afshaper.c (af_shaper_get_coverage): Copy the source code
+ of the function as suggested in
+ https://github.com/harfbuzz/harfbuzz/issues/2737 and adjust to handle
+ at most three tags.
+
+2021-01-17 Werner Lemberg <wl@gnu.org>
+
+ * src/tools/update-copyright-year: Fix single-year entry handling.
+
+2021-01-16 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ * builds/unix/unixddef.mk: Remove the second DEVEL_DIR definition.
+
+2021-01-14 Dominik Röttsches <drott@chromium.org>
+
+ [sfnt] Additional checks for 'colr' table presence.
+
+ * sfnt/ttcolr.c (tt_face_get_colr_glyph_paint,
+ tt_face_get_colorline_stops, tt_face_get_paint): Additional checks
+ for whether colr table is present. Prevents crashes when these
+ methods are called on non-COLR fonts.
+
+2021-01-13 Dominik Röttsches <drott@chromium.org>
+
+ Add config option to test for 'COLR' v1 support in headers.
+
+ * include/freetype/config/ftoption.h (TT_SUPPORT_COLRV1): New macro
+ so that clients can test whether the FreeType checkout that they are
+ building against supports the 'COLR' v1 API. This is intended to be
+ a temporary solution until 'COLR' v1 support is released in a
+ FreeType version and such a check can be made by using the version
+ number instead.
+
+2020-12-16 Dominik Röttsches <drott@chromium.org>
+
+ [base] Fill 'COLR' v1 API templates to make them work (#59703).
+
+ * src/base/ftobjs.c (FT_Get_Color_Glyph_Paint, FT_Get_Paint_Layers,
+ FT_Get_Paint, FT_Get_Colorline_Stops): Add basic sanity checks,
+ check for existence of `FT_Face`, check arguments and delegate calls
+ for the respective 'COLR' v1 API to the SFNT driver.
+
+2020-12-16 Dominik Röttsches <drott@chromium.org>
+
+ [sfnt] Register 'COLR' v1 API in driver (#59703).
+
+ * include/freetype/internal/sfnt.h (TT_Get_Color_Glyph_Paint_Func,
+ TT_Get_Paint_Layers_Func, TT_Get_Colorline_Stops_Func,
+ TT_Get_Paint_Func): New function pointer types.
+ (SFNT_Interface): Add them.
+ (FT_DEFINE_SFNT_INTERFACE): Updated.
+
+ * src/sfnt/sfdriver.c (PUT_COLOR_LAYERS_V1): New macro.
+ (sfnt_interface): Add new function pointers.
+
+2020-12-16 Dominik Röttsches <drott@chromium.org>
+
+ [sfnt] Add 'COLR' v1 API to retrieve color layers (#59703).
+
+ * src/sfnt/ttcolr.c (tt_face_get_paint_layers): New function to get
+ the layers of a `PaintColrLayers` table in the font, using an
+ `FT_LayerIterator` from an `FT_PaintColrLayers` object retrieved via
+ `tt_face_get_paint`.
+
+ * src/sfnt/ttcolr.h: Updated.
+
+2020-12-16 Dominik Röttsches <drott@chromium.org>
+
+ [sfnt] Add 'COLR' v1 API to iterate color stops (#59703).
+
+ * src/sfnt/ttcolr.c (tt_face_get_colorline_stops): New function to
+ return the current `FT_ColorStop` object from `FT_ColorStopIterator`.
+ Also increment the iterator.
+
+ * src/sfnt/ttcolr.h: Updated.
+
+2020-12-16 Dominik Röttsches <drott@chromium.org>
+
+ [sfnt] Add API to get actual paint from `FT_OpaquePaint` (#59703).
+
+ * src/sfnt/ttcolr.c (tt_face_get_paint): New function to resolve an
+ `FT_OpaquePaint` paint reference into an `FT_COLR_Paint` object of a
+ certain format, which contains the detailed information stored in a
+ paint of the respective format.
+ (read_paint): New function to provide the format specific parsing
+ and to populate the data members of each specific `FT_COLR_Paint`
+ subtype.
+ (read_color_line): New function to parse retrieved color line
+ information into an `FT_ColorLine` object, which has information
+ about the color line extend mode as well as an
+ `FT_ColorStopIterator` object.
+
+ * src/sfnt/ttcolr.h: Updated.
+
+2020-12-16 Dominik Röttsches <drott@chromium.org>
+
+ [sfnt] Add API to retrieve 'COLR' v1 root paint (#59703).
+
+ * src/sfnt/ttcolr.c (BaseGlyphV1Record): New structure.
+ (tt_face_load_colr): Handle version 1 table header.
+ (find_base_glyph_v1_record): New auxiliary function.
+ (tt_face_get_colr_glyph_paint): New function to find the root
+ `FT_OpaquePaint` object for a given glyph ID.
+
+ * src/sfnt/ttcolr.h: Updated.
+
+2020-12-16 Dominik Röttsches <drott@chromium.org>
+
+ Add new methods required for 'COLR' v1 to public API (#59703).
+
+ * include/freetype/freetype.h (FT_Get_Color_Glyph_Paint): New method
+ for retrieving the root paint object for a color glyph by specifying
+ a glyph ID.
+ (FT_Get_Paint_Layers): New method for retrieving the layers of a
+ `PaintColorGlyph`.
+ (FT_Get_ColorLine_Stops): New method for retrieving the stops of a
+ color.
+ (FT_Get_Paint): New method for resolving an `FT_OpaquePaint` into an
+ `FT_COLR_Paint` object.
+
+2020-12-16 Dominik Röttsches <drott@chromium.org>
+
+ Add types required for 'COLR' v1 to public API (#59703).
+
+ * include/freetype/freetype.h (FT_PaintFormat, FT_ColorStopIterator,
+ FT_ColorIndex, FT_ColorStop, FT_PaintExtend, FT_ColorLine,
+ FT_Affine23, FT_CompositeMode, FT_OpaquePaint, FT_PaintColrLayers,
+ FT_PaintSolid, FT_PaintLinearGradient, FT_PaintRadialGradient,
+ FT_PaintGlyph, FT_PaintColrGlyph, FT_PaintTransformed,
+ FT_PaintTranslate, FT_PaintRotate, FT_PaintSkew, FT_PaintComposite,
+ FT_COLR_Paint): Adding structs and enum to represent paint format,
+ color stop information, gradient extend information, structs to
+ reference paint offsets, and to define transforms and compositions.
+ Adding a union type to represent the union of the structs,
+ distinguished by `FT_PaintFormat`.
+
+2021-01-10 Werner Lemberg <wl@gnu.org>
+
+ * builds/*: s/BUILD_DIR/PLATFORM_DIR/.
+
+ The old variable name caused confusion.
+
+2021-01-08 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ [builds] Revert `FTMODULE_H' changes.
+
+ * builds/toplevel.mk, builds/freetype.mk: Revert changes.
+
+2021-01-07 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ [builds/windows] Fix up DLG build with VC++.
+
+ * builds/windows/vc2010/script.bat: Copy headers to include/.
+ * builds/windows/vc2010/freetype.vcxproj: Remove DLG paths.
+
+2021-01-07 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ [builds] Relocate `FTMODULE_H'.
+
+ * builds/toplevel.mk: Place `FTMODULE_H' in include/.
+ * builds/freetype.mk: Simplify included path.
+
+2021-01-07 Werner Lemberg <wl@gnu.org>
+
+ Fix ABI incompatibility.
+
+ * include/freetype/ftimage.h (FT_Pixel_Mode): Don't insert
+ `FT_PIXEL_MODE_GRAY16' but append it.
+
+ * src/base/ftobjs.c (pixel_modes): Updated.
+
+2021-01-07 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ [dlg] Move the headers to include/dlg to simplify their use.
+
+ * autogen.sh, builds/toplevel.mk: Copy headers to include/dlg.
+ * builds/freetype.mk, builds/windows/vc2010/freetype.vcxproj:
+ Simplify included path.
+ * include/freetype/internal/ftdebug.h: Simplify #include.
+ * src/dlg/rules.mk, .gitignore: Updated.
+
+2021-01-06 Werner Lemberg <wl@gnu.org>
+
+ * meson.build: Add summary.
+
+ Based on a patch from Vincent Torri <vincent.torri@gmail.com>.
+
+2021-01-06 Torsten Hilbrich <emacs.nolkaf@hilbrich.tk>
+
+ * meson.build: Fix 'png' build option (#59458).
+
+ Without this patch, 'png' is always required.
+
+2021-01-04 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ [builds/windows] Add SDF to VC2010 project.
+
+ * builds/windows/vc2010/freetype.vcxproj: Updated;
+ AfterBuild conveniences.
+
+2020-12-26 Werner Lemberg <wl@gnu.org>
+
+ [sdf] Use 'counter-clockwise', not 'anti-clockwise'.
+
+ We prefer US nomenclature.
+
+ * src/sdf/ftsdf.c (SDF_Contour_Orientation):
+ s/SDF_ORIENTATION-ACW/SDF_ORIENTATION_CCW/.
+ Update all users.
+
+2020-12-26 Werner Lemberg <wl@gnu.org>
+
+ * src/base/ftobjs.c (pixel_modes): Updated.
+
+2020-12-26 Anuj Verma <anujv@iitbhilai.ac.in>
+
+ [sdf] Remove custom memory tracker.
+
+ The internal FreeType memory tracker is sufficient.
+
+ * src/sdf/ftsdf.c (FT_DEBUG_INNER, FT_ASSIGNP_INNER, SDF_MemoryUser,
+ sdf_alloc, sdf_free, SDF_ALLOC, SDF_FREE,
+ SDF_MEMORY_TRACKER_DECLARE, SDF_MEMORY_TRACKER_SETUP,
+ SDF_MEMORY_TRACKER_DONE): Removed.
+
+ s/SDF_ALLOC/FT_ALLOC/.
+ s/SDF_FREE/FT_FREE/.
+
+ Other updates.
+
+2020-12-24 Werner Lemberg <wl@gnu.org>
+
+ [sdf] Fix `make multi`.
+
+ * src/sdf/ftsdf.c: Include `ftoutln.h`.
+
+2020-12-24 Werner Lemberg <wl@gnu.org>
+
+ [sdf] Fix tracing.
+
+ * include/freetype/internal.fttrace.h: Add 'bsdf' component.
+
+ * src/sdf/ftbsdf.c, src/sdf/ftsdf.c (FT_COMPONENT): Define.
+
+2020-08-21 Anuj Verma <anujv@iitbhilai.ac.in>
+
+ [sdf] Add debugging function.
+
+ * src/sdf/ftsdf.c (sdf_shape_dump): New function.
+
+2020-08-20 Anuj Verma <anujv@iitbhilai.ac.in>
+
+ [sdf] Add 'bsdf' renderer to 'sdf' module.
+
+ * src/sdf/ftsdfrend.c (ft_bsdf_render): New function.
+
+ (ft_bitmap_sdf_renderer_class): New structure.
+
+2020-08-20 Anuj Verma <anujv@iitbhilai.ac.in>
+
+ [sdf] Add interface functions for the 'bsdf' rasterizer.
+
+ * src/sdf/ftsdf.c (bsdf_raster_new, bsdf_raster_reset,
+ bsdf_raster_set_mode, bsdf_raster_render, bsdf_raster_done): New
+ functions.
+
+ (ft_bitmap_sdf_raster): New variable.
+
+ * src/sdf/ftsdf.h: Updated.
+
+2020-08-20 Anuj Verma <anujv@iitbhilai.ac.in>
+
+ [sdf] Add function to copy SDF data into output bitmap.
+
+ * src/sdf/ftbsdf.c (finalize_sdf): New function.
+
+2020-08-20 Anuj Verma <anujv@iitbhilai.ac.in>
+
+ [sdf] Add '8-point sequential Euclidean distance mapping' algorithm.
+
+ * src/sdf/ftbsdf.c (compare_neighbor, first_pass, second_pass,
+ edt8): New functions.
+
+2020-08-20 Anuj Verma <anujv@iitbhilai.ac.in>
+
+ [sdf] Add function to copy source bitmap to distance map.
+
+ * src/sdf/ftbsdf.c (bsdf_init_distance_map): New function.
+
+2020-08-20 Anuj Verma <anujv@iitbhilai.ac.in>
+
+ [sdf] Add functions to compute pixel edge distances.
+
+ * src/sdf/ftbsdf.c (compute_edge_distance, bsdf_approximate_edge):
+ New functions.
+
+2020-08-20 Anuj Verma <anujv@iitbhilai.ac.in>
+
+ [sdf] Add function to find edge pixels in a grid of alpha values.
+
+ * src/sdf/ftbsdf.c (bsdf_is_edge): New function.
+
+2020-08-20 Anuj Verma <anujv@iitbhilai.ac.in>
+
+ [sdf] Add essential structures for the 'bsdf' rasterizer.
+
+ * src/sdf/ftbsdf.c (ONE): New macro.
+ (BSDF_TRaster, ED, BSDF_Worker): New structures.
+ (zero_ed): New constant.
+
+2020-08-20 Anuj Verma <anujv@iitbhilai.ac.in>
+
+ [sdf] Add 'sdf' module to non-gnumake build systems.
+
+ * include/freetype/config/ftmodule.h: Add both the 'sdf' and 'bsdf'
+ renderers to the list of modules.
+
+ * CMakeLists.txt (BASE_SRCS): Add 'sdf' single-object module.
+
+2020-08-20 Anuj Verma <anujv@iitbhilai.ac.in>
+
+ [sdf] Added basic overlapping contour support.
+
+ * src/sdf/ftsdf.c (sdf_generate_with_overlaps): New function.
+ (sdf_raster_render): Enable it.
+
+2020-08-19 Anuj Verma <anujv@iitbhilai.ac.in>
+
+ [sdf] Add build infrastructure.
+
+ * src/sdf/module.mk, src/sdf/rules.mk: New files.
+
+ * src/sdf/ftsdf.h (ft_sdf_raster): New forward declaration.
+
+ * include/freetype/ftmoderr.h (FT_MODERRDEF): Add error definition
+ for the 'sdf' module.
+
+ * include/freetype/internal/fttrace.h (FT_TRACE_DEF): Add trace
+ definition for the `sdf' module.
+
+ * modules.cfg (RASTER_MODULES): Add the `sdf' module to the list of
+ rasterizers.
+
+2020-08-19 Anuj Verma <anujv@iitbhilai.ac.in>
+
+ [sdf] Add interface functions for the 'sdf' rasterizer.
+
+ * src/sdf/ftsdf.c (sdf_raster_new, sdf_raster_reset,
+ sdf_raster_set_mode, sdf_raster_render, sdf_raster_done): New
+ functions.
+ (ft_sdf_raster): New structure.
+
+2020-08-19 Anuj Verma <anujv@iitbhilai.ac.in>
+
+ [sdf] Add subdivision and bounding box optimization.
+
+ * src/sdf/ftsdf.c (sdf_generate_bounding_box): New function, which
+ is an optimized version of `sdf_generate`.
+ (sdf_generate_subdivision): New function.
+
+2020-08-19 Anuj Verma <anujv@iitbhilai.ac.in>
+
+ [sdf] Add function to generate SDF.
+
+ * src/sdf/ftsdf.c (sdf_generate): New function, currently disabled.
+ This is a proof-of-concept implementation: It doesn't use any
+ optimization, it simply checks all grid points against all contours.
+
+2020-08-19 Anuj Verma <anujv@iitbhilai.ac.in>
+
+ [sdf] Add functions to get shortest distance from any edge/contour.
+
+ * src/sdf/ftsdf.c (sdf_edge_get_min_distance): New function.
+ (sdf_contour_get_min_distance): New function, currently disabled.
+
+2020-08-18 Anuj Verma <anujv@iitbhilai.ac.in>
+
+ [sdf] Add shortest distance finding functions.
+
+ * src/sdf/ftsdf.c (get_min_distance_line, get_min_distance_conic,
+ get_min_distance_cubic): New functions. Note that
+ `get_min_distance_conic` comes with two implementations (using an
+ analytical and an iterative method, to be controlled with the
+ `USE_NEWTON_FOR_CONIC` macro).
+
+2020-08-18 Anuj Verma <anujv@iitbhilai.ac.in>
+
+ [sdf] Add function to resolve corner distances.
+
+ * src/sdf/ftsdf.c (resolve_corner): New function.
+
+2020-08-18 Anuj Verma <anujv@iitbhilai.ac.in>
+
+ [sdf] Add essential math functions.
+
+ * src/sdf/ftsdf.c (cube_root, arc_cos) [!USE_NEWTON_FOR_CONIC]: New
+ auxiliary functions.
+
+ * src/sdf/ftsdf.c (solve_quadratic_equation, solve_cubic_equation)
+ [!USE_NEWTON_FOR_CONIC]: New functions.
+
+2020-08-18 Anuj Verma <anujv@iitbhilai.ac.in>
+
+ [sdf] Add utility functions for contours.
+
+ * src/sdf/ftsdf.c (get_control_box, get_contour_orientation): New
+ functions.
+ (split_conic, split_cubic, split_sdf_conic, split_sdf_cubic,
+ split_sdf_shape): New functions.
+
+2020-08-17 Anuj Verma <anujv@iitbhilai.ac.in>
+
+ [sdf] Add functions to decompose `FT_Outline`.
+
+ * src/sdf/ftsdf.c (sdf_move_to, sdf_line_to, sdf_conic_to,
+ sdf_cubic_to): New auxiliary decomposition functions.
+ (sdf_compose_funcs): New structure.
+ (sdf_outline_decompose): New function.
+
+2020-08-17 Anuj Verma <anujv@iitbhilai.ac.in>
+
+ [sdf] Structs, enums, macros, and functions for 'sdf' rasterizer.
+
+ * src/sdf/ftsdf.c (FT_DEBUG_INNER, FT_ASSIGNP_INNER)
+ [FT_DEBUG_LEVEL_TRACE && FT_DEBUG_MEMORY]: New macros.
+ (SDF_MemoryUser) [FT_DEBUG_LEVEL_TRACE && FT_DEBUG_MEMORY]: New
+ struct for memory usage tracing.
+ (sdf_alloc, sdf_free) [FT_DEBUG_LEVEL_TRACE && FT_DEBUG_MEMORY]: New
+ functions for memory usage tracing.
+
+ (SDF_ALLOC, SDF_FREE): New macros for memory management.
+ (SDF_MEMORY_TRACKER_DECLARE, SDF_MEMORY_TRACKER_SETUP,
+ SDF_MEMORY_TRACKER_DONE): New macros to set up memory usage tracing.
+
+ (USE_NEWTON_FOR_CONIC, MAX_NEWTON_DIVISIONS, MAX_NEWTON_STEPS,
+ CORNER_CHECK_EPSILON, CG_DIMEN): New configuration macros for
+ controlling the process of finding the shortest distance.
+
+ (MUL_26D6, VEC_26D6_DOT): New auxiliary macros.
+
+ (SDF_TRaster, SDF_Edge, SDF_Contour, SDF_Shape, SDF_Signed_Distance,
+ SDF_Params): New structs for setting up SDF data.
+ (SDF_Edge_Type, SDF_Contour_Orientation): New enums for SDF data.
+
+ (zero_vector, null_edge, null_contour, null_shape, max_sdf): Useful
+ constants.
+
+ (sdf_edge_new, sdf_edge_done, sdf_contour_new, sdf_contour_done,
+ sdf_shape_new, sdf_shape_done): New constructors and destructors.
+
+2020-08-17 Anuj Verma <anujv@iitbhilai.ac.in>
+
+ [sdf] Add raster parameters structure.
+
+ * src/sdf/ftsdf.h (SDF_Raster_Params): New structure.
+
+ * src/sdf/sdf.c: Include source files in order to make a single
+ object of the module.
+
+2020-08-17 Anuj Verma <anujv@iitbhilai.ac.in>
+
+ [sdf] Add 'sdf' renderer.
+
+ * src/sdf/ftsdf.c: Add 'sdf' renderer along with its interface
+ functions.
+ Also add functions to set and get properties.
+
+2020-08-17 Anuj Verma <anujv@iitbhilai.ac.in>
+
+ [sdf] Add common elements for 'sdf' and 'bsdf' renderers.
+
+ * src/sdf/ftsdfrend.h (SDF_Rendere_Module, ft_sdf_renderer_class,
+ ft_bitmap_sdf_renderer_class): New structures.
+
+ * src/sdf/ftsdfcommon.h (DEFAULT_SPREAD, MIN_SPREAD_MAX_SPREAD,
+ USE_SQUARED_DISTANCES): New macros.
+ (FT_INT_26D6, FT_INT_16D16, FT_26D6_16D16): New macros.
+ (FT_CALL, VECTOR_LENGTH_16D16): New macros.
+ (FT_26D6_Vec, FT_16D16_Vec, FT_16D16, FT_26D6, FT_6D10, FT_CBox):
+ New typedefs.
+ (square_root): New macro.
+
+ * src/sdf/ftsdferrs.h: Add module error setup.
+
+2020-08-16 Anuj Verma <anujv@iitbhilai.ac.in>
+
+ [sdf] Add files for new 'sdf' module.
+
+ Here is a breakdown of what the files will contain.
+
+ * src/sdf/ftsdfrend.c, src/sdf/ftsdfrend.h: The 'sdf' and 'bsdf'
+ renderers.
+
+ * src/sdf/ftsdf.c, src/sdf/ftsdf.h: The rasterizer for the 'sdf'
+ renderer.
+ * src/sdf/ftbsdf.c, src/sdf/ftbsdf.h: The rasterizer for the 'bsdf'
+ renderer.
+
+ * src/sdf/ftsdfcommon.h: Commmon properties and functions for both
+ rasterizers.
+ * src/sdf/ftsdferrs.h: Common error defines.
+
+ * src/sdf/sdf.c: For building a single object of the entire module.
+
+2020-08-16 Anuj Verma <anujv@iitbhilai.ac.in>
+
+ [base] Allow renderers of different formats.
+
+ * src/base/ftobjs.c (FT_Render_Glyph_Internal): Do not return if the
+ glyph's slot format is `FT_GLYPH_FORMAT_BITMAP`. The forthcoming
+ 'bsdf' renderer will require bitmaps for processing.
+
+ * src/base/ftobjs.c (ft_add_renderer, ft_remove_renderer): Remove
+ renderer's glyph format check before adding and removing them. The
+ 'bsdf' renderer will have a format `FT_GLYPH_FORMAT_BITMAP`.
+
+2020-08-16 Anuj Verma <anujv@iitbhilai.ac.in>
+
+ Add data types required for the forthcoming 'sdf' module.
+
+ * include/freetype/freetype.h (FT_Render_Mode): Add new render mode
+ `FT_RENDER_MODE_SDF`, which will be used to generate SDF.
+
+ * include/freetype/ftimage.h (FT_Pixel_Mode): Add new pixel mode
+ `FT_PIXEL_MODE_GRAY16`, which will be the output of the 'sdf'
+ module.
+ (FT_RASTER_FLAG_SDF): New raster flag to be used internally by the
+ 'sdf' module.
+
+ * include/freetype/fttypes.h (FT_F6Dot10): New data type.
+
+2020-08-16 Anuj Verma <anujv@iitbhilai.ac.in>
+
+ [base] Allow renderers of different formats.
+
+ * src/base/ftobjs.c (FT_Render_Glyph_Internal): Do not return if the
+ glyph's slot format is `FT_GLYPH_FORMAT_BITMAP`. The forthcoming
+ 'bsdf' renderer will require bitmaps for processing.
+
+ * src/base/ftobjs.c (ft_add_renderer, ft_remove_renderer): Remove
+ renderer's glyph format check before adding and removing them. The
+ 'bsdf' renderer will have a format `FT_GLYPH_FORMAT_BITMAP`.
+
+2020-12-23 Werner Lemberg <wl@gnu.org>
+
+ * builds/windows/detect.mk (COPY): Make it work with `shell`.
+
+ Without this patch, we get the error
+
+ builds/toplevel.mk:127: *** missing separator. Stop.
+
+ Reported by Anuj, with a solution from Alexei.
+
+2020-12-23 Ignacio Casal Quinteiro <qignacio@amazon.com>
+
+ * meson.build (ft2_defines): Fix builds on Windows.
+
+2020-12-18 Tatsuyuki Ishi <ishitatsuyuki@gmail.com>
+
+ [autofit] Fix double division in stem darkening.
+
+ The old code used to divide the darkening amount by em_ratio twice,
+ leading to unnecessarily bold stems on certain fonts with higher
+ units per em (e.g. Inter). This patch fixes it.
+
+ The return value of af_loader_compute_darkening was also changed to
+ use 16.16 fixed point to get rid of a redundant truncation operation.
+ This should slightly improve the precision, although it's still
+ bottlenecked by the emboldening function, which uses 26.6 fixed point.
+
+ * src/autofit/afloader.[ch]
+ (af_loader_compute_darkening): Return FT_Fixed.
+ (af_loader_embolden_glyph_in_slot): Revise calculations.
+
+2020-12-17 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ * include/freetype/ftmodapi.h (FT_FACE_DRIVER_NAME): New public macro.
+
+ The driver name is needed for `FT_Property_Set' and `FT_Property_Get'.
+
+2020-12-16 Chris Liddell <chris.liddell@artifex.com>
+
+ [truetype] Fix incremental metrics (#59503).
+
+ * src/truetype/ttgload.c (tt_get_metrics, load_truetype_glyph):
+ Previously, the code would populate the phantom points before
+ calling the `get_glyph_metrics` callback. For formats like PCL XL
+ format 1, class 2 downloaded fonts (where metrics are removed from
+ the TTF header), this causes problems when the hinting program uses
+ the phantom points (misplaced and distorted glyphs) due to the
+ metrics being unset (all zeros).
+ (tt_get_metrics_incr_overrides): Renamed to...
+ (tt_get_metrics_incremental): ... this. Updated caller
+
+ * include/freetype/ftincrem.h: Update the documentation to make it
+ clearer that `get_glyph_metrics` is to retrieve metrics from a
+ non-standard source, but *not* for the purpose of imposing custom
+ metrics.
+
+2020-12-14 Werner Lemberg <wl@gnu.org>
+
+ [type42] Pacify static analysis tools (#59682).
+
+ * src/type42/t42objs.c (T42_Size_Init, T42_GlyphSlot_Init): Avoid
+ warnings about uninitialized variables.
+
+2020-12-07 Werner Lemberg <wl@gnu.org>
+
+ * builds/unix/configure.raw: Don't set `FT_DEBUG_LOGGING`.
+
+ All debug options are handled exclusively in `ftoption.h`.
+
+2020-12-07 Werner Lemberg <wl@gnu.org>
+
+ * src/*: More fixes for using a '\n' in `FT_TRACE` and `FT_ERROR`.
+
+2020-12-07 Werner Lemberg <wl@gnu.org>
+
+ */*: s/FT_LOGGING/FT_DEBUG_LOGGING/.
+
+2020-12-05 Werner Lemberg <wl@gnu.org>
+
+ * builds/toplevel.mk (do-dist): Remove `submodules` directory.
+
+2020-12-02 Werner Lemberg <wl@gnu.org>
+
+ * src/*: Don't use more than one '\n' in `FT_TRACE` and `FT_ERROR`.
+
+ This ensures good logging output, with all lines having a proper
+ prefix (if requested).
+
+2020-12-02 Werner Lemberg <wl@gnu.org>
+
+ [base] Don't close 'stderr' after logging.
+
+ * src/base/ftdebug.c, builds/windows/ftdebug.c (ft_logging_deinit):
+ Fix it.
+
+2020-12-02 Werner Lemberg <wl@gnu.org>
+
+ * submodules/dlg: Updated to commit 9f0c8b22.
+
+2020-12-02 Werner Lemberg <wl@gnu.org>
+
+ * src/bdf/bdflib.c: Fix `-Wformat` warning.
+
+2020-12-02 Werner Lemberg <wl@gnu.org>
+
+ Improve setup for 'dlg' library.
+
+ * autogen.sh (copy_submodule_file), builds/toplevel.mk: Redirect
+ stderr to `/dev/null`.
+
+ * builds/toplevel.mk: Move code block to handle 'dlg' stuff into
+ `check_platform` conditional.
+ Also fix wildcard expressions for guarding `git submodule` commands.
+ Also make file copying work with non-Unix platforms (untested).
+
+2020-12-01 Werner Lemberg <wl@gnu.org>
+
+ [build] Use gcc (and clang) in C99 mode.
+
+ Other compilers are unchanged.
+
+ * builds/compiler/gcc-dev.mk, builds/compiler/gcc.mk (ANSIFLAGS):
+ s/-ansi/-std=c99/.
+
+ * builds/freetype.mk (FT_CFLAGS): Remove `-std=c99`.
+
+ * builds/unix/configure.raw: Handle C99.
+ Remove no longer needed test for gcc 4.6 and earlier.
+
+2020-12-01 Werner Lemberg <wl@gnu.org>
+
+ [dlg] Fix compiler warnings.
+
+ * src/dlg/dlgwrap.c: Duplicate some feature test macros from
+ `dlg.c`, which must come first before loading standard headers. For
+ example, `freetype.h` loads `stdio.h` if compiled in debug mode.
+
+2020-12-01 Werner Lemberg <wl@gnu.org>
+
+ * src/type42/t42parse.c: Fix `-Wformat` warnings.
+
+2020-12-01 Priyesh Kumar <priyeshkkumar@gmail.com>
+
+ [builds/unix] Check for 'pthread' library.
+
+ * builds/unix/ax_pthread.m4: New file, taken from 'autoconf-archive'
+ git repository.
+
+ * builds/unix/configure.raw: Check for 'pthread'; also check whether
+ it works.
+
+2020-12-01 Werner Lemberg <wl@gnu.org>
+
+ [base] Implement vertical alignment of log printing.
+
+ Based on a patch by Priyesh.
+
+ * include/freetype/internal/fttrace.h (FT_MAX_TRACE_LEVEL_LENGTH):
+ New macro.
+
+ * src/base/ftdebug.c, builds/windows/ftdebug.c (ft_log_handler):
+ Print logs after a fixed width to handle different lengths of
+ `FT_COMPONENT` entries.
+ Use `ft_strrchr` to check for final newline character.
+
+2020-11-30 Priyesh Kumar <priyeshkkumar@gmail.com>
+
+ Update logging related documentation.
+
+ * docs/DEBUG: Updates related to `FT_LOGGING`.
+
+ * README.git: Updates related to logging.
+
+2020-11-30 Priyesh Kumar <priyeshkkumar@gmail.com>
+
+ * src/*: Fix `-Wformat` warnings.
+
+2020-11-30 Priyesh Kumar <priyeshkkumar@gmail.com>
+
+ [builds/windows] Changes to build 'dlg' with FreeType on Windows.
+
+ We only support Visual C++ 2010 and newer.
+
+ * builds/windows/vc2010/script.bat: New windows batch file to copy
+ necessary 'dlg' files from `submodules/dlg` to `src/dlg`. This file
+ is used as a pre-built event in Visual C++.
+
+ * builds/windows/ftdebug.c: Synchronize with `src/base/ftdebug.c`.
+
+ * builds/windows/vc2010/freetype.vcxproj.filters: Add
+ `src/dlgwrap.c`.
+
+ * builds/windows/vc2010/freetype.vcxproj
+ (AdditionalIncludeDirectories): Add include files of dlg for 'Debug'
+ and 'Debug Static' configurations on both 'x64' and 'win32'
+ platforms.
+ (PreprocessorDefinitions): Add `FT_LOGGING` for 'Debug' and 'Debug
+ Static' configurations on both 'x64' and 'win32' platforms.
+ Add `DLG_STATIC' for 'Debug' configuration on 'x64' and 'win32'
+ platforms.
+ (DisableLanguageExtensions): We need to disable the `/Za` option
+ when building 'dlg' with FreeType as 'dlg' strictly follows the C99
+ standard. Visual C++ produces behaves unexpectedly when
+ compiling a C99 file with `/Za` option enabled.
+
+2020-11-30 Priyesh Kumar <priyeshkkumar@gmail.com>
+
+ [base] Add public API to change log handling function.
+
+ * include/freetype/ftlogging.h (FT_Custom_Log_Handler): New function
+ typedef to store the custom callback logging function.
+ (FT_Set_Log_Handler, FT_Set_Default_Log_Handler): New functions to
+ set and reset custom log handler.
+
+ * include/freetype/internal/ftdebug.h (custom_output_handler): New
+ variable to support a custom callback logging function.
+ (FT_Logging_Callback): A new function typedef to print log using
+ custom callback logging function, which is set using
+ `FT_Set_Log_Handler`.
+ (FT_Log): Use it.
+
+ * src/base/ftdebug.c (FT_Set_Log_Handler,
+ FT_Set_Default_Log_Handler, FT_Logging_Callback): Add function
+ definitions.
+
+2020-11-28 Priyesh Kumar <priyeshkkumar@gmail.com>
+
+ [base] Add public API to change the levels of tracing components.
+
+ * include/freetype/ftlogging.h: New header file.
+
+ * include/freetype/internal/ftdebug.h [FT_LOGGING]: Include
+ `ftlogging.h`.
+
+ * src/base/ftdebug.c (ft_custom_trace_level): New variable.
+ (ft_debug_init): Update to support change of levels of tracing
+ components of FreeType at run-time.
+ (FT_Trace_Set_Level): New function to change the levels of tracing
+ components at run-time.
+ (FT_Trace_Set_Default_Level): New function to reset the levels of
+ tracing components back to default.
+
+2020-11-28 Priyesh Kumar <priyeshkkumar@gmail.com>
+
+ [base] Updates to print timestamp and name of `FT_COMPONENT` in logs.
+
+ * include/freetype/internal/ftdebug.h (FT_LOGGING_TAG,
+ FT_LOGGING_TAG_): New macros to resolve the value of `FT_COMPONENT'
+ into a string.
+ (ft_add_tag, ft_remove_tag): New functions to add and remove dlg tags.
+
+ * src/base/ftdebug.c: Add new variables to control the logging of
+ timestamp and name of `FT_COMPONENT` along with actual logs.
+ (ft_add_tag, ft_remove_tag): Add function definitions.
+ (ft_log_handler): Updates to print timestamp and name of
+ `FT_COMPONENT`.
+ (ft_debug_init) [FT_LOGGING]: Users can now control the logging of
+ timestamp and name of `FT_COMPONENT` by adding tags in the
+ `FT2_DEBUG` environment variable.
+
+2020-11-27 Priyesh Kumar <priyeshkkumar@gmail.com>
+
+ [base] Add functions and variables to print logs to a file.
+
+ * include/freetype/internal/ftdebug.h: Added dlg's header files.
+ (FT_LOG): New macro to redirect trace logs to dlg's API's whenever
+ `FT_LOGGING' is defined.
+ (ft_logging_init, ft_logging_deinit): New functions to handle
+ initialization and uninitialization of logging related variables.
+ (ft_log_handler): New function to handle logs of FreeType.
+
+ * src/base/ftdebug.c: Add necessary logging related variables.
+ (ft_logging_init, ft_logging_deinit, ft_log_handler): Add function
+ definitions.
+
+ * src/base/ftinit.c (FT_Init_FreeType) [FT_LOGGING]: Call
+ `ft_logging_init`.
+ (FT_Done_FreeType) [FT_LOGGING]: Call `ft_logging_deinit`.
+
+ * src/base/ftobjs.c (FT_New_Library): Call `ft_debug_init` only if
+ `FT_LOGGING` is not defined.
+
+2020-11-27 Priyesh Kumar <priyeshkkumar@gmail.com>
+
+ [builds] Necessary changes to make 'dlg' compile.
+
+ * autogen.sh (copy_submodule_files): New script to copy all the
+ necessary source and include files from `submodules/dlg` to
+ `src/dlg`.
+
+ * src/dlg/dlgwrap.c: New wrapper file for `src/dlg.c`. It enables
+ the build of 'dlg' if the `FT_LOGGING` macro is defined.
+
+ * src/dlg/rules.mk: New sub-Makefile.
+
+ * builds/freetype.mk (DLG_DIR): New variable to include the
+ header files of the 'dlg' library.
+ (INCLUDES): Add `DLG_DIR`.
+ (FT_CFLAGS): Add `-std=c99' flag.
+ Include `src/dlg/rules.mk` file to build 'dlg' library.
+ (OBJ_S, OBJ_M): Add `DLG_OBJS_M` and `DLG_OBJS_S`.
+
+ * builds/toplevel.mk: For builds directly from the git repository
+ we need to copy files from `submodule/dlg` to `src/dlg`.
+
+ * include/freetype/config/ftoption.h, devel/ftoption.h (FT_LOGGING):
+ New macro to enable or disable the logging facility in FreeType.
+
+2020-11-27 Priyesh Kumar <priyeshkkumar@gmail.com>
+
+ * .gitmodules: Add 'dlg' library's git repository as submodule.
+
+2020-12-01 Werner Lemberg <wl@gnu.org>
+
+ * src/tools/chktrcmp.py (trace_use_pat): Update to current use.
+
+2020-11-20 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ [cff,cid,type1] Demote old engine for lack of CFF2.
+
+ * src/cff/cffobjs.c (cff_driver_init): Always default to Adobe engine.
+ * src/cid/cidobjs.c (cid_driver_init): Ditto.
+ * src/type1/t1objs.c (T1_Driver_Init): Ditto.
+
+2020-11-09 Werner Lemberg <wl@gnu.org>
+
+ * src/type42/t42parse.c (t42_parse_sfnts): More tracing messages.
+
+2020-11-04 Werner Lemberg <wl@gnu.org>
+
+ * meson.build: Fix .pc file generation.
+
+ For backwards compatibility we need the libtool version, not the .so
+ number.
+
+ Reported by Nikolaus.
+
+2020-10-28 Werner Lemberg <wl@gnu.org>
+
+ [truetype] Minor update to forthcoming OpenType 1.8.4 standard.
+
+ * src/truetype/ttgxvar.c (ft_var_load_item_variation_store): Limit
+ size of `regionCount`.
+
+2020-10-26 Werner Lemberg <wl@gnu.org>
+
+ * meson.build: Fix 'harfbuzz' and 'brotli' build options (#59347).
+
+ Without this patch, 'harfbuzz' and 'brotli' are always required.
+
+ Patch submitted anonymously in Savannah bug report.
+
+2020-10-23 Ben Wagner <bungeman@google.com>
+
+ * src/sfnt/pngshim.c (Load_SBit_Png): Fix memory leak (#59322).
+
+ The issue is that `rows` is allocated but will not be freed in the
+ event that the call to `png_read_image` fails and calls `longjmp`.
+
+2020-10-20 Werner Lemberg <wl@gnu.org>
+
+ * Version 2.10.4 released.
+ ==========================
+
+
+ Tag sources with `VER-2-10-4'.
+
+ * docs/VERSION.TXT: Add entry for version 2.10.4.
+ * docs/CHANGES: Updated.
+
+ * README, src/base/ftver.rc, builds/windows/vc2010/index.html,
+ builds/windows/visualc/index.html,
+ builds/windows/visualce/index.html,
+ builds/wince/vc2005-ce/index.html,
+ builds/wince/vc2008-ce/index.html, docs/freetype-config.1:
+ s/2.10.3/2.10.4/, s/2103/2104/.
+
+ * include/freetype/freetype.h (FREETYPE_PATCH): Set to 4.
+
+ * builds/unix/configure.raw (version_info): Set to 23:4:17.
+ * CMakeLists.txt (VERSION_PATCH): Set to 4.
+
+2020-10-19 Werner Lemberg <wl@gnu.org>
+
+ [sfnt] Fix heap buffer overflow (#59308).
+
+ This is CVE-2020-15999.
+
+ * src/sfnt/pngshim.c (Load_SBit_Png): Test bitmap size earlier.
+
+2020-10-17 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ * src/sfnt/tt{colr,cpal}.c: Fix signedness warnings from VC++.
+
+2020-10-17 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ * src/sfnt/sfwoff2.c (Read255UShort): Tweak types to please VC++.
+
+2020-10-10 Werner Lemberg <wl@gnu.org>
+
+ * Version 2.10.3 released.
+ ==========================
+
+
+ Tag sources with `VER-2-10-3'.
+
+ * docs/VERSION.TXT: Add entry for version 2.10.3.
+
+ * README, src/base/ftver.rc, builds/windows/vc2010/index.html,
+ builds/windows/visualc/index.html,
+ builds/windows/visualce/index.html,
+ builds/wince/vc2005-ce/index.html,
+ builds/wince/vc2008-ce/index.html, docs/freetype-config.1:
+ s/2.10.2/2.10.3/, s/2102/2103/.
+
+ * include/freetype/freetype.h (FREETYPE_PATCH): Set to 3.
+
+ * builds/unix/configure.raw (version_info): Set to 23:3:17.
+ * CMakeLists.txt (VERSION_PATCH): Set to 3.
+
+2020-09-25 Werner Lemberg <wl@gnu.org>
+
+ [autofit] Synchronize with ttfautohint.
+
+ This corresponds to the following commits in the ttfautohint git
+ repository:
+
+ bb6842bd3bd437b7b4a7921b0376c860f5e73d18 Typo, formatting.
+ d5c91ddb1cb310257a3dfe9a8e20e1fc51335faa Add Medefaidrin script.
+
+ * src/autofit/afblue.dat: Add blue zone data for Medefaidrin.
+ * src/autofit/afblue.c, src/autofit/afblue.h: Regenerated.
+
+ * src/autofit/afscript.h: Add Medefaidrin standard characters.
+
+ * src/autofit/afranges.c, src/autofit/afstyles.h: Add Medefaidrin
+ data.
+
+2020-09-25 Werner Lemberg <wl@gnu.org>
+
+ Move `scripts/make_distribution_archives.py` to `src/tools`.
+
+ * scr/tools/scripts/make_distribution_archives.py: (_TOP_DIR,
+ _SCRIPT_DIR): Updated to new location.
+ (main): s/shutils.copyfile/shutils.copy/ to preserve file
+ permissions.
+ (main): Prefix source file paths with `git_dir` while copying files
+ to allow calls of the script from other places than the top-level
+ directory.
+
+2020-09-24 Werner Lemberg <wl@gnu.org>
+
+ * src/cff/cffgload.c (cff_slot_load): Scale `vertBearingY`.
+
+ Towards the end of the the function there is a call to
+ `FT_Outline_Get_CBox` that retrieves the glyph bbox in scaled units.
+ That sets `horiBearing{X,Y}` and `vertBearingX` but `vertBearingY`
+ is left alone, and is not scaled.
+
+ Patch from Eric Muller <emuller@amazon.com>.
+
+2020-09-24 Werner Lemberg <wl@gnu.org>
+
+ * src/base/ftobjs.c (FT_Load_Glyph): Trace glyph metrics.
+
+2020-09-22 Werner Lemberg <wl@gnu.org>
+
+ [meson] Move auxiliary scripts to `builds/meson`.
+
+ Suggested by Alexei.
+
+ * scripts/*.py: Move meson scripts to...
+ * builds/meson/*.py: ... this new location.
+
+ * meson.build: Updated.
+
+2020-09-21 David Turner <david@freetype.org>
+
+ Add python script for building tarballs.
+
+ * scripts/make_distribution_archives.py: New file.
+
+ This standalone Python script should be equivalent to running `make
+ dist` with the Make-based build system, with the following minor
+ differences:
+
+ - Since `make distclean` doesn't always clean up `objs/` properly,
+ `make dist` archives may contain some stale binaries like
+ `objs/.libs/libfreetype.so.6` or others.
+
+ - `config.guess` and `config.sub` are not updated unless option
+ `--gnu-config-dir=DIR` is used to specify the location of these
+ files.
+
+ - Some bits of the auto-generated reference documentation may
+ appear in slightly different order, probably due to issues related
+ to mkdocs and docwriter.
+
+ As an example, the call
+
+ scripts/make_distribution_archives.py /tmp/freetype2-dist
+
+ creates the following files under `/tmp/freetype2-dist`:
+
+ freetype-<version>.tar.gz
+ freetype-<version>.tar.xz
+ ft<winversion>.zip
+
+2020-09-21 Werner Lemberg <wl@gnu.org>
+
+ * scripts/extract_freetype_version.py: Fix regex typos.
+
+2020-09-21 David Turner <david@freetype.org>
+
+ Add Meson build project file.
+
+ Example usage:
+
+ # Configure Meson build in directory `build-meson` to generate
+ # release binaries comparable to to the ones from the
+ # autotools/make build system.
+ meson setup build-meson \
+ --prefix=/usr/local \
+ --buildtype=debugoptimized \
+ --strip \
+ -Db_ndebug=true
+
+ # After configuring the Meson build with the above command,
+ # compile and install to `/usr/local/`; this includes a pkg-config
+ # file.
+ ninja -C build-meson install
+
+ # Alternatively, compile and install to `/tmp/aa/usr/local/...`
+ # for packaging.
+ DESTDIR=/tmp/aa ninja -C build-meson install
+
+ # Generate documentation under `build-meson/docs`.
+ ninja -C build-meson docs
+
+ Library size comparison for stripped `libfreetype.so` generated by
+ all three build systems:
+
+ - Default build (autotools + libtool): 712 KiB
+ - CMake build (RelWithDebInfo): 712 KiB
+ - Meson build: 712 KiB
+
+
+ * meson.build: New top-level Meson build file for the library.
+
+ * meson_options.txt: New file. It holds user-selectable options for
+ the build, which can be printed with `meson configure`, and selected
+ at `meson setup` or `meson --reconfigure` time with
+ `-D<option>=<value>`.
+
+ * scripts/parse_modules_cfg.py: A script invoked by `meson.build` to
+ parse `modules.cfg` and extract important information out of it
+ (i.e., the list of modules).
+
+ * scripts/process_ftoption_h.py: New script invoked by `meson.build`
+ to process the original `ftoption.h` file. It enables or disables
+ configuration macro variables based on the available dependencies.
+ This is similar to what other build systems are using (i.e., Meson's
+ `configure_file()` command is not used here).
+
+ * scripts/extract_freetype_version.py: New script invoked by
+ `meson.build` to extract the FreeType version number from
+ `<freetype/freetype.h>`.
+
+ * scripts/extract_libtool_version.py: New script invoked by
+ `meson.build` to extract the libtool `revision_info` data from
+ `builds/unix/configure.raw`, and to generate the corresponding
+ shared library suffix.
+
+ * scripts/generate_reference_docs.py: New script invoked by
+ `meson.build` to generate the FreeType 2 reference documentation
+ (using the `docwriter` and `mkdocs` packages, which must be already
+ installed).
+
+2020-09-11 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ [raster] Improve the second pass (#58373).
+
+ Besides dropout control the second horizontal sweep is supposed to
+ clean up straight horizontal edges that are mishandled by the first
+ vertical sweep when a line passes through pixel centers. This line
+ would present as perfectly aligned span edges in the second sweep.
+
+ * src/raster/ftraster.c (Horizontal_Sweep_Span): Replace the old
+ implementation with a better one focusing on aligned span edges only.
+
+2020-09-08 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ [raster] Tune SMART macro (#58352).
+
+ Windows seems to perform smart dropout control at 26.6 precision.
+ To mimick Windows independent of increased precision, we need to tweak
+ the macro so that some close calls break down rather than up.
+
+ * src/raster/ftraster.c (SMART): Tweak the macro.
+
+2020-09-08 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ [raster] Introduce SMART macro.
+
+ * src/raster/ftraster.c (SMART): New macro for smart dropout rounding.
+ (Verstical_Sweep_Drop, Horizontal_Sweep_Drop): Use it.
+
+2020-09-03 Boris Dalstein <dalboris@gmail.com>
+
+ [build] Make CMake install basic version information.
+
+ * CMakeLists.txt: Do it.
+
+2020-09-02 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ [truetype] Reduce Infinality footprint (cont'd).
+
+ * src/truetype/ttinterp.c (Ins_DELTAP): Shrink variable scope.
+ (Ins_SHPIX, Ins_MIRP): Revise if-logic.
+
+2020-09-02 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ [truetype] Reduce Infinality footprint.
+
+ * src/truetype/ttinterp.c (Ins_SHPIX, Ins_MSIRP, Ins_MIAP, Ins_MDRP,
+ Ins_MIRP): Shrink variable scopes and consolidate ifdefs.
+
+2020-09-01 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ [truetype] Refactor compensation color.
+
+ * src/truetype/ttinterp.h (TT_Round_Func): Change the last argument.
+ * src/truetype/ttinterp.c (Ins_ROUND, Ins_NROUND, Ins_MDAP, Ins_MIAP,
+ Ins_MDRP, Ins_MIRP): Move compensation retrieval from here...
+ (Round_*): ... to here.
+ * src/truetype/ttobjs.c (tt_size_init_bytecode): Reserve zero
+ compensation at color index 3.
+
+2020-08-28 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ [smooth] Don't set target in direct mode.
+
+ * src/smooth/ftsmooth.c (ft_smooth_raster_overlap): Remove assignment.
+ (ft_smooth_raster_lcd) [!FT_CONFIG_OPTION_SUBPIXEL_RENDERING]: Ditto.
+
+2020-08-25 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ * src/smooth/ftsmooth.c (ft_smooth_raster_overlap): Limit width.
+
+ Segmentation fault reported as
+
+ https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=24729
+
+2020-08-22 Werner Lemberg <wl@gnu.org>
+
+ * src/truetype/ttgload.c (TT_Get_VMetrics): Add tracing message.
+
+2020-08-05 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ [truetype] Retain OVERLAP_SIMPLE and OVERLAP_COMPOUND.
+
+ For glyphs with OVERLAP_SIMPLE or OVERLAP_COMPOUND, set
+ FT_OUTLINE_OVERLAP to render them with direct oversampling, which
+ mitigates artifacts (see 3bb512bc9f62).
+
+ * include/freetype/ftimage.h (FT_OUTLINE_OVERLAP): Redefine to rhyme
+ with OVERLAP_SIMPLE.
+ * src/base/ftgloadr.c (FT_GlyphLoader_Rewind): Reset outline flags.
+ * src/truetype/ttgload.c
+ (TT_Load_Simple_Glyph): Retain OVERLAP_SIMPLE.
+ (load_truetype_glyph): Retain OVERLAP_COMPOUND.
+
+2020-08-04 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ * src/truetype/ttgload.c (TT_Load_Glyph): More tracing.
+
+2020-07-28 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ Hide internal functions with SunPro.
+
+ * include/freetype/internal/compiler-macros.h
+ (FT_INTERNAL_FUNCTION_ATTRIBUTE) <__SUNPRO_C>: Define as __hidden.
+
+2020-07-28 Anuj Verma <anujv@iitbhilai.ac.in>
+
+ Fix static compilation with Visual C.
+
+ * include/freetype/internal/compiler-macros.h
+ (FT_INTERNAL_FUNCTION_ATTRIBUTE) <_WIN32>: Define as empty.
+
+2020-07-28 Priyesh Kumar <priyeshkkumar@gmail.com>
+
+ Fix `-Wformat' compiler warnings.
+
+ * src/*: Fix format specifiers.
+
+ * builds/unix/ftsystem.c (FT_Stream_Open): Ditto.
+
+2020-07-25 Werner Lemberg <wl@gnu.org>
+
+ Fix `-Wformat' compiler warnings.
+
+ Problem reported by Priyesh kumar <priyeshkkumar@gmail.com>
+
+ * src/base/ftoutln.c (FT_Outline_Decompose): Fix number of arguments
+ to tracing macro.
+
+ * src/bdf/bdfdrivr.c (bdf_cmap_char_next, bdf_get_bdf_property):
+ Ditto.
+
+ * src/cache/ftcbasic.c (ftc_basic_family_get_count): Ditto.
+ Reformulate message.
+
+ * src/pcf/pcfdrivr.c (pcf_get_bdf_property): Ditto.
+
+ * src/sfnt/sfwoff2.c (woff2_open_font): Ditto.
+ Trace table offset, too.
+
+ * src/truetype/ttgxvar.c (ft_var_apply_tuple): Ditto.
+
+2020-07-23 Werner Lemberg <wl@gnu.org>
+
+ * src/sfnt/sfwoff2.c (woff2_decompress): Fix compiler warning.
+
+ Reported by Hin-Tak.
+
+2020-07-12 Werner Lemberg <wl@gnu.org>
+
+ * builds/unix/configure.raw: Fix inclusion of `ftoption.h'.
+
+2020-07-07 Werner Lemberg <wl@gnu.org>
+
+ Fix clang warnings.
+
+ * include/freetype/internal/autohint.h
+ (FT_DECLARE_AUTOHINTER_INTERFACE): New macro.
+ * src/autofit/afmodule.h: Use it to declare
+ `af_autofitter_interface'.
+
+ * include/freetype/internal/ftobjs.h (FT_DECLARE_GLYPH): New macro.
+ * src/base/ftbase.h: Use it to declare `ft_bitmap_glyph_class' and
+ `ft_outline_glyph_class'.
+
+ * src/base/ftglyph.c: Include `ftbase.h'.
+
+ * src/cff/cffparse.c (cff_parser_run): Fix type of `t2_size'.
+
+ * src/pcf/pcfdrivr.c (pcf_cmap_char_next): Fix type of `result'.
+
+ * src/psaux/psauxmod.c (psaux_module_class): Use `FT_DEFINE_MODULE'.
+ * src/psaux/psauxmod.h: Declare `afm_parser_funcs',
+ `t1_cmap_classes', `cff_decoder_funcs', and `psaux_module_class'.
+
+ * src/pshinter/pshmod.c: Include `pshmod.h'.
+
+ * src/sfnt/sfwoff2.c (ROUND4, WRITE_SHORT): Fix implicit sign
+ conversion.
+ (compute_ULong_sum): Fix return type.
+ Fix implicit sign conversion.
+ (store_points): Fix type of `last_flag', `repeat_count', and `flag'.
+ Use casts to avoid warnings.
+ (reconstruct_glyf): Fix implicit sign conversion.
+ Use cast to avoid warning.
+ (get_x_mins): Fix implicit sign conversion.
+ * src/sfnt/ttcmap.c: Undef `TTCMAPCITEM'.
+ * src/sfnt/ttcmap.h: Define `TTCMAPCITEM' and include `ttcmapc.h' to
+ declare cmap classes.
+
+ * src/smooth/ftsmooth.c (ft_smooth_overlap_spans): Use cast.
+
+ * src/truetype/ttinterp.c (Ins_MIAP): Fix typo.
+
+2020-07-07 David Turner <david@freetype.org>
+
+ [build] Really fix multi and C++ builds.
+
+ The following builds were still failing due to previous changes:
+
+ make multi
+ make multi CC="c++"
+ make CC="c++"
+
+ This patch fixes the issues, which were missing includes to get the
+ right macro definitions in multi-build mode.
+
+ Also, `FT_UNUSED' is actually used by third-party code, so move it
+ back to `public-macros.h' to avoid breaking it.
+
+ * include/freetype/config/public-macros.h (FT_EXPORT): Remove
+ special definition for C++.
+ (FT_UNUSED): Define here instead of...
+ * include/freetype/config/compiler-macros.h: ... here.
+ (FT_FUNCTION_DECLARATION): Remove special definition for C++.
+ (FT_LOCAL_ARRAY_DEF): Fix definition.
+
+ * src/cache/ftccback.h, src/lzw/ftzopen.h, src/gxvalid/gxvmort.h,
+ src/gxvalid/gxvmorx.h: Add `FT_BEGIN_HEADER' and `FT_END_HEADER'.
+
+2020-07-06 David Turner <david@freetype.org>
+
+ [build] Fix multi and C++ builds.
+
+ The following builds were failing due to previous changes:
+
+ make multi
+ make multi CC="c++"
+
+ * include/freetype/config/ftconfig.h: Remove `FT_END_HEADER'.
+
+ * include/freetype/config/ftheader.h (FT_BEGIN_HEADER,
+ FT_END_HEADER): Protect against redefinition.
+
+ * src/cache/ftccache.h, src/cache/ftcmru.h, src/pcf/pcfutil.h,
+ src/psaux/pserror.h, src/psaux/psft.h, src/psaux/psstack.h,
+ src/sfnt/woff2tags.h: Include `compiler-macros.h'.
+
+ * src/sfnt/woff2tags.c: Include `woff2tags.h'.
+
+2020-07-06 Werner Lemberg <wl@gnu.org>
+
+ [psaux] Improve `t1_decoder_parse_metrics' (#58646).
+
+ * src/psaux/t1decode.c (t1_decoder_parse_metrics): Copy
+ corresponding code from old engine's `t1_decoder_parse_charstrings'
+ function to handle `op_callsubr' and `op_return'.
+
+2020-07-05 David Turner <david@freetype.org>
+
+ [build] Improve visibility support of library function names.
+
+ * include/freetype/config/public-macros.h
+ (FT_PUBLIC_FUNCTION_ATTRIBUTE): New macro to tag functions as
+ public (and thus exportable).
+ (FT_EXPORT): Use it.
+
+ * include/freetype/config/compiler-macros.h
+ (FT_INTERNAL_FUNCTION_ATTRIBUTE): New macro to tag functions as
+ internal to the library (and thus hidden). Note that on ELF
+ systems, all internal functions have hidden visibility, which avoids
+ the need to enforce this when invoking the compiler (e.g., with an
+ option like `-fvisibility=hidden').
+
+ (FT_FUNCTION_DECLARATION, FT_FUNCTION_DEFINITION): New base macros
+ to deal with C and C++ linkage issues at the same time.
+
+ (FT_LOCAL, FT_LOCAL_DEF, FT_LOCAL_ARRAY, FT_LOCAL_ARRAY_DEF,
+ FT_BASE, FT_BASE_DEF, FT_EXPORT_VAR, FT_BASE_CALLBACK,
+ FT_BASE_CALLBACK_DEF): Redefined using new macros.
+
+2020-07-05 David Turner <david@freetype.org>
+
+ [build] Split off more stuff from `ftconfig.h'.
+
+ * builds/unix/ftconfig.h.in, builds/vms/ftconfig.h,
+ include/freetype/config/ftconfig.h: Split off macro definitions
+ required by the FreeType API headers to...
+ * include/freetype/config/public-macros.h: ...this new file.
+
+ * builds/unix/ftconfig.h.in, builds/vms/ftconfig.h,
+ include/freetype/config/ftconfig.h: Split off macro definitions used
+ by the library but not to be exposed to clients to...
+ * include/freetype/config/compiler-macros.h: ...this new file.
+
+ * include/freetype/internal/*.h, src/raster/ftraster.h: Include
+ `compiler-macros.h' where needed.
+
+2020-07-05 David Turner <david@freetype.org>
+
+ [build] Move mac support code to `mac-support.h'.
+
+ * builds/unix/ftconfig.h.in, builds/vms/ftconfig.h,
+ include/freetype/config/ftconfig.h: Split off mac-specific stuff
+ to...
+ * include/freetype/config/mac-support.h: ...this new file.
+
+ * CMakeLists.txt, builds/unix/configure.raw: Remove `/undef ->
+ #undef' string replacement; the affected code is no longer part of
+ the `ftconfig.h' template.
+
+2020-07-05 David Turner <david@freetype.org>
+
+ [build] Put integer type definitions into `integer-types.h'.
+
+ Refactor some of the `ftconfig.h' headers and template to move the
+ definition of the FreeType integer types (e.g., `FT_Int16') to a
+ common header file `freetype/config/integer-types.h'.
+
+ * builds/unix/ftconfig.h.in, builds/vms/ftconfig.h,
+ include/freetype/config/ftconfig.h: Split off integer type
+ definition stuff to...
+ * include/freetype/config/integer-types.h: ...this new file.
+
+ * builds/unix/ftconfig.h.in: Control the definition of
+ `FT_SIZEOF_INT' and `FT_SIZEOF_LONG' with macro
+ `FT_USE_AUTOCONF_SIZEOF_TYPES'. If these are not defined, auto
+ detection happens in `integer-types.h' as usual based on `INTXX_MAX'
+ values. Otherwise the autoconf-detected values are used.
+
+ * builds/unix/configure.raw (CPPFLAGS): Don't include path to
+ `config' directory. Instead, ...
+ (FT_CONFIG_STANDARD_LIBRARY_H): Use complete path.
+
+2020-07-05 David Turner <david@freetype.org>
+
+ [build] Rename `build/unix/ftconfig.in' to `ftconfig.h.in'.
+
+ Since we are no longer limited to 8.3 file names, it is simpler to
+ follow the usual conventions for template files.
+
+ * builds/unix/ftconfig.in: Renamed to...
+ * builds/unix/ftconfig.h.in: ...this.
+
+ * CMakeLists.txt, builds/unix/configure.raw: Updated.
+
+2020-07-03 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ [smooth] Introduce direct oversampling for overlaps.
+
+ This implements oversampling to mitigate artifacts in pixels partially
+ covered by overlapping contours. It turns out that the 4x4
+ oversampling is sufficient but, at least, quadruples the rendering
+ time. The outline has to set FT_OUTLINE_OVERLAP to use this method.
+
+ * include/freetype/ftimage.h (FT_OUTLINE_OVERLAP): New flag.
+ * src/smooth/ftsmooth.c (ft_smooth_render): Check it to...
+ (ft_smooth_raster_overlap): ... inflate outline and set up direct
+ rendering for oversampling with...
+ (ft_smooth_overlap_spans): ... new span function that integrates them.
+
+2020-07-03 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ [smooth] Use direct rendering mode in Harmony.
+
+ Instead of rendering 3 bitmaps side by side and reshuffling, we use
+ direct rendering to deliver the bitmaps on each third byte.
+
+ * src/smooth/ftsmooth.c (ft_smooth_raster_lcd)
+ [!FT_CONFIG_OPTION_SUBPIXEL_RENDERING]: Set up direct mode with...
+ (ft_smooth_lcd_spans): ... new span function.
+
+2020-07-03 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ [smooth] Separate LCD paths from gray rendering.
+
+ This makes `ft_smooth_render' a lot smaller and easier to follow. It
+ also cleanly separates Harmony and ClearType-style LCD rendering
+ algorithms. Now I only wish to move LCD filtering and geometry from
+ FT_Library to FT_Renderer.
+
+ * src/smooth/ftsmooth.c (ft_smooth_render): Move LCD code from here...
+ (ft_smooth_raster_lcd, ft_smooth_raster_lcdv): ... to here.
+ [FT_CONFIG_OPTION_SUBPIXEL_RENDERING]: Reorganize #ifdef's.
+
+2020-06-20 Sebastian Rasmussen <sebras@gmail.com>
+
+ [cff] Fix handling of `style_name == NULL' (#58630).
+
+ * src/cff/cffobjs.c (cff_face_init): If a call to `cff_strcpy' fails
+ by returning NULL in `cff_face_init', `remove_style' is still
+ called. This means that the NULL pointer is dereferenced, causing a
+ crash.
+
+2020-06-19 Sebastian Rasmussen <sebras@gmail.com>
+
+ [cff] Fix another two memory leaks (#58629).
+
+ * src/cff/cffobjs.c (cff_size_init): If a call to `funcs->create'
+ fails to allocate one of the `internal->subfont' variables, make
+ sure to free `internal->topfont' and any successfully allocated
+ subfonts.
+
+2020-06-19 Sebastian Rasmussen <sebras@gmail.com>
+
+ [psaux] Fix memory leak (#58626).
+
+ * src/psaux/psstack.c (cf2_stack_init): If `cf2_stack_init' fails to
+ allocate the stack, return error early.
+
+2020-06-19 Sebastian Rasmussen <sebras@gmail.com>
+
+ [base] Fix memory leak (#58624).
+
+ * src/base/ftobjs.c (FT_New_Size): Avoid trying to free
+ `size->internal' unless `size' has been allocated. This mistake
+ appeared in the fix for issue #58611.
+
+2020-06-19 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ [base] Rework d1180b5f9598 until further notice.
+
+ * src/base/ftoutln.c (FT_Outline_Get_Orientation): Reject large
+ outlines.
+
+2020-06-19 Sebastian Rasmussen <sebras@gmail.com>
+
+ [cff, cid] Fix segfaults in case of error (#58621).
+
+ * src/cff/cffobjs.c (cff_slot_done), src/cid/cidobjs.c
+ (cid_slot_done): If `ft_glyphslot_init' fails to allocate
+ `internal', then the class' `done_slot' callback (called by
+ `ft_glyphslot_done') must not dereference the pointer to `internal'.
+
+2020-06-19 Werner Lemberg <wl@gnu.org>
+
+ [base] Fix UBSAN error.
+
+ Reported as
+
+ https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=23166
+
+ * src/base/ftoutln.c (FT_Outline_Get_Orientation): Avoid values
+ larger than 32 bits.
+
+2020-06-19 Werner Lemberg <wl@gnu.org>
+
+ [woff2] Fix segfault.
+
+ Reported as
+
+ https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=23402
+
+ * src/sfnt/sfwoff2.c (get_x_mins): Check whether `loca' table
+ exists.
+
+2020-06-19 Stephen McDowell <svenevs.dev@gmail.com>
+
+ [sfnt] Support Intel compilers.
+
+ * src/sfnt/pngshim.c (premultiply_data): Intel compilers do not
+ currently support `__builtin_shuffle'.
+
+2020-06-19 Sebastian Rasmussen <sebras@gmail.com>
+
+ [base] Fix memory leak (#58611).
+
+ * src/base/ftobjs.c (FT_New_Size): When the call to `clazz->init_size'
+ fails, make sure to free `size->internal'.
+
+2020-06-19 Sebastian Rasmussen <sebras@gmail.com>
+
+ [cff] Fix memory leak (#58610).
+
+ * src/cff/cffobjs.c (cff_size_init): When the call to
+ `funcs->create' fails, make sure to free `internal'.
+
+2020-06-19 Werner Lemberg <wl@gnu.org>
+
+ * src/cff/cffload.c (cff_index_get_pointers): Rename `t' to `tbl'.
+
+2020-06-19 Sebastian Rasmussen <sebras@gmail.com>
+
+ [cff] Free table upon error allocating other data (#58609).
+
+ * src/cff/cffload.c (cff_index_get_pointers): When new_bytes fails
+ to allocate, make sure to free the table. Do the same for both
+ allocations if there is a later error.
+
+2020-06-13 Werner Lemberg <wl@gnu.org>
+
+ Remove redundant inclusion of `ft2build.h'.
+
+ * */*: Remove `#include <ft2build.h>' where possible.
+
+ * include/freetype/freetype.h: Remove cpp error about missing
+ inclusion of `ft2build.h'.
+
+2020-06-08 David Turner <david@freetype.org>
+
+ Make macros for header file names optional.
+
+ We no longer have to take care of the 8.3 file name limit; this
+ allows us (a) to introduce longer, meaningful file names, and (b) to
+ avoid macro names in `#include' lines altogether since some
+ compilers (most notably Visual C++) doesn't support this properly.
+
+ */*: Replace
+
+ #include FOO_H
+
+ with
+
+ #include <freetype/foo.h>
+
+ or something similar. Also update the documentation.
+
+2020-06-02 Werner Lemberg <wl@gnu.org>
+
+ * src/sfnt/ttcmap.c (tt_face_build_cmaps): Trace number of cmaps.
+
+2020-05-18 David Turner <david@freetype.org>
+
+ Remove obsolete HAVE_STDINT_H probing macro.
+
+ This macro was updated by the unix configure script and the
+ `CMakeLists.txt' one, but is never used in the source tree (nor is
+ <stdint.h> included anywhere).
+
+ * CMakeLists.txt, builds/unix/ftconfig.in: Don't handle
+ `HAVE_STDINT_H'.
+
+2020-05-18 David Turner <david@freetype.org>
+
+ Remove Jamfile files from the tree.
+
+ These have not been used in a very, very long time, so better remove
+ them. A corresponding patch will be submitted to the
+ `freetype2-demos' repository.
+
+ * src/Jamfile, src/*/Jamfile, Jamrules: Delete.
+
+2020-05-12 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ [smooth] Turn on LCD filtering during FreeType initialization.
+
+ * src/smooth/ftsmooth.c (ft_smooth_init): Enable LCD filtering.
+
+ * include/freetype/ftlcdfil.h: Document it, remove patent warnings.
+ * include/freetype/freetype.h (FT_Render_Mode): Updated.
+ * include/freetype/config/ftoption.h, devel/ftoption.h
+ [FT_CONFIG_OPTION_SUBPIXEL_RENDERING]: Do not mention patents.
+
+2020-05-11 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ [smooth] Stop using dedicated LCD modules and classes.
+
+ The LCD modules were never truly independent. They mostly served as
+ a way to disable patented LCD rendering, which is no longer necessary.
+ The `smooth' module now handles LCD modes as well.
+
+ * src/smooth/ftsmooth.c (ft_smooth_lcd_renderer_class.
+ ft_smooth_lcdv_renderer_class): Deleted.
+ (ft_render_smooth): Reworked from `ft_render_smooth_generic'.
+ * src/smooth/ftsmooth.h: Remove dedicated LCD classes.
+ * src/smooth/module.mk: Remove dedicated LCD modules.
+ * include/freetype/config/ftmodule.h: Ditto.
+ * builds/amiga/include/config/ftmodule.h: Ditto.
+ * include/freetype/ftmodapi.h: Do not mention LCD modules.
+
+2020-05-09 Werner Lemberg <wl@gnu.org>
+
+ * Version 2.10.2 released.
+ ==========================
+
+
+ Tag sources with `VER-2-10-2'.
+
+ * docs/VERSION.TXT: Add entry for version 2.10.2.
+
+ * README, Jamfile (RefDoc), src/base/ftver.rc,
+ builds/windows/vc2010/index.html, builds/windows/visualc/index.html,
+ builds/windows/visualce/index.html,
+ builds/wince/vc2005-ce/index.html,
+ builds/wince/vc2008-ce/index.html, docs/freetype-config.1:
+ s/2.10.1/2.10.2/, s/2101/2102/.
+
+ * include/freetype/freetype.h (FREETYPE_PATCH): Set to 2.
+
+ * builds/unix/configure.raw (version_info): Set to 23:2:17.
+ * CMakeLists.txt (VERSION_PATCH): Set to 2.
+
+ * docs/CHANGES: Updated.
+
+2020-05-08 Jakub Alba <jalba@vewd.com>
+
+ * src/truetype/ttinterp.c (TT_RunIns): Adjust loop counter (#58319).
+
+ The font that exceeds the old limit is Icono Regular, version
+ 1.00000.
+
+2020-05-03 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ * builds/freetype.mk: Refactor for readability.
+
+2020-05-02 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ [builds] Clean up Windows CE project files.
+
+ Remove version from filenames that caused a lot of polution in the
+ release process. Use VERSIONINFO resource instead.
+
+ * builds/wince/vc2005-ce/freetype.vcproj,
+ builds/wince/vc2008-ce/freetype.vcproj,
+ builds/windows/visualce/freetype.vcproj,
+ builds/windows/visualce/freetype.dsp: s/2101//g, but add `ftver.rc'.
+ * builds/wince/vc2008-ce/index.html,
+ builds/wince/vc2005-ce/index.html,
+ builds/windows/visualce/index.html: s/2101//g.
+
+2020-05-01 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ * devel/ft2build.h: Override FT_CONFIG_MODULES_H here as well.
+
+2020-05-01 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ [builds/unix] Consolidate marco overrides (for the demos to see them).
+
+ * builds/unix/unix-cc.in (FT_CONFIG_MODULES_H, FT_CONFIG_OPTIONS_H):
+ Override them here...
+ * builds/freetype.mk: ... instead of here.
+
+2020-04-08 Werner Lemberg <wl@gnu.org>
+
+ Allow setting `CC' in Unix build (#58051).
+
+ * builds/unix/unix-cc.in (CC): Use `override'. The command line
+ value of `CC' (if any) is stored already in `CCraw'.
+
+2020-04-04 Nikhil Ramakrishnan <ramakrishnan.nikhil@gmail.com>
+
+ [woff2] Return if single stream operation fails.
+
+ * src/sfnt/sfwoff2.c (get_x_mins): Do it.
+
+ * src/sfnt/woff2tags.c: Remove unused include.
+
+2020-03-22 Nikhil Ramakrishnan <ramakrishnan.nikhil@gmail.com>
+
+ [docs] Fix building docs if `srcdir' != `builddir'.
+
+ `docs/reference/*' was moved one directory up in commit 237fed6.
+
+ * builds/unix/unix-def.in (PIP): Remove variable.
+
+ * configure: Create `docs' directory and copy assets from
+ `docs/markdown'.
+
+ * docs/README: Output directory is `reference'.
+
+2020-03-21 Nikhil Ramakrishnan <ramakrishnan.nikhil@gmail.com>
+
+ [docwriter] Drop support for Python < 3.5.
+
+ Python versions < 3.5 have reached end-of-life and as such, no
+ security or bug fixes will be provided for those versions. See
+
+ https://devguide.python.org/#status-of-python-branches
+
+ for more information.
+
+ * Jamfile (RefDoc): Add `site' parameter.
+
+ * builds/detect.mk (std_setup): Update Python version requirement.
+
+ * builds/freetype.mk (refdoc-venv): Use pip as `python -m pip'.
+
+ * builds/unix/ax_compare_version.m4,
+ builds/unix/ax_prog_python_version.m4: Macros to detect Python
+ version. New files.
+
+ * builds/unix/configure.raw: Check for Python >= 3.5 and remove
+ check for `pip'.
+
+ * docs/CHANGES, docs/INSTALL.GNU, docs/README: Updated.
+
+2020-03-02 Moazin Khatti <moazinkhatri@gmail.com>
+
+ [gzip] Support `gzip' encoded header conditionally.
+
+ In order to support `gzip' encoded header the call to
+ `inflateInit2' was modified in commit 6a92b1fadde26477a9179.
+ However, this code breaks with the outdated internal version
+ of zlib. This is a temporary fix to conditionally support
+ `gzip' encoded header whenever a system installation of zlib
+ is being used.
+
+ Problem report in
+
+ https://lists.nongnu.org/archive/html/freetype-devel/2020-02/msg00023.html
+
+ * src/gzip/ftgzip.c (FT_Gzip_Uncompress): Change the the call to
+ `inflateInit2' depending on whether the system installation is
+ being used or the internal copy.
+
+2020-02-29 Ben Wagner <bungeman@google.com>
+
+ [truetype] Fix state of `FT_Face' for buggy `gvar' tables (#57923).
+
+ By resetting the blend as implemented with this commit fonts with
+ invalid `gvar' tables may keep calling into `ft_var_load_gvar' from
+ `tt_set_mm_blend' and failing, but the font was invalid anyway and
+ we want to keep seeing the failure in `tt_set_mm_blend'.
+
+ * src/truetype/ttgxvar.c (ft_var_load_gvar): Calculate length of
+ offset array once.
+ Allocate arrays after `FT_FRAME_ENTER' (extra check before
+ allocating and avoid needing to free array later if error entering
+ frame).
+ Always call `FT_FRAME_EXIT'.
+ Consistently set counts immediately after array initialized.
+ Reset the blend (particularly `blend->glyphoffsets') on failure.
+
+2020-03-01 Nikhil Ramakrishnan <ramakrishnan.nikhil@gmail.com>
+
+ [docs] Update docwriter stylesheet.
+
+ This change is required to support docwriter 1.2.1.
+
+ See
+
+ https://github.com/freetype/docwriter/issues/36
+
+ for more information.
+
+ * docs/markdown/stylesheets/extra.css:
+ (.md-typeset code) -> (.md-typeset pre>code)
+ (pre) -> (pre>code)
+ (p, .md-typeset p, h4): Remove commented styles.
+ (table.index): Remove unused styles.
+
+2020-02-28 Ben Wagner <bungeman@google.com>
+
+ [truetype] Add better checks for loading `gvar' table (#57905).
+
+ * src/truetype/ttgxvar.c (ft_var_load_gvar): Delay settings of any
+ `blend->xxxcount' values until the corresponding data has been
+ checked.
+ Also do some sanitizing to avoid a too early exit.
+
+ (TT_Vary_Apply_Glyph_Deltas): Improve tracing message.
+
+2020-02-27 Werner Lemberg <wl@gnu.org>
+
+ Make `FT_HAS_*' and `FT_IS_*' really return true (#57906).
+
+ * include/freetype/freetype.h (FT_HAS_*, FT_IS_*): Implement it.
+
+2020-02-25 Dominik Röttsches <drott@chromium.org>
+
+ Fix for CFF space glyph regression (#57541).
+
+ * src/psaux/psft.c (cf2_decoder_parse_substrings): Replace early-out
+ with FT_OFFSET.
+
+2020-02-22 Werner Lemberg <wl@gnu.org>
+
+ [woff2] Fix font table access.
+
+ Reported as
+
+ https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=20778
+
+ * src/sfnt/sfwoff2.c (get_x_mins): Explicitly check for presence of
+ `head' table, which might not have been processed yet.
+
+2020-02-21 Werner Lemberg <wl@gnu.org>
+
+ [psaux] Make `t1_decoder_parse_metrics' handle `op_div' (#57519).
+
+ * src/psaux/t1decode.c (t1_decoder_parse_metrics): Copy
+ corresponding code from old engine's `t1_decoder_parse_charstrings'
+ function.
+
+2020-02-19 Nikolaus Waxweiler <nikolaus.waxweiler@daltonmaag.com>
+
+ [autofit] Add support for Hanifi Rohingya script.
+
+ * src/autofit/afblue.dat: Add blue zone data for Hanifi Rohingya.
+ * src/autofit/afblue.c, src/autofit/afblue.h: Regenerated.
+
+ * src/autofit/afscript.h: Add Hanifi Rohingya standard character.
+
+ * src/autofit/afranges.c, src/autofit/afstyles.h: Add Hanifi
+ Rohingya data.
+
+2020-02-19 Werner Lemberg <wl@gnu.org>
+
+ Require HarfBuzz 1.8.
+
+ * builds/unix/configure.raw, CMakeLists.txt: Request HarfBuzz 1.8.0
+ or newer.
+
+ We are going to add auto-hinter support for Hanifi Rohingya, which
+ was introduced in Unicode 11.0.
+
+2020-02-12 Werner Lemberg <wl@gnu.org>
+
+ * src/sfnt/ttcmap.c (tt_face_build_cmaps): Ignore version (#57708).
+
+2020-02-04 Werner Lemberg <wl@gnu.org>
+
+ * src/truetype/ttinterp.c (TT_RunIns): Adjust loop counter (#57732).
+
+ The font that exceeds the old limit is Constantine, version 1.001.
+
+2020-01-04 Werner Lemberg <wl@gnu.org>
+
+ [base] Fix `FREETYPE_PROPERTIES=type1:hinting-engine=adobe`.
+
+ * src/base/ftpsprop.c (ps_property_set) [hinting-engine]: Avoid an
+ incorrect return value that caused a warning. The function did the
+ right thing, though.
+
+2020-01-03 Werner Lemberg <wl@gnu.org>
+
+ [woff2] Fix memory leaks and a runtime warning.
+
+ Reported as
+
+ https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=19773
+ https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=18101
+
+ * src/sfnt/sfwoff2.c (compute_ULong_sum): Add missing cast.
+ (reconstruct_hmtx): Add missing deallocation calls.
+
+2020-01-02 Dominik Röttsches <drott@chromium.org>
+
+ [truetype] Fix UBSan warning on offset to nullptr (#57501).
+
+ * src/truetype/ttinterp.c (Ins_CALL): Fail if `exc->FDefs' is null.
+
+2019-12-31 Nikhil Ramakrishnan <ramakrishnan.nikhil@gmail.com>
+
+ [woff2] Allow bitmap-only fonts (#57394).
+
+ * src/sfnt/sfwoff2.c (reconstruct_font): Fix test for `glyf' and
+ `loca' tables.
+
+2019-12-21 Hugh McMaster <hugh.mcmaster@outlook.com>
+
+ [docs] (2/2) Fix generation of API documentation (#56745).
+
+ Creating the API Reference in the (new) `reference' sub-directory is
+ consistent with other documentation sub-topics, such as `design',
+ `glyphs' and `tutorial'.
+
+ This patch fixes broken hyperlinks in the documentation pointing to
+ and from the API Reference. It also allows web assets to load from
+ their relative paths.
+
+ * builds/freetype.mk (DOC_DIR): Adjust.
+ (refdoc, refdoc-venv): Add `--site' argument.
+
+ * builds/toplevel.mk (do-dist): Updated.
+
+2019-12-21 Hugh McMaster <hugh.mcmaster@outlook.com>
+
+ [docs] (1/2) Move static web assets (#56745).
+
+ * docs/reference/*: Move ...
+ * docs: ... one directory up.
+
+2019-12-21 Dominik Röttsches <drott@chromium.org>
+
+ Fix more UBSan warnings on adding offset to nullptr (#57432).
+
+ * src/truetype/ttinterp.c (Ins_LOOPCALL), src/psaux/psft.c
+ (cf2_initLocalRegionBuffer): Use `FT_OFFSET'.
+
+2019-12-16 Werner Lemberg <wl@gnu.org>
+
+ [truetype] Fix UBSan warnings on adding offsets to nullptr.
+
+ Reported as
+
+ https://bugs.chromium.org/p/chromium/issues/detail?id=1032152
+
+ * src/truetype/ttinterp.c (Ins_FDEF, Ins_IDEF): Use `FT_OFFSET'.
+
+2019-12-14 Werner Lemberg <wl@gnu.org>
+
+ [truetype] Fix integer overflow.
+
+ Reported as
+
+ https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=19305
+
+ * src/truetype/ttinterp.c (Ins_MIRP): Use `ADD_LONG'.
+
+2019-12-13 Werner Lemberg <wl@gnu.org>
+
+ Another bunch of UBSan warnings on adding offsets to nullptr.
+
+ Reported as
+
+ https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=19427
+ https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=19433
+ https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=19441
+ https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=19451
+ https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=19452
+ https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=19457
+
+ * src/autofit/aflatin.c (af_latin_hints_compute_segments,
+ af_latin_hints_compute_edges): Use `FT_OFFSET'.
+
+ * src/base/ftstream.c (FT_Stream_EnterFrame): Use `FT_OFFSET'.
+
+ * src/psaux/cffdecode.c (cff_decoder_parse_charstrings): Exit early
+ if there is no charstring.
+
+ * src/psaux/psobjs.c (t1_decrypt): Use `FT_OFFSET'.
+
+ * src/smooth/ftsmooth.c (ft_smooth_render_generic): Exit early for
+ zero bitmap dimensions.
+
+2019-12-09 Dominik Röttsches <drott@chromium.org>
+
+ Fix more UBSan warnings on adding offset to nullptr (#57384).
+
+ * src/smooth/ftsmooth.c (ft_smooth_render_generic),
+ src/psaux/psobjs.c (ps_table_add): Use `FT_OFFSET'.
+
+2019-12-05 Werner Lemberg <wl@gnu.org>
+
+ * src/truetype/ttinterp.c (TT_RunIns): Use `FT_OFFSET'.
+
+ Reported as
+
+ https://bugs.chromium.org/p/chromium/issues/detail?id=1030614
+
+2019-12-03 Werner Lemberg <wl@gnu.org>
+
+ More nullptr offset UBSan warnings (#57331, #57347).
+
+ * src/autofit/afcjk.c (af_cjk_hints_compute_segments),
+ src/psaux/psft.c (cf2_getSeacComponent), src/truetype/ttinterp.c
+ (Ins_UNKNOWN): Use `FT_OFFSET'.
+
+2019-11-29 Dominik Röttsches <drott@chromium.org>
+
+ Avoid more nullptr offset UBSan warnings (#57316).
+
+ * src/base/ftoutln.c (FT_Outline_Transform): Bail on empty points.
+ * src/cff/cffload.c (cff_subfont_load): Use `FT_OFFSET'.
+ * src/psaux/psft.c (cf2_decoder_parse_substrings): Early out if
+ `charstring_base' or `charstring_len' are null.
+ * src/sfnt/ttload.c (tt_face_load_name): Use `FT_OFFSET'.
+
+2019-11-23 John Stracke <jstracke@Google.com>
+
+ [base] Really fix #57194.
+
+ Apply accidentally missed second part of patch.
+
+ * src/base/ftgloadr.c (FT_GlyphLoader_CheckPoints): Call
+ `FT_GlyphLoader_CreateExtra'.
+
+2019-11-23 Werner Lemberg <wl@gnu.org>
+
+ [truetype] Avoid sanitizer warning (#57289).
+
+ * src/truetype/ttpload.c (tt_face_get_device_metrics): Use
+ `FT_OFFSET'.
+
+2019-11-23 Armin Hasitzka <prince.cherusker@gmail.com>
+
+ [truetype] Fix integer overflow (#57287).
+
+ * src/truetype/ttgload.c (compute_glyph_metrics): Use `SUB_LONG'.
+
+2019-11-23 Ben Wagner <bungeman@google.com>
+
+ [sfnt] Avoid sanitizer warning (#57286).
+
+ * src/sfnt/ttcmap.c (tt_face_build_cmaps): Avoid possible `NULL +
+ offset' computation.
+ Tag `table' as `const'.
+
+2019-11-23 John Stracke <jstracke@Google.com>
+ Werner Lemberg <wl@gnu.org>
+
+ [base] Fix `NULL + offset' sanitizer warnings (#57194).
+
+ * src/base/ftgloadr.c (FT_GlyphLoader_Adjust_Points,
+ FT_GlyphLoader_Adjust_Subglyphs): Use `FT_OFFSET'.
+ (FT_GlyphLoader_CreateExtra): Add short cut if some values are zero.
+
+2019-11-23 Werner Lemberg <wl@gnu.org>
+
+ * include/freetype/internal/ftmemory.h (FT_OFFSET): New macro.
+
+ Use this for `base + offset' pointer calculations where `base' can
+ be NULL (triggering a sanitizer warning even if the resulting
+ pointer gets never dereferenced since it is undefined behaviour
+ in C).
+
+ Suggested by Ben Wagner.
+
+2019-11-23 Ben Wagner <bungeman@google.com>
+
+ [sfnt] Ensure OTTO fonts have tables (#57285).
+
+ * src/sfnt/ttload.c (tt_face_load_font_dir): Add test.
+
+2019-11-23 Behdad Esfahbod <behdad@behdad.org>
+
+ Minor fixes for recent compilers.
+
+ * src/gzip/infutil.h (inflate_mask): Add `const'.
+
+ * src/autofit/aflatin2.c: Include `ft2build.h'.
+
+2019-11-07 Nikolaus Waxweiler <madigens@gmail.com>
+
+ * CMakeLists.txt: Minor additions to the notes, compile
+ builds/unix/ftsystem.c instead of src/base/ftsystem.c on UNIX.
+
+ The latter change is based on the code proposed by rim in #55235.
+
+2019-10-25 Werner Lemberg <wl@gnu.org>
+
+ * src/sfnt/sfwoff2.c (woff2_open_font): Check `num_fonts' for TTCs.
+
+ Reported as
+
+ https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=18494
+
+2019-10-22 Werner Lemberg <wl@gnu.org>
+
+ * src/sfnt/sfwoff2.c (woff2_open_font): Avoid undefined shift.
+
+ Also improve tracing.
+
+ Reported as
+
+ https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=18390
+
+2019-10-10 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ * src/sfnt/pngshim.c (premultiply_data): Optimize for __SSE__ only.
+
+2019-10-10 Werner Lemberg <wl@gnu.org>
+
+ * src/sfnt/sfwoff2.c (reconstruct_glyf): Check `triplet_size'.
+
+ Reported as
+
+ https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=18108
+
+2019-10-09 John Tytgat <John.Tytgat@esko.com>
+
+ [cff] Fix FT_FACE_FLAG_GLYPH_NAMES for CFF2 based fonts (#57023).
+
+ * src/cff/cffobjs.c (cff_face_init): Don't set
+ FT_FACE_FLAG_GLYPH_NAMES for CFF2 based fonts.
+
+2019-10-08 Werner Lemberg <wl@gnu.org>
+
+ [woff2] Fix SFNT table checks.
+
+ Also reduce number of SFNT table lookups.
+
+ Reported as
+
+ https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=18065
+
+ * include/freetype/internal/wofftypes.h (WOFF2_InfoRec): Add fields
+ `glyf_table', `loca_table', and `head_table'.
+
+ * src/sfnt/sfwoff2.c (reconstruct_glyf): Update signature.
+ Use table pointers in `info' parameter.
+ (get_x_mins): Check `maxp_table'
+ Use table pointers in `info' parameter.
+ (reconstruct_font): Use and set table pointers in `info' parameter.
+ Fix check for `glyf' and `loca' tables.
+ Update call to `reconstruct_glyf'.
+ (woff2_open_font): Updated.
+
+2019-10-06 Werner Lemberg <wl@gnu.org>
+
+ * src/sfnt/sfwoff2.c (reconstruct_glyf): Fix reallocation.
+
+ Reported as
+
+ https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=18046
+
+2019-10-06 Werner Lemberg <wl@gnu.org>
+
+ Improve memory debugging.
+
+ * include/freetype/internal/ftmemory.h (FT_MEM_FREE): Use
+ `FT_DEBUG_INNER' to set source code file name and line.
+
+ * src/base/ftdbgmem.c (ft_mem_table_remove): Better formatting of
+ tracing message.
+
+2019-10-03 Werner Lemberg <wl@gnu.org>
+
+ * src/sfnt/sfwoff2 (reconstruct_font): Fix reallocation.
+
+ Reported as
+
+ https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=17966
+
+2019-10-01 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ * src/base/ftstroke.c (ft_stroker_inside): Speed up.
+
+2019-10-01 Werner Lemberg <wl@gnu.org>
+
+ * src/sfnt/sfwoff2 (woff2_open_font): Initialize `woff2.ttc_fonts'.
+
+ Reported as
+
+ https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=17804
+
+2019-09-30 Werner Lemberg <wl@gnu.org>
+
+ * src/sfnt/sfwoff2.c (reconstruct_font): Fix memory leak.
+
+ Reported as
+
+ https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=17812
+
+2019-09-30 Werner Lemberg <wl@gnu.org>
+
+ [woff2] Reject fonts without `head' table.
+
+ Also fix memory deallocation in case of error.
+
+ `head' problem reported as
+
+ https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=17820
+
+ * src/sfnt/sfwoff2.c (reconstruct_glyf): Don't use `stream_close'.
+ Abort if `head_table' is NULL.
+ Don't free `transformed_buf' in case of error.
+ (woff2_open_font): Don't set `uncompressed_buf' to NULL.
+
+2019-09-29 Werner Lemberg <wl@gnu.org>
+
+ [woff2] Fix compiler warnings.
+
+ Problem reported by Alexei.
+
+ * src/sfnt/sfwoff2.c (reconstruct_glyf): Initialize `x_min'.
+ (reconstruct_font): Initialize `num_hmetrics'.
+ (woff2_open_font): Initialize `info'.
+
+2019-09-28 Werner Lemberg <wl@gnu.org>
+
+ * src/sfnt/sfwoff2.c (woff2_open_font): Fix sanity check.
+
+ Correct thinkos in patch from 2019-09-01.
+
+2019-09-28 Werner Lemberg <wl@gnu.org>
+
+ [woff2] Fix memory leaks.
+
+ One of them reported as
+
+ https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=17766
+
+ * src/sfnt/sfwoff2.c (woff2_open_font): Free `info->x_mins' and
+ `woff2->ttc_fonts'.
+
+ (reconstruct_glyf): Initialize `info->x_mins'.
+
+2019-09-27 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ * src/base/ftstroke.c (ft_stroker_cap): Speed up caps.
+
+2019-09-25 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ * src/base/ftstroke.c (ft_stroker_outside): Speed up clipped miter.
+ * include/freetype/ftstroke.h: Wordsmith miter docs.
+
+2019-09-25 Werner Lemberg <wl@gnu.org>
+
+ * src/sfnt/sfwoff2.c (woff2_open_font): Check (sum of) table sizes.
+
+ Reported as
+
+ https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=17684
+
+2019-09-23 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ * src/base/ftstroke.c (ft_stroke_border_arcto): Speed up calculations.
+
+2019-09-20 Nikhil Ramakrishnan <ramakrishnan.nikhil@gmail.com>
+
+ [woff2] Fix memory leaks.
+
+ Reported as
+
+ https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=16896
+
+ * src/sfnt/sfwoff2.c (woff2_open_font): Fix error handling.
+ Free `uncompressed_buf'.
+ (reconstruct_font): Free `transformed_buf'.
+
+2019-09-17 Werner Lemberg <wl@gnu.org>
+
+ * src/otvalid/otvcommon.c (otv_Coverage_get_last): Guard `count'.
+
+ Problem reported by Marc Schönefeld <marc.schoenefeld@gmx.org>.
+
+2019-09-17 Werner Lemberg <wl@gnu.org>
+
+ * src/sfnt/sfwoff2.c (woff2_open_font): Check table index.
+
+ Reported as
+
+ https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=17100
+
+2019-09-15 Avi Halachmi (:avih) <avihpit@yahoo.com>
+
+ [cmake] Don't fail if brotli is missing (#56894).
+
+ The libs which cmake controls are commented out at
+
+ include/freetype/config/ftoption.h
+
+ and cmake un-comment each enabled library, but the brotli option was
+ not commented out, therefore `FT_CONFIG_OPTION_USE_BROTLI' remained
+ defined even if brotli was missing/disabled/etc.
+
+ Comment it such that cmake can control it, which means leaving it
+ undefined if brotli is missing.
+
+ * include/freetype/config/ftoption.h: Fix typo.
+
+2019-09-05 Werner Lemberg <wl@gnu.org>
+
+ [cmake] Add brotli support.
+
+ * CMakeLists.txt (FT_WITH_BROTLI): New option.
+
+ * builds/cmake/FindBrotliDec.cmake: New file.
+
+2019-09-05 Werner Lemberg <wl@gnu.org>
+
+ Fix handling of `AF_CONFIG_OPTION_INDIC'.
+
+ * devel/ftoption.h, include/freetype/config/ftoption.h:
+ `AF_CONFIG_OPTION_INDIC' needs `AF_CONFIG_OPTION_CJK'.
+
+2019-09-05 Werner Lemberg <wl@gnu.org>
+
+ CMakeLists.txt: Fix generation of DLL related stuff (#56852).
+
+ Extract `version_info' variable from `builds/unix/configure.raw' and
+ use the data to correctly set `LIBRARY_VERSION' and
+ `LIBRARY_SOVERSION'.
+
+ Also use the data to set `ft_version' field in `freetype2.pc'.
+ Also fix the needed minimum version of HarfBuzz in `freetype2.pc'.
+
+2019-09-03 Werner Lemberg <wl@gnu.org>
+
+ * src/sfnt/sfwoff2.c (compute_ULong_sum): Fix undefined shift.
+
+ Reported as
+
+ https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=16933
+
+2019-09-01 Werner Lemberg <wl@gnu.org>
+
+ * src/sfnt/sfwoff2.c (woff2_open_font): Add sanity check.
+
+ Don't trust `totalSfntSize' unconditionally.
+
+ Reported as
+
+ https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=16893
+
+2019-08-27 Dominik Röttsches <drott@chromium.org>
+
+ [woff2] Don't use `FT_UInt64' (#56815).
+
+ * src/sfnt/sfwoff2.c (woff2_open_font): Use `FT_UInt32' for
+ `file_offset'. This fixes builds on platforms where `FT_LONG64' is
+ not defined while still being sufficient to store a file offset.
+
+2019-08-27 Werner Lemberg <wl@gnu.org>
+
+ [truetype] Prevent crash in `TT_Set_Named_Instance' (#56813).
+
+ * src/truetype/ttgxvar.c (TT_Set_Named_Instance): Fix error
+ handling.
+
+2019-08-27 Werner Lemberg <wl@gnu.org>
+
+ [woff2] Fix compiler warnings.
+
+ * src/sfnt/sfwoff2.c (read_num_hmetrics): Remove unused argument
+ `table_len'.
+ Update caller.
+ (triplet_decode, compute_bbox, store_loca, reconstruct_glyf): Make
+ `i' variable unsigned.
+ (reconstruct_glyph): Remove condition which is always false.
+ (reconstruct_html): Removed unused argument `transformed_size'.
+ Update caller.
+
+ * src/sfnt/woff2tags.c (woff2_known_tags): Remove condition which is
+ always false.
+
+2019-08-27 Nikhil Ramakrishnan <ramakrishnan.nikhil@gmail.com>
+
+ [woff2] Check whether known tag is in array bounds.
+
+ If table tag is not 0x3f, we expect a value between 0 and 62. If
+ this is not the case, exit with errors.
+
+ * src/sfnt/sfwoff2/c: Check whether table tag makes sense.
+
+ * src/sfnt/woff2tags.c: Return 0 if tag is out of bounds.
+
+2019-08-27 Nikhil Ramakrishnan <ramakrishnan.nikhil@gmail.com>
+
+ * src/sfnt/sfwoff2.c: Improve trace comments.
+
+ Adjust tracing levels for comments, and more formatting.
+
+2019-08-27 Nikhil Ramakrishnan <ramakrishnan.nikhil@gmail.com>
+
+ [woff2] Support `hmtx' reconstruction when `glyf' is untransformed.
+
+ `reconstruct_hmtx' requires `info->x_mins' and `info->num_glyphs' to
+ reconstruct the hmtx table. In case glyf is not transformed, we
+ call `get_x_mins' which does the necessary work.
+
+ * src/sfnt/sfwoff2.c (get_x_mins): New function.
+ (reconstruct_font): Call get_x_mins.
+
+2019-08-27 Nikhil Ramakrishnan <ramakrishnan.nikhil@gmail.com>
+
+ [sfnt] Support `face->num_faces' for WOFF2 fonts.
+
+ Set correct value of `face->num_faces' for WOFF2 fonts. This is
+ being handled separately because we only load the tables for the
+ requested font face in `woff2_open_font' and create a single-face
+ sfnt stream.
+
+ The full discussion is at:
+
+ https://lists.gnu.org/archive/html/freetype-devel/2019-08/msg00000.html
+
+ * src/sfnt/sfobjs.c (sfnt_open_font): Add parameter
+ `woff2_num_faces'.
+ (sfnt_init_face): Introduce variable `woff2_num_faces', and change
+ `face->root.num_faces' if `woff2_num_faces' is set.
+
+ * src/sfnt/sfwoff2.c (woff2_open_font): Validate requested face
+ index and handle negative face indices.
+
+ * src/sfnt/sfwoff2.h (woff2_open_font): Add parameter `num_faces' to
+ declaration.
+
+2019-08-27 Nikhil Ramakrishnan <ramakrishnan.nikhil@gmail.com>
+
+ [woff2] Improve memory and error handling.
+
+ Free up memory after use, and improve error handling.
+
+ * src/sfnt/sfwoff2.c (reconstruct_font, woff2_open_font): Implement
+ changes.
+
+2019-08-27 Nikhil Ramakrishnan <ramakrishnan.nikhil@gmail.com>
+
+ [woff2] Avoid too many calls to `FT_REALLOC'.
+
+ We do this by using `totalSfntSize' as an initial reference, and
+ extending the buffer when required. This reduces rendering time
+ considerably.
+
+ * include/freetype/internal/wofftypes.h (WOFF2_HeaderRec): Add
+ `totalSfntSize', rename `total_sfnt_size' to `actual_sfnt_size'.
+
+ * src/sfnt/sfwoff2.c (write_buf): Add parameter `dst_size' to keep
+ track of and update total size of stream.
+
+ (WRITE_SFNT_BUF, WRITE_SFNT_BUF_AT): Modify macros accordingly.
+
+ (pad4, store_loca, reconstruct_glyf, reconstruct_hmtx,
+ reconstruct_font): Update parameters to accept `sfnt_size'.
+
+ (woff2_open_font): Add variable `sfnt_size'. Use WOFF2 header field
+ `totalSfntSize' as initial reference (if value makes sense) and
+ allocate `totalSfntSize' bytes for the sfnt stream. `write_buf'
+ handles reallocation if and when required. Also resize the stream
+ to `actual_sfnt_size' after reconstruction.
+
+2019-08-27 Nikhil Ramakrishnan <ramakrishnan.nikhil@gmail.com>
+
+ [woff2] Reconstruct `loca', `hmtx', and swap out stream.
+
+ Add necessary functions to reconstruct loca and hmtx tables (the two
+ remaining tables that can have a transform). `woff2_open_font' is
+ now capable of loading a woff2 font face. This code may still need
+ more refining and better memory management.
+
+ * include/freetype/internal/wofftypes.h (WOFF2_HeaderRec): Add total
+ (final) size of sfnt stream.
+
+ (WOFF2_InfoRec): Add header checksum value.
+
+ * src/sfnt/sfobjs.c (sfnt_open_font): Change `face_instance_index'
+ parameter to its pointer so its value can be modified by
+ `woff2_open_font'.
+
+ * src/sfnt/sfwoff2.c: (WRITE_SFNT_BUF_AT): New macro to write into
+ sfnt buffer at given position.
+
+ (write_buf): Add parameter `extend_buf' which allows caller to
+ specify whether buffer should be reallocated before copying data.
+
+ (WRITE_SFNT_BUF): Updated.
+
+ (pad4, store_loca, reconstruct_htmx): New functions.
+
+ (reconstruct_glyf): Calculate loca values and store them.
+
+ (reconstruct_font): Call `reconstruct_hmtx', write table record
+ entries, and calculate table checksums. Also calculate font
+ checksum and update `checksumAdjustment' entry in head table.
+
+ (woff2_open_font): Open stream for sfnt buffer, swap out input
+ stream and return.
+
+ * src/sfnt/sfwoff2.h (woff2_open_font): Modify parameter to accept
+ pointer to `face_index'.
+
+2019-08-27 Nikhil Ramakrishnan <ramakrishnan.nikhil@gmail.com>
+
+ [woff2] Reconstruct transformed `glyf' table.
+
+ Reconstruct `glyf' table if it is transformed in the uncompressed
+ table stream. Also add necessary structures, macros and functions.
+
+ * include/freetype/internal/wofftypes.h (WOFF2_InfoRec,
+ WOFF2_SubstreamRec, WOFF2_PointRec): New structures.
+ (WOFF2_TableRec): s/OrigLength/dst_length/.
+
+ * src/sfnt/sfwoff2.c (READ_255USHORT, READ_BASE128): Use
+ `FT_SET_ERROR' to set implicit `error' variable.
+
+ (WRITE_SHORT): New macro.
+
+ (N_CONTOUR_STREAM, N_POINTS_STREAM, FLAG_STREAM, GLYPH_STREAM,
+ COMPOSITE_STREAM, BBOX_STREAM, INSTRUCTION_STREAM): New macros to
+ refer to substreams of the transformed `glyf' tables.
+
+ (Read255UShort, ReadBase128): Return errors set by `FT_READ_XXX'
+ macros.
+
+ (with_sign, safe_int_addition): New functions to add sign to values
+ based on a flag and perform safe addition respectively.
+
+ (triplet_decode): Decode variable-length (flag, xCoordinate,
+ yCoordinate) triplet for a simple glyph. See
+
+ https://www.w3.org/TR/WOFF2/#triplet_decoding
+
+ (store_points, compute_bbox, composteGlyph_size, reconstruct_glyf):
+ New functions.
+
+ (reconstruct_font): Call `reconstruct_glyf'.
+
+ * src/sfnt/sfwoff2.h: Add required constants.
+
+ * src/sfnt/woff2tags.h: Move out constants to `sfwoff2.h'.
+
+2019-08-27 Nikhil Ramakrishnan <ramakrishnan.nikhil@gmail.com>
+
+ [woff2] Copy un-transformed tables to sfnt stream.
+
+ Copy un-transformed tables to the sfnt stream.
+
+ * src/sfnt/sfwoff2.c: (WRITE_SFNT_BUF): New macro.
+ (write_buf): New function. Extend memory of `dst' buffer and copy
+ bytes from `src'.
+ (compute_ULong_sum): New function. Calculate checksum of table.
+ (reconstruct_font): Change `FT_Byte* sfnt' to `FT_Byte**
+ sfnt_bytes'. This has been done because we reallocate memory to
+ `sfnt' multiple times, which may change the pointer value of `sfnt'.
+ This new pointer must be propogated back to the caller. Same reason
+ for using a double pointer in `write_buf'.
+
+ * src/sfnt/woff2tags.h (WOFF2_DEFAULT_MAX_SIZE): New macro used for
+ overflow checking.
+
+2019-08-27 Nikhil Ramakrishnan <ramakrishnan.nikhil@gmail.com>
+
+ [woff2] Create stream for uncompressed buffer.
+
+ Uncompressed buffer is now an `FT_Stream'.
+
+ Perform basic checks and start iterating over tables.
+
+ * src/sfnt/sfwoff2.c (stream_close, find_table, read_num_hmetrics):
+ New functions.
+ (reconstruct_font): Modify parameters and iterate over tables.
+ (woff2_open_font): Updated.
+
+2019-08-27 Nikhil Ramakrishnan <ramakrishnan.nikhil@gmail.com>
+
+ [woff2] Handle TTCs and start reconstructing font.
+
+ We `handle' TTCs by modifying the `indices' array to point to only
+ those tables that are part of the requested `face_index'.
+
+ Set and use `num_tables' in `WOFF2_TtcFont'.
+
+ * src/sfnt/sfwoff2.c (reconstruct_font): New function.
+ (woff2_open_font): Start reconstruction of font.
+
+2019-08-27 Nikhil Ramakrishnan <ramakrishnan.nikhil@gmail.com>
+
+ [woff2] Get known tags from function.
+
+ Change `KnownTags' to a function (`woff2_known_tags'). This avoids
+ introducing a global constant array. This function returns the
+ specified index without *any* checks. The caller must ensure that
+ `index' is within array limits.
+
+ * src/sfnt/sfwoff2.c (woff2_open_font): Change `KnownTags[...]'
+ notation to `woff2_known_tags( ... )'.
+
+ * src/sfnt/woff2tags.c: Perform changes.
+
+ * src/sfnt/woff2tags.h: Update definitions.
+
+2019-08-27 Nikhil Ramakrishnan <ramakrishnan.nikhil@gmail.com>
+
+ [woff2] Minor.
+
+ * src/sfnt/sfwoff2.c (woff2_uncompress): Add error message
+ (woff2_open_font): Free `uncompressed_buf'.
+
+2019-08-27 Nikhil Ramakrishnan <ramakrishnan.nikhil@gmail.com>
+
+ [woff2] Uncompress Brotli streams and `face_index' support.
+
+ WOFF2 compressed stream is now uncompressed if Brotli is available.
+ This data is stored in a separate buffer (uncompressed_buf) because
+ it does not contain direct table data. Certain tables have
+ transformations applied to them, and they must be reconstructed
+ before we can write those tables to the SFNT stream.
+
+ `face_index' is now being passed as a parameter to
+ `woff2_open_font'.
+
+ * src/sfnt/sfobjs.c (sfnt_open_font): Add parameter
+ `face_instance_index'.
+
+ * src/sfnt/sfwoff2.c (woff2_uncompress): New function.
+ (woff2_open_font): Call `woff2_uncompress'.
+ (compute_first_table_offset): Fix return type.
+
+ * src/sfnt/sfwoff2.h (woff2_open_font): Modify declaration.
+
+2019-08-27 Nikhil Ramakrishnan <ramakrishnan.nikhil@gmail.com>
+
+ * builds/unix/configure.raw: Change argument name to `brotli'.
+
+2019-08-27 Nikhil Ramakrishnan <ramakrishnan.nikhil@gmail.com>
+
+ Add Brotli dependency and required checks.
+
+ Brotli is required for decompressing WOFF2 font directory streams.
+ The library is thus being added as an optional dependency for
+ FreeType.
+
+ * builds/unix/configure.raw: Add checks for `libbrotlidec'.
+ (REQUIRES_PRIVATE, LIBS_PRIVATE, LIBSSTATIC_CONFIG): Updated.
+
+ * devel/ftoption.h, include/freetype/config/ftoption.h
+ (FT_CONFIG_OPTION_USE_BROTLI): New macro.
+
+2019-08-27 Nikhil Ramakrishnan <ramakrishnan.nikhil@gmail.com>
+
+ [woff2] Write SFNT Offset table.
+
+ * src/sfnt/sfwoff2.c (WRITE_USHORT, WRITE_ULONG): New macros.
+ (compare_tags): New function.
+ (woff2_open_font): Implement it.
+
+2019-08-27 Nikhil Ramakrishnan <ramakrishnan.nikhil@gmail.com>
+
+ * src/sfnt/sfwoff2.c: #undef macros.
+
+2019-08-27 Nikhil Ramakrishnan <ramakrishnan.nikhil@gmail.com>
+
+ [woff2] Read table and collection directory.
+
+ * include/freetype/internal/wofftypes.h (WOFF2_TtcFontRec): New
+ structure.
+ (WOFF2_HeaderRec): Add more fields.
+
+ * src/sfnt/sfwoff2.c (READ_255USHORT, READ_BASE128, ROUND4): New
+ macros.
+ (Read255UShort, CollectionHeaderSize, compute_first_table_offset):
+ New functions.
+ (ReadBase128): Use `FT_READ_BYTE'.
+ (woff2_open_font): Add functionality to read table directory and
+ collection directory (if present).
+
+2019-08-27 Nikhil Ramakrishnan <ramakrishnan.nikhil@gmail.com>
+
+ [sfnt] Include `woff2tags.c' for building.
+
+ * src/sfnt/rules.mk (SFNT_DRV_SRC): Add `woff2tags.c'.
+
+ * src/sfnt/sfnt.c: Include `woff2tags.c'.
+
+2019-08-27 Nikhil Ramakrishnan <ramakrishnan.nikhil@gmail.com>
+
+ [sfnt] Add WOFF2 constants.
+
+ Add constants required for WOFF2, and known table tags as defined in
+ the specification. See
+
+ https://www.w3.org/TR/WOFF2/#table_dir_format
+
+ for details.
+
+ * src/sfnt/woff2tags.c, src/sfnt/woff2tags.h: New files.
+
+2019-08-27 Nikhil Ramakrishnan <ramakrishnan.nikhil@gmail.com>
+
+ [sfnt] Read WOFF 2 header.
+
+ Check for WOFF2 tag, call `woff2_open_font', and implement it to read
+ header according to specification.
+
+ * include/freetype/internal/fttrace.h: Add `sfwoff2.c'.
+
+ * src/sfnt/rules.mk (SFNT_DRV_SRC): Add `sfwoff2.c'.
+
+ * src/sfnt/sfnt.c: Include `sfwoff2.c'.
+
+ * src/sfnt/sfobjs.c (sfnt_open_font): Check for `wOF2' tag and call
+ `woff2_open_font'.
+
+ * src/sfnt/sfwoff2.c, src/sfnt/sfwoff2.h: New files.
+
+2019-08-27 Nikhil Ramakrishnan <ramakrishnan.nikhil@gmail.com>
+
+ Add structures for WOFF2.
+
+ Add structures and macro for WOFF 2 header and table directory.
+
+ * include/freetype/internal/wofftypes.h (WOFF2_HeaderRec,
+ WOFF2_TableRec_): New structures.
+
+ * include/freetype/tttags.h (TTAG_wOF2): New macro.
+
+2019-08-26 Werner Lemberg <wl@gnu.org>
+
+ * src/psaux/cffdecode.c (cff_operator_seac): Fix numeric overflow.
+
+ Reported as
+
+ https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=16470
+
+2019-08-26 Werner Lemberg <wl@gnu.org>
+
+ [type1] Fix `FT_Get_Var_Axis_Flags' (#56804).
+
+ * src/type1/t1load.c (T1_Get_MM_Var): Allocate space for axis flags.
+ Also remove redundant assignment.
+
+2019-07-24 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ * src/base/ftbbox.c (cubic_peak): Sanitize left shift (#56586).
+
+2019-07-22 Weiyi Wu <w1w2y3@gmail.com>
+
+ * src/cid/cidload.c (cid_hex_to_binary): Fix typo (#56653).
+
+2019-07-12 Werner Lemberg <wl@gnu.org>
+
+ [sfnt, winfonts] Avoid memory leaks in case of error (#56587).
+
+ * src/sfnt/sfwoff.c (woff_open_font): Call `FT_FRAME_EXIT' in case
+ of error.
+
+ * src/winfonts/winfnt.c (fnt_face_get_dll_font): Ditto.
+
+2019-07-12 Ben Wagner <bungeman@google.com>
+
+ Properly handle phantom points for variation fonts (#56601).
+
+ * src/truetype/ttgload.c (TT_Process_Simple_Glyph): Scale phantom
+ points if HVAR and/or VVAR is present.
+
+2019-07-04 Werner Lemberg <wl@gnu.org>
+
+ [psaux] (2/2) Handle fonts that use SEAC for ligatures (#56580).
+
+ The same as previous commit but for the old engine.
+
+ * src/psaux/t1decode.c (t1operator_seac): Implement it.
+
+2019-07-04 Chris Liddell <chris.liddell@artifex.com>
+
+ [psaux] (1/2) Handle fonts that use SEAC for ligatures (#56580).
+
+ As originally intended, a Type 1 SEAC charstring would be used for
+ an accented glyph (like `acaron' or `uumlaut'), where the advance
+ width of the SEAC glyph is the same as that of the `base' glyph
+ (like `a' or `u'). In this case it is not uncommon for the SEAC
+ glyph to not use an (H)SBW opcode of its own but to rely on the
+ value from the base glyph.
+
+ However, out-of-spec fonts also use SEAC glyphs for ligatures (like
+ `oe' or `fi'), and in those cases the overall advance width is
+ greater than that of the `base' glyph. For this reason we have to
+ allow that the SEAC glyph can have an (H)SBW value of its own, and
+ if it has, retain this value, rather than the one from the base
+ glyph.
+
+ * src/psaux/psintrp.c (cf2_interpT2CharString) <cf2_escSEAC>:
+ Implement it.
+
+2019-07-01 Werner Lemberg <wl@gnu.org>
+
+ * Version 2.10.1 released.
+ ==========================
+
+
+ Tag sources with `VER-2-10-1'.
+
+ * docs/VERSION.TXT: Add entry for version 2.10.1.
+
+ * README, Jamfile (RefDoc), src/base/ftver.rc,
+ builds/windows/vc2010/freetype.vcxproj,
+ builds/windows/vc2010/index.html,
+ builds/windows/visualc/freetype.dsp,
+ builds/windows/visualc/freetype.vcproj,
+ builds/windows/visualc/index.html,
+ builds/windows/visualce/freetype.dsp,
+ builds/windows/visualce/freetype.vcproj,
+ builds/windows/visualce/index.html,
+ builds/wince/vc2005-ce/freetype.vcproj,
+ builds/wince/vc2005-ce/index.html,
+ builds/wince/vc2008-ce/freetype.vcproj,
+ builds/wince/vc2008-ce/index.html: s/2.10.0/2.10.1/, s/2100/2101/.
+
+ * include/freetype/freetype.h (FREETYPE_PATCH): Set to 1.
+
+ * builds/unix/configure.raw (version_info): Set to 23:1:17.
+ * CMakeLists.txt (VERSION_PATCH): Set to 1.
+
+ * include/freetype/fterrors.h (FT_Error_String): Fix C++ compilation.
+
+2019-06-26 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ * src/bdf/bdfdrivr.c (bdf_cmap_char_{index,next}): Fix inequality.
+
+ Reported by Armin Hasitzka.
+
+2019-06-16 Werner Lemberg <wl@gnu.org>
+
+ * src/tools/apinames.c: Formatting, minor edits.
+
+2019-06-16 Werner Lemberg <wl@gnu.org>
+
+ [autofit] Disable hinting if no blue zones are available (#56450).
+
+ * src/autofit/afglobal.c (af_face_global_get_metrics): Start again
+ (with dummy hinter module) if no blue zones are present.
+
+ * src/autofit/aflatin.c (af_latin_metrics_init_blues): Change
+ signature to return error code.
+ If no blue zones are found, update `glyph_styles' array to hold
+ AF_STYLE_NONE_DFLT instead of the current style.
+ (af_latin_metrics_init): Return internal error code if no blue zones
+ are found.
+
+2019-06-16 Werner Lemberg <wl@gnu.org>
+
+ Towards better VMS support.
+
+ More to come.
+
+ * builds/vms/LIBS.OPT_IA64, builds/vms/_LINK.OPT_IA64,
+ builds/vms/vmslib.dat: New files provided by Jouk Jansen
+ <joukj@hrem.nano.tudelft.nl>.
+
+ * builds/vms/ftconfig.h: Update, also from Jouk.
+
+2019-06-13 Werner Lemberg <wl@gnu.org>
+
+ * src/autofit/aflatin.c (af_latin_metrics_init_widths): Minor.
+
+2019-06-13 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ [smooth] Restore the span buffering for direct mode only.
+
+ The buffer size FT_MAX_GRAY_SPANS is set to 10 spans, which should be
+ enough to cover the entire scanline for simple glyphs in most cases:
+ each slightly slanted edge needs up to two spans, plus a filling span
+ in-between. This is not new, we used to do it before cb4388783cecc.
+
+ * src/smooth/ftgrays.c (gray_TWorker): Add `spans' and `num_spans'.
+ (gray_hline, gray_sweep): Implement the span buffering.
+ (gray_raster_render): Use negative `num_spans' to avoid the direct
+ mode.
+
+2019-06-12 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ * include/freetype/ftmodapi.h (FT_DebugHook_Func): Return error.
+
+ Fix a warning by adding a return value as in `TT_RunIns',
+ which should not be a compatibility issue.
+
+2019-06-11 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ * src/truetype/ttobjs.c (tt_check_trickyness_family): Add `const'.
+
+2019-06-11 Moazin Khatti <moazinkhatri@gmail.com>
+
+ [gzip] Add support for `gzip' encoded header.
+
+ * src/gzip/ftgzip.c (FT_Gzip_Uncompress): Modify the the call to
+ `inflateInit2' to enable support for `gzip' encoded headers.
+
+2019-06-10 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ [type1,type42] Use `const' for string literals.
+
+ * include/freetype/internal/psaux.h (PS_Table_FuncsRec): Updated.
+ * include/freetype/internal/t1types.h (T1_EncodingRec): Updated.
+ * src/psaux/psobjs.[ch] (ps_table_add): Updated.
+ * src/type1/t1load.c (T1_Open_Face, parse_encoding): Updated.
+ * src/type42/t42objs.c (T42_Open_Face): Updated.
+ * src/type42/t42parse.c (t42_parse_encoding): Updated.
+
+ * src/cff/cffobjs.c (cff_face_init): Minor.
+
+2019-06-10 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ [bdf,pcf] Use `const' for string literals.
+
+ * src/bdf/bdf.h (bdf_property_t): Updated `name'.
+ * src/bdf/bdflib.c (_bdf_list_split,bdf_create_property,
+ _bdf_add_property,_bdf_ato*): Updated.
+ * src/bdf/bdfdrivr.c (bdf_interpret_style): Updated.
+ * src/pcf/pcfread.c (pcf_intrpret_style): Ditto.
+
+2019-06-07 Philip Race <philip.race@oracle.com>
+
+ * src/base/ftinit.c (FT_Set_Default_Properties): Fix crash.
+
+ Terminate loop at end of environment.
+
+2019-05-31 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ Solidify VC2005 builds.
+
+ * include/freetype/internal/ftcalc.h (FT_MSB) [_MSC_VER]: Explicitly
+ declare `_BitScanReverse' intrinsic.
+ * builds/windows/visualc/freetype.vcproj [Debug]: Disable intrinsics.
+
+2019-05-30 Nikhil Ramakrishnan <ramakrishnan.nikhil@gmail.com>
+
+ [sfnt] Separate WOFF sources and headers.
+
+ Move WOFF sources and headers to separate files.
+
+ * include/freetype/internal/wofftypes.h, src/sfnt/sfwoff.c,
+ src/sfnt/sfwoff.h: New files.
+
+ * include/freetype/internal/fttrace.h: Register `sfwoff.c'.
+
+ * include/freetype/internal/internal.h: Define
+ FT_INTERNAL_WOFF_TYPES_H.
+
+ * include/freetype/internal/sfnt.h: Include FT_INTERNAL_WOFF_TYPES_H.
+
+ * include/freetype/internal/tttypes.h: Move out WOFF structures.
+
+ * src/sfnt/rules.mk: Add `sfwoff.c'.
+
+ * src/sfnt/sfnt.c: Include `sfwoff.c'.
+
+ * src/sfnt/sfobjs.c: Include `sfwoff.h', move out WOFF sources.
+
+2019-05-30 Werner Lemberg <wl@gnu.org>
+
+ [base] Fix `make multi'.
+
+ Reported by Nikhil.
+
+ * src/base/fterrors.c: Include FT_INTERNAL_DEBUG_H.
+
+2019-05-29 Ben Wagner <bungeman@google.com>
+
+ [truetype] Fix copy-and-paste error (#56409).
+
+ * src/truetype/ttgload.c (load_truetype_glyph): Use correct indices
+ into `unrounded' array for phantom points.
+
+2019-05-29 Werner Lemberg <wl@gnu.org>
+
+ [truetype] Fix 32bit builds (#56404).
+
+ Patch suggested by Ben Wagner <bungeman@google.com>.
+
+ * src/truetype/ttgxvar.c (FT_fixedToInt, FT_fixedToFdot6): Remove
+ harmful cast to unsigned type.
+
+2019-05-26 Ben Wagner <bungeman@google.com>
+
+ * src/truetype/ttgload.c (TT_Process_Simple_Glyph): Improve accuracy.
+
+2019-05-23 Werner Lemberg <wl@gnu.org>
+
+ [truetype] Draw glyphs without deltas in variation font (#56374).
+
+ * src/truetype/ttgxvar.c (TT_Vary_Apply_Glyph_Deltas): Always fill
+ `unrounded' array.
+
+2019-05-21 Werner Lemberg <wl@gnu.org>
+
+ * src/truetype/ttinterp.c (opcode_name): Improve mnemonics.
+
+2019-05-16 Werner Lemberg <wl@gnu.org>
+
+ [truetype] Actually scale varied CVT values.
+
+ Up to now, only the unscaled CVT values were varied; in other words,
+ the `CVAR' data was never used for bytecode hinting.
+
+ * src/truetype/ttgxvar.c (tt_cvt_ready_iterator): New auxiliary
+ function.
+ (tt_face_vary_cvt): Use it to trigger rescaling of CVT values.
+
+2019-05-16 Werner Lemberg <wl@gnu.org>
+
+ [truetype] Use 26.6 format for storing unscaled CVT values.
+
+ If `CVAR' data is applied to variation fonts, fractional values are
+ possible.
+
+ * include/freetype/internal/tttypes.h (TT_FaceRec): Change type of
+ `cvt' from `FT_Short' to `FT_Int32'.
+
+ * src/truetype/ttgxvar.c (FT_fdot6ToFixed): New macro.
+ (tt_face_vary_cvt): Use it to update code to 26.6 format.
+
+ * src/truetype/ttobjs.c (tt_size_run_prep): Update code to 26.6
+ format.
+
+ * src/truetype/ttpload.c (tt_face_load_cvt): Stora data in 26.6
+ format.
+
+2019-05-16 Werner Lemberg <wl@gnu.org>
+
+ * src/truetype/ttgload.c (load_truetype_glyph): Init `unrounded'.
+
+ This fixes linear advance width values for spacing glyphs. Bug
+ introduced 2019-05-09.
+
+2019-05-16 Werner Lemberg <wl@gnu.org>
+
+ [truetype] Avoid code duplication.
+
+ * src/truetype/ttobjs.c (tt_size_run_prep): Scale CVT values in this
+ function.
+ (tt_size_ready_bytecode): Updated.
+ * src/truetype/ttgload.c (tt_loader_init): Updated.
+
+2019-05-13 Jouk Jansen <joukj@hrem.nano.tudelft.nl>
+
+ * vms_make.com: Updated. Handle `bzip2' directory, too.
+
+2019-05-13 Werner Lemberg <wl@gnu.org>
+
+ * src/psaux/psfont.c (cf2_font_setup): Fix compiler warning.
+
+2019-05-12 Werner Lemberg <wl@gnu.org>
+
+ [truetype] Doh. Fix last commit to make it work.
+
+ Very embarassing :-)
+
+ Reported as
+
+ https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=14701
+ https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=14705
+ https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=14710
+
+ * src/truetype/ttgload.c (IS_DEFAULT_INSTANCE): Move up and add
+ argument; update all callers.
+ (TT_Process_Simple_Glyph): Use it. The `unrounded' array is active
+ for variation fonts only, thus also enclose related code with
+ `#ifdef TT_CONFIG_OPTION_GX_VAR_SUPPORT ... #endif' where
+ necessary.
+ Revert commit a113e5d from 2019-05-09, and don't use `extra_points2'
+ but allocate a temporary array.
+ Speed up the scaling of the `unrounded' array.
+
+ * src/truetype/ttgxvar.c (FT_fixedToInt, FT_FixedToFdot6): Fix type
+ conversions and rounding. The unsigned type must have more or equal
+ bits to the signed type.
+
+2019-05-09 Werner Lemberg <wl@gnu.org>
+
+ [truetype] Increase precision of font variation (#54371).
+
+ This patch makes FreeType use font units in 26.6 format internally
+ instead of integers.
+
+ * src/truetype/ttgxvar.c (FT_fixedToFdot6): New macro.
+ (TT_Vary_Apply_Glyph_Deltas): Add argument to output unrounded font
+ coordinates.
+ * src/truetype/ttgxvar.h: Updated.
+
+ * src/truetype/ttgload.c (TT_Process_Simple_Glyph): Use
+ `extra_points2' array to temporarily hold unrounded point
+ coordinates; use them to compute scaled coordinates and linear
+ advance width and height.
+ (load_truetype_code): Adjust similarly.
+
+2019-05-09 Werner Lemberg <wl@gnu.org>
+
+ * src/truetype/ttgload.c (TT_Process_Simple_Glyph): Minor.
+
+2019-05-08 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ [smooth] Faster fractions.
+
+ * src/smooth/ftgrays.c (SUBPIXELS): Replace with...
+ (FRACT): A fractional coordinate macro to use in...
+ (gray_render_line, gray_render_scanline): ... here.
+
+2019-05-07 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ * src/raster/ftraster.c (Draw_Sweep): Unbreak.
+
+2019-05-05 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ * src/raster/ftraster.c: Clean-ups.
+
+2019-05-05 Werner Lemberg <wl@gnu.org>
+
+ * src/truetype/ttgxvar.c: More use of `FT_fdot14ToFixed'.
+
+2019-05-04 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ * src/smooth/ftgrays.c (gray_render_line): Small shortcut.
+
+2019-05-04 Werner Lemberg <wl@gnu.org>
+
+ Various clang 8.0 static analyzer fixes.
+
+ Reported by Sender Ghost <lightside@gmx.com>.
+
+ * src/autofit/afcjk.c (af_cjk_hints_compute_edges): Catch a corner
+ case where `edge->first' could be NULL.
+
+ * src/pfr/pfrobjs.c (pfr_slot_load): Remove unnecessary test of
+ `size'.
+
+ * src/raster/ftraster.c (Draw_Sweep): Catch a corner case where
+ `draw_right' might be NULL.
+
+ * src/sfnt/ttmtx.c (tt_face_get_metrics): Fix limit test for
+ `aadvance'.
+ Ensure `abearing' always hold a meaningful result.
+
+ * src/truetype/ttgload.c (load_truetype_glyph): Ensure `subglyph' is
+ not NULL before accessing it.
+ * src/truetype/ttgxvar.c (TT_Set_Named_Instance): Remove unnecessary
+ test of `namedstyle'.
+
+ * src/type42/t42parse.c (t42_parser_done): Ensure
+ `parser->root.funcs.done' is not NULL before accessing it.
+
+2019-05-03 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ Miscellaneous macro updates.
+
+ * src/base/ftoutln.c (SCALED): Updated.
+ * src/smooth/ftgrays.c (SCALED): Ditto.
+ (FLOOR, ROUND, CEILING): Removed.
+ * src/psaux/psfixed.h (cf2_fracToFixed): Updated.
+
+2019-05-02 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ Tweak LCD filtering.
+
+ * src/base/ftlcdfil.c (ft_lcd_filter_fir, _ft_lcd_filter_legacy):
+ Choose direction from bitmap's pixel_mode.
+ * include/freetype/internal/ftobjs.c (FT_Bitmap_LcdFilterFunc):
+ Updated.
+ * src/smooth/ftsmooth.c (ft_smooth_render_generic): Updated.
+
+2019-05-02 Werner Lemberg <wl@gnu.org>
+
+ * vms_make.com: Updated (#56253).
+
+ Remove no longer existing directories (`autohint', `otlayout').
+ Update used base extensions.
+ Activate `autofit' module.
+ Add `gxvalid' module.
+ Update copyright notices.
+
+2019-04-29 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ [smooth] Simplify cubic Bézier flattening.
+
+ The previous implementation is correct but it is too complex.
+ The revised algorithm is based on the fact that each split moves
+ the control points closer to the trisection points on the chord.
+ The corresponding distances are good surrogates for the curve
+ deviation from the straight line.
+
+ This cubic flattening algorithm is somewhat similar to the conic
+ algorithm based the distance from the control point to the middle of
+ the chord. The cubic distances, however, decrease less predictably
+ but are easy enough to calculate on each step.
+
+ The new algorithm produces slightly larger number of splits, which is
+ compensated by its simplicity. The overall rendering performance is
+ improved by 1-2%. The larger number of splits does not necessarily
+ result in higher quality, which stays comparable.
+
+ * src/smooth/ftgrays.c (gray_render_cubic): Replace the split
+ condition.
+
+2019-04-26 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ [smooth] Bithacks and cosmetics.
+
+ * src/smooth/ftgrays.c (gray_record_cell, gray_set_cell, gray_hline,
+ gray_render_conic, gray_convert_glyph_inner): Updated.
+
+2019-04-25 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ Optimize Bézier bisections.
+
+ This change makes bisections faster by 20-30%. When inlined into
+ `gray_render_cubic', this makes the function faster by 10% and is
+ noticeable in the overall rendering performance.
+
+ * src/raster/ftraster.c (Split_Conic, Split_Cubic): Use shifts and
+ refactor.
+ * src/smooth/ftgrays.c (gray_split_conic, gray_split_cubic): Ditto.
+ * src/base/ftstroke.c (ft_conic_split, ft_cubic_split): Ditto.
+ * src/base/ftbbox.c (cubic_peak): Use shifts.
+
+2019-04-23 Werner Lemberg <wl@gnu.org>
+
+ * src/sfnt/ttcmap.c (tt_cmap12_next): Remove dead code.
+
+ Found by clang 8.0's static analyzer and reported by Sender Ghost
+ <lightside@gmx.com>.
+
+2019-04-23 Werner Lemberg <wl@gnu.org>
+
+ [base] Fix thinko in previous commit.
+
+ * src/base/ftbitmap.c (FT_Bitmap_Blend): Check final width, not
+ target pitch.
+
+ Problem reported by Sender Ghost <lightside@gmx.com>.
+
+2019-04-22 Werner Lemberg <wl@gnu.org>
+
+ * src/base/ftbitmap.c (FT_Bitmap_Blend): Check target pitch.
+
+ Problem reported by Sender Ghost <lightside@gmx.com>.
+
+2019-04-22 Werner Lemberg <wl@gnu.org>
+
+ Fix return value of `FT_Set_Named_Instance' (#56186).
+
+ * src/truetype/ttgxvar.c (TT_Set_Named_Instance): Correctly handle
+ internal return value -1 of `TT_Set_Var_Design'.
+
+2019-04-18 Werner Lemberg <wl@gnu.org>
+
+ [pcf] Fix handling of undefined glyph (#56067).
+
+ This commit fixes the changes from 2018-07-21, which broke charmap
+ iteration. We now add the default character as a new glyph with
+ index 0, thus increasing the number of glyphs by one (as before).
+
+ * src/pcf/pcfread.c (pcf_get_metrics): Adjust to new artificial
+ glyph with index 0.
+ Limit number of elements to 65534.
+ (pcf_get_bitmaps): Ditto.
+ Unify two loops into one; this avoids allocation of an intermediate
+ array.
+ (pcf_get_encodings): Don't flip indices but copy glyph metrics of
+ default character to index 0.
+ Also handle invalid default character.
+
+ * docs/CHANGES: Updated.
+
+2019-04-15 Minmin Gong <gongminmin@msn.com>
+
+ * CMakeLists.txt: Avoid rewriting of unchanged configuration files.
+
+ Reported as
+
+ https://savannah.nongnu.org/patch/index.php?9755
+
+2019-04-15 JDG <JonathanG@iQmetrix.com>
+
+ * src/tools/apinames.c (main): Fix error message.
+
+ Reported as
+
+ https://savannah.nongnu.org/patch/?9796
+
+2019-04-11 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ [smooth] Fix segfault in direct mode (#56092).
+
+ * src/base/ftoutln.c (FT_Outline_Render): Set missing clip_box for
+ direct mode.
+ * src/smooth/ftgrays.c (gray_raster_render): Use it.
+
+2019-04-06 Werner Lemberg <wl@gnu.org>
+
+ * src/sfnt/ttcmap.c (tt_get_glyph_name): Pacify compiler (#56061).
+
+ This is for Visual Studio 2019 on ARM.
+
+2019-04-06 Werner Lemberg <wl@gnu.org>
+
+ For distribution, replace `.tar.bz2' with `.tar.xz' bundles.
+
+ * builds/toplevel.mk (build): Do it.
+
+ * README, docs/CHANGES, docs/release: Updated.
+
+2019-04-06 Antony Lee <anntzer.lee@gmail.com>
+
+ Make `glyph_name' parameter to `FT_Get_Name_Index' a `const'.
+
+ * include/freetype/freetype.h (FT_Get_Name_Index),
+ include/freetype/internal/ftobjs.h (FT_Face_GetGlyphNameIndexFunc),
+ include/freetype/internal/services/svgldict.h
+ (FT_GlyphDict_NameIndexFunc), src/base/ftobjs.c (FT_Get_Name_Index),
+ src/cff/cffdrivr.c (cff_get_name_index), src/sfnt/sfdriver.c
+ (sfnt_get_name_index), src/type1/t1driver.c (t1_get_name_index),
+ src/type42/t42drivr.c (t42_get_name_index): Add `const' to second
+ argument.
+
+2019-03-31 Armin Hasitzka <prince.cherusker@gmail.com>
+
+ [cff] Fix boundary checks.
+
+ 642bc7590c701c8cd35a9f60fa899cfa518b17ff introduced dynamically
+ allocated memory when parsing CFF files with the "old" engine. Bounds
+ checks have never been updated, however, leading to pointless
+ comparisons of pointers in some cases. This commit presents a
+ solution for bounds checks in the CFF module with an extended logic
+ for the "old" engine while staying as concise as possible for the
+ "new" one.
+
+ * src/cff/cffparse.h: Introduce the struct `CFF_T2_StringRec' and
+ the additional field `t2_strings' within `CFF_ParserRec'.
+
+ * src/cff/cffparse.c (cff_parser_within_limits): Move all boundary
+ checks into this new function and update the rest of `cffparse.c' to
+ use it.
+
+ Reported as
+
+ https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=12137
+
+2019-03-20 Werner Lemberg <wl@gnu.org>
+
+ [autofit] Fix Mongolian blue zone characters.
+
+ * src/autofit/afblue.dat: Use U+200D (ZERO-WIDTH JOINER) characters
+ to get medial forms for some Mongolian characters.
+ * src/autofit/afblue.c, src/autofit/afblue.h: Regenerated.
+
+2019-03-19 Werner Lemberg <wl@gnu.org>
+
+ [autofit] Add support for Mongolian script.
+
+ As a de-facto standard, layouts using this script are constructed
+ horizontally line by line, then the lines are rotated clockwise for
+ vertical display.
+
+ * src/autofit/afblue.dat: Add blue zone data for Mongolian.
+ * src/autofit/afblue.c, src/autofit/afblue.h: Regenerated.
+
+ * src/autofit/afscript.h: Add Mongolian standard characters.
+
+ * src/autofit/afranges.c, src/autofit/afstyles.h: Add Mongolian
+ data.
+
+2019-03-15 Werner Lemberg <wl@gnu.org>
+
+ * Version 2.10.0 released.
+ ==========================
+
+
+ Tag sources with `VER-2-10-0'.
+
+ * docs/VERSION.TXT: Add entry for version 2.10.0.
+ * docs/CHANGES: Updated.
+
+ * README, Jamfile (RefDoc), src/base/ftver.rc,
+ builds/windows/vc2010/freetype.vcxproj,
+ builds/windows/vc2010/index.html,
+ builds/windows/visualc/freetype.dsp,
+ builds/windows/visualc/freetype.vcproj,
+ builds/windows/visualc/index.html,
+ builds/windows/visualce/freetype.dsp,
+ builds/windows/visualce/freetype.vcproj,
+ builds/windows/visualce/index.html,
+ builds/wince/vc2005-ce/freetype.vcproj,
+ builds/wince/vc2005-ce/index.html,
+ builds/wince/vc2008-ce/freetype.vcproj,
+ builds/wince/vc2008-ce/index.html: s/2.9.1/2.10.0/, s/291/2100/.
+
+ * include/freetype/freetype.h (FREETYPE_MINOR): Set to 10.
+ (FREETYPE_PATCH): Set to 0.
+
+ * builds/unix/configure.raw (version_info): Set to 23:0:17.
+ * CMakeLists.txt (VERSION_MINOR): Set to 10.
+ (VERSION_PATCH): Set to 0.
+
+ * builds/toplevel.mk (version, winversion): Since the minor version
+ number has two digits now, never omit the patch number. We would
+ get ambiguous zip file names otherwise.
+ (dist): Remove remnants of `docmaker' tool.
+ (do-dist): Remove unused intermediate files.
+
+ * src/cff/cffparse.c (destrict_c2s_item): Guard function with
+ CFF_CONFIG_OPTION_OLD_ENGINE macro.
+
+2019-03-07 Andrei Alexeyev <0x416b617269@gmail.com>
+ Werner Lemberg <wl@gnu.org>
+
+ Fix invalid function pointer casts.
+
+ This change should allow Freetype to work on WASM/Emscripten without
+ needing `-s EMULATE_FUNCTION_POINTER_CASTS=1'.
+
+ * src/autofit/afdummy.c (af_dummy_hints_apply): Fix signature.
+
+ * src/cid/cidload.c (cid_parse_font_matrix, parse_fd_array,
+ parse_expansion_factor, parse_font_name): Return `void', not
+ `FT_Error'.
+
+ * include/freetype/internal/ftobjs.h (FT_CMap_CharVarIsDefaultFunc):
+ Fix signature.
+
+2019-03-05 Werner Lemberg <wl@gnu.org>
+
+ [base] Handle numeric overflow (#55827).
+
+ * src/base/ftglyph.c (FT_Glyph_Get_CBox): Use `FT_PIX_CEIL_LONG'.
+
+2019-03-05 Sebastian Rasmussen <sebras@gmail.com>
+
+ [psaux] Fix use of uninitialized memory (#55832).
+
+ * src/psaux/psintrp.c (cf2_interpT2CharString): The call to
+ `cf2_arrstack_setCount' may fail because the allocator ran out of
+ memory. When this happens the stack is still written to before the
+ error condition is checked. This means that FreeType writes outside
+ of allocated memory. This commit moves the error check prior to the
+ stack assignment, hence the function now properly returns with an
+ error condition.
+
+2019-02-23 Werner Lemberg <wl@gnu.org>
+
+ * src/base/ftbitmap.c (FT_Bitmap_Blend): No fractional offsets.
+
+ The function only provided a framework without an actual
+ implementation, which this commit removes.
+
+2019-02-23 Werner Lemberg <wl@gnu.org>
+
+ * src/tools/update-copyright-year: Insert `(C)'.
+
+2019-02-21 Armin Hasitzka <prince.cherusker@gmail.com>
+
+ [truetype] Mask numeric overflows.
+
+ * src/truetype/ttinterp.c (Move_CVT, Move_CVT_Stretched, Ins_MIRP):
+ Mask numeric overflows.
+
+ Reported as
+
+ https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=11681
+ https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=11734
+
+2019-02-21 Armin Hasitzka <prince.cherusker@gmail.com>
+
+ [psaux] Mask numeric overflow.
+
+ * src/psaux/cffdecode.c (cff_decoder_parse_charstrings): Mask numeric
+ overflow.
+
+ Reported as
+
+ https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=13041
+
+2019-02-16 Wink Saville <wink@saville.com>
+
+ * src/autofit/afwarp.h (af_warper_compute): Fix declaration.
+
+2019-02-02 Nikolaus Waxweiler <madigens@gmail.com>
+
+ [truetype] Apply MVAR hasc, hdsc and hlgp metrics to current FT_Face metrics.
+
+ Instead of setting typo or win metrics as the new `FT_Face' metrics
+ indiscriminately, apply only typo deltas to the currently active
+ `FT_Face' metrics. This prevents line height differences when the
+ default outlines were used as the regular face and instances for
+ everything else, for example.
+
+ * src/truetype/ttgxvar.c (tt_apply_mvar): Implement.
+
+2019-02-02 Nikolaus Waxweiler <madigens@gmail.com>
+
+ [sfnt] Use typo metrics if OS/2 fsSelection USE_TYPO_METRICS bit is set.
+
+ If the `OS/2' table exists and `fsSelection' bit 7
+ (USE_TYPO_METRICS) is set, use the `sTypo*' set of values to compute
+ the `FT_Face's ascender, descender, and height. Otherwise, fall
+ back to old behavior.
+
+ * src/sfnt/sfobjs.c (sfnt_load_face): Implement.
+
+2019-01-18 John Tytgat <John.Tytgat@esko.com>
+
+ [sfnt] Handle TT fonts having two PostScript font names (#55471).
+
+ * src/sfnt/sfdriver.c (sfnt_get_name_id): Prefer English over any
+ other language found for PostScript font names.
+
+2019-01-08 Chris Liddell <chris.liddell@artifex.com>
+
+ [psaux] Fix closepath (#55414).
+
+ All of the Type 1 path building is done with code common to the
+ revised CFF engine, with the exception of closepath, which was still
+ calling ps_builder_close_contour(), thus previously cached segments
+ were not always written to the path, and glyph corruption, or even
+ invalid outlines were possible.
+
+ * src/psauc/psinterp.c (cf2_interpT2CharString) <cf2_cmdCLOSEPATH>:
+ Switch to calling `cf2_glyphpath_closeOpenPath'.
+
+2018-12-29 Werner Lemberg <wl@gnu.org>
+
+ * src/autofit/aflatin2.c: Some fixes from `aflatin.c' (#55310).
+
+2018-12-25 Werner Lemberg <wl@gnu.org>
+
+ * src/psaux/cffdecode.c (cff_operaor_seac): Fix numeric overflow.
+
+ Reported as
+
+ https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=11915
+
+2018-12-12 Werner Lemberg <wl@gnu.org>
+
+ [gxvalid] Fix compiler warnings.
+
+ * src/gxvalid/gxvjust.c (gxv_just_check_max_gid),
+ src/gxvalid/gxvmort.c (gxv_mort_coverage_validate): Use `FT_UNUSED'.
+
+2018-12-11 Werner Lemberg <wl@gnu.org>
+
+ * src/truetype/ttgload.c (TT_Hint_Glyph): Remove useless test.
+
+ `control_len' only gets its value from `n_ins' (and vice versa),
+ which is always read as `unsigned short' and thus can't be larger
+ than 0xFFFF.
+
+2018-12-04 Werner Lemberg <wl@gnu.org>
+
+ [bdf] Ignore data after `ENDFONT'.
+
+ Reported as
+
+ https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=10798
+
+ * src/bdf/bdflib.c (_bdf_parse_end): New function.
+ (_bdf_parse_glyphs): Switch to `_bdf_parse_end' after `ENDFONT' has
+ been encountered.
+
+2018-12-02 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ * builds/windows/visualc/freetype.dsp: Dust off.
+
+2018-11-27 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ * builds/windows/vc2010/freetype.vcxproj: Simplify.
+
+2018-11-27 Chris Liddell <chris.liddell@artifex.com>
+
+ [type1,cff] Add FT_{Set,Get}_MM_WeightVector API calls.
+
+ For multiple master fonts, common usage (in Postscript) is to modify
+ the WeightVector of an existing font instance, this addition
+ supports that use.
+
+ * include/freetype/ftmm.h, src/base/ftmm.c (FT_Set_MM_WeightVector,
+ FT_Get_MM_WeightVector): New API functions.
+
+ * include/freetype/internalservices/svmm.h
+ (FT_Set_MM_WeightVector_Func, FT_Get_MM_WeightVector_Func): New
+ function types.
+ (MultiMasters): Add `set_mm_weightvector' and `get_mm_weightvector'
+ members.
+ (FT_DEFINE_SERVICE_MULTIMASTERSREC): Updated.
+
+ * src/cffcffdrivr.c (cff_set_mm_weightvector,
+ cff_get_mm_weightvector): New functions.
+ (cff_service_multi_masters): Register them.
+
+ * src/truetype/ttdriver.c (tt_service_gx_multi_masters): Updated.
+ This driver doesn't use the new interface.
+
+ * src/type1/t1load.c (T1_Set_MM_WeightVector,
+ T1_Get_MM_WeightVector): New functions.
+ * src/type1/t1driver.c (t1_service_multi_masters): Register them.
+ * src/type1/t1load.h: Updated.
+
+2018-11-27 Ben Wagner <bungeman@google.com>
+
+ [cff] Fix compiler warning (#55105).
+
+ * src/cff/cffparse.c (cff_parser_run): Guard label only used if
+ CFF_CONFIG_OPTION_OLD_ENGINE is active.
+
+2018-11-27 Ben Wagner <bungeman@google.com>
+
+ [truetype] Fix numeric overflow (#55103).
+
+ * src/truetype/ttgload.c (compute_glyph_metrics): Use `SUB_LONG'.
+
+2018-11-25 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ [builds] Belated DLL support with vc2002-vc2008.
+
+ The solution and project files should be automatically upgraded for
+ the approriate Visual C++ version.
+
+ * builds/windows/visualc/freetype.{sln,vcproj}: Major upgrades.
+ * builds/windows/visualc/index.html: Document the change.
+ * builds/windows/vc2005, builds/windows/vc2008: Removed as redundant.
+
+2018-11-22 Armin Hasitzka <prince.cherusker@gmail.com>
+
+ * src/cff/cffparse.c: Please the compiler.
+
+2018-11-22 Armin Hasitzka <prince.cherusker@gmail.com>
+
+ [cff] Fix memory overflow.
+
+ Reported as
+
+ https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=9869
+ https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=10869
+
+ * src/cff/cffparse.c (destruct_t2s_item, cff_parser_run): Store
+ evaluated T2 charstrings in separately allocated memory.
+
+2018-11-18 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ * builds/windows/{visualc,vc2005,vc2008}/freetype.vcproj: Fix it.
+
+2018-11-10 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ [smooth] Placeholder only for library-enabled LCD filtering.
+
+ * src/smooth/ftsmooth.c (ft_smooth_init): Add disabled
+ `FT_Library_SetLcdFilter' call.
+
+2018-11-09 Young Xiao <yangx92@hotmail.com>
+
+ [psaux] Add safety guard (#54985).
+
+ * src/psaux/psobjs.c (cff_builder_close_contour): Do it.
+
+2018-11-08 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ * builds/unix/configure.raw: Require `windows.h' for windres.
+
+2018-11-08 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ [ftstroke] Fix unpredictable failures (#54986).
+
+ * src/base/ftstroke.c (ft_sroke_border_lineto): Fix lineto check.
+
+2018-11-08 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ [ftstroke] Fix unpredictable failures (#54976).
+
+ * src/base/ftstroke.c (ft_sroke_border_close): Set the start tags.
+
+2018-11-07 Ben Wagner <bungeman@google.com>
+
+ [truetype] Fix VF check from 2018-09-12 (#54973).
+
+ * src/truetype/ttgxvar.c (TT_Vary_Apply_Glyph_Deltas): Use correct
+ offsets for estimates.
+
+2018-11-06 Werner Lemberg <wl@gnu.org>
+
+ [pshinter] Fix numeric overflow.
+
+ Reported as
+
+ https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=11242
+
+ * src/pshinter/pshrec.c (ps_dimension_add_t1stem): Implement it.
+
+2018-11-06 Werner Lemberg <wl@gnu.org>
+
+ [psaux] Fix timeout in old CFF engine.
+
+ Reported as
+
+ https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=11260
+
+ * src/psaux/cffdecode.c (cff_decoder_parse_charstrings)
+ <cff_op_sqrt> [CFF_CONFIG_OPTION_OLD_ENGINE]: Fix potential endless
+ loop.
+
+2018-11-04 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ * src/truetype/ttgxvar.c: Use enum definitions.
+
+2018-11-03 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ * src/truetype/ttgxvar.c (ft_var_apply_tuple): Adjust condition.
+
+2018-11-03 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ * src/truetype/ttgxvar.c (ft_var_apply_tuple): Tracing tweaks.
+
+2018-11-03 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ Revert due to specs: [truetype] Speed up variation IUP.
+
+2018-11-02 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ * src/truetype/ttgxvar.c (ft_var_get_item_delta): Fixed logic.
+
+ Reported and tested by Behdad.
+
+2018-11-02 Shailesh Mistry <shailesh.mistry@hotmail.co.uk>
+
+ [autofit] Prevent SEGV.
+
+ See
+
+ https://bugs.ghostscript.com/show_bug.cgi?id=697545
+
+ for more details on how the bug was found.
+
+ * src/autofit/afloader.c (af_loader_load_glyph): Propagate error
+ code.
+
+2018-10-31 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ [truetype] Speed up variation IUP.
+
+ * src/truetype/ttgxvar.c (tt_delta_interpolate): Separate trivial
+ snapping to the same position from true interpolation.
+
+2018-10-31 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ * src/type1/t1load.c (t1_set_mm_blend): Optimized.
+
+2018-10-31 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ * src/truetype/ttgxvar.c (ft_var_get_item_delta): Optimized.
+
+2018-10-29 Werner Lemberg <wl@gnu.org>
+
+ [base] Fix numeric overflow.
+
+ Reported as
+
+ https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=11080
+
+ * src/base/ftoutln.c (FT_Outline_Get_Orientation): Use `MUL_LONG'.
+
+2018-10-29 Werner Lemberg <wl@gnu.org>
+
+ [cff] Fix numeric overflow.
+
+ Reported as
+
+ https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=10988
+
+ * src/cff/cffparse.c (cff_parser_run)
+ [CFF_CONFIG_OPTION_OLD_ENGINE]: Use `NEG_LONG'.
+
+2018-10-27 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ [sfnt] Make `head' timestamps unsigned.
+
+ It's been more than 2^31 seconds since 1904.
+
+ * include/freetype/tttables.h (TT_Header): Change field types.
+ * src/sfnt/ttload.c (tt_face_load_generic_header): Updated.
+
+2018-10-27 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ Revert: Align FreeType with standard C memory management.
+
+2018-10-27 Werner Lemberg <wl@gnu.org>
+
+ [psaux] Fix numeric overflow.
+
+ Triggered by
+
+ https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=11157
+
+ * src/psaux/cffdecode.c (cff_decoder_parse_charstrings) <cff_op_blend>
+ [CFF_CONFIG_OPTION_OLD_ENGINE]: Fix integer overflow.
+
+2018-10-20 Werner Lemberg <wl@gnu.org>
+
+ Avoid endless loop while tracing (#54858).
+
+ * src/type1/t1load.c (parse_buildchar): Guard tracing stuff with
+ FT_DEBUG_LEVEL_TRACE.
+
+2018-10-17 David Demelier <markand@malikania.fr>
+
+ * CMakeLists.txt: Specify `RUNTIME DESTINATION'.
+
+ This is needed for DLL builds.
+
+2018-10-07 Werner Lemberg <wl@gnu.org>
+
+ A missing Unicode cmap is not a fatal error.
+
+ This is a follow-up to the previous commit.
+
+ * src/cff/cffobjs.c (cff_face_init), src/sfnt/sfobjs.c
+ (sfnt_load_face), src/type1/t1objs.c (T1_Face_Init),
+ src/type42/t42objs.c (T42_Face_Init): Implement it.
+
+2018-10-07 Werner Lemberg <wl@gnu.org>
+
+ Fix handling of FT_CONFIG_OPTION_ADOBE_GLYPH_LIST (#54794).
+
+ * src/cff/cffcmap.c (cff_cmap_unicode_init), src/psaux/t1cmap.c
+ (t1_cmap_unicode_init), src/sfnt/ttcmap.c (tt_cmap_unicode_init):
+ Check `unicodes_init' field.
+
+2018-10-03 Werner Lemberg <wl@gnu.org>
+
+ [ftgrays] Fix typo in stand-alone mode (#54771).
+
+ * src/smooth/ftgrays.c (FT_THROW) [STANDALONE_ &&
+ FT_DEBUG_LEVEL_TRACE]: Fix call to `FT_ERR_CAT'.
+
+2018-10-02 Werner Lemberg <wl@gnu.org>
+
+ [psaux] Fix segfault.
+
+ Reported as
+
+ https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=10768
+
+ * src/psaux/cffdecode.c (cff_decoder_parse_charstrings)
+ <cff_op_callothersubr> [CFF_CONFIG_OPTION_OLD_ENGINE]: Check
+ argument.
+
+2018-10-02 Werner Lemberg <wl@gnu.org>
+
+ [psaux] Fix numeric overflow.
+
+ Reported as
+
+ https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=10740
+
+ * src/psaux/cffdecode.c (cff_decoder_parse_charstrings) <cff_op_roll>
+ [CFF_CONFIG_OPTION_OLD_ENGINE]: Use NEG_INT.
+
+2018-10-02 Werner Lemberg <wl@gnu.org>
+
+ [pshinter] Handle numeric overflow.
+
+ Reported as
+
+ https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=10550
+
+ * src/pshinter/pshglob.c (psh_blues_snap_stem): Mask numeric
+ overflow.
+
+2018-09-27 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ Align FreeType with standard C memory management.
+
+ * include/freetype/ftsystem.h: Include FT_TYPES_H.
+ (*FT_Alloc_Func, *FT_Realloc_Func): Use size_t for the size arguments.
+ * src/raster/ftmisc.h: Ditto.
+
+ * builds/amiga/src/base/ftsystem.c, builds/unix/ftsystem.c,
+ * builds/vms/ftsystem.c, src/base/ftsystem.c (ft_alloc, ft_realloc):
+ Use size_t for the size arguments.
+
+ * src/base/ftdbgmem.c (ft_mem_debug_alloc, ft_mem_debug_realloc): Use
+ FT_Offset, aka size_t, for the size arguments.
+
+2018-09-25 Werner Lemberg <wl@gnu.org>
+
+ Fix handling of `FT_Bool'.
+
+ Before this commit we had code like
+
+ (FT_Bool)( globals->glyph_styles[gindex] & 0x8000)
+
+ Since `FT_Bool' is defined to be an `unsigned char', the code
+ evaluated to something like
+
+ (unsigned char)( 0x8532 & 0x8000)
+
+ which in turn expanded to
+
+ (unsigned char)( 0x8000)
+
+ and finally yielded 0x00 – i.e., false – not as expected.
+
+ Problem reported and analyzed by Tony Smith <tony.smith@macro4.com>.
+
+ * include/freetype/fttypes.h (FT_BOOL): Add a comparison against
+ zero so that we always have a Boolean expression.
+
+ */*: Replace castings to `FT_Bool' with calls to `FT_BOOL' where
+ possible.
+
+2018-09-23 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ [bdf] Speed up charmap access.
+
+ This makes FT_Get_Char_Index and FT_Get_Next_Char 4-5 times faster.
+
+ * src/bdf/bdfdrivr.c (bdf_cmap_char_{index,next}): Help binary search
+ with continuous prediction.
+
+2018-09-22 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ * src/base/ftobjs.c (ft_glyphslot_preset_bimap): Another tweak.
+
+ This one should be clearer. When the rounded monochrome bbox collapses
+ we add a pixel that covers most if not all original cbox.
+
+2018-09-21 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ * src/base/ftobjs.c (ft_glyphslot_preset_bimap): Further tweak.
+
+2018-09-21 Ben Wagner <bungeman@google.com>
+
+ Improve auto-hinter handling of bitmap fonts (#54681).
+
+ For bitmap fonts, `FT_Load_Glyph' should either return an error or
+ not set the format to `FT_GLYPH_FORMAT_OUTLINE'. However, in this
+ case `FT_Load_Glyph' calls into the auto-hinter which calls back
+ into `FT_Load_Glyph' with `FT_LOAD_NO_SCALE' in the flags, which
+ marks the glyph as `FT_GLYPH_FORMAT_OUTLINE' with an empty path
+ (even though it doesn't have any path). It appears that the
+ auto-hinter should not be called when the face doesn't have
+ outlines. The current test for using the auto-hinter in
+ `FT_Load_Glyph' checks whether the driver supports scalable
+ outlines, but not if the face supports scalable outlines.
+
+ * src/base/ftobjs.c (FT_Load_Glyph): Directly check whether we have
+ scalable outlines.
+
+2018-09-21 Werner Lemberg <wl@gnu.org>
+
+ [raster] Fix disappearing vertical lines (#54589).
+
+ * src/raster/ftraster.c (Vertical_Sweep_Span): Handle special case
+ where both left and right outline exactly pass pixel centers.
+
+2018-09-20 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ * src/base/ftobjs.c (ft_glyphslot_preset_bimap): Tiny rounding tweak.
+
+ This adds pixels in case a contour goes through the center
+ and they need to be turned on in the b/w rasterizer.
+
+2018-09-20 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ [pcf] Replace charmap implementation.
+
+ PCF comes with charmap lookup table, aka PCF encodings. Using it
+ directly makes FT_Get_Char_Index and FT_Get_Next_Char 4-5 times
+ faster than the original BDF-like binary searches.
+
+ * src/pcf/pcf.h (PCF_EncodingRec): Removed.
+ (PCF_FaceRec): Remove `nencodings' and `encodings'.
+ * src/pcf/pcfdrivr.c (pcf_cmap_char_{index,next}): Replaced.
+ * src/pcf/pcfread.c (pcf_get_encodings): Store data differently.
+
+2018-09-20 Werner Lemberg <wl@gnu.org>
+
+ [base] Remove unused function `FT_GlyphLoader_CopyPoints'.
+
+ * include/freetype/internal/ftgloadr.h, src/base/ftgloadr.c
+ (FT_GlyphLoader_CopyPoints): Do it.
+
+2018-09-19 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ [pcf] Prepare to replace charmap implementation.
+
+ * src/pcf/pcf.h (PCF_FaceRec): Updated to include...
+ (PCF_EncRec): ... this new structure to store charmap geometry.
+
+ * src/pcf/pcfread.c (pcf_get_encodings): Store charmap geometry.
+
+2018-09-18 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ Remove unused fields.
+
+ * src/pcf.h (PCF_FaceRec): Remove `charmap' and `charmap_handle'.
+ * src/bdfdrvr.h (BDF_FaceRec): Ditto.
+ * src/winfonts/winfnt.h (FNT_FaceRec): Ditto.
+
+2018-09-17 Werner Lemberg <wl@gnu.org>
+
+ [pshinter] Handle numeric overflow.
+
+ Reported as
+
+ https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=10396
+
+ * src/pshinter/pshglob.c: Include FT_INTERNAL_CALC_H.
+ (psh_blues_snap_stem): Mask numeric overflow.
+
+2018-09-13 Werner Lemberg <wl@gnu.org>
+
+ [truetype] Some fixes for VF checks.
+
+ Reported as
+
+ https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=10317
+
+ * src/truetype/ttgxvar.c (ft_var_load_gvar): Properly exit memory
+ frame if we have invalid glyph variation data offsets.
+ (tt_face_vary_cvt): Protect against missing `tuplecoords' array.
+ Fix typo.
+
+2018-09-13 Werner Lemberg <wl@gnu.org>
+
+ * src/sfnt/sfdriver.c (sfnt_get_var_ps_name): Fix last commit.
+
+2018-09-13 Werner Lemberg <wl@gnu.org>
+
+ * src/sfnt/sfdriver.c (sfnt_get_var_ps_name): Check `result'.
+
+ Reported as
+
+ https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=10316
+
+2018-09-12 John Tytgat <John.Tytgat@esko.com>
+
+ [sfnt] Better PS name handling (#54629).
+
+ * src/sfnt/sfdriver (IS_WIN, IS_APPLE): Omit language ID checks.
+ (get_win_string, get_apple_string): Return NULL when the PostScript
+ font name characters is not according to specification.
+ (get_win_string): Make trace output work if the high byte if
+ non-zero.
+ (sfnt_get_var_ps_name, sfnt_get_ps_name): Previously we preferred
+ Win PS name (when there is also an Apple PS name); change this into
+ a fallback to Apple PS name in case the Win PS name is invalid.
+
+2018-09-12 Werner Lemberg <wl@gnu.org>
+
+ [truetype] Improve VF check.
+
+ Triggered by
+
+ https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=10255
+
+ * src/truetype/ttgxvar.c (ft_var_load_gvar): Use better limit check
+ for `tupleCount'.
+
+2018-09-12 Werner Lemberg <wl@gnu.org>
+
+ * src/truetype/ttgxvar.c (ft_var_load_gvar): Check `glyphoffsets'.
+
+2018-09-10 Armin Hasitzka <prince.cherusker@gmail.com>
+
+ * src/pshinter/pshrec.c (t2_hints_stems): Mask numeric overflow.
+
+ Reported as
+
+ https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=10215
+
+2018-09-09 Ben Wagner <bungeman@google.com>
+
+ * builds/freetype.mk (refdoc-venv): Ensure python version (#54631).
+
+2018-09-07 Werner Lemberg <wl@gnu.org>
+
+ [truetype] Fix assertion failure.
+
+ Triggered by
+
+ https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=10212
+
+ * src/truetype/ttgload.c (load_truetype_glyph): Reintroduce
+ `opened_frame' (removed in a change from 2018-08-26) to handle
+ deallocation of the second frame.
+
+2018-09-05 Werner Lemberg <wl@gnu.org>
+
+ Synchronize `ftdebug.c' files.
+
+ * builds/amiga/src/base/ftdebug.c, builds/wince/ftdebug.c,
+ builds/windows/ftdebug.c: Synchronize with `src/base/ftdebug.c'.
+
+2018-09-05 Nikhil Ramakrishnan <ramakrishnan.nikhil@gmail.com>
+
+ Add documentation guidelines file.
+
+ * docs/DOCGUIDE: New file.
+
+2018-09-04 Werner Lemberg <wl@gnu.org>
+
+ * devel/ftoption.h: Synchronize with master `ftoption.h'.
+
+2018-09-03 Nikhil Ramakrishnan <ramakrishnan.nikhil@gmail.com>
+
+ [docwriter] Don't break code snippets accross lines.
+
+ Reported as
+
+ https://lists.nongnu.org/archive/html/freetype-devel/2018-08/msg00124.html
+
+ * docs/reference/markdown/stylesheets/extra.css (.md-typeset code):
+ Add rule `white-space'.
+
+2018-09-03 Werner Lemberg <wl@gnu.org>
+
+ */*: s/PSNames/psnames/.
+
+ Only tracing messages are affected.
+
+2018-09-03 Werner Lemberg <wl@gnu.org>
+
+ [sfnt] Fix heap buffer overflow in CPAL handling.
+
+ * src/sfnt/ttcpal.c (tt_face_palette_set): Fix boundary test.
+ (tt_face_load_cpal): Updated.
+
+2018-09-01 Werner Lemberg <wl@gnu.org>
+
+ Remove `FT_Outline_{New,Done}_Internal'.
+
+ These public API functions(!) were always undocumented and have
+ escaped all clean-up efforts until now.
+
+ * include/freetype/ftoutln.h (FT_Outline_New_Internal,
+ FT_Outline_Done_Internal): Removed.
+
+ * src/base/ftoutln.h (FT_Outline_New_Internal,
+ FT_Outline_Done_Internal): Merge into...
+ (FT_Outline_New, FT_Outline_Done): ... these functions.
+
+ * docs/README: Updated.
+
+2018-08-30 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ * src/base/ftobjs.c (ft_glyphslot_preset_bitmap): Check glyph format.
+
+2018-08-31 Armin Hasitzka <prince.cherusker@gmail.com>
+
+ [errors] Refine the macro logic surrounding `FT_Error_String'.
+
+ * include/freetype/fterrors.h (FT_INCLUDE_ERR_PROTOS,
+ FT_ERR_PROTOS_DEFINED): Undefine `FT_INCLUDE_ERR_PROTOS' after
+ checking it and introduce a new macro that takes proper care of
+ multiple-inclusion protection.
+
+2018-08-31 Werner Lemberg <wl@gnu.org>
+
+ * src/base/ftdebug.c (FT_Throw): Restore missing `FT_UNUSED' calls.
+
+2018-08-31 Werner Lemberg <wl@gnu.org>
+
+ * src/base/ftdebug.c (FT_Throw): Reduce chattiness.
+
+2018-08-31 Werner Lemberg <wl@gnu.org>
+
+ * src/autofit/afhints.c (af_glyph_hints_reload): Add initialization.
+
+2018-08-30 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ Consolidate bitmap presetting and size assessment.
+
+ * include/freetype/internal/ftobjs.h (ft_glyphslot_preset_bitmap):
+ Change return type.
+ * src/base/ftobjs.c (ft_glyphslot_preset_bitmap): Return the bitmap
+ size assessment.
+
+ * src/raster/ftrend1.c (ft_raster1_render): Use it to refuse the
+ rendering of enourmous or far-fetched outlines.
+ * src/smooth/ftsmooth.c (ft_smooth_render_generic): Ditto.
+
+2018-08-30 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ * src/base/ftobjs.c (ft_glyphslot_preset_bitmap): Correct mono.
+
+2018-08-30 Armin Hasitzka <prince.cherusker@gmail.com>
+
+ [errors] Introduce a macro to control `FT_Error_String'.
+
+ * devel/ftoption.h (FT_CONFIG_OPTION_ERROR_STRINGS),
+ include/freetype/config/ftoption.h (FT_CONFIG_OPTION_ERROR_STRINGS):
+ New macro.
+
+2018-08-30 Armin Hasitzka <prince.cherusker@gmail.com>
+
+ [errors] Introduce `FT_Error_String'.
+
+ * include/freetype/fterrors.h (FT_Error_String),
+ src/base/fterrors.c (FT_Error_String): Implement `FT_Error_String'.
+
+ * src/base/ftbase.c, src/base/Jamfile (_source),
+ src/base/rules.mk (BASE_SRC): Add `fterrors.c' to the build logic.
+
+ * src/base/ftdebug.c (FT_Throw): Use `FT_Error_String'.
+
+2018-08-30 Werner Lemberg <wl@gnu.org>
+
+ [autofit] Trace `before' and `after' edges of strong points.
+
+ * src/autofit/afhints.h (AF_PointRec) [FT_DEBUG_AUTOFIT]: New arrays
+ `before' and `after'.
+
+ * src/autofit/afhints.c (af_get_strong_edge_index): New auxiliary
+ function.
+ (af_glyph_hints_dump_points): Trace `before' and `after' edges.
+ (af_glyph_hints_align_strong_points) [FT_DEBUG_AUTOFIT]: Set
+ `before' and `after' information.
+
+2018-08-30 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ [base] Overflow-resistant bitmap presetting.
+
+ * src/base/ftobjs.c (ft_glyphslot_preset_bitmap): Implement it.
+
+2018-08-29 Armin Hasitzka <prince.cherusker@gmail.com>
+
+ Fix numeric overflows.
+
+ * src/pshint/pshalgo.c (psh_hint_align, psh_hint_align_light,
+ psh_hint_table_find_strong_points): Fix numeric overflows.
+
+ Reported as
+
+ https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=10083
+
+2018-08-29 Werner Lemberg <wl@gnu.org>
+
+ [cff] Fix handling of `roll' op in old engine.
+
+ Reported as
+
+ https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=10080
+
+ * src/psaux/cffdecode.c (cff_decoder_parse_charstrings) <cff_op_roll>
+ [CFF_CONFIG_OPTION_OLD_ENGINE]: Use modulo for loop count, as
+ documented in the specification.
+
+2018-08-26 Werner Lemberg <wl@gnu.org>
+
+ * src/truetype/ttobjs.c (tt_size_read_bytecode): Trace CVT values.
+
+2018-08-26 Nikhil Ramakrishnan <ramakrishnan.nikhil@gmail.com>
+
+ * configure: Copy assets required by docwriter.
+
+ Copy directory `docs/reference/markdown' when FreeType is compiled in a
+ different directory.
+
+ Fixes `make refdoc' if builddir != srcdir.
+
+ Reported as
+
+ https://lists.nongnu.org/archive/html/freetype-devel/2018-08/msg00083.html
+
+2018-08-26 Werner Lemberg <wl@gnu.org>
+
+ * src/pshint/pshalgo.c (psh_hint_overlap): Fix numeric overflow.
+
+ Reported as
+
+ https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=10057
+
+2018-08-26 Werner Lemberg <wl@gnu.org>
+
+ Minor tracing adjustments.
+
+ * src/base/ftstream.c (FT_Stream_EnterFrame, FT_Stream_ExitFrame):
+ Trace.
+
+ * src/truetype/ttgload.c (TT_Access_Glyph_Frame): Remove tracing.
+
+2018-08-26 Werner Lemberg <wl@gnu.org>
+
+ [truetype] Avoid nested frames.
+
+ Triggered by
+
+ https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=10054
+
+ * src/truetype/ttgload.c (load_truetype_glyph): Don't use variable
+ `opened_frame' to trace whether a frame must be closed at the end of
+ function: This fails because `TT_Vary_Apply_Glyph_Deltas' (which
+ gets called for space glyphs) uses a frame by itself. Instead,
+ close the frame after loading the header, then use another frame for
+ the remaining part of the glyph later on.
+
+ Also avoid calling `tt_get_metrics' twice under some circumstances.
+
+2018-08-26 Werner Lemberg <wl@gnu.org>
+
+ Various minor clean-ups.
+
+ * src/base/ftapi.c: Remove. Unused.
+ * src/base/Jamfile (_sources): Updated.
+
+ * src/base/ftstream.c (FT_Stream_ReleaseFrame): Remove redundant
+ code.
+
+2018-08-25 Nikhil Ramakrishnan <ramakrishnan.nikhil@gmail.com>
+
+ Convert documentation markup to Markdown.
+
+ It is the result of a GSoC 2018 project; this separate ChangeLog
+ commit covers the last four commits
+
+ ae5d1a4cec37557f31aec270332cfe886a62f9a0
+ 53c69ce04faed3dcc68ca0f54cb8d703d8babf69
+ 195728d5ba38f34fb2c2c20807c01656f2f59b66
+ c962db28ea59225f0105c03d907d4a9b71765687
+
+ * docs/reference/markdown/images/favico.ico,
+ docs/reference/markdown/javascripts/extra.js,
+ docs/reference/markdown/stylesheets/extra.css: New files.
+
+ * docs/reference/.gitignore, docs/reference/README: Updated.
+
+ * src/tools/docmaker/*: Removed. It has been replaced with
+ `docwriter', a python package available at
+
+ https://pypi.org/project/docwriter/
+
+ * Jamfile: Updated.
+ * builds/ansi/ansi-def.mk, builds/beos/beos-def.mk,
+ builds/dos/dos-def.mk, builds/os2/os2-def.mk (BIN),
+ builds/unix/unixddef.mk, builds/windows/win32-def.mk: New variable.
+
+ * builds/unix/configure.raw: Check for `python' and `pip'.
+ If not present, warn that `make refdoc' will fail.
+ * builds/unix/unix-def.in (PYTHON, PIP, BIN): New variables.
+
+ * builds/freetype.mk (PYTHON, PIP, VENV_NAME, VENV_DIR, ENV_PYTHON,
+ ENV_PIP): New variables.
+ (refdoc): Updated.
+ (refdoc-venv): New target.
+ (.PHONY): Updated.
+
+2018-08-23 Werner Lemberg <wl@gnu.org>
+
+ Add macros for handling over-/underflowing `FT_Int64' values.
+
+ * include/freetype/internal/ftcalc.h (ADD_INT64, SUB_INT64,
+ MUL_INT64, DIV_INT64) [FT_LONG64]: New macros.
+
+ * src/base/ftcalc.c (ft_corner_orientation) [FT_LONG64]: Use
+ `SUB_INT64' and `MUL_INT64'.
+
+ Reported as
+
+ https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=10028
+
+2018-08-22 Werner Lemberg <wl@gnu.org>
+
+ [truetype] Improve legibility of `glyf' parsing.
+
+ * src/truetype/ttgload.c (ON_CURVE_POINT, X_SHORT_VECTOR,
+ Y_SHORT_VECTOR, REPEAT_FLAG, X_POSITIVE, SAME_X, Y_POSITIVE, SAME_Y,
+ OVERLAP_SIMPLE): New macros.
+ (TT_Load_Simple_Glyph): Use new macros to make code more readable.
+ Remove useless adjustment of `outline->tags' elements.
+
+2018-08-21 Werner Lemberg <wl@gnu.org>
+
+ * src/sfnt/ttcpal.c (tt_face_load_cpal): Add missing safety check.
+
+ Reported as
+
+ https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=9981
+
+2018-08-18 Werner Lemberg <wl@gnu.org>
+
+ [psaux] Avoid slow PS font parsing in case of error.
+
+ Reported as
+
+ https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=9955
+
+ * src/psaux/psobjs.c (ps_parser_to_bytes): Set `parser->cursor' even
+ in case of error to avoid potential re-scanning.
+
+2018-08-18 Werner Lemberg <wl@gnu.org>
+
+ [cff] Fix heap buffer overflow in old engine.
+
+ Reported as
+
+ https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=9967
+
+ * src/psaux/cffdecode.c (cff_decoder_parse_charstrings)
+ <cff_op_blend> [CFF_CONFIG_OPTION_OLD_ENGINE]: `num_designs' must be
+ non-zero.
+
+2018-08-16 Young Xiao <yangx92@hotmail.com>
+
+ * builds/mac/ftmac.c (parse_fond): Fix buffer overrun.
+
+ Reported as bug #54515, duplicate of #43540.
+
+2018-08-16 Werner Lemberg <wl@gnu.org>
+
+ * builds/*/ftsystem.c (FT_COMPONENT): Updated also.
+
+2018-08-15 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ [bdf] Don't track duplicate encodings.
+
+ There is no harm except some umbiguity in broken fonts with duplicate
+ encodings.
+
+ * src/bdf/bdflib.c (_bdf_parse_glyphs): Remove duplicate tracking.
+ (_bdf_parse_t): Remove large `have' bitfield.
+
+2018-08-15 Werner Lemberg <wl@gnu.org>
+
+ Don't use `trace_' prefix for FT_COMPONENT arguments.
+
+ * include/freetype/internal/ftdebug.h (FT_TRACE_COMP,
+ FT_TRACE_COMP_): New auxiliary macros to add `trace_' prefix.
+ (FT_TRACE): Use `FT_TRACE_COMP'.
+
+ */* (FT_COMPONENT): Updated.
+
+2018-08-14 Werner Lemberg <wl@gnu.org>
+
+ Use formatting string in FT_TRACEX calls for non-simple arguments.
+
+ * src/psaux/cffdecode.c (cff_decoder_parse_charstrings)
+ <cff_op_hstem, cff_op_hintmask, cff_op_hlineto, cff_op_vhcurveto>:
+ Do it.
+
+ * src/psaux/pshints.c (cf2_hintmap_build): Ditto.
+
+ * src/psaux/psintrp.c (cf2_interpT2CharString) <cf2_cmdHSTEM,
+ cf2_cmdVSTEM, cf2_cmdHLINETO, cf2_cmdRRCURVETO, cf2_cmdCALLSUBR,
+ cf2_escHSTEM3, cf2_cmdHINTMASK, cf2_cmdHVCURVETO>: Ditto.
+
+ * src/truetype/ttinterp.c (TT_RunIns): Ditto.
+
+2018-08-14 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ [bdf] Remove unused fields.
+
+ * src/bdf/bdf.h (bdf_font_t): Remove `nmod', `umod', and `modified',
+ which were set but never used.
+ * src/bdf/bdflib.c (_bdf_parse_{glyphs,properties}, bdf_load_font):
+ Updated accordingly.
+
+2018-08-14 Werner Lemberg <wl@gnu.org>
+
+ [cff] Fix another segv in old engine.
+
+ Reported as
+
+ https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=9872
+
+ * src/psaux/cffdecode.c (cff_decoder_parse_charstrings)
+ [CFF_CONFIG_OPTION_OLD_ENGINE]: Disallow invalid T1 opcodes in
+ dictionaries.
+
+2018-08-14 Werner Lemberg <wl@gnu.org>
+
+ [cff] Fix missing error handling.
+
+ Reported as
+
+ https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=9865
+
+ * src/psaux/cffparse.c (cff_parser_run)
+ [CFF_CONFIG_OPTION_OLD_ENGINE]: Don't ignore return value of
+ `parse_charstrings_old'.
+
+2018-08-14 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ [bdf] Remove unused overflow storage.
+
+ * src/bdf/bdf.h (bdf_glyphlist_t): Remove this type.
+ (bdf_font_t): Remove `overflow' field.
+ * src/bdf/bdflib.c (bdf_free_font): Remove `overflow' freeing.
+
+2018-08-14 Werner Lemberg <wl@gnu.org>
+
+ [cff] Fix segv in old engine.
+
+ Reported as
+
+ https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=9864
+
+ * src/psaux/cffdecode.c (cff_decoder_parse_charstrings)
+ <cff_op_random> [CFF_CONFIG_OPTION_OLD_ENGINE]: Use top dict's
+ `random' field directly if parsing dictionaries.
+
+2018-08-13 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ [bdf] Use unsigned types.
+
+ * src/bdf/bdf.h (bdf_glyph_t): Unsign `encoding'.
+ (bdf_font_t): Unsign `default_char'.
+ * src/bdf/bdfdrivr.h (BDF_encoding_el): Unsign `enc'.
+
+ * src/bdf/bdflib.c (_bdf_add_property, _bdf_parse_glyphs,
+ _bdf_parse_start): Updated accordingly.
+ * src/bdf/bdfdrivr.c (bdf_cmap_char_{index,next}): Ditto.
+
+2018-08-13 Werner Lemberg <wl@gnu.org>
+
+ * src/type42/t42parse.c (t42_parse_sfnts): One more format check.
+
+ Reported as
+
+ https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=9832
+
+2018-08-11 Werner Lemberg <wl@gnu.org>
+
+ * src/base/ftcalc.c (FT_Matrix_Check): Fix integer overflow.
+
+ Reported as
+
+ https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=9811
+
+2018-08-10 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ * src/sfnt/ttsbit.c (tt_sbit_decoder_load_compound): Follow specs.
+
+2018-08-10 Ben Wagner <bungeman@google.com>
+
+ * src/sfnt/sfobjs.c (sfnt_done_face): Fix memory leak (#54435).
+
+2018-08-10 Werner Lemberg <wl@gnu.org>
+
+ * src/base/ftobjs.c (FT_Render_Glyph_Internal): Improve tracing.
+
+2018-08-10 Werner Lemberg <wl@gnu.org>
+
+ Fix clang warnings.
+
+ * src/base/ftdebug.c (ft_trace_level_enabled,
+ ft_trace_level_disabled): Add `static' keyword.
+
+2018-08-09 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ [raster, smooth] Reinstate bitmap size limits.
+
+ This again moves outline and bitmap size checks one level up.
+
+ * src/base/ftoutln.c (FT_Outline_Render): Explicitly reject enormous
+ outlines.
+ * src/raster/ftrend1.c (ft_raster1_render): Reject enormous bitmaps
+ and, therefore, outlines that require them.
+ * src/smooth/ftsmooth.c (ft_smooth_render_generic): Ditto.
+
+ * src/raster/ftraster.c (ft_black_render): Remove outline size checks.
+ * src/smooth/ftgrays.c (gray_raster_render): Ditto.
+ [STANDALONE]: Remove `FT_Outline_Get_CBox' copy.
+
+2018-08-08 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ [pcf] Revert massive unsigning.
+
+2018-08-08 Werner Lemberg <wl@gnu.org>
+
+ [smooth] Improve tracing.
+
+ * src/smooth/ftgrays.c (gray_convert_glyph_inner): Only use tracing
+ if called the first time.
+ (gray_convert_glyph): Updated.
+
+2018-08-08 Werner Lemberg <wl@gnu.org>
+
+ Add internal functions `FT_Trace_Disable' and `FT_Trace_Enable'.
+
+ It sometimes makes sense to suppress tracing informations, for
+ example, if it outputs identical messages again and again.
+
+ * include/freetype/internal/ftdebug.h: Make `ft_trace_levels' a
+ pointer.
+ (FT_Trace_Disable, FT_Trace_Enable): New declarations.
+
+ * src/base/ftdebug.c (ft_trace_levels): Rename to...
+ (ft_trace_levels_enabled): ... this.
+ (ft_trace_levels_disabled): New array.
+ (ft_trace_levels): New pointer.
+ (FT_Trace_Disable, FT_Trace_Enable): Implement.
+ (ft_debug_init): Updated.
+
+2018-08-08 Werner Lemberg <wl@gnu.org>
+
+ Debugging improvements.
+
+ * src/base/ftobjs.c (pixel_modes): Move this array to top level
+ from ...
+ (FT_Load_Glyph): ... here.
+ (FT_Render_Glyph_Internal): Use `width' x `height' in trace message.
+ Use `pixel_modes'.
+
+2018-08-08 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ [pcf] Massive unsigning (part 2).
+
+ Treat all size related properties as unsigned values.
+
+ * src/pcf/pcf.h (PCF_ParsePropertyRec): Use unsigned `name' and
+ `value'.
+ * src/pcf/pcfread.c (pcf_get_properties, pcf_load_font): Updated
+ parsing code and handling of AVERAGE_WIDTH, POINT_SIZE, PIXEL_SIZE,
+ RESOLUTION_X and RESOLUTION_Y.
+
+2018-08-08 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ [pcf] Massive unsigning (part 1).
+
+ Unofficial specifications hesitate to use unsigned 32-bit integers.
+ Negative values caused a lot of trouble in the past and it is safer
+ and easier to treat some properties as unsigned.
+
+ * src/pcf/pcf.h (PCF_AccelRec): Use unsigned values for `fontAscent',
+ `fontDescent', and `maxOverlap'.
+ * src/pcf/pcfread.c (pcf_load_font, pcf_get_accel): Updated.
+ * src/pcf/pcfdrivr.c (PCF_Glyph_Load, PCF_Size_Select,
+ PCF_Size_Request): Updated.
+
+2018-08-07 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ * src/pcf/pcfread.c (pcf_get_bitmaps): Unsign `offsets' and
+ `bitmapSizes'.
+
+2018-08-06 Werner Lemberg <wl@gnu.org>
+
+ * devel/ftoption.h: Synchronize with main `ftoption.h'.
+
+2018-08-06 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ [pcf] Use unsigned types.
+
+ * src/pcf/pcf.h (PCF_Encoding): Use unsigned `enc'.
+ * src/pcf/pcfdrivr.c (pcf_cmap_char_{index,next}): Ditto.
+ * src/pcf/pcfread.c (pcf_get_encodings): Use unsigned types.
+
+2018-08-05 Werner Lemberg <wl@gnu.org>
+
+ * src/truetype/ttgload.c (compute_glyph_metrics): Fix overflow.
+
+ Reported as
+
+ https://bugs.chromium.org/p/chromium/issues/detail?id=777151
+
+2018-08-04 Werner Lemberg <wl@gnu.org>
+
+ * src/truetype/ttinterp.c (opcode_name): Fix typos.
+
+2018-08-04 Werner Lemberg <wl@gnu.org>
+
+ Fix clang warnings.
+
+ * src/base/ftoutln.c (FT_Outline_EmboldenXY): Fix type of
+ `orientation'.
+
+ * src/gxvalid/gxvcommn.c (gx_lookup_value_read): Fix signature.
+
+ * src/pcf/pcfread.c (pcf_get_encodings): Fix type of some variables.
+ Add cast.
+
+ * src/type1/t1load.c (parse_weight_vector): Fix cast.
+
+2018-07-31 Werner Lemberg <wl@gnu.org>
+
+ * src/cid/cidtoken.h: Handle `XUID' keyword.
+
+2018-07-31 Werner Lemberg <wl@gnu.org>
+
+ [cid] Trace PostScript dictionaries.
+
+ * src/cid/cidload.c: Include FT_INTERNAL_POSTSCRIPT_AUX_H.
+ (cid_load_keyword, cid_parse_font_matrix, parse_fd_array,
+ parse_expansion_factor, cid_parse_dict): Add tracing calls.
+ (parse_font_name): New function to trace `/FontName' keywords in
+ /FDArray dict.
+ (cid_field_records): Register `parse_font_name'.
+
+2018-07-30 Werner Lemberg <wl@gnu.org>
+
+ [cff] Fix typo.
+
+ Reported as
+
+ https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=9409
+
+ * src/cff/cffdrivr.c (cff_get_cid_from_glyph_index): Fix boundary
+ check.
+
+2018-07-29 Werner Lemberg <wl@gnu.org>
+
+ * src/pcf/pcfread.c (pcf_get_encodings): Another thinko.
+
+ Reported as
+
+ https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=9608
+
+2018-07-28 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ [smooth] Fix Harmony memory management.
+
+ Reported as
+
+ https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=9501
+
+ * src/smooth/ftgrays.c (ft_smooth_render_generic): Restore buffer
+ after each rendering in case of failure.
+
+2018-07-28 Werner Lemberg <wl@gnu.org>
+
+ [type1] Avoid segfaults with `FT_Get_PS_Font_Value'.
+
+ Reported as
+
+ https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=9610
+
+ * src/type1/t1driver.c (t1_ps_get_font_value): Protect against NULL.
+
+2018-07-27 Werner Lemberg <wl@gnu.org>
+
+ [truetype] Make `TT_Set_MM_Blend' idempotent (#54388).
+
+ * src/truetype/ttgxvar.c (tt_set_mm_blend): Correctly set
+ `face->doblend' if the current call to the function yields the same
+ blend coordinates as the previous call.
+
+2018-07-27 Werner Lemberg <wl@gnu.org>
+
+ [psaux, type1]: More tracing improvements.
+
+ * src/psaux/psintrp.c (cf2_interpT2CharString): Trace skipped
+ outline commands.
+
+ * src/psaux/t1decode.c (t1_decoder_parse_charstring): Fix
+ missing case.
+ (t1_decoder_parse_metrics): Make tracing output more compact.
+
+ * src/type1/t1gload.c (T1_Compute_Max_Advance): Be less verbose.
+ (T1_Get_Advances): Add tracing.
+
+2018-07-25 Werner Lemberg <wl@gnu.org>
+
+ [psaux, type1] Trace PostScript dictionaries and other things.
+
+ The tracing of /Encoding, /Subrs, and /Charstrings is rudimentary
+ right now.
+
+ * src/psaux/psobjs.c (ps_parser_load_field,
+ ps_parser_load_field_table): Add tracing calls.
+
+ * src/psaux/t1decode.c (t1_decoder_parse_charstrings): Make tracing
+ output more compact.
+
+ * src/type1/t1gload.c (T1_Compute_Max_Advance, T1_Get_Advances): Add
+ tracing messages.
+
+ * src/type1/t1load.c (parse_blend_axis_types,
+ parse_blend_design_positions, parse_blend_design_map,
+ parse_weight_vector, t1_load_keyword, t1_parse_font_matrix,
+ parse_encoding, parse_subrs, parse_charstrings, T1_Open_Face): Add
+ tracing calls.
+
+ * src/type1/t1objs.c (T1_Face_Init): Add tracing call.
+
+ * src/sfnt/sfobjs.c (sfnt_init_face): Make tracing message more
+ verbose.
+
+2018-07-25 Werner Lemberg <wl@gnu.org>
+
+ Fix minor ASAN run-time warnings.
+
+ * src/base/ftutil.c (ft_mem_alloc, ft_mem_realloc): Only call
+ `FT_MEM_ZERO' if we actually have a buffer.
+ (ft_mem_dup): Only call `ft_memcpy' if we actually have a buffer.
+
+2018-07-24 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ [build] Fortify dllexport/dllimport attributes (#53969,#54330).
+
+ We no longer use predefined _DLL, which can be defined for static
+ builds too with /MD. We use DLL_EXPORT and DLL_IMPORT instead,
+ following libtool convention.
+
+ * CMakeLists.txt [WIN32], builds/windows/vc2010/freetype.vcxproj:
+ Define DLL_EXPORT manually.
+
+ * include/freetype/config/ftconfig.h, builds/unix/ftconfig.in,
+ builds/vms/ftconfig.h, builds/windows/vc2010/index.html,
+ src/base/ftver.rc: /_DLL/d, s/FT2_DLLIMPORT/DLL_IMPORT/.
+
+2018-07-24 Werner Lemberg <wl@gnu.org>
+
+ [type1] Check relationship between number of axes and designs.
+
+ For Multiple Masters fonts we don't support intermediate designs;
+ this implies that
+
+ number_of_designs == 2 ^^ number_of_axes
+
+ Reported as
+
+ https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=9557
+
+ * src/type1/t1load.c (T1_Open_Face): Ensure above constraint.
+ (T1_Get_MM_Var): Remove now redundant test.
+
+2018-07-24 Hin-Tak Leung <htl10@users.sourceforge.net>
+
+ [truetype] Match ttdebug's naming of instruction mnemonics.
+
+ * src/truetype/ttinterp.c: The form used in ttdebug,
+ "MDRP[G,B,W,?]", etc., is slightly more readable than
+ "MDRP[00,01,02,03]".
+
+2018-07-24 Werner Lemberg <wl@gnu.org>
+
+ * src/pcf/pcfread.c (pcf_get_encodings): Thinko.
+
+ Reported as
+
+ https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=9561
+
+2018-07-22 Werner Lemberg <wl@gnu.org>
+
+ * src/pcf/pcfread.c (pcf_get_encodings): Check index of defaultChar.
+
+ Reported as
+
+ https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=9527
+
+2018-07-22 Werner Lemberg <wl@gnu.org>
+
+ * src/pcf/pcfread.c (pcf_load_font): Fix number of glyphs.
+
+ This is an oversight of the module change 2018-07-21.
+
+ Reported as
+
+ https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=9524
+
+2018-07-22 Werner Lemberg <wl@gnu.org>
+
+ [cid] Sanitize `BlueShift' and `BlueFuzz'.
+
+ This code is taken from the type1 module.
+
+ Reported as
+
+ https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=9510
+
+ * src/cid/cidload.c (parse_fd_array): Set some private dict default
+ values.
+ (cid_face_open): Do the sanitizing.
+ Fix some tracing messages.
+
+2018-07-21 Werner Lemberg <wl@gnu.org>
+
+ [pcf] Fix handling of the undefined glyph.
+
+ This change makes the driver use the `defaultChar' property of PCF
+ files.
+
+ * src/pcf/pcf.h (PCF_FaceRec): Change type of `defaultChar' to
+ unsigned.
+
+ * src/pcf/pcfread.c (pcf_get_encodings): Read `defaultChar' as
+ unsigned.
+ Validate `defaultChar'.
+ If `defaultChar' doesn't point to glyph index zero, swap glyphs with
+ index zero and index `defaultChar' and adjust the encodings
+ accordingly.
+
+ * src/pcf/pcfdrivr.c (pcf_cmap_char_index, pcf_cmap_char_next,
+ PCF_Glyph_Load): Undo change from 2002-06-16 which always enforced
+ the first character in the font to be the default character.
+
+2018-07-20 Armin Hasitzka <prince.cherusker@gmail.com>
+
+ Move the legacy fuzz target to the `freetype-testing' repository.
+
+ It can now be found at
+
+ https://github.com/freetype/freetype2-testing/tree/master/fuzzing/src/legacy
+
+ * src/tools/ftfuzzer: Remove this folder and its contents from the
+ repository.
+
+2018-07-20 Werner Lemberg <wl@gnu.org>
+
+ [cff] Avoid left-shift of negative numbers (#54322).
+
+ * src/cff/cffgload.c (cff_slot_load): Use multiplication.
+
+2018-07-17 Werner Lemberg <wl@gnu.org>
+
+ Allow FT_ENCODING_NONE for `FT_Select_Charmap'.
+
+ This is a valid encoding tag for BDF, PCF, and Windows FNT, and
+ there is no reason to disallow it for these formats.
+
+ * src/base/ftobjs.c (FT_Select_Charmap): Implement it.
+
+2018-07-17 Werner Lemberg <wl@gnu.org>
+
+ * src/pcf/pcfread.c (pcf_get_encodings): Trace `defaultChar'.
+
+2018-07-16 Armin Hasitzka <prince.cherusker@gmail.com>
+
+ * include/freetype/internal/ftcalc.h: Add macros for handling
+ harmless over-/underflowing `FT_Int' values.
+
+ * src/sfnt/sfdriver.c (fixed2float): Fix negation of
+ `(int)(-2147483648)'.
+
+ Reported as
+
+ https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=9423
+
+2018-07-16 Werner Lemberg <wl@gnu.org>
+
+ * src/truetype/ttgxvar.c (tt_set_mm_blend): Fix off-by-one error.
+
+ Reported as
+
+ https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=9412
+
+2018-07-12 Werner Lemberg <wl@gnu.org>
+
+ * src/base/ftoutln.c (FT_Outline_Get_Orientation): Init `cbox'.
+
+ Taken from patch #9667, written by Steve Langasek
+ <vorlon@debian.org>.
+
+ This fixes a build failure (most probably a bug in gcc) on ppc64el
+ when building with -O3.
+
+2018-07-05 Werner Lemberg <wl@gnu.org>
+
+ Fix typo (#54238).
+
+ * src/base/ftcolor.c (FT_Palette_Set_Foreground_Color)
+ [!TT_CONFIG_OPTION_COLOR_LAYERS]: Add return value.
+
+2018-07-05 Werner Lemberg <wl@gnu.org>
+
+ Adjust table size comparisons (#54242).
+
+ * src/sfnt/ttcpal.c (tt_face_load_cpal): Implement it.
+
+2018-07-05 Werner Lemberg <wl@gnu.org>
+
+ Fix more 32bit issues (#54208).
+
+ * src/cff/cffload.c (cff_blend_build_vector): Convert assertion into
+ run-time error.
+
+ * src/truetype/ttgxvar.c (ft_var_to_normalized): Protect against
+ numeric overflow.
+
+2018-07-04 Werner Lemberg <wl@gnu.org>
+
+ Fix 32bit build warnings (#54239).
+
+ * src/base/ftbitmap.c (FT_Bitmap_Blend): Add casts to avoid signed
+ vs. unsigned comparisons.
+
+ * srb/sfnt/ttcolr.c (tt_face_get_colr_layer): Ditto.
+
+2018-07-02 Jeff Carey <Jeff.Carey@monotype.com>
+
+ * src/psnames/psmodule.c (ps_unicodes_init): Fix alloc debugging.
+
+2018-07-02 Werner Lemberg <wl@gnu.org>
+
+ s/palette_types/palette_flags/.
+
+ Suggested by Behdad.
+
+2018-07-02 Werner Lemberg <wl@gnu.org>
+
+ Make `FT_Get_Color_Glyph_Layer' return FT_Bool.
+
+ * include/freetype/freetype.h, src/base/ftobjs.c
+ (FT_Get_Color_Glyph_Layer, FT_Render_Glyph_Internal): Updated.
+
+ * include/freetype/internal/sfnt.h (TT_Get_Colr_Layer_Func),
+ src/sfnt/ttcolr.h, src/sfnt/ttcolr.c (tt_face_get_colr_layer):
+ Updated.
+
+2018-07-01 Werner Lemberg <wl@gnu.org>
+
+ * src/base/ftobjs.c (FT_Get_Color_Glyph_Layer): Guard SFNT function.
+
+ Reported by Behdad.
+
+2018-06-28 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ * src/base/fttrigon.c (FT_Tan): Improve accuracy.
+ (FT_Vector_Rotate): Simplify.
+
+2018-06-28 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ * src/base/ftobjs.c (FT_Set_Charmap): Robustify.
+
+2018-06-25 Werner Lemberg <wl@gnu.org>
+
+ [truetype] Fix memory leak.
+
+ * src/truetype/ttgxvar.c (TT_Vary_Apply_Glyph_Deltas): Add initializers.
+ Fix typo in `goto' destination.
+
+ Reported as
+
+ https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=9071
+
+2018-06-25 Werner Lemberg <wl@gnu.org>
+
+ * src/truetype/ttgxvar.c (tt_face_vary_cvt): Add initializers.
+
+ Reported as
+
+ https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=9070
+
+2018-06-24 Werner Lemberg <wl@gnu.org>
+
+ [truetype] Increase precision while applying VF deltas.
+
+ It turned out that we incorrectly round CVT and glyph point deltas
+ before accumulation, leading to severe positioning errors if there
+ are many delta values to sum up.
+
+ Problem reported by Akiem Helmling <akiem@underware.nl> and analyzed
+ by Behdad.
+
+ * src/truetype/ttgxvar.c (ft_var_readpackeddelta): Return deltas in
+ 16.16 format.
+ (tt_face_var_cvt): Collect deltas in `cvt_deltas', which is a 16.16
+ format array, and add the accumulated values to the CVT at the end
+ of the function.
+ (TT_Vary_Apply_Glyph_Deltas): Store data in `points_org' and
+ `points_out' in 16.16 format.
+ Collect deltas in `point_deltas_x' and `point_deltas_y', which are
+ 16.16 format arrays, and add the accumulated values to the glyph
+ coordinates at the end of the function.
+
+2018-06-24 Werner Lemberg <wl@gnu.org>
+
+ New base function `FT_Matrix_Check' (#54019).
+
+ * src/base/ftcalc.c (FT_Matrix_Check): New base function to properly
+ reject degenerate font matrices.
+
+ * include/freetype/internal/ftcalc.h: Updated.
+
+ * src/cff/cffparse.c (cff_parse_font_matrix), src/cid/cidload.c
+ (cid_parse_font_matrix), src/type1/t1load.c (t1_parse_font_matrix),
+ src/type42/t42parse.c (t42_parse_font_matrix): Use
+ `FT_Matrix_Check'.
+
+2018-06-23 Werner Lemberg <wl@gnu.org>
+
+ Fix typo.
+
+ Reported by Behdad.
+
+ * src/base/ftcolor.c (FT_Palette_Data_Get)
+ [!TT_CONFIG_OPTION_COLOR_LAYERS]: s/apalette/apalette_data/.
+
+2018-06-21 Werner Lemberg <wl@gnu.org>
+
+ s/FT_PALETTE_USABLE_WITH_/FT_PALETTE_FOR_/.
+
+ * include/freetype/ftcolor.h, include/freetype/internal/sfnt.h,
+ src/sfnt/ttcolr.c: Do it.
+
+2018-06-19 Werner Lemberg <wl@gnu.org>
+
+ [sfnt] Fix CPAL heap buffer overflow.
+
+ Reported as
+
+ https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=8968
+
+ * src/sfnt/ttcpal.c (tt_face_load_cpal): Guard CPAL version 1
+ offsets.
+
+2018-06-19 Werner Lemberg <wl@gnu.org>
+
+ Doh. Don't use CPAL or COLR data if tables are missing.
+
+ Reported by Alexei.
+
+ * src/sfnt/ttcolr.c (tt_face_get_colr_layer): Return immediately if
+ `colr' is NULL.
+
+ * src/sfnt/ttcpal.c (tt_face_palette_set): Return immediately, if
+ `cpal' is NULL.
+
+2018-06-17 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ [base] Introduce `FT_New_Glyph'.
+
+ This function facilitates access to full capabilities of FreeType
+ rendering engine for custom glyphs. This can be quite useful for
+ consistent rendering of mathematical and chemical formulas, e.g.
+
+ https://bugs.chromium.org/p/chromium/issues/detail?id=757078
+
+ * include/freetype/ftglyph.h, src/base/ftglyph.c (FT_New_Glyph): New
+ function.
+
+2018-06-17 Armin Hasitzka <prince.cherusker@gmail.com>
+
+ [bdf] Fix underflow of an unsigned value.
+
+ bdflib.c:1562 could be reached with `font->glyphs_used == 0'. That
+ caused an underflow of the unsigned value which results in undefined
+ behaviour.
+
+ * src/bdf/bdflib.c (_bdf_parse_glyphs): Bail out earlier than before
+ if the `ENCODING' keyword cannot be found.
+
+2018-06-17 Werner Lemberg <wl@gnu.org>
+
+ [base] Add tracing for `FT_Bitmap_Blend'.
+
+ * include/freetype/internal/fttrace.h (trace_bitmap): New
+ enumeration.
+
+ * src/base/ftbitmap.c (FT_COMPONENT): Define.
+ (FT_Bitmap_Blend): Add `FT_TRACE5' calls.
+
+2018-06-17 Werner Lemberg <wl@gnu.org>
+
+ s/trace_bitmap/trace_checksum/.
+
+ * include/freetype/internal/fttrace.h: s/bitmap/checksum/.
+
+ * src/base/ftobjs.c (FT_COMPONENT): s/trace_bitmap/trace_checksum/.
+ Adjust code.
+
+2018-06-16 Werner Lemberg <wl@gnu.org>
+
+ [sfnt] Fix color glyph layer loading.
+
+ * src/sfnt/ttcolr.c (Colr): Add `table_size' field.
+ (tt_face_load_colr): Set it.
+ (tt_face_get_colr_layer): Check pointer limit for layer entries.
+
+2018-06-16 Werner Lemberg <wl@gnu.org>
+
+ [sfnt] Fix color palette loading.
+
+ Reported as
+
+ https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=8933
+
+ * src/sfnt/ttcpal.c (Cpal): Add `table_size' field.
+ (tt_face_load_cpal): Set it.
+ (tt_face_palette_set): Check pointer limit for color entries.
+
+2018-06-16 Werner Lemberg <wl@gnu.org>
+
+ * src/base/ftbitmap.c (FT_Bitmap_Blend): Avoid integer overflow.
+
+2018-06-16 Werner Lemberg <wl@gnu.org>
+
+ Add `FT_Bitmap_Blend' API.
+
+ Still missing: Support for negative bitmap pitch and subpixel offset
+ of source bitmap.
+
+ * include/freetype/ftbitmap.h, src/base/ftbitmap.c
+ (FT_Bitmap_Blend): New function.
+
+2018-06-14 Werner Lemberg <wl@gnu.org>
+
+ Replace `FT_Get_GlyphLayers' with `FT_Get_Color_Glyph_Layer'.
+
+ This avoids any additional allocation of COLR related structures in
+ a glyph slot.
+
+ * include/freetype/freetype.h (FT_Glyph_Layer, FT_Glyph_LayerRec,
+ FT_Get_GlyphLayers): Removed.
+
+ * include/freetype/internal/ftobjs.h (FT_Colr_InternalRec): Removed.
+ (FT_Slot_InternalRec): Remove `color_layers'.
+
+ * include/freetype/internal/sfnt.h (TT_Load_Colr_Layer_Func):
+ Removed.
+ (SFNT_Interface, FT_DEFINE_SFNT_INTERFACE): Remove
+ `load_colr_layer'.
+
+ * src/base/ftobjs.c (ft_glyph_slot_done): Updated.
+ (FT_Render_Glyph_Internal): Use `FT_Get_Color_Glyph_Layer'.
+ (FT_Get_GlyphLayers): Removed.
+
+ * src/sfnt/sfdriver.c (sfnt_interface): Updated.
+
+ * src/sfnt/ttcolr.c (tt_face_load_colr_layers): Removed.
+ * src/sfnt/ttcolr.h: Updated.
+
+ * src/truetype/ttgload.c (TT_Load_Glyph): Updated.
+
+2018-06-14 Werner Lemberg <wl@gnu.org>
+
+ Provide iterative API to access `COLR' data.
+
+ This solution doesn't store any data in an `FT_GlyphSlot' object.
+
+ * include/freetype/freetype.h (FT_LayerIterator): New structure.
+ (FT_Get_Color_Glyph_Layer): New function.
+
+ * include/freetype/internal/sfnt.h (TT_Get_Colr_Layer_Func): New
+ function type.
+ (SFNT_Interface, FT_DEFINE_SFNT_INTERFACE): Add it.
+
+ * src/base/ftobjs.c (FT_Get_Color_Glyph_Layer): Implement it.
+
+ * src/sfnt/ttcolr.c (tt_face_get_colr_layer): New function.
+ * src/sfnt/ttcolr.h: Updated.
+
+ * src/sfnt/sfdriver.c (sfnt_interface): Updated.
+
+2018-06-14 Werner Lemberg <wl@gnu.org>
+
+ Add glyph index and glyph load flags to glyph slot.
+
+ * include/freetype/freetype.h (FT_GlyphSlotRec): Rename unused
+ `reserved' field to `glyph_index'.
+
+ * include/freetype/internal/ftobjs.h (FT_Slot_InternalRec): Add
+ `load_flags' field.
+
+ * src/base/ftobjs.c (FT_Load_Glyph): Set new fields.
+
+2018-06-14 Werner Lemberg <wl@gnu.org>
+
+ [sfnt] Move `CPAL' stuff into separate files.
+
+ * src/sfnt/sfdriver.c: Include `ttcpal.h'.
+ * src/sfnt/sfnt.c: Include `ttcpal.c'.
+
+ * src/sfnt/ttcolr.c, src/sfnt/ttcolr.h: Move CPAL stuff to ...
+ * src/sfnt/ttcpal.c, src/sfnt/ttcpal.c: ... these new files.
+
+ * src/sfnt/Jamfile (_sources), src/sfnt/rules.mk (SFNT_DRV_SRC):
+ Updated.
+
+ * include/freetype/internal/fttrace.h: Add support for `colr' and
+ `cpal'.
+ Sort entries.
+
+2018-06-13 Werner Lemberg <wl@gnu.org>
+
+ [sfnt] Separate `CPAL' and `COLR' table handling.
+
+ Later on we want to support the `SVG' table also, which needs `CPAL'
+ (but not `COLR').
+
+ * include/freetype/internal/sfnt.h (SFNT_Interface): Add `load_cpal'
+ and `free_cpal' fields.
+ (FT_DEFINE_SFNT_INTERFACE): Updated.
+
+ * include/freetype/internal/tttypes.h (TT_FaceRec): Replace
+ `colr_and_cpal' fields with `cpal' and `colr'.
+
+ * src/sfnt/sfdriver.c (sfnt_interface): Updated.
+
+ * src/sfnt/sfobjs.c (sfnt_load_face, sfnt_done_face): Updated.
+
+ * src/sfnt/ttcolr.c (Colr, Cpal): Add `table' field.
+ (ColrCpal): Removed.
+ (tt_face_load_colr): Split off CPAL handling into...
+ (tt_face_load_cpal): ... this new function.
+ (tt_face_free_colr): Split off CPAL handling into...
+ (tt_face_free_cpal): ... this new function.
+ (tt_face_load_colr_layers, tt_face_palette_set): Updated.
+
+ * src/sfnt/ttcolr.h: Updated.
+
+ * src/truetype/ttgload.c (TT_Load_Glyph): Updated.
+
+2018-06-12 Werner Lemberg <wl@gnu.org>
+
+ [sfnt] Fix `sizeof' thinko.
+
+ * src/sfnt/ttcolr.c (tt_face_load_colr, tt_face_palette_set): Don't
+ use `sizeof' for computing array limit.
+
+2018-06-12 Werner Lemberg <wl@gnu.org>
+
+ Finish CPAL/COLR support (4/4).
+
+ * src/sfnt/ttcolr.c (tt_face_find_color): Removed.
+ (tt_face_colr_blend_layer): Use `face->palette' instead of calling
+ `tt_face_find_color'.
+ Use and set text foreground color.
+
+2018-06-12 Werner Lemberg <wl@gnu.org>
+
+ Finish CPAL/COLR support (3/4).
+
+ * src/base/ftcolor.c: Include FT_INTERNAL_SFNT_H.
+ (FT_Palette_Select, FT_Palette_Set_Foreground_Color): Implement
+ functions.
+
+2018-06-12 Werner Lemberg <wl@gnu.org>
+
+ Finish CPAL/COLR support (2/4).
+
+ * src/sfnt/ttcolr.c (tt_face_palette_set): New function.
+ (tt_face_load_colr): Allocate `face->palette' and call
+ `tt_face_palette_set'.
+ Adjust return error code in case of error.
+
+ * src/sfnt/ttcolr.h: Updated.
+
+ * include/freetype/internal/sfnt.h (TT_Set_Palette_Func): New
+ function type.
+ (SFNT_Interface, FT_DEFINE_SFNT_INTERFACE): Add it.
+
+ * src/sfnt/sfdriver.c (sfnt_interface), src/sfnt/sfobjs.c
+ (sfnt_done_face): Updated.
+
+2018-06-12 Werner Lemberg <wl@gnu.org>
+
+ Finish CPAL/COLR support (1/4).
+
+ * include/freetype/internal/tttypes.h (TT_FaceRec): New fields
+ `palette_index', `palette', `have_foreground_color' and
+ `foreground_color'.
+
+2018-06-12 Werner Lemberg <wl@gnu.org>
+
+ [sfnt] Minor.
+
+ * src/sfnt/ttcolr.c (tt_face_load_colr_layers):
+ s/palette_index/palette_entry_index/ for consistency.
+ Adjust return error code in case of error.
+
+2018-06-11 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ [raster] Clean up.
+
+ * src/raster/ftraster.c (black_TWorker, SCALED, Set_High_Precision):
+ Clean up after 5-level gray removal (8dc8635874).
+ (Vertical_Sweep_Span): Be brief.
+
+2018-06-10 Werner Lemberg <wl@gnu.org>
+
+ [sfnt] Fix compiler warnings.
+
+ * src/sfnt/ttcolr.c (tt_face_load_colr, tt_face_load_colr_layers,
+ tt_face_colr_blend_layer): Add `NULL' initializers.
+
+2018-06-10 Werner Lemberg <wl@gnu.org>
+
+ s/FT_Palette/FT_Palette_Data/, s/palette/palette_data/.
+
+ * include/freetype/ftcolor.h, include/freetype/internal/tttypes.h,
+ src/base/ftcolor.c, src/sfnt/sfobjs.c, src/sfnt/ttcolr.c: Updated.
+
+2018-06-10 Nikolaus Waxweiler <madigens@gmail.com>
+
+ CMakeLists: also accept IOS_PLATFORM=SIMULATOR64
+
+ This might be needed to build FreeType for the iOS simulator. See
+ https://savannah.nongnu.org/bugs/index.php?54048. Patch contributed
+ by Steve Robinson.
+
+ * CMakeLists.txt: Accept IOS_PLATFORM=SIMULATOR64
+
+2018-06-10 Werner Lemberg <wl@gnu.org>
+
+ Implement `FT_Palette_Get'.
+
+ * src/base/ftcolor.c: New file.
+
+ * src/base/Jamefile (_sources), src/base/rules.mk (BASE_SRC),
+ src/base/ftbase.c: Add `ftcolor.c'.
+
+2018-06-10 Werner Lemberg <wl@gnu.org>
+
+ * src/sfnt/ttcolr.c (tt_face_load_colr): Improve overflow checks.
+
+2018-06-09 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ [raster] Deal with pitch sign earlier.
+
+ * src/raster/ftraster.c (black_TWorker): Remove unused `traceG',
+ s/bTarget/bOrigin/.
+ (Render_Glyph): Set `ras.bOrigin' at the bottom-left corner.
+ (Vertical_Sweep_Init, {Vertical,Horizontal}_Sweep_{Span,Drop}):
+ Updated accordingly.
+
+2018-06-09 Werner Lemberg <wl@gnu.org>
+
+ [sfnt] Read `CPAL' version 1 tables.
+
+ * include/freetype/internal.tttypes.h: Include FT_COLOR_H.
+ (TT_FaceRec): Add `palette' field.
+
+ * src/sfnt/ttcolr.c: Include FT_COLOR_H.
+ (Cpal): Remove all data covered by the new `palette' field in
+ `TT_FaceRec'.
+ (tt_face_load_colr): Updated.
+ Read `CPAL' version 1 data.
+ (tt_face_load_colr_layers, tt_face_find_color): Updated.
+
+ * src/sfnt/sfobjs.c (sfnt_done_face): Free glyph color palette data.
+
+2018-06-07 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ [base] API for Harmony LCD rendering.
+
+ This introduces `FT_Library_SetLcdGeometry' for setting up arbitrary
+ LCD subpixel geometry including non-striped patterns.
+
+ * src/base/ftlcdfil.c (FT_Library_SetLcdGeometry): New function.
+ * include/freetype/ftlcdfil.h: Document it.
+ * include/freetype/freetype.h: Minor.
+ * include/freetype/ftchapters.h: Minor.
+
+2018-06-06 Werner Lemberg <wl@gnu.org>
+
+ ftcolor.h: Redesign API.
+
+ While going to implement it I noticed that I need access to most of
+ the `CPAL' elements; I thus plan to add a `cpal' field to
+ `TT_FaceRec', which makes most of the previously suggested API
+ functions obsolete because the fields will be directly accessible.
+
+2018-06-06 Parth Wazurkar <parthwazurkar@gmail.com>
+
+ [bdf, pcf] Remove deprecated FT_FACE_FLAG_FAST_GLYPHS flag.
+
+ * src/bdf/bdfdrivr.c (BDF_Face_Init): Remove deprecated
+ FT_FACE_FLAG_FAST_GLYPHS flag.
+
+ * src/pcf/pcfread.c (pcf_load_font): Remove deprecated
+ FT_FACE_FLAG_FAST_GLYPHS flag.
+
+2018-06-06 Werner Lemberg <wl@gnu.org>
+
+ [smooth, raster] Limit bitmap size (#54019).
+
+ * src/raster/ftraster.c [STANDALONE] (FT_Outline_Get_CBox): Add
+ function.
+ [!STANDALONE]: Include FT_OUTLINE_H.
+ (ft_black_render): Compute CBox and reject glyphs larger than
+ 0xFFFF x 0xFFFF.
+
+ * src/smooth/ftgrays.c (gray_raster_render): Reject glyphs larger
+ than 0xFFFF x 0xFFFF.
+
+2018-06-03 Armin Hasitzka <prince.cherusker@gmail.com>
+
+ * src/smooth/ftgrays.c (gray_convert_glyph): Remove unused variables.
+
+2018-06-03 Werner Lemberg <wl@gnu.org>
+
+ * src/tools/glnames.py (main): Emit header in `light' comment style.
+
+2018-06-02 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ [smooth] Attempt to mitigate bug #54019.
+
+ The robust rendering of estra large glyphs came with unbearable cost.
+ The old way of bisecting should fail but fail faster.
+
+ * src/smooth/ftgrays.c (gray_convert_glyph): Switch back to bisecting
+ in y-direction.
+
+2018-06-02 Werner Lemberg <wl@gnu.org>
+
+ * src/truetype/ttinterp.c (Ins_MIRP): Use SUB_LONG; avoid FT_ABS.
+
+ Reported as
+
+ https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=8706
+
+2018-06-02 Werner Lemberg <wl@gnu.org>
+
+ * src/autofit/afwarp.h: Use AF_CONFIG_OPTION_USE_WARPER (#54033).
+
+2018-05-31 Werner Lemberg <wl@gnu.org>
+
+ * src/raster/ftraster.c (black_TWorker_): Remove `gTarget' field.
+
+ This is no longer used.
+
+2018-05-31 Werner Lemberg <wl@gnu.org>
+
+ [sfnt] Get colors from `CPAL' table in right order (#54015).
+
+ * src/sfnt/ttcolr.c (tt_face_find_color): Fix it.
+
+2018-05-30 Werner Lemberg <wl@gnu.org>
+
+ ftcolor.h: Improve API design, fix typos (#54011, #54014).
+
+ * include/freetype/ftcolor.h (FT_Palette_Get_Names): Replace with...
+ (FT_Palette_Get_Name_IDs): ... this function.
+ (FT_Palette_Get_Entry_Names): Replace with...
+ (FT_Palette_Get_Entry_Name_IDs): ... this function
+ s/FT_Palette_Set_Foreground_COlor/FT_Palette_Set_Foreground_Color/.
+
+2018-05-30 Armin Hasitzka <prince.cherusker@gmail.com>
+
+ Beautify a3cfed5e87232c933bdc64f43e8ebebcfd18b41b.
+
+ * src/autofit/afloader.c (af_loader_load_glyph): Move the
+ initialisationand declaration of variables into the if-block.
+
+2018-05-30 Armin Hasitzka <prince.cherusker@gmail.com>
+
+ Fix pointer underflow.
+
+ The declaration of `edge2' can be reached with `edge1 == NULL' and
+ `axis->edges == 0' which results in undefined behaviour.
+
+ * src/autofit/afloader.c (af_loader_load_glyph): Initialise `edge2'
+ after checking `axis->num_edges > 1'. `edge1 != NULL' can be assumed.
+
+2018-05-30 Werner Lemberg <wl@gnu.org>
+
+ Various minor color fixes.
+
+ * include/freetype/config/ftheader.h (FT_COLOR_H): New macro.
+
+ * include/freetype/internal/ftobjs.h (FT_Colr_Internal): Change
+ type of `load_flags' to `FT_Int32'.
+
+ * include/freetype/internal/sfnt.h (TT_Load_Colr_Layer_Func): Change
+ type of `idx' to `FT_UInt'.
+ (TT_Blend_Colr_Func): Change type of `color_index' to `FT_UInt'.
+
+ * src/base/ftobjs.c (FT_Render_Glyph_Internal): Change type of
+ `load_flags' to `FT_Int32'.
+
+ * src/sfnt/ttcolr.c (find_base_glyph_record,
+ tt_face_load_colr_layers): Change type of `glyph_id' to `FT_UInt'.
+ (tt_face_find_color, tt_face_colr_blend_layer): Change type of
+ `color_index' to `FT_UInt'.
+ Fix signedness and type issues.
+
+ * src/sfnt/ttcolr.h: Updated.
+
+2018-05-25 Nikhil Ramakrishnan <ramakrishnan.nikhil@gmail.com>
+
+ [docmaker] Fix missing `Defined in (...)' under Windows/Cygwin.
+
+ This platform uses backslashes for paths, which docmaker didn't
+ understand correctly.
+
+ * src/tools/docmaker/tohtml.py (HtmlFormatter::blockEnter): Use
+ `os.path.normpath' to normalize the path for the platform being
+ used.
+
+2018-05-24 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ [smooth] Formalize Harmony LCD rendering.
+
+ This generalizes magic outline shifts that make Harmony LCD
+ rendering work in terms of precise two-dimensional RGB subpixel
+ positions. These coordinates are now set in time of the `smooth'
+ module initialization and later used to shift a glyph outline for
+ rendering. FT_RENDER_MODE_LCD and FT_RENDER_MODE_LCD_V use the same
+ coordinates. The letter, however, rotates them before using.
+ The LCD bitmap padding is also calculated using these coordinates.
+
+ * include/freetype/internal/ftobjs.h (FT_LibraryRec): New array field
+ `lcd_geometry'.
+ * src/base/ftlcdfil.c (ft_lcd_padding): Reworked.
+ * src/base/ftobjs.c (ft_glyphslot_preset_bitmap): Updated accordingly.
+
+ * src/smooth/ftsmooth.c [!FT_CONFIG_OPTION_SUBPIXEL_RENDERING]
+ (ft_smooth_init): Initialize `lcd_geometry'.
+ (ft_smooth_render_generic): Formalize outline shifts.
+
+2018-05-22 Werner Lemberg <wl@gnu.org>
+
+ [truetype] Reject elements of composites with invalid glyph indices.
+
+ Reported as
+
+ https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=8413
+
+ * src/truetype/ttgload.c (TT_Load_Composite_Glyph): Implement it.
+
+2018-05-22 Werner Lemberg <wl@gnu.org>
+
+ * src/truetype/ttgload.c (TT_Load_Simple_Glyph): Trace # of points.
+
+2018-05-20 Werner Lemberg <wl@gnu.org>
+
+ * include/freetype/ftcolor.h: New file.
+
+ This is an interface to the `CPAL' OpenType table. No
+ implementation yet.
+
+2018-05-18 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ * include/freetype/internal/ftcalc.h (FT_MSB): Verified `_MSC_VER'.
+
+ Actually `_BitScanReverse' is available since VS2005.
+
+2018-05-18 Werner Lemberg <wl@gnu.org>
+
+ * include/freetype/internal/ftcalc.h (FT_MSB): Use `_MSC_VER' value.
+
+ Older VC versions don't provide `_BitScanReverse'. We test for VC
+ 2013.
+
+ Reported by John Emmas <john@creativepost.co.uk>.
+
+2018-05-17 Werner Lemberg <wl@gnu.org>
+
+ s/inline/__inline/ for MSVC.
+
+ Reported by John Emmas <john@creativepost.co.uk>.
+
+ * include/freetype/internal/ftcalc.h (FT_MSB) [_MSC_VER]: Do it.
+
+2018-05-16 Werner Lemberg <wl@gnu.org>
+
+ Add function `FT_Get_GlyphLayers' to access `COLR' table data.
+
+ * include/freetype/internal/ftobjs.h (FT_Glyph_LayerRec): Move this
+ structure to...
+ * include/freetype/freetype.h (FT_Glyph_LayerRec): ... this
+ header file.
+ (FT_Glyph_Layer): New typedef.
+ Update code to use it where appropriate.
+
+ * src/base/ftobjs.c (FT_Get_GlyphLayers): New function.
+
+2018-05-15 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ [base] Fix mono bitmap presetting (#53896).
+
+ It is rather fundamental to set monochrome bitmap based on rounded
+ CBox because the b/w rasterizer turns on pixels when their centers are
+ inside the glyph outline. The dropout control is unpredictable and can
+ distort narrow glyphs if the bitmap is too wide.
+
+ Reported by Chris Liddell.
+
+ * src/base/ftobjs.c (ft_glyphslot_preset_bitmap): If BBox boundaries
+ are too close, adjust them before rounding.
+
+2018-05-15 Werner Lemberg <wl@gnu.org>
+
+ [psaux] Fix compiler warning (#53915).
+
+ * src/psaux/psft.c (cf2_freeT1SeacComponent): Do it.
+
+2018-05-15 Werner Lemberg <wl@gnu.org>
+
+ [sfnt] Fix memory leak in handling `COLR' data.
+
+ * src/truetype/ttgload.c (TT_Load_Glyph): Free old `layers' array
+ before reassigning allocated memory.
+ Only allocate `color_layers' if we don't have one already.
+
+2018-05-15 Werner Lemberg <wl@gnu.org>
+
+ [sfnt] If `COLR' is present, don't assume that all glyphs use it.
+
+ * src/sfnt/ttcolr.c (tt_face_load_colr_layers): Return FT_Err_Ok if
+ current glyph is not a `COLR' base glyph.
+
+ * src/truetype/ttgload.c (TT_Load_Glyph): Don't allocate
+ `color_layers' if there are no color layers.
+
+2018-05-14 Werner Lemberg <wl@gnu.org>
+
+ * src/base/ftobjs.c (FT_Load_Glyph): Fix signature of `pixel_modes'.
+
+2018-05-14 Werner Lemberg <wl@gnu.org>
+
+ Provide dummy functions if `TT_CONFIG_OPTION_SFNT_NAMES' is not set.
+
+ * src/base/ftsnames.c [!TT_CONFIG_OPTION_SFNT_NAMES]: Implement it.
+
+2018-05-13 Werner Lemberg <wl@gnu.org>
+
+ * src/base/ftobjs.c (FT_Load_Glyph): Improve tracing.
+
+2018-05-13 Shao Yu Zhang <shaozhang@fb.com>
+ Werner Lemberg <wl@gnu.org>
+
+ [sfnt] Preliminary support of colored layer outlines (#44689).
+
+ This commit enables OpenType's COLR/CPAL table handling; a typical
+ application are color emojis that can be scaled to any size.
+
+ If the color palette does not exist or is invalid, the rendering
+ step rasterizes the outline instead. The current implementation
+ assumes that the foreground is black.
+
+ Enable this by defining option TT_CONFIG_OPTION_COLOR_LAYERS.
+
+ There are still some issues with metrics; additionally, an API to
+ fetch color layers is missing.
+
+ * devel/ftoption.h, include/freetype/config/ftoption.h
+ (TT_CONFIG_OPTION_COLOR_LAYERS): New macro.
+
+ * include/freetype/internal/ftobjs.h (FT_Glyph_LayerRec,
+ FT_Colr_InternalRec): New structures.
+ (FT_Slot_InternalRec): Add `color_layers' field.
+
+ * include/freetype/internal/sfnt.h (TT_Load_Colr_Layer_Func,
+ TT_Blend_Colr_Func): New function types.
+ (SFNT_Interface): Add `load_colr', `free_colr', `load_colr_layer',
+ and `colr_blend' fields.
+
+ * include/freetype/internal/tttypes.h (TT_FaceRec): Add
+ `colr_and_cpal' field.
+
+ * include/freetype/internal/tttags. (TTAG_COLR, TTAG_CPAL): New
+ macros.
+
+ * src/sfnt/ttcolr.c, src/sfnt/ttcolr.h: New files.
+
+ * src/base/ftobjs.c (ft_glyphslot_done, FT_Render_Glyph_Internal):
+ Handle glyph color layers.
+
+ * src/sfnt/Jamfile (_sources), src/sfnt/rules.mk (SFNT_DRV_SRC): Add
+ `ttcolr.c'.
+
+ * src/sfnt/sfdriver.c: Include `ttcolr.h'.
+ (PUT_COLOR_LAYERS): New macro.
+ Update call to `FT_DEFINE_SFNT_INTERFACE'.
+
+ * src/sfnt/sfnt.c: Include `ttcolr.c'.
+
+ * src/sfnt/sfobjs.c (sfnt_load_face): Load `COLR' and `CPAL' tables.
+ (sfnt_done_face): Updated.
+
+ * src/truetype/ttgload.c (TT_Load_Glyph): Handle color layers.
+
+2018-05-12 Arkady Shapkin <arkady.shapkin@gmail.com>
+
+ Use MS VC++'s _BitScanReverse to calculate MSB (patch #9636).
+
+ * include/freetype/internal/ftcalc.h (FT_MSB) [_MSC_VER]: Implement
+ it.
+
+2018-05-10 Alan Coopersmith <alan.coopersmith@oracle.com>
+
+ Fix DLL compilation on Solaris.
+
+ AC_COMPILE_IFELSE only tries to compile a `*.c' to a `*.o'. The
+ Solaris Studio 12.1 through 12.5 compilers see the
+ `-fvisibility=hidden' flag, but ignore it with a warning of:
+
+ cc: Warning: Option -fvisibility=hidden passed to ld,
+ if ld is invoked, ignored otherwise
+
+ AC_LINK_IFELSE does the compile and then tries to link the result,
+ at which point the Solaris linker will issue an error:
+
+ ld: fatal: option '-fvisibility=hidden' is incompatible with
+ building a dynamic executable
+
+ If we don't use AC_LINK_IFELSE to catch the error, then configure
+ will fail further tests which attempt to link, such as those testing
+ dependencies like `libbz2'.
+
+ Also, don't try adding `-fvisibility' if we have already added
+ `-xldscope', just use one of them, since Sun Studio 12 and earlier
+ compilers only issue a warning, and don't try passing through to the
+ linker to generate an error, so AC_LINK_IFELSE doesn't catch them.
+
+ Tested on Solaris 11.4 beta with compiler versions:
+
+ Sun Studio 8 (Sun C 5.5)
+ Sun Studio 10 (Sun C 5.7)
+ Sun Studio 11 (Sun C 5.8)
+ Sun Studio 12 (Sun C 5.9)
+ Sun Studio 12.1 (Sun C 5.10)
+ Oracle Solaris Studio 12.2 (Sun C 5.11)
+ Oracle Solaris Studio 12.3 (Sun C 5.12)
+ Oracle Solaris Studio 12.4 (Sun C 5.13)
+ Oracle Developer Studio 12.5 (Sun C 5.14)
+ Oracle Developer Studio 12.6 (Sun C 5.15)
+ gcc 5.5.0
+ gcc 7.3.0
+
+ and verified the libfreetype.so.6 generated by each of those
+ compilers exported the same set of symbols.
+
+ * builds/unix/configure.raw: Implement it.
+
+2018-05-08 Werner Lemberg <wl@gnu.org>
+
+ [autofit] Avoid potential SEGV if running out of memory.
+
+ Problem reported by Shailesh Mistry <shailesh.mistry@hotmail.co.uk>.
+
+ * src/autofit/afshaper.c (af_shaper_buf_create,
+ af_shaper_buf_destroy) [!FT_CONFIG_OPTION_USE_HARFBUZZ]: Don't
+ allocate and free a four-byte buffer. Instead, make those functions
+ no-ops; the calling functions will provide a pointer to a buffer
+ instead.
+
+ * src/autofit/afcjk.c (af_cjk_metrics_init_widths,
+ af_cjk_metrics_init_blues, af_cjk_metrics_check_digits),
+ src/autofit/aflatin.c (af_latin_metrics_init_widths,
+ af_latin_metrics_init_blues, af_latin_metrics_check_digits)
+ [!FT_CONFIG_OPTION_USE_HARFBUZZ]: Use pointer to local variable for
+ `shaper_buf'.
+
+2018-05-07 Nikolaus Waxweiler <madigens@gmail.com>
+
+ [cmake] Allow using project as subfolder in other project.
+
+ * CMakeLists.txt: Test for CMake build directory being different
+ from source directory. Provide other parts of the build system
+ access the full include directory.
+
+2018-05-07 Werner Lemberg <wl@gnu.org>
+
+ [build] Suppress configure's `nothing to be done' message.
+
+ This is due to calling the configure script via `make' (within the
+ top-level `configure' wrapper script). The same can happen for all
+ other secondary make targets that are used to only modify the
+ primary one, e.g., `make setup devel'.
+
+ * builds/dos/detect.mk (emx, turboc, watcom, borlandc, borlandc16),
+ builds/os2/detect (visualage, watcom, borlandc, devel),
+ builds/unix/detect.mk (devel, lcc, unix), builds/windows/detect.mk
+ (visualc, watcom, visualage, lcc, mingw32, bcc32, devel-bcc,
+ devel-gcc): Use no-op recipe.
+
+2018-05-04 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ Support symbol visibility features of Sun / Oracle C compilers.
+
+ Reported by Kiyoshi Kanazawa:
+ https://lists.gnu.org/archive/html/freetype-devel/2018-05/msg00008.html
+ Thanks to the suggestions by Alexei and Alan Coopersmith.
+
+ * builds/unix/configure.raw: Check if "-xldscope=hidden" is
+ accepted, and if so, it is added to CFLAGS. This is the option
+ making Sun / Oracle C compilers hide the symbols from global
+ scope.
+ * include/freetype/config/ftconfig.h: Use "__global" prefix
+ for FT_EXPORT() macro, if SunPro C is newer than Sun ONE
+ Studio 8 (2003).
+ * builds/unix/ftconfig.in: Ditto.
+ * builds/vms/ftconfig.h: Ditto.
+
+2018-05-02 Nikolaus Waxweiler <madigens@gmail.com>
+
+ Unbreak CMake Windows installation
+
+ * CMakeLists.txt: Generate ftconfig.h on non-UNIX.
+
+2018-05-02 Werner Lemberg <wl@gnu.org>
+
+ Remove FT_CONFIG_OPTION_PIC and related code.
+
+ */* [FT_CONFIG_OPTION_PIC]: Remove all code guarded by this
+ preprocessor symbol.
+
+ */*: Replace `XXX_GET' macros (which could be either a function in
+ PIC mode or an array in non-PIC mode) with `xxx' arrays.
+
+ * include/freetype/internal/ftpic.h, src/autofit/afpic.c,
+ src/autofit/afpic.h, src/base/basepic.c, src/base/basepic.h,
+ src/base/ftpic.c, src/cff/cffpic.c, src/cff/cffpic.h,
+ src/pshinter/pshpic.c, src/pshinter/pshpic.h, src/psnames/pspic.c,
+ src/psnames/pspic.h, src/raster/rastpic.c, src/raster/rastpic.h,
+ src/sfnt/sfntpic.c, src/sfnt/sfntpic.h, src/smooth/ftspic.c,
+ src/smooth/ftspic.h, src/truetype/ttpic.c, src/truetype/ttpic.h:
+ Removed.
+
+
+----------------------------------------------------------------------------
+
+Copyright (C) 2018-2021 by
+David Turner, Robert Wilhelm, and Werner Lemberg.
+
+This file is part of the FreeType project, and may only be used, modified,
+and distributed under the terms of the FreeType project license,
+LICENSE.TXT. By continuing to use, modify, or distribute this file you
+indicate that you have read the license and understand and accept it
+fully.
+
+
+Local Variables:
+version-control: never
+coding: utf-8
+End:
diff --git a/freetype/docs/oldlogs/ChangeLog.22 b/freetype/docs/oldlogs/ChangeLog.22
new file mode 100644
index 00000000..e25cafcc
--- /dev/null
+++ b/freetype/docs/oldlogs/ChangeLog.22
@@ -0,0 +1,2837 @@
+2006-05-12 Werner Lemberg <wl@gnu.org>
+
+
+ * Version 2.2.1 released.
+ =========================
+
+
+ Tag sources with `VER-2-2-1'.
+
+2006-05-12 Werner Lemberg <wl@gnu.org>
+
+ * src/tools/docmaker/sources.py (re_source_keywords): Add word
+ boundary markers.
+ * src/tools/docmaker/content.py (re_field): Allow `.' in field names
+ (but not at the beginning or end).
+ * src/tools/docmaker/tohtml.py (html_header_1): Use `utf-8' charset.
+ (block_footer): Split into...
+ (block_footer_start, block_footer_middle, block_footer_end): This to
+ add navigation buttons.
+ (HtmlFormatter::block_exit): Updated.
+
+ * include/freetype/*: Many minor documentation improvements (adding
+ links, spelling errors, etc.).
+
+2006-05-11 Werner Lemberg <wl@gnu.org>
+
+ * README: Minor updates.
+
+ * include/freetype/*: s/scale/scaling value/ where appropriate.
+ Many other minor documentation improvements.
+
+ * src/tools/docmaker/sources.py (re_italic, re_bold): Handle
+ trailing punctuation.
+ * src/tools/docmaker/tohtml.py (HtmlFormatter::make_html_word): Add
+ warning message for undefined cross references.
+ Update handling of re_italic and re_bold.
+
+2006-05-11 Masatake YAMATO <jet@gyve.org>
+
+ * builds/unix/ftsystem.c (FT_Stream_Open): Check errno only if
+ read system call returns -1.
+ Remove a redundant parenthesis.
+
+2006-05-10 Werner Lemberg <wl@gnu.org>
+
+ * builds/unix/ftsystem.c (FT_Stream_Open): Avoid infinite loop if
+ given an empty, un-mmap()able file. Reported and suggested fix in
+ Savannah bug #16555.
+
+ * builds/freetype.mk (refdoc): Write-protect the `docmaker'
+ directory to suppress generation of .pyc files. According to the
+ Python docs there isn't a more elegant solution (currently).
+
+ * builds/toplevel.mk (dist): New target which builds .tar.gz,
+ .tar.bz2, and .zip files. Note that the version number is still
+ hard-coded.
+ (do-dist): Sub-target of `dist'.
+ (CONFIG_GUESS, CONFIG_SUB): New variables.
+ (.PHONY): Updated.
+
+2006-05-09 Rajeev Pahuja <rpahuja@esri.com>
+
+ * builds/win32/visualc/freetype.sln,
+ builds/win32/visualc/freetype.vcproj: Upgraded to VS.NET 2005 from
+ VS.NET 2003
+ Added files ftbbox.c, fttype1.c, ftwinfnt.c, ftsynth.c.
+
+ * builds/win32/visualc/index.html: Updated.
+
+2006-05-07 Werner Lemberg <wl@gnu.org>
+
+ Put version information into the configure script. Reported by Paul
+ Watson <pwatson@redlinepy.com>.
+
+ * builds/unix/configure.ac: Renamed to...
+ * builds/unix/configure.raw: This which now serves (with appropriate
+ modifications) as a template for configure.ac.
+
+ * version.sed: New script.
+
+ * autogen.sh: Generate configure.ac from configure.raw, using
+ FREETYPE_MAJOR, FREETYPE_MINOR, and FREETYPE_PATCH from freetype.h.
+
+2006-05-06 Werner Lemberg <wl@gnu.org>
+
+ * include/freetype/freetype.h (FREETYPE_PATCH): Set to 1.
+
+ * builds/unix/configure.ac (version_info): Set to 9:10:3.
+
+ * builds/win32/visualc/index.html,
+ builds/win32/visualc/freetype.dsp,
+ builds/win32/visualc/freetype.vcproj, builds/freetype.mk (refdoc),
+ Jamfile (RefDoc), README: s/220/221/, s/2.2.0/2.2.1/.
+ Minor updates.
+
+ * docs/CHANGES, docs/VERSION.DLL, docs/PROBLEMS, README.CVS:
+ Updated.
+
+ * builds/unix/install-sh: Updated from `texinfo' CVS module at
+ savannah.gnu.org.
+
+ * devel/ftoption.h: Synchronize with
+ include/freetype/config/ftoption.h.
+
+2006-05-04 Werner Lemberg <wl@gnu.org>
+
+ * src/lzw/ftlzw2.c: Renamed to...
+ * src/lzw/ftlzw.c: This.
+
+ * src/lzw/Jamfile, src/lzw/rules.mk: Updated.
+
+ * builds/mac/FreeType.m68k_cfm.make.txt,
+ builds/mac/FreeType.m68k_far.make.txt,
+ builds/mac/FreeType.ppc_carbon.make.txt,
+ builds/mac/FreeType.ppc_classic.make.txt: Updated.
+
+2006-05-03 David Turner <david@freetype.org>
+
+ Allow compilation again with C++ compilers.
+
+ * include/freetype/internal/ftmemory.h (FT_ASSIGNP,
+ FT_ASSIGNP_INNER): New macros which do the actual assignment, and
+ which exist in two variants (for C and C++).
+ Update callers accordingly.
+
+2006-05-03 Werner Lemberg <wl@gnu.org>
+
+ * include/freetype/config/ftoption.h (FT_STRICT_ALIASING): Removed.
+
+2006-05-02 Werner Lemberg <wl@gnu.org>
+
+ * include/freetype/internal/ftmemory.h: s/new/newsz/ (for C++).
+ (FT_ALLOC): Remove redundant redefinition.
+
+ * builds/compiler/gcc-dev.mk (CFLAGS) [g++]: Don't use
+ `-Wstrict-prototypes'.
+
+ * src/base/ftstream.c (FT_Stream_EnterFrame): Add cast.
+
+ * include/freetype/config/ftconfig.h (FT_BASE_DEF) [__cplusplus]:
+ Remove `extern'.
+
+2006-05-02 David Turner <david@freetype.org>
+
+ Update the memory management functions and macros to safely deal
+ with array size buffer overflows. This corresponds to attempts to
+ allocate arrays that are too large. For an example, consider the
+ following code:
+
+ count = read_uint32_from_file(); array = malloc( sizeof ( Item ) *
+ count ); for ( nn = 0; nn < count; nn++ )
+ array[nn] = read_item_from_file();
+
+ If `count' is larger than `FT_UINT_MAX/sizeof(Item)', the
+ multiplication overflows, and the array allocated os smaller than
+ the data read from the file. In this case, the heap will be
+ trashed, and this can be used as a denial-of-service attack, or make
+ the engine crash later.
+
+ The FT_ARRAY_NEW and FT_ARRAY_RENEW macros now ensure that the new
+ count is no larger than `FT_INT_MAX/item_size', otherwise a new
+ error code `FT_Err_Array_Too_Large' will be returned.
+
+ Note that the memory debugger now works again when FT_DEBUG_MEMORY
+ is defined. FT_STRICT_ALIASING has disappeared; the corresponding
+ code is now the default.
+
+
+ * include/freetype/config/ftconfig.h (FT_BASE_DEF) [!__cplusplus]:
+ Don't use `extern'.
+
+ * include/freetype/fterrdef.h (FT_Err_Array_Too_Large): New error
+ code.
+
+ * include/freetype/internal/ftmemory.h (FT_DEBUG_INNER)
+ [FT_DEBUG_MEMORY]: New macro.
+ (ft_mem_realloc, ft_mem_qrealloc): Pass new object size count also.
+ (ft_mem_alloc_debug, ft_mem_qalloc_debug, ft_mem_realloc_debug,
+ ft_mem_qrealloc_debug, ft_mem_free_debug): Removed.
+ (FT_MEM_ALLOC, FT_MEM_REALLOC, FT_MEM_QALLOC, FT_MEM_QREALLOC,
+ FT_MEM_FREE): Redefine.
+ (FT_MEM_NEW_ARRAY, FT_MEM_RENEW_ARRAY, FT_MEM_QNEW_ARRAY,
+ FT_MEM_QRENEW_ARRAY): Redefine.
+ (FT_ALLOC_MULT, FT_REALLOC_MULT, FT_MEM_QALLOC_MULT,
+ FT_MEM_QREALLOC_MULT): New macros. Update callers where
+ appropriate.
+ (FT_MEM_SET_ERROR): Slightly redefine.
+
+
+ * src/base/ftdbgmem.c (_ft_debug_file, _ft_debug_lineno)
+ [FT_DEBUG_MEMORY]: New global variables, replacing...
+ (FT_MemTableRec) [FT_DEBUG_MEMORY]: Remove `filename' and
+ `line_no'. Update all callers.
+ (ft_mem_debug_alloc) [FT_DEBUG_MEMORY]: Avoid possible integer
+ overflow.
+ (ft_mem_alloc_debug, ft_mem_realloc_debug, ft_mem_qalloc_debug,
+ ft_mem_qrealloc_debug, ft_mem_free_debug): Removed.
+
+ * src/base/ftmac.c (read_lwfn): Catch integer overflow.
+ * src/base/ftrfork.c (raccess_guess_darwin_hfsplus): Ditto.
+ * src/base/ftutil.c: Remove special code for FT_STRICT_ALIASING.
+ (ft_mem_alloc, ft_mem_realloc, ft_mem_qrealloc): Rewrite.
+
+
+ * include/freetype/ftstream.h (FT_FRAME_ENTER, FT_FRAME_EXIT,
+ FT_FRAME_EXTRACT, FT_FRAME_RELEASE): Use FT_DEBUG_INNER to report the
+ place where the frames were entered, extracted, exited or released
+ in the memory debugger.
+
+ * src/base/ftstream.c (FT_Stream_ReleaseFrame) [FT_DEBUG_MEMORY]:
+ Call ft_mem_free.
+ (FT_Stream_EnterFrame) [FT_DEBUG_MEMORY]: Use ft_mem_qalloc.
+ (FT_Stream_ExitFrame) [FT_DEBUG_MEMORY]: Use ft_mem_free.
+
+2006-04-30 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ * src/base/ftobjs.c (Mac_Read_POST_Resource): Correct pfb_pos
+ initialization, remove extra cast to copy to pfb_lenpos. This fixes
+ parsing of PFB fonts with MacOS resource fork (bug introduced
+ 2003-09-11). Patch provided by Huib-Jan Imbens <ft@imbens.nl>.
+
+2006-04-29 Werner Lemberg <wl@gnu.org>
+
+ Further C library abstraction. Based on a patch from
+ msn2@bidyut.com.
+
+ * include/freetype/config/ftstdlib.h (FT_CHAR_BIT, FT_FILE,
+ ft_fopen, ft_fclose, ft_fseek, ft_ftell, ft_fread, ft_smalloc,
+ ft_scalloc, ft_srealloc, ft_sfree, ft_labs): New wrapper macros for
+ C library functions. Update all users accordingly (and catch some
+ other places where the C library function was used instead of the
+ wrapper functions).
+
+ * src/base/ftsystem.c: Don't include stdio.h and stdlib.h.
+ * src/gzip/zutil.h [MSDOS && !(__TURBOC__ || __BORLANDC__)]: Don't
+ include malloc.h.
+
+
+ * builds/unix/unix-def.in (datarootdir): Define, for autoconf 2.59c
+ and forthcoming versions.
+
+2006-04-28 Werner Lemberg <wl@gnu.org>
+
+ * src/lzw/ftlzw.c, src/lzw/zopen.c, src/lzw/zopen.h: Removed,
+ obsolete.
+
+2006-04-27 yi luo <luoyi.ly@gmail.com>
+
+ * builds/win32/visualc/freetype.vcproj: Updated.
+
+2006-04-26 David Turner <david@freetype.org>
+
+
+ * Version 2.2 released.
+ =======================
+
+
+ Tag sources with `VER-2-2-0'.
+
+2006-04-26 Werner Lemberg <wl@gnu.org>
+
+ * src/psaux/psobjs.c (shift_elements): Don't use FT_Long but
+ FT_PtrDist for `delta'. Reported by Céline PILLET
+ <Celine.Pillet@Tagginfo.com>.
+
+2006-04-21 David Turner <david@freetype.org>
+
+ * include/freetype/ftincrem.h: Documentation updates.
+ (FT_Incremental_Interface): New typedef.
+
+ * include/freetype/ftmodapi.h, include/freetype/ftglyph.h:
+ Documentation updates.
+
+ * include/freetype/freetype.h: Documentation update.
+ (FT_HAS_FAST_GLYPHS): Always set to 0.
+
+ * include/freetype/ftstroke.h, src/base/ftstroke.c (FT_Stroker_New):
+ Take an FT_Library argument instead of FT_Memory.
+
+ * src/sfnt/ttcmap.c: Remove compiler warnings (gcc-4.0.2).
+
+2006-04-13 David Turner <david@freetype.org>
+
+ * src/autofit/afloader.c (af_loader_init, af_loader_load_g): Remove
+ superfluous code in the auto-fitter's loader.
+
+2006-04-05 Detlef Würkner <TetiSoft@apg.lahn.de>
+
+ * builds/amiga/makefile, builds/amiga/makefile.os4,
+ builds/amiga/smakefile: Added FT2_BUILD_LIBRARY define.
+
+2006-04-03 luoyi <luoyi.ly@gmail.com>
+
+ * builds/compiler/intelc.mk (TE): New variable.
+ (ANSIFLAGS): Updated.
+
+2006-04-03 Werner Lemberg <wl@gnu.org>
+
+ * builds/exports.mk (clean_symbols_list, clean_apinames): Removed.
+ (CLEAN): Add $(EXPORTS_LIST) and $(APINAMES_EXE).
+ (.PHONY): Updated.
+
+ * configure.ac: Minor fixes to improve --help output.
+
+
+ * docs/PROBLEMS: New file.
+
+2006-04-01 David Turner <david@freetype.org>
+
+ * docs/CHANGES: Updated.
+
+ * include/freetype/ftcache.h, include/freetype/config/ftheader.h:
+ Update documentation comments.
+
+2006-04-01 Werner Lemberg <wl@gnu.org>
+
+ * builds/unix/install.mk (uninstall): Don't handle `cache'
+ directory which no longer exists.
+
+2006-03-29 Detlef Würkner <TetiSoft@apg.lahn.de>
+
+ * src/psaux/psconv.c: Changed some variables which are expected to
+ hold negative values from `char' to `FT_Char' to allow building with
+ a compiler where `char' is unsigned by default.
+
+2006-03-27 David Turner <david@freetype.org>
+
+ * src/sfnt/ttkern.c (tt_face_get_kerning): Fix a serious bug that
+ causes some programs to go into an infinite loop when dealing with
+ fonts that don't have a properly sorted kerning sub-table.
+
+2006-03-26 Werner Lemberg <wl@gnu.org>
+
+ * src/bdf/bdflib.c (ERRMSG4): New macro.
+ (_bdf_parse_glyphs): Handle invalid BBX values.
+
+ * include/freetype/fterrdef.h (FT_Err_Bbx_Too_Big): New error
+ macro.
+
+2006-03-23 Werner Lemberg <wl@gnu.org>
+
+ * docs/CHANGES: Updated.
+
+
+ * src/tools/docmaker/tohtml.py (html_header_2): Add horizontal
+ padding between table elements.
+ (html_header_1): The `DOCTYPE' comment must be in uppercase.
+ (make_html_para): Convert `...' quotations into real left and
+ right single quotes.
+ Use `para_header' and `para_footer'.
+
+ * src/tools/docmaker/sources.py (re_bold, re_italic): Accept "'"
+ also.
+
+2006-03-23 David Turner <david@freetype.org>
+
+ Add FT_Get_SubGlyph_Info API to retrieve subglyph data. Note that
+ we do not expose the FT_SubGlyphRec structure.
+
+ * include/freetype/internal/ftgloadr.h (FT_SUBGLYPH_FLAGS_*): Moved
+ to...
+ * include/freetype/freetype.h (FT_SUBGLYPH_FLAGS_*): Here.
+ (FT_Get_SubGlyph_Info): New declaration.
+
+ * src/base/ftobjs.c (FT_Get_SubGlyph_Info): New function.
+
+
+ * src/autofit/afloader.c (af_loader_load_g): Compute lsb_delta and
+ rsb_delta correctly in edge cases.
+
+2006-03-22 Werner Lemberg <wl@gnu.org>
+
+ * src/cache/ftccache.c, (ftc_node_mru_up, FTC_Cache_Lookup)
+ [!FTC_INLINE]: Compile conditionally.
+ * src/cache/ftccache.h: Updated.
+
+ * src/cache/ftcglyph.c (FTC_GNode_Init, FTC_GNode_UnselectFamily,
+ FTC_GNode_Done, FTC_GNode_Compare, FTC_Family_Init, FTC_GCache_New):
+ s/FT_EXPORT/FT_LOCAL/.
+ (FTC_GCache_Init, FTC_GCache_Done): Commented out.
+ (FTC_GCache_Lookup) [!FTC_INLINE]: Compile conditionally.
+ s/FT_EXPORT/FT_LOCAL/.
+ * src/cache/ftcglyph.h: Updated.
+
+ * src/cache/ftcimage.c (FTC_INode_Free, FTC_INode_New):
+ s/FT_EXPORT/FT_LOCAL/.
+ (FTC_INode_Weight): Commented out.
+ * src/cache/ftcimage.h: Updated.
+
+ * src/cache/ftcmanag.c (FTC_Manager_Compress,
+ FTC_Manager_RegisterCache, FTC_Manager_FlushN):
+ s/FT_EXPORT/FT_LOCAL/.
+ * src/cache/ftcmanag.h: Updated.
+
+ * src/cache/ftcsbits.c (FTC_SNode_Free, FTC_SNode_New,
+ FTC_SNode_Compare): s/FT_EXPORT/FT_LOCAL/.
+ (FTC_SNode_Weight): Commented out.
+ * src/cache/ftcsbits.h: Updated.
+
+2006-03-22 Werner Lemberg <wl@gnu.org>
+
+ * src/cache/ftccache.c, src/cache/ftccache.h (FTC_Node_Destroy):
+ Remove, unused.
+
+ * src/cache/ftccmap.h: Remove, unused.
+
+ * src/cache/rules.mk (CACHE_DRV_H): Remove ftccmap.h.
+
+2006-03-21 Zhe Su <james.su@gmail.com>
+
+ * src/base/ftoutln.c (FT_Outline_Get_Orientation): Improve
+ algorithm.
+
+2006-03-21 Werner Lemberg <wl@gnu.org>
+
+ * src/cff/cfftypes.h (CFF_CharsetRec): Add `max_cid' member.
+
+ * src/cff/cffload.c (cff_charset_load): Set `charset->max_cid'.
+
+ * src/cff/cffgload.c (cff_slot_load): Change type of third parameter
+ to `FT_UInt'.
+ Check range of `glyph_index'.
+ * src/cff/cffgload.h: Updated.
+
+
+ * src/sfnt/ttcmap.c (tt_face_build_cmaps): Handle invalid offset
+ correctly.
+
+
+ * builds/freetype.mk (refdoc), docs/CHANGES, Jamfile (RefDoc),
+ README: s/2.1.10/2.2/.
+
+2006-03-21 David Turner <david@freetype.org>
+
+ * src/autofit/aflatin.c (af_latin_metrics_scale): Fix small bug
+ that crashes the auto-hinter (introduced by previous patch).
+
+2006-03-20 Werner Lemberg <wl@gnu.org>
+
+ * builds/freetype.mk (CACHE_DIR, CACHE_H): Remove.
+ (FREETYPE_H): Updated.
+
+ * src/cache/rules.mk (CACHE_H_DIR): Remove.
+ (CACHE_DRV_H): Updated.
+
+2006-03-20 David Turner <david@freetype.org>
+
+ * include/freetype/cache/ftccache.h,
+ include/freetype/cache/ftccmap.h, include/freetype/cache/ftcglyph.h
+ include/freetype/cache/ftcimage.h include/freetype/cache/ftcmanag.h
+ include/freetype/cache/ftcmru.h include/freetype/cache/ftcsbits.h:
+ Move to...
+
+ * src/cache/ftccache.h, src/cache/ftcglyph.h, src/cache/ftcimage.h,
+ src/cache/ftcsbits.h, src/cache/ftcmanag.h, src/cache/ftccmap.h,
+ src/cache/ftcmru.h: This new location.
+ Update declarations according to the changes in the corresponding
+ source files.
+
+ Note that these files are not used by FreeType clients; all public
+ APIs of the cache module have been already moved to
+ `include/freetype/ftcache.h', and all FT_CACHE_INTERNAL_XXXX_H
+ macros resolve to it.
+
+ Reason for the move is to allow modifications of the internals
+ without interferences with rogue clients. Note that there are no
+ known clients that access the cache internals at the moment.
+
+ * builds/unix/install.mk (install): Don't install headers from
+ $(CACHE_H).
+ Remove `freetype/cache' from the target directory.
+
+ * include/freetype/config/ftheader.h (FT_CACHE_MANAGER_H,
+ FT_CACHE_INTERNAL_MRU_H, FT_CACHE_INTERNAL_MANAGER_H,
+ FT_CACHE_INTERNAL_CACHE_H, FT_CACHE_INTERNAL_GLYPH_H,
+ FT_CACHE_INTERNAL_IMAGE_H, FT_CACHE_INTERNAL_SBITS_H): Point to
+ FT_CACHE_H.
+
+ * src/cache/ftcbasic.c, src/cache/ftccache.h, src/cache/ftccback.h,
+ src/cache/ftccmap.c, src/cache/ftcglyph.c, src/cache/ftcglyph.h,
+ src/cache/ftcimage.c, src/cache/ftcimage.h, src/cache/ftcmanag.c,
+ src/cache/ftcmanag.h, src/cache/ftcmru.h, src/cache/ftcsbits.c,
+ src/cache/ftcsbits.h: Don't use the FT_CACHE_INTERNAL_XXX_H macros
+ but include the headers directly (which are now in `src/cache').
+
+ * src/cache/ftccache.c: Don't use the FT_CACHE_INTERNAL_XXX_H
+ macros but include the headers directly.
+ (FTC_Cache_Init, FTC_Cache_Done, FTC_Cache_NewNode,
+ FTC_Cache_Lookup, FTC_Cache_RemoveFaceID): Declare as FT_LOCAL_DEF.
+
+ * src/cache/ftccache.c: Don't use the FT_CACHE_INTERNAL_XXX_H
+ macros but include the headers directly.
+ (FTC_MruNode_Prepend, FTC_MruNode_Up, FTC_MruNode_Remove,
+ FTC_MruList_Init, FTC_MruList_Reset, FTC_MruList_Done,
+ FTC_MruList_New, FTC_MruList_Remove, FTC_MruList_RemoveSelection):
+ Declare as FT_LOCAL_DEF.
+ (FTC_MruList_Find, FTC_MruList_Lookup) [!FTC_INLINE]: Compile
+ conditionally.
+ Declare as FT_LOCAL_DEF.
+
+
+ * builds/win32/visualc/freetype.dsp: Update project file, add
+ missing base source files (ftstroke.c, ftxf86.c, etc.).
+
+
+ * src/autofit/afcjk.c, src/autofit/aflatin.c, src/base/ftobjs.c,
+ src/cff/cffobjs.c, src/cid/cidobjs.c, src/pfr/pfrobjs.c,
+ src/sfnt/sfobjs.c, src/sfnt/ttmtx.c, src/type1/t1afm.c,
+ src/type1/t1objs.c: Remove compiler warnings when building with
+ Visual C++ 6 and /W4.
+
+ * src/autofit/aflatin.c (af_latin_hints_init): Disable horizontal
+ hinting for italic/oblique fonts.
+
+
+
+ * src/truetype/ttpload.c, src/truetype/ttpload.h
+ (tt_face_get_device_metrics): Change second argument to `FT_UInt'.
+
+2006-03-06 David Turner <david@freetype.org>
+
+ * src/cache/ftcmanag.c (FTC_Manager_Lookup_Size): Prevent crashes in
+ Mozilla/FireFox print preview in Ubuntu Hoary.
+
+2006-02-28 Chia-I Wu <b90201047@ntu.edu.tw>
+
+ * src/base/ftutil.c (ft_mem_qalloc) [FT_STRICT_ALIASING]: Do not
+ return error when size == 0.
+
+2006-02-28 Chia-I Wu <b90201047@ntu.edu.tw>
+
+ * src/base/ftobjs.c (FT_Done_Library): Remove modules in reverse
+ order so that type42 module is removed before truetype module. This
+ avoids double free in some occasions.
+
+2006-02-28 David Turner <david@freetype.org>
+
+ * Release candidate VER-2-2-0-RC4.
+ ----------------------------------
+
+ * docs/CHANGES: Documentation updates.
+
+2006-02-28 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ * modules.cfg (BASE_EXTENSIONS): Compile in ftgxval.c by default to
+ build ftvalid in ft2demos. It works as dummy ABI if gxvalid is not
+ built.
+
+2006-02-27 Werner Lemberg <wl@gnu.org>
+
+ * include/freetype/cache/ftccache.h
+ [FT_CONFIG_OPTION_OLD_INTERNALS]: Remove declaration of
+ ftc_node_done.
+
+ * src/cache/ftccache.c (ftc_node_destroy)
+ [!FT_CONFIG_OPTION_OLD_INTERNALS]: Mark as FT_LOCAL_DEF. This
+ should now fix all possible compilation options.
+
+2006-02-27 David Turner <david@freetype.org>
+
+ * src/base/ftutil.c (ft_mem_alloc, ft_mem_qalloc, ft_mem_realloc,
+ ft_mem_qrealloc): Return an error if a negative size is passed in
+ parameters.
+
+ * src/cache/ftccache.c (ftc_node_destroy): Mark as FT_BASE_DEF since
+ it needs to be exported for rogue clients.
+
+ * src/pshinter/pshglob.c (psh_blues_set_zones_0): Prevent problems
+ with malformed fonts which have an odd number of blue values (these
+ are broken according to the specs).
+
+ * src/cff/cffload.c (cff_subfont_load), src/type1/t1load.c
+ (T1_Open_Face): Modify the loaders to force even-ness of
+ `num_blue_values'.
+
+ (cff_index_access_element): Ignore invalid entries in index files.
+
+2006-02-27 Chia-I Wu <b90201047@ntu.edu.tw>
+
+ * src/base/ftobjs.c (FT_Set_Char_Size): Check the case where width
+ or height is 0.
+
+2006-02-27 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ * builds/mac/FreeType.m68k_cfm.make.txt,
+ builds/mac/FreeType.m68k_far.make.txt,
+ builds/mac/FreeType.ppc_carbon.make.txt,
+ builds/mac/FreeType.ppc_classic.make.txt: Update to new header
+ inclusion introduced on 2006-02-16.
+
+2006-02-27 Chia-I Wu <b90201047@ntu.edu.tw>
+
+ * src/base/ftobjs.c (GRID_FIT_METRICS): New macro.
+ (ft_glyphslot_grid_fit_metrics, FT_Load_Glyph) [GRID_FIT_METRICS]:
+ Re-enable glyph metrics grid-fitting. It is now done in the base
+ layer.
+ (FT_Set_Char_Size, FT_Set_Pixel_Sizes): Make sure the width and
+ height are not too small or too large, just like we were doing in
+ 2.1.10.
+
+ * src/autofit/afloader.c (af_loader_load_g): The vertical metrics
+ are not scaled.
+
+2006-02-26 Werner Lemberg <wl@gnu.org>
+
+ * docs/release: Minor additions and clarifications.
+
+ * docs/CHANGES: Updated to reflect many fixes for backward
+ compatibility. Still incomplete.
+
+2006-02-26 David Turner <david@freetype.org>
+
+ * src/base/ftobjs.c (ft_recompute_scaled_metrics): Re-enable
+ conservative rounding of metrics to avoid breaking clients like
+ Pango (see https://bugzilla.gnome.org/show_bug.cgi?id=327852).
+
+2006-02-25 Werner Lemberg <wl@gnu.org>
+
+ * devel/ftoption.h: Synchronize with
+ include/freetype/config/ftoption.h.
+
+ * src/cache/ftccache.c (ftc_node_destroy): Use FT_LOCAL_DEF (again).
+
+2006-02-25 David Turner <david@freetype.org>
+
+ Fix compiler warnings as well as C++ compilation problems.
+ Add missing prototypes.
+
+ * src/autofit/afcjk.c, src/base/ftobjs.c, src/base/ftutil.c,
+ src/bdf/bdfdrivr.c, src/cff/cffcmap.c, src/cff/cffobjs.c,
+ src/psaux/afmparse.c,, src/psaux/t1cmap.c, src/smooth/ftgrays.c
+ src/tools/apinames.c, src/truetype/ttdriver.c: Add various casts,
+ initialize variables, and decorate functions with FT_CALLBACK_DEF,
+ etc., to fix compiler warnings (and C++ compiling errors).
+
+ * src/cache/ftcbasic.c: Fix `-Wmissing-prototypes' warnings with
+ gcc.
+
+ * builds/unix/ftsystem.c: Don't include FT_INTERNAL_OBJECTS_H but
+ FT_INTERNAL_STREAM_H.
+
+ * src/base/ftsystem.c: Include FT_INTERNAL_STREAM_H.
+
+ * include/freetype/config/ftheader.h (FT_PFR_H): New macro.
+
+ * include/freetype/config/ftoption.h (FT_STRICT_ALIASING): Don't
+ define for C++.
+
+ * include/freetype/internal/services/svotval.h: Don't include
+ FT_OPENTYPE_VALIDATE_H but FT_INTERNAL_VALIDATE_H.
+
+ * include/freetype/internal/services/svpfr.h: Include FT_PFR_H.
+
+ * src/gzip/ftgzip.c: Include FT_GZIP_H.
+
+ * src/lzw/ftlzw.c, src/lzw/ftlzw2.c: Include FT_LZW_H.
+
+ * src/sfnt/ttbdf.c (tt_face_load_bdf_props): Rearrange code.
+
+2006-02-24 Chia-I Wu <b90201047@ntu.edu.tw>
+
+ * src/base/ftoutln.c (FT_OUTLINE_GET_CONTOUR, ft_contour_has,
+ ft_contour_enclosed, ft_outline_get_orientation): Commented out. We
+ have to wait until `FT_GlyphSlot_Own_Bitmap' is stabilized.
+ (FT_Outline_Embolden): Use `FT_Outline_Get_Orientation'.
+
+2006-02-24 Chia-I Wu <b90201047@ntu.edu.tw>
+
+ * include/freetype/ftbitmap.h (FT_Bitmap_Embolden): Update
+ documentation.
+
+ * include/freetype/ftsynth.h (FT_GlyphSlot_Own_Bitmap),
+ src/base/ftsynth.c (FT_GlyphSlot_Own_Bitmap): New function to make
+ sure a glyph slot owns its bitmap. It is also marked experimental
+ and due to change.
+ (FT_GlyphSlot_Embolden): Undo the last change. It turns out that
+ rendering the outline confuses some applications.
+
+2006-02-24 David Turner <david@freetype.org>
+
+ * Release candidate VER-2-2-0-RC3.
+ ----------------------------------
+
+ * src/cache/ftcbasic.c: Correct compatibility hack bug.
+
+2006-02-24 Chia-I Wu <b90201047@ntu.edu.tw>
+
+ * include/freetype/freetype.h (FT_Size_RequestRec): Change the type
+ of `width' and `height' to `FT_Long'.
+ (enum FT_Size_Request_Type), src/base/ftobjs.c (FT_Request_Metrics):
+ New request type `FT_SIZE_REQUEST_TYPE_SCALES' to specify the scales
+ directly.
+
+2006-02-23 David Turner <david@freetype.org>
+
+ Two BDF patches from Debian libfreetype6 for 2.1.10.
+
+ * src/bdf/bdflib.c (_bdf_parse_glyphs): Fix a bug with zero-width
+ glyphs.
+ Fix a problem with large encodings.
+
+
+ Fix binary compatibility issues for gnustep-back (GNUstep backend
+ module) which still crashes under Sarge.
+
+ * src/cache/ftccmap.c (FTC_OldCMapType, FTC_OldCMapIdRec,
+ FTC_OldCMapDesc) [FT_CONFIG_OPTION_OLD_INTERNALS]: New data
+ structures and enumerations.
+ (FTC_CMapCache_Lookup) [FT_CONFIG_OPTION_OLD_INTERNALS]: New
+ compatibility code.
+
+ * src/cache/ftcbasic.c: Fix a silly bug that prevented our `hack' to
+ support rogue clients compiled against 2.1.7 to work correctly.
+ This probably explains the GNUstep crashes with the second release
+ candidate.
+
+2006-02-23 Chia-I Wu <b90201047@ntu.edu.tw>
+
+ * include/freetype/ftoutln.h (enum FT_Orientation): New value
+ `FT_ORIENTATION_NONE'.
+
+ * src/base/ftoutln.c (FT_OUTLINE_GET_CONTOUR, ft_contour_has,
+ ft_contour_enclosed, ft_outline_get_orientation): Another version of
+ `FT_Outline_Get_Orientation'. This version differs from the public
+ one in that each part (contour not enclosed in another contour) of the
+ outline is checked for orientation.
+ (FT_Outline_Embolden): Use `ft_outline_get_orientation'.
+
+ * src/base/ftsynth.c (FT_GlyphSlot_Embolden): Render the outline and
+ use bitmap's embolden routine when the outline one failed.
+
+2006-02-22 Chia-I Wu <b90201047@ntu.edu.tw>
+
+ * modules.cfg: Compile in ftotval.c and ftxf86.c by default for ABI
+ compatibility.
+
+ * src/sfnt/sfobjs.c (sfnt_done_face): Fix a memory leak.
+
+ * src/sfnt/ttsbit0.c (tt_sbit_decoder_load_bit_aligned,
+ tt_sbit_decoder_load_byte_aligned) [FT_OPTIMIZE_MEMORY]: Fix sbit
+ loading. (Only tested with bit aligned sbit with x_pos == 0.)
+
+ * src/truetype/ttpload.c (tt_face_load_hdmx,
+ tt_face_get_device_metrics) [FT_OPTIMIZE_MEMORY]: `hdmx' is not
+ actually used.
+
+2006-02-21 David Turner <david@freetype.org>
+
+ Add a new API named FT_Get_TrueType_Engine_Type to determine whether
+ we have a patented, unpatented, or unimplemented TrueType bytecode
+ interpreter.
+
+ The FT_Get_Module_Flags API was removed consequently.
+
+ * include/freetype/ftmodapi.h (FT_Module_Get_Flags): Removed.
+ Replaced with...
+ (FT_Get_TrueType_Engine_Type): This.
+ (FT_TrueTypeEngineType): New enumeration.
+
+ * include/freetype/internal/ftserv.h (FT_SERVICE_TRUETYPE_ENGINE_H):
+ New macro.
+
+ * src/base/ftobjs.c: Include FT_SERVICE_TRUETYPE_ENGINE_H.
+ (FT_Module_Get_Flags): Removed. Replaced with...
+ (FT_Get_TrueType_Engine_Type): This.
+
+ * src/truetype/ttdriver.c: Include FT_SERVICE_TRUETYPE_ENGINE_H.
+ (tt_service_truetype_engine): New service structure.
+ (tt_services): Register it.
+
+ * include/freetype/internal/services/svtteng.h: New file.
+
+
+ * src/sfnt/sfobjs.c (sfnt_load_face): Fix silly bug that prevented
+ embedded bitmaps from being correctly listed and used.
+
+
+ * src/sfnt/ttmtx.c (tt_face_load_hmtx): Disable memory optimization
+ if FT_CONFIG_OPTION_OLD_INTERNALS is used. The is necessary because
+ libXfont is directly accessing the HMTX data, unfortunately.
+ Fix some compiler warnings.
+ (tt_face_get_metrics): Ditto.
+
+
+ * src/pfr/pfrsbit.c (pfr_slot_load_bitmap): Fix handling of
+ character advances.
+
+2006-02-20 David Turner <david@freetype.org>
+
+ Support binary compatibility with the X.Org server's Xfont library.
+ Note that this change unfortunately prevents memory optimizations
+ for the embedded bitmap loader.
+
+ * include/freetype/internal/sfnt.h (SFNT_Interface): Move
+ `set_sbit_strike' and `load_sbit_metrics' fields to the location of
+ version 2.1.8.
+
+ * src/sfnt/sfdriver.c (tt_face_set_sbit_strike_stub): Call
+ FT_Size_Request.
+ (sfnt_interface): Updated.
+
+ * src/sfnt/ttsbit.c [FT_CONFIG_OPTION_OLD_INTERNALS]: Don't load
+ ttsbit0.c.
+ (tt_load_sbit_metrics): Make `sbit_small_metrics_fields' static.
+
+ * src/sfnt/ttsbit.h: Updated.
+
+2006-02-17 David Turner <david@freetype.org>
+
+ * builds/unix/unix-cc.in (LINK_LIBRARY): Don't filter out exported
+ functions anymore. This ensures that all FT_BASE internal functions
+ are available for dynamic linking.
+
+ * include/freetype/ftcache.h (FTC_IMAGE_TYPE_COMPARE,
+ FTC_IMAGE_TYPE_HASH), src/cache/ftcbasic.c (FTC_OldFontRec,
+ FTC_OldImageDescRec, FTC_ImageCache_Lookup, FTC_Image_Cache_New,
+ FTC_OldImageDesc, FTC_OLD_IMAGE_FORMAT, ftc_old_image_xxx,
+ ftc_image_type_from_old_desc, FTC_Image_Cache_Lookup,
+ FTC_SBitCache_Lookup, FTC_SBit_Cache_New, FTC_SBit_Cache_Lookup)
+ [FT_CONFIG_OPTION_OLD_INTERNALS]: Try to revive old functions of the
+ cache sub-system. We try to recognize old legacy signatures with a
+ gross hack (hope it works).
+
+2006-02-17 Werner Lemberg <wl@gnu.org>
+
+ * devel/ftoption.h: Synchronize with
+ include/freetype/config/ftoption.h.
+
+2006-02-16 David Turner <david@freetype.org>
+
+ Massive changes to the internals to respect the internal object
+ layouts and exported functions of FreeType 2.1.7. Note that the
+ cache sub-system cannot be fully retrofitted, unfortunately.
+
+ * include/freetype/config/ftoption.h
+ (FT_CONFIG_OPTION_OLD_INTERNALS): New macro.
+
+ * include/freetype/ftcache.h, include/freetype/cache/ftccache.h,
+ include/freetype/cache/ftccmap.h,
+ include/freetype/internal/ftcalc.h,
+ include/freetype/internal/ftdriver.h,
+ include/freetype/internal/ftmemory.h,
+ include/freetype/internal/ftobjs.h,
+ include/freetype/internal/psaux.h, include/freetype/internal/sfnt.h,
+ include/freetype/internal/t1types.h,
+ include/freetype/internal/tttypes.h, src/base/ftcalc.c,
+ src/base/ftdbgmem.c, src/base/ftobjs.c, src/base/ftutil.c,
+ src/bdf/bdfdrivr.c, src/cache/ftccache.c, src/cache/ftccback.h,
+ src/cache/ftcmanag.c, src/cff/cffdrivr.c, src/cid/cidriver.c,
+ src/pcf/pcfdrivr.c, src/pfr/pfrdrivr.c, src/psaux/psauxmod.c,
+ src/sfnt/sfdriver.c, src/truetype/ttdriver.c, src/type1/t1driver.c,
+ src/type1/t1objs.c, src/type42/t42drivr.c, src/winfonts/winfnt.c:
+ Use FT_CONFIG_OPTION_OLD_INTERNALS to revive old functions and data
+ structures.
+
+ Move newly added structure elements to the end of the affected
+ structure and add stub fields (if FT_CONFIG_OPTION_OLD_INTERNALS is
+ defined) to assure binary compatibility with older FreeType
+ versions.
+ Use FT_CONFIG_OPTION_OLD_INTERNALS to add function stubs for old
+ functions:
+
+ ft_stub_set_char_sizes
+ ft_stub_set_pixel_sizes
+
+ Rename the following internal functions to provide the old function
+ names as stubs:
+
+ FT_Alloc -> ft_mem_alloc
+ FT_QAlloc -> ft_mem_qalloc
+ FT_Realloc -> ft_mem_realloc
+ FT_QRealloc -> ft_mem_qrealloc
+ FT_Free -> ft_mem_free
+ FT_Alloc_Debug -> ft_mem_alloc_debug
+ FT_QAlloc_Debug -> ft_mem_qalloc_debug
+ FT_Realloc_Debug -> ft_mem_realloc_debug
+ FT_QRealloc_Debug -> ft_mem_qrealloc_debug
+ FT_Free_Debug -> ft_mem_free_debug
+
+2006-02-15 Chia-I Wu <b90201047@ntu.edu.tw>
+
+ * include/freetype/internal/ftobjs.h (FT_Face_InternalRec): Remove
+ unused `max_points' and `max_contours'.
+
+ * src/cid/cidobjs.c (cid_face_init), src/type1/t1objs.c
+ (T1_Face_Init), src/type42/t42objs.c (T42_Face_Init): Update.
+
+ * include/freetype/internal/tttypes.h (TT_FaceRec): Remove unused
+ `max_components'.
+
+ * src/truetype/ttinterp.h (TT_ExecContextRec): Remove unused
+ `loadSize' and `loadStack'.
+
+ * src/truetype/ttinterp.c (TT_Done_Context, TT_Load_Context),
+ src/sfnt/ttload.c (tt_face_load_maxp): Update.
+
+ * src/cff/cffobjs.h (cff_size_select), src/sfnt/sfdriver.c
+ (sfnt_interface), src/truetype/ttdriver.c (tt_size_request): Fix
+ compiler errors/warnings when TT_CONFIG_OPTION_EMBEDDED_BITMAPS is not
+ defined.
+
+ * src/sfnt/ttmtx.c (tt_face_load_hmtx, tt_face_get_metrics): Fix
+ possible segment faults for the non-FT_OPTIMIZE_MEMORY'ed versions.
+ (finally!)
+
+
+ For most OpenType tables, `tt_face_load_xxxx' simply loads the table
+ and `face->root' is set later in `sfnt_load_face'. Here, we try to
+ make this work for _all_ tables. Also improve tracing messages.
+
+ * src/sfnt/ttsbit.c, src/sfnt/ttsbit0.c, src/sfnt/ttload.c,
+ src/sfnt/ttmtx.c: all `tt_face_load_xxxx' should load the table and
+ then exit. Error handling or setting face->root is done later in
+ `sfnt_load_face'.
+
+ * src/sfnt/sfobjs.c (sfnt_load_face): Work harder.
+ Mac bitmap-only fonts are not scalable.
+ Check that `face->header.Units_Per_EM' is not zero.
+ (LOAD_, LOADM_): Emit pretty trace messages.
+
+ * src/sfnt/ttsbit0.c (tt_face_load_strike_metrics): Read metrics
+ from `eblc'.
+
+ * src/sfnt/ttcmap.c (tt_face_build_cmaps), src/sfnt/ttpost.c
+ (load_format_20, load_format_25, tt_face_get_ps_name): Use
+ face->max_profile.numGlyphs, instead of face->root.num_glyphs.
+
+2006-02-14 Werner Lemberg <wl@gnu.org>
+
+ * include/freetype/ftoutln.h (FT_Outline_Embolden): Mention in
+ documentation that negative strength values are possible.
+ Give an example call.
+
+ * include/freetype/freetype.h (FT_GlyphSlotRec): Improve
+ documentation of `outline' field.
+
+ * src/sfnt/sfobjs.c: Include FT_INTERNAL_DEBUG_H.
+ * src/sfnt/sfdriver.c: Include ttmtx.h.
+
+ * src/autofit/afcjk.c: Include aftypes.h and aflatin.h.
+
+2006-02-14 Chia-I Wu <b90201047@ntu.edu.tw>
+
+ * src/sfnt/ttmtx.c (tt_face_get_metrics): Typo.
+
+2006-02-14 Chia-I Wu <b90201047@ntu.edu.tw>
+
+ * src/sfnt/ttmtx.c (tt_face_load_hhea, tt_face_load_hmtx): Simply
+ return error if table is missing.
+ Check table length in non-FT_OPTIMIZE_MEMORY'ed `tt_face_load_hmtx'.
+
+ * src/sfnt/sfobjs.c (sfnt_load_face): Take care of missing metrics
+ tables. The last change makes Mac bitmap-only font not load and
+ this fixes it.
+
+ * src/truetype/ttgload.c (load_truetype_glyph): Fix compilation
+ error when FT_CONFIG_OPTION_INCREMENTAL is defined.
+
+2006-02-13 Chia-I Wu <b90201047@ntu.edu.tw>
+
+ Clean up the SFNT_Interface. In this final pass, `load_hmtx' is
+ split from `load_hhea'.
+
+ * include/freetype/internal/sfnt.h, src/sfnt/sfdriver.c,
+ src/sfnt/ttmtx.c, src/sfnt/ttmtx.h: Split `hmtx' from `hhea'.
+
+ * src/sfnt/sfobjs.c (sfnt_load_face): Update.
+
+2006-02-13 Chia-I Wu <b90201047@ntu.edu.tw>
+
+ * src/sfnt/ttmtx.h, src/sfnt/ttmtx.c: Why are there two copies of
+ code...
+
+2006-02-13 Chia-I Wu <b90201047@ntu.edu.tw>
+
+ Clean up the SFNT_Interface. In this pass, we want to treat the
+ font directory (offset table and table directory) as a normal table
+ like the others. This also means that TTCs are no longer recognized
+ there but in `init_face'.
+
+ * include/freetype/internal/sfnt.h (SFNT_Interface),
+ src/sfnt/sfdriver.c: `load_sfnt_header' and `load_directory' are
+ combined and renamed to `load_font_dir'.
+
+ * src/sfnt/ttload.h, src/sfnt/ttload.c:
+ s/sfnt_dir_check/check_table_dir/.
+ `sfnt_init' is moved to sfobjs.c and renamed to `sfnt_open_font'.
+ `tt_face_load_sfnt_header' and `tt_face_load_directory' are combined
+ and renamed to `tt_face_load_font_dir'.
+
+ * src/sfnt/sfobjs.c (sfnt_init_face): Recognize TTC here.
+
+2006-02-13 Chia-I Wu <b90201047@ntu.edu.tw>
+
+ Clean up the SFNT_Interface. Table loading functions are now named
+ after the tables' tags; `hdmx' is TrueType-specific and thus the
+ code is moved to the truetype module; `get_metrics' is moved here
+ from the truetype module so that the code can be shared with the cff
+ module.
+
+ This pass involves no real changes. That is, the code is moved
+ verbatim mostly. The only exception is the return value of
+ `tt_face_get_metrics'.
+
+ * include/freetype/internal/sfnt.h, src/sfnt/rules.mk,
+ src/sfnt/sfdriver.c, src/sfnt/sfnt.c, src/sfnt/sfobjs.c,
+ src/sfnt/ttload.c, src/sfnt/ttload.h, src/sfnt/ttsbit.c,
+ src/sfnt/ttsbit.h, src/sfnt/ttsbit0.c: Clean up the SFNT_Interface.
+
+ * src/sfnt/ttmtx.c, src/sfnt/ttmtx.h: New files. Metrics-related
+ tables' loading and parsing code is moved to here.
+ Move `tt_face_get_metrics' here from the truetype module. The
+ return value is changed from `void' to `FT_Error'.
+
+ * include/freetype/internal/fttrace.h: New trace: ttmtx.
+
+ * src/truetype/ttpload.c, src/truetype/ttpload.h: `hdmx' loading and
+ parsing code is moved here.
+ New function `tt_face_load_prep' split from `tt_face_load_fpgm'.
+ `tt_face_load_fpgm' returns `FT_Err_Ok' if `fpgm' doesn't exist.
+
+ * src/cff/cffgload.c, src/cff/cffobjs.c: Update.
+
+ * src/truetype/ttgload.c, src/truetype/ttobjs.c: Update.
+
+2006-02-11 Chia-I Wu <b90201047@ntu.edu.tw>
+
+ * src/autofit/afcjk.c (af_cjk_metrics_init): Fix a stupid bug...
+
+ * src/autofit/aflatin.c (af_latin_metrics_init_widths): Use
+ AF_LatinMetricsRec as the dummy metrics because we cast the metrics
+ to it later in `af_latin_hints_link_segments'.
+
+2006-02-11 Chia-I Wu <b90201047@ntu.edu.tw>
+
+ * include/freetype/config/ftoption.h (AF_CONFIG_OPTION_CJK): #define
+ to enable autofit CJK script support. (#define'd by default.)
+
+ * src/autofit/aflatin.h (AF_LATIN_CONSTANT): New macro.
+
+ * src/autofit/aflatin.c (af_latin_metrics_init_widths): Make sure
+ that `edge_distance_threshold' is always set.
+ (af_latin_hints_link_segments): Potential divide-by-zero bug.
+ Use latin constant in the scoring formula.
+
+ * src/autofit/afcjk.c: Minor updates due to the above three changes.
+
+ * docs/TODO, docs/CHANGES: Updated.
+
+2006-02-09 Chia-I Wu <b90201047@ntu.edu.tw>
+
+ Introduce experimental autofit CJK module based on akito's autohint
+ patch. You need to #define AF_MOD_CJK in afcjk.c to enable it.
+
+ * src/autofit/afglobal.c, src/autofit/afcjk.h, src/autofit/afcjk.c,
+ src/autofit/rules.mk, src/autofit/autofit.c, src/autofit/aftypes.h:
+ Add CJK module based on akito's autohint patch.
+
+ * src/autofit/afhints.h (AF_SegmentRec): New field `len' for the
+ overlap length of the segments.
+ (AF_SEGMENT_LEN, AF_SEGMENT_DIST): New macros.
+
+ * src/autofit/aflatin.h (af_latin_metrics_init_widths),
+ src/autofit/aflatin.c (af_latin_metrics_init_widths): Made
+ `FT_LOCAL'.
+ Use the character given by the caller.
+ (af_latin_metrics_init_widths, af_latin_hints_link_segments): Scale
+ the thresholds.
+
+ * src/autofit/afloader.c (af_loader_load_g): Respect
+ AF_SCALER_FLAG_NO_ADVANCE.
+
+2006-02-09 Werner Lemberg <wl@gnu.org>
+
+ * src/cid/cidparse.c (cid_parse_new): Remove shadowing variable.
+
+2006-02-09 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ * src/cid/cidparse.c (cid_parse_new): Fix for abnormally short or
+ broken CIDFont. Reported by Taek Kwan(TK) Lee (see ft-devel
+ 2005-11-02).
+
+2006-02-08 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ * builds/unix/configure.ac: Fix bug for `--with-old-mac-fonts'
+ option on UNIX platform. It has been broken since 2006-01-11.
+
+2006-02-01 Werner Lemberg <wl@gnu.org>
+
+ * src/otvalid/module.mk: s/otvalid_module_class/otv_module_class/.
+ * src/gxvalid/module.mk: s/gxvalid_module_class/gxv_module_class/.
+
+ * builds/unix/unixddef.mk: Actually do define PLATFORM (fixing
+ change from 2006-01-31).
+ (TOP_DIR, OBJ_DIR): Update.
+
+ * builds/unix/install.mk (install): Fix path for ftmodule.h.
+
+ * Makefile, *.mk, builds/unix/unix-cc.in, builds/unix-def.in: Use
+ `?=' where appropriate.
+
+ * builds/detect.mk (TOP_DIR), builds/os2/os2-dev.mk (TOP_DIR),
+ builds/win32/w32-dev.mk (TOP_DIR): Removed. Defined elsewhere.
+
+2006-01-31 Werner Lemberg <wl@gnu.org>
+
+ Implement new, simplified module selection. With GNU make it is now
+ sufficient to modify a single file, `modules.cfg', to control the
+ inclusion of modules and base extension files.
+
+ This change also fixes the creation of ftmodule.h; it now depends on
+ `modules.cfg' and thus is rebuilt only if necessary.
+
+ Finally, a version of `ftoption.h' in OBJ_DIR is preferred over the
+ default location.
+
+ * modules.cfg: New file.
+
+ * builds/freetype.mk: Don't include `modules.mk'.
+ Include all `rules.mk' files as specified in `modules.cfg'.
+ (FTOPTION_FLAG, FTOPTION_H): New variables.
+ (FT_CFLAGS): Add macro definition for FT_CONFIG_MODULES_H.
+ Add FTOPTION_FLAG.
+ ($(FT_INIT_OBJ)): Don't use FT_MODULE_LIST.
+ (CONFIG_H): Add FTMODULE_H and FTOPTION_H.
+ (INCLUDES): Add DEVEL_DIR.
+ (INCLUDE_FLAGS, FTSYS_SRC, FTSYS_OBJ, FTDEBUG_SRC, FTDEBUG_OBJ,
+ OBJ_M, OBJ_S): Use `:=', not `='.
+ (remove_ftmodule_h): New phony target to delete `ftmodule.h'.
+ (distclean): Add remove_ftmodule_h.
+
+ * builds/modules.mk: (MODULE_LIST): Removed.
+ (make_module_list, clean_module_list): Replace targets
+ with...
+ (FTMODULE_H_INIT, FTMODULE_H_CREATE, FTMODULE_H_DONE): New
+ variables. Reason for the change is that it is not possible to have
+ a phony prerequisite which is run only if the target file must be
+ rebuilt (phony prerequisites act like subroutines and are *always*
+ executed). We only want to rebuild `ftmodule.h' if `module.cfg' is
+ changed.
+ Update all callers.
+ ($FTMODULE_H)): Rule to create `ftmodule.h', depending on
+ `modules.cfg'.
+
+ * builds/toplevel.mk: Rewrite and simplify module handling.
+ (MODULES_CFG, FTMODULE_H): New variables.
+ Include MODULES_CFG.
+ (MODULES): New variable to include all `module.mk' and `rules.mk'
+ files. We no longer use make's `wildcard' function for this.
+
+ * Makefile (USE_MODULES): Remove. Update all users.
+ (OBJ_DIR): Define it here.
+
+ * src/*/module.mk: Change
+
+ make_module_list: foo
+ foo: ...
+
+ to
+
+ FTMODULE_H_COMMANDS += FOO
+ define FOO
+ ...
+ endef
+
+ in all files. `FTMODULE_H_COMMANDS' is used in `FTMODULE_H_CREATE'.
+
+ * src/base/rules.mk (BASE_EXT_SRC): Use BASE_EXTENSIONS.
+
+ * builds/unix/detect.mk (setup): Always execute `configure' script.
+ (have_mk): Rename to...
+ (have_Makefile): This.
+ Don't use `strip' function.
+
+ * builds/unix/unix.mk: Include `install.mk' only if BUILD_PROJECT is
+ defined.
+ (have_mk): Don't use `strip' function.
+ Test for unix-def.mk in OBJ_DIR, not BUILD_DIR (and invert the test
+ accordingly).
+
+ * builds/unix/install.mk (install, uninstall): Handle `ftmodule.h'.
+
+ * builds/os2/os2-dev.mk, builds/unix/unix-dev.mk,
+ builds/win32/w32-bccd.mk, builds/win32/w32-dev.mk: Don't define
+ BUILD_DIR but DEVEL_DIR for development header files.
+
+ * builds/ansi/ansi-def.mk (TOP_DIR, OBJ_DIR),
+ builds/beos/beos-def.mk (TOP_DIR, OBJ_DIR), builds/unix/unix-def.in
+ (TOP_DIR, OBJ_DIR): Removed. Defined elsewhere.
+
+ * builds/dos/dos-def.mk (OBJ_DIR), builds/os2/os2-def.mk (OBJ_DIR),
+ builds/win32/win32-def.mk (OBJ_DIR): Removed. Defined elsewhere.
+
+ * builds/unix/unixddef.mk: Don't define BUILD_DIR but DEVEL_DIR for
+ development header files.
+ Don't define PLATFORM.
+
+ * configure: Copy `modules.cfg' to builddir if builddir != srcdir.
+ Update snippet taken from autoconf's m4sh.m4 to current CVS version.
+ Be more verbose.
+
+ * include/freetype/config/ftmodule.h: Add comments -- this file is
+ no longer used if FreeType is built with GNU make.
+
+ * docs/CHANGES, docs/CUSTOMIZE, docs/INSTALL, docs/INSTALL.ANY,
+ docs/INSTALL.GNU, docs/INSTALL.UNX: Document new build mechanism.
+ Other minor updates.
+
+ * modules.txt: Removed. Contents included in `modules.cfg'.
+
+
+ * include/freetype/internal/ftmemory.h (FT_QAlloc_Debug,
+ FT_Free_Debug) [FT_STRICT_ALIASING]: Fix typos.
+
+ * src/base/ftdbgmem.c (FT_Alloc_Debug, FT_Realloc_Debug,
+ FT_QAlloc_Debug, FT_QRealloc_Debug, FT_Free_Debug)
+ [FT_STRICT_ALIASING]: Implement.
+
+2006-01-31 Chia-I Wu <b90201047@ntu.edu.tw>
+
+ * src/cff/cffobjs.c (cff_face_init), src/cid/cidobjs.c
+ (cid_face_init), src/pfr/pfrobjs.c (pfr_face_init),
+ src/type1/t1objs.c (T1_Face_Init): Set face->height to MAX(1.2 *
+ units_per_EM, ascender - descender).
+
+2006-01-31 Chia-I Wu <b90201047@ntu.edu.tw>
+
+ * include/freetype/internal/t1types.h (AFM_FontInfo),
+ src/psaux/afmparse.c, src/tools/test_afm.c: Read `FontBBox',
+ `Ascender', and `Descender' from an AFM.
+
+ * src/type1/t1afm.c (T1_Read_Metrics): Use the metrics from the AFM.
+
+ * include/freetype/freetype.h (FT_FaceRec): Mention that fields may
+ be changed after file attachment.
+
+2006-01-28 Werner Lemberg <wl@gnu.org>
+
+ * src/*/module.mk (.PHONY): Add.
+
+2006-01-27 Werner Lemberg <wl@gnu.org>
+
+ * README, docs/FTL.TXT: Fix email address for bug reports.
+ Other minor formatting.
+
+ * devel/ftoption.h: Synchronize with
+ include/freetype/config/ftoption.h.
+
+ * src/autofit/module.mk (add_autofit_module), src/bdf/module.mk
+ (add_bdf_module), src/type42/module.mk (add_type42_driver): Fix
+ whitespace.
+
+ * src/smooth/module.mk (add_smooth_renderer): Add lcd and lcdv
+ renderer classes.
+
+2006-01-27 David Turner <david@freetype.org>
+
+ * builds/unix/configure.ac: Fix build problem on Cygwin.
+
+ * builds/unix/install.mk (install): Don't install the internal
+ headers, and remove existing ones if found in the target install
+ directory.
+
+ * src/autofit/afwarp.c: Add simple #ifdef to prevent compilation
+ if the warp hinter isn't active (it shouldn't, still experimental).
+
+ * Jamfile, include/freetype/config/ftmodule.h: Remove `gxvalid'
+ and `otvalid' from the list of modules that are linked statically
+ to a given FreeType library. Functionality has been moved to the
+ `ftvalid' CVS module.
+
+ Note also that current Make-based build system still compiles the
+ modules though.
+
+ * include/freetype/config/ftoption.h (FT_STRICT_ALIASING): New macro
+ which controls the definitions of the memory management functions to
+ avoid warnings with recent versions of GCC. This macro is only here
+ to be disabled, in case we detect problems with the new scheme.
+
+ NOTE: Disable macro to use the memory debugger -- this will be fixed
+ later!
+
+ * include/freetype/internal/ftmemory.h, src/base/ftutil.c (FT_Alloc,
+ FT_QAlloc, FT_Realloc, FT_QRealloc, FT_Free) [FT_STRICT_ALIASING]:
+ New versions.
+
+
+ * builds/win32/visualc/freetype.dsp: Updating project file to
+ define FT2_BUILD_LIBRARY, and remove gxvalid + otvalid modules from
+ compilation.
+
+
+ * builds/freetype.mk (FT_CFLAGS), Jamfile (DEFINES): Define the
+ macro FT2_BUILD_LIBRARY when compiling the library.
+
+ * include/freetype/config/ftheader.h: Remove inclusions of internal
+ headers except if the macro FT2_BUILD_LIBRARY is defined.
+
+
+ * include/freetype/internal/psaux.h (AFM_KernPair, AFM_TrackKern,
+ AFM_FontInfo): Move structure declarations to...
+ * include/freetype/internal/t1types.h: This file.
+
+
+ * (many files): Fix compiler warnings.
+ Various minor reorganizations.
+
+
+ * src/cff/cffload.c (cff_font_done): Don't free static array
+ `subfonts'.
+
+ * src/otvalid/otvcommn.c (otv_ClassDef_validate),
+ src/otvalid/otvgpos.c (otv_x_sxy): Fix debugging information.
+
+
+ Get rid of writable static variables (i.e., the string table) in
+ afmparse, and fix compilation in FT2_MULTI mode.
+
+ * src/psaux/afmparse.c: Include ft2build.h and FT_FREETYPE_H.
+ (AFM_MAX_ARGUMENTS): Define...
+ * src/psaux/afmparse.h: Here.
+ * src/psaux/Jamfile (_sources): Add afmparse.
+
+ * src/psaux/psconv.c: Include psconv.h.
+
+ * src/type1/t1afm.c: Don't include FT_INTERNAL_TYPE1_TYPES_H but
+ FT_INTERNAL_POSTSCRIPT_AUX_H.
+ * src/type1/t1afm.h: Include FT_INTERNAL_TYPE1_TYPES_H.
+
+2006-01-23 Chia-I Wu <b90201047@ntu.edu.tw>
+
+ * include/freetype/freetype.h (FT_Select_Size): Rename the second
+ argument from `idx' to `strike_index'.
+ (FT_Size_Request_Type): Add FT_SIZE_REQUEST_TYPE_MAX to the end of
+ this enum.
+
+ * include/freetype/internal/ftobjs.h (FT_REQUEST_WIDTH,
+ FT_REQUEST_HEIGHT): New macros to get the width and height of a
+ request, in fractional pixels.
+
+ * include/freetype/internal/ftobjs.h (FT_Select_Metrics,
+ FT_Request_Metrics), src/base/ftobjs.c (FT_Select_Metrics,
+ FT_Request_Metrics): New base functions to set the font metrics. They
+ were part of FT_Select_Size/FT_Request_Size and are made independent
+ functions so that metrics are not set again and again.
+
+ * src/base/ftobjs.c (FT_Select_Size, FT_Request_Size): Metrics are set
+ only when driver's size_select/size_request is NULL. That is, drivers
+ should set the metrics themselves.
+ (FT_Match_Size): Round before matching. This was what we did and it
+ does cause some problems without rounding.
+
+ * src/cff/cffobjs.c (cff_size_select), src/truetype/ttdriver.c
+ (tt_size_select): Set the font metrics.
+ s/index/strike_index/.
+ The scaled metrics are always preferred over strikes' metrics, even
+ when some strike is selected. This is done because the strikes'
+ metrics are not reliable, e.g., the sign of the descender is wrong for
+ some fonts.
+
+ * src/cff/cffobjs.c (cff_size_request), src/truetype/ttdriver.c
+ (tt_size_request): Set the font metrics.
+ Call cff_size_select/tt_size_select when some strike is matched.
+
+ * src/bdf/bdfdrivr.c, src/cff/cffobjs.c, src/cid/cidobjs.c,
+ src/pcf/pcfdrivr.c, src/truetype/ttdriver.c, src/type1/t1objs.c,
+ src/type1/t1objs.h, src/type42/t42objs.c, src/winfonts/winfnt.c:
+ Set the font metrics.
+ s/index/strike_index/.
+
+ * src/tools/test_afm.c, src/psaux/psconv.c: Older versions of these
+ files were committed. Just a catch-up.
+ (PS_Conv_ToFixed): Remove the `goto'.
+ (PS_Conv_ASCIIHexDecode, PS_Conv_EexecDecode): Speed up a little.
+
+ * src/sfnt/ttsbit.c (tt_face_load_sbit_strikes,
+ tt_face_load_strike_metrics), src/sfnt/ttsbit0.c
+ (tt_face_load_sbit_strikes, tt_face_load_strike_metrics): The
+ advertised metrics in `available_sizes' are different from those
+ actually used.
+
+2006-01-23 Chia-I Wu <b90201047@ntu.edu.tw>
+
+ * src/psaux/psaux.c src/psaux/psauxmod.c src/type1/t1driver.c: Make
+ AFM parser optional, controlled by `T1_CONFIG_OPTION_NO_AFM'.
+
+2006-01-22 Werner Lemberg <wl@gnu.org>
+
+ * builds/unix/install-sh, builds/unix/mkinstalldirs: Updated from
+ `texinfo' CVS module at savannah.gnu.org.
+
+2006-01-21 Werner Lemberg <wl@gnu.org>
+
+ * src/autofit/rules.mk (AUTOF_DRV_SRC): Add afwarp.c.
+
+ * src/autofit/afloader.c (af_loader_load_g): Move AF_USE_WARPER up
+ to avoid compiler warnings.
+
+ * src/autofit/afwarp.c (af_warper_compute_line_best): Remove
+ shadowing variable declarations.
+ Fix warning parameters and replace printf with AF_LOG.
+ (af_warper_compute): Remove unused variable.
+
+2006-01-20 David Turner <david@freetype.org>
+
+ Adding experimental implementation of `warp hinting' (new hinting
+ algorithm for gray-level and LCD rendering). It is disabled by
+ default, you need to #define AF_USE_WARPER in aftypes.h.
+
+ * src/autofit/afhints.c (af_glyph_hints_scale_dim) [AF_USE_WARPER]:
+ New function.
+ * src/autofit/afhints.h: Updated.
+
+ * src/autofit/aflatin.c [AF_USE_WARPER]: Include afwarp.h.
+ (af_latin_hints_init) [AF_USE_WARPER]: Reset mode to
+ FT_RENDER_MODE_NORMAL if an LCD mode is selected.
+ (af_latin_hints_apply) [AF_USE_WARPER]: Call af_warper_compute
+ appropriately.
+
+ * src/autofit/afloader.c (af_loader_load_g) [!AF_USER_WARPER]:
+ Isolate code for adjusting metrics.
+
+ * src/autofit/aftypes.h (AF_USE_WARPER): New macro (commented out by
+ default).
+
+ * src/autofit/afwarp.c, src/autofit/afwarp.h: New files.
+
+ * src/autofit/autofit.c [AF_USE_WARPER]: Include afwarp.c.
+
+ * src/autofit/Jamfile (_sources): Add afwarp.
+
+2006-01-19 David Turner <david@freetype.org>
+
+ * src/sfnt/ttsbit0.c (tt_face_load_strike_metrics): Fix small bug
+ that prevented compilation when FT_OPTIMIZE_MEMORY is defined.
+
+2006-01-19 Brian Weed <bw@imaginengine.com>
+
+ * builds/win32/visualc/freetype.dsp: Updated.
+
+2006-01-17 Werner Lemberg <wl@gnu.org>
+
+ Use pscmap service in CFF module.
+
+ * src/cff/cffcmap.c (cff_cmap_uni_pair_compare): Removed.
+ (cff_sid_to_glyph_name): New function.
+ (cff_cmap_unicode_init, cff_cmap_unicode_done,
+ cff_cmap_unicode_char_index, cff_cmap_unicode_char next): Use pscmap
+ service.
+ (cff_cmap_unicode_class_rec): Updated.
+ * src/cff/cffcmap.h (CFF_CMapUnicode, CFF_CMap_UniPair): Removed.
+
+
+ * src/psnames/psmodule.c (ps_unicodes_char_next): Fix `unicode'
+ return value.
+
+
+ * src/psaux/afmparse.c (afm_parser_read_vals): Use double casting
+ to avoid compiler warnings regarding type-punning.
+
+2006-01-16 Chia-I Wu <b90201047@ntu.edu.tw>
+
+ * src/psaux/afmparse.c, src/psaux/afmparse.h: New files which
+ implement an AFM parser.
+
+ * src/psaux/psconv.c, src/psaux/psconv.h: New files to provide
+ conversion functions (e.g., PS real number => FT_Fixed) for the
+ PS_Parser and AFM_Parser. Some of the functions are taken, with
+ some modifications, from the file psobjs.c.
+
+ * src/psaux/psobjs.c: Use functions from psconv.c.
+
+ * include/freetype/internal/psaux.h, src/psaux/psauxmod.c: Add
+ `AFM_Parser' to the `psaux' service.
+
+ * src/psaux/psaux.c, src/psaux/rules.mk (PSAUX_DRV_SRC): Include
+ those new files.
+
+ * src/tools/test_afm.c: A test program for AFM parser.
+
+ * include/freetype/internal/services/svkern.h: New file providing a
+ `Kerning' service. It is currently only used to get the track
+ kerning information.
+
+ * include/freetype/internal/ftserv.h (FT_SERVICE_KERNING_H): New
+ macro.
+
+ * src/type1/t1driver.c, src/type1/t1objs.c, src/type1/t1afm.c,
+ src/type1/t1afm.h: Update to use the AFM parser.
+ Provide the `Kerning' service.
+
+ * include/freetype/freetype.h, src/base/ftobjs.c: New API
+ `FT_Get_Track_Kerning'.
+
+2006-01-15 Chia-I Wu <b90201047@ntu.edu.tw>
+
+ * include/freetype/internal/ftobjs.h, src/base/ftobjs.c,
+ src/bdf/bdfdrivr.c, src/cff/cffgload.c, src/cid/cidgload.c,
+ src/pcf/pcfdrivr.c, src/type1/t1gload.c, src/winfonts/winfnt.c:
+ s/ft_fake_vertical_metrics/ft_synthesize_vertical_metrics/.
+
+ * docs/CHANGES: Mention that vertical metrics are synthesized for
+ fonts not having this info.
+
+2006-01-15 Chia-I Wu <b90201047@ntu.edu.tw>
+
+ * include/freetype/internal/ftobjs.h (ft_fake_vertical_metrics),
+ src/base/ftobjs.c (ft_fake_vertical_metrics): New function to fake
+ vertical metrics.
+
+ * src/cff/cffgload.c, src/cid/cidgload.c, src/pcf/pcfdrivr.c,
+ src/type1/t1gload.c, src/winfonts/winfnt.c: Fake vertical metrics,
+ which are monotone.
+
+ * src/truetype/ttgload.c (compute_glyph_metrics): Some fixes and
+ formattings in vertical metrics faking. There is still room for
+ improvements (and so does the CFF module).
+
+2006-01-15 Chia-I Wu <b90201047@ntu.edu.tw>
+
+ * src/bdf/bdfdrivr.c (BDF_Glyph_Load), src/pcf/pcfdrivr.c
+ (PCF_Glyph_Load), src/winfonts/winfnt.c (FNT_Load_Glyph): Don't set
+ the linear advance fields as they are only used by the outline
+ glyphs.
+
+ * include/freetype/freetype.h: Documentation updates and
+ clarifications.
+ The meaning of FT_LOAD_FORCE_AUTOHINT is changed so that no real
+ change need be made to the code.
+
+ * src/base/ftobjs.c (FT_Load_Glyph): Resolve flag dependencies and
+ decide whether to use the auto-hinter according to documentation.
+ There should to be no real difference.
+ Some checks (e.g., is text height positive?) after the glyph is
+ loaded.
+ (FT_Select_Size, FT_Request_Size): Scales are set to wrong values.
+ Be careful that scales won't be negative.
+
+2006-01-14 Chia-I Wu <b90201047@ntu.edu.tw>
+
+ * docs/CHANGES: Mention the size selection change.
+
+ * src/bdf/bdfdrivr.c (BDF_Size_Request, BDF_Size_Select),
+ src/pcf/pcfdrivr.c (PCF_Size_Request, PCF_Size_Select),
+ src/winfonts/winfnt.c (FNT_Size_Request, FNT_Size_Select): Do size
+ matching for requests of type NOMINAL and REAL_DIM.
+
+ * src/winfonts/winfnt.c (FNT_Face_Init): Print trace message when
+ `pixel_height' is used for nominal height.
+
+ * src/base/ftobjs.c (FT_Request_Size): Call `FT_Match_Size' if the
+ face is bitmap only and driver doesn't provide `request_size'. This
+ is added merely for completion as no driver satisfies the conditions.
+
+2006-01-13 Chia-I Wu <b90201047@ntu.edu.tw>
+
+ Introduce new size selection interface.
+
+ * include/freetype/internal/ftdriver.h (struct FT_Driver_ClassRec):
+ Replace `set_char_sizes' and `set_pixel_sizes' by `request_size' and
+ `select_size'.
+
+ * include/freetype/freetype.h (FT_Select_Size, FT_Size_Request_Type,
+ FT_Size_Request, FT_Request_Size, FT_Select_Size), src/base/ftobjs.c
+ (FT_Select_Size, FT_Request_Size): API additions to export the new
+ size selection interface.
+
+ * src/base/ftobjs.c (FT_Set_Char_Size, FT_Set_Pixel_Sizes): Use
+ `FT_Request_Size'.
+
+ * include/freetype/internal/ftobjs.h (FT_Match_Size),
+ src/base/ftobjs.c (FT_Match_Size): New function to match a size
+ request against `available_sizes'. Drivers supporting bitmap strikes
+ can use this function to implement `request_size'.
+
+ * src/bdf/bdfdrivr.c, src/cid/cidobjs.c, src/cid/cidobjs.h,
+ src/cid/cidriver.c, src/pcf/pcfdrivr.c, src/type1/t1driver.c,
+ src/type1/t1objs.c, src/type1/t1objs.h, src/type42/t42drivr.c,
+ src/type42/t42objs.c, src/type42/t42objs.h, src/winfonts/winfnt.c:
+ Update to new size selection interface.
+
+ * src/cff/cffdrivr.c, src/cff/cffgload.c, src/cff/cffobjs.c,
+ src/cff/cffobjs.h, src/truetype/ttdriver.c, src/truetype/ttgload.c,
+ src/truetype/ttobjs.c, src/truetype/ttobjs.h: Update to new size
+ selection interface.
+ Make `strike_index' FT_ULong and always defined.
+ Use `load_strike_metrics' provided by SFNT interface.
+
+2006-01-13 Chia-I Wu <b90201047@ntu.edu.tw>
+
+ * include/freetype/internal/sfnt.h (SFNT_Interface): New method
+ `load_strike_metrics' used to load the strike's metrics.
+
+ * src/sfnt/sfdriver.c, src/sfnt/ttsbit.c, src/sfnt/ttsbit.h,
+ src/sfnt/ttsbit0.c: New function `tt_face_load_strike_metrics'.
+
+ * src/pfr/pfrobjs.c (pfr_face_init): Set FT_Bitmap_Size correctly.
+
+ * src/winfonts/winfnt.c (FNT_Face_Init): Use `nominal_point_size' for
+ nominal size unless it is obviously incorrect.
+
+ * include/freetype/freetype.h (FT_Bitmap_Size): Update the comments on
+ FNT driver.
+
+2006-01-12 Werner Lemberg <wl@gnu.org>
+
+ Prepare use of pscmap service within CFF module.
+
+ * include/freetype/internal/services/svpscmap.h: Include
+ FT_INTERNAL_OBJECTS_H.
+ (PS_Unicode_Index_Func): Removed. Unused.
+ (PS_Macintosh_Name_Func): Renamed to...
+ (PS_Macintosh_NameFunc): This.
+ Update all callers.
+ (PS_Adobe_Std_Strings_Func): Renamed to...
+ (PS_Adobe_Std_StringsFunc): This.
+ Update all callers.
+ (PS_UnicodesRec): This is the former `PS_Unicodes' structure.
+ Add `cmap' member.
+ Update all callers.
+ (PS_Unicodes): This is now a typedef'd pointer to PS_UnicodesRec.
+ Update all callers.
+ (PS_Glyph_NameFunc): New typedef.
+ (PS_Unicodes_InitFunc): Change arguments to expect a function
+ and generic data pointer which returns a glyph name from a given
+ index.
+
+ * src/psnames/psmodule.c (ps_unicodes_init, ps_unicodes_char_index,
+ ps_unicodes_char_next, pscmaps_interface): Updated.
+
+ * include/freetype/internal/t1types.h (T1_FaceRec): Updated.
+
+ * src/psaux/t1cmap.h (T1_CMapStdRec): Updated.
+ (T1_CMapUnicode, T1_CMapUnicodeRec): Removed.
+
+ * src/psaux/t1cmap.c (t1_get_glyph_name): New callback function.
+ (t1_cmap_unicode_init, t1_cmap_unicode_done,
+ t1_cmap_unicode_char_index, t1_cmap_unicode_char_next,
+ t1_cmap_unicode_class_rec): Updated.
+
+ * src/type42/t42types.h (T42_FaceRec): Updated.
+
+2006-01-11 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ * include/freetype/ftmac.h: Add declaration of new functions
+ FT_New_Face_From_FSRef and FT_GetFile_From_Mac_ATS_Name that
+ were introduced by the jumbo patch on 2006-01-11.
+
+2006-01-11 Werner Lemberg <wl@gnu.org>
+
+ Fix Savannah bug #15056 and use pscmap service in psaux module.
+
+ * include/freetype/internal/services/svpscmap.h (PS_UniMap): Use
+ FT_UInt32 for `glyph_index'.
+ (PS_Unicodes_InitFunc): Use FT_String for `glyph_names'.
+ (PS_Unicodes_CharIndexFunc): Use FT_UInt32 for `unicode'.
+ (PS_Unicodes_CharNextFunc): Make second argument a pointer to
+ FT_UInt32.
+
+ * src/psnames/psmodule.c (VARIANT_BIT, BASE_GLYPH): New macros.
+ (ps_unicode_value): Set VARIANT_BIT in return value if glyph is a
+ variant glyph (this is, it has non-leading `.' in its name).
+ (compare_uni_maps): Sort base glyphs before variant glyphs.
+ (ps_unicodes_init): Use FT_String for `glyph_names' argument.
+ Reallocate only if number of used entries is much smaller.
+ Updated to handle variant glyphs.
+ (ps_unicodes_char_index, ps_unicodes_char_next): Prefer base glyphs
+ over variant glyphs.
+ Simplify code.
+
+ * src/psaux/t1cmap.c (t1_cmap_uni_pair_compare): Removed.
+ (t1_cmap_unicode_init, t1_cmap_unicode_char_index,
+ t1_cmap_unicode_char_next): Use pscmap service.
+ (t1_cmap_unicode_done): Updated.
+
+ * src/psaux/t1cmap.h (T1_CMapUniPair): Removed.
+ (T1_CMapUnicode): Use PS_Unicodes structure.
+
+2006-01-11 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ Jumbo patch to fix `deprecated' warning of cross-build for Tiger on
+ Intel, as reported by Sean McBride <sean@rogue-research.com> on
+ 2005-08-24.
+
+ * src/base/ftmac.c: Heavy change to build without deprecated Carbon
+ functions on Tiger.
+
+ * builds/unix/configure.ac: Add options and autochecks for Carbon
+ functions availabilities, for MacOS X.
+
+ * builds/mac/ascii2mpw.py: Add converter for character `\305'.
+ * builds/mac/FreeType.m68k_{far|cfm}.make.txt: Add conditional
+ macros to avoid unavailable functions.
+ ftmac.c must be compiled without `-strict ansi', because it disables
+ cpp macro to use ToolBox system call.
+
+ * builds/mac/FreeType.ppc_{classic|carbon}.make.txt: Add conditional
+ macros to avoid unavailable functions.
+
+ * builds/mac/README: Detailed notes on function availabilities.
+
+ * docs/CHANGES: Notes about (possible) incompatibilities.
+
+2006-01-08 Werner Lemberg <wl@gnu.org>
+
+ * docs/CHANGES: Updated.
+
+2006-01-08 Huw D M Davies <h.davies1@physics.ox.ac.uk>
+
+ * include/freetype/ftmodapi.h (FT_Module_Get_Flags): New
+ declaration.
+
+ * src/base/ftobjs.c (FT_Module_Get_Flags): New function.
+
+2006-01-07 Werner Lemberg <wl@gnu.org>
+
+ * src/pcf/pcfread.c (pcf_get_bitmaps): Remove unused variable
+ `bitmaps'. Reported by Yu Lei <yulei0@gmail.com>.
+
+ * src/base/ftutil.c (ft_highpow2): s/FT_BASE/FT_BASE_DEF/.
+ Reported by Niels Boldt <nielsboldt@gmail.com>.
+
+2005-12-28 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ * src/sfnt/sfnt/ttbdf.c: Add newline '\n' to the end of file, for
+ MPW compiler.
+
+2005-12-23 David Turner <david@freetype.org>
+
+ * Jamfile (RefDoc), docs/reference/README: Fix it so that `jam
+ refdoc' works correctly to generate the API reference in
+ `docs/reference'.
+
+ * src/tools/docmaker/tohtml.py (print_html_field,
+ print_html_field_list): Update to output nicer fields lists in the
+ API reference.
+
+ * src/base/ftobjs.c (FT_Load_Glyph): FT_LOAD_TARGET_LIGHT now
+ forces auto-hinting.
+
+ * freetype/freetype.h: Updating the documentation for
+ FT_LOAD_TARGET_XXX and FT_Render_Mode values.
+
+2005-12-23 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ * src/base/ftmac.c (FT_New_Face_From_Suitcase): Count scalable faces
+ in supported formats (sfnt, LWFN) only, and ignore bitmap faces in
+ unsupported formats (fbit, NFNT). The number of available faces are
+ passed via face->num_faces. If bitmap faces are embedded in sfnt
+ resource, face->num_fixed_size is correctly set. In public API,
+ FT_New_Face() and FT_New_Face_From_FSSpec() count the faces as
+ FT_GetFile_From_Mac_Name(), which ignores NFNT resources.
+
+ * doc/CHANGES: Mention the changes.
+
+2005-12-17 Chia-I Wu <b90201047@ntu.edu.tw>
+
+ * src/truetype/ttinterp.c (Update_Max): Set current size of buffer
+ correctly (so that memory debug system won't panic).
+
+2005-12-16 Chia-I Wu <b90201047@ntu.edu.tw>
+
+ * include/freetype/internal/ftobjs.h (ft_glyphslot_grid_fit_metrics),
+ src/base/ftobjs.c (ft_glyphslot_grid_fit_metrics): Removed.
+
+ * src/base/ftobjs.c (ft_recompute_scaled_metrics): Do not round.
+
+ * src/cff/cffgload.c (cff_slot_load), src/cid/cidgload.c
+ (cid_slot_load_glyph), src/truetype/ttgload.c (compute_glyph_metrics),
+ src/type1/t1gload.c (T1_Load_Glyph): Do not round glyph metrics.
+
+ * doc/CHANGES: Mention the changes.
+
+2005-12-13 David Turner <david@freetype.org>
+
+ Change the implementation of the LIGHT hinting mode to completely
+ disable horizontal hinting. This is an experimental effort to
+ integrate David Chester's latest patch without affecting the other
+ hinting modes as well.
+
+ Note that this doesn't force auto-hinting for all fonts, however.
+
+ * src/autofit/afhints.c (af_glyph_hints_reload): Don't set
+ scaler_flags here but...
+ (af_glyph_hints_rescale): Here.
+
+ * src/autofit/aflatin.c (af_latin_hints_init): Disable horizontal
+ hinting for `light' hinting mode.
+
+
+ * Jamfile: Small fix to ensure that ftexport.sym is placed into the
+ same location as other generated objects (i.e., within the `objs'
+ directory of the current directory).
+
+
+ Add support for an embedded `BDF ' table within SFNT-based bitmap
+ font files. This is used to store atoms & properties from the
+ original BDF fonts that were used to generate the font file.
+
+ The feature is controlled by TT_CONFIG_OPTION_BDF within
+ `ftoption.h' and is used to implement FT_Get_BDF_Property for these
+ font files.
+
+ At the moment, this is still experimental, the BDF table format
+ isn't cast into stone yet.
+
+ * include/freetype/config/ftoption.h (TT_CONFIG_OPTION_BDF): New
+ macro.
+
+ * include/freetype/config/ftstdlib.h (ft_memchr): New macro.
+
+ * include/freetype/internal/tttypes.h (TT_BDFRec, TT_BDF)
+ [TT_CONFIG_OPTION_BDF]: New structure.
+ (TT_FaceRec) [TT_CONFIG_OPTION_BDF]: New member `bdf'.
+
+ * include/freetype/tttags.h (TTAG_BDF): New macro.
+
+ * src/sfnt/Jamfile (_sources): Add ttbdf.
+
+ * src/sfnt/rules.mk (SFNT_DRV_SRC): Add ttbdf.c.
+
+ * src/sfnt/sfdriver.c [TT_CONFIG_OPTION_BDF]: Include ttbdf.h and
+ FT_SERVICE_BDF_H.
+ (sfnt_get_charset_it) [TT_CONFIG_OPTION_BDF]: New function.
+ (sfnt_service_bdf) [TT_CONFIG_OPTION_BDF]: New service.
+ (sfnt_services) [TT_CONFIG_OPTION_BDF]: Add sfnt_service_bdf.
+
+ * src/sfnt/sfnt.c [TT_CONFIG_OPTION_BDF]: Include ttbdf.c.
+
+ * src/sfnt/sfobjs.c [TT_CONFIG_OPTION_BDF]: Include ttbdf.h.
+ (sfnt_done_face) [TT_CONFIG_OPTION_BDF]: Call
+ tt_face_free_bdf_props.
+
+ * src/sfnt/ttbdf.h, src/sfnt/ttbdf.c: New files.
+
+2005-12-07 Werner Lemberg <wl@gnu.org>
+
+ * src/sfnt/sfobjs.c (sfnt_init_face): Move tag check to...
+ * src/sfnt/ttload.c (sfnt_init): Here, before handling TTCs.
+
+2005-12-06 Chia-I Wu <b90201047@ntu.edu.tw>
+
+ * src/truetype/ttobjs.c (tt_size_init): size->ttmetrics.valid is
+ initialized twice.
+ size->strike_index is not initialized.
+
+2005-12-02 Taek Kwan(TK) Lee <taeklee@gmail.com>
+
+ * src/type42/t42objs.c (T42_Face_Init): Replace call to
+ FT_New_Memory_Face with call to FT_Open_Face to pass `params'.
+
+2005-11-30 Werner Lemberg <wl@gnu.org>
+
+ * docs/CHANGES: Document ftdump's `-v' option.
+ Document latest charmap code changes.
+
+ * src/sfnt/ttcmap.c, src/sfnt/ttcmap.h:
+ s/TT_CMAP_FLAG_OVERLAPPED/TT_CMAP_FLAG_OVERLAPPING/.
+
+2005-11-30 Chia-I Wu <b90201047@ntu.edu.tw>
+
+ * src/sfnt/ttcmap.c (tt_cmap4_char_map_binary,
+ tt_cmap12_char_map_binary): Fix compiler warnings.
+
+2005-11-29 Chia-I Wu <b90201047@ntu.edu.tw>
+
+ Major update to distinguish between unsorted and overlapping
+ segments for cmap format 4. For overlapping but sorted segments,
+ which is previously considered unsorted, we still use binary search.
+
+ * src/sfnt/ttcmap.h (TT_CMapRec_): Replace `unsorted' by `flags'.
+ (TT_CMAP_FLAG_UNSORTED, TT_CMAP_FLAG_OVERLAPPED): New macros.
+
+ * src/sfnt/ttcmap.c (OPT_CMAP4): Removed as it is always defined.
+ (TT_CMap4Rec_): Remove `old_charcode' and `table_length'.
+ (tt_cmap4_reset): Removed.
+ (tt_cmap4_init): Updated accordingly.
+ (tt_cmap4_next): Updated accordingly.
+ Take care of overlapping segments.
+ (tt_cmap4_validate): Make sure the subtable is large enough.
+ Do not check glyph_ids because some fonts set the length wrongly.
+ Also, if all segments have offset 0, glyph_ids is always invalid.
+ It does not cause any problem so far only because the check misses
+ equality.
+ Distinguish between unsorted and overlapping segments.
+ (tt_cmap4_char_map_linear, tt_cmap4_char_map_binary): New functions
+ to do `charcode => glyph index' by linear/binary search.
+ (tt_cmap4_char_index, tt_cmap4_char_next): Use
+ tt_cmap4_char_map_linear and tt_cmap4_char_map_binary.
+ (tt_face_build_cmaps): Treat the return value of validator as flags
+ for cmap.
+
+2005-11-29 Chia-I Wu <b90201047@ntu.edu.tw>
+
+ * src/sfnt/ttcmap.c (TT_CMap12Rec_, tt_cmap12_init, tt_cmap12_next):
+ New structures and functions for fast `next char'.
+ (tt_cmap12_char_map_binary): New function to do `charcode => glyph
+ index' by binary search.
+ (tt_cmap12_char_index, tt_cmap12_char_next): Use
+ tt_cmap12_char_map_binary.
+ (tt_face_build_cmaps): Check table and offset correctly (equality is
+ missing).
+
+2005-11-15 Detlef Würkner <TetiSoft@apg.lahn.de>
+
+ * builds/amiga/smakefile: Adjusted the compiler options
+ to the current sources, now really builds the gxvalid, gzip
+ and psnames modules.
+
+ * builds/amiga/src/base/ftsystem.c: The assumed Seek() position
+ in the file cache was off by one byte which could cause false
+ errors in font files.
+
+2005-11-24 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ * builds/mac/FreeType.m68k_far.make.txt,
+ builds/mac/FreeType.m68k_cfm.make.txt,
+ builds/mac/FreeType.ppc_classic.make.txt,
+ builds/mac/FreeType.ppc_carbon.make.txt:
+ Updated for MPW to build all available modules.
+
+2005-11-21 Håvard Wall <haavardw@ifi.uio.no>
+
+ * src/bdf/bdfdrivr.c (bdf_interpret_style, BDF_Face_Done): Fix small
+ memory leak.
+
+2005-11-21 Werner Lemberg <wl@gnu.org>
+
+ * src/sfnt/ttload.c (sfnt_init): Add tracing message.
+
+2005-11-21 Chia-I Wu <b90201047@ntu.edu.tw>
+
+ * src/sfnt/ttsbit0.c (tt_sbit_decoder_load_image): Image_offset was
+ added twice to image_start if image_format was 2 or 5.
+
+2005-11-21 Chia-I Wu <b90201047@ntu.edu.tw>
+
+ * src/sfnt/sfobjs.c (sfnt_init_face): Check that format_tag is known
+ before loading the table directory.
+
+ * src/sfnt/ttload.c (tt_face_load_sfnt_header,
+ tt_face_load_directory): Delay sfnt_dir_check from
+ tt_face_load_sfnt_header to tt_face_load_directory.
+
+2005-11-20 Chia-I Wu <b90201047@ntu.edu.tw>
+
+ * src/sfnt/ttload.c (sfnt_dir_check): Clean up and return correct
+ error code.
+ (sfnt_init): New function to fill in face->ttc_header. A non-TTC font
+ is synthesized into a TTC font with one offset table.
+ (tt_face_load_sfnt_header): Use sfnt_init.
+ Fix an invalid access if the font is TTC and face_index is -1.
+
+2005-11-18 Werner Lemberg <wl@gnu.org>
+
+ * src/sfnt/ttload.c (tt_face_load_metrics): Ignore excess number
+ of metrics instead of aborting. Patch suggested by Derek Noonburg.
+
+ * src/cff/cffgload.c (cff_slot_load), src/cid/cidgload.c
+ (cid_slot_load_glyph), src/type1/t1gload.c (T1_Load_Glyph): Scale
+ the glyph properly if no hinter is available.
+
+ * docs/CHANGES: Mention scaling bug.
+
+2005-11-18 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ * include/freetype/ftgxval.h, src/base/ftgxval.c
+ (FT_TrueTypeGX_Free, FT_ClassicKern_Free): New functions to free
+ buffers allocated by gxvalid module.
+ * include/freetype/ftotval.h, src/base/ftotval.c
+ (FT_OpenType_Free): New function to free buffer allocated by
+ otvalid module.
+
+2005-11-18 Chia-I Wu <b90201047@ntu.edu.tw>
+
+ * builds/unix/ftsystem.c (FT_Stream_Open, FT_New_Memory,
+ FT_Done_Memory), builds/vms/ftsystem.c (FT_Stream_Open, FT_New_Memory,
+ FT_Done_Memory), builds/win32/ftdebug.c (FT_Message, FT_Panic):
+ s/FT_EXPORT/FT_BASE/.
+
+2005-11-17 Detlef Würkner <TetiSoft@apg.lahn.de>
+
+ * builds/amiga/src/base/ftdebug.c (FT_Trace_Get_Count,
+ FT_Trace_Get_Name, FT_Message, FT_Panic),
+ builds/amiga/src/base/ftsystem.c (FT_New_Memory, FT_Done_Memory,
+ FT_Stream_Open): s/FT_EXPORT/FT_BASE/.
+
+2005-11-17 Detlef Würkner <TetiSoft@apg.lahn.de>
+
+ * builds/amiga/makefile, builds/amiga/makefile.os4,
+ builds/amiga/smakefile,
+ builds/amiga/include/freetype/config/ftmodule.h: Updated the Amiga
+ build files (added support for the gxvalid module).
+
+2005-11-17 Werner Lemberg <wl@gnu.org>
+
+ Add vertical metrics support to OpenType CFF outlines. Based on a
+ patch from Mike Moening <MikeM@RetekSolutions.com>.
+
+ * src/cff/cffgload.c (cff_face_get_vertical_metrics): New function.
+ (cff_slot_load): Use cff_face_get_vertical_metrics.
+
+ * docs/CHANGES: Updated.
+
+2005-11-17 Chia-I Wu <b90201047@ntu.edu.tw>
+
+ * src/base/ftcalc.c (FT_MulTo64): Commented out.
+
+ * include/freetype/internal/ftcalc.h (FT_SqrtFixed),
+ src/base/ftcalc.c (FT_SqrtFixed),
+ include/freetype/internal/ftdebug.h (FT_Trace_Get_Count,
+ FT_Trace_Get_Name, FT_Message, FT_Panic), src/base/ftdebug.c
+ (FT_Trace_Get_Count, FT_Trace_Get_Name, FT_Message, FT_Panic),
+ include/freetype/internal/ftobjs.h (FT_New_Memory, FT_Done_Memory),
+ include/freetype/internal/ftstream.h (FT_Stream_Open),
+ src/base/ftsystem.c (FT_New_Memory, FT_Done_Memory, FT_Stream_Open):
+ s/FT_EXPORT/FT_BASE/.
+
+ * builds/exports.mk: Manually add TT_New_Context to EXPORTS_LIST
+ too.
+
+2005-11-15 David Turner <david@freetype.org>
+
+ * src/base/fttrigon.c (ft_trig_prenorm): Fix a bug that created
+ invalid computations, resulting in very weird bugs in TrueType
+ bytecode hinted fonts.
+
+ * src/truetype/ttinterp.c (FT_UNUSED_EXEC): Don't perform a
+ structure copy each time.
+
+2005-11-11 Werner Lemberg <wl@gnu.org>
+
+ * src/cache/ftccache.c (FTC_Cache_Clear), src/cache/ftcmanag.c
+ (FTC_Manager_Check): Remove FT_EXPORT_DEF tag.
+
+ * src/base/ftcalc.c (FT_Add64): Remove FT_EXPORT_DEF tag.
+ (FT_Div64by32, FT_Sqrt32): Commented out. Unused.
+
+ * include/freetype/internal/ftcalc.h (SQRT_32): Removed. Unused.
+ (FT_Sqrt32): Commented out. Unused.
+
+ * include/freetype/cache/ftccache.h:
+ s/ftc_node_destroy/FTC_Node_Destroy/.
+
+ * src/cache/ftccback.h (ftc_node_destroy): New declaration.
+
+ * src/cache/ftccache.c (ftc_node_destroy): Use FT_LOCAL_DEF tag.
+ (FTC_Node_Destroy): New exported wrapper function for
+ ftc_node_destroy.
+
+ * src/cache/ftcmanag.c: Include ftccback.c.
+
+2005-11-10 Werner Lemberg <wl@gnu.org>
+
+ * src/autofit/afangles.c, src/autofit/aftypes.h (af_angle_diff):
+ Comment out. Unused.
+
+ * builds/exports.mk ($(EXPORTS_LIST)): Add TT_RunIns.
+
+2005-11-10 Christian Biesinger <cbiesinger@web.de>
+
+ * builds/beos/beos.mk: Call beos-def.mk before anything else to
+ define the separator.
+
+ * builds/unix/unix-cc.in (LINK_LIBRARY): Add `-no-undefined' flag.
+
+2005-11-07 Werner Lemberg <wl@gnu.org>
+
+ * src/type1/t1afm.c (T1_Read_PFM): Zero offset means `no kerning
+ table available'. From Sergey Tolstov <stolstov@esri.com>.
+
+2005-11-03 Ville Syrjälä <syrjala@sci.fi>
+
+ * src/base/ftobjs.c (FT_Open_Face): Avoid possible memory leak.
+
+2005-11-02 Werner Lemberg <wl@gnu.org>
+
+ Make compiling instructions in docs/CUSTOMIZE work again.
+
+ * builds/unix/unix-cc.in (CPPFLAGS): New variable.
+ (CFLAGS): Don't include @CPPFLAGS@.
+ * builds/freetype.mk (FT_CFLAGS): Add CPPFLAGS.
+
+2005-10-28 David Turner <david@freetype.org>
+
+ Update build system to support the generation of a list of exported
+ symbols or Windows .DEF files by parsing the public headers with the
+ `apinames' tool located in src/tools/apinames.c.
+
+ Only tested on Unix at the moment. On Windows, the .DEF file is
+ generated but isn't used yet to generate a DLL.
+
+ * builds/exports.mk: New file.
+
+ * builds/freetype.mk: Include exports.mk.
+ (dll): New target.
+ (clean_project_dos): Fix rule.
+
+ * builds/compiler/visualc.mk (TE), builds/dos/dos-def.mk (E),
+ builds/os2/os2-def.mk (E), builds/win32/win32-def.mk (E): New
+ variables for controlling executable extensions.
+
+ * builds/unix/unix-cc.in (EXPORTS_LIST, CCexe),
+ builds/win32/w32-bcc.mk, builds/win32/w32-gcc.mk,
+ builds/win32/w32-icc.mk, builds/win32/w32-icc.mk,
+ builds/win32/w32-mingw32.mk, builds/win32/w32-vcc,
+ builds/win32/w32-wat.mk (EXPORTS_LIST, EXPORT_OPTIONS,
+ APINAMES_OPTIONS): New targets for controlling the `apinames' tool.
+
+ * Jamfile (GenExportSymbols): Updated.
+
+
+ * src/pfr/pfrtypes.h, src/pfr/pfrload.c, src/pfr/pfrobjs.c
+ [!FT_OPTIMIZE_MEMORY]: Fold memory optimization code into
+ FT_OPTIMIZE_MEMORY chunks for better maintainability and simplicity.
+
+
+ * src/base/fttrigon.c (ft_trig_prenorm), src/base/ftcalc.c
+ (FT_MulFix): Performance optimizations.
+
+
+ * include/freetype/internal/ftgloadr.h (FT_GLYPHLOADER_CHECK_P,
+ FT_GLYPHLOADER_CHECK_C, FT_GLYPHLOADER_CHECK_POINTS): New macros for
+ checking points and contours. Update callers to use
+ FT_GLYPHLOADER_CHECK_POINTS instead of FT_GlyphLoader_CheckPoints
+ at profile-detected hot-spots.
+
+ * src/base/ftgloadr.c (FT_GlyphLoader_CheckPoints): Set `adjust'
+ to 0 to not call `AdjustPoints' every time.
+
+
+ * src/autofit/aftypes.h (AF_ANGLE_DIFF): New macro to inline
+ FT_Angle_Diff.
+
+ * src/autofit/afhints.c (af_direction_compute): Re-implement.
+ (af_glyph_hints_compute_inflections, af_glyph_hints_reload): Use
+ AF_ANGLE_DIFF to speed up the detection of inflexions.
+
+
+ * src/tools/apinames.c: Include <string.h>.
+ (OutputFormat): New enumeration.
+ (names_dump): Add two parameters to control output format and DLL
+ name.
+ (names_dump_windef): Removed. Code folded into `names_dump'.
+ (read_header_file): Use isalnum, not isalpha. Otherwise function
+ names with digits aren't read correctly.
+ (usage): Updated.
+ (main): New option `-o' to control output file name.
+ New option `-d' to indicate DLL file name.
+ Extend `-w' flag to handle Borland and Watcom compilers and linkers.
+
+2005-10-28 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ * builds/mac/ftlib.prj, builds/mac/freetype.mak: Removed.
+ ftlib.prj is unmaintained and incompatible with current tree.
+ freetype.mak is unrecoverably broken.
+
+ * builds/mac/ftlib.prj.xml: Added.
+ Generated by Metrowerks CodeWarrior 9.0.
+
+ * builds/mac/FreeType.m68k_far.make.txt,
+ builds/mac/FreeType.m68k_cfm.make.txt,
+ builds/mac/FreeType.ppc_classic.make.txt,
+ builds/mac/FreeType.ppc_carbon.make.txt: Added.
+ Skeleton files of MPW makefiles.
+
+ * builds/mac/ascii2mpw.py: Added.
+ Python script to make MPW makefile from skeleton.
+
+ * builds/mac/README: Updated.
+ Almost rewritten to use new files.
+
+2005-10-28 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ * src/base/ftmac.c: Fix invalid casts from NULL to integer typed
+ variables. Advised by David Turner, Masatake YAMATO, Sean McBride,
+ and George Williams.
+
+2005-10-27 Werner Lemberg <wl@gnu.org>
+
+ * include/freetype/ftsysmem.h, include/freetype/ftsysio.h: Removed.
+ Obsolete.
+
+2005-10-25 Werner Lemberg <wl@gnu.org>
+
+ * src/sfnt/sfdriver.c (sfnt_interface): Move out
+ `tt_face_get_kerning' from a #ifdef clause. Reported by Tony J.
+ Ibbs <tibs@sj.co.uk>.
+
+2005-10-23 Werner Lemberg <wl@gnu.org>
+
+ * src/base/ftdbgmem.c (ft_mem_debug_realloc): Make it compile with
+ C++.
+
+2005-10-21 David Turner <david@freetype.org>
+
+ * src/base/ftdbgmem.c (ft_mem_table_set, ft_mem_debug_realloc):
+ Another realloc memory counting bug fix.
+
+ * src/tools/Jamfile: Add missing file.
+
+ * src/lzw/Jamfile: Fix incorrect source file reference.
+
+2005-10-20 David Turner <david@freetype.org>
+
+ * src/base/ftdbgmem.c (ft_mem_table_set, ft_mem_table_remove,
+ ft_mem_debug_alloc, ft_mem_debug_free, ft_mem_debug_realloc): Fixes
+ to better account for memory reallocations.
+
+ * src/lzw/ftlzw2.c, src/lzw/ftzopen.h, src/lzw/ftzopen.c,
+ src/lzw/rules.mk: First version of LZW loader re-implementation.
+ Apparently, this saves about 330 KB of heap memory when loading
+ timR24.pcf.Z.
+
+2005-10-20 Chia-I Wu <b90201047@ntu.edu.tw>
+
+ * include/freetype/ftbitmap.h (FT_Bitmap_Copy, FT_Bitmap_Embolden),
+ src/base/ftbdf.c (FT_Get_BDF_Property), src/cache/ftcmru.c
+ (FTC_MruList_Reset, FTC_MruList_Done, FTC_MruList_Lookup): Fix
+ FT_EXPORT/FT_EXPORT_DEF tagging.
+
+2005-10-19 Chia-I Wu <b90201047@ntu.edu.tw>
+
+ * src/truetype/ttgload.c (TT_Load_Glyph): Allow size->ttmetrics to
+ be invalid when FT_LOAD_NO_SCALE is set.
+
+2005-10-17 David Turner <david@freetype.org>
+
+ * src/base/ftobjs.c (FT_Open_Face): Don't call FT_New_GlyphSlot and
+ FT_New_Size if we are opening a face with face_index < 0 (which is
+ only used for testing the format).
+
+ * src/gxvalid/gxvmort0.c (gxv_mort_subtable_type0_entry_validate):
+ Remove compiler warning.
+
+2005-10-16 David Turner <david@freetype.org>
+
+ * src/tools/apinames.c: Add new tool to extract public API function
+ names from header files.
+
+2005-10-05 Werner Lemberg <wl@gnu.org>
+
+ Add FT_FACE_FLAG_HINTER to indicate that a specific font driver has
+ a hinting engine of its own.
+
+ * include/freetype/freetype.h (FT_FACE_FLAG_HINTER): New macro.
+
+ * src/cff/cffobjs.c (cff_face_init), src/cid/cidobjs.c
+ (cid_face_init), src/truetype/ttobjs.c (tt_face_init)
+ [TT_CONFIG_OPTION_BYTECODE_INTERPRETER], src/type1/t1objs.c
+ (T1_Face_Init), src/type42/t42objs.c (T42_Face_Init)
+ [TT_CONFIG_OPTION_BYTECODE_INTERPRETER]: Update face flags.
+
+ * docs/CHANGES: Document it.
+
+2005-09-27 Werner Lemberg <wl@gnu.org>
+
+ * builds/unix/freetype2.m4: Add license exception so that the file
+ can be used in any other autoconf script.
+
+2005-09-26 David Turner <david@freetype.org>
+
+ * src/autofit/aflatin.c (af_latin_compute_stem_width): Fix bad
+ computation of the `vertical' flag, causing ugly things in LCD mode
+ and others.
+
+2005-09-23 David Turner <david@freetype.org>
+
+ * src/autofit/aflatin.c (af_latin_hints_init): Fix a bug that
+ prevented internal hint mode bitflags from being computed correctly.
+
+ * src/base/Jamfile: Adding src/base/ftgxval.c.
+
+ * src/gxvalid/gxvbsln.c, src/gxvalid/gxvcommn.c,
+ src/gxvalid/gxvfeat.c, src/gxvalid/gxvjust.c, src/gxvalid/gxvkern.c,
+ src/gxvalid/gxvlcar.c, src/gxvalid/gxvmort.c,
+ src/gxvalid/gxvmort0.c, src/gxvalid/gxvmort1.c,
+ src/gxvalid/gxvmort2.c, src/gxvalid/gxvmort4.c,
+ src/gxvalid/gxvmort5.c, src/gxvalid/gxvmorx.c,
+ src/gxvalid/gxvmorx0.c, src/gxvalid/gxvmorx1.c,
+ src/gxvalid/gxvmorx2.c, src/gxvalid/gxvmorx5.c,
+ src/gxvalid/gxvopbd.c, src/gxvalid/gxvprop.c,
+ src/truetype/ttgload.c: Remove _many_ compiler warnings when
+ compiling with Visual C++ at maximum level (/W4).
+
+ * src/autofit/afangles.c (af_angle_atan): Replaced CORDIC-based
+ implementation with one using lookup tables. This simple thing
+ speeds up glyph loading by 18%, according to ftbench!
+
+ * src/sfnt/sfdriver.c (sfnt_get_interface): Don't check for
+ `get_sfnt' and `load_sfnt' module interfaces.
+
+2005-09-22 Werner Lemberg <wl@gnu.org>
+
+ * docs/CHANGES: Mention SING Glyphlet support.
+
+2005-09-22 David Turner <david@freetype.org>
+
+ * src/base/Jamfile: Disable compilation of ftgxval module
+ temporarily.
+
+2005-09-19 David Somers <dsomers@omz13.com>
+
+ * src/sfnt/ttload.c (sfnt_dir_check): Modified to allow a
+ font to have no `head' table if tables `SING' and `META' are
+ present; this is to support `SING Glyphlet'.
+
+ `SING Glyphlet' is an extension to OpenType developed by Adobe
+ primarily to facilitate adding supplemental glyphs to an OpenType
+ font (with emphasis on, but not necessarily limited to, gaiji to a
+ CJK font). A SING Glyphlet Font is an OpenType font that contains
+ the outline(s), either in a `glyf' or `CFF' table, for a glyph;
+ `cmap', `BASE', and `GSUB' tables are present with the same format
+ and functionality as a regular OpenType font; there are no `name',
+ `head', `OS/2', and `post' tables; there are two new tables, `SING'
+ which contains details about the glyphlet, and `META' which contains
+ metadata.
+
+ Further information on the SING Glyphlet format can be found at:
+
+ https://www.adobe.com/content/dam/acom/en/devnet/font/pdfs/5148.SING_Tutorial.pdf
+
+ * include/freetype/tttags.h (TTAG_SING, TTAG_META): New macros for
+ the OpenType tables `SING' and `META'. These two tables are used in
+ SING Glyphlet Format fonts.
+
+2005-09-09 Werner Lemberg <wl@gnu.org>
+
+ * src/sfnt/sfobjs.c (sfnt_load_face): Reactivate code to set
+ FT_FACE_FLAG_KERNING which has been commented out erroneously.
+
+ * docs/CHANGES: Document it.
+
+2005-09-05 Werner Lemberg <wl@gnu.org>
+
+ Fixes for `make multi' and using C++ compiler.
+
+ * src/gxvalid/gxvcommn.c (gxv_set_length_by_ushort_offset,
+ gxv_set_length_by_ulong_offset, gxv_array_getlimits_byte,
+ gxv_array_getlimits_ushort): Declare with FT_LOCAL_DEF.
+ (gxv_compare_ranges): Make it static.
+ (gxv_LookupTable_fmt0_validate, gxv_LookupTable_fmt2_validate,
+ gxv_LookupTable_fmt4_validate, gxv_LookupTable_fmt6_validate,
+ gxv_LookupTable_fmt8_validate, gxv_LookupTable_validate): Improve
+ trace messages.
+ (gxv_StateArray_validate, gxv_XStateArray_validate): s/class/clazz/.
+ (GXV_STATETABLE_HEADER_SIZE, GXV_STATEHEADER_SIZE,
+ GXV_XSTATETABLE_HEADER_SIZE, GXV_XSTATEHEADER_SIZE): Move to
+ gxvcommn.h.
+
+ * src/gxvalid/gxvcommn.h: Add prototypes for
+ gxv_StateTable_subtable_setup, gxv_XStateTable_subtable_setup,
+ gxv_XStateTable_validate, gxv_array_getlimits_byte,
+ gxv_array_getlimits_ushort, gxv_set_length_by_ushort_offset,
+ gxv_set_length_by_ulong_offset, gxv_odtect_add_range,
+ gxv_odtect_validate.
+ (GXV_STATETABLE_HEADER_SIZE, GXV_STATEHEADER_SIZE,
+ GXV_XSTATETABLE_HEADER_SIZE, GXV_XSTATEHEADER_SIZE): Moved from
+ gxvcommn.c.
+
+ * src/gxvalid/gxvbsln.c (gxv_bsln_LookupValue_validate,
+ gxv_bsln_parts_fmt1_validate): Improve trace messages.
+
+ * src/gxvalid/gxvfeat.c: Split off predefined registry stuff to...
+ * src/gxvalid/gxvfeat.h: New file.
+
+ * src/gxvalid/gxvjust.c (gxv_just_wdc_entry_validate): Improve trace
+ message.
+
+ * src/gxvalid/gxvkern.c (GXV_kern_Dialect): Add KERN_DIALECT_UNKNOWN.
+ (gxv_kern_subtable_fmt1_valueTable_load,
+ gxv_kern_subtable_fmt1_subtable_setup,
+ gxv_kern_subtable_fmt1_entry_validate): Fix C++ compiler errors.
+ (gxv_kern_coverage_validate): Use KERN_DIALECT_UNKNOWN.
+ Improve trace message.
+ (gxv_kern_validate_generic): Fix C++ compiler error.
+ Improve trace message.
+ (gxv_kern_validate_classic): Fix C++ compiler error.
+
+ * src/gxvalid/gxvmort0.c (gxv_mort_subtable_type0_validate): Declare
+ with FT_LOCAL_DEF.
+
+ * src/gxvalid/gxvmort1.c
+ (gxv_mort_subtable_type1_substitutionTable_load,
+ gxv_mort_subtable_type1_subtable_setup): Fix C++ compiler errors.
+ (gxv_mort_subtable_type1_substTable_validate): Improve trace
+ message.
+ (gxv_mort_subtable_type1_validate): Declare with FT_LOCAL_DEF.
+
+ * src/gxvalid/gxvmort2.c (gxv_mort_subtable_type2_opttable_load,
+ gxv_mort_subtable_type2_subtable_setup,
+ gxv_mort_subtable_type2_ligActionOffset_validate,
+ gxv_mort_subtable_type2_ligatureTable_validate): Fix C++ compiler
+ errors.
+ (gxv_mort_subtable_type2_validate): Declare with FT_LOCAL_DEF.
+
+ * src/gxvalid/gxvmort4.c (gxv_mort_subtable_type4_validate): Declare
+ with FT_LOCAL_DEF.
+
+ * src/gxvalid/gxvmort5.c (gxv_mort_subtable_type5_subtable_setup,
+ gxv_mort_subtable_type5_InsertList_validate): Fix C++ compiler
+ errors.
+ (gxv_mort_subtable_type5_validate): Declare with FT_LOCAL_DEF.
+
+ * src/gxvalid/gxvmort.c: Include gxvfeat.h.
+ (gxv_mort_featurearray_validate, gxv_mort_coverage_validate):
+ Declare with FT_LOCAL_DEF.
+ (gxv_mort_subtables_validate, gxv_mort_validate): Improve trace
+ messages.
+
+ * src/gxvalid/gxvmort.h (gxv_mort_feature_validate): Remove.
+
+ * src/gxvalid/gxvmorx0.c (gxv_morx_subtable_type0_validate): Declare
+ with FT_LOCAL_DEF.
+
+ * src/gxvalid/gxvmorx1.c
+ (gxv_morx_subtable_type1_substitutionTable_load,
+ gxv_morx_subtable_type1_subtable_setup,
+ gxv_morx_subtable_type1_entry_validate,
+ gxv_morx_subtable_type1_substitutionTable_validate): Fix C++
+ compiler errors.
+ (gxv_morx_subtable_type1_validate): Declare with FT_LOCAL_DEF.
+
+ * src/gxvalid/gxvmorx2.c (gxv_morx_subtable_type2_opttable_load,
+ gxv_morx_subtable_type2_subtable_setup,
+ gxv_morx_subtable_type2_ligActionIndex_validate,
+ gxv_morx_subtable_type2_ligatureTable_validate): Fix C++ compiler
+ errors.
+ (gxv_morx_subtable_type2_validate): Declare with FT_LOCAL_DEF.
+ Fix typo.
+
+ * src/gxvalid/gxvmorx4.c (gxv_morx_subtable_type4_validate): Declare
+ with FT_LOCAL_DEF.
+
+ * src/gxvalid/gxvmorx5.c (gxv_morx_subtable_type5_insertionGlyph_load,
+ gxv_morx_subtable_type5_subtable_setup): Fix C++ compiler error.
+ (gxv_morx_subtable_type5_validate): Declare with FT_LOCAL_DEF.
+
+ * src/gxvalid/gxvmorx.c (gxv_morx_subtables_validate,
+ gxv_morx_validate): Improve trace message.
+
+ * src/gxvalid/gxvopbd.c (gxv_opbd_LookupFmt4_transit): Fix compiler
+ warnings.
+ (gxv_opbd_validate): Improve trace message.
+
+ * src/gxvalid/gxvprop.c: Decorate constants with `U' and `L' where
+ appropriate.
+ (gxv_prop_zero_advance_validate, gxv_prop_validate): Improve trace
+ message.
+
+ * src/gxvalid/gxvtrak.c (gxv_trak_trackTable_validate): Remove unused
+ parameter. Update all callers.
+ (gxv_trak_validate): Improve trace message.
+
+ * rules.mk (GXV_DRV_H): Add gxvfeat.h.
+
+2005-09-01 Werner Lemberg <wl@gnu.org>
+
+ * src/gxvalid/gxvbsln.c (GXV_BSLN_VALUE_EMPTY): Add `U'.
+
+ * src/gxvalid/gxvmort1.c (GXV_MORT_SUBTABLE_TYPE1_HEADER_SIZE),
+ src/gxvalid/gxvmort2.c (GXV_MORT_SUBTABLE_TYPE2_HEADER_SIZE): Fix
+ typo.
+
+ * src/gxvalid/gxvmorx0.c, src/gxvalid/gxvmorx1.c,
+ src/gxvalid/gxvmorx2.c, src/gxvalid/gxvmorx4.c,
+ src/gxvalid/gxvmorx5.c, src/gxvalid/gxvmort.c: Improve trace
+ messages.
+ Decorate constants with `U' and `L' where appropriate.
+ Fix compiler warnings.
+
+2005-08-31 Werner Lemberg <wl@gnu.org>
+
+ * src/truetype/ttgload.c (load_truetype_glyph): Fix typo.
+
+ * src/gxvalid/gxvbsln.c (gxv_bsln_validate): Fix trace message.
+
+ * src/gxvalid/gxvcommn.c (gxv_odtect_add_range): Use `const'.
+
+ * src/gxvalid/gxvfeat.c, src/gxvalid/gxvjust.c,
+ src/gxvalid/gxvkern.c, src/gxvalid/gxvlcar.c, src/gxvalid/gxvmod.c,
+ src/gxvalid/gxvmort0.c, src/gxvalid/gxvmort1.c,
+ src/gxvalid/gxvmort2.c, src/gxvalid/gxvmort4.c,
+ src/gxvalid/gxvmort5.c, src/gxvalid/gxvmort.c: Improve trace
+ messages.
+ Decorate constants with `U' and `L' where appropriate.
+ Fix compiler warnings.
+
+2005-08-30 Werner Lemberg <wl@gnu.org>
+
+ * src/gxvalid/README: Revised.
+ * src/gxvalid/gxvbsln.c: Fix compiler warnings.
+ * src/gxvalid/gxvcommn.c: Fix compiler warnings.
+ (gxv_XEntryTable_validate, gxv_compare_ranges): Remove unused
+ parameter. Update all callers.
+ Improve trace messages.
+ Some formatting.
+
+2005-08-29 Werner Lemberg <wl@gnu.org>
+
+ * include/freetype/freetype.h, include/freetype/ftchapters.h: Add
+ a preliminary section with some explanations about user allocation.
+
+ * src/tools/docmaker/tohtml.py (HtmlFormatter.section_enter):
+ Don't abort if there are no data types, functions, etc., in a
+ section.
+ Print synopsis only if we have a data type, function, etc.
+
+ * docs/INSTALL.ANY, docs/INSTALL, docs/INSTALL.UNX, docs/CUSTOMIZE,
+ docs/INSTALL.GNU, docs/TRUETYPE, docs/DEBUG, docs/UPGRADE.UNX,
+ docs/VERSION.DLL, docs/formats.txt: Revised, formatted.
+
+2005-08-28 George Williams <gww@silcom.com>
+
+ * src/truetype/ttgload.c [TT_MAX_COMPOSITE_RECURSE]: Removed.
+ (load_truetype_glyph): Limit recursion depth by `maxComponentDepth'.
+
+2005-08-25 J. Ali Harlow <ali@avrc.city.ac.uk>
+
+ * builds/unix/freetype2.in (CFlags): Add missing directory.
+
+2005-08-24 Werner Lemberg <wl@gnu.org>
+
+ * docs/CHANGES: Mention gxvalid module.
+
+2005-08-23 Werner Lemberg <wl@gnu.org>
+
+ * src/autofit/aflatin.c (af_latin_metrics_scale): Initialize
+ render mode properly. Reported by chris@dokein.co.uk.
+
+2005-08-23 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ Add gxvalid module to validate TrueType GX/AAT tables.
+
+ Modifications on existing files:
+
+ * Jamfile: Register gxvalid module.
+ * src/base/Jamfile: Register ftgxval.c.
+ * src/base/rule.mk: Register ftgxval.c.
+ * docs/INSTALL.ANY: Register gxvalid/gxvalid.c.
+
+ * include/freetype/config/ftheader.h (FT_GX_VALIDATE_H): New macro
+ to include gxvalid header file.
+ * include/freetype/config/ftmodule.h: Register gxv_module_class.
+
+ * include/freetype/ftchapters.h: Add comment about gx_validation.
+ * include/freetype/ftotval.h: Change keyword FT_VALIDATE_XXX
+ to FT_VALIDATE_OTXXX to co-exist with gxvalid.
+ * include/freetype/tttags.h: Add tags for TrueType GX/AAT tables.
+
+ * include/freetype/internal/ftserv.h (FT_SERVICE_GX_VALIDATE_H): New
+ macro for gxvalid service.
+ * include/freetype/internal/fttrace.h: Add trace facilities for
+ gxvalid.
+
+ New files on existing directories:
+
+ * include/freetype/internal/services/svgxval.h: Registration of
+ validation service for TrueType GX/AAT and classic kern table.
+ * include/freetype/ftgxval.h: Public API definition to use gxvalid.
+ * src/base/ftgxval.c: Public API of gxvalid.
+
+ New files under src/gxvalid/:
+
+ * src/gxvalid/Jamfile src/gxvalid/README src/gxvalid/module.mk
+ src/gxvalid/rules.mk src/gxvalid/gxvalid.c src/gxvalid/gxvalid.h
+ src/gxvalid/gxvbsln.c src/gxvalid/gxvcommn.c src/gxvalid/gxvcommn.h
+ src/gxvalid/gxverror.h src/gxvalid/gxvfeat.c src/gxvalid/gxvfgen.c
+ src/gxvalid/gxvjust.c src/gxvalid/gxvkern.c src/gxvalid/gxvlcar.c
+ src/gxvalid/gxvmod.c src/gxvalid/gxvmod.h src/gxvalid/gxvmort.c
+ src/gxvalid/gxvmort.h src/gxvalid/gxvmort0.c src/gxvalid/gxvmort1.c
+ src/gxvalid/gxvmort2.c src/gxvalid/gxvmort4.c src/gxvalid/gxvmort5.c
+ src/gxvalid/gxvmorx.c src/gxvalid/gxvmorx.h src/gxvalid/gxvmorx0.c
+ src/gxvalid/gxvmorx1.c src/gxvalid/gxvmorx2.c src/gxvalid/gxvmorx4.c
+ src/gxvalid/gxvmorx5.c src/gxvalid/gxvopbd.c src/gxvalid/gxvprop.c
+ src/gxvalid/gxvtrak.c: New files, gxvalid body.
+
+2005-08-21 Werner Lemberg <wl@gnu.org>
+
+ * src/truetype/ttgload.c (TT_Load_Glyph): Only translate outline
+ to (0,0) if bit 1 of the `head' table isn't set. This improves
+ rendering of buggy fonts.
+
+2005-08-20 Chia I Wu <b90201047@ntu.edu.tw>
+
+ * src/truetype/ttdriver.c (Load_Glyph): Don't check the validity of
+ ttmetrics here. TrueType fonts with only sbits always have
+ ttmetrics.valid set to false.
+
+ * src/truetype/ttgload.c (TT_Load_Glyph): Check that ttmetrics is
+ valid before loading outline glyph.
+
+ * src/cache/ftcimage.c (FTC_INode_New): Fix a memory leak.
+
+2005-08-20 Werner Lemberg <wl@gnu.org>
+
+ * src/sfnt/ttload.c (tt_face_load_metrics_header): Ignore missing
+ `hhea' table for SFNT Mac fonts. Change based on a patch by
+ mpsuzuki@hiroshima-u.ac.jp.
+
+2005-08-20 Masatake YAMATO <jet@gyve.org>
+
+ * src/otvalid/otvmod.c (otv_validate): Use ft_validator_run instead
+ of ft_setjmp.
+
+2005-08-19 Werner Lemberg <wl@gnu.org>
+
+ * src/truetype/ttgload.c (load_truetype_glyph): Fix compiler
+ warnings.
+
+2005-08-16 Chia I Wu <b90201047@ntu.edu.tw>
+
+ * src/truetype/ttinterp.c, src/truetype/ttinterp.h: Update copyright
+ messages.
+
+2005-08-16 Chia I Wu <b90201047@ntu.edu.tw>
+
+ * src/truetype/ttinterp.c, src/truetype/ttinterp.h: Remove original
+ TT_Done_Context and rename TT_Destroy_Context to TT_Done_Context
+ with slight changes.
+ Update all callers.
+ (TT_New_Context): Now takes TT_Driver argument directly.
+ Update all callers.
+
+ * src/truetype/ttobjs.h (tt_slot_init): New function.
+ * src/truetype/ttobjs.c (tt_driver_init): Initialize execution
+ context here.
+ (tt_slot_init): New function to create extra points for the internal
+ glyph loader. We then use it directly, instead of face's glyph
+ loader, when loading glyph.
+
+ * src/truetype/ttdriver.c (tt_driver_class): Use tt_slot_init for
+ glyph slot initialization.
+ (Load_Glyph): Load flag dependencies are handled here. Return error
+ if size is NULL.
+
+ * src/truetype/ttgload.c: Heavy cleanup and refactoring.
+ (org_to_cur): Removed.
+ (TT_Load_Simple_Glyph): Call FT_GlyphLoader_CheckPoints.
+ (TT_Hint_Glyph): New function to hint a zone, prepared by caller.
+ (TT_Process_Simple_Glyph): s/load/loader/.
+ Use loader->pp values instead of recalculation.
+ Use TT_Hint_Glyph.
+ No need to save/restore loader->stream before and after
+ TT_Vary_Get_Glyph_Deltas now.
+ (TT_LOADER_SET_PP): New macro to calculate and set the four phantom
+ points.
+ (load_truetype_glyph): Never set exec->glyphSize to 0. This closes
+ Savannah bug #13107.
+ Forget glyph frame before calling TT_Process_Simple_Glyph.
+ Use TT_LOADER_SET_PP.
+ Scale all four phantom points.
+ Split off some functionality to ...
+ (TT_Process_Composite_Component, TT_Process_Composite_Glyph): These
+ new functions.
+ (TT_Load_Glyph): Set various fields of `glyph' here, not in
+ load_truetype_glyph and compute_glyph_metrics.
+ Split off some functionality to ...
+ (load_sbit_image, tt_loader_init): These new functions.
+ (compute_glyph_metrics): Call FT_Outline_Get_CBox.
+
+2005-08-08 Werner Lemberg <wl@gnu.org>
+
+ * docs/INSTALL.ANY: Updated.
+
+2005-08-05 Werner Lemberg <wl@gnu.org>
+
+ * src/cff/cffgload.c (cff_builder_close_contour),
+ src/psaux/psobjs.c (t1_builder_close_contour): Protect against
+ zero `outline' pointer.
+
+ * src/base/ftgloadr.c (FT_GlyphLoader_Add): Protect against zero
+ `loader' address.
+
+2005-08-03 Werner Lemberg <wl@gnu.org>
+
+ * src/sfnt/sfdriver.c (sfnt_interface) [FT_OPTIMIZE_MEMORY]:
+ Reactivate pointers to tt_find_sbit_image and tt_load_sbit_metrics
+ to make X work again.
+
+2005-08-02 Werner Lemberg <wl@gnu.org>
+
+ * src/otvalid/otvcommn.h: Remove dead code.
+
+2005-07-31 Chia I Wu <b90201047@ntu.edu.tw>
+
+ * src/truetype/ttobjs.h (tt_size_run_fpgm, tt_size_run_prep): New
+ functions.
+
+ * src/truetype/ttobjs.c (tt_size_run_fpgm, tt_size_run_prep): New
+ functions.
+ (tt_size_init): Add 4, instead of 2, (phantom) points to twilight
+ zone.
+ Move code that runs fpgm to tt_size_run_fpgm.
+ (Reset_Outline_Size): Move code that runs prep to tt_size_run_prep.
+ (tt_glyphzone_new): Allocate right size of arrays.
+ Set max_points and max_contours properly.
+
+2005-07-26 Chia I Wu <b90201047@ntu.edu.tw>
+
+ * src/truetype/ttdriver.c (Set_Char_Sizes): Avoid unnecessary
+ computations and clean up.
+
+ * src/truetype/ttobjs.h (struct TT_SizeRec_): Comment on the
+ internal copy of metrics.
+
+2005-07-12 Werner Lemberg <wl@gnu.org>
+
+ * include/freetype/ftoutln.h (FT_Outline_Embolden): Fix prototype.
+ Reported by Xerxes.
+
+2005-07-04 Werner Lemberg <wl@gnu.org>
+
+ * include/freetype/internal/ftmemory.h (FT_REALLOC_ARRAY): Fix typo.
+ Reported by Brett Hutley.
+
+2005-06-30 David Turner <david@freetype.org>
+
+ * src/sfnt/ftbitmap.c, src/truetype/ttgload.c, src/sfnt/ttcmap.c:
+ Removing compiler warnings (Visual C++ /W4).
+
+
+ Implement a work-around for broken C preprocessor in Visual C++ (it
+ has been confirmed by the MS developers that it is indeed a bug
+ which won't be fixed in the very near future).
+
+ * Jamfile (FT2_COMPONENTS): Include otvalid (again).
+
+ * src/otvalid/otvcommn.h (OTV_NAME, OTV_FUNC): New macros.
+ (OTV_NEST1, OTV_NEST2, OTV_NEST3): Use OTV_NAME and OTV_FUNC to
+ avoid argument expansion by argument prescan.
+ Append `Func' to all affected macros and change them to take just a
+ single argument. Example: `AttachList' is renamed to
+ `AttachListFunc'.
+
+ * src/otvalid/otvgdef.c, src/otvalid/otvgpos.c,
+ src/otvalid/otvgsub.c, src/otvjstf.c: Append `Func' to macros
+ affected by the changes to OTV_NESTx and modify them to take just a
+ single argument.
+
+2005-06-20 Chia I Wu <b90201047@ntu.edu.tw>
+
+ * include/freetype/internal/ftobjs.h, src/base/ftobjs.c: New function
+ ft_glyphslot_grid_fit_metrics.
+
+ * src/truetype/ttgload.c (compute_glyph_metrics): Use
+ ft_glyphslot_grid_fit_metrics.
+
+ * src/cff/cffgload.c (cff_slot_load), src/cid/cidgload.c
+ (cid_slot_load_glyph), src/type1/t1gload.c (T1_Load_Glyph): Use
+ ft_glyphslot_grid_fit_metrics.
+ FT_Outline_Get_CBox is called twice.
+
+ * src/base/ftsynth.c (FT_GlyphSlot_Embolden): Modify metrics to more
+ reasonable values when emboldening outline glyphs. The theoretic
+ ones are unrealistic.
+
+2005-06-16 Chia I Wu <b90201047@ntu.edu.tw>
+
+ * src/base/ftoutln.c (FT_Outline_Embolden): Strength should be
+ halved.
+
+ * src/base/ftsynth.c (FT_GlyphSlot_Embolden): Change the default
+ strength.
+ Don't increase slot->advance.y.
+
+2005-06-16 Werner Lemberg <wl@gnu.org>
+
+ * include/freetype/freetype.h (FREETYPE_MINOR): Set to 2.
+ (FREETYPE_PATCH): Set to 0.
+
+ * builds/unix/configure.ac (version_info): Set to 9:9:3.
+ Currently, we are still binary compatible.
+
+ * builds/win32/visualc/index.html,
+ builds/win32/visualc/freetype.dsp,
+ builds/win32/visualc/freetype.vcproj: s/219/2110/, s/2.1.9/2.1.10/.
+
+ * builds/freetype.mk (refdoc), README, Jamfile (RefDoc):
+ s/2.1.9/2.1.10/.
+
+ * docs/CHANGES, docs/VERSION.DLL: Updated.
+
+ * ChangeLog: Split off older entries into...
+ * ChangeLog.20, ChangeLog.21: These new files.
+
+2005-06-15 Kirill Smelkov <kirr@mns.spb.ru>
+
+ The next release will be 2.2.0, so don't worry about source code
+ backward compatibility.
+
+ * include/freetype/ftimage.h (FT_Outline_MoveToFunc,
+ FT_Outline_LineToFunc, FT_Outline_ConicToFunc,
+ FT_Outline_CubicToFunc, FT_SpanFunc, FT_Raster_RenderFunc),
+ include/freetype/ftrender.h (FT_Glyph_TransformFunc,
+ FT_Renderer_RenderFunc, FT_Renderer_TransformFunc): Decorate
+ parameters with `const' where appropriate.
+
+2005-06-15 Chia I Wu <b90201047@ntu.edu.tw>
+
+ * src/sfnt/ttsbit.c (tt_face_load_sbit_image): Compute vertBearingY
+ to make glyphs centered vertically.
+
+ * src/truetype/ttgload.c (compute_glyph_metrics): Compute
+ vertBearingY to make glyphs centered vertically.
+ Fix some bugs in vertical metrics:
+
+ . loader->pp3.y and loader->pp4.y are in 26.6 format, not in font
+ units.
+ . As we use the glyph's cbox to calculate the top bearing now
+ there is no need to adjust `top'.
+
+2005-06-15 Werner Lemberg <wl@gnu.org>
+
+ * src/otvalid/otvcommn.h (OTV_OPTIONAL_TABLE): Use FT_UShort to be
+ in sync with OTV_OPTIONAL_OFFSET. Reported by YAMATO Masatake.
+
+2005-06-13 Werner Lemberg <wl@gnu.org>
+
+ * docs/release: Update.
+
+----------------------------------------------------------------------------
+
+Copyright (C) 2005-2021 by
+David Turner, Robert Wilhelm, and Werner Lemberg.
+
+This file is part of the FreeType project, and may only be used, modified,
+and distributed under the terms of the FreeType project license,
+LICENSE.TXT. By continuing to use, modify, or distribute this file you
+indicate that you have read the license and understand and accept it
+fully.
+
+
+Local Variables:
+version-control: never
+coding: utf-8
+End:
diff --git a/freetype/docs/oldlogs/ChangeLog.23 b/freetype/docs/oldlogs/ChangeLog.23
new file mode 100644
index 00000000..0e32ca8e
--- /dev/null
+++ b/freetype/docs/oldlogs/ChangeLog.23
@@ -0,0 +1,7948 @@
+2010-02-13 Werner Lemberg <wl@gnu.org>
+
+ * Version 2.3.12 released.
+ ==========================
+
+
+ Tag sources with `VER-2-3-12'.
+
+ * docs/CHANGES: Updated.
+
+ * docs/VERSION.DLL: Update documentation and bump version number to
+ 2.3.12.
+
+ * README, Jamfile (RefDoc),
+ builds/win32/vc2005/freetype.vcproj, builds/win32/vc2005/index.html,
+ builds/win32/vc2008/freetype.vcproj, builds/win32/vc2008/index.html,
+ builds/win32/visualc/freetype.dsp,
+ builds/win32/visualc/freetype.vcproj,
+ builds/win32/visualc/index.html, builds/win32/visualce/freetype.dsp,
+ builds/win32/visualce/freetype.vcproj,
+ builds/win32/visualce/index.html,
+ builds/wince/vc2005-ce/freetype.vcproj,
+ builds/wince/vc2005-ce/index.html,
+ builds/wince/vc2008-ce/freetype.vcproj,
+ builds/wince/vc2008-ce/index.html: s/2.3.11/2.3.12/, s/2311/2312/.
+
+ * include/freetype/freetype.h (FREETYPE_PATCH): Set to 12.
+
+ * builds/unix/configure.raw (version_info): Set to 10:0:4.
+
+2010-02-12 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ Improve autotool version checking to work with beta releases.
+
+ * autogen.sh (check_tool_version): Improve the extraction of version
+ number from "tool --version" output. Some beta releases of
+ autotools have extra strings before version number.
+
+2010-02-12 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ Fix overallocating bug in FT_Outline_New_Internal().
+
+ * src/base/ftoutln.c (FT_Outline_New_Internal): The length of
+ FT_Outline->points[] should be numPoints, not 2 * numPoints.
+ Found by Paul Messmer, see
+ https://lists.gnu.org/archive/html/freetype-devel/2010-02/msg00003.html
+
+2010-02-10 Ken Sharp <ken.sharp@artifex.com>
+
+ Really fix Savannah bug #28678 (part 2).
+
+ Since we consider `sbw' for the horizontal direction only, we still have
+ to synthesize vertical metrics if the user wants to use the vertical
+ writing direction.
+
+ * src/cff/cffgload.c (cff_slot_load), src/cid/cidgload.c
+ (cid_slot_load_glyph), src/type1/t1gload.c (T1_Load_Glyph):
+ Synthesize vertical metrics (only) if FT_LOAD_VERTICAL_LAYOUT is
+ set.
+
+2010-02-10 Ken Sharp <ken.sharp@artifex.com>
+
+ Really fix Savannah bug #28678 (part 1).
+
+ After long discussion, we now consider the character width vector
+ (wx,wy) returned by the `sbw' Type 1 operator as being part of *one*
+ direction only. For example, if you are using the horizontal
+ writing direction, you get the horizontal and vertical components of
+ the advance width for this direction. Note that OpenType and CFF fonts
+ don't have such a vertical component; instead, the GPOS table can be
+ used to generate two-dimensional advance widths (but this isn't
+ handled by FreeType).
+
+ * include/freetype/ftincrem.h (FT_Incremental_MetricsRec): Add
+ `advance_v' field to hold the vertical component of the advance
+ value.
+
+ * src/truetype/ttgload.c (tt_get_metrics), src/cff/cffgload.c
+ (cff_slot_load), src/type1/t1gload.c
+ (T1_Parse_Glyph_And_Get_Char_String), src/cid/cidgload.c
+ (cid_load_glyph): Use it.
+
+2010-02-08 Werner Lemberg <wl@gnu.org>
+
+ * devel/ftoption.h [FT_CONFIG_OPTION_PIC]: Define.
+
+2010-02-04 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ Prevent NULL pointer dereference passed to FT_Module_Requester.
+
+ * src/sfnt/sfdriver.c (sfnt_get_interface): Don't use `module'.
+ * src/psnames/psmodule.c (psnames_get_interface): Ditto.
+
+ * src/cff/cffdrivr.c (cff_get_interface): Check NULL `driver'.
+ * src/truetype/ttdriver.c (tt_get_interface): Ditto.
+
+2010-01-29 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ Fix memory leaks in previous patch.
+
+ * src/sfnt/sfobjs.c (sfnt_load_face): Don't overwrite the strings
+ allocated for face->root.family_name and style_name.
+
+2010-01-29 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ New parameters for FT_Open_Face() to ignore preferred family names.
+
+ Preferred family names should be used for legacy systems that
+ can hold only a few faces (<= 4) for a family name. Suggested by
+ Andreas Heinrich.
+ https://lists.gnu.org/archive/html/freetype/2010-01/msg00001.html
+
+ * include/freetype/ftsnames.h (FT_PARAM_TAG_IGNORE_PREFERRED_FAMILY,
+ FT_PARAM_TAG_IGNORE_PREFERRED_SUBFAMILY): Define.
+
+ * src/sfnt/sfobjs.c (sfnt_load_face): Check the arguments and
+ ignore preferred family and subfamily names if requested.
+
+2010-01-27 Ken Sharp <ken.sharp@artifex.com>
+
+ Fix Savannah bug #28678.
+
+ * src/cff/cffgload.c (cff_slot_load), src/cid/cidgload.c
+ (cid_load_glyph): Handle vertical metrics correctly.
+
+ * src/type1/t1gload.c (T1_Parse_Glyph_And_Get_Char_String): Handle
+ vertical metrics correctly.
+ (T1_Load_Glyph): Don't synthesize vertical metrics.
+
+2010-01-14 Werner Lemberg <wl@gnu.org>
+
+ Make FT_Set_Transform work if no renderer is available.
+
+ * src/base/ftobjs.c (FT_Load_Glyph): Apply `standard' transformation
+ if no renderer is compiled into the library.
+
+2010-01-14 Werner Lemberg <wl@gnu.org>
+
+ Fix compilation warning.
+
+ * src/base/ftbase.h: s/LOCAL_DEF/LOCAL/.
+ * src/base/ftobjs.c: Include ftbase.h conditionally.
+
+2010-01-11 Kwang Yul Seo <skyul@company100.net>
+
+ Provide inline assembly code for RVCT compiler.
+ This is Savannah patch #7059.
+
+ * include/freetype/config/ftconfig.h (FT_MULFIX_ASSEMBLER,
+ FT_MulFix_arm) [__CC_ARM || __ARM_CC]: Define.
+
+2010-01-08 Ken Sharp <ken.sharp@artifex.com>
+
+ Fix Savannah bug #28521.
+
+ Issue #28226 involved a work-around for a font which used the
+ `setcurrentpoint' operator in an invalid way; this operator is only
+ supposed to be used with the result of OtherSubrs, and the font used
+ it directly. The supplied patch removed the block of code which
+ checked this usage entirely.
+
+ This turns out to be a Bad Thing. If `setcurrentpoint' is being
+ used correctly it should reset the flex flag in the decoder. If we
+ don't do this then the flag never gets reset and we omit any further
+ contours from the glyph (at least until we close the path or
+ similar).
+
+ * src/psaux/t1decode.c (t1_decoder_parse_charstrings)
+ <op_setcurrentpoint>: Handle `flex_state' correctly.
+
+2010-01-05 Werner Lemberg <wl@gnu.org>
+
+ Apply reports from clang static analyzer.
+
+ * src/lzw/ftlzw.c (ft_lzw_file_init), src/base/ftstroke.c
+ (FT_Stroker_ParseOutline), src/base/ftsynth.c
+ (FT_GlyphSlot_Embolden): Remove dead code.
+
+ * src/base/ftpatent.c (_tt_check_patents_in_table): Initialize
+ `offset_i' and `length_i'.
+
+2010-01-05 Ralph Giles <giles@ghostscript.com>
+
+ Enable the incremental font interface by default.
+
+ Ghostscript requires the incremental font interface for handling
+ some Postscript documents. It is moving to using FreeType as its
+ primary renderer; supporting this in the default build makes it
+ Ghostscript to be linked against the system FreeType when one is
+ available.
+
+ * include/freetype/config/ftoption.h (FT_CONFIG_OPTION_INCREMENTAL):
+ Uncomment.
+
+2010-01-05 Werner Lemberg <wl@gnu.org>
+
+ Fix Savannah bug #28395.
+
+ * src/truetype/ttdriver.c (Load_Glyph), src/type1/t1gload.c
+ (T1_Load_Glyph): Don't check `num_glyphs' if incremental interface
+ is used.
+
+2010-01-05 Ken Sharp <ken.sharp@artifex.com>
+
+ Make Type 1 `seac' operator work with incremental interface.
+ This fixes Savannah bug #28480.
+
+ * src/psaux/t1decode.c (t1operator_seac): Don't check `glyph_names'
+ if incremental interface is used.
+
+2010-01-04 Ken Sharp <ken.sharp@artifex.com>
+
+ Make incremental interface work with TrueType fonts.
+ This fixes Savannah bug #28478.
+
+ * src/truetype/ttgload.c (load_truetype_glyph): Don't check
+ `glyf_offset' if incremental interface is used.
+
+2009-12-31 Lars Abrahamsson <wonko@opera.com>
+
+ Make compilation with FT_CONFIG_OPTION_PIC work again.
+
+ * src/base/ftglyph.c (FT_Glyph_To_Bitmap) [FT_CONFIG_OPTION_PIC]:
+ Declare `library' for FT_BITMAP_GLYPH_CLASS_GET.
+
+ * src/base/ftinit.c (ft_destroy_default_module_classes,
+ ft_create_default_module_classes): Use proper casts (needed for C++
+ compilation).
+
+ * src/sfnt/ttcmap.c (tt_cmap13_class_rec): Use FT_DEFINE_TT_CMAP.
+
+2009-12-22 Marc Kleine-Budde <mkl@pengutronix.de>
+
+ Make freetype-config aware of $SYSROOT.
+ This is Savannah patch #7040.
+
+ * builds/unix/freetype-config.in: Decorate with ${SYSROOT} where
+ appropriate.
+
+2009-12-20 Werner Lemberg <wl@gnu.org>
+
+ Fix compiler warning.
+ Reported by Sean.
+
+ * src/base/ftdbgmem.c [!FT_DEBUG_MEMORY]: ANSI C doesn't like empty
+ source files; however, some compilers warn about an unused variable
+ declaration. This is now replaced with a typedef.
+
+2009-12-18 Werner Lemberg <wl@gnu.org>
+
+ Fix Savannah bug #28320.
+
+ There exist corrupt, subsetted fonts (embedded in PDF files) which
+ contain a private dict that ends with an unterminated floating point
+ number (no operator following). We now ignore this error (as
+ acrobat does).
+
+ * src/cff/cffparse.c (cff_parser_run): Don't emit a syntax error for
+ unterminated floating point numbers.
+
+2009-12-16 Werner Lemberg <wl@gnu.org>
+
+ Really fix compiler warnings.
+ Reported by Sean.
+
+ * src/truetype/ttgxvar.c (GX_PT_POINTS_ARE_WORDS,
+ GX_PT_POINT_RUN_COUNT_MASK): Convert enum values to macros.
+
+2009-12-16 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ Improve configure.raw to copy some options from CFLAGS to LDFLAGS.
+ The linker of Mac OS X 10.6 is sensitive to the architecture. If
+ the architectures are specified explicitly for the C compiler, the
+ linker requires the architecture specifications too.
+
+ * builds/unix/configure.raw: Replace `-isysroot' option parser by
+ more generic argument parser.
+
+2009-12-15 Werner Lemberg <wl@gnu.org>
+
+ Fix compiler warnings.
+ Reported by Sean.
+
+ * src/truetype/ttgxvar.c (ft_var_readpackeddeltas): Fix counter data
+ type.
+
+2009-12-14 Ken Sharp <ken.sharp@artifex.com>
+
+ Ignore invalid `setcurrentpoint' operations in Type 1 fonts.
+ This fixes Savannah bug #28226.
+
+ At least two wild PostScript files of unknown provenance contain
+ Type 1 fonts, apparently converted from TrueType fonts in earlier
+ PDF versions of the files, which use the `setcurrentpoint' operator
+ inappropriately.
+
+ FreeType currently throws an error in this case, but Ghostscript and
+ Adobe Distiller both accept the fonts and ignore the problem. This
+ commit #ifdefs out the check so PostScript interpreters using
+ FreeType can render these files.
+
+ The specification says `setcurrentpoint' should only be used to set
+ the point after a `Subr' call, but these fonts use it to set the
+ initial point to (0,0). Unnecessarily so, as they correctly use an
+ `hsbw' operation which implicitly sets the initial point.
+
+ * src/psaux/t1decode.c (t1_decoder_parse_charstrings)
+ <op_setcurrentpoint>: Comment out code.
+
+2009-12-14 Bram Tassyns <bramt@enfocus.be>
+
+ Fix parsing of /CIDFontVersion.
+ This fixes Savannah bug #28287.
+
+ * src/cid/cidtoken.h: `cid_version' in CID_FaceInfoRec (in
+ t1tables.h) is of type FT_Fixed.
+
+2009-12-14 Werner Lemberg <wl@gnu.org>
+
+ Trace glyph index in CID module.
+ Suggested in Savannah patch #7023.
+
+ * src/cid/cidgload.c (cid_load_glyph): Add tracing message.
+
+2009-12-03 Werner Lemberg <wl@gnu.org>
+
+ Fix compiler warnings.
+
+ * src/truetype/ttgload.c (tt_get_metrics): Put `Exit' label into the
+ proper preprocessor conditional.
+ * src/pfr/pfrobjs.c (pfr_slot_load): Pacify gcc.
+
+2009-11-25 John Tytgat <John.Tytgat@esko.com>
+
+ Better handling of start of `eexec' section.
+ This fixes Savannah bug #28090.
+
+ * src/type1/t1parse.c (T1_Get_Private_Dict): Skip all whitespace
+ characters before start of `eexec' section.
+
+2009-11-20 Werner Lemberg <wl@gnu.org>
+
+ Fix Savannah bug #27742.
+
+ * src/base/ftstroke.c (ft_stroker_outside): Avoid silent division by
+ zero, using a threshold for `theta'.
+
+2009-11-20 Werner Lemberg <wl@gnu.org>
+
+ Fix Savannah bug #28036.
+
+ * src/type1/t1afm.c (t1_get_index): Fix comparison.
+
+2009-11-16 Werner Lemberg <wl@gnu.org>
+
+ Fix compiler warnings.
+ Reported by Kevin Blenkinsopp <arqon@promode.org>.
+
+ * src/sfnt/ttload.c (check_table_dir): Use proper data type.
+
+2009-11-15 Werner Lemberg <wl@gnu.org>
+
+ Really fix FreeDesktop bug #21197.
+ This also fixes Savannah bug #28021.
+
+ * src/autofit/aflatin.c (af_latin_metrics_check_digits),
+ src/autofit/aflatin2.c (af_latin2_metrics_check_digits): Fix loop.
+
+2009-11-15 Werner Lemberg <wl@gnu.org>
+
+ Add tracing messages for advance values.
+
+ * src/base/ftobjs.c (FT_Load_Glyph), src/truetype/ttgload.c
+ (TT_Get_HMetrics, TT_Get_VMetrics): Do it.
+
+2009-11-08 Werner Lemberg <wl@gnu.org>
+
+ Fix compiler warning.
+ Reported by Jeremy Manson <jeremy.manson@gmail.com>.
+
+ * src/truetype/ttgload.c (load_truetype_glyph): Initialize `error'.
+
+2009-11-04 Werner Lemberg <wl@gnu.org>
+
+ Remove compiler warning.
+ Reported by Sean McBride <sean@rogue-research.com>.
+
+ * src/tools/apinames.c (read_header_file)<STATE_TYPE>: Use a cast to
+ `int', as specified in the printf(3) man page.
+
+2009-11-04 Werner Lemberg <wl@gnu.org>
+
+ Fix Savannah bug #27921.
+
+ * src/cff/cffobjs.c (cff_face_init), src/cid/cidobjs.c
+ (cid_face_init), src/type1/t1afm.c (T1_Read_Metrics),
+ src/type1/t1objs.c (T1_Face_Init): Don't use unsigned constant
+ values for rounding if the argument can be negative.
+
+2009-11-03 Bram Tassyns <bramt@enfocus.be>
+
+ Add basic support for Type1 charstrings in CFF.
+ This fixes Savannah bug #27922.
+
+ * src/cff/cffgload.c (CFF_Operator, cff_argument_counts): Handle
+ `seac', `sbw', and `setcurrentpoint' opcodes.
+ (cff_compute_bias): Add parameter to indicate the charstring type.
+ Update all callers.
+ (cff_operator_seac): Add parameter for side bearing.
+ (cff_decoder_parse_charstrings): Updated for more Type1 support.
+
+2009-11-03 Werner Lemberg <wl@gnu.org>
+
+ Return correct `linearHoriAdvance' value for embedded TT bitmaps too.
+ Reported by Jeremy Manson <jeremy.manson@gmail.com>.
+
+ src/truetype/ttgload.c (load_truetype_glyph): Add parameter to
+ quickly load the glyph header only.
+ Update all callers.
+ (tt_loader_init): Add parameter to quickly load the `glyf' table
+ only.
+ Update all callers.
+ (TT_Load_Glyph): Compute linear advance values for embedded bitmap
+ glyphs too.
+
+2009-11-03 Werner Lemberg <wl@gnu.org>
+
+ Improve code readability.
+
+ * src/ttgload.c (load_truetype_glyph): Move metrics calculation
+ to...
+ (tt_get_metrics): This new function.
+
+2009-10-26 Bram Tassyns <bramt@enfocus.be>
+
+ Fix Savannah bug #27811.
+
+ * src/truetype/ttxgvar.c (ft_var_readpackeddeltas): Fix
+ signed/unsigned mismatch.
+
+2009-10-19 Ning Dong <flintning@163.com>
+
+ Fix handling of `get' and `put' CFF instructions.
+
+ * src/cff/cffgload.c (cff_decoder_parse_charstrings) <cff_op_get,
+ cff_op_put>: Appendix B of Adobe Technote #5177 limits the number of
+ elements for the `get' and `put' operators to 32.
+ * src/cff/cffgload.h (CFF_MAX_TRANS_ELEMENTS): Define.
+ (CFF_Decoder): Use it for `buildchar' and remove `len_buildchar'.
+
+2009-10-18 Werner Lemberg <wl@gnu.org>
+
+ Fix handling of `dup' CFF instruction.
+ Problem and solution reported by Ning Dong <flintning@163.com>.
+
+ * src/cff/cffgload.c (cff_decoder_parse_charstrings) <cff_op_dup>:
+ Increase `args' by 2, not 1.
+
+2009-10-10 Werner Lemberg <wl@gnu.org>
+
+ * Version 2.3.11 released.
+ ==========================
+
+
+ Tag sources with `VER-2-3-11'.
+
+ * docs/VERSION.DLL: Update documentation and bump version number to
+ 2.3.11.
+
+ * README, Jamfile (RefDoc), builds/win32/visualc/index.html,
+ builds/win32/visualc/freetype.dsp,
+ builds/win32/visualc/freetype.vcproj,
+ builds/win32/visualce/index.html,
+ builds/win32/visualce/freetype.dsp,
+ builds/win32/visualce/freetype.vcproj: s/2.3.10/2.3.11/, s/2310/2311/.
+
+ * include/freetype/freetype.h (FREETYPE_PATCH): Set to 11.
+
+ * builds/unix/configure.raw (version_info): Set to 9:22:3.
+
+2009-10-10 Werner Lemberg <wl@gnu.org>
+
+ * docs/CHANGES, docs/release: Updated.
+
+2009-10-10 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ * src/pcf/pcfread.c (pcf_get_properties): Fix a bug in the nprops
+ truncation. Reported by Martin von Gagern and Peter Volkov.
+ https://bugs.gentoo.org/288357 and https://bugs.gentoo.org/288256
+
+2009-10-06 Werner Lemberg <wl@gnu.org>
+
+ * Version 2.3.10 released.
+ ==========================
+
+
+ Tag sources with `VER-2-3-10'.
+
+ * builds/toplevel.mk (major, minor, patch): Fix regexp to allow more
+ than a single digit.
+ (dist): We now use git.
+
+ * docs/VERSION.DLL: Update documentation and bump version number to
+ 2.3.10.
+
+ * README, Jamfile (RefDoc), builds/win32/visualc/index.html,
+ builds/win32/visualc/freetype.dsp,
+ builds/win32/visualc/freetype.vcproj,
+ builds/win32/visualce/index.html,
+ builds/win32/visualce/freetype.dsp,
+ builds/win32/visualce/freetype.vcproj: s/2.3.9/2.3.10/, s/239/2310/.
+
+ * include/freetype/freetype.h (FREETYPE_PATCH): Set to 10.
+
+ * builds/unix/configure.raw (version_info): Set to 9:21:3.
+
+2009-10-06 Werner Lemberg <wl@gnu.org>
+
+ Fix `make multi'.
+
+ * src/cache/ftccache.c, src/cache/ftcsbits.c (FT_COMPONENT): Define.
+
+ * src/sfnt/sfdriver.c: Include FT_INTERNAL_DEBUG_H.
+
+2009-09-27 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ [cache] Fix Savannah bug #27441, clean up Redhat bugzilla #513582.
+ Tricky casts in FTC_{CACHE,GCACHE,MRULIST}_LOOKUP_CMP() are removed.
+ Now these functions should be called with FTC_Node or FTC_MruNode
+ variable, and the caller should cast them to appropriate pointers to
+ concrete data. These tricky casts can GCC-4.4 optimizer (-O2)
+ confused and the crashing binaries are generated.
+
+ * src/cache/ftcmru.h (FTC_MRULIST_LOOKUP_CMP): Drop tricky cast.
+ Now the 4th argument `node' of this function should be typed as
+ FTC_MruNode.
+
+ * src/cache/ftcglyph.h (FTC_GCACHE_LOOKUP_CMP): For inline
+ implementation, new temporal variable FTC_MruNode `_mrunode' to take
+ the pointer from FTC_MRULIST_LOOKUP_CMP(). For non-inline
+ implementation, tricky cast is dropped.
+
+ * src/cache/ftcmanag.c (FTC_SIZE_NODE): New macro casting
+ to FTC_SizeNode.
+ (FTC_Manager_LookupSize): Replace FTC_SizeNode `node' by FTC_MruNode
+ `mrunode', and FTC_SIZE_NODE() is inserted.
+ (FTC_FACE_NODE): New macro casting to FTC_FaceNode.
+ (FTC_Manager_LookupFace) Replace FTC_FaceNode `node' by FTC_MruNode
+ `mrunode', and FTC_FACE_NODE() is inserted.
+
+ * src/cache/ftcbasic.c (FTC_ImageCache_Lookup): Change the type of
+ `node' from FTC_INode to FTC_Node. Extra casting macro FTC_NODE()
+ is dropped.
+ (FTC_ImageCache_LookupScaler): Ditto.
+ (FTC_SBitCache_Lookup): Change the type of `node' from FTC_SNode to
+ FTC_Node. Extra casting macro FTC_NODE() is dropped. FTC_SNODE()
+ is inserted.
+ (FTC_SBitCache_LookupScaler): Ditto.
+
+ * src/cache/ftccmap.c (FTC_CMapCache_Lookup): Change the type of
+ `node' from FTC_CMapNode to FTC_Node. Extra casting macro
+ FTC_NODE() is dropped, FTC_CMAP_NODE() is inserted.
+
+2009-09-25 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ [cache, psaux, type1] Fix for multi build.
+ In multi build, some cpp functions are left as unresolved symbols.
+
+ * src/cache/ftcbasic.c: Include FT_INTERNAL_DEBUG_H for FT_TRACE1().
+
+ * src/psaux/t1decode.c: Include FT_INTERNAL_CALC_H for
+ FIXED_TO_INT().
+ * src/type1/t1gload.c: Ditto.
+ * src/type1/t1objs.c: Ditto.
+
+2009-09-25 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ [autofit] Fix for multi build.
+
+ * src/autofit/afmodule.h: Include FT_INTERNAL_OBJECTS_H to use
+ FT_DECLARE_MODULE() macro in multi build.
+
+ * src/autofit/aflatin.c: Include <ft2build.h> to handle
+ FT_ADVANCES_H correctly in multi build.
+
+2009-09-24 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ [cache] Check the face filled by FTC_Manager_LookupFace().
+
+ * src/cache/ftcbasic.c (ftc_basic_family_get_count): Return
+ immediately if FTC_Manager_LookupFace() fills face by NULL. Such
+ case can occur when the code is optimized by GCC-4.2.x.
+
+2009-09-23 Werner Lemberg <wl@gnu.org>
+
+ * docs/CHANGES: Updated.
+
+2009-09-12 Werner Lemberg <wl@gnu.org>
+
+ [raster] Fix 5-levels grayscale output.
+ This was broken since version 2.3.0.
+
+ * src/raster/ftraster.c (count_table): Use pre-2.3.0 values (which
+ were then computed dynamically).
+ (Vertical_Gray_Sweep_Step): Updated.
+
+ (ft_black_render): Initialize `worker->gray_lines' (problem found by
+ valgrind).
+
+ (FT_RASTER_OPTION_ANTI_ALIASING, DEBUG_RASTER): Don't #undef, just
+ comment out.
+
+2009-09-12 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ Improve configure.raw for cross build.
+
+ * builds/unix/configure.raw: Remove temporal files created by the
+ suffix checking for CC_BUILD. Set XX_ANSIFLAGS and XX_CFLAGS when
+ cross compiler is GCC. AC_PROG_CC checks whether the cross compiler
+ is GCC, its result is stored in GCC.
+
+2009-09-12 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ [BDF] Modify hash API to take size_t value instead of void *.
+
+ The hash API in BDF driver is designed to be generic, it takes
+ void * typed data. But BDF driver always gives an unsigned long
+ integer (the index to a property). To reduce non-essential
+ casts from unsigned long to void* and from void* to unsigned
+ long, the hash API is changed to take size_t integer.
+ The issue of incompatible cast between unsigned long and void*
+ on LLP64 platform is reported by NightStrike from MinGW-Win64
+ project. See
+ https://lists.gnu.org/archive/html/freetype/2009-09/msg00000.html
+
+ * src/bdf/bdf.h: The type of hashnode->data is changed from
+ void* to size_t.
+
+ * src/bdf/bdflib.c (hash_insert): Get size_t data, instead of
+ void* data.
+ (bdf_create_property): Get the name length of new property by
+ size_t variable, with a cut-off at FT_ULONG_MAX.
+ (_bdf_set_default_spacing): Get the name length of the face by
+ size_t variable, with a cut-off at 256.
+ (bdf_get_property): Get the property id by size_t variable to
+ reduce the casts between 32-bit prop ID & hashnode->data during
+ simple copying.
+ (_bdf_add_property): Ditto.
+ (_bdf_parse_start): Calculate the index to the property array
+ by size_t variable.
+ (bdf_get_font_property): Drop a cast to unsigned long.
+
+2009-09-10 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ [Win64] Improve the computation of random seed from stack address.
+
+ On LLP64 platform, the conversion from pointer to FT_Fixed need
+ to drop higher 32-bit. Explicit casts are required. Reported by
+ NightStrike from MinGW-w64 project. See
+ https://lists.gnu.org/archive/html/freetype/2009-09/msg00000.html
+
+ * src/cff/cffgload.c: Convert the pointers to FT_Fixed explicitly.
+
+ * src/psaux/t1decode.c: Ditto.
+
+
+2009-09-03 Werner Lemberg <wl@gnu.org>
+
+ [raster] Improvements for stand-alone mode.
+
+ * src/raster/rules.mk: Don't handle ftmisc.h. It is needed for
+ stand-alone mode only.
+
+ * src/raster/ftmisc.h (FT_MemoryRec, FT_Alloc_Func, FT_Free_Func,
+ FT_Realloc_Func): Copy declarations from ftsystem.h.
+
+2009-09-02 Bram Tassyns <bramt@enfocus.be>
+
+ Improve vertical metrics calculation (Savannah bug #27364).
+
+ The calculation of `vertBearingX' is not defined in the OTF font
+ spec so FreeType does a `best effort' attempt. However, this value
+ is defined in the PDF and PostScript specs, and that algorithm is
+ better than the one FreeType currently uses:
+
+ FreeType: Use the middle of the bounding box as the X coordinate
+ of the vertical origin.
+
+ Adobe PDF spec: Use the middle of the horizontal advance vector as
+ the X coordinate of the vertical origin.
+
+ FreeType's algorithm goes wrong if you have a really small glyph
+ (like the full-width, circle-like dot at the end of the sentence, as
+ used in CJK scripts) with large bearings. With the FreeType
+ algorithm this dot gets centered on the baseline; with the PDF
+ algorithm it gets the correct location (in the top right). Note
+ that this is a serious issue, it's like printing the dot at the end
+ of a Roman sentence at the center of the textline instead of on the
+ baseline like it should. So i believe the PDF spec's algorithm
+ should be used in FreeType as well.
+
+ The `vertBearingY' value for such small glyphs is also very strange
+ if no `vmtx' information is present, since the height of the bbox is
+ not representable for the height of the glyph visually (the
+ whitespace up to the baseline is part of the glyph). The fix also
+ includes some code for a better estimate of `vertBearingY'.
+
+ * src/base/ftobjs.c (ft_synthesize_vertical_metrics): `vertBearingX'
+ is now calculated as described by the Adobe PDF Spec. Estimate for
+ `vertBearingY' now works better for small glyphs completely above or
+ below the baseline into account.
+
+ * src/cff/cffgload.c (cff_slot_load): `vertBearingX' is now
+ calculated as described by the Adobe PDF Spec. Vertical metrics
+ information was always ignored when FT_CONFIG_OPTION_OLD_INTERNALS
+ was not defined.
+
+ * src/truetype/ttgload.c (compute_glyph_metrics): `vertBearingX' is
+ now calculated as described by the Adobe PDF Spec.
+
+2009-09-01 John Tytgat <John.Tytgat@esko.com>
+
+ Fix custom cmap for empty Type 1 font (Savannah bug #27294).
+
+ * include/freetype/internal/t1types.h (T1_EncodingRecRec_): Update
+ comment to reflect revised code_last meaning.
+ * src/type1/t1load.c (T1_Open_Face), src/type42/t42objs.c
+ (T42_Open_Face): Assign max_char as highest character code + 1 and
+ use this for T1_EncodingRecRec_::code_last.
+ * src/psaux/t1cmap.c (t1_cmap_custom_init): Follow revised
+ T1_EncodingRecRec_::code_last meaning.
+
+2009-08-25 Werner Lemberg <wl@gnu.org>
+
+ Fix rendering of horizontally compressed CFFs.
+ Bug reported by Ivan Nincic <inincic@pdftron.com>.
+
+ * src/cff/cffgload.c (cff_slot_load): Thinko: Check `xx' element of
+ `font_matrix' also.
+
+ * docs/CHANGES: Updated.
+
+2009-08-03 suyu0925@gmail.com
+
+ Don't call `ft_fseek' every time when executing `ft_fread'.
+
+ * src/base/ftstream.c (FT_Stream_Seek), src/base/ftsystem.c
+ (ft_ansi_stream_io): Implement it.
+
+2009-07-31 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ sfnt: Cast a charcode to 32-bit in cmap format 14 parser.
+
+ * src/sfnt/ttcmap.c (tt_cmap14_char_var_index,
+ tt_cmap14_char_var_isdefault, tt_cmap14_char_variants,
+ tt_cmap14_variant_chars): Correct mismatches from
+ FT_CMap_CharVarIndexFunc prototype, FT_ULong arguments
+ are replaced by FT_UInt32 arguments.
+
+2009-07-31 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ sfnt: Cast a charcode to 32-bit in cmap format 12 parser.
+
+ * src/sfnt/ttcmap.c (tt_cmap12_char_next):
+ Insert explicit cast from FT_UFast to FT_UInt32
+ for return value.
+
+2009-07-31 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ psaux: Fix a few casts to FT_Int32 value.
+
+ * src/psaux/t1decode.c (t1_decoder_parse_charstrings):
+ Fix a few casts setting `value' from FT_Long to FT_Int32,
+ because `value' is typed as FT_Int32 since 2009-06-22.
+
+2009-07-31 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ sfnt: Fix a data type mismatching with its source.
+
+ * src/sfnt/ttcmap.c (tt_cmap13_char_next): Fix the
+ type of `gindex' from FT_ULong to FT_UInt because
+ it is set by FT_UInt tt_cmap13_char_map_binary() or
+ TT_CMap13->cur_gindex.
+
+2009-07-31 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ sfnt: Extend a few local variables to load 32-bit values.
+
+ * src/sfnt/ttkern.c (tt_face_load_kern): Extend `count'
+ and `kern' to load 32-bit values.
+
+2009-07-31 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ pfr: Extend `num_aux' to take 32-bit value.
+
+ * src/pfr/pfrload.c (pfr_phy_font_load): Extend
+ `num_aux' to load 32-bit value.
+
+2009-07-31 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ pcf: Truncate FT_ULong `nprops' to fit to int PCF_Face->nprops.
+
+ * src/pcf/pcfread.c (pcf_get_properties): Load `nprops'
+ as FT_ULong value from PCF file, but truncate it as
+ int to fit PCF_Face->nprops. The number of truncated
+ properties is shown in the trace message.
+
+2009-07-31 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ gxvalid: Extend a few local variables to reduce the casts.
+
+ * src/gxvalid/gxvmorx.c (gxv_morx_subtables_validate):
+ Extend `type' and `rest' to take FT_ULong values.
+
+2009-07-31 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ gxvalid: Extend `settingTable' to take 32-bit offset.
+
+ * src/gxvalid/gxvfeat.c (gxv_feat_name_validate):
+ Extend `settingTable' to take 32-bit offset.
+
+2009-07-31 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ autofit: Cast FT_Long glyph_count to compare with FT_UInt GID.
+
+ * src/autofit/afglobal.c (af_face_globals_is_digit,
+ af_face_globals_compute_script_coverage): Cast FT_Long
+ globals->glyph_count to FT_ULong, to compare with FT_UInt
+ gindex.
+
+2009-07-31 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ smooth: Exclude 16-bit system in invalid pitch/height check.
+
+ * src/smooth/ftsmooth.c (ft_smooth_render_generic):
+ pitch and height are typed as FT_UInt but checked to fit
+ 16-bit range, to avoid the overflows. On 16-bit system,
+ this checking inserts a conditional that never occurs.
+
+2009-07-03 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ cff: Type large constants > 0x7FFF as long for 16-bit systems.
+
+ * src/cff/cffload.c (cff_charset_load): Type large
+ constants > 0x7FFF as long, because normal constants
+ are typed signed integer that is less than 0x8000 on
+ 16-bit systems.
+
+2009-07-31 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ base: Remove an unused variable.
+
+ * src/base/ftglyph.c (FT_Glyph_To_Bitmap): Remove an
+ unused variable `library'. glyph->library is used.
+
+2009-07-31 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ cache: Check higher bits in flags for non ILP32 systems.
+
+ 4 public functions ought to take FT_ULong flags, but take
+ FT_UInt flags. To keep binary compatibility, we drop higher
+ bits on non ILP32 platforms,
+ ILP64 systems: No drop occurs.
+ LP64 systems: Higher bits are not used.
+ 16-bit systems: Drop can occur.
+ See
+ https://lists.gnu.org/archive/html/freetype-devel/2008-12/msg00065.html
+ These functions will be refined to take FT_ULong flags in
+ next bump with incompatible API change.
+
+ * src/cache/ftcbasic.c (FTC_ImageCache_Lookup):
+ Check `flags' in `type', the 2nd argument.
+ (FTC_SBitCache_Lookup): Ditto.
+ (FTC_ImageCache_LookupScaler): Check `load_flags',
+ the 3rd argument.
+ (FTC_SBitCache_LookupScaler): Ditto.
+
+2009-07-31 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ sfnt: Ignore invalid GIDs in glyph name lookup.
+
+ * include/freetype/internal/fttrace.h:
+ New trace module for sfdriver.c is added.
+
+ * src/sfnt/sfdriver.c (sfnt_get_name_index):
+ Restrict glyph name lookup to FT_UInt GID.
+ Genuine TrueType can hold 16-bit glyphs.
+
+2009-07-31 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ pcf: Fix a comparison between FT_Long and FT_ULong.
+
+ * src/pcf/pcfread.c (pcf_get_bitmaps): Return an error
+ if PCF_Face->nmetrics is negative.
+
+2009-07-31 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ gxvalid: Guarantee `nFeatureFlags' size up to 32-bit.
+
+ * src/gxvalid/gxvmort.c (gxv_mort_featurearray_validate):
+ Extend the 3rd argument `nFeatureFlags' to FT_ULong.
+ * src/gxvalid/gxvmort.h: Ditto.
+
+2009-07-31 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ sfnt: Insert explicit cast for LP64 system.
+
+ * src/sfnt/ttkern.c (tt_face_load_kern): Insert
+ cast from unsigned long to FT_UInt32.
+
+2009-07-31 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ gxvalid: Guarantee `just' table size upto 32-bit.
+
+ * src/gxvalid/gxvjust.c (gxv_just_validate):
+ The type of `offset' is changed from FT_UInt to
+ FT_Offset, for 16-bit platforms.
+
+2009-07-31 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ gxvalid: Guarantee `trak' table size upto 32-bit.
+
+ * src/gxvalid/gxvtrak.c (gxv_trak_validate):
+ The type of `offset' is changed from FT_UInt to
+ FT_Offset, for 16-bit platforms.
+
+2009-07-31 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ type1: Fix a data type mismatching with its source.
+
+ * include/freetype/internal/t1types.h: The type of
+ T1_Face->buildchar is matched with T1_Decoder->top.
+
+2009-07-31 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ pfr: Fix a data type mismatching with its source.
+
+ * src/pfr/pfrtypes.h: The type of PFR_KernItem->offset
+ is extended from FT_UInt32 to FT_Offset, because it is
+ calculated with the pointer difference, in
+ pfr_extra_item_load_kerning_pairs().
+
+2009-07-31 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ pfr: Fix a data type mismatching with its source.
+
+ * src/pfr/pfrtypes.h: The type of PFR_PhyFont->chars_offset
+ is extended from FT_UInt32 to FT_Offset, because it is
+ calculated with the pointer difference in pfr_phy_font_load().
+
+2009-07-31 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ pfr: Fix a data type mismatching with its source.
+
+ * src/pfr/pfrtypes.h: The type of PFR_PhyFont->bct_offset
+ is extended from FT_UInt32 to FT_Long, because it is
+ loaded by FT_STREAM_POS() in pfr_phy_font_load().
+
+2009-07-31 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ smooth: Improve the format in debug message.
+
+ * src/smooth/ftgrays.c (gray_dump_cells): Improve the
+ format specifications to dump variables.
+
+2009-07-31 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ sfnt: Fix a data type mismatching with its source.
+
+ * src/sfnt/sfobjs.c (sfnt_load_face): The type of
+ local `flags' is matched with FT_Face->face_flags.
+
+2009-07-31 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ psaux: Fix a data type mismatching with its source.
+
+ * include/freetype/internal/psaux.h: The type of
+ T1_DecoderRec.buildchar is matched with
+ T1_DecoderRec.top.
+
+2009-07-31 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ truetype: Extend TrueType GX packed deltas to FT_Offset.
+
+ * src/truetype/ttgxvar.c (ft_var_readpackeddeltas):
+ The type of 2nd argument `delta_cnt' is changed from
+ FT_Int to FT_Offset, because its source can be cvt
+ table size calculated from stream position.
+
+2009-07-31 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ truetype: Extend mmvar_len to hold size_t values.
+
+ * src/truetype/ttgxvar.h: The type of
+ GX_BlendRec.mmvar_len is changed from FT_Int to
+ FT_Offset, because TT_Get_MM_Var() calculates it
+ by sizeof() results.
+
+2009-07-31 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ truetype: Check invalid function number in IDEF instruction.
+
+ * src/truetype/ttinterp.c (Ins_IDEF): Check
+ if the operand fits to 8-bit opcode limitation.
+
+2009-07-31 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ truetype: Check invalid function number in FDEF instruction.
+
+ * src/truetype/ttinterp.c (Ins_FDEF): Check
+ if the operand fits 16-bit function number.
+
+2009-07-31 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ truetype: Truncate the deltas of composite glyph at 16-bit values.
+
+ * src/truetype/ttgload.c (load_truetype_glyph):
+ Insert cast from FT_Long (deltas[i].{x,y}) to
+ FT_Int16 in the summation of deltas[] for composite
+ glyphs. Because deltas[i] is typed as FT_Pos,
+ its component x, y are typed as FT_Long, but
+ their sources are always FT_Int16 when they are
+ loaded by ft_var_readpackeddeltas(). However,
+ the limitation about the summed deltas is unclear.
+
+2009-07-31 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ truetype: Truncate the instructions upto 16-bit per a glyph.
+
+ * src/truetype/ttgload.c (TT_Hint_Glyph): Truncate
+ the instructions upto 16-bit length per a glyph.
+
+2009-07-31 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ truetype: Cast the numerical operands to 32-bit for LP64 systems.
+
+ * src/truetype/ttinterp.c (Ins_SPHIX, INS_MIAP,
+ Ins_MIRP): Insert cast from long (args[], the
+ operands passed to TrueType operator) to FT_Int32
+ (the argument of TT_MulFix14()).
+
+2009-07-31 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ truetype: Cast the project vector to 32-bit for LP64 system.
+
+ * src/truetype/ttinterp.c (Project, DualProject):
+ Insert casts from FT_Pos (the arguments `dx', `dy')
+ to FT_UInt32 (the argument to TT_DotFix14()).
+
+2009-07-31 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ truetype: Cast the scaling params to 32-bit for LP64 system.
+
+ * src/truetype/ttgload.c (TT_Process_Composite_Component):
+ Insert casts from long (return value of FT_MulFix()) to
+ FT_Int32 (the argument to FT_SqrtFixed()).
+
+2009-07-31 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ sfnt: Cast a character code to FT_UInt32 for LP64 system.
+
+ * src/sfnt/ttcmap.c (tt_cmap14_char_map_nondef_binary,
+ tt_cmap14_variants, tt_cmap14_char_variants,
+ tt_cmap14_def_char_count, tt_cmap14_get_def_chars,
+ tt_cmap14_get_nondef_chars, tt_cmap14_variant_chars)
+ Insert casts when FT_UInt32 variable is loaded by
+ TT_NEXT_{UINT24|ULONG}. Because most of them are
+ compared with FT_UInt32 values in public API, replacing
+ FT_UFast is not recommended.
+
+2009-07-31 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ sfnt: Cast a character code to FT_UInt32 for LP64 system.
+
+ * src/sfnt/ttcmap.c (tt_cmap4_init, tt_cmap4_next):
+ Insert the casts from unsigned long constant to
+ FT_UInt32.
+
+2009-07-31 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ sfnt: Extend TT_BDF->strings_size to FT_ULong for huge BDF.
+
+ * include/freetype/internal/tttypes.h: The type
+ of TT_BDF->string_size is extended from FT_UInt32
+ to FT_ULong, because BDF specification does not
+ restrict the length of string.
+ * src/sfnt/ttbdf.c: The scratch variable `strings'
+ to load TT_BDF->string_size is matched with
+ TT_BDF->string_size.
+
+2009-07-31 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ psaux: Handle the string length by FT_Offset variables.
+
+ * src/psaux/afmparse.c (afm_parser_next_key,
+ afm_tokenize, afm_parse_track_kern,
+ afm_parse_kern_pairs, afm_parse_kern_data,
+ afm_parser_skip_section, afm_parser_parse):
+ The length of key is handled by FT_Offset,
+ instead of FT_UInt. Although the length of
+ PostScript strings or name object is 16-bit,
+ AFM_STREAM_KEY_LEN() calculates the length
+ from the pointer difference.
+
+ * src/psaux/afmparse.h (afm_parser_next_key):
+ Ditto.
+
+2009-07-31 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ pcf: Fix some data types mismatching with their sources.
+
+ * src/pcf/pcfread.c (pcf_get_bitmaps): The types
+ of `nbitmaps', `i', `sizebitmaps' are matched with
+ the type of area FT_Bitmap.pitch * FT_Bitmap.rows.
+
+2009-07-31 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ pcf: Handle the string length by size_t variables.
+
+ * src/pcf/pcfread.c (pcf_interpret_style): The types
+ of nn, len, lengths[4] are changed to size_t, because
+ they are loaded by (or compared with) ft_strlen().
+
+ * src/pcf/pcfutil.c (BitOrderInvert, TwoByteSwap,
+ FourByteSwap): The type of the 2nd argument `nbytes'
+ is changed to size_t, for similarity with ANSI C
+ string functions.
+
+ * src/pcf/pcfdrivr.c (PCF_Glyph_Load): The type of
+ `bytes' is changed to FT_Offset, because it is passed
+ to FT_ALLOC(), via ft_glyphslot_alloc_bitmap(). At
+ least, using unsigned type is better.
+
+2009-07-31 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ pcf: Fix some data types mismatching with their sources.
+
+ * src/pcf/pcfread.c (pcf_seek_to_table_type,
+ pcf_has_table_type): The type of 3rd argument
+ `ntables' is matched with PCF_Toc->count.
+
+2009-07-31 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ otvalid: Truncate the glyph index to 16-bit.
+
+ * src/otvalid/otvalid.c (otv_validate): Checks
+ face->num_glyphs does not exceed 16-bit limit,
+ pass FT_UInt num_glyphs to backend functions
+ otv_{GPOS|GSUB|GDEF|JSTF|MATH}_validate().
+
+2009-07-31 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ cache: Insert explicit casts for LP64 systems.
+
+ * src/cache/ftcbasic.c (FTC_ImageCache_Lookup,
+ FTC_SBitCache_Lookup): The type of FTC_ImageType->width
+ is FT_Int, so the cast to unsigned larger type FT_ULong
+ is introduced for the comparisons with 0x10000L for
+ LP64 platform.
+
+2009-07-31 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ cache: Fix some data types mismatching with their sources.
+
+ * src/cache/ftccache.h: The type of return value
+ by FTC_Node_WeightFunc function is changed to
+ FT_Offset. The type of FTC_CacheClass->cache_size
+ is changed to FT_Offset, too.
+
+ * src/cache/ftccback.h (ft_inode_weight,
+ ftc_snode_weight): Ditto.
+
+ * src/cache/ftccmap.c (ftc_cmap_node_weight): Ditto.
+
+ * src/cache/ftcimage.c (ftc_inode_weight,
+ FTC_INode_Weight): Ditto.
+
+ * src/cache/ftcsbits.c (ftc_snode_weight,
+ FTC_SNode_Weight): Ditto.
+
+ * src/cache/ftcmru.h: The type of
+ FTC_MruListClass->node_size is changed to FT_Offset,
+ because it is passed to FT_ALLOC() to specify the
+ size of buffer.
+
+2009-07-31 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ XXX_cmap_encoding_char_next() return FT_UInt32 values.
+
+ * include/freetype/internal/services/svpscmap.h:
+ The size of the charcode value returned by
+ the function typed PS_Unicodes_CharNextFunc is
+ matched with its input charcode value.
+
+ * src/cff/cffmap.c (cff_cmap_encoding_char_next,
+ cff_cmap_unicode_char_next): Ditto.
+
+ * src/pfr/pfrmap.c (pfr_cmap_encoding_char_next):
+ Ditto.
+
+ * src/psaux/t1cmap.c (t1_cmap_std_char_next,
+ t1_cmap_custom_char_next, t1_cmap_unicode_char_next):
+ Ditto.
+
+ * src/psnames/psmodule.c (ps_unicodes_char_next):
+ Ditto.
+
+ * src/winfonts/winfnt.c (fnt_cmap_char_next):
+ Ditto.
+
+ * src/sfnt/ttcmap.c (tt_cmap0_char_next,
+ tt_cmap2_char_next, tt_cmap4_char_next,
+ tt_cmap6_char_next, tt_cmap10_char_next,
+ tt_cmap12_char_next, tt_cmap13_char_next): Ditto.
+ (tt_cmap14_char_variants): Handle base unicode
+ codepoint by FT_UInt32 variable to avoid overflow
+ on 16-bit platforms.
+ (tt_cmap14_ensure): The type of `num_results' is
+ extend to FT_UInt32, to cover unsigned 32-bit
+ `numVarSelectorRecords' in cmap14 table header.
+
+2009-07-31 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ truetype: Extend TT_Face->num_locations for broken TTFs.
+
+ * include/freetype/internal/tttypes.h:
+ TT_Face->num_locations are extended from FT_UInt
+ to FT_ULong, to stand with broken huge loca table.
+ Some people insists there are broken TTF including
+ the glyphs over 16-bit limitation, in PRC market.
+ * src/truetype/ttpload.c (tt_face_load_loca):
+ Remove unrequired 16-bit truncation for FT_UInt
+ TT_Face->num_locations.
+
+2009-07-31 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ smooth: Fix some data types mismatching with their sources.
+
+ * src/smooth/ftgrays.c: The type of `TCoord' is
+ matched to `TPos', because they are mixed in
+ gray_set_cell(). The type of TCell->x is extended
+ to `TPos', because gray_find_cell() sets it by
+ TWorker.ex. The type of TCell->cover is extended
+ to `TCoord', because gray_render_scanline() adds
+ TCoord value to it. The type of TWork.cover is matched
+ with TCell->cover. The types of
+ TWork.{max_cells,num_cells} are changed to FT_PtrDist,
+ because they are calculated from the memory addresses.
+ The type of TWork.ycount is changed to TPos, because
+ it is calculated from TPos variables.
+ (gray_find_cell): The type of `x' is matched with
+ its initial value ras.ex.
+ (gray_render_scanline): The types of `mod', `lift'
+ and `rem' are changed to TCoord, because their values
+ are set with explicit casts to TCoord. When ras.area
+ is updated by the differential values including
+ `delta', they are explicitly cast to TArea, because
+ the type of `delta' is not TArea but TCoord.
+ (gray_render_line): The type of `mod' is extended
+ from int to TCoord, because (TCoord)dy is added to mod.
+ (gray_hline): The argument `acount' is extended to
+ TCoord, to match with the parameters in the callers.
+
+2009-07-31 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ cff: Fix some data types mismatching with their sources.
+
+ * src/cff/cffobjs.c (cff_face_init): The type of
+ `scaling' is matched with the scaling parameter
+ in FT_Matrix_Multiply_Scaled() and
+ FT_Vector_Transform_Scaled().
+
+ * src/cff/cffparse.c (cff_parse_real): The type of
+ `power_ten', `scaling', `exponent_add',
+ `integer_length', `fraction_length',
+ `new_fraction_length' and `shift' are matched with
+ the type of `exponent' to avoid unexpected truncation.
+ (cff_parse_fixed_scaled): The type of `scaling' is
+ matched with the `scaling' argument to
+ cff_parse_real().
+ (cff_parse_fixed_dynamic): Ditto.
+ (cff_parse_font_matrix): The type of `scaling' is
+ matched with the `scaling' argument to
+ cff_parse_dynamic().
+
+2009-07-31 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ autofit: Fix some data types mismatching with their sources.
+
+ * src/autofit/afglobal.c: Correct the type of
+ AF_FaceGlobalsRec.glyph_count to match with
+ FT_Face->num_glyphs.
+ (af_face_globals_compute_script_coverage):
+ Insert explicit cast to compare
+ FT_Long AF_FaceGlobalsRec.glyph_count versus
+ FT_UInt gindex. The type of `nn' is changed
+ to scan glyph index upto AF_FaceGlobalsRec.glyph_count.
+ (af_face_globals_get_metrics): The type of `script_max'
+ is changed to cover size_t value. Insert explicit cast
+ to compare FT_Long AF_FaceGlobalsRec.glyph_count versus
+ FT_UInt gindex.
+
+ * src/autofit/afhints.c (af_axis_hints_new_segment):
+ Insert explicit cast to calculate `big_max' from
+ integer and size_t values.
+ (af_axis_hints_new_edge): Ditto.
+
+ * src/autofit/aflatin.c (af_latin_metrics_init_blues):
+ The type of `best_y' is matched to FT_Vector.y.
+ (af_latin_compute_stem_width): The type of `delta' is
+ matched to `dist' and `org_dist'.
+
+2009-07-31 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ autofit: Count the size of the memory object by ptrdiff_t.
+
+ * src/autofit/afcjk.c (af_cjk_hint_edges): The
+ number of edges `n_edges' should be counted by
+ FT_PtrDist variable instead of FT_Int.
+
+ * src/autofit/aflatin.c (af_latin_hint_edges):
+ Ditto.
+
+ * src/autofit/aftypes.h: In AF_ScriptClassRec,
+ the size of metric `script_metrics_size' should
+ be counted by FT_Offset variable instead of FT_UInt.
+
+ * src/autofit/afhints.c
+ (af_glyph_hints_align_strong_points): The cursors
+ for the edges `min', `max', `mid' in the memory
+ buffer should be typed FT_PtrDist.
+
+2009-07-31 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ autofit: Fix for unused variable `first'.
+
+ * src/autofit/afhints.c (af_glyph_hints_reload): Insert
+ FT_UNUSED() to hide the unused variable warning.
+
+2009-07-31 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ Improve bitmap size or pixel variables for 16-bit systems.
+
+ * include/freetype/config/ftstdlib.h: Introduce
+ FT_INT_MIN, to use in signed integer overflow in
+ 16-bit and 64-bit platforms.
+
+ * include/freetype/internal/fttrace.h: Add a tracer
+ to ftsynth.c.
+
+ * src/base/ftbitmap.c (FT_Bitmap_Embolden): Check
+ invalid strength causing integer overflow on 16-bit
+ platform.
+
+ * src/base/ftcalc.c (ft_corner_orientation): Change
+ the internal calculation from FT_Int to FT_Long, to
+ avoid an overflow on 16-bit platforms. The caller of
+ this function should use only the sign of result,
+ so the cast to FT_Int is acceptable.
+
+ * src/base/ftsynth.c: Introduce a tracer for synth module.
+ (FT_GlyphSlot_Embolden): Check invalid strength causing
+ integer overflow on 16-bit platform.
+
+ * src/bdf/bdfdrivr.c (BDF_Face_Init): The glyph index
+ in FT2 API is typed as FT_UInt, although BDF driver
+ can handle unsigned long glyph index internally. To
+ avoid integer overflow on 16-bit platform, too large
+ glyph index should be excluded.
+ (BDF_Glyph_Load): The glyph pitch in FT2 is typed as
+ FT_UInt, although BDF driver can handle unsigned long
+ glyph pitch internally. To avoid integer overflow on
+ 16-bit platform, too large glyph pitch should not be
+ returned.
+
+ * src/pfr/pfrsbit.c (pfr_slot_load_bitmap): The glyph
+ pitch in FT2 is typed as FT_UInt, although PFR font
+ format can include huge bitmap glyph with 24-bit pitch
+ (however, a glyph spends 16.7 pixel, it's not realistic).
+ To avoid integer overflow on 16-bit platform, huge
+ bitmap glyph should be excluded.
+
+ * src/smooth/ftgrays.c (gray_hline): As FT_Span.x is
+ truncated to fit its type (16-bit short), FT_Span.y
+ should be truncated to fit its type (FT_Int).
+
+ * src/cff/cffdrivr.c (cff_get_ros): CFF specification
+ defines the supplement in ROS as a real number.
+ Truncate it to fit public FT2 API.
+
+ * src/cff/cffparse.c (cff_parse_cid_ros): Warn the
+ supplement if it is truncated or rounded in cff_get_ros().
+
+ * src/cff/cfftypes.h: Change the type of internal variable
+ `supplement' from FT_Long to FT_ULong to fit the signedness
+ to the type in public API.
+
+2009-07-31 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ psaux: Prevent invalid arguments to afm_parser_read_vals().
+
+ * src/psaux/afmparse.c (afm_parser_read_vals): Change
+ the type of `n' to prevent negative number how many
+ arguments should be parsed.
+
+ * src/psaux/afmparse.h (afm_parser_read_vals): Ditto.
+
+2009-07-31 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ base: Prevent some overflows on LP64 systems.
+
+ * src/base/ftadvanc.c (FT_Get_Advances): Cast the
+ unsigned long constant FT_LOAD_ADVANCE_ONLY to FT_UInt32
+ for LP64 platforms.
+
+ * src/base/ftcalc.c (FT_Sqrt32): All internal variables
+ are changed to FT_UInt32 from FT_ULong.
+ (FT_MulDiv): Insert casts to FT_Int32 for LP64 platforms.
+ This function is designed for 32-bit integer, although
+ their arguments and return value are FT_Long.
+
+ * src/base/ftobjs.c (FT_Get_Char_Index): Check `charcode'
+ is within unsigned 32-bit integer for LP64 platforms.
+ (FT_Face_GetCharVariantIndex): Check `charcode' and
+ `variantSelector' are within 32-bit integer for LP64
+ platforms.
+ (FT_Face_GetCharsOfVariant): Check `variantSelector' is
+ within unsigned 32-bit integer for LP64 platforms.
+
+ * src/base/fttrigon.c (ft_trig_downscale): The FT_Fixed
+ variable `val' and unsigned long constant FT_TRIG_SCALE
+ are cast to FT_UInt32, when calculates FT_UInt32.
+ (FT_Vector_Rotate): The long constant 1L is cast to
+ FT_Int32 to calculate FT_Int32 `half'.
+
+2009-07-31 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ cff: Cast the long variables to 32-bit for LP64 systems.
+
+ * src/cff/cffdrivr.c (cff_get_advances): Insert
+ explicit cast to modify a 32-bit flag by unsigned
+ long constant.
+
+ * src/cff/cffobjs.c (cff_face_init): Ditto.
+
+ * src/cff/cffgload.c (cff_decoder_parse_charstrings):
+ Replace the casts to FT_Long by the casts to FT_Int32
+ for LP64 platforms.
+
+2009-07-31 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ pcf: Improve PCF_PropertyRec.value names on LP64 platforms.
+
+ * src/pcf/pcf.h: In PCF_PropertyRec.value, the member
+ `integer' is replaced by `l', `cardinal' is replaced
+ by `ul', to fix the difference between the name and
+ the types on LP64 platforms.
+
+ * src/pcf/pcfdrivr.c (pcf_get_bdf_property): Reflect
+ PCF_PropertyRec.value change, with appropriate casts
+ to FT_Int32/FT_UInt32. Their destinations
+ BDF_PropertyRec.{integer|cardinal} are public and
+ explicitly defined as FT_Int32/FT_UInt32.
+
+ * src/pcf/pcfread.c (pcf_get_properties, pcf_load_font):
+ Reflect PCF_PropertyRec.value change.
+
+2009-07-31 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ pcf: Fix some data types mismatching with their sources.
+
+ * src/pcf/pcfdrivr.c (pcf_cmap_char_index): The type of
+ `code' is matched to PCF_Encoding->enc.
+ (pcf_cmap_char_next): The type of `charcode' is matched
+ to PCF_Encoding->enc. When *acharcode is set by charcode,
+ an overflow is checked and cast to unsigned 32-bit
+ integer.
+
+2009-07-31 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ bdf: Improve bdf_property_t.value names for LP64 platforms.
+
+ * src/bdf/bdf.h: In bdf_property_t.value, the member
+ `int32' is replaced by `l', `card32' is replaced by
+ `ul', to fix the difference between the name and the
+ types on LP64 platforms.
+
+ * src/bdf/bdfdrivr.c (BDF_Face_Init): Reflect
+ bdf_property_t.value change.
+ (bdf_get_bdf_property): Reflect bdf_property_t.value
+ change, with appropriate casts to FT_Int32/FT_UInt32.
+ Their destinations BDF_PropertyRec.{integer|cardinal}
+ are public and explicitly defined as FT_Int32/FT_UInt32.
+
+ * src/bdf/bdflib.c (_bdf_add_property): Reflect
+ bdf_property_t.value change.
+
+2009-07-31 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ bdf: Fix some data types mismatching with their sources.
+
+ * src/bdf/bdfdrivr.c (bdf_cmap_char_index): The type
+ of `code' is matched with BDF_encoding_el->enc.
+ (bdf_cmap_char_next): The type of `charcode' is
+ matched with BDF_encoding_el->enc. When *acharcode
+ is set by charcode, an overflow is checked and
+ cast to unsigned 32-bit integer.
+
+2009-07-31 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ autofit: Improve Unicode range definitions.
+
+ * src/autofit/aftypes.h (AF_UNIRANGE_REC): New macro
+ to declare a range by two unsigned 32-bit integer,
+ to avoid 64-bit range definition on LP64 platforms.
+
+ * src/autofit/aflatin.c (af_latin_uniranges): Ditto.
+
+ * src/autofit/aflatin2.c (af_latin2_uniranges): Ditto.
+
+ * src/autofit/afindic.c (af_indic_uniranges): Ditto.
+
+ * src/autofit/afcjk.c (af_cjk_uniranges): Declare
+ the ranges by AF_UNIRANGE_REC.
+
+2009-07-31 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ smooth: Fix a data type mismatching with its source.
+
+ * src/smooth/ftgrays.c (gray_sweep): The type of
+ `area' is matched with the 3rd argument `area'
+ of gray_hline().
+
+2009-07-31 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ smooth: Fix a data type mismatching with its source.
+
+ * src/smooth/ftgrays.c (gray_render_line): The type
+ of `area' is matched with TWorker.area.
+
+2009-07-31 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ cache: Disable the legacy compatibility if 16-bit system.
+
+ * src/cache/ftcbasic.c (FTC_ImageCache_Lookup): Exclude
+ the legacy behaviour from 16-bit platform, because the
+ current hack cannot detect the caller uses this function
+ via legacy convention.
+ (FTC_SBitCache_Lookup): Ditto.
+
+2009-07-31 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ cache: Check 32-bit glyph index on 16-bit systems.
+
+ * src/cache/ftcbasic.c (ftc_basic_family_get_count):
+ Check overflow caused by the face including large
+ number of glyphs > 64k.
+
+2009-07-31 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ cache: Fix some data types mismatching with their sources.
+
+ * src/cache/ftccache.c (ftc_cache_resize): The types of
+ `p', `mask', `count' are matched with FTC_Cache->{p,mask}.
+ (FTC_Cache_Clear): The type of `old_index' is matched to
+ FTC_Cache->{p,mask}.
+
+ * src/cache/ftccache.h (FTC_CACHE_LOOKUP_CMP): The type
+ of `_idx' is matched with FTC_Cache->{p,mask}.
+
+2009-07-31 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ cache: Fix some data types mismatching with their sources.
+
+ * src/cache/ftcsbits.c (ftc_snode_load): The types
+ of `xadvance' and `yadvance' are matched with
+ FT_GlyphSlot->advance.{x|y}.
+
+2009-07-31 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ cache: Cast NULL to a required function type explicitly.
+
+ * src/cache/ftcmanag.c (FTC_Manager_RemoveFaceID):
+ Insert explicit cast from NULL to function type.
+
+2009-07-31 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ fttypes.h: Cast FT_MAKE_TAG output to FT_Tag explicitly.
+
+ * include/freetype/fttypes.h (FT_MAKE_TAG):
+ Cast the result to FT_Tag.
+
+2009-07-31 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ psnames: Handle Unicode codepoints by FT_UInt32 variables.
+
+ * src/psnames/psmodule.c (BASE_GLYPH): Cast the result
+ to unsigned 32-bit integer for LP64 platform.
+ (ps_unicode_value): Return the value by unsigned 32-bit
+ integer instead of unsigned long.
+
+2009-07-31 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ psaux: Use size_t variable to pass the buffer size.
+
+ * src/psaux/psaux.h (to_bytes): The type of `max_bytes'
+ (the argument to pass the buffer size) is changed to
+ size_t, to match with ANSI C string functions.
+
+ * src/psaux/psconv.h (PS_Conv_StringDecode,
+ PS_Conv_ASCIIHexDecode, PS_Conv_EexecDecode): Ditto.
+
+ * src/psaux/psconv.c (PS_Conv_StringDecode,
+ PS_Conv_ASCIIHexDecode, PS_Conv_EexecDecode): Ditto.
+
+ * src/psaux/psobjs.h (ps_parser_to_bytes): Ditto.
+
+ * src/psaux/psobjs.c (ps_parser_to_bytes): Ditto.
+
+2009-07-31 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ type1: Use size_t variable to pass the string length.
+
+ * psaux.h: The type of `len' (the argument to pass
+ the buffer size to the function in AFM_ParserRec)
+ is changed to size_t, to match with ANSI C string
+ functions.
+
+ * t1afm.c (t1_get_index): Ditto.
+
+ * test_afm.c (dummy_get_index): Ditto.
+
+ * afmparse.c (afm_parser_read_vals): To call
+ AFM_ParserRec.get_index, the length of token
+ `len' is cast to size_t.
+
+2009-07-31 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ cid: Fix some data types mismatching with their sources.
+
+ * src/cid/cidparse.c (cid_parser_new): The types of
+ `read_len' and `stream_len' are matched to
+ FT_Stream->size. Unrequired cast is removed.
+
+2009-07-31 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ cff: Fix for unused variable `rest'.
+
+ * src/cff/cffparse.c (cff_parse_real): Insert
+ FT_UNUSED() to hide the unused variable warning.
+
+2009-07-31 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ cff: Fix some data types mismatching with their sources.
+
+ * src/cff/cffgload.c (cff_slot_load): The types of
+ `top_upm' and `sub_upm' are matched with
+ CFF_FontRecDict->units_per_em.
+
+ * src/cff/cffobjs.c (cff_size_select): Ditto.
+ (cff_size_request): Ditto.
+
+2009-07-31 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ bdf: Fix some data types mismatching with their sources.
+
+ * bdflib.c (_bdf_list_ensure): The type of `num_items'
+ is matched with _bdf_list_t.used. Also the types of
+ `oldsize', `newsize', `bigsize' are matched too.
+ (_bdf_readstream): `cursor' is used as an offset to
+ the pointer, it should be typed as FT_Offset. Also
+ the types of `bytes', `start', `end', `avail' are matched.
+
+ * bdfdrivr.c: The type of BDF_CMap->num_encodings is
+ matched with FT_CMap->clazz->size.
+ (bdf_cmap_char_index): The types of `min', `max', `mid'
+ are matched with BDF_CMap->num_encodings. The type of
+ `result' is matched with encoding->glyph.
+ (bdf_cmap_char_next): Ditto, the type of `code' is
+ matched with BDF_encoding_el.enc.
+ (bdf_interpret_style): The type of `lengths' is changed
+ to size_t, to take the value by ft_strlen(). Also the
+ types of `len', `nn', `mm' are matched.
+
+2009-07-31 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ sfnt: Count the size of the memory object by ptrdiff_t.
+
+ * src/sfnt/ttbdf.c (tt_face_find_bdf_prop): The type of
+ `property_len' is changed from FT_UInt to FT_Offset,
+ to match with size_t, which is appropriate type for the
+ object in the memory buffer.
+
+2009-07-31 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ lzw: Count the size of the memory object by ptrdiff_t.
+
+ * src/lzw/ftzopen.h: The types of FT_LzwState->{buf_total,
+ stack_size} are changed from FT_UInt to FT_Offset, to match
+ with size_t, which is appropriate type for the object in
+ the memory buffer.
+
+ * src/lzw/ftzopen.c (ft_lzwstate_stack_grow): The types of
+ `old_size' and `new_size' are changed from FT_UInt to
+ FT_Offset, to match with size_t, which is appropriate type
+ for the object in the memory buffer.
+
+2009-07-31 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ otvalid: Count the table size on memory by ptrdiff_t.
+
+ * src/otvalid/otvgpos.c (otv_ValueRecord_validate):
+ Change the type of table size from FT_UInt to
+ FT_PtrDist because it is calculated by the memory
+ addresses.
+
+2009-07-31 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ otvalid: Prevent an overflow by GPOS/GSUB 32b-bit offset.
+
+ * src/otvalid/otvgpos.c (otv_ExtensionPos_validate):
+ Extend ExtensionOffset from FT_UInt to FT_ULong, to
+ cover 32-bit offset on 16-bit platform.
+
+ * src/otvalid/otvgsub.c (otv_ExtensionSubst_validate):
+ Ditto.
+
+2009-07-31 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ ftobjs.c: Prevent an overflow in glyph index handling.
+
+ * src/base/ftobjs.c (FT_Face_GetCharsOfVariant):
+ Improve the cast in comparison to avoid the truncation.
+
+2009-07-31 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ Improve the variable types in raccess_make_file_name().
+
+ * src/base/ftrfork.c (raccess_make_file_name):
+ Change the type of cursor variable `tmp' to const char*,
+ to prevent the unexpected modification of original pathname.
+ (raccess_make_file_name): Change the type of new_length
+ to size_t.
+
+2009-07-31 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ ftpatent.c: Fix for unused variable `error'.
+
+ * src/base/ftpatent.c (_tt_check_patents_in_range):
+ Fix warning for unused variable `error'.
+
+2009-07-31 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ type1: Check invalid string longer than PostScript limit.
+
+ * src/type1/t1afm.c (t1_get_index): Check invalid string
+ which exceeds the limit of PostScript string/name objects.
+
+2009-07-31 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ gzip: Use FT2 zcalloc() & zfree() in ftgzip.c by default.
+
+ * src/gzip/ftgzip.c (zcalloc, zcfree): Disable all
+ zcalloc() & zfree() by zlib in zutil.c, those in
+ ftgzip.c by FT2 are enabled by default. To use
+ zlib zcalloc() & zfree(), define USE_ZLIB_ZCALLOC.
+ See discussion:
+ https://lists.gnu.org/archive/html/freetype-devel/2009-02/msg00000.html
+
+2009-07-31 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ gzip: Distinguish PureC from TurboC on MSDOS.
+
+ * src/gzip/zutil.c (zcalloc, zcfree): Enable only for
+ MSDOS platform.
+
+2009-07-31 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ gxvalid: Insert PureC pragma to allow unevaluated variables.
+
+ * builds/atari/ATARI.H: Insert PureC pragma not to
+ warn against set-but-unevaluated variable in gxvalid
+ module.
+
+2009-07-31 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ gxvalid: Pass the union by the pointer instead of the value.
+
+ * src/gxvalid/gxvcommn.h:
+ - Declare new type `GXV_LookupValueCPtr'.
+ - Update the type of the 2nd argument to pass GXV_LookupValueDesc
+ data to the function prototyped as GXV_Lookup_Value_Validate_Func,
+ from GXV_LookupValueDesc to GXV_LookupValueCPtr.
+ - Likewise for the function prototyped as
+ GXV_Lookup_Fmt4_Transit_Func.
+
+ - Declare new type `GXV_StateTable_GlyphOffsetCPtr'.
+ - Update the type of the 3rd argument to pass
+ GXV_StateTable_GlyphOffsetDesc data to the function prototyped
+ as GXV_StateTable_Entry_Validate_Func, from
+ GXV_StateTable_GlyphOffsetDesc to GXV_StateTable_GlyphOffsetCPtr.
+
+ - Declare new type `GXV_XStateTable_GlyphOffsetCPtr'.
+ - Update the type of the 3rd argument to pass
+ GXV_XStateTable_GlyphOffsetDesc data to the function prototyped
+ as GXV_XStateTable_Entry_Validate_Func,
+ from GXV_XStateTable_GlyphOffsetDesc
+ to GXV_XStateTable_GlyphOffsetCPtr.
+
+ * src/gxvalid/gxvcommn.c (gxv_LookupTable_fmt0_validate,
+ gxv_XClassTable_lookupval_validate,
+ gxv_XClassTable_lookupfmt4_transit):
+ Update from GXV_LookupValueDesc to GXV_LookupValueCPtr.
+
+ * src/gxvalid/gxvbsln.c (gxv_bsln_LookupValue_validate,
+ gxv_bsln_LookupFmt4_transit): Ditto.
+
+ * src/gxvalid/gxvjust.c
+ (gxv_just_pcTable_LookupValue_entry_validate,
+ gxv_just_classTable_entry_validate,
+ gxv_just_wdcTable_LookupValue_validate): Ditto.
+
+ * src/gxvalid/gxvkern.c
+ (gxv_kern_subtable_fmt1_entry_validate): Ditto.
+
+ * src/gxvalid/gxvlcar.c (gxv_lcar_LookupValue_validate,
+ gxv_lcar_LookupFmt4_transit): Ditto.
+
+ * src/gxvalid/gxvopbd.c (gxv_opbd_LookupValue_validate,
+ gxv_opbd_LookupFmt4_transit): Ditto.
+
+ * src/gxvalid/gxvprop.c (gxv_prop_LookupValue_validate,
+ gxv_prop_LookupFmt4_transit): Ditto.
+
+ * src/gxvalid/gxvmort4.c
+ (gxv_mort_subtable_type4_lookupval_validate): Ditto.
+
+ * src/gxvalid/gxvmort0.c
+ (gxv_mort_subtable_type0_entry_validate): Update
+ from GXV_StateTable_GlyphOffsetDesc
+ to GXV_StateTable_GlyphOffsetCPtr.
+
+ * src/gxvalid/gxvmort1.c
+ (gxv_mort_subtable_type1_entry_validate): Ditto.
+
+ * src/gxvalid/gxvmort2.c
+ (gxv_mort_subtable_type2_entry_validate): Ditto.
+
+ * src/gxvalid/gxvmort5.c
+ (gxv_mort_subtable_type5_entry_validate): Ditto.
+
+ * src/gxvalid/gxvmorx2.c
+ (gxv_morx_subtable_type2_entry_validate): Ditto.
+
+ * src/gxvalid/gxvmorx5.c
+ (gxv_morx_subtable_type5_entry_validate): Ditto.
+
+ * src/gxvalid/gxvmorx1.c
+ (gxv_morx_subtable_type1_entry_validate): Ditto.
+ (gxv_morx_subtable_type1_LookupValue_validate,
+ gxv_morx_subtable_type1_LookupFmt4_transit):
+ Update from GXV_LookupValueDesc to GXV_LookupValueCPtr.
+
+ * src/gxvalid/gxvmorx0.c
+ (gxv_morx_subtable_type0_entry_validate): Update
+ from GXV_XStateTable_GlyphOffsetDesc
+ to GXV_XStateTable_GlyphOffsetCPtr.
+
+2009-07-29 Fabrice Bellet <fabrice@bellet.info>
+
+ Fix Redhat bugzilla #513582 and Savannah bug #26849.
+
+ * src/cache/ftccache.h (FTC_CACHE_LOOKUP_CMP) <FTC_INLINE>: Fix
+ aliasing bug.
+
+2009-07-19 Werner Lemberg <wl@gnu.org>
+
+ Document recent library changes.
+
+ * docs/CHANGES: Do it.
+
+2009-07-17 Werner Lemberg <wl@gnu.org>
+
+ Fix Savannah bug #23786.
+
+ * src/truetype/ttobjs.c (tt_size_init_bytecode): Don't reset x_ppem
+ and y_ppem. Otherwise the `*_CVT_Stretched' functions in ttinterp.c
+ get never called.
+ An anonymous guy suggested this change on Savannah, and it seems to
+ be the right solution.
+
+2009-07-15 Werner Lemberg <wl@gnu.org>
+
+ * docs/release: Updated.
+
+2009-07-15 Werner Lemberg <wl@gnu.org>
+
+ README.CVS -> README.git
+
+ * README.CVS: Renamed to...
+ * README.git: This.
+ Updated.
+
+2009-07-15 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ Borland C++ compiler patch proposed by Mirco Babin.
+ https://lists.gnu.org/archive/html/freetype/2009-07/msg00016.html.
+
+ * builds/exports.mk: Delete unused flags, CCexe_{CFLAGS,LDFLAGS}.
+ Fix APINAMES_C and APINAMES_EXE pathnames to reflect the platform
+ specific pathname syntax.
+ * builds/compiler/bcc.mk: Remove unused flag, CCexe_LDFLAGS.
+ Define TE = `-e' separately (bcc32 cannot specify the pathname of
+ binary executable by T = `-o').
+ Extend the large page size in linking freetype.lib.
+ Add extra CLEAN target to delete bcc specific temporary files.
+ * builds/compiler/bcc-dev.mk: Ditto.
+
+2009-07-14 Werner Lemberg <wl@gnu.org>
+
+ Fix Savannah bug #27026.
+
+ * builds/win32/vc2005/freetype.sln: Use correct version number.
+
+2009-07-12 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ Add a script to check the undefined and unused trace macros.
+
+ * src/tools/chktrcmp.py: A script to check trace_XXXX macros
+ that are used in C source but undefined in fttrace.h, or
+ defined in fttrace.h but unused in C sources. See
+ https://lists.gnu.org/archive/html/freetype-devel/2009-07/msg00013.html.
+ * docs/DEBUG: Mention on chktrcmp.py.
+ * docs/release: Ditto.
+
+2009-07-09 Werner Lemberg <wl@gnu.org>
+
+ [ftraster] Make it compile again with -D_STANDALONE_.
+
+ * src/raster/ftraster.c [_STANDALONE_]: Define
+ FT_CONFIG_STANDARD_LIBRARY_H.
+ Include `string.h'.
+ Don't include `rastpic.h'.
+ Define FT_DEFINE_RASTER_FUNCS.
+
+2009-07-09 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ smooth: Check glyph size by width/height, instead of pitch/height.
+ Suggested by der Mouse <mouse@Rodents-Montreal.ORG>.
+
+ * src/smooth/ftsmooth.c (ft_smooth_render_generic): Improve
+ the check for too large glyph. Replace the pair of `pitch' and
+ `height' by the pair of `width' and `height'. `pitch' cannot
+ be greater than `height'. The required is checking the product
+ `pitch' * `height' <= FT_ULONG_MAX, but we use cheap checks for
+ the realistic case only.
+
+2009-07-09 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ Register 2 missing trace components, t1afm and ttbdf.
+
+ * include/freetype/internal/fttrace.h: Add FT_TRACE_DEF( t1afm )
+ and FT_TRACE_DEF( ttbdf ). See
+ https://lists.gnu.org/archive/html/freetype-devel/2009-07/msg00013.html
+
+2009-07-09 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ Register a trace component for ftgloadr.c.
+
+ * include/freetype/internal/fttrace.h: Add FT_TRACE_DEF( gloader ).
+ The macro `trace_gloader' was already used in the initial version
+ on 2002-02-24.
+
+2009-07-08 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ Prevent the overflows by a glyph with too many points or contours.
+ The bug is reported by Boris Letocha <b.letocha@gmc.net>. See
+ https://lists.gnu.org/archive/html/freetype-devel/2009-06/msg00031.html
+ https://lists.gnu.org/archive/html/freetype-devel/2009-07/msg00002.html
+
+ * include/freetype/ftimage.h (FT_OUTLINE_CONTOURS_MAX,
+ FT_OUTLINE_POINTS_MAX): New macros to declare the maximum
+ values of FT_Outline.{n_contours,n_points}.
+ * src/base/ftgloadr.c (FT_GlyphLoader_CheckPoints): Check the
+ total numbers of points and contours cause no overflows in
+ FT_Outline.{n_contours,n_points}.
+
+ * include/freetype/internal/ftgloadr.h (FT_GLYPHLOADER_CHECK_P,
+ FT_GLYPHLOADER_CHECK_C): Compare the numbers of points and
+ contours as unsigned long number, instead of signed int, to
+ prevent the overflows on 16-bit systems.
+
+2009-07-05 Bram Tassyns <bramt@enfocus.be>
+
+ Improve compatibility to Acroread.
+ This fixes Savannah bug #26944.
+
+ * src/cff/cffload.c (cff_charset_compute_cids): For multiple GID to
+ single CID mappings, make the lowest value win.
+
+2009-06-28 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ ftpatent: Fix a bug by wrong usage of service->table_info().
+ https://lists.gnu.org/archive/html/freetype-devel/2008-12/msg00039.html
+
+ * include/freetype/internal/services/svsfnt.h: Extend
+ FT_SFNT_TableInfoFunc() to take new argument to obtain the offset
+ to the specified table.
+ * src/sfnt/sfdriver.c (sfnt_table_info): Extend to return the
+ table-offset to the caller function.
+ * src/base/ftpatent.c (_tt_check_patents_in_table): Use new
+ service->table_info().
+ * src/base/ftobjs.c (FT_Sfnt_Table_Info): Synchronize to new
+ service->table_info().
+
+2009-06-28 Werner Lemberg <wl@gnu.org>
+
+ [psaux, cff] Protect against nested `seac' calls.
+
+ * include/freetype/internal/psaux.h (T1_Decoder), src/cff/cffgload.h
+ (CFF_Decoder): Add `seac' boolean variable.
+
+ * src/cff/cffgload.c (cff_operator_seac), src/psaux/t1decode.c
+ (t1operator_seac): Use it.
+
+2009-06-28 Werner Lemberg <wl@gnu.org>
+
+ Thinko.
+
+ * src/psaux/t1decode.c (t1operator_seac)
+ [FT_CONFIG_OPTION_INCREMENTAL]: Test for existence of incremental
+ interface.
+
+2009-06-28 Werner Lemberg <wl@gnu.org>
+
+ * devel/ftoption.h [FT_CONFIG_OPTION_INCREMENTAL]: Define.
+
+2009-06-27 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ Add tools to preprocess the source files for AtariST PureC.
+
+ * builds/atari/deflinejoiner.awk: New file to filter C source files
+ for broken C preprocessor of PureC compiler.
+
+ * builds/atari/gen-purec-patch.sh: New file to generate a patch set
+ for PureC, by using deflinejoiner.awk.
+
+2009-06-27 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ Keep existing modules.cfg in the building tree.
+
+ * configure: If `configure' is executed outside of the source tree,
+ an existing `modules.cfg' file in the build directory should be
+ kept, not overwritten by the version in the source tree.
+
+2009-06-27 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ Filter --srcdir= option before invoking builds/unix/configure.
+
+ * configure: If builds/unix/configure is invoked with --srcdir
+ option, the option should take `builds/unix' directory instead of
+ the top source directory. Thus the configure script in the top
+ directory should modify the --srcdir= option if
+ `builds/unix/configure' is invoked.
+
+2009-06-27 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ Improve configure.raw for cross-building on exe-suffixed systems.
+
+ * builds/unix/configure.raw: Fix a bug in sed script to extract
+ native suffix for binary executables, patch by Peter Breitenlohner.
+ https://lists.gnu.org/archive/html/freetype-devel/2009-04/msg00036.html
+
+2009-06-26 Werner Lemberg <wl@gnu.org>
+
+ [truetype] Remove TT_SubGlyphRec.
+
+ * src/truetype/ttobjs.h (TT_SubGlyphRec): Removed, unused.
+
+2009-06-26 Werner Lemberg <wl@gnu.org>
+
+ * */*: For warning messages, replace FT_ERROR with FT_TRACE0.
+
+ FT_ERROR is now used only if a function produces a non-zero `error'
+ value.
+
+ Formatting, improving and harmonizing debug strings.
+
+2009-06-25 Werner Lemberg <wl@gnu.org>
+
+ Provide version information better.
+
+ * src/base/ftinit.c (FT_Init_FreeType): Don't set version here
+ but...
+ * src/base/ftobjs.c (FT_New_Library): Here.
+
+2009-06-22 Werner Lemberg <wl@gnu.org>
+
+ Use 16.16 format while parsing Type 1 charstrings.
+ This fixes Savannah bug #26867.
+
+ Previously, only integers have been used which can lead to serious
+ rounding errors.
+
+ However, fractional values are only used internally; after the
+ charstrings (of either Type 1 or 2) have been processed, the
+ resulting coordinates get rounded to integers currently -- before
+ applying scaling. This should be fixed; at the same time a new load
+ flag should be introduced, to be used in combination with
+ FT_LOAD_NO_SCALE, which indicates that font units are returned in
+ 16.16 format. Similarly, the incremental interface should be
+ extended to allow fractional values for metrics.
+
+ * include/freetype/internal/psaux.h (T1_BuilderRec): Remove `shift'
+ field.
+ * include/freetype/internal/pshints.h (T1_Hints_SetStemFunc,
+ T1_Hints_SetStem3Func): Use FT_Fixed for coordinates.
+
+ * src/psaux/psobjs.c: Include FT_INTERNAL_CALC_H.
+ (t1_build_add_point): Always convert fixed to integer.
+ * src/psaux/t1decode.c (t1_decoder_parse_charstrings):
+ Use 16.16 format everywhere (except for large integers followed by a
+ `div').
+ [CAN_HANDLE_NON_INTEGRAL_T1_OPERANDS]: Remove #ifdef and activate
+ code unconditionally.
+ Add support for random numbers and update remaining code
+ accordingly; this should work now.
+ (t1operator_seac): Updated.
+ * src/psaux/pshrec.c: Include FT_INTERNAL_CALC_H.
+ (ps_hints_t1stem3, t1_hints_stem): Updated.
+
+ * src/cid/cidgload.c: Include FT_INTERNAL_CALC_H.
+ (cid_load_glyph) [FT_CONFIG_OPTION_INCREMENTAL],
+ (cid_face_compute_max_advance, cid_slot_load_glyph): Updated.
+
+ * src/type1/t1gload.c (T1_Parse_Glyph_And_Get_Char_String)
+ [FT_CONFIG_OPTION_INCREMENTAL], (T1_Get_Advances, T1_Load_Glyph):
+ Updated.
+ * src/type1/t1load.c: Include FT_INTERNAL_CALC_H.
+ * src/type1/t1objs.c (T1_Face_Init): Updated.
+
+2009-06-21 Werner Lemberg <wl@gnu.org>
+
+ * src/pshinter/pshrec.c: Use PSH_Err_Ok.
+
+2009-06-21 Werner Lemberg <wl@gnu.org>
+
+ Code beautification.
+
+ * src/type1/t1load.c (FT_INT_TO_FIXED): Removed.
+ Replace everywhere with INT_TO_FIXED.
+ (FT_FIXED_TO_INT): Move to ...
+ * include/freetype/internal/ftcalc.h (FIXED_TO_INT): Here.
+ Update all users.
+
+2009-06-20 Werner Lemberg <wl@gnu.org>
+
+ Remove unused variables.
+
+ * include/freetype/internal/psaux.h (T1_BuilderRec),
+ src/cff/cffgload.h (CFF_Builder): Remove `last'.
+ Update all users.
+
+2009-06-20 Werner Lemberg <wl@gnu.org>
+
+ [psaux] Check large integers while parsing charstrings.
+
+ * src/psaux/t1decode.c (t1_decoder_parse_charstrings): Large
+ integers must be followed by a `div' operator.
+
+2009-06-20 Werner Lemberg <wl@gnu.org>
+
+ [cff] Revert last change.
+
+ * src/cff/cffgload.c (cff_decoder_parse_charstrings): Do it.
+ Next time, don't confuse Type 2 charstring opcodes with TOP DICT
+ values...
+
+2009-06-20 Werner Lemberg <wl@gnu.org>
+
+ * src/autofit/aflatin.c (af_latin_metrics_check_digits): Fix
+ compiler warning.
+
+2009-06-20 Werner Lemberg <wl@gnu.org>
+
+ * builds/compiler/gcc.mk (CFLAGS): Use -O3, not -O6.
+
+2009-06-19 Werner Lemberg <wl@gnu.org>
+
+ [cff] Fix handling of reserved byte 0xFF.
+
+ * src/cff/cffgload.c (cff_decoder_parse_charstrings): Abort if byte
+ 0xFF is encountered.
+
+2009-06-19 Werner Lemberg <wl@gnu.org>
+
+ Improve debug messages for Type1 charstrings.
+
+ * src/psaux/t1decode.c (t1_decoder_parse_charstrings): Emit newlines
+ after instructions.
+ Prettify output.
+
+2009-06-19 Werner Lemberg <wl@gnu.org>
+
+ More ftgray fixes for FT_STATIC_RASTER.
+ Problems reported by suyu@cooee.cn.
+
+ * src/smooth/ftgrays.c (gray_move_to, gray_raster_render): Use
+ RAS_VAR.
+
+2009-06-18 Werner Lemberg <wl@gnu.org>
+
+ * docs/CHANGES: Updated.
+
+2009-06-18 Werner Lemberg <wl@gnu.org>
+
+ Fix B/W rasterization of subglyphs with different drop-out modes.
+
+ Normally, the SCANMODE instruction (if present) to set the drop-out
+ mode in a TrueType font is located in the `prep' table only and thus
+ valid for all glyphs. However, there are fonts like `pala.ttf'
+ which additionally contain this instruction in the hinting code of
+ some glyphs (but not all). As a result it can happen that a
+ composite glyph needs multiple drop-out modes for its subglyphs
+ since the rendering state gets reset for each subglyph.
+
+ FreeType collects the hinted outlines from all subglyphs, then it
+ sends the data to the rasterizer. It also sends the drop-out mode
+ -- after hinting has been applied -- and here is the error: It sends
+ the drop-out mode of the last subglyph only; drop-out modes of all
+ other subglyphs are lost.
+
+ This patch fixes the problem; it adds a second, alternative
+ mechanism to pass the drop-out mode: For each contour, the
+ rasterizer now checks the first `tags' array element. If bit 2 is
+ set, bits 5-7 contain the contour's drop-out mode, overriding the
+ global drop-out mode.
+
+ * include/freetype/ftimage.h (FT_CURVE_TAG_HAS_SCANMODE): New macro.
+
+ * src/truetype/ttgload.c (TT_Hint_Glyph): Store drop-out mode in
+ `tags[0]'.
+
+ * src/raster/ftraster.c (Flow_Up, Overshoot_Top, Overshoot_Bottom):
+ Use bits 3-5 instead of 0-2.
+ (New_Profile): Set the drop-out mode in the profile's `flags' field.
+ (Decompose_Curve): Check `tags[0]' and set `dropOutControl' if
+ necessary.
+ (Vertical_Sweep_Drop, Horizontal_Sweep_Drop,
+ Horizontal_Gray_Sweep_Drop, Draw_Sweep): Use the profile's drop-out
+ mode.
+
+2009-06-16 Werner Lemberg <wl@gnu.org>
+
+ Improve scan conversion rules 4 and 6.
+
+ Two new constraints are introduced to better identify a `stub' -- a
+ concept which is only vaguely described in the OpenType
+ specification. The old code was too rigorous and suppressed more
+ pixel than it should.
+
+ . The intersection of the two profiles with the scanline is less
+ than a half pixel. Code related to this was already present in
+ the sources but has been commented out.
+
+ . The endpoint of the original contour forming a profile has a
+ distance (`overshoot') less than half a pixel to the scanline.
+
+ Note that the two additional conditions fix almost all differences
+ to the Windows rasterizer, but some problematic cases remain.
+
+ * src/raster/ftraster.c (Overshoot_Top, Overshoot_Bottom): New
+ macros for the `flags' field in the `TProfile' structure.
+ (IS_BOTTOM_OVERSHOOT, IS_TOP_OVERSHOOT): New macros.
+ (New_Profile, End_Profile): Pass overshoot flag as an argument and
+ set it accordingly.
+ Update callers.
+ (Vertical_Sweep_Drop, Horizontal_Sweep_Drop): Implement the two new
+ constraints.
+
+2009-06-11 Werner Lemberg <wl@gnu.org>
+
+ Increase precision for B/W rasterizer.
+
+ * src/raster/ftraster.c (Set_High_Precision): Add two more bits to
+ the precision. This corrects rendering of some small glyphs, for
+ example, glyph `xi' in verdana.ttf at 13 ppem. Testing with ftbench
+ on my GNU/Linux box I don't see a performance degradation.
+
+2009-06-08 Michael Zucchi <notzed@gmail.com>
+
+ Handle FT_STROKER_LINECAP_BUTT.
+ This fixes Savannah bug #26757.
+
+ * src/base/ftstroke.c (ft_stroker_cap): Implement it.
+
+2009-06-07 Harald Fernengel <harry@kdevelop.org>
+
+ Fix some potential out-of-memory crashes.
+
+ * src/base/ftobjs.c (ft_glyphslot_done): Check `slot->internal'.
+ * src/base/ftstream.c (FT_Stream_ReleaseFrame): Check `stream'.
+ * src/truetype/ttinterp.c (TT_New_Context): Avoid double-free of
+ `exec' in case of failure.
+
+2009-06-07 Werner Lemberg <wl@gnu.org>
+
+ Simplify math.
+ Suggested by Alexei Podtelezhnikov <apodtele@gmail.com>.
+
+ * src/raster/ftraster.c (Vertical_Sweep_Drop, Horizontal_Sweep_Drop,
+ Horizontal_Gray_Sweep_Drop): Do it.
+
+2009-06-04 Werner Lemberg <wl@gnu.org>
+
+ Preparation for fixing scan conversion rules 4 and 6.
+
+ * src/raster/ftraster.c (TFlow): Replace enumeration with...
+ (Flow_Up): This macro.
+ (TProfile): Replace `flow' member with `flags' bit field.
+ Update all affected code.
+
+2009-05-29 James Cloos <cloos@jhcloos.com>
+
+ Enable autohinting for glyphs rotated by multiples of 90°.
+
+ * src/base/ftobjs.c (FT_Load_Glyph): Alter check for permitted
+ matrices to allow rotations by multiples of 90°, not only unrotated,
+ possibly slanted matrices.
+
+2009-05-28 Werner Lemberg <wl@gnu.org>
+
+ Remove compiler warning.
+ Reported by Krzysztof Kowalczyk <kkowalczyk@gmail.com>.
+
+ * src/autofit/aflatin2.c (af_latin2_hint_edges): Move declaration of
+ `n_edges' into `#if' block.
+
+2009-05-28 Werner Lemberg <wl@gnu.org>
+
+ Make compilation work with FT_CONFIG_OPTION_USE_ZLIB not defined.
+ Reported by Krzysztof Kowalczyk <kkowalczyk@gmail.com>.
+
+ * src/pcf/pcfdrivr.c (PCF_Face_Init) [!FT_CONFIG_OPTION_USE_ZLIB]:
+ Make it work.
+ Simplify #ifdef logic.
+
+2009-05-22 Werner Lemberg <wl@gnu.org>
+
+ Improve b/w rasterizer.
+ Problem reported by Krzysztof Kotlenga <pocek@users.sf.net>.
+
+ * src/raster/raster.c (Vertical_Sweep_Drop, Horizontal_Sweep_Drop,
+ Horizontal_Gray_Sweep_Drop): For smart drop-out mode, if
+ intersections are equally distant relative to next pixel center,
+ select the left pixel, not the right one.
+
+2009-05-19 Werner Lemberg <wl@gnu.org>
+
+ Fix Savannah bug #26600.
+
+ * src/type42/t42parse.c (t42_load_keyword): Handle
+ T1_FIELD_LOCATION_FONT_EXTRA.
+
+2009-04-30 Werner Lemberg <wl@gnu.org>
+
+ Document recent changes to ftview.
+
+ * docs/CHANGES: Do it.
+
+2009-04-27 Werner Lemberg <wl@gnu.org>
+
+ autohinter: Don't change digit widths if all widths are the same.
+ This fixes FreeDesktop bug #21197.
+
+ * src/autofit/afglobal.c (AF_DIGIT): New macro.
+ (af_face_globals_compute_script_coverage): Mark ASCII digits in
+ `glyph_scripts' array.
+ (af_face_globals_get_metrics): Updated.
+ (af_face_globals_is_digit): New function.
+ * src/autofit/afglobal.h: Updated.
+ (AF_ScriptMetricsRec): Add `digits_have_same_width' flag.
+
+ * src/autofit/aflatin.c: Include FT_ADVANCES_H.
+ (af_latin_metrics_check_digits): New function.
+ (af_latin_metrics_init): Use it.
+ * src/autofit/aflatin.h: Updated.
+ * src/autofit/afcjk.c (af_cjk_metrics_init): Updated.
+
+ * src/autofit/aflatin2.c: Similar changes as with aflatin.c.
+
+ * src/autofit/afloader.c (af_loader_load_g): Test digit width.
+
+ * docs/CHANGES: Document it.
+
+2009-04-26 Werner Lemberg <wl@gnu.org>
+
+ Make ftgrays compile with _STANDALONE_ and FT_STATIC_RASTER again.
+ Problems reported by suyu@cooee.cn.
+
+ * src/smooth/ftgrays.c (FT_DEFINE_OUTLINE_FUNCS,
+ FT_DEFINE_RASTER_FUNCS) [_STANDALONE_]: Define.
+ [!_STANDALONE_]: Include ftspic.h only here.
+ (ras): Define/declare after definition of `TWorker'.
+ Use `RAS_VAR_' where necessary.
+
+2009-04-21 Karl Berry <karl@gnu.org>
+
+ Fix AC_CHECK_FT2.
+
+ * builds/unix/freetype2.m4: Only check PATH for freetype-config if
+ we did not already find it from a prefix option.
+
+2009-04-05 Oran Agra <oran@monfort.co.il>
+
+ Add #error to modules and files that do not support PIC yet.
+
+ When FT_CONFIG_OPTION_PIC is defined the following files will
+ create #error:
+ * src/bdf/bdfdrivr.h
+ * src/cache/ftcmanag.c
+ * src/cid/cidriver.h
+ * src/gxvalid/gxvmod.h
+ * src/gzip/ftgzip.c
+ * src/lzw/ftlzw.c
+ * src/otvalid/otvmod.h
+ * src/pcf/pcfdrivr.h
+ * src/pfr/pfrdrivr.h
+ * src/psaux/psauxmod.h
+ * src/type1/t1driver.h
+ * src/type42/t42drivr.h
+ * src/winfonts/winfnt.h
+
+2009-04-05 Oran Agra <oran@monfort.co.il>
+
+ Position Independent Code (PIC) support in autofit module.
+
+ * include/freetype/internal/autohint.h add macros to init
+ instances of FT_AutoHinter_ServiceRec.
+
+ * src/autofit/afmodule.h declare autofit_module_class
+ using macros from ftmodapi.h,
+ when FT_CONFIG_OPTION_PIC is defined create and destroy
+ functions will be declared.
+ * src/autofit/afmodule.c when FT_CONFIG_OPTION_PIC is defined
+ af_autofitter_service and autofit_module_class structs
+ will have functions to init or create and destroy them
+ instead of being allocated in the global scope.
+ And macros will be used from afpic.h in order to access them.
+
+ * src/autofit/aftypes.h add macros to init and declare
+ instances of AF_ScriptClassRec.
+
+ * src/autofit/afcjk.h declare af_cjk_script_class
+ using macros from aftypes.h,
+ when FT_CONFIG_OPTION_PIC is defined init function will be declared.
+ * src/autofit/afcjk.c when FT_CONFIG_OPTION_PIC is defined
+ af_cjk_script_class struct will have function to init it instead of
+ being allocated in the global scope.
+
+ * src/autofit/afdummy.h declare af_dummy_script_class
+ using macros from aftypes.h,
+ when FT_CONFIG_OPTION_PIC is defined init function will be declared.
+ * src/autofit/afdummy.c when FT_CONFIG_OPTION_PIC is defined
+ af_dummy_script_class struct will have function to init it instead of
+ being allocated in the global scope.
+
+ * src/autofit/afindic.h declare af_indic_script_class
+ using macros from aftypes.h,
+ when FT_CONFIG_OPTION_PIC is defined init function will be declared.
+ * src/autofit/afindic.c when FT_CONFIG_OPTION_PIC is defined
+ af_indic_script_class struct will have function to init it instead of
+ being allocated in the global scope.
+
+ * src/autofit/aflatin.h declare af_latin_script_class
+ using macros from aftypes.h,
+ when FT_CONFIG_OPTION_PIC is defined init function will be declared.
+ * src/autofit/aflatin.c when FT_CONFIG_OPTION_PIC is defined
+ af_latin_script_class struct will have function to init it instead of
+ being allocated in the global scope.
+ Change af_latin_blue_chars to be PIC-compatible by being a two
+ dimensional array rather than array of pointers.
+
+
+ * src/autofit/aflatin2.h declare af_latin2_script_class
+ using macros from aftypes.h,
+ when FT_CONFIG_OPTION_PIC is defined init function will be declared.
+ * src/autofit/aflatin2.c when FT_CONFIG_OPTION_PIC is defined
+ af_latin2_script_class struct will have function to init it instead of
+ being allocated in the global scope.
+ Change af_latin2_blue_chars to be PIC-compatible by being a two
+ dimensional array rather than array of pointers.
+
+ * src/autofit/afglobal.c when FT_CONFIG_OPTION_PIC is defined
+ af_script_classes array initialization was moved to afpic.c and
+ is later referred using macros defined in afpic.h.
+
+ New Files:
+ * src/autofit/afpic.h declare struct to hold PIC globals for autofit
+ module and macros to access them.
+ * src/autofit/afpic.c implement functions to allocate, destroy and
+ initialize PIC globals for autofit module.
+
+ * src/autofit/autofit.c add new file to build: afpic.c.
+ * src/autofit/jamfile add new files to FT2_MULTI build: afpic.c.
+
+2009-04-05 Oran Agra <oran@monfort.co.il>
+
+ Position Independent Code (PIC) support in pshinter module.
+
+ * include/freetype/internal/pshints.h add macros to init
+ instances of PSHinter_Interface.
+
+ * src/pshinter/pshmod.h declare pshinter_module_class
+ using macros from ftmodapi.h,
+ when FT_CONFIG_OPTION_PIC is defined create and destroy
+ functions will be declared.
+ * src/pshinter/pshmod.c when FT_CONFIG_OPTION_PIC is defined
+ pshinter_interface and pshinter_module_class structs
+ will have functions to init or create and destroy them
+ instead of being allocated in the global scope.
+ And macros will be used from pshpic.h in order to access them.
+
+ New Files:
+ * src/pshinter/pshpic.h declare struct to hold PIC globals for pshinter
+ module and macros to access them.
+ * src/pshinter/pshpic.c implement functions to allocate, destroy and
+ initialize PIC globals for pshinter module.
+
+ * src/pshinter/pshinter.c add new file to build: pshpic.c.
+ * src/pshinter/jamfile add new files to FT2_MULTI build: pshpic.c.
+
+2009-04-05 Oran Agra <oran@monfort.co.il>
+
+ Position Independent Code (PIC) support in psnames module.
+
+ * include/freetype/internal/services/svpscmap.h add macros to init
+ instances of FT_Service_PsCMapsRec.
+
+ * src/psnames/psmodule.h declare psnames_module_class
+ using macros from ftmodapi.h,
+ when FT_CONFIG_OPTION_PIC is defined create and destroy
+ functions will be declared.
+ * src/psnames/psmodule.c when FT_CONFIG_OPTION_PIC is defined
+ pscmaps_interface and pscmaps_services structs
+ and psnames_module_class array
+ will have functions to init or create and destroy them
+ instead of being allocated in the global scope.
+ And macros will be used from pspic.h in order to access them.
+
+ New Files:
+ * src/psnames/pspic.h declare struct to hold PIC globals for psnames
+ module and macros to access them.
+ * src/psnames/pspic.c implement functions to allocate, destroy and
+ initialize PIC globals for psnames module.
+
+ * src/psnames/psnames.c add new file to build: pspic.c.
+ * src/psnames/jamfile add new files to FT2_MULTI build: pspic.c.
+
+2009-04-05 Oran Agra <oran@monfort.co.il>
+
+ Position Independent Code (PIC) support in raster renderer.
+
+ * src/raster/ftrend1.h declare ft_raster1_renderer_class
+ and ft_raster5_renderer_class
+ using macros from ftrender.h,
+ when FT_CONFIG_OPTION_PIC is defined create and destroy
+ functions will be declared.
+ * src/smooth/ftrend1.c when FT_CONFIG_OPTION_PIC is defined
+ ft_raster1_renderer_class and ft_raster5_renderer_class structs
+ will have functions to init or create and destroy them
+ instead of being allocated in the global scope.
+ Macros will be used from rastpic.h in order to access
+ ft_standard_raster from the pic_container (allocated in ftraster.c).
+ In ft_raster1_render when PIC is enabled, the last letter of
+ module_name is used to verify the renderer class rather than the
+ class pointer.
+
+ * src/raster/ftraster.c when FT_CONFIG_OPTION_PIC is defined
+ ft_standard_raster struct will have function to init it
+ instead of being allocated in the global scope.
+
+ New Files:
+ * src/raster/rastpic.h declare struct to hold PIC globals for raster
+ renderer and macros to access them.
+ * src/raster/rastpic.c implement functions to allocate, destroy and
+ initialize PIC globals for raster renderer.
+
+ * src/raster/raster.c add new file to build: rastpic.c.
+ * src/raster/jamfile add new files to FT2_MULTI build: rastpic.c.
+
+2009-04-05 Oran Agra <oran@monfort.co.il>
+
+ Position Independent Code (PIC) support in smooth renderer.
+
+ * src/smooth/ftsmooth.h declare ft_smooth_renderer_class,
+ ft_smooth_lcd_renderer_class and ft_smooth_lcdv_renderer_class
+ using macros from ftrender.h,
+ when FT_CONFIG_OPTION_PIC is defined create and destroy
+ functions will be declared.
+ * src/smooth/ftsmooth.c when FT_CONFIG_OPTION_PIC is defined
+ the following structs:
+ ft_smooth_renderer_class, ft_smooth_lcd_renderer_class
+ and ft_smooth_lcdv_renderer_class
+ will have functions to init or create and destroy them
+ instead of being allocated in the global scope.
+ And macros will be used from ftspic.h in order to access
+ ft_grays_raster from the pic_container (allocated in ftgrays.c).
+
+ * src/smooth/ftgrays.h include FT_CONFIG_CONFIG_H
+ * src/smooth/ftgrays.c when FT_CONFIG_OPTION_PIC is NOT defined
+ func_interface was moved from gray_convert_glyph_inner function
+ to the global scope.
+ When FT_CONFIG_OPTION_PIC is defined
+ func_interface and ft_grays_raster structs
+ will have functions to init them
+ instead of being allocated in the global scope.
+ And func_interface will be allocated on the stack of
+ gray_convert_glyph_inner.
+
+ New Files:
+ * src/smooth/ftspic.h declare struct to hold PIC globals for smooth
+ renderer and macros to access them.
+ * src/smooth/ftspic.c implement functions to allocate, destroy and
+ initialize PIC globals for smooth renderer.
+
+ * src/smooth/smooth.c add new file to build: ftspic.c.
+ * src/smooth/jamfile add new files to FT2_MULTI build: ftspic.c.
+
+2009-04-05 Oran Agra <oran@monfort.co.il>
+
+ Position Independent Code (PIC) support in cff driver.
+
+ * include/freetype/internal/services/svcid.h add macros to init
+ instances of FT_Service_CIDRec.
+ * include/freetype/internal/services/svpsinfo.h add macros to init
+ instances of FT_Service_PsInfoRec.
+
+ * src/cff/cffcmap.h declare cff_cmap_encoding_class_rec
+ and cff_cmap_unicode_class_rec using macros from
+ ftobjs.h, when FT_CONFIG_OPTION_PIC is defined create and destroy
+ functions will be declared.
+ * src/cff/cffcmap.c when FT_CONFIG_OPTION_PIC is defined
+ the following structs:
+ cff_cmap_encoding_class_rec and cff_cmap_unicode_class_rec
+ will have functions to init or create and destroy them
+ instead of being allocated in the global scope.
+
+ * src/cff/cffdrivr.h declare cff_driver_class using macros from
+ ftdriver.h, when FT_CONFIG_OPTION_PIC is defined create and destroy
+ functions will be declared.
+ * src/cff/cffdrivr.c when FT_CONFIG_OPTION_PIC is defined
+ the following structs:
+ cff_service_glyph_dict, cff_service_ps_info, cff_service_ps_name
+ cff_service_get_cmap_info, cff_service_cid_info, cff_driver_class,
+ and cff_services array
+ will have functions to init or create and destroy them
+ instead of being allocated in the global scope.
+ And macros will be used from cffpic.h in order to access them
+ from the pic_container.
+ Use macros from cffpic.h in order to access the
+ structs allocated in cffcmap.c
+
+ * src/cff/cffobjs.c Use macros from cffpic.h in order to access the
+ structs allocated in cffcmap.c
+
+ * src/cff/parser.c when FT_CONFIG_OPTION_PIC is defined
+ implement functions to create and destroy cff_field_handlers array
+ instead of being allocated in the global scope.
+ And macros will be used from cffpic.h in order to access it
+ from the pic_container.
+
+ New Files:
+ * src/cff/cffpic.h declare struct to hold PIC globals for cff
+ driver and macros to access them.
+ * src/cff/cffpic.c implement functions to allocate, destroy and
+ initialize PIC globals for cff driver.
+
+ * src/cff/cff.c add new file to build: cffpic.c.
+ * src/cff/jamfile add new files to FT2_MULTI build: cffpic.c.
+
+2009-04-05 Oran Agra <oran@monfort.co.il>
+
+ Position Independent Code (PIC) support in sfnt driver.
+
+ * include/freetype/internal/services/svbdf.h add macros to init
+ instances of FT_Service_BDFRec.
+ * include/freetype/internal/services/svgldict.h add macros to init
+ instances of FT_Service_GlyphDictRec.
+ * include/freetype/internal/services/svpostnm.h add macros to init
+ instances of FT_Service_PsFontNameRec.
+ * include/freetype/internal/services/svsfnt.h add macros to init
+ instances of FT_Service_SFNT_TableRec.
+ * include/freetype/internal/services/svttcmap.h add macros to init
+ instances of FT_Service_TTCMapsRec.
+ * include/freetype/internal/sfnt.h add macros to init
+ instances of SFNT_Interface.
+
+ * src/sfnt/sfdriver.h declare sfnt_module_class using macros from
+ ftmodapi.h, when FT_CONFIG_OPTION_PIC is defined create and destroy
+ functions will be declared.
+ * src/sfnt/sfdriver.c when FT_CONFIG_OPTION_PIC is defined
+ the following structs:
+ sfnt_service_sfnt_table, sfnt_service_glyph_dict, sfnt_service_ps_name
+ tt_service_get_cmap_info, sfnt_service_bdf, sfnt_interface,
+ sfnt_module_class, and sfnt_services array
+ will have functions to init or create and destroy them
+ instead of being allocated in the global scope.
+ And macros will be used from sfntpic.h in order to access them
+ from the pic_container.
+
+ * src/sfnt/ttcmap.h add macros to init
+ instances of TT_CMap_ClassRec.
+ * src/sfnt/ttcmap.c when FT_CONFIG_OPTION_PIC is defined
+ the following structs:
+ tt_cmap0_class_rec, tt_cmap2_class_rec, tt_cmap4_class_rec
+ tt_cmap6_class_rec, tt_cmap8_class_rec, tt_cmap10_class_rec,
+ tt_cmap12_class_rec, tt_cmap14_class_rec and tt_cmap_classes array
+ will have functions to init or create and destroy them
+ instead of being allocated in the global scope.
+ And macros will be used from sfntpic.h in order to access them
+ from the pic_container.
+ The content of tt_cmap_classes is now described in the
+ new file 'ttcmapc.h'.
+
+ New Files:
+ * src/sfnt/sfntpic.h declare struct to hold PIC globals for sfnt
+ driver and macros to access them.
+ * src/sfnt/sfntpic.c implement functions to allocate, destroy and
+ initialize PIC globals for sfnt driver.
+ * src/sfnt/ttcmapc.h describing the content of
+ tt_cmap_classes allocated in ttcmap.c
+
+ * src/sfnt/sfnt.c add new file to build: sfntpic.c.
+ * src/sfnt/jamfile add new files to FT2_MULTI build: sfntpic.c.
+
+2009-04-05 Oran Agra <oran@monfort.co.il>
+
+ Position Independent Code (PIC) support in truetype driver.
+
+ * include/freetype/internal/services/svmm.h add macros to init
+ instances of FT_Service_MultiMastersRec.
+ * include/freetype/internal/services/svttglyf.h add macros to init
+ instances of FT_Service_TTGlyfRec.
+
+ * src/truetype/ttdriver.h declare tt_driver_class using macros from
+ ftdriver.h, when FT_CONFIG_OPTION_PIC is defined create and destroy
+ functions will be declared.
+ * src/truetype/ttdriver.c when FT_CONFIG_OPTION_PIC is defined
+ the following structs:
+ tt_service_gx_multi_masters, tt_service_truetype_glyf, tt_driver_class
+ and tt_services array,
+ will have functions to init or create and destroy them
+ instead of being allocated in the global scope.
+ And macros will be used from ttpic.h in order to access them
+ from the pic_container.
+ * src/truetype/ttobjs.c change trick_names array to be
+ PIC-compatible by being a two dimensional array rather than array
+ of pointers.
+
+ New Files:
+ * src/truetype/ttpic.h declare struct to hold PIC globals for truetype
+ driver and macros to access them.
+ * src/truetype/ttpic.c implement functions to allocate, destroy and
+ initialize PIC globals for truetype driver.
+
+ * src/truetype/truetype.c add new file to build: ttpic.c.
+ * src/truetype/jamfile add new files to FT2_MULTI build: ttpic.c.
+
+2009-04-05 Oran Agra <oran@monfort.co.il>
+
+ Position Independent Code (PIC) support and infrastructure in base.
+
+ * include/freetype/config/ftoption.h add FT_CONFIG_OPTION_PIC
+ * include/freetype/internal/ftobjs.h Add pic_container member to
+ FT_LibraryRec.
+ Add macros to declare and init instances of FT_CMap_ClassRec.
+ Add macros to init instances of FT_Outline_Funcs and FT_Raster_Funcs.
+ Add macros to declare, allocate and initialize modules
+ (FT_Module_Class).
+ Add macros to declare, allocate and initialize renderers
+ (FT_Renderer_Class).
+ Add macro to init instances of FT_Glyph_Class.
+ Add macros to declare, allocate and initialize drivers
+ (FT_Driver_ClassRec).
+ * include/freetype/internal/ftpic.h new file to declare the
+ FT_PIC_Container struct and the functions to allocate and destroy it.
+ * include/freetype/internal/ftserv.h add macros to allocate and
+ destroy arrays of FT_ServiceDescRec.
+ * include/freetype/internal/internal.h define macro to include
+ ftpic.h.
+
+ New Files:
+ * src/base/ftpic.c implement functions to allocate and destroy the
+ global pic_container.
+ * src/base/basepic.h declare struct to hold PIC globals for base and
+ macros to access them.
+ * src/base/basepic.c implement functions to allocate, destroy and
+ initialize PIC globals for base.
+
+ * src/base/ftinit.c when FT_CONFIG_OPTION_PIC is defined implement
+ functions that allocate and destroy ft_default_modules according to
+ FT_CONFIG_MODULES_H in the pic_container instead of the global scope
+ and use macro from basepic.h to access it.
+ * src/base/ftobjs.c add calls to the functions that allocate and
+ destroy the global pic_container when the library is created and
+ destroyed.
+
+ * src/base/jamfile add new files to FT2_MULTI build:
+ ftpic.c and basepic.c.
+ * src/base/ftbase.c add new files to build:
+ ftpic.c and basepic.c.
+
+ * src/base/ftglyph.c when FT_CONFIG_OPTION_PIC is defined
+ ft_bitmap_glyph_class and ft_outline_glyph_class will be allocated
+ in the pic_container instead of the global scope and use macros from
+ basepic.h to access them.
+ * src/base/ftbbox.c allocate bbox_interface struct on the stack
+ instead of the global scope when FT_CONFIG_OPTION_PIC is defined.
+ * src/base/ftstroke.c access ft_outline_glyph_class allocated in
+ ftglyph.c via macros from basepic.h
+
+2009-04-05 Oran Agra <oran@monfort.co.il>
+
+ Preparing changes in cff parser later needed for PIC version.
+
+ * src/cff/cffload.c, src/cff/cffload.h, src/cff/cffobjs.c,
+ src/cff/cffparse.c, src/cff/cffparse.h: Add library pointer to
+ 'CFF_ParserRec' set by `cff_parser_init'.
+ Route library pointer from 'cff_face_init' to 'cff_subfont_load'
+ for `cff_parser_init'.
+
+ * src/cff/cffparse.c (CFF_Field_Handler): Move it to...
+ * src/cff/cffparse.h: This file, to be used by other C files.
+
+2009-04-05 Oran Agra <oran@monfort.co.il>
+
+ Minor change in ftstroke.c.
+
+ * src/base/ftstroke.c (FT_StrokerRec): Replace `memory' member with
+ `library' needed for PIC version.
+ Update all callers.
+
+2009-04-04 Werner Lemberg <wl@gnu.org>
+
+ ftnames.c -> ftsnames.c
+
+ * src/base/ftnames.c: Rename to...
+ * src/base/ftsnames.c: This.
+ * src/base/Jamfile, src/base/rules.mk, src/base/ftbase.c: Updated.
+
+2009-04-04 Werner Lemberg <wl@gnu.org>
+
+ Add support for cmap type 13.
+
+ * devel/ftoption.h, include/freetype/config/ftoption.h
+ (TT_CONFIG_CMAP_FORMAT_13): New macro.
+
+ * src/sfnt/ttcmap.c (TT_CMap13Rec, tt_cmap13_init,
+ tt_cmap13_validate, tt_cmap13_char_index, tt_cmap13_char_next,
+ tt_cmap13_get_info, tt_cmap13_char_map_def_binary,
+ tt_cmap14_class_rec): New functions and structures for cmap 13
+ support.
+ (tt_cmap_classes): Register tt_cmap13_class_rec.
+
+ * docs/CHANGES: Mention cmap 13 support.
+
+2009-04-01 Werner Lemberg <wl@gnu.org>
+
+ Ignore empty contours in CFF glyphs.
+
+ Problem reported by Albert Astals Cid <aacid@kde.org>.
+
+ * src/cff/cffgload.c (cff_builder_close_contour): Synchronize with
+ t1_builder_close_contour.
+
+2009-03-21 Werner Lemberg <wl@gnu.org>
+
+ Another redundant header inclusion.
+
+ * src/truetype/ttgxvar.c: Fix Ghostscript Coverity issue #4041.
+
+2009-03-21 Werner Lemberg <wl@gnu.org>
+
+ Remove redundant header inclusions.
+
+ This covers many Ghostscript Coverity issues.
+
+ * src/*: Do it.
+
+2009-03-21 Werner Lemberg <wl@gnu.org>
+
+ Fix Ghostscript Coverity issue #3904.
+
+ * src/truetype/ttgxvar.c (ft_var_readpackedpoints): Protect against
+ invalid values of `runcnt'.
+
+2009-03-20 Werner Lemberg <wl@gnu.org>
+
+ Fix `make multi' run.
+
+ * src/smooth/ftsmooth.h: Include FT_INTERNAL_DEBUG_H.
+
+2009-03-20 Werner Lemberg <wl@gnu.org>
+
+ Fix Savannah bug #25923.
+
+ * src/cache/ftccmap.c (FTC_CMAP_HASH): Fix typo.
+
+2009-03-20 Werner Lemberg <wl@gnu.org>
+
+ Protect against too large glyphs.
+
+ Problem reported by Tavis Ormandy <taviso@google.com>.
+
+ * src/smooth/ftsmooth.c (ft_smooth_render_generic): Don't allow
+ `pitch' or `height' to be larger than 0xFFFF.
+
+2009-03-20 Werner Lemberg <wl@gnu.org>
+ Tavis Ormandy <taviso@google.com>
+
+ Fix validation for various cmap table formats.
+
+ * src/sfnt/ttcmap.c (tt_cmap8_validate, tt_cmap10_validate,
+ tt_cmap12_validate): Check `length' correctly.
+ (tt_cmap_14_validate): Check `length' and `numMappings' correctly.
+
+2009-03-20 Werner Lemberg <wl@gnu.org>
+
+ Protect against malformed compressed data.
+
+ * src/lzw/ftzopen.c (ft_lzwstate_io): Test whether `state->prefix' is
+ zero.
+
+2009-03-20 Werner Lemberg <wl@gnu.org>
+
+ Protect against invalid SID values in CFFs.
+
+ Problem reported by Tavis Ormandy <taviso@google.com>.
+
+ * src/cff/cffload.c (cff_charset_load): Reject SID values larger
+ than 64999.
+
+2009-03-19 Vincent Richomme <richom.v@free.fr>
+
+ Update WinCE Visual C project files.
+
+ * builds/wince/vc2005-ce/freetype.vcproj,
+ builds/wince/vc2008-ce/freetype.vcproj: Add missing base extension
+ files.
+
+2009-03-19 Werner Lemberg <wl@gnu.org>
+
+ Remove unused Win32 code.
+
+ * builds/wince/ftdebug.c: Remove code guarded with `!_WIN32_WCE'.
+ Since Win32 is handled separately this is no longer needed.
+
+2009-03-19 Vincent Richomme <richom.v@free.fr>
+
+ Make `gzip' module compile on WinCE.
+
+ * src/gzip/zconf.h [_WIN32_WCE]: Define NO_ERRNO_H.
+
+2009-03-19 Werner Lemberg <wl@gnu.org>
+
+ Remove unused WinCE code.
+
+ * builds/win32/ftdebug.c: Remove code guarded with `_WIN32_WCE'.
+ Since WinCE is handled separately this is no longer needed.
+
+2009-03-16 Werner Lemberg <wl@gnu.org>
+
+ docmaker: Don't ignore single-line code blocks.
+
+ * src/tools/docmaker/content.py (DocBlock::_init__): Fix change from
+ 2009-01-31.
+
+2009-03-15 Steve Langasek <steve.langasek@canonical.com>
+
+ Use __asm__ for declaring assembly instead of asm.
+
+ * builds/unix/ftconfig.in (FT_MulFix_arm): Use __asm__ instead of
+ asm on arm, fixing a build failure on armel with -pedantic.
+
+2009-03-14 Werner Lemberg <wl@gnu.org>
+
+ Fix valgrind warning.
+
+ * src/sfnt/ttsbit0.c (tt_sbit_decoder_load_bit_aligned): Don't read
+ past the end of the frame.
+
+2009-03-12 Werner Lemberg <wl@gnu.org>
+
+ * Version 2.3.9 released.
+ =========================
+
+
+ Tag sources with `VER-2-3-9'.
+
+2009-03-12 Werner Lemberg <wl@gnu.org>
+
+ * builds/unix/freetype2.in: Move @FT2_EXTRA_LIBS@ to `Libs.private'.
+
+2009-03-12 Werner Lemberg <wl@gnu.org>
+
+ Fix some FreeType Coverity issues as reported for Ghostscript.
+
+ * src/base/ftobjs.c (FT_New_Face, FT_New_Memory_Face): Initialize
+ `args.stream' (#3874, #3875).
+ (open_face_PS_from_sfnt_stream): Improve error management (#3786).
+ * src/base/ftmm.c (ft_face_get_mm_service): Fix check of `aservice'
+ (#3870).
+ * src/base/ftstroke.c (ft_stroke_border_get_counts): Remove dead
+ code (#3790).
+ * src/base/ftrfork.c (raccess_guess_apple_generic): Check error
+ value of `FT_Stream_Skip' (#3784).
+
+ * src/type1/t1gload.c (T1_Load_Glyph): Check `size' before accessing
+ it (#3872)
+
+ * src/pcf/pcfdrivr.c (PCF_Glyph_Load): Check `face' before accessing
+ it (#3871).
+ * src/pcf/pcfread.c (pcf_get_metrics): Handle return value of
+ `pcf_get_metric' (#3789, #3782).
+ (pcf_get_properties): Use FT_STREAM_SKIP (#3783).
+
+ * src/cache/ftcmanag.c (FTC_Manager_RegisterCache): Fix check of
+ `acache' (#3797)
+
+ * src/cff/cffdrivr.c (cff_ps_get_font_info): Fix check of `cff'
+ (#3796).
+ * src/cff/cffgload.c (cff_decoder_prepare): Check `size' (#3795).
+ * src/cff/cffload.c (cff_index_get_pointers): Add comment (#3794).
+
+ * src/bdf/bdflib.c (_bdf_add_property): Check `fp->value.atom'
+ (#3793).
+ (_bdf_parse_start): Add comment (#3792).
+
+ * src/raster/ftraster.c (Finalize_Profile_Table): Check
+ `ras.fProfile' (#3791).
+
+ * src/sfnt/ttsbit.c (Load_SBit_Image): Use FT_STREAM_SKIP (#3785).
+
+ * src/gzip/ftgzip.c (ft_gzip_get_uncompressed_size): Properly ignore
+ seek error (#3781).
+
+2009-03-11 Michael Toftdal <toftdal@gmail.com>
+
+ Extend CID service functions to handle CID-keyed CFFs as CID fonts.
+
+ * include/freetype/ftcid.h (FT_Get_CID_Is_Internally_CID_keyed,
+ FT_Get_CID_From_Glyph_Index): New functions.
+
+ * include/freetype/internal/services/svcid.h
+ (FT_CID_GetIsInternallyCIDKeyedFunc,
+ FT_CID_GetCIDFromGlyphIndexFunc): New function typedefs.
+ (CID Service): Use them.
+
+ * src/base/ftcid.c: Include FT_CID_H.
+ (FT_Get_CID_Is_Internally_CID_keyed, FT_Get_CID_From_Glyph_Index):
+ New functions.
+
+ * src/cff/cffdrivr.c (cff_get_is_cid, cff_get_cid_from_glyph_index):
+ New functions.
+ (cff_service_cid_info): Add them.
+ * src/cff/cffload.c (cff_font_load): Don't free `font->charset.sids'
+ -- it is needed for access as a CID-keyed font. It gets deleted
+ later on.
+
+ * src/cid/cidriver.c (cid_get_is_cid, cid_get_cid_from_glyph_index):
+ New functions.
+ (cid_service_cid_info): Add them.
+
+ * docs/CHANGES: Updated.
+
+2009-03-11 Bram Tassyns <bramt@enfocus.be>
+
+ Fix Savannah bug #25597.
+
+ * src/cff/cffparse.c (cff_parse_real): Don't allow fraction_length
+ to become larger than 9.
+
+2009-03-11 Werner Lemberg <wl@gnu.org>
+
+ Fix Savannah bug #25814.
+
+ * builds/unix/freetype2.in: As suggested in the bug report, move
+ @LIBZ@ to `Libs.private'.
+
+2009-03-11 Werner Lemberg <wl@gnu.org>
+
+ Fix Savannah bug #25781.
+ We now simply check for a valid `offset', no longer handling `delta
+ = 1' specially.
+
+ * src/sfnt/ttcmap.c (tt_cmap4_validate): Don't check `delta' for
+ last segment.
+ (tt_cmap4_set_range, tt_cmap4_char_map_linear,
+ tt_cmap4_char_map_binary): Check offset.
+
+2009-03-11 Werner Lemberg <wl@gnu.org>
+
+ * src/base/Jamfile: Fix handling of ftadvanc.c.
+ Reported by Oran Agra <oran@monfort.co.il>.
+
+2009-03-10 Vincent Richomme <richom.v@free.fr>
+
+ Restructure Win32 and Wince compiler support.
+
+ * src/builds/win32: Remove files for WinCE.
+ Move VC 2005 support to a separate directory.
+ Add directory for VC 2008 support.
+
+ * src/builds/wince: New directory hierarchy for WinCE compilers
+ (VC 2005 and VC 2008).
+
+2009-03-09 Werner Lemberg <wl@gnu.org>
+
+ More preparations for 2.3.9 release.
+
+ * docs/CHANGES: Updated.
+
+ * Jamfile, README: s/2.3.8/2.3.9/, s/238/239/.
+
+2009-03-09 Werner Lemberg <wl@gnu.org>
+
+ * src/sfnt/rules.mk (SFNT_DRV_H): Add ttsbit0.c.
+
+2009-03-09 Alexey Kryukov <anagnost@yandex.ru>
+
+ Fix handling of EBDT formats 8 and 9 (part 2).
+
+ This patch fixes the following problems in ttsbit0.c:
+
+ . Bitmaps for compound glyphs were never allocated.
+
+ . `SBitDecoder' refused to load metrics if some other metrics have
+ already been loaded. This condition certainly makes no sense for
+ recursive calls, so I've just disabled it. Another possibility
+ would be resetting `decoder->metrics_loaded' to false before
+ loading each composite component. However, we must restore the
+ original metrics after finishing the recursion; otherwise we can
+ get a misaligned glyph.
+
+ . `tt_sbit_decoder_load_bit_aligned' incorrectly handled `x_pos',
+ causing some glyph components to be shifted too far to the right
+ (especially noticeable for small sizes).
+
+ Note that support for grayscale bitmaps (not necessarily compound) is
+ completely broken in ttsbit0.c.
+
+ * src/sfnt/tt_sbit_decoder_load_metrics: Always load metrics.
+ (tt_sbit_decoder_load_bit_aligned): Handle `x_pos' correctly in case
+ of `h == height'.
+ (tt_sbit_decoder_load_compound): Reset metrics after loading
+ components.
+ Allocate bitmap.
+
+2009-03-09 Werner Lemberg <wl@gnu.org>
+
+ * builds/unix/configure.raw (version_info): Set to 9:20:3.
+
+2009-03-03 David Turner <david@freetype.org>
+
+ Protect SFNT kerning table parser against malformed tables.
+
+ This closes Savannah BUG #25750.
+
+ * src/sfnt/ttkern.c (tt_face_load_kern, tt_face_get_kerning): Fix a
+ bug where a malformed table would be successfully loaded but later
+ crash the engine during parsing.
+
+2009-03-03 David Turner <david@freetype.org>
+
+ Update documentation and bump version number to 2.3.9.
+
+ * include/freetype/freetype.h: Bump patch version to 9.
+ * docs/CHANGES: Document the ABI break in 2.3.8.
+ * docs/VERSION.DLL: Update version numbers table for 2.3.9.
+
+2009-03-03 David Turner <david@freetype.org>
+
+ Remove ABI-breaking field in public PS_InfoFontRec definition.
+
+ Instead, we define a new internal PS_FontExtraRec structure to
+ hold the additional field, then place it in various internal
+ positions of the corresponding FT_Face derived objects.
+
+ * include/freetype/t1tables.h (PS_FontInfoRec): Remove the
+ `fs_type' field from the public structure.
+ * include/freetype/internal/psaux.h (T1_FieldLocation): New
+ enumeration `T1_FIELD_LOCATION_FONT_EXTRA'.
+ * include/freetype/internal/t1types.h (PS_FontExtraRec): New
+ structure.
+ (T1_FontRec, CID_FaceRec): Add it.
+
+ * src/cid/cidload.c (cid_load_keyword): Handle
+ T1_FIELD_LOCATION_FONT_EXTRA.
+ * src/cid/cidtoken.h, src/type1/t1tokens.h, src/type42/t42parse.c:
+ Adjust FT_STRUCTURE and T1CODE properly to handle `FSType'.
+ * src/type1/t1load.c (t1_load_keyword): Handle
+ T1_FIELD_LOCATION_FONT_EXTRA.
+
+ * include/freetype/internal/services/svpsinfo.h (PsInfo service):
+ Add `PS_GetFontExtraFunc' function typedef.
+
+ * src/base/ftfstype.c: Include FT_INTERNAL_SERVICE_H and
+ FT_SERVICE_POSTSCRIPT_INFO_H.
+ (FT_Get_FSType_Flags): Use POSTSCRIPT_INFO service.
+
+ * src/cff/cffdrivr.c (cff_service_ps_info): Updated.
+ * src/cid/cidriver.c (cid_ps_get_font_extra): New function.
+ (cid_service_ps_info): Updated.
+ * src/type1/t1driver.c (t1_ps_get_font_extra): New function.
+ (t1_service_ps_info): Updated.
+ * src/type42/t42drivr.c (t42_ps_get_font_extra): New function.
+ (t42_service_ps_info): Updated.
+
+2009-03-02 Alexey Kryukov <anagnost@yandex.ru>
+
+ Fix handling of EBDT formats 8 and 9.
+
+ The main cycle in `blit_sbit' makes too many iterations: it actually
+ needs the count of lines in the source bitmap rather than in the
+ target image.
+
+ * src/sfnt/ttsbit.c (blit_sbit) [FT_CONFIG_OPTION_OLD_INTERNALS]:
+ Add parameter `source_height' and use it for main loop.
+ (Load_SBit_Single) [FT_CONFIG_OPTION_OLD_INTERNALS]: Updated.
+
+2009-02-23 Werner Lemberg <wl@gnu.org>
+
+ Fix Savannah bug #25669.
+
+ * src/base/ftadvanc.h (FT_Get_Advances): Fix serious typo.
+
+ * src/base/ftobjs.c (FT_Select_Metrics, FT_Request_Metrics): Fix
+ scaling factor for non-scalable fonts.
+
+ * src/cff/cffdrivr.c (cff_get_advances): Use correct advance width
+ value to prevent incorrect scaling.
+
+ * docs/CHANGES: Document it.
+
+2009-02-15 Matt Godbolt <matt@godbolt.org>
+
+ Fix Savannah bug #25588.
+
+ * builds/unix/ftconfig.in (FT_MulFix_arm): Use correct syntax for
+ `orr' instruction.
+
+2009-02-11 Werner Lemberg <wl@gnu.org>
+
+ * src/truetype/ttobjs.c (tt_check_trickyness): Add `DFKaiShu'.
+ Reported by David Bevan <dbevan@emtex.com>.
+
+2009-02-09 Werner Lemberg <wl@gnu.org>
+
+ Fix Savannah bug #25495.
+
+ * src/sfnt/sfobjs.c (sfnt_load_face): Test for bitmap strikes before
+ setting metrics and bbox values. This ensures that the check for a
+ font with neither a `glyf' table nor bitmap strikes can be performed
+ early enough to set metrics and bbox values too.
+
+2009-02-04 Werner Lemberg <wl@gnu.org>
+
+ Fix Savannah bug #25480.
+
+ * builds/unix/freetype-config.in: For --ftversion, don't use $prefix
+ but $includedir.
+
+2009-01-31 Werner Lemberg <wl@gnu.org>
+
+ Minor docmaker improvements.
+
+ * src/tools/docmaker/content.py (DocBlock::__init__): Ignore empty
+ code blocks.
+
+2009-01-25 Werner Lemberg <wl@gnu.org>
+
+ Fix SCANCTRL handling in TTFs.
+ Problem reported by Alexey Kryukov <anagnost@yandex.ru>.
+
+ * src/truetype/ttinterp.c (Ins_SCANCTRL): Fix threshold handling.
+
+2009-01-23 Werner Lemberg <wl@gnu.org>
+
+ Move FT_Get_FSType_Flags to a separate file.
+ Problem reported by Mickey Gabel <mickey@monfort.co.il>.
+
+ * src/base/ftobjs.c (FT_Get_FSType_Flags): Move to...
+ * src/base/ftfstype.c: This new file.
+
+ * modules.cfg (BASE_EXTENSION): Add ftfstype.c.
+
+ * docs/INSTALL.ANY: Updated.
+
+ * builds/mac/*.txt, builds/amiga/*makefile*,
+ builds/win32/{visualc,visualce}/freetype.*, builds/symbian/*:
+ Updated.
+
+2009-01-22 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ * builds/unix/ftsystem.c (FT_Stream_Open): Fix 2 error
+ messages ending without "\n".
+
+2009-01-22 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ Fix Savannah bug #25347.
+
+ * src/base/ftobjs.c (open_face_PS_from_sfnt_stream): Rewind
+ the stream to the original position passed to this function,
+ when ft_lookup_PS_in_sfnt_stream() failed.
+ (Mac_Read_sfnt_Resource): Rewind the stream to the head of
+ sfnt resource body, when open_face_PS_from_sfnt_stream()
+ failed.
+
+2009-01-19 Michael Lotz <mmlr@mlotz.ch>
+
+ Fix Savannah bug #25355.
+
+ * include/freetype/config/ftconfig.h (FT_MulFix_i386): Make
+ assembler code work with gcc 2.95.3 (as used by the Haiku project).
+ Add `cc' register to the clobber list.
+
+2009-01-18 Werner Lemberg <wl@gnu.org>
+
+ Protect FT_Get_Next_Char.
+
+ * src/sfnt/ttcmap.c (tt_cmap4_set_range): Apply fix similar to
+ change from 2008-07-22.
+
+ Patch from Ronen Ghoshal <rghoshal@emtex.com>.
+
+2009-01-18 Werner Lemberg <wl@gnu.org>
+
+ Implement FT_Get_Name_Index for SFNT driver.
+
+ * src/sfnt/sfdriver.c (sfnt_get_name_index): New function.
+ (sfnt_service_glyph_dict): Use it.
+
+ Problem reported by Truc Truong <tructv@necsv.com>.
+
+2009-01-18 Werner Lemberg <wl@gnu.org>
+
+ * include/freetype/ftstroke.h (FT_Outline_GetInsideBorder): Fix
+ documentation. Problem reported by Truc Truong <tructv@necsv.com>.
+
+ * docs/CHANGES: Updated.
+
+2009-01-14 Werner Lemberg <wl@gnu.org>
+
+ * Version 2.3.8 released.
+ =========================
+
+
+ Tag sources with `VER-2-3-8'.
+
+ * docs/VERSION.DLL: Update documentation and bump version number to
+ 2.3.8.
+
+ * README, Jamfile (RefDoc), builds/win32/visualc/index.html,
+ builds/win32/visualc/freetype.dsp,
+ builds/win32/visualc/freetype.vcproj,
+ builds/win32/visualce/index.html,
+ builds/win32/visualce/freetype.dsp,
+ builds/win32/visualce/freetype.vcproj: s/2.3.7/2.3.8/, s/237/238/.
+
+ * include/freetype/freetype.h (FREETYPE_PATCH): Set to 8.
+
+ * builds/unix/configure.raw (version_info): Set to 9:19:3.
+
+ * docs/release: Updated.
+
+2009-01-14 Werner Lemberg <wl@gnu.org>
+
+ * builds/toplevel.mk (dist): Compress better.
+
+2009-01-13 Werner Lemberg <wl@gnu.org>
+
+ * src/base/ftobjs.c (FT_Get_FSType_Flags): Cast for compilation
+ with C++.
+
+2009-01-13 Werner Lemberg <wl@gnu.org>
+
+ Don't use stdlib.h and friends directly.
+ Reported by Mickey Gabel <mickey@monfort.co.il>.
+
+ * src/base/ftdbgmem.c: s/<stdlib.h>/FT_CONFIG_STANDARD_LIBRARY_H/.
+
+ * src/gzip/ftgzip.c, src/lzw/ftlzw.c, src/raster/ftmisc.h:
+ s/<string.h>/FT_CONFIG_STANDARD_LIBRARY_H/.
+
+ * src/autofit/aftypes.h, src/autofit/afhints.c,
+ src/pshinter/pshalgo.c: s/<stdio.h>/FT_CONFIG_STANDARD_LIBRARY_H/
+
+ * src/lzw/ftlzw.c, src/base/ftdbgmem.c: Don't include stdio.h.
+
+2009-01-12 Werner Lemberg <wl@gnu.org>
+
+ Avoid compiler warnings.
+
+ * */*: s/do ; while ( 0 )/do { } while ( 0 )/.
+ Reported by Sean McBride <sean@rogue-research.com>.
+
+2009-01-12 Werner Lemberg <wl@gnu.org>
+
+ Fix stdlib dependencies.
+
+ Problem reported by Mickey Gabel <mickey@monfort.co.il>.
+
+ * include/freetype/config/ftstdlib.h (ft_exit): Removed. Unused.
+
+ * src/autofit/afhints.c, src/base/ftlcdfil.c, src/smooth/ftsmooth.c:
+ s/memcpy/ft_memcpy/.
+ * src/psaux/t1decode.c: s/memset/ft_memset/, s/memcpy/ft_memcpy/.
+
+2009-01-11 Werner Lemberg <wl@gnu.org>
+
+ * docs/formats.txt: Add link to PCF specification.
+
+ * include/freetype/ftbdf.h (FT_Get_BDF_Property): Improve
+ documentation.
+
+2009-01-09 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ * src/base/ftadvanc.c (_ft_face_scale_advances, FT_Get_Advance,
+ FT_Get_Advances): Change the type of load_flags from FT_UInt32 to
+ FT_Int32, to match with the flags for FT_Load_Glyph().
+ * src/cff/cffdrivr.c (cff_get_advances): Ditto.
+ * src/truetype/ttdriver.c (tt_get_advances): Ditto.
+ * include/freetype/ftadvanc.h (FT_Get_Advance, FT_Get_Advances):
+ Ditto.
+ * include/freetype/internal/ftdriver.h (FT_Face_GetAdvancesFunc):
+ Ditto.
+
+2009-01-09 Daniel Zimmermann <netzimme@aol.com>
+
+ * src/gxvalid/gxvmort.c (gxv_mort_feature_validate): Fix wrong
+ length check. From Savannah patch #6682.
+
+2009-01-09 Werner Lemberg <wl@gnu.org>
+
+ Fix problem with T1_FIELD_{NUM,FIXED}_TABLE2.
+
+ * src/psaux/psobjs.c (ps_parser_load_field_table): Don't handle
+ `count_offset' if it is zero (i.e., unused). Otherwise, the first
+ element of the structure which holds the data is erroneously
+ modified. Problem reported by Chi Nguyen <chint@necsv.com>.
+
+2009-01-09 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ * src/base/ftadvanc.c (_ft_face_scale_advances, FT_Get_Advance,
+ FT_Get_Advances): Extend the type of load_flags from FT_UInt to
+ FT_UInt32, to pass 32-bit flags on 16bit platforms.
+ * src/cff/cffdrivr.c (cff_get_advances): Ditto.
+ * src/truetype/ttdriver.c (tt_get_advances): Ditto.
+ * include/freetype/ftadvanc.h (FT_Get_Advance, FT_Get_Advances):
+ Ditto.
+ * include/freetype/internal/ftdriver.h (FT_Face_GetAdvancesFunc):
+ Ditto.
+
+2009-01-09 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ * src/base/ftobjs.c (FT_Done_Library): Issue an error message when
+ FT_Done_Face() cannot free all faces. If the list of the opened
+ faces includes broken face which FT_Done_Face() cannot free,
+ FT_Done_Library() retries FT_Done_Face() and it can fall into
+ an endless loop. See the discussion:
+ https://lists.gnu.org/archive/html/freetype-devel/2008-09/msg00047.html
+ https://lists.gnu.org/archive/html/freetype-devel/2008-10/msg00000.html
+
+2009-01-07 Werner Lemberg <wl@gnu.org>
+
+ * docs/CHANGES: Document new key `a' in ftdiff.
+
+2009-01-06 Werner Lemberg <wl@gnu.org>
+
+ * autogen.sh: Don't use GNUisms while calling sed. Problem reported
+ by Sean McBride.
+
+2009-01-06 Werner Lemberg <wl@gnu.org>
+
+ * src/base/ftbitmap.c (FT_Bitmap_Convert): Handle FT_PIXEL_MODE_LCD
+ and FT_PIXEL_MODE_LCD_V. Problem reported by Chi Nguyen
+ <chint@necsv.com>.
+
+2009-01-06 Diego Pettenò <flameeyes@gmail.com>
+
+ * builds/unix/configure.raw: Don't call AC_CANONICAL_BUILD and
+ AC_CANONICAL_TARGET and use $host_os only. A nice explanation for
+ this change can be found at
+ https://blog.flameeyes.eu/s/canonical-target.
+
+ From Savannah patch #6712.
+
+2009-01-06 Sean McBride <sean@rogue-research.com>
+
+ * src/base/ftdbgmem.c (_debug_mem_dummy): Make it static.
+
+ * src/base/ftmac.c: Remove some #undefs.
+
+2008-12-26 Werner Lemberg <wl@gnu.org>
+
+ Set `face_index' field in FT_Face for all font formats.
+
+ * cff/cffobjs.c (cff_face_init), winfonts/winfnt.c (FNT_Face_Init),
+ sfnt/sfobjs.c (sfnt_init_face): Do it.
+
+ * docs/CHANGES: Document it.
+
+2008-12-22 Steve Grubb
+
+ * builds/unix/ftsystem.c (FT_Stream_Open): Reject zero-length files.
+ Patch from Savannah bug #25151.
+
+2008-12-21 Werner Lemberg <wl@gnu.org>
+
+ * src/pfr/pfrdrivr.c, src/winfonts/winfnt.c, src/cache/ftcmanag.c,
+ src/smooth/ftgrays.c, src/base/ftobjs.c, src/sfobjs.c:
+ s/_Err_Bad_Argument/_Err_Invalid_Argument/. The former is for
+ errors in the bytecode interpreter only.
+
+2008-12-21 Werner Lemberg <wl@gnu.org>
+
+ * src/base/ftpfr.c (FT_Get_PFR_Metrics): Protect against NULL
+ arguments.
+ Fix return value for non-PFR fonts. Both problems reported by Chi
+ Nguyen <chint@necsv.com>.
+
+2008-12-21 anonymous
+
+ FT_USE_MODULE declares things as:
+
+ extern const FT_Module_Class
+
+ (or similar for C++). However, the actual types of the variables
+ being declared are often different, e.g., FT_Driver_ClassRec or
+ FT_Renderer_Class. (Some are, indeed, FT_Module_Class.)
+
+ This works with most C compilers (since those structs begin with an
+ FT_Module_Class struct), but technically it's undefined behavior.
+
+ To quote the ISO/IEC 9899:TC2 final committee draft, section 6.2.7
+ paragraph 2:
+
+ All declarations that refer to the same object or function shall
+ have compatible type; otherwise, the behavior is undefined.
+
+ (And they are not compatible types.)
+
+ Most C compilers don't reject (or even detect!) code which has this
+ issue, but the GCC LTO development branch compiler does. (It
+ outputs the types of the objects while generating .o files, along
+ with a bunch of other information, then compares them when doing the
+ final link-time code generation pass.)
+
+ Patch from Savannah bug #25133.
+
+ * src/base/ftinit.c (FT_USE_MODULE): Include variable type.
+
+ * builds/amiga/include/freetype/config/ftmodule.h,
+ include/freetype/config/ftmodule.h, */module.mk: Updated to declare
+ pass correct types to FT_USE_MODULE.
+
+2008-12-21 Hongbo Ni <hongbo@njstar.com>
+
+ * src/autofit/aflatin.c (af_latin_hint_edges),
+ src/autofit/aflatin2.c (af_latin2_hint_edges), src/autofit/afcjk.c
+ (af_cjk_hint_edges): Protect against division by zero. This fixes
+ Savannah bug #25124.
+
+2008-12-18 Werner Lemberg <wl@gnu.org>
+
+ * docs/CHANGES: Updated.
+
+2008-12-18 David Bevan <dbevan@emtex.com>
+
+ Provide API for accessing embedding and subsetting restriction
+ information.
+
+ * include/freetype.h (FT_FSTYPE_INSTALLABLE_EMBEDDING,
+ FT_FSTYPE_RESTRICTED_LICENSE_EMBEDDING,
+ FT_FSTYPE_PREVIEW_AND_PRINT_EMBEDDING, FT_FSTYPE_EDITABLE_EMBEDDING,
+ FT_FSTYPE_NO_SUBSETTING, FT_FSTYPE_BITMAP_EMBEDDING_ONLY): New
+ macros.
+ (FT_Get_FSType_Flags): New function declaration.
+
+ * src/base/ftobjs.c (FT_Get_FSType_Flags): New function.
+
+ * src/cid/cidtoken.h, src/type1/t1tokens.h, src/type42/t42parse.c
+ (t42_keywords): Handle `FSType'.
+
+ * include/freetype/t1tables.h (PS_FontInfoRec): Add `fs_type' field.
+
+2008-12-17 Werner Lemberg <wl@gnu.org>
+
+ * src/base/ftsynth.c (FT_GlyphSlot_Embolden): Don't use internal
+ macros so that copying the source code into an application works
+ out of the box.
+
+2008-12-17 Werner Lemberg <wl@gnu.org>
+
+ * include/freetype/ftsynth.h, src/base/ftsynth.c: Move
+ FT_GlyphSlot_Own_Bitmap to...
+ * include/freetype/ftbitmap.h, src/base/ftbitmap.c: These files.
+
+ * docs/CHANGES: Document it.
+
+2008-12-10 Werner Lemberg <wl@gnu.org>
+
+ Generalize the concept of `tricky' fonts by introducing
+ FT_FACE_FLAG_TRICKY to indicate that the font format's hinting
+ engine is necessary for correct rendering.
+
+ At the same time, slightly modify the behaviour of tricky fonts:
+ FT_LOAD_NO_HINTING is now ignored. To really force raw loading
+ of tricky fonts (without hinting), both FT_LOAD_NO_HINTING and
+ FT_LOAD_NO_AUTOHINT must be used.
+
+ Finally, tricky TrueType fonts always use the bytecode interpreter
+ even if the patented code is used.
+
+ * include/freetype/freetype.h (FT_FACE_FLAG_TRICKY, FT_IS_TRICKY):
+ New macros.
+
+ * src/truetype/ttdriver.c (Load_Glyph): Handle new load flags
+ semantics as described above.
+
+ * src/truetype/ttobjs.c (tt_check_trickyness): New function, using
+ code of ...
+ (tt_face_init): This function, now simplified and updated to new
+ semantics.
+
+ * src/base/ftobjs.c (FT_Load_Glyph): Don't use autohinter for tricky
+ fonts.
+
+ * docs/CHANGES: Document it.
+
+2008-12-09 Werner Lemberg <wl@gnu.org>
+
+ Really fix Savannah bug #25010: An SFNT font with neither outlines
+ nor bitmaps can be considered as containing space `glyphs' only.
+
+ * src/truetype/ttpload.c (tt_face_load_loca): Handle the case where
+ a `glyf' table is missing.
+
+ * src/truetype/ttgload.c (load_truetype_glyph): Abort if we have no
+ `glyf' table but a non-zero `loca' entry.
+ (tt_loader_init): Handle missing `glyf' table.
+
+ * src/base/ftobjs.c (FT_Load_Glyph): Undo change 2008-12-05.
+
+ * src/sfnt/sfobjs.c (sfnt_load_face): A font with neither outlines
+ nor bitmaps is scalable.
+
+2008-12-05 Werner Lemberg <wl@gnu.org>
+
+ * src/autofit/aflatin.c (af_latin_uniranges): Add more ranges. This
+ fixes Savannah bug #21190 which also provides a basic patch.
+
+2008-12-05 Werner Lemberg <wl@gnu.org>
+
+ * include/freetype/freetype.h (FT_LOAD_ADVANCE_ONLY): Use value
+ 0x100 instead of 0x10000; the latter value is already occupied by
+ FT_LOAD_TARGET_LIGHT. Bug reported by James Cloos.
+
+
+ Handle SFNT with neither outlines nor bitmaps. This fixes Savannah
+ bug #25010.
+
+ * src/base/ftobjs.c (FT_Load_Glyph): Reject fonts with neither
+ outlines nor bitmaps.
+
+ * src/sfnt/sfobjs.c (sfnt_load_face): Don't return an error if there
+ is no table with glyphs.
+
+
+ * src/sfnt/ttload.c (tt_face_lookup_table): Improve debugging
+ message.
+
+2008-12-01 Werner Lemberg <wl@gnu.org>
+
+ GDEF tables need `glyph_count' too for validation. Problem reported
+ by Chi Nguyen <chint@necsv.com>.
+
+ * src/otvalid/otvgdef.c (otv_GDEF_validate), src/otvalid/otvalid.h
+ (otv_GDEF_validate), src/otvalid/otvmod.c (otv_validate): Pass
+ `glyph_count'.
+
+2008-11-29 Werner Lemberg <wl@gnu.org>
+
+ * src/autofit/afcjk.c, src/base/ftoutln.c, src/base/ftrfork.c,
+ src/bdf/bdfdrivr.c, src/gxvalid/gxvmorx.c, src/otvalid/otvmath.c,
+ src/pcf/pcfdrivr.c, src/psnames/pstables.h, src/smooth/ftgrays.c,
+ src/tools/glnames.py, src/truetype/ttinterp.c, src/type1/t1load.c,
+ src/type42/t42objs.c, src/winfonts/winfnt.c: Fix compiler warnings
+ (Atari PureC).
+
+2008-11-29 James Cloos <cloos@jhcloos.com>
+
+ * src/type/t1load.c (mm_axis_unmap): Revert previous patch and fix
+ it correctly by using FT_INT_TO_FIXED (FreeType expects 16.16 values
+ in the /BlendDesignMap space).
+
+2008-11-29 James Cloos <cloos@jhcloos.com>
+
+ * src/type1/t1load.c (mm_axis_unmap): `blend_points' is FT_Fixed*,
+ whereas `design_points' is FT_Long*. Therefore, return blend rather
+ than design points.
+
+2008-11-27 Werner Lemberg <wl@gnu.org>
+
+ * src/cff/cffparse.c (cff_parse_real): Handle more than nine
+ significant digits correctly. This fixes Savannah bug #24953.
+
+2008-11-25 Daniel Zimmermann <netzimme@aol.com>
+
+ * src/base/ftstream.c (FT_Stream_ReadFields): Don't access stream
+ before the NULL check. From Savannah patch #6681.
+
+2008-11-24 Werner Lemberg <wl@gnu.org>
+
+ Fixes from the gnuwin32 port.
+
+ * src/base/ftlcdfil.c: s/EXPORT/EXPORT_DEF/.
+
+ * src/base/ftotval.c: Include FT_OPENTYPE_VALIDATE_H.
+
+ * src/psaux/psobjs.c (ps_table_add): Check `length'.
+
+2008-11-15 Werner Lemberg <wl@gnu.org>
+
+ * src/truetype/ttinterp.c (tt_default_graphics_state): The default
+ value for `scan_type' is zero, as confirmed by Greg Hitchcock from
+ Microsoft. Problem reported by Michal Nowakowski
+ <miszka@limes.com.pl>.
+
+2008-11-12 Tor Andersson <tor.andersson@gmail.com>
+
+ * src/cff/cffdrivr.c (cff_get_cmap_info): Initialize `format' field.
+ This fixes Savannah bug #24819.
+
+2008-11-08 Werner Lemberg <wl@gnu.org>
+
+ * src/sfnt/sfobjs.c (sfnt_load_face): Remove #if 0/#endif guards
+ since OpenType version 1.5 has been released.
+
+ * include/ttnameid.h (TT_NAME_ID_WWS_FAMILY,
+ TT_NAME_ID_WWS_SUBFAMILY): New macros for OpenType 1.5.
+ (TT_URC_COPTIC, TT_URC_VAI, TT_URC_NKO, TT_URC_BALINESE,
+ TT_URC_PHAGSPA, TT_URC_NON_PLANE_0, TT_URC_PHOENICIAN,
+ TT_URC_TAI_LE, TT_URC_NEW_TAI_LUE, TT_URC_BUGINESE,
+ TT_URC_GLAGOLITIC, TT_URC_YIJING, TT_URC_SYLOTI_NAGRI,
+ TT_URC_LINEAR_B, TT_URC_ANCIENT_GREEK_NUMBERS, TT_URC_UGARITIC,
+ TT_URC_OLD_PERSIAN, TT_URC_SHAVIAN, TT_URC_OSMANYA,
+ TT_URC_CYPRIOT_SYLLABARY, TT_URC_KHAROSHTHI, TT_URC_TAI_XUAN_JING,
+ TT_URC_CUNEIFORM, TT_URC_COUNTING_ROD_NUMERALS, TT_URC_SUNDANESE,
+ TT_URC_LEPCHA, TT_URC_OL_CHIKI, TT_URC_SAURASHTRA, TT_URC_KAYAH_LI,
+ TT_URC_REJANG, TT_URC_CHAM, TT_URC_ANCIENT_SYMBOLS,
+ TT_URC_PHAISTOS_DISC, TT_URC_OLD_ANATOLIAN, TT_URC_GAME_TILES): New
+ macros for OpenType 1.5.
+
+2008-11-08 Wenlin Institute <wenlin@wenlin.com>
+
+ * src/base/ftobjs.c (ft_glyphslot_free_bitmap): Protect against
+ slot->internal == NULL. Reported by Graham Asher.
+
+2008-11-08 Werner Lemberg <wl@gnu.org>
+
+ * src/sfnt/sfobjs.c (tt_face_get_name): Modified to return an error
+ code so that memory allocation problems can be distinguished from
+ missing table entries. Reported by Graham Asher.
+ (GET_NAME): New macro.
+ (sfnt_load_face): Use it.
+
+2008-11-05 Werner Lemberg <wl@gnu.org>
+
+ * devel/ftoption.h, include/freetype/config/ftoption.h
+ [TT_CONFIG_OPTION_BYTECODE_INTERPRETER]: Undefine
+ TT_CONFIG_OPTION_UNPATENTED_HINTING. This fixes the return value of
+ `FT_Get_TrueType_Engine_Type' (and makes it work as documented).
+ Reported in bug #441638 of bugzilla.novell.com.
+
+ * docs/CHANGES: Document it.
+
+2008-11-03 Werner Lemberg <wl@gnu.org>
+
+ * src/type1/t1load.c (parse_subrs): Use an endless loop. There are
+ fonts (like HELVI.PFB version 003.001, used on OS/2) which define
+ some `subrs' elements more than once. Problem reported by Peter
+ Weilbacher <mozilla@weilbacher.org>.
+
+2008-10-15 Graham Asher <graham.asher@btinternet.com>
+
+ * src/sfnt/ttpost.c (tt_post_default_names): Add `const'.
+
+2008-10-15 David Turner <david@freetype.org>
+
+ * src/truetype/ttgxvar.c (TT_Set_MM_Blend): Disambiguate for
+ meddlesome compilers' warning against `for ( ...; ...; ...) ;'.
+
+2008-10-14 Werner Lemberg <wl@gnu.org>
+
+ * src/cff/cffobjs.c (cff_face_init): Remove compiler warning.
+ Suggested by Bram Tassyns in Savannah patch #6651.
+
+2008-10-12 Graham Asher <graham.asher@btinternet.com>
+
+ * src/sfnt/sfobjs.c (sfnt_load_face): Fix computation of
+ `underline_position'.
+
+2008-10-12 Werner Lemberg <wl@gnu.org>
+
+ * docs/CHANGES: Updated.
+
+2008-10-09 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ Fix Savannah bug #24468.
+
+ According to include/freetype/internal/ftobjs.h, the appropriate
+ type to interchange single character codepoint is FT_UInt32. It
+ should be distinguished from FT_UInt which can be 16bit integer.
+
+ * src/sfnt/ttcmap.c (tt_cmap4_char_map_linear): Change the type
+ of the second argument `pcharcode' from FT_UInt* to FT_UInt32*.
+ (tt_cmap4_char_map_binary): Ditto.
+ (tt_cmap14_get_nondef_chars): Change the type of return value
+ from FT_UInt* to FT_UInt32*.
+
+2008-10-08 John Tytgat <John.Tytgat@esko.com>
+
+ Fix Savannah bug #24485.
+
+ * src/type1/t1load.c (parse_charstrings): Assure that we always have
+ a .notdef glyph.
+
+2008-10-05 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ * src/base/ftmac.c: Include FT_TRUETYPE_TAGS_H for multi build.
+ * builds/mac/ftmac.c: Ditto.
+
+2008-10-05 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ * include/freetype/tttags.h (TTAG_TYP1, TTAG_typ1): Fix definitions.
+ * src/base/ftobjs.c: Include FT_TRUETYPE_TAGS_H.
+
+2008-10-05 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ * src/sfnt/sfobjs.c (sfnt_open_font): Allow `typ1' version tag in
+ the beginning of sfnt container.
+ * src/sfnt/ttload.c (check_table_dir): Return
+ `SFNT_Err_Table_Missing' when sfnt table directory structure is
+ correct but essential tables for TrueType fonts (`head', `bhed' or
+ `SING') are missing. Other errors are returned by
+ SFNT_Err_Unknown_File_Format.
+
+ * src/base/ftobjs.c (FT_Open_Face): When TrueType driver returns
+ `FT_Err_Table_Missing', try `open_face_PS_from_sfnt_stream'. It is
+ enabled only when old mac font support is configured.
+
+2008-10-04 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ * include/freetype/tttags.h (TTAG_CID, TTAG_FOND, TTAG_LWFN,
+ TTAG_POST, TTAG_sfnt, TTAG_TYP1, TTAG_typ1): New tags to simplify
+ the repeated calculations of these values in ftobjs.c and ftmac.c.
+ * src/base/ftobjs.c: Replace all FT_MAKE_TAG by new tags.
+ * src/base/ftmac.c: Ditto.
+ * builds/mac/ftmac.c: Ditto.
+
+2008-10-04 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ * src/base/ftobjs.c (ft_lookup_PS_in_sfnt_stream): Remove wrong
+ initialization of *is_sfnt_cid.
+
+2008-10-04 Werner Lemberg <wl@gnu.org>
+
+ * src/base/ftobjs.c (open_face_PS_from_sfnt_stream): Remove compiler
+ warnings.
+
+2008-10-04 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ * src/base/ftobjs.c (ft_lookup_PS_in_sfnt): Replaced by...
+ (ft_lookup_PS_in_sfnt_stream): This.
+ (open_face_PS_from_sfnt_stream): New function. It checks whether
+ the stream is sfnt-wrapped Type1 PS font or sfnt-wrapped CID-keyed
+ font, then try to open a face for given face_index.
+ (Mac_Read_sfnt_Resource): Replace the combination of
+ `ft_lookup_PS_in_sfnt' and `open_face_from_buffer' by
+ `open_face_PS_from_sfnt_stream'.
+ * src/base/ftmac.c (FT_New_Face_From_SFNT): Ditto.
+ * builds/mac/ftmac.c (FT_New_Face_From_SFNT): Ditto.
+ * src/base/ftbase.h: Remove `ft_lookup_PS_in_sfnt' and add
+ `open_face_PS_from_sfnt_stream'.
+
+2008-10-03 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ * src/base/ftobjs.c (ft_lookup_PS_in_sfnt): Set *is_sfnt_cid to
+ FALSE if neither `CID ' nor `TYP1' is found in the sfnt container.
+
+2008-10-03 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ * include/freetype/config/ftconfig.h: Define FT_MACINTOSH when SC or
+ MrC compiler of MPW is used. These compilers do not define the
+ macro __APPLE__ by themselves.
+ * builds/unix/ftconfig.in: Ditto.
+ * builds/vms/ftconfig.h: Ditto.
+ * src/base/ftbase.c: Use FT_MACINTOSH instead of __APPLE__, to
+ include ftmac.c if FreeType 2 is built by MPW.
+ * src/base/ftobjs.c: Use FT_MACINTOSH instead of __APPLE__, to
+ enable shared functions for ftmac.c if FreeType 2 is built by MPW.
+
+ * builds/mac/ftmac.c: Include ftbase.h.
+ (memory_stream_close): Removed.
+ (new_memory_stream): Ditto.
+ (open_face_from_buffer): Removed. Use the implementation in
+ ftobjs.c.
+ (ft_lookup_PS_in_sfnt): Ditto.
+
+ * builds/mac/FreeType.m68k_far.make.txt: Build ftmac.c as an
+ included part of ftbase.c, to share the functions in ftobjs.c. The
+ rule compiling ftmac.c separately is removed and the rule copying
+ ftbase.c from src/base/ftbase.c to builds/mac/ftbase.c is added.
+ * builds/mac/FreeType.m68k_cfm.make.txt: Ditto.
+ * builds/mac/FreeType.ppc_classic.make.txt: Ditto.
+ * builds/mac/FreeType.ppc_carbon.make.txt: Ditto.
+
+2008-10-02 Bram Tassyns <bramt@enfocus.be>
+
+ * src/cff/cffgload.c (cff_slot_load): Map CID 0 to GID 0. This
+ fixes Savannah bug #24430.
+
+2008-10-02 Werner Lemberg <wl@gnu.org>
+
+ * builds/freetype.mk (BASE_H): Rename to...
+ (INTERNAL_H): This.
+ (FREETYPE_H): Updated.
+ * src/base/rules.mk: (BASE_OBJ_S, OBJ_DIR/%.$O): Add BASE_H.
+ * src/bdf/rules.mk (BDF_DRV_H): Add bdferror.h.
+ * src/cache/rules.mk (CACHE_DRV_H): Add ftccache.h and ftcsbits.h.
+ * src/pcf/rules.mk (PCF_DRV_H): Add pcfread.h.
+ * src/raster/rules.mk (RASTER_DRV_H): Add ftmisc.h.
+ * src/type42/rules.mk (T42_DRV_H): Add t42types.h.
+
+2008-10-02 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ * src/base/ftbase.h: New file to declare the private utility
+ functions shared by the sources of base modules. Currently,
+ `ft_lookup_PS_in_sfnt' and `open_face_from_buffer' are declared to
+ share between ftobjs.c and ftmac.c.
+
+ * src/base/rule.mk: Add ftbase.h.
+
+ * src/base/ftobjs.c: Include ftbase.h.
+ (memory_stream_close): Build on any platform when old MacOS font
+ support is enabled.
+ (new_memory_stream): Ditto.
+ (open_face_from_buffer): Build on any platform when old MacOS font
+ support is enabled. The counting of the face in a font file is
+ slightly different between Carbon-dependent parser and Carbon-free
+ parser. They are merged with the platform-specific conditional.
+ (ft_lookup_PS_in_sfnt): Ditto.
+
+ * src/base/ftmac.c: Include ftbase.h.
+ (memory_stream_close): Removed.
+ (new_memory_stream): Ditto.
+ (open_face_from_buffer): Removed. Use the implementation in
+ ftobjs.c.
+ (ft_lookup_PS_in_sfnt): Ditto.
+
+2008-10-02 Werner Lemberg <wl@gnu.org>
+
+ * src/sfnt/sfobjs.c (sfnt_load_face): `psnames_error' is only needed
+ if TT_CONFIG_OPTION_POSTSCRIPT_NAMES is defined.
+
+2008-10-01 Werner Lemberg <wl@gnu.org>
+
+ * src/truetype/ttobjs.c (tt_face_done), src/cff/cffobjs.c
+ (cff_face_done), src/pfr/pfrobjs.c (pfr_face_done),
+ src/pcf/pcfdrivr.c (PCF_Face_Done), src/cid/cidobjs.c
+ (cid_face_done), src/bdf/bdfdrivr. (BDF_Face_Done),
+ src/sfnt/sfobjs.c (sfnt_face_done): Protect against face == 0.
+ Reported by Graham Asher.
+
+2008-09-30 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ * src/base/rules.mk: Add conditional source to BASE_SRC, for `make
+ multi' on Mac OS X. If the macro $(ftmac_c) is defined,
+ $(BASE_DIR)/$(ftmac_c) is added to BASE_SRC. In a normal build, the
+ lack of ftmac.c in BASE_SRC is not serious because ftbase.c includes
+ ftmac.c.
+ * builds/unix/unix-def.in: Add a macro definition of $(ftmac_c).
+ * builds/unix/configure.raw: Add procedure to set up appropriate
+ value of $(ftmac_c) with the consideration of the availability of
+ Carbon framework.
+
+2008-09-30 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ * src/base/Jamfile: Add target for multi build by jam on Mac OS X.
+ * src/base/ftobjs.c (FT_New_Face): Fix the condition to include this
+ function for MPW building. It is synchronized the condition to
+ include ftmac.c source into ftbase.c.
+
+2008-09-22 Werner Lemberg <wl@gnu.org>
+
+ * src/cff/cffgload.c (CFF_Operator, cff_argument_counts,
+ cff_decoder_parse_charstrings): Handle (invalid)
+ `callothersubr' and `pop' instructions.
+
+2008-09-22 John Tytgat <John.Tytgat@esko.com>
+
+ Fix Savannah bug #24307.
+
+ * include/freetype/internal/t1types.h (CID_FaceRec),
+ src/type42/t42types.h (T42_FaceRec): Comment out `afm_data'.
+
+2008-09-21 Werner Lemberg <wl@gnu.org>
+
+ * src/smooth/ftgrays.c (gray_raster_render): Don't dereference
+ `target_map' if FT_RASTER_FLAG_DIRECT is set. Problem reported by
+ Stephan T. Lavavej <stl@nuwen.net>.
+
+2008-09-21 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ * src/otvalid/Jamfile: Add missing target `otvmath' for multi build
+ by jam.
+ * src/sfnt/Jamfile: Add missing target `ttmtx' for multi build by
+ jam.
+
+2008-09-20 Werner Lemberg <wl@gnu.org>
+
+ * src/smooth/ftgrays.c (gray_find_cell): Fix threshold. The values
+ passed to this function are already `normalized'. Problem reported
+ by Stephan T. Lavavej <stl@nuwen.net>.
+
+ * docs/CHANGES: Document it.
+
+2008-09-20 Werner Lemberg <wl@gnu.org>
+
+ * src/base/ftoutln.c: Include FT_INTERNAL_DEBUG_H.
+ (FT_Outline_Decompose): Decorate with tracing messages.
+
+ * src/smooth/ftgrays.c [DEBUG_GRAYS]: Replace with
+ FT_DEBUG_LEVEL_TRACE.
+ [_STANDALONE_ && FT_DEBUG_LEVEL_TRACE]: Include stdio.h and
+ stdarg.h.
+
+ (FT_TRACE) [_STANDALONE_]: Remove.
+ (FT_Message) [_STANDALONE_ && FT_DEBUG_LEVEL_TRACE]: New function.
+ (FT_TRACE5, FT_TRACE7) [_STANDALONE_]: New macros.
+ (FT_ERROR) [_STANDALONE_]: Updated.
+
+ (gray_hline) [FT_DEBUG_LEVEL_TRACE]: Fix condition.
+ Use FT_TRACE7.
+ (gray_dump_cells): Make it `static void'.
+ (gray_convert_glyph): Use FT_TRACE7.
+
+ (FT_Outline_Decompose) [_STANDALONE_]: Synchronize with version in
+ ftoutln.c.
+
+ * src/base/ftadvanc.c (FT_Get_Advance, FT_Get_Advances): Use
+ FT_ERROR_BASE.
+
+ * docs/formats.txt: Updated.
+
+2008-09-19 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ * src/base/ftmac.c: Import sfnt-wrapped Type1 and sfnt-wrapped
+ CID-keyed font support.
+ * builds/mac/ftmac.c: Ditto.
+
+2008-09-19 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ * src/base/ftobjs.c (Mac_Read_sfnt_Resource): Fix double free bug in
+ sfnt-wrapped Type1 and sfnt-wrapped CID-keyed font support code.
+ `open_face_from_buffer' frees the passed buffer if it cannot open a
+ face from the buffer, so the caller must not free it.
+
+2008-09-19 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ * src/base/ftobjs.c (Mac_Read_sfnt_Resource): Add initial support
+ for sfnt-wrapped Type1 and sfnt-wrapped CID-keyed font.
+ (ft_lookup_PS_in_sfnt): New function to look up `TYP1' or `CID '
+ table in sfnt table directory. It is used before loading TrueType
+ font driver.
+
+ * docs/CHANGES: Add note about the current status of sfnt-wrapped
+ Type1 and sfnt-wrapped CID-keyed font support.
+
+2008-09-18 Werner Lemberg <wl@gnu.org>
+
+ * src/base/ftsystem.c (FT_Done_Memory): Use ft_sfree directly for
+ orthogonality (ft_free and ft_sfree could belong to different memory
+ pools). This fixes Savannah bug #24297.
+
+2008-09-18 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ * src/cff/cffobjs.c (cff_face_init): Use TTAG_OTTO defined
+ in tttags.h instead of numerical value 0x4F54544FL.
+
+2008-09-16 Werner Lemberg <wl@gnu.org>
+
+ * src/cff/cffgload.h, src/cff/cffgload.c
+ (cff_decoder_set_width_only): Eliminate function call.
+
+2008-09-15 George Williams <gww@silcom.com>
+
+ Fix Savannah bug #24179, reported by Bram Tassyns.
+
+ * src/type1/t1load.c (mm_axis_unmap, T1_Get_MM_Var): Fix computation
+ of default values.
+
+2008-09-15 Werner Lemberg <wl@gnu.org>
+
+ * src/tools/glnames.py (main): Surround `ft_get_adobe_glyph_index'
+ and `ft_adobe_glyph_list' with FT_CONFIG_OPTION_ADOBE_GLYPH_LIST to
+ prevent unconditional definition. This fixes Savannah bug #24241.
+
+ * src/psnames/pstables.h: Regenerated.
+
+2008-09-13 Werner Lemberg <wl@gnu.org>
+
+ * autogen.sh, builds/unix/configure.raw,
+ include/freetype/config/ftconfig.h, builds/unix/ftconfig.in: Minor
+ beautifying.
+
+ * include/freetype/ftadvanc.h, include/freetype/ftgasp.h,
+ include/freetype/ftlcdfil.h: Protect against FreeType 1.
+ Some other minor fixes.
+
+ * devel/ftoption.h: Synchronize with
+ include/freetype/config/ftoption.h.
+
+2008-09-11 Werner Lemberg <wl@gnu.org>
+
+ * src/base/ftbase.c: Include ftadvanc.c.
+
+2008-09-11 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ * builds/unix/ftconfig.in: Duplicate the cpp computation of
+ FT_SIZEOF_{INT|LONG} from include/freetype/config/ftconfig.h.
+ (FT_USE_AUTOCONF_SIZEOF_TYPES): New macro. If defined, the cpp
+ computation is disabled and the statically configured sizes are
+ used. This fixes Savannah bug #21250.
+
+ * builds/unix/configure.raw: Add the checks to compare the cpp
+ computation results of the bit length of int and long versus the
+ sizes detected by running `configure'. If the results are
+ different, FT_USE_AUTOCONF_SIZEOF_TYPES is defined to prioritize the
+ results.
+ New option --{enable|disable}-biarch-config is added to define or
+ undefine FT_USE_AUTOCONF_SIZEOF_TYPES manually.
+
+2008-09-05 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ * builds/unix/configure.raw: Clear FT2_EXTRA_LIBS when Carbon or
+ ApplicationServices framework is missing. Although this value is not
+ used in building of FreeType2, it is written in `freetype2.pc' and
+ `freetype-config'.
+
+2008-09-01 David Turner <david@freetype.org>
+
+ * src/cache/ftccmap.c (FTC_CMapCache_Lookup): Accept a negative cmap
+ index to mean `use default cached FT_Face's charmap'. This fixes
+ Savannah bug #22625.
+ * include/freetype/ftcache.h: Document it.
+
+
+ Make FT_MulFix an inlined function. This is done to speed up
+ FreeType a little (on x86 3% when loading+hinting, 10% when
+ rendering, ARM savings are more important though). Disable this by
+ undefining FT_CONFIG_OPTION_INLINE_MULFIX.
+
+ Use of assembler code can now be controlled with
+ FT_CONFIG_OPTION_NO_ASSEMBLER.
+
+ * include/freetype/config/ftconfig.h, builds/unix/ftconfig.in
+ [!FT_CONFIG_OPTION_NO_ASSEMBLER] (FT_MulFix_arm): New assembler
+ implementation.
+ [!FT_CONFIG_OPTION_NO_ASSEMBLER] (FT_MulFix_i386): Assembler
+ implementation taken from `ftcalc.c'.
+ [!FT_CONFIG_OPTION_NO_ASSEMBLER] (FT_MULFIX_ASSEMBLER): New macro
+ which is defined to the platform-specific assembler implementation
+ of FT_MulFix.
+ [FT_CONFIG_OPTION_INLINE_MULFIX && FT_MULFIX_ASSEMBLER]
+ (FT_MULFIX_INLINED): New macro.
+
+ * include/freetype/config/ftoption.h (FT_CONFIG_OPTION_NO_ASSEMBLER,
+ FT_CONFIG_OPTION_INLINE_MULFIX): New macros.
+
+ * include/freetype/freetype.h: Updated to handle FT_MULFIX_INLINED.
+
+ * src/base/ftcalc.c: Updated to use FT_MULFIX_ASSEMBLER and
+ FT_MULFIX_INLINED.
+
+
+ Add a new header named FT_ADVANCES_H declaring some new APIs to
+ extract the advances of one or more glyphs without necessarily
+ loading their outlines. Also provide `fast loaders' for the
+ TrueType, Type1, and CFF font drivers (more to come later).
+
+ * src/base/ftadvanc.c, include/freetype/ftadvanc.h: New files.
+
+ * include/freetype/config/ftheader.h (FT_ADVANCES_H): New macro.
+ * include/freetype/freetype.h (FT_LOAD_ADVANCE_ONLY): New macro.
+
+ * include/freetype/internal/ftdriver.h (FT_Face_GetAdvancesFunc):
+ `flags' and `advances' are now of type `FT_UInt' and `FT_Fixed',
+ respectively.
+
+ * src/base/Jamfile (_sources), src/base/rules.mk (BASE_SRC): Add
+ ftadvanc.c.
+
+ * src/cff/cffdrivr.c (cff_get_advances): New function.
+ (cff_driver_class): Register it.
+
+ * src/cff/cffgload.c (cff_decoder_set_width_only): New function.
+ (cff_decoder_parse_charstrings): Handle `width_only'.
+ (cff_slot_load): Handle FT_LOAD_ADVANCE_ONLY.
+
+ * src/cff/cffgload.h (cff_decoder): New element `width_only'.
+ (cff_decoder_set_width_only): New declaration.
+
+ * src/truetype/ttdriver.c (tt_get_advances): New function.
+ (tt_driver_class): Register it.
+
+ * src/truetype/ttgload.c (Get_HMetrics, Get_VMetrics): Renamed to...
+ (TT_Get_HMetrics, TT_Get_VMetrics): This.
+ Update callers.
+ * src/truetype/ttgload.h: Declare them.
+
+ * src/type1/t1gload.h, src/type1/t1gload.c (T1_Get_Advances): New
+ function.
+ * src/type1/t1driver.c (t1_driver_class): Register T1_Get_Advances.
+
+
+ Add checks for minimum version of the `autotools' stuff.
+
+ * autogen.sh: Implement it.
+ (get_major_version, get_minor_version, get_patch_version,
+ compare_to_minimum_version, check_tool_version): New auxiliary
+ functions.
+
+ * README.CVS: Document it.
+
+2008-08-29 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ * src/sfnt/sfobjs.c (sfnt_open_font): Use TTAG_OTTO defined in
+ tttags.h instead of FT_MAKE_TAG( 'O', 'T', 'T', 'O' ).
+
+2008-08-28 Werner Lemberg <wl@gnu.org>
+
+ * src/type1/t1load.c (parse_encoding): Protect against infinite
+ loop. This fixes Savannah bug #24150 (where a patch has been posted
+ too).
+
+2008-08-23 Werner Lemberg <wl@gnu.org>
+
+ * src/type/t1afm.c (compare_kern_pairs), src/psaux/afmparse.c
+ (afm_compare_kern_pairs): Fix comparison. This fixes Savannah bug
+ #24119.
+
+2008-08-19 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ * src/base/ftobjs.c (FT_Stream_New): Initialize *astream always,
+ even if passed library or arguments are invalid. This fixes a bug
+ that an uninitialized stream is freed when an invalid library handle
+ is passed. Originally proposed by Mike Fabian, 2008/08/18 on
+ freetype-devel.
+ (FT_Open_Face): Ditto (stream).
+ (load_face_in_embedded_rfork): Ditto (stream2).
+
+2008-08-18 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ * src/base/ftmac.c: Add a fallback to guess the availability of the
+ `ResourceIndex' type. It is used when built without configure
+ (e.g., a build with Jam).
+ * builds/mac/ftmac.c: Ditto.
+ * builds/unix/configure.raw: Set HAVE_TYPE_RESOURCE_INDEX to 1 or 0
+ explicitly, even if `ResourceIndex' is unavailable.
+
+2008-08-18 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ * builds/unix/configure.raw: In checking of Mac OS X features,
+ all-in-one header file `Carbon.h' is replaced by the minimum
+ header file `CoreServices.h', similar to current src/base/ftmac.c.
+
+2008-08-18 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ * src/sfnt/ttcmap.c (tt_cmap2_validate): Skip the validation of
+ sub-header when its code_count is 0. Many Japanese Dynalab fonts
+ include such an empty sub-header (code_count == 0, first_code == 0
+ delta == 0, but offset != 0) as the second sub-header in SJIS cmap.
+
+2008-08-04 Werner Lemberg <wl@gnu.org>
+
+ * src/type1/t1tokens.h: Handle `ForceBold' keyword. This fixes
+ Savannah bug #23995.
+
+ * src/cid/cidload.c (parse_expansion_factor): New callback function.
+ (cid_field_records): Use it for `ExpansionFactor'.
+ * src/cod/cidtoken.h: Handle `ForceBold' keyword.
+ Don't handle `ExpansionFactor'.
+
+2008-08-04 Bram Tassyns <bramt@enfocus.be>
+
+ * src/cff/cffparse.c (cff_parse_fixed_scaled): Fix thinko which
+ resulted in incorrect scaling. This fixes Savannah bug #23973.
+
+2008-08-04 Werner Lemberg <wl@gnu.org>
+
+ Be more tolerant w.r.t. invalid entries in SFNT table directory.
+
+ * src/sfnt/ttload.c (check_table_dir): Ignore invalid entries and
+ adjust table count.
+ Add more trace messages.
+ (tt_face_load_font_dir): Updated.
+
+2008-07-30 Werner Lemberg <wl@gnu.org>
+
+ * src/cff/cffgload.c (cff_decoder_parse_charstrings): No longer
+ assume that the first argument on the stack is the bottom-most
+ element. Two reasons:
+
+ o According to people from Adobe it is missing in the Type 2
+ specification that pushing of additional, superfluous arguments
+ on the stack is prohibited.
+
+ o Acroread in general handles fonts differently, namely by popping
+ the number of arguments needed for a particular operand (as a PS
+ interpreter would do). In case of buggy fonts this causes a
+ different interpretation which of the elements on the stack are
+ superfluous and which not.
+
+ Since there are CFF subfonts (embedded in PDFs) which rely on
+ Acroread's behaviour, FreeType now does the same.
+
+2008-07-27 Werner Lemberg <wl@gnu.org>
+
+ Add extra mappings for `Tcommaaccent' and `tcommaaccent'. This
+ fixes Savannah bug #23940.
+
+ * src/psnames/psmodule.c (WGL_EXTRA_LIST_SIZE): Rename to...
+ (EXTRA_GLYPH_LIST_SIZE): This.
+ Increase by 2.
+ (ft_wgl_extra_unicodes): Rename to...
+ (ft_extra_glyph_unicodes): This.
+ Add two code values.
+ (ft_wgl_extra_glyph_names): Rename to...
+ (ft_extra_glyph_names): This.
+ Add two glyphs.
+ (ft_wgl_extra_glyph_name_offsets): Rename to...
+ (ft_extra_glyph_name_offsets): This.
+ Add two offsets.
+
+ (ps_check_wgl_name, ps_check_wgl_unicode): Rename to...
+ (ps_check_extra_glyph_name, ps_check_extra_glyph_unicode): This.
+ Updated.
+ (ps_unicodes_init): Updated.
+
+2008-07-26 Werner Lemberg <wl@gnu.org>
+
+ * src/cff/cffgload.c (cff_decoder_prepare,
+ cff_decoder_parse_charstrings): Improve debug output.
+
+2008-07-22 Martin McBride <mmcbride@emtex.com>
+
+ * src/sfnt/ttcmap.c (tt_cmap4_validate, tt_cmap4_char_map_linear,
+ tt_cmap4_char_map_binary): Handle fonts which treat the last segment
+ specially. According to the specification, such fonts would be
+ invalid but acroread accepts them.
+
+2008-07-16 Jon Foster <Jon.Foster@cabot.co.uk>
+
+ * src/pfr/pfrdrivr.c (pfr_get_advance): Fix off-by-one error.
+
+ * src/base/ftcalc.c (FT_MulFix): Fix portability issue.
+
+ * src/sfnt/ttpost.c (MAC_NAME) [!FT_CONFIG_OPTION_POSTSCRIPT_NAMES]:
+ Fix compiler warning.
+
+2008-07-16 Werner Lemberg <wl@gnu.org>
+
+ Handle CID-keyed fonts wrapped in an SFNT (with cmaps) correctly.
+
+ * src/cff/cffload.c (cff_font_load): Pass `pure_cff'.
+ Invert sids table only if `pure_cff' is set.
+ * src/cff/cffload.h: Updated.
+
+ * src/cff/cffobjs.c (cff_face_init): Updated.
+ Set FT_FACE_FLAG_CID_KEYED only if pure_cff is set.
+
+ * docs/CHANGES: Updated.
+
+2008-07-09 Werner Lemberg <wl@gnu.org>
+
+ * src/truetype/ttpload.c (tt_face_load_loca): Handle buggy fonts
+ where num_locations < num_glyphs. Problem reported by Ding Li.
+
+2008-07-05 Werner Lemberg <wl@gnu.org>
+
+ Since FreeType uses `$(value ...)', we now need GNU make 3.80 or
+ newer. This fixes Savannah bug #23648.
+
+ * configure: zsh doesn't like ${1+"$@"}.
+ Update needed GNU make version.
+ * builds/toplevel.mk: Check for `$(eval ...)'.
+ * docs/INSTALL.GNU, docs/INSTALL.CROSS, docs/INSTALL.UNIX: Document
+ it.
+
+2008-07-04 Werner Lemberg <wl@gnu.org>
+
+ * src/raster/ftraster.c (Draw_Sweep): If span is smaller than one
+ pixel, only check for dropouts if neither start nor end point lies
+ on a pixel center. This fixes Savannah bug #23762.
+
+2008-06-29 Werner Lemberg <wl@gnu.org>
+
+ * Version 2.3.7 released.
+ =========================
+
+
+ Tag sources with `VER-2-3-7'.
+
+ * docs/CHANGES, docs/VERSION.DLL: Update documentation and bump
+ version number to 2.3.7.
+
+ * README, Jamfile (RefDoc), builds/win32/visualc/index.html,
+ builds/win32/visualc/freetype.dsp,
+ builds/win32/visualc/freetype.vcproj,
+ builds/win32/visualce/index.html,
+ builds/win32/visualce/freetype.dsp,
+ builds/win32/visualce/freetype.vcproj: s/2.3.6/2.3.7/, s/236/237/.
+
+ * include/freetype/freetype.h (FREETYPE_PATCH): Set to 7.
+
+ * builds/unix/configure.raw (version_info): Set to 9:18:3.
+
+ * docs/release: Updated.
+
+2008-06-28 Werner Lemberg <wl@gnu.org>
+
+ * src/ftglyph.c (FT_Matrix_Multiply, FT_Matrix_Invert): Move to...
+ * src/ftcalc.c: Here. This fixes Savannah bug #23729.
+
+2008-06-27 Werner Lemberg <wl@gnu.org>
+
+ * src/raster/ftraster.c (Vertical_Sweep_Drop, Horizontal_Sweep_Drop,
+ Horizontal_Gray_Sweep_Drop): Test for intersections which
+ degenerate to a single point can be ignored; this has been confirmed
+ by Greg Hitchcock from Microsoft. (This was commented out code.)
+
+2008-06-26 Werner Lemberg <wl@gnu.org>
+
+ Improve navigation in API reference.
+
+ * src/tools/docmaker/tohtml.py (html_header_3): Renamed to...
+ (html_header_6): This.
+ (html_header_3, html_header_3i, html_header_4, html_header_5,
+ html_header_5t): New strings.
+ (toc_footer_start, toc_footer_end): New strings.
+ (HtmlFormatter::html_header): Updated.
+ (HtmlFormatter::html_index_header, HtmlFormatter::html_toc_header):
+ New strings.
+ (HtmlFormatter::index_enter): Use `html_index_header'.
+ (HtmlFormatter::index_exit): Print `html_footer'.
+ (HtmlFormatter::toc_enter): Use `html_toc_header'.
+ (HtmlFormatter::toc_exit): Print proper footer.
+
+ Convert ~ to non-breakable space.
+
+ * src/tools/docmaker/tohtml.py (make_html_para): Implement it.
+ Update header files accordingly.
+
+2008-06-24 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ * builds/unix/configure.raw: Check type `ResourceIndex' explicitly
+ and define HAVE_TYPE_RESOURCE_INDEX if it is defined. Mac OS X 10.5
+ bundles 10.4u SDK with MAC_OS_X_VERSION_10_5 macro but without
+ ResourceIndex type definition. The macro does not inform the type
+ availability.
+ * src/base/ftmac.c: More parentheses are inserted to clarify the
+ conditionals to disable legacy APIs in `10.5 and later' cases. If
+ HAVE_TYPE_RESOURCE_INDEX is not defined, ResourceIndex is defined.
+
+2008-06-24 Werner Lemberg <wl@gnu.org>
+
+ * src/truetype/ttinterp.c (Ins_SCANTYPE): Don't check rendering
+ mode.
+
+ * src/raster/ftraster.c (Render_Glyph, Render_Gray_Glyph,
+ Draw_Sweep): No-dropout mode is value 2, not value 0.
+ (Draw_Sweep): Really skip dropout handling for no-dropout mode.
+
+2008-06-24 Werner Lemberg <wl@gnu.org>
+
+ * src/psaux/psobjs.c (t1_builder_close_contour): Don't add contour
+ if it consists of one point only. Based on a patch from Savannah
+ bug #23683 (from John Tytgat).
+
+2008-06-22 Werner Lemberg <wl@gnu.org>
+
+ * src/truetype/ttgload.c (TT_Load_Glyph): Protect bytecode stuff
+ with IS_HINTED.
+
+ * docs/CHANGES: Updated.
+
+2008-06-22 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ * builds/unix/configure.raw: If CFLAGS has `-isysroot XXX' option
+ but LDFLAGS does not, import it to LDFLAGS. The option is used to
+ specify non-default SDK on Mac OS X (e.g., universal binary SDK for
+ Mac OS X 10.4 on PowerPC platform). Although Apple TechNote 2137
+ recommends to add the option only to CFLAGS, LDFLAGS should include
+ it because libfreetype.la is built with -no-undefined. This fixes a
+ bug reported by Ryan Schmidt in MacPorts,
+ https://trac.macports.org/ticket/15331.
+
+2008-06-21 Werner Lemberg <wl@gnu.org>
+
+ Enable access to the various dropout rules of the B&W rasterizer.
+ Pass dropout rules from the TT bytecode interpreter to the
+ rasterizer.
+
+ * include/freetype/ftimage.h (FT_OUTLINE_SMART_DROPOUTS,
+ FT_OUTLINE_EXCLUDE_STUBS): New flags for FT_Outline.
+
+ * src/raster/ftraster.c (Vertical_Sweep_Drop, Horizontal_Sweep_Drop,
+ Horizontal_Gray_Sweep_Drop): Use same mode numbers as given in the
+ OpenType specification.
+ Fix mode 4 computation.
+ (Render_Glyph, Render_Gray_Glyph): Handle new outline flags.
+
+ * src/truetype/ttgload.c (TT_Load_Glyph) Convert scan conversion
+ mode to FT_OUTLINE_XXX flags.
+
+ * src/truetype/ttinterp.c (Ins_SCANCTRL): Enable ppem check.
+
+2008-06-19 Werner Lemberg <wl@gnu.org>
+
+ * src/cff/cffobjs.c (cff_face_init): Compute final
+ `dict->units_per_em' value before assigning it to
+ `cffface->units_per_EM'. Otherwise, CFFs without subfonts are
+ scaled incorrectly if the font matrix is non-standard. This fixes
+ Savannah bug #23630.
+
+ * docs/CHANGES: Updated.
+
+2008-06-19 Werner Lemberg <wl@gnu.org>
+
+ * src/type/t1objs.c (T1_Face_Init): Slightly improve algorithm fix
+ from 2008-06-19.
+
+2008-06-18 Werner Lemberg <wl@gnu.org>
+
+ * src/type/t1objs.c (T1_Face_Init): Fix change from 2008-03-21.
+ Reported by Peter Weilbacher <mozilla@weilbacher.org>.
+
+ * docs/CHANGES: Updated.
+
+2008-06-15 George Williams <gww@silcom.com>
+
+ * src/otvalid/otvgpos.c (otv_MarkBasePos_validate): Set
+ `valid->extra2' to 1. This is undocumented in the OpenType 1.5
+ specification.
+
+2008-06-15 Werner Lemberg <wl@gnu.org>
+
+ * src/base/ftcalc.c (FT_MulFix) <asm>: Protect registers correctly
+ from clobbering. Patch from Savannah bug report #23556.
+
+ * docs/CHANGES: Document it.
+
+2008-06-10 Werner Lemberg <wl@gnu.org>
+
+ * autogen.sh: Add option `--install' to libtoolize.
+
+2008-06-10 Werner Lemberg <wl@gnu.org>
+
+ * Version 2.3.6 released.
+ =========================
+
+
+ Tag sources with `VER-2-3-6'.
+
+ * docs/CHANGES, docs/VERSION.DLL: Update documentation and bump
+ version number to 2.3.6.
+
+ * README, Jamfile (RefDoc), builds/win32/visualc/index.html,
+ builds/win32/visualc/freetype.dsp,
+ builds/win32/visualc/freetype.vcproj,
+ builds/win32/visualce/index.html,
+ builds/win32/visualce/freetype.dsp,
+ builds/win32/visualce/freetype.vcproj: s/2.3.5/2.3.6/, s/235/236/.
+
+ * include/freetype/freetype.h (FREETYPE_PATCH): Set to 6.
+
+ * builds/unix/configure.raw (version_info): Set to 9:17:3.
+
+
+ * include/freetype/internal/psaux.h (T1_BuilderRec): Remove `scale_x'
+ and `scale_y'.
+ * src/cff/cffgload.h (CFF_Builder): Remove `scale_x' and `scale_y'.
+
+
+ * src/cff/cffparse.c: Include FT_INTERNAL_DEBUG_H.
+ * src/cff/cffobjs.h: Include FT_INTERNAL_POSTSCRIPT_HINTS_H.
+
+2008-06-10 Werner Lemberg <wl@gnu.org>
+
+ * src/base/ftobjs.c (open_face): Check `clazz->init_face' and
+ `clazz->done_face'.
+
+2008-06-09 VaDiM <s_sliva@rambler.ru>
+
+ Support debugging on WinCE. From Savannah patch #6536; this fixes
+ bug #23497.
+
+ * builds/win32/ftdebug.c (OutputDebugStringEx): New function/macro
+ as a replacement for OutputDebugStringA (which WinCE doesn't have).
+ Update all callers.
+ (ft_debug_init) [_WIN32_CE]: WinCE apparently doesn't have
+ environment variables.
+
+2008-06-09 Werner Lemberg <wl@gnu.org>
+
+ * README.CVS: Updated.
+
+ * builds/unix/configure.raw, builds/unix/freetype-config.in: Updated
+ for newer versions of autoconf and friends.
+
+2008-06-08 Werner Lemberg <wl@gnu.org>
+
+ * src/type1/t1parse.h (T1_ParserRec): Make `base_len' and
+ `private_len' unsigned.
+
+ * src/type1/t1parse.c (read_pfb_tag): Make `asize' unsigned and read
+ it as such.
+ (T1_New_Parser, T1_Get_Private_Dict): Make `size' unsigned.
+
+
+ * src/base/ftstream.c (FT_Stream_Skip): Reject negative values.
+
+
+ * src/type1/t1load.c (parse_blend_design_positions): Check `n_axis'
+ for sane value.
+ Fix typo.
+
+
+ * src/psaux/psobjs.c (ps_table_add): Check `idx' correctly.
+
+
+ * src/truetype/ttinterp (Ins_SHC): Use BOUNDS() to check
+ `last_point'.
+
+
+ * src/sfnt/ttload.c (tt_face_load_max_profile): Limit
+ `maxTwilightPoints'.
+
+2008-06-06 Werner Lemberg <wl@gnu.org>
+
+ * src/truetype/ttinterp.c (Ins_IP): Handle case `org_dist == 0'
+ correctly. This fixes glyphs `t' and `h' of Arial Narrow at 12ppem.
+
+2008-06-03 Werner Lemberg <wl@gnu.org>
+
+ * include/freetype/ftcache.h (FTC_FaceID): Change type back to
+ FT_Pointer. Reported by Ian Britten <britten@caris.com>.
+
+2008-06-02 Werner Lemberg <wl@gnu.org>
+
+ Emit header info for defined FreeType objects in reference.
+
+ * src/tools/docmaker/content.py (re_header_macro): New regexp.
+ (ContentProcessor::__init__): Initialize new dictionary `headers'.
+ (DocBlock::__init__): Collect macro header definitions.
+
+ * src/tools/docmaker/tohtml.py (header_location_header,
+ header_location_footer): New strings.
+ (HtmlFormatter::__init__): Pass `headers' dictionary.
+ (HtmlFormatter::print_html_field): Don't emit paragraph tags.
+ (HtmlFormatter::print_html_field_list): Emit empty paragraph.
+ (HtmlFormatter::block_enter): Emit header info.
+
+2008-06-01 Werner Lemberg <wl@gnu.org>
+
+ * include/freetype/config/ftheader.h (FT_UNPATENTED_HINTING_H,
+ FT_INCREMENTAL_H): Added.
+
+2008-05-28 Werner Lemberg <wl@gnu.org>
+
+ * src/tools/docmaker/sources.py (SourceBlock::__init__): While
+ looking for markup tags, return immediately as soon a single one is
+ found.
+
+2008-05-28 Werner Lemberg <wl@gnu.org>
+
+ * src/truetype/ttinterp.c (Ins_MD): The MD instruction also uses
+ original, unscaled input values. Confirmed by Greg Hitchcock from
+ Microsoft.
+
+2008-05-27 Werner Lemberg <wl@gnu.org>
+
+ * src/tools/docmaker/tohtml.py (block_footer_start,
+ block_footer_middle): Beautify output.
+
+2008-05-25 Werner Lemberg <wl@gnu.org>
+
+ * src/raster/ftraster.c (fc_black_render): Return 0 when we are
+ trying to render into a zero-width/height bitmap, not an error code.
+
+ * src/truetype/ttgload.c (load_truetype_glyph): Move initialization
+ of the graphics state for subglyphs to...
+ (TT_Hint_Glyph): This function.
+ Hinting instructions for a composite glyph apparently refer to the
+ just hinted subglyphs, not the unhinted, unscaled outline. This
+ seems to fix Savannah bugs #20973 and (at least partially) #23310.
+
+2008-05-20 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ * src/base/ftmac.c (FT_New_Face_From_Suitcase): Check if valid
+ `aface' is returned by FT_New_Face_From_FOND(). The patch was
+ proposed by an anonymous reporter of Savannah bug #23204.
+
+2008-05-18 Werner Lemberg <wl@gnu.org>
+
+ * src/pshinter/pshalgo.c (ps_hints_apply): Reset scale values after
+ correction for pixel boundary. Without this patch, the effect can
+ be cumulative under certain circumstances, making glyphs taller and
+ taller after each call. This fixes Savannah bug #19976.
+
+2008-05-18 Werner Lemberg <wl@gnu.org>
+
+ * src/base/ftdebug.c (FT_Message, FT_Panic): Send output to stderr.
+ This fixes Savannah bug #23280.
+
+ * docs/CHANGES: Updated.
+
+2008-05-18 David Turner <david@freetype.org>
+
+ * src/psnames/psmodule.c (ft_wgl_extra_unicodes,
+ ft_wgl_extra_glyph_names, ft_wgl_extra_glyph_name_offsets,
+ ps_check_wgl_name, ps_check_wgl_unicode): Use `static' to make
+ declarations non-global.
+
+ * src/type1/t1load.c: Add missing comment.
+
+2008-05-17 Sam Hocevar <samh>
+
+ * src/truetype/ttgload.c (TT_Load_Simple_Glyph): Handle zero-contour
+ glyphs correctly. Patch from Savannah bug #23277.
+
+2008-05-16 Werner Lemberg <wl@gnu.org>
+
+ * docs/CHANGES: Updated.
+
+2008-05-16 Sergey Tolstov <stolstov@esri.com>
+
+ Improve support for WGL4 encoded fonts.
+
+ * src/psnames/psmodule.c (WGL_EXTRA_LIST_SIZE): New macro.
+ (ft_wgl_extra_unicodes, ft_wgl_extra_glyph_names,
+ ft_wgl_extra_glyph_name_offsets): New arrays.
+ (ps_check_wgl_name, ps_check_wgl_unicode): New functions.
+ (ps_unicodes_init): Use them to add additional Unicode mappings.
+
+2008-05-15 Werner Lemberg <wl@gnu.org>
+
+ * src/psaux/t1decode.c (t1_decoder_parse_charstrings)
+ <op_closepath>: `closepath' without a path is a no-op, not an error
+ (cf. the PS reference manual).
+
+ Reported by Martin McBride.
+
+2008-05-15 Werner Lemberg <wl@gnu.org>
+
+ * builds/toplevel.mk (CONFIG_GUESS, CONFIG_SUB): Updated.
+
+2008-05-15 Werner Lemberg <wl@gnu.org>
+
+ * src/type1/t1load.c (parse_subrs): Accept fonts with a subrs array
+ which contains a single but empty entry. This is technically
+ invalid (since it must end with `return'), but...
+
+ Reported by Martin McBride.
+
+2008-05-14 Werner Lemberg <wl@gnu.org>
+
+ Finish fix of scaling bug of CID-keyed CFF subfonts.
+
+ * include/freetype/internal/ftcalc.h, src/base/ftcalc.c
+ (FT_Matrix_Multiply_Scaled, FT_Vector_Transform_Scaled): New
+ functions.
+
+ * src/cff/cffobjs.h (CFF_Internal): New struct. It is used to
+ provide global hinting data for both the top-font and all subfonts
+ (with proper scaling).
+
+ * src/cff/cffobjs.c (cff_make_private_dict): New function, using
+ code from `cff_size_init'.
+ (cff_size_init, cff_size_done, cff_size_select, cff_size_request):
+ Use CFF_Internal and handle subfonts.
+ (cff_face_init): Handle top-dict and subfont matrices correctly;
+ apply some heuristic in case of unlikely matrix concatenation
+ results. This has been discussed with people from Adobe (thanks
+ goes mainly to David Lemon) who confirm that the CFF specs are fuzzy
+ and not correct.
+
+ * src/cff/cffgload.h (cff_decoder_prepare): Add `size' argument.
+
+ * src/cff/cffgload.c (cff_builder_init): Updated.
+ (cff_decoder_prepare): Handle hints globals for subfonts.
+ Update all callers.
+ (cff_slot_load): Handling scaling of subfonts properly.
+
+ * src/cff/cffparse.c (cff_parse_fixed_dynamic): New function.
+ (cff_parse_font_matrix): Use it.
+
+ * src/cff/cfftypes.h (CFF_FontDictRec): Make `units_per_em'
+ FT_ULong.
+
+ * docs/CHANGES: Document it.
+
+2008-05-13 Werner Lemberg <wl@gnu.org>
+
+ * src/winfonts/winfnt.c (fnt_face_get_dll_font, FNT_Face_Init):
+ Handle case `face_index < 0'.
+ * docs/CHANGES: Document it.
+
+2008-05-04 Werner Lemberg <wl@gnu.org>
+
+ First steps to fix the scaling bug of CID-keyed CFF subfonts,
+ reported by Ding Li on 2008/03/28 on freetype-devel.
+
+ * src/base/cff/cffparse.c (power_tens): New array.
+ (cff_parse_real): Rewritten to introduce a fourth parameter which
+ returns the `scaling' of the real number so that we have no
+ precision loss. This is not used yet.
+ Update all callers.
+ (cff_parse_fixed_thousand): Replace with...
+ (cff_parse_fixed_scaled): This function. Update all callers.
+
+2008-05-03 Werner Lemberg <wl@gnu.org>
+
+ * src/base/ftobjs.c (FT_Load_Glyph): Call the auto-hinter without
+ transformation since it recursively calls FT_Load_Glyph. This fixes
+ Savannah bug #23143.
+
+2008-04-26 Werner Lemberg <wl@gnu.org>
+
+ * include/freetype/internal/psaux.h (T1_BuilderRec): Mark `scale_x'
+ and `scale_y' as obsolete since they aren't used.
+ * src/psaux/psobjs.c (t1_builder_init): Updated.
+
+ * src/cff/cffgload.h (CFF_Builder): Mark `scale_x' and `scale_y' as
+ obsolete since they aren't used.
+ * src/cff/cffgload.c (cff_builder_init): Updated.
+
+2008-04-14 Werner Lemberg <wl@gnu.org>
+
+ * src/pcf/pcfdrivr.c (PCF_Face_Init): Protect call to
+ `FT_Stream_OpenLZW' with `FT_CONFIG_OPTION_USE_LZW'. From Savannah
+ bug #22909.
+
+2008-04-13 Werner Lemberg <wl@gnu.org>
+
+ * src/psaux/psconv.c (PS_Conv_ToFixed): Increase precision if
+ integer part is zero.
+
+2008-04-01 Werner Lemberg <wl@gnu.org>
+
+ Fix compilation with g++ 4.1 (with both `single' and `multi'
+ targets).
+
+ * src/base/ftobjs.c (FT_Open_Face): Don't define a variable in block
+ which is crossed by a `goto'.
+
+ * src/otvalid/otvalid.h (otv_MATH_validate): Add prototype.
+
+2008-03-31 Werner Lemberg <wl@gnu.org>
+
+ Fix support for subsetted CID-keyed CFFs.
+
+ * include/freetype/freetype.h (FT_FACE_FLAG_CID_KEYED,
+ FT_IS_CID_KEYED): New macros.
+
+ * src/cff/cffobjs.c (cff_face_init): Set number of glyphs to the
+ maximum CID value in CID-keyed CFFs.
+ Handle FT_FACE_FLAG_CID_KEYED flag.
+
+ * docs/CHANGES: Document it.
+
+
+ Fix CFF font matrix calculation and improve precision.
+
+ * src/cff/cffparse.c (cff_parse_real): Increase precision if integer
+ part is zero.
+ (cff_parse_font_matrix): Simplify computation of `units_per_em';
+ this prevents overflow also.
+
+
+ Support FT_Get_CID_Registry_Ordering_Supplement for PS CID fonts.
+
+ * src/cid/cidriver.c: Include FT_SERVICE_CID_H.
+ (cid_get_ros): New function.
+ (cid_service_cid_info): New service structure.
+ (cid_services): Register it.
+
+2008-03-23 Werner Lemberg <wl@gnu.org>
+
+ Adjustments for Visual C++ 8.0, as reported by Rainer Deyke.
+
+ * builds/compiler/visualc.mk (CFLAGS): Remove /W5.
+ (ANSIFLAGS): Add _CRT_SECURE_NO_DEPRECATE.
+
+2008-03-21 Laurence Darby <ldarby>
+
+ * src/type1/t1objs.c (T1_Face_Init): Use `/Weight'. Patch from
+ Savannah bug #22675.
+
+2008-03-13 Derek Clegg <dclegg@apple.com>
+
+ * src/truetype/ttgxvar.c (TT_Get_MM_Var): Fix named style loop.
+ Patch from Savannah bug #22541.
+
+2008-03-03 Masatoshi Kimura <VYV03354@nifty.ne.jp>
+
+ * src/sfnt/ttcmap.c (tt_cmap14_char_map_nondef_binary,
+ tt_cmap14_find_variant): Return correct value.
+ (tt_cmap14_variant_chars): Fix check for `di'.
+
+2008-02-29 Werner Lemberg <wl@gnu.org>
+
+ * docs/CHANGES: Updated.
+
+2008-02-29 Wolf
+
+ Add build support for symbian platform. From Savannah bug #22440.
+
+ * builds/symbian/*: New files.
+
+2008-02-21 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ * src/base/ftmac.c (parse_fond): Fix a bug of PostScript font name
+ synthesis. For any face of a specified FOND, always the name for
+ the first face was used. Except of a FOND that refers multiple
+ Type1 font files, wrong synthesized font names are not used at all,
+ so this is an invisible bug. A few limit checks are added too.
+
+ * builds/mac/ftmac.c: Ditto.
+
+2008-02-21 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ * builds/unix/configure.raw: Split compiler option to link Carbon
+ frameworks to one option for CoreServices framework and another
+ option for ApplicationServices framework. The split options can be
+ managed by GNU libtool to avoid unrequired duplication when FreeType
+ is linked with other applications. Suggested by Daniel Macks,
+ Savannah bug #22366.
+
+2008-02-18 Victor Stinner <victor.stinner@haypocalc.com>
+
+ * src/truetype/ttinterp.c (Ins_IUP): Check number of points. Fix
+ from Savannah bug #22356.
+
+2008-02-17 Jonathan Blow <jon@number-none.com>
+
+ * src/autofit/afloader.c (af_loader_load_g, af_loader_load_glyph):
+ Check for valid callback pointers.
+
+2008-02-15 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ * src/base/ftmac.c (FT_New_Face_From_SFNT): Check the sfnt resource
+ handle by its value instead of ResError(), fix provided by Deron
+ Kazmaier. According to the Resource Manager Reference,
+ GetResource(), Get1Resource(), GetNamedResource(),
+ Get1NamedResource() and RGetResource() set noErr but return NULL
+ handle when they can not find the requested resource. These
+ functions never return undefined values, so it is sufficient to
+ check if the handle is not NULL.
+
+ * builds/mac/ftmac.c (FT_New_Face_From_SFNT): Ditto.
+
+2008-02-14 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ * src/base/ftbase.c: <ftmac.c> is replaced by "ftmac.c" as other
+ inclusion styles. Now it always includes src/base/ftmac.c;
+ builds/mac/ftmac.c is never included in any configuration.
+
+ * builds/unix/configure.raw: Print warning if configure is executed
+ with options to specify Carbon functionalities explicitly.
+
+ * docs/INSTALL.MAC: Note that legacy builds/mac/ftmac.c is not
+ included automatically and manual replacement is required.
+
+2008-02-11 Werner Lemberg <wl@gnu.org>
+
+ * builds/modules.mk (CLOSE_MODULE, REMOVE_MODULE), builds/detect.mk
+ (dos_setup), builds/freetype.mk (clean_project_dos,
+ distclean_project_dos): Don't use \ but $(SEP). Reported by Duncan
+ Murdoch.
+
+2008-01-18 Sylvain Pasche <sylvain.pasche@gmail.com>
+
+ * src/base/ftlcdfil.c (_ft_lcd_filter_legacy): Updated comment to
+ mention intra-pixel algorithm.
+
+ * include/freetype/freetype.h (FT_Render_Mode): Mention that
+ FT_Library_SetLcdFilter can be used to reduce fringes.
+
+2008-01-16 Werner Lemberg <wl@gnu.org>
+
+ * src/raster/ftraster.c (ft_black_render): Check `outline' before
+ using it. Reported by Allan Yang.
+
+2008-01-12 Werner Lemberg <wl@gnu.org>
+
+ * src/raster/ftraster.c (FT_CONFIG_OPTION_5_GRAY_LEVELS): Remove.
+
+2008-01-12 Allan Yang, Jian Hua - SH <Allan.Yang@fmc.fujitsu.com>
+
+ * src/raster/ftraster.c (ft_black_init)
+ [FT_RASTER_OPTION_ANTI_ALIASING]: Fix compilation.
+
+2008-01-10 Werner Lemberg <wl@gnu.org>
+
+ * src/truetype/ttgload.c (load_truetype_glyph): Handle the case
+ where the number of contours in a simple glyph is zero (and which
+ does contain an entry in the `glyf' table). This fixes Savannah bug
+ #21990.
+
+2008-01-04 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ Formatting suggested by Sean McBride.
+
+ * builds/mac/ftmac.c: Formatting (tab expanded).
+ * src/autofit/afindic.c: Ditto.
+ * src/base/ftcid.c: Ditto.
+ * src/base/ftmac.c: Ditto.
+
+2007-12-30 Werner Lemberg <wl@gnu.org>
+
+ * src/smooth/ftgrays.c (gray_raster_render): Check `outline'
+ correctly.
+
+2007-12-21 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ Improvement of POSIX resource-fork accessor to load unsorted
+ references in a resource. In HelveLTMM (resource-fork PostScript
+ Type1 font bundled with Mac OS X since 10.3.x), the appearance order
+ of PFB chunks is not sorted; sorting the chunks by reference IDs is
+ required.
+
+ * include/freetype/internal/ftrfork.h (FT_RFork_Ref): New structure
+ type to store a pair of reference ID and offset to the chunk.
+
+ * src/base/ftrfork.c (ft_raccess_sort_ref_by_id): New function to
+ sort FT_RFork_Ref by their reference IDs.
+
+ (FT_Raccess_Get_DataOffsets): Returns an array of offsets that is
+ sorted by reference ID.
+
+2007-12-14 Werner Lemberg <wl@gnu.org>
+
+ * src/cff/cffparse.c (cff_parse_real): Don't apply `power_ten'
+ division too early; otherwise the most significant digit(s) of the
+ final result are lost as the value is truncated to an integer. This
+ fixes Savannah bug #21794 (where the patch has been posted too).
+
+2007-12-06 Fix <4d876b82@gmail.com>
+
+ Pass options from one configure script to another as-is (not
+ expanded). This is needed for options like
+ --includedir='${prefix}/include'.
+
+ * builds/unix/detect.mk, configure: Prevent argument expansion in
+ call to the (real) `configure' script.
+
+2007-12-06 Werner Lemberg <wl@gnu.org>
+
+ * src/truetype/ttgload.c (load_truetype_glyph): Fix compilation if
+ TT_USE_BYTECODE_INTERPRETER isn't defined.
+
+2007-12-06 Werner Lemberg <wl@gnu.org>
+
+ There exist CFFs which contain opcodes for the Type 1 operators
+ `hsbw' and `closepath' which are both invalid in Type 2 charstrings.
+ However, it doesn't harm to support them.
+
+ * src/cff/cffgload.c (CFF_Operator): Add `cff_op_hsbw' and
+ `cff_op_closepath.'
+ (cff_argument_counts): Ditto.
+
+ (cff_decoder_parse_charstrings): Handle Type 1 opcodes 9 (closepath)
+ and 13 (hsbw) which are invalid in Type 2 charstrings.
+
+2007-12-06 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ * src/base/ftrfork.c (raccess_guess_darwin_newvfs): New function to
+ support new pathname syntax `..namedfork/rsrc' to access a resource
+ fork on Mac OS X. The legacy syntax `/rsrc' does not work on
+ case-sensitive HFS+.
+ (raccess_guess_darwin_hfsplus): Fix a bug in the calculation of
+ buffer size to store a pathname.
+ * include/freetype/internal/ftrfork.h: Increment the number of
+ resource fork guessing rule.
+
+2007-12-06 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ * builds/unix/configure.raw: Improve the compile tests to search
+ Carbon functions.
+ * builds/mac/ftmac.c: Import fixes for Carbon incompatibilities
+ proposed by Sean McBride from src/base/ftmac.c (see 2007-11-16).
+
+2007-12-06 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ The documents and comments for Mac OS X are improved by Sean
+ McBride.
+
+ * src/base/ftmac.c: Fix a comment.
+ * include/freetype/ftmac.h: Ditto.
+ * docs/INSTALL.MAC: Improve English and add comment on lowest
+ system version specified by MACOSX_DEPLOYMENT_TARGET.
+
+2007-12-04 Werner Lemberg <wl@gnu.org>
+
+ * src/cff/cffload.c (cff_subfont_load): Don't use logical OR to
+ concatenate error codes.
+ * src/sfnt/ttsbit.c (Load_SBit_Range): Ditto.
+
+2007-12-04 Graham Asher <graham.asher@btinternet.com>
+
+ * src/truetype/ttobjs.c (tt_face_init): Don't use logical OR to
+ concatenate error codes.
+
+2007-12-04 Sean McBride <sean@rogue-research.com>
+
+ * src/pfr/pfrgload.c (pfr_glyph_load_compound): Remove compiler
+ warning.
+
+2007-11-20 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ Fix MacOS legacy font support by Masatake Yamato on Mac OS X. It is
+ not working since 2.3.5. In FT_Open_New(), if FT_New_Stream()
+ cannot mmap() the specified file and cannot seek to head of the
+ specified file, it returns NULL stream and FT_Open_New() returns the
+ error immediately. On MacOS, most legacy MacOS fonts fall into such
+ a scenario because their data forks are zero-sized and cannot be
+ sought. To proceed to guessing of resource fork fonts, the
+ functions for legacy MacOS font must properly handle the NULL stream
+ returned by FT_New_Stream().
+
+ * src/base/ftobjs.c (IsMacBinary): Return error
+ FT_Err_Invalid_Stream_Operation immediately when NULL stream is
+ passed.
+ (FT_Open_Face): Even when FT_New_Stream() returns an error, proceed
+ to fallback. Originally, legacy MacOS font is tested in the cases
+ of FT_Err_Invalid_Stream_Operation (occurs when data fork is empty)
+ or FT_Err_Unknown_File_Format (occurs when AppleSingle header or
+ .dfont header is combined). Now the case of
+ FT_Err_Cannot_Open_Stream is included.
+
+ * src/base/ftrfork.c (FT_Raccess_Guess): When passed stream is NULL,
+ skip FT_Stream_Seek(), which seeks to the head of stream, and
+ proceed to unit testing of raccess_guess_XXX(). FT_Stream_Seek()
+ for a NULL stream causes a Bus error on Mac OS X.
+ (raccess_guess_apple_double): Return FT_Err_Cannot_Open_Stream
+ immediately if passed stream is NULL.
+ (raccess_guess_apple_single): Ditto.
+
+2007-11-16 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ Fix for Carbon incompatibilities since Mac OS X 10.5,
+ proposed by Sean McBride.
+
+ * doc/INSTALL.MAC: Comment on MACOSX_DEPLOYMENT_TARGET.
+
+ * include/freetype/ftmac.h: Deprecate FT_New_Face_From_FOND and
+ FT_GetFilePath_From_Mac_ATS_Name. Since Mac OS X 10.5, calling
+ Carbon functions from a forked process is classified as unsafe
+ by Apple. All Carbon-dependent functions should be deprecated.
+
+ * src/base/ftmac.c: Use essential header files
+ <CoreServices/CoreServices.h> and
+ <ApplicationServices/ApplicationServices.h> instead of
+ all-in-one header file <Carbon/Carbon.h>.
+
+ Include <sys/syslimits.h> and replace HFS_MAXPATHLEN by Apple
+ genuine macro PATH_MAX.
+
+ Add fallback macro for kATSOptionFlagsUnRestrictedScope which
+ is not found in Mac OS X 10.0.
+
+ Multi-character constants ('POST', 'sfnt' etc) are replaced by
+ 64bit constants calculated by FT_MAKE_TAG() macro.
+
+ For the index in the segment of resource fork, new portable
+ type ResourceIndex is introduced for better compatibility.
+ This type is since Mac OS X 10.5, so it is defined as short
+ when built on older platforms.
+
+ (FT_ATSFontGetFileReference): If build target is only the systems
+ 10.5 and newer, it calls Apple genuine ATSFontGetFileReference().
+
+ (FT_GetFile_From_Mac_ATS_Name): Return an error if system is 10.5
+ and newer or 64bit platform, because legacy type FSSpec type is
+ removed completely.
+
+ (FT_New_Face_From_FSSpec): Ditto.
+
+2007-11-01 Werner Lemberg <wl@gnu.org>
+
+ * src/sfnt/sfobjs.c (sfnt_done_face): Check `sfnt' everywhere. This
+ fixes Savannah bug #21485.
+
+2007-10-29 Daniel Svoboda <dasvo@planeta@cz>
+
+ * src/winfonts/winfnt.c (FNT_Face_Init): Check first that the driver
+ can handle the font at all, then check `face_index'. Otherwise, the
+ driver might return the wrong error code. This fixes Savannah bug
+ #21468.
+
+2007-10-21 Werner Lemberg <wl@gnu.org>
+
+ * src/sfnt/sfobjs.c (sfnt_load_face): Support bit 9 and prepare
+ support for bit 8 of the `fsSelection' field in the `OS/2' table.
+ MS is already using this; hopefully, this becomes part of OpenType
+ 1.5.
+ Prepare also support for `name' IDs 21 (WWS_FAMILY) and 22
+ (WWS_SUBFAMILY).
+
+2007-10-20 Werner Lemberg <wl@gnu.org>
+
+ * src/tools/docmaker/tohtml.py (html_header_2): Fix typo.
+ Add `td.left' element to CSS.
+ (toc_section_enter): Use it.
+
+2007-10-18 David Turner <david@freetype.org>
+
+ * include/freetype/freetype.h, src/base/ftobjs.c: Rename API
+ functions related to cmap type 14 support to the
+ `FT_Object_ActionName' scheme:
+
+ FT_Get_Char_Variant_Index -> FT_Face_GetCharVariantIndex
+ FT_Get_Char_Variant_IsDefault -> FT_Face_GetCharVariantIsDefault
+ FT_Get_Variant_Selectors -> FT_Face_GetVariantSelectors
+ FT_Get_Variants_Of_Char -> FT_Face_GetVariantsOfChar
+ FT_Get_Chars_Of_Variant -> FT_Face_GetCharsOfVariant
+
+ Update documentation accordingly.
+
+ * src/sfnt/ttcmap.c: Stronger cmap 14 validation.
+ Make the code a little more consistent with FreeType coding
+ conventions and modify the cmap14 functions that returned a newly
+ allocated array to use a persistent vector from the TT_CMap14 object
+ instead.
+
+ (TT_CMap14Rec): Provide array and auxiliary data for result.
+ (tt_cmap14_done, tt_cmap14_ensure): New functions.
+
+ (tt_cmap14_init, tt_cmap14_validate, tt_cmap14_char_map_def_binary,
+ tt_cmap14_char_map_nondef_binary, tt_cmap14_find_variant,
+ tt_cmap14_char_var_index, tt_cmap14_variants,
+ tt_cmap14_char_variants, tt_cmap14_def_char_count,
+ tt_cmap14_get_def_chars, tt_cmap14_get_nondef_chars,
+ tt_cmap14_variant_chars, tt_cmap14_class_rec): Updated and improved.
+
+2007-10-15 George Williams <gww@silcom.com>
+
+ Add support for cmap type 14.
+
+ * devel/ftoption.h, include/freetype/config/ftoption.h
+ (TT_CONFIG_CMAP_FORMAT_14): New macro.
+
+ * include/freetype/internal/ftobjs.h (FT_CMap_CharVarIndexFunc,
+ FT_CMap_CharVarIsDefaultFunc, FT_CMap_VariantListFunc,
+ FT_CMap_CharVariantListFunc, FT_CMap_VariantCharListFunc): New
+ support function prototypes.
+ (FT_CMap_ClassRec): Add them.
+ Update all users.
+
+ * include/freetype/ttnameid.h (TT_APPLE_ID_VARIANT_SELECTOR): New
+ macro.
+
+ * include/freetype/freetype.h (FT_Get_Char_Variant_Index,
+ FT_Get_Char_Variant_IsDefault, FT_Get_Variant_Selectors,
+ FT_Get_Variants_Of_Char, FT_Get_Chars_Of_Variant): New API
+ functions.
+
+ * src/base/ftobjs.c (find_variant_selector_charmap): New auxiliary
+ function.
+ (FT_Set_Charmap): Disallow cmaps of type 14.
+ (FT_Get_Char_Variant_Index, FT_Get_Char_Variant_IsDefault,
+ FT_Get_Variant_Selectors, FT_Get_Variants_Of_Char,
+ FT_Get_Chars_Of_Variant): New API functions.
+
+ * src/sfnt/ttcmap.c (TT_PEEK_UINT24, TT_NEXT_UINT24): New macros.
+
+ (TT_CMap14Rec, tt_cmap14_init, tt_cmap14_validate,
+ tt_cmap14_char_index, tt_cmap14_char_next, tt_cmap14_get_info,
+ tt_cmap14_char_map_def_binary, tt_cmap14_char_map_nondef_binary,
+ tt_cmap14_find_variant, tt_cmap14_char_var_index,
+ tt_cmap14_char_var_isdefault, tt_cmap14_variants,
+ tt_cmap14_char_variants, tt_cmap14_def_char_count,
+ tt_cmap14_get_def_chars, tt_cmap14_get_nondef_chars,
+ tt_cmap14_variant_chars, tt_cmap14_class_rec): New functions and
+ structures for cmap 14 support.
+ (tt_cmap_classes): Register tt_cmap14_class_rec.
+ (tt_face_build_cmaps): One more error message.
+
+ * docs/CHANGES: Mention cmap 14 support.
+
+2007-10-01 Werner Lemberg <wl@gnu.org>
+
+ * src/base/ftobjs.c (find_unicode_charmap): If search for a UCS-4
+ charmap fails, do the loop again while searching a UCS-2 charmap.
+ This favours MS charmaps over Apple ones.
+
+2007-08-29 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ * src/base/ftmac.c: Introduction of abstract `short' data types,
+ ResFileRefNum and ResID. These types were introduced for Copland,
+ then backported to MPW. The variables exchanged with FileManager
+ QuickDraw frameworks are redefined by these data types. Patch was
+ proposed by Sean McBride.
+ * builds/mac/ftmac.c: Ditto.
+
+2007-08-18 Werner Lemberg <wl@gnu.org>
+
+ * src/otvalid/otvcommn.c (otv_x_y_ux_sy): Skip context glyphs. Found
+ by Imran Yousaf. Fixes Savannah bug #20773.
+
+ (otv_Lookup_validate): Correct handling of LookupType. Found by
+ Imran Yousaf. Fixes Savannah bug #20782.
+
+2007-08-17 George Williams <gww@silcom.com>
+
+ * src/otvalid/otvgsub.c (otv_SingleSubst_validate): Fix handling of
+ SingleSubstFormat1.
+
+2007-08-11 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ * builds/unix/configure.raw: Fix a bug which sets CC_BUILD by
+ ${build-gcc} (unchecked) instead of by ${build}-gcc (checked).
+ Found by Ryan Hill.
+
+2007-08-11 George Williams <gww@silcom.com>
+
+ * src/otvalid/otvcommn.c, src/otvalid/otvcommn.h
+ (otv_Coverage_validate): Add fourth argument to pass an expected
+ count value. Update all users.
+ Check glyph IDs.
+ (otv_ClassDef_validate): Check `StartGlyph'.
+
+ * src/otvalid/otvgsub.c (otv_SingleSubst_validate): More glyph ID
+ checks.
+
+ * src/otvalid/otvmath.c (otv_MathConstants_validate): There are only
+ 56 constants.
+ (otv_GlyphAssembly_validate, otv_MathGlyphConstruction_validate):
+ Check glyph IDs.
+
+2007-08-08 Werner Lemberg <wl@gnu.org>
+
+ * src/otvalid/otvbase.c, src/otvalid/otvcommn.c,
+ src/otvalid/otvgdef.c, src/otvalid/otvgpos.c, src/otvalid/otvgsub.c,
+ src/otvalid/otvjstf.c: s/FT_INVALID_DATA/FT_INVALID_FORMAT/ where
+ appropriate. Reported by George.
+
+ * include/freetype/internal/fttrace.h: Define `trace_otvmath'.
+
+ * src/otvalid/rules.mk (OTV_DRV_SRC): Add otvmath.c.
+
+ * docs/CHANGES: Updated.
+
+2007-08-08 George Williams <gww@silcom.com>
+
+ Add `MATH' validating support to otvalid module.
+
+ * include/freetype/tttags.h (TTAG_MATH): New macro.
+ * include/freetype/ftotval.h (FT_VALIDATE_MATH): New macro.
+ (FT_VALIDATE_OT): Updated.
+
+ * src/otvalid/otvmath.c: New file.
+
+ * src/otvalid/otvalid.c: Include otvmath.c.
+ * src/otvalid/otvmod.c (otv_validate): Handle `MATH' table.
+
+2007-08-04 Werner Lemberg <wl@gnu.org>
+
+ * builds/unix/configure.raw: Add call to AC_LIBTOOL_WIN32_DLL.
+ Fixes Savannah bug #20686.
+
+2007-08-03 Werner Lemberg <wl@gnu.org>
+
+ * src/psnames/psmodule.c: Fix usage of
+ FT_CONFIG_OPTION_POSTSCRIPT_NAMES macro. Reported by Graham Asher.
+
+2007-07-31 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ * src/base/ftmac.c (open_face_from_buffer): The argument
+ `driver_name' is typed as `const char*' to match with the
+ callers in FT_New_Face_From_LWFN and FT_New_Face_From_SFNT.
+ This is same with open_face_from_buffer in src/base/ftobjs.c.
+ Found and fixed by Sean McBride.
+
+2007-07-28 Werner Lemberg <wl@gnu.org>
+
+ * src/raster/ftraster.c (count_table): Make it conditional.
+ * src/base/ftobjs.c (FT_New_Library): Check FT_RENDER_POOL_SIZE with
+ a preprocessor statement.
+
+2007-07-27 Werner Lemberg <wl@gnu.org>
+
+ * src/base/ftoutln.c (FT_Outline_Translate): Check `outline' before
+ first usage. From Savannah patch #6115.
+
+2007-07-16 Werner Lemberg <wl@gnu.org>
+
+ * docs/CHANGES: Updated.
+
+2007-07-16 Derek Clegg <dclegg@apple.com>
+
+ Add new service for getting the ROS from a CID font.
+
+ * include/freetype/config/ftheader.h (FT_CID_H): New macro.
+ * include/freetype/ftcid.h: New file.
+
+ * include/freetype/internal/ftserv.h (FT_SERVICE_CID_H): New macro.
+ * include/freetype/internal/services/svcid.h: New file.
+
+ * src/base/ftcid.c: New file.
+
+ * src/cff/cffdrivr.c: Include FT_SERVICE_CID_H.
+ (cff_get_ros): New function.
+ (cff_service_cid_info): New service structure.
+ (cff_services): Register it.
+
+ * src/cff/cffload.c (cff_font_done): Free registry and ordering.
+
+ * src/cff/cfftypes.h (CFF_FontRec): Add `registry' and `ordering'.
+
+ * modules.cfg (BASE_EXTENSIONS): Add ftcid.c.
+
+2007-07-11 Derek Clegg <dclegg@apple.com>
+
+ Add support for postscript name service to CFF driver.
+
+ * src/cff/cffdrivr.c: Include FT_SERVICE_POSTSCRIPT_NAME_H.
+ (cff_get_ps_name): New function.
+ (cff_service_ps_name): New service structure.
+ (cff_services): Register it.
+
+2007-07-07 Werner Lemberg <wl@gnu.org>
+
+ * src/base/ftglyph.c (FT_Glyph_Copy): Fix initialization of
+ `target'. Reported by Sean McBride.
+
+2007-07-06 Werner Lemberg <wl@gnu.org>
+
+ * src/pfr/pfrcmap.c: Include pfrerror.h.
+
+ * src/autofit/afindic.c: Add some external declarations to pacify
+ `make multi' compilation.
+
+ * src/cid/cidgload.c (cid_load_glyph): Pacify compiler.
+
+ * src/cff/cffdrivr.c (cff_ps_get_font_info), src/cff/cffobjs.c
+ (cff_strcpy), include/freetype/internal/ftmemory.h (FT_MEM_STRDUP),
+ src/autofit/aflatin.c (af_latin_hints_compute_edges),
+ src/autofit/afcjk.c (af_cjk_hints_compute_edges), src/sfnt/ttmtx.c
+ (tt_face_get_metrics), src/base/ftobjs.c (open_face)
+ [FT_CONFIG_OPTION_INCREMENTAL]: Fix compilation with C++ compiler.
+
+ * docs/release: Mention test compilation targets.
+
+2007-07-04 Werner Lemberg <wl@gnu.org>
+
+ * docs/PROBLEMS: Mention that some PS based fonts can't be
+ handled correctly by FreeType.
+
+ * src/truetype/ttgload.c (load_truetype_glyph): Always allow a
+ recursion depth of 1. This was the maximum value in TrueType 1.0,
+ and some older fonts don't set this field correctly.
+
+ * src/gxvalid/gxvmort1.c
+ (gxv_mort_subtable_type1_substTable_validate): Fix tracing message.
+
+2007-07-03 Werner Lemberg <wl@gnu.org>
+
+ * src/autofit/aflatin.c (af_latin_metrics_init_blues): Initialize
+ `round' to pacify compiler.
+
+2007-07-02 Werner Lemberg <wl@gnu.org>
+
+
+ * Version 2.3.5 released.
+ =========================
+
+
+ Tag sources with `VER-2-3-5'.
+
+ * docs/CHANGES, docs/VERSION.DLL: Update documentation and bump
+ version number to 2.3.5.
+
+ * README, Jamfile (RefDoc), builds/win32/visualc/index.html,
+ builds/win32/visualc/freetype.dsp,
+ builds/win32/visualc/freetype.vcproj,
+ builds/win32/visualce/index.html,
+ builds/win32/visualce/freetype.dsp,
+ builds/win32/visualce/freetype.vcproj: s/2.3.4/2.3.5/, s/234/235/.
+
+ * include/freetype/freetype.h (FREETYPE_PATCH): Set to 5.
+
+ * builds/unix/configure.raw (version_info): Set to 9:16:3.
+
+2007-07-01 David Turner <david@freetype.org>
+
+ * include/freetype/freetype.h, src/base/ftpatent.c
+ (FT_Face_SetUnpatentedHinting): New function to dynamically change
+ the setting after a face is created.
+
+ * src/truetype/ttgload.c (TT_Load_Simple_Glyph): Fix a small bug
+ that created distortions in the bytecode interpreter results.
+
+2007-06-30 David Turner <david@freetype.org>
+
+ * src/truetype/ttinterp.c (Ins_IUP): Add missing variable
+ initialization.
+
+ * src/autofit/aflatin.c (af_latin_metrics_init_blues): Get rid of an
+ infinite loop in the case of degenerate fonts.
+
+2007-06-26 Rahul Bhalerao <b.rahul.pm@gmail.com>
+
+ Add autofit module for Indic scripts. This currently just reuses
+ the CJK-specific functions.
+
+ * include/freetype/config/ftoption.h (AF_CONFIG_OPTION_INDIC): New
+ macro.
+ * devel/ftoption.h: Synchronize with
+ include/freetype/config/ftoption.h.
+
+ * src/autofit/afindic.c, src/autofit/afindic.h: New files.
+
+ * src/autofit/afglobal.c, src/autofit/aftypes.h,
+ src/autofit/autofit.c: Updated.
+
+ * src/autofit/Jamfile (_sources), * src/autofit/rules.mk
+ (AUTOF_DRV_SRC): Updated.
+
+2007-06-23 David Turner <david@freetype.org>
+
+ * src/truetype/ttgload.c (TT_Load_Simple): Fix change from
+ 2007-06-16 that prevented the TrueType module from loading most
+ glyphs.
+
+2007-06-20 Werner Lemberg <wl@gnu.org>
+
+ * src/cff/cffgload.c (cff_slot_load): Fix logic of 2007-05-28
+ change.
+
+2007-06-19 Werner Lemberg <wl@gnu.org>
+
+ * src/type1/t1load.c (parse_encoding): Handle one more error.
+
+2007-06-19 Dmitry Timoshkov <dmitry@codeweavers.com>
+
+ * src/winfonts/winfnt.c (fnt_face_get_dll_font): Return error
+ FNT_Err_Invalid_File_Format if file format was recognized but
+ the file doesn't contain any FNT(NE) or RT_FONT(PE) resources.
+ Add verbose debug logs to make it easier to debug failing load
+ attempts.
+ (FNT_Face_Init): A single FNT font can't contain more than 1 face,
+ so return an error if requested face index is > 0.
+ Do not do further attempt to load fonts if a previous attempt has
+ failed but returned error FNT_Err_Invalid_File_Format, i.e., the
+ file format has been recognized but no fonts found in the file.
+
+2007-07-19 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ * src/base/ftmac.c: Apply patches proposed by Sean McBride.
+ (FT_GetFile_From_Mac_Name): Insert FT_UNUSED macros to fix
+ the compiler warnings against unused arguments.
+ (FT_ATSFontGetFileReference): Ditto.
+ (FT_GetFile_From_Mac_ATS_Name): Ditto.
+ (FT_New_Face_From_FSSpec): Ditto.
+ (lookup_lwfn_by_fond): Fix wrong comment.
+ Replace `const StringPtr' by more appropriate type
+ `ConstStr255Param'.
+ FSRefMakePathPath always returns UTF8 POSIX pathname in
+ Mach-O, thus HFS pathname support is dropped.
+ (count_faces): Remove HLock and HUnlock which is not
+ required on Mac OS X anymore.
+ (FT_New_Face_From_SFNT): Ditto.
+ (FT_New_Face_From_FOND): Ditto.
+ * builds/mac/ftmac.c: Synchronize to src/base/ftmac.c,
+ except of HFS pathname support and HLock/HUnlock.
+ They are required on classic CFM environment.
+
+2007-06-18 Werner Lemberg <wl@gnu.org>
+
+ * src/psaux/psobjs.c (ps_parser_skip_PS_token): Remove incorrect
+ assertion.
+ (ps_parser_to_bytes): Fix error message.
+
+ * src/type42/t42objs.c (T42_Open_Face): Handle one more error.
+ * src/type42/t42parse.c (t42_parse_sfnts): s/alloc/allocated/.
+ Don't allow mixed binary and hex strings.
+ Handle string_size == 0 and string_buf == 0.
+ (t42_parse_encoding): Handle one more error.
+
+2007-06-18 Werner Lemberg <wl@gnu.org>
+
+ * src/psaux/psobjs.c (ps_tofixedarray, ps_tocoordarray): Fix exit
+ logic.
+ (ps_parser_load_field) <T1_FIELD_TYPE_BBOX>: Skip delimiters
+ correctly.
+ (ps_parser_load_field_table): Use `fields->array_max' instead of
+ T1_MAX_TABLE_ELEMENTS to limit the number of arguments.
+
+ * src/cff/cffgload.c (cff_decoder_prepare): Fix change from
+ 2007-06-06.
+
+2007-06-17 Werner Lemberg <wl@gnu.org>
+
+ * src/tools/ftrandom.c (font_size): New global variable.
+ (TestFace): Use it.
+ (main): Handle new option `--size' to set `font_size'.
+ (Usage): Updated.
+
+ * src/winfonts/winfnt.c (fnt_face_get_dll_font): Exit in case of
+ invalid font.
+ (FNT_Load_Glyph): Protect against invalid bitmap width.
+
+2007-06-16 David Turner <david@freetype.org>
+
+ * src/smooth/ftgrays.c (gray_find_cell, gray_set_cell, gray_hline):
+ Prevent integer overflows when rendering very large outlines.
+
+ * src/truetype/ttgload.c (TT_Load_Simple_Glyph): Check the
+ well-formedness of the contours array when loading a glyph.
+
+ * src/truetype/ttinterp.c (TT_Load_Context): Initialize `zp0', `zp1',
+ and `zp2'.
+ (Ins_IP): Check argument ranges to reject bogus operations properly.
+ (IUP_WorkerRec): Add `max_points' member.
+ (_iup_worker_interpolate): Check argument ranges.
+ (Ins_IUP): Ignore empty outlines.
+
+2007-06-16 Dmitry Timoshkov <dmitry@codeweavers.com>
+
+ * src/winfonts/winfnt.h: Add necessary structures for PE resource
+ parsing.
+ (WinPE32_HeaderRec): New structure.
+ (WinPE32_SectionRec): New structure.
+ (WinPE_RsrcDirRec): New structure.
+ (WinPE_RsrcDirEntryRec): New structure.
+ (WinPE_RsrcDataEntryRec): New structure.
+ (FNT_FontRec): Remove unused `size_shift' field.
+
+ * src/winfonts/winfnt.c (fnt_face_get_dll_font): Add support for
+ loading bitmap .fon files in PE format.
+
+2007-06-15 Dmitry Timoshkov <dmitry@codeweavers.com>
+
+ * builds/win32/ftdebug.c: Unify debug level handling with other
+ platforms.
+
+2007-06-14 Dmitry Timoshkov <dmitry@codeweavers.com>
+
+ * builds/win32/ftdebug.c (FT_Message): Send debug output to the
+ console as well as to the debugger.
+
+2007-06-14 Werner Lemberg <wl@gnu.org>
+
+ * src/autofit/aflatin.c (af_latin_uniranges): Expand structure to
+ cover all ranges which could possibly be handled by the aflatin
+ module (since the default fallback for unknown ranges is now the
+ afcjk module). It might be necessary to fine-tune this further by
+ splitting off modules for Greek, Cyrillic, or other blocks.
+
+2007-06-11 David Turner <david@freetype.org>
+
+ * src/autofit/aflatin.c (af_latin_hints_link_segments): Fix
+ incorrect segment linking computation. This was the root cause of
+ Savannah bug #19565.
+
+
+ * src/autofit/* [FT_OPTION_AUTOFIT2]: Some very experimental changes
+ to improve the Latin auto-hinter. Note that the new code is
+ disabled by default since it is not stabilized yet.
+
+ * src/autofit/aflatin2.c, src/autofit/aflatin2.h: New files
+ (disabled currently).
+
+ * src/autofit/afhints.c: Remove dead code.
+ (af_axis_hints_new_edge): Add argument to handle segment directions.
+ (af_edge_flags_to_string): New function.
+ (af_glyph_hints_dump_segments, af_glyph_hints_dump_edges): Handle
+ option flags.
+ (af_glyph_hints_reload): Add argument to handle inflections.
+ Simplify.
+ (af_direction_compute): Fine tuning.
+ (af_glyph_hints_align_edge_points): Fix logic.
+ (af_glyph_hints_align_strong_points): Do linear search for small
+ edge counts.
+ (af_glyph_hints_align_weak_points): Skip any touched neighbors.
+ (af_iup_shift): Handle zero `delta'.
+
+ * src/autofit/afhints.h: Updated.
+ (AF_SORT_SEGMENTS): New macro (disabled).
+ (AF_AxisHintsRec) [AF_SORT_SEGMENTS]: New member `mid_segments'.
+
+ * src/autofit/afglobal.c (af_face_globals_get_metrics): Add
+ argument to pass option flags for handling scripts.
+ * src/autofit/afglobal.h: Updated.
+
+ * src/autofit/afcjk.c: Updated.
+ * src/autofit/aflatin.c: Updated.
+ (af_latin_metrics_scale_dim): Don't reduce scale by 2%.
+
+ (af_latin_hints_compute_segments) [AF_HINT_METRICS]: Remove dead code.
+ (af_latin_hints_compute_edges) [AF_HINT_METRICS]: Remove dead code.
+ Don't set `edge->dir'
+ (af_latin_hint_edges): Add more logging.
+
+ * src/autofit/afloader.c: Updated.
+
+2007-06-11 Werner Lemberg <wl@gnu.org>
+
+ * docs/CHANGES: Document FT_Face_CheckTrueTypePatents.
+
+2007-06-10 David Turner <david@freetype.org>
+
+ * src/truetype/ttgload.c (TT_Load_Simple_Glyph): Slight speed-up to
+ the TrueType glyph loader.
+
+ * include/freetype/config/ftoption.h: Clarify documentation
+ regarding unpatented hinting.
+
+
+ Add new `FT_Face_CheckTrueTypePatents' API.
+
+ * include/freetype/freetype.h (FT_Face_CheckTrueTypePatents): New
+ declaration.
+
+ * include/freetype/internal/services/svttglyf.h,
+ src/base/ftpatent.c: New files.
+
+ * include/freetype/internal/ftserv.h (FT_SERVICE_TRUETYPE_GLYF_H):
+ New macro.
+
+ * src/truetype/ttdriver.c: Include FT_SERVICE_TRUETYPE_GLYF_H and
+ `ttpload.h'.
+ (tt_service_truetype_glyf): New service structure.
+ (tt_services): Register it.
+
+ * modules.cfg (BASE_EXTENSIONS), src/base/Jamfile (_sources): Add
+ `ftpatent.c'.
+
+2007-06-08 Werner Lemberg <wl@gnu.org>
+
+ * src/sfnt/sfobjs.c (sfnt_load_face): Undo change from 2007-04-28.
+ Fonts without a cmap must be handled correctly by FreeType (anything
+ else would be a bug).
+
+
+ * src/psaux/t1decode.c (t1_decoder_parse_charstrings)
+ [FT_DEBUG_LEVEL_TRACE]: Improve tracing message.
+
+2007-06-07 Werner Lemberg <wl@gnu.org>
+
+ * src/sfnt/ttsbit0.c (tt_sbit_decoder_init,
+ tt_sbit_decoder_load_image): Protect against integer overflows.
+
+
+ * src/pfr/pfrgload.c (pfr_glyph_load_simple): More bounding checks
+ for `x_control' and `y_control'.
+
+2007-06-06 Werner Lemberg <wl@gnu.org>
+
+ * src/base/ftoutln.c (FT_Outline_Decompose): Check `last'.
+
+
+ * src/pfr/pfrcmap.c (pfr_cmap_init): Convert assertion into normal
+ FreeType error.
+
+
+ * src/winfonts/winfnt.c (fnt_face_get_dll_font): Do a rough check of
+ `font_count'.
+
+
+ * src/type1/t1load.c (parse_font_matrix): Check `temp_scale'.
+
+
+ * src/cff/cffgload.c (cff_decoder_prepare): Change return type to
+ `FT_Error'.
+ Check `fd_index'.
+ (cff_slot_load): Updated.
+ * src/cff/cffgload.h: Updated.
+
+2007-06-05 Werner Lemberg <wl@gnu.org>
+
+ * src/pfr/pfrgload.c (pfr_glyph_done): Comment out unused code.
+ (pfr_glyph_load_simple): Convert assertion into normal FreeType
+ error.
+ Check `idx'.
+ (pfr_glyph_load_compound, pfr_glyph_curve_to, pfr_glyph_line_to):
+ Convert assertion into normal FreeType error.
+
+ * src/pfr/pfrtypes.h (PFR_GlyphRec): Comment out unused code.
+
+
+ * src/winfonts/winfnt.c (FNT_Face_Init): Check `family_size'.
+
+
+ * src/psaux/psobjs.c (ps_tocoordarray, ps_tofixedarray): Return -1
+ in case of parsing error.
+ (ps_parser_load_field): Updated.
+
+ * src/type1/t1load.c (parse_font_matrix): Updated.
+
+2007-06-04 Werner Lemberg <wl@gnu.org>
+
+ * src/cid/cidgload.c (cid_load_glyph): Check `fd_select'.
+
+ * src/tools/ftrandom/Makefile: Depend on `libfreetype.a'.
+
+2007-06-03 Werner Lemberg <wl@gnu.org>
+
+ * src/tools/ftrandom/*: Add the `ftrandom' test program written by
+ George Williams (with some modifications).
+
+2007-06-03 Werner Lemberg <wl@gnu.org>
+
+ * src/base/ftobjs.c (destroy_charmaps), src/type1/t1objs.c
+ (T1_Face_Done), src/winfonts/winfnt.c (FNT_Face_Done): Check for
+ face == NULL. Suggested by Graham Asher.
+
+2007-06-03 Ismail Dönmez <ismail@pardus.org.tr>
+
+ * src/base/ftobjs.c (FT_Request_Metrics): Fix compiler warning.
+
+2007-06-02 Werner Lemberg <wl@gnu.org>
+
+ * include/freetype/fterrdef.h (FT_Err_Corrupted_Font_Header,
+ FT_Err_Corrupted_Font_Glyphs): New error codes for BDF files.
+
+ * src/bdf/bdflib.c (bdf_load_font): Use them.
+
+ * src/bdf/bdflib.c (_bdf_parse_start): Check `FONT' better.
+
+2007-06-01 Werner Lemberg <wl@gnu.org>
+
+ * src/base/ftobjs.c (FT_Request_Metrics), src/cache/ftccmap.c
+ (FTC_CMapCache_Lookup): Remove unused code.
+
+2007-06-01 Sean McBride <sean@rogue-research.com>
+
+ * src/truetype/ttinterp.c (Null_Vector, NULL_Vector): Removed,
+ unused.
+
+2007-06-01 Werner Lemberg <wl@gnu.org>
+
+ * src/cid/cidparse.c (cid_parser_new): Don't continue second search
+ pass for `StartData' if an error has occurred.
+ Exit properly if no `StartData' has been seen at all.
+
+ * builds/unix/ftsystem.c (FT_Stream_Open): Don't use ULONG_MAX but
+ LONG_MAX to avoid compiler warning. Suggested by Sean McBride.
+
+2007-05-30 Werner Lemberg <wl@gnu.org>
+
+ * src/type1/t1load.c (parse_subrs, parse_charstrings): Protect
+ against too small binary data strings.
+
+ * src/bdf/bdflib.c (_bdf_parse_glyphs): Check `STARTCHAR' better.
+
+2007-05-28 David Turner <david@freetype.org>
+
+ * src/cff/cffgload.c (cff_slot_load): Do not apply the identity
+ transformation. This significantly reduces the loading time of CFF
+ glyphs.
+
+ * docs/CHANGES: Updated.
+
+ * src/autofit/afglobal.c (AF_SCRIPT_LIST_DEFAULT): Change default
+ hinting script to CJK, since it works well with more scripts than
+ latin. Thanks to Rahul Bhalerao <b.rahul.pm@gmail.com> for pointing
+ this out!
+
+2007-05-25 Werner Lemberg <wl@gnu.org>
+
+ * docs/CHANGES: Updated.
+
+2007-05-24 Werner Lemberg <wl@gnu.org>
+
+ * src/truetype/ttobjs.h (tt_size_ready_bytecode): Move declaration
+ into TT_USE_BYTECODE_INTERPRETER preprocessor block.
+
+2007-05-24 Graham Asher <graham.asher@btinternet.com>
+
+ * src/truetype/ttobjs.c (tt_size_ready_bytecode)
+ [!TT_USE_BYTECODE_INTERPRETER]: Removed. Unused.
+
+2007-05-22 David Turner <david@freetype.org>
+
+ * src/truetype/ttgload.c (load_truetype_glyph): Fix last change to
+ avoid crashes in case the bytecode interpreter is not used.
+
+
+ Avoid heap blowup with very large .Z font files. This fixes
+ Savannah bug #19910.
+
+ * src/lzw/ftzopen.h (FT_LzwStateRec): Remove `in_cursor',
+ `in_limit', `pad', `pad_bits', and `in_buff' members.
+ Add `buf_tab', `buf_offset', `buf_size', `buf_clear', and
+ `buf_total' members.
+
+ * src/lzw/ftzopen.c (ft_lzwstate_get_code): Rewritten. It now takes
+ only one argument.
+ (ft_lzwstate_refill, ft_lzwstate_reset, ft_lzwstate_io): Updated.
+
+2007-05-20 Ismail Dönmez <ismail@pardus.org.tr>
+
+ * src/pshinter/pshrec.c (ps_mask_table_set_bits): Add `const'.
+ (ps_dimension_set_mask_bits): Remove `const'.
+
+2007-05-19 Werner Lemberg <wl@gnu.org>
+
+ * src/sfnt/ttmtx.c (tt_face_get_metrics)
+ [!FT_CONFIG_OPTION_OLD_INTERNALS]: Another type-punning fix.
+
+2007-05-19 Derek Clegg <dclegg@apple.com>
+
+ Savannah patch #5929.
+
+ * include/freetype/tttables.h, src/base/ftobjs.c
+ (FT_Get_CMap_Format): New function.
+
+ * include/freetype/internal/services/svttcmap.c (TT_CMapInfo): Add
+ `format' member.
+ * src/sfnt/ttcmap.c (tt_cmap{0,2,4,6,8,10,12}_get_info): Set
+ cmap_info->format.
+
+2007-05-19 Werner Lemberg <wl@gnu.org>
+
+ * src/truetype/ttgload.c (load_truetype_glyph): Save graphics state
+ before handling subglyphs so that it can be reinitialized each time.
+ This fixes Savannah bug #19859.
+
+2007-05-16 Werner Lemberg <wl@gnu.org>
+
+ * src/cache/ftccache.c (ftc_node_mru_link, ftc_node_mru_unlink),
+ src/cache/ftccache.h (FTC_CACHE_LOOKUP_CMP), src/cache/ftcglyph.h
+ (FTC_GCACHE_LOOKUP_CMP), src/pshinter/pshmod.c (ps_hinter_init),
+ src/sfnt/ttmtx.c (tt_face_load_hmtx, tt_face_load_hhea,
+ tt_face_get_metrics): Fix type-punning issues.
+
+2007-05-15 David Turner <david@freetype.org>
+
+ * include/freetype/config/ftstdlib.h,
+ include/freetype/internal/ftobjs.h: As suggested by Graham Asher,
+ ensure that ft_isalnum, ft_isdigit, etc., use hard-coded values
+ instead of relying on the locale-dependent functions provided by
+ <ctypes.h>.
+
+2007-05-15 Graham Asher <graham.asher@btinternet.com>
+
+ * src/autofit/afcjk.c (af_cjk_hints_compute_edges): Remove unused
+ variable.
+ * src/autofit/afloader.c (af_loader_load_g): Ditto.
+
+ * src/base/ftobjs.c (ft_validator_error): Use `ft_jmp_buf'.
+ (open_face_from_buffer): Initialize `stream'.
+ (FT_Request_Metrics): Remove unused variable.
+ Remove redundant `break' statements.
+ (FT_Get_Track_Kerning): Remove unused variable.
+
+ * src/psaux/afmparse.c (afm_parse_track_kern, afm_parse_kern_pairs,
+ afm_parse_kern_data): Remove redundant
+ `break' statements.
+ (afm_parser_parse): Ditto.
+ Don't use uninitialized variables.
+
+ * src/psnames/psmodule.c (VARIANT_BIT): Define as unsigned long.
+ Use `|' operator instead of `^' to set it.
+ Update all users.
+
+ * src/sfnt/ttcmap.c (tt_face_build_cmaps): Use `ft_jmp_buf'.
+ * src/sfnt/ttkern.c (tt_face_load_kern): Remove unused variable.
+
+ * src/truetype/ttgload.c (TT_Load_Simple_Glyph): Remove redundant
+ comparison.
+ (TT_Process_Simple_Glyph): Use FT_UInt for `n_points' and `i'.
+ (TT_Load_Glyph): Remove unused variable.
+
+2007-05-13 Derek Clegg <dclegg@apple.com>
+
+ * src/base/ftobjs.c (FT_New_Library): Only allocate rendering pool
+ if FT_RENDER_POOL_SIZE is > 0. From Savannah patch #5928.
+
+2007-05-11 David Turner <david@freetype.org>
+
+ * src/cache/ftcbasic.c, include/freetype/ftcache.h
+ (FTC_ImageCache_LookupScaler, FTC_SBit_Cache_LookupScaler): Two new
+ functions that allow us to look up glyphs using an FTC_Scaler object
+ to specify the size, making it possible to use fractional pixel
+ sizes.
+
+ * src/truetype/ttobjs.c (tt_size_ready_bytecode): Set
+ `size->cvt_ready'. Reported by Boris Letocha.
+
+2007-05-09 Graham Asher <graham.asher@btinternet.com>
+
+ * src/truetype/ttinterp.c (Ins_IP), src/autofit/aflatin.c
+ (af_latin_metrics_scale_dim): Fix compiler warnings.
+
+2007-05-06 Werner Lemberg <wl@gnu.org>
+
+ * builds/win32/visualce/freetype.sln: Removed, as requested by
+ Vincent.
+
+2007-05-04 Vincent RICHOMME <richom.v@free.fr>
+
+ * builds/win32/visualce/*: Add Visual C++ project files for Pocket
+ PC targets.
+
+ * docs/CHANGES: Document them.
+
+2007-05-04 <harry@kdevelop.org>
+
+ * builds/unix/ftsystem.c (FT_Stream_Open): Handle return value 0 of
+ mmap (which might happen on some RTOS). From Savannah patch #5909.
+
+2007-05-03 Werner Lemberg <wl@gnu.org>
+
+ * src/base/ftobjs.c (FT_Set_Char_Size): Simplify code.
+ * include/freetype/freetype.h (FT_Set_Char_Size): Update
+ documentation.
+
+2007-04-28 Victor Stinner <victor.stinner@inl.fr>
+
+ * src/sfnt/sfobjs.c (sfnt_load_face): Check error code after loading
+ `cmap'.
+
+2007-04-27 Werner Lemberg <wl@gnu.org>
+
+ * src/truetype/ttgload.c (TT_Load_Simple_Glyph): Check for negative
+ number of points in contours. Problem reported by Victor Stinner
+ <victor.stinner@haypocalc.com>.
+ (TT_Process_Simple_Glyph): Synchronize variable types.
+
+2007-04-26 Werner Lemberg <wl@gnu.org>
+
+ * src/base/ftglyph.c (FT_Glyph_Copy): Always set second argument to
+ zero in case of error. This fixes Savannah bug #19689.
+
+2007-04-25 Boris Letocha <b.letocha@cz.gmc.net>
+
+ * src/truetype/ttobjs.c: Fix a typo that created a speed regression
+ in the TrueType bytecode loader.
+
+2007-04-10 Martin Horak <horakm@centrum.cz>
+
+ * src/sfnt/sfobjs.c (sfnt_load_face) [FT_CONFIG_OPTION_INCREMENTAL]:
+ Ignore `hhea' table. This fixes Savannah bug #19261.
+
+2007-04-09 Werner Lemberg <wl@gnu.org>
+
+
+ * Version 2.3.4 released.
+ =========================
+
+
+ Tag sources with `VER-2-3-4'.
+
+ * docs/CHANGES, docs/VERSION.DLL: Update documentation and bump
+ version number to 2.3.4.
+
+ * README, Jamfile (RefDoc), builds/win32/visualc/index.html,
+ builds/win32/visualc/freetype.dsp,
+ builds/win32/visualc/freetype.vcproj: s/2.3.3/2.3.4/, s/233/234/.
+
+ * include/freetype/freetype.h (FREETYPE_PATCH): Set to 4.
+
+ * builds/unix/configure.raw (version_info): Set to 9:15:3.
+
+2007-04-09 Martin Horak <horakm@centrum.cz>
+
+ * src/truetype/ttgload.c (load_truetype_glyph): Save and restore
+ memory stream to avoid a crash with the incremental memory
+ interface (Savannah bug #19260).
+
+2007-04-06 David Turner <david@freetype.org>
+
+ * src/base/ftbitmap.c (ft_bitmap_assure_buffer): Fix buffer-overwrite
+ bug (Savannah bug #19536).
+
+2007-04-04 Werner Lemberg <wl@gnu.org>
+
+
+ * Version 2.3.3 released.
+ =========================
+
+
+ Tag sources with `VER-2-3-3'.
+
+ * docs/CHANGES: Mention CVE-2007-1351.
+
+2007-04-03 David Turner <david@freetype.org>
+
+ * src/base/ftobjs.c (FT_Set_Char_Size): As suggested by James Cloos,
+ if one of the resolution values is 0, treat it as if it were the
+ same as the other value.
+
+2007-04-02 David Turner <david@freetype.org>
+
+ Add special code to detect `extra-light' fonts and do not snap their
+ stem widths too much to avoid bizarre hinting effects.
+
+ * src/autofit/aflatin.h (AF_LatinAxisRec): Add `standard_width' and
+ `extra_light' members.
+
+ * src/autofit/aflatin.c (af_latin_metrics_init_widths): Initialize
+ them.
+ (af_latin_metrics_scale_dim): Set `extra_light'.
+ (af_latin_compute_stem_width): Use `extra_light'.
+
+2007-03-28 David Turner <david@freetype.org>
+
+ * src/base/ftbitmap.c (ft_bitmap_assure_buffer): Fix zero-ing of the
+ padding.
+
+2007-03-28 Werner Lemberg <wl@gnu.org>
+
+ * src/bdf/bdflib.c (setsbit, sbitset): Handle values >= 128
+ gracefully.
+ (_bdf_set_default_spacing): Increase `name' buffer size to 256 and
+ issue an error for longer names. This fixes CVE-2007-1351.
+ (_bdf_parse_glyphs): Limit allowed number of glyphs in font to the
+ number of code points in Unicode.
+
+ * builds/win32/visualc/index.html,
+ builds/win32/visualc/freetype.dsp,
+ builds/win32/visualc/freetype.vcproj, README: s/2.3.2/2.3.3/,
+ s/232/233/.
+
+ * docs/CHANGES: Mention ftdiff.
+
+2007-03-26 David Turner <david@freetype.org>
+
+ * src/truetype/ttinterp.c [FIX_BYTECODE]: Remove it and
+ corresponding code.
+ (Ins_MD): Last regression fix.
+
+ * src/autofit/aflatin.c (af_latin_metrics_init_blues): Fix blues
+ computations in order to ignore single-point contours. These are
+ never rasterized and correspond in certain fonts to mark-attach
+ points that are very far from the glyph's real outline, ruining the
+ computation.
+
+ * src/autofit/afloader.c (af_loader_load_g): In the case of
+ monospaced fonts, always set `rsb_delta' and `lsb_delta' to 0.
+ Otherwise code that uses them will most certainly ruin the fixed
+ advance property.
+
+ * docs/CHANGES, docs/VERSION.DLL, README, Jamfile (RefDoc): Update
+ documentation and bump version number to 2.3.3.
+
+ * include/freetype/freetype.h (FREETYPE_PATCH): Set to 3.
+
+ * builds/unix/configure.raw (version_info): Set to 9:14:3.
+
+2007-03-26 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ * builds/unix/ftconfig.in: Disable Carbon framework dependency on
+ 64bit ABI on Mac OS X 10.4.x (ppc & i386). Found by Sean McBride.
+ * builds/vms/ftconfig.h: Ditto.
+ * include/freetype/config/ftconfig.h: Ditto.
+
+2007-03-22 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ * builds/unix/ftsystem.c (FT_Stream_Open): Temporary fix to prevent
+ 32bit unsigned long overflow by 64bit filesize on LP64 platform, as
+ proposed by Sean McBride:
+ https://lists.gnu.org/archive/html/freetype-devel/2007-03/msg00032.html
+
+2007-03-22 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ * builds/unix/ftconfig.in: Suppress SGI compiler's warning against
+ setjmp, proposed by Sean McBride:
+ https://lists.gnu.org/archive/html/freetype-devel/2007-03/msg00032.html
+
+2007-03-19 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ * builds/unix/configure.raw: Dequote `OS_INLINE' in comment of
+ conftest.c, to avoid unexpected shell evaluation. Possibly it is a
+ bug or undocumented behaviour of autoconf.
+
+2007-03-18 David Turner <david@freetype.org>
+
+ * src/truetype/ttinterp.c (Ins_MDRP): Another bytecode regression
+ fix; testing still needed.
+
+ * src/truetype/ttinterp.c (Ins_MD): Another bytecode regression fix.
+
+2007-03-17 David Turner <david@freetype.org>
+
+ * src/truetype/ttinterp.c (Ins_IP): Fix wrong handling of the
+ (undocumented) twilight zone special case.
+
+2007-03-09 Werner Lemberg <wl@gnu.org>
+
+
+ * Version 2.3.2 released.
+ =========================
+
+
+ Tag sources with `VER-2-3-2'.
+
+ * builds/win32/visualc/index.html,
+ builds/win32/visualc/freetype.dsp,
+ builds/win32/visualc/freetype.vcproj, README: s/2.3.1/2.3.2/,
+ s/231/232/.
+
+2007-03-08 David Turner <david@freetype.org>
+
+ * docs/CHANGES, docs/VERSION.DLL: Updated for upcoming release.
+
+ * builds/unix/configure.raw (version_info): Set to 9:13:3.
+
+ * include/freetype/freetype.h (FREETYPE_PATCH): Set to 2.
+
+ * README, Jamfile (RefDoc): s/2.3.1/2.3.2/.
+
+ * src/base/ftutil.c (ft_mem_strcpyn): Fix a bug that prevented the
+ function to work properly, over-writing user-provided buffers in
+ some cases. Reported by James Cloos <cloos@jhcloos.com>.
+
+
+2007-03-05 Werner Lemberg <wl@gnu.org>
+
+ * include/freetype/config/ftstdlib.h (ft_strstr): New wrapper
+ macro for `strstr'.
+
+ * src/truetype/ttobjs.c (tt_face_init): Use ft_strstr for scanning
+ `trick_names', as suggested by Ivan Nincic.
+
+2007-03-05 David Turner <david@freetype.org>
+
+ * src/base/ftinit.c (FT_Init_FreeType): Fix a small memory leak in
+ case FT_Init_FreeType fails for some reason. Problem reported by
+ Maximilian Schwerin <maximilian.schwerin@buelowssiege.de>.
+
+ * src/truetype/ttobjs.c (tt_size_init_bytecode): Clear the `x_ppem'
+ and `y_ppem' fields of the `TT_Size.metrics' structure, not those of
+ `TT_Size.root.metrics'. Problem reported by Daniel Glöckner
+ <daniel-gl@gmx.net>.
+
+ * src/type1/t1afm.c (T1_Read_PFM): Read kerning values as 16-bit
+ signed values, not unsigned ones. Problem reported by Johannes
+ Walther <joh_walt@yahoo.de>.
+
+2007-02-21 David Turner <david@freetype.org>
+
+ * src/pshinter/pshalgo.c (psh_hint_align): Fix a bug in the hinting
+ of small and ghost stems in the Postscript interpreter.
+
+2007-02-20 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ * src/base/ftmac.c (FT_GetFileRef_From_Mac_ATS_Name): Fix memory
+ leak, patch by "Jjgod Jiang" <gzjjgod@gmail.com>.
+ * builds/mac/ftmac.c (FT_GetFileRef_From_Mac_ATS_Name): Ditto.
+
+2007-02-16 Werner Lemberg <wl@gnu.org>
+
+ * src/truetype/ttinterp.c (Ins_MD): Remove unused variable.
+ * src/autofit/aflatin.c (af_latin_hints_link_segments): Ditto.
+
+2007-02-14 David Turner <david@freetype.org>
+
+ It seems that the following changes fix most of the known
+ interpreter problems with my fonts, but more testing is needed,
+ though.
+
+ * src/truetype/ttinterp.c (FIX_BYTECODE): Activate.
+ (TT_MulFix14): Rewrite.
+ (Ins_MD, Ins_MDRP, Ins_IP) [FIX_BYTECODE]: Improved and updated.
+ (Ins_MIRP): Ditto.
+
+2007-02-12 Werner Lemberg <wl@gnu.org>
+
+ * src/truetype/ttinterp.c (Project_x, Project_y): Remove compiler
+ warnings.
+
+ * src/pcf/pcfread.c (pcf_interpret_style), src/bdf/bdfdrivr.c
+ (bdf_interpret_style): Ditto.
+
+2007-02-12 David Turner <david@freetype.org>
+
+ Simplify projection and dual-projection code interface.
+
+ * src/truetype/ttinterp.h (TT_Project_Func): Use `FT_Pos', not
+ FT_Vector' as argument type.
+ * src/truetype/ttinterp.c (CUR_Func_project, CUR_Func_dualproj):
+ Updated.
+ (CUR_fast_project, CUR_fast_dualproj): New macros.
+ (Project, Dual_Project, Project_x, Project_y): Updated.
+ (Ins_GC, Ins_SCFS, Ins_MDAP, Ins_MIAP, Ins_IP): Use new `fast'
+ macros.
+
+
+ * src/autofit/afloader.c (af_loader_load_g): Improve spacing
+ adjustments for the non-light auto-hinted modes. Gets rid of
+ `inter-letter spacing is too wide' problems.
+
+ * src/autofit/aflatin.c (af_latin_hints_link_segments,
+ af_latin_hints_compute_edges): Slight optimization of the segment
+ linker and better handling of serif segments to get rid of broken
+ `9' in Arial at 9pt (96dpi).
+
+
+ Introduce new string functions and the corresponding macros to get
+ rid of various uses of strcpy and other `evil' functions, as well as
+ to simplify a few things.
+
+ * include/freetype/internal/ftmemory.h (ft_mem_strdup, ft_mem_dup,
+ ft_mem_strcpyn): New declarations.
+ (FT_MEM_STRDUP, FT_STRDUP, FT_MEM_DUP, FT_DUP, FT_STRCPYN): New
+ macros.
+ * src/base/ftutil.c (ft_mem_dup, ft_mem_strdup, ft_mem_strcpyn): New
+ functions.
+
+ * src/bdf/bdfdrivr.c (bdf_interpret_style, BDF_Face_Init),
+ src/bdf/bdflib.c (_bdf_add_property), src/pcf/pcfread.c
+ (pcf_get_properties, pcf_interpret_style, pcf_load_font),
+ src/cff/cffdrivr.c (cff_get_glyph_name), src/cff/cffload.c
+ (cff_index_get_sid_string), src/cff/cffobjs.c (cff_strcpy),
+ src/sfnt/sfdriver.c (sfnt_get_glyph_name), src/type1/t1driver.c
+ (t1_get_glyph_name), src/type42/t42drivr.c (t42_get_glyph_name,
+ t42_get_name_index): Use new functions and simplify code.
+
+ * builds/mac/ftmac.c (FT_FSPathMakeSpec): Don't use FT_MIN.
+
+2007-02-11 Werner Lemberg <wl@gnu.org>
+
+ * src/autofit/afloader.c (af_loader_load_g): Don't change width for
+ non-spacing glyphs.
+
+2007-02-07 Tom Parker <palfrey@tevp.net>
+
+ * src/cff/cffdrivr.c (cff_get_name_index): Protect against NULL
+ pointer.
+
+2007-02-05 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ * include/freetype/ftmac.h (FT_DEPRECATED_ATTRIBUTE):
+ Introduce __attribute((deprecated))__ to warn functions
+ which use non-ANSI data types in its interfaces.
+ (FT_GetFile_From_Mac_Name): Deprecated, using FSSpec.
+ (FT_GetFile_From_Mac_ATS_Name): Deprecated, using FSSpec.
+ (FT_New_Face_From_FSSpec): Deprecated, using FSSpec.
+ (FT_New_Face_From_FSRef): Deprecated, using FSRef.
+
+ * src/base/ftmac.c: Predefine FT_DEPRECATED_ATTRIBUTE as void
+ to avoid warning in building FreeType.
+ * builds/mac/ftmac.c: Ditto.
+
+2007-02-05 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ * src/base/ftbase.c: Fix to use builds/mac/ftmac.c, if configured
+ `--with-fsspec' etc. Replace #include "ftmac.c" with
+ #include <ftmac.c>.
+
+2007-02-05 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ * include/freetype/ftmac.h (FT_GetFilePath_From_Mac_ATS_Name):
+ Introduced as replacement of FT_GetFile_From_Mac_ATS_Name.
+ * src/base/ftmac.c (FT_GetFilePath_From_Mac_ATS_Name): Ditto.
+ (FT_GetFile_From_Mac_ATS_Name): Rewritten as wrapper of
+ FT_GetFilePath_From_Mac_ATS_Name.
+ * builds/mac/ftmac.c: Ditto.
+
+2007-02-05 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ * include/freetype/ftmac.h: Fixed wrong comment: FSSpec of
+ FT_GetFile_From_Mac_Name, FT_GetFile_From_Mac_ATS_Name are
+ for passing to FT_New_Face_From_FSSpec.
+
+2007-02-05 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ * builds/unix/configure.raw: Check whether Mac OS X system headers
+ can be built under ANSI C mode.
+
+ * src/base/ftmac.c (OS_INLINE): Redefine OS_INLINE by a version
+ compatible to ANSI C in case system headers are ANSI C incompatible.
+ * builds/mac/ftmac.c (OS_INLINE): Ditto.
+
+2007-02-01 Werner Lemberg <wl@gnu.org>
+
+ * include/freetype/ttnameid.h (TT_MS_LANGID_DZONGHKA_BHUTAN):
+ Explain why applications shouldn't use it. Found by Alexei.
+
+2007-02-01 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ * builds/unix/freetype2.m4 (AC_CHECK_FT2): Fix spelling of warning
+ message.
+
+ * src/gxvalid/gxvmort1.c
+ (gxv_mort_subtable_type1_substTable_validate): Fix debugging
+ message.
+
+2007-01-31 Werner Lemberg <wl@gnu.org>
+
+
+ * Version 2.3.1 released.
+ =========================
+
+
+ Tag sources with `VER-2-3-1-FINAL'.
+
+ * builds/win32/visualc/freetype.dsp,
+ builds/win32/visualc/freetype.vcproj: s/230/231/.
+ * builds/win32/visualc/index.html: s/221/231/.
+
+ * vms_make.com: Add `ftgasp'.
+
+2007-01-30 David Turner <david@freetype.org>
+
+ Tag sources with VER-2-3-1 to prepare release.
+
+ * include/freetype/freetype.h (FREETYPE_PATCH): Set to 1.
+
+ * docs/VERSION.DLL, docs/release, README, Jamfile (RefDoc):
+ s/2.3.0/2.3.1/.
+
+ * builds/unix/configure.raw (version_info): Set to 9:12:3.
+
+
+ * src/autofit/aftypes.h (AF_USE_WARPER), src/autofit/afloader.c
+ (af_loader_load_g): Disable the warper (i.e., the light hinting
+ improvements) to make a 2.3.1 bugfix release before introducing a
+ new feature. This should give us more time to tune and improve the
+ warper for the next release.
+
+ * docs/CHANGES: Update accordingly.
+
+2007-01-25 David Turner <david@freetype.org>
+
+ For light auto-hinting, improve glyph advance widths and resurrect
+ normal/full hinting to its normal quality.
+
+ * src/autofit/afhints.h (AF_GlyphHintsRec): New members `xmin_delta'
+ and `xmax_delta'.
+ * src/autofit/afhints.c (af_glyph_hints_reload): Reset `xmin_delta'
+ and `xmax_delta'.
+
+ * src/autofit/afloader.c (af_loader_load_g) <AF_USE_WARPER>: Replace
+ preprocessor conditional with if-clause, handling both light and
+ normal mode.
+
+ * src/autofit/afwarp.c (AF_WarpScore): Fine-tune again.
+ (af_warper_compute): Handle `xmin_delta' and `xmax_delta'.
+
+2007-01-25 Werner Lemberg <wl@gnu.org>
+
+ * docs/release: Updated -- Savannah uses a new uploading scheme.
+
+2007-01-25 David Turner <david@freetype.org>
+
+ * src/cff/cffload.c (cff_index_get_pointers): Improve previous fix.
+
+ * src/cff/cffgload.c (cff_decoder_parse_charstrings)
+ <cff_op_callsubr, cff_op_callgsubr>: Fix sanity check for empty
+ functions.
+
+ * docs/CHANGES: Document light auto-hinting improvement.
+
+2007-01-25 Werner Lemberg <wl@gnu.org>
+
+ * src/cff/cffload.c (cff_index_get_pointers): Handle last entry
+ correctly in a sanity check. Since this function is only used to
+ load local and global functions, any charstring that called the last
+ local/global function would fail otherwise. This fixes Savannah bug
+ #18867.
+
+ * docs/CHANGES: Document it.
+
+2007-01-23 David Turner <david@freetype.org>
+
+ * src/truetype/ttobjs.c (tt_size_ready_bytecode): Fix typo that
+ prevented compilation when disabling both the unpatented and the
+ bytecode interpreter in the TrueType font driver.
+
+
+ Fix and enable the warper to improve `light' hinting mode. This is
+ not necessarily a final version, but it seems to work well.
+
+ * src/autofit/aflatin.c (af_latin_hints_init) [AF_USE_WARPER]:
+ Disable code.
+ (af_latin_hints_apply) [AF_USE_WARPER]: Handle FT_RENDER_MODE_LIGHT.
+ * src/autofit/aftypes.h: Activate AF_USE_WARPER.
+
+ * src/autofit/afwarp.c (AF_WarpScore): Tune table.
+ (af_warper_compute_line_best): Fix array size of `scores'.
+ (af_warper_compute): Better handling of border cases.
+ * src/autofit/afwarp.h (AF_WarperRec): Remove unused members `X1'
+ and `X2'.
+
+2007-01-21 Werner Lemberg <wl@gnu.org>
+
+ * ChangeLog: Split off older entries into...
+ * ChangeLog.22: This new file.
+
+2007-01-21 Werner Lemberg <wl@gnu.org>
+
+ * docs/CHANGES: Document SHZ fix.
+
+2007-01-21 George Williams <gww@silcom.com>
+
+ * src/truetype/ttinterp.c (Ins_SHZ): SHZ doesn't move phantom
+ points.
+
+2007-01-21 Werner Lemberg <wl@gnu.org>
+
+ * src/sfnt/ttmtx.c (tt_face_get_metrics)
+ [!FT_CONFIG_OPTION_OLD_INTERNALS]: Fix limit check.
+
+2007-01-17 Werner Lemberg <wl@gnu.org>
+
+
+ * Version 2.3.0 released.
+ =========================
+
+
+ Tag sources with `VER-2-3-0-FINAL'.
+
+2007-01-17 Werner Lemberg <wl@gnu.org>
+
+ * docs/release: Updated.
+
+2007-01-16 David Turner <david@freetype.org>
+
+ * src/autofit/aflatin.c (af_latin_hints_compute_segments),
+ src/cff/cffdrivr.c (cff_ps_get_font_info), src/truetype/ttobjs.c
+ (tt_face_init), src/truetype/ttinterp.c (Ins_SHC): Fix compiler
+ warnings.
+
+2007-01-15 Detlef Würkner <TetiSoft@apg.lahn.de>
+
+ * builds/amiga/makefile, builds/amiga/makefile.os4,
+ builds/amiga/smakefile: Add `ftgasp.c' and `ftlcdfil.c'.
+
+ * builds/amiga/include/freetype/config/ftconfig.h: Synchronize.
+
+2007-01-14 Detlef Würkner <TetiSoft@apg.lahn.de>
+
+ Fix various compiler warnings.
+
+ * src/truetype/ttdriver.c (tt_size_select), src/cff/cffobjs.h,
+ src/cff/cffobjs.c (cff_size_request), src/type42/t42objs.h:
+ s/index/strike_index/.
+ * src/base/ftobjs.c (FT_Match_Size): s/index/size_index/.
+
+ * src/gxvalid/gxvmorx5.c
+ (gxv_morx_subtable_type5_InsertList_validate): s/index/table_index/.
+
+ * src/truetype/ttinterp.c (Compute_Point_Displacement),
+ src/pcf/pcfread.c (pcf_seek_to_table_type): Avoid possibly
+ uninitialized variables.
+
+2007-01-13 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ * docs/CHANGES, docs/INSTALL.MAC: Improvements.
+
+2007-01-13 Werner Lemberg <wl@gnu.org>
+
+ * src/type1/t1afm.c (T1_Read_Metrics): MS Windows allows PFM
+ versions up to 0x3FF without complaining.
+
+2007-01-13 Derek Clegg <dclegg@apple.com>
+
+ Add FT_Get_PS_Font_Info interface to CFF driver.
+
+ * src/cff/cfftypes.h: Include FT_TYPE1_TABLES_H.
+ (CFF_FontRec): Add `font_info' field.
+
+ * src/cff/cffload.c: Include FT_TYPE1_TABLES_H.
+ (cff_font_done): Free font->font_info if necessary.
+
+ * src/cff/cffdrivr.c (cff_ps_get_font_info): New function.
+ (cff_service_ps_info): Register cff_ps_get_font_info.
+
+2007-01-13 Werner Lemberg <wl@gnu.org>
+
+ * src/base/ftoutln.c (FT_Outline_Get_Orientation): Fix compilation
+ with C++ compiler.
+
+ * src/autofit/afhints.c (af_glyph_hints_dump_segments,
+ af_glyph_hints_dump_edges): Ditto.
+
+ * src/base/rules.mk (BASE_SRC): Remove ftgasp.c (it's already in
+ `modules.cfg').
+
+ * src/sfnt/ttsbit0.h: Remove.
+
+ * src/sfnt/rules.mk (SFNT_DRV_SRC): Don't include ttsbit0.c.
+
+2007-01-12 David Turner <david@freetype.org>
+
+ * src/base/ftbitmap.c (ft_bitmap_assure_buffer): Fix memory stomping
+ bug in the bitmap emboldener if the pitch of the source bitmap is
+ much larger than its width.
+
+ * src/truetype/ttinterp.c (Update_Max): Fix aliasing-related
+ compilation warning.
+
+2007-01-12 Werner Lemberg <wl@gnu.org>
+
+ * builds/unix/install-sh, builds/unix/mkinstalldirs: Updated from
+ `automake' CVS module from sources.redhat.com.
+
+2007-01-11 Werner Lemberg <wl@gnu.org>
+
+ * src/type1/t1load.c (is_space): Removed.
+ (parse_encoding, parse_charstrings): Use IS_PS_DELIM.
+ (parse_charstrings): Use IS_PS_TOKEN.
+
+
+ * autogen.sh: Avoid bash specific syntax.
+
+2007-01-11 David Turner <david@freetype.org>
+
+ * docs/CHANGES: Small update.
+
+ * builds/unix/configure.raw (version_info): Set to 9:11:3.
+
+ * src/base/ftobjs.c (IsMacResource): Fix a small bug that caused a
+ crash with some Mac OS X .dfont files. Submitted by Masatake
+ Yamato.
+
+ * autogen.sh: Small fix to get it working on Mac OS X properly:
+ The issue is that GNU libtool is called `glibtool' on this platform,
+ and we must call `glibtoolize', since `libtoolize' doesn't exist.
+
+2007-01-10 David Turner <david@freetype.org>
+
+ * all-sources: Tag all sources with VER-2-3-0-RC1 and
+ VER-2-3-0.
+
+ * Jamfile (RefDoc), README, builds/win32/visualc/freetype.dsp,
+ builds/win32/visualc/freetype.vcproj, docs/VERSION.DLL: Update
+ version number to 2.3.0.
+
+ * include/freetype/freetype.h (FREETYPE_MINOR): Set to 3.
+ (FREETYPE_PATCH): Set to 0.
+
+ * include/freetype/ftchapters.h, include/freetype/ftgasp.h,
+ include/freetype/ftlcdfil.h: Update reference documentation with
+ GASP support and LCD filtering sections.
+
+ * src/pshinter/pshalgo.c (psh_glyph_compute_inflections): Fix a typo
+ which created an endless loop with some malformed font files.
+
+2007-01-10 Derek Clegg <dclegg@apple.com>
+
+ * src/type1/t1load.c (T1_Get_MM_Var): Always return fixed-point
+ values.
+
+2007-01-08 David Turner <david@freetype.org>
+
+ * docs/CHANGES: Updated.
+
+ * include/freetype/ftgasp.h, src/base/ftgasp.c: New files which add
+ a new API `FT_Get_Gasp' to return entries of the `gasp' table
+ corresponding to a given character pixel size.
+
+ * src/sfnt/ttload.c (tt_face_load_gasp): Add version check for the
+ `gasp' table, in order to avoid potential problems with later
+ versions.
+
+ * include/freetype/config/ftheader.h (FT_GASP_H): New macro for
+ <freetype/ftgasp.h>.
+
+ * src/base/rules.mk (BASE_SRC), src/base/Jamfile (_sources),
+ modules.cfg (BASE_EXTENSIONS), builds/win32/visualc/freetype.dsp,
+ builds/win32/visualc/freetype.vcproj: Add src/base/ftgasp.c to the
+ default build.
+
+2007-01-07 Werner Lemberg <wl@gnu.org>
+
+ * src/cid/cidparse.c (cid_parser_new): Improve error message for
+ Type 11 fonts.
+ Scan for `/sfnts' token.
+
+2007-01-07 Werner Lemberg <wl@gnu.org>
+
+ * src/cid/cidparse.c (cid_parser_new): Reject Type 11 fonts.
+
+2007-01-06 Werner Lemberg <wl@gnu.org>
+
+ * src/cff/cffload.c (cff_index_init): Remove unused variable.
+ (cff_index_read_offset): s/perror/errorp/ to avoid global shadowing.
+
+2007-01-04 David Turner <david@freetype.org>
+
+ * src/pfr/pfrobjs.c (pfr_face_init): Detect non-scalable fonts
+ correctly. This fixes Savannah bug #17876.
+
+
+ Do not allocate interpreter-specific tables in memory if we are not
+ going to load glyphs with the bytecode interpreter anyway.
+
+ * src/truetype/ttgload.c (tt_loader_init): Load execution context
+ only if glyph is hinted.
+ Updated.
+ * src/truetype/ttobjs.h (TT_SizeRec): Add members `bytecode_ready'
+ and `cvs_ready'.
+ Add `tt_size_ready_bytecode' declaration.
+ * src/truetype/ttobjs.c (tt_size_done_bytecode,
+ tt_size_init_bytecode, tt_size_ready_bytecode): New functions.
+ (tt_size_init): Move most code into `tt_size_init_bytecode'.
+ (tt_size_done): Move most code into `tt_size_done_bytecode'.
+ (tt_size_reset): Move some code to `tt_size_ready_bytecode'.
+
+
+ Don't extract the metrics table from the SFNT font file. Instead,
+ reparse it on each glyph load. The runtime difference is not
+ noticeable, and it can save a lot of heap memory when memory-mapped
+ files are not used.
+
+ * include/freetype/internal/tttypes.h (TT_FaceRec): Add members
+ `horz_metrics_offset' and `vert_metrics_offset'.
+ * src/sfnt/ttmtx.c (tt_face_load_hmtx, tt_face_get_metrics):
+ Updated.
+
+
+ * src/sfnt/ttcmap.c (tt_cmap4_validate): Slight optimization.
+
+
+ Do not load the CFF index offsets into memory, since this wastes a
+ *lot* of heap memory with large Asian CFF fonts. There is no
+ significant performance loss.
+
+ * src/cff/cffload.h: Add `cff_charset_cid_to_gindex' declaration.
+ * src/cff/cfftypes.h (CFF_IndexRec): Add fields `start' and
+ `data_size'.
+ (CFF_CharsetRec): Add field `num_glyphs'.
+
+ * src/cff/cffload.c (cff_index_read_offset, cff_index_load_offsets,
+ cff_charset_cid_to_gindex): New functions.
+ (cff_new_index): Renamed to...
+ (cff_index_init): This. Update all callers.
+ Updated -- some code has been moved to `cff_index_load_offsets'.
+ (cff_done_index): Renamed to...
+ (cff_index_done): This. Update all callers.
+ (cff_index_get_pointers, cff_index_access_element): Updated to use
+ stream offsets.
+ (cff_charset_compute_cids): Set `num_glyphs' field.
+ (cff_encoding_load): Updated.
+
+ * src/cff/cffgload.c (cff_slot_load): Updated.
+
+2007-01-04 David Turner <david@freetype.org>
+
+ * docs/INSTALL.UNIX: Simplify some parts, add reference to
+ autogen.sh and pointer to README.CVS.
+
+ * README.CVS: Add common problem description and solution
+ when running autogen.sh.
+
+ * docs/INSTALL: Add reference to MacOS X.
+
+ * docs/MAKEPP, docs/INSTALL.MAC: New documentation files.
+
+ * docs/TODO: Remove obsolete items.
+
+ * src/raster/ftraster.c: (TRaster_Instance): Replace it with...
+ (TWorker): This.
+ Remove `count_table' and `memory'.
+ Make `grays' a pointer.
+ (TRaster): New structure.
+ (count_table): New static array.
+ (RAS_ARGS, RAS_ARG, RAS_VARS, RAS_VAR, FT_UNUSED_RASTER, cur_ras,
+ Vertical_Gray_Sweep_Step, ft_black_new, ft_black_done,
+ ft_black_set_mode, ft_black_render): Updated.
+ (ft_black_init): Don't initialize `count_table'.
+ (ft_black_reset): Use the render pool. This saves about 6KB of
+ heap space for each FT_Library instance.
+
+ * src/smooth/ftgrays.c (TRaster): Replaced with...
+ (TWorker): This.
+ Remove `memory'.
+ (TRaster): New structure.
+
+ (RAS_ARG_, RAS_ARG, RAS_VAR_, RAS_VAR, ras, gray_render_line,
+ gray_move_to, gray_line_to, gray_conic_to, gray_cubic_to,
+ gray_render_span, gray_raster_render): Updated.
+ (gray_raster_reset): Use the render pool. This saves about 6KB of
+ heap space for each FT_Library instance.
+
+ * src/sfnt/sfobjs.c, src/sfnt/ttkern.c, src/sfnt/ttkern.h,
+ src/sfnt/ttmtx.c, src/sfnt/ttsbit.c, src/sfnt/ttsbit.h,
+ src/truetype/ttpload.c, include/freetype/config/ftoption.h: Remove
+ FT_OPTIMIZE_MEMORY macro (and code for !FT_OPTIMIZE_MEMORY) since
+ the optimization is no longer experimental.
+
+ * src/pshinter/pshalgo.c (psh_glyph_interpolate_normal_points):
+ Remove a typo that results in no hinting and a memory leak with some
+ large Asian CFF fonts.
+
+ * src/base/ftobjs.c (FT_Done_Library): Remove a subtle memory leak
+ which happens when FT_Done_Library is called with still opened
+ CFF_Faces in it. We need to close all faces before destroying the
+ modules, or else some bad things (memory leaks) may happen.
+
+2007-01-02 Werner Lemberg <wl@gnu.org>
+
+ * src/gxvalid/gxvkern.c (gxv_kern_subtable_fmt0_pairs_validate):
+ Remove compiler warning.
+
+2007-01-02 David Turner <david@freetype.org>
+
+ * src/sfnt/sfobjs.c: Add documentation comment.
+
+2006-12-31 Masatake YAMATO <jet@gyve.org>
+
+ * src/gxvalid/gxvkern.c (gxv_kern_subtable_fmt0_pairs_validate): New
+ function.
+ Check uniqueness of the gid pairs.
+ (gxv_kern_subtable_fmt0_validate): Move some code to
+ `gxv_kern_subtable_fmt0_pairs_validate'.
+
+2006-12-22 David Turner <david@freetype.org>
+
+ * src/autofit/aflatin.c, src/truetype/ttgload.c: Remove compiler
+ warnings.
+
+ * builds/win32/visualc/freetype.vcproj: Add _CRT_SECURE_NO_DEPRECATE
+ to avoid deprecation warnings with Visual C++ 8.
+
+2006-12-16 Anders Kaseorg <anders@kaseorg.com>
+
+ * src/base/ftlcdfil.c (FT_Library_SetLcdFilter)
+ [FT_FORCE_LIGHT_LCD_FILTER]: Fix typo.
+
+2006-12-15 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ * include/freetype/internal/services/svotval.h: Add `volatile' to
+ sync with the modification by Jens Claudius on 2006-08-22; cf.
+ https://cvs.savannah.gnu.org/viewcvs/freetype/freetype2/src/otvalid/otvmod.c?r1=1.4&r2=1.5
+
+2006-12-15 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ * src/base/ftmac.c: Specialized for Mac OS X only.
+ * builds/unix/ftconfig.in: Fixed for ppc64 missing Carbon framework.
+ * builds/unix/configure.raw: Ditto. When explicit switches for
+ FSSpec/FSRef/QuickDraw/ATS availability are given to configure,
+ builds/mac/ftmac.c is used instead of default src/base/ftmac.c.
+
+2006-12-15 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ * builds/mac/ftmac.c: Copied src/base/ftmac.c for legacy system.
+ * builds/mac/FreeType.m68k_cfm.make.txt: Fix to use builds/mac/ftmac.c
+ instead of src/base/ftmac.c
+ * builds/mac/FreeType.ppc_carbon.make.txt: Ditto.
+ * builds/mac/FreeType.ppc_classic.make.txt: Ditto.
+ * builds/mac/FreeType.m68k_far.make.txt: Ditto, and exclude gxvalid.c
+ that cannot be built at present.
+
+2006-12-15 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ * src/base/ftobjs.c: Improvement of resource fork handler for
+ POSIX, cf.
+ https://lists.gnu.org/archive/html/freetype-devel/2006-10/msg00025.html
+ (Mac_Read_sfnt_Resource): Count only `sfnt' resource of suitcase font
+ format or .dfont, to simulate the face index number counted by ftmac.c.
+ (IsMacResource): Return the number of scalable faces correctly.
+
+2006-12-10 Werner Lemberg <wl@gnu.org>
+
+ * builds/toplevel.mk (version): Protect against `distclean' target.
+
+2006-12-09 Werner Lemberg <wl@gnu.org>
+
+ * builds/*/*def.mk, builds/*/detect.mk (CAT): Define to either `cat'
+ or `type'.
+
+ * builds/freetype.mk (version): Extracted from freetype.h, using
+ GNU make's built-in string functions.
+ (refdoc): Use $(version) instead of static version number.
+
+2006-12-08 Werner Lemberg <wl@gnu.org>
+
+ * builds/toplevel.mk (dist): Extract version number from freetype.h.
+
+2006-12-08 Vladimir Volovich <vvv@vsu.ru>
+
+ * src/tools/apinames.c (State): Remove final comma in structure --
+ xlc v5 under AIX 4.3 doesn't like this.
+
+2006-12-07 David Turner <david@freetype.org>
+
+ * src/autofit/afloader.c (af_loader_load_g): Small adjustment
+ to the spacing of auto-fitted glyphs. This only impacts rare
+ cases (e.g., Arial Bold at rather small character sizes).
+
+2006-12-03 Werner Lemberg <wl@gnu.org>
+
+ * src/sfnt/rules.mk (SFNT_DRV_SRC): Add ttsbit0.c.
+
+2006-12-01 Werner Lemberg <wl@gnu.org>
+
+ * src/sfnt/sfobjs.c (tt_face_get_name): All Unicode strings are
+ encoded in UTF-16BE. Patch from Rajeev Pahuja <rpahuja@esri.com>.
+ (tt_name_entry_ascii_from_ucs4): Removed.
+
+
+ * include/freetype/ftxf86.h: Fix and extend comment so that it
+ appears in the documentation.
+
+ * include/freetype/ftchapters.h: Add `font_format' section.
+
+
+ * src/tools/docmaker/tohtml.py (HtmlFormatter::index_exit): Add link
+ to TOC in index page.
+
+2006-11-28 David Turner <david@freetype.org>
+
+ * src/smooth/ftgrays.c (gray_raster_render): Return 0 when we are
+ trying to render into a zero-width/height bitmap, not an error code.
+
+ * src/truetype/ttobjs.c (tt_face_init): Fix typo in previous patch.
+
+ * src/smooth/ftgrays.c: Remove hard-coded error values; use FreeType
+ ones instead.
+
+ * src/autofit/afhints.c (af_glyph_hints_dump_segments): Remove unused
+ variable.
+
+2006-11-26 Pierre Hanser <hanser@club-internet.fr>
+
+ * src/truetype/ttobjs.c (tt_face_init): Protect against NULL pointer.
+
+2006-11-25 David Turner <david@freetype.org>
+
+ * src/autofit/afhints.c (af_glyph_hints_dump_points,
+ af_glyph_hints_dump_segments, af_glyph_hints_dumpedges) [!AF_DEBUG]:
+ Add stubs to link the `ftgrid' test program when debugging is
+ disabled in the auto-hinter.
+
+2006-11-23 David Turner <david@freetype.org>
+
+ * src/autofit/afhints.c, src/autofit/afhints.h, src/autofit/aflatin.c,
+ src/autofit/aftypes.h: Miscellaneous auto-hinter improvements.
+
+ * src/autofit/afhints.c (af_glyph_hints_dump_segments) [AF_DEBUG]:
+ Emit more sensible information.
+
+ * src/autofit/afhints.h (AF_SegmentRec): Add `height' member.
+
+ * src/autofit/aflatin.c (af_latin_metrics_scale_dim): Improve
+ rounding of blue values.
+ (af_latin_hints_compute_segments): Hint segment heights.
+ (af_latin_hints_link_segments): Reduce `len_score' value.
+ (af_latin_hints_compute_edges): Increase `segment_length_threshold'
+ value and use `height' member for comparisons.
+ (af_latin_hint_edges): Extend logging message.
+ Improve handling of remaining edges.
+
+2006-11-22 Werner Lemberg <wl@gnu.org>
+
+ Fix Savannah bug #15553.
+
+ * src/truetype/ttgload.c (tt_loader_init): Re-execute the CVT
+ program after a change from mono to grayscaling (and vice versa).
+ Use correct constant for comparison to get `exec->grayscale'.
+
+2006-11-18 Werner Lemberg <wl@gnu.org>
+
+ Because FT_Load_Glyph expects CID values for CID-keyed fonts, the
+ test for a valid glyph index must be deferred to the font drivers.
+ This patch fixes Savannah bug #18301.
+
+ * src/base/ftobjs.c (FT_Load_Glyph): Don't check `glyph_index'.
+ * src/bdf/bdfdrivr.c (BDF_Glyph_Load), src/cff/cffgload.c
+ (cff_slot_load), src/cid/cidgload.c (cid_slot_load_glyph),
+ src/pcf/pcfdrivr.c (PCF_Glyph_Load), src/pfr/pfrobjs.c
+ (pfr_slot_load), src/truetype/ttdriver.c (Load_Glyph),
+ src/type1/t1gload.c (T1_Load_Glyph), src/winfonts/winfnt.c
+ (FNT_Load_Glyph): Check validity of `glyph_index'.
+
+2006-11-13 David Turner <david@freetype.org>
+
+ * src/truetype/ttinterp.c (FIX_BYTECODE): Undefine. The interpreter
+ `enhancements' are still too buggy for general use.
+
+ * src/base/ftlcdfil.c: Add support for FT_FORCE_LIGHT_LCD_FILTER and
+ FT_FORCE_LEGACY_LCD_FILTER at compile time. Define these macros
+ when building the library to change the default LCD filter to be
+ used. This is only useful for experimentation.
+
+ * include/freetype/ftlcdfil.h: Update documentation.
+
+2006-11-10 David Turner <david@freetype.org>
+
+ * src/smooth/ftsmooth.c: API change for the LCD
+ filter. The FT_LcdFilter value is an enumeration describing which
+ filter to apply, with new values FT_LCD_FILTER_LIGHT and
+ FT_LCD_FILTER_LEGACY (the latter implements the LibXft original
+ algorithm which produces strong color fringes for everything
+ except very-well hinted text).
+
+ * include/freetype/ftlcdfil.h (FT_Library_SetLcdFilter): Change
+ second parameter to an enum type.
+
+ * src/base/ftlcdfil.c (USE_LEGACY): Define.
+ (_ft_lcd_filter): Rename to...
+ (_ft_lcd_filter_fir): This.
+ Update parameters.
+ (_ft_lcd_filter_legacy) [USE_LEGACY]: New filter function.
+ (FT_Library_SetLcdFilter): Update parameters.
+ Handle new filter modes.
+
+ * include/internal/ftobjs.h: Include FT_LCD_FILTER_H.
+ (FT_Bitmap_LcdFilterFunc): Change third argument to `FT_Library'.
+ (FT_LibraryRec) [FT_CONFIG_OPTION_SUBPIXEL_RENDERING]: Add filtering
+ callback and update other fields.
+
+ * src/smooth/ftsmooth.c (ft_smooth_render_generic)
+ [FT_CONFIG_OPTION_SUBPIXEL_RENDERING]: Update.
+ Other minor improvements.
+
+ * src/autofit/aflatin.c: Various tiny improvements that drastically
+ improve the handling of serif fonts and of LCD/LCD_V hinting modes.
+ (af_latin_hints_compute_edges): Fix typo.
+ (af_latin_compute_stem_width): Take better care of diagonal stems.
+
+2006-11-09 David Turner <david@freetype.org>
+
+ * src/pshinter/pshalgo.c (psh_glyph_compute_inflections): Fix
+ typo which created a variable-used-before-initialized bug.
+
+2006-11-07 Zhe Su <james.su@gmail.com>
+
+ * src/base/ftsynth.c (FT_GlyphSlot_Embolden): Handle vertical layout
+ also.
+
+2006-11-03 Werner Lemberg <wl@gnu.org>
+
+ * src/base/ftcalc.c: Don't use `long long' but `FT_Int64'.
+
+2006-11-02 David Turner <david@freetype.org>
+
+ Add a few tweaks to better handle serif fonts.
+ Add more debugging messages.
+
+ * src/autofit/aflatin.c (af_latin_hints_compute_edges): Ignore
+ segments that are less than 1.5 pixels high. This gets rid of
+ *many* corner cases with serifs.
+ (af_latin_align_linked_edge): Add logging message.
+ (af_latin_hint_edges): Use AF_HINTS_DO_BLUES.
+ Add logging messages.
+ Handle AF_EDGE_FLAG flag specially.
+
+ * src/autofit/afmodule.c [AF_DEBUG]: Add _af_debug,
+ _af_debug_disable_blue_hints, and _af_debug_hints variables.
+
+ * src/autofit/aftypes.h (AF_LOG) [AF_DEBUG]: Use _af_debug.
+ Update external declarations.
+ (af_corner_orientation, af_corner_is_flat): Replaced by...
+
+ * include/freetype/internal/ftcalc.h (ft_corner_orientation,
+ ft_corner_is_flat): These declarations.
+
+ * src/autofit/afangles.c (af_corner_orientation, af_corner_is_flat):
+ Comment out. Replaced by...
+
+ * src/base/ftcalc.h (ft_corner_orientation, ft_corner_is_flat):
+ These functions. Update all callers.
+ (FT_Add64) [!FT_LONG64]: Simplify.
+
+ * src/autofit/afhints.c: Include FT_INTERNAL_CALC_H.
+ (af_direction_compute): Add a missing FT_ABS call. This bug caused
+ production of garbage by missing lots of segments.
+
+ * src/autofit/afhints.h (AF_HINTS_DO_BLUES): New macro.
+
+ * src/autofit/afloader.c (af_loader_init, af_loader_done)
+ [AF_DEBUG]: Set _af_debug_hints.
+
+
+ * src/pshinter/pshalgo.c: Include FT_INTERNAL_CALC_H.
+ (psh_corner_is_flat, psh_corner_orientation): Use ft_corner_is_flat
+ and ft_corner_orientation.
+
+
+ * src/gzip/inftrees.c (huft_build): Remove compiler warning.
+
+2006-10-24 Werner Lemberg <wl@gnu.org>
+
+ * src/cff/cffload.c (cff_encoding_load): Remove unused variable.
+
+ * src/base/ftobjs.c (FT_Select_Charmap): Disallow FT_ENCODING_NONE
+ as argument.
+
+2006-10-23 Zhe Su <zsu@novell.com>
+
+ * src/base/ftoutln.c (FT_Outline_Get_Orientation): Re-implement to
+ better deal with broken Asian fonts with strange glyphs, having
+ self-intersections and other peculiarities. The used algorithm is
+ based on the nonzero winding rule.
+
+2006-10-23 David Turner <david@freetype.org>
+
+ Speed up the CFF font loader. With some large CFF fonts,
+ FT_Open_Face is now more than three times faster.
+
+ * src/cff/cffload.c (cff_get_offset): Removed.
+ (cff_new_index): Inline functionality of `cff_get_offset'.
+ (cff_charset_compute_cids, cff_charset_free_cids): New functions.
+ (cff_charset_done): Call `cff_charset_free_cids'.
+ (cff_charset_load): Call `cff_charset_compute_cids'.
+ (cff_encoding_load) <Populate>: Ditto, to replace inefficient loop.
+
+ * src/sfnt/ttmtx.c (tt_face_load_hmtx): Replace calls to FT_GET_XXX
+ with FT_NEXT_XXX.
+
+
+ Speed up the Postscript hinter, with more than 100% speed increase
+ on my machine.
+
+ * src/pshinter/pshalgo.c (psh_corner_is_flat,
+ psh_corner_orientation): New functions.
+ (psh_glyph_compute_inflections): Merge loops for efficiency.
+ Use `psh_corner_orientation'.
+ (psh_glyph_init): Use `psh_corner_is_flat'.
+ (psh_hint_table_find_strong_point): Renamed to...
+ (psh_hint_table_find_strong_points): This.
+ Rewrite, adding argument to handle all points at once.
+ Update all callers.
+ (PSH_MAX_STRONG_INTERNAL): New macro.
+ (psh_glyph_interpolate_normal_points): Rewrite for efficiency.
+
+2006-10-15 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ * src/base/ftmac.c (FT_New_Face_From_FOND): Initialize variable
+ `error' with FT_Err_Ok.
+
+2006-10-14 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ * docs/INSTALL.CROSS: New document file for cross-building.
+
+ * builds/unix/configure.raw: Preliminary cross-building support.
+ Find native C compiler and pass it by CC_BUILD, and
+ find suffix for native executable and pass it by EXEEXT_BUILD.
+ Also suffix for target executable is passed by EXEEXT.
+
+ * builds/unix/unix-cc.in (CCraw_build, E_BUILD): New variables to
+ build `apinames' which runs on building system. They are set by
+ CC_BUILD and EXEEXT_BUILD.
+
+ * builds/exports.mk (APINAMES_EXE): Change the extension for
+ apinames from the suffix for target (E) to that for building host
+ (E_BUILD).
+
+2006-10-12 Werner Lemberg <wl@gnu.org>
+
+ * docs/INSTALL.UNX, docs/UPGRADE.UNX: Renamed to...
+ * docs/INSTALL.UNIX, docs/UPGRADE.UNIX: This. Update all documents
+ which reference those files.
+
+2006-10-12 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ * builds/unix/configure.raw (FT2_EXTRA_LIBS): New variable. It is
+ embedded in freetype2.pc and freetype-config. Use it to record
+ Carbon dependency of MacOSX.
+
+ * builds/unix/freetype2.in: Embed FT2_EXTRA_LIBS.
+
+ * builds/unix/freetype-config.in: Ditto.
+
+2006-10-11 Werner Lemberg <wl@gnu.org>
+
+ * devel/ftoption.h (FT_CONFIG_OPTION_SUBPIXEL_RENDERING): Define for
+ development.
+
+2006-10-03 Jens Claudius <jens.claudius@yahoo.com>
+
+ * include/freetype/config/ftstdlib.h: Cast away volatileness from
+ argument to ft_setjmp.
+
+ * include/freetype/internal/ftvalid.h: Add comment that
+ ft_validator_run must not be used.
+
+2006-10-01 Werner Lemberg <wl@gnu.org>
+
+ * src/base/ftbase.c: Undo change from 2006-09-30.
+
+ * src/base/rules.mk (BASE_SRC): Remove `ftlcdfil.c'.
+
+2006-09-30 David Turner <david@freetype.org>
+
+ * include/freetype/internal/ftobjs.h (FT_Face_InternalRec):
+ s/unpatented_hinting/ignore_unpatented_hinter/.
+ Update all callers.
+
+ * src/base/ftobjs.c (FT_Load_Glyph): Refine the algorithm whether
+ auto-hinting shall be used or not.
+
+ * src/truetype/ttobjs.c (tt_face_init): Ditto.
+
+2006-09-30 Werner Lemberg <wl@gnu.org>
+
+ * src/base/rules.mk (BASE_SRC): Remove `ftapi.c' (which is no longer
+ in use).
+
+ * src/base/ftbase.c: Include `ftlcdfil.c'.
+
+2006-09-29 Werner Lemberg <wl@gnu.org>
+
+ * src/sfnt/ttcmap.c (tt_cmap4_char_map_binary): Fix algorithm for
+ overlapping segments. Bug reported by Stefan Koch.
+
+2006-09-28 David Turner <david@freetype.org>
+
+ Fix a bug in the automatic unpatented hinting support which prevents
+ normal bytecode hinting to work properly.
+
+ * include/freetype/internal/ftobjs.h (FT_Face_InternalRec):
+ s/force_autohint/unpatented_hinting/. Update all callers.
+
+ * src/base/ftobjs.c (FT_Load_Glyph): Updated code.
+
+ * src/autofit/aftypes.h (AF_DEBUG): Undefine to get rid of traces.
+
+2006-09-27 David Turner <david@freetype.org>
+
+ * include/freetype/freetype.h (FT_FREETYPE_PATCH): Set to 2.
+
+
+ Add a new API to support color filtering of subpixel glyph bitmaps.
+ In a default build, the function `FT_Library_SetLcdFilter' returns
+ `FT_Err_Unimplemented_Feature'; you need to #define
+ FT_CONFIG_OPTION_SUBPIXEL_RENDERING in ftoption.h to compile the
+ real implementation.
+
+ * include/freetype/ftlcdfil.h, src/base/ftlcdfil.c: New files.
+
+ * include/freetype/internal/ftobjs.h (FT_Bitmap_LcdFilterFunc): New
+ typedef.
+ (FT_LibraryRec) [FT_CONFIG_OPTION_SUBPIXEL_RENDERING]: New members
+ `lcd_filter_weights' and `lcd_filter'.
+
+ * src/smooth/ftsmooth.c (ft_smooth_render_generic): Remove arguments
+ `hmul' and `vmul'.
+
+ Handle subpixel rendering.
+ Simplify function.
+ (ft_smooth_render_lcd): Use `FT_RENDER_MODE_LCD'.
+ (ft_smooth_render_lcd_v): Use `FT_RENDER_MODE_LCD_V'.
+
+ * include/freetype/config/ftheader.h (FT_LCD_FILTER_H): New macro,
+ pointing to <freetype/ftlcdfil.h>.
+
+ * src/base/Jamfile (_sources), src/base/rules.mk (BASE_SRC),
+ vms_make.com: Add `ftlcdfil.c' to the list of compiled source files.
+
+ * modules.cfg (BASE_EXTENSIONS): Add ftlcdfil.c.
+
+2006-09-26 David Bustin
+
+ * src/pfr/pfrobjs.c (pfr_face_get_kerning): Skip adjustment bytes
+ correctly. Reported as Savannah bug #17843.
+
+2006-09-26 David Turner <david@freetype.org>
+
+ * src/autofit/afhints.h (AF_HINTS_DO_HORIZONTAL,
+ AF_HINTS_DO_VERTICAL, AF_HINTS_DO_ADVANCE): New macros to disable
+ horizontal and vertical hinting for the purpose of debugging the
+ auto-fitter.
+
+ * src/autofit/afmodule.c (_af_debug_disable_horz_hints,
+ _af_debug_disable_vert_hints) [AF_DEBUG]: New global variables.
+
+ * src/autofit/aftypes.h [AF_DEBUG]: Declare above variables.
+
+ * include/freetype/config/ftoption.h, devel/ftoption.h
+ (FT_CONFIG_OPTION_SUBPIXEL_RENDERING): New macro to control whether
+ we want to compile LCD-optimized rendering code (à la ClearType) or
+ not. The macro *must* be disabled in default builds of the library
+ for patent reasons.
+
+ * src/smooth/ftsmooth.c (ft_smooth_render_generic): Disable
+ LCD-specific rendering when FT_CONFIG_OPTION_SUBPIXEL_RENDERING
+ isn't defined at compile time. This only changes the content of the
+ rendered glyph to match the one of normal gray-level rendering,
+ hence clients should not need to be modified.
+
+ * docs/CHANGES: Updated.
+
+2006-09-18 Garrick Meeker <garrick@digitalanarchy.com>
+
+ * src/base/ftmac.c (FT_New_Face_From_FOND): Fall back to SFNT if
+ LWFN fails and both are available.
+
+2006-09-11 David Turner <david@freetype.org>
+
+ * src/sfnt/sfobjs.c (tt_face_get_name): Support some fonts which
+ report their English names through an Apple Roman
+ (platform,encoding) pair, with language_id != English.
+
+ If the font uses another name entry with language_id == English, it
+ will be selected correctly, though.
+
+ * src/truetype/ttobjs.c (tt_face_init): Add unpatented hinting
+ selection for `mingli.ttf'.
+
+2006-09-05 Werner Lemberg <wl@gnu.org>
+
+ * src/truetype/ttpload.c (tt_face_load_hdmx): Handle `record_size'
+ values which have the upper two bytes set to 0xFF instead of 0x00
+ (as it happens in at least two CJKV fonts, `HAN NOM A.ttf' and
+ `HAN NOM B.ttf').
+
+ * src/smooth/ftgrays.c [GRAYS_USE_GAMMA]: Really remove all code.
+
+2006-09-05 David Turner <david@freetype.org>
+
+ Minor source cleanups and optimizations.
+
+ * src/smooth/ftgrays.c (GRAYS_COMPACT): Removed.
+ (TRaster): Remove `count_ex' and `count_ey'.
+ (gray_find_cell): Remove 2nd and 3rd argument.
+ (gray_alloc_cell): Merged with `gray_find_cell'.
+ (gray_record_cell): Simplify.
+ (gray_set_cell): Rewrite.
+ (gray_start_cell): Apply offsets to `ras.ex' and `ras.ey'.
+ (gray_render_span): Don't use FT_MEM_SET for small values.
+ (gray_dump_cells) [DEBUG_GRAYS]: New function.
+ (gray_sweep): Avoid buffer overwrites when to drawing the end of a
+ bitmap scanline.
+ (gray_convert_glyph): Fix speed-up.
+
+2006-09-04 David Turner <david@freetype.org>
+
+ * src/smooth/ftgrays.c (gray_convert_glyphs): Make it work with
+ 64bit processors.
+
+2006-09-03 Werner Lemberg <wl@gnu.org>
+
+ * devel/ftoption.h: Synchronize with
+ include/freetype/config/ftoption.h.
+
+ * src/smooth/ftgrays.c (gray_record_cell): Remove shadowing
+ variable declaration.
+ (gray_convert_glyph): Fix compiler warnings.
+
+2006-09-01 David Turner <david@freetype.org>
+
+ * src/truetype/ttobjs.c (tt_face_init): Update the TrueType loader
+ to recognize a few fonts that require the automatic unpatented
+ loader.
+
+ * src/smooth/ftgrays.c: Optimize the performance of the anti-aliased
+ rasterizer. The speed improvement is between 15% and 25%, depending
+ on the font data.
+
+ (GRAYS_USE_GAMMA, GRAYS_COMPACT): Removed, and all associated code.
+ (TCell): Redefine.
+ (TRaster): New members `buffer', `buffer_size', `ycells', `ycount'.
+ (gray_init_cells): Updated.
+ (gray_find_cell, gray_alloc_cell): New functions.
+ (gray_record_cell): Rewritten to use `gray_find_cell' and
+ `gray_alloc_cell'.
+ (PACK, LESS_THAN, SWAP_CELLS, DEBUG_SORT, QUICK_SORT, SHELL_SORT,
+ QSORT_THRESHOLD):
+ Removed.
+ (gray_shell_sort, gray_quick_sort, gray_check_sort,
+ gray_dump_cells): Removed.
+ (gray_sweep): Rewritten.
+ (gray_convert_glyph): Rewrite code which used one of the sorting
+ functions.
+ (gray_raster_render): Updated.
+
+2006-08-29 Dr. Werner Fink <werner@suse.de>
+
+ * configure: Make it possible to handle configure options which
+ have strings containing spaces.
+
+2006-08-27 David Turner <david@freetype.org>
+
+ * include/freetype/config/ftoption.h (TT_USE_BYTECODE_INTERPRETER):
+ New macro, defined if either TT_CONFIG_OPTION_BYTECODE_INTERPRETER
+ or TT_CONFIG_OPTION_UNPATENTED_HINTING is defined.
+
+ * include/freetype/internal/ftcalc.h, src/base/ftcalc.c,
+ src/truetype/truetype.c, src/truetype/ttdriver.c,
+ src/truetype/ttgload.c, src/truetype/ttgload.h,
+ src/truetype/ttinterp.c, src/truetype/ttobjs.c,
+ src/truetype/ttobjs.h, src/truetype/ttpload.c, src/type42/t42drivr.c:
+ s/TT_CONFIG_OPTION_BYTECODE_INTERPRETER/TT_USE_BYTECODE_INTERPRETER/.
+
+ * include/freetype/internal/ftobjs.h (FT_Face_InternalRec): New
+ member `force_autohint'.
+
+ * src/base/ftobjs.c (FT_Load_Glyph): Use `force_autohint'.
+
+ * src/truetype/ttobjs.c (tt_face_init): Prepare code for testing
+ against a list of font names which need the bytecode interpreter.
+
+2006-08-27 Jens Claudius <jens.claudius@yahoo.com>
+
+ Fix miscellaneous compiler warnings.
+
+ * include/freetype/internal/ftobjs.h: Close comment with `*/' to
+ avoid `/* in comment' compiler warning.
+
+ * src/base/ftdbgmem.c (ft_mem_table_get_source): Turn cast
+ `(FT_UInt32)(void*)' into `(FT_UInt32)(FT_PtrDist)(void*)' since on
+ 64-bit platforms void* is larger than FT_UInt32.
+
+ * src/base/ftobjs.c (t_validator_error): Cast away
+ volatileness of argument to ft_longjmp. Spotted by Werner
+ `Putzfrau' Lemberg.
+
+ * src/bdf/bdflib.c (bdf_load_font): Initialize local
+ variable `lineno'.
+
+ * src/gxvalid/gxvmod.c (classic_kern_validate): Mark local variable
+ `error' as volatile.
+
+2006-08-27 Werner Lemberg <wl@gnu.org>
+
+ * builds/unix/ftconfig.in: Synchronize with main ftconfig.h.
+ Reported by Jens.
+
+2006-08-22 Jens Claudius <jens.claudius@yahoo.com>
+
+ Fix for previous commit, which caused many compiler warnings/errors
+ about addresses of volatile objects passed as function arguments as
+ non-volatile pointers.
+
+ * include/freetype/internal/ftvalid.h: Make FT_Validator typedef a
+ pointer to a volatile object.
+
+ * src/gxvalid/gxvmod.c (gxv_load_table): Make function argument
+ `table' a pointer to a volatile object.
+
+ * src/otvalid/otvmod.c (otv_load_table): Make function argument
+ `table' a pointer to a volatile object.
+
+2006-08-18 Jens Claudius <jens.claudius@yahoo.com>
+
+ * src/gxvalid/gxvmod.c (GXV_TABLE_DECL): Mark local variable `_sfnt'
+ as volatile since it must keep its value across a call to ft_setjmp.
+ (gxv_validate): Same for local variables `memory' and `valid'.
+ (classic_kern_validate): Same for local variables `memory',
+ `ckern', and `valid'.
+
+ * src/otvalid/otvmod.c (otv_validate): Same for function parameter
+ `face' and local variables `base', `gdef', `gpos', `gsub', `jstf',
+ and 'valid'.
+
+ * src/sfnt/ttcmap.c (tt_face_build_cmaps): Same for local variable
+ `cmap'.
+
+2006-08-16 David Turner <david@freetype.org>
+
+ * src/cid/cidgload.c (cid_slot_load_glyph): Remove compiler
+ warnings.
+
+ * src/base/ftobjs.c (ft_validator_run): Disable function; it is
+ buggy by design. Always return -1.
+
+
+ Improvements to native TrueType hinting. This is a first try,
+ controlled by the FIX_BYTECODE macro in src/truetype/ttinterp.c.
+
+ * include/freetype/internal/ftgloadr.h (FT_GlyphLoadRec): Add member
+ `extra_points2'.
+
+ * include/freetype/internal/tttypes.h (TT_GlyphZoneRec): Add member
+ `orus'.
+
+ * src/base/ftgloadr.c (FT_GlyphLoader_Reset,
+ FT_GlyphLoader_Adjust_Points, FT_GlyphLoader_CreateExtra,
+ FT_GlyphLoader_CheckPoints, FT_GlyphLoader_CopyPoints): Updated to
+ handle `extra_points2'.
+
+ * src/truetype/ttgload.c (tt_prepare_zone): Handle `orus'.
+ Remove compiler warning.
+ (cur_to_arg): Remove macro.
+ (TT_Hint_Glyph): Updated.
+ (TT_Process_Simple_Glyph): Handle `orus'.
+
+ * src/truetype/ttinterp.c (FIX_BYTECODE): New macro.
+ (Ins_MD, Ins_MDRP, Ins_IP) [FIX_BYTECODE]: Handle `orus'.
+ (LOC_Ins_IUP): Renamed to...
+ (IUP_WorkerRec): This.
+ Add `orus' member.
+ (Shift): Renamed to...
+ (_iup_worker_shift): This.
+ Updated.
+ (Interp): Renamed to...
+ (_iup_worker_interpolate): This.
+ Updated to handle `orus'.
+ (Ins_IUP): Updated.
+
+ * src/truetype/ttobjs.c (tt_glyphzone_done, tt_glyphzone_new):
+ Handle `orus'.
+
+2006-08-15 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ * modules.cfg (BASE_EXTENSIONS): Compile in ftgxval.c by default to
+ build ftvalid in ft2demos. This has been inadvertently changed
+ 2006-08-13.
+
+2006-08-15 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ `ft_validator_run' wrapping `setjmp' can cause a crash, as found by
+ Jens:
+ https://lists.gnu.org/archive/html/freetype-devel/2006-08/msg00004.htm.
+
+ * src/otvalid/otvmod.c: Replace `ft_validator_run' by `ft_setjmp'.
+ It reverts the change introduced on 2005-08-20.
+
+ * src/gxvalid/gxvmod.c: Ditto.
+
+2006-08-13 Jens Claudius <jens.claudius@yahoo.com>
+
+ * finclude/freetype/internal/psaux.h: (T1_TokenType): Add
+ T1_TOKEN_TYPE_KEY.
+ (T1_FieldRec): Add `dict'.
+ (T1_FIELD_DICT_FONTDICT, T1_FIELD_DICT_PRIVATE): New macros.
+ (T1_NEW_XXX, T1_FIELD_XXX): Update to take the dictionary where a PS
+ keyword is expected as an additional argument.
+
+ * src/cid/cidload.c: (cid_field_records): Adjust invocations of
+ T1_FIELD_XXX.
+
+ * src/cid/cidtoken.h: Adjust invocations of T1_FIELD_XXX.
+
+ * src/psaux/psobjs.c: Add macro FT_COMPONENT for tracing.
+ (ps_parser_to_token): Report a PostScript key as T1_TOKEN_TYPE_KEY,
+ not T1_TOKEN_TYPE_ANY.
+ (ps_parser_load_field): Make sure a token that should be a string or
+ name is really a string or name.
+ Avoid memory leak if a keyword has been already encountered and its
+ value is overwritten.
+ * src/type1/t1load.c: (t1_keywords): Adjust invocations of
+ T1_FIELD_XXX.
+ (parse_dict): Ignore keywords that occur in the wrong dictionary
+ (e.g., in `Private' instead of `FontDict').
+
+ * src/type1/t1tokens.h: Adjust invocations of T1_FIELD_XXX.
+
+ * src/type42/t42parse.c: (t42_keywords): Adjust invocations of
+ T1_FIELD_XXX.
+
+2006-07-18 Jens Claudius <jens.claudius@yahoo.com>
+
+ Move creation of field `buildchar' of T1_DecoderRec out of
+ `t1_decoder_init' and let the caller of `t1_decoder_init' take care
+ of it.
+
+ Call the finisher for T1_Decoder in `cid_face_compute_max_advance'
+ and `T1_Compute_Max_Advance'.
+
+ * include/freetype/internal/psaux.h (T1_DecoderRec): Remove field
+ `face', add `len_buildchar'.
+
+ * include/freetype/internal/t1types.h (T1_FaceRec): Add field
+ `buildchar'.
+
+ * src/cid/cidgload.c (cid_face_compute_max_advance): Call finisher
+ for T1_Decoder.
+ (cid_slot_load_glyph): Do not ignore failure when initializing the
+ T1_Decoder.
+
+ * src/psaux/t1decode.c (t1_decoder_parse_charstrings): Updated.
+ (t1_decoder_init): Remove initialization of fields `buildchar' and
+ `len_buildchar'.
+ (t1_decoder_done): Remove deallocation of field `buildchar'.
+
+ * freetype/src/type1/t1gload.c (T1_Compute_Max_Advance): Initialize
+ T1_Decoder's `buildchar' and `len_buildchar'; call finisher for
+ T1_Decoder.
+ (T1_Load_Glyph): Initialize T1_Decoder's `buildchar' and
+ `len_buildchar'; make sure to call finisher for T1_Decoder even in
+ case of error.
+
+ * src/type1/t1load.c (T1_Open_Face): Allocate new field `buildchar'
+ of T1_FaceRec.
+
+ * src/type1/t1objs.c (T1_Face_Done): Free new field `buildchar' of
+ T1_FaceRec.
+
+2006-07-14 Jens Claudius <jens.claudius@yahoo.com>
+
+ * include/freetype/internal/psaux.h: New macros IS_PS_NEWLINE,
+ IS_PS_SPACE, IS_PS_SPECIAL, IS_PS_DELIM, IS_PS_DIGIT, IS_PS_XDIGIT,
+ and IS_PS_BASE85 (from src/psaux/psconv.h).
+ (T1_FieldLocation): Add T1_FIELD_LOCATION_LOADER,
+ T1_FIELD_LOCATION_FACE, and T1_FIELD_LOCATION_BLEND.
+ (T1_DecoderRec): New fields `buildchar' and `face'.
+ (IS_PS_TOKEN): New macro.
+
+ * include/freetype/internal/t1types.h (T1_FaceRec): New fields
+ `ndv_idx', `cdv_idx', and `len_buildchar'.
+
+ * include/freetype/t1tables.h (PS_BlendRec): New fields
+ `default_design_vector' and `num_default_design_vector'.
+
+ * src/psaux/psconv.h: Move macros IS_PS_NEWLINE, IS_PS_SPACE,
+ IS_PS_SPECIAL, IS_PS_DELIM, IS_PS_DIGIT, IS_PS_XDIGIT, and
+ IS_PS_BASE85 to include/freetype/internal/psaux.h.
+
+ * src/psaux/psobjs.c (ps_parser_to_token_array): Allow `token'
+ argument to be NULL if we want only to count the number of tokens.
+ (ps_tocoordarray): Allow `coords' argument to be NULL if we just
+ want to skip the array.
+ (ps_tofixedarray): Allow `values' argument to be NULL if we just
+ want to skip the array.
+
+ * src/psaux/t1decode.c (t1_decoder_parse_charstrings): Add support
+ for (partially commented out) othersubrs 19-25, 27, and 28.
+ (t1_decoder_init): Initialize new fields `face' and `buildchar'.
+ (t1_decoder_done): Release new field `buildchar'.
+
+ * src/type1/t1load.c (parse_buildchar, parse_private): New
+ functions.
+ (t1_keywords): Register them.
+ (t1_allocate_blend): Updated.
+ (t1_load_keyword): Handle field types T1_FIELD_LOCATION_LOADER,
+ T1_FIELD_LOCATION_FACE and T1_FIELD_LOCATION_BLEND.
+ (parse_dict): Remove `keyword_flags' argument.
+ Use new macro IS_PS_TOKEN.
+ Changed function so that later PostScript definitions override
+ earlier ones.
+ (t1_init_loader): Initialize new field `keywords_encountered'.
+ (T1_Open_Face): Initialize new fields `ndv_idx', `cdv_idx', and
+ `len_buildchar'.
+ Remove `keywords_flags'.
+
+ * src/type1/t1load.h (T1_LoaderRec): New field
+ `keywords_encountered'.
+ (T1_PRIVATE, T1_FONTDIR_AFTER_PRIVATE): New macros.
+
+ * src/type1/t1tokens.h [!T1_CONFIG_OPTION_NO_MM_SUPPORT]: New
+ entries for parsing /NDV, /CDV, and /DesignVector.
+
+2006-07-07 Werner Lemberg <wl@gnu.org>
+
+ Add many checks to protect against malformed PCF files.
+
+ * src/pcf/pcfdrivr.c (PCF_Face_Done): Protect against NULL pointers.
+ (PCF_Face_Init): Add calls to PCF_Face_Done in case of errors.
+
+ * src/pcf/pcfread.c (pcf_read_TOC): Protect against malformed table
+ data and check that tables don't overlap (using a simple
+ bubblesort).
+ (PCF_METRIC_SIZE, PCF_COMPRESSED_METRIC_SIZE, PCF_PROPERTY_SIZE):
+ New macros which give the size of data structures in the data
+ stream.
+ (pcf_get_properties): Use rough estimates to get array size limits.
+ Assign `face->nprops' and `face->properties' earlier so that a call
+ to PCF_Face_Done can do the clean-up in case of error.
+ Protect against invalid string offsets.
+ (pcf_get_metrics): Clean up code.
+ Adjust tracing message levels.
+ Use rough estimate to get array size limit.
+ (pcf_get_bitmaps): Clean up code.
+ Adjust tracing message levels.
+ Use rough estimates to get offset limits.
+ (pcf_get_encodings): Adjust tracing message level.
+ (pcf_get_accel): Clean up code.
+
+2006-06-26 Werner Lemberg <wl@gnu.org>
+
+ * src/bdf/bdfdrivr.c (BDF_Face_Init): Handle fonts correctly which
+ don't have a POINT_SIZE property. This fixes Savannah bug #16914.
+
+2006-06-26 Jens Claudius <jens.claudius@yahoo.com>
+
+ * src/psaux/t1decode.c (T1_Operator, t1_args_count): Add opcode 15.
+ (t1_decoder_parse_charstrings): Operator with
+ opcode 15 pops its two arguments.
+ Handle the case where the pops of an othersubr may be part of a
+ subroutine.
+ Handle unknown othersubrs gracefully: count their operands and let
+ the following pop operators push the operands as the results onto
+ the Type1 stack.
+ Improve handling of setcurrentpoint opcode.
+
+2006-06-25 Jens Claudius <jens.claudius@yahoo.com>
+
+ The Type 1 parser now skips over top-level procedures as required
+ for a `Simplified Parser'. This makes the parser more robust as it
+ doesn't poke around in PostScript code. Additionally, it makes the
+ FontDirectory hackery in src/type1/t1load.c unnecessary.
+
+ * src/psaux/psobjs.c (IS_OCTAL_DIGIT): New macro.
+ (skip_literal_string): Add FT_Error as return value.
+ Handle escapes better.
+ (skip_string): Add FT_Error as return value.
+ Don't set `parser->error' but return error code directly.
+ (skip_procedure): New function.
+ (ps_parser_skip_PS_token): Handle procedures.
+ Update code.
+ (ps_parser_to_token): Update code.
+ (ps_parser_load_field_table): Handle bbox entries also.
+
+ * src/type1/t1load.c (parse_dict): Remove FontDirectory hackery.
+ Add commented-out code for synthetic fonts.
+
+2006-06-24 Eugeniy Meshcheryakov <eugen@univ.kiev.ua>
+
+ Fix two hinting bugs as reported in
+ https://lists.gnu.org/archive/html/freetype-devel/2006-06/msg00057.html.
+
+ * include/freetype/internal/tttypes.h (TT_GlyphZoneRec): Add
+ `first_point' member.
+
+ * src/truetype/ttgload.c (tt_prepare_zone): Initialize
+ `first_point'.
+ (TT_Process_Composite_Glyph): Always untouch points.
+
+ * src/truetype/ttinterp.c (Ins_SHC): Fix computation of
+ `first_point' and `last_point' in case of composite glyphs.
+ (Ins_IUP): Fix computation of `end_point'.
+
+2006-06-22 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ Insert EndianS16_BtoN and EndianS32_BtoN as workaround for Intel
+ Mac. The original patch was written by David Sachitano and Lawrence
+ Coopet, and modified by Sean McBride for MPW compatibility. Only
+ required data are converted; unused data are left in big endian.
+
+ * src/base/ftmac.c: Include <Endian.h> for byteorder macros for non
+ Mac OS X platforms.
+ (OS_INLINE): Undefine before definition.
+ (count_faces_sfnt): Insert EndianS16_BtoN to parse the header of
+ FontAssociation table in FOND resource.
+ (count_faces_scalable): Insert EndianS16_BtoN to parse the header
+ and fontSize at each entry of FontAssociation table in FOND
+ resource.
+ (parse_fond): Insert EndianS16_BtoN and EndianS32_BtoN to parse
+ ffStylOff of FamilyRecord header of FOND resource, the header,
+ fontSize, fontID at each entry of FontAssociation table, and
+ StyleMapping table.
+ (count_faces): Call `HUnlock' after all FOND utilization.
+
+2006-06-08 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ Public API of TrueTypeGX, OpenType, and classic kern table validator
+ should return `FT_Err_Unimplemented_Feature' if validation service
+ is unavailable (disabled in `modules.cfg'). It is originally
+ suggested by David Turner, cf.
+ https://lists.gnu.org/archive/html/freetype-devel/2005-11/msg00078.html
+
+ * src/base/ftgxval.c (FT_TrueTypeGX_Validate): Return
+ FT_Err_Unimplemented_Feature if TrueTypeGX validation service is
+ unavailable.
+ (FT_ClassicKern_Validate): Return FT_Err_Unimplemented_Feature if
+ classic kern table validation service is unavailable.
+
+ * src/base/ftotval.c (FT_OpenType_Validate): Return
+ FT_Err_Unimplemented_Feature if OpenType validation service is
+ unavailable.
+
+2006-06-08 Werner Lemberg <wl@gnu.org>
+
+ * src/bdf/bdflib.c (bdf_load_font): Fix memory leaks in case of
+ errors.
+
+2006-06-07 David Turner <david@freetype.org>
+
+ * src/type1/t1afm.c (KERN_INDEX): Make it more robust.
+ (T1_Read_Metrics): Fix memory leak which happened when the metrics
+ file doesn't have kerning pairs. This fixes Savannah bug #16768.
+
+2006-06-06 David Turner <david@freetype.org>
+
+ Fix memory leak described in Savannah bug #16759.
+
+ We change `ps_unicodes_init' so that it also takes a
+ `free_glyph_name' callback to release the glyph names returned by
+ `get_glyph_name'
+
+ * include/freetype/internal/services/svpscmap.h (PS_Glyph_NameFunc):
+ Renamed to ...
+ (PS_GetGlyphNameFunc): This.
+ (PS_FreeGlyphNameFunc): New typedef.
+ (PS_Unicodes_InitFunc): Add variable for PS_FreeGlyphNameFunc.
+
+ * src/cff/cffcmap.c (cff_sid_to_glyph_name): Use `TT_Face' for first
+ argument.
+ (cff_sid_free_glyph_name): New function.
+ (cff_cmap_unicode_init): Updated.
+
+ * src/psaux/t1cmap.c (t1_cmap_unicode_init): Updated.
+
+ * src/psnames/psmodule.c (ps_unicodes_init): Add variable for
+ PS_FreeGlyphNameFunc and use it.
+
+
+2006-06-04 David Turner <david@freetype.org>
+
+ * src/base/ftutil.c (ft_mem_qrealloc): Fix the function to accept
+ `item_size == 0' as well -- though this sounds weird, it can
+ theoretically happen. This fixes Savannah bug #16669.
+
+ * src/pfr/pfrobjs.c (pfr_face_init): Fix the computation
+ of `face->num_glyphs' which missed the last glyph, due to
+ the offset-by-1 computation, since the PFR format doesn't
+ guarantee that glyph index 0 corresponds to the `missing
+ glyph. This fixes Savannah bug #16668.
+
+2006-05-25 Werner Lemberg <wl@gnu.org>
+
+ * builds/unix/unix-cc.in (LINK_LIBRARY): Don't comment out
+ `-no-undefined'. Reported by Christian Biesinger.
+
+2006-05-19 Brian Weed <bw@imaginengine.com>
+
+ * builds/win32/visualc/freetype.dsp: Release libraries no longer
+ have debug information, and debug libraries use `C7 compatible'
+ debug info.
+
+2006-05-19 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ Apply patch by Derek Clegg to fix two memory leaks in the MacOS
+ resource fork handler. This fixes Savannah bug #16631.
+
+ * src/base/ftobjs.c (load_face_in_embedded_rfork): Replace
+ `FT_Stream_Close' by `FT_Stream_Free' to fix memory leak.
+
+ * src/base/ftrfork.c (raccess_guess_linux_double_from_file_name):
+ Replace `FT_Stream_Close' by `FT_Stream_Free' to fix memory leak.
+
+2006-05-19 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ * build/unix/configure.raw: Add a fallback to disable Carbon
+ dependency, if configured with no options on Mac OS X.
+
+2006-05-19 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ * src/base/ftmac.c (open_face_from_buffer): Deallocate stream when
+ its content cannot be parsed as supported font. This fixes
+ the second part of Savannah bug #16590.
+
+2006-05-18 Werner Lemberg <wl@gnu.org>
+
+ * src/truetype/ttgload.c (TT_Load_Composite_Glyph)
+ [TT_CONFIG_OPTION_BYTECODE_INTERPRETER]: Make it compilable again.
+
+2006-05-17 David Turner <david@freetype.org>
+
+ This is a major patch used to drastically improve the performance of
+ loading glyphs. This both speeds up loading the glyph vectors
+ themselves and the auto-fitter module.
+
+ We now use inline assembler code with GCC to implement `FT_MulFix',
+ which is probably the most important function related to the
+ engine's performance.
+
+ The resulting speed-up is about 25%.
+
+
+ * include/freetype/internal/tttypes.h (TT_LoaderRec): Add fields
+ `cursor' and `limit'.
+
+ * src/autofit/afangles.c (af_corner_is_flat, af_corner_orientation):
+ New functions.
+ (AF_ATAN_BITS, af_arctan, af_angle_atan): Comment out.
+ [TEST]: Remove.
+
+ * src/autofit/afcjk.c (AF_Script_UniRangeRec): Comment out test
+ code.
+
+ * src/autofit/afhints.c (af_axis_hints_new_segment): Don't call
+ `FT_ZERO'
+ (af_direction_compute, af_glyph_hints_compute_inflections): Rewritten.
+ (af_glyph_hints_reload: Rewrite recognition of weak points.
+
+ * src/autofit/aflatin.c (af_latin_hints_compute_segments): Move
+ constant values out of the loops.
+
+ * src/autofit/aftypes.h: Updated.
+
+ * src/base/ftcalc.c (FT_MulFix): Use inline assembler code.
+
+ * src/base/ftoutln.c (FT_Outline_Get_Orientation): Use vector
+ product to get orientation.
+
+ * src/gzip/ftgzip.c (ft_get_uncompressed_size): New function.
+ (FT_Stream_OpenGzip): Use it to handle small files directly in
+ memory.
+
+ * src/psaux/psconv.c (PS_Conv_ASCIIHexDecode, PS_Conv_EexecDecode):
+ Improve performance.
+
+ * src/truetype/ttgload.c (TT_Access_Glyph_Frame): Set `cursor' and
+ `limit'.
+
+ (TT_Load_Glyph_Header, TT_Load_Simple_Glyph,
+ TT_Load_Composite_Glyph): Updated. Add threshold to protect against
+ exceedingly large values of number of contours. Speed up by
+ reducing the number of loops.
+
+ * src/type1/t1gload.c (T1_Load_Glyph): Don't apply unit matrix.
+
+
+ * src/cache/ftccmap.c (FTC_CMapCache_Lookup): Change the threshold
+ used to detect rogue clients from 4 to 16. This is to prevent some
+ segmentation faults with fonts like `KozMinProVI-Regular.otf' which
+ comes from the Japanese Adobe Reader Asian Font pack.
+
+2007-05-17 Werner Lemberg <wl@gnu.org>
+
+ * src/cff/cffload.c (cff_font_done): Deallocate subfont array. This
+ fixes the first part of Savannah bug #16590.
+
+2006-05-16 Werner Lemberg <wl@gnu.org>
+
+ * docs/PROBLEMS: Updated icl issues.
+
+----------------------------------------------------------------------------
+
+Copyright (C) 2006-2021 by
+David Turner, Robert Wilhelm, and Werner Lemberg.
+
+This file is part of the FreeType project, and may only be used, modified,
+and distributed under the terms of the FreeType project license,
+LICENSE.TXT. By continuing to use, modify, or distribute this file you
+indicate that you have read the license and understand and accept it
+fully.
+
+
+Local Variables:
+version-control: never
+coding: utf-8
+End:
diff --git a/freetype/docs/oldlogs/ChangeLog.24 b/freetype/docs/oldlogs/ChangeLog.24
new file mode 100644
index 00000000..9d06b0f5
--- /dev/null
+++ b/freetype/docs/oldlogs/ChangeLog.24
@@ -0,0 +1,6360 @@
+2013-05-08 Werner Lemberg <wl@gnu.org>
+
+ * Version 2.4.12 released.
+ ==========================
+
+
+ Tag sources with `VER-2-4-12'.
+
+ * docs/VERSION.DLL: Update documentation and bump version number to
+ 2.4.12.
+
+ * README, Jamfile (RefDoc),
+ builds/win32/vc2005/freetype.vcproj, builds/win32/vc2005/index.html,
+ builds/win32/vc2008/freetype.vcproj, builds/win32/vc2008/index.html,
+ builds/win32/vc2010/freetype.vcxproj, builds/win32/vc2010/index.html,
+ builds/win32/visualc/freetype.dsp,
+ builds/win32/visualc/freetype.vcproj,
+ builds/win32/visualc/index.html, builds/win32/visualce/freetype.dsp,
+ builds/win32/visualce/freetype.vcproj,
+ builds/win32/visualce/index.html,
+ builds/wince/vc2005-ce/freetype.vcproj,
+ builds/wince/vc2005-ce/index.html,
+ builds/wince/vc2008-ce/freetype.vcproj,
+ builds/wince/vc2008-ce/index.html: s/2.4.11/2.4.12/, s/2411/2412/.
+
+ * include/freetype/freetype.h (FREETYPE_PATCH): Set to 12.
+
+ * builds/unix/configure.raw (version_info): Set to 16:1:10.
+
+2013-05-08 Werner Lemberg <wl@gnu.org>
+
+ * docs/CHANGES: Updated.
+
+2013-05-08 Werner Lemberg <wl@gnu.org>
+
+ * src/autofit/aflatin.c (af_latin_metrics_scale_dim): Typo.
+
+2013-05-05 Werner Lemberg <wl@gnu.org>
+
+ Synchronize `ftconfig.h'.
+
+ * builds/unix/ftconfig.in: Updated.
+
+2013-05-05 Werner Lemberg <wl@gnu.org>
+
+ Fix compilation with C++.
+
+ * src/base/md5.c (body): Use proper cast.
+
+2013-05-05 Werner Lemberg <wl@gnu.org>
+
+ Fix 64bit compilation issues.
+
+ * include/freetype/config/ftconfig.h [FT_LONG64]: Typedef
+ `FT_Int64' here.
+
+ * src/base/ftcalc.c: Remove typedef of `FT_Int64'.
+ (FT_DivFix): Fix cast.
+ * src/base/fttrigon.c: Remove typedef of `FT_Int64'.
+
+2013-05-05 Werner Lemberg <wl@gnu.org>
+
+ [raster] Fix clang issues.
+
+ Fix suggested by <octoploid@yandex.com>.
+
+ * src/raster/ftraster.c (ULong): New typedef.
+ (SCALED): Add proper cast.
+
+2013-05-04 Werner Lemberg <wl@gnu.org>
+
+ Fix clang fixes.
+
+ * src/base/fttrigon.c (ft_trig_prenorm, FT_Vector_Rotate): Use
+ correct types.
+
+ * src/cff/cf2intrp.c (cf2_interpT2CharString) <default>: Force
+ unsigned for computations.
+ * src/cff/cffgload.c (cff_decoder_parse_charstrings): Ditto.
+ * src/cff/cffparse.c (cff_parse_integer): Ditto.
+
+ * src/psaux/t1decode.c (t1_decoder_parse_charstrings): Ditto.
+
+2013-05-04 Werner Lemberg <wl@gnu.org>
+
+ [cff] Make Adobe CFF engine work correctly on 64bit hosts.
+
+ Reported by numerous people on the `freetype-devel' list. Without
+ this fix, glyphs aren't properly aligned on a common baseline.
+
+ On 64bit systems, `FT_Pos' expands to `long int', having a width of
+ 64bit. `CF2_Fixed' expands to `int' which is normally 32bit wide on
+ 64bit hosts also. Wrong casts filled up the blues arrays with
+ incorrect values. Note that all blues values are accessed with the
+ `cf2_blueToFixed' macro which handles the 64bit to 32bit conversion.
+
+ * src/cff/cf2ft.h (cf2_getBlueValues, cf2_getOtherBlues,
+ cf2_getFamilyBlues, cf2_getFamilyOtherBlues): Use `FT_Pos' for
+ `data', not `CF2_Fixed'.
+ * src/cff/cf2ft.c (cf2_getBlueValues, cf2_getOtherBlues,
+ cf2_getFamilyBlues, cf2_getFamilyOtherBlues): Updated.
+ * src/cff/cf2blues.c (cf2_blues_init): Updated.
+
+2013-05-04 Werner Lemberg <wl@gnu.org>
+
+ More fixes for clang's `sanitize' feature.
+
+ * src/base/ftcalc.c (FT_DivFix): Use unsigned values for
+ computations which use the left shift operator and convert to signed
+ as the last step.
+ * src/base/fttrigon.c (ft_trig_prenorm, FT_Vector_Rotate,
+ FT_Vector_Length, FT_Vector_Polarize): Ditto.
+
+ * src/cff/cffgload.c (cff_decoder_parse_charstrings): Simplify.
+ * src/cff/cffload.c (cff_subfont_load): Fix constant.
+ * src/cff/cffparse.c (cff_parse_integer, cff_parse_real, do_fixed,
+ cff_parse_fixed_dynamic): Use unsigned values for computations which
+ use the left shift operator and convert to signed as the last step.
+
+ * src/cid/cidload.c (cid_get_offset): Ditto.
+
+ * src/psaux/psconv.c (PS_Conv_ToFixed): Ditto.
+ * src/psaux/t1decode.c (t1_decoder_parse_charstrings): Ditto.
+
+ * src/truetype/ttinterp.c (TT_MulFix14, TT_DotFix14): Ditto.
+
+2013-05-04 Werner Lemberg <wl@gnu.org>
+
+ Fix errors reported by clang's `sanitize' feature.
+
+ * include/freetype/internal/ftstream.h: Simplify and fix integer
+ extraction macros.
+ (FT_INT8_, FT_BYTE_I16, FT_BYTE_I32, FT_INT8_I16, FT_INT8_I32,
+ FT_INT8_I32, FT_INT8_U32): Removed.
+ (FT_PEEK_SHORT, FT_PEEK_LONG, FT_PEEK_OFF3, FT_PEEK_SHORT_LE,
+ FT_PEEK_LONG_LE, FT_PEEK_OFF3_LE): Use unsigned values for
+ computations and convert to signed as the last step.
+
+ * src/cff/cf2fixed.h (cf2_intToFixed, cf2_fixedToInt,
+ cf2_fracToFixed): Avoid shifts of negative values.
+ (cf2_intToFrac, cf2_fixedToFrac, cf2_fixedTo26Dot6): Removed,
+ unused.
+
+ * src/cff/cf2intrp.c (cf2_interpT2CharString) <cf2_cmdEXTENDEDNMBR,
+ default>: Use unsigned values for computations and convert to signed
+ as the last step.
+ Use proper types in tracing messages.
+
+ * src/cff/cffgload.c (cff_decoder_parse_charstrings): Use unsigned
+ values for computation of operands and convert to signed as the last
+ step.
+ Use proper type in tracing message.
+
+2013-05-03 Werner Lemberg <wl@gnu.org>
+
+ * src/cff/cf2blues.c: Remove dead code.
+
+2013-05-02 Chris Liddell <chris.liddell@artifex.com>
+
+ * src/cff/cffgload.c: Include FT_CFF_DRIVER_H.
+
+2013-04-27 Werner Lemberg <wl@gnu.org>
+
+ * docs/CHANGES: Updated.
+ * README: Improved.
+
+2013-04-13 Werner Lemberg <wl@gnu.org>
+
+ [cff] Add a new Type 2 interpreter and hinter.
+
+ This work, written by Dave Arnold <darnold@adobe.com> and fully
+ integrated into FreeType by me, is a donation by Adobe in
+ collaboration with Google. It is vastly superior to the old CFF
+ engine, and it will replace it soon. Right now, it is still off by
+ default, and you have to explicitly select it using the new
+ `hinting-engine' property of the cff driver.
+
+ For convenience, (most of) the new files are committed separately.
+
+ * include/freetype/config/ftheader.h (FT_CFF_DRIVER_H): New macro.
+ * include/freetype/ftcffdrv.h: New file to access CFF driver
+ properties.
+ * include/freetype/fterrdef.h (FT_Err_Glyph_Too_Big): New error
+ code.
+ * include/freetype/internal/fttrace.h: Add `cf2blues', `cf2hints',
+ and `cf2interp'.
+
+ * src/cff/cffgload.h (CFF_SubFont): New member `current_subfont'.
+ * src/cff/cffobjs.h (CFF_DriverRec): New members `hinting_engine'
+ and `no_stem_darkening'.
+ * src/cff/cfftypes.h (CFF_FontRec): New member `cf2_instance'.
+
+ * src/cff/cff.c: Include new files.
+ * src/cff/cffdrivr.c (cff_property_set, cff_property_get): Handle
+ `hinting-engine' and `no-stem-darkening' properties (only the Adobe
+ engine listens to them).
+ * src/cff/cffgload.c: Include `cf2ft.h'.
+ (cff_decoder_prepare): Initialize `current_subfont'.
+ (cff_build_add_point): Handle Adobe engine which uses 16.16
+ coordinates.
+ (cff_slot_load): Handle FT_LOAD_NO_SCALE and FT_LOAD_NO_HINTING
+ separately.
+ Choose rendering engine based on `hinting_engine' property.
+ * src/cff/cffload.c (cff_font_done): Call finalizer of the Adobe
+ engine.
+ * src/cff/cffobjs.c: Include FT_CFF_DRIVER_H.
+ (cff_driver_init): Set default property values.
+
+ * src/cff/rules.mk (CFF_DRV_SRC, CFF_DRV_H): Add new files.
+
+ * src/cff/cf2*.*: New files, containing the Adobe engine.
+
+2013-04-12 Werner Lemberg <wl@gnu.org>
+
+ [cff] Minor code administration issues.
+
+ * src/cff/cffgload.c (check_points): Rename to...
+ (cff_check_points): ...this and make it FT_LOCAL.
+ (cff_builder_add_point, cff_builder_add_point1,
+ cff_builder_start_point, cff_builder_close_contour,
+ cff_lookup_glyph_by_stdcharcode, cff_get_glyph_data,
+ cff_free_glyph_data): Make them FT_LOCAL.
+
+ * src/cff/cffgload.h: Updated.
+
+2013-04-12 Werner Lemberg <wl@gnu.org>
+
+ Add output bitmap checksums.
+
+ Use `FT2_DEBUG=bitmap:3' for tracing.
+
+ * src/base/md5.c, src/base/md5.h: New files, taken from
+
+ https://openwall.info/wiki/people/solar/software/public-domain-source-code/md5
+
+ * include/freetype/internal/fttrace.h: Add `bitmap'.
+
+ * src/base/ftobjs.c [FT_DEBUG_LEVEL_TRACE]: Include `md5.c'
+
+ (FT_Render_Glyph_Internal) [FT_DEBUG_LEVEL_TRACE]: For tracing,
+ convert resulting bitmap to a uniform format and compute a checksum.
+ Use `bitmap' category for the tracing message.
+
+ * src/base/rules.mk (BASE_H): Updated.
+
+ * docs/LICENSE.TXT: Updated.
+
+2013-04-12 Werner Lemberg <wl@gnu.org>
+
+ [cff] Add framework for CFF properties.
+
+ * include/freetype/internal/ftserv.h (FT_DEFINE_SERVICEDESCREC7):
+ New macro.
+
+ * src/cff/cffdrivr.c: Include FT_SERVICE_PROPERTIES_H.
+ (cff_property_set, cff_property_get): New functions, still empty.
+ Define `cff_service_properties' service.
+ Update `cff_services'.
+
+ * src/cff/cffpic.h: Include FT_SERVICE_PROPERTIES_H.
+ (CFF_SERVICE_PROPERTIES_GET): New macro.
+ (CffModulePIC): Add `cff_service_properties'.
+
+2013-04-03 Werner Lemberg <wl@gnu.org>
+
+ [bdf] Fix Savannah bug #38589.
+
+ * src/bdf/bdflib.c (_bdf_readstream): Thinko.
+
+2013-03-31 Werner Lemberg <wl@gnu.org>
+
+ * configure: Use egrep, not grep.
+
+ Problem reported Mojca Miklavec <mojca.miklavec.lists@gmail.com>.
+
+2013-03-29 Werner Lemberg <wl@gnu.org>
+
+ * include/freetype/ftlcdfil.h: Add description of color filtering.
+
+ Based on a contribution from Antti S. Lankila <alankila@bel.fi>
+ (Savannah bug #38607).
+
+2013-03-23 Werner Lemberg <wl@gnu.org>
+
+ [autofit] Minor.
+
+ * src/autofit/afmodule.c (af_property_set): Typo.
+ (af_autofitter_init, af_autofitter_done): Use cast.
+
+2013-03-21 Werner Lemberg <wl@gnu.org>
+
+ * configure: Automatically test for `gmake' also.
+
+ Suggested by Mojca Miklavec <mojca.miklavec.lists@gmail.com>.
+
+2013-03-21 Peter Breitenlohner <peb@mppmu.mpg.de>
+
+ Respect CONFIG_SHELL from the environment.
+
+ Some large packages using FreeType have to use a broken (deficient)
+ /bin/sh. The configure scripts (as generated by Autoconf) are
+ clever enough to find a better shell and put that one into the
+ environment variable CONFIG_SHELL. If that environment variable is
+ already set the script skips the test and assumes to be already
+ running under a good shell.
+
+ * builds/unix/detect.mk: Honour CONFIG_SHELL.
+ * builds/unix/unix-def.in (SHELL): Define.
+
+2013-03-21 Werner Lemberg <wl@gnu.org>
+
+ Fix Savannah patch #7971.
+
+ * configure: Handle MAKE environment variable also.
+
+2013-03-17 Werner Lemberg <wl@gnu.org>
+
+ Fix Savannah bug #38538.
+
+ * builds/amiga/src/base/ftdebug.c, builds/win32/ftdebug.c,
+ builds/wince/ftdebug.c (FT_Throw): Add function.
+
+2013-03-17 Werner Lemberg <wl@gnu.org>
+
+ [raster] Remove dead code.
+
+ * src/raster/rastpic.c (ft_raster1_renderer_class_pic_init)
+ src/smooth/ftspic.c (ft_smooth_renderer_class_pic_init): Do it.
+
+2013-03-17 Werner Lemberg <wl@gnu.org>
+
+ * src/pshinter/pshpic.h (GET_PIC): Use correct container.
+
+2013-03-15 Werner Lemberg <wl@gnu.org>
+
+ * include/freetype/ftmoderr.h: Fix commit from 2013-03-11.
+
+ The previous version was not backward compatible. Reported by
+ Behdad.
+
+2013-03-14 Werner Lemberg <wl@gnu.org>
+
+ */*: Use FT_ERR_EQ, FT_ERR_NEQ, and FT_ERR where appropriate.
+
+ FT_Err_XXX and friends are no longer directly used in the source
+ code.
+
+2013-03-14 Werner Lemberg <wl@gnu.org>
+
+ New error management macros.
+
+ * include/freetype/fterrors.h (FT_ERR_XCAT, FT_ERR_CAT): Move to...
+ * include/freetype/fttypes.h: ... this file.
+ (FT_ERR, FT_ERR_EQ, FT_ERR_NEQ, FT_MODERR_EQ, FT_MODERR_NEQ): New
+ macros.
+
+ * include/freetype/freetype.h: Updated.
+
+2013-03-14 Werner Lemberg <wl@gnu.org>
+
+ */*: Use FT_Err_Ok only.
+
+ This is a purely mechanical conversion.
+
+2013-03-14 Werner Lemberg <wl@gnu.org>
+
+ */*: Use `FT_THROW'.
+
+ This is essentially a mechanical conversion, adding inclusion of
+ `FT_INTERNAL_DEBUG_H' where necessary, and providing the macros for
+ stand-alone compiling modes of the rasterizer modules.
+
+ To convert the remaining occurrences of FT_Err_XXX and friends it is
+ necessary to rewrite the code. Note, however, that it doesn't harm
+ if some cases are not handled since FT_THROW is a no-op.
+
+2013-03-13 Werner Lemberg <wl@gnu.org>
+
+ Introduce `FT_THROW' macro.
+
+ The idea is to replace code like
+
+ return FT_Err_Foo_Bar;
+
+ or
+
+ return CFF_Err_Foo_Bar;
+
+ with
+
+ return FT_THROW( Foo_Bar );
+
+ The FT_THROW macro has two functions:
+
+ . It hides the module specific prefix.
+
+ . In debug mode, it calls the empty function `FT_Throw' which can
+ be thus used to set a breakpoint.
+
+ * include/freetype/internal/ftdebug.h (FT_THROW): New macro.
+ (FT_Throw): New prototype.
+ * src/base/ftdebug.c (FT_Throw): New function.
+
+2013-03-12 Werner Lemberg <wl@gnu.org>
+
+ Remove `FT_KEEP_ERR_PREFIX'.
+
+ The idea is to always have FT_ERR_PREFIX available internally.
+
+ * include/freetype/fterrors.h: Use FT2_BUILD_LIBRARY to guard
+ undefinition of FT_ERR_PREFIX
+
+ * src/gxvalid/gxverror.h, src/otvalid/otverror.h,
+ src/sfnt/sferrors.h: Updated.
+
+2013-03-11 Werner Lemberg <wl@gnu.org>
+
+ [gxvalid] Fix module error.
+
+ * src/gxvalid/gxverror.h (FT_ERR_BASE): Define as
+ FT_Mod_Err_GXvalid.
+ * include/freetype/ftmoderr.h: Add module error for `GXvalid'.
+
+2013-03-11 Werner Lemberg <wl@gnu.org>
+
+ Always use module related error codes.
+
+ * src/cff/cffobjs.c (cff_face_init), src/type1/t1objs.c
+ (T1_Face_Init), src/type42/t42objs.c (T42_Face_Init): Use
+ `FT_ERROR_BASE'.
+
+ * src/type1/t1load.c (parse_encoding): Use
+ T1_Err_Unknown_File_Format.
+
+2013-03-08 Werner Lemberg <wl@gnu.org>
+
+ [cff] Set `linear{Hori,Vert}Advance' for embedded bitmaps also.
+
+ Problem reported by Khaled Hosny <khaledhosny@eglug.org>.
+
+ * src/cff/cffgload.c (cff_slot_load): Implement it.
+
+2013-02-23 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ [base] Fix commit ab02d9e8.
+
+ * src/base/ftbbox.c (BBox_Cubic_Check): Change scaling to msb of 22.
+
+2013-02-19 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ [base] New bisecting BBox_Cubic_Check (disabled).
+
+ * src/base/ftbbox.c (BBox_Cubic_Check): New bisecting algorithm
+ for extremum search built around simple condition that defines
+ which half contains the extremum.
+
+2013-02-18 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ [tools] Update BBox testing tool.
+
+ * src/tools/test_bbox.c: Add another cubic outline with exact BBox.
+ (REPEAT): Increase the number of benchmarking cycles.
+ (profile_outline): Tweak output formatting.
+
+2013-02-02 Werner Lemberg <wl@gnu.org>
+
+ Fix Savannah bug #38235.
+
+ * builds/unix/configure.raw: Don't generate `freetype-config' and
+ `freetype.pc'.
+
+ * builds/unix/unix-def.in (FT2_EXTRA_LIBS, LIBBZ2, LIBZ,
+ build_libtool_libs, ft_version): New variables to be substituted.
+ (freetype-config, freetype.pc): New rules to generate those files.
+
+ * builds/unix/freetype-config.in: Remove code for handling `rpath'.
+ The use of $rpath has been accidentally removed in a patch from
+ 2009-12-22, and apparently noone has missed it since.
+ Use `%' instead of `@' as a variable substitution marker.
+ Use quotes.
+
+ * builds/unix/freetype.in: Use `%' instead of `@' as a variable
+ substitution marker.
+ Use quotes.
+
+2013-02-07 Werner Lemberg <wl@gnu.org>
+
+ * src/truetype/ttobjs.c (tt_size_run_prep): Reset more GS variables.
+
+ BTW, Greg agrees that the OpenType specification is missing the list
+ of GS variables which will always be reset to the default values
+ after the `prep' table has been executed.
+
+2013-02-06 Werner Lemberg <wl@gnu.org>
+
+ * src/truetype/ttobjs.c (tt_size_run_prep): Reset reference points.
+
+ Up to now, we simply took a snapshot of the Graphics State after the
+ `prep' table has been executed, and right before a glyph's bytecode
+ was run it got reloaded. However, as Greg Hitchcock has told us in
+ private communication, reference points get reset to zero in the MS
+ rasterizer and we follow in due course. While reasonable, this is
+ undocumented behaviour.
+
+ Most notably, this fixes the rendering of Arial's `x' glyph in
+ subpixel hinting mode.
+
+2013-02-05 Werner Lemberg <wl@gnu.org>
+
+ [truetype] A better fix for Savannah bug #38211.
+
+ * src/truetype/ttinterp.c (Ins_IP): Implement identical behaviour to
+ MS rasterizer if rp1 == rp2 (confirmed by Greg Hitchcock).
+
+2013-02-01 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ [pcf] Streamline parsing of PCF encoding table.
+
+ * src/pcf/pcfread.c (pcf_get_encodings): Use simpler double for-loop.
+ Reallocate array instead of using temporary storage.
+
+2013-02-01 Werner Lemberg <wl@gnu.org>
+
+ Fix Savannah bug #38227.
+
+ * builds/unix/freetype-config.in: Set LC_ALL.
+
+2013-02-01 Werner Lemberg <wl@gnu.org>
+
+ Fix Savannah bug #38221.
+
+ This complements commit 83c0ebab.
+
+ * src/base/ftcalc.c (FT_MulDiv_No_Round): Don't enclose with
+ `TT_USE_BYTECODE_INTERPRETER'.
+
+2013-02-01 Werner Lemberg <wl@gnu.org>
+
+ [truetype] Fix Savannah bug #38211.
+
+ * src/truetype/ttinterp.c (Ins_IP): Make FreeType behave identical
+ to other interpreters if rp1 == rp2 (which is invalid).
+
+2013-01-28 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ [base] Small optimization of BBox calculation.
+
+ * src/base/ftbbox.c (BBox_Cubic_Check): Use FT_MSB function in
+ scaling algorithm.
+
+2013-01-26 Infinality <infinality@infinality.net>
+
+ [truetype] Minor formatting fix.
+
+ * src/truetype/ttinterp.c: Updated.
+ (DO_RS): Fix indentation.
+
+2013-01-26 Infinality <infinality@infinality.net>
+
+ [truetype] Fix rasterizer_version logic in sph.
+
+ * src/truetype/ttsubpix.c: Updated.
+ (ALWAYS_SKIP_DELTAP_Rules): Remove rule for Trebuchet MS.
+ (sph_set_tweaks): Fix `rasterizer_version' logic.
+
+2013-01-26 Infinality <infinality@infinality.net>
+
+ [truetype] Align more to ClearType whitepaper for sph.
+
+ * include/freetype/internal/tttypes.h (TT_FaceRec): Add flags
+ for detected opcode patterns and compatibility mode.
+
+ * src/truetype/ttgload.c (tt_loader_init): Complete conditional.
+
+ * src/truetype/ttinterp.c: Updated.
+ Remove SPH_DEBUG and replace with FT_TRACE7.
+ (DO_RS): More conditions.
+ (Ins_FDEF): Add more opcode detection patterns.
+ More specific conditions when flagging an fdef.
+ Make compatibility mode only turn on when delta fdefs are found.
+ (Ins_CALL, Ins_LOOPCALL): Set flags for currently executed fdef.
+ (Ins_SHPIX): Remove logic to handle ttfautohinted fonts.
+ Simplify conditionals where possible.
+ Use `&' instead of `%' operator for dumb compilers.
+ (Ins_MIAP): Adjust twilight zone conditional.
+ Ensure `ignore_x_mode' is on when testing sph conditionals.
+ (Ins_MIRP): Ensure `ignore_x_mode' is on when testing sph
+ conditionals.
+ Do cvt cutin always when `ignore_x_mode' is active.
+ Remove test for ttfautohinted fonts.
+ (Ins_DELTAP): Ensure `ignore_x_mode' is on when testing sph
+ conditionals.
+ Do cvt cutin always when `ignore_x_mode' is active.
+ Remove test for ttfautohinted fonts.
+ Use `&' instead of `%' operator for dumb compilers.
+ (Ins_GETINFO): Remove SPH_DEBUG and replace with FT_TRACE7.
+
+ * src/truetype/ttinterp.h: Updated.
+ (TT_ExecContextRec): Remove compatibility_mode variable.
+ Add variable to indicate when executing in special fdefs for sph.
+
+ * src/truetype/ttobjs.h: Updated.
+ (TT_DefRecord): Add flags to identify special fdefs for sph.
+ (TT_SizeRec): Remove unnecessary ttfautohinted variable.
+
+ * src/truetype/ttsubpix.c: Updated.
+ (COMPATIBILITY_MODE_Rules): Remove all. Auto-detected now.
+ (PIXEL_HINTING_Rules): Remove all. Unnecessary after fixes.
+ (SKIP_NONPIXEL_Y_MOVES_Rules): Remove Ubuntu.
+ (SKIP_NONPIXEL_Y_MOVES_Rules_Exceptions): Add Arial Bold `N'.
+ (SKIP_OFFPIXEL_Y_MOVES_Rules): Remove all. Happens automatically
+ now.
+ (ROUND_NONPIXEL_Y_MOVES_Rules): Remove Ubuntu.
+ (ROUND_NONPIXEL_Y_MOVES_Rules_Exceptions): Remove all.
+ (NORMAL_ROUND_Rules): Remove Verdana.
+ (NO_DELTAP_AFTER_IUP_Rules): Remove all.
+ (sph_set_tweaks): Performance fix. Don't run prep always.
+ Adjust conditional for sph_compatibility_mode.
+
+ * src/truetype/ttsubpix.h: Add new fdef flags for sph.
+
+2013-01-23 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ [base] Fix broken emboldening at small sizes.
+
+ * src/base/ftoutln.c (FT_Outline_EmboldenXY): Do not attempt to
+ normalize zero-length vectors.
+
+2013-01-25 Werner Lemberg <wl@gnu.org>
+
+ Fix Savannah bug #38167.
+
+ This fixes commit 83c0ebab from 2012-06-27.
+
+ * src/truetype/ttinterp.h:
+ s/TT_CONFIG_OPTION_BYTECODE_INTERPRETER/TT_USE_BYTECODE_INTERPRETER/.
+
+2013-01-25 Xi Wang <xi.wang@gmail.com>
+
+ [sfnt] Fix broken pointer overflow checks.
+
+ Many compilers such as gcc and clang optimize away pointer overflow
+ checks `p + n < p', because pointer overflow is undefined behavior.
+ Use a safe form `n > p_limit - p' instead.
+
+ Also avoid possible integer overflow issues, for example, using
+ `num_glyphs > ( p_limit - p ) / 2' rather than `num_glyphs * 2'
+ given a large `num_glyphs'.
+
+ * src/sfnt/ttsbit0.c (tt_sbit_decoder_load_image): Implement it.
+
+2013-01-25 Werner Lemberg <wl@gnu.org>
+
+ [base] Fix `make multi'.
+
+ * src/base/ftoutln.c, src/base/fttrigon.c: Include
+ FT_INTERNAL_CALC_H.
+
+2013-01-25 David 'Digit' Turner <digit@google.com>
+
+ [truetype] Fix C++ compilation.
+
+ * src/truetype/ttsubpix.h: Updated.
+ (SPH_X_SCALING_RULES_SIZE): Moved and renamed to...
+ * src/truetype/ttsubpix.c (X_SCALING_RULES_SIZE): This.
+ (sph_X_SCALING_Rules): Removed.
+ (scale_test_tweak): Make function static.
+ (sph_test_tweak_x_scaling): New function.
+
+ * src/truetype/ttgload.c (TT_Process_Simple_Glyph): Updated.
+
+2013-01-23 Werner Lemberg <wl@gnu.org>
+
+ [base] Make `FT_Hypot' really internal.
+
+ * include/freetype/fttrigon.h (FT_Hypot): Move to...
+ * include/freetype/internal/ftcalc.h: This file.
+
+ * src/base/fttrigon.c (FT_Hypot): Move to...
+ * src/base/ftcalc.c: This file.
+ Include FT_TRIGONOMETRY_H.
+
+ * src/truetype/ttgload.c: Don't include FT_TRIGONOMETRY_H.
+
+2013-01-23 Werner Lemberg <wl@gnu.org>
+
+ [truetype] Revert change from 2013-01-22.
+
+ FreeType's `height' value is the baseline-to-baseline distance...
+
+ * src/truetype/ttobjs.c (tt_size_reset): Undo.
+
+2013-01-23 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ [base, truetype] New internal `FT_Hypot' function.
+
+ * include/freetype/fttrigon.h (FT_Hypot): Declare it.
+ * src/base/fttrigon.c (FT_Hypot): Define it.
+ * src/truetype/ttgload.c (TT_Process_Composite_Component): Use it
+ instead of explicit expressions.
+ * src/truetype/ttinterp.c (Current_Ratio, Normalize): Use it instead
+ of TT_VecLen.
+ (TT_VecLen): Removed.
+
+2013-01-23 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ [base] Fix integer overflow.
+
+ * src/base/ftoutln.c (FT_Outline_EmboldenXY): Normalize incoming and
+ outgoing vectors and use fixed point arithmetic.
+
+2013-01-23 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ [base] Fix integer overflow.
+
+ * src/base/ftoutln.c (FT_Outline_Get_Orientation): Scale the
+ coordinates down to avoid overflow.
+
+2013-01-23 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ [base] Split out MSB function.
+
+ * src/base/fttrigon.c (ft_trig_prenorm): Borrow from here.
+ * include/freetype/internal/ftcalc.h (FT_MSB): Declare here.
+ * src/base/ftcalc.c (FT_MSB): Define here.
+
+2013-01-22 Werner Lemberg <wl@gnu.org>
+
+ [truetype] Fix font height.
+
+ * src/truetype/ttobjs.c (tt_size_reset): The Windows rendering
+ engine uses rounded values of the ascender and descender to compute
+ the TrueType font height.
+
+2013-01-16 Behdad Esfahbod <behdad@behdad.org>
+
+ [sfnt] Fix optimized sbit loader.
+
+ It was not taking bit_depth into consideration when blitting!
+
+ * src/sfnt/ttsbit0.c (tt_sbit_decoder_load_byte_aligned,
+ * tt_sbit_decoder_load_bit_aligned): Handle bit
+ depth.
+
+2013-01-16 David 'Digit' Turner <digit@google.com>
+
+ [truetype] Improve subpixel code.
+
+ This patches fixes many issues with the ttsubpix implementation.
+
+ 1. Data tables are defined, instead of declared, in the header, and
+ thus copied into each source file that includes it.
+
+ 2. These tables were defined as global, mutable, visible variables,
+ and thus costing private RAM to every process that loads the
+ library (> 50 KB / process, this is huge!).
+
+ Additionally, this also made the library export the symbols
+ completely needlessly.
+
+ 3. Missing `sph_' and `SPH_' prefixes to some of the definitions.
+
+ Note that this doesn't try to fix the incredibly inefficient storage
+ format for the data tables used by the code. This one will require
+ another pass in the future.
+
+ * src/truetype/ttinterp.h (MAX_NAME_SIZE, MAX_CLASS_MEMBERS):
+ Renamed to...
+ (SPH_MAX_NAME_SIZE, SPH_MAX_CLASS_MEMBERS): This.
+ Update all users.
+
+ (SPH_TweakRule, SPH_ScaleRule): Decorate with `const' where
+ appropriate.
+
+ (Font_Class): Rename to...
+ (SPH_Font_Class): This. Decorate with `const' where appropriate.
+
+ * src/truetype/ttsubpix.h (scale_test_tweak, sph_test_tweak):
+ Decorate arguments with `const' where appropriate.
+
+ Move font tweaking tables to...
+
+ * src/truetype/ttsubpix.c: This file and decorate them with `static'
+ and `const' where appropriate.
+
+ (X_SCALING_Rules, X_SCALING_RULES_SIZE): Renamed to...
+ (sph_X_SCALING_Rules, SPH_X_SCALING_RULES_SIZE): This.
+ Update all users.
+
+2013-01-12 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ [truetype] Improve accuracy of normalization of short vectors.
+
+ Unit vector components are stored as 2.14 fixed-point numbers. In
+ order to calculate all 14 bits accurately, a short vector to be
+ normalized has to be upscaled to at least 14 bits before its length
+ is calculated. This has been safe since accurate CORDIC algorithms
+ were adopted.
+
+ * src/truetype/ttinterp.c (Normalize): Scale short vectors by 0x4000.
+
+2013-01-12 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ [truetype] Kill very old vector normalization hacks.
+
+ Back in the days, vector length calculations were not very accurate
+ and the vector normalization function, Normalize, had to meticulously
+ correct the errors for long vectors [commit b7ef2b096867]. It was no
+ longer necessary after accurate CORDIC algorithms were adopted, but
+ the code remained. It is time to kill it.
+
+ * src/truetype/ttinterp.c (Normalize): Remove error compensation.
+ (TT_VecLen): Remove any mention of old less accurate implementation.
+
+2013-01-11 Werner Lemberg <wl@gnu.org>
+
+ Disable FT_CONFIG_OPTION_OLD_INTERNALS.
+
+ After the next release we are going to remove the code completely.
+
+ * devel/ftoption.h, include/freetype/config/ftoption.h
+ (FT_CONFIG_OPTION_OLD_INTERNALS): Comment out.
+ * docs/CHANGES: Document it.
+
+2013-01-10 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ [base] Update the overflow protection bit.
+
+ The recent optimizations of CORDIC iterations drastically reduce the
+ expansion factor. Vector components with MSB of 29 are now safe
+ from overflow.
+
+ * src/base/fttrigon.c (FT_TRIG_SAFE_MSB): New macro.
+ (ft_trig_prenorm): Use it and remove dead code.
+
+2013-01-09 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ [base, pshinter] Use FT_ABS, FT_MIN, and FT_MAX for readability.
+
+ * src/base/ftbbox.c: Updated.
+ * src/base/ftobjs.c: Updated.
+ * src/base/fttrigon.c: Updated.
+ * src/pshinter/pshalgo.c: Updated.
+ * src/pshinter/pshrec.c: Updated.
+
+2013-01-08 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ [base] Clean up trigonometric core.
+
+ * src/base/fttrigon.c: Document the algorithm in a large comment.
+ (FT_TRIG_COSCALE): Remove macro.
+ (FT_Tan: Use `FT_TRIG_SCALE' instead.
+ (FT_Cos, FT_Vector_Unit): Ditto and round the return values.
+
+2013-01-02 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ [base] Use rounding in CORDIC iterations.
+
+ * src/base/fttrigon.c (ft_trig_pseudo_rotate,
+ ft_trig_pseudo_polarize): Improve accuracy by rounding.
+
+2013-01-02 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ [base] Reduce trigonometric algorithms.
+
+ After we get within 45 degrees by means of true 90-degree rotations,
+ we can remove initial 45-degree CORDIC iteration and start from
+ atan(1/2) pseudorotation, reducing expansion factor thereby.
+
+ * src/base/fttrigon.c (FT_TRIG_SCALE, FT_TRIG_COSCALE): Update macros.
+ (ft_trig_pseudo_rotate, ft_trig_pseudo_polarize): Update.
+
+ * src/tools/cordic.py: Bring up to date with trigonometric core.
+
+ * docs/CHANGES: Old typo.
+
+2013-01-02 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ * src/pshinter/pshalgo.h: Remove unused code.
+
+2012-12-27 Werner Lemberg <wl@gnu.org>
+
+ * src/truetype/ttgload.c (tt_loader_init): Add more tracing.
+
+2012-12-23 Werner Lemberg <wl@gnu.org>
+
+ [type1] Fix handling of /FontBBox in MM fonts.
+ Problem reported by Del Merritt <del@alum.mit.edu>
+
+ If we have
+
+ /FontBBox { { 11 12 13 14 15 16 17 18 }
+ { 21 22 23 24 25 26 27 28 }
+ { 31 32 33 34 35 36 37 38 }
+ { 41 42 43 44 45 46 47 48 } }
+
+ in the /Blend dictionary, then the first BBox is { 11 21 31 41 },
+ the second { 12 22 32 42 }, etc.
+
+ * include/freetype/internal/psaux.h (T1_FieldType): Add
+ `T1_FIELD_TYPE_MM_BBOX' (for temporary use).
+
+ * src/psaux/psobjs.c (ps_parser_load_field) <T1_FIELD_TYPE_MM_BBOX>:
+ Implement it.
+
+2012-12-21 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ * src/tools/cordic.py: Bring up to date with trigonometric core.
+
+2012-12-21 Werner Lemberg <wl@gnu.org>
+
+ Check parameters of `FT_Outline_New'.
+ Problem reported by Robin Watts <robin.watts@artifex.com>.
+
+ * src/base/ftoutln.c (FT_Outline_New_Internal): Ensure that
+ `numContours' and `numPoints' fit into FT_Outline's `n_points' and
+ `n_contours', respectively.
+
+2012-12-20 Werner Lemberg <wl@gnu.org>
+
+ * Version 2.4.11 released.
+ ==========================
+
+
+ Tag sources with `VER-2-4-11'.
+
+ * docs/CHANGES, docs/release: Updated.
+
+ * docs/VERSION.DLL: Update documentation and bump version number to
+ 2.4.11.
+
+ * README, Jamfile (RefDoc),
+ builds/win32/vc2005/freetype.vcproj, builds/win32/vc2005/index.html,
+ builds/win32/vc2008/freetype.vcproj, builds/win32/vc2008/index.html,
+ builds/win32/vc2010/freetype.vcxproj, builds/win32/vc2010/index.html,
+ builds/win32/visualc/freetype.dsp,
+ builds/win32/visualc/freetype.vcproj,
+ builds/win32/visualc/index.html, builds/win32/visualce/freetype.dsp,
+ builds/win32/visualce/freetype.vcproj,
+ builds/win32/visualce/index.html,
+ builds/wince/vc2005-ce/freetype.vcproj,
+ builds/wince/vc2005-ce/index.html,
+ builds/wince/vc2008-ce/freetype.vcproj,
+ builds/wince/vc2008-ce/index.html: s/2.4.10/2.4.11/, s/2410/2411/.
+
+ * include/freetype/freetype.h (FREETYPE_PATCH): Set to 11.
+
+ * builds/unix/configure.raw (version_info): Set to 16:0:10.
+
+ * builds/toplevel.mk (dist): Don't include `.mailmap'.
+
+2012-12-20 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ [base] Improve trigonometric core.
+
+ FreeType used to rely on a 24-step iteration CORDIC algorithm to
+ calculate trigonometric functions and rotate vectors. It turns out
+ that once the vector is in the right half-plane, the initial rotation
+ by 63 degrees is not necessary. The algorithm is perfectly capable
+ to converge to any angle starting from the second 45 degree rotation.
+ This patch removes the first rotation and makes it a 23-step CORDIC
+ algorithm.
+
+ * src/base/fttrigon.c (FT_TRIG_SCALE, FT_TRIG_COSCALE): Update macro
+ values.
+ (ft_trig_pseudo_rotate, ft_trig_pseudo_polarize): Remove initial
+ rotation.
+
+2012-12-19 Werner Lemberg <wl@gnu.org>
+
+ * src/base/ftobjs.c (ft_property_do): Fix compiler warning.
+
+2012-12-19 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ * src/base/ftrfork.c (FT_Raccess_Guess): Switch to FT_Int counters.
+
+2012-12-19 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ [base] Clean up trigonometric core.
+
+ * src/base/fttrigon.c (ft_trig_pseudo_polarize): Align algorithm
+ with `ft_trig_pseudo_rotate'.
+
+2012-12-18 Infinality <infinality@infinality.net>
+
+ [truetype] Minor performance enhancement.
+
+ * src/truetype/ttgload.c: (TT_Process_Simple_Glyph): Use FT_MulFix
+ instead of FT_MulDiv.
+
+2012-12-17 Infinality <infinality@infinality.net>
+
+ [truetype] Remove unused code and variables.
+
+ * src/truetype/ttinterp.c: Updated.
+ (Ins_FDEF): Remove opcode patterns that are not being used.
+
+2012-12-16 Werner Lemberg <wl@gnu.org>
+
+ Various compiler warning fixes.
+
+ * include/freetype/internal/ftserv.h (FT_SERVICE_UNAVAILABLE): Use
+ `logical not' operator instead of negation. The idea is that `~'
+ returns exactly the data type enforced by the cast to a pointer (be
+ it 32bit or 64bit or whatever), while a negative integer has not
+ this flexibility.
+ * src/cache/ftccmap.c (FTC_CMAP_UNKNOWN): Ditto.
+ * src/truetype/ttgxvar.c (ALL_POINTS, TT_Get_MM_Var): Ditto.
+ * src/type/t1load.c (T1_Get_MM_Var): Ditto.
+ (parse_blend_axis_types): Use cast.
+ * src/bdf/bdflib.c (_bdf_readstream): Use cast.
+
+2012-12-16 Infinality <infinality@infinality.net>
+
+ [truetype] Remove unused code and variables. Add minor fixes.
+
+ * src/truetype/ttsubpix.h: Updated.
+ (SKIP_NONPIXEL_Y_MOVES_Rules_Exceptions): Add Trebuchet MS.
+ (ALLOW_X_DMOVEX_Rules): Remove Arial characters.
+ (ALLOW_X_DMOVE_Rules): Remove Arial characters.
+ (RASTERIZER_35_Rules): Verdana no longer needs to be here.
+ (SKIP_IUP_Rules): Formatting fix.
+ (DELTAP_SKIP_EXAGGERATED_VALUES_Rules): Remove Segoe UI.
+ (COMPATIBLE_WIDTHS_Rules): Add Monaco and Trebuchet MS.
+ (X_SCALING_Rules): Add misc. corrective fixes.
+
+ * src/truetype/ttgload.c: (TT_Process_Simple_Glyph): Adjust correction
+ factor for emboldening during scaling.
+
+ * src/truetype/ttinterp.h: Updated.
+ (TT_ExecContextRec): Remove unused variables.
+
+ * src/truetype/ttobjs.h: Updated.
+ (TT_SizeRec): Add ttfautohinted variable.
+
+ * src/truetype/ttinterp.c: Updated.
+ (Ins_FDEF): Rework code to fix bugs and add more detection.
+ (Ins_CALL): Remove unused code.
+ (Ins_LOOPCALL): Remove unused code.
+ (TT_RunIns): Remove unused code.
+ (Ins_SHPIX): Add logic to handle ttfautohinted fonts.
+ (Ins_MIRP): Don't round x in cut-in calculation. Add logic to handle
+ ttfautohinted fonts.
+
+2012-12-16 Werner Lemberg <wl@gnu.org>
+
+ [sfnt] Fix Savannah bug #37936.
+
+ * src/sfnt/ttload.c (tt_face_load_gasp): Avoid memory leak.
+
+2012-12-15 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ [base] Fix 11-year old bug.
+
+ Since the initial commit (ebe85f59) the value of FT_TRIG_SCALE has
+ always been slightly less than the correct value, which has been
+ given in the comment as a hexadecimal. As a result, vector lengths
+ were underestimated and rotated vectors were shortened.
+
+ * src/base/fttrigon.c (FT_TRIG_SCALE): Fix macro value.
+
+2012-12-15 Werner Lemberg <wl@gnu.org>
+
+ [bdf] Fix Savannah bug #37907.
+
+ * src/bdf/bdflib.c (_bdf_parse_glyphs) <ENCODING>: Normalize
+ negative second parameter of `ENCODING' field also.
+
+2012-12-15 Werner Lemberg <wl@gnu.org>
+
+ [bdf] Fix Savannah bug #37906.
+
+ * src/bdf/bdflib.c (_bdf_parse_glyphs) <ENCODING>: Use correct array
+ size for checking `glyph_enc'.
+
+2012-12-15 Werner Lemberg <wl@gnu.org>
+
+ [bdf] Fix Savannah bug #37905.
+
+ * src/bdf/bdflib.c (_bdf_parse_start) <STARTPROPERTIES>: Reset
+ `props_size' to zero in case of allocation error; this value gets
+ used in a loop in `bdf_free_font'.
+
+2012-12-10 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ [truetype] Scale F_dot_P down.
+
+ The dot product between freeVector and projVector or cosine of
+ the angle between these FT_F2Dot14 unit vectors used to be scaled up
+ by 4 and routinely occupied 32 bits in an FT_Long field F_dot_P.
+ This patch scales the value down by 2^14 instead, which simplifies
+ its use throughout the bytecode interpreter.
+
+ This does not lead to the loss of precision because the lower bits
+ are unreliable anyway. Consider two unit vectors (1,0) and (.6,.8)
+ for which the true value of F_dot_P is .6 * 0x40000000 = 0x26666666.
+ These vectors are stored as (0x4000,0) and (0x2666,0x3333) after
+ rounding and F_dot_P is assigned 0x26660000. The lower bits were
+ already lost while rounding the unit vector components.
+
+ Besides code simplification, this change can lead to better
+ performance when FT_MulDiv with the scaled-down F_dot_P is less
+ likely to use the costly 64-bit path. We are not changing the type
+ of F_dot_P to FT_F2Dot14 at this point.
+
+ * src/truetype/ttinterp.c (Compute_Funcs): Scale F_dot_P down by 14
+ bits and modify its use accordingly.
+ (Direct_Move, Direct_Move_Orig, Compute_Point_Displacement): Modify
+ the use of F_dot_P field.
+ * src/truetype/ttobjs.c (tt_size_run_fpgm): Change arbitrary
+ assignment of F_dot_P to its theoretical maximum in case we decide
+ to scale back its type later.
+
+2012-12-09 Johnson Y. Yan <yinsen_yan@foxitsoftware.com>
+
+ [type1] Another fix for 2012-09-17 commit.
+
+ * src/type1/t1parse.c (T1_Get_Private_Dict) <found>: Correctly set
+ `limit' value.
+
+2012-12-06 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ [truetype] Tweak the previous commit.
+
+ * src/truetype/ttinterp.c (Current_Ratio): Put unit vector
+ components as the second TT_MulFix14 arguments. This is required
+ on 16-bit systems.
+
+2012-12-06 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ [truetype] Microoptimizations in bytecode interpreter.
+
+ * src/truetype/ttinterp.c (TT_DivFix14): New macro.
+ (Normalize): Use it here.
+ (Current_Ratio): Use TT_MulFix14 instead of FT_MulDiv.
+ (Ins_SHPIX): Cancel out two TT_MulFix14 calls.
+
+2012-12-05 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ [truetype] Cosmetic improvement in bytecode interpreter.
+
+ * src/truetype/ttinterp.c: Use explicit calls to FT_MulDiv,
+ FT_MulFix, and FT_DivFix instead of macros.
+
+2012-12-03 John Tytgat <John.Tytgat@esko.com>
+
+ [pshinter] Clamp BlueScale value.
+
+ This is Savannah bug #37856.
+
+ * src/pshinter/pshglob.c (psh_calc_max_height): New function.
+ (psh_globals_new): Use it to limit BlueScale value to
+ `1 / max_of_blue_zone_heights'.
+
+2012-12-01 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ [truetype, type1] Revise the use of FT_MulDiv.
+
+ * src/truetype/ttgxvar.c: Updated.
+ * src/truetype/ttobjs.c: Updated.
+ * src/type1/t1load.c: Updated.
+
+2012-11-30 Werner Lemberg <wl@gnu.org>
+
+ [configure] Preserve customized `ftoption.h'.
+
+ Problem reported by Del Merritt <del@alum.mit.edu>.
+
+ * builds/unix/configure.raw <cpp computation of bit length>: Don't
+ remove existing FreeType configuration files.
+
+2012-11-29 John Tytgat <John.Tytgat@esko.com>
+
+ [type1] Fix Savannah bug #37831.
+
+ The bug report also contains a patch.
+
+ * src/type1/t1parse.c (T1_Get_Private_Dict) <found>: Really fix
+ change from 2012-09-17.
+
+2012-11-28 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ [truetype] Fix formatting and typo.
+
+2012-11-27 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ [cid, type1, type42] Clean up units_per_EM calculations.
+
+ * src/cid/cidload.c (cid_parse_font_matrix): Updated.
+ * src/type1/t1load.c (t1_parse_font_matrix): Updated.
+ * src/type42/t42parse.c (t42_parse_font_matrix): Updated.
+
+2012-11-27 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ [ftstroke] Minor improvement.
+
+ * src/base/ftstroke.c: Replace nested FT_DivFix and FT_MulFix with
+ FT_MulDiv.
+
+2012-11-17 Werner Lemberg <wl@gnu.org>
+
+ * src/base/fttrigon.c (ft_trig_downscale): Make 64bit version work.
+
+2012-11-15 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ [base] Fix integer overflows in dd5718c7d67a.
+
+ * src/base/ftoutln.c (FT_Outline_EmboldenXY): Use FT_MulDiv.
+
+2012-11-15 Werner Lemberg <wl@gnu.org>
+
+ [autofit] Trace stem widths.
+
+ * src/autofit/aflatin.c (af_latin_metrics_init_widths): Add some
+ FT_TRACE calls.
+
+2012-11-13 Werner Lemberg <wl@gnu.org>
+
+ [cff] Add support for OpenType Collections (OTC).
+
+ * src/cff/cffload.c (cff_font_load): Separate subfont and face
+ index handling to load both pure CFFs with multiple subfonts and
+ OTCs (with multiple faces where each face holds exactly one
+ subfont).
+ * src/cff/cffobjs.c (cff_face_init): Updated.
+
+2012-11-12 Werner Lemberg <wl@gnu.org>
+
+ [autofit] Minor improvement.
+
+ * src/autofit/aflatin.c (af_latin_hints_compute_blue_edges): Fix
+ loop.
+
+2012-11-10 Werner Lemberg <wl@gnu.org>
+
+ [autofit] Improve tracing.
+
+ * src/autofit/aflatin.c (af_latin_hint_edges)
+ [FT_DEBUG_LEVEL_TRACE]: Count number of actions and emit something
+ if there weren't any.
+
+2012-11-04 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ [base] Fortify emboldening code against egregious distortions.
+
+ * src/base/ftoutln.c (FT_Outline_EmboldenXY): Threshold emboldening
+ strength when it leads to segment collapse.
+
+2012-11-03 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ [base] Clean up emboldening code and improve comments there.
+
+ * src/base/ftoutln.c (FT_Outline_EmboldenXY): Replace sequential
+ calls to FT_MulFix and FT_DivFix with FT_MulDiv.
+ Mention that bisectors are used to figure out the shift direction.
+
+2012-10-24 Werner Lemberg <wl@gnu.org>
+
+ [autofit] Add standard character to `AF_ScriptClassRec' structure.
+
+ * src/autofit/aftypes.h (AF_ScriptClassRec): Add `standard_char'
+ member.
+ (AF_DEFINE_SCRIPT_CLASS): Updated.
+
+ * src/autofit/aflatin.c (af_latin_metrics_init_widths): Use it.
+ (af_latin_metrics_init, af_latin_script_class): Updated.
+
+ * src/autofit/aflatin.c (af_latin2_metrics_init_widths): Use it.
+ (af_latin2_metrics_init, af_latin2_script_class): Updated.
+
+ * src/autofit/afcjk.c (af_cjk_metrics_init_widths): Use it.
+ (af_cjk_metrics_init, af_cjk_script_class): Updated.
+
+ * src/autofit/afindic.c (af_indic_metrics_init,
+ af_indic_script_class): Updated.
+
+ * src/autofit/afcjk.h, src/autofit/aflatin.h: Updated.
+
+ * src/autofit/afdummy.c: Updated.
+
+2012-10-24 Werner Lemberg <wl@gnu.org>
+
+ [autofit] Only use Unicode CMap.
+
+ * src/autofit/aflatin.c (af_latin_metrics_init): Implement it, to be
+ in sync with `af_face_globals_compute_script_coverage'.
+
+2012-10-21 Werner Lemberg <wl@gnu.org>
+
+ [psaux] Improve parsing of invalid numbers.
+
+ * src/psaux/psconv.c (PS_Conv_Strtol): Always parse complete number,
+ even in case of overflow.
+ (PS_Conv_ToInt): Only increase cursor if parsing was successful.
+ (PS_Conv_ToFixed): Ditto.
+ Trace underflow and data error.
+
+2012-10-21 Werner Lemberg <wl@gnu.org>
+
+ [smooth] Improve tracing.
+
+ * src/smooth/ftgrays.c (gray_sweep): Trace last sweep line of
+ current band also.
+
+2012-10-20 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ [truetype] Cheaper way to threshold angles between vectors.
+
+ * src/truetype/ttinterp.c (Ins_ISECT): Thresholding tangent is a lot
+ cheaper than thresholding sine.
+
+2012-10-20 Werner Lemberg <wl@gnu.org>
+
+ [cff] Improve parsing of invalid real numbers.
+
+ * src/cff/cffparse.c (cff_parse_real): Always parse complete number,
+ even in case of overflow or underflow.
+ Also trace one more underflow.
+
+2012-10-20 Andreas Pehnack <andreas.pehnack@me.com>
+
+ [sfnt] Load pure CFF fonts wrapped in SFNT container.
+
+ Such fonts only have a `cmap' and a `CFF' table.
+
+ * src/sfnt/ttload.c (tt_face_load_font_dir): Don't call
+ `check_table_dir' if font signature is `OTTO'.
+
+2012-10-20 Werner Lemberg <wl@gnu.org>
+
+ [psaux] Fix some value overflows and improve tracing.
+
+ * src/psaux/psconv.c: Include FT_INTERNAL_DEBUG_H.
+ (FT_COMPONENT): Define.
+ (PS_Conv_Strtol): Return FT_Long.
+ Handle bad data and overflow.
+ Emit some tracing messages in case of error.
+ (PS_Conv_ToInt): Return FT_Long.
+ (PS_Conv_ToFixed): Updated.
+ * src/psaux/psconv.h: Updated.
+
+ * include/freetype/internal/fttrace.h: Add `psconv'.
+
+2012-10-20 Werner Lemberg <wl@gnu.org>
+
+ [autofit] Fix `make multi CC=c++'.
+
+ * src/autofit/aflatin.c, src/autofit/aflatin2.c: Include
+ `afglobal.h'.
+ * src/autofit/afloader.c: Fix order of header files.
+ * src/autofit/afmodule.c: Include `afglobal.h' and `aferrors.h'.
+
+2012-10-19 Werner Lemberg <wl@gnu.org>
+
+ [cff] Fix more value errors and improve tracing.
+
+ * src/cff/cffparse.c (cff_parse_integer): Emit tracing message in
+ case of error.
+ (cff_parse_real): Handle and trace overflow, underflow, and bad data
+ consistently.
+ (do_fixed): New helper function, handling and tracing overflow.
+ (cff_parse_fixed, cff_parse_fixed_scaled): Use `do_fixed'.
+
+2012-10-17 Werner Lemberg <wl@gnu.org>
+
+ [psaux] Fix some value overflows.
+
+ * src/psaux/psconv.c (PS_Conv_ToFixed): Implement it.
+
+2012-10-17 Bram Tassyns <BramT@enfocus.com>
+
+ [cff] Fix value overflow.
+
+ * src/cff/cffparse.c (cff_parse_fixed_scaled): Implement it.
+
+2012-10-17 Werner Lemberg <wl@gnu.org>
+
+ [truetype] Fix Savannah bug #37572.
+
+ * src/truetype/ttinterp.c (Ins_ISECT): Use angle between vectors to
+ avoid grazing intersections. The previous threshold was too coarse,
+ incorrectly rejecting short but valid vectors.
+
+2012-09-30 Gilles Espinasse <g.esp@free.fr>
+
+ Remove useless `rm' detection.
+
+ `rm -f' is directly used in the `configure' script created by
+ autoconf, thus no availability test is necessary.
+
+ * builds/unix/configure.raw (RMF): Remove test.
+ * builds/unix/unix-def.in (DELETE): Updated.
+
+2012-09-29 Werner Lemberg <wl@gnu.org>
+
+ [autofit] Minor optimization.
+
+ * src/autofit/afglobal.c (af_face_globals_compute_script_coverage):
+ Add loop condition.
+
+2012-09-29 Werner Lemberg <wl@gnu.org>
+
+ [autofit] Fix thinko.
+
+ * src/autofit/aftypes.h (AF_SCRIPT):
+ s/AF_SCRIPT_NONE/AF_SCRIPT_DUMMY/. We already use `AF_SCRIPT_NONE'
+ as a bit mask.
+
+ * src/autofit/afdummy.c: Updated.
+
+2012-09-18 Werner Lemberg <wl@gnu.org>
+
+ [autofit] Implement `increase-x-height' property.
+
+ * include/freetype/ftautoh.h (FT_Prop_IncreaseXHeight): New
+ structure.
+
+ * include/autofit/afmodule.c (af_property_get_face_globals): New
+ function, re-using code from `af_property_get'.
+ (af_property_set, af_property_get): Handle `increase-x-height'.
+ Updated.
+
+2012-09-18 Werner Lemberg <wl@gnu.org>
+
+ [autofit] Implement Infinality's `increase glyph heights'.
+
+ This is an improved version of a similar fix contained in the
+ so-called `Infinality patch', taken from
+
+ http://www.infinality.net/fedora/linux/zips/freetype-infinality-2.4.10-20120616_01-x86_64.tar.bz2
+
+ which addresses various enhancements of the auto-hinter. Without
+ properties to control a module's metadata it wasn't possible to
+ adapt the patches because everything was originally controlled by
+ environment variables which I consider not suitable in general.
+
+ A patch to control `increase_x_height' follows.
+
+ * src/autofit/afglobal.h (AF_PROP_INCREASE_X_HEIGHT_MIN,
+ AF_PROP_INCREASE_X_HEIGHT_MAX): New macros.
+ (AF_FaceGlobalsRec): Add `increase_x_height' member.
+ * src/autofit/afglobal.c (af_face_globals_new): Initialize it.
+
+ * src/autofit/aflatin.c (af_latin_metrics_scale_dim),
+ * src/autofit/aflatin2.c (af_latin2_metrics_scale_dim): Implement
+ handling of `increase_x_height'.
+
+2012-09-18 Werner Lemberg <wl@gnu.org>
+
+ [autofit] Add hierarchical property access to some structures.
+
+ * src/autofit/afglobal.h: Include `afmodule.h'.
+ (AF_FaceGlobalsRec): Add `module' member.
+ (AF_FaceGlobals): Typedef moved to...
+ * src/autofit/aftypes.h: Here.
+ (AF_ScriptMetricsRec): Add `globals' member.
+
+ * src/autofit/afglobal.c (af_face_globals_new,
+ af_face_globals_compute_script_coverage,
+ af_face_globals_get_metrics): Updated.
+
+ * src/autofit/afloader.c (af_loader_reset), src/autofit/afmodule.c
+ (af_property_get): Updated.
+
+2012-09-17 Werner Lemberg <wl@gnu.org>
+
+ [type1] Fix Savannah bug #37350.
+
+ * src/type1/t1parse.c (T1_Get_Private_Dict) <found>: Check for ASCII
+ storage only if we actually have at least four bytes.
+
+2012-09-15 Werner Lemberg <wl@gnu.org>
+
+ [autofit] Implement `fallback-script' property.
+
+ * src/autofit/afglobal.c: s/default_script/fallback_script/.
+ * src/autofit/afglobal.h: s/AF_SCRIPT_DEFAULT/AF_SCRIPT_FALLBACK/.
+
+ * src/autofit/afmodule.c: s/default_script/fallback_script/.
+ (af_property_set, af_property_get): Implement `fallback-script'.
+ * src/autofit/afmodule.h: s/default_script/fallback_script/.
+
+ * include/freetype/ftautoh.h: Document it.
+
+2012-09-15 Werner Lemberg <wl@gnu.org>
+
+ [autofit] Correct previous Unicode 6.1.0 change.
+
+ The auto-hinter's latin module only handles latin ligatures in the
+ `Alphabetical Presentation Forms' block.
+
+ * src/autofit/aflatin.c (af_latin_uniranges): Fix it.
+
+2012-09-15 Werner Lemberg <wl@gnu.org>
+
+ * src/autofit/afmodule.c: s/FT_Err_/AF_Err_/.
+
+2012-09-15 Werner Lemberg <wl@gnu.org>
+
+ [autofit] Make default script a global property.
+
+ * src/autofit/afmodule.h (AF_ModuleRec): Add `default_script' field.
+
+ * src/autofit/afglobal.c (af_face_globals_compute_script_coverage,
+ af_face_globals_new), src/autofit/afloader.c (af_loader_reset),
+ src/autofit/afmodule.c (af_property_get) <glyph-to-script-map>,
+ af_autofitter_init:
+ Handle default script.
+
+ * src/autofit/afglobal.h: Updated.
+
+2012-09-15 Werner Lemberg <wl@gnu.org>
+
+ Use `FT_Module' instead of `FT_Library' argument in property funcs.
+
+ This internal change simplifies access to global module data.
+
+ * include/freetype/internal/services/svprop.h
+ (FT_Properties_SetFunc, FT_Properties_GetFunc): Change accordingly.
+
+ * src/base/ftobjs.c (ft_property_do), src/autofit/afmodule.c
+ (af_property_set, af_property_get): Updated.
+
+2012-09-14 Werner Lemberg <wl@gnu.org>
+
+ [autofit] Update to Unicode 6.1.0.
+
+ * src/autofit/afcjk.c (af_cjk_uniranges), src/autofit/aflatin.c
+ (af_latin_uniranges): Add and fix ranges.
+
+2012-09-14 Werner Lemberg <wl@gnu.org>
+
+ [autofit] Pass `AF_Module' instead of `AF_Loader'.
+
+ We want to access the (not yet existing) module's global data later
+ on.
+
+ * src/autofit/afloader.c: Include `afmodule.h'.
+ (af_loader_init, af_loader_reset, af_loader_done,
+ af_loader_load_glyph): Change accordingly.
+ * src/autofit/afmodule.c (AF_ModuleRec): Move to `afmodule.h'.
+ Updated.
+
+ * src/autofit/afmodule.h: Include `afloader.h'.
+ (AF_ModuleRec): Define here.
+ * src/autofit/afloader.h (AF_Module): Define here.
+ Updated.
+
+2012-09-14 Werner Lemberg <wl@gnu.org>
+
+ [autofit] Fix `make multi'.
+
+ * include/freetype/internal/fttrace.h: Add `afmodule'.
+ * src/autofit/afmodule.c: Include FT_INTERNAL_DEBUG_H.
+ (FT_COMPONENT): Define.
+
+2012-09-14 Werner Lemberg <wl@gnu.org>
+
+ * src/autofit/afmodule.c: s/FT_Autofitter/AF_Module/.
+
+2012-09-12 Werner Lemberg <wl@gnu.org>
+
+ [autofit] Minor reorganization.
+
+ * src/autofit/afglobal.c (AF_SCRIPT_LIST_DEFAULT,
+ AF_SCRIPT_LIST_NONE, AF_DIGIT): Move to...
+ * src/autofit/afglobal.h (AF_SCRIPT_DEFAULT, AF_SCRIPT_LIST_NONE,
+ AF_DIGIT): This and update code.
+
+2012-09-01 Werner Lemberg <wl@gnu.org>
+
+ [autofit] Implement `glyph-to-script-map' property.
+
+ * include/freetype/ftautoh.h: New public header file.
+ * include/freetype/config/ftheader.h (FT_AUTOHINTER_H): New macro.
+
+ * src/autofit/afglobal.c (AF_FaceGlobalsRec): Move structure to...
+ * src/autofit/afglobal.h: This header file.
+ * src/autofit/afmodule.c: Include FT_AUTOHINTER_H.
+ (af_property_get): Handle `glyph-to-script-map'.
+
+2012-08-31 Werner Lemberg <wl@gnu.org>
+
+ [autofit] Implement properties service framework.
+
+ No properties are added yet.
+
+ * src/autofit/afmodule.c: Include FT_SERVICE_PROPERTIES_H.
+ (af_property_set, af_property_get): New dummy functions.
+ (af_service_properties, af_services, af_get_interface): Provide
+ service setup.
+ (autofit_moduleclass): Add service interface.
+
+ * src/autofit/afpic.c: Add necessary forward declarations.
+ (autofit_module_class_pic_init): Add code for service addition.
+ (autofit_module_pic_free): Add code for service removal.
+ * src/autofit/afpic.h (AF_SERVICES_GET, AF_SERVICE_PROPERTIES_GET):
+ New macros which provide necessary syntactical sugar for PIC
+ support.
+
+2012-08-30 Werner Lemberg <wl@gnu.org>
+
+ Implement properties to control FreeType modules.
+
+ * include/freetype/fterrdef.h (FT_Err_Missing_Property): New error
+ code.
+ * include/freetype/ftmodapi.h (FT_Property_Set, FT_Property_Get):
+ New API.
+
+ * include/freetype/internal/services/svprop.h: New file.
+ * include/freetype/internal/ftserv.h (FT_SERVICE_PROPERTIES_H): New
+ macro.
+
+ * src/base/ftobjs.c: Include FT_SERVICE_PROPERTIES_H.
+ (ft_property_do, FT_Property_Set, FT_Property_Get): New functions.
+
+2012-08-29 Werner Lemberg <wl@gnu.org>
+
+ [docmaker] Allow `-' in tags and identifiers.
+
+ * src/tools/docmaker/content.py (re_identifier),
+ src/tools/docmaker/sources.py (re_markup_tag1, re_markup_tag2,
+ re_crossref): Add `-' in patterns.
+
+2012-08-27 Werner Lemberg <wl@gnu.org>
+
+ [FT_CONFIG_OPTION_PIC] Fix g++ 4.6.2 compiler warnings.
+
+ * include/freetype/internal/ftdriver.h (FT_DEFINE_DRIVER),
+ include/freetype/internal/ftobjs.h (FT_DEFINE_RENDERER,
+ FT_DEFINE_MODULE), include/freetype/internal/ftserv.h
+ (FT_DEFINE_SERVICEDESCREC1, FT_DEFINE_SERVICEDESCREC2,
+ FT_DEFINE_SERVICEDESCREC3, FT_DEFINE_SERVICEDESCREC4,
+ FT_DEFINE_SERVICEDESCREC5, FT_DEFINE_SERVICEDESCREC6),
+ src/autofit/afpic.c (autofit_module_class_pic_init),
+ src/base/basepic.c (ft_base_pic_init), src/base/ftinit.c
+ (ft_create_default_module_classes), src/cff/cffparse.c
+ (FT_Create_Class_cff_field_handlers), src/cff/cffpic.c
+ (cff_driver_class_pic_init), src/pshinter/pshpic.c
+ (pshinter_module_class_pic_init), src/psnames/pspic.c
+ (psnames_module_class_pic_init), src/raster/rastpic.c
+ (ft_raster1_renderer_class_pic_init), src/sfnt/sfntpic.c
+ (sfnt_module_class_pic_init), src/sfnt/ttcmap.c
+ (FT_Create_Class_tt_cmap_classes), src/smooth/ftspic.c
+ (ft_smooth_renderer_class_pic_init), src/truetype/ttpic.c
+ (tt_driver_class_pic_init): Initialize allocation variable.
+
+2012-08-27 Werner Lemberg <wl@gnu.org>
+
+ [truetype] Fix compilation warning.
+
+ * src/truetype/ttgload.c (IS_HINTED): Move macro to...
+ * src/truetype/ttobjs.h: This header file.
+
+2012-08-27 Werner Lemberg <wl@gnu.org>
+
+ [autofit, cff, pshinter, psnames] More renamings for orthogonality.
+
+ * src/autofit/afmodule.c, src/autofit/afpic.h:
+ s/AF_AUTOFITTER_/AF_/.
+
+ * src/cff/cffdrivr.c, src/cff/cffobjs.c, src/cff/cffparse.c,
+ src/cff/cffpic.h: s/FT_CFF_/CFF_/.
+
+ * src/pshinter/pshmod.c, src/pshinter/pshpic.h:
+ s/FT_PSHINTER_/PSHINTER_/.
+
+ * src/psnames/psmodule.c, src/psnames/pspic.h:
+ s/FT_PSCMAPS/PSCMAPS_/.
+
+2012-08-27 Werner Lemberg <wl@gnu.org>
+
+ [sfnt, truetype] More renamings for orthogonality.
+
+ * src/sfnt/sfdriver.c, src/sfnt/sfntpic.h, src/sfnt/ttcmap.c,
+ src/truetype/ttdriver.c, src/truetype/ttpic.h: s/FT_SFNT_/SFNT_/,
+ s/FT_TT_/TT_/, s/GET_CMAP_INFO_GET/CMAP_INFO_GET/.
+
+2012-08-27 Werner Lemberg <wl@gnu.org>
+
+ [autofit] Some macro and variable renamings for orthogonality.
+
+ * include/freetype/internal/autohint.h, src/base/ftobjs.c,
+ src/autofit/afmodule.c, src/autofit/afpic.c, src/autofit/afpic.h:
+ s/SERVICE/INTERFACE/, s/service/interface/, s/Service/Interface/.
+
+2012-08-26 Werner Lemberg <wl@gnu.org>
+
+ Fix Savannah bug #37178.
+
+ * src/base/ftobjs.c (FT_Open_Face): Initialize `error' with
+ `FT_Err_Missing_Module' before loop to indicate `no valid drivers'.
+
+2012-08-17 Werner Lemberg <wl@gnu.org>
+
+ * src/base/ftsynth.c (FT_GlyphSlot_Oblique): Fix shear angle.
+
+ The old value was far too large (more than 20°). The new one
+ corresponds to 12°, quite common in typography.
+
+2012-08-12 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ [smooth] Fix Savannah bug #37017.
+
+ * src/smooth/ftgrays.c (gray_render_cubic): Use a different set of
+ checks when detecting super curvy splines to be split.
+
+2012-08-05 Werner Lemberg <wl@gnu.org>
+
+ [autofit] Improve recognition of flat segments.
+
+ Problem reported by Brad Dunzer <BDunzer@extensis.com>.
+
+ * src/autofit/aflatin.c (af_latin_metrics_init_blues): We have
+ a flat segment if the horizontal distance of best on-points is
+ larger than a given threshold.
+
+2012-08-05 Werner Lemberg <wl@gnu.org>
+
+ [autofit] Variable renamings.
+
+ * src/autofit/aflatin.c (af_latin_metrics_init_blues): Replace
+ `glyph' with `outline'.
+ s/best_first/best_contour_first/.
+ s/best_last/best_contour_last/.
+
+2012-07-31 Werner Lemberg <wl@gnu.org>
+
+ [type1] Fix Savannah bug #37000.
+
+ * src/type1/t1load.c (parse_encoding): Fix order of checks.
+
+2012-07-17 Werner Lemberg <wl@gnu.org>
+
+ [psaux] Fix Savannah bug #36833.
+
+ * src/psaux/t1decode.c (t1operator_seac): `seac' is not a valid
+ operator if we want metrics only.
+
+2012-07-16 Werner Lemberg <wl@gnu.org>
+
+ [type1] Fix Savannah bug #36832.
+
+ * src/type1/t1load.c (parse_charstrings): Reject negative number of
+ glyphs.
+
+2012-07-13 Werner Lemberg <wl@gnu.org>
+
+ [type1] Fix Savannah bug #36829.
+
+ * src/type1/t1load.c (parse_encoding): Check cursor position after
+ call to T1_Skip_PS_Token.
+
+2012-07-12 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ Revert the last commit 45337b07.
+
+ * src/base/ftstroke.c (FT_Stroker_New): Revert the previous change.
+
+2012-07-11 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ [ftstroke] Fix uninitialized return value.
+
+ * src/base/ftstroke.c (FT_Stroker_New): Return FT_Err_Ok instead.
+
+2012-07-11 Werner Lemberg <wl@gnu.org>
+
+ [smooth] Avoid memory leak in case of failure.
+
+ * src/smooth/ftsmooth.c (ft_smooth_render_generic): Use flags to
+ indicate what to clean up after finishing the function, with and
+ without errors.
+
+2012-07-09 Werner Lemberg <wl@gnu.org>
+
+ Fix compilation with MSVC 5.0.
+
+ Problem reported by Peter Breitenlohner and Akira Kakuto.
+
+ * include/freetype/config/ftstdlib.h (ft_setjmp): Updated.
+ * src/sfnt/ttcmap.c (tt_face_build_cmaps): Remove cast.
+
+2012-07-09 Werner Lemberg <wl@gnu.org>
+
+ [autofit] Improve debugging messages; do some code cleanup.
+
+ * src/autofit/aflatin.c (af_latin_align_linked_edge,
+ af_latin_hint_edges): Synchronize with formatting used in the
+ ttfautohint project.
+
+2012-07-07 Gilles Espinasse <g.esp@free.fr>
+
+ Fix strict-aliasing warning.
+
+ * src/base/ftglyph.c (FT_Glyph_To_Bitmap): Avoid double cast.
+
+2012-07-07 Dave Thomas <dave.thomas@metaforic.com>
+
+ [ARM] Fix FT_MulFix_arm.
+
+ * include/freetype/config/ftconfig.h (FT_MulFix_arm) [__arm__]:
+ Avoid ADDS instruction to clobber condition codes.
+
+2012-07-06 Werner Lemberg <wl@gnu.org>
+
+ [autofit] Do some code cleanup.
+
+ * src/autofit/afglobal.c (af_face_globals_new): Simplify.
+
+ * src/autofit/afhints.c: Use `FT_TRACE7' instead of `printf'
+ everywhere.
+ (FT_COMPONENT): New macro.
+ (af_glyph_hints_done): Simplify.
+
+ * include/freetype/internal/fttrace.h: Updated.
+
+2012-07-05 Werner Lemberg <wl@gnu.org>
+
+ [autofit] Improve output of debugging information.
+
+ * src/autofit/afhints.c (af_glyph_hints_dump_segments): Print more
+ data; report no data.
+ (af_glyph_hints_dump_edges): Report no data.
+
+2012-07-04 Werner Lemberg <wl@gnu.org>
+
+ [autofit] Fix Savannah bug #36091.
+
+ * src/autofit/aflatin.c (af_latin_metrics_init_blues),
+ src/autofit/aflatin2.c (af_latin2_metrics_init_blues): Change the
+ constraint for testing round vs. flat segment: Accept either a
+ small distance or a small angle.
+
+2012-07-04 Werner Lemberg <wl@gnu.org>
+
+ [autofit] Beautify blue zone tracing.
+
+ * src/autofit/aflatin.c (af_latin_metrics_init_blues),
+ src/autofit/aflatin2.c (af_latin2_metrics_init_blues): Implement it.
+
+2012-07-03 Werner Lemberg <wl@gnu.org>
+
+ [autofit] Quantize stem widths.
+
+ * src/autofit/afangles.c (af_sort_widths): Rename to...
+ (af_sort_and_quantize_widths): This.
+ Add code to avoid stem widths which are almost identical.
+ * src/autofit/aftypes.h, src/autofit/aflatin.c, src/autofit/afcjk.c:
+ Updated.
+
+2012-07-03 Werner Lemberg <wl@gnu.org>
+
+ [autofit] Minor speed-up.
+
+ * src/autofit/afangles (af_sort_pos, af_sort_widths): Don't swap
+ elements if they are equal.
+
+2012-06-30 Gilles Espinasse <g.esp@free.fr>
+
+ Fix `checking if gcc static flag -static works' test.
+
+ On my linux build tree, I receive yes answer in every package I
+ build except FreeType for this test checking if gcc static flag
+ `-static' works
+
+ In FreeType, no is received, unless bzip2 and zlib are disabled using
+
+ ./configure --without-bzip2 --without-zlib
+
+ The reason is that bzip2 and zlib tests add `-lz' and `-lbz2' to
+ LDFLAGS and this broke static flag test.
+
+ * builds/unix/configure.raw: Update CFLAGS and LDFLAGS only after
+ LT_INIT has run.
+
+2012-06-28 Infinality <infinality@infinality.net>
+
+ [truetype] Fix various artifacts.
+
+ Verdana was broken in the original Infinality commit. Also
+ includes other minor fixes.
+
+ * src/truetype/ttsubpix.h: Updated. Removed unused macros.
+ (RASTERIZER_35_Rules): Add Verdana.
+ (SKIP_NONPIXEL_Y_MOVES_Rules): Add Tahoma `s'.
+ (MIRP_CVT_ZERO_Rules): Remove Verdana.
+ (ALWAYS_SKIP_DELTAP_Rules): Add Russian char 0x438.
+ (COMPATIBLE_WIDTHS_Rules): Rearrange some rules.
+ (X_SCALING_Rules): Adjust Verdana `a' at 12 and 13 ppem.
+
+ * src/truetype/ttsubpix.c: Updated.
+ (sph_set_tweaks): Re-execute fpgm always.
+
+2012-06-28 Gilles Espinasse <g.esp@free.fr>
+
+ Fix CFLAGS and LDFLAGS share configure test.
+
+ * builds/unix/configure.raw: Fix typo.
+
+2012-06-28 Werner Lemberg <wl@gnu.org>
+
+ [truetype] Set the `subpixel_positioned' flag unconditionally.
+
+ This is how the code currently behaves.
+
+ * src/truetype/ttgload.c (tt_loader_init): Do it.
+
+2012-06-27 Werner Lemberg <wl@gnu.org>
+
+ Fix conditional compilation.
+
+ * src/base/basepic.c: Use FT_CONFIG_OPTION_MAC_FONTS.
+
+2012-06-27 Werner Lemberg <wl@gnu.org>
+
+ Fix conditional compilation.
+
+ * include/freetype/internal/ftcalc.h (FT_MulDiv_No_Round): Don't
+ enclose with `TT_USE_BYTECODE_INTERPRETER'; we now need the function
+ elsewhere also.
+
+ * src/autofit/afcjk.h: Use AF_CONFIG_OPTION_CJK.
+
+ * src/truetype/ttgload.c (tt_loader_init): Fix compiler warning.
+
+ * src/truetype/ttinterp.c (Ins_MSIRP): Fix compiler warning.
+
+ * src/truetype/ttinterp.h: Use
+ TT_CONFIG_OPTION_BYTECODE_INTERPRETER.
+
+2012-06-26 Infinality <infinality@infinality.net>
+
+ [truetype] Remove unused rounding functionality.
+
+ The subpixel hinting patch contained the concept of an adjustable
+ number of gridlines per pixel. This is no longer used due to x
+ being completely ignored instead. This will return some of the
+ code to its existing state prior to the original Infinality
+ commit.
+
+ * include/freetype/internal/ftobjs.h (FT_PIX_FLOOR_GRID,
+ FT_PIX_ROUND_GRID, FT_PIX_CEIL_GRID): Removed.
+
+ * src/truetype/ttinterp.c: Updated.
+ (Round_None, Round_To_Grid, Round_To_Half_Grid, Round_Down_To_Grid,
+ Round_Up_To_Grid, Round_To_Double_Grid, Round_Super, Round_Super_45,
+ SetSuperRound): Remove parameter to handle the number of grid lines per
+ pixel.
+ (SET_SuperRound, ROUND_None, CUR_Func_round): Updated.
+ (DO_SROUND, DOS45ROUND, DO_ODD, DO_EVEN): Updated.
+ (DO_ROUND, DO_NROUND): Updated.
+ (Move_Zp2_Point, Ins_SHPIX, Ins_MSIRP, Ins_MDAP, Ins_MIAP,
+ Ins_MDRP, Ins_MIRP): Perform Round_None instead of calling a modified
+ rounding function. Remove gridlines_per_pixel. Create a local
+ variable to store control value cutin. Simplify the conditional for
+ ignore_x_mode. Adjust rounding calls to pass only two values.
+
+2012-06-25 Werner Lemberg <wl@gnu.org>
+
+ [cff] Fix Savannah bug #36705.
+
+ Handle numbers like 2.001 correctly.
+
+ * src/cff/cffparse.c (cff_parse_real): Avoid negative values for
+ `shift'.
+
+2012-06-18 Infinality <infinality@infinality.net>
+
+ [truetype] Support subpixel hinting.
+
+ This is the large, famous `Infinality' patch to support ClearType
+ bytecode which has been available from
+ http://www.infinality.net/blog/ for some time, and which has been
+ refined over the last years. While still experimental, it is now
+ mature enough to be included directly into FreeType.
+
+ Most of the code is based on the ClearType whitepaper written by
+ Greg Hitchcock
+
+ https://www.microsoft.com/typography/cleartype/truetypecleartype.aspx
+
+ which gives a detailed overview of the necessary changes to the
+ Microsoft rasterizer so that older fonts are supported. However, a
+ lot of details are still missing, and this patches provides a
+ framework to easily handle rendering issues down to the glyph level
+ of certain fonts.
+
+ Note that ClearType support is not completely implemented! In
+ particular, full support for the options `compatible_widths',
+ `symmetrical_smoothing, and `bgr' (via the GETINFO bytecode
+ instruction) is missing.
+
+ * src/truetype/ttsubpix.c: New file, providing code to handle
+ `tweaks', this is, rules for certain glyphs in certain fonts
+ (including wildcards) which need a special treatment.
+
+ * src/truetype/ttsubpix.h: New file, holding the tweaking rules.
+
+ * include/freetype/config/ftoption.h, src/devel/ftoption.h
+ (TT_CONFIG_OPTION_SUBPIXEL_HINTING): New macro.
+
+ * include/freetype/internal/ftobjs.h (FT_PIX_FLOOR_GRID,
+ FT_PIX_ROUND_GRID, FT_PIX_CEIL_GRID): New macros.
+
+ * src/truetype/truetype.c [TT_USE_BYTECODE_INTERPRETER]: Include
+ `ttsubpix.c'.
+
+ * src/truetype/ttgload.c: Include `ttsubpix.h'.
+ [All changes below are guarded by TT_CONFIG_OPTION_SUBPIXEL_HINTING.]
+
+ (tt_get_metrics): Set tweak flags.
+ (TT_Hint_Glyph): Call `FT_Outline_EmboldenXY' if necessary.
+ (TT_Process_Simple_Glyph): Compensate emboldening if necessary.
+ (compute_glyph_metrics): Handle `compatible widths' option.
+ (tt_loader_init): Handle ClearType GETINFO information bits.
+
+ * src/truetype/rules.mk (TT_DRV_SRC): Updated.
+
+ * src/truetype/ttinterp.c: Include `ttsubpix.h'.
+ [Where necessary, changes below are guarded by
+ TT_CONFIG_OPTION_SUBPIXEL_HINTING.]
+
+ (Direct_Move, Direct_Move_X): Extended.
+ (Round_None, Round_To_Grid, Round_To_Half_Grid, Round_Down_To_Grid,
+ Round_Up_To_Grid, Round_To_Double_Grid, Round_Super, Round_Super_45,
+ SetSuperRound): Add parameter to handle the number of grid lines per
+ pixel.
+ (SET_SuperRound, ROUND_None, CUR_Func_round): Updated.
+ (DO_SROUND, DOS45ROUND, DO_ODD, DO_EVEN): Updated.
+ (DO_ROUND, DO_NROUND): Updated.
+ (DO_RS): Take care of `Typeman' bytecode patterns.
+ (Ins_FDEF): Add some debugging code. Commented out.
+ (Ins_ENDF): Restore state.
+ (Ins_CALL, Ins_LOOPCALL): Handle inline delta functions.
+ (Ins_MD): Handle `Vacuform' rounds.
+ (Move_Zp2_Point, Ins_SHPIX, Ins_MSIRP, Ins_MDAP, Ins_MIAP,
+ Ins_MDRP, Ins_MIRP): Handle tweaks.
+ (Ins_ALIGNRP): Add tweak guard.
+ (Ins_IUP, Ins_DELTAP): Handle tweaks.
+ (Ins_GETINFO): Handle new ClearType bits.
+ (TT_RunIns): Handle tweaks.
+
+ * src/truetype/ttinterp.h: Updated.
+ (SPH_TweakRule, SPH_ScaleRule): New structures for tweaks.
+ (TT_ExecContextRec): Add members for subpixel hinting support.
+
+ * src/truetype/ttobjs.h (TT_DefRecord): Add `inline_delta' member.
+
+2012-06-15 Werner Lemberg <wl@gnu.org>
+
+ * Version 2.4.10 released.
+ =========================
+
+
+ Tag sources with `VER-2-4-10'.
+
+ * docs/VERSION.DLL: Update documentation and bump version number to
+ 2.4.10.
+
+ * README, Jamfile (RefDoc),
+ builds/win32/vc2005/freetype.vcproj, builds/win32/vc2005/index.html,
+ builds/win32/vc2008/freetype.vcproj, builds/win32/vc2008/index.html,
+ builds/win32/vc2010/freetype.vcxproj, builds/win32/vc2010/index.html,
+ builds/win32/visualc/freetype.dsp,
+ builds/win32/visualc/freetype.vcproj,
+ builds/win32/visualc/index.html, builds/win32/visualce/freetype.dsp,
+ builds/win32/visualce/freetype.vcproj,
+ builds/win32/visualce/index.html,
+ builds/wince/vc2005-ce/freetype.vcproj,
+ builds/wince/vc2005-ce/index.html,
+ builds/wince/vc2008-ce/freetype.vcproj,
+ builds/wince/vc2008-ce/index.html: s/2.4.9/2.4.10/, s/249/2410/.
+
+ * include/freetype/freetype.h (FREETYPE_PATCH): Set to 10.
+
+ * builds/unix/configure.raw (version_info): Set to 15:0:9.
+
+2012-06-15 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ * src/base/ftsynth.c (FT_GlyphSlot_Embolden): Improve spacing.
+
+ * docs/CHANGES: Updated.
+
+2012-06-14 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ * builds/exports.mk: Add CCexe_CFLAGS and CCexe_LDFLAGS.
+
+ to pass special compiler/linker flags under cross development.
+ Suggested by Savannah bug #36367.
+
+ ChangeLog on 2010-07-15 saying as they were removed was wrong
+ for the official trunk of FreeType2. This commit is the first
+ introduction of them.
+
+2012-06-14 Werner Lemberg <wl@gnu.org>
+
+ * docs/CHANGES: Updated.
+
+2012-06-14 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ [truetype] Add new versions of NEC FA family to tricky font list.
+
+ NEC FA family dated in 1996 have different checksum.
+ Reported by Johnson Y. Yan <yinsen_yan@foxitsoftware.com>; see
+
+ https://lists.gnu.org/archive/html/freetype-devel/2012-06/msg00023.html
+
+ * src/truetype/ttobjs.c (tt_check_trickyness_sfnt_ids): 4 sets
+ of fpgm & prep table checksums for FA-Gothic, FA-Minchou,
+ FA-RoundedGothicM, FA-RoundedGothicB are added. The family
+ names in sample PDF are truncated, thus the list of the
+ family names in tt_check_trickyness_family() is not updated yet.
+
+2012-06-06 Werner Lemberg <wl@gnu.org>
+
+ [ftraster] Fix rounding issue causing visual artifacts.
+
+ Problem reported by jola <hans-jochen.lau@lhsystems.com>; see
+
+ https://lists.gnu.org/archive/html/freetype-devel/2012-05/msg00036.html
+
+ * src/raster/ftraster.c (SMulDiv_No_Round): New macro.
+ (Line_Up): Use it.
+ * src/raster/ftmisc.h (FT_MulDiv_No_Round): Copied from `ftcalc.c'.
+
+2012-05-28 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ * src/base/ftoutln.c (FT_Outline_Get_Orientation): Simplify.
+
+ We now use the cross product of the direction vectors to compute the
+ outline's orientation.
+
+2012-05-28 Werner Lemberg <wl@gnu.org>
+
+ * docs/CHANGES: Updated.
+
+2012-05-28 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ New function FT_Outline_EmboldenXY.
+
+ * include/freetype/ftoutln.h (FT_Outline_EmboldenXY): Define it.
+
+ * src/base/ftoutln.c (FT_Outline_EmboldenXY): Implement it, using a
+ simplified emboldening algorithm.
+ (FT_Outline_Embolden): Make it a special case of
+ `FT_Outline_EmboldenXY'
+
+2012-05-07 Werner Lemberg <wl@gnu.org>
+
+ [type1] Fix Savannah bug #36386.
+
+ * src/type1/t1load.c (t1_load_keyword): Ignore keyword if context is
+ not valid.
+
+2012-04-07 Werner Lemberg <wl@gnu.org>
+
+ Remove compiler warning.
+
+ * src/truetype/ttgload.c (TT_Load_Glyph)
+ [!TT_CONFIG_OPTION_EMBEDDED_BITMAPS]: Access `glyph->face' directly.
+
+2012-03-28 Werner Lemberg <wl@gnu.org>
+
+ [autofit] Properly copy scaler flags to script metrics object.
+
+ Without this patch, only the dummy and cjk autohinter modules get
+ them (since they copy the whole scaler object).
+
+ * src/autofit/aflatin.c (af_latin_metrics_scale),
+ src/autofit/aflatin2.c (af_latin2_metrics_scale): Implement it.
+
+2012-03-22 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ [bdflib] Remove redundant macro.
+
+ * src/bdf/bdflib.c (isdigok): Remove and replace with sbitset, which
+ is exactly the same.
+
+2012-03-20 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ [configure] Fix Savannah bug #35644.
+
+ * builds/unix/configure.raw: Check `-ansi' flag works even if gcc
+ is used. Bionic libc headers for Android lose the consistency
+ when they are parsed with __STDC_VERSION__ older than 199901L or
+ __STRICT_ANSI__.
+
+2012-03-20 Werner Lemberg <wl@gnu.org>
+
+ [bdf] Improvement to Savannah bug #35656.
+
+ * src/bdf/bdflib.c (isdigok): Add cast, as suggested in report.
+
+2012-03-17 Chris Liddell <chris.liddell@artifex.com>
+
+ [type1] Fix Savannah bug #35847.
+
+ * src/type1/t1load.c (parse_subrs): Fix the loop exit condition;
+ we want to exit when we have run out of data.
+
+2012-03-16 Werner Lemberg <wl@gnu.org>
+
+ [bdf] Really fix Savannah bug #35658.
+
+ * src/bdf/bdflib.c (_bdf_list_split): Add one more `field' initializer.
+
+2012-03-14 Yann Droneaud <yann@droneaud.fr>
+
+ [sfnt] Make arrays static like all others.
+
+ * src/sfnt/ttload.c (tt_face_load_maxp, tt_face_load_os2),
+ src/sfnt/ttmtx.c (tt_face_load_hhea): Add `static' keyword to frame
+ fields.
+
+2012-03-14 Huw Davies <huw@codeweavers.com>
+
+ [sfnt] A refinement of the previous commit.
+
+ * src/sfnt/sfobjs.c (tt_name_entry_ascii_from_utf16,
+ tt_name_entry_ascii_from_other): Stop at null byte.
+
+2012-03-14 Huw Davies <huw@codeweavers.com>
+
+ [sfnt] Add `name' table compatibility to MS Windows.
+
+ * src/sfnt/sfobjs.c (tt_name_entry_ascii_from_utf16,
+ tt_name_entry_ascii_from_other): Don't replace `\0' with question
+ marks when converting strings.
+
+2012-03-14 Werner Lemberg <wl@gnu.org>
+
+ [type1] Fix Savannah bug #35833.
+
+ Based on the patch given in the bug report.
+
+ * src/type1/t1load.c (IS_INCREMENTAL): New macro.
+ (read_binary_data): Add parameter `incremental'.
+ Update all callers using `IS_INCREMENTAL'.
+
+2012-03-11 Werner Lemberg <wl@gnu.org>
+
+ [autofit] Return correct linear advance width values.
+
+ This was quite a subtle bug which accidentally showed up with glyph
+ `afii10023' of arial.ttf (version 2.76). This glyph is a composite;
+ the first component, `E', has an advance width of 1366 font units,
+ while the advance width of the composite itself (which looks like
+ uppercase `E' with dieresis) is 1367 font units. I think this is
+ actually a bug in the font itself, because there is no reason that
+ this glyph has not the same width as uppercase `E' without the
+ dieresis. Anyway, it helped identify this problem.
+
+ Using the TrueType hinter, the correct value (1367) of `afii10023'
+ was returned, but the autohinter mysteriously returned 1366.
+
+ Digging in the code showed that the autohinter recursively calls
+ FT_Load_Glyph to load the glyph, adding the FT_LOAD_NO_SCALE load
+ flag. However, the `linearHoriAdvance' field is still returned as a
+ scaled value. To avoid scaling twice, the old code in autofit reset
+ `linearHoriAdvance', using the `horiAdvance' field. This seemed to
+ work since FT_LOAD_NO_SCALE was in use, but it failed actually,
+ because `horiAdvance' is defined as the distance of the first
+ subglyph's phantom points, which in turn are initialized using the
+ advance width of the first subglyph. And as the given example
+ shows, these widths can differ.
+
+ * src/autofit/afloader.c (af_loader_load_g): Temporarily set
+ FT_LOAD_LINEAR_DESIGN while calling FT_Load_Glyph to get unscaled
+ values for the linear advance widths.
+
+2012-03-10 Werner Lemberg <wl@gnu.org>
+
+ [truetype] Fix SSW instruction.
+
+ * src/truetype/ttinterp.c (DO_SSW): SSW *does* use font units. For
+ verification, it took some time to find a font which actually uses
+ this instruction.
+
+2012-03-09 Vinnie Falco <vinnie.falco@gmail.com>
+
+ Prepare source code for amalgamation.
+
+ * include/freetype/freetype.h: Swap order of preprocessor blocks.
+
+2012-03-08 Werner Lemberg <wl@gnu.org>
+
+ * Version 2.4.9 released.
+ =========================
+
+
+ Tag sources with `VER-2-4-9'.
+
+ * docs/CHANGES: Updated.
+
+ * docs/VERSION.DLL: Update documentation and bump version number to
+ 2.4.9.
+
+ * README, Jamfile (RefDoc),
+ builds/win32/vc2005/freetype.vcproj, builds/win32/vc2005/index.html,
+ builds/win32/vc2008/freetype.vcproj, builds/win32/vc2008/index.html,
+ builds/win32/vc2010/freetype.vcxproj, builds/win32/vc2010/index.html,
+ builds/win32/visualc/freetype.dsp,
+ builds/win32/visualc/freetype.vcproj,
+ builds/win32/visualc/index.html, builds/win32/visualce/freetype.dsp,
+ builds/win32/visualce/freetype.vcproj,
+ builds/win32/visualce/index.html,
+ builds/wince/vc2005-ce/freetype.vcproj,
+ builds/wince/vc2005-ce/index.html,
+ builds/wince/vc2008-ce/freetype.vcproj,
+ builds/wince/vc2008-ce/index.html: s/2.4.8/2.4.9/, s/248/249/.
+
+ * include/freetype/freetype.h (FREETYPE_PATCH): Set to 9.
+
+ * builds/unix/configure.raw (version_info): Set to 14:1:8.
+
+2012-03-08 Werner Lemberg <wl@gnu.org>
+
+ [bdf] Add missing overflow check.
+
+ * src/bdf/bdflib.c (_bdf_parse_glyphs) <BITMAP>: Add threshold for
+ `glyph->bpr'.
+
+2012-03-07 Vinnie Falco <vinnie.falco@gmail.com>
+
+ Prepare source code for amalgamation.
+
+ * src/autofit/aferrors.h, src/bdf/bdferror.h, src/bzip2/ftbzip2.c,
+ src/cache/ftcerror.h, src/cff/cfferrs.h, src/cid/ciderrs.h,
+ src/gxvalid/gxverror.h, src/gzip/ftgzip.c, src/lzw/ftlzw.c,
+ src/otvalid/otverror.h, src/pcf/pcferror.h, src/pfr/pfrerror.h,
+ src/psaux/psauxerr.h, src/pshinter/pshnterr.h,
+ src/psnames/psnamerr.h, src/raster/rasterrs.h, src/sfnt/sferrors.h,
+ src/smooth/ftsmerrs.h, src/truetype/tterrors.h,
+ src/type1/t1errors.h, src/type42/t42error.h, src/winfonts/fnterrs.h:
+ Add #undef FT_ERR_PREFIX before #define FT_ERR_PREFIX.
+
+2012-03-03 Werner Lemberg <wl@gnu.org>
+
+ Fix Savannah bug #35660.
+
+ For some divisions, we use casts to 32bit entities. Always guard
+ against division by zero with these casts also.
+
+ * src/base/ftcalc.c (ft_div64by32): Remove redundant cast.
+ (FT_MulDiv, FT_MulDiv_No_Round): Add 32bit cast.
+ (FT_DivFix): Add 32bit cast (this omission triggered the bug).
+
+2012-03-03 Werner Lemberg <wl@gnu.org>
+
+ [psaux] Fix handling of track kerning.
+
+ * src/psaux/afmparse.c (afm_parse_track_kern): Don't inverse sign
+ for `min_kern'. It is indeed quite common that track kerning
+ *increases* spacing for very small sizes.
+
+2012-03-02 Werner Lemberg <wl@gnu.org>
+
+ [truetype] Fix Savannah bug #35689.
+
+ * src/truetype/ttgload.c (TT_Load_Simple_Glyph): Check first outline
+ point.
+
+2012-03-01 Werner Lemberg <wl@gnu.org>
+
+ [bdf] Fix Savannah bug #35656.
+
+ * src/bdf/bdflib.c (_bdf_parse_glyphs) <_BDF_BITMAP>: Check validity
+ of nibble characters instead of accessing `a2i' array.
+
+2012-03-01 Werner Lemberg <wl@gnu.org>
+
+ [winfonts] Fix Savannah bug #35659.
+
+ * src/winfonts/winfnt.c (FNT_Face_Init): Check number of glyphs.
+
+2012-03-01 Werner Lemberg <wl@gnu.org>
+
+ [bdf] Fix Savannah bug #35658.
+
+ * src/bdf/bdflib.c (_bdf_list_split): Initialize `field' elements
+ properly.
+
+2012-03-01 Werner Lemberg <wl@gnu.org>
+
+ [psaux] Fix Savannah bug #35657.
+
+ If in function `skip_spaces' the routine `skip_comment' comes to the
+ end of buffer, `cur' is still increased by one, so we need to check
+ for `p >= limit' and not `p == limit'.
+
+ * src/psaux/psconv.c (PS_Conv_Strtol, PS_Conv_ToFixed,
+ PS_Conv_ASCIIHexDecode, PS_Conv_EexecDecode): Fix boundary checking.
+
+2012-03-01 Werner Lemberg <wl@gnu.org>
+
+ [truetype] Fix Savannah bug #35646.
+
+ * src/truetype/ttinterp.c (Ins_MIRP): Typo, present since ages. The
+ code is now in sync with the other operators (e.g. MSIRP) which
+ modify twilight points.
+
+2012-03-01 Werner Lemberg <wl@gnu.org>
+
+ [bdf] Fix Savannah bug #35643.
+
+ * src/bdf/bdflib.c (_bdf_list_ensure): Bring code in sync with
+ comment before `_bdf_list_split', this is, really allocate at least
+ five `field' elements.
+
+2012-03-01 Werner Lemberg <wl@gnu.org>
+
+ [bdf] Fix Savannah bug #35641.
+
+ * src/bdf/bdflib.c (_bdf_parse_glyphs) <DWIDTH, BBX>: Abort if
+ _BDF_ENCODING isn't set. We need this because access to the `glyph'
+ variable might be undefined otherwise.
+
+2012-03-01 Werner Lemberg <wl@gnu.org>
+
+ [truetype] Fix Savannah bug #35640.
+
+ * src/truetype/ttinterp.c (SkipCode, TT_RunIns): Fix boundary check
+ for NPUSHB and NPUSHW instructions.
+
+2012-02-29 Werner Lemberg <wl@gnu.org>
+
+ [truetype] Fix Savannah bug #35601.
+
+ * src/truetype/ttinterp.c (Ins_SHZ): Use number of points instead of
+ last point for loop.
+ Also remove redundant boundary check.
+
+2012-02-29 Werner Lemberg <wl@gnu.org>
+
+ [truetype] Remove redundant check.
+
+ * src/truetype/ttgload.c (TT_Load_Simple_Glyph): Remove redundant
+ second check for ordered contour start points.
+
+2012-02-29 Werner Lemberg <wl@gnu.org>
+
+ [truetype] Make SHC instruction behave similar to MS rasterizer.
+
+ * src/truetype/ttinterp.c (Ins_SHC): Handle virtual contour in
+ twilight zone.
+
+2012-02-29 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ Avoid modulo operators against a power-of-two denominator.
+
+ * src/afcjk.c (af_hint_normal_stem), src/base/ftoutln.c
+ (ft_contour_has), src/cff/cffgload.c (cff_decoder_parse_charstrings)
+ <cff_op_vvcurveto, cff_op_hhcurveto, cff_op_hvcurveto>,
+ src/gxvalid/gxvcommn.c (GXV_32BIT_ALIGNMENT_VALIDATE),
+ src/gxvalid/gxvfeat.c (gxv_feat_setting_validate): Replace `%' with
+ `&' operator.
+
+2012-02-29 Werner Lemberg <wl@gnu.org>
+
+ [autofit] Don't synchronize digit widths for light rendering mode.
+
+ We don't hint horizontally in this mode.
+
+ * src/autofit/afloader.c (af_loader_load_g) <Hint_Metrics>:
+ Implement it.
+
+2012-02-26 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ [type42] Minor code optimization (again).
+
+ * src/type42/t42parse.c (t42_parse_sfnts): Simplify previous change.
+
+2012-02-26 Mateusz Jurczyk <mjurczyk@google.com>
+ Werner Lemberg <wl@gnu.org>
+
+ [smooth] Fix Savannah bug #35604.
+
+ * src/smooth/ftsmooth.c (ft_smooth_render_generic): Use `FT_Pos'
+ instead of `FT_UInt' for some variables and update comparisons
+ accordingly. A detailed analysis can be found in the bug report.
+
+2012-02-26 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ [type42] Minor code optimization.
+
+ * src/type42/t42parse.c (t42_parse_sfnts): Use bitmask instead of
+ modulo operator.
+
+2012-02-26 Werner Lemberg <wl@gnu.org>
+
+ * docs/CHANGES: Updated.
+
+2012-02-26 Werner Lemberg <wl@gnu.org>
+
+ [type1] Fix Savannah bug #35608.
+
+ * src/type1/t1parse.c (T1_Get_Private_Dict): Reject too short
+ dictionaries.
+
+2012-02-26 Werner Lemberg <wl@gnu.org>
+
+ [bdf] Support `ENCODING -1 <n>' format.
+
+ * src/bdf/bdflib.c (_bdf_parse_glyphs) <ENCODING>: Implement it.
+
+2012-02-26 Werner Lemberg <wl@gnu.org>
+
+ [bdf] Fix Savannah bug #35607.
+
+ * src/bdf/bdflib.c (_bdf_parse_glyphs) <ENCODING>: Normalize
+ negative encoding values.
+
+2012-02-26 Werner Lemberg <wl@gnu.org>
+
+ [type1] Fix Savannah bug #35606.
+
+ * src/type1/t1load.c (parse_subrs): Add proper guards for `strncmp'.
+
+ * src/psaux/psobjs.c (ps_parser_skip_PS_token): Emit error message
+ only if cur < limit.
+
+2012-02-25 Werner Lemberg <wl@gnu.org>
+
+ [pcf] Fix Savannah bug #35603.
+
+ * src/pcf/pcfread.c (pcf_get_properties): Assure final zero byte in
+ `strings' array.
+
+2012-02-25 Werner Lemberg <wl@gnu.org>
+
+ [type42] Fix Savannah bug #35602.
+
+ * src/type42/t42parse.c (t42_parse_sfnts): Check `string_size' more
+ thoroughly.
+
+2012-02-25 Werner Lemberg <wl@gnu.org>
+
+ [bdf] Fix Savannah bugs #35599 and #35600.
+
+ * src/bdf/bdflib.c (ACMSG16): New warning message.
+ (_bdf_parse_glyphs) <_BDF_BITMAP>: Check line length.
+
+2012-02-24 Werner Lemberg <wl@gnu.org>
+
+ [bdf] Fix Savannah bugs #35597 and #35598.
+
+ * src/bdf/bdflib.c (_bdf_is_atom): Fix handling of property value.
+
+2012-02-24 Vinnie Falco <vinnie.falco@gmail.com>
+
+ Prepare source code for amalgamation (6/6).
+
+ * src/cff/cffdrivr.c: s/Load_Glyph/cff_glyph_load/.
+
+ * src/cid/cidload.c: s/parse_font_matrix/cid_parse_font_matrix/.
+ s/t1_init_loader/cid_init_loader/.
+ s/t1_done_loader/cid_done_loader/.
+
+ * src/psaux/t1cmap.c: s/t1_get_glyph_name/psaux_get_glyph_name/.
+
+ * src/truetype/ttdriver.c: s/Load_Glyph/tt_glyph_load/.
+
+ * src/type1/t1load.c: s/parse_font_matrix/t1_parse_font_matrix/.
+
+2012-02-24 Vinnie Falco <vinnie.falco@gmail.com>
+
+ Prepare source code for amalgamation (5/6).
+
+ * include/freetype/fterrors.h: Undefine FT_KEEP_ERR_PREFIX after
+ using it.
+
+2012-02-22 Vinnie Falco <vinnie.falco@gmail.com>
+
+ Prepare source code for amalgamation (4/6).
+
+ * src/smooth/ftgrays.c, src/raster/ftraster.c: Undefine RAS_ARG,
+ RAS_ARGS, RAS_VAR, and RAS_VARS before defining it.
+
+ * src/smooth/ftgrays.c: s/TRaster/black_TRaster/,
+ s/PRaster/black_PRaster/.
+ * src/raster/ftraster.c: s/TRaster/gray_TRaster/,
+ s/PRaster/gray_PRaster/.
+
+2012-02-20 Vinnie Falco <vinnie.falco@gmail.com>
+
+ Prepare source code for amalgamation (3/6).
+
+ * src/smooth/ftgrays.c: s/TWorker/black_TWorker/,
+ s/PWorker/black_PWorker/.
+ * src/raster/ftraster.c: s/TWorker/gray_TWorker/,
+ s/PWorker/gray_PWorker/.
+
+2012-02-20 Vinnie Falco <vinnie.falco@gmail.com>
+
+ Prepare source code for amalgamation (2/6).
+
+ * src/smooth/ftgrays.c, src/raster/ftraster.c: Undefine FLOOR,
+ CEILING, TRUNC, and SCALED before defining it.
+
+2012-02-20 Vinnie Falco <vinnie.falco@gmail.com>
+
+ Prepare source code for amalgamation (1/6).
+
+ See discussion starting at
+
+ https://lists.gnu.org/archive/html/freetype-devel/2012-01/msg00037.html
+
+ * src/smooth/ftgrays.c: s/TBand/gray_TBand/.
+ * src/raster/ftraster.c: s/TBand/black_TBand/.
+
+2012-02-17 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ [autofit] Fix outline flags.
+
+ * src/autofit/afloader.c (af_loader_load_g): Don't reassign
+ `outline.flags' so that this information is preserved. See
+ discussion starting at
+
+ https://lists.gnu.org/archive/html/freetype-devel/2012-02/msg00046.html
+
+2012-02-11 Werner Lemberg <wl@gnu.org>
+
+ [truetype] Fix Savannah bug #35466.
+
+ Jump instructions are now bound to the current function. The MS
+ Windows rasterizer behaves the same, as confirmed by Greg Hitchcock.
+
+ * src/truetype/ttinterp.h (TT_CallRec): Add `Cur_End' element.
+ * src/truetype/ttobjs.h (TT_DefRecord): Add `end' element.
+
+ * src/truetype/ttinterp.c (DO_JROT, DO_JMPR, DO_JROF): Check upper
+ bound of jump address.
+ (Ins_FDEF, Ins_CALL, Ins_LOOPCALL, Ins_UNKNOWN, TT_RunIns): Updated.
+
+2012-02-11 Werner Lemberg <wl@gnu.org>
+
+ We don't use `extensions'.
+
+ * include/freetype/internal/ftobjs.h (FT_DriverRec): Remove
+ `extensions' field.
+
+2012-02-11 Werner Lemberg <wl@gnu.org>
+
+ Clean up `generic' fields.
+
+ * include/freetype/internal/ftobjs.h (FT_ModuleRec, FT_LibraryRec):
+ Remove `generic' field since users can't access it.
+
+ * src/base/ftobjs.c (FT_Done_GlyphSlot): Call `generic.finalizer' as
+ advertised in the documentation of FT_Generic.
+ (Destroy_Module, FT_Done_Library): Updated to changes in `ftobjs.h'.
+
+2012-02-07 Werner Lemberg <wl@gnu.org>
+
+ [autofit] Harmonize function arguments.
+
+ * src/autofit/afloader.c, src/autofit/afloader.h: Use `FT_Int32' for
+ `load_flags'.
+
+2012-02-07 Werner Lemberg <wl@gnu.org>
+
+ * src/cff/cffobjs.c (cff_face_init): Remove unnecessary casts.
+
+2012-01-17 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ [gxvalid] Fix Savannah bug #35286.
+
+ Patch submitted by anonymous reporter.
+
+ * src/gxvalid/gxvcommn.c (gxv_XStateTable_subtable_setup):
+ gxv_set_length_by_ulong_offset() must be called with 3, not 4,
+ the number of the subtables in the state tables; classTable,
+ stateArray, entryTable.
+
+2012-01-17 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ [raccess] Modify for PIC build.
+
+ Based on the patch provided by Erik Dahlstrom <ed@opera.com>,
+ https://lists.gnu.org/archive/html/freetype-devel/2012-01/msg00010.html
+
+ Also `raccess_guess_table[]' and `raccess_rule_by_darwin_vfs()'
+ are renamed with `ft_' suffixes.
+
+ * src/base/ftbase.h: `raccess_rule_by_darwin_vfs()' is renamed
+ to `ft_raccess_rule_by_darwin_vfs()'.
+ * src/base/ftobjs.c: Ditto.
+
+ * src/base/ftrfork.c: Declarations of FT_RFork_Rule,
+ raccess_guess_rec, are moved to...
+ * include/freetype/internal/ftrfork.h: Here.
+
+ * include/freetype/internal/ftrfork.h:
+ FT_RFORK_RULE_ARRAY_{BEGIN,ENTRY,END} macros are defined
+ to replace raccess_guess_table[] in both of PIC and non-PIC
+ modes.
+ * src/base/ftrfork.c: raccess_guess_table[] array is rewritten
+ by FT_RFORK_RULE_ARRAY_{BEGIN,ENTRY,END}.
+
+ * src/base/basepic.h (BasePIC): Add `ft_raccess_guess_table'
+ storage. (FT_RACCESS_GUESS_TABLE_GET): New macro to retrieve
+ the function pointer from `ft_raccess_guess_table' storage in
+ `BasePIC' structure.
+ * src/base/ftrfork.c (FT_Raccess_Guess): Rewritten with
+ FT_RACCESS_GUESS_TABLE_GET.
+ (raccess_get_rule_type_from_rule_index): Add `library' as the
+ first argument to the function, to retrieve the storage of
+ `ft_raccess_guess_table' from it. Also `raccess_guess_table'
+ is replaced by FT_RACCESS_GUESS_TABLE_GET.
+ (ft_raccess_rule_by_darwin_vfs): Ditto.
+
+2012-01-16 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ Remove trailing spaces.
+
+2012-01-16 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ Formatting PIC related sources.
+
+ * src/autofit/afpic.c: Harmonize to FT2 coding conventions.
+ * src/base/basepic.c: Ditto.
+ * src/base/ftpic.c: Ditto.
+ * src/cff/cffpic.c: Ditto.
+ * src/pshinter/pshpic.c: Ditto.
+ * src/psnames/pspic.c: Ditto.
+ * src/raster/rastpic.c: Ditto.
+ * src/sfnt/sfntpic.c: Ditto.
+ * src/smooth/ftspic.c: Ditto.
+ * src/truetype/ttpic.c: Ditto.
+
+2012-01-16 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ [autofit] Fix the inclusion of `aflatin2.h' in PIC file.
+
+ * src/autofit/afpic.c: Include `aflatin2.h' when
+ FT_OPTION_AUTOFIT2 is defined, as afglobal.c does so.
+ Unconditionally inclusion causes declared but unimplemented
+ warning by GCC 4.6.
+
+2012-01-16 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ [cff] Remove redundant declarations of cff_cmap_XXX_class_rec.
+
+ * src/cff/cffpic.c: The declarations of
+ FT_Init_Class_cff_cmap_encoding_class_rec() and
+ FT_Init_Class_cff_cmap_unicode_class_rec() are removed.
+ They can be obtained by the inclusion of cffcmap.h.
+ cffcmap.h invokes FT_DECLARE_CMAP_CLASS() and it declares
+ FT_Init_Class_cff_cmap_encoding_class_rec() etc in PIC mode.
+
+2012-01-15 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ Fix redundant declaration warning in PIC mode.
+
+ Originally FT_DEFINE_{DRIVER,MODULE,RENDERER}() macros were
+ designed to declare xxx_pic_{free,init} by themselves.
+ Because these macros are used at the end of the module
+ interface (e.g. ttdriver.c) and the wrapper source to build
+ a module as a single object (e.g. truetype.c) includes
+ the PIC file (e.g. ttpic.c) before the module interface,
+ these macros are expanded AFTER xxx_pic_{free,init} body
+ when the modules are built as single object.
+ The declaration after the implementation causes the redundant
+ declaration warnings, so the declarations are moved to module
+ PIC headers (e.g. ttpic.h). Separating to other header files
+ are needed for multi build.
+
+ * include/freetype/internal/ftdriver.h (FT_DEFINE_DRIVER):
+ Remove class_##_pic_free and class_##_pic_init declarations.
+ * include/freetype/internal/ftobjs.h (FT_DEFINE_RENDERER,
+ FT_DEFINE_MODULE): Ditto.
+
+ * src/base/basepic.h: Insert a comment and fix coding style.
+ * src/autofit/afpic.h: Declare autofit_module_class_pic_{free,
+ init}.
+ * src/cff/cffpic.h: Declare cff_driver_class_pic_{free,init}.
+ * src/pshinter/pshpic.h: Declare pshinter_module_class_pic_{free,
+ init}.
+ * src/psnames/pspic.h: Declare psnames_module_class_pic_{free,
+ init}.
+ * src/raster/rastpic.h: Declare
+ ft_raster{1,5}_renderer_class_pic_{free,init}
+ * src/sfnt/sfntpic.h: Declare sfnt_module_class_pic_{free,init}.
+ * src/smooth/ftspic.h: Declare
+ ft_smooth_{,lcd_,lcdv_}renderer_class_pic_{free,init}.
+ * src/truetype/ttpic.h: Declare tt_driver_class_pic_{free,init}.
+
+2012-01-15 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ Make pspic.c to include module error header to fix multi build.
+
+ * src/psnames/pspic.c: Include `psnamerr.h'.
+
+2012-01-14 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ [base] Fix a dereference of uninitialized variable in PIC mode.
+
+ * src/base/ftglyph.c (FT_Glyph_To_Bitmap): `glyph' must be
+ set before dereferring to obtain `library'. The initialization
+ of `clazz', `glyph', `library' and NULL pointer check are
+ reordered to minimize PIC conditionals.
+
+2012-01-14 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ [base] Insert explicit cast for GCC 4.6 in PIC mode.
+
+ * src/base/ftinit.c (FT_Add_Default_Modules): Under PIC
+ configuration, FT_DEFAULT_MODULES_GET returns
+ FT_Module_Class** pointer, GCC 4.6 warns that
+ const FT_Module_Class* const* variable is warned as
+ inappropriate to store it. To calm it, explicit cast is
+ inserted. Also `library' is checked to prevent the NULL
+ pointer dereference in FT_DEFAULT_MODULES_GET.
+
+2012-01-13 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ Fix PIC build broken by d9145241fe378104ba4c12a42534549faacc92e6.
+
+ Under PIC configuration, FT_{CFF,PSCMAPS,SFNT,TT}_SERVICES_GET
+ take no arguments but derefer the variable named `library'
+ internally.
+
+ * src/cff/cffdrivr.c (cff_get_interface): Declare `library' and
+ set it if non-NULL driver is passed.
+ * src/truetype/ttdriver.c (tt_get_interface): Ditto.
+
+ * src/sfnt/sfdriver.c (sfnt_get_interface): Declare `library'
+ under PIC configuration, and set it if non-NULL module is given.
+ * src/psnames/psmodule.c (psnames_get_interface): Ditto.
+
+2012-01-13 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ Make PIC files include module error headers, to use the error codes
+ with per-module prefix.
+
+ * src/autofit/afpic.c: Include `aferrors.h'.
+ * src/cff/cffpic.c: Include `cfferrs.h'.
+ * src/pshinter/pshpic.c: Include `pshnterr.h'.
+ * src/raster/rastpic.c: Include `rasterrs.h'.
+ * src/sfnt/sfntpic.c: Include `sferrors.h'.
+ * src/smooth/ftspic.c: Include `ftsmerrs.h'.
+ * src/truetype/ttpic.c: Include `tterrors.h'.
+
+2012-01-04 Tobias Ringström <tobias@ringis.se>
+
+ [truetype] Fix IP instruction if x_ppem != y_ppem.
+
+ * src/truetype/ttinterp.c (Ins_IP): Scale `orus' coordinates
+ properly.
+
+2012-01-02 Werner Lemberg <wl@gnu.org>
+
+ Fix tracing message for `loca' table.
+
+ * src/truetype/ttpload.c (tt_face_get_location): Don't emit a
+ warning message if the last `loca' entry references an empty glyph.
+
+2011-12-10 Werner Lemberg <wl@gnu.org>
+
+ Add some variable initializations.
+ Reported by Richard COOK <rscook@unicode.org>.
+
+ * src/type1/t1driver.c (t1_ps_get_font_value): Initialize `val'.
+ * src/smooth/ftgrays.c (gray_render_conic): Initialize `levels'
+ earlier.
+
+2011-12-08 Werner Lemberg <wl@gnu.org>
+
+ Fix serious scaling bug in `FT_Get_Advances'.
+
+ * src/base/ftadvanc.c (FT_Get_Advances): Advance values returned by
+ `FT_Load_Glyph' must be simply multiplied by 1024.
+
+2011-12-08 Werner Lemberg <wl@gnu.org>
+
+ * src/bdf/bdflib.c (_bdf_parse_start): Drop redundant error tracing.
+
+2011-12-02 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ [mac] Unify DARWIN_NO_CARBON with FT_MACINTOSH.
+
+ Originally FT_MACINTOSH was a pure auto macro and DARWIN_NO_CARBON
+ was a configurable macro to disable Carbon-dependent code. Because
+ now configure script sets DARWIN_NO_CARBON by default and disables
+ Darwin & Carbon-dependent codes, these macros can be unified.
+ FT_MACINTOSH (undefined by default) is kept and DARWIN_NO_CARBON
+ (defined by default) is removed, because DARWIN_NO_CARBON violates
+ FT_XXX naming convention of public macros, and a macro configured by
+ default is not portable for the building without configure (e.g.
+ make devel).
+
+ * builds/unix/configure.raw: Define FT_MACINTOSH if Carbon-based
+ old Mac font support is requested and Carbon is available.
+ * builds/unix/ftconfig.in: Undefine FT_MACINTOSH when the support
+ for Mac OS X without Carbon (e.g. Mac OS X 10.4 for ppc64) is
+ requested.
+ * include/freetype/config/ftconfig.in: Ditto.
+ * builds/vms/ftconfig.h: Ditto.
+
+ * src/base/ftbase.h: Remove DARWIN_NO_CARBON.
+ * src/base/ftbase.c: Ditto.
+ * src/base/ftobjs.c: Ditto.
+ * src/base/ftrfork.c: Ditto.
+
+ * src/base/ftmac.c: Compile the body if FT_MACINTOSH is defined
+ (same with TT_USE_BYTECODE_INTERPRETER in ttinterp.c).
+ * builds/mac/ftmac.c: Ditto.
+
+ * builds/mac/FreeType.m68k_cfm.make.txt: Define FT_MACINTOSH.
+ * builds/mac/FreeType.m68k_far.make.txt: Ditto.
+ * builds/mac/FreeType.ppc_classic.make.txt: Ditto.
+ * builds/mac/FreeType.ppc_carbon.make.txt: Ditto.
+
+2011-11-30 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ Fix Savannah bug #34728 (`make devel' on Mac OS X).
+
+ * builds/toplevel.mk: Check `/dev/null' to identify the Unix-
+ like systems without `init' nor `hurd' (e.g. Mac OS X >= 10.4).
+ * builds/unix/detect.mk: Ditto.
+
+2011-11-30 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ [apinames] Fix the overflow of signed integer hash.
+
+ * src/tools/apinames.c (names_add): Change the type of `h' from
+ int to unsigned int, to prevent undefined behaviour in the
+ overflow of signed integers (overflow of unsigned int is defined
+ to be wrap around). Found by clang test suggested by Sean
+ McBride.
+
+2011-11-30 Werner Lemberg <wl@gnu.org>
+
+ [winfonts] Remove casts.
+
+ * src/winfonts/winfnt.c (winfnt_driver_class): Remove all casts and
+ update affected functions.
+ (FNT_Size_Select): Fix number of arguments.
+
+2011-11-30 Werner Lemberg <wl@gnu.org>
+
+ [type42] Remove casts.
+
+ * src/type42/t42drivr.c (t42_driver_class): Remove all casts and
+ update affected functions.
+
+ * src/type42/t42objs.c, src/type42/t42objs.h: Updated for t42 driver
+ changes.
+
+2011-11-30 Werner Lemberg <wl@gnu.org>
+
+ [type1] Remove casts.
+
+ * src/type1/t1driver.c (t1_driver_class): Remove all casts and
+ update affected functions.
+
+ * src/type1/t1gload.c, src/type1/t1gload.h, src/type1/t1objs.c:
+ Updated for t1driver changes.
+ src/type1/t1objs.h (T1_Driver): Remove unused typedef.
+ Updated for t1driver changes.
+
+2011-11-27 Werner Lemberg <wl@gnu.org>
+
+ [bdf] Fix Savannah bug #34896.
+
+ ENCODING now covers the whole Unicode range.
+
+ Note, however, that this change is quite expensive since it
+ increases the size of three arrays by almost 400kByte in total. The
+ right fix is to replace the logic with something smarter.
+ Additionally, there exist very old BDFs for three-byte CCCII
+ encoding which exceeds the range of Unicode (another reason to have
+ a smarter logic).
+
+ * src/bdf/bdf.h (bdf_font_t): Increase size of `nmod' and `umod'
+ arrays.
+ * src/bdf/bdflib.c (bdf_parse_t): Increase size of `have' array.
+
+2011-11-27 Werner Lemberg <wl@gnu.org>
+
+ [bdf] Improve tracing.
+
+ * src/bdf/bdflib.c (DBGMSG1, DBGMSG2): New macros.
+ (_bdf_parse_glyphs): Use them.
+
+2011-11-26 Werner Lemberg <wl@gnu.org>
+
+ Improve tracing.
+
+ * src/bdf/bdfdrivr.c (BDF_Face_Done), src/pcf/pcfdrivr.c
+ (PCF_Face_Done): Remove tracing message.
+
+ * src/bdf/bdfdrivr.c (BDF_Face_Init), src/cff/cffobjs.c
+ (cff_face_init), src/cid/cidobjs.c (cid_face_init),
+ src/pfr/pfrobjs.c (pfr_face_init), src/sfnt/sfobjs.c
+ (sfnt_init_face), src/truetype/ttobjs.c (tt_face_init),
+ src/type1/t1objs.c (T1_Face_Init), src/type42/t42objs.c
+ (T42_Face_Init), src/winfonts/winfnt.c (FNT_Face_Init): Add
+ `greeting' message.
+
+ * src/sfnt/sfobjs.c (sfnt_open_font), src/type42/t42objs.c
+ (T42_Open_Face): Improve tracing.
+
+2011-11-26 Werner Lemberg <wl@gnu.org>
+
+ [cid] Fix error code.
+
+ * src/cid/cidparse.c (cid_parser_new): Do it.
+
+2011-11-26 Werner Lemberg <wl@gnu.org>
+
+ [cff] Fix error code.
+
+ * src/cff/cffload.c (cff_font_load): Do it.
+
+2011-11-26 Werner Lemberg <wl@gnu.org>
+
+ Add new error code FT_Err_Missing_Module.
+
+ Previously, FreeType misleadingly returned
+ FT_Err_Unknown_File_Format if a module was missing (or a test was
+ missing completely).
+
+ * include/freetype/fterrdef.h (FT_Err_Missing_Module): Define.
+
+ * src/cff/cffobjs.c (cff_face_init), src/cff/cffdrivr.c
+ (cff_get_glyph_name), src/cid/cidobjs.c (cid_face_init),
+ src/sfnt/sfobjs.c (sfnt_init_face), src/truetype/ttobjs.c
+ (tt_face_init), src/type1/t1objs.c (T1_Face_Init),
+ src/type42/t42objs.c (T42_Face_Init, T42_Driver_Init): Updated.
+
+ * src/type1/t1afm.c (T1_Read_Metrics), src/type/t1objs.c
+ (T1_Face_Init), src/type42/t42objs.c (T42_Face_Init): Remove now
+ redundant test for `psaux'.
+
+2011-11-25 Werner Lemberg <wl@gnu.org>
+
+ [bdf] Add more error messages.
+
+ * src/bdf/bdflib.c (_bdf_set_default_spacing, _bdf_add_property):
+ Add line number argument.
+ Update all callers.
+ (ERRMSG5, ERRMSG6, ERRMSG7, ERRMSG8, ERRMSG9): New macros.
+ (_bdf_readstream, _bdf_set_default_spacing, _bdf_add_property,
+ _bdf_parse_glyphs, _bdf_parse_start): Add error messages.
+
+2011-11-24 Werner Lemberg <wl@gnu.org>
+
+ * include/freetype/fterrors.h: Remove dead code.
+
+2011-11-15 Werner Lemberg <wl@gnu.org>
+
+ * docs/releases: Updated.
+
+2011-11-15 Werner Lemberg <wl@gnu.org>
+
+ * Version 2.4.8 released.
+ =========================
+
+
+ Tag sources with `VER-2-4-8'.
+
+ * docs/CHANGES: Updated.
+
+ * docs/VERSION.DLL: Update documentation and bump version number to
+ 2.4.8.
+
+ * README, Jamfile (RefDoc),
+ builds/win32/vc2005/freetype.vcproj, builds/win32/vc2005/index.html,
+ builds/win32/vc2008/freetype.vcproj, builds/win32/vc2008/index.html,
+ builds/win32/vc2010/freetype.vcxproj, builds/win32/vc2010/index.html,
+ builds/win32/visualc/freetype.dsp,
+ builds/win32/visualc/freetype.vcproj,
+ builds/win32/visualc/index.html, builds/win32/visualce/freetype.dsp,
+ builds/win32/visualce/freetype.vcproj,
+ builds/win32/visualce/index.html,
+ builds/wince/vc2005-ce/freetype.vcproj,
+ builds/wince/vc2005-ce/index.html,
+ builds/wince/vc2008-ce/freetype.vcproj,
+ builds/wince/vc2008-ce/index.html: s/2.4.7/2.4.8/, s/247/248/.
+
+ * include/freetype/freetype.h (FREETYPE_PATCH): Set to 8.
+
+ * builds/unix/configure.raw (version_info): Set to 14:0:8.
+
+2011-11-13 Chris Liddell <chris.liddell@artifex.com>
+
+ Add FT_Get_PS_Font_Value() API.
+
+ This allows a Type 1 font face to be interrogated to retrieve most
+ of the dictionary keys (keys not relevant to FreeType's Type 1
+ interpreter are not available).
+
+ * include/freetype/internal/services/svpsinfo.h
+ (PS_GetFontValueFunc): New typedef.
+ (PSInfo): Add `ps_get_font_value'.
+ (FT_DEFINE_SERVICE_PSINFOREC): Updated.
+
+ * include/freetype/internal/t1types.h (T1_EncodingType): Moved to...
+ * include/freetype/t1tables.h: Here.
+ (PS_Dict_Keys): New enumeration.
+ (FT_Get_PS_Font_Value): New declaration.
+
+ * src/base/fttype1.c (FT_Get_PS_Font_Value): New function.
+
+ * src/type1/t1driver.c (t1_ps_get_font_value): This new function
+ does the real job.
+ (t1_service_ps_info): Add it.
+
+ * src/cff/cffdrivr.c (cff_service_ps_info), src/cid/cidriver.c
+ (cid_service_ps_info), src/type42/t42drivr.c (t42_service_ps_info):
+ Updated.
+
+2011-11-08 Braden Thomas <bthomas@apple.com>
+
+ [cid] Various loading fixes.
+
+ * src/cid/cidload.c (cid_load_keyword) <default>,
+ (parse_font_matrix, parse_expansion_factor): Correctly check number
+ of dictionaries.
+ (cid_read_subrs): Protect against invalid values of `num_subrs'.
+ Assure that the elements of the `offsets' array are ascending.
+
+2011-11-05 Werner Lemberg <wl@gnu.org>
+
+ * README: We use copyright ranges also.
+
+ According to
+
+ https://www.gnu.org/prep/maintain/html_node/Copyright-Notices.html
+
+ this should be mentioned explicitly.
+
+2011-10-30 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ [raccess] Supplement for previous fix.
+
+ * src/base/ftbase.h (raccess_rule_by_darwin_vfs): Do not declare
+ it on native Mac OS X.
+ * src/base/ftrfork.c (raccess_get_rule_type_from_rule_index):
+ Hide raccess_get_rule_type_from_rule_index() on native Mac OS X
+ too.
+
+2011-10-30 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ [raccess] Hide raccess_rule_by_darwin_vfs() on native Mac OS X.
+
+ * src/base/ftrfork.c (raccess_rule_by_darwin_vfs): Do not
+ compile on native Mac OS X because it is not used.
+
+2011-10-25 Werner Lemberg <wl@gnu.org>
+
+ [truetype] Fix MD instruction for twilight zone.
+
+ * src/truetype/ttinterp.c (Ins_MD): Without this fix, the MD
+ instruction applied to original coordinates of twilight points
+ always returns zero.
+
+2011-10-18 Werner Lemberg <wl@gnu.org>
+
+ * Version 2.4.7 released.
+ =========================
+
+
+ Tag sources with `VER-2-4-7'.
+
+ * docs/CHANGES: Updated.
+
+ * docs/VERSION.DLL: Update documentation and bump version number to
+ 2.4.7.
+
+ * README, Jamfile (RefDoc),
+ builds/win32/vc2005/freetype.vcproj, builds/win32/vc2005/index.html,
+ builds/win32/vc2008/freetype.vcproj, builds/win32/vc2008/index.html,
+ builds/win32/vc2010/freetype.vcxproj, builds/win32/vc2010/index.html,
+ builds/win32/visualc/freetype.dsp,
+ builds/win32/visualc/freetype.vcproj,
+ builds/win32/visualc/index.html, builds/win32/visualce/freetype.dsp,
+ builds/win32/visualce/freetype.vcproj,
+ builds/win32/visualce/index.html,
+ builds/wince/vc2005-ce/freetype.vcproj,
+ builds/wince/vc2005-ce/index.html,
+ builds/wince/vc2008-ce/freetype.vcproj,
+ builds/wince/vc2008-ce/index.html: s/2.4.6/2.4.7/, s/246/247/.
+
+ * include/freetype/freetype.h (FREETYPE_PATCH): Set to 7.
+
+ * builds/unix/configure.raw (version_info): Set to 13:2:7.
+
+2011-10-15 Kal Conley <kcconley@gmail.com>
+
+ Fix handling of transformations if no renderer is present.
+
+ * src/base/ftobjs.c (FT_Load_Glyph): Thinko.
+
+2011-10-15 Kal Conley <kcconley@gmail.com>
+
+ Fix conditions for autohinting.
+
+ * src/base/ftobjs.c (FT_Load_Glyph): Handle
+ FT_LOAD_IGNORE_TRANSFORM.
+
+2011-10-07 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ [gxvalid] Fix a bug to detect too large offset in morx table.
+
+ * src/gxvalid/gxvmorx2.c
+ (gxv_morx_subtable_type2_ligActionIndex_validate): Fix a bug
+ that too large positive offset cannot be detected.
+
+2011-10-01 Braden Thomas <bthomas@apple.com>
+
+ Handle some border cases.
+
+ * include/freetype/config/ftstdlib.h (FT_USHORT_MAX): New macro.
+
+ * src/base/ftbitmap.c (FT_Bitmap_Convert): Protect against invalid
+ value of `target->rows'.
+
+ * src/psaux/t1decode.c (t1_decoder_parse_charstrings): Add check for
+ flex start.
+
+ * src/raster/ftrend1.c (ft_raster1_render): Check `width' and
+ `height'.
+
+ * src/truetype/ttgxvar.c (TT_Vary_Get_Glyph_Deltas): Protect against
+ invalid values in `localpoints' array.
+
+2011-10-01 Werner Lemberg <wl@gnu.org>
+
+ [psnames] Handle zapfdingbats.
+ Problem reported by Nicolas Rougier <Nicolas.Rougier@inria.fr>.
+
+ * src/tools/glnames.py (adobe_glyph_list): Add data from AGL's
+ `zapfdingbats.txt' file.
+
+ * src/psnames/pstables.h: Regenerated.
+
+2011-09-27 Simon Bünzli <zeniko@gmail.com>
+
+ [type1] Fix Savannah bug #34189.
+
+ * src/type1/t1load.c (T1_Open_Face): Initialize
+ `face->len_buildchar'.
+
+2011-09-26 Werner Lemberg <wl@gnu.org>
+
+ [cff] Dump SIDs while tracing.
+
+ * src/cff/cffobjs.c (cff_face_init): Do it.
+
+ * src/cff/cffparse.c (cff_parser_run) [FT_DEBUG_LEVEL_TRACE]
+ <cff_kind_string>: Identify as SID.
+
+2011-09-17 Werner Lemberg <wl@gnu.org>
+
+ Remove unused FT_ALIGNMENT macro.
+
+ * builds/unix/ftconfig.in, builds/vms/ftconfig.h,
+ include/freetype/config/ftconfig.h: Do it.
+
+2011-09-17 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ [smooth] Slightly optimize conic and cubic flatteners.
+
+ * src/smooth/ftgrays.c (gray_render_conic, gray_render_cubic): Move
+ out some code from the main loop to speed it up.
+
+2011-09-11 Tomas Hoger <thoger@redhat.com>
+
+ Slightly improve LZW_CLEAR handling.
+
+ * src/lzw/ftzopen.c (ft_lzwstate_io) <FT_LZW_PHASE_CODE>:
+ Ensure that subsequent (modulo garbage byte(s)) LZW_CLEAR codes are
+ handled as clear codes. This also re-sets old_code and old_char to
+ predictable values, which is a little better than using `random'
+ ones if the code following LZW_CLEAR is invalid.
+
+2011-09-11 Tomas Hoger <thoger@redhat.com>
+
+ Add explicit LZW decompression stack size limit.
+
+ Stack larger than 1<<LZW_MAX_BITS is never needed if prefix table is
+ constructed correctly. It's even less than that, see e.g.
+ libarchive code comment for a better size upper bound:
+
+ http://code.google.com/p/libarchive/source/browse/trunk/libarchive/archive_read_support_filter_compress.c?r=3635#121
+
+ This patch adds explicit stack size limit, enforced when stack is
+ realloced.
+
+ An alternative is to ensure that code < state->prefix[code - 256]
+ when traversing prefix table. Such check is less efficient and
+ should not be required if prefix table is constructed correctly in
+ the first place.
+
+ * src/lzw/ftzopen.c (ft_lzwstate_stack_grow): Implement it.
+
+2011-09-11 Tomas Hoger <thoger@redhat.com>
+
+ Protect against loops in the prefix table.
+
+ LZW decompressor did not sufficiently check codes read from the
+ input LZW stream. A specially-crafted or corrupted input could
+ create a loop in the prefix table, which leads to memory usage
+ spikes, as there's no decompression stack size limit.
+
+ * src/lzw/ftzopen.c (ft_lzwstate_io) <FT_LZW_PHASE_START>: First
+ code in valid LZW stream must be 0..255.
+ <FT_LZW_PHASE_CODE>: In the special KwKwK case, code == free_ent,
+ code > free_ent is invalid.
+
+2011-09-09 Werner Lemberg <wl@gnu.org>
+
+ Better tracing of metrics.
+
+ * src/base/ftobjs.c (FT_Request_Size, FT_Select_Size): Decorate with
+ FT_TRACE.
+
+2011-09-07 Werner Lemberg <wl@gnu.org>
+
+ [cff] Fix Savannah bug #33816.
+
+ * src/cff/cfftypes.h (CFF_FontRecDictRec): New member
+ `has_font_matrix'.
+ * src/cff/cffparse.c (cff_parse_font_matrix): Set it.
+ Update tracing output.
+ * src/cff/cffobjs.c (cff_face_init): Use it so that the heuristics
+ can be removed.
+
+2011-08-30 Werner Lemberg <wl@gnu.org>
+
+ Better tracing of metrics.
+
+ * src/base/ftobjs.c (FT_Select_Metrics, FT_Request_Metrics):
+ Decorate with FT_TRACE.
+
+2011-08-25 Werner Lemberg <wl@gnu.org>
+
+ [cff] Better tracing of the parsing process.
+
+ * src/cff/cffload.c (cff_subfont_load, cff_font_load): Decorate with
+ FT_TRACE.
+
+ * src/cff/cffparse.c (cff_parse_font_matrix, cff_parse_font_bbox,
+ cff_parse_private_dict, cff_parse_cid_ros): Updated.
+ (CFF_FIELD_NUM, CFF_FIELD_FIXED, CFF_FIELD_FIXED_1000,
+ CFF_FIELD_STRING, CFF_FIELD_BOOL, CFF_FIELD_CALLBACK, CFF_FIELD,
+ CFF_FIELD_DELTA): Add argument for ID.
+ (cff_parser_run): Decorate with FT_TRACE.
+
+ * src/cff/cffparse.h (CFF_Field_Handler) [FT_DEBUG_LEVEL_TRACE]: Add
+ `id' member.
+
+ * src/cff/cfftoken.h: Add IDs to all fields.
+
+2011-08-16 Werner Lemberg <wl@gnu.org>
+
+ Fix Savannah bug #34022.
+
+ * README, docs/INSTALL: Remove references to UPGRADE.UNIX.
+
+2011-08-15 Werner Lemberg <wl@gnu.org>
+
+ Fix Savannah bug #34018.
+
+ * docs/UPGRADE.UNIX: Removed. Obsolete.
+
+2011-08-15 David Bevan <david.bevan@pb.com>
+
+ Fix Savannah bug #33992.
+
+ * src/base/ftstroke.c (FT_Stroker_ParseOutline): Fix border case.
+
+2011-08-12 Werner Lemberg <wl@gnu.org
+
+ [truetype] Fix degenerate case in S{P,F,DP}VTL opcodes.
+
+ * src/truetype/ttinterp.c (Ins_SxVTL): Handle p1 == p2 specially.
+ (Ins_SDPVTL): Handle v1 == v2 specially.
+
+2011-08-09 Werner Lemberg <wl@gnu.org>
+
+ [cff] Fix Savannah bug #33975.
+
+ * src/cff/cffparse.c (cff_parse_font_matrix): Fix typo.
+
+2011-07-29 Werner Lemberg <wl@gnu.org>
+
+ * Version 2.4.6 released.
+ =========================
+
+
+ Tag sources with `VER-2-4-6'.
+
+ * docs/CHANGES: Updated.
+
+ * docs/VERSION.DLL: Update documentation and bump version number to
+ 2.4.6.
+
+ * README, Jamfile (RefDoc),
+ builds/win32/vc2005/freetype.vcproj, builds/win32/vc2005/index.html,
+ builds/win32/vc2008/freetype.vcproj, builds/win32/vc2008/index.html,
+ builds/win32/vc2010/freetype.vcxproj, builds/win32/vc2010/index.html,
+ builds/win32/visualc/freetype.dsp,
+ builds/win32/visualc/freetype.vcproj,
+ builds/win32/visualc/index.html, builds/win32/visualce/freetype.dsp,
+ builds/win32/visualce/freetype.vcproj,
+ builds/win32/visualce/index.html,
+ builds/wince/vc2005-ce/freetype.vcproj,
+ builds/wince/vc2005-ce/index.html,
+ builds/wince/vc2008-ce/freetype.vcproj,
+ builds/wince/vc2008-ce/index.html: s/2.4.5/2.4.6/, s/245/246/.
+
+ * include/freetype/freetype.h (FREETYPE_PATCH): Set to 6.
+
+ * builds/unix/configure.raw (version_info): Set to 13:1:7.
+
+2011-07-29 Werner Lemberg <wl@gnu.org>
+
+ [cff] Add some more tracing infos.
+
+ * src/cff/cffparse.c (cff_parse_font_matrix, cff_parse_font_bbox,
+ cff_parse_cid_ros): Add tracing.
+
+2011-07-22 Dirk Müller <dmueller@suse.de>
+
+ [psaux, type1] Fix null pointer dereferences.
+
+ Found with font fuzzying.
+
+ * src/psaux/t1decode.c (t1_decoder_parse_charstrings): Check
+ `decoder->buildchar'.
+
+ * src/type1/t1load.c (t1_load_keyword): Check `blend->num_designs'.
+
+2011-07-20 Chris Morgan <cmorgan@cybexintl.com>
+
+ Add FT_CONFIG_OPTION_DISABLE_STREAM_SUPPORT.
+
+ Useful for embedded systems which don't need file stream support.
+
+ * src/base/ftsystem.c, src/base/ftobjs.c (FT_Stream_New): Implement
+ it.
+
+2011-07-20 Elton Chung <elton328@gmail.com>
+
+ * src/base/ftpatent.c (FT_Face_SetUnpatentedHinting): Fix typo.
+
+2011-07-16 Steven Chu <steven.f.chu@gmail.com>
+
+ [truetype] Fix metrics on size request for scalable fonts.
+
+ * src/truetype/ttdriver.c (tt_size_request): Fix copying metrics
+ from TT_Size to FT_Size if scalable font.
+
+ See
+
+ https://lists.gnu.org/archive/html/freetype-devel/2011-07/msg00049.html
+
+ for some comparison images.
+
+2011-07-14 Matthias Drochner <M.Drochner@fz-juelich.de>.
+
+ [psaux] Fix potential sign extension problems.
+
+ When shifting right a signed value, it is not defined by the
+ C standard whether one gets a sign extension or not. Use a macro to
+ do an explicit cast from a signed short (assuming that this is
+ 16bit) to an int.
+
+ * src/psaux/t1decode.c (Fix2Int): New macro.
+ Use it where appropriate.
+
+2011-07-14 Werner Lemberg <wl@gnu.org>
+
+ * src/psaux/t1decode.c (t1_decoder_parse_charstrings)
+ <op_callothersubr>: Better handling of subroutine index 0.
+ From Matthias Drochner <M.Drochner@fz-juelich.de>.
+
+2011-07-10 Алексей Подтележников <apodtele@gmail.com>
+
+ [psaux] Optimize previous commit.
+
+ * src/psaux/t1decode.c (t1_decoder_parse_charstrings)
+ <op_callothersubr>: Move error check down to avoid testing twice for
+ good cases.
+
+2011-07-08 Werner Lemberg <wl@gnu.org>
+
+ [psaux] Add better argument check for `callothersubr'.
+
+ * src/psaux/t1decode.c (t1_decoder_parse_charstrings)
+ <op_callothersubr>: Reject negative arguments.
+
+2011-07-07 Werner Lemberg <wl@gnu.org>
+
+ [sfnt] Try harder to find non-zero values for ascender and descender.
+
+ * src/sfnt/sfobjs.c (sfnt_load_face): Consult `OS/2' table in case
+ the `hhea' table's values are zero.
+
+2011-07-03 Werner Lemberg <wl@gnu.org>
+
+ Fix previous commit.
+
+ We want to unset FT_FACE_FLAG_SCALABLE only if there are bitmap
+ strikes in the font.
+
+ * src/truetype/ttobjs.c (tt_face_init): Implement it.
+
+ * docs/CHANGES: Updated.
+
+2011-07-02 Just Fill Bugs <mozbugbox@yahoo.com.au>
+
+ [truetype] Fix Savannah bug #33246.
+
+ * src/truetype/ttobjs.c (tt_check_single_notdef): New function.
+ (tt_face_init): Use it to test FT_FACE_FLAG_SCALABLE.
+
+2011-07-02 Werner Lemberg <wl@gnu.org>
+
+ * docs/CHANGES: Updated.
+
+2011-07-02 David Bevan <david.bevan@pb.com>
+
+ [ftstroke] Major revision.
+
+ The main problems
+ -----------------
+
+ o If FT_STROKER_LINEJOIN_BEVEL was specified, unlimited miter
+ joins (not bevel joins) were generated. Indeed, the meanings of
+ `miter' and `bevel' were incorrectly reversed (consistently) in
+ both the code and comments.
+
+ o The way bevel joins were constructed (whether specified
+ explicitly, or created as a result of exceeding the miter limit)
+ did not match what is required for stroked text in PostScript or
+ PDF.
+
+ The main fixes
+ --------------
+
+ o The behaviour of FT_STROKER_LINEJOIN_BEVEL has been corrected.
+
+ o A new line join style, FT_STROKER_LINEJOIN_MITER_FIXED, has been
+ introduced to support PostScript and PDF miter joins.
+
+ o FT_STROKER_LINEJOIN_MITER_VARIABLE has been introduced as an
+ alias for FT_STROKER_LINEJOIN_MITER.
+
+ Additionally, a variety of stroking errors have been fixed. These
+ would cause various artifacts (including points `at infinity'),
+ especially when stroking poor quality fonts.
+
+ See
+
+ https://lists.gnu.org/archive/html/freetype-devel/2011-07/msg00001.html
+
+ for example documents. The FreeType stroker now produces results
+ very similar to that produced by GhostScript and Distiller for these
+ fonts.
+
+ Other problems
+ --------------
+
+ The following problems have been resolved:
+
+ o Inside corners could be generated incorrectly. Intersecting the
+ inside corner could cause a missing triangular area and other
+ effects.
+
+ The intersection point can only be used if the join is between
+ two lines and both lines are long enough. The `optimization'
+ condition in `ft_stroker_inside' has been corrected; this
+ requires the line length to be passed into various functions and
+ stored in `FT_StrokerRec'.
+
+ o Incorrect cubic curves could be generated. The angle
+ calculations in `FT_Stroker_CubicTo' have been corrected to
+ handle the case of the curve crossing the +/-PI direction.
+
+ o If the border radius was greater than the radius of curvature of
+ a curve, then the negative sector would end up outside (not
+ inside) the border. This situation is now recognized and the
+ negative sector is circumnavigated in the opposite direction.
+ (If round line joins are being used, this code is disabled
+ because the line join will always cover the negative sector.)
+
+ o When a curve is split, the arcs may not join smoothly (especially
+ if the curve turns sharply back on itself). Changes in
+ direction between adjacent arcs were not handled. A round
+ corner is now added if the deviation from one arc to the next is
+ greater than a suitable threshold.
+
+ o The current direction wasn't retained if a the outline contained
+ a zero length lineto or a curve that was determined to be
+ `basically a point'. This could cause a spurious join to be
+ added.
+
+ o Cubics with close control points could be mishandled. All eight
+ cases are now distinguished correctly.
+
+ Other improvements
+ ------------------
+
+ o Borders for cubic curves could be too `flat'.
+ FT_SMALL_CUBIC_THRESHOLD has been reduced a little to prevent
+ this.
+
+ o The handling and use of movable points has been simplified a
+ little.
+
+ o Various values are now computed only if the results are actually
+ needed.
+
+ o The directions of the outer and inner borders have been swapped,
+ as recommended by Graham Asher.
+
+ * src/base/ftstroke.c: Revised.
+ * include/freetype/ftstroke.h: Updated.
+
+2011-06-30 İsmail Dönmez <ismail@namtrac.org>
+
+ * builds/toplevel.mk: We use git, not CVS, thus skip `.gitignore'.
+
+2011-06-29 Werner Lemberg <wl@gnu.org>
+
+ [bdf] Fix Savannah bug #33663.
+
+ * src/bdf/bdflib.c (_bdf_parse_glyphs): Handle negative values for
+ ENCODING correctly.
+
+ * docs/CHANGES: Document it.
+
+2011-06-24 Werner Lemberg <wl@gnu.org>
+
+ * Version 2.4.5 released.
+ =========================
+
+
+ Tag sources with `VER-2-4-5'.
+
+ * docs/CHANGES: Updated.
+
+ * docs/VERSION.DLL: Update documentation and bump version number to
+ 2.4.5
+
+ * README, Jamfile (RefDoc),
+ builds/win32/vc2005/freetype.vcproj, builds/win32/vc2005/index.html,
+ builds/win32/vc2008/freetype.vcproj, builds/win32/vc2008/index.html,
+ builds/win32/vc2010/freetype.vcxproj, builds/win32/vc2010/index.html,
+ builds/win32/visualc/freetype.dsp,
+ builds/win32/visualc/freetype.vcproj,
+ builds/win32/visualc/index.html, builds/win32/visualce/freetype.dsp,
+ builds/win32/visualce/freetype.vcproj,
+ builds/win32/visualce/index.html,
+ builds/wince/vc2005-ce/freetype.vcproj,
+ builds/wince/vc2005-ce/index.html,
+ builds/wince/vc2008-ce/freetype.vcproj,
+ builds/wince/vc2008-ce/index.html: s/2.4.4/2.4.5/, s/244/245/.
+
+ * include/freetype/freetype.h (FREETYPE_PATCH): Set to 5.
+
+ * builds/unix/configure.raw (version_info): Set to 13:0:7.
+
+2011-06-20 Werner Lemberg <wl@gnu.org>
+
+ * src/autofit/aflatin.c (af_latin_metrics_scale_dim): Fix change
+ from 2011-05-04.
+
+2011-06-19 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ [gxvalid] make the `prop' validation tracing verbose.
+
+ * src/gxvalid/gxvprop.c: Add tracing messages for errors.
+
+2011-06-19 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ [autogen.sh] Reflect environment variable LIBTOOLIZE.
+
+2011-06-18 Werner Lemberg <wl@gnu.org>
+
+ Update license documentation.
+
+ * docs/GPL.TXT: Renamed to...
+ * docs/GPLv2.TXT: This.
+
+ * docs/LICENSE.TXT: Updated.
+
+2011-06-14 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ Fix g++4.6 compiler warnings in module drivers.
+
+ The background is same with previous commit.
+
+ * src/truetype/ttgxvar.c (ft_var_readpackedpoints):
+ Init `points'. (TT_Vary_Get_Glyph_Deltas): Init
+ `delta_xy'. (TT_Get_MM_Var): Init `mmvar'.
+ * src/type1/t1load.c (T1_Get_MM_Var): Ditto.
+ * src/cff/cffdrivr.c (cff_ps_get_font_info): Init
+ `font_info'.
+ * src/cff/cffload.c (cff_index_get_pointers): Init `t'.
+ (cff_font_load): Init `sub'.
+ * src/cff/cffobjs.c (cff_size_init): Init `internal'.
+ (cff_face_init): Init `cff'.
+ * src/pfr/pfrload.c (pfr_extra_item_load_stem_snaps):
+ Init `snaps'.
+ * src/pcf/pcfread.c (pcf_get_properties): Init `properties'.
+ (pcf_get_bitmaps): Init `offsets'. (pcf_get_encodings):
+ Init `tmpEncoding'.
+ * src/sfnt/ttload.c (tt_face_load_gasp): Init `gaspranges'.
+ * src/sfnt/ttsbit.c (Load_SBit_Image): Init `components'.
+ * src/cache/ftcmru.c (FTC_MruList_New): Init `node'.
+ * src/gzip/ftgzip.c (FT_Stream_OpenGzip): Init `zip' and
+ `zip_buff'.
+ * src/lzw/ftlzw.c (FT_Stream_OpenLZW): Init `zip'.
+ * src/bzip2/ftbzip2.c (FT_Stream_OpenBzip2): Init `zip'.
+
+2011-06-14 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ [base] Fix g++4.6 compiler warnings in src/base/*.c.
+
+ Passing uninitialized pointer to FT_NEW() families is
+ not problematic theoretically (as far as the returned
+ pointer is checked before writing), but g++4.6 dislikes
+ it and warns by -Wuninitialized. Initialize them by NULL.
+
+ * src/base/ftobjs.c (FT_Stream_New): Init `stream'.
+ (new_memory_stream): Ditto.
+ (FT_New_GlyphSlot): Init `slot'.
+ (FT_CMap_New): Init `cmap'.
+ (open_face_PS_from_sfnt_stream): Init `sfnt_ps'.
+ (Mac_Read_POST_Resource): Init `pfb_data'.
+ (Mac_Read_sfnt_Resource): Init `sfnt_data'.
+ * src/base/ftrfork.c (FT_Raccess_Get_DataOffsets):
+ Init `offsets_internal' and `ref'.
+ (raccess_guess_darwin_hfsplus): Init `newpath'.
+ (raccess_guess_darwin_newvfs): Ditto.
+ * src/base/ftbitmap.c (ft_bitmap_assure_buffer):
+ Init `buffer'.
+ * src/base/ftstroke.c (FT_Stroker_New): Init `stroker'.
+
+2011-06-14 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ [gxvalid] Cleanup.
+
+ Some invalid, overrunning, unrecommended non-zero values
+ are cared in paranoid validation mode only. There are
+ many lines looking like:
+
+ if ( valid->root->level >= FT_VALIDATE_PARANOID )
+ FT_INVALID_xxx;
+
+ To simplify them, GXV_SET_ERR_IF_PARANOID( err ) is
+ introduced for more paranoid validation in future.
+
+ * src/gxvalid/gxvcommn.h (IS_PARANOID_VALIDATION):
+ New macro to assure valid->root->level is more or
+ equal to FT_VALIDATE_PARANOID. (GXV_SET_ERR_IF_PARANOID):
+ New macro to raise an error if in paranoid validation.
+ * src/gxvalid/gxvcommn.c: Use GXV_SET_ERR_IF_PARANOID().
+ * src/gxvalid/gxvfeat.c: Ditto.
+ * src/gxvalid/gxvjust.c: Ditto.
+ * src/gxvalid/gxvkern.c: Ditto.
+ * src/gxvalid/gxvmort.c: Ditto.
+ * src/gxvalid/gxvmort0.c: Ditto.
+ * src/gxvalid/gxvmort1.c: Ditto.
+ * src/gxvalid/gxvmort2.c: Ditto.
+ * src/gxvalid/gxvmorx1.c: Ditto.
+ * src/gxvalid/gxvmorx2.c: Ditto.
+
+2011-06-14 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ [gxvalid] Fix gcc4.6 compiler warnings in gxvtrak.c.
+
+ * src/gxvalid/gxvtrak.c (gxv_trak_trackTable_validate):
+ Check different entries pointing same tracking value.
+ (gxv_trak_validate): Remove unused variable `table_size'.
+
+2011-06-14 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ [gxvalid] Fix gcc4.6 compiler warnings in gxvmorx*.c.
+
+ * src/gxvalid/gxvmorx.c (gxv_morx_subtables_validate):
+ Conditionalize unvalidated variable `subFeatureFlags'.
+ (gxv_morx_chain_validate): Conditionalize unvalidated
+ variable `defaultFlags'.
+
+ * src/gxvalid/gxvmorx0.c
+ (gxv_morx_subtable_type0_entry_validate):
+ Conditionalize unvalidated variables; `markFirst',
+ `dontAdvance', `markLast', `verb'.
+
+ * src/gxvalid/gxvmorx1.c
+ (gxv_morx_subtable_type1_entry_validate): Conditionalize
+ unvalidated variables; `setMark', `dontAdvance'.
+
+ * src/gxvalid/gxvmorx2.c
+ (gxv_morx_subtable_type2_ligActionOffset_validate):
+ Conditionalize unvalidated variables; `last', `store'.
+ Checking for overrunning offset is added.
+ (gxv_morx_subtable_type2_entry_validate):
+ Conditionalize unvalidated variables; `setComponent',
+ `dontAdvance', `performAction'.
+ (gxv_morx_subtable_type2_ligatureTable_validate):
+ Check if the GID for ligature does not exceed the
+ max GID in `maxp' table.
+
+ * src/gxvalid/gxvmort5.c
+ (gxv_morx_subtable_type5_InsertList_validate):
+ Conditionalize unvalidated loading of `insert_glyphID'
+ array. (gxv_morx_subtable_type5_entry_validate):
+ Conditionalize unvalidated variables; `setMark',
+ `dontAdvance', `currentIsKashidaLike',
+ `markedIsKashidaLike', `currentInsertBefore',
+ `markedInsertBefore'.
+
+2011-06-14 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ [gxvalid] Fix gcc4.6 compiler warnings in gxvmort*.c.
+
+ * src/gxvalid/gxvmort.c (gxv_mort_subtables_validate):
+ Conditionalize unvalidated variable `subFeatureFlags'.
+ (gxv_mort_chain_validate): Conditionalize unvalidated
+ variable `defaultFlags'.
+
+ * src/gxvalid/gxvmort0.c
+ (gxv_mort_subtable_type0_entry_validate): Check the
+ conflict of the marks for the glyphs.
+
+ * src/gxvalid/gxvmort1.c
+ (gxv_mort_subtable_type1_offset_to_subst_validate):
+ Local variables `min_gid', `max_gid' are replaced by
+ variables in the validator.
+ (gxv_mort_subtable_type1_entry_validate): Conditionalize
+ unvalidated variables; `setMark', `dontAdvance'.
+ (gxv_mort_subtable_type1_substTable_validate):
+ Validate the GID by the min/max GIDs in the validator.
+
+ * src/gxvalid/gxvmort2.c
+ (gxv_mort_subtable_type2_ligActionOffset_validate):
+ Conditionalize unvalidated variables; `last', `store'.
+ Checking for overrunning offset is added.
+ (gxv_mort_subtable_type2_entry_validate):
+ Conditionalize unvalidated variables; `setComponent',
+ `dontAdvance'.
+ (gxv_mort_subtable_type2_ligatureTable_validate):
+ Check if the GID for ligature does not exceed the
+ max GID in `maxp' table.
+
+ * src/gxvalid/gxvmort5.c
+ (gxv_mort_subtable_type5_InsertList_validate):
+ Conditionalize unvalidated loading of `insert_glyphID'
+ array. (gxv_mort_subtable_type5_entry_validate):
+ Conditionalize unvalidated variables; `setMark',
+ `dontAdvance', `currentIsKashidaLike',
+ `markedIsKashidaLike', `currentInsertBefore',
+ `markedInsertBefore'.
+
+2011-06-14 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ [gxvalid] Fix gcc4.6 compiler warnings in gxvkern.c.
+
+ * src/gxvalid/gxvkern.c
+ (gxv_kern_subtable_fmt0_pairs_validate): Conditionalize
+ unvalidated variable `kernValue'.
+ (gxv_kern_subtable_fmt1_entry_validate): Conditionalize
+ unvalidated variables; `push', `dontAdvance', `kernAction',
+ `kernValue'.
+ (gxv_kern_coverage_new_apple_validate): Conditionalize
+ trace-only variables; `kernVertical', `kernCrossStream',
+ `kernVariation'.
+ (gxv_kern_coverage_classic_apple_validate): Conditionalize
+ trace-only variables; `horizontal', `cross_stream'.
+ (gxv_kern_coverage_classic_microsoft_validate):
+ Conditionalize trace-only variables; `horizontal',
+ `minimum', `cross_stream', `override'.
+ (gxv_kern_subtable_validate): Conditionalize trace-only
+ variables; `version', `tupleIndex'.
+
+2011-06-14 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ [gxvalid] Fix gcc4.6 compiler warnings in gxvjust.c.
+
+ * src/gxvalid/gxvjust.c (gxv_just_check_max_gid):
+ New function to unify the checks of too large GID.
+ (gxv_just_wdp_entry_validate): Conditionalize unvalidated
+ variables; `beforeGrowLimit', `beforeShrinkGrowLimit',
+ `afterGrowLimit', `afterShrinkGrowLimit', `growFlags',
+ `shrinkFlags'. Additional check for non-zero values in
+ unused storage `justClass' is added.
+ (gxv_just_actSubrecord_type0_validate): Conditionalize
+ unvalidated variable `order'. GID is checked by
+ gxv_just_check_max_gid(). Additional check for upside-down
+ relationship between `lowerLimit' and `upperLimit' is added.
+ (gxv_just_actSubrecord_type1_validate): GID is checked by
+ gxv_just_check_max_gid().
+ (gxv_just_actSubrecord_type2_validate): Conditionalize
+ unvalidated variable `substThreshhold'. GID is checked by
+ gxv_just_check_max_gid().
+ (gxv_just_actSubrecord_type5_validate): GID is checked by
+ gxv_just_check_max_gid().
+ (gxv_just_classTable_entry_validate): Conditionalize
+ unvalidated variables; `setMark', `dontAdvance',
+ `markClass', `currentClass'.
+
+2011-06-14 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ [gxvalid] Preparation to fix gcc4.6 compiler warnings.
+
+ * src/gxvalid/gxvcommn.h (GXV_LOAD_TRACE_VARS): New macro to
+ conditionalize the variable which is only used for trace messages.
+ Automatically set by FT_DEBUG_LEVEL_TRACE.
+ (GXV_LOAD_UNUSED_VARS): New macro to conditionalize the loading of
+ unvalidated variables. Undefined by default to calm gcc4.6 warning.
+ (GXV_ValidatorRec.{min_gid,max_gid}): New variables to hold defined
+ GID ranges, for the comparison of GID ranges in different subtables.
+
+2011-06-08 Werner Lemberg <wl@gnu.org>
+
+ [autofit] Remove unused structure member.
+
+ * src/autofit/afhints.h (AF_SegmentRec): Remove `contour'.
+ * src/autofit/aflatin.c (af_latin_hints_compute_segments),
+ src/autofit/aflatin2.c (af_latin2_hints_compute_segments): Updated.
+
+2011-05-30 Werner Lemberg <wl@gnu.org>
+
+ Fix g++ 4.6 compilation.
+
+ * src/autofit/afhints.c (af_glyph_hints_dump_segments,
+ af_glyph_hints_dump_edges): Use cast.
+
+2011-05-30 Werner Lemberg <wl@gnu.org>
+
+ Fix gcc 4.6 compiler warnings.
+
+ * src/autofit/afcjk.c (af_cjk_metrics_init_blues): Use casts and
+ remove unused variables.
+ * src/autofit/aflatin.c (af_latin_hints_compute_edges): Comment out
+ `up_dir'.
+ * src/smooth/ftsmooth.c (ft_smooth_render_generic): Use `height_org'
+ and `width_org' conditionalized.
+
+2011-05-28 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ [mac] Conditionalize the inclusion of `AvailabilityMacros.h'.
+
+ The native SDK on earliest Mac OS X (10.0-10.1) did not have
+ `AvailabilityMacros.h'. To prevent the inclusion of missing
+ header file, ECANCELED (introduced in 10.2) in POSIX header
+ file <errno.h> is checked to detect the system version.
+
+ * include/freetype/config/ftconfig.h: Conditionalize the
+ inclusion of `AvailabilityMacros.h'.
+ * builds/unix/ftconfig.in: Ditto.
+ * builds/vms/ftconfig.h: Ditto.
+
+2011-05-27 Werner Lemberg <wl@gnu.org>
+
+ [autofit] Improve tracing of hinting process.
+
+ * src/autofit/aflatin.c (af_latin_hint_edges): Add tracing message
+ `ADJUST'.
+
+2011-05-26 Werner Lemberg <wl@gnu.org>
+
+ [autofit] Fix trace message.
+
+ * src/autofit/aflatin.c (af_latin_hint_edges): Show correct value in
+ tracing message.
+
+2011-05-24 Daniel Zimmermann <netzimme@googlemail.com>
+
+ Reduce warnings for MS Visual Studio 2010.
+
+ * src/autofit/afhints.c (af_glyph_hints_get_num_segments,
+ af_glyph_hints_get_segment_offset) [!FT_DEBUG_AUTOFIT]: Provide
+ return value.
+ * src/cff/cffgload.c (cff_slot_load): Add cast.
+ * src/truetype/ttobjs.c (tt_check_trickyness_sfnt_ids): Use proper
+ loop variable type.
+
+2011-05-16 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ Automake component `builds/unix/install-sh' is removed.
+
+ * builds/unix/install-sh: Removed. It is not needed to
+ include repository, because autogen.sh installs it.
+ * builds/unix/.gitignore: Register install-sh.
+
+2011-05-12 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ [autofit] Make trace message for CJK bluezone more verbose.
+
+2011-05-08 Just Fill Bugs <mozbugbox@yahoo.com.au>
+ suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ [autofit] Add bluezones for CJK Ideographs.
+
+ To remove extrema of vertical strokes of CJK Ideographs at
+ low resolution and make the top and bottom horizontal stems
+ aligned, bluezones for CJK Ideographs are calculated from
+ sample glyphs. At present, vertical bluezones (bluezones
+ to align vertical stems) are disabled by default. For detail, see
+ https://lists.gnu.org/archive/html/freetype-devel/2011-04/msg00070.html
+ https://lists.gnu.org/archive/html/freetype-devel/2011-04/msg00092.html
+ https://lists.gnu.org/archive/html/freetype-devel/2011-05/msg00001.html
+
+ * include/freetype/internal/fttrace.h: New trace component `afcjk'.
+ * src/autofit/afcjk.h (AF_CJK{Blue,Axis,Metric}Rec): Add CJK version
+ for AF_Latin{Blue,Axis,Metric}Rec.
+ (af_cjk_metrics_check_digits): Ditto, shared with Indic module.
+ (af_cjk_metrics_init_widths): Ditto.
+ (af_cjk_metrics_init): Take AF_CJKMetric instead of AF_LatinMetric.
+ (af_cjk_metrics_scale): Ditto (declaration).
+ (af_cjk_hints_init): Ditto (declaration).
+ (af_cjk_hints_apply): Ditto (declaration).
+ * src/autofit/afcjk.c (af_cjk_metrics_scale): Ditto (body).
+ (af_cjk_hints_init): Ditto (body).
+ (af_cjk_hints_apply): Ditto (body).
+ (af_cjk_metrics_init_widths): Duplicate af_latin_metrics_init_widths.
+ (af_cjk_metrics_check_digits): Duplicate af_latin_metrics_check_digits.
+ (af_cjk_metrics_init): Call CJK bluezone initializer.
+ (af_cjk_metrics_scale_dim): Add code to scale bluezones.
+ (af_cjk_hints_compute_blue_edges): New function, CJK version of
+ af_latin_hints_compute_blue_edges.
+ (af_cjk_metrics_init_blues): New function, CJK version of
+ af_latin_metrics_init_blues.
+ (af_cjk_hint_edges): Add code to align the edge stems to blue zones.
+
+ * src/autofit/afindic.c (af_indic_metrics_init): Take AF_CJKMetric
+ instead of AF_LatinMetric, and initialize as af_cjk_metrics_init.
+ However bluezones are not initialized.
+ (af_indic_metrics_scale): Take AF_CJKMetric instead of AF_LatinMetric.
+ (af_indic_hints_init): Ditto.
+ (af_indic_hints_apply): Ditto.
+
+ * docs/CHANGES: Note about CJK bluezone support.
+
+2011-05-06 Werner Lemberg <wl@gnu.org>
+
+ [autofit] Remove unused struct member.
+
+ * src/autofit/aflatin.h (AF_LatinAxis): Remove `control_overshoot'.
+
+2011-05-04 Werner Lemberg <wl@gnu.org>
+
+ * src/autofit/aflatin.c (af_latin_metrics_scale_dim): Simplify.
+
+2011-05-01 Just Fill Bugs <mozbugbox@yahoo.com.au>
+ Werner Lemberg <wl@gnu.org>
+
+ [autofit] Add more debugging functions.
+
+ * src/autofit/afhints.c (af_glyph_hints_get_num_segments,
+ af_glyph_hints_get_segment_offset): New functions.
+
+2011-05-01 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ Add new option `--disable-mmap' to configure script.
+
+ * builds/unix/configure.raw: New option `--disable-mmap'
+ is added. It is for the developers to simulate the systems
+ without mmap() (like 4.3BSD, minix etc) on POSIX systems.
+
+2011-04-30 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ [truetype] Always recalculate the sfnt table checksum.
+
+ * src/truetype/ttobjs.c (tt_get_sfnt_checksum): Recalculate
+ the sfnt table checksum even if non-zero value is written in
+ the TrueType font header. Some bad PDF generators write
+ wrong values. For details see examples and benchmark tests
+ of the latency by recalculation:
+ https://lists.gnu.org/archive/html/freetype-devel/2011-04/msg00091.html
+ https://lists.gnu.org/archive/html/freetype-devel/2011-04/msg00096.html
+
+2011-04-30 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ [truetype] Register a set of tricky fonts, NEC FA family.
+
+ * src/truetype/ttobjs.c (tt_check_trickyness_sfnt_ids):
+ Add 8 checksum sets for NEC FA family. For the tricky fonts
+ without some tables (e.g. NEC FA fonts lack cvt table),
+ extra check is added to assure that a zero-length table in the
+ registry is not included in the font.
+
+2011-04-29 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ [truetype] Fix a bug in the sfnt table checksum getter.
+
+ * src/truetype/ttobjs.c (tt_get_sfnt_checksum): Check the
+ return value of face->goto_table() correctly.
+
+2011-04-28 Werner Lemberg <wl@gnu.org>
+
+ [autofit] Improve tracing messages.
+
+ * src/autofit/aflatin.c (af_latin_metrics_init_blues,
+ af_latin_align_linked_edge, af_latin_hint_edges): Do it.
+
+2011-04-25 Kan-Ru Chen <kanru@kanru.info>
+
+ [truetype] Always check the checksum to identify tricky fonts.
+
+ Because some PDF generators mangle the family name badly,
+ the trickyness check by the checksum should be invoked always.
+ For sample PDF, see
+ https://lists.gnu.org/archive/html/freetype-devel/2011-04/msg00073.html
+
+ * src/truetype/ttobjs.c (tt_check_trickyness): Even when
+ tt_check_trickyness_family() finds no trickyness,
+ tt_check_trickyness_sfnt_ids() is invoked.
+
+2011-04-22 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ [autofit] Add more Indic scripts with hanging baseline.
+
+ * src/autofit/afindic.c (af_indic_uniranges): Tibetan, Limbu,
+ Sundanese, Meetei Mayek, Syloti Nagri and Sharada scripts are
+ added.
+
+2011-04-21 Behdad Esfahbod <behdad@behdad.org>
+
+ Always ignore global advance.
+
+ This makes FT_LOAD_IGNORE_GLOBAL_ADVANCE_WIDTH redundant,
+ deprecated, and ignored. The new behavior is what every major user
+ of FreeType has been requesting. Global advance is broken in many
+ CJK fonts. Just ignoring it by default makes most sense.
+
+ * src/truetype/ttdriver.c (tt_get_advances),
+ src/truetype/ttgload.c (TT_Get_HMetrics, TT_Get_VMetrics,
+ tt_get_metrics, compute_glyph_metrics, TT_Load_Glyph),
+ src/truetype/ttgload.h: Implement it.
+
+ * docs/CHANGES: Updated.
+
+2011-04-21 rainy6144 <rainy6144@gmail.com>
+
+ [autofit] Blur CJK stems if too many to preserve their gaps.
+
+ When there are too many stems to preserve their gaps in the
+ rasterization of CJK Ideographs at a low resolution, blur the
+ stems instead of showing clumped stems. See
+ https://lists.gnu.org/archive/html/freetype-devel/2011-02/msg00011.html
+ https://lists.gnu.org/archive/html/freetype-devel/2011-04/msg00046.html
+ for details.
+
+ * src/autofit/afcjk.c (af_cjk_hint_edges): Store the position of
+ the previous stem by `has_last_stem' and `last_stem_pos', and skip
+ a stem if the current and previous stem are too near to preserve
+ the gap.
+
+2011-04-18 Werner Lemberg <wl@gnu.org>
+
+ Integrate autofitter debugging stuff.
+
+ * devel/ftoption.h, include/freetype/config/ftoption.h
+ (FT_DEBUG_AUTOFIT): New macro.
+
+ * include/freetype/internal/fttrace.h: Add trace components for
+ autofitter.
+
+ * src/autofit/aftypes.h (AF_LOG): Removed.
+ (_af_debug): Removed.
+
+ * src/autofit/*: s/AF_DEBUG/FT_DEBUG_AUTOFIT/.
+ s/AF_LOG/FT_TRACE5/.
+ Define FT_COMPONENT where necessary.
+
+2011-04-18 Werner Lemberg <wl@gnu.org>
+
+ Synchronize config files.
+
+ * builds/unix/ftconfig.in: Copy missing assembler routines from
+ include/freetype/config/ftconfig.h.
+
+2011-04-13 Werner Lemberg <wl@gnu.org>
+
+ [psaux] Fix Savannah bug #33047.
+
+ Patch submitted by anonymous reporter.
+
+ * src/psaux/psobjs.c (ps_table_add): Use FT_PtrDist for pointer
+ difference.
+
+2011-04-11 Kan-Ru Chen <kanru@kanru.info>
+
+ Fix reading of signed integers from files on 64bit platforms.
+
+ Previously, signed integers were converted to unsigned integers, but
+ this can fail because of sign extension. For example, 0xa344a1eb
+ becomes 0xffffffffa344a1eb.
+
+ We now do the reverse which is always correct because the integer
+ size is the same during the cast from unsigned to signed.
+
+ * include/freetype/internal/ftstream.h, src/base/ftstream.c
+ (FT_Stream_Get*): Replace with...
+ (FT_Stream_GetU*): Functions which read unsigned integers.
+ Update all macros accordingly.
+
+ * src/gzip/ftgzip.c (ft_gzip_get_uncompressed_size): Updated.
+
+2011-04-07 Werner Lemberg <wl@gnu.org>
+
+ Update Unicode ranges for CJK autofitter; in particular, add Hangul.
+
+ * src/autofit/afcjk.c (af_cjk_uniranges): Update to Unicode 6.0.
+
+2011-04-04 Werner Lemberg <wl@gnu.org>
+
+ Fix formatting of autofit debug dumps.
+
+ * src/autofit/afhints.c (af_glyph_hints_dump_points,
+ af_glyph_hints_dump_segments, af_glyph_hints_dump_edges): Adjust
+ column widths.
+
+2011-03-30 Werner Lemberg <wl@gnu.org>
+
+ * src/autofit/aftypes.h (AF_OutlineRec): Removed, unused.
+
+2011-03-24 Werner Lemberg <wl@gnu.org>
+
+ * src/cff/cfftypes.h (CFF_MAX_CID_FONTS): Increase to 256.
+ This limit is given on p. 37 of Adobe Technical Note #5014.
+
+2011-03-23 Werner Lemberg <wl@gnu.org>
+
+ * src/truetype/ttpload.c (tt_face_load_loca): Fix mismatch warning.
+
+2011-03-20 Werner Lemberg <wl@gnu.org>
+
+ * src/sfnt/sfobjs.c (sfnt_open_font): Check number of TTC subfonts.
+
+2011-03-19 Werner Lemberg <wl@gnu.org>
+
+ More C++ compilation fixes.
+
+ * src/autofit/afhints.c (af_glyph_hints_dump_points,
+ af_glyph_hints_dump_segments, af_glyph_hints_dump_edges)
+ [__cplusplus]: Protect with `extern "C"'.
+
+2011-03-18 Werner Lemberg <wl@gnu.org>
+
+ C++ compilation fixes.
+
+ * src/autofit/aflatin.c (af_latin_hints_apply), src/autofit/afcjk.c
+ (af_cjk_hints_apply): Use cast for `dim'.
+
+2011-03-17 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ A better fix for Savannah bug #32671.
+
+ * src/smooth/ftgrays.c (gray_render_conic): Clean up code and
+ replace WHILE loop with a more natural DO-WHILE construct.
+
+2011-03-16 Werner Lemberg <wl@gnu.org>.
+
+ * src/base/ftstroke.c (FT_StrokerRec): Remove unused `valid' field.
+ Suggested by Graham Asher.
+
+2011-03-09 Werner Lemberg <wl@gnu.org>
+
+ Make FT_Sfnt_Table_Info return the number of SFNT tables.
+
+ * src/sfnt/sfdriver.c (sfnt_table_info): Implement it.
+ * include/freetype/tttables.h: Update documentation.
+ * docs/CHANGES: Updated.
+
+2011-03-07 Bram Tassyns <bramt@enfocus.be>
+
+ [cff] Fix Savannah bug #27988.
+
+ * src/cff/cffobjs.c (remove_style): New function.
+ (cff_face_init): Use it to strip off the style part of the family
+ name.
+
+2011-03-07 Werner Lemberg <wl@gnu.org>
+
+ * docs/CHANGES: Updated.
+
+2011-03-07 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ Quick fix for Savannah bug #32671.
+
+ This isn't the optimal solution yet, but it restores the previous
+ rendering quality (more or less).
+
+ * src/smooth/ftgrays.c (gray_render_conic): Do more splitting.
+
+2011-03-06 Werner Lemberg <wl@gnu.org>
+
+ Fix autohinting fallback.
+
+ * src/base/ftobjs.c (FT_Load_Glyph): Assure that we only check TTFs,
+ ignoring CFF-based OTFs.
+
+2011-02-27 Werner Lemberg <wl@gnu.org>
+
+ Add AF_CONFIG_OPTION_USE_WARPER to control the autofit warper.
+
+ * devel/ftoption.h, include/freetype/config/ftoption.h
+ (AF_CONFIG_OPTION_USE_WARPER): New macro.
+ * src/autofit/aftypes.h (AF_USE_WARPER): Remove.
+
+ * src/autofit/*: s/AF_USE_WARPER/AF_CONFIG_OPTION_USE_WARPER/.
+
+ * src/autofit/afwarp.c [!AF_CONFIG_OPTION_USE_WARPER]: Replace dummy
+ variable assignment with a typedef.
+
+2011-02-26 Werner Lemberg <wl@gnu.org>
+
+ [autofit] Slight simplifications.
+
+ * src/autofit/aflatin.c (af_latin_hints_link_segments): Remove
+ test which always returns false.
+ (af_latin_hints_compute_blue_edges): Remove redundant assignment.
+
+2011-02-24 Werner Lemberg <wl@gnu.org>
+
+ * docs/PROBLEMS: Mention rendering differences on different
+ platforms.
+ Suggested and worded by Jason Owen <jason.a.owen@gmail.com>.
+
+2011-02-24 Werner Lemberg <wl@gnu.org>
+
+ [autofit] Comment out unused code.
+
+ * src/autofit/aflatin.c, src/autofit/aflatin2.c
+ (af_latin_hints_compute_edges): Do it.
+
+2011-02-24 Werner Lemberg <wl@gnu.org>
+
+ * src/autofit/afhints.h (AF_GlyphHints): Remove unused field.
+
+2011-02-20 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ [cache] Fix an off-by-one bug in `FTC_Manager_RemoveFaceID'.
+ Found by <ychen1392001@yahoo.com.cn>, see detail in
+
+ https://lists.gnu.org/archive/html/freetype/2011-01/msg00023.html
+
+ * src/cache/ftccache.c (FTC_Cache_RemoveFaceID): Check the node
+ buckets[cache->p + cache->mask] too.
+
+2011-02-19 Kevin Kofler <kevin.kofler@chello.at>
+
+ Fall back to autohinting if a TTF/OTF doesn't contain any bytecode.
+ This is Savannah patch #7471.
+
+ * src/base/ftobjs.c (FT_Load_Glyph): Implement it.
+
+2011-02-19 John Tytgat <John.Tytgat@esko.com>
+
+ [cff] Fix subset prefix removal.
+ This is Savannah patch #7465.
+
+ * src/cff/cffobjs.c (remove_subset_prefix): Update length after
+ subset prefix removal.
+
+2011-02-13 Bradley Grainger <bgrainger@logos.com>
+
+ Add inline assembly version of FT_MulFix for MSVC.
+
+ * include/freetype/config/ftconfig.h: Ported the FT_MulFix_i386
+ function from GNU inline assembly syntax (see #ifdef __GNUC__ block
+ above) to MASM syntax for Microsoft Visual C++.
+
+2011-02-13 Bradley Grainger <bgrainger@logos.com>
+
+ Add project and solution files in Visual Studio 2010 format.
+
+ * builds/win32/.gitignore: Ignore user-specific cache files.
+ * builds/win32/vc2010/: Add VS2010 project & solution files, created
+ by upgrading builds/win32/vc2008/freetype.vcproj.
+ * objs/.gitignore: Ignore Visual Studio output files.
+
+2011-02-01 Werner Lemberg <wl@gnu.org>
+
+ * src/autofit/afdummy.c: Include `aferrors.h'.
+ Problem reported by Chris Liddell <chris.liddell@artifex.com>.
+
+2011-02-01 Werner Lemberg <wl@gnu.org>
+
+ [cff] Ignore unknown operators in charstrings.
+ Patch suggested by Miles.Lau <sunliang_liu@foxitsoftware.com>.
+
+ * src/cff/cffgload.c (cff_decoder_parse_charstrings): Emit tracing
+ message for unknown operators and continue instead of exiting with a
+ syntax error.
+
+2011-02-01 Werner Lemberg <wl@gnu.org>
+
+ [truetype] FT_LOAD_PEDANTIC now affects `prep' and `fpgm' also.
+
+ * src/truetype/ttgload.c (tt_loader_init): Handle
+ `FT_LOAD_PEDANTIC'.
+ * src/truetype/ttobjs.c (tt_size_run_fpgm, tt_size_run_prep,
+ tt_size_init_bytecode, tt_size_ready_bytecode): New argument to
+ handle pedantic mode.
+ * src/truetype/ttobjs.h: Updated.
+
+2011-01-31 Werner Lemberg <wl@gnu.org>
+
+ [truetype] Protect jump instructions against endless loops.
+
+ * src/truetype/interp.c (DO_JROT, DO_JMPR, DO_JROF): Exit with error
+ if offset is zero.
+
+2011-01-31 Werner Lemberg <wl@gnu.org>
+
+ [truetype] Improve handling of invalid references.
+
+ * src/truetype/interp.c: Set even more TT_Err_Invalid_Reference
+ error codes only if pedantic hinting is active. At the same time,
+ try to provide sane values which hopefully allow useful
+ continuation. Exception to this is CALL and LOOPCALL – due to
+ possible stack corruption it is necessary to bail out.
+
+2011-01-31 Werner Lemberg <wl@gnu.org>
+
+ [truetype] Improve handling of stack underflow.
+
+ * src/truetype/ttinterp.c (TT_RunIns, Ins_FLIPPT, Ins_DELTAP,
+ Ins_DELTAC): Exit with error only if `pedantic_hinting' is set.
+ Otherwise, try to do something sane.
+
+2011-01-30 Werner Lemberg <wl@gnu.org>
+
+ * src/sfnt/ttmtx.c (tt_face_load_hmtx): Fix tracing message.
+
+2011-01-30 LIU Sun-Liang <sunliang_liu@foxitsoftware.com>
+
+ [truetype]: Fix behaviour of MIAP for invalid arguments.
+
+ * src/truetype/ttinterp.c (Ins_MIAP): Set reference points even in
+ case of error.
+
+2011-01-18 Werner Lemberg <wl@gnu.org>
+
+ [truetype] Fix handling of MIRP instruction.
+
+ Thanks to Greg Hitchcock who explained the issue.
+
+ * src/truetype/ttinterp.c (Ins_MIRP): Replace a `>=' operator with
+ `>' since the description in the specification is incorrect.
+ This fixes, for example, glyph `two' in font `Helvetica Neue LT Com
+ 65 medium' at 15ppem.
+
+2011-01-15 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ Fix ARM assembly code in include/freetype/config/ftconfig.h.
+
+ * include/freetype/config/ftconfig.h (FT_MulFix_arm):
+ Copy the maintained code from builds/unix/ftconfig.in.
+ Old GNU binutils could not accept the reduced syntax
+ `orr %0, %2, lsl #16'. Un-omitted syntax like RVCT,
+ `orr %0, %0, %2, lsl #16' is better. Reported by
+ Johnson Y. Yan. The bug report by Qt developers is
+ considered too.
+
+ https://bugreports.qt.io/browse/QTBUG-6521
+
+2011-01-15 Werner Lemberg <wl@gnu.org>
+
+ [raster] Make bbox handling the same as with Microsoft's rasterizer.
+
+ Right before B/W rasterizing, the bbox gets simply rounded to
+ integers. This fixes, for example, glyph `three' in font `Helvetica
+ Neue LT Com 65 Medium' at 11ppem.
+
+ Thanks to Greg Hitchcock who explained this behaviour.
+
+ * src/raster/ftrend1.c (ft_raster1_render): Implement it.
+
+2011-01-15 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ Copy -mcpu=* & -march=* options from CFLAGS to LDFLAGS.
+
+ * builds/unix/configure.raw: Consider recent gcc-standard
+ flags to specify architecture in CFLAGS & LDFLAGS
+ harmonization. Requested by Savannah bug #32114, to
+ support multilib feature of BuildRoot SDK correctly.
+
+2011-01-15 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ Fix off-by-one bug in CFLAGS & LDFLAGS harmonizer.
+
+ * builds/unix/configure.raw: Some important options that
+ included in CFLAGS but not in LDFLAGS are copied to
+ LDFLAGS, but the last option in CFLAGS was not checked.
+
+2011-01-13 Werner Lemberg <wl@gnu.org>
+
+ [raster] Add undocumented drop-out rule to the other bbox side also.
+
+ * src/raster/ftraster.c (Vertical_Sweep_Drop,
+ Horizontal_Sweep_Drop): Implement it.
+
+2011-01-13 Werner Lemberg <wl@gnu.org>
+
+ [raster] Reduce jitter value.
+
+ This catches a rendering problem with glyph `x' from Tahoma at
+ 10ppem. It seems that the increase of the precision in the change
+ from 2009-06-11 makes a larger jitter value unnecessary.
+
+ * src/raster/ftraster.c (Set_High_Precision): Implement it.
+
+2011-01-13 Werner Lemberg <wl@gnu.org>
+
+ [raster] Handle drop-outs at glyph borders according to Microsoft.
+
+ If a drop-out rule would switch on a pixel outside of the glyph's
+ bounding box, use the right (or top) pixel instead. This is an
+ undocumented feature, but some fonts like `Helvetica Neue LT Com 65
+ Medium' heavily rely on it.
+
+ Thanks to Greg Hitchcock who explained this behaviour.
+
+ * src/raster/ftraster.c (Vertical_Sweep_Drop,
+ Horizontal_Sweep_Drop): Implement it.
+
+2011-01-09 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ [cache] Fix Savannah bug #31923, patch drafted by Harsha.
+
+ When a node comparator changes the cached nodes during the
+ search of a node matching with queried properties, the
+ pointers obtained before the function should be updated to
+ prevent the dereference to freed or reallocated nodes.
+ To minimize the rescan of the linked list, the update is
+ executed when the comparator notifies the change of cached
+ nodes. This change depends previous change:
+ 38b272ffbbdaae276d636aec4ef84af407d16181
+
+ * src/cache/ftccache.h (FTC_CACHE_LOOKUP_CMP): Rescan the
+ top node if the cached nodes are changed.
+ * src/cache/ftccache.c (FTC_Cache_Lookup): Ditto.
+
+2011-01-09 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ [cache] Notice if a cache query induced the node list change.
+
+ Some node comparators (comparing the cache node contents and the
+ properties specified by the query) can flush the cache node to
+ prevent the cache inflation. The change may invalidate the pointers
+ to the node obtained before the node comparison, so it should be
+ noticed to the caller. The problem caused by the cache node
+ changing is reported by Harsha, see Savannah bug #31923.
+
+ * src/cache/ftccache.h (FTC_Node_CompareFunc): Add new argument
+ `FT_Bool* list_changed' to indicate the change of the cached nodes
+ to the caller.
+ (FTC_CACHE_LOOKUP_CMP): Watch the change of the cached nodes by
+ `_list_changed'.
+ (FTC_CACHE_TRYLOOP_END): Take new macro argument `_list_changed'
+ and update it when `FTC_Manager_FlushN' flushes any nodes.
+
+ * src/cache/ftccback.h (ftc_snode_compare): Updated to fit with new
+ FTC_Node_CompareFunc type.
+ (ftc_gnode_compare): Ditto.
+
+ * src/cache/ftcbasic.c: Include FT_INTERNAL_OBJECTS_H to use
+ TRUE/FALSE macros.
+ (ftc_basic_gnode_compare_faceid): New argument `FT_Bool*
+ list_changed' to indicate the change of the cache nodes (anyway, it
+ is always FALSE).
+
+ * src/cache/ftccmap.c: Include FT_INTERNAL_OBJECTS_H to use
+ TRUE/FALSE macros.
+ (ftc_cmap_node_compare): New argument `FT_Bool* list_changed' to
+ indicate the change of the cache nodes (anyway, it is always FALSE).
+ (ftc_cmap_node_remove_faceid): Ditto.
+
+ * src/cache/ftccache.c (FTC_Cache_NewNode): Pass a NULL pointer to
+ `FTC_CACHE_TRYLOOP_END', because the result is not needed.
+ (FTC_Cache_Lookup): Watch the change of the cache nodes by
+ `list_changed'.
+ (FTC_Cache_RemoveFaceID): Ditto.
+
+ * src/cache/ftcglyph.c: Include FT_INTERNAL_OBJECTS_H to use
+ TRUE/FALSE macros.
+ (ftc_gnode_compare): New argument `FT_Bool* list_changed' to
+ indicate the change of the cache nodes (anyway, it is always FALSE).
+ (FTC_GNode_Compare): New argument `FT_Bool* list_changed' to be
+ passed to `ftc_gnode_compare'.
+ * src/cache/ftcglyph.h (FTC_GNode_Compare): Ditto.
+
+ * src/cache/ftcsbits.c (ftc_snode_compare): New argument `FT_Bool*
+ list_changed' to indicate the change of the cache nodes, anyway. It
+ is updated by `FTC_CACHE_TRYLOOP'.
+ (FTC_SNode_Compare): New argument `FT_Bool* list_changed' to be
+ passed to `ftc_snode_compare'.
+ * src/cache/ftcsbits.h (FTC_SNode_Compare): Ditto.
+
+2011-01-09 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ [cache] Fit `FTC_GNode_Compare' to `FTC_Node_CompareFunc'.
+
+ * src/cache/ftcglyph.h (FTC_GNode_Compare): Add the 3rd
+ argument `FTC_Cache cache' to fit FTC_Node_CompareFunc
+ prototype.
+ * src/cache/ftcglyph.c (FTC_GNode_Compare): Ditto. Anyway,
+ `cache' is not used by its child `ftc_gnode_compare'.
+
+2011-01-09 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ [cache] Deduplicate the code to get the top node by a hash.
+
+ There are several duplicated code fragments getting the top node
+ from a cache by a given hash, like:
+
+ idx = hash & cache->mask;
+ if ( idx < cache->p )
+ idx = hash & ( cache->mask * 2 + 1 );
+ pnode = cache->buckets + idx;
+
+ To remove duplication, a cpp-macro to do same work
+ `FTC_NODE__TOP_FOR_HASH' is introduced. For non-inlined
+ configuration, non-`ftc_get_top_node_for_hash' is also introduced.
+
+ * src/cache/ftccache.h (FTC_NODE__TOP_FOR_HASH): Declare
+ and implement inlined version.
+ (FTC_CACHE_LOOKUP_CMP): Use `FTC_NODE__TOP_FOR_HASH'.
+ * src/cache/ftccache.c (ftc_get_top_node_for_hash): Non-inlined
+ version.
+ (ftc_node_hash_unlink): Use `FTC_NODE__TOP_FOR_HASH'.
+ (ftc_node_hash_link): Ditto.
+ (FTC_Cache_Lookup): Ditto.
+
+2011-01-09 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ [cache] inline-specific functions are conditionalized.
+
+ * src/cache/ftcglyph.c (FTC_GNode_Compare): Conditionalized for
+ inlined configuration. This function is a thin wrapper of
+ `ftc_gnode_compare' for inlined `FTC_CACHE_LOOKUP_CMP' (see
+ `nodecmp' argument). Under non-inlined configuration,
+ `ftc_gnode_compare' is invoked by `FTC_Cache_Lookup', via
+ `FTC_Cache->clazz.node_compare'.
+
+ * src/cache/ftcglyph.h (FTC_GNode_Compare): Ditto.
+ * src/cache/ftcsbits.c (FTC_SNode_Compare): Ditto, for
+ `ftc_snode_compare'.
+ * src/cache/ftcsbits.h (FTC_SNode_Compare): Ditto.
+
+2011-01-09 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ [cache] Correct a type mismatch under non-inlined config.
+
+ * src/cache/ftcglyph.h (FTC_GCACHE_LOOKUP_CMP): `FTC_GCache_Lookup'
+ takes the node via a pointer `FTC_Node*', differently from cpp-macro
+ `FTC_CACHE_LOOKUP_CMP'.
+
+2011-01-06 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ Update Jamfile to include Bzip2 support.
+
+ * Jamfile: Include src/bzip2 to project.
+ Comments for lzw, gzip, bzip2 are changed to clarify that
+ they are for compressed PCF fonts, not others.
+ (e.g. compressed BDF fonts are not supported yet)
+
+2011-01-05 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ Update Symbian project files to include Bzip2 support.
+
+ Currently, it provides `FT_Stream_OpenBzip2' that returns
+ unimplemented error always, to prevent unresolved symbol
+ error for the applications designed for Unix systems.
+
+ * builds/symbian/bld.inf: Include ftbzip2.h.
+ * builds/symbian/freetype.mmp: Include ftbzip2.c.
+
+2011-01-05 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ Update classic MacOS makefiles to include Bzip2 support.
+
+ Currently, it provides `FT_Stream_OpenBzip2' that returns
+ unimplemented error always, to prevent unresolved symbol
+ error for the applications designed for Unix systems.
+
+ * builds/mac/FreeType.m68k_cfm.make.txt: Include ftbzip2.c.o.
+ * builds/mac/FreeType.m68k_far.make.txt: Ditto.
+ * builds/mac/FreeType.ppc_carbon.make.txt: Include ftbzip2.c.x.
+ * builds/mac/FreeType.ppc_classic.make.txt: Ditto.
+
+2011-01-05 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ Update Amiga makefiles to include Bzip2 support.
+
+ Currently, it provides `FT_Stream_OpenBzip2' that returns
+ unimplemented error always, to prevent unresolved symbol
+ error for the applications designed for Unix systems.
+
+ * builds/amiga/makefile: Include bzip2.ppc.o built from ftbzip2.c.
+ * builds/amiga/makefile.os4: Include bzip2.o built from ftbzip2.c.
+ * builds/amiga/smakefile: Ditto.
+
+2011-01-05 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ Update pkg-config tools to reflect Bzip2 support.
+
+ * builds/unix/freetype-config.in: Include `-lbz2' to
+ --libs output, if built with Bzip2 support.
+ * builds/unix/freetype2.in: Ditto.
+
+2011-01-05 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ * builds/unix/configure.raw: Remove `SYSTEM_BZ2LIB' macro.
+
+ SYSTEM_ZLIB is used to switch the builtin zlib source
+ or system zlib source out of FreeType2. But ftbzip2
+ module has no builtin bzip2 library and always requires
+ system bzip2 library. Thus SYSTEM_BZ2LIB is always yes,
+ it is not used.
+
+2011-01-03 Werner Lemberg <wl@gnu.org>
+
+ */rules.mk: Handle `*pic.c' files.
+
+2010-12-31 Werner Lemberg <wl@gnu.org>
+
+ * src/cff/cfftypes.h (CFF_MAX_CID_FONTS): Increase to 64.
+ Problem reported by Tom Bishop <wenlin@wenlin.com>.
+
+2010-12-31 Werner Lemberg <wl@gnu.org>
+
+ Improve bzip2 support.
+
+ * include/freetype/ftmoderr.h: Add bzip2.
+
+ * docs/INSTALL.ANY, docs/CHANGES: Updated.
+
+ * src/pcf/README: Updated.
+ * include/freetype/internal/pcftypes.h: Obsolete, removed.
+
+2010-12-31 Joel Klinghed <the_jk@yahoo.com>
+
+ Add bzip2 compression support to handle *.pcf.bz2 files.
+
+ * builds/unix/configure.raw: Test for libbz2 library.
+
+ * devel/ftoption.h, include/freetype/config/ftoption.h
+ (FT_CONFIG_OPTION_USE_BZIP2): Define.
+ * include/freetype/config/ftheader.h (FT_BZIP2_H): Define.
+
+ * include/freetype/ftbzip2.h: New file.
+
+ * src/bzip2/*: New files.
+
+ * src/pcf/pcf.h: s/gzip_/comp_/.
+ * src/pcf/pcfdrivr.c: Include FT_BZIP2_H.
+ s/gzip_/comp_/.
+ (PCF_Face_Init): Handle bzip2 compressed files.
+
+ * docs/formats.txt, modules.cfg: Updated.
+
+2010-12-25 Harsha <mm.harsha@gmail.com>
+
+ Apply Savannah patch #7422.
+
+ If we encounter a space in a string then the sbit buffer is NULL,
+ height and width are 0s. So the check in ftc_snode_compare will
+ always pass for spaces (comparison with 255). Here the comments
+ above the condition are proper but the implementation is not. When
+ we create an snode I think it is the proper way to initialize the
+ width to 255 and then put a check for being equal to 255 in snode
+ compare function.
+
+ * src/cache/ftcsbits.c (FTC_SNode_New): Initialize sbit widths with
+ value 255.
+ (ftc_snode_compare): Fix condition.
+
+2010-12-13 Werner Lemberg <wl@gnu.org>
+
+ Fix parameter handling of `FT_Set_Renderer'.
+ Reported by Kirill Tishin <siege@bk.ru>.
+
+ * src/base/ftobjs.c (FT_Set_Renderer): Increment `parameters'.
+
+2010-12-09 Werner Lemberg <wl@gnu.org>
+
+ [cff] Allow `hlineto' and `vlineto' without arguments.
+
+ We simply ignore such instructions. This is invalid, but it doesn't
+ harm; and indeed, there exist such subsetted fonts in PDFs.
+
+ Reported by Albert Astals Cid <aacid@kde.org>.
+
+ * src/cff/cffgload.c (cff_decoder_parse_charstrings)
+ [cff_op_hlineto]: Ignore instruction if there aren't any arguments
+ on the stack.
+
+2010-11-28 Werner Lemberg <wl@gnu.org>
+
+ * Version 2.4.4 released.
+ =========================
+
+
+ Tag sources with `VER-2-4-4'.
+
+ * docs/CHANGES: Updated.
+
+ * docs/VERSION.DLL: Update documentation and bump version number to
+ 2.4.4
+
+ * README, Jamfile (RefDoc),
+ builds/win32/vc2005/freetype.vcproj, builds/win32/vc2005/index.html,
+ builds/win32/vc2008/freetype.vcproj, builds/win32/vc2008/index.html,
+ builds/win32/visualc/freetype.dsp,
+ builds/win32/visualc/freetype.vcproj,
+ builds/win32/visualc/index.html, builds/win32/visualce/freetype.dsp,
+ builds/win32/visualce/freetype.vcproj,
+ builds/win32/visualce/index.html,
+ builds/wince/vc2005-ce/freetype.vcproj,
+ builds/wince/vc2005-ce/index.html,
+ builds/wince/vc2008-ce/freetype.vcproj,
+ builds/wince/vc2008-ce/index.html: s/2.4.3/2.4.4/, s/243/244/.
+
+ * include/freetype/freetype.h (FREETYPE_PATCH): Set to 4.
+
+ * builds/unix/configure.raw (version_info): Set to 12:2:6.
+
+2010-11-28 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ [ftsmooth]: Minor code simplification.
+
+ * src/smooth/ftgrays (gray_render_cubic): Do only one comparison
+ instead of two.
+
+2010-11-26 Johnson Y. Yan <yinsen_yan@foxitsoftware.com>
+
+ [truetype] Better multi-threading support.
+
+ * src/truetype/ttinterp.c (TT_Load_Context): Reset glyph zone
+ references.
+
+2010-11-23 John Tytgat <John.Tytgat@esko.com>
+
+ * src/psaux/t1decode.c (t1_decoder_parse_charstring): Expand
+ start_point, check_points, add_point, add_point1, close_contour
+ macros.
+ Remove add_contour macro.
+ Return error code from t1_builder_start_point and
+ t1_builder_check_points when there was one (instead of returning 0).
+
+2010-11-22 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ [truetype] Identify the tricky fonts by cvt/fpgm/prep checksums.
+ Some Latin TrueType fonts are still expected to be unhinted.
+ Fix Savannah bug #31645.
+
+ * src/truetype/ttobjs.c (tt_check_trickyness): Divided to...
+ (tt_check_trickyness_family): this checking family name, and
+ (tt_check_trickyness_sfnt_ids): this checking cvt/fpgm/prep.
+ (tt_get_sfnt_checksum): Function to retrieve the sfnt checksum
+ for specified subtable even if cleared by lazy PDF generators.
+ (tt_synth_sfnt_checksum): Function to calculate the checksum.
+
+2010-11-18 Werner Lemberg <wl@gnu.org>
+
+ [truetype] Fix `loca' handling for inconsistent number of glyphs.
+ Reported by Johnson Y. Yan <yinsen_yan@foxitsoftware.com>.
+
+ * src/truetype/ttpload.c (tt_face_load_loca): While sanitizing,
+ handle case where `loca' is the last table in the font.
+
+2010-11-18 Werner Lemberg <wl@gnu.org>
+
+ [sfnt] Ignore all errors while loading `OS/2' table.
+ Suggested by Johnson Y. Yan <yinsen_yan@foxitsoftware.com>.
+
+ * src/sfnt/sfobjs.c (sfnt_load_face): Do it.
+
+2010-11-18 Johnson Y. Yan <yinsen_yan@foxitsoftware.com>
+
+ [type1] Fix matrix normalization.
+
+ * src/type1/t1load.c (parse_font_matrix): Handle sign of scaling
+ factor.
+
+2010-11-18 Werner Lemberg <wl@gnu.org>
+
+ [type1] Improve guard against malformed data.
+ Based on a patch submitted by Johnson Y. Yan
+ <yinsen_yan@foxitsoftware.com>
+
+ * src/type1/t1load.c (read_binary_data): Check `size'.
+
+2010-11-17 Werner Lemberg <wl@gnu.org>
+
+ [sfnt] While tracing, output table checksums also.
+
+ * src/sfnt/ttload.c (tt_face_load_font_dir): Do it.
+
+2010-11-04 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ [UVS] Fix `find_variant_selector_charmap', Savannah bug #31545.
+
+ Since 2010-07-04, `find_variant_selector_charmap' returns
+ the first cmap subtable always under rogue-compatible
+ configuration, it causes NULL pointer dereference and
+ make UVS-related functions crashed.
+
+ * src/base/ftobjs.c (Fix find_variant_selector_charmap):
+ Returns UVS cmap correctly.
+
+2010-11-01 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ [ftsmooth] Improve rendering.
+
+ * src/smooth/ftsmooth.c (gray_render_conic): Since version 2.4.3,
+ cubic deviations have been estimated _after_ UPSCALE, whereas
+ conic ones have been evaluated _before_ UPSCALE, which produces
+ inferior rendering results. Fix this.
+ Partially undo change from 2010-10-15 by using ONE_PIXEL/4; this has
+ been tested with demo images sent to the mailing list. See
+
+ https://lists.gnu.org/archive/html/freetype-devel/2010-10/msg00055.html
+
+ and later mails in this thread.
+
+2010-10-28 Werner Lemberg <wl@gnu.org>
+
+ [ftraster] Minor fixes.
+
+ Reported by Tom Bishop <wenlin@wenlin.com>.
+
+ * src/raster/ftraster.c (ULong): Remove unused typedef.
+ (TWorker): Remove unused variable `precision_mask'.
+
+2010-10-28 Werner Lemberg <wl@gnu.org>
+
+ [ftraster] Fix rendering.
+
+ Problem reported by Tom Bishop <wenlin@wenlin.com>; see
+ thread starting with
+
+ https://lists.gnu.org/archive/html/freetype/2010-10/msg00049.html
+
+ * src/raster/ftraster.c (Line_Up): Replace FMulDiv with SMulDiv
+ since the involved multiplication exceeds 32 bits.
+
+2010-10-25 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ Revert a change of `_idx' type in `FTC_CACHE_LOOKUP_CMP'.
+
+ * src/cache/ftccache.h (FTC_CACHE_LOOKUP_CMP): Revert
+ the type of `_idx' from FT_PtrDist (by previous change)
+ to original FT_UFast, to match with FT_CacheRec.
+
+2010-10-24 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ [cache] Change the hash types to FT_PtrDist.
+
+ On LLP64 platforms (e.g. Win64), FT_ULong (32-bit)
+ variables are inappropriate to calculate hash values
+ from the memory address (64-bit). The hash variables
+ are extended from FT_ULong to FT_PtrDist and new
+ hashing macro functions are introduced. The hash
+ values on 16-bit memory platforms are changed, but
+ ILP32 and LP64 are not changed. The hash value in
+ the cache subsystem is not reverted to the memory
+ address, so using signed type FT_PtrDist is safe.
+
+ * src/cache/ftccache.h (_FTC_FACE_ID_HASH): New hash
+ function to replace `FTC_FACE_ID_HASH' for portability.
+ * src/cache/ftcmanag.h (FTC_SCALER_HASH): Replace
+ `FTC_FACE_ID_HASH' by `_FTC_FACE_ID_HASH'.
+ * src/cache/ftccmap.c (FTC_CMAP_HASH): Ditto.
+
+ * src/cache/ftccache.h (FTC_NodeRec): The type of the
+ member `hash' is changed from FT_UInt32 to FT_PtrDist.
+
+ * src/cache/ftccache.h (FTC_Cache_Lookup): The type of the
+ argument `hash' is changed from FT_UInt32 to FT_PtrDist.
+ (FTC_Cache_NewNode): Ditto.
+ * src/cache/ftccache.c (ftc_cache_add): Ditto.
+ (FTC_Cache_Lookup): Ditto. (FTC_Cache_NewNode): Ditto.
+ * src/cache/ftcglyph.h (FTC_GCache_Lookup): Ditto.
+ * src/cache/ftcglyph.c (FTC_GCache_Lookup): Ditto.
+
+ * src/cache/ftcbasic.c (FTC_ImageCache_Lookup): The type
+ of the internal variable `hash' is changed to FT_PtrDist
+ from FT_UInt32. (FTC_ImageCache_LookupScaler): Ditto.
+ (FTC_SBitCache_Lookup): Ditto.
+ (FTC_SBitCache_LookupScaler): Ditto.
+ * src/cache/ftccmap.c (FTC_CMapCache_Lookup): Ditto.
+ * src/cache/ftccache.h (FTC_CACHE_LOOKUP_CMP): Ditto.
+ Also the type of the internal variable `_idx' is changed to
+ FT_PtrDist from FT_UFast for better pointer calculation.
+
+2010-10-24 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ [cache] Hide internal macros incompatible with LLP64.
+
+ `FT_POINTER_TO_ULONG', `FTC_FACE_ID_HASH', and
+ `FTC_IMAGE_TYPE_HASH' are enclosed by
+ FT_CONFIG_OPTION_OLD_INTERNALS and hidden from
+ normal clients.
+
+ For the history of these macros, see the investigation:
+ https://lists.gnu.org/archive/html/freetype/2010-10/msg00022.html
+
+2010-10-24 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ Change the type of `FT_MEM_VAL' from FT_ULong to FT_PtrDist.
+
+ On LLP64 platforms (e.g. Win64), unsigned long (32-bit)
+ cannot cover the memory address (64-bit). `FT_MEM_VAL' is
+ used for hashing only and not dereferred, so using signed
+ type FT_PtrDist is safe.
+
+ * src/base/ftdbgmem.c (FT_MEM_VAL): Change the type of the
+ return value from FT_ULong to FT_PtrDist.
+ (ft_mem_table_resize): The type of hash is changed to
+ FT_PtrDist. (ft_mem_table_get_nodep): Ditto.
+
+2010-10-24 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ Replace "%lx" for memory address by "%p", LLP64 platforms.
+
+ On LLP64 platforms (e.g. Win64), long (32-bit) cannot cover
+ the memory address (64-bit). Also the casts from the pointer
+ type to long int should be removed to preserve the address
+ correctly.
+
+ * src/raster/ftraster.c (New_Profile): Replace "%lx" by "%p".
+ (End_Profile) Ditto.
+ * src/truetype/ttinterp.c (Init_Context): Ditto.
+
+2010-10-15 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ Fix thinko in spline flattening.
+
+ FT_MAX_CURVE_DEVIATION is dependent on the value of ONE_PIXEL.
+
+ * src/smooth/ftgrays.c (FT_MAX_CURVE_DEVIATION): Remove it and
+ replace it everywhere with ONE_PIXEL/8.
+
+2010-10-13 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ [raccess] Skip unrequired resource access rules by Darwin VFS.
+
+ When a resource fork access rule by Darwin VFS could open the
+ resource fork but no font is found in it, the rest of rules
+ by Darwin VFS are skipped. It reduces the warnings of the
+ deprecated resource fork access method by recent Darwin kernel.
+ Fix MacPorts ticket #18859:
+ https://trac.macports.org/ticket/18859
+
+ * src/base/ftobjs.c (load_face_in_embedded_rfork):
+ When `FT_Stream_New' returns FT_Err_Cannot_Open_Stream, it
+ means that the file is possible to be `fopen'-ed but zero-sized.
+ Also there is a case that the resource fork is not zero-sized,
+ but no supported font exists in it. If a rule by Darwin VFS
+ falls into such cases, there is no need to try other Darwin VFS
+ rules anymore. Such cases are marked by vfs_rfork_has_no_font.
+ If it is TRUE, the Darwin VFS rules are skipped.
+
+2010-10-13 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ [raccess] Grouping resource access rules based on Darwin VFS.
+
+ MacOS X/Darwin kernel supports a few tricky methods to access
+ a resource fork via ANSI C or POSIX interface. Current resource
+ fork accessor tries all possible methods to support all kernels.
+ But if a method could open a resource fork but no font is found,
+ there is no need to try other methods older than tested method.
+ To determine whether the rule index is for Darwin VFS, a local
+ function `ftrfork.c::raccess_rule_by_darwin_vfs' is introduced.
+ To use this function in ftobjs.c etc but it should be inlined,
+ it is exposed by ftbase.h.
+
+ * src/base/ftrfork.c (FT_RFork_Rule): New enum type to identify
+ the rules to access the resource fork.
+ (raccess_guess_rec): New structure to bind the rule function and
+ rule enum type.
+ (FT_Raccess_Guess): The list of the rule functions is replaced by
+ (raccess_guess_table): This. This is exposed to be used by other
+ intra module functions.
+ (raccess_rule_by_darwin_vfs): A function to return a boolean
+ if the rule specified by the rule index is based on Darwin VFS.
+
+2010-10-13 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ Prevent to open a FT_Stream for zero-sized file on non-Unix.
+
+ builds/unix/ftsystem.c prevents to open an useless stream from
+ zero-sized file and returns FT_Err_Cannot_Open_Stream, but the
+ stream drivers for ANSI C, Amiga and VMS return useless streams.
+ For cross-platform consistency, all stream drivers should act
+ same.
+
+ * src/base/ftsystem.c (FT_Stream_Open): If the size of the opened
+ file is zero, FT_Err_Cannot_Open_Stream is returned.
+ * builds/amiga/src/base/ftsystem.c (FT_Stream_Open): Ditto.
+ * src/vms/ftsystem.c (FT_Stream_Open): Ditto.
+
+2010-10-12 Werner Lemberg <wl@gnu.org>
+
+ [truetype] Fix Savannah bug #31310.
+
+ * src/truetype/ttgxvar.c (ft_var_readpackedpoints): Protect against
+ invalid `runcnt' values.
+
+2010-10-08 Chris Liddell <chris.liddell@artifex.com>
+
+ [sfnt] Fix Savannah bug #31275.
+
+ * src/sfnt/ttpost.c: Include FT_INTERNAL_DEBUG_H.
+
+2010-10-06 Werner Lemberg <wl@gnu.org>
+
+ [truetype] Improve error handling of `SHZ' bytecode instruction.
+ Problem reported by Chris Evans <scarybeasts@gmail.com>.
+
+ * src/truetype/ttinterp.c (Ins_SHZ): Check `last_point'.
+
+2010-10-05 Werner Lemberg <wl@gnu.org>
+
+ Fix Savannah bug #31253.
+ Patch submitted by an anonymous reporter.
+
+ * configure: Use `awk' instead of `sed' to manipulate output of `ls
+ -id'.
+
+2010-10-03 Werner Lemberg <wl@gnu.org>
+
+ * Version 2.4.3 released.
+ =========================
+
+
+ Tag sources with `VER-2-4-3'.
+
+ * docs/CHANGES: Updated.
+
+ * docs/VERSION.DLL: Update documentation and bump version number to
+ 2.4.3
+
+ * README, Jamfile (RefDoc),
+ builds/win32/vc2005/freetype.vcproj, builds/win32/vc2005/index.html,
+ builds/win32/vc2008/freetype.vcproj, builds/win32/vc2008/index.html,
+ builds/win32/visualc/freetype.dsp,
+ builds/win32/visualc/freetype.vcproj,
+ builds/win32/visualc/index.html, builds/win32/visualce/freetype.dsp,
+ builds/win32/visualce/freetype.vcproj,
+ builds/win32/visualce/index.html,
+ builds/wince/vc2005-ce/freetype.vcproj,
+ builds/wince/vc2005-ce/index.html,
+ builds/wince/vc2008-ce/freetype.vcproj,
+ builds/wince/vc2008-ce/index.html: s/2.4.2/2.4.3/, s/242/243/.
+
+ * include/freetype/freetype.h (FREETYPE_PATCH): Set to 3.
+
+ * builds/unix/configure.raw (version_info): Set to 12:1:6.
+
+2010-10-03 Werner Lemberg <wl@gnu.org>
+
+ Avoid `configure' issues with symbolic links.
+ Based on a patch from Alexander Stohr <Alexander.Stohr@gmx.de>.
+
+ * configure: Compare directories using `ls -id'.
+ Check existence of `reference' subdirectory before creating it.
+
+2010-10-02 Werner Lemberg <wl@gnu.org>
+
+ [sfnt] Fix Savannah bug #31088 (sort of).
+
+ * src/sfnt/ttload.c (tt_face_load_maxp): Always allocate at least 64
+ function entries.
+
+2010-10-02 Werner Lemberg <wl@gnu.org>
+
+ [smooth] Fix splitting of cubics for negative values.
+
+ Reported by Róbert Márki <gsmiko@gmail.com>; see
+ https://lists.gnu.org/archive/html/freetype/2010-09/msg00019.html.
+
+ * src/smooth/ftgrays.c (gray_render_cubic): Fix thinko.
+
+2010-10-01 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ [truetype] Fix Savannah bug #31040.
+
+ * src/truetype/ttinterp.c (free_buffer_in_size): Remove.
+ (TT_RunIns): Updated.
+
+2010-09-20 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ [sfnt] Make error message filling NULL names less verbose.
+
+ * src/sfnt/ttpost.c (load_format_20): Showing 1 summary message
+ when we fill `post' names by NULL, instead of per-entry message.
+
+2010-09-20 Graham Asher <graham.asher@btinternet.com>
+ David Bevan <david.bevan@pb.com>
+
+ [smooth] Fix and improve spline flattening.
+
+ This fixes the flattening of cubic, S-shaped curves and speeds up
+ the handling of both the conic and cubic arcs.
+
+ See the discussions on the freetype-devel mailing list in late
+ August and September 2010 for details.
+
+ * src/smooth/ftgrays.c (FT_MAX_CURVE_DEVIATION): New macro.
+ (TWorker): Remove `conic_level' and `cubic_level' elements.
+ (gray_render_conic): Simplify algorithm.
+ (gray_render_cubic): New algorithm; details are given in the code
+ comments.
+ (gray_convert_glyph): Remove heuristics.
+
+2010-09-19 Werner Lemberg <wl@gnu.org>
+
+ Minor fixes.
+
+ * src/cff/cffload.c (cff_charset_compute_cids): `charset->sids[i]'
+ is `FT_UShort'.
+ (cff_index_access_element): Don't use additions in comparison.
+ * src/sfnt/ttpost.c (load_format_20): Make `post_limit' of type
+ `FT_Long'.
+ Don't use additions in comparison.
+ Improve tracing messages.
+ (load_format_25, load_post_names): Make `post_limit' of type
+ `FT_Long'.
+
+2010-09-19 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ [cff] Truncate the element length at the end of the stream.
+ See Savannah bug #30975.
+
+ * src/cff/cffload.c (cff_index_access_element): `off2', the offset
+ to the next element is truncated at the end of the stream to prevent
+ invalid I/O. As `off1', the offset to the requested element has
+ been checked by `FT_STREAM_SEEK', `off2' should be checked
+ similarly.
+
+2010-09-19 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ [cff] Ignore CID > 0xFFFFU.
+ See Savannah bug #30975.
+
+ * src/cff/cffload.c (cff_charset_compute_cids): Ignore CID if
+ greater than 0xFFFFU. CFF font spec does not mention maximum CID in
+ the font, but PostScript and PDF spec define that maximum CID is
+ 0xFFFFU.
+
+2010-09-19 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ [cff] Make trace message in` cff_charset_load' verbose.
+ See Savannah bug #30975.
+
+ * src/cff/cffload.c (cff_charset_load): Report the original `nleft'
+ and truncated `nleft'.
+
+2010-09-19 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ [cff] Correct `max_cid' from CID array length to max CID.
+ See Savannah bug #30975.
+
+ * src/cff/cffload.c (cff_charset_compute_cids): Don't increment
+ max_cid after detecting max CID. The array CFF_Charset->cids is
+ allocated by max_cid + 1.
+ (cff_charset_cid_to_gindex): Permit CID is less than or equal to
+ CFF_Charset->max_cid.
+ * src/cff/cffobjs.c (cff_face_init): FT_Face->num_glyphs is
+ calculated as CFF_Charset->max_cid + 1.
+
+2010-09-19 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ [truetype] Sanitize the broken offsets in `loca'.
+ See Savannah bug #31040.
+
+ * src/truetype/ttpload.c (tt_face_get_location): If `pos1', the
+ offset to the requested entry in `glyf' exceeds the end of the
+ table, return offset=0, length=0. If `pos2', the offset to the next
+ entry in `glyf' exceeds the end of the table, truncate the entry
+ length at the end of `glyf' table.
+
+2010-09-19 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ [sfnt] Prevent overrunning in `post' table parser.
+ See Savannah bug #31040.
+
+ * src/sfnt/ttpost.c (load_post_names): Get the length of `post'
+ table and pass the limit of `post' table to `load_format_20' and
+ `load_format_25'.
+ (load_format_20): Stop the parsing when we reached at the limit of
+ `post' table. If more glyph names are required, they are filled by
+ NULL names.
+
+2010-09-17 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ [truetype] Don't duplicate size->twilight structure to be freed.
+ See Savannah bug #31040 for detail.
+
+ * src/truetype/ttinterp.c (free_buffer_in_size): Don't duplicate
+ FT_GlyphZoneRec size->twilight to be freed. If duplicated,
+ `FT_FREE' erases the duplicated pointers only and leave original
+ pointers. They can cause the double-free crash when the burst
+ errors occur in TrueType interpreter and `free_buffer_in_size' is
+ invoked repeatedly.
+
+2010-09-15 Werner Lemberg <wl@gnu.org>
+
+ Make bytecode debugging with FontForge work again.
+
+ * src/truetype/ttinterp.c (TT_RunIns): Don't call
+ `free_buffer_in_size' in case of error if a debugger is active.
+
+2010-09-14 Werner Lemberg <wl@gnu.org>
+
+ Improve tracing messages.
+
+ * src/truetype/ttinterp.c (TT_RunIns): Improve wording of tracing
+ message.
+ * src/truetype/ttobjs.c (tt_size_run_fpgm, tt_size_run_prep): Add
+ tracing message.
+ * src/truetype/ttgload.c (tt_loader_init): Add tracing message.
+ * src/cache/ftcsbits.c (ftc_snode_load): Emit tracing message if
+ glyph doesn't fit into a small bitmap container.
+
+2010-09-13 Werner Lemberg <wl@gnu.org>
+
+ Fix minor issues reported by <muktha.narayan@wipro.com>.
+
+ * src/autofit/aflatin.c (af_latin_compute_stem_width): Remove
+ redundant conditional check.
+ * src/base/ftsynth.c (FT_GlyphSlot_Embolden): Ditto.
+ * src/cff/cffload.c (cff_encoding_load): Remove conditional check
+ which always evaluates to `true'.
+ * src/pshinter/pshalgo.c (ps_glyph_interpolate_strong_points):
+ Ditto.
+ * src/truetype/ttinterp.c (Ins_IUP): Ditto.
+ * src/cid/cidgload.c (cid_slot_load_glyph): Don't check for NULL if
+ value is already dereferenced.
+ * src/winfonts/winfnt.c (FNT_Load_Glyph): Fix check of `face'.
+
+2010-08-31 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ Ignore the environmental setting of LIBTOOL.
+ Patch is suggested by Adrian Bunk, to prevent unexpected
+ reflection of environmental LIBTOOL. See:
+ https://savannah.nongnu.org/patch/?7290
+
+ * builds/unix/unix-cc.in: LIBTOOL is unconditionally set to
+ $(FT_LIBTOOL_DIR)/libtool. FT_LIBTOOL_DIR is set to $(BUILD_DIR)
+ by default.
+ * configure: When configured for the building out of source tee,
+ FT_LIBTOOL_DIR is set to $(OBJ_DIR).
+
+2010-08-31 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ [truetype] Decrease the trace level catching the interpreter error.
+
+ * src/truetype/ttinterp.c (TT_RunIns): Decrease the trace level
+ showing the error when the interpreter returns with an error,
+ from` FT_TRACE7' to `FT_TRACE1'.
+
+2010-08-30 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ [truetype] Prevent bytecode reuse after the interpretation error.
+
+ * src/truetype/ttinterp.c (free_buffer_in_size): New function to
+ free the buffer allocated during the interpretation of this glyph.
+ (TT_RunIns): Unset FT_Face->size->{cvt_ready,bytecode_ready} if
+ an error occurs in the bytecode interpretation. The interpretation
+ of invalid bytecode may break the function definitions and referring
+ them in later interpretation is danger. By unsetting these flags,
+ `fpgm' and `prep' tables are executed again in next interpretation.
+
+ This fixes Savannah bug #30798, reported by Robert Święcki.
+
+2010-08-29 Werner Lemberg <wl@gnu.org>
+
+ [ftraster] Pacify compiler.
+
+ * src/raster/ftraster.c (ft_black_new) [_STANDALONE_]: `memory' is
+ not used.
+
+2010-08-29 Werner Lemberg <wl@gnu.org>
+
+ [cff] Allow SIDs >= 65000.
+
+ * src/cff/cffload.c (cff_charset_load): Fix change from 2009-03-20:
+ The threshold for SIDs is not applicable here. I misinterpreted the
+ `SID values 65000 and above are available for implementation use'
+ sentence in the CFF specification.
+
+ Problem reported by Ivan Ninčić <inincic@pdftron.com>.
+
+2010-08-28 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ Force hinting when the font lacks its familyname.
+
+ In Type42 or Type11 font embedded in PostScript & PDF, TrueType sfnt
+ stream may lack `name' table because they are not required. Hinting
+ for nameless fonts is safer for PDFs including embedded Chinese
+ fonts. Written by David Bevan, see:
+
+ https://lists.gnu.org/archive/html/freetype-devel/2010-08/msg00021.html
+ https://lists.freedesktop.org/archives/poppler/2010-August/006310.html
+
+ * src/truetype/ttobjs.c (tt_check_trickyness): If a NULL pointer by
+ nameless font is given, TRUE is returned to enable hinting.
+
+2010-08-28 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ Register yet another tricky TrueType font.
+
+ * src/truetype/ttobjs.c (tt_check_trickyness): Add `HuaTianKaiTi?',
+ a Kaishu typeface paired with `HuaTianSongTi?' by Huatian
+ Information Industry.
+
+2010-08-17 Teijo Kinnunen <Teijo.Kinnunen@nuance.com>
+
+ [cache] Fix Savannah bug #30788.
+
+ * src/cache/ftccache.c (FTC_Cache_Clear): Check `cache->buckets' for
+ NULL too.
+
+2010-08-10 Werner Lemberg <wl@gnu.org>
+
+ Try to fix Savannah bug #30717 (and probably #30719 too).
+
+ * src/smooth/ftsmooth.c (ft_smooth_render_generic): Add another
+ overflow test for `width' and `height'.
+
+2010-08-06 Werner Lemberg <wl@gnu.org>
+
+ * Version 2.4.2 released.
+ =========================
+
+
+ Tag sources with `VER-2-4-2'.
+
+ * docs/CHANGES: Updated.
+
+ * docs/VERSION.DLL: Update documentation and bump version number to
+ 2.4.2
+
+ * README, Jamfile (RefDoc),
+ builds/win32/vc2005/freetype.vcproj, builds/win32/vc2005/index.html,
+ builds/win32/vc2008/freetype.vcproj, builds/win32/vc2008/index.html,
+ builds/win32/visualc/freetype.dsp,
+ builds/win32/visualc/freetype.vcproj,
+ builds/win32/visualc/index.html, builds/win32/visualce/freetype.dsp,
+ builds/win32/visualce/freetype.vcproj,
+ builds/win32/visualce/index.html,
+ builds/wince/vc2005-ce/freetype.vcproj,
+ builds/wince/vc2005-ce/index.html,
+ builds/wince/vc2008-ce/freetype.vcproj,
+ builds/wince/vc2008-ce/index.html: s/2.4.1/2.4.2/, s/241/242/.
+
+ * include/freetype/freetype.h (FREETYPE_PATCH): Set to 2.
+
+ * builds/unix/configure.raw (version_info): Set to 12:0:6.
+
+2010-08-06 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ Fix Savannah bug #30648.
+
+ * src/base/ftobjs.c (FT_Done_Library): Specify the order of font
+ drivers during the face closing process. Type42 faces should be
+ closed before TrueType faces, because a Type42 face refers to
+ another internal TrueType face which is created from sfnt[] array on
+ the memory.
+
+2010-08-06 Yuriy Kaminskiy <yumkam@mail.ru>
+
+ [raster] Fix valgrind warning.
+
+ * src/raster/ftraster.c (Decompose_Curve) <default>: Access point[0]
+ only if we don't hit `limit'.
+
+2010-08-06 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ Fix Savannah bug #30658.
+
+ * src/base/ftobjs.c (Mac_Read_POST_Resource): Check that the total
+ length of collected POST segments does not overrun the allocated
+ buffer.
+
+2010-08-06 Yuriy Kaminskiy <yumkam@mail.ru>
+
+ Fix conditional usage of FT_MulFix_i386.
+ With -ansi flag, gcc does not define `i386', only `__i386__'.
+
+ * include/freetype/config/ftconfig.h, builds/unix/ftconfig.in:
+ s/i386/__i386__/.
+
+2010-08-05 Werner Lemberg <wl@gnu.org>
+
+ [truetype] Fix Savannah bug #30657.
+
+ * src/truetype/ttinterp.c (BOUNDSL): New macro.
+ Change `BOUNDS' to `BOUNDSL' where appropriate.
+
+ * src/truetype/ttinterp.h (TT_ExecContextRec): Fix type of
+ `cvtSize'.
+
+2010-08-05 Werner Lemberg <wl@gnu.org>
+
+ [type42] Fix Savannah bug #30656.
+
+ * src/type42/t42parse.c (t42_parse_sfnts): Protect against negative
+ string_size.
+ Fix comparison.
+
+2010-08-05 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ [cff] Don't use any values in decoder after parsing error.
+
+ * src/cff/cffgload.c (cff_slot_load): Skip the evaluations
+ of the values in decoder, if `cff_decoder_parse_charstrings'
+ returns any error.
+
+2010-08-04 Werner Lemberg <wl@gnu.org>
+
+ Fix Savannah bug #30644.
+
+ * src/base/ftstream.c (FT_Stream_EnterFrame): Fix comparison.
+
+2010-08-04 Werner Lemberg <wl@gnu.org>
+
+ `make devel' fails if FT_CONFIG_OPTION_OLD_INTERNALS is set.
+
+ * devel/ftoption.h: Synchronize with
+ include/freetype/config/ftoption.h.
+
+2010-08-04 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ [cff] Improve stack overflow test.
+
+ * src/cff/cffgload.c (cff_decoder_parse_charstrings): Check stack
+ after execution of operations too.
+
+2010-07-18 Werner Lemberg <wl@gnu.org>
+
+ Add reference counters and to FT_Library and FT_Face objects.
+
+ * include/freetype/freetype.h (FT_Reference_Face): New function.
+ * include/freetype/ftmodapi.h (FT_Reference_Library): New function.
+
+ * include/freetype/internal/ftobjs.h (FT_Face_InternalRec,
+ FT_LibraryRec): New field `refcount'.
+
+ * src/base/ftobjs.c (FT_Open_Face, FT_New_Library): Handle
+ `refcount'.
+ (FT_Reference_Face, FT_Reference_Library): Implement new functions.
+ (FT_Done_Face, FT_Done_Library): Handle `refcount'.
+
+ * docs/CHANGES: Updated.
+
+2010-07-18 Werner Lemberg <wl@gnu.org>
+
+ * Version 2.4.1 released.
+ =========================
+
+
+ Tag sources with `VER-2-4-1'.
+
+ * docs/CHANGES: Updated.
+
+ * docs/VERSION.DLL: Update documentation and bump version number to
+ 2.4.1.
+
+ * README, Jamfile (RefDoc),
+ builds/win32/vc2005/freetype.vcproj, builds/win32/vc2005/index.html,
+ builds/win32/vc2008/freetype.vcproj, builds/win32/vc2008/index.html,
+ builds/win32/visualc/freetype.dsp,
+ builds/win32/visualc/freetype.vcproj,
+ builds/win32/visualc/index.html, builds/win32/visualce/freetype.dsp,
+ builds/win32/visualce/freetype.vcproj,
+ builds/win32/visualce/index.html,
+ builds/wince/vc2005-ce/freetype.vcproj,
+ builds/wince/vc2005-ce/index.html,
+ builds/wince/vc2008-ce/freetype.vcproj,
+ builds/wince/vc2008-ce/index.html: s/2.4.0/2.4.1/, s/240/241/.
+
+ * include/freetype/freetype.h (FREETYPE_PATCH): Set to 1.
+
+ * builds/unix/configure.raw (version_info): Set to 11:1:5.
+
+2010-07-17 Werner Lemberg <wl@gnu.org>
+
+ [cff] Final try to fix `hintmask' and `cntrmask' limit check.
+
+ Problem reported by Tobias Wolf <towolf@gmail.com>.
+
+ * src/cff/cffgload.c (cff_decoder_parse_charstrings)
+ <cff_op_hintmask>: Sigh. I'm apparently too silly to fix this
+ correctly in less than three tries.
+
+2010-07-12 Werner Lemberg <wl@gnu.org>
+
+ * Version 2.4.0 released.
+ =========================
+
+
+ Tag sources with `VER-2-4-0'.
+
+ * docs/CHANGES: Updated.
+
+ * docs/VERSION.DLL: Update documentation and bump version number to
+ 2.4.0.
+
+ * README, Jamfile (RefDoc),
+ builds/win32/vc2005/freetype.vcproj, builds/win32/vc2005/index.html,
+ builds/win32/vc2008/freetype.vcproj, builds/win32/vc2008/index.html,
+ builds/win32/visualc/freetype.dsp,
+ builds/win32/visualc/freetype.vcproj,
+ builds/win32/visualc/index.html, builds/win32/visualce/freetype.dsp,
+ builds/win32/visualce/freetype.vcproj,
+ builds/win32/visualce/index.html,
+ builds/wince/vc2005-ce/freetype.vcproj,
+ builds/wince/vc2005-ce/index.html,
+ builds/wince/vc2008-ce/freetype.vcproj,
+ builds/wince/vc2008-ce/index.html: s/2.3.12/2.4.0/, s/2312/240/.
+
+ * include/freetype/freetype.h (FREETYPE_MINOR): Set to 4.
+ (FREETYPE_PATCH): Set to 0.
+
+ * builds/unix/configure.raw (version_info): Set to 11:0:5.
+
+2010-07-12 Werner Lemberg <wl@gnu.org>
+
+ Remove C++ warnings.
+
+ */*: Initialize pointers where necessary to make g++ happy.
+
+2010-07-12 malc <av1474@comtv.ru>
+ Richard Henderson <rth@redhat.com>
+
+ Fix type-punning issues with C++.
+
+ * include/freetype/internal/ftmemory.h (FT_ASSIGNP) [__cplusplus]:
+ Emulate a `typeof' operator with an inline template which uses
+ `static_cast'.
+
+2010-07-11 Werner Lemberg <wl@gnu.org>
+
+ Fix C++ compilation issue.
+
+ * src/tools/apinames.c (names_dump) <OUTPUT_WATCOM_LBC>: Fix
+ type of `dot' variable.
+
+2010-07-10 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ Fix another case reported in Savannah bug #30373.
+ Permit a face for Type1, Type42 and CFF without charmap,
+ patch by Tor Andersson.
+
+ * src/type1/t1objs.c (T1_Face_Init): Reset the error if it
+ is FT_Err_No_Unicode_Glyph_Name.
+ * src/type42/t42objs.c (T42_Face_Init): Ditto.
+ * src/cff/cffobjs.c (cff_face_init): Ditto.
+
+2010-07-09 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ Use defined macros to set {platform,encoding}_id.
+
+ * src/bdf/bdfdrivr.c: Include ttnameid.h and use macros to
+ set charmap.{platform,encoding}_id.
+ * src/pcf/pcfdrivr.c: Ditto.
+ * src/winfonts/winfnt.c: Ditto.
+ * src/type1/t1objs.c: Ditto.
+ * src/type42/t42objs.c: Ditto.
+ * src/cff/cffobjs.c: Ditto.
+ * src/pfr/pfrobjs.c: Ditto.
+
+2010-07-09 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ Fix Savannah bug #30373.
+ Too serious check of errors by `FT_CMap_New' since 2010-07-04
+ is fixed. Reported by Tor Andersson.
+
+ * include/freetype/fterrdef.h
+ (PSnames_Err_No_Unicode_Glyph_Name): New error code to
+ indicate the Unicode charmap synthesis failed because
+ no Unicode glyph name is found.
+
+ * src/psnames/psmodule.c (ps_unicodes_init): Return
+ PSnames_Err_No_Unicode_Glyph_Name when no Unicode glyph name
+ is found in the font.
+ * src/cff/cffcmap.c (cff_cmap_unicode_init): Return
+ CFF_Err_No_Unicode_Glyph_Name when no SID is available.
+
+ * src/type1/t1objs.c (T1_Face_Init): Proceed if `FT_CMap_New'
+ is failed by the lack of Unicode glyph name.
+ * src/type42/t42objs.c (T42_Face_Init): Ditto.
+ * src/cff/cffobjs.c (cff_face_init): Ditto.
+
+2010-07-09 Ken Sharp <ken.sharp@artifex.com>
+
+ Make ftraster.c compile in stand-alone mode with MSVC compiler.
+
+ * src/raster/ftmisc.h (FT_Int64) [_WIN32, _WIN64]: Fix typedef
+ since there is no `inttypes.h' for MSVC.
+
+2010-07-08 Werner Lemberg <wl@gnu.org>
+
+ [truetype] Fix Savannah bug #30361.
+
+ * src/truetype/ttinterp.c (Ins_IUP): Fix bounds check.
+
+2010-07-06 Werner Lemberg <wl@gnu.org>
+
+ Pacify compiler.
+
+ * src/cff/cffload.c (cff_index_get_pointers): Initialize
+ `new_bytes'.
+
+2010-07-05 Eugene A. Shatokhin <spectre@ispras.ru>
+
+ Fix Savannah bug #27648.
+
+ * src/base/ftobjs.c (ft_remove_renderer, FT_Add_Module): Call
+ `raster_done' only if we have an outline glyph format.
+
+2010-07-05 Werner Lemberg <wl@gnu.org>
+
+ Fix Savannah bug #30030.
+
+ * builds/win32/*/freetype.vcproj: Add ftxf86.c.
+
+2010-07-05 Werner Lemberg <wl@gnu.org>
+
+ [cff] Next try to fix `hintmask' and `cntrmask' limit check.
+
+ Problem reported by malc <av1474@comtv.ru>.
+
+ * src/cff/cffgload.c (cff_decoder_parse_charstrings)
+ <cff_op_hintmask>: It is possible that there is just a single byte
+ after the `hintmask' or `cntrmask', e.g., a `return' instruction.
+
+2010-07-04 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ Restrict the number of the charmaps in a rogue-compatible mode.
+ Fix for Savannah bug #30059.
+
+ * src/cache/ftccmap.c (FTC_CMapCache_Lookup): Replace `16' the
+ minimum character code passed by a legacy rogue client by...
+ * include/freetype/config/ftoption.h (FT_MAX_CHARMAP_CACHEABLE):
+ This. It is undefined when FT_CONFIG_OPTION_OLD_INTERNALS is
+ undefined (thus the rogue client compatibility is not required).
+
+ * src/cff/cffobjs.c (cff_face_init): Abort the automatic
+ selection or synthesis of Unicode cmap subtable when the charmap
+ index exceeds FT_MAX_CHARMAP_CACHEABLE.
+ * src/sfnt/ttcmap.c (tt_face_build_cmaps): Issue error message
+ when the charmap index exceeds FT_MAX_CHARMAP_CACHEABLE.
+
+ * src/base/ftobjs.c (find_unicode_charmap): When Unicode charmap
+ is found after FT_MAX_CHARMAP_CACHEABLE, ignore it and search
+ earlier one.
+ (find_variant_selector_charmap): When UVS charmap is found after
+ FT_MAX_CHARMAP_CACHEABLE, ignore it and search earlier one.
+ (FT_Select_Charmap): When a charmap matching with requested
+ encoding but after FT_MAX_CHARMAP_CACHEABLE, ignore and search
+ earlier one.
+ (FT_Set_Charmap): When a charmap matching with requested
+ charmap but after FT_MAX_CHARMAP_CACHEABLE, ignore and search
+ earlier one.
+ (FT_Get_Charmap_Index): When a requested charmap is found
+ after FT_MAX_CHARMAP_CACHEABLE, return the inverted charmap
+ index.
+
+2010-07-04 Werner Lemberg <wl@gnu.org>
+
+ TrueType hinting is no longer patented.
+
+ * include/freetype/config/ftoption.h, devel/ftoption.h
+ (TT_CONFIG_OPTION_BYTECODE_INTERPRETER): Define.
+ (TT_CONFIG_OPTION_UNPATENTED_HINTING): Undefine.
+
+ * docs/CHANGES, docs/INSTALL, include/freetype/freetype.h: Updated.
+ * docs/TRUETYPE, docs/PATENTS: Removed.
+
+2010-07-04 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ Check error value by `FT_CMap_New'.
+
+ * src/cff/cffobjs.c (cff_face_init): Check error value by
+ `FT_CMap_New'.
+ * src/pfr/pfrobjs.c (pfr_face_init): Ditto.
+ * src/type1/t1objs.c (T1_Face_Init): Ditto.
+ * src/type42/t42objs.c (T42_Face_Init): Ditto.
+
+2010-07-03 Werner Lemberg <wl@gnu.org>
+
+ Make ftgrays.c compile stand-alone again.
+
+ * src/smooth/ftgrays.c [_STANDALONE_]: Include `stddef.h'.
+ (FT_INT_MAX, FT_PtrDist)[_STANDALONE_]: Define.
+
+2010-07-02 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ Additional fix for Savannah bug #30306.
+
+ * src/base/ftobjs.c (Mac_Read_POST_Resource): If the type of the
+ POST fragment is 0, the segment is completely ignored. The declared
+ length of the segment is not cared at all. According to Adobe
+ Technical Note 5040, type 0 segment is a comment only and should not
+ be loaded for the interpreter. Reported by Robert Święcki.
+
+2010-07-01 Werner Lemberg <wl@gnu.org>
+
+ [truetype] Protect against code range underflow.
+
+ * src/truetype/ttinterp.c (DO_JROT, DO_JMPR, DO_JROF): Don't allow
+ negative IP values.
+
+2010-07-01 Werner Lemberg <wl@gnu.org>
+
+ [truetype] Add rudimentary tracing for bytecode instructions.
+
+ * src/truetype/ttinterp.c (opcode_name) [FT_DEBUG_LEVEL_TRACE]: New
+ array.
+ (TT_RunIns): Trace opcodes.
+
+2010-06-30 Werner Lemberg <wl@gnu.org>
+
+ [smooth] Fix Savannah bug #30263.
+
+ * src/smooth/ftgrays.c (gray_render_span): Use cast to `unsigned
+ int' to avoid integer overflow.
+
+ * src/smooth/ftsmooth.c (ft_smooth_render_generic): Use smaller
+ threshold values for `width' and `height'. This is not directly
+ related to the bug fix but makes sense anyway.
+
+2010-07-01 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ Initial fix for Savannah bug #30306.
+
+ * src/base/ftobjs.c (Mac_Read_POST_Resource): Check `rlen', the
+ length of fragment declared in the POST fragment header, and prevent
+ an underflow in length calculation. Some fonts set the length to
+ zero in spite of the existence of a following 16bit `type'.
+ Reported by Robert Święcki.
+
+2010-07-01 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ Additional fix for Savannah bug #30248 and #30249.
+
+ * src/base/ftobjs.c (Mac_Read_POST_Resource): Check the buffer size
+ during gathering PFB fragments embedded in LaserWriter PS font for
+ Macintosh. Reported by Robert Święcki.
+
+2010-06-30 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ Minor optimizations by avoiding divisions.
+
+ * src/sfnt/ttkern.c (tt_face_load_kern, tt_face_get_kerning):
+ Replace divisions with multiplication in comparisons.
+
+2010-06-29 Werner Lemberg <wl@gnu.org>
+
+ Fix minor tracing issues.
+
+ * src/cff/cffgload.c, src/truetype/ttgload.c: Adjust tracing levels.
+
+2010-06-27 Werner Lemberg <wl@gnu.org>
+
+ [cff] Really fix `hintmask' and `cntrmask' limit check.
+
+ * src/cff/cffgload.c (cff_decoder_parse_charstrings)
+ <cff_op_hintmask>: Fix thinko and handle tracing also.
+
+2010-06-27 Werner Lemberg <wl@gnu.org>
+
+ Fix valgrind warning.
+
+ * src/base/ftoutln.c (FT_Outline_Get_Orientation): Initialize
+ `result' array.
+
+2010-06-27 Werner Lemberg <wl@gnu.org>
+
+ [cff] Fix memory leak.
+
+ * src/cff/cffgload.c (cff_operator_seac): Free charstrings even in
+ case of errors.
+
+2010-06-27 Werner Lemberg <wl@gnu.org>
+
+ [cff] Protect against invalid `hintmask' and `cntrmask' operators.
+
+ * src/cff/cffgload.c (cff_decoder_parse_charstrings)
+ <cff_op_hintmask>: Ensure that we don't exceed `limit' while parsing
+ the bit masks of the `hintmask' and `cntrmask' operators.
+
+2010-06-26 Werner Lemberg <wl@gnu.org>
+
+ Fix PFR change 2010-06-24.
+
+ * src/pfr/pfrgload.c (pfr_glyph_load_simple): Really protect against
+ invalid indices.
+
+2010-06-26 Werner Lemberg <wl@gnu.org>
+
+ Improve PFR tracing messages.
+
+ * src/pfr/pfrgload.c (pfr_glyph_load_rec): Emit tracing messages for
+ simple and compound glyph offsets.
+
+2010-06-26 Werner Lemberg <wl@gnu.org>
+
+ Fix last PFR change.
+
+ * src/pfr/pfrobjs.c (pfr_face_init): Fix rejection logic.
+
+2010-06-26 Werner Lemberg <wl@gnu.org>
+
+ [sfnt] Fix Savannah bug #30262.
+
+ * src/sfnt/ttload.c (tt_face_load_maxp): Limit `maxComponentDepth'
+ arbitrarily to 100 to avoid stack exhaustion.
+
+2010-06-26 Werner Lemberg <wl@gnu.org>
+
+ Add some memory checks (mainly for debugging).
+
+ * src/base/ftstream.c (FT_Stream_EnterFrame): Exit with error
+ if the frame size is larger than the stream size.
+
+ * src/base/ftsystem.c (ft_ansi_stream_io): Exit with error if
+ seeking a position larger than the stream size.
+
+2010-06-25 Werner Lemberg <wl@gnu.org>
+
+ [pfr] Fix Savannah bug #30261.
+
+ * src/pfr/pfrobjs.c (pfr_face_init): Reject fonts which contain
+ neither outline nor bitmap glyphs.
+
+2010-06-25 Werner Lemberg <wl@gnu.org>
+
+ [cff] Fix Savannah bug #30254.
+
+ * src/cff/cffload.c (cff_index_get_pointers): Do sanity check for
+ first offset also.
+
+2010-06-25 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ Initial fix for Savannah bug #30248 and #30249.
+
+ * src/base/ftobjs.c (Mac_Read_POST_Resource): Check the error during
+ reading a PFB fragment embedded in LaserWriter PS font for Macintosh.
+ Reported by Robert Święcki.
+
+2010-06-24 Werner Lemberg <wl@gnu.org>
+
+ [pcf] Fix Savannah bug #30247.
+
+ * src/pcf/pcfread.c (pcf_get_metrics): Disallow (invalid) fonts with
+ zero metrics.
+
+2010-06-24 Graham Asher <graham.asher@btinternet.com>
+
+ * src/smooth/ftgrays.c (gray_render_cubic): Fix algorithm.
+ The previous version was too aggressive, as demonstrated in
+ https://lists.gnu.org/archive/html/freetype-devel/2010-06/msg00020.html.
+
+2010-06-24 Werner Lemberg <wl@gnu.org>
+
+ */*: Use module specific error names where appropriate.
+
+2010-06-24 Werner Lemberg <wl@gnu.org>
+
+ [sfnt] Fix Savannah bug #30236.
+
+ * src/sfnt/ttcmap.c (tt_face_build_cmaps): Improve check for pointer
+ to `cmap_table'.
+
+2010-06-24 Werner Lemberg <wl@gnu.org>
+
+ [pfr] Fix Savannah bug #30235.
+
+ * src/pfr/pfrgload.c (pfr_glyph_load_simple): Protect against
+ invalid indices if there aren't any coordinates for indexing.
+
+2010-06-24 Werner Lemberg <wl@gnu.org>
+
+ [bdf]: Font properties are optional.
+
+ * src/bdf/bdflib.c (_bdf_readstream): Use special error code to
+ indicate a redo operation.
+ (_bdf_parse_start): Handle `CHARS' keyword here too and pass current
+ input line to `_bdf_parse_glyph'.
+
+2010-06-23 Werner Lemberg <wl@gnu.org>
+
+ [bdf] Fix Savannah bug #30220.
+
+ * include/freetype/fterrdef.h
+ (BDF_Err_Missing_Fontboundingbox_Field): New error code.
+
+ * src/bdf/bdflib.c (_bdf_parse_start): Check for missing
+ `FONTBOUNDINGBOX' field.
+ Avoid memory leak if there are multiple `FONT' lines (which is
+ invalid but doesn't hurt).
+
+2010-06-21 Werner Lemberg <wl@gnu.org>
+
+ [pfr] Fix Savannah bug #30168.
+
+ * src/pfr/pfrgload.c (pfr_glyph_load_compound): Limit the number of
+ subglyphs to avoid endless recursion.
+
+2010-06-20 Werner Lemberg <wl@gnu.org>
+
+ [psaux] Fix Savannah bug #30145.
+
+ * src/psaux/psobjs.c (t1_builder_add_contour): Protect against
+ `outline == NULL' which might happen in invalid fonts.
+
+2010-06-19 Werner Lemberg <wl@gnu.org>
+
+ [bdf] Fix Savannah bug #30135.
+
+ * src/bdf/bdflib.c (_bdf_list_join): Don't modify value in static
+ string `empty'.
+ (_bdf_parse_glyph): Avoid memory leak in case of error.
+
+2010-06-15 Werner Lemberg <wl@gnu.org>
+
+ [autofit] Fix Savannah bug #30108.
+
+ * src/autofit/afglobal.c (af_face_globals_compute_script_coverage):
+ Properly mask AF_DIGIT bit in comparison.
+
+2010-06-11 Werner Lemberg <wl@gnu.org>
+
+ [pshinter] Fix Savannah bug #30106.
+
+ Point numbers for FreeType's implementation of hinting masks are
+ collected before the final number of points of a glyph has been
+ determined; in particular, the code for handling the `endchar'
+ opcode can reduce the number of points.
+
+ * src/pshinter/pshalgo.c (psh_glyph_find_strong_points): Assure that
+ `end_point' is not larger than `glyph->num_points'.
+
+2010-06-11 Werner Lemberg <wl@gnu.org>
+
+ [cff]: Improve debugging output.
+
+ * src/cff/cffgload.c (cff_decoder_parse_charstrings)
+ <cff_op_hintmask>: Implement it.
+
+2010-06-10 Graham Asher <graham.asher@btinternet.com>
+
+ ftgrays: Speed up rendering of small cubic splines.
+
+ * src/smooth/ftgrays.c (gray_render_cubic): Implement new,
+ simplified algorithm to find out whether the spline can be replaced
+ with two straight lines. See this thread for more:
+
+ https://lists.gnu.org/archive/html/freetype-devel/2010-06/msg00000.html
+
+2010-06-09 Werner Lemberg <wl@gnu.org>
+
+ [cff] Fix Savannah bug #30082.
+
+ * src/cff/cffgload.c (cff_decoder_parse_charstrings)
+ <cff_op_callothersubr>: Protect against stack underflow.
+
+2010-06-08 Werner Lemberg <wl@gnu.org>
+
+ [cff] Fix Savannah bug #30053.
+
+ * src/cff/cffparse.c (cff_parse_real): Handle border case where
+ `fraction_length' has value 10.
+
+2010-06-07 Werner Lemberg <wl@gnu.org>
+
+ Fix Savannah bug #30052.
+ This bug has been introduced with commit 2415cbf3.
+
+ * src/base/ftobjs.c (FT_Get_First_Char, FT_Get_Next_Char): Protect
+ against endless loop in case of corrupted font header data.
+
+2010-05-26 Werner Lemberg <wl@gnu.org>
+
+ Remove unused variable.
+ Found by Graham.
+
+ * src/autofit/afhints.c (af_glyph_hints_reload): Remove unused
+ variable `first' in first block.
+
+2010-05-22 Werner Lemberg <wl@gnu.org>
+
+ Fix various memory problems found by linuxtesting.org.
+
+ * src/base/ftgxval.c (FT_TrueTypeGX_Free, FT_ClassicKern_Free),
+ src/base/ftotval.c (FT_OpenType_Free), src/base/ftpfr.c
+ (ft_pfr_check): Check `face'.
+
+ * src/base/ftobjs.c (FT_Get_Charmap_Index): Check `charmap' and
+ `charmap->face'.
+ (FT_Render_Glyph): Check `slot->face'.
+ (FT_Get_SubGlyph_Info): Check `glyph->subglyphs'.
+
+2010-05-22 Werner Lemberg <wl@gnu.org>
+
+ autofit: Remove dead code.
+ Suggested by Graham.
+
+ * src/autofit/afhints.c (af_glyph_hints_compute_inflections):
+ Removed.
+ (af_glyph_hints_reload): Remove third argument.
+ Update all callers.
+
+2010-05-21 Bram Tassyns <bramt@enfocus.be>
+
+ [cff] Fix Savannah bug #27987.
+
+ * src/cff/cffobjs.c (remove_subset_prefix): New function.
+ (cff_face_init): Use it to adjust `cffface->family_name'.
+
+2010-05-20 Werner Lemberg <wl@gnu.org>
+
+ TrueType: Make FreeType ignore maxSizeOfInstructions in `maxp'.
+
+ Acroread does the same.
+
+ * src/truetype/ttgload.c (TT_Process_Composite_Glyph): Call
+ `Update_Max' to adjust size of instructions array if necessary and
+ add a rough safety check.
+
+ (load_truetype_glyph): Save `loader->byte_len' before recursive
+ call.
+
+ * src/truetype/ttinterp.h, src/truetype/ttinterp.c (Update_Max):
+ Declare it as FT_LOCAL.
+
+2010-05-18 Hongbo Ni <hongbo@njstar.com>
+
+ Apply Savannah patch #7196.
+
+ * src/cff/cffgload.c (cff_slot_load): Prevent crash if CFF subfont
+ index is out of range.
+
+2010-05-11 Werner Lemberg <wl@gnu.org>
+
+ * docs/formats.txt: Give pointer to PCF documentation.
+ Information provided by Alan Coopersmith
+ <alan.coopersmith@oracle.com>.
+
+2010-05-10 Ken Sharp <ken.sharp@artifex.com>
+
+ [psaux] Fix Savannah bug #29846.
+
+ Previously we discovered fonts which used `setcurrentpoint' to set
+ the initial point of a contour to 0,0. This caused FreeType to
+ raise an error, because the `setcurrentpoint' operator is only
+ supposed to be used with the results from an OtherSubr subroutine.
+
+ This was fixed by simply ignoring the error and carrying on.
+
+ Now we have found a font which uses setcurrentpoint to actually
+ establish a non-zero point for a contour during the course of a
+ glyph program. FWIW, these files may be produced by an application
+ called `Intaglio' on the Mac, when converting TrueType fonts to
+ Type 1.
+
+ The fix allows the new invalid behaviour, the old invalid behaviour
+ and real proper usage of the operator to work the same way as Adobe
+ interpreters apparently do.
+
+ * src/psaux/t1decode.c (t1_decoder_parse_charstrings): Make
+ `setcurrentpoint' use the top two elements of the stack to establish
+ unconditionally the current x and y coordinates.
+
+ Make the `flex' subroutine handling (OtherSubr 0) put the current
+ x,y coordinates onto the stack, instead of two dummy uninitialised
+ values.
+
+2010-04-14 Ken Sharp <ken.sharp@artifex.com>
+
+ [psaux] Fix Savannah bug #29444.
+
+ * src/psaux/psobjs.c (t1_builder_start_point): Accept (invalid)
+ `lineto' immediately after `hsbw', in accordance with Acrobat, GS,
+ and others.
+
+2010-04-14 Michał Cichoń <thedmd@artifexmundi.com>
+
+ [psaux] Fix Savannah bug #27999.
+
+ * src/cache/ftcmanag.c (FTC_Manager_RemoveFaceID): Only remove
+ selected entry, not all.
+
+2010-04-06 Jonathan Kew <jfkthame@gmail.com>
+
+ [truetype] Add overflow check to `fvar' table.
+
+ * src/truetype/ttgxvar.c (TT_Get_MM_Var): Check axis and instance
+ count.
+
+2010-04-05 Ken Sharp <ken.sharp@artifex.com>
+
+ [raster] Fix Savannah bug #29335.
+
+ * src/raster/ftraster.c (Line_Up): Use slow multiplication to
+ prevent overflow. This shouldn't have any serious impact on speed,
+ however.
+
+2010-04-05 Werner Lemberg <wl@gnu.org>
+
+ Add new function `FT_Library_SetLcdFilterWeights'.
+
+ This is based on code written by Lifter
+ <https://unixforum.org/index.php?showuser=11691>. It fixes
+ FreeDesktop bug #27386.
+
+ * src/base/ftlcdfil.c (FT_Library_SetLcdFilterWeights): New
+ function.
+
+ * include/freetype/ftlcdfil.h: Updated.
+
+ * docs/CHANGES: Updated.
+
+2010-04-01 John Tytgat <John.Tytgat@esko.com>
+
+ [truetype] Fix Savannah bug #29404.
+
+ * src/truetype/ttgload.c: Revert change 2752bd1a (check on bit 1
+ of `head' table of TrueType fonts).
+
+2010-03-14 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ Fix `multi build' for Tytgat's CFF driver improvement.
+
+ * src/base/cffload.h (cff_index_get_name): Added.
+
+2010-03-12 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ Remove duplicated inclusion of `FT_OUTLINE_H' in ftobjs.c.
+
+ * src/base/ftobjs.c: Remove 2nd inclusion of `FT_OUTLINE_H'.
+
+2010-03-11 Chris Liddell <chris.liddell@artifex.com>
+
+ [raster] Fix Savannah bug #27442.
+
+ * src/raster/ftraster.c (ft_black_reset): Fix `buffer_size'.
+
+2010-03-09 Werner Lemberg <wl@gnu.org>
+
+ [cff] Remove unused variable.
+ Reported by Graham.
+
+ * src/cff/cffparse.c (cff_parse_real): Remove `rest'.
+
+2010-03-02 John Tytgat <John.Tytgat@esko.com>
+
+ [cff] Improve CFF string (especially glyphname) lookup performance.
+
+ We do this by avoiding memory allocation and file I/O. This is
+ Savannah patch #7104.
+
+ * src/cff/cfftypes.h: Include PS cmaps service and
+ FT_INTERNAL_POSTSCRIPT_HINTS_H.
+ (CFF_SubFontRec): Remove `num_local_subrs'.
+ (CFF_FontRec): Add `num_strings', `strings', and `string_pool'
+ fields.
+ Remove `string_index' and `num_global_subrs' fields.
+ Use real types instead of `void' for `pshinter' and `psnames' fields.
+
+ * src/cff/cffload.c: Don't include PS cmaps service.
+ (cff_index_get_pointers): Add `pool' parameter which allows inserting
+ an extra NUL character for each String INDEX entry.
+ (cff_index_get_name): Make it a local function.
+ (cff_index_get_string): New function.
+ (cff_subfont_load): Updated.
+ (cff_font_load): Initialize `num_strings', `strings', and
+ `string_pool' fields in the `CFF_FontRec' structure.
+ (cff_index_get_sid_string): Use `cff_index_get_string' instead of
+ `cff_index_get_name'.
+ (cff_font_done): Updated.
+
+ * src/cff/cffload.h: Don't include PS cmaps service.
+ (cff_index_get_string): Added.
+ (cff_index_get_sid_string): Updated.
+
+ * src/cff/cffobjs.c: Don't include PS cmaps service and
+ FT_INTERNAL_POSTSCRIPT_HINTS_H.
+ (cff_size_get_globals_funcs, cff_slot_init): Updated.
+ (cff_face_init): Follow `cff_index_get_name',
+ `cff_index_get_string', and `cff_index_get_sid_string' changes.
+
+ * src/cff/cffcmap.c (cff_sid_free_glyph_name): Removed.
+ (cff_sid_to_glyph_name): Use `cff_index_get_cid_string'.
+ (cff_cmap_unicode_init): Updated.
+
+ * src/cff/cffdrivr.c: Don't include PS cmap service.
+ (cff_get_glyph_name): Avoid unnecessary lookup for POSTSCRIPT_CMAPS
+ service.
+ (cff_get_glyph_name, cff_ps_get_font_info, cff_get_ros): Follow API
+ `cff_index_get_sid_string' change.
+ (cff_get_name_index): Use `cff_index_get_string' instead of
+ `cff_index_get_name'.
+
+ * src/cff/cffgload.c: Don't include FT_INTERNAL_POSTSCRIPT_HINTS_H.
+ (cff_decoder_init, cff_decoder_prepare): Updated.
+
+2010-02-27 Werner Lemberg <wl@gnu.org>
+
+ Simplify code.
+ Suggested by Behdad.
+
+ * src/base/ftobjs.c (FT_Get_First_Char): Don't use a loop since we
+ call FT_Get_Next_Char anyway if necessary.
+
+2010-02-26 Behdad Esfahbod <behdad@behdad.org>
+
+ Improve handling of invalid glyph indices in char->index functions.
+
+ * src/base/ftobjs.c (FT_Get_First_Char, FT_Get_Next_Char): Use a
+ loop.
+
+2010-02-18 Chris Liddell <chris.liddell@artifex.com>
+
+ [truetype] Fix Savannah bug #28905.
+
+ Initialize phantom points before calling the incremental interface
+ to update glyph metrics.
+
+ * src/truetype/ttgload.c (tt_get_metrics_incr_overrides)
+ [FT_CONFIG_OPTION_INCREMENTAL]: New function, split off from...
+ (tt_get_metrics): This.
+ Updated.
+ (load_truetype_glyph): Use tt_get_metrics_incr_overrides.
+
+----------------------------------------------------------------------------
+
+Copyright (C) 2010-2021 by
+David Turner, Robert Wilhelm, and Werner Lemberg.
+
+This file is part of the FreeType project, and may only be used, modified,
+and distributed under the terms of the FreeType project license,
+LICENSE.TXT. By continuing to use, modify, or distribute this file you
+indicate that you have read the license and understand and accept it
+fully.
+
+
+Local Variables:
+version-control: never
+coding: utf-8
+End:
diff --git a/freetype/docs/oldlogs/ChangeLog.25 b/freetype/docs/oldlogs/ChangeLog.25
new file mode 100644
index 00000000..5d0371c4
--- /dev/null
+++ b/freetype/docs/oldlogs/ChangeLog.25
@@ -0,0 +1,5161 @@
+2014-12-30 Werner Lemberg <wl@gnu.org>
+
+ * Version 2.5.5 released.
+ =========================
+
+
+ Tag sources with `VER-2-5-5'.
+
+ * docs/VERSION.DLL: Update documentation and bump version number to
+ 2.5.5.
+
+ * README, Jamfile (RefDoc), builds/windows/vc2005/freetype.vcproj,
+ builds/windows/vc2005/index.html,
+ builds/windows/vc2008/freetype.vcproj,
+ builds/windows/vc2008/index.html,
+ builds/windows/vc2010/freetype.vcxproj,
+ builds/windows/vc2010/index.html,
+ builds/windows/visualc/freetype.dsp,
+ builds/windows/visualc/freetype.vcproj,
+ builds/windows/visualc/index.html,
+ builds/windows/visualce/freetype.dsp,
+ builds/windows/visualce/freetype.vcproj,
+ builds/windows/visualce/index.html,
+ builds/wince/vc2005-ce/freetype.vcproj,
+ builds/wince/vc2005-ce/index.html,
+ builds/wince/vc2008-ce/freetype.vcproj,
+ builds/wince/vc2008-ce/index.html: s/2.5.4/2.5.5/, s/254/255/.
+
+ * include/freetype/freetype.h (FREETYPE_PATCH): Set to 5.
+
+ * builds/unix/configure.raw (version_info): Set to 17:4:11.
+ * CMakeLists.txt (VERSION_PATCH): Set to 5.
+ * docs/CHANGES: Updated.
+
+ * builds/toplevel.mk (dist): Fix typos.
+
+2014-12-24 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ [base] Formatting and nanooptimizations.
+
+ * src/base/ftcalc.c,
+ * src/base/fttrigon.c: Revise sign restoration.
+
+2014-12-13 Werner Lemberg <wl@gnu.org>
+
+ * src/pcf/pcfread.c (pcf_read_TOC): Improve fix from 2014-12-08.
+
+2014-12-11 Werner Lemberg <wl@gnu.org>
+
+ * builds/toplevel.mk (dist): Use older POSIX standard for `tar'.
+
+ Apparently, BSD tar isn't capable yet of handling POSIX-1.2001
+ (contrary to GNU tar), so force the POSIX-1.1988 format.
+
+ Problem reported by Stephen Fisher <sfisher@SDF.ORG>.
+
+2014-12-11 Werner Lemberg <wl@gnu.org>
+
+ * src/type42/t42parse.c (t42_parse_sfnts): Reject invalid TTF size.
+
+2014-12-11 Werner Lemberg <wl@gnu.org>
+
+ * src/base/ftobjs.c (FT_Get_Glyph_Name): Fix off-by-one check.
+
+ Problem reported by Dennis Felsing <dennis@felsin9.de>.
+
+2014-12-11 Werner Lemberg <wl@gnu.org>
+
+ * src/type42/t42parse.c (t42_parse_sfnts): Check `string_size'.
+
+ Problem reported by Dennis Felsing <dennis@felsin9.de>.
+
+2014-12-09 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ [gxvalid] Fix a naming convention conflicting with ftvalid.
+
+ See previous changeset for otvalid.
+
+ * src/gxvalid/{gxvcommn.h, gxvmort.h, gxvmorx.h}: Replace
+ `valid' by `gxvalid'.
+ * src/gxvalid/{gxvbsln.c, gxvcommn.c, gxvfeat.c, gxvjust.c,
+ gxvkern.c, gxvlcar.c, gxvmort.c, gxvmort0.c, gxvmort1.c,
+ gxvmort2.c, gxvmort4.c, gxvmort5.c, gxvmorx.c, gxvmorx0.c,
+ gxvmorx1.c, gxvmorx2.c, gxvmorx4.c, gxvmorx5.c, gxvopbd.c,
+ gxvprop.c, gxvtrak.c}: Replace `valid' by `gxvalid' if
+ it is typed as GXV_Validator.
+
+2014-12-09 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ [otvalid] Fix a naming convention conflicting with ftvalid.
+
+ Some prototypes in ftvalid.h use `valid' for the variables
+ typed as FT_Validator. Their implementations in src/base/
+ ftobjs.c and utilizations in src/sfnt/ttcmap.c do similar.
+
+ Some macros in otvcommn.h assume the exist of the variable
+ `valid' typed as OTV_Validator in the caller.
+
+ Mixing these two conventions cause invalid pointer conversion
+ and unexpected SEGV in longjmp. To prevent it, all variables
+ typed as OTV_Validator are renamed to `otvalid'.
+
+ * src/otvalid/otvcommn.h: Replace `valid' by `otvalid'.
+ * src/otvalid/{otvcommn.c, otvbase.c, otvgdef.c, otvgpos.c,
+ otvgsub.c, otvjstf.c, otvmath.c}: Replace `valid' by `otvalid'
+ if it is typed as OTV_Validator.
+
+2014-12-09 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ [ftvalid] Introduce FT_THROW() in FT_INVALID_XXX macros.
+
+ Original patch is designed by Werner Lemberg. Extra part
+ for otvalid and gxvalid are added by suzuki toshiya, see
+ discussion:
+ https://lists.nongnu.org/archive/html/freetype-devel/2014-12/msg00002.html
+ https://lists.nongnu.org/archive/html/freetype-devel/2014-12/msg00007.html
+
+ * include/internal/ftvalid.h: Introduce FT_THROW() in FT_INVALID_().
+ * src/gxvalid/gxvcommn.h: Ditto.
+ * src/otvalid/otvcommn.h: Ditto.
+
+2014-12-08 Werner Lemberg <wl@gnu.org>
+
+ [pcf] Fix Savannah bug #43774.
+
+ Work around `features' of X11's `pcfWriteFont' and `pcfReadFont'
+ functions. Since the PCF format doesn't have an official
+ specification, we have to exactly follow these functions' behaviour.
+
+ The problem was unveiled with a patch from 2014-11-06, fixing issue
+ #43547.
+
+ * src/pcf/pcfread.c (pcf_read_TOC): Don't check table size for last
+ element. Instead, assign real size.
+
+2014-12-07 Werner Lemberg <wl@gnu.org>
+
+ Work around a bug in Borland's C++ compiler.
+
+ See
+
+ http://qc.embarcadero.com/wc/qcmain.aspx?d=118998
+
+ for Borland's bug tracker entry.
+
+ Reported by Yuliana Zigangirova <zigangirova@inbox.ru>,
+ https://lists.gnu.org/archive/html/freetype-devel/2014-04/msg00001.html.
+
+ * include/internal/ftvalid.h (FT_ValidatorRec), src/smooth/ftgrays.c
+ (gray_TWorker_): Move `ft_jmp_buf' field to be the first element.
+
+2014-12-07 Werner Lemberg <wl@gnu.org>
+
+ */*: Decorate hex constants with `U' and `L' where appropriate.
+
+2014-12-07 Werner Lemberg <wl@gnu.org>
+
+ [truetype] Prevent memory leak for buggy fonts.
+
+ * src/truetype/ttobjs.c (tt_size_done): Unconditionally call
+ `tt_size_done_bytecode'.
+
+2014-12-06 Werner Lemberg <wl@gnu.org>
+
+ * Version 2.5.4 released.
+ =========================
+
+
+ Tag sources with `VER-2-5-4'.
+
+ * docs/VERSION.DLL: Update documentation and bump version number to
+ 2.5.4.
+
+ * README, Jamfile (RefDoc), builds/windows/vc2005/freetype.vcproj,
+ builds/windows/vc2005/index.html,
+ builds/windows/vc2008/freetype.vcproj,
+ builds/windows/vc2008/index.html,
+ builds/windows/vc2010/freetype.vcxproj,
+ builds/windows/vc2010/index.html,
+ builds/windows/visualc/freetype.dsp,
+ builds/windows/visualc/freetype.vcproj,
+ builds/windows/visualc/index.html,
+ builds/windows/visualce/freetype.dsp,
+ builds/windows/visualce/freetype.vcproj,
+ builds/windows/visualce/index.html,
+ builds/wince/vc2005-ce/freetype.vcproj,
+ builds/wince/vc2005-ce/index.html,
+ builds/wince/vc2008-ce/freetype.vcproj,
+ builds/wince/vc2008-ce/index.html: s/2.5.3/2.5.4/, s/253/254/.
+
+ * include/freetype/freetype.h (FREETYPE_PATCH): Set to 4.
+
+ * builds/unix/configure.raw (version_info): Set to 17:3:11.
+ * CMakeLists.txt (VERSION_PATCH): Set to 4.
+ * docs/CHANGES: Updated.
+
+2014-12-04 Werner Lemberg <wl@gnu.org>
+
+ docs/CHANGES: Updated, formatted.
+
+2014-12-04 Dave Arnold <darnold@adobe.com>
+
+ [cff] Modify an FT_ASSERT.
+
+ * src/cff/cf2hints.c (cf2_hintmap_map): After the fix for Savannah
+ bug #43661, the test font `...aspartam.otf' still triggers an
+ FT_ASSERT. Since hintmap still works with count==0, ...
+ (cf2_glyphpath_lineTo, cf2_glyphpath_curveTo): ... add that term to
+ suppress the assert.
+
+2014-12-04 Dave Arnold <darnold@adobe.com>
+
+ [cff] Fix Savannah bug #43661.
+
+ * src/cff/cf2intrp.c (cf2_interpT2CharString) <cf2_cmdHSTEM,
+ cf2_cmdVSTEM, cf2_cmdHINTMASK>: Don't append to stem arrays after
+ hintmask is constructed.
+
+ * src/cff/cf2hints.c (cf2_hintmap_build): Add defensive code to
+ avoid reading past end of hintmask.
+
+2014-12-03 Werner Lemberg <wl@gnu.org>
+
+ docs/CHANGES: Updated.
+
+2014-12-03 Werner Lemberg <wl@gnu.org>
+
+ [autofit] Better fix for conversion specifiers in debug messages.
+
+ Using `%ld' for pointer differences causes warnings on 32bit
+ platforms. The correct type would be (the relatively new) `%td',
+ however, this is missing on some important platforms.
+
+ This patch improves the change from 2014-11-28.
+
+ * src/autofit/afhints.c (AF_INDEX_NUM): Use `int' typecast. Our
+ pointer differences are always sufficiently small.
+ (af_glyph_hints_dump_points, af_glyph_hints_dump_segments,
+ af_glyph_hints_dump_edge): Revert to `%d' and use `AF_INDEX_NUM'.
+
+2014-12-03 Werner Lemberg <wl@gnu.org>
+
+ FT_Sfnt_Tag: s/ft_sfnt_xxx/FT_SFNT_XXX/ for orthogonality.
+
+ All public FreeType enumeration and flag values are uppercase...
+
+ * include/tttables.h (FT_Sfnt_Tag): Implement it. For backward
+ compatibility, retain the old values as macros.
+
+ * src/base/ftfstype.c (FT_Get_FSType_Flags), src/sfnt/sfdriver.c
+ (get_sfnt_table): Updated.
+
+2014-12-02 Werner Lemberg <wl@gnu.org>
+
+ * include/*: Improve structure of documentation.
+
+ . Add and update many `<Order>' tags.
+ . Apply various documentation fixes.
+ . Remove details to deprecated (or never implemented) data.
+
+2014-12-02 Werner Lemberg <wl@gnu.org>
+
+ [docmaker] Always handle `<Order>' section elements.
+
+ Previously, those elements were handled only for sections present in
+ a `<Sections>' chapter element.
+
+ * src/tools/docmaker/content.py (ContentProcessor::finish):
+ Implement it.
+
+2014-12-02 Werner Lemberg <wl@gnu.org>
+
+ [docmaker] Properly handle empty rows in Synopsis.
+
+ * src/tools/docmaker/tohtml.py (HtmlFormatter::section_enter): Emit
+ `&nbsp;' for empty fields.
+
+2014-12-02 Werner Lemberg <wl@gnu.org>
+
+ [docmaker] Thinko.
+
+ * src/tools/docmaker/content.py (DocBlock::get_markup_words_all):
+ Emit `/empty/' string for first element also.
+
+2014-12-02 Werner Lemberg <wl@gnu.org>
+
+ [docmaker] Honour empty lines in `<Order>' section element.
+
+ This greatly improves the readability of the `Synopsis' links.
+
+ * src/tools/docmaker/content.py (DocBlock::get_markup_words_all):
+ Insert string `/empty/' between items.
+
+ * src/tools/docmaker/formatter.py (Formatter::section_dump): Make it
+ robust against nonexistent keys.
+
+ * src/tools/docmaker/tohtml.py (HtmlFormatter::section_enter): Emit
+ empty <td> elements for `/empty/'.
+
+2014-12-02 Werner Lemberg <wl@gnu.org>
+
+ [docmaker] Ensure Python 3 compatibility.
+
+ * src/tools/docmaker/content.py (ContentProcessor::set_section,
+ ContentProcessor::finish): Replace `has_key' function with `in'
+ keyword.
+
+ * src/tools/docmaker/formatter.py (Formatter::__init__): Replace
+ sorting function with a key generator.
+ (Formatter::add_identifier): Replace `has_key' function with `in'
+ keyword.
+
+ * src/tools/docmaker/tohtml.py (HtmlFormatter::html_source_quote):
+ Replace `has_key' function with `in' keyword.
+ (HtmlFormatter::index_exit, HtmlFormatter::section_enter): Use
+ integer division.
+ s/<>/>/.
+
+ * src/tools/docmaker/utils.py: Import `itertools'.
+ (index_sort): Replaced by...
+ (index_key): ... this new key generator (doing exactly the same).
+
+2014-11-29 Werner Lemberg <wl@gnu.org>
+
+ [docmaker] Don't output a block multiple times.
+
+ This bug was hidden by not processing all lines of `<Order>' blocks.
+
+ * src/tools/docmaker/formatter.py (Formatter::section_dump): Filter
+ out field names.
+
+2014-11-29 Werner Lemberg <wl@gnu.org>
+
+ [docmaker] Use field values as HTML link targets where possible.
+
+ * src/tools/docmaker/tohtml.py (HtmlFormatter::make_block_url):
+ Accept second, optional argument to specify a name.
+ (HtmlFormatter::html_source_quote): Link to field ID if possible.
+ (HtmlFormatter::print_html_field_list): Emit `id' attribute.
+
+2014-11-29 Werner Lemberg <wl@gnu.org>
+
+ [docmaker] Allow empty lines in `<Order>' blocks.
+
+ Before this patch, the suggested order of entries stopped at the
+ first empty line.
+
+ Obviously, nobody noticed that this problem caused a much reduced
+ set of links in the `Synopsis' sections; in particular, the
+ `<Order>' blocks contain a lot of entries that wouldn't be listed
+ otherwise...
+
+ * src/tools/docmaker/content.py (DocBlock::get_markup_words_all):
+ New function to iterate over all items.
+ (DocSection::process): Use it.
+
+2014-11-29 Werner Lemberg <wl@gnu.org>
+
+ * src/tools/docmaker/sources.py (column) [Format 2]: Fix regexp.
+
+ After the single asterisk there must be no other immediately following
+ asterisk.
+
+2014-11-29 Werner Lemberg <wl@gnu.org>
+
+ * src/tools/docmaker/tohtml.py: Improve CSS for vertical spacing.
+
+2014-11-29 Werner Lemberg <wl@gnu.org>
+
+ [docmaker] Improve HTML code for table of contents.
+
+ * src/tools/docmaker/tohtml.py: Introduce a new table class `toc',
+ together with proper CSS.
+
+2014-11-29 Werner Lemberg <wl@gnu.org>
+
+ [docmaker] Provide higher-level markup and simplify HTML.
+
+ * src/tools/docmaker/tohtml.py: Instead of using extraneous `<div>'
+ elements, use CSS descendants (of class `section') to format the
+ data.
+
+ Also remove redundant <p> and <br> elements, replacing them with
+ proper CSS.
+
+ Globally reduce page width to 75%.
+
+ (block_header): Rename <div> class to `section'.
+
+2014-11-29 Werner Lemberg <wl@gnu.org>
+
+ [docmaker] Add `top' links after blocks.
+
+ * src/tools/docmaker/tohtml.py (block_footer_middle): Implement it.
+
+2014-11-29 Werner Lemberg <wl@gnu.org>
+
+ * src/tools/docmaker/tohtml.py: Improve CSS for fields.
+
+ Make fields align horizontally relative to full line width.
+
+2014-11-29 Werner Lemberg <wl@gnu.org>
+
+ * src/tools/docmaker/tohtml.py: Fix index and TOC templates.
+
+ This thinko was introduced 2014-11-27.
+
+2014-11-28 Werner Lemberg <wl@gnu.org>
+
+ [docmaker] Format field lists with CSS.
+
+ This also simplifies the inserted HTML code.
+
+ * src/tools/docmaker/tohtml.py
+ (HtmlFormatter::print_html_field_list): Do it.
+
+2014-11-28 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ Fix compiler warning to the comparison between signed and
+ unsigned variable.
+
+ * src/pfr/pfrsbit.c (pfr_slot_load_bitmap): Fix the comparison
+ between `ypos + ysize' and FT_INT_{MAX,MIN}.
+
+2014-11-28 Werner Lemberg <wl@gnu.org>
+
+ [docmaker] Replace empty `<td>' with CSS.
+
+ * src/tools/docmaker/tohtml.py (HtmlFormatter::section_enter): Do
+ it.
+
+2014-11-28 Werner Lemberg <wl@gnu.org>
+
+ [docmaker] Replace some `<table>' tags with `<h4>' and `<div>'.
+
+ * src/tools/docmaker/tohtml.py (marker_*): Use `<h4>'.
+ (source_*): Use `<div>'.
+ (HtmlFormatter::block_enter): s/<h4>/<h3>/.
+
+2014-11-28 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ Fix compiler warning to conversion specifiers in debug messages.
+
+ * src/autofit/afhints.c (af_glyph_hints_dump_points): Add length
+ modifier to dump long integers.
+ (af_glyph_hints_dump_segments, af_glyph_hints_dump_edges): Ditto.
+
+2014-11-27 Werner Lemberg <wl@gnu.org>
+
+ * src/tools/docmaker/tohtml.py: Use more CSS for index.
+
+2014-11-27 Werner Lemberg <wl@gnu.org>
+
+ [docmaker] Replace `name' attribute of `<a>' with `id'.
+
+ * src/tools/docmaker/tohtml.py (HtmlFormatter::block_enter): Do it.
+
+2014-11-27 Werner Lemberg <wl@gnu.org>
+
+ * src/tools/docmaker/tohtml.py: Remove remaining `width' attributes.
+
+ For `Index' and `TOC' links, we now simply use the `text-align' CSS
+ property of `<td>' to enforce flush-left and flush-right,
+ eliminating the hack with an empty, full-width `<td>' element
+ inbetween.
+
+ The change also enforces the same (smaller) size for all index and
+ TOC links.
+
+2014-11-27 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ * src/cff/cf2font.c: Include `ftcalc.h' to use FT_MSB(),
+ cf2font.c could not find it under `make multi' build.
+
+2014-11-27 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ * src/smooth/ftsmooth.c (ft_smooth_render_generic): Remove
+ unrequired negative value check for `width' and `height'.
+
+2014-11-27 Werner Lemberg <wl@gnu.org>
+
+ * src/tools/docmaker/tohtml.py: More HTML table refactoring.
+
+ Replace some `<table>' tags with `<div>' to simplify structure.
+
+ Move `bgcolor' attribute to CSS.
+
+ Replace most `width' attributes with CSS. The remaining instances
+ (providing a similar effect as LaTeX's `\hfill' command) are removed
+ in a later patch.
+
+2014-11-27 Werner Lemberg <wl@gnu.org>
+
+ * src/tools/docmaker/tohtml.py: Replace <font> with CSS.
+
+2014-11-27 Werner Lemberg <wl@gnu.org>
+
+ * src/tools/docmaker/tohtml.py: Center <table> with CSS.
+
+2014-11-27 Werner Lemberg <wl@gnu.org>
+
+ * src/tools/docmaker/tohtml.py: Replace `<center>' with `<div>'.
+
+2014-11-27 Werner Lemberg <wl@gnu.org>
+
+ * src/tools/docmaker/tohtml.py: Remove redundant `<center>' tags.
+
+ This starts a series of commits into the direction of generating
+ valid HTML 5 code, especially using much more CSS.
+
+2014-11-27 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ Prevent too negative values (< FT_INT_MIN) in bitmap metrics,
+ suggested by Alexei.
+
+ * src/pfr/pfrsbit.c (pfr_slot_load_bitmap): Prevent too
+ negative values in `xpos' and `ypos + ysize'.
+ * src/smooth/ftsmooth.c (ft_smooth_render_generic): Prevent
+ too negative values in `x_left' and `y_top'. Either negative
+ values in `width' and `height' are checked.
+
+2014-11-27 Werner Lemberg <wl@gnu.org>
+
+ [docmaker] Produce better HTML code.
+
+ * src/tools/docmaker/tohtml.py: Always use double quotes for
+ attribute values.
+ (source_footer): Close `td' and `tr' groups.
+
+2014-11-27 Werner Lemberg <wl@gnu.org>
+
+ Use better way to disable creation of .pyc files for `make refdoc'.
+
+ Python 2.6 was released in 2008...
+
+ * builds/freetype.mk (refdoc): Use python's `-B' option.
+
+ * builds/detect.mk (std_setup, dos_setup): Mention required python
+ version for `refdoc' target.
+
+2014-11-27 Werner Lemberg <wl@gnu.org>
+
+ * src/tools/docmaker/sources.py (re_bold, re_italic): Use
+ non-grouping parentheses.
+ * src/tools/docmaker/tohtml.py (HtmlFormatter::make_html_word):
+ Updated.
+
+2014-11-27 Werner Lemberg <wl@gnu.org>
+
+ * src/base/ftobjs.c (FT_Get_Glyph_Name): Fix compiler warning.
+
+ Introduced in previous change. Reported by Alexei.
+
+2014-11-26 Werner Lemberg <wl@gnu.org>
+
+ * src/*: Add checks for parameters of API functions where missing.
+
+ `API functions' are functions tagged with `FT_EXPORT_DEF'.
+
+ Besides trivial fixes, the following changes are included, too.
+
+ * src/base/ftbdf.c (FT_Get_BDF_Charset_ID, FT_Get_BDF_Property): Set
+ error code if no service is available.
+
+ * src/base/ftinit.c (FT_Done_FreeType): Change return value for
+ invalid `library' parameter to `Invalid_Library_Handle'.
+
+ * src/base/ftobjs.c (FT_New_Size): Change return value for invalid
+ `asize' parameter to `Invalid_Argument'.
+
+ * src/base/ftoutln.c (FT_Outline_Copy): Change return value for
+ invalid `source' and `target' parameters to `Invalid_Outline'.
+ (FT_Outline_Done_Internal): Change return value for invalid
+ `outline' parameter to `Invalid_Outline'.
+
+2014-11-26 Werner Lemberg <wl@gnu.org>
+
+ * src/cache/ftcbasic.c: Use single calls to `FT_TRACE'.
+
+2014-11-26 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ * src/base/ftobjs.c (Mac_Read_POST_Resource): Additional
+ overflow check in the summation of POST fragment lengths,
+ suggested by Mateusz Jurczyk <mjurczyk@google.com>.
+
+2014-11-26 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ * src/base/ftobjs.c (Mac_Read_POST_Resource): Insert comments
+ and fold too long tracing messages.
+
+2014-11-26 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ Fix Savannah bug #43540.
+
+ * src/base/ftmac.c (parse_fond): Prevent a buffer overrun
+ caused by a font including too many (> 63) strings to store
+ names[] table.
+
+2014-11-26 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ * src/base/ftobjs.c (Mac_Read_POST_Resource): Use unsigned long
+ variables to read the lengths in POST fragments. Suggested by
+ Mateusz Jurczyk <mjurczyk@google.com>.
+
+2014-11-26 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ Fix Savannah bug #43539.
+
+ * src/base/ftobjs.c (Mac_Read_POST_Resource): Fix integer overflow
+ by a broken POST table in resource-fork.
+
+2014-11-26 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ Fix Savannah bug #43538.
+
+ * src/base/ftobjs.c (Mac_Read_POST_Resource): Fix integer overflow
+ by a broken POST table in resource-fork.
+
+2014-11-26 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ * src/base/ftobjs.c (Mac_Read_POST_Resource): Avoid memory leak
+ by a broken POST table in resource-fork. Return after freeing
+ the buffered POST table when it is found to be broken.
+
+2014-11-25 Werner Lemberg <wl@gnu.org>
+
+ */*: s/Invalid_Argument/Invalid_Size_Handle/ where appropriate.
+
+2014-11-25 Werner Lemberg <wl@gnu.org>
+
+ */*: s/Invalid_Argument/Invalid_Stream_Handle/ where appropriate.
+
+2014-11-25 Werner Lemberg <wl@gnu.org>
+
+ */*: s/Invalid_Argument/Invalid_Library_Handle/ where appropriate.
+
+2014-11-25 Werner Lemberg <wl@gnu.org>
+
+ */*: s/Invalid_Argument/Invalid_Outline/ where appropriate.
+
+2014-11-25 Werner Lemberg <wl@gnu.org>
+
+ */*: s/Invalid_Argument/Invalid_Face_Handle/ where appropriate.
+
+2014-11-24 Werner Lemberg <wl@gnu.org>
+
+ [Savannah bug #43682] Adjust some renderer callbacks.
+
+ * src/raster/ftraster.c (ft_black_set_mode): Change return type to
+ `int' to stay in sync with `FT_Renderer_SetModeFunc' prototype.
+
+ * src/smooth/ftgrays.c (gray_raster_set_mode): New dummy function
+ for orthogonality.
+ (ft_grays_raster): Use it.
+
+2014-11-25 Werner Lemberg <wl@gnu.org>
+
+ [Savannah bug #43682] Properly handle missing return errors.
+
+ The functions in this patch *do* return non-trivial errors that must
+ be taken care of.
+
+ * src/autofit/afloader.c (af_loader_load_g), src/base/ftobjs.c
+ (FT_Render_Glyph_Internal), src/base/ftoutln.c (FT_Outline_Render),
+ src/cff/cffgload.c (cff_decoder_parse_charstrings) <cff_op_endchar>,
+ src/psaux/psobjs.c (ps_parser_load_field_table), src/psaux/t1decode
+ (t1_decoder_parse_charstrings) <op_endchar>, src/truetype/ttgload.c
+ (load_truetype_glyph <subglyph loop>, tt_loader_init,
+ TT_Load_Glyph), src/truetype/ttgxvar.c (TT_Set_MM_Blend),
+ src/truetype/ttobjs.c (tt_size_run_fpgm, tt_size_run_prep): Do it.
+
+2014-11-25 Werner Lemberg <wl@gnu.org>
+
+ [Savannah bug #43682] Add/remove `void' casts to some functions.
+
+ We use a cast to indicate that we intentionally ignore a function's
+ return value. However, this doesn't apply to API functions where
+ errors can only happen for trivially invalid input.
+
+ * src/base/ftstroke.c (FT_Glyph_Stroke, FT_Glyph_StrokeBorder),
+ src/base/ftsynth.c (FT_GlyphSlot_Embolden), src/cff/cffgload.c
+ (cff_slot_load), src/pfr/pfrdrivr.c (pfr_get_kerning),
+ src/type1/t1load.c (parse_encoding), src/type42/t42parse.c
+ (t42_parse_encoding): Do it.
+
+2014-11-25 Werner Lemberg <wl@gnu.org>
+
+ [Savannah bug #43682] Change some signatures to `void' return type.
+
+ * include/internal/pshints.h (PSH_Globals_SetScaleFunc),
+ include/internal/sfnt.h (TT_Get_Metrics_Func),
+ src/pshinter/pshglob.c (psh_globals_set_scale),
+ src/pshinter/pshrec.c (ps_hints_init), src/sfnt/ttmtx.c
+ (tt_face_get_metrics), src/truetype/ttinterp.c (TT_Goto_CodeRange,
+ TT_Set_CodeRange, TT_Clear_CodeRange, TT_Done_Context,
+ TT_Save_Context): Do it.
+
+ * src/pshinter/pshglob.h, src/pshinter/pshrec.h, src/sfnt/ttmtx.h,
+ src/truetype/ttgload.c (TT_Hint_Glyph), src/truetype/ttinterp.c
+ (TT_Run_Context), src/truetype/ttinterp.h, src/truetype/ttobjs.c
+ (tt_size_run_fpgm, tt_size_run_prep): Updated.
+
+2014-11-24 Werner Lemberg <wl@gnu.org>
+
+ Remove all code related to FT_MAX_CHARMAP_CACHEABLE.
+
+ This is no longer used.
+
+ * src/base/ftobjs.c, src/cache/ftccmap.c, src/cff/cffobjs.c,
+ src/sfnt/ttcmap.c: Do it.
+
+2014-11-24 Werner Lemberg <wl@gnu.org>
+
+ [sfnt] Fix Savannah bug #43680.
+
+ This adds an additional constraint to make the fix from 2013-01-25
+ really work.
+
+ * src/sfnt/ttsbit.c (tt_sbit_decoder_load_image) <index_format==4>:
+ Check `p' before `num_glyphs'.
+
+2014-11-24 Werner Lemberg <wl@gnu.org>
+
+ [truetype] Fix Savannah bug #43679.
+
+ * src/truetype/ttpload.c (tt_face_load_hdmx): Check minimum size of
+ `record_size'.
+
+2014-11-24 Jarkko Pöyry <jarkko.poyry@gmail.com>
+
+ [cff, pfr, psaux, winfonts] Fix Savannah bug #43676.
+
+ Don't cast cmap init function pointers to an incompatible type.
+
+ Without this patch, the number of parameters between declaration and
+ the real signature differs. Calling such a function results in
+ undefined behavior.
+
+ ISO/IEC 9899:TC3 (Committee Draft September 7, 2007)
+ 6.5.2.2 Function calls
+ 9 If the function is defined with a type that is not
+ compatible with the type (of the expression) pointed to by
+ the expression that denotes the called function, the
+ behavior is undefined.
+
+ On certain platforms (c -> js with emscripten) this causes
+ termination of execution or invalid calls because in the emscripten
+ implementation, function pointers of different types are stored in
+ different pointer arrays. Incorrect pointer type here results in
+ indexing of an incorrect array.
+
+ * src/cff/cffcmap.c (cff_cmap_encoding_init, cff_cmap_unicode_init),
+ src/pfr/pfrcmap.c (pfr_cmap_init), src/psaux/t1cmap.c
+ t1_cmap_standard_init, t1_cmap_expert_init, t1_cmap_custom_init,
+ t1_cmap_unicode_init), src/winfonts/winfnt.c (fnt_cmap_init): Fix
+ signature.
+
+2014-11-24 Werner Lemberg <wl@gnu.org>
+
+ [sfnt] Fix Savannah bug #43672.
+
+ * src/sfnt/ttkern.c (tt_face_load_kern): Use correct value for
+ minimum table length test.
+
+2014-11-24 Werner Lemberg <wl@gnu.org>
+
+ [type1, type42] Another fix for Savannah bug #43655.
+
+ * src/type1/t1load.c (parse_charstrings), src/type42/t42parse.c
+ (t42_parse_charstrings): Add another boundary testing.
+
+2014-11-24 Werner Lemberg <wl@gnu.org>
+
+ [docmaker] Formatting, copyright, improved documentation.
+
+ * src/tools/docmaker/*: No code changes besides trivial
+ modifications.
+
+2014-11-22 Werner Lemberg <wl@gnu.org>
+
+ [bdf] Fix Savannah bug #43660.
+
+ * src/bdf/bdflib.c (_bdf_parse_glyphs) <"ENDFONT">: Check
+ `_BDF_GLYPH_BITS'.
+
+2014-11-22 Werner Lemberg <wl@gnu.org>
+
+ [type42] Allow only embedded TrueType fonts.
+
+ This is a follow-up to Savannah bug #43659.
+
+ * src/type42/t42objs.c (T42_Face_Init): Exclusively use the
+ `truetype' font driver for loading the font contained in the `sfnts'
+ array.
+
+2014-11-22 Werner Lemberg <wl@gnu.org>
+
+ [type42] Fix Savannah bug #43659.
+
+ * src/type42/t42objs.c (T42_Open_Face): Initialize `face->ttf_size'.
+
+ * src/type42/t42parse.c (t42_parse_sfnts): Always set
+ `face->ttf_size' directly. This ensures a correct stream size in
+ the call to `FT_Open_Face', which follows after parsing, even for
+ buggy input data.
+ Fix error messages.
+
+2014-11-22 Werner Lemberg <wl@gnu.org>
+
+ [cff] Fix Savannah bug #43658.
+
+ * src/cff/cf2ft.c (cf2_builder_lineTo, cf2_builder_cubeTo): Handle
+ return values of point allocation routines.
+
+2014-11-22 Werner Lemberg <wl@gnu.org>
+
+ [sfnt] Fix Savannah bug #43656.
+
+ * src/sfnt/ttcmap.c (tt_cmap4_validate): Fix order of validity
+ tests.
+
+2014-11-21 Werner Lemberg <wl@gnu.org>
+
+ [type1, type42] Fix Savannah bug #43655.
+
+ * src/type1/t1load.c (parse_charstrings), src/type42/t42parse.c
+ (t42_parse_charstrings): Fix boundary testing.
+
+2014-11-21 Werner Lemberg <wl@gnu.org>
+
+ * src/pcf/pcfread.c (pcf_get_metrics): Sanitize invalid metrics.
+
+2014-11-21 Werner Lemberg <wl@gnu.org>
+
+ [ftlcdfil] Obey flow direction.
+
+ * src/base/ftlcdfil.c (_ft_lcd_filter_fir, _ft_lcd_filter_legacy):
+ Handle `up' flow.
+
+2014-11-21 Werner Lemberg <wl@gnu.org>
+
+ * src/base/ftbitmap.c (FT_Bitmap_Convert): Improve.
+
+ This commit completes argument checks and adds support for different
+ flow directions.
+
+2014-11-21 Werner Lemberg <wl@gnu.org>
+
+ * src/base/ftbitmap.c (FT_Bitmap_Copy): Improve.
+
+ This commit adds argument checks and support for different flow
+ directions.
+
+2014-11-20 Werner Lemberg <wl@gnu.org>
+
+ * src/base/ftbitmap.c (FT_Bitmap_New): Check argument.
+
+2014-11-19 Werner Lemberg <wl@gnu.org>
+
+ Change some fields in `FT_Bitmap' to unsigned type.
+
+ This doesn't break ABI.
+
+ * include/ftimage.h (FT_Bitmap): Make `rows', `width', `num_grays',
+ `pixel_mode', and `palette_mode' unsigned types.
+
+ * src/base/ftbitmap.c: Updated.
+ (FT_Bitmap_Copy): Fix casts.
+
+ * src/cache/ftcsbits.c, src/raster/ftraster.c, src/sfnt/pngshim.c:
+ Updated.
+
+2014-11-19 Werner Lemberg <wl@gnu.org>
+
+ Make `FT_Bitmap_Convert' correctly handle negative `pitch' values.
+
+ * src/base/ftbitmap.c (FT_Bitmap_Convert): Always use positive value
+ for the pitch while copying data.
+ Correctly set pitch sign in target bitmap.
+
+2014-11-19 Werner Lemberg <wl@gnu.org>
+
+ Minor code improvement in `FT_Bitmap_Embolden'.
+
+ * src/base/ftbitmap.c (FT_Bitmap_Embolden) <FT_PIXEL_MODE_GRAY[24]>:
+ Fix thinko.
+
+2014-11-19 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ * src/base/fttrigon.c: Use dedicated `FT_Angle' for arctan table.
+
+2014-11-19 Behdad Esfahbod <behdad@behdad.org>
+
+ Avoid compiler warnings on x86-64 for `FT_MulFix'.
+
+ `FT_MulFix' takes `FT_Long' parameters as defined in `freetype.h',
+ but several inline implementations of it in `ftcalc.h' take
+ `FT_Int32' arguments. This is causing compiler warnings on x86-64:
+ If parameters of type `FT_Fixed' (= `FT_Long') are passed to the
+ inline implementation of this function, integer values are truncated
+ from 64bit to 32bit.
+
+ * include/internal/ftcalc.h (FT_MulFix) [FT_MULFIX_ASSEMBLER]: Add
+ casts.
+
+2014-11-15 Werner Lemberg <wl@gnu.org>
+
+ [sfnt] Fix Savannah bug #43597.
+
+ * src/sfnt/pngshim.c (Load_SBit_Png): Protect against too large
+ bitmaps.
+
+2014-11-12 Werner Lemberg <wl@gnu.org>
+
+ [sfnt] Fix Savannah bug #43591.
+
+ * src/sfnt/ttsbit.c (tt_sbit_decoder_init): Protect against addition
+ and multiplication overflow.
+
+2014-11-12 Werner Lemberg <wl@gnu.org>
+
+ [sfnt] Fix Savannah bug #43590.
+
+ * src/sfnt/ttload.c (check_table_dir, tt_face_load_font_dir):
+ Protect against addition overflow.
+
+2014-11-12 Werner Lemberg <wl@gnu.org>
+
+ [sfnt] Fix Savannah bug #43589.
+
+ * src/sfnt/sfobjs.c (woff_open_font): Protect against addition
+ overflow.
+
+2014-11-12 Werner Lemberg <wl@gnu.org>
+
+ [sfnt] Fix Savannah bug #43588.
+
+ * src/sfnt/ttcmap.c (tt_cmap8_validate, tt_cmap10_validate,
+ tt_cmap12_validate, tt_cmap13_validate, tt_cmap14_validate): Protect
+ against overflow in additions and multiplications.
+
+2014-11-10 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ [base] CORDIC improvements.
+
+ The scaling between the hypotenuse and its CORDIC approximation is
+ based on regression analysis. The smaller padding for `theta' is
+ justified by its maximum error of less than 6.
+
+ * src/base/fttrigon.c (ft_trig_downscale): Borrow code from
+ ./ftcalc.c (ft_multo64), change linear intercept.
+ (ft_trig_pseudo_polarize): Decrease `theta' padding.
+
+2014-11-09 Werner Lemberg <wl@gnu.org>
+
+ * src/base/ftstroke.c (ft_stroker_inside): Fix border intersections.
+
+ One more place to check whether `radius' is zero.
+
+ Problem reported by Marco Wertz <marco.wertz@gmx.de>.
+
+2014-11-07 Werner Lemberg <wl@gnu.org>
+
+ [bdf] Fix Savannah bug #43535.
+
+ * src/bdf/bdflib.c (_bdf_strncmp): New macro that checks one
+ character more than `strncmp'.
+ s/ft_strncmp/_bdf_strncmp/ everywhere.
+
+2014-11-06 Werner Lemberg <wl@gnu.org>
+
+ [pcf] Fix Savannah bug #43548.
+
+ * src/pcf/pcfread.c (pcf_get_encodings): Add sanity checks for row
+ and column values.
+
+2014-11-06 Werner Lemberg <wl@gnu.org>
+
+ [pcf] Fix Savannah bug #43547.
+
+ * src/pcf/pcfread.c (pcf_read_TOC): Check `size' and `offset'
+ values.
+
+2014-11-06 Werner Lemberg <wl@gnu.org>
+
+ * src/pcf/pcfread.c (pcf_read_TOC): Avoid memory leak.
+
+2014-11-03 Infinality <infinality@infinality.net>
+
+ * src/truetype/ttsubpix.c (COMPATIBILITY_MODE_Rules): Updated.
+
+ The previous commit deteriorates rendering of DejaVu and similar
+ fonts; this gets compensated with this rule.
+
+2014-11-03 Werner Lemberg <wl@gnu.org>
+
+ * src/truetype/ttinterp.c (Ins_DELTAP): Fix subpixel hinting.
+
+ Before this patch, it was impossible to ever call DELTAP[123] in
+ subpixel hinting mode as described in the ClearType whitepaper; it
+ only worked if in `compatibility mode'. However, compatibility mode
+ essentially disables SHPIX, completely ruining hinting of
+ ttfautohint output, for example.
+
+ We now follow the whitepaper more closely so that DELTAP[123]
+ instructions for touched points in the non-subpixel direction are
+ executed.
+
+2014-10-31 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ [smooth] Improve code readability.
+
+ * src/smooth/ftsmooth.c (ft_smooth_render_generic): Rearrange code.
+
+2014-10-31 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ [smooth] Reduce outline translations during rendering.
+
+ * src/smooth/ftsmooth.c (ft_smooth_render_generic): Translate origin
+ virtually by modifying cbox, actually translate outline if cumulative
+ shift is not zero.
+
+2014-10-30 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ [smooth] Fix Savannah bug #35604 (cont'd).
+
+ * src/smooth/ftsmooth.c (ft_smooth_render_generic): Remove checks and
+ casts that became unnecessary after the variable type upgrades.
+
+2014-10-29 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ [smooth] Improve code readability.
+
+ * src/smooth/ftsmooth.c (ft_smooth_render_generic): Rearrange code.
+
+2014-10-29 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ Unify hypotenuse approximations.
+
+ * include/internal/ftcalc.h (FT_HYPOT): Move macro from here...
+ * include/internal/ftobjs.h: ... to here, next to required `FT_ABS'.
+ * src/smooth/ftgrays.c (gray_render_cubic): Use it here.
+
+2014-10-25 Werner Lemberg <wl@gnu.org>
+
+ [cff] Test valid darkening parameter macros in `ftoption.h'.
+
+ We no longer need an otherwise unused typedef that can cause a gcc
+ warning.
+ Problem reported by Alexei.
+
+ * src/cff/cffobjs.c (cff_driver_init): Use
+ `CFF_CONFIG_OPTION_DARKENING_PARAMETER_XXX' macros directly.
+ (SET_DARKENING_PARAMETERS): Removed.
+ Compile time tests are now ...
+
+ * devel/ftoption.h, include/config/ftoption.h: ... here.
+
+2014-10-25 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ Improve flat corner definition.
+
+ * include/internal/ftcalc.h (FT_HYPOT): Macro to approximate Euclidean
+ distance with the alpha max plus beta min algorithm.
+ * src/base/ftcalc.c (ft_corner_is_flat): Use it instead of Taxicab
+ metric.
+
+2014-10-23 David Weiß <David.Weiss@ptvgroup.com>
+
+ [build] Improve property file for vc2010.
+
+ User-defined properties should be empty by default to prevent linker
+ failures.
+
+ * builds/windows/vc2010/freetype.user.props,
+ builds/windows/vc2010/freetype.vcxproj:
+ s/OptionsDirectory/UserOptionDirectory/.
+ Comment out all user options.
+
+2014-10-23 Werner Lemberg <wl@gnu.org>
+
+ [cff] Work around bug in preprocessor of MSVC 2010.
+
+ We have been hit by
+
+ https://connect.microsoft.com/VisualStudio/feedback/details/718976/msvc-pr
+
+ * devel/ftoption.h, include/config/ftoption.h: Replace
+ `CFF_CONFIG_OPTION_DARKENING_PARAMETERS' with eight macros
+ `CFF_CONFIG_OPTION_DARKENING_PARAMETER_{X,Y}{1,2,3,4}'.
+
+ * src/cff/cffobjs.c (SET_DARKENING_PARAMETERS): Removed. We no
+ longer need double expansion.
+ (SET_DARKENING_PARAMETERS_0): Renamed to ...
+ (SET_DARKENING_PARAMETERS): ... this.
+ Update call.
+
+2014-10-20 Werner Lemberg <wl@gnu.org>
+
+ [sbit] Minor fixes.
+
+ * src/sfnt/ttsbit.c (tt_face_load_sbit) [TT_SBIT_TABLE_TYPE_SBIX]:
+ Accept overlay format also, but emit warning message in that case.
+ (tt_sbit_decoder_load_metrics): Add missing newline to error
+ message.
+ (tt_sbit_load_sbix_image): Add `rgbl' graphic type (as used on iOS
+ 7.1) to the list of unsupported formats.
+
+2014-10-19 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ [truetype] Clean up bytecode rounding.
+
+ Zero distance does not have to be treated specially if you follow
+ specifications and check the sign as the very last step of rounding.
+
+ * src/truetype/ttinterp.c (Round_None, Round_To_Grid,
+ Round_Down_To_Grid, Round_Up_To_Grid, Round_To_Double_Grid): Use
+ macros when available, do not check for non-zero distance.
+ (Round_To_Half_Grid, Round_Super, Round_Super_45): Ditto, return phase
+ if sign changed.
+
+2014-10-18 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ [truetype] Unwrap engine compensation settings.
+
+ * src/truetype/ttobjs.c (tt_size_init_bytecode): Updated.
+
+2014-10-18 David Weiß <David.Weiss@ptvgroup.com>
+
+ [build] Add property file to vc2010 project.
+
+ This simplifies custom build configurations, especially for
+ automated build environments.
+
+ * builds/windows/vc2010/freetype.user.props: New configuration file.
+
+ * builds/windows/vc2010/freetype.vcxproj: Include
+ `freetype.user.props' and use its data fields.
+
+ * builds/windows/vc2010/index.html: Updated.
+
+2014-10-18 Werner Lemberg <wl@gnu.org>
+
+ [autofit] Add blue-zone support for Telugu.
+
+ This essentially moves the Telugu script from the `Indic' hinter to
+ the `Latin' hinter.
+
+ Note that this is a first shot and quite certainly needs
+ refinements.
+
+ * src/autofit/afblue.dat: Add blue zone data for Telugu.
+
+ * src/autofit/afblue.c, src/autofit/afblue.h: Regenerated.
+
+ * src/autofit/afscript.h: Add Telugu standard characters and move
+ data out of AF_CONFIG_OPTION_INDIC block.
+
+ * src/autofit/afranges.c: Move Telugu data out of
+ AF_CONFIG_OPTION_INDIC block.
+
+ * src/autofit/afstyles.h: Update Telugu data; in particular, use
+ AF_WRITING_SYSTEM_LATIN.
+
+2014-10-18 David Wimsey <david@wimsey.us>
+
+ [cmake] Add iOS build support.
+ From Savannah patch #8497.
+
+ * builds/cmake/iOS.cmake: New file. Universal binaries are built
+ with both 32 and 64 bit arm architectures.
+
+ * CMakeLists.txt (IOS_PLATFORM): New variable for running the iOS
+ toolchain. Possible values are `OS' to build on iOS, or
+ `SIMULATOR' to build on APPLE.
+
+2014-10-16 Behdad Esfahbod <behdad@behdad.org>
+ Werner Lemberg <wl@gnu.org>
+
+ [cff] Add `CFF_CONFIG_OPTION_DARKENING_PARAMETERS' config macro.
+
+ * devel/ftoption.h, include/config/ftoption.h
+ (CFF_CONFIG_OPTION_DARKENING_PARAMETERS): New macro.
+
+ * src/cff/cffobjs.c (SET_DARKENING_PARAMETERS,
+ SET_DARKENING_PARAMETERS_0): New macros.
+ (cff_driver_init): Use new macros.
+
+2014-10-14 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ [truetype] Limit delta shift range.
+
+ The valid range for delta shift is zero through six. Negative values
+ are invalid according to
+
+ https://developer.apple.com/fonts/TrueType-Reference-Manual/RM04/Chap4.html#delta%20shift
+
+ * src/truetype/ttobjs.h (delta_shift, delta_base): Make unsigned.
+ * src/truetype/ttinterp.h (DO_SDS): Throw an error if `delta_shift'
+ is out of range.
+ (Ins_DELTAP, Ins_DELTAC): Optimize for valid `delta_shift'.
+
+2014-10-16 Werner Lemberg <wl@gnu.org>
+
+ A better fix for Savannah bug #43392.
+ Suggested by Doug Felt <dougfelt@gmail.com>.
+
+ * src/sfnt/ttsbit.c (tt_sbit_decoder_load_metrics): Set
+ `vertAdvance' to zero...
+
+ * src/truetype/ttgload.c (TT_Load_Glyph): ... and set here a default
+ value for `vertAdvance' based on `linearVertAdvance' in case
+ `vertAdvance' is zero. Note that the previous computed ad-hoc value
+ for `linearVertAdvance' was apparently not tested in a real-life
+ situation.
+
+2014-10-14 David Weiß <David.Weiss@ptvgroup.com>
+
+ [build] Better optimization settings for vc2010 solution file.
+
+ * builds/windows/vc2010/freetype.sln,
+ builds/windows/vc2010/freetype.vcxproj: Updated.
+
+2014-10-14 Werner Lemberg <wl@gnu.org>
+
+ [autofit] Adjust Devanagari character range.
+
+ * src/autofit/afranges.c (af_deva_uniranges): Omit characters that
+ are common to all other Indic scripts.
+
+2014-10-12 Werner Lemberg <wl@gnu.org>
+
+ [sfnt] Fix Savannah bug #43392.
+
+ * src/sfnt/ttsbit.c (tt_sbit_decoder_load_metrics): Don't let
+ vertical metrics uninitialized.
+
+2014-10-11 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ [base] Small bbox correction.
+
+ * src/base/ftbbox.c (FT_Outline_Get_BBox): Start from nonsense bbox
+ instead of initial point that could be `off' in conic outlines.
+
+2014-10-08 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ [base] Fix Savannah bug #43356.
+
+ * src/base/ftbbox.c (BBox_Move_To, BBox_Conic_To): Update bbox in case
+ of implicit `to'.
+ (BBox_Line_To): New emitter that does not update bbox.
+
+2014-10-08 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ [base] Introduce and use new macro `FT_UPDATE_BBOX'
+
+ * src/base/ftbbox.c (FT_UPDATE_BBOX): New macro.
+ (FT_Outline_Get_BBox): Use it here.
+
+2014-10-02 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ [base] Significant optimization of `ft_div64by32'
+
+ We shift as many bits as we can into the high register, perform
+ 32-bit division with modulo there, then work through the remaining
+ bits with long division. This optimization is especially noticeable
+ for smaller dividends that barely use the high register.
+
+ * src/base/ftcalc.c (ft_div64by32): Updated.
+
+2014-10-02 Dave Arnold <darnold@adobe.com>
+
+ [cff] Fix Savannah bug #43271.
+
+ * src/cff/cf2font.c (cf2_computeDarkening): Change overflow
+ detection to use logarithms and clamp `scaledStem'.
+
+2014-10-01 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ * src/base/ftcalc.c: Remove miscellaneous type casts.
+
+2014-10-01 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ [base] Use more common `FT_MSB' implementation with masks.
+
+ * src/base/ftcalc.c (FT_MSB): Updated.
+
+2014-09-30 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ [base] Clean up.
+
+ * src/base/ftcalc.c (FT_MOVE_SIGN): New macro for frequently used
+ code.
+
+2014-09-25 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ [base] Avoid unnecessary long division.
+
+ This applies to `FT_MulDiv' but not to `FT_DivFix', where overflows or
+ lack thereof are predicted accurately.
+
+ * src/base/ftcalc.c (ft_div64by32): Improve readability.
+ (FT_MulDiv, FT_MulDiv_No_Round) [!FT_LONG64]: Use straight division
+ when multiplication stayed within 32 bits.
+
+2014-09-24 Werner Lemberg <wl@gnu.org>
+
+ [autofit] Minor clean-ups.
+
+ * src/autofit/afhints.c (AF_FLAGS): Remove obsolete values.
+
+ * src/autofit/afhints.c (af_glyph_hints_dump_points,
+ af_glyph_hints_align_strong_points): Updated.
+
+ * src/autofit/aflatin.c (af_latin_hints_link_segments,
+ af_latin_hints_compute_segments), src/autofit/afcjk.c
+ (af_cjk_hints_link_segments), src/autofit/aflatin2.c
+ (af_latin2_hints_link_segments, af_latin2_hints_compute_segments):
+ There are no longer fake segments since more than 10 years...
+
+2014-09-22 Werner Lemberg <wl@gnu.org>
+
+ [autofit] Minor code streamlining.
+
+ * src/autofit/afhints.c (af_axis_hints_new_edge): Remove redundant
+ initialization.
+
+2014-09-19 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ * src/base/ftcalc.c: Harmonize code.
+
+2014-09-15 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ [base] Tighten the overflow check in `FT_MulDiv'.
+
+ * src/base/ftcalc.c (FT_MulDiv) [!FT_LONG64]: Updated.
+
+2014-09-08 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ Fix Savannah bug #43153.
+
+ * src/psaux/psconv.c (PS_Conv_ToFixed): Add protection against
+ overflow in `divider'.
+
+2014-09-03 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ [base] Tighten the overflow check in `FT_DivFix'.
+
+ This fixes a 13-year old bug. The original overflow check should have
+ been updated when rounding was introduced into this function
+ (c2cd00443b).
+
+ * src/base/ftcalc.c (FT_DivFix) [!FT_LONG64]: Updated.
+ * include/freetype.h (FT_DivFix): Updated documentation.
+
+2014-09-03 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ [base] Tighten the overflow check in `FT_MulFix'.
+
+ * src/base/ftcalc.c (FT_MulFix) [!FT_LONG64]: Updated.
+
+2014-09-02 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ [truetype] Shortcut ppem calculations for square pixels.
+
+ * src/truetype/ttinterp.h (TT_ExecContextRec): New field
+ `cur_ppem_func' with a function pointer.
+ * src/truetype/ttinterp.c (TT_RunIns): Initialize `cur_ppem_func'
+ depending on the pixel geometry to either...
+ (Current_Ppem_Stretched): ... this for stretched pixels.
+ (Current_Ppem): ... or this for square pixels.
+ (DO_MPPEM, DO_MPS, Ins_DELTAP, Ins_DELTAC): Use `cur_ppem_func'.
+
+2014-08-31 Behdad Esfahbod <behdad@behdad.org>
+
+ Don't use `register' keyword. Fixes compiler warnings.
+
+ * src/base/ftcalc.c (FT_Add64) [!FT_LONG64]: Do it.
+ * src/gzip/inftrees.c (huft_build): Ditto.
+ * src/truetype/ttinterp.c (TT_MulFix14_arm): Ditto.
+
+2014-08-24 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ [truetype] Optimize DELTAP and DELTAC.
+
+ * src/truetype/ttinterp.c (Ins_DELTAP, Ins_DELTAC): Move ppem
+ calculations outside of the loop.
+
+2014-08-21 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ Fix Savannah bug #43033.
+
+ * include/config/ftconfig.h, builds/unix/ftconfig.in,
+ builds/vms/ftconfig.h [FT_LONG64]: Do not disable the macro when
+ 64-bit type is `long'.
+
+2014-08-20 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ [base] Small optimization of `FT_MulFix'.
+
+ * src/base/ftcalc.c (FT_MulFix): Loosen up the condition for direct
+ 32-bit calculations.
+
+2014-08-19 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ [base] Use unsigned calculation in `FT_MulDiv'.
+
+ * src/base/ftcalc.c (FT_MulDiv): Updated to expand 32-bit range.
+
+2014-08-18 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ [base] Remove truncation in `FT_DivFix'.
+
+ * src/base/ftcalc.c (FT_DivFix): Updated.
+
+2014-08-14 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ Minor refactoring.
+
+ * src/base/ftcalc.c (FT_MulDiv, FT_MulDiv_No_Round): Updated.
+
+2014-08-14 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ Turn FT_MSB into a macro when using gcc builtins.
+
+ * src/base/ftcalc.c, include/internal/ftcalc.h: Updated.
+
+2014-08-12 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ [base] Avoid undefined FT_MSB in `BBox_Cubic_Check'.
+
+ * src/base/ftbbox.c (BBox_Cubic_Check): Update.
+ (update_cubic_max): Replace with...
+ (cubic_peak): ... this, which now handles upscaling.
+
+2014-08-11 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ [base] Handle collapsed outlines to avoid undefined FT_MSB.
+
+ * src/base/ftoutln.c (FT_Outline_Get_Orientation): Update.
+
+2014-08-11 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ [base] Restore FT_MulFix inlining.
+
+ * include/freetype.h (FT_MulFix): Unconditionally defined.
+
+ * src/base/ftcalc.c [FT_MULFIX_ASSEMBLER]: Move code from here...
+
+ * include/internal/ftcalc.h [FT_MULFIX_ASSEMBLER]: ... to here,
+ which conditionally replaces the function with an inline version
+ through the macro.
+
+2014-08-08 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ * src/base/ftbitmap.c (ft_gray_for_premultiplied_srgb_bgra): Refactor.
+
+2014-07-26 Werner Lemberg <wl@gnu.org>
+
+ [cff] Fix typo.
+
+ * src/cff/cf2hints.c (cf2_glyphpath_computeOffset): Use correct
+ offsets in third quadrant.
+
+ Reported by maks <maksqwe1@ukr.net>.
+
+2014-07-17 Werner Lemberg <wl@gnu.org>
+
+ Fix Savannah bug #42788.
+
+ * src/pfr/pfrobjs.c: Include `ftcalc.h'.
+
+2014-07-16 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ Replace `ft_highpow2' function.
+
+ * src/pfr/pfrobjs.c (pfr_face_get_kerning): Use `FT_MSB' instead of
+ `ft_highpow2'.
+
+ * src/base/ftutil.c, include/internal/ftobjs.h (ft_highpow2): Remove
+ it.
+
+2014-07-15 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ * src/base/ftcalc.c (FT_MSB): Utilize gcc builtins.
+
+2014-07-15 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ [base] Move assembler code back in the source file.
+
+ FT_MulFix assembler used to reside in ftcalc.c before f47d263f1b.
+
+ * include/config/ftconfig.h, builds/unix/ftconfig.in,
+ builds/vms/ftconfig.h [FT_MULFIX_ASSEMBLER]: Move code from here...
+
+ * src/base/ftcalc.c [FT_MULFIX_ASSEMBLER]: ... to here.
+
+2014-07-14 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ [base] Further clean up color bitmap conversion.
+
+ * src/base/ftbitmap.c (ft_gray_for_premultiplied_srgb_bgra): Stop
+ using FT_MulFix and FT_DivFix since all calculations fit into 32 bits.
+
+2014-07-13 Werner Lemberg <wl@gnu.org>
+
+ [truetype] Improve handling of buggy `prep' tables.
+
+ In case of an error in the `prep' table, no longer try to execute it
+ again and again. This makes FreeType handle endless loops in buggy
+ fonts much faster.
+
+ * src/truetype/ttobjs.h (TT_SizeRec): The fields `bytecode_ready'
+ and `cvt_ready' are now negative if not initialized yet, otherwise
+ they indicate the error code of the last run.
+
+ * src/truetype/ttobjs.c (tt_size_run_fpgm, tt_size_run_prep,
+ tt_size_done_bytecode, tt_size_init_bytecode,
+ tt_size_ready_bytecode, tt_size_init, tt_size_done, tt_size_reset):
+ Updated.
+
+ * src/truetype/ttgload.c (tt_loader_init): Updated.
+ * src/truetype/ttinterp.c (TT_RunIns): Force reexecution of `fpgm'
+ and `prep' only if we are in the `glyf' table.
+
+2014-07-12 Werner Lemberg <wl@gnu.org>
+
+ * builds/vms/ftconfig.h: Synchronize.
+ Problem reported by Alexei.
+
+2014-07-11 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ [base] Clean up bitmap conversion.
+
+ * src/base/ftbitmap.c (ft_gray_for_premultiplied_srgb_bgra): Use
+ appropriate FT_DivFix and remove superfluous upscaling.
+
+2014-07-04 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ [base] Small optimization of the ancient code.
+
+ * src/base/ftcalc.c (FT_MulDiv, FT_MulDiv_No_Round): Loosen up the
+ condition for direct 32-bit calculations.
+
+2014-06-27 Werner Lemberg <wl@gnu.org>
+
+ Fix Apple standard glyph names.
+
+ * src/sfnt/ttpost.c (tt_post_default_names): Synchronize with
+ `tools/glnames.py'
+
+ Problem reported by Adam Twardoch <adam@fontlab.com>.
+
+2014-06-17 Werner Lemberg <wl@gnu.org>
+
+ Partially revert commit from 2014-06-13.
+
+ * src/autofit/aflatin.c (af_latin_metrics_init_blues): Move
+ declaration of `p_first' and `p_last' out of the loop.
+
+2014-06-17 Werner Lemberg <wl@gnu.org>
+
+ * builds/unix/freetype2.m4: s/AC_PATH_PROG/AC_PATH_TOOL/.
+
+ This simplifies cross-compiling.
+
+2014-06-13 Werner Lemberg <wl@gnu.org>
+
+ Fix more compiler warnings.
+ Reported by Wojciech Mamrak <wmamrak@gmail.com>.
+
+ * src/autofit/afglobal.c (af_face_globals_compute_style_coverage):
+ Make integer constant unsigned.
+
+ * src/sfnt/ttsbit.c (tt_face_load_strike_metrics)
+ <TT_SBIT_TABLE_TYPE_SBIX>: Fix types.
+ (tt_sbit_decoder_load_compound, tt_face_load_sbix_image): Add proper
+ casts.
+
+2014-06-13 Werner Lemberg <wl@gnu.org>
+
+ Fix compiler warnings.
+ Reported by Wojciech Mamrak <wmamrak@gmail.com>.
+
+ * src/autofit/afglobal.c (af_face_globals_compute_style_coverage),
+ src/autofit/afmodule.c (af_property_set): Fix `signed' vs.
+ `unsigned' issues.
+
+ * src/autofit/aflatin.c (af_latin_metrics_init_blues): Make compiler
+ happy.
+
+ * src/base/ftlcdfil.c (_ft_lcd_filter_fir): Use only four elements
+ for `fir'.
+ Fix `signed' vs. `unsigned' issues.
+
+ * src/sfnt/sfobjs.c (WRITE_BYTE): Removed, unused.
+ (WRITE_USHORT, WRITE_ULONG): Add proper casts.
+
+ * src/truetype/ttgload.c (TT_Get_VMetrics): Add proper casts.
+
+ * src/truetype/ttinterp.c (Ins_DELTAP): Add proper casts for `B1'
+ and `B2'.
+
+2014-05-16 Alexey Petruchik <alexey.petruchik@gmail.com>
+
+ [cmake] Add option to build OS X framework.
+
+ * CMakeLists.txt: Update accordingly.
+
+ * builds/mac/freetype-Info.plist: New file.
+
+2014-05-13 Pavel Koshevoy <pkoshevoy@gmail.com>
+
+ * CMakeLists.txt (BASE_SRCS): Add missing `ftbdf.c'.
+
+2014-05-11 Werner Lemberg <wl@gnu.org>
+
+ [autofit] Fix variable initializations.
+
+ * src/autofit/afhints.c (af_glyph_hints_reload): Assign default
+ values to `in_dir' and `out_dir' for all points.
+
+2014-05-11 Werner Lemberg <wl@gnu.org>
+
+ [autofit] Fix crash with font `CabinSketch-Bold.ttf'.
+
+ Problem reported by Ralf S. Engelschall <rse@engelschall.com>.
+
+ * src/autofit/afhints.c (af_glyph_hints_reload): Fix threshold for
+ finding first non-near point.
+ Properly initialize non-near point deltas.
+
+2014-05-01 Werner Lemberg <wl@gnu.org>
+
+ [autofit] Add blue-zone support for Devanagari.
+
+ This essentially moves the Devanagari script from the `Indic' hinter
+ to the `Latin' hinter. Thanks to Girish Dalvi
+ <girish.dalvi@gmail.com> for guidance with blue zone characters!
+
+ * src/autofit/afblue.dat: Add blue zone data for Devanagari.
+
+ * src/autofit/afblue.c, src/autofit/afblue.h: Regenerated.
+
+ * src/autofit/afscript.h: Add Devanagari standard characters and
+ move data out of AF_CONFIG_OPTION_INDIC block.
+
+ * src/autofit/afranges.c: Move Devanagari data out of
+ AF_CONFIG_OPTION_INDIC block.
+ Move U+20B9, (new) Rupee sign, from Latin to Devanagari.
+
+ * src/autofit/afstyles.h: Update Devanagari data; in particular, use
+ AF_WRITING_SYSTEM_LATIN.
+
+2014-05-01 Werner Lemberg <wl@gnu.org>
+
+ [autofit] Fix handling of neutral blue zones in stems.
+
+ * src/autofit/afhints.h (AF_Edge_Flags): New value
+ `AF_EDGE_NEUTRAL'.
+
+ * src/autofit/aflatin.c (af_latin_hints_compute_blue_edges): Trace
+ neutral blue zones with AF_EDGE_NEUTRAL.
+ (af_latin_hint_edges): Skip neutral blue zones if necessary.
+
+2014-04-28 Werner Lemberg <wl@gnu.org>
+
+ [autofit] Introduce neutral blue zones to the latin module.
+
+ Such blue zones match either the top or the bottom of a contour. We
+ need them for scripts where accent-like elements directly touch the
+ base character (for example, some vowel signs in Devanagari, cf.
+ U+0913 or U+0914).
+
+ * src/autofit/afblue.hin (AF_BLUE_PROPERTY_LATIN_NEUTRAL): New
+ property.
+
+ * src/autofit/afblue.h: Regenerated.
+
+ * src/autofit/aflatin.h (AF_LATIN_IS_NEUTRAL_BLUE): New macro.
+ (AF_LATIN_BLUE_NEUTRAL): New enumeration value.
+
+ * src/autofit/aflatin.c (af_latin_metrics_init_blues,
+ af_latin_hints_compute_blue_edges): Handle neutral blue zones.
+
+2014-04-25 Werner Lemberg <wl@gnu.org>
+
+ * src/autofit/hbshim.c: Partially revert commit from 2014-04-17.
+
+ Using input glyph coverage data is simply wrong.
+
+ Problem reported by Nikolaus Waxweiler <madigens@gmail.com> and
+ Mantas Mikulėnas <grawity@gmail.com>.
+
+2014-04-23 Werner Lemberg <wl@gnu.org>
+
+ * src/raster/ftraster.c (Vertical_Sweep_Span): Use drop-out mode.
+
+ This spot has been missed while introducing support for various
+ drop-out modes years ago (including no drop-out mode, which this
+ commit fixes).
+
+ Problem reported by Patrick Thomas <pthomas505@gmail.com>.
+
+2014-04-22 Werner Lemberg <wl@gnu.org>
+
+ * src/sfnt/pngshim.c (error_callback): s/longjmp/ft_longjmp/.
+
+2014-04-20 Werner Lemberg <wl@gnu.org>
+
+ [autofit] Fix Savannah bug #42148.
+
+ The adaptation of the cjk auto-hinter module to blue stringsets in
+ 2013-08-25 had three severe bugs. Mea culpa.
+
+ 1. Contrary to the latin auto-hinter, characters for reference and
+ overshoot values of a blue zone are specified separately. Due to
+ the screwed-up change it didn't work at all.
+
+ 2. A boolean comparison was erroneously replaced with a cast,
+ causing invalid results with the `^' operator later on. The
+ visual artifact caused by this problem is the topic of the bug
+ report.
+
+ 3. Two flag values were inverted, causing incorrect assignment of
+ reference and overshoot values.
+
+ * src/autofit/afblue.dat: Fix CJK bluestrings, introducing a new
+ syntax to have both reference and overshoot characters in a single
+ string. This is error #1.
+ Add extensive comments.
+
+ * src/autofit/afblue.hin (AF_BLUE_PROPERTY_CJK_FILL): Removed, no
+ longer used.
+ (AF_BLUE_PROPERTY_CJK_TOP, AF_BLUE_PROPERTY_CJK_HORIZ): Fix values.
+ This is error #3.
+
+ * src/autofit/afblue.c, src/autofit/afblue.h: Regenerated.
+
+ * src/autofit/afcjk.c (af_cjk_metrics_init_blues): Correct error #1.
+ Use character `|' to separate characters for reference and overshoot
+ values.
+ Improve tracing messages, synchronizing them with the latin
+ auto-hinter.
+ (af_cjk_hints_compute_blue_edges): Fix value of `is_top_right_blue'.
+ This is error #2.
+ (af_cjk_align_linked_edge): Add tracing message.
+
+ * src/autofit/afcjk.h (AF_CJK_IS_FILLED_BLUE): Removed, no longer
+ used.
+
+2014-04-17 Werner Lemberg <wl@gnu.org>
+
+ [autofit] More coverage fixes for complex scripts.
+
+ * src/autofit/hbshim.c (af_get_coverage): Merge input glyph coverage
+ of GSUB lookups into output coverage. Otherwise, ligatures are not
+ handled properly.
+ Don't check blue zone characters for default coverage.
+
+2014-04-17 Werner Lemberg <wl@gnu.org>
+
+ Make `FT_Get_SubGlyph_Info' actually work.
+
+ * src/base/ftobjs.c (FT_Get_SubGlyph_Info): Return FT_Err_Ok
+ if there is no error.
+
+2014-04-15 Werner Lemberg <wl@gnu.org>
+
+ [afblue.pl]: Minor improvements.
+
+ * src/tools/afblue.pl: Allow whitespace before comments.
+ Ignore whitespace in strings.
+
+2014-04-14 Werner Lemberg <wl@gnu.org>
+
+ [autofit] Improve coverage handling.
+
+ * src/autofit/hbshim.c (af_get_coverage): Don't exclude glyphs
+ appearing in the GPOS table if we are processing the default
+ coverage.
+
+2014-04-13 David Weber <weber.aulendorf@googlemail.com>
+
+ [smooth] Fix stand-alone compilation.
+
+ * src/smooth/ftgrays.c (FT_BEGIN_STMNT, FT_END_STMNT): Define.
+
+2014-04-12 Werner Lemberg <wl@gnu.org>
+
+ [autofit] Redesign the recognition algorithm of strong points.
+
+ In particular, local extrema without horizontal or vertical segments
+ are better recognized:
+
+ + A + D
+ \ /
+ \ /
+ \ /
+ \ /
+ \ + C
+ \ /
+ B +/
+
+ If the distances AB and CD are large, point B wasn't previously
+ detected as an extremum since the `ft_corner_is_flat' function
+ `swallowed' BC regardless of its direction, tagging point B as weak.
+ The next iteration started at B and made `ft_corner_is_flat' swallow
+ point C, tagging it as weak also, et voilà.
+
+ To improve that, another pass gets now performed before calling
+ `ft_corner_is_flat' to improve the `topology' of an outline: A
+ sequence of non-horizontal or non-vertical vectors that point into
+ the same quadrant are handled as a single, large vector.
+
+ Additionally, distances of near points are now accumulated, which
+ makes the auto-hinter handle them as if they were prepended to the
+ next non-near vector.
+
+ This generally improves the auto-hinter's rendering results.
+
+ * src/autofit/afhints.c (af_glyph_hints_reload): Implement it.
+
+ * src/autofit/afhints.h (AF_FLAGS): Remove no longer used flag
+ `AF_FLAG_NEAR'.
+
+2014-04-05 Werner Lemberg <wl@gnu.org>
+
+ [autofit] Improve scoring algorithm for identifying stems.
+
+ Problem reported by Karsten Lücke <karsten.luecke@kltf.de>.
+
+ The new algorithm takes care of the width of stems: If the distance
+ between two segments is larger than the largest stem width, the
+ demerits quickly increase for larger distances. This improves
+ hinting of slanted fonts (especially if the inner parts of serifs
+ have non-horizontal `shoulders'), avoiding false stem links.
+
+ * src/autofit/aflatin.c (af_latin_hints_link_segments): Use largest
+ stem width (if available) to compute better demerits for distances
+ between stems.
+ (af_latin_hints_detect_features): Pass stem width array and array
+ size.
+ (af_latin_metrics_init_widths): Updated to use original algorithm.
+ (af_latin_hints_apply): Updated to use new algorithm.
+
+ * src/autofit/aflatin.h: Updated.
+ * src/autofit/afcjk.c: Updated.
+
+2014-04-03 Werner Lemberg <wl@gnu.org>
+
+ Don't require `gzip' module for `sfnt'.
+
+ Reported by Preet <prismatic.project@gmail.com>.
+
+ * src/sfnt/sfobjs.c (woff_open_font): Guard use of
+ FT_Gzip_Uncompress with FT_CONFIG_OPTION_USE_ZLIB.
+
+2014-03-27 Werner Lemberg <wl@gnu.org>
+
+ Fix Savannah bug #38235.
+
+ Work around a bug in pkg-config version 0.28 and earlier: If a
+ variable value gets surrounded by doublequotes (in particular values
+ for the `prefix' variable), the prefix override mechanism fails.
+
+ * builds/unix/freetype2.in: Don't use doublequotes.
+ * builds/unix/unix-def.in (freetype.pc): Escape spaces in directory
+ names with backslashes.
+
+2014-03-24 Werner Lemberg <wl@gnu.org>
+
+ Fix Savannah bug #41946.
+
+ Based on a patch from Marek Kašík <mkasik@redhat.com>.
+
+ * builds/unix/configure.raw (LIBS_CONFIG): Remove.
+ * builds/unix/freetype-config.in (libs): Hard-code value.
+ * builds/unix/unix-def.in: Updated.
+
+2014-03-22 Werner Lemberg <wl@gnu.org>
+
+ Another revert for the change from 2014-03-18.
+
+ Problem reported by Nikolaus Waxweiler <madigens@gmail.com>.
+
+ * src/base/ftcalc.c (FT_MulFix): Ensure that an `FT_MulFix' symbol
+ gets always exported.
+
+2014-03-20 Werner Lemberg <wl@gnu.org>
+
+ CMakeLists.txt: Another fix for include directories.
+
+ Problem reported by Taylor Holberton <taylorcholberton@gmail.com>.
+
+2014-03-19 Werner Lemberg <wl@gnu.org>
+
+ CMakeLists.txt: Fix include directories.
+
+ Problem reported by Taylor Holberton <taylorcholberton@gmail.com>.
+
+2014-03-19 Werner Lemberg <wl@gnu.org>
+
+ Partially revert last commit.
+
+ Found by Alexei.
+
+ * src/autofit/aflatin.c (af_latin_metrics_init_blues): Initializing
+ those variables is plain wrong, since we are in a loop.
+
+2014-03-18 Sean McBride <sean@rogue-research.com>
+ Werner Lemberg <wl@gnu.org>
+
+ Fix clang warnings.
+
+ * src/autofit/aflatin.c (af_latin_metrics_init_blues): Initialize
+ some variables.
+
+ * src/base/ftcalc.c (FT_MulFix): Only use code if
+ `FT_MULFIX_INLINED' is not defined.
+
+ * src/bdf/bdfdrivr.c (bdf_cmap_class), src/cache/ftcbasic.c
+ (ftc_basic_image_family_class, ftc_basic_image_cache_class,
+ ftc_basic_sbit_family_class, ftc_basic_sbit_cache_class),
+ src/cache/ftccmap.c (ftc_cmap_cache_class), src/cache/ftcmanag.c
+ (ftc_size_list_class, ftc_face_list_class), src/pcf/pcfdrivr.c
+ (pcf_cmap_class), src/pfr/pfrdrivr.c (pfr_metrics_service_rec): Make
+ function static.
+
+ * src/type1/t1driver.c (t1_ps_get_font_value): Remove redundant
+ code.
+
+2014-03-17 Werner Lemberg <wl@gnu.org>
+
+ Fix Savannah bug #41869.
+
+ This works around a problem with HarfBuzz (<= 0.9.26), which doesn't
+ validate glyph indices returned by
+ `hb_ot_layout_lookup_collect_glyphs'.
+
+ * src/autofit/hbshim.c (af_get_coverage): Guard `idx'.
+
+ * docs/CHANGES: Updated.
+
+2014-03-14 Werner Lemberg <wl@gnu.org>
+
+ * builds/unix/configure.raw: Don't show error messages of `which'.
+
+2014-03-09 Alan Coopersmith <alan.coopersmith@oracle.com>
+
+ Fix cppcheck 1.64 warning.
+
+ * src/autofit/afglobal.c (af_face_globals_new): Catch NULL pointer
+ dereference in case of error.
+
+2014-03-09 Sean McBride <sean@rogue-research.com>
+
+ * src/sfnt/ttcmap.c (tt_face_build_cmaps): Remove clang warning.
+
+2014-03-06 Werner Lemberg <wl@gnu.org>
+
+ * Version 2.5.3 released.
+ =========================
+
+
+ Tag sources with `VER-2-5-3'.
+
+ * docs/VERSION.DLL: Update documentation and bump version number to
+ 2.5.3.
+
+ * README, Jamfile (RefDoc), builds/windows/vc2005/freetype.vcproj,
+ builds/windows/vc2005/index.html,
+ builds/windows/vc2008/freetype.vcproj,
+ builds/windows/vc2008/index.html,
+ builds/windows/vc2010/freetype.vcxproj,
+ builds/windows/vc2010/index.html,
+ builds/windows/visualc/freetype.dsp,
+ builds/windows/visualc/freetype.vcproj,
+ builds/windows/visualc/index.html,
+ builds/windows/visualce/freetype.dsp,
+ builds/windows/visualce/freetype.vcproj,
+ builds/windows/visualce/index.html,
+ builds/wince/vc2005-ce/freetype.vcproj,
+ builds/wince/vc2005-ce/index.html,
+ builds/wince/vc2008-ce/freetype.vcproj,
+ builds/wince/vc2008-ce/index.html: s/2.5.2/2.5.3/, s/252/253/.
+
+ * include/freetype/freetype.h (FREETYPE_PATCH): Set to 3.
+
+ * builds/unix/configure.raw (version_info): Set to 17:2:11.
+ * CMakeLists.txt (VERSION_PATCH): Set to 3.
+ * docs/CHANGES: Updated.
+
+2014-03-06 Werner Lemberg <wl@gnu.org>
+
+ Fixes for compilation with C++.
+
+ * src/autofit/hbshim.c (scripts): Change type to `hb_script_t'.
+ (af_get_coverage): Updated.
+ (COVERAGE): Add cast.
+
+2014-03-06 Sean McBride <sean@rogue-research.com>
+
+ Remove more clang analyzer warnings.
+
+ * src/bdf/bdflib.c (_bdf_readstream), src/truetype/ttgload.c
+ (TT_Load_Glyph): Remove dead stores.
+
+2014-03-05 Werner Lemberg <wl@gnu.org>
+
+ * builds/unix/configure.raw: Simplify.
+
+2014-03-05 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ Fix a bug in configure in library dependency setting
+ Reported in https://bugs.freedesktop.org/show_bug.cgi?id=75652.
+
+ * builds/unix/configure.raw: Use `x"${xxx}" != xno' style.
+
+2014-03-04 Werner Lemberg <wl@gnu.org>
+
+ Minor fix for `make devel'.
+
+ * builds/freetype.mk (INCLUDE_FLAGS) [DEVEL_DIR]: Don't use
+ pkg-config for bzip2 since not all GNU/Linux distributions have
+ `bzip2.pc' (and the header file `bzlib.h' is located in /usr/include
+ normally).
+
+2014-03-04 Sean McBride <sean@rogue-research.com>
+
+ Fix several clang static analyzer dead store warnings.
+
+ * src/autofit/afhints.c (af_glyph_hints_reload,
+ af_glyph_hints_align_weak_points): Remove unnecessary assignments.
+
+ * src/bdf/bdflib.c (bdf_font_load): Ditto.
+
+ * src/pshinter/pshalgo.c (psh_glyph_compute_extrema,
+ psh_glyph_interpolate_other_points): Ditto.
+
+ * src/type1/t1load.c (T1_Set_MM_Blend): Ditto.
+
+2014-03-03 Werner Lemberg <wl@gnu.org>
+
+ Rewrite library option handling in `configure'.
+
+ o Introduce `auto' value for `--with-XXX' library options; this is
+ now the default.
+
+ o First use `pkg-config' for library detection, then fall back to
+ other tests.
+
+ * builds/unix/configure.raw (--with-zlib, --with-bzip2, --with-png,
+ --with-harfbuzz): Rewrite.
+ Use new `xxx_reqpriv', `xxx_libpriv', and `xxx_libstaticconf'
+ variables to collect data for `freetype2.pc' and `freetype-config'.
+ (FT2_EXTRA_LIBS): Renamed to ...
+ (ft2_extra_libs): This since it gets no longer substituted.
+ (REQUIRES_PRIVATE, LIBS_PRIVATE, LIBS_CONFIG, LIBSSTATIC_CONFIG):
+ New output variables, replacing `XXX_PKG' and `LIBXXX'.
+ Add notice at the end of `configure' showing the library
+ configuration.
+
+ * builds/unix/freetype-config.in (--static): New command line
+ option.
+ (libs): Updated.
+ (staticlibs): New variable, to be used if `--static' is given.
+ * docs/freetype-config.1: Document `--static'.
+
+ * builds/unix/freetype2.in, builds/unix/unix-def.in: Updated.
+
+2014-03-01 Werner Lemberg <wl@gnu.org>
+
+ Avoid `long long' warnings with older gcc compilers.
+ Problem reported by Hin-Tak Leung <htl10@users.sourceforge.net>.
+
+ * builds/unix/configure.raw: Don't use gcc's `-pedantic' flag for
+ versions < 4.6. This is especially needed for Max OS X since this
+ OS runs a gcc variant (or emulation) based on version 4.2.1.
+
+2014-03-01 Werner Lemberg <wl@gnu.org>
+
+ * docs/INSTALL.CROSS: Revised and updated.
+
+2014-03-01 Werner Lemberg <wl@gnu.org>
+
+ Make `make clean' remove `freetype2.pc'.
+
+ This is a generated file at build time, not configure time.
+
+ * builds/unix/unix-def.in (DISTCLEAN): Move `freetype2.pc' to ...
+ (CLEAN): This variable.
+
+2014-03-01 Werner Lemberg <wl@gnu.org>
+
+ Use pkg-config for detecting libpng and libbz2 also.
+
+ * builds/unix/configure.raw (HAVE_PKG): New variable.
+ Search for libbz2 using `pkg-config'; s/BZ2/BZIP2/.
+ Search for libpng using `pkg-config'.
+ Fix definition of `LIBHARFBUZZ' variable.
+ * builds/unix/freetype-config.in ($libs): Updated.
+ * builds/unix/freetype2.in: Add `URL' field.
+ Update `Requires.private' and `Libs.private'.
+ * builds/unix/unix-def.in: Updated.
+
+2014-03-01 Werner Lemberg <wl@gnu.org>
+
+ Add configure support for HarfBuzz.
+
+ * builds/unix/pkg.m4: New file.
+ * builds/unix/configure.raw: Search for libharfbuzz using
+ `pkg-config'.
+ Add `--without-harfbuzz' option.
+ * builds/unix/freetype-config.in, builds/unix/freetype2.in,
+ builds/unix/unix-def.in (freetype-config, freetype2.pc): Handle
+ HarfBuzz.
+
+ * docs/INSTALL.UNIX: Document interdependency of FreeType with
+ HarfBuzz.
+
+2014-02-28 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ [cff] Math simplifications.
+
+ * src/cf2blues.c (cf2_blues_init): Use `FT_MulDiv'.
+ * src/cf2ft.c (cf2_getScaleAndHintFlag): Use simple division.
+
+2014-02-28 Dave Arnold <darnold@adobe.com>
+
+ [cff] Fix Savannah bug #41697, part 2.
+
+ * src/cff/cf2ft.c (cf2_initLocalRegionBuffer,
+ cf2_initGlobalRegionBuffer): It is possible for a charstring to call
+ a subroutine if no subroutines exist. This is an error but should
+ not trigger an assert. Split the assert to account for this.
+
+2014-02-28 Dave Arnold <darnold@adobe.com>
+
+ [cff] Fix Savannah bug #41697, part 1.
+
+ * src/cff/cf2hints.c (cf2_hintmap_build): Return when `hintMask' is
+ invalid. In this case, it is not safe to use the length of
+ `hStemHintArray'; the exception has already been recorded in
+ `hintMask'.
+
+2014-02-26 Werner Lemberg <wl@gnu.org>
+
+ [sfnt] Fix Savannah bug #41696.
+
+ * src/sfnt/ttcmap.c (tt_cmap0_validate, tt_cmap2_validate,
+ tt_cmap4_validate, tt_cmap14_validate): Fix limit tests.
+
+2014-02-26 Werner Lemberg <wl@gnu.org>
+
+ [winfnt] Fix Savannah bug #41694.
+
+ * src/winfonts/winfnt.c (FNT_Load_Glyph): Check glyph offset.
+
+2014-02-26 Werner Lemberg <wl@gnu.org>
+
+ [cff] Fix Savannah bug #41693.
+
+ * src/cff/cffload.c (CFF_Load_FD_Select): Reject empty array.
+
+2014-02-26 Werner Lemberg <wl@gnu.org>
+
+ [bdf] Fix Savannah bug #41692.
+
+ bdflib puts data from the input stream into a buffer in chunks of
+ 1024 bytes. The data itself gets then parsed line by line, simply
+ increasing the current pointer into the buffer; if the search for
+ the final newline character exceeds the buffer size, more data gets
+ read.
+
+ However, in case the current line's end is very near to the buffer
+ end, and the keyword to compare with is longer than the current
+ line's length, an out-of-bounds read might happen since `memcmp'
+ doesn't stop properly at the string end.
+
+ * src/bdf/bdflib.c: s/ft_memcmp/ft_strncmp/ to make comparisons
+ stop at string ends.
+
+2014-02-17 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ [autofit] Fix `make multi' compilation.
+
+ * src/autofit/hbshim.c: Include `afglobal.h' and `aftypes.h'.
+
+2014-02-19 Werner Lemberg <wl@gnu.org>
+ Simon Bünzli <zeniko@gmail.com>
+
+ Fix Savannah bug #32902.
+
+ Patch taken from
+
+ https://code.google.com/p/sumatrapdf/source/browse/trunk/ext/_patches/freetype2.patch?spec=svn8620&r=8620#87
+
+ with slight modifications.
+
+ * src/type1/t1parse.c (T1_Get_Private_Dict): Add heuristic test to
+ handle fonts that incorrectly use \r at the beginning of an eexec
+ block.
+
+2014-02-19 Simon Bünzli <zeniko@gmail.com>
+
+ Fix Savannah bug #41590.
+
+ * src/type1/t1load.c (parse_encoding): Protect against invalid
+ number.
+
+2014-02-12 Dave Arnold <darnold@adobe.com>
+
+ [cff] Optimize by using `FT_MulDiv'.
+ Suggested by Alexei.
+
+ * src/cff/cf2font.c (cf2_computeDarkening): Do it.
+
+2014-02-12 Werner Lemberg <wl@gnu.org>
+
+ Fix Savannah bug #41465.
+
+ * builds/unix/unix-def.in (CLEAN): Add `freetype-config'.
+ (DISTCLEAN): Remove `freetype-config'.
+
+2014-02-08 Sean McBride <sean@rogue-research.com>
+
+ Fix clang static analyzer and compiler warnings.
+
+ * src/autofit/afhints.c (af_glyph_hints_align_weak_points),
+ src/autofit/afloader (af_loader_load_g) <FT_GLYPH_FORMAT_COMPOSITE>,
+ src/base/ftcalc.c (FT_MSB), src/base/ftoutln.c
+ (FT_Outline_Decompose), src/bdf/bdfdrivr.c (bdf_interpret_style),
+ src/cff/cffparse.c (cff_parse_integer), src/cid/cidparse.c
+ (cid_parser_new), src/pfr/pfrload.c (pfr_phy_font_load),
+ src/raster/ftraster.c (Decompose_Curve), src/sfnt/sfdriver.c
+ (sfnt_get_ps_name), src/sfnt/ttcmap.c (tt_cmap12_next,
+ tt_cmap13_next), src/smooth/ftgrays.c (gray_hline): Remove dead
+ code.
+
+ * src/autofit/afmodule.c (af_property_get_face_globals,
+ af_property_set, af_property_get), src/base/ftbitmap.c
+ (ft_gray_for_premultiplied_srgb_bgra): Make functions static.
+
+ * src/base/ftobjs.c (ft_remove_renderer): Protect against
+ library == NULL.
+ (ft_property_do): Make function static.
+
+ * src/base/ftrfork.c: Include `ftbase.h'.
+
+ * src/sfnt/ttsbit.c (tt_face_load_sbix_image)
+ [!FT_CONFIG_OPTION_USE_PNG], src/type1/t1gload.c
+ (T1_Compute_Max_Advance): Avoid compiler warning.
+
+ * src/truetype/ttinterp.c (TT_New_Context): Reduce scope of
+ variable.
+
+2014-02-08 Werner Lemberg <wl@gnu.org>
+
+ Fix Windows build directories.
+
+ The build target is now `windows' instead of `win32'.
+
+ Problem reported by Nickolas George <darknova.clan@gmail.com>.
+
+ * builds/modules.mk: Don't use `win32' and `win16' (!) but
+ `windows'.
+
+ * builds/windows/detect.mk, builds/windows/win32-def.mk:
+ s/win32/windows/.
+
+2014-02-08 Eugen Sawin <esawin@mozilla.com>
+
+ Fix Savannah bug #41507.
+
+ * src/sfnt/ttsbit.c (tt_sbit_decoder_load_bitmap)
+ [!FT_CONFIG_OPTION_USE_PNG] <17, 17, 19>: Fix error handling.
+
+2014-02-08 Dave Arnold <darnold@adobe.com>
+
+ [cff] Fix minor performance bug.
+
+ * src/cff/cf2font.c (cf2_font_setup): Darkening amount and blue zone
+ calculations are now cached and not recomputed on each glyph.
+
+2014-02-05 Werner Lemberg <wl@gnu.org>
+
+ Fix problems with perl 5.8.8 as distributed with current MinGW.
+
+ * src/tools/afblue.pl: Work-around for Perl bug #63402.
+ (string_re): Avoid `possessive quantifiers', which have been
+ introduced in Perl version 5.10.
+
+2014-02-04 Werner Lemberg <wl@gnu.org>
+
+ Fix compilation with MinGW.
+
+ Right now, compilation out of the box with latest MinGW is broken
+ due to bugs in header files of mingwrt 4.0.3 in strict ANSI mode,
+ cf.
+
+ https://sourceforge.net/p/mingw/bugs/2024/
+ https://sourceforge.net/p/mingw/bugs/2046/
+
+ * builds/unix/configure.raw: Don't set `-ansi' flag for MinGW.
+
+2014-02-04 Werner Lemberg <wl@gnu.org>
+
+ [autofit] Minor fix.
+
+ * src/autofit/afcjk.c (af_cjk_metrics_init_widths),
+ src/autofit/aflatin.c (af_latin_metrics_init_widths): Fix handling
+ of alternative standard characters.
+ This also fixes a compilation warning in non-debug mode.
+
+2014-02-03 Werner Lemberg <wl@gnu.org>
+
+ [cff] Fix Savannah bug #41363.
+
+ * src/cff/cf2ft.c (cf2_checkTransform): Convert assertion into
+ parameter check.
+ (cf2_decoder_parse_charstrings): Call `cf2_checkTransform' only if
+ we are scaling the outline.
+ (cf2_getPpemY): Remove problematic assertion.
+
+2014-01-26 Werner Lemberg <wl@gnu.org>
+
+ [autofit] Introduce two more slots for standard characters.
+
+ This is useful for OpenType features like `c2sc' (caps to small
+ caps) that don't have lowercase letters by definition, or other
+ features that mainly operate on numerals.
+
+ * src/autofit/afscript.h: Add more standard characters.
+
+ * src/autofit/aftypes.h: Update use of `SCRIPT' macro.
+ (AF_ScriptClassRec): Add members to hold two more standard
+ characters.
+ (AF_DEFINE_SCRIPT_CLASS): Updated.
+
+ * src/autofit/afglobal.c, src/autofit/afglobal.h,
+ * src/autofit/afpic.c, src/autofit/afranges.h, src/autofit/hbshim.c:
+ Update use of `SCRIPT' macro.
+
+ * src/autofit/afcjk.c (af_cjk_metrics_init_widths),
+ src/autofit/aflatin.c (af_latin_metrics_init_widths): Scan two more
+ standard characters.
+
+2014-01-24 Werner Lemberg <wl@gnu.org>
+
+ Fix Savannah bug #41320.
+
+ * src/autofit/aflatin.c (af_latin_metrics_init_blues)
+ <AF_LATIN_IS_LONG_BLUE>: Avoid negative index of `last'.
+
+2014-01-23 Werner Lemberg <wl@gnu.org>
+
+ Fix Savannah bug #41310.
+
+ * src/sfnt/ttsbit.c (tt_sbit_decoder_load_bitmap) <glyph_format==5>:
+ Don't check metrics, which this format doesn't have.
+ This is another correction to the commit from 2013-11-21.
+
+2014-01-23 Werner Lemberg <wl@gnu.org>
+
+ Fix Savannah bug #41309.
+
+ * src/type1/t1load.c (t1_parse_font_matrix): Properly handle result
+ of `T1_ToFixedArray'.
+
+ * src/cid/cidload.c (cid_parse_font_matrix): Synchronize with
+ `t1_parse_font_matrix'.
+
+ * src/type42/t42parse.c (t42_parse_font_matrix): Synchronize with
+ `t1_parse_font_matrix'.
+ (t42_parse_encoding): Synchronize with `t1_parse_encoding'.
+
+ * src/psaux/psobjs.c (ps_parser_load_field) <T1_FIELD_TYPE_BBOX>,
+ <T1_FIELD_TYPE_MMOX>: Properly handle result of `ps_tofixedarray'.
+
+2014-01-22 Werner Lemberg <wl@gnu.org>
+
+ * src/autofit/hbshim.c (af_get_coverage): Fix memory leaks.
+
+2014-01-16 Werner Lemberg <wl@gnu.org>
+
+ [autofit] Improve tracing of style coverages.
+
+ * include/internal/fttrace.h: Add `afglobal' for tracing style
+ coverages.
+
+ * src/autofit/afglobal.c: Include FT_INTERNAL_DEBUG_H.
+ (FT_COMPONENT): Define.
+ (af_face_globals_compute_style_coverage): Trace `gstyles' array
+ data.
+
+2014-01-09 Werner Lemberg <wl@gnu.org>
+
+ Fix Savannah bug #41158.
+
+ * builds/unix/install.mk (install): Create man page directory.
+
+2014-01-08 Chongyu Zhu <lembacon@gmail.com>
+
+ [arm] Fix Savannah bug #41138, part 2.
+
+ * builds/unix/ftconfig.in (FT_MulFix_arm), include/config/ftconfig.h
+ (FT_MulFix_arm), src/truetype/ttinterp.c (TT_MulFix14_arm): Fix
+ preprocessor conditionals for `add.w'.
+
+2014-01-08 Werner Lemberg <wl@gnu.org>
+
+ [autofit] Fix Savannah bug #41138, part 1.
+
+ * src/tools/afblue.pl <Handling #endif>: Produce correct auxiliary
+ enumeration names for generated `#else'.
+
+ * src/autofit/afblue.h: Regenerated.
+
+2014-01-06 Werner Lemberg <wl@gnu.org>
+
+ Add manual page for `freetype-config'.
+ Contributed by Nis Martensen <nis.martensen@web.de>.
+
+ * docs/freetype-config.1: New file.
+
+ * builds/unix/unix-def.in (mandir): Define.
+ * builds/unix/install.mk (install, uninstall): Handle manpage.
+
+2014-01-05 Werner Lemberg <wl@gnu.org>
+
+ [autofit] Minor fixes for `afblue.pl'.
+
+ * src/tools/afblue.pl (aux_name): Don't use `reverse'.
+ <Handling #endif>: Use proper indentation for generated `#else'.
+
+ * src/autofit/afblue.h: Regenerated.
+
+2014-01-04 Werner Lemberg <wl@gnu.org>
+
+ [autofit] Fix Indic scripts.
+
+ Split the single, incorrect Indic entry into separate scripts so
+ that the covered ranges are the same: Bengali, Devanagari, Gujarati,
+ Gurmukhi, Kannada, Limbu, Malayalam, Oriya, Sinhala, Sundanese,
+ Syloti Nagri, Tamil, Telugu, and Tibetan. At the same time, remove
+ entries for Meetei Mayek and Sharada – the Unicode ranges were
+ incorrect (and nobody has complained about that), fonts are scarce
+ for those scripts, and the Indic auto-hinter support is rudimentary
+ anyways.
+
+ * src/autofit/afscript.h: Updated, using AF_CONFIG_OPTION_INDIC and
+ AF_CONFIG_OPTION_CJK.
+
+ * src/autofit/afstyles.h (STYLE_DEFAULT_INDIC): New auxiliary macro.
+ Use it, together with AF_CONFIG_OPTION_INDIC and
+ AF_CONFIG_OPTION_CJK, to update.
+
+ * src/autofit/afranges.c [AF_CONFIG_OPTION_INDIC]: Updated.
+ [!AF_CONFIG_OPTION_INDIC, !AF_CONFIG_OPTION_CJK]: Removed.
+ Sort entries by tags.
+
+2014-01-03 Werner Lemberg <wl@gnu.org>
+
+ [autofit] Thinko.
+
+ * src/autofit/hbshim.c (af_get_char_index): Similar to
+ `af_get_coverage', reject glyphs which are not substituted.
+
+2014-01-03 Werner Lemberg <wl@gnu.org>
+
+ [autofit] Fix handling of default coverages.
+
+ With this commit, the implementation of coverage handling is
+ completed.
+
+ * src/autofit/hbshim.c (af_get_coverage): Exit early if nothing to
+ do.
+ Reject coverages which don't contain appropriate glyphs for blue
+ zones.
+
+2014-01-03 Werner Lemberg <wl@gnu.org>
+
+ [autofit] Fix handling of default coverages.
+
+ * src/autofit/afglobal.c (af_face_globals_compute_style_coverage):
+ First handle non-default coverages, then the default coverage of the
+ default script, and finally the other default coverages.
+
+2014-01-03 Werner Lemberg <wl@gnu.org>
+
+ [autofit] Fix scaling of HarfBuzz shaping.
+
+ * src/autofit/hbshim.c (af_get_char_index): Scale to units per EM.
+
+2014-01-03 Werner Lemberg <wl@gnu.org>
+
+ [autofit] Better ftgrid support.
+
+ * src/autofit/afhints.c (af_glyph_hints_get_segment_offset): Add
+ parameters `is_blue' and `blue_offset'.
+
+2014-01-01 Werner Lemberg <wl@gnu.org>
+
+ [autofit] Remove some styles.
+
+ * src/autofit/afcover.h: Remove coverages for alternative fractions,
+ denominators, numerators, and fractions.
+
+ * src/autofit/afstyles.h (META_STYLE_LATIN): Updated.
+
+2014-01-01 Werner Lemberg <wl@gnu.org>
+
+ [autofit] Add more styles.
+
+ * src/autofit/afstyles.h (STYLE_LATIN, META_STYLE_LATIN): New
+ auxiliary macros; use them to define styles for Cyrillic, Greek, and
+ Latin.
+
+ * src/autofit/afcover.h: Remove coverage for oldstyle figures.
+ Since those digits are used in combination with ordinary letters, it
+ makes no sense to handle them separately.
+
+ * src/autofit/afglobal.c (af_face_globals_get_metrics): Don't limit
+ `options' parameter to 4 bits.
+
+2014-01-01 Werner Lemberg <wl@gnu.org>
+
+ [autofit] Fix style assignments to glyphs.
+
+ * src/autofit/hbshim.c (af_get_coverage)
+ [FT_CONFIG_OPTION_USE_HARFBUZZ]: Scan GPOS coverage of features also
+ so that we can skip glyphs that have both GSUB and GPOS data.
+
+2014-01-01 Werner Lemberg <wl@gnu.org>
+
+ * src/autofit/hbshim.c: s/{lookups,glyphs}/gsub_{lookups,glyphs}/.
+
+2014-01-01 Werner Lemberg <wl@gnu.org>
+
+ [autofit] Implement and use `af_get_char_index' with HarfBuzz.
+
+ * src/autofit/hbshim.c (COVERAGE) [FT_CONFIG_OPTION_USE_HARFBUZZ]:
+ Redefine to construct HarfBuzz features.
+ (af_get_char_index) [FT_CONFIG_OPTION_USE_HARFBUZZ]: Rewritten.
+
+ * src/autofit/aflatin.c (af_latin_metrics_init_blues): Use
+ `y_offset' to adjust `best_y'.
+
+2013-12-31 Werner Lemberg <wl@gnu.org>
+
+ [autofit] s/AF_STYLE_...._DEFAULT/AF_STYLE_...._DFLT/i.
+
+2013-12-31 Werner Lemberg <wl@gnu.org>
+
+ [autofit] Fix interface of `af_get_char_index'.
+
+ * src/autofit/hbshim.c (af_get_char_index): Return error value.
+ Add argument for y offset (to be used in a yet-to-come patch).
+
+ * src/autofit/hbshim.h, src/autofit/afcjk.c,
+ src/autofit/aflatin.c: Updated.
+
+2013-12-30 Werner Lemberg <wl@gnu.org>
+
+ [autofit] Don't combine multiple features into one set.
+
+ Combining them, as originally envisioned, would lead to much more
+ complicated code, as investigations have shown meanwhile. The major
+ drawback is that we run out of available style slots much earlier.
+ However, this is only a theoretical issue since we don't support a
+ large number of scripts currently.
+
+ * src/autofit/afcover.h: Replace `COVERAGE_{1,2,3}' macros with
+ a single-element `COVERAGE' macro, sort the elements by the feature
+ tags, and add entry for `ruby'.
+
+ * src/autofit/aftypes.h: Updated.
+ * src/autofit/hbshim.c: Updated.
+
+2013-12-28 Werner Lemberg <wl@gnu.org>
+
+ [autofit] Code shuffling to reduce use of cpp macros.
+
+ * src/autofit/afglobal.c (af_face_globals_compute_style_coverage):
+ Call `af_get_coverage' unconditionally.
+
+ * src/autofit/autofit.c: Include `hbshim.c' unconditionally.
+
+ * src/autofit/hbshim.c (af_get_coverage)
+ [!FT_CONFIG_OPTION_USE_HARFBUZZ]: Provide dummy function.
+
+ * src/autofit/hbshim.h: Provide function declarations
+ unconditionally.
+
+2013-12-28 Werner Lemberg <wl@gnu.org>
+
+ [autofit] Add wrapper function for `FT_Get_Char_Index'.
+
+ Yet-to-come changes will provide HarfBuzz functionality for the new
+ function.
+
+ * src/autofit/hbshim.c (af_get_char_index): New function.
+ * src/autofit/hbshim.h: Updated.
+
+ * src/autofit/afcjk.c (af_cjk_metrics_init_widths,
+ af_cjk_metrics_init_blues, af_cjk_metrics_check_digits): Updated.
+
+ * src/autofit/aflatin.c (af_latin_metrics_init_widths,
+ af_latin_metrics_init_blues, af_latin_metrics_check_digits):
+ Updated.
+
+2013-12-28 Werner Lemberg <wl@gnu.org>
+
+ [autofit] Use `global' HarfBuzz font object.
+
+ We now use `hb_font' instead of `hb_face' since yet-to-come changes
+ need this.
+
+ * src/autofit/afglobal.h: Include `hbshim.h'.
+ (AF_FaceGlobalsRec) [FT_CONFIG_OPTION_USE_HARFBUZZ]: New member
+ `hb_font'.
+
+ * src/autofit/afglobal.c (af_face_globals_new)
+ [FT_CONFIG_OPTION_USE_HARFBUZZ]: Create `hb_font'.
+ (af_face_globals_free) [FT_CONFIG_OPTION_USE_HARFBUZZ]: Destroy
+ `hb_font'.
+
+ * src/autofit/hbshim.h: Include HarfBuzz headers.
+
+ * src/autofit/hbshim.c: Include `hbshim.h' instead of HarfBuzz
+ headers.
+ (af_get_coverage): Updated.
+
+2013-12-27 Werner Lemberg <wl@gnu.org>
+
+ [autofit] Handle `DFLT' OpenType script for coverages.
+
+ * include/ftautoh.h: Document new `default-script' property.
+
+ * src/autofit/hbshim.c (af_get_coverage): Use `AF_FaceGlobals' for
+ type of first parameter.
+ (script_tags): Add one more element.
+ (af_get_coverage): Adjust `script_tags' to handle `DFLT' script tag.
+
+ * src/autofit/hbshim.h: Updated.
+
+ * src/autofit/afglobal.c (af_face_globals_compute_style_coverage):
+ Updated.
+
+ * src/autofit/afglobal.h (AF_SCRIPT_DEFAULT): New macro.
+
+ * src/autofit/afmodule.h (AF_ModuleRec): New `default_script'
+ member.
+
+ * src/autofit/afmodule.c (af_property_set, af_property_get): Handle
+ `default-script' property.
+ (af_autofitter_init): Updated.
+
+2013-12-27 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ [ftrfork] Fix the face order difference between POSIX and Carbon.
+
+ The fragmented resources in Suitcase and .dfont should be reordered
+ when `POST' resource for Type1 is being restored, but reordering of
+ sfnt resources induces the different face order. Now the ordering
+ is restricted to `POST' resource only, to prevent the different
+ order issue (e.g. the face index in the fontconfig cache generated
+ with Carbon framework is incompatible with that by FreeType 2
+ without Carbon framework.) Found by Khaled Hosny and Hin-Tak Leung.
+
+ https://lists.gnu.org/archive/html/freetype-devel/2013-02/msg00035.html
+ https://lists.gnu.org/archive/html/freetype-devel/2013-12/msg00027.html
+
+ * src/base/ftrfork.c (FT_Raccess_Get_DataOffsets): Add a switch
+ `sort_by_res_id' to control the fragmented resource ordering.
+ * include/internal/ftrfork.h: Declare new switch.
+ * src/base/ftobjs.c (IsMacResource): Enable the sorting for `POST'
+ resource, and disable the sorting for `sfnt' resource.
+
+2013-12-25 Werner Lemberg <wl@gnu.org>
+
+ Fix Savannah bug #40997.
+
+ * src/bdf/bdfdrivr.c (BDF_Face_Init): Only use OR operator to
+ adjust face flags since FT_FACE_FLAG_EXTERNAL_STREAM might already
+ be set.
+ * src/cff/cffobjs.c (cff_face_init): Ditto.
+ * src/cid/cidobjs.c (cid_face_init): Ditto.
+ * src/pcf/pcfread.c (pcf_load_font): Ditto.
+ * src/pfr/pfrobjs.c (pfr_face_init): Ditto.
+ * src/type1/t1objs.c (T1_Face_Init): Ditto.
+ * src/type42/t42objs.c (T42_Face_Init): Ditto.
+ * src/winfonts/winfnt.c (FNT_Face_Init): Ditto.
+
+2013-12-21 Werner Lemberg <wl@gnu.org>
+
+ [autofit] Introduce `coverages'.
+
+ Coverages are the interface to the HarfBuzz library to access
+ OpenType features for handling glyphs not addressable by the cmap.
+
+ Right now, compilation of HarfBuzz is only added to the development
+ build. A solution for standard build mode will be delayed until
+ HarfBuzz gets split into two libraries to avoid mutual dependencies
+ between FreeType and HarfBuzz.
+
+ Note that this is only a first step in handling coverages, basically
+ providing the framework only. Code for handling selected OpenType
+ features (this is, actually using the data in `afcover.h') will
+ follow.
+
+ * devel/ftoption.h, include/config/ftoption.h
+ (FT_CONFIG_OPTION_USE_HARFBUZZ): New macro.
+
+ * src/autofit/hbshim.c, src/autofit/hbshim.h, src/autofit/afcover.h:
+ New files.
+
+ * src/autofit/afscript.h: Add HarfBuzz script name tags.
+
+ * src/autofit/afstyles.h: Add default coverage enumeration values.
+
+ * src/autofit/aftypes.h: Update use of `SCRIPT' and `STYLE' macros.
+ (AF_Coverage): New enumeration (generated by `afcover.h').
+ (AF_StyleClassRec): New member `coverage'.
+ (AF_DEFINE_STYLE_CLASS): Updated.
+
+ * include/internal/fttrace.h: Add `afharfbuzz' for tracing coverage
+ data.
+
+ * src/autofit/afglobal.h: Update use of `SCRIPT' and `STYLE' macros.
+ (AF_SCRIPT_FALLBACK): Renamed to ...
+ (AF_STYLE_FALLBACK): ... this.
+
+ * src/autofit/afglobal.c: Include `hbshim.c'.
+ Update use of `SCRIPT' and `STYLE' macros.
+ (af_face_globals_compute_style_coverage)
+ [FT_CONFIG_OPTION_USE_HARFBUZZ]: Call `af_get_coverage'.
+ Update.
+
+ * src/autofit/afmodule.h (AF_ModuleRec):
+ s/fallback_script/fallback_style/.
+
+ * src/autofit/afmodule.c (af_property_set): Adapt handling of
+ `fallback-script' property to set a fallback style.
+ (af_property_get, af_autofitter_init): Updated.
+
+ * src/autofit/afpic.c: Update use of `SCRIPT' and `STYLE' macros.
+
+ * src/autofit/afranges.h: Update use of `SCRIPT' macro.
+
+ * src/autofit/autofit.c [FT_CONFIG_OPTION_USE_HARFBUZZ]: Include
+ `hbshim.c'.
+
+ * src/autofit/rules.mk (AUTOF_DRV_SRC): Add `hbshim.c'.
+ (AUTOF_DRV_H): Add `afcover.h'.
+
+ * builds/freetype.mk (INCLUDE_FLAGS) [DEVEL_DIR]: Use pkg-config for
+ all libraries needed by FreeType.
+
+2013-12-21 Werner Lemberg <wl@gnu.org>
+
+ Fix Savannah bug #40975 (sort of).
+
+ * src/truetype/ttinterp.c (Ins_IP): Fix sign typo to make FreeType
+ behave the same as the Windows TrueType engine for the invalid case.
+
+2013-12-21 Werner Lemberg <wl@gnu.org>
+
+ [autofit] Make PIC mode work actually.
+
+ * src/autofit/afpic.h (AFModulePIC): Fix array sizes to fit the
+ enumeration values automatically generated by including `afscript.h'
+ and friends.
+
+ * src/autofit/afpic.c (autofit_module_class_pic_init): Updated.
+
+2013-12-21 Werner Lemberg <wl@gnu.org>
+
+ Fix PIC linking.
+
+ * include/internal/ftrfork.h (CONST_FT_RFORK_RULE_ARRAY_BEGIN): Fix
+ generated function name.
+
+ * src/base/basepic.c (FT_Init_Table_raccess_guess_table): Rename
+ to ...
+ (FT_Init_Table_ft_raccess_guess_table): ... this so that the
+ function name correctly corresponds to what the macro framework
+ expects.
+
+ * src/psnames/rules.mk (PSNAMES_DRV_SRC_S): Use correct file name so
+ that PIC functions are compiled also.
+
+2013-12-21 Werner Lemberg <wl@gnu.org>
+
+ [base] Add missing dependencies to Makefile.
+
+ * src/base/rules.mk (BASE_SRC): Add `basepic.c' and `ftpic.c'.
+ (BASE_H): Add `basepic.h'.
+
+2013-12-20 Werner Lemberg <wl@gnu.org>
+
+ [autofit] Fix PIC compilation.
+
+ * src/autofit/afcjk.c (af_cjk_metrics_init_widths),
+ src/autofit/aflatin.c (af_latin_metrics_init_widths)
+ [FT_CONFIG_OPTION_PIC]: Declare `globals'.
+
+ * src/autofit/afglobal.c: Always call AF_DEFINE_SCRIPT_CLASS, and
+ AF_DEFINE_STYLE_CLASS.
+
+ * src/autofit/afpic.c: Include `afglobal.h'.
+ (autofit_module_class_pic_init): Typo.
+
+ * src/autofit/aftypes.h (AF_DEFINE_SCRIPT_CLASS,
+ AF_DEFINE_STYLE_CLASS): Don't use the same identifier for macro
+ parameter and structure member.
+
+2013-12-20 Werner Lemberg <wl@gnu.org>
+
+ [autofit] Introduce `styles'.
+
+ This is the new top-level structure for handling glyph input data;
+ scripts are now defined separately.
+
+ * src/autofit/aftypes.h (SCRIPT): Updated.
+ (AF_ScriptClassRec): Move `blue_stringset' and `writing_system'
+ members to ...
+ (AF_Style_ClassRec): ... this new structure.
+ (AF_Style): New enumeration.
+ (AF_StyleMetricsRec): Replace `script' enumeration with
+ `style_class' pointer.
+ (AF_DEFINE_SCRIPT_CLASS, AF_DECLARE_SCRIPT_CLASS): Updated.
+ (AF_DEFINE_STYLE_CLASS, AF_DECLARE_STYLE_CLASS): New macros.
+
+ * src/autofit/afstyles.h: New file, using data from `afscript.h'.
+ * src/autofit/afscript.h: Updated.
+
+ * src/autofit/afcjk.c (af_cjk_metrics_init_widths,
+ af_cjk_metrics_init_blues, af_cjk_hint_edges): Updated.
+
+ * src/autofit/afglobal.c (SCRIPT): Updated.
+ (STYLE): Redefine macro to load `afstyles.h'.
+ (af_script_names) [FT_DEBUG_LEVEL_TRACE]: Replace with...
+ (af_style_names): ... this array.
+ (af_face_globals_compute_script_coverage): Renamed to...
+ (af_face_globals_compute_style_coverage): ... this.
+ Updated.
+ (af_face_globals_new, af_face_globals_free,
+ af_face_globals_get_metrics): Updated.
+
+ * src/autofit/afglobal.h (SCRIPT): Updated.
+ (STYLE): Redefine macro to load `afstyles.h'.
+ (AF_SCRIPT_FALLBACK): Update definition. This will get more
+ refinements with later on.
+ (AF_SCRIPT_UNASSIGNED): Replace with...
+ (AF_STYLE_UNASSIGNED): ... this macro.
+ (AF_FaceGlobalsRec): Updated.
+
+ * src/autofit/aflatin.c (af_latin_metrics_init_widths,
+ af_latin_metrics_init_blues, af_latin_metrics_scale_dim,
+ af_latin_hint_edges): Updated.
+
+ * src/autofit/aflatin2.c (af_latin2_metrics_init_widths): Updated.
+ (af_ltn2_uniranges): Removed.
+
+ * src/autofit/afloader.c (af_loader_load_g, af_loader_load_glyph):
+ Updated.
+
+ * src/autofit/afpic.c (autofit_module_class_pic_init): Updated.
+ * src/autofit/afpic.h (AF_STYLE_CLASSES_GET): New macro.
+ (AFModulePIC): Add `af_style_classes' and `af_style_classes_rec'
+ members.
+
+ * src/autofit/afranges.h: Updated.
+
+ * src/autofit/rules.mk (AUTOF_DRV_H): Add `afstyles.h'.
+
+2013-12-19 Werner Lemberg <wl@gnu.org>
+
+ [autofit] Factor scripts and uniranges out of writing system files.
+
+ * src/autofit/afranges.c, src/autofit/afranges.h: New files.
+
+ * src/autofit/afscript.h: Extend `SCRIPT' macro with more
+ parameters, taking data from the writing system files.
+
+ * src/autofit/aftypes.h: Updated.
+
+ * src/autofit/afglobal.c: Include `afranges.h'.
+ Load `afscript.h' to call AF_DEFINE_SCRIPT_CLASS.
+ * src/autofit/afglobal.c: Include `afranges.h'.
+ Load `afscript.h' to call AF_DECLARE_SCRIPT_CLASS.
+
+ * src/autofit/afcjk.c, src/autofit/afcjk.h: Updated.
+ * src/autofit/afdummy.c, src/autofit/afdummy.h: Updated.
+ * src/autofit/afindic.c, src/autofit/afindic.h: Updated.
+ * src/autofit/aflatin.c, src/autofit/aflatin.h: Updated.
+ * src/autofit/aflatin2.c, src/autofit/aflatin2.h: Updated.
+
+ * src/autofit/afpic.c: Updated.
+
+ * src/autofit/autofit.c: Include `afranges.c'.
+ * src/autofit/rules.mk (AUTOF_DRV_SRC): Add `afranges.c'.
+
+2013-12-18 Werner Lemberg <wl@gnu.org>
+
+ [autofit] More code orthogonality.
+
+ * src/autofit/aftypes.h (AF_StyleMetrics): Replace `script_class'
+ pointer to an `AF_ScriptClass' structure with `script' index of type
+ `AF_Script'.
+ Move some code around.
+
+ * src/autofit/afcjk.c: Include `afpic.h'.
+ (af_cjk_metrics_init_widths, af_cjk_metrics_init_blues,
+ af_cjk_hint_edges): Updated.
+
+ * src/autofit/aflatin.c: Include `afpic.h'.
+ (af_latin_metrics_init_widths, af_latin_metrics_init_blues,
+ af_latin_metrics_scale_dim, af_latin_hint_edges): Updated.
+
+ * src/autofit/afglobal.c (af_face_globals_get_metrics): Updated.
+
+ * src/autofit/afloader.c (af_loader_load_g, af_loader_load_glyph):
+ Updated.
+
+2013-12-18 Werner Lemberg <wl@gnu.org>
+
+ [autofit] s/ScriptMetrics/StyleMetrics/.
+
+2013-12-18 Werner Lemberg <wl@gnu.org>
+
+ [autofit] s/script_{metrics,hints}/style_{metrics,hints}/
+
+2013-12-18 Werner Lemberg <wl@gnu.org>
+
+ [autofit] s/gscripts/gstyles/.
+
+2013-12-18 Werner Lemberg <wl@gnu.org>
+
+ [autofit] s/glyph_scripts/glyph_styles/.
+
+ This is the first commit of a series to create a new top-level
+ structure (a `style') for handling scripts, writing_systems, and
+ soon-to-be-added coverages.
+
+2013-12-17 Werner Lemberg <wl@gnu.org>
+
+ [autofit] s/AF_Script_/AF_WritingSystem_/ where appropriate.
+
+2013-12-11 Infinality <infinality@infinality.net>
+
+ [truetype] Simplify logic of rendering modes.
+
+ This patch unifies the subpixel and non-subpixel cases.
+
+ * src/truetype/ttinterp.h (TT_ExecContextRec): Remove
+ `grayscale_hinting'; all code should refer to `grayscale' instead.
+ Remove unused `native_hinting' member.
+ Rename `subpixel_hinting' member to `subpixel.
+
+ * src/truetype/ttgload.c (TT_LOADER_SET_PP): Updated.
+ (tt_loader_init): Updated.
+
+ * src/truetype/ttinterp.c (Ins_GETINFO): Simplify.
+ Updated.
+
+2013-12-11 Werner Lemberg <wl@gnu.org>
+
+ [documentation] Add section how to include FreeType header files.
+ Problem reported by David Kastrup <dak@gnu.org>.
+
+ Surprisingly, a description how to do that was completely missing in
+ the API reference.
+
+ * include/freetype.h, include/ftchapters.h: New documentation
+ section `header_inclusion'.
+
+2013-12-10 Werner Lemberg <wl@gnu.org>
+
+ [autofit] s/DFLT/NONE/, s/dflt/none/.
+
+2013-12-10 Werner Lemberg <wl@gnu.org>
+
+ [autofit] s/AF_SCRIPT_NONE/AF_SCRIPT_UNASSIGNED/.
+
+2013-12-10 Werner Lemberg <wl@gnu.org>
+
+ [truetype] Fix scaling of vertical phantom points.
+
+ * src/truetype/ttgload.c (load_truetype_glyph): Scale pp3.x and
+ pp4.x also.
+
+2013-12-10 Werner Lemberg <wl@gnu.org>
+
+ [truetype] Fix positioning of composite glyphs.
+ Problem reported by Nigel Tao <nigeltao@golang.org>.
+
+ * src/truetype/ttgload.c (TT_Hint_Glyph): Remove code that shifts
+ the glyph (component) by a fractional value computed from the LSB
+ phantom point. This is wrong, since the horizontal phantom points
+ get rounded horizontally later on.
+
+2013-12-08 Werner Lemberg <wl@gnu.org>
+
+ * Version 2.5.2 released.
+ =========================
+
+
+ Tag sources with `VER-2-5-2'.
+
+ * docs/VERSION.DLL: Update documentation and bump version number to
+ 2.5.2.
+
+ * README, Jamfile (RefDoc), builds/windows/vc2005/freetype.vcproj,
+ builds/windows/vc2005/index.html,
+ builds/windows/vc2008/freetype.vcproj,
+ builds/windows/vc2008/index.html,
+ builds/windows/vc2010/freetype.vcxproj,
+ builds/windows/vc2010/index.html,
+ builds/windows/visualc/freetype.dsp,
+ builds/windows/visualc/freetype.vcproj,
+ builds/windows/visualc/index.html,
+ builds/windows/visualce/freetype.dsp,
+ builds/windows/visualce/freetype.vcproj,
+ builds/windows/visualce/index.html,
+ builds/wince/vc2005-ce/freetype.vcproj,
+ builds/wince/vc2005-ce/index.html,
+ builds/wince/vc2008-ce/freetype.vcproj,
+ builds/wince/vc2008-ce/index.html: s/2.5.1/2.5.2/, s/251/252/.
+
+ * include/freetype/freetype.h (FREETYPE_PATCH): Set to 2.
+
+ * builds/unix/configure.raw (version_info): Set to 17:1:11.
+ * CMakeLists.txt (VERSION_PATCH): Set to 2.
+ * docs/CHANGES: Updated.
+
+2013-12-07 Werner Lemberg <wl@gnu.org>
+
+ [truetype] Next round in phantom point handling.
+
+ Greg Hitchcock provided very interesting insights into the
+ complicated history of the horizontal positions of the TSB and BSB
+ phantom points.
+
+ * src/truetype/ttgload.c (TT_LOADER_SET_PP)
+ [TT_CONFIG_OPTION_SUBPIXEL_HINTING]: Use `subpixel_hinting' and
+ `grayscale_hinting' flags as conditionals for the x position of TSB
+ and BSB.
+
+2013-12-05 Werner Lemberg <wl@gnu.org>
+
+ * builds/freetype.mk (FT_CC): Removed. Unused.
+
+2013-12-04 Werner Lemberg <wl@gnu.org>
+
+ [sfnt] Fix handling of embedded bitmap strikes.
+
+ This corrects the commit from 2013-11-21. Problem reported by
+ Andrey Panov <panov@canopus.iacp.dvo.ru>.
+
+ * src/sfnt/ttsbit.c (tt_sbit_decoder_load_bitmap): Fix logic to
+ detect excessive bytes for bit-aligned bitmaps.
+
+2013-12-03 Werner Lemberg <wl@gnu.org>
+
+ [truetype] Remove dead code.
+
+ Reported by Nigel Tao <nigeltao@golang.org>.
+
+ * include/internal/tttypes.h (TT_LoaderRec): Remove unused
+ `preserve_pps' field.
+ * src/truetype/ttgload.c (TT_Hint_Glyph): Updated.
+
+2013-12-03 Werner Lemberg <wl@gnu.org>
+
+ [truetype] Fix phantom point handling.
+
+ This is a further improvement to the changes from 2013-11-06.
+
+ * src/truetype/ttgload.c (TT_Hint_Glyph): Horizontal phantom points
+ are rounded horizontally, vertical ones are rounded vertically.
+ (TT_LOADER_SET_PP): The horizontal position of vertical phantom
+ points in pre-ClearType mode is zero, as shown in the OpenType
+ specification.
+
+2013-12-02 Werner Lemberg <wl@gnu.org>
+
+ [truetype] Fix change from 2013-11-20.
+
+ Problem reported by Akira Kakuto <kakuto@fuk.kindai.ac.jp>.
+
+ * src/truetype/ttgload.c (TT_Load_Simple_Glyph): Protect call to
+ `Update_Max' with both a TT_USE_BYTECODE_INTERPRETER guard and a
+ `IS_HINTED' clause.
+ Also remove redundant check using `maxSizeOfInstructions' – in
+ simple glyphs, the bytecode data comes before the outline data, and
+ a validity test for this is already present.
+
+2013-11-27 Werner Lemberg <wl@gnu.org>
+
+ [autofit] Fix use of dumping functions in `ftgrid' demo program.
+
+ * src/autofit/afhints.c (AF_DUMP) [FT_DEBUG_AUTOFIT]: New macro.
+ (af_glyph_hints_dump_points, af_glyph_hints_dump_segments,
+ af_glyph_hints_dump_edges) [FT_DEBUG_AUTOFIT]: Add parameter to
+ handle output to stdout.
+ Use AF_DUMP.
+ (af_glyph_hints_dump_points, af_glyph_hints_dump_segments,
+ af_glyph_hints_dump_edges) [!FT_DEBUG_AUTOFIT]: Removed.
+
+2013-11-25 Werner Lemberg <wl@gnu.org>
+
+ * Version 2.5.1 released.
+ =========================
+
+
+ Tag sources with `VER-2-5-1'.
+
+ * docs/VERSION.DLL: Update documentation and bump version number to
+ 2.5.1.
+
+ * README, Jamfile (RefDoc), builds/windows/vc2005/freetype.vcproj,
+ builds/windows/vc2005/index.html,
+ builds/windows/vc2008/freetype.vcproj,
+ builds/windows/vc2008/index.html,
+ builds/windows/vc2010/freetype.vcxproj,
+ builds/windows/vc2010/index.html,
+ builds/windows/visualc/freetype.dsp,
+ builds/windows/visualc/freetype.vcproj,
+ builds/windows/visualc/index.html,
+ builds/windows/visualce/freetype.dsp,
+ builds/windows/visualce/freetype.vcproj,
+ builds/windows/visualce/index.html,
+ builds/wince/vc2005-ce/freetype.vcproj,
+ builds/wince/vc2005-ce/index.html,
+ builds/wince/vc2008-ce/freetype.vcproj,
+ builds/wince/vc2008-ce/index.html: s/2.5.0/2.5.1/, s/250/251/.
+
+ * include/freetype/freetype.h (FREETYPE_PATCH): Set to 1.
+
+ * builds/unix/configure.raw (version_info): Set to 17:0:11.
+ * CMakeLists.txt (VERSION_PATCH): Set to 1.
+ * docs/CHANGES, docs/release: Updated.
+
+2013-11-23 Werner Lemberg <wl@gnu.org>
+
+ [truetype]: Add tricky font names `hkscsiic.ttf' and `iicore.ttf'.
+
+ * src/truetype/ttobjs.c (TRICK_NAMES_MAX_CHARACTERS,
+ TRICK_NAMES_COUNT): Updated.
+ (trick_names): Add family name for the two fonts.
+
+2013-11-23 Werner Lemberg <wl@gnu.org>
+
+ * src/sfnt/ttsbit.c (tt_sbit_decoder_load_bitmap): Typo.
+
+2013-11-21 Werner Lemberg <wl@gnu.org>
+
+ [sfnt] Typo.
+
+ Problem reported by Hin-Tak Leung <htl10@users.sourceforge.net>.
+
+ * src/sfnt/sfobjs.c (sfnt_load_face): Return correct `bsize->width'
+ value if the font lacks an `OS/2' table.
+
+2013-11-21 Werner Lemberg <wl@gnu.org>
+
+ [sfnt] Improve handling of buggy embedded bitmap strikes.
+
+ We are now able to successfully load `AppleMyoungJo.ttf'.
+ Problem reported by Hin-Tak Leung <htl10@users.sourceforge.net>.
+
+ * src/sfnt/ttsbit.c (tt_sbit_decoder_load_bitmap): Don't trust glyph
+ format.
+
+2013-11-20 Werner Lemberg <wl@gnu.org>
+
+ [truetype] Don't trust `maxp's `maxSizeOfInstructions'.
+
+ Problem reported by Hin-Tak Leung <htl10@users.sourceforge.net>; see
+
+ https://lists.nongnu.org/archive/html/freetype-devel/2013-08/msg00005.html
+
+ for details.
+
+ * src/base/ftobjs.c (FT_Load_Glyph): Check size of `fpgm' and `prep'
+ tables also for setting `autohint'.
+
+ * src/truetype/ttgload.c (TT_Load_Simple_Glyph): Use code from
+ `TT_Process_Composite_Glyph' for handling unreliable values of
+ `maxSizeOfInstructions'.
+
+2013-11-16 Werner Lemberg <wl@gnu.org>
+
+ [sfnt] Fix `OS/2' table version 5 support.
+
+ We now follow the `official' announcement from Microsoft (on the
+ OpenType mailing list, which unfortunately hasn't a public archive).
+
+ * include/freetype/tttables.h (TT_OS2):
+ s/usLowerPointSize/usLowerOpticalPointSize/,
+ s/usUpperPointSize/usUpperOpticalPointSize/.
+
+ * src/sfnt/ttload.c (tt_face_load_os2): Update, and set correct
+ default values.
+
+2013-11-13 Werner Lemberg <wl@gnu.org>
+
+ * builds/unix/ft2unix.h: Remove. No longer necessary.
+
+ * builds/unix/install.mk (install): Updated.
+
+2013-11-13 Werner Lemberg <wl@gnu.org>
+
+ Simplify header file hierarchy.
+
+ This large patch changes the header file directory layout from
+ `include/freetype/...' to `include/...', effectively removing one
+ level. Since the file `ft2build.h' is also located in `include'
+ (and it stays there even after installation), all FreeType header
+ files are now in a single directory.
+
+ Applications that use (a) `freetype-config' or FreeType's
+ `pkg-config' file to get the include directory for the compiler, and
+ (b) the documented way for header inclusion like
+
+ #include <ft2build.h>
+ #include FT_FREETYPE_H
+ ...
+
+ don't need any change to the source code.
+
+ * include/freetype/*: Move up to...
+ * include/*: ... this directory.
+
+ * builds/amiga/include/freetype/*: Move up to...
+ * builds/amiga/include/*: ... this directory.
+
+ */*: Essentially do `s@/freetype/@/@' where appropriate.
+
+ * CMakeLists.txt: Simplify.
+ * builds/unix/freetype-config.in, builds/unix/freetype2.in: For
+ `--cflags', return a single directory.
+ * builds/unix/install.mk (install): No longer try to remove `cache'
+ and `internal' subdirectories; instead, remove the `freetype'
+ subdirectory.
+
+2013-11-12 Werner Lemberg <wl@gnu.org>
+
+ [truetype] Fix last `truetype' commit.
+
+ * src/truetype/ttgload.c (tt_get_metrics): Preserve stream position.
+ Return error value.
+ (load_truetype_glyph): Updated.
+
+2013-11-10 Werner Lemberg <wl@gnu.org>
+
+ * docs/CMAKE: New dummy file.
+
+2013-11-08 Dave Arnold <darnold@adobe.com>
+
+ [cff] Fix for hints that touch.
+
+ * src/cff/cf2hints.c (cf2_hintmap_insertHint): Fix condition for
+ finding index value of insertion point.
+
+2013-11-06 Werner Lemberg <wl@gnu.org>
+
+ [truetype] Fix handling of phantom points in composite glyphs.
+ Problem reported by Nigel Tao <nigeltao@golang.org>.
+
+ This is a follow-up commit to the previous one.
+
+ * src/truetype/ttgload.c (load_truetype_glyph): Call
+ `tt_get_metrics' after loading the glyph header.
+
+2013-11-06 Werner Lemberg <wl@gnu.org>
+
+ [truetype] Improve emulation of vertical metrics.
+
+ This commit also improves the start values of vertical phantom
+ points. Kudos to Greg Hitchcock for help.
+
+ * src/truetype/ttgload.c (TT_Get_VMetrics): Add parameter to pass
+ `yMax' value. Replace code with fixed Microsoft definition.
+ (tt_get_metrics): Updated.
+ (TT_LOADER_SET_PP): Add explanation how to initialize phantom
+ points, taken from both the OpenType specification and private
+ communication with Greg (which will eventually be added to the
+ standard).
+ Fix horizontal position of `pp3' and `pp4'.
+
+ * src/truetype/ttgload.h: Updated.
+
+ * src/truetype/ttdriver.c (tt_get_advances): Updated.
+
+ * docs/CHANGES: Updated.
+
+2013-11-05 Werner Lemberg <wl@gnu.org>
+
+ * builds/windows/vc2010/freetype.vcxproj: s/v110/v100/.
+ PlatformToolSet version 110 is for VC2012.
+
+ Problem reported (with solution) by Dave Arnold <darnold@adobe.com>.
+
+2013-11-05 Werner Lemberg <wl@gnu.org>
+
+ [truetype] Correctly reset point tags for glyph components.
+ Problem reported by Nigel Tao <nigeltao@golang.org>.
+
+ * src/truetype/ttgload.c (TT_Process_Composite_Glyph): Fix loop.
+
+2013-11-02 Werner Lemberg <wl@gnu.org>
+
+ [truetype] Fix GETINFO opcode handling of subpixel hinting bits.
+
+ * src/truetype/ttinterp.c (Ins_GETINFO): Don't request bit 6 set to
+ get info on subpixel hinting.
+
+ * docs/CHANGES: Updated.
+
+2013-11-02 Werner Lemberg <wl@gnu.org>
+
+ Fix Savannah bug #40451.
+
+ Simply apply the patch from the bug report.
+
+ * builds/unix/ftconfig.in, builds/vms/ftconfig.h,
+ include/freetype/config/ftconfig.h: The used #pragma directives only
+ work with gcc versions 4.6 and higher.
+
+2013-11-01 Werner Lemberg <wl@gnu.org>
+
+ * docs/CHANGES: Updated.
+
+2013-11-01 Werner Lemberg <wl@gnu.org>
+
+ [truetype] Minor code refactoring.
+
+ Two benefits: The allocated FDEF (and IDEF) array gets slightly
+ smaller, and the `ttdebug' demo program has access to function
+ numbers without additional costs.
+
+ Fortunately, no changes to FontForge are necessary – this is the
+ only external TrueType debugger I know of, but others may exist and
+ should check the code accordingly.
+
+ * src/truetype/ttinterp.h (TT_CallRec): Replace `Cur_Restart' and
+ `Cur_End' with a pointer to the corresponding `TT_DefRecord'
+ structure.
+
+ * src/truetype/ttinterp.c (DO_JROT, DO_JMPR, DO_JROF, Ins_ENDF,
+ Ins_CALL, Ins_LOOPCALL, Ins_UNKNOWN, TT_RunIns <Invalid_Opcode>):
+ Updated.
+
+2013-10-27 Werner Lemberg <wl@gnu.org>
+
+ [sfnt] Implement support for `OS/2' table version 5.
+
+ See
+
+ http://typedrawers.com/discussion/470/new-microsoft-size-specific-design-selection-mechanism
+
+ for the announcement.
+
+ * include/freetype/tttables.h (TT_OS2): Add fields
+ `usLowerPointSize' and `usUpperPointSize'. Since FreeType returns
+ this structure only as a pointer through `FT_Get_Sfnt_Table', there
+ shouldn't be any ABI problems.
+
+ * src/sfnt/ttload.c (tt_face_load_os2): Implement it.
+
+ * docs/CHANGES: Updated.
+
+2013-10-24 Werner Lemberg <wl@gnu.org>
+
+ * README.git, docs/CHANGES, docs/INSTALL: Updated.
+
+2013-10-24 John Cary <cary@txcorp.com>
+
+ Provide cmake support.
+
+ * CMakeLists.txt: New file.
+
+2013-10-23 Kenneth Miller <kennethadammiller@yahoo.com>
+ Werner Lemberg <wl@gnu.org>
+
+ Provide support for x64 builds in Visual C++ project files.
+
+ * src/builds/win32: Renamed to...
+ * src/builds/windows: This.
+
+ * src/builds/windows/vc2010/*: Updated to handle x64 target.
+
+ * src/builds/windows/*.mk, docs/INSTALL.GNU: s/win32/windows/ where
+ appropriate.
+
+2013-10-22 Werner Lemberg <wl@gnu.org>
+
+ * src/base/md5.c, src/base/md5.h: Updated to recent version.
+
+ * src/base/ftobjs.c: Updated; `md5.c' no longer uses `free'.
+
+ The canonical URL to get updates for this file is
+
+ https://cvsweb.openwall.com/cgi/cvsweb.cgi/Owl/packages/popa3d/popa3d/md5/
+
+ as the author told me in private communication.
+
+2013-10-19 Werner Lemberg <wl@gnu.org>
+
+ [autofit] s/SMALL_TOP/X_HEIGHT/.
+
+ * src/autofit/afblue.dat: Updated.
+
+ * src/autofit/afblue.c, src/autofit/afblue.h: Regenerated.
+
+ * src/autofit/aflatin.c, src/autofit/aflatin.h,
+ src/autofit/aflatin2.c: Updated.
+
+2013-10-19 Werner Lemberg <wl@gnu.org>
+
+ * src/autofit/afblue.dat: s/MINOR/DESCENDER/.
+
+ * src/autofit/afblue.c, src/autofit/afblue.h: Regenerated.
+
+2013-10-16 Werner Lemberg <wl@gnu.org>
+
+ [autofit] Add description strings to script entries.
+
+ Currently, this is unused.
+
+ * src/autofit/afscript.h: Do it.
+ * src/autofit/afglobal.c, src/autofit/afpic.c,
+ src/autofit/aftypes.h: Updated.
+
+2013-10-16 Werner Lemberg <wl@gnu.org>
+
+ [autofit] Improve tracing message for extra light flag.
+
+ * src/autofit/aflatin.c (af_latin_metrics_scale_dim): Do it.
+
+2013-10-15 Chongyu Zhu <lembacon@gmail.com>
+
+ [arm] Fix thumb2 inline assembly under LLVM.
+
+ When using `ADD' with an immediate operand, the instruction is
+ actually `ADD Rd, Rn, #<imm12>', that is, the maximum of the
+ immediate operand cannot exceed 4095. It will fail to compile with
+ LLVM.
+
+ However, in GCC, due to some legacy compatibility considerations,
+ `ADD.W' will be automatically emitted when the immediate operand is
+ larger than 4095.
+
+ * builds/unix/ftconfig.in, include/freetype/config/ftconfig.h
+ (FT_MulFix_arm) [__GNUC__]: Support clang compiler.
+
+ * src/truetype/ttinterp.c (TT_MulFix14_arm) [__GNUC__]: Ditto.
+
+2013-10-12 Werner Lemberg <wl@gnu.org>
+
+ [autofit] Improve tracing of `latin' hinter.
+
+ * src/autofit/aflatin.c (af_latin_metrics_init_blues): Report blue
+ zone types.
+ (af_latin_metrics_scale_dim): Report scaling changes due to x height
+ alignment.
+ Report scaled stroke width and blue zone values.
+
+2013-10-03 Dave Arnold <darnold@adobe.com>
+
+ * src/cff/cf2font.c (cf2_computeDarkening): Avoid division by zero.
+
+ Note that the old code avoided using a region of the piecewise
+ linear function where the slope was zero. The recovery was to use a
+ different section of the function, which produced a different,
+ incorrect amount of darkening.
+
+2013-10-02 Darrell Bellert <darrell.bellert@hl.konicaminolta.us>
+
+ * src/sfnt/ttload.c (tt_face_load_pclt): Fix `pclt_fields'.
+
+2013-10-02 Dave Arnold <darnold@adobe.com>
+
+ * src/cff/cf2font.c (cf2_computeDarkening): Initialize darkenAmount.
+
+ This line was lost in commit 89ca1fd6 (from 2013-06-25). The effect
+ is to use a previous darkening amount when producing an unhinted,
+ unscaled outline. This can cause autohint samples in ftgrid and
+ ftview to be based on darkened CFF outlines instead of unhinted,
+ undarkened ones.
+
+2013-09-29 Dave Arnold <darnold@adobe.com>
+
+ Fix Savannah bug #39295.
+
+ The bug was caused by switching to the initial hintmap (the one in
+ effect when `moveto' executes) just before drawing the final element
+ in the charstring. This ensured that the path was closed (in both
+ Character Space and Device Space). But if the final element was a
+ curve and if the final hintmap was different enough from the initial
+ one, then the curve was visibly distorted.
+
+ The first part of the fix is to draw the final curve using the final
+ hintmap as specified by the charstring. This corrects the
+ distortion but does not ensure closing in Device Space. It may
+ require the rasterizer to automatically generate an extra closing
+ line. Depending on the hintmap differences, this line could be from
+ zero to a couple pixels in length.
+
+ The second part of the fix covers the case where the charstring
+ subpath is closed with an explicit line. We now modify that line's
+ end point to avoid the distortion.
+
+ Some glyphs in the bug report font (TexGyreHeros-Regular) that show
+ the change are:
+
+ 25ppem S (98)
+ 24ppem eight (52)
+ 25.5ppem p (85)
+
+ Curves at the *end* of a subpath are no longer distorted. However,
+ some of these glyphs have bad hint substitutions in the middle of a
+ subpath, and these are not affected.
+
+ The patch has been tested with a set of 106 fonts that shipped with
+ Adobe Creative Suite 4, together with 756 Open Source CFF fonts from
+ Google Fonts. There are 1.5 million glyphs, of which some 20k are
+ changed with the fix. A sampling of a few hundred of these changes
+ have been examined more closely, and the changes look good (or at
+ least acceptable).
+
+ * src/cff/cf2hints.h (CF2_GlyphPathRec): New element `pathIsClosing'
+ to indicate that we synthesize a closepath line.
+
+ * src/cff/cf2hints.c (cf2_glyphpath_init): Updated.
+ (cf2_glyphpath_pushPrevElem): If closing, use first hint map (for
+ `lineto' operator) and adjust hint zone.
+ For synthesized closing lines, use end point in first hint zone.
+ (cf2_glyphpath_lineTo): Take care of synthesized closing lines. In
+ particular, shift the detection of zero-length lines from character
+ space to device space.
+ (cf2_glyphpath_closeOpenPath): Remove assertion.
+ Updated.
+
+2013-09-25 Werner Lemberg <wl@gnu.org>
+
+ * src/autofit/aflatin.c (af_{grek,cyrl}_uniranges): Fix arrays.
+
+2013-09-25 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ [bdf, pcf] Refuse non-zero face_index.
+
+ Suggested by Akira Tagoh, see
+
+ https://lists.gnu.org/archive/html/freetype/2013-09/msg00030.html
+
+ * src/bdf/bdfdrivr.c (BDF_Face_Init): Return `Invalid_Argument'
+ error if the font could be opened but non-zero `face_index' is
+ given.
+ * src/pcf/pcfdrivr.c (PCF_Face_Init): Ditto.
+
+ * src/type42/t42objs.c (T42_Face_Init): Remove unrequired FT_UNUSED
+ macro for `face_index' because it is validated later.
+
+2013-09-23 Werner Lemberg <wl@gnu.org>
+
+ Fix Savannah bug #40090.
+
+ * src/autofit/afcjk.c (af_cjk_metrics_scale): Revert commit
+ 306f8c5d (from 2013-08-25) affecting this function.
+
+2013-09-22 Werner Lemberg <wl@gnu.org>
+
+ [autofit] Disunify Cyrillic and Greek handling from Latin.
+
+ * src/autofit/afscript.h: Add Cyrillic and Greek.
+
+ * src/autofit/afblue.dat (AF_BLUE_STRINGSET_GREK,
+ AF_BLUE_STRINGSET_CYRL): Add blue zones for Greek and Cyrillic.
+ (AF_BLUE_STRINGSET_LATN): Fix typo.
+ * src/autofit/afblue.c, src/autofit/afblue.h: Regenerated.
+
+ * src/autofit/aflatin.c (af_grek_uniranges, af_cyrl_uniranges): New
+ arrays.
+ (af_grek_script_class, af_cyrl_script_class): New scripts.
+ * src/autofit/aflatin.h: Updated.
+
+2013-09-20 Werner Lemberg <wl@gnu.org>
+
+ * docs/CHANGES: Updated.
+
+2013-09-20 Behdad Esfahbod <behdad@behdad.org>
+
+ Fix vertical size of emboldened glyphs.
+
+ Cf. https://bugzilla.gnome.org/show_bug.cgi?id=686709
+
+ * src/base/ftsynth.c (FT_GlyphSlot_Embolden): Adjust `horiBearingY'
+ also.
+
+2013-09-11 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ * include/freetype/ftoutln.h: Correct FT_Outline_Get_Orientation
+ algorithm description.
+
+2013-09-11 Werner Lemberg <wl@gnu.org>
+
+ [autofit] Improve Hebrew rendering.
+
+ This change introduces a new blue zone property
+ `AF_BLUE_PROPERTY_LATIN_LONG' to make the auto-hinter ignore short
+ top segments.
+
+ * src/autofit/afblue.dat: Fix Hebrew blue strings.
+ Use AF_BLUE_PROPERTY_LATIN_LONG for AF_BLUE_STRING_HEBREW_TOP.
+
+ * src/autofit/afblue.hin (AF_BLUE_PROPERTY_LATIN_LONG): New macro.
+
+ * src/autofit/afblue.c, src/autofit/afblue.h: Updated.
+
+ * src/autofit/aflatin.c (af_latin_metrics_init_blues): Handle
+ `AF_LATIN_IS_LONG_BLUE'.
+
+ * src/autofit/aflatin.h (AF_LATIN_IS_LONG_BLUE): New macro.
+
+2013-08-28 Behdad Esfahbod <behdad@google.com>
+
+ [sfnt] Fix frame access while reading WOFF table directory.
+
+ * src/sfnt/sfobjs.c (woff_open_font): Using single memory frame
+ while reading the directory entries for the whole loop.
+
+2013-08-29 Werner Lemberg <wl@gnu.org>
+ Behdad Esfahbod <behdad@google.com>
+
+ Implement support for WOFF containers.
+
+ We simply synthesize a SFNT from the WOFF, create a memory stream
+ for the new data, and load the SFNT as usual.
+
+ Does NOT add any API to access WOFF metadata or private blocks.
+
+ * include/freetype/internal/tttypes.h (WOFF_HeaderRec,
+ WOFF_TableRec): New structures.
+
+ * include/freetype/tttags.h (TTAG_wOFF): New macro.
+
+ * src/base/ftobjs.c (FT_Open_Face): Set `stream' after calling
+ `open_face'.
+
+ * src/sfnt/sfobjs.c [FT_CONFIG_OPTION_SYSTEM_ZLIB]: Include
+ `FT_GZIP_H'.
+ (WRITE_BYTE, WRITE_USHORT, WRITE_ULONG): New temporary macros for
+ writing to a stream.
+ (sfnt_stream_close, compare_offsets, woff_open_font): New functions.
+ (sfnt_open_font): Handle `TTAG_wOFF'.
+ (sfnt_init_face): Set `stream' after calling `sfnt_open_font'.
+
+ * src/truetype/ttobjs.c (tt_face_init): Set `stream' after calling
+ `sfnt->init_face'.
+
+ * src/base/ftobjs.c (open_face): Use a pointer to FT_Stream as an
+ argument so that a changed stream survives.
+ Update callers.
+
+2013-08-28 Werner Lemberg <wl@gnu.org>
+
+ [gzip] New function `FT_Gzip_Uncompress'.
+
+ This is modeled after zlib's `uncompress' function. We need this
+ for WOFF support.
+
+ * include/freetype/ftgzip.h, src/gzip/ftgzip.c (FT_Gzip_Uncompress):
+ New function.
+
+ * src/gzip/rules.mk: Rewrite to better reflect dependencies.
+
+2013-08-28 Werner Lemberg <wl@gnu.org>
+
+ [autofit] Fix `make multi' compilation.
+
+ * src/autofit/afblue.cin, src/autofit/afblue.c: Don't include
+ `afblue.h' but `aftypes.h'.
+ * src/autofit/afcjk.c: Don't include `aftypes.h' but `afglobal.h'.
+
+2013-08-28 Werner Lemberg <wl@gnu.org>
+
+ [autofit] Fix C++ compilation.
+
+ * src/autofit/afglobal.c (af_face_globals_get_metrics),
+ src/autofit/afdummy.c (af_dflt_script_class), src/autofit/afindic.c
+ (af_deva_script_class): Use proper casts.
+
+2013-08-27 Behdad Esfahbod <behdad@google.com>
+
+ * src/sfnt/ttload.c (tt_face_load_font_dir): Fix sign typos.
+
+2013-08-27 Behdad Esfahbod <behdad@google.com>
+
+ FT_Open_Face: Improve external stream handling.
+
+ If the font's `clazz->init_face' function wants to swap to new
+ stream, handling of whether original stream was external could
+ result to either memory leak or double free. Mark externality into
+ face flags before calling `init_face' such that the clazz can handle
+ external streams properly.
+
+ * src/base/ftobjs.c (FT_Open_Face): Move code to set
+ FT_FACE_FLAG_EXTERNAL_STREAM to...
+ (open_face): This function.
+
+2013-08-27 Werner Lemberg <wl@gnu.org>
+
+ Remove `FT_SqrtFixed' function.
+
+ It's no longer used.
+
+ * include/freetype/internal/ftcalc.h, src/base/ftcalc.c: Do it.
+
+2013-08-27 Werner Lemberg <wl@gnu.org>
+
+ [autofit] While tracing, report script names instead of ID values.
+
+ * src/autofit/afglobal.c (af_script_names) [FT_DEBUG_LEVEL_TRACE]:
+ New array.
+ * src/autofit/afglobal.h: Updated.
+
+ * src/autofit/afcjk.c (af_cjk_metrics_init_widths,
+ af_cjk_hint_edges): Use `af_script_names'.
+ * src/autofit/aflatin.c (af_latin_metrics_init_widths,
+ af_latin_hint_edges): Ditto.
+
+2013-08-26 Werner Lemberg <wl@gnu.org>
+
+ [autofit] Report used script while hinting a glyph.
+
+ * src/autofit/afcjk.c (af_cjk_hint_edges), src/autofit/aflatin.c
+ (af_latin_hint_edges): Implement it.
+
+2013-08-26 Werner Lemberg <wl@gnu.org>
+
+ [autofit] Add support for Hebrew script.
+
+ * src/autofit/afblue.dat: Add blue strings for Hebrew.
+ * src/autofit/afblue.c, src/autofit/afblue.h: Regenerated.
+
+ * src/autofit/aflatin.c (af_hebr_uniranges): New array.
+ (af_hebr_script_class): New script.
+ * src/autofit/aflatin.h, src/autofit/afscript.h: Updated.
+
+2013-08-26 Werner Lemberg <wl@gnu.org>
+
+ [autofit] Improve tracing messages.
+
+ * src/autofit/afcjk.c (af_cjk_metrics_init_widths): Mention script
+ ID in tracing message.
+ (af_cjk_metrics_init_blues): Initialize `axis' outside of the inner
+ loop.
+ Improve tracing messages.
+ (af_cjk_hint_edges) [FT_DEBUG_LEVEL_TRACE]: New variable
+ `num_actions' to count hinting actions.
+ Improve tracing messages.
+
+ * src/autofit/aflatin.c (af_latin_metrics_init_widths): Mention
+ script ID in tracing message.
+ (af_latin_metrics_init_blues, af_latin_hint_edges): Improve tracing
+ messages.
+
+2013-08-26 Werner Lemberg <wl@gnu.org>
+
+ Better tracing of loaded glyphs.
+
+ Previously, the loading of a glyph was traced at level 4, if at all.
+ With this change, all font loading routines emit a tracing message
+ at level 1, making it easier to select tracing output (for example
+ using F2_DEBUG="any:1 afhints:7 aflatin:7").
+
+ * src/bdf/bdfdrivr.c (BDF_Glyph_Load): Add tracing message.
+ * src/cff/cffdrivr.c (cff_glyph_load): Ditto.
+ * src/cff/cffgload.c (cff_decoder_prepare): Improve tracing
+ messages.
+ * src/cid/cidgload.c (cid_load_glyph): Use level 1 for tracing
+ message.
+ * src/pcf/pcfdrivr.c (PCF_Glyph_Load): Ditto.
+ * src/pfr/pfrobjs.c (pfr_slot_load): Add tracing message.
+ * src/truetype/ttgload.c (TT_Load_Glyph): Ditto.
+ * src/type1/t1gload.c (T1_Load_Glyph): Ditto.
+ * src/type42/t42objs.c (T42_GlyphSlot_Load): Ditto.
+ * src/winfonts/winfnt.c (FNT_Load_Glyph): Ditto.
+
+2013-08-26 Werner Lemberg <wl@gnu.org>
+
+ [autofit] Fix script selection.
+
+ * src/autofit/afglobal.c (af_face_globals_get_metrics): Use
+ `AF_SCRIPT_DFLT', not value 0.
+ Simplify code.
+
+ * src/autofit/afscript.h: Sort by script name.
+
+2013-08-26 Werner Lemberg <wl@gnu.org>
+
+ [autofit] Make `dummy' hinter work as expected.
+
+ * src/autofit/afdummy.c (af_dummy_hints_init): Properly set scaling
+ information.
+ (af_dummy_hints_apply): Scale the glyphs.
+
+2013-08-25 Werner Lemberg <wl@gnu.org>
+
+ [autofit] Make `cjk' module use blue stringsets.
+
+ * src/autofit/afcjk.c (AF_CJK_MAX_TEST_CHARACTERS): Removed.
+ (af_cjk_hani_blue_chars): Removed.
+ (AF_CJK_BLUE_TYPE_*): Removed.
+ (af_cjk_metrics_init_blues): Replace AF_CJK_MAX_TEST_CHARACTERS with
+ AF_BLUE_STRING_MAX_LEN.
+ Change loops to use offsets (in file `afblue.h') into the new arrays
+ `af_blue_stringsets' and `af_blue_strings' (in file `afblue.c').
+ Instead of three dimensions (as used in the old blue string array)
+ we now use properties to do the same, saving one loop nesting level.
+
+ * src/autofit/afcjk.h: Remove old enumeration values superseded by
+ the new data in `afblue.h'.
+ (AF_CJK_IS_TOP_BLUE, AF_CJK_IS_HORIZ_BLUE, AF_CJK_IS_FILLED_BLUE,
+ AF_CJK_IS_RIGHT_BLUE): New macros, to be used in
+ `af_cjk_metrics_init_blues'.
+ (AF_CJK_BLUE_IS_RIGHT): Remove this now redundant enum value.
+ (AF_CJK_BLUE_IS_TOP): Renamed to...
+ (AF_CJK_BLUE_TOP): This.
+ (AF_CJK_MAX_BLUES): Remove.
+ (AF_CJKAxisRec): Updated.
+
+2013-08-25 Werner Lemberg <wl@gnu.org>
+
+ [autofit] Typo.
+
+ * src/autofit/afblue.hin, src/autofit/afblue.c (GET_UTF8_CHAR): Use
+ cast.
+
+2013-08-25 Werner Lemberg <wl@gnu.org>
+
+ [autofit] Synchronize `cjk' with `latin' module (and vice versa).
+
+ * src/autofit/afcjk.c (af_cjk_metrics_init_widths): Add tracing
+ messages.
+ (af_cjk_metrics_init_blues): Don't pass blue string array as
+ argument but use the global array directly.
+ Use `outline' directly.
+ Update and add tracing messages.
+ (af_cjk_metrics_init): Simplify code.
+ (af_cjk_metrics_scale_dim): Improve tracing message.
+ (af_cjk_metrics_scale): Synchronize.
+
+ * src/autofit/aflatin.c (af_latin_metrics_init_widths,
+ af_latin_metrics_init_blues): Improve and add tracing messages.
+
+2013-08-25 Werner Lemberg <wl@gnu.org>
+
+ [autofit] Make `latin' module use blue stringsets.
+
+ * src/autofit/aflatin.c (AF_LATIN_MAX_TEST_CHARACTERS): Removed.
+ (af_latin_blue_chars): Removed.
+ (af_latin_metrics_init_blues): Replace AF_LATIN_MAX_TEST_CHARACTERS
+ with AF_BLUE_STRING_MAX_LEN.
+ Change loops to use offsets (in file `afblue.h') into the new arrays
+ `af_blue_stringsets' and `af_blue_strings' (in file `afblue.c').
+ Use `AF_LATIN_IS_SMALL_TOP_BLUE' macro.
+
+ * src/autofit/aflatin.h: Remove old enumeration values superseded by
+ the new data in `afblue.h'.
+ (AF_LATIN_IS_TOP_BLUE): Updated definition.
+ (AF_LATIN_IS_SMALL_TOP_BLUE): New macro.
+ (AF_LATIN_MAX_BLUES): Remove.
+ (AF_LatinAxisRec): Updated.
+
+2013-08-25 Werner Lemberg <wl@gnu.org>
+
+ [autofit] Add blue stringsets.
+
+ * src/autofit/aftypes.h: Include `afblue.h'.
+ (AF_ScriptClassRec): Add `blue_stringset' field.
+ (AF_DEFINE_SCRIPT_CLASS): Updated.
+
+ * src/autofit/autofit.c: Include `afblue.c'.
+
+ * src/autofit/afcjk.c (af_hani_script_class), src/autofit/afdummy.c
+ (af_dflt_script_class), src/autofit/afindic.c
+ (af_deva_script_class), src/autofit/aflatin.c
+ (af_latn_script_class), src/autofit/aflatin2.c
+ (af_ltn2_script_class): Updated.
+
+ * src/autofit/rules.mk (AUTOF_DRV_SRC): Add `afblue.c'.
+
+2013-08-25 Werner Lemberg <wl@gnu.org>
+
+ [autofit] Introduce data file for blue strings.
+
+ The idea is to have a central file which gets processed by a Perl
+ script to create proper `.c' and `.h' files using templates. There
+ are two other reasons to do that:
+
+ . The data file should be easily readable. We use UTF-8 encoding
+ which then gets converted to single bytes.
+
+ . Since the number of supported scripts will increase soon, the
+ current usage of blue string arrays is a waste of space. Using
+ the Perl script it is possible to imitate jagged arrays,
+ defining enumeration constants as offsets into the arrays.
+
+ This commit only adds files without changing any functionality.
+
+ * src/autofit/afblue.dat: New data file.
+ * src/tools/afblue.pl: New Perl script for processing `afblue.dat'.
+
+ * src/autofit/afblue.cin, src/autofit/afblue.hin: New template files
+ for...
+ * src/autofit/afblue.c, src/autofit/afblue.c: New source files.
+ To avoid a dependency on Perl, we add them too.
+
+2013-08-19 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ [base] Enable new algorithm for `BBox_Cubic_Check'.
+
+ * src/base/ftbbox.c: Enable new BBox_Cubic_Check algorithm, remove
+ the old one.
+ Improve comments.
+
+2013-08-18 Werner Lemberg <wl@gnu.org>
+
+ * builds/unix/unix-def.in (freetype2.pc): Don't set executable bit.
+
+2013-08-18 Werner Lemberg <wl@gnu.org>
+
+ Fix Savannah bug #39804.
+
+ * builds/unix/configure.raw (LIBPNG): Define and export.
+ * builds/unix/freetype-config.in, builds/unix/freetype2.in: Handle
+ libpng.
+
+2013-08-17 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ [base] Clean up BBox_Conic_Check.
+
+ * src/base/ftbbox.c (BBox_Conic_Check): Remove redundant checks for
+ extremum at the segment ends, which are already within the bbox.
+ Slightly modify calculations.
+
+2013-08-15 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ [base] Finish experimental (disabled) BBox_Cubic_Check implementation.
+
+ * src/base/ftbbox.c (BBox_Cubic_Check): Scale arguments to improve
+ accuracy and avoid overflows.
+
+2013-08-13 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ [base] Refactor experimental (disabled) BBox_Cubic_Check.
+
+ * src/base/ftbbox.c (BBox_Cubic_Check): Implement the minimum search
+ as the mirror image of the maximum search implemented here...
+ (update_max): New function.
+
+2013-08-06 John Tytgat <John.Tytgat@esko.com>
+
+ Fix Savannah bug #39702.
+
+ * src/cff/cffload.c (cff_index_get_pointers): Check for `cur_offset
+ != 0'; this stronger test is mandated by the CFF specification.
+ Fix test for INDEX structures which have one or more empty entries
+ at the end.
+
+2013-08-05 Werner Lemberg <wl@gnu.org>
+
+ Fix gcc pragmas, part 2.
+
+ * src/truetype/ttinterp.c (TT_MulFix14_long_long,
+ TT_DotFix14_long_long): `#pragma gcc diagnostic {push,pop}' has been
+ introduced with gcc version 4.6.
+
+2013-08-05 Werner Lemberg <wl@gnu.org>
+
+ Fix gcc pragmas.
+
+ * src/truetype/ttinterp.c (TT_MulFix14_long_long,
+ TT_DotFix14_long_long): Older gcc versions don't accept diagnostic
+ pragmas within a function body.
+
+2013-08-05 Werner Lemberg <wl@gnu.org>
+
+ Fix Savannah bug #39700.
+
+ * builds/unix/ftconfig.h: Synchronize with
+ `include/freetype/config/ftconfig.h'.
+
+ * builds/vms/ftconfig.h: Ditto.
+ Make the differences to the master `ftconfig.h' file as small as
+ possible for easier maintenance.
+
+2013-08-05 Werner Lemberg <wl@gnu.org>
+
+ [autofit] Improve handling of `near' points.
+
+ Points which are very near to each other are now marked as such.
+ The `weak' flag is then computed by using the `in' vector of the
+ first and the `out' vector of the last point of a group of near
+ points.
+
+ For example, this fixes the rendering of glyph `Oslash' in
+ `Roboto-Thin.ttf'.
+
+ * src/autofit/afhints.h (AF_Flags): New value `AF_FLAGS_NEAR'.
+
+ * src/autofit/afhints.c (af_glyph_hints_reload): Introduce
+ the heuristic value `near_limit' to decide whether the current point
+ is near to the previous one, then set `AF_FLAG_NEAR' accordingly.
+ Store good `in' vector (of last non-near point) in
+ `last_good_in_{x,y}' and use it as an argument to
+ `ft_corner_is_flat' if necessary.
+
+2013-08-02 Werner Lemberg <wl@gnu.org>
+
+ * include/freetype/ftcffdrv.h: Improve documentation.
+ This is based on blog entries from David Lemon and Dave Arnold (both
+ from Adobe) with kind permission. Dave also helped in
+ proof-reading.
+
+2013-08-02 Werner Lemberg <wl@gnu.org>
+
+ [autofit] Move declaration of scripts into separate file.
+
+ This has the benefit that we don't need to duplicate the data at
+ different places.
+
+ * src/autofit/afscript.h: New file.
+
+ * src/autofit/aftypes.h (AF_Script): Include `afscript.h' to define
+ the enumeration values.
+
+ * src/autofit/afglobal.c: Include `afscript.h' to get the script
+ specific header files.
+ (af_script_classes): Include `afscript.h' to fill this array.
+
+ * src/autofit/afpic.c: Include `afscript.h' to get the script
+ specific header files.
+ (autofit_module_class_pic_init): Include `afscript.h' for
+ initialization.
+ * src/autofit/afpic.h (AF_SCRIPT_CLASSES_COUNT,
+ AF_SCRIPT_CLASSES_REC_COUNT): Removed. Use `AF_SCRIPT_MAX' instead.
+
+ * src/autofit/rules.mk (AUTOF_DRV_H): Updated.
+
+2013-08-02 Werner Lemberg <wl@gnu.org>
+
+ [autofit] Move declaration of writing systems into separate file.
+
+ This has the benefit that we don't need to duplicate the data at
+ different places.
+
+ * src/autofit/afwrtsys.h: New file.
+
+ * src/autofit/aftypes.h (AF_WritingSystem): Include `afwrtsys.h' to
+ define the enumeration values.
+
+ * src/autofit/afglobal.c: Include `afwrtsys.h' to get the writing
+ system specific header files.
+ Include `afpic.h'.
+ (af_writing_system_classes): Include `afwrtsys.h' to fill this
+ array.
+
+ * src/autofit/afpic.c: Include `afwrtsys.h' to get the writing
+ system specific header files.
+ (autofit_module_class_pic_init): Include `afwrtsys.h' for
+ initialization.
+ * src/autofit/afpic.h (AF_WRITING_SYSTEM_CLASSES_COUNT,
+ AF_WRITING_SYSTEM_CLASSES_REC_COUNT): Removed. Use
+ `AF_WRITING_SYSTEM_MAX' instead.
+
+2013-08-02 Werner Lemberg <wl@gnu.org>
+
+ [sfnt] Fix compilation with g++.
+
+ * src/sfnt/pngshim.c (error_callback, read_data_from_FT_stream): Use
+ cast.
+ (Load_SBit_Png): Pacify compiler.
+
+2013-08-02 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+ Werner Lemberg <wl@gnu.org>
+
+ [autofit] Fix `make multi'.
+
+ * include/freetype/config/ftconfig.h (FT_LOCAL_ARRAY,
+ FT_LOCAL_ARRAY_DEF): New macros.
+
+ * src/autofit/afglobal.c (af_writing_system_classes,
+ af_script_classes): Use FT_LOCAL_ARRAY_DEF.
+ * src/autofit/afglobal.h: Declare `af_writing_system_classes' and
+ `af_script_classes'.
+ * src/autofit/afloader.c: Include `afpic.h'.
+
+2013-08-01 Werner Lemberg <wl@gnu.org>
+
+ Another round of cppcheck nitpicks.
+
+ The call was (from the top-level of the FreeType tree):
+
+ cppcheck --force \
+ --enable=all \
+ -I /usr/include \
+ -I /usr/local/include \
+ -I /usr/lib/gcc/i586-suse-linux/4.7/include \
+ -I include \
+ -I include/freetype \
+ -I include/freetype/config \
+ -I include/freetype/internal \
+ -DFT2_BUILD_LIBRARY \
+ . &> cppcheck.log
+
+ using cppcheck git commit f7e93f99.
+
+ Note that cppcheck still can't handle `#include FOO' (with `FOO' a
+ macro).
+
+ */* Improve variable scopes.
+ */* Remove redundant initializations which get overwritten.
+
+ * src/gxvalid/*: Comment out redundant code or guard it with
+ FT_DEBUG_LEVEL_TRACE.
+
+2013-07-30 Werner Lemberg <wl@gnu.org>
+
+ [autofit] Introduce `writing systems'.
+
+ This patch adds a new top level to the auto-hinter's script class
+ hierarchy. It defines `writing systems' which can contain multiple
+ scripts.
+
+ For example, the `latin' writing system (in file `aflatin.c') is
+ able to support scripts like Latin, Cyrillic, Armenian, etc., which
+ can be handled similarly.
+
+ Scripts are now named using four-letter OpenType tags.
+
+ * src/autofit/aftypes.h (AF_ScriptClassRec): Move relevant members
+ to...
+ (AF_WritingSystemClassRec): This new structure. It holds pointers
+ to functions which can be shared among related scripts.
+ (AF_WritingSystem): New enumeration.
+ (AF_Script): Revised values using four-letter tags.
+ (AF_DEFINE_WRITING_SYSTEM_CLASS): New macro.
+ (AF_DEFINE_SCRIPT_CLASS): Updated.
+
+ * src/autofit/afglobal.c (af_writing_system_classes): New global,
+ constant array.
+ (af_script_classes): Updated.
+ (af_face_globals_free): Updated.
+ Remove assertion.
+ (af_face_globals_get_metrics): Updated.
+
+ * src/autofit/afglobal.h (AF_SCRIPT_FALLBACK)
+ [!AF_CONFIG_OPTION_CJK]: Handle this case.
+
+ * src/autofit/afloader.c (af_loader_load_g, af_loader_load_glyph):
+ Updated.
+
+ * src/autofit/afpic.c (autofit_module_class_pic_init): Updated;
+ initialize structures for both writing systems and scripts.
+ * src/autofit/afpic.h: Updated.
+ (AF_WRITING_SYSTEM_CLASSES_GET): New macro.
+
+ * src/autofit/afcjk.c (af_cjk_writing_system_class): New writing
+ system.
+ (af_cjk_uniranges): Renamed to...
+ (af_hani_uniranges): This.
+ (af_cjk_script_class): Reduced and renamed to...
+ (af_hani_script_class): This.
+ * src/autofit/afcjk.h: Updated.
+
+ * src/autofit/afdummy.c (af_dummy_writing_system_class): New writing
+ system.
+ (af_dummy_script_class): Reduced and renamed to...
+ (af_dflt_script_class): This.
+ * src/autofit/afdummy.h: Updated.
+
+ * src/autofit/afindic.c (af_indic_writing_system_class): New writing
+ system.
+ (af_indic_uniranges): Renamed to...
+ (af_deva_uniranges): This.
+ (af_indic_script_class): Reduced and renamed to...
+ (af_deva_script_class): This.
+ * src/autofit/afcjk.h: Updated.
+
+ * src/autofit/aflatin.c (af_latin_writing_system_class): New writing
+ system.
+ (af_latin_uniranges): Renamed to...
+ (af_latn_uniranges): This.
+ (af_latin_script_class): Reduced and renamed to...
+ (af_latn_script_class): This.
+ * src/autofit/aflatin.h: Updated.
+
+ * src/autofit/aflatin2.c (af_latin2_writing_system_class): New
+ writing system.
+ (af_latin2_uniranges): Renamed to...
+ (af_ltn2_uniranges): This.
+ Synchronize ranges with `latin'.
+ (af_latin2_script_class): Reduced and renamed to...
+ (af_ltn2_script_class): This.
+ * src/autofit/aflatin2.h: Updated.
+
+2013-07-30 Werner Lemberg <wl@gnu.org>
+
+ [autofit] Variable renaming.
+
+ * src/autofit/aftypes.h (AF_ScriptMetricsRec):
+ s/clazz/script_class/.
+ Update all users.
+
+2013-07-30 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ Ignore libpng-config under cross-building configuration,
+ because it will return the flags for the hosting environment.
+
+ * builds/unix/configure.raw: Ignore libpng-config when
+ `cross_compiling' == yes.
+
+2013-07-30 Behdad Esfahbod <behdad@google.com>
+
+ Prevent division by zero by a transparent color.
+
+ * src/base/ftbitmap.c (ft_gray_for_premultiplied_srgb_bgra):
+ Return 0 immediately, when alpha channel is zero.
+
+2013-07-25 Behdad Esfahbod <behdad@google.com>
+
+ Add FT_FACE_FLAG_COLOR and FT_HAS_COLOR.
+
+ Also disambiguate Google's color bitmap tables.
+
+ * include/freetype/freetype.h (FT_FACE_FLAG_COLOR, FT_HAS_COLOR):
+ New macros.
+
+ * include/freetype/internal/tttypes.h (TT_SbitTableType): Add
+ TT_SBIT_TABLE_TYPE_CBLC.
+
+ * src/sfnt/sfobjs.c (sfnt_load_face): Handle FT_FACE_FLAG_COLOR.
+
+ * src/sfnt/ttsbit.c (tt_face_load_sbit,
+ tt_face_load_strike_metrics, tt_face_load_sbit_image): Handle
+ TT_SBIT_TABLE_TYPE_CBLC.
+
+2013-07-24 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ [sfnt] Fix for `make multi' target.
+
+ * src/sfnt/pngshim.c (Load_SBit_Png): Use FT_LOCAL_DEF().
+
+2013-07-20 Werner Lemberg <wl@gnu.org>
+
+ * docs/INSTALL.GNU: Updated.
+
+2013-07-20 Behdad Esfahbod <behdad@google.com>
+
+ [sfnt] Fix `sbix' table version handling.
+
+ * src/sfnt/ttsbit.c (tt_face_load_sbit) [TT_SBIT_TABLE_TYPE_SBIX]:
+ USHORT version numbers are to be considered as `minor'.
+
+2013-07-19 Werner Lemberg <wl@gnu.org>
+
+ [autofit] Fix segment classification for blue zones.
+
+ The old code (essentially unchanged since the very beginning)
+ incorrectly handled this configuration
+
+ x -o- x
+ / \
+ / \
+ / \
+ o o
+
+ as flat and this
+
+ o o
+ / /
+ x| x|
+ | |
+ o---------------o
+
+ as round. (`o' and `x' are on and off points, respectively).
+
+ This is a major change which should improve the rendering results
+ enormously for many TrueType fonts, especially in the range approx.
+ 20-40ppem, fixing the appearance of many overshoots.
+
+ * src/autofit/aflatin.c (af_latin_metrics_init_blues): Look at the
+ first and last points of the segment, not the points right before
+ and after.
+
+2013-07-19 Behdad Esfahbod <behdad@google.com>
+
+ [sfnt] `sbix' fix-ups.
+
+ * src/sfnt/sfobjs.c (sfnt_load_face): Apple's `sbix' color bitmaps
+ are rendered scaled and then the `glyf' outline rendered on top. We
+ don't support that yet, so just ignore the `glyf' outline and
+ advertise it as a bitmap-only font.
+
+ * src/sfnt/ttsbit.c (tt_face_load_strike_metrics)
+ [TT_SBIT_TABLE_TYPE_SBIX]: Return metrics in 26.6 units.
+ (tt_face_load_sbix_image): Typo.
+
+2013-07-18 Behdad Esfahbod <behdad@google.com>
+
+ [sfnt] Add support for Apple's `sbix' color bitmap table.
+
+ * include/freetype/internal/tttypes.h (TT_SBit_MetricsRec): Widen
+ fields to FT_Short and FT_UShort, respectively.
+ (TT_SbitTableType): New enumeration.
+ (TT_FaceRec): Add `sbit_table_type' field.
+
+ * include/freetype/tttags.h (TTAG_sbix): New macro.
+
+ * src/sfnt/pngshim.c (Load_SBit_Png): Pass a more generic
+ FT_GlyphSlot argument instead FT_Bitmap.
+ Add flag to control map and metrics handling.
+ Update all users.
+
+ * src/sfnt/ttsbit.c: Include `ttmtx.h'.
+ (tt_face_load_eblc): Renamed to...
+ (tt_face_load_sbit): This.
+ Handle `sbix' bitmaps.
+ (tt_face_free_eblc): Renamed to...
+ (tt_face_load_sbit): This.
+ Updated.
+ (tt_face_load_strike_metrics): Handle `sbix' bitmaps.
+ (tt_face_load_sbix_image): New function.
+ (tt_sbit_decoder_alloc_bitmap, tt_sbit_decoder_load_image,
+ tt_sbit_decoder_load_byte_aligned, tt_sbit_decoder_load_bit_aligned,
+ tt_sbit_decoder_load_compound, tt_sbit_decoder_load_png,
+ tt_sbit_decoder_load_image, tt_sbit_decoder_load_bitmap): Don't pass
+ and handle load flags.
+ (tt_sbit_decoder_load_bitmap) [!FT_CONFIG_OPTION_USE_PNG]: Better
+ handle formats 17-19.
+ Move color to grayscale conversion to...
+ (tt_face_load_sbit_image): Here.
+ Handle `sbix' bitmaps.
+
+ * src/sfnt/pngshim.h: Updated.
+ * src/sfnt/ttsbit.h: Updated.
+ * src/sfnt/sfdriver.c: Updated.
+
+2013-07-18 Werner Lemberg <wl@gnu.org>
+
+ [sfnt] Ignore invalid magic number in `head' or `bhed'.
+
+ Other font engines seem to ignore it also. Problem reported by
+ Hin-Tak Leung <htl10@users.sourceforge.net>.
+
+ * src/sfnt/ttload.c (check_table_dir): Don't abort but warn only if
+ we have an invalid magic number.
+
+2013-07-16 Werner Lemberg <wl@gnu.org>
+
+ [smooth] Fix segfault caused by previous commit.
+
+ * src/smooth/ftgrays.c (gray_set_cell): Always compute
+ `ras.invalid'.
+
+2013-07-16 David Turner <digit@google.com>
+
+ [smooth] Improve performance.
+
+ Provide a work-around for an ARM-specific performance bug in GCC.
+ This speeds up the rasterizer by more than 5%.
+
+ Also slightly optimize `set_gray_cell' and `gray_record_cell' (which
+ also improves performance on other platforms by a tiny bit (<1%).
+
+ * src/smooth/ftgrays.c (FT_DIV_MOD): New macro.
+ Use it where appropriate.
+
+ (gray_record_cell, gray_set_cell, gray_move_to,
+ gray_convert_glyph_inner): Streamline condition handling.
+
+2013-07-16 David Turner <digit@google.com>
+
+ [truetype] Add assembler code for TT_MulFix14 and TT_DotFix14.
+
+ This patch provides slightly optimized versions for ARM, x86, and
+ x86_64 CPUs if built with GCC.
+
+ Also remove some dead code.
+
+ * src/truetype/ttinterp.c (TT_MulFix14_arm, TT_MulFix14_long_long,
+ TT_DotFix14_long_long): New functions.
+
+2013-07-16 David Turner <digit@google.com>
+
+ Optimize FT_MulFix for x86_64 GCC builds.
+
+ This patch provides an optimized `FT_MulFix' implementation for
+ x86_64 machines when FreeType is built with GCC, or compatible
+ compilers like Clang.
+
+ Example:
+ bin/ftbench -p -t 5 -s 14 -f 0008 Arial.ttf
+
+ Before:
+
+ Load 4.863 us/op
+ Load_Advances (Normal) 4.816 us/op
+ Load_Advances (Fast) 0.028 us/op
+ Render 2.753 us/op
+ Get_Glyph 0.463 us/op
+ Get_CBox 0.077 us/op
+ Get_Char_Index 0.023 us/op
+ Iterate CMap 13.898 us/op
+ New_Face 12.368 us/op
+ Embolden 0.028 us/op
+ Get_BBox 0.302 us/op
+
+ After:
+
+ Load 4.617 us/op
+ Load_Advances (Normal) 4.645 us/op
+ Load_Advances (Fast) 0.027 us/op
+ Render 2.789 us/op
+ Get_Glyph 0.460 us/op
+ Get_CBox 0.077 us/op
+ Get_Char_Index 0.024 us/op
+ Iterate CMap 13.403 us/op
+ New_Face 12.278 us/op
+ Embolden 0.028 us/op
+ Get_BBox 0.301 us/op
+
+ * builds/unix/ftconfig.in, include/freetype/config/ftconfig.h
+ (FT_MulFix_x86_64): New function.
+
+2013-07-16 David Turner <digit@google.com>
+
+ Speed up ARMv7 support.
+
+ When building for ARMv7 with thumb2 instructions, the optimized
+ `FT_MulFix_arm' assembly routine was not being used.
+
+ The reason for this is in the `ftconfig.h' header, namely:
+
+ - The assembly routine uses the `smull' instruction which is not
+ available when generating Thumb-1 machine code. It is available
+ in Thumb-2 mode, though.
+
+ - The header was written a long time ago before Thumb-2 became
+ widely popular (e.g. with Android). So it simply doesn't use the
+ assembly routine if the `__thumb__' built-in macro is defined.
+
+ - When compiling in Thumb-2 mode, the compiler will define both
+ `__thumb__' and `__thumb2__'.
+
+ By checking for `(__thumb2__ || !__thumb__)', we ensure that the
+ assembly routine is only avoided when generating Thumb-1 code.
+
+ Given that this is performance-sensitive function, this improves
+ `ftbench' as follows on a Galaxy Nexus:
+
+ Before (us/op) After (us/op)
+
+ - loading Arial.ttf glyphs at 14 ppem [1]
+
+ Load 34.285 33.098
+
+ - same operation with the light auto-hinter [2]
+
+ Load 31.317 29.590
+
+ - same operation without hinting [3]
+
+ Load 6.143 5.376
+
+ - loading Arial.ttf advances at 14 ppem [4]
+
+ Load_Advances (normal) 34.216 33.016
+ Load_Advances (fast) 0.176 0.176
+
+ [1] ftbench -t 5 -p -s 14 -b a -f 0008 Arial.ttf
+ [2] ftbench -t 5 -p -s 14 -b a -r 1 -f 0028 Arial.ttf
+ [3] ftbench -t 5 -p -s 14 -b a -f 000a Arial.ttf
+ [4] ftbench -t 5 -p -s 14 -b b -f 0008 Arial.ttf
+
+ * builds/unix/ftconfig.in, include/freetype/config/ftconfig.h
+ (FT_MULFIX_ASSEMBLER): Fix handling for ARMv7.
+
+2013-06-28 Werner Lemberg <wl@gnu.org>
+
+ * docs/CHANGES: Updated.
+
+2013-06-27 Werner Lemberg <wl@gnu.org>
+
+ * src/winfonts/winfnt.c (FNT_Load_Glyph): Fix bitmap width guard.
+
+2013-06-25 Werner Lemberg <wl@gnu.org>
+
+ [cff] Add darkening limit to `darkening-parameters'.
+
+ * src/cff/cffdrivr.c (cff_property_set): Add check.
+
+2013-06-25 Werner Lemberg <wl@gnu.org>
+
+ [cff] Add `darkening-parameters' property.
+
+ * include/freetype/ftcffdrv.h: Document it.
+
+ * src/cff/cffdrivr.c (cff_property_set, cff_property_get): Handle
+ `darkening-parameters' property.
+
+ * src/cff/cf2font.h (CF2_FontRec): Add `darkenParams' array.
+
+ * src/cff/cf2font.c (cf2_computeDarkening): Add `darkenParams'
+ argument and use it.
+ Update all callers.
+
+ * src/cff/cf2ft.c (cf2_decoder_parse_charstrings): Copy
+ `darken_params' values.
+
+ * src/cff/cffobjs.h (CFF_DriverRec): Add `darken_params' array.
+
+ * src/cff/cffobjs.c (cff_driver_init): Set default values for
+ `darken_params'.
+
+2013-06-25 Werner Lemberg <wl@gnu.org>
+
+ [docmaker] Code shuffling.
+
+ * src/tools/docmaker/tohtml.py (re_url): Move regexp...
+ * src/tools/docmaker/sources.py: ... to this file.
+
+2013-06-25 Werner Lemberg <wl@gnu.org>
+
+ [docmaker] Remove unused functions.
+
+ * src/tools/docmaker/content.py (DocMarkup.get_start,
+ DocBlock.get_markup_name): Removed.
+ * src/tools/docmaker/tohtml.py (html_quote0, dump_html_code,
+ HtmlFormatter.make_html_words): Removed.
+
+2013-06-25 Werner Lemberg <wl@gnu.org>
+
+ * builds/freetype.mk (dll): Remove target.
+
+ Problem reported by Jörg Günnewig <joerg.guennewig@googlemail.com>.
+
+2013-06-25 Werner Lemberg <wl@gnu.org>
+
+ [docmaker] Recognise URLs.
+
+ * src/tools/docmaker/tohtml.py (re_url): New regular expression.
+ (make_html_para): Use it.
+
+2013-06-19 Werner Lemberg <wl@gnu.org>
+
+ * Version 2.5.0.1 released.
+ ===========================
+
+
+ Tag sources with `VER-2-5-0-1'.
+
+ * include/freetype/config/ftoption.h: Undefine
+ CFF_CONFIG_OPTION_OLD_ENGINE.
+ * devel/ftoption.h: Define CFF_CONFIG_OPTION_OLD_ENGINE.
+
+2013-06-19 Werner Lemberg <wl@gnu.org>
+
+ * builds/unix/install.mk (install): Don't create `cache' directory.
+
+ Found by Peter Breitenlohner <peb@mppmu.mpg.de>.
+
+2013-06-19 Werner Lemberg <wl@gnu.org>
+
+ * Version 2.5.0 released.
+ =========================
+
+
+ Tag sources with `VER-2-5-0'.
+
+ * docs/VERSION.DLL: Update documentation and bump version number to
+ 2.5.0.
+
+ * README, Jamfile (RefDoc),
+ builds/win32/vc2005/freetype.vcproj, builds/win32/vc2005/index.html,
+ builds/win32/vc2008/freetype.vcproj, builds/win32/vc2008/index.html,
+ builds/win32/vc2010/freetype.vcxproj, builds/win32/vc2010/index.html,
+ builds/win32/visualc/freetype.dsp,
+ builds/win32/visualc/freetype.vcproj,
+ builds/win32/visualc/index.html, builds/win32/visualce/freetype.dsp,
+ builds/win32/visualce/freetype.vcproj,
+ builds/win32/visualce/index.html,
+ builds/wince/vc2005-ce/freetype.vcproj,
+ builds/wince/vc2005-ce/index.html,
+ builds/wince/vc2008-ce/freetype.vcproj,
+ builds/wince/vc2008-ce/index.html: s/2.4.12/2.5.0/, s/2412/250/.
+
+ * include/freetype/freetype.h (FREETYPE_MINOR): Set to 5.
+ (FREETYPE_PATCH): Set to 0.
+
+ * builds/unix/configure.raw (version_info): Set to 16:2:10.
+
+ * src/base/ftobjs.c (FT_Open_Face): Pacify compiler.
+ * src/truetype/ttinterp.c (Ins_MSIRP, Ins_MIRP): Ditto.
+
+2013-06-18 Werner Lemberg <wl@gnu.org>
+
+ Fix Savannah bug #39269.
+
+ * src/base/ftgloadr.c (FT_GlyphLoader_CheckPoints): Free memory in
+ case of reallocation failures.
+
+2013-06-18 Andrew Church <achurch+savannah@achurch.org>
+
+ Fix Savannah bug #39266.
+
+ If memory allocations fail at certain points while opening a font,
+ FreeType can either crash due to a NULL dereference or leak memory.
+
+ * include/freetype/internal/ftobjs.c (FT_Face_InternalRec,
+ FT_LibraryRec): Make `refcount' a signed integer. If, for example,
+ FT_Open_Face() fails in a memory allocation before the face's
+ reference count is set to 1, a subsequent `FT_Done_Library' call
+ would otherwise loop over `FT_Done_Face' 2^32 times before freeing
+ the face.
+
+ * src/base/ftobjs.c (open_face): Initialize `stream' and friends
+ earlier.
+ (FT_Open_Face) <Fail>: Behave correctly if `node' is NULL.
+ (FT_Destroy_Module) <Fail>: Check that `renderer_clazz' is valid.
+
+2013-06-14 Werner Lemberg <wl@gnu.org>
+
+ * src/smooth/ftgrays.c One final pragma to silence 64-bit MSVC.
+
+2013-06-06 Dave Arnold <darnold@adobe.com>
+ Werner Lemberg <wl@gnu.org>
+
+ [cff] Add code to Adobe's engine to handle ppem > 2000.
+
+ * src/cff/cffgload.c (cff_slot_load): If we get
+ FT_Err_Glyph_Too_Big, retry unhinted and scale up later on.
+
+2013-06-12 Werner Lemberg <wl@gnu.org>
+
+ Another try on pragmas.
+
+ * include/freetype/internal/ftdebug.h: Move pragmas to...
+ * include/freetype/internal/internal.h: ... this file since it gets
+ included by all source files.
+ * include/freetype/internal/ftserv.h: Remove pragma which has no
+ effect.
+
+2013-06-12 Werner Lemberg <wl@gnu.org>
+
+ * include/freetype/internal/ftdebug.h: Disable MSVC warning C4127.
+
+ This partially undoes commit 3f6e0e0c.
+
+2013-06-12 Werner Lemberg <wl@gnu.org>
+
+ More compiler warning fixes.
+
+ */*: Use cast to `FT_Bool' (or `Bool') where appropriate.
+
+2013-06-10 Werner Lemberg <wl@gnu.org>
+
+ [truetype] Improve handling of broken sbit advance widths.
+
+ * src/truetype/ttgload.c (TT_Load_Glyph): Use the glyph's (scaled)
+ `linearHoriAdvance' if the sbit's `horiAdvance' value is zero.
+
+ Cf. font `Fixedsys Excelsior' v3.01 (FSEX300.ttf), glyph A, 16ppem.
+
+2013-06-10 Werner Lemberg <wl@gnu.org>
+
+ [sfnt] Improve embedded bitmap tracing.
+
+ * src/base/ftobjs.c (FT_Request_Size): Move trace message regarding
+ bitmap strike match to...
+ (FT_Match_Size): This function.
+
+ * src/sfnt/ttsbit.c (tt_sbit_decoder_load_metrics,
+ tt_sbit_decoder_load_byte_aligned, tt_sbit_decoder_load_bit_aligned,
+ tt_sbit_decoder_load_compound, tt_sbit_decoder_load_png,
+ tt_sbit_decoder_load_image): Decorate with tracing messages.
+
+2013-06-10 Werner Lemberg <wl@gnu.org>
+
+ Fix Savannah bug #39160.
+
+ * src/truetype/ttinterp.c (Ins_SDPVTL): Set projection vector too
+ for the degenerate case.
+
+2013-06-09 David Turner <digit@google.com>
+
+ * src/cache/ftcmanag.c (FTC_Manager_Reset): Add missing cache flush.
+
+ This code, present since eight(!) years in the unused `CACHE'
+ branch, has been forgotten to apply to the master branch. It's
+ really amazing that noone has ever complained since
+ `FTC_Manager_Reset' is pretty useless without flushing the cache.
+
+2013-06-07 Werner Lemberg <wl@gnu.org>
+
+ Add and improve pragmas for MSVC compiler.
+
+ * include/freetype/internal/ftdebug.h: Remove pragmas.
+ * include/freetype/internal/ftserv.h: Use push and pop for pragmas.
+ * include/freetype/internal/ftvalid.h: Handle warning C4324.
+ * src/base/ftobjs.c: Use push and pop for pragmas.
+ * src/gzip/ftgzip.c: Handle warning C4244.
+
+2013-06-07 Werner Lemberg <wl@gnu.org>
+
+ [cff] s/cf2_getGlyphWidth/cf2_getGlyphOutline/.
+
+ * src/cff/cf2font.c, src/cff/cf2font.h, src/cff/cf2ft.c: Do it.
+
+2013-06-06 Dave Arnold <darnold@adobe.com>
+
+ [cff] Add early exit feature for width-only calls.
+
+ This is for `FT_Get_Advance'.
+
+ There are 7 places where the spec says the width can be defined:
+
+ hstem/hstemhm
+ vstem/vstemhm
+ cntrmask/hintmask
+ hmoveto
+ vmoveto
+ rmoveto
+ endchar
+
+ * src/cff/cf2intrp.c (cf2_doStems): Exit early for width-only calls,
+ if possible.
+
+ (cf2_interpT2CharString) <cf2_cmdHSTEM>, <cf2_cmdVSTEM>,
+ <cf2_cmdVMOVETO>, <cf2_cmdENDCHAR>, <cf2_cmdHINTMASK>,
+ <cf2_cmdRMOVETO>, <cf2_cmdHMOVETO>: Exit early for width-only calls.
+
+2013-06-06 Werner Lemberg <wl@gnu.org>
+
+ Next round of compiler fixes.
+
+ * builds/win32/ftdebug.c, builds/wince/ftdebug.c (ft_debug_init):
+ Add proper cast.
+
+ * include/freetype/internal/ftserv.h (FT_SERVICE_UNAVAILABLE): Fix
+ cast.
+ * include/freetype/internal/ftstream.h: Decorate stream and frame
+ macros with `FT_Long' and `FT_ULong' as appropriate.
+
+ * src/base/ftrfork.c (raccess_guess_darwin_hfsplus,
+ raccess_guess_darwin_newvfs): Use cast.
+
+ * src/bdf/bdflib.c (_bdf_set_default_spacing): Use cast.
+
+ * src/cache/ftcmanag.c (FTC_Manager_Check): Fix cast.
+ * src/cache/ftcmanag.h (FTC_ManagerRec): Ditto.
+
+ * src/cff/cf2arrst.c (cf2_arrstack_setNumElements): Use cast.
+ * src/cff/cf2ft.c (cf2_freeSeacComponent): Ditto.
+ * src/cff/cffobjs.c (remove_subset_prefix, remove_style): Ditto.
+
+ * src/cid/cidparse.c (cid_parser_new): Use cast.
+
+ * src/pcf/pcfdrivr.c (PCF_Glyph_Load): Use cast.
+
+ * src/psaux/psobjs.c (reallocate_t1_table): Fix argument type.
+
+ * src/raster/ftraster.c (ft_black_reset): Use cast.
+
+ * src/truetype/ttgxvar.c (FT_Stream_FTell): Use cast.
+ (ALL_POINTS): Fix cast.
+
+ * src/type1/t1driver.c (t1_ps_get_font_value): Add casts.
+ * src/type1/t1parse.c (T1_Get_Private_Dict): Add cast.
+
+2013-06-05 Dave Arnold <darnold@adobe.com>
+
+ Fix more MSVC Win32 compiler warnings.
+
+ * src/base/ftobjs.c: Fix typo in MS pragma.
+
+ * src/base/bdflib.c (_bdf_set_default_spacing, _bdf_add_property):
+ `lineno' is only used in debug mode.
+
+ * src/cff/cf2ft.c (cf2_builder_moveTo): `params' is only used in
+ debug mode.
+
+2013-06-05 Werner Lemberg <wl@gnu.org>
+
+ Fix compiler warnings.
+
+ * include/freetype/internal/ftmemory.h: Decorate memory allocation
+ macros with `FT_Long' where appropriate.
+ Remove duplicate of FT_MEM_QRENEW_ARRAY definition.
+
+ * src/base/ftbitmap.c (ft_gray_for_premultiplied_srgb_bgra): Use
+ cast.
+
+ * src/base/ftobjs.c: Add warning disabling pragma for MSVC while
+ including `md5.c'.
+
+ * src/cff/cf2intrp.c (cf2_interpT2CharString) <cf2_cmdESC>: Add
+ cast.
+
+ * src/sfnt/ttsbit.c (tt_sbit_decoder_load_compound): Fix casts.
+ (tt_sbit_decoder_load_bitmap): Beautification.
+
+ * src/smooth/ftsmooth.c (ft_smooth_render_generic): Initialize
+ variables (earlier).
+
+ * src/truetype/ttgload.c (TT_Process_Simple_Glyph): Pacify compiler.
+
+ * src/truetype/ttgxvar.c (TT_Get_MM_Var): Use unsigned constants
+ where appropriate.
+
+ * src/type1/t1load.c (T1_Get_MM_Var): Ditto.
+
+2013-06-04 Werner Lemberg <wl@gnu.org>
+
+ * src/cff/cf2font.c (cf2_getGlyphWidth): Initialize `advWidth'.
+
+ Problem reported by Ingmar Sittl <ingmar.sittl@elektrobit.com>.
+
+2013-06-04 Werner Lemberg <wl@gnu.org>
+
+ Apply fixes for cppcheck nitpicks.
+
+ https://cppcheck.sourceforge.net/
+
+ The call was (from the top-level of the FreeType tree):
+
+ cppcheck --force \
+ --enable=all \
+ -I include \
+ -I include/freetype/ \
+ -I include/freetype/config/ \
+ -I include/freetype/internal/ \
+ . &> cppcheck.log
+
+ Note that the current version heavily chokes on FreeType, delivering
+ many wrong results. I will report those issues to the cppcheck team
+ so that a newer version gives improved results hopefully.
+
+ */* Improve variable scopes.
+ */* Remove redundant initializations which get overwritten.
+
+ * src/base/ftmac.c, builds/mac/ftmac.c (count_faces_scalable):
+ Remove unused variable.
+
+ * src/base/ftdbgmem.c (ft_mem_table_destroy): `table' can't be zero.
+
+ * src/gxvalid/gxvkern.c (gxv_kern_subtable_fmt1_entry_validate):
+ Remove functionless code.
+
+ * src/tools/ftrandom.c (main): Fix memory leak.
+
+2013-06-03 Werner Lemberg <wl@gnu.org>
+
+ Add CFF_CONFIG_OPTION_OLD_ENGINE configuration option.
+
+ This controls whether the old FreeType CFF engine gets compiled into
+ FreeType. It is now disabled by default.
+
+ * devel/ftoption.h, include/freetype/config/ftoption.h
+ (CFF_CONFIG_OPTION_OLD_ENGINE): New macro.
+
+ * src/cff/cffdrivr.c (cff_property_set), src/cff/cffgload.c
+ (CFF_Operator, cff_argument_counts, cff_builder_add_point,
+ cff_operator_seac, cff_decoder_parse_charstrings, cff_slot_load),
+ src/cff/cffgload.h, src/cff/cffobjs.c (cff_driver_init): Use
+ CFF_CONFIG_OPTION_OLD_ENGINE to guard the affected code.
+
+ * docs/CHANGES: Updated.
+
+2013-06-02 Werner Lemberg <wl@gnu.org>
+
+ Fix PNG library handling.
+
+ * builds/unix/configure.raw: Don't use LIBPNG_LIBS but
+ LIBPNG_LDFLAGS.
+
+2013-05-23 Behdad Esfahbod <behdad@google.com>
+
+ Add support for color embedded bitmaps (eg. color emoji).
+
+ A new load flag, FT_LOAD_COLOR, makes FreeType load color
+ embedded-bitmaps, following this draft specification
+
+ https://color-emoji.googlecode.com/git/specification/v1.html
+
+ which defines two new SFNT tables, `CBDT' and `CBLC' (named and
+ modeled after `EBDT' and `EBLC', respectively). The color bitmaps
+ are stored in the new FT_PIXEL_MODE_BGRA format to represent BGRA
+ pre-multiplied sRGB images. If PNG support is available, PNG color
+ images as defined in the same proposed specification are supported
+ also.
+
+ Note that color bitmaps are converted to grayscale if client didn't
+ ask for color.
+
+ * builds/unix/configure.raw: Search for libpng.
+ Add `--without-png' option.
+
+ * devel/ftoption.h, include/freetype/config/ftoption.h
+ (FT_CONFIG_OPTION_USE_PNG): New macro.
+
+ * include/freetype/freetype.h (FT_LOAD_COLOR): New load flag.
+
+ * include/freetype/ftimage.h (FT_Pixel_Mode): Add
+ `FT_PIXEL_MODE_BGRA'.
+
+ * include/freetype/tttags.h (TTAG_CBDT, TTAG_CBLC): New tags.
+
+ * src/base/ftbitmap.c (FT_Bitmap_Embolden): Updated.
+ (ft_gray_for_premultiplied_srgb_bgra): New function.
+ (FT_Bitmap_Convert): Handle FT_PIXEL_MODE_BGRA.
+
+ * src/sfnt/pngshim.c, src/sfnt/pngshim.h: New files.
+
+ * src/sfnt/sfnt.c: Include `pngshim.c'.
+
+ * src/sfnt/ttsbit.c: Include FT_BITMAP_H and `pngshim.h'
+ (tt_face_load_eblc): Load `CBLC'.
+ (tt_sbit_decoder_init): Load `CBDT'.
+ (tt_sbit_decoder_alloc_bitmap): Pass load flags to select between
+ color and grayscale bitmaps.
+ Set `num_grays'. This is used by `ftview' to choose the blending
+ algorithm.
+ (tt_sbit_decoder_load_byte_aligned,
+ tt_sbit_decoder_load_bit_aligned, tt_sbit_decoder_load_compound,
+ tt_sbit_decoder_load_image): Pass load flag.
+ s/write/pwrite/.
+ Don't call `tt_sbit_decoder_alloc_bitmap'.
+ Updated.
+ (tt_sbit_decoder_load_png) [FT_CONFIG_OPTION_USE_PNG]: New function.
+ (tt_sbit_decoder_load_bitmap): Pass load flag.
+ Handle new glyph formats 17, 18, and 19.
+ Call `tt_sbit_decoder_alloc_bitmap'.
+ Flatten color bitmaps if necessary.
+ (tt_face_load_sbit_image): Updated.
+
+ * src/sfnt/rules.mk (SFNT_DRV_SRC): Add `pngshim.c'.
+
+ * docs/CHANGES: Updated.
+
+2013-05-24 Guenter <info@gknw.net>
+
+ Apply Savannah patch #8055.
+
+ Make `apinames' create an import file for NetWare.
+
+ * src/tools/apinames.c (PROGRAM_VERSION): Set to 0.2.
+ (OutputFormat): Add `OUTPUT_NETWARE_IMP'.
+ (names_dump): Handle it.
+ (usage): Updated.
+ (main): Handle new command line flag `-wN'.
+
+2013-05-23 Behdad Esfahbod <behdad@behdad.org>
+
+ Compilation fix.
+
+ * src/truetype/ttinterp.c (TT_RunIns)
+ [!TT_CONFIG_OPTION_SUBPIXEL_HINTING]: Make it work.
+
+2013-05-22 Infinality <infinality@infinality.net>
+
+ [truetype] Formatting and an additional subpixel tweak.
+
+ * src/truetype/ttinterp.c (Ins_SHPIX): Formatting fix.
+ * src/truetype/ttsubpix.c (SKIP_NONPIXEL_Y_MOVES_Rules):
+ Revert previous modification for Verdana clones.
+
+2013-05-22 Infinality <infinality@infinality.net>
+
+ [truetype] Adjust subpixel zp2 moves and tweak rules.
+
+ These modifications fix thin diagonal stems in some legacy fonts.
+
+ * src/truetype/ttinterp.c (Direct_Move_X): Remove unused macro.
+ (Move_Zp2_Point): Don't always disable x moves for subpixel rendering.
+ (Ins_SHP): Disable x moves here for subpixel rendering.
+ (Ins_SHPIX): Only disable x moves in compatibility mode.
+ Split out zp2 move reversals and reorder conditional respectively.
+
+ * src/truetype/ttsubpix.c (SKIP_NONPIXEL_Y_MOVES_Rules): Fix oversight.
+ Only adjust Verdana clones for 17 ppem.
+ (SKIP_NONPIXEL_Y_MOVES_Rules_Exceptions): Add Courier New.
+ (ALWAYS_SKIP_DELTAP_Rules): Found additional cases for Arial `s'.
+
+2013-05-20 Infinality <infinality@infinality.net>
+
+ [truetype] Simplify and improve subpixel function detection.
+
+ Some small enhancements have allowed the removal of many macros and
+ the simplification of existing rules in `ttsubpix.c'.
+
+ * src/truetype/ttsubpix.h (SPH_TWEAK_ALLOW_X_DMOVEX,
+ SPH_TWEAK_ALLOW_X_MOVE_ZP2,
+ SPH_TWEAK_DELTAP_SKIP_EXAGGERATED_VALUES,
+ SPH_TWEAK_SKIP_INLINE_DELTAS, SPH_TWEAK_MIRP_CVT_ZERO): Removed.
+ (SPH_TWEAK_SKIP_NONPIXEL_Y_MOVES_DELTAP): New rule macro.
+
+ * src/truetype/ttsubpix.c: Updated affected rules.
+
+ * src/truetype/ttinterp.c (Direct_Move_X): Updated.
+ (INS_FDEF): Add additional function detection.
+ (INS_ENDF): Set runtime flag.
+ (Ins_CALL): Skip the call under certain conditions.
+ Remove bad code.
+ (Ins_LOOPCALL): Skip the call under certain conditions.
+ Remove bad code.
+ (Move_Zp2_Point): Updated.
+ (Ins_SHPIX): Updated.
+ Skip the move under some situations.
+ (Ins_MIAP): Improve conditions.
+ (Ins_MIRP): Updated.
+ (Ins_DELTAP): Skip move under certain conditions.
+ Simplify conditions.
+ (TT_RunIns): Updated.
+ Add code to handle new function detection.
+ Trace messages.
+
+2013-05-17 Werner Lemberg <wl@gnu.org>
+
+ Update more FT_Err_XXX macros using FT_ERR and FT_THROW;
+
+ * builds/amiga/src/base/ftsystem.c, builds/mac/ftmac.c,
+ builds/unix/ftsystem.c, builds/vms/ftsystem.c: Do it.
+
+2013-05-15 Werner Lemberg <wl@gnu.org>
+
+ [truetype] Add `interpreter-version' property.
+
+ This makes the option TT_CONFIG_OPTION_SUBPIXEL_HINTING controllable
+ at runtime.
+
+ * include/freetype/ftttdrv.h: New file.
+
+ * include/freetype/config/ftheader.h (FT_TRUETYPE_DRIVER_H): New
+ macro.
+
+ * src/truetype/ttdriver.c: Include FT_TRUETYPE_DRIVER_H.
+ (tt_property_set, tt_property_get): Fill templates.
+
+ * src/truetype/ttobjs.h (TT_DriverRec): Add `interpreter_version'
+ member.
+ Remove unused `extension_component' member.
+
+ * src/truetype/ttgload.c: Include FT_TRUETYPE_DRIVER_H.
+ (tt_get_metrics, TT_Hint_Glyph, TT_Process_Simple_Glyph,
+ compute_glyph_metrics, tt_loader_init): Use `interpreter_version'.
+
+ * src/truetype/ttinterp.c: Include FT_TRUETYPE_DRIVER_H.
+ (SUBPIXEL_HINTING): New macro to check `interpreter_version' flag.
+ Update all affected functions to use it.
+ Use TT_INTERPRETER_VERSION_XXX where appropriate.
+
+ * src/truetype/ttobjs.c: Include FT_TRUETYPE_DRIVER_H.
+ (tt_driver_init): Initialize `interpreter_version'.
+
+ * src/truetype/ttsubpix.c: Include FT_TRUETYPE_DRIVER_H.
+ Use TT_INTERPRETER_VERSION_XXX where appropriate.
+
+2013-05-13 Werner Lemberg <wl@gnu.org>
+
+ [truetype] Avoid empty source file.
+
+ * src/truetype/ttsubpix.c [!TT_CONFIG_OPTION_SUBPIXEL_HINTING]:
+ Provide dummy typedef.
+
+2013-05-13 Werner Lemberg <wl@gnu.org>
+
+ * src/cff/cf2font.c (cf2_getGlyphWidth): Fix uninitialized variable.
+
+ Fix suggested by Vaibhav Nagarnaik <vnagarnaik@gmail.com>.
+
+2013-05-13 Brian Nixon <bnixon@yahoo.com>
+
+ Fix Savannah bug #38970.
+
+ * src/base/ftdebug.c, builds/win32/ftdebug.c,
+ builds/wince/ftdebug.c, builds/amiga/src/base/ftdebug.c
+ (ft_debug_init): Don't read past the environment variable FT2_DEBUG.
+
+2013-05-12 Werner Lemberg <wl@gnu.org>
+
+ [truetype] Add framework for TrueType properties.
+
+ * src/truetype/ttdriver.c: Include FT_SERVICE_PROPERTIES_H.
+ (tt_property_set, tt_property_get): New functions, still empty.
+ Define `tt_service_properties' service.
+ Update `tt_services'.
+
+ * src/truetype/ttpic.h: Include FT_SERVICE_PROPERTIES_H.
+ (TT_SERVICE_PROPERTIES_GET): New macro.
+ (TTModulePIC): Add `tt_service_properties'.
+
+2013-05-12 Werner Lemberg <wl@gnu.org>
+
+ Fix Savannah bug #38967.
+
+ * src/base/ftcalc.c (FT_DivFix) [FT_LONG64]: Fix cast.
+
+2013-05-12 Werner Lemberg <wl@gnu.org>
+
+ Introduce unsigned 64bit type (if available).
+
+ * include/freetype/config/ftconfig.h: Define FT_UINT64 if available.
+ [FT_LONG64]: Provide FT_UInt64.
+
+ * builds/unix/ftconfig.in: Synchronized.
+
+2013-05-12 Werner Lemberg <wl@gnu.org>
+
+ Fix Savannah bug #38968.
+
+ * include/freetype/ftmodapi.h: Add `FT_EXPORT' to
+ FT_Property_{Set,Get}.
+ * src/base/ftobjs.c: Add `FT_EXPORT_DEF' to
+ FT_Property_{Set,Get}.
+
+2013-05-10 Werner Lemberg <wl@gnu.org>
+
+ [sfnt] Clean up bitmap code.
+
+ * src/sfnt/ttsbit.c: Deleted.
+ * src/sfnt/ttsbit0.c: Renamed to `ttsbit.c'.
+ * rules.mk (SFNT_DRV_H): Updated.
+
+2013-05-10 Werner Lemberg <wl@gnu.org>
+
+ */* [FT_CONFIG_OPTION_OLD_INTERNALS]: Remove macro and guarded code.
+
+----------------------------------------------------------------------------
+
+Copyright (C) 2013-2021 by
+David Turner, Robert Wilhelm, and Werner Lemberg.
+
+This file is part of the FreeType project, and may only be used, modified,
+and distributed under the terms of the FreeType project license,
+LICENSE.TXT. By continuing to use, modify, or distribute this file you
+indicate that you have read the license and understand and accept it
+fully.
+
+
+Local Variables:
+version-control: never
+coding: utf-8
+End:
diff --git a/freetype/docs/oldlogs/ChangeLog.26 b/freetype/docs/oldlogs/ChangeLog.26
new file mode 100644
index 00000000..eb87803b
--- /dev/null
+++ b/freetype/docs/oldlogs/ChangeLog.26
@@ -0,0 +1,5711 @@
+2016-07-12 Werner Lemberg <wl@gnu.org>
+
+ * Version 2.6.5 released.
+ =========================
+
+
+ Tag sources with `VER-2-6-5'.
+
+ This commit immediately follows `[mac] Fix ftexport.sym target in
+ Jamfile.' on a separate branch, which was then merged with master
+ after the release.
+
+ * include/freetype/config/ftoption.h
+ (TT_CONFIG_OPTION_SUBPIXEL_HINTING): Comment out.
+
+ * docs/VERSION.TXT: Add entry for version 2.6.5.
+
+ * README, Jamfile (RefDoc), builds/windows/vc2005/freetype.vcproj,
+ builds/windows/vc2005/index.html,
+ builds/windows/vc2008/freetype.vcproj,
+ builds/windows/vc2008/index.html,
+ builds/windows/vc2010/freetype.vcxproj,
+ builds/windows/vc2010/index.html,
+ builds/windows/visualc/freetype.dsp,
+ builds/windows/visualc/freetype.vcproj,
+ builds/windows/visualc/index.html,
+ builds/windows/visualce/freetype.dsp,
+ builds/windows/visualce/freetype.vcproj,
+ builds/windows/visualce/index.html,
+ builds/wince/vc2005-ce/freetype.vcproj,
+ builds/wince/vc2005-ce/index.html,
+ builds/wince/vc2008-ce/freetype.vcproj,
+ builds/wince/vc2008-ce/index.html: s/2.6.4/2.6.5/, s/264/265/.
+
+ * include/freetype/freetype.h (FREETYPE_PATCH): Set to 5.
+
+ * builds/unix/configure.raw (version_info): Set to 18:5:12.
+ * CMakeLists.txt (VERSION_PATCH): Set to 5.
+
+ * docs/CHANGES: Updated.
+
+2016-07-11 Werner Lemberg <wl@gnu.org>
+
+ Conditionally compile environment support.
+
+ * include/freetype/internal/ftobjs.h, src/autofit/afmodule.c,
+ src/base/ftobjs.c, src/cff/cffdrivr.c, src/truetype/ttdriver.c:
+ Decorate with `FT_CONFIG_OPTION_ENVIRONMENT_PROPERTIES' where
+ necessary.
+
+2016-07-11 Werner Lemberg <wl@gnu.org>
+
+ Handle properties in `FREETYPE_PROPERTIES' environment variable.
+
+ This commit covers the most important one.
+
+ * src/autofit/afmodule.c (af_property_set): Handle `warping',
+ `darkening-parameters', and `no-stem-darkening'.
+
+ * src/cff/cffdrivr.c (cff_property_set): Handle
+ `darkening-parameters', `hinting-engine', and `no-stem-darkening'.
+
+ * src/truetype/ttdriver.c (tt_property_set): Handle
+ `interpreter-version'.
+
+2016-07-11 Werner Lemberg <wl@gnu.org>
+
+ Replace calls to `atol' with `strtol'.
+
+ We later on need strtol's `endptr' feature.
+
+ * include/freetype/config/ftstdlib.h (ft_atol): Replace with...
+ (ft_strtol): ... this.
+
+ * src/base/ftdbgmem.c (ft_mem_debug_init): Updated.
+ * src/cid/cidparse.c (cid_parser_new): Ditto.
+ * src/type42/t42drivr.c (t42_get_name_index), src/type42/t42objs.c
+ (T42_GlyphSlot_Load): Ditto.
+
+2016-07-10 Werner Lemberg <wl@gnu.org>
+
+ Implement handling of `FREETYPE_PROPERTIES' environment variable.
+
+ Recognizing properties follows in another commit.
+
+ * devel/ftoption.h, include/freetype/config/ftoption.h
+ (FT_CONFIG_OPTION_ENVIRONMENT_PROPERTIES): New macro.
+
+ * include/freetype/config/ftstdlib.h (ft_getenv): New macro.
+
+ * src/base/ftinit.c (ft_set_default_properties): New function to
+ parse `FREETYPE_PROPERTIES' and calling `ft_property_string_set'.
+ (FT_Init_FreeType): Updated.
+
+2016-07-09 Werner Lemberg <wl@gnu.org>
+
+ Add function `ft_property_string_set'.
+
+ This is a preparation for handling an `FREETYPE_PROPERTIES'
+ environment variable to control (some) driver properties.
+
+ No change in functionality.
+
+ * src/base/ftobjs.c (ft_property_do): Add `value_is_string'
+ parameter.
+ (ft_property_string_set): New function.
+ (FT_Property_Set, FT_Property_Get): Updated.
+
+ * include/freetype/internal/ftobjs.h: Updated.
+
+ * include/freetype/internal/services/svprop.h
+ (FT_Properties_SetFunc): Add `value_is_string' parameter.
+
+ * src/autofit/afmodule.c (af_property_set), src/cff/cffdrivr.c
+ (cff_property_set), src/truetype/ttdriver.c (tt_property_set):
+ Updated, emitting an error currently if `value_is_string' is set.
+
+2016-07-09 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ [mac] Fix ftexport.sym target in Jamfile.
+
+ * Jamfile: Update the directories of the header files scanned for
+ ftexport.sym. They were incorrect since the migration of the
+ header files, on 2015-06-22. Either inexisting include/cache
+ (removed on 2006-03-20) is not needed to be listed explicitly.
+ Now ftmac.h is scanned only in the case of Mac OS & Mac OS X.
+
+2016-07-08 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ [smooth] Sub-banding protocol revision.
+
+ Rasterization sub-banding is utilized at large sizes while using a
+ rather small fixed memory pool. Indeed it is possible to make an
+ educated guess how much memory is necessary at a given size for a
+ given glyph. It turns out that, for a large majority of European
+ glyphs, you should store about 8 times more boundary pixels than
+ their height. Or, vice versa, if your memory pool can hold 800
+ pixels the band height should be 100 and you should sub-band
+ anything larger than that. Should you still run out of memory,
+ FreeType bisects the band but you have wasted some time. This is
+ what has been implemented in FreeType since the beginning.
+
+ It was overlooked, however, that the top band could grow to twice
+ the default band size leading to unnecessary memory overflows there.
+ This commit fixes that. Now the bands are distributed more evenly
+ and cannot exceed the default size.
+
+ Now the magic number 8 is really suitable for rather simple European
+ scripts. For complex Chinese logograms the magic number should be
+ 13 but that is subject for another day.
+
+ * src/smooth/ftgrays.c (gray_convert_glyph): Revise sub-banding
+ protocol.
+
+2016-07-07 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ [mac] Fix Savannah bug #48417.
+
+ Mac OS X linker throws errors when `-exported_symbol_list' input
+ file includes non-existing symbols. Reported by Ryan Schmidt.
+
+ * builds/exports.mk: Exclude ftmac.h from the headers for apinames
+ by default. Include it when ftmac.c would be compiled.
+
+2016-07-06 Werner Lemberg <wl@gnu.org>
+
+ * src/truetype/ttinterp.c (TInstruction_Function): Removed, unused.
+
+2016-07-05 Werner Lemberg <wl@gnu.org>
+
+ * Version 2.6.4 released.
+ =========================
+
+
+ Tag sources with `VER-2-6-4'.
+
+ * docs/VERSION.TXT: Update documentation and bump version number to
+ 2.6.4.
+
+ * README, Jamfile (RefDoc), builds/windows/vc2005/freetype.vcproj,
+ builds/windows/vc2005/index.html,
+ builds/windows/vc2008/freetype.vcproj,
+ builds/windows/vc2008/index.html,
+ builds/windows/vc2010/freetype.vcxproj,
+ builds/windows/vc2010/index.html,
+ builds/windows/visualc/freetype.dsp,
+ builds/windows/visualc/freetype.vcproj,
+ builds/windows/visualc/index.html,
+ builds/windows/visualce/freetype.dsp,
+ builds/windows/visualce/freetype.vcproj,
+ builds/windows/visualce/index.html,
+ builds/wince/vc2005-ce/freetype.vcproj,
+ builds/wince/vc2005-ce/index.html,
+ builds/wince/vc2008-ce/freetype.vcproj,
+ builds/wince/vc2008-ce/index.html: s/2.6.3/2.6.4/, s/263/264/.
+
+ * include/freetype/freetype.h (FREETYPE_PATCH): Set to 4.
+
+ * builds/unix/configure.raw (version_info): Set to 18:4:12.
+ * CMakeLists.txt (VERSION_PATCH): Set to 4.
+
+ * docs/CHANGES: Updated.
+
+2016-07-05 Werner Lemberg <wl@gnu.org>
+
+ * src/pfr/pfrsbit.c (pfr_lookup_bitmap_data): Fix compiler warning.
+
+2016-07-04 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ [smooth] Variable type revision (part 2).
+
+ * src/smooth/ftgrays.c (TArea): Restore original definition as `int'.
+ (gray_render_line) [FT_LONG64]: Updated.
+ (gray_convert_glyph): 32-bit band bisection stack should be 32 bands.
+ (gray_convert_glyph_inner): Trace successes and failures.
+
+2016-07-04 Werner Lemberg <wl@gnu.org>
+
+ [autofit] Handle single-point contours as segments.
+
+ Doing so allows us to link them to edges – some fonts like
+ `NotoSansGurmukhi-Regular' have such isolated points sitting exactly
+ on other outlines.
+
+ * src/autofit/aflatin.c (af_latin_hints_compute_segments): Don't
+ ignore one-point contours but handle them specially as one-point
+ segments.
+ (af_latin_hints_compute_edges): Append one-point segments to edges
+ if possible.
+
+2016-07-02 Werner Lemberg <wl@gnu.org>
+
+ [autofit] Remove unused structure members.
+
+ * src/autofit/afhints.h (AF_SegmentRec, AF_EdgeRec): Remove
+ `num_linked'.
+
+ * src/autofit/afcjk.c (af_cjk_hints_link_segments): Updated.
+
+2016-07-02 Werner Lemberg <wl@gnu.org>
+
+ [autofit] Update to Unicode 9.0.0.
+
+ * src/autofit/afranges.c (af_arab_nonbase_uniranges,
+ af_cyrl_uniranges): Add new data.
+
+2016-07-01 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ [smooth] Variable type revision (part 1).
+
+ This patch restores original `TCoord' definition as `int' so that the
+ rendering pool is used more efficiently on LP64 platforms (unix).
+
+ * src/smooth/ftgrays.c (gray_TWorker, TCell, gray_TBand): Switch some
+ fields to `TCoord'.
+ (gray_find_cell, gray_render_scanline, gray_render_line, gray_hline,
+ gray_sweep, gray_convert_glyph): Updated.
+
+2016-06-28 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ [smooth] Minor clean-ups.
+
+ * src/smooth/ftgrays.c (gray_TWorker): Remove redundant `ycount'.
+ (gray_sweep, gray_convert_glyph, gray_dump_cells): Updated.
+
+2016-06-27 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ [smooth] Minor clean-ups.
+
+ * src/smooth/ftgrays.c (gray_convert_glyph): Do not use volatile
+ qualifier.
+ (gray_raster_render): Move span initializations from here.
+ (gray_sweep): ... to here and remove unused `target' argument.
+
+2016-06-26 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ [pcf] Fix handling of very large fonts (#47708).
+
+ * src/pcf/pcfread.c (pcf_get_encodings): Make `encodingOffset' an
+ unsigned short.
+ Only reject `0xFFFF' as an invalid encoding offset.
+
+2016-06-25 Werner Lemberg <wl@gnu.org>
+
+ [truetype] Really fix deallocation in case of error (#47726).
+
+ * src/truetype/ttgload.c (load_truetype_glyph): Thinko; initialize
+ `outline.points' also.
+
+2016-06-23 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ [smooth] Consolidate memory management.
+
+ * src/smooth/ftgrays.c (gray_init_cells): Remove function.
+ (gray_TWorker): Remove fields that become local variables.
+ (gray_raster_render): Move rendering buffer declaration from here.
+ (gray_convert_glyph): ... to here and update accordingly.
+
+2016-06-22 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ [smooth] Consolidate boundary checks.
+
+ Removing the checks from `gray_hline' shaves 1% off rendering speed.
+
+ * src/smooth/ftgrays.c [STANDALONE_]: Duplicate `FT_MIN' and `FT_MAX'.
+ (gray_TWorker): No need to store `clip_box'.
+ (gray_hline): Remove unnecessary boundary checks.
+ (gray_convert_glyph): Move boundary checks from here.
+ (gray_raster_render): ... to here and consolidate.
+
+2016-06-21 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ [smooth] Use `FT_Outline_Get_CBox'.
+
+ * src/smooth/ftgrays.c [STANDALONE_]: Duplicate `FT_Outline_Get_CBox'.
+ (gray_compute_cbox): Remove this function.
+ (gray_convert_glyph): Update to use `FT_Outline_Get_CBox'.
+
+2016-06-20 Werner Lemberg <wl@gnu.org>
+
+ [smooth] Remove compiler warnings.
+
+ * src/smooth/ftgrays.c (gray_convert_glyph): Fix reports from clang.
+
+2016-06-20 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ [smooth] Sanitize memory management.
+
+ * src/smooth/ftgrays.c (gray_convert_glyph): Cleaned up.
+
+2016-06-18 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ [smooth] Remove `band_shoot' that never worked.
+
+ * src/smooth/ftgrays.c (gray_TWorker): Remove `band_shoot'.
+ (gray_convert_glyph): Updated.
+
+2016-06-17 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ [raster, smooth] Handle FT_RENDER_POOL_SIZE better.
+
+ * src/raster/ftraster.c (FT_MAX_BLACK_POOL): New macro.
+ (ft_black_render): Updated.
+ * src/smooth/ftgrays.c (FT_MAX_GRAY_POOL): New macro.
+ (gray_raster_render): Updated.
+
+2016-06-16 Werner Lemberg <wl@gnu.org>
+
+ * src/base/md5.c: Updated to recent version.
+
+2016-06-14 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ * src/smooth/ftgrays.c (gray_hline): Optimize if-condition.
+
+2016-06-13 Werner Lemberg <wl@gnu.org>
+
+ [autofit] Add support for Cherokee script.
+
+ * src/autofit/afblue.dat: Add blue zone data for Cherokee.
+
+ * src/autofit/afblue.c, src/autofit/afblue.h: Regenerated.
+
+ * src/autofit/afscript.h: Add Cherokee standard characters.
+
+ * src/autofit/afranges.c: Add Cherokee data.
+
+ * src/autofit/afstyles.h: Add Cherokee data.
+
+2016-06-09 David Capello <davidcapello@gmail.com>
+
+ [cmake] Avoid modifying `ftconfig.h' and `ftoption.h' files.
+
+ * CMakeLists.txt: Each time cmake is run those files are
+ modified and the whole FreeType library is recompiled. With this
+ change we change the files only if there are real modifications, so
+ we can avoid recompilations.
+
+2016-06-09 Werner Lemberg <wl@gnu.org>
+
+ [bdf] Check number of properties (#48166).
+
+ * src/bdf/bdflib.c (_bdf_parse_start): Implement.
+
+2016-06-08 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ [smooth] Re-enable new line renderer on 64-bit archs.
+
+ * src/smooth/ftgrays.c (gray_render_line): Conditionally re-enable new
+ implementation, where it is safe from overflows.
+
+2016-06-08 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ [smooth] Minor clean-ups.
+
+ * src/smooth/ftgrays.c (gray_dump_cells): Move out of the way.
+ (gray_render_span): Remove spurious casts and streamline.
+
+2016-06-07 Werner Lemberg <wl@gnu.org>
+
+ [autofit] Add support for Ethiopic script.
+
+ * src/autofit/afblue.dat: Add blue zone data for Ethiopic.
+
+ * src/autofit/afblue.c, src/autofit/afblue.h: Regenerated.
+
+ * src/autofit/afscript.h: Add Ethiopic standard characters.
+
+ * src/autofit/afranges.c: Add Ethiopic data.
+
+ * src/autofit/afstyles.h: Add Ethiopic data.
+
+2016-06-07 Werner Lemberg <wl@gnu.org>
+
+ [autofit] Fix compilation with VS2016 (#48126).
+
+ This compiler doesn't recognize the end-of-comment sequence `*/' if
+ it immediately follows non-ASCII characters.
+
+ * src/autofit/afscript.h: Ensure whitespace before `*/'.
+
+2016-06-04 Werner Lemberg <wl@gnu.org>
+
+ Fix a test for named instances (#48122).
+
+ This was missed while giving negative face indices an extended
+ meaning.
+
+ * src/base/ftobjs.c (Mac_Read_sfnt_Resource): Implement.
+
+2016-05-31 Nikolaus Waxweiler <madigens@gmail.com>
+
+ [truetype] Let SHPIX move points in the twilight zone in v40.
+
+ * src/truetype/ttinterp.c (Ins_SHPIX): Allow SHPIX to move points in
+ the twilight zone. Otherwise, treat SHPIX the same as DELTAP.
+ Unbreaks various fonts such as older versions of Rokkitt and DTL
+ Argo T Light that would glitch severely after calling ALIGNRP after a
+ blocked SHPIX.
+
+2016-05-30 Werner Lemberg <wl@gnu.org>
+
+ [type42] Support `CharStrings' entry format as created by LilyPond.
+
+ * src/type42/t42parse.c (t42_parse_charstrings): Handle entries
+ having the format
+
+ (foo) cvn 12345 def
+
+2016-05-28 Werner Lemberg <wl@gnu.org>
+
+ * src/autofit/afranges.c: Remove `UL' postfix from hex numbers.
+
+ Suggested by Alexei. `UL' is only needed for 16bit compilers, but
+ it seems noone is using this anymore (and we no longer test whether
+ FreeType compiles in such an environment). Otherwise, it is easy to
+ add the postfix to the `AF_UNICODE_RANGE' macro.
+
+2016-05-26 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ [smooth] Shrink bisection stack.
+
+ The convergence of Bézier flatteners is fast with the deviation
+ from straight line being asymptotically cut 4-fold on each bisection.
+ This justifies smaller bisection stack size.
+
+ * src/smooth/ftgrays.c (gray_TWorker): Remove common `bez_stack'.
+ (gray_render_conic): Create and use conic `bez_stack'. Move back the
+ band analysis from...
+ (gray_conic_to): ... here.
+ (gray_render_cubic): Create and use cubic `bez_stack'. Move back the
+ band analysis from...
+ (gray_cubic_to): ... here.
+ (gray_move_to): Updated.
+
+2016-05-25 Werner Lemberg <wl@gnu.org>
+
+ [autofit] Fixes for Armenian and Gujarati ranges.
+
+ * src/autofit/afranges.c (af_armn_uniranges): Corrected.
+ (af_guru_nonbase_uniranges): Make U+0A3E a base character.
+
+2016-05-24 Werner Lemberg <wl@gnu.org>
+
+ [autofit] Add support for Armenian script.
+
+ * src/autofit/afblue.dat: Add blue zone data for Armenian.
+
+ * src/autofit/afblue.c, src/autofit/afblue.h: Regenerated.
+
+ * src/autofit/afscript.h: Add Armenian standard characters.
+
+ * src/autofit/afranges.c: Add Armenian data.
+
+ * src/autofit/afstyles.h: Add Armenian data.
+
+2016-05-23 Werner Lemberg <wl@gnu.org>
+
+ * builds/unix/unix-cc.in (LINK_LIBRARY): Use `-export-symbols'.
+
+ This was commented about 10 years ago – I think the reason then to
+ disable libtool's `-export-symbols' option was to give some badly
+ programmed applications access to internal FreeType functions.
+
+ I believe that we should no longer take care of such programs; the
+ number of symbols exported should be rather restricted as much as
+ possible.
+
+2016-05-22 Werner Lemberg <wl@gnu.org>
+
+ [autofit] Add blue-zone support for Gurmukhi script.
+
+ This essentially moves the Gurmukhi script from the `Indic' hinter to
+ the `Latin' hinter.
+
+ * src/autofit/afblue.dat: Add blue zone data for Gurmukhi.
+
+ * src/autofit/afblue.c, src/autofit/afblue.h: Regenerated.
+
+ * src/autofit/afscript.h: Add Gurmukhi standard characters and move
+ data out of AF_CONFIG_OPTION_INDIC block.
+
+ * src/autofit/afranges.c: Move Gurmukhi data out of
+ AF_CONFIG_OPTION_INDIC block.
+
+ * src/autofit/afstyles.h: Update Gurmukhi data; in particular, use
+ AF_WRITING_SYSTEM_LATIN.
+
+2016-05-21 Werner Lemberg <wl@gnu.org>
+
+ Minor clang++ fixes.
+
+ * src/base/ftobjs.c (FT_Add_Module), src/psaux/psobjs.c
+ (ps_parser_load_field), src/type1/t1load.c (parse_subrs): Add
+ initializer.
+
+ * src/cache/ftccache.h (FTC_CACHE_TRYLOOP_END): Avoid implicit
+ conversion from NULL to boolean.
+
+2016-05-21 Werner Lemberg <wl@gnu.org>
+
+ Work around a bug of the C 8.0.0.1 compiler on AIX 5.3 (#47955).
+
+ * include/freetype/internal/ftmemory.h (cplusplus_typeof): Use
+ braces for `extern "C++"'.
+
+2016-05-17 Nikolaus Waxweiler <madigens@gmail.com>
+
+ [truetype] Make TT_LOADER_SET_PP support subpixel hinting [3/3].
+
+ * src/truetype/ttgload.c (TT_LOADER_SET_PP): Replace macro with...
+ (tt_loader_set_pp): ... this new function.
+ Update all callers.
+
+2016-05-17 Nikolaus Waxweiler <madigens@gmail.com>
+
+ [truetype] New implementation of v38 bytecode interpreter [2/3].
+
+ This patch actually modifies the bytecode interpreter.
+
+ See added comments in `ttinterp.h' for more information on this and
+ the following commit in the series.
+
+ * src/truetype/ttinterp.c (SUBPIXEL_HINTING): Replaced by...
+ (NO_SUBPIXEL_HINTING, SUBPIXEL_HINTING_INFINALITY,
+ SUBPIXEL_HINTING_MINIMAL): ...new macros.
+ (Direct_Move, Direct_Move_X, Direct_Move_Y): Handle backward
+ compatibility.
+ Updated.
+ (Ins_RS, Ins_FDEF, Ins_ENDF, Ins_CALL, Ins_LOOPCALL, Ins_MD):
+ Updated.
+ (Ins_INSTCTRL): Handle native ClearType mode flag.
+ Updated.
+ (Ins_FLIPPT, Ins_FLIPRGON, Ins_FLIPRGOFF): Handle backward
+ compatibility.
+ (Move_Zp2_Point): Ditto.
+ (Ins_SHP): Updated.
+ (Ins_SHPIX): Handle backward compatibility.
+ Updated.
+ (Ins_MSIRP, Ins_MDAP, Ins_MIAP, Ins_MDRP, Ins_MIRP): Updated.
+ (Ins_ALIGNRP): Updated.
+ (Ins_IUP, Ins_DELTAP): Handle backward compatibility.
+ Updated.
+ (Ins_GETINFO): Handle v38 flags.
+ Updated.
+ (TT_RunIns): Handle backward compatibility mode.
+ Updated.
+
+2016-05-17 Nikolaus Waxweiler <madigens@gmail.com>
+
+ [truetype] New implementation of v38 bytecode interpreter [1/3].
+
+ This patch prepares data structures and the like.
+
+ See added comments in `ttinterp.h' for more information on this and
+ the following commits in the series.
+
+ * devel/ftoption.h, include/freetype/config/ftoption.h
+ (TT_CONFIG_OPTION_SUBPIXEL_HINTING): Assign values to differentiate
+ between subpixel versions.
+ (TT_SUPPORT_SUBPIXEL_HINTING_INFINALITY,
+ TT_SUPPORT_SUBPIXEL_HINTING_MINIMAL): New macros.
+
+ * include/freetype/ftttdrv.h (TT_INTERPRETER_VERSION_40): New macro.
+
+ * include/freetype/internal/tttypes.h (TT_FaceRec): Updated.
+
+ * src/truetype/ttinterp.h (TT_ExecContextRec): Define new fields
+ `subpixel_hinting_lean', `vertical_lcd_lean',
+ `backward_compatibility', `iupx_called', iupy_called', and
+ `grayscale_cleartype' for new hinting mode.
+
+ * src/truetype/ttdriver.c (tt_property_set): Handle v38 and v40
+ interpreters conditionally.
+
+ * src/truetype/ttgload.c (TT_Hint_Glyph): Save phantom points unless
+ in v38 backward compatibility mode.
+ Updated.
+ (compute_glyph_metrics): Add v38 backward compatibility mode
+ constraint for adjusting advance widths.
+ Updated.
+ (tt_loader_init): Handle new flags `subpixel_hinting_lean',
+ `grayscale_cleartype', and `vertical_lcd_lean'.
+ Updated.
+ (tt_get_metrics, TT_Process_Simple_Glyph, TT_LOADER_SET_PP):
+ Updated.
+
+ * src/truetype/ttobjs.c (tt_driver_init): Conditionally set
+ default interpreter version number.
+
+ * src/truetype/ttsubpix.c, src/truetype/ttsubpix.h: Updated.
+
+2016-05-17 Werner Lemberg <wl@gnu.org>
+
+ [cff] Fix matrix scaling (#47848).
+
+ * include/freetype/config/ftstdlib.h (FT_LONG_MIN): New macro.
+
+ * src/cff/cffparse.c (cff_parse_font_matrix): Use largest scaling
+ value of all matrix coefficients to scale matrix.
+
+ * src/cff/cffobjs.c (cff_face_init): Use `matrix->yx' member for
+ matrix normalization if `matrix->yy' is zero.
+
+2016-05-16 Werner Lemberg <wl@gnu.org>
+
+ [base] Reject invalid sfnt Mac resource (#47891).
+
+ * src/base/ftobjs.c (open_face_PS_from_sfnt_stream): Check validity
+ of `CID ' and `TYPE1' table offset and length.
+
+2016-05-16 Werner Lemberg <wl@gnu.org>
+
+ [cid] Fix scanning for `StartData' and `/sfnts' (#47892).
+
+ * src/cid/cidparse.c (STARTDATA, STARTDATA_LEN, SFNTS, SFNTS_LEN):
+ New macros.
+ (cid_parser_new): Fix and document algorithm.
+
+2016-05-16 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ [truetype] Improve the recursive reference detector.
+
+ The previous fix for #46372 misunderstood a composite glyph referring
+ same component twice as a recursive reference. See the discussion
+
+ https://lists.gnu.org/archive/html/freetype/2016-05/msg00000.html
+
+ Thanks to Khaled Hosny for finding this issue.
+
+ * src/truetype/ttgload.c (ft_list_get_node_at): A function to get
+ the i-th node from FT_List.
+ (load_truetype_glyph): In the traversal scan of the reference tree
+ in the composite glyph, we clear the nodes filled by previous
+ sibling chain.
+
+2016-05-07 Werner Lemberg <wl@gnu.org>
+
+ [cache] Allow value 0 for face ID.
+
+ We never dereference `face_id', and some implementations might use a
+ running number instead of a pointer. Additionally, disallowing
+ value zero was undocumented.
+
+ * src/cache/ftccmap.c (FTC_CMapCache_Lookup), src/cache/ftcmanag.c
+ (FTC_Manager_LookupFace, FTC_Manager_RemoveFaceID): Remove test for
+ `face_id'.
+
+2016-05-05 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ [smooth] More efficient accounting of conic splits and draws.
+
+ A single decrement counter of segments to draw, instead of an array,
+ contains all the information necessary to decide when to split and
+ when to draw a conic segment. The number of splits before each draw is
+ equal to the number of trailing zeros in the counter.
+
+ * src/smooth/ftgrays.c (gray_TWorker): Remove `lev_stack'.
+ (gray_render_conic): Updated to use decrement counter of segments.
+
+2016-05-05 Werner Lemberg <wl@gnu.org>
+
+ [cff, truetype] Fix logic for `FT_Property_Set'.
+
+ Otherwise some properties could be set to arbitrary values, which is
+ harmless, but querying could give wrong positive results.
+
+ * src/cff/cffdrivr.c (cff_property_set) [hinting-engine],
+ * src/truetype/ttdriver.c (tt_property_set) [interpreter-version]:
+ Only allow defined values.
+
+2016-04-25 Werner Lemberg <wl@gnu.org>
+
+ [autofit] Add blue-zone support for Gujarati script.
+
+ This essentially moves the Gujarati script from the `Indic' hinter to
+ the `Latin' hinter.
+
+ * src/autofit/afblue.dat: Add blue zone data for Gujarati.
+
+ * src/autofit/afblue.c, src/autofit/afblue.h: Regenerated.
+
+ * src/autofit/afscript.h: Add Gujarati standard characters and move
+ data out of AF_CONFIG_OPTION_INDIC block.
+
+ * src/autofit/afranges.c: Move Gujarati data out of
+ AF_CONFIG_OPTION_INDIC block.
+
+ * src/autofit/afstyles.h: Update Gujarati data; in particular, use
+ AF_WRITING_SYSTEM_LATIN.
+
+2016-04-24 Werner Lemberg <wl@gnu.org>
+
+ Minor.
+
+ * include/freetype/freetype.h (FT_HAS_*, FT_IS_*): Protect macro
+ argument with parentheses.
+
+2016-04-24 Werner Lemberg <wl@gnu.org>
+
+ [truetype] Fix deallocation in case of error (#47726).
+
+ * src/truetype/ttgload.c (load_truetype_glyph): Initialize fields in
+ `outline' that are going to be deallocated in case of error.
+
+2016-04-23 Werner Lemberg <wl@gnu.org>
+
+ [autofit] Improve Georgian blue zone characters.
+
+ Suggested by Akaki Razmadze <razmadzekoko@gmail.com>.
+
+ * src/autofit/afblue.dat (AF_BLUE_STRING_GEORGIAN_MKHEDRULI_BOTTOM):
+ Updated.
+
+ * src/autofit/afblue.c: Regenerated.
+
+2016-04-16 David Capello <davidcapello@gmail.com>
+
+ [cmake] Honor SKIP_INSTALL_* settings (as used in zlib).
+
+ As FreeType depends on zlib, if we don't install zlib (e.g., because
+ we defined SKIP_INSTALL_ALL), FreeType cannot be installed, too
+ (cmake triggers an error saying that FreeType cannot be installed
+ because zlib target isn't in the export set).
+
+ * CMakeLists.txt: Honor `SKIP_INSTALL_HEADERS',
+ `SKIP_INSTALL_LIBRARIES', and `SKIP_INSTALL_ALL' settings.
+
+2016-04-16 Behdad Esfahbod <behdad@behdad.org>
+
+ [truetype] Another fix for non-intermediate GX tuples.
+
+ * src/truetype/ttgxvar.c (ft_var_apply_tuple): Add some missing
+ cases.
+
+2016-04-12 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ Remove forgotten macro.
+
+ * include/freetype/internal/internal.h
+ [FT_INTERNAL_POSTSCRIPT_GLOBALS_H]: Remove.
+
+2016-04-09 Werner Lemberg <wl@gnu.org>
+
+ [autofit] Add support for Georgian scripts.
+
+ Georgian is problematic, since `uppercase' forms of Mkhedruli
+ (called Mtavruli) are not yet defined in Unicode, which means that
+ proper blue zones can't be defined. However, there is already a
+ proposal submitted to Unicode; see
+
+ https://www.unicode.org/L2/L2016/16034-n4707-georgian.pdf
+
+ Additionally, due to historical reasons, Unicode treats Khutsuri as
+ the same script as Mkhedruli, and so does OpenType. However, since
+ the two scripts have completely different shapes it can happen that
+ blue zones differ considerably. The tag `geok' used here (derived
+ from ISO 15924) to differentiate the two scripts is not an OpenType
+ tag in use. If we now have a font that contains both glyphs for
+ Mkhedruli and Khutsuri, and it uses OpenType features for both also,
+ HarfBuzz unavoidably treats all glyphs as `geor'. As a consequence,
+ blue zones for `geok' are not used for glyphs involved in the
+ OpenType features.
+
+ An issue not yet resolved is which OpenType feature should be used
+ to access Mtavruli glyph shapes; right now, FreeType doesn't set up
+ support for them, but it is easy to add them later on as soon as
+ more information is available.
+
+ * src/autofit/afblue.dat: Add blue zone data for Georgian.
+
+ * src/autofit/afblue.c, src/autofit/afblue.h: Regenerated.
+
+ * src/autofit/afscript.h: Add Georgian standard characters.
+
+ * src/autofit/afranges.c: Add Georgian data.
+
+ * src/autofit/afstyles.h: Add Georgian data.
+
+2016-04-05 Werner Lemberg <wl@gnu.org>
+
+ [autofit] Provide dummy blue zone for pseudo script `none'.
+
+ Even if the dummy hinter is used as the handler for `none' (which
+ doesn't use blue zones), it is more consistent than the old value
+ (which was 0), pointing to Arabic...
+
+ * src/autofit/afblue.dat: Add `AF_BLUE_STRINGSET_NONE'.
+ * src/autofit/afblue.c, src/autofit/afblue.h: Regenerated.
+
+ * src/autofit/afstyles.h (none_dflt): Use AF_BLUE_STRINGSET_NONE.
+
+2016-03-30 Werner Lemberg <wl@gnu.org>
+
+ * src/pfr/pfrload.c (pfr_aux_name_load): Thinko (#47567).
+
+2016-03-30 Werner Lemberg <wl@gnu.org>
+
+ * src/pfr/pfrload.c (pfr_log_font_count): Better font size estimate.
+
+2016-03-30 Werner Lemberg <wl@gnu.org>
+
+ * src/pfr/pfrload.c (pfr_aux_name_load): Fix memory leak (#47567).
+
+2016-03-29 Werner Lemberg <wl@gnu.org>
+
+ * src/base/ftadvanc.c (FT_Get_Advances): Fix invalid left shift.
+
+2016-03-29 Werner Lemberg <wl@gnu.org>
+
+ [pfr] Fix binary search (#47514).
+
+ * src/pfr/pfrsbit.c (pfr_lookup_bitmap_data): Handle border
+ conditions correctly.
+
+2016-03-29 Werner Lemberg <wl@gnu.org>
+
+ [pfr] Minor.
+
+ * src/pfr/pfrsbit.c (pfr_lookup_bitmap_data): Replace `left',
+ `right', and `middle' with `min', `max', and `mid' as used in other
+ FreeType binary search code.
+ (pfr_load_bitmap_metrics): Fix invalid left shift.
+
+2016-03-29 Werner Lemberg <wl@gnu.org>
+
+ * src/pfr/pfrtypes.h: Replace all enums with macros.
+
+ We need `~FOO' to unset bits, and only with unsigned values (which
+ `enum' isn't normally) this works cleanly.
+
+2016-03-26 Werner Lemberg <wl@gnu.org>
+
+ [pfr] Robustify bitmap strike handling (#47514).
+
+ We did a binary search for a charcode without ensuring that the
+ searched data is ordered. Validating the order is now done lazily,
+ this is, the first access to a bitmap glyph triggers the order check
+ in the corresponding bitmap strike.
+
+ * src/pfr/pfrtypes.h (PFR_BitmapFlags): New values
+ `PFR_BITMAP_VALID_CHARCODES' and `PFR_BITMAP_CHARCODES_VALIDATED'.
+
+ * src/pfr/pfrsbit.c (pfr_lookup_bitmap_data): Make `flags' argument
+ a pointer. Handle new PFR_BITMAP_XXX flags.
+ (pfr_slot_load_bitmap): Updated.
+
+2016-03-26 Werner Lemberg <wl@gnu.org>
+
+ [pfr] Fix handling of compound glyphs.
+
+ Extra items are indicated with different bit positions.
+
+ * src/pfr/pfrtypes.h (PFR_GlyphFlags): Replace
+ `PFR_GLYPH_EXTRA_ITEMS' with `PFR_GLYPH_SIMPLE_EXTRA_ITEMS' and
+ `PFR_GLYPH_COMPOUND_EXTRA_ITEMS'.
+
+ * src/pfr/pfrgload.c (pfr_glyph_load_simple,
+ pfr_glyph_load_compound): Use them.
+
+2016-03-25 Werner Lemberg <wl@gnu.org>
+
+ [pfr] Minor.
+
+ * src/pfr/pfrsbit.c, src/pfr/pfrobjs.c: Use flag names instead of
+ bare numbers.
+
+2016-03-25 Werner Lemberg <wl@gnu.org>
+
+ [pfr] Various clang sanitizer fixes.
+
+ * src/pfr/pfrsbit.c (pfr_load_bitmap_metrics): Correctly handle
+ signed nibbles.
+ (pfr_slot_load_bitmap): Correctly exit frame in case of error.
+ Fix invalid left shifts.
+
+2016-03-23 Werner Lemberg <wl@gnu.org>
+
+ Rename `VERSION.DLL' (#47472).
+
+ * docs/VERSION.DLL: Renamed to...
+ * docs/VERSIONS.TXT: ...this.
+
+2016-03-23 Werner Lemberg <wl@gnu.org>
+
+ [raster, smooth] Directly test outline size (#47500).
+
+ This improves stand-alone compilation.
+
+ * src/base/ftoutln.c (FT_Outline_Render): Move cbox size test to...
+
+ * src/raster/ftraster.c (ft_black_render), src/smooth/ftgrays.c
+ (gray_raster_render): ...these functions.
+
+2016-03-23 Werner Lemberg <wl@gnu.org>
+
+ [raster, smooth] Fix some clang sanitizer runtime issues.
+
+ * src/raster/ftraster.c (ft_black_reset, ft_black_set_mode,
+ ft_black_render): Harmonize signatures with `ftimage.h'.
+
+ * src/smooth/ftgrays.c (gray_raster_render, gray_raster_reset):
+ Ditto.
+
+2016-03-22 Werner Lemberg <wl@gnu.org>
+
+ * src/truetype/ttgload.c (TT_Load_Simple_Glyph): Minor.
+
+ This fixes an AddressSanitizer issue:
+
+ ttgload.c:430:7: runtime error: null pointer passed as argument 1,
+ which is declared to never be null
+
+2016-03-21 Werner Lemberg <wl@gnu.org>
+
+ * src/autofit/afhints.c (af_glyph_hints_reload): Thinko.
+
+ This fixes the previous commit to this file.
+
+2016-03-21 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ [smooth] Partly revert recent changes.
+
+ * src/smooth/ftgrays.c (gray_conic_to, gray_cubic_to): Rework
+ conditions to fix rendering issues.
+
+2016-03-20 Werner Lemberg <wl@gnu.org>
+
+ [autofit] Show `near' points in tracing.
+
+ * src/autofit/afhints.h (AF_FLAG_NEAR): New macro.
+
+ * src/autofit/afhints.c (af_glyph_hints_dump_points): Implement it.
+ (af_glyph_hints_reload): Handle AF_FLAG_NEAR.
+
+2016-03-18 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ [smooth] Minor refactoring and microoptimizations.
+
+ * src/smooth/ftgrays.c (gray_render_conic, gray_render_cubic): Move
+ band clipping from here.
+ (gray_conic_to, gray_cubic_to): ... to here.
+ (gray_render_line, gray_render_scanline): Initialize variables closer
+ to their use.
+
+2016-03-17 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ [smooth] Minor refactoring.
+
+ * src/smooth/ftgrays.c (gray_render_conic, gray_render_cubic): Move
+ upscaling from here.
+ (gray_conic_to, gray_cubic_to): ... to here.
+
+2016-03-15 Werner Lemberg <wl@gnu.org>
+
+ * src/autofit/aflatin.c (af_latin_compute_stem_width): Optimize.
+
+2016-03-14 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ [smooth] Temporarily revert 6eb6158dd787 (#47114).
+
+ * src/smooth/ftgrays.c (gray_render_line): Old implementation.
+
+2016-03-12 Werner Lemberg <wl@gnu.org>
+
+ [ftfuzzer] Improve coverage of rasterfuzzer.
+
+ * src/tools/ftfuzzer/rasterfuzzer.cc (LLVMFuzzerTestOneInput): Use
+ input data for `tags' array also.
+ Trim input data to get more positive hits.
+
+2016-03-11 Pavlo Denysov <paul.kiev+savannah@gmail.com>
+
+ Fix CMake issues for iOS (patch #8941).
+
+ * CMakeLists.txt (CMAKE_TOOLCHAIN_FILE): Fix directory.
+ * builds/cmake/iOS.cmake: No longer enforce gcc.
+
+2016-03-09 Behdad Esfahbod <behdad@behdad.org>
+
+ [truetype] Fix handling of non-intermediate GX tuples.
+
+ We probably did not notice this as all fonts we tested had only
+ tuple_coords[i] be +1 or -1 for non-intermediate tuples.
+
+ * src/truetype/ttgxvar.c (ft_var_apply_tuple): Implement it.
+
+2016-03-06 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ [base] Refuse to render enormous outlines (#47114).
+
+ The goal is to avoid integer overflows in the rendering algorithms.
+ The limit is chosen arbitrarily at some 2^18 pixels, which should be
+ enough for modern devices including printers.
+
+ * src/base/ftoutln.c (FT_Outline_Render): Check CBox and reject
+ enormous outlines.
+
+2016-03-06 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ [smooth] Replace left shifts with multiplications (#47114).
+
+ * src/smooth/ftgrays.c (SUBPIXELS, UPSCALE, DOWNSCALE): Do it.
+
+2016-03-05 Werner Lemberg <wl@gnu.org>
+
+ [autofit] Avoid excessive stem length rounding (#25392).
+
+ * src/autofit/aflatin.c (af_latin_compute_stem_width): Add argument
+ to pass difference between hinted and unhinted position of base
+ point; use this to adjust the stem width depending on the PPEM so
+ that it doesn't become too large under certain circumstances.
+ Update all callers using value 0 for this argument except...
+ (af_latin_align_linked_edge): Pass position delta of base point to
+ `af_latin_compute_stem_width'.
+
+2016-03-05 J Raynor <jxraynor@gmail.com>
+
+ Make FreeType compile on AIX out of the box.
+
+ * builds/unix/configure.raw (XX_ANSIFLAGS): Don't use `-ansi' on
+ AIX.
+
+2016-03-01 Werner Lemberg <wl@gnu.org>
+ Kostya Serebryany <kcc@google.com>
+
+ [ftfuzzer] Add unit for testing smooth and black rasterizers.
+
+ * src/tools/ftfuzzer/rasterfuzzer.cc: New file.
+
+2016-03-01 Werner Lemberg <wl@gnu.org>
+
+ [autofit] Fix reallocation error introduced in 2016-02-27 (#47310).
+
+ * src/autofit/aflatin.c (af_latin_hints_compute_segments): Reassign
+ `prev_segment' after reallocation.
+
+2016-03-01 Werner Lemberg <wl@gnu.org>
+
+ Fix clang warnings.
+
+ * src/autofit/aflatin.c (af_latin_hints_compute_segments): Use
+ FT_UShort for `min_flags' and `max_flags'.
+ Initialize `prev_*' variables.
+
+ * src/cff/cffobjs.c (cff_face_init) [FT_DEBUG_LEVEL_TRACE]: Fix
+ types of local variables.
+
+ * src/smooth/ftgrays.c (gray_dump_cells) [FT_DEBUG_LEVEL_TRACE]:
+ Update `printf' format string.
+
+ * src/tools/ftfuzzer/ftfuzzer.cc (setIntermediateAxis): Add cast.
+ (LLVMFuzzerTestOneInput): Fix loop type.
+
+2016-02-29 Werner Lemberg <wl@gnu.org>
+
+ [autofit] Add blue-zone support for Sinhala script.
+
+ This essentially moves the Sinhala script from the `Indic' hinter to
+ the `Latin' hinter.
+
+ * src/autofit/afblue.dat: Add blue zone data for Sinhala.
+
+ * src/autofit/afblue.c, src/autofit/afblue.h: Regenerated.
+
+ * src/autofit/afscript.h: Add Sinhala standard character and move data
+ out of AF_CONFIG_OPTION_INDIC block.
+
+ * src/autofit/afranges.c: Move Sinhala data out of
+ AF_CONFIG_OPTION_INDIC block.
+
+ * src/autofit/afstyles.h: Update Sinhala data; in particular, use
+ AF_WRITING_SYSTEM_LATIN.
+
+2016-02-27 Werner Lemberg <wl@gnu.org>
+
+ [autofit] Properly handle spikes pointing to the x-axis.
+
+ An example that gets better rendered is glyph `uusignTaml' (glyph
+ index 2286) in font `FreeSerif.ttf' (Version 0412.2263) at 22ppem.
+
+ * src/autofit/aflatin.c (af_latin_hints_compute_segments): Properly
+ handle segments where the last point of the first segment is
+ identical to the first point in the second one. This can happen for
+ malformed fonts or spikes. We either merge the new segment with the
+ previous one (both segments point into the same direction), or we
+ discard the shorter segment if they point into different directions.
+
+2016-02-27 Werner Lemberg <wl@gnu.org>
+
+ [autofit] Minor code clean-up.
+
+ * src/autofit/aflatin.c (af_latin_hints_compute_segments): Change
+ some local variable names to better differentiate between values
+ along a segment and values orthogonal to it.
+
+2016-02-26 Werner Lemberg <wl@gnu.org>
+
+ [autofit] Improve BOUND action.
+
+ In complex glyph shapes, the original logic was too simple to cater
+ for situations that would actually need something similar to PS Hint
+ masks. This fix should alleviate the worst cases.
+
+ * src/autofit/aflatin.c (af_latin_hint_edges): Don't allow
+ complete disappearance of stems.
+
+2016-02-25 Werner Lemberg <wl@gnu.org>
+
+ [autofit] Add blue-zone support for Tamil script.
+
+ This essentially moves the Tamil script from the `Indic' hinter to
+ the `Latin' hinter.
+
+ * src/autofit/afblue.dat: Add blue zone data for Tamil.
+
+ * src/autofit/afblue.c, src/autofit/afblue.h: Regenerated.
+
+ * src/autofit/afscript.h: Add Tamil standard character and move data
+ out of AF_CONFIG_OPTION_INDIC block.
+
+ * src/autofit/afranges.c: Move Tamil data out of
+ AF_CONFIG_OPTION_INDIC block.
+
+ * src/autofit/afstyles.h: Update Tamil data; in particular, use
+ AF_WRITING_SYSTEM_LATIN.
+
+2016-02-18 Werner Lemberg <wl@gnu.org>
+
+ [autofit] Add blue-zone support for Malayalam script.
+
+ This essentially moves the Malayalam script from the `Indic' hinter
+ to the `Latin' hinter.
+
+ * src/autofit/afblue.dat: Add blue zone data for Malayalam.
+
+ * src/autofit/afblue.c, src/autofit/afblue.h: Regenerated.
+
+ * src/autofit/afscript.h: Add Malayalam standard characters and move
+ data out of AF_CONFIG_OPTION_INDIC block.
+
+ * src/autofit/afranges.c: Move Malayalam data out of
+ AF_CONFIG_OPTION_INDIC block.
+
+ * src/autofit/afstyles.h: Update Malayalam data; in particular, use
+ AF_WRITING_SYSTEM_LATIN.
+
+2016-02-16 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ [smooth] Fix integer overflow (#47114).
+
+ * src/smooth/ftgrays.c (TArea): Make it unconditionally `long'.
+
+2016-02-15 Werner Lemberg <wl@gnu.org>
+
+ * src/cff/cffparse.c (cff_parse_multiple_master): Improve tracing.
+
+2016-02-15 Werner Lemberg <wl@gnu.org>
+
+ [cff] Handle T2 operator only with old CFF engine (#47157).
+
+ * src/cff/cffparse.c (cff_parser_run) <opcode 31>: Enclose with
+ #ifdef CFF_CONFIG_OPTION_OLD_ENGINE...#endif.
+
+2016-02-15 Werner Lemberg <wl@gnu.org>
+
+ [cff] Partially handle `load' and `store' ops in old CFF engine.
+
+ Now all glyphs of MM CFFs like `ITCGaramondMM-It.otf' can be
+ displayed.
+
+ * src/cff/cffgload.c (cff_decoder_parse_charstrings) <cff_op_store,
+ cff_op_load>: Partially implement it.
+
+ * src/cff/cffparse.c (cff_parser_init): Add new parameter to pass
+ the number of Multiple Master axes.
+ Update all callers.
+ (cff_parse_multiple_master): Get number of axes.
+ (cff_parser_run) <opcode 31>: Updated.
+ * src/cff/cffparse.h: Updated.
+ (CFF_ParserRec): Add `num_axes' field.
+
+ * src/cff/cffload.c: Updated.
+
+ * src/cff/cfftypes.h (CFF_FontRecDictRec): Add `num_axes' field.
+
+2016-02-15 Werner Lemberg <wl@gnu.org>
+
+ [cff] Correctly trace SIDs that contain NULL bytes.
+
+ We need this to properly trace Multiple Master CFFs, which contain
+ two SIDs that are charstrings.
+
+ This commit makes FreeType also show the last SID, omitted
+ previously due to a bug.
+
+ * src/cff/cfftypes.h (CFF_FontRec): Add `string_pool_size' field.
+
+ * src/cff/cffload.c (cff_index_get_pointers): Add argument to return
+ the pool size.
+ Update all callers.
+
+ * src/cff/cffobjs.c (cff_face_init) [FT_DEBUG_LEVEL_TRACE]: Directly
+ access `cff->strings' to display the non-default strings.
+
+2016-02-14 Werner Lemberg <wl@gnu.org>
+
+ * src/base/fthash.c: Include FT_INTERNAL_MEMORY_H.
+
+2016-02-14 Werner Lemberg <wl@gnu.org>
+
+ * src/cff/cffparse.c: Include `cffgload.h'.
+
+ Problem reported by Colin Walters <walters@verbum.org>.
+
+2016-02-14 Werner Lemberg <wl@gnu.org>
+
+ [cff] Make old CFF engine show MM CFFs (without variations).
+
+ The new code only displays the first master in the font.
+
+ * src/cff/cffgload.c (cff_decode_parse_charstrings): Add new
+ parameter to allow function calls from dictionaries also.
+ <cff_op_blend>: Partially implement it.
+ Update all callers.
+ * src/cff/cffgload.h: Updated.
+
+ * src/cff/cffparse.c (cff_parser_init): Add new parameter to pass the
+ number of Multiple Master designs.
+ Update all callers.
+ (cff_parse_multiple_master): New function to rudimentarily parse
+ operator.
+ (cff_parser_run): Handle `T2' operator.
+ * src/cff/cffparse.h: Updated.
+ (CFF_ParserRec): Add `num_designs' field.
+
+ * src/cff/cffload.c: Updated.
+
+ * src/cff/cfftoken.h: Handle `MultipleMaster' operator.
+
+ * src/cff/cfftypes.h (CFF_FontRecDictRec): Add `num_designs' field.
+
+ * src/sfnt/sfobjs.c (sfnt_init_face): Don't handle `fvar' table for
+ MM CFFs.
+
+2016-02-09 Werner Lemberg <wl@gnu.org>
+
+ [docmaker] Don't emit trailing newlines.
+
+ * src/tools/docmaker/tohtml.py (HtmlFormatter::make_html_code):
+ Use `rstrip'.
+
+2016-02-07 Werner Lemberg <wl@gnu.org>
+
+ * Version 2.6.3 released.
+ =========================
+
+
+ Tag sources with `VER-2-6-3'.
+
+ * docs/VERSION.DLL: Update documentation and bump version number to
+ 2.6.3.
+
+ * README, Jamfile (RefDoc), builds/windows/vc2005/freetype.vcproj,
+ builds/windows/vc2005/index.html,
+ builds/windows/vc2008/freetype.vcproj,
+ builds/windows/vc2008/index.html,
+ builds/windows/vc2010/freetype.vcxproj,
+ builds/windows/vc2010/index.html,
+ builds/windows/visualc/freetype.dsp,
+ builds/windows/visualc/freetype.vcproj,
+ builds/windows/visualc/index.html,
+ builds/windows/visualce/freetype.dsp,
+ builds/windows/visualce/freetype.vcproj,
+ builds/windows/visualce/index.html,
+ builds/wince/vc2005-ce/freetype.vcproj,
+ builds/wince/vc2005-ce/index.html,
+ builds/wince/vc2008-ce/freetype.vcproj,
+ builds/wince/vc2008-ce/index.html: s/2.6.2/2.6.3/, s/262/263/.
+
+ * include/freetype/freetype.h (FREETYPE_PATCH): Set to 3.
+
+ * builds/unix/configure.raw (version_info): Set to 18:3:12.
+ * CMakeLists.txt (VERSION_PATCH): Set to 3.
+
+ * docs/CHANGES: Updated.
+
+2016-02-07 Werner Lemberg <wl@gnu.org>
+
+ Fix another runtime error found by clang's sanitizer (#47082).
+
+ * src/base/ftstroke.c (ft_stroke_border_export): Properly handle
+ empty input buffer.
+
+2016-02-07 Werner Lemberg <wl@gnu.org>
+
+ Fix runtime errors found by clang's sanitizer (#47082).
+
+ * src/base/ftobjs.c (FT_Render_Glyph_Internal), src/base/ftoutln.c
+ (FT_Outline_Copy), src/cache/ftcsbits.c (ftc_sbit_copy_bitmap):
+ Properly handle empty input buffer.
+
+2016-02-07 Werner Lemberg <wl@gnu.org>
+
+ [cff] Minor.
+
+ * src/cff/cffgload.c (cff_decoder_parse_charstrings) <cff_op_sqrt>:
+ Remove dead code.
+
+2016-02-07 Werner Lemberg <wl@gnu.org>
+
+ [cff] Implement missing operators in new engine (except `random').
+
+ * src/cff/cf2font.h (CF2_STORAGE_SIZE): New macro.
+
+ * src/cff/cf2intrp.c (cf2_interpT2CharString): Implement the
+ following operators: abs, add, and, div, drop, dup, eq, exch, get,
+ ifelse, index, mul, neg, not, or, put, roll, sqrt, sub.
+
+ * src/cff/cf2stack.h, src/cff/cf2stack.c (cf2_stack_roll): New
+ auxiliary function for `roll' operator.
+
+2016-02-06 Werner Lemberg <wl@gnu.org>
+
+ [cff] Fix some Type 2 operators in old CFF engine.
+
+ * src/cff/cffgload.c (cff_decoder_parse_charstrings): Fix `eq'
+ operator, add `not' and (unsupported) `blend' operators.
+
+2016-02-05 Sebastian Rasmussen <sebras@gmail.com>
+
+ Make direct call of `make install' work (#47072).
+
+ * builds/unix/unix-def.in (freetype-config): Make sure
+ `freetype-config' is generated for both make targets (`all' and
+ `install').
+
+2016-02-05 Werner Lemberg <wl@gnu.org>
+
+ [base] Fix advance width loading for MM and GX fonts (#47064).
+
+ * src/base/ftadvanc.c (LOAD_ADVANCE_FAST_CHECK): Return false for
+ MM and GX fonts.
+ Update callers.
+
+2016-02-03 Werner Lemberg <wl@gnu.org>
+
+ [cff] Fix handling of face_index == -1 for pure CFF.
+
+ * src/cff/cffobjs.c (cff_face_init): Return correct number of faces.
+
+2016-01-30 Werner Lemberg <wl@gnu.org>
+
+ [autofit] Minor tracing improvement.
+
+ * src/autofit/afhints.c (af_glyph_hints_dump_points): Insert newline
+ at the start of a new contour.
+
+2016-01-28 Nikolaus Waxweiler <madigens@gmail.com>
+
+ Remove unpatented hinter (3/3).
+
+ * include/freetype/config/ftoption.h
+ (TT_CONFIG_OPTION_UNPATENTED_HINTING): Remove.
+
+ * include/freetype/internal/ftobjs.h (FT_Face_InternalRec): Remove
+ `ignore_unpatented_hinter' field.
+ Update users.
+ (FT_DEBUG_HOOK_UNPATENTED_HINTING): Remove.
+ Update users.
+
+ * include/freetype/internal/tttypes.h (TT_FaceRec): Remove
+ `unpatented_hinting' field.
+ Update users.
+
+ * src/base/ftpatent.c (_tt_check_patents_in_range,
+ _tt_check_patents_in_table, _tt_face_check_patents): Remove.
+ (FT_Face_CheckTrueTypePatents, FT_Face_SetUnpatentedHinting):
+ Replace code with dummies.
+
+ * src/truetype/ttobjs.c (tt_face_init): Remove now defunct code.
+ * src/truetype/ttobjs.h (TT_GraphicsState): Remove `both_x_axis'
+ field.
+
+2016-01-28 Nikolaus Waxweiler <madigens@gmail.com>
+
+ Remove unpatented hinter (2/3).
+
+ * devel/ftoption.h (TT_CONFIG_OPTION_UNPATENTED_HINTING): Remove.
+
+2016-01-28 Nikolaus Waxweiler <madigens@gmail.com>
+
+ Remove unpatented hinter (1/3).
+
+ * src/truetype/ttinterp.c [TT_CONFIG_OPTION_UNPATENTED_HINTING]:
+ Remove all code related to this macro.
+
+2016-01-28 Werner Lemberg <wl@gnu.org>
+
+ [autofit] Add blue-zone support for Kannada script.
+
+ This essentially moves the Kannada script from the `Indic' hinter to
+ the `Latin' hinter.
+
+ * src/autofit/afblue.dat: Add blue zone data for Kannada.
+
+ * src/autofit/afblue.c, src/autofit/afblue.h: Regenerated.
+
+ * src/autofit/afscript.h: Add Kannada standard characters and move
+ data out of AF_CONFIG_OPTION_INDIC block.
+
+ * src/autofit/afranges.c: Move Kannada data out of
+ AF_CONFIG_OPTION_INDIC block.
+
+ * src/autofit/afstyles.h: Update Kannada data; in particular, use
+ AF_WRITING_SYSTEM_LATIN.
+
+2016-01-22 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ Better access to 64-bit integers for C99 compilers.
+
+ * include/freetype/config/ftconfig.h [FT_LONG64]: Use
+ __STDC_VERSION__ to define 64-bit integers.
+ * builds/unix/ftconfig.in [FT_LONG64]: Ditto.
+ * builds/vms/ftconfig.h [FT_LONG64]: Ditto.
+
+2016-01-21 Werner Lemberg <wl@gnu.org>
+
+ [gxvalid] Remove commented out code.
+
+ * src/gxvalid/gxvcommn.c (gxv_EntryTable_validate): Do it.
+
+2016-01-20 Werner Lemberg <wl@gnu.org>
+
+ [autofit] Complete last autofit commit.
+
+ Problem reported by Kostya Serebryany <kcc@google.com>.
+
+ * src/autofit/afshaper.c (af_shaper_get_coverage)
+ [!FT_CONFIG_OPTION_USE_HARFBUZZ]: Update signature.
+
+2016-01-20 Werner Lemberg <wl@gnu.org>
+
+ Still handle `__FTERRORS_H__'.
+
+ We need this for backward compatibility.
+
+ Problem reported by John Emmas <johne53@tiscali.co.uk>.
+
+ * include/freetype/fterrors.h: Fix inclusion guard so that
+ undefining either `FTERRORS_H_' or `__FTERRORS_H__' works as
+ expected.
+
+2016-01-19 Werner Lemberg <wl@gnu.org>
+
+ [autofit] Fix handling of default script.
+
+ Patch taken from ttfautohint, commit
+ 071ae2c00e0d67f9d19418f4fade1c23d27dc185.
+
+ There were two bugs.
+
+ - We now use non-standard script tags like `khms' for special
+ purposes. However, HarfBuzz maps such tags to `DFLT', and
+ without this commit the associated lookups were incorrectly
+ assigned to the non-standard tags.
+
+ - Let's assume we have a Bengali font, and the font's `DFLT'
+ script tag handles the necessary lookups for Bengali, too.
+ Without this commit, the `DFLT' lookups were assigned to
+ ttfautohint's default script (usually `latn') before the
+ standard lookups for Bengali were handled.
+
+ We now have the following order while searching for covered
+ glyph indices.
+
+ special features of scripts (e.g. `sups' for Cyrillic)
+ Unicode mappings of scripts
+ remaining features of scripts (especially important for Indic
+ scripts)
+ default features of default script
+
+ * src/autofit/afshaper.c, src/autofit/afshaper.h
+ (af_shaper_get_coverage): Add boolean parameter to indicate default
+ script.
+ Update all callers.
+
+ * src/autofit/afglobal.c (af_face_globals_compute_style_coverage):
+ Fix search order for coverages.
+
+2016-01-19 Werner Lemberg <wl@gnu.org>
+
+ Various minor clang fixes.
+
+ * src/autofit/afcjk.c (af_cjk_metrics_init_widths),
+ src/autofit/aflatin.c (af_latin_metrics_init_widths): Initialize
+ `ch'.
+
+ * src/base/ftcalc.c (FT_MulFix) [FT_LONG64]: Add cast.
+
+ * src/base/ftdbgmem.c (ft_mem_table_destroy): Add cast.
+
+ * src/base/fthash.c (hash_num_lookup): Add cast.
+
+ * src/base/fttrigon.c (ft_trig_downscale) [FT_LONG64]: Fix cast.
+
+ * src/gxvalid/gxvcommn.c (gxv_EntryTable_validate): Comment out
+ redundant code.
+
+ * src/type1/t1driver.c (t1_get_ps_font_value) <PS_DICT_SUBR>: Add
+ cast.
+
+ * src/type1/t1load.c (parse_subrs): Fix type of `count'.
+
+2016-01-19 Derek B. Noonburg <derekn@glyphandcog.com>
+
+ [truetype] Add another tricky font.
+
+ * src/truetype/ttobjs.c (TRICK_SFNT_IDS_NUM_FACES): Increase.
+ (sfnt_id): Add variant of `DFKaiShu'.
+
+2016-01-14 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ [base] Empower `FT_Library_SetLcdFilterWeights'.
+
+ * src/base/ftlcdfil.c (FT_Library_SetLcdFilterWeights): Enable filter
+ in addition to setting weights.
+ (FT_Library_SetLcdFilter): Clean out FT_FORCE_LIGHT_LCD_FILTER and
+ FT_FORCE_LEGACY_LCD_FILTER.
+ * include/freetype/ftlcdfil.h: Documentation update.
+
+2016-01-12 Werner Lemberg <wl@gnu.org>
+
+ Don't use macro names that start with `_[A-Z]' [3/3].
+
+ Such macro names are reserved for both C and C++.
+
+ * src/cache/ftccache.h: s/_FTC_FACE_ID_HASH/FTC_FACE_ID_HASH/.
+ Update all callers.
+ (FTC_CACHE_LOOKUP_CMP): Replace `_XXX' with `XXX_'.
+ * src/cache/ftcmru.c (FTC_MRULIST_LOOKUP_CMP): Ditto.
+
+2016-01-12 Werner Lemberg <wl@gnu.org>
+
+ Don't use macro names that start with `_[A-Z]' [2/3].
+
+ Such macro names are reserved for both C and C++.
+
+ * include/freetype/ftimage.h, src/raster/ftraster.c,
+ src/smooth/ftgrays.c, src/smooth/ftgrays.h:
+ s/_STANDALONE_/STANDALONE_/.
+
+2016-01-12 Werner Lemberg <wl@gnu.org>
+
+ Don't use macro names that start with `_[A-Z]' [1/3].
+
+ Such macro names are reserved for both C and C++.
+
+ * src/bdf/bdflib.c: Replace macros of the form `_BDF_XXX' with
+ `BDF_XXX_'.
+
+2016-01-12 Werner Lemberg <wl@gnu.org>
+
+ Don't use macro names that contain `__' [2/2].
+
+ Such macro names are reserved for both C and C++.
+
+ * src/cache/*: s/__/_/.
+
+2016-01-12 Werner Lemberg <wl@gnu.org>
+
+ Don't use macro names that contain `__' [1/2].
+
+ Such macro names are reserved for both C and C++.
+
+ * */*: Replace macros of the form `__XXX_H__' with `XXX_H_'.
+
+2016-01-10 Jered Gray <jegray@google.com>
+
+ [cff] Fix usage of `|' operator.
+
+ * src/cff/cf2intrp.c (cf2_interpT2CharString) [cf2_cmdEXTENDEDNMBR,
+ default]: `|' is not guaranteed to be processed from left to right
+ by the compiler. However, the code repeatedly calls
+ `cf2_buf_readByte' to get the arguments to `|' ... Fix this.
+
+2015-12-25 Werner Lemberg <wl@gnu.org>
+
+ [autofit] Make top-to-bottom hinting work in latin auto-hinter.
+
+ This improves rendering of scripts like Bengali or Devanagari.
+
+ * src/autofit/afhints.c (af_axis_hints_new_edge): Add parameter to
+ pass top-to-bottom hinting flag. This makes the function sort edges
+ in descending vertical position.
+
+ * src/autofit/afhints.c: Updated.
+
+ * src/autofit/aflatin.c (af_latin_hints_compute_edges,
+ af_latin_hint_edges): Use `top_to_bottom_hinting' flag.
+
+ * src/autofit/afcjk.c (af_cjk_hints_compute_edges),
+ src/autofit/aflatin2.c (af_latin2_hints_compute_edges): Updated.
+
+2015-12-24 Werner Lemberg <wl@gnu.org>
+
+ [autofit] Add hinting direction to `AF_ScriptClassRec'.
+
+ Still unused.
+
+ * src/autofit/afglobal.c (SCRIPT): Handle hinting direction.
+
+ * src/autofit/aftypes.h (AF_ScriptClassRec): Add
+ `top_to_bottom_hinting' field.
+ (AF_HINTING_BOTTOM_TO_TOP, AF_HINTING_TOP_TO_BOTTOM): New macros.
+ (AF_DEFINE_SCRIPT_CLASS): Updated.
+
+2015-12-23 Werner Lemberg <wl@gnu.org>
+
+ [autofit] Start implementing hinting direction (up/down, down/up).
+
+ Right now, it does nothing.
+
+ * src/autofit/afscript.h: Add another parameter to `SCRIPT',
+ specifying hinting direction.
+
+ * src/autofit/afglobal.c, src/autofit/afglobal.h,
+ src/autofit/afpic.c, src/autofit/afranges.h, src/autofit/afshaper.c,
+ src/autofit/aftypes.h: Extend `SCRIPT' definitions.
+
+2015-12-22 Werner Lemberg <wl@gnu.org>
+
+ * src/type1/t1load.c (parse_subrs): Fix memory leak (#46744).
+
+2015-12-22 Werner Lemberg <wl@gnu.org>
+
+ [base] Make hash interface symmetric.
+
+ Use `num' and `str' infixes everywhere.
+
+ * src/base/fthash.c (ft_hash_init): Renamed to...
+ (hash_init): ... This.
+ (ft_hash_str_init, ft_hash_num_init): New functions.
+ (ft_hash_free): Renamed to...
+ (ft_hash_str_free): ... This.
+
+ * include/freetype/internal/fthash.h: Updated.
+
+ * src/bdf/bdflib.c, src/type1/t1load.c, src/type1/t1objs.c: Updated.
+
+2015-12-21 Werner Lemberg <wl@gnu.org>
+
+ [type1] Avoid shift of negative numbers (#46732).
+
+ * src/type1/t1load.c (parse_subrs): Do it.
+
+2015-12-20 Werner Lemberg <wl@gnu.org>
+
+ [type1, psaux] Handle large values of num_subrs correctly (#46692).
+
+ We now use a hash to map from subr indices to array elements holding
+ the subroutines, if necessary.
+
+ * include/freetype/internal/t1types.h: Include FT_INTERNAL_HASH_H.
+ (T1_FontRec): Add `subrs_hash' field.
+
+ * include/freetype/internal/psaux.h: Include FT_INTERNAL_HASH_H.
+ (T1_DecoderRec): Add `subrs_hash' field.
+
+ * src/type1/t1load.h (T1_LoaderRec): Add `subrs_hash' field.
+
+ * src/type1/t1driver.c: Include FT_INTERNAL_HASH_H.
+ (t1_ps_get_font_value) [PS_DICT_SUBR]: Look up hash if necessary.
+
+ * src/type1/t1load.c: Include FT_INTERNAL_HASH_H.
+ (parse_subrs): Use hash for subr indices that exceed the allocated
+ number of subr slots.
+ (t1_init_loader): Remove unnecessary code.
+ (t1_done_loader, T1_Open_Face): Updated.
+
+ * src/type1/t1gload.c (T1_Compute_Max_Advance, T1_Get_Advances,
+ T1_Load_Glyph): Updated.
+
+ * src/type1/t1objs.c (T1_Face_Done): Updated.
+
+ * src/psaux/t1decode.c: Include FT_INTERNAL_HASH_H.
+ (t1_decoder_parse_charstrings) [op_callsubr]: Look up hash if
+ necessary.
+
+ * src/cid/cidgload.c (cid_load_glyph): Updated.
+
+2015-12-20 Werner Lemberg <wl@gnu.org>
+
+ [base] Thinko: Remove free function pointer.
+
+ We don't copy keys or values while hashing.
+
+ * include/freetype/internal/fthash.h (FT_Hash_FreeFunc): Removed.
+ (FT_HashRec): Remove `free' field.
+
+ * src/base/fthash.c (hash_str_free): Removed.
+ (ft_hash_init, ft_hash_free): Updated.
+
+2015-12-20 Werner Lemberg <wl@gnu.org>
+
+ [base, bdf] Don't expose `FT_Hashnode' in hash functions.
+
+ * src/base/fthash.c (hash_lookup, ft_hash_str_lookup,
+ ft_hash_num_lookup): Return pointer to `size_t' instead of
+ `FT_Hashnode'.
+
+ * include/freetype/internal/fthash.h: Updated.
+
+ * src/bdf/bdflib.c (bdf_get_property, _bdf_add_property,
+ bdf_get_font_property): Updated.
+
+2015-12-20 Werner Lemberg <wl@gnu.org>
+
+ [base, bdf] Add number hashing.
+
+ * src/base/fthash.c (hash_num_lookup, hash_num_compare): New
+ functions.
+ (ft_hash_init): Add argument to select between number and string
+ hashing.
+ (ft_hash_num_insert, ft_hash_num_lookup): New functions.
+
+ * include/freetype/internal/fthash.h: Updated.
+
+ * src/bdf/bdflib.c (_bdf_parse_start): Updated.
+
+2015-12-20 Werner Lemberg <wl@gnu.org>
+
+ [base] Introduce hash lookup, compare, and free function pointers.
+
+ * include/freetype/internal/fthash.c (FT_Hash_LookupFunc,
+ FT_Hash_CompareFunc, FT_Hash_FreeFunc): New typedefs.
+ (FT_HashRec): Add `lookup', `compare', and `free' fields.
+
+ * src/base/fthash.c (hash_str_lookup, hash_str_compare,
+ hash_str_free): New functions.
+ (ft_hash_init): Set function pointers.
+ (hash_bucket, ft_hash_free): Use them.
+
+2015-12-20 Werner Lemberg <wl@gnu.org>
+
+ [base, bdf] Use a union as a hash key.
+
+ We want to support both an integer and a string key later on.
+
+ * include/freetype/internal/fthash.h (FT_Hashkey): New union.
+ (FT_HashnodeRec): Updated.
+ (ft_hash_insert, ft_hash_lookup): Renamed to ...
+ (ft_hash_str_insert, ft_hash_str_lookup): ... this.
+
+ * src/base/fthash.c (hash_bucket): Updated.
+ (ft_hash_insert, ft_hash_lookup): Renamed to ...
+ (hash_insert, hash_lookup): ... this.
+ (ft_hash_str_insert, ft_hash_str_lookup): New wrapper functions.
+
+ * src/bdf/bdflib.c: Updated.
+
+2015-12-19 Werner Lemberg <wl@gnu.org>
+
+ [bdf] Use new hash functions.
+
+ * src/bdf/bdf.h: Include FT_INTERNAL_HASH_H.
+ (hashnode, hashtable): Removed.
+ (bdf_font_t): Use `FT_HashRec' type for `proptbl'.
+
+ * src/bdf/bdflib.c: Remove all hash functions.
+ Update code for new hash structure and function names.
+
+2015-12-19 Werner Lemberg <wl@gnu.org>
+
+ [bdf, base] Lift hash functions from bdf driver to base module.
+
+ * src/base/fthash.c, include/freetype/internal/fthash.h: New files,
+ containing (massaged) code from `bdflib.c' and `bdf.h'.
+
+ * include/freetype/internal/internal.h (FT_INTERNAL_HASH_H): New
+ macro.
+
+ * src/base/ftbase.c: Include `fthash.c'.
+
+ * src/base/Jamfile (_sources): Add `fthash'.
+
+ * src/base/rules.mk (BASE_SRC): Add `fthash.c'.
+
+ * docs/LICENSE.TXT: Updated.
+
+2015-12-15 Werner Lemberg <wl@gnu.org>
+
+ [autofit] Add blue-zone support for Bengali script.
+
+ This essentially moves the Bengali script from the `Indic' hinter to
+ the `Latin' hinter.
+
+ * src/autofit/afblue.dat: Add blue zone data for Bengali.
+
+ * src/autofit/afblue.c, src/autofit/afblue.h: Regenerated.
+
+ * src/autofit/afscript.h: Add Bengali standard characters and move
+ data out of AF_CONFIG_OPTION_INDIC block.
+
+ * src/autofit/afranges.c: Move Bengali data out of
+ AF_CONFIG_OPTION_INDIC block.
+
+ * src/autofit/afstyles.h: Update Bengali data; in particular, use
+ AF_WRITING_SYSTEM_LATIN.
+
+2015-12-14 Ben Wagner <bungeman@gmail.com>
+
+ [bdf] Remove dead code (#46625).
+
+ The BDF specification only allows decimal numbers, no octal or
+ hexadecimal decoding is needed.
+
+ * src/bdf/bdflib.c (_bdf_atoul, _bdf_atol, _bdf_atous,
+ _bdf_atos): Remove unused code and parameters.
+ Update all callers.
+ (odigits): Remove.
+
+2015-12-14 Werner Lemberg <wl@gnu.org>
+
+ [base] Fix calls to `FT_Stream_Seek'.
+
+ * src/base/ftobjs.c (Mac_Read_sfnt_Resource, FT_Open_Face): Set
+ `error'.
+
+2015-12-14 Ben Wagner <bungeman@gmail.com>
+
+ [base] Check error when seeking to data supplied offset (#46635).
+
+ * src/base/ftobjs.c (open_face_PS_from_sfnt_stream):
+ `ft_lookup_PS_in_sfnt_stream' returns offset and length from
+ user supplied data. Use of this these values must be checked.
+
+2015-12-13 Werner Lemberg <wl@gnu.org>
+
+ [autofit] Add support for Myanmar script.
+
+ * src/autofit/afblue.dat: Add blue zone data for Myanmar.
+
+ * src/autofit/afblue.c, src/autofit/afblue.h: Regenerated.
+
+ * src/autofit/afscript.h: Add Myanmar standard characters.
+
+ * src/autofit/afranges.c: Add Myanmar data.
+
+ * src/autofit/afstyles.h: Add Myanmar data.
+
+2015-12-12 Werner Lemberg <wl@gnu.org>
+
+ * src/autofit/aflatin.c (af_latin_metrics_init_blues): Minor.
+
+2015-12-12 Werner Lemberg <wl@gnu.org>
+
+ * src/autofit/afscript.h: Avoid potential crash.
+
+2015-12-10 Werner Lemberg <wl@gnu.org>
+
+ [autofit] Restore OpenType feature check.
+
+ This was removed while rewriting the HarfBuzz interface.
+
+ * src/autofit/afglobal.h (AF_FaceGlobalsRec): Add `hb_buf' field to
+ hold internal HarfBuzz buffer, needed for feature comparison.
+
+ * src/autofit/afglobal.c (af_face_globals_new,
+ af_face_globals_free): Initialize and destroy `hb_buf'.
+
+ * src/autofit/afshaper.c (af_shaper_get_cluster): Compare character
+ (cluster) with and without applied feature.
+
+ * src/autofit/aflatin.c (af_latin_metrics_init_blues): Fix tracing
+ message.
+
+2015-12-10 Werner Lemberg <wl@gnu.org>
+
+ [autofit] Remove redundant code.
+
+ * src/autofit/aflatin.c (af_latin_metrics_init_widths): Do it.
+
+2015-12-09 Werner Lemberg <wl@gnu.org>
+
+ [autofit] Thinko.
+
+ * src/autofit/aflatin.c (af_latin_metrics_init_blues): Don't count
+ empty blue zones (bug introduced 2015-12-06).
+
+2015-12-09 Werner Lemberg <wl@gnu.org>
+
+ [autofit] Introduce subscript top blue zones.
+
+ This feature is mainly for Khmer: The idea is to avoid a clash
+ between the top of subscript glyphs and the bottom of normal
+ baseline glyphs.
+
+ This only works for character clusters mapped to multiple glyphs.
+
+ * src/autofit/afblue.dat: Add subscript top blue zone for Khmer.
+
+ * src/autofit/afblue.hin (AF_BLUE_PROPERTY_LATIN_SUB_TOP): New
+ macro.
+
+ * src/autofit/afblue.c, src/autofit/afblue.h: Regenerated.
+
+ * src/autofit/aflatin.h (AF_LATIN_IS_SUB_TOP_BLUE,
+ AF_LATIN_BLUE_SUB_TOP): New macros.
+
+ * src/autofit/aflatin.c (af_latin_metrics_init_blues): Handle new
+ blue zone property.
+ Update tracing messages.
+ (af_latin_metrics_scale_dim): Handle new blue zone property.
+ (af_latin_hints_compute_blue_edges): Updated.
+
+2015-12-09 Werner Lemberg <wl@gnu.org>
+
+ [autofit] Fix tracing message.
+
+ * src/autofit/aflatin.c (af_latin_metrics_scale_dim): Display
+ inactive blue zones also.
+
+2015-12-06 Werner Lemberg <wl@gnu.org>
+
+ * src/autofit/afblue.dat: Add more Khmer clusters.
+
+ Some fonts have incorrect ligatures; we need more samples to get a
+ good mean value.
+
+ * src/autofit/afblue.c, src/autofit/afblue.h: Regenerated.
+
+2015-12-06 Werner Lemberg <wl@gnu.org>
+
+ [autofit] Typos.
+
+ * src/autofit/afshaper.c (af_shaper_buf_create, af_shaper_get_elem)
+ [!FT_CONFIG_OPTION_USE_HARFBUZZ]: Make it compile.
+
+2015-12-06 Werner Lemberg <wl@gnu.org>
+
+ [autofit] Add support for Khmer script.
+
+ We split Khmer into two auto-hinter scripts: `Khmer' (`khmr') and
+ `Khmer symbols' (`khms', U+19E0-U+19FF).
+
+ * src/autofit/afblue.dat: Add blue zone data for Khmer.
+
+ * src/autofit/afblue.c, src/autofit/afblue.h: Regenerated.
+
+ * src/autofit/afscript.h: Add Khmer standard characters.
+
+ * src/autofit/afranges.c: Add Khmer data.
+
+ * src/autofit/afstyles.h: Add Khmer data.
+
+2015-12-06 Werner Lemberg <wl@gnu.org>
+
+ [autofit] Rewrite HarfBuzz interface to support character clusters.
+
+ Scripts like Khmer have blue zones that can't be directly
+ represented by Unicode characters. Instead, it is necessary to let
+ HarfBuzz convert character clusters into proper glyph representation
+ forms, then deriving the blue zone information from the resulting
+ glyphs.
+
+ * src/autofit/hbshim.c, src/autofit/hbshim.h: Replaced by...
+ * src/autofit/afshaper.c, src/autofit/afshaper.h: ... these two new
+ files, providing a new API to access HarfBuzz.
+
+ The new API manages a HarfBuzz buffer with `af_shaper_buf_create'
+ and `af_shaper_buf_destroy'. The buffer receives a UTF8 encoded
+ string with function `af_shaper_get_cluster', and the resulting
+ glyph data (indices, advance widths, vertical offsets) can be
+ iteratively accessed with function `af_shaper_get_elem'.
+
+ * src/autofit/afcjk.c (af_cjk_metrics_init_widths,
+ af_cjk_metrics_init_blues, af_cjk_metrics_check_digits): Updated.
+
+ * src/autofit/aflatin.c (af_latin_metrics_init_widths,
+ af_latin_metrics_init_blues, af_latin_metrics_check_digits):
+ Updated.
+
+ * include/freetype/internal/fttrace.h: s/afharfbuzz/afshaper/.
+
+ * src/autofit/afglobal.c: s/hbshim.h/afshaper.h/.
+ (af_face_globals_compute_style_coverage): Updated.
+
+ * src/autofit/afglobal.h: s/hbshim.h/afshaper.h/.
+
+ * src/autofit/autofit.c: s/hbshim.c/afshaper.c/.
+
+ * src/autofit/Jamfile, src/autofit/rules.mk (AUTOF_DRV_SRC):
+ Updated.
+
+2015-12-06 Werner Lemberg <wl@gnu.org>
+
+ [autofit] Prepare forthcoming changes.
+
+ This makes it easier to control the commits.
+
+ * src/autofit/aflatin.c (af_latin_metrics_init_blues): Add dummy
+ loop. No functional change.
+
+2015-12-06 Werner Lemberg <wl@gnu.org>
+
+ [autofit] Use string of standard characters.
+
+ This is more flexible; additionally, it would allow character
+ clusters.
+
+ * src/autofit/aftypes.h (SCRIPT, AF_DEFINE_SCRIPT_CLASS): Updated.
+ (AF_ScriptClassRec): Replace `standard_char[123]' with
+ `standard_charstring'.
+
+ * src/autofit/afscript.h: Replace last three character arguments
+ of the `SCRIPT' calls with a string parameter, holding the standard
+ characters (in UTF-8 encoding) separated with spaces.
+
+ * src/autofit/afglobal.c, src/autofit/afglobal.h,
+ src/autofit/afpic.c, src/autofit/afranges.c, src/autofit/hbshim.c
+ (SCRIPT): Updated.
+
+ * src/autofit/afcjk.c (af_cjk_metrics_init_widths),
+ src/autofit/aflatin.c (af_latin_metrics_init_widths): Updated.
+
+2015-12-05 Werner Lemberg <wl@gnu.org>
+
+ * src/autofit/afblue.dat: Separate blue zone characters with spaces.
+
+ Another preparation for character cluster support.
+
+ * src/autofit/afblue.c, src/autofit.afblue.h: Regenerated.
+
+2015-12-05 Werner Lemberg <wl@gnu.org>
+
+ * src/tools/afblue.pl (convert_ascii_chars): Don't ignore spaces.
+
+ Instead, reduce multiple spaces to a single one. We need this later
+ for supporting character clusters in `afblue.dat'.
+
+2015-12-05 Werner Lemberg <wl@gnu.org>
+
+ * src/autofit/afblue.hin (GET_UTF8_CHAR): Use `do...while(0)'.
+
+ * src/autofit/afblue.h: Regenerated.
+
+2015-12-05 Werner Lemberg <wl@gnu.org>
+
+ * src/autofit/afwarp.c: s/INT_MIN/FT_INT_MIN/.
+
+2015-12-03 Werner Lemberg <wl@gnu.org>
+
+ * builds/unix/install.mk (install): Remove stale `ft2build.h'.
+
+2015-12-01 Werner Lemberg <wl@gnu.org>
+
+ [type1] Avoid dangling pointer (#46572).
+
+ * src/type1/t1afm.c (T1_Read_Metrics): Properly reset
+ `face->afm_data'.
+
+2015-11-28 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ * include/freetype/ftlcdfil.h: Documentation tweak.
+
+2015-11-28 Werner Lemberg <wl@gnu.org>
+
+ * Version 2.6.2 released.
+ =========================
+
+
+ Tag sources with `VER-2-6-2'.
+
+ * docs/VERSION.DLL: Update documentation and bump version number to
+ 2.6.2.
+
+ * README, Jamfile (RefDoc), builds/windows/vc2005/freetype.vcproj,
+ builds/windows/vc2005/index.html,
+ builds/windows/vc2008/freetype.vcproj,
+ builds/windows/vc2008/index.html,
+ builds/windows/vc2010/freetype.vcxproj,
+ builds/windows/vc2010/index.html,
+ builds/windows/visualc/freetype.dsp,
+ builds/windows/visualc/freetype.vcproj,
+ builds/windows/visualc/index.html,
+ builds/windows/visualce/freetype.dsp,
+ builds/windows/visualce/freetype.vcproj,
+ builds/windows/visualce/index.html,
+ builds/wince/vc2005-ce/freetype.vcproj,
+ builds/wince/vc2005-ce/index.html,
+ builds/wince/vc2008-ce/freetype.vcproj,
+ builds/wince/vc2008-ce/index.html: s/2.6.1/2.6.2/, s/261/262/.
+
+ * include/freetype/freetype.h (FREETYPE_PATCH): Set to 2.
+
+ * builds/unix/configure.raw (version_info): Set to 18:2:12.
+ * CMakeLists.txt (VERSION_PATCH): Set to 2.
+
+ * docs/CHANGES: Updated.
+
+2015-11-28 Werner Lemberg <wl@gnu.org>
+
+ Fix C++ compilation.
+
+ * src/autofit/afloader.c: Include FT_INTERNAL_CALC_H.
+
+ * src/truetype/ttgload.c (load_truetype_glyph): Pacify compiler.
+
+2015-11-28 Nikolaus Waxweiler <madigens@gmail.com>
+
+ Change default LCD filter to be normalized and color-balanced.
+
+ * src/base/ftlcdfil.c (FT_Library_SetLcdFilter): Update
+ `default_filter'.
+
+2015-11-28 Werner Lemberg <wl@gnu.org>
+
+ [docmaker] Allow references to section names.
+
+ In the reference, we show the section's title enclosed in single
+ quotes.
+
+ * src/tools/docmaker/formatter.py (Formatter::__init__): Collect
+ section names as identifiers.
+
+ * src/tools/docmaker/tohtml.py (section_title_header): Split into...
+ (section_title_header1, section_title_header2): ... these two
+ strings.
+ (HtmlFormatter::make_block_url, make_html_word, html_source_quote):
+ Handle sections.
+ (HtmlFormatter::section_enter): Updated to add `id' HTML attribute.
+
+2015-11-27 Tamas Kenez <tamas.kenez@adasworks.com>
+
+ [cmake] Add script to test the config module.
+
+ * builds/cmake/testbuild.sh: New file.
+
+2015-11-27 Tamas Kenez <tamas.kenez@adasworks.com>
+
+ * CMakeLists.txt: Create `freetype-config.cmake' config module.
+
+2015-11-27 Tamas Kenez <tamas.kenez@adasworks.com>
+
+ * CMakeLists.txt: Set CMAKE_DEBUG_POSTFIX to `d'.
+
+2015-11-27 Tamas Kenez <tamas.kenez@adasworks.com>
+
+ [cmake] Add better control of library dependencies.
+
+ * CMakeLists.txt: Add `WITH_*' variables to force/auto/omit
+ ZLIB/BZip2/PNG/HarfBuzz.
+
+2015-11-27 Tamas Kenez <tamas.kenez@adasworks.com>
+
+ [cmake] Make `FindHarfBuzz' observe the REQUIRED option.
+
+ * builds/cmake/FindHarfBuzz.cmake: Implement it.
+
+2015-11-27 Werner Lemberg <wl@gnu.org>
+
+ [cmake] Collect files specific to cmake in `builds/cmake'.
+
+ * builds/FindHarfBuzz.cmake: Move to ...
+ * builds/cmake/FindHarfBuzz.cmake: ... this place.
+
+ * CMakeLists.txt (CMAKE_MODULE_PATH): Updated.
+
+2015-11-27 Alexander Bock <alexander.j.bock@nasa.gov>
+
+ CMakeLists.txt: Honour new command line flag `FREETYPE_NO_DIST'.
+
+2015-11-26 Werner Lemberg <wl@gnu.org>
+
+ [docmaker] Allow `foo[bar]' as identifier.
+
+ We need this to handle equally named properties in different
+ modules.
+
+ * src/tools/docmaker/content.py (re_identifier),
+ src/tools/docmaker/sources.py (re_crossref): Allow `foo[bar]'.
+
+ * src/tools/docmaker/tohtml.py (HtmlFormatter::make_html_word,
+ HtmlFormatter::index_exit, HtmlFormatter::section_enter,
+ HtmlFormatter::block_enter): Handle `foo[bar]'.
+
+2015-11-25 Werner Lemberg <wl@gnu.org>
+
+ * src/bdf/bdflib.c (bdf_load_font): Fix small memory leak (#46480).
+
+ (_bdf_parse_glyphs): Always reset `p->glyph_name' after moving its
+ contents.
+
+2015-11-21 Werner Lemberg <wl@gnu.org>
+
+ * include/freetype/internal/ftcalc.h: Don't use `register' keyword.
+
+ This fixes compiler warnings.
+
+ Reported by Behdad.
+
+2015-11-20 Werner Lemberg <wl@gnu.org>
+
+ Add `FT_LCD_FILTER_LEGACY1' enum value.
+
+ This does the same as `FT_LCD_FILTER_LEGACY'.
+
+ See
+
+ https://bugs.freedesktop.org/show_bug.cgi?id=92981
+
+ for the reasoning.
+
+ * include/freetype/ftlcdfil.h (FT_LcdFilter): New value
+ `FT_LCD_FILTER_LEGACY1'.
+
+ * src/base/ftlcdfil.c (FT_Library_SetLcdFilter): Use it.
+
+2015-11-15 Werner Lemberg <wl@gnu.org>
+
+ * src/autofit/afhints.c (af_get_segment_index): Fix it.
+
+ The old code was too simple, returning invalid values in most cases
+ where a segment crosses the contour start.
+
+2015-11-15 Werner Lemberg <wl@gnu.org>
+
+ * src/bdf/bdflib.c (bdf_load_font): Fix small memory leak (#46439).
+
+2015-11-11 Werner Lemberg <wl@gnu.org>
+
+ [cff, autofit] Switch off stem darkening by default.
+
+ * src/autofit/afmodule.c (af_autofitter_init), src/cff/cffobjs.c
+ (cff_driver_init): Do it.
+
+2015-11-10 Jan Alexander Steffens (heftig) <jan.steffens@gmail.com>
+
+ Allow native CFF hinter in FT_RENDER_MODE_LIGHT.
+
+ Both the native CFF hinter and the auto-hinter now have a very
+ similar rendering style.
+
+ * include/freetype/freetype.h: Mention that FT_LOAD_TARGET_LIGHT no
+ longer implies FT_LOAD_FORCE_AUTOHINT.
+
+ * include/freetype/ftmodapi.h (FT_MODULE_DRIVER_HINTS_LIGHTLY): New
+ macro.
+
+ * include/freetype/internal/ftobjs.h (FT_DRIVER_HINTS_LIGHTLY): New
+ macro.
+
+ * src/cff/cffdrivr.c (cff_driver_class): Use it.
+
+ * src/base/ftobjs.c (FT_Load_Glyph): Update auto-hinter selection
+ logic.
+
+2015-11-09 Werner Lemberg <wl@gnu.org>
+
+ * src/cid/cidload.c (cid_face_open): Fix GDBytes guard (#46408).
+
+2015-11-09 Werner Lemberg <wl@gnu.org>
+
+ [truetype] Remove integer to pointer conversion compiler warning.
+
+ Problem reported by Alexei.
+
+ * src/truetype/ttgload.c (load_truetype_glyph): Use a solution found
+ in the glib library to fix the issue.
+
+2015-11-08 Behdad Esfahbod <behdad@behdad.org>
+
+ [sfnt] Accept version 3 of `EBLC' and `CBLC' tables also.
+
+ * src/sfnt/ttsbit.c (tt_face_load_sbit): Implement it.
+
+2015-11-08 Philipp Knechtges <philipp-dev@knechtges.com>
+
+ [autofit] Don't distort (latin) glyphs too much (#46195).
+
+ * src/autofit/aflatin.h (AF_LatinBlueRec): Add `ascender' and
+ `descender' fields.
+
+ * src/autofit/aflatin.c (af_latin_metrics_init_blues): Collect
+ ascender and descender data for blue zones.
+ (af_latin_metrics_scale_dim): Reject vertical scaling values that
+ change the result by more than two pixels.
+
+2015-11-05 Werner Lemberg <wl@gnu.org>
+
+ [sfnt] Ignore embedded bitmaps with zero size (#46379).
+
+ * src/sfnt/ttsbit.c (tt_sbit_decoder_load_bit_aligned): Implement
+ it.
+
+2015-11-04 Werner Lemberg <wl@gnu.org>
+
+ [truetype] Catch infinite recursion in subglyphs (#46372).
+
+ * include/freetype/internal/tttypes.h (TT_LoaderRec): New field
+ `composites'.
+
+ * src/truetype/ttgload.c: Include FT_LIST_H.
+ (load_truetype_glyph): Add composite subglyph index to a list;
+ abort if index is already in list.
+ (tt_loader_init): Updated.
+ (tt_loader_done): New function.
+ (TT_Load_Glyph): Call `tt_loader_done'.
+
+2015-11-04 Werner Lemberg <wl@gnu.org>
+
+ [truetype] Better tracing of composite glyphs.
+
+ * src/truetype/ttgload.c (TT_Load_Composite_Glyph,
+ load_truetype_glyph): Implement it.
+
+2015-11-03 Werner Lemberg <wl@gnu.org>
+
+ [sfnt] Protect against zero-size bitmaps (#46345).
+
+ * src/sfnt/ttsbit.c (tt_sbit_decoder_load_bitmap): Check
+ `glyph_size'.
+
+2015-11-02 Nikolaus Waxweiler <madigens@gmail.com>
+
+ * src/autofit/afloader.c (af_loader_load_g): Implement emboldening.
+
+2015-11-02 Nikolaus Waxweiler <madigens@gmail.com>
+
+ [autofit] Implement darkening computation function.
+
+ This is a crude adaption of the original `cf2_computeDarkening'
+ function.
+
+ * src/autofit/afloader.c (af_intToFixed, af_fixedToInt,
+ af_floatToFixed): New macros, taken from `cf2fixed.h'.
+ (af_loader_compute_darkening): New function.
+ * src/autofit/afloader.h: Updated.
+
+2015-11-02 Nikolaus Waxweiler <madigens@gmail.com>
+
+ [autofit] Add functions to get standard widths for writing systems.
+
+ We need the computed standard horizontal and vertical widths for the
+ emboldening calculation. This method provides a convenient way to
+ extract it from writing-system-specific metrics structures, which
+ all script definitions must implement.
+
+ * src/autofit/aftypes.h (AF_WritingSystem_GetStdWidthsFunc): New
+ function type.
+ (AF_WritingSystemClassRec): New member `style_metrics_getstdw'.
+ (AF_DEFINE_WRITING_SYSTEM_CLASS): Updated.
+
+ * src/autofit/afcjk.c (af_cjk_get_standard_width): New function.
+ (af_cjk_writing_system_class): Updated.
+ * src/autofit/afdummy.c (af_dummy_writing_system_class): Updated.
+ * src/autofit/afindic.c (af_cjk_get_standard_width): New function.
+ (af_indic_writing_system_class): Updated.
+ * src/autofit/aflatin.c (af_latin_get_standard_width): New function.
+ (af_indic_writing_system_class): Updated.
+ * src/autofit/aflatin.c (af_latin_get_standard_width): New function.
+ (af_indic_writing_system_class): Updated.
+
+2015-11-02 Nikolaus Waxweiler <madigens@gmail.com>
+
+ [autofit] Extend `AF_FaceGlobalsRec' to hold emboldening data.
+
+ * src/autofit/afglobal.h (AF_FaceGlobalsRec): Add fields.
+
+ * src/autofit/afglobal.c (af_face_globals_new): Initialize new
+ fields.
+ (af_face_globals_free): Reset new fields.
+
+2015-11-02 Nikolaus Waxweiler <madigens@gmail.com>
+
+ [autofit] Add stem-darkening properties.
+
+ Actual code follows in a later commit.
+
+ * include/freetype/ftautoh.h: Document `no-stem-darkening' and
+ `darkening-parameters'.
+
+ * src/autofit/afmodule.h: New fields `no_stem_darkening' and
+ `darken_params'.
+
+ * src/autofit/afmodule.c (af_property_set, af_property_get):
+ Handle them.
+ (af_autofitter_init): Initialize them.
+
+2015-11-02 Ben Wagner <bungeman@gmail.com>
+
+ [ftfuzzer] Add support for multiple files (patch #8779).
+
+ Currently, libFuzzer only supports mutation of a single file. We
+ circumvent this problem by using an uncompressed tar archive as
+ multiple-file input for the fuzzer.
+
+ This patch enables tests of `FT_Attach_Stream' and AFM/PFM parsing;
+ a constructed tarball should contain a font file as the first
+ element, and files to be attached as further elements.
+
+ * src/tools/ftfuzzer/ftfuzzer.cc: Include libarchive headers.
+ (archive_read_entry_data, parse_data): New functions.
+ (LLVMFuzzerTestOneInput): Updated.
+
+ * src/tools/ftfuzzer/ftmutator.cc: New file, providing a custom
+ mutator for libFuzzer that can mutate tarballs in a sensible way.
+
+2015-10-31 Werner Lemberg <wl@gnu.org>
+
+ [sfnt] Fix cmap 14 validation (#46346).
+
+ * src/sfnt/ttcmap.c (tt_cmap14_validate): Check limit before
+ accessing `numRanges' and `numMappings'.
+ Fix size check for non-default UVS table.
+
+2015-10-31 Werner Lemberg <wl@gnu.org>
+
+ [sfnt] Handle infinite recursion in bitmap strikes (#46344).
+
+ * src/sfnt/ttsbit.c (TT_SBitDecoder_LoadFunc,
+ tt_sbit_decoder_load_bitmap, tt_sbit_decoder_load_byte_aligned,
+ tt_sbit_decoder_load_bit_aligned, tt_sbit_decoder_load_png): Add
+ argument for recursion depth.
+ (tt_sbit_decoder_load_compound): Add argument for recursion depth.
+ Increase recursion counter for recursive call.
+ (tt_sbit_decoder_load_image): Add argument for recursion depth.
+ Check recurse depth.
+ (tt_face_load_sbit_image): Updated.
+
+2015-10-29 Werner Lemberg <wl@gnu.org>
+
+ * src/autofit/afhints.c (af_glyph_hints_dump_points): Minor.
+
+2015-10-29 Werner Lemberg <wl@gnu.org>
+
+ * CMakeLists.txt: Remove code to set MSVC's /FD compiler switch.
+
+ Problem reported by David Capello <davidcapello@gmail.com>; see
+
+ https://lists.nongnu.org/archive/html/freetype-devel/2015-10/msg00108.html
+
+ for details.
+
+2015-10-27 Werner Lemberg <wl@gnu.org>
+
+ [pfr] Add some safety guards (#46302).
+
+ * src/pfr/pfrload.h (PFR_CHECK): Rename to...
+ (PFR_CHECK_SIZE): ... this.
+ (PFR_SIZE): [!PFR_CONFIG_NO_CHECKS]: Define to PFR_CHECK_SIZE.
+
+ * src/pfr/pfrload.c (pfr_log_font_count): Check `count'.
+ (pfr_extra_item_load_kerning_pairs): Remove tracing message.
+ (pfr_phy_font_load): Use PFR_CHECK_SIZE where appropriate.
+ Allocate `chars' after doing a size checks.
+
+ * src/pfr/pfrsbit.c (pfr_load_bitmap_bits): Move test for invalid
+ bitmap format to...
+ (pfr_slot_load_bitmap): ... this function.
+ Check bitmap size.
+
+2015-10-26 Werner Lemberg <wl@gnu.org>
+
+ [truetype] Fix sanitizing logic for `loca' (#46223).
+
+ * src/truetype/ttpload.c (tt_face_load_loca): A thinko caused an
+ incorrect adjustment of the number of glyphs, most often using far
+ too large values.
+
+2015-10-25 Werner Lemberg <wl@gnu.org>
+
+ [autofit] Improve tracing.
+
+ * src/autofit/afhints.c (af_print_idx, af_get_segment_index,
+ af_get_edge_index): New functions.
+
+ (af_glyph_hints_dump_points): Remove unnecessary `|', `[', and `]'.
+ Add segment and edge index for each point.
+ Slightly change printing order of some elements.
+ Don't print `-1' but `--' for missing elements.
+
+ (af_glyph_hints_dump_segments, af_glyph_hints_dump_edges): Remove
+ unnecessary `|', `[', and `]'.
+ Don't print `-1' but `--' for missing elements.
+
+2015-10-24 Werner Lemberg <wl@gnu.org>
+
+ [sfnt] Sanitize bitmap strike glyph height.
+
+ Problem reported by Nikolay Sivov <bunglehead@gmail.com>.
+
+ * src/sfnt/ttsbit.c (tt_face_load_strike_metrics): Avoid zero value
+ for `metrics->height' by applying some heuristics.
+
+2015-10-22 Werner Lemberg <wl@gnu.org>
+
+ [sfnt, type42] Fix clang compiler warnings.
+
+ * src/sfnt/sfobjs.c (sfnt_init_face): Initialize `offset'.
+
+ * src/type42/t42parse.c (t42_parse_sfnts): Use proper cast.
+
+2015-10-22 Dave Arnold <darnold@adobe.com>
+ Werner Lemberg <wl@gnu.org>
+
+ [cff] Avoid overflow/module arithmetic.
+
+ This modifies the addition of subroutine number to subroutine bias
+ from unsigned to signed, but does not change any results.
+
+ * src/cff/cf2ft.c (cf2_initGlobalRegionBuffer,
+ cf2_initLocalRegionBuffer): Change variable names from (unsigned)
+ `idx' to (signed) `subrNum', since it is not an index until after
+ the bias is added.
+ * src/cff/cf2ft.h: Updated.
+
+ * src/cff/cf2intrp.c (cf2_interpT2CharString) <cf2_cmdCALLSUBR>:
+ Updated similarly.
+
+2015-10-22 Werner Lemberg <wl@gnu.org>
+
+ [cid] Better check of `SubrCount' dictionary entry (#46272).
+
+ * src/cid/cidload.c (cid_face_open): Add more sanity tests for
+ `fd_bytes', `gd_bytes', `sd_bytes', and `num_subrs'.
+
+2015-10-21 Werner Lemberg <wl@gnu.org>
+
+ [base] Pacify compiler (#46266).
+
+ * src/base/ftoutln.c (FT_Outline_EmboldenXY): Initialize `in' and
+ `anchor'.
+
+2015-10-21 Werner Lemberg <wl@gnu.org>
+
+ [type42] Fix heap buffer overflow (#46269).
+
+ * src/type42/t42parse.c (t42_parse_sfnts): Fix off-by-one error in
+ bounds checking.
+
+2015-10-21 Dave Arnold <darnold@adobe.com>
+
+ [cff] Fix limit in assert for max hints.
+
+ * src/cff/cf2interp.c (cf2_hintmask_setAll): Allow mask equal to the
+ limit (96 bits).
+
+2015-10-21 Dave Arnold <darnold@adobe.com>
+
+ [cff] Remove an assert (#46107).
+
+ * src/cff/cf2hints.c (cf2_hintmap_insertHint): Ignore paired edges
+ in wrong order.
+
+2015-10-21 Werner Lemberg <wl@gnu.org>
+
+ [sfnt] Avoid unnecessarily large allocation for WOFFs (#46257).
+
+ * src/sfnt/sfobjs.c (woff_open_font): Use WOFF's `totalSfntSize'
+ only after thorough checks.
+ Add tracing messages.
+
+2015-10-21 Werner Lemberg <wl@gnu.org>
+
+ [type42] Better check invalid `sfnts' array data (#46255).
+
+ * src/type42/t42parse.c (t42_parse_sfnts): Table lengths must be
+ checked individually against available data size.
+
+2015-10-20 Werner Lemberg <wl@gnu.org>
+
+ [cid] Add a bunch of safety checks.
+
+ * src/cid/cidload.c (parse_fd_array): Check `num_dicts' against
+ stream size.
+ (cid_read_subrs): Check largest offset against stream size.
+ (cid_parse_dict): Move safety check to ...
+ (cid_face_open): ... this function.
+ Also test length of binary data and values of `SDBytes',
+ `SubrMapOffset', `SubrCount', `CIDMapOffset', and `CIDCount'.
+
+2015-10-20 Werner Lemberg <wl@gnu.org>
+
+ [cid] Avoid segfault with malformed input (#46250).
+
+ * src/cid/cidload.c (cid_read_subrs): Return a proper error code for
+ unsorted offsets.
+
+2015-10-20 StudioEtrange <nomorgan@gmail.com>
+
+ * CMakeLists.txt: Enable shared library builds on MinGW (#46233).
+
+2015-10-20 Werner Lemberg <wl@gnu.org>
+
+ * src/type1/t1afm.c (T1_Read_Metrics): Fix memory leak (#46229).
+
+2015-10-19 Ben Wagner <bungeman@gmail.com>
+
+ [cid] Better handle invalid glyph stream offsets (#46221).
+
+ * src/cid/cidgload.c (cid_load_glyph): Check minimum size of glyph
+ length.
+
+2015-10-18 Werner Lemberg <wl@gnu.org>
+
+ [psaux] Fix tracing of negative numbers.
+
+ Due to incorrect casting negative numbers were shown as very large
+ (positive) integers on 64bit systems.
+
+ * src/psaux/t1decode.c (t1_decoder_parse_charstrings) <op_none>:
+ Use division instead of shift.
+
+2015-10-18 Werner Lemberg <wl@gnu.org>
+
+ [truetype] Improve TT_CONFIG_OPTION_MAX_RUNNABLE_OPCODES (#46223).
+
+ * devel/ftoption.h, include/freetype/config/ftoption.h: Surround it
+ with #ifndef ... #endif, as suggested in the tracker issue.
+
+2015-10-18 Werner Lemberg <wl@gnu.org>
+
+ [truetype] Better protection against malformed `fpgm' (#46223).
+
+ * src/truetype/ttobjs.c (tt_size_init_bytecode): Don't execute a
+ malformed `fpgm' table more than once.
+
+2015-10-17 Werner Lemberg <wl@gnu.org>
+
+ * src/cid/cidgload.c (cid_load_glyph): Fix memory leak.
+
+ Reported by Kostya Serebryany <kcc@google.com>.
+
+2015-10-17 Werner Lemberg <wl@gnu.org>
+
+ [bdf] Prevent memory leak (#46217).
+
+ * src/bdf/bdflib.c (_bdf_parse_glyphs) <STARTCHAR>: Check
+ _BDF_GLYPH_BITS.
+
+2015-10-17 Werner Lemberg <wl@gnu.org>
+
+ [bdf] Use stream size to adjust number of glyphs.
+
+ * src/bdf/bdflib.c (ACMSG17): New message macro.
+ (_bdf_parse_t): Add member `size'.
+ (bdf_load_font): Set `size'.
+ (_bdf_parse_glyphs): Adjust `cnt' if necessary.
+
+2015-10-17 Werner Lemberg <wl@gnu.org>
+
+ * src/cid/cidload.c (cid_parse_dict): Check `[FG]DBytes' size.
+
+2015-10-17 Werner Lemberg <wl@gnu.org>
+
+ * src/cid/cidgload.c (cid_glyph_load): Check file offsets (#46222).
+
+2015-10-17 Werner Lemberg <wl@gnu.org>
+
+ [psaux] Fix heap buffer overflow (#46221).
+
+ * src/psaux/t1decode.c (t1_decoder_parse_charstring) <operator 12>:
+ Fix limit check.
+
+2015-10-17 Werner Lemberg <wl@gnu.org>
+
+ * src/cid/cidload.c (cid_parse_dict): Handle invalid input (#46220).
+
+2015-10-15 Kostya Serebryany <kcc@google.com>
+
+ [ftfuzzer] Add README.
+
+ * src/tools/ftfuzzer/README: New file.
+
+2015-10-15 Ben Wagner <bungeman@gmail.com>
+
+ [bdf] Fix memory leak (#46213).
+
+ * src/bdf/bdflib.c (bdf_load_font): Always go to label `Fail' in
+ case of error.
+
+2015-10-15 Werner Lemberg <wl@gnu.org>
+
+ [truetype] Add TT_CONFIG_OPTION_MAX_RUNNABLE_OPCODES (#46208).
+
+ * devel/ftoption.h, include/freetype/config/ftoption.h
+ (TT_CONFIG_OPTION_MAX_RUNNABLE_OPCODES): New configuration macro.
+
+ * src/truetype/ttinterp.c (MAX_RUNNABLE_OPCODES): Removed.
+ (TT_RunIns): Updated.
+
+2015-10-15 Werner Lemberg <wl@gnu.org>
+
+ * src/truetype/ttinterp.c (TT_RunIns): Fix bytecode stack tracing.
+
+ The used indices were off by 1.
+
+2015-10-15 Ben Wagner <bungeman@gmail.com>
+ Werner Lemberg <wl@gnu.org>
+
+ * src/tools/ftfuzzer/ftfuzzer.cc: Handle fixed sizes (#46211).
+
+2015-10-15 Werner Lemberg <wl@gnu.org>
+
+ [base] Compute MD5 checksums only if explicitly requested.
+
+ This improves profiling accuracy.
+
+ * src/base/ftobjs.c (FT_Render_Glyph_Internal): Implement it.
+
+2015-10-14 Werner Lemberg <wl@gnu.org>
+
+ [base] Use `FT_' namespace for MD5 functions (#42366).
+
+ * src/base/ftobjs.c (MD5_*): Define as `FT_MD5_*'.
+ Undefine HAVE_OPENSSL.
+
+2015-10-13 Werner Lemberg <wl@gnu.org>
+
+ [type1] Correctly handle missing MM axis names (#46202).
+
+ * src/type1/t1load.c (T1_Get_MM_Var): Implement it.
+
+2015-10-13 Werner Lemberg <wl@gnu.org>
+
+ [pcf] Quickly exit if font index < 0.
+
+ Similar to other font formats, this commit makes the parser no
+ longer check the whole PCF file but only the header and the TOC if
+ we just want to get the number of available faces (and a proper
+ recognition of the font format).
+
+ * src/pcf/pcfdrivr.c (PCF_Face_Init): Updated.
+ Exit quickly if face_index < 0.
+
+ * src/pcfread.c (pcf_load_font): Add `face_index' argument.
+ Exit quickly if face_index < 0.
+
+ * src/pcf/pcf.h: Updated.
+
+2015-10-13 Werner Lemberg <wl@gnu.org>
+
+ [ftfuzzer] Handle TTCs and MM/GX variations.
+
+ This patch also contains various other improvements.
+
+ * src/tools/ftfuzzer/ftfuzzer.cc: Add preprocessor guard to reject
+ pre-C++11 compilers.
+ (FT_Global): New class. Use it to provide a global constructor and
+ destructor for the `FT_Library' object.
+ (setIntermediateAxis): New function to select an (arbitrary)
+ instance.
+ (LLVMFuzzerTestOneInput): Loop over all faces and named instances.
+ Also call `FT_Set_Char_Size'.
+
+2015-10-13 Werner Lemberg <wl@gnu.org>
+
+ [truetype] Refine some GX sanity tests.
+
+ Use the `gvar' table size instead of the remaining bytes in the
+ stream.
+
+ * src/truetype/ttgxvar.h (GX_BlendRec): New field `gvar_size'.
+
+ * src/truetype/ttgxvar.c (ft_var_load_gvar): Set `gvar_size'.
+ (ft_var_readpackedpoints, ft_var_readpackeddeltas: New argument
+ `size'.
+ (tt_face_vary_cvt, TT_Vary_Apply_Glyph_Deltas): Updated.
+
+2015-10-13 Werner Lemberg <wl@gnu.org>
+
+ [truetype] Another GX sanity test.
+
+ * src/truetype/ttgxvar.c (TT_Vary_Apply_Glyph_Deltas): Check
+ `tupleCount'.
+ Add tracing message.
+
+2015-10-13 Werner Lemberg <wl@gnu.org>
+
+ [truetype] Fix memory leak for broken GX fonts (#46188).
+
+ * src/truetype/ttgxvar.c (TT_Vary_Apply_Glyph_Deltas): Fix scope of
+ deallocation.
+
+2015-10-13 Werner Lemberg <wl@gnu.org>
+
+ [truetype] Fix commit from 2015-10-10.
+
+ * src/truetype/ttgxvar.c (ft_var_load_gvar): Add missing error
+ handling body to condition.
+
+2015-10-12 Werner Lemberg <wl@gnu.org>
+
+ [unix] Make MKDIR_P actually work.
+
+ * builds/unix/configure.raw: Fix underquoting of `INSTALL' and
+ `MKDIR_P'.
+
+ Problem reported by Dan Liddell <lddll@yahoo.com>.
+
+2015-10-11 Werner Lemberg <wl@gnu.org>
+
+ [sfnt] Improve extraction of number of named instances.
+
+ * src/sfnt/sfobjs.c (sfnt_init_face)
+ [TT_CONFIG_OPTION_GX_VAR_SUPPORT]: Check number of instances against
+ `fvar' table size.
+
+2015-10-10 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ * src/base/ftoutln.c (FT_Outline_Get_Orientation): Fix overflow
+ (#46149).
+
+2015-10-10 Werner Lemberg <wl@gnu.org>
+
+ [sfnt] Fix infinite loops with broken cmaps (#46167).
+
+ * src/sfnt/ttcmap.c (tt_cmap8_char_next, tt_cmap12_next): Take care
+ of border conditions (i.e., if the loops exit naturally).
+
+2015-10-10 Werner Lemberg <wl@gnu.org>
+
+ [truetype] More sanity tests for GX handling.
+
+ These tests should mainly help avoid unnecessarily large memory
+ allocations in case of malformed fonts.
+
+ * src/truetype/ttgxvar.c (ft_var_readpackedpoints,
+ ft_var_readpackeddeltas): Check number of points against stream
+ size.
+ (ft_var_load_avar): Check `pairCount' against table length.
+ (ft_var_load_gvar): Check `globalCoordCount' and `glyphCount'
+ against table length.
+ (tt_face_vary_cvt): Check `tupleCount' and `offsetToData'.
+ Fix trace.
+ (TT_Vary_Apply_Glyph_Deltas): Fix trace.
+ Free `sharedpoints' to avoid memory leak.
+
+2015-10-10 Werner Lemberg <wl@gnu.org>
+
+ [truetype] Better protection against malformed GX data (#46166).
+
+ * src/truetype/ttgxvar.c (TT_Vary_Apply_Glyph_Deltas): Correctly
+ handle empty `localpoints' array.
+
+2015-10-10 Werner Lemberg <wl@gnu.org>
+
+ * src/pcf/pcfread.c (pcf_read_TOC): Check stream size (#46162).
+
+2015-10-09 Werner Lemberg <wl@gnu.org>
+
+ * src/gzip/ftgzip.c (FT_Stream_OpenGzip): Use real stream size.
+
+2015-10-08 Werner Lemberg <wl@gnu.org>
+
+ [pcf] Protect against invalid number of TOC entries (#46159).
+
+ * src/pcf/pcfread.c (pcf_read_TOC): Check number of TOC entries
+ against size of data stream.
+
+2015-10-08 Werner Lemberg <wl@gnu.org>
+
+ [type42] Protect against invalid number of glyphs (#46159).
+
+ * src/type42/t42parse.c (t42_parse_charstrings): Check number of
+ `CharStrings' dictionary entries against size of data stream.
+
+2015-10-08 Werner Lemberg <wl@gnu.org>
+
+ [sfnt] Fix some signed overflows (#46149).
+
+ * src/sfnt/ttsbit.c (tt_face_load_strike_metrics)
+ <TT_SBIT_TABLE_TYPE_SBIX>: Use `FT_MulDiv'.
+
+2015-10-08 Werner Lemberg <wl@gnu.org>
+
+ [type1] Protect against invalid number of subroutines (#46150).
+
+ * src/type1/t1load.c (parse_subrs): Check number of
+ `Subrs' dictionary entries against size of data stream.
+
+2015-10-07 Kostya Serebryany <kcc@google.com>
+
+ [ftfuzzer] Add support for LLVM's LibFuzzer.
+
+ * src/tools/ftfuzzer/ftfuzzer.cc, src/tools/runinput.cc: New files.
+
+2015-10-06 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ [smooth] Faster alternative line renderer.
+
+ This implementation renders the entire line segment at once without
+ subdividing it into scanlines. The main speed improvement comes from
+ reducing the number of divisions to just two per line segment, which
+ is a bare minimum to calculate cell coverage in a smooth rasterizer.
+ Notably, the progression from cell to cell does not itself require any
+ divisions at all. The speed improvement is more noticeable at larger
+ sizes.
+
+ * src/smooth/ftgrays.c (gray_render_line): New implementation.
+
+2015-10-06 Werner Lemberg <wl@gnu.org>
+
+ [cff] Return correct PS names from pure CFF (#46130).
+
+ * src/cff/cffdrivr.c (cff_get_ps_name): Use SFNT service only for
+ SFNT.
+
+2015-10-04 Werner Lemberg <wl@gnu.org>
+
+ [base] Replace left shifts with multiplication (#46118).
+
+ * src/base/ftglyph.c (ft_bitmap_glyph_bbox, FT_Get_Glyph): Do it.
+
+2015-10-04 Werner Lemberg <wl@gnu.org>
+
+ * Version 2.6.1 released.
+ =========================
+
+
+ Tag sources with `VER-2-6-1'.
+
+ * docs/VERSION.DLL: Update documentation and bump version number to
+ 2.6.1.
+
+ * README, Jamfile (RefDoc), builds/windows/vc2005/freetype.vcproj,
+ builds/windows/vc2005/index.html,
+ builds/windows/vc2008/freetype.vcproj,
+ builds/windows/vc2008/index.html,
+ builds/windows/vc2010/freetype.vcxproj,
+ builds/windows/vc2010/index.html,
+ builds/windows/visualc/freetype.dsp,
+ builds/windows/visualc/freetype.vcproj,
+ builds/windows/visualc/index.html,
+ builds/windows/visualce/freetype.dsp,
+ builds/windows/visualce/freetype.vcproj,
+ builds/windows/visualce/index.html,
+ builds/wince/vc2005-ce/freetype.vcproj,
+ builds/wince/vc2005-ce/index.html,
+ builds/wince/vc2008-ce/freetype.vcproj,
+ builds/wince/vc2008-ce/index.html: s/2.6/2.6.1/, s/26/261/.
+
+ * include/freetype/freetype.h (FREETYPE_PATCH): Set to 1.
+
+ * builds/unix/configure.raw (version_info): Set to 18:1:12.
+ * CMakeLists.txt (VERSION_PATCH): Set to 1.
+
+ * src/autofit/afmodule.c [AF_DEBUG_AUTOFIT]: Ensure C linking for
+ dumping functions.
+
+2015-10-04 Werner Lemberg <wl@gnu.org>
+
+ [bzip2, gzip] Avoid access of uninitialized memory (#46109).
+
+ * src/bzip2/ftbzip2.c (ft_bzip2_file_fill_input), src/gzip/ftgzip.c
+ (ft_gzip_file_fill_input): In case of an error, adjust the limit to
+ avoid copying uninitialized memory.
+
+2015-10-03 Werner Lemberg <wl@gnu.org>
+
+ [bzip2, gzip] Avoid access of uninitialized memory (#46109).
+
+ * src/bzip2/ftbzip2.c (ft_bzip2_file_fill_output), src/gzip/ftgzip.c
+ (ft_gzip_file_fill_output): In case of an error, adjust the limit to
+ avoid copying uninitialized memory.
+
+2015-10-01 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ [smooth] Clean up worker.
+
+ * src/smooth/ftgrays.c (gray_TWorker): Remove never used fields.
+
+2015-10-01 Werner Lemberg <wl@gnu.org>
+
+ [sfnt] Make `tt_cmap4_char_map_linear' more robust (#46078).
+
+ * src/sfnt/ttcmap.c (tt_cmap4_char_map_linear): Take care of
+ border conditions (i.e., if the loop exits naturally).
+
+2015-10-01 Werner Lemberg <wl@gnu.org>
+
+ * src/autofit/afranges.c (af_deva_nonbase_uniranges): Fix ranges.
+ They should be a subset of `af_deva_uniranges'.
+
+2015-10-01 Werner Lemberg <wl@gnu.org>
+
+ [sfnt] Make `tt_cmap4_char_map_linear' faster (#46078).
+
+ * src/sfnt/ttcmap.c (tt_cmap4_char_map_linear): Use inner loop to
+ reject too large glyph indices.
+
+2015-09-30 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ [smooth] Clean up worker.
+
+ * src/smooth/ftgrays.c (gray_TWorker): Remove lightly used `last_ey'.
+ (gray_start_cell, gray_render_line): Update.
+
+2015-09-30 Werner Lemberg <wl@gnu.org>
+
+ [autofit] Replace `no-base' with `non-base'.
+
+ * src/autofit/*: Do it.
+
+2015-09-30 Werner Lemberg <wl@gnu.org>
+
+ [sfnt] Rewrite `tt_cmap4_char_map_linear' (#46078).
+
+ * src/sfnt/ttcmap.c (tt_cmap4_char_map_linear): Add code to better
+ skip invalid segments.
+ If searching the next character, provide a more efficient logic to
+ speed up the code.
+
+2015-09-30 Werner Lemberg <wl@gnu.org>
+
+ [truetype] Adjust number of glyphs for malformed `loca' tables.
+
+ * src/truetype/ttpload.c (tt_face_load_loca): Implement it.
+
+2015-09-29 Werner Lemberg <wl@gnu.org>
+
+ [pshinter] Avoid harmless overflow (#45984).
+
+ * src/pshinter/pshglob.c (psh_blues_set_zones): Fix it.
+
+2015-09-28 Werner Lemberg <wl@gnu.org>
+
+ [autofit] Add support for Lao script.
+
+ Thanks to Danh Hong <danhhong@gmail.com> for guidance with blue zone
+ characters!
+
+ * src/autofit/afblue.dat: Add blue zone data for Lao.
+
+ * src/autofit/afblue.c, src/autofit/afblue.h: Regenerated.
+
+ * src/autofit/afscript.h: Add Lao standard characters.
+
+ * src/autofit/afranges.c: Add Lao data.
+
+ * src/autofit/afstyles.h: Add Lao data.
+
+2015-09-27 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ [base] Fix a leak by broken sfnt-PS or resource fork (#46028).
+
+ open_face_from_buffer() frees passed buffer if valid font
+ is not found. But if copying to the buffer is failed,
+ the allocated buffer should be freed within the caller.
+
+ * src/base/ftobjs.c (open_face_PS_from_sfnt_stream): Free
+ the buffer `sfnt_ps' if an error caused before calling
+ open_face_from_buffer().
+ (Mac_Read_sfnt_Resource): Free the buffer `sfnt_data' if
+ an error caused before calling open_face_from_buffer();
+
+2015-09-27 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ [mac] Fix buffer size calculation for LWFN font.
+
+ * src/base/ftmac.c (read_lwfn): Cast post_size to FT_ULong
+ to prevent confused copy by too large chunk size.
+
+2015-09-26 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ * src/smooth/ftgrays.c (PIXEL_MASK): Remove unused macro.
+
+2015-09-26 Werner Lemberg <wl@gnu.org>
+
+ [autofit] Minor tracing improvement.
+
+ * src/autofit/aflatin.c (af_latin_metrics_scale_dim): Don't emit
+ blue zones header line if there are no blue zones.
+
+2015-09-26 Werner Lemberg <wl@gnu.org>
+
+ [bzip2, gzip, lzw] Harmonize function signatures with prototype.
+
+ Suggested by Hin-Tak Leung.
+
+ * src/bzip2/ftbzip2.c (ft_bzip2_stream_io), src/gzip/ftgzip.c
+ (ft_gzip_stream_io), src/lzw/ftlzw.c (ft_lzw_stream_io): Do it.
+
+2015-09-26 Hin-Tak Leung <htl10@users.sourceforge.net>
+
+ Add new FT_LOAD_COMPUTE_METRICS load flag.
+
+ * include/freetype/freetype.h (FT_LOAD_COMPUTE_METRICS): New macro.
+ * src/truetype/ttgload.c (compute_glyph_metrics): Usage.
+
+2015-09-26 Werner Lemberg <wl@gnu.org>
+
+ * src/base/ftobjs.c (Mac_Read_sfnt_Resource): Add cast.
+
+2015-09-25 Werner Lemberg <wl@gnu.org>
+
+ [type1] Protect against invalid number of glyphs (#46029).
+
+ * src/type1/t1load.c (parse_charstrings): Check number of
+ `CharStrings' dictionary entries against size of data stream.
+
+2015-09-23 Werner Lemberg <wl@gnu.org>
+
+ [sfnt] Better checks for invalid cmaps (2/2) (#46019).
+
+ While the current code in `FT_Get_Next_Char' correctly rejects
+ out-of-bounds glyph indices, it can be extremely slow for malformed
+ cmaps that use 32bit values. This commit tries to improve that.
+
+ * src/sfnt/ttcmap.c (tt_cmap8_char_next, tt_cmap12_next,
+ tt_cmap12_char_map_binary, tt_cmap13_next,
+ tt_cmap13_char_map_binary): Reject glyph indices larger than or
+ equal to the number of glyphs.
+
+2015-09-23 Werner Lemberg <wl@gnu.org>
+
+ [base, sfnt] Better checks for invalid cmaps (1/2).
+
+ * src/base/ftobjs.c (FT_Get_Char_Index): Don't return out-of-bounds
+ glyph indices.
+ (FT_Get_First_Char): Updated.
+
+ * src/sfnt/ttcmap.c (tt_cmap6_char_next): Don't return character
+ codes greater than 0xFFFF.
+
+ (tt_cmap8_char_index): Avoid integer overflow in computation of
+ glyph index.
+ (tt_cmap8_char_next): Avoid integer overflows in computation of
+ both next character code and glyph index.
+
+ (tt_cmap10_char_index): Fix unsigned integer logic.
+ (tt_cmap10_char_next): Avoid integer overflow in computation of
+ next character code.
+
+ (tt_cmap12_next): Avoid integer overflows in computation of both
+ next character code and glyph index.
+ (tt_cmap12_char_map_binary): Ditto.
+ (tt_cmap12_char_next): Simplify.
+
+ (tt_cmap13_char_map_binary): Avoid integer overflow in computation
+ of next character code.
+ (tt_cmap13_char_next): Simplify.
+
+2015-09-21 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ [base] Check too long POST and sfnt resource (#45919).
+
+ * src/base/ftbase.h (FT_MAC_RFORK_MAX_LEN): Maximum length of the
+ resource fork for Mac OS. Resource forks larger than 16 MB can be
+ written but can't be handled correctly, at least in Carbon routine.
+ See https://support.microsoft.com/en-us/kb/130437.
+
+ * src/base/ftobjs.c (Mac_Read_POST_Resource): No need to use `0x'
+ prefix for `%p' formatter.
+
+ * src/base/ftbase.c (Mac_Read_POST_Resource): Check the fragment and
+ total size of the concatenated POST resource before buffer
+ allocation.
+ (Mac_Read_sfnt_Resource): Check the declared size of sfnt resource
+ before buffer allocation.
+
+ * src/base/ftmac.c (read_lwfn, FT_New_Face_From_SFNT): Check the
+ total resource size before buffer allocation.
+
+2015-09-19 Werner Lemberg <wl@gnu.org>
+
+ [sfnt] Improve handling of invalid SFNT table entries (#45987).
+
+ This patch fixes weaknesses in function `tt_face_load_font_dir'.
+
+ - It incorrectly assumed that valid tables are always at the
+ beginning. As a consequence, some valid tables after invalid
+ entries (which are ignored) were never seen.
+
+ - Duplicate table entries (this is, having the same tag) were not
+ rejected.
+
+ - The number of valid tables was sometimes too large, leading to
+ access of invalid tables.
+
+ * src/sfnt/ttload.c (check_table_dir): Add argument to return number
+ of valid tables.
+ Add another tracing message.
+ (tt_face_load_font_dir): Only allocate table array for valid
+ entries as returned by `check_table_dir'.
+ Reject duplicate tables and adjust number of valid tables
+ accordingly.
+
+2015-09-19 Werner Lemberg <wl@gnu.org>
+
+ [pcf] Improve `FT_ABS' fix from 2015-09-17 (#45999).
+
+ * src/pcf/pcfread.c (pcf_load_font): Do first the cast to FT_Short,
+ then take the absolute value.
+ Also apply FT_ABS to `height'.
+
+2015-09-17 Werner Lemberg <wl@gnu.org>
+
+ [type42] Fix memory leak (#45989).
+
+ * src/type42/t42parse.c (t42_parse_charstrings): Allow only a single
+ `CharStrings' array.
+
+2015-09-17 Werner Lemberg <wl@gnu.org>
+
+ [psaux] Fix memory leak (#45986).
+
+ * src/psaux/psobjs.c (ps_parser_load_field) <T1_FIELD_TYPE_MM_BBOX>:
+ Free `temp' in case of error.
+
+2015-09-17 Werner Lemberg <wl@gnu.org>
+
+ [psaux] Improve tracing message.
+
+ * src/psaux/psobjs.c (ps_parser_load_field) <T1_FIELD_TYPE_MM_BBOX>:
+ Handle plural correctly.
+
+2015-09-17 Werner Lemberg <wl@gnu.org>
+
+ [pcf] Fix integer overflows (#45985).
+
+ * src/pcf/pcfread.c (pcf_load_font): Use FT_MulDiv.
+
+2015-09-17 Werner Lemberg <wl@gnu.org>
+
+ [pcf] Use FT_ABS for some property values (#45893).
+
+ * src/pcf/pcfread.c (pcf_load_font): Take absolute values for
+ AVERAGE_WIDTH, POINT_SIZE, PIXEL_SIZE, RESOLUTION_X, and
+ RESOLUTION_Y. In tracing mode, add warnings.
+
+2015-09-16 Werner Lemberg <wl@gnu.org>
+
+ Minor fixes for some clang warnings.
+
+ * src/base/ftoutln.c (FT_Outline_EmboldenXY): Cast, possible missing
+ initialization.
+
+ * src/truetype/ttgload.c (TT_Process_Composite_Component): Cast.
+
+2015-09-15 Werner Lemberg <wl@gnu.org>
+
+ [type1, type42] Fix memory leaks (#45966).
+
+ * src/type1/t1load.c (parse_blend_axis_types): Handle multiple axis
+ names.
+ (parse_blend_design_map): Allow only a single design map.
+ (parse_encoding): Handle multiple encoding vectors.
+
+ * src/type42/t42parse.c (t42_parse_encoding): Handle multiple
+ encoding vectors.
+
+2015-09-15 Werner Lemberg <wl@gnu.org>
+
+ [truetype] Fix integer type (#45965).
+
+ * src/truetype/ttobjs.c (tt_synth_sfnt_checksum): Implement it.
+
+2015-09-15 Werner Lemberg <wl@gnu.org>
+
+ * src/pcf/pcfread.c (pcf_load_font): Fix integer overflow (#45964).
+
+2015-09-15 Werner Lemberg <wl@gnu.org>
+
+ [type1, type42] Check encoding array size (#45961).
+
+ * src/type1/t1load.c (parse_encoding), src/type42/t42parse.c
+ (t42_parse_encoding): Do it.
+
+2015-09-14 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ * src/base/ftcalc.c (FT_MulFix) [FT_LONG64]: Improve.
+
+2015-09-14 Werner Lemberg <wl@gnu.org>
+
+ [type1] Fix another potential buffer overflow (#45955).
+
+ * src/type1/t1parse (T1_Get_Private_Dict): Assure that check for
+ `eexec' doesn't exceed `limit'.
+
+2015-09-13 Werner Lemberg <wl@gnu.org>
+
+ Replace `mkinstalldirs' with AC_PROG_MKDIR_P.
+
+ * builds/unix/mkinstalldirs: Removed, no longer needed.
+
+ * builds/unix/configure.raw: Call `AC_PROG_MKDIR_P'.
+ Update pwd call for `$INSTALL'.
+
+ * builds/unix/unix-def.in (MKINSTALLDIRS): Use `@MKDIR_P@'.
+
+ * autogen.sh: Updated.
+
+2015-09-13 Werner Lemberg <wl@gnu.org>
+
+ [winfonts] Check alignment shift count for resource data (#45938).
+
+ * src/winfonts/winfnt.c (fnt_face_get_dll_font): Implement it.
+
+2015-09-13 Werner Lemberg <wl@gnu.org>
+
+ [type1] Fix potential buffer overflow (#45923).
+
+ * src/type1/t1parse.c (T1_Get_Private_Dict): Assure `cur' doesn't
+ point to end of file buffer.
+
+2015-09-13 Werner Lemberg <wl@gnu.org>
+
+ [gzip] Fix access of small compressed files (#45937).
+
+ * src/gzip/ftgzip.c (ft_gzip_stream_close): Avoid memory leak.
+
+ (ft_gzip_get_uncompressed_file): Correct byte order while reading
+ unsigned long value. Without this change, the whole optimization of
+ accessing small files in `FT_Stream_OpenGzip' is never executed! As
+ a consequence, access to PCF files in general (which are normally
+ small files) should be much improved now as originally intended.
+
+2015-09-11 Werner Lemberg <wl@gnu.org>
+
+ [psaux] Fix potential buffer overflow (#45922).
+
+ * src/psaux/psobjs.c (ps_parser_skip_PS_token): If a token is
+ enclosed in balanced expressions, ensure that the cursor position
+ doesn't get larger than the current limit.
+
+2015-09-11 Werner Lemberg <wl@gnu.org>
+
+ [base] Avoid crash while tracing `load_mac_face'.
+
+ Reported in Savannah bug #45919.
+
+ * src/base/ftobjs.c (load_mac_face): Honour FT_OPEN_MEMORY while
+ tracing.
+
+2015-09-11 Werner Lemberg <wl@gnu.org>
+
+ [type42] Fix endless loop (#45920).
+
+ * src/type42/t42parse.c (t42_parse_encoding): Synchronize with
+ type1's `parse_encoding'.
+
+2015-09-10 Werner Lemberg <wl@gnu.org>
+
+ [docmaker] Allow `-' in bold and italic markup.
+
+ * src/tools/docmaker/sources.py (re_italic, re_bold): Adjust
+ accordingly.
+
+2015-09-09 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ * src/base/ftcalc.c (FT_RoundFix): Improve.
+
+2015-09-09 Wojciech Mamrak <wmamrak@gmail.com>
+
+ * src/base/ftcalc.c (FT_CeilFix, FT_FloorFix): Normalize.
+
+ This commit makes the functions behave as expected, this is,
+ rounding towards plus or minus infinity.
+
+2015-09-07 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ * src/smooth/ftgrays.c (gray_render_line): Simplify clipping.
+
+2015-09-04 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ [raster,smooth] Microoptimizations.
+
+ * src/raster/ftraster.c (Insert_Y_Turn, Finalize_Profile_Table,
+ Bezier_Up): Use do-while loops.
+
+ * src/smooth/ftgrays.c (gray_render_scanline, gray_render_line,
+ gray_convert_glyph): Ditto.
+
+2015-09-04 Werner Lemberg <wl@gnu.org>
+
+ [autofit] Redesign code ranges (2/2).
+
+ This commit adds two fallback scripts (`latb', `latp') and
+ implements support for the no-base character ranges introduced in
+ the previous commit.
+
+ * src/autofit/aftypes.h (AF_ScriptClassRec): Add
+ `script_uni_nobase_ranges' field.
+ (AF_DEFINE_SCRIPT_CLASS): Updated.
+
+ * src/autofit/afscript.h, src/autofit/afstyles.h: Add `latb' and
+ `latp' fallback scripts.
+
+ * src/autofit/afblue.dat: Add blue zones for Latin subscript and
+ superscript fallback scripts.
+
+ * src/autofit/afblue.c, src/autofit/afblue.h: Regenerated.
+
+ * src/autofit/afglobal.h (AF_NOBASE): New style flag for no-base
+ characters.
+ (AF_STYLE_MASK): Updated.
+
+ * src/autofit/afglobal.c (SCRIPT): Updated.
+ (af_face_globals_compute_style_coverage): Handle new style flag.
+
+ * src/autofit/aflatin.c (af_latin_hints_apply): Handle new style
+ flag.
+
+ * src/autofit/afranges.h (SCRIPT): Use it to export no-base ranges.
+
+2015-09-04 Werner Lemberg <wl@gnu.org>
+
+ [autofit] Redesign code ranges (1/2).
+
+ This patch introduces auxiliary code ranges that identify no-base
+ characters; they refer to glyphs of a script that should be hinted
+ without alignments to blue zones (mostly diacritics).
+
+ It also splits off ranges for fallback scripts that handle subscript
+ and superscript characters not covered by OpenType features. For
+ example, this greatly helps improve the hinting of various phonetic
+ alphabets, which contain a large amount characters that look like
+ superscript glyphs.
+
+ Finally, code ranges are updated to Unicode 8.0, and enclosed
+ characters are removed in general since they normally look better if
+ they stay unhinted.
+
+ * src/autofit/afranges.c (af_latn_uniranges): Updated to Unicode
+ 8.0.
+ Split off superscript-like and subscript-like glyphs into...
+
+ (af_latb_uniranges, af_latp_uniranges): ... these two new arrays.
+
+ (af_xxxx_nobase_uniranges): New arrays that hold no-base characters
+ of the corresponding character ranges.
+
+2015-09-03 Werner Lemberg <wl@gnu.org>
+
+ [autofit] Pass glyph index to hinting function.
+
+ No functionality change yet.
+
+ * src/autofit/aftypes.h (AF_WritingSystem_ApplyHintsFunc): Pass
+ glyph index.
+
+ * src/autofit/afcjk.c, src/autofit/afcjk.h (af_cjk_hints_apply),
+ src/autofit/afdummy.c (af_dummy_hints_apply), src/autofit/afindic.c
+ (af_indic_hints_apply), src/autofit/aflatin.c
+ (af_latin_hints_apply), src/autofit/aflatin2.c
+ (af_latin2_hints_apply), src/autofit/afloader.c (af_loader_load_g):
+ Updated.
+
+2015-08-30 Werner Lemberg <wl@gnu.org>
+
+ [autofit] Code clean-up.
+
+ * src/autofit/afglobal.h (AF_STYLE_MASK): New macro.
+ (AF_STYLE_UNASSIGNED): Use AF_STYLE_MASK for definition.
+
+ * src/autofit/afglobal.c (af_face_globals_compute_style_coverage):
+ Updated.
+
+2015-08-30 Werner Lemberg <wl@gnu.org>
+
+ [autofit] Make glyph style array use 16bit values.
+
+ * include/freetype/ftautoh.h (FT_Prop_GlyphToScriptMap): Use
+ `FT_UShort' for `map' field.
+
+ * src/autofit/afglobal.c (af_face_globals_compute_style_coverage,
+ af_face_globals_new), src/autofit/hbshim.c, src/autofit/hbshim.h
+ (af_get_coverage): Use FT_UShort for `glyph_styles' array.
+
+ * src/autofit/afglobal.h (AF_STYLE_UNASSIGNED, AF_DIGIT): Extend to
+ 16 bits.
+ (AF_FaceGlobalsRec): Use `FT_UShort' for `glyph_styles' field.
+
+2015-08-26 Werner Lemberg <wl@gnu.org>
+
+ * builds/unix/configure.raw: Need harfbuzz >= 0.9.21 (#45828).
+
+2015-08-25 Werner Lemberg <wl@gnu.org>
+
+ [base] Improve kerning tracing and documentation.
+
+ * src/base/ftobjs.c (FT_Get_Kerning): Emit tracing message if
+ scaled-down kerning values differ.
+
+2015-08-18 Werner Lemberg <wl@gnu.org>
+
+ [raster] Remove last remnants of `raster5' driver.
+
+ * src/raster/ftrend1.h (ft_raster5_renderer_class): Removed.
+
+ * src/raster/rastpic.c, src/raster/rastpic.h
+ (ft_raster5_renderer_class_pic_init,
+ ft_raster5_renderer_class_pic_free): Removed.
+
+2015-08-17 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ [base] Improve emboldener (#45596).
+
+ * src/base/ftoutln.c (FT_Outline_EmboldenXY): Correct displacement
+ of zero-length segments.
+
+2015-08-16 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ [base] Reoptimize arithmetic.
+
+ * src/base/ftcalc.c (FT_MulDiv, FT_MulFix) [!FT_LONG64]: Remove
+ special cases that slow down the general use.
+
+2015-08-15 pazer <ibemad@gmail.com>
+
+ Fix C++ compilation (#45762).
+
+ * src/base/ftstroke.c (ft_outline_glyph_class): Use
+ FT_CALLBACK_TABLE.
+
+2015-08-14 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ [truetype] Clean up.
+
+ * src/truetype/ttgload.c (TT_Process_Composite_Component): Use
+ `FT_Outline_Transform' and `FT_Outline_Translate'.
+ (translate_array): Dropped.
+
+2015-08-14 Andreas Enge <andreas.enge@inria.fr>
+
+ * builds/unix/detect.mk (CONFIG_SHELL): Don't handle it (#44261).
+
+2015-08-13 Werner Lemberg <wl@gnu.org>
+
+ [truetype] Introduce named instance access to GX fonts.
+
+ For functions querying a face, bits 16-30 of the face index can hold
+ the named instance index if we have a GX font. The indices start
+ with value 1; value 0 indicates font access without GX variation
+ data.
+
+ * include/freetype/freetype.h (FT_FaceRec): Update documentation.
+ * include/freetype/internal/sfnt.h: Ditto.
+
+ * src/sfnt/sfobjs.c (sfnt_init_face)
+ [TT_CONFIG_OPTION_GX_VAR_SUPPORT]: Get number of named instances and
+ do argument checks.
+ (sfnt_load_face): Updated.
+
+ * src/truetype/ttobjs.c (tt_face_init)
+ [TT_CONFIG_OPTION_GX_VAR_SUPPORT]: Use named instance, overwriting
+ the style name.
+
+ * src/base/ftobjs.c (open_face_from_buffer,
+ open_face_PS_from_sfnt_stream): Updated.
+ * src/bdf/bdfdrivr.c (BDF_Face_Init): Updated.
+ * src/cff/cffload.c (cff_font_load): Updated.
+
+ * src/cff/cffobjs.c (cff_face_init): Make function exit early for
+ pure CFF fonts if `font_index < 0'.
+ Updated.
+
+ * src/cid/cidobjs.c (cid_face_init): Updated.
+ * src/pcf/pcfdrivr.c (PCF_Face_Init): Updated.
+ * src/pfr/pfrobjs.c (pfr_face_init): Updated.
+ * src/type1/t1objs.c (T1_Face_Init): Updated.
+ * src/type42/t42objs.c (T42_Face_Init): Updated.
+ * src/winfonts/winfnt.c (fnt_face_get_dll_font, FNT_Face_Init):
+ Updated.
+
+ * docs/CHANGES: Updated.
+
+2015-08-12 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ [type1,cff,cid] Streamline font matrix application.
+
+ * src/type1/t1gload.c (T1_Load_Glyph): Directly modify advances only
+ if font matrix is not trivial.
+ * src/cff/cffgload.c (cff_slot_load): Ditto.
+ * src/cid/cidgload.c (cid_slot_load_glyph): Ditto for advances and the
+ entire outline.
+
+2015-08-11 Werner Lemberg <wl@gnu.org>
+
+ [builds/unix] Minor.
+
+ * builds/unix/configure.raw:
+ s/lib{priv,staticconf}/libs{priv,staticconf}/ for orthogonality with
+ similarly named uppercase variables.
+
+2015-08-10 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ [type1,cid,type42] Minor improvements.
+
+ * src/type1/t1load.c (t1_parse_font_matrix): Scale units per EM only
+ when necessary. Refresh comments.
+ * src/cid/cidload.c (cid_parse_font_matrix): Ditto.
+ * src/type42/t42parse.c (t42_parse_font_matrix): Refresh comments.
+
+2015-08-08 Werner Lemberg <wl@gnu.org>
+
+ [type42] Fix glyph access.
+
+ This is a severe bug: We've missed one level of indirection, as
+ described in the Type 42 specification. As a result, ftview
+ sometimes showed incorrect glyphs for given glyph names, and even
+ displayed `error 0x0006' (invalid argument!) in case the number of
+ glyph indices differed between the Type 42 font and the embedded
+ TTF.
+
+ Apparently, noone ever noticed it; this shows how much Type 42 fonts
+ are in use...
+
+ * src/type42/t42objs.c (T42_GlyphSlot_Load): Map Type 42 glyph index
+ to embedded TTF's glyph index.
+
+2015-08-08 Werner Lemberg <wl@gnu.org>
+
+ [type42] Minor clean-up.
+
+ * src/type42/t42parse.c (t42_parse_font_matrix): Remove unused
+ variable.
+
+2015-08-06 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ [type42] Parse FontMatrix according to specifications.
+
+ * src/type42/t42parse.c (t42_parse_font_matrix): Type 42 FontMatrix
+ does not need scaling by 1000. Units_per_EM are taken from the
+ embedded TrueType.
+
+2015-08-06 Werner Lemberg <wl@gnu.org>
+
+ [autofit] Improve Arabic hinting.
+
+ Problem reported by Titus Nemeth <tn@tntypography.eu> (by using
+ ttfautohint).
+
+ * src/autofit/afblue.dat: Add neutral blue zone for the tatweel
+ character.
+
+ * src/autofit/afblue.c, src/autofit/afblue.h: Regenerated.
+
+2015-08-05 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ [truetype] Clean up types.
+
+ * src/truetype/ttobjs.c (TT_Size): Move declaration from here.
+ * include/freetype/internal/tttypes.h (TT_Size): ... to here.
+ (TT_LoaderRec): Switch to appropriate types for `face' and `size'.
+ * src/truetype/ttgload.c: Remove corresponding type casts.
+ * src/truetype/ttsubpix.c: Ditto.
+
+2015-08-05 Werner Lemberg <wl@gnu.org>
+
+ [autofit] Improve recognition of flat vs. rounded segments.
+
+ Lower the flatness threshold from upem/8 to upem/14, making the
+ auto-hinter accept shorter elements.
+
+ Synchronize flat/round stem selection algorithm with blue zone code.
+
+ * src/autofit/aflatin.c (FLAT_THRESHOLD): New macro.
+ (af_latin_metrics_init_blues): Use it.
+ (af_latin_hints_compute_segments): Collect information on maximum
+ and minimum coordinates of `on' points; use this to add a constraint
+ for the flat/round decision similar to
+ `af_latin_metrics_init_blues'.
+
+2015-08-04 Werner Lemberg <wl@gnu.org>
+
+ Another left-shift bug (#45681).
+
+ * src/base/ftobjs.c (IsMacBinary): Only accept positive values for
+ `dlen'.
+
+2015-08-03 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ [base] Fix `ft_corner_orientation'.
+
+ Remove casting from `FT_Long' to `FT_Int' that might change the sign
+ of the return value and make it faster too.
+
+ * src/base/ftcalc.c (ft_corner_orientation): On 32-bit systems, stay
+ with 32-bit arithmetic when safe. Use plain math on 64-bit systems.
+ * src/pshinter/pshalgo.c: Remove old unused code.
+
+2015-08-03 Werner Lemberg <wl@gnu.org>
+
+ * src/truetype/ttgload.c (load_truetype_glyph)
+ [TT_CONFIG_OPTION_GX_VAR_SUPPORT]: Fix crash for composite glyphs
+ having a depth greater than 1.
+
+2015-08-03 Werner Lemberg <wl@gnu.org>
+
+ Fix typo in clang bug from 2015-07-31 (#45678).
+
+ * src/base/ftrfork.c (FT_Raccess_Get_HeaderInfo): Fix inequality.
+
+2015-08-02 Werner Lemberg <wl@gnu.org>
+
+ * CMakeLists.txt: Improve shared library support.
+
+ Based on a patch from John Cary <cary@txcorp.com>.
+
+2015-08-02 Werner Lemberg <wl@gnu.org>
+
+ * builds/unix/freetype-config.in (enable_shared): Remove. Unused.
+
+2015-08-02 Werner Lemberg <wl@gnu.org>
+
+ Fix more invalid left-shifts.
+
+ * src/pfr/pfrgload.c (pfr_glyph_load_compound): Use multiplication,
+ not left-shift.
+
+ * src/truetype/ttgxvar.c (ft_var_load_avar, ft_var_load_gvar,
+ tt_face_vary_cvt, TT_Vary_Apply_Glyph_Deltas): Use multiplication,
+ not left-shift.
+
+2015-07-31 Werner Lemberg <wl@gnu.org>
+
+ Fix some bugs found by clang's `-fsanitize=undefined' (#45661).
+
+ * src/base/ftrfork.c (FT_Raccess_Get_HeaderInfo): Only accept
+ positive values from header.
+ Check overflow.
+
+ * src/base/ftoutln.c (SCALED): Correctly handle left-shift of
+ negative values.
+
+ * src/bdf/bdf.h (_bdf_glyph_modified, _bdf_set_glyph_modified,
+ _bdf_clear_glyph_modified): Use unsigned long constant.
+
+ * src/bdf/bdfdrivr.c (BDF_Size_Select, BDF_Glyph_Load): Don't
+ left-shift values that can be negative.
+
+ * src/pcf/pcfdrivr.c (PCF_Size_Select, PCF_Glyph_Load): Don't
+ left-shift values that can be negative.
+
+ * src/raster/ftraster.c (SCALED): Correctly handle left-shift of
+ negative values.
+
+ * src/sfnt/ttsbit.c (tt_face_load_strike_metrics): Don't left-shift
+ values that can be negative.
+
+ * src/truetype/ttgload.c (TT_Load_Composite_Glyph,
+ compute_glyph_metrics, load_sbit_image): Don't left-shift values
+ that can be negative.
+
+2015-07-31 Werner Lemberg <wl@gnu.org>
+
+ Define FT_LONG_MAX.
+
+ * include/freetype/config/ftstdlib.h (FT_LONG_MAX): New macro.
+ * src/cff/cf2arrst.c (cf2_arrstack_setNumElements): Use it.
+
+2015-07-28 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ * src/base/ftcalc.c (FT_Vector_NormLen): Clarify.
+
+2015-07-27 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ * src/base/ftcalc.c (FT_Vector_NormLen): Explicate type conversions.
+
+2015-07-26 Matthias Clasen <matthias.clasen@gmail.com>
+
+ [cff] Don't use `hmtx' table for LSB (#45520).
+
+ * src/cff/cffgload.c (cff_slot_load): Use `htmx' table for advance
+ width only. Bug introduced 2015-04-10.
+
+2015-07-09 Werner Lemberg <wl@gnu.org>
+
+ Better support of user-supplied C++ namespaces.
+
+ See
+
+ https://lists.nongnu.org/archive/html/freetype-devel/2015-07/msg00008.html
+
+ for a rationale.
+
+ * src/autofit/afpic.h, src/base/basepic.h, src/cff/cffpic.h,
+ src/pshinter/pshpic.h, src/psnames/pspic.h, src/raster/rastpic.h,
+ src/sfnt/sfntpic.h, src/smooth/ftspic.h, src/truetype/ttpic.h
+ (FT_BEGIN_HEADER, FT_END_HEADER): Move macro calls to not enclose
+ header files that contain FT_{BEGIN,END}_HEADER macros by
+ themselves.
+
+ * src/autofit/aftypes.h [FT_DEBUG_AUTOFIT]: Include
+ FT_CONFIG_STANDARD_LIBRARY_H earlier.
+
+ * src/truetype/ttpic.h: Include FT_INTERNAL_PIC_H.
+
+2015-07-07 Werner Lemberg <wl@gnu.org>
+
+ [sfnt] Make `tt_face_get_name' member of the SFNT interface.
+
+ * include/freetype/internal/sfnt.h (TT_Get_Name_Func): New
+ prototype.
+ (SFNT_Interface, FT_DEFINE_SFNT_INTERFACE): New member `get_name'.
+
+ * src/sfnt/sfdriver.c (sfnt_interface): Updated.
+
+ * src/sfnt/sfobjs.c (tt_face_get_name): Tag it with `LOCAL_DEF'.
+ * src/sfnt/sfobjs.h: Add prototype for it.
+
+2015-06-30 Werner Lemberg <wl@gnu.org>
+
+ Fix some clang compiler warnings.
+
+ * src/base/ftoutln.c (FT_Outline_EmboldenXY), src/cff/cf2intrp.c
+ (cf2_interpT2CharString), src/truetype/ttgload.c
+ (load_truetype_glyph), src/truetype/ttgxvar.c (tt_handle_deltas),
+ src/truetype/ttinterp.c (Ins_INSTCTRL): Fix signedness issues.
+
+2015-06-29 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ [truetype] Speed up bytecode interpreter.
+
+ * src/truetype/ttinterp.c (Normalize): Use `FT_Vector_NormLen'.
+
+2015-06-29 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ [base] Speed up emboldening.
+
+ * src/base/ftoutln.c (FT_Outline_EmboldenXY): Use
+ `FT_Vector_NormLen'.
+
+2015-06-29 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ [base] Implement fast vector normalization.
+
+ The function uses Newton's iterations instead of dividing vector
+ components by its length, which needs a square root. This is,
+ literally, a bit less accurate but a lot faster.
+
+ * src/base/ftcalc.c (FT_Vector_NormLen): New function.
+
+2015-06-28 Werner Lemberg <wl@gnu.org>
+
+ * CMakeLists.txt: Always create `ftconfig.h'.
+
+ For non-UNIX builds, the file stays unmodified. However, it's
+ better to have the main configuration files at the same place
+ regardless of the OS.
+
+2015-06-28 Werner Lemberg <wl@gnu.org>
+
+ * CMakeLists.txt: Improve MSVC support (#43737).
+
+2015-06-28 Werner Lemberg <wl@gnu.org>
+
+ [cmake] Check for libraries and create `ftoption.h'.
+
+ * builds/FindHarfBuzz.cmake: New file, taken from
+
+ https://trac.webkit.org/browser/trunk/Source/cmake/FindHarfBuzz.cmake
+
+ * CMakeLists.Txt: Add path to local cmake modules.
+ Find dependencies for zlib, bzip2, libpng, and harfbuzz.
+ Create `ftoption.h' file.
+ Set up include and linker stuff for libraries.
+
+2015-06-28 Werner Lemberg <wl@gnu.org>
+
+ * CMakeLists.txt: Fix creation of `ftconfig.h'.
+ Check for UNIX header files using `check_include_file'.
+ Set up correct header include directories.
+
+2015-06-28 Werner Lemberg <wl@gnu.org>
+
+ * CMakeLists.txt: Disallow in-source builds.
+
+2015-06-27 Werner Lemberg <wl@gnu.org>
+
+ * src/tools/docmaker/utils.py (check_output): Add missing `\n'.
+
+2015-06-26 Werner Lemberg <wl@gnu.org>
+
+ * CMakeLists.txt: Select platform-dependent `ftdebug.c'.
+
+2015-06-25 Werner Lemberg <wl@gnu.org>
+
+ * CMakeLists.txt: Use cmake functions for generating `ftconfig.h'.
+ Additionally, do this for UNIX only.
+
+2015-06-25 Werner Lemberg <wl@gnu.org>
+
+ * CMakeLists.txt (BASE_SRCS): Use `ftbase.c' and `psnames.c'.
+
+2015-06-25 Werner Lemberg <wl@gnu.org>
+
+ Another adjustment to header locations.
+
+ This change is a result of a discussion thread on freetype-devel
+
+ https://lists.nongnu.org/archive/html/freetype-devel/2015-06/msg00041.html
+
+ Re-introduce the `freetype2' subdirectory for all FreeType header
+ files after installation, and rename the `freetype2' subdirectory in
+ the git repository to `freetype'.
+
+ * include/freetype2: Renamed to...
+ * include/freetype: This.
+
+ * CMakeLists.txt (PUBLIC_HEADERS, PUBLIC_CONFIG_HEADERS,
+ PRIVATE_HEADERS): Updated.
+ Update creation of `ftconfig.h'.
+ Install generated `ftconfig.h'.
+
+ * Jamfile (HDRMACRO, RefDoc), autogen.sh: Updated.
+
+ * builds/amiga/include/config/ftconfig.h, builds/freetype.mk
+ (PUBLIC_DIR), builds/symbian/bld.inf, builds/toplevel.mk (work),
+ builds/unix/freetype2.in: Updated.
+
+ * builds/unix/freetype-config.in: Updated.
+ * builds/unix/configure.raw: Don't check for `rmdir'.
+ * builds/unix/unix-def.in (DELDIR): Use `rm -rf', which is portable
+ according to the autoconf info manual.
+ * builds/unix/install.mk (install, uninstall,
+ distclean_project_unix): Update and simplify.
+
+ * builds/wince/*, builds/windows/*: Updated.
+
+ * devel/ft2build.h, include/ft2build.h: Updated.
+
+ * include/freetype2/config/ftheader.h,
+ include/freetype2/internal/ftserv.h,
+ include/freetype2/internal/internal.h: Update all header file
+ macros.
+
+ * src/tools/chktrcmp.py (TRACE_DEF_FILES): Updated.
+
+ * docs/*: Updated.
+
+2015-06-24 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ * src/bdf/bdflib.c (_bdf_parse_start): Disallow 0 bpp.
+
+2015-06-24 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ * src/bdf/bdflib.c (_bdf_parse_start): Simplify bpp parsing.
+
+2015-06-23 Werner Lemberg <wl@gnu.org>
+
+ s/TYPEOF/FT_TYPEOF/ (#45376).
+
+ * builds/unix/ftconfig.in, builds/vms/ftconfig.in,
+ include/freetype2/config/ftconfig.h,
+ include/freetype2/internal/ftobjs.h, src/autofit/afwarp.h: Do it.
+
+2015-06-22 Werner Lemberg <wl@gnu.org>
+
+ Fix Savannah bug #45097.
+
+ We no longer `pollute' the namespace of possible header file names;
+ instead we move `ft2build.h' up by one level so that it gets
+ installed in the default include directory (e.g.,
+ /usr/local/include). After this commit, only `ft2build.h' stays in
+ the compiler's include path.
+
+ No visible changes for the user who follows the standard FreeType
+ header inclusion rules.
+
+ * include/*: Move to ...
+ * include/freetype2/*: This directory, except `ft2build.h'.
+
+ * CMakeLists.txt (PUBLIC_HEADERS, PUBLIC_CONFIG_HEADERS,
+ PRIVATE_HEADERS), Jamfile (HDRMACRO, RefDoc), autogen.sh: Updated.
+
+ * builds/amiga/include/config/ftconfig.h, builds/freetype.mk
+ (PUBLIC_DIR), builds/symbian/bld.inf, builds/toplevel.mk (work),
+ builds/unix/install.mk (install, uninstall),
+ builds/unix/freetype2.in: Updated.
+
+ * builds/unix/freetype-config.in: Updated.
+ Emit -I directory only if it is not `/usr/include'.
+
+ * builds/wince/*, builds/windows/*: Updated.
+
+ * devel/ft2build.h, include/ft2build.h: Updated.
+
+ * include/freetype2/config/ftheader.h,
+ include/freetype2/internal/ftserv.h,
+ include/freetype2/internal/internal.h: Update all header file
+ macros.
+
+ * src/tools/chktrcmp.py (TRACE_DEF_FILES): Updated.
+
+2015-06-21 Werner Lemberg <wl@gnu.org>
+
+ Make Jam support work again.
+
+ This is just very basic stuff and just a little bit tested on
+ GNU/Linux only. I won't delve into this since I'm not a Jam user.
+
+ * Jamfile: Call `HDRMACRO' for `ftserv.h' also.
+ (DEFINES): Replace with...
+ (CCFLAGS): ... this.
+
+ * src/Jamfile: Don't call `HDRMACRO' for `internal.h'; this is
+ already handled in the top-level Jamfile.
+
+ * src/autofit/Jamfile (DEFINES): Replace with...
+ (CCFLAGS): ... this.
+ (_sources): Add missing files.
+
+ * src/cache/Jamfile: Don't call `HDRMACRO' for `ftcache.h'; it no
+ longer contains macro header definitions.
+
+ * src/base/Jamfile, src/cff/Jamfile, src/sfnt/Jamfile,
+ src/truetype/Jamfile (_sources): Add missing files.
+
+2015-06-16 Werner Lemberg <wl@gnu.org>
+
+ Fix Savannah bug #45326.
+
+ * src/sfnt/sfntpic.h (SFNT_SERVICES_GET): Remove duplicate
+ definitions.
+
+2015-06-07 Werner Lemberg <wl@gnu.org>
+
+ * Version 2.6 released.
+ =======================
+
+
+ Tag sources with `VER-2-6'.
+
+ * docs/VERSION.DLL: Update documentation and bump version number to
+ 2.6.
+
+ * README, Jamfile (RefDoc), builds/windows/vc2005/freetype.vcproj,
+ builds/windows/vc2005/index.html,
+ builds/windows/vc2008/freetype.vcproj,
+ builds/windows/vc2008/index.html,
+ builds/windows/vc2010/freetype.vcxproj,
+ builds/windows/vc2010/index.html,
+ builds/windows/visualc/freetype.dsp,
+ builds/windows/visualc/freetype.vcproj,
+ builds/windows/visualc/index.html,
+ builds/windows/visualce/freetype.dsp,
+ builds/windows/visualce/freetype.vcproj,
+ builds/windows/visualce/index.html,
+ builds/wince/vc2005-ce/freetype.vcproj,
+ builds/wince/vc2005-ce/index.html,
+ builds/wince/vc2008-ce/freetype.vcproj,
+ builds/wince/vc2008-ce/index.html: s/2.5.5/2.6/, s/255/26/.
+
+ * include/freetype/freetype.h (FREETYPE_MINOR): Set to 6.
+ (FREETYPE_PATCH): Set to 0.
+
+ * builds/unix/configure.raw (version_info): Set to 18:0:12.
+ * CMakeLists.txt (VERSION_MINOR): Set to 6.
+ (VERSION_PATCH): Set to 0.
+
+ * src/autofit/afmodule.c [!FT_MAKE_OPTION_SINGLE_OBJECT]: Add
+ declarations for dumping functions.
+
+ * src/truetype/ttinterp.c (TT_New_Context): Pacify compiler.
+
+ * builds/toplevel.mk: Use `freetype.mk's code to compute the version
+ string.
+ Don't include a zero patch level in version string.
+ * builds/freetype.mk: Remove code for computing the version string.
+
+2015-06-06 Ashish Azad <ashish.azad@samsung.com>
+
+ Fix Savannah bug #45260.
+
+ * src/pfr/pfrdrivr.c (pfr_get_kerning): Fix typo.
+
+2015-06-03 Werner Lemberg <wl@gnu.org>
+
+ [truetype] Fix memory leak.
+
+ Problem reported by Grissiom <chaos.proton@gmail.com>; in
+
+ https://lists.nongnu.org/archive/html/freetype/2015-05/msg00013.html
+
+ there is an example code to trigger the bug.
+
+ * src/truetype/ttobjs.c (tt_size_init_bytecode): Free old `size'
+ data before allocating again. Bug most probably introduced four
+ years ago in version 2.4.3.
+
+2015-06-02 Werner Lemberg <wl@gnu.org>
+
+ [raster] Add more tracing.
+
+ * src/raster/ftraster.c (FT_TRACE7) [_STANDALONE_]: Define.
+ (Vertical_Sweep_Span, Vertical_Sweep_Drop, Horizontal_Sweep_Span,
+ Horizontal_Sweep_Drop, Render_Glyph): Add tracing calls.
+
+2015-06-01 Werner Lemberg <wl@gnu.org>
+
+ [truetype] While tracing opcodes, show code position and stack.
+
+ * src/truetype/ttinterp.c: Change all existing TRACE7 calls to
+ TRACE6.
+ (opcode_name): Add string lengths.
+ (TT_RunIns): Implement display of code position and stack.
+
+2015-05-31 Werner Lemberg <wl@gnu.org>
+
+ [truetype] In GX, make private point numbers work correctly.
+
+ This is completely missing in Apple's documentation: If a `gvar'
+ tuple uses private point numbers (this is, deltas are specified for
+ some points only), the uncovered points must be interpolated for
+ this tuple similar to the IUP bytecode instruction. Examples that
+ need this functionality are glyphs `Oslash' and `Q' in Skia.ttf.
+
+ * src/truetype/ttgxvar.c (tt_delta_shift, tt_delta_interpolate,
+ tt_handle_deltas): New functions.
+ (TT_Vary_Get_Glyph_Deltas): Renamed to...
+ (TT_Vary_Apply_Glyph_Deltas): ... this; it directly processes the
+ points and does no longer return an array of deltas.
+ Add tracing information.
+ Call `tt_handle_deltas' to interpolate missing deltas.
+ Also fix a minor memory leak in case of error.
+
+ * src/truetype/ttgxvar.h: Updated.
+
+ * src/truetype/ttgload.c (TT_Process_Simple_Glyph,
+ load_truetype_glyph): Updated.
+
+2015-05-31 Werner Lemberg <wl@gnu.org>
+
+ [truetype] In GX, make intermediate tuplets work at extrema.
+
+ * src/truetype/ttgxvar.c (ft_var_apply_tuple): Fix range condition.
+
+2015-05-31 Werner Lemberg <wl@gnu.org>
+
+ [truetype] Add tracing information to GX code.
+
+ * src/truetype/ttgxvar.c (ft_var_load_avar, ft_var_load_gvar,
+ ft_var_apply_tuple, TT_Get_MM_Var, TT_Set_MM_Blend,
+ TT_Set_Var_Design, tt_face_vary_cvt): Do it.
+
+2015-05-28 Werner Lemberg <wl@gnu.org>
+
+ * src/tools/apinames.c (names_dump): Fix invalid reference.
+
+ Problem reported by Guzman Mosqueda, Jose R
+ <jose.r.guzman.mosqueda@intel.com>.
+
+2015-05-24 Werner Lemberg <wl@gnu.org>
+
+ [truetype] Fix commit from 2015-05-22.
+
+ * src/truetype/ttgload.c, src/truetype/ttinterp.c: Guard new code
+ with `TT_CONFIG_OPTION_SUBPIXEL_HINTING'.
+
+ Problem reported by Nikolaus Waxweiler <madigens@gmail.com>.
+
+2015-05-23 Werner Lemberg <wl@gnu.org>
+
+ [truetype] Fix return values of GETINFO bytecode instruction.
+
+ * src/truetype/ttinterp.h (TT_ExecContextRec): New fields
+ `vertical_lcd' and `gray_cleartype'.
+
+ * src/truetype/ttgload.c (tt_loader_init): Initialize new fields.
+ Change `symmetrical smoothing' to TRUE, since FreeType produces
+ exactly this.
+
+ * src/truetype/ttinterp.c (Ins_GETINFO): Fix selector/return bit
+ values for symmetrical smoothing, namely 11/18.
+ Handle bits for vertical LCD subpixels (8/15) and Gray ClearType
+ (12/19).
+
+2015-05-23 Werner Lemberg <wl@gnu.org>
+
+ [truetype] Minor.
+
+ * src/truetype/ttinterp.h (TT_ExecContext):
+ s/subpixel/subpixel_hinting.
+
+ * src/truetype/ttgload.c, src/truetype/ttgload.h: Updated.
+
+2015-05-22 Werner Lemberg <wl@gnu.org>
+
+ [truetype] Support selector index 3 of the INSTCTRL instruction.
+
+ This flag activates `native ClearType hinting', disabling backward
+ compatibility mode as described in Greg Hitchcocks whitepaper. In
+ other words, it enables unrestricted functionality of all TrueType
+ instructions in ClearType.
+
+ * src/truetype/ttgload.c (tt_get_metrics): Call `sph_set_tweaks'
+ unconditionally.
+ (tt_loader_init): Unset `ignore_x_mode' flag if bit 2 of
+ `GS.instruct_control' is active.
+
+ * src/truetype/ttinterp.c (Ins_INSTCTRL): Handle selector index 3.
+ (Ins_GETINFO): Updated.
+
+ * docs/CHANGES: Document it.
+
+2015-05-20 Werner Lemberg <wl@gnu.org>
+
+ [truetype] Minor.
+
+ * src/truetype/ttinterp.h (SetSuperRound): Fix type of `GridPeriod'
+ argument.
+
+2015-05-17 Werner Lemberg <wl@gnu.org>
+
+ [truetype] Fix loading of composite glyphs.
+
+ * src/truetype/ttgload.c (TT_Load_Composite_Glyph): If the
+ ARGS_ARE_XY_VALUES flag is not set, handle argument values as
+ unsigned. I trust `ttx' (which has exactly such code) that it does
+ the right thing here...
+
+ The reason that noone has ever noticed this bug is probably the fact
+ that point-aligned subglyphs are rare, as are subglyphs with a
+ number of points in the range [128;255], which is quite large (or
+ even in the range [32768;65535], which is extremely unlikely).
+
+2015-05-12 Chris Liddell <chris.liddell@artifex.com>
+
+ [cff] Make the `*curveto' operators more tolerant.
+
+ * src/cff/cf2intrp.c (cf2_interpT2CharString): The opcodes
+ `vvcurveto', `hhcurveto', `vhcurveto', and `hvcurveto' all iterate,
+ pulling values off the stack until the stack is exhausted.
+ Implicitly the stack must be a multiple (or for subtly different
+ behaviour) a multiple plus a specific number of extra values deep.
+ If that's not the case, enforce it (as the old code did).
+
+2015-05-12 Chris Liddell <chris.liddell@artifex.com>
+
+ [cff] fix incremental interface with new cff code.
+
+ * src/cff/cf2ft.c (cf2_getSeacComponent): When using the incremental
+ interface to retrieve glyph data for a SEAC, it be left to the
+ incremental interface callback to apply the encoding to raw
+ character index (as it was in the previous code).
+
+2015-04-29 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ [autofit] Speed up IUP.
+
+ * src/autofit/afhints.c (af_iup_interp): Separate trivial snapping to
+ the same position from true interpolation, use `scale' to reduce
+ divisions.
+
+2015-04-28 Werner Lemberg <wl@gnu.org>
+
+ [cff] Use `name' table for PS name if we have a SFNT-CFF.
+
+ This follows the OpenType 1.7 specification. See
+
+ https://tug.org/pipermail/tex-live/2015-April/036634.html
+
+ for a discussion.
+
+ * src/cff/cffdrivr.c (cff_get_ps_name): Use the `sfnt' service if we
+ have an SFNT.
+
+2015-04-27 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ [truetype] Speed up IUP.
+
+ * src/truetype/ttinterp.c (_iup_worker_interpolate): Separate trivial
+ snapping to the same position from true interpolation.
+
+2015-04-21 Werner Lemberg <wl@gnu.org>
+
+ [autofit] By default, enable warping code but switch off warping.
+
+ Suggested by Behdad.
+
+ * include/config/ftoption.h: Define AF_CONFIG_OPTION_USE_WARPER.
+
+ * src/autofit/afmodule.c (af_autofitter_init): Initialize `warping'
+ with `false'.
+
+2015-04-21 Werner Lemberg <wl@gnu.org>
+
+ * docs/CHANGES: Updated.
+
+2015-04-21 Werner Lemberg <wl@gnu.org>
+
+ [autofit] Introduce `warping' property.
+
+ This code replaces the debugging hook from the previous commit with
+ a better, more generic solution.
+
+ * include/ftautoh.h: Document it.
+
+ * src/autofit/afmodule.h (AF_ModuleRec)
+ [AF_CONFIG_OPTION_USE_WARPER]: Add `warping' field.
+
+ * src/autofit/afmodule.c (_af_debug_disable_warper): Remove.
+ (af_property_set, af_property_get, af_autofitter_init)
+ [AF_CONFIG_OPTION_USE_WARPER]: Handle `warping' option.
+
+ * src/autofit/afhints.h (AF_HINTS_DO_WARP): Remove use of the no
+ longer existing `_af_debug_disable_warper'.
+
+ * src/autofit/afcjk.c (af_cjk_hints_init), src/autofit/aflatin.c
+ (af_latin_hints_init), src/autofit/aflatin2.c (af_latin2_hints_init)
+ [AF_CONFIG_OPTION_USE_WARPER]: Add `AF_SCALER_FLAG_NO_WARPER' to the
+ scaler flags if warping is off.
+
+ * src/autofit/aftypes.h: Updated.
+
+2015-04-16 Werner Lemberg <wl@gnu.org>
+
+ [autofit] Add debugging hook to disable warper.
+
+ * src/autofit/afmodule.c (_af_debug_disable_warper)
+ [FT_DEBUG_AUTOFIT]: New global variable.
+
+ * src/autofit/aftypes.h: Updated.
+ (AF_SCALER_FLAG_NO_WARPER): New macro (not actively used yet).
+
+ * src/autofit/afhints.h (AF_HINTS_DO_WARP): New macro.
+
+ * src/autofit/aflatin.c (af_latin_hints_apply)
+ [AF_CONFIG_OPTION_USE_WARPER]: Use `AF_HINTS_DO_WARP' to control use
+ of warper.
+
+ * src/autofit/afcjk.c (af_cjk_hints_init, af_cjk_hints_apply)
+ [AF_CONFIG_OPTION_USE_WARPER]: Synchronize with `aflatin.c'.
+
+ * src/autofit/aflatin2.c (af_latin2_hints_apply)
+ [AF_CONFIG_OPTION_USE_WARPER]: Synchronize with `aflatin.c'.
+
+2015-04-10 Werner Lemberg <wl@gnu.org>
+
+ [cff] Update advance width handling to OpenType 1.7.
+
+ Problem reported by Behdad.
+
+ * src/cff/cffdrivr.c (cff_get_advances): Handle SFNT case
+ separately.
+
+ * src/cff/cffgload.c (cff_slot_load): Use advance width and side
+ bearing values from `hmtx' table if present.
+
+2015-04-03 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ * src/autofit/afhints.c (af_glyph_hints_reload): Use do-while loop.
+
+2015-04-02 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ * src/autofit/aflatin.c (af_latin_hint_edges): Reduce logic.
+
+2015-04-01 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ [autofit] Finish the thought.
+
+ * src/autofit/afhints.c (af_direction_compute): make sure the long arm
+ is never negative so that its `FT_ABS' is not necessary.
+
+2015-04-01 Werner Lemberg <wl@gnu.org>
+
+ [autofit] Call dumper functions for tracing.
+
+ * src/autofit/afcjk.c (af_cjk_hints_apply): Remove dead code.
+ * src/autofit/afhints.c (af_glyph_hints_dump_points): Minor
+ improvement.
+ * src/autofit/afmodule.c (af_autofitter_load_glyph): Implement it.
+
+2015-04-01 Werner Lemberg <wl@gnu.org>
+
+ [autofit] Make debugging stuff work again.
+
+ The interface to ftgrid was broken in the series of commits starting
+ with
+
+ [autofit] Allocate AF_Loader on the stack instead of AF_Module.
+
+ from 2015-01-14.
+
+ * src/autofit/afmodule.c (_af_debug_hints_rec) [FT_DEBUG_AUTOFIT]:
+ Use a global AF_GlyphHintsRec object for debugging.
+ (af_autofitter_done, af_autofitter_load_glyph): Updated.
+
+ * src/autofit/afloader.c (af_loader_init, af_loader_done): Updated.
+
+2015-04-01 Werner Lemberg <wl@gnu.org>
+
+ * src/autofit/afhints.c (af_glyph_hints_done): Fix minor thinko.
+
+2015-03-29 Werner Lemberg <wl@gnu.org>
+
+ [cff] Fix Savannah bug #44629.
+
+ * src/cff/cf2font.h (CF2_MAX_SUBR), src/cff/cffgload.h
+ (CFF_MAX_SUBRS_CALLS): Set to 16.
+
+2015-03-29 Werner Lemberg <wl@gnu.org>
+
+ [type1, truetype] Make the MM API more flexible w.r.t. `num_coords'.
+
+ This commit allows `num_coords' to be larger or smaller than the
+ number of available axes while selecting a design instance, either
+ ignoring excess data or using defaults if data is missing.
+
+ * src/truetype/ttgxvar.c (TT_Set_MM_Blend, TT_Set_Var_Design):
+ Implement it.
+
+ * src/type1/t1load.c (T1_Set_MM_Blend, T1_Set_MM_Design,
+ T1_Set_Var_Design): Ditto.
+
+2015-03-29 Werner Lemberg <wl@gnu.org>
+
+ [type1] Minor.
+
+ * src/type1/t1load.c (T1_Set_MM_Blend, T1_Set_MM_Design): Use
+ FT_THROW.
+ (T1_Set_Var_Design): Use T1_MAX_MM_AXIS and FT_THROW.
+
+2015-03-27 Werner Lemberg <wl@gnu.org>
+
+ [cff] Trace charstring nesting levels.
+
+ * src/cff/cf2intrp.c (cf2_interpT2CharString) <cf2_cmdCALLGSUBR,
+ cf2_cmdCALLSUBR, cf2_cmdRETURN>: Implement it.
+
+ * src/cff/cffgload.c (cff_decoder_parse_charstrings)
+ <cff_op_callsubr, cff_op_callgsubr, cff_op_return>: Ditto.
+
+2015-03-21 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ [base] Optimize `FT_Angle_Diff'.
+
+ Under normal circumstances we are usually close to the desired range
+ of angle values, so that the remainder is not really necessary.
+
+ * src/base/fttrigon.c (FT_Angle_Diff): Use loops instead of remainder.
+
+ * src/autofit/aftypes.h (AF_ANGLE_DIFF): Ditto in the unused macro.
+
+2015-03-21 Werner Lemberg <wl@gnu.org>
+
+ [truetype] Improve `gvar' handling.
+
+ * src/truetype/ttgxvar.c (ft_var_readpackedpoints): Correctly handle
+ single-element runs. Cf. glyph `Q' in Skia.ttf with weights larger
+ than the default.
+
+2015-03-20 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ * src/base/fttrigon.c (FT_Vector_Rotate): Minor refactoring.
+
+2015-03-17 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ Fix Savannah bug #44412 (part 2).
+
+ * src/base/fttrigon.c (FT_Sin, FT_Cos, FT_Tan): Call `FT_Vector_Unit'.
+
+2015-03-11 Werner Lemberg <wl@gnu.org>
+
+ [autofit] Add support for Arabic script.
+
+ Thanks to Titus Nemeth <tn@tntypography.eu> for guidance!
+
+ * src/autofit/afblue.dat: Add blue zone data for Arabic.
+
+ * src/autofit/afblue.c, src/autofit/afblue.h: Regenerated.
+
+ * src/autofit/afscript.h: Add Arabic standard characters.
+
+ * src/autofit/afranges.c: Add Arabic data.
+
+ * src/autofit/afstyles.h: Add Arabic data.
+
+ * docs/CHANGES: Document it.
+
+2015-03-11 Werner Lemberg <wl@gnu.org>
+
+ Rename `svxf86nm.h' to `svfntfmt.h'; update related symbols.
+
+ * include/internal/ftserv.h (FT_SERVICE_XFREE86_NAME_H): Renamed
+ to...
+ (FT_SERVICE_FONT_FORMAT_H): This.
+
+ * include/internal/services/svfntfmt.h (FT_XF86_FORMAT_*): Renamed
+ to ...
+ (FT_FONT_FORMAT_*): This.
+
+ src/base/ftfntfmt.c, src/bdf/bdfdrivr.c, src/cff/cffdrivr.c,
+ src/cid/cidriver.c, src/pcf/pcfdrivr.c, src/pfr/pfrdrivr.c,
+ src/truetype/ttdriver.c, src/type1/t1driver.c,
+ src/type42/t42drivr.c, src/winfonts/winfnt.c: Updated.
+
+2015-03-11 Werner Lemberg <wl@gnu.org>
+
+ [base] Rename `FT_XFREE86_H' to `FT_FONT_FORMATS_H'.
+
+ * include/config/ftheader.h: Implement it.
+ * src/base/ftfntfmt.c, docs/CHANGES: Updated.
+
+2015-03-11 Werner Lemberg <wl@gnu.org>
+
+ [base] Rename `FT_Get_X11_Font_Format' to `FT_Get_Font_Format'.
+
+ * include/ftfntfmt.h, src/base/ftfntfmt.c: Implement it.
+
+ * docs/CHANGES: Updated.
+
+2015-03-11 Werner Lemberg <wl@gnu.org>
+
+ Fix automatic copyright updating.
+
+ * src/tools/update-copyright: Make scanning of `no-copyright'
+ actually work.
+
+ * src/tools/no-copyright: Don't include README in general.
+
+2015-03-11 Werner Lemberg <wl@gnu.org>
+
+ Rename `ftxf86.[ch]' to `ftfntfmt.[ch]'.
+
+ CMakeLists.txt, builds/amiga/makefile, builds/amiga/makefile.os4,
+ builds/amiga/smakefile, builds/mac/FreeType.m68k_cfm.make.txt,
+ builds/mac/FreeType.m68k_far.make.txt,
+ builds/mac/FreeType.ppc_carbon.make.txt,
+ builds/mac/FreeType.ppc_classic.make.txt, builds/symbian/bld.inf,
+ builds/symbian/freetype.mmp, builds/wince/vc2005-ce/freetype.vcproj,
+ builds/wince/vc2008-ce/freetype.vcproj,
+ builds/windows/vc2005/freetype.vcproj,
+ builds/windows/vc2008/freetype.vcproj,
+ builds/windows/vc2010/freetype.vcxproj,
+ builds/windows/vc2010/freetype.vcxproj.filters,
+ builds/windows/visualc/freetype.dsp,
+ builds/windows/visualc/freetype.vcproj,
+ builds/windows/visualce/freetype.dsp,
+ builds/windows/visualce/freetype.vcproj, docs/INSTALL.ANY,
+ include/config/ftheader.h, include/ftfntfmt.h, modules.cfg,
+ src/base/ftfntfmt.c, vms_make.com: Updated.
+
+2015-03-10 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ Fix Savannah bug #44412 (part 1).
+
+ * src/base/ftstroke.c (ft_stroker_inside): Handle near U-turns.
+
+2015-03-10 Werner Lemberg <wl@gnu.org>
+
+ [base] Rename `FT_Bitmap_New' to `FT_Bitmap_Init'.
+
+ * include/ftbitmap.h, src/base/ftbitmap.c: Implement it.
+ Update all callers.
+
+ * docs/CHANGES: Updated.
+
+2015-03-06 Werner Lemberg <wl@gnu.org>
+
+ * src/sfnt/ttload.c (tt_face_load_font_dir): Fix compiler warning.
+
+ Found by Alexei.
+
+2015-03-05 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ * src/base/ftstroke.c: Simplify.
+
+2015-03-04 Werner Lemberg <wl@gnu.org>
+
+ [truetype] Some fixes and code refactoring in `ttgxvar.c'.
+
+ * src/truetype/ttgxvar.c (ft_var_readpackedpoints): Fix return value
+ of `point_cnt' if two bytes are read.
+ Use a more vertical coding style.
+ (ft_var_readpackeddeltas): Use FT_UInt for `delta_cnt' parameter.
+ Use a more vertical coding style.
+
+2015-03-03 Werner Lemberg <wl@gnu.org>
+
+ [autofit] Fix Savannah bug #44241.
+
+ * src/autofit/aflatin.c (af_latin_metrics_init_blues): Reject glyphs
+ with less than 3 points.
+
+2015-03-02 Werner Lemberg <wl@gnu.org>
+
+ Simplify `TYPEOF' macro.
+
+ No need for two arguments.
+
+ * include/config/ftconfig.h, builds/unix/ftconfig.in,
+ builds/vms/ftconfig.h (TYPEOF): Updated.
+
+ * include/internal/ftobjs.h (FT_PAD_FLOOR, FT_PIX_FLOOR),
+ src/autofit/afwarp.h (AF_WARPER_FLOOR): Updated.
+
+2015-03-01 Werner Lemberg <wl@gnu.org>
+
+ Various compiler warning fixes for `make multi'.
+
+ * src/autofit/afcjk.c (af_cjk_hints_compute_blue_edges),
+ src/autofit/aflatin.c (af_latin_hint_compute_blue_edges,
+ af_latin_hint_edges), src/autofit/aflatin2.c
+ (af_latin2_hints_compute_blue_edges, af_latin2_hint_edges): Declare
+ as `static'.
+
+ * src/cache/ftccmap.c (FTC_CMAP_QUERY_HASH, FTC_CMAP_NODE_HASH):
+ Removed. Unused.
+ * src/cache/ftcimage.c: Include FT_INTERNAL_OBJECTS_H.
+ * src/cache/ftcmanag.c (FTC_LRU_GET_MANAGER): Removed. Unused.
+
+ * src/cff/cf2intrp.c: Include `cf2intrp.h'.
+ * src/cff/cffdrivr.c (PAIR_TAG): Removed. Unused.
+
+ * src/gzip/ftgzip.c (NO_DUMMY_DECL): Removed. Unused.
+
+ * src/psaux/afmparse.c (afm_parser_read_int): Declare as `static'.
+
+ * src/pshinter/pshalgo.c (STRONGER, PSH_ZONE_MIN, PSH_ZONE_MAX):
+ Removed. Unused.
+
+ * src/raster/ftraster.c (Render_Glyph): Declare as `static'.
+
+ * src/sfnt/ttpost.c (load_format_20): Fix signedness warning.
+
+ * src/truetype/ttdriver.c (PAIR_TAG): Removed. Unused.
+ * src/truetype/ttsubpix.c (is_member_of_family_class,
+ is_member_of_style_class): Declare as `static'.
+
+ * src/type1/t1gload.c (T1_Parse_Glyph_And_Get_Char_String): Declare
+ as `static'.
+ * src/type1/t1load.c (mm_axis_unmap, mm_weights_unmap): Declare as
+ `static'.
+ (T1_FIELD_COUNT): Removed. Unused.
+ * src/type1/t1parse.h (T1_Done_Table): Removed. Unused.
+
+ * src/type42/t42parse.c (T1_Done_Table): Removed. Unused.
+
+2015-02-25 Werner Lemberg <wl@gnu.org>
+
+ [psaux] Signedness fixes.
+
+ * include/internal/psaux.h, src/psaux/afmparse.c,
+ src/psaux/afmparse.h, src/psaux/psconv.c, src/psaux/psobjs.c,
+ src/psaux/t1cmap.c, src/psaux/t1decode.c: Apply.
+
+2015-02-25 Werner Lemberg <wl@gnu.org>
+
+ [otvalid] Signedness fixes.
+
+ * src/otvalid/otvcommn.c, src/otvalid/otvgdef.c,
+ src/otvalid/otvgpos.c, src/otvalid/otvgsub.c, src/otvalid/otvmath.c:
+ Apply.
+
+2015-02-25 Werner Lemberg <wl@gnu.org>
+
+ * src/bzip2/ftbzip2.c (ft_bzip2_alloc): Signedness fix.
+
+2015-02-25 Werner Lemberg <wl@gnu.org>
+
+ [lzw] Signedness fixes.
+
+ * src/lzw/ftzopen.c, src/lzw/ftzopen.h: Apply.
+
+2015-02-25 Werner Lemberg <wl@gnu.org>
+
+ [gxvalid] Signedness fixes.
+
+ * src/gxvalid/gxvbsln.c, src/gxvalid/gxvcommn.c,
+ src/gxvalid/gxvcommn.h, src/gxvalid/gxvjust.c,
+ src/gxvalid/gxvkern.c, src/gxvalid/gxvlcar.c, src/gxvalid/gxvmort.c,
+ src/gxvalid/gxvmort1.c, src/gxvalid/gxvmort2.c,
+ src/gxvalid/gxvmorx.c, src/gxvalid/gxvmorx1.c,
+ src/gxvalid/gxvmorx2.c, src/gxvalid/gxvopbd.c,
+ src/gxvalid/gxvprop.c, src/gxvalid/gxvtrak.c: Apply.
+
+2015-02-25 Werner Lemberg <wl@gnu.org>
+
+ [cache] Signedness fixes.
+
+ * src/cache/ftcbasic.c, src/cache/ftccmap.c, src/cache/ftcimage.c,
+ src/cache/ftcmanag.c, src/cache/ftcsbits.c: Apply.
+
+2015-02-25 Werner Lemberg <wl@gnu.org>
+
+ Change dimension fields in `FTC_ImageTypeRec' to unsigned type.
+
+ This doesn't break ABI.
+
+ * include/ftcache.h (FTC_ImageTypeRec): Use unsigned types for
+ `width' and `height'.
+
+ * docs/CHANGES: Document it.
+
+2015-02-25 Werner Lemberg <wl@gnu.org>
+
+ [cache] Don't use `labs'.
+
+ This is the only place in FreeType where this function was used.
+
+ * include/config/ftstdlib.h (ft_labs): Remove.
+
+ * src/cache/ftcimage.c (ftc_inode_weight): Replace `ft_labs' with
+ `FT_ABS'.
+
+2015-02-23 Werner Lemberg <wl@gnu.org>
+
+ [cache] Replace `FT_PtrDist' with `FT_Offset'.
+
+ * src/cache/ftccache.h (FTC_NodeRec): `FT_Offset' (a.k.a. `size_t')
+ is a better choice for `hash' to hold a pointer than `FT_PtrDist'
+ (a.k.a. `ptrdiff_t'), especially since the latter is signed,
+ causing zillions of signedness warnings. [Note that `hash' was of
+ type `FT_UInt32' before the change to `FT_PtrDist'.]
+ Update all users.
+
+ * src/cache/ftcbasic.c, src/cache/ftccache.c, src/cache/ftccmap.c,
+ src/cache/ftcglyph.c, src/cache/ftcglyph.h: Updated.
+
+2015-02-23 Werner Lemberg <wl@gnu.org>
+
+ [smooth, raster] Re-enable standalone compilation.
+
+ * src/raster/ftraster.c (FT_RENDER_POOL_SIZE, FT_MAX)
+ [_STANDALONE_]: Define macros.
+
+ * src/smooth/ftgrays.c (FT_RENDER_POOL_SIZE, FT_MAX, FT_ABS,
+ FT_HYPOT) [_STANDALONE_]: Define macros.
+
+2015-02-22 Werner Lemberg <wl@gnu.org>
+
+ [smooth] Signedness fixes.
+
+ * src/smooth/ftgrays.c, src/smooth/ftsmooth.c: Apply.
+
+2015-02-22 Werner Lemberg <wl@gnu.org>
+
+ * src/raster/ftraster.c: Use the file's typedefs everywhere.
+
+2015-02-22 Werner Lemberg <wl@gnu.org>
+
+ * src/sfnt/ttpost.c (load_format_20): Fix error tracing message.
+
+ Bug introduced 6 commits earlier.
+
+2015-02-22 Werner Lemberg <wl@gnu.org>
+
+ [pshinter] Fix thinko.
+
+ * src/pshinter/pshalgo.c (psh_glyph_find_strong_points): Correctly
+ check `count'.
+ Bug introduced two commits earlier.
+
+2015-02-22 Werner Lemberg <wl@gnu.org>
+
+ [raster] Signedness fixes.
+
+ * src/raster/ftraster.c, src/raster/ftrend1.c: Apply.
+
+2015-02-22 Werner Lemberg <wl@gnu.org>
+
+ [pshinter] Signedness fixes.
+
+ * src/pshinter/pshalgo.c, src/pshinter/pshglob.c,
+ src/pshinter/pshrec.c: Apply.
+
+2015-02-22 Werner Lemberg <wl@gnu.org>
+
+ [pshinter] Use macros for (unsigned) flags, not enumerations.
+
+ * src/pshinter/pshalgo.h (PSH_Hint_Flags): Replace with macros.
+ Updated.
+ * src/pshinter/pshrec.h (PS_Hint_Flags): Replace with macros.
+
+2015-02-22 Werner Lemberg <wl@gnu.org>
+
+ * src/pshinter/pshrec.c: Simplify.
+ (ps_hints_open, ps_hints_stem): Remove switch statement.
+
+2015-02-22 Werner Lemberg <wl@gnu.org>
+
+ [sfnt] Signedness fixes.
+
+ * src/sfnt/pngshim.c, src/sfnt/sfobjs.c, src/sfnt/ttcmap.c,
+ src/sfnt/ttkern.c, src/sfnt/ttload.c, src/sfnt/ttpost.c,
+ src/sfnt/ttsbit.c: Apply.
+ * src/sfnt/sfdriver.c: Apply.
+ (sfnt_get_ps_name): Simplify.
+
+2015-02-22 Werner Lemberg <wl@gnu.org>
+
+ [bdf] Signedness fixes.
+
+ * src/bdf/bdf.h, src/bdf/bdfdrivr.c, src/bdf/bdfdrivr.h,
+ src/bdf/bdflib.c: Apply.
+
+2015-02-22 Werner Lemberg <wl@gnu.org>
+
+ * src/bdf/bdflib.c (_bdf_atous): New function.
+ (_bdf_parse_glyphs, _bdf_parse_start): Use it.
+
+2015-02-22 Werner Lemberg <wl@gnu.org>
+
+ [pcf] Signedness fixes.
+
+ * src/pcf/pcf.h, src/pcf/pcfdrivr.c: Apply.
+ * src/pcf/pcfread.c: Apply.
+ (pcf_get_encodings): Ignore invalid negative encoding offsets.
+
+2015-02-21 Werner Lemberg <wl@gnu.org>
+
+ * src/winfonts/winfnt.c: Signedness fixes.
+
+2015-02-21 Werner Lemberg <wl@gnu.org>
+
+ [type42] Signedness fixes.
+
+ * src/type42/t42parse.c, src/type42/t42parse.h,
+ src/type42/t42types.h: Apply.
+
+2015-02-21 Werner Lemberg <wl@gnu.org>
+
+ [pfr] Signedness fixes.
+
+ * src/pfr/pfrdrivr.c, src/pfr/pfrgload.c, src/pfr/pfrload.c,
+ src/pfr/pfrload.h, src/pfr/pfrobjs.c, src/pfr/pfrsbit.c,
+ src/pfr/pfrtypes.h: Apply.
+
+2015-02-21 Werner Lemberg <wl@gnu.org>
+
+ [cff] Minor signedness fixes related to last commit.
+
+ * src/cff/cf2ft.c, src/cff/cf2intrp.c, src/cff/cffgload.c: Apply.
+
+2015-02-20 Werner Lemberg <wl@gnu.org>
+
+ [cff] Thinkos in bias handling.
+
+ Only the final result is always positive.
+
+ Bug introduced three commits earlier.
+
+ * src/cff/cffgload.c, src/cff/cffgload.h: Apply.
+
+2015-02-20 Werner Lemberg <wl@gnu.org>
+
+ [cid] Fix signedness issues and emit some better error codes.
+
+ * src/cid/cidgload.c, src/cid/cidload.h, src/cid/cidobjs.c,
+ src/cid/cidparse.h: Apply.
+ * src/cid/cidload.c: Apply.
+ (parse_fd_array): Reject negative values for number of dictionaries.
+ * src/cid/cidparse.c: Apply.
+ (cid_parser_new): Reject negative values for hex data length.
+
+2015-02-20 Werner Lemberg <wl@gnu.org>
+
+ [cff] Signedness fixes for new engine.
+
+ * src/cff/cf2arrst.c, src/cff/cf2fixed.h, src/cff/cf2ft.c,
+ src/cff/cf2ft.h, src/cff/cf2hints.c, src/cff/cf2intrp.c: Apply.
+
+2015-02-20 Werner Lemberg <wl@gnu.org>
+
+ [cff] Signedness fixes for basic infrastructure and old engine.
+
+ * include/internal/pshints.h, src/cff/cffdrivr.c,
+ src/cff/cffgload.c, src/cff/cffgload.h, src/cff/cffload.c,
+ src/cff/cffobjs.c, src/cff/cffparse.c, src/pshinter/pshrec.c: Apply.
+
+2015-02-19 Werner Lemberg <wl@gnu.org>
+
+ * src/truetype/ttgxvar.c (TT_Get_MM_Var): Ignore `countSizePairs'.
+
+ This is hard-coded to value 2 in `fvar' version 1.0 (and no newer
+ version exists), but some fonts set it incorrectly.
+
+ Problem reported by Adam Twardoch <adam@fontlab.com>.
+
+2015-02-19 Werner Lemberg <wl@gnu.org>
+
+ [cff] Emit better error code for invalid private dict size.
+
+ * src/cff/cffparse.c (cff_parse_private_dict): Reject negative
+ values for size and offset.
+
+2015-02-19 Werner Lemberg <wl@gnu.org>
+
+ [autofit] Fix signedness issues.
+
+ * src/autofit/afangles.c, src/autofit/afcjk.c,
+ src/autofit/afglobal.c, src/autofit/afhints.c,
+ src/autofit/aflatin.c, src/autofit/aflatin2.c, src/autofit/afwarp.c,
+ src/autofit/hbshim.c: Apply.
+
+2015-02-19 Werner Lemberg <wl@gnu.org>
+
+ [autofit] Use macros for (unsigned) flags, not enumerations.
+
+ This harmonizes with other code in FreeType (and reduces the number
+ of necessary casts to avoid compiler warnings).
+
+ * src/autofit/afblue.hin: Make flag macros unsigned.
+ * src/autofit/afblue.h: Regenerated.
+
+ * src/autofit/afcjk.h: Replace flag enumeration with macros.
+ * src/autofit/afcjk.c: Updated.
+
+ * src/autofit/afhints.h (AF_Flags, AF_Edge_Flags): Replace with
+ macros.
+ * src/autofit/afhints.c: Updated.
+
+ * src/autofit/aflatin.h: Replace flag enumerations with macros.
+ * src/autofit/aflatin.c, src/autofit/aflatin2.c: Updated.
+
+ * src/autofit/aftypes.h (AF_ScalerFlags): Replace with macros.
+
+2015-02-18 Werner Lemberg <wl@gnu.org>
+
+ [type1] Fix signedness issues.
+
+ * include/internal/psaux.h, include/internal/t1types.h,
+ src/psaux/psobjs.c, src/psaux/psobjs.h, src/psaux/t1decode.c,
+ src/type1/t1gload.c, src/type1/t1load.c, src/type1/t1parse.c: Apply.
+
+2015-02-18 Werner Lemberg <wl@gnu.org>
+
+ [psaux, type1] Fix minor AFM issues.
+
+ * include/internal/t1types.h (AFM_KernPairRec): Make indices
+ unsigned.
+ Update users.
+ (AFM_FontInfoRec): Make element counters unsigned.
+ Update users.
+ * src/psaux/afmparse.h (AFM_ValueRec): Add union member for unsigned
+ int.
+
+ * src/psaux/afmparse.c (afm_parse_track_kern, afm_parse_kern_pairs):
+ Reject negative values for number of kerning elements.
+
+ * src/type1/t1afm.c, src/tools/test_afm.c: Updated.
+
+2015-02-18 Werner Lemberg <wl@gnu.org>
+
+ Don't use `FT_PtrDist' for lengths.
+
+ Use FT_UInt instead.
+
+ * include/internal/psaux.h (PS_Table_FuncsRec, PS_TableRec,
+ T1_DecoderRec): Do it.
+
+ * include/internal/t1types.h (T1_FontRec): Ditto.
+
+ * src/cid/cidload.c (cid_parse_dict): Updated.
+ * src/pfr/pfrload.c (pfr_extra_item_load_font_id): Ditto.
+ * src/psaux/psobjs.c (ps_table_add), src/psaux/psobjs.h: Ditto.
+ * src/type1/t1load.c (parse_blend_axis_types, parse_encoding,
+ parse_charstrings, parse_dict): Ditto.
+ * src/type42/t42parse.c (t42_parse_encoding, t42_parse_charstrings,
+ t42_parse_dict): Ditto.
+
+2015-02-18 Werner Lemberg <wl@gnu.org>
+
+ * src/type1/t1driver.c (t1_ps_get_font_value): Clean up.
+ This handles negative values better, avoiding many casts.
+
+2015-02-17 Werner Lemberg <wl@gnu.org>
+
+ [base] Fix Savannah bug #44284.
+
+ * src/base/ftcalc.c (FT_MulFix): Typos.
+
+2015-02-17 Werner Lemberg <wl@gnu.org>
+
+ [truetype] Finish compiler warning fixes for signedness issues.
+
+ * src/truetype/ttgxvar.c, src/truetype/ttsubpix.c,
+ src/truetype/ttsubpix.h: Apply.
+
+2015-02-17 Werner Lemberg <wl@gnu.org>
+
+ * src/truetype/ttsubpix.c: Adding missing `static' keywords.
+
+2015-02-17 Werner Lemberg <wl@gnu.org>
+
+ [truetype] More signedness fixes.
+
+ * include/internal/tttypes.h, src/truetype/ttinterp.h,
+ src/truetype/ttobjs.h, src/truetype/ttinterp.c,
+ src/truetype/ttobjs.c: Apply.
+
+2015-02-17 Werner Lemberg <wl@gnu.org>
+
+ [truetype] Various signedness fixes.
+
+ * include/internal/ftgloadr.h, src/truetype/ttpload.c: Apply.
+
+ * src/truetype/ttgload.c: Apply.
+ (TT_Get_VMetrics): Protect against invalid ascenders and descenders
+ while constructing advance height.
+
+2015-02-16 Werner Lemberg <wl@gnu.org>
+
+ [base] Finish compiler warning fixes for signedness issues.
+
+ * src/base/ftglyph.c, src/base/ftlcdfil.c, src/base/ftstroke.c:
+ Apply.
+
+2015-02-16 Werner Lemberg <wl@gnu.org>
+
+ * include/tttables.h (TT_OS2): `fsType' must be FT_UShort.
+
+2015-02-16 Werner Lemberg <wl@gnu.org>
+
+ More minor signedness warning fixes.
+
+ * src/base/ftbbox.c, src/base/ftbitmap.c, src/base/fttrigon.c,
+ src/base/ftutil.c: Apply.
+
+2015-02-16 Werner Lemberg <wl@gnu.org>
+
+ Next round of minor compiler warning fixes.
+
+ * include/internal/ftrfork.h (FT_RFork_Ref): Change `offset' member
+ type to `FT_Long'.
+ (CONST_FT_RFORK_RULE_ARRAY_BEGIN): Add `static' keyword.
+
+ * include/internal/ftstream.h (FT_Stream_Pos): Return `FT_ULong'.
+
+ * src/base/ftoutln.c, src/base/ftrfork.c, src/base/ftstream.c:
+ Signedness fixes.
+
+2015-02-16 Werner Lemberg <wl@gnu.org>
+
+ Various minor signedness fixes.
+
+ * include/ftadvanc.h, include/internal/ftobjs.h,
+ src/base/ftgloadr.c, src/base/ftobjs.c: Apply.
+
+2015-02-16 Werner Lemberg <wl@gnu.org>
+
+ New `TYPEOF' macro.
+
+ This helps suppress signedness warnings, avoiding issues with
+ implicit conversion changes.
+
+ * include/config/ftconfig.h, builds/unix/ftconfig.in,
+ builds/vms/ftconfig.h (TYPEOF): Define.
+
+ * include/internal/ftobjs.h (FT_PAD_FLOOR, FT_PIX_FLOOR),
+ src/autofit/afwarp.h (AF_WARPER_FLOOR): Use it.
+
+2015-02-16 Werner Lemberg <wl@gnu.org>
+
+ * src/base/ftsystem.c: Use casts in standard C function wrappers.
+ (ft_alloc, ft_realloc, ft_ansi_stream_io, FT_Stream_Open): Do it.
+
+2015-02-16 Werner Lemberg <wl@gnu.org>
+
+ Fix Savannah bug #44261.
+
+ * builds/unix/detect.mk (setup) [unix]: Set `CONFIG_SHELL' in the
+ environment also while calling the configure script.
+
+2015-02-16 Werner Lemberg <wl@gnu.org>
+
+ * include/internal/ftmemory.h: Add some `FT_Offset' casts.
+ (FT_MEM_SET, FT_MEM_COPY, FT_MEM_MOVE, FT_ARRAY_ZERO, FT_ARRAY_COPY,
+ FT_MEM_MOVE): Do it.
+
+2015-02-15 Werner Lemberg <wl@gnu.org>
+
+ [base] Clean up signedness issues in `ftdbgmem.c'.
+
+ Also fix other minor issues.
+
+ * src/base/ftdbgmem.c (FT_MemTableRec): Replace all FT_ULong types
+ with FT_Long for consistency.
+ (ft_mem_primes): Change type to `FT_Int'.
+ (ft_mem_closest_prime, ft_mem_table_set): Updated.
+
+ (ft_mem_debug_panic, ft_mem_debug_alloc, ft_mem_debug_free,
+ ft_mem_debug_realloc): Use `static' keyword and fix signedness
+ warnings where necessary.
+
+ (ft_mem_table_resize, ft_mem_table_new, ft_mem_table_destroy,
+ ft_mem_table_get_nodep, ft_mem_debug_init, FT_DumpMemory): Fix types
+ and add or remove casts to avoid signedness warnings.
+
+2015-02-15 Werner Lemberg <wl@gnu.org>
+
+ [base] Clean up signedness in arithmetic functions.
+
+ This makes the code more readable and reduces compiler warnings.
+
+ * src/base/ftcalc.c (FT_MulDiv, FT_MulDiv_No_Round, FT_MulFix,
+ FT_DivFix): Convert input parameters to unsigned, do the
+ computation, then convert the result back to signed.
+ (ft_corner_orientation): Fix casts.
+
+2015-02-07 Werner Lemberg <wl@gnu.org>
+
+ [sfnt] Fix Savannah bug #44184.
+
+ * src/sfnt/ttload.c (check_table_dir, tt_face_load_font_dir): No
+ longer reject `htmx' and `vmtx' tables with invalid length but
+ sanitize them.
+
+2015-02-06 Jon Anderson <jon@websupergoo.com>
+
+ [truetype] Fix regression in the incremental glyph loader.
+
+ * src/truetype/ttgload.c (load_truetype_glyph): For incremental
+ fonts, the glyph index may be greater than the number of glyphs
+ indicated, so guard the check with a preprocessor conditional.
+
+2015-02-06 Werner Lemberg <wl@gnu.org>
+
+ [autofit] Fix potential memory leak.
+
+ While this doesn't show up with FreeType, exactly the same code
+ leaks with ttfautohint's modified auto-hinter code (which gets used
+ in a slightly different way).
+
+ It certainly doesn't harm since it is similar to already existing
+ checks in the code for embedded arrays.
+
+ * src/autofit/afhints.c (af_glyph_hints_reload): Set `max_contours'
+ and `max_points' for all cases.
+
+2015-01-31 Werner Lemberg <wl@gnu.org>
+
+ [autofit] Add support for Thai script.
+
+ Thanks to Ben Mitchell <ben@rosettatype.com> for guidance with blue
+ zone characters!
+
+ * src/autofit/afblue.dat: Add blue zone data for Thai.
+
+ * src/autofit/afblue.c, src/autofit/afblue.h: Regenerated.
+
+ * src/autofit/afscript.h: Add Thai standard characters.
+
+ * src/autofit/afranges.c: Add Thai data.
+
+ * src/autofit/afstyles.h: Add Thai data.
+
+2015-01-23 Behdad Esfahbod <behdad@behdad.org>
+
+ [raster] Handle `FT_RASTER_FLAG_AA' correctly.
+
+ This fixes a breakage caused by the commit `[raster] Remove
+ 5-level gray AA mode from monochrome rasterizer.'.
+
+ Problem reported by Markus Trippelsdorf <markus@trippelsdorf.de>.
+
+ * src/raster/ftraster.c (ft_black_render): Handle
+ `FT_RASTER_FLAG_AA'.
+
+ * src/raster/ftrend1.c (ft_raster1_render): Remove gray AA mode
+ remnants.
+
+2015-01-18 Werner Lemberg <wl@gnu.org>
+
+ * src/base/ftobjs.c (FT_New_Library): Fix compiler warning.
+
+2015-01-18 Chris Liddell <chris.liddell@artifex.com>
+
+ [raster] Fix Savannah bug #44022.
+
+ Add fallback for glyphs with degenerate bounding boxes.
+
+ If a glyph has only one very narrow feature, the bbox can end up
+ with either the width or height of the bbox being 0, in which case
+ no raster memory is allocated and no attempt is made to render the
+ glyph. This is less than ideal when the drop-out compensation in
+ the rendering code would actually result in the glyph being
+ rendered.
+
+ This problem can be observed with the `I' glyph (gid 47) in the
+ Autodesk RomanS TrueType font.
+
+ * src/raster/ftrend1.c (ft_raster1_render): Add a fallback if either
+ dimension is zero to explicitly round up/down (instead of simply
+ round).
+
+2015-01-17 Werner Lemberg <wl@gnu.org>
+
+ Add some tools to handle yearly copyright notice updates.
+
+ We are now following the GNU guidelines: A new release automatically
+ means that the copyright year of all affected files gets updated; it
+ is no longer used to track years of modification changes.
+
+ * src/tools/update-copyright-year: New Perl script.
+ * src/tools/update-copyright: New shell script that calls
+ `update-copyright-year' on all files.
+ * src/tools/no-copyright: Exceptions that should not be handled by
+ `update-copyright'
+
+2015-01-14 Werner Lemberg <wl@gnu.org>
+
+ * docs/CHANGES: Updated, using a description from Behdad.
+
+2015-01-14 Behdad Esfahbod <behdad@behdad.org>
+
+ * src/autofit/afmodule.c (af_autofitter_done): Fix compiler warning.
+
+2015-01-14 Behdad Esfahbod <behdad@behdad.org>
+
+ [autofit] Add embedded array of segments and edges.
+
+ Avoids multiple mallocs per typical glyphs.
+
+ With this and recent changes to avoid mallocs, the thread-safe
+ stack-based loader is now as fast as the previous model that had one
+ cached singleton.
+
+ * src/autofit/afhints.h (AF_SEGMENTS_EMBEDDED, AF_EDGES_EMBEDDED):
+ New macros.
+ (AF_AxisHintsRec): Add two arrays for segments and edges.
+
+ * src/autofit/afhints.c (af_axis_hints_new_segment): Only allocate
+ data if number of segments exceeds given threshold value.
+ (af_axis_hints_new_edge): Only allocate data if number of edges
+ exceeds given threshold value.
+ (af_glyph_hints_done): Updated.
+
+2015-01-14 Behdad Esfahbod <behdad@behdad.org>
+
+ [autofit] Add embedded arrays for points and contours.
+
+ This avoids at least two malloc calls for typical glyphs.
+
+ * src/autofit/afhints.h (AF_POINTS_EMBEDDED, AF_CONTOURS_EMBEDDED):
+ New macros.
+ (AF_GlyphHintsRec): Add two arrays for contours and points.
+
+ * src/autofit/afhints.c (af_glyph_hints_init, af_glyph_hints_done):
+ Updated.
+ (af_glyph_hints_reload): Only allocate data if number of contours or
+ points exceeds given threshold values.
+
+2015-01-14 Behdad Esfahbod <behdad@behdad.org>
+
+ [autofit] Allocate hints object on the stack.
+
+ This avoids one malloc per load.
+
+ * src/autofit/afloader.h (AF_LoaderRec): Change type of `hints' to
+ `AF_GlyphHints'.
+ Update prototype.
+
+ * src/autofit/afloader.c (af_loader_init): Use `AF_GlyphHints'
+ parameter instead of `FT_Memory'.
+ (af_loader_done): Directly reset `load_hints'.
+ (af_loader_load_g): Updated.
+
+ * src/autofit/afmodule.c (af_autofitter_load_glyph): Use local
+ `hints' object.
+
+2015-01-14 Behdad Esfahbod <behdad@behdad.org>
+
+ [autofit] Reuse slot glyph loader.
+
+ No need to create a new glyph loader; we can reuse the one from
+ `slot->internal->loader'. It's hard to tell why it was written that
+ way originally, but new code looks sound and correct to me, and
+ avoids lots of allocations.
+
+ * src/autofit/afloader.c (af_loader_init): Change return type to
+ `void'.
+ Don't call `FT_GlyphLoader_New'.
+ (af_loader_reset): Don't call `FT_GlyphLoader_Rewind'.
+ (af_loader_load_g): Update code to use `internal->loader', which
+ doesn't need copying of data.
+
+ * src/autofit/afloader.h (AF_LoaderRec): Remove `gloader' member.
+ Update prototype.
+
+ * src/autofit/afmodule.c (af_autofitter_load_glyph): Updated.
+
+2015-01-14 Behdad Esfahbod <behdad@behdad.org>
+
+ [autofit] Remove (unused) support for composite glyphs.
+
+ We never have to deal with composite glyphs in the autohinter, as
+ those will be loaded into FORMAT_OUTLINE by the recursed
+ `FT_Load_Glyph' function.
+
+ In the rare cases that FT_LOAD_NO_RECURSE is set, it will imply
+ FT_LOAD_NO_SCALE as per `FT_Load_Glyph', which then implies
+ FT_LOAD_NO_HINTING:
+
+ /* resolve load flags dependencies */
+
+ if ( load_flags & FT_LOAD_NO_RECURSE )
+ load_flags |= FT_LOAD_NO_SCALE |
+ FT_LOAD_IGNORE_TRANSFORM;
+
+ if ( load_flags & FT_LOAD_NO_SCALE )
+ {
+ load_flags |= FT_LOAD_NO_HINTING |
+ FT_LOAD_NO_BITMAP;
+
+ load_flags &= ~FT_LOAD_RENDER;
+ }
+
+ and as such the auto-hinter is never called. Thus, the recursion in
+ `af_loader_load_g' never actually happens. So remove the depth
+ counter as well.
+
+ * src/autofit/afloader.c (af_loader_load_g): Remove `depth'
+ parameter.
+ <FT_GLYPH_FORMAT_COMPOSITE>: Remove associated code.
+ (af_loader_load_glyph): Updated.
+
+2015-01-14 Behdad Esfahbod <behdad@behdad.org>
+
+ [raster] Fix uninitialized memory access.
+
+ Apparently `ras.cProfile' might be uninitialized. This will be the
+ case if `ras.top == ras.cProfile->offset', as can be seen in
+ `End_Profile'. The overshoot code introduced in a change `Fix B/W
+ rasterization of subglyphs with different drop-out modes.' (from
+ 2009-06-18) violated this, accessing `ras.cProfile->flags'
+ unconditionally just before calling `End_Profile' (which then
+ detected that `cProfile' is uninitialized and didn't touch it).
+
+ This was harmless, and was not detected by valgrind before because
+ the objects were allocated on the `raster_pool', which was always
+ initialized. With recent change to allocate raster buffers on the
+ stack, valgrind now reported this invalid access.
+
+ * src/raster/ftraster.c (Convert_Glyph): Don't access an
+ uninitialized `cProfile'.
+
+2015-01-14 Behdad Esfahbod <behdad@behdad.org>
+
+ [smooth] Fix uninitialized memory access.
+
+ Looks like `ras.span_y' could always be used without initialization.
+ This was never detected by valgrind before because the library-wide
+ `raster_pool' was used for the worker object and `raster_pool' was
+ originally zero'ed. But subsequent reuses of it were using `span_y'
+ uninitialized. With the recent change to not use `render_pool' and
+ allocate worker and buffer on the stack, valgrind now detects this
+ uninitialized access.
+
+ * src/smooth/ftgrays.c (gray_raster_render): Initialize
+ `ras.span_y'.
+
+2015-01-14 Behdad Esfahbod <behdad@behdad.org>
+
+ [base] Don't initialize unused `driver->glyph_loader'.
+
+ * src/base/ftobjs.c (Destroy_Driver): Don't call
+ `FT_GlyphLoader_Done'.
+ (FT_Add_Module): Don't call `FT_GlyphLoader_New'.
+
+2015-01-14 Behdad Esfahbod <behdad@behdad.org>
+
+ [base] Don't allocate `library->raster_pool' anymore.
+
+ It's unused after the following commits:
+
+ [raster] Allocate render pool for mono rasterizer on the stack.
+ [raster] Remove 5-level gray AA mode from monochrome rasterizer.
+
+ The value of FT_RENDER_POOL_SIZE still serves the purpose it used to
+ serve, which is, to adjust the pool size. But the pool is now
+ allocated on the stack on demand.
+
+ * src/base/ftobjs.c (FT_New_Library, FT_Done_Library): Implement.
+
+2015-01-14 Behdad Esfahbod <behdad@behdad.org>
+
+ [base] Do not reorder library->renderers upon use.
+
+ Instead of keeping `library->renderers' in a MRU order, just leave
+ it as-is. The MRU machinery wasn't thread-safe.
+
+ With this patch, rasterizing glyphs from different faces from
+ different threads doesn't fail choosing rasterizer
+ (FT_Err_Cannot_Render_Glyph).
+
+ Easiest to see that crash was to add a `printf' (or otherwise let
+ thread yield in FT_Throw with debugging enabled).
+
+ * src/base/ftobjs.c (FT_Render_Glyph_Internal), src/base/ftoutln.c
+ (FT_Outline_Render): Don't call `FT_Set_Renderer'.
+
+2015-01-14 Behdad Esfahbod <behdad@behdad.org>
+
+ [raster] Allocate render pool for mono rasterizer on the stack.
+
+ Instead of using the `render_pool' member of `FT_Library' that is
+ provided down to the rasterizer, completely ignore that and allocate
+ needed objects on the stack instead.
+
+ With this patch, rasterizing glyphs from different faces from
+ different threads doesn't crash in the monochrome rasterizer.
+
+ * src/raster/ftraster.c (black_TRaster): Remove `buffer',
+ `buffer_size', and `worker' members.
+
+ (ft_black_render): Create `buffer' locally.
+ (ft_black_reset): Updated.
+
+2015-01-14 Behdad Esfahbod <behdad@behdad.org>
+
+ [raster] Remove 5-level gray AA mode from monochrome rasterizer.
+
+ It was off by default and couldn't be turned on at runtime. And the
+ smooth rasterizer superseded it over ten years ago. No point in
+ keeping. Comments suggested that it was there for compatibility
+ with FreeType 1.
+
+ 550 lines down.
+
+ * src/raster/ftraster.c (FT_RASTER_OPTION_ANTI_ALIASING,
+ RASTER_GRAY_LINES): Remove macros and all associated code.
+
+ (black_TWorker): Remove `gray_min_x' and `gray_max_x'.
+ (black_TRaster): Remove `grays' and `gray_width'.
+
+ (Vertical_Sweep_Init, Vertical_Sweep_Span, Vertical_Sweep_Drop,
+ ft_black_render): Updated.
+
+ * src/raster/ftrend1.c (ft_raster1_render): Simplify code.
+ (ft_raster5_renderer_class): Removed.
+
+2015-01-14 Behdad Esfahbod <behdad@behdad.org>
+
+ [smooth] Allocate render pool for smooth rasterizer on the stack.
+
+ Instead of using the `render_pool' member of `FT_Library' that is
+ provided down to the rasterizer, completely ignore that and allocate
+ needed objects on the stack instead.
+
+ With this patch, rasterizing glyphs from different faces from
+ different threads doesn't crash in the smooth rasterizer.
+
+ Bugs:
+
+ https://bugzilla.redhat.com/show_bug.cgi?id=678397
+ https://bugzilla.redhat.com/show_bug.cgi?id=1004315
+ https://bugzilla.redhat.com/show_bug.cgi?id=1165471
+ https://bugs.freedesktop.org/show_bug.cgi?id=69034
+
+ * src/smooth/ftgrays.c (gray_TRaster): Remove `buffer',
+ `buffer_size', `band_size', and `worker' members.
+
+ (gray_raster_render): Create `buffer', `buffer_size', and
+ `band_size' locally.
+ (gray_raster_reset): Updated.
+
+2015-01-14 Behdad Esfahbod <behdad@behdad.org>
+
+ [truetype] Allocate TT_ExecContext in TT_Size instead of TT_Driver.
+
+ Previously the code had stipulation for using a per-TT_Size exec
+ context if `size->debug' was true. But there was no way that
+ `size->debug' could *ever* be true. As such, the code was always
+ using the singleton `TT_ExecContext' that was stored in `TT_Driver'.
+ This was, clearly, not threadsafe.
+
+ With this patch, loading glyphs from different faces from different
+ threads doesn't crash in the bytecode loader code.
+
+ * src/truetype/ttobjs.h (TT_SizeRec): Remove `debug' member.
+ (TT_DriverRec): Remove `context' member.
+
+ * src/truetype/ttobjs.c (tt_size_run_fpgm, tt_size_run_prep): Remove
+ `TT_ExecContext' code related to a global `TT_Driver' object.
+
+ (tt_driver_done): Don't remove `TT_ExecContext' object here but ...
+ (tt_size_done_bytecode): ... here.
+
+ (tt_driver_init): Don't create `TT_ExecContext' object here but ...
+ (tt_size_init_bytecode): ... here, only on demand.
+
+ * src/truetype/ttinterp.c (TT_Run_Context): Remove defunct debug
+ code.
+ (TT_New_Context): Remove `TT_ExecContext' code related to a global
+ `TT_Driver' object.
+
+ * src/truetype/ttinterp.h: Updated.
+
+ * src/truetype/ttgload.c (TT_Hint_Glyph, tt_loader_init): Updated.
+
+2015-01-14 Behdad Esfahbod <behdad@behdad.org>
+
+ [autofit] Allocate AF_Loader on the stack instead of AF_Module.
+
+ Stop sharing a global `AF_Loader'. Allocate one on the stack during
+ glyph load.
+
+ Right now this results in about 25% slowdown, to be fixed in a
+ following commit.
+
+ With this patch loading glyphs from different faces from different
+ threads doesn't immediately crash in the autohinting loader code.
+
+ Bugs:
+
+ https://bugzilla.redhat.com/show_bug.cgi?id=1164941
+
+ * src/autofit/afloader.c (af_loader_init): Pass
+ `AF_Loader' and `FT_Memory' instead of `AF_Module' as arguments.
+ (af_loader_reset, af_loader_load_glyph): Also pass `loader' as
+ argument.
+ (af_loader_done): Use `AF_Loader' instead of `AF_Module' as
+ argument.
+
+ * src/autofit/afmodule.c (af_autofitter_init): Don't call
+ `af_loader_init'.
+ (af_autofitter_done): Don't call `af_loader_done'.
+ (af_autofitter_load_glyph): Use a local `AF_Loader' object.
+
+ * src/autofit/afloader.h: Include `afmodule.h'.
+ Update prototypes.
+ Move typedef for `AF_Module' to...
+
+ * src/autofit/afmodule.h: ... this place.
+ No longer include `afloader.h'.
+
+2015-01-14 Behdad Esfahbod <behdad@behdad.org>
+
+ * src/type42/t42objs.h (T42_DriverRec): Remove unused member.
+
+2015-01-12 Werner Lemberg <wl@gnu.org>
+
+ Fix Savannah bug #43976.
+
+ Assure that FreeType's internal include directories are found before
+ `CPPFLAGS' (which might be set by the user in the environment), and
+ `CPPFLAGS' before `CFLAGS'.
+
+ * builds/freetype.mk (FT_CFLAGS): Don't add `INCLUDE_FLAGS'.
+ (FT_COMPILE): Make this a special variable for compiling only the
+ files handled in `freetype.mk'.
+ (.c.$O): Removed, unused.
+
+ * src/*/rules.mk (*_COMPILE): Fix order of include directories.
+
+2015-01-11 Werner Lemberg <wl@gnu.org>
+
+ [truetype] Prettifying.
+
+ * src/truetype/ttinterp.c (project, dualproj, fast_project,
+ fast_dualproj): Rename to...
+ (PROJECT, DUALPROJ, FAST_PROJECT, FAST_DUALPROJ): ... this.
+
+2015-01-11 Werner Lemberg <wl@gnu.org>
+
+ * src/truetype/ttinterp.c (Ins_JROT, Ins_JROF): Simplify.
+
+ Based on a patch from Behdad.
+
+2015-01-11 Werner Lemberg <wl@gnu.org>
+
+ * src/truetype/ttinterp.c (Ins_SxVTL): Simplify function call.
+
+2015-01-11 Werner Lemberg <wl@gnu.org>
+
+ * src/truetype/ttinterp.c (Normalize): Remove unused argument.
+
+2015-01-11 Werner Lemberg <wl@gnu.org>
+
+ [truetype] More macro expansions.
+
+ * src/truetype/ttinterp.c (FT_UNUSED_EXEC): Remove macro by
+ expansion.
+
+2015-01-11 Werner Lemberg <wl@gnu.org>
+
+ [truetype] More macro expansions.
+
+ * src/truetype/ttinterp.c (INS_ARG): Remove macro by expansion,
+ adjusting function calls where necessary.
+ (FT_UNUSED_ARG): Removed, no longer needed.
+
+2015-01-10 Werner Lemberg <wl@gnu.org>
+
+ [truetype] More macro expansions.
+
+ Based on a patch from Behdad.
+
+ * src/truetype/ttinterp.c (DO_*): Expand macros into corresponding
+ `Ins_*' functions.
+ (TT_RunIns): Replace `DO_*' macros with `Ins_*' function calls.
+ (ARRAY_BOUND_ERROR): Remove second definition, which is no longer
+ needed.
+ (Ins_SVTCA, Ins_SPVTCA, Ins_SFVTCA): Replaced with...
+ (Ins_SxyTCA): New function.
+
+2015-01-10 Werner Lemberg <wl@gnu.org>
+
+ [truetype] Remove TT_CONFIG_OPTION_INTERPRETER_SWITCH.
+
+ Behdad suggested this code simplification, and nobody objected...
+
+ * include/config/ftoption.h, devel/ftoption.h
+ (TT_CONFIG_OPTION_INTERPRETER_SWITCH): Remove.
+
+ * src/truetype/ttinterp.c [TT_CONFIG_OPTION_INTERPRETER_SWITCH]:
+ Remove related code.
+ (ARRAY_BOUND_ERROR): Use do-while loop.
+
+2015-01-10 Werner Lemberg <wl@gnu.org>
+
+ [truetype] More macro expansions.
+
+ * src/truetype/ttinterp.c, src/truetype/ttinterp.h (EXEC_ARG_,
+ EXEC_ARG): Remove by replacing with expansion.
+
+2015-01-10 Werner Lemberg <wl@gnu.org>
+
+ [truetype] More macro expansions.
+
+ Based on a patch from Behdad.
+
+ * src/truetype/ttinterp.c (SKIP_Code, GET_ShortIns, NORMalize,
+ SET_SuperRound, ROUND_None, INS_Goto_CodeRange, CUR_Func_move,
+ CUR_Func_move_orig, CUR_Func_round, CUR_Func_cur_ppem,
+ CUR_Func_read_cvt, CUR_Func_write_cvt, CUR_Func_move_cvt,
+ CURRENT_Ratio, INS_SxVTL, COMPUTE_Funcs, COMPUTE_Round,
+ COMPUTE_Point_Displacement, MOVE_Zp2_Point): Remove by replacing
+ with expansion.
+
+ (Cur_Func_project, CUR_Func_dualproj, CUR_fast_project,
+ CUR_fast_dualproj): Replace with macros `project', `dualproj',
+ `fast_project', `fast_dualproj'.
+
+2015-01-10 Werner Lemberg <wl@gnu.org>
+
+ [truetype] More macro expansions.
+
+ * src/truetype/ttinterp.c (EXEC_OP_, EXEC_OP): Remove by replacing
+ with expansion.
+
+2015-01-10 Werner Lemberg <wl@gnu.org>
+
+ [truetype] Remove code for static TrueType interpreter.
+
+ This is a follow-up patch.
+
+ * src/truetype/ttinterp.c, src/truetype/ttinterp.h
+ [TT_CONFIG_OPTION_STATIC_INTERPRETER,
+ TT_CONFIG_OPTION_STATIC_RASTER]: Remove macros and related code.
+
+2015-01-10 Werner Lemberg <wl@gnu.org>
+
+ * src/truetype/ttinterp.c (CUR): Remove by replacing with expansion.
+
+ This starts a series of patches that simplifies the code of the
+ bytecode interpreter.
+
+
+----------------------------------------------------------------------------
+
+Copyright (C) 2015-2021 by
+David Turner, Robert Wilhelm, and Werner Lemberg.
+
+This file is part of the FreeType project, and may only be used, modified,
+and distributed under the terms of the FreeType project license,
+LICENSE.TXT. By continuing to use, modify, or distribute this file you
+indicate that you have read the license and understand and accept it
+fully.
+
+
+Local Variables:
+version-control: never
+coding: utf-8
+End:
diff --git a/freetype/docs/oldlogs/ChangeLog.27 b/freetype/docs/oldlogs/ChangeLog.27
new file mode 100644
index 00000000..c5fb1f9a
--- /dev/null
+++ b/freetype/docs/oldlogs/ChangeLog.27
@@ -0,0 +1,2106 @@
+2016-12-30 Werner Lemberg <wl@gnu.org>
+
+ * Version 2.7.1 released.
+ =========================
+
+
+ Tag sources with `VER-2-7-1'.
+
+ * docs/VERSION.TXT: Add entry for version 2.7.1.
+
+ * README, Jamfile (RefDoc), builds/windows/vc2005/freetype.vcproj,
+ builds/windows/vc2005/index.html,
+ builds/windows/vc2008/freetype.vcproj,
+ builds/windows/vc2008/index.html,
+ builds/windows/vc2010/freetype.vcxproj,
+ builds/windows/vc2010/index.html,
+ builds/windows/visualc/freetype.dsp,
+ builds/windows/visualc/freetype.vcproj,
+ builds/windows/visualc/index.html,
+ builds/windows/visualce/freetype.dsp,
+ builds/windows/visualce/freetype.vcproj,
+ builds/windows/visualce/index.html,
+ builds/wince/vc2005-ce/freetype.vcproj,
+ builds/wince/vc2005-ce/index.html,
+ builds/wince/vc2008-ce/freetype.vcproj,
+ builds/wince/vc2008-ce/index.html: s/2.7/2.7.1/, s/27/271/.
+
+ * include/freetype/freetype.h (FREETYPE_PATCH): Set to 1.
+
+ * builds/unix/configure.raw (version_info): Set to 19:0:13.
+ * CMakeLists.txt (VERSION_PATCH): Set to 1.
+
+2016-12-30 Werner Lemberg <wl@gnu.org>
+
+ [ftfuzzer] Replace `rand' with an xorshift algorithm.
+
+ * src/tools/ftfuzzer/ftfuzzer.cc: Don't include `stdlib.h'.
+ (Random): Implement and use a 32bit `xorshift' algorithm.
+
+2016-12-30 Werner Lemberg <wl@gnu.org>
+
+ [ftfuzzer] Restrict number of tested bitmap strikes.
+
+ Malformed fonts often have large values for the number of bitmap
+ strikes, and FreeType doesn't check the validity of all bitmap
+ strikes in advance.
+
+ Reported as
+
+ https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=353
+
+ * src/tools/ftfuzzer/ftfuzzer.cc: Include `stdlib.h' for `rand'.
+ (Random): Small class to provide n randomly selected numbers
+ (without repetition) out of the value set [1,N].
+ (LLVMFuzzerTestOneInput): Use it to test only up to 10 bitmap
+ strikes.
+
+2016-12-29 Werner Lemberg <wl@gnu.org>
+
+ [truetype] Variation font API stability issues.
+
+ Make some functions work before a call to `TT_Set_MM_Blend'.
+
+ * src/truetype/ttgxvar.c (tt_hadvance_adjust): Exit immediately if
+ we don't blend.
+ (TT_Get_MM_Blend, TT_Get_Var_Design): Return default values if we
+ don't blend.
+
+2016-12-29 Werner Lemberg <wl@gnu.org>
+
+ * src/truetype/ttgxvar.c (TT_Get_MM_Var): Check axis data.
+
+ Reported as
+
+ https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=348
+
+2016-12-29 Werner Lemberg <wl@gnu.org>
+
+ [truetype] Tracing fixes.
+
+ * src/truetype/ttgxvar.c (tt_hadvance_adjust): Emit correct
+ information.
+ (TT_Set_Var_Design): Fix typo.
+ (TT_Get_Var_Design): Fix typos.
+
+2016-12-29 Werner Lemberg <wl@gnu.org>
+
+ */*: Use `0.5f' for tracing 16.16 numbers.
+
+2016-12-29 Werner Lemberg <wl@gnu.org>
+
+ [pcf] Protect against gzip bombs.
+
+ Fix suggested by Kostya; reported as
+
+ https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=345
+
+ * src/pcf/pcfread.c (pcf_read_TOC): Limit number of TOC entries to
+ 1024.
+
+2016-12-28 Werner Lemberg <wl@gnu.org>
+
+ [psnames] Only declare, not define, data in `pstables.h' (#49949).
+
+ Pdfium includes `pstables.h' a second time; moving the definition
+ from `pstables.h' to `psmodule.c' saves more than 60kByte data
+ segment space for this case.
+
+ * src/tools/glnames.py (StringTable::dump,
+ StringTable::dump_sublist, dump_encoding, dump_array): Emit
+ additional code to only define tables if `DEFINE_PS_TABLES' is set.
+
+ * src/psnames/pstables.h: Regenerated.
+ * src/psnames/psmodule.c (DEFINE_PS_TABLES): Define.
+
+2016-12-28 Werner Lemberg <wl@gnu.org>
+
+ [cff] Catch `blend' op in non-variant fonts.
+
+ Reported as
+
+ https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=334
+
+ * src/cff/cf2intrp.c (cf2_interpT2CharString) <cf2_cmdBLEND>: Don't
+ allow `blend' op for non-variant fonts.
+
+2016-12-28 Werner Lemberg <wl@gnu.org>
+
+ [cff] Better check of number of blends.
+
+ * src/cff/cf2intrp.c (cf2_interpT2CharString) <cf2_cmdBLEND>,
+ src/cff/cffparse.c (cff_parse_blend): Compare number of blends with
+ stack size.
+
+2016-12-27 Werner Lemberg <wl@gnu.org>
+
+ Documentation updates.
+
+ * docs/CHANGES: Add missing information.
+
+ * docs/formats.txt: Rewritten and updated.
+
+2016-12-27 Werner Lemberg <wl@gnu.org>
+
+ [truetype, type1] Implement `FT_Get_Var_Design_Coordinates'.
+
+ * src/truetype/ttgxvar.c (TT_Get_Var_Design): Implement.
+ (TT_Set_Var_Design): Fix tracing.
+
+ * src/type1/t1load.c (T1_Get_Var_Design): Implement.
+
+2016-12-24 Werner Lemberg <wl@gnu.org>
+
+ * src/truetype/ttpload.c (tt_face_load_hdmx): Ignore `version'.
+
+ Problem reported by 張俊芝 <418092625@qq.com>.
+
+2016-12-24 Werner Lemberg <wl@gnu.org>
+
+ * src/sfnt/ttsbit.c (tt_face_load_sbit): Allow more version values.
+
+ Some fonts seem to have the `version' field in the wrong byte order.
+
+ Problem reported by 張俊芝 <418092625@qq.com>.
+
+2016-12-24 Werner Lemberg <wl@gnu.org>
+
+ * src/truetype/ttpload.c (tt_face_load_loca): Sanitize table length.
+
+ This trivial fix allows us to accept more fonts.
+
+ Problem reported by 張俊芝 <418092625@qq.com>.
+
+2016-12-24 Werner Lemberg <wl@gnu.org>
+
+ * src/sfnt/sfobjs.c (sfnt_init_face): Fix tracing.
+
+2016-12-22 Werner Lemberg <wl@gnu.org>
+
+ * CMakeLists.txt: Make it work with cmake 2.8.11.2 (#49909).
+
+2016-12-22 Werner Lemberg <wl@gnu.org>
+
+ Ensure used preprocessor symbols are defined (#49790).
+
+ * builds/unix/ftconfig.in, builds/vms/ftconfig.h,
+ include/freetype/config/ftconfig.h: Check `__GNUC__', `__IBMC__',
+ and `__SUNPRO_C' correctly.
+
+2016-12-22 Werner Lemberg <wl@gnu.org>
+
+ * src/base/ftrfork.c (FT_Raccess_Get_DataOffsets): Check `count'.
+
+ Reported as
+
+ https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=308
+
+2016-12-22 Werner Lemberg <wl@gnu.org>
+
+ [cff] Protect against invalid `vsindex' and `blend' values.
+
+ Reported as
+
+ https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=305
+
+ * src/cff/cf2intrp.c (cf2_interpT2CharString) <cf2_cmdVSINDEX,
+ cf2_cmdBLEND>: Implement it.
+
+2016-12-22 Werner Lemberg <wl@gnu.org>
+
+ [ftfuzzer] Always use Adobe CFF engine.
+
+ * src/tools/ftfuzzer/ftfuzzer.cc (FT_Global::FT_Global): Implement
+ it.
+
+2016-12-21 Werner Lemberg <wl@gnu.org>
+
+ * src/truetype/ttgxvar.c (TT_Vary_Apply_Glyph_Deltas): Thinko.
+
+ I should really stop coding late in the evening...
+
+ Thanks again to Ben for checking.
+
+2016-12-21 Werner Lemberg <wl@gnu.org>
+
+ [autofit] Support variation fonts.
+
+ (This ChangeLog entry was added later on.)
+
+ * src/autofit/afglobal.c (af_face_globals_free): Remove useless
+ code.
+
+ * src/base/ftmm.c (FT_Set_MM_Design_Coordinates,
+ * FT_Set_Var_Design_Coordinates, FT_Set_MM_Blend_Coordinates,
+ FT_Set_Var_Blend_Coordinates): Finalize
+ auto-hinter data to enforce recomputation. Note that this is a
+ brute-force method which should be improved.
+
+2016-12-21 Werner Lemberg <wl@gnu.org>
+
+ * src/truetype/ttgxvar.c (TT_Vary_Apply_Glyph_Deltas): Thinko.
+
+ Don't apply deltas twice for non-phantom points.
+
+ Spotted by Ben Wagner.
+
+2016-12-21 Werner Lemberg <wl@gnu.org>
+
+ [cff, truetype] Another try for #49829.
+
+ * src/cff/cffdrivr.c: Don't include
+ `FT_SERVICE_METRICS_VARIATIONS_H'.
+ (cff_get_advances): Use `ttface->variation_support'.
+
+ * src/truetype/ttdriver.c (tt_get_advances): Use
+ `ttface->variation_support'.
+
+ * src/truetype/ttgload.c (TT_Process_Simple_Glyph,
+ load_truetype_glyph): Use `ttface->variation_support'.
+
+2016-12-21 Werner Lemberg <wl@gnu.org>
+
+ [truetype, sfnt] Introduce font variation flags to `TT_Face'.
+
+ * include/freetype/internal/tttypes.h (TT_FACE_FLAG_VAR_XXX):
+ New macros describing available functionality of various OpenType
+ tables related to font variation.
+ (TT_Face): New fields `variation_support' and `mvar_support',
+ replacing and extending `use_fvar'.
+
+ * src/sfnt/sfobjs.c (sfnt_init_face, sfnt_load_face): Use
+ `variation_support'.
+
+ * src/truetype/ttgxvar.c (ft_var_load_hvar): Set `variation_support'
+ field.
+ (TT_Vary_Apply_Glyph_Deltas): Updated.
+
+2016-12-21 Werner Lemberg <wl@gnu.org>
+
+ [base] Improve sanity check for Mac resources (#49888).
+
+ * src/base/ftobjs.c (Mac_Read_sfnt_Resource): Abort if `rlen' is not
+ positive.
+
+2016-12-20 Werner Lemberg <wl@gnu.org>
+
+ [base] More sanity checks for Mac resources.
+
+ We use
+
+ https://github.com/kreativekorp/ksfl/wiki/Macintosh-Resource-File-Format
+
+ and
+
+ https://developer.apple.com/legacy/library/documentation/mac/pdf/MoreMacintoshToolbox.pdf#page=151
+
+ as references.
+
+ * include/freetype/internal/ftrfork.h (FT_RFork_Ref): Use FT_Short
+ for `res_id'.
+
+ * src/base/ftrfork.c (FT_Raccess_Get_HeaderInfo): Extract map length
+ and use it to improve sanity checks.
+ Follow the specification more closely;in particular, all data types
+ are signed, not unsigned.
+ (FT_Raccess_Get_DataOffsets): Follow the specification more closely;
+ in particular, all data types are signed, not unsigned.
+ Add some sanity checks.
+
+2016-12-20 Werner Lemberg <wl@gnu.org>
+
+ [truetype] Improve logic for getting fast advance widths.
+
+ * src/cff/cffdrivr.c (cff_get_advances), src/truetype/ttdriver.c
+ (tt_get_advances): Use `is_default_instance' for test; this gets
+ recomputed after changing blend coordinates.
+
+2016-12-20 Ben Wagner <bungeman@google.com>
+ Werner Lemberg <wl@gnu.org>
+
+ [truetype] Fix linear metrics of GX variation fonts (#49829).
+
+ When asking for an unhinted non-default variations,
+ `linearVertAdvance' is currently the value from the `hmtx' table
+ instead of the actual value after applying the variation. `HVAR'
+ support fixes this, but fonts will exist without that table and will
+ need sane fallback.
+
+ Problem also reported as
+
+ https://bugs.chromium.org/p/skia/issues/detail?id=5917
+
+ * src/truetype/ttgload.c (TT_Process_Simple_Glyph,
+ load_truetype_glyph): Implement linear advance adjustments if `HVAR'
+ or `VVAR' tables are missing.
+
+2016-12-20 Werner Lemberg <wl@gnu.org>
+
+ [cff, truetype] Fast advance width retrieval for fonts with HVAR.
+
+ Everything is guarded with TT_CONFIG_OPTION_GX_VAR_SUPPORT.
+
+ * src/base/ftadvanc.c (LOAD_ADVANCE_FAST_CHECK): Don't handle MM.
+
+ * src/cff/cffdrivr.c: Include FT_SERVICE_METRICS_VARIATIONS_H.
+ (cff_get_advances): Test for HVAR and VVAR.
+
+ * src/truetype/ttdriver.c (tt_get_advances): Test for HVAR and VVAR.
+
+2016-12-18 Werner Lemberg <wl@gnu.org>
+
+ [base] Fix invalid mac font recursion.
+
+ Reported as
+
+ https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=304
+
+ * src/base/ftobjs.c (FT_Open_Face): Code moved to...
+ (ft_open_face_internal): ... this function.
+ Add a parameter to control whether we try special Mac font handling
+ in case of failure.
+ (FT_Open_Face, FT_New_Face, FT_New_Memory_Face,
+ open_face_from_buffer): Use `ft_open_face_internal'.
+
+2016-12-18 Werner Lemberg <wl@gnu.org>
+
+ * src/cff/cffobjs.c (cff_face_init): Make named instances work.
+
+2016-12-18 Werner Lemberg <wl@gnu.org>
+
+ [truetype, cff] Extend `get_var_blend' function of MM service.
+
+ In particular, we need access to named instance data.
+
+ * include/freetype/internal/services/svmm.h (FT_Get_Var_Blend_Func):
+ Add argument for `FT_MM_Var'.
+
+ * src/cff/cffload.c (cff_get_var_blend): Updated.
+ * src/cff/cffload.h: Updated.
+
+ * src/cff/cf2ft.c (cf2_getNormalizedVector): Updated.
+
+ * src/truetype/ttgxvar.c (tt_get_var_blend): Updated.
+ Accept value `NULL' for arguments.
+ * src/truetype/ttgxvar.h: Updated.
+
+2016-12-18 Werner Lemberg <wl@gnu.org>
+
+ [sfnt] Handle `fvar' with zero axes as a non-MM font.
+
+ This is better behaviour than exiting with an error.
+
+ * include/freetype/internal/tttypes.h (TT_Face): Add `use_fvar'
+ field.
+
+ * src/sfnt/sfobjs.c (sfnt_init_face): Compute `use_fvar', also
+ updating the validation code.
+ Use `use_fvar' to compute FT_FACE_FLAG_MULTIPLE_MASTERS.
+
+ * src/truetype/ttgxvar.c (TT_Get_MM_Var): Remove `fvar' validation
+ code.
+
+2016-12-18 Werner Lemberg <wl@gnu.org>
+
+ Minor GX code shuffling.
+
+ * include/freetype/internal/tttypes.h (TT_Face): Move
+ `is_default_instance' into TT_CONFIG_OPTION_GX_VAR_SUPPORT
+ block.
+
+ * src/sfnt/sfobjs.c (sfnt_init_face): Updated.
+ * src/truetype/ttgload.c (IS_DEFAULT_INSTANCE): New macro.
+ (TT_Load_Glyph): Use it.
+
+2016-12-18 Werner Lemberg <wl@gnu.org>
+
+ [cff] Better handling of non-CFF font formats.
+
+ * src/cff/cffload.c (cff_font_load): Pure CFFs don't have a
+ signature, so return `FT_Err_Unknown_File_Format' more often.
+
+2016-12-17 Werner Lemberg <wl@gnu.org>
+
+ * src/cff/cffload.c (cff_build_blend_vector): Remove redundant code.
+
+2016-12-17 Werner Lemberg <wl@gnu.org>
+
+ * src/truetype/ttobjs.c (tt_face_init): Simplify conditional code.
+
+2016-12-17 Werner Lemberg <wl@gnu.org>
+
+ [sfnt, truetype] Various sanitizing fixes.
+
+ * src/sfnt/sfobjs.c (sfnt_init_face): If the axis count in `fvar' is
+ zero, set `num_instances' to zero.
+
+ * src/truetype/ttgxvar.c (TT_Get_MM_Var): Handle `fvar' table with
+ zero axes as invalid.
+
+ * src/truetype/ttobjs.c (tt_face_init): Improve logic of loading
+ `loca', `cvt', `fpgm', and `prep' table.
+
+2016-12-17 Werner Lemberg <wl@gnu.org>
+
+ Improve tracing of `FT_Open_Face'.
+
+ * src/base/ftobjs.c (FT_Open_Face): Return info on number of
+ available faces and numbered instances, or the indices of the
+ requested face and numbered instance.
+
+ * src/sfnt/sfobjs. (sfnt_open_font): Trace number of subfonts.
+
+2016-12-17 Werner Lemberg <wl@gnu.org>
+
+ * src/cff/cffload.c (cff_load_private_dict): Always init `blend'.
+
+ Reported as
+
+ https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=295
+
+2016-12-16 Werner Lemberg <wl@gnu.org>
+
+ [truetype] Fix `cvar' sanity test.
+
+ Reported by Dave Arnold.
+
+ * src/truetype/ttgxvar.c (tt_face_vary_cvt): Use tuple count mask.
+
+2016-12-16 Werner Lemberg <wl@gnu.org>
+
+ [cff, truetype] Remove compiler warnings; fix `make multi'.
+
+ * src/cff/cf2font.h: Include `cffload.h'.
+
+ * src/cff/cffload.c: Include FT_MULTIPLE_MASTERS_H and
+ FT_SERVICE_MULTIPLE_MASTERS_H.
+ (cff_vstore_load): Eliminate `vsSize'.
+ (cff_load_private_dict): Tag as `FT_LOCAL_DEF'.
+
+ * src/cff/cffload.h: Include `cffobjs.h'.
+ Provide declaration for `cff_load_private_dict'.
+
+ * src/truetype/ttgxvar.c (ft_var_load_hvar): Eliminate
+ `minorVersion' and `map_offset'.
+
+2016-12-16 Werner Lemberg <wl@gnu.org>
+
+ [cff] Fix heap buffer overflow (#49858).
+
+ * src/cff/cffparse.c (cff_parser_run): Add one more stack size
+ check.
+
+2016-12-15 Werner Lemberg <wl@gnu.org>
+
+ Fix clang warnings.
+
+ * src/cff/cffload.c (cff_blend_doBlend): Add cast.
+ (cff_subfont_load): Set `error' correctly.
+
+ * src/sfnt/ttmtx.c (tt_face_get_metrics): Typo.
+
+2016-12-15 Dave Arnold <darnold@adobe.com>
+ Werner Lemberg <wl@gnu.org>
+
+ [cff] Implement CFF2 support (2/2).
+
+ The font variation code. All parts dependent on the GX code in the
+ `truetype' module are guarded with TT_CONFIG_OPTION_GX_VAR_SUPPORT.
+ In other words, you can still compile the `cff' module without
+ defining TT_CONFIG_OPTION_GX_VAR_SUPPORT (which brings you CFF2
+ support without font variation).
+
+ * src/cff/cf2font.c (cf2_font_setup): Add support for font
+ variation.
+ * src/cff/cf2font.h (CF2_Font): Add fields for variation data.
+
+ * src/cff/cf2ft.c (cf2_free_instance): Free blend data.
+ (cf2_getVStore, cf2_getNormalizedVector): New functions.
+ * src/cff/cf2ft.h: Updated.
+
+ * src/cff/cf2intrp.c: Include `cffload.h'.
+ (cf2_cmdRESERVED_15, cf2_cmdRESERVED_16): Replace with...
+ (cf2_cmdVSINDEX, cf2_cmdBLEND): ... this new enum values.
+ (cf2_doBlend): New function.
+ (cf2_interpT2CharString): Handle `vsindex' and `blend' opcodes.
+
+ * src/cff/cffload.c (FT_fdot14ToFixed): New macro.
+ (cff_vstore_done, cff_vstore_load): New functions.
+ (cff_blend_clear, cff_blend_doBlend, cff_blend_build_vector,
+ cff_blend_check_vector): New functions.
+ (cff_load_private_dict): Add arguments for blend vector.
+ Handle blend data.
+ (cff_subfont_load, cff_subfont_done): Updated.
+ (cff_font_load): Handle CFF2 variation store data.
+ (cff_font_done): Updated.
+ * src/cff/cffload.h: Include `cffparse.h'.
+ Updated.
+
+ * src/cff/cffobjs.c (cff_face_done): Updated.
+
+ * src/cff/cffparse.c: Include `cffload.h'.
+ (cff_parse_num): Handle internal value 255.
+ (cff_parse_vsindex, cff_parse_blend): New functions.
+ (CFF_FIELD_BLEND): New macro.
+ (cff_parser_run): Updated.
+ * src/cff/cffparse.h (cff_kind_blend): New enum value.
+
+ * src/cff/cfftoken.h: Handle `vstore', `vsindex', and `blend'
+ dictionary values.
+
+ * src/cff/cfftypes.h (CFF_VarData, CFF_AxisCoords, CFF_VarRegion,
+ CFF_VStore, CFF_Blend): New structures.
+ (CFF_FontRecDict): Add `vstore_offset' field.
+ (CFF_Private): Add `vsindex' field.
+ (CFF_SubFont): Add fields for blend data.
+ (CFF_Font): Add `vstore' field.
+
+ * src/truetype/ttgxvar.c (TT_Get_MM_Var): `CFF2' is equal to `gvar',
+ since glyph variation data is directly embedded.
+ (TT_Set_MM_Blend): Don't load `gvar' table for CFF2 fonts.
+
+2016-12-15 Dave Arnold <darnold@adobe.com>
+ Werner Lemberg <wl@gnu.org>
+
+ [cff] Implement CFF2 support (1/2).
+
+ This commit does not contain the blend code for font variation
+ support, which follows in another commit.
+
+ You should ignore whitespace while inspecting this commit.
+
+ * include/freetype/internal/tttypes.h (TT_Face): Add `isCFF2'
+ member.
+
+ * src/cff/cf2font.h (CF2_Font): Add `isCFF2' member.
+
+ * src/cff/cf2ft.c (cf2_decoder_parse_charstrings): Handle `isCFF2'
+ flag.
+ (cf2_getMaxstack): New function.
+ * src/cff/cf2ft.h: Updated.
+
+ * src/cff/cf2intrp.c (cf2_escRESERVED_38): New enum.
+ (cf2_interpT2CharString): Handle CFF2 differences.
+ Add tracing message for errors.
+
+ * src/cff/cffdrivr.c (cff_get_glyph_name, cff_get_name_index):
+ Update for CFF2.
+
+ * src/cff/cffload.c (FT_FIXED_ONE): New macro.
+ (cff_index_init, cff_index_load_offsets, cff_index_access_element,
+ cff_index_get_name, cff_ft_select_get, cff_load_private_dict,
+ cff_subfont_load, cff_font_load): Handle CFF2.
+ * src/cff/cffload.h: Updated.
+
+ * src/cff/cffobjs.c (cff_face_init): Handle CFF2.
+
+ * src/cff/cffparse.c (cff_parse_maxstack): New function.
+ (CFFCODE_TOPDICT, CFFCODE_PRIVATE): Removed
+ * src/cff/cffparse.h (CFF2_MAX_STACK, CFF2_DEFAULT_STACK): New
+ macros.
+ (CFF2_CODE_TOPDICT, CFF2_CODE_FONTDICT, CFF2_CODE_PRIVATE): New
+ macros.
+
+ * src/cff/cfftoken.h: Add fields for CFF2 dictionaries (but no blend
+ stuff).
+
+ * src/cff/cfftypes.h (CFF_Index): Add `hdr_size' field.
+ (CFF_FontRecDict): Add `maxstack' field.
+ (CFF_Private): Add `subfont' field.
+ (CFF_Font): Add `top_dict_length' and `cff2' fields.
+
+ * src/sfnt/sfobjs.c (sfnt_load_face): Handle `CFF2' table.
+
+2016-12-15 Werner Lemberg <wl@gnu.org>
+ Dave Arnold <darnold@adobe.com>
+
+ [truetype] Provide HVAR advance width variation as a service.
+
+ Everything is guarded with TT_CONFIG_OPTION_GX_VAR_SUPPORT.
+
+ * src/truetype/ttdriver.c (tt_service_metrics_variations): Updated.
+
+ * src/truetype/ttgxvar.c (TT_Vary_Apply_Glyph_Deltas): Prevent
+ double adjustment of advance width.
+
+ * src/sfnt/ttmtx.c: Include FT_SERVICE_METRICS_VARIATIONS_H.
+ (tt_face_get_metrics): Apply metrics variations.
+
+2016-12-15 Dave Arnold <darnold@adobe.com>
+ Werner Lemberg <wl@gnu.org>
+
+ [truetype] Provide function to apply `HVAR' advance width variation.
+
+ Everything is guarded with TT_CONFIG_OPTION_GX_VAR_SUPPORT.
+
+ * src/truetype/ttgxvar.c (tt_hadvance_adjust): New function.
+ * src/truetype/ttgxvar.h: Updated.
+
+2016-12-15 Dave Arnold <darnold@adobe.com>
+ Werner Lemberg <wl@gnu.org>
+
+ [truetype] Add `HVAR' table parsing.
+
+ Note that this is not complete yet; it only handles advance width
+ variation.
+
+ Activation of the code follows in another commit.
+
+ Everything is guarded with TT_CONFIG_OPTION_GX_VAR_SUPPORT.
+
+ * include/freetype/ftmm.h (FT_Var_Named_Style): Add `psid' member.
+
+ * src/truetype/ttgxvar.h (GX_HVarData, GX_AxisCoords, GX_HVarRegion,
+ GX_HVStore, GX_WidthMap): New auxiliary structures for...
+ (GX_HVarTable): ... HVAR main structure.
+ (GX_BlendRec): Add data for HVAR loading.
+
+ * src/truetype/ttgxvar.c (FT_FIXED_ONE, FT_fdot14ToFixed,
+ FT_intToFixed, FT_fixedToInt): New macros.
+ (ft_var_load_hvar): New function.
+ (TT_Get_MM_Var): Updated.
+ (tt_done_blend): Deallocate HVAR data.
+
+2016-12-15 Dave Arnold <darnold@adobe.com>
+
+ [cff] Extend number parsing.
+
+ The forthcoming CFF2 support needs a dynamic parsing limit.
+
+ * src/cff/cffparse.c (cff_parse_num, do_fixed, cff_parse_fixed,
+ cff_parse_fixed_scaled, cff_parse_fixed_dynamic): Add argument for
+ parser.
+ (cff_parse_font_matrix, cff_parse_font_bbox, cff_parse_private_dict,
+ cff_parse_multiple_master, cff_parse_cid_ros, cff_parser_run): Updated.
+
+ * src/cff/cffparse.h (cff_parse_num): Export locally.
+
+2016-12-15 Dave Arnold <darnold@adobe.com>
+
+ [cff] Implement dynamic stack size for Adobe engine.
+
+ This also adds `cf2_stack_setReal' and `cf2_stack_pop', needed for
+ the forthcoming CFF2 support.
+
+ * src/cff/cf2stack.c (cf2_stack_init): Add argument for stack size.
+ (cf2_stack_free): Deallocate stack.
+ (cf2_stack_count, cf2_stack_pushInt, cf2_stack_pushFixed,
+ cf2_stack_popInt, cf2_stack_popFixed, cf2_stack_getReal,
+ cf2_stack_clear): Updated.
+ (cf2_stack_setReal, cf2_stack_pop): New functions.
+
+ * src/cff/cf2stack.h (CF2_Stack): Add `stackSize' member.
+ Update function declarations.
+
+ * src/cff/cf2intrp.c (cf2_interpT2CharString): Updated.
+
+ * src/cff/cffparse.c (cff_parser_init): Add parameter for stack
+ size; return error code.
+ (cff_parser_done): New function.
+ (cff_parser_run): Updated.
+
+ * src/cff/cffparse.h (CFF_Parser): Add `stackSize' member and make
+ `stack' a pointer.
+ Update function declarations.
+
+ * src/cff/cffload.c (cff_load_private_dict, cff_subfont_load):
+ Updated.
+
+2016-12-15 Dave Arnold <darnold@adobe.com>
+ Werner Lemberg <wl@gnu.org>
+
+ [cff] Code shuffling.
+
+ * src/cff/cfftypes.h (CFF_Font): Add `library' and `base_offset'
+ fields.
+
+ * src/cff/cffload.c (cff_subfont_load): Change last argument to
+ `CFF_Font'
+ Split off parsing of private dictionary into...
+ (cff_load_private_dict): ...this new function.
+ (cff_font_load): Updated.
+
+2016-12-14 Werner Lemberg <wl@gnu.org>
+
+ [sfnt, truetype] Add framework for Metrics Variations service.
+
+ No effect yet; service functions will be implemented later on.
+
+ Everything is guarded with TT_CONFIG_OPTION_GX_VAR_SUPPORT.
+
+ * include/freetype/internal/services/svmetric.h: New file.
+
+ * include/freetype/internal/ftserv.h
+ (FT_SERVICE_METRICS_VARIATIONS_H): New macro.
+
+ * include/freetype/internal/tttypes.h (TT_Face): New field `var'.
+
+ * src/sfnt/sfobjs.c: Include FT_SERVICE_METRICS_VARIATIONS_H.
+ (sfnt_init_face): Initialize `face->var'.
+
+ * src/truetype/ttdriver.c: Include FT_SERVICE_METRICS_VARIATIONS_H.
+ (tt_service_metrics_variations): New service.
+ (tt_services): Updated.
+
+ * src/truetype/ttpic.h: Updated.
+
+2016-12-14 Werner Lemberg <wl@gnu.org>
+
+ [cff] Add Multiple Masters service.
+
+ The code simply uses the MM functions from the `truetype' module.
+
+ Everything is guarded with TT_CONFIG_OPTION_GX_VAR_SUPPORT.
+
+ * include/freetype/internal/tttypes.h (TT_Face): New field `mm'.
+
+ * src/cff/cffdrivr.c: Include FT_SERVICE_MULTIPLE_MASTERS_H.
+ (cff_set_mm_blend, cff_get_mm_blend, cff_get_mm_var,
+ cff_set_var_design, cff_get_var_design): New functions.
+ (cff_service_multi_masters): New service.
+ (cff_services): Updated.
+
+ * src/cff/cffload.c (cff_get_var_blend, cff_done_blend): New
+ functions.
+ * src/cff/cffload.h: Updated.
+
+ * src/cff/cffpic.h (CFF_SERVICE_MULTI_MASTERS_GET): New macro.
+
+ * src/sfnt/sfobjs.c: Include FT_SERVICE_MULTIPLE_MASTERS_H.
+ (sfnt_init_face): Initialize `face->mm'.
+
+2016-12-14 Werner Lemberg <wl@gnu.org>
+
+ Extend functionality of `ft_module_get_service'.
+
+ It can now differentiate between local and global searches.
+
+ * src/base/ftobjs.c (ft_module_get_service): Add `global' argument.
+ (FT_Get_TrueType_Engine_Type): Updated.
+
+ * src/cff/cffdrivr.c (cff_get_ps_name, cff_get_cmap_info): Updated.
+
+ * include/freetype/internal/ftobjs.h: Updated.
+ * include/freetype/internal/ftserv.h (FT_FACE_FIND_GLOBAL_SERVICE):
+ Updated.
+
+2016-12-14 Werner Lemberg <wl@gnu.org>
+
+ * src/truetype/ttgxvar.c (tt_get_var_blend): Fix compiler warning.
+
+2016-12-14 Dave Arnold <darnold@adobe.com>
+ Werner Lemberg <wl@gnu.org>
+
+ [sfnt, cff] Minor preparations.
+
+ * include/freetype/tttags.h (TTAG_CFF2, TTAG_HVAR, TTAG_MVAR,
+ TTAG_VVAR): New SFNT table tags.
+
+ * src/cff/cf2fixed.h (CF2_FIXED_ONE, CF2_FIXED_EPSILON): Add cast.
+
+2016-12-10 Werner Lemberg <wl@gnu.org>
+
+ [truetype, type1] Add `get_var_blend' to MM service.
+
+ For internal use; we want to share code between the forthcoming CFF2
+ support and TrueType.
+
+ * include/freetype/internal/services/svmm.h (FT_Get_Var_Blend_Func):
+ New typedef.
+ (MultiMasters): Add `get_var_blend'.
+ (FT_Service_MultiMasters): Updated.
+
+ * src/truetype/ttgxvar.c (tt_get_var_blend): New function.
+ * src/truetype/ttgxvar.h: Updated.
+
+ * src/truetype/ttdriver.c (tt_service_gx_multi_masters): Updated.
+ * src/type1/t1driver.c (t1_service_multi_masters): Updated.
+
+2016-12-10 Werner Lemberg <wl@gnu.org>
+
+ [truetype, type1] Add `done_blend' to MM service.
+
+ For internal use; we want to share code between the forthcoming CFF2
+ support and TrueType.
+
+ * include/freetype/internal/services/svmm.h (FT_Done_Blend_Func):
+ New typedef.
+ (MultiMasters): Add `done_blend'.
+ (FT_Service_MultiMasters): Updated.
+
+ * src/truetype/ttgxvar.c (tt_done_blend): Use `TT_Face' as argument.
+ * src/truetype/ttgxvar.h: Updated.
+
+ * src/truetype/ttobjs.c (TT_Face_Done): Updated.
+
+ * src/truetype/ttdriver.c (tt_service_gx_multi_masters): Updated.
+ * src/type1/t1driver.c (t1_service_multi_masters): Updated.
+
+2016-12-09 Werner Lemberg <wl@gnu.org>
+
+ [sfnt] Revert change from 2016-12-08.
+
+ I missed the functionality of `ft_module_get_service', which makes
+ the change unnecessary.
+
+2016-12-08 Werner Lemberg <wl@gnu.org>
+
+ Add framework to support services with 8 functions.
+
+ We will need this for CFF variation font support.
+
+ * include/freetype/internal/ftserv.h (FT_DEFINE_SERVICEDESCREC8):
+ New macro.
+
+2016-12-08 Werner Lemberg <wl@gnu.org>
+
+ [sfnt] Add `get_glyph_name' and `get_name_index' to SFNT interface.
+
+ CFF2 fonts will need access to those two functions.
+
+ * include/freetype/internal/sfnt.h: Include FT_SERVICE_GLYPH_DICT_H.
+ (SFNT_Interface): Add `get_glyph_name' and `get_name_index' members.
+ (FT_DEFINE_SFNT_INTERFACE): Updated.
+
+ * src/sfnt/sfdriver.c (sfnt_get_glyph_name, sfnt_get_name_index):
+ Fix signatures to exactly correspond to the glyph dict service
+ function typedefs.
+ (sfnt_interface): Updated.
+
+2016-12-06 Dave Arnold <darnold@adobe.com>
+
+ Add `FT_Get_Var_Design_Coordinates' function.
+
+ Note that the low-level functions aren't implemented yet.
+
+ * include/freetype/ftmm.h: Declare.
+
+ * include/freetype/internal/services/svmm.h
+ (FT_Get_Var_Design_Func): New typedef.
+ (MultiMasters): New MM service function `get_var_design'.
+ (FT_DEFINE_SERVICE_MULTIMASTERSREC): Updated.
+ Update all callers.
+
+ * src/base/ftmm.c (FT_Get_Var_Design_Coordinates): Implement.
+
+ * src/truetype/ttdriver.c: Updated.
+
+ * src/truetype/ttgxvar.c (TT_Get_Var_Design): New dummy function to
+ handle `get_var_design' service.
+ * src/truetype/ttgxvar.h: Updated.
+
+ * src/type1/t1driver.c: Updated.
+
+ * src/type1/t1load.c (T1_Get_Var_Design): New dump function to
+ handle `get_var_design' service.
+ * src/type1/t1load.h: Updated.
+
+2016-12-06 Werner Lemberg <wl@gnu.org>
+
+ * src/type1/t1load.c (parse_subrs): Fix memory leak.
+
+ The `subrs' keyword might erroneously occur multiple times.
+
+ Reported as
+
+ https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=231
+
+2016-12-01 Werner Lemberg <wl@gnu.org>
+
+ [gzip] Improve building with external zlib (#49673).
+
+ Building FreeType with external zlib 1.2.8 makes msvc 14 stop with
+ the following error.
+
+ ftgzip.c
+ zlib-1.2.8\zlib.h(86): error C2061:
+ syntax error: identifier 'z_const'
+ zlib-1.2.8\zlib.h(94): error C2054:
+ expected '(' to follow 'z_const'
+ zlib-1.2.8\zlib.h(94): error C2085:
+ 'msg': not in formal parameter list
+ ...
+ zlib-1.2.8\zlib.h(877): fatal error C1003:
+ error count exceeds 100; stopping compilation
+
+ The error happens because FreeType keeps an own copy of zlib-1.1.4
+ under `src/gzip'. When building `src/gzip/ftgzip.c' with
+ FT_CONFIG_OPTION_SYSTEM_ZLIB defined, it uses
+
+ #include <zlib.h>
+
+ which correctly finds an external `zlib.h', but `zlib.h' itself has
+ a line
+
+ #include "zconf.h"
+
+ which makes Visual Studio 2015 find `src/gzip/zconf.h' while
+ compiling the files in `src/gzip'.
+
+ * src/gzip/zconf.h: Rename to...
+ * src/gzip/ftzconf.h: ... this.
+ * src/gzip/zlib.h, src/gzip/rules.mk (GZIP_DRV_SRCS): Updated.
+
+2016-12-01 Oleksandr Chekhovskyi <oleksandr.chekhovskyi@gmail.com>
+
+ [autofit] Fix Emscripten crash (patch #9180).
+
+ Function calls through pointers must use a matching signature to
+ work on Emscripten, since such calls are dispatched through lookup
+ tables grouped by signature.
+
+ * src/autofit/aftypes.h (AF_WritingSystem_ApplyHintsFunc): Fix
+ typedef.
+
+2016-11-29 Werner Lemberg <wl@gnu.org>
+
+ [smooth] Revert previous commit. Already fixed with 6ca54c64.
+
+2016-11-29 Werner Lemberg <wl@gnu.org>
+
+ [smooth] Avoid conditional jump on uninitialized value (#49711).
+
+ * src/smooth/ftgrays.c (gray_raster_render): Initialize `worker'.
+
+2016-11-27 Nikolaus Waxweiler <madigens@gmail.com>
+
+ [autofit] Code shuffling.
+
+ Also improve some comments and remove unused code.
+
+ No functional change.
+
+ * src/autofit/afloader.c (af_loader_load_g): Merged with...
+ (af_loader_load_glyph): ...this function.
+ Split off emboldening code into...
+ (af_loader_embolden_glyph_in_slot): ... this function.
+
+2016-11-17 Werner Lemberg <wl@gnu.org>
+
+ Better support of LLP64 systems with gcc (and clang).
+
+ * builds/unix/configure.raw: Call `AC_TYPE_LONG_LONG_INT'.
+
+ * builds/unix/ftconfig.in (FT_LONG64): Enable for LLP64 systems (and
+ suppress warnings) even without `FT_CONFIG_OPTION_FORCE_INT64'.
+
+2016-11-10 Werner Lemberg <wl@gnu.org>
+
+ Fix `lcd_weights' array size.
+
+ * include/freetype/internal/ftobjs.h (FT_LibraryRec): Do it.
+
+ Reported by Nikolaus.
+
+2016-11-06 Werner Lemberg <wl@gnu.org>
+
+ * src/base/ftobjs.c (FT_Render_Glyph_Internal): Fix tracing.
+
+2016-11-06 Werner Lemberg <wl@gnu.org>
+
+ [sfnt] Improve FT_LOAD_BITMAP_METRICS_ONLY for `sbix' format.
+
+ It's unavoidable to call the PNG engine, but to get the metrics it
+ is sufficient to read the PNG image's header only.
+
+ * src/sfnt/pngshim.c (Load_SBit_Png): Add argument to control the
+ allocation of the glyph slot.
+ * src/sfnt/pngshim.h: Updated.
+ * src/sfnt/ttsbit.c (tt_sbit_decoder_load_png,
+ tt_face_load_sbix_image, tt_face_load_sbit_image): Updated.
+
+2016-11-06 Werner Lemberg <wl@gnu.org>
+
+ [sfnt] Speed up `sbix' lookup.
+
+ This also fixes a bug introduced in 2016-10-01 which prevents
+ display of embedded bitmap fonts that use the `sbix' format.
+
+ * src/sfnt/ttsbit.c (tt_face_load_sbit): Store `sbix' size and
+ offset also in `ebdt_size' and `ebdt_start', respectively. This
+ makes the test for an embedded bitmap data table succeed for this
+ format.
+
+ (tt_face_load_strike_metrics) <TT_SBIT_TABLE_TYPE_SBIX>: Use
+ `ebdt_size' and `ebdt_start'
+ (tt_face_load_sbix_image): Ditto.
+
+2016-11-06 Seigo Nonaka <nona@google.com>
+ Werner Lemberg <wl@gnu.org>
+
+ Introduce a way of quickly retrieving (embedded) bitmap metrics.
+
+ `FT_Load_Glyph' doesn't generate a bitmap for a non-bitmap glyph
+ until the user calls `FT_Render_Glyph'. However, it always
+ allocates memory for bitmaps and copies or decodes the contents of a
+ bitmap glyph, which can be quite slow for PNG data.
+
+ * include/freetype/freetype.h (FT_LOAD_BITMAP_METRICS_ONLY): New
+ macro.
+
+ * src/base/ftobjs.c (FT_Load_Glyph): Unset FT_LOAD_RENDER if
+ FT_LOAD_BITMAP_METRICS_ONLY is used.
+
+ * src/sfnt/ttsbit.c (tt_sbit_decoder_alloc_bitmap,
+ tt_sbit_decoder_load_bitmap): Add argument to control allocation of
+ the glyph slot.
+ (tt_sbit_decoder_load_image, tt_sbit_decoder_load_compound,
+ tt_face_load_sbit_image): Updated.
+
+ * src/pcf/pcfdrivr.c (PCF_Glyph_Load): Quickly exit if
+ `FT_LOAD_BITMAP_METRICS_ONLY' is set.
+
+ * src/pfr/pfrsbit.c, src/pfr/pfrsbit.h (pfr_slot_load_bitmap): Add
+ argument to control allocation of the glyph slot.
+ * src/pfr/pfrobjs (pfr_slot_load): Updated.
+
+ * src/winfonts/winfnt.c (FNT_Load_Glyph): Ditto.
+
+ * docs/CHANGES: Updated.
+
+2016-11-06 Werner Lemberg <wl@gnu.org>
+
+ Synchronize with gnulib (#49448).
+
+ * include/freetype/config/ftconfig.h, builds/unix/ftconfig.in,
+ builds/vms/ftconfig.h (FT_TYPEOF): Update code to use definition in
+ current version of `intprops.h'.
+ Other minor synchronization to reduce code differences between the
+ three files.
+
+2016-11-03 Behdad Esfahbod <behdad@behdad.org>
+
+ [truetype] Clamp variation requests to valid range.
+
+ This is required by OpenType 1.8; it also avoids rounding surprises.
+
+ * src/truetype/ttgxvar.c (TT_Set_Var_Design): Clamp design coordinates
+ outside of the allowed range to always stay within the range instead
+ of producing an error.
+
+2016-10-29 Werner Lemberg <wl@gnu.org>
+
+ [truetype] Remove clang warnings.
+
+ * src/truetype/ttinterp.h (TT_ExecContextRec): Using `FT_ULong' for
+ loop counter handling.
+
+ * src/truetype/ttinterp.c: Updated.
+ (Ins_SCANTYPE): Use signed constant.
+ (TT_RunIns): Ensure `num_twilight_points' is 16bit.
+
+2016-10-27 Werner Lemberg <wl@gnu.org>
+
+ [truetype] Fix commit from 2014-11-24.
+
+ Problem reported by Hin-Tak Leung <htl10@users.sourceforge.net>.
+
+ * src/truetype/ttpload.c (tt_face_load_hdmx): Fix file checking
+ logic.
+
+2016-10-26 Werner Lemberg <wl@gnu.org>
+
+ Add `FT_Get_{MM,Var}_Blend_Coordinates' functions.
+
+ * include/freetype/ftmm.h: Declare.
+
+ * include/freetype/internal/services/svmm.h (FT_Get_MM_Blend_Func):
+ New typedef.
+ (MultiMasters): New MM service function `get_mm_blend'.
+ (FT_DEFINE_SERVICE_MULTIMASTERSREC): Updated.
+ Update all callers.
+
+ * src/base/ftmm.c (FT_Get_MM_Blend_Coordinates,
+ FT_Get_Var_Blend_Coordinates): Implement.
+
+ * src/truetype/ttdriver.c: Updated.
+
+ * src/truetype/ttgxvar.c (TT_Get_MM_Blend): New function to handle
+ `get_mm_blend' service.
+ * src/truetype/ttgxvar.h: Updated.
+
+ * src/type1/t1driver.c: Updated.
+
+ * src/type1/t1load.c (T1_Get_MM_Blend): New function to handle
+ `get_mm_blend' service.
+ * src/type1/t1load.h: Updated.
+
+ * docs/CHANGES: Document.
+
+2016-10-26 Werner Lemberg <wl@gnu.org>
+
+ * src/type1/t1load.c (parse_subrs): Fix limit check.
+
+ Reported as
+
+ https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=81
+
+2016-10-25 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ [cff] Correct cmap format reporting (#24819).
+
+ * src/cff/cffdrivr.c (cff_get_cmap_info): Throw an error on synthetic
+ charmap instead of guessing its format and language.
+
+2016-10-22 Werner Lemberg <wl@gnu.org>
+
+ [truetype] Fix SCANTYPE instruction (#49394).
+
+ * src/truetype/ttinterp.c (Ins_SCANTYPE): Only use lower 16bits.
+
+2016-10-22 Werner Lemberg <wl@gnu.org>
+
+ [sfnt] Improve handling of invalid post 2.5 tables [#49393].
+
+ * src/sfnt/ttpost.c (load_format_25): We need at least a single
+ table entry.
+
+2016-10-14 Werner Lemberg <wl@gnu.org>
+
+ [truetype] Fix handling of `cvar' table data.
+
+ Reported as
+
+ https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=53
+
+ * src/truetype/ttgxvar.c (tt_face_vary_cvt): Ignore invalid CVT
+ indices.
+
+2016-10-11 Werner Lemberg <wl@gnu.org>
+
+ [psaux] Fix handling of invalid flex subrs.
+
+ Problem reported as
+
+ https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=52
+
+ * src/psaux/t1decode.c (t1_decoder_parse_charstrings)
+ <op_callothersubr>: Set `flex_state' after error checking.
+
+2016-10-11 Werner Lemberg <wl@gnu.org>
+
+ * src/truetype/ttgxvar.c (tt_done_blend): Fix deallocation.
+
+2016-10-08 Werner Lemberg <wl@gnu.org>
+
+ * src/cid/cidload.c (cid_face_open): Properly propagate `error'.
+
+2016-10-08 Werner Lemberg <wl@gnu.org>
+
+ [cid] Fix parsing of subr offsets.
+
+ Bug introduced 2016-05-16.
+
+ * src/cid/cidparse.c (cid_parser_new): Fix off-by-one error.
+
+2016-10-01 Werner Lemberg <wl@gnu.org>
+
+ [sfnt] Disable bitmap strikes if we don't have a bitmap data table.
+
+ * src/sfnt/ttsbit.c (tt_face_load_sbit): Check whether we have
+ a bitmap data table.
+
+2016-10-01 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ [smooth] Remove impossibility.
+
+ * src/smooth/ftgrays.c (TWorker): Rearrange fields.
+ (gray_convert_glyph): Remove impossible condition and clean up.
+
+2016-09-29 Werner Lemberg <wl@gnu.org>
+
+ [pcf] Enrich family name with foundry name and glyph width info.
+
+ This is a very old patch from openSuSE (from 2006, submitted to
+ FreeType in 2011) that I forgot to apply.
+
+ https://build.opensuse.org/package/view_file/openSUSE:Factory/freetype2/freetype2-bitmap-foundry.patch
+
+ Prepend the foundry name plus a space to the family name. There are
+ many fonts just called `Fixed' which look completely different, and
+ which have nothing to do with each other. When selecting `Fixed' in
+ KDE or Gnome one gets results that appear rather random, the style
+ changes often if one changes the size and one cannot select some
+ fonts at all.
+
+ We also check whether we have `wide' characters; all put together,
+ we get family names like `Sony Fixed' or `Misc Fixed Wide'.
+
+ * src/pcf/pcfread.c (pcf_load_font): Implement it.
+
+ * docs/CHANGES: Document it.
+
+2016-09-29 Werner Lemberg <wl@gnu.org>
+
+ [ftfuzzer] Speed up.
+
+ * src/tools/ftfuzzer/ftfuzzer.cc (LLVMFuzzerTestOneInput): Don't
+ check for embedded bitmaps if we have a non-default instance.
+
+2016-09-29 Werner Lemberg <wl@gnu.org>
+
+ [truetype] Disallow bitmap strikes for non-default instances.
+
+ Also speed up access of default instances if GX variations are
+ active.
+
+ * include/freetype/internal/tttypes.h (TT_FaceRec): Add
+ `is_default_instance' member.
+
+ * src/sfnt/sfobjs.c (sfnt_init_face): Initialize
+ `is_default_instance'.
+
+ * src/truetype/ttgload.c (TT_Process_Simple_Glyph,
+ load_truetype_glyph): Add test for default instance.
+ (TT_Load_Glyph): Load embedded bitmaps for default instance only.
+
+ * src/truetype/ttgxvar.c (TT_Set_MM_Blend): Compute
+ `is_default_instance'.
+
+2016-09-29 Werner Lemberg <wl@gnu.org>
+
+ [truetype] Clean up `TT_Face' structure.
+
+ * include/freetype/internal/tttypes.h (TT_FaceRec): Remove unused
+ fields `horz_metrics' and `vert_metrics'.
+ Update documentation.
+
+ * src/sfnt/sfobjs.c (sfnt_done_face): Updated.
+
+2016-09-28 Werner Lemberg <wl@gnu.org>
+
+ More FT_ZERO usage.
+
+ * src/gxvalid/gxvcommn.c (gxv_ClassTable_validate):
+ s/ft_memset/FT_MEM_ZERO/.
+
+ * src/psaux/t1decode.c (t1_decoder_parse_charstrings):
+ s/ft_memset/FT_ARRAY_ZERO/.
+
+ * src/raster/ftraster.c (FT_ZERO): Define.
+ (ft_black_new): Use it.
+ * src/raster/ftrend1.c (ft_raster1_get_cbox):
+ s/FT_MEM_ZERO/FT_ZERO/.
+
+ * src/smooth/ftgrays.c (FT_ZERO): Define.
+ (gray_raster_new): Use it.
+ * src/smooth/ftsmooth.c (ft_smooth_get_cbox):
+ s/FT_MEM_ZERO/FT_ZERO/.
+
+2016-09-28 Werner Lemberg <wl@gnu.org>
+
+ */*: s/FT_MEM_ZERO/FT_ZERO/ where appropriate.
+
+2016-09-27 Werner Lemberg <wl@gnu.org>
+
+ [truetype] Trace number of executed opcodes.
+
+ * src/truetype/ttinterp.c (TT_RunIns): Implement it.
+
+2016-09-27 Werner Lemberg <wl@gnu.org>
+
+ [truetype] Speed up `TT_Load_Glyph'.
+
+ This avoids additional calls to `tt_face_lookup_table' for the
+ `glyf' table, which can be expensive.
+
+ * include/freetype/internal/tttypes.h (TT_LoaderRec): Move
+ `glyf_offset' field to ...
+ (TT_FaceRec): ... this structure.
+ * src/truetype/ttgload.c (load_truetype_glyph): Updated.
+ (tt_loader_init): Move initialization of `glyf_offset' to ...
+ * src/truetype/ttpload.c (tt_face_load_loca): ... this function.
+
+2016-09-27 Werner Lemberg <wl@gnu.org>
+
+ [truetype] Introduce dynamic limits for some bytecode opcodes.
+
+ This speeds up FreeType's handling of malformed fonts.
+
+ * src/truetype/ttinterp.c (TT_RunIns): Set up limits for the number
+ of twilight points, the total number of negative jumps, and the
+ total number of loops in LOOPCALL opcodes. The values are based on
+ the number of points and entries in the CVT table.
+ (Ins_JMPR): Test negative jump counter.
+ (Ins_LOOPCALL): Test loopcall counter.
+
+ * src/truetype/ttinterp.h (TT_ExecContext): Updated.
+
+ * docs/CHANGES: Updated.
+
+2016-09-25 Werner Lemberg <wl@gnu.org>
+
+ [truetype] Sanitize only last entry of `loca' table.
+
+ Without this patch, a loca sequence like `0 100000 0 100000 ...',
+ where value 100000 is larger than the `glyf' table size, makes
+ FreeType handle the whole `glyf' table as a single glyph again and
+ again, which is certainly invalid (and can be very slow, too).
+
+ * src/truetype/ttpload.c (tt_face_get_location): Implement.
+ Improve tracing messages.
+
+2016-09-25 Werner Lemberg <wl@gnu.org>
+
+ * src/tools/ftfuzzer/ftfuzzer.cc (LLVMFuzzerTestOneInput): Fix typo.
+
+2016-09-24 Werner Lemberg <wl@gnu.org>
+
+ [autofit] Tracing fixes.
+
+ * src/autofit/afmodule.c (af_autofitter_load_glyph): Call dumping
+ functions only if we actually do tracing.
+
+2016-09-22 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ [smooth] Reduce divisions in the line renderer.
+
+ We don't need some divisions if a line segments stays within a single
+ row or a single column of pixels.
+
+ * src/smooth/ftgrays.c (gray_render_line) [FT_LONG64]: Make divisions
+ conditional.
+
+2016-09-15 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ * src/smooth/ftgrays.c (gray_sweep): Remove check for empty table.
+
+2016-09-14 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ [smooth] Another tiny speed-up.
+
+ * src/smooth/ftgrays.c (gray_find_cell): Merge into...
+ (gray_record_cell): ... this function.
+
+2016-09-11 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ * src/smooth/ftgrays.c (gray_{find,set}_cell): Remove dubious code.
+
+2016-09-11 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ [smooth] Fix valgrind warning and reoptimize.
+
+ The algorithm calls `gray_set_cell' at the start of each new contour
+ or when the contours cross the cell boundaries. Double-checking for
+ that is wasteful.
+
+ * src/smooth/ftgrays.c (gray_set_cell): Remove check for a new cell.
+ (gray_convert_glyph): Remove initialization introduced by 44b172e88.
+
+2016-09-10 Werner Lemberg <wl@gnu.org>
+
+ [sfnt] Fix previous commit.
+
+ Problems reported as
+
+ https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=40
+
+ We now map the strike index right before accessing the physical
+ data, not earlier.
+
+ * src/sfnt/sfobjs.c (sfnt_load_face): Set `face->sbit_strike_map'
+ after creating the map so that...
+
+ * src/sfnt/ttsbit.c (tt_face_load_strike_metrics): ... this function
+ can be used before and after setting up `sbit_strike_map'.
+ (tt_face_set_sbit_strike): Revert change.
+ (tt_sbit_decoder_init, tt_face_load_sbix_image): Map strike index.
+
+ * src/truetype/ttdriver.c (tt_size_select): Revert change.
+
+2016-09-09 Werner Lemberg <wl@gnu.org>
+
+ [ftfuzzer] Minor improvements.
+
+ * src/tools/ftfuzzer/ftfuzzer.cc (LLVMFuzzerTestOneInput): Ignore
+ invalid strikes.
+ Use better values for call to `FT_Set_Char_Size'.
+
+2016-09-09 Werner Lemberg <wl@gnu.org>
+
+ [sfnt] Don't provide (completely) broken strike data.
+
+ FreeType tries to sanitize strike header data; we now reject
+ completely broken ones.
+
+ * include/freetype/internal/tttypes.h (TT_FaceRec): New
+ `sbit_strike_map' array pointer.
+
+ * src/base/ftobjs.c (FT_Match_Size): Reject matches where either
+ width or height would be zero.
+ Add tracing message in case of error.
+
+ * src/sfnt/sfobjs.c (sfnt_load_face): Populate `sbit_strike_map',
+ only using (more or less) valid strike header data for
+ FT_Face's `available_sizes' array.
+ (sfnt_done_face): Updated.
+
+ * src/sfnt/ttsbit.c (tt_face_set_sbit_strike): Use
+ `sbit_strike_map'.
+ (tt_face_load_strike_metrics): Improve tracing.
+
+ * src/truetype/ttdriver.c (tt_size_select): Use `sbit_strike_map'.
+
+2016-09-08 Werner Lemberg <wl@gnu.org>
+
+ * Version 2.7 released.
+ =======================
+
+
+ Tag sources with `VER-2-7'.
+
+ * docs/VERSION.TXT: Add entry for version 2.7.
+
+ * README, Jamfile (RefDoc), builds/windows/vc2005/freetype.vcproj,
+ builds/windows/vc2005/index.html,
+ builds/windows/vc2008/freetype.vcproj,
+ builds/windows/vc2008/index.html,
+ builds/windows/vc2010/freetype.vcxproj,
+ builds/windows/vc2010/index.html,
+ builds/windows/visualc/freetype.dsp,
+ builds/windows/visualc/freetype.vcproj,
+ builds/windows/visualc/index.html,
+ builds/windows/visualce/freetype.dsp,
+ builds/windows/visualce/freetype.vcproj,
+ builds/windows/visualce/index.html,
+ builds/wince/vc2005-ce/freetype.vcproj,
+ builds/wince/vc2005-ce/index.html,
+ builds/wince/vc2008-ce/freetype.vcproj,
+ builds/wince/vc2008-ce/index.html: s/2.6.5/2.7/, s/265/27/.
+
+ * include/freetype/freetype.h (FREETYPE_MINOR): Set to 7.
+ (FREETYPE_PATCH): Set to 0.
+
+ * builds/unix/configure.raw (version_info): Set to 18:6:12.
+ * CMakeLists.txt (VERSION_MINOR): Set to 7.
+ (VERSION_PATCH): Set to 0.
+
+ * docs/CHANGES: Updated.
+
+2016-09-08 Werner Lemberg <wl@gnu.org>
+
+ * src/truetype/ttinterp.c: Include `ttgxvar.h'.
+
+ This fixes the `multi' build.
+
+2016-09-08 Werner Lemberg <wl@gnu.org>
+
+ [autofit] Another improvement to Armenian support.
+
+ Suggested by Hrant H Papazian <hpapazian@gmail.com>.
+
+ * src/autofit/afscript.h: Use better suited characters to derive
+ default stem widths.
+
+2016-09-07 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ * src/smooth/ftgrays.c (gray_hline): Micro-optimize.
+
+2016-09-06 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ [smooth] Operate in absolute bitmap coordinates.
+
+ Simpler bitmap addressing improves performance by 1.5%.
+
+ * src/smooth/ftgrays.c (gray_TWorker): Remove count fields.
+ (gray_dump_cells, gray_find_cell, gray_set_cell, gray_hline,
+ gray_sweep, gray_convert_glyph, gray_raster_render): Updated.
+
+2016-09-06 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ [smooth] Improve contour start (take 2).
+
+ * src/smooth/ftgrays.c (gray_move_to): Call `gray_set_cell' directly
+ instead of...
+ (gray_start_cell): ... this function, which is removed.
+ (gray_convert_glyph): Make initial y-coordinate invalid.
+
+2016-09-06 Werner Lemberg <wl@gnu.org>
+
+ [type1] MM fonts support exactly zero named instances (#48748).
+
+ * src/type1/t1load.c (T1_Get_MM_Var): Set `num_namedstyles' to zero.
+
+2016-09-06 Jonathan Kew <jfkthame@gmail.com>
+
+ [cff] Fix uninitialized memory.
+
+ Problem reported as
+
+ https://bugzilla.mozilla.org/show_bug.cgi?id=1270288
+
+ * src/cff/cf2intrp.c (cf2_interpT2CharString): Initialize `storage'
+ array to handle a `get' opcode without a previous `put'.
+
+2016-09-05 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ * src/smooth/ftgrays.c (gray_move_to, gray_start_cell): Revert.
+
+2016-09-05 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ [smooth] Improve contour start.
+
+ * src/smooth/ftgrays.c (gray_move_to): Call `gray_set_cell' directly
+ instead of...
+ (gray_start_cell): ... this function, which is removed.
+
+2016-09-05 Werner Lemberg <wl@gnu.org>
+
+ [cff] Fix memory initialization.
+
+ * src/cff/cf2stack.c (cf2_stack_init): Use `FT_NEW'. The `Q'
+ variants of FreeType's memory allocation macros don't do zeroing.
+
+2016-09-05 Werner Lemberg <wl@gnu.org>
+
+ [ftrandom] Minor improvements.
+
+ * src/tools/ftrandom/ftrandom.c (_XOPEN_SOURCE): New macro, set to
+ 500.
+
+ * src/tools/ftrandom/Makefile (CFLAGS): Split off include
+ directories to ...
+ (INCLUDES): ... this new variable.
+ (LDFLAGS): New variable.
+ (ftrandom.o, ftrandom): Updated.
+
+2016-09-05 Werner Lemberg <wl@gnu.org>
+
+ [autofit] Improve Armenian support.
+
+ Thanks to Hrant H Papazian <hpapazian@gmail.com> for help.
+
+ * src/autofit/afblue.dat (AF_BLUE_STRING_ARMENIAN_*): Improve
+ selection of characters.
+
+ * src/autofit/afblue.c, src/autofit/afblue.h: Regenerated.
+
+2016-09-04 Werner Lemberg <wl@gnu.org>
+
+ [ftrandom] Improve Makefile.
+
+ It now supports both a normal build (`./configure && make') and a
+ development build (`make devel').
+
+ * src/tools/ftrandom/Makefile (VPATH): Set it so that
+ `libfreetype.a' gets searched in both `objs' (for the development
+ build) and `objs/.libs' (for a normal build which uses libtool).
+ (LIBS): Add missing libraries.
+ (ftrandom.o): New rule.
+ (ftrandom): Use automatic variables.
+
+2016-09-03 Werner Lemberg <wl@gnu.org>
+
+ [truetype] More fixes for handling of GX deltas.
+
+ Problems reported by Bob Taylor <Bob.Taylor@monotype.com>.
+
+ * src/truetype/ttgxvar.c (TT_Vary_Apply_Glyph_Deltas): Fix rough
+ sanity test for glyph variation array header size.
+ Always set stream position before reading packed x and y deltas.
+ Fix thinko w.r.t. `localpoints' array.
+
+2016-09-03 Werner Lemberg <wl@gnu.org>
+
+ [ftrandom] Various fixes.
+
+ * src/tools/ftrandom/ftrandom.c (GOOD_FONTS_DIR): Provide better
+ default.
+ (error_fraction): Make it of type `double' to work as advertized –
+ this was completely broken.
+ Update all related code.
+ (error_count, fcnt): Make it unsigned to fix compiler warnings.
+ Update all related code.
+ (fontlist): Change `len' member to `long' to fix compiler warnings.
+ (FT_MoveTo, FT_LineTo, FT_ConicTo, FT_CubicTo, abort_test): Tag
+ unused variables.
+ (TestFace, FindFonts, copyfont, do_test): Fix compiler warnings.
+ (ExecuteTest): Ditto.
+ Call `FT_Done_FreeType'.
+ (getErrorCnt): Replace `ceil' with an ordinary cast to `unsigned
+ int'.
+ (usage): Improve output.
+ (main): Fix compiler warnings.
+
+ * src/tools/ftrandom/README: Updated.
+
+2016-09-03 Werner Lemberg <wl@gnu.org>
+
+ [base] Avoid negative bitmap strike dimensions (#48985).
+
+ * src/base/ftobjs.c (FT_Open_Face): Check whether negation was
+ actually successful. For example, this can fail for value
+ -32768 if the type is `signed short'. If there are problems,
+ disable the strike.
+
+2016-09-03 Werner Lemberg <wl@gnu.org>
+
+ [cff] Avoid null pointer passed to FT_MEM_COPY (#48984).
+
+ * src/cff/cffload.c (cff_index_get_name): Check `byte_len'.
+
+2016-09-02 Werner Lemberg <wl@gnu.org>
+
+ [unix] Enable 64bit support in file system access (#48962).
+
+ * builds/unix/configure.raw: Call `AC_SYS_LARGEFILE'.
+
+2016-09-02 Werner Lemberg <wl@gnu.org>
+
+ [sfnt] Avoid left shift of negative value (#48980).
+
+ * src/sfnt/ttsbit.c (tt_sbit_decoder_load_bit_aligned): Use unsigned
+ constant.
+
+2016-09-02 Werner Lemberg <wl@gnu.org>
+
+ * src/smooth/ftgrays.c (gray_hline): Fix clang compiler warnings.
+
+2016-09-02 Werner Lemberg <wl@gnu.org>
+
+ Some preparations for the next release.
+
+ * include/freetype/config/ftoption.h
+ (TT_CONFIG_OPTION_SUBPIXEL_HINTING): Enable.
+
+ * docs/CHANGES: Updated.
+
+2016-09-01 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ [smooth] Simplify span rendering more.
+
+ It turns out that there is significant cost associated with `FT_Span'
+ creation and calls to `gray_render_span' because it happens so
+ frequently. This removes these steps from our internal use but leaves
+ it alone for `FT_RASTER_FLAG_DIRECT" to preserve API. The speed gain
+ is about 5%.
+
+ * src/smooth/ftgrays.c (gray_render_span): Removed. The code is
+ migrated to...
+ (gray_hline): ... here.
+
+2016-08-30 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ [smooth] Streamline pixmap drawing a bit more.
+
+ Zero coverage is unlikely (1 out of 256) to warrant checking. This
+ gives 0.5% speed improvement in rendering simple glyphs.
+
+ * src/smooth/ftgrays.c (gray_hline, gray_render_span): Remove checks.
+
+2016-08-29 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ [smooth] Streamline pixmap drawing.
+
+ This gives 2% speed improvement in rendering simple glyphs.
+
+ * src/smooth/ftgrays.c (TPixmap): Reduced pixmap descriptor with a
+ pointer to its bottom-left and pitch to be used in...
+ (gray_TWorker): ... here.
+ (gray_render_span): Move pixmap flow check from here...
+ (gray_raster_render): .. to here.
+
+2016-08-27 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ [smooth] Reduce stack of band boundaries.
+
+ * src/smooth/ftgrays.c (gray_TBand): Removed.
+ (gray_convert_glyph): Updated to stack band boundaries concisely.
+
+2016-08-26 Werner Lemberg <wl@gnu.org>
+
+ * src/cid/cidload.c (cid_face_open): Improve handling of `SDBytes'.
+
+2016-08-26 Werner Lemberg <wl@gnu.org>
+
+ [cid] Fix commit from 2016-05-16.
+
+ * src/cid/cidparse.c (cid_parser_new): Fix off-by-one errors.
+
+2016-08-26 Werner Lemberg <wl@gnu.org>
+
+ [sfnt] Cache offset and size to bitmap data table.
+
+ This commit avoids `EBDT' and friends being looked up again and
+ again while loading a single embedded bitmap.
+
+ * include/freetype/internal/tttypes.h (TT_FaceRec)
+ [TT_CONFIG_OPTION_EMBEDDED_BITMAPS]: New fields `ebdt_start' and
+ `ebdt_size'.
+
+ * src/sfnt/ttsbit.c (tt_sbit_decoder_init): Move table lookup to ...
+ (tt_face_load_sbit): ... this function; also store the table size
+ and offset.
+
+2016-08-26 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ * src/smooth/ftgrays.c (gray_raster_render): Minor tweaks.
+
+2016-08-26 Werner Lemberg <wl@gnu.org>
+
+ [type1] Fix heap buffer overflow.
+
+ Reported as
+
+ https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=36
+
+ * src/type1/t1load.c (parse_charstrings): Reject fonts that don't
+ contain glyph names.
+
+2016-08-25 Werner Lemberg <wl@gnu.org>
+
+ [sfnt] Fix previous commit (#48901).
+
+ * src/sfnt/ttcmap.c (tt_cmap4_char_map_binary): Thinkos.
+
+2016-08-25 Werner Lemberg <wl@gnu.org>
+
+ [sfnt] Speed up handling of invalid format 4 cmaps.
+
+ * src/sfnt/ttcmap.c (tt_cmap4_next, tt_cmap4_char_map_binary): Add
+ tests for `num_glyph' from `tt_cmap4_char_map_linear'.
+
+2016-08-25 Werner Lemberg <wl@gnu.org>
+
+ * include/freetype/internal/ftdriver.h: Remove unused typedefs.
+
+2016-08-22 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ [smooth] Simplify span rendering.
+
+ This removes unnecessary complexity of span merging and buffering.
+ Instead, the spans are rendered as they come, speeding up the
+ rendering by about 5% as a result.
+
+ * src/smooth/ftgrays.c [FT_MAX_GRAY_SPANS]: Macro removed.
+ (gray_TWorker): Remove span buffer and related fields.
+ (gray_sweep, gray_hline): Updated.
+
+ * include/freetype/ftimage.h: Remove documentation note about
+ `FT_MAX_GRAY_SPANS', which was never in `ftoption.h' and is now gone.
+
+2016-08-16 Werner Lemberg <wl@gnu.org>
+
+ [truetype] Fix `MPS' instruction.
+
+ According to Greg Hitchcock, MPS in DWrite really returns the point
+ size.
+
+ * src/truetype/ttobjs.h (TT_SizeRec): Add `point_size' member.
+
+ * src/truetype/ttdriver.c (tt_size_request): Set `point_size'.
+
+ * src/truetype/ttinterp.h (TT_ExecContextRec): Add `pointSize'
+ member.
+
+ * src/truetype/ttinterp.c (TT_Load_Context): Updated.
+ (Ins_MPS): Fix instruction.
+
+2016-08-16 Werner Lemberg <wl@gnu.org>
+
+ [lzw] Optimize last commit.
+
+ * src/lzw/ftzopen.c (ft_lzwstate_get_code): Move check into
+ conditional clause.
+
+2016-08-16 Werner Lemberg <wl@gnu.org>
+
+ [lzw] Avoid invalid left shift.
+
+ Reported as
+
+ https://bugzilla.mozilla.org/show_bug.cgi?id=1295366
+
+ * src/lzw/ftzopen.c (ft_lzwstate_get_code): Limit `num_bits'.
+
+2016-08-16 Werner Lemberg <wl@gnu.org>
+
+ [lzw] Avoid buffer overrun.
+
+ Reported as
+
+ https://bugzilla.mozilla.org/show_bug.cgi?id=1273283
+
+ * src/lzw/ftzopen.c (ft_lzwstate_refill): Ensure `buf_size' doesn't
+ underflow.
+
+2016-08-16 Werner Lemberg <wl@gnu.org>
+
+ [truetype] Fix compiler warning.
+
+ * src/truetype/ttgload.c (load_truetype_glyph): Add cast.
+
+2016-08-13 Werner Lemberg <wl@gnu.org>
+
+ [winfonts] Avoid zero bitmap width and height.
+
+ Reported as
+
+ https://bugzilla.mozilla.org/show_bug.cgi?id=1272173
+
+ * src/winfonts/winfnt.c (FNT_Face_Init): Check zero pixel height.
+ (FNT_Load_Glyph): Check for zero pitch.
+
+2016-08-11 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ * src/truetype/ttinterp.c (Pop_Push_Count): Revert changes.
+
+2016-08-11 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ * src/truetype/ttinterp.c (TT_RunIns): Minor and formatting.
+
+2016-08-11 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ * src/truetype/ttinterp.c (Pop_Push_Count): Fix some entries.
+
+2016-08-10 Peter Klotz <Peter.Klotz@ith-icoserve.com>
+
+ * src/smooth/ftgrays.c (gray_hline): Fix uninitialized access.
+
+2016-08-10 Werner Lemberg <wl@gnu.org>
+
+ [sfnt] Use correct type for `italicAngle' field (#48732).
+
+ * src/sfnt/ttload.c (tt_face_load_post): Fix types.
+
+2016-08-06 Jon Spencer <jon@jonspencer.ca>
+
+ [sfnt] Fix `FT_Get_Advance' for bitmap strikes.
+
+ `FT_Get_Advance' returns 0 for bitmap fonts. It first gets the
+ advance value from the font table and then scales it by the
+ `font->size->metrics->x_scale' field. But `FT_Select_Size' doesn't
+ set that value for bitmap fonts and the advance gets scaled to zero.
+
+ Taken from
+
+ https://github.com/behdad/harfbuzz/issues/252
+
+ * src/sfnt/ttsbit.c (tt_face_load_strike_metrics)
+ <TT_SBIT_TABLE_TYPE_EBLC>: Set scale values.
+
+2016-08-06 Behdad Esfahbod <behdad@behdad.org>
+
+ [truetype] Fix GX variation handling of composites.
+
+ * src/truetype/ttgload.c (load_truetype_glyph)
+ [TT_CONFIG_OPTION_GX_VAR_SUPPORT]: Check `ARGS_ARE_XY_VALUES' flag.
+
+2016-08-05 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ [smooth] Minor refactoring.
+
+ * src/smooth/ftgrays.c (gray_render_scanline, gray_render_line):
+ Updated.
+
+2016-07-29 Werner Lemberg <wl@gnu.org>
+
+ [sfnt, truetype] Don't abort on invalid `maxComponentDepth'.
+
+ Since 2016-05-16 we detect infinite recursion directly.
+
+ * src/sfnt/ttload.c (tt_face_load_maxp): Don't adjust
+ `maxComponentDepth'.
+ * src/truetype/ttgload.c (load_truetype_glyph): Don't abort if
+ `maxComponentDepth' is not valid. Instead, simply adjust its value
+ and emit a tracing message.
+
+2016-07-26 Werner Lemberg <wl@gnu.org>
+
+ * src/autofit/aflatin.c (af_latin_metrics_scale_dim): Minor.
+
+ No functional change.
+
+2016-07-22 Hin-Tak Leung <htl10@users.sourceforge.net>
+
+ [truetype] Record the end of IDEFs.
+
+ To match the logic in FDEF. The value of the end is only used for
+ bound-checking in `Ins_JMPR', so it may not have been obvious that
+ it was not recorded. Tested (as part of Font Validator 2.0) all the
+ fonts on Fedora and did not see any change.
+
+ * src/truetype/ttinterp.c (Ins_IDEF): Updated.
+
+2016-07-19 Werner Lemberg <wl@gnu.org>
+
+ [truetype] Sanitizer fix, second try.
+
+ * src/truetype/ttgxvar.c (ft_var_readpackedpoints): Fix boundary
+ tests and use only one slot more.
+
+2016-07-19 Werner Lemberg <wl@gnu.org>
+
+ [truetype] Sanitizer fix.
+
+ * src/truetype/ttgxvar.c (ft_var_readpackedpoints): Increase array
+ to fix nested loops.
+
+2016-07-18 Werner Lemberg <wl@gnu.org>
+
+ [truetype] Make GETDATA work only for GX fonts.
+
+ * src/truetype/ttinterp.c (opcode_name): Updated.
+ (Ins_GETDATA): Only define for `TT_CONFIG_OPTION_GX_VAR_SUPPORT'.
+ (TT_RunIns): Updated.
+
+2016-07-17 Werner Lemberg <wl@gnu.org>
+
+ [truetype] Add support for Apple's
+
+ GETDATA[], opcode 0x92
+
+ bytecode instruction. It always returns 17, and we have absolutely
+ no idea what it is good for...
+
+ * src/truetype/ttinterp.c (Pop_Push_Count, opcode_name): Updated.
+ (Ins_GETDATA): New function.
+ (TT_RunIns): Add it.
+
+2016-07-16 Werner Lemberg <wl@gnu.org>
+
+ [truetype] Add bytecode support for GX variation fonts.
+
+ This commit implements undocumented (but confirmed) stuff from
+ Apple's old bytecode engine.
+
+ GETVARIATION[], opcode 0x91
+ This opcode pushes normalized variation coordinates for all axes
+ onto the stack (in 2.14 format). Coordinate of first axis gets
+ pushed first.
+
+ GETINFO[], selector bit 3
+ If GX variation support is enabled, bit 10 of the result is set
+ to 1.
+
+ * src/truetype/ttinterp.c: Include FT_MULTIPLE_MASTERS_H.
+ (opcode_name) [TT_CONFIG_OPTION_GX_VAR_SUPPORT]: Updated.
+ (Ins_GETINFO) [TT_CONFIG_OPTION_GX_VAR_SUPPORT]: Handle selector
+ bit 3, checking support for variation glyph hinting.
+ (Ins_GETVARIATION) [TT_CONFIG_OPTION_GX_VAR_SUPPORT]: New function
+ to implement opcode 0x91.
+ (TT_RunIns) [TT_CONFIG_OPTION_GX_VAR_SUPPORT]: Handle opcode 0x91.
+
+2016-07-16 Werner Lemberg <wl@gnu.org>
+
+ [truetype] Fix GETINFO bytecode instruction.
+
+ * src/truetype/ttinterp.c (Ins_GETINFO): Fix return value for
+ stretching information.
+
+2016-07-16 Behdad Esfahbod <behdad@behdad.org>
+
+ [truetype] Make all glyphs in `Zycon' GX font work.
+
+ * src/truetype/ttgxvar.c (ft_var_readpackedpoints): Fix boundary
+ tests.
+
+2016-07-16 Werner Lemberg <wl@gnu.org>
+
+ [truetype] Fix GX delta tracing.
+
+ * src/truetype/ttgxvar.c (TT_Vary_Apply_Glyph_Deltas): Trace
+ relative point movements.
+
+2016-07-16 Behdad Esfahbod <behdad@behdad.org>
+
+ [truetype] More fixes for GX.
+
+ This finally fixes the rendering of the cyclist and the lizard in
+ the `Zycon' font.
+
+ * src/truetype/ttgxvar.c (ft_var_readpackedpoints): `first' point
+ index is always cumulative.
+
+ (tt_handle_deltas): Rename to...
+ (tt_interpolate_deltas): ... This.
+ Add new parameter for output point array.
+ Update caller.
+
+ (TT_Vary_Apply_Glyph_Deltas): Add `points_out' array; it now holds
+ the intermediate results of `tt_interpolate_deltas' that are to be
+ added to `outline->points'.
+
+2016-07-15 Werner Lemberg <wl@gnu.org>
+
+ * src/autofit/aflatin.c (af_latin_hints_compute_segments): Thinko.
+
+ `max_pos' is always larger than `min_pos' so `FT_ABS' is not needed.
+
+ Reported by Alexei.
+
+2016-07-16 Nikolaus Waxweiler <madigens@gmail.com>
+
+ * src/truetype/ttinterp.c (Ins_MIRP): Fix copy-and-paste error.
+
+ Problem reported by Hin-Tak Leung.
+
+2016-07-15 Werner Lemberg <wl@gnu.org>
+
+ [autofit] Update and improve segment and edge tracing.
+
+ * src/autofit/afhints.c (af_glyph_hints_dump_segments): Trace
+ `delta' also.
+ Don't show first point of segment as a replacement for `pos'; this
+ is (a) misleading, since the difference to `pos' can be almost
+ arbitrarily large in corner cases, and (b) it is better to have all
+ segment data in font units instead of a single value given in output
+ space coordinates.
+ Improve layout.
+ (af_glyph_hints_dump_edges): Show px->units and units->px conversion
+ values for convenience.
+ Improve layout.
+
+2016-07-15 Werner Lemberg <wl@gnu.org>
+
+ [autofit] For edges, reject segments wider than 1px (#41334).
+
+ * src/autofit/afhints.h (AF_SegmentRec): New member `delta'.
+
+ * src/autofit/aflatin.c (af_latin_hints_compute_segments): Compute
+ `delta'.
+ (af_latin_hints_compute_edges): Reject segments with a delta larger
+ than 0.5px.
+
+2016-07-14 Werner Lemberg <wl@gnu.org>
+
+ * include/freetype/freetype.h (FT_IS_NAMED_INSTANCE): New macro.
+
+2016-07-14 Werner Lemberg <wl@gnu.org>
+
+ [sfnt] Fix `face_index' value in `FT_Face' for named instances.
+
+ * src/sfnt/sfobjs.c (sfnt_init_face): Don't strip off higher 16bits.
+
+2016-07-14 Werner Lemberg <wl@gnu.org>
+
+ * src/truetype/ttgxvar.c (TT_Vary_Apply_Glyph_Deltas): Fix tracing.
+
+2016-07-14 Behdad Esfahbod <behdad@behdad.org>
+
+ [truetype] Fix gxvar delta interpolation.
+
+ The coordinates of the base font should be used for interpolation
+ purposes, NOT the current points (i.e., the result of accumulation
+ of previous deltas).
+
+ * src/truetype/ttgxvar.c (TT_Vary_Apply_Glyph_Deltas): Initialize
+ `points_org' before looping over all tuples.
+
+
+----------------------------------------------------------------------------
+
+Copyright (C) 2016-2021 by
+David Turner, Robert Wilhelm, and Werner Lemberg.
+
+This file is part of the FreeType project, and may only be used, modified,
+and distributed under the terms of the FreeType project license,
+LICENSE.TXT. By continuing to use, modify, or distribute this file you
+indicate that you have read the license and understand and accept it
+fully.
+
+
+Local Variables:
+version-control: never
+coding: utf-8
+End:
diff --git a/freetype/docs/oldlogs/ChangeLog.28 b/freetype/docs/oldlogs/ChangeLog.28
new file mode 100644
index 00000000..d7cc2e01
--- /dev/null
+++ b/freetype/docs/oldlogs/ChangeLog.28
@@ -0,0 +1,3136 @@
+2017-09-16 Werner Lemberg <wl@gnu.org>
+
+ * Version 2.8.1 released.
+ =========================
+
+
+ Tag sources with `VER-2-8-1'.
+
+ * docs/VERSION.TXT: Add entry for version 2.8.1.
+ * docs/CHANGES: Updated.
+
+ * README, Jamfile (RefDoc), builds/windows/vc2005/freetype.vcproj,
+ builds/windows/vc2005/index.html,
+ builds/windows/vc2008/freetype.vcproj,
+ builds/windows/vc2008/index.html,
+ builds/windows/vc2010/freetype.vcxproj,
+ builds/windows/vc2010/index.html,
+ builds/windows/visualc/freetype.dsp,
+ builds/windows/visualc/freetype.vcproj,
+ builds/windows/visualc/index.html,
+ builds/windows/visualce/freetype.dsp,
+ builds/windows/visualce/freetype.vcproj,
+ builds/windows/visualce/index.html,
+ builds/wince/vc2005-ce/freetype.vcproj,
+ builds/wince/vc2005-ce/index.html,
+ builds/wince/vc2008-ce/freetype.vcproj,
+ builds/wince/vc2008-ce/index.html: s/2.8/2.8.1/, s/28/281/.
+
+ * include/freetype/freetype.h (FREETYPE_PATCH): Set to 1.
+
+ * builds/unix/configure.raw (version_info): Set to 21:0:15.
+ * CMakeLists.txt (VERSION_PATCH): Set to 1.
+
+2017-09-13 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ [sfnt] lowest gcc for vectors (e1d0249e) is changed to 4.7.
+
+ __builtin_shuffle() was introduced in gcc-4.7. The lowest
+ gcc to enable vector operation is delayed from 4.6 to 4.7.
+
+ * src/sfnt/pngshim.c (premultiply_data): Fix cpp-macro to
+ enable the vector operation, to change the lowest gcc version
+ from 4.6 to 4.7.
+
+2017-09-13 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ [cache] Fix a possible overflow by signed integer comparison.
+
+ Improve the code by 5d3ff05615dda6d1325ed612381a17a0df04c975 ,
+ issues are found by Behdad Esfahbod and Werner Lemberg.
+
+ * src/cache/ftcbasic.c (FTC_ImageCache_Lookup): Replace
+ a subtraction to check higher bit by a bit operation,
+ and cpp-conditionalize for appropriate systems. Add better
+ documentation to the comment.
+ (FTC_ImageCache_LookupScaler): Ditto.
+ (FTC_SBitCache_Lookup): Ditto.
+ (FTC_SBitCache_LookupScaler): Ditto.
+
+2017-09-13 Werner Lemberg <wl@gnu.org>
+
+ [autofit] Really fix #41334 (#52000).
+
+ * src/autofit/aflatin.c (af_latin_hints_compute_segments): Set
+ `segment->delta' everywhere.
+
+2017-09-12 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ [autofit, sfnt] Fix for `make multi'.
+
+ * src/autofit/afshaper.c: Include FT_ADVANCE_H, to use
+ FT_Get_Advance() in it.
+ * src/sfnt/ttcmap.c: Include FT_SERVICE_POSTSCRIPT_CMAPS_H
+ to use PS_Unicodes in it, also include `ttpost.h' to use
+ tt_face_get_ps_name() in it.
+
+2017-09-11 Azzuro <azzuro@team-mediaportal.com>
+
+ [build] Improve builds with different MS Visual Studio versions.
+
+ * builds/windows/vc2010/freetype.vcxproj: Switch platform toolset
+ according to the Visual Studio version.
+
+2017-09-11 Werner Lemberg <wl@gnu.org>
+
+ * src/sfnt/ttkern.c (tt_face_load_kern): Reject format 2 tables.
+
+ Reported by Behdad.
+
+2017-09-09 Werner Lemberg <wl@gnu.org>
+
+ [autofit] Improve communication with ftgrid.
+
+ * src/autofit/afhints.c (af_glyph_hints_get_segment_offset):
+ Provide values in font units.
+
+2017-09-08 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ [base] Remove a check for resource ID in the resource fork driver.
+
+ LastResort.dfont has a marginal resource ID 0xFFFF for sfnt
+ resource. Inside Macintosh: More Macintosh Toolbox, `Resource IDs'
+ (1-46), tells that some IDs are reserved and should not be used.
+ FreeType2 just uses resource ID to sort the fragmented resource.
+ To accept the marginal fonts, the checking is removed.
+
+ * src/base/ftrfork.c (FT_Raccess_Get_DataOffsets): Remove res_id
+ validity check, fix a trace message format.
+
+2017-09-08 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ [sfnt, truetype] Register the tags for marginal fonts.
+
+ The first 32bit of standard TrueType variants is 0x00010000,
+ `OTTO', `ttcf', `true' or `typ1'. 2 marginal dfonts on legacy Mac
+ OS X, Keyboard.dfont and LastResort.dfont, have the sfnt resources
+ starting 0xA5 followed by `kbd' or `lst'. Considering the following
+ data could be parsed as conventional TrueType fonts, the header
+ checking is updated to allow these tags. It seems that recent Mac
+ OS X has already switched to normal TTF for these fonts.
+
+ See the discussion at
+ http://u88.n24.queensu.ca/exiftool/forum/index.php?topic=3931.0
+
+ * include/freetype/tttags.h (TTAG_0xA5kbd, TTAG_0xA5lst): New header
+ tags for Keyboard.dfont and LastResort.dfont.
+ * src/sfnt/sfobjs.c (sfnt_open_font): Accept the sfnt resource
+ starts with TTAG_0xA5kbd or TTAG_0xA5lst.
+ * src/truetype/ttobjs.c (tt_face_init): Accept the face with the
+ format tag is TTAG_0xA5kbd or TTAG_0xA5lst.
+
+2017-09-05 Werner Lemberg <wl@gnu.org>
+
+ Fix multiple calls of `FT_Bitmap_Convert'.
+
+ The documentation of `FT_Bitmap_Convert' says that multiple calls do
+ proper reallocation of the target FT_Bitmap object. However, this
+ failed for the sequence
+
+ non-empty bitmap
+ empty bitmap
+ non-empty bitmap
+
+ Reason was that `FT_Bitmap_Convert' only reallocated the bitmap
+ buffer if it became too small; it didn't make the buffer smaller.
+ For an empty bitmap following a non-empty one, only the buffer
+ dimension got set to zero, without deallocation. If the next call
+ was a non-empty buffer again, an assertion in `ft_mem_qrealloc' was
+ triggered.
+
+ * src/base/ftbitmap.c (FT_Bitmap_Convert): Always reallocate target
+ buffer to the correct size.
+
+ * docs/CHANGES: Document it.
+
+2017-09-05 Werner Lemberg <wl@gnu.org>
+
+ [bdf] Fix size and resolution handling.
+
+ * src/bdf/bdfdrivr.c (BDF_Face_Init): Use `SIZE' values if
+ `POINT_SIZE', `RESOLUTION_X', or `RESOLUTION_Y' properties are
+ missing.
+
+ * docs/CHANGES: Document it.
+
+2017-08-25 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ Swap `ALLOC_MULT' arguments (#51833).
+
+ * src/base/ftbitmap.c (ft_bitmap_assure_buffer): Updated.
+ * src/winfonts/winfnt.c (FNT_Load_Glyph): Updated.
+ * src/raster/ftrend1.c (ft_raster1_render): Updated.
+
+2017-08-23 Werner Lemberg <wl@gnu.org>
+
+ [sfnt] Fix clang compilation (#51788).
+
+ * src/sfnt/pngshim.c (premultiply_data): Use vectors instead of
+ scalars.
+ (vector_shuffle): New macro to take care of a different built-in
+ function name on clang.
+
+2017-08-22 Werner Lemberg <wl@gnu.org>
+
+ [base] Don't zero out allocated memory twice (#51816).
+
+ Patch applied from bug report.
+
+ * src/base/ftutil.c (ft_mem_qrealloc): Use low-level allocation to
+ avoid unnecessary overhead.
+
+2017-08-22 Werner Lemberg <wl@gnu.org>
+
+ [truetype] Integer overflow.
+
+ Changes triggered by
+
+ https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=3107
+
+ * src/truetype/ttinterp.c (Ins_MDRP, Ins_MIRP, Ins_ALIGNPTS): Use
+ NEG_LONG.
+
+2017-08-17 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ [sfnt] Avoid synthetic unicode for symbol fonts with PUA.
+
+ Reported as
+
+ https://bugs.chromium.org/p/chromium/issues/detail?id=754574
+
+ * src/sfnt/sfobjs.c (sfnt_load_face): Check for FT_ENCODING_MS_SYMBOL.
+
+2017-08-16 Werner Lemberg <wl@gnu.org>
+
+ * src/sfnt/pngshim.c (premultiply_data): Fix compiler warnings.
+
+2017-08-15 Behdad Esfahbod <behdad@behdad.org>
+
+ [sfnt] Speed up PNG image loading.
+
+ This reduces the overhead of `premultiply_data' by 60%.
+
+ * src/sfnt/pngshim.c (premultiply_data): Provide code which uses
+ gcc's (and clang's) `vector_byte' attribute to process 4 pixels at a
+ time.
+
+2017-08-11 Werner Lemberg <wl@gnu.org>
+
+ [sfnt, truetype] Improve handling of missing sbits.
+
+ Requested by Behdad.
+
+ Modern bitmap-only SFNTs like `NotoColorEmoji.ttf' don't contain
+ entries in the bitmap strike(s) for empty glyphs. Instead, they
+ rely that a space glyph gets created from the font's metrics data.
+ This commit makes FreeType behave accordingly.
+
+ * include/freetype/fterrdef.h (FT_Err_Missing_Bitmap): New error
+ code.
+
+ * src/sfnt/ttsbit.c (tt_sbit_decoder_load_image): Change error codes
+ to make a distinction between a missing bitmap in a composite and a
+ simple missing bitmap.
+
+ * src/truetype/ttgload.c (TT_Load_Glyph): For a missing bitmap (in a
+ bitmap-only font), synthesize an empty bitmap glyph if metrics are
+ available.
+
+2017-08-10 Werner Lemberg <wl@gnu.org>
+
+ [base] Minor API improvement for default variation axis setting.
+
+ * src/base/ftmm.c (FT_Set_MM_Design_Coordinates,
+ FT_Set_Var_Design_Coordinates, FT_Set_MM_Blend_Coordinates,
+ FT_Set_Var_Blend_Coordinates): Allow coords==NULL if num_coords==0.
+
+ * docs/CHANGES: Updated.
+
+2017-08-08 Werner Lemberg <wl@gnu.org>
+
+ [psnames] Really fix issue #49949.
+
+ We now use a separate preprocessor macro to handle both definition
+ and declaration of the glyph name arrays.
+
+ * src/psnames/psmodule.c (DEFINE_PS_TABLE_DATA): New macro.
+
+ * src/tools/glnames.py (StringTable::dump,
+ StringTable::dump_sublist): Use `DEFINE_PS_TABLE_DATA'.
+ (dump_encoding): Ditto.
+ (main): Use `wb' mode for writing the output file, which works on
+ Windows also.
+
+ * src/psnames/pstables.h: Regenerated.
+
+2017-08-08 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ [smooth] Harmony LCD rendering.
+
+ This is a new technology for LCD-optimized rendering. It capitalizes
+ on the fact that each color channel grid is shifted by a third of a
+ pixel. Therefore it is logical to render 3 separate monochrome
+ bitmaps shifting the outline by 1/3 pixel, and then combine them.
+ Importantly, the resulting output does not require additional LCD
+ filtering.
+
+ * src/smooth/ftsmooth.c (ft_smooth_render_generic)
+ [!FT_CONFIG_OPTION_SUBPIXEL_RENDERING]: Implement new LCD-optimized
+ rendering.
+
+ * include/freetype/ftlcdfil.h, include/freetype/freetype.h,
+ include/freetype/config/ftoption.h, devel/ftoption.h: Updated
+ documentation.
+
+2017-08-08 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ * src/smooth/ftsmooth.c (ft_smooth_render_generic): Clean up.
+
+2017-08-08 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ * src/sfnt/ttpost.c (format): Use otspec-compliant versions.
+
+2017-08-05 Werner Lemberg <wl@gnu.org>
+
+ [truetype] Integer overflow.
+
+ Reported as
+
+ https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=2868
+
+ * src/truetype/ttinterp.c (Ins_ALIGNRP): Use NEG_LONG.
+
+2017-08-05 Werner Lemberg <wl@gnu.org>
+
+ [base, truetype] New function `FT_Get_Var_Axis_Flags'.
+
+ The reserved `flags' field got a value in OpenType version 1.8.2;
+ unfortunately, the public `FT_Var_Axis' structure misses the
+ corresponding element. Since we can't add a new field, we add an
+ access function.
+
+ * src/base/ftmm.c (FT_Get_Var_Axis_Flags): New function.
+
+ * include/freetype/ftmm.h (FT_VAR_AXIS_FLAG_HIDDEN): New macro.
+ Updated.
+
+ * src/truetype/ttgxvar.c (TT_Get_MM_Var): Increase allocated memory
+ of `mmvar' to hold axis flags.
+ Fill the axis flags array.
+
+ * docs/CHANGES: Updated.
+
+2017-08-03 Nikolaus Waxweiler <madigens@gmail.com>
+
+ [truetype] Fix metrics of B/W hinting in v40 mode.
+
+ Phantom points are now saved outside v40 backwards compatibility
+ mode. This fixes the jumping glyphs when switching between v35 and
+ v40 monochrome mode.
+
+ * src/truetype/ttgload.c (TT_Hint_Glyph): Fix inversed bool logic.
+
+2017-08-03 Nikolaus Waxweiler <madigens@gmail.com>
+
+ [truetype] Do not set any ClearType flags in v40 monochrome mode.
+
+ This fixes weird behavior of instructions that resulted in rendering
+ differences between v35 and v40 in monochrome mode, e.g., in
+ `timesbi.ttf'.
+
+ * src/truetype/ttinterp.c (Ins_GETINFO)
+ [TT_SUPPORT_SUBPIXEL_HINTING_MINIMAL]: Check
+ `subpixel_hinting_lean'.
+
+2017-08-01 Werner Lemberg <wl@gnu.org>
+
+ * src/truetype/ttgxvar.c (TT_Get_MM_Var): Fix thinko.
+
+2017-08-01 Behdad Esfahbod <behdad@behdad.org>
+
+ [truetype] Fix loading of named instances.
+
+ * src/truetype/ttgxvar.c (TT_Get_MM_Var): Preserve file position
+ while loading the `avar' table.
+
+2017-08-01 Werner Lemberg <wl@gnu.org>
+
+ [sfnt, truetype] Minor adjustments for OpenType 1.8.2.
+
+ * src/sfnt/sfobjs.c (sfnt_load_face): The units per EM value has now
+ (tighter) limits.
+
+ * src/truetype/ttgload.c (load_truetype_glyph): The new OpenType
+ version explicitly allows all negative values for the number of
+ contours if we have a composite glyph (this is for better backwards
+ compatibility I guess), but it still recommends value -1.
+
+2017-07-26 Werner Lemberg <wl@gnu.org>
+
+ [cff] Integer overflow.
+
+ Reported as
+
+ https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=2738
+
+ * src/cff/cf2hints.c (cf2_glyphpath_computeOffset,
+ cf2_glyphpath_curveTo): Use ADD_INT32.
+
+2017-07-13 Werner Lemberg <wl@gnu.org>
+
+ [base] Fix memory leak.
+
+ Reported as
+
+ https://bugs.chromium.org/p/chromium/issues/detail?id=738362
+
+ * src/base/ftglyph.c (FT_Get_Glyph): Do proper deallocation in case
+ of error.
+
+2017-07-12 Werner Lemberg <wl@gnu.org>
+
+ [base] Integer overflow.
+
+ Reported as
+
+ https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=2573
+
+ * src/base/ftobjs.c (ft_glyphslot_grid_fit_metrics): Use
+ FT_PIX_CEIL_LONG and FT_PIX_ROUND_LONG.
+
+2017-07-12 Werner Lemberg <wl@gnu.org>
+
+ * src/truetype/ttpload.c (tt_face_get_location): Off-by-one typo.
+
+ Also improve tracing message.
+
+ Problem reported as
+
+ https://bugs.chromium.org/p/chromium/issues/detail?id=738919
+
+2017-07-07 Werner Lemberg <wl@gnu.org>
+
+ [cff] Integer overflow.
+
+ Reported as
+
+ https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=2517
+
+ * src/cff/cf2blues.c (cf2_blues_capture): Use SUB_INT32.
+
+2017-07-05 Werner Lemberg <wl@gnu.org>
+
+ * src/sfnt/ttcmap.c (tt_cmap_unicode_class_rec): Fix warning.
+
+2017-07-05 Werner Lemberg <wl@gnu.org>
+
+ * src/truetype/ttgxvar.c (FT_Stream_SeekSet): Fix warning (#51395).
+
+2017-07-04 Werner Lemberg <wl@gnu.org>
+
+ [truetype] Prevent address overflow (#51365).
+
+ * src/truetype/ttgxvar.c (FT_Stream_SeekSet): Add guard.
+
+2017-07-03 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ * src/base/ftlcdfil.c (ft_lcd_filter_fir): Improve code.
+
+2017-07-03 Werner Lemberg <wl@gnu.org>
+
+ [truetype] Integer overflow.
+
+ Reported as
+
+ https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=2455
+
+ * src/truetype/ttinterp.c (Ins_SCFS): Use SUB_LONG.
+
+2017-07-01 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ * src/sfnt/sfobjs.c (sfnt_load_face): Ignore No_Unicode_Glyph_Name.
+
+2017-06-28 Ben Wagner <bungeman@google.com>
+
+ Avoid Microsoft compiler warnings (#51331).
+
+ While clang's sanitizer recommends a cast to unsigned for safe
+ negation (to handle -INT_MIN), both MSVC and Visualc emit warning
+ C4146 if an unsigned value gets negated.
+
+ * include/freetype/internal/ftcalc.h (NEG_LONG, NEG_INT32),
+ src/base/ftcalc.c (FT_MOVE_SIGN): Replace negation with a
+ subtraction.
+
+2017-06-27 Werner Lemberg <wl@gnu.org>
+
+ * src/cff/cffparse.c (do_fixed): Fix typo.
+
+ Spotted by chris <chris@gcjd.org>.
+
+2017-06-27 Werner Lemberg <wl@gnu.org>
+
+ [truetype] Integer overflows.
+
+ Reported as
+
+ https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=2384
+ https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=2391
+
+ * src/base/ftcalc.c (FT_MulDiv, FT_MulDiv_No_Round, FT_DivFix): Use
+ NEG_LONG.
+
+ * src/truetype/ttinterp.c (Ins_SxVTL): Use NEG_LONG.
+
+2017-06-24 Werner Lemberg <wl@gnu.org>
+
+ [truetype] Integer overflows.
+
+ Reported as
+
+ https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=2364
+
+ * src/truetype/ttinterp.c (Ins_ISECT): Use NEG_LONG.
+
+2017-06-22 Werner Lemberg <wl@gnu.org>
+
+ [cff, truetype] Integer overflows.
+
+ Reported as
+
+ https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=2323
+ https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=2328
+
+ * src/cff/cf2blues.c (cf2_blues_capture): Use ADD_INT32 and
+ SUB_INT32.
+
+ * src/truetype/ttinterp.c (Ins_SDPVTL): Use SUB_LONG and NEG_LONG.
+
+2017-06-21 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ [sfnt] Synthesize a Unicode charmap if one is missing.
+
+ * src/sfnt/ttcmap.h (tt_cmap_unicode_class_rec): Declare it.
+ * src/sfnt/ttcmap.c (tt_get_glyph_name, tt_cmap_unicode_init,
+ tt_cmap_unicode_done, tt_cmap_unicode_char_index,
+ tt_cmap_unicode_char_next, tt_cmap_unicode_class_rec): Implement
+ synthetic Unicode charmap class.
+ (tt_get_cmap_info): Make sure the callback is available.
+
+ * src/sfnt/sfobjs.c (sfnt_load_face)
+ [FT_CONFIG_OPTION_POSTSCRIPT_NAMES]: If Unicode charmap is missing,
+ synthesize one.
+
+ * include/freetype/config/ftoption.h: Document it.
+ * devel/ftoption.h: Ditto.
+
+2017-06-20 Tony Theodore <tonyt@logyst.com>
+
+ Fix pkg-config in freetype-config for cross-compiling (#51274).
+
+ * builds/unix/unix-def.in (PKG_CONFIG): New variable.
+ (freetype-config): Use it in sed expression.
+
+ * builds/unix/freetype-config.in: s/pkg-config/%PKG_CONFIG%/.
+
+2017-06-20 Werner Lemberg <wl@gnu.org>
+
+ [cff, truetype] Integer overflows.
+
+ Reported as
+
+ https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=2300
+ https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=2313
+
+ * src/cff/cf2hints.c (cf2_hintmap_adjustHints): Use ADD_INT32.
+
+ * src/truetype/ttinterp.c (Ins_ABS): Avoid FT_ABS.
+
+2017-06-17 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ [base, smooth] LCD filtering cleanups.
+
+ * src/base/ftlcdfil.c (ft_lcd_filter_fir, _ft_lcd_filter_legacy):
+ Clean up, start filtering from the bottom-left origin.
+
+ * src/smooth/ftsmooth.c (ft_smooth_render_generic): Updated.
+
+2017-06-16 Werner Lemberg <wl@gnu.org>
+
+ [truetype] Integer overflows.
+
+ Reported as
+
+ https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=2270
+ https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=2276
+
+ * src/truetype/ttinterp.c (Ins_MDRP, _iup_worker_interpolate): Use
+ ADD_LONG and SUB_LONG.
+
+2017-06-15 Werner Lemberg <wl@gnu.org>
+
+ [bdf, cff] Integer overflows.
+
+ Reported as
+
+ https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=2244
+ https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=2261
+
+ * src/bdf/bdfdrivr.c (BDF_Face_Init): Replace calls to FT_ABS with
+ direct code to avoid value negation.
+
+ * src/cff/cf2blues.c (cf2_blues_capture): Use SUB_INT32 and
+ ADD_INT32.
+
+2017-06-13 Werner Lemberg <wl@gnu.org>
+
+ * src/winfonts/winfnt.c (FNT_Face_Init): Don't set active encoding.
+
+ FreeType only sets a default active encoding for Unicode.
+
+2017-06-13 Werner Lemberg <wl@gnu.org>
+
+ [cff, truetype] Integer overflows.
+
+ Reported as
+
+ https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=2216
+ https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=2218
+
+ * src/cff/cf2fixed.h (cf2_fixedAbs): Use NEG_INT32.
+
+ * src/truetype/ttinterp.c (Ins_IP): Use SUB_LONG.
+
+2017-06-11 Werner Lemberg <wl@gnu.org>
+
+ [cff] Integer overflows.
+
+ Reported as
+
+ https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=2200
+ https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=2210
+
+ * src/cff/cf2hints.c (cf2_hintmap_insertHint): Use SUB_INT32 and
+ ADD_INT32.
+
+ * src/cff/cf2intrp.c (cf2_interpT2CharString) <cf2_cmdVMOVETO>: Use
+ ADD_INT32.
+
+2017-06-10 Werner Lemberg <wl@gnu.org>
+
+ [truetype] Fix TT_Set_Var_Design.
+
+ Reported by Nikolaus Waxweiler <madigens@gmail.com>.
+
+ * src/truetype/ttgxvar.c (TT_Set_Var_Design): Correctly handle the
+ case where we have less input coordinates than axes.
+
+2017-06-10 Werner Lemberg <wl@gnu.org>
+
+ * src/base/ftcalc.c (FT_DivFix): Fix embarrassing typo.
+
+ Bug introduced 2017-05-28.
+
+2017-06-09 Werner Lemberg <wl@gnu.org>
+
+ [cff, truetype] Integer overflows.
+
+ Reported as
+
+ https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=2144
+ https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=2151
+ https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=2153
+ https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=2173
+ https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=2186
+
+ * src/cff/cf2blues.c (cf2_blues_init): Use SUB_INT32.
+
+ * src/truetype/ttinterp.c (Round_None, Round_To_Grid,
+ Round_To_Half_Grid, Round_Down_To_Grid, Round_Up_To_Grid,
+ Round_To_Double_Grid, Round_Super, Round_Super_45): Use ADD_LONG,
+ SUB_LONG, NEG_LONG, FT_PIX_ROUND_LONG, FT_PIX_CEIL_LONG,
+ FT_PAD_ROUND_LONG
+ (Ins_SxVTL, Ins_MIRP): Use SUB_LONG.
+ (_iup_worker_shift): Use SUB_LONG and ADD_LONG.
+
+2017-06-09 Werner Lemberg <wl@gnu.org>
+
+ Provide more macros for flooring, ceiling, and rounding.
+
+ These versions don't produce run-time errors due to integer
+ overflow.
+
+ * include/freetype/internal/ftobjs.h: Include FT_INTERNAL_CALC_H.
+ (FT_PAD_ROUND_LONG, FT_PAD_CEIL_LONG, FT_PIX_ROUND_LONG,
+ FT_PIX_CEIL_LONG): New macros.
+ (FT_PAD_ROUND_INT32, FT_PAD_CEIL_INT32, FT_PIX_ROUND_INT32,
+ FT_PIX_CEIL_INT32): New macros.
+
+2017-06-09 Werner Lemberg <wl@gnu.org>
+
+ Remove unused macros.
+
+ * include/freetype/internal/ftcalc.h (ADD_INT, SUB_INT, MUL_INT,
+ NEG_INT): Deleted.
+
+2017-06-09 Werner Lemberg <wl@gnu.org>
+
+ */*: Remove `OVERFLOW_' prefix.
+
+ This increases readability.
+
+2017-06-07 Werner Lemberg <wl@gnu.org>
+
+ [cff, truetype] Integer overflows.
+
+ Reported as
+
+ https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=2133
+ https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=2137
+
+ * src/cff/cf2hints.c (cf2_hint_init): Use OVERFLOW_SUB_INT32.
+
+ * src/truetype/ttinterp.c (PROJECT, DUALPROJ): Use
+ OVERFLOW_SUB_LONG.
+
+2017-06-06 Werner Lemberg <wl@gnu.org>
+
+ [cff] Integer overflows.
+
+ Reported as
+
+ https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=2109
+ https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=2110
+ https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=2122
+
+ * src/cff/cf2blues.c (cf2_blues_init): Use OVERFLOW_SUB_INT32.
+
+ * src/cff/cf2hints.c (cf2_hintmap_map): Synchronize if-else
+ branches.
+
+2017-06-05 Werner Lemberg <wl@gnu.org>
+
+ [cff] Integer overflow.
+
+ Reported as
+
+ https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=2089
+
+ * src/cff/cffload.c (cff_blend_doBlend): User OVERFLOW_ADD_INT32.
+
+2017-06-04 Werner Lemberg <wl@gnu.org>
+
+ [cff, truetype] Integer overflows.
+
+ Reported as
+
+ https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=2075
+ https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=2088
+
+ * src/cff/cf2font.c (cf2_font_setup): Use OVERFLOW_MUL_INT32.
+
+ * src/truetype/ttinterp.c (Ins_ISECT): Use OVERFLOW_MUL_LONG,
+ OVERFLOW_ADD_LONG, and OVERFLOW_SUB_LONG.
+
+2017-06-03 Werner Lemberg <wl@gnu.org>
+
+ [base, cff, truetype] Integer overflows.
+
+ Reported as
+
+ https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=2060
+ https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=2062
+ https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=2063
+ https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=2068
+
+ * src/base/ftobjs.c (ft_glyphslot_grid_fit_metrics): Use
+ OVERFLOW_ADD_LONG and OVERFLOW_SUB_LONG.
+
+ * src/cff/cf2blues.c (cf2_blues_capture), src/cff/cf2hints.c
+ (cf2_hintmap_adjustHints): Use OVERFLOW_SUB_INT32.
+
+ * src/truetype/ttgload.c (compute_glyph_metrics): User
+ OVERFLOW_SUB_LONG.
+
+ * src/truetype/ttinterp.c (Direct_Move, Direct_Move_Orig,
+ Direct_Move_X, Direct_Move_Y, Direct_Move_Orig_X,
+ Direct_Move_Orig_Y, Move_Zp2_Point, Ins_MSIRP): Use
+ OVERFLOW_ADD_LONG and OVERFLOW_SUB_LONG.
+
+2017-06-03 Werner Lemberg <wl@gnu.org>
+
+ * builds/unix/freetype-config.in: Fix pkg-config test (#51162).
+
+ Patch directly taken from bug report.
+
+2017-06-03 Werner Lemberg <wl@gnu.org>
+
+ [bdf] Synchronize sanity checks with pcf driver.
+
+ Reported as
+
+ https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=2054
+ https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=2058
+
+ * src/bdf/bdfdrivr.c (BDF_Face_Init): Check font ascent and descent.
+ Check AVERAGE_WIDTH, POINT_SIZE, PIXEL_SIZE, RESOLUTION_X, and
+ RESOLUTION_Y properties.
+
+2017-06-03 Werner Lemberg <wl@gnu.org>
+
+ [cff, truetype] Integer overflows.
+
+ Reported as
+
+ https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=2047
+ https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=2057
+
+ * src/cff/cf2hints.c (cf2_hintmap_map): Use OVERFLOW_SUB_INT32.
+
+ * src/truetype/ttinterp.c (Ins_ADD): Use OVERFLOW_ADD_LONG.
+ (Ins_SUB): Use OVERFLOW_SUB_LONG.
+ (Ins_NEG): Use NEG_LONG.
+
+2017-06-03 Werner Lemberg <wl@gnu.org>
+
+ ftcalc.h: Avoid left-shift of negative numbers.
+
+ Reported as
+
+ https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=2055
+
+ * include/freetype/internal/ftcalc.h (INT_TO_F26DOT6,
+ INT_TO_F2DOT14, INT_TO_FIXED, F2DOT14_TO_FIXED): Use multiplication.
+
+2017-06-02 Werner Lemberg <wl@gnu.org>
+
+ [cff] Even more integer overflows.
+
+ Reported as
+
+ https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=2046
+
+ * src/cff/cf2intrp.c (cf2_doStems, cf2_interpT2CharString): Use
+ OVERFLOW_ADD_INT32.
+
+2017-06-02 Werner Lemberg <wl@gnu.org>
+
+ [cff] More integer overflows.
+
+ Reported as
+
+ https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=2032
+
+ * src/cff/cf2blues.c (cf2_blues_init): Use OVERFLOW_SUB_INT32.
+
+2017-06-02 Werner Lemberg <wl@gnu.org>
+
+ [bdf] Don't left-shift negative numbers.
+
+ Reported as
+
+ https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=2031
+
+ * src/bdf/bdfdrivr.c (BDF_Face_Init): Use multiplication.
+
+2017-06-02 Werner Lemberg <wl@gnu.org>
+
+ [bdf] Fix integer scanning routines.
+
+ Reported as
+
+ https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=2029
+
+ * src/bdf/bdflib.c (_bdf_atoul, _bdf_atol, _bdf_atous, _bdf_atos):
+ Stop scanning if result would overflow.
+
+2017-06-02 Werner Lemberg <wl@gnu.org>
+
+ [cff] Fix integer overflows.
+
+ Reported as
+
+ https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=2027
+ https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=2028
+
+ * src/cff/cf2hints.c (cf2_hintmap_insertHint), src/cff/cf2intrp.c
+ (cf2_doFlex): Use OVERFLOW_ADD_INT32 and OVERFLOW_SUB_INT32.
+
+2017-06-01 Werner Lemberg <wl@gnu.org>
+
+ [smooth] Some 32bit integer overflow run-time errors.
+
+ * src/smooth/ftgrays.c [STANDALONE] (OVERFLOW_ADD_LONG,
+ OVERFLOW_SUB_LONG, OVERFLOW_MUL_LONG, NEG_LONG): New macros.
+ [!STANDALONE]: Include FT_INTERNAL_CALC_H.
+ (gray_render_cubic): Use those macros where appropriate.
+
+2017-06-01 Werner Lemberg <wl@gnu.org>
+
+ * src/base/ftglyph.c (FT_Get_Glyph): Check `slot->advance'.
+
+2017-06-01 Werner Lemberg <wl@gnu.org>
+
+ [psaux] 32bit integer overflow tun-time errors (#46149).
+
+ * src/psaux/t1decode.c (t1_decoder_parse_charstrings): Use
+ OVERFLOW_ADD_LONG and OVERFLOW_SUB_LONG where appropriate.
+
+2017-06-01 Werner Lemberg <wl@gnu.org>
+
+ * src/truetype/ttinterp.c (TT_RunIns): Adjust loop counter again.
+
+ Problem reported by Marek Kašík <mkasik@redhat.com>.
+
+ The problematic font that exceeds the old limit is Padauk-Bold,
+ version 3.002, containing bytecode generated by a buggy version of
+ ttfautohint.
+
+2017-05-31 Werner Lemberg <wl@gnu.org>
+
+ [cff] 32bit integer overflow run-time errors 2/2 (#46149).
+
+ This commit handles the new engine.
+
+ * include/freetype/internal/ftcalc.h (OVERFLOW_ADD_INT32,
+ OVERFLOW_SUB_INT32, OVERFLOW_MUL_INT32, NEG_INT, NEG_LONG,
+ NEG_INT32): New macros.
+
+ * src/cff/cf2ft.c (cf2_getScaleAndHintFlag): Use OVERFLOW_ADD_INT32.
+
+ * src/cff/cf2hints.c (cf2_getWindingMomentum, cf2_hint_init,
+ cf2_hintmap_map, cf2_glyphpath_hintPoint,
+ cf2_glyphpath_computeIntersection, cf2_glyphpath_computeOffset,
+ cf2_glyphpath_lineTo, cf2_glyphpath_curveTo): Use
+ OVERFLOW_ADD_INT32, OVERFLOW_SUB_INT32, OVERFLOW_MUL_INT32, and
+ NEG_INT32 where appropriate.
+
+ * src/cff/cf2intrp.c (cf2_doFlex, cf2_doBlend,
+ cf2_interpT2CharString): Ditto.
+ Also add some other code where needed to avoid overflow.
+
+2017-05-30 Werner Lemberg <wl@gnu.org>
+
+ [cff] 32bit integer overflow run-time errors 1/2 (#46149).
+
+ This commit handles the old engine.
+
+ * src/cff/cffgload.c: Include FT_INTERNAL_CALC_H.
+ (cff_decoder_parse_charstrings): Use OVERFLOW_ADD_LONG and
+ OVERFLOW_SUB_LONG where needed.
+
+ * src/cff/cffparse.c: Include FT_INTERNAL_CALC_H.
+ (power_ten_limits): New static array.
+ (do_fixed): Use it to prevent multiplication overflow.
+ (cff_parser_run): Use OVERFLOW_ADD_LONG.
+
+2017-05-30 Werner Lemberg <wl@gnu.org>
+
+ [psaux] Correctly handle sequences of multiple number signs.
+
+ * src/psaux/psconv.c (PS_Conv_Strtol, PS_Conv_ToFixed): Return zero
+ if we encounter more than a single sign.
+
+2017-05-29 Werner Lemberg <wl@gnu.org>
+
+ [pcf] 32bit integer overflow run-time errors (#46149).
+
+ * src/pcf/pcfread.c (pcf_get_accel): Add sanity checks for
+ `fontAscent' and `fontDescent'.
+ (pcf_load_font): Add sanity checks for global height.
+ Add sanity checks for AVERAGE_WIDTH, POINT_SIZE, PIXEL_SIZE,
+ RESOLUTION_X, and RESOLUTION_Y properties.
+
+2017-05-29 Werner Lemberg <wl@gnu.org>
+
+ Handle some integer overflow run-time errors (#46149, #48979).
+
+ This commit (mainly for 32bit CPUs) is the first of a series of
+ similar commits to handle known integer overflows. Basically, all
+ of them are harmless, since they affect rendering of glyphs only,
+ not posing security threats. It is expected that fuzzying will show
+ up more overflows, to be fixed in due course.
+
+ The idea is to mark places where overflows can occur, using macros
+ that simply cast to unsigned integers, because overflow arithmetic
+ is well defined in this case. Doing so suppresses run-time errors
+ of sanitizers without adding computational overhead.
+
+ * include/freetype/internal/ftcalc.h (OVERFLOW_ADD_INT,
+ OVERFLOW_SUB_INT, OVERFLOW_MUL_INT, OVERFLOW_ADD_LONG,
+ OVERFLOW_SUB_LONG, OVERFLOW_MUL_LONG): New macros.
+
+ * src/base/ftcalc.c (FT_RoundFix, FT_CeilFix, FT_Matrix_Multiply,
+ FT_Matrix_Multiply_Scaled, FT_Vector_Transform_Scaled,
+ ft_corner_orientation): Use new macros.
+
+ * src/base/ftoutln.c (FT_Outline_Get_Orientation): Use new macros.
+
+2017-05-28 Werner Lemberg <wl@gnu.org>
+
+ * include/freetype/internal/ftcalc.h (FLOAT_TO_FIXED): Remove.
+
+ This macro is not used.
+
+2017-05-28 Werner Lemberg <wl@gnu.org>
+
+ [cff] s/cf2_floatToFixed/cf2_doubleToFixed/.
+
+ The new name better describes what the macro actually does;
+ additionally, we don't need a trailing `f' for literals (there was
+ only a single such instance in the code, but this caused a clang
+ warning because the macro itself uses `double' literals).
+
+ * src/cff/cf2blues.c, src/cff/cf2blues.h, src/cff/cf2fixed.h,
+ src/cff/cf2font.c, src/cff/cf2hints.c: Updated.
+
+2017-05-28 Werner Lemberg <wl@gnu.org>
+
+ Fix negation of INT_MIN and LONG_MIN (#46149).
+
+ * src/base/ftcalc.c (FT_MOVE_SIGN): Add argument to pass unsigned
+ value, to be used as the result.
+ (FT_MulDiv, FT_MulDiv_No_Round, FT_DivFix, FT_MulFix,
+ FT_Vector_NormLen): Updated.
+
+2017-05-27 Werner Lemberg <wl@gnu.org>
+
+ [truetype] Fix handling of design coordinates (#51127).
+
+ * src/truetype/ttgxvar.c (tt_set_mm_blend): Compute all design
+ coordinates if we have to create the `blends->coord' array.
+ (TT_Get_MM_Blend, TT_Get_Var_Design): Select default instance
+ coordinates if no instance is selected yet.
+
+2017-05-24 Werner Lemberg <wl@gnu.org>
+
+ [bdf, pcf] Support ISO646.1991-IRV character encoding (aka ASCII).
+
+ Problem reported by Marek Kašík <mkasik@redhat.com>, cf.
+
+ https://bugzilla.redhat.com/show_bug.cgi?id=1451795
+
+ * src/bdf/bdfdrivr.c (BDF_Face_Init), src/pcf/pcfdrivr.c
+ (PCF_Face_Init): Implement it.
+
+2017-05-20 Nikolaus Waxweiler <madigens@gmail.com>
+
+ [truetype] Always use interpreter v35 for B/W rendering (#51051).
+
+ * src/truetype/ttgload.c (tt_loader_init)
+ [TT_SUPPORT_SUBPIXEL_HINTING_MINIMAL]: Adjust
+ `subpixel_hinting_lean', `grayscale_cleartype', and
+ `vertical_lcd_lean' accordingly.
+
+ * src/truetype/ttinterp.c (Ins_GETINFO): Updated.
+ (TT_RunIns): Update `backward_compatibility' flag.
+
+2017-05-20 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ [smooth] Implement minimal dynamic padding for LCD filtering.
+
+ Extra bitmap padding for LCD filtering depends on the filter. The
+ default 5-tap filter needs 2 extra subpixels. The light 3-tap filter
+ needs only 1 extra subpixel. This space could be already available
+ due to rounding. In order to optimize the padding, we now expand
+ CBox for the given filter weights before rounding.
+
+ This change breaks current Skia (and Firefox).
+
+ * include/freetype/internal/ftobjs.h (FT_LibraryRec)
+ [FT_CONFIG_OPTION_SUBPIXEL_RENDERING]: Remove `lcd_extra' field.
+
+ * src/base/ftlcdfil.c (FT_Library_SetLcdFilterWeights,
+ FT_Library_SetLcdFilter): Remove `lcd_extra' initializations.
+
+ * src/smooth/ftsmooth.c (ft_smooth_render_generic): Implement dymanic
+ LCD padding.
+
+2017-05-15 Werner Lemberg <wl@gnu.org>
+
+ [sfnt] Return proper scaling values for SBIX bitmaps.
+
+ Problem reported by Hin-Tak Leung <htl10@users.sourceforge.net>.
+
+ * src/sfnt/ttsbit.c (tt_face_load_strike_metrics): Implement it.
+
+2017-05-15 Werner Lemberg <wl@gnu.org>
+
+ [truetype] Fix error handling for embedded bitmaps.
+
+ Problem reported by Hin-Tak Leung <htl10@users.sourceforge.net>.
+
+ * src/truetype/ttgload.c (TT_Load_Glyph)
+ [TT_CONFIG_OPTION_EMBEDDED_BITMAPS]: Handle error if font is not
+ scalable.
+
+2017-05-15 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ [autofit] Make autohint warping NORMAL option.
+
+ This moves warping option from LIGHT to NORMAL mode. This makes LIGHT
+ truly void of hinting in x-direction, with left side bearing never
+ changed and right side bearing only altered by advance rounding.
+ Therefore, LIGHT is now ready to return fractional advance. As a
+ NORMAL option, warping substitutes normal hinting.
+
+ * src/autofit/afcjk.c (af_cjk_hints_apply): Updated.
+ * src/autofit/aflatin.c (af_latin_hints_apply): Updated.
+ * src/autofit/aflatin2.c (af_latin2_hints_apply): Updated.
+
+ * src/autofit/afloader.c (af_loader_load_glyph): Handle warping
+ phantom points as normal.
+
+2017-05-14 Werner Lemberg <wl@gnu.org>
+
+ Remove remnants of raster pool.
+
+ * include/freetype/internal/ftobjs.h (FT_LibraryRec): Remove
+ `raster_pool' and `raster_pool_size' fields.
+
+ * src/base/ftobjs.c (FT_New_Library), src/raster/ftrend1.c
+ (ft_raster1_init), src/smooth/ftsmooth.c (ft_smooth_init): Updated.
+
+2017-05-13 Werner Lemberg <wl@gnu.org>
+
+ * Version 2.8 released.
+ =======================
+
+
+ Tag sources with `VER-2-8'.
+
+ * docs/VERSION.TXT: Add entry for version 2.8.
+ * docs/CHANGES: Updated.
+
+ * README, Jamfile (RefDoc), builds/windows/vc2005/freetype.vcproj,
+ builds/windows/vc2005/index.html,
+ builds/windows/vc2008/freetype.vcproj,
+ builds/windows/vc2008/index.html,
+ builds/windows/vc2010/freetype.vcxproj,
+ builds/windows/vc2010/index.html,
+ builds/windows/visualc/freetype.dsp,
+ builds/windows/visualc/freetype.vcproj,
+ builds/windows/visualc/index.html,
+ builds/windows/visualce/freetype.dsp,
+ builds/windows/visualce/freetype.vcproj,
+ builds/windows/visualce/index.html,
+ builds/wince/vc2005-ce/freetype.vcproj,
+ builds/wince/vc2005-ce/index.html,
+ builds/wince/vc2008-ce/freetype.vcproj,
+ builds/wince/vc2008-ce/index.html: s/2.7.1/2.8/, s/271/28/.
+
+ * include/freetype/freetype.h (FREETYPE_MINOR): Set to 8.
+ (FREETYPE_PATCH): Set to 0.
+
+ * builds/unix/configure.raw (version_info): Set to 20:0:14.
+ * CMakeLists.txt (VERSION_MINOR): Set to 8.
+ (VERSION_PATCH): Set to 0.
+
+2017-05-12 Hin-Tak Leung <htl10@users.sourceforge.net>
+
+ Fix `FT_UINT_TO_POINTER' macro for Windows.
+
+ * builds/unix/ftconfig.in, builds/vms/ftconfig.h,
+ include/freetype/config/ftconfig.h (FT_UINT_TO_POINTER) [_WIN64]:
+ Fix definition.
+
+2017-05-11 Sascha Brawer <sascha@google.com>
+ Werner Lemberg <wl@gnu.org
+
+ [autofit] Add support for Chakma script.
+
+ * src/autofit/afblue.dat: Add blue zone data for Chakma.
+ * src/autofit/afblue.c, src/autofit/afblue.h: Regenerated.
+
+ * src/autofit/afscript.h: Add Chakma standard character.
+
+ * src/autofit/afranges.c, src/autofit/afstyles.h: Add Chakma data.
+
+2017-05-10 Sascha Brawer <sascha@google.com>
+ Werner Lemberg <wl@gnu.org
+
+ [autofit] Add support for Kayah Li script.
+
+ * src/autofit/afblue.dat: Add blue zone data for Kayah Li.
+ * src/autofit/afblue.c, src/autofit/afblue.h: Regenerated.
+
+ * src/autofit/afscript.h: Add Kayah Li standard character.
+
+ * src/autofit/afranges.c, src/autofit/afstyles.h: Add Kayah Li data.
+
+2017-05-10 Sascha Brawer <sascha@google.com>
+ Werner Lemberg <wl@gnu.org
+
+ [autofit] Add support for Bamum script.
+
+ * src/autofit/afblue.dat: Add blue zone data for Bamum.
+ * src/autofit/afblue.c, src/autofit/afblue.h: Regenerated.
+
+ * src/autofit/afscript.h: Add Bamum standard character.
+
+ * src/autofit/afranges.c, src/autofit/afstyles.h: Add Bamum data.
+
+2017-05-10 Sascha Brawer <sascha@google.com>
+ Werner Lemberg <wl@gnu.org
+
+ [autofit] Add support for Saurashtra script.
+
+ * src/autofit/afblue.dat: Add blue zone data for Saurashtra.
+ * src/autofit/afblue.c, src/autofit/afblue.h: Regenerated.
+
+ * src/autofit/afscript.h: Add Saurashtra standard character.
+
+ * src/autofit/afranges.c, src/autofit/afstyles.h: Add Saurashtra
+ data.
+
+2017-05-10 Sascha Brawer <sascha@google.com>
+ Werner Lemberg <wl@gnu.org
+
+ [autofit] Add support for Buhid script.
+
+ * src/autofit/afblue.dat: Add blue zone data for Buhid.
+ * src/autofit/afblue.c, src/autofit/afblue.h: Regenerated.
+
+ * src/autofit/afscript.h: Add Buhid standard character.
+
+ * src/autofit/afranges.c, src/autofit/afstyles.h: Add Buhid data.
+
+2017-05-08 Sascha Brawer <sascha@google.com>
+ Werner Lemberg <wl@gnu.org
+
+ [autofit] Add support for Shavian script.
+
+ * src/autofit/afblue.dat: Add blue zone data for Shavian.
+ * src/autofit/afblue.c, src/autofit/afblue.h: Regenerated.
+
+ * src/autofit/afscript.h: Add Shavian standard character.
+
+ * src/autofit/afranges.c, src/autofit/afstyles.h: Add Shavian data.
+
+2017-05-08 Sascha Brawer <sascha@google.com>
+ Werner Lemberg <wl@gnu.org
+
+ [autofit] Add support for Vai script.
+
+ * src/autofit/afblue.dat: Add blue zone data for Vai.
+ * src/autofit/afblue.c, src/autofit/afblue.h: Regenerated.
+
+ * src/autofit/afscript.h: Add Vai standard character.
+
+ * src/autofit/afranges.c, src/autofit/afstyles.h: Add Vai data.
+
+2017-05-08 Sascha Brawer <sascha@google.com>
+ Werner Lemberg <wl@gnu.org
+
+ [autofit] Add support for Osmanya script.
+
+ * src/autofit/afblue.dat: Add blue zone data for Osmanya.
+ * src/autofit/afblue.c, src/autofit/afblue.h: Regenerated.
+
+ * src/autofit/afscript.h: Add Osmanya standard character.
+
+ * src/autofit/afranges.c, src/autofit/afstyles.h: Add Osmanya data.
+
+2017-05-08 Sascha Brawer <sascha@google.com>
+ Werner Lemberg <wl@gnu.org
+
+ [autofit] Add support for Coptic script.
+
+ * src/autofit/afblue.dat: Add blue zone data for Coptic.
+ * src/autofit/afblue.c, src/autofit/afblue.h: Regenerated.
+
+ * src/autofit/afscript.h: Add Coptic standard character.
+
+ * src/autofit/afranges.c, src/autofit/afstyles.h: Add Coptic data.
+
+2017-05-08 Sascha Brawer <sascha@google.com>
+ Werner Lemberg <wl@gnu.org
+
+ [autofit] Add support for Carian script.
+
+ * src/autofit/afblue.dat: Add blue zone data for Carian.
+ * src/autofit/afblue.c, src/autofit/afblue.h: Regenerated.
+
+ * src/autofit/afscript.h: Add Carian standard character.
+
+ * src/autofit/afranges.c, src/autofit/afstyles.h: Add Carian data.
+
+2017-05-07 Werner Lemberg <wl@gnu.org>
+
+ [truetype] Add tricky font `DFGirl-W6-WIN-BF' (from Dynalab).
+
+ Reported by Roy Tam <roytam@gmail.com>.
+
+ * src/truetype/ttobjs.c (tt_check_trickyness_family): Implement it.
+
+2017-05-07 Roy Tam <roytam@gmail.com>
+ Werner Lemberg <wl@gnu.org>
+
+ [truetype] More tricky fonts (mainly from Dynalab).
+
+ * src/truetype/ttobjs.c (tt_check_trickyness_family,
+ tt_check_trickyness_sfnt_ids): Add them.
+
+2017-05-07 Werner Lemberg <wl@gnu.org>
+
+ [truetype] Add tricky font `DLCHayMedium' (from Dynalab).
+
+ Reported by Roy Tam <roytam@gmail.com>.
+
+ * src/truetype/ttobjs.c (tt_check_trickyness_family): Implement it.
+
+2017-05-03 Werner Lemberg <wl@gnu.org>
+
+ */*: s/backwards compatibility/backward compatibility/.
+
+2017-05-03 Sascha Brawer <sascha@google.com>
+ Werner Lemberg <wl@gnu.org
+
+ [autofit] Add support for Unified Canadian Syllabics script.
+
+ * src/autofit/afblue.dat: Add blue zone data for Unified Canadian
+ Syllabics.
+ * src/autofit/afblue.c, src/autofit/afblue.h: Regenerated.
+
+ * src/autofit/afscript.h: Add Unified Canadian Syllabics standard
+ character.
+
+ * src/autofit/afranges.c, src/autofit/afstyles.h: Add Unified
+ Canadian Syllabics data.
+
+2017-05-03 Sascha Brawer <sascha@google.com>
+ Werner Lemberg <wl@gnu.org>
+
+ [autofit] Add blue-zone support for Sundanese script.
+
+ This essentially moves the Sundanese script from the `Indic' hinter
+ to the `Latin' hinter.
+
+ * src/autofit/afblue.dat: Add blue zone data for Sundanese.
+
+ * src/autofit/afblue.c, src/autofit/afblue.h: Regenerated.
+
+ * src/autofit/afscript.h: Add Sundanese standard character and move
+ data out of AF_CONFIG_OPTION_INDIC block.
+
+ * src/autofit/afranges.c: Move Sundanese data out of
+ AF_CONFIG_OPTION_INDIC block.
+
+ * src/autofit/afstyles.h: Update Sundanese data; in particular, use
+ AF_WRITING_SYSTEM_LATIN.
+
+2017-05-03 Sascha Brawer <sascha@google.com>
+ Werner Lemberg <wl@gnu.org
+
+ [autofit] Add support for Avestan script.
+
+ * src/autofit/afblue.dat: Add blue zone data for Avestan.
+ * src/autofit/afblue.c, src/autofit/afblue.h: Regenerated.
+
+ * src/autofit/afscript.h: Add Avestan standard character.
+
+ * src/autofit/afranges.c, src/autofit/afstyles.h: Add Avestan data.
+
+2017-05-02 Behdad Esfahbod <behdad@behdad.org>
+
+ [truetype] Make `IUP' gvar deltas do the same as Apple (#50832).
+
+ When points are not touched by gvar interpolation deltas, FreeType
+ gave a slightly different result than Apple's CoreText.
+
+ The OpenType working group will update the specification to document
+ the following behaviour: If the two points with deltas to the `left'
+ and `right' of the untouched point have the same coordinate, then
+ the inferred delta for the untouched point should be zero.
+
+ * src/truetype/ttgxvar.c (tt_delta_interpolate): Implement new
+ behaviour.
+
+2017-05-02 Werner Lemberg <wl@gnu.org>
+
+ [autofit] Remove `slight' auto-hint mode again.
+
+ A poll on freetype-devel favoured changes directly applied to
+ `light'.
+
+ * include/freetype/freetype.h (FT_LOAD_TARGET_SLIGHT,
+ FT_RENDER_MODE_SLIGHT): Removed.
+
+ * src/autofit/afcjk.c (af_cjk_hints_init), src/autofit/aflatin.c
+ (af_latin_hints_init), src/autofit/aflatin2.c
+ (af_latin2_hints_init): Revert change from 2017-04-22.
+
+ * src/autofit/afloader.c (af_loader_load_glyph) Remove references to
+ FT_RENDER_MODE_SLIGHT.
+ [AF_CONFIG_OPTION_TT_SIZE_METRICS]: Enable TrueType-like metrics
+ unconditionally.
+
+ * src/base/ftadvanc.c (LOAD_ADVANCE_FAST_CHECK): Revert change from
+ 2017-04-22.
+
+ * src/base/ftobjs.c (FT_Load_Glyph): Revert change from 2017-04-22.
+
+ * src/pshinter/pshalgo.c (ps_hints_apply): Revert change from
+ 2017-04-22.
+
+ * src/smooth/ftsmooth.c (ft_smooth_render): Revert change from
+ 2017-04-22.
+
+ * docs/CHANGES: Updated.
+
+2017-04-30 Werner Lemberg <wl@gnu.org>
+
+ [autofit] Fix metrics computation.
+
+ Problem reported by Markus Trippelsdorf <markus@trippelsdorf.de> and
+ Nikolaus Waxweiler <madigens@gmail.com>.
+
+ * src/base/ftobjs.c (FT_Request_Size): Trigger recomputation of
+ auto-hinter metrics. Without this change, multiple size changing
+ calls for a single face fail.
+
+2017-04-29 Werner Lemberg <wl@gnu.org>
+
+ * src/truetype/ttdriver.c (tt_size_request): Properly check `error'.
+
+ Reported by Earnestly <zibeon@googlemail.com> in
+
+ https://lists.nongnu.org/archive/html/freetype/2017-04/msg00031.html
+
+2017-04-27 Werner Lemberg <wl@gnu.org>
+
+ Introduce AF_CONFIG_OPTION_TT_SIZE_METRICS configuration option.
+
+ * include/freetype/config/ftoption.h
+ (AF_CONFIG_OPTION_TT_SIZE_METRICS): New option, commented out by
+ default.
+
+ * src/autofit/afloader.c (af_loader_load_glyph): Use
+ AF_CONFIG_OPTION_TT_SIZE_METRICS to guard the corresponding code.
+
+2017-04-26 Werner Lemberg <wl@gnu.org>
+
+ * include/freetype/freetype.h (FT_Render_Mode): Fix order.
+
+ This retains backward compatibility.
+
+ Noted by Alexei.
+
+2017-04-22 Werner Lemberg <wl@gnu.org>
+
+ [truetype] Do linear scaling for FT_LOAD_NO_HINTING (#50470).
+
+ * src/truetype/ttobjs.h (TT_SizeRec): Add field `hinted_metrics' to
+ hold hinted metrics.
+ Make `metrics' a pointer so that `tt_glyph_load' can easily switch
+ between metrics.
+
+ * src/truetype/ttdriver.c (tt_size_request): Updated.
+ (tt_glyph_load): Use top-level metrics if FT_LOAD_NO_HINTING is
+ used.
+
+ * src/truetype/ttgload.c (TT_Hint_Glyph, TT_Process_Simple_Glyph,
+ TT_Process_Composite_Component, load_truetype_glyph,
+ compute_glyph_metrics, TT_Load_Glyph): Updated.
+
+ * src/truetype/ttinterp.c (TT_Load_Context): Updated.
+
+ * src/truetype/ttobjs.c (tt_size_reset): Updated.
+
+ * src/truetype/ttsubpix.c (sph_set_tweaks): Updated.
+
+2017-04-22 Werner Lemberg <wl@gnu.org>
+
+ Add new `slight' auto-hinting mode.
+
+ This mode uses fractional advance widths and doesn't scale glyphs
+ horizontally, only applying vertical scaling and hinting.
+
+ At the same time, the behaviour of the `light' auto-hinter gets
+ restored for backward compatibility: Both vertical and horizontal
+ scaling is again based on rounded metrics values (this was changed
+ in a commit from 2017-03-30 as a side effect). To be more precise,
+ the behaviour is restored for TrueType fonts only; for other font
+ formats like Type 1, this is a new feature of the `light' hinting
+ mode.
+
+ * include/freetype/freetype.h (FT_LOAD_TARGET_SLIGHT): New macro.
+ (FT_RENDER_MODE_SLIGHT): New render mode.
+
+ * include/freetype/internal/ftobjs.h (FT_Size_InternalRec): Add
+ `autohint_mode' and `autohint_metrics' fields.
+
+ * src/autofit/afcjk.c (af_cjk_hints_init), src/autofit/aflatin.c
+ (af_latin_hints_init), src/autofit/aflatin2 (af_latin2_hints_init):
+ Updated.
+
+ * src/autofit/afloader.c (af_loader_embolden_glyph_in_slot): Use
+ `autohint_metrics'.
+ (af_loader_load_glyph): s/internal/slot_internal/.
+ Initialize `autohint_metrics' and `autohint_mode' depending on
+ current auto-hint mode.
+ Use `autohint_metrics'.
+ Updated.
+
+ * src/base/ftadvanc.c (LOAD_ADVANCE_FAST_CHECK): Updated.
+
+ * src/base/ftobjs.c (FT_Load_Glyph): Updated.
+ (FT_New_Size): Allocate `internal' object.
+
+ * src/pshinter/pshalgo.c (ps_hints_apply): Updated.
+
+ * src/smooth/ftsmooth.c (ft_smooth_render): Updated.
+
+2017-04-22 Werner Lemberg <wl@gnu.org>
+
+ Introduce `FT_Size_InternalRec' structure.
+
+ We are going to extend this later on.
+
+ * include/freetype/internal/ftobjs.h (FT_Size_InternalRec): New
+ structure with a single field `module_data'.
+
+ * src/base/ftobjs.c (FT_New_Size): Allocate `internal' field of
+ `FT_Size' structure.
+
+ * src/cff/cffgload.c (cff_builder_init, cff_decoder_prepare): Use
+ `size->internal->module_data' instead of `size->internal'.
+
+ * src/cff/cffobjs.c (cff_size_done): Deallocate `module_data'.
+ (cff_size_init, cff_size_select, cff_size_request): Use
+ `size->internal->module_data' instead of `size->internal'.
+
+ * src/cif/cidobjs.c (cid_size_done, cid_size_init,
+ cid_size_request): Use `size->internal->module_data' instead of
+ `size->internal'.
+
+ * src/psaux/psobjs.c (t1_builder_ini): Use
+ `size->internal->module_data' instead of `size->internal'.
+
+ * src/type1/t1objs.c (T1_Size_Done, T1_Size_Init, T1_Size_Request):
+ Use `size->internal->module_data' instead of `size->internal'.
+
+2017-04-21 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ * src/smooth/ftsmooth.h: Remove unused guards and declaration.
+
+2017-04-16 Hin-Tak Leung <htl10@users.sourceforge.net>
+
+ Fix tracing messages.
+
+ * src/base/ftobjs.c (FT_Face_GetCharVariantIndex,
+ FT_Face_GetCharVariantIsDefault, FT_Face_GetVariantsOfChar): Print
+ correct function name.
+
+2017-04-08 Sascha Brawer <sascha@google.com>
+ Werner Lemberg <wl@gnu.org
+
+ [autofit] Add support for Old Turkic script.
+
+ * src/autofit/afblue.dat: Add blue zone data for Old Turkic.
+ * src/autofit/afblue.c, src/autofit/afblue.h: Regenerated.
+
+ * src/autofit/afscript.h: Add Old Turkic standard characters.
+
+ * src/autofit/afranges.c, src/autofit/afstyles.h: Add Old Turkic data.
+
+2017-04-08 Sascha Brawer <sascha@google.com>
+ Werner Lemberg <wl@gnu.org
+
+ [autofit] Add support for Gothic script.
+
+ * src/autofit/afblue.dat: Add blue zone data for Gothic.
+ * src/autofit/afblue.c, src/autofit/afblue.h: Regenerated.
+
+ * src/autofit/afscript.h: Add Gothic standard characters.
+
+ * src/autofit/afranges.c, src/autofit/afstyles.h: Add Gothic data.
+
+2017-04-08 Sascha Brawer <sascha@google.com>
+ Werner Lemberg <wl@gnu.org
+
+ [autofit] Add support for Cypriot script.
+
+ * src/autofit/afblue.dat: Add blue zone data for Cypriot.
+ * src/autofit/afblue.c, src/autofit/afblue.h: Regenerated.
+
+ * src/autofit/afscript.h: Add Cypriot standard characters.
+
+ * src/autofit/afranges.c, src/autofit/afstyles.h: Add Cypriot data.
+
+2017-04-08 Sascha Brawer <sascha@google.com>
+ Werner Lemberg <wl@gnu.org
+
+ [autofit] Add support for Deseret script.
+
+ * src/autofit/afblue.dat: Add blue zone data for Deseret.
+ * src/autofit/afblue.c, src/autofit/afblue.h: Regenerated.
+
+ * src/autofit/afscript.h: Add Deseret standard characters.
+
+ * src/autofit/afranges.c, src/autofit/afstyles.h: Add Deseret data.
+
+2017-04-07 Werner Lemberg <wl@gnu.org>
+
+ [autofit] Fix invalid character range description (#50745).
+
+ Also reported as
+
+ https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=1034
+
+ * src/autofit/afranges.c (af_glag_nonbase_uniranges): Fix typo in
+ recent commit.
+
+2017-04-07 Werner Lemberg <wl@gnu.org>
+
+ [ftfuzzer] Fix clang warnings.
+
+ * src/tools/ftfuzzer/ftfuzzer.cc (LLVMFuzzerTestOneInput): Add
+ casts.
+
+2017-04-06 Sascha Brawer <sascha@google.com>
+ Werner Lemberg <wl@gnu.org
+
+ [autofit] Add support for Lisu script.
+
+ * src/autofit/afblue.dat: Add blue zone data for Lisu.
+ * src/autofit/afblue.c, src/autofit/afblue.h: Regenerated.
+
+ * src/autofit/afscript.h: Add Lisu standard characters.
+
+ * src/autofit/afranges.c, src/autofit/afstyles.h: Add Lisu data.
+
+2017-04-06 Sascha Brawer <sascha@google.com>
+ Werner Lemberg <wl@gnu.org
+
+ [autofit] Add support for Osage script.
+
+ * src/autofit/afblue.dat: Add blue zone data for Osage.
+ * src/autofit/afblue.c, src/autofit/afblue.h: Regenerated.
+
+ * src/autofit/afscript.h: Add Osage standard characters.
+
+ * src/autofit/afranges.c, src/autofit/afstyles.h: Add Osage data.
+
+2017-04-06 Sascha Brawer <sascha@google.com>
+ Werner Lemberg <wl@gnu.org
+
+ [autofit] Add support for Glagolitic script.
+
+ * src/autofit/afblue.dat: Add blue zone data for Glagolitic.
+ * src/autofit/afblue.c, src/autofit/afblue.h: Regenerated.
+
+ * src/autofit/afscript.h: Add Glagolitic standard characters.
+
+ * src/autofit/afranges.c, src/autofit/afstyles.h: Add Glagolitic data.
+
+2017-04-06 Sascha Brawer <sascha@google.com>
+ Werner Lemberg <wl@gnu.org
+
+ [autofit] Add support for Tai Viet script.
+
+ * src/autofit/afblue.dat: Add blue zone data for Tai Viet.
+ * src/autofit/afblue.c, src/autofit/afblue.h: Regenerated.
+
+ * src/autofit/afscript.h: Add Tai Viet standard characters.
+
+ * src/autofit/afranges.c, src/autofit/afstyles.h: Add Tai Viet data.
+
+2017-04-06 Sascha Brawer <sascha@google.com>
+ Werner Lemberg <wl@gnu.org
+
+ [autofit] Add support for Tifinagh script.
+
+ * src/autofit/afblue.dat: Add blue zone data for Tifinagh.
+ * src/autofit/afblue.c, src/autofit/afblue.h: Regenerated.
+
+ * src/autofit/afscript.h: Add Tifinagh standard characters.
+
+ * src/autofit/afranges.c, src/autofit/afstyles.h: Add Tifinagh data.
+
+2017-04-06 Sascha Brawer <sascha@google.com>
+ Werner Lemberg <wl@gnu.org
+
+ [autofit] Add support for N'Ko script.
+
+ * src/autofit/afblue.dat: Add blue zone data for N'Ko.
+ * src/autofit/afblue.c, src/autofit/afblue.h: Regenerated.
+
+ * src/autofit/afscript.h: Add N'Ko standard characters.
+
+ * src/autofit/afranges.c, src/autofit/afstyles.h: Add N'Ko data.
+
+2017-04-06 Sascha Brawer <sascha@google.com>
+
+ [autofit] Add support for Adlam script.
+
+ * src/autofit/afblue.dat: Add blue zone data for Adlam.
+ * src/autofit/afblue.c, src/autofit/afblue.h: Regenerated.
+
+ * src/autofit/afscript.h: Add Adlam standard characters.
+
+ * src/autofit/afranges.c, src/autofit/afstyles.h: Add Adlam data.
+
+2017-04-06 Sascha Brawer <sascha@google.com>
+
+ [autofit] Add support for Ol Chiki script.
+
+ * src/autofit/afblue.dat: Add blue zone data for Ol Chiki.
+ * src/autofit/afblue.c, src/autofit/afblue.h: Regenerated.
+
+ * src/autofit/afscript.h: Add Ol Chiki standard character.
+
+ * src/autofit/afranges.c, src/autofit/afstyles.h: Add Ol Chiki data.
+
+2017-04-03 Werner Lemberg <wl@gnu.org>
+
+ [truetype] Avoid reexecution of `fpgm' and `prep' in case of error.
+
+ Reported as
+
+ https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=981
+
+ * include/freetype/fterrdef.h (FT_Err_DEF_In_Glyf_Bytecode): New
+ error code.
+
+ * src/truetype/ttinterp.c (Ins_FDEF, Ins_IDEF): Prohibit execution
+ of these two opcodes in `glyf' bytecode.
+ (TT_RunIns): Don't enforce reexecution of `fpgm' and `prep' bytecode
+ in case of error since function tables can no longer be modified
+ (due to the changes in `Ins_FDEF' and `Ins_IDEF'). This change can
+ enormously speed up handling of broken fonts.
+
+2017-04-02 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ [autofit] Disable metrics adjustment for `FT_LOAD_TARGET_LCD'.
+
+ * src/autofit/aflatin.c (af_latin_hints_init): Updated.
+ * src/autofit/aflatin2.c (af_latin2_hints_init): Ditto.
+
+2017-04-01 Werner Lemberg <wl@gnu.org>
+
+ * src/truetype/ttgload.c: Include FT_CONFIG_CONFIG_H.
+
+ Otherwise FT_UINT_TO_POINTER might not be defined.
+
+ Problem reported by Alexei.
+
+2017-03-31 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ [autofit] Disable stem adjustment for `FT_LOAD_TARGET_LCD'.
+
+ * include/freetype/freetype.h (FT_LOAD_TARGET_LCD): Document it.
+ * src/autofit/afcjk.c (af_cjk_hints_init): Updated.
+ * src/autofit/aflatin.c (af_latin_hints_init): Ditto.
+ * src/autofit/aflatin2.c (af_latin2_hints_init): Ditto.
+
+2017-03-31 Werner Lemberg <wl@gnu.org>
+
+ * src/cff/cffload.c (cff_font_load): Improve fix from 2017-01-04.
+
+ Allow CFFs containing a single font to have an empty font name.
+
+ Problem reported by 張俊芝 <418092625@qq.com> in
+
+ https://lists.nongnu.org/archive/html/freetype-devel/2017-03/msg00074.html
+
+2017-03-30 Werner Lemberg <wl@gnu.org>
+
+ * src/cff/cffparse.h (CFF2_DEFAULT_STACK): Set to 513 also.
+
+ Requested by Dave Arnold.
+
+2017-03-30 Werner Lemberg <wl@gnu.org>
+
+ [truetype] Fix HVAR and VVAR handling (#50678).
+
+ * src/truetype/ttgxvar.c (tt_hvadvance_adjust): Handle
+ glyph indices larger than `mapCount' as described in the
+ specification.
+
+2017-03-30 Werner Lemberg <wl@gnu.org>
+
+ [truetype] Allow linear scaling for unhinted rendering (#50470).
+
+ * src/truetype/ttdriver.c (tt_size_request): Revert change from
+ 2011-07-16; the intended metrics fix seems now to be implemented in
+ a different way, making the patch unnecessary. Note that this
+ change was usually patched out by all major GNU/Linux distributions
+ due to heavy side effects.
+
+ * src/truetype/ttgload.c (compute_glyph_metrics, TT_Load_Glyph):
+ Refer to the metrics of the `TT_Size' object.
+
+2017-03-29 Werner Lemberg <wl@gnu.org>
+
+ [truetype] Fix thinko related to PS name of default named instance.
+
+ * src/truetype/ttgxvar.c (TT_Get_MM_Var): `strid' and `psid' are
+ name ID values, not indices into the array of name entries.
+
+2017-03-27 Werner Lemberg <wl@gnu.org>
+
+ [cid, truetype] Don't use `index' as a variable name.
+
+ At least on FreeBSD there is a global declaration of `index' in file
+ `/usr/include/strings.h'.
+
+ * src/cff/cf2intrp.c, src/truetype/ttgload.c: s/index/idx/ where
+ appropriate.
+
+2017-03-27 Wojciech Mamrak <wmamrak@gmail.com>
+
+ [sfnt] Minor improvement for handling kern tables.
+
+ * src/sfnt/ttkern.c (tt_face_load_kern): Don't check for
+ cross-stream kerning tables since we reject format 2 tables later
+ on anyways.
+ Modify code for limit test...
+ (tt_face_get_kerning): ... to avoid a limit test here.
+
+2017-03-27 Werner Lemberg <wl@gnu.org>
+
+ [pcf] Fix compiler warnings.
+
+ Reported by Alexander Hedges <ahedges@student.ethz.ch>.
+
+ * src/pcf/pcfdrivr.c (pcf_property_set, pcf_property_get): Tag
+ `property_name' with `FT_UNUSED' where necessary.
+
+2017-03-26 Werner Lemberg <wl@gnu.org>
+
+ * src/psaux/psobjs.c (t1_builder_close_contour): Add safety guard.
+
+ Reported as
+
+ https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=941
+
+2017-03-23 Werner Lemberg <wl@gnu.org>
+
+ [psaux] Better protect `flex' handling.
+
+ Reported as
+
+ https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=935
+
+ * src/psaux/t1decode.c (t1_decoder_parse_charstrings)
+ <callothersubr>: Since there is not a single flex operator but a
+ series of subroutine calls, malformed fonts can call arbitrary other
+ operators after the start of a flex, possibly adding points. For
+ this reason we have to check the available number of points before
+ inserting a point.
+
+2017-03-23 Werner Lemberg <wl@gnu.org>
+
+ [sfnt] Fix check for default named instance.
+
+ * src/sfnt/sfobjs.c (sfnt_init_face): A `fixed' number needs four
+ bytes, not two...
+
+2017-03-23 Werner Lemberg <wl@gnu.org>
+
+ Make MM fonts work (again).
+
+ * src/base/ftmm.c (FT_Set_Var_Design_Coordinates,
+ FT_Set_MM_Blend_Coordinates, FT_Set_Var_Blend_Coordinates): Ignore
+ return value of `ft_face_get_mvar_service'; instead, check whether a
+ service is actually returned.
+
+2017-03-20 Werner Lemberg <wl@gnu.org>
+
+ [truetype] Some variable renamings.
+
+ Too much local variables holding different structures were called
+ `metrics'.
+
+ * src/truetype/ttdriver.c (tt_size_select): s/metrics/size_metrics/.
+
+ * src/truetype/ttgload.c (tt_get_metrics_incr_overrides,
+ compute_glyph_metrics): s/metrics/incr_metrics/.
+ (load_sbit_image): s/metrics/sbit_metrics/.
+
+ * src/truetype/ttobjs.c (tt_size_run_fpgm): s/metrics/size_metrics/.
+ (tt_size_init_bytecode): s/metrics/tt_metrics/.
+ (tt_size_reset): s/metrics/size_metrics/.
+
+2017-03-20 Werner Lemberg <wl@gnu.org>
+
+ [sfnt] Don't add instances to non-variation fonts.
+
+ * src/sfnt/sfobjs.c (sfnt_init_face): Fix it.
+
+2017-03-20 Werner Lemberg <wl@gnu.org>
+
+ * src/cff/cffgload.c (cff_builder_init): Add safety guard (#50578).
+
+2017-03-18 Werner Lemberg <wl@gnu.org>
+
+ Introduce FT_UINT_TO_POINTER macro (#50560).
+
+ We have to make a separate case for Windows 64's LLP64 data model.
+
+ * builds/unix/ftconfig.in, builds/vms/ftconfig.h,
+ include/freetype/config/ftconfig.h (FT_UINT_TO_POINTER): New macro.
+
+ * src/truetype/ttgload.c (load_truetype_glyph): Use it.
+
+2017-03-18 Werner Lemberg <wl@gnu.org>
+
+ * src/truetype/ttinterp.c (TT_RunIns): Adjust loop counter (#50573).
+
+ The problematic font that exceeds the old limit is Lato-Regular,
+ version 2.007, containing bytecode generated by a buggy version of
+ ttfautohint.
+
+2017-03-18 Werner Lemberg <wl@gnu.org>
+
+ [truetype] Another limitation for bytecode loop count maximum.
+
+ Reported as
+
+ https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=900
+
+ * src/truetype/ttinterp.c (TT_RunIns): Limit `loopcall_counter_max'
+ by number of glyphs also.
+
+2017-03-18 Werner Lemberg <wl@gnu.org>
+
+ [ftfuzzer] Minor improvement.
+
+ * src/tools/ftfuzzer/ftfuzzer.cc: Don't set intermediate axis if
+ bitmap strikes are active.
+
+2017-03-18 Werner Lemberg <wl@gnu.org>
+
+ Improve `make multi'.
+
+ * src/autofit/aflatin2.c: Guard file with FT_OPTION_AUTOFIT2.
+
+ * src/base/ftmac.c: Guard more parts of the file with FT_MACINTOSH.
+
+ * src/psaux/afmparse.c: Guard file with T1_CONFIG_OPTION_NO_AFM.
+
+ * src/sfnt/pngshim.c: Guard file with
+ TT_CONFIG_OPTION_EMBEDDED_BITMAPS also.
+
+ * src/sfnt/ttbdf.c: Avoid empty source file.
+ * src/sfnt/ttpost.c: Guard file with
+ TT_CONFIG_OPTION_POSTSCRIPT_NAMES.
+ * src/sfnt/ttsbit.c: Guard file with
+ TT_CONFIG_OPTION_EMBEDDED_BITMAPS.
+
+ * src/truetype/ttgxvar.c, src/truetype/ttinterp.c: Avoid empty
+ source file.
+
+ * src/truetype/ttsubpix.c: Guard file with
+ TT_USE_BYTECODE_INTERPRETER also.
+
+ * src/type1/t1afm.c: Guard file with T1_CONFIG_OPTION_NO_AFM.
+
+ * src/autofit/autofit.c, src/base/ftbase.c, src/cache/ftcache.c,
+ src/cff/cff.c, src/cid/type1cid.c, src/gxvalid/gxvalid.c,
+ src/pcf/pcf.c, src/pfr/pfr.c, src/psaux/psaux.c,
+ src/pshinter/pshinter.c, src/psnames/psnames.c, src/raster/raster.c,
+ src/sfnt/sfnt.c, src/smooth/smooth.c, src/truetype/truetype.c,
+ src/type1/type1.c, src/type42/type42.c: Remove conditionals; sort
+ entries.
+
+2017-03-17 Werner Lemberg <wl@gnu.org>
+
+ Fixes for conditional compilation.
+
+ * src/autofit/afcjk.c, src/autofit/afindic.c: Include `afcjk.h'
+ earlier.
+
+ * src/sfnt/sfobjs.c (sfnt_init_face): Put `memory' variable into
+ TT_CONFIG_OPTION_GX_VAR_SUPPORT block.
+ (sfnt_done_face): Protect some code with
+ TT_CONFIG_OPTION_GX_VAR_SUPPORT.
+
+ * src/sfnt/ttsbit.c (tt_face_load_sbix_image): Remove compiler
+ warning.
+
+ * src/truetype/ttgload.c (TT_Load_Simple_Glyph): Put `tmp' variable
+ into TT_USE_BYTECODE_INTERPRETER block.
+
+ (tt_loader_init): Put `error' variable into
+ TT_USE_BYTECODE_INTERPRETER block.
+
+2017-03-17 Werner Lemberg <wl@gnu.org>
+
+ Fix preprocessor warning.
+
+ * devel/ftoption.h, include/freetype/config/ftoption.h: Test whether
+ TT_CONFIG_OPTION_SUBPIXEL_HINTING is defined before checking its
+ value.
+
+2017-03-17 Werner Lemberg <wl@gnu.org>
+
+ `make multi' fixes; compiler warnings.
+
+ * src/base/ftsnames.c: Include FT_INTERNAL_DEBUG_H.
+
+ * src/cff/cffobjs.c [TT_CONFIG_OPTION_GX_VAR_SUPPORT]: Include
+ FT_MULTIPLE_MASTERS_H and FT_SERVICE_MULTIPLE_MASTERS_H.
+
+ * src/sfnt/sfdriver.c [TT_CONFIG_OPTION_GX_VAR_SUPPORT]: Include
+ FT_MULTIPLE_MASTERS_H and FT_SERVICE_MULTIPLE_MASTERS_H.
+ (get_win_string, get_apple_string): Initialize `result'.
+
+2017-03-17 Dave Arnold <darnold@adobe.com>
+
+ [cff] Fix potential bugs in default NDV for CFF2.
+
+ * src/cff/cffload.c (cff_blend_build_vector): Explicitly build blend
+ vector when `lenNDV' is zero; don't rely on zero-init.
+ Save `lenNDV' as part of cache key even when `lenNDV' is zero.
+
+2017-03-17 Dave Arnold <darnold@adobe.com>
+
+ [cff] Fix CFF2 stack allocation.
+
+ * src/cff/cffparse.c (cff_parser_init) add 1 for operator.
+
+2017-03-16 Werner Lemberg <wl@gnu.org>
+
+ * src/truetype/ttgxvar.c (tt_done_blend): Free `vvar_table'.
+
+ Reported as
+
+ https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=883
+
+2017-03-15 Werner Lemberg <wl@gnu.org>
+
+ Remove clang compiler warnings (#50548).
+
+ * include/freetype/internal/tttypes.h (TT_FaceRec): Make
+ `var_postscript_prefix_len' unsigned.
+
+ * src/autofit/afwarp.c (af_warper_compute_line_best): Remove
+ redundant assignment.
+
+ * src/cff/cffload.c (cff_subfont_load): Add casts.
+
+ * src/cff/cffparse.c (cff_parse_blend): Remove redundant assignment.
+
+ * src/sfnt/sfdriver.c (fmix32, murmur_hash_3_128): Add `static'
+ keyword.
+ Add casts.
+ (fixed2float): Add cast.
+ (sfnt_get_var_ps_name): Make `p' always initialized.
+ Add casts.
+
+ * src/truetype/ttgxvar.c (TT_Get_MM_Var): Add casts.
+
+2017-03-15 Werner Lemberg <wl@gnu.org>
+
+ [ftfuzzer] Limit number of tested faces and instances.
+
+ This is inspired by the discussion in and analysis of
+
+ https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=859
+
+ * src/tools/ftfuzzer/ftfuzzer.cc (LLVMFuzzerTestOneInput): Use only
+ up to 20 face indices.
+ Use only up to 20 instance indices.
+
+2017-03-15 Werner Lemberg <wl@gnu.org>
+
+ * src/tools/ftfuzzer/ftfuzzer.cc: Improve readability; formatting.
+
+2017-03-14 Werner Lemberg <wl@gnu.org>
+
+ [sfnt] Implement PS names for font instances [3/3].
+
+ Everything is guarded with TT_CONFIG_OPTION_GX_VAR_SUPPORT.
+
+ * include/freetype/internal/tttypes.h (TT_FaceRec): New fields
+ `var_postscript_prefix' and `var_postscript_prefix_len'.
+
+ * src/sfnt/sfdriver.c: Include FT_TRUETYPE_IDS_H.
+ (sfnt_is_alphanumeric): New wrapperfunction for `ft_isalnum'.
+ (get_win_string, get_apple_string): Remove `const' from return
+ value.
+ (MAX_VALUE_DESCRIPTOR_LEN, MAX_PS_NAME_LEN): New macros.
+ (hexdigits): New array.
+ (sfnt_get_var_ps_name): New function, implementing Adobe TechNote
+ 5902 to construct a PS name for a variation font instance.
+ (sfnt_get_ps_name): Call `sfnt_get_var_ps_name' for font instances.
+
+ * src/sfnt/sfobjs.c (sfnt_done_face): Updated.
+
+ * src/truetype/ttgxvar.c (tt_set_mm_blend): Reset
+ `face->postscript_name' to trigger recalculation for new instance
+ parameters.
+
+2017-03-14 Werner Lemberg <wl@gnu.org>
+
+ [sfnt] Implement PS names for font instances [2/3].
+
+ * src/sfnt/sfdriver.c (fix2float) [TT_CONFIG_OPTION_GX_VAR_SUPPORT]:
+ New function to find the shortest representation of a 16.16
+ fractional number.
+
+2017-03-14 Werner Lemberg <wl@gnu.org>
+
+ [sfnt] Implement PS names for font instances [1/3].
+
+ Add 128bit MurmurHash 3 function.
+
+ Everything is guarded with TT_CONFIG_OPTION_GX_VAR_SUPPORT.
+
+ * src/sfnt/sfdriver.c (ROTL32): New macro.
+ (fmix32, murmur_hash_3_128): New functions.
+
+2017-03-13 Werner Lemberg <wl@gnu.org>
+
+ [truetype] Ignore invalid MVAR tags.
+
+ Reported as
+
+ https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=838
+
+ * src/truetype/ttgxvar.c (ft_var_load_mvar): Ignore value and emit
+ warning for invalid tags.
+ (tt_apply_mvar): Ignore invalid tags.
+
+2017-03-12 Werner Lemberg <wl@gnu.org>
+
+ [truetype] Store and use design coordinates also.
+
+ * include/freetype/internal/services/svmm.h (FT_Get_Var_Blend_Func):
+ Add `normalizedcoords' argument.
+
+ * src/truetype/ttgxvar.h (GX_BlendRec): Add `coords' field to store
+ the design coordinates of the current instance.
+ Updated.
+
+ * src/truetype/ttgxvar.c (TT_Set_MM_Blend): Move functionality to...
+ (tt_set_mm_blend): ... New function.
+ Convert data in `normalizedcoords' array to `coords' array on
+ demand.
+ (TT_Set_Var_Design): Store argument data in `coords' array.
+ (TT_Get_Var_Design): Get data from `coords' array.
+ (tt_get_var_blend): Updated.
+ (tt_done_blend): Updated.
+
+ * src/cff/cffload.c, src/cff/cffload.h (cff_get_var_blend): Updated.
+
+ * src/cff/cf2ft.c (cf2_getNormalizedVector): Updated.
+
+ * src/cff/cffobjs.c (cff_face_init): Updated.
+
+2017-03-12 Werner Lemberg <wl@gnu.org>
+
+ src/truetype/ttgxvar.[ch]: s/avar_checked/avar_loaded/.
+
+2017-03-08 Werner Lemberg <wl@gnu.org>
+
+ [sfnt] Another fix for buggy variation fonts.
+
+ Reported as
+
+ https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=759
+
+ * src/sfnt/sfobjs.c (sfnt_init_face): While setting number of
+ instances to zero for `CFF' fonts table, ensure that there is no
+ `CFF2' present also (which gets priority).
+
+2017-03-07 Werner Lemberg <wl@gnu.org>
+
+ [sfnt] Improve handling for buggy variation fonts.
+
+ Reported as
+
+ https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=738
+
+ * src/sfnt/sfobjs.c (sfnt_init_face): While setting number of
+ instances to zero for `CFF' fonts table, ensure that there is no
+ `glyf' table present also (which gets priority).
+
+2017-03-06 Werner Lemberg <wl@gnu.org>
+
+ [sfnt, truetype] Always provide default instance.
+
+ As documented in the OpenType specification, an entry for the
+ default instance may be omitted in the named instance table. In
+ particular this means that even if there is no named instance table
+ in the font we actually do have a named instance, namely the default
+ instance.
+
+ For consistency, we always want the default instance in our list of
+ named instances. If it is missing, we try to synthesize it.
+
+ * src/sfnt/sfobjs.c (sfnt_init_face): Check whether the default
+ instance is in the table of named instances. Otherwise adjust
+ number of instances.
+
+ * src/truetype/ttgxvar.c: Include FT_TRUETYPE_IDS_H.
+ (TT_Get_MM_Var): Use `face->root.style_flags' as the number of named
+ instances.
+ Sythesize a named instance entry if necessary.
+ (tt_done_blend): Free `normalized_stylecoords'.
+
+2017-03-05 Werner Lemberg <wl@gnu.org>
+
+ [sfnt] Remove redundant code.
+
+ * src/sfnt/sfobjs.c (sfnt_init_face): Remove second test for
+ `num_instances', which will always succeed.
+
+2017-03-04 Werner Lemberg <wl@gnu.org>
+
+ [sfnt] Add `get_name_id' service.
+
+ * include/freetype/internal/sfnt.h (TT_Get_Name_ID_Func): New
+ typedef.
+ (SFNT_Interface): Add `get_name_id' field.
+ (FT_DEFINE_SFNT_INTERFACE): Updated.
+
+ * src/sfnt/sfdriver.c (search_name_id): Rename to...
+ (sfnt_get_name_id): ... this.
+ (sfnt_get_ps_name, sfnt_interface): Updated.
+
+2017-03-04 Werner Lemberg <wl@gnu.org>
+
+ [truetype] Make `TT_Set_MM_Blend' set named instance index.
+
+ * src/truetype/ttgxvar.h (GX_Blend): New array
+ `normalized_stylecoords'.
+
+ * src/truetype/ttgxvar.c (TT_Get_MM_Var): Allocate and fill
+ `normalized_stylecoords'.
+ (TT_Set_MM_Blend): Check instance tuple and adjust `face_index'
+ accordingly.
+
+2017-03-02 Werner Lemberg <wl@gnu.org>
+
+ [truetype] Split off designer/normalized conversion routines.
+
+ * src/truetype/ttgxvar.c (TT_Set_Var_Design): Split off conversion
+ code designer->normalized coordinates to...
+ (ft_var_to_normalized): ... New function.
+ (TT_Get_Var_Design): Split off conversion code normalized->designer
+ coordinates to...
+ (ft_var_to_design): ... New function.
+
+2017-02-28 Werner Lemberg <wl@gnu.org>
+
+ [sfnt] Further generalize `sfnt_get_ps_name'; report invalid data.
+
+ * src/sfnt/sfdriver.c (sfnt_ps_map): New array.
+ (sfnt_is_postscript): New function.
+ (char_type_func): New typedef.
+ (get_win_string, get_apple_string): Add argument to specify
+ character checking function.
+ Add argument whether argument checking failures should be reported.
+ Update callers.
+ (search_name_id): Fix return value.
+
+2017-02-23 Werner Lemberg <wl@gnu.org>
+
+ [sfnt] Split off another bit of `sfnt_get_ps_name'.
+
+ * src/sfnt/sfdriver.c (sfnt_get_ps_name): Split off some
+ functionality into...
+ (search_name_id): ... New function.
+
+2017-02-23 Werner Lemberg <wl@gnu.org>
+
+ [sfnt] Modularize `sfnt_get_ps_name'.
+
+ * src/sfnt/sfdriver.c (sfnt_get_ps_name): Split off some
+ functionality into...
+ (IS_WIN, IS_APPLE): ... New macros.
+ (get_win_string, get_apple_string): ... New functions.
+
+2017-02-23 Werner Lemberg <wl@gnu.org>
+
+ [truetype] Minor improvement.
+
+ * src/truetype/ttgload.c (TT_Process_Simple_Glyph,
+ load_truetype_glyph): Remove unnecessary tests.
+
+2017-02-23 Werner Lemberg <wl@gnu.org>
+
+ * include/freetype/internal/tttypes.h (TT_Face): s/isCFF2/is_cff2/.
+
+ For orthogonality with other structure field names.
+
+ Update all users.
+
+2017-02-22 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ * src/smooth/ftgrays.c (gray_hline): Improve code.
+
+2017-02-20 Dominik Röttsches <drott@google.com>
+
+ Fix some `ttnameid.h' entries (#50313).
+
+ * include/freetype/ttnameid.h:
+ s/TT_MS_LANGID_SPANISH_INTERNATIONAL_SORT/TT_MS_LANGID_SPANISH_SPAIN_INTERNATIONAL_SORT/,
+ s/TT_MS_LANGID_MONGOLIAN_MONGOLIA_MONGOLIA/TT_MS_LANGID_MONGOLIAN_MONGOLIA_MONGOLIAN/.
+
+2017-02-20 Werner Lemberg <wl@gnu.org>
+
+ [cff] Finish support for `random' operator.
+
+ * src/cff/cfftypes.h (CFF_SubFontRec): Add `random' field.
+
+ * src/cff/cffobjs.c: Updated.
+ (cff_driver_init): Initialize random seed value.
+
+ * src/cff/cffload.c (cff_random): New function.
+ (cff_subfont_load): Add `face' argument.
+ Update all callers.
+ Initialize random number generator with a proper seed value.
+ (cff_font_load): Add `face' argument.
+ Update all callers.
+
+ * src/cff/cffload.h: Updated.
+
+ * src/cff/cf2intrp.c (CF2_FIXME): Removed.
+ (cf2_interpT2CharString) <cf2_escRANDOM>: Implement opcode.
+
+ * src/cff/cffgload.c (cff_decoder_parse_charstrings): Don't
+ initialize random seed value.
+ <cff_op_random>: Use new random seed framework.
+
+2017-02-20 Werner Lemberg <wl@gnu.org>
+
+ [cff] Sanitize `initialRandomSeed'.
+
+ * src/cff/cffload.c (cff_load_private_dict): Make
+ `initial_random_seed' value always positive.
+
+2017-02-20 Werner Lemberg <wl@gnu.org>
+
+ [cff] Introduce `random-seed' property (2/2).
+
+ * src/base/ftobjs.c: Include `FT_CFF_DRIVER_H'.
+ (open_face): Initialize `face->internal->random_seed'.
+ (FT_Face_Properties): Handle `FT_PARAM_TAG_RANDOM_SEED'.
+
+ * src/cff/cffdrivr.c (cff_property_set): Handle `random-seed'
+ property.
+
+2017-02-20 Werner Lemberg <wl@gnu.org>
+
+ [cff] Introduce `random-seed' property (1/2).
+
+ We need this for support of the `random' operator.
+
+ * include/freetype/ftcffdrv.h (FT_PARAM_TAG_RANDOM_SEED): New macro.
+
+ * include/freetype/internal/ftobjs.h (FT_Face_InternalRec): New
+ field `random_seed'.
+
+ * src/cff/cffobjs.h (CFF_DriverRec): New field `random_seed'.
+
+2017-02-17 Werner Lemberg <wl@gnu.org>
+
+ Remove clang warnings.
+
+ * src/autofit/aflatin.c (af_latin_sort_blue): Add missing `static'
+ keyword.
+
+ * src/base/ftmm.c (FT_Set_Var_Design_Coordinates,
+ FT_Set_MM_Blend_Coordinates, FT_Set_Var_Blend_Coordinates):
+ Initialize some variables.
+
+2017-02-16 Nikolaus Waxweiler <madigens@gmail.com>
+ Werner Lemberg <wl@gnu.org>
+
+ Add face property for stem darkening.
+
+ * include/freetype/ftautoh.h (FT_PARAM_TAG_STEM_DARKENING): New
+ macro.
+
+ * include/freetype/internal/ftobjs.h (FT_Face_InternalRec): Add
+ `no_stem_darkening' field.
+
+ * src/autofit/afloader.c (af_loader_load_glyph),
+ src/autofit/afmodule.c (af_property_set): Updated.
+
+ * src/base/ftobjs.c: Include FT_AUTOHINTER_H.
+ (ft_open_face_internal): Updated.
+ (FT_Face_Properties): Handle FT_PARAM_TAG_STEM_DARKENING.
+
+ * src/cff/cf2ft.c (cf2_decoder_parse_charstrings): Updated.
+
+ * src/cff/cffdrivr.c (cff_property_set): Updated.
+
+2017-02-16 Nikolaus Waxweiler <madigens@gmail.com>
+ Werner Lemberg <wl@gnu.org>
+
+ Add face property for LCD filter weights.
+
+ * include/freetype/ftlcdfil.h (FT_PARAM_TAG_LCD_FILTER_WEIGHTS,
+ FT_LCD_FILTER_FIVE_TAPS): New macros.
+ (FT_LcdFiveTapFilter): New typedef.
+
+ * include/freetype/ftobjs.h (FT_Face_InternalRec)
+ [FT_CONFIG_OPTION_SUBPIXEL_RENDERING]: Add `lcd_weights' field.
+ (FT_Bitmap_LcdFilterFunc): Change third argument to weights array.
+ (ft_lcd_filter_fir): New prototype.
+ (FT_LibraryRec): Updated.
+
+ * src/base/ftlcdfil.c (_ft_lcd_filter_fir): Renamed to...
+ (ft_lcd_filter_fir): ... this base function.
+ Updated.
+ (_ft_lcd_filter_legacy): Updated.
+ (FT_Library_SetLcdFilterWeights, FT_Library_SetLcdFilter): Updated.
+
+ * src/base/ftobjs.c (ft_open_face_internal): Updated.
+ (FT_Face_Properties): Handle FT_PARAM_TAG_LCD_FILTER_WEIGHTS.
+
+ * src/smooth/ftsmooth.c (ft_smooth_render_generic)
+ [FT_CONFIG_OPTION_SUBPIXEL_RENDERING]: Handle LCD weights from
+ `FT_Face_Internal'.
+
+2017-02-14 Nikolaus Waxweiler <madigens@gmail.com>
+ Werner Lemberg <wl@gnu.org>
+
+ Add new function `FT_Face_Properties'.
+
+ This commit provides the framework, to be filled with something
+ useful in the next commits.
+
+ * include/freetype/freetype.h (FT_Face_Properties): Declare.
+
+ * src/base/ftobjs.c (FT_Face_Properties): New function.
+
+2017-02-13 Werner Lemberg <wl@gnu.org>
+
+ [autofit] Prevent overlapping blue zones.
+
+ Problem reported as
+
+ https://github.com/google/fonts/issues/632
+
+ The font in question (Nunito) has values 705 and 713 for the
+ reference and overshoot values, respectively, of the first blue
+ zone. Blue zone 2, however, has value 710 for both the reference
+ and overshoot. At 12ppem, reference and overshoot of blue zone 0
+ becomes 8px, while blue zone 2 becomes 9px.
+
+ A peculiarity of this font is that the tops of isolated vertical
+ stems like `N' have a slight overshoot also. The auto-hinter tries
+ to find the nearest blue zone using the *original* coordinates. For
+ vertical stems, this is value 713. For normal horizontal tops like
+ in character `E', this is value 710. Since value 713 is mapped to
+ 8px but value 710 to 9px, `N' and similar characters are one pixel
+ higher than `E', which looks very bad.
+
+ This commit sanitizes blue zones to avoid such a behaviour.
+
+ * src/autofit/aflatin.c (af_latin_sort_blue): New function.
+ (af_latin_metrics_init_blues): Sort blue values and remove overlaps.
+
+2017-02-12 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ * src/smooth/ftgrays.c (gray_sweep): Improve code.
+
+2017-02-06 Werner Lemberg <wl@gnu.org>
+
+ [truetype] Implement `VVAR' table support.
+
+ * src/truetype/ttgxvar.h (GX_HVarTable): Renamed to...
+ (GX_HVVarTable): ...This.
+ (GX_Blend): Add fields for `VVAR' table handling.
+ Other minor updates.
+
+ * src/truetype/ttgxvar.c (ft_var_load_hvar): Renamed to...
+ (ft_var_load_hvvar): ...This.
+ Handle VVAR loading also (controlled by an additional parameter).
+ (tt_hadvance_adjust): Renamed to...
+ (tt_hvadvance_adjust): ...This.
+ Handle application of advance height also (controlled by an
+ additional parameter).
+ (tt_hadvance_adjust, tt_vadvance_adjust): Wrappers for
+ `tt_hvadvance_adjust'.
+
+ * src/truetype/ttdriver.c (tt_service_metrics_variations): Updated.
+
+2017-02-05 Werner Lemberg <wl@gnu.org>
+
+ [autofit] Use better blue zone characters for lowercase latin.
+
+ The number of lowercase characters for computing the top flat blue
+ zone value was too small (in most cases only `x' and `z'). If one
+ of the two characters has a large serif, say, it can happen that
+ FreeType must select between two different values, having a 50%
+ chance to use the wrong one. As a result, rendering at larger PPEM
+ values could yield uneven lowercase glyph heights.
+
+ Problem reported by Christoph Koeberlin <christoph@koe.berlin>.
+
+ * src/autofit/afblue.dat (AF_BLUE_STRING_LATIN_SMALL): Replaced
+ with...
+ (AF_BLUE_STRING_LATIN_SMALL_TOP, AF_BLUE_STRING_LATIN_SMALL_BOTTOM):
+ ... New, extended sets.
+ (AF_BLUE_STRINGSET_LATN): Updated.
+
+ * src/autofit/afblue.c, scr/autofit/afblue.h: Regenerated.
+
+2017-02-04 Werner Lemberg <wl@gnu.org>
+
+ Make `freetype-config' a wrapper of `pkg-config' if possible.
+
+ Based on ideas taken from
+
+ https://pkgs.fedoraproject.org/cgit/rpms/freetype.git/tree/freetype-multilib.patch
+ https://pkgs.fedoraproject.org/cgit/rpms/freetype.git/tree/freetype-2.5.3-freetype-config-prefix.patch
+
+ * builds/unix/freetype-config.in: Rewritten. Use `pkg-config' to
+ set output variables if program is available.
+
+ * docs/CHANGES, docs/freetype-config.1: Updated.
+
+2017-02-04 Werner Lemberg <wl@gnu.org>
+
+ * builds/unix/unix-def.in (freetype-config): Fix permissions.
+
+2017-02-03 Werner Lemberg <wl@gnu.org>
+
+ * src/autofit/afglobal.c (af_face_globals_free): Erase useless code.
+
+2017-02-03 Werner Lemberg <wl@gnu.org>
+
+ * include/freetype/ftgasp.h (FT_GASP_SYMMETRIC_GRIDFIT): Fix value.
+
+ Reported by Behdad.
+
+2017-02-02 Werner Lemberg <wl@gnu.org>
+
+ [truetype] Fix MVAR post-action handling.
+
+ Reported as
+
+ https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=509
+
+ * src/truetype/ttobjs.c (tt_size_reset): Do nothing for CFF2. This
+ is important to make `tt_size_reset_iterator' (called in
+ `tt_apply_mvar') always work.
+
+2017-02-02 Werner Lemberg <wl@gnu.org>
+
+ Make compilation with FT_CONFIG_OPTION_PIC work again.
+
+ All code committed here is guarded with `FT_CONFIG_OPTION_PIC'.
+
+ * include/freetype/internal/services/svmetric.h
+ (FT_DEFINE_SERVICE_METRICSVARIATIONSREC): Remove trailing semicolon.
+
+ * src/autofit/aflatin.c (af_latin_hints_compute_edges,
+ af_latin_hint_edges): Provide `globals' variable.
+
+ * src/autofit/afloader.c (af_loader_load_glyph): Remove shadowing
+ variable.
+
+ * src/autofit/afmodule.c (AF_SCRIPT_CLASSES_GET,
+ AF_STYLE_CLASSES_GET): Redefine.
+
+ * src/autofit/aftypes.h (AF_DEFINE_WRITING_SYSTEM_CLASS): Fix typo.
+
+ * src/cff/cffparse.c (CFF_FIELD_BLEND): Provide it.
+
+ * src/cff/cffpic.h (CffModulePIC): Fix typo.
+
+2017-01-31 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ * src/smooth/ftgrays.c (gray_render_scanline): Improve code.
+
+2017-01-31 Werner Lemberg <wl@gnu.org>
+
+ [cff] Provide metrics variation service interface (#50196).
+
+ Only now I've got an OTF with an HVAR table for testing...
+
+ The code in `ftmm.c' uses `FT_FACE_LOOKUP_SERVICE' to get the
+ metrics variations interface. However, this didn't work with
+ `FT_FACE_FIND_GLOBAL_SERVICE' used in `sfnt_init_face'.
+
+ * src/cff/cffdrivr.c: Include FT_SERVICE_METRICS_VARIATIONS_H.
+ (cff_hadvance_adjust, cff_metrics_adjust): Wrapper functions for
+ metric service functions from the `truetype' module.
+ (cff_service_metrics_variations): New service.
+ (cff_services): Updated.
+
+ * src/cff/cffpic.h (CFF_SERVICE_METRICS_VAR_GET): New macro.
+ [FT_CONFIG_OPTION_PIC]: Synchronize code.
+
+ * src/sfnt/sfobjs.c (sfnt_init_face): Replace call to
+ FT_FACE_FIND_GLOBAL_SERVICE with `ft_module_get_service' to always
+ load the service from the `truetype' module.
+
+2017-01-31 Werner Lemberg <wl@gnu.org>
+
+ Add framework to support services with 9 functions.
+
+ * include/freetype/internal/ftserv.h (FT_DEFINE_SERVICEDESCREC9):
+ New macro.
+
+2017-01-31 Werner Lemberg <wl@gnu.org>
+
+ [base] Fix error handing in MM functions.
+
+ * src/base/ftmm.c (FT_Set_Var_Design_Coordinates,
+ FT_Set_MM_Blend_Coordinates, FT_Set_Var_Blend_Coordinates):
+ Implement it.
+
+2017-01-31 Werner Lemberg <wl@gnu.org>
+
+ [truetype] Fix sanity check for `gvar' table (#50184).
+
+ * src/truetype/ttgxvar.c (ft_var_load_gvar): There might be missing
+ variation data for some glyphs.
+
+2017-01-31 Werner Lemberg <wl@gnu.org>
+
+ [autofit] Avoid uninitialized jumps (#50191).
+
+ * src/autofit/afcjk.c (af_cjk_metrics_check_digits),
+ src/autofit/aflatin.c (af_latin_metrics_check_digits): Initialize
+ `advance'.
+
+2017-01-27 Werner Lemberg <wl@gnu.org>
+
+ s/GB2312/PRC/.
+
+ * include/freetype/freetype.h (FT_ENCODING_PRC): New enum value.
+ (FT_ENCODING_GB2312): Deprecated.
+
+ * include/freetype/ttnameid.h (TT_MS_ID_PRC): New macro.
+ (TT_MS_ID_GB2312): Deprecated.
+
+ * src/sfnt/sfobjs.c (sfnt_find_encoding): Updated.
+
+ * docs/CHANGES: Updated.
+
+2017-01-26 Werner Lemberg <wl@gnu.org>
+
+ [base] Add `FT_Get_Sfnt_LangTag' function.
+
+ * include/freetype/ftsnames.h (FT_SfntLangTag): New structure.
+ (FT_Get_Sfnt_LangTag): New declaration.
+
+ * src/base/ftsnames.c (FT_Get_Sfnt_LangTag): New function.
+
+ * docs/CHANGES: Updated.
+
+2017-01-26 Werner Lemberg <wl@gnu.org>
+
+ [sfnt] Support `name' table format 1.
+
+ * include/freetype/internal/tttypes.h (TT_LangTagRec): New
+ structure.
+ (TT_NameTableRec): Add fields `numLangTagRecords' and `langTags'.
+
+ * src/sfnt/ttload.c (tt_face_load_name): Add support for language
+ tags.
+ Reduce array size of name strings in case of invalid entries.
+ (tt_face_free_name): Updated.
+
+ * docs/CHANGES: Updated.
+
+2017-01-25 Werner Lemberg <wl@gnu.org>
+
+ [sfnt] s/TT_NameEntry/TT_Name/.
+
+ * include/freetype/internal/tttypes.h (TT_NameEntryRec): Renamed
+ to...
+ (TT_NameRec): This.
+ (TT_NameTableRec): Updated.
+
+ * src/base/ftsnames.c (FT_Get_Sfnt_Name): Updated.
+
+ * src/sfnt/sfdriver.c (sfnt_get_ps_name): Updated.
+
+ * src/sfnt/sfobjs.c (tt_name_entry_ascii_from_utf16,
+ tt_name_entry_ascii_from_other): Renamed to...
+ (tt_name_ascii_from_utf16, tt_name_entry_ascii_from_other): This,
+ respectively.
+ (TT_NameEntry_ConvertFunc): Renamed to...
+ (TT_Name_ConvertFunc): This.
+ (tt_face_get_name): Updated.
+
+ * src/sfnt/ttload.c (tt_face_load_name, tt_face_free_name):
+ Updated.
+
+2017-01-24 Werner Lemberg <wl@gnu.org>
+
+ [sfnt] Fix Postscript name service for symbol fonts.
+
+ * src/sfnt/sfdriver.c (sfnt_get_ps_name): Accept PID/EID=3/0
+ entries also.
+
+2017-01-24 Werner Lemberg <wl@gnu.org>
+
+ [truetype] For OpenType 1.7: s/preferred/typographic/ (sub)family.
+
+ * include/freetype/ftsnames.h
+ (FT_PARAM_TAG_IGNORE_TYPOGRAPHIC_FAMILY,
+ FT_PARAM_TAG_IGNORE_TYPOGRAPHIC_SUBFAMILY): New macros.
+ (FT_PARAM_TAG_IGNORE_PREFERRED_FAMILY,
+ FT_PARAM_TAG_IGNORE_PREFERRED_SUBFAMILY): Deprecated.
+
+ * include/freetype/ttnameid.h (TT_NAME_ID_TYPOGRAPHIC_FAMILY,
+ TT_NAME_ID_TYPOGRAPHIC_SUBFAMILY): New macros.
+ (TT_NAME_ID_PREFERRED_FAMILY, TT_NAME_ID_PREFERRED_SUBFAMILY):
+ Deprecated.
+
+ * src/sfnt/sfobjs.c (sfnt_load_face): Updated.
+
+ * docs/CHANGES: Updated.
+
+2017-01-23 Werner Lemberg <wl@gnu.org>
+
+ [base] Add `FT_Set_Default_Properties' (#49187).
+
+ * include/freetype/ftmodapi.h: Add declaration.
+
+ * src/base/ftinit.c (ft_set_default_properties): Renamed to...
+ (FT_Set_Default_Properties): ... this.
+ (FT_Init_FreeType): Updated.
+
+ * docs/CHANGES: Updated.
+
+2017-01-23 Werner Lemberg <wl@gnu.org>
+
+ [truetype] Minor updates for OpenType 1.8.1.
+
+ * src/truetype/ttgxvar.h (GX_MVarTable): `axisCount' has been
+ removed from the specification; it is now reserved.
+
+ * src/truetype/ttgxvar.c (ft_var_load_mvar): Updated.
+ (GX_FVar_Head): Remove `countSizePairs'; the corresponding data
+ field in the `MVAR' table is now reserved.
+ (fvar_fields): Updated.
+
+2017-01-23 Werner Lemberg <wl@gnu.org>
+
+ [truetype] Avoid segfault for invalid variation data.
+
+ * src/truetype/ttgxvar.c (ft_var_load_item_variation_store): Assure
+ `itemCount' is not zero.
+
+ Reported as
+
+ https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=441
+
+2017-01-20 Werner Lemberg <wl@gnu.org>
+
+ * src/truetype/ttinterp.c (TT_RunIns): Adjust loop detector limits.
+
+2017-01-17 Werner Lemberg <wl@gnu.org>
+
+ * include/freetype/ttnameid.h: Updated to OpenType 1.8.1.
+
+ (TT_APPLE_ID_FULL_UNICODE): New macro.
+
+ (TT_MS_LANGID_BOSNIAN_BOSNIA_HERZ_CYRILLIC,
+ TT_MS_LANGID_UPPER_SORBIAN_GERMANY,
+ TT_MS_LANGID_LOWER_SORBIAN_GERMANY, TT_MS_LANGID_IRISH_IRELAND,
+ TT_MS_LANGID_INUKTITUT_CANADA_LATIN, TT_MS_LANGID_BASHKIR_RUSSIA,
+ TT_MS_LANGID_LUXEMBOURGISH_LUXEMBOURG,
+ TT_MS_LANGID_GREENLANDIC_GREENLAND, TT_MS_LANGID_MAPUDUNGUN_CHILE,
+ TT_MS_LANGID_MOHAWK_MOHAWK, TT_MS_LANGID_BRETON_FRANCE,
+ TT_MS_LANGID_OCCITAN_FRANCE, TT_MS_LANGID_CORSICAN_FRANCE,
+ TT_MS_LANGID_ALSATIAN_FRANCE, TT_MS_LANGID_YAKUT_RUSSIA,
+ TT_MS_LANGID_KICHE_GUATEMALA, TT_MS_LANGID_KINYARWANDA_RWANDA,
+ TT_MS_LANGID_WOLOF_SENEGAL, TT_MS_LANGID_DARI_AFGHANISTAN): New
+ macros.
+
+ (TT_MS_LANGID_SERBIAN_BOSNIA_HERZ_CYRILLIC): Fix value.
+
+ (TT_MS_LANGID_GERMAN_LIECHTENSTEIN, TT_MS_LANGID_CATALAN_CATALAN,
+ TT_MS_LANGID_CHINESE_MACAO, TT_MS_LANGID_SPANISH_SPAIN_MODERN_SORT,
+ TT_MS_LANGID_KOREAN_KOREA, TT_MS_LANGID_ROMANSH_SWITZERLAND,
+ TT_MS_LANGID_SLOVENIAN_SLOVENIA, TT_MS_LANGID_BASQUE_BASQUE,
+ TT_MS_LANGID_SETSWANA_SOUTH_AFRICA,
+ TT_MS_LANGID_ISIXHOSA_SOUTH_AFRICA,
+ TT_MS_LANGID_ISIZULU_SOUTH_AFRICA, TT_MS_LANGID_KAZAKH_KAZAKHSTAN,
+ TT_MS_LANGID_KYRGYZ_KYRGYZSTAN, TT_MS_LANGID_KISWAHILI_KENYA,
+ TT_MS_LANGID_TATAR_RUSSIA, TT_MS_LANGID_ODIA_INDIA,
+ TT_MS_LANGID_MONGOLIAN_PRC, TT_MS_LANGID_TIBETAN_PRC,
+ TT_MS_LANGID_WELSH_UNITED_KINGDOM, TT_MS_LANGID_GALICIAN_GALICIAN,
+ TT_MS_LANGID_SINHALA_SRI_LANKA, TT_MS_LANGID_TAMAZIGHT_ALGERIA,
+ TT_MS_LANGID_SESOTHO_SA_LEBOA_SOUTH_AFRICA, TT_MS_LANGID_YI_PRC,
+ TT_MS_LANGID_UIGHUR_PRC): New aliases.
+
+ Remove commented out code.
+
+ (TT_NAME_ID_LIGHT_BACKGROUND, TT_NAME_ID_DARK_BACKGROUND,
+ TT_NAME_ID_VARIATIONS_PREFIX): New macros.
+
+ (HAVE_LIMIT_ON_IDENTS): Remove macro (which was useless since many
+ years), use guarded long macros by default and define short versions
+ as aliases for the long ones.
+
+2017-01-15 Werner Lemberg <wl@gnu.org>
+
+ * src/truetype/ttgxvar.c (tt_apply_var): Handle underline parameters
+ also.
+
+2017-01-11 Werner Lemberg <wl@gnu.org>
+
+ * src/base/ftobjs.c (ft_open_face_internal): Improve tracing.
+
+2017-01-11 Werner Lemberg <wl@gnu.org>
+
+ [truetype] Actually use metrics variation service.
+
+ * src/base/ftmm.c: Include FT_SERVICE_METRICS_VARIATIONS_H.
+ (ft_face_get_mvar_service): New auxiliary function to look up
+ metrics variation service.
+ (FT_Set_Var_Design_Coordinates, FT_Set_MM_Blend_Coordinates,
+ FT_Set_Var_Blend_Coordinates): Call metrics variation service.
+
+ * src/truetype/ttobjs.c (tt_face_init): Use metrics variations for
+ named instances.
+
+2017-01-11 Werner Lemberg <wl@gnu.org>
+
+ [truetype] Provide metrics variation service.
+
+ * include/freetype/internal/services/svmetric.h
+ (FT_Metrics_Adjust_Func): Reduce number of necessary parameters.
+
+ * src/truetype/ttgxvar.c: Include FT_LIST_H.
+ (tt_size_reset_iterator): New auxiliary function for...
+ (tt_apply_var): New function.
+
+ * src/truetype/ttgxvar.h: Updated.
+
+ * src/truetype/ttdriver.c (tt_service_metrics_variations): Add
+ `tt_apply_mvar'.
+
+ * include/freetype/internal/ftserv.h (FT_ServiceCache): Add metrics
+ variation service.
+
+2017-01-11 Werner Lemberg <wl@gnu.org>
+
+ [truetype] Parse `MVAR' table.
+
+ * src/truetype/ttgxvar.h (MVAR_TAG_XXX): New macros for MVAR tags.
+ (GX_Value, GX_MVarTable): New structures.
+ (GX_Blend): Add it.
+
+ * src/truetype/ttgxvar.c (GX_VALUE_SIZE, GX_VALUE_CASE,
+ GX_GASP_CASE): New macros.
+ (ft_var_get_value_pointer): New auxiliary function to get a pointer
+ to a value from various SFNT tables already stored in `TT_Face'.
+ (ft_var_load_mvar): New function.
+ (TT_Get_MM_Var): Call it.
+ (tt_done_blend): Updated.
+
+2017-01-11 Werner Lemberg <wl@gnu.org>
+
+ [truetype] More preparations for MVAR support.
+
+ * src/truetype/ttobjs.c (tt_size_reset): Add argument to make
+ function only recompute ascender, descender, and height.
+
+ * src/truetype/ttobjs.h: Updated.
+
+ * src/truetype/ttdriver.c (tt_size_select, tt_size_request):
+ Updated.
+
+2017-01-09 Werner Lemberg <wl@gnu.org>
+
+ [pcf] Disable long family names by default.
+
+ * include/freetype/config/ftoption.h
+ (PCF_CONFIG_OPTION_LONG_FAMILY_NAMES): Comment out.
+
+2017-01-09 Werner Lemberg <wl@gnu.org>
+
+ [pcf] Make long family names configurable.
+
+ The change from 2016-09-29 was too radical (except for people using
+ the openSuSE GNU/Linux distribution). To ameliorate the situation,
+ PCF_CONFIG_OPTION_LONG_FAMILY_NAMES gets introduced which controls
+ the feature; if set, a new PCF property option
+ `no-long-family-names' can be used to switch this feature off.
+
+ * include/freetype/config/ftoption.h, devel/ftoption.h
+ (PCF_CONFIG_OPTION_LONG_FAMILY_NAMES): New option.
+
+ * include/freetype/ftpcfdrv.h: New header file (only containing
+ comments currently, used for building the documentation).
+
+ * include/freetype/config/ftheader.h (FT_PCF_DRIVER_H): New macro.
+
+ * src/pcf/pcf.h (PCF_Driver): Add `no_long_family_names' field.
+
+ * src/pcf/pcfdrivr.c: Include FT_SERVICE_PROPERTIES_H and
+ FT_PCF_DRIVER_H.
+ (pcf_property_set, pcf_property_get): New functions.
+ (pcf_service_properties): New service.
+ (pcf_services): Updated.
+ (pcf_driver_init) [PCF_CONFIG_OPTION_LONG_FAMILY_NAMES]: Handle
+ `no_long_family_names'.
+
+ * src/pcf/pcfread.c (pcf_load_font): Handle `no_long_family_names'
+ and PCF_CONFIG_OPTION_LONG_FAMILY_NAMES.
+
+ * docs/CHANGES: Updated.
+
+2017-01-09 Werner Lemberg <wl@gnu.org>
+
+ [pcf] Introduce a driver structure.
+
+ To be filled later on with something useful.
+
+ * src/pcf/pcf.h (PCF_Driver): New structure.
+
+ * src/pcf/pcfdrivr.c (pcf_driver_init, pcf_driver_done): New dummy
+ functions.
+ (pcf_driver_class): Updated.
+
+2017-01-08 Werner Lemberg <wl@gnu.org>
+
+ [truetype] Again some GX code shuffling.
+
+ We need this later on for MVAR also.
+
+ * src/truetype/ttgxvar.c (tt_hadvance_adjust): Split off computing
+ an item store variation delta into...
+ (ft_var_get_item_delta): ...new function.
+
+2017-01-08 Werner Lemberg <wl@gnu.org>
+
+ [truetype] Adjust font variation flags for MVAR.
+
+ * include/freetype/internal/tttypes.h (TT_FACE_FLAG_VAR_XXX):
+ Remove all flags related to MVAR; replace it with...
+ (TT_FACE_FLAG_VAR_MVAR): ...this new macro.
+ (TT_Face): Remove `mvar_support' field (which was still unused).
+
+2017-01-06 Werner Lemberg <wl@gnu.org>
+
+ [truetype] More GX code shuffling.
+
+ We need this later on for MVAR also.
+
+ * src/truetype/ttgxvar.c (tt_done_blend): Split off handling of item
+ variation store into...
+ (ft_var_done_item_variation_store): ...new function.
+
+2017-01-06 Werner Lemberg <wl@gnu.org>
+
+ [truetype] More generalization of GX stuff.
+
+ We need this later on for MVAR also.
+
+ * src/truetype/ttgxvar.c (ft_var_load_delta_set_index_mapping): Add
+ parameters for delta-set index mapping and item variation store.
+ (ft_var_load_item_variation_store): Add parameter for item variation
+ store.
+ s/hvarData/varData/.
+ Move allocation of `hvar_table' to...
+ (ft_var_load_hvar): ...this function.
+ Updated.
+
+2017-01-06 Werner Lemberg <wl@gnu.org>
+
+ [truetype] Some GX structure renames for generalization.
+
+ We need this later on for MVAR also.
+
+ * src/truetype/ttgxvar.h (GX_HVarData): Renamed to...
+ (GX_ItemVarData): ...this.
+ (GX_HVarRegion): Renamed to...
+ (GX_VarRegion): ...this.
+ (GX_HVStore): Renamed to...
+ (GX_ItemVarStore): ...this.
+ (GX_WidthMap): Renamed to...
+ (GX_DeltaSetIdxMap): ...this.
+
+ (GX_HVarTable): Updated.
+
+ * src/truetype/ttgxvar.c: Updated.
+
+2017-01-06 Werner Lemberg <wl@gnu.org>
+
+ [truetype] Code shuffling.
+
+ * src/truetype/ttgxvar.c (ft_var_load_hvar): Split off loading of
+ item variation store and delta set index mapping into...
+ (ft_var_load_item_variation_store,
+ ft_var_load_delta_set_index_mapping): ...new functions.
+
+2017-01-06 Werner Lemberg <wl@gnu.org>
+
+ [truetype] Add HVAR access without advance width map.
+
+ * src/truetype/ttgxvar.c (ft_var_load_hvar): Handle case where
+ `offsetToAdvanceWidthMapping' is zero.
+ (tt_hadvance_adjust): Implement direct deltaSet access by glyph
+ index.
+
+2017-01-06 Werner Lemberg <wl@gnu.org>
+
+ [pcf] Revise driver.
+
+ This commit improves tracing and handling of malformed fonts. In
+ particular, the changes to `pcf_get_properties' fix
+
+ https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=379
+
+ * src/pcf/pcfread.c (tableNames): Use long names for better
+ readability.
+ (pcf_read_TOC): Allow at most 9 tables.
+ (pcf_get_properties): Allow at most 256 properties.
+ Limit strings array length to 256 * (65536 + 1) bytes.
+ Better tracing.
+ (pcf_get_metric): Trace metric data.
+ (pcf_get_metrics): Allow at most 65536 metrics.
+ Fix comparison of `metrics->ascent' and `metrics->descent' to avoid
+ potential overflow.
+ Better tracing.
+ (pcf_get_bitmaps): Allow at most 65536 bitmaps.
+ Better tracing.
+ (pcf_get_encodings, pcf_get_accel): Better tracing.
+
+ * src/pcf/pcfdrivr.c (PCF_Glyph_Load): Don't trace `format' details.
+ These are now shown by `pcf_get_bitmaps'.
+
+2017-01-04 Werner Lemberg <wl@gnu.org>
+
+ * src/pcf/pcfdrivr.c (PCF_Face_Init): Trace compression format.
+
+2017-01-04 Werner Lemberg <wl@gnu.org>
+
+ [cff] More consistency checks for pure CFFs.
+
+ Reported as
+
+ https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=378
+
+ * src/cff/cffload.c (cff_font_load): Check element number and size
+ of Name and Top DICT indices.
+
+2017-01-04 Werner Lemberg <wl@gnu.org>
+
+ [cff, truetype] Minor tracing improvement.
+
+ * src/cff/cffobjs.c (cff_face_init), src/truetype/ttobjs.c
+ (tt_face_init): Indent first tracing message from SFNT driver.
+
+2017-01-03 Werner Lemberg <wl@gnu.org>
+
+ [truetype] Various minor fixes.
+
+ * src/truetype/ttgload.c (TT_Load_Simple_Glyph): Check instruction
+ size only if we do native hinting.
+ (TT_Load_Glyph): Trace returned error code.
+
+ * src/truetype/ttobjs.c (tt_size_run_fpgm, tt_size_run_prep): Trace
+ returned error code.
+ (tt_size_ready_bytecode): Don't run `prep' table if `fpgm' table is
+ invalid.
+
+2017-01-03 Werner Lemberg <wl@gnu.org>
+
+ [sfnt] Don't fail if PCLT, EBLC (and similar tables) are invalid.
+
+ These tables are optional.
+
+ * src/sfnt/sfobjs.c (sfnt_load_face): Implement it.
+
+2017-01-03 Werner Lemberg <wl@gnu.org>
+
+ * src/cff/cffparse.c (cff_parse_num): Simplify.
+
+2017-01-03 Werner Lemberg <wl@gnu.org>
+
+ Various fixes for clang's undefined behaviour sanitizer.
+
+ * src/cff/cffload.c (FT_fdot14ToFixed): Fix casting.
+ (cff_blend_doBlend): Don't left-shift negative numbers.
+ Handle 5-byte numbers byte by byte to avoid alignment issues.
+
+ * src/cff/cffparse.c (cff_parse_num): Handle 5-byte numbers byte by
+ byte to avoid alignment issues.
+
+ * src/cid/cidload (cid_read_subrs): Do nothing if we don't have any
+ subrs.
+
+ * src/psaux/t1decode.c (t1_decode_parse_charstring): Fix tracing.
+
+ * src/tools/glnames.py (main): Put `DEFINE_PSTABLES' guard around
+ definition of `ft_get_adobe_glyph_index'.
+
+ * src/psnames/pstables.h: Regenerated.
+
+ * src/psnames/psmodule.c: Include `pstables.h' twice to get both
+ declaration and definition.
+
+ * src/truetype/ttgxvar.c (FT_fdot14ToFixed, FT_intToFixed): Fix
+ casting.
+
+2017-01-01 Werner Lemberg <wl@gnu.org>
+
+ [cff] Handle multiple `blend' operators in a row correctly.
+
+ Reported as
+
+ https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=368
+
+ * src/cff/cffload.c (cff_blend_doBlend): Adjust `parser->stack'
+ pointers into `subFont->blend_stack' after reallocation.
+
+2017-01-01 Werner Lemberg <wl@gnu.org>
+
+ [sfnt] Return correct number of named instances for TTCs.
+
+ Without this patch, requesting information for face index N returned
+ the data for face index N+1 (or index 0).
+
+ * src/sfnt/sfobjs.c (sfnt_init_face): Correctly adjust `face_index'
+ for negative `face_instance_index' values.
+
+2016-12-31 Werner Lemberg <wl@gnu.org>
+
+ */*: Use hex numbers for errors in tracing messages.
+
+2016-12-31 Werner Lemberg <wl@gnu.org>
+
+ [truetype] Check axis count in HVAR table.
+
+ Reported as
+
+ https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=362
+
+ * src/truetype/ttgxvar.c (ft_var_load_hvar): Check axis count.
+ (ft_var_load_avar): Fix tracing message.
+
+
+----------------------------------------------------------------------------
+
+Copyright (C) 2016-2021 by
+David Turner, Robert Wilhelm, and Werner Lemberg.
+
+This file is part of the FreeType project, and may only be used, modified,
+and distributed under the terms of the FreeType project license,
+LICENSE.TXT. By continuing to use, modify, or distribute this file you
+indicate that you have read the license and understand and accept it
+fully.
+
+
+Local Variables:
+version-control: never
+coding: utf-8
+End:
diff --git a/freetype/docs/oldlogs/ChangeLog.29 b/freetype/docs/oldlogs/ChangeLog.29
new file mode 100644
index 00000000..e668b4f0
--- /dev/null
+++ b/freetype/docs/oldlogs/ChangeLog.29
@@ -0,0 +1,2352 @@
+2018-05-01 Werner Lemberg <wl@gnu.org>
+
+ * Version 2.9.1 released.
+ =========================
+
+
+ Tag sources with `VER-2-9-1'.
+
+ * docs/VERSION.TXT: Add entry for version 2.9.1.
+ * docs/CHANGES: Updated.
+
+ * README, Jamfile (RefDoc), builds/windows/vc2005/freetype.vcproj,
+ src/base/ftver.rc, builds/windows/vc2005/index.html,
+ builds/windows/vc2008/freetype.vcproj,
+ builds/windows/vc2008/index.html,
+ builds/windows/vc2010/freetype.vcxproj,
+ builds/windows/vc2010/index.html,
+ builds/windows/visualc/freetype.dsp,
+ builds/windows/visualc/freetype.vcproj,
+ builds/windows/visualc/index.html,
+ builds/windows/visualce/freetype.dsp,
+ builds/windows/visualce/freetype.vcproj,
+ builds/windows/visualce/index.html,
+ builds/wince/vc2005-ce/freetype.vcproj,
+ builds/wince/vc2005-ce/index.html,
+ builds/wince/vc2008-ce/freetype.vcproj,
+ builds/wince/vc2008-ce/index.html: s/2.9/2.9.1/, s/29/291/.
+
+ * include/freetype/freetype.h (FREETYPE_PATCH): Set to 1.
+
+ * builds/unix/configure.raw (version_info): Set to 22:1:16.
+ * CMakeLists.txt (VERSION_PATCH): Set to 1.
+
+ * include/freetype/ftgasp.h: Use FT_BEGIN_HEADER and FT_END_HEADER.
+
+2018-04-26 Werner Lemberg <wl@gnu.org>
+
+ Another fix for handling invalid format 2 cmaps.
+
+ Sigh.
+
+ Reported as
+
+ https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=8003
+
+ * src/sfnt/ttcmap.c (tt_cmap2_char_next): Adjust condition to avoid
+ an endless loop.
+
+2018-04-24 Ben Wagner <bungeman@google.com>
+
+ [base] Avoid undefined behaviour in lcd filtering code (#53727).
+
+ * src/base/ftlcdfil.c (ft_lcd_filter_fir, _ft_lcd_filter_legacy):
+ Ensure `height > 0'.
+
+2018-04-22 Werner Lemberg <wl@gnu.org>
+
+ * src/base/ftoutln.c (FT_Outline_Decompose): Improve error tracing.
+
+2018-04-22 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ [base] Fix bitmap emboldening.
+
+ Bug introduced after release 2.8.
+
+ * src/base/ftbitmap.c (ft_bitmap_assure_buffer): We use
+ `FT_QALLOC_MULT', which doesn't zero out the buffer. Adjust the
+ bitmap copying code to take care of this fact.
+
+2018-04-22 Werner Lemberg <wl@gnu.org>
+
+ Another fix for handling invalid format 2 cmaps.
+
+ The previous commit was incomplete.
+
+ Reported as
+
+ https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=7928
+
+ * src/sfnt/ttcmap.c (tt_cmap2_char_next): Adjust condition to avoid
+ an endless loop.
+
+2018-04-19 Werner Lemberg <wl@gnu.org
+
+ [autofit] Add support for Georgian Mtavruli characters.
+
+ This will be part of the forthcoming Unicode 11.0.
+
+ * src/autofit/afblue.dat: Add blue zone data for Mtavruli.
+ * src/autofit/afblue.c, src/autofit/afblue.h: Regenerated.
+
+ * src/autofit/afscript.h: Add Mtavruli standard character.
+
+2018-04-18 Werner Lemberg <wl@gnu.org>
+
+ Fix handling of invalid format 2 cmaps.
+
+ The problem was introduced after the last release.
+
+ Reported as
+
+ https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=7828
+
+ * src/sfnt/ttcmap.c (tt_cmap2_char_next): Avoid endless loop.
+
+2018-04-17 Werner Lemberg <wl@gnu.org>
+
+ [truetype] Integer overflow issues.
+
+ Reported as
+
+ https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=7739
+
+ * src/truetype/ttinterp.c (Ins_CEILING): Use FT_PIX_CEIL_LONG.
+
+2018-04-16 Werner Lemberg <wl@gnu.org>
+
+ [truetype] Integer overflow issues.
+
+ Reported as
+
+ https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=7718
+
+ * src/truetype/ttinterp.c (Ins_MIRP): Use ADD_LONG.
+
+2018-04-15 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ [build] Use `info' function of make 3.81.
+
+ * configure, docs/INSTALL, docs/INSTALL.CROSS, docs/INSTALL.GNU,
+ docs/INSTALL.UNIX, docs/MAKEPP: Bump make version requirements.
+
+ * builds/detect.mk (std_setup): Replace `echo' with `info'.
+ (dos_setup): Removed.
+ * builds/unix/install.mk, builds/modules.mk, builds/dos/detect.mk,
+ builds/windows/detect.mk, builds/os2/detect.mk: Updated.
+ * builds/newline: No longer needed.
+
+2018-04-15 Werner Lemberg <wl@gnu.org>
+
+ [truetype]: Limit `SLOOP' bytecode argument to 16 bits.
+
+ This fixes
+
+ https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=7707
+
+ * src/truetype/ttinterp.c (Ins_SLOOP): Do it.
+
+2018-04-14 Werner Lemberg <wl@gnu.org>
+
+ [truetype] Integer overflow issues.
+
+ Reported as
+
+ https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=7652
+
+ * src/truetype/ttinterp.c (Ins_MDAP): Use SUB_LONG.
+
+2018-04-14 Werner Lemberg <wl@gnu.org>
+
+ [autofit] Update to Unicode 11.0.0.
+
+ But no support new scripts (volunteers welcomed).
+
+ * src/autofit/afranges.c (af_arab_nonbase_uniranges,
+ af_beng_nonbase_uniranges, af_cakm_nonbase_uniranges,
+ af_deva_nonbase_uniranges, af_geor_uniranges,
+ af_gujr_nonbase_uniranges, af_mlym_nonbase_uniranges,
+ af_nkoo_nonbase_uniranges, af_telu_nonbase_uniranges,
+ af_hani_uniranges): Add new data.
+
+2018-04-10 Nikolaus Waxweiler <madigens@gmail.com>
+
+ * CMakeLists.txt, builds/cmake/FindHarfBuzz.cmake: Extensive
+ modernization measures.
+
+ This brings up the minimum required CMake version to 2.8.12.
+
+ The installation paths follow the GNU defaults now, e.g. installing on a
+ 64 bit host will place binaries into the lib64/ folder on e.g. Fedora.
+
+ Symbols are hidden by default (e.g. `-fvisibility=hidden' on GCC).
+
+ CMake will no longer look for a C++ compiler.
+
+ Library and .so version now match the Autotools build.
+
+ Comments in the build file and informational messages now use platform
+ agnostic example commands.
+
+ ftoption.h and ftconfig.h are written directly without a redundant `-new'
+ copy.
+
+ External dependencies are expressed as option()s and will turn up as such
+ in cmake-gui.
+
+ Internal: Properties such as dependencies and include directories are now
+ privately set on the freetype library instead of globally.
+
+ The CPack definitions have been cleaned up, the `make dist' has been
+ removed. Source packages generated with CPack don't contain Autotools
+ files and aren't used by the maintainers anyway.
+
+ On Windows, src/base/ftver.rc is compiled to decorate the library with
+ version and copyright information.
+
+ A pkg-config file is now generated and installed.
+
+2018-04-09 Werner Lemberg <wl@gnu.org>
+
+ [truetype] Integer overflow issues.
+
+ Reported as
+
+ https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=7453
+
+ * src/truetype/ttinterp.c (Round_Super, Round_Super_45): Use
+ ADD_LONG and SUB_LONG.
+
+2018-04-06 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ [windows, wince] Clean up legacy project files.
+
+ * builds/wince/vc2005-ce/freetype.vcproj,
+ builds/wince/vc2008-ce/freetype.vcproj,
+ builds/windows/vc2005/freetype.vcproj,
+ builds/windows/vc2008/freetype.vcproj,
+ builds/windows/visualce/freetype.vcproj,
+ builds/windows/visualce/freetype.dsp,
+ builds/windows/visualc/freetype.vcproj,
+ builds/windows/visualc/freetype.dsp: Remove per-file compile flags.
+
+2018-04-04 Werner Lemberg <wl@gnu.org>
+
+ [cff, type1] Sanitize `BlueFuzz' and `BlueShift'.
+
+ Reported as
+
+ https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=7371
+
+ * src/cff/cffload.c (cff_load_private_dict): Sanitize
+ `priv->blue_shift' and `priv->blue_fuzz' to avoid overflows later
+ on.
+
+ * src/type1/t1load.c (T1_Open_Face): Ditto.
+
+2018-04-04 Ben Wagner <bungeman@google.com>
+
+ * src/truetype/ttobjs.c (trick_names): Add 3 tricky fonts (#53554),
+ `DFHei-Md-HK-BF', `DFKaiShu-Md-HK-BF' and `DFMing-Bd-HK-BF'.
+ (tt_check_trickyness_sfnt_ids): Add checksums for 3 tricky fonts
+ in above.
+
+2018-04-01 Werner Lemberg <wl@gnu.org>
+
+ * builds/toplevel.mk (work): Use $(SEP).
+
+ This fixes the `make refdoc' using Cygwin: $(CAT) is `type' on this
+ platform, and this program only understands backslashes in paths.
+
+ Reported by Nikhil Ramakrishnan <ramakrishnan.nikhil@gmail.com>.
+
+2018-03-30 Werner Lemberg <wl@gnu.org>
+
+ [truetype] Fix memory leak (only if tracing is on).
+
+ * src/truetype/ttgxvar.c (TT_Get_MM_Var) [FT_DEBUG_LEVEL_TRACE}: Fix
+ it.
+
+2018-03-23 Ben Wagner <bungeman@google.com>
+
+ [sfnt] Correctly handle missing bitmaps in sbix format (#53404).
+
+ * src/sfnt/ttfsbit.c (tt_face_load_sbix_image): Fix return value.
+
+2018-03-23 Ben Wagner <bungeman@google.com>
+
+ [truetype] Fix advance of empty glyphs in bitmap fonts (#53393).
+
+ * src/truetype/ttgload.c (TT_Load_Glyph): Apply scaling to metrics
+ for empty bitmaps.
+
+2018-03-22 Werner Lemberg <wl@gnu.org>
+
+ Remove `ftlcdfil.c' and `ftfntfmt.c' from build files (#53415).
+
+ builds/amiga/makefile, builds/amiga/makefile.os4,
+ builds/amiga/smakefile, builds/mac/FreeType.m68k_cfm.make.txt,
+ builds/mac/FreeType.m68k_far.make.txt,
+ builds/mac/FreeType.ppc_carbon.make.txt,
+ builds/mac/FreeType.ppc_classic.make.txt,
+ builds/symbian/freetype.mmp, builds/wince/vc2005-ce/freetype.vcproj,
+ builds/wince/vc2008-ce/freetype.vcproj,
+ builds/windows/vc2005/freetype.vcproj,
+ builds/windows/vc2008/freetype.vcproj,
+ builds/windows/vc2010/freetype.vcxproj,
+ builds/windows/vc2010/freetype.vcxproj.filters,
+ builds/windows/visualc/freetype.dsp,
+ builds/windows/visualc/freetype.vcproj,
+ builds/windows/visualce/freetype.dsp,
+ builds/windows/visualce/freetype.vcproj, vms_make.com: Do it.
+
+2018-03-13 Werner Lemberg <wl@gnu.org>
+
+ * src/sfnt/ttcmap.c (tt_cmap2_validate): Fix potential numeric
+ overflow.
+
+2018-03-13 Werner Lemberg <wl@gnu.org>
+
+ Fix cmap format 2 handling (#53320).
+
+ The patch introduced for #52646 was not correct.
+
+ * src/sfnt/ttcmap.c (tt_cmap2_char_next): Adjust condition.
+
+2018-03-10 Nikolaus Waxweiler <madigens@gmail.com>
+
+ * CMakeLists.txt (BASE_SRCS): Update to changes from 2018-03-05.
+
+2018-03-09 Chun-wei Fan <fanc999@yahoo.com.tw>
+
+ * CMakeLists.txt [win32]: Allow MSVC DLL builds (#53287).
+
+ Do not limit DLL builds to MinGW, since we already have
+ `__declspec(dllexport)' directives in `ftconfig.h'.
+ Also suppress more warnings for POSIX functions.
+
+2018-03-08 Hugh McMaster <hugh.mcmaster@outlook.com>
+
+ Make installation of `freetype-config' optional (#53093).
+
+ * builds/unix/configure.raw: Add option `--enable-freetype-config'
+ and set `INSTALL_FT2_CONFIG'.
+ * builds/unix/unix-def.in (INSTALL_FT2_CONFIG): Define.
+ * builds/unix/install.mk (install): Handle it.
+
+2018-03-05 Werner Lemberg <wl@gnu.org>
+
+ Make `ftlcdfil.c' part of the `base' module.
+
+ `ftobjs.c' needs `ft_lcd_padding'.
+
+ Problem reported by duhuanpeng <548708880@qq.com>.
+
+ * modules.cfg (BASE_EXTENSIONS): Don't include `ftlcdfil.c'.
+
+ * src/base/ftbase.c: Include `ftlcdfil.c'.
+ * src/base/rules.mk (BASE_SRC): Add `ftlcdfil.c'.
+ * src/base/Jamfile (_sources): Adjusted.
+
+ * docs/INSTALL.ANY: Updated.
+
+2018-03-05 Werner Lemberg <wl@gnu.org>
+
+ Make `ftfntfmt.c' part of the `base' module.
+
+ `ftobjs.c' needs `FT_Get_Font_Format'.
+
+ Problem reported by duhuanpeng <548708880@qq.com>.
+
+ * modules.cfg (BASE_EXTENSIONS): Don't include `ftfntfmt.c'.
+
+ * src/base/ftbase.c: Include `ftfntfmt.c'.
+ * src/base/rules.mk (BASE_SRC): Add `ftfntfmt.c'.
+ * src/base/Jamfile (_sources): Adjusted.
+
+ * docs/INSTALL.ANY: Updated.
+
+2018-03-01 Werner Lemberg <wl@gnu.org>
+
+ * src/truetype/ttinterp.c (TT_RunIns): Fix tracing arguments.
+
+2018-02-23 Werner Lemberg <wl@gnu.org>
+
+ * builds/unix/configure.raw: Need HarfBuzz 1.3.0 or newer.
+
+ Problem reported by Alan Coopersmith <alan.coopersmith@oracle.com>.
+
+2018-02-17 Werner Lemberg <wl@gnu.org>
+
+ [sfnt] Prefer `CBDT'/`CBLC' over `glyf' table (#53154).
+
+2018-02-06 Werner Lemberg <wl@gnu.org>
+
+ [truetype] Integer overflow issues.
+
+ Reported as
+
+ https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=6027
+
+ * src/truetype/ttinterp.c (Ins_MSIRP, Ins_MIAP, Ins_MIRP): Use
+ SUB_LONG; avoid FT_ABS.
+
+2018-02-04 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ [unix] Use -fvisibility=hidden.
+
+ It is now widely recommended that ELF shared libraries hide symbols
+ except those with explicit __attribute__((visibility("default"))).
+ This is supported by all major compilers and should rather be an
+ option in libtool.
+
+ * builds/unix/configure.raw: Add -fvisibility=hidden to CFLAGS.
+ * builds/unix/ftconfig.in, builds/vms/ftconfig.h,
+ include/freetype/config/ftconfig.h (FT_EXPORT): Use visibility
+ attribute.
+
+2018-01-27 Werner Lemberg <wl@gnu.org>
+
+ [truetype] Better protection against invalid VF data.
+
+ Reported as
+
+ https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=5739
+
+ Bug introduced in commit 08cd62deedefe217f2ea50e392923ce8b5bc7ac7.
+
+ * src/truetype/ttgxvar.c (TT_Set_Var_Design): Always initialize
+ `normalizedcoords'.
+
+2018-01-27 Werner Lemberg <wl@gnu.org>
+
+ * src/truetype/ttinterp.c (Ins_GETVARIATION): Avoid NULL reference.
+
+ Reported as
+
+ https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=5736
+
+2018-01-27 Werner Lemberg <wl@gnu.org>
+
+ * src/truetype/ttgxvar.c (tt_set_mm_blend): Minor.
+
+2018-01-27 Werner Lemberg <wl@gnu.org>
+
+ [truetype] Better trace VF instances.
+
+ * src/truetype/ttgxvar.c (ft_var_to_normalized): Don't emit number
+ of coordinates.
+ (TT_Get_MM_Var): Trace instance indices names.
+ (TT_Set_Var_Design): Updated.
+
+2018-01-27 Werner Lemberg <wl@gnu.org>
+
+ [truetype] Beautify tracing of VF axis records.
+
+ * src/truetype/ttgxvar.c (TT_Get_MM_Var): Show axis records in a
+ table-like manner.
+
+2018-01-26 Ben Wagner <bungeman@google.com>
+
+ [truetype] Fix multiple calls of `FT_Get_MM_Var' (#52955).
+
+ * src/truetype/ttgxvar.c (TT_Get_MM_Var): Set
+ `face->blend->num_axis' in case we have to initialize the
+ `face->blend'.
+
+2018-01-23 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ [apinames] Anonymous version map for GNU linker.
+
+ * src/tools/apinames.c (PROGRAM_VERSION): Set to 0.3.
+ (OutputFormat): Add `OUTPUT_GNU_VERMAP'.
+ (names_dump): Handle it.
+ (usage): Updated.
+ (main): Handle new command line flag `-wL'.
+
+2018-01-21 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ [unix] Call libtool to clean up.
+
+ * builds/unix/install.mk (clean_project_unix, distclean_project_unix):
+ Use libtool.
+ * builds/freetype.mk: Minor.
+
+2018-01-18 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ * src/base/ftver.rc: Fix mingw-w64 compilation.
+
+2018-01-18 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ [build] Enable VERSIONINFO resource for Cygwin/MinGW.
+
+ * builds/unix/configure.raw: Check for resource compiler.
+ * builds/unix/unix-cc.in: Conditionally set up resource compiler.
+ * builds/freetype.mk: Add conditional rule for `ftver.rc'.
+ * src/base/ftver.rc: Copyright notice and year update.
+
+2018-01-18 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ [build] Move VERSIONINFO resource.
+
+ * builds/windows/vc2010/freetype.vcxproj: Updated.
+ * builds/windows/ftver.rc: Move file from here...
+ * src/base/ftver.rc: ... to here.
+
+2018-01-12 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ [build] Expand dllexport/dllimport to Cygwin/MinGW.
+
+ * include/freetype/config/ftconfig.h: Respect DLL_EXPORT,
+ s/_MSC_VER/_WIN32/.
+ * builds/unix/ftconfig.in: Replicate here.
+ * builds/vms/ftconfig.h: Replicate here.
+
+2018-01-12 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ [build] Improve and document MSVC build.
+
+ * include/freetype/config/ftconfig.h: Guard dllexport/dllimport
+ attributes with _DLL and FT2_DLLIMPORT.
+ * builds/windows/vc2010/index.html: Update documentation.
+
+2018-01-10 Steve Robinson <ssrobins@gmail.com>
+
+ * CMakeLists.txt [win32]: Suppress warnings for POSIX functions.
+
+2018-01-10 Ewald Hew <ewaldhew@gmail.com>
+
+ [psaux] Correctly handle Flex features (#52846).
+
+ * src/psaux/psintrp.c (cf2_interpT2CharString) <cf2_cmdVMOVETO,
+ cf2_cmdHMOVETO>: Do not move if doing Flex.
+
+2018-01-09 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ * builds/windows/vc2010/freetype.sln: Synchronize with the project.
+
+2018-01-08 Werner Lemberg <wl@gnu.org>
+
+ * Version 2.9 released.
+ =======================
+
+
+ Tag sources with `VER-2-9'.
+
+ * docs/VERSION.TXT: Add entry for version 2.9.
+
+ * README, Jamfile (RefDoc), builds/windows/vc2005/freetype.vcproj,
+ builds/windows/vc2005/index.html,
+ builds/windows/vc2008/freetype.vcproj,
+ builds/windows/vc2008/index.html,
+ builds/windows/vc2010/freetype.vcxproj,
+ builds/windows/vc2010/index.html,
+ builds/windows/visualc/freetype.dsp,
+ builds/windows/visualc/freetype.vcproj,
+ builds/windows/visualc/index.html,
+ builds/windows/visualce/freetype.dsp,
+ builds/windows/visualce/freetype.vcproj,
+ builds/windows/visualce/index.html,
+ builds/windows/ftver.rc,
+ builds/wince/vc2005-ce/freetype.vcproj,
+ builds/wince/vc2005-ce/index.html,
+ builds/wince/vc2008-ce/freetype.vcproj,
+ builds/wince/vc2008-ce/index.html: s/2.8.1/2.9/, s/281/29/.
+
+ * include/freetype/freetype.h (FREETYPE_MINOR): Set to 9.
+ (FREETYPE_PATCH): Set to 0.
+
+ * builds/unix/configure.raw (version_info): Set to 22:0:16.
+ * CMakeLists.txt (VERSION_PATCH): Set to 0.
+
+2018-01-07 Werner Lemberg <wl@gnu.org>
+
+ Add check for librt, needed for `ftbench' (#52824).
+
+ * builds/unix/configure.raw (LIB_CLOCK_GETTIME): Define; this will
+ hold `-lrt' if necessary.
+
+ * builds/unix/unix-cc.in (LIB_CLOCK_GETTIME): New variable.
+
+2018-01-07 Ewald Hew <ewaldhew@gmail.com>
+
+ [psaux] Fix Type 1 glyphs with too many stem hints.
+
+ According to the CFF specification, charstrings can have up to 96 stem
+ hints. Due to hint replacement routines in Type 1 charstrings, some
+ glyphs are rejected by the Adobe engine, which implements the above
+ limit. This fix turns off hinting for such glyphs.
+
+ * src/psaux/pshints.c (cf2_hintmap_build): Reset the error from calling
+ `cf2_hintmask_setAll' on a problematic Type 1 charstring and turn off
+ hinting.
+
+2018-01-06 Werner Lemberg <wl@gnu.org>
+
+ Add `FT_Done_MM_Var'.
+
+ This is necessary in case the application's memory routines differ
+ from FreeType. A typical example is a Python application on Windows
+ that calls FreeType compiled as a DLL via the `ctypes' interface.
+
+ * include/freetype/ftmm.h, src/base/ftmm.c (FT_Done_MM_Var): Declare
+ and define.
+
+ * docs/CHANGES: Updated.
+
+2018-01-03 Werner Lemberg <wl@gnu.org>
+
+ [truetype] Round offsets of glyph components only if hinting is on.
+
+ * src/truetype/ttgload.c (TT_Process_Composite_Component): Implement
+ it.
+
+2018-01-03 Werner Lemberg <wl@gnu.org>
+
+ * src/truetype/ttgxvar.c (ft_var_to_design): Remove dead code.
+
+ This is a better fix than the previous commit, which is now
+ reverted.
+
+2018-01-03 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ Move internal LCD-related declarations.
+
+ * include/freetype/ftlcdfil.h (ft_lcd_padding, ft_lcd_filter_fir):
+ Move from here...
+ * include/freetype/internal/ftobjs.h: ... to here.
+
+2018-01-03 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ * include/freetype/config/ftconfig.h (FT_EXPORT, FT_EXPORT_DEF)
+ [_MSC_VER]: Limit Visual C++ attributes.
+
+2018-01-03 Werner Lemberg <wl@gnu.org>
+
+ [truetype] Make blend/design coordinate round-tripping work.
+
+ Behdad reported that setting blend coordinates, then getting design
+ coordinates did incorrectly return the default instance's
+ coordinates.
+
+ * src/truetype/ttgxvar.c (tt_set_mm_blend): Fix it.
+
+2017-12-31 Werner Lemberg <wl@gnu.org>
+
+ * src/sfnt/ttcmap.c (tt_cmap2_char_next): Fix endless loop.
+
+ Reported as
+
+ https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=4838
+
+2017-12-31 Werner Lemberg <wl@gnu.org>
+
+ Synchronize other Windows project files.
+
+ * builds/windows/*: Add missing files.
+
+2017-12-31 Werner Lemberg <wl@gnu.org>
+
+ Update Visual C 2010 project files.
+
+ Problem reported by Hin-Tak.
+
+ * builds/windows/vc2010/freetype.vcxproj: Add files `ftbdf.c' and
+ `ftcid.c'.
+ Sort entries.
+ * builds/windows/vc2010/freetype.vcxproj.filter: Ditto.
+ Fix members of `FT_MODULE' group.
+
+2017-12-30 Werner Lemberg <wl@gnu.org>
+
+ * builds/vms/ftconfig.h: Synchronize with unix `ftconfig.in' file.
+
+2017-12-28 Werner Lemberg <wl@gnu.org>
+
+ * builds/unix/ftconfig.in: Synchronize with main `ftconfig.h' file.
+
+ Reported by Nikolaus.
+
+2017-12-27 Werner Lemberg <wl@gnu.org>
+
+ Fix compiler warnings.
+
+ * src/base/ftbitmap.c (ft_bitmap_assure_buffer): Make `pitch' and
+ `new_pitch' unsigned.
+
+ * src/base/ftpsprop.c: Include FT_INTERNAL_POSTSCRIPT_PROPS_H.
+
+2017-12-27 Werner Lemberg <wl@gnu.org>
+
+ Fixes for `make multi'.
+
+ * include/freetype/internal/ftpsprop.h: Use `FT_BASE_CALLBACK'.
+ (ps_property_get): Harmonize declaration with corresponding
+ function typedef.
+
+ * include/freety[e/internal/fttrace.h: Add `trace_psprops'.
+
+ * src/base/ftpsprop.c: Include necessary header files.
+ (FT_COMPONENT): Define.
+ (ps_property_set): Tag with `FT_BASE_CALLBACK_DEF'.
+ (ps_property_get): Tag with `FT_BASE_CALLBACK_DEF'.
+ Harmonize declaration with corresponding function typedef.
+
+2017-12-27 Werner Lemberg <wl@gnu.org>
+
+ Provide support for intra-module callback functions.
+
+ This is needed especially for `make multi' with C++.
+
+ * include/freetype/config/ftconfig.h (FT_BASE_CALLBACK,
+ FT_BASE_CALLBACK_DEF): New macros.
+
+2017-12-25 Ewald Hew <ewaldhew@gmail.com>
+
+ Move PostScript drivers' property handlers to `base'.
+
+ This reduces the amount of duplicated code across PostScript
+ drivers.
+
+ * src/cff/cffdrivr.c, src/cid/cidriver.c, src/type1/t1driver.c
+ ({cff,cid,t1}_property_{get,set}): Moved to...
+ * include/freetype/internal/ftpsprop.h: ...this new file.
+ (ps_property_{get,set}): New functions to replace moved ones.
+
+ * src/base/ftpsprop.c: New file that implements above functions.
+
+ * include/freetype/internal/internal.h
+ (FT_INTERNAL_POSTSCRIPT_PROPS_H): New macro.
+
+ * src/cff/cffdrivr.c, src/cid/cidriver.c, src/type1/t1driver.c:
+ Updated.
+
+ * src/base/Jamfile, src/base/rules.mk (BASE_SRC), src/base/ftbase.c:
+ Updated.
+
+2017-12-20 Werner Lemberg <wl@gnu.org>
+
+ Speed up FT_Set_Var_{Design,Blend}_Coordinates if curr == new.
+
+ We exit early if the current design or blend coordinates are
+ identical to the new ones.
+
+ * src/truetype/ttgxvar.c (tt_set_mm_blend, TT_Set_Var_Design):
+ Implement it, returning internal error code -1 if there will be no
+ variation change.
+
+ * src/type1/t1load.c (t1_set_mm_blend): Ditto.
+
+ * src/base/ftmm.c (FT_Set_Var_Design_Coordinates,
+ FT_Set_MM_Blend_Coordinates, FT_Set_Var_Blend_Coordinates): Updated.
+
+2017-12-18 Werner Lemberg <wl@gnu.org>
+
+ [sfnt] Fix charmap type 2 iterator (#52646).
+
+ The subsetted demo font of the report that exhibits the bug has a
+ very unusual type 2 cmap for Unicode(!): It contains only two
+ sub-headers, one for one-byte characters (covering the range 0x20 to
+ 0xFA), and a second one for higher byte 0x01 (just for character
+ code U+0131).
+
+ Before this commit, the iterator wasn't able to correctly handle a
+ sub-header for higher byte 0x01.
+
+ * src/sfnt/ttcmap.c (tt_cmap2_char_next): Fix character increment
+ for outer loop.
+
+2017-12-18 Matthias Clasen <matthias.clasen@gmail.com>
+
+ [truetype] Fix clamping, minor tracing code beautification.
+
+ * src/truetype/ttgxvar.c (ft_var_to_normalized): Trace number of
+ design coordinates.
+ Use clamped value.
+
+2017-12-18 Werner Lemberg <wl@gnu.org>
+
+ * src/*/*: Only use `ft_' and `FT_' variants of stdc library stuff.
+
+2017-12-18 Werner Lemberg <wl@gnu.org>
+
+ * src/truetype/ttgxvar.c (tt_face_vary_cvt): Add size guard (#52688).
+
+2017-12-18 Werner Lemberg <wl@gnu.org>
+
+ [truetype] Fix previous commit.
+
+ * src/truetype/ttgload.c (TT_Process_Simple_Glyph): Correctly handle
+ unhinted phantom points, which must be properly scaled.
+
+2017-12-18 Werner Lemberg <wl@gnu.org>
+
+ [truetype] Don't apply HVAR and VVAR deltas twice (#52683).
+
+ * src/truetype/ttgload.c (TT_Process_Simple_Glyph): Always adjust
+ `pp1' to `pp4', except if we have an HVAR and/or VVAR table.
+
+ * src/truetype/ttgxvar.c (TT_Vary_Apply_Glyph_Deltas): Handle
+ alternative code branch identically w.r.t. presence of an HVAR
+ and/or VVAR table.
+
+2017-12-17 Jonathan Kew <jfkthame@gmail.com>
+
+ [truetype] Correctly handle variation font phantom points (#52683).
+
+ * src/truetype/ttgxvar.c (TT_Vary_Apply_Glyph_Deltas): Fix phantom
+ point indices.
+
+2017-12-17 Jonathan Kew <jfkthame@gmail.com>
+
+ Fix incorrect advance width scaling (#52683).
+
+ * src/base/ftadvance.c (FT_Get_Advances): Always respect the
+ FT_LOAD_NO_SCALE flag if present.
+
+2017-12-16 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ * builds/windows/vc2010/freetype.vcxproj: AfterBuild copy.
+ * objs/.gitignore: Ignore almost everything.
+
+2017-12-11 Werner Lemberg <wl@gnu.org>
+
+ Fix compiler warning (#52640).
+
+ * src/base/ftbitmap.c (ft_bitmap_assure_buffer): Remove unused
+ variable.
+
+2017-12-08 Azzuro <azzuro@team-mediaportal.com>
+
+ * builds/windows/vc2010/freetype.vcxproj: Adjust output directory.
+
+ This allows builds with different configurations in parallel.
+
+2017-12-08 Werner Lemberg <wl@gnu.org>
+
+ Fix `make setup dos', second try (#52622).
+
+ * builds/detect.mk (dos_setup): Don't use literal `>' character at
+ all. Mixing the different escaping rules from make, dos, and
+ windows is too fragile.
+
+2017-12-08 Werner Lemberg <wl@gnu.org>
+
+ [docmaker] Fix code section parsing.
+
+ Stuff like
+
+ {
+ <bla>
+ }
+
+ confused the parser, which incorrectly treated `<bla>' as a markup
+ tag.
+
+ * src/tools/docmaker/content.py (ContentProcessor::process_content):
+ Apply `re_markup_tags' only outside of code sections.
+
+2017-12-08 Werner Lemberg <wl@gnu.org>
+
+ New `ftdriver.h' file, covering all driver modules.
+
+ This reduces redundancy and increases synergy; it also reduces the
+ number of header files.
+
+ * include/freetype/config/ftheader.h (FT_DRIVER_H): New macro.
+ (FT_AUTOHINTER_H, FT_CFF_DRIVER_H, FT_TRUETYPE_DRIVER_H,
+ FT_PCF_DRIVER_H, FT_TYPE1_DRIVER_H): Make them aliases to
+ FT_DRIVER_H.
+
+ * include/freetype/ftautoh.h, include/freetype/ftcffdrv.h,
+ include/freetype/ftpcfdrv.h, include/freetype/ftt1drv.h,
+ include/freetype/ftttdrv.h: Replaced with...
+ * include/freetype/ftdriver.h: ...this new file.
+ (FT_CFF_HINTING_ADOBE, FT_T1_HINTING_ADOBE): Renamed to...
+ (FT_HINTING_ADOBE): ... this new macro.
+ (FT_CFF_HINTING_FREETYPE, FT_T1_HINTING_FREETYPE): Renamed to...
+ (FT_HINTING_FREETYPE): ... this new macro.
+
+ * src/*/*: Updated accordingly.
+
+2017-12-08 Werner Lemberg <wl@gnu.org>
+
+ Move `ftdriver.h' to `ftdrv.h'.
+
+ * include/freetype/internal/ftdriver.h: Renamed to...
+ * include/freetype/internal/ftdrv.h: ... this name.
+
+ * include/freetype/internal/internal.h (FT_INTERNAL_DRIVER_H):
+ Updated.
+
+2017-12-08 Werner Lemberg <wl@gnu.org>
+
+ Fix access to uninitalized memory (#52613).
+
+ Also reported as
+
+ https://bugs.chromium.org/p/chromium/issues/detail?id=791317
+
+ * src/base/ftbitmap.c (ft_bitmap_assure_buffer): If increasing the
+ bitmap size needs a larger bitmap buffer, assure that the new memory
+ areas are initialized also.
+
+2017-12-08 Werner Lemberg <wl@gnu.org>
+
+ Fix `make setup dos' (#52622).
+
+ * builds/detect.mk (dos_setup): Properly escape literal `>'
+ character.
+
+2017-12-07 Werner Lemberg <wl@gnu.org>
+
+ Fix C++ compilation.
+
+ * src/psaux/psauxmod.h: Use FT_CALLBACK_TABLE macro where necessary.
+
+ * src/smooth/ftsmooth.c (ft_smooth_render_generic): Fix warning.
+
+2017-12-07 Werner Lemberg <wl@gnu.org>
+
+ Fix `make multi'.
+
+ * include/freetype/internal/fttrace.h: Remove unused tracing macros.
+ s/pshalgo2/pshalgo/.
+ Add `trace_cffdecode'.
+ * src/pshinter/pshalgo.c (FT_COMPONENT): Updated.
+
+ * src/cff/cffload.c: Include FT_INTERNAL_POSTSCRIPT_AUX_H.
+ * src/cff/cffobjs.c: Include FT_SERVICE_METRICS_VARIATIONS_H and
+ FT_SERVICE_CFF_TABLE_LOAD_H.
+
+ * src/cid/cidriver.c: Include FT_INTERNAL_POSTSCRIPT_AUX_H.
+
+ * src/psaux/cffdecode.c: Include FT_FREETYPE_H and
+ FT_INTERNAL_DEBUG_H.
+ (FT_COMPONENT): Define.
+ * src/psaux/cffdecode.h: Include FT_INTERNAL_POSTSCRIPT_AUX_H.
+ * src/psaux/psauxmod.h: Include FT_INTERNAL_POSTSCRIPT_AUX_H.
+ Declare `cff_builder_funcs' and `ps_builder_funcs'.
+ * src/psaux/psft.c: Include `psobjs.h' and `cffdecode.h'.
+ * src/psaux/psobjs.c : Include `psauxmod.h'.
+
+2017-12-07 Werner Lemberg <wl@gnu.org>
+
+ * include/freetype/config/ftheader.h: Some clean-up.
+
+ This commit removes documentation of deprecated macros and does some
+ minor streamlining.
+
+2017-12-06 Werner Lemberg <wl@gnu.org>
+
+ * builds/symbian/bld.inf: Updated.
+
+2017-12-06 Werner Lemberg <wl@gnu.org>
+
+ New header file `ftparams.h' that collects all parameter tags.
+
+ * include/freetype/config/ftheader.h (FT_PARAMETER_TAGS_H): New
+ macro.
+ (FT_TRUETYPE_UNPATENTED_H, FT_UNPATENTED_HINTING_H): Define it to
+ `ftparams.h'.
+
+ * include/freetype/ftautoh.h, include/freetype/ftcffdrv.h,
+ include/freetype/ftincrem.h, include/freetype/ftlcdfil.h,
+ include/freetype/ftsnames.h, include/freetype/ftt1drv.h: Include
+ FT_PARAMETER_TAGS_H.
+ Move FT_PARAM_TAG_XXX definitions to...
+ * include/freetype/ftparams.h: ...this new file.
+
+ * include/freetype/ttunpat.h: Remove. No longer needed.
+
+2017-12-05 Werner Lemberg <wl@gnu.org>
+
+ Improve tracing messages by using singular and plural forms.
+
+ * src/*/*.c: Implement it.
+
+2017-12-04 Werner Lemberg <wl@gnu.org>
+
+ [truetype] Allow shared points in `cvar' table (#52532).
+
+ * src/truetype/ttgxvar.c (tt_face_vary_cvt): Implement it by copying
+ and adjusting the corresponding code from
+ `TT_Vary_Apply_Glyph_Deltas'.
+
+2017-11-28 Werner Lemberg <wl@gnu.org>
+
+ [truetype] Improving tracing of composite glyphs.
+
+ * src/truetype/ttgload.c (TT_Load_Composite_Glyph)
+ [FT_DEBUG_LEVEL_TRACE]: Show composite glyph information.
+
+2017-11-27 Werner Lemberg <wl@gnu.org>
+
+ [type1] Allow (again) `/Encoding' with >256 elements (#52464).
+
+ In version 2.6.1, this has been disallowed to better reject
+ malformed fonts; however, this restriction was too strong. This
+ time, we only take the first 256 elements into account, since
+ encoding arrays are always accessed with a 8bit integer, according
+ to the PostScript Language Reference.
+
+ * src/type1/t1load.c (parse_encoding): Implement it.
+
+2017-11-27 Jan Alexander Steffens (heftig) <jan.steffens@gmail.com>
+
+ Fix last commit (#52522).
+
+ * builds/freetype.mk: Set `FT_OPTION_H' and `FTOPTION_FLAG'
+ properly if we have `ftoption.h' in `BUILD_DIR'.
+
+2017-11-24 Werner Lemberg <wl@gnu.org>
+
+ [unix] Install a massaged `ftoption.h' file (#51780).
+
+ * builds/unix/configure.raw (ftoption_set, ftoption_unset): New
+ auxiliary functions to construct...
+ (FTOPTION_H_SED): ... this new variable.
+ Apply it as a sed argument while copying `ftoption.h' to the
+ `builds/unix' directory (using `AC_CONFIG_FILES').
+ Simplify code of test that checks cpp's computation of bit length
+ (the test previously created an empty `ftoption.h' file and deleted
+ it immediately afterwards); without this change, it can happen on my
+ GNU/Linux box that `configure's execution of `config.status' doesn't
+ create `ftoption.h' (no idea why this happens).
+
+ * builds/unix/install.mk (install): Install
+ `builds/unix/ftoption.h'.
+
+ * builds/unix/unix-def.in (DISTCLEAN): Updated.
+
+ * builds/unix/.gitignore: Updated.
+
+2017-11-23 Tor Andersson <tor.andersson@artifex.com>
+
+ Silence unused function warnings (#52465).
+
+ Some static function declarations cause unused function warnings if
+ certain config options are turned off via `ftoption.h'.
+
+ * src/base/ftbase.h, src/base/ftrfork.c, src/sfnt/ttbdf.h,
+ src/truetype/ttgxvar.h: Add #ifdef guards around these sections.
+
+2017-11-22 Ewald Hew <ewaldhew@gmail.com>
+
+ * src/psaux/psft.c (cf2_setGlyphWidth): Check format before setting.
+
+ Reported as
+
+ https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=4377
+
+2017-11-22 Ewald Hew <ewaldhew@gmail.com>
+
+ [psaux] Fix CFF advance widths. (#52466)
+
+ Glyph advance widths were being written to the new `PS_Decoder' but not
+ saved to the underlying format specific decoder. This caused pure CFF
+ fonts to have bad advance width.
+
+ * include/freetype/internal/psaux.h (PS_Decoder): Change `glyph_width'
+ field to pointer.
+ Remove unused fields.
+ * src/psaux/psobjs.c (ps_decoder_init): Change `glyph_width' from copy
+ to reference.
+ Remove unused.
+ * src/psaux/psft.c (cf2_setGlyphWidth): Update code.
+
+2017-11-15 Vlad Tsyrklevich <vtsyrklevich@google.com>
+
+ * include/freetype/ftrender.h: Fix `FT_Renderer_RenderFunc' type.
+
+2017-11-14 Nikolaus Waxweiler <madigens@gmail.com>
+
+ Use Adobe hinting engine for `light' hinting of both CFF and Type 1.
+
+ Since Ewald Hew factored the Adobe hinting engine out of the CFF
+ driver code, we can now use it on Type 1 (and CID) font formats, as
+ both have the same hinting philosophy.
+
+ This change activates the Adobe hinter when in LIGHT mode, and
+ therefore always unless explicitly asking for the auto-hinter. This
+ makes LIGHT behavior consistent with CFF fonts. As of this commit,
+ the hinting engine table looks as follows.
+
+ LIGHT NORMAL
+ -------------------------
+ TrueType Auto v40
+ CFF Adobe Adobe
+ Type 1 Adobe Adobe
+
+2017-11-10 Yuri Levchenko <yuri_levchenko@boolat.com>
+
+ * CMakeLists.txt: Add `DISABLE_FORCE_DEBUG_PREFIX' option.
+
+2017-11-06 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ * src/base/ftobjs.c (FT_Load_Glyph): Relocate condition.
+
+2017-11-06 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ * src/smooth/ftgrays.c (gray_set_cell): Fix uninitialized variables.
+
+2017-11-03 Ewald Hew <ewaldhew@gmail.com>
+
+ [psaux] Fix PostScript interpreter rewinding in Type 1 mode. (#52251)
+
+ The interpreter in Type 1 mode rewinds the charstring after collecting
+ all hints for building the initial hintmap (commit d52dd7f). However,
+ some charstrings use `endchar' in a final subroutine call, rewinding to
+ the start of that subroutine, and only a small section of the actual
+ glyph is drawn.
+
+ * src/psaux/psintrp.c (cf2_interpT2CharString) <cf2_cmdENDCHAR>:
+ Ensure we are on the top level charstring before rewinding.
+
+2017-11-03 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
+ [truetype] Add more tricky fonts.
+
+ See the report by Yang Yinsen.
+ https://lists.gnu.org/archive/html/freetype-devel/2017-11/msg00000.html
+
+ * src/truetype/ttobjs.c (trick_names): Add `DFGothic-EB',
+ `DFGyoSho-Lt', `DFHSGothic-W5', `DFHSMincho-W3' and `DFHSMincho-W7'.
+ (tt_check_trickyness_sfnt_ids): Add checksums for DFGothic-EB,
+ DFGyoSho-Lt, DFHSGothic-W5, DFHSMincho-W3 and DFHSMincho-W7. Also
+ add checksums for DLCLiShu and DLCHayBold which their family names
+ were already listed but their checksums were previously unknown.
+
+2017-11-01 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ [smooth] Fix complex rendering at high ppem.
+
+ We used to split large glyphs into horizontal bands and continue
+ bisecting them still horizontally if that was not enough. This is
+ guaranteed to fail when a single scanline cannot fit into the
+ rendering memory pool. Now we bisect the bands vertically so that
+ the smallest unit is a column of the band height, which is guranteed
+ to fit into memory.
+
+ * src/smooth/ftgrays.c (gray_convert_glyph): Implement it.
+
+2017-10-20 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ [smooth] Improve complex rendering at high ppem.
+
+ At large sizes almost but not exactly horizontal segments can quickly
+ drain the rendering pool. This patch at least avoids filling the pool
+ with trivial cells. Beyond this, we can only increase the pool size.
+
+ Reported, analyzed, and tested by Colin Fahey.
+
+ * src/smooth/ftgrays.c (gray_set_cell): Do not record trivial cells.
+
+2017-10-20 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ [base] Improve tracing in FT_Load_Glyph, FT_*_Size.
+
+ * src/base/ftobjs.c (FT_Load_Glyph): Tag tracing messages with
+ function name, glyph index, and load flags.
+ (FT_Select_Metrics, FT_Request_Metrics): Remove all tracing.
+ (FT_Select_Size, FT_Request_Size): Improve tracing.
+
+2017-10-18 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ [base] Improve tracing in FT_Render_Glyph.
+
+ * src/base/ftobjs.c (FT_Render_Glyph_Internal): Add total coverage
+ calculations and downgrade Netpbm dump to bitmap:7.
+
+2017-10-15 Ewald Hew <ewaldhew@gmail.com>
+
+ [cff] Fix segfault on missing `psaux' (#52218)
+
+ * src/cff/cffload.c (cff_done_blend): Add a check for possible nullptr.
+
+ * modules.cfg: Update dependency list.
+
+2017-10-15 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ [base, cff] Fix MSVC warnings.
+
+ * src/base/ftobjs.c (FT_New_Library): C4702: unreachable code.
+ (ft_glyphslot_preset_bitmap): C4244: possible loss of data.
+ * src/cff/cffload.c (cff_blend_doBlend): C4244: possible loss of data.
+ Turn `sum' into unsigned.
+
+2017-10-14 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ [base] Netpbm image tracing.
+
+ * src/base/ftobjs.c (FT_Load_Glyph): Trace bitmap size.
+ (FT_Render_Glyph_Internal): Trace bitmap in Netpbm format.
+
+ * src/smooth/ftgrays.c (gray_sweep): Sweep remnants of span tracing.
+
+2017-10-14 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ * builds/windows/ftdebug.c (FT_Message): Print to stderr.
+ * builds/wince/ftdebug.c (FT_Message): Ditto.
+
+2017-10-14 Behdad Esfahbod <behdad@behdad.org>
+
+ [afshaper] Delay creating `hb_set' objects until needed.
+
+ In runs on Noto Naskh Arabic, this results in 89 sets created
+ instead of 340 before. Makes auto-hinter setup with HarfBuzz
+ enabled 20% to 30% faster.
+
+ * src/autofit/afshaper.c (af_shaper_get_coverage): Implement it.
+
+2017-10-12 Ewald Hew <ewaldhew@gmail.com>
+
+ [type1, cid] Add hinting engine switch.
+
+ Implement property service in `type1' and `cid' drivers to allow
+ switching between FreeType or Adobe hinting engine when both are
+ available.
+
+ * src/cid/cidriver.c (cid_property_{set,get}, cid_services),
+ src/type1/t1driver.c (t1_property_{set,get}, t1_services): Add
+ Properties service.
+
+ * src/cid/cidobjs.c (cid_driver_init), src/type1/t1objs.c
+ (T1_Driver_Init): Add default property values.
+
+2017-10-12 Ewald Hew <ewaldhew@gmail.com>
+
+ Add T1_CONFIG_OPTION_OLD_ENGINE configuration option.
+
+ This controls whether the old Type 1 engine gets compiled into FreeType.
+ It is disabled by default.
+
+ * devel/ftoption.h, include/freetype/config/ftoption.h
+ (T1_CONFIG_OPTION_OLD_ENGINE): New macro.
+
+ * include/freetype/internal/psaux.h (PS_Decoder): Remove unused field.
+ * include/freetype/internal/psaux.h, src/cid/cidgload.c
+ (cid_load_glyph), src/psaux/psauxmod.c, src/psaux/psobjs.c
+ (ps_builder_add_point), src/psaux/t1decode.c
+ (t1_lookup_glyph_by_stdcharcode, t1_decoder_parse_glyph,
+ t1operator_seac, t1_decoder_parse_charstrings), src/psaux/t1decode.h,
+ src/type1/t1gload.c (T1_Parse_Glyph_And_Get_Char_String): Surround
+ relevant code with macro.
+ Minor code changes.
+
+2017-10-12 Ewald Hew <ewaldhew@gmail.com>
+
+ Extract width parsing from Type 1 parser.
+
+ Duplicate the fast advance width calculations from the old parser.
+ This is to facilitate adding options for compiling out the old parser.
+
+ * src/psaux/t1decode.{c,h} (t1_decoder_parse_metrics): New function.
+ * include/freetype/internal/psaux.h (T1_Decoder_Funcs): New entry
+ `parse_metrics'.
+ * src/psaux/psauxmod.c: Set the new entry.
+
+ * src/type1/t1gload.c (T1_Parse_Glyph_And_Get_Char_String),
+ src/cid/cidgload.c (cid_load_glyph): Separate
+ conditional for selecting engine.
+
+2017-10-09 Werner Lemberg <wl@gnu.org>
+
+ * src/base/ftoutln.c (FT_Outline_Translate): Fix integer overflow.
+
+ Reported as
+
+ https://bugs.chromium.org/p/chromium/issues/detail?id=772775
+
+2017-10-08 Werner Lemberg <wl@gnu.org>
+
+ * src/base/ftobjs.c (ft_glyphslot_preset_bitmap): Integer overflows.
+
+ Reported as
+
+ https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=3579
+
+2017-10-07 Werner Lemberg <wl@gnu.org>
+
+ [sfnt] Adjust behaviour of PS font names for variation fonts.
+
+ * src/sfnt/sfdriver.c (sfnt_get_var_ps_name): Use a named instance's
+ PS name only if no variation is applied.
+
+2017-10-07 Werner Lemberg <wl@gnu.org>
+
+ [cff, truetype] Adjust behaviour of named instances.
+
+ This commit completely separates the interaction between named
+ instances and variation functions. In particular, resetting the
+ variation returns to the current named instance (if set) and not to
+ the base font.
+
+ As a side effect, variation functions no longer change the named
+ instance index.
+
+ * src/cff/cffobjs.c (cff_face_init): Use MM service's `set_instance'
+ function.
+ Also apply `MVAR' table to named instances.
+
+ * src/truetype/ttgxvar.c (TT_Get_MM_Var): Add cast.
+ (tt_set_mm_blend): No longer check whether requested variation
+ coincides with a named instance.
+ (TT_Set_Var_Design): Use current named instance for default
+ coordinates.
+ * src/truetype/ttobjs.c (tt_face_init): Use `TT_Set_Named_Instance'.
+
+2017-10-07 Werner Lemberg <wl@gnu.org>
+
+ Make `FT_Set_Named_Instance' work.
+
+ * src/cff/cffdrivr.c (cff_set_instance): New function.
+ (cff_service_multi_masters): Register it.
+
+ * src/truetype/ttgxvar.c (TT_Set_Named_Instance): New function.
+ * src/truetype/ttgxvar.h: Updated.
+ * src/truetype/ttdriver.c (tt_service_gx_multi_masters): Register
+ it.
+
+ * src/type1/t1load.c (T1_Reset_MM_Blend): New function.
+ * src/type1/t1load.h: Updated.
+ * src/type1/t1driver.c (t1_service_multi_masters): Register it.
+
+2017-10-07 Werner Lemberg <wl@gnu.org>
+
+ Make `FT_FACE_FLAG_VARIATION' work.
+
+ * include/freetype/internal/tttypes.h (TT_Face): Remove
+ `is_default_instance'; this can be replaced with a combination of
+ `FT_IS_VARIATION' and `FT_IS_INSTANCE'.
+
+ * src/cff/cffdrivr.c (cff_get_advances): Updated.
+
+ * src/sfnt/sfdriver.c (sfnt_get_ps_name), src/sfnt/sfobjs.c
+ (sfnt_init_face): Updated.
+
+ * src/truetype/ttdriver.c (tt_get_advances), src/truetype/ttgload.c
+ (TT_Process_Simple_Glyph, load_truetype_glyph, IS_DEFAULT_INSTANCE),
+ src/truetype/ttgxvar.c (tt_set_mm_blend): Updated.
+ * src/truetype/ttgxvar.c (TT_Set_MM_Blend, TT_Set_Var_Design):
+ Handle `FT_FACE_FLAG_VARIATION'.
+
+ * src/type1/t1load.c (T1_Set_MM_Blend, T1_Set_MM_Design): Handle
+ `FT_FACE_FLAG_VARIATION'.
+
+2017-10-07 Werner Lemberg <wl@gnu.org>
+
+ New function `FT_Set_Named_Instance'.
+
+ No effect yet.
+
+ * src/base/ftmm.c (FT_Set_Named_Instance): New function.
+
+ * include/freetype/ftmm.h: Updated.
+
+2017-10-07 Werner Lemberg <wl@gnu.org>
+
+ Add macros for checking whether a font variation is active.
+
+ * include/freetype/freetype.h (FT_FACE_FLAG_VARIATION,
+ FT_IS_VARIATION): New macros.
+ No effect yet.
+
+2017-10-07 Werner Lemberg <wl@gnu.org>
+
+ Add framework for setting named instance in MM service.
+
+ * include/freetype/internal/services/svmm.h (FT_Set_Instance_Func):
+ New function typedef.
+ (MultiMasters): Add `set_instance' member.
+ (FT_DEFINE_SERVICE_MULTIMASTERSREC): Updated.
+
+ * src/cff/cffdrivr.c (cff_service_multi_masters),
+ src/truetype/ttdriver (tt_service_gx_multi_masters),
+ src/type1/t1driver.c (t1_service_multi_masters): Updated.
+
+2017-10-07 Werner Lemberg <wl@gnu.org>
+
+ [type1] Minor code shuffling.
+
+ * src/type1/t1load.c (T1_Set_MM_Blend): Make it a wrapper of...
+ (t1_set_mm_blend): ...this new function.
+ (T1_Set_MM_Design): Use `t1_set_mm_blend'.
+
+2017-10-05 Werner Lemberg <wl@gnu.org>
+
+ * src/base/ftobjs.c (ft_glyphslot_preset_bitmap): Fix integer
+ overflow.
+
+ Reported as
+
+ https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=3539
+
+2017-10-05 Werner Lemberg <wl@gnu.org>
+
+ Fix compiler warnings.
+
+ * src/cff/cffdrivr.c (cff_ps_get_font_extra): Avoid code that relies
+ on numeric overflow.
+ Add cast.
+
+ * src/smooth/ftsmooth.c (ft_smooth_render_generic): Fix variable
+ types, add cast.
+
+2017-10-04 John Tytgat <John.Tytgat@esko.com>
+
+ [cff] Add support for `FSType'.
+
+ * include/freetype/internal/cfftypes.h (CFF_FontRec): Add
+ `font_extra' entry.
+
+ * src/cff/cffdrivr.c (cff_ps_get_font_extra): New function to
+ retrieve FSType info from the embedded PostScript data.
+ (cff_service_ps_info): Register function.
+
+ * src/cff/cffload.c (cff_font_done): Free `font_extra'.
+
+2017-09-30 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ Signedness fixes in bitmap presetting.
+
+ Reported as
+
+ https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=3514.
+
+ * src/raster/ftrend1.c (ft_raster1_render): Explicitly signed height.
+ * src/smooth/ftsmooth.c (ft_smooth_render_generic): Ditto.
+ * src/base/ftobjs.c (ft_glyphslot_preset_bitmap): Explicitly unsigned
+ subtraction.
+
+2017-09-29 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ Bitmap metrics presetting [2/2].
+
+ * src/base/ftobjs.c (FT_Load_Glyph): Preset the bitmap metrics when
+ appropriate but `FT_Render_Glyph' is not called.
+ * include/freetype/freetype.h (FT_GlyphSlotRec): Document the change.
+
+2017-09-28 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ [smooth, raster] Miscellaneous cleanups.
+
+ * src/raster/ftrend1.c (ft_raster1_render): Clean up the exit.
+ * src/smooth/ftsmooth.c (ft_smooth_render_generic): Reduce
+ translations and clean up the exit.
+ (ft_smooth_render_lcd, ft_smooth_render_lcd): Remove unused `error'.
+
+2017-09-28 Ben Wagner <bungeman@google.com>
+
+ [truetype] Really, really fix #52082.
+
+ * src/truetype/ttinterp.c (Ins_MDRP): Correct conditional.
+
+2017-09-28 Werner Lemberg <wl@gnu.org>
+
+ * src/psaux/psintrp.c (cf2_doStems): Fix integer overflow.
+
+ Reported as
+
+ https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=3510
+
+2017-09-28 Ewald Hew <ewaldhew@gmail.com>
+
+ * src/cid/cidgload.c (cid_slot_load_glyph): Fix memory leak.
+
+ Reported as
+
+ https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=3489
+
+2017-09-28 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ Bitmap metrics presetting [1/2].
+
+ This mainly just extracts the code for presetting the bitmap metrics
+ from the monochrome, grayscale, and LCD renderers into a separate
+ function.
+
+ * src/base/ftobjs.c (ft_glyphslot_preset_bitmap): New function that
+ calculates prospective bitmap metrics for the given rendering mode.
+ * include/freetype/internal/ftobjs.h (ft_glyphslot_preset_bitmap):
+ Declare it.
+
+ * src/base/ftlcdfil.c (ft_lcd_padding): New helper function that adds
+ padding to CBox taking into account pecularities of LCD rendering.
+ * include/freetype/ftlcdfil.h (ft_lcd_padding): Declare it.
+
+ * src/raster/ftrend1.c (ft_raster1_render): Reworked to use
+ `ft_glyphslot_preset_bitmap'.
+ * src/smooth/ftsmooth.c (ft_smooth_render_generic): Ditto.
+ (ft_smooth_render_lcd, ft_smooth_render_lcd): The pixel_mode setting
+ is moved to `ft_glyphslot_preset_bitmap'.
+
+2017-09-28 Ewald Hew <ewaldhew@gmail.com>
+
+ [psaux] Fix compiler warning.
+
+ * src/psaux/pshints.c (cf2_hintmap_dump): Add switch for tracing
+ code.
+
+2017-09-27 Werner Lemberg <wl@gnu.org>
+
+ * src/sfnt/ttload.c (tt_face_load_font_dir): Fix compiler warning.
+
+2017-09-25 Werner Lemberg <wl@gnu.org>
+
+ [psaux] Fix compiler warnings.
+
+ * src/psaux/psft.c (cf2_initLocalRegionBuffer): Remove redundant
+ test.
+
+ * src/psaux/psintrp.c (cf2_interpT2CharString)
+ <cf2_escCALLOTHERSUBR>: Add casts.
+
+ * src/psaux/psobjs.c (ps_decoder_init): Add cast.
+
+2017-09-25 Ewald Hew <ewaldhew@gmail.com>
+
+ [psaux] Minor fixes.
+
+ * include/freetype/internal/psaux.h, src/psaux/psobjs.{c,h}:
+ Rearrange `ps_builder_init' arguments to conventional order.
+
+ * src/psaux/psft.c (cf2_decoder_parse_charstrings): Add a check and
+ notice for `SubFont' in Type 1 mode.
+
+2017-09-25 Ewald Hew <ewaldhew@gmail.com>
+
+ [psaux] Move `psdecode' into `psobjs'.
+
+ As the former only contains a single procedure, move it into
+ `psobjs' for simplicity. Also change the parameter order to the
+ conventional one.
+
+ * src/psaux/psdecode.c (ps_decoder_init): Moved to...
+ * src/psaux/psobjs.c: ...Here.
+ * src/psaux/psdecode.h, src/psaux/psobjs.h: Ditto.
+
+ * include/freetype/internal/psaux.h (PSAux_ServiceRec): Update
+ `ps_decoder_init' function signature.
+
+ * src/cff/cffgload.c, src/cid/cidgload.c, src/type1/t1gload.c:
+ Update calls.
+
+ * src/psaux/psaux.c, src/psaux/psauxmod.c: Update includes.
+
+ * src/psaux/Jamfile (_sources), src/psaux/rules.mk (PSAUX_DRV_SRC):
+ Update file references.
+
+2017-09-25 Ewald Hew <ewaldhew@gmail.com>
+
+ [psaux] Fix Type 1 hinting.
+
+ Type 1 hinting breaks sometimes when mid-charstring hints should
+ have been in the initial hintmap. This fix adds a preprocessing
+ pass that reads all hints and builds the correct initial hintmap
+ first, before proceeding to build the glyph outline.
+
+ * src/psaux/psintrp.c (cf2_interpT2CharString): New
+ `initial_map_ready' boolean flag.
+ Ignore outline commands and hint changes on first pass.
+ <cf2_cmdENDCHAR>: Add section to build hintmap and rewind.
+
+2017-09-25 Ewald Hew <ewaldhew@gmail.com>
+
+ [psaux] Add tracing for hints.
+
+ * src/psaux/pshints.c (cf2_hintmap_dump): New function.
+ (cf2_hintmap_insertHint): Trace incoming and inserted hints.
+ (cf2_hintmap_build): Dump hintmap before and after hint adjustment.
+
+2017-09-25 Ewald Hew <ewaldhew@gmail.com>
+
+ [psaux] Minor fixes.
+
+ * src/psaux/psintrp.c (cf2_interpT2CharString): Fix check for pop
+ results.
+ s/font->decoder/decoder/ where necessary.
+ <cf2_cmdHSTEM, cf2_cmdVSTEM, cf2_escHSTEM3, cf2_escVSTEM3>: Use
+ offset parameter in `cf2_doStems' instead of doing correction for
+ left-sidebearing.
+
+2017-09-25 Ewald Hew <ewaldhew@gmail.com>
+
+ [cid] Use the new engine.
+
+ * src/cid/cidgload.c: Update includes.
+ (cid_load_glyph, cid_slot_load_glyph): Implement changes to glyph
+ loading code as with `type1' module.
+
+2017-09-25 Ewald Hew <ewaldhew@gmail.com>
+
+ [cid] Add Adobe engine configuration.
+
+ This is similar to what was done in the `type1' module.
+
+ * src/cid/cidriver.c (t1cid_driver_class): Update declaration.
+ * src/cid/cidobjs.c: Include FT_TYPE1_DRIVER_H.
+ (cid_driver_init): Update code.
+
+2017-09-25 Ewald Hew <ewaldhew@gmail.com>
+
+ [psaux] Change subfont synthesis for CID fonts.
+
+ Change `t1_make_subfont' to take in the Private dict record as an
+ argument. This is because Type 1 and CID font records in FreeType
+ have this in different places.
+
+ * src/psaux/psobjs.c (t1_make_subfont): Change `T1_Face' to
+ `FT_Face' so that CID is also accepted.
+ Take `PS_Private' as an argument and let caller figure out where the
+ Private dict actually is.
+ Update references.
+
+ * include/freetype/internal/psaux.h, src/psaux/psobjs.h: Update
+ declaration.
+
+ * src/type1/t1gload.c (T1_Parse_Glyph_And_Get_Char_String): Update
+ call.
+
+2017-09-25 Ewald Hew <ewaldhew@gmail.com>
+
+ [type1] Switch to Adobe engine.
+
+ * src/type1/t1objs.c (T1_Driver_Init): Set default to Adobe engine.
+
+2017-09-25 Ewald Hew <ewaldhew@gmail.com>
+
+ [psaux] Extend Adobe interpreter (seac).
+
+ This concludes the changes needed to add Type 1 support.
+
+ * src/psaux/psintrp.c: Update includes.
+ (cf2_interpT2CharString) <cf2_escSEAC>: Implement this similarly to
+ implied seac for CFF.
+
+ * src/psaux/t1decode.c (t1_lookup_glyph_by_stdcharcode_ps): New
+ function to look up the glyph index.
+
+ * src/psaux/psft.c (cf2_getT1SeacComponent,
+ cf2_freeT1SeacComponent): New functions to get the charstrings for
+ seac components.
+
+ * src/psaux/t1decode.h, src/psaux/psft.h: Update declarations.
+
+2017-09-25 Ewald Hew <ewaldhew@gmail.com>
+
+ [psaux] Extend Adobe interpreter (flex in callothersubr).
+
+ * src/psaux/psintrp.c (cf2_interpT2CharString)
+ <cf2_escCALLOTHERSUBR>: Fix Flex feature handling (OtherSubrs 0, 1,
+ 2).
+ <cf2_cmdRMOVETO>: Do not actually move the `glyphPath' while doing
+ flex. This is to avoid closing the current contour.
+
+2017-09-25 Ewald Hew <ewaldhew@gmail.com>
+
+ [psaux] Extend Adobe interpreter (callothersubr).
+
+ * src/psaux/psintrp.c (cf2_interpT2CharString)
+ <cf2_escCALLOTHERSUBR>: Copy code from
+ `t1_decoder_parse_charstrings' (in `t1decode.c').
+ OtherSubr 3 (change hints) should reset the hintmask, so that the
+ new hints are applied.
+ Fix function calls and stack access.
+
+2017-09-25 Ewald Hew <ewaldhew@gmail.com>
+
+ [psaux] Extend Adobe interpreter (pop).
+
+ * src/psaux/psintrp.c (cf2_interpT2CharString): Change how unhandled
+ OtherSubr results are stored. Implement the PostScript stack using
+ an array.
+ <cf2_escPOP>: Ensure that the stack is not cleared after getting
+ `OtherSubr' results.
+ Fix stack access.
+
+2017-09-25 Ewald Hew <ewaldhew@gmail.com>
+
+ [psaux] Extend Adobe interpreter (callsubr).
+
+ * src/psaux/psintrp.c (cf2_interpT2CharString) <cf2_cmdCALLSUBR>:
+ Type 1 mode.
+
+ * src/psaux/psft.c (cf2_initLocalRegionBuffer): Add Type 1 mode.
+
+2017-09-25 Ewald Hew <ewaldhew@gmail.com>
+
+ [psaux] Extend Adobe interpreter (div, four-byte numbers).
+
+ * src/psaux/psintrp.c (cf2_interpT2CharString) <cf2_escDIV>: Add
+ Type 1 mode. Type 1 requires large integers to be followed by
+ `div'; cf. `Adobe Type 1 Font Format', section 6.2.
+ <op == 255>: Push Type 1 four-byte numbers as `Int' always. This is
+ to ensure `div' and `callsubr' get values they can use.
+
+2017-09-25 Ewald Hew <ewaldhew@gmail.com>
+
+ [psaux] Extend Adobe interpreter (hints).
+
+ * src/psaux/psintrp.c (cf2_interpT2CharString) <cf2_cmdHSTEM,
+ cf2_cmdVSTEM>: Add correction for left sidebearing in Type 1 mode.
+ Allow adding hints mid-charstring.
+ <cf2_escVSTEM3, cf2_escHSTEM3>: Translate into equivalent commands
+ for three normal stem hints. This requires some recalculation of
+ stem positions.
+ Correction for left sidebearing.
+
+2017-09-25 Ewald Hew <ewaldhew@gmail.com>
+
+ [psaux] Extend Adobe interpreter (hsbw, sbw).
+
+ * src/psaux/psintrp.c (cf2_doStems): `hsbw' or `sbw' must be the
+ first operation in a Type 1 charstring.
+ (cf2_interpT2CharString): Remove unused variables.
+ <cf2_cmdHMOVETO, cf2_cmdVMOVETO, cf2_cmdRMOVETO>: `hsbw' or `sbw'
+ must be the first operation in a Type 1 charstring.
+ <cf2_cmdHSBW, cf2_escSBW>: Fix data access and add correction for
+ left sidebearing.
+
+2017-09-25 Ewald Hew <ewaldhew@gmail.com>
+
+ [psaux] Extend Adobe interpreter (setcurrentpoint).
+
+ * src/psaux/psintrp.c (cf2_interpT2CharString)
+ <cf2_escSETCURRENTPT>: Fix stack access.
+
+2017-09-25 Ewald Hew <ewaldhew@gmail.com>
+
+ [psaux] Extend Adobe interpreter (closepath).
+
+ * src/psaux/psintrp.c (cf2_interpT2CharString) <c2f_cmdCLOSEPATH>:
+ Use the right builder function. We can use the `haveWidth' boolean
+ already present, instead of implementing `parse_state'.
+
+2017-09-25 Ewald Hew <ewaldhew@gmail.com>
+
+ [psaux] Add Type 1 operations to Adobe CFF interpreter.
+
+ The following Type 1 specific ops have been added (copied from
+ `t1decode'):
+
+ closepath
+ vstem3
+ hstem3
+ seac
+ sbw
+ callothersubr
+ pop
+ setcurrentpoint
+ hsbw
+
+ The following require a Type 1 mode, because of differences in
+ specification:
+
+ hstem
+ vstem
+ vmoveto
+ callsubr
+ div
+ rmoveto
+ hmoveto
+ Numbers
+
+ The subsequent commits will implement these changes and adapt
+ accesses of data and objects to the new interpreter.
+
+ NOTE: Will not compile in the meantime!
+
+ * src/psaux/psintrp.c: Add opcodes to enum.
+ (cf2_interpT2CharString): Copy relevant code over from
+ `t1_decoder_parse_charstrings' (in `t1decode.c').
+
+2017-09-25 Ewald Hew <ewaldhew@gmail.com>
+
+ [type1] Fixes for rendering.
+
+ The Type 1 advance width calculation passes null for glyph slot,
+ etc, which can cause null pointer access in the new interpreter.
+ Fall back to the old one for now.
+
+ Fix the large glyph retry code and ensure hinting and scaling flags
+ are set properly.
+
+ * src/type1/t1gload.c (T1_Parse_Glyph_And_Get_Char_String): Add a
+ check for metrics_only.
+ Set the `force_scaling' flag.
+ (T1_Parse_Glyph): Updated.
+ (T1_Load_Glyph): Add `hinting' and `scaled' flags.
+
+2017-09-25 Ewald Hew <ewaldhew@gmail.com>
+
+ [psaux] Add missing objects (2/2).
+
+ Synthesize a `SubFont' object for Type 1 fonts. This is used in the
+ interpreter to access Private dict data, which are stored in
+ different places for Type 1 and CFF. This allows the same data to
+ be used in either mode.
+
+ * src/psaux/psobjs.c (t1_make_subfont): New procedure to copy
+ required values to a dummy `CFF_SubFont' object. This is similar to
+ `cff_make_private_dict'.
+ * src/psaux/psobjs.h: Add the new declaration.
+
+ * include/freetype/internal/psaux.h, src/psaux/psauxmod.c: Ditto.
+ Add this to the PSAux Service for future use with CID fonts.
+
+ * src/type1/t1gload.c: Include FT_INTERNAL_CFF_TYPES_H.
+ (T1_Parse_Glyph_And_Get_Char_String): Add the call.
+
+2017-09-25 Ewald Hew <ewaldhew@gmail.com>
+
+ [psaux] Add missing objects for Type 1 (1/2).
+
+ Move `CF2_Font' instance to `PS_Decoder'. This is the context for
+ the interpreter and since it is currently stored in `CFF_Font', is
+ unavailable in Type 1 mode.
+
+ * include/freetype/internal/psaux.h (T1_Decoder, PS_Decoder): New
+ `cf2_instance' field.
+
+ * src/psaux/psdecode.c (ps_decoder_init): Copy `cf2_instance' to
+ `PS_Decoder'.
+
+ * src/psaux/t1decode.c (t1_decoder_done): Add finalization code.
+
+ * src/psaux/psft.c (cf2_decoder_parse_charstrings): Update accesses.
+
+2017-09-25 Ewald Hew <ewaldhew@gmail.com>
+
+ Allow `type1' module to use the Adobe engine.
+
+ Add the callback and some conditionals to switch between the two
+ engines.
+
+ * include/freetype/internal/psaux.h (T1_Decoder_FuncsRec): Change
+ function declarations.
+ * src/psaux/psauxmod.c (T1_Decoder_FuncsRec): Register the
+ callbacks.
+
+ * src/psaux/psobjs.c (ps_builder_add_point): Add conditionals for
+ number conversion.
+
+ * src/type1/t1gload.c (T1_Parse_Glyph_And_Get_Char_String): Add code
+ to choose which renderer to use.
+
+ * src/cid/cidgload.c (cid_load_glyph): Update call.
+ * src/base/ftobjs.c, src/psaux/psobjs.c, src/type1/t1gload.c: Update
+ includes.
+
+2017-09-25 Ewald Hew <ewaldhew@gmail.com>
+
+ [type1] Add Adobe engine configuration.
+
+ Use the previously changed PS_Driver in type1 module to store
+ hinting engine configuration.
+
+ * include/freetype/ftt1drv.h: New file.
+ Duplicate and rename config options from CFF.
+ * include/freetype/config/ftheader.h (FT_TYPE1_DRIVER_H): New macro.
+
+ * src/type1/t1driver.c (t1_driver_class): Update declaration.
+ * src/type1/t1objs.c: Include FT_TYPE1_DRIVER_H.
+ (T1_Driver_Init): Update code.
+
+2017-09-25 Ewald Hew <ewaldhew@gmail.com>
+
+ [cff] Move and rename `CFF_Driver'.
+
+ This is so that we can use the same hinting engine parameters for
+ Type 1.
+
+ * include/freetype/internal/cffotypes.h (CFF_Driver): Rename and
+ move to...
+ * include/freetype/internal/psaux.h (PS_Driver): ...here.
+
+ * src/cff/cffdrivr.c, src/cff/cffgload.c, src/cff/cffload.c,
+ src/cff/cffobjs.c, src/cff/cffobjs.h, src/psaux/psft.c,
+ src/psaux/psobjs.c: Update references.
+
+2017-09-25 Ewald Hew <ewaldhew@gmail.com>
+
+ [psaux, type1] Reorganize object fields.
+
+ Make some fields more generic, so that we can access them the same
+ way regardless of Type 1 or CFF.
+
+ * include/freetype/internal/psaux.h (PS_Builder): Change `TT_Face'
+ to `FT_Face'.
+ Remove unused fields.
+
+ * src/psaux/psft.c: Update all accesses of `PS_Builder.face'.
+ Add some asserts to guard against casting `T1_Face' as `TT_Face'.
+
+ * src/type1/t1objs.h (T1_GlyphSlot): Reorder fields to follow
+ `CFF_GlyphSlot', so that we can pretend they are the same in the
+ interpreter.
+
+ * src/psaux/psobjs.c (ps_builder_init, ps_builder_add_point):
+ Updated with above changes.
+
+2017-09-25 Ewald Hew <ewaldhew@gmail.com>
+
+ [psaux] Prepare for Type 1 mode.
+
+ Add some checks for Type 1 data passing through.
+
+ * src/psaux/psfont.h (CF2_Font): Add `isT1' flag.
+ * src/psaux/psfont.c (cf2_font_setup): Skip the variations and blend
+ code which is not applicable for Type 1.
+
+ * src/psaux/psft.c (cf2_decoder_parse_charstrings): Avoid accessing
+ `decoder->cff' in Type 1 mode.
+ Copy `is_t1' flag to `CF2_Font'.
+
+2017-09-25 Ewald Hew <ewaldhew@gmail.com>
+
+ [psaux, cff] Use the new objects.
+
+ * include/freetype/internal/psaux.h, src/psaux/psauxmod.c: Fix
+ switching between new and old engines.
+
+ * src/cff/cffgload.c, src/cff/cffparse.c: Update calls.
+
+ * src/psaux/psblues.c, src/psaux/psfont.c, src/psaux/psfont.h,
+ src/psaux/psft.c, src/psaux/psft.h, src/psaux/psintrp.c: Update all
+ to use new objects.
+
+2017-09-24 Ewald Hew <ewaldhew@gmail.com>
+
+ [psaux] Objects for new interpreter (part 2).
+
+ Make the new objects copy over values. They are essentially wrapper
+ types for the different decoders/builders.
+
+ * include/freetype/internal/psaux.h: Update declarations.
+ (PS_Builder): Add `is_t1' flag.
+ (PS_Decoder_{Get,Free}_Glyph_Callback): Renamed to...
+ (CFF_Decoder_{Get,Free}_Glyph_Callback: ... this.
+ (PS_Decoder): Updated.
+ Add `t1_parse_callback' member.
+ (PSAux_ServiceRec): Add `ps_decoder_init' member.
+
+ * src/psaux/psdecode.h, src/psaux/psobjs.h: Update declarations.
+
+ * src/psaux/psdecode.c, src/psaux/psobjs.c: Implement copy with two
+ modes.
+
+ * src/psaux/psauxmod.c: Add builder and decoder functions to `PSAux'
+ service.
+
+2017-09-24 Ewald Hew <ewaldhew@gmail.com>
+
+ [psaux] Add objects for new interpreter.
+
+ Introduce `PS_Decoder' and `PS_Builder' which include all fields
+ from either Type 1 or CFF decoders/builders.
+
+ * include/freetype/internal/psaux.h (PS_Builder, PS_Decoder): New
+ structs.
+
+ * src/psaux/psobjs.c, src/psaux/psobjs.h: Add `PS_Builder'
+ functions.
+
+ * src/psaux/psdecode.c, src/psaux/psdecode.h: New files to hold
+ `PS_Decoder' initialization functions.
+
+ * src/psaux/psaux.c, src/psaux/Jamfile (_sources),
+ src/psaux/rules.mk (PSAUX_DRV_SRC): Updated.
+
+2017-09-24 Ewald Hew <ewaldhew@gmail.com>
+
+ [psaux] Rename files.
+
+ Replace the `cf2' file name prefix with `ps' as the Adobe engine
+ will be used for both PostScript Types 1 and 2 (CFF) instead of just
+ CFF.
+
+ s/cf2/ps/ for all following.
+
+ * src/psaux/cf2*: Rename files.
+ * src/psaux/*: Update includes.
+
+ * src/psaux/Jamfile (_sources), src/psaux/rules.mk (PSAUX_DRC_SRC,
+ PSAUX_DRV_H): Update file references.
+
+2017-09-24 Ewald Hew <ewaldhew@gmail.com>
+
+ [psaux] Minor fix.
+
+ Use `MultiMasters' service in `psaux' instead of a call to `cff'.
+ The project builds if CFF_CONFIG_OPTION_OLD_ENGINE is not defined.
+
+ * src/psaux/cf2ft.c: Update includes.
+ (cf2_getNormalizedVector): Use `mm->get_var_blend' instead of
+ `cff_get_var_blend'.
+
+2017-09-24 Ewald Hew <ewaldhew@gmail.com>
+
+ [psaux, cff] Move `cff_random' into `psaux' service.
+
+ NOTE: Does not compile!
+
+ Minor fix to allow both `cff' and `psaux' to use `cff_random'.
+
+ * src/cff/cffload.c (cff_random): Move to...
+ * src/psaux/psobjs.c: Here.
+ * src/cff/cffload.h: Move corresponding declaration to
+ `src/psaux/psobjs.h'.
+
+ * include/freetype/internal/psaux.h (PSAux_ServiceRec): Register the
+ function here...
+ * src/psaux/psauxmod.c: And here.
+
+ * src/cff/cffload.c, src/psaux/cf2intrp.c: Update code.
+
+2017-09-24 Ewald Hew <ewaldhew@gmail.com>
+
+ [cff] Move struct declarations to `freetype/internal'.
+
+ NOTE: Does not compile!
+
+ This is so that the CFF functions moved to `psaux' can access the
+ same structs that they need.
+
+ * src/cff/cfftypes.h: Moved to...
+ * include/freetype/internal/cfftypes.h: ...Here.
+
+ * src/cff/cffobjs.h: Moved the struct declarations to...
+ * include/freetype/internal/cffotypes.h: ... this new file.
+
+ * include/freetype/internal/internal.h (FT_INTERNAL_CFF_TYPES_H,
+ FT_INTERNAL_CFF_OBJECT_TYPES_H): New macros.
+
+ * src/cff/cffcmap.h, src/cff/cffdrivr.c, src/cff/cffgload.c,
+ src/cff/cffgload.h, src/cff/cffload.h, src/cff/cffobjs.c,
+ src/cff/cffobjs.h, src/cff/cffparse.h, src/psaux/psobjs.h,
+ include/freetype/internal/psaux.h,
+ include/freetype/internal/services/svcfftl.h: Update includes.
+
+ * src/cff/rules.mk (CFF_DRV_H): Updated.
+
+2017-09-24 Ewald Hew <ewaldhew@gmail.com>
+
+ [psaux, cff] Add new service for inter-module calls.
+
+ NOTE: Does not compile!
+
+ This is to allow CFF functions moved to `psaux' to call functions
+ declared in `src/cff/cffload.h'.
+
+ * include/freetype/internal/services/svcfftl.h: New file, setting up
+ a `CFFLoad' service.
+
+ * include/freetype/internal/ftserv.h (FT_DEFINE_SERVICEDESCREC10,
+ FT_DEFINE_SERVICEDESCREC): New macros.
+ (FT_SERVICE_CFF_TABLE_LOAD_H): New macro.
+
+ * src/cff/cffdrivr.c, src/cff/cffpic.h: Register the new service.
+
+ * src/cff/cfftypes.h (CFF_FontRec), src/psaux/cf2font.h
+ (CF2_FontRec): Add service interface.
+
+ * src/cff/cffobjs.c, src/psaux/cf2font.c, src/psaux/cf2ft.c,
+ src/psaux/cf2intrp.c, src/psaux/cffdecode.c: Use the new service.
+
+2017-09-24 Ewald Hew <ewaldhew@gmail.com>
+
+ [psaux, cff] Add callbacks for inter-module calls.
+
+ NOTE: Does not compile!
+
+ * include/freetype/internal/psaux.h: Add function pointer
+ declarations.
+
+ * src/psaux/cffdecode.c (cff_decoder_init): Update to take in
+ callbacks.
+ * src/psaux/cffdecode.h: Ditto.
+
+ * src/cff/cffgload.c (cff_compute_max_advance, cff_slot_load):
+ Update calls to pass in callbacks.
+ * src/psaux/cf2ft.c, src/psaux/cffdecode.c: Use them.
+
+2017-09-24 Ewald Hew <ewaldhew@gmail.com>
+
+ [psaux, cff] Create new `PSAux' service interface entries.
+
+ NOTE: Does not compile!
+
+ * include/freetype/internal/psaux.h: Include
+ FT_INTERNAL_TRUETYPE_TYPES_H.
+ (CFF_Builder_FuncsRec, CFF_Decocer_FuncsRec): New function tables.
+ (CFF_Builder): Updated.
+ Fix for forward declaration.
+ (PSAux_ServiceRec): New field `cff_decoder_funcs'.
+
+ * src/psaux/psauxmod.c (cff_builder_funcs, cff_decoder_funcs): New
+ function tables.
+ (PSAux_Interface): Updated.
+
+ * include/freetype/internal/tttypes.h (TT_FaceRec): Add `psaux'
+ service interface.
+
+ * src/cff/cffgload.c, src/cff/cffobjs.c, src/cff/cffparse.c: Update
+ function calls to use psaux service.
+
+2017-09-24 Ewald Hew <ewaldhew@gmail.com>
+
+ [psaux, cff] Move CFF builder components into `psaux' module.
+
+ NOTE: Does not compile!
+
+ * src/cff/cffgload.c
+ (cff_builder_{init,done,add_point,add_point1,add_contour,start_point,close_contour},
+ cff_check_points): Move to...
+ * src/psaux/psobjs.c: Here.
+
+ * src/cff/cffgload.h: Move corresponding declarations to
+ `src/psaux/psobjs.h'.
+
+ * src/cff/cffgload.h (CFF_Builder): Move struct declaration to...
+ * include/freetype/internal/psaux.h: Here.
+
+2017-09-24 Ewald Hew <ewaldhew@gmail.com>
+
+ [psaux, cff] Move CFF decoder components into `psaux' module.
+
+ NOTE: Does not compile!
+
+ * src/cff/cffgload.c (CFF_Operator,
+ CFF_COUNT_{CHECK_WIDTH,EXACT,CLEAR_STACK}, cff_argument_counts,
+ cff_operator_seac, cff_compute_bias,
+ cff_lookup_glyph_by_stdcharcode,
+ cff_decoder_{parse_charstrings,init,prepare}): Move to...
+ * src/psaux/cffdecode.c: This new file.
+
+ * src/cff/cffgload.h: Move corresponding declarations to...
+ * src/psaux/cffdecode.h: This new file.
+
+ * src/cff/cffgload.h (CFF_MAX_{OPERANDS,SUBRS_CALLS,TRANS_ELEMENTS},
+ CFF_Decoder_Zone, CFF_Decoder): Move declarations to...
+ * include/freetype/internal/psaux.h: Here.
+
+ * src/psaux/cf2ft.h: Update include.
+
+ * src/psaux/psaux.c, src/psaux/rules.mk (PSAUX_DRV_SRC): Update with
+ the new file.
+
+2017-09-24 Ewald Hew <ewaldhew@gmail.com>
+
+ [psaux, cff] Move Adobe's engine components into `psaux' module.
+
+ This is the first patch of a sequence to move the Type 2 charstring
+ processing capability from the `cff' module to the `psaux' module.
+
+ NOTE: Does not compile!
+
+ * src/cff/cf2*: Move these files to...
+ * src/psaux/cf2*: Here.
+
+ * src/cff/Jamfile (_sources), src/cff/rules.mk (CFF_DRV_SRC,
+ CFF_DRV_H), src/cff/cff.c, src/cff/cffgload.c: Remove file
+ references.
+
+ * src/psaux/Jamfile (_sources), src/psaux/rules.mk, src/psaux/psaux.c
+ (PSAUX_DRV_SRC, PSAUX_DRV_H): Add file references.
+
+2017-09-24 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ Tweak per-face LCD filtering controls.
+
+ Thing are simpler with a NULL-function pointer.
+
+ * include/freetype/internal/ftobjs.h (FT_Face_InternalRec): New
+ pointer to the filter function.
+ (FT_LibraryRec): Remove unused `lcd_filter'.
+ (FT_Bitmap_LcdFilterFunc, ft_lcd_filter_fir): Move from here...
+ * include/freetype/ftlcdfil.h (FT_Bitmap_LcdFilterFunc,
+ ft_lcd_filter_fir): ... to here.
+
+ * src/base/ftobjs.c (ft_open_face_internal): NULL-initialize the
+ per-face filter.
+ (FT_Face_Properties): Set it.
+ * src/smooth/ftsmooth.c (ft_smooth_render_generic): Simplify.
+
+ * src/base/ftlcdfil.c (ft_lcd_filter_fir, FT_Libary_SetLcdFilter):
+ Minor.
+
+2017-09-24 Jonathan Kew <jfkthame@gmail.com>
+
+ [sfnt] Fix `premultiply_data' (#52092).
+
+ * src/sfnt/pngshim.c (premultiply_data): Don't use vector extension
+ if we have less than 16 bytes of data.
+
+2017-09-24 Werner Lemberg <wl@gnu.org>
+
+ [otvalid] Fix handling of ValueRecords.
+
+ For GPOS pair positioning format 1 the description of ValueRecords
+ in the OpenType specification (1.8.2, from today) is wrong – the
+ offset has to be taken from the parent structure; in this case the
+ `PairSet' table.
+
+ * src/otvalid/otvgpos.c (otv_PairSet_validate): Set `extra3'.
+ (otv_PairPos_validate): Adjust.
+
+2017-09-23 Werner Lemberg <wl@gnu.org>
+
+ [otvalid] Handle `GSUB' and `GPOS' v1.1 tables.
+
+ * src/otvalid/otvgsub.c (otv_GSUB_validate), src/otvalid/otvgpos.c
+ (otv_GPOS_validate): Implement it.
+
+2017-09-23 Werner Lemberg <wl@gnu.org>
+
+ [otvalid] Update common table handling to OpenType 1.8.2.
+
+ * src/otvalid/otvcommn.c (otv_Device_validate): Handle
+ VariationIndex subtable.
+ (otv_Lookup_validate): Handle MarkFilteringSet.
+
+2017-09-23 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ [build] Windows-style DLL versioning.
+
+ * build/windows/ftver.rc: New VERSIONINFO resource.
+ * build/windows/vc2010/freetype.vcxproj: Further improvements.
+
+2017-09-23 Ben Wagner <bungeman@google.com>
+
+ [truetype] Really fix #52082.
+
+ * src/truetype/ttinterp.c (Ins_MDRP): Correct conditional.
+
+2017-09-23 Werner Lemberg <wl@gnu.org>
+
+ [otvalid] Handle `GDEF' v1.2 and v1.3 tables.
+
+ No validation of variation stuff yet.
+
+ * src/otvalid/otvgdef.c (otv_MarkGlyphSets_validate): New function.
+ (otv_GDEF_validate): Implement it.
+
+2017-09-22 Werner Lemberg <wl@gnu.org>
+
+ [otvalid] Handle `BASE' v1.1 table.
+
+ No validation of variation stuff yet.
+
+ * src/otvalid/otvbase.c (otv_BASE_validate): Implement it.
+
+2017-09-22 Werner Lemberg <wl@gnu.org>
+
+ [otvalid] Macros for 32bit offset support.
+
+ * src/otvalid/otvcommn.h (OTV_OPTIONAL_TABLE32,
+ OTV_OPTIONAL_OFFSET32, OTV_SIZE_CHECK32): New macros.
+
+2017-09-21 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ [build] Simplify Visual C++ 2010 project.
+
+ * build/windows/vc2010/freetype.vcxproj: Remove fake singlethreaded
+ configurations and tweak.
+
+2017-09-21 Werner Lemberg <wl@gnu.org>
+
+ [truetype] Integer overflow (#52082).
+
+ * src/truetype/ttinterp.c (Ins_MDRP): Avoid FT_ABS.
+
+2017-09-21 Werner Lemberg <wl@gnu.org>
+
+ [sfnt] Fix postscript name for default instance of variation fonts.
+
+ Problem reported by Behdad.
+
+ * src/sfnt/sfdriver.c (sfnt_get_ps_name): Test
+ `is_default_instance'.
+
+2017-09-21 Werner Lemberg <wl@gnu.org>
+
+ [truetype] Fix `mmvar' array pointers, part 2.
+
+ The previous commit was incomplete.
+
+ * src/truetype/ttgxvar.c: Properly initialize sub-array offsets for
+ `master' also.
+
+2017-09-21 Werner Lemberg <wl@gnu.org>
+
+ [truetype] Fix `mmvar' array pointers.
+
+ Without this change, clang's AddressSanitizer reports many runtime
+ errors due to misaligned addresses.
+
+ * src/truetype/ttgxvar.c (TT_Get_MM_Var): Use multiples of pointer
+ size for sub-array offsets into `mmvar'.
+
+2017-09-20 Werner Lemberg <wl@gnu.org>
+
+ [truetype] Integer overflows.
+
+ Changes triggered by
+
+ https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=3429
+
+ * src/truetype/ttinterp.c (Ins_SHPIX, Ins_DELTAP): Use NEG_LONG.
+ (Ins_MIAP): Use SUB_LONG.
+
+2017-09-19 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ [build] Fix DLL builds in Visual C++ project.
+
+ * build/windows/vc2010/freetype.vcxproj: Use DynamicLibrary in Debug
+ and Release configurations.
+ * include/freetype/config/ftconfig.h (FT_EXPORT, FT_EXPORT_DEF)
+ [_DLL]: Use Visual C++ extensions.
+
+2017-09-19 John Tytgat <John.Tytgat@esko.com>
+
+ [cff] Fix family name logic of pure CFF fontdata (#52056).
+
+ 1. If `FamilyName' is present in the CFF font, use this for
+ FT_Face's `family_name'.
+ 2. Otherwise, use the face name and chop off any subset prefix.
+ 3. If at this point FT_Face's `family_name' is set, use this
+ together with the full name to determine the style.
+ 4. Otherwise, use `CIDFontName' as FT_Face's `family_name'.
+ 5. If we don't have a valid style, use "Regular".
+
+ Previously, FT_Face's `family_name' entry for pure CFF fontdata
+ nearly always was the fontname itself, instead of the `FamilyName'
+ entry in the CFF font (assuming there is one).
+
+ * src/cff/cffobjs.c (cff_face_init) [pure_cff]: Implement it.
+
+2017-09-18 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ [build] Declutter Visual C++ 2010-2017 project.
+
+ * build/windows/vc2010/freetype.vcxproj: Use MaxSpeed (/02)
+ optimization for Release configuration throughout the project.
+
+
+----------------------------------------------------------------------------
+
+Copyright (C) 2017-2021 by
+David Turner, Robert Wilhelm, and Werner Lemberg.
+
+This file is part of the FreeType project, and may only be used, modified,
+and distributed under the terms of the FreeType project license,
+LICENSE.TXT. By continuing to use, modify, or distribute this file you
+indicate that you have read the license and understand and accept it
+fully.
+
+
+Local Variables:
+version-control: never
+coding: utf-8
+End:
diff --git a/freetype/docs/raster.txt b/freetype/docs/raster.txt
index 1bf4f67d..72d9fe28 100644
--- a/freetype/docs/raster.txt
+++ b/freetype/docs/raster.txt
@@ -618,7 +618,7 @@ II. Rendering Technology
------------------------------------------------------------------------
-Copyright (C) 2003-2020 by
+Copyright (C) 2003-2021 by
David Turner, Robert Wilhelm, and Werner Lemberg.
This file is part of the FreeType project, and may only be used,
diff --git a/freetype/docs/reference/404.html b/freetype/docs/reference/404.html
index 1fb64217..4c8afae1 100644
--- a/freetype/docs/reference/404.html
+++ b/freetype/docs/reference/404.html
@@ -1,141 +1,131 @@
-
-
-
<!doctype html>
<html lang="en" class="no-js">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
- <meta http-equiv="x-ua-compatible" content="ie=edge">
- <meta name="description" content="API Reference Documentation for FreeType-2.10.4">
+ <meta name="description" content="API Reference Documentation for FreeType-2.11.1">
<meta name="author" content="FreeType Contributors">
- <meta name="lang:clipboard.copy" content="Copy to clipboard">
-
- <meta name="lang:clipboard.copied" content="Copied to clipboard">
-
- <meta name="lang:search.language" content="en">
-
- <meta name="lang:search.pipeline.stopwords" content="True">
-
- <meta name="lang:search.pipeline.trimmer" content="True">
-
- <meta name="lang:search.result.none" content="No matching documents">
-
- <meta name="lang:search.result.one" content="1 matching document">
-
- <meta name="lang:search.result.other" content="# matching documents">
-
- <meta name="lang:search.tokenizer" content="[\s\-]+">
-
- <link rel="shortcut icon" href="/images/favico.ico">
- <meta name="generator" content="mkdocs-1.1, mkdocs-material-4.6.3">
+ <link rel="icon" href="/images/favico.ico">
+ <meta name="generator" content="mkdocs-1.2.1, mkdocs-material-7.1.9">
- <title>FreeType-2.10.4 API Reference</title>
+ <title>FreeType-2.11.1 API Reference</title>
- <link rel="stylesheet" href="/assets/stylesheets/application.adb8469c.css">
-
- <link rel="stylesheet" href="/assets/stylesheets/application-palette.a8b3c06d.css">
-
+ <link rel="stylesheet" href="/assets/stylesheets/main.ca7ac06f.min.css">
+ <link rel="stylesheet" href="/assets/stylesheets/palette.f1a3b89f.min.css">
+
+
+
+ <meta name="theme-color" content="#4cae4f">
- <meta name="theme-color" content="#4caf50">
- <script src="/assets/javascripts/modernizr.86422ebf.js"></script>
-
- <link href="https://fonts.gstatic.com" rel="preconnect" crossorigin>
+
+ <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Noto+Serif:300,400,400i,700%7CRoboto+Mono&display=fallback">
- <style>body,input{font-family:"Noto Serif","Helvetica Neue",Helvetica,Arial,sans-serif}code,kbd,pre{font-family:"Roboto Mono","Courier New",Courier,monospace}</style>
+ <style>:root{--md-text-font-family:"Noto Serif";--md-code-font-family:"Roboto Mono"}</style>
- <link rel="stylesheet" href="/assets/fonts/material-icons.css">
<link rel="stylesheet" href="/stylesheets/extra.css">
+
+
</head>
+
+
+
- <body dir="ltr" data-md-color-primary="green" data-md-color-accent="green">
+
+ <body dir="ltr" data-md-color-scheme="" data-md-color-primary="green" data-md-color-accent="green">
- <svg class="md-svg">
- <defs>
-
-
- </defs>
- </svg>
+
+ <script>function __prefix(e){return new URL("/",location).pathname+"."+e}function __get(e,t=localStorage){return JSON.parse(t.getItem(__prefix(e)))}</script>
+
<input class="md-toggle" data-md-toggle="drawer" type="checkbox" id="__drawer" autocomplete="off">
<input class="md-toggle" data-md-toggle="search" type="checkbox" id="__search" autocomplete="off">
- <label class="md-overlay" data-md-component="overlay" for="__drawer"></label>
-
+ <label class="md-overlay" for="__drawer"></label>
+ <div data-md-component="skip">
+
+ </div>
+ <div data-md-component="announce">
+
+ </div>
<header class="md-header" data-md-component="header">
- <nav class="md-header-nav md-grid">
- <div class="md-flex">
- <div class="md-flex__cell md-flex__cell--shrink">
- <a href="/." title="FreeType-2.10.4 API Reference" aria-label="FreeType-2.10.4 API Reference" class="md-header-nav__button md-logo">
-
- <img alt="logo" src="/images/favico.ico" width="24" height="24">
-
- </a>
- </div>
- <div class="md-flex__cell md-flex__cell--shrink">
- <label class="md-icon md-icon--menu md-header-nav__button" for="__drawer"></label>
- </div>
- <div class="md-flex__cell md-flex__cell--stretch">
- <div class="md-flex__ellipsis md-header-nav__title" data-md-component="title">
-
- <span class="md-header-nav__topic">
- FreeType-2.10.4 API Reference
- </span>
- <span class="md-header-nav__topic">
-
-
+ <nav class="md-header__inner md-grid" aria-label="Header">
+ <a href="/index.html" title="FreeType-2.11.1 API Reference" class="md-header__button md-logo" aria-label="FreeType-2.11.1 API Reference" data-md-component="logo">
+
+ <img src="/images/favico.ico" alt="logo">
+
+ </a>
+ <label class="md-header__button md-icon" for="__drawer">
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M3 6h18v2H3V6m0 5h18v2H3v-2m0 5h18v2H3v-2z"/></svg>
+ </label>
+ <div class="md-header__title" data-md-component="header-title">
+ <div class="md-header__ellipsis">
+ <div class="md-header__topic">
+ <span class="md-ellipsis">
+ FreeType-2.11.1 API Reference
+ </span>
+ </div>
+ <div class="md-header__topic" data-md-component="header-topic">
+ <span class="md-ellipsis">
+
- </span>
-
+
+ </span>
</div>
</div>
- <div class="md-flex__cell md-flex__cell--shrink">
-
- <label class="md-icon md-icon--search md-header-nav__button" for="__search"></label>
-
+ </div>
+
+
+
+ <label class="md-header__button md-icon" for="__search">
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M9.5 3A6.5 6.5 0 0 1 16 9.5c0 1.61-.59 3.09-1.56 4.23l.27.27h.79l5 5-1.5 1.5-5-5v-.79l-.27-.27A6.516 6.516 0 0 1 9.5 16 6.5 6.5 0 0 1 3 9.5 6.5 6.5 0 0 1 9.5 3m0 2C7 5 5 7 5 9.5S7 14 9.5 14 14 12 14 9.5 12 5 9.5 5z"/></svg>
+ </label>
+
<div class="md-search" data-md-component="search" role="dialog">
<label class="md-search__overlay" for="__search"></label>
<div class="md-search__inner" role="search">
<form class="md-search__form" name="search">
- <input type="text" class="md-search__input" aria-label="search" name="query" placeholder="Search" autocapitalize="off" autocorrect="off" autocomplete="off" spellcheck="false" data-md-component="query" data-md-state="active">
- <label class="md-icon md-search__icon" for="__search"></label>
- <button type="reset" class="md-icon md-search__icon" data-md-component="reset" tabindex="-1">
- &#xE5CD;
+ <input type="text" class="md-search__input" name="query" aria-label="Search" placeholder="Search" autocapitalize="off" autocorrect="off" autocomplete="off" spellcheck="false" data-md-component="search-query" data-md-state="active" required>
+ <label class="md-search__icon md-icon" for="__search">
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M9.5 3A6.5 6.5 0 0 1 16 9.5c0 1.61-.59 3.09-1.56 4.23l.27.27h.79l5 5-1.5 1.5-5-5v-.79l-.27-.27A6.516 6.516 0 0 1 9.5 16 6.5 6.5 0 0 1 3 9.5 6.5 6.5 0 0 1 9.5 3m0 2C7 5 5 7 5 9.5S7 14 9.5 14 14 12 14 9.5 12 5 9.5 5z"/></svg>
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M20 11v2H8l5.5 5.5-1.42 1.42L4.16 12l7.92-7.92L13.5 5.5 8 11h12z"/></svg>
+ </label>
+ <button type="reset" class="md-search__icon md-icon" aria-label="Clear" tabindex="-1">
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z"/></svg>
</button>
</form>
<div class="md-search__output">
<div class="md-search__scrollwrap" data-md-scrollfix>
- <div class="md-search-result" data-md-component="result">
+ <div class="md-search-result" data-md-component="search-result">
<div class="md-search-result__meta">
- Type to start searching
+ Initializing search
</div>
<ol class="md-search-result__list"></ol>
</div>
@@ -143,33 +133,35 @@
</div>
</div>
</div>
-
- </div>
-
- </div>
+
+
</nav>
</header>
- <div class="md-container">
+ <div class="md-container" data-md-component="container">
-
+
- <main class="md-main" role="main">
- <div class="md-main__inner md-grid" data-md-component="container">
+ <main class="md-main" data-md-component="main">
+ <div class="md-main__inner md-grid">
- <div class="md-sidebar md-sidebar--primary" data-md-component="navigation">
+
+ <div class="md-sidebar md-sidebar--primary" data-md-component="sidebar" data-md-type="navigation" >
<div class="md-sidebar__scrollwrap">
<div class="md-sidebar__inner">
- <nav class="md-nav md-nav--primary" data-md-level="0">
- <label class="md-nav__title md-nav__title--site" for="__drawer">
- <a href="/." title="FreeType-2.10.4 API Reference" class="md-nav__button md-logo">
-
- <img alt="logo" src="/images/favico.ico" width="48" height="48">
+
+
+
+<nav class="md-nav md-nav--primary" aria-label="Navigation" data-md-level="0">
+ <label class="md-nav__title" for="__drawer">
+ <a href="/index.html" title="FreeType-2.11.1 API Reference" class="md-nav__button md-logo" aria-label="FreeType-2.11.1 API Reference" data-md-component="logo">
+ <img src="/images/favico.ico" alt="logo">
+
</a>
- FreeType-2.10.4 API Reference
+ FreeType-2.11.1 API Reference
</label>
<ul class="md-nav__list" data-md-scrollfix>
@@ -178,804 +170,882 @@
-
- <li class="md-nav__item">
- <a href="/index.html" title="TOC" class="md-nav__link">
- TOC
- </a>
- </li>
+
+
+
+ <li class="md-nav__item">
+ <a href="/index.html" class="md-nav__link">
+ TOC
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="/ft2-index.html" title="Index" class="md-nav__link">
- Index
- </a>
- </li>
+
+
+
+ <li class="md-nav__item">
+ <a href="/ft2-index.html" class="md-nav__link">
+ Index
+ </a>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-3" type="checkbox" id="nav-3">
+
+
+
- <label class="md-nav__link" for="nav-3">
- General Remarks
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-3">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_3" type="checkbox" id="__nav_3" >
+
+ <label class="md-nav__link" for="__nav_3">
General Remarks
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
+ <nav class="md-nav" aria-label="General Remarks" data-md-level="1">
+ <label class="md-nav__title" for="__nav_3">
+ <span class="md-nav__icon md-icon"></span>
+ General Remarks
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
-
-
-
-
- <li class="md-nav__item">
- <a href="/ft2-header_inclusion.html" title="FreeType's header inclusion scheme" class="md-nav__link">
- FreeType's header inclusion scheme
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="/ft2-preamble.html" class="md-nav__link">
+ Preamble
+ </a>
+ </li>
+
-
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="/ft2-header_inclusion.html" class="md-nav__link">
+ FreeType's header inclusion scheme
+ </a>
+ </li>
+
- <li class="md-nav__item">
- <a href="/ft2-user_allocation.html" title="User allocation" class="md-nav__link">
- User allocation
- </a>
- </li>
+
+
+
+
+
+ <li class="md-nav__item">
+ <a href="/ft2-user_allocation.html" class="md-nav__link">
+ User allocation
+ </a>
+ </li>
+
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-4" type="checkbox" id="nav-4">
+
+
+
- <label class="md-nav__link" for="nav-4">
- Core API
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-4">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_4" type="checkbox" id="__nav_4" >
+
+ <label class="md-nav__link" for="__nav_4">
Core API
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
-
-
+ <nav class="md-nav" aria-label="Core API" data-md-level="1">
+ <label class="md-nav__title" for="__nav_4">
+ <span class="md-nav__icon md-icon"></span>
+ Core API
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="/ft2-version.html" class="md-nav__link">
+ FreeType Version
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="/ft2-version.html" title="FreeType Version" class="md-nav__link">
- FreeType Version
- </a>
- </li>
-
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="/ft2-basic_types.html" class="md-nav__link">
+ Basic Data Types
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="/ft2-basic_types.html" title="Basic Data Types" class="md-nav__link">
- Basic Data Types
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="/ft2-base_interface.html" title="Base Interface" class="md-nav__link">
- Base Interface
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="/ft2-base_interface.html" class="md-nav__link">
+ Base Interface
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="/ft2-glyph_variants.html" title="Unicode Variation Sequences" class="md-nav__link">
- Unicode Variation Sequences
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="/ft2-glyph_variants.html" class="md-nav__link">
+ Unicode Variation Sequences
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="/ft2-color_management.html" title="Glyph Color Management" class="md-nav__link">
- Glyph Color Management
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="/ft2-color_management.html" class="md-nav__link">
+ Glyph Color Management
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="/ft2-layer_management.html" title="Glyph Layer Management" class="md-nav__link">
- Glyph Layer Management
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="/ft2-layer_management.html" class="md-nav__link">
+ Glyph Layer Management
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="/ft2-glyph_management.html" class="md-nav__link">
+ Glyph Management
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="/ft2-glyph_management.html" title="Glyph Management" class="md-nav__link">
- Glyph Management
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="/ft2-mac_specific.html" title="Mac Specific Interface" class="md-nav__link">
- Mac Specific Interface
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="/ft2-mac_specific.html" class="md-nav__link">
+ Mac Specific Interface
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="/ft2-sizes_management.html" title="Size Management" class="md-nav__link">
- Size Management
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="/ft2-sizes_management.html" class="md-nav__link">
+ Size Management
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="/ft2-header_file_macros.html" title="Header File Macros" class="md-nav__link">
- Header File Macros
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="/ft2-header_file_macros.html" class="md-nav__link">
+ Header File Macros
+ </a>
+ </li>
+
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-5" type="checkbox" id="nav-5">
+
+
+
- <label class="md-nav__link" for="nav-5">
- Format-Specific API
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-5">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_5" type="checkbox" id="__nav_5" >
+
+ <label class="md-nav__link" for="__nav_5">
Format-Specific API
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
+ <nav class="md-nav" aria-label="Format-Specific API" data-md-level="1">
+ <label class="md-nav__title" for="__nav_5">
+ <span class="md-nav__icon md-icon"></span>
+ Format-Specific API
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
-
-
-
-
- <li class="md-nav__item">
- <a href="/ft2-multiple_masters.html" title="Multiple Masters" class="md-nav__link">
- Multiple Masters
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="/ft2-multiple_masters.html" class="md-nav__link">
+ Multiple Masters
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="/ft2-truetype_tables.html" title="TrueType Tables" class="md-nav__link">
- TrueType Tables
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="/ft2-truetype_tables.html" class="md-nav__link">
+ TrueType Tables
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="/ft2-type1_tables.html" title="Type 1 Tables" class="md-nav__link">
- Type 1 Tables
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="/ft2-type1_tables.html" class="md-nav__link">
+ Type 1 Tables
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="/ft2-sfnt_names.html" class="md-nav__link">
+ SFNT Names
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="/ft2-sfnt_names.html" title="SFNT Names" class="md-nav__link">
- SFNT Names
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="/ft2-bdf_fonts.html" title="BDF and PCF Files" class="md-nav__link">
- BDF and PCF Files
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="/ft2-bdf_fonts.html" class="md-nav__link">
+ BDF and PCF Files
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="/ft2-cid_fonts.html" title="CID Fonts" class="md-nav__link">
- CID Fonts
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="/ft2-cid_fonts.html" class="md-nav__link">
+ CID Fonts
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="/ft2-pfr_fonts.html" class="md-nav__link">
+ PFR Fonts
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="/ft2-pfr_fonts.html" title="PFR Fonts" class="md-nav__link">
- PFR Fonts
- </a>
- </li>
-
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="/ft2-winfnt_fonts.html" class="md-nav__link">
+ Window FNT Files
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="/ft2-winfnt_fonts.html" title="Window FNT Files" class="md-nav__link">
- Window FNT Files
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="/ft2-font_formats.html" title="Font Formats" class="md-nav__link">
- Font Formats
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="/ft2-font_formats.html" class="md-nav__link">
+ Font Formats
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="/ft2-gasp_table.html" title="Gasp Table" class="md-nav__link">
- Gasp Table
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="/ft2-gasp_table.html" class="md-nav__link">
+ Gasp Table
+ </a>
+ </li>
+
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-6" type="checkbox" id="nav-6">
+
+
+
- <label class="md-nav__link" for="nav-6">
- Controlling FreeType Modules
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-6">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_6" type="checkbox" id="__nav_6" >
+
+ <label class="md-nav__link" for="__nav_6">
Controlling FreeType Modules
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
-
-
+ <nav class="md-nav" aria-label="Controlling FreeType Modules" data-md-level="1">
+ <label class="md-nav__title" for="__nav_6">
+ <span class="md-nav__icon md-icon"></span>
+ Controlling FreeType Modules
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="/ft2-auto_hinter.html" class="md-nav__link">
+ The auto-hinter
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="/ft2-auto_hinter.html" title="The auto-hinter" class="md-nav__link">
- The auto-hinter
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="/ft2-cff_driver.html" title="The CFF driver" class="md-nav__link">
- The CFF driver
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="/ft2-cff_driver.html" class="md-nav__link">
+ The CFF driver
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="/ft2-t1_cid_driver.html" title="The Type 1 and CID drivers" class="md-nav__link">
- The Type 1 and CID drivers
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="/ft2-t1_cid_driver.html" class="md-nav__link">
+ The Type 1 and CID drivers
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="/ft2-tt_driver.html" class="md-nav__link">
+ The TrueType driver
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="/ft2-tt_driver.html" title="The TrueType driver" class="md-nav__link">
- The TrueType driver
- </a>
- </li>
-
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="/ft2-pcf_driver.html" class="md-nav__link">
+ The PCF driver
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="/ft2-pcf_driver.html" title="The PCF driver" class="md-nav__link">
- The PCF driver
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="/ft2-properties.html" title="Driver properties" class="md-nav__link">
- Driver properties
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="/ft2-properties.html" class="md-nav__link">
+ Driver properties
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="/ft2-parameter_tags.html" title="Parameter Tags" class="md-nav__link">
- Parameter Tags
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="/ft2-parameter_tags.html" class="md-nav__link">
+ Parameter Tags
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="/ft2-lcd_rendering.html" class="md-nav__link">
+ Subpixel Rendering
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="/ft2-lcd_rendering.html" title="Subpixel Rendering" class="md-nav__link">
- Subpixel Rendering
- </a>
- </li>
-
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-7" type="checkbox" id="nav-7">
+
+
+
- <label class="md-nav__link" for="nav-7">
- Cache Sub-System
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-7">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_7" type="checkbox" id="__nav_7" >
+
+ <label class="md-nav__link" for="__nav_7">
Cache Sub-System
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
-
+ <nav class="md-nav" aria-label="Cache Sub-System" data-md-level="1">
+ <label class="md-nav__title" for="__nav_7">
+ <span class="md-nav__icon md-icon"></span>
+ Cache Sub-System
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
-
-
-
- <li class="md-nav__item">
- <a href="/ft2-cache_subsystem.html" title="Cache Sub-System" class="md-nav__link">
- Cache Sub-System
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="/ft2-cache_subsystem.html" class="md-nav__link">
+ Cache Sub-System
+ </a>
+ </li>
+
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-8" type="checkbox" id="nav-8">
+
+
+
- <label class="md-nav__link" for="nav-8">
- Support API
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-8">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_8" type="checkbox" id="__nav_8" >
+
+ <label class="md-nav__link" for="__nav_8">
Support API
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
+ <nav class="md-nav" aria-label="Support API" data-md-level="1">
+ <label class="md-nav__title" for="__nav_8">
+ <span class="md-nav__icon md-icon"></span>
+ Support API
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
-
-
-
-
- <li class="md-nav__item">
- <a href="/ft2-computations.html" title="Computations" class="md-nav__link">
- Computations
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="/ft2-computations.html" class="md-nav__link">
+ Computations
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="/ft2-list_processing.html" title="List Processing" class="md-nav__link">
- List Processing
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="/ft2-list_processing.html" class="md-nav__link">
+ List Processing
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="/ft2-outline_processing.html" title="Outline Processing" class="md-nav__link">
- Outline Processing
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="/ft2-outline_processing.html" class="md-nav__link">
+ Outline Processing
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="/ft2-quick_advance.html" title="Quick retrieval of advance values" class="md-nav__link">
- Quick retrieval of advance values
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="/ft2-quick_advance.html" class="md-nav__link">
+ Quick retrieval of advance values
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="/ft2-bitmap_handling.html" class="md-nav__link">
+ Bitmap Handling
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="/ft2-bitmap_handling.html" title="Bitmap Handling" class="md-nav__link">
- Bitmap Handling
- </a>
- </li>
-
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="/ft2-raster.html" class="md-nav__link">
+ Scanline Converter
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="/ft2-raster.html" title="Scanline Converter" class="md-nav__link">
- Scanline Converter
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="/ft2-glyph_stroker.html" title="Glyph Stroker" class="md-nav__link">
- Glyph Stroker
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="/ft2-glyph_stroker.html" class="md-nav__link">
+ Glyph Stroker
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="/ft2-system_interface.html" title="System Interface" class="md-nav__link">
- System Interface
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="/ft2-system_interface.html" class="md-nav__link">
+ System Interface
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="/ft2-module_management.html" class="md-nav__link">
+ Module Management
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="/ft2-module_management.html" title="Module Management" class="md-nav__link">
- Module Management
- </a>
- </li>
-
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="/ft2-gzip.html" class="md-nav__link">
+ GZIP Streams
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="/ft2-gzip.html" title="GZIP Streams" class="md-nav__link">
- GZIP Streams
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="/ft2-lzw.html" title="LZW Streams" class="md-nav__link">
- LZW Streams
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="/ft2-lzw.html" class="md-nav__link">
+ LZW Streams
+ </a>
+ </li>
+
-
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="/ft2-bzip2.html" class="md-nav__link">
+ BZIP2 Streams
+ </a>
+ </li>
+
- <li class="md-nav__item">
- <a href="/ft2-bzip2.html" title="BZIP2 Streams" class="md-nav__link">
- BZIP2 Streams
- </a>
- </li>
+
+
+
+
+
+ <li class="md-nav__item">
+ <a href="/ft2-debugging_apis.html" class="md-nav__link">
+ External Debugging APIs
+ </a>
+ </li>
+
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-9" type="checkbox" id="nav-9">
+
+
+
- <label class="md-nav__link" for="nav-9">
- Error Codes
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-9">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_9" type="checkbox" id="__nav_9" >
+
+ <label class="md-nav__link" for="__nav_9">
Error Codes
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
+ <nav class="md-nav" aria-label="Error Codes" data-md-level="1">
+ <label class="md-nav__title" for="__nav_9">
+ <span class="md-nav__icon md-icon"></span>
+ Error Codes
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
-
-
-
-
- <li class="md-nav__item">
- <a href="/ft2-error_enumerations.html" title="Error Enumerations" class="md-nav__link">
- Error Enumerations
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="/ft2-error_enumerations.html" class="md-nav__link">
+ Error Enumerations
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="/ft2-error_code_values.html" title="Error Code Values" class="md-nav__link">
- Error Code Values
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="/ft2-error_code_values.html" class="md-nav__link">
+ Error Code Values
+ </a>
+ </li>
+
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-10" type="checkbox" id="nav-10">
+
+
+
- <label class="md-nav__link" for="nav-10">
- Miscellaneous
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-10">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_10" type="checkbox" id="__nav_10" >
+
+ <label class="md-nav__link" for="__nav_10">
Miscellaneous
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
-
+ <nav class="md-nav" aria-label="Miscellaneous" data-md-level="1">
+ <label class="md-nav__title" for="__nav_10">
+ <span class="md-nav__icon md-icon"></span>
+ Miscellaneous
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
-
-
-
- <li class="md-nav__item">
- <a href="/ft2-gx_validation.html" title="TrueTypeGX/AAT Validation" class="md-nav__link">
- TrueTypeGX/AAT Validation
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="/ft2-gx_validation.html" class="md-nav__link">
+ TrueTypeGX/AAT Validation
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="/ft2-incremental.html" title="Incremental Loading" class="md-nav__link">
- Incremental Loading
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="/ft2-incremental.html" class="md-nav__link">
+ Incremental Loading
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="/ft2-truetype_engine.html" class="md-nav__link">
+ The TrueType Engine
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="/ft2-truetype_engine.html" title="The TrueType Engine" class="md-nav__link">
- The TrueType Engine
- </a>
- </li>
-
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="/ft2-ot_validation.html" class="md-nav__link">
+ OpenType Validation
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="/ft2-ot_validation.html" title="OpenType Validation" class="md-nav__link">
- OpenType Validation
- </a>
- </li>
-
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
</ul>
@@ -986,19 +1056,16 @@
- <div class="md-content">
+ <div class="md-content" data-md-component="content">
<article class="md-content__inner md-typeset">
<h1>404 - Not found</h1>
-
-
-
-
</article>
</div>
</div>
+
</main>
@@ -1009,14 +1076,14 @@
<div class="md-footer-copyright">
<div class="md-footer-copyright__highlight">
- Copyright 2020 <a href = "https://www.freetype.org/license.html">The FreeType Project</a>.
+ Copyright 2021 <a href = "https://www.freetype.org/license.html">The FreeType Project</a>.
</div>
- powered by
- <a href="https://www.mkdocs.org" target="_blank" rel="noopener">MkDocs</a>
- and
+ Made with
<a href="https://squidfunk.github.io/mkdocs-material/" target="_blank" rel="noopener">
- Material for MkDocs</a>
+ Material for MkDocs
+ </a>
+
</div>
</div>
@@ -1024,10 +1091,13 @@
</footer>
</div>
+ <div class="md-dialog" data-md-component="dialog">
+ <div class="md-dialog__inner md-typeset"></div>
+ </div>
+ <script id="__config" type="application/json">{"base": "/", "features": [], "translations": {"clipboard.copy": "Copy to clipboard", "clipboard.copied": "Copied to clipboard", "search.config.lang": "en", "search.config.pipeline": "trimmer, stopWordFilter", "search.config.separator": "[\\s\\-]+", "search.placeholder": "Search", "search.result.placeholder": "Type to start searching", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.term.missing": "Missing", "select.version.title": "Select version"}, "search": "/assets/javascripts/workers/search.477d984a.min.js", "version": null}</script>
- <script src="/assets/javascripts/application.c33a9706.js"></script>
-
- <script>app.initialize({version:"1.1",url:{base:"/"}})</script>
+
+ <script src="/assets/javascripts/bundle.82b56eb2.min.js"></script>
<script src="/javascripts/extra.js"></script>
diff --git a/freetype/docs/reference/assets/images/favicon.png b/freetype/docs/reference/assets/images/favicon.png
index 76d17f57..1cf13b9f 100644
--- a/freetype/docs/reference/assets/images/favicon.png
+++ b/freetype/docs/reference/assets/images/favicon.png
Binary files differ
diff --git a/freetype/docs/reference/assets/javascripts/bundle.82b56eb2.min.js b/freetype/docs/reference/assets/javascripts/bundle.82b56eb2.min.js
new file mode 100644
index 00000000..2004758a
--- /dev/null
+++ b/freetype/docs/reference/assets/javascripts/bundle.82b56eb2.min.js
@@ -0,0 +1,29 @@
+(()=>{var zi=Object.create;var dt=Object.defineProperty;var qi=Object.getOwnPropertyDescriptor;var Qi=Object.getOwnPropertyNames,ht=Object.getOwnPropertySymbols,Ki=Object.getPrototypeOf,tr=Object.prototype.hasOwnProperty,Wr=Object.prototype.propertyIsEnumerable;var Ur=(e,t,r)=>t in e?dt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,$=(e,t)=>{for(var r in t||(t={}))tr.call(t,r)&&Ur(e,r,t[r]);if(ht)for(var r of ht(t))Wr.call(t,r)&&Ur(e,r,t[r]);return e};var Bi=e=>dt(e,"__esModule",{value:!0});var Dr=(e,t)=>{var r={};for(var o in e)tr.call(e,o)&&t.indexOf(o)<0&&(r[o]=e[o]);if(e!=null&&ht)for(var o of ht(e))t.indexOf(o)<0&&Wr.call(e,o)&&(r[o]=e[o]);return r};var bt=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var Ji=(e,t,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of Qi(t))!tr.call(e,o)&&o!=="default"&&dt(e,o,{get:()=>t[o],enumerable:!(r=qi(t,o))||r.enumerable});return e},tt=e=>Ji(Bi(dt(e!=null?zi(Ki(e)):{},"default",e&&e.__esModule&&"default"in e?{get:()=>e.default,enumerable:!0}:{value:e,enumerable:!0})),e);var zr=bt((rr,Nr)=>{(function(e,t){typeof rr=="object"&&typeof Nr!="undefined"?t():typeof define=="function"&&define.amd?define(t):t()})(rr,function(){"use strict";function e(r){var o=!0,n=!1,i=null,a={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function s(w){return!!(w&&w!==document&&w.nodeName!=="HTML"&&w.nodeName!=="BODY"&&"classList"in w&&"contains"in w.classList)}function c(w){var Fe=w.type,Se=w.tagName;return!!(Se==="INPUT"&&a[Fe]&&!w.readOnly||Se==="TEXTAREA"&&!w.readOnly||w.isContentEditable)}function l(w){w.classList.contains("focus-visible")||(w.classList.add("focus-visible"),w.setAttribute("data-focus-visible-added",""))}function u(w){!w.hasAttribute("data-focus-visible-added")||(w.classList.remove("focus-visible"),w.removeAttribute("data-focus-visible-added"))}function m(w){w.metaKey||w.altKey||w.ctrlKey||(s(r.activeElement)&&l(r.activeElement),o=!0)}function p(w){o=!1}function b(w){!s(w.target)||(o||c(w.target))&&l(w.target)}function g(w){!s(w.target)||(w.target.classList.contains("focus-visible")||w.target.hasAttribute("data-focus-visible-added"))&&(n=!0,window.clearTimeout(i),i=window.setTimeout(function(){n=!1},100),u(w.target))}function h(w){document.visibilityState==="hidden"&&(n&&(o=!0),W())}function W(){document.addEventListener("mousemove",j),document.addEventListener("mousedown",j),document.addEventListener("mouseup",j),document.addEventListener("pointermove",j),document.addEventListener("pointerdown",j),document.addEventListener("pointerup",j),document.addEventListener("touchmove",j),document.addEventListener("touchstart",j),document.addEventListener("touchend",j)}function q(){document.removeEventListener("mousemove",j),document.removeEventListener("mousedown",j),document.removeEventListener("mouseup",j),document.removeEventListener("pointermove",j),document.removeEventListener("pointerdown",j),document.removeEventListener("pointerup",j),document.removeEventListener("touchmove",j),document.removeEventListener("touchstart",j),document.removeEventListener("touchend",j)}function j(w){w.target.nodeName&&w.target.nodeName.toLowerCase()==="html"||(o=!1,q())}document.addEventListener("keydown",m,!0),document.addEventListener("mousedown",p,!0),document.addEventListener("pointerdown",p,!0),document.addEventListener("touchstart",p,!0),document.addEventListener("visibilitychange",h,!0),W(),r.addEventListener("focus",b,!0),r.addEventListener("blur",g,!0),r.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&r.host?r.host.setAttribute("data-js-focus-visible",""):r.nodeType===Node.DOCUMENT_NODE&&(document.documentElement.classList.add("js-focus-visible"),document.documentElement.setAttribute("data-js-focus-visible",""))}if(typeof window!="undefined"&&typeof document!="undefined"){window.applyFocusVisiblePolyfill=e;var t;try{t=new CustomEvent("focus-visible-polyfill-ready")}catch(r){t=document.createEvent("CustomEvent"),t.initCustomEvent("focus-visible-polyfill-ready",!1,!1,{})}window.dispatchEvent(t)}typeof document!="undefined"&&e(document)})});var po=bt((Xa,xt)=>{/*! *****************************************************************************
+Copyright (c) Microsoft Corporation.
+
+Permission to use, copy, modify, and/or distribute this software for any
+purpose with or without fee is hereby granted.
+
+THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
+REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
+AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
+INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
+LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
+OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
+PERFORMANCE OF THIS SOFTWARE.
+***************************************************************************** */var qr,Qr,Kr,Br,Jr,Yr,Gr,Xr,Zr,vt,or,eo,to,ro,De,oo,no,io,ao,so,co,lo,uo,gt;(function(e){var t=typeof global=="object"?global:typeof self=="object"?self:typeof this=="object"?this:{};typeof define=="function"&&define.amd?define("tslib",["exports"],function(o){e(r(t,r(o)))}):typeof xt=="object"&&typeof xt.exports=="object"?e(r(t,r(xt.exports))):e(r(t));function r(o,n){return o!==t&&(typeof Object.create=="function"?Object.defineProperty(o,"__esModule",{value:!0}):o.__esModule=!0),function(i,a){return o[i]=n?n(i,a):a}}})(function(e){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,n){o.__proto__=n}||function(o,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(o[i]=n[i])};qr=function(o,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(o,n);function i(){this.constructor=o}o.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)},Qr=Object.assign||function(o){for(var n,i=1,a=arguments.length;i<a;i++){n=arguments[i];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(o[s]=n[s])}return o},Kr=function(o,n){var i={};for(var a in o)Object.prototype.hasOwnProperty.call(o,a)&&n.indexOf(a)<0&&(i[a]=o[a]);if(o!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,a=Object.getOwnPropertySymbols(o);s<a.length;s++)n.indexOf(a[s])<0&&Object.prototype.propertyIsEnumerable.call(o,a[s])&&(i[a[s]]=o[a[s]]);return i},Br=function(o,n,i,a){var s=arguments.length,c=s<3?n:a===null?a=Object.getOwnPropertyDescriptor(n,i):a,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")c=Reflect.decorate(o,n,i,a);else for(var u=o.length-1;u>=0;u--)(l=o[u])&&(c=(s<3?l(c):s>3?l(n,i,c):l(n,i))||c);return s>3&&c&&Object.defineProperty(n,i,c),c},Jr=function(o,n){return function(i,a){n(i,a,o)}},Yr=function(o,n){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,n)},Gr=function(o,n,i,a){function s(c){return c instanceof i?c:new i(function(l){l(c)})}return new(i||(i=Promise))(function(c,l){function u(b){try{p(a.next(b))}catch(g){l(g)}}function m(b){try{p(a.throw(b))}catch(g){l(g)}}function p(b){b.done?c(b.value):s(b.value).then(u,m)}p((a=a.apply(o,n||[])).next())})},Xr=function(o,n){var i={label:0,sent:function(){if(c[0]&1)throw c[1];return c[1]},trys:[],ops:[]},a,s,c,l;return l={next:u(0),throw:u(1),return:u(2)},typeof Symbol=="function"&&(l[Symbol.iterator]=function(){return this}),l;function u(p){return function(b){return m([p,b])}}function m(p){if(a)throw new TypeError("Generator is already executing.");for(;i;)try{if(a=1,s&&(c=p[0]&2?s.return:p[0]?s.throw||((c=s.return)&&c.call(s),0):s.next)&&!(c=c.call(s,p[1])).done)return c;switch(s=0,c&&(p=[p[0]&2,c.value]),p[0]){case 0:case 1:c=p;break;case 4:return i.label++,{value:p[1],done:!1};case 5:i.label++,s=p[1],p=[0];continue;case 7:p=i.ops.pop(),i.trys.pop();continue;default:if(c=i.trys,!(c=c.length>0&&c[c.length-1])&&(p[0]===6||p[0]===2)){i=0;continue}if(p[0]===3&&(!c||p[1]>c[0]&&p[1]<c[3])){i.label=p[1];break}if(p[0]===6&&i.label<c[1]){i.label=c[1],c=p;break}if(c&&i.label<c[2]){i.label=c[2],i.ops.push(p);break}c[2]&&i.ops.pop(),i.trys.pop();continue}p=n.call(o,i)}catch(b){p=[6,b],s=0}finally{a=c=0}if(p[0]&5)throw p[1];return{value:p[0]?p[1]:void 0,done:!0}}},Zr=function(o,n){for(var i in o)i!=="default"&&!Object.prototype.hasOwnProperty.call(n,i)&&gt(n,o,i)},gt=Object.create?function(o,n,i,a){a===void 0&&(a=i),Object.defineProperty(o,a,{enumerable:!0,get:function(){return n[i]}})}:function(o,n,i,a){a===void 0&&(a=i),o[a]=n[i]},vt=function(o){var n=typeof Symbol=="function"&&Symbol.iterator,i=n&&o[n],a=0;if(i)return i.call(o);if(o&&typeof o.length=="number")return{next:function(){return o&&a>=o.length&&(o=void 0),{value:o&&o[a++],done:!o}}};throw new TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")},or=function(o,n){var i=typeof Symbol=="function"&&o[Symbol.iterator];if(!i)return o;var a=i.call(o),s,c=[],l;try{for(;(n===void 0||n-- >0)&&!(s=a.next()).done;)c.push(s.value)}catch(u){l={error:u}}finally{try{s&&!s.done&&(i=a.return)&&i.call(a)}finally{if(l)throw l.error}}return c},eo=function(){for(var o=[],n=0;n<arguments.length;n++)o=o.concat(or(arguments[n]));return o},to=function(){for(var o=0,n=0,i=arguments.length;n<i;n++)o+=arguments[n].length;for(var a=Array(o),s=0,n=0;n<i;n++)for(var c=arguments[n],l=0,u=c.length;l<u;l++,s++)a[s]=c[l];return a},ro=function(o,n){for(var i=0,a=n.length,s=o.length;i<a;i++,s++)o[s]=n[i];return o},De=function(o){return this instanceof De?(this.v=o,this):new De(o)},oo=function(o,n,i){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var a=i.apply(o,n||[]),s,c=[];return s={},l("next"),l("throw"),l("return"),s[Symbol.asyncIterator]=function(){return this},s;function l(h){a[h]&&(s[h]=function(W){return new Promise(function(q,j){c.push([h,W,q,j])>1||u(h,W)})})}function u(h,W){try{m(a[h](W))}catch(q){g(c[0][3],q)}}function m(h){h.value instanceof De?Promise.resolve(h.value.v).then(p,b):g(c[0][2],h)}function p(h){u("next",h)}function b(h){u("throw",h)}function g(h,W){h(W),c.shift(),c.length&&u(c[0][0],c[0][1])}},no=function(o){var n,i;return n={},a("next"),a("throw",function(s){throw s}),a("return"),n[Symbol.iterator]=function(){return this},n;function a(s,c){n[s]=o[s]?function(l){return(i=!i)?{value:De(o[s](l)),done:s==="return"}:c?c(l):l}:c}},io=function(o){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=o[Symbol.asyncIterator],i;return n?n.call(o):(o=typeof vt=="function"?vt(o):o[Symbol.iterator](),i={},a("next"),a("throw"),a("return"),i[Symbol.asyncIterator]=function(){return this},i);function a(c){i[c]=o[c]&&function(l){return new Promise(function(u,m){l=o[c](l),s(u,m,l.done,l.value)})}}function s(c,l,u,m){Promise.resolve(m).then(function(p){c({value:p,done:u})},l)}},ao=function(o,n){return Object.defineProperty?Object.defineProperty(o,"raw",{value:n}):o.raw=n,o};var r=Object.create?function(o,n){Object.defineProperty(o,"default",{enumerable:!0,value:n})}:function(o,n){o.default=n};so=function(o){if(o&&o.__esModule)return o;var n={};if(o!=null)for(var i in o)i!=="default"&&Object.prototype.hasOwnProperty.call(o,i)&&gt(n,o,i);return r(n,o),n},co=function(o){return o&&o.__esModule?o:{default:o}},lo=function(o,n){if(!n.has(o))throw new TypeError("attempted to get private field on non-instance");return n.get(o)},uo=function(o,n,i){if(!n.has(o))throw new TypeError("attempted to set private field on non-instance");return n.set(o,i),i},e("__extends",qr),e("__assign",Qr),e("__rest",Kr),e("__decorate",Br),e("__param",Jr),e("__metadata",Yr),e("__awaiter",Gr),e("__generator",Xr),e("__exportStar",Zr),e("__createBinding",gt),e("__values",vt),e("__read",or),e("__spread",eo),e("__spreadArrays",to),e("__spreadArray",ro),e("__await",De),e("__asyncGenerator",oo),e("__asyncDelegator",no),e("__asyncValues",io),e("__makeTemplateObject",ao),e("__importStar",so),e("__importDefault",co),e("__classPrivateFieldGet",lo),e("__classPrivateFieldSet",uo)})});var Lr=bt((ft,Ar)=>{/*!
+ * clipboard.js v2.0.8
+ * https://clipboardjs.com/
+ *
+ * Licensed MIT © Zeno Rocha
+ */(function(t,r){typeof ft=="object"&&typeof Ar=="object"?Ar.exports=r():typeof define=="function"&&define.amd?define([],r):typeof ft=="object"?ft.ClipboardJS=r():t.ClipboardJS=r()})(ft,function(){return function(){var e={134:function(o,n,i){"use strict";i.d(n,{default:function(){return Di}});var a=i(279),s=i.n(a),c=i(370),l=i.n(c),u=i(817),m=i.n(u);function p(O){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?p=function(d){return typeof d}:p=function(d){return d&&typeof Symbol=="function"&&d.constructor===Symbol&&d!==Symbol.prototype?"symbol":typeof d},p(O)}function b(O,v){if(!(O instanceof v))throw new TypeError("Cannot call a class as a function")}function g(O,v){for(var d=0;d<v.length;d++){var A=v[d];A.enumerable=A.enumerable||!1,A.configurable=!0,"value"in A&&(A.writable=!0),Object.defineProperty(O,A.key,A)}}function h(O,v,d){return v&&g(O.prototype,v),d&&g(O,d),O}var W=function(){function O(v){b(this,O),this.resolveOptions(v),this.initSelection()}return h(O,[{key:"resolveOptions",value:function(){var d=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.action=d.action,this.container=d.container,this.emitter=d.emitter,this.target=d.target,this.text=d.text,this.trigger=d.trigger,this.selectedText=""}},{key:"initSelection",value:function(){this.text?this.selectFake():this.target&&this.selectTarget()}},{key:"createFakeElement",value:function(){var d=document.documentElement.getAttribute("dir")==="rtl";this.fakeElem=document.createElement("textarea"),this.fakeElem.style.fontSize="12pt",this.fakeElem.style.border="0",this.fakeElem.style.padding="0",this.fakeElem.style.margin="0",this.fakeElem.style.position="absolute",this.fakeElem.style[d?"right":"left"]="-9999px";var A=window.pageYOffset||document.documentElement.scrollTop;return this.fakeElem.style.top="".concat(A,"px"),this.fakeElem.setAttribute("readonly",""),this.fakeElem.value=this.text,this.fakeElem}},{key:"selectFake",value:function(){var d=this,A=this.createFakeElement();this.fakeHandlerCallback=function(){return d.removeFake()},this.fakeHandler=this.container.addEventListener("click",this.fakeHandlerCallback)||!0,this.container.appendChild(A),this.selectedText=m()(A),this.copyText(),this.removeFake()}},{key:"removeFake",value:function(){this.fakeHandler&&(this.container.removeEventListener("click",this.fakeHandlerCallback),this.fakeHandler=null,this.fakeHandlerCallback=null),this.fakeElem&&(this.container.removeChild(this.fakeElem),this.fakeElem=null)}},{key:"selectTarget",value:function(){this.selectedText=m()(this.target),this.copyText()}},{key:"copyText",value:function(){var d;try{d=document.execCommand(this.action)}catch(A){d=!1}this.handleResult(d)}},{key:"handleResult",value:function(d){this.emitter.emit(d?"success":"error",{action:this.action,text:this.selectedText,trigger:this.trigger,clearSelection:this.clearSelection.bind(this)})}},{key:"clearSelection",value:function(){this.trigger&&this.trigger.focus(),document.activeElement.blur(),window.getSelection().removeAllRanges()}},{key:"destroy",value:function(){this.removeFake()}},{key:"action",set:function(){var d=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"copy";if(this._action=d,this._action!=="copy"&&this._action!=="cut")throw new Error('Invalid "action" value, use either "copy" or "cut"')},get:function(){return this._action}},{key:"target",set:function(d){if(d!==void 0)if(d&&p(d)==="object"&&d.nodeType===1){if(this.action==="copy"&&d.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if(this.action==="cut"&&(d.hasAttribute("readonly")||d.hasAttribute("disabled")))throw new Error(`Invalid "target" attribute. You can't cut text from elements with "readonly" or "disabled" attributes`);this._target=d}else throw new Error('Invalid "target" value, use a valid Element')},get:function(){return this._target}}]),O}(),q=W;function j(O){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?j=function(d){return typeof d}:j=function(d){return d&&typeof Symbol=="function"&&d.constructor===Symbol&&d!==Symbol.prototype?"symbol":typeof d},j(O)}function w(O,v){if(!(O instanceof v))throw new TypeError("Cannot call a class as a function")}function Fe(O,v){for(var d=0;d<v.length;d++){var A=v[d];A.enumerable=A.enumerable||!1,A.configurable=!0,"value"in A&&(A.writable=!0),Object.defineProperty(O,A.key,A)}}function Se(O,v,d){return v&&Fe(O.prototype,v),d&&Fe(O,d),O}function Ue(O,v){if(typeof v!="function"&&v!==null)throw new TypeError("Super expression must either be null or a function");O.prototype=Object.create(v&&v.prototype,{constructor:{value:O,writable:!0,configurable:!0}}),v&&Zt(O,v)}function Zt(O,v){return Zt=Object.setPrototypeOf||function(A,R){return A.__proto__=R,A},Zt(O,v)}function Pi(O){var v=Wi();return function(){var A=mt(O),R;if(v){var X=mt(this).constructor;R=Reflect.construct(A,arguments,X)}else R=A.apply(this,arguments);return $i(this,R)}}function $i(O,v){return v&&(j(v)==="object"||typeof v=="function")?v:Vi(O)}function Vi(O){if(O===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return O}function Wi(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(O){return!1}}function mt(O){return mt=Object.setPrototypeOf?Object.getPrototypeOf:function(d){return d.__proto__||Object.getPrototypeOf(d)},mt(O)}function er(O,v){var d="data-clipboard-".concat(O);if(!!v.hasAttribute(d))return v.getAttribute(d)}var Ui=function(O){Ue(d,O);var v=Pi(d);function d(A,R){var X;return w(this,d),X=v.call(this),X.resolveOptions(R),X.listenClick(A),X}return Se(d,[{key:"resolveOptions",value:function(){var R=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.action=typeof R.action=="function"?R.action:this.defaultAction,this.target=typeof R.target=="function"?R.target:this.defaultTarget,this.text=typeof R.text=="function"?R.text:this.defaultText,this.container=j(R.container)==="object"?R.container:document.body}},{key:"listenClick",value:function(R){var X=this;this.listener=l()(R,"click",function(et){return X.onClick(et)})}},{key:"onClick",value:function(R){var X=R.delegateTarget||R.currentTarget;this.clipboardAction&&(this.clipboardAction=null),this.clipboardAction=new q({action:this.action(X),target:this.target(X),text:this.text(X),container:this.container,trigger:X,emitter:this})}},{key:"defaultAction",value:function(R){return er("action",R)}},{key:"defaultTarget",value:function(R){var X=er("target",R);if(X)return document.querySelector(X)}},{key:"defaultText",value:function(R){return er("text",R)}},{key:"destroy",value:function(){this.listener.destroy(),this.clipboardAction&&(this.clipboardAction.destroy(),this.clipboardAction=null)}}],[{key:"isSupported",value:function(){var R=arguments.length>0&&arguments[0]!==void 0?arguments[0]:["copy","cut"],X=typeof R=="string"?[R]:R,et=!!document.queryCommandSupported;return X.forEach(function(Ni){et=et&&!!document.queryCommandSupported(Ni)}),et}}]),d}(s()),Di=Ui},828:function(o){var n=9;if(typeof Element!="undefined"&&!Element.prototype.matches){var i=Element.prototype;i.matches=i.matchesSelector||i.mozMatchesSelector||i.msMatchesSelector||i.oMatchesSelector||i.webkitMatchesSelector}function a(s,c){for(;s&&s.nodeType!==n;){if(typeof s.matches=="function"&&s.matches(c))return s;s=s.parentNode}}o.exports=a},438:function(o,n,i){var a=i(828);function s(u,m,p,b,g){var h=l.apply(this,arguments);return u.addEventListener(p,h,g),{destroy:function(){u.removeEventListener(p,h,g)}}}function c(u,m,p,b,g){return typeof u.addEventListener=="function"?s.apply(null,arguments):typeof p=="function"?s.bind(null,document).apply(null,arguments):(typeof u=="string"&&(u=document.querySelectorAll(u)),Array.prototype.map.call(u,function(h){return s(h,m,p,b,g)}))}function l(u,m,p,b){return function(g){g.delegateTarget=a(g.target,m),g.delegateTarget&&b.call(u,g)}}o.exports=c},879:function(o,n){n.node=function(i){return i!==void 0&&i instanceof HTMLElement&&i.nodeType===1},n.nodeList=function(i){var a=Object.prototype.toString.call(i);return i!==void 0&&(a==="[object NodeList]"||a==="[object HTMLCollection]")&&"length"in i&&(i.length===0||n.node(i[0]))},n.string=function(i){return typeof i=="string"||i instanceof String},n.fn=function(i){var a=Object.prototype.toString.call(i);return a==="[object Function]"}},370:function(o,n,i){var a=i(879),s=i(438);function c(p,b,g){if(!p&&!b&&!g)throw new Error("Missing required arguments");if(!a.string(b))throw new TypeError("Second argument must be a String");if(!a.fn(g))throw new TypeError("Third argument must be a Function");if(a.node(p))return l(p,b,g);if(a.nodeList(p))return u(p,b,g);if(a.string(p))return m(p,b,g);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList")}function l(p,b,g){return p.addEventListener(b,g),{destroy:function(){p.removeEventListener(b,g)}}}function u(p,b,g){return Array.prototype.forEach.call(p,function(h){h.addEventListener(b,g)}),{destroy:function(){Array.prototype.forEach.call(p,function(h){h.removeEventListener(b,g)})}}}function m(p,b,g){return s(document.body,p,b,g)}o.exports=c},817:function(o){function n(i){var a;if(i.nodeName==="SELECT")i.focus(),a=i.value;else if(i.nodeName==="INPUT"||i.nodeName==="TEXTAREA"){var s=i.hasAttribute("readonly");s||i.setAttribute("readonly",""),i.select(),i.setSelectionRange(0,i.value.length),s||i.removeAttribute("readonly"),a=i.value}else{i.hasAttribute("contenteditable")&&i.focus();var c=window.getSelection(),l=document.createRange();l.selectNodeContents(i),c.removeAllRanges(),c.addRange(l),a=c.toString()}return a}o.exports=n},279:function(o){function n(){}n.prototype={on:function(i,a,s){var c=this.e||(this.e={});return(c[i]||(c[i]=[])).push({fn:a,ctx:s}),this},once:function(i,a,s){var c=this;function l(){c.off(i,l),a.apply(s,arguments)}return l._=a,this.on(i,l,s)},emit:function(i){var a=[].slice.call(arguments,1),s=((this.e||(this.e={}))[i]||[]).slice(),c=0,l=s.length;for(c;c<l;c++)s[c].fn.apply(s[c].ctx,a);return this},off:function(i,a){var s=this.e||(this.e={}),c=s[i],l=[];if(c&&a)for(var u=0,m=c.length;u<m;u++)c[u].fn!==a&&c[u].fn._!==a&&l.push(c[u]);return l.length?s[i]=l:delete s[i],this}},o.exports=n,o.exports.TinyEmitter=n}},t={};function r(o){if(t[o])return t[o].exports;var n=t[o]={exports:{}};return e[o](n,n.exports,r),n.exports}return function(){r.n=function(o){var n=o&&o.__esModule?function(){return o.default}:function(){return o};return r.d(n,{a:n}),n}}(),function(){r.d=function(o,n){for(var i in n)r.o(n,i)&&!r.o(o,i)&&Object.defineProperty(o,i,{enumerable:!0,get:n[i]})}}(),function(){r.o=function(o,n){return Object.prototype.hasOwnProperty.call(o,n)}}(),r(134)}().default})});var di=bt((Fx,mi)=>{/*!
+ * escape-html
+ * Copyright(c) 2012-2013 TJ Holowaychuk
+ * Copyright(c) 2015 Andreas Lubbe
+ * Copyright(c) 2015 Tiancheng "Timothy" Gu
+ * MIT Licensed
+ */"use strict";var Ia=/["'&<>]/;mi.exports=Pa;function Pa(e){var t=""+e,r=Ia.exec(t);if(!r)return t;var o,n="",i=0,a=0;for(i=r.index;i<t.length;i++){switch(t.charCodeAt(i)){case 34:o="&quot;";break;case 38:o="&amp;";break;case 39:o="&#39;";break;case 60:o="&lt;";break;case 62:o="&gt;";break;default:continue}a!==i&&(n+=t.substring(a,i)),a=i+1,n+=o}return a!==i?n+t.substring(a,i):n}});var Bw=tt(zr());var fo=tt(po()),{__extends:B,__assign:Za,__rest:es,__decorate:ts,__param:rs,__metadata:os,__awaiter:mo,__generator:yt,__exportStar:ns,__createBinding:is,__values:ce,__read:L,__spread:as,__spreadArrays:ss,__spreadArray:C,__await:St,__asyncGenerator:ho,__asyncDelegator:cs,__asyncValues:bo,__makeTemplateObject:ls,__importStar:us,__importDefault:ps,__classPrivateFieldGet:fs,__classPrivateFieldSet:ms}=fo.default;function S(e){return typeof e=="function"}function wt(e){var t=function(o){Error.call(o),o.stack=new Error().stack},r=e(t);return r.prototype=Object.create(Error.prototype),r.prototype.constructor=r,r}var Et=wt(function(e){return function(r){e(this),this.message=r?r.length+` errors occurred during unsubscription:
+`+r.map(function(o,n){return n+1+") "+o.toString()}).join(`
+ `):"",this.name="UnsubscriptionError",this.errors=r}});function we(e,t){if(e){var r=e.indexOf(t);0<=r&&e.splice(r,1)}}var ie=function(){function e(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._teardowns=null}return e.prototype.unsubscribe=function(){var t,r,o,n,i;if(!this.closed){this.closed=!0;var a=this._parentage;if(a)if(this._parentage=null,Array.isArray(a))try{for(var s=ce(a),c=s.next();!c.done;c=s.next()){var l=c.value;l.remove(this)}}catch(h){t={error:h}}finally{try{c&&!c.done&&(r=s.return)&&r.call(s)}finally{if(t)throw t.error}}else a.remove(this);var u=this.initialTeardown;if(S(u))try{u()}catch(h){i=h instanceof Et?h.errors:[h]}var m=this._teardowns;if(m){this._teardowns=null;try{for(var p=ce(m),b=p.next();!b.done;b=p.next()){var g=b.value;try{vo(g)}catch(h){i=i!=null?i:[],h instanceof Et?i=C(C([],L(i)),L(h.errors)):i.push(h)}}}catch(h){o={error:h}}finally{try{b&&!b.done&&(n=p.return)&&n.call(p)}finally{if(o)throw o.error}}}if(i)throw new Et(i)}},e.prototype.add=function(t){var r;if(t&&t!==this)if(this.closed)vo(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._teardowns=(r=this._teardowns)!==null&&r!==void 0?r:[]).push(t)}},e.prototype._hasParent=function(t){var r=this._parentage;return r===t||Array.isArray(r)&&r.includes(t)},e.prototype._addParent=function(t){var r=this._parentage;this._parentage=Array.isArray(r)?(r.push(t),r):r?[r,t]:t},e.prototype._removeParent=function(t){var r=this._parentage;r===t?this._parentage=null:Array.isArray(r)&&we(r,t)},e.prototype.remove=function(t){var r=this._teardowns;r&&we(r,t),t instanceof e&&t._removeParent(this)},e.EMPTY=function(){var t=new e;return t.closed=!0,t}(),e}();var nr=ie.EMPTY;function Ot(e){return e instanceof ie||e&&"closed"in e&&S(e.remove)&&S(e.add)&&S(e.unsubscribe)}function vo(e){S(e)?e():e.unsubscribe()}var Ee={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var Ne={setTimeout:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=Ne.delegate;return((r==null?void 0:r.setTimeout)||setTimeout).apply(void 0,C([],L(e)))},clearTimeout:function(e){var t=Ne.delegate;return((t==null?void 0:t.clearTimeout)||clearTimeout)(e)},delegate:void 0};function Tt(e){Ne.setTimeout(function(){var t=Ee.onUnhandledError;if(t)t(e);else throw e})}function ee(){}var go=function(){return ir("C",void 0,void 0)}();function xo(e){return ir("E",void 0,e)}function yo(e){return ir("N",e,void 0)}function ir(e,t,r){return{kind:e,value:t,error:r}}var rt=function(e){B(t,e);function t(r){var o=e.call(this)||this;return o.isStopped=!1,r?(o.destination=r,Ot(r)&&r.add(o)):o.destination=Yi,o}return t.create=function(r,o,n){return new ot(r,o,n)},t.prototype.next=function(r){this.isStopped?sr(yo(r),this):this._next(r)},t.prototype.error=function(r){this.isStopped?sr(xo(r),this):(this.isStopped=!0,this._error(r))},t.prototype.complete=function(){this.isStopped?sr(go,this):(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this),this.destination=null)},t.prototype._next=function(r){this.destination.next(r)},t.prototype._error=function(r){try{this.destination.error(r)}finally{this.unsubscribe()}},t.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},t}(ie);var ot=function(e){B(t,e);function t(r,o,n){var i=e.call(this)||this,a;if(S(r))a=r;else if(r){a=r.next,o=r.error,n=r.complete;var s;i&&Ee.useDeprecatedNextContext?(s=Object.create(r),s.unsubscribe=function(){return i.unsubscribe()}):s=r,a=a==null?void 0:a.bind(s),o=o==null?void 0:o.bind(s),n=n==null?void 0:n.bind(s)}return i.destination={next:a?ar(a,i):ee,error:ar(o!=null?o:So,i),complete:n?ar(n,i):ee},i}return t}(rt);function ar(e,t){return function(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];try{e.apply(void 0,C([],L(r)))}catch(n){if(Ee.useDeprecatedSynchronousErrorHandling)if(t._syncErrorHack_isSubscribing)t.__syncError=n;else throw n;else Tt(n)}}}function So(e){throw e}function sr(e,t){var r=Ee.onStoppedNotification;r&&Ne.setTimeout(function(){return r(e,t)})}var Yi={closed:!0,next:ee,error:So,complete:ee};var Me=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function le(e){return e}function wo(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return cr(e)}function cr(e){return e.length===0?le:e.length===1?e[0]:function(r){return e.reduce(function(o,n){return n(o)},r)}}var _=function(){function e(t){t&&(this._subscribe=t)}return e.prototype.lift=function(t){var r=new e;return r.source=this,r.operator=t,r},e.prototype.subscribe=function(t,r,o){var n=Xi(t)?t:new ot(t,r,o);if(Ee.useDeprecatedSynchronousErrorHandling)this._deprecatedSyncErrorSubscribe(n);else{var i=this,a=i.operator,s=i.source;n.add(a?a.call(n,s):s?this._subscribe(n):this._trySubscribe(n))}return n},e.prototype._deprecatedSyncErrorSubscribe=function(t){var r=t;r._syncErrorHack_isSubscribing=!0;var o=this.operator;if(o)t.add(o.call(t,this.source));else try{t.add(this._subscribe(t))}catch(i){r.__syncError=i}for(var n=r;n;){if("__syncError"in n)try{throw n.__syncError}finally{t.unsubscribe()}n=n.destination}r._syncErrorHack_isSubscribing=!1},e.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(r){t.error(r)}},e.prototype.forEach=function(t,r){var o=this;return r=Eo(r),new r(function(n,i){var a;a=o.subscribe(function(s){try{t(s)}catch(c){i(c),a==null||a.unsubscribe()}},i,n)})},e.prototype._subscribe=function(t){var r;return(r=this.source)===null||r===void 0?void 0:r.subscribe(t)},e.prototype[Me]=function(){return this},e.prototype.pipe=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return t.length?cr(t)(this):this},e.prototype.toPromise=function(t){var r=this;return t=Eo(t),new t(function(o,n){var i;r.subscribe(function(a){return i=a},function(a){return n(a)},function(){return o(i)})})},e.create=function(t){return new e(t)},e}();function Eo(e){var t;return(t=e!=null?e:Ee.Promise)!==null&&t!==void 0?t:Promise}function Gi(e){return e&&S(e.next)&&S(e.error)&&S(e.complete)}function Xi(e){return e&&e instanceof rt||Gi(e)&&Ot(e)}function Zi(e){return S(e==null?void 0:e.lift)}function x(e){return function(t){if(Zi(t))return t.lift(function(r){try{return e(r,this)}catch(o){this.error(o)}});throw new TypeError("Unable to lift unknown Observable type")}}var y=function(e){B(t,e);function t(r,o,n,i,a){var s=e.call(this,r)||this;return s.onFinalize=a,s._next=o?function(c){try{o(c)}catch(l){r.error(l)}}:e.prototype._next,s._error=i?function(c){try{i(c)}catch(l){r.error(l)}finally{this.unsubscribe()}}:e.prototype._error,s._complete=n?function(){try{n()}catch(c){r.error(c)}finally{this.unsubscribe()}}:e.prototype._complete,s}return t.prototype.unsubscribe=function(){var r,o=this.closed;e.prototype.unsubscribe.call(this),!o&&((r=this.onFinalize)===null||r===void 0||r.call(this))},t}(rt);var ze={schedule:function(e){var t=requestAnimationFrame,r=cancelAnimationFrame,o=ze.delegate;o&&(t=o.requestAnimationFrame,r=o.cancelAnimationFrame);var n=t(function(i){r=void 0,e(i)});return new ie(function(){return r==null?void 0:r(n)})},requestAnimationFrame:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=ze.delegate;return((r==null?void 0:r.requestAnimationFrame)||requestAnimationFrame).apply(void 0,C([],L(e)))},cancelAnimationFrame:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=ze.delegate;return((r==null?void 0:r.cancelAnimationFrame)||cancelAnimationFrame).apply(void 0,C([],L(e)))},delegate:void 0};var Oo=wt(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}});var M=function(e){B(t,e);function t(){var r=e.call(this)||this;return r.closed=!1,r.observers=[],r.isStopped=!1,r.hasError=!1,r.thrownError=null,r}return t.prototype.lift=function(r){var o=new To(this,this);return o.operator=r,o},t.prototype._throwIfClosed=function(){if(this.closed)throw new Oo},t.prototype.next=function(r){var o,n;if(this._throwIfClosed(),!this.isStopped){var i=this.observers.slice();try{for(var a=ce(i),s=a.next();!s.done;s=a.next()){var c=s.value;c.next(r)}}catch(l){o={error:l}}finally{try{s&&!s.done&&(n=a.return)&&n.call(a)}finally{if(o)throw o.error}}}},t.prototype.error=function(r){if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=r;for(var o=this.observers;o.length;)o.shift().error(r)}},t.prototype.complete=function(){if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;for(var r=this.observers;r.length;)r.shift().complete()}},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=null},Object.defineProperty(t.prototype,"observed",{get:function(){var r;return((r=this.observers)===null||r===void 0?void 0:r.length)>0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(r){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,r)},t.prototype._subscribe=function(r){return this._throwIfClosed(),this._checkFinalizedStatuses(r),this._innerSubscribe(r)},t.prototype._innerSubscribe=function(r){var o=this,n=o.hasError,i=o.isStopped,a=o.observers;return n||i?nr:(a.push(r),new ie(function(){return we(a,r)}))},t.prototype._checkFinalizedStatuses=function(r){var o=this,n=o.hasError,i=o.thrownError,a=o.isStopped;n?r.error(i):a&&r.complete()},t.prototype.asObservable=function(){var r=new _;return r.source=this,r},t.create=function(r,o){return new To(r,o)},t}(_);var To=function(e){B(t,e);function t(r,o){var n=e.call(this)||this;return n.destination=r,n.source=o,n}return t.prototype.next=function(r){var o,n;(n=(o=this.destination)===null||o===void 0?void 0:o.next)===null||n===void 0||n.call(o,r)},t.prototype.error=function(r){var o,n;(n=(o=this.destination)===null||o===void 0?void 0:o.error)===null||n===void 0||n.call(o,r)},t.prototype.complete=function(){var r,o;(o=(r=this.destination)===null||r===void 0?void 0:r.complete)===null||o===void 0||o.call(r)},t.prototype._subscribe=function(r){var o,n;return(n=(o=this.source)===null||o===void 0?void 0:o.subscribe(r))!==null&&n!==void 0?n:nr},t}(M);var nt={now:function(){return(nt.delegate||Date).now()},delegate:void 0};var it=function(e){B(t,e);function t(r,o,n){r===void 0&&(r=Infinity),o===void 0&&(o=Infinity),n===void 0&&(n=nt);var i=e.call(this)||this;return i._bufferSize=r,i._windowTime=o,i._timestampProvider=n,i._buffer=[],i._infiniteTimeWindow=!0,i._infiniteTimeWindow=o===Infinity,i._bufferSize=Math.max(1,r),i._windowTime=Math.max(1,o),i}return t.prototype.next=function(r){var o=this,n=o.isStopped,i=o._buffer,a=o._infiniteTimeWindow,s=o._timestampProvider,c=o._windowTime;n||(i.push(r),!a&&i.push(s.now()+c)),this._trimBuffer(),e.prototype.next.call(this,r)},t.prototype._subscribe=function(r){this._throwIfClosed(),this._trimBuffer();for(var o=this._innerSubscribe(r),n=this,i=n._infiniteTimeWindow,a=n._buffer,s=a.slice(),c=0;c<s.length&&!r.closed;c+=i?1:2)r.next(s[c]);return this._checkFinalizedStatuses(r),o},t.prototype._trimBuffer=function(){var r=this,o=r._bufferSize,n=r._timestampProvider,i=r._buffer,a=r._infiniteTimeWindow,s=(a?1:2)*o;if(o<Infinity&&s<i.length&&i.splice(0,i.length-s),!a){for(var c=n.now(),l=0,u=1;u<i.length&&i[u]<=c;u+=2)l=u;l&&i.splice(0,l+1)}},t}(M);var _o=function(e){B(t,e);function t(r,o){return e.call(this)||this}return t.prototype.schedule=function(r,o){return o===void 0&&(o=0),this},t}(ie);var at={setInterval:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=at.delegate;return((r==null?void 0:r.setInterval)||setInterval).apply(void 0,C([],L(e)))},clearInterval:function(e){var t=at.delegate;return((t==null?void 0:t.clearInterval)||clearInterval)(e)},delegate:void 0};var _t=function(e){B(t,e);function t(r,o){var n=e.call(this,r,o)||this;return n.scheduler=r,n.work=o,n.pending=!1,n}return t.prototype.schedule=function(r,o){if(o===void 0&&(o=0),this.closed)return this;this.state=r;var n=this.id,i=this.scheduler;return n!=null&&(this.id=this.recycleAsyncId(i,n,o)),this.pending=!0,this.delay=o,this.id=this.id||this.requestAsyncId(i,this.id,o),this},t.prototype.requestAsyncId=function(r,o,n){return n===void 0&&(n=0),at.setInterval(r.flush.bind(r,this),n)},t.prototype.recycleAsyncId=function(r,o,n){if(n===void 0&&(n=0),n!=null&&this.delay===n&&this.pending===!1)return o;at.clearInterval(o)},t.prototype.execute=function(r,o){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var n=this._execute(r,o);if(n)return n;this.pending===!1&&this.id!=null&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},t.prototype._execute=function(r,o){var n=!1,i;try{this.work(r)}catch(a){n=!0,i=!!a&&a||new Error(a)}if(n)return this.unsubscribe(),i},t.prototype.unsubscribe=function(){if(!this.closed){var r=this,o=r.id,n=r.scheduler,i=n.actions;this.work=this.state=this.scheduler=null,this.pending=!1,we(i,this),o!=null&&(this.id=this.recycleAsyncId(n,o,null)),this.delay=null,e.prototype.unsubscribe.call(this)}},t}(_o);var lr=function(){function e(t,r){r===void 0&&(r=e.now),this.schedulerActionCtor=t,this.now=r}return e.prototype.schedule=function(t,r,o){return r===void 0&&(r=0),new this.schedulerActionCtor(this,t).schedule(o,r)},e.now=nt.now,e}();var Mt=function(e){B(t,e);function t(r,o){o===void 0&&(o=lr.now);var n=e.call(this,r,o)||this;return n.actions=[],n._active=!1,n._scheduled=void 0,n}return t.prototype.flush=function(r){var o=this.actions;if(this._active){o.push(r);return}var n;this._active=!0;do if(n=r.execute(r.state,r.delay))break;while(r=o.shift());if(this._active=!1,n){for(;r=o.shift();)r.unsubscribe();throw n}},t}(lr);var st=new Mt(_t),Mo=st;var Ao=function(e){B(t,e);function t(r,o){var n=e.call(this,r,o)||this;return n.scheduler=r,n.work=o,n}return t.prototype.requestAsyncId=function(r,o,n){return n===void 0&&(n=0),n!==null&&n>0?e.prototype.requestAsyncId.call(this,r,o,n):(r.actions.push(this),r._scheduled||(r._scheduled=ze.requestAnimationFrame(function(){return r.flush(void 0)})))},t.prototype.recycleAsyncId=function(r,o,n){if(n===void 0&&(n=0),n!=null&&n>0||n==null&&this.delay>0)return e.prototype.recycleAsyncId.call(this,r,o,n);r.actions.length===0&&(ze.cancelAnimationFrame(o),r._scheduled=void 0)},t}(_t);var Lo=function(e){B(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.flush=function(r){this._active=!0,this._scheduled=void 0;var o=this.actions,n,i=-1;r=r||o.shift();var a=o.length;do if(n=r.execute(r.state,r.delay))break;while(++i<a&&(r=o.shift()));if(this._active=!1,n){for(;++i<a&&(r=o.shift());)r.unsubscribe();throw n}},t}(Mt);var J=new Lo(Ao);var de=new _(function(e){return e.complete()});function qe(e,t){return new _(function(r){var o=0;return t.schedule(function(){o===e.length?r.complete():(r.next(e[o++]),r.closed||this.schedule())})})}var Qe=function(e){return e&&typeof e.length=="number"&&typeof e!="function"};function At(e){return S(e==null?void 0:e.then)}function ko(e,t){return new _(function(r){var o=new ie;return o.add(t.schedule(function(){var n=e[Me]();o.add(n.subscribe({next:function(i){o.add(t.schedule(function(){return r.next(i)}))},error:function(i){o.add(t.schedule(function(){return r.error(i)}))},complete:function(){o.add(t.schedule(function(){return r.complete()}))}}))})),o})}function Co(e,t){return new _(function(r){return t.schedule(function(){return e.then(function(o){r.add(t.schedule(function(){r.next(o),r.add(t.schedule(function(){return r.complete()}))}))},function(o){r.add(t.schedule(function(){return r.error(o)}))})})})}function ea(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var Lt=ea();function Ho(e,t,r,o){o===void 0&&(o=0);var n=t.schedule(function(){try{r.call(this)}catch(i){e.error(i)}},o);return e.add(n),n}function jo(e,t){return new _(function(r){var o;return r.add(t.schedule(function(){o=e[Lt](),Ho(r,t,function(){var n=o.next(),i=n.value,a=n.done;a?r.complete():(r.next(i),this.schedule())})})),function(){return S(o==null?void 0:o.return)&&o.return()}})}function kt(e,t){if(!e)throw new Error("Iterable cannot be null");return new _(function(r){var o=new ie;return o.add(t.schedule(function(){var n=e[Symbol.asyncIterator]();o.add(t.schedule(function(){var i=this;n.next().then(function(a){a.done?r.complete():(r.next(a.value),i.schedule())})}))})),o})}function Ct(e){return S(e[Me])}function Ht(e){return S(e==null?void 0:e[Lt])}function jt(e){return Symbol.asyncIterator&&S(e==null?void 0:e[Symbol.asyncIterator])}function Ft(e){return new TypeError("You provided "+(e!==null&&typeof e=="object"?"an invalid object":"'"+e+"'")+" where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.")}function Rt(e){return ho(this,arguments,function(){var r,o,n,i;return yt(this,function(a){switch(a.label){case 0:r=e.getReader(),a.label=1;case 1:a.trys.push([1,,9,10]),a.label=2;case 2:return[4,St(r.read())];case 3:return o=a.sent(),n=o.value,i=o.done,i?[4,St(void 0)]:[3,5];case 4:return[2,a.sent()];case 5:return[4,St(n)];case 6:return[4,a.sent()];case 7:return a.sent(),[3,2];case 8:return[3,10];case 9:return r.releaseLock(),[7];case 10:return[2]}})})}function It(e){return S(e==null?void 0:e.getReader)}function Fo(e,t){return kt(Rt(e),t)}function Ro(e,t){if(e!=null){if(Ct(e))return ko(e,t);if(Qe(e))return qe(e,t);if(At(e))return Co(e,t);if(jt(e))return kt(e,t);if(Ht(e))return jo(e,t);if(It(e))return Fo(e,t)}throw Ft(e)}function ve(e,t){return t?Ro(e,t):N(e)}function N(e){if(e instanceof _)return e;if(e!=null){if(Ct(e))return ta(e);if(Qe(e))return ur(e);if(At(e))return ra(e);if(jt(e))return Io(e);if(Ht(e))return oa(e);if(It(e))return na(e)}throw Ft(e)}function ta(e){return new _(function(t){var r=e[Me]();if(S(r.subscribe))return r.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function ur(e){return new _(function(t){for(var r=0;r<e.length&&!t.closed;r++)t.next(e[r]);t.complete()})}function ra(e){return new _(function(t){e.then(function(r){t.closed||(t.next(r),t.complete())},function(r){return t.error(r)}).then(null,Tt)})}function oa(e){return new _(function(t){var r,o;try{for(var n=ce(e),i=n.next();!i.done;i=n.next()){var a=i.value;if(t.next(a),t.closed)return}}catch(s){r={error:s}}finally{try{i&&!i.done&&(o=n.return)&&o.call(n)}finally{if(r)throw r.error}}t.complete()})}function Io(e){return new _(function(t){ia(e,t).catch(function(r){return t.error(r)})})}function na(e){return Io(Rt(e))}function ia(e,t){var r,o,n,i;return mo(this,void 0,void 0,function(){var a,s;return yt(this,function(c){switch(c.label){case 0:c.trys.push([0,5,6,11]),r=bo(e),c.label=1;case 1:return[4,r.next()];case 2:if(o=c.sent(),!!o.done)return[3,4];if(a=o.value,t.next(a),t.closed)return[2];c.label=3;case 3:return[3,1];case 4:return[3,11];case 5:return s=c.sent(),n={error:s},[3,11];case 6:return c.trys.push([6,,9,10]),o&&!o.done&&(i=r.return)?[4,i.call(r)]:[3,8];case 7:c.sent(),c.label=8;case 8:return[3,10];case 9:if(n)throw n.error;return[7];case 10:return[7];case 11:return t.complete(),[2]}})})}function ge(e,t){return t?qe(e,t):ur(e)}function Pt(e){return e&&S(e.schedule)}function pr(e){return e[e.length-1]}function Ae(e){return S(pr(e))?e.pop():void 0}function pe(e){return Pt(pr(e))?e.pop():void 0}function $t(e,t){return typeof pr(e)=="number"?e.pop():t}function F(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=pe(e);return r?qe(e,r):ge(e)}function Po(e){return e instanceof Date&&!isNaN(e)}function f(e,t){return x(function(r,o){var n=0;r.subscribe(new y(o,function(i){o.next(e.call(t,i,n++))}))})}var aa=Array.isArray;function sa(e,t){return aa(t)?e.apply(void 0,C([],L(t))):e(t)}function Le(e){return f(function(t){return sa(e,t)})}function Y(e,t){return t===void 0&&(t=0),x(function(r,o){r.subscribe(new y(o,function(n){return o.add(e.schedule(function(){return o.next(n)},t))},function(){return o.add(e.schedule(function(){return o.complete()},t))},function(n){return o.add(e.schedule(function(){return o.error(n)},t))}))})}var ca=Array.isArray,la=Object.getPrototypeOf,ua=Object.prototype,pa=Object.keys;function $o(e){if(e.length===1){var t=e[0];if(ca(t))return{args:t,keys:null};if(fa(t)){var r=pa(t);return{args:r.map(function(o){return t[o]}),keys:r}}}return{args:e,keys:null}}function fa(e){return e&&typeof e=="object"&&la(e)===ua}function Vo(e,t){return e.reduce(function(r,o,n){return r[o]=t[n],r},{})}function G(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=pe(e),o=Ae(e),n=$o(e),i=n.args,a=n.keys;if(i.length===0)return ve([],r);var s=new _(fr(i,r,a?function(c){return Vo(a,c)}:le));return o?s.pipe(Le(o)):s}function fr(e,t,r){return r===void 0&&(r=le),function(o){Wo(t,function(){for(var n=e.length,i=new Array(n),a=n,s=n,c=function(u){Wo(t,function(){var m=ve(e[u],t),p=!1;m.subscribe(new y(o,function(b){i[u]=b,p||(p=!0,s--),s||o.next(r(i.slice()))},function(){--a||o.complete()}))},o)},l=0;l<n;l++)c(l)},o)}}function Wo(e,t,r){e?r.add(e.schedule(t)):t()}function Uo(e,t,r,o,n,i,a,s){var c=[],l=0,u=0,m=!1,p=function(){m&&!c.length&&!l&&t.complete()},b=function(h){return l<o?g(h):c.push(h)},g=function(h){i&&t.next(h),l++;var W=!1;N(r(h,u++)).subscribe(new y(t,function(q){n==null||n(q),i?b(q):t.next(q)},function(){W=!0},void 0,function(){if(W)try{l--;for(var q=function(){var j=c.shift();a?t.add(a.schedule(function(){return g(j)})):g(j)};c.length&&l<o;)q();p()}catch(j){t.error(j)}}))};return e.subscribe(new y(t,b,function(){m=!0,p()})),function(){s==null||s()}}function te(e,t,r){return r===void 0&&(r=Infinity),S(t)?te(function(o,n){return f(function(i,a){return t(o,i,n,a)})(N(e(o,n)))},r):(typeof t=="number"&&(r=t),x(function(o,n){return Uo(o,n,e,r)}))}function Ke(e){return e===void 0&&(e=Infinity),te(le,e)}function Do(){return Ke(1)}function ct(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return Do()(ge(e,pe(e)))}function Oe(e){return new _(function(t){N(e()).subscribe(t)})}var ma=["addListener","removeListener"],da=["addEventListener","removeEventListener"],ha=["on","off"];function T(e,t,r,o){if(S(r)&&(o=r,r=void 0),o)return T(e,t,r).pipe(Le(o));var n=L(ga(e)?da.map(function(s){return function(c){return e[s](t,c,r)}}):ba(e)?ma.map(No(e,t)):va(e)?ha.map(No(e,t)):[],2),i=n[0],a=n[1];if(!i&&Qe(e))return te(function(s){return T(s,t,r)})(ge(e));if(!i)throw new TypeError("Invalid event target");return new _(function(s){var c=function(){for(var l=[],u=0;u<arguments.length;u++)l[u]=arguments[u];return s.next(1<l.length?l:l[0])};return i(c),function(){return a(c)}})}function No(e,t){return function(r){return function(o){return e[r](t,o)}}}function ba(e){return S(e.addListener)&&S(e.removeListener)}function va(e){return S(e.on)&&S(e.off)}function ga(e){return S(e.addEventListener)&&S(e.removeEventListener)}function Vt(e,t,r){return r?Vt(e,t).pipe(Le(r)):new _(function(o){var n=function(){for(var a=[],s=0;s<arguments.length;s++)a[s]=arguments[s];return o.next(a.length===1?a[0]:a)},i=e(n);return S(t)?function(){return t(n,i)}:void 0})}function zo(e,t,r){e===void 0&&(e=0),r===void 0&&(r=Mo);var o=-1;return t!=null&&(Pt(t)?r=t:o=t),new _(function(n){var i=Po(e)?+e-r.now():e;i<0&&(i=0);var a=0;return r.schedule(function(){n.closed||(n.next(a++),0<=o?this.schedule(void 0,o):n.complete())},i)})}function I(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=pe(e),o=$t(e,Infinity),n=e;return n.length?n.length===1?N(n[0]):Ke(o)(ge(n,r)):de}var Z=new _(ee);var xa=Array.isArray;function Be(e){return e.length===1&&xa(e[0])?e[0]:e}function k(e,t){return x(function(r,o){var n=0;r.subscribe(new y(o,function(i){return e.call(t,i,n++)&&o.next(i)}))})}function lt(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=Ae(e),o=Be(e);return o.length?new _(function(n){var i=o.map(function(){return[]}),a=o.map(function(){return!1});n.add(function(){i=a=null});for(var s=function(l){N(o[l]).subscribe(new y(n,function(u){if(i[l].push(u),i.every(function(p){return p.length})){var m=i.map(function(p){return p.shift()});n.next(r?r.apply(void 0,C([],L(m))):m),i.some(function(p,b){return!p.length&&a[b]})&&n.complete()}},function(){a[l]=!0,!i[l].length&&n.complete()}))},c=0;!n.closed&&c<o.length;c++)s(c);return function(){i=a=null}}):de}function he(e,t){return t===void 0&&(t=null),t=t!=null?t:e,x(function(r,o){var n=[],i=0;r.subscribe(new y(o,function(a){var s,c,l,u,m=null;i++%t==0&&n.push([]);try{for(var p=ce(n),b=p.next();!b.done;b=p.next()){var g=b.value;g.push(a),e<=g.length&&(m=m!=null?m:[],m.push(g))}}catch(q){s={error:q}}finally{try{b&&!b.done&&(c=p.return)&&c.call(p)}finally{if(s)throw s.error}}if(m)try{for(var h=ce(m),W=h.next();!W.done;W=h.next()){var g=W.value;we(n,g),o.next(g)}}catch(q){l={error:q}}finally{try{W&&!W.done&&(u=h.return)&&u.call(h)}finally{if(l)throw l.error}}},function(){var a,s;try{for(var c=ce(n),l=c.next();!l.done;l=c.next()){var u=l.value;o.next(u)}}catch(m){a={error:m}}finally{try{l&&!l.done&&(s=c.return)&&s.call(c)}finally{if(a)throw a.error}}o.complete()},void 0,function(){n=null}))})}function Je(e){return x(function(t,r){var o=null,n=!1,i;o=t.subscribe(new y(r,void 0,void 0,function(a){i=N(e(a,Je(e)(t))),o?(o.unsubscribe(),o=null,i.subscribe(r)):n=!0})),n&&(o.unsubscribe(),o=null,i.subscribe(r))})}function qo(e,t,r,o,n){return function(i,a){var s=r,c=t,l=0;i.subscribe(new y(a,function(u){var m=l++;c=s?e(c,u,m):(s=!0,u),o&&a.next(c)},n&&function(){s&&a.next(c),a.complete()}))}}function mr(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=Ae(e);return r?wo(mr.apply(void 0,C([],L(e))),Le(r)):x(function(o,n){fr(C([o],L(Be(e))))(n)})}function Wt(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return mr.apply(void 0,C([],L(e)))}function dr(e,t){return S(t)?te(e,t,1):te(e,1)}function hr(e,t){return t===void 0&&(t=st),x(function(r,o){var n=null,i=null,a=null,s=function(){if(n){n.unsubscribe(),n=null;var l=i;i=null,o.next(l)}};function c(){var l=a+e,u=t.now();if(u<l){n=this.schedule(void 0,l-u);return}s()}r.subscribe(new y(o,function(l){i=l,a=t.now(),n||(n=t.schedule(c,e))},function(){s(),o.complete()},void 0,function(){i=n=null}))})}function Re(e){return x(function(t,r){var o=!1;t.subscribe(new y(r,function(n){o=!0,r.next(n)},function(){o||r.next(e),r.complete()}))})}function xe(e){return e<=0?function(){return de}:x(function(t,r){var o=0;t.subscribe(new y(r,function(n){++o<=e&&(r.next(n),e<=o&&r.complete())}))})}function Qo(){return x(function(e,t){e.subscribe(new y(t,ee))})}function oe(e){return f(function(){return e})}function br(e,t){return t?function(r){return ct(t.pipe(xe(1),Qo()),r.pipe(br(e)))}:te(function(r,o){return e(r,o).pipe(xe(1),oe(r))})}function Te(e,t){t===void 0&&(t=st);var r=zo(e,t);return br(function(){return r})}function z(e,t){return t===void 0&&(t=le),e=e!=null?e:ya,x(function(r,o){var n,i=!0;r.subscribe(new y(o,function(a){var s=t(a);(i||!e(n,s))&&(i=!1,n=s,o.next(a))}))})}function ya(e,t){return e===t}function U(e,t){return z(function(r,o){return t?t(r[e],o[e]):r[e]===o[e]})}function P(e){return x(function(t,r){try{t.subscribe(r)}finally{r.add(e)}})}function vr(e){return e<=0?function(){return de}:x(function(t,r){var o=[];t.subscribe(new y(r,function(n){o.push(n),e<o.length&&o.shift()},function(){var n,i;try{for(var a=ce(o),s=a.next();!s.done;s=a.next()){var c=s.value;r.next(c)}}catch(l){n={error:l}}finally{try{s&&!s.done&&(i=a.return)&&i.call(a)}finally{if(n)throw n.error}}r.complete()},void 0,function(){o=null}))})}function Ko(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=pe(e),o=$t(e,Infinity);return e=Be(e),x(function(n,i){Ke(o)(ge(C([n],L(e)),r)).subscribe(i)})}function ut(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return Ko.apply(void 0,C([],L(e)))}function Ye(e){return x(function(t,r){var o=!1,n=null;t.subscribe(new y(r,function(a){o=!0,n=a}));var i=function(){if(o){o=!1;var a=n;n=null,r.next(a)}};e.subscribe(new y(r,i,ee))})}function gr(e,t){return x(qo(e,t,arguments.length>=2,!0))}function ne(e){e===void 0&&(e={});var t=e.connector,r=t===void 0?function(){return new M}:t,o=e.resetOnError,n=o===void 0?!0:o,i=e.resetOnComplete,a=i===void 0?!0:i,s=e.resetOnRefCountZero,c=s===void 0?!0:s;return function(l){var u=null,m=null,p=null,b=0,g=!1,h=!1,W=function(){m==null||m.unsubscribe(),m=null},q=function(){W(),u=p=null,g=h=!1},j=function(){var w=u;q(),w==null||w.unsubscribe()};return x(function(w,Fe){b++,!h&&!g&&W();var Se=p=p!=null?p:r();Fe.add(function(){b--,b===0&&!h&&!g&&(m=xr(j,c))}),Se.subscribe(Fe),u||(u=new ot({next:function(Ue){return Se.next(Ue)},error:function(Ue){h=!0,W(),m=xr(q,n,Ue),Se.error(Ue)},complete:function(){g=!0,W(),m=xr(q,a),Se.complete()}}),ve(w).subscribe(u))})(l)}}function xr(e,t){for(var r=[],o=2;o<arguments.length;o++)r[o-2]=arguments[o];return t===!0?(e(),null):t===!1?null:t.apply(void 0,C([],L(r))).pipe(xe(1)).subscribe(function(){return e()})}function re(e,t,r){var o,n,i,a=!1;return e&&typeof e=="object"?(i=(o=e.bufferSize)!==null&&o!==void 0?o:Infinity,t=(n=e.windowTime)!==null&&n!==void 0?n:Infinity,a=!!e.refCount,r=e.scheduler):i=e!=null?e:Infinity,ne({connector:function(){return new it(i,t,r)},resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:a})}function Ut(e){return k(function(t,r){return e<=r})}function yr(e){return x(function(t,r){var o=!1,n=new y(r,function(){n==null||n.unsubscribe(),o=!0},ee);N(e).subscribe(n),t.subscribe(new y(r,function(i){return o&&r.next(i)}))})}function V(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=pe(e);return x(function(o,n){(r?ct(e,o,r):ct(e,o)).subscribe(n)})}function E(e,t){return x(function(r,o){var n=null,i=0,a=!1,s=function(){return a&&!n&&o.complete()};r.subscribe(new y(o,function(c){n==null||n.unsubscribe();var l=0,u=i++;N(e(c,u)).subscribe(n=new y(o,function(m){return o.next(t?t(c,m,u,l++):m)},function(){n=null,s()}))},function(){a=!0,s()}))})}function Sr(e,t){return S(t)?E(function(){return e},t):E(function(){return e})}function wr(e){return x(function(t,r){N(e).subscribe(new y(r,function(){return r.complete()},ee)),!r.closed&&t.subscribe(r)})}function Er(e,t){return t===void 0&&(t=!1),x(function(r,o){var n=0;r.subscribe(new y(o,function(i){var a=e(i,n++);(a||t)&&o.next(i),!a&&o.complete()}))})}function H(e,t,r){var o=S(e)||t||r?{next:e,error:t,complete:r}:e;return o?x(function(n,i){n.subscribe(new y(i,function(a){var s;(s=o.next)===null||s===void 0||s.call(o,a),i.next(a)},function(){var a;(a=o.complete)===null||a===void 0||a.call(o),i.complete()},function(a){var s;(s=o.error)===null||s===void 0||s.call(o,a),i.error(a)}))}):le}var Sa={leading:!0,trailing:!1};function Or(e,t){var r=t===void 0?Sa:t,o=r.leading,n=r.trailing;return x(function(i,a){var s=!1,c=null,l=null,u=!1,m=function(){l==null||l.unsubscribe(),l=null,n&&(g(),u&&a.complete())},p=function(){l=null,u&&a.complete()},b=function(h){return l=N(e(h)).subscribe(new y(a,m,p))},g=function(){if(s){s=!1;var h=c;c=null,a.next(h),!u&&b(h)}};i.subscribe(new y(a,function(h){s=!0,c=h,!(l&&!l.closed)&&(o?g():b(h))},function(){u=!0,!(n&&s&&l&&!l.closed)&&a.complete()}))})}function be(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=Ae(e);return x(function(o,n){for(var i=e.length,a=new Array(i),s=e.map(function(){return!1}),c=!1,l=function(m){N(e[m]).subscribe(new y(n,function(p){a[m]=p,!c&&!s[m]&&(s[m]=!0,(c=s.every(le))&&(s=null))},ee))},u=0;u<i;u++)l(u);o.subscribe(new y(n,function(m){if(c){var p=C([m],L(a));n.next(r?r.apply(void 0,C([],L(p))):p)}}))})}function Bo(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return x(function(r,o){lt.apply(void 0,C([r],L(e))).subscribe(o)})}function Tr(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return Bo.apply(void 0,C([],L(e)))}function Jo(){let e=new it;return T(document,"DOMContentLoaded").pipe(oe(document)).subscribe(e),e}function ae(e,t=document){return t.querySelector(e)||void 0}function fe(e,t=document){let r=ae(e,t);if(typeof r=="undefined")throw new ReferenceError(`Missing element: expected "${e}" to be present`);return r}function Ie(){return document.activeElement instanceof HTMLElement?document.activeElement:void 0}function Q(e,t=document){return Array.from(t.querySelectorAll(e))}function Ge(e){return document.createElement(e)}function Pe(e,...t){e.replaceWith(...t)}function ke(e,t=!0){t?e.focus():e.blur()}function Yo(e){return I(T(e,"focus"),T(e,"blur")).pipe(f(({type:t})=>t==="focus"),V(e===Ie()))}var Go=new M,wa=Oe(()=>F(new ResizeObserver(e=>{for(let t of e)Go.next(t)}))).pipe(E(e=>Z.pipe(V(e)).pipe(P(()=>e.disconnect()))),re(1));function Ce(e){return{width:e.offsetWidth,height:e.offsetHeight}}function Dt(e){return{width:e.scrollWidth,height:e.scrollHeight}}function He(e){return wa.pipe(H(t=>t.observe(e)),E(t=>Go.pipe(k(({target:r})=>r===e),P(()=>t.unobserve(e)),f(()=>Ce(e)))),V(Ce(e)))}function Xo(e){return{x:e.scrollLeft,y:e.scrollTop}}function Ea(e){return I(T(e,"scroll"),T(window,"resize")).pipe(f(()=>Xo(e)),V(Xo(e)))}function Zo(e,t=16){return Ea(e).pipe(f(({y:r})=>{let o=Ce(e),n=Dt(e);return r>=n.height-o.height-t}),z())}function en(e){if(e instanceof HTMLInputElement)e.select();else throw new Error("Not implemented")}var Nt={drawer:fe("[data-md-toggle=drawer]"),search:fe("[data-md-toggle=search]")};function tn(e){return Nt[e].checked}function $e(e,t){Nt[e].checked!==t&&Nt[e].click()}function zt(e){let t=Nt[e];return T(t,"change").pipe(f(()=>t.checked),V(t.checked))}function Oa(e){switch(e.tagName){case"INPUT":case"SELECT":case"TEXTAREA":return!0;default:return e.isContentEditable}}function rn(){return T(window,"keydown").pipe(k(e=>!(e.metaKey||e.ctrlKey)),f(e=>({mode:tn("search")?"search":"global",type:e.key,claim(){e.preventDefault(),e.stopPropagation()}})),k(({mode:e})=>{if(e==="global"){let t=Ie();if(typeof t!="undefined")return!Oa(t)}return!0}),ne())}function on(){return new URL(location.href)}function nn(e){location.href=e.href}function an(){return new M}function sn(){return location.hash.substring(1)}function cn(e){let t=Ge("a");t.href=e,t.addEventListener("click",r=>r.stopPropagation()),t.click()}function Ta(){return T(window,"hashchange").pipe(f(sn),V(sn()),k(e=>e.length>0),ne())}function ln(){return Ta().pipe(E(e=>F(ae(`[id="${e}"]`))))}function pt(e){let t=matchMedia(e);return Vt(r=>t.addListener(()=>r(t.matches))).pipe(V(t.matches))}function un(){return T(window,"beforeprint").pipe(oe(void 0))}function _r(e,t){return e.pipe(E(r=>r?t():Z))}function qt(e,t={credentials:"same-origin"}){return ve(fetch(`${e}`,t)).pipe(k(r=>r.status===200))}function ye(e,t){return qt(e,t).pipe(E(r=>r.json()),re(1))}function pn(e,t){let r=new DOMParser;return qt(e,t).pipe(E(o=>o.text()),f(o=>r.parseFromString(o,"text/xml")),re(1))}function fn(){return{x:Math.max(0,pageXOffset),y:Math.max(0,pageYOffset)}}function Mr({x:e,y:t}){window.scrollTo(e||0,t||0)}function mn(){return I(T(window,"scroll",{passive:!0}),T(window,"resize",{passive:!0})).pipe(f(fn),V(fn()))}function dn(){return{width:innerWidth,height:innerHeight}}function hn(){return T(window,"resize",{passive:!0}).pipe(f(dn),V(dn()))}function bn(){return G([mn(),hn()]).pipe(f(([e,t])=>({offset:e,size:t})),re(1))}function Qt(e,{viewport$:t,header$:r}){let o=t.pipe(U("size")),n=G([o,r]).pipe(f(()=>({x:e.offsetLeft,y:e.offsetTop})));return G([r,t,n]).pipe(f(([{height:i},{offset:a,size:s},{x:c,y:l}])=>({offset:{x:a.x-c,y:a.y-l+i},size:s})))}function vn(e,{tx$:t}){let r=T(e,"message").pipe(f(({data:o})=>o));return t.pipe(Or(()=>r,{leading:!0,trailing:!0}),H(o=>e.postMessage(o)),Sr(r),ne())}var _a=fe("#__config"),Xe=JSON.parse(_a.textContent);Xe.base=new URL(Xe.base,on()).toString().replace(/\/$/,"");function se(){return Xe}function Kt(e){return Xe.features.includes(e)}function K(e,t){return typeof t!="undefined"?Xe.translations[e].replace("#",t.toString()):Xe.translations[e]}function je(e,t=document){return fe(`[data-md-component=${e}]`,t)}function me(e,t=document){return Q(`[data-md-component=${e}]`,t)}var Zn=tt(Lr());function gn(e,t=0){e.setAttribute("tabindex",t.toString())}function xn(e){e.removeAttribute("tabindex")}function yn(e,t){e.setAttribute("data-md-state","lock"),e.style.top=`-${t}px`}function Sn(e){let t=-1*parseInt(e.style.top,10);e.removeAttribute("data-md-state"),e.style.top="",t&&window.scrollTo(0,t)}function wn(e,t){e.setAttribute("data-md-state",t)}function En(e){e.removeAttribute("data-md-state")}function On(e,t){e.classList.toggle("md-nav__link--active",t)}function Tn(e){e.classList.remove("md-nav__link--active")}function _n(e,t){e.firstElementChild.innerHTML=t}function Mn(e,t){e.setAttribute("data-md-state",t)}function An(e){e.removeAttribute("data-md-state")}function Ln(e,t){e.setAttribute("data-md-state",t)}function kn(e){e.removeAttribute("data-md-state")}function Cn(e,t){e.setAttribute("data-md-state",t)}function Hn(e){e.removeAttribute("data-md-state")}function jn(e,t){e.placeholder=t}function Fn(e){e.placeholder=K("search.placeholder")}function Rn(e,t){if(typeof t=="string"||typeof t=="number")e.innerHTML+=t.toString();else if(t instanceof Node)e.appendChild(t);else if(Array.isArray(t))for(let r of t)Rn(e,r)}function D(e,t,...r){let o=document.createElement(e);if(t)for(let n of Object.keys(t))typeof t[n]!="boolean"?o.setAttribute(n,t[n]):t[n]&&o.setAttribute(n,"");for(let n of r)Rn(o,n);return o}function In(e,t){let r=t;if(e.length>r){for(;e[r]!==" "&&--r>0;);return`${e.substring(0,r)}...`}return e}function Bt(e){if(e>999){let t=+((e-950)%1e3>99);return`${((e+1e-6)/1e3).toFixed(t)}k`}else return e.toString()}function Pn(e,t){switch(t){case 0:e.textContent=K("search.result.none");break;case 1:e.textContent=K("search.result.one");break;default:e.textContent=K("search.result.other",Bt(t))}}function kr(e){e.textContent=K("search.result.placeholder")}function $n(e,t){e.appendChild(t)}function Vn(e){e.innerHTML=""}function Wn(e,t){e.style.top=`${t}px`}function Un(e){e.style.top=""}function Dn(e,t){let r=e.firstElementChild;r.style.height=`${t-2*r.offsetTop}px`}function Nn(e){let t=e.firstElementChild;t.style.height=""}function zn(e,t){e.lastElementChild.appendChild(t)}function qn(e,t){e.lastElementChild.setAttribute("data-md-state",t)}function Qn(e,t){e.setAttribute("data-md-state",t)}function Cr(e){e.removeAttribute("data-md-state")}function Kn(e,t){e.setAttribute("data-md-state",t)}function Hr(e){e.removeAttribute("data-md-state")}function Bn(e){return D("button",{class:"md-clipboard md-icon",title:K("clipboard.copy"),"data-clipboard-target":`#${e} > code`})}var Ve;(function(r){r[r.TEASER=1]="TEASER",r[r.PARENT=2]="PARENT"})(Ve||(Ve={}));function jr(e,t){let r=t&2,o=t&1,n=Object.keys(e.terms).filter(a=>!e.terms[a]).map(a=>[D("del",null,a)," "]).flat().slice(0,-1),i=e.location;return D("a",{href:i,class:"md-search-result__link",tabIndex:-1},D("article",{class:["md-search-result__article",...r?["md-search-result__article--document"]:[]].join(" "),"data-md-score":e.score.toFixed(2)},r>0&&D("div",{class:"md-search-result__icon md-icon"}),D("h1",{class:"md-search-result__title"},e.title),o>0&&e.text.length>0&&D("p",{class:"md-search-result__teaser"},In(e.text,320)),o>0&&n.length>0&&D("p",{class:"md-search-result__terms"},K("search.result.term.missing"),": ",n)))}function Jn(e){let t=e[0].score,r=[...e],o=r.findIndex(l=>!l.location.includes("#")),[n]=r.splice(o,1),i=r.findIndex(l=>l.score<t);i===-1&&(i=r.length);let a=r.slice(0,i),s=r.slice(i),c=[jr(n,2|+(!o&&i===0)),...a.map(l=>jr(l,1)),...s.length?[D("details",{class:"md-search-result__more"},D("summary",{tabIndex:-1},s.length>0&&s.length===1?K("search.result.more.one"):K("search.result.more.other",s.length)),s.map(l=>jr(l,1)))]:[]];return D("li",{class:"md-search-result__item"},c)}function Yn(e){return D("ul",{class:"md-source__facts"},Object.entries(e).map(([t,r])=>D("li",{class:`md-source__fact md-source__fact--${t}`},typeof r=="number"?Bt(r):r)))}function Gn(e){return D("div",{class:"md-typeset__scrollwrap"},D("div",{class:"md-typeset__table"},e))}function Ma(e){let t=se(),r=new URL(`${e.version}/`,t.base);return D("li",{class:"md-version__item"},D("a",{href:r.toString(),class:"md-version__link"},e.title))}function Xn(e){let t=se(),[,r]=t.base.match(/([^/]+)\/?$/),o=e.find(({version:n,aliases:i})=>n===r||i.includes(r))||e[0];return D("div",{class:"md-version"},D("button",{class:"md-version__current","aria-label":K("select.version.title")},o.title),D("ul",{class:"md-version__list"},e.map(Ma)))}var Aa=0;function La(e,{viewport$:t}){let r=F(e).pipe(E(o=>{let n=o.closest("[data-tabs]");return n instanceof HTMLElement?I(...Q("input",n).map(i=>T(i,"change"))):Z}));return I(t.pipe(U("size")),r).pipe(f(()=>{let o=Ce(e);return{scroll:Dt(e).width>o.width}}),U("scroll"))}function ei(e,t){let r=new M;if(r.pipe(be(pt("(hover)"))).subscribe(([{scroll:o},n])=>{o&&n?gn(e):xn(e)}),Zn.default.isSupported()){let o=e.closest("pre");o.id=`__code_${Aa++}`,o.insertBefore(Bn(o.id),e)}return La(e,t).pipe(H(r),P(()=>r.complete()),f(o=>$({ref:e},o)))}function ka(e,{target$:t,print$:r}){return t.pipe(f(o=>o.closest("details:not([open])")),k(o=>e===o),ut(r),oe(e))}function ti(e,t){let r=new M;return r.subscribe(()=>{e.setAttribute("open",""),e.scrollIntoView()}),ka(e,t).pipe(H(r),P(()=>r.complete()),oe({ref:e}))}var ri=Ge("table");function oi(e){return Pe(e,ri),Pe(ri,Gn(e)),F({ref:e})}function ni(e,{target$:t,viewport$:r,print$:o}){return I(...Q("pre > code",e).map(n=>ei(n,{viewport$:r})),...Q("table:not([class])",e).map(n=>oi(n)),...Q("details",e).map(n=>ti(n,{target$:t,print$:o})))}function Ca(e,{alert$:t}){return t.pipe(E(r=>I(F(!0),F(!1).pipe(Te(2e3))).pipe(f(o=>({message:r,open:o})))))}function ii(e,t){let r=new M;return r.pipe(Y(J)).subscribe(({message:o,open:n})=>{_n(e,o),n?Mn(e,"open"):An(e)}),Ca(e,t).pipe(H(r),P(()=>r.complete()),f(o=>$({ref:e},o)))}function Ha({viewport$:e}){if(!Kt("header.autohide"))return F(!1);let t=e.pipe(f(({offset:{y:n}})=>n),he(2,1),f(([n,i])=>[n<i,i]),U(0)),r=G([e,t]).pipe(k(([{offset:n},[,i]])=>Math.abs(i-n.y)>100),f(([,[n]])=>n),z()),o=zt("search");return G([e,o]).pipe(f(([{offset:n},i])=>n.y>400&&!i),z(),E(n=>n?r:F(!1)),V(!1))}function ai(e,t){return Oe(()=>{let r=getComputedStyle(e);return F(r.position==="sticky"||r.position==="-webkit-sticky")}).pipe(Wt(He(e),Ha(t)),f(([r,{height:o},n])=>({height:r?o:0,sticky:r,hidden:n})),z((r,o)=>r.sticky===o.sticky&&r.height===o.height&&r.hidden===o.hidden),re(1))}function si(e,{header$:t,main$:r}){let o=new M;return o.pipe(U("active"),Wt(t),Y(J)).subscribe(([{active:n},{hidden:i}])=>{n?Ln(e,i?"hidden":"shadow"):kn(e)}),r.subscribe(n=>o.next(n)),t.pipe(f(n=>$({ref:e},n)))}function ja(e,{viewport$:t,header$:r}){return Qt(e,{header$:r,viewport$:t}).pipe(f(({offset:{y:o}})=>{let{height:n}=Ce(e);return{active:o>=n}}),U("active"))}function ci(e,t){let r=new M;r.pipe(Y(J)).subscribe(({active:n})=>{n?Cn(e,"active"):Hn(e)});let o=ae("article h1");return typeof o=="undefined"?Z:ja(o,t).pipe(H(r),P(()=>r.complete()),f(n=>$({ref:e},n)))}function li(e,{viewport$:t,header$:r}){let o=r.pipe(f(({height:i})=>i),z()),n=o.pipe(E(()=>He(e).pipe(f(({height:i})=>({top:e.offsetTop,bottom:e.offsetTop+i})),U("bottom"))));return G([o,n,t]).pipe(f(([i,{top:a,bottom:s},{offset:{y:c},size:{height:l}}])=>(l=Math.max(0,l-Math.max(0,a-c,i)-Math.max(0,l+c-s)),{offset:a-i,height:l,active:a-i<=c})),z((i,a)=>i.offset===a.offset&&i.height===a.height&&i.active===a.active))}function Fa(e){let t=localStorage.getItem(__prefix("__palette")),r=JSON.parse(t)||{index:e.findIndex(n=>matchMedia(n.getAttribute("data-md-color-media")).matches)},o=F(...e).pipe(te(n=>T(n,"change").pipe(oe(n))),V(e[Math.max(0,r.index)]),f(n=>({index:e.indexOf(n),color:{scheme:n.getAttribute("data-md-color-scheme"),primary:n.getAttribute("data-md-color-primary"),accent:n.getAttribute("data-md-color-accent")}})),re(1));return o.subscribe(n=>{localStorage.setItem(__prefix("__palette"),JSON.stringify(n))}),o}function ui(e){let t=new M;t.subscribe(o=>{for(let[n,i]of Object.entries(o.color))typeof i=="string"&&document.body.setAttribute(`data-md-color-${n}`,i);for(let n=0;n<r.length;n++){let i=r[n].nextElementSibling;i instanceof HTMLElement&&(i.hidden=o.index!==n)}});let r=Q("input",e);return Fa(r).pipe(H(t),P(()=>t.complete()),f(o=>$({ref:e},o)))}var Fr=tt(Lr());function pi({alert$:e}){Fr.default.isSupported()&&new _(t=>{new Fr.default("[data-clipboard-target], [data-clipboard-text]").on("success",r=>t.next(r))}).subscribe(()=>e.next(K("clipboard.copied")))}function Ra(e){if(e.length<2)return e;let[t,r]=e.sort((i,a)=>i.length-a.length).map(i=>i.replace(/[^/]+$/,"")),o=0;if(t===r)o=t.length;else for(;t.charCodeAt(o)===r.charCodeAt(o);)o++;let n=se();return e.map(i=>i.replace(t.slice(0,o),`${n.base}/`))}function fi({document$:e,location$:t,viewport$:r}){let o=se();if(location.protocol==="file:")return;"scrollRestoration"in history&&(history.scrollRestoration="manual",T(window,"beforeunload").subscribe(()=>{history.scrollRestoration="auto"}));let n=ae("link[rel=icon]");typeof n!="undefined"&&(n.href=n.href);let i=pn(`${o.base}/sitemap.xml`).pipe(f(l=>Ra(Q("loc",l).map(u=>u.textContent))),E(l=>T(document.body,"click").pipe(k(u=>!u.metaKey&&!u.ctrlKey),E(u=>{if(u.target instanceof Element){let m=u.target.closest("a");if(m&&!m.target&&l.includes(m.href))return u.preventDefault(),F({url:new URL(m.href)})}return Z}))),ne()),a=T(window,"popstate").pipe(k(l=>l.state!==null),f(l=>({url:new URL(location.href),offset:l.state})),ne());I(i,a).pipe(z((l,u)=>l.url.href===u.url.href),f(({url:l})=>l)).subscribe(t);let s=t.pipe(U("pathname"),E(l=>qt(l.href).pipe(Je(()=>(nn(l),Z)))),ne());i.pipe(Ye(s)).subscribe(({url:l})=>{history.pushState({},"",`${l}`)});let c=new DOMParser;s.pipe(E(l=>l.text()),f(l=>c.parseFromString(l,"text/html"))).subscribe(e),I(i,a).pipe(Ye(e)).subscribe(({url:l,offset:u})=>{l.hash&&!u?cn(l.hash):Mr(u||{y:0})}),e.pipe(Ut(1)).subscribe(l=>{for(let u of["title","link[rel=canonical]","meta[name=author]","meta[name=description]","[data-md-component=announce]","[data-md-component=container]","[data-md-component=header-topic]","[data-md-component=logo], .md-logo","[data-md-component=skip]"]){let m=ae(u),p=ae(u,l);typeof m!="undefined"&&typeof p!="undefined"&&Pe(m,p)}}),e.pipe(Ut(1),f(()=>je("container")),E(l=>F(...Q("script",l))),dr(l=>{let u=Ge("script");if(l.src){for(let m of l.getAttributeNames())u.setAttribute(m,l.getAttribute(m));return Pe(l,u),new _(m=>{u.onload=()=>m.complete()})}else return u.textContent=l.textContent,Pe(l,u),de})).subscribe(),r.pipe(yr(i),hr(250),U("offset")).subscribe(({offset:l})=>{history.replaceState(l,"")}),I(i,a).pipe(he(2,1),k(([l,u])=>l.url.pathname===u.url.pathname),f(([,l])=>l)).subscribe(({offset:l})=>{Mr(l||{y:0})})}var $a=tt(di());function hi(e){return e.split(/"([^"]+)"/g).map((t,r)=>r&1?t.replace(/^\b|^(?![^\x00-\x7F]|$)|\s+/g," +"):t).join("").replace(/"|(?:^|\s+)[*+\-:^~]+(?=\s+|$)/g,"").trim()}var _e;(function(n){n[n.SETUP=0]="SETUP",n[n.READY=1]="READY",n[n.QUERY=2]="QUERY",n[n.RESULT=3]="RESULT"})(_e||(_e={}));function Jt(e){return e.type===1}function bi(e){return e.type===2}function Yt(e){return e.type===3}function Va({config:e,docs:t,index:r}){e.lang.length===1&&e.lang[0]==="en"&&(e.lang=[K("search.config.lang")]),e.separator==="[\\s\\-]+"&&(e.separator=K("search.config.separator"));let o=K("search.config.pipeline").split(/\s*,\s*/).filter(Boolean);return{config:e,docs:t,index:r,pipeline:o}}function vi(e,t){let r=se(),o=new Worker(e),n=new M,i=vn(o,{tx$:n}).pipe(f(a=>{if(Yt(a))for(let s of a.data)for(let c of s)c.location=`${r.base}/${c.location}`;return a}),ne());return ve(t).pipe(f(a=>({type:_e.SETUP,data:Va(a)}))).subscribe(n.next.bind(n)),{tx$:n,rx$:i}}function gi(){let e=se();ye(new URL("versions.json",e.base)).subscribe(t=>{fe(".md-header__topic").appendChild(Xn(t))})}function Wa(e){let t=(__search==null?void 0:__search.transform)||hi,r=Yo(e),o=I(T(e,"keyup"),T(e,"focus").pipe(Te(1))).pipe(f(()=>t(e.value)),z());return G([o,r]).pipe(f(([n,i])=>({value:n,focus:i})))}function xi(e,{tx$:t}){let r=new M;return r.pipe(U("value"),f(({value:o})=>({type:_e.QUERY,data:o}))).subscribe(t.next.bind(t)),r.pipe(U("focus")).subscribe(({focus:o})=>{o?($e("search",o),jn(e,"")):Fn(e)}),T(e.form,"reset").pipe(wr(r.pipe(vr(1)))).subscribe(()=>ke(e)),Wa(e).pipe(H(r),P(()=>r.complete()),f(o=>$({ref:e},o)))}function yi(e,{rx$:t},{query$:r}){let o=new M,n=Zo(e.parentElement).pipe(k(Boolean)),i=fe(":scope > :first-child",e),a=fe(":scope > :last-child",e);return t.pipe(k(Jt),xe(1)).subscribe(()=>{kr(i)}),o.pipe(Y(J),be(r)).subscribe(([{data:c},{value:l}])=>{l?Pn(i,c.length):kr(i)}),o.pipe(Y(J),H(()=>Vn(a)),E(({data:c})=>I(F(...c.slice(0,10)),F(...c.slice(10)).pipe(he(4),Tr(n),E(([l])=>F(...l)))))).subscribe(c=>{$n(a,Jn(c))}),t.pipe(k(Yt),f(({data:c})=>({data:c})),V({data:[]})).pipe(H(o),P(()=>o.complete()),f(c=>$({ref:e},c)))}function Si(e,{index$:t,keyboard$:r}){let o=se(),n=vi(o.search,t),i=je("search-query",e),a=je("search-result",e),{tx$:s,rx$:c}=n;s.pipe(k(bi),Ye(c.pipe(k(Jt))),xe(1)).subscribe(s.next.bind(s)),r.pipe(k(({mode:u})=>u==="search")).subscribe(u=>{let m=Ie();switch(u.type){case"Enter":m===i&&u.claim();break;case"Escape":case"Tab":$e("search",!1),ke(i,!1);break;case"ArrowUp":case"ArrowDown":if(typeof m=="undefined")ke(i);else{let p=[i,...Q(":not(details) > [href], summary, details[open] [href]",a)],b=Math.max(0,(Math.max(0,p.indexOf(m))+p.length+(u.type==="ArrowUp"?-1:1))%p.length);ke(p[b])}u.claim();break;default:i!==Ie()&&ke(i)}}),r.pipe(k(({mode:u})=>u==="global")).subscribe(u=>{switch(u.type){case"f":case"s":case"/":ke(i),en(i),u.claim();break}});let l=xi(i,n);return I(l,yi(a,n,{query$:l}))}function Ua(e,{viewport$:t,main$:r}){let o=e.parentElement.offsetTop-e.parentElement.parentElement.offsetTop;return G([r,t]).pipe(f(([{offset:n,height:i},{offset:{y:a}}])=>(i=i+Math.min(o,Math.max(0,a-n))-o,{height:i,locked:a>=n+o})),z((n,i)=>n.height===i.height&&n.locked===i.locked))}function Rr(e,o){var n=o,{header$:t}=n,r=Dr(n,["header$"]);let i=new M;return i.pipe(Y(J),be(t)).subscribe({next([{height:a},{height:s}]){Dn(e,a),Wn(e,s)},complete(){Un(e),Nn(e)}}),Ua(e,r).pipe(H(i),P(()=>i.complete()),f(a=>$({ref:e},a)))}function wi(e,t){if(typeof t!="undefined"){let r=`https://api.github.com/repos/${e}/${t}`;return lt(ye(`${r}/releases/latest`).pipe(f(o=>({version:o.tag_name})),Re({})),ye(r).pipe(f(o=>({stars:o.stargazers_count,forks:o.forks_count})),Re({}))).pipe(f(([o,n])=>$($({},o),n)))}else{let r=`https://api.github.com/repos/${e}`;return ye(r).pipe(f(o=>({repositories:o.public_repos})),Re({}))}}function Ei(e,t){let r=`https://${e}/api/v4/projects/${encodeURIComponent(t)}`;return ye(r).pipe(f(({star_count:o,forks_count:n})=>({stars:o,forks:n})),Re({}))}function Oi(e){let[t]=e.match(/(git(?:hub|lab))/i)||[];switch(t.toLowerCase()){case"github":let[,r,o]=e.match(/^.+github\.com\/([^/]+)\/?([^/]+)?/i);return wi(r,o);case"gitlab":let[,n,i]=e.match(/^.+?([^/]*gitlab[^/]+)\/(.+?)\/?$/i);return Ei(n,i);default:return Z}}var Da;function Na(e){return Da||(Da=Oe(()=>{let t=sessionStorage.getItem(__prefix("__source"));if(t)return F(JSON.parse(t));{let r=Oi(e.href);return r.subscribe(o=>{try{sessionStorage.setItem(__prefix("__source"),JSON.stringify(o))}catch(n){}}),r}}).pipe(Je(()=>Z),k(t=>Object.keys(t).length>0),f(t=>({facts:t})),re(1)))}function Ti(e){let t=new M;return t.subscribe(({facts:r})=>{zn(e,Yn(r)),qn(e,"done")}),Na(e).pipe(H(t),P(()=>t.complete()),f(r=>$({ref:e},r)))}function za(e,{viewport$:t,header$:r}){return He(document.body).pipe(E(()=>Qt(e,{header$:r,viewport$:t})),f(({offset:{y:o}})=>({hidden:o>=10})),U("hidden"))}function _i(e,t){let r=new M;return r.pipe(Y(J)).subscribe({next({hidden:o}){o?Qn(e,"hidden"):Cr(e)},complete(){Cr(e)}}),za(e,t).pipe(H(r),P(()=>r.complete()),f(o=>$({ref:e},o)))}function qa(e,{viewport$:t,header$:r}){let o=new Map;for(let a of e){let s=decodeURIComponent(a.hash.substring(1)),c=ae(`[id="${s}"]`);typeof c!="undefined"&&o.set(a,c)}let n=r.pipe(f(a=>24+a.height));return He(document.body).pipe(U("height"),f(()=>{let a=[];return[...o].reduce((s,[c,l])=>{for(;a.length&&o.get(a[a.length-1]).tagName>=l.tagName;)a.pop();let u=l.offsetTop;for(;!u&&l.parentElement;)l=l.parentElement,u=l.offsetTop;return s.set([...a=[...a,c]].reverse(),u)},new Map)}),f(a=>new Map([...a].sort(([,s],[,c])=>s-c))),E(a=>G([n,t]).pipe(gr(([s,c],[l,{offset:{y:u}}])=>{for(;c.length;){let[,m]=c[0];if(m-l<u)s=[...s,c.shift()];else break}for(;s.length;){let[,m]=s[s.length-1];if(m-l>=u)c=[s.pop(),...c];else break}return[s,c]},[[],[...a]]),z((s,c)=>s[0]===c[0]&&s[1]===c[1])))).pipe(f(([a,s])=>({prev:a.map(([c])=>c),next:s.map(([c])=>c)})),V({prev:[],next:[]}),he(2,1),f(([a,s])=>a.prev.length<s.prev.length?{prev:s.prev.slice(Math.max(0,a.prev.length-1),s.prev.length),next:[]}:{prev:s.prev.slice(-1),next:s.next.slice(0,s.next.length-a.next.length)}))}function Mi(e,t){let r=new M;r.pipe(Y(J)).subscribe(({prev:n,next:i})=>{for(let[a]of i)Tn(a),En(a);for(let[a,[s]]of n.entries())On(s,a===n.length-1),wn(s,"blur")});let o=Q("[href^=\\#]",e);return qa(o,t).pipe(H(r),P(()=>r.complete()),f(n=>$({ref:e},n)))}function Qa(e,{viewport$:t,main$:r}){let o=t.pipe(f(({offset:{y:i}})=>i),he(2,1),f(([i,a])=>i>a),z()),n=r.pipe(U("active"));return G([n,o]).pipe(f(([{active:i},a])=>({hidden:!(i&&a)})),z((i,a)=>i.hidden===a.hidden))}function Ai(e,t){let r=new M;return r.pipe(Y(J)).subscribe({next({hidden:o}){o?Kn(e,"hidden"):Hr(e)},complete(){Hr(e)}}),Qa(e,t).pipe(H(r),P(()=>r.complete()),f(o=>$({ref:e},o)))}function Li({document$:e,tablet$:t}){e.pipe(E(()=>F(...Q("[data-md-state=indeterminate]"))),H(r=>{r.indeterminate=!0,r.checked=!1}),te(r=>T(r,"change").pipe(Er(()=>r.hasAttribute("data-md-state")),oe(r))),be(t)).subscribe(([r,o])=>{r.removeAttribute("data-md-state"),o&&(r.checked=!1)})}function Ka(){return/(iPad|iPhone|iPod)/.test(navigator.userAgent)}function ki({document$:e}){e.pipe(E(()=>F(...Q("[data-md-scrollfix]"))),H(t=>t.removeAttribute("data-md-scrollfix")),k(Ka),te(t=>T(t,"touchstart").pipe(oe(t)))).subscribe(t=>{let r=t.scrollTop;r===0?t.scrollTop=1:r+t.offsetHeight===t.scrollHeight&&(t.scrollTop=r-1)})}function Ci({viewport$:e,tablet$:t}){G([zt("search"),t]).pipe(f(([r,o])=>r&&!o),E(r=>F(r).pipe(Te(r?400:100),Y(J))),be(e)).subscribe(([r,{offset:{y:o}}])=>{r?yn(document.body,o):Sn(document.body)})}document.documentElement.classList.remove("no-js");document.documentElement.classList.add("js");var Ze=Jo(),Ir=an(),Pr=ln(),$r=rn(),ue=bn(),Gt=pt("(min-width: 960px)"),Hi=pt("(min-width: 1220px)"),ji=un(),Fi=se(),Ba=document.forms.namedItem("search")?(__search==null?void 0:__search.index)||ye(`${Fi.base}/search/search_index.json`):Z,Vr=new M;pi({alert$:Vr});Kt("navigation.instant")&&fi({document$:Ze,location$:Ir,viewport$:ue});var Ii;((Ii=Fi.version)==null?void 0:Ii.provider)==="mike"&&gi();I(Ir,Pr).pipe(Te(125)).subscribe(()=>{$e("drawer",!1),$e("search",!1)});$r.pipe(k(({mode:e})=>e==="global")).subscribe(e=>{switch(e.type){case"p":case",":let t=ae("[href][rel=prev]");typeof t!="undefined"&&t.click();break;case"n":case".":let r=ae("[href][rel=next]");typeof r!="undefined"&&r.click();break}});Li({document$:Ze,tablet$:Gt});ki({document$:Ze});Ci({viewport$:ue,tablet$:Gt});var We=ai(je("header"),{viewport$:ue}),Xt=Ze.pipe(f(()=>je("main")),E(e=>li(e,{viewport$:ue,header$:We})),re(1)),Ja=I(...me("dialog").map(e=>ii(e,{alert$:Vr})),...me("header").map(e=>si(e,{viewport$:ue,header$:We,main$:Xt})),...me("palette").map(e=>ui(e)),...me("search").map(e=>Si(e,{index$:Ba,keyboard$:$r})),...me("source").map(e=>Ti(e))),Ya=Oe(()=>I(...me("content").map(e=>ni(e,{target$:Pr,viewport$:ue,print$:ji})),...me("header-title").map(e=>ci(e,{viewport$:ue,header$:We})),...me("sidebar").map(e=>e.getAttribute("data-md-type")==="navigation"?_r(Hi,()=>Rr(e,{viewport$:ue,header$:We,main$:Xt})):_r(Gt,()=>Rr(e,{viewport$:ue,header$:We,main$:Xt}))),...me("tabs").map(e=>_i(e,{viewport$:ue,header$:We})),...me("toc").map(e=>Mi(e,{viewport$:ue,header$:We})),...me("top").map(e=>Ai(e,{viewport$:ue,main$:Xt})))),Ri=Ze.pipe(E(()=>Ya),ut(Ja),re(1));Ri.subscribe();window.document$=Ze;window.location$=Ir;window.target$=Pr;window.keyboard$=$r;window.viewport$=ue;window.tablet$=Gt;window.screen$=Hi;window.print$=ji;window.alert$=Vr;window.component$=Ri;})();
+//# sourceMappingURL=bundle.82b56eb2.min.js.map
+
diff --git a/freetype/docs/reference/assets/javascripts/bundle.82b56eb2.min.js.map b/freetype/docs/reference/assets/javascripts/bundle.82b56eb2.min.js.map
new file mode 100644
index 00000000..408af27a
--- /dev/null
+++ b/freetype/docs/reference/assets/javascripts/bundle.82b56eb2.min.js.map
@@ -0,0 +1,7 @@
+{
+ "version": 3,
+ "sources": ["node_modules/focus-visible/dist/focus-visible.js", "node_modules/tslib/tslib.js", "node_modules/clipboard/dist/clipboard.js", "node_modules/escape-html/index.js", "src/assets/javascripts/bundle.ts", "node_modules/tslib/modules/index.js", "node_modules/rxjs/src/internal/util/isFunction.ts", "node_modules/rxjs/src/internal/util/createErrorClass.ts", "node_modules/rxjs/src/internal/util/UnsubscriptionError.ts", "node_modules/rxjs/src/internal/util/arrRemove.ts", "node_modules/rxjs/src/internal/Subscription.ts", "node_modules/rxjs/src/internal/config.ts", "node_modules/rxjs/src/internal/scheduler/timeoutProvider.ts", "node_modules/rxjs/src/internal/util/reportUnhandledError.ts", "node_modules/rxjs/src/internal/util/noop.ts", "node_modules/rxjs/src/internal/NotificationFactories.ts", "node_modules/rxjs/src/internal/Subscriber.ts", "node_modules/rxjs/src/internal/symbol/observable.ts", "node_modules/rxjs/src/internal/util/identity.ts", "node_modules/rxjs/src/internal/util/pipe.ts", "node_modules/rxjs/src/internal/Observable.ts", "node_modules/rxjs/src/internal/util/lift.ts", "node_modules/rxjs/src/internal/operators/OperatorSubscriber.ts", "node_modules/rxjs/src/internal/scheduler/animationFrameProvider.ts", "node_modules/rxjs/src/internal/util/ObjectUnsubscribedError.ts", "node_modules/rxjs/src/internal/Subject.ts", "node_modules/rxjs/src/internal/scheduler/dateTimestampProvider.ts", "node_modules/rxjs/src/internal/ReplaySubject.ts", "node_modules/rxjs/src/internal/scheduler/Action.ts", "node_modules/rxjs/src/internal/scheduler/intervalProvider.ts", "node_modules/rxjs/src/internal/scheduler/AsyncAction.ts", "node_modules/rxjs/src/internal/Scheduler.ts", "node_modules/rxjs/src/internal/scheduler/AsyncScheduler.ts", "node_modules/rxjs/src/internal/scheduler/async.ts", "node_modules/rxjs/src/internal/scheduler/AnimationFrameAction.ts", "node_modules/rxjs/src/internal/scheduler/AnimationFrameScheduler.ts", "node_modules/rxjs/src/internal/scheduler/animationFrame.ts", "node_modules/rxjs/src/internal/observable/empty.ts", "node_modules/rxjs/src/internal/scheduled/scheduleArray.ts", "node_modules/rxjs/src/internal/util/isArrayLike.ts", "node_modules/rxjs/src/internal/util/isPromise.ts", "node_modules/rxjs/src/internal/scheduled/scheduleObservable.ts", "node_modules/rxjs/src/internal/scheduled/schedulePromise.ts", "node_modules/rxjs/src/internal/symbol/iterator.ts", "node_modules/rxjs/src/internal/util/caughtSchedule.ts", "node_modules/rxjs/src/internal/scheduled/scheduleIterable.ts", "node_modules/rxjs/src/internal/scheduled/scheduleAsyncIterable.ts", "node_modules/rxjs/src/internal/util/isInteropObservable.ts", "node_modules/rxjs/src/internal/util/isIterable.ts", "node_modules/rxjs/src/internal/util/isAsyncIterable.ts", "node_modules/rxjs/src/internal/util/throwUnobservableError.ts", "node_modules/rxjs/src/internal/util/isReadableStreamLike.ts", "node_modules/rxjs/src/internal/scheduled/scheduleReadableStreamLike.ts", "node_modules/rxjs/src/internal/scheduled/scheduled.ts", "node_modules/rxjs/src/internal/observable/from.ts", "node_modules/rxjs/src/internal/observable/fromArray.ts", "node_modules/rxjs/src/internal/util/isScheduler.ts", "node_modules/rxjs/src/internal/util/args.ts", "node_modules/rxjs/src/internal/observable/of.ts", "node_modules/rxjs/src/internal/util/isDate.ts", "node_modules/rxjs/src/internal/operators/map.ts", "node_modules/rxjs/src/internal/util/mapOneOrManyArgs.ts", "node_modules/rxjs/src/internal/operators/observeOn.ts", "node_modules/rxjs/src/internal/util/argsArgArrayOrObject.ts", "node_modules/rxjs/src/internal/util/createObject.ts", "node_modules/rxjs/src/internal/observable/combineLatest.ts", "node_modules/rxjs/src/internal/operators/mergeInternals.ts", "node_modules/rxjs/src/internal/operators/mergeMap.ts", "node_modules/rxjs/src/internal/operators/mergeAll.ts", "node_modules/rxjs/src/internal/operators/concatAll.ts", "node_modules/rxjs/src/internal/observable/concat.ts", "node_modules/rxjs/src/internal/observable/defer.ts", "node_modules/rxjs/src/internal/observable/fromEvent.ts", "node_modules/rxjs/src/internal/observable/fromEventPattern.ts", "node_modules/rxjs/src/internal/observable/timer.ts", "node_modules/rxjs/src/internal/observable/merge.ts", "node_modules/rxjs/src/internal/observable/never.ts", "node_modules/rxjs/src/internal/util/argsOrArgArray.ts", "node_modules/rxjs/src/internal/operators/filter.ts", "node_modules/rxjs/src/internal/observable/zip.ts", "node_modules/rxjs/src/internal/operators/bufferCount.ts", "node_modules/rxjs/src/internal/operators/catchError.ts", "node_modules/rxjs/src/internal/operators/scanInternals.ts", "node_modules/rxjs/src/internal/operators/combineLatest.ts", "node_modules/rxjs/src/internal/operators/combineLatestWith.ts", "node_modules/rxjs/src/internal/operators/concatMap.ts", "node_modules/rxjs/src/internal/operators/debounceTime.ts", "node_modules/rxjs/src/internal/operators/defaultIfEmpty.ts", "node_modules/rxjs/src/internal/operators/take.ts", "node_modules/rxjs/src/internal/operators/ignoreElements.ts", "node_modules/rxjs/src/internal/operators/mapTo.ts", "node_modules/rxjs/src/internal/operators/delayWhen.ts", "node_modules/rxjs/src/internal/operators/delay.ts", "node_modules/rxjs/src/internal/operators/distinctUntilChanged.ts", "node_modules/rxjs/src/internal/operators/distinctUntilKeyChanged.ts", "node_modules/rxjs/src/internal/operators/finalize.ts", "node_modules/rxjs/src/internal/operators/takeLast.ts", "node_modules/rxjs/src/internal/operators/merge.ts", "node_modules/rxjs/src/internal/operators/mergeWith.ts", "node_modules/rxjs/src/internal/operators/sample.ts", "node_modules/rxjs/src/internal/operators/scan.ts", "node_modules/rxjs/src/internal/operators/share.ts", "node_modules/rxjs/src/internal/operators/shareReplay.ts", "node_modules/rxjs/src/internal/operators/skip.ts", "node_modules/rxjs/src/internal/operators/skipUntil.ts", "node_modules/rxjs/src/internal/operators/startWith.ts", "node_modules/rxjs/src/internal/operators/switchMap.ts", "node_modules/rxjs/src/internal/operators/switchMapTo.ts", "node_modules/rxjs/src/internal/operators/takeUntil.ts", "node_modules/rxjs/src/internal/operators/takeWhile.ts", "node_modules/rxjs/src/internal/operators/tap.ts", "node_modules/rxjs/src/internal/operators/throttle.ts", "node_modules/rxjs/src/internal/operators/withLatestFrom.ts", "node_modules/rxjs/src/internal/operators/zip.ts", "node_modules/rxjs/src/internal/operators/zipWith.ts", "src/assets/javascripts/browser/document/index.ts", "src/assets/javascripts/browser/element/_/index.ts", "src/assets/javascripts/browser/element/focus/index.ts", "src/assets/javascripts/browser/element/size/index.ts", "src/assets/javascripts/browser/element/offset/index.ts", "src/assets/javascripts/browser/element/selection/index.ts", "src/assets/javascripts/browser/toggle/index.ts", "src/assets/javascripts/browser/keyboard/index.ts", "src/assets/javascripts/browser/location/_/index.ts", "src/assets/javascripts/browser/location/hash/index.ts", "src/assets/javascripts/browser/media/index.ts", "src/assets/javascripts/browser/request/index.ts", "src/assets/javascripts/browser/viewport/offset/index.ts", "src/assets/javascripts/browser/viewport/size/index.ts", "src/assets/javascripts/browser/viewport/_/index.ts", "src/assets/javascripts/browser/worker/index.ts", "src/assets/javascripts/_/index.ts", "src/assets/javascripts/components/_/index.ts", "src/assets/javascripts/components/content/code/index.ts", "src/assets/javascripts/actions/_/index.ts", "src/assets/javascripts/actions/anchor/index.ts", "src/assets/javascripts/actions/dialog/index.ts", "src/assets/javascripts/actions/header/_/index.ts", "src/assets/javascripts/actions/header/title/index.ts", "src/assets/javascripts/actions/search/query/index.ts", "src/assets/javascripts/utilities/h/index.ts", "src/assets/javascripts/utilities/string/index.ts", "src/assets/javascripts/actions/search/result/index.ts", "src/assets/javascripts/actions/sidebar/index.ts", "src/assets/javascripts/actions/source/index.ts", "src/assets/javascripts/actions/tabs/index.ts", "src/assets/javascripts/actions/top/index.ts", "src/assets/javascripts/templates/clipboard/index.tsx", "src/assets/javascripts/templates/search/index.tsx", "src/assets/javascripts/templates/source/index.tsx", "src/assets/javascripts/templates/table/index.tsx", "src/assets/javascripts/templates/version/index.tsx", "src/assets/javascripts/components/content/details/index.ts", "src/assets/javascripts/components/content/table/index.ts", "src/assets/javascripts/components/content/_/index.ts", "src/assets/javascripts/components/dialog/index.ts", "src/assets/javascripts/components/header/_/index.ts", "src/assets/javascripts/components/header/title/index.ts", "src/assets/javascripts/components/main/index.ts", "src/assets/javascripts/components/palette/index.ts", "src/assets/javascripts/integrations/clipboard/index.ts", "src/assets/javascripts/integrations/instant/index.ts", "src/assets/javascripts/integrations/search/document/index.ts", "src/assets/javascripts/integrations/search/query/transform/index.ts", "src/assets/javascripts/integrations/search/worker/message/index.ts", "src/assets/javascripts/integrations/search/worker/_/index.ts", "src/assets/javascripts/integrations/version/index.ts", "src/assets/javascripts/components/search/query/index.ts", "src/assets/javascripts/components/search/result/index.ts", "src/assets/javascripts/components/search/_/index.ts", "src/assets/javascripts/components/sidebar/index.ts", "src/assets/javascripts/components/source/facts/github/index.ts", "src/assets/javascripts/components/source/facts/gitlab/index.ts", "src/assets/javascripts/components/source/facts/_/index.ts", "src/assets/javascripts/components/source/_/index.ts", "src/assets/javascripts/components/tabs/index.ts", "src/assets/javascripts/components/toc/index.ts", "src/assets/javascripts/components/top/index.ts", "src/assets/javascripts/patches/indeterminate/index.ts", "src/assets/javascripts/patches/scrollfix/index.ts", "src/assets/javascripts/patches/scrolllock/index.ts"],
+ "sourcesContent": ["(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined' ? factory() :\n typeof define === 'function' && define.amd ? define(factory) :\n (factory());\n}(this, (function () { 'use strict';\n\n /**\n * Applies the :focus-visible polyfill at the given scope.\n * A scope in this case is either the top-level Document or a Shadow Root.\n *\n * @param {(Document|ShadowRoot)} scope\n * @see https://github.com/WICG/focus-visible\n */\n function applyFocusVisiblePolyfill(scope) {\n var hadKeyboardEvent = true;\n var hadFocusVisibleRecently = false;\n var hadFocusVisibleRecentlyTimeout = null;\n\n var inputTypesAllowlist = {\n text: true,\n search: true,\n url: true,\n tel: true,\n email: true,\n password: true,\n number: true,\n date: true,\n month: true,\n week: true,\n time: true,\n datetime: true,\n 'datetime-local': true\n };\n\n /**\n * Helper function for legacy browsers and iframes which sometimes focus\n * elements like document, body, and non-interactive SVG.\n * @param {Element} el\n */\n function isValidFocusTarget(el) {\n if (\n el &&\n el !== document &&\n el.nodeName !== 'HTML' &&\n el.nodeName !== 'BODY' &&\n 'classList' in el &&\n 'contains' in el.classList\n ) {\n return true;\n }\n return false;\n }\n\n /**\n * Computes whether the given element should automatically trigger the\n * `focus-visible` class being added, i.e. whether it should always match\n * `:focus-visible` when focused.\n * @param {Element} el\n * @return {boolean}\n */\n function focusTriggersKeyboardModality(el) {\n var type = el.type;\n var tagName = el.tagName;\n\n if (tagName === 'INPUT' && inputTypesAllowlist[type] && !el.readOnly) {\n return true;\n }\n\n if (tagName === 'TEXTAREA' && !el.readOnly) {\n return true;\n }\n\n if (el.isContentEditable) {\n return true;\n }\n\n return false;\n }\n\n /**\n * Add the `focus-visible` class to the given element if it was not added by\n * the author.\n * @param {Element} el\n */\n function addFocusVisibleClass(el) {\n if (el.classList.contains('focus-visible')) {\n return;\n }\n el.classList.add('focus-visible');\n el.setAttribute('data-focus-visible-added', '');\n }\n\n /**\n * Remove the `focus-visible` class from the given element if it was not\n * originally added by the author.\n * @param {Element} el\n */\n function removeFocusVisibleClass(el) {\n if (!el.hasAttribute('data-focus-visible-added')) {\n return;\n }\n el.classList.remove('focus-visible');\n el.removeAttribute('data-focus-visible-added');\n }\n\n /**\n * If the most recent user interaction was via the keyboard;\n * and the key press did not include a meta, alt/option, or control key;\n * then the modality is keyboard. Otherwise, the modality is not keyboard.\n * Apply `focus-visible` to any current active element and keep track\n * of our keyboard modality state with `hadKeyboardEvent`.\n * @param {KeyboardEvent} e\n */\n function onKeyDown(e) {\n if (e.metaKey || e.altKey || e.ctrlKey) {\n return;\n }\n\n if (isValidFocusTarget(scope.activeElement)) {\n addFocusVisibleClass(scope.activeElement);\n }\n\n hadKeyboardEvent = true;\n }\n\n /**\n * If at any point a user clicks with a pointing device, ensure that we change\n * the modality away from keyboard.\n * This avoids the situation where a user presses a key on an already focused\n * element, and then clicks on a different element, focusing it with a\n * pointing device, while we still think we're in keyboard modality.\n * @param {Event} e\n */\n function onPointerDown(e) {\n hadKeyboardEvent = false;\n }\n\n /**\n * On `focus`, add the `focus-visible` class to the target if:\n * - the target received focus as a result of keyboard navigation, or\n * - the event target is an element that will likely require interaction\n * via the keyboard (e.g. a text box)\n * @param {Event} e\n */\n function onFocus(e) {\n // Prevent IE from focusing the document or HTML element.\n if (!isValidFocusTarget(e.target)) {\n return;\n }\n\n if (hadKeyboardEvent || focusTriggersKeyboardModality(e.target)) {\n addFocusVisibleClass(e.target);\n }\n }\n\n /**\n * On `blur`, remove the `focus-visible` class from the target.\n * @param {Event} e\n */\n function onBlur(e) {\n if (!isValidFocusTarget(e.target)) {\n return;\n }\n\n if (\n e.target.classList.contains('focus-visible') ||\n e.target.hasAttribute('data-focus-visible-added')\n ) {\n // To detect a tab/window switch, we look for a blur event followed\n // rapidly by a visibility change.\n // If we don't see a visibility change within 100ms, it's probably a\n // regular focus change.\n hadFocusVisibleRecently = true;\n window.clearTimeout(hadFocusVisibleRecentlyTimeout);\n hadFocusVisibleRecentlyTimeout = window.setTimeout(function() {\n hadFocusVisibleRecently = false;\n }, 100);\n removeFocusVisibleClass(e.target);\n }\n }\n\n /**\n * If the user changes tabs, keep track of whether or not the previously\n * focused element had .focus-visible.\n * @param {Event} e\n */\n function onVisibilityChange(e) {\n if (document.visibilityState === 'hidden') {\n // If the tab becomes active again, the browser will handle calling focus\n // on the element (Safari actually calls it twice).\n // If this tab change caused a blur on an element with focus-visible,\n // re-apply the class when the user switches back to the tab.\n if (hadFocusVisibleRecently) {\n hadKeyboardEvent = true;\n }\n addInitialPointerMoveListeners();\n }\n }\n\n /**\n * Add a group of listeners to detect usage of any pointing devices.\n * These listeners will be added when the polyfill first loads, and anytime\n * the window is blurred, so that they are active when the window regains\n * focus.\n */\n function addInitialPointerMoveListeners() {\n document.addEventListener('mousemove', onInitialPointerMove);\n document.addEventListener('mousedown', onInitialPointerMove);\n document.addEventListener('mouseup', onInitialPointerMove);\n document.addEventListener('pointermove', onInitialPointerMove);\n document.addEventListener('pointerdown', onInitialPointerMove);\n document.addEventListener('pointerup', onInitialPointerMove);\n document.addEventListener('touchmove', onInitialPointerMove);\n document.addEventListener('touchstart', onInitialPointerMove);\n document.addEventListener('touchend', onInitialPointerMove);\n }\n\n function removeInitialPointerMoveListeners() {\n document.removeEventListener('mousemove', onInitialPointerMove);\n document.removeEventListener('mousedown', onInitialPointerMove);\n document.removeEventListener('mouseup', onInitialPointerMove);\n document.removeEventListener('pointermove', onInitialPointerMove);\n document.removeEventListener('pointerdown', onInitialPointerMove);\n document.removeEventListener('pointerup', onInitialPointerMove);\n document.removeEventListener('touchmove', onInitialPointerMove);\n document.removeEventListener('touchstart', onInitialPointerMove);\n document.removeEventListener('touchend', onInitialPointerMove);\n }\n\n /**\n * When the polfyill first loads, assume the user is in keyboard modality.\n * If any event is received from a pointing device (e.g. mouse, pointer,\n * touch), turn off keyboard modality.\n * This accounts for situations where focus enters the page from the URL bar.\n * @param {Event} e\n */\n function onInitialPointerMove(e) {\n // Work around a Safari quirk that fires a mousemove on <html> whenever the\n // window blurs, even if you're tabbing out of the page. \u00AF\\_(\u30C4)_/\u00AF\n if (e.target.nodeName && e.target.nodeName.toLowerCase() === 'html') {\n return;\n }\n\n hadKeyboardEvent = false;\n removeInitialPointerMoveListeners();\n }\n\n // For some kinds of state, we are interested in changes at the global scope\n // only. For example, global pointer input, global key presses and global\n // visibility change should affect the state at every scope:\n document.addEventListener('keydown', onKeyDown, true);\n document.addEventListener('mousedown', onPointerDown, true);\n document.addEventListener('pointerdown', onPointerDown, true);\n document.addEventListener('touchstart', onPointerDown, true);\n document.addEventListener('visibilitychange', onVisibilityChange, true);\n\n addInitialPointerMoveListeners();\n\n // For focus and blur, we specifically care about state changes in the local\n // scope. This is because focus / blur events that originate from within a\n // shadow root are not re-dispatched from the host element if it was already\n // the active element in its own scope:\n scope.addEventListener('focus', onFocus, true);\n scope.addEventListener('blur', onBlur, true);\n\n // We detect that a node is a ShadowRoot by ensuring that it is a\n // DocumentFragment and also has a host property. This check covers native\n // implementation and polyfill implementation transparently. If we only cared\n // about the native implementation, we could just check if the scope was\n // an instance of a ShadowRoot.\n if (scope.nodeType === Node.DOCUMENT_FRAGMENT_NODE && scope.host) {\n // Since a ShadowRoot is a special kind of DocumentFragment, it does not\n // have a root element to add a class to. So, we add this attribute to the\n // host element instead:\n scope.host.setAttribute('data-js-focus-visible', '');\n } else if (scope.nodeType === Node.DOCUMENT_NODE) {\n document.documentElement.classList.add('js-focus-visible');\n document.documentElement.setAttribute('data-js-focus-visible', '');\n }\n }\n\n // It is important to wrap all references to global window and document in\n // these checks to support server-side rendering use cases\n // @see https://github.com/WICG/focus-visible/issues/199\n if (typeof window !== 'undefined' && typeof document !== 'undefined') {\n // Make the polyfill helper globally available. This can be used as a signal\n // to interested libraries that wish to coordinate with the polyfill for e.g.,\n // applying the polyfill to a shadow root:\n window.applyFocusVisiblePolyfill = applyFocusVisiblePolyfill;\n\n // Notify interested libraries of the polyfill's presence, in case the\n // polyfill was loaded lazily:\n var event;\n\n try {\n event = new CustomEvent('focus-visible-polyfill-ready');\n } catch (error) {\n // IE11 does not support using CustomEvent as a constructor directly:\n event = document.createEvent('CustomEvent');\n event.initCustomEvent('focus-visible-polyfill-ready', false, false, {});\n }\n\n window.dispatchEvent(event);\n }\n\n if (typeof document !== 'undefined') {\n // Apply the polyfill to the global document, so that no JavaScript\n // coordination is required to use the polyfill in the top-level document:\n applyFocusVisiblePolyfill(document);\n }\n\n})));\n", "/*! *****************************************************************************\r\nCopyright (c) Microsoft Corporation.\r\n\r\nPermission to use, copy, modify, and/or distribute this software for any\r\npurpose with or without fee is hereby granted.\r\n\r\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\r\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\r\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\r\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\r\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\r\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\r\nPERFORMANCE OF THIS SOFTWARE.\r\n***************************************************************************** */\r\n/* global global, define, System, Reflect, Promise */\r\nvar __extends;\r\nvar __assign;\r\nvar __rest;\r\nvar __decorate;\r\nvar __param;\r\nvar __metadata;\r\nvar __awaiter;\r\nvar __generator;\r\nvar __exportStar;\r\nvar __values;\r\nvar __read;\r\nvar __spread;\r\nvar __spreadArrays;\r\nvar __spreadArray;\r\nvar __await;\r\nvar __asyncGenerator;\r\nvar __asyncDelegator;\r\nvar __asyncValues;\r\nvar __makeTemplateObject;\r\nvar __importStar;\r\nvar __importDefault;\r\nvar __classPrivateFieldGet;\r\nvar __classPrivateFieldSet;\r\nvar __createBinding;\r\n(function (factory) {\r\n var root = typeof global === \"object\" ? global : typeof self === \"object\" ? self : typeof this === \"object\" ? this : {};\r\n if (typeof define === \"function\" && define.amd) {\r\n define(\"tslib\", [\"exports\"], function (exports) { factory(createExporter(root, createExporter(exports))); });\r\n }\r\n else if (typeof module === \"object\" && typeof module.exports === \"object\") {\r\n factory(createExporter(root, createExporter(module.exports)));\r\n }\r\n else {\r\n factory(createExporter(root));\r\n }\r\n function createExporter(exports, previous) {\r\n if (exports !== root) {\r\n if (typeof Object.create === \"function\") {\r\n Object.defineProperty(exports, \"__esModule\", { value: true });\r\n }\r\n else {\r\n exports.__esModule = true;\r\n }\r\n }\r\n return function (id, v) { return exports[id] = previous ? previous(id, v) : v; };\r\n }\r\n})\r\n(function (exporter) {\r\n var extendStatics = Object.setPrototypeOf ||\r\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\r\n function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\r\n\r\n __extends = function (d, b) {\r\n if (typeof b !== \"function\" && b !== null)\r\n throw new TypeError(\"Class extends value \" + String(b) + \" is not a constructor or null\");\r\n extendStatics(d, b);\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n };\r\n\r\n __assign = Object.assign || function (t) {\r\n for (var s, i = 1, n = arguments.length; i < n; i++) {\r\n s = arguments[i];\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\r\n }\r\n return t;\r\n };\r\n\r\n __rest = function (s, e) {\r\n var t = {};\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\r\n t[p] = s[p];\r\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\r\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\r\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\r\n t[p[i]] = s[p[i]];\r\n }\r\n return t;\r\n };\r\n\r\n __decorate = function (decorators, target, key, desc) {\r\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\r\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\r\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\r\n return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n };\r\n\r\n __param = function (paramIndex, decorator) {\r\n return function (target, key) { decorator(target, key, paramIndex); }\r\n };\r\n\r\n __metadata = function (metadataKey, metadataValue) {\r\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(metadataKey, metadataValue);\r\n };\r\n\r\n __awaiter = function (thisArg, _arguments, P, generator) {\r\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\r\n return new (P || (P = Promise))(function (resolve, reject) {\r\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\r\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\r\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\r\n step((generator = generator.apply(thisArg, _arguments || [])).next());\r\n });\r\n };\r\n\r\n __generator = function (thisArg, body) {\r\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\r\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\r\n function verb(n) { return function (v) { return step([n, v]); }; }\r\n function step(op) {\r\n if (f) throw new TypeError(\"Generator is already executing.\");\r\n while (_) try {\r\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\r\n if (y = 0, t) op = [op[0] & 2, t.value];\r\n switch (op[0]) {\r\n case 0: case 1: t = op; break;\r\n case 4: _.label++; return { value: op[1], done: false };\r\n case 5: _.label++; y = op[1]; op = [0]; continue;\r\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\r\n default:\r\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\r\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\r\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\r\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\r\n if (t[2]) _.ops.pop();\r\n _.trys.pop(); continue;\r\n }\r\n op = body.call(thisArg, _);\r\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\r\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\r\n }\r\n };\r\n\r\n __exportStar = function(m, o) {\r\n for (var p in m) if (p !== \"default\" && !Object.prototype.hasOwnProperty.call(o, p)) __createBinding(o, m, p);\r\n };\r\n\r\n __createBinding = Object.create ? (function(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });\r\n }) : (function(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n o[k2] = m[k];\r\n });\r\n\r\n __values = function (o) {\r\n var s = typeof Symbol === \"function\" && Symbol.iterator, m = s && o[s], i = 0;\r\n if (m) return m.call(o);\r\n if (o && typeof o.length === \"number\") return {\r\n next: function () {\r\n if (o && i >= o.length) o = void 0;\r\n return { value: o && o[i++], done: !o };\r\n }\r\n };\r\n throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\r\n };\r\n\r\n __read = function (o, n) {\r\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\r\n if (!m) return o;\r\n var i = m.call(o), r, ar = [], e;\r\n try {\r\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\r\n }\r\n catch (error) { e = { error: error }; }\r\n finally {\r\n try {\r\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\r\n }\r\n finally { if (e) throw e.error; }\r\n }\r\n return ar;\r\n };\r\n\r\n /** @deprecated */\r\n __spread = function () {\r\n for (var ar = [], i = 0; i < arguments.length; i++)\r\n ar = ar.concat(__read(arguments[i]));\r\n return ar;\r\n };\r\n\r\n /** @deprecated */\r\n __spreadArrays = function () {\r\n for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;\r\n for (var r = Array(s), k = 0, i = 0; i < il; i++)\r\n for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)\r\n r[k] = a[j];\r\n return r;\r\n };\r\n\r\n __spreadArray = function (to, from) {\r\n for (var i = 0, il = from.length, j = to.length; i < il; i++, j++)\r\n to[j] = from[i];\r\n return to;\r\n };\r\n\r\n __await = function (v) {\r\n return this instanceof __await ? (this.v = v, this) : new __await(v);\r\n };\r\n\r\n __asyncGenerator = function (thisArg, _arguments, generator) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var g = generator.apply(thisArg, _arguments || []), i, q = [];\r\n return i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i;\r\n function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }\r\n function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }\r\n function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }\r\n function fulfill(value) { resume(\"next\", value); }\r\n function reject(value) { resume(\"throw\", value); }\r\n function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }\r\n };\r\n\r\n __asyncDelegator = function (o) {\r\n var i, p;\r\n return i = {}, verb(\"next\"), verb(\"throw\", function (e) { throw e; }), verb(\"return\"), i[Symbol.iterator] = function () { return this; }, i;\r\n function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === \"return\" } : f ? f(v) : v; } : f; }\r\n };\r\n\r\n __asyncValues = function (o) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var m = o[Symbol.asyncIterator], i;\r\n return m ? m.call(o) : (o = typeof __values === \"function\" ? __values(o) : o[Symbol.iterator](), i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i);\r\n function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }\r\n function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }\r\n };\r\n\r\n __makeTemplateObject = function (cooked, raw) {\r\n if (Object.defineProperty) { Object.defineProperty(cooked, \"raw\", { value: raw }); } else { cooked.raw = raw; }\r\n return cooked;\r\n };\r\n\r\n var __setModuleDefault = Object.create ? (function(o, v) {\r\n Object.defineProperty(o, \"default\", { enumerable: true, value: v });\r\n }) : function(o, v) {\r\n o[\"default\"] = v;\r\n };\r\n\r\n __importStar = function (mod) {\r\n if (mod && mod.__esModule) return mod;\r\n var result = {};\r\n if (mod != null) for (var k in mod) if (k !== \"default\" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);\r\n __setModuleDefault(result, mod);\r\n return result;\r\n };\r\n\r\n __importDefault = function (mod) {\r\n return (mod && mod.__esModule) ? mod : { \"default\": mod };\r\n };\r\n\r\n __classPrivateFieldGet = function (receiver, privateMap) {\r\n if (!privateMap.has(receiver)) {\r\n throw new TypeError(\"attempted to get private field on non-instance\");\r\n }\r\n return privateMap.get(receiver);\r\n };\r\n\r\n __classPrivateFieldSet = function (receiver, privateMap, value) {\r\n if (!privateMap.has(receiver)) {\r\n throw new TypeError(\"attempted to set private field on non-instance\");\r\n }\r\n privateMap.set(receiver, value);\r\n return value;\r\n };\r\n\r\n exporter(\"__extends\", __extends);\r\n exporter(\"__assign\", __assign);\r\n exporter(\"__rest\", __rest);\r\n exporter(\"__decorate\", __decorate);\r\n exporter(\"__param\", __param);\r\n exporter(\"__metadata\", __metadata);\r\n exporter(\"__awaiter\", __awaiter);\r\n exporter(\"__generator\", __generator);\r\n exporter(\"__exportStar\", __exportStar);\r\n exporter(\"__createBinding\", __createBinding);\r\n exporter(\"__values\", __values);\r\n exporter(\"__read\", __read);\r\n exporter(\"__spread\", __spread);\r\n exporter(\"__spreadArrays\", __spreadArrays);\r\n exporter(\"__spreadArray\", __spreadArray);\r\n exporter(\"__await\", __await);\r\n exporter(\"__asyncGenerator\", __asyncGenerator);\r\n exporter(\"__asyncDelegator\", __asyncDelegator);\r\n exporter(\"__asyncValues\", __asyncValues);\r\n exporter(\"__makeTemplateObject\", __makeTemplateObject);\r\n exporter(\"__importStar\", __importStar);\r\n exporter(\"__importDefault\", __importDefault);\r\n exporter(\"__classPrivateFieldGet\", __classPrivateFieldGet);\r\n exporter(\"__classPrivateFieldSet\", __classPrivateFieldSet);\r\n});\r\n", "/*!\n * clipboard.js v2.0.8\n * https://clipboardjs.com/\n *\n * Licensed MIT \u00A9 Zeno Rocha\n */\n(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory();\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine([], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"ClipboardJS\"] = factory();\n\telse\n\t\troot[\"ClipboardJS\"] = factory();\n})(this, function() {\nreturn /******/ (function() { // webpackBootstrap\n/******/ \tvar __webpack_modules__ = ({\n\n/***/ 134:\n/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n\n// EXPORTS\n__webpack_require__.d(__webpack_exports__, {\n \"default\": function() { return /* binding */ clipboard; }\n});\n\n// EXTERNAL MODULE: ./node_modules/tiny-emitter/index.js\nvar tiny_emitter = __webpack_require__(279);\nvar tiny_emitter_default = /*#__PURE__*/__webpack_require__.n(tiny_emitter);\n// EXTERNAL MODULE: ./node_modules/good-listener/src/listen.js\nvar listen = __webpack_require__(370);\nvar listen_default = /*#__PURE__*/__webpack_require__.n(listen);\n// EXTERNAL MODULE: ./node_modules/select/src/select.js\nvar src_select = __webpack_require__(817);\nvar select_default = /*#__PURE__*/__webpack_require__.n(src_select);\n;// CONCATENATED MODULE: ./src/clipboard-action.js\nfunction _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }\n\n\n/**\n * Inner class which performs selection from either `text` or `target`\n * properties and then executes copy or cut operations.\n */\n\nvar ClipboardAction = /*#__PURE__*/function () {\n /**\n * @param {Object} options\n */\n function ClipboardAction(options) {\n _classCallCheck(this, ClipboardAction);\n\n this.resolveOptions(options);\n this.initSelection();\n }\n /**\n * Defines base properties passed from constructor.\n * @param {Object} options\n */\n\n\n _createClass(ClipboardAction, [{\n key: \"resolveOptions\",\n value: function resolveOptions() {\n var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n this.action = options.action;\n this.container = options.container;\n this.emitter = options.emitter;\n this.target = options.target;\n this.text = options.text;\n this.trigger = options.trigger;\n this.selectedText = '';\n }\n /**\n * Decides which selection strategy is going to be applied based\n * on the existence of `text` and `target` properties.\n */\n\n }, {\n key: \"initSelection\",\n value: function initSelection() {\n if (this.text) {\n this.selectFake();\n } else if (this.target) {\n this.selectTarget();\n }\n }\n /**\n * Creates a fake textarea element, sets its value from `text` property,\n */\n\n }, {\n key: \"createFakeElement\",\n value: function createFakeElement() {\n var isRTL = document.documentElement.getAttribute('dir') === 'rtl';\n this.fakeElem = document.createElement('textarea'); // Prevent zooming on iOS\n\n this.fakeElem.style.fontSize = '12pt'; // Reset box model\n\n this.fakeElem.style.border = '0';\n this.fakeElem.style.padding = '0';\n this.fakeElem.style.margin = '0'; // Move element out of screen horizontally\n\n this.fakeElem.style.position = 'absolute';\n this.fakeElem.style[isRTL ? 'right' : 'left'] = '-9999px'; // Move element to the same position vertically\n\n var yPosition = window.pageYOffset || document.documentElement.scrollTop;\n this.fakeElem.style.top = \"\".concat(yPosition, \"px\");\n this.fakeElem.setAttribute('readonly', '');\n this.fakeElem.value = this.text;\n return this.fakeElem;\n }\n /**\n * Get's the value of fakeElem,\n * and makes a selection on it.\n */\n\n }, {\n key: \"selectFake\",\n value: function selectFake() {\n var _this = this;\n\n var fakeElem = this.createFakeElement();\n\n this.fakeHandlerCallback = function () {\n return _this.removeFake();\n };\n\n this.fakeHandler = this.container.addEventListener('click', this.fakeHandlerCallback) || true;\n this.container.appendChild(fakeElem);\n this.selectedText = select_default()(fakeElem);\n this.copyText();\n this.removeFake();\n }\n /**\n * Only removes the fake element after another click event, that way\n * a user can hit `Ctrl+C` to copy because selection still exists.\n */\n\n }, {\n key: \"removeFake\",\n value: function removeFake() {\n if (this.fakeHandler) {\n this.container.removeEventListener('click', this.fakeHandlerCallback);\n this.fakeHandler = null;\n this.fakeHandlerCallback = null;\n }\n\n if (this.fakeElem) {\n this.container.removeChild(this.fakeElem);\n this.fakeElem = null;\n }\n }\n /**\n * Selects the content from element passed on `target` property.\n */\n\n }, {\n key: \"selectTarget\",\n value: function selectTarget() {\n this.selectedText = select_default()(this.target);\n this.copyText();\n }\n /**\n * Executes the copy operation based on the current selection.\n */\n\n }, {\n key: \"copyText\",\n value: function copyText() {\n var succeeded;\n\n try {\n succeeded = document.execCommand(this.action);\n } catch (err) {\n succeeded = false;\n }\n\n this.handleResult(succeeded);\n }\n /**\n * Fires an event based on the copy operation result.\n * @param {Boolean} succeeded\n */\n\n }, {\n key: \"handleResult\",\n value: function handleResult(succeeded) {\n this.emitter.emit(succeeded ? 'success' : 'error', {\n action: this.action,\n text: this.selectedText,\n trigger: this.trigger,\n clearSelection: this.clearSelection.bind(this)\n });\n }\n /**\n * Moves focus away from `target` and back to the trigger, removes current selection.\n */\n\n }, {\n key: \"clearSelection\",\n value: function clearSelection() {\n if (this.trigger) {\n this.trigger.focus();\n }\n\n document.activeElement.blur();\n window.getSelection().removeAllRanges();\n }\n /**\n * Sets the `action` to be performed which can be either 'copy' or 'cut'.\n * @param {String} action\n */\n\n }, {\n key: \"destroy\",\n\n /**\n * Destroy lifecycle.\n */\n value: function destroy() {\n this.removeFake();\n }\n }, {\n key: \"action\",\n set: function set() {\n var action = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'copy';\n this._action = action;\n\n if (this._action !== 'copy' && this._action !== 'cut') {\n throw new Error('Invalid \"action\" value, use either \"copy\" or \"cut\"');\n }\n }\n /**\n * Gets the `action` property.\n * @return {String}\n */\n ,\n get: function get() {\n return this._action;\n }\n /**\n * Sets the `target` property using an element\n * that will be have its content copied.\n * @param {Element} target\n */\n\n }, {\n key: \"target\",\n set: function set(target) {\n if (target !== undefined) {\n if (target && _typeof(target) === 'object' && target.nodeType === 1) {\n if (this.action === 'copy' && target.hasAttribute('disabled')) {\n throw new Error('Invalid \"target\" attribute. Please use \"readonly\" instead of \"disabled\" attribute');\n }\n\n if (this.action === 'cut' && (target.hasAttribute('readonly') || target.hasAttribute('disabled'))) {\n throw new Error('Invalid \"target\" attribute. You can\\'t cut text from elements with \"readonly\" or \"disabled\" attributes');\n }\n\n this._target = target;\n } else {\n throw new Error('Invalid \"target\" value, use a valid Element');\n }\n }\n }\n /**\n * Gets the `target` property.\n * @return {String|HTMLElement}\n */\n ,\n get: function get() {\n return this._target;\n }\n }]);\n\n return ClipboardAction;\n}();\n\n/* harmony default export */ var clipboard_action = (ClipboardAction);\n;// CONCATENATED MODULE: ./src/clipboard.js\nfunction clipboard_typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { clipboard_typeof = function _typeof(obj) { return typeof obj; }; } else { clipboard_typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return clipboard_typeof(obj); }\n\nfunction clipboard_classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction clipboard_defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\nfunction clipboard_createClass(Constructor, protoProps, staticProps) { if (protoProps) clipboard_defineProperties(Constructor.prototype, protoProps); if (staticProps) clipboard_defineProperties(Constructor, staticProps); return Constructor; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }\n\nfunction _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\n\nfunction _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\n\nfunction _possibleConstructorReturn(self, call) { if (call && (clipboard_typeof(call) === \"object\" || typeof call === \"function\")) { return call; } return _assertThisInitialized(self); }\n\nfunction _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\n\nfunction _isNativeReflectConstruct() { if (typeof Reflect === \"undefined\" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }\n\nfunction _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\n\n\n\n\n/**\n * Helper function to retrieve attribute value.\n * @param {String} suffix\n * @param {Element} element\n */\n\nfunction getAttributeValue(suffix, element) {\n var attribute = \"data-clipboard-\".concat(suffix);\n\n if (!element.hasAttribute(attribute)) {\n return;\n }\n\n return element.getAttribute(attribute);\n}\n/**\n * Base class which takes one or more elements, adds event listeners to them,\n * and instantiates a new `ClipboardAction` on each click.\n */\n\n\nvar Clipboard = /*#__PURE__*/function (_Emitter) {\n _inherits(Clipboard, _Emitter);\n\n var _super = _createSuper(Clipboard);\n\n /**\n * @param {String|HTMLElement|HTMLCollection|NodeList} trigger\n * @param {Object} options\n */\n function Clipboard(trigger, options) {\n var _this;\n\n clipboard_classCallCheck(this, Clipboard);\n\n _this = _super.call(this);\n\n _this.resolveOptions(options);\n\n _this.listenClick(trigger);\n\n return _this;\n }\n /**\n * Defines if attributes would be resolved using internal setter functions\n * or custom functions that were passed in the constructor.\n * @param {Object} options\n */\n\n\n clipboard_createClass(Clipboard, [{\n key: \"resolveOptions\",\n value: function resolveOptions() {\n var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n this.action = typeof options.action === 'function' ? options.action : this.defaultAction;\n this.target = typeof options.target === 'function' ? options.target : this.defaultTarget;\n this.text = typeof options.text === 'function' ? options.text : this.defaultText;\n this.container = clipboard_typeof(options.container) === 'object' ? options.container : document.body;\n }\n /**\n * Adds a click event listener to the passed trigger.\n * @param {String|HTMLElement|HTMLCollection|NodeList} trigger\n */\n\n }, {\n key: \"listenClick\",\n value: function listenClick(trigger) {\n var _this2 = this;\n\n this.listener = listen_default()(trigger, 'click', function (e) {\n return _this2.onClick(e);\n });\n }\n /**\n * Defines a new `ClipboardAction` on each click event.\n * @param {Event} e\n */\n\n }, {\n key: \"onClick\",\n value: function onClick(e) {\n var trigger = e.delegateTarget || e.currentTarget;\n\n if (this.clipboardAction) {\n this.clipboardAction = null;\n }\n\n this.clipboardAction = new clipboard_action({\n action: this.action(trigger),\n target: this.target(trigger),\n text: this.text(trigger),\n container: this.container,\n trigger: trigger,\n emitter: this\n });\n }\n /**\n * Default `action` lookup function.\n * @param {Element} trigger\n */\n\n }, {\n key: \"defaultAction\",\n value: function defaultAction(trigger) {\n return getAttributeValue('action', trigger);\n }\n /**\n * Default `target` lookup function.\n * @param {Element} trigger\n */\n\n }, {\n key: \"defaultTarget\",\n value: function defaultTarget(trigger) {\n var selector = getAttributeValue('target', trigger);\n\n if (selector) {\n return document.querySelector(selector);\n }\n }\n /**\n * Returns the support of the given action, or all actions if no action is\n * given.\n * @param {String} [action]\n */\n\n }, {\n key: \"defaultText\",\n\n /**\n * Default `text` lookup function.\n * @param {Element} trigger\n */\n value: function defaultText(trigger) {\n return getAttributeValue('text', trigger);\n }\n /**\n * Destroy lifecycle.\n */\n\n }, {\n key: \"destroy\",\n value: function destroy() {\n this.listener.destroy();\n\n if (this.clipboardAction) {\n this.clipboardAction.destroy();\n this.clipboardAction = null;\n }\n }\n }], [{\n key: \"isSupported\",\n value: function isSupported() {\n var action = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : ['copy', 'cut'];\n var actions = typeof action === 'string' ? [action] : action;\n var support = !!document.queryCommandSupported;\n actions.forEach(function (action) {\n support = support && !!document.queryCommandSupported(action);\n });\n return support;\n }\n }]);\n\n return Clipboard;\n}((tiny_emitter_default()));\n\n/* harmony default export */ var clipboard = (Clipboard);\n\n/***/ }),\n\n/***/ 828:\n/***/ (function(module) {\n\nvar DOCUMENT_NODE_TYPE = 9;\n\n/**\n * A polyfill for Element.matches()\n */\nif (typeof Element !== 'undefined' && !Element.prototype.matches) {\n var proto = Element.prototype;\n\n proto.matches = proto.matchesSelector ||\n proto.mozMatchesSelector ||\n proto.msMatchesSelector ||\n proto.oMatchesSelector ||\n proto.webkitMatchesSelector;\n}\n\n/**\n * Finds the closest parent that matches a selector.\n *\n * @param {Element} element\n * @param {String} selector\n * @return {Function}\n */\nfunction closest (element, selector) {\n while (element && element.nodeType !== DOCUMENT_NODE_TYPE) {\n if (typeof element.matches === 'function' &&\n element.matches(selector)) {\n return element;\n }\n element = element.parentNode;\n }\n}\n\nmodule.exports = closest;\n\n\n/***/ }),\n\n/***/ 438:\n/***/ (function(module, __unused_webpack_exports, __webpack_require__) {\n\nvar closest = __webpack_require__(828);\n\n/**\n * Delegates event to a selector.\n *\n * @param {Element} element\n * @param {String} selector\n * @param {String} type\n * @param {Function} callback\n * @param {Boolean} useCapture\n * @return {Object}\n */\nfunction _delegate(element, selector, type, callback, useCapture) {\n var listenerFn = listener.apply(this, arguments);\n\n element.addEventListener(type, listenerFn, useCapture);\n\n return {\n destroy: function() {\n element.removeEventListener(type, listenerFn, useCapture);\n }\n }\n}\n\n/**\n * Delegates event to a selector.\n *\n * @param {Element|String|Array} [elements]\n * @param {String} selector\n * @param {String} type\n * @param {Function} callback\n * @param {Boolean} useCapture\n * @return {Object}\n */\nfunction delegate(elements, selector, type, callback, useCapture) {\n // Handle the regular Element usage\n if (typeof elements.addEventListener === 'function') {\n return _delegate.apply(null, arguments);\n }\n\n // Handle Element-less usage, it defaults to global delegation\n if (typeof type === 'function') {\n // Use `document` as the first parameter, then apply arguments\n // This is a short way to .unshift `arguments` without running into deoptimizations\n return _delegate.bind(null, document).apply(null, arguments);\n }\n\n // Handle Selector-based usage\n if (typeof elements === 'string') {\n elements = document.querySelectorAll(elements);\n }\n\n // Handle Array-like based usage\n return Array.prototype.map.call(elements, function (element) {\n return _delegate(element, selector, type, callback, useCapture);\n });\n}\n\n/**\n * Finds closest match and invokes callback.\n *\n * @param {Element} element\n * @param {String} selector\n * @param {String} type\n * @param {Function} callback\n * @return {Function}\n */\nfunction listener(element, selector, type, callback) {\n return function(e) {\n e.delegateTarget = closest(e.target, selector);\n\n if (e.delegateTarget) {\n callback.call(element, e);\n }\n }\n}\n\nmodule.exports = delegate;\n\n\n/***/ }),\n\n/***/ 879:\n/***/ (function(__unused_webpack_module, exports) {\n\n/**\n * Check if argument is a HTML element.\n *\n * @param {Object} value\n * @return {Boolean}\n */\nexports.node = function(value) {\n return value !== undefined\n && value instanceof HTMLElement\n && value.nodeType === 1;\n};\n\n/**\n * Check if argument is a list of HTML elements.\n *\n * @param {Object} value\n * @return {Boolean}\n */\nexports.nodeList = function(value) {\n var type = Object.prototype.toString.call(value);\n\n return value !== undefined\n && (type === '[object NodeList]' || type === '[object HTMLCollection]')\n && ('length' in value)\n && (value.length === 0 || exports.node(value[0]));\n};\n\n/**\n * Check if argument is a string.\n *\n * @param {Object} value\n * @return {Boolean}\n */\nexports.string = function(value) {\n return typeof value === 'string'\n || value instanceof String;\n};\n\n/**\n * Check if argument is a function.\n *\n * @param {Object} value\n * @return {Boolean}\n */\nexports.fn = function(value) {\n var type = Object.prototype.toString.call(value);\n\n return type === '[object Function]';\n};\n\n\n/***/ }),\n\n/***/ 370:\n/***/ (function(module, __unused_webpack_exports, __webpack_require__) {\n\nvar is = __webpack_require__(879);\nvar delegate = __webpack_require__(438);\n\n/**\n * Validates all params and calls the right\n * listener function based on its target type.\n *\n * @param {String|HTMLElement|HTMLCollection|NodeList} target\n * @param {String} type\n * @param {Function} callback\n * @return {Object}\n */\nfunction listen(target, type, callback) {\n if (!target && !type && !callback) {\n throw new Error('Missing required arguments');\n }\n\n if (!is.string(type)) {\n throw new TypeError('Second argument must be a String');\n }\n\n if (!is.fn(callback)) {\n throw new TypeError('Third argument must be a Function');\n }\n\n if (is.node(target)) {\n return listenNode(target, type, callback);\n }\n else if (is.nodeList(target)) {\n return listenNodeList(target, type, callback);\n }\n else if (is.string(target)) {\n return listenSelector(target, type, callback);\n }\n else {\n throw new TypeError('First argument must be a String, HTMLElement, HTMLCollection, or NodeList');\n }\n}\n\n/**\n * Adds an event listener to a HTML element\n * and returns a remove listener function.\n *\n * @param {HTMLElement} node\n * @param {String} type\n * @param {Function} callback\n * @return {Object}\n */\nfunction listenNode(node, type, callback) {\n node.addEventListener(type, callback);\n\n return {\n destroy: function() {\n node.removeEventListener(type, callback);\n }\n }\n}\n\n/**\n * Add an event listener to a list of HTML elements\n * and returns a remove listener function.\n *\n * @param {NodeList|HTMLCollection} nodeList\n * @param {String} type\n * @param {Function} callback\n * @return {Object}\n */\nfunction listenNodeList(nodeList, type, callback) {\n Array.prototype.forEach.call(nodeList, function(node) {\n node.addEventListener(type, callback);\n });\n\n return {\n destroy: function() {\n Array.prototype.forEach.call(nodeList, function(node) {\n node.removeEventListener(type, callback);\n });\n }\n }\n}\n\n/**\n * Add an event listener to a selector\n * and returns a remove listener function.\n *\n * @param {String} selector\n * @param {String} type\n * @param {Function} callback\n * @return {Object}\n */\nfunction listenSelector(selector, type, callback) {\n return delegate(document.body, selector, type, callback);\n}\n\nmodule.exports = listen;\n\n\n/***/ }),\n\n/***/ 817:\n/***/ (function(module) {\n\nfunction select(element) {\n var selectedText;\n\n if (element.nodeName === 'SELECT') {\n element.focus();\n\n selectedText = element.value;\n }\n else if (element.nodeName === 'INPUT' || element.nodeName === 'TEXTAREA') {\n var isReadOnly = element.hasAttribute('readonly');\n\n if (!isReadOnly) {\n element.setAttribute('readonly', '');\n }\n\n element.select();\n element.setSelectionRange(0, element.value.length);\n\n if (!isReadOnly) {\n element.removeAttribute('readonly');\n }\n\n selectedText = element.value;\n }\n else {\n if (element.hasAttribute('contenteditable')) {\n element.focus();\n }\n\n var selection = window.getSelection();\n var range = document.createRange();\n\n range.selectNodeContents(element);\n selection.removeAllRanges();\n selection.addRange(range);\n\n selectedText = selection.toString();\n }\n\n return selectedText;\n}\n\nmodule.exports = select;\n\n\n/***/ }),\n\n/***/ 279:\n/***/ (function(module) {\n\nfunction E () {\n // Keep this empty so it's easier to inherit from\n // (via https://github.com/lipsmack from https://github.com/scottcorgan/tiny-emitter/issues/3)\n}\n\nE.prototype = {\n on: function (name, callback, ctx) {\n var e = this.e || (this.e = {});\n\n (e[name] || (e[name] = [])).push({\n fn: callback,\n ctx: ctx\n });\n\n return this;\n },\n\n once: function (name, callback, ctx) {\n var self = this;\n function listener () {\n self.off(name, listener);\n callback.apply(ctx, arguments);\n };\n\n listener._ = callback\n return this.on(name, listener, ctx);\n },\n\n emit: function (name) {\n var data = [].slice.call(arguments, 1);\n var evtArr = ((this.e || (this.e = {}))[name] || []).slice();\n var i = 0;\n var len = evtArr.length;\n\n for (i; i < len; i++) {\n evtArr[i].fn.apply(evtArr[i].ctx, data);\n }\n\n return this;\n },\n\n off: function (name, callback) {\n var e = this.e || (this.e = {});\n var evts = e[name];\n var liveEvents = [];\n\n if (evts && callback) {\n for (var i = 0, len = evts.length; i < len; i++) {\n if (evts[i].fn !== callback && evts[i].fn._ !== callback)\n liveEvents.push(evts[i]);\n }\n }\n\n // Remove event from queue to prevent memory leak\n // Suggested by https://github.com/lazd\n // Ref: https://github.com/scottcorgan/tiny-emitter/commit/c6ebfaa9bc973b33d110a84a307742b7cf94c953#commitcomment-5024910\n\n (liveEvents.length)\n ? e[name] = liveEvents\n : delete e[name];\n\n return this;\n }\n};\n\nmodule.exports = E;\nmodule.exports.TinyEmitter = E;\n\n\n/***/ })\n\n/******/ \t});\n/************************************************************************/\n/******/ \t// The module cache\n/******/ \tvar __webpack_module_cache__ = {};\n/******/ \t\n/******/ \t// The require function\n/******/ \tfunction __webpack_require__(moduleId) {\n/******/ \t\t// Check if module is in cache\n/******/ \t\tif(__webpack_module_cache__[moduleId]) {\n/******/ \t\t\treturn __webpack_module_cache__[moduleId].exports;\n/******/ \t\t}\n/******/ \t\t// Create a new module (and put it into the cache)\n/******/ \t\tvar module = __webpack_module_cache__[moduleId] = {\n/******/ \t\t\t// no module.id needed\n/******/ \t\t\t// no module.loaded needed\n/******/ \t\t\texports: {}\n/******/ \t\t};\n/******/ \t\n/******/ \t\t// Execute the module function\n/******/ \t\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n/******/ \t\n/******/ \t\t// Return the exports of the module\n/******/ \t\treturn module.exports;\n/******/ \t}\n/******/ \t\n/************************************************************************/\n/******/ \t/* webpack/runtime/compat get default export */\n/******/ \t!function() {\n/******/ \t\t// getDefaultExport function for compatibility with non-harmony modules\n/******/ \t\t__webpack_require__.n = function(module) {\n/******/ \t\t\tvar getter = module && module.__esModule ?\n/******/ \t\t\t\tfunction() { return module['default']; } :\n/******/ \t\t\t\tfunction() { return module; };\n/******/ \t\t\t__webpack_require__.d(getter, { a: getter });\n/******/ \t\t\treturn getter;\n/******/ \t\t};\n/******/ \t}();\n/******/ \t\n/******/ \t/* webpack/runtime/define property getters */\n/******/ \t!function() {\n/******/ \t\t// define getter functions for harmony exports\n/******/ \t\t__webpack_require__.d = function(exports, definition) {\n/******/ \t\t\tfor(var key in definition) {\n/******/ \t\t\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n/******/ \t\t\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n/******/ \t\t\t\t}\n/******/ \t\t\t}\n/******/ \t\t};\n/******/ \t}();\n/******/ \t\n/******/ \t/* webpack/runtime/hasOwnProperty shorthand */\n/******/ \t!function() {\n/******/ \t\t__webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }\n/******/ \t}();\n/******/ \t\n/************************************************************************/\n/******/ \t// module exports must be returned from runtime so entry inlining is disabled\n/******/ \t// startup\n/******/ \t// Load entry module and return exports\n/******/ \treturn __webpack_require__(134);\n/******/ })()\n.default;\n});", "/*!\n * escape-html\n * Copyright(c) 2012-2013 TJ Holowaychuk\n * Copyright(c) 2015 Andreas Lubbe\n * Copyright(c) 2015 Tiancheng \"Timothy\" Gu\n * MIT Licensed\n */\n\n'use strict';\n\n/**\n * Module variables.\n * @private\n */\n\nvar matchHtmlRegExp = /[\"'&<>]/;\n\n/**\n * Module exports.\n * @public\n */\n\nmodule.exports = escapeHtml;\n\n/**\n * Escape special characters in the given string of html.\n *\n * @param {string} string The string to escape for inserting into HTML\n * @return {string}\n * @public\n */\n\nfunction escapeHtml(string) {\n var str = '' + string;\n var match = matchHtmlRegExp.exec(str);\n\n if (!match) {\n return str;\n }\n\n var escape;\n var html = '';\n var index = 0;\n var lastIndex = 0;\n\n for (index = match.index; index < str.length; index++) {\n switch (str.charCodeAt(index)) {\n case 34: // \"\n escape = '&quot;';\n break;\n case 38: // &\n escape = '&amp;';\n break;\n case 39: // '\n escape = '&#39;';\n break;\n case 60: // <\n escape = '&lt;';\n break;\n case 62: // >\n escape = '&gt;';\n break;\n default:\n continue;\n }\n\n if (lastIndex !== index) {\n html += str.substring(lastIndex, index);\n }\n\n lastIndex = index + 1;\n html += escape;\n }\n\n return lastIndex !== index\n ? html + str.substring(lastIndex, index)\n : html;\n}\n", "/*\n * Copyright (c) 2016-2021 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport \"focus-visible\"\nimport { NEVER, Subject, defer, merge } from \"rxjs\"\nimport {\n delay,\n filter,\n map,\n mergeWith,\n shareReplay,\n switchMap\n} from \"rxjs/operators\"\n\nimport { configuration, feature } from \"./_\"\nimport {\n at,\n getElement,\n requestJSON,\n setToggle,\n watchDocument,\n watchKeyboard,\n watchLocation,\n watchLocationTarget,\n watchMedia,\n watchPrint,\n watchViewport\n} from \"./browser\"\nimport {\n getComponentElement,\n getComponentElements,\n mountBackToTop,\n mountContent,\n mountDialog,\n mountHeader,\n mountHeaderTitle,\n mountPalette,\n mountSearch,\n mountSidebar,\n mountSource,\n mountTableOfContents,\n mountTabs,\n watchHeader,\n watchMain\n} from \"./components\"\nimport {\n SearchIndex,\n setupClipboardJS,\n setupInstantLoading,\n setupVersionSelector\n} from \"./integrations\"\nimport {\n patchIndeterminate,\n patchScrollfix,\n patchScrolllock\n} from \"./patches\"\n\n/* ----------------------------------------------------------------------------\n * Application\n * ------------------------------------------------------------------------- */\n\n/* Yay, JavaScript is available */\ndocument.documentElement.classList.remove(\"no-js\")\ndocument.documentElement.classList.add(\"js\")\n\n/* Set up navigation observables and subjects */\nconst document$ = watchDocument()\nconst location$ = watchLocation()\nconst target$ = watchLocationTarget()\nconst keyboard$ = watchKeyboard()\n\n/* Set up media observables */\nconst viewport$ = watchViewport()\nconst tablet$ = watchMedia(\"(min-width: 960px)\")\nconst screen$ = watchMedia(\"(min-width: 1220px)\")\nconst print$ = watchPrint()\n\n/* Retrieve search index, if search is enabled */\nconst config = configuration()\nconst index$ = document.forms.namedItem(\"search\")\n ? __search?.index || requestJSON<SearchIndex>(\n `${config.base}/search/search_index.json`\n )\n : NEVER\n\n/* Set up Clipboard.js integration */\nconst alert$ = new Subject<string>()\nsetupClipboardJS({ alert$ })\n\n/* Set up instant loading, if enabled */\nif (feature(\"navigation.instant\"))\n setupInstantLoading({ document$, location$, viewport$ })\n\n/* Set up version selector */\nif (config.version?.provider === \"mike\")\n setupVersionSelector()\n\n/* Always close drawer and search on navigation */\nmerge(location$, target$)\n .pipe(\n delay(125)\n )\n .subscribe(() => {\n setToggle(\"drawer\", false)\n setToggle(\"search\", false)\n })\n\n/* Set up global keyboard handlers */\nkeyboard$\n .pipe(\n filter(({ mode }) => mode === \"global\")\n )\n .subscribe(key => {\n switch (key.type) {\n\n /* Go to previous page */\n case \"p\":\n case \",\":\n const prev = getElement(\"[href][rel=prev]\")\n if (typeof prev !== \"undefined\")\n prev.click()\n break\n\n /* Go to next page */\n case \"n\":\n case \".\":\n const next = getElement(\"[href][rel=next]\")\n if (typeof next !== \"undefined\")\n next.click()\n break\n }\n })\n\n/* Set up patches */\npatchIndeterminate({ document$, tablet$ })\npatchScrollfix({ document$ })\npatchScrolllock({ viewport$, tablet$ })\n\n/* Set up header and main area observable */\nconst header$ = watchHeader(getComponentElement(\"header\"), { viewport$ })\nconst main$ = document$\n .pipe(\n map(() => getComponentElement(\"main\")),\n switchMap(el => watchMain(el, { viewport$, header$ })),\n shareReplay(1)\n )\n\n/* Set up control component observables */\nconst control$ = merge(\n\n /* Dialog */\n ...getComponentElements(\"dialog\")\n .map(el => mountDialog(el, { alert$ })),\n\n /* Header */\n ...getComponentElements(\"header\")\n .map(el => mountHeader(el, { viewport$, header$, main$ })),\n\n /* Color palette */\n ...getComponentElements(\"palette\")\n .map(el => mountPalette(el)),\n\n /* Search */\n ...getComponentElements(\"search\")\n .map(el => mountSearch(el, { index$, keyboard$ })),\n\n /* Repository information */\n ...getComponentElements(\"source\")\n .map(el => mountSource(el))\n)\n\n/* Set up content component observables */\nconst content$ = defer(() => merge(\n\n /* Content */\n ...getComponentElements(\"content\")\n .map(el => mountContent(el, { target$, viewport$, print$ })),\n\n /* Header title */\n ...getComponentElements(\"header-title\")\n .map(el => mountHeaderTitle(el, { viewport$, header$ })),\n\n /* Sidebar */\n ...getComponentElements(\"sidebar\")\n .map(el => el.getAttribute(\"data-md-type\") === \"navigation\"\n ? at(screen$, () => mountSidebar(el, { viewport$, header$, main$ }))\n : at(tablet$, () => mountSidebar(el, { viewport$, header$, main$ }))\n ),\n\n /* Navigation tabs */\n ...getComponentElements(\"tabs\")\n .map(el => mountTabs(el, { viewport$, header$ })),\n\n /* Table of contents */\n ...getComponentElements(\"toc\")\n .map(el => mountTableOfContents(el, { viewport$, header$ })),\n\n /* Back-to-top button */\n ...getComponentElements(\"top\")\n .map(el => mountBackToTop(el, { viewport$, main$ }))\n))\n\n/* Set up component observables */\nconst component$ = document$\n .pipe(\n switchMap(() => content$),\n mergeWith(control$),\n shareReplay(1)\n )\n\n/* Subscribe to all components */\ncomponent$.subscribe()\n\n/* ----------------------------------------------------------------------------\n * Exports\n * ------------------------------------------------------------------------- */\n\nwindow.document$ = document$ /* Document observable */\nwindow.location$ = location$ /* Location subject */\nwindow.target$ = target$ /* Location target observable */\nwindow.keyboard$ = keyboard$ /* Keyboard observable */\nwindow.viewport$ = viewport$ /* Viewport observable */\nwindow.tablet$ = tablet$ /* Tablet observable */\nwindow.screen$ = screen$ /* Screen observable */\nwindow.print$ = print$ /* Print mode observable */\nwindow.alert$ = alert$ /* Alert subject */\nwindow.component$ = component$ /* Component observable */\n", "import tslib from '../tslib.js';\r\nconst {\r\n __extends,\r\n __assign,\r\n __rest,\r\n __decorate,\r\n __param,\r\n __metadata,\r\n __awaiter,\r\n __generator,\r\n __exportStar,\r\n __createBinding,\r\n __values,\r\n __read,\r\n __spread,\r\n __spreadArrays,\r\n __spreadArray,\r\n __await,\r\n __asyncGenerator,\r\n __asyncDelegator,\r\n __asyncValues,\r\n __makeTemplateObject,\r\n __importStar,\r\n __importDefault,\r\n __classPrivateFieldGet,\r\n __classPrivateFieldSet,\r\n} = tslib;\r\nexport {\r\n __extends,\r\n __assign,\r\n __rest,\r\n __decorate,\r\n __param,\r\n __metadata,\r\n __awaiter,\r\n __generator,\r\n __exportStar,\r\n __createBinding,\r\n __values,\r\n __read,\r\n __spread,\r\n __spreadArrays,\r\n __spreadArray,\r\n __await,\r\n __asyncGenerator,\r\n __asyncDelegator,\r\n __asyncValues,\r\n __makeTemplateObject,\r\n __importStar,\r\n __importDefault,\r\n __classPrivateFieldGet,\r\n __classPrivateFieldSet,\r\n};\r\n", null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, "/*\n * Copyright (c) 2016-2021 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport { ReplaySubject, Subject, fromEvent } from \"rxjs\"\nimport { mapTo } from \"rxjs/operators\"\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Watch document\n *\n * Documents are implemented as subjects, so all downstream observables are\n * automatically updated when a new document is emitted.\n *\n * @returns Document subject\n */\nexport function watchDocument(): Subject<Document> {\n const document$ = new ReplaySubject<Document>()\n fromEvent(document, \"DOMContentLoaded\")\n .pipe(\n mapTo(document)\n )\n .subscribe(document$)\n\n /* Return document */\n return document$\n}\n", "/*\n * Copyright (c) 2016-2021 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Retrieve an element matching the query selector\n *\n * @template T - Element type\n *\n * @param selector - Query selector\n * @param node - Node of reference\n *\n * @returns Element or nothing\n */\nexport function getElement<T extends keyof HTMLElementTagNameMap>(\n selector: T, node?: ParentNode\n): HTMLElementTagNameMap[T]\n\nexport function getElement<T extends HTMLElement>(\n selector: string, node?: ParentNode\n): T | undefined\n\nexport function getElement<T extends HTMLElement>(\n selector: string, node: ParentNode = document\n): T | undefined {\n return node.querySelector<T>(selector) || undefined\n}\n\n/**\n * Retrieve an element matching a query selector or throw a reference error\n *\n * @template T - Element type\n *\n * @param selector - Query selector\n * @param node - Node of reference\n *\n * @returns Element\n */\nexport function getElementOrThrow<T extends keyof HTMLElementTagNameMap>(\n selector: T, node?: ParentNode\n): HTMLElementTagNameMap[T]\n\nexport function getElementOrThrow<T extends HTMLElement>(\n selector: string, node?: ParentNode\n): T\n\nexport function getElementOrThrow<T extends HTMLElement>(\n selector: string, node: ParentNode = document\n): T {\n const el = getElement<T>(selector, node)\n if (typeof el === \"undefined\")\n throw new ReferenceError(\n `Missing element: expected \"${selector}\" to be present`\n )\n return el\n}\n\n/**\n * Retrieve the currently active element\n *\n * @returns Element or nothing\n */\nexport function getActiveElement(): HTMLElement | undefined {\n return document.activeElement instanceof HTMLElement\n ? document.activeElement\n : undefined\n}\n\n/**\n * Retrieve all elements matching the query selector\n *\n * @template T - Element type\n *\n * @param selector - Query selector\n * @param node - Node of reference\n *\n * @returns Elements\n */\nexport function getElements<T extends keyof HTMLElementTagNameMap>(\n selector: T, node?: ParentNode\n): HTMLElementTagNameMap[T][]\n\nexport function getElements<T extends HTMLElement>(\n selector: string, node?: ParentNode\n): T[]\n\nexport function getElements<T extends HTMLElement>(\n selector: string, node: ParentNode = document\n): T[] {\n return Array.from(node.querySelectorAll<T>(selector))\n}\n\n/* ------------------------------------------------------------------------- */\n\n/**\n * Create an element\n *\n * @template T - Tag name type\n *\n * @param tagName - Tag name\n *\n * @returns Element\n */\nexport function createElement<T extends keyof HTMLElementTagNameMap>(\n tagName: T\n): HTMLElementTagNameMap[T] {\n return document.createElement(tagName)\n}\n\n/**\n * Replace an element with the given list of nodes\n *\n * @param el - Element\n * @param nodes - Replacement nodes\n */\nexport function replaceElement(\n el: HTMLElement, ...nodes: Node[]\n): void {\n el.replaceWith(...nodes)\n}\n", "/*\n * Copyright (c) 2016-2021 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport { Observable, fromEvent, merge } from \"rxjs\"\nimport { map, startWith } from \"rxjs/operators\"\n\nimport { getActiveElement } from \"../_\"\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Set element focus\n *\n * @param el - Element\n * @param value - Whether the element should be focused\n */\nexport function setElementFocus(\n el: HTMLElement, value = true\n): void {\n if (value)\n el.focus()\n else\n el.blur()\n}\n\n/* ------------------------------------------------------------------------- */\n\n/**\n * Watch element focus\n *\n * @param el - Element\n *\n * @returns Element focus observable\n */\nexport function watchElementFocus(\n el: HTMLElement\n): Observable<boolean> {\n return merge(\n fromEvent<FocusEvent>(el, \"focus\"),\n fromEvent<FocusEvent>(el, \"blur\")\n )\n .pipe(\n map(({ type }) => type === \"focus\"),\n startWith(el === getActiveElement())\n )\n}\n", "/*\n * Copyright (c) 2016-2021 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport {\n NEVER,\n Observable,\n Subject,\n defer,\n of\n} from \"rxjs\"\nimport {\n filter,\n finalize,\n map,\n shareReplay,\n startWith,\n switchMap,\n tap\n} from \"rxjs/operators\"\n\n/* ----------------------------------------------------------------------------\n * Types\n * ------------------------------------------------------------------------- */\n\n/**\n * Element offset\n */\nexport interface ElementSize {\n width: number /* Element width */\n height: number /* Element height */\n}\n\n/* ----------------------------------------------------------------------------\n * Data\n * ------------------------------------------------------------------------- */\n\n/**\n * Resize observer entry subject\n */\nconst entry$ = new Subject<ResizeObserverEntry>()\n\n/**\n * Resize observer observable\n *\n * This observable will create a `ResizeObserver` on the first subscription\n * and will automatically terminate it when there are no more subscribers.\n * It's quite important to centralize observation in a single `ResizeObserver`,\n * as the performance difference can be quite dramatic, as the link shows.\n *\n * @see https://bit.ly/3iIYfEm - Google Groups on performance\n */\nconst observer$ = defer(() => of(\n new ResizeObserver(entries => {\n for (const entry of entries)\n entry$.next(entry)\n })\n))\n .pipe(\n switchMap(resize => NEVER.pipe(startWith(resize))\n .pipe(\n finalize(() => resize.disconnect())\n )\n ),\n shareReplay(1)\n )\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Retrieve element size\n *\n * @param el - Element\n *\n * @returns Element size\n */\nexport function getElementSize(el: HTMLElement): ElementSize {\n return {\n width: el.offsetWidth,\n height: el.offsetHeight\n }\n}\n\n/**\n * Retrieve element content size, i.e. including overflowing content\n *\n * @param el - Element\n *\n * @returns Element size\n */\nexport function getElementContentSize(el: HTMLElement): ElementSize {\n return {\n width: el.scrollWidth,\n height: el.scrollHeight\n }\n}\n\n/* ------------------------------------------------------------------------- */\n\n/**\n * Watch element size\n *\n * This function returns an observable that subscribes to a single internal\n * instance of `ResizeObserver` upon subscription, and emit resize events until\n * termination. Note that this function should not be called with the same\n * element twice, as the first unsubscription will terminate observation.\n *\n * Sadly, we can't use the `DOMRect` objects returned by the observer, because\n * we need the emitted values to be consistent with `getElementSize`, which will\n * return the used values (rounded) and not actual values (unrounded). Thus, we\n * use the `offset*` properties. See the linked GitHub issue.\n *\n * @see https://bit.ly/3m0k3he - GitHub issue\n *\n * @param el - Element\n *\n * @returns Element size observable\n */\nexport function watchElementSize(\n el: HTMLElement\n): Observable<ElementSize> {\n return observer$\n .pipe(\n tap(observer => observer.observe(el)),\n switchMap(observer => entry$\n .pipe(\n filter(({ target }) => target === el),\n finalize(() => observer.unobserve(el)),\n map(() => getElementSize(el))\n )\n ),\n startWith(getElementSize(el))\n )\n}\n", "/*\n * Copyright (c) 2016-2021 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport { Observable, fromEvent, merge } from \"rxjs\"\nimport {\n distinctUntilChanged,\n map,\n startWith\n} from \"rxjs/operators\"\n\nimport {\n getElementContentSize,\n getElementSize\n} from \"../size\"\n\n/* ----------------------------------------------------------------------------\n * Types\n * ------------------------------------------------------------------------- */\n\n/**\n * Element offset\n */\nexport interface ElementOffset {\n x: number /* Horizontal offset */\n y: number /* Vertical offset */\n}\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Retrieve element offset\n *\n * @param el - Element\n *\n * @returns Element offset\n */\nexport function getElementOffset(el: HTMLElement): ElementOffset {\n return {\n x: el.scrollLeft,\n y: el.scrollTop\n }\n}\n\n/* ------------------------------------------------------------------------- */\n\n/**\n * Watch element offset\n *\n * @param el - Element\n *\n * @returns Element offset observable\n */\nexport function watchElementOffset(\n el: HTMLElement\n): Observable<ElementOffset> {\n return merge(\n fromEvent(el, \"scroll\"),\n fromEvent(window, \"resize\")\n )\n .pipe(\n map(() => getElementOffset(el)),\n startWith(getElementOffset(el))\n )\n}\n\n/**\n * Watch element threshold\n *\n * This function returns an observable which emits whether the bottom scroll\n * offset of an elements is within a certain threshold.\n *\n * @param el - Element\n * @param threshold - Threshold\n *\n * @returns Element threshold observable\n */\nexport function watchElementThreshold(\n el: HTMLElement, threshold = 16\n): Observable<boolean> {\n return watchElementOffset(el)\n .pipe(\n map(({ y }) => {\n const visible = getElementSize(el)\n const content = getElementContentSize(el)\n return y >= (\n content.height - visible.height - threshold\n )\n }),\n distinctUntilChanged()\n )\n}\n", "/*\n * Copyright (c) 2016-2021 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Set element text selection\n *\n * @param el - Element\n */\nexport function setElementSelection(\n el: HTMLElement\n): void {\n if (el instanceof HTMLInputElement)\n el.select()\n else\n throw new Error(\"Not implemented\")\n}\n", "/*\n * Copyright (c) 2016-2021 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport { Observable, fromEvent } from \"rxjs\"\nimport { map, startWith } from \"rxjs/operators\"\n\nimport { getElementOrThrow } from \"../element\"\n\n/* ----------------------------------------------------------------------------\n * Types\n * ------------------------------------------------------------------------- */\n\n/**\n * Toggle\n */\nexport type Toggle =\n | \"drawer\" /* Toggle for drawer */\n | \"search\" /* Toggle for search */\n\n/* ----------------------------------------------------------------------------\n * Data\n * ------------------------------------------------------------------------- */\n\n/**\n * Toggle map\n */\nconst toggles: Record<Toggle, HTMLInputElement> = {\n drawer: getElementOrThrow(\"[data-md-toggle=drawer]\"),\n search: getElementOrThrow(\"[data-md-toggle=search]\")\n}\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Retrieve the value of a toggle\n *\n * @param name - Toggle\n *\n * @returns Toggle value\n */\nexport function getToggle(name: Toggle): boolean {\n return toggles[name].checked\n}\n\n/**\n * Set toggle\n *\n * Simulating a click event seems to be the most cross-browser compatible way\n * of changing the value while also emitting a `change` event. Before, Material\n * used `CustomEvent` to programmatically change the value of a toggle, but this\n * is a much simpler and cleaner solution which doesn't require a polyfill.\n *\n * @param name - Toggle\n * @param value - Toggle value\n */\nexport function setToggle(name: Toggle, value: boolean): void {\n if (toggles[name].checked !== value)\n toggles[name].click()\n}\n\n/* ------------------------------------------------------------------------- */\n\n/**\n * Watch toggle\n *\n * @param name - Toggle\n *\n * @returns Toggle value observable\n */\nexport function watchToggle(name: Toggle): Observable<boolean> {\n const el = toggles[name]\n return fromEvent(el, \"change\")\n .pipe(\n map(() => el.checked),\n startWith(el.checked)\n )\n}\n", "/*\n * Copyright (c) 2016-2021 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport { Observable, fromEvent } from \"rxjs\"\nimport { filter, map, share } from \"rxjs/operators\"\n\nimport { getActiveElement } from \"../element\"\nimport { getToggle } from \"../toggle\"\n\n/* ----------------------------------------------------------------------------\n * Types\n * ------------------------------------------------------------------------- */\n\n/**\n * Keyboard mode\n */\nexport type KeyboardMode =\n | \"global\" /* Global */\n | \"search\" /* Search is open */\n\n/* ------------------------------------------------------------------------- */\n\n/**\n * Keyboard\n */\nexport interface Keyboard {\n mode: KeyboardMode /* Keyboard mode */\n type: string /* Key type */\n claim(): void /* Key claim */\n}\n\n/* ----------------------------------------------------------------------------\n * Helper functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Check whether an element may receive keyboard input\n *\n * @param el - Element\n *\n * @returns Test result\n */\nfunction isSusceptibleToKeyboard(el: HTMLElement): boolean {\n switch (el.tagName) {\n\n /* Form elements */\n case \"INPUT\":\n case \"SELECT\":\n case \"TEXTAREA\":\n return true\n\n /* Everything else */\n default:\n return el.isContentEditable\n }\n}\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Watch keyboard\n *\n * @returns Keyboard observable\n */\nexport function watchKeyboard(): Observable<Keyboard> {\n return fromEvent<KeyboardEvent>(window, \"keydown\")\n .pipe(\n filter(ev => !(ev.metaKey || ev.ctrlKey)),\n map(ev => ({\n mode: getToggle(\"search\") ? \"search\" : \"global\",\n type: ev.key,\n claim() {\n ev.preventDefault()\n ev.stopPropagation()\n }\n } as Keyboard)),\n filter(({ mode }) => {\n if (mode === \"global\") {\n const active = getActiveElement()\n if (typeof active !== \"undefined\")\n return !isSusceptibleToKeyboard(active)\n }\n return true\n }),\n share()\n )\n}\n", "/*\n * Copyright (c) 2016-2021 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport { Subject } from \"rxjs\"\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Retrieve location\n *\n * This function returns a `URL` object (and not `Location`) to normalize the\n * typings across the application. Furthermore, locations need to be tracked\n * without setting them and `Location` is a singleton which represents the\n * current location.\n *\n * @returns URL\n */\nexport function getLocation(): URL {\n return new URL(location.href)\n}\n\n/**\n * Set location\n *\n * @param url - URL to change to\n */\nexport function setLocation(url: URL): void {\n location.href = url.href\n}\n\n/* ------------------------------------------------------------------------- */\n\n/**\n * Watch location\n *\n * @returns Location subject\n */\nexport function watchLocation(): Subject<URL> {\n return new Subject<URL>()\n}\n", "/*\n * Copyright (c) 2016-2021 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport { Observable, fromEvent, of } from \"rxjs\"\nimport { filter, map, share, startWith, switchMap } from \"rxjs/operators\"\n\nimport { createElement, getElement } from \"~/browser\"\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Retrieve location hash\n *\n * @returns Location hash\n */\nexport function getLocationHash(): string {\n return location.hash.substring(1)\n}\n\n/**\n * Set location hash\n *\n * Setting a new fragment identifier via `location.hash` will have no effect\n * if the value doesn't change. When a new fragment identifier is set, we want\n * the browser to target the respective element at all times, which is why we\n * use this dirty little trick.\n *\n * @param hash - Location hash\n */\nexport function setLocationHash(hash: string): void {\n const el = createElement(\"a\")\n el.href = hash\n el.addEventListener(\"click\", ev => ev.stopPropagation())\n el.click()\n}\n\n/* ------------------------------------------------------------------------- */\n\n/**\n * Watch location hash\n *\n * @returns Location hash observable\n */\nexport function watchLocationHash(): Observable<string> {\n return fromEvent<HashChangeEvent>(window, \"hashchange\")\n .pipe(\n map(getLocationHash),\n startWith(getLocationHash()),\n filter(hash => hash.length > 0),\n share()\n )\n}\n\n/**\n * Watch location target\n *\n * @returns Location target observable\n */\nexport function watchLocationTarget(): Observable<HTMLElement> {\n return watchLocationHash()\n .pipe(\n switchMap(id => of(getElement(`[id=\"${id}\"]`)!))\n )\n}\n", "/*\n * Copyright (c) 2016-2021 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport {\n NEVER,\n Observable,\n fromEvent,\n fromEventPattern\n} from \"rxjs\"\nimport {\n mapTo,\n startWith,\n switchMap\n} from \"rxjs/operators\"\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Watch media query\n *\n * Note that although `MediaQueryList.addListener` is deprecated we have to\n * use it, because it's the only way to ensure proper downward compatibility.\n *\n * @see https://bit.ly/3dUBH2m - GitHub issue\n *\n * @param query - Media query\n *\n * @returns Media observable\n */\nexport function watchMedia(query: string): Observable<boolean> {\n const media = matchMedia(query)\n return fromEventPattern<boolean>(next => (\n media.addListener(() => next(media.matches))\n ))\n .pipe(\n startWith(media.matches)\n )\n}\n\n/**\n * Watch print mode, cross-browser\n *\n * @returns Print mode observable\n */\nexport function watchPrint(): Observable<void> {\n return fromEvent(window, \"beforeprint\")\n .pipe(\n mapTo(undefined)\n )\n}\n\n/* ------------------------------------------------------------------------- */\n\n/**\n * Toggle an observable with a media observable\n *\n * @template T - Data type\n *\n * @param query$ - Media observable\n * @param factory - Observable factory\n *\n * @returns Toggled observable\n */\nexport function at<T>(\n query$: Observable<boolean>, factory: () => Observable<T>\n): Observable<T> {\n return query$\n .pipe(\n switchMap(active => active ? factory() : NEVER)\n )\n}\n", "/*\n * Copyright (c) 2016-2021 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport { Observable, from } from \"rxjs\"\nimport {\n filter,\n map,\n shareReplay,\n switchMap\n} from \"rxjs/operators\"\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Fetch the given URL\n *\n * @param url - Request URL\n * @param options - Options\n *\n * @returns Response observable\n */\nexport function request(\n url: URL | string, options: RequestInit = { credentials: \"same-origin\" }\n): Observable<Response> {\n return from(fetch(`${url}`, options))\n .pipe(\n filter(res => res.status === 200),\n )\n}\n\n/**\n * Fetch JSON from the given URL\n *\n * @template T - Data type\n *\n * @param url - Request URL\n * @param options - Options\n *\n * @returns Data observable\n */\nexport function requestJSON<T>(\n url: URL | string, options?: RequestInit\n): Observable<T> {\n return request(url, options)\n .pipe(\n switchMap(res => res.json()),\n shareReplay(1)\n )\n}\n\n/**\n * Fetch XML from the given URL\n *\n * @param url - Request URL\n * @param options - Options\n *\n * @returns Data observable\n */\nexport function requestXML(\n url: URL | string, options?: RequestInit\n): Observable<Document> {\n const dom = new DOMParser()\n return request(url, options)\n .pipe(\n switchMap(res => res.text()),\n map(res => dom.parseFromString(res, \"text/xml\")),\n shareReplay(1)\n )\n}\n", "/*\n * Copyright (c) 2016-2021 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport { Observable, fromEvent, merge } from \"rxjs\"\nimport { map, startWith } from \"rxjs/operators\"\n\n/* ----------------------------------------------------------------------------\n * Types\n * ------------------------------------------------------------------------- */\n\n/**\n * Viewport offset\n */\nexport interface ViewportOffset {\n x: number /* Horizontal offset */\n y: number /* Vertical offset */\n}\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Retrieve viewport offset\n *\n * On iOS Safari, viewport offset can be negative due to overflow scrolling.\n * As this may induce strange behaviors downstream, we'll just limit it to 0.\n *\n * @returns Viewport offset\n */\nexport function getViewportOffset(): ViewportOffset {\n return {\n x: Math.max(0, pageXOffset),\n y: Math.max(0, pageYOffset)\n }\n}\n\n/**\n * Set viewport offset\n *\n * @param offset - Viewport offset\n */\nexport function setViewportOffset(\n { x, y }: Partial<ViewportOffset>\n): void {\n window.scrollTo(x || 0, y || 0)\n}\n\n/* ------------------------------------------------------------------------- */\n\n/**\n * Watch viewport offset\n *\n * @returns Viewport offset observable\n */\nexport function watchViewportOffset(): Observable<ViewportOffset> {\n return merge(\n fromEvent(window, \"scroll\", { passive: true }),\n fromEvent(window, \"resize\", { passive: true })\n )\n .pipe(\n map(getViewportOffset),\n startWith(getViewportOffset())\n )\n}\n", "/*\n * Copyright (c) 2016-2021 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport { Observable, fromEvent } from \"rxjs\"\nimport { map, startWith } from \"rxjs/operators\"\n\n/* ----------------------------------------------------------------------------\n * Types\n * ------------------------------------------------------------------------- */\n\n/**\n * Viewport size\n */\nexport interface ViewportSize {\n width: number /* Viewport width */\n height: number /* Viewport height */\n}\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Retrieve viewport size\n *\n * @returns Viewport size\n */\nexport function getViewportSize(): ViewportSize {\n return {\n width: innerWidth,\n height: innerHeight\n }\n}\n\n/* ------------------------------------------------------------------------- */\n\n/**\n * Watch viewport size\n *\n * @returns Viewport size observable\n */\nexport function watchViewportSize(): Observable<ViewportSize> {\n return fromEvent(window, \"resize\", { passive: true })\n .pipe(\n map(getViewportSize),\n startWith(getViewportSize())\n )\n}\n", "/*\n * Copyright (c) 2016-2021 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport { Observable, combineLatest } from \"rxjs\"\nimport {\n distinctUntilKeyChanged,\n map,\n shareReplay\n} from \"rxjs/operators\"\n\nimport { Header } from \"~/components\"\n\nimport {\n ViewportOffset,\n watchViewportOffset\n} from \"../offset\"\nimport {\n ViewportSize,\n watchViewportSize\n} from \"../size\"\n\n/* ----------------------------------------------------------------------------\n * Types\n * ------------------------------------------------------------------------- */\n\n/**\n * Viewport\n */\nexport interface Viewport {\n offset: ViewportOffset /* Viewport offset */\n size: ViewportSize /* Viewport size */\n}\n\n/* ----------------------------------------------------------------------------\n * Helper types\n * ------------------------------------------------------------------------- */\n\n/**\n * Watch at options\n */\ninterface WatchAtOptions {\n viewport$: Observable<Viewport> /* Viewport observable */\n header$: Observable<Header> /* Header observable */\n}\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Watch viewport\n *\n * @returns Viewport observable\n */\nexport function watchViewport(): Observable<Viewport> {\n return combineLatest([\n watchViewportOffset(),\n watchViewportSize()\n ])\n .pipe(\n map(([offset, size]) => ({ offset, size })),\n shareReplay(1)\n )\n}\n\n/**\n * Watch viewport relative to element\n *\n * @param el - Element\n * @param options - Options\n *\n * @returns Viewport observable\n */\nexport function watchViewportAt(\n el: HTMLElement, { viewport$, header$ }: WatchAtOptions\n): Observable<Viewport> {\n const size$ = viewport$\n .pipe(\n distinctUntilKeyChanged(\"size\")\n )\n\n /* Compute element offset */\n const offset$ = combineLatest([size$, header$])\n .pipe(\n map((): ViewportOffset => ({\n x: el.offsetLeft,\n y: el.offsetTop\n }))\n )\n\n /* Compute relative viewport, return hot observable */\n return combineLatest([header$, viewport$, offset$])\n .pipe(\n map(([{ height }, { offset, size }, { x, y }]) => ({\n offset: {\n x: offset.x - x,\n y: offset.y - y + height\n },\n size\n }))\n )\n}\n", "/*\n * Copyright (c) 2016-2021 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport { Observable, Subject, fromEvent } from \"rxjs\"\nimport {\n map,\n share,\n switchMapTo,\n tap,\n throttle\n} from \"rxjs/operators\"\n\n/* ----------------------------------------------------------------------------\n * Types\n * ------------------------------------------------------------------------- */\n\n/**\n * Worker message\n */\nexport interface WorkerMessage {\n type: unknown /* Message type */\n data?: unknown /* Message data */\n}\n\n/**\n * Worker handler\n *\n * @template T - Message type\n */\nexport interface WorkerHandler<\n T extends WorkerMessage\n> {\n tx$: Subject<T> /* Message transmission subject */\n rx$: Observable<T> /* Message receive observable */\n}\n\n/* ----------------------------------------------------------------------------\n * Helper types\n * ------------------------------------------------------------------------- */\n\n/**\n * Watch options\n *\n * @template T - Worker message type\n */\ninterface WatchOptions<T extends WorkerMessage> {\n tx$: Observable<T> /* Message transmission observable */\n}\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Watch a web worker\n *\n * This function returns an observable that sends all values emitted by the\n * message observable to the web worker. Web worker communication is expected\n * to be bidirectional (request-response) and synchronous. Messages that are\n * emitted during a pending request are throttled, the last one is emitted.\n *\n * @param worker - Web worker\n * @param options - Options\n *\n * @returns Worker message observable\n */\nexport function watchWorker<T extends WorkerMessage>(\n worker: Worker, { tx$ }: WatchOptions<T>\n): Observable<T> {\n\n /* Intercept messages from worker-like objects */\n const rx$ = fromEvent<MessageEvent>(worker, \"message\")\n .pipe(\n map(({ data }) => data as T)\n )\n\n /* Send and receive messages, return hot observable */\n return tx$\n .pipe(\n throttle(() => rx$, { leading: true, trailing: true }),\n tap(message => worker.postMessage(message)),\n switchMapTo(rx$),\n share()\n )\n}\n", "/*\n * Copyright (c) 2016-2021 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport { getElementOrThrow, getLocation } from \"~/browser\"\n\n/* ----------------------------------------------------------------------------\n * Types\n * ------------------------------------------------------------------------- */\n\n/**\n * Feature flag\n */\nexport type Flag =\n | \"header.autohide\" /* Hide header */\n | \"navigation.expand\" /* Automatic expansion */\n | \"navigation.instant\" /* Instant loading */\n | \"navigation.sections\" /* Sections navigation */\n | \"navigation.tabs\" /* Tabs navigation */\n | \"navigation.top\" /* Back-to-top button */\n | \"toc.integrate\" /* Integrated table of contents */\n\n/* ------------------------------------------------------------------------- */\n\n/**\n * Translation\n */\nexport type Translation =\n | \"clipboard.copy\" /* Copy to clipboard */\n | \"clipboard.copied\" /* Copied to clipboard */\n | \"search.config.lang\" /* Search language */\n | \"search.config.pipeline\" /* Search pipeline */\n | \"search.config.separator\" /* Search separator */\n | \"search.placeholder\" /* Search */\n | \"search.result.placeholder\" /* Type to start searching */\n | \"search.result.none\" /* No matching documents */\n | \"search.result.one\" /* 1 matching document */\n | \"search.result.other\" /* # matching documents */\n | \"search.result.more.one\" /* 1 more on this page */\n | \"search.result.more.other\" /* # more on this page */\n | \"search.result.term.missing\" /* Missing */\n | \"select.version.title\" /* Version selector */\n\n/**\n * Translations\n */\nexport type Translations = Record<Translation, string>\n\n/* ------------------------------------------------------------------------- */\n\n/**\n * Versioning\n */\nexport interface Versioning {\n provider: \"mike\" /* Version provider */\n}\n\n/**\n * Configuration\n */\nexport interface Config {\n base: string /* Base URL */\n features: Flag[] /* Feature flags */\n translations: Translations /* Translations */\n search: string /* Search worker URL */\n version?: Versioning /* Versioning */\n}\n\n/* ----------------------------------------------------------------------------\n * Data\n * ------------------------------------------------------------------------- */\n\n/**\n * Retrieve global configuration and make base URL absolute\n */\nconst script = getElementOrThrow(\"#__config\")\nconst config: Config = JSON.parse(script.textContent!)\nconfig.base = new URL(config.base, getLocation())\n .toString()\n .replace(/\\/$/, \"\")\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Retrieve global configuration\n *\n * @returns Global configuration\n */\nexport function configuration(): Config {\n return config\n}\n\n/**\n * Check whether a feature flag is enabled\n *\n * @param flag - Feature flag\n *\n * @returns Test result\n */\nexport function feature(flag: Flag): boolean {\n return config.features.includes(flag)\n}\n\n/**\n * Retrieve the translation for the given key\n *\n * @param key - Key to be translated\n * @param value - Positional value, if any\n *\n * @returns Translation\n */\nexport function translation(\n key: Translation, value?: string | number\n): string {\n return typeof value !== \"undefined\"\n ? config.translations[key].replace(\"#\", value.toString())\n : config.translations[key]\n}\n", "/*\n * Copyright (c) 2016-2021 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport { getElementOrThrow, getElements } from \"~/browser\"\n\n/* ----------------------------------------------------------------------------\n * Types\n * ------------------------------------------------------------------------- */\n\n/**\n * Component\n */\nexport type ComponentType =\n | \"announce\" /* Announcement bar */\n | \"container\" /* Container */\n | \"content\" /* Content */\n | \"dialog\" /* Dialog */\n | \"header\" /* Header */\n | \"header-title\" /* Header title */\n | \"header-topic\" /* Header topic */\n | \"main\" /* Main area */\n | \"palette\" /* Color palette */\n | \"search\" /* Search */\n | \"search-query\" /* Search input */\n | \"search-result\" /* Search results */\n | \"sidebar\" /* Sidebar */\n | \"skip\" /* Skip link */\n | \"source\" /* Repository information */\n | \"tabs\" /* Navigation tabs */\n | \"toc\" /* Table of contents */\n | \"top\" /* Back-to-top button */\n\n/**\n * A component\n *\n * @template T - Component type\n * @template U - Reference type\n */\nexport type Component<\n T extends {} = {},\n U extends HTMLElement = HTMLElement\n> =\n T & {\n ref: U /* Component reference */\n }\n\n/* ----------------------------------------------------------------------------\n * Helper types\n * ------------------------------------------------------------------------- */\n\n/**\n * Component type map\n */\ninterface ComponentTypeMap {\n \"announce\": HTMLElement /* Announcement bar */\n \"container\": HTMLElement /* Container */\n \"content\": HTMLElement /* Content */\n \"dialog\": HTMLElement /* Dialog */\n \"header\": HTMLElement /* Header */\n \"header-title\": HTMLElement /* Header title */\n \"header-topic\": HTMLElement /* Header topic */\n \"main\": HTMLElement /* Main area */\n \"palette\": HTMLElement /* Color palette */\n \"search\": HTMLElement /* Search */\n \"search-query\": HTMLInputElement /* Search input */\n \"search-result\": HTMLElement /* Search results */\n \"sidebar\": HTMLElement /* Sidebar */\n \"skip\": HTMLAnchorElement /* Skip link */\n \"source\": HTMLAnchorElement /* Repository information */\n \"tabs\": HTMLElement /* Navigation tabs */\n \"toc\": HTMLElement /* Table of contents */\n \"top\": HTMLAnchorElement /* Back-to-top button */\n}\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Retrieve the element for a given component or throw a reference error\n *\n * @template T - Component type\n *\n * @param type - Component type\n * @param node - Node of reference\n *\n * @returns Element\n */\nexport function getComponentElement<T extends ComponentType>(\n type: T, node: ParentNode = document\n): ComponentTypeMap[T] {\n return getElementOrThrow(`[data-md-component=${type}]`, node)\n}\n\n/**\n * Retrieve all elements for a given component\n *\n * @template T - Component type\n *\n * @param type - Component type\n * @param node - Node of reference\n *\n * @returns Elements\n */\nexport function getComponentElements<T extends ComponentType>(\n type: T, node: ParentNode = document\n): ComponentTypeMap[T][] {\n return getElements(`[data-md-component=${type}]`, node)\n}\n", "/*\n * Copyright (c) 2016-2021 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport ClipboardJS from \"clipboard\"\nimport {\n NEVER,\n Observable,\n Subject,\n fromEvent,\n merge,\n of\n} from \"rxjs\"\nimport {\n distinctUntilKeyChanged,\n finalize,\n map,\n switchMap,\n tap,\n withLatestFrom\n} from \"rxjs/operators\"\n\nimport { resetFocusable, setFocusable } from \"~/actions\"\nimport {\n Viewport,\n getElementContentSize,\n getElementSize,\n getElements,\n watchMedia\n} from \"~/browser\"\nimport { renderClipboardButton } from \"~/templates\"\n\nimport { Component } from \"../../_\"\n\n/* ----------------------------------------------------------------------------\n * Types\n * ------------------------------------------------------------------------- */\n\n/**\n * Code block\n */\nexport interface CodeBlock {\n scroll: boolean /* Code block overflows */\n}\n\n/* ----------------------------------------------------------------------------\n * Helper types\n * ------------------------------------------------------------------------- */\n\n/**\n * Watch options\n */\ninterface WatchOptions {\n viewport$: Observable<Viewport> /* Viewport observable */\n}\n\n/**\n * Mount options\n */\ninterface MountOptions {\n viewport$: Observable<Viewport> /* Viewport observable */\n}\n\n/* ----------------------------------------------------------------------------\n * Data\n * ------------------------------------------------------------------------- */\n\n/**\n * Global index for Clipboard.js integration\n */\nlet index = 0\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Watch code block\n *\n * This function monitors size changes of the viewport, as well as switches of\n * content tabs with embedded code blocks, as both may trigger overflow.\n *\n * @param el - Code block element\n * @param options - Options\n *\n * @returns Code block observable\n */\nexport function watchCodeBlock(\n el: HTMLElement, { viewport$ }: WatchOptions\n): Observable<CodeBlock> {\n const container$ = of(el)\n .pipe(\n switchMap(child => {\n const container = child.closest(\"[data-tabs]\")\n if (container instanceof HTMLElement) {\n return merge(\n ...getElements(\"input\", container)\n .map(input => fromEvent(input, \"change\"))\n )\n }\n return NEVER\n })\n )\n\n /* Check overflow on resize and tab change */\n return merge(\n viewport$.pipe(distinctUntilKeyChanged(\"size\")),\n container$\n )\n .pipe(\n map(() => {\n const visible = getElementSize(el)\n const content = getElementContentSize(el)\n return {\n scroll: content.width > visible.width\n }\n }),\n distinctUntilKeyChanged(\"scroll\")\n )\n}\n\n/**\n * Mount code block\n *\n * This function ensures that an overflowing code block is focusable through\n * keyboard, so it can be scrolled without a mouse to improve on accessibility.\n *\n * @param el - Code block element\n * @param options - Options\n *\n * @returns Code block component observable\n */\nexport function mountCodeBlock(\n el: HTMLElement, options: MountOptions\n): Observable<Component<CodeBlock>> {\n const internal$ = new Subject<CodeBlock>()\n internal$\n .pipe(\n withLatestFrom(watchMedia(\"(hover)\"))\n )\n .subscribe(([{ scroll }, hover]) => {\n if (scroll && hover)\n setFocusable(el)\n else\n resetFocusable(el)\n })\n\n /* Render button for Clipboard.js integration */\n if (ClipboardJS.isSupported()) {\n const parent = el.closest(\"pre\")!\n parent.id = `__code_${index++}`\n parent.insertBefore(\n renderClipboardButton(parent.id),\n el\n )\n }\n\n /* Create and return component */\n return watchCodeBlock(el, options)\n .pipe(\n tap(internal$),\n finalize(() => internal$.complete()),\n map(state => ({ ref: el, ...state }))\n )\n}\n", "/*\n * Copyright (c) 2016-2021 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Set focusable property\n *\n * @param el - Element\n * @param value - Tabindex value\n */\nexport function setFocusable(\n el: HTMLElement, value = 0\n): void {\n el.setAttribute(\"tabindex\", value.toString())\n}\n\n/**\n * Reset focusable property\n *\n * @param el - Element\n */\nexport function resetFocusable(\n el: HTMLElement\n): void {\n el.removeAttribute(\"tabindex\")\n}\n\n/**\n * Set scroll lock\n *\n * @param el - Scrollable element\n * @param value - Vertical offset\n */\nexport function setScrollLock(\n el: HTMLElement, value: number\n): void {\n el.setAttribute(\"data-md-state\", \"lock\")\n el.style.top = `-${value}px`\n}\n\n/**\n * Reset scroll lock\n *\n * @param el - Scrollable element\n */\nexport function resetScrollLock(\n el: HTMLElement\n): void {\n const value = -1 * parseInt(el.style.top, 10)\n el.removeAttribute(\"data-md-state\")\n el.style.top = \"\"\n if (value)\n window.scrollTo(0, value)\n}\n", "/*\n * Copyright (c) 2016-2021 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Set anchor state\n *\n * @param el - Anchor element\n * @param state - Anchor state\n */\nexport function setAnchorState(\n el: HTMLElement, state: \"blur\"\n): void {\n el.setAttribute(\"data-md-state\", state)\n}\n\n/**\n * Reset anchor state\n *\n * @param el - Anchor element\n */\nexport function resetAnchorState(\n el: HTMLElement\n): void {\n el.removeAttribute(\"data-md-state\")\n}\n\n/* ------------------------------------------------------------------------- */\n\n/**\n * Set anchor active\n *\n * @param el - Anchor element\n * @param value - Whether the anchor is active\n */\nexport function setAnchorActive(\n el: HTMLElement, value: boolean\n): void {\n el.classList.toggle(\"md-nav__link--active\", value)\n}\n\n/**\n * Reset anchor active\n *\n * @param el - Anchor element\n */\nexport function resetAnchorActive(\n el: HTMLElement\n): void {\n el.classList.remove(\"md-nav__link--active\")\n}\n", "/*\n * Copyright (c) 2016-2021 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Set dialog message\n *\n * @param el - Dialog element\n * @param value - Dialog message\n */\nexport function setDialogMessage(\n el: HTMLElement, value: string\n): void {\n el.firstElementChild!.innerHTML = value\n}\n\n/* ------------------------------------------------------------------------- */\n\n/**\n * Set dialog state\n *\n * @param el - Dialog element\n * @param state - Dialog state\n */\nexport function setDialogState(\n el: HTMLElement, state: \"open\"\n): void {\n el.setAttribute(\"data-md-state\", state)\n}\n\n/**\n * Reset dialog state\n *\n * @param el - Dialog element\n */\nexport function resetDialogState(\n el: HTMLElement\n): void {\n el.removeAttribute(\"data-md-state\")\n}\n", "/*\n * Copyright (c) 2016-2021 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Set header state\n *\n * @param el - Header element\n * @param state - Header state\n */\nexport function setHeaderState(\n el: HTMLElement, state: \"shadow\" | \"hidden\"\n): void {\n el.setAttribute(\"data-md-state\", state)\n}\n\n/**\n * Reset header state\n *\n * @param el - Header element\n */\nexport function resetHeaderState(\n el: HTMLElement\n): void {\n el.removeAttribute(\"data-md-state\")\n}\n", "/*\n * Copyright (c) 2016-2021 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Set header title state\n *\n * @param el - Header title element\n * @param state - Header title state\n */\nexport function setHeaderTitleState(\n el: HTMLElement, state: \"active\"\n): void {\n el.setAttribute(\"data-md-state\", state)\n}\n\n/**\n * Reset header title state\n *\n * @param el - Header title element\n */\nexport function resetHeaderTitleState(\n el: HTMLElement\n): void {\n el.removeAttribute(\"data-md-state\")\n}\n", "/*\n * Copyright (c) 2016-2021 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport { translation } from \"~/_\"\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Set search query placeholder\n *\n * @param el - Search query element\n * @param value - Placeholder\n */\nexport function setSearchQueryPlaceholder(\n el: HTMLInputElement, value: string\n): void {\n el.placeholder = value\n}\n\n/**\n * Reset search query placeholder\n *\n * @param el - Search query element\n */\nexport function resetSearchQueryPlaceholder(\n el: HTMLInputElement\n): void {\n el.placeholder = translation(\"search.placeholder\")\n}\n", "/*\n * Copyright (c) 2016-2021 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport { JSX as JSXInternal } from \"preact\"\n\n/* ----------------------------------------------------------------------------\n * Helper types\n * ------------------------------------------------------------------------- */\n\n/**\n * HTML attributes\n */\ntype Attributes =\n & JSXInternal.HTMLAttributes\n & JSXInternal.SVGAttributes\n & Record<string, any>\n\n/**\n * Child element\n */\ntype Child =\n | HTMLElement\n | Text\n | string\n | number\n\n/* ----------------------------------------------------------------------------\n * Helper functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Append a child node to an element\n *\n * @param el - Element\n * @param child - Child node(s)\n */\nfunction appendChild(el: HTMLElement, child: Child | Child[]): void {\n\n /* Handle primitive types (including raw HTML) */\n if (typeof child === \"string\" || typeof child === \"number\") {\n el.innerHTML += child.toString()\n\n /* Handle nodes */\n } else if (child instanceof Node) {\n el.appendChild(child)\n\n /* Handle nested children */\n } else if (Array.isArray(child)) {\n for (const node of child)\n appendChild(el, node)\n }\n}\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * JSX factory\n *\n * @param tag - HTML tag\n * @param attributes - HTML attributes\n * @param children - Child elements\n *\n * @returns Element\n */\nexport function h(\n tag: string, attributes: Attributes | null, ...children: Child[]\n): HTMLElement {\n const el = document.createElement(tag)\n\n /* Set attributes, if any */\n if (attributes)\n for (const attr of Object.keys(attributes))\n if (typeof attributes[attr] !== \"boolean\")\n el.setAttribute(attr, attributes[attr])\n else if (attributes[attr])\n el.setAttribute(attr, \"\")\n\n /* Append child nodes */\n for (const child of children)\n appendChild(el, child)\n\n /* Return element */\n return el\n}\n\n/* ----------------------------------------------------------------------------\n * Namespace\n * ------------------------------------------------------------------------- */\n\nexport declare namespace h {\n namespace JSX {\n type Element = HTMLElement\n type IntrinsicElements = JSXInternal.IntrinsicElements\n }\n}\n", "/*\n * Copyright (c) 2016-2021 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Truncate a string after the given number of characters\n *\n * This is not a very reasonable approach, since the summaries kind of suck.\n * It would be better to create something more intelligent, highlighting the\n * search occurrences and making a better summary out of it, but this note was\n * written three years ago, so who knows if we'll ever fix it.\n *\n * @param value - Value to be truncated\n * @param n - Number of characters\n *\n * @returns Truncated value\n */\nexport function truncate(value: string, n: number): string {\n let i = n\n if (value.length > i) {\n while (value[i] !== \" \" && --i > 0) { /* keep eating */ }\n return `${value.substring(0, i)}...`\n }\n return value\n}\n\n/**\n * Round a number for display with repository facts\n *\n * This is a reverse-engineered version of GitHub's weird rounding algorithm\n * for stars, forks and all other numbers. While all numbers below `1,000` are\n * returned as-is, bigger numbers are converted to fixed numbers:\n *\n * - `1,049` => `1k`\n * - `1,050` => `1.1k`\n * - `1,949` => `1.9k`\n * - `1,950` => `2k`\n *\n * @param value - Original value\n *\n * @returns Rounded value\n */\nexport function round(value: number): string {\n if (value > 999) {\n const digits = +((value - 950) % 1000 > 99)\n return `${((value + 0.000001) / 1000).toFixed(digits)}k`\n } else {\n return value.toString()\n }\n}\n\n/**\n * Simple hash function\n *\n * @see https://bit.ly/2wsVjJ4 - Original source\n *\n * @param value - Value to be hashed\n *\n * @returns Hash as 32bit integer\n */\nexport function hash(value: string): number {\n let h = 0\n for (let i = 0, len = value.length; i < len; i++) {\n h = ((h << 5) - h) + value.charCodeAt(i)\n h |= 0 // Convert to 32bit integer\n }\n return h\n}\n", "/*\n * Copyright (c) 2016-2021 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport { translation } from \"~/_\"\nimport { round } from \"~/utilities\"\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Set number of search results\n *\n * @param el - Search result metadata element\n * @param value - Number of results\n */\nexport function setSearchResultMeta(\n el: HTMLElement, value: number\n): void {\n switch (value) {\n\n /* No results */\n case 0:\n el.textContent = translation(\"search.result.none\")\n break\n\n /* One result */\n case 1:\n el.textContent = translation(\"search.result.one\")\n break\n\n /* Multiple result */\n default:\n el.textContent = translation(\"search.result.other\", round(value))\n }\n}\n\n/**\n * Reset number of search results\n *\n * @param el - Search result metadata element\n */\nexport function resetSearchResultMeta(\n el: HTMLElement\n): void {\n el.textContent = translation(\"search.result.placeholder\")\n}\n\n/* ------------------------------------------------------------------------- */\n\n/**\n * Add an element to the search result list\n *\n * @param el - Search result list element\n * @param child - Search result element\n */\nexport function addToSearchResultList(\n el: HTMLElement, child: Element\n): void {\n el.appendChild(child)\n}\n\n/**\n * Reset search result list\n *\n * @param el - Search result list element\n */\nexport function resetSearchResultList(\n el: HTMLElement\n): void {\n el.innerHTML = \"\"\n}\n", "/*\n * Copyright (c) 2016-2021 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Set sidebar offset\n *\n * @param el - Sidebar element\n * @param value - Sidebar offset\n */\nexport function setSidebarOffset(\n el: HTMLElement, value: number\n): void {\n el.style.top = `${value}px`\n}\n\n/**\n * Reset sidebar offset\n *\n * @param el - Sidebar element\n */\nexport function resetSidebarOffset(\n el: HTMLElement\n): void {\n el.style.top = \"\"\n}\n\n/* ------------------------------------------------------------------------- */\n\n/**\n * Set sidebar height\n *\n * This function doesn't set the height of the actual sidebar, but of its first\n * child \u2013 the `.md-sidebar__scrollwrap` element in order to mitigiate jittery\n * sidebars when the footer is scrolled into view. At some point we switched\n * from `absolute` / `fixed` positioning to `sticky` positioning, significantly\n * reducing jitter in some browsers (respectively Firefox and Safari) when\n * scrolling from the top. However, top-aligned sticky positioning means that\n * the sidebar snaps to the bottom when the end of the container is reached.\n * This is what leads to the mentioned jitter, as the sidebar's height may be\n * updated too slowly.\n *\n * This behaviour can be mitigiated by setting the height of the sidebar to `0`\n * while preserving the padding, and the height on its first element.\n *\n * @param el - Sidebar element\n * @param value - Sidebar height\n */\nexport function setSidebarHeight(\n el: HTMLElement, value: number\n): void {\n const scrollwrap = el.firstElementChild as HTMLElement\n scrollwrap.style.height = `${value - 2 * scrollwrap.offsetTop}px`\n}\n\n/**\n * Reset sidebar height\n *\n * @param el - Sidebar element\n */\nexport function resetSidebarHeight(\n el: HTMLElement\n): void {\n const scrollwrap = el.firstElementChild as HTMLElement\n scrollwrap.style.height = \"\"\n}\n", "/*\n * Copyright (c) 2016-2021 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Set repository facts\n *\n * @param el - Repository element\n * @param child - Repository facts element\n */\nexport function setSourceFacts(\n el: HTMLElement, child: Element\n): void {\n el.lastElementChild!.appendChild(child)\n}\n\n/**\n * Set repository state\n *\n * @param el - Repository element\n * @param state - Repository state\n */\nexport function setSourceState(\n el: HTMLElement, state: \"done\"\n): void {\n el.lastElementChild!.setAttribute(\"data-md-state\", state)\n}\n", "/*\n * Copyright (c) 2016-2021 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Set tabs state\n *\n * @param el - Tabs element\n * @param state - Tabs state\n */\nexport function setTabsState(\n el: HTMLElement, state: \"hidden\"\n): void {\n el.setAttribute(\"data-md-state\", state)\n}\n\n/**\n * Reset tabs state\n *\n * @param el - Tabs element\n */\nexport function resetTabsState(\n el: HTMLElement\n): void {\n el.removeAttribute(\"data-md-state\")\n}\n", "/*\n * Copyright (c) 2016-2021 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Set back-to-top state\n *\n * @param el - Back-to-top element\n * @param state - Back-to-top state\n */\nexport function setBackToTopState(\n el: HTMLElement, state: \"hidden\"\n): void {\n el.setAttribute(\"data-md-state\", state)\n}\n\n/**\n * Reset back-to-top state\n *\n * @param el - Back-to-top element\n */\nexport function resetBackToTopState(\n el: HTMLElement\n): void {\n el.removeAttribute(\"data-md-state\")\n}\n", "/*\n * Copyright (c) 2016-2021 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport { translation } from \"~/_\"\nimport { h } from \"~/utilities\"\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Render a 'copy-to-clipboard' button\n *\n * @param id - Unique identifier\n *\n * @returns Element\n */\nexport function renderClipboardButton(id: string): HTMLElement {\n return (\n <button\n class=\"md-clipboard md-icon\"\n title={translation(\"clipboard.copy\")}\n data-clipboard-target={`#${id} > code`}\n ></button>\n )\n}\n", "/*\n * Copyright (c) 2016-2021 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport { translation } from \"~/_\"\nimport {\n SearchDocument,\n SearchMetadata,\n SearchResult\n} from \"~/integrations/search\"\nimport { h, truncate } from \"~/utilities\"\n\n/* ----------------------------------------------------------------------------\n * Helper types\n * ------------------------------------------------------------------------- */\n\n/**\n * Render flag\n */\nconst enum Flag {\n TEASER = 1, /* Render teaser */\n PARENT = 2 /* Render as parent */\n}\n\n/* ----------------------------------------------------------------------------\n * Helper function\n * ------------------------------------------------------------------------- */\n\n/**\n * Render a search document\n *\n * @param document - Search document\n * @param flag - Render flags\n *\n * @returns Element\n */\nfunction renderSearchDocument(\n document: SearchDocument & SearchMetadata, flag: Flag\n): HTMLElement {\n const parent = flag & Flag.PARENT\n const teaser = flag & Flag.TEASER\n\n /* Render missing query terms */\n const missing = Object.keys(document.terms)\n .filter(key => !document.terms[key])\n .map(key => [<del>{key}</del>, \" \"])\n .flat()\n .slice(0, -1)\n\n /* Render article or section, depending on flags */\n const url = document.location\n return (\n <a href={url} class=\"md-search-result__link\" tabIndex={-1}>\n <article\n class={[\"md-search-result__article\", ...parent\n ? [\"md-search-result__article--document\"]\n : []\n ].join(\" \")}\n data-md-score={document.score.toFixed(2)}\n >\n {parent > 0 && <div class=\"md-search-result__icon md-icon\"></div>}\n <h1 class=\"md-search-result__title\">{document.title}</h1>\n {teaser > 0 && document.text.length > 0 &&\n <p class=\"md-search-result__teaser\">\n {truncate(document.text, 320)}\n </p>\n }\n {teaser > 0 && missing.length > 0 &&\n <p class=\"md-search-result__terms\">\n {translation(\"search.result.term.missing\")}: {...missing}\n </p>\n }\n </article>\n </a>\n )\n}\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Render a search result\n *\n * @param result - Search result\n *\n * @returns Element\n */\nexport function renderSearchResult(\n result: SearchResult\n): HTMLElement {\n const threshold = result[0].score\n const docs = [...result]\n\n /* Find and extract parent article */\n const parent = docs.findIndex(doc => !doc.location.includes(\"#\"))\n const [article] = docs.splice(parent, 1)\n\n /* Determine last index above threshold */\n let index = docs.findIndex(doc => doc.score < threshold)\n if (index === -1)\n index = docs.length\n\n /* Partition sections */\n const best = docs.slice(0, index)\n const more = docs.slice(index)\n\n /* Render children */\n const children = [\n renderSearchDocument(article, Flag.PARENT | +(!parent && index === 0)),\n ...best.map(section => renderSearchDocument(section, Flag.TEASER)),\n ...more.length ? [\n <details class=\"md-search-result__more\">\n <summary tabIndex={-1}>\n {more.length > 0 && more.length === 1\n ? translation(\"search.result.more.one\")\n : translation(\"search.result.more.other\", more.length)\n }\n </summary>\n {...more.map(section => renderSearchDocument(section, Flag.TEASER))}\n </details>\n ] : []\n ]\n\n /* Render search result */\n return (\n <li class=\"md-search-result__item\">\n {children}\n </li>\n )\n}\n", "/*\n * Copyright (c) 2016-2021 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport { SourceFacts } from \"~/components\"\nimport { h, round } from \"~/utilities\"\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Render repository facts\n *\n * @param facts - Repository facts\n *\n * @returns Element\n */\nexport function renderSourceFacts(facts: SourceFacts): HTMLElement {\n return (\n <ul class=\"md-source__facts\">\n {Object.entries(facts).map(([key, value]) => (\n <li class={`md-source__fact md-source__fact--${key}`}>\n {typeof value === \"number\" ? round(value) : value}\n </li>\n ))}\n </ul>\n )\n}\n", "/*\n * Copyright (c) 2016-2021 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport { h } from \"~/utilities\"\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Render a table inside a wrapper to improve scrolling on mobile\n *\n * @param table - Table element\n *\n * @returns Element\n */\nexport function renderTable(table: HTMLElement): HTMLElement {\n return (\n <div class=\"md-typeset__scrollwrap\">\n <div class=\"md-typeset__table\">\n {table}\n </div>\n </div>\n )\n}\n", "/*\n * Copyright (c) 2016-2021 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport { configuration, translation } from \"~/_\"\nimport { h } from \"~/utilities\"\n\n/* ----------------------------------------------------------------------------\n * Types\n * ------------------------------------------------------------------------- */\n\n/**\n * Version\n */\nexport interface Version {\n version: string /* Version identifier */\n title: string /* Version title */\n aliases: string[] /* Version aliases */\n}\n\n/* ----------------------------------------------------------------------------\n * Helper functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Render a version\n *\n * @param version - Version\n *\n * @returns Element\n */\nfunction renderVersion(version: Version): HTMLElement {\n const config = configuration()\n\n /* Ensure trailing slash, see https://bit.ly/3rL5u3f */\n const url = new URL(`${version.version}/`, config.base)\n return (\n <li class=\"md-version__item\">\n <a href={url.toString()} class=\"md-version__link\">\n {version.title}\n </a>\n </li>\n )\n}\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Render a version selector\n *\n * @param versions - Versions\n *\n * @returns Element\n */\nexport function renderVersionSelector(versions: Version[]): HTMLElement {\n const config = configuration()\n\n /* Determine active version */\n const [, current] = config.base.match(/([^/]+)\\/?$/)!\n const active =\n versions.find(({ version, aliases }) => (\n version === current || aliases.includes(current)\n )) || versions[0]\n\n /* Render version selector */\n return (\n <div class=\"md-version\">\n <button\n class=\"md-version__current\"\n aria-label={translation(\"select.version.title\")}\n >\n {active.title}\n </button>\n <ul class=\"md-version__list\">\n {versions.map(renderVersion)}\n </ul>\n </div>\n )\n}\n", "/*\n * Copyright (c) 2016-2021 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport { Observable, Subject } from \"rxjs\"\nimport {\n filter,\n finalize,\n map,\n mapTo,\n mergeWith,\n tap\n} from \"rxjs/operators\"\n\nimport { Component } from \"../../_\"\n\n/* ----------------------------------------------------------------------------\n * Types\n * ------------------------------------------------------------------------- */\n\n/**\n * Details\n */\nexport interface Details {}\n\n/* ----------------------------------------------------------------------------\n * Helper types\n * ------------------------------------------------------------------------- */\n\n/**\n * Watch options\n */\ninterface WatchOptions {\n target$: Observable<HTMLElement> /* Location target observable */\n print$: Observable<void> /* Print mode observable */\n}\n\n/**\n * Mount options\n */\ninterface MountOptions {\n target$: Observable<HTMLElement> /* Location target observable */\n print$: Observable<void> /* Print mode observable */\n}\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Watch details\n *\n * @param el - Details element\n * @param options - Options\n *\n * @returns Details observable\n */\nexport function watchDetails(\n el: HTMLDetailsElement, { target$, print$ }: WatchOptions\n): Observable<Details> {\n return target$\n .pipe(\n map(target => target.closest(\"details:not([open])\")!),\n filter(details => el === details),\n mergeWith(print$),\n mapTo(el)\n )\n}\n\n/**\n * Mount details\n *\n * This function ensures that `details` tags are opened on anchor jumps and\n * prior to printing, so the whole content of the page is visible.\n *\n * @param el - Details element\n * @param options - Options\n *\n * @returns Details component observable\n */\nexport function mountDetails(\n el: HTMLDetailsElement, options: MountOptions\n): Observable<Component<Details>> {\n const internal$ = new Subject<Details>()\n internal$.subscribe(() => {\n el.setAttribute(\"open\", \"\")\n el.scrollIntoView()\n })\n\n /* Create and return component */\n return watchDetails(el, options)\n .pipe(\n tap(internal$),\n finalize(() => internal$.complete()),\n mapTo({ ref: el })\n )\n}\n", "/*\n * Copyright (c) 2016-2021 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport { Observable, of } from \"rxjs\"\n\nimport { createElement, replaceElement } from \"~/browser\"\nimport { renderTable } from \"~/templates\"\n\nimport { Component } from \"../../_\"\n\n/* ----------------------------------------------------------------------------\n * Types\n * ------------------------------------------------------------------------- */\n\n/**\n * Data table\n */\nexport interface DataTable {}\n\n/* ----------------------------------------------------------------------------\n * Data\n * ------------------------------------------------------------------------- */\n\n/**\n * Sentinel for replacement\n */\nconst sentinel = createElement(\"table\")\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Mount data table\n *\n * This function wraps a data table in another scrollable container, so it can\n * be smoothly scrolled on smaller screen sizes and won't break the layout.\n *\n * @param el - Data table element\n *\n * @returns Data table component observable\n */\nexport function mountDataTable(\n el: HTMLElement\n): Observable<Component<DataTable>> {\n replaceElement(el, sentinel)\n replaceElement(sentinel, renderTable(el))\n\n /* Create and return component */\n return of({ ref: el })\n}\n", "/*\n * Copyright (c) 2016-2021 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport { Observable, merge } from \"rxjs\"\n\nimport { Viewport, getElements } from \"~/browser\"\n\nimport { Component } from \"../../_\"\nimport { CodeBlock, mountCodeBlock } from \"../code\"\nimport { Details, mountDetails } from \"../details\"\nimport { DataTable, mountDataTable } from \"../table\"\n\n/* ----------------------------------------------------------------------------\n * Types\n * ------------------------------------------------------------------------- */\n\n/**\n * Content\n */\nexport type Content =\n | CodeBlock\n | DataTable\n | Details\n\n/* ----------------------------------------------------------------------------\n * Helper types\n * ------------------------------------------------------------------------- */\n\n/**\n * Mount options\n */\ninterface MountOptions {\n target$: Observable<HTMLElement> /* Location target observable */\n viewport$: Observable<Viewport> /* Viewport observable */\n print$: Observable<void> /* Print mode observable */\n}\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Mount content\n *\n * This function mounts all components that are found in the content of the\n * actual article, including code blocks, data tables and details.\n *\n * @param el - Content element\n * @param options - Options\n *\n * @returns Content component observable\n */\nexport function mountContent(\n el: HTMLElement, { target$, viewport$, print$ }: MountOptions\n): Observable<Component<Content>> {\n return merge(\n\n /* Code blocks */\n ...getElements(\"pre > code\", el)\n .map(child => mountCodeBlock(child, { viewport$ })),\n\n /* Data tables */\n ...getElements(\"table:not([class])\", el)\n .map(child => mountDataTable(child)),\n\n /* Details */\n ...getElements(\"details\", el)\n .map(child => mountDetails(child, { target$, print$ }))\n )\n}\n", "/*\n * Copyright (c) 2016-2021 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport {\n Observable,\n Subject,\n animationFrameScheduler,\n merge,\n of\n} from \"rxjs\"\nimport {\n delay,\n finalize,\n map,\n observeOn,\n switchMap,\n tap\n} from \"rxjs/operators\"\n\nimport {\n resetDialogState,\n setDialogMessage,\n setDialogState\n} from \"~/actions\"\n\nimport { Component } from \"../_\"\n\n/* ----------------------------------------------------------------------------\n * Types\n * ------------------------------------------------------------------------- */\n\n/**\n * Dialog\n */\nexport interface Dialog {\n message: string /* Dialog message */\n open: boolean /* Dialog is visible */\n}\n\n/* ----------------------------------------------------------------------------\n * Helper types\n * ------------------------------------------------------------------------- */\n\n/**\n * Watch options\n */\ninterface WatchOptions {\n alert$: Subject<string> /* Alert subject */\n}\n\n/**\n * Mount options\n */\ninterface MountOptions {\n alert$: Subject<string> /* Alert subject */\n}\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Watch dialog\n *\n * @param _el - Dialog element\n * @param options - Options\n *\n * @returns Dialog observable\n */\nexport function watchDialog(\n _el: HTMLElement, { alert$ }: WatchOptions\n): Observable<Dialog> {\n return alert$\n .pipe(\n switchMap(message => merge(\n of(true),\n of(false).pipe(delay(2000))\n )\n .pipe(\n map(open => ({ message, open }))\n )\n )\n )\n}\n\n/**\n * Mount dialog\n *\n * This function reveals the dialog in the right cornerwhen a new alert is\n * emitted through the subject that is passed as part of the options.\n *\n * @param el - Dialog element\n * @param options - Options\n *\n * @returns Dialog component observable\n */\nexport function mountDialog(\n el: HTMLElement, options: MountOptions\n): Observable<Component<Dialog>> {\n const internal$ = new Subject<Dialog>()\n internal$\n .pipe(\n observeOn(animationFrameScheduler)\n )\n .subscribe(({ message, open }) => {\n setDialogMessage(el, message)\n if (open)\n setDialogState(el, \"open\")\n else\n resetDialogState(el)\n })\n\n /* Create and return component */\n return watchDialog(el, options)\n .pipe(\n tap(internal$),\n finalize(() => internal$.complete()),\n map(state => ({ ref: el, ...state }))\n )\n}\n", "/*\n * Copyright (c) 2016-2021 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport {\n Observable,\n Subject,\n animationFrameScheduler,\n combineLatest,\n defer,\n of\n} from \"rxjs\"\nimport {\n bufferCount,\n combineLatestWith,\n distinctUntilChanged,\n distinctUntilKeyChanged,\n filter,\n map,\n observeOn,\n shareReplay,\n startWith,\n switchMap\n} from \"rxjs/operators\"\n\nimport { feature } from \"~/_\"\nimport { resetHeaderState, setHeaderState } from \"~/actions\"\nimport {\n Viewport,\n watchElementSize,\n watchToggle\n} from \"~/browser\"\n\nimport { Component } from \"../../_\"\nimport { Main } from \"../../main\"\n\n/* ----------------------------------------------------------------------------\n * Types\n * ------------------------------------------------------------------------- */\n\n/**\n * Header\n */\nexport interface Header {\n height: number /* Header visible height */\n sticky: boolean /* Header stickyness */\n hidden: boolean /* User scrolled past threshold */\n}\n\n/* ----------------------------------------------------------------------------\n * Helper types\n * ------------------------------------------------------------------------- */\n\n/**\n * Watch options\n */\ninterface WatchOptions {\n viewport$: Observable<Viewport> /* Viewport observable */\n}\n\n/**\n * Mount options\n */\ninterface MountOptions {\n viewport$: Observable<Viewport> /* Viewport observable */\n header$: Observable<Header> /* Header observable */\n main$: Observable<Main> /* Main area observable */\n}\n\n/* ----------------------------------------------------------------------------\n * Helper functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Compute whether the header is hidden\n *\n * If the user scrolls past a certain threshold, the header can be hidden when\n * scrolling down, and shown when scrolling up.\n *\n * @param options - Options\n *\n * @returns Toggle observable\n */\nfunction isHidden({ viewport$ }: WatchOptions): Observable<boolean> {\n if (!feature(\"header.autohide\"))\n return of(false)\n\n /* Compute direction and turning point */\n const direction$ = viewport$\n .pipe(\n map(({ offset: { y } }) => y),\n bufferCount(2, 1),\n map(([a, b]) => [a < b, b] as const),\n distinctUntilKeyChanged(0)\n )\n\n /* Compute whether header should be hidden */\n const hidden$ = combineLatest([viewport$, direction$])\n .pipe(\n filter(([{ offset }, [, y]]) => Math.abs(y - offset.y) > 100),\n map(([, [direction]]) => direction),\n distinctUntilChanged()\n )\n\n /* Compute threshold for hiding */\n const search$ = watchToggle(\"search\")\n return combineLatest([viewport$, search$])\n .pipe(\n map(([{ offset }, search]) => offset.y > 400 && !search),\n distinctUntilChanged(),\n switchMap(active => active ? hidden$ : of(false)),\n startWith(false)\n )\n}\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Watch header\n *\n * @param el - Header element\n * @param options - Options\n *\n * @returns Header observable\n */\nexport function watchHeader(\n el: HTMLElement, options: WatchOptions\n): Observable<Header> {\n return defer(() => {\n const styles = getComputedStyle(el)\n return of(\n styles.position === \"sticky\" ||\n styles.position === \"-webkit-sticky\"\n )\n })\n .pipe(\n combineLatestWith(watchElementSize(el), isHidden(options)),\n map(([sticky, { height }, hidden]) => ({\n height: sticky ? height : 0,\n sticky,\n hidden\n })),\n distinctUntilChanged((a, b) => (\n a.sticky === b.sticky &&\n a.height === b.height &&\n a.hidden === b.hidden\n )),\n shareReplay(1)\n )\n}\n\n/**\n * Mount header\n *\n * This function manages the different states of the header, i.e. whether it's\n * hidden or rendered with a shadow. This depends heavily on the main area.\n *\n * @param el - Header element\n * @param options - Options\n *\n * @returns Header component observable\n */\nexport function mountHeader(\n el: HTMLElement, { header$, main$ }: MountOptions\n): Observable<Component<Header>> {\n const internal$ = new Subject<Main>()\n internal$\n .pipe(\n distinctUntilKeyChanged(\"active\"),\n combineLatestWith(header$),\n observeOn(animationFrameScheduler)\n )\n .subscribe(([{ active }, { hidden }]) => {\n if (active)\n setHeaderState(el, hidden ? \"hidden\" : \"shadow\")\n else\n resetHeaderState(el)\n })\n\n /* Connect to long-living subject and return component */\n main$.subscribe(main => internal$.next(main))\n return header$\n .pipe(\n map(state => ({ ref: el, ...state }))\n )\n}\n", "/*\n * Copyright (c) 2016-2021 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport {\n NEVER,\n Observable,\n Subject,\n animationFrameScheduler\n} from \"rxjs\"\nimport {\n distinctUntilKeyChanged,\n finalize,\n map,\n observeOn,\n tap\n} from \"rxjs/operators\"\n\nimport {\n resetHeaderTitleState,\n setHeaderTitleState\n} from \"~/actions\"\nimport {\n Viewport,\n getElement,\n getElementSize,\n watchViewportAt\n} from \"~/browser\"\n\nimport { Component } from \"../../_\"\nimport { Header } from \"../_\"\n\n/* ----------------------------------------------------------------------------\n * Types\n * ------------------------------------------------------------------------- */\n\n/**\n * Header\n */\nexport interface HeaderTitle {\n active: boolean /* User scrolled past first headline */\n}\n\n/* ----------------------------------------------------------------------------\n * Helper types\n * ------------------------------------------------------------------------- */\n\n/**\n * Watch options\n */\ninterface WatchOptions {\n viewport$: Observable<Viewport> /* Viewport observable */\n header$: Observable<Header> /* Header observable */\n}\n\n/**\n * Mount options\n */\ninterface MountOptions {\n viewport$: Observable<Viewport> /* Viewport observable */\n header$: Observable<Header> /* Header observable */\n}\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Watch header title\n *\n * @param el - Heading element\n * @param options - Options\n *\n * @returns Header title observable\n */\nexport function watchHeaderTitle(\n el: HTMLHeadingElement, { viewport$, header$ }: WatchOptions\n): Observable<HeaderTitle> {\n return watchViewportAt(el, { header$, viewport$ })\n .pipe(\n map(({ offset: { y } }) => {\n const { height } = getElementSize(el)\n return {\n active: y >= height\n }\n }),\n distinctUntilKeyChanged(\"active\")\n )\n}\n\n/**\n * Mount header title\n *\n * This function swaps the header title from the site title to the title of the\n * current page when the user scrolls past the first headline.\n *\n * @param el - Header title element\n * @param options - Options\n *\n * @returns Header title component observable\n */\nexport function mountHeaderTitle(\n el: HTMLElement, options: MountOptions\n): Observable<Component<HeaderTitle>> {\n const internal$ = new Subject<HeaderTitle>()\n internal$\n .pipe(\n observeOn(animationFrameScheduler)\n )\n .subscribe(({ active }) => {\n if (active)\n setHeaderTitleState(el, \"active\")\n else\n resetHeaderTitleState(el)\n })\n\n /* Obtain headline, if any */\n const headline = getElement<HTMLHeadingElement>(\"article h1\")\n if (typeof headline === \"undefined\")\n return NEVER\n\n /* Create and return component */\n return watchHeaderTitle(headline, options)\n .pipe(\n tap(internal$),\n finalize(() => internal$.complete()),\n map(state => ({ ref: el, ...state }))\n )\n}\n", "/*\n * Copyright (c) 2016-2021 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport {\n Observable,\n combineLatest\n} from \"rxjs\"\nimport {\n distinctUntilChanged,\n distinctUntilKeyChanged,\n map,\n switchMap\n} from \"rxjs/operators\"\n\nimport { Viewport, watchElementSize } from \"~/browser\"\n\nimport { Header } from \"../header\"\n\n/* ----------------------------------------------------------------------------\n * Types\n * ------------------------------------------------------------------------- */\n\n/**\n * Main area\n */\nexport interface Main {\n offset: number /* Main area top offset */\n height: number /* Main area visible height */\n active: boolean /* User scrolled past header */\n}\n\n/* ----------------------------------------------------------------------------\n * Helper types\n * ------------------------------------------------------------------------- */\n\n/**\n * Watch options\n */\ninterface WatchOptions {\n viewport$: Observable<Viewport> /* Viewport observable */\n header$: Observable<Header> /* Header observable */\n}\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Watch main area\n *\n * This function returns an observable that computes the visual parameters of\n * the main area which depends on the viewport vertical offset and height, as\n * well as the height of the header element, if the header is fixed.\n *\n * @param el - Main area element\n * @param options - Options\n *\n * @returns Main area observable\n */\nexport function watchMain(\n el: HTMLElement, { viewport$, header$ }: WatchOptions\n): Observable<Main> {\n\n /* Compute necessary adjustment for header */\n const adjust$ = header$\n .pipe(\n map(({ height }) => height),\n distinctUntilChanged()\n )\n\n /* Compute the main area's top and bottom borders */\n const border$ = adjust$\n .pipe(\n switchMap(() => watchElementSize(el)\n .pipe(\n map(({ height }) => ({\n top: el.offsetTop,\n bottom: el.offsetTop + height\n })),\n distinctUntilKeyChanged(\"bottom\")\n )\n )\n )\n\n /* Compute the main area's offset, visible height and if we scrolled past */\n return combineLatest([adjust$, border$, viewport$])\n .pipe(\n map(([header, { top, bottom }, { offset: { y }, size: { height } }]) => {\n height = Math.max(0, height\n - Math.max(0, top - y, header)\n - Math.max(0, height + y - bottom)\n )\n return {\n offset: top - header,\n height,\n active: top - header <= y\n }\n }),\n distinctUntilChanged((a, b) => (\n a.offset === b.offset &&\n a.height === b.height &&\n a.active === b.active\n ))\n )\n}\n", "/*\n * Copyright (c) 2016-2021 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport {\n Observable,\n Subject,\n fromEvent,\n of\n} from \"rxjs\"\nimport {\n finalize,\n map,\n mapTo,\n mergeMap,\n shareReplay,\n startWith,\n tap\n} from \"rxjs/operators\"\n\nimport { getElements } from \"~/browser\"\n\nimport { Component } from \"../_\"\n\n/* ----------------------------------------------------------------------------\n * Types\n * ------------------------------------------------------------------------- */\n\n/**\n * Palette colors\n */\nexport interface PaletteColor {\n scheme?: string /* Color scheme */\n primary?: string /* Primary color */\n accent?: string /* Accent color */\n}\n\n/**\n * Palette\n */\nexport interface Palette {\n index: number /* Palette index */\n color: PaletteColor /* Palette colors */\n}\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Watch color palette\n *\n * @param inputs - Color palette element\n *\n * @returns Color palette observable\n */\nexport function watchPalette(\n inputs: HTMLInputElement[]\n): Observable<Palette> {\n const data = localStorage.getItem(__prefix(\"__palette\"))!\n const current = JSON.parse(data) || {\n index: inputs.findIndex(input => (\n matchMedia(input.getAttribute(\"data-md-color-media\")!).matches\n ))\n }\n\n /* Emit changes in color palette */\n const palette$ = of(...inputs)\n .pipe(\n mergeMap(input => fromEvent(input, \"change\")\n .pipe(\n mapTo(input)\n )\n ),\n startWith(inputs[Math.max(0, current.index)]),\n map(input => ({\n index: inputs.indexOf(input),\n color: {\n scheme: input.getAttribute(\"data-md-color-scheme\"),\n primary: input.getAttribute(\"data-md-color-primary\"),\n accent: input.getAttribute(\"data-md-color-accent\")\n }\n } as Palette)),\n shareReplay(1)\n )\n\n /* Persist preference in local storage */\n palette$.subscribe(palette => {\n localStorage.setItem(__prefix(\"__palette\"), JSON.stringify(palette))\n })\n\n /* Return palette */\n return palette$\n}\n\n/**\n * Mount color palette\n *\n * @param el - Color palette element\n *\n * @returns Color palette component observable\n */\nexport function mountPalette(\n el: HTMLElement\n): Observable<Component<Palette>> {\n const internal$ = new Subject<Palette>()\n\n /* Set color palette */\n internal$.subscribe(palette => {\n for (const [key, value] of Object.entries(palette.color))\n if (typeof value === \"string\")\n document.body.setAttribute(`data-md-color-${key}`, value)\n\n /* Toggle visibility */\n for (let index = 0; index < inputs.length; index++) {\n const label = inputs[index].nextElementSibling\n if (label instanceof HTMLElement)\n label.hidden = palette.index !== index\n }\n })\n\n /* Create and return component */\n const inputs = getElements<HTMLInputElement>(\"input\", el)\n return watchPalette(inputs)\n .pipe(\n tap(internal$),\n finalize(() => internal$.complete()),\n map(state => ({ ref: el, ...state }))\n )\n}\n", "/*\n * Copyright (c) 2016-2021 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport ClipboardJS from \"clipboard\"\nimport { Observable, Subject } from \"rxjs\"\n\nimport { translation } from \"~/_\"\n\n/* ----------------------------------------------------------------------------\n * Helper types\n * ------------------------------------------------------------------------- */\n\n/**\n * Setup options\n */\ninterface SetupOptions {\n alert$: Subject<string> /* Alert subject */\n}\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Set up Clipboard.js integration\n *\n * @param options - Options\n */\nexport function setupClipboardJS(\n { alert$ }: SetupOptions\n): void {\n if (ClipboardJS.isSupported()) {\n new Observable<ClipboardJS.Event>(subscriber => {\n new ClipboardJS(\"[data-clipboard-target], [data-clipboard-text]\")\n .on(\"success\", ev => subscriber.next(ev))\n })\n .subscribe(() => alert$.next(translation(\"clipboard.copied\")))\n }\n}\n", "/*\n * Copyright (c) 2016-2021 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport {\n EMPTY,\n NEVER,\n Observable,\n Subject,\n fromEvent,\n merge,\n of\n} from \"rxjs\"\nimport {\n bufferCount,\n catchError,\n concatMap,\n debounceTime,\n distinctUntilChanged,\n distinctUntilKeyChanged,\n filter,\n map,\n sample,\n share,\n skip,\n skipUntil,\n switchMap\n} from \"rxjs/operators\"\n\nimport { configuration } from \"~/_\"\nimport {\n Viewport,\n ViewportOffset,\n createElement,\n getElement,\n getElements,\n replaceElement,\n request,\n requestXML,\n setLocation,\n setLocationHash,\n setViewportOffset\n} from \"~/browser\"\nimport { getComponentElement } from \"~/components\"\n\n/* ----------------------------------------------------------------------------\n * Types\n * ------------------------------------------------------------------------- */\n\n/**\n * History state\n */\nexport interface HistoryState {\n url: URL /* State URL */\n offset?: ViewportOffset /* State viewport offset */\n}\n\n/* ----------------------------------------------------------------------------\n * Helper types\n * ------------------------------------------------------------------------- */\n\n/**\n * Setup options\n */\ninterface SetupOptions {\n document$: Subject<Document> /* Document subject */\n location$: Subject<URL> /* Location subject */\n viewport$: Observable<Viewport> /* Viewport observable */\n}\n\n/* ----------------------------------------------------------------------------\n * Helper functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Preprocess a list of URLs\n *\n * This function replaces the `site_url` in the sitemap with the actual base\n * URL, to allow instant loading to work in occasions like Netlify previews.\n *\n * @param urls - URLs\n *\n * @returns Processed URLs\n */\nfunction preprocess(urls: string[]): string[] {\n if (urls.length < 2)\n return urls\n\n /* Take the first two URLs and remove everything after the last slash */\n const [root, next] = urls\n .sort((a, b) => a.length - b.length)\n .map(url => url.replace(/[^/]+$/, \"\"))\n\n /* Compute common prefix */\n let index = 0\n if (root === next)\n index = root.length\n else\n while (root.charCodeAt(index) === next.charCodeAt(index))\n index++\n\n /* Replace common prefix (i.e. base) with effective base */\n const config = configuration()\n return urls.map(url => (\n url.replace(root.slice(0, index), `${config.base}/`)\n ))\n}\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Set up instant loading\n *\n * When fetching, theoretically, we could use `responseType: \"document\"`, but\n * since all MkDocs links are relative, we need to make sure that the current\n * location matches the document we just loaded. Otherwise any relative links\n * in the document could use the old location.\n *\n * This is the reason why we need to synchronize history events and the process\n * of fetching the document for navigation changes (except `popstate` events):\n *\n * 1. Fetch document via `XMLHTTPRequest`\n * 2. Set new location via `history.pushState`\n * 3. Parse and emit fetched document\n *\n * For `popstate` events, we must not use `history.pushState`, or the forward\n * history will be irreversibly overwritten. In case the request fails, the\n * location change is dispatched regularly.\n *\n * @param options - Options\n */\nexport function setupInstantLoading(\n { document$, location$, viewport$ }: SetupOptions\n): void {\n const config = configuration()\n if (location.protocol === \"file:\")\n return\n\n /* Disable automatic scroll restoration */\n if (\"scrollRestoration\" in history) {\n history.scrollRestoration = \"manual\"\n\n /* Hack: ensure that reloads restore viewport offset */\n fromEvent(window, \"beforeunload\")\n .subscribe(() => {\n history.scrollRestoration = \"auto\"\n })\n }\n\n /* Hack: ensure absolute favicon link to omit 404s when switching */\n const favicon = getElement<HTMLLinkElement>(\"link[rel=icon]\")\n if (typeof favicon !== \"undefined\")\n favicon.href = favicon.href\n\n /* Intercept internal navigation */\n const push$ = requestXML(`${config.base}/sitemap.xml`)\n .pipe(\n map(sitemap => preprocess(getElements(\"loc\", sitemap)\n .map(node => node.textContent!)\n )),\n switchMap(urls => fromEvent<MouseEvent>(document.body, \"click\")\n .pipe(\n filter(ev => !ev.metaKey && !ev.ctrlKey),\n switchMap(ev => {\n\n /* Handle HTML and SVG elements */\n if (ev.target instanceof Element) {\n const el = ev.target.closest(\"a\")\n if (el && !el.target && urls.includes(el.href)) {\n ev.preventDefault()\n return of({\n url: new URL(el.href)\n })\n }\n }\n return NEVER\n })\n )\n ),\n share<HistoryState>()\n )\n\n /* Intercept history back and forward */\n const pop$ = fromEvent<PopStateEvent>(window, \"popstate\")\n .pipe(\n filter(ev => ev.state !== null),\n map(ev => ({\n url: new URL(location.href),\n offset: ev.state\n })),\n share<HistoryState>()\n )\n\n /* Emit location change */\n merge(push$, pop$)\n .pipe(\n distinctUntilChanged((a, b) => a.url.href === b.url.href),\n map(({ url }) => url)\n )\n .subscribe(location$)\n\n /* Fetch document via `XMLHTTPRequest` */\n const response$ = location$\n .pipe(\n distinctUntilKeyChanged(\"pathname\"),\n switchMap(url => request(url.href)\n .pipe(\n catchError(() => {\n setLocation(url)\n return NEVER\n })\n )\n ),\n share()\n )\n\n /* Set new location via `history.pushState` */\n push$\n .pipe(\n sample(response$)\n )\n .subscribe(({ url }) => {\n history.pushState({}, \"\", `${url}`)\n })\n\n /* Parse and emit fetched document */\n const dom = new DOMParser()\n response$\n .pipe(\n switchMap(res => res.text()),\n map(res => dom.parseFromString(res, \"text/html\"))\n )\n .subscribe(document$)\n\n /* Emit history state change */\n merge(push$, pop$)\n .pipe(\n sample(document$)\n )\n .subscribe(({ url, offset }) => {\n if (url.hash && !offset)\n setLocationHash(url.hash)\n else\n setViewportOffset(offset || { y: 0 })\n })\n\n /* Replace meta tags and components */\n document$\n .pipe(\n skip(1)\n )\n .subscribe(replacement => {\n for (const selector of [\n\n /* Meta tags */\n \"title\",\n \"link[rel=canonical]\",\n \"meta[name=author]\",\n \"meta[name=description]\",\n\n /* Components */\n \"[data-md-component=announce]\",\n \"[data-md-component=container]\",\n \"[data-md-component=header-topic]\",\n \"[data-md-component=logo], .md-logo\", // compat\n \"[data-md-component=skip]\"\n ]) {\n const source = getElement(selector)\n const target = getElement(selector, replacement)\n if (\n typeof source !== \"undefined\" &&\n typeof target !== \"undefined\"\n ) {\n replaceElement(source, target)\n }\n }\n })\n\n /* Re-evaluate scripts */\n document$\n .pipe(\n skip(1),\n map(() => getComponentElement(\"container\")),\n switchMap(el => of(...getElements(\"script\", el))),\n concatMap(el => {\n const script = createElement(\"script\")\n if (el.src) {\n for (const name of el.getAttributeNames())\n script.setAttribute(name, el.getAttribute(name)!)\n replaceElement(el, script)\n\n /* Complete when script is loaded */\n return new Observable(observer => {\n script.onload = () => observer.complete()\n })\n\n /* Complete immediately */\n } else {\n script.textContent = el.textContent\n replaceElement(el, script)\n return EMPTY\n }\n })\n )\n .subscribe()\n\n /* Debounce update of viewport offset */\n viewport$\n .pipe(\n skipUntil(push$),\n debounceTime(250),\n distinctUntilKeyChanged(\"offset\")\n )\n .subscribe(({ offset }) => {\n history.replaceState(offset, \"\")\n })\n\n /* Set viewport offset from history */\n merge(push$, pop$)\n .pipe(\n bufferCount(2, 1),\n filter(([a, b]) => a.url.pathname === b.url.pathname),\n map(([, state]) => state)\n )\n .subscribe(({ offset }) => {\n setViewportOffset(offset || { y: 0 })\n })\n}\n", "/*\n * Copyright (c) 2016-2021 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport escapeHTML from \"escape-html\"\n\nimport { SearchIndexDocument } from \"../_\"\n\n/* ----------------------------------------------------------------------------\n * Types\n * ------------------------------------------------------------------------- */\n\n/**\n * Search document\n */\nexport interface SearchDocument extends SearchIndexDocument {\n parent?: SearchIndexDocument /* Parent article */\n}\n\n/* ------------------------------------------------------------------------- */\n\n/**\n * Search document mapping\n */\nexport type SearchDocumentMap = Map<string, SearchDocument>\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Create a search document mapping\n *\n * @param docs - Search index documents\n *\n * @returns Search document map\n */\nexport function setupSearchDocumentMap(\n docs: SearchIndexDocument[]\n): SearchDocumentMap {\n const documents = new Map<string, SearchDocument>()\n const parents = new Set<SearchDocument>()\n for (const doc of docs) {\n const [path, hash] = doc.location.split(\"#\")\n\n /* Extract location and title */\n const location = doc.location\n const title = doc.title\n\n /* Escape and cleanup text */\n const text = escapeHTML(doc.text)\n .replace(/\\s+(?=[,.:;!?])/g, \"\")\n .replace(/\\s+/g, \" \")\n\n /* Handle section */\n if (hash) {\n const parent = documents.get(path)!\n\n /* Ignore first section, override article */\n if (!parents.has(parent)) {\n parent.title = doc.title\n parent.text = text\n\n /* Remember that we processed the article */\n parents.add(parent)\n\n /* Add subsequent section */\n } else {\n documents.set(location, {\n location,\n title,\n text,\n parent\n })\n }\n\n /* Add article */\n } else {\n documents.set(location, {\n location,\n title,\n text\n })\n }\n }\n return documents\n}\n", "/*\n * Copyright (c) 2016-2021 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\n/* ----------------------------------------------------------------------------\n * Types\n * ------------------------------------------------------------------------- */\n\n/**\n * Search transformation function\n *\n * @param value - Query value\n *\n * @returns Transformed query value\n */\nexport type SearchTransformFn = (value: string) => string\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Default transformation function\n *\n * 1. Search for terms in quotation marks and prepend a `+` modifier to denote\n * that the resulting document must contain all terms, converting the query\n * to an `AND` query (as opposed to the default `OR` behavior). While users\n * may expect terms enclosed in quotation marks to map to span queries, i.e.\n * for which order is important, Lunr.js doesn't support them, so the best\n * we can do is to convert the terms to an `AND` query.\n *\n * 2. Replace control characters which are not located at the beginning of the\n * query or preceded by white space, or are not followed by a non-whitespace\n * character or are at the end of the query string. Furthermore, filter\n * unmatched quotation marks.\n *\n * 3. Trim excess whitespace from left and right.\n *\n * @param query - Query value\n *\n * @returns Transformed query value\n */\nexport function defaultTransform(query: string): string {\n return query\n .split(/\"([^\"]+)\"/g) /* => 1 */\n .map((terms, index) => index & 1\n ? terms.replace(/^\\b|^(?![^\\x00-\\x7F]|$)|\\s+/g, \" +\")\n : terms\n )\n .join(\"\")\n .replace(/\"|(?:^|\\s+)[*+\\-:^~]+(?=\\s+|$)/g, \"\") /* => 2 */\n .trim() /* => 3 */\n}\n", "/*\n * Copyright (c) 2016-2021 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A RTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport { SearchIndex, SearchResult } from \"../../_\"\n\n/* ----------------------------------------------------------------------------\n * Types\n * ------------------------------------------------------------------------- */\n\n/**\n * Search message type\n */\nexport const enum SearchMessageType {\n SETUP, /* Search index setup */\n READY, /* Search index ready */\n QUERY, /* Search query */\n RESULT /* Search results */\n}\n\n/* ------------------------------------------------------------------------- */\n\n/**\n * A message containing the data necessary to setup the search index\n */\nexport interface SearchSetupMessage {\n type: SearchMessageType.SETUP /* Message type */\n data: SearchIndex /* Message data */\n}\n\n/**\n * A message indicating the search index is ready\n */\nexport interface SearchReadyMessage {\n type: SearchMessageType.READY /* Message type */\n}\n\n/**\n * A message containing a search query\n */\nexport interface SearchQueryMessage {\n type: SearchMessageType.QUERY /* Message type */\n data: string /* Message data */\n}\n\n/**\n * A message containing results for a search query\n */\nexport interface SearchResultMessage {\n type: SearchMessageType.RESULT /* Message type */\n data: SearchResult[] /* Message data */\n}\n\n/* ------------------------------------------------------------------------- */\n\n/**\n * A message exchanged with the search worker\n */\nexport type SearchMessage =\n | SearchSetupMessage\n | SearchReadyMessage\n | SearchQueryMessage\n | SearchResultMessage\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Type guard for search setup messages\n *\n * @param message - Search worker message\n *\n * @returns Test result\n */\nexport function isSearchSetupMessage(\n message: SearchMessage\n): message is SearchSetupMessage {\n return message.type === SearchMessageType.SETUP\n}\n\n/**\n * Type guard for search ready messages\n *\n * @param message - Search worker message\n *\n * @returns Test result\n */\nexport function isSearchReadyMessage(\n message: SearchMessage\n): message is SearchReadyMessage {\n return message.type === SearchMessageType.READY\n}\n\n/**\n * Type guard for search query messages\n *\n * @param message - Search worker message\n *\n * @returns Test result\n */\nexport function isSearchQueryMessage(\n message: SearchMessage\n): message is SearchQueryMessage {\n return message.type === SearchMessageType.QUERY\n}\n\n/**\n * Type guard for search result messages\n *\n * @param message - Search worker message\n *\n * @returns Test result\n */\nexport function isSearchResultMessage(\n message: SearchMessage\n): message is SearchResultMessage {\n return message.type === SearchMessageType.RESULT\n}\n", "/*\n * Copyright (c) 2016-2021 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A RTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport { ObservableInput, Subject, from } from \"rxjs\"\nimport { map, share } from \"rxjs/operators\"\n\nimport { configuration, translation } from \"~/_\"\nimport { WorkerHandler, watchWorker } from \"~/browser\"\n\nimport { SearchIndex, SearchIndexPipeline } from \"../../_\"\nimport {\n SearchMessage,\n SearchMessageType,\n SearchSetupMessage,\n isSearchResultMessage\n} from \"../message\"\n\n/* ----------------------------------------------------------------------------\n * Types\n * ------------------------------------------------------------------------- */\n\n/**\n * Search worker\n */\nexport type SearchWorker = WorkerHandler<SearchMessage>\n\n/* ----------------------------------------------------------------------------\n * Helper functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Set up search index\n *\n * @param data - Search index\n *\n * @returns Search index\n */\nfunction setupSearchIndex(\n { config, docs, index }: SearchIndex\n): SearchIndex {\n\n /* Override default language with value from translation */\n if (config.lang.length === 1 && config.lang[0] === \"en\")\n config.lang = [\n translation(\"search.config.lang\")\n ]\n\n /* Override default separator with value from translation */\n if (config.separator === \"[\\\\s\\\\-]+\")\n config.separator = translation(\"search.config.separator\")\n\n /* Set pipeline from translation */\n const pipeline = translation(\"search.config.pipeline\")\n .split(/\\s*,\\s*/)\n .filter(Boolean) as SearchIndexPipeline\n\n /* Return search index after defaulting */\n return { config, docs, index, pipeline }\n}\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Set up search worker\n *\n * This function creates a web worker to set up and query the search index,\n * which is done using Lunr.js. The index must be passed as an observable to\n * enable hacks like _localsearch_ via search index embedding as JSON.\n *\n * @param url - Worker URL\n * @param index - Search index observable input\n *\n * @returns Search worker\n */\nexport function setupSearchWorker(\n url: string, index: ObservableInput<SearchIndex>\n): SearchWorker {\n const config = configuration()\n const worker = new Worker(url)\n\n /* Create communication channels and resolve relative links */\n const tx$ = new Subject<SearchMessage>()\n const rx$ = watchWorker(worker, { tx$ })\n .pipe(\n map(message => {\n if (isSearchResultMessage(message)) {\n for (const result of message.data)\n for (const document of result)\n document.location = `${config.base}/${document.location}`\n }\n return message\n }),\n share()\n )\n\n /* Set up search index */\n from(index)\n .pipe(\n map<SearchIndex, SearchSetupMessage>(data => ({\n type: SearchMessageType.SETUP,\n data: setupSearchIndex(data)\n }))\n )\n .subscribe(tx$.next.bind(tx$))\n\n /* Return search worker */\n return { tx$, rx$ }\n}\n", "/*\n * Copyright (c) 2016-2021 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport { configuration } from \"~/_\"\nimport { getElementOrThrow, requestJSON } from \"~/browser\"\nimport { Version, renderVersionSelector } from \"~/templates\"\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Set up version selector\n */\nexport function setupVersionSelector(): void {\n const config = configuration()\n requestJSON<Version[]>(new URL(\"versions.json\", config.base))\n .subscribe(versions => {\n const topic = getElementOrThrow(\".md-header__topic\")\n topic.appendChild(renderVersionSelector(versions))\n })\n}\n", "/*\n * Copyright (c) 2016-2021 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport {\n Observable,\n Subject,\n combineLatest,\n fromEvent,\n merge\n} from \"rxjs\"\nimport {\n delay,\n distinctUntilChanged,\n distinctUntilKeyChanged,\n finalize,\n map,\n takeLast,\n takeUntil,\n tap\n} from \"rxjs/operators\"\n\nimport {\n resetSearchQueryPlaceholder,\n setSearchQueryPlaceholder\n} from \"~/actions\"\nimport {\n setElementFocus,\n setToggle,\n watchElementFocus\n} from \"~/browser\"\nimport {\n SearchMessageType,\n SearchQueryMessage,\n SearchWorker,\n defaultTransform\n} from \"~/integrations\"\n\nimport { Component } from \"../../_\"\n\n/* ----------------------------------------------------------------------------\n * Types\n * ------------------------------------------------------------------------- */\n\n/**\n * Search query\n */\nexport interface SearchQuery {\n value: string /* Query value */\n focus: boolean /* Query focus */\n}\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Watch search query\n *\n * Note that the focus event which triggers re-reading the current query value\n * is delayed by `1ms` so the input's empty state is allowed to propagate.\n *\n * @param el - Search query element\n *\n * @returns Search query observable\n */\nexport function watchSearchQuery(\n el: HTMLInputElement\n): Observable<SearchQuery> {\n const fn = __search?.transform || defaultTransform\n\n /* Intercept focus and input events */\n const focus$ = watchElementFocus(el)\n const value$ = merge(\n fromEvent(el, \"keyup\"),\n fromEvent(el, \"focus\").pipe(delay(1))\n )\n .pipe(\n map(() => fn(el.value)),\n distinctUntilChanged()\n )\n\n /* Combine into single observable */\n return combineLatest([value$, focus$])\n .pipe(\n map(([value, focus]) => ({ value, focus }))\n )\n}\n\n/**\n * Mount search query\n *\n * @param el - Search query element\n * @param worker - Search worker\n *\n * @returns Search query component observable\n */\nexport function mountSearchQuery(\n el: HTMLInputElement, { tx$ }: SearchWorker\n): Observable<Component<SearchQuery, HTMLInputElement>> {\n const internal$ = new Subject<SearchQuery>()\n\n /* Handle value changes */\n internal$\n .pipe(\n distinctUntilKeyChanged(\"value\"),\n map(({ value }): SearchQueryMessage => ({\n type: SearchMessageType.QUERY,\n data: value\n }))\n )\n .subscribe(tx$.next.bind(tx$))\n\n /* Handle focus changes */\n internal$\n .pipe(\n distinctUntilKeyChanged(\"focus\")\n )\n .subscribe(({ focus }) => {\n if (focus) {\n setToggle(\"search\", focus)\n setSearchQueryPlaceholder(el, \"\")\n } else {\n resetSearchQueryPlaceholder(el)\n }\n })\n\n /* Handle reset */\n fromEvent(el.form!, \"reset\")\n .pipe(\n takeUntil(internal$.pipe(takeLast(1)))\n )\n .subscribe(() => setElementFocus(el))\n\n /* Create and return component */\n return watchSearchQuery(el)\n .pipe(\n tap(internal$),\n finalize(() => internal$.complete()),\n map(state => ({ ref: el, ...state }))\n )\n}\n", "/*\n * Copyright (c) 2016-2021 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport {\n Observable,\n Subject,\n animationFrameScheduler,\n merge,\n of\n} from \"rxjs\"\nimport {\n bufferCount,\n filter,\n finalize,\n map,\n observeOn,\n startWith,\n switchMap,\n take,\n tap,\n withLatestFrom,\n zipWith\n} from \"rxjs/operators\"\n\nimport {\n addToSearchResultList,\n resetSearchResultList,\n resetSearchResultMeta,\n setSearchResultMeta\n} from \"~/actions\"\nimport {\n getElementOrThrow,\n watchElementThreshold\n} from \"~/browser\"\nimport {\n SearchResult as SearchResultData,\n SearchWorker,\n isSearchReadyMessage,\n isSearchResultMessage\n} from \"~/integrations\"\nimport { renderSearchResult } from \"~/templates\"\n\nimport { Component } from \"../../_\"\nimport { SearchQuery } from \"../query\"\n\n/* ----------------------------------------------------------------------------\n * Types\n * ------------------------------------------------------------------------- */\n\n/**\n * Search result\n */\nexport interface SearchResult {\n data: SearchResultData[] /* Search result data */\n}\n\n/* ----------------------------------------------------------------------------\n * Helper types\n * ------------------------------------------------------------------------- */\n\n/**\n * Mount options\n */\ninterface MountOptions {\n query$: Observable<SearchQuery> /* Search query observable */\n}\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Mount search result list\n *\n * This function performs a lazy rendering of the search results, depending on\n * the vertical offset of the search result container.\n *\n * @param el - Search result list element\n * @param worker - Search worker\n * @param options - Options\n *\n * @returns Search result list component observable\n */\nexport function mountSearchResult(\n el: HTMLElement, { rx$ }: SearchWorker, { query$ }: MountOptions\n): Observable<Component<SearchResult>> {\n const internal$ = new Subject<SearchResult>()\n const boundary$ = watchElementThreshold(el.parentElement!)\n .pipe(\n filter(Boolean)\n )\n\n /* Retrieve nested components */\n const meta = getElementOrThrow(\":scope > :first-child\", el)\n const list = getElementOrThrow(\":scope > :last-child\", el)\n\n /* Update search result metadata when ready */\n rx$\n .pipe(\n filter(isSearchReadyMessage),\n take(1)\n )\n .subscribe(() => {\n resetSearchResultMeta(meta)\n })\n\n /* Update search result metadata */\n internal$\n .pipe(\n observeOn(animationFrameScheduler),\n withLatestFrom(query$)\n )\n .subscribe(([{ data }, { value }]) => {\n if (value)\n setSearchResultMeta(meta, data.length)\n else\n resetSearchResultMeta(meta)\n })\n\n /* Update search result list */\n internal$\n .pipe(\n observeOn(animationFrameScheduler),\n tap(() => resetSearchResultList(list)),\n switchMap(({ data }) => merge(\n of(...data.slice(0, 10)),\n of(...data.slice(10))\n .pipe(\n bufferCount(4),\n zipWith(boundary$),\n switchMap(([chunk]) => of(...chunk))\n )\n ))\n )\n .subscribe(result => {\n addToSearchResultList(list, renderSearchResult(result))\n })\n\n /* Filter search result list */\n const result$ = rx$\n .pipe(\n filter(isSearchResultMessage),\n map(({ data }) => ({ data })),\n startWith({ data: [] })\n )\n\n /* Create and return component */\n return result$\n .pipe(\n tap(internal$),\n finalize(() => internal$.complete()),\n map(state => ({ ref: el, ...state }))\n )\n}\n", "/*\n * Copyright (c) 2016-2021 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport { NEVER, Observable, ObservableInput, merge } from \"rxjs\"\nimport { filter, sample, take } from \"rxjs/operators\"\n\nimport { configuration } from \"~/_\"\nimport {\n Keyboard,\n getActiveElement,\n getElements,\n setElementFocus,\n setElementSelection,\n setToggle\n} from \"~/browser\"\nimport {\n SearchIndex,\n isSearchQueryMessage,\n isSearchReadyMessage,\n setupSearchWorker\n} from \"~/integrations\"\n\nimport { Component, getComponentElement } from \"../../_\"\nimport { SearchQuery, mountSearchQuery } from \"../query\"\nimport { SearchResult, mountSearchResult } from \"../result\"\n\n/* ----------------------------------------------------------------------------\n * Types\n * ------------------------------------------------------------------------- */\n\n/**\n * Search\n */\nexport type Search =\n | SearchQuery\n | SearchResult\n\n/* ----------------------------------------------------------------------------\n * Helper types\n * ------------------------------------------------------------------------- */\n\n/**\n * Mount options\n */\ninterface MountOptions {\n index$: ObservableInput<SearchIndex> /* Search index observable */\n keyboard$: Observable<Keyboard> /* Keyboard observable */\n}\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Mount search\n *\n * This function sets up the search functionality, including the underlying\n * web worker and all keyboard bindings.\n *\n * @param el - Search element\n * @param options - Options\n *\n * @returns Search component observable\n */\nexport function mountSearch(\n el: HTMLElement, { index$, keyboard$ }: MountOptions\n): Observable<Component<Search>> {\n const config = configuration()\n const worker = setupSearchWorker(config.search, index$)\n\n /* Retrieve nested components */\n const query = getComponentElement(\"search-query\", el)\n const result = getComponentElement(\"search-result\", el)\n\n /* Re-emit query when search is ready */\n const { tx$, rx$ } = worker\n tx$\n .pipe(\n filter(isSearchQueryMessage),\n sample(rx$.pipe(filter(isSearchReadyMessage))),\n take(1)\n )\n .subscribe(tx$.next.bind(tx$))\n\n /* Set up search keyboard handlers */\n keyboard$\n .pipe(\n filter(({ mode }) => mode === \"search\")\n )\n .subscribe(key => {\n const active = getActiveElement()\n switch (key.type) {\n\n /* Enter: prevent form submission */\n case \"Enter\":\n if (active === query)\n key.claim()\n break\n\n /* Escape or Tab: close search */\n case \"Escape\":\n case \"Tab\":\n setToggle(\"search\", false)\n setElementFocus(query, false)\n break\n\n /* Vertical arrows: select previous or next search result */\n case \"ArrowUp\":\n case \"ArrowDown\":\n if (typeof active === \"undefined\") {\n setElementFocus(query)\n } else {\n const els = [query, ...getElements(\n \":not(details) > [href], summary, details[open] [href]\",\n result\n )]\n const i = Math.max(0, (\n Math.max(0, els.indexOf(active)) + els.length + (\n key.type === \"ArrowUp\" ? -1 : +1\n )\n ) % els.length)\n setElementFocus(els[i])\n }\n\n /* Prevent scrolling of page */\n key.claim()\n break\n\n /* All other keys: hand to search query */\n default:\n if (query !== getActiveElement())\n setElementFocus(query)\n }\n })\n\n /* Set up global keyboard handlers */\n keyboard$\n .pipe(\n filter(({ mode }) => mode === \"global\"),\n )\n .subscribe(key => {\n switch (key.type) {\n\n /* Open search and select query */\n case \"f\":\n case \"s\":\n case \"/\":\n setElementFocus(query)\n setElementSelection(query)\n key.claim()\n break\n }\n })\n\n /* Create and return component */\n const query$ = mountSearchQuery(query, worker)\n return merge(\n query$,\n mountSearchResult(result, worker, { query$ })\n )\n}\n", "/*\n * Copyright (c) 2016-2021 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport {\n Observable,\n Subject,\n animationFrameScheduler,\n combineLatest\n} from \"rxjs\"\nimport {\n distinctUntilChanged,\n finalize,\n map,\n observeOn,\n tap,\n withLatestFrom\n} from \"rxjs/operators\"\n\nimport {\n resetSidebarHeight,\n resetSidebarOffset,\n setSidebarHeight,\n setSidebarOffset\n} from \"~/actions\"\nimport { Viewport } from \"~/browser\"\n\nimport { Component } from \"../_\"\nimport { Header } from \"../header\"\nimport { Main } from \"../main\"\n\n/* ----------------------------------------------------------------------------\n * Types\n * ------------------------------------------------------------------------- */\n\n/**\n * Sidebar\n */\nexport interface Sidebar {\n height: number /* Sidebar height */\n locked: boolean /* User scrolled past header */\n}\n\n/* ----------------------------------------------------------------------------\n * Helper types\n * ------------------------------------------------------------------------- */\n\n/**\n * Watch options\n */\ninterface WatchOptions {\n viewport$: Observable<Viewport> /* Viewport observable */\n main$: Observable<Main> /* Main area observable */\n}\n\n/**\n * Mount options\n */\ninterface MountOptions {\n viewport$: Observable<Viewport> /* Viewport observable */\n header$: Observable<Header> /* Header observable */\n main$: Observable<Main> /* Main area observable */\n}\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Watch sidebar\n *\n * This function returns an observable that computes the visual parameters of\n * the sidebar which depends on the vertical viewport offset, as well as the\n * height of the main area. When the page is scrolled beyond the header, the\n * sidebar is locked and fills the remaining space.\n *\n * @param el - Sidebar element\n * @param options - Options\n *\n * @returns Sidebar observable\n */\nexport function watchSidebar(\n el: HTMLElement, { viewport$, main$ }: WatchOptions\n): Observable<Sidebar> {\n const adjust =\n el.parentElement!.offsetTop -\n el.parentElement!.parentElement!.offsetTop\n\n /* Compute the sidebar's available height and if it should be locked */\n return combineLatest([main$, viewport$])\n .pipe(\n map(([{ offset, height }, { offset: { y } }]) => {\n height = height\n + Math.min(adjust, Math.max(0, y - offset))\n - adjust\n return {\n height,\n locked: y >= offset + adjust\n }\n }),\n distinctUntilChanged((a, b) => (\n a.height === b.height &&\n a.locked === b.locked\n ))\n )\n}\n\n/**\n * Mount sidebar\n *\n * @param el - Sidebar element\n * @param options - Options\n *\n * @returns Sidebar component observable\n */\nexport function mountSidebar(\n el: HTMLElement, { header$, ...options }: MountOptions\n): Observable<Component<Sidebar>> {\n const internal$ = new Subject<Sidebar>()\n internal$\n .pipe(\n observeOn(animationFrameScheduler),\n withLatestFrom(header$)\n )\n .subscribe({\n\n /* Update height and offset */\n next([{ height }, { height: offset }]) {\n setSidebarHeight(el, height)\n setSidebarOffset(el, offset)\n },\n\n /* Reset on complete */\n complete() {\n resetSidebarOffset(el)\n resetSidebarHeight(el)\n }\n })\n\n /* Create and return component */\n return watchSidebar(el, options)\n .pipe(\n tap(internal$),\n finalize(() => internal$.complete()),\n map(state => ({ ref: el, ...state }))\n )\n}\n", "/*\n * Copyright (c) 2016-2021 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport { Repo, User } from \"github-types\"\nimport { Observable, zip } from \"rxjs\"\nimport { defaultIfEmpty, map } from \"rxjs/operators\"\n\nimport { requestJSON } from \"~/browser\"\n\nimport { SourceFacts } from \"../_\"\n\n/* ----------------------------------------------------------------------------\n * Helper types\n * ------------------------------------------------------------------------- */\n\n/**\n * GitHub release (partial)\n */\ninterface Release {\n tag_name: string /* Tag name */\n}\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Fetch GitHub repository facts\n *\n * @param user - GitHub user\n * @param repo - GitHub repository\n *\n * @returns Repository facts observable\n */\nexport function fetchSourceFactsFromGitHub(\n user: string, repo?: string\n): Observable<SourceFacts> {\n if (typeof repo !== \"undefined\") {\n const url = `https://api.github.com/repos/${user}/${repo}`\n return zip(\n\n /* Fetch version */\n requestJSON<Release>(`${url}/releases/latest`)\n .pipe(\n map(release => ({\n version: release.tag_name\n })),\n defaultIfEmpty({})\n ),\n\n /* Fetch stars and forks */\n requestJSON<Repo>(url)\n .pipe(\n map(info => ({\n stars: info.stargazers_count,\n forks: info.forks_count\n })),\n defaultIfEmpty({})\n )\n )\n .pipe(\n map(([release, info]) => ({ ...release, ...info }))\n )\n\n /* User or organization */\n } else {\n const url = `https://api.github.com/repos/${user}`\n return requestJSON<User>(url)\n .pipe(\n map(info => ({\n repositories: info.public_repos\n })),\n defaultIfEmpty({})\n )\n }\n}\n", "/*\n * Copyright (c) 2016-2021 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport { ProjectSchema } from \"gitlab\"\nimport { Observable } from \"rxjs\"\nimport { defaultIfEmpty, map } from \"rxjs/operators\"\n\nimport { requestJSON } from \"~/browser\"\n\nimport { SourceFacts } from \"../_\"\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Fetch GitLab repository facts\n *\n * @param base - GitLab base\n * @param project - GitLab project\n *\n * @returns Repository facts observable\n */\nexport function fetchSourceFactsFromGitLab(\n base: string, project: string\n): Observable<SourceFacts> {\n const url = `https://${base}/api/v4/projects/${encodeURIComponent(project)}`\n return requestJSON<ProjectSchema>(url)\n .pipe(\n map(({ star_count, forks_count }) => ({\n stars: star_count,\n forks: forks_count\n })),\n defaultIfEmpty({})\n )\n}\n", "/*\n * Copyright (c) 2016-2021 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport { NEVER, Observable } from \"rxjs\"\n\nimport { fetchSourceFactsFromGitHub } from \"../github\"\nimport { fetchSourceFactsFromGitLab } from \"../gitlab\"\n\n/* ----------------------------------------------------------------------------\n * Types\n * ------------------------------------------------------------------------- */\n\n/**\n * Repository facts for repositories\n */\nexport interface RepositoryFacts {\n stars?: number /* Number of stars */\n forks?: number /* Number of forks */\n version?: string /* Latest version */\n}\n\n/**\n * Repository facts for organizations\n */\nexport interface OrganizationFacts {\n repositories?: number /* Number of repositories */\n}\n\n/* ------------------------------------------------------------------------- */\n\n/**\n * Repository facts\n */\nexport type SourceFacts =\n | RepositoryFacts\n | OrganizationFacts\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Fetch repository facts\n *\n * @param url - Repository URL\n *\n * @returns Repository facts observable\n */\nexport function fetchSourceFacts(\n url: string\n): Observable<SourceFacts> {\n const [type] = url.match(/(git(?:hub|lab))/i) || []\n switch (type.toLowerCase()) {\n\n /* GitHub repository */\n case \"github\":\n const [, user, repo] = url.match(/^.+github\\.com\\/([^/]+)\\/?([^/]+)?/i)!\n return fetchSourceFactsFromGitHub(user, repo)\n\n /* GitLab repository */\n case \"gitlab\":\n const [, base, slug] = url.match(/^.+?([^/]*gitlab[^/]+)\\/(.+?)\\/?$/i)!\n return fetchSourceFactsFromGitLab(base, slug)\n\n /* Everything else */\n default:\n return NEVER\n }\n}\n", "/*\n * Copyright (c) 2016-2021 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport { NEVER, Observable, Subject, defer, of } from \"rxjs\"\nimport {\n catchError,\n filter,\n finalize,\n map,\n shareReplay,\n tap\n} from \"rxjs/operators\"\n\nimport { setSourceFacts, setSourceState } from \"~/actions\"\nimport { renderSourceFacts } from \"~/templates\"\n\nimport { Component } from \"../../_\"\nimport { SourceFacts, fetchSourceFacts } from \"../facts\"\n\n/* ----------------------------------------------------------------------------\n * Types\n * ------------------------------------------------------------------------- */\n\n/**\n * Repository information\n */\nexport interface Source {\n facts: SourceFacts /* Repository facts */\n}\n\n/* ----------------------------------------------------------------------------\n * Data\n * ------------------------------------------------------------------------- */\n\n/**\n * Repository information observable\n */\nlet fetch$: Observable<Source>\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Watch repository information\n *\n * This function tries to read the repository facts from session storage, and\n * if unsuccessful, fetches them from the underlying provider.\n *\n * @param el - Repository information element\n *\n * @returns Repository information observable\n */\nexport function watchSource(\n el: HTMLAnchorElement\n): Observable<Source> {\n return fetch$ ||= defer(() => {\n const data = sessionStorage.getItem(__prefix(\"__source\"))\n if (data) {\n return of<SourceFacts>(JSON.parse(data))\n } else {\n const value$ = fetchSourceFacts(el.href)\n value$.subscribe(value => {\n try {\n sessionStorage.setItem(__prefix(\"__source\"), JSON.stringify(value))\n } catch (err) {\n /* Uncritical, just swallow */\n }\n })\n\n /* Return value */\n return value$\n }\n })\n .pipe(\n catchError(() => NEVER),\n filter(facts => Object.keys(facts).length > 0),\n map(facts => ({ facts })),\n shareReplay(1)\n )\n}\n\n/**\n * Mount repository information\n *\n * @param el - Repository information element\n *\n * @returns Repository information component observable\n */\nexport function mountSource(\n el: HTMLAnchorElement\n): Observable<Component<Source>> {\n const internal$ = new Subject<Source>()\n internal$.subscribe(({ facts }) => {\n setSourceFacts(el, renderSourceFacts(facts))\n setSourceState(el, \"done\")\n })\n\n /* Create and return component */\n return watchSource(el)\n .pipe(\n tap(internal$),\n finalize(() => internal$.complete()),\n map(state => ({ ref: el, ...state }))\n )\n}\n", "/*\n * Copyright (c) 2016-2021 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport { Observable, Subject, animationFrameScheduler } from \"rxjs\"\nimport {\n distinctUntilKeyChanged,\n finalize,\n map,\n observeOn,\n switchMap,\n tap\n} from \"rxjs/operators\"\n\nimport { resetTabsState, setTabsState } from \"~/actions\"\nimport {\n Viewport,\n watchElementSize,\n watchViewportAt\n} from \"~/browser\"\n\nimport { Component } from \"../_\"\nimport { Header } from \"../header\"\n\n/* ----------------------------------------------------------------------------\n * Types\n * ------------------------------------------------------------------------- */\n\n/**\n * Navigation tabs\n */\nexport interface Tabs {\n hidden: boolean /* User scrolled past tabs */\n}\n\n/* ----------------------------------------------------------------------------\n * Helper types\n * ------------------------------------------------------------------------- */\n\n/**\n * Watch options\n */\ninterface WatchOptions {\n viewport$: Observable<Viewport> /* Viewport observable */\n header$: Observable<Header> /* Header observable */\n}\n\n/**\n * Mount options\n */\ninterface MountOptions {\n viewport$: Observable<Viewport> /* Viewport observable */\n header$: Observable<Header> /* Header observable */\n}\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Watch navigation tabs\n *\n * @param el - Navigation tabs element\n * @param options - Options\n *\n * @returns Navigation tabs observable\n */\nexport function watchTabs(\n el: HTMLElement, { viewport$, header$ }: WatchOptions\n): Observable<Tabs> {\n return watchElementSize(document.body)\n .pipe(\n switchMap(() => watchViewportAt(el, { header$, viewport$ })),\n map(({ offset: { y } }) => {\n return {\n hidden: y >= 10\n }\n }),\n distinctUntilKeyChanged(\"hidden\")\n )\n}\n\n/**\n * Mount navigation tabs\n *\n * This function hides the navigation tabs when scrolling past the threshold\n * and makes them reappear in a nice CSS animation when scrolling back up.\n *\n * @param el - Navigation tabs element\n * @param options - Options\n *\n * @returns Navigation tabs component observable\n */\nexport function mountTabs(\n el: HTMLElement, options: MountOptions\n): Observable<Component<Tabs>> {\n const internal$ = new Subject<Tabs>()\n internal$\n .pipe(\n observeOn(animationFrameScheduler)\n )\n .subscribe({\n\n /* Update state */\n next({ hidden }) {\n if (hidden)\n setTabsState(el, \"hidden\")\n else\n resetTabsState(el)\n },\n\n /* Reset on complete */\n complete() {\n resetTabsState(el)\n }\n })\n\n /* Create and return component */\n return watchTabs(el, options)\n .pipe(\n tap(internal$),\n finalize(() => internal$.complete()),\n map(state => ({ ref: el, ...state }))\n )\n}\n", "/*\n * Copyright (c) 2016-2021 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport {\n Observable,\n Subject,\n animationFrameScheduler,\n combineLatest\n} from \"rxjs\"\nimport {\n bufferCount,\n distinctUntilChanged,\n distinctUntilKeyChanged,\n finalize,\n map,\n observeOn,\n scan,\n startWith,\n switchMap,\n tap\n} from \"rxjs/operators\"\n\nimport {\n resetAnchorActive,\n resetAnchorState,\n setAnchorActive,\n setAnchorState\n} from \"~/actions\"\nimport {\n Viewport,\n getElement,\n getElements,\n watchElementSize\n} from \"~/browser\"\n\nimport { Component } from \"../_\"\nimport { Header } from \"../header\"\n\n/* ----------------------------------------------------------------------------\n * Types\n * ------------------------------------------------------------------------- */\n\n/**\n * Table of contents\n */\nexport interface TableOfContents {\n prev: HTMLAnchorElement[][] /* Anchors (previous) */\n next: HTMLAnchorElement[][] /* Anchors (next) */\n}\n\n/* ----------------------------------------------------------------------------\n * Helper types\n * ------------------------------------------------------------------------- */\n\n/**\n * Watch options\n */\ninterface WatchOptions {\n viewport$: Observable<Viewport> /* Viewport observable */\n header$: Observable<Header> /* Header observable */\n}\n\n/**\n * Mount options\n */\ninterface MountOptions {\n viewport$: Observable<Viewport> /* Viewport observable */\n header$: Observable<Header> /* Header observable */\n}\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Watch table of contents\n *\n * This is effectively a scroll spy implementation which will account for the\n * fixed header and automatically re-calculate anchor offsets when the viewport\n * is resized. The returned observable will only emit if the table of contents\n * needs to be repainted.\n *\n * This implementation tracks an anchor element's entire path starting from its\n * level up to the top-most anchor element, e.g. `[h3, h2, h1]`. Although the\n * Material theme currently doesn't make use of this information, it enables\n * the styling of the entire hierarchy through customization.\n *\n * Note that the current anchor is the last item of the `prev` anchor list.\n *\n * @param anchors - Anchor elements\n * @param options - Options\n *\n * @returns Table of contents observable\n */\nexport function watchTableOfContents(\n anchors: HTMLAnchorElement[], { viewport$, header$ }: WatchOptions\n): Observable<TableOfContents> {\n const table = new Map<HTMLAnchorElement, HTMLElement>()\n for (const anchor of anchors) {\n const id = decodeURIComponent(anchor.hash.substring(1))\n const target = getElement(`[id=\"${id}\"]`)\n if (typeof target !== \"undefined\")\n table.set(anchor, target)\n }\n\n /* Compute necessary adjustment for header */\n const adjust$ = header$\n .pipe(\n map(header => 24 + header.height)\n )\n\n /* Compute partition of previous and next anchors */\n const partition$ = watchElementSize(document.body)\n .pipe(\n distinctUntilKeyChanged(\"height\"),\n\n /* Build index to map anchor paths to vertical offsets */\n map(() => {\n let path: HTMLAnchorElement[] = []\n return [...table].reduce((index, [anchor, target]) => {\n while (path.length) {\n const last = table.get(path[path.length - 1])!\n if (last.tagName >= target.tagName) {\n path.pop()\n } else {\n break\n }\n }\n\n /* If the current anchor is hidden, continue with its parent */\n let offset = target.offsetTop\n while (!offset && target.parentElement) {\n target = target.parentElement\n offset = target.offsetTop\n }\n\n /* Map reversed anchor path to vertical offset */\n return index.set(\n [...path = [...path, anchor]].reverse(),\n offset\n )\n }, new Map<HTMLAnchorElement[], number>())\n }),\n\n /* Sort index by vertical offset (see https://bit.ly/30z6QSO) */\n map(index => new Map([...index].sort(([, a], [, b]) => a - b))),\n\n /* Re-compute partition when viewport offset changes */\n switchMap(index => combineLatest([adjust$, viewport$])\n .pipe(\n scan(([prev, next], [adjust, { offset: { y } }]) => {\n\n /* Look forward */\n while (next.length) {\n const [, offset] = next[0]\n if (offset - adjust < y) {\n prev = [...prev, next.shift()!]\n } else {\n break\n }\n }\n\n /* Look backward */\n while (prev.length) {\n const [, offset] = prev[prev.length - 1]\n if (offset - adjust >= y) {\n next = [prev.pop()!, ...next]\n } else {\n break\n }\n }\n\n /* Return partition */\n return [prev, next]\n }, [[], [...index]]),\n distinctUntilChanged((a, b) => (\n a[0] === b[0] &&\n a[1] === b[1]\n ))\n )\n )\n )\n\n /* Compute and return anchor list migrations */\n return partition$\n .pipe(\n map(([prev, next]) => ({\n prev: prev.map(([path]) => path),\n next: next.map(([path]) => path)\n })),\n\n /* Extract anchor list migrations */\n startWith({ prev: [], next: [] }),\n bufferCount(2, 1),\n map(([a, b]) => {\n\n /* Moving down */\n if (a.prev.length < b.prev.length) {\n return {\n prev: b.prev.slice(Math.max(0, a.prev.length - 1), b.prev.length),\n next: []\n }\n\n /* Moving up */\n } else {\n return {\n prev: b.prev.slice(-1),\n next: b.next.slice(0, b.next.length - a.next.length)\n }\n }\n })\n )\n}\n\n/* ------------------------------------------------------------------------- */\n\n/**\n * Mount table of contents\n *\n * @param el - Anchor list element\n * @param options - Options\n *\n * @returns Table of contents component observable\n */\nexport function mountTableOfContents(\n el: HTMLElement, options: MountOptions\n): Observable<Component<TableOfContents>> {\n const internal$ = new Subject<TableOfContents>()\n internal$\n .pipe(\n observeOn(animationFrameScheduler),\n )\n .subscribe(({ prev, next }) => {\n\n /* Look forward */\n for (const [anchor] of next) {\n resetAnchorActive(anchor)\n resetAnchorState(anchor)\n }\n\n /* Look backward */\n for (const [index, [anchor]] of prev.entries()) {\n setAnchorActive(anchor, index === prev.length - 1)\n setAnchorState(anchor, \"blur\")\n }\n })\n\n /* Create and return component */\n const anchors = getElements<HTMLAnchorElement>(\"[href^=\\\\#]\", el)\n return watchTableOfContents(anchors, options)\n .pipe(\n tap(internal$),\n finalize(() => internal$.complete()),\n map(state => ({ ref: el, ...state }))\n )\n}\n", "/*\n * Copyright (c) 2016-2021 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport {\n Observable,\n Subject,\n animationFrameScheduler,\n combineLatest\n} from \"rxjs\"\nimport {\n bufferCount,\n distinctUntilChanged,\n distinctUntilKeyChanged,\n finalize,\n map,\n observeOn,\n tap\n} from \"rxjs/operators\"\n\nimport { resetBackToTopState, setBackToTopState } from \"~/actions\"\nimport { Viewport } from \"~/browser\"\n\nimport { Component } from \"../_\"\nimport { Main } from \"../main\"\n\n/* ----------------------------------------------------------------------------\n * Types\n * ------------------------------------------------------------------------- */\n\n/**\n * Back-to-top button\n */\nexport interface BackToTop {\n hidden: boolean /* User scrolled up */\n}\n\n/* ----------------------------------------------------------------------------\n * Helper types\n * ------------------------------------------------------------------------- */\n\n/**\n * Watch options\n */\ninterface WatchOptions {\n viewport$: Observable<Viewport> /* Viewport observable */\n main$: Observable<Main> /* Main area observable */\n}\n\n/**\n * Mount options\n */\ninterface MountOptions {\n viewport$: Observable<Viewport> /* Viewport observable */\n main$: Observable<Main> /* Main area observable */\n}\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Watch back-to-top\n *\n * @param _el - Back-to-top element\n * @param options - Options\n *\n * @returns Back-to-top observable\n */\nexport function watchBackToTop(\n _el: HTMLElement, { viewport$, main$ }: WatchOptions\n): Observable<BackToTop> {\n\n /* Compute direction */\n const direction$ = viewport$\n .pipe(\n map(({ offset: { y } }) => y),\n bufferCount(2, 1),\n map(([a, b]) => a > b),\n distinctUntilChanged()\n )\n\n /* Compute whether button should be hidden */\n const hidden$ = main$\n .pipe(\n distinctUntilKeyChanged(\"active\")\n )\n\n /* Compute threshold for hiding */\n return combineLatest([hidden$, direction$])\n .pipe(\n map(([{ active }, direction]) => ({\n hidden: !(active && direction)\n })),\n distinctUntilChanged((a, b) => (\n a.hidden === b.hidden\n ))\n )\n}\n\n/* ------------------------------------------------------------------------- */\n\n/**\n * Mount back-to-top\n *\n * @param el - Back-to-top element\n * @param options - Options\n *\n * @returns Back-to-top component observable\n */\nexport function mountBackToTop(\n el: HTMLElement, options: MountOptions\n): Observable<Component<BackToTop>> {\n const internal$ = new Subject<BackToTop>()\n internal$\n .pipe(\n observeOn(animationFrameScheduler)\n )\n .subscribe({\n\n /* Update state */\n next({ hidden }) {\n if (hidden)\n setBackToTopState(el, \"hidden\")\n else\n resetBackToTopState(el)\n },\n\n /* Reset on complete */\n complete() {\n resetBackToTopState(el)\n }\n })\n\n /* Create and return component */\n return watchBackToTop(el, options)\n .pipe(\n tap(internal$),\n finalize(() => internal$.complete()),\n map(state => ({ ref: el, ...state }))\n )\n}\n", "/*\n * Copyright (c) 2016-2021 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport { Observable, fromEvent, of } from \"rxjs\"\nimport {\n mapTo,\n mergeMap,\n switchMap,\n takeWhile,\n tap,\n withLatestFrom\n} from \"rxjs/operators\"\n\nimport { getElements } from \"~/browser\"\n\n/* ----------------------------------------------------------------------------\n * Helper types\n * ------------------------------------------------------------------------- */\n\n/**\n * Patch options\n */\ninterface PatchOptions {\n document$: Observable<Document> /* Document observable */\n tablet$: Observable<boolean> /* Tablet breakpoint observable */\n}\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Patch indeterminate checkboxes\n *\n * This function replaces the indeterminate \"pseudo state\" with the actual\n * indeterminate state, which is used to keep navigation always expanded.\n *\n * @param options - Options\n */\nexport function patchIndeterminate(\n { document$, tablet$ }: PatchOptions\n): void {\n document$\n .pipe(\n switchMap(() => of(...getElements<HTMLInputElement>(\n \"[data-md-state=indeterminate]\"\n ))),\n tap(el => {\n el.indeterminate = true\n el.checked = false\n }),\n mergeMap(el => fromEvent(el, \"change\")\n .pipe(\n takeWhile(() => el.hasAttribute(\"data-md-state\")),\n mapTo(el)\n )\n ),\n withLatestFrom(tablet$)\n )\n .subscribe(([el, tablet]) => {\n el.removeAttribute(\"data-md-state\")\n if (tablet)\n el.checked = false\n })\n}\n", "/*\n * Copyright (c) 2016-2021 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport { Observable, fromEvent, of } from \"rxjs\"\nimport {\n filter,\n mapTo,\n mergeMap,\n switchMap,\n tap\n} from \"rxjs/operators\"\n\nimport { getElements } from \"~/browser\"\n\n/* ----------------------------------------------------------------------------\n * Helper types\n * ------------------------------------------------------------------------- */\n\n/**\n * Patch options\n */\ninterface PatchOptions {\n document$: Observable<Document> /* Document observable */\n}\n\n/* ----------------------------------------------------------------------------\n * Helper functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Check whether the given device is an Apple device\n *\n * @returns Test result\n */\nfunction isAppleDevice(): boolean {\n return /(iPad|iPhone|iPod)/.test(navigator.userAgent)\n}\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Patch all elements with `data-md-scrollfix` attributes\n *\n * This is a year-old patch which ensures that overflow scrolling works at the\n * top and bottom of containers on iOS by ensuring a `1px` scroll offset upon\n * the start of a touch event.\n *\n * @see https://bit.ly/2SCtAOO - Original source\n *\n * @param options - Options\n */\nexport function patchScrollfix(\n { document$ }: PatchOptions\n): void {\n document$\n .pipe(\n switchMap(() => of(...getElements(\"[data-md-scrollfix]\"))),\n tap(el => el.removeAttribute(\"data-md-scrollfix\")),\n filter(isAppleDevice),\n mergeMap(el => fromEvent(el, \"touchstart\")\n .pipe(\n mapTo(el)\n )\n )\n )\n .subscribe(el => {\n const top = el.scrollTop\n\n /* We're at the top of the container */\n if (top === 0) {\n el.scrollTop = 1\n\n /* We're at the bottom of the container */\n } else if (top + el.offsetHeight === el.scrollHeight) {\n el.scrollTop = top - 1\n }\n })\n}\n", "/*\n * Copyright (c) 2016-2021 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport {\n Observable,\n animationFrameScheduler,\n combineLatest,\n of\n} from \"rxjs\"\nimport {\n delay,\n map,\n observeOn,\n switchMap,\n withLatestFrom\n} from \"rxjs/operators\"\n\nimport { resetScrollLock, setScrollLock } from \"~/actions\"\nimport { Viewport, watchToggle } from \"~/browser\"\n\n/* ----------------------------------------------------------------------------\n * Helper types\n * ------------------------------------------------------------------------- */\n\n/**\n * Patch options\n */\ninterface PatchOptions {\n viewport$: Observable<Viewport> /* Viewport observable */\n tablet$: Observable<boolean> /* Tablet breakpoint observable */\n}\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Patch the document body to lock when search is open\n *\n * For mobile and tablet viewports, the search is rendered full screen, which\n * leads to scroll leaking when at the top or bottom of the search result. This\n * function locks the body when the search is in full screen mode, and restores\n * the scroll position when leaving.\n *\n * @param options - Options\n */\nexport function patchScrolllock(\n { viewport$, tablet$ }: PatchOptions\n): void {\n combineLatest([watchToggle(\"search\"), tablet$])\n .pipe(\n map(([active, tablet]) => active && !tablet),\n switchMap(active => of(active)\n .pipe(\n delay(active ? 400 : 100),\n observeOn(animationFrameScheduler)\n )\n ),\n withLatestFrom(viewport$)\n )\n .subscribe(([active, { offset: { y }}]) => {\n if (active)\n setScrollLock(document.body, y)\n else\n resetScrollLock(document.body)\n })\n}\n"],
+ "mappings": "4iCAAA,oBAAC,UAAU,EAAQ,EAAS,CAC1B,MAAO,KAAY,UAAY,MAAO,KAAW,YAAc,IAC/D,MAAO,SAAW,YAAc,OAAO,IAAM,OAAO,GACnD,MACD,GAAO,UAAY,CAAE,aASrB,WAAmC,EAAO,CACxC,GAAI,GAAmB,GACnB,EAA0B,GAC1B,EAAiC,KAEjC,EAAsB,CACxB,KAAM,GACN,OAAQ,GACR,IAAK,GACL,IAAK,GACL,MAAO,GACP,SAAU,GACV,OAAQ,GACR,KAAM,GACN,MAAO,GACP,KAAM,GACN,KAAM,GACN,SAAU,GACV,iBAAkB,IAQpB,WAA4B,EAAI,CAC9B,MACE,MACA,IAAO,UACP,EAAG,WAAa,QAChB,EAAG,WAAa,QAChB,aAAe,IACf,YAAc,GAAG,WAcrB,WAAuC,EAAI,CACzC,GAAI,IAAO,EAAG,KACV,GAAU,EAAG,QAUjB,MARI,QAAY,SAAW,EAAoB,KAAS,CAAC,EAAG,UAIxD,KAAY,YAAc,CAAC,EAAG,UAI9B,EAAG,mBAYT,WAA8B,EAAI,CAChC,AAAI,EAAG,UAAU,SAAS,kBAG1B,GAAG,UAAU,IAAI,iBACjB,EAAG,aAAa,2BAA4B,KAQ9C,WAAiC,EAAI,CACnC,AAAI,CAAC,EAAG,aAAa,6BAGrB,GAAG,UAAU,OAAO,iBACpB,EAAG,gBAAgB,6BAWrB,WAAmB,EAAG,CACpB,AAAI,EAAE,SAAW,EAAE,QAAU,EAAE,SAI3B,GAAmB,EAAM,gBAC3B,EAAqB,EAAM,eAG7B,EAAmB,IAWrB,WAAuB,EAAG,CACxB,EAAmB,GAUrB,WAAiB,EAAG,CAElB,AAAI,CAAC,EAAmB,EAAE,SAItB,IAAoB,EAA8B,EAAE,UACtD,EAAqB,EAAE,QAQ3B,WAAgB,EAAG,CACjB,AAAI,CAAC,EAAmB,EAAE,SAKxB,GAAE,OAAO,UAAU,SAAS,kBAC5B,EAAE,OAAO,aAAa,8BAMtB,GAA0B,GAC1B,OAAO,aAAa,GACpB,EAAiC,OAAO,WAAW,UAAW,CAC5D,EAA0B,IACzB,KACH,EAAwB,EAAE,SAS9B,WAA4B,EAAG,CAC7B,AAAI,SAAS,kBAAoB,UAK3B,IACF,GAAmB,IAErB,KAUJ,YAA0C,CACxC,SAAS,iBAAiB,YAAa,GACvC,SAAS,iBAAiB,YAAa,GACvC,SAAS,iBAAiB,UAAW,GACrC,SAAS,iBAAiB,cAAe,GACzC,SAAS,iBAAiB,cAAe,GACzC,SAAS,iBAAiB,YAAa,GACvC,SAAS,iBAAiB,YAAa,GACvC,SAAS,iBAAiB,aAAc,GACxC,SAAS,iBAAiB,WAAY,GAGxC,YAA6C,CAC3C,SAAS,oBAAoB,YAAa,GAC1C,SAAS,oBAAoB,YAAa,GAC1C,SAAS,oBAAoB,UAAW,GACxC,SAAS,oBAAoB,cAAe,GAC5C,SAAS,oBAAoB,cAAe,GAC5C,SAAS,oBAAoB,YAAa,GAC1C,SAAS,oBAAoB,YAAa,GAC1C,SAAS,oBAAoB,aAAc,GAC3C,SAAS,oBAAoB,WAAY,GAU3C,WAA8B,EAAG,CAG/B,AAAI,EAAE,OAAO,UAAY,EAAE,OAAO,SAAS,gBAAkB,QAI7D,GAAmB,GACnB,KAMF,SAAS,iBAAiB,UAAW,EAAW,IAChD,SAAS,iBAAiB,YAAa,EAAe,IACtD,SAAS,iBAAiB,cAAe,EAAe,IACxD,SAAS,iBAAiB,aAAc,EAAe,IACvD,SAAS,iBAAiB,mBAAoB,EAAoB,IAElE,IAMA,EAAM,iBAAiB,QAAS,EAAS,IACzC,EAAM,iBAAiB,OAAQ,EAAQ,IAOvC,AAAI,EAAM,WAAa,KAAK,wBAA0B,EAAM,KAI1D,EAAM,KAAK,aAAa,wBAAyB,IACxC,EAAM,WAAa,KAAK,eACjC,UAAS,gBAAgB,UAAU,IAAI,oBACvC,SAAS,gBAAgB,aAAa,wBAAyB,KAOnE,GAAI,MAAO,SAAW,aAAe,MAAO,WAAa,YAAa,CAIpE,OAAO,0BAA4B,EAInC,GAAI,GAEJ,GAAI,CACF,EAAQ,GAAI,aAAY,sCACjB,EAAP,CAEA,EAAQ,SAAS,YAAY,eAC7B,EAAM,gBAAgB,+BAAgC,GAAO,GAAO,IAGtE,OAAO,cAAc,GAGvB,AAAI,MAAO,WAAa,aAGtB,EAA0B,cCpT9B;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,gFAeA,GAAI,IACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GACJ,AAAC,UAAU,EAAS,CAChB,GAAI,GAAO,MAAO,SAAW,SAAW,OAAS,MAAO,OAAS,SAAW,KAAO,MAAO,OAAS,SAAW,KAAO,GACrH,AAAI,MAAO,SAAW,YAAc,OAAO,IACvC,OAAO,QAAS,CAAC,WAAY,SAAU,EAAS,CAAE,EAAQ,EAAe,EAAM,EAAe,OAE7F,AAAI,MAAO,KAAW,UAAY,MAAO,IAAO,SAAY,SAC7D,EAAQ,EAAe,EAAM,EAAe,GAAO,WAGnD,EAAQ,EAAe,IAE3B,WAAwB,EAAS,EAAU,CACvC,MAAI,KAAY,GACZ,CAAI,MAAO,QAAO,QAAW,WACzB,OAAO,eAAe,EAAS,aAAc,CAAE,MAAO,KAGtD,EAAQ,WAAa,IAGtB,SAAU,EAAI,EAAG,CAAE,MAAO,GAAQ,GAAM,EAAW,EAAS,EAAI,GAAK,MAGnF,SAAU,EAAU,CACjB,GAAI,GAAgB,OAAO,gBACtB,CAAE,UAAW,aAAgB,QAAS,SAAU,EAAG,EAAG,CAAE,EAAE,UAAY,IACvE,SAAU,EAAG,EAAG,CAAE,OAAS,KAAK,GAAG,AAAI,OAAO,UAAU,eAAe,KAAK,EAAG,IAAI,GAAE,GAAK,EAAE,KAEhG,GAAY,SAAU,EAAG,EAAG,CACxB,GAAI,MAAO,IAAM,YAAc,IAAM,KACjC,KAAM,IAAI,WAAU,uBAAyB,OAAO,GAAK,iCAC7D,EAAc,EAAG,GACjB,YAAc,CAAE,KAAK,YAAc,EACnC,EAAE,UAAY,IAAM,KAAO,OAAO,OAAO,GAAM,GAAG,UAAY,EAAE,UAAW,GAAI,KAGnF,GAAW,OAAO,QAAU,SAAU,EAAG,CACrC,OAAS,GAAG,EAAI,EAAG,EAAI,UAAU,OAAQ,EAAI,EAAG,IAAK,CACjD,EAAI,UAAU,GACd,OAAS,KAAK,GAAG,AAAI,OAAO,UAAU,eAAe,KAAK,EAAG,IAAI,GAAE,GAAK,EAAE,IAE9E,MAAO,IAGX,GAAS,SAAU,EAAG,EAAG,CACrB,GAAI,GAAI,GACR,OAAS,KAAK,GAAG,AAAI,OAAO,UAAU,eAAe,KAAK,EAAG,IAAM,EAAE,QAAQ,GAAK,GAC9E,GAAE,GAAK,EAAE,IACb,GAAI,GAAK,MAAQ,MAAO,QAAO,uBAA0B,WACrD,OAAS,GAAI,EAAG,EAAI,OAAO,sBAAsB,GAAI,EAAI,EAAE,OAAQ,IAC/D,AAAI,EAAE,QAAQ,EAAE,IAAM,GAAK,OAAO,UAAU,qBAAqB,KAAK,EAAG,EAAE,KACvE,GAAE,EAAE,IAAM,EAAE,EAAE,KAE1B,MAAO,IAGX,GAAa,SAAU,EAAY,EAAQ,EAAK,EAAM,CAClD,GAAI,GAAI,UAAU,OAAQ,EAAI,EAAI,EAAI,EAAS,IAAS,KAAO,EAAO,OAAO,yBAAyB,EAAQ,GAAO,EAAM,EAC3H,GAAI,MAAO,UAAY,UAAY,MAAO,SAAQ,UAAa,WAAY,EAAI,QAAQ,SAAS,EAAY,EAAQ,EAAK,OACpH,QAAS,GAAI,EAAW,OAAS,EAAG,GAAK,EAAG,IAAK,AAAI,GAAI,EAAW,KAAI,GAAK,GAAI,EAAI,EAAE,GAAK,EAAI,EAAI,EAAE,EAAQ,EAAK,GAAK,EAAE,EAAQ,KAAS,GAChJ,MAAO,GAAI,GAAK,GAAK,OAAO,eAAe,EAAQ,EAAK,GAAI,GAGhE,GAAU,SAAU,EAAY,EAAW,CACvC,MAAO,UAAU,EAAQ,EAAK,CAAE,EAAU,EAAQ,EAAK,KAG3D,GAAa,SAAU,EAAa,EAAe,CAC/C,GAAI,MAAO,UAAY,UAAY,MAAO,SAAQ,UAAa,WAAY,MAAO,SAAQ,SAAS,EAAa,IAGpH,GAAY,SAAU,EAAS,EAAY,EAAG,EAAW,CACrD,WAAe,EAAO,CAAE,MAAO,aAAiB,GAAI,EAAQ,GAAI,GAAE,SAAU,EAAS,CAAE,EAAQ,KAC/F,MAAO,IAAK,IAAM,GAAI,UAAU,SAAU,EAAS,EAAQ,CACvD,WAAmB,EAAO,CAAE,GAAI,CAAE,EAAK,EAAU,KAAK,UAAkB,EAAP,CAAY,EAAO,IACpF,WAAkB,EAAO,CAAE,GAAI,CAAE,EAAK,EAAU,MAAS,UAAkB,EAAP,CAAY,EAAO,IACvF,WAAc,EAAQ,CAAE,EAAO,KAAO,EAAQ,EAAO,OAAS,EAAM,EAAO,OAAO,KAAK,EAAW,GAClG,EAAM,GAAY,EAAU,MAAM,EAAS,GAAc,KAAK,WAItE,GAAc,SAAU,EAAS,EAAM,CACnC,GAAI,GAAI,CAAE,MAAO,EAAG,KAAM,UAAW,CAAE,GAAI,EAAE,GAAK,EAAG,KAAM,GAAE,GAAI,MAAO,GAAE,IAAO,KAAM,GAAI,IAAK,IAAM,EAAG,EAAG,EAAG,EAC/G,MAAO,GAAI,CAAE,KAAM,EAAK,GAAI,MAAS,EAAK,GAAI,OAAU,EAAK,IAAM,MAAO,SAAW,YAAe,GAAE,OAAO,UAAY,UAAW,CAAE,MAAO,QAAU,EACvJ,WAAc,EAAG,CAAE,MAAO,UAAU,EAAG,CAAE,MAAO,GAAK,CAAC,EAAG,KACzD,WAAc,EAAI,CACd,GAAI,EAAG,KAAM,IAAI,WAAU,mCAC3B,KAAO,GAAG,GAAI,CACV,GAAI,EAAI,EAAG,GAAM,GAAI,EAAG,GAAK,EAAI,EAAE,OAAY,EAAG,GAAK,EAAE,OAAc,IAAI,EAAE,SAAc,EAAE,KAAK,GAAI,GAAK,EAAE,OAAS,CAAE,GAAI,EAAE,KAAK,EAAG,EAAG,KAAK,KAAM,MAAO,GAE3J,OADI,EAAI,EAAG,GAAG,GAAK,CAAC,EAAG,GAAK,EAAG,EAAE,QACzB,EAAG,QACF,OAAQ,GAAG,EAAI,EAAI,UACnB,GAAG,SAAE,QAAgB,CAAE,MAAO,EAAG,GAAI,KAAM,QAC3C,GAAG,EAAE,QAAS,EAAI,EAAG,GAAI,EAAK,CAAC,GAAI,aACnC,GAAG,EAAK,EAAE,IAAI,MAAO,EAAE,KAAK,MAAO,iBAEpC,GAAM,EAAI,EAAE,KAAM,IAAI,EAAE,OAAS,GAAK,EAAE,EAAE,OAAS,KAAQ,GAAG,KAAO,GAAK,EAAG,KAAO,GAAI,CAAE,EAAI,EAAG,SACjG,GAAI,EAAG,KAAO,GAAM,EAAC,GAAM,EAAG,GAAK,EAAE,IAAM,EAAG,GAAK,EAAE,IAAM,CAAE,EAAE,MAAQ,EAAG,GAAI,MAC9E,GAAI,EAAG,KAAO,GAAK,EAAE,MAAQ,EAAE,GAAI,CAAE,EAAE,MAAQ,EAAE,GAAI,EAAI,EAAI,MAC7D,GAAI,GAAK,EAAE,MAAQ,EAAE,GAAI,CAAE,EAAE,MAAQ,EAAE,GAAI,EAAE,IAAI,KAAK,GAAK,MAC3D,AAAI,EAAE,IAAI,EAAE,IAAI,MAChB,EAAE,KAAK,MAAO,SAEtB,EAAK,EAAK,KAAK,EAAS,SACnB,EAAP,CAAY,EAAK,CAAC,EAAG,GAAI,EAAI,SAAK,CAAU,EAAI,EAAI,EACtD,GAAI,EAAG,GAAK,EAAG,KAAM,GAAG,GAAI,MAAO,CAAE,MAAO,EAAG,GAAK,EAAG,GAAK,OAAQ,KAAM,MAIlF,GAAe,SAAS,EAAG,EAAG,CAC1B,OAAS,KAAK,GAAG,AAAI,IAAM,WAAa,CAAC,OAAO,UAAU,eAAe,KAAK,EAAG,IAAI,GAAgB,EAAG,EAAG,IAG/G,GAAkB,OAAO,OAAU,SAAS,EAAG,EAAG,EAAG,EAAI,CACrD,AAAI,IAAO,QAAW,GAAK,GAC3B,OAAO,eAAe,EAAG,EAAI,CAAE,WAAY,GAAM,IAAK,UAAW,CAAE,MAAO,GAAE,OAC1E,SAAS,EAAG,EAAG,EAAG,EAAI,CACxB,AAAI,IAAO,QAAW,GAAK,GAC3B,EAAE,GAAM,EAAE,IAGd,GAAW,SAAU,EAAG,CACpB,GAAI,GAAI,MAAO,SAAW,YAAc,OAAO,SAAU,EAAI,GAAK,EAAE,GAAI,EAAI,EAC5E,GAAI,EAAG,MAAO,GAAE,KAAK,GACrB,GAAI,GAAK,MAAO,GAAE,QAAW,SAAU,MAAO,CAC1C,KAAM,UAAY,CACd,MAAI,IAAK,GAAK,EAAE,QAAQ,GAAI,QACrB,CAAE,MAAO,GAAK,EAAE,KAAM,KAAM,CAAC,KAG5C,KAAM,IAAI,WAAU,EAAI,0BAA4B,oCAGxD,GAAS,SAAU,EAAG,EAAG,CACrB,GAAI,GAAI,MAAO,SAAW,YAAc,EAAE,OAAO,UACjD,GAAI,CAAC,EAAG,MAAO,GACf,GAAI,GAAI,EAAE,KAAK,GAAI,EAAG,EAAK,GAAI,EAC/B,GAAI,CACA,KAAQ,KAAM,QAAU,KAAM,IAAM,CAAE,GAAI,EAAE,QAAQ,MAAM,EAAG,KAAK,EAAE,aAEjE,EAAP,CAAgB,EAAI,CAAE,MAAO,UAC7B,CACI,GAAI,CACA,AAAI,GAAK,CAAC,EAAE,MAAS,GAAI,EAAE,SAAY,EAAE,KAAK,UAElD,CAAU,GAAI,EAAG,KAAM,GAAE,OAE7B,MAAO,IAIX,GAAW,UAAY,CACnB,OAAS,GAAK,GAAI,EAAI,EAAG,EAAI,UAAU,OAAQ,IAC3C,EAAK,EAAG,OAAO,GAAO,UAAU,KACpC,MAAO,IAIX,GAAiB,UAAY,CACzB,OAAS,GAAI,EAAG,EAAI,EAAG,EAAK,UAAU,OAAQ,EAAI,EAAI,IAAK,GAAK,UAAU,GAAG,OAC7E,OAAS,GAAI,MAAM,GAAI,EAAI,EAAG,EAAI,EAAG,EAAI,EAAI,IACzC,OAAS,GAAI,UAAU,GAAI,EAAI,EAAG,EAAK,EAAE,OAAQ,EAAI,EAAI,IAAK,IAC1D,EAAE,GAAK,EAAE,GACjB,MAAO,IAGX,GAAgB,SAAU,EAAI,EAAM,CAChC,OAAS,GAAI,EAAG,EAAK,EAAK,OAAQ,EAAI,EAAG,OAAQ,EAAI,EAAI,IAAK,IAC1D,EAAG,GAAK,EAAK,GACjB,MAAO,IAGX,GAAU,SAAU,EAAG,CACnB,MAAO,gBAAgB,IAAW,MAAK,EAAI,EAAG,MAAQ,GAAI,IAAQ,IAGtE,GAAmB,SAAU,EAAS,EAAY,EAAW,CACzD,GAAI,CAAC,OAAO,cAAe,KAAM,IAAI,WAAU,wCAC/C,GAAI,GAAI,EAAU,MAAM,EAAS,GAAc,IAAK,EAAG,EAAI,GAC3D,MAAO,GAAI,GAAI,EAAK,QAAS,EAAK,SAAU,EAAK,UAAW,EAAE,OAAO,eAAiB,UAAY,CAAE,MAAO,OAAS,EACpH,WAAc,EAAG,CAAE,AAAI,EAAE,IAAI,GAAE,GAAK,SAAU,EAAG,CAAE,MAAO,IAAI,SAAQ,SAAU,EAAG,EAAG,CAAE,EAAE,KAAK,CAAC,EAAG,EAAG,EAAG,IAAM,GAAK,EAAO,EAAG,OAC9H,WAAgB,EAAG,EAAG,CAAE,GAAI,CAAE,EAAK,EAAE,GAAG,UAAc,EAAP,CAAY,EAAO,EAAE,GAAG,GAAI,IAC3E,WAAc,EAAG,CAAE,EAAE,gBAAiB,IAAU,QAAQ,QAAQ,EAAE,MAAM,GAAG,KAAK,EAAS,GAAU,EAAO,EAAE,GAAG,GAAI,GACnH,WAAiB,EAAO,CAAE,EAAO,OAAQ,GACzC,WAAgB,EAAO,CAAE,EAAO,QAAS,GACzC,WAAgB,EAAG,EAAG,CAAE,AAAI,EAAE,GAAI,EAAE,QAAS,EAAE,QAAQ,EAAO,EAAE,GAAG,GAAI,EAAE,GAAG,MAGhF,GAAmB,SAAU,EAAG,CAC5B,GAAI,GAAG,EACP,MAAO,GAAI,GAAI,EAAK,QAAS,EAAK,QAAS,SAAU,EAAG,CAAE,KAAM,KAAO,EAAK,UAAW,EAAE,OAAO,UAAY,UAAY,CAAE,MAAO,OAAS,EAC1I,WAAc,EAAG,EAAG,CAAE,EAAE,GAAK,EAAE,GAAK,SAAU,EAAG,CAAE,MAAQ,GAAI,CAAC,GAAK,CAAE,MAAO,GAAQ,EAAE,GAAG,IAAK,KAAM,IAAM,UAAa,EAAI,EAAE,GAAK,GAAO,IAG/I,GAAgB,SAAU,EAAG,CACzB,GAAI,CAAC,OAAO,cAAe,KAAM,IAAI,WAAU,wCAC/C,GAAI,GAAI,EAAE,OAAO,eAAgB,EACjC,MAAO,GAAI,EAAE,KAAK,GAAM,GAAI,MAAO,KAAa,WAAa,GAAS,GAAK,EAAE,OAAO,YAAa,EAAI,GAAI,EAAK,QAAS,EAAK,SAAU,EAAK,UAAW,EAAE,OAAO,eAAiB,UAAY,CAAE,MAAO,OAAS,GAC9M,WAAc,EAAG,CAAE,EAAE,GAAK,EAAE,IAAM,SAAU,EAAG,CAAE,MAAO,IAAI,SAAQ,SAAU,EAAS,EAAQ,CAAE,EAAI,EAAE,GAAG,GAAI,EAAO,EAAS,EAAQ,EAAE,KAAM,EAAE,UAChJ,WAAgB,EAAS,EAAQ,EAAG,EAAG,CAAE,QAAQ,QAAQ,GAAG,KAAK,SAAS,EAAG,CAAE,EAAQ,CAAE,MAAO,EAAG,KAAM,KAAS,KAGtH,GAAuB,SAAU,EAAQ,EAAK,CAC1C,MAAI,QAAO,eAAkB,OAAO,eAAe,EAAQ,MAAO,CAAE,MAAO,IAAiB,EAAO,IAAM,EAClG,GAGX,GAAI,GAAqB,OAAO,OAAU,SAAS,EAAG,EAAG,CACrD,OAAO,eAAe,EAAG,UAAW,CAAE,WAAY,GAAM,MAAO,KAC9D,SAAS,EAAG,EAAG,CAChB,EAAE,QAAa,GAGnB,GAAe,SAAU,EAAK,CAC1B,GAAI,GAAO,EAAI,WAAY,MAAO,GAClC,GAAI,GAAS,GACb,GAAI,GAAO,KAAM,OAAS,KAAK,GAAK,AAAI,IAAM,WAAa,OAAO,UAAU,eAAe,KAAK,EAAK,IAAI,GAAgB,EAAQ,EAAK,GACtI,SAAmB,EAAQ,GACpB,GAGX,GAAkB,SAAU,EAAK,CAC7B,MAAQ,IAAO,EAAI,WAAc,EAAM,CAAE,QAAW,IAGxD,GAAyB,SAAU,EAAU,EAAY,CACrD,GAAI,CAAC,EAAW,IAAI,GAChB,KAAM,IAAI,WAAU,kDAExB,MAAO,GAAW,IAAI,IAG1B,GAAyB,SAAU,EAAU,EAAY,EAAO,CAC5D,GAAI,CAAC,EAAW,IAAI,GAChB,KAAM,IAAI,WAAU,kDAExB,SAAW,IAAI,EAAU,GAClB,GAGX,EAAS,YAAa,IACtB,EAAS,WAAY,IACrB,EAAS,SAAU,IACnB,EAAS,aAAc,IACvB,EAAS,UAAW,IACpB,EAAS,aAAc,IACvB,EAAS,YAAa,IACtB,EAAS,cAAe,IACxB,EAAS,eAAgB,IACzB,EAAS,kBAAmB,IAC5B,EAAS,WAAY,IACrB,EAAS,SAAU,IACnB,EAAS,WAAY,IACrB,EAAS,iBAAkB,IAC3B,EAAS,gBAAiB,IAC1B,EAAS,UAAW,IACpB,EAAS,mBAAoB,IAC7B,EAAS,mBAAoB,IAC7B,EAAS,gBAAiB,IAC1B,EAAS,uBAAwB,IACjC,EAAS,eAAgB,IACzB,EAAS,kBAAmB,IAC5B,EAAS,yBAA0B,IACnC,EAAS,yBAA0B,QC9SvC;AAAA;AAAA;AAAA;AAAA;AAAA,GAMA,AAAC,UAA0C,EAAM,EAAS,CACzD,AAAG,MAAO,KAAY,UAAY,MAAO,KAAW,SACnD,GAAO,QAAU,IACb,AAAG,MAAO,SAAW,YAAc,OAAO,IAC9C,OAAO,GAAI,GACP,AAAG,MAAO,KAAY,SAC1B,GAAQ,YAAiB,IAEzB,EAAK,YAAiB,MACrB,GAAM,UAAW,CACpB,MAAiB,WAAW,CAClB,GAAI,GAAuB,CAE/B,IACC,SAAS,EAAyB,EAAqB,EAAqB,CAEnF,aAGA,EAAoB,EAAE,EAAqB,CACzC,QAAW,UAAW,CAAE,MAAqB,OAI/C,GAAI,GAAe,EAAoB,KACnC,EAAoC,EAAoB,EAAE,GAE1D,EAAS,EAAoB,KAC7B,EAA8B,EAAoB,EAAE,GAEpD,EAAa,EAAoB,KACjC,EAA8B,EAAoB,EAAE,GAExD,WAAiB,EAAK,CAA6B,MAAI,OAAO,SAAW,YAAc,MAAO,QAAO,UAAa,SAAY,EAAU,SAAiB,EAAK,CAAE,MAAO,OAAO,IAAiB,EAAU,SAAiB,EAAK,CAAE,MAAO,IAAO,MAAO,SAAW,YAAc,EAAI,cAAgB,QAAU,IAAQ,OAAO,UAAY,SAAW,MAAO,IAAiB,EAAQ,GAEnX,WAAyB,EAAU,EAAa,CAAE,GAAI,CAAE,aAAoB,IAAgB,KAAM,IAAI,WAAU,qCAEhH,WAA2B,EAAQ,EAAO,CAAE,OAAS,GAAI,EAAG,EAAI,EAAM,OAAQ,IAAK,CAAE,GAAI,GAAa,EAAM,GAAI,EAAW,WAAa,EAAW,YAAc,GAAO,EAAW,aAAe,GAAU,SAAW,IAAY,GAAW,SAAW,IAAM,OAAO,eAAe,EAAQ,EAAW,IAAK,IAE7S,WAAsB,EAAa,EAAY,EAAa,CAAE,MAAI,IAAY,EAAkB,EAAY,UAAW,GAAiB,GAAa,EAAkB,EAAa,GAAqB,EAQzM,GAAI,GAA+B,UAAY,CAI7C,WAAyB,EAAS,CAChC,EAAgB,KAAM,GAEtB,KAAK,eAAe,GACpB,KAAK,gBAQP,SAAa,EAAiB,CAAC,CAC7B,IAAK,iBACL,MAAO,UAA0B,CAC/B,GAAI,GAAU,UAAU,OAAS,GAAK,UAAU,KAAO,OAAY,UAAU,GAAK,GAClF,KAAK,OAAS,EAAQ,OACtB,KAAK,UAAY,EAAQ,UACzB,KAAK,QAAU,EAAQ,QACvB,KAAK,OAAS,EAAQ,OACtB,KAAK,KAAO,EAAQ,KACpB,KAAK,QAAU,EAAQ,QACvB,KAAK,aAAe,KAOrB,CACD,IAAK,gBACL,MAAO,UAAyB,CAC9B,AAAI,KAAK,KACP,KAAK,aACI,KAAK,QACd,KAAK,iBAOR,CACD,IAAK,oBACL,MAAO,UAA6B,CAClC,GAAI,GAAQ,SAAS,gBAAgB,aAAa,SAAW,MAC7D,KAAK,SAAW,SAAS,cAAc,YAEvC,KAAK,SAAS,MAAM,SAAW,OAE/B,KAAK,SAAS,MAAM,OAAS,IAC7B,KAAK,SAAS,MAAM,QAAU,IAC9B,KAAK,SAAS,MAAM,OAAS,IAE7B,KAAK,SAAS,MAAM,SAAW,WAC/B,KAAK,SAAS,MAAM,EAAQ,QAAU,QAAU,UAEhD,GAAI,GAAY,OAAO,aAAe,SAAS,gBAAgB,UAC/D,YAAK,SAAS,MAAM,IAAM,GAAG,OAAO,EAAW,MAC/C,KAAK,SAAS,aAAa,WAAY,IACvC,KAAK,SAAS,MAAQ,KAAK,KACpB,KAAK,WAOb,CACD,IAAK,aACL,MAAO,UAAsB,CAC3B,GAAI,GAAQ,KAER,EAAW,KAAK,oBAEpB,KAAK,oBAAsB,UAAY,CACrC,MAAO,GAAM,cAGf,KAAK,YAAc,KAAK,UAAU,iBAAiB,QAAS,KAAK,sBAAwB,GACzF,KAAK,UAAU,YAAY,GAC3B,KAAK,aAAe,IAAiB,GACrC,KAAK,WACL,KAAK,eAON,CACD,IAAK,aACL,MAAO,UAAsB,CAC3B,AAAI,KAAK,aACP,MAAK,UAAU,oBAAoB,QAAS,KAAK,qBACjD,KAAK,YAAc,KACnB,KAAK,oBAAsB,MAGzB,KAAK,UACP,MAAK,UAAU,YAAY,KAAK,UAChC,KAAK,SAAW,QAOnB,CACD,IAAK,eACL,MAAO,UAAwB,CAC7B,KAAK,aAAe,IAAiB,KAAK,QAC1C,KAAK,aAMN,CACD,IAAK,WACL,MAAO,UAAoB,CACzB,GAAI,GAEJ,GAAI,CACF,EAAY,SAAS,YAAY,KAAK,cAC/B,EAAP,CACA,EAAY,GAGd,KAAK,aAAa,KAOnB,CACD,IAAK,eACL,MAAO,SAAsB,EAAW,CACtC,KAAK,QAAQ,KAAK,EAAY,UAAY,QAAS,CACjD,OAAQ,KAAK,OACb,KAAM,KAAK,aACX,QAAS,KAAK,QACd,eAAgB,KAAK,eAAe,KAAK,UAO5C,CACD,IAAK,iBACL,MAAO,UAA0B,CAC/B,AAAI,KAAK,SACP,KAAK,QAAQ,QAGf,SAAS,cAAc,OACvB,OAAO,eAAe,oBAOvB,CACD,IAAK,UAKL,MAAO,UAAmB,CACxB,KAAK,eAEN,CACD,IAAK,SACL,IAAK,UAAe,CAClB,GAAI,GAAS,UAAU,OAAS,GAAK,UAAU,KAAO,OAAY,UAAU,GAAK,OAGjF,GAFA,KAAK,QAAU,EAEX,KAAK,UAAY,QAAU,KAAK,UAAY,MAC9C,KAAM,IAAI,OAAM,uDAQpB,IAAK,UAAe,CAClB,MAAO,MAAK,UAQb,CACD,IAAK,SACL,IAAK,SAAa,EAAQ,CACxB,GAAI,IAAW,OACb,GAAI,GAAU,EAAQ,KAAY,UAAY,EAAO,WAAa,EAAG,CACnE,GAAI,KAAK,SAAW,QAAU,EAAO,aAAa,YAChD,KAAM,IAAI,OAAM,qFAGlB,GAAI,KAAK,SAAW,OAAU,GAAO,aAAa,aAAe,EAAO,aAAa,aACnF,KAAM,IAAI,OAAM,yGAGlB,KAAK,QAAU,MAEf,MAAM,IAAI,OAAM,gDAStB,IAAK,UAAe,CAClB,MAAO,MAAK,YAIT,KAGwB,EAAoB,EAErD,WAA0B,EAAK,CAA6B,MAAI,OAAO,SAAW,YAAc,MAAO,QAAO,UAAa,SAAY,EAAmB,SAAiB,EAAK,CAAE,MAAO,OAAO,IAAiB,EAAmB,SAAiB,EAAK,CAAE,MAAO,IAAO,MAAO,SAAW,YAAc,EAAI,cAAgB,QAAU,IAAQ,OAAO,UAAY,SAAW,MAAO,IAAiB,EAAiB,GAEvZ,WAAkC,EAAU,EAAa,CAAE,GAAI,CAAE,aAAoB,IAAgB,KAAM,IAAI,WAAU,qCAEzH,YAAoC,EAAQ,EAAO,CAAE,OAAS,GAAI,EAAG,EAAI,EAAM,OAAQ,IAAK,CAAE,GAAI,GAAa,EAAM,GAAI,EAAW,WAAa,EAAW,YAAc,GAAO,EAAW,aAAe,GAAU,SAAW,IAAY,GAAW,SAAW,IAAM,OAAO,eAAe,EAAQ,EAAW,IAAK,IAEtT,YAA+B,EAAa,EAAY,EAAa,CAAE,MAAI,IAAY,GAA2B,EAAY,UAAW,GAAiB,GAAa,GAA2B,EAAa,GAAqB,EAEpO,YAAmB,EAAU,EAAY,CAAE,GAAI,MAAO,IAAe,YAAc,IAAe,KAAQ,KAAM,IAAI,WAAU,sDAAyD,EAAS,UAAY,OAAO,OAAO,GAAc,EAAW,UAAW,CAAE,YAAa,CAAE,MAAO,EAAU,SAAU,GAAM,aAAc,MAAe,GAAY,GAAgB,EAAU,GAEnX,YAAyB,EAAG,EAAG,CAAE,UAAkB,OAAO,gBAAkB,SAAyB,EAAG,EAAG,CAAE,SAAE,UAAY,EAAU,GAAa,GAAgB,EAAG,GAErK,YAAsB,EAAS,CAAE,GAAI,GAA4B,KAA6B,MAAO,WAAgC,CAAE,GAAI,GAAQ,GAAgB,GAAU,EAAQ,GAAI,EAA2B,CAAE,GAAI,GAAY,GAAgB,MAAM,YAAa,EAAS,QAAQ,UAAU,EAAO,UAAW,OAAqB,GAAS,EAAM,MAAM,KAAM,WAAc,MAAO,IAA2B,KAAM,IAE5Z,YAAoC,EAAM,EAAM,CAAE,MAAI,IAAS,GAAiB,KAAU,UAAY,MAAO,IAAS,YAAsB,EAAe,GAAuB,GAElL,YAAgC,EAAM,CAAE,GAAI,IAAS,OAAU,KAAM,IAAI,gBAAe,6DAAgE,MAAO,GAE/J,aAAqC,CAA0E,GAApE,MAAO,UAAY,aAAe,CAAC,QAAQ,WAA6B,QAAQ,UAAU,KAAM,MAAO,GAAO,GAAI,MAAO,QAAU,WAAY,MAAO,GAAM,GAAI,CAAE,YAAK,UAAU,SAAS,KAAK,QAAQ,UAAU,KAAM,GAAI,UAAY,KAAa,SAAe,EAAP,CAAY,MAAO,IAE1T,YAAyB,EAAG,CAAE,UAAkB,OAAO,eAAiB,OAAO,eAAiB,SAAyB,EAAG,CAAE,MAAO,GAAE,WAAa,OAAO,eAAe,IAAc,GAAgB,GAWxM,YAA2B,EAAQ,EAAS,CAC1C,GAAI,GAAY,kBAAkB,OAAO,GAEzC,GAAI,EAAC,EAAQ,aAAa,GAI1B,MAAO,GAAQ,aAAa,GAQ9B,GAAI,IAAyB,SAAU,EAAU,CAC/C,GAAU,EAAW,GAErB,GAAI,GAAS,GAAa,GAM1B,WAAmB,EAAS,EAAS,CACnC,GAAI,GAEJ,SAAyB,KAAM,GAE/B,EAAQ,EAAO,KAAK,MAEpB,EAAM,eAAe,GAErB,EAAM,YAAY,GAEX,EAST,UAAsB,EAAW,CAAC,CAChC,IAAK,iBACL,MAAO,UAA0B,CAC/B,GAAI,GAAU,UAAU,OAAS,GAAK,UAAU,KAAO,OAAY,UAAU,GAAK,GAClF,KAAK,OAAS,MAAO,GAAQ,QAAW,WAAa,EAAQ,OAAS,KAAK,cAC3E,KAAK,OAAS,MAAO,GAAQ,QAAW,WAAa,EAAQ,OAAS,KAAK,cAC3E,KAAK,KAAO,MAAO,GAAQ,MAAS,WAAa,EAAQ,KAAO,KAAK,YACrE,KAAK,UAAY,EAAiB,EAAQ,aAAe,SAAW,EAAQ,UAAY,SAAS,OAOlG,CACD,IAAK,cACL,MAAO,SAAqB,EAAS,CACnC,GAAI,GAAS,KAEb,KAAK,SAAW,IAAiB,EAAS,QAAS,SAAU,GAAG,CAC9D,MAAO,GAAO,QAAQ,QAQzB,CACD,IAAK,UACL,MAAO,SAAiB,EAAG,CACzB,GAAI,GAAU,EAAE,gBAAkB,EAAE,cAEpC,AAAI,KAAK,iBACP,MAAK,gBAAkB,MAGzB,KAAK,gBAAkB,GAAI,GAAiB,CAC1C,OAAQ,KAAK,OAAO,GACpB,OAAQ,KAAK,OAAO,GACpB,KAAM,KAAK,KAAK,GAChB,UAAW,KAAK,UAChB,QAAS,EACT,QAAS,SAQZ,CACD,IAAK,gBACL,MAAO,SAAuB,EAAS,CACrC,MAAO,IAAkB,SAAU,KAOpC,CACD,IAAK,gBACL,MAAO,SAAuB,EAAS,CACrC,GAAI,GAAW,GAAkB,SAAU,GAE3C,GAAI,EACF,MAAO,UAAS,cAAc,KASjC,CACD,IAAK,cAML,MAAO,SAAqB,EAAS,CACnC,MAAO,IAAkB,OAAQ,KAMlC,CACD,IAAK,UACL,MAAO,UAAmB,CACxB,KAAK,SAAS,UAEV,KAAK,iBACP,MAAK,gBAAgB,UACrB,KAAK,gBAAkB,SAGzB,CAAC,CACH,IAAK,cACL,MAAO,UAAuB,CAC5B,GAAI,GAAS,UAAU,OAAS,GAAK,UAAU,KAAO,OAAY,UAAU,GAAK,CAAC,OAAQ,OACtF,EAAU,MAAO,IAAW,SAAW,CAAC,GAAU,EAClD,GAAU,CAAC,CAAC,SAAS,sBACzB,SAAQ,QAAQ,SAAU,GAAQ,CAChC,GAAU,IAAW,CAAC,CAAC,SAAS,sBAAsB,MAEjD,OAIJ,GACN,KAE8B,GAAa,IAIxC,IACC,SAAS,EAAQ,CAExB,GAAI,GAAqB,EAKzB,GAAI,MAAO,UAAY,aAAe,CAAC,QAAQ,UAAU,QAAS,CAC9D,GAAI,GAAQ,QAAQ,UAEpB,EAAM,QAAU,EAAM,iBACN,EAAM,oBACN,EAAM,mBACN,EAAM,kBACN,EAAM,sBAU1B,WAAkB,EAAS,EAAU,CACjC,KAAO,GAAW,EAAQ,WAAa,GAAoB,CACvD,GAAI,MAAO,GAAQ,SAAY,YAC3B,EAAQ,QAAQ,GAClB,MAAO,GAET,EAAU,EAAQ,YAI1B,EAAO,QAAU,GAKX,IACC,SAAS,EAAQ,EAA0B,EAAqB,CAEvE,GAAI,GAAU,EAAoB,KAYlC,WAAmB,EAAS,EAAU,EAAM,EAAU,EAAY,CAC9D,GAAI,GAAa,EAAS,MAAM,KAAM,WAEtC,SAAQ,iBAAiB,EAAM,EAAY,GAEpC,CACH,QAAS,UAAW,CAChB,EAAQ,oBAAoB,EAAM,EAAY,KAe1D,WAAkB,EAAU,EAAU,EAAM,EAAU,EAAY,CAE9D,MAAI,OAAO,GAAS,kBAAqB,WAC9B,EAAU,MAAM,KAAM,WAI7B,MAAO,IAAS,WAGT,EAAU,KAAK,KAAM,UAAU,MAAM,KAAM,WAIlD,OAAO,IAAa,UACpB,GAAW,SAAS,iBAAiB,IAIlC,MAAM,UAAU,IAAI,KAAK,EAAU,SAAU,EAAS,CACzD,MAAO,GAAU,EAAS,EAAU,EAAM,EAAU,MAa5D,WAAkB,EAAS,EAAU,EAAM,EAAU,CACjD,MAAO,UAAS,EAAG,CACf,EAAE,eAAiB,EAAQ,EAAE,OAAQ,GAEjC,EAAE,gBACF,EAAS,KAAK,EAAS,IAKnC,EAAO,QAAU,GAKX,IACC,SAAS,EAAyB,EAAS,CAQlD,EAAQ,KAAO,SAAS,EAAO,CAC3B,MAAO,KAAU,QACV,YAAiB,cACjB,EAAM,WAAa,GAS9B,EAAQ,SAAW,SAAS,EAAO,CAC/B,GAAI,GAAO,OAAO,UAAU,SAAS,KAAK,GAE1C,MAAO,KAAU,QACT,KAAS,qBAAuB,IAAS,4BACzC,UAAY,IACZ,GAAM,SAAW,GAAK,EAAQ,KAAK,EAAM,MASrD,EAAQ,OAAS,SAAS,EAAO,CAC7B,MAAO,OAAO,IAAU,UACjB,YAAiB,SAS5B,EAAQ,GAAK,SAAS,EAAO,CACzB,GAAI,GAAO,OAAO,UAAU,SAAS,KAAK,GAE1C,MAAO,KAAS,sBAMd,IACC,SAAS,EAAQ,EAA0B,EAAqB,CAEvE,GAAI,GAAK,EAAoB,KACzB,EAAW,EAAoB,KAWnC,WAAgB,EAAQ,EAAM,EAAU,CACpC,GAAI,CAAC,GAAU,CAAC,GAAQ,CAAC,EACrB,KAAM,IAAI,OAAM,8BAGpB,GAAI,CAAC,EAAG,OAAO,GACX,KAAM,IAAI,WAAU,oCAGxB,GAAI,CAAC,EAAG,GAAG,GACP,KAAM,IAAI,WAAU,qCAGxB,GAAI,EAAG,KAAK,GACR,MAAO,GAAW,EAAQ,EAAM,GAE/B,GAAI,EAAG,SAAS,GACjB,MAAO,GAAe,EAAQ,EAAM,GAEnC,GAAI,EAAG,OAAO,GACf,MAAO,GAAe,EAAQ,EAAM,GAGpC,KAAM,IAAI,WAAU,6EAa5B,WAAoB,EAAM,EAAM,EAAU,CACtC,SAAK,iBAAiB,EAAM,GAErB,CACH,QAAS,UAAW,CAChB,EAAK,oBAAoB,EAAM,KAc3C,WAAwB,EAAU,EAAM,EAAU,CAC9C,aAAM,UAAU,QAAQ,KAAK,EAAU,SAAS,EAAM,CAClD,EAAK,iBAAiB,EAAM,KAGzB,CACH,QAAS,UAAW,CAChB,MAAM,UAAU,QAAQ,KAAK,EAAU,SAAS,EAAM,CAClD,EAAK,oBAAoB,EAAM,OAe/C,WAAwB,EAAU,EAAM,EAAU,CAC9C,MAAO,GAAS,SAAS,KAAM,EAAU,EAAM,GAGnD,EAAO,QAAU,GAKX,IACC,SAAS,EAAQ,CAExB,WAAgB,EAAS,CACrB,GAAI,GAEJ,GAAI,EAAQ,WAAa,SACrB,EAAQ,QAER,EAAe,EAAQ,cAElB,EAAQ,WAAa,SAAW,EAAQ,WAAa,WAAY,CACtE,GAAI,GAAa,EAAQ,aAAa,YAEtC,AAAK,GACD,EAAQ,aAAa,WAAY,IAGrC,EAAQ,SACR,EAAQ,kBAAkB,EAAG,EAAQ,MAAM,QAEtC,GACD,EAAQ,gBAAgB,YAG5B,EAAe,EAAQ,UAEtB,CACD,AAAI,EAAQ,aAAa,oBACrB,EAAQ,QAGZ,GAAI,GAAY,OAAO,eACnB,EAAQ,SAAS,cAErB,EAAM,mBAAmB,GACzB,EAAU,kBACV,EAAU,SAAS,GAEnB,EAAe,EAAU,WAG7B,MAAO,GAGX,EAAO,QAAU,GAKX,IACC,SAAS,EAAQ,CAExB,YAAc,EAKd,EAAE,UAAY,CACZ,GAAI,SAAU,EAAM,EAAU,EAAK,CACjC,GAAI,GAAI,KAAK,GAAM,MAAK,EAAI,IAE5B,MAAC,GAAE,IAAU,GAAE,GAAQ,KAAK,KAAK,CAC/B,GAAI,EACJ,IAAK,IAGA,MAGT,KAAM,SAAU,EAAM,EAAU,EAAK,CACnC,GAAI,GAAO,KACX,YAAqB,CACnB,EAAK,IAAI,EAAM,GACf,EAAS,MAAM,EAAK,WAGtB,SAAS,EAAI,EACN,KAAK,GAAG,EAAM,EAAU,IAGjC,KAAM,SAAU,EAAM,CACpB,GAAI,GAAO,GAAG,MAAM,KAAK,UAAW,GAChC,EAAW,OAAK,GAAM,MAAK,EAAI,KAAK,IAAS,IAAI,QACjD,EAAI,EACJ,EAAM,EAAO,OAEjB,IAAK,EAAG,EAAI,EAAK,IACf,EAAO,GAAG,GAAG,MAAM,EAAO,GAAG,IAAK,GAGpC,MAAO,OAGT,IAAK,SAAU,EAAM,EAAU,CAC7B,GAAI,GAAI,KAAK,GAAM,MAAK,EAAI,IACxB,EAAO,EAAE,GACT,EAAa,GAEjB,GAAI,GAAQ,EACV,OAAS,GAAI,EAAG,EAAM,EAAK,OAAQ,EAAI,EAAK,IAC1C,AAAI,EAAK,GAAG,KAAO,GAAY,EAAK,GAAG,GAAG,IAAM,GAC9C,EAAW,KAAK,EAAK,IAQ3B,MAAC,GAAW,OACR,EAAE,GAAQ,EACV,MAAO,GAAE,GAEN,OAIX,EAAO,QAAU,EACjB,EAAO,QAAQ,YAAc,IAQf,EAA2B,GAG/B,WAA6B,EAAU,CAEtC,GAAG,EAAyB,GAC3B,MAAO,GAAyB,GAAU,QAG3C,GAAI,GAAS,EAAyB,GAAY,CAGjD,QAAS,IAIV,SAAoB,GAAU,EAAQ,EAAO,QAAS,GAG/C,EAAO,QAKf,MAAC,WAAW,CAEX,EAAoB,EAAI,SAAS,EAAQ,CACxC,GAAI,GAAS,GAAU,EAAO,WAC7B,UAAW,CAAE,MAAO,GAAO,SAC3B,UAAW,CAAE,MAAO,IACrB,SAAoB,EAAE,EAAQ,CAAE,EAAG,IAC5B,MAKR,UAAW,CAEX,EAAoB,EAAI,SAAS,EAAS,EAAY,CACrD,OAAQ,KAAO,GACd,AAAG,EAAoB,EAAE,EAAY,IAAQ,CAAC,EAAoB,EAAE,EAAS,IAC5E,OAAO,eAAe,EAAS,EAAK,CAAE,WAAY,GAAM,IAAK,EAAW,SAO3E,UAAW,CACX,EAAoB,EAAI,SAAS,EAAK,EAAM,CAAE,MAAO,QAAO,UAAU,eAAe,KAAK,EAAK,OAOzF,EAAoB,QAEpC,YCx7BD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,GAQA,aAOA,GAAI,IAAkB,UAOtB,GAAO,QAAU,GAUjB,YAAoB,EAAQ,CAC1B,GAAI,GAAM,GAAK,EACX,EAAQ,GAAgB,KAAK,GAEjC,GAAI,CAAC,EACH,MAAO,GAGT,GAAI,GACA,EAAO,GACP,EAAQ,EACR,EAAY,EAEhB,IAAK,EAAQ,EAAM,MAAO,EAAQ,EAAI,OAAQ,IAAS,CACrD,OAAQ,EAAI,WAAW,QAChB,IACH,EAAS,SACT,UACG,IACH,EAAS,QACT,UACG,IACH,EAAS,QACT,UACG,IACH,EAAS,OACT,UACG,IACH,EAAS,OACT,cAEA,SAGJ,AAAI,IAAc,GAChB,IAAQ,EAAI,UAAU,EAAW,IAGnC,EAAY,EAAQ,EACpB,GAAQ,EAGV,MAAO,KAAc,EACjB,EAAO,EAAI,UAAU,EAAW,GAChC,KCtDN,OAAO,SCtBP,OAAkB,SACZ,CACF,YACA,YACA,UACA,cACA,WACA,cACA,aACA,eACA,gBACA,mBACA,YACA,SACA,YACA,kBACA,gBACA,WACA,oBACA,oBACA,iBACA,wBACA,gBACA,mBACA,0BACA,2BACA,WCtBE,WAAqB,EAAU,CACnC,MAAO,OAAO,IAAU,WCIpB,YAA8B,EAAgC,CAClE,GAAM,GAAS,SAAC,EAAa,CAC3B,MAAM,KAAK,GACX,EAAS,MAAQ,GAAI,SAAQ,OAGzB,EAAW,EAAW,GAC5B,SAAS,UAAY,OAAO,OAAO,MAAM,WACzC,EAAS,UAAU,YAAc,EAC1B,ECAF,GAAM,IAA+C,GAC1D,SAAC,EAAM,CACL,MAAA,UAA4C,EAA0B,CACpE,EAAO,MACP,KAAK,QAAU,EACR,EAAO,OAAM;EACxB,EAAO,IAAI,SAAC,EAAK,EAAC,CAAK,MAAG,GAAI,EAAC,KAAK,EAAI,aAAc,KAAK;KACnD,GACJ,KAAK,KAAO,sBACZ,KAAK,OAAS,KCtBd,YAAuB,EAA6B,EAAO,CAC/D,GAAI,EAAK,CACP,GAAM,GAAQ,EAAI,QAAQ,GAC1B,GAAK,GAAS,EAAI,OAAO,EAAO,ICSpC,GAAA,IAAA,UAAA,CAyBE,WAAoB,EAA4B,CAA5B,KAAA,gBAAA,EAdb,KAAA,OAAS,GAER,KAAA,WAAmD,KAMnD,KAAA,WAAoD,KAc5D,SAAA,UAAA,YAAA,UAAA,aACM,EAEJ,GAAI,CAAC,KAAK,OAAQ,CAChB,KAAK,OAAS,GAGN,GAAA,GAAe,KAAI,WAC3B,GAAI,EAEF,GADA,KAAK,WAAa,KACd,MAAM,QAAQ,OAChB,OAAqB,GAAA,GAAA,GAAU,EAAA,EAAA,OAAA,CAAA,EAAA,KAAA,EAAA,EAAA,OAAE,CAA5B,GAAM,GAAM,EAAA,MACf,EAAO,OAAO,4GAGhB,GAAW,OAAO,MAId,GAAA,GAAoB,KAAI,gBAChC,GAAI,EAAW,GACb,GAAI,CACF,UACO,EAAP,CACA,EAAS,YAAa,IAAsB,EAAE,OAAS,CAAC,GAIpD,GAAA,GAAe,KAAI,WAC3B,GAAI,EAAY,CACd,KAAK,WAAa,SAClB,OAAuB,GAAA,GAAA,GAAU,EAAA,EAAA,OAAA,CAAA,EAAA,KAAA,EAAA,EAAA,OAAE,CAA9B,GAAM,GAAQ,EAAA,MACjB,GAAI,CACF,GAAa,SACN,EAAP,CACA,EAAS,GAAM,KAAN,EAAU,GACnB,AAAI,YAAe,IACjB,EAAM,EAAA,EAAA,GAAA,EAAO,IAAM,EAAK,EAAI,SAE5B,EAAO,KAAK,uGAMpB,GAAI,EACF,KAAM,IAAI,IAAoB,KAuBpC,EAAA,UAAA,IAAA,SAAI,EAAuB,OAGzB,GAAI,GAAY,IAAa,KAC3B,GAAI,KAAK,OAGP,GAAa,OACR,CACL,GAAI,YAAoB,GAAc,CAGpC,GAAI,EAAS,QAAU,EAAS,WAAW,MACzC,OAEF,EAAS,WAAW,MAEtB,AAAC,MAAK,WAAa,GAAA,KAAK,cAAU,MAAA,IAAA,OAAA,EAAI,IAAI,KAAK,KAU7C,EAAA,UAAA,WAAR,SAAmB,EAAoB,CAC7B,GAAA,GAAe,KAAI,WAC3B,MAAO,KAAe,GAAW,MAAM,QAAQ,IAAe,EAAW,SAAS,IAU5E,EAAA,UAAA,WAAR,SAAmB,EAAoB,CAC7B,GAAA,GAAe,KAAI,WAC3B,KAAK,WAAa,MAAM,QAAQ,GAAe,GAAW,KAAK,GAAS,GAAc,EAAa,CAAC,EAAY,GAAU,GAOpH,EAAA,UAAA,cAAR,SAAsB,EAAoB,CAChC,GAAA,GAAe,KAAI,WAC3B,AAAI,IAAe,EACjB,KAAK,WAAa,KACT,MAAM,QAAQ,IACvB,GAAU,EAAY,IAkB1B,EAAA,UAAA,OAAA,SAAO,EAAsC,CACnC,GAAA,GAAe,KAAI,WAC3B,GAAc,GAAU,EAAY,GAEhC,YAAoB,IACtB,EAAS,cAAc,OAhLb,EAAA,MAAS,UAAA,CACrB,GAAM,GAAQ,GAAI,GAClB,SAAM,OAAS,GACR,KAgLX,KAEO,GAAM,IAAqB,GAAa,MAEzC,YAAyB,EAAU,CACvC,MACE,aAAiB,KAChB,GAAS,UAAY,IAAS,EAAW,EAAM,SAAW,EAAW,EAAM,MAAQ,EAAW,EAAM,aAIzG,YAAsB,EAAuC,CAC3D,AAAI,EAAW,GACb,IAEA,EAAS,cC9MN,GAAM,IAAuB,CAClC,iBAAkB,KAClB,sBAAuB,KACvB,QAAS,OACT,sCAAuC,GACvC,yBAA0B,ICErB,GAAM,IAAmC,CAG9C,WAAU,UAAA,QAAC,GAAA,GAAA,EAAA,EAAA,EAAA,UAAA,OAAA,IAAA,EAAA,GAAA,UAAA,GACD,GAAA,GAAa,GAAe,SACpC,MAAQ,KAAQ,KAAA,OAAR,EAAU,aAAc,YAAW,MAAA,OAAA,EAAA,GAAA,EAAI,MAEjD,aAAY,SAAC,EAAM,CACT,GAAA,GAAa,GAAe,SACpC,MAAQ,KAAQ,KAAA,OAAR,EAAU,eAAgB,cAAc,IAElD,SAAU,QCbN,YAA+B,EAAQ,CAC3C,GAAgB,WAAW,UAAA,CACjB,GAAA,GAAqB,GAAM,iBACnC,GAAI,EAEF,EAAiB,OAGjB,MAAM,KCnBN,aAAc,ECMb,GAAM,IAAyB,UAAA,CAAM,MAAA,IAAmB,IAAK,OAAW,WAOzE,YAA4B,EAAU,CAC1C,MAAO,IAAmB,IAAK,OAAW,GAQtC,YAA8B,EAAQ,CAC1C,MAAO,IAAmB,IAAK,EAAO,QASlC,YAA6B,EAAuB,EAAY,EAAU,CAC9E,MAAO,CACL,KAAI,EACJ,MAAK,EACL,MAAK,GClBT,GAAA,IAAA,SAAA,EAAA,CAAmC,EAAA,EAAA,GA6BjC,WAAY,EAA6C,CAAzD,GAAA,GACE,EAAA,KAAA,OAAO,KATC,SAAA,UAAqB,GAU7B,AAAI,EACF,GAAK,YAAc,EAGf,GAAe,IACjB,EAAY,IAAI,IAGlB,EAAK,YAAc,KAvBhB,SAAA,OAAP,SAAiB,EAAwB,EAA2B,EAAqB,CACvF,MAAO,IAAI,IAAe,EAAM,EAAO,IAiCzC,EAAA,UAAA,KAAA,SAAK,EAAS,CACZ,AAAI,KAAK,UACP,GAA0B,GAAiB,GAAQ,MAEnD,KAAK,MAAM,IAWf,EAAA,UAAA,MAAA,SAAM,EAAS,CACb,AAAI,KAAK,UACP,GAA0B,GAAkB,GAAM,MAElD,MAAK,UAAY,GACjB,KAAK,OAAO,KAUhB,EAAA,UAAA,SAAA,UAAA,CACE,AAAI,KAAK,UACP,GAA0B,GAAuB,MAEjD,MAAK,UAAY,GACjB,KAAK,cAIT,EAAA,UAAA,YAAA,UAAA,CACE,AAAK,KAAK,QACR,MAAK,UAAY,GACjB,EAAA,UAAM,YAAW,KAAA,MACjB,KAAK,YAAc,OAIb,EAAA,UAAA,MAAV,SAAgB,EAAQ,CACtB,KAAK,YAAY,KAAK,IAGd,EAAA,UAAA,OAAV,SAAiB,EAAQ,CACvB,GAAI,CACF,KAAK,YAAY,MAAM,WAEvB,KAAK,gBAIC,EAAA,UAAA,UAAV,UAAA,CACE,GAAI,CACF,KAAK,YAAY,mBAEjB,KAAK,gBAGX,GApHmC,IAsHnC,GAAA,IAAA,SAAA,EAAA,CAAuC,EAAA,EAAA,GACrC,WACE,EACA,EACA,EAA8B,CAHhC,GAAA,GAKE,EAAA,KAAA,OAAO,KAEH,EACJ,GAAI,EAAW,GAGb,EAAO,UACE,EAAgB,CAMzB,AAAG,EAA0B,EAAc,KAAlC,EAAoB,EAAc,MAA3B,EAAa,EAAc,SAC3C,GAAI,GACJ,AAAI,GAAQ,GAAO,yBAIjB,GAAU,OAAO,OAAO,GACxB,EAAQ,YAAc,UAAA,CAAM,MAAA,GAAK,gBAEjC,EAAU,EAEZ,EAAO,GAAI,KAAA,OAAJ,EAAM,KAAK,GAClB,EAAQ,GAAK,KAAA,OAAL,EAAO,KAAK,GACpB,EAAW,GAAQ,KAAA,OAAR,EAAU,KAAK,GAK5B,SAAK,YAAc,CACjB,KAAM,EAAO,GAAqB,EAAM,GAAQ,GAChD,MAAO,GAAqB,GAAK,KAAL,EAAS,GAAqB,GAC1D,SAAU,EAAW,GAAqB,EAAU,GAAQ,MAGlE,MAAA,IA3CuC,IAoDvC,YAA8B,EAA8B,EAA6B,CACvF,MAAO,WAAA,QAAC,GAAA,GAAA,EAAA,EAAA,EAAA,UAAA,OAAA,IAAA,EAAA,GAAA,UAAA,GACN,GAAI,CACF,EAAO,MAAA,OAAA,EAAA,GAAA,EAAI,WACJ,EAAP,CACA,GAAI,GAAO,sCAIT,GAAK,EAAiB,6BACnB,EAAiB,YAAc,MAIhC,MAAM,OAKR,IAAqB,KAW7B,YAA6B,EAAQ,CACnC,KAAM,GAQR,YAAmC,EAA2C,EAA2B,CAC/F,GAAA,GAA0B,GAAM,sBACxC,GAAyB,GAAgB,WAAW,UAAA,CAAM,MAAA,GAAsB,EAAc,KAQzF,GAAM,IAA6D,CACxE,OAAQ,GACR,KAAM,GACN,MAAO,GACP,SAAU,ICjPL,GAAM,IAAc,UAAA,CAAM,MAAC,OAAO,SAAW,YAAc,OAAO,YAAe,kBCDlF,YAAsB,EAAI,CAC9B,MAAO,GCsEH,aAAc,QAAC,GAAA,GAAA,EAAA,EAAA,EAAA,UAAA,OAAA,IAAA,EAAA,GAAA,UAAA,GACnB,MAAO,IAAc,GAIjB,YAA8B,EAA+B,CACjE,MAAI,GAAI,SAAW,EACV,GAGL,EAAI,SAAW,EACV,EAAI,GAGN,SAAe,EAAQ,CAC5B,MAAO,GAAI,OAAO,SAAC,EAAW,EAAuB,CAAK,MAAA,GAAG,IAAO,ICpExE,GAAA,GAAA,UAAA,CAkBE,WAAY,EAA6E,CACvF,AAAI,GACF,MAAK,WAAa,GA8BtB,SAAA,UAAA,KAAA,SAAQ,EAAyB,CAC/B,GAAM,GAAa,GAAI,GACvB,SAAW,OAAS,KACpB,EAAW,SAAW,EACf,GA2IT,EAAA,UAAA,UAAA,SACE,EACA,EACA,EAA8B,CAE9B,GAAM,GAAa,GAAa,GAAkB,EAAiB,GAAI,IAAe,EAAgB,EAAO,GAE7G,GAAI,GAAO,sCACT,KAAK,8BAA8B,OAC9B,CACC,GAAA,GAAuB,KAArB,EAAQ,EAAA,SAAE,EAAM,EAAA,OACxB,EAAW,IACT,EAGI,EAAS,KAAK,EAAY,GAC1B,EAIA,KAAK,WAAW,GAGhB,KAAK,cAAc,IAG3B,MAAO,IAMD,EAAA,UAAA,8BAAR,SAAsC,EAA+B,CACnE,GAAM,GAAuB,EAC7B,EAAgB,6BAA+B,GACvC,GAAA,GAAa,KAAI,SACzB,GAAI,EAIF,EAAW,IAAI,EAAS,KAAK,EAAY,KAAK,aAE9C,IAAI,CACF,EAAW,IAAI,KAAK,WAAW,UACxB,EAAP,CACA,EAAgB,YAAc,EAUlC,OADI,GAAO,EACJ,GAAM,CAIX,GAAI,eAAiB,GACnB,GAAI,CACF,KAAM,GAAK,oBAEX,EAAW,cAGf,EAAO,EAAK,YAGd,EAAgB,6BAA+B,IAIvC,EAAA,UAAA,cAAV,SAAwB,EAAmB,CACzC,GAAI,CACF,MAAO,MAAK,WAAW,SAChB,EAAP,CAIA,EAAK,MAAM,KA+Df,EAAA,UAAA,QAAA,SAAQ,EAA0B,EAAoC,CAAtE,GAAA,GAAA,KACE,SAAc,GAAe,GAEtB,GAAI,GAAkB,SAAC,EAAS,EAAM,CAG3C,GAAI,GACJ,EAAe,EAAK,UAClB,SAAC,EAAK,CACJ,GAAI,CACF,EAAK,SACE,EAAP,CACA,EAAO,GACP,GAAY,MAAZ,EAAc,gBAGlB,EACA,MAMI,EAAA,UAAA,WAAV,SAAqB,EAA2B,OAC9C,MAAO,GAAA,KAAK,UAAM,MAAA,IAAA,OAAA,OAAA,EAAE,UAAU,IAQhC,EAAA,UAAC,IAAD,UAAA,CACE,MAAO,OA6FT,EAAA,UAAA,KAAA,UAAA,QAAK,GAAA,GAAA,EAAA,EAAA,EAAA,UAAA,OAAA,IAAA,EAAA,GAAA,UAAA,GACH,MAAO,GAAW,OAAS,GAAc,GAAY,MAAQ,MA8B/D,EAAA,UAAA,UAAA,SAAU,EAAoC,CAA9C,GAAA,GAAA,KACE,SAAc,GAAe,GAEtB,GAAI,GAAY,SAAC,EAAS,EAAM,CACrC,GAAI,GACJ,EAAK,UACH,SAAC,EAAI,CAAK,MAAC,GAAQ,GACnB,SAAC,EAAQ,CAAK,MAAA,GAAO,IACrB,UAAA,CAAM,MAAA,GAAQ,QAldb,EAAA,OAAkC,SAAI,EAAwD,CACnG,MAAO,IAAI,GAAc,IAqd7B,KASA,YAAwB,EAA+C,OACrE,MAAO,GAAA,GAAW,KAAX,EAAe,GAAO,WAAO,MAAA,IAAA,OAAA,EAAI,QAG1C,YAAuB,EAAU,CAC/B,MAAO,IAAS,EAAW,EAAM,OAAS,EAAW,EAAM,QAAU,EAAW,EAAM,UAGxF,YAAyB,EAAU,CACjC,MAAQ,IAAS,YAAiB,KAAgB,GAAW,IAAU,GAAe,GCrhBlF,YAAkB,EAAW,CACjC,MAAO,GAAW,GAAM,KAAA,OAAN,EAAQ,MAOtB,WACJ,EAAqF,CAErF,MAAO,UAAC,EAAqB,CAC3B,GAAI,GAAQ,GACV,MAAO,GAAO,KAAK,SAA+B,EAA2B,CAC3E,GAAI,CACF,MAAO,GAAK,EAAc,YACnB,EAAP,CACA,KAAK,MAAM,MAIjB,KAAM,IAAI,WAAU,2CCvBxB,GAAA,GAAA,SAAA,EAAA,CAA2C,EAAA,EAAA,GAazC,WACE,EACA,EACA,EACA,EACQ,EAAuB,CALjC,GAAA,GAmBE,EAAA,KAAA,KAAM,IAAY,KAdV,SAAA,WAAA,EAeR,EAAK,MAAQ,EACT,SAAuC,EAAQ,CAC7C,GAAI,CACF,EAAO,SACA,EAAP,CACA,EAAY,MAAM,KAGtB,EAAA,UAAM,MACV,EAAK,OAAS,EACV,SAAuC,EAAQ,CAC7C,GAAI,CACF,EAAQ,SACD,EAAP,CAEA,EAAY,MAAM,WAGlB,KAAK,gBAGT,EAAA,UAAM,OACV,EAAK,UAAY,EACb,UAAA,CACE,GAAI,CACF,UACO,EAAP,CAEA,EAAY,MAAM,WAGlB,KAAK,gBAGT,EAAA,UAAM,YAGZ,SAAA,UAAA,YAAA,UAAA,OACU,EAAW,KAAI,OACvB,EAAA,UAAM,YAAW,KAAA,MAEjB,CAAC,GAAU,IAAA,KAAK,cAAU,MAAA,IAAA,QAAA,EAAA,KAAf,QAEf,GA5E2C,ICQpC,GAAM,IAAiD,CAG5D,SAAA,SAAS,EAAQ,CACf,GAAI,GAAU,sBACV,EAAkD,qBAC9C,EAAa,GAAsB,SAC3C,AAAI,GACF,GAAU,EAAS,sBACnB,EAAS,EAAS,sBAEpB,GAAM,GAAS,EAAQ,SAAC,EAAS,CAI/B,EAAS,OACT,EAAS,KAEX,MAAO,IAAI,IAAa,UAAA,CAAM,MAAA,IAAM,KAAA,OAAN,EAAS,MAEzC,sBAAqB,UAAA,QAAC,GAAA,GAAA,EAAA,EAAA,EAAA,UAAA,OAAA,IAAA,EAAA,GAAA,UAAA,GACZ,GAAA,GAAa,GAAsB,SAC3C,MAAQ,KAAQ,KAAA,OAAR,EAAU,wBAAyB,uBAAsB,MAAA,OAAA,EAAA,GAAA,EAAI,MAEvE,qBAAoB,UAAA,QAAC,GAAA,GAAA,EAAA,EAAA,EAAA,UAAA,OAAA,IAAA,EAAA,GAAA,UAAA,GACX,GAAA,GAAa,GAAsB,SAC3C,MAAQ,KAAQ,KAAA,OAAR,EAAU,uBAAwB,sBAAqB,MAAA,OAAA,EAAA,GAAA,EAAI,MAErE,SAAU,QCrBL,GAAM,IAAuD,GAClE,SAAC,EAAM,CACL,MAAA,WAAoC,CAClC,EAAO,MACP,KAAK,KAAO,0BACZ,KAAK,QAAU,yBCXrB,GAAA,GAAA,SAAA,EAAA,CAAgC,EAAA,EAAA,GAqB9B,YAAA,CAAA,GAAA,GAEE,EAAA,KAAA,OAAO,KAtBT,SAAA,OAAS,GAET,EAAA,UAA2B,GAE3B,EAAA,UAAY,GAEZ,EAAA,SAAW,GAEX,EAAA,YAAmB,OAkBnB,SAAA,UAAA,KAAA,SAAQ,EAAwB,CAC9B,GAAM,GAAU,GAAI,IAAiB,KAAM,MAC3C,SAAQ,SAAW,EACZ,GAIC,EAAA,UAAA,eAAV,UAAA,CACE,GAAI,KAAK,OACP,KAAM,IAAI,KAId,EAAA,UAAA,KAAA,SAAK,EAAQ,SAEX,GADA,KAAK,iBACD,CAAC,KAAK,UAAW,CACnB,GAAM,GAAO,KAAK,UAAU,YAC5B,OAAuB,GAAA,GAAA,GAAI,EAAA,EAAA,OAAA,CAAA,EAAA,KAAA,EAAA,EAAA,OAAE,CAAxB,GAAM,GAAQ,EAAA,MACjB,EAAS,KAAK,wGAKpB,EAAA,UAAA,MAAA,SAAM,EAAQ,CAEZ,GADA,KAAK,iBACD,CAAC,KAAK,UAAW,CACnB,KAAK,SAAW,KAAK,UAAY,GACjC,KAAK,YAAc,EAEnB,OADQ,GAAc,KAAI,UACnB,EAAU,QACf,EAAU,QAAS,MAAM,KAK/B,EAAA,UAAA,SAAA,UAAA,CAEE,GADA,KAAK,iBACD,CAAC,KAAK,UAAW,CACnB,KAAK,UAAY,GAEjB,OADQ,GAAc,KAAI,UACnB,EAAU,QACf,EAAU,QAAS,aAKzB,EAAA,UAAA,YAAA,UAAA,CACE,KAAK,UAAY,KAAK,OAAS,GAC/B,KAAK,UAAY,MAGnB,OAAA,eAAI,EAAA,UAAA,WAAQ,KAAZ,UAAA,OACE,MAAO,IAAA,KAAK,aAAS,MAAA,IAAA,OAAA,OAAA,EAAE,QAAS,mCAIxB,EAAA,UAAA,cAAV,SAAwB,EAAyB,CAC/C,YAAK,iBACE,EAAA,UAAM,cAAa,KAAA,KAAC,IAInB,EAAA,UAAA,WAAV,SAAqB,EAAyB,CAC5C,YAAK,iBACL,KAAK,wBAAwB,GACtB,KAAK,gBAAgB,IAIpB,EAAA,UAAA,gBAAV,SAA0B,EAA2B,CAC7C,GAAA,GAAqC,KAAnC,EAAQ,EAAA,SAAE,EAAS,EAAA,UAAE,EAAS,EAAA,UACtC,MAAO,IAAY,EACf,GACC,GAAU,KAAK,GAAa,GAAI,IAAa,UAAA,CAAM,MAAA,IAAU,EAAW,OAIrE,EAAA,UAAA,wBAAV,SAAkC,EAA2B,CACrD,GAAA,GAAuC,KAArC,EAAQ,EAAA,SAAE,EAAW,EAAA,YAAE,EAAS,EAAA,UACxC,AAAI,EACF,EAAW,MAAM,GACR,GACT,EAAW,YAUf,EAAA,UAAA,aAAA,UAAA,CACE,GAAM,GAAkB,GAAI,GAC5B,SAAW,OAAS,KACb,GAzGF,EAAA,OAAkC,SAAI,EAA0B,EAAqB,CAC1F,MAAO,IAAI,IAAoB,EAAa,IA0GhD,GA5HgC,GAiIhC,GAAA,IAAA,SAAA,EAAA,CAAyC,EAAA,EAAA,GACvC,WAES,EACP,EAAsB,CAHxB,GAAA,GAKE,EAAA,KAAA,OAAO,KAHA,SAAA,YAAA,EAIP,EAAK,OAAS,IAGhB,SAAA,UAAA,KAAA,SAAK,EAAQ,SACX,AAAA,GAAA,GAAA,KAAK,eAAW,MAAA,IAAA,OAAA,OAAA,EAAE,QAAI,MAAA,IAAA,QAAA,EAAA,KAAA,EAAG,IAG3B,EAAA,UAAA,MAAA,SAAM,EAAQ,SACZ,AAAA,GAAA,GAAA,KAAK,eAAW,MAAA,IAAA,OAAA,OAAA,EAAE,SAAK,MAAA,IAAA,QAAA,EAAA,KAAA,EAAG,IAG5B,EAAA,UAAA,SAAA,UAAA,SACE,AAAA,GAAA,GAAA,KAAK,eAAW,MAAA,IAAA,OAAA,OAAA,EAAE,YAAQ,MAAA,IAAA,QAAA,EAAA,KAAA,IAIlB,EAAA,UAAA,WAAV,SAAqB,EAAyB,SAC5C,MAAO,GAAA,GAAA,KAAK,UAAM,MAAA,IAAA,OAAA,OAAA,EAAE,UAAU,MAAW,MAAA,IAAA,OAAA,EAAI,IAEjD,GA1ByC,GC1IlC,GAAM,IAA+C,CAC1D,IAAG,UAAA,CAGD,MAAQ,IAAsB,UAAY,MAAM,OAElD,SAAU,QCwBZ,GAAA,IAAA,SAAA,EAAA,CAAsC,EAAA,EAAA,GAUpC,WACU,EACA,EACA,EAA6D,CAF7D,AAAA,IAAA,QAAA,GAAA,UACA,IAAA,QAAA,GAAA,UACA,IAAA,QAAA,GAAA,IAHV,GAAA,GAKE,EAAA,KAAA,OAAO,KAJC,SAAA,YAAA,EACA,EAAA,YAAA,EACA,EAAA,mBAAA,EAZF,EAAA,QAA0B,GAC1B,EAAA,oBAAsB,GAc5B,EAAK,oBAAsB,IAAgB,SAC3C,EAAK,YAAc,KAAK,IAAI,EAAG,GAC/B,EAAK,YAAc,KAAK,IAAI,EAAG,KAGjC,SAAA,UAAA,KAAA,SAAK,EAAQ,CACL,GAAA,GAA+E,KAA7E,EAAS,EAAA,UAAE,EAAO,EAAA,QAAE,EAAmB,EAAA,oBAAE,EAAkB,EAAA,mBAAE,EAAW,EAAA,YAChF,AAAK,GACH,GAAQ,KAAK,GACb,CAAC,GAAuB,EAAQ,KAAK,EAAmB,MAAQ,IAElE,KAAK,cACL,EAAA,UAAM,KAAI,KAAA,KAAC,IAIH,EAAA,UAAA,WAAV,SAAqB,EAAyB,CAC5C,KAAK,iBACL,KAAK,cAQL,OANM,GAAe,KAAK,gBAAgB,GAEpC,EAAmC,KAAjC,EAAmB,EAAA,oBAAE,EAAO,EAAA,QAG9B,EAAO,EAAQ,QACZ,EAAI,EAAG,EAAI,EAAK,QAAU,CAAC,EAAW,OAAQ,GAAK,EAAsB,EAAI,EACpF,EAAW,KAAK,EAAK,IAGvB,YAAK,wBAAwB,GAEtB,GAGD,EAAA,UAAA,YAAR,UAAA,CACQ,GAAA,GAAoE,KAAlE,EAAW,EAAA,YAAE,EAAkB,EAAA,mBAAE,EAAO,EAAA,QAAE,EAAmB,EAAA,oBAK/D,EAAsB,GAAsB,EAAI,GAAK,EAK3D,GAJA,EAAc,UAAY,EAAqB,EAAQ,QAAU,EAAQ,OAAO,EAAG,EAAQ,OAAS,GAIhG,CAAC,EAAqB,CAKxB,OAJM,GAAM,EAAmB,MAC3B,EAAO,EAGF,EAAI,EAAG,EAAI,EAAQ,QAAW,EAAQ,IAAiB,EAAK,GAAK,EACxE,EAAO,EAET,GAAQ,EAAQ,OAAO,EAAG,EAAO,KAGvC,GAzEsC,GClBtC,GAAA,IAAA,SAAA,EAAA,CAA+B,EAAA,EAAA,GAC7B,WAAY,EAAsB,EAAmD,OACnF,GAAA,KAAA,OAAO,KAYF,SAAA,UAAA,SAAP,SAAgB,EAAW,EAAiB,CAAjB,MAAA,KAAA,QAAA,GAAA,GAClB,MAEX,GAjB+B,ICJxB,GAAM,IAAqC,CAGhD,YAAW,UAAA,QAAC,GAAA,GAAA,EAAA,EAAA,EAAA,UAAA,OAAA,IAAA,EAAA,GAAA,UAAA,GACF,GAAA,GAAa,GAAgB,SACrC,MAAQ,KAAQ,KAAA,OAAR,EAAU,cAAe,aAAY,MAAA,OAAA,EAAA,GAAA,EAAI,MAEnD,cAAa,SAAC,EAAM,CACV,GAAA,GAAa,GAAgB,SACrC,MAAQ,KAAQ,KAAA,OAAR,EAAU,gBAAiB,eAAe,IAEpD,SAAU,QClBZ,GAAA,IAAA,SAAA,EAAA,CAAoC,EAAA,EAAA,GAOlC,WAAsB,EAAqC,EAAmD,CAA9G,GAAA,GACE,EAAA,KAAA,KAAM,EAAW,IAAK,KADF,SAAA,UAAA,EAAqC,EAAA,KAAA,EAFjD,EAAA,QAAmB,KAMtB,SAAA,UAAA,SAAP,SAAgB,EAAW,EAAiB,CAC1C,GADyB,IAAA,QAAA,GAAA,GACrB,KAAK,OACP,MAAO,MAIT,KAAK,MAAQ,EAEb,GAAM,GAAK,KAAK,GACV,EAAY,KAAK,UAuBvB,MAAI,IAAM,MACR,MAAK,GAAK,KAAK,eAAe,EAAW,EAAI,IAK/C,KAAK,QAAU,GAEf,KAAK,MAAQ,EAEb,KAAK,GAAK,KAAK,IAAM,KAAK,eAAe,EAAW,KAAK,GAAI,GAEtD,MAGC,EAAA,UAAA,eAAV,SAAyB,EAA2B,EAAW,EAAiB,CAAjB,MAAA,KAAA,QAAA,GAAA,GACtD,GAAiB,YAAY,EAAU,MAAM,KAAK,EAAW,MAAO,IAGnE,EAAA,UAAA,eAAV,SAAyB,EAA4B,EAAS,EAAwB,CAEpF,GAF4D,IAAA,QAAA,GAAA,GAExD,GAAS,MAAQ,KAAK,QAAU,GAAS,KAAK,UAAY,GAC5D,MAAO,GAIT,GAAiB,cAAc,IAQ1B,EAAA,UAAA,QAAP,SAAe,EAAU,EAAa,CACpC,GAAI,KAAK,OACP,MAAO,IAAI,OAAM,gCAGnB,KAAK,QAAU,GACf,GAAM,GAAQ,KAAK,SAAS,EAAO,GACnC,GAAI,EACF,MAAO,GACF,AAAI,KAAK,UAAY,IAAS,KAAK,IAAM,MAc9C,MAAK,GAAK,KAAK,eAAe,KAAK,UAAW,KAAK,GAAI,QAIjD,EAAA,UAAA,SAAV,SAAmB,EAAU,EAAc,CACzC,GAAI,GAAmB,GACnB,EACJ,GAAI,CACF,KAAK,KAAK,SACH,EAAP,CACA,EAAU,GACV,EAAc,CAAC,CAAC,GAAK,GAAM,GAAI,OAAM,GAEvC,GAAI,EACF,YAAK,cACE,GAIX,EAAA,UAAA,YAAA,UAAA,CACE,GAAI,CAAC,KAAK,OAAQ,CACV,GAAA,GAAoB,KAAlB,EAAE,EAAA,GAAE,EAAS,EAAA,UACb,EAAY,EAAS,QAE7B,KAAK,KAAO,KAAK,MAAQ,KAAK,UAAY,KAC1C,KAAK,QAAU,GAEf,GAAU,EAAS,MACf,GAAM,MACR,MAAK,GAAK,KAAK,eAAe,EAAW,EAAI,OAG/C,KAAK,MAAQ,KACb,EAAA,UAAM,YAAW,KAAA,QAGvB,GAxIoC,ICiBpC,GAAA,IAAA,UAAA,CAGE,WAAoB,EAAoC,EAAiC,CAAjC,AAAA,IAAA,QAAA,GAAoB,EAAU,KAAlE,KAAA,oBAAA,EAClB,KAAK,IAAM,EA8BN,SAAA,UAAA,SAAP,SAAmB,EAAqD,EAAmB,EAAS,CAA5B,MAAA,KAAA,QAAA,GAAA,GAC/D,GAAI,MAAK,oBAAuB,KAAM,GAAM,SAAS,EAAO,IAlCvD,EAAA,IAAoB,GAAsB,IAoC1D,KCzDA,GAAA,IAAA,SAAA,EAAA,CAAoC,EAAA,EAAA,GAkBlC,WAAY,EAAgC,EAAiC,CAAjC,AAAA,IAAA,QAAA,GAAoB,GAAU,KAA1E,GAAA,GACE,EAAA,KAAA,KAAM,EAAiB,IAAI,KAlBtB,SAAA,QAAmC,GAOnC,EAAA,QAAmB,GAQnB,EAAA,WAAkB,SAMlB,SAAA,UAAA,MAAP,SAAa,EAAwB,CAC3B,GAAA,GAAY,KAAI,QAExB,GAAI,KAAK,QAAS,CAChB,EAAQ,KAAK,GACb,OAGF,GAAI,GACJ,KAAK,QAAU,GAEf,EACE,IAAK,EAAQ,EAAO,QAAQ,EAAO,MAAO,EAAO,OAC/C,YAEM,EAAS,EAAQ,SAI3B,GAFA,KAAK,QAAU,GAEX,EAAO,CACT,KAAQ,EAAS,EAAQ,SACvB,EAAO,cAET,KAAM,KAGZ,GAhDoC,IC8C7B,GAAM,IAAiB,GAAI,IAAe,IAKpC,GAAQ,GClDrB,GAAA,IAAA,SAAA,EAAA,CAA6C,EAAA,EAAA,GAC3C,WAAsB,EAA8C,EAAmD,CAAvH,GAAA,GACE,EAAA,KAAA,KAAM,EAAW,IAAK,KADF,SAAA,UAAA,EAA8C,EAAA,KAAA,IAI1D,SAAA,UAAA,eAAV,SAAyB,EAAoC,EAAU,EAAiB,CAEtF,MAFqE,KAAA,QAAA,GAAA,GAEjE,IAAU,MAAQ,EAAQ,EACrB,EAAA,UAAM,eAAc,KAAA,KAAC,EAAW,EAAI,GAG7C,GAAU,QAAQ,KAAK,MAIhB,EAAU,YAAe,GAAU,WAAa,GAAuB,sBAAsB,UAAA,CAAM,MAAA,GAAU,MAAM,aAElH,EAAA,UAAA,eAAV,SAAyB,EAAoC,EAAU,EAAiB,CAItF,GAJqE,IAAA,QAAA,GAAA,GAIhE,GAAS,MAAQ,EAAQ,GAAO,GAAS,MAAQ,KAAK,MAAQ,EACjE,MAAO,GAAA,UAAM,eAAc,KAAA,KAAC,EAAW,EAAI,GAK7C,AAAI,EAAU,QAAQ,SAAW,GAC/B,IAAuB,qBAAqB,GAC5C,EAAU,WAAa,SAK7B,GAlC6C,ICF7C,GAAA,IAAA,SAAA,EAAA,CAA6C,EAAA,EAAA,GAA7C,YAAA,gDACS,SAAA,UAAA,MAAP,SAAa,EAAyB,CACpC,KAAK,QAAU,GACf,KAAK,WAAa,OAEV,GAAA,GAAY,KAAI,QACpB,EACA,EAAQ,GACZ,EAAS,GAAU,EAAQ,QAC3B,GAAM,GAAQ,EAAQ,OAEtB,EACE,IAAK,EAAQ,EAAO,QAAQ,EAAO,MAAO,EAAO,OAC/C,YAEK,EAAE,EAAQ,GAAU,GAAS,EAAQ,UAI9C,GAFA,KAAK,QAAU,GAEX,EAAO,CACT,KAAO,EAAE,EAAQ,GAAU,GAAS,EAAQ,UAC1C,EAAO,cAET,KAAM,KAGZ,GA1B6C,ICgCtC,GAAM,GAA0B,GAAI,IAAwB,ICR5D,GAAM,IAAQ,GAAI,GAAkB,SAAC,EAAU,CAAK,MAAA,GAAW,aCxBhE,YAA2B,EAAqB,EAAwB,CAC5E,MAAO,IAAI,GAAc,SAAC,EAAU,CAElC,GAAI,GAAI,EAER,MAAO,GAAU,SAAS,UAAA,CACxB,AAAI,IAAM,EAAM,OAGd,EAAW,WAIX,GAAW,KAAK,EAAM,MAIjB,EAAW,QACd,KAAK,gBCrBR,GAAM,IAAe,SAAI,EAAM,CAAwB,MAAA,IAAK,MAAO,GAAE,QAAW,UAAY,MAAO,IAAM,YCM1G,YAAoB,EAAU,CAClC,MAAO,GAAW,GAAK,KAAA,OAAL,EAAO,MCFrB,YAAgC,EAA6B,EAAwB,CACzF,MAAO,IAAI,GAAc,SAAA,EAAU,CACjC,GAAM,GAAM,GAAI,IAChB,SAAI,IAAI,EAAU,SAAS,UAAA,CACzB,GAAM,GAA+B,EAAc,MACnD,EAAI,IAAI,EAAW,UAAU,CAC3B,KAAI,SAAC,EAAK,CAAI,EAAI,IAAI,EAAU,SAAS,UAAA,CAAM,MAAA,GAAW,KAAK,OAC/D,MAAK,SAAC,EAAG,CAAI,EAAI,IAAI,EAAU,SAAS,UAAA,CAAM,MAAA,GAAW,MAAM,OAC/D,SAAQ,UAAA,CAAK,EAAI,IAAI,EAAU,SAAS,UAAA,CAAM,MAAA,GAAW,qBAGtD,ICbL,YAA6B,EAAuB,EAAwB,CAChF,MAAO,IAAI,GAAc,SAAC,EAAU,CAClC,MAAO,GAAU,SAAS,UAAA,CACxB,MAAA,GAAM,KACJ,SAAC,EAAK,CACJ,EAAW,IACT,EAAU,SAAS,UAAA,CACjB,EAAW,KAAK,GAChB,EAAW,IAAI,EAAU,SAAS,UAAA,CAAM,MAAA,GAAW,kBAIzD,SAAC,EAAG,CACF,EAAW,IAAI,EAAU,SAAS,UAAA,CAAM,MAAA,GAAW,MAAM,YChB7D,aAA2B,CAC/B,MAAI,OAAO,SAAW,YAAc,CAAC,OAAO,SACnC,aAGF,OAAO,SAGT,GAAM,IAAW,KCJlB,YACJ,EACA,EACA,EACA,EAAS,CAAT,AAAA,IAAA,QAAA,GAAA,GAEA,GAAM,GAAe,EAAU,SAAS,UAAA,CACtC,GAAI,CACF,EAAQ,KAAK,YACN,EAAP,CACA,EAAW,MAAM,KAElB,GACH,SAAW,IAAI,GACR,ECPH,YAA8B,EAAoB,EAAwB,CAC9E,MAAO,IAAI,GAAc,SAAC,EAAU,CAClC,GAAI,GAKJ,SAAW,IACT,EAAU,SAAS,UAAA,CAEjB,EAAY,EAAc,MAG1B,GAAe,EAAY,EAAW,UAAA,CAE9B,GAAA,GAAkB,EAAS,OAAzB,EAAK,EAAA,MAAE,EAAI,EAAA,KACnB,AAAI,EAKF,EAAW,WAGX,GAAW,KAAK,GAGhB,KAAK,iBAUN,UAAA,CAAM,MAAA,GAAW,GAAQ,KAAA,OAAR,EAAU,SAAW,EAAS,YC5CpD,YAAmC,EAAyB,EAAwB,CACxF,GAAI,CAAC,EACH,KAAM,IAAI,OAAM,2BAElB,MAAO,IAAI,GAAc,SAAA,EAAU,CACjC,GAAM,GAAM,GAAI,IAChB,SAAI,IACF,EAAU,SAAS,UAAA,CACjB,GAAM,GAAW,EAAM,OAAO,iBAC9B,EAAI,IAAI,EAAU,SAAS,UAAA,CAAA,GAAA,GAAA,KACzB,EAAS,OAAO,KAAK,SAAA,EAAM,CACzB,AAAI,EAAO,KACT,EAAW,WAEX,GAAW,KAAK,EAAO,OACvB,EAAK,oBAMR,ICpBL,YAA8B,EAAU,CAC5C,MAAO,GAAW,EAAM,KCFpB,YAAqB,EAAU,CACnC,MAAO,GAAW,GAAK,KAAA,OAAL,EAAQ,KCHtB,YAA6B,EAAQ,CACzC,MAAO,QAAO,eAAiB,EAAW,GAAG,KAAA,OAAH,EAAM,OAAO,gBCCnD,YAA2C,EAAU,CAEzD,MAAO,IAAI,WACT,gBACE,KAAU,MAAQ,MAAO,IAAU,SAAW,oBAAsB,IAAI,EAAK,KAAG,4HCLhF,YAAuD,EAAqC,mGAC1F,EAAS,EAAe,qEAGF,MAAA,CAAA,EAAA,GAAM,EAAO,sBAA/B,GAAkB,EAAA,OAAhB,EAAK,EAAA,MAAE,EAAI,EAAA,KACf,iBAAA,CAAA,EAAA,UACF,MAAA,CAAA,EAAA,EAAA,2BAEI,WAAN,MAAA,CAAA,EAAA,EAAA,eAAA,SAAA,wCAGF,SAAO,yCAIL,YAAkC,EAAQ,CAG9C,MAAO,GAAW,GAAG,KAAA,OAAH,EAAK,WChBnB,YAAwC,EAA8B,EAAwB,CAClG,MAAO,IAAsB,GAAmC,GAAQ,GCqBpE,YAAuB,EAA2B,EAAwB,CAC9E,GAAI,GAAS,KAAM,CACjB,GAAI,GAAoB,GACtB,MAAO,IAAmB,EAAO,GAEnC,GAAI,GAAY,GACd,MAAO,IAAc,EAAO,GAE9B,GAAI,GAAU,GACZ,MAAO,IAAgB,EAAO,GAEhC,GAAI,GAAgB,GAClB,MAAO,IAAsB,EAAO,GAEtC,GAAI,GAAW,GACb,MAAO,IAAiB,EAAO,GAEjC,GAAI,GAAqB,GACvB,MAAO,IAA2B,EAAO,GAG7C,KAAM,IAAiC,GCqEnC,YAAkB,EAA2B,EAAyB,CAC1E,MAAO,GAAY,GAAU,EAAO,GAAa,EAAU,GAMvD,WAAuB,EAAyB,CACpD,GAAI,YAAiB,GACnB,MAAO,GAET,GAAI,GAAS,KAAM,CACjB,GAAI,GAAoB,GACtB,MAAO,IAAsB,GAE/B,GAAI,GAAY,GACd,MAAO,IAAc,GAEvB,GAAI,GAAU,GACZ,MAAO,IAAY,GAErB,GAAI,GAAgB,GAClB,MAAO,IAAkB,GAE3B,GAAI,GAAW,GACb,MAAO,IAAa,GAEtB,GAAI,GAAqB,GACvB,MAAO,IAAuB,GAIlC,KAAM,IAAiC,GAOzC,YAAkC,EAAQ,CACxC,MAAO,IAAI,GAAW,SAAC,EAAyB,CAC9C,GAAM,GAAM,EAAI,MAChB,GAAI,EAAW,EAAI,WACjB,MAAO,GAAI,UAAU,GAGvB,KAAM,IAAI,WAAU,oEAWlB,YAA2B,EAAmB,CAClD,MAAO,IAAI,GAAW,SAAC,EAAyB,CAU9C,OAAS,GAAI,EAAG,EAAI,EAAM,QAAU,CAAC,EAAW,OAAQ,IACtD,EAAW,KAAK,EAAM,IAExB,EAAW,aAIf,YAAwB,EAAuB,CAC7C,MAAO,IAAI,GAAW,SAAC,EAAyB,CAC9C,EACG,KACC,SAAC,EAAK,CACJ,AAAK,EAAW,QACd,GAAW,KAAK,GAChB,EAAW,aAGf,SAAC,EAAQ,CAAK,MAAA,GAAW,MAAM,KAEhC,KAAK,KAAM,MAIlB,YAAyB,EAAqB,CAC5C,MAAO,IAAI,GAAW,SAAC,EAAyB,aAC9C,OAAoB,GAAA,GAAA,GAAQ,EAAA,EAAA,OAAA,CAAA,EAAA,KAAA,EAAA,EAAA,OAAE,CAAzB,GAAM,GAAK,EAAA,MAEd,GADA,EAAW,KAAK,GACZ,EAAW,OACb,yGAGJ,EAAW,aAIf,YAA8B,EAA+B,CAC3D,MAAO,IAAI,GAAW,SAAC,EAAyB,CAC9C,GAAQ,EAAe,GAAY,MAAM,SAAC,EAAG,CAAK,MAAA,GAAW,MAAM,OAIvE,YAAmC,EAAqC,CACtE,MAAO,IAAkB,GAAmC,IAG9D,YAA0B,EAAiC,EAAyB,uIACxD,EAAA,GAAA,iFAIxB,GAJe,EAAK,EAAA,MACpB,EAAW,KAAK,GAGZ,EAAW,OACb,MAAA,CAAA,8RAGJ,SAAW,oBC3OP,YAA+B,EAAqB,EAAyB,CACjF,MAAO,GAAY,GAAc,EAAO,GAAa,GAAc,GCF/D,YAAsB,EAAU,CACpC,MAAO,IAAS,EAAW,EAAM,UCAnC,YAAiB,EAAQ,CACvB,MAAO,GAAI,EAAI,OAAS,GAGpB,YAA4B,EAAW,CAC3C,MAAO,GAAW,GAAK,IAAS,EAAK,MAAQ,OAGzC,YAAuB,EAAW,CACtC,MAAO,IAAY,GAAK,IAAS,EAAK,MAAQ,OAG1C,YAAoB,EAAa,EAAoB,CACzD,MAAO,OAAO,IAAK,IAAU,SAAW,EAAK,MAAS,EC+DlD,YAAY,QAAI,GAAA,GAAA,EAAA,EAAA,EAAA,UAAA,OAAA,IAAA,EAAA,GAAA,UAAA,GACpB,GAAM,GAAY,GAAa,GAC/B,MAAO,GAAY,GAAc,EAAa,GAAa,GAAkB,GC3EzE,YAAsB,EAAU,CACpC,MAAO,aAAiB,OAAQ,CAAC,MAAM,GCqCnC,WAAoB,EAAyC,EAAa,CAC9E,MAAO,GAAQ,SAAC,EAAQ,EAAU,CAEhC,GAAI,GAAQ,EAGZ,EAAO,UACL,GAAI,GAAmB,EAAY,SAAC,EAAQ,CAG1C,EAAW,KAAK,EAAQ,KAAK,EAAS,EAAO,WCpD7C,GAAA,IAAY,MAAK,QAEzB,YAA2B,EAA6B,EAAW,CAC/D,MAAO,IAAQ,GAAQ,EAAE,MAAA,OAAA,EAAA,GAAA,EAAI,KAAQ,EAAG,GAOtC,YAAiC,EAA2B,CAC9D,MAAO,GAAI,SAAA,EAAI,CAAI,MAAA,IAAY,EAAI,KC0CjC,WAAuB,EAA0B,EAAiB,CAAjB,MAAA,KAAA,QAAA,GAAA,GAC9C,EAAQ,SAAC,EAAQ,EAAU,CAChC,EAAO,UACL,GAAI,GACF,EACA,SAAC,EAAK,CAAK,MAAA,GAAW,IAAI,EAAU,SAAS,UAAA,CAAM,MAAA,GAAW,KAAK,IAAQ,KAC3E,UAAA,CAAM,MAAA,GAAW,IAAI,EAAU,SAAS,UAAA,CAAM,MAAA,GAAW,YAAY,KACrE,SAAC,EAAG,CAAK,MAAA,GAAW,IAAI,EAAU,SAAS,UAAA,CAAM,MAAA,GAAW,MAAM,IAAM,SC/DxE,GAAA,IAAY,MAAK,QACjB,GAA0D,OAAM,eAArC,GAA+B,OAAM,UAAlB,GAAY,OAAM,KAQlE,YAA+D,EAAuB,CAC1F,GAAI,EAAK,SAAW,EAAG,CACrB,GAAM,GAAQ,EAAK,GACnB,GAAI,GAAQ,GACV,MAAO,CAAE,KAAM,EAAO,KAAM,MAE9B,GAAI,GAAO,GAAQ,CACjB,GAAM,GAAO,GAAQ,GACrB,MAAO,CACL,KAAM,EAAK,IAAI,SAAC,EAAG,CAAK,MAAA,GAAM,KAC9B,KAAI,IAKV,MAAO,CAAE,KAAM,EAAa,KAAM,MAGpC,YAAgB,EAAQ,CACtB,MAAO,IAAO,MAAO,IAAQ,UAAY,GAAe,KAAS,GC5B7D,YAAuB,EAAgB,EAAa,CACxD,MAAO,GAAK,OAAO,SAAC,EAAQ,EAAK,EAAC,CAAK,MAAE,GAAO,GAAO,EAAO,GAAK,GAAS,ICmMxE,YAAuB,QAAoC,GAAA,GAAA,EAAA,EAAA,EAAA,UAAA,OAAA,IAAA,EAAA,GAAA,UAAA,GAC/D,GAAM,GAAY,GAAa,GACzB,EAAiB,GAAkB,GAEnC,EAA8B,GAAqB,GAA3C,EAAW,EAAA,KAAE,EAAI,EAAA,KAE/B,GAAI,EAAY,SAAW,EAIzB,MAAO,IAAK,GAAI,GAGlB,GAAM,GAAS,GAAI,GACjB,GACE,EACA,EACA,EAEI,SAAC,EAAM,CAAK,MAAA,IAAa,EAAM,IAE/B,KAIR,MAAO,GAAkB,EAAO,KAAK,GAAiB,IAAqC,EAGvF,YACJ,EACA,EACA,EAAiD,CAAjD,MAAA,KAAA,QAAA,GAAA,IAEO,SAAC,EAA2B,CAGjC,GACE,EACA,UAAA,CAaE,OAZQ,GAAW,EAAW,OAExB,EAAS,GAAI,OAAM,GAGrB,EAAS,EAIT,EAAuB,aAGlB,EAAC,CACR,GACE,EACA,UAAA,CACE,GAAM,GAAS,GAAK,EAAY,GAAI,GAChC,EAAgB,GACpB,EAAO,UACL,GAAI,GACF,EACA,SAAC,EAAK,CAEJ,EAAO,GAAK,EACP,GAEH,GAAgB,GAChB,KAEG,GAGH,EAAW,KAAK,EAAe,EAAO,WAG1C,UAAA,CACE,AAAK,EAAE,GAGL,EAAW,eAMrB,IAjCK,EAAI,EAAG,EAAI,EAAQ,MAAnB,IAqCX,IASN,YAAuB,EAAsC,EAAqB,EAA0B,CAC1G,AAAI,EACF,EAAa,IAAI,EAAU,SAAS,IAEpC,ICtRE,YACJ,EACA,EACA,EACA,EACA,EACA,EACA,EACA,EAA+B,CAG/B,GAAM,GAAc,GAEhB,EAAS,EAET,EAAQ,EAER,EAAa,GAKX,EAAgB,UAAA,CAIpB,AAAI,GAAc,CAAC,EAAO,QAAU,CAAC,GACnC,EAAW,YAKT,EAAY,SAAC,EAAQ,CAAK,MAAC,GAAS,EAAa,EAAW,GAAS,EAAO,KAAK,IAEjF,EAAa,SAAC,EAAQ,CAI1B,GAAU,EAAW,KAAK,GAI1B,IAKA,GAAI,GAAgB,GAGpB,EAAU,EAAQ,EAAO,MAAU,UACjC,GAAI,GACF,EACA,SAAC,EAAU,CAGT,GAAY,MAAZ,EAAe,GAEf,AAAI,EAGF,EAAU,GAGV,EAAW,KAAK,IAGpB,UAAA,CAGE,EAAgB,IAGlB,OACA,UAAA,CAIE,GAAI,EAKF,GAAI,CAIF,IAKA,qBACE,GAAM,GAAgB,EAAO,QAI7B,EAAoB,EAAW,IAAI,EAAkB,SAAS,UAAA,CAAM,MAAA,GAAW,MAAmB,EAAW,IALxG,EAAO,QAAU,EAAS,OAQjC,UACO,EAAP,CACA,EAAW,MAAM,QAS7B,SAAO,UACL,GAAI,GAAmB,EAAY,EAAW,UAAA,CAE5C,EAAa,GACb,OAMG,UAAA,CACL,GAAkB,MAAlB,KC7DE,YACJ,EACA,EACA,EAA6B,CAE7B,MAFA,KAAA,QAAA,GAAA,UAEI,EAAW,GAEN,GAAS,SAAC,EAAG,EAAC,CAAK,MAAA,GAAI,SAAC,EAAQ,EAAU,CAAK,MAAA,GAAe,EAAG,EAAG,EAAG,KAAK,EAAU,EAAQ,EAAG,MAAM,GACrG,OAAO,IAAmB,UACnC,GAAa,GAGR,EAAQ,SAAC,EAAQ,EAAU,CAAK,MAAA,IAAe,EAAQ,EAAY,EAAS,MChC/E,YAAmD,EAA6B,CAA7B,MAAA,KAAA,QAAA,GAAA,UAChD,GAAS,GAAU,GCFtB,aAAmB,CACvB,MAAO,IAAS,GCsDZ,aAAgB,QAAC,GAAA,GAAA,EAAA,EAAA,EAAA,UAAA,OAAA,IAAA,EAAA,GAAA,UAAA,GACrB,MAAO,MAAY,GAAkB,EAAM,GAAa,KCjEpD,YAAgD,EAA0B,CAC9E,MAAO,IAAI,GAA+B,SAAC,EAAU,CACnD,EAAU,KAAqB,UAAU,KC5C7C,GAAM,IAA0B,CAAC,cAAe,kBAC1C,GAAqB,CAAC,mBAAoB,uBAC1C,GAAgB,CAAC,KAAM,OA2NvB,WACJ,EACA,EACA,EACA,EAAsC,CAMtC,GAJI,EAAW,IACb,GAAiB,EACjB,EAAU,QAER,EACF,MAAO,GAAa,EAAQ,EAAW,GAAiC,KAAK,GAAiB,IAU1F,GAAA,GAAA,EAEJ,GAAc,GACV,GAAmB,IAAI,SAAC,EAAU,CAAK,MAAA,UAAC,EAAY,CAAK,MAAA,GAAO,GAAY,EAAW,EAAS,MAElG,GAAwB,GACtB,GAAwB,IAAI,GAAwB,EAAQ,IAC5D,GAA0B,GAC1B,GAAc,IAAI,GAAwB,EAAQ,IAClD,GAAE,GATD,EAAG,EAAA,GAAE,EAAM,EAAA,GAgBlB,GAAI,CAAC,GACC,GAAY,GACd,MAAO,IAAS,SAAC,EAAc,CAAK,MAAA,GAAU,EAAW,EAAW,KAClE,GAAkB,IAOxB,GAAI,CAAC,EACH,KAAM,IAAI,WAAU,wBAGtB,MAAO,IAAI,GAAc,SAAC,EAAU,CAIlC,GAAM,GAAU,UAAA,QAAC,GAAA,GAAA,EAAA,EAAA,EAAA,UAAA,OAAA,IAAA,EAAA,GAAA,UAAA,GAAmB,MAAA,GAAW,KAAK,EAAI,EAAK,OAAS,EAAO,EAAK,KAElF,SAAI,GAEG,UAAA,CAAM,MAAA,GAAQ,MAWzB,YAAiC,EAAa,EAAiB,CAC7D,MAAO,UAAC,EAAkB,CAAK,MAAA,UAAC,EAAY,CAAK,MAAA,GAAO,GAAY,EAAW,KAQjF,YAAiC,EAAW,CAC1C,MAAO,GAAW,EAAO,cAAgB,EAAW,EAAO,gBAQ7D,YAAmC,EAAW,CAC5C,MAAO,GAAW,EAAO,KAAO,EAAW,EAAO,KAQpD,YAAuB,EAAW,CAChC,MAAO,GAAW,EAAO,mBAAqB,EAAW,EAAO,qBC1L5D,YACJ,EACA,EACA,EAAsC,CAEtC,MAAI,GACK,GAAoB,EAAY,GAAe,KAAK,GAAiB,IAGvE,GAAI,GAAoB,SAAC,EAAU,CACxC,GAAM,GAAU,UAAA,QAAC,GAAA,GAAA,EAAA,EAAA,EAAA,UAAA,OAAA,IAAA,EAAA,GAAA,UAAA,GAAc,MAAA,GAAW,KAAK,EAAE,SAAW,EAAI,EAAE,GAAK,IACjE,EAAW,EAAW,GAC5B,MAAO,GAAW,GAAiB,UAAA,CAAM,MAAA,GAAc,EAAS,IAAY,SClB1E,YACJ,EACA,EACA,EAAyC,CAFzC,AAAA,IAAA,QAAA,GAAA,GAEA,IAAA,QAAA,GAAA,IAIA,GAAI,GAAmB,GAEvB,MAAI,IAAuB,MAIzB,CAAI,GAAY,GACd,EAAY,EAIZ,EAAmB,GAIhB,GAAI,GAAW,SAAC,EAAU,CAI/B,GAAI,GAAM,GAAY,GAAW,CAAC,EAAU,EAAW,MAAQ,EAE/D,AAAI,EAAM,GAER,GAAM,GAIR,GAAI,GAAI,EAGR,MAAO,GAAU,SAAS,UAAA,CACxB,AAAK,EAAW,QAEd,GAAW,KAAK,KAEhB,AAAI,GAAK,EAGP,KAAK,SAAS,OAAW,GAGzB,EAAW,aAGd,KCpGD,YAAe,QAAC,GAAA,GAAA,EAAA,EAAA,EAAA,UAAA,OAAA,IAAA,EAAA,GAAA,UAAA,GACpB,GAAM,GAAY,GAAa,GACzB,EAAa,GAAU,EAAM,UAC7B,EAAU,EAChB,MAAO,AAAC,GAAQ,OAGZ,EAAQ,SAAW,EAEnB,EAAU,EAAQ,IAElB,GAAS,GAAY,GAAkB,EAAS,IALhD,GC3DC,GAAM,GAAQ,GAAI,GAAkB,ICjCnC,GAAA,IAAY,MAAK,QAMnB,YAA4B,EAAiB,CACjD,MAAO,GAAK,SAAW,GAAK,GAAQ,EAAK,IAAM,EAAK,GAAM,ECgDtD,WAAoB,EAAiD,EAAa,CACtF,MAAO,GAAQ,SAAC,EAAQ,EAAU,CAEhC,GAAI,GAAQ,EAIZ,EAAO,UAIL,GAAI,GAAmB,EAAY,SAAC,EAAK,CAAK,MAAA,GAAU,KAAK,EAAS,EAAO,MAAY,EAAW,KAAK,QChBzG,aAAa,QAAC,GAAA,GAAA,EAAA,EAAA,EAAA,UAAA,OAAA,IAAA,EAAA,GAAA,UAAA,GAClB,GAAM,GAAiB,GAAkB,GAEnC,EAAU,GAAe,GAE/B,MAAO,GAAQ,OACX,GAAI,GAAsB,SAAC,EAAU,CAGnC,GAAI,GAAuB,EAAQ,IAAI,UAAA,CAAM,MAAA,KAKzC,EAAY,EAAQ,IAAI,UAAA,CAAM,MAAA,KAGlC,EAAW,IAAI,UAAA,CACb,EAAU,EAAY,OAMxB,mBAAS,EAAW,CAClB,EAAU,EAAQ,IAAc,UAC9B,GAAI,GACF,EACA,SAAC,EAAK,CAKJ,GAJA,EAAQ,GAAa,KAAK,GAItB,EAAQ,MAAM,SAAC,EAAM,CAAK,MAAA,GAAO,SAAS,CAC5C,GAAM,GAAc,EAAQ,IAAI,SAAC,EAAM,CAAK,MAAA,GAAO,UAEnD,EAAW,KAAK,EAAiB,EAAc,MAAA,OAAA,EAAA,GAAA,EAAI,KAAU,GAIzD,EAAQ,KAAK,SAAC,EAAQ,EAAC,CAAK,MAAA,CAAC,EAAO,QAAU,EAAU,MAC1D,EAAW,aAIjB,UAAA,CAGE,EAAU,GAAe,GAIzB,CAAC,EAAQ,GAAa,QAAU,EAAW,eA5B1C,EAAc,EAAG,CAAC,EAAW,QAAU,EAAc,EAAQ,OAAQ,MAArE,GAmCT,MAAO,WAAA,CACL,EAAU,EAAY,QAG1B,GCvDA,YAAyB,EAAoB,EAAsC,CAAtC,MAAA,KAAA,QAAA,GAAA,MAGjD,EAAmB,GAAgB,KAAhB,EAAoB,EAEhC,EAAQ,SAAC,EAAQ,EAAU,CAChC,GAAI,GAAiB,GACjB,EAAQ,EAEZ,EAAO,UACL,GAAI,GACF,EACA,SAAC,EAAK,aACA,EAAuB,KAK3B,AAAI,IAAU,GAAsB,GAClC,EAAQ,KAAK,QAIf,OAAqB,GAAA,GAAA,GAAO,EAAA,EAAA,OAAA,CAAA,EAAA,KAAA,EAAA,EAAA,OAAE,CAAzB,GAAM,GAAM,EAAA,MACf,EAAO,KAAK,GAMR,GAAc,EAAO,QACvB,GAAS,GAAM,KAAN,EAAU,GACnB,EAAO,KAAK,sGAIhB,GAAI,MAIF,OAAqB,GAAA,GAAA,GAAM,EAAA,EAAA,OAAA,CAAA,EAAA,KAAA,EAAA,EAAA,OAAE,CAAxB,GAAM,GAAM,EAAA,MACf,GAAU,EAAS,GACnB,EAAW,KAAK,uGAItB,UAAA,aAGE,OAAqB,GAAA,GAAA,GAAO,EAAA,EAAA,OAAA,CAAA,EAAA,KAAA,EAAA,EAAA,OAAE,CAAzB,GAAM,GAAM,EAAA,MACf,EAAW,KAAK,qGAElB,EAAW,YAGb,OACA,UAAA,CAEE,EAAU,UCXd,YACJ,EAAgD,CAEhD,MAAO,GAAQ,SAAC,EAAQ,EAAU,CAChC,GAAI,GAAgC,KAChC,EAAY,GACZ,EAEJ,EAAW,EAAO,UAChB,GAAI,GAAmB,EAAY,OAAW,OAAW,SAAC,EAAG,CAC3D,EAAgB,EAAU,EAAS,EAAK,GAAW,GAAU,KAC7D,AAAI,EACF,GAAS,cACT,EAAW,KACX,EAAc,UAAU,IAIxB,EAAY,MAKd,GAMF,GAAS,cACT,EAAW,KACX,EAAe,UAAU,MC3HzB,YACJ,EACA,EACA,EACA,EACA,EAAqC,CAErC,MAAO,UAAC,EAAuB,EAA2B,CAIxD,GAAI,GAAW,EAIX,EAAa,EAEb,EAAQ,EAGZ,EAAO,UACL,GAAI,GACF,EACA,SAAC,EAAK,CAEJ,GAAM,GAAI,IAEV,EAAQ,EAEJ,EAAY,EAAO,EAAO,GAIxB,GAAW,GAAO,GAGxB,GAAc,EAAW,KAAK,IAIhC,GACG,UAAA,CACC,GAAY,EAAW,KAAK,GAC5B,EAAW,eC9BjB,aAAuB,QAAO,GAAA,GAAA,EAAA,EAAA,EAAA,UAAA,OAAA,IAAA,EAAA,GAAA,UAAA,GAClC,GAAM,GAAiB,GAAkB,GACzC,MAAO,GACH,GAAK,GAAa,MAAA,OAAA,EAAA,GAAA,EAAI,KAAO,GAAiB,IAC9C,EAAQ,SAAC,EAAQ,EAAU,CACzB,GAAiB,EAAA,CAAE,GAAM,EAAK,GAAe,MAAQ,KCUvD,aAA2B,QAC/B,GAAA,GAAA,EAAA,EAAA,EAAA,UAAA,OAAA,IAAA,EAAA,GAAA,UAAA,GAEA,MAAO,IAAa,MAAA,OAAA,EAAA,GAAA,EAAI,KCkCpB,YACJ,EACA,EAA6G,CAE7G,MAAO,GAAW,GAAkB,GAAS,EAAS,EAAgB,GAAK,GAAS,EAAS,GCnBzF,YAA0B,EAAiB,EAAyC,CAAzC,MAAA,KAAA,QAAA,GAAA,IACxC,EAAQ,SAAC,EAAQ,EAAU,CAChC,GAAI,GAAkC,KAClC,EAAsB,KACtB,EAA0B,KAExB,EAAO,UAAA,CACX,GAAI,EAAY,CAEd,EAAW,cACX,EAAa,KACb,GAAM,GAAQ,EACd,EAAY,KACZ,EAAW,KAAK,KAGpB,YAAqB,CAInB,GAAM,GAAa,EAAY,EACzB,EAAM,EAAU,MACtB,GAAI,EAAM,EAAY,CAEpB,EAAa,KAAK,SAAS,OAAW,EAAa,GACnD,OAGF,IAGF,EAAO,UACL,GAAI,GACF,EACA,SAAC,EAAQ,CACP,EAAY,EACZ,EAAW,EAAU,MAGhB,GACH,GAAa,EAAU,SAAS,EAAc,KAGlD,UAAA,CAGE,IACA,EAAW,YAGb,OACA,UAAA,CAEE,EAAY,EAAa,UC9E7B,YAA+B,EAAe,CAClD,MAAO,GAAQ,SAAC,EAAQ,EAAU,CAChC,GAAI,GAAW,GACf,EAAO,UACL,GAAI,GACF,EACA,SAAC,EAAK,CACJ,EAAW,GACX,EAAW,KAAK,IAElB,UAAA,CACE,AAAK,GACH,EAAW,KAAK,GAElB,EAAW,gBCNf,YAAkB,EAAa,CACnC,MAAO,IAAS,EAEZ,UAAA,CAAM,MAAA,KACN,EAAQ,SAAC,EAAQ,EAAU,CACzB,GAAI,GAAO,EACX,EAAO,UACL,GAAI,GAAmB,EAAY,SAAC,EAAK,CAIvC,AAAI,EAAE,GAAQ,GACZ,GAAW,KAAK,GAIZ,GAAS,GACX,EAAW,iBC1BrB,aAAwB,CAC5B,MAAO,GAAQ,SAAC,EAAQ,EAAU,CAChC,EAAO,UAAU,GAAI,GAAmB,EAAY,OCFlD,YAAmB,EAAQ,CAC/B,MAAO,GAAI,UAAA,CAAM,MAAA,KCmCb,YACJ,EACA,EAAmC,CAEnC,MAAI,GAEK,SAAC,EAAqB,CAC3B,MAAA,IAAO,EAAkB,KAAK,GAAK,GAAI,MAAmB,EAAO,KAAK,GAAU,MAG7E,GAAS,SAAC,EAAO,EAAK,CAAK,MAAA,GAAsB,EAAO,GAAO,KAAK,GAAK,GAAI,GAAM,MCvBtF,YAAmB,EAAoB,EAAyC,CAAzC,AAAA,IAAA,QAAA,GAAA,IAC3C,GAAM,GAAW,GAAM,EAAK,GAC5B,MAAO,IAAU,UAAA,CAAM,MAAA,KCoFnB,WACJ,EACA,EAA0D,CAA1D,MAAA,KAAA,QAAA,GAA+B,IAK/B,EAAa,GAAU,KAAV,EAAc,GAEpB,EAAQ,SAAC,EAAQ,EAAU,CAGhC,GAAI,GAEA,EAAQ,GAEZ,EAAO,UACL,GAAI,GAAmB,EAAY,SAAC,EAAK,CAEvC,GAAM,GAAa,EAAY,GAK/B,AAAI,IAAS,CAAC,EAAY,EAAa,KAMrC,GAAQ,GACR,EAAc,EAGd,EAAW,KAAK,SAO1B,YAAwB,EAAQ,EAAM,CACpC,MAAO,KAAM,EC/GT,WAAwD,EAAQ,EAAuC,CAC3G,MAAO,GAAqB,SAAC,EAAM,EAAI,CAAK,MAAA,GAAU,EAAQ,EAAE,GAAM,EAAE,IAAQ,EAAE,KAAS,EAAE,KCpBzF,WAAsB,EAAoB,CAC9C,MAAO,GAAQ,SAAC,EAAQ,EAAU,CAGhC,GAAI,CACF,EAAO,UAAU,WAEjB,EAAW,IAAI,MCpBf,YAAsB,EAAa,CACvC,MAAO,IAAS,EACZ,UAAA,CAAM,MAAA,KACN,EAAQ,SAAC,EAAQ,EAAU,CAKzB,GAAI,GAAc,GAClB,EAAO,UACL,GAAI,GACF,EACA,SAAC,EAAK,CAEJ,EAAO,KAAK,GAGZ,EAAQ,EAAO,QAAU,EAAO,SAElC,UAAA,aAGE,OAAoB,GAAA,GAAA,GAAM,EAAA,EAAA,OAAA,CAAA,EAAA,KAAA,EAAA,EAAA,OAAE,CAAvB,GAAM,GAAK,EAAA,MACd,EAAW,KAAK,qGAElB,EAAW,YAGb,OACA,UAAA,CAEE,EAAS,UCtDjB,aAAe,QAAI,GAAA,GAAA,EAAA,EAAA,EAAA,UAAA,OAAA,IAAA,EAAA,GAAA,UAAA,GACvB,GAAM,GAAY,GAAa,GACzB,EAAa,GAAU,EAAM,UACnC,SAAO,GAAe,GAEf,EAAQ,SAAC,EAAQ,EAAU,CAChC,GAAS,GAAY,GAAiB,EAAA,CAAE,GAAM,EAAM,IAAgC,IAAY,UAAU,KCgBxG,aAAmB,QACvB,GAAA,GAAA,EAAA,EAAA,EAAA,UAAA,OAAA,IAAA,EAAA,GAAA,UAAA,GAEA,MAAO,IAAK,MAAA,OAAA,EAAA,GAAA,EAAI,KCHZ,YAAoB,EAAyB,CACjD,MAAO,GAAQ,SAAC,EAAQ,EAAU,CAChC,GAAI,GAAW,GACX,EAAsB,KAC1B,EAAO,UACL,GAAI,GAAmB,EAAY,SAAC,EAAK,CACvC,EAAW,GACX,EAAY,KAGhB,GAAM,GAAO,UAAA,CACX,GAAI,EAAU,CACZ,EAAW,GACX,GAAM,GAAQ,EACd,EAAY,KACZ,EAAW,KAAK,KAGpB,EAAS,UAAU,GAAI,GAAmB,EAAY,EAAM,OC8B1D,YAAwB,EAA6D,EAAQ,CAMjG,MAAO,GAAQ,GAAc,EAAa,EAAW,UAAU,QAAU,EAAG,KCqCxE,YAAmB,EAA4B,CAA5B,AAAA,IAAA,QAAA,GAAA,IACf,GAAA,GAAgH,EAAO,UAAvH,EAAS,IAAA,OAAG,UAAA,CAAM,MAAA,IAAI,IAAY,EAAE,EAA4E,EAAO,aAAnF,EAAY,IAAA,OAAG,GAAI,EAAE,EAAuD,EAAO,gBAA9D,EAAe,IAAA,OAAG,GAAI,EAAE,EAA+B,EAAO,oBAAtC,EAAmB,IAAA,OAAG,GAAI,EAUnH,MAAO,UAAC,EAAa,CACnB,GAAI,GAAuC,KACvC,EAAuC,KACvC,EAAiC,KACjC,EAAW,EACX,EAAe,GACf,EAAa,GAEX,EAAc,UAAA,CAClB,GAAe,MAAf,EAAiB,cACjB,EAAkB,MAId,EAAQ,UAAA,CACZ,IACA,EAAa,EAAU,KACvB,EAAe,EAAa,IAExB,EAAsB,UAAA,CAG1B,GAAM,GAAO,EACb,IACA,GAAI,MAAJ,EAAM,eAGR,MAAO,GAAc,SAAC,EAAQ,GAAU,CACtC,IACI,CAAC,GAAc,CAAC,GAClB,IAOF,GAAM,IAAQ,EAAU,GAAO,KAAP,EAAW,IAOnC,GAAW,IAAI,UAAA,CACb,IAKI,IAAa,GAAK,CAAC,GAAc,CAAC,GACpC,GAAkB,GAAY,EAAqB,MAMvD,GAAK,UAAU,IAEV,GAMH,GAAa,GAAI,IAAe,CAC9B,KAAM,SAAC,GAAK,CAAK,MAAA,IAAK,KAAK,KAC3B,MAAO,SAAC,GAAG,CACT,EAAa,GACb,IACA,EAAkB,GAAY,EAAO,EAAc,IACnD,GAAK,MAAM,KAEb,SAAU,UAAA,CACR,EAAe,GACf,IACA,EAAkB,GAAY,EAAO,GACrC,GAAK,cAGT,GAAK,GAAQ,UAAU,MAExB,IAIP,YACE,EACA,EAA+C,QAC/C,GAAA,GAAA,EAAA,EAAA,EAAA,UAAA,OAAA,IAAA,EAAA,EAAA,GAAA,UAAA,GAEA,MAAI,KAAO,GACT,KAEO,MAGL,IAAO,GACF,KAGF,EAAE,MAAA,OAAA,EAAA,GAAA,EAAI,KACV,KAAK,GAAK,IACV,UAAU,UAAA,CAAM,MAAA,OChIf,YACJ,EACA,EACA,EAAyB,SAErB,EACA,EAAW,GACf,MAAI,IAAsB,MAAO,IAAuB,SACtD,GAAa,GAAA,EAAmB,cAAU,MAAA,IAAA,OAAA,EAAI,SAC9C,EAAa,GAAA,EAAmB,cAAU,MAAA,IAAA,OAAA,EAAI,SAC9C,EAAW,CAAC,CAAC,EAAmB,SAChC,EAAY,EAAmB,WAE/B,EAAa,GAAkB,KAAlB,EAAsB,SAE9B,GAAS,CACd,UAAW,UAAA,CAAM,MAAA,IAAI,IAAc,EAAY,EAAY,IAC3D,aAAc,GACd,gBAAiB,GACjB,oBAAqB,IC1GnB,YAAkB,EAAa,CACnC,MAAO,GAAO,SAAC,EAAG,EAAK,CAAK,MAAA,IAAS,ICUjC,YAAuB,EAAyB,CACpD,MAAO,GAAQ,SAAC,EAAQ,EAAU,CAChC,GAAI,GAAS,GAEP,EAAiB,GAAI,GACzB,EACA,UAAA,CACE,GAAc,MAAd,EAAgB,cAChB,EAAS,IAEX,IAGF,EAAU,GAAU,UAAU,GAE9B,EAAO,UAAU,GAAI,GAAmB,EAAY,SAAC,EAAK,CAAK,MAAA,IAAU,EAAW,KAAK,QCDvF,YAAmB,QAAO,GAAA,GAAA,EAAA,EAAA,EAAA,UAAA,OAAA,IAAA,EAAA,GAAA,UAAA,GAC9B,GAAM,GAAY,GAAa,GAC/B,MAAO,GAAQ,SAAC,EAAQ,EAAU,CAIhC,AAAC,GAAY,GAAO,EAAQ,EAAQ,GAAa,GAAO,EAAQ,IAAS,UAAU,KCiBjF,WACJ,EACA,EAA6G,CAE7G,MAAO,GAAQ,SAAC,EAAQ,EAAU,CAChC,GAAI,GAAyD,KACzD,EAAQ,EAER,EAAa,GAIX,EAAgB,UAAA,CAAM,MAAA,IAAc,CAAC,GAAmB,EAAW,YAEzE,EAAO,UACL,GAAI,GACF,EACA,SAAC,EAAK,CAEJ,GAAe,MAAf,EAAiB,cACjB,GAAI,GAAa,EACX,EAAa,IAEnB,EAAU,EAAQ,EAAO,IAAa,UACnC,EAAkB,GAAI,GACrB,EAIA,SAAC,EAAU,CAAK,MAAA,GAAW,KAAK,EAAiB,EAAe,EAAO,EAAY,EAAY,KAAgB,IAC/G,UAAA,CAIE,EAAkB,KAClB,QAKR,UAAA,CACE,EAAa,GACb,SCnEJ,YACJ,EACA,EAA6G,CAE7G,MAAO,GAAW,GAAkB,EAAU,UAAA,CAAM,MAAA,IAAiB,GAAkB,EAAU,UAAA,CAAM,MAAA,KCjBnG,YAAuB,EAA8B,CACzD,MAAO,GAAQ,SAAC,EAAQ,EAAU,CAChC,EAAU,GAAU,UAAU,GAAI,GAAmB,EAAY,UAAA,CAAM,MAAA,GAAW,YAAY,KAC9F,CAAC,EAAW,QAAU,EAAO,UAAU,KCSrC,YAAuB,EAAiD,EAAiB,CAAjB,MAAA,KAAA,QAAA,GAAA,IACrE,EAAQ,SAAC,EAAQ,EAAU,CAChC,GAAI,GAAQ,EACZ,EAAO,UACL,GAAI,GAAmB,EAAY,SAAC,EAAK,CACvC,GAAM,GAAS,EAAU,EAAO,KAChC,AAAC,IAAU,IAAc,EAAW,KAAK,GACzC,CAAC,GAAU,EAAW,gBC4CxB,WACJ,EACA,EACA,EAA8B,CAK9B,GAAM,GACJ,EAAW,IAAmB,GAAS,EAAW,CAAE,KAAM,EAAsC,MAAK,EAAE,SAAQ,GAAK,EAGtH,MAAO,GACH,EAAQ,SAAC,EAAQ,EAAU,CACzB,EAAO,UACL,GAAI,GACF,EACA,SAAC,EAAK,OACJ,AAAA,GAAA,EAAY,QAAI,MAAA,IAAA,QAAA,EAAA,KAAhB,EAAmB,GACnB,EAAW,KAAK,IAElB,UAAA,OACE,AAAA,GAAA,EAAY,YAAQ,MAAA,IAAA,QAAA,EAAA,KAApB,GACA,EAAW,YAEb,SAAC,EAAG,OACF,AAAA,GAAA,EAAY,SAAK,MAAA,IAAA,QAAA,EAAA,KAAjB,EAAoB,GACpB,EAAW,MAAM,QAQzB,GClIC,GAAM,IAAwC,CACnD,QAAS,GACT,SAAU,IA+CN,YACJ,EACA,EAA6D,IAA7D,GAAA,IAAA,OAAwC,GAAqB,EAA3D,EAAO,EAAA,QAAE,EAAQ,EAAA,SAEnB,MAAO,GAAQ,SAAC,EAAQ,EAAU,CAChC,GAAI,GAAW,GACX,EAAsB,KACtB,EAAiC,KACjC,EAAa,GAEX,EAAgB,UAAA,CACpB,GAAS,MAAT,EAAW,cACX,EAAY,KACR,GACF,KACA,GAAc,EAAW,aAIvB,EAAoB,UAAA,CACxB,EAAY,KACZ,GAAc,EAAW,YAGrB,EAAgB,SAAC,EAAQ,CAC7B,MAAC,GAAY,EAAU,EAAiB,IAAQ,UAAU,GAAI,GAAmB,EAAY,EAAe,KAExG,EAAO,UAAA,CACX,GAAI,EAAU,CAIZ,EAAW,GACX,GAAM,GAAQ,EACd,EAAY,KAEZ,EAAW,KAAK,GAChB,CAAC,GAAc,EAAc,KAIjC,EAAO,UACL,GAAI,GACF,EAMA,SAAC,EAAK,CACJ,EAAW,GACX,EAAY,EACZ,CAAE,IAAa,CAAC,EAAU,SAAY,GAAU,IAAS,EAAc,KAEzE,UAAA,CACE,EAAa,GACb,CAAE,IAAY,GAAY,GAAa,CAAC,EAAU,SAAW,EAAW,gBC7D5E,aAAwB,QAAO,GAAA,GAAA,EAAA,EAAA,EAAA,UAAA,OAAA,IAAA,EAAA,GAAA,UAAA,GACnC,GAAM,GAAU,GAAkB,GAElC,MAAO,GAAQ,SAAC,EAAQ,EAAU,CAehC,OAdM,GAAM,EAAO,OACb,EAAc,GAAI,OAAM,GAI1B,EAAW,EAAO,IAAI,UAAA,CAAM,MAAA,KAG5B,EAAQ,cAMH,EAAC,CACR,EAAU,EAAO,IAAI,UACnB,GAAI,GACF,EACA,SAAC,EAAK,CACJ,EAAY,GAAK,EACb,CAAC,GAAS,CAAC,EAAS,IAEtB,GAAS,GAAK,GAKb,GAAQ,EAAS,MAAM,MAAe,GAAW,QAKtD,MAlBG,EAAI,EAAG,EAAI,EAAK,MAAhB,GAwBT,EAAO,UACL,GAAI,GAAmB,EAAY,SAAC,EAAK,CACvC,GAAI,EAAO,CAET,GAAM,GAAM,EAAA,CAAI,GAAK,EAAK,IAC1B,EAAW,KAAK,EAAU,EAAO,MAAA,OAAA,EAAA,GAAA,EAAI,KAAU,SClFnD,aAAa,QAAO,GAAA,GAAA,EAAA,EAAA,EAAA,UAAA,OAAA,IAAA,EAAA,GAAA,UAAA,GACxB,MAAO,GAAQ,SAAC,EAAQ,EAAU,CAChC,GAAS,MAAA,OAAA,EAAA,CAAC,GAAM,EAAK,KAAS,UAAU,KCGtC,aAAiB,QAAkC,GAAA,GAAA,EAAA,EAAA,EAAA,UAAA,OAAA,IAAA,EAAA,GAAA,UAAA,GACvD,MAAO,IAAG,MAAA,OAAA,EAAA,GAAA,EAAI,KCUT,aAA4C,CACjD,GAAM,GAAY,GAAI,IACtB,SAAU,SAAU,oBACjB,KACC,GAAM,WAEL,UAAU,GAGR,ECFF,YACL,EAAkB,EAAmB,SACtB,CACf,MAAO,GAAK,cAAiB,IAAa,OAqBrC,YACL,EAAkB,EAAmB,SAClC,CACH,GAAM,GAAK,GAAc,EAAU,GACnC,GAAI,MAAO,IAAO,YAChB,KAAM,IAAI,gBACR,8BAA8B,oBAElC,MAAO,GAQF,aAAqD,CAC1D,MAAO,UAAS,wBAAyB,aACrC,SAAS,cACT,OAqBC,WACL,EAAkB,EAAmB,SAChC,CACL,MAAO,OAAM,KAAK,EAAK,iBAAoB,IActC,YACL,EAC0B,CAC1B,MAAO,UAAS,cAAc,GASzB,YACL,KAAoB,EACd,CACN,EAAG,YAAY,GAAG,GCvGb,YACL,EAAiB,EAAQ,GACnB,CACN,AAAI,EACF,EAAG,QAEH,EAAG,OAYA,YACL,EACqB,CACrB,MAAO,GACL,EAAsB,EAAI,SAC1B,EAAsB,EAAI,SAEzB,KACC,EAAI,CAAC,CAAE,UAAW,IAAS,SAC3B,EAAU,IAAO,OCNvB,GAAM,IAAS,GAAI,GAYb,GAAY,GAAM,IAAM,EAC5B,GAAI,gBAAe,GAAW,CAC5B,OAAW,KAAS,GAClB,GAAO,KAAK,OAGf,KACC,EAAU,GAAU,EAAM,KAAK,EAAU,IACtC,KACC,EAAS,IAAM,EAAO,gBAG1B,GAAY,IAcT,YAAwB,EAA8B,CAC3D,MAAO,CACL,MAAQ,EAAG,YACX,OAAQ,EAAG,cAWR,YAA+B,EAA8B,CAClE,MAAO,CACL,MAAQ,EAAG,YACX,OAAQ,EAAG,cAyBR,YACL,EACyB,CACzB,MAAO,IACJ,KACC,EAAI,GAAY,EAAS,QAAQ,IACjC,EAAU,GAAY,GACnB,KACC,EAAO,CAAC,CAAE,YAAa,IAAW,GAClC,EAAS,IAAM,EAAS,UAAU,IAClC,EAAI,IAAM,GAAe,MAG7B,EAAU,GAAe,KC9FxB,YAA0B,EAAgC,CAC/D,MAAO,CACL,EAAG,EAAG,WACN,EAAG,EAAG,WAaH,YACL,EAC2B,CAC3B,MAAO,GACL,EAAU,EAAI,UACd,EAAU,OAAQ,WAEjB,KACC,EAAI,IAAM,GAAiB,IAC3B,EAAU,GAAiB,KAe1B,YACL,EAAiB,EAAY,GACR,CACrB,MAAO,IAAmB,GACvB,KACC,EAAI,CAAC,CAAE,OAAQ,CACb,GAAM,GAAU,GAAe,GACzB,EAAU,GAAsB,GACtC,MAAO,IACL,EAAQ,OAAS,EAAQ,OAAS,IAGtC,KC9EC,YACL,EACM,CACN,GAAI,YAAc,kBAChB,EAAG,aAEH,MAAM,IAAI,OAAM,mBCQpB,GAAM,IAA4C,CAChD,OAAQ,GAAkB,2BAC1B,OAAQ,GAAkB,4BAcrB,YAAmB,EAAuB,CAC/C,MAAO,IAAQ,GAAM,QAchB,YAAmB,EAAc,EAAsB,CAC5D,AAAI,GAAQ,GAAM,UAAY,GAC5B,GAAQ,GAAM,QAYX,YAAqB,EAAmC,CAC7D,GAAM,GAAK,GAAQ,GACnB,MAAO,GAAU,EAAI,UAClB,KACC,EAAI,IAAM,EAAG,SACb,EAAU,EAAG,UClCnB,YAAiC,EAA0B,CACzD,OAAQ,EAAG,aAGJ,YACA,aACA,WACH,MAAO,WAIP,MAAO,GAAG,mBAaT,aAA+C,CACpD,MAAO,GAAyB,OAAQ,WACrC,KACC,EAAO,GAAM,CAAE,GAAG,SAAW,EAAG,UAChC,EAAI,GAAO,EACT,KAAM,GAAU,UAAY,SAAW,SACvC,KAAM,EAAG,IACT,OAAQ,CACN,EAAG,iBACH,EAAG,sBAGP,EAAO,CAAC,CAAE,UAAW,CACnB,GAAI,IAAS,SAAU,CACrB,GAAM,GAAS,KACf,GAAI,MAAO,IAAW,YACpB,MAAO,CAAC,GAAwB,GAEpC,MAAO,KAET,MCnEC,aAA4B,CACjC,MAAO,IAAI,KAAI,SAAS,MAQnB,YAAqB,EAAgB,CAC1C,SAAS,KAAO,EAAI,KAUf,aAAuC,CAC5C,MAAO,IAAI,GCvBN,aAAmC,CACxC,MAAO,UAAS,KAAK,UAAU,GAa1B,YAAyB,EAAoB,CAClD,GAAM,GAAK,GAAc,KACzB,EAAG,KAAO,EACV,EAAG,iBAAiB,QAAS,GAAM,EAAG,mBACtC,EAAG,QAUE,aAAiD,CACtD,MAAO,GAA2B,OAAQ,cACvC,KACC,EAAI,IACJ,EAAU,MACV,EAAO,GAAQ,EAAK,OAAS,GAC7B,MASC,aAAwD,CAC7D,MAAO,MACJ,KACC,EAAU,GAAM,EAAG,GAAW,QAAQ,UChCrC,YAAoB,EAAoC,CAC7D,GAAM,GAAQ,WAAW,GACzB,MAAO,IAA0B,GAC/B,EAAM,YAAY,IAAM,EAAK,EAAM,WAElC,KACC,EAAU,EAAM,UASf,aAAwC,CAC7C,MAAO,GAAU,OAAQ,eACtB,KACC,GAAM,SAgBL,YACL,EAA6B,EACd,CACf,MAAO,GACJ,KACC,EAAU,GAAU,EAAS,IAAY,IC/CxC,YACL,EAAmB,EAAuB,CAAE,YAAa,eACnC,CACtB,MAAO,IAAK,MAAM,GAAG,IAAO,IACzB,KACC,EAAO,GAAO,EAAI,SAAW,MAc5B,YACL,EAAmB,EACJ,CACf,MAAO,IAAQ,EAAK,GACjB,KACC,EAAU,GAAO,EAAI,QACrB,GAAY,IAYX,YACL,EAAmB,EACG,CACtB,GAAM,GAAM,GAAI,WAChB,MAAO,IAAQ,EAAK,GACjB,KACC,EAAU,GAAO,EAAI,QACrB,EAAI,GAAO,EAAI,gBAAgB,EAAK,aACpC,GAAY,ICtCX,aAA6C,CAClD,MAAO,CACL,EAAG,KAAK,IAAI,EAAG,aACf,EAAG,KAAK,IAAI,EAAG,cASZ,YACL,CAAE,IAAG,KACC,CACN,OAAO,SAAS,GAAK,EAAG,GAAK,GAUxB,aAA2D,CAChE,MAAO,GACL,EAAU,OAAQ,SAAU,CAAE,QAAS,KACvC,EAAU,OAAQ,SAAU,CAAE,QAAS,MAEtC,KACC,EAAI,IACJ,EAAU,OCnCT,aAAyC,CAC9C,MAAO,CACL,MAAQ,WACR,OAAQ,aAWL,aAAuD,CAC5D,MAAO,GAAU,OAAQ,SAAU,CAAE,QAAS,KAC3C,KACC,EAAI,IACJ,EAAU,OCST,aAA+C,CACpD,MAAO,GAAc,CACnB,KACA,OAEC,KACC,EAAI,CAAC,CAAC,EAAQ,KAAW,EAAE,SAAQ,UACnC,GAAY,IAYX,YACL,EAAiB,CAAE,YAAW,WACR,CACtB,GAAM,GAAQ,EACX,KACC,EAAwB,SAItB,EAAU,EAAc,CAAC,EAAO,IACnC,KACC,EAAI,IAAuB,EACzB,EAAG,EAAG,WACN,EAAG,EAAG,cAKZ,MAAO,GAAc,CAAC,EAAS,EAAW,IACvC,KACC,EAAI,CAAC,CAAC,CAAE,UAAU,CAAE,SAAQ,QAAQ,CAAE,IAAG,QAAU,EACjD,OAAQ,CACN,EAAG,EAAO,EAAI,EACd,EAAG,EAAO,EAAI,EAAI,GAEpB,WChCD,YACL,EAAgB,CAAE,OACH,CAGf,GAAM,GAAM,EAAwB,EAAQ,WACzC,KACC,EAAI,CAAC,CAAE,UAAW,IAItB,MAAO,GACJ,KACC,GAAS,IAAM,EAAK,CAAE,QAAS,GAAM,SAAU,KAC/C,EAAI,GAAW,EAAO,YAAY,IAClC,GAAY,GACZ,MCRN,GAAM,IAAS,GAAkB,aAC3B,GAAiB,KAAK,MAAM,GAAO,aACzC,GAAO,KAAO,GAAI,KAAI,GAAO,KAAM,MAChC,WACA,QAAQ,MAAO,IAWX,aAAiC,CACtC,MAAO,IAUF,YAAiB,EAAqB,CAC3C,MAAO,IAAO,SAAS,SAAS,GAW3B,WACL,EAAkB,EACV,CACR,MAAO,OAAO,IAAU,YACpB,GAAO,aAAa,GAAK,QAAQ,IAAK,EAAM,YAC5C,GAAO,aAAa,GC7BnB,YACL,EAAS,EAAmB,SACP,CACrB,MAAO,IAAkB,sBAAsB,KAAS,GAanD,YACL,EAAS,EAAmB,SACL,CACvB,MAAO,GAAY,sBAAsB,KAAS,GCxGpD,OAAwB,SCUjB,YACL,EAAiB,EAAQ,EACnB,CACN,EAAG,aAAa,WAAY,EAAM,YAQ7B,YACL,EACM,CACN,EAAG,gBAAgB,YASd,YACL,EAAiB,EACX,CACN,EAAG,aAAa,gBAAiB,QACjC,EAAG,MAAM,IAAM,IAAI,MAQd,YACL,EACM,CACN,GAAM,GAAQ,GAAK,SAAS,EAAG,MAAM,IAAK,IAC1C,EAAG,gBAAgB,iBACnB,EAAG,MAAM,IAAM,GACX,GACF,OAAO,SAAS,EAAG,GC1ChB,YACL,EAAiB,EACX,CACN,EAAG,aAAa,gBAAiB,GAQ5B,YACL,EACM,CACN,EAAG,gBAAgB,iBAWd,YACL,EAAiB,EACX,CACN,EAAG,UAAU,OAAO,uBAAwB,GAQvC,YACL,EACM,CACN,EAAG,UAAU,OAAO,wBCvCf,YACL,EAAiB,EACX,CACN,EAAG,kBAAmB,UAAY,EAW7B,YACL,EAAiB,EACX,CACN,EAAG,aAAa,gBAAiB,GAQ5B,YACL,EACM,CACN,EAAG,gBAAgB,iBC5Bd,YACL,EAAiB,EACX,CACN,EAAG,aAAa,gBAAiB,GAQ5B,YACL,EACM,CACN,EAAG,gBAAgB,iBCdd,YACL,EAAiB,EACX,CACN,EAAG,aAAa,gBAAiB,GAQ5B,YACL,EACM,CACN,EAAG,gBAAgB,iBCZd,YACL,EAAsB,EAChB,CACN,EAAG,YAAc,EAQZ,YACL,EACM,CACN,EAAG,YAAc,EAAY,sBCO/B,YAAqB,EAAiB,EAA8B,CAGlE,GAAI,MAAO,IAAU,UAAY,MAAO,IAAU,SAChD,EAAG,WAAa,EAAM,mBAGb,YAAiB,MAC1B,EAAG,YAAY,WAGN,MAAM,QAAQ,GACvB,OAAW,KAAQ,GACjB,GAAY,EAAI,GAiBf,WACL,EAAa,KAAkC,EAClC,CACb,GAAM,GAAK,SAAS,cAAc,GAGlC,GAAI,EACF,OAAW,KAAQ,QAAO,KAAK,GAC7B,AAAI,MAAO,GAAW,IAAU,UAC9B,EAAG,aAAa,EAAM,EAAW,IAC1B,EAAW,IAClB,EAAG,aAAa,EAAM,IAG5B,OAAW,KAAS,GAClB,GAAY,EAAI,GAGlB,MAAO,GChEF,YAAkB,EAAe,EAAmB,CACzD,GAAI,GAAI,EACR,GAAI,EAAM,OAAS,EAAG,CACpB,KAAO,EAAM,KAAO,KAAO,EAAE,EAAI,GAAG,CACpC,MAAO,GAAG,EAAM,UAAU,EAAG,QAE/B,MAAO,GAmBF,YAAe,EAAuB,CAC3C,GAAI,EAAQ,IAAK,CACf,GAAM,GAAS,CAAG,IAAQ,KAAO,IAAO,IACxC,MAAO,GAAK,IAAQ,MAAY,KAAM,QAAQ,UAE9C,OAAO,GAAM,WClCV,YACL,EAAiB,EACX,CACN,OAAQ,OAGD,GACH,EAAG,YAAc,EAAY,sBAC7B,UAGG,GACH,EAAG,YAAc,EAAY,qBAC7B,cAIA,EAAG,YAAc,EAAY,sBAAuB,GAAM,KASzD,YACL,EACM,CACN,EAAG,YAAc,EAAY,6BAWxB,YACL,EAAiB,EACX,CACN,EAAG,YAAY,GAQV,YACL,EACM,CACN,EAAG,UAAY,GCzDV,YACL,EAAiB,EACX,CACN,EAAG,MAAM,IAAM,GAAG,MAQb,YACL,EACM,CACN,EAAG,MAAM,IAAM,GAwBV,YACL,EAAiB,EACX,CACN,GAAM,GAAa,EAAG,kBACtB,EAAW,MAAM,OAAS,GAAG,EAAQ,EAAI,EAAW,cAQ/C,YACL,EACM,CACN,GAAM,GAAa,EAAG,kBACtB,EAAW,MAAM,OAAS,GCtDrB,YACL,EAAiB,EACX,CACN,EAAG,iBAAkB,YAAY,GAS5B,YACL,EAAiB,EACX,CACN,EAAG,iBAAkB,aAAa,gBAAiB,GCf9C,YACL,EAAiB,EACX,CACN,EAAG,aAAa,gBAAiB,GAQ5B,YACL,EACM,CACN,EAAG,gBAAgB,iBCdd,YACL,EAAiB,EACX,CACN,EAAG,aAAa,gBAAiB,GAQ5B,YACL,EACM,CACN,EAAG,gBAAgB,iBCVd,YAA+B,EAAyB,CAC7D,MACE,GAAC,SAAD,CACE,MAAM,uBACN,MAAO,EAAY,kBACnB,wBAAuB,IAAI,aCJjC,GAAW,IAAX,UAAW,EAAX,CACE,WAAS,GAAT,SACA,WAAS,GAAT,WAFS,aAiBX,YACE,EAA2C,EAC9B,CACb,GAAM,GAAS,EAAO,EAChB,EAAS,EAAO,EAGhB,EAAU,OAAO,KAAK,EAAS,OAClC,OAAO,GAAO,CAAC,EAAS,MAAM,IAC9B,IAAI,GAAO,CAAC,EAAC,MAAD,KAAM,GAAY,MAC9B,OACA,MAAM,EAAG,IAGN,EAAM,EAAS,SACrB,MACE,GAAC,IAAD,CAAG,KAAM,EAAK,MAAM,yBAAyB,SAAU,IACrD,EAAC,UAAD,CACE,MAAO,CAAC,4BAA6B,GAAG,EACpC,CAAC,uCACD,IACF,KAAK,KACP,gBAAe,EAAS,MAAM,QAAQ,IAErC,EAAS,GAAK,EAAC,MAAD,CAAK,MAAM,mCAC1B,EAAC,KAAD,CAAI,MAAM,2BAA2B,EAAS,OAC7C,EAAS,GAAK,EAAS,KAAK,OAAS,GACpC,EAAC,IAAD,CAAG,MAAM,4BACN,GAAS,EAAS,KAAM,MAG5B,EAAS,GAAK,EAAQ,OAAS,GAC9B,EAAC,IAAD,CAAG,MAAM,2BACN,EAAY,8BAA8B,KAAM,KAmBtD,YACL,EACa,CACb,GAAM,GAAY,EAAO,GAAG,MACtB,EAAO,CAAC,GAAG,GAGX,EAAS,EAAK,UAAU,GAAO,CAAC,EAAI,SAAS,SAAS,MACtD,CAAC,GAAW,EAAK,OAAO,EAAQ,GAGlC,EAAQ,EAAK,UAAU,GAAO,EAAI,MAAQ,GAC9C,AAAI,IAAU,IACZ,GAAQ,EAAK,QAGf,GAAM,GAAO,EAAK,MAAM,EAAG,GACrB,EAAO,EAAK,MAAM,GAGlB,EAAW,CACf,GAAqB,EAAS,EAAc,CAAE,EAAC,GAAU,IAAU,IACnE,GAAG,EAAK,IAAI,GAAW,GAAqB,EAAS,IACrD,GAAG,EAAK,OAAS,CACf,EAAC,UAAD,CAAS,MAAM,0BACb,EAAC,UAAD,CAAS,SAAU,IAChB,EAAK,OAAS,GAAK,EAAK,SAAW,EAChC,EAAY,0BACZ,EAAY,2BAA4B,EAAK,SAG/C,EAAK,IAAI,GAAW,GAAqB,EAAS,MAEtD,IAIN,MACE,GAAC,KAAD,CAAI,MAAM,0BACP,GC7GA,YAA2B,EAAiC,CACjE,MACE,GAAC,KAAD,CAAI,MAAM,oBACP,OAAO,QAAQ,GAAO,IAAI,CAAC,CAAC,EAAK,KAChC,EAAC,KAAD,CAAI,MAAO,oCAAoC,KAC5C,MAAO,IAAU,SAAW,GAAM,GAAS,KCN/C,YAAqB,EAAiC,CAC3D,MACE,GAAC,MAAD,CAAK,MAAM,0BACT,EAAC,MAAD,CAAK,MAAM,qBACR,ICUT,YAAuB,EAA+B,CACpD,GAAM,GAAS,KAGT,EAAM,GAAI,KAAI,GAAG,EAAQ,WAAY,EAAO,MAClD,MACE,GAAC,KAAD,CAAI,MAAM,oBACR,EAAC,IAAD,CAAG,KAAM,EAAI,WAAY,MAAM,oBAC5B,EAAQ,QAiBV,YAA+B,EAAkC,CACtE,GAAM,GAAS,KAGT,CAAC,CAAE,GAAW,EAAO,KAAK,MAAM,eAChC,EACJ,EAAS,KAAK,CAAC,CAAE,UAAS,aACxB,IAAY,GAAW,EAAQ,SAAS,KACpC,EAAS,GAGjB,MACE,GAAC,MAAD,CAAK,MAAM,cACT,EAAC,SAAD,CACE,MAAM,sBACN,aAAY,EAAY,yBAEvB,EAAO,OAEV,EAAC,KAAD,CAAI,MAAM,oBACP,EAAS,IAAI,MlBNtB,GAAI,IAAQ,EAiBL,YACL,EAAiB,CAAE,aACI,CACvB,GAAM,GAAa,EAAG,GACnB,KACC,EAAU,GAAS,CACjB,GAAM,GAAY,EAAM,QAAQ,eAChC,MAAI,aAAqB,aAChB,EACL,GAAG,EAAY,QAAS,GACrB,IAAI,GAAS,EAAU,EAAO,YAG9B,KAKb,MAAO,GACL,EAAU,KAAK,EAAwB,SACvC,GAEC,KACC,EAAI,IAAM,CACR,GAAM,GAAU,GAAe,GAE/B,MAAO,CACL,OAAQ,AAFM,GAAsB,GAEpB,MAAQ,EAAQ,SAGpC,EAAwB,WAevB,YACL,EAAiB,EACiB,CAClC,GAAM,GAAY,GAAI,GAatB,GAZA,EACG,KACC,GAAe,GAAW,aAEzB,UAAU,CAAC,CAAC,CAAE,UAAU,KAAW,CAClC,AAAI,GAAU,EACZ,GAAa,GAEb,GAAe,KAInB,WAAY,cAAe,CAC7B,GAAM,GAAS,EAAG,QAAQ,OAC1B,EAAO,GAAK,UAAU,OACtB,EAAO,aACL,GAAsB,EAAO,IAC7B,GAKJ,MAAO,IAAe,EAAI,GACvB,KACC,EAAI,GACJ,EAAS,IAAM,EAAU,YACzB,EAAI,GAAU,GAAE,IAAK,GAAO,KmBzG3B,YACL,EAAwB,CAAE,UAAS,UACd,CACrB,MAAO,GACJ,KACC,EAAI,GAAU,EAAO,QAAQ,wBAC7B,EAAO,GAAW,IAAO,GACzB,GAAU,GACV,GAAM,IAeL,YACL,EAAwB,EACQ,CAChC,GAAM,GAAY,GAAI,GACtB,SAAU,UAAU,IAAM,CACxB,EAAG,aAAa,OAAQ,IACxB,EAAG,mBAIE,GAAa,EAAI,GACrB,KACC,EAAI,GACJ,EAAS,IAAM,EAAU,YACzB,GAAM,CAAE,IAAK,KCnEnB,GAAM,IAAW,GAAc,SAgBxB,YACL,EACkC,CAClC,UAAe,EAAI,IACnB,GAAe,GAAU,GAAY,IAG9B,EAAG,CAAE,IAAK,ICGZ,YACL,EAAiB,CAAE,UAAS,YAAW,UACP,CAChC,MAAO,GAGL,GAAG,EAAY,aAAc,GAC1B,IAAI,GAAS,GAAe,EAAO,CAAE,eAGxC,GAAG,EAAY,qBAAsB,GAClC,IAAI,GAAS,GAAe,IAG/B,GAAG,EAAY,UAAW,GACvB,IAAI,GAAS,GAAa,EAAO,CAAE,UAAS,aCE5C,YACL,EAAkB,CAAE,UACA,CACpB,MAAO,GACJ,KACC,EAAU,GAAW,EACnB,EAAG,IACH,EAAG,IAAO,KAAK,GAAM,OAEpB,KACC,EAAI,GAAS,EAAE,UAAS,aAiB3B,YACL,EAAiB,EACc,CAC/B,GAAM,GAAY,GAAI,GACtB,SACG,KACC,EAAU,IAET,UAAU,CAAC,CAAE,UAAS,UAAW,CAChC,GAAiB,EAAI,GACrB,AAAI,EACF,GAAe,EAAI,QAEnB,GAAiB,KAIlB,GAAY,EAAI,GACpB,KACC,EAAI,GACJ,EAAS,IAAM,EAAU,YACzB,EAAI,GAAU,GAAE,IAAK,GAAO,KCnClC,YAAkB,CAAE,aAAgD,CAClE,GAAI,CAAC,GAAQ,mBACX,MAAO,GAAG,IAGZ,GAAM,GAAa,EAChB,KACC,EAAI,CAAC,CAAE,OAAQ,CAAE,QAAU,GAC3B,GAAY,EAAG,GACf,EAAI,CAAC,CAAC,EAAG,KAAO,CAAC,EAAI,EAAG,IACxB,EAAwB,IAItB,EAAU,EAAc,CAAC,EAAW,IACvC,KACC,EAAO,CAAC,CAAC,CAAE,UAAU,CAAC,CAAE,MAAQ,KAAK,IAAI,EAAI,EAAO,GAAK,KACzD,EAAI,CAAC,CAAC,CAAE,CAAC,MAAgB,GACzB,KAIE,EAAU,GAAY,UAC5B,MAAO,GAAc,CAAC,EAAW,IAC9B,KACC,EAAI,CAAC,CAAC,CAAE,UAAU,KAAY,EAAO,EAAI,KAAO,CAAC,GACjD,IACA,EAAU,GAAU,EAAS,EAAU,EAAG,KAC1C,EAAU,KAgBT,YACL,EAAiB,EACG,CACpB,MAAO,IAAM,IAAM,CACjB,GAAM,GAAS,iBAAiB,GAChC,MAAO,GACL,EAAO,WAAa,UACpB,EAAO,WAAa,oBAGrB,KACC,GAAkB,GAAiB,GAAK,GAAS,IACjD,EAAI,CAAC,CAAC,EAAQ,CAAE,UAAU,KAAa,EACrC,OAAQ,EAAS,EAAS,EAC1B,SACA,YAEF,EAAqB,CAAC,EAAG,IACvB,EAAE,SAAW,EAAE,QACf,EAAE,SAAW,EAAE,QACf,EAAE,SAAW,EAAE,QAEjB,GAAY,IAeX,YACL,EAAiB,CAAE,UAAS,SACG,CAC/B,GAAM,GAAY,GAAI,GACtB,SACG,KACC,EAAwB,UACxB,GAAkB,GAClB,EAAU,IAET,UAAU,CAAC,CAAC,CAAE,UAAU,CAAE,aAAc,CACvC,AAAI,EACF,GAAe,EAAI,EAAS,SAAW,UAEvC,GAAiB,KAIzB,EAAM,UAAU,GAAQ,EAAU,KAAK,IAChC,EACJ,KACC,EAAI,GAAU,GAAE,IAAK,GAAO,KC9G3B,YACL,EAAwB,CAAE,YAAW,WACZ,CACzB,MAAO,IAAgB,EAAI,CAAE,UAAS,cACnC,KACC,EAAI,CAAC,CAAE,OAAQ,CAAE,QAAU,CACzB,GAAM,CAAE,UAAW,GAAe,GAClC,MAAO,CACL,OAAQ,GAAK,KAGjB,EAAwB,WAevB,YACL,EAAiB,EACmB,CACpC,GAAM,GAAY,GAAI,GACtB,EACG,KACC,EAAU,IAET,UAAU,CAAC,CAAE,YAAa,CACzB,AAAI,EACF,GAAoB,EAAI,UAExB,GAAsB,KAI9B,GAAM,GAAW,GAA+B,cAChD,MAAI,OAAO,IAAa,YACf,EAGF,GAAiB,EAAU,GAC/B,KACC,EAAI,GACJ,EAAS,IAAM,EAAU,YACzB,EAAI,GAAU,GAAE,IAAK,GAAO,KClE3B,YACL,EAAiB,CAAE,YAAW,WACZ,CAGlB,GAAM,GAAU,EACb,KACC,EAAI,CAAC,CAAE,YAAa,GACpB,KAIE,EAAU,EACb,KACC,EAAU,IAAM,GAAiB,GAC9B,KACC,EAAI,CAAC,CAAE,YAAc,EACnB,IAAQ,EAAG,UACX,OAAQ,EAAG,UAAY,KAEzB,EAAwB,aAMhC,MAAO,GAAc,CAAC,EAAS,EAAS,IACrC,KACC,EAAI,CAAC,CAAC,EAAQ,CAAE,MAAK,UAAU,CAAE,OAAQ,CAAE,KAAK,KAAM,CAAE,cACtD,GAAS,KAAK,IAAI,EAAG,EACjB,KAAK,IAAI,EAAG,EAAS,EAAI,GACzB,KAAK,IAAI,EAAG,EAAS,EAAI,IAEtB,CACL,OAAQ,EAAM,EACd,SACA,OAAQ,EAAM,GAAU,KAG5B,EAAqB,CAAC,EAAG,IACvB,EAAE,SAAW,EAAE,QACf,EAAE,SAAW,EAAE,QACf,EAAE,SAAW,EAAE,SC9ChB,YACL,EACqB,CACrB,GAAM,GAAO,aAAa,QAAQ,SAAS,cACrC,EAAU,KAAK,MAAM,IAAS,CAClC,MAAO,EAAO,UAAU,GACtB,WAAW,EAAM,aAAa,wBAAyB,UAKrD,EAAW,EAAG,GAAG,GACpB,KACC,GAAS,GAAS,EAAU,EAAO,UAChC,KACC,GAAM,KAGV,EAAU,EAAO,KAAK,IAAI,EAAG,EAAQ,SACrC,EAAI,GAAU,EACZ,MAAO,EAAO,QAAQ,GACtB,MAAO,CACL,OAAS,EAAM,aAAa,wBAC5B,QAAS,EAAM,aAAa,yBAC5B,OAAS,EAAM,aAAa,4BAGhC,GAAY,IAIhB,SAAS,UAAU,GAAW,CAC5B,aAAa,QAAQ,SAAS,aAAc,KAAK,UAAU,MAItD,EAUF,YACL,EACgC,CAChC,GAAM,GAAY,GAAI,GAGtB,EAAU,UAAU,GAAW,CAC7B,OAAW,CAAC,EAAK,IAAU,QAAO,QAAQ,EAAQ,OAChD,AAAI,MAAO,IAAU,UACnB,SAAS,KAAK,aAAa,iBAAiB,IAAO,GAGvD,OAAS,GAAQ,EAAG,EAAQ,EAAO,OAAQ,IAAS,CAClD,GAAM,GAAQ,EAAO,GAAO,mBAC5B,AAAI,YAAiB,cACnB,GAAM,OAAS,EAAQ,QAAU,MAKvC,GAAM,GAAS,EAA8B,QAAS,GACtD,MAAO,IAAa,GACjB,KACC,EAAI,GACJ,EAAS,IAAM,EAAU,YACzB,EAAI,GAAU,GAAE,IAAK,GAAO,KC3HlC,OAAwB,SAyBjB,YACL,CAAE,UACI,CACN,AAAI,WAAY,eACd,GAAI,GAA8B,GAAc,CAC9C,GAAI,YAAY,kDACb,GAAG,UAAW,GAAM,EAAW,KAAK,MAEtC,UAAU,IAAM,EAAO,KAAK,EAAY,sBC+C/C,YAAoB,EAA0B,CAC5C,GAAI,EAAK,OAAS,EAChB,MAAO,GAGT,GAAM,CAAC,EAAM,GAAQ,EAClB,KAAK,CAAC,EAAG,IAAM,EAAE,OAAS,EAAE,QAC5B,IAAI,GAAO,EAAI,QAAQ,SAAU,KAGhC,EAAQ,EACZ,GAAI,IAAS,EACX,EAAQ,EAAK,WAEb,MAAO,EAAK,WAAW,KAAW,EAAK,WAAW,IAChD,IAGJ,GAAM,GAAS,KACf,MAAO,GAAK,IAAI,GACd,EAAI,QAAQ,EAAK,MAAM,EAAG,GAAQ,GAAG,EAAO,UA6BzC,YACL,CAAE,YAAW,YAAW,aAClB,CACN,GAAM,GAAS,KACf,GAAI,SAAS,WAAa,QACxB,OAGF,AAAI,qBAAuB,UACzB,SAAQ,kBAAoB,SAG5B,EAAU,OAAQ,gBACf,UAAU,IAAM,CACf,QAAQ,kBAAoB,UAKlC,GAAM,GAAU,GAA4B,kBAC5C,AAAI,MAAO,IAAY,aACrB,GAAQ,KAAO,EAAQ,MAGzB,GAAM,GAAQ,GAAW,GAAG,EAAO,oBAChC,KACC,EAAI,GAAW,GAAW,EAAY,MAAO,GAC1C,IAAI,GAAQ,EAAK,eAEpB,EAAU,GAAQ,EAAsB,SAAS,KAAM,SACpD,KACC,EAAO,GAAM,CAAC,EAAG,SAAW,CAAC,EAAG,SAChC,EAAU,GAAM,CAGd,GAAI,EAAG,iBAAkB,SAAS,CAChC,GAAM,GAAK,EAAG,OAAO,QAAQ,KAC7B,GAAI,GAAM,CAAC,EAAG,QAAU,EAAK,SAAS,EAAG,MACvC,SAAG,iBACI,EAAG,CACR,IAAK,GAAI,KAAI,EAAG,QAItB,MAAO,OAIb,MAIE,EAAO,EAAyB,OAAQ,YAC3C,KACC,EAAO,GAAM,EAAG,QAAU,MAC1B,EAAI,GAAO,EACT,IAAK,GAAI,KAAI,SAAS,MACtB,OAAQ,EAAG,SAEb,MAIJ,EAAM,EAAO,GACV,KACC,EAAqB,CAAC,EAAG,IAAM,EAAE,IAAI,OAAS,EAAE,IAAI,MACpD,EAAI,CAAC,CAAE,SAAU,IAEhB,UAAU,GAGf,GAAM,GAAY,EACf,KACC,EAAwB,YACxB,EAAU,GAAO,GAAQ,EAAI,MAC1B,KACC,GAAW,IACT,IAAY,GACL,MAIb,MAIJ,EACG,KACC,GAAO,IAEN,UAAU,CAAC,CAAE,SAAU,CACtB,QAAQ,UAAU,GAAI,GAAI,GAAG,OAInC,GAAM,GAAM,GAAI,WAChB,EACG,KACC,EAAU,GAAO,EAAI,QACrB,EAAI,GAAO,EAAI,gBAAgB,EAAK,eAEnC,UAAU,GAGf,EAAM,EAAO,GACV,KACC,GAAO,IAEN,UAAU,CAAC,CAAE,MAAK,YAAa,CAC9B,AAAI,EAAI,MAAQ,CAAC,EACf,GAAgB,EAAI,MAEpB,GAAkB,GAAU,CAAE,EAAG,MAIzC,EACG,KACC,GAAK,IAEJ,UAAU,GAAe,CACxB,OAAW,KAAY,CAGrB,QACA,sBACA,oBACA,yBAGA,+BACA,gCACA,mCACA,qCACA,4BACC,CACD,GAAM,GAAS,GAAW,GACpB,EAAS,GAAW,EAAU,GACpC,AACE,MAAO,IAAW,aAClB,MAAO,IAAW,aAElB,GAAe,EAAQ,MAMjC,EACG,KACC,GAAK,GACL,EAAI,IAAM,GAAoB,cAC9B,EAAU,GAAM,EAAG,GAAG,EAAY,SAAU,KAC5C,GAAU,GAAM,CACd,GAAM,GAAS,GAAc,UAC7B,GAAI,EAAG,IAAK,CACV,OAAW,KAAQ,GAAG,oBACpB,EAAO,aAAa,EAAM,EAAG,aAAa,IAC5C,UAAe,EAAI,GAGZ,GAAI,GAAW,GAAY,CAChC,EAAO,OAAS,IAAM,EAAS,iBAKjC,UAAO,YAAc,EAAG,YACxB,GAAe,EAAI,GACZ,MAIV,YAGL,EACG,KACC,GAAU,GACV,GAAa,KACb,EAAwB,WAEvB,UAAU,CAAC,CAAE,YAAa,CACzB,QAAQ,aAAa,EAAQ,MAInC,EAAM,EAAO,GACV,KACC,GAAY,EAAG,GACf,EAAO,CAAC,CAAC,EAAG,KAAO,EAAE,IAAI,WAAa,EAAE,IAAI,UAC5C,EAAI,CAAC,CAAC,CAAE,KAAW,IAElB,UAAU,CAAC,CAAE,YAAa,CACzB,GAAkB,GAAU,CAAE,EAAG,MCnUzC,OAAuB,SCsChB,YAA0B,EAAuB,CACtD,MAAO,GACJ,MAAM,cACJ,IAAI,CAAC,EAAO,IAAU,EAAQ,EAC3B,EAAM,QAAQ,+BAAgC,MAC9C,GAEH,KAAK,IACP,QAAQ,kCAAmC,IAC3C,OCtCE,GAAW,IAAX,UAAW,EAAX,CACL,qBACA,qBACA,qBACA,yBAJgB,aA2EX,YACL,EAC+B,CAC/B,MAAO,GAAQ,OAAS,EAUnB,YACL,EAC+B,CAC/B,MAAO,GAAQ,OAAS,EAUnB,YACL,EACgC,CAChC,MAAO,GAAQ,OAAS,EC/E1B,YACE,CAAE,SAAQ,OAAM,SACH,CAGb,AAAI,EAAO,KAAK,SAAW,GAAK,EAAO,KAAK,KAAO,MACjD,GAAO,KAAO,CACZ,EAAY,wBAIZ,EAAO,YAAc,aACvB,GAAO,UAAY,EAAY,4BAGjC,GAAM,GAAW,EAAY,0BAC1B,MAAM,WACN,OAAO,SAGV,MAAO,CAAE,SAAQ,OAAM,QAAO,YAmBzB,YACL,EAAa,EACC,CACd,GAAM,GAAS,KACT,EAAS,GAAI,QAAO,GAGpB,EAAM,GAAI,GACV,EAAM,GAAY,EAAQ,CAAE,QAC/B,KACC,EAAI,GAAW,CACb,GAAI,GAAsB,GACxB,OAAW,KAAU,GAAQ,KAC3B,OAAW,KAAY,GACrB,EAAS,SAAW,GAAG,EAAO,QAAQ,EAAS,WAErD,MAAO,KAET,MAIJ,UAAK,GACF,KACC,EAAqC,GAAS,EAC5C,KAAM,GAAkB,MACxB,KAAM,GAAiB,OAGxB,UAAU,EAAI,KAAK,KAAK,IAGtB,CAAE,MAAK,OC9FT,aAAsC,CAC3C,GAAM,GAAS,KACf,GAAuB,GAAI,KAAI,gBAAiB,EAAO,OACpD,UAAU,GAAY,CAErB,AADc,GAAkB,qBAC1B,YAAY,GAAsB,MC8CvC,YACL,EACyB,CACzB,GAAM,GAAK,gCAAU,YAAa,GAG5B,EAAS,GAAkB,GAC3B,EAAS,EACb,EAAU,EAAI,SACd,EAAU,EAAI,SAAS,KAAK,GAAM,KAEjC,KACC,EAAI,IAAM,EAAG,EAAG,QAChB,KAIJ,MAAO,GAAc,CAAC,EAAQ,IAC3B,KACC,EAAI,CAAC,CAAC,EAAO,KAAY,EAAE,QAAO,YAYjC,YACL,EAAsB,CAAE,OAC8B,CACtD,GAAM,GAAY,GAAI,GAGtB,SACG,KACC,EAAwB,SACxB,EAAI,CAAC,CAAE,WAAiC,EACtC,KAAM,GAAkB,MACxB,KAAM,MAGP,UAAU,EAAI,KAAK,KAAK,IAG7B,EACG,KACC,EAAwB,UAEvB,UAAU,CAAC,CAAE,WAAY,CACxB,AAAI,EACF,IAAU,SAAU,GACpB,GAA0B,EAAI,KAE9B,GAA4B,KAKpC,EAAU,EAAG,KAAO,SACjB,KACC,GAAU,EAAU,KAAK,GAAS,MAEjC,UAAU,IAAM,GAAgB,IAG9B,GAAiB,GACrB,KACC,EAAI,GACJ,EAAS,IAAM,EAAU,YACzB,EAAI,GAAU,GAAE,IAAK,GAAO,KCvD3B,YACL,EAAiB,CAAE,OAAqB,CAAE,UACL,CACrC,GAAM,GAAY,GAAI,GAChB,EAAY,GAAsB,EAAG,eACxC,KACC,EAAO,UAIL,EAAO,GAAkB,wBAAyB,GAClD,EAAO,GAAkB,uBAAwB,GAGvD,SACG,KACC,EAAO,IACP,GAAK,IAEJ,UAAU,IAAM,CACf,GAAsB,KAI5B,EACG,KACC,EAAU,GACV,GAAe,IAEd,UAAU,CAAC,CAAC,CAAE,QAAQ,CAAE,YAAa,CACpC,AAAI,EACF,GAAoB,EAAM,EAAK,QAE/B,GAAsB,KAI9B,EACG,KACC,EAAU,GACV,EAAI,IAAM,GAAsB,IAChC,EAAU,CAAC,CAAE,UAAW,EACtB,EAAG,GAAG,EAAK,MAAM,EAAG,KACpB,EAAG,GAAG,EAAK,MAAM,KACd,KACC,GAAY,GACZ,GAAQ,GACR,EAAU,CAAC,CAAC,KAAW,EAAG,GAAG,QAIlC,UAAU,GAAU,CACnB,GAAsB,EAAM,GAAmB,MAY9C,AARS,EACb,KACC,EAAO,IACP,EAAI,CAAC,CAAE,UAAY,EAAE,UACrB,EAAU,CAAE,KAAM,MAKnB,KACC,EAAI,GACJ,EAAS,IAAM,EAAU,YACzB,EAAI,GAAU,GAAE,IAAK,GAAO,KCvF3B,YACL,EAAiB,CAAE,SAAQ,aACI,CAC/B,GAAM,GAAS,KACT,EAAS,GAAkB,EAAO,OAAQ,GAG1C,EAAS,GAAoB,eAAgB,GAC7C,EAAS,GAAoB,gBAAiB,GAG9C,CAAE,MAAK,OAAQ,EACrB,EACG,KACC,EAAO,IACP,GAAO,EAAI,KAAK,EAAO,MACvB,GAAK,IAEJ,UAAU,EAAI,KAAK,KAAK,IAG7B,EACG,KACC,EAAO,CAAC,CAAE,UAAW,IAAS,WAE7B,UAAU,GAAO,CAChB,GAAM,GAAS,KACf,OAAQ,EAAI,UAGL,QACH,AAAI,IAAW,GACb,EAAI,QACN,UAGG,aACA,MACH,GAAU,SAAU,IACpB,GAAgB,EAAO,IACvB,UAGG,cACA,YACH,GAAI,MAAO,IAAW,YACpB,GAAgB,OACX,CACL,GAAM,GAAM,CAAC,EAAO,GAAG,EACrB,wDACA,IAEI,EAAI,KAAK,IAAI,EACjB,MAAK,IAAI,EAAG,EAAI,QAAQ,IAAW,EAAI,OACrC,GAAI,OAAS,UAAY,GAAK,IAE9B,EAAI,QACR,GAAgB,EAAI,IAItB,EAAI,QACJ,cAIA,AAAI,IAAU,MACZ,GAAgB,MAK5B,EACG,KACC,EAAO,CAAC,CAAE,UAAW,IAAS,WAE7B,UAAU,GAAO,CAChB,OAAQ,EAAI,UAGL,QACA,QACA,IACH,GAAgB,GAChB,GAAoB,GACpB,EAAI,QACJ,SAKV,GAAM,GAAS,GAAiB,EAAO,GACvC,MAAO,GACL,EACA,GAAkB,EAAQ,EAAQ,CAAE,YC9EjC,YACL,EAAiB,CAAE,YAAW,SACT,CACrB,GAAM,GACJ,EAAG,cAAe,UAClB,EAAG,cAAe,cAAe,UAGnC,MAAO,GAAc,CAAC,EAAO,IAC1B,KACC,EAAI,CAAC,CAAC,CAAE,SAAQ,UAAU,CAAE,OAAQ,CAAE,SACpC,GAAS,EACL,KAAK,IAAI,EAAQ,KAAK,IAAI,EAAG,EAAI,IACjC,EACG,CACL,SACA,OAAQ,GAAK,EAAS,KAG1B,EAAqB,CAAC,EAAG,IACvB,EAAE,SAAW,EAAE,QACf,EAAE,SAAW,EAAE,SAahB,YACL,EAAiB,EACe,CADf,QAAE,YAAF,EAAc,KAAd,EAAc,CAAZ,YAEnB,GAAM,GAAY,GAAI,GACtB,SACG,KACC,EAAU,GACV,GAAe,IAEd,UAAU,CAGT,KAAK,CAAC,CAAE,UAAU,CAAE,OAAQ,IAAW,CACrC,GAAiB,EAAI,GACrB,GAAiB,EAAI,IAIvB,UAAW,CACT,GAAmB,GACnB,GAAmB,MAKpB,GAAa,EAAI,GACrB,KACC,EAAI,GACJ,EAAS,IAAM,EAAU,YACzB,EAAI,GAAU,GAAE,IAAK,GAAO,KC7G3B,YACL,EAAc,EACW,CACzB,GAAI,MAAO,IAAS,YAAa,CAC/B,GAAM,GAAM,gCAAgC,KAAQ,IACpD,MAAO,IAGL,GAAqB,GAAG,qBACrB,KACC,EAAI,GAAY,EACd,QAAS,EAAQ,YAEnB,GAAe,KAInB,GAAkB,GACf,KACC,EAAI,GAAS,EACX,MAAO,EAAK,iBACZ,MAAO,EAAK,eAEd,GAAe,MAGlB,KACC,EAAI,CAAC,CAAC,EAAS,KAAW,OAAK,GAAY,SAI1C,CACL,GAAM,GAAM,gCAAgC,IAC5C,MAAO,IAAkB,GACtB,KACC,EAAI,GAAS,EACX,aAAc,EAAK,gBAErB,GAAe,MCjDhB,YACL,EAAc,EACW,CACzB,GAAM,GAAM,WAAW,qBAAwB,mBAAmB,KAClE,MAAO,IAA2B,GAC/B,KACC,EAAI,CAAC,CAAE,aAAY,iBAAmB,EACpC,MAAO,EACP,MAAO,KAET,GAAe,KCed,YACL,EACyB,CACzB,GAAM,CAAC,GAAQ,EAAI,MAAM,sBAAwB,GACjD,OAAQ,EAAK,mBAGN,SACH,GAAM,CAAC,CAAE,EAAM,GAAQ,EAAI,MAAM,uCACjC,MAAO,IAA2B,EAAM,OAGrC,SACH,GAAM,CAAC,CAAE,EAAM,GAAQ,EAAI,MAAM,sCACjC,MAAO,IAA2B,EAAM,WAIxC,MAAO,IC7Bb,GAAI,IAgBG,YACL,EACoB,CACpB,MAAO,SAAW,GAAM,IAAM,CAC5B,GAAM,GAAO,eAAe,QAAQ,SAAS,aAC7C,GAAI,EACF,MAAO,GAAgB,KAAK,MAAM,IAC7B,CACL,GAAM,GAAS,GAAiB,EAAG,MACnC,SAAO,UAAU,GAAS,CACxB,GAAI,CACF,eAAe,QAAQ,SAAS,YAAa,KAAK,UAAU,UACrD,EAAP,KAMG,KAGR,KACC,GAAW,IAAM,GACjB,EAAO,GAAS,OAAO,KAAK,GAAO,OAAS,GAC5C,EAAI,GAAU,EAAE,WAChB,GAAY,KAWX,YACL,EAC+B,CAC/B,GAAM,GAAY,GAAI,GACtB,SAAU,UAAU,CAAC,CAAE,WAAY,CACjC,GAAe,EAAI,GAAkB,IACrC,GAAe,EAAI,UAId,GAAY,GAChB,KACC,EAAI,GACJ,EAAS,IAAM,EAAU,YACzB,EAAI,GAAU,GAAE,IAAK,GAAO,KCrC3B,YACL,EAAiB,CAAE,YAAW,WACZ,CAClB,MAAO,IAAiB,SAAS,MAC9B,KACC,EAAU,IAAM,GAAgB,EAAI,CAAE,UAAS,eAC/C,EAAI,CAAC,CAAE,OAAQ,CAAE,QACR,EACL,OAAQ,GAAK,MAGjB,EAAwB,WAevB,YACL,EAAiB,EACY,CAC7B,GAAM,GAAY,GAAI,GACtB,SACG,KACC,EAAU,IAET,UAAU,CAGT,KAAK,CAAE,UAAU,CACf,AAAI,EACF,GAAa,EAAI,UAEjB,GAAe,IAInB,UAAW,CACT,GAAe,MAKhB,GAAU,EAAI,GAClB,KACC,EAAI,GACJ,EAAS,IAAM,EAAU,YACzB,EAAI,GAAU,GAAE,IAAK,GAAO,KC3B3B,YACL,EAA8B,CAAE,YAAW,WACd,CAC7B,GAAM,GAAQ,GAAI,KAClB,OAAW,KAAU,GAAS,CAC5B,GAAM,GAAK,mBAAmB,EAAO,KAAK,UAAU,IAC9C,EAAS,GAAW,QAAQ,OAClC,AAAI,MAAO,IAAW,aACpB,EAAM,IAAI,EAAQ,GAItB,GAAM,GAAU,EACb,KACC,EAAI,GAAU,GAAK,EAAO,SA4E9B,MAAO,AAxEY,IAAiB,SAAS,MAC1C,KACC,EAAwB,UAGxB,EAAI,IAAM,CACR,GAAI,GAA4B,GAChC,MAAO,CAAC,GAAG,GAAO,OAAO,CAAC,EAAO,CAAC,EAAQ,KAAY,CACpD,KAAO,EAAK,QAEN,AADS,EAAM,IAAI,EAAK,EAAK,OAAS,IACjC,SAAW,EAAO,SACzB,EAAK,MAOT,GAAI,GAAS,EAAO,UACpB,KAAO,CAAC,GAAU,EAAO,eACvB,EAAS,EAAO,cAChB,EAAS,EAAO,UAIlB,MAAO,GAAM,IACX,CAAC,GAAG,EAAO,CAAC,GAAG,EAAM,IAAS,UAC9B,IAED,GAAI,QAIT,EAAI,GAAS,GAAI,KAAI,CAAC,GAAG,GAAO,KAAK,CAAC,CAAC,CAAE,GAAI,CAAC,CAAE,KAAO,EAAI,KAG3D,EAAU,GAAS,EAAc,CAAC,EAAS,IACxC,KACC,GAAK,CAAC,CAAC,EAAM,GAAO,CAAC,EAAQ,CAAE,OAAQ,CAAE,SAAW,CAGlD,KAAO,EAAK,QAAQ,CAClB,GAAM,CAAC,CAAE,GAAU,EAAK,GACxB,GAAI,EAAS,EAAS,EACpB,EAAO,CAAC,GAAG,EAAM,EAAK,aAEtB,OAKJ,KAAO,EAAK,QAAQ,CAClB,GAAM,CAAC,CAAE,GAAU,EAAK,EAAK,OAAS,GACtC,GAAI,EAAS,GAAU,EACrB,EAAO,CAAC,EAAK,MAAQ,GAAG,OAExB,OAKJ,MAAO,CAAC,EAAM,IACb,CAAC,GAAI,CAAC,GAAG,KACZ,EAAqB,CAAC,EAAG,IACvB,EAAE,KAAO,EAAE,IACX,EAAE,KAAO,EAAE,OAQlB,KACC,EAAI,CAAC,CAAC,EAAM,KAAW,EACrB,KAAM,EAAK,IAAI,CAAC,CAAC,KAAU,GAC3B,KAAM,EAAK,IAAI,CAAC,CAAC,KAAU,MAI7B,EAAU,CAAE,KAAM,GAAI,KAAM,KAC5B,GAAY,EAAG,GACf,EAAI,CAAC,CAAC,EAAG,KAGH,EAAE,KAAK,OAAS,EAAE,KAAK,OAClB,CACL,KAAM,EAAE,KAAK,MAAM,KAAK,IAAI,EAAG,EAAE,KAAK,OAAS,GAAI,EAAE,KAAK,QAC1D,KAAM,IAKD,CACL,KAAM,EAAE,KAAK,MAAM,IACnB,KAAM,EAAE,KAAK,MAAM,EAAG,EAAE,KAAK,OAAS,EAAE,KAAK,WAiBlD,YACL,EAAiB,EACuB,CACxC,GAAM,GAAY,GAAI,GACtB,EACG,KACC,EAAU,IAET,UAAU,CAAC,CAAE,OAAM,UAAW,CAG7B,OAAW,CAAC,IAAW,GACrB,GAAkB,GAClB,GAAiB,GAInB,OAAW,CAAC,EAAO,CAAC,KAAY,GAAK,UACnC,GAAgB,EAAQ,IAAU,EAAK,OAAS,GAChD,GAAe,EAAQ,UAK/B,GAAM,GAAU,EAA+B,cAAe,GAC9D,MAAO,IAAqB,EAAS,GAClC,KACC,EAAI,GACJ,EAAS,IAAM,EAAU,YACzB,EAAI,GAAU,GAAE,IAAK,GAAO,KCzL3B,YACL,EAAkB,CAAE,YAAW,SACR,CAGvB,GAAM,GAAa,EAChB,KACC,EAAI,CAAC,CAAE,OAAQ,CAAE,QAAU,GAC3B,GAAY,EAAG,GACf,EAAI,CAAC,CAAC,EAAG,KAAO,EAAI,GACpB,KAIE,EAAU,EACb,KACC,EAAwB,WAI5B,MAAO,GAAc,CAAC,EAAS,IAC5B,KACC,EAAI,CAAC,CAAC,CAAE,UAAU,KAAgB,EAChC,OAAQ,CAAE,IAAU,MAEtB,EAAqB,CAAC,EAAG,IACvB,EAAE,SAAW,EAAE,SAehB,YACL,EAAiB,EACiB,CAClC,GAAM,GAAY,GAAI,GACtB,SACG,KACC,EAAU,IAET,UAAU,CAGT,KAAK,CAAE,UAAU,CACf,AAAI,EACF,GAAkB,EAAI,UAEtB,GAAoB,IAIxB,UAAW,CACT,GAAoB,MAKrB,GAAe,EAAI,GACvB,KACC,EAAI,GACJ,EAAS,IAAM,EAAU,YACzB,EAAI,GAAU,GAAE,IAAK,GAAO,KCnG3B,YACL,CAAE,YAAW,WACP,CACN,EACG,KACC,EAAU,IAAM,EAAG,GAAG,EACpB,mCAEF,EAAI,GAAM,CACR,EAAG,cAAgB,GACnB,EAAG,QAAU,KAEf,GAAS,GAAM,EAAU,EAAI,UAC1B,KACC,GAAU,IAAM,EAAG,aAAa,kBAChC,GAAM,KAGV,GAAe,IAEd,UAAU,CAAC,CAAC,EAAI,KAAY,CAC3B,EAAG,gBAAgB,iBACf,GACF,GAAG,QAAU,MC5BvB,aAAkC,CAChC,MAAO,qBAAqB,KAAK,UAAU,WAkBtC,YACL,CAAE,aACI,CACN,EACG,KACC,EAAU,IAAM,EAAG,GAAG,EAAY,yBAClC,EAAI,GAAM,EAAG,gBAAgB,sBAC7B,EAAO,IACP,GAAS,GAAM,EAAU,EAAI,cAC1B,KACC,GAAM,MAIT,UAAU,GAAM,CACf,GAAM,GAAM,EAAG,UAGf,AAAI,IAAQ,EACV,EAAG,UAAY,EAGN,EAAM,EAAG,eAAiB,EAAG,cACtC,GAAG,UAAY,EAAM,KC9BxB,YACL,CAAE,YAAW,WACP,CACN,EAAc,CAAC,GAAY,UAAW,IACnC,KACC,EAAI,CAAC,CAAC,EAAQ,KAAY,GAAU,CAAC,GACrC,EAAU,GAAU,EAAG,GACpB,KACC,GAAM,EAAS,IAAM,KACrB,EAAU,KAGd,GAAe,IAEd,UAAU,CAAC,CAAC,EAAQ,CAAE,OAAQ,CAAE,SAAU,CACzC,AAAI,EACF,GAAc,SAAS,KAAM,GAE7B,GAAgB,SAAS,QhLFnC,SAAS,gBAAgB,UAAU,OAAO,SAC1C,SAAS,gBAAgB,UAAU,IAAI,MAGvC,GAAM,IAAY,KACZ,GAAY,KACZ,GAAY,KACZ,GAAY,KAGZ,GAAY,KACZ,GAAY,GAAW,sBACvB,GAAY,GAAW,uBACvB,GAAY,KAGZ,GAAS,KACT,GAAS,SAAS,MAAM,UAAU,UACpC,gCAAU,QAAS,GACnB,GAAG,GAAO,iCAEV,EAGE,GAAS,GAAI,GACnB,GAAiB,CAAE,YAGnB,AAAI,GAAQ,uBACV,GAAoB,CAAE,aAAW,aAAW,eA9G9C,OAiHA,AAAI,QAAO,UAAP,eAAgB,YAAa,QAC/B,KAGF,EAAM,GAAW,IACd,KACC,GAAM,MAEL,UAAU,IAAM,CACf,GAAU,SAAU,IACpB,GAAU,SAAU,MAI1B,GACG,KACC,EAAO,CAAC,CAAE,UAAW,IAAS,WAE7B,UAAU,GAAO,CAChB,OAAQ,EAAI,UAGL,QACA,IACH,GAAM,GAAO,GAAW,oBACxB,AAAI,MAAO,IAAS,aAClB,EAAK,QACP,UAGG,QACA,IACH,GAAM,GAAO,GAAW,oBACxB,AAAI,MAAO,IAAS,aAClB,EAAK,QACP,SAKV,GAAmB,CAAE,aAAW,aAChC,GAAe,CAAE,eACjB,GAAgB,CAAE,aAAW,aAG7B,GAAM,IAAU,GAAY,GAAoB,UAAW,CAAE,eACvD,GAAQ,GACX,KACC,EAAI,IAAM,GAAoB,SAC9B,EAAU,GAAM,GAAU,EAAI,CAAE,aAAW,cAC3C,GAAY,IAIV,GAAW,EAGf,GAAG,GAAqB,UACrB,IAAI,GAAM,GAAY,EAAI,CAAE,aAG/B,GAAG,GAAqB,UACrB,IAAI,GAAM,GAAY,EAAI,CAAE,aAAW,WAAS,YAGnD,GAAG,GAAqB,WACrB,IAAI,GAAM,GAAa,IAG1B,GAAG,GAAqB,UACrB,IAAI,GAAM,GAAY,EAAI,CAAE,UAAQ,gBAGvC,GAAG,GAAqB,UACrB,IAAI,GAAM,GAAY,KAIrB,GAAW,GAAM,IAAM,EAG3B,GAAG,GAAqB,WACrB,IAAI,GAAM,GAAa,EAAI,CAAE,WAAS,aAAW,aAGpD,GAAG,GAAqB,gBACrB,IAAI,GAAM,GAAiB,EAAI,CAAE,aAAW,cAG/C,GAAG,GAAqB,WACrB,IAAI,GAAM,EAAG,aAAa,kBAAoB,aAC3C,GAAG,GAAS,IAAM,GAAa,EAAI,CAAE,aAAW,WAAS,YACzD,GAAG,GAAS,IAAM,GAAa,EAAI,CAAE,aAAW,WAAS,aAI/D,GAAG,GAAqB,QACrB,IAAI,GAAM,GAAU,EAAI,CAAE,aAAW,cAGxC,GAAG,GAAqB,OACrB,IAAI,GAAM,GAAqB,EAAI,CAAE,aAAW,cAGnD,GAAG,GAAqB,OACrB,IAAI,GAAM,GAAe,EAAI,CAAE,aAAW,cAIzC,GAAa,GAChB,KACC,EAAU,IAAM,IAChB,GAAU,IACV,GAAY,IAIhB,GAAW,YAMX,OAAO,UAAa,GACpB,OAAO,UAAa,GACpB,OAAO,QAAa,GACpB,OAAO,UAAa,GACpB,OAAO,UAAa,GACpB,OAAO,QAAa,GACpB,OAAO,QAAa,GACpB,OAAO,OAAa,GACpB,OAAO,OAAa,GACpB,OAAO,WAAa",
+ "names": []
+}
diff --git a/freetype/docs/reference/assets/javascripts/lunr/min/lunr.ar.min.js b/freetype/docs/reference/assets/javascripts/lunr/min/lunr.ar.min.js
new file mode 100644
index 00000000..248ddc5d
--- /dev/null
+++ b/freetype/docs/reference/assets/javascripts/lunr/min/lunr.ar.min.js
@@ -0,0 +1 @@
+!function(e,r){"function"==typeof define&&define.amd?define(r):"object"==typeof exports?module.exports=r():r()(e.lunr)}(this,function(){return function(e){if(void 0===e)throw new Error("Lunr is not present. Please include / require Lunr before this script.");if(void 0===e.stemmerSupport)throw new Error("Lunr stemmer support is not present. Please include / require Lunr stemmer support before this script.");e.ar=function(){this.pipeline.reset(),this.pipeline.add(e.ar.trimmer,e.ar.stopWordFilter,e.ar.stemmer),this.searchPipeline&&(this.searchPipeline.reset(),this.searchPipeline.add(e.ar.stemmer))},e.ar.wordCharacters="ء-ٛٱـ",e.ar.trimmer=e.trimmerSupport.generateTrimmer(e.ar.wordCharacters),e.Pipeline.registerFunction(e.ar.trimmer,"trimmer-ar"),e.ar.stemmer=function(){var e=this;return e.result=!1,e.preRemoved=!1,e.sufRemoved=!1,e.pre={pre1:"ف ك ب و س ل ن ا ي ت",pre2:"ال لل",pre3:"بال وال فال تال كال ولل",pre4:"فبال كبال وبال وكال"},e.suf={suf1:"ه ك ت ن ا ي",suf2:"نك نه ها وك يا اه ون ين تن تم نا وا ان كم كن ني نن ما هم هن تك ته ات يه",suf3:"تين كهم نيه نهم ونه وها يهم ونا ونك وني وهم تكم تنا تها تني تهم كما كها ناه نكم هنا تان يها",suf4:"كموه ناها ونني ونهم تكما تموه تكاه كماه ناكم ناهم نيها وننا"},e.patterns=JSON.parse('{"pt43":[{"pt":[{"c":"ا","l":1}]},{"pt":[{"c":"ا,ت,ن,ي","l":0}],"mPt":[{"c":"ف","l":0,"m":1},{"c":"ع","l":1,"m":2},{"c":"ل","l":2,"m":3}]},{"pt":[{"c":"و","l":2}],"mPt":[{"c":"ف","l":0,"m":0},{"c":"ع","l":1,"m":1},{"c":"ل","l":2,"m":3}]},{"pt":[{"c":"ا","l":2}]},{"pt":[{"c":"ي","l":2}],"mPt":[{"c":"ف","l":0,"m":0},{"c":"ع","l":1,"m":1},{"c":"ا","l":2},{"c":"ل","l":3,"m":3}]},{"pt":[{"c":"م","l":0}]}],"pt53":[{"pt":[{"c":"ت","l":0},{"c":"ا","l":2}]},{"pt":[{"c":"ا,ن,ت,ي","l":0},{"c":"ت","l":2}],"mPt":[{"c":"ا","l":0},{"c":"ف","l":1,"m":1},{"c":"ت","l":2},{"c":"ع","l":3,"m":3},{"c":"ا","l":4},{"c":"ل","l":5,"m":4}]},{"pt":[{"c":"ا","l":0},{"c":"ا","l":2}],"mPt":[{"c":"ا","l":0},{"c":"ف","l":1,"m":1},{"c":"ع","l":2,"m":3},{"c":"ل","l":3,"m":4},{"c":"ا","l":4},{"c":"ل","l":5,"m":4}]},{"pt":[{"c":"ا","l":0},{"c":"ا","l":3}],"mPt":[{"c":"ف","l":0,"m":1},{"c":"ع","l":1,"m":2},{"c":"ل","l":2,"m":4}]},{"pt":[{"c":"ا","l":3},{"c":"ن","l":4}]},{"pt":[{"c":"ت","l":0},{"c":"ي","l":3}]},{"pt":[{"c":"م","l":0},{"c":"و","l":3}]},{"pt":[{"c":"ا","l":1},{"c":"و","l":3}]},{"pt":[{"c":"و","l":1},{"c":"ا","l":2}]},{"pt":[{"c":"م","l":0},{"c":"ا","l":3}]},{"pt":[{"c":"م","l":0},{"c":"ي","l":3}]},{"pt":[{"c":"ا","l":2},{"c":"ن","l":3}]},{"pt":[{"c":"م","l":0},{"c":"ن","l":1}],"mPt":[{"c":"ا","l":0},{"c":"ن","l":1},{"c":"ف","l":2,"m":2},{"c":"ع","l":3,"m":3},{"c":"ا","l":4},{"c":"ل","l":5,"m":4}]},{"pt":[{"c":"م","l":0},{"c":"ت","l":2}],"mPt":[{"c":"ا","l":0},{"c":"ف","l":1,"m":1},{"c":"ت","l":2},{"c":"ع","l":3,"m":3},{"c":"ا","l":4},{"c":"ل","l":5,"m":4}]},{"pt":[{"c":"م","l":0},{"c":"ا","l":2}]},{"pt":[{"c":"م","l":1},{"c":"ا","l":3}]},{"pt":[{"c":"ي,ت,ا,ن","l":0},{"c":"ت","l":1}],"mPt":[{"c":"ف","l":0,"m":2},{"c":"ع","l":1,"m":3},{"c":"ا","l":2},{"c":"ل","l":3,"m":4}]},{"pt":[{"c":"ت,ي,ا,ن","l":0},{"c":"ت","l":2}],"mPt":[{"c":"ا","l":0},{"c":"ف","l":1,"m":1},{"c":"ت","l":2},{"c":"ع","l":3,"m":3},{"c":"ا","l":4},{"c":"ل","l":5,"m":4}]},{"pt":[{"c":"ا","l":2},{"c":"ي","l":3}]},{"pt":[{"c":"ا,ي,ت,ن","l":0},{"c":"ن","l":1}],"mPt":[{"c":"ا","l":0},{"c":"ن","l":1},{"c":"ف","l":2,"m":2},{"c":"ع","l":3,"m":3},{"c":"ا","l":4},{"c":"ل","l":5,"m":4}]},{"pt":[{"c":"ا","l":3},{"c":"ء","l":4}]}],"pt63":[{"pt":[{"c":"ا","l":0},{"c":"ت","l":2},{"c":"ا","l":4}]},{"pt":[{"c":"ا,ت,ن,ي","l":0},{"c":"س","l":1},{"c":"ت","l":2}],"mPt":[{"c":"ا","l":0},{"c":"س","l":1},{"c":"ت","l":2},{"c":"ف","l":3,"m":3},{"c":"ع","l":4,"m":4},{"c":"ا","l":5},{"c":"ل","l":6,"m":5}]},{"pt":[{"c":"ا,ن,ت,ي","l":0},{"c":"و","l":3}]},{"pt":[{"c":"م","l":0},{"c":"س","l":1},{"c":"ت","l":2}],"mPt":[{"c":"ا","l":0},{"c":"س","l":1},{"c":"ت","l":2},{"c":"ف","l":3,"m":3},{"c":"ع","l":4,"m":4},{"c":"ا","l":5},{"c":"ل","l":6,"m":5}]},{"pt":[{"c":"ي","l":1},{"c":"ي","l":3},{"c":"ا","l":4},{"c":"ء","l":5}]},{"pt":[{"c":"ا","l":0},{"c":"ن","l":1},{"c":"ا","l":4}]}],"pt54":[{"pt":[{"c":"ت","l":0}]},{"pt":[{"c":"ا,ي,ت,ن","l":0}],"mPt":[{"c":"ا","l":0},{"c":"ف","l":1,"m":1},{"c":"ع","l":2,"m":2},{"c":"ل","l":3,"m":3},{"c":"ر","l":4,"m":4},{"c":"ا","l":5},{"c":"ر","l":6,"m":4}]},{"pt":[{"c":"م","l":0}],"mPt":[{"c":"ا","l":0},{"c":"ف","l":1,"m":1},{"c":"ع","l":2,"m":2},{"c":"ل","l":3,"m":3},{"c":"ر","l":4,"m":4},{"c":"ا","l":5},{"c":"ر","l":6,"m":4}]},{"pt":[{"c":"ا","l":2}]},{"pt":[{"c":"ا","l":0},{"c":"ن","l":2}]}],"pt64":[{"pt":[{"c":"ا","l":0},{"c":"ا","l":4}]},{"pt":[{"c":"م","l":0},{"c":"ت","l":1}]}],"pt73":[{"pt":[{"c":"ا","l":0},{"c":"س","l":1},{"c":"ت","l":2},{"c":"ا","l":5}]}],"pt75":[{"pt":[{"c":"ا","l":0},{"c":"ا","l":5}]}]}'),e.execArray=["cleanWord","removeDiacritics","cleanAlef","removeStopWords","normalizeHamzaAndAlef","removeStartWaw","removePre432","removeEndTaa","wordCheck"],e.stem=function(){var r=0;for(e.result=!1,e.preRemoved=!1,e.sufRemoved=!1;r<e.execArray.length&&1!=e.result;)e.result=e[e.execArray[r]](),r++},e.setCurrent=function(r){e.word=r},e.getCurrent=function(){return e.word},e.cleanWord=function(){var r=new RegExp("[^ء-ٛٱـ]");return e.word=e.word.replace("ـ",""),!!r.test("")},e.removeDiacritics=function(){new RegExp("[ً-ٛ]");return e.word=e.word.replace(/[\u064b-\u065b]/gi,""),!1},e.cleanAlef=function(){var r=new RegExp("[آأإٱى]");return e.word=e.word.replace(r,"ا"),!1},e.removeStopWords=function(){if("، اض امين اه اها اي ا اب اجل اجمع اخ اخذ اصبح اضحى اقبل اقل اكثر الا ام اما امامك امامك امسى اما ان انا انت انتم انتما انتن انت انشا انى او اوشك اولئك اولئكم اولاء اولالك اوه اي ايا اين اينما اي ان اي اف اذ اذا اذا اذما اذن الى اليكم اليكما اليكن اليك اليك الا اما ان انما اي اياك اياكم اياكما اياكن ايانا اياه اياها اياهم اياهما اياهن اياي ايه ان ا ابتدا اثر اجل احد اخرى اخلولق اذا اربعة ارتد استحال اطار اعادة اعلنت اف اكثر اكد الالاء الالى الا الاخيرة الان الاول الاولى التى التي الثاني الثانية الذاتي الذى الذي الذين السابق الف اللائي اللاتي اللتان اللتيا اللتين اللذان اللذين اللواتي الماضي المقبل الوقت الى اليوم اما امام امس ان انبرى انقلب انه انها او اول اي ايار ايام ايضا ب بات باسم بان بخ برس بسبب بس بشكل بضع بطان بعد بعض بك بكم بكما بكن بل بلى بما بماذا بمن بن بنا به بها بي بيد بين بس بله بئس تان تانك تبدل تجاه تحول تلقاء تلك تلكم تلكما تم تينك تين ته تي ثلاثة ثم ثم ثمة ثم جعل جلل جميع جير حار حاشا حاليا حاي حتى حرى حسب حم حوالى حول حيث حيثما حين حي حبذا حتى حذار خلا خلال دون دونك ذا ذات ذاك ذانك ذان ذلك ذلكم ذلكما ذلكن ذو ذوا ذواتا ذواتي ذيت ذينك ذين ذه ذي راح رجع رويدك ريث رب زيارة سبحان سرعان سنة سنوات سوف سوى ساء ساءما شبه شخصا شرع شتان صار صباح صفر صه صه ضد ضمن طاق طالما طفق طق ظل عاد عام عاما عامة عدا عدة عدد عدم عسى عشر عشرة علق على عليك عليه عليها عل عن عند عندما عوض عين عدس عما غدا غير ف فان فلان فو فى في فيم فيما فيه فيها قال قام قبل قد قط قلما قوة كانما كاين كاي كاين كاد كان كانت كذا كذلك كرب كل كلا كلاهما كلتا كلم كليكما كليهما كلما كلا كم كما كي كيت كيف كيفما كان كخ لئن لا لات لاسيما لدن لدى لعمر لقاء لك لكم لكما لكن لكنما لكي لكيلا للامم لم لما لما لن لنا له لها لو لوكالة لولا لوما لي لست لست لستم لستما لستن لست لسن لعل لكن ليت ليس ليسا ليستا ليست ليسوا لسنا ما ماانفك مابرح مادام ماذا مازال مافتئ مايو متى مثل مذ مساء مع معاذ مقابل مكانكم مكانكما مكانكن مكانك مليار مليون مما ممن من منذ منها مه مهما من من نحن نحو نعم نفس نفسه نهاية نخ نعما نعم ها هاؤم هاك هاهنا هب هذا هذه هكذا هل هلم هلا هم هما هن هنا هناك هنالك هو هي هيا هيت هيا هؤلاء هاتان هاتين هاته هاتي هج هذا هذان هذين هذه هذي هيهات و وا واحد واضاف واضافت واكد وان واها واوضح وراءك وفي وقال وقالت وقد وقف وكان وكانت ولا ولم ومن وهو وهي ويكان وي وشكان يكون يمكن يوم ايان".split(" ").indexOf(e.word)>=0)return!0},e.normalizeHamzaAndAlef=function(){return e.word=e.word.replace("ؤ","ء"),e.word=e.word.replace("ئ","ء"),e.word=e.word.replace(/([\u0627])\1+/gi,"ا"),!1},e.removeEndTaa=function(){return!(e.word.length>2)||(e.word=e.word.replace(/[\u0627]$/,""),e.word=e.word.replace("ة",""),!1)},e.removeStartWaw=function(){return e.word.length>3&&"و"==e.word[0]&&"و"==e.word[1]&&(e.word=e.word.slice(1)),!1},e.removePre432=function(){var r=e.word;if(e.word.length>=7){var t=new RegExp("^("+e.pre.pre4.split(" ").join("|")+")");e.word=e.word.replace(t,"")}if(e.word==r&&e.word.length>=6){var c=new RegExp("^("+e.pre.pre3.split(" ").join("|")+")");e.word=e.word.replace(c,"")}if(e.word==r&&e.word.length>=5){var l=new RegExp("^("+e.pre.pre2.split(" ").join("|")+")");e.word=e.word.replace(l,"")}return r!=e.word&&(e.preRemoved=!0),!1},e.patternCheck=function(r){for(var t=0;t<r.length;t++){for(var c=!0,l=0;l<r[t].pt.length;l++){var o=r[t].pt[l].c.split(","),n=!1;if(o.forEach(function(c){e.word[r[t].pt[l].l]==c&&(n=!0)}),!n){c=!1;break}}if(1==c){if(r[t].mPt){for(var p=[],m=0;m<r[t].mPt.length;m++)null!=r[t].mPt[m].m?p[r[t].mPt[m].l]=e.word[r[t].mPt[m].m]:p[r[t].mPt[m].l]=r[t].mPt[m].c;e.word=p.join("")}e.result=!0;break}}},e.removePre1=function(){var r=e.word;if(0==e.preRemoved&&e.word.length>3){var t=new RegExp("^("+e.pre.pre1.split(" ").join("|")+")");e.word=e.word.replace(t,"")}return r!=e.word&&(e.preRemoved=!0),!1},e.removeSuf1=function(){var r=e.word;if(0==e.sufRemoved&&e.word.length>3){var t=new RegExp("("+e.suf.suf1.split(" ").join("|")+")$");e.word=e.word.replace(t,"")}return r!=e.word&&(e.sufRemoved=!0),!1},e.removeSuf432=function(){var r=e.word;if(e.word.length>=6){var t=new RegExp("("+e.suf.suf4.split(" ").join("|")+")$");e.word=e.word.replace(t,"")}if(e.word==r&&e.word.length>=5){var c=new RegExp("("+e.suf.suf3.split(" ").join("|")+")$");e.word=e.word.replace(c,"")}if(e.word==r&&e.word.length>=4){var l=new RegExp("("+e.suf.suf2.split(" ").join("|")+")$");e.word=e.word.replace(l,"")}return r!=e.word&&(e.sufRemoved=!0),!1},e.wordCheck=function(){for(var r=(e.word,[e.removeSuf432,e.removeSuf1,e.removePre1]),t=0,c=!1;e.word.length>=7&&!e.result&&t<r.length;)7!=e.word.length||c?(r[t](),t++,c=!1):(e.checkPattern73(),c=!0);var l=[e.checkPattern63,e.removeSuf432,e.removeSuf1,e.removePre1,e.checkPattern64];for(t=0;6==e.word.length&&!e.result&&t<l.length;)l[t](),t++;var o=[e.checkPattern53,e.removeSuf432,e.removeSuf1,e.removePre1,e.checkPattern54];for(t=0;5==e.word.length&&!e.result&&t<o.length;)o[t](),t++;var n=[e.checkPattern43,e.removeSuf1,e.removePre1,e.removeSuf432];for(t=0;4==e.word.length&&!e.result&&t<n.length;)n[t](),t++;return!0},e.checkPattern43=function(){e.patternCheck(e.patterns.pt43)},e.checkPattern53=function(){e.patternCheck(e.patterns.pt53)},e.checkPattern54=function(){e.patternCheck(e.patterns.pt54)},e.checkPattern63=function(){e.patternCheck(e.patterns.pt63)},e.checkPattern64=function(){e.patternCheck(e.patterns.pt64)},e.checkPattern73=function(){e.patternCheck(e.patterns.pt73)},function(r){return"function"==typeof r.update?r.update(function(r){return e.setCurrent(r),e.stem(),e.getCurrent()}):(e.setCurrent(r),e.stem(),e.getCurrent())}}(),e.Pipeline.registerFunction(e.ar.stemmer,"stemmer-ar"),e.ar.stopWordFilter=e.generateStopWordFilter("، اض امين اه اها اي ا اب اجل اجمع اخ اخذ اصبح اضحى اقبل اقل اكثر الا ام اما امامك امامك امسى اما ان انا انت انتم انتما انتن انت انشا انى او اوشك اولئك اولئكم اولاء اولالك اوه اي ايا اين اينما اي ان اي اف اذ اذا اذا اذما اذن الى اليكم اليكما اليكن اليك اليك الا اما ان انما اي اياك اياكم اياكما اياكن ايانا اياه اياها اياهم اياهما اياهن اياي ايه ان ا ابتدا اثر اجل احد اخرى اخلولق اذا اربعة ارتد استحال اطار اعادة اعلنت اف اكثر اكد الالاء الالى الا الاخيرة الان الاول الاولى التى التي الثاني الثانية الذاتي الذى الذي الذين السابق الف اللائي اللاتي اللتان اللتيا اللتين اللذان اللذين اللواتي الماضي المقبل الوقت الى اليوم اما امام امس ان انبرى انقلب انه انها او اول اي ايار ايام ايضا ب بات باسم بان بخ برس بسبب بس بشكل بضع بطان بعد بعض بك بكم بكما بكن بل بلى بما بماذا بمن بن بنا به بها بي بيد بين بس بله بئس تان تانك تبدل تجاه تحول تلقاء تلك تلكم تلكما تم تينك تين ته تي ثلاثة ثم ثم ثمة ثم جعل جلل جميع جير حار حاشا حاليا حاي حتى حرى حسب حم حوالى حول حيث حيثما حين حي حبذا حتى حذار خلا خلال دون دونك ذا ذات ذاك ذانك ذان ذلك ذلكم ذلكما ذلكن ذو ذوا ذواتا ذواتي ذيت ذينك ذين ذه ذي راح رجع رويدك ريث رب زيارة سبحان سرعان سنة سنوات سوف سوى ساء ساءما شبه شخصا شرع شتان صار صباح صفر صه صه ضد ضمن طاق طالما طفق طق ظل عاد عام عاما عامة عدا عدة عدد عدم عسى عشر عشرة علق على عليك عليه عليها عل عن عند عندما عوض عين عدس عما غدا غير ف فان فلان فو فى في فيم فيما فيه فيها قال قام قبل قد قط قلما قوة كانما كاين كاي كاين كاد كان كانت كذا كذلك كرب كل كلا كلاهما كلتا كلم كليكما كليهما كلما كلا كم كما كي كيت كيف كيفما كان كخ لئن لا لات لاسيما لدن لدى لعمر لقاء لك لكم لكما لكن لكنما لكي لكيلا للامم لم لما لما لن لنا له لها لو لوكالة لولا لوما لي لست لست لستم لستما لستن لست لسن لعل لكن ليت ليس ليسا ليستا ليست ليسوا لسنا ما ماانفك مابرح مادام ماذا مازال مافتئ مايو متى مثل مذ مساء مع معاذ مقابل مكانكم مكانكما مكانكن مكانك مليار مليون مما ممن من منذ منها مه مهما من من نحن نحو نعم نفس نفسه نهاية نخ نعما نعم ها هاؤم هاك هاهنا هب هذا هذه هكذا هل هلم هلا هم هما هن هنا هناك هنالك هو هي هيا هيت هيا هؤلاء هاتان هاتين هاته هاتي هج هذا هذان هذين هذه هذي هيهات وا واحد واضاف واضافت واكد وان واها واوضح وراءك وفي وقال وقالت وقد وقف وكان وكانت ولا ولم ومن وهو وهي ويكان وي وشكان يكون يمكن يوم ايان".split(" ")),e.Pipeline.registerFunction(e.ar.stopWordFilter,"stopWordFilter-ar")}}); \ No newline at end of file
diff --git a/freetype/docs/reference/assets/javascripts/lunr/min/lunr.da.min.js b/freetype/docs/reference/assets/javascripts/lunr/min/lunr.da.min.js
new file mode 100644
index 00000000..b9d85098
--- /dev/null
+++ b/freetype/docs/reference/assets/javascripts/lunr/min/lunr.da.min.js
@@ -0,0 +1,18 @@
+/*!
+ * Lunr languages, `Danish` language
+ * https://github.com/MihaiValentin/lunr-languages
+ *
+ * Copyright 2014, Mihai Valentin
+ * http://www.mozilla.org/MPL/
+ */
+/*!
+ * based on
+ * Snowball JavaScript Library v0.3
+ * http://code.google.com/p/urim/
+ * http://snowball.tartarus.org/
+ *
+ * Copyright 2010, Oleg Mazko
+ * http://www.mozilla.org/MPL/
+ */
+
+!function(e,r){"function"==typeof define&&define.amd?define(r):"object"==typeof exports?module.exports=r():r()(e.lunr)}(this,function(){return function(e){if(void 0===e)throw new Error("Lunr is not present. Please include / require Lunr before this script.");if(void 0===e.stemmerSupport)throw new Error("Lunr stemmer support is not present. Please include / require Lunr stemmer support before this script.");e.da=function(){this.pipeline.reset(),this.pipeline.add(e.da.trimmer,e.da.stopWordFilter,e.da.stemmer),this.searchPipeline&&(this.searchPipeline.reset(),this.searchPipeline.add(e.da.stemmer))},e.da.wordCharacters="A-Za-zªºÀ-ÖØ-öø-ʸˠ-ˤᴀ-ᴥᴬ-ᵜᵢ-ᵥᵫ-ᵷᵹ-ᶾḀ-ỿⁱⁿₐ-ₜKÅℲⅎⅠ-ↈⱠ-ⱿꜢ-ꞇꞋ-ꞭꞰ-ꞷꟷ-ꟿꬰ-ꭚꭜ-ꭤff-stA-Za-z",e.da.trimmer=e.trimmerSupport.generateTrimmer(e.da.wordCharacters),e.Pipeline.registerFunction(e.da.trimmer,"trimmer-da"),e.da.stemmer=function(){var r=e.stemmerSupport.Among,i=e.stemmerSupport.SnowballProgram,n=new function(){function e(){var e,r=f.cursor+3;if(d=f.limit,0<=r&&r<=f.limit){for(a=r;;){if(e=f.cursor,f.in_grouping(w,97,248)){f.cursor=e;break}if(f.cursor=e,e>=f.limit)return;f.cursor++}for(;!f.out_grouping(w,97,248);){if(f.cursor>=f.limit)return;f.cursor++}d=f.cursor,d<a&&(d=a)}}function n(){var e,r;if(f.cursor>=d&&(r=f.limit_backward,f.limit_backward=d,f.ket=f.cursor,e=f.find_among_b(c,32),f.limit_backward=r,e))switch(f.bra=f.cursor,e){case 1:f.slice_del();break;case 2:f.in_grouping_b(p,97,229)&&f.slice_del()}}function t(){var e,r=f.limit-f.cursor;f.cursor>=d&&(e=f.limit_backward,f.limit_backward=d,f.ket=f.cursor,f.find_among_b(l,4)?(f.bra=f.cursor,f.limit_backward=e,f.cursor=f.limit-r,f.cursor>f.limit_backward&&(f.cursor--,f.bra=f.cursor,f.slice_del())):f.limit_backward=e)}function s(){var e,r,i,n=f.limit-f.cursor;if(f.ket=f.cursor,f.eq_s_b(2,"st")&&(f.bra=f.cursor,f.eq_s_b(2,"ig")&&f.slice_del()),f.cursor=f.limit-n,f.cursor>=d&&(r=f.limit_backward,f.limit_backward=d,f.ket=f.cursor,e=f.find_among_b(m,5),f.limit_backward=r,e))switch(f.bra=f.cursor,e){case 1:f.slice_del(),i=f.limit-f.cursor,t(),f.cursor=f.limit-i;break;case 2:f.slice_from("løs")}}function o(){var e;f.cursor>=d&&(e=f.limit_backward,f.limit_backward=d,f.ket=f.cursor,f.out_grouping_b(w,97,248)?(f.bra=f.cursor,u=f.slice_to(u),f.limit_backward=e,f.eq_v_b(u)&&f.slice_del()):f.limit_backward=e)}var a,d,u,c=[new r("hed",-1,1),new r("ethed",0,1),new r("ered",-1,1),new r("e",-1,1),new r("erede",3,1),new r("ende",3,1),new r("erende",5,1),new r("ene",3,1),new r("erne",3,1),new r("ere",3,1),new r("en",-1,1),new r("heden",10,1),new r("eren",10,1),new r("er",-1,1),new r("heder",13,1),new r("erer",13,1),new r("s",-1,2),new r("heds",16,1),new r("es",16,1),new r("endes",18,1),new r("erendes",19,1),new r("enes",18,1),new r("ernes",18,1),new r("eres",18,1),new r("ens",16,1),new r("hedens",24,1),new r("erens",24,1),new r("ers",16,1),new r("ets",16,1),new r("erets",28,1),new r("et",-1,1),new r("eret",30,1)],l=[new r("gd",-1,-1),new r("dt",-1,-1),new r("gt",-1,-1),new r("kt",-1,-1)],m=[new r("ig",-1,1),new r("lig",0,1),new r("elig",1,1),new r("els",-1,1),new r("løst",-1,2)],w=[17,65,16,1,0,0,0,0,0,0,0,0,0,0,0,0,48,0,128],p=[239,254,42,3,0,0,0,0,0,0,0,0,0,0,0,0,16],f=new i;this.setCurrent=function(e){f.setCurrent(e)},this.getCurrent=function(){return f.getCurrent()},this.stem=function(){var r=f.cursor;return e(),f.limit_backward=r,f.cursor=f.limit,n(),f.cursor=f.limit,t(),f.cursor=f.limit,s(),f.cursor=f.limit,o(),!0}};return function(e){return"function"==typeof e.update?e.update(function(e){return n.setCurrent(e),n.stem(),n.getCurrent()}):(n.setCurrent(e),n.stem(),n.getCurrent())}}(),e.Pipeline.registerFunction(e.da.stemmer,"stemmer-da"),e.da.stopWordFilter=e.generateStopWordFilter("ad af alle alt anden at blev blive bliver da de dem den denne der deres det dette dig din disse dog du efter eller en end er et for fra ham han hans har havde have hende hendes her hos hun hvad hvis hvor i ikke ind jeg jer jo kunne man mange med meget men mig min mine mit mod ned noget nogle nu når og også om op os over på selv sig sin sine sit skal skulle som sådan thi til ud under var vi vil ville vor være været".split(" ")),e.Pipeline.registerFunction(e.da.stopWordFilter,"stopWordFilter-da")}}); \ No newline at end of file
diff --git a/freetype/docs/reference/assets/javascripts/lunr/min/lunr.de.min.js b/freetype/docs/reference/assets/javascripts/lunr/min/lunr.de.min.js
new file mode 100644
index 00000000..f3b5c108
--- /dev/null
+++ b/freetype/docs/reference/assets/javascripts/lunr/min/lunr.de.min.js
@@ -0,0 +1,18 @@
+/*!
+ * Lunr languages, `German` language
+ * https://github.com/MihaiValentin/lunr-languages
+ *
+ * Copyright 2014, Mihai Valentin
+ * http://www.mozilla.org/MPL/
+ */
+/*!
+ * based on
+ * Snowball JavaScript Library v0.3
+ * http://code.google.com/p/urim/
+ * http://snowball.tartarus.org/
+ *
+ * Copyright 2010, Oleg Mazko
+ * http://www.mozilla.org/MPL/
+ */
+
+!function(e,r){"function"==typeof define&&define.amd?define(r):"object"==typeof exports?module.exports=r():r()(e.lunr)}(this,function(){return function(e){if(void 0===e)throw new Error("Lunr is not present. Please include / require Lunr before this script.");if(void 0===e.stemmerSupport)throw new Error("Lunr stemmer support is not present. Please include / require Lunr stemmer support before this script.");e.de=function(){this.pipeline.reset(),this.pipeline.add(e.de.trimmer,e.de.stopWordFilter,e.de.stemmer),this.searchPipeline&&(this.searchPipeline.reset(),this.searchPipeline.add(e.de.stemmer))},e.de.wordCharacters="A-Za-zªºÀ-ÖØ-öø-ʸˠ-ˤᴀ-ᴥᴬ-ᵜᵢ-ᵥᵫ-ᵷᵹ-ᶾḀ-ỿⁱⁿₐ-ₜKÅℲⅎⅠ-ↈⱠ-ⱿꜢ-ꞇꞋ-ꞭꞰ-ꞷꟷ-ꟿꬰ-ꭚꭜ-ꭤff-stA-Za-z",e.de.trimmer=e.trimmerSupport.generateTrimmer(e.de.wordCharacters),e.Pipeline.registerFunction(e.de.trimmer,"trimmer-de"),e.de.stemmer=function(){var r=e.stemmerSupport.Among,n=e.stemmerSupport.SnowballProgram,i=new function(){function e(e,r,n){return!(!v.eq_s(1,e)||(v.ket=v.cursor,!v.in_grouping(p,97,252)))&&(v.slice_from(r),v.cursor=n,!0)}function i(){for(var r,n,i,s,t=v.cursor;;)if(r=v.cursor,v.bra=r,v.eq_s(1,"ß"))v.ket=v.cursor,v.slice_from("ss");else{if(r>=v.limit)break;v.cursor=r+1}for(v.cursor=t;;)for(n=v.cursor;;){if(i=v.cursor,v.in_grouping(p,97,252)){if(s=v.cursor,v.bra=s,e("u","U",i))break;if(v.cursor=s,e("y","Y",i))break}if(i>=v.limit)return void(v.cursor=n);v.cursor=i+1}}function s(){for(;!v.in_grouping(p,97,252);){if(v.cursor>=v.limit)return!0;v.cursor++}for(;!v.out_grouping(p,97,252);){if(v.cursor>=v.limit)return!0;v.cursor++}return!1}function t(){m=v.limit,l=m;var e=v.cursor+3;0<=e&&e<=v.limit&&(d=e,s()||(m=v.cursor,m<d&&(m=d),s()||(l=v.cursor)))}function o(){for(var e,r;;){if(r=v.cursor,v.bra=r,!(e=v.find_among(h,6)))return;switch(v.ket=v.cursor,e){case 1:v.slice_from("y");break;case 2:case 5:v.slice_from("u");break;case 3:v.slice_from("a");break;case 4:v.slice_from("o");break;case 6:if(v.cursor>=v.limit)return;v.cursor++}}}function c(){return m<=v.cursor}function u(){return l<=v.cursor}function a(){var e,r,n,i,s=v.limit-v.cursor;if(v.ket=v.cursor,(e=v.find_among_b(w,7))&&(v.bra=v.cursor,c()))switch(e){case 1:v.slice_del();break;case 2:v.slice_del(),v.ket=v.cursor,v.eq_s_b(1,"s")&&(v.bra=v.cursor,v.eq_s_b(3,"nis")&&v.slice_del());break;case 3:v.in_grouping_b(g,98,116)&&v.slice_del()}if(v.cursor=v.limit-s,v.ket=v.cursor,(e=v.find_among_b(f,4))&&(v.bra=v.cursor,c()))switch(e){case 1:v.slice_del();break;case 2:if(v.in_grouping_b(k,98,116)){var t=v.cursor-3;v.limit_backward<=t&&t<=v.limit&&(v.cursor=t,v.slice_del())}}if(v.cursor=v.limit-s,v.ket=v.cursor,(e=v.find_among_b(_,8))&&(v.bra=v.cursor,u()))switch(e){case 1:v.slice_del(),v.ket=v.cursor,v.eq_s_b(2,"ig")&&(v.bra=v.cursor,r=v.limit-v.cursor,v.eq_s_b(1,"e")||(v.cursor=v.limit-r,u()&&v.slice_del()));break;case 2:n=v.limit-v.cursor,v.eq_s_b(1,"e")||(v.cursor=v.limit-n,v.slice_del());break;case 3:if(v.slice_del(),v.ket=v.cursor,i=v.limit-v.cursor,!v.eq_s_b(2,"er")&&(v.cursor=v.limit-i,!v.eq_s_b(2,"en")))break;v.bra=v.cursor,c()&&v.slice_del();break;case 4:v.slice_del(),v.ket=v.cursor,e=v.find_among_b(b,2),e&&(v.bra=v.cursor,u()&&1==e&&v.slice_del())}}var d,l,m,h=[new r("",-1,6),new r("U",0,2),new r("Y",0,1),new r("ä",0,3),new r("ö",0,4),new r("ü",0,5)],w=[new r("e",-1,2),new r("em",-1,1),new r("en",-1,2),new r("ern",-1,1),new r("er",-1,1),new r("s",-1,3),new r("es",5,2)],f=[new r("en",-1,1),new r("er",-1,1),new r("st",-1,2),new r("est",2,1)],b=[new r("ig",-1,1),new r("lich",-1,1)],_=[new r("end",-1,1),new r("ig",-1,2),new r("ung",-1,1),new r("lich",-1,3),new r("isch",-1,2),new r("ik",-1,2),new r("heit",-1,3),new r("keit",-1,4)],p=[17,65,16,1,0,0,0,0,0,0,0,0,0,0,0,0,8,0,32,8],g=[117,30,5],k=[117,30,4],v=new n;this.setCurrent=function(e){v.setCurrent(e)},this.getCurrent=function(){return v.getCurrent()},this.stem=function(){var e=v.cursor;return i(),v.cursor=e,t(),v.limit_backward=e,v.cursor=v.limit,a(),v.cursor=v.limit_backward,o(),!0}};return function(e){return"function"==typeof e.update?e.update(function(e){return i.setCurrent(e),i.stem(),i.getCurrent()}):(i.setCurrent(e),i.stem(),i.getCurrent())}}(),e.Pipeline.registerFunction(e.de.stemmer,"stemmer-de"),e.de.stopWordFilter=e.generateStopWordFilter("aber alle allem allen aller alles als also am an ander andere anderem anderen anderer anderes anderm andern anderr anders auch auf aus bei bin bis bist da damit dann das dasselbe dazu daß dein deine deinem deinen deiner deines dem demselben den denn denselben der derer derselbe derselben des desselben dessen dich die dies diese dieselbe dieselben diesem diesen dieser dieses dir doch dort du durch ein eine einem einen einer eines einig einige einigem einigen einiger einiges einmal er es etwas euch euer eure eurem euren eurer eures für gegen gewesen hab habe haben hat hatte hatten hier hin hinter ich ihm ihn ihnen ihr ihre ihrem ihren ihrer ihres im in indem ins ist jede jedem jeden jeder jedes jene jenem jenen jener jenes jetzt kann kein keine keinem keinen keiner keines können könnte machen man manche manchem manchen mancher manches mein meine meinem meinen meiner meines mich mir mit muss musste nach nicht nichts noch nun nur ob oder ohne sehr sein seine seinem seinen seiner seines selbst sich sie sind so solche solchem solchen solcher solches soll sollte sondern sonst um und uns unse unsem unsen unser unses unter viel vom von vor war waren warst was weg weil weiter welche welchem welchen welcher welches wenn werde werden wie wieder will wir wird wirst wo wollen wollte während würde würden zu zum zur zwar zwischen über".split(" ")),e.Pipeline.registerFunction(e.de.stopWordFilter,"stopWordFilter-de")}}); \ No newline at end of file
diff --git a/freetype/docs/reference/assets/javascripts/lunr/min/lunr.du.min.js b/freetype/docs/reference/assets/javascripts/lunr/min/lunr.du.min.js
new file mode 100644
index 00000000..49a0f3f0
--- /dev/null
+++ b/freetype/docs/reference/assets/javascripts/lunr/min/lunr.du.min.js
@@ -0,0 +1,18 @@
+/*!
+ * Lunr languages, `Dutch` language
+ * https://github.com/MihaiValentin/lunr-languages
+ *
+ * Copyright 2014, Mihai Valentin
+ * http://www.mozilla.org/MPL/
+ */
+/*!
+ * based on
+ * Snowball JavaScript Library v0.3
+ * http://code.google.com/p/urim/
+ * http://snowball.tartarus.org/
+ *
+ * Copyright 2010, Oleg Mazko
+ * http://www.mozilla.org/MPL/
+ */
+
+!function(e,r){"function"==typeof define&&define.amd?define(r):"object"==typeof exports?module.exports=r():r()(e.lunr)}(this,function(){return function(e){if(void 0===e)throw new Error("Lunr is not present. Please include / require Lunr before this script.");if(void 0===e.stemmerSupport)throw new Error("Lunr stemmer support is not present. Please include / require Lunr stemmer support before this script.");console.warn('[Lunr Languages] Please use the "nl" instead of the "du". The "nl" code is the standard code for Dutch language, and "du" will be removed in the next major versions.'),e.du=function(){this.pipeline.reset(),this.pipeline.add(e.du.trimmer,e.du.stopWordFilter,e.du.stemmer),this.searchPipeline&&(this.searchPipeline.reset(),this.searchPipeline.add(e.du.stemmer))},e.du.wordCharacters="A-Za-zªºÀ-ÖØ-öø-ʸˠ-ˤᴀ-ᴥᴬ-ᵜᵢ-ᵥᵫ-ᵷᵹ-ᶾḀ-ỿⁱⁿₐ-ₜKÅℲⅎⅠ-ↈⱠ-ⱿꜢ-ꞇꞋ-ꞭꞰ-ꞷꟷ-ꟿꬰ-ꭚꭜ-ꭤff-stA-Za-z",e.du.trimmer=e.trimmerSupport.generateTrimmer(e.du.wordCharacters),e.Pipeline.registerFunction(e.du.trimmer,"trimmer-du"),e.du.stemmer=function(){var r=e.stemmerSupport.Among,i=e.stemmerSupport.SnowballProgram,n=new function(){function e(){for(var e,r,i,o=C.cursor;;){if(C.bra=C.cursor,e=C.find_among(b,11))switch(C.ket=C.cursor,e){case 1:C.slice_from("a");continue;case 2:C.slice_from("e");continue;case 3:C.slice_from("i");continue;case 4:C.slice_from("o");continue;case 5:C.slice_from("u");continue;case 6:if(C.cursor>=C.limit)break;C.cursor++;continue}break}for(C.cursor=o,C.bra=o,C.eq_s(1,"y")?(C.ket=C.cursor,C.slice_from("Y")):C.cursor=o;;)if(r=C.cursor,C.in_grouping(q,97,232)){if(i=C.cursor,C.bra=i,C.eq_s(1,"i"))C.ket=C.cursor,C.in_grouping(q,97,232)&&(C.slice_from("I"),C.cursor=r);else if(C.cursor=i,C.eq_s(1,"y"))C.ket=C.cursor,C.slice_from("Y"),C.cursor=r;else if(n(r))break}else if(n(r))break}function n(e){return C.cursor=e,e>=C.limit||(C.cursor++,!1)}function o(){_=C.limit,f=_,t()||(_=C.cursor,_<3&&(_=3),t()||(f=C.cursor))}function t(){for(;!C.in_grouping(q,97,232);){if(C.cursor>=C.limit)return!0;C.cursor++}for(;!C.out_grouping(q,97,232);){if(C.cursor>=C.limit)return!0;C.cursor++}return!1}function s(){for(var e;;)if(C.bra=C.cursor,e=C.find_among(p,3))switch(C.ket=C.cursor,e){case 1:C.slice_from("y");break;case 2:C.slice_from("i");break;case 3:if(C.cursor>=C.limit)return;C.cursor++}}function u(){return _<=C.cursor}function c(){return f<=C.cursor}function a(){var e=C.limit-C.cursor;C.find_among_b(g,3)&&(C.cursor=C.limit-e,C.ket=C.cursor,C.cursor>C.limit_backward&&(C.cursor--,C.bra=C.cursor,C.slice_del()))}function l(){var e;w=!1,C.ket=C.cursor,C.eq_s_b(1,"e")&&(C.bra=C.cursor,u()&&(e=C.limit-C.cursor,C.out_grouping_b(q,97,232)&&(C.cursor=C.limit-e,C.slice_del(),w=!0,a())))}function m(){var e;u()&&(e=C.limit-C.cursor,C.out_grouping_b(q,97,232)&&(C.cursor=C.limit-e,C.eq_s_b(3,"gem")||(C.cursor=C.limit-e,C.slice_del(),a())))}function d(){var e,r,i,n,o,t,s=C.limit-C.cursor;if(C.ket=C.cursor,e=C.find_among_b(h,5))switch(C.bra=C.cursor,e){case 1:u()&&C.slice_from("heid");break;case 2:m();break;case 3:u()&&C.out_grouping_b(z,97,232)&&C.slice_del()}if(C.cursor=C.limit-s,l(),C.cursor=C.limit-s,C.ket=C.cursor,C.eq_s_b(4,"heid")&&(C.bra=C.cursor,c()&&(r=C.limit-C.cursor,C.eq_s_b(1,"c")||(C.cursor=C.limit-r,C.slice_del(),C.ket=C.cursor,C.eq_s_b(2,"en")&&(C.bra=C.cursor,m())))),C.cursor=C.limit-s,C.ket=C.cursor,e=C.find_among_b(k,6))switch(C.bra=C.cursor,e){case 1:if(c()){if(C.slice_del(),i=C.limit-C.cursor,C.ket=C.cursor,C.eq_s_b(2,"ig")&&(C.bra=C.cursor,c()&&(n=C.limit-C.cursor,!C.eq_s_b(1,"e")))){C.cursor=C.limit-n,C.slice_del();break}C.cursor=C.limit-i,a()}break;case 2:c()&&(o=C.limit-C.cursor,C.eq_s_b(1,"e")||(C.cursor=C.limit-o,C.slice_del()));break;case 3:c()&&(C.slice_del(),l());break;case 4:c()&&C.slice_del();break;case 5:c()&&w&&C.slice_del()}C.cursor=C.limit-s,C.out_grouping_b(j,73,232)&&(t=C.limit-C.cursor,C.find_among_b(v,4)&&C.out_grouping_b(q,97,232)&&(C.cursor=C.limit-t,C.ket=C.cursor,C.cursor>C.limit_backward&&(C.cursor--,C.bra=C.cursor,C.slice_del())))}var f,_,w,b=[new r("",-1,6),new r("á",0,1),new r("ä",0,1),new r("é",0,2),new r("ë",0,2),new r("í",0,3),new r("ï",0,3),new r("ó",0,4),new r("ö",0,4),new r("ú",0,5),new r("ü",0,5)],p=[new r("",-1,3),new r("I",0,2),new r("Y",0,1)],g=[new r("dd",-1,-1),new r("kk",-1,-1),new r("tt",-1,-1)],h=[new r("ene",-1,2),new r("se",-1,3),new r("en",-1,2),new r("heden",2,1),new r("s",-1,3)],k=[new r("end",-1,1),new r("ig",-1,2),new r("ing",-1,1),new r("lijk",-1,3),new r("baar",-1,4),new r("bar",-1,5)],v=[new r("aa",-1,-1),new r("ee",-1,-1),new r("oo",-1,-1),new r("uu",-1,-1)],q=[17,65,16,1,0,0,0,0,0,0,0,0,0,0,0,0,128],j=[1,0,0,17,65,16,1,0,0,0,0,0,0,0,0,0,0,0,0,128],z=[17,67,16,1,0,0,0,0,0,0,0,0,0,0,0,0,128],C=new i;this.setCurrent=function(e){C.setCurrent(e)},this.getCurrent=function(){return C.getCurrent()},this.stem=function(){var r=C.cursor;return e(),C.cursor=r,o(),C.limit_backward=r,C.cursor=C.limit,d(),C.cursor=C.limit_backward,s(),!0}};return function(e){return"function"==typeof e.update?e.update(function(e){return n.setCurrent(e),n.stem(),n.getCurrent()}):(n.setCurrent(e),n.stem(),n.getCurrent())}}(),e.Pipeline.registerFunction(e.du.stemmer,"stemmer-du"),e.du.stopWordFilter=e.generateStopWordFilter(" aan al alles als altijd andere ben bij daar dan dat de der deze die dit doch doen door dus een eens en er ge geen geweest haar had heb hebben heeft hem het hier hij hoe hun iemand iets ik in is ja je kan kon kunnen maar me meer men met mij mijn moet na naar niet niets nog nu of om omdat onder ons ook op over reeds te tegen toch toen tot u uit uw van veel voor want waren was wat werd wezen wie wil worden wordt zal ze zelf zich zij zijn zo zonder zou".split(" ")),e.Pipeline.registerFunction(e.du.stopWordFilter,"stopWordFilter-du")}}); \ No newline at end of file
diff --git a/freetype/docs/reference/assets/javascripts/lunr/min/lunr.es.min.js b/freetype/docs/reference/assets/javascripts/lunr/min/lunr.es.min.js
new file mode 100644
index 00000000..2989d342
--- /dev/null
+++ b/freetype/docs/reference/assets/javascripts/lunr/min/lunr.es.min.js
@@ -0,0 +1,18 @@
+/*!
+ * Lunr languages, `Spanish` language
+ * https://github.com/MihaiValentin/lunr-languages
+ *
+ * Copyright 2014, Mihai Valentin
+ * http://www.mozilla.org/MPL/
+ */
+/*!
+ * based on
+ * Snowball JavaScript Library v0.3
+ * http://code.google.com/p/urim/
+ * http://snowball.tartarus.org/
+ *
+ * Copyright 2010, Oleg Mazko
+ * http://www.mozilla.org/MPL/
+ */
+
+!function(e,s){"function"==typeof define&&define.amd?define(s):"object"==typeof exports?module.exports=s():s()(e.lunr)}(this,function(){return function(e){if(void 0===e)throw new Error("Lunr is not present. Please include / require Lunr before this script.");if(void 0===e.stemmerSupport)throw new Error("Lunr stemmer support is not present. Please include / require Lunr stemmer support before this script.");e.es=function(){this.pipeline.reset(),this.pipeline.add(e.es.trimmer,e.es.stopWordFilter,e.es.stemmer),this.searchPipeline&&(this.searchPipeline.reset(),this.searchPipeline.add(e.es.stemmer))},e.es.wordCharacters="A-Za-zªºÀ-ÖØ-öø-ʸˠ-ˤᴀ-ᴥᴬ-ᵜᵢ-ᵥᵫ-ᵷᵹ-ᶾḀ-ỿⁱⁿₐ-ₜKÅℲⅎⅠ-ↈⱠ-ⱿꜢ-ꞇꞋ-ꞭꞰ-ꞷꟷ-ꟿꬰ-ꭚꭜ-ꭤff-stA-Za-z",e.es.trimmer=e.trimmerSupport.generateTrimmer(e.es.wordCharacters),e.Pipeline.registerFunction(e.es.trimmer,"trimmer-es"),e.es.stemmer=function(){var s=e.stemmerSupport.Among,r=e.stemmerSupport.SnowballProgram,n=new function(){function e(){if(A.out_grouping(x,97,252)){for(;!A.in_grouping(x,97,252);){if(A.cursor>=A.limit)return!0;A.cursor++}return!1}return!0}function n(){if(A.in_grouping(x,97,252)){var s=A.cursor;if(e()){if(A.cursor=s,!A.in_grouping(x,97,252))return!0;for(;!A.out_grouping(x,97,252);){if(A.cursor>=A.limit)return!0;A.cursor++}}return!1}return!0}function i(){var s,r=A.cursor;if(n()){if(A.cursor=r,!A.out_grouping(x,97,252))return;if(s=A.cursor,e()){if(A.cursor=s,!A.in_grouping(x,97,252)||A.cursor>=A.limit)return;A.cursor++}}g=A.cursor}function a(){for(;!A.in_grouping(x,97,252);){if(A.cursor>=A.limit)return!1;A.cursor++}for(;!A.out_grouping(x,97,252);){if(A.cursor>=A.limit)return!1;A.cursor++}return!0}function t(){var e=A.cursor;g=A.limit,p=g,v=g,i(),A.cursor=e,a()&&(p=A.cursor,a()&&(v=A.cursor))}function o(){for(var e;;){if(A.bra=A.cursor,e=A.find_among(k,6))switch(A.ket=A.cursor,e){case 1:A.slice_from("a");continue;case 2:A.slice_from("e");continue;case 3:A.slice_from("i");continue;case 4:A.slice_from("o");continue;case 5:A.slice_from("u");continue;case 6:if(A.cursor>=A.limit)break;A.cursor++;continue}break}}function u(){return g<=A.cursor}function w(){return p<=A.cursor}function c(){return v<=A.cursor}function m(){var e;if(A.ket=A.cursor,A.find_among_b(y,13)&&(A.bra=A.cursor,(e=A.find_among_b(q,11))&&u()))switch(e){case 1:A.bra=A.cursor,A.slice_from("iendo");break;case 2:A.bra=A.cursor,A.slice_from("ando");break;case 3:A.bra=A.cursor,A.slice_from("ar");break;case 4:A.bra=A.cursor,A.slice_from("er");break;case 5:A.bra=A.cursor,A.slice_from("ir");break;case 6:A.slice_del();break;case 7:A.eq_s_b(1,"u")&&A.slice_del()}}function l(e,s){if(!c())return!0;A.slice_del(),A.ket=A.cursor;var r=A.find_among_b(e,s);return r&&(A.bra=A.cursor,1==r&&c()&&A.slice_del()),!1}function d(e){return!c()||(A.slice_del(),A.ket=A.cursor,A.eq_s_b(2,e)&&(A.bra=A.cursor,c()&&A.slice_del()),!1)}function b(){var e;if(A.ket=A.cursor,e=A.find_among_b(S,46)){switch(A.bra=A.cursor,e){case 1:if(!c())return!1;A.slice_del();break;case 2:if(d("ic"))return!1;break;case 3:if(!c())return!1;A.slice_from("log");break;case 4:if(!c())return!1;A.slice_from("u");break;case 5:if(!c())return!1;A.slice_from("ente");break;case 6:if(!w())return!1;A.slice_del(),A.ket=A.cursor,e=A.find_among_b(C,4),e&&(A.bra=A.cursor,c()&&(A.slice_del(),1==e&&(A.ket=A.cursor,A.eq_s_b(2,"at")&&(A.bra=A.cursor,c()&&A.slice_del()))));break;case 7:if(l(P,3))return!1;break;case 8:if(l(F,3))return!1;break;case 9:if(d("at"))return!1}return!0}return!1}function f(){var e,s;if(A.cursor>=g&&(s=A.limit_backward,A.limit_backward=g,A.ket=A.cursor,e=A.find_among_b(W,12),A.limit_backward=s,e)){if(A.bra=A.cursor,1==e){if(!A.eq_s_b(1,"u"))return!1;A.slice_del()}return!0}return!1}function _(){var e,s,r,n;if(A.cursor>=g&&(s=A.limit_backward,A.limit_backward=g,A.ket=A.cursor,e=A.find_among_b(L,96),A.limit_backward=s,e))switch(A.bra=A.cursor,e){case 1:r=A.limit-A.cursor,A.eq_s_b(1,"u")?(n=A.limit-A.cursor,A.eq_s_b(1,"g")?A.cursor=A.limit-n:A.cursor=A.limit-r):A.cursor=A.limit-r,A.bra=A.cursor;case 2:A.slice_del()}}function h(){var e,s;if(A.ket=A.cursor,e=A.find_among_b(z,8))switch(A.bra=A.cursor,e){case 1:u()&&A.slice_del();break;case 2:u()&&(A.slice_del(),A.ket=A.cursor,A.eq_s_b(1,"u")&&(A.bra=A.cursor,s=A.limit-A.cursor,A.eq_s_b(1,"g")&&(A.cursor=A.limit-s,u()&&A.slice_del())))}}var v,p,g,k=[new s("",-1,6),new s("á",0,1),new s("é",0,2),new s("í",0,3),new s("ó",0,4),new s("ú",0,5)],y=[new s("la",-1,-1),new s("sela",0,-1),new s("le",-1,-1),new s("me",-1,-1),new s("se",-1,-1),new s("lo",-1,-1),new s("selo",5,-1),new s("las",-1,-1),new s("selas",7,-1),new s("les",-1,-1),new s("los",-1,-1),new s("selos",10,-1),new s("nos",-1,-1)],q=[new s("ando",-1,6),new s("iendo",-1,6),new s("yendo",-1,7),new s("ándo",-1,2),new s("iéndo",-1,1),new s("ar",-1,6),new s("er",-1,6),new s("ir",-1,6),new s("ár",-1,3),new s("ér",-1,4),new s("ír",-1,5)],C=[new s("ic",-1,-1),new s("ad",-1,-1),new s("os",-1,-1),new s("iv",-1,1)],P=[new s("able",-1,1),new s("ible",-1,1),new s("ante",-1,1)],F=[new s("ic",-1,1),new s("abil",-1,1),new s("iv",-1,1)],S=[new s("ica",-1,1),new s("ancia",-1,2),new s("encia",-1,5),new s("adora",-1,2),new s("osa",-1,1),new s("ista",-1,1),new s("iva",-1,9),new s("anza",-1,1),new s("logía",-1,3),new s("idad",-1,8),new s("able",-1,1),new s("ible",-1,1),new s("ante",-1,2),new s("mente",-1,7),new s("amente",13,6),new s("ación",-1,2),new s("ución",-1,4),new s("ico",-1,1),new s("ismo",-1,1),new s("oso",-1,1),new s("amiento",-1,1),new s("imiento",-1,1),new s("ivo",-1,9),new s("ador",-1,2),new s("icas",-1,1),new s("ancias",-1,2),new s("encias",-1,5),new s("adoras",-1,2),new s("osas",-1,1),new s("istas",-1,1),new s("ivas",-1,9),new s("anzas",-1,1),new s("logías",-1,3),new s("idades",-1,8),new s("ables",-1,1),new s("ibles",-1,1),new s("aciones",-1,2),new s("uciones",-1,4),new s("adores",-1,2),new s("antes",-1,2),new s("icos",-1,1),new s("ismos",-1,1),new s("osos",-1,1),new s("amientos",-1,1),new s("imientos",-1,1),new s("ivos",-1,9)],W=[new s("ya",-1,1),new s("ye",-1,1),new s("yan",-1,1),new s("yen",-1,1),new s("yeron",-1,1),new s("yendo",-1,1),new s("yo",-1,1),new s("yas",-1,1),new s("yes",-1,1),new s("yais",-1,1),new s("yamos",-1,1),new s("yó",-1,1)],L=[new s("aba",-1,2),new s("ada",-1,2),new s("ida",-1,2),new s("ara",-1,2),new s("iera",-1,2),new s("ía",-1,2),new s("aría",5,2),new s("ería",5,2),new s("iría",5,2),new s("ad",-1,2),new s("ed",-1,2),new s("id",-1,2),new s("ase",-1,2),new s("iese",-1,2),new s("aste",-1,2),new s("iste",-1,2),new s("an",-1,2),new s("aban",16,2),new s("aran",16,2),new s("ieran",16,2),new s("ían",16,2),new s("arían",20,2),new s("erían",20,2),new s("irían",20,2),new s("en",-1,1),new s("asen",24,2),new s("iesen",24,2),new s("aron",-1,2),new s("ieron",-1,2),new s("arán",-1,2),new s("erán",-1,2),new s("irán",-1,2),new s("ado",-1,2),new s("ido",-1,2),new s("ando",-1,2),new s("iendo",-1,2),new s("ar",-1,2),new s("er",-1,2),new s("ir",-1,2),new s("as",-1,2),new s("abas",39,2),new s("adas",39,2),new s("idas",39,2),new s("aras",39,2),new s("ieras",39,2),new s("ías",39,2),new s("arías",45,2),new s("erías",45,2),new s("irías",45,2),new s("es",-1,1),new s("ases",49,2),new s("ieses",49,2),new s("abais",-1,2),new s("arais",-1,2),new s("ierais",-1,2),new s("íais",-1,2),new s("aríais",55,2),new s("eríais",55,2),new s("iríais",55,2),new s("aseis",-1,2),new s("ieseis",-1,2),new s("asteis",-1,2),new s("isteis",-1,2),new s("áis",-1,2),new s("éis",-1,1),new s("aréis",64,2),new s("eréis",64,2),new s("iréis",64,2),new s("ados",-1,2),new s("idos",-1,2),new s("amos",-1,2),new s("ábamos",70,2),new s("áramos",70,2),new s("iéramos",70,2),new s("íamos",70,2),new s("aríamos",74,2),new s("eríamos",74,2),new s("iríamos",74,2),new s("emos",-1,1),new s("aremos",78,2),new s("eremos",78,2),new s("iremos",78,2),new s("ásemos",78,2),new s("iésemos",78,2),new s("imos",-1,2),new s("arás",-1,2),new s("erás",-1,2),new s("irás",-1,2),new s("ís",-1,2),new s("ará",-1,2),new s("erá",-1,2),new s("irá",-1,2),new s("aré",-1,2),new s("eré",-1,2),new s("iré",-1,2),new s("ió",-1,2)],z=[new s("a",-1,1),new s("e",-1,2),new s("o",-1,1),new s("os",-1,1),new s("á",-1,1),new s("é",-1,2),new s("í",-1,1),new s("ó",-1,1)],x=[17,65,16,0,0,0,0,0,0,0,0,0,0,0,0,0,1,17,4,10],A=new r;this.setCurrent=function(e){A.setCurrent(e)},this.getCurrent=function(){return A.getCurrent()},this.stem=function(){var e=A.cursor;return t(),A.limit_backward=e,A.cursor=A.limit,m(),A.cursor=A.limit,b()||(A.cursor=A.limit,f()||(A.cursor=A.limit,_())),A.cursor=A.limit,h(),A.cursor=A.limit_backward,o(),!0}};return function(e){return"function"==typeof e.update?e.update(function(e){return n.setCurrent(e),n.stem(),n.getCurrent()}):(n.setCurrent(e),n.stem(),n.getCurrent())}}(),e.Pipeline.registerFunction(e.es.stemmer,"stemmer-es"),e.es.stopWordFilter=e.generateStopWordFilter("a al algo algunas algunos ante antes como con contra cual cuando de del desde donde durante e el ella ellas ellos en entre era erais eran eras eres es esa esas ese eso esos esta estaba estabais estaban estabas estad estada estadas estado estados estamos estando estar estaremos estará estarán estarás estaré estaréis estaría estaríais estaríamos estarían estarías estas este estemos esto estos estoy estuve estuviera estuvierais estuvieran estuvieras estuvieron estuviese estuvieseis estuviesen estuvieses estuvimos estuviste estuvisteis estuviéramos estuviésemos estuvo está estábamos estáis están estás esté estéis estén estés fue fuera fuerais fueran fueras fueron fuese fueseis fuesen fueses fui fuimos fuiste fuisteis fuéramos fuésemos ha habida habidas habido habidos habiendo habremos habrá habrán habrás habré habréis habría habríais habríamos habrían habrías habéis había habíais habíamos habían habías han has hasta hay haya hayamos hayan hayas hayáis he hemos hube hubiera hubierais hubieran hubieras hubieron hubiese hubieseis hubiesen hubieses hubimos hubiste hubisteis hubiéramos hubiésemos hubo la las le les lo los me mi mis mucho muchos muy más mí mía mías mío míos nada ni no nos nosotras nosotros nuestra nuestras nuestro nuestros o os otra otras otro otros para pero poco por porque que quien quienes qué se sea seamos sean seas seremos será serán serás seré seréis sería seríais seríamos serían serías seáis sido siendo sin sobre sois somos son soy su sus suya suyas suyo suyos sí también tanto te tendremos tendrá tendrán tendrás tendré tendréis tendría tendríais tendríamos tendrían tendrías tened tenemos tenga tengamos tengan tengas tengo tengáis tenida tenidas tenido tenidos teniendo tenéis tenía teníais teníamos tenían tenías ti tiene tienen tienes todo todos tu tus tuve tuviera tuvierais tuvieran tuvieras tuvieron tuviese tuvieseis tuviesen tuvieses tuvimos tuviste tuvisteis tuviéramos tuviésemos tuvo tuya tuyas tuyo tuyos tú un una uno unos vosotras vosotros vuestra vuestras vuestro vuestros y ya yo él éramos".split(" ")),e.Pipeline.registerFunction(e.es.stopWordFilter,"stopWordFilter-es")}}); \ No newline at end of file
diff --git a/freetype/docs/reference/assets/javascripts/lunr/min/lunr.fi.min.js b/freetype/docs/reference/assets/javascripts/lunr/min/lunr.fi.min.js
new file mode 100644
index 00000000..29f5dfce
--- /dev/null
+++ b/freetype/docs/reference/assets/javascripts/lunr/min/lunr.fi.min.js
@@ -0,0 +1,18 @@
+/*!
+ * Lunr languages, `Finnish` language
+ * https://github.com/MihaiValentin/lunr-languages
+ *
+ * Copyright 2014, Mihai Valentin
+ * http://www.mozilla.org/MPL/
+ */
+/*!
+ * based on
+ * Snowball JavaScript Library v0.3
+ * http://code.google.com/p/urim/
+ * http://snowball.tartarus.org/
+ *
+ * Copyright 2010, Oleg Mazko
+ * http://www.mozilla.org/MPL/
+ */
+
+!function(i,e){"function"==typeof define&&define.amd?define(e):"object"==typeof exports?module.exports=e():e()(i.lunr)}(this,function(){return function(i){if(void 0===i)throw new Error("Lunr is not present. Please include / require Lunr before this script.");if(void 0===i.stemmerSupport)throw new Error("Lunr stemmer support is not present. Please include / require Lunr stemmer support before this script.");i.fi=function(){this.pipeline.reset(),this.pipeline.add(i.fi.trimmer,i.fi.stopWordFilter,i.fi.stemmer),this.searchPipeline&&(this.searchPipeline.reset(),this.searchPipeline.add(i.fi.stemmer))},i.fi.wordCharacters="A-Za-zªºÀ-ÖØ-öø-ʸˠ-ˤᴀ-ᴥᴬ-ᵜᵢ-ᵥᵫ-ᵷᵹ-ᶾḀ-ỿⁱⁿₐ-ₜKÅℲⅎⅠ-ↈⱠ-ⱿꜢ-ꞇꞋ-ꞭꞰ-ꞷꟷ-ꟿꬰ-ꭚꭜ-ꭤff-stA-Za-z",i.fi.trimmer=i.trimmerSupport.generateTrimmer(i.fi.wordCharacters),i.Pipeline.registerFunction(i.fi.trimmer,"trimmer-fi"),i.fi.stemmer=function(){var e=i.stemmerSupport.Among,r=i.stemmerSupport.SnowballProgram,n=new function(){function i(){f=A.limit,d=f,n()||(f=A.cursor,n()||(d=A.cursor))}function n(){for(var i;;){if(i=A.cursor,A.in_grouping(W,97,246))break;if(A.cursor=i,i>=A.limit)return!0;A.cursor++}for(A.cursor=i;!A.out_grouping(W,97,246);){if(A.cursor>=A.limit)return!0;A.cursor++}return!1}function t(){return d<=A.cursor}function s(){var i,e;if(A.cursor>=f)if(e=A.limit_backward,A.limit_backward=f,A.ket=A.cursor,i=A.find_among_b(h,10)){switch(A.bra=A.cursor,A.limit_backward=e,i){case 1:if(!A.in_grouping_b(x,97,246))return;break;case 2:if(!t())return}A.slice_del()}else A.limit_backward=e}function o(){var i,e,r;if(A.cursor>=f)if(e=A.limit_backward,A.limit_backward=f,A.ket=A.cursor,i=A.find_among_b(v,9))switch(A.bra=A.cursor,A.limit_backward=e,i){case 1:r=A.limit-A.cursor,A.eq_s_b(1,"k")||(A.cursor=A.limit-r,A.slice_del());break;case 2:A.slice_del(),A.ket=A.cursor,A.eq_s_b(3,"kse")&&(A.bra=A.cursor,A.slice_from("ksi"));break;case 3:A.slice_del();break;case 4:A.find_among_b(p,6)&&A.slice_del();break;case 5:A.find_among_b(g,6)&&A.slice_del();break;case 6:A.find_among_b(j,2)&&A.slice_del()}else A.limit_backward=e}function l(){return A.find_among_b(q,7)}function a(){return A.eq_s_b(1,"i")&&A.in_grouping_b(L,97,246)}function u(){var i,e,r;if(A.cursor>=f)if(e=A.limit_backward,A.limit_backward=f,A.ket=A.cursor,i=A.find_among_b(C,30)){switch(A.bra=A.cursor,A.limit_backward=e,i){case 1:if(!A.eq_s_b(1,"a"))return;break;case 2:case 9:if(!A.eq_s_b(1,"e"))return;break;case 3:if(!A.eq_s_b(1,"i"))return;break;case 4:if(!A.eq_s_b(1,"o"))return;break;case 5:if(!A.eq_s_b(1,"ä"))return;break;case 6:if(!A.eq_s_b(1,"ö"))return;break;case 7:if(r=A.limit-A.cursor,!l()&&(A.cursor=A.limit-r,!A.eq_s_b(2,"ie"))){A.cursor=A.limit-r;break}if(A.cursor=A.limit-r,A.cursor<=A.limit_backward){A.cursor=A.limit-r;break}A.cursor--,A.bra=A.cursor;break;case 8:if(!A.in_grouping_b(W,97,246)||!A.out_grouping_b(W,97,246))return}A.slice_del(),k=!0}else A.limit_backward=e}function c(){var i,e,r;if(A.cursor>=d)if(e=A.limit_backward,A.limit_backward=d,A.ket=A.cursor,i=A.find_among_b(P,14)){if(A.bra=A.cursor,A.limit_backward=e,1==i){if(r=A.limit-A.cursor,A.eq_s_b(2,"po"))return;A.cursor=A.limit-r}A.slice_del()}else A.limit_backward=e}function m(){var i;A.cursor>=f&&(i=A.limit_backward,A.limit_backward=f,A.ket=A.cursor,A.find_among_b(F,2)?(A.bra=A.cursor,A.limit_backward=i,A.slice_del()):A.limit_backward=i)}function w(){var i,e,r,n,t,s;if(A.cursor>=f){if(e=A.limit_backward,A.limit_backward=f,A.ket=A.cursor,A.eq_s_b(1,"t")&&(A.bra=A.cursor,r=A.limit-A.cursor,A.in_grouping_b(W,97,246)&&(A.cursor=A.limit-r,A.slice_del(),A.limit_backward=e,n=A.limit-A.cursor,A.cursor>=d&&(A.cursor=d,t=A.limit_backward,A.limit_backward=A.cursor,A.cursor=A.limit-n,A.ket=A.cursor,i=A.find_among_b(S,2))))){if(A.bra=A.cursor,A.limit_backward=t,1==i){if(s=A.limit-A.cursor,A.eq_s_b(2,"po"))return;A.cursor=A.limit-s}return void A.slice_del()}A.limit_backward=e}}function _(){var i,e,r,n;if(A.cursor>=f){for(i=A.limit_backward,A.limit_backward=f,e=A.limit-A.cursor,l()&&(A.cursor=A.limit-e,A.ket=A.cursor,A.cursor>A.limit_backward&&(A.cursor--,A.bra=A.cursor,A.slice_del())),A.cursor=A.limit-e,A.ket=A.cursor,A.in_grouping_b(y,97,228)&&(A.bra=A.cursor,A.out_grouping_b(W,97,246)&&A.slice_del()),A.cursor=A.limit-e,A.ket=A.cursor,A.eq_s_b(1,"j")&&(A.bra=A.cursor,r=A.limit-A.cursor,A.eq_s_b(1,"o")?A.slice_del():(A.cursor=A.limit-r,A.eq_s_b(1,"u")&&A.slice_del())),A.cursor=A.limit-e,A.ket=A.cursor,A.eq_s_b(1,"o")&&(A.bra=A.cursor,A.eq_s_b(1,"j")&&A.slice_del()),A.cursor=A.limit-e,A.limit_backward=i;;){if(n=A.limit-A.cursor,A.out_grouping_b(W,97,246)){A.cursor=A.limit-n;break}if(A.cursor=A.limit-n,A.cursor<=A.limit_backward)return;A.cursor--}A.ket=A.cursor,A.cursor>A.limit_backward&&(A.cursor--,A.bra=A.cursor,b=A.slice_to(),A.eq_v_b(b)&&A.slice_del())}}var k,b,d,f,h=[new e("pa",-1,1),new e("sti",-1,2),new e("kaan",-1,1),new e("han",-1,1),new e("kin",-1,1),new e("hän",-1,1),new e("kään",-1,1),new e("ko",-1,1),new e("pä",-1,1),new e("kö",-1,1)],p=[new e("lla",-1,-1),new e("na",-1,-1),new e("ssa",-1,-1),new e("ta",-1,-1),new e("lta",3,-1),new e("sta",3,-1)],g=[new e("llä",-1,-1),new e("nä",-1,-1),new e("ssä",-1,-1),new e("tä",-1,-1),new e("ltä",3,-1),new e("stä",3,-1)],j=[new e("lle",-1,-1),new e("ine",-1,-1)],v=[new e("nsa",-1,3),new e("mme",-1,3),new e("nne",-1,3),new e("ni",-1,2),new e("si",-1,1),new e("an",-1,4),new e("en",-1,6),new e("än",-1,5),new e("nsä",-1,3)],q=[new e("aa",-1,-1),new e("ee",-1,-1),new e("ii",-1,-1),new e("oo",-1,-1),new e("uu",-1,-1),new e("ää",-1,-1),new e("öö",-1,-1)],C=[new e("a",-1,8),new e("lla",0,-1),new e("na",0,-1),new e("ssa",0,-1),new e("ta",0,-1),new e("lta",4,-1),new e("sta",4,-1),new e("tta",4,9),new e("lle",-1,-1),new e("ine",-1,-1),new e("ksi",-1,-1),new e("n",-1,7),new e("han",11,1),new e("den",11,-1,a),new e("seen",11,-1,l),new e("hen",11,2),new e("tten",11,-1,a),new e("hin",11,3),new e("siin",11,-1,a),new e("hon",11,4),new e("hän",11,5),new e("hön",11,6),new e("ä",-1,8),new e("llä",22,-1),new e("nä",22,-1),new e("ssä",22,-1),new e("tä",22,-1),new e("ltä",26,-1),new e("stä",26,-1),new e("ttä",26,9)],P=[new e("eja",-1,-1),new e("mma",-1,1),new e("imma",1,-1),new e("mpa",-1,1),new e("impa",3,-1),new e("mmi",-1,1),new e("immi",5,-1),new e("mpi",-1,1),new e("impi",7,-1),new e("ejä",-1,-1),new e("mmä",-1,1),new e("immä",10,-1),new e("mpä",-1,1),new e("impä",12,-1)],F=[new e("i",-1,-1),new e("j",-1,-1)],S=[new e("mma",-1,1),new e("imma",0,-1)],y=[17,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,8],W=[17,65,16,1,0,0,0,0,0,0,0,0,0,0,0,0,8,0,32],L=[17,65,16,0,0,0,0,0,0,0,0,0,0,0,0,0,8,0,32],x=[17,97,24,1,0,0,0,0,0,0,0,0,0,0,0,0,8,0,32],A=new r;this.setCurrent=function(i){A.setCurrent(i)},this.getCurrent=function(){return A.getCurrent()},this.stem=function(){var e=A.cursor;return i(),k=!1,A.limit_backward=e,A.cursor=A.limit,s(),A.cursor=A.limit,o(),A.cursor=A.limit,u(),A.cursor=A.limit,c(),A.cursor=A.limit,k?(m(),A.cursor=A.limit):(A.cursor=A.limit,w(),A.cursor=A.limit),_(),!0}};return function(i){return"function"==typeof i.update?i.update(function(i){return n.setCurrent(i),n.stem(),n.getCurrent()}):(n.setCurrent(i),n.stem(),n.getCurrent())}}(),i.Pipeline.registerFunction(i.fi.stemmer,"stemmer-fi"),i.fi.stopWordFilter=i.generateStopWordFilter("ei eivät emme en et ette että he heidän heidät heihin heille heillä heiltä heissä heistä heitä hän häneen hänelle hänellä häneltä hänen hänessä hänestä hänet häntä itse ja johon joiden joihin joiksi joilla joille joilta joina joissa joista joita joka joksi jolla jolle jolta jona jonka jos jossa josta jota jotka kanssa keiden keihin keiksi keille keillä keiltä keinä keissä keistä keitä keneen keneksi kenelle kenellä keneltä kenen kenenä kenessä kenestä kenet ketkä ketkä ketä koska kuin kuka kun me meidän meidät meihin meille meillä meiltä meissä meistä meitä mihin miksi mikä mille millä miltä minkä minkä minua minulla minulle minulta minun minussa minusta minut minuun minä minä missä mistä mitkä mitä mukaan mutta ne niiden niihin niiksi niille niillä niiltä niin niin niinä niissä niistä niitä noiden noihin noiksi noilla noille noilta noin noina noissa noista noita nuo nyt näiden näihin näiksi näille näillä näiltä näinä näissä näistä näitä nämä ole olemme olen olet olette oli olimme olin olisi olisimme olisin olisit olisitte olisivat olit olitte olivat olla olleet ollut on ovat poikki se sekä sen siihen siinä siitä siksi sille sillä sillä siltä sinua sinulla sinulle sinulta sinun sinussa sinusta sinut sinuun sinä sinä sitä tai te teidän teidät teihin teille teillä teiltä teissä teistä teitä tuo tuohon tuoksi tuolla tuolle tuolta tuon tuona tuossa tuosta tuota tähän täksi tälle tällä tältä tämä tämän tänä tässä tästä tätä vaan vai vaikka yli".split(" ")),i.Pipeline.registerFunction(i.fi.stopWordFilter,"stopWordFilter-fi")}}); \ No newline at end of file
diff --git a/freetype/docs/reference/assets/javascripts/lunr/min/lunr.fr.min.js b/freetype/docs/reference/assets/javascripts/lunr/min/lunr.fr.min.js
new file mode 100644
index 00000000..68cd0094
--- /dev/null
+++ b/freetype/docs/reference/assets/javascripts/lunr/min/lunr.fr.min.js
@@ -0,0 +1,18 @@
+/*!
+ * Lunr languages, `French` language
+ * https://github.com/MihaiValentin/lunr-languages
+ *
+ * Copyright 2014, Mihai Valentin
+ * http://www.mozilla.org/MPL/
+ */
+/*!
+ * based on
+ * Snowball JavaScript Library v0.3
+ * http://code.google.com/p/urim/
+ * http://snowball.tartarus.org/
+ *
+ * Copyright 2010, Oleg Mazko
+ * http://www.mozilla.org/MPL/
+ */
+
+!function(e,r){"function"==typeof define&&define.amd?define(r):"object"==typeof exports?module.exports=r():r()(e.lunr)}(this,function(){return function(e){if(void 0===e)throw new Error("Lunr is not present. Please include / require Lunr before this script.");if(void 0===e.stemmerSupport)throw new Error("Lunr stemmer support is not present. Please include / require Lunr stemmer support before this script.");e.fr=function(){this.pipeline.reset(),this.pipeline.add(e.fr.trimmer,e.fr.stopWordFilter,e.fr.stemmer),this.searchPipeline&&(this.searchPipeline.reset(),this.searchPipeline.add(e.fr.stemmer))},e.fr.wordCharacters="A-Za-zªºÀ-ÖØ-öø-ʸˠ-ˤᴀ-ᴥᴬ-ᵜᵢ-ᵥᵫ-ᵷᵹ-ᶾḀ-ỿⁱⁿₐ-ₜKÅℲⅎⅠ-ↈⱠ-ⱿꜢ-ꞇꞋ-ꞭꞰ-ꞷꟷ-ꟿꬰ-ꭚꭜ-ꭤff-stA-Za-z",e.fr.trimmer=e.trimmerSupport.generateTrimmer(e.fr.wordCharacters),e.Pipeline.registerFunction(e.fr.trimmer,"trimmer-fr"),e.fr.stemmer=function(){var r=e.stemmerSupport.Among,s=e.stemmerSupport.SnowballProgram,i=new function(){function e(e,r,s){return!(!W.eq_s(1,e)||(W.ket=W.cursor,!W.in_grouping(F,97,251)))&&(W.slice_from(r),W.cursor=s,!0)}function i(e,r,s){return!!W.eq_s(1,e)&&(W.ket=W.cursor,W.slice_from(r),W.cursor=s,!0)}function n(){for(var r,s;;){if(r=W.cursor,W.in_grouping(F,97,251)){if(W.bra=W.cursor,s=W.cursor,e("u","U",r))continue;if(W.cursor=s,e("i","I",r))continue;if(W.cursor=s,i("y","Y",r))continue}if(W.cursor=r,W.bra=r,!e("y","Y",r)){if(W.cursor=r,W.eq_s(1,"q")&&(W.bra=W.cursor,i("u","U",r)))continue;if(W.cursor=r,r>=W.limit)return;W.cursor++}}}function t(){for(;!W.in_grouping(F,97,251);){if(W.cursor>=W.limit)return!0;W.cursor++}for(;!W.out_grouping(F,97,251);){if(W.cursor>=W.limit)return!0;W.cursor++}return!1}function u(){var e=W.cursor;if(q=W.limit,g=q,p=q,W.in_grouping(F,97,251)&&W.in_grouping(F,97,251)&&W.cursor<W.limit)W.cursor++;else if(W.cursor=e,!W.find_among(v,3)){W.cursor=e;do{if(W.cursor>=W.limit){W.cursor=q;break}W.cursor++}while(!W.in_grouping(F,97,251))}q=W.cursor,W.cursor=e,t()||(g=W.cursor,t()||(p=W.cursor))}function o(){for(var e,r;;){if(r=W.cursor,W.bra=r,!(e=W.find_among(h,4)))break;switch(W.ket=W.cursor,e){case 1:W.slice_from("i");break;case 2:W.slice_from("u");break;case 3:W.slice_from("y");break;case 4:if(W.cursor>=W.limit)return;W.cursor++}}}function c(){return q<=W.cursor}function a(){return g<=W.cursor}function l(){return p<=W.cursor}function w(){var e,r;if(W.ket=W.cursor,e=W.find_among_b(C,43)){switch(W.bra=W.cursor,e){case 1:if(!l())return!1;W.slice_del();break;case 2:if(!l())return!1;W.slice_del(),W.ket=W.cursor,W.eq_s_b(2,"ic")&&(W.bra=W.cursor,l()?W.slice_del():W.slice_from("iqU"));break;case 3:if(!l())return!1;W.slice_from("log");break;case 4:if(!l())return!1;W.slice_from("u");break;case 5:if(!l())return!1;W.slice_from("ent");break;case 6:if(!c())return!1;if(W.slice_del(),W.ket=W.cursor,e=W.find_among_b(z,6))switch(W.bra=W.cursor,e){case 1:l()&&(W.slice_del(),W.ket=W.cursor,W.eq_s_b(2,"at")&&(W.bra=W.cursor,l()&&W.slice_del()));break;case 2:l()?W.slice_del():a()&&W.slice_from("eux");break;case 3:l()&&W.slice_del();break;case 4:c()&&W.slice_from("i")}break;case 7:if(!l())return!1;if(W.slice_del(),W.ket=W.cursor,e=W.find_among_b(y,3))switch(W.bra=W.cursor,e){case 1:l()?W.slice_del():W.slice_from("abl");break;case 2:l()?W.slice_del():W.slice_from("iqU");break;case 3:l()&&W.slice_del()}break;case 8:if(!l())return!1;if(W.slice_del(),W.ket=W.cursor,W.eq_s_b(2,"at")&&(W.bra=W.cursor,l()&&(W.slice_del(),W.ket=W.cursor,W.eq_s_b(2,"ic")))){W.bra=W.cursor,l()?W.slice_del():W.slice_from("iqU");break}break;case 9:W.slice_from("eau");break;case 10:if(!a())return!1;W.slice_from("al");break;case 11:if(l())W.slice_del();else{if(!a())return!1;W.slice_from("eux")}break;case 12:if(!a()||!W.out_grouping_b(F,97,251))return!1;W.slice_del();break;case 13:return c()&&W.slice_from("ant"),!1;case 14:return c()&&W.slice_from("ent"),!1;case 15:return r=W.limit-W.cursor,W.in_grouping_b(F,97,251)&&c()&&(W.cursor=W.limit-r,W.slice_del()),!1}return!0}return!1}function f(){var e,r;if(W.cursor<q)return!1;if(r=W.limit_backward,W.limit_backward=q,W.ket=W.cursor,!(e=W.find_among_b(x,35)))return W.limit_backward=r,!1;if(W.bra=W.cursor,1==e){if(!W.out_grouping_b(F,97,251))return W.limit_backward=r,!1;W.slice_del()}return W.limit_backward=r,!0}function m(){var e,r,s;if(W.cursor<q)return!1;if(r=W.limit_backward,W.limit_backward=q,W.ket=W.cursor,!(e=W.find_among_b(I,38)))return W.limit_backward=r,!1;switch(W.bra=W.cursor,e){case 1:if(!l())return W.limit_backward=r,!1;W.slice_del();break;case 2:W.slice_del();break;case 3:W.slice_del(),s=W.limit-W.cursor,W.ket=W.cursor,W.eq_s_b(1,"e")?(W.bra=W.cursor,W.slice_del()):W.cursor=W.limit-s}return W.limit_backward=r,!0}function _(){var e,r,s,i,n=W.limit-W.cursor;if(W.ket=W.cursor,W.eq_s_b(1,"s")?(W.bra=W.cursor,r=W.limit-W.cursor,W.out_grouping_b(S,97,232)?(W.cursor=W.limit-r,W.slice_del()):W.cursor=W.limit-n):W.cursor=W.limit-n,W.cursor>=q){if(s=W.limit_backward,W.limit_backward=q,W.ket=W.cursor,e=W.find_among_b(P,7))switch(W.bra=W.cursor,e){case 1:if(l()){if(i=W.limit-W.cursor,!W.eq_s_b(1,"s")&&(W.cursor=W.limit-i,!W.eq_s_b(1,"t")))break;W.slice_del()}break;case 2:W.slice_from("i");break;case 3:W.slice_del();break;case 4:W.eq_s_b(2,"gu")&&W.slice_del()}W.limit_backward=s}}function b(){var e=W.limit-W.cursor;W.find_among_b(U,5)&&(W.cursor=W.limit-e,W.ket=W.cursor,W.cursor>W.limit_backward&&(W.cursor--,W.bra=W.cursor,W.slice_del()))}function d(){for(var e,r=1;W.out_grouping_b(F,97,251);)r--;if(r<=0){if(W.ket=W.cursor,e=W.limit-W.cursor,!W.eq_s_b(1,"é")&&(W.cursor=W.limit-e,!W.eq_s_b(1,"è")))return;W.bra=W.cursor,W.slice_from("e")}}function k(){if(!w()&&(W.cursor=W.limit,!f()&&(W.cursor=W.limit,!m())))return W.cursor=W.limit,void _();W.cursor=W.limit,W.ket=W.cursor,W.eq_s_b(1,"Y")?(W.bra=W.cursor,W.slice_from("i")):(W.cursor=W.limit,W.eq_s_b(1,"ç")&&(W.bra=W.cursor,W.slice_from("c")))}var p,g,q,v=[new r("col",-1,-1),new r("par",-1,-1),new r("tap",-1,-1)],h=[new r("",-1,4),new r("I",0,1),new r("U",0,2),new r("Y",0,3)],z=[new r("iqU",-1,3),new r("abl",-1,3),new r("Ièr",-1,4),new r("ièr",-1,4),new r("eus",-1,2),new r("iv",-1,1)],y=[new r("ic",-1,2),new r("abil",-1,1),new r("iv",-1,3)],C=[new r("iqUe",-1,1),new r("atrice",-1,2),new r("ance",-1,1),new r("ence",-1,5),new r("logie",-1,3),new r("able",-1,1),new r("isme",-1,1),new r("euse",-1,11),new r("iste",-1,1),new r("ive",-1,8),new r("if",-1,8),new r("usion",-1,4),new r("ation",-1,2),new r("ution",-1,4),new r("ateur",-1,2),new r("iqUes",-1,1),new r("atrices",-1,2),new r("ances",-1,1),new r("ences",-1,5),new r("logies",-1,3),new r("ables",-1,1),new r("ismes",-1,1),new r("euses",-1,11),new r("istes",-1,1),new r("ives",-1,8),new r("ifs",-1,8),new r("usions",-1,4),new r("ations",-1,2),new r("utions",-1,4),new r("ateurs",-1,2),new r("ments",-1,15),new r("ements",30,6),new r("issements",31,12),new r("ités",-1,7),new r("ment",-1,15),new r("ement",34,6),new r("issement",35,12),new r("amment",34,13),new r("emment",34,14),new r("aux",-1,10),new r("eaux",39,9),new r("eux",-1,1),new r("ité",-1,7)],x=[new r("ira",-1,1),new r("ie",-1,1),new r("isse",-1,1),new r("issante",-1,1),new r("i",-1,1),new r("irai",4,1),new r("ir",-1,1),new r("iras",-1,1),new r("ies",-1,1),new r("îmes",-1,1),new r("isses",-1,1),new r("issantes",-1,1),new r("îtes",-1,1),new r("is",-1,1),new r("irais",13,1),new r("issais",13,1),new r("irions",-1,1),new r("issions",-1,1),new r("irons",-1,1),new r("issons",-1,1),new r("issants",-1,1),new r("it",-1,1),new r("irait",21,1),new r("issait",21,1),new r("issant",-1,1),new r("iraIent",-1,1),new r("issaIent",-1,1),new r("irent",-1,1),new r("issent",-1,1),new r("iront",-1,1),new r("ît",-1,1),new r("iriez",-1,1),new r("issiez",-1,1),new r("irez",-1,1),new r("issez",-1,1)],I=[new r("a",-1,3),new r("era",0,2),new r("asse",-1,3),new r("ante",-1,3),new r("ée",-1,2),new r("ai",-1,3),new r("erai",5,2),new r("er",-1,2),new r("as",-1,3),new r("eras",8,2),new r("âmes",-1,3),new r("asses",-1,3),new r("antes",-1,3),new r("âtes",-1,3),new r("ées",-1,2),new r("ais",-1,3),new r("erais",15,2),new r("ions",-1,1),new r("erions",17,2),new r("assions",17,3),new r("erons",-1,2),new r("ants",-1,3),new r("és",-1,2),new r("ait",-1,3),new r("erait",23,2),new r("ant",-1,3),new r("aIent",-1,3),new r("eraIent",26,2),new r("èrent",-1,2),new r("assent",-1,3),new r("eront",-1,2),new r("ât",-1,3),new r("ez",-1,2),new r("iez",32,2),new r("eriez",33,2),new r("assiez",33,3),new r("erez",32,2),new r("é",-1,2)],P=[new r("e",-1,3),new r("Ière",0,2),new r("ière",0,2),new r("ion",-1,1),new r("Ier",-1,2),new r("ier",-1,2),new r("ë",-1,4)],U=[new r("ell",-1,-1),new r("eill",-1,-1),new r("enn",-1,-1),new r("onn",-1,-1),new r("ett",-1,-1)],F=[17,65,16,1,0,0,0,0,0,0,0,0,0,0,0,128,130,103,8,5],S=[1,65,20,0,0,0,0,0,0,0,0,0,0,0,0,0,128],W=new s;this.setCurrent=function(e){W.setCurrent(e)},this.getCurrent=function(){return W.getCurrent()},this.stem=function(){var e=W.cursor;return n(),W.cursor=e,u(),W.limit_backward=e,W.cursor=W.limit,k(),W.cursor=W.limit,b(),W.cursor=W.limit,d(),W.cursor=W.limit_backward,o(),!0}};return function(e){return"function"==typeof e.update?e.update(function(e){return i.setCurrent(e),i.stem(),i.getCurrent()}):(i.setCurrent(e),i.stem(),i.getCurrent())}}(),e.Pipeline.registerFunction(e.fr.stemmer,"stemmer-fr"),e.fr.stopWordFilter=e.generateStopWordFilter("ai aie aient aies ait as au aura aurai auraient aurais aurait auras aurez auriez aurions aurons auront aux avaient avais avait avec avez aviez avions avons ayant ayez ayons c ce ceci celà ces cet cette d dans de des du elle en es est et eu eue eues eurent eus eusse eussent eusses eussiez eussions eut eux eûmes eût eûtes furent fus fusse fussent fusses fussiez fussions fut fûmes fût fûtes ici il ils j je l la le les leur leurs lui m ma mais me mes moi mon même n ne nos notre nous on ont ou par pas pour qu que quel quelle quelles quels qui s sa sans se sera serai seraient serais serait seras serez seriez serions serons seront ses soi soient sois soit sommes son sont soyez soyons suis sur t ta te tes toi ton tu un une vos votre vous y à étaient étais était étant étiez étions été étée étées étés êtes".split(" ")),e.Pipeline.registerFunction(e.fr.stopWordFilter,"stopWordFilter-fr")}}); \ No newline at end of file
diff --git a/freetype/docs/reference/assets/javascripts/lunr/min/lunr.hi.min.js b/freetype/docs/reference/assets/javascripts/lunr/min/lunr.hi.min.js
new file mode 100644
index 00000000..7dbc4140
--- /dev/null
+++ b/freetype/docs/reference/assets/javascripts/lunr/min/lunr.hi.min.js
@@ -0,0 +1 @@
+!function(e,r){"function"==typeof define&&define.amd?define(r):"object"==typeof exports?module.exports=r():r()(e.lunr)}(this,function(){return function(e){if(void 0===e)throw new Error("Lunr is not present. Please include / require Lunr before this script.");if(void 0===e.stemmerSupport)throw new Error("Lunr stemmer support is not present. Please include / require Lunr stemmer support before this script.");e.hi=function(){this.pipeline.reset(),this.pipeline.add(e.hi.trimmer,e.hi.stopWordFilter,e.hi.stemmer),this.searchPipeline&&(this.searchPipeline.reset(),this.searchPipeline.add(e.hi.stemmer))},e.hi.wordCharacters="ऀ-ःऄ-एऐ-टठ-यर-िी-ॏॐ-य़ॠ-९॰-ॿa-zA-Za-zA-Z0-90-9",e.hi.trimmer=e.trimmerSupport.generateTrimmer(e.hi.wordCharacters),e.Pipeline.registerFunction(e.hi.trimmer,"trimmer-hi"),e.hi.stopWordFilter=e.generateStopWordFilter("अत अपना अपनी अपने अभी अंदर आदि आप इत्यादि इन इनका इन्हीं इन्हें इन्हों इस इसका इसकी इसके इसमें इसी इसे उन उनका उनकी उनके उनको उन्हीं उन्हें उन्हों उस उसके उसी उसे एक एवं एस ऐसे और कई कर करता करते करना करने करें कहते कहा का काफ़ी कि कितना किन्हें किन्हों किया किर किस किसी किसे की कुछ कुल के को कोई कौन कौनसा गया घर जब जहाँ जा जितना जिन जिन्हें जिन्हों जिस जिसे जीधर जैसा जैसे जो तक तब तरह तिन तिन्हें तिन्हों तिस तिसे तो था थी थे दबारा दिया दुसरा दूसरे दो द्वारा न नके नहीं ना निहायत नीचे ने पर पहले पूरा पे फिर बनी बही बहुत बाद बाला बिलकुल भी भीतर मगर मानो मे में यदि यह यहाँ यही या यिह ये रखें रहा रहे ऱ्वासा लिए लिये लेकिन व वग़ैरह वर्ग वह वहाँ वहीं वाले वुह वे वो सकता सकते सबसे सभी साथ साबुत साभ सारा से सो संग ही हुआ हुई हुए है हैं हो होता होती होते होना होने".split(" ")),e.hi.stemmer=function(){return function(e){return"function"==typeof e.update?e.update(function(e){return e}):e}}();var r=e.wordcut;r.init(),e.hi.tokenizer=function(i){if(!arguments.length||null==i||void 0==i)return[];if(Array.isArray(i))return i.map(function(r){return isLunr2?new e.Token(r.toLowerCase()):r.toLowerCase()});var t=i.toString().toLowerCase().replace(/^\s+/,"");return r.cut(t).split("|")},e.Pipeline.registerFunction(e.hi.stemmer,"stemmer-hi"),e.Pipeline.registerFunction(e.hi.stopWordFilter,"stopWordFilter-hi")}}); \ No newline at end of file
diff --git a/freetype/docs/reference/assets/javascripts/lunr/min/lunr.hu.min.js b/freetype/docs/reference/assets/javascripts/lunr/min/lunr.hu.min.js
new file mode 100644
index 00000000..ed9d909f
--- /dev/null
+++ b/freetype/docs/reference/assets/javascripts/lunr/min/lunr.hu.min.js
@@ -0,0 +1,18 @@
+/*!
+ * Lunr languages, `Hungarian` language
+ * https://github.com/MihaiValentin/lunr-languages
+ *
+ * Copyright 2014, Mihai Valentin
+ * http://www.mozilla.org/MPL/
+ */
+/*!
+ * based on
+ * Snowball JavaScript Library v0.3
+ * http://code.google.com/p/urim/
+ * http://snowball.tartarus.org/
+ *
+ * Copyright 2010, Oleg Mazko
+ * http://www.mozilla.org/MPL/
+ */
+
+!function(e,n){"function"==typeof define&&define.amd?define(n):"object"==typeof exports?module.exports=n():n()(e.lunr)}(this,function(){return function(e){if(void 0===e)throw new Error("Lunr is not present. Please include / require Lunr before this script.");if(void 0===e.stemmerSupport)throw new Error("Lunr stemmer support is not present. Please include / require Lunr stemmer support before this script.");e.hu=function(){this.pipeline.reset(),this.pipeline.add(e.hu.trimmer,e.hu.stopWordFilter,e.hu.stemmer),this.searchPipeline&&(this.searchPipeline.reset(),this.searchPipeline.add(e.hu.stemmer))},e.hu.wordCharacters="A-Za-zªºÀ-ÖØ-öø-ʸˠ-ˤᴀ-ᴥᴬ-ᵜᵢ-ᵥᵫ-ᵷᵹ-ᶾḀ-ỿⁱⁿₐ-ₜKÅℲⅎⅠ-ↈⱠ-ⱿꜢ-ꞇꞋ-ꞭꞰ-ꞷꟷ-ꟿꬰ-ꭚꭜ-ꭤff-stA-Za-z",e.hu.trimmer=e.trimmerSupport.generateTrimmer(e.hu.wordCharacters),e.Pipeline.registerFunction(e.hu.trimmer,"trimmer-hu"),e.hu.stemmer=function(){var n=e.stemmerSupport.Among,r=e.stemmerSupport.SnowballProgram,i=new function(){function e(){var e,n=L.cursor;if(d=L.limit,L.in_grouping(W,97,252))for(;;){if(e=L.cursor,L.out_grouping(W,97,252))return L.cursor=e,L.find_among(g,8)||(L.cursor=e,e<L.limit&&L.cursor++),void(d=L.cursor);if(L.cursor=e,e>=L.limit)return void(d=e);L.cursor++}if(L.cursor=n,L.out_grouping(W,97,252)){for(;!L.in_grouping(W,97,252);){if(L.cursor>=L.limit)return;L.cursor++}d=L.cursor}}function i(){return d<=L.cursor}function a(){var e;if(L.ket=L.cursor,(e=L.find_among_b(h,2))&&(L.bra=L.cursor,i()))switch(e){case 1:L.slice_from("a");break;case 2:L.slice_from("e")}}function t(){var e=L.limit-L.cursor;return!!L.find_among_b(p,23)&&(L.cursor=L.limit-e,!0)}function s(){if(L.cursor>L.limit_backward){L.cursor--,L.ket=L.cursor;var e=L.cursor-1;L.limit_backward<=e&&e<=L.limit&&(L.cursor=e,L.bra=e,L.slice_del())}}function c(){var e;if(L.ket=L.cursor,(e=L.find_among_b(_,2))&&(L.bra=L.cursor,i())){if((1==e||2==e)&&!t())return;L.slice_del(),s()}}function o(){L.ket=L.cursor,L.find_among_b(v,44)&&(L.bra=L.cursor,i()&&(L.slice_del(),a()))}function w(){var e;if(L.ket=L.cursor,(e=L.find_among_b(z,3))&&(L.bra=L.cursor,i()))switch(e){case 1:L.slice_from("e");break;case 2:case 3:L.slice_from("a")}}function l(){var e;if(L.ket=L.cursor,(e=L.find_among_b(y,6))&&(L.bra=L.cursor,i()))switch(e){case 1:case 2:L.slice_del();break;case 3:L.slice_from("a");break;case 4:L.slice_from("e")}}function u(){var e;if(L.ket=L.cursor,(e=L.find_among_b(j,2))&&(L.bra=L.cursor,i())){if((1==e||2==e)&&!t())return;L.slice_del(),s()}}function m(){var e;if(L.ket=L.cursor,(e=L.find_among_b(C,7))&&(L.bra=L.cursor,i()))switch(e){case 1:L.slice_from("a");break;case 2:L.slice_from("e");break;case 3:case 4:case 5:case 6:case 7:L.slice_del()}}function k(){var e;if(L.ket=L.cursor,(e=L.find_among_b(P,12))&&(L.bra=L.cursor,i()))switch(e){case 1:case 4:case 7:case 9:L.slice_del();break;case 2:case 5:case 8:L.slice_from("e");break;case 3:case 6:L.slice_from("a")}}function f(){var e;if(L.ket=L.cursor,(e=L.find_among_b(F,31))&&(L.bra=L.cursor,i()))switch(e){case 1:case 4:case 7:case 8:case 9:case 12:case 13:case 16:case 17:case 18:L.slice_del();break;case 2:case 5:case 10:case 14:case 19:L.slice_from("a");break;case 3:case 6:case 11:case 15:case 20:L.slice_from("e")}}function b(){var e;if(L.ket=L.cursor,(e=L.find_among_b(S,42))&&(L.bra=L.cursor,i()))switch(e){case 1:case 4:case 5:case 6:case 9:case 10:case 11:case 14:case 15:case 16:case 17:case 20:case 21:case 24:case 25:case 26:case 29:L.slice_del();break;case 2:case 7:case 12:case 18:case 22:case 27:L.slice_from("a");break;case 3:case 8:case 13:case 19:case 23:case 28:L.slice_from("e")}}var d,g=[new n("cs",-1,-1),new n("dzs",-1,-1),new n("gy",-1,-1),new n("ly",-1,-1),new n("ny",-1,-1),new n("sz",-1,-1),new n("ty",-1,-1),new n("zs",-1,-1)],h=[new n("á",-1,1),new n("é",-1,2)],p=[new n("bb",-1,-1),new n("cc",-1,-1),new n("dd",-1,-1),new n("ff",-1,-1),new n("gg",-1,-1),new n("jj",-1,-1),new n("kk",-1,-1),new n("ll",-1,-1),new n("mm",-1,-1),new n("nn",-1,-1),new n("pp",-1,-1),new n("rr",-1,-1),new n("ccs",-1,-1),new n("ss",-1,-1),new n("zzs",-1,-1),new n("tt",-1,-1),new n("vv",-1,-1),new n("ggy",-1,-1),new n("lly",-1,-1),new n("nny",-1,-1),new n("tty",-1,-1),new n("ssz",-1,-1),new n("zz",-1,-1)],_=[new n("al",-1,1),new n("el",-1,2)],v=[new n("ba",-1,-1),new n("ra",-1,-1),new n("be",-1,-1),new n("re",-1,-1),new n("ig",-1,-1),new n("nak",-1,-1),new n("nek",-1,-1),new n("val",-1,-1),new n("vel",-1,-1),new n("ul",-1,-1),new n("nál",-1,-1),new n("nél",-1,-1),new n("ból",-1,-1),new n("ról",-1,-1),new n("tól",-1,-1),new n("bõl",-1,-1),new n("rõl",-1,-1),new n("tõl",-1,-1),new n("ül",-1,-1),new n("n",-1,-1),new n("an",19,-1),new n("ban",20,-1),new n("en",19,-1),new n("ben",22,-1),new n("képpen",22,-1),new n("on",19,-1),new n("ön",19,-1),new n("képp",-1,-1),new n("kor",-1,-1),new n("t",-1,-1),new n("at",29,-1),new n("et",29,-1),new n("ként",29,-1),new n("anként",32,-1),new n("enként",32,-1),new n("onként",32,-1),new n("ot",29,-1),new n("ért",29,-1),new n("öt",29,-1),new n("hez",-1,-1),new n("hoz",-1,-1),new n("höz",-1,-1),new n("vá",-1,-1),new n("vé",-1,-1)],z=[new n("án",-1,2),new n("én",-1,1),new n("ánként",-1,3)],y=[new n("stul",-1,2),new n("astul",0,1),new n("ástul",0,3),new n("stül",-1,2),new n("estül",3,1),new n("éstül",3,4)],j=[new n("á",-1,1),new n("é",-1,2)],C=[new n("k",-1,7),new n("ak",0,4),new n("ek",0,6),new n("ok",0,5),new n("ák",0,1),new n("ék",0,2),new n("ök",0,3)],P=[new n("éi",-1,7),new n("áéi",0,6),new n("ééi",0,5),new n("é",-1,9),new n("ké",3,4),new n("aké",4,1),new n("eké",4,1),new n("oké",4,1),new n("áké",4,3),new n("éké",4,2),new n("öké",4,1),new n("éé",3,8)],F=[new n("a",-1,18),new n("ja",0,17),new n("d",-1,16),new n("ad",2,13),new n("ed",2,13),new n("od",2,13),new n("ád",2,14),new n("éd",2,15),new n("öd",2,13),new n("e",-1,18),new n("je",9,17),new n("nk",-1,4),new n("unk",11,1),new n("ánk",11,2),new n("énk",11,3),new n("ünk",11,1),new n("uk",-1,8),new n("juk",16,7),new n("ájuk",17,5),new n("ük",-1,8),new n("jük",19,7),new n("éjük",20,6),new n("m",-1,12),new n("am",22,9),new n("em",22,9),new n("om",22,9),new n("ám",22,10),new n("ém",22,11),new n("o",-1,18),new n("á",-1,19),new n("é",-1,20)],S=[new n("id",-1,10),new n("aid",0,9),new n("jaid",1,6),new n("eid",0,9),new n("jeid",3,6),new n("áid",0,7),new n("éid",0,8),new n("i",-1,15),new n("ai",7,14),new n("jai",8,11),new n("ei",7,14),new n("jei",10,11),new n("ái",7,12),new n("éi",7,13),new n("itek",-1,24),new n("eitek",14,21),new n("jeitek",15,20),new n("éitek",14,23),new n("ik",-1,29),new n("aik",18,26),new n("jaik",19,25),new n("eik",18,26),new n("jeik",21,25),new n("áik",18,27),new n("éik",18,28),new n("ink",-1,20),new n("aink",25,17),new n("jaink",26,16),new n("eink",25,17),new n("jeink",28,16),new n("áink",25,18),new n("éink",25,19),new n("aitok",-1,21),new n("jaitok",32,20),new n("áitok",-1,22),new n("im",-1,5),new n("aim",35,4),new n("jaim",36,1),new n("eim",35,4),new n("jeim",38,1),new n("áim",35,2),new n("éim",35,3)],W=[17,65,16,0,0,0,0,0,0,0,0,0,0,0,0,0,1,17,52,14],L=new r;this.setCurrent=function(e){L.setCurrent(e)},this.getCurrent=function(){return L.getCurrent()},this.stem=function(){var n=L.cursor;return e(),L.limit_backward=n,L.cursor=L.limit,c(),L.cursor=L.limit,o(),L.cursor=L.limit,w(),L.cursor=L.limit,l(),L.cursor=L.limit,u(),L.cursor=L.limit,k(),L.cursor=L.limit,f(),L.cursor=L.limit,b(),L.cursor=L.limit,m(),!0}};return function(e){return"function"==typeof e.update?e.update(function(e){return i.setCurrent(e),i.stem(),i.getCurrent()}):(i.setCurrent(e),i.stem(),i.getCurrent())}}(),e.Pipeline.registerFunction(e.hu.stemmer,"stemmer-hu"),e.hu.stopWordFilter=e.generateStopWordFilter("a abban ahhoz ahogy ahol aki akik akkor alatt amely amelyek amelyekben amelyeket amelyet amelynek ami amikor amit amolyan amíg annak arra arról az azok azon azonban azt aztán azután azzal azért be belül benne bár cikk cikkek cikkeket csak de e ebben eddig egy egyes egyetlen egyik egyre egyéb egész ehhez ekkor el ellen elsõ elég elõ elõször elõtt emilyen ennek erre ez ezek ezen ezt ezzel ezért fel felé hanem hiszen hogy hogyan igen ill ill. illetve ilyen ilyenkor ismét ison itt jobban jó jól kell kellett keressünk keresztül ki kívül között közül legalább legyen lehet lehetett lenne lenni lesz lett maga magát majd majd meg mellett mely melyek mert mi mikor milyen minden mindenki mindent mindig mint mintha mit mivel miért most már más másik még míg nagy nagyobb nagyon ne nekem neki nem nincs néha néhány nélkül olyan ott pedig persze rá s saját sem semmi sok sokat sokkal szemben szerint szinte számára talán tehát teljes tovább továbbá több ugyanis utolsó után utána vagy vagyis vagyok valaki valami valamint való van vannak vele vissza viszont volna volt voltak voltam voltunk által általában át én éppen és így õ õk õket össze úgy új újabb újra".split(" ")),e.Pipeline.registerFunction(e.hu.stopWordFilter,"stopWordFilter-hu")}}); \ No newline at end of file
diff --git a/freetype/docs/reference/assets/javascripts/lunr/min/lunr.it.min.js b/freetype/docs/reference/assets/javascripts/lunr/min/lunr.it.min.js
new file mode 100644
index 00000000..344b6a3c
--- /dev/null
+++ b/freetype/docs/reference/assets/javascripts/lunr/min/lunr.it.min.js
@@ -0,0 +1,18 @@
+/*!
+ * Lunr languages, `Italian` language
+ * https://github.com/MihaiValentin/lunr-languages
+ *
+ * Copyright 2014, Mihai Valentin
+ * http://www.mozilla.org/MPL/
+ */
+/*!
+ * based on
+ * Snowball JavaScript Library v0.3
+ * http://code.google.com/p/urim/
+ * http://snowball.tartarus.org/
+ *
+ * Copyright 2010, Oleg Mazko
+ * http://www.mozilla.org/MPL/
+ */
+
+!function(e,r){"function"==typeof define&&define.amd?define(r):"object"==typeof exports?module.exports=r():r()(e.lunr)}(this,function(){return function(e){if(void 0===e)throw new Error("Lunr is not present. Please include / require Lunr before this script.");if(void 0===e.stemmerSupport)throw new Error("Lunr stemmer support is not present. Please include / require Lunr stemmer support before this script.");e.it=function(){this.pipeline.reset(),this.pipeline.add(e.it.trimmer,e.it.stopWordFilter,e.it.stemmer),this.searchPipeline&&(this.searchPipeline.reset(),this.searchPipeline.add(e.it.stemmer))},e.it.wordCharacters="A-Za-zªºÀ-ÖØ-öø-ʸˠ-ˤᴀ-ᴥᴬ-ᵜᵢ-ᵥᵫ-ᵷᵹ-ᶾḀ-ỿⁱⁿₐ-ₜKÅℲⅎⅠ-ↈⱠ-ⱿꜢ-ꞇꞋ-ꞭꞰ-ꞷꟷ-ꟿꬰ-ꭚꭜ-ꭤff-stA-Za-z",e.it.trimmer=e.trimmerSupport.generateTrimmer(e.it.wordCharacters),e.Pipeline.registerFunction(e.it.trimmer,"trimmer-it"),e.it.stemmer=function(){var r=e.stemmerSupport.Among,n=e.stemmerSupport.SnowballProgram,i=new function(){function e(e,r,n){return!(!x.eq_s(1,e)||(x.ket=x.cursor,!x.in_grouping(L,97,249)))&&(x.slice_from(r),x.cursor=n,!0)}function i(){for(var r,n,i,o,t=x.cursor;;){if(x.bra=x.cursor,r=x.find_among(h,7))switch(x.ket=x.cursor,r){case 1:x.slice_from("à");continue;case 2:x.slice_from("è");continue;case 3:x.slice_from("ì");continue;case 4:x.slice_from("ò");continue;case 5:x.slice_from("ù");continue;case 6:x.slice_from("qU");continue;case 7:if(x.cursor>=x.limit)break;x.cursor++;continue}break}for(x.cursor=t;;)for(n=x.cursor;;){if(i=x.cursor,x.in_grouping(L,97,249)){if(x.bra=x.cursor,o=x.cursor,e("u","U",i))break;if(x.cursor=o,e("i","I",i))break}if(x.cursor=i,x.cursor>=x.limit)return void(x.cursor=n);x.cursor++}}function o(e){if(x.cursor=e,!x.in_grouping(L,97,249))return!1;for(;!x.out_grouping(L,97,249);){if(x.cursor>=x.limit)return!1;x.cursor++}return!0}function t(){if(x.in_grouping(L,97,249)){var e=x.cursor;if(x.out_grouping(L,97,249)){for(;!x.in_grouping(L,97,249);){if(x.cursor>=x.limit)return o(e);x.cursor++}return!0}return o(e)}return!1}function s(){var e,r=x.cursor;if(!t()){if(x.cursor=r,!x.out_grouping(L,97,249))return;if(e=x.cursor,x.out_grouping(L,97,249)){for(;!x.in_grouping(L,97,249);){if(x.cursor>=x.limit)return x.cursor=e,void(x.in_grouping(L,97,249)&&x.cursor<x.limit&&x.cursor++);x.cursor++}return void(k=x.cursor)}if(x.cursor=e,!x.in_grouping(L,97,249)||x.cursor>=x.limit)return;x.cursor++}k=x.cursor}function a(){for(;!x.in_grouping(L,97,249);){if(x.cursor>=x.limit)return!1;x.cursor++}for(;!x.out_grouping(L,97,249);){if(x.cursor>=x.limit)return!1;x.cursor++}return!0}function u(){var e=x.cursor;k=x.limit,p=k,g=k,s(),x.cursor=e,a()&&(p=x.cursor,a()&&(g=x.cursor))}function c(){for(var e;;){if(x.bra=x.cursor,!(e=x.find_among(q,3)))break;switch(x.ket=x.cursor,e){case 1:x.slice_from("i");break;case 2:x.slice_from("u");break;case 3:if(x.cursor>=x.limit)return;x.cursor++}}}function w(){return k<=x.cursor}function l(){return p<=x.cursor}function m(){return g<=x.cursor}function f(){var e;if(x.ket=x.cursor,x.find_among_b(C,37)&&(x.bra=x.cursor,(e=x.find_among_b(z,5))&&w()))switch(e){case 1:x.slice_del();break;case 2:x.slice_from("e")}}function v(){var e;if(x.ket=x.cursor,!(e=x.find_among_b(S,51)))return!1;switch(x.bra=x.cursor,e){case 1:if(!m())return!1;x.slice_del();break;case 2:if(!m())return!1;x.slice_del(),x.ket=x.cursor,x.eq_s_b(2,"ic")&&(x.bra=x.cursor,m()&&x.slice_del());break;case 3:if(!m())return!1;x.slice_from("log");break;case 4:if(!m())return!1;x.slice_from("u");break;case 5:if(!m())return!1;x.slice_from("ente");break;case 6:if(!w())return!1;x.slice_del();break;case 7:if(!l())return!1;x.slice_del(),x.ket=x.cursor,e=x.find_among_b(P,4),e&&(x.bra=x.cursor,m()&&(x.slice_del(),1==e&&(x.ket=x.cursor,x.eq_s_b(2,"at")&&(x.bra=x.cursor,m()&&x.slice_del()))));break;case 8:if(!m())return!1;x.slice_del(),x.ket=x.cursor,e=x.find_among_b(F,3),e&&(x.bra=x.cursor,1==e&&m()&&x.slice_del());break;case 9:if(!m())return!1;x.slice_del(),x.ket=x.cursor,x.eq_s_b(2,"at")&&(x.bra=x.cursor,m()&&(x.slice_del(),x.ket=x.cursor,x.eq_s_b(2,"ic")&&(x.bra=x.cursor,m()&&x.slice_del())))}return!0}function b(){var e,r;x.cursor>=k&&(r=x.limit_backward,x.limit_backward=k,x.ket=x.cursor,e=x.find_among_b(W,87),e&&(x.bra=x.cursor,1==e&&x.slice_del()),x.limit_backward=r)}function d(){var e=x.limit-x.cursor;if(x.ket=x.cursor,x.in_grouping_b(y,97,242)&&(x.bra=x.cursor,w()&&(x.slice_del(),x.ket=x.cursor,x.eq_s_b(1,"i")&&(x.bra=x.cursor,w()))))return void x.slice_del();x.cursor=x.limit-e}function _(){d(),x.ket=x.cursor,x.eq_s_b(1,"h")&&(x.bra=x.cursor,x.in_grouping_b(U,99,103)&&w()&&x.slice_del())}var g,p,k,h=[new r("",-1,7),new r("qu",0,6),new r("á",0,1),new r("é",0,2),new r("í",0,3),new r("ó",0,4),new r("ú",0,5)],q=[new r("",-1,3),new r("I",0,1),new r("U",0,2)],C=[new r("la",-1,-1),new r("cela",0,-1),new r("gliela",0,-1),new r("mela",0,-1),new r("tela",0,-1),new r("vela",0,-1),new r("le",-1,-1),new r("cele",6,-1),new r("gliele",6,-1),new r("mele",6,-1),new r("tele",6,-1),new r("vele",6,-1),new r("ne",-1,-1),new r("cene",12,-1),new r("gliene",12,-1),new r("mene",12,-1),new r("sene",12,-1),new r("tene",12,-1),new r("vene",12,-1),new r("ci",-1,-1),new r("li",-1,-1),new r("celi",20,-1),new r("glieli",20,-1),new r("meli",20,-1),new r("teli",20,-1),new r("veli",20,-1),new r("gli",20,-1),new r("mi",-1,-1),new r("si",-1,-1),new r("ti",-1,-1),new r("vi",-1,-1),new r("lo",-1,-1),new r("celo",31,-1),new r("glielo",31,-1),new r("melo",31,-1),new r("telo",31,-1),new r("velo",31,-1)],z=[new r("ando",-1,1),new r("endo",-1,1),new r("ar",-1,2),new r("er",-1,2),new r("ir",-1,2)],P=[new r("ic",-1,-1),new r("abil",-1,-1),new r("os",-1,-1),new r("iv",-1,1)],F=[new r("ic",-1,1),new r("abil",-1,1),new r("iv",-1,1)],S=[new r("ica",-1,1),new r("logia",-1,3),new r("osa",-1,1),new r("ista",-1,1),new r("iva",-1,9),new r("anza",-1,1),new r("enza",-1,5),new r("ice",-1,1),new r("atrice",7,1),new r("iche",-1,1),new r("logie",-1,3),new r("abile",-1,1),new r("ibile",-1,1),new r("usione",-1,4),new r("azione",-1,2),new r("uzione",-1,4),new r("atore",-1,2),new r("ose",-1,1),new r("ante",-1,1),new r("mente",-1,1),new r("amente",19,7),new r("iste",-1,1),new r("ive",-1,9),new r("anze",-1,1),new r("enze",-1,5),new r("ici",-1,1),new r("atrici",25,1),new r("ichi",-1,1),new r("abili",-1,1),new r("ibili",-1,1),new r("ismi",-1,1),new r("usioni",-1,4),new r("azioni",-1,2),new r("uzioni",-1,4),new r("atori",-1,2),new r("osi",-1,1),new r("anti",-1,1),new r("amenti",-1,6),new r("imenti",-1,6),new r("isti",-1,1),new r("ivi",-1,9),new r("ico",-1,1),new r("ismo",-1,1),new r("oso",-1,1),new r("amento",-1,6),new r("imento",-1,6),new r("ivo",-1,9),new r("ità",-1,8),new r("istà",-1,1),new r("istè",-1,1),new r("istì",-1,1)],W=[new r("isca",-1,1),new r("enda",-1,1),new r("ata",-1,1),new r("ita",-1,1),new r("uta",-1,1),new r("ava",-1,1),new r("eva",-1,1),new r("iva",-1,1),new r("erebbe",-1,1),new r("irebbe",-1,1),new r("isce",-1,1),new r("ende",-1,1),new r("are",-1,1),new r("ere",-1,1),new r("ire",-1,1),new r("asse",-1,1),new r("ate",-1,1),new r("avate",16,1),new r("evate",16,1),new r("ivate",16,1),new r("ete",-1,1),new r("erete",20,1),new r("irete",20,1),new r("ite",-1,1),new r("ereste",-1,1),new r("ireste",-1,1),new r("ute",-1,1),new r("erai",-1,1),new r("irai",-1,1),new r("isci",-1,1),new r("endi",-1,1),new r("erei",-1,1),new r("irei",-1,1),new r("assi",-1,1),new r("ati",-1,1),new r("iti",-1,1),new r("eresti",-1,1),new r("iresti",-1,1),new r("uti",-1,1),new r("avi",-1,1),new r("evi",-1,1),new r("ivi",-1,1),new r("isco",-1,1),new r("ando",-1,1),new r("endo",-1,1),new r("Yamo",-1,1),new r("iamo",-1,1),new r("avamo",-1,1),new r("evamo",-1,1),new r("ivamo",-1,1),new r("eremo",-1,1),new r("iremo",-1,1),new r("assimo",-1,1),new r("ammo",-1,1),new r("emmo",-1,1),new r("eremmo",54,1),new r("iremmo",54,1),new r("immo",-1,1),new r("ano",-1,1),new r("iscano",58,1),new r("avano",58,1),new r("evano",58,1),new r("ivano",58,1),new r("eranno",-1,1),new r("iranno",-1,1),new r("ono",-1,1),new r("iscono",65,1),new r("arono",65,1),new r("erono",65,1),new r("irono",65,1),new r("erebbero",-1,1),new r("irebbero",-1,1),new r("assero",-1,1),new r("essero",-1,1),new r("issero",-1,1),new r("ato",-1,1),new r("ito",-1,1),new r("uto",-1,1),new r("avo",-1,1),new r("evo",-1,1),new r("ivo",-1,1),new r("ar",-1,1),new r("ir",-1,1),new r("erà",-1,1),new r("irà",-1,1),new r("erò",-1,1),new r("irò",-1,1)],L=[17,65,16,0,0,0,0,0,0,0,0,0,0,0,0,128,128,8,2,1],y=[17,65,0,0,0,0,0,0,0,0,0,0,0,0,0,128,128,8,2],U=[17],x=new n;this.setCurrent=function(e){x.setCurrent(e)},this.getCurrent=function(){return x.getCurrent()},this.stem=function(){var e=x.cursor;return i(),x.cursor=e,u(),x.limit_backward=e,x.cursor=x.limit,f(),x.cursor=x.limit,v()||(x.cursor=x.limit,b()),x.cursor=x.limit,_(),x.cursor=x.limit_backward,c(),!0}};return function(e){return"function"==typeof e.update?e.update(function(e){return i.setCurrent(e),i.stem(),i.getCurrent()}):(i.setCurrent(e),i.stem(),i.getCurrent())}}(),e.Pipeline.registerFunction(e.it.stemmer,"stemmer-it"),e.it.stopWordFilter=e.generateStopWordFilter("a abbia abbiamo abbiano abbiate ad agl agli ai al all alla alle allo anche avemmo avendo avesse avessero avessi avessimo aveste avesti avete aveva avevamo avevano avevate avevi avevo avrai avranno avrebbe avrebbero avrei avremmo avremo avreste avresti avrete avrà avrò avuta avute avuti avuto c che chi ci coi col come con contro cui da dagl dagli dai dal dall dalla dalle dallo degl degli dei del dell della delle dello di dov dove e ebbe ebbero ebbi ed era erano eravamo eravate eri ero essendo faccia facciamo facciano facciate faccio facemmo facendo facesse facessero facessi facessimo faceste facesti faceva facevamo facevano facevate facevi facevo fai fanno farai faranno farebbe farebbero farei faremmo faremo fareste faresti farete farà farò fece fecero feci fosse fossero fossi fossimo foste fosti fu fui fummo furono gli ha hai hanno ho i il in io l la le lei li lo loro lui ma mi mia mie miei mio ne negl negli nei nel nell nella nelle nello noi non nostra nostre nostri nostro o per perché più quale quanta quante quanti quanto quella quelle quelli quello questa queste questi questo sarai saranno sarebbe sarebbero sarei saremmo saremo sareste saresti sarete sarà sarò se sei si sia siamo siano siate siete sono sta stai stando stanno starai staranno starebbe starebbero starei staremmo staremo stareste staresti starete starà starò stava stavamo stavano stavate stavi stavo stemmo stesse stessero stessi stessimo steste stesti stette stettero stetti stia stiamo stiano stiate sto su sua sue sugl sugli sui sul sull sulla sulle sullo suo suoi ti tra tu tua tue tuo tuoi tutti tutto un una uno vi voi vostra vostre vostri vostro è".split(" ")),e.Pipeline.registerFunction(e.it.stopWordFilter,"stopWordFilter-it")}}); \ No newline at end of file
diff --git a/freetype/docs/reference/assets/javascripts/lunr/min/lunr.ja.min.js b/freetype/docs/reference/assets/javascripts/lunr/min/lunr.ja.min.js
new file mode 100644
index 00000000..5f254ebe
--- /dev/null
+++ b/freetype/docs/reference/assets/javascripts/lunr/min/lunr.ja.min.js
@@ -0,0 +1 @@
+!function(e,r){"function"==typeof define&&define.amd?define(r):"object"==typeof exports?module.exports=r():r()(e.lunr)}(this,function(){return function(e){if(void 0===e)throw new Error("Lunr is not present. Please include / require Lunr before this script.");if(void 0===e.stemmerSupport)throw new Error("Lunr stemmer support is not present. Please include / require Lunr stemmer support before this script.");var r="2"==e.version[0];e.ja=function(){this.pipeline.reset(),this.pipeline.add(e.ja.trimmer,e.ja.stopWordFilter,e.ja.stemmer),r?this.tokenizer=e.ja.tokenizer:(e.tokenizer&&(e.tokenizer=e.ja.tokenizer),this.tokenizerFn&&(this.tokenizerFn=e.ja.tokenizer))};var t=new e.TinySegmenter;e.ja.tokenizer=function(i){var n,o,s,p,a,u,m,l,c,f;if(!arguments.length||null==i||void 0==i)return[];if(Array.isArray(i))return i.map(function(t){return r?new e.Token(t.toLowerCase()):t.toLowerCase()});for(o=i.toString().toLowerCase().replace(/^\s+/,""),n=o.length-1;n>=0;n--)if(/\S/.test(o.charAt(n))){o=o.substring(0,n+1);break}for(a=[],s=o.length,c=0,l=0;c<=s;c++)if(u=o.charAt(c),m=c-l,u.match(/\s/)||c==s){if(m>0)for(p=t.segment(o.slice(l,c)).filter(function(e){return!!e}),f=l,n=0;n<p.length;n++)r?a.push(new e.Token(p[n],{position:[f,p[n].length],index:a.length})):a.push(p[n]),f+=p[n].length;l=c+1}return a},e.ja.stemmer=function(){return function(e){return e}}(),e.Pipeline.registerFunction(e.ja.stemmer,"stemmer-ja"),e.ja.wordCharacters="一二三四五六七八九十百千万億兆一-龠々〆ヵヶぁ-んァ-ヴーア-ン゙a-zA-Za-zA-Z0-90-9",e.ja.trimmer=e.trimmerSupport.generateTrimmer(e.ja.wordCharacters),e.Pipeline.registerFunction(e.ja.trimmer,"trimmer-ja"),e.ja.stopWordFilter=e.generateStopWordFilter("これ それ あれ この その あの ここ そこ あそこ こちら どこ だれ なに なん 何 私 貴方 貴方方 我々 私達 あの人 あのかた 彼女 彼 です あります おります います は が の に を で え から まで より も どの と し それで しかし".split(" ")),e.Pipeline.registerFunction(e.ja.stopWordFilter,"stopWordFilter-ja"),e.jp=e.ja,e.Pipeline.registerFunction(e.jp.stemmer,"stemmer-jp"),e.Pipeline.registerFunction(e.jp.trimmer,"trimmer-jp"),e.Pipeline.registerFunction(e.jp.stopWordFilter,"stopWordFilter-jp")}}); \ No newline at end of file
diff --git a/freetype/docs/reference/assets/javascripts/lunr/min/lunr.jp.min.js b/freetype/docs/reference/assets/javascripts/lunr/min/lunr.jp.min.js
new file mode 100644
index 00000000..c055ebaf
--- /dev/null
+++ b/freetype/docs/reference/assets/javascripts/lunr/min/lunr.jp.min.js
@@ -0,0 +1 @@
+module.exports=require("./lunr.ja"); \ No newline at end of file
diff --git a/freetype/docs/reference/assets/javascripts/lunr/min/lunr.multi.min.js b/freetype/docs/reference/assets/javascripts/lunr/min/lunr.multi.min.js
new file mode 100644
index 00000000..7debad09
--- /dev/null
+++ b/freetype/docs/reference/assets/javascripts/lunr/min/lunr.multi.min.js
@@ -0,0 +1 @@
+!function(e,t){"function"==typeof define&&define.amd?define(t):"object"==typeof exports?module.exports=t():t()(e.lunr)}(this,function(){return function(e){e.multiLanguage=function(){for(var t=Array.prototype.slice.call(arguments),i=t.join("-"),r="",n=[],s=[],p=0;p<t.length;++p)"en"==t[p]?(r+="\\w",n.unshift(e.stopWordFilter),n.push(e.stemmer),s.push(e.stemmer)):(r+=e[t[p]].wordCharacters,e[t[p]].stopWordFilter&&n.unshift(e[t[p]].stopWordFilter),e[t[p]].stemmer&&(n.push(e[t[p]].stemmer),s.push(e[t[p]].stemmer)));var o=e.trimmerSupport.generateTrimmer(r);return e.Pipeline.registerFunction(o,"lunr-multi-trimmer-"+i),n.unshift(o),function(){this.pipeline.reset(),this.pipeline.add.apply(this.pipeline,n),this.searchPipeline&&(this.searchPipeline.reset(),this.searchPipeline.add.apply(this.searchPipeline,s))}}}}); \ No newline at end of file
diff --git a/freetype/docs/reference/assets/javascripts/lunr/min/lunr.nl.min.js b/freetype/docs/reference/assets/javascripts/lunr/min/lunr.nl.min.js
new file mode 100644
index 00000000..c4a25359
--- /dev/null
+++ b/freetype/docs/reference/assets/javascripts/lunr/min/lunr.nl.min.js
@@ -0,0 +1,18 @@
+/*!
+ * Lunr languages, `Dutch` language
+ * https://github.com/MihaiValentin/lunr-languages
+ *
+ * Copyright 2014, Mihai Valentin
+ * http://www.mozilla.org/MPL/
+ */
+/*!
+ * based on
+ * Snowball JavaScript Library v0.3
+ * http://code.google.com/p/urim/
+ * http://snowball.tartarus.org/
+ *
+ * Copyright 2010, Oleg Mazko
+ * http://www.mozilla.org/MPL/
+ */
+
+!function(r,e){"function"==typeof define&&define.amd?define(e):"object"==typeof exports?module.exports=e():e()(r.lunr)}(this,function(){return function(r){if(void 0===r)throw new Error("Lunr is not present. Please include / require Lunr before this script.");if(void 0===r.stemmerSupport)throw new Error("Lunr stemmer support is not present. Please include / require Lunr stemmer support before this script.");r.nl=function(){this.pipeline.reset(),this.pipeline.add(r.nl.trimmer,r.nl.stopWordFilter,r.nl.stemmer),this.searchPipeline&&(this.searchPipeline.reset(),this.searchPipeline.add(r.nl.stemmer))},r.nl.wordCharacters="A-Za-zªºÀ-ÖØ-öø-ʸˠ-ˤᴀ-ᴥᴬ-ᵜᵢ-ᵥᵫ-ᵷᵹ-ᶾḀ-ỿⁱⁿₐ-ₜKÅℲⅎⅠ-ↈⱠ-ⱿꜢ-ꞇꞋ-ꞭꞰ-ꞷꟷ-ꟿꬰ-ꭚꭜ-ꭤff-stA-Za-z",r.nl.trimmer=r.trimmerSupport.generateTrimmer(r.nl.wordCharacters),r.Pipeline.registerFunction(r.nl.trimmer,"trimmer-nl"),r.nl.stemmer=function(){var e=r.stemmerSupport.Among,i=r.stemmerSupport.SnowballProgram,n=new function(){function r(){for(var r,e,i,o=C.cursor;;){if(C.bra=C.cursor,r=C.find_among(b,11))switch(C.ket=C.cursor,r){case 1:C.slice_from("a");continue;case 2:C.slice_from("e");continue;case 3:C.slice_from("i");continue;case 4:C.slice_from("o");continue;case 5:C.slice_from("u");continue;case 6:if(C.cursor>=C.limit)break;C.cursor++;continue}break}for(C.cursor=o,C.bra=o,C.eq_s(1,"y")?(C.ket=C.cursor,C.slice_from("Y")):C.cursor=o;;)if(e=C.cursor,C.in_grouping(q,97,232)){if(i=C.cursor,C.bra=i,C.eq_s(1,"i"))C.ket=C.cursor,C.in_grouping(q,97,232)&&(C.slice_from("I"),C.cursor=e);else if(C.cursor=i,C.eq_s(1,"y"))C.ket=C.cursor,C.slice_from("Y"),C.cursor=e;else if(n(e))break}else if(n(e))break}function n(r){return C.cursor=r,r>=C.limit||(C.cursor++,!1)}function o(){_=C.limit,d=_,t()||(_=C.cursor,_<3&&(_=3),t()||(d=C.cursor))}function t(){for(;!C.in_grouping(q,97,232);){if(C.cursor>=C.limit)return!0;C.cursor++}for(;!C.out_grouping(q,97,232);){if(C.cursor>=C.limit)return!0;C.cursor++}return!1}function s(){for(var r;;)if(C.bra=C.cursor,r=C.find_among(p,3))switch(C.ket=C.cursor,r){case 1:C.slice_from("y");break;case 2:C.slice_from("i");break;case 3:if(C.cursor>=C.limit)return;C.cursor++}}function u(){return _<=C.cursor}function c(){return d<=C.cursor}function a(){var r=C.limit-C.cursor;C.find_among_b(g,3)&&(C.cursor=C.limit-r,C.ket=C.cursor,C.cursor>C.limit_backward&&(C.cursor--,C.bra=C.cursor,C.slice_del()))}function l(){var r;w=!1,C.ket=C.cursor,C.eq_s_b(1,"e")&&(C.bra=C.cursor,u()&&(r=C.limit-C.cursor,C.out_grouping_b(q,97,232)&&(C.cursor=C.limit-r,C.slice_del(),w=!0,a())))}function m(){var r;u()&&(r=C.limit-C.cursor,C.out_grouping_b(q,97,232)&&(C.cursor=C.limit-r,C.eq_s_b(3,"gem")||(C.cursor=C.limit-r,C.slice_del(),a())))}function f(){var r,e,i,n,o,t,s=C.limit-C.cursor;if(C.ket=C.cursor,r=C.find_among_b(h,5))switch(C.bra=C.cursor,r){case 1:u()&&C.slice_from("heid");break;case 2:m();break;case 3:u()&&C.out_grouping_b(j,97,232)&&C.slice_del()}if(C.cursor=C.limit-s,l(),C.cursor=C.limit-s,C.ket=C.cursor,C.eq_s_b(4,"heid")&&(C.bra=C.cursor,c()&&(e=C.limit-C.cursor,C.eq_s_b(1,"c")||(C.cursor=C.limit-e,C.slice_del(),C.ket=C.cursor,C.eq_s_b(2,"en")&&(C.bra=C.cursor,m())))),C.cursor=C.limit-s,C.ket=C.cursor,r=C.find_among_b(k,6))switch(C.bra=C.cursor,r){case 1:if(c()){if(C.slice_del(),i=C.limit-C.cursor,C.ket=C.cursor,C.eq_s_b(2,"ig")&&(C.bra=C.cursor,c()&&(n=C.limit-C.cursor,!C.eq_s_b(1,"e")))){C.cursor=C.limit-n,C.slice_del();break}C.cursor=C.limit-i,a()}break;case 2:c()&&(o=C.limit-C.cursor,C.eq_s_b(1,"e")||(C.cursor=C.limit-o,C.slice_del()));break;case 3:c()&&(C.slice_del(),l());break;case 4:c()&&C.slice_del();break;case 5:c()&&w&&C.slice_del()}C.cursor=C.limit-s,C.out_grouping_b(z,73,232)&&(t=C.limit-C.cursor,C.find_among_b(v,4)&&C.out_grouping_b(q,97,232)&&(C.cursor=C.limit-t,C.ket=C.cursor,C.cursor>C.limit_backward&&(C.cursor--,C.bra=C.cursor,C.slice_del())))}var d,_,w,b=[new e("",-1,6),new e("á",0,1),new e("ä",0,1),new e("é",0,2),new e("ë",0,2),new e("í",0,3),new e("ï",0,3),new e("ó",0,4),new e("ö",0,4),new e("ú",0,5),new e("ü",0,5)],p=[new e("",-1,3),new e("I",0,2),new e("Y",0,1)],g=[new e("dd",-1,-1),new e("kk",-1,-1),new e("tt",-1,-1)],h=[new e("ene",-1,2),new e("se",-1,3),new e("en",-1,2),new e("heden",2,1),new e("s",-1,3)],k=[new e("end",-1,1),new e("ig",-1,2),new e("ing",-1,1),new e("lijk",-1,3),new e("baar",-1,4),new e("bar",-1,5)],v=[new e("aa",-1,-1),new e("ee",-1,-1),new e("oo",-1,-1),new e("uu",-1,-1)],q=[17,65,16,1,0,0,0,0,0,0,0,0,0,0,0,0,128],z=[1,0,0,17,65,16,1,0,0,0,0,0,0,0,0,0,0,0,0,128],j=[17,67,16,1,0,0,0,0,0,0,0,0,0,0,0,0,128],C=new i;this.setCurrent=function(r){C.setCurrent(r)},this.getCurrent=function(){return C.getCurrent()},this.stem=function(){var e=C.cursor;return r(),C.cursor=e,o(),C.limit_backward=e,C.cursor=C.limit,f(),C.cursor=C.limit_backward,s(),!0}};return function(r){return"function"==typeof r.update?r.update(function(r){return n.setCurrent(r),n.stem(),n.getCurrent()}):(n.setCurrent(r),n.stem(),n.getCurrent())}}(),r.Pipeline.registerFunction(r.nl.stemmer,"stemmer-nl"),r.nl.stopWordFilter=r.generateStopWordFilter(" aan al alles als altijd andere ben bij daar dan dat de der deze die dit doch doen door dus een eens en er ge geen geweest haar had heb hebben heeft hem het hier hij hoe hun iemand iets ik in is ja je kan kon kunnen maar me meer men met mij mijn moet na naar niet niets nog nu of om omdat onder ons ook op over reeds te tegen toch toen tot u uit uw van veel voor want waren was wat werd wezen wie wil worden wordt zal ze zelf zich zij zijn zo zonder zou".split(" ")),r.Pipeline.registerFunction(r.nl.stopWordFilter,"stopWordFilter-nl")}}); \ No newline at end of file
diff --git a/freetype/docs/reference/assets/javascripts/lunr/min/lunr.no.min.js b/freetype/docs/reference/assets/javascripts/lunr/min/lunr.no.min.js
new file mode 100644
index 00000000..92bc7e4e
--- /dev/null
+++ b/freetype/docs/reference/assets/javascripts/lunr/min/lunr.no.min.js
@@ -0,0 +1,18 @@
+/*!
+ * Lunr languages, `Norwegian` language
+ * https://github.com/MihaiValentin/lunr-languages
+ *
+ * Copyright 2014, Mihai Valentin
+ * http://www.mozilla.org/MPL/
+ */
+/*!
+ * based on
+ * Snowball JavaScript Library v0.3
+ * http://code.google.com/p/urim/
+ * http://snowball.tartarus.org/
+ *
+ * Copyright 2010, Oleg Mazko
+ * http://www.mozilla.org/MPL/
+ */
+
+!function(e,r){"function"==typeof define&&define.amd?define(r):"object"==typeof exports?module.exports=r():r()(e.lunr)}(this,function(){return function(e){if(void 0===e)throw new Error("Lunr is not present. Please include / require Lunr before this script.");if(void 0===e.stemmerSupport)throw new Error("Lunr stemmer support is not present. Please include / require Lunr stemmer support before this script.");e.no=function(){this.pipeline.reset(),this.pipeline.add(e.no.trimmer,e.no.stopWordFilter,e.no.stemmer),this.searchPipeline&&(this.searchPipeline.reset(),this.searchPipeline.add(e.no.stemmer))},e.no.wordCharacters="A-Za-zªºÀ-ÖØ-öø-ʸˠ-ˤᴀ-ᴥᴬ-ᵜᵢ-ᵥᵫ-ᵷᵹ-ᶾḀ-ỿⁱⁿₐ-ₜKÅℲⅎⅠ-ↈⱠ-ⱿꜢ-ꞇꞋ-ꞭꞰ-ꞷꟷ-ꟿꬰ-ꭚꭜ-ꭤff-stA-Za-z",e.no.trimmer=e.trimmerSupport.generateTrimmer(e.no.wordCharacters),e.Pipeline.registerFunction(e.no.trimmer,"trimmer-no"),e.no.stemmer=function(){var r=e.stemmerSupport.Among,n=e.stemmerSupport.SnowballProgram,i=new function(){function e(){var e,r=w.cursor+3;if(a=w.limit,0<=r||r<=w.limit){for(s=r;;){if(e=w.cursor,w.in_grouping(d,97,248)){w.cursor=e;break}if(e>=w.limit)return;w.cursor=e+1}for(;!w.out_grouping(d,97,248);){if(w.cursor>=w.limit)return;w.cursor++}a=w.cursor,a<s&&(a=s)}}function i(){var e,r,n;if(w.cursor>=a&&(r=w.limit_backward,w.limit_backward=a,w.ket=w.cursor,e=w.find_among_b(m,29),w.limit_backward=r,e))switch(w.bra=w.cursor,e){case 1:w.slice_del();break;case 2:n=w.limit-w.cursor,w.in_grouping_b(c,98,122)?w.slice_del():(w.cursor=w.limit-n,w.eq_s_b(1,"k")&&w.out_grouping_b(d,97,248)&&w.slice_del());break;case 3:w.slice_from("er")}}function t(){var e,r=w.limit-w.cursor;w.cursor>=a&&(e=w.limit_backward,w.limit_backward=a,w.ket=w.cursor,w.find_among_b(u,2)?(w.bra=w.cursor,w.limit_backward=e,w.cursor=w.limit-r,w.cursor>w.limit_backward&&(w.cursor--,w.bra=w.cursor,w.slice_del())):w.limit_backward=e)}function o(){var e,r;w.cursor>=a&&(r=w.limit_backward,w.limit_backward=a,w.ket=w.cursor,e=w.find_among_b(l,11),e?(w.bra=w.cursor,w.limit_backward=r,1==e&&w.slice_del()):w.limit_backward=r)}var s,a,m=[new r("a",-1,1),new r("e",-1,1),new r("ede",1,1),new r("ande",1,1),new r("ende",1,1),new r("ane",1,1),new r("ene",1,1),new r("hetene",6,1),new r("erte",1,3),new r("en",-1,1),new r("heten",9,1),new r("ar",-1,1),new r("er",-1,1),new r("heter",12,1),new r("s",-1,2),new r("as",14,1),new r("es",14,1),new r("edes",16,1),new r("endes",16,1),new r("enes",16,1),new r("hetenes",19,1),new r("ens",14,1),new r("hetens",21,1),new r("ers",14,1),new r("ets",14,1),new r("et",-1,1),new r("het",25,1),new r("ert",-1,3),new r("ast",-1,1)],u=[new r("dt",-1,-1),new r("vt",-1,-1)],l=[new r("leg",-1,1),new r("eleg",0,1),new r("ig",-1,1),new r("eig",2,1),new r("lig",2,1),new r("elig",4,1),new r("els",-1,1),new r("lov",-1,1),new r("elov",7,1),new r("slov",7,1),new r("hetslov",9,1)],d=[17,65,16,1,0,0,0,0,0,0,0,0,0,0,0,0,48,0,128],c=[119,125,149,1],w=new n;this.setCurrent=function(e){w.setCurrent(e)},this.getCurrent=function(){return w.getCurrent()},this.stem=function(){var r=w.cursor;return e(),w.limit_backward=r,w.cursor=w.limit,i(),w.cursor=w.limit,t(),w.cursor=w.limit,o(),!0}};return function(e){return"function"==typeof e.update?e.update(function(e){return i.setCurrent(e),i.stem(),i.getCurrent()}):(i.setCurrent(e),i.stem(),i.getCurrent())}}(),e.Pipeline.registerFunction(e.no.stemmer,"stemmer-no"),e.no.stopWordFilter=e.generateStopWordFilter("alle at av bare begge ble blei bli blir blitt både båe da de deg dei deim deira deires dem den denne der dere deres det dette di din disse ditt du dykk dykkar då eg ein eit eitt eller elles en enn er et ett etter for fordi fra før ha hadde han hans har hennar henne hennes her hjå ho hoe honom hoss hossen hun hva hvem hver hvilke hvilken hvis hvor hvordan hvorfor i ikke ikkje ikkje ingen ingi inkje inn inni ja jeg kan kom korleis korso kun kunne kva kvar kvarhelst kven kvi kvifor man mange me med medan meg meget mellom men mi min mine mitt mot mykje ned no noe noen noka noko nokon nokor nokre nå når og også om opp oss over på samme seg selv si si sia sidan siden sin sine sitt sjøl skal skulle slik so som som somme somt så sånn til um upp ut uten var vart varte ved vere verte vi vil ville vore vors vort vår være være vært å".split(" ")),e.Pipeline.registerFunction(e.no.stopWordFilter,"stopWordFilter-no")}}); \ No newline at end of file
diff --git a/freetype/docs/reference/assets/javascripts/lunr/min/lunr.pt.min.js b/freetype/docs/reference/assets/javascripts/lunr/min/lunr.pt.min.js
new file mode 100644
index 00000000..6c16996d
--- /dev/null
+++ b/freetype/docs/reference/assets/javascripts/lunr/min/lunr.pt.min.js
@@ -0,0 +1,18 @@
+/*!
+ * Lunr languages, `Portuguese` language
+ * https://github.com/MihaiValentin/lunr-languages
+ *
+ * Copyright 2014, Mihai Valentin
+ * http://www.mozilla.org/MPL/
+ */
+/*!
+ * based on
+ * Snowball JavaScript Library v0.3
+ * http://code.google.com/p/urim/
+ * http://snowball.tartarus.org/
+ *
+ * Copyright 2010, Oleg Mazko
+ * http://www.mozilla.org/MPL/
+ */
+
+!function(e,r){"function"==typeof define&&define.amd?define(r):"object"==typeof exports?module.exports=r():r()(e.lunr)}(this,function(){return function(e){if(void 0===e)throw new Error("Lunr is not present. Please include / require Lunr before this script.");if(void 0===e.stemmerSupport)throw new Error("Lunr stemmer support is not present. Please include / require Lunr stemmer support before this script.");e.pt=function(){this.pipeline.reset(),this.pipeline.add(e.pt.trimmer,e.pt.stopWordFilter,e.pt.stemmer),this.searchPipeline&&(this.searchPipeline.reset(),this.searchPipeline.add(e.pt.stemmer))},e.pt.wordCharacters="A-Za-zªºÀ-ÖØ-öø-ʸˠ-ˤᴀ-ᴥᴬ-ᵜᵢ-ᵥᵫ-ᵷᵹ-ᶾḀ-ỿⁱⁿₐ-ₜKÅℲⅎⅠ-ↈⱠ-ⱿꜢ-ꞇꞋ-ꞭꞰ-ꞷꟷ-ꟿꬰ-ꭚꭜ-ꭤff-stA-Za-z",e.pt.trimmer=e.trimmerSupport.generateTrimmer(e.pt.wordCharacters),e.Pipeline.registerFunction(e.pt.trimmer,"trimmer-pt"),e.pt.stemmer=function(){var r=e.stemmerSupport.Among,s=e.stemmerSupport.SnowballProgram,n=new function(){function e(){for(var e;;){if(z.bra=z.cursor,e=z.find_among(k,3))switch(z.ket=z.cursor,e){case 1:z.slice_from("a~");continue;case 2:z.slice_from("o~");continue;case 3:if(z.cursor>=z.limit)break;z.cursor++;continue}break}}function n(){if(z.out_grouping(y,97,250)){for(;!z.in_grouping(y,97,250);){if(z.cursor>=z.limit)return!0;z.cursor++}return!1}return!0}function i(){if(z.in_grouping(y,97,250))for(;!z.out_grouping(y,97,250);){if(z.cursor>=z.limit)return!1;z.cursor++}return g=z.cursor,!0}function o(){var e,r,s=z.cursor;if(z.in_grouping(y,97,250))if(e=z.cursor,n()){if(z.cursor=e,i())return}else g=z.cursor;if(z.cursor=s,z.out_grouping(y,97,250)){if(r=z.cursor,n()){if(z.cursor=r,!z.in_grouping(y,97,250)||z.cursor>=z.limit)return;z.cursor++}g=z.cursor}}function t(){for(;!z.in_grouping(y,97,250);){if(z.cursor>=z.limit)return!1;z.cursor++}for(;!z.out_grouping(y,97,250);){if(z.cursor>=z.limit)return!1;z.cursor++}return!0}function a(){var e=z.cursor;g=z.limit,b=g,h=g,o(),z.cursor=e,t()&&(b=z.cursor,t()&&(h=z.cursor))}function u(){for(var e;;){if(z.bra=z.cursor,e=z.find_among(q,3))switch(z.ket=z.cursor,e){case 1:z.slice_from("ã");continue;case 2:z.slice_from("õ");continue;case 3:if(z.cursor>=z.limit)break;z.cursor++;continue}break}}function w(){return g<=z.cursor}function m(){return b<=z.cursor}function c(){return h<=z.cursor}function l(){var e;if(z.ket=z.cursor,!(e=z.find_among_b(F,45)))return!1;switch(z.bra=z.cursor,e){case 1:if(!c())return!1;z.slice_del();break;case 2:if(!c())return!1;z.slice_from("log");break;case 3:if(!c())return!1;z.slice_from("u");break;case 4:if(!c())return!1;z.slice_from("ente");break;case 5:if(!m())return!1;z.slice_del(),z.ket=z.cursor,e=z.find_among_b(j,4),e&&(z.bra=z.cursor,c()&&(z.slice_del(),1==e&&(z.ket=z.cursor,z.eq_s_b(2,"at")&&(z.bra=z.cursor,c()&&z.slice_del()))));break;case 6:if(!c())return!1;z.slice_del(),z.ket=z.cursor,e=z.find_among_b(C,3),e&&(z.bra=z.cursor,1==e&&c()&&z.slice_del());break;case 7:if(!c())return!1;z.slice_del(),z.ket=z.cursor,e=z.find_among_b(P,3),e&&(z.bra=z.cursor,1==e&&c()&&z.slice_del());break;case 8:if(!c())return!1;z.slice_del(),z.ket=z.cursor,z.eq_s_b(2,"at")&&(z.bra=z.cursor,c()&&z.slice_del());break;case 9:if(!w()||!z.eq_s_b(1,"e"))return!1;z.slice_from("ir")}return!0}function f(){var e,r;if(z.cursor>=g){if(r=z.limit_backward,z.limit_backward=g,z.ket=z.cursor,e=z.find_among_b(S,120))return z.bra=z.cursor,1==e&&z.slice_del(),z.limit_backward=r,!0;z.limit_backward=r}return!1}function d(){var e;z.ket=z.cursor,(e=z.find_among_b(W,7))&&(z.bra=z.cursor,1==e&&w()&&z.slice_del())}function v(e,r){if(z.eq_s_b(1,e)){z.bra=z.cursor;var s=z.limit-z.cursor;if(z.eq_s_b(1,r))return z.cursor=z.limit-s,w()&&z.slice_del(),!1}return!0}function p(){var e;if(z.ket=z.cursor,e=z.find_among_b(L,4))switch(z.bra=z.cursor,e){case 1:w()&&(z.slice_del(),z.ket=z.cursor,z.limit-z.cursor,v("u","g")&&v("i","c"));break;case 2:z.slice_from("c")}}function _(){if(!l()&&(z.cursor=z.limit,!f()))return z.cursor=z.limit,void d();z.cursor=z.limit,z.ket=z.cursor,z.eq_s_b(1,"i")&&(z.bra=z.cursor,z.eq_s_b(1,"c")&&(z.cursor=z.limit,w()&&z.slice_del()))}var h,b,g,k=[new r("",-1,3),new r("ã",0,1),new r("õ",0,2)],q=[new r("",-1,3),new r("a~",0,1),new r("o~",0,2)],j=[new r("ic",-1,-1),new r("ad",-1,-1),new r("os",-1,-1),new r("iv",-1,1)],C=[new r("ante",-1,1),new r("avel",-1,1),new r("ível",-1,1)],P=[new r("ic",-1,1),new r("abil",-1,1),new r("iv",-1,1)],F=[new r("ica",-1,1),new r("ância",-1,1),new r("ência",-1,4),new r("ira",-1,9),new r("adora",-1,1),new r("osa",-1,1),new r("ista",-1,1),new r("iva",-1,8),new r("eza",-1,1),new r("logía",-1,2),new r("idade",-1,7),new r("ante",-1,1),new r("mente",-1,6),new r("amente",12,5),new r("ável",-1,1),new r("ível",-1,1),new r("ución",-1,3),new r("ico",-1,1),new r("ismo",-1,1),new r("oso",-1,1),new r("amento",-1,1),new r("imento",-1,1),new r("ivo",-1,8),new r("aça~o",-1,1),new r("ador",-1,1),new r("icas",-1,1),new r("ências",-1,4),new r("iras",-1,9),new r("adoras",-1,1),new r("osas",-1,1),new r("istas",-1,1),new r("ivas",-1,8),new r("ezas",-1,1),new r("logías",-1,2),new r("idades",-1,7),new r("uciones",-1,3),new r("adores",-1,1),new r("antes",-1,1),new r("aço~es",-1,1),new r("icos",-1,1),new r("ismos",-1,1),new r("osos",-1,1),new r("amentos",-1,1),new r("imentos",-1,1),new r("ivos",-1,8)],S=[new r("ada",-1,1),new r("ida",-1,1),new r("ia",-1,1),new r("aria",2,1),new r("eria",2,1),new r("iria",2,1),new r("ara",-1,1),new r("era",-1,1),new r("ira",-1,1),new r("ava",-1,1),new r("asse",-1,1),new r("esse",-1,1),new r("isse",-1,1),new r("aste",-1,1),new r("este",-1,1),new r("iste",-1,1),new r("ei",-1,1),new r("arei",16,1),new r("erei",16,1),new r("irei",16,1),new r("am",-1,1),new r("iam",20,1),new r("ariam",21,1),new r("eriam",21,1),new r("iriam",21,1),new r("aram",20,1),new r("eram",20,1),new r("iram",20,1),new r("avam",20,1),new r("em",-1,1),new r("arem",29,1),new r("erem",29,1),new r("irem",29,1),new r("assem",29,1),new r("essem",29,1),new r("issem",29,1),new r("ado",-1,1),new r("ido",-1,1),new r("ando",-1,1),new r("endo",-1,1),new r("indo",-1,1),new r("ara~o",-1,1),new r("era~o",-1,1),new r("ira~o",-1,1),new r("ar",-1,1),new r("er",-1,1),new r("ir",-1,1),new r("as",-1,1),new r("adas",47,1),new r("idas",47,1),new r("ias",47,1),new r("arias",50,1),new r("erias",50,1),new r("irias",50,1),new r("aras",47,1),new r("eras",47,1),new r("iras",47,1),new r("avas",47,1),new r("es",-1,1),new r("ardes",58,1),new r("erdes",58,1),new r("irdes",58,1),new r("ares",58,1),new r("eres",58,1),new r("ires",58,1),new r("asses",58,1),new r("esses",58,1),new r("isses",58,1),new r("astes",58,1),new r("estes",58,1),new r("istes",58,1),new r("is",-1,1),new r("ais",71,1),new r("eis",71,1),new r("areis",73,1),new r("ereis",73,1),new r("ireis",73,1),new r("áreis",73,1),new r("éreis",73,1),new r("íreis",73,1),new r("ásseis",73,1),new r("ésseis",73,1),new r("ísseis",73,1),new r("áveis",73,1),new r("íeis",73,1),new r("aríeis",84,1),new r("eríeis",84,1),new r("iríeis",84,1),new r("ados",-1,1),new r("idos",-1,1),new r("amos",-1,1),new r("áramos",90,1),new r("éramos",90,1),new r("íramos",90,1),new r("ávamos",90,1),new r("íamos",90,1),new r("aríamos",95,1),new r("eríamos",95,1),new r("iríamos",95,1),new r("emos",-1,1),new r("aremos",99,1),new r("eremos",99,1),new r("iremos",99,1),new r("ássemos",99,1),new r("êssemos",99,1),new r("íssemos",99,1),new r("imos",-1,1),new r("armos",-1,1),new r("ermos",-1,1),new r("irmos",-1,1),new r("ámos",-1,1),new r("arás",-1,1),new r("erás",-1,1),new r("irás",-1,1),new r("eu",-1,1),new r("iu",-1,1),new r("ou",-1,1),new r("ará",-1,1),new r("erá",-1,1),new r("irá",-1,1)],W=[new r("a",-1,1),new r("i",-1,1),new r("o",-1,1),new r("os",-1,1),new r("á",-1,1),new r("í",-1,1),new r("ó",-1,1)],L=[new r("e",-1,1),new r("ç",-1,2),new r("é",-1,1),new r("ê",-1,1)],y=[17,65,16,0,0,0,0,0,0,0,0,0,0,0,0,0,3,19,12,2],z=new s;this.setCurrent=function(e){z.setCurrent(e)},this.getCurrent=function(){return z.getCurrent()},this.stem=function(){var r=z.cursor;return e(),z.cursor=r,a(),z.limit_backward=r,z.cursor=z.limit,_(),z.cursor=z.limit,p(),z.cursor=z.limit_backward,u(),!0}};return function(e){return"function"==typeof e.update?e.update(function(e){return n.setCurrent(e),n.stem(),n.getCurrent()}):(n.setCurrent(e),n.stem(),n.getCurrent())}}(),e.Pipeline.registerFunction(e.pt.stemmer,"stemmer-pt"),e.pt.stopWordFilter=e.generateStopWordFilter("a ao aos aquela aquelas aquele aqueles aquilo as até com como da das de dela delas dele deles depois do dos e ela elas ele eles em entre era eram essa essas esse esses esta estamos estas estava estavam este esteja estejam estejamos estes esteve estive estivemos estiver estivera estiveram estiverem estivermos estivesse estivessem estivéramos estivéssemos estou está estávamos estão eu foi fomos for fora foram forem formos fosse fossem fui fôramos fôssemos haja hajam hajamos havemos hei houve houvemos houver houvera houveram houverei houverem houveremos houveria houveriam houvermos houverá houverão houveríamos houvesse houvessem houvéramos houvéssemos há hão isso isto já lhe lhes mais mas me mesmo meu meus minha minhas muito na nas nem no nos nossa nossas nosso nossos num numa não nós o os ou para pela pelas pelo pelos por qual quando que quem se seja sejam sejamos sem serei seremos seria seriam será serão seríamos seu seus somos sou sua suas são só também te tem temos tenha tenham tenhamos tenho terei teremos teria teriam terá terão teríamos teu teus teve tinha tinham tive tivemos tiver tivera tiveram tiverem tivermos tivesse tivessem tivéramos tivéssemos tu tua tuas tém tínhamos um uma você vocês vos à às éramos".split(" ")),e.Pipeline.registerFunction(e.pt.stopWordFilter,"stopWordFilter-pt")}}); \ No newline at end of file
diff --git a/freetype/docs/reference/assets/javascripts/lunr/min/lunr.ro.min.js b/freetype/docs/reference/assets/javascripts/lunr/min/lunr.ro.min.js
new file mode 100644
index 00000000..72771401
--- /dev/null
+++ b/freetype/docs/reference/assets/javascripts/lunr/min/lunr.ro.min.js
@@ -0,0 +1,18 @@
+/*!
+ * Lunr languages, `Romanian` language
+ * https://github.com/MihaiValentin/lunr-languages
+ *
+ * Copyright 2014, Mihai Valentin
+ * http://www.mozilla.org/MPL/
+ */
+/*!
+ * based on
+ * Snowball JavaScript Library v0.3
+ * http://code.google.com/p/urim/
+ * http://snowball.tartarus.org/
+ *
+ * Copyright 2010, Oleg Mazko
+ * http://www.mozilla.org/MPL/
+ */
+
+!function(e,i){"function"==typeof define&&define.amd?define(i):"object"==typeof exports?module.exports=i():i()(e.lunr)}(this,function(){return function(e){if(void 0===e)throw new Error("Lunr is not present. Please include / require Lunr before this script.");if(void 0===e.stemmerSupport)throw new Error("Lunr stemmer support is not present. Please include / require Lunr stemmer support before this script.");e.ro=function(){this.pipeline.reset(),this.pipeline.add(e.ro.trimmer,e.ro.stopWordFilter,e.ro.stemmer),this.searchPipeline&&(this.searchPipeline.reset(),this.searchPipeline.add(e.ro.stemmer))},e.ro.wordCharacters="A-Za-zªºÀ-ÖØ-öø-ʸˠ-ˤᴀ-ᴥᴬ-ᵜᵢ-ᵥᵫ-ᵷᵹ-ᶾḀ-ỿⁱⁿₐ-ₜKÅℲⅎⅠ-ↈⱠ-ⱿꜢ-ꞇꞋ-ꞭꞰ-ꞷꟷ-ꟿꬰ-ꭚꭜ-ꭤff-stA-Za-z",e.ro.trimmer=e.trimmerSupport.generateTrimmer(e.ro.wordCharacters),e.Pipeline.registerFunction(e.ro.trimmer,"trimmer-ro"),e.ro.stemmer=function(){var i=e.stemmerSupport.Among,r=e.stemmerSupport.SnowballProgram,n=new function(){function e(e,i){L.eq_s(1,e)&&(L.ket=L.cursor,L.in_grouping(W,97,259)&&L.slice_from(i))}function n(){for(var i,r;;){if(i=L.cursor,L.in_grouping(W,97,259)&&(r=L.cursor,L.bra=r,e("u","U"),L.cursor=r,e("i","I")),L.cursor=i,L.cursor>=L.limit)break;L.cursor++}}function t(){if(L.out_grouping(W,97,259)){for(;!L.in_grouping(W,97,259);){if(L.cursor>=L.limit)return!0;L.cursor++}return!1}return!0}function a(){if(L.in_grouping(W,97,259))for(;!L.out_grouping(W,97,259);){if(L.cursor>=L.limit)return!0;L.cursor++}return!1}function o(){var e,i,r=L.cursor;if(L.in_grouping(W,97,259)){if(e=L.cursor,!t())return void(h=L.cursor);if(L.cursor=e,!a())return void(h=L.cursor)}L.cursor=r,L.out_grouping(W,97,259)&&(i=L.cursor,t()&&(L.cursor=i,L.in_grouping(W,97,259)&&L.cursor<L.limit&&L.cursor++),h=L.cursor)}function u(){for(;!L.in_grouping(W,97,259);){if(L.cursor>=L.limit)return!1;L.cursor++}for(;!L.out_grouping(W,97,259);){if(L.cursor>=L.limit)return!1;L.cursor++}return!0}function c(){var e=L.cursor;h=L.limit,k=h,g=h,o(),L.cursor=e,u()&&(k=L.cursor,u()&&(g=L.cursor))}function s(){for(var e;;){if(L.bra=L.cursor,e=L.find_among(z,3))switch(L.ket=L.cursor,e){case 1:L.slice_from("i");continue;case 2:L.slice_from("u");continue;case 3:if(L.cursor>=L.limit)break;L.cursor++;continue}break}}function w(){return h<=L.cursor}function m(){return k<=L.cursor}function l(){return g<=L.cursor}function f(){var e,i;if(L.ket=L.cursor,(e=L.find_among_b(C,16))&&(L.bra=L.cursor,m()))switch(e){case 1:L.slice_del();break;case 2:L.slice_from("a");break;case 3:L.slice_from("e");break;case 4:L.slice_from("i");break;case 5:i=L.limit-L.cursor,L.eq_s_b(2,"ab")||(L.cursor=L.limit-i,L.slice_from("i"));break;case 6:L.slice_from("at");break;case 7:L.slice_from("aţi")}}function p(){var e,i=L.limit-L.cursor;if(L.ket=L.cursor,(e=L.find_among_b(P,46))&&(L.bra=L.cursor,m())){switch(e){case 1:L.slice_from("abil");break;case 2:L.slice_from("ibil");break;case 3:L.slice_from("iv");break;case 4:L.slice_from("ic");break;case 5:L.slice_from("at");break;case 6:L.slice_from("it")}return _=!0,L.cursor=L.limit-i,!0}return!1}function d(){var e,i;for(_=!1;;)if(i=L.limit-L.cursor,!p()){L.cursor=L.limit-i;break}if(L.ket=L.cursor,(e=L.find_among_b(F,62))&&(L.bra=L.cursor,l())){switch(e){case 1:L.slice_del();break;case 2:L.eq_s_b(1,"ţ")&&(L.bra=L.cursor,L.slice_from("t"));break;case 3:L.slice_from("ist")}_=!0}}function b(){var e,i,r;if(L.cursor>=h){if(i=L.limit_backward,L.limit_backward=h,L.ket=L.cursor,e=L.find_among_b(q,94))switch(L.bra=L.cursor,e){case 1:if(r=L.limit-L.cursor,!L.out_grouping_b(W,97,259)&&(L.cursor=L.limit-r,!L.eq_s_b(1,"u")))break;case 2:L.slice_del()}L.limit_backward=i}}function v(){var e;L.ket=L.cursor,(e=L.find_among_b(S,5))&&(L.bra=L.cursor,w()&&1==e&&L.slice_del())}var _,g,k,h,z=[new i("",-1,3),new i("I",0,1),new i("U",0,2)],C=[new i("ea",-1,3),new i("aţia",-1,7),new i("aua",-1,2),new i("iua",-1,4),new i("aţie",-1,7),new i("ele",-1,3),new i("ile",-1,5),new i("iile",6,4),new i("iei",-1,4),new i("atei",-1,6),new i("ii",-1,4),new i("ului",-1,1),new i("ul",-1,1),new i("elor",-1,3),new i("ilor",-1,4),new i("iilor",14,4)],P=[new i("icala",-1,4),new i("iciva",-1,4),new i("ativa",-1,5),new i("itiva",-1,6),new i("icale",-1,4),new i("aţiune",-1,5),new i("iţiune",-1,6),new i("atoare",-1,5),new i("itoare",-1,6),new i("ătoare",-1,5),new i("icitate",-1,4),new i("abilitate",-1,1),new i("ibilitate",-1,2),new i("ivitate",-1,3),new i("icive",-1,4),new i("ative",-1,5),new i("itive",-1,6),new i("icali",-1,4),new i("atori",-1,5),new i("icatori",18,4),new i("itori",-1,6),new i("ători",-1,5),new i("icitati",-1,4),new i("abilitati",-1,1),new i("ivitati",-1,3),new i("icivi",-1,4),new i("ativi",-1,5),new i("itivi",-1,6),new i("icităi",-1,4),new i("abilităi",-1,1),new i("ivităi",-1,3),new i("icităţi",-1,4),new i("abilităţi",-1,1),new i("ivităţi",-1,3),new i("ical",-1,4),new i("ator",-1,5),new i("icator",35,4),new i("itor",-1,6),new i("ător",-1,5),new i("iciv",-1,4),new i("ativ",-1,5),new i("itiv",-1,6),new i("icală",-1,4),new i("icivă",-1,4),new i("ativă",-1,5),new i("itivă",-1,6)],F=[new i("ica",-1,1),new i("abila",-1,1),new i("ibila",-1,1),new i("oasa",-1,1),new i("ata",-1,1),new i("ita",-1,1),new i("anta",-1,1),new i("ista",-1,3),new i("uta",-1,1),new i("iva",-1,1),new i("ic",-1,1),new i("ice",-1,1),new i("abile",-1,1),new i("ibile",-1,1),new i("isme",-1,3),new i("iune",-1,2),new i("oase",-1,1),new i("ate",-1,1),new i("itate",17,1),new i("ite",-1,1),new i("ante",-1,1),new i("iste",-1,3),new i("ute",-1,1),new i("ive",-1,1),new i("ici",-1,1),new i("abili",-1,1),new i("ibili",-1,1),new i("iuni",-1,2),new i("atori",-1,1),new i("osi",-1,1),new i("ati",-1,1),new i("itati",30,1),new i("iti",-1,1),new i("anti",-1,1),new i("isti",-1,3),new i("uti",-1,1),new i("işti",-1,3),new i("ivi",-1,1),new i("ităi",-1,1),new i("oşi",-1,1),new i("ităţi",-1,1),new i("abil",-1,1),new i("ibil",-1,1),new i("ism",-1,3),new i("ator",-1,1),new i("os",-1,1),new i("at",-1,1),new i("it",-1,1),new i("ant",-1,1),new i("ist",-1,3),new i("ut",-1,1),new i("iv",-1,1),new i("ică",-1,1),new i("abilă",-1,1),new i("ibilă",-1,1),new i("oasă",-1,1),new i("ată",-1,1),new i("ită",-1,1),new i("antă",-1,1),new i("istă",-1,3),new i("ută",-1,1),new i("ivă",-1,1)],q=[new i("ea",-1,1),new i("ia",-1,1),new i("esc",-1,1),new i("ăsc",-1,1),new i("ind",-1,1),new i("ând",-1,1),new i("are",-1,1),new i("ere",-1,1),new i("ire",-1,1),new i("âre",-1,1),new i("se",-1,2),new i("ase",10,1),new i("sese",10,2),new i("ise",10,1),new i("use",10,1),new i("âse",10,1),new i("eşte",-1,1),new i("ăşte",-1,1),new i("eze",-1,1),new i("ai",-1,1),new i("eai",19,1),new i("iai",19,1),new i("sei",-1,2),new i("eşti",-1,1),new i("ăşti",-1,1),new i("ui",-1,1),new i("ezi",-1,1),new i("âi",-1,1),new i("aşi",-1,1),new i("seşi",-1,2),new i("aseşi",29,1),new i("seseşi",29,2),new i("iseşi",29,1),new i("useşi",29,1),new i("âseşi",29,1),new i("işi",-1,1),new i("uşi",-1,1),new i("âşi",-1,1),new i("aţi",-1,2),new i("eaţi",38,1),new i("iaţi",38,1),new i("eţi",-1,2),new i("iţi",-1,2),new i("âţi",-1,2),new i("arăţi",-1,1),new i("serăţi",-1,2),new i("aserăţi",45,1),new i("seserăţi",45,2),new i("iserăţi",45,1),new i("userăţi",45,1),new i("âserăţi",45,1),new i("irăţi",-1,1),new i("urăţi",-1,1),new i("ârăţi",-1,1),new i("am",-1,1),new i("eam",54,1),new i("iam",54,1),new i("em",-1,2),new i("asem",57,1),new i("sesem",57,2),new i("isem",57,1),new i("usem",57,1),new i("âsem",57,1),new i("im",-1,2),new i("âm",-1,2),new i("ăm",-1,2),new i("arăm",65,1),new i("serăm",65,2),new i("aserăm",67,1),new i("seserăm",67,2),new i("iserăm",67,1),new i("userăm",67,1),new i("âserăm",67,1),new i("irăm",65,1),new i("urăm",65,1),new i("ârăm",65,1),new i("au",-1,1),new i("eau",76,1),new i("iau",76,1),new i("indu",-1,1),new i("ându",-1,1),new i("ez",-1,1),new i("ească",-1,1),new i("ară",-1,1),new i("seră",-1,2),new i("aseră",84,1),new i("seseră",84,2),new i("iseră",84,1),new i("useră",84,1),new i("âseră",84,1),new i("iră",-1,1),new i("ură",-1,1),new i("âră",-1,1),new i("ează",-1,1)],S=[new i("a",-1,1),new i("e",-1,1),new i("ie",1,1),new i("i",-1,1),new i("ă",-1,1)],W=[17,65,16,0,0,0,0,0,0,0,0,0,0,0,0,0,2,32,0,0,4],L=new r;this.setCurrent=function(e){L.setCurrent(e)},this.getCurrent=function(){return L.getCurrent()},this.stem=function(){var e=L.cursor;return n(),L.cursor=e,c(),L.limit_backward=e,L.cursor=L.limit,f(),L.cursor=L.limit,d(),L.cursor=L.limit,_||(L.cursor=L.limit,b(),L.cursor=L.limit),v(),L.cursor=L.limit_backward,s(),!0}};return function(e){return"function"==typeof e.update?e.update(function(e){return n.setCurrent(e),n.stem(),n.getCurrent()}):(n.setCurrent(e),n.stem(),n.getCurrent())}}(),e.Pipeline.registerFunction(e.ro.stemmer,"stemmer-ro"),e.ro.stopWordFilter=e.generateStopWordFilter("acea aceasta această aceea acei aceia acel acela acele acelea acest acesta aceste acestea aceşti aceştia acolo acord acum ai aia aibă aici al ale alea altceva altcineva am ar are asemenea asta astea astăzi asupra au avea avem aveţi azi aş aşadar aţi bine bucur bună ca care caut ce cel ceva chiar cinci cine cineva contra cu cum cumva curând curînd când cât câte câtva câţi cînd cît cîte cîtva cîţi că căci cărei căror cărui către da dacă dar datorită dată dau de deci deja deoarece departe deşi din dinaintea dintr- dintre doi doilea două drept după dă ea ei el ele eram este eu eşti face fata fi fie fiecare fii fim fiu fiţi frumos fără graţie halbă iar ieri la le li lor lui lângă lîngă mai mea mei mele mereu meu mi mie mine mult multă mulţi mulţumesc mâine mîine mă ne nevoie nici nicăieri nimeni nimeri nimic nişte noastre noastră noi noroc nostru nouă noştri nu opt ori oricare orice oricine oricum oricând oricât oricînd oricît oriunde patra patru patrulea pe pentru peste pic poate pot prea prima primul prin puţin puţina puţină până pînă rog sa sale sau se spate spre sub sunt suntem sunteţi sută sînt sîntem sînteţi să săi său ta tale te timp tine toate toată tot totuşi toţi trei treia treilea tu tăi tău un una unde undeva unei uneia unele uneori unii unor unora unu unui unuia unul vi voastre voastră voi vostru vouă voştri vreme vreo vreun vă zece zero zi zice îi îl îmi împotriva în înainte înaintea încotro încât încît între întrucât întrucît îţi ăla ălea ăsta ăstea ăştia şapte şase şi ştiu ţi ţie".split(" ")),e.Pipeline.registerFunction(e.ro.stopWordFilter,"stopWordFilter-ro")}}); \ No newline at end of file
diff --git a/freetype/docs/reference/assets/javascripts/lunr/min/lunr.ru.min.js b/freetype/docs/reference/assets/javascripts/lunr/min/lunr.ru.min.js
new file mode 100644
index 00000000..186cc485
--- /dev/null
+++ b/freetype/docs/reference/assets/javascripts/lunr/min/lunr.ru.min.js
@@ -0,0 +1,18 @@
+/*!
+ * Lunr languages, `Russian` language
+ * https://github.com/MihaiValentin/lunr-languages
+ *
+ * Copyright 2014, Mihai Valentin
+ * http://www.mozilla.org/MPL/
+ */
+/*!
+ * based on
+ * Snowball JavaScript Library v0.3
+ * http://code.google.com/p/urim/
+ * http://snowball.tartarus.org/
+ *
+ * Copyright 2010, Oleg Mazko
+ * http://www.mozilla.org/MPL/
+ */
+
+!function(e,n){"function"==typeof define&&define.amd?define(n):"object"==typeof exports?module.exports=n():n()(e.lunr)}(this,function(){return function(e){if(void 0===e)throw new Error("Lunr is not present. Please include / require Lunr before this script.");if(void 0===e.stemmerSupport)throw new Error("Lunr stemmer support is not present. Please include / require Lunr stemmer support before this script.");e.ru=function(){this.pipeline.reset(),this.pipeline.add(e.ru.trimmer,e.ru.stopWordFilter,e.ru.stemmer),this.searchPipeline&&(this.searchPipeline.reset(),this.searchPipeline.add(e.ru.stemmer))},e.ru.wordCharacters="Ѐ-҄҇-ԯᴫᵸⷠ-ⷿꙀ-ꚟ︮︯",e.ru.trimmer=e.trimmerSupport.generateTrimmer(e.ru.wordCharacters),e.Pipeline.registerFunction(e.ru.trimmer,"trimmer-ru"),e.ru.stemmer=function(){var n=e.stemmerSupport.Among,r=e.stemmerSupport.SnowballProgram,t=new function(){function e(){for(;!W.in_grouping(S,1072,1103);){if(W.cursor>=W.limit)return!1;W.cursor++}return!0}function t(){for(;!W.out_grouping(S,1072,1103);){if(W.cursor>=W.limit)return!1;W.cursor++}return!0}function w(){b=W.limit,_=b,e()&&(b=W.cursor,t()&&e()&&t()&&(_=W.cursor))}function i(){return _<=W.cursor}function u(e,n){var r,t;if(W.ket=W.cursor,r=W.find_among_b(e,n)){switch(W.bra=W.cursor,r){case 1:if(t=W.limit-W.cursor,!W.eq_s_b(1,"а")&&(W.cursor=W.limit-t,!W.eq_s_b(1,"я")))return!1;case 2:W.slice_del()}return!0}return!1}function o(){return u(h,9)}function s(e,n){var r;return W.ket=W.cursor,!!(r=W.find_among_b(e,n))&&(W.bra=W.cursor,1==r&&W.slice_del(),!0)}function c(){return s(g,26)}function m(){return!!c()&&(u(C,8),!0)}function f(){return s(k,2)}function l(){return u(P,46)}function a(){s(v,36)}function p(){var e;W.ket=W.cursor,(e=W.find_among_b(F,2))&&(W.bra=W.cursor,i()&&1==e&&W.slice_del())}function d(){var e;if(W.ket=W.cursor,e=W.find_among_b(q,4))switch(W.bra=W.cursor,e){case 1:if(W.slice_del(),W.ket=W.cursor,!W.eq_s_b(1,"н"))break;W.bra=W.cursor;case 2:if(!W.eq_s_b(1,"н"))break;case 3:W.slice_del()}}var _,b,h=[new n("в",-1,1),new n("ив",0,2),new n("ыв",0,2),new n("вши",-1,1),new n("ивши",3,2),new n("ывши",3,2),new n("вшись",-1,1),new n("ившись",6,2),new n("ывшись",6,2)],g=[new n("ее",-1,1),new n("ие",-1,1),new n("ое",-1,1),new n("ые",-1,1),new n("ими",-1,1),new n("ыми",-1,1),new n("ей",-1,1),new n("ий",-1,1),new n("ой",-1,1),new n("ый",-1,1),new n("ем",-1,1),new n("им",-1,1),new n("ом",-1,1),new n("ым",-1,1),new n("его",-1,1),new n("ого",-1,1),new n("ему",-1,1),new n("ому",-1,1),new n("их",-1,1),new n("ых",-1,1),new n("ею",-1,1),new n("ою",-1,1),new n("ую",-1,1),new n("юю",-1,1),new n("ая",-1,1),new n("яя",-1,1)],C=[new n("ем",-1,1),new n("нн",-1,1),new n("вш",-1,1),new n("ивш",2,2),new n("ывш",2,2),new n("щ",-1,1),new n("ющ",5,1),new n("ующ",6,2)],k=[new n("сь",-1,1),new n("ся",-1,1)],P=[new n("ла",-1,1),new n("ила",0,2),new n("ыла",0,2),new n("на",-1,1),new n("ена",3,2),new n("ете",-1,1),new n("ите",-1,2),new n("йте",-1,1),new n("ейте",7,2),new n("уйте",7,2),new n("ли",-1,1),new n("или",10,2),new n("ыли",10,2),new n("й",-1,1),new n("ей",13,2),new n("уй",13,2),new n("л",-1,1),new n("ил",16,2),new n("ыл",16,2),new n("ем",-1,1),new n("им",-1,2),new n("ым",-1,2),new n("н",-1,1),new n("ен",22,2),new n("ло",-1,1),new n("ило",24,2),new n("ыло",24,2),new n("но",-1,1),new n("ено",27,2),new n("нно",27,1),new n("ет",-1,1),new n("ует",30,2),new n("ит",-1,2),new n("ыт",-1,2),new n("ют",-1,1),new n("уют",34,2),new n("ят",-1,2),new n("ны",-1,1),new n("ены",37,2),new n("ть",-1,1),new n("ить",39,2),new n("ыть",39,2),new n("ешь",-1,1),new n("ишь",-1,2),new n("ю",-1,2),new n("ую",44,2)],v=[new n("а",-1,1),new n("ев",-1,1),new n("ов",-1,1),new n("е",-1,1),new n("ие",3,1),new n("ье",3,1),new n("и",-1,1),new n("еи",6,1),new n("ии",6,1),new n("ами",6,1),new n("ями",6,1),new n("иями",10,1),new n("й",-1,1),new n("ей",12,1),new n("ией",13,1),new n("ий",12,1),new n("ой",12,1),new n("ам",-1,1),new n("ем",-1,1),new n("ием",18,1),new n("ом",-1,1),new n("ям",-1,1),new n("иям",21,1),new n("о",-1,1),new n("у",-1,1),new n("ах",-1,1),new n("ях",-1,1),new n("иях",26,1),new n("ы",-1,1),new n("ь",-1,1),new n("ю",-1,1),new n("ию",30,1),new n("ью",30,1),new n("я",-1,1),new n("ия",33,1),new n("ья",33,1)],F=[new n("ост",-1,1),new n("ость",-1,1)],q=[new n("ейше",-1,1),new n("н",-1,2),new n("ейш",-1,1),new n("ь",-1,3)],S=[33,65,8,232],W=new r;this.setCurrent=function(e){W.setCurrent(e)},this.getCurrent=function(){return W.getCurrent()},this.stem=function(){return w(),W.cursor=W.limit,!(W.cursor<b)&&(W.limit_backward=b,o()||(W.cursor=W.limit,f()||(W.cursor=W.limit),m()||(W.cursor=W.limit,l()||(W.cursor=W.limit,a()))),W.cursor=W.limit,W.ket=W.cursor,W.eq_s_b(1,"и")?(W.bra=W.cursor,W.slice_del()):W.cursor=W.limit,p(),W.cursor=W.limit,d(),!0)}};return function(e){return"function"==typeof e.update?e.update(function(e){return t.setCurrent(e),t.stem(),t.getCurrent()}):(t.setCurrent(e),t.stem(),t.getCurrent())}}(),e.Pipeline.registerFunction(e.ru.stemmer,"stemmer-ru"),e.ru.stopWordFilter=e.generateStopWordFilter("алло без близко более больше будем будет будете будешь будто буду будут будь бы бывает бывь был была были было быть в важная важное важные важный вам вами вас ваш ваша ваше ваши вверх вдали вдруг ведь везде весь вниз внизу во вокруг вон восемнадцатый восемнадцать восемь восьмой вот впрочем времени время все всегда всего всем всеми всему всех всею всю всюду вся всё второй вы г где говорил говорит год года году да давно даже далеко дальше даром два двадцатый двадцать две двенадцатый двенадцать двух девятнадцатый девятнадцать девятый девять действительно дел день десятый десять для до довольно долго должно другая другие других друго другое другой е его ее ей ему если есть еще ещё ею её ж же жизнь за занят занята занято заняты затем зато зачем здесь значит и из или им именно иметь ими имя иногда их к каждая каждое каждые каждый кажется как какая какой кем когда кого ком кому конечно которая которого которой которые который которых кроме кругом кто куда лет ли лишь лучше люди м мало между меля менее меньше меня миллионов мимо мира мне много многочисленная многочисленное многочисленные многочисленный мной мною мог могут мож может можно можхо мои мой мор мочь моя моё мы на наверху над надо назад наиболее наконец нам нами нас начала наш наша наше наши не него недавно недалеко нее ней нельзя нем немного нему непрерывно нередко несколько нет нею неё ни нибудь ниже низко никогда никуда ними них ничего но ну нужно нх о об оба обычно один одиннадцатый одиннадцать однажды однако одного одной около он она они оно опять особенно от отовсюду отсюда очень первый перед по под пожалуйста позже пока пор пора после посреди потом потому почему почти прекрасно при про просто против процентов пятнадцатый пятнадцать пятый пять раз разве рано раньше рядом с сам сама сами самим самими самих само самого самой самом самому саму свое своего своей свои своих свою сеаой себе себя сегодня седьмой сейчас семнадцатый семнадцать семь сих сказал сказала сказать сколько слишком сначала снова со собой собою совсем спасибо стал суть т та так такая также такие такое такой там твой твоя твоё те тебе тебя тем теми теперь тех то тобой тобою тогда того тоже только том тому тот тою третий три тринадцатый тринадцать ту туда тут ты тысяч у уж уже уметь хорошо хотеть хоть хотя хочешь часто чаще чего человек чем чему через четвертый четыре четырнадцатый четырнадцать что чтоб чтобы чуть шестнадцатый шестнадцать шестой шесть эта эти этим этими этих это этого этой этом этому этот эту я \ufeffа".split(" ")),e.Pipeline.registerFunction(e.ru.stopWordFilter,"stopWordFilter-ru")}}); \ No newline at end of file
diff --git a/freetype/docs/reference/assets/javascripts/lunr/min/lunr.stemmer.support.min.js b/freetype/docs/reference/assets/javascripts/lunr/min/lunr.stemmer.support.min.js
new file mode 100644
index 00000000..abd4475b
--- /dev/null
+++ b/freetype/docs/reference/assets/javascripts/lunr/min/lunr.stemmer.support.min.js
@@ -0,0 +1 @@
+!function(r,t){"function"==typeof define&&define.amd?define(t):"object"==typeof exports?module.exports=t():t()(r.lunr)}(this,function(){return function(r){r.stemmerSupport={Among:function(r,t,i,s){if(this.toCharArray=function(r){for(var t=r.length,i=new Array(t),s=0;s<t;s++)i[s]=r.charCodeAt(s);return i},!r&&""!=r||!t&&0!=t||!i)throw"Bad Among initialisation: s:"+r+", substring_i: "+t+", result: "+i;this.s_size=r.length,this.s=this.toCharArray(r),this.substring_i=t,this.result=i,this.method=s},SnowballProgram:function(){var r;return{bra:0,ket:0,limit:0,cursor:0,limit_backward:0,setCurrent:function(t){r=t,this.cursor=0,this.limit=t.length,this.limit_backward=0,this.bra=this.cursor,this.ket=this.limit},getCurrent:function(){var t=r;return r=null,t},in_grouping:function(t,i,s){if(this.cursor<this.limit){var e=r.charCodeAt(this.cursor);if(e<=s&&e>=i&&(e-=i,t[e>>3]&1<<(7&e)))return this.cursor++,!0}return!1},in_grouping_b:function(t,i,s){if(this.cursor>this.limit_backward){var e=r.charCodeAt(this.cursor-1);if(e<=s&&e>=i&&(e-=i,t[e>>3]&1<<(7&e)))return this.cursor--,!0}return!1},out_grouping:function(t,i,s){if(this.cursor<this.limit){var e=r.charCodeAt(this.cursor);if(e>s||e<i)return this.cursor++,!0;if(e-=i,!(t[e>>3]&1<<(7&e)))return this.cursor++,!0}return!1},out_grouping_b:function(t,i,s){if(this.cursor>this.limit_backward){var e=r.charCodeAt(this.cursor-1);if(e>s||e<i)return this.cursor--,!0;if(e-=i,!(t[e>>3]&1<<(7&e)))return this.cursor--,!0}return!1},eq_s:function(t,i){if(this.limit-this.cursor<t)return!1;for(var s=0;s<t;s++)if(r.charCodeAt(this.cursor+s)!=i.charCodeAt(s))return!1;return this.cursor+=t,!0},eq_s_b:function(t,i){if(this.cursor-this.limit_backward<t)return!1;for(var s=0;s<t;s++)if(r.charCodeAt(this.cursor-t+s)!=i.charCodeAt(s))return!1;return this.cursor-=t,!0},find_among:function(t,i){for(var s=0,e=i,n=this.cursor,u=this.limit,o=0,h=0,c=!1;;){for(var a=s+(e-s>>1),f=0,l=o<h?o:h,_=t[a],m=l;m<_.s_size;m++){if(n+l==u){f=-1;break}if(f=r.charCodeAt(n+l)-_.s[m])break;l++}if(f<0?(e=a,h=l):(s=a,o=l),e-s<=1){if(s>0||e==s||c)break;c=!0}}for(;;){var _=t[s];if(o>=_.s_size){if(this.cursor=n+_.s_size,!_.method)return _.result;var b=_.method();if(this.cursor=n+_.s_size,b)return _.result}if((s=_.substring_i)<0)return 0}},find_among_b:function(t,i){for(var s=0,e=i,n=this.cursor,u=this.limit_backward,o=0,h=0,c=!1;;){for(var a=s+(e-s>>1),f=0,l=o<h?o:h,_=t[a],m=_.s_size-1-l;m>=0;m--){if(n-l==u){f=-1;break}if(f=r.charCodeAt(n-1-l)-_.s[m])break;l++}if(f<0?(e=a,h=l):(s=a,o=l),e-s<=1){if(s>0||e==s||c)break;c=!0}}for(;;){var _=t[s];if(o>=_.s_size){if(this.cursor=n-_.s_size,!_.method)return _.result;var b=_.method();if(this.cursor=n-_.s_size,b)return _.result}if((s=_.substring_i)<0)return 0}},replace_s:function(t,i,s){var e=s.length-(i-t),n=r.substring(0,t),u=r.substring(i);return r=n+s+u,this.limit+=e,this.cursor>=i?this.cursor+=e:this.cursor>t&&(this.cursor=t),e},slice_check:function(){if(this.bra<0||this.bra>this.ket||this.ket>this.limit||this.limit>r.length)throw"faulty slice operation"},slice_from:function(r){this.slice_check(),this.replace_s(this.bra,this.ket,r)},slice_del:function(){this.slice_from("")},insert:function(r,t,i){var s=this.replace_s(r,t,i);r<=this.bra&&(this.bra+=s),r<=this.ket&&(this.ket+=s)},slice_to:function(){return this.slice_check(),r.substring(this.bra,this.ket)},eq_v_b:function(r){return this.eq_s_b(r.length,r)}}}},r.trimmerSupport={generateTrimmer:function(r){var t=new RegExp("^[^"+r+"]+"),i=new RegExp("[^"+r+"]+$");return function(r){return"function"==typeof r.update?r.update(function(r){return r.replace(t,"").replace(i,"")}):r.replace(t,"").replace(i,"")}}}}}); \ No newline at end of file
diff --git a/freetype/docs/reference/assets/javascripts/lunr/min/lunr.sv.min.js b/freetype/docs/reference/assets/javascripts/lunr/min/lunr.sv.min.js
new file mode 100644
index 00000000..3e5eb640
--- /dev/null
+++ b/freetype/docs/reference/assets/javascripts/lunr/min/lunr.sv.min.js
@@ -0,0 +1,18 @@
+/*!
+ * Lunr languages, `Swedish` language
+ * https://github.com/MihaiValentin/lunr-languages
+ *
+ * Copyright 2014, Mihai Valentin
+ * http://www.mozilla.org/MPL/
+ */
+/*!
+ * based on
+ * Snowball JavaScript Library v0.3
+ * http://code.google.com/p/urim/
+ * http://snowball.tartarus.org/
+ *
+ * Copyright 2010, Oleg Mazko
+ * http://www.mozilla.org/MPL/
+ */
+
+!function(e,r){"function"==typeof define&&define.amd?define(r):"object"==typeof exports?module.exports=r():r()(e.lunr)}(this,function(){return function(e){if(void 0===e)throw new Error("Lunr is not present. Please include / require Lunr before this script.");if(void 0===e.stemmerSupport)throw new Error("Lunr stemmer support is not present. Please include / require Lunr stemmer support before this script.");e.sv=function(){this.pipeline.reset(),this.pipeline.add(e.sv.trimmer,e.sv.stopWordFilter,e.sv.stemmer),this.searchPipeline&&(this.searchPipeline.reset(),this.searchPipeline.add(e.sv.stemmer))},e.sv.wordCharacters="A-Za-zªºÀ-ÖØ-öø-ʸˠ-ˤᴀ-ᴥᴬ-ᵜᵢ-ᵥᵫ-ᵷᵹ-ᶾḀ-ỿⁱⁿₐ-ₜKÅℲⅎⅠ-ↈⱠ-ⱿꜢ-ꞇꞋ-ꞭꞰ-ꞷꟷ-ꟿꬰ-ꭚꭜ-ꭤff-stA-Za-z",e.sv.trimmer=e.trimmerSupport.generateTrimmer(e.sv.wordCharacters),e.Pipeline.registerFunction(e.sv.trimmer,"trimmer-sv"),e.sv.stemmer=function(){var r=e.stemmerSupport.Among,n=e.stemmerSupport.SnowballProgram,t=new function(){function e(){var e,r=w.cursor+3;if(o=w.limit,0<=r||r<=w.limit){for(a=r;;){if(e=w.cursor,w.in_grouping(l,97,246)){w.cursor=e;break}if(w.cursor=e,w.cursor>=w.limit)return;w.cursor++}for(;!w.out_grouping(l,97,246);){if(w.cursor>=w.limit)return;w.cursor++}o=w.cursor,o<a&&(o=a)}}function t(){var e,r=w.limit_backward;if(w.cursor>=o&&(w.limit_backward=o,w.cursor=w.limit,w.ket=w.cursor,e=w.find_among_b(u,37),w.limit_backward=r,e))switch(w.bra=w.cursor,e){case 1:w.slice_del();break;case 2:w.in_grouping_b(d,98,121)&&w.slice_del()}}function i(){var e=w.limit_backward;w.cursor>=o&&(w.limit_backward=o,w.cursor=w.limit,w.find_among_b(c,7)&&(w.cursor=w.limit,w.ket=w.cursor,w.cursor>w.limit_backward&&(w.bra=--w.cursor,w.slice_del())),w.limit_backward=e)}function s(){var e,r;if(w.cursor>=o){if(r=w.limit_backward,w.limit_backward=o,w.cursor=w.limit,w.ket=w.cursor,e=w.find_among_b(m,5))switch(w.bra=w.cursor,e){case 1:w.slice_del();break;case 2:w.slice_from("lös");break;case 3:w.slice_from("full")}w.limit_backward=r}}var a,o,u=[new r("a",-1,1),new r("arna",0,1),new r("erna",0,1),new r("heterna",2,1),new r("orna",0,1),new r("ad",-1,1),new r("e",-1,1),new r("ade",6,1),new r("ande",6,1),new r("arne",6,1),new r("are",6,1),new r("aste",6,1),new r("en",-1,1),new r("anden",12,1),new r("aren",12,1),new r("heten",12,1),new r("ern",-1,1),new r("ar",-1,1),new r("er",-1,1),new r("heter",18,1),new r("or",-1,1),new r("s",-1,2),new r("as",21,1),new r("arnas",22,1),new r("ernas",22,1),new r("ornas",22,1),new r("es",21,1),new r("ades",26,1),new r("andes",26,1),new r("ens",21,1),new r("arens",29,1),new r("hetens",29,1),new r("erns",21,1),new r("at",-1,1),new r("andet",-1,1),new r("het",-1,1),new r("ast",-1,1)],c=[new r("dd",-1,-1),new r("gd",-1,-1),new r("nn",-1,-1),new r("dt",-1,-1),new r("gt",-1,-1),new r("kt",-1,-1),new r("tt",-1,-1)],m=[new r("ig",-1,1),new r("lig",0,1),new r("els",-1,1),new r("fullt",-1,3),new r("löst",-1,2)],l=[17,65,16,1,0,0,0,0,0,0,0,0,0,0,0,0,24,0,32],d=[119,127,149],w=new n;this.setCurrent=function(e){w.setCurrent(e)},this.getCurrent=function(){return w.getCurrent()},this.stem=function(){var r=w.cursor;return e(),w.limit_backward=r,w.cursor=w.limit,t(),w.cursor=w.limit,i(),w.cursor=w.limit,s(),!0}};return function(e){return"function"==typeof e.update?e.update(function(e){return t.setCurrent(e),t.stem(),t.getCurrent()}):(t.setCurrent(e),t.stem(),t.getCurrent())}}(),e.Pipeline.registerFunction(e.sv.stemmer,"stemmer-sv"),e.sv.stopWordFilter=e.generateStopWordFilter("alla allt att av blev bli blir blivit de dem den denna deras dess dessa det detta dig din dina ditt du där då efter ej eller en er era ert ett från för ha hade han hans har henne hennes hon honom hur här i icke ingen inom inte jag ju kan kunde man med mellan men mig min mina mitt mot mycket ni nu när någon något några och om oss på samma sedan sig sin sina sitta själv skulle som så sådan sådana sådant till under upp ut utan vad var vara varför varit varje vars vart vem vi vid vilka vilkas vilken vilket vår våra vårt än är åt över".split(" ")),e.Pipeline.registerFunction(e.sv.stopWordFilter,"stopWordFilter-sv")}}); \ No newline at end of file
diff --git a/freetype/docs/reference/assets/javascripts/lunr/min/lunr.th.min.js b/freetype/docs/reference/assets/javascripts/lunr/min/lunr.th.min.js
new file mode 100644
index 00000000..dee3aac6
--- /dev/null
+++ b/freetype/docs/reference/assets/javascripts/lunr/min/lunr.th.min.js
@@ -0,0 +1 @@
+!function(e,r){"function"==typeof define&&define.amd?define(r):"object"==typeof exports?module.exports=r():r()(e.lunr)}(this,function(){return function(e){if(void 0===e)throw new Error("Lunr is not present. Please include / require Lunr before this script.");if(void 0===e.stemmerSupport)throw new Error("Lunr stemmer support is not present. Please include / require Lunr stemmer support before this script.");var r="2"==e.version[0];e.th=function(){this.pipeline.reset(),this.pipeline.add(e.th.trimmer),r?this.tokenizer=e.th.tokenizer:(e.tokenizer&&(e.tokenizer=e.th.tokenizer),this.tokenizerFn&&(this.tokenizerFn=e.th.tokenizer))},e.th.wordCharacters="[฀-๿]",e.th.trimmer=e.trimmerSupport.generateTrimmer(e.th.wordCharacters),e.Pipeline.registerFunction(e.th.trimmer,"trimmer-th");var t=e.wordcut;t.init(),e.th.tokenizer=function(i){if(!arguments.length||null==i||void 0==i)return[];if(Array.isArray(i))return i.map(function(t){return r?new e.Token(t):t});var n=i.toString().replace(/^\s+/,"");return t.cut(n).split("|")}}}); \ No newline at end of file
diff --git a/freetype/docs/reference/assets/javascripts/lunr/min/lunr.tr.min.js b/freetype/docs/reference/assets/javascripts/lunr/min/lunr.tr.min.js
new file mode 100644
index 00000000..563f6ec1
--- /dev/null
+++ b/freetype/docs/reference/assets/javascripts/lunr/min/lunr.tr.min.js
@@ -0,0 +1,18 @@
+/*!
+ * Lunr languages, `Turkish` language
+ * https://github.com/MihaiValentin/lunr-languages
+ *
+ * Copyright 2014, Mihai Valentin
+ * http://www.mozilla.org/MPL/
+ */
+/*!
+ * based on
+ * Snowball JavaScript Library v0.3
+ * http://code.google.com/p/urim/
+ * http://snowball.tartarus.org/
+ *
+ * Copyright 2010, Oleg Mazko
+ * http://www.mozilla.org/MPL/
+ */
+
+!function(r,i){"function"==typeof define&&define.amd?define(i):"object"==typeof exports?module.exports=i():i()(r.lunr)}(this,function(){return function(r){if(void 0===r)throw new Error("Lunr is not present. Please include / require Lunr before this script.");if(void 0===r.stemmerSupport)throw new Error("Lunr stemmer support is not present. Please include / require Lunr stemmer support before this script.");r.tr=function(){this.pipeline.reset(),this.pipeline.add(r.tr.trimmer,r.tr.stopWordFilter,r.tr.stemmer),this.searchPipeline&&(this.searchPipeline.reset(),this.searchPipeline.add(r.tr.stemmer))},r.tr.wordCharacters="A-Za-zªºÀ-ÖØ-öø-ʸˠ-ˤᴀ-ᴥᴬ-ᵜᵢ-ᵥᵫ-ᵷᵹ-ᶾḀ-ỿⁱⁿₐ-ₜKÅℲⅎⅠ-ↈⱠ-ⱿꜢ-ꞇꞋ-ꞭꞰ-ꞷꟷ-ꟿꬰ-ꭚꭜ-ꭤff-stA-Za-z",r.tr.trimmer=r.trimmerSupport.generateTrimmer(r.tr.wordCharacters),r.Pipeline.registerFunction(r.tr.trimmer,"trimmer-tr"),r.tr.stemmer=function(){var i=r.stemmerSupport.Among,e=r.stemmerSupport.SnowballProgram,n=new function(){function r(r,i,e){for(;;){var n=Dr.limit-Dr.cursor;if(Dr.in_grouping_b(r,i,e)){Dr.cursor=Dr.limit-n;break}if(Dr.cursor=Dr.limit-n,Dr.cursor<=Dr.limit_backward)return!1;Dr.cursor--}return!0}function n(){var i,e;i=Dr.limit-Dr.cursor,r(Wr,97,305);for(var n=0;n<Br.length;n++){e=Dr.limit-Dr.cursor;var t=Br[n];if(Dr.eq_s_b(1,t[0])&&r(t[1],t[2],t[3]))return Dr.cursor=Dr.limit-i,!0;Dr.cursor=Dr.limit-e}return Dr.cursor=Dr.limit-e,!(!Dr.eq_s_b(1,"ü")||!r(Zr,246,252))&&(Dr.cursor=Dr.limit-i,!0)}function t(r,i){var e,n=Dr.limit-Dr.cursor;return r()&&(Dr.cursor=Dr.limit-n,Dr.cursor>Dr.limit_backward&&(Dr.cursor--,e=Dr.limit-Dr.cursor,i()))?(Dr.cursor=Dr.limit-e,!0):(Dr.cursor=Dr.limit-n,r()?(Dr.cursor=Dr.limit-n,!1):(Dr.cursor=Dr.limit-n,!(Dr.cursor<=Dr.limit_backward)&&(Dr.cursor--,!!i()&&(Dr.cursor=Dr.limit-n,!0))))}function u(r){return t(r,function(){return Dr.in_grouping_b(Wr,97,305)})}function o(){return u(function(){return Dr.eq_s_b(1,"n")})}function s(){return u(function(){return Dr.eq_s_b(1,"s")})}function c(){return u(function(){return Dr.eq_s_b(1,"y")})}function l(){return t(function(){return Dr.in_grouping_b(Lr,105,305)},function(){return Dr.out_grouping_b(Wr,97,305)})}function a(){return Dr.find_among_b(ur,10)&&l()}function m(){return n()&&Dr.in_grouping_b(Lr,105,305)&&s()}function d(){return Dr.find_among_b(or,2)}function f(){return n()&&Dr.in_grouping_b(Lr,105,305)&&c()}function b(){return n()&&Dr.find_among_b(sr,4)}function w(){return n()&&Dr.find_among_b(cr,4)&&o()}function _(){return n()&&Dr.find_among_b(lr,2)&&c()}function k(){return n()&&Dr.find_among_b(ar,2)}function p(){return n()&&Dr.find_among_b(mr,4)}function g(){return n()&&Dr.find_among_b(dr,2)}function y(){return n()&&Dr.find_among_b(fr,4)}function z(){return n()&&Dr.find_among_b(br,2)}function v(){return n()&&Dr.find_among_b(wr,2)&&c()}function h(){return Dr.eq_s_b(2,"ki")}function q(){return n()&&Dr.find_among_b(_r,2)&&o()}function C(){return n()&&Dr.find_among_b(kr,4)&&c()}function P(){return n()&&Dr.find_among_b(pr,4)}function F(){return n()&&Dr.find_among_b(gr,4)&&c()}function S(){return Dr.find_among_b(yr,4)}function W(){return n()&&Dr.find_among_b(zr,2)}function L(){return n()&&Dr.find_among_b(vr,4)}function x(){return n()&&Dr.find_among_b(hr,8)}function A(){return Dr.find_among_b(qr,2)}function E(){return n()&&Dr.find_among_b(Cr,32)&&c()}function j(){return Dr.find_among_b(Pr,8)&&c()}function T(){return n()&&Dr.find_among_b(Fr,4)&&c()}function Z(){return Dr.eq_s_b(3,"ken")&&c()}function B(){var r=Dr.limit-Dr.cursor;return!(T()||(Dr.cursor=Dr.limit-r,E()||(Dr.cursor=Dr.limit-r,j()||(Dr.cursor=Dr.limit-r,Z()))))}function D(){if(A()){var r=Dr.limit-Dr.cursor;if(S()||(Dr.cursor=Dr.limit-r,W()||(Dr.cursor=Dr.limit-r,C()||(Dr.cursor=Dr.limit-r,P()||(Dr.cursor=Dr.limit-r,F()||(Dr.cursor=Dr.limit-r))))),T())return!1}return!0}function G(){if(W()){Dr.bra=Dr.cursor,Dr.slice_del();var r=Dr.limit-Dr.cursor;return Dr.ket=Dr.cursor,x()||(Dr.cursor=Dr.limit-r,E()||(Dr.cursor=Dr.limit-r,j()||(Dr.cursor=Dr.limit-r,T()||(Dr.cursor=Dr.limit-r)))),nr=!1,!1}return!0}function H(){if(!L())return!0;var r=Dr.limit-Dr.cursor;return!E()&&(Dr.cursor=Dr.limit-r,!j())}function I(){var r,i=Dr.limit-Dr.cursor;return!(S()||(Dr.cursor=Dr.limit-i,F()||(Dr.cursor=Dr.limit-i,P()||(Dr.cursor=Dr.limit-i,C()))))||(Dr.bra=Dr.cursor,Dr.slice_del(),r=Dr.limit-Dr.cursor,Dr.ket=Dr.cursor,T()||(Dr.cursor=Dr.limit-r),!1)}function J(){var r,i=Dr.limit-Dr.cursor;if(Dr.ket=Dr.cursor,nr=!0,B()&&(Dr.cursor=Dr.limit-i,D()&&(Dr.cursor=Dr.limit-i,G()&&(Dr.cursor=Dr.limit-i,H()&&(Dr.cursor=Dr.limit-i,I()))))){if(Dr.cursor=Dr.limit-i,!x())return;Dr.bra=Dr.cursor,Dr.slice_del(),Dr.ket=Dr.cursor,r=Dr.limit-Dr.cursor,S()||(Dr.cursor=Dr.limit-r,W()||(Dr.cursor=Dr.limit-r,C()||(Dr.cursor=Dr.limit-r,P()||(Dr.cursor=Dr.limit-r,F()||(Dr.cursor=Dr.limit-r))))),T()||(Dr.cursor=Dr.limit-r)}Dr.bra=Dr.cursor,Dr.slice_del()}function K(){var r,i,e,n;if(Dr.ket=Dr.cursor,h()){if(r=Dr.limit-Dr.cursor,p())return Dr.bra=Dr.cursor,Dr.slice_del(),i=Dr.limit-Dr.cursor,Dr.ket=Dr.cursor,W()?(Dr.bra=Dr.cursor,Dr.slice_del(),K()):(Dr.cursor=Dr.limit-i,a()&&(Dr.bra=Dr.cursor,Dr.slice_del(),Dr.ket=Dr.cursor,W()&&(Dr.bra=Dr.cursor,Dr.slice_del(),K()))),!0;if(Dr.cursor=Dr.limit-r,w()){if(Dr.bra=Dr.cursor,Dr.slice_del(),Dr.ket=Dr.cursor,e=Dr.limit-Dr.cursor,d())Dr.bra=Dr.cursor,Dr.slice_del();else{if(Dr.cursor=Dr.limit-e,Dr.ket=Dr.cursor,!a()&&(Dr.cursor=Dr.limit-e,!m()&&(Dr.cursor=Dr.limit-e,!K())))return!0;Dr.bra=Dr.cursor,Dr.slice_del(),Dr.ket=Dr.cursor,W()&&(Dr.bra=Dr.cursor,Dr.slice_del(),K())}return!0}if(Dr.cursor=Dr.limit-r,g()){if(n=Dr.limit-Dr.cursor,d())Dr.bra=Dr.cursor,Dr.slice_del();else if(Dr.cursor=Dr.limit-n,m())Dr.bra=Dr.cursor,Dr.slice_del(),Dr.ket=Dr.cursor,W()&&(Dr.bra=Dr.cursor,Dr.slice_del(),K());else if(Dr.cursor=Dr.limit-n,!K())return!1;return!0}}return!1}function M(r){if(Dr.ket=Dr.cursor,!g()&&(Dr.cursor=Dr.limit-r,!k()))return!1;var i=Dr.limit-Dr.cursor;if(d())Dr.bra=Dr.cursor,Dr.slice_del();else if(Dr.cursor=Dr.limit-i,m())Dr.bra=Dr.cursor,Dr.slice_del(),Dr.ket=Dr.cursor,W()&&(Dr.bra=Dr.cursor,Dr.slice_del(),K());else if(Dr.cursor=Dr.limit-i,!K())return!1;return!0}function N(r){if(Dr.ket=Dr.cursor,!z()&&(Dr.cursor=Dr.limit-r,!b()))return!1;var i=Dr.limit-Dr.cursor;return!(!m()&&(Dr.cursor=Dr.limit-i,!d()))&&(Dr.bra=Dr.cursor,Dr.slice_del(),Dr.ket=Dr.cursor,W()&&(Dr.bra=Dr.cursor,Dr.slice_del(),K()),!0)}function O(){var r,i=Dr.limit-Dr.cursor;return Dr.ket=Dr.cursor,!(!w()&&(Dr.cursor=Dr.limit-i,!v()))&&(Dr.bra=Dr.cursor,Dr.slice_del(),r=Dr.limit-Dr.cursor,Dr.ket=Dr.cursor,!(!W()||(Dr.bra=Dr.cursor,Dr.slice_del(),!K()))||(Dr.cursor=Dr.limit-r,Dr.ket=Dr.cursor,!(a()||(Dr.cursor=Dr.limit-r,m()||(Dr.cursor=Dr.limit-r,K())))||(Dr.bra=Dr.cursor,Dr.slice_del(),Dr.ket=Dr.cursor,W()&&(Dr.bra=Dr.cursor,Dr.slice_del(),K()),!0)))}function Q(){var r,i,e=Dr.limit-Dr.cursor;if(Dr.ket=Dr.cursor,!p()&&(Dr.cursor=Dr.limit-e,!f()&&(Dr.cursor=Dr.limit-e,!_())))return!1;if(Dr.bra=Dr.cursor,Dr.slice_del(),Dr.ket=Dr.cursor,r=Dr.limit-Dr.cursor,a())Dr.bra=Dr.cursor,Dr.slice_del(),i=Dr.limit-Dr.cursor,Dr.ket=Dr.cursor,W()||(Dr.cursor=Dr.limit-i);else if(Dr.cursor=Dr.limit-r,!W())return!0;return Dr.bra=Dr.cursor,Dr.slice_del(),Dr.ket=Dr.cursor,K(),!0}function R(){var r,i,e=Dr.limit-Dr.cursor;if(Dr.ket=Dr.cursor,W())return Dr.bra=Dr.cursor,Dr.slice_del(),void K();if(Dr.cursor=Dr.limit-e,Dr.ket=Dr.cursor,q())if(Dr.bra=Dr.cursor,Dr.slice_del(),r=Dr.limit-Dr.cursor,Dr.ket=Dr.cursor,d())Dr.bra=Dr.cursor,Dr.slice_del();else{if(Dr.cursor=Dr.limit-r,Dr.ket=Dr.cursor,!a()&&(Dr.cursor=Dr.limit-r,!m())){if(Dr.cursor=Dr.limit-r,Dr.ket=Dr.cursor,!W())return;if(Dr.bra=Dr.cursor,Dr.slice_del(),!K())return}Dr.bra=Dr.cursor,Dr.slice_del(),Dr.ket=Dr.cursor,W()&&(Dr.bra=Dr.cursor,Dr.slice_del(),K())}else if(Dr.cursor=Dr.limit-e,!M(e)&&(Dr.cursor=Dr.limit-e,!N(e))){if(Dr.cursor=Dr.limit-e,Dr.ket=Dr.cursor,y())return Dr.bra=Dr.cursor,Dr.slice_del(),Dr.ket=Dr.cursor,i=Dr.limit-Dr.cursor,void(a()?(Dr.bra=Dr.cursor,Dr.slice_del(),Dr.ket=Dr.cursor,W()&&(Dr.bra=Dr.cursor,Dr.slice_del(),K())):(Dr.cursor=Dr.limit-i,W()?(Dr.bra=Dr.cursor,Dr.slice_del(),K()):(Dr.cursor=Dr.limit-i,K())));if(Dr.cursor=Dr.limit-e,!O()){if(Dr.cursor=Dr.limit-e,d())return Dr.bra=Dr.cursor,void Dr.slice_del();Dr.cursor=Dr.limit-e,K()||(Dr.cursor=Dr.limit-e,Q()||(Dr.cursor=Dr.limit-e,Dr.ket=Dr.cursor,(a()||(Dr.cursor=Dr.limit-e,m()))&&(Dr.bra=Dr.cursor,Dr.slice_del(),Dr.ket=Dr.cursor,W()&&(Dr.bra=Dr.cursor,Dr.slice_del(),K()))))}}}function U(){var r;if(Dr.ket=Dr.cursor,r=Dr.find_among_b(Sr,4))switch(Dr.bra=Dr.cursor,r){case 1:Dr.slice_from("p");break;case 2:Dr.slice_from("ç");break;case 3:Dr.slice_from("t");break;case 4:Dr.slice_from("k")}}function V(){for(;;){var r=Dr.limit-Dr.cursor;if(Dr.in_grouping_b(Wr,97,305)){Dr.cursor=Dr.limit-r;break}if(Dr.cursor=Dr.limit-r,Dr.cursor<=Dr.limit_backward)return!1;Dr.cursor--}return!0}function X(r,i,e){if(Dr.cursor=Dr.limit-r,V()){var n=Dr.limit-Dr.cursor;if(!Dr.eq_s_b(1,i)&&(Dr.cursor=Dr.limit-n,!Dr.eq_s_b(1,e)))return!0;Dr.cursor=Dr.limit-r;var t=Dr.cursor;return Dr.insert(Dr.cursor,Dr.cursor,e),Dr.cursor=t,!1}return!0}function Y(){var r=Dr.limit-Dr.cursor;(Dr.eq_s_b(1,"d")||(Dr.cursor=Dr.limit-r,Dr.eq_s_b(1,"g")))&&X(r,"a","ı")&&X(r,"e","i")&&X(r,"o","u")&&X(r,"ö","ü")}function $(){for(var r,i=Dr.cursor,e=2;;){for(r=Dr.cursor;!Dr.in_grouping(Wr,97,305);){if(Dr.cursor>=Dr.limit)return Dr.cursor=r,!(e>0)&&(Dr.cursor=i,!0);Dr.cursor++}e--}}function rr(r,i,e){for(;!Dr.eq_s(i,e);){if(Dr.cursor>=Dr.limit)return!0;Dr.cursor++}return(tr=i)!=Dr.limit||(Dr.cursor=r,!1)}function ir(){var r=Dr.cursor;return!rr(r,2,"ad")||(Dr.cursor=r,!rr(r,5,"soyad"))}function er(){var r=Dr.cursor;return!ir()&&(Dr.limit_backward=r,Dr.cursor=Dr.limit,Y(),Dr.cursor=Dr.limit,U(),!0)}var nr,tr,ur=[new i("m",-1,-1),new i("n",-1,-1),new i("miz",-1,-1),new i("niz",-1,-1),new i("muz",-1,-1),new i("nuz",-1,-1),new i("müz",-1,-1),new i("nüz",-1,-1),new i("mız",-1,-1),new i("nız",-1,-1)],or=[new i("leri",-1,-1),new i("ları",-1,-1)],sr=[new i("ni",-1,-1),new i("nu",-1,-1),new i("nü",-1,-1),new i("nı",-1,-1)],cr=[new i("in",-1,-1),new i("un",-1,-1),new i("ün",-1,-1),new i("ın",-1,-1)],lr=[new i("a",-1,-1),new i("e",-1,-1)],ar=[new i("na",-1,-1),new i("ne",-1,-1)],mr=[new i("da",-1,-1),new i("ta",-1,-1),new i("de",-1,-1),new i("te",-1,-1)],dr=[new i("nda",-1,-1),new i("nde",-1,-1)],fr=[new i("dan",-1,-1),new i("tan",-1,-1),new i("den",-1,-1),new i("ten",-1,-1)],br=[new i("ndan",-1,-1),new i("nden",-1,-1)],wr=[new i("la",-1,-1),new i("le",-1,-1)],_r=[new i("ca",-1,-1),new i("ce",-1,-1)],kr=[new i("im",-1,-1),new i("um",-1,-1),new i("üm",-1,-1),new i("ım",-1,-1)],pr=[new i("sin",-1,-1),new i("sun",-1,-1),new i("sün",-1,-1),new i("sın",-1,-1)],gr=[new i("iz",-1,-1),new i("uz",-1,-1),new i("üz",-1,-1),new i("ız",-1,-1)],yr=[new i("siniz",-1,-1),new i("sunuz",-1,-1),new i("sünüz",-1,-1),new i("sınız",-1,-1)],zr=[new i("lar",-1,-1),new i("ler",-1,-1)],vr=[new i("niz",-1,-1),new i("nuz",-1,-1),new i("nüz",-1,-1),new i("nız",-1,-1)],hr=[new i("dir",-1,-1),new i("tir",-1,-1),new i("dur",-1,-1),new i("tur",-1,-1),new i("dür",-1,-1),new i("tür",-1,-1),new i("dır",-1,-1),new i("tır",-1,-1)],qr=[new i("casına",-1,-1),new i("cesine",-1,-1)],Cr=[new i("di",-1,-1),new i("ti",-1,-1),new i("dik",-1,-1),new i("tik",-1,-1),new i("duk",-1,-1),new i("tuk",-1,-1),new i("dük",-1,-1),new i("tük",-1,-1),new i("dık",-1,-1),new i("tık",-1,-1),new i("dim",-1,-1),new i("tim",-1,-1),new i("dum",-1,-1),new i("tum",-1,-1),new i("düm",-1,-1),new i("tüm",-1,-1),new i("dım",-1,-1),new i("tım",-1,-1),new i("din",-1,-1),new i("tin",-1,-1),new i("dun",-1,-1),new i("tun",-1,-1),new i("dün",-1,-1),new i("tün",-1,-1),new i("dın",-1,-1),new i("tın",-1,-1),new i("du",-1,-1),new i("tu",-1,-1),new i("dü",-1,-1),new i("tü",-1,-1),new i("dı",-1,-1),new i("tı",-1,-1)],Pr=[new i("sa",-1,-1),new i("se",-1,-1),new i("sak",-1,-1),new i("sek",-1,-1),new i("sam",-1,-1),new i("sem",-1,-1),new i("san",-1,-1),new i("sen",-1,-1)],Fr=[new i("miş",-1,-1),new i("muş",-1,-1),new i("müş",-1,-1),new i("mış",-1,-1)],Sr=[new i("b",-1,1),new i("c",-1,2),new i("d",-1,3),new i("ğ",-1,4)],Wr=[17,65,16,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,32,8,0,0,0,0,0,0,1],Lr=[1,16,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,8,0,0,0,0,0,0,1],xr=[1,64,16,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1],Ar=[17,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,130],Er=[1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1],jr=[17],Tr=[65],Zr=[65],Br=[["a",xr,97,305],["e",Ar,101,252],["ı",Er,97,305],["i",jr,101,105],["o",Tr,111,117],["ö",Zr,246,252],["u",Tr,111,117]],Dr=new e;this.setCurrent=function(r){Dr.setCurrent(r)},this.getCurrent=function(){return Dr.getCurrent()},this.stem=function(){return!!($()&&(Dr.limit_backward=Dr.cursor,Dr.cursor=Dr.limit,J(),Dr.cursor=Dr.limit,nr&&(R(),Dr.cursor=Dr.limit_backward,er())))}};return function(r){return"function"==typeof r.update?r.update(function(r){return n.setCurrent(r),n.stem(),n.getCurrent()}):(n.setCurrent(r),n.stem(),n.getCurrent())}}(),r.Pipeline.registerFunction(r.tr.stemmer,"stemmer-tr"),r.tr.stopWordFilter=r.generateStopWordFilter("acaba altmış altı ama ancak arada aslında ayrıca bana bazı belki ben benden beni benim beri beş bile bin bir biri birkaç birkez birçok birşey birşeyi biz bizden bize bizi bizim bu buna bunda bundan bunlar bunları bunların bunu bunun burada böyle böylece da daha dahi de defa değil diye diğer doksan dokuz dolayı dolayısıyla dört edecek eden ederek edilecek ediliyor edilmesi ediyor elli en etmesi etti ettiği ettiğini eğer gibi göre halen hangi hatta hem henüz hep hepsi her herhangi herkesin hiç hiçbir iki ile ilgili ise itibaren itibariyle için işte kadar karşın katrilyon kendi kendilerine kendini kendisi kendisine kendisini kez ki kim kimden kime kimi kimse kırk milyar milyon mu mü mı nasıl ne neden nedenle nerde nerede nereye niye niçin o olan olarak oldu olduklarını olduğu olduğunu olmadı olmadığı olmak olması olmayan olmaz olsa olsun olup olur olursa oluyor on ona ondan onlar onlardan onları onların onu onun otuz oysa pek rağmen sadece sanki sekiz seksen sen senden seni senin siz sizden sizi sizin tarafından trilyon tüm var vardı ve veya ya yani yapacak yapmak yaptı yaptıkları yaptığı yaptığını yapılan yapılması yapıyor yedi yerine yetmiş yine yirmi yoksa yüz zaten çok çünkü öyle üzere üç şey şeyden şeyi şeyler şu şuna şunda şundan şunları şunu şöyle".split(" ")),r.Pipeline.registerFunction(r.tr.stopWordFilter,"stopWordFilter-tr")}}); \ No newline at end of file
diff --git a/freetype/docs/reference/assets/javascripts/lunr/min/lunr.vi.min.js b/freetype/docs/reference/assets/javascripts/lunr/min/lunr.vi.min.js
new file mode 100644
index 00000000..22aed28c
--- /dev/null
+++ b/freetype/docs/reference/assets/javascripts/lunr/min/lunr.vi.min.js
@@ -0,0 +1 @@
+!function(e,r){"function"==typeof define&&define.amd?define(r):"object"==typeof exports?module.exports=r():r()(e.lunr)}(this,function(){return function(e){if(void 0===e)throw new Error("Lunr is not present. Please include / require Lunr before this script.");if(void 0===e.stemmerSupport)throw new Error("Lunr stemmer support is not present. Please include / require Lunr stemmer support before this script.");e.vi=function(){this.pipeline.reset(),this.pipeline.add(e.vi.stopWordFilter,e.vi.trimmer)},e.vi.wordCharacters="[A-Za-ẓ̀͐́͑̉̃̓ÂâÊêÔôĂ-ăĐ-đƠ-ơƯ-ư]",e.vi.trimmer=e.trimmerSupport.generateTrimmer(e.vi.wordCharacters),e.Pipeline.registerFunction(e.vi.trimmer,"trimmer-vi"),e.vi.stopWordFilter=e.generateStopWordFilter("là cái nhưng mà".split(" "))}}); \ No newline at end of file
diff --git a/freetype/docs/reference/assets/javascripts/lunr/min/lunr.zh.min.js b/freetype/docs/reference/assets/javascripts/lunr/min/lunr.zh.min.js
new file mode 100644
index 00000000..7727bbe2
--- /dev/null
+++ b/freetype/docs/reference/assets/javascripts/lunr/min/lunr.zh.min.js
@@ -0,0 +1 @@
+!function(e,r){"function"==typeof define&&define.amd?define(r):"object"==typeof exports?module.exports=r(require("nodejieba")):r()(e.lunr)}(this,function(e){return function(r,t){if(void 0===r)throw new Error("Lunr is not present. Please include / require Lunr before this script.");if(void 0===r.stemmerSupport)throw new Error("Lunr stemmer support is not present. Please include / require Lunr stemmer support before this script.");var i="2"==r.version[0];r.zh=function(){this.pipeline.reset(),this.pipeline.add(r.zh.trimmer,r.zh.stopWordFilter,r.zh.stemmer),i?this.tokenizer=r.zh.tokenizer:(r.tokenizer&&(r.tokenizer=r.zh.tokenizer),this.tokenizerFn&&(this.tokenizerFn=r.zh.tokenizer))},r.zh.tokenizer=function(n){if(!arguments.length||null==n||void 0==n)return[];if(Array.isArray(n))return n.map(function(e){return i?new r.Token(e.toLowerCase()):e.toLowerCase()});t&&e.load(t);var o=n.toString().trim().toLowerCase(),s=[];e.cut(o,!0).forEach(function(e){s=s.concat(e.split(" "))}),s=s.filter(function(e){return!!e});var u=0;return s.map(function(e,t){if(i){var n=o.indexOf(e,u),s={};return s.position=[n,e.length],s.index=t,u=n,new r.Token(e,s)}return e})},r.zh.wordCharacters="\\w一-龥",r.zh.trimmer=r.trimmerSupport.generateTrimmer(r.zh.wordCharacters),r.Pipeline.registerFunction(r.zh.trimmer,"trimmer-zh"),r.zh.stemmer=function(){return function(e){return e}}(),r.Pipeline.registerFunction(r.zh.stemmer,"stemmer-zh"),r.zh.stopWordFilter=r.generateStopWordFilter("的 一 不 在 人 有 是 为 以 于 上 他 而 后 之 来 及 了 因 下 可 到 由 这 与 也 此 但 并 个 其 已 无 小 我 们 起 最 再 今 去 好 只 又 或 很 亦 某 把 那 你 乃 它 吧 被 比 别 趁 当 从 到 得 打 凡 儿 尔 该 各 给 跟 和 何 还 即 几 既 看 据 距 靠 啦 了 另 么 每 们 嘛 拿 哪 那 您 凭 且 却 让 仍 啥 如 若 使 谁 虽 随 同 所 她 哇 嗡 往 哪 些 向 沿 哟 用 于 咱 则 怎 曾 至 致 着 诸 自".split(" ")),r.Pipeline.registerFunction(r.zh.stopWordFilter,"stopWordFilter-zh")}}); \ No newline at end of file
diff --git a/freetype/docs/reference/assets/javascripts/lunr/tinyseg.js b/freetype/docs/reference/assets/javascripts/lunr/tinyseg.js
index e3663a57..167fa6dd 100644
--- a/freetype/docs/reference/assets/javascripts/lunr/tinyseg.js
+++ b/freetype/docs/reference/assets/javascripts/lunr/tinyseg.js
@@ -1 +1,206 @@
-!function(_,t){"function"==typeof define&&define.amd?define(t):"object"==typeof exports?module.exports=t():t()(_.lunr)}(this,function(){return function(_){function t(){var _={"[一二三四五六七八九十百千万億兆]":"M","[一-龠々〆ヵヶ]":"H","[ぁ-ん]":"I","[ァ-ヴーア-ン゙ー]":"K","[a-zA-Za-zA-Z]":"A","[0-90-9]":"N"};for(var t in this.chartype_=[],_){var H=new RegExp(t);this.chartype_.push([H,_[t]])}return this.BIAS__=-332,this.BC1__={HH:6,II:2461,KH:406,OH:-1378},this.BC2__={AA:-3267,AI:2744,AN:-878,HH:-4070,HM:-1711,HN:4012,HO:3761,IA:1327,IH:-1184,II:-1332,IK:1721,IO:5492,KI:3831,KK:-8741,MH:-3132,MK:3334,OO:-2920},this.BC3__={HH:996,HI:626,HK:-721,HN:-1307,HO:-836,IH:-301,KK:2762,MK:1079,MM:4034,OA:-1652,OH:266},this.BP1__={BB:295,OB:304,OO:-125,UB:352},this.BP2__={BO:60,OO:-1762},this.BQ1__={BHH:1150,BHM:1521,BII:-1158,BIM:886,BMH:1208,BNH:449,BOH:-91,BOO:-2597,OHI:451,OIH:-296,OKA:1851,OKH:-1020,OKK:904,OOO:2965},this.BQ2__={BHH:118,BHI:-1159,BHM:466,BIH:-919,BKK:-1720,BKO:864,OHH:-1139,OHM:-181,OIH:153,UHI:-1146},this.BQ3__={BHH:-792,BHI:2664,BII:-299,BKI:419,BMH:937,BMM:8335,BNN:998,BOH:775,OHH:2174,OHM:439,OII:280,OKH:1798,OKI:-793,OKO:-2242,OMH:-2402,OOO:11699},this.BQ4__={BHH:-3895,BIH:3761,BII:-4654,BIK:1348,BKK:-1806,BMI:-3385,BOO:-12396,OAH:926,OHH:266,OHK:-2036,ONN:-973},this.BW1__={",と":660,",同":727,"B1あ":1404,"B1同":542,"、と":660,"、同":727,"」と":1682,"あっ":1505,"いう":1743,"いっ":-2055,"いる":672,"うし":-4817,"うん":665,"から":3472,"がら":600,"こう":-790,"こと":2083,"こん":-1262,"さら":-4143,"さん":4573,"した":2641,"して":1104,"すで":-3399,"そこ":1977,"それ":-871,"たち":1122,"ため":601,"った":3463,"つい":-802,"てい":805,"てき":1249,"でき":1127,"です":3445,"では":844,"とい":-4915,"とみ":1922,"どこ":3887,"ない":5713,"なっ":3015,"など":7379,"なん":-1113,"にし":2468,"には":1498,"にも":1671,"に対":-912,"の一":-501,"の中":741,"ませ":2448,"まで":1711,"まま":2600,"まる":-2155,"やむ":-1947,"よっ":-2565,"れた":2369,"れで":-913,"をし":1860,"を見":731,"亡く":-1886,"京都":2558,"取り":-2784,"大き":-2604,"大阪":1497,"平方":-2314,"引き":-1336,"日本":-195,"本当":-2423,"毎日":-2113,"目指":-724,"B1あ":1404,"B1同":542,"」と":1682},this.BW2__={"..":-11822,11:-669,"――":-5730,"−−":-13175,"いう":-1609,"うか":2490,"かし":-1350,"かも":-602,"から":-7194,"かれ":4612,"がい":853,"がら":-3198,"きた":1941,"くな":-1597,"こと":-8392,"この":-4193,"させ":4533,"され":13168,"さん":-3977,"しい":-1819,"しか":-545,"した":5078,"して":972,"しな":939,"その":-3744,"たい":-1253,"たた":-662,"ただ":-3857,"たち":-786,"たと":1224,"たは":-939,"った":4589,"って":1647,"っと":-2094,"てい":6144,"てき":3640,"てく":2551,"ては":-3110,"ても":-3065,"でい":2666,"でき":-1528,"でし":-3828,"です":-4761,"でも":-4203,"とい":1890,"とこ":-1746,"とと":-2279,"との":720,"とみ":5168,"とも":-3941,"ない":-2488,"なが":-1313,"など":-6509,"なの":2614,"なん":3099,"にお":-1615,"にし":2748,"にな":2454,"によ":-7236,"に対":-14943,"に従":-4688,"に関":-11388,"のか":2093,"ので":-7059,"のに":-6041,"のの":-6125,"はい":1073,"はが":-1033,"はず":-2532,"ばれ":1813,"まし":-1316,"まで":-6621,"まれ":5409,"めて":-3153,"もい":2230,"もの":-10713,"らか":-944,"らし":-1611,"らに":-1897,"りし":651,"りま":1620,"れた":4270,"れて":849,"れば":4114,"ろう":6067,"われ":7901,"を通":-11877,"んだ":728,"んな":-4115,"一人":602,"一方":-1375,"一日":970,"一部":-1051,"上が":-4479,"会社":-1116,"出て":2163,"分の":-7758,"同党":970,"同日":-913,"大阪":-2471,"委員":-1250,"少な":-1050,"年度":-8669,"年間":-1626,"府県":-2363,"手権":-1982,"新聞":-4066,"日新":-722,"日本":-7068,"日米":3372,"曜日":-601,"朝鮮":-2355,"本人":-2697,"東京":-1543,"然と":-1384,"社会":-1276,"立て":-990,"第に":-1612,"米国":-4268,"11":-669},this.BW3__={"あた":-2194,"あり":719,"ある":3846,"い.":-1185,"い。":-1185,"いい":5308,"いえ":2079,"いく":3029,"いた":2056,"いっ":1883,"いる":5600,"いわ":1527,"うち":1117,"うと":4798,"えと":1454,"か.":2857,"か。":2857,"かけ":-743,"かっ":-4098,"かに":-669,"から":6520,"かり":-2670,"が,":1816,"が、":1816,"がき":-4855,"がけ":-1127,"がっ":-913,"がら":-4977,"がり":-2064,"きた":1645,"けど":1374,"こと":7397,"この":1542,"ころ":-2757,"さい":-714,"さを":976,"し,":1557,"し、":1557,"しい":-3714,"した":3562,"して":1449,"しな":2608,"しま":1200,"す.":-1310,"す。":-1310,"する":6521,"ず,":3426,"ず、":3426,"ずに":841,"そう":428,"た.":8875,"た。":8875,"たい":-594,"たの":812,"たり":-1183,"たる":-853,"だ.":4098,"だ。":4098,"だっ":1004,"った":-4748,"って":300,"てい":6240,"てお":855,"ても":302,"です":1437,"でに":-1482,"では":2295,"とう":-1387,"とし":2266,"との":541,"とも":-3543,"どう":4664,"ない":1796,"なく":-903,"など":2135,"に,":-1021,"に、":-1021,"にし":1771,"にな":1906,"には":2644,"の,":-724,"の、":-724,"の子":-1e3,"は,":1337,"は、":1337,"べき":2181,"まし":1113,"ます":6943,"まっ":-1549,"まで":6154,"まれ":-793,"らし":1479,"られ":6820,"るる":3818,"れ,":854,"れ、":854,"れた":1850,"れて":1375,"れば":-3246,"れる":1091,"われ":-605,"んだ":606,"んで":798,"カ月":990,"会議":860,"入り":1232,"大会":2217,"始め":1681,"市":965,"新聞":-5055,"日,":974,"日、":974,"社会":2024,"カ月":990},this.TC1__={AAA:1093,HHH:1029,HHM:580,HII:998,HOH:-390,HOM:-331,IHI:1169,IOH:-142,IOI:-1015,IOM:467,MMH:187,OOI:-1832},this.TC2__={HHO:2088,HII:-1023,HMM:-1154,IHI:-1965,KKH:703,OII:-2649},this.TC3__={AAA:-294,HHH:346,HHI:-341,HII:-1088,HIK:731,HOH:-1486,IHH:128,IHI:-3041,IHO:-1935,IIH:-825,IIM:-1035,IOI:-542,KHH:-1216,KKA:491,KKH:-1217,KOK:-1009,MHH:-2694,MHM:-457,MHO:123,MMH:-471,NNH:-1689,NNO:662,OHO:-3393},this.TC4__={HHH:-203,HHI:1344,HHK:365,HHM:-122,HHN:182,HHO:669,HIH:804,HII:679,HOH:446,IHH:695,IHO:-2324,IIH:321,III:1497,IIO:656,IOO:54,KAK:4845,KKA:3386,KKK:3065,MHH:-405,MHI:201,MMH:-241,MMM:661,MOM:841},this.TQ1__={BHHH:-227,BHHI:316,BHIH:-132,BIHH:60,BIII:1595,BNHH:-744,BOHH:225,BOOO:-908,OAKK:482,OHHH:281,OHIH:249,OIHI:200,OIIH:-68},this.TQ2__={BIHH:-1401,BIII:-1033,BKAK:-543,BOOO:-5591},this.TQ3__={BHHH:478,BHHM:-1073,BHIH:222,BHII:-504,BIIH:-116,BIII:-105,BMHI:-863,BMHM:-464,BOMH:620,OHHH:346,OHHI:1729,OHII:997,OHMH:481,OIHH:623,OIIH:1344,OKAK:2792,OKHH:587,OKKA:679,OOHH:110,OOII:-685},this.TQ4__={BHHH:-721,BHHM:-3604,BHII:-966,BIIH:-607,BIII:-2181,OAAA:-2763,OAKK:180,OHHH:-294,OHHI:2446,OHHO:480,OHIH:-1573,OIHH:1935,OIHI:-493,OIIH:626,OIII:-4007,OKAK:-8156},this.TW1__={"につい":-4681,"東京都":2026},this.TW2__={"ある程":-2049,"いった":-1256,"ころが":-2434,"しょう":3873,"その後":-4430,"だって":-1049,"ていた":1833,"として":-4657,"ともに":-4517,"もので":1882,"一気に":-792,"初めて":-1512,"同時に":-8097,"大きな":-1255,"対して":-2721,"社会党":-3216},this.TW3__={"いただ":-1734,"してい":1314,"として":-4314,"につい":-5483,"にとっ":-5989,"に当た":-6247,"ので,":-727,"ので、":-727,"のもの":-600,"れから":-3752,"十二月":-2287},this.TW4__={"いう.":8576,"いう。":8576,"からな":-2348,"してい":2958,"たが,":1516,"たが、":1516,"ている":1538,"という":1349,"ました":5543,"ません":1097,"ようと":-4258,"よると":5865},this.UC1__={A:484,K:93,M:645,O:-505},this.UC2__={A:819,H:1059,I:409,M:3987,N:5775,O:646},this.UC3__={A:-1370,I:2311},this.UC4__={A:-2643,H:1809,I:-1032,K:-3450,M:3565,N:3876,O:6646},this.UC5__={H:313,I:-1238,K:-799,M:539,O:-831},this.UC6__={H:-506,I:-253,K:87,M:247,O:-387},this.UP1__={O:-214},this.UP2__={B:69,O:935},this.UP3__={B:189},this.UQ1__={BH:21,BI:-12,BK:-99,BN:142,BO:-56,OH:-95,OI:477,OK:410,OO:-2422},this.UQ2__={BH:216,BI:113,OK:1759},this.UQ3__={BA:-479,BH:42,BI:1913,BK:-7198,BM:3160,BN:6427,BO:14761,OI:-827,ON:-3212},this.UW1__={",":156,"、":156,"「":-463,"あ":-941,"う":-127,"が":-553,"き":121,"こ":505,"で":-201,"と":-547,"ど":-123,"に":-789,"の":-185,"は":-847,"も":-466,"や":-470,"よ":182,"ら":-292,"り":208,"れ":169,"を":-446,"ん":-137,"・":-135,"主":-402,"京":-268,"区":-912,"午":871,"国":-460,"大":561,"委":729,"市":-411,"日":-141,"理":361,"生":-408,"県":-386,"都":-718,"「":-463,"・":-135},this.UW2__={",":-829,"、":-829,"〇":892,"「":-645,"」":3145,"あ":-538,"い":505,"う":134,"お":-502,"か":1454,"が":-856,"く":-412,"こ":1141,"さ":878,"ざ":540,"し":1529,"す":-675,"せ":300,"そ":-1011,"た":188,"だ":1837,"つ":-949,"て":-291,"で":-268,"と":-981,"ど":1273,"な":1063,"に":-1764,"の":130,"は":-409,"ひ":-1273,"べ":1261,"ま":600,"も":-1263,"や":-402,"よ":1639,"り":-579,"る":-694,"れ":571,"を":-2516,"ん":2095,"ア":-587,"カ":306,"キ":568,"ッ":831,"三":-758,"不":-2150,"世":-302,"中":-968,"主":-861,"事":492,"人":-123,"会":978,"保":362,"入":548,"初":-3025,"副":-1566,"北":-3414,"区":-422,"大":-1769,"天":-865,"太":-483,"子":-1519,"学":760,"実":1023,"小":-2009,"市":-813,"年":-1060,"強":1067,"手":-1519,"揺":-1033,"政":1522,"文":-1355,"新":-1682,"日":-1815,"明":-1462,"最":-630,"朝":-1843,"本":-1650,"東":-931,"果":-665,"次":-2378,"民":-180,"気":-1740,"理":752,"発":529,"目":-1584,"相":-242,"県":-1165,"立":-763,"第":810,"米":509,"自":-1353,"行":838,"西":-744,"見":-3874,"調":1010,"議":1198,"込":3041,"開":1758,"間":-1257,"「":-645,"」":3145,"ッ":831,"ア":-587,"カ":306,"キ":568},this.UW3__={",":4889,1:-800,"−":-1723,"、":4889,"々":-2311,"〇":5827,"」":2670,"〓":-3573,"あ":-2696,"い":1006,"う":2342,"え":1983,"お":-4864,"か":-1163,"が":3271,"く":1004,"け":388,"げ":401,"こ":-3552,"ご":-3116,"さ":-1058,"し":-395,"す":584,"せ":3685,"そ":-5228,"た":842,"ち":-521,"っ":-1444,"つ":-1081,"て":6167,"で":2318,"と":1691,"ど":-899,"な":-2788,"に":2745,"の":4056,"は":4555,"ひ":-2171,"ふ":-1798,"へ":1199,"ほ":-5516,"ま":-4384,"み":-120,"め":1205,"も":2323,"や":-788,"よ":-202,"ら":727,"り":649,"る":5905,"れ":2773,"わ":-1207,"を":6620,"ん":-518,"ア":551,"グ":1319,"ス":874,"ッ":-1350,"ト":521,"ム":1109,"ル":1591,"ロ":2201,"ン":278,"・":-3794,"一":-1619,"下":-1759,"世":-2087,"両":3815,"中":653,"主":-758,"予":-1193,"二":974,"人":2742,"今":792,"他":1889,"以":-1368,"低":811,"何":4265,"作":-361,"保":-2439,"元":4858,"党":3593,"全":1574,"公":-3030,"六":755,"共":-1880,"円":5807,"再":3095,"分":457,"初":2475,"別":1129,"前":2286,"副":4437,"力":365,"動":-949,"務":-1872,"化":1327,"北":-1038,"区":4646,"千":-2309,"午":-783,"協":-1006,"口":483,"右":1233,"各":3588,"合":-241,"同":3906,"和":-837,"員":4513,"国":642,"型":1389,"場":1219,"外":-241,"妻":2016,"学":-1356,"安":-423,"実":-1008,"家":1078,"小":-513,"少":-3102,"州":1155,"市":3197,"平":-1804,"年":2416,"広":-1030,"府":1605,"度":1452,"建":-2352,"当":-3885,"得":1905,"思":-1291,"性":1822,"戸":-488,"指":-3973,"政":-2013,"教":-1479,"数":3222,"文":-1489,"新":1764,"日":2099,"旧":5792,"昨":-661,"時":-1248,"曜":-951,"最":-937,"月":4125,"期":360,"李":3094,"村":364,"東":-805,"核":5156,"森":2438,"業":484,"氏":2613,"民":-1694,"決":-1073,"法":1868,"海":-495,"無":979,"物":461,"特":-3850,"生":-273,"用":914,"町":1215,"的":7313,"直":-1835,"省":792,"県":6293,"知":-1528,"私":4231,"税":401,"立":-960,"第":1201,"米":7767,"系":3066,"約":3663,"級":1384,"統":-4229,"総":1163,"線":1255,"者":6457,"能":725,"自":-2869,"英":785,"見":1044,"調":-562,"財":-733,"費":1777,"車":1835,"軍":1375,"込":-1504,"通":-1136,"選":-681,"郎":1026,"郡":4404,"部":1200,"金":2163,"長":421,"開":-1432,"間":1302,"関":-1282,"雨":2009,"電":-1045,"非":2066,"駅":1620,"1":-800,"」":2670,"・":-3794,"ッ":-1350,"ア":551,"グ":1319,"ス":874,"ト":521,"ム":1109,"ル":1591,"ロ":2201,"ン":278},this.UW4__={",":3930,".":3508,"―":-4841,"、":3930,"。":3508,"〇":4999,"「":1895,"」":3798,"〓":-5156,"あ":4752,"い":-3435,"う":-640,"え":-2514,"お":2405,"か":530,"が":6006,"き":-4482,"ぎ":-3821,"く":-3788,"け":-4376,"げ":-4734,"こ":2255,"ご":1979,"さ":2864,"し":-843,"じ":-2506,"す":-731,"ず":1251,"せ":181,"そ":4091,"た":5034,"だ":5408,"ち":-3654,"っ":-5882,"つ":-1659,"て":3994,"で":7410,"と":4547,"な":5433,"に":6499,"ぬ":1853,"ね":1413,"の":7396,"は":8578,"ば":1940,"ひ":4249,"び":-4134,"ふ":1345,"へ":6665,"べ":-744,"ほ":1464,"ま":1051,"み":-2082,"む":-882,"め":-5046,"も":4169,"ゃ":-2666,"や":2795,"ょ":-1544,"よ":3351,"ら":-2922,"り":-9726,"る":-14896,"れ":-2613,"ろ":-4570,"わ":-1783,"を":13150,"ん":-2352,"カ":2145,"コ":1789,"セ":1287,"ッ":-724,"ト":-403,"メ":-1635,"ラ":-881,"リ":-541,"ル":-856,"ン":-3637,"・":-4371,"ー":-11870,"一":-2069,"中":2210,"予":782,"事":-190,"井":-1768,"人":1036,"以":544,"会":950,"体":-1286,"作":530,"側":4292,"先":601,"党":-2006,"共":-1212,"内":584,"円":788,"初":1347,"前":1623,"副":3879,"力":-302,"動":-740,"務":-2715,"化":776,"区":4517,"協":1013,"参":1555,"合":-1834,"和":-681,"員":-910,"器":-851,"回":1500,"国":-619,"園":-1200,"地":866,"場":-1410,"塁":-2094,"士":-1413,"多":1067,"大":571,"子":-4802,"学":-1397,"定":-1057,"寺":-809,"小":1910,"屋":-1328,"山":-1500,"島":-2056,"川":-2667,"市":2771,"年":374,"庁":-4556,"後":456,"性":553,"感":916,"所":-1566,"支":856,"改":787,"政":2182,"教":704,"文":522,"方":-856,"日":1798,"時":1829,"最":845,"月":-9066,"木":-485,"来":-442,"校":-360,"業":-1043,"氏":5388,"民":-2716,"気":-910,"沢":-939,"済":-543,"物":-735,"率":672,"球":-1267,"生":-1286,"産":-1101,"田":-2900,"町":1826,"的":2586,"目":922,"省":-3485,"県":2997,"空":-867,"立":-2112,"第":788,"米":2937,"系":786,"約":2171,"経":1146,"統":-1169,"総":940,"線":-994,"署":749,"者":2145,"能":-730,"般":-852,"行":-792,"規":792,"警":-1184,"議":-244,"谷":-1e3,"賞":730,"車":-1481,"軍":1158,"輪":-1433,"込":-3370,"近":929,"道":-1291,"選":2596,"郎":-4866,"都":1192,"野":-1100,"銀":-2213,"長":357,"間":-2344,"院":-2297,"際":-2604,"電":-878,"領":-1659,"題":-792,"館":-1984,"首":1749,"高":2120,"「":1895,"」":3798,"・":-4371,"ッ":-724,"ー":-11870,"カ":2145,"コ":1789,"セ":1287,"ト":-403,"メ":-1635,"ラ":-881,"リ":-541,"ル":-856,"ン":-3637},this.UW5__={",":465,".":-299,1:-514,E2:-32768,"]":-2762,"、":465,"。":-299,"「":363,"あ":1655,"い":331,"う":-503,"え":1199,"お":527,"か":647,"が":-421,"き":1624,"ぎ":1971,"く":312,"げ":-983,"さ":-1537,"し":-1371,"す":-852,"だ":-1186,"ち":1093,"っ":52,"つ":921,"て":-18,"で":-850,"と":-127,"ど":1682,"な":-787,"に":-1224,"の":-635,"は":-578,"べ":1001,"み":502,"め":865,"ゃ":3350,"ょ":854,"り":-208,"る":429,"れ":504,"わ":419,"を":-1264,"ん":327,"イ":241,"ル":451,"ン":-343,"中":-871,"京":722,"会":-1153,"党":-654,"務":3519,"区":-901,"告":848,"員":2104,"大":-1296,"学":-548,"定":1785,"嵐":-1304,"市":-2991,"席":921,"年":1763,"思":872,"所":-814,"挙":1618,"新":-1682,"日":218,"月":-4353,"査":932,"格":1356,"機":-1508,"氏":-1347,"田":240,"町":-3912,"的":-3149,"相":1319,"省":-1052,"県":-4003,"研":-997,"社":-278,"空":-813,"統":1955,"者":-2233,"表":663,"語":-1073,"議":1219,"選":-1018,"郎":-368,"長":786,"間":1191,"題":2368,"館":-689,"1":-514,"E2":-32768,"「":363,"イ":241,"ル":451,"ン":-343},this.UW6__={",":227,".":808,1:-270,E1:306,"、":227,"。":808,"あ":-307,"う":189,"か":241,"が":-73,"く":-121,"こ":-200,"じ":1782,"す":383,"た":-428,"っ":573,"て":-1014,"で":101,"と":-105,"な":-253,"に":-149,"の":-417,"は":-236,"も":-206,"り":187,"る":-135,"を":195,"ル":-673,"ン":-496,"一":-277,"中":201,"件":-800,"会":624,"前":302,"区":1792,"員":-1212,"委":798,"学":-960,"市":887,"広":-695,"後":535,"業":-697,"相":753,"社":-507,"福":974,"空":-822,"者":1811,"連":463,"郎":1082,"1":-270,"E1":306,"ル":-673,"ン":-496},this}t.prototype.ctype_=function(_){for(var t in this.chartype_)if(_.match(this.chartype_[t][0]))return this.chartype_[t][1];return"O"},t.prototype.ts_=function(_){return _||0},t.prototype.segment=function(_){if(null==_||null==_||""==_)return[];var t=[],H=["B3","B2","B1"],s=["O","O","O"],h=_.split("");for(K=0;K<h.length;++K)H.push(h[K]),s.push(this.ctype_(h[K]));H.push("E1"),H.push("E2"),H.push("E3"),s.push("O"),s.push("O"),s.push("O");for(var i=H[3],I="U",O="U",B="U",K=4;K<H.length-3;++K){var M=this.BIAS__,U=H[K-3],e=H[K-2],r=H[K-1],n=H[K],A=H[K+1],p=H[K+2],u=s[K-3],C=s[K-2],W=s[K-1],T=s[K],o=s[K+1],Q=s[K+2];M+=this.ts_(this.UP1__[I]),M+=this.ts_(this.UP2__[O]),M+=this.ts_(this.UP3__[B]),M+=this.ts_(this.BP1__[I+O]),M+=this.ts_(this.BP2__[O+B]),M+=this.ts_(this.UW1__[U]),M+=this.ts_(this.UW2__[e]),M+=this.ts_(this.UW3__[r]),M+=this.ts_(this.UW4__[n]),M+=this.ts_(this.UW5__[A]),M+=this.ts_(this.UW6__[p]),M+=this.ts_(this.BW1__[e+r]),M+=this.ts_(this.BW2__[r+n]),M+=this.ts_(this.BW3__[n+A]),M+=this.ts_(this.TW1__[U+e+r]),M+=this.ts_(this.TW2__[e+r+n]),M+=this.ts_(this.TW3__[r+n+A]),M+=this.ts_(this.TW4__[n+A+p]),M+=this.ts_(this.UC1__[u]),M+=this.ts_(this.UC2__[C]),M+=this.ts_(this.UC3__[W]),M+=this.ts_(this.UC4__[T]),M+=this.ts_(this.UC5__[o]),M+=this.ts_(this.UC6__[Q]),M+=this.ts_(this.BC1__[C+W]),M+=this.ts_(this.BC2__[W+T]),M+=this.ts_(this.BC3__[T+o]),M+=this.ts_(this.TC1__[u+C+W]),M+=this.ts_(this.TC2__[C+W+T]),M+=this.ts_(this.TC3__[W+T+o]),M+=this.ts_(this.TC4__[T+o+Q]),M+=this.ts_(this.UQ1__[I+u]),M+=this.ts_(this.UQ2__[O+C]),M+=this.ts_(this.UQ3__[B+W]),M+=this.ts_(this.BQ1__[O+C+W]),M+=this.ts_(this.BQ2__[O+W+T]),M+=this.ts_(this.BQ3__[B+C+W]),M+=this.ts_(this.BQ4__[B+W+T]),M+=this.ts_(this.TQ1__[O+u+C+W]),M+=this.ts_(this.TQ2__[O+C+W+T]),M+=this.ts_(this.TQ3__[B+u+C+W]);var N="O";0<(M+=this.ts_(this.TQ4__[B+C+W+T]))&&(t.push(i),i="",N="B"),I=O,O=B,B=N,i+=H[K]}return t.push(i),t},_.TinySegmenter=t}}); \ No newline at end of file
+/**
+ * export the module via AMD, CommonJS or as a browser global
+ * Export code from https://github.com/umdjs/umd/blob/master/returnExports.js
+ */
+;(function (root, factory) {
+ if (typeof define === 'function' && define.amd) {
+ // AMD. Register as an anonymous module.
+ define(factory)
+ } else if (typeof exports === 'object') {
+ /**
+ * Node. Does not work with strict CommonJS, but
+ * only CommonJS-like environments that support module.exports,
+ * like Node.
+ */
+ module.exports = factory()
+ } else {
+ // Browser globals (root is window)
+ factory()(root.lunr);
+ }
+}(this, function () {
+ /**
+ * Just return a value to define the module export.
+ * This example returns an object, but the module
+ * can return a function as the exported value.
+ */
+
+ return function(lunr) {
+ // TinySegmenter 0.1 -- Super compact Japanese tokenizer in Javascript
+ // (c) 2008 Taku Kudo <taku@chasen.org>
+ // TinySegmenter is freely distributable under the terms of a new BSD licence.
+ // For details, see http://chasen.org/~taku/software/TinySegmenter/LICENCE.txt
+
+ function TinySegmenter() {
+ var patterns = {
+ "[一二三四五六七八九十百千万億兆]":"M",
+ "[一-龠々〆ヵヶ]":"H",
+ "[ぁ-ん]":"I",
+ "[ァ-ヴーア-ン゙ー]":"K",
+ "[a-zA-Za-zA-Z]":"A",
+ "[0-90-9]":"N"
+ }
+ this.chartype_ = [];
+ for (var i in patterns) {
+ var regexp = new RegExp(i);
+ this.chartype_.push([regexp, patterns[i]]);
+ }
+
+ this.BIAS__ = -332
+ this.BC1__ = {"HH":6,"II":2461,"KH":406,"OH":-1378};
+ this.BC2__ = {"AA":-3267,"AI":2744,"AN":-878,"HH":-4070,"HM":-1711,"HN":4012,"HO":3761,"IA":1327,"IH":-1184,"II":-1332,"IK":1721,"IO":5492,"KI":3831,"KK":-8741,"MH":-3132,"MK":3334,"OO":-2920};
+ this.BC3__ = {"HH":996,"HI":626,"HK":-721,"HN":-1307,"HO":-836,"IH":-301,"KK":2762,"MK":1079,"MM":4034,"OA":-1652,"OH":266};
+ this.BP1__ = {"BB":295,"OB":304,"OO":-125,"UB":352};
+ this.BP2__ = {"BO":60,"OO":-1762};
+ this.BQ1__ = {"BHH":1150,"BHM":1521,"BII":-1158,"BIM":886,"BMH":1208,"BNH":449,"BOH":-91,"BOO":-2597,"OHI":451,"OIH":-296,"OKA":1851,"OKH":-1020,"OKK":904,"OOO":2965};
+ this.BQ2__ = {"BHH":118,"BHI":-1159,"BHM":466,"BIH":-919,"BKK":-1720,"BKO":864,"OHH":-1139,"OHM":-181,"OIH":153,"UHI":-1146};
+ this.BQ3__ = {"BHH":-792,"BHI":2664,"BII":-299,"BKI":419,"BMH":937,"BMM":8335,"BNN":998,"BOH":775,"OHH":2174,"OHM":439,"OII":280,"OKH":1798,"OKI":-793,"OKO":-2242,"OMH":-2402,"OOO":11699};
+ this.BQ4__ = {"BHH":-3895,"BIH":3761,"BII":-4654,"BIK":1348,"BKK":-1806,"BMI":-3385,"BOO":-12396,"OAH":926,"OHH":266,"OHK":-2036,"ONN":-973};
+ this.BW1__ = {",と":660,",同":727,"B1あ":1404,"B1同":542,"、と":660,"、同":727,"」と":1682,"あっ":1505,"いう":1743,"いっ":-2055,"いる":672,"うし":-4817,"うん":665,"から":3472,"がら":600,"こう":-790,"こと":2083,"こん":-1262,"さら":-4143,"さん":4573,"した":2641,"して":1104,"すで":-3399,"そこ":1977,"それ":-871,"たち":1122,"ため":601,"った":3463,"つい":-802,"てい":805,"てき":1249,"でき":1127,"です":3445,"では":844,"とい":-4915,"とみ":1922,"どこ":3887,"ない":5713,"なっ":3015,"など":7379,"なん":-1113,"にし":2468,"には":1498,"にも":1671,"に対":-912,"の一":-501,"の中":741,"ませ":2448,"まで":1711,"まま":2600,"まる":-2155,"やむ":-1947,"よっ":-2565,"れた":2369,"れで":-913,"をし":1860,"を見":731,"亡く":-1886,"京都":2558,"取り":-2784,"大き":-2604,"大阪":1497,"平方":-2314,"引き":-1336,"日本":-195,"本当":-2423,"毎日":-2113,"目指":-724,"B1あ":1404,"B1同":542,"」と":1682};
+ this.BW2__ = {"..":-11822,"11":-669,"――":-5730,"−−":-13175,"いう":-1609,"うか":2490,"かし":-1350,"かも":-602,"から":-7194,"かれ":4612,"がい":853,"がら":-3198,"きた":1941,"くな":-1597,"こと":-8392,"この":-4193,"させ":4533,"され":13168,"さん":-3977,"しい":-1819,"しか":-545,"した":5078,"して":972,"しな":939,"その":-3744,"たい":-1253,"たた":-662,"ただ":-3857,"たち":-786,"たと":1224,"たは":-939,"った":4589,"って":1647,"っと":-2094,"てい":6144,"てき":3640,"てく":2551,"ては":-3110,"ても":-3065,"でい":2666,"でき":-1528,"でし":-3828,"です":-4761,"でも":-4203,"とい":1890,"とこ":-1746,"とと":-2279,"との":720,"とみ":5168,"とも":-3941,"ない":-2488,"なが":-1313,"など":-6509,"なの":2614,"なん":3099,"にお":-1615,"にし":2748,"にな":2454,"によ":-7236,"に対":-14943,"に従":-4688,"に関":-11388,"のか":2093,"ので":-7059,"のに":-6041,"のの":-6125,"はい":1073,"はが":-1033,"はず":-2532,"ばれ":1813,"まし":-1316,"まで":-6621,"まれ":5409,"めて":-3153,"もい":2230,"もの":-10713,"らか":-944,"らし":-1611,"らに":-1897,"りし":651,"りま":1620,"れた":4270,"れて":849,"れば":4114,"ろう":6067,"われ":7901,"を通":-11877,"んだ":728,"んな":-4115,"一人":602,"一方":-1375,"一日":970,"一部":-1051,"上が":-4479,"会社":-1116,"出て":2163,"分の":-7758,"同党":970,"同日":-913,"大阪":-2471,"委員":-1250,"少な":-1050,"年度":-8669,"年間":-1626,"府県":-2363,"手権":-1982,"新聞":-4066,"日新":-722,"日本":-7068,"日米":3372,"曜日":-601,"朝鮮":-2355,"本人":-2697,"東京":-1543,"然と":-1384,"社会":-1276,"立て":-990,"第に":-1612,"米国":-4268,"11":-669};
+ this.BW3__ = {"あた":-2194,"あり":719,"ある":3846,"い.":-1185,"い。":-1185,"いい":5308,"いえ":2079,"いく":3029,"いた":2056,"いっ":1883,"いる":5600,"いわ":1527,"うち":1117,"うと":4798,"えと":1454,"か.":2857,"か。":2857,"かけ":-743,"かっ":-4098,"かに":-669,"から":6520,"かり":-2670,"が,":1816,"が、":1816,"がき":-4855,"がけ":-1127,"がっ":-913,"がら":-4977,"がり":-2064,"きた":1645,"けど":1374,"こと":7397,"この":1542,"ころ":-2757,"さい":-714,"さを":976,"し,":1557,"し、":1557,"しい":-3714,"した":3562,"して":1449,"しな":2608,"しま":1200,"す.":-1310,"す。":-1310,"する":6521,"ず,":3426,"ず、":3426,"ずに":841,"そう":428,"た.":8875,"た。":8875,"たい":-594,"たの":812,"たり":-1183,"たる":-853,"だ.":4098,"だ。":4098,"だっ":1004,"った":-4748,"って":300,"てい":6240,"てお":855,"ても":302,"です":1437,"でに":-1482,"では":2295,"とう":-1387,"とし":2266,"との":541,"とも":-3543,"どう":4664,"ない":1796,"なく":-903,"など":2135,"に,":-1021,"に、":-1021,"にし":1771,"にな":1906,"には":2644,"の,":-724,"の、":-724,"の子":-1000,"は,":1337,"は、":1337,"べき":2181,"まし":1113,"ます":6943,"まっ":-1549,"まで":6154,"まれ":-793,"らし":1479,"られ":6820,"るる":3818,"れ,":854,"れ、":854,"れた":1850,"れて":1375,"れば":-3246,"れる":1091,"われ":-605,"んだ":606,"んで":798,"カ月":990,"会議":860,"入り":1232,"大会":2217,"始め":1681,"市":965,"新聞":-5055,"日,":974,"日、":974,"社会":2024,"カ月":990};
+ this.TC1__ = {"AAA":1093,"HHH":1029,"HHM":580,"HII":998,"HOH":-390,"HOM":-331,"IHI":1169,"IOH":-142,"IOI":-1015,"IOM":467,"MMH":187,"OOI":-1832};
+ this.TC2__ = {"HHO":2088,"HII":-1023,"HMM":-1154,"IHI":-1965,"KKH":703,"OII":-2649};
+ this.TC3__ = {"AAA":-294,"HHH":346,"HHI":-341,"HII":-1088,"HIK":731,"HOH":-1486,"IHH":128,"IHI":-3041,"IHO":-1935,"IIH":-825,"IIM":-1035,"IOI":-542,"KHH":-1216,"KKA":491,"KKH":-1217,"KOK":-1009,"MHH":-2694,"MHM":-457,"MHO":123,"MMH":-471,"NNH":-1689,"NNO":662,"OHO":-3393};
+ this.TC4__ = {"HHH":-203,"HHI":1344,"HHK":365,"HHM":-122,"HHN":182,"HHO":669,"HIH":804,"HII":679,"HOH":446,"IHH":695,"IHO":-2324,"IIH":321,"III":1497,"IIO":656,"IOO":54,"KAK":4845,"KKA":3386,"KKK":3065,"MHH":-405,"MHI":201,"MMH":-241,"MMM":661,"MOM":841};
+ this.TQ1__ = {"BHHH":-227,"BHHI":316,"BHIH":-132,"BIHH":60,"BIII":1595,"BNHH":-744,"BOHH":225,"BOOO":-908,"OAKK":482,"OHHH":281,"OHIH":249,"OIHI":200,"OIIH":-68};
+ this.TQ2__ = {"BIHH":-1401,"BIII":-1033,"BKAK":-543,"BOOO":-5591};
+ this.TQ3__ = {"BHHH":478,"BHHM":-1073,"BHIH":222,"BHII":-504,"BIIH":-116,"BIII":-105,"BMHI":-863,"BMHM":-464,"BOMH":620,"OHHH":346,"OHHI":1729,"OHII":997,"OHMH":481,"OIHH":623,"OIIH":1344,"OKAK":2792,"OKHH":587,"OKKA":679,"OOHH":110,"OOII":-685};
+ this.TQ4__ = {"BHHH":-721,"BHHM":-3604,"BHII":-966,"BIIH":-607,"BIII":-2181,"OAAA":-2763,"OAKK":180,"OHHH":-294,"OHHI":2446,"OHHO":480,"OHIH":-1573,"OIHH":1935,"OIHI":-493,"OIIH":626,"OIII":-4007,"OKAK":-8156};
+ this.TW1__ = {"につい":-4681,"東京都":2026};
+ this.TW2__ = {"ある程":-2049,"いった":-1256,"ころが":-2434,"しょう":3873,"その後":-4430,"だって":-1049,"ていた":1833,"として":-4657,"ともに":-4517,"もので":1882,"一気に":-792,"初めて":-1512,"同時に":-8097,"大きな":-1255,"対して":-2721,"社会党":-3216};
+ this.TW3__ = {"いただ":-1734,"してい":1314,"として":-4314,"につい":-5483,"にとっ":-5989,"に当た":-6247,"ので,":-727,"ので、":-727,"のもの":-600,"れから":-3752,"十二月":-2287};
+ this.TW4__ = {"いう.":8576,"いう。":8576,"からな":-2348,"してい":2958,"たが,":1516,"たが、":1516,"ている":1538,"という":1349,"ました":5543,"ません":1097,"ようと":-4258,"よると":5865};
+ this.UC1__ = {"A":484,"K":93,"M":645,"O":-505};
+ this.UC2__ = {"A":819,"H":1059,"I":409,"M":3987,"N":5775,"O":646};
+ this.UC3__ = {"A":-1370,"I":2311};
+ this.UC4__ = {"A":-2643,"H":1809,"I":-1032,"K":-3450,"M":3565,"N":3876,"O":6646};
+ this.UC5__ = {"H":313,"I":-1238,"K":-799,"M":539,"O":-831};
+ this.UC6__ = {"H":-506,"I":-253,"K":87,"M":247,"O":-387};
+ this.UP1__ = {"O":-214};
+ this.UP2__ = {"B":69,"O":935};
+ this.UP3__ = {"B":189};
+ this.UQ1__ = {"BH":21,"BI":-12,"BK":-99,"BN":142,"BO":-56,"OH":-95,"OI":477,"OK":410,"OO":-2422};
+ this.UQ2__ = {"BH":216,"BI":113,"OK":1759};
+ this.UQ3__ = {"BA":-479,"BH":42,"BI":1913,"BK":-7198,"BM":3160,"BN":6427,"BO":14761,"OI":-827,"ON":-3212};
+ this.UW1__ = {",":156,"、":156,"「":-463,"あ":-941,"う":-127,"が":-553,"き":121,"こ":505,"で":-201,"と":-547,"ど":-123,"に":-789,"の":-185,"は":-847,"も":-466,"や":-470,"よ":182,"ら":-292,"り":208,"れ":169,"を":-446,"ん":-137,"・":-135,"主":-402,"京":-268,"区":-912,"午":871,"国":-460,"大":561,"委":729,"市":-411,"日":-141,"理":361,"生":-408,"県":-386,"都":-718,"「":-463,"・":-135};
+ this.UW2__ = {",":-829,"、":-829,"〇":892,"「":-645,"」":3145,"あ":-538,"い":505,"う":134,"お":-502,"か":1454,"が":-856,"く":-412,"こ":1141,"さ":878,"ざ":540,"し":1529,"す":-675,"せ":300,"そ":-1011,"た":188,"だ":1837,"つ":-949,"て":-291,"で":-268,"と":-981,"ど":1273,"な":1063,"に":-1764,"の":130,"は":-409,"ひ":-1273,"べ":1261,"ま":600,"も":-1263,"や":-402,"よ":1639,"り":-579,"る":-694,"れ":571,"を":-2516,"ん":2095,"ア":-587,"カ":306,"キ":568,"ッ":831,"三":-758,"不":-2150,"世":-302,"中":-968,"主":-861,"事":492,"人":-123,"会":978,"保":362,"入":548,"初":-3025,"副":-1566,"北":-3414,"区":-422,"大":-1769,"天":-865,"太":-483,"子":-1519,"学":760,"実":1023,"小":-2009,"市":-813,"年":-1060,"強":1067,"手":-1519,"揺":-1033,"政":1522,"文":-1355,"新":-1682,"日":-1815,"明":-1462,"最":-630,"朝":-1843,"本":-1650,"東":-931,"果":-665,"次":-2378,"民":-180,"気":-1740,"理":752,"発":529,"目":-1584,"相":-242,"県":-1165,"立":-763,"第":810,"米":509,"自":-1353,"行":838,"西":-744,"見":-3874,"調":1010,"議":1198,"込":3041,"開":1758,"間":-1257,"「":-645,"」":3145,"ッ":831,"ア":-587,"カ":306,"キ":568};
+ this.UW3__ = {",":4889,"1":-800,"−":-1723,"、":4889,"々":-2311,"〇":5827,"」":2670,"〓":-3573,"あ":-2696,"い":1006,"う":2342,"え":1983,"お":-4864,"か":-1163,"が":3271,"く":1004,"け":388,"げ":401,"こ":-3552,"ご":-3116,"さ":-1058,"し":-395,"す":584,"せ":3685,"そ":-5228,"た":842,"ち":-521,"っ":-1444,"つ":-1081,"て":6167,"で":2318,"と":1691,"ど":-899,"な":-2788,"に":2745,"の":4056,"は":4555,"ひ":-2171,"ふ":-1798,"へ":1199,"ほ":-5516,"ま":-4384,"み":-120,"め":1205,"も":2323,"や":-788,"よ":-202,"ら":727,"り":649,"る":5905,"れ":2773,"わ":-1207,"を":6620,"ん":-518,"ア":551,"グ":1319,"ス":874,"ッ":-1350,"ト":521,"ム":1109,"ル":1591,"ロ":2201,"ン":278,"・":-3794,"一":-1619,"下":-1759,"世":-2087,"両":3815,"中":653,"主":-758,"予":-1193,"二":974,"人":2742,"今":792,"他":1889,"以":-1368,"低":811,"何":4265,"作":-361,"保":-2439,"元":4858,"党":3593,"全":1574,"公":-3030,"六":755,"共":-1880,"円":5807,"再":3095,"分":457,"初":2475,"別":1129,"前":2286,"副":4437,"力":365,"動":-949,"務":-1872,"化":1327,"北":-1038,"区":4646,"千":-2309,"午":-783,"協":-1006,"口":483,"右":1233,"各":3588,"合":-241,"同":3906,"和":-837,"員":4513,"国":642,"型":1389,"場":1219,"外":-241,"妻":2016,"学":-1356,"安":-423,"実":-1008,"家":1078,"小":-513,"少":-3102,"州":1155,"市":3197,"平":-1804,"年":2416,"広":-1030,"府":1605,"度":1452,"建":-2352,"当":-3885,"得":1905,"思":-1291,"性":1822,"戸":-488,"指":-3973,"政":-2013,"教":-1479,"数":3222,"文":-1489,"新":1764,"日":2099,"旧":5792,"昨":-661,"時":-1248,"曜":-951,"最":-937,"月":4125,"期":360,"李":3094,"村":364,"東":-805,"核":5156,"森":2438,"業":484,"氏":2613,"民":-1694,"決":-1073,"法":1868,"海":-495,"無":979,"物":461,"特":-3850,"生":-273,"用":914,"町":1215,"的":7313,"直":-1835,"省":792,"県":6293,"知":-1528,"私":4231,"税":401,"立":-960,"第":1201,"米":7767,"系":3066,"約":3663,"級":1384,"統":-4229,"総":1163,"線":1255,"者":6457,"能":725,"自":-2869,"英":785,"見":1044,"調":-562,"財":-733,"費":1777,"車":1835,"軍":1375,"込":-1504,"通":-1136,"選":-681,"郎":1026,"郡":4404,"部":1200,"金":2163,"長":421,"開":-1432,"間":1302,"関":-1282,"雨":2009,"電":-1045,"非":2066,"駅":1620,"1":-800,"」":2670,"・":-3794,"ッ":-1350,"ア":551,"グ":1319,"ス":874,"ト":521,"ム":1109,"ル":1591,"ロ":2201,"ン":278};
+ this.UW4__ = {",":3930,".":3508,"―":-4841,"、":3930,"。":3508,"〇":4999,"「":1895,"」":3798,"〓":-5156,"あ":4752,"い":-3435,"う":-640,"え":-2514,"お":2405,"か":530,"が":6006,"き":-4482,"ぎ":-3821,"く":-3788,"け":-4376,"げ":-4734,"こ":2255,"ご":1979,"さ":2864,"し":-843,"じ":-2506,"す":-731,"ず":1251,"せ":181,"そ":4091,"た":5034,"だ":5408,"ち":-3654,"っ":-5882,"つ":-1659,"て":3994,"で":7410,"と":4547,"な":5433,"に":6499,"ぬ":1853,"ね":1413,"の":7396,"は":8578,"ば":1940,"ひ":4249,"び":-4134,"ふ":1345,"へ":6665,"べ":-744,"ほ":1464,"ま":1051,"み":-2082,"む":-882,"め":-5046,"も":4169,"ゃ":-2666,"や":2795,"ょ":-1544,"よ":3351,"ら":-2922,"り":-9726,"る":-14896,"れ":-2613,"ろ":-4570,"わ":-1783,"を":13150,"ん":-2352,"カ":2145,"コ":1789,"セ":1287,"ッ":-724,"ト":-403,"メ":-1635,"ラ":-881,"リ":-541,"ル":-856,"ン":-3637,"・":-4371,"ー":-11870,"一":-2069,"中":2210,"予":782,"事":-190,"井":-1768,"人":1036,"以":544,"会":950,"体":-1286,"作":530,"側":4292,"先":601,"党":-2006,"共":-1212,"内":584,"円":788,"初":1347,"前":1623,"副":3879,"力":-302,"動":-740,"務":-2715,"化":776,"区":4517,"協":1013,"参":1555,"合":-1834,"和":-681,"員":-910,"器":-851,"回":1500,"国":-619,"園":-1200,"地":866,"場":-1410,"塁":-2094,"士":-1413,"多":1067,"大":571,"子":-4802,"学":-1397,"定":-1057,"寺":-809,"小":1910,"屋":-1328,"山":-1500,"島":-2056,"川":-2667,"市":2771,"年":374,"庁":-4556,"後":456,"性":553,"感":916,"所":-1566,"支":856,"改":787,"政":2182,"教":704,"文":522,"方":-856,"日":1798,"時":1829,"最":845,"月":-9066,"木":-485,"来":-442,"校":-360,"業":-1043,"氏":5388,"民":-2716,"気":-910,"沢":-939,"済":-543,"物":-735,"率":672,"球":-1267,"生":-1286,"産":-1101,"田":-2900,"町":1826,"的":2586,"目":922,"省":-3485,"県":2997,"空":-867,"立":-2112,"第":788,"米":2937,"系":786,"約":2171,"経":1146,"統":-1169,"総":940,"線":-994,"署":749,"者":2145,"能":-730,"般":-852,"行":-792,"規":792,"警":-1184,"議":-244,"谷":-1000,"賞":730,"車":-1481,"軍":1158,"輪":-1433,"込":-3370,"近":929,"道":-1291,"選":2596,"郎":-4866,"都":1192,"野":-1100,"銀":-2213,"長":357,"間":-2344,"院":-2297,"際":-2604,"電":-878,"領":-1659,"題":-792,"館":-1984,"首":1749,"高":2120,"「":1895,"」":3798,"・":-4371,"ッ":-724,"ー":-11870,"カ":2145,"コ":1789,"セ":1287,"ト":-403,"メ":-1635,"ラ":-881,"リ":-541,"ル":-856,"ン":-3637};
+ this.UW5__ = {",":465,".":-299,"1":-514,"E2":-32768,"]":-2762,"、":465,"。":-299,"「":363,"あ":1655,"い":331,"う":-503,"え":1199,"お":527,"か":647,"が":-421,"き":1624,"ぎ":1971,"く":312,"げ":-983,"さ":-1537,"し":-1371,"す":-852,"だ":-1186,"ち":1093,"っ":52,"つ":921,"て":-18,"で":-850,"と":-127,"ど":1682,"な":-787,"に":-1224,"の":-635,"は":-578,"べ":1001,"み":502,"め":865,"ゃ":3350,"ょ":854,"り":-208,"る":429,"れ":504,"わ":419,"を":-1264,"ん":327,"イ":241,"ル":451,"ン":-343,"中":-871,"京":722,"会":-1153,"党":-654,"務":3519,"区":-901,"告":848,"員":2104,"大":-1296,"学":-548,"定":1785,"嵐":-1304,"市":-2991,"席":921,"年":1763,"思":872,"所":-814,"挙":1618,"新":-1682,"日":218,"月":-4353,"査":932,"格":1356,"機":-1508,"氏":-1347,"田":240,"町":-3912,"的":-3149,"相":1319,"省":-1052,"県":-4003,"研":-997,"社":-278,"空":-813,"統":1955,"者":-2233,"表":663,"語":-1073,"議":1219,"選":-1018,"郎":-368,"長":786,"間":1191,"題":2368,"館":-689,"1":-514,"E2":-32768,"「":363,"イ":241,"ル":451,"ン":-343};
+ this.UW6__ = {",":227,".":808,"1":-270,"E1":306,"、":227,"。":808,"あ":-307,"う":189,"か":241,"が":-73,"く":-121,"こ":-200,"じ":1782,"す":383,"た":-428,"っ":573,"て":-1014,"で":101,"と":-105,"な":-253,"に":-149,"の":-417,"は":-236,"も":-206,"り":187,"る":-135,"を":195,"ル":-673,"ン":-496,"一":-277,"中":201,"件":-800,"会":624,"前":302,"区":1792,"員":-1212,"委":798,"学":-960,"市":887,"広":-695,"後":535,"業":-697,"相":753,"社":-507,"福":974,"空":-822,"者":1811,"連":463,"郎":1082,"1":-270,"E1":306,"ル":-673,"ン":-496};
+
+ return this;
+ }
+ TinySegmenter.prototype.ctype_ = function(str) {
+ for (var i in this.chartype_) {
+ if (str.match(this.chartype_[i][0])) {
+ return this.chartype_[i][1];
+ }
+ }
+ return "O";
+ }
+
+ TinySegmenter.prototype.ts_ = function(v) {
+ if (v) { return v; }
+ return 0;
+ }
+
+ TinySegmenter.prototype.segment = function(input) {
+ if (input == null || input == undefined || input == "") {
+ return [];
+ }
+ var result = [];
+ var seg = ["B3","B2","B1"];
+ var ctype = ["O","O","O"];
+ var o = input.split("");
+ for (i = 0; i < o.length; ++i) {
+ seg.push(o[i]);
+ ctype.push(this.ctype_(o[i]))
+ }
+ seg.push("E1");
+ seg.push("E2");
+ seg.push("E3");
+ ctype.push("O");
+ ctype.push("O");
+ ctype.push("O");
+ var word = seg[3];
+ var p1 = "U";
+ var p2 = "U";
+ var p3 = "U";
+ for (var i = 4; i < seg.length - 3; ++i) {
+ var score = this.BIAS__;
+ var w1 = seg[i-3];
+ var w2 = seg[i-2];
+ var w3 = seg[i-1];
+ var w4 = seg[i];
+ var w5 = seg[i+1];
+ var w6 = seg[i+2];
+ var c1 = ctype[i-3];
+ var c2 = ctype[i-2];
+ var c3 = ctype[i-1];
+ var c4 = ctype[i];
+ var c5 = ctype[i+1];
+ var c6 = ctype[i+2];
+ score += this.ts_(this.UP1__[p1]);
+ score += this.ts_(this.UP2__[p2]);
+ score += this.ts_(this.UP3__[p3]);
+ score += this.ts_(this.BP1__[p1 + p2]);
+ score += this.ts_(this.BP2__[p2 + p3]);
+ score += this.ts_(this.UW1__[w1]);
+ score += this.ts_(this.UW2__[w2]);
+ score += this.ts_(this.UW3__[w3]);
+ score += this.ts_(this.UW4__[w4]);
+ score += this.ts_(this.UW5__[w5]);
+ score += this.ts_(this.UW6__[w6]);
+ score += this.ts_(this.BW1__[w2 + w3]);
+ score += this.ts_(this.BW2__[w3 + w4]);
+ score += this.ts_(this.BW3__[w4 + w5]);
+ score += this.ts_(this.TW1__[w1 + w2 + w3]);
+ score += this.ts_(this.TW2__[w2 + w3 + w4]);
+ score += this.ts_(this.TW3__[w3 + w4 + w5]);
+ score += this.ts_(this.TW4__[w4 + w5 + w6]);
+ score += this.ts_(this.UC1__[c1]);
+ score += this.ts_(this.UC2__[c2]);
+ score += this.ts_(this.UC3__[c3]);
+ score += this.ts_(this.UC4__[c4]);
+ score += this.ts_(this.UC5__[c5]);
+ score += this.ts_(this.UC6__[c6]);
+ score += this.ts_(this.BC1__[c2 + c3]);
+ score += this.ts_(this.BC2__[c3 + c4]);
+ score += this.ts_(this.BC3__[c4 + c5]);
+ score += this.ts_(this.TC1__[c1 + c2 + c3]);
+ score += this.ts_(this.TC2__[c2 + c3 + c4]);
+ score += this.ts_(this.TC3__[c3 + c4 + c5]);
+ score += this.ts_(this.TC4__[c4 + c5 + c6]);
+ // score += this.ts_(this.TC5__[c4 + c5 + c6]);
+ score += this.ts_(this.UQ1__[p1 + c1]);
+ score += this.ts_(this.UQ2__[p2 + c2]);
+ score += this.ts_(this.UQ3__[p3 + c3]);
+ score += this.ts_(this.BQ1__[p2 + c2 + c3]);
+ score += this.ts_(this.BQ2__[p2 + c3 + c4]);
+ score += this.ts_(this.BQ3__[p3 + c2 + c3]);
+ score += this.ts_(this.BQ4__[p3 + c3 + c4]);
+ score += this.ts_(this.TQ1__[p2 + c1 + c2 + c3]);
+ score += this.ts_(this.TQ2__[p2 + c2 + c3 + c4]);
+ score += this.ts_(this.TQ3__[p3 + c1 + c2 + c3]);
+ score += this.ts_(this.TQ4__[p3 + c2 + c3 + c4]);
+ var p = "O";
+ if (score > 0) {
+ result.push(word);
+ word = "";
+ p = "B";
+ }
+ p1 = p2;
+ p2 = p3;
+ p3 = p;
+ word += seg[i];
+ }
+ result.push(word);
+
+ return result;
+ }
+
+ lunr.TinySegmenter = TinySegmenter;
+ };
+
+})); \ No newline at end of file
diff --git a/freetype/docs/reference/assets/javascripts/lunr/wordcut.js b/freetype/docs/reference/assets/javascripts/lunr/wordcut.js
index 179792ab..146f4b44 100644
--- a/freetype/docs/reference/assets/javascripts/lunr/wordcut.js
+++ b/freetype/docs/reference/assets/javascripts/lunr/wordcut.js
@@ -1 +1,6708 @@
-!function(n){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=n();else if("function"==typeof define&&define.amd)define([],n);else{var t;((t="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this).lunr||(t.lunr={})).wordcut=n()}}(function(){return function o(s,a,c){function u(e,n){if(!a[e]){if(!s[e]){var t="function"==typeof require&&require;if(!n&&t)return t(e,!0);if(l)return l(e,!0);var r=new Error("Cannot find module '"+e+"'");throw r.code="MODULE_NOT_FOUND",r}var i=a[e]={exports:{}};s[e][0].call(i.exports,function(n){var t=s[e][1][n];return u(t||n)},i,i.exports,o,s,a,c)}return a[e].exports}for(var l="function"==typeof require&&require,n=0;n<c.length;n++)u(c[n]);return u}({1:[function(n,t,e){var r=n("underscore"),i={creators:null,current:null,tag:null,init:function(){this.creators=[],this.current=[],this.tag={}},reset:function(){this.current=[],this.tag={}},transit:function(n){var e=this;e.creators.forEach(function(n){var t=n.createAcceptor(e.tag);t&&e.current.push(t)});var t=[];e.tag={};for(var r=0;r<e.current.length;r++){var i=e.current[r].transit(n);i.isError||(t.push(i),e.tag[i.tag]=i)}e.current=t},getFinalAcceptors:function(){return this.current.filter(function(n){return n.isFinal})}};t.exports=function(){var n=r.clone(i);return n.init(),n}},{underscore:25}],2:[function(t,e,n){(function(o){var s=t("path"),n=(t("glob"),{init:function(n,t,e){t=t||!1,defaultDict=s.normalize(o+"/..")+"/data/tdict-*.txt",this.dict=[];var r=void 0!==n,i=t||!r?[defaultDict]:[];n=n||defaultDict;r&&(Array.isArray(n)?i.concat.apply(i,n):i.push(n)),this.addFiles(i,!1),void 0!==e&&this.addWords(e,!1),this.finalizeDict()},addWords:function(n,t){t=void 0===t||t,this.dict.push.apply(this.dict,n),t&&this.finalizeDict()},finalizeDict:function(){this.dict=this.sortuniq(this.dict)},addFiles:function(n,t){t=void 0===t||t;for(var e=0;e<1;e++)words="ก.ก.\nก.ก.น.\nก.ข.ค.\nก.ค.\nก.จ.\nก.ช.น.\nก.ฌ.\nก.ต.\nก.ต.ง.\nก.ต.ช.\nก.ตร.\nก.ท.\nก.น.ช.\nก.บช.\nก.บถ.\nก.ป.ส.\nก.พ.\nก.ม.\nก.ย.\nก.ร.\nก.ล.ต.\nก.ว.\nก.ศ.ว.\nก.ส.ท.\nก.ส.ธ.\nก.ส.อ.\nก.อ.\nกก.ตชด.\nกก.ตร.น.\nกก.ภ.จว.\nกก.รสช.\nกกบ.ขส.ทบ.\nกกล.รพน.\nกง.กห.\nกง.ทบ.\nกง.ทร.\nกซข.ป.\nกซม.ป.\nกทม.กรุงเทพมหานคร\nกบ.ทบ.\nกป.สป.\nกพ.ทบ.\nกพ.ทร.\nกพ.ทหาร\nกร.ทบ.\nกรป.กลาง\nกรอ.พอ.\nกศ.ด.\nกศ.บ.\nกศ.บป.\nกศ.ม.\nกษ.ด.\nกษ.บ.\nกษ.ม.\nกส.ด.\nกส.ทบ.\nกส.บ.\nกส.ม.\nกอ.ปค.\nกอ.รพน.\nกอ.รมน.\nกอ.รสต.\nข.ต.ว.\nขว.ทบ.\nขว.ทร.\nขว.ทหาร\nขส.ทบ.\nขส.ทร.\nขส.ทอ.\nค.ด.\nค.บ.\nค.พ.ศ.\nค.ม.\nค.ร.น.\nค.ร.ฟ.\nค.ร.ม.\nค.ศ.\nค.อ.ด.\nค.อ.บ.\nค.อ.ม.\nคศ.ด.\nคศ.บ.\nคศ.ม.\nง.ด.\nจ.จ.\nจ.จ.จ.\nจ.ช.\nจ.ต.\nจ.ท.\nจ.ป.ร.\nจ.ม.\nจ.ศ.\nจ.ส.ต.\nจ.ส.ท.\nจ.ส.อ.\nจ.อ.\nจ.อ.ร.\nจ.๑๘\nจก.ธน.\nจก.สน.\nช.ค.\nช.ค.บ.\nช.พ.ค.\nช.ส.\nช.ส.ค.\nฌ.ป.ค.\nฌ.ศ.ร.\nฌ.ส.อ.\nฐท.สห.\nด.ช.\nด.ญ.\nด.ต.\nด.ศ.ค.\nด.ศ.ร.\nดย.ทร.\nต.ก.\nต.ค.\nต.จ.\nต.จ.ว.\nต.ช.\nต.ต.\nต.บ.\nต.ม.\nต.ร.\nต.ศ.ร.\nต.ห.\nต.อ.\nต.อ.จ.\nตร.กม.\nตร.ซม.\nตร.ต.\nตร.ทล.\nตร.น.\nตร.ปม.\nตร.ภ.\nตร.ม.\nตร.รฟ.\nตร.ว.\nตร.ส.\nตร.สข.\nท.จ.\nท.จ.ว.\nท.ช.\nท.ญ.\nท.ด.\nท.ท.ท.\nท.ทบ.\nท.บ.\nท.พ.\nท.ม.\nท.ศ.\nทก.ด.\nทก.บ.\nทก.ม.\nทส.ปช.\nทส.รมว.กห.\nทุ.ส.นิ.ม.\nธ.ก.ส.\nธ.ค.\nธ.ญ\nธ.บ.\nน.ช.\nน.ญ.\nน.ด.\nน.ต.\nน.ท.\nน.น.\nน.บ.\nน.บ.ท.\nน.ป.ท.\nน.พ.\nน.ม.\nน.ร.\nน.ว.\nน.ศ.\nน.ส.\nน.ส.พ.\nน.ส.๓\nน.สพ.\nน.อ.\nนปพ.ภ.\nนศ.ด.\nนศ.บ.\nนศ.ม.\nบ.ก.\nบ.ข.ส.\nบ.ช.\nบ.ด.ท.\nบ.ตร.\nบ.ภ.\nบ.ม.\nบก.จร.\nบก.ตชด.\nบก.ตม.\nบก.ทล.\nบก.น.\nบก.ป.\nบก.ปค.\nบก.ปม.\nบก.ภ.เขต\nบก.รน.\nบก.รฟ.\nบก.ร้อย.ตชด.\nบก.ส.\nบกข.ป.\nบจพ.ป.\nบช.ก.\nบช.ด.\nบช.ตชด.\nบช.น.\nบช.บ.\nบช.ปส.\nบช.ภ.\nบช.ม.\nบชท.ป.\nบชน.ป.\nบชส.ป.\nบธ.ด.\nบธ.บ.\nบธ.ม.\nบนท.ป.\nบนอ.ป.\nบปช.ป.\nป.กท.\nป.กศ.\nป.กศ.สูง\nป.จ.\nป.จ.ว.\nป.ช.\nป.ธ.\nป.ป.\nป.ป.ก.\nป.ป.ช.\nป.ป.ป.\nป.ป.ร.\nป.ป.ส.\nป.พ.\nป.พ.พ.\nป.พย.\nป.ม.\nป.ม.ก.\nป.ม.ช.\nป.ม.ธ.\nป.ม.ศ.\nป.ม.อ.\nป.ร.ร.๔\nป.ร.ร.๕\nป.ร.ร.๖\nป.ล.\nป.ว.พ.\nป.วิ.อ.\nป.ส.ส.\nป.อ.\nป.อ.ร.ส.\nป.๑\nปม.วส.\nปอ.พ.\nผกก.ภ.\nผช.ผอ.\nผต.มท.\nผบ.ตร.\nผบ.ทบ.\nผบ.ทร.\nผบ.ทสส.\nผบ.ทอ.\nผบก.น.\nผบก.ป.\nผบก.ปค.\nผบก.ปม.\nผบก.ภ.\nผบช.ก.\nผบช.ตชด.\nผบช.น.\nผบช.ภ.\nผว.กทม.\nผอ.ปจ.\nพ.ก.ง.\nพ.กศ.\nพ.ข.ต.\nพ.ค.\nพ.ค.ช.\nพ.ค.ว.\nพ.ค.ศ.\nพ.จ.ต.\nพ.จ.ท.\nพ.จ.อ.\nพ.ช.\nพ.ช.ค.\nพ.ด.\nพ.ต.\nพ.ต.ต.\nพ.ต.ท.\nพ.ต.อ.\nพ.ต.อ.พิเศษ\nพ.ท.\nพ.บ.\nพ.ป.\nพ.ภ.ม.\nพ.ม.\nพ.ม.ช.\nพ.ย.\nพ.ร.ก.\nพ.ร.ฎ.\nพ.ร.ต.\nพ.ร.ธ.\nพ.ร.บ.\nพ.ศ.\nพ.ศ.บ.\nพ.ส.ร.\nพ.ส.ล.\nพ.อ.\nพ.อ.ต.\nพ.อ.ท.\nพ.อ.พิเศษ\nพ.อ.อ.\nพณ.ด.\nพณ.บ.\nพณ.ม.\nพธ.ด.\nพธ.บ.\nพธ.ม.\nพบ.ด.\nพบ.บ.\nพบ.ม.\nพย.ด.\nพย.บ.\nพย.ม.\nพล.จ.\nพล.ต.\nพล.ต.จ.\nพล.ต.ต.\nพล.ต.ท.\nพล.ต.อ.\nพล.ท.\nพล.ปตอ.\nพล.ม.\nพล.ม.๒\nพล.ร.จ.\nพล.ร.ต.\nพล.ร.ท.\nพล.ร.อ.\nพล.อ.\nพล.อ.จ.\nพล.อ.ต.\nพล.อ.ท.\nพล.อ.อ.\nพลา.ทร.\nพศ.ด.\nพศ.บ.\nพศ.ม.\nพอ.สว.\nภ.ง.ด.\nภ.ง.ด.๙\nภ.ด.\nภ.บ.\nภ.บ.ท.๕\nภ.ป.ร.\nภ.พ.\nภ.ม.\nภ.สถ.บ.\nม.ค.\nม.จ.\nม.ป.ท.\nม.ป.ป.\nม.ป.พ.\nม.ร.ว.\nม.ศ.\nม.อ.\nม.อ.ปัตตานี\nมิ.ย.\nมี.ค.\nยศ.ทบ.\nยศ.ทร.\nยศ.ทอ.\nร.ง.\nร.ด.\nร.ต.\nร.ต.ต.\nร.ต.ท.\nร.ต.อ.\nร.ท.\nร.น.\nร.บ.\nร.พ.\nร.ฟ.ล.\nร.ย.ล.\nร.ย.ส.ท.\nร.ล.\nร.ศ.\nร.ส.พ.\nร.อ.\nรป.ม.\nรร.จปร.\nรร.จอ.\nรร.ชท.\nรร.ตท.\nรร.นร.\nรร.นรต.\nรร.นอ.\nล.ญ.\nล.ว.\nลส.ชบ.\nว.ค.\nว.ฉ.\nว.ช.\nว.ด.ป.\nว.ป.ถ.\nวท.บ.\nศ.บ.\nศ.ป.ก.\nศ.ศ.ป.\nศฝร.ภ.\nศศ.บ.\nศษ.บ.\nศส.บ.\nส.ก.\nส.ก.ศ.ท.\nส.ค.\nส.ค.1\nส.ค.ร.\nส.ค.ส.\nส.ต.\nส.ต.ต.\nส.ต.ท.\nส.ต.อ.\nส.ท.\nส.ทร.\nส.ป.ช.\nส.ป.ส.ท.\nส.ป.อ.\nส.ร.\nส.ล.น.\nส.ว.\nส.ว.ท.\nส.ว.ส.ท.\nส.ส.\nส.ส.ท.\nส.ส.ร.\nส.ห.\nส.อ.\nสถ.บ.\nสนง.สสอ.\nสพ.ญ.\nสพ.บ.\nสว.จร.\nสว.ธร.\nสว.ส.\nสว.สป.\nสว.สส.\nสว.อก.\nสส.บ.\nสุ.จิ.ปุ.ลิ.\nห.ร.ม.\nอ.ก.ค.\nอ.ก.จ.\nอ.จ.\nอ.ช.พ.\nอ.ตร.\nอ.บ.\nอ.ส.ท.\nอ.ส.ม.ท.\nอ.ส.ย.\nอ.อ.ป.\nอส.รด.\nอุ.อา.ก.ส.\nฮ.จ.\nฮ.ท.\nฮ.ฝ.\nฮ.ล.\nฮ.ศ.\nเม.ย.\n\nกรีนิช\nกลันตัน\nกัลกัตตา\nกัวลาลัมเปอร์\nกัศมีร์\nกาฐมาณฑุ\nโกลกาตา\nควิเบก\nคอนเนตทิคัต\nคาบูล\nคุชราต\nคุนหมิง\nเคนตักกี\nเคนทักกี\nเคมบริดจ์\nแคชเมียร์\nแคนซัส\nแคนเบอร์รา\nแคโรไลนา\nแคลิฟอร์เนีย\nโคเปนเฮเกน\nโคลัมโบ\nโคโลราโด\nไครสต์เชิร์ช\nไคโร\nจาการ์ตา\nจำปาศักดิ์\nเจนไน\nเจนีวา\nเจ้อเจียง\nฉงชิ่ง\nเฉิงตู\nชานตง\nชิคาโก\nเชนไน\nเชอร์โนบิล\nซัปโปโร\nซานมารีโน\nซาบาห์\nซาราเยโว\nซาราวัก\nซิดนีย์\nซีอาน\nซีแอตเทิล\nซูริก\nซูริค\nเซเชลส์\nเซนได\nเซี่ยงไฮ้\nโซเฟีย\nโซล\nโซโลมอน\nไซ่ง่อน\nไซบีเรีย\nดัลลัส\nดาโคตา\nดานัง\nดีทรอยต์\nดูไบ\nเดนเวอร์\nเดลาแวร์\nเดียนเบียนฟู\nโดเวอร์\nโดฮา\nไดฟุกุ\nไดฟูกุ\nตรังกานู\nตริโปลี\nตูวาลู\nเตหะราน\nโตเกียว\nโตรอนโต\nทมิฬนาฑู\nทริโปลี\nทิเบต\nเทกซัส\nเท็กซัส\nเทนเนสซี\nเทลอาวีฟ\nแทสเมเนีย\nโทรอนโต\nไทเป\nธากา\nนางาซากิ\nนาริตะ\nนิวเจอร์ซีย์\nนิวเดลี\nนิวยอร์ก\nนิวยอร์ค\nนิวแฮมป์เชียร์\nเนบราสกา\nเนแบรสกา\nเนวาดา\nบรัสเซลส์\nบราซิเลีย\nบอมเบย์\nบอสตัน\nบังกาลอร์\nบังคาลอร์\nบูคาเรสต์\nบูดาเปสต์\nเบงกาซี\nเบนกาซี\nเบรุต\nเบลเกรด\nเบอร์ลิน\nแบกแดด\nปอยเปต\nปะลิส\nปะหัง\nปักกิ่ง\nปัญจาบ\nปัฏนา\nปารีส\nปีนัง\nเประ\nเปียงยาง\nพนมเปญ\nพระตะบอง\nพะโค\nพะสิม\nพาราณสี\nพิหารี\nเพนซิลวาเนีย\nเพนซิลเวเนีย\nฟรานซ์\nฟลอริดา\nฟิลาเดลเฟีย\nฟุกุชิมะ\nฟุกุชิมา\nฟุกุโอกะ\nฟูกูโอกะ\nแฟรงก์เฟิร์ต\nมอสโก\nมะนิลา\nมะละแหม่ง\nมัณฑะเลย์\nมัทราส\nมาดริด\nมิชิแกน\nมินนิโซตา\nมิยางิ\nมิลาน\nมิวนิก\nมิสซูรี\nมุมไบ\nเมน\nเมลเบิร์น\nเมาะตะมะ\nเมาะลำเลิง\nแมนจูเรีย\nแมนเชสเตอร์\nแมนฮัตตัน\nแมริแลนด์\nแมรีแลนด์\nแมสซาชูเซตส์\nยะไข่\nย่างกุ้ง\nยูทาห์\nยูนนาน\nเยรูซาเล็ม\nโยโกฮามา\nริยาด\nรีโอเดจาเนโร\nโรดไอแลนด์\nลอนดอน\nลอสแองเจลิส\nลาปาซ\nลาสเวกัส\nลิสบอน\nลุยเซียนา\nโลซาน\nโลซานน์\nวอชิงตัน\nวอร์ซอ\nวิสคอนซิน\nเวนิส\nเวลส์\nเวอร์จิเนีย\nเวอร์มอนต์\nเวียงจันทน์\nเวียนนา\nแวนคูเวอร์\nไวโอมิง\nสกอตแลนด์\nสก็อตแลนด์\nสตอกโฮล์ม\nสลังงอร์\nเสฉวน\nเสียมราฐ\nเสียมเรียบ\nหงสา\nหงสาวดี\nหนานไห่\nหลวงพระบาง\nหูเป่ย\nหูเป่ย์\nหูหนาน\nเหอเป่ย\nเหอเป่ย์\nเหอหนาน\nอชันตา\nอลาสกา\nอวันตี\nออริกอน\nออสโล\nอะแลสกา\nอัตตะปือ\nอัมมาน\nอัมสเตอร์ดัม\nอัสสัม\nอาบูดาบี\nอาร์คันซอ\nอินเดียนา\nอิบารากิ\nอิลลินอยส์\nอิสตันบูล\nอิสลามาบัด\nอุรุมชี\nอูลานบาตอร์\nเอดินบะระ\nเอเธนส์\nแอตแลนตา\nแอริโซนา\nแอลเจียร์\nโอคลาโฮมา\nโอค็อตสค์\nโอกินาวา\nโอซากา\nโอริสสา\nโอเรกอน\nโอไฮโอ\nไอดาโฮ\nไอโอวา\nฮอนโนลูลู\nฮานอย\nฮาเนดะ\nฮาราเร\nฮาวาย\nฮิโรชิมา\nฮุสตัน\nเฮลซิงกิ\n\nมกรา\nกุมภา\nมีนา\nเมษา\nพฤษภา\nมิถุนา\nกรกฎา\nสิงหา\nกันยา\nตุลา\nพฤศจิกา\nธันวา\nเอ\nบี\nซี\nดี\nอี\nเอฟ\nจี\nเอช\nไอ\nเจ\nเค\nแอล\nเอ็ม\nเอ็น\nโอ\nพี\nคิว\nอาร์\nเอส\nที\nยู\nวี\nดับเบิล\nดับบลิว\nเอ็กซ์\nเอ๊กซ์\nวาย\nแซด\nแอลฟา\nแอลฟ่า\nเบตา\nเบต้า\nแกมมา\nแกมม่า\nเดลตา\nเดลต้า\nโอเมกา\nโอเมก้า\nเมกะ\nกิกะ\nนาโน\nไมโคร\n\nกรรมาชน\nกรอบรูป\nกระดี๊กระด๊า\nกระบับ\nกราวนด์\nกรีน\nกรุ๊ป\nกฤษณ์\nกลาส\nก๊วน\nกษัตริยา\nกษัตริยาธิราช\nก่อนหน้า\nกะบับ\nกับดัก\nกัมมันตะ\nก๊าก\nก๋ากั่น\nกาญจน์\nกาญจนาภิเษก\nกามิกาเซ่\nการันตี\nกาหลิบ\nกิฟท์\nกิมจิ\nกีวี\nกึ๊ก\nกึ๋ย\nกุนซือ\nกุมภาพันธ์\nกู๋\nเกจิ\nเกมส์\nเกย์\nเกรด\nเกรย์\nเกสต์เฮาส์\nเก๊ะ\nเก๋ากี้\nเกิร์ล\nแกงค์\nแกรนด์\nแกสโซฮอล์\nแก๊สโซฮอล์\nโกเต็กซ์\nโกลด์\nโกะ\nโก๊ะ\nไกด์\nขั้นตอน\nเขวี้ยง\nคณาญาติ\nครัวซอง\nครัวซองต์\nคร่ำครวญ\nครีเอทีฟ\nครูเสด\nคลับ\nคลาสสิก\nคลิตอริส\nคลิป\nความหมาย\nควิก\nควีน\nคองเกรส\nคอนซูเมอร์\nคอนเซปต์\nคอนเซ็ปต์\nคอนโด\nคอนโดมิเนียม\nคอนเทนเนอร์\nคอนแทค\nคอนแท็ค\nคอนโทรล\nคอนเฟิร์ม\nคอปเตอร์\nคอมพ์\nคอมเพล็กซ์\nคอมมอนส์\nคอมเมนท์\nคอมเมนต์\nคอร์ป\nคอร์ปอเรชั่น\nคอร์รัปชัน\nคอร์รัปชั่น\nคอรัปชัน\nคอรัปชั่น\nคอร์ส\nคอลเล็กชั่น\nคอลัมน์\nคอลัมนิสต์\nคัตเอาต์\nคันคาก\nคันถธุระ\nคันธาระ\nคันยิ\nคัสตาร์ด\nคาราโอเกะ\nคีตกวี\nคีตปฏิภาณ\nคีตราชัน\nคาปูชิโน\nคามิคาเซ่\nคาเฟ่\nคาร์\nคาร์โก้\nคาราเมล\nคาแรกเตอร์\nคาแร็กเตอร์\nคาแรคเตอร์\nคาแร็คเตอร์\nคาวบอย\nคาสิโน\nคิกขุ\nคิวบิก\nคูลเลอร์\nเคบับ\nเครป\nเคลม\nเคลียร์\nเคลื่อนย้าย\nเคส\nเคอร์ฟิว\nแคชเชียร์\nแคทวอล์ค\nแคนดิเดต\nแคนตาลูป\nแคนยอน\nแคนู\nแคป\nแคมป์\nแคมปัส\nแคมเปญ\nแคร์\nแครกเกอร์\nแคร็กเกอร์\nแครอท\nแคสต์\nแคสติง\nแคสติ้ง\nโค้ก\nโค้ช\nโคโยตี\nโคโยตี้\nโครนา\nโคอะล่า\nโคอาลา\nโคอาล่า\nไคลแมกซ์\nไคลแม็กซ์\nงั้น\nง่าว\nงี้\nเง็ง\nโง่เขลา\nไง\nจตุคาม\nจ๊อกกี้\nจอหงวน\nจังโก้\nจัมโบ้\nจ๊าบ\nจารกรรม\nจารชน\nจิ๊ก\nจิ๊กโก๋\nจิ๊กซอว์\nจิตพิสัย\nจิตเภท\nจีดีพี\nจึ๊ก\nจุ๊ย\nจูน\nจูเนียร์\nเจ๊\nเจได\nเจ็ต\nเจล\nเจ๊าะแจ๊ะ\nเจี๊ยว\nแจ็กเก็ต\nแจ๊กเก็ต\nแจ็กพอต\nแจ็กพ็อต\nแจ๊กพอต\nแจ๊กพ็อต\nแจม\nแจ๊ส\nโจ๋\nฉลุย\nเฉิ่ม\nชนะเลิศ\nช็อค\nช็อต\nช็อป\nช็อปปิ้ง\nช็อปเปอร์\nชะโนด\nชัตเตอร์\nชัวร์\nชาร์จ\nชาร์ต\nชาร์ป\nชินบัญชร\nชิฟฟอน\nชีส\nชีอะห์\nเช็ก\nเช็งเม้ง\nเชฟ\nเชลียร์\nเชอร์รี่\nแชเชือน\nแช่แข็ง\nแชมป์\nแชมปิยอง\nแชมเปญ\nแชมเปี้ยน\nแชมพู\nโชว์รูม\nโชห่วย\nใช้งาน\nไชน่า\nซ้อ\nซอมบี้\nซะ\nซังเต\nซันตาคลอส\nซัพพลาย\nซัพพลายเออร์\nซัมเมอร์\nซากุระ\nซาดิสต์\nซาดิสม์\nซาตาน\nซานตาคลอส\nซาฟารี\nซาบะ\nซามูไร\nซาร์\nซาร์ดีน\nซาเล้ง\nซิง\nซิ่ง\nซิงเกิล\nซิตี\nซิตี้\nซินโดรม\nซิม\nซิ้ม\nซิมโฟนี\nซิมโฟนี่\nซิลเวอร์\nซี้\nซี้ซั้ว\nซีดาน\nซีน\nซีนีเพล็กซ์\nซีเนียร์\nซีร็อกซ์\nซีรีส์\nซีเรียส\nซีอีโอ\nซื่อบื้อ\nซุนหนี่\nซุปเปอร์\nซูชิ\nซูเปอร์\nซูม\nซูโม่\nซูเอี๋ย\nซูฮก\nเซ็กซ์\nเซ็กซี่\nเซ็กส์\nเซนเซอร์\nเซ็นเซอร์\nเซนเตอร์\nเซ็นเตอร์\nเซ็นทรัล\nเซนส์\nเซ่นไหว้\nเซฟตี้\nเซรามิก\nเซลส์\nเซลส์แมน\nเซอร์\nเซอร์ไพรส์\nเซอร์วิส\nเซาท์\nเซี้ยว\nแซ็ก\nแซกโซโฟน\nแซ็กโซโฟน\nแซนด์วิช\nแซมบ้า\nแซลมอน\nแซว\nโซเชียล\nโซน\nโซนี่\nโซลาร์\nโซโล\nโซโล่\nญาณทัสสนะ\nดยุก\nดยุค\nดร็อป\nดรัมเมเยอร์\nดรามา\nดราม่า\nดอกเตอร์\nด็อกเตอร์\nดัมพ์\nดั๊มพ์\nดาวน์\nดิกชันนารี\nดิสเครดิต\nดีกรี\nดีเจ\nดีไซน์\nดีไซน์เนอร์\nดีไซเนอร์\nดีเบต\nดีพาร์ตเมนต์\nดีพาร์ตเมนท์\nดีพาร์ทเมนต์\nดีพาร์ทเมนท์\nดีมานด์\nดีล\nดีลเลอร์\nดีเลย์\nเดชานุภาพ\nเดบิต\nเดโม\nเดย์\nเด้อ\nเดอะ\nเด๊ะ\nเดี้ยง\nเดี๊ยะ\nแดนซ์\nแดนเซอร์\nแดรี่\nโดนัท\nโดมิโน\nโดรายากิ\nไดเอ็ต\nตถตา\nตนเอง\nตรวจทาน\nตรวจสอบ\nตอกย้ำ\nต๊อง\nต่อยอด\nต่อรอง\nตะหงิด\nตังค์\nตันเถียน\nตัวตน\nตัวเอง\nตาปรือ\nต้าอ่วย\nติงต๊อง\nติ๋ม\nติ่มซำ\nติว\nติวเตอร์\nตี๋\nตื้บ\nตุ๊ก\nตุ๊กตุ๊ก\nตุ๊ด\nตุ๋ย\nตู้เซฟ\nเต๊ะ\nเตี๊ยม\nแตงกวา\nแตงโม\nแต๋ว\nโต๋เต๋\nโต๊ะจีน\nไตรมาส\nถ่ายทำ\nถูกต้อง\nทงคัตสึ\nทริป\nทรู\nทอม\nท็อป\nทอร์นาโด\nทอล์ค\nทักซิโด\nทันตกรรม\nทันตแพทยศาสตร์\nทับซ้อน\nทัวร์\nทัวร์นาเมนต์\nทัวร์นาเมนท์\nทัวริสต์\nทาเลนต์\nทาวน์\nทาวน์เฮาส์\nทำงาน\nทิป\nทิพยสมบัติ\nทิวลิป\nทีรามิสุ\nทีวี\nทูน่า\nเท็กซ์\nเทค\nเทคโน\nเทคโนแครต\nเทควันโด\nเทป\nเทรด\nเทรนด์\nเทรนเนอร์\nเทรลเลอร์\nเทรลเล่อร์\nเทเลกราฟ\nเทวบัญชา\nเทวบุตร\nเทวา\nเทวาธิราช\nเทโวโรหนะ\nเทอร์โบ\nเที่ยงคืน\nเที่ยงวัน\nเทียมทาน\nแทกติค\nแทคติค\nแทงกั๊ก\nแทงโก้\nโทมาฮอก\nโทมาฮอว์ก\nโทมาฮอว์ค\nโทร\nโทรโข่ง\nไทม์\nไทยแลนด์\nไทเฮา\nธรรมา\nธรรมาภิบาล\nธัมโม\nธีม\nธุรกรรม\nธุหร่ำ\nเธค\nนพมาศ\nนรีแพทย์\nน็อก\nน็อค\nน้องใหม่\nนอมินี\nนอร์ท\nน่ะ\nนางแบบ\nนาฏยศาลา\nนายแบบ\nนายพราน\nนินจา\nนิรันดร์\nนิว\nนิวส์\nนู้ด\nเนอะ\nเนิร์สเซอรี\nเนิร์สเซอรี่\nเนี้ยบ\nโนติส\nไนท์\nไนน์\nบรรพชน\nบร็อกโคลี\nบร็อคโคลี\nบรา\nบริกร\nบริวเวอรี่ส์\nบลอนด์\nบลูเบอร์รี\nบลูเบอร์รี่\nบ๊วย\nบอกซ์\nบ็อกซ์\nบ๊อกซ์\nบอดี้\nบอนด์\nบ๊อบ\nบอมบ์\nบ๋อย\nบอยคอต\nบอยคอตต์\nบอร์ด\nบังเกอร์\nบัตเตอร์\nบัลลาสต์\nบัส\nบาบูน\nบาร์บีคิว\nบาร์บี้\nบาลานซ์\nบิ๊ก\nบิล\nบึม\nบึ้ม\nบุญคุณ\nบุ๋น\nบุปผา\nบู๊\nบูชิโด\nบูติก\nบูติค\nบูม\nเบเกอรี่\nเบญจมบพิตร\nเบตาดีน\nเบนโตะ\nเบนโล\nเบบี้\nเบลอ\nเบอร์เกอร์\nเบอร์รี\nเบิร์ด\nเบิร์น\nแบ็กโฮ\nแบคโฮ\nแบด\nแบต\nแบนเนอร์\nแบรนด์\nแบล็ก\nแบล็ค\nไบโอ\nโบกี้\nโบตั๋น\nโบ้ย\nโบรกเกอร์\nโบรชัวร์\nโบว์\nโบว์ลิ่ง\nไบเบิล\nปฏิสัมพันธ์\nป๊อก\nปอดแหก\nป๊อป\nป๋อหลอ\nปักขคณนา\nปัจเจกชน\nปัจฉิมนิเทศ\nป๊า\nป๋า\nป่าไม้\nปาร์ตี้\nปาสกาล\nปาสคาล\nปาสเตอร์\nปิกอัพ\nปิ๊ง\nปิโตรเคมี\nปิยมิตร\nปึ้ก\nปูอัด\nเปโซ\nเป็นไง\nเปปเปอร์มินต์\nเปเปอร์\nเปราะบาง\nเป๊ะ\nเป่ายิงฉุบ\nเป่ายิ้งฉุบ\nเปียโน\nแป้ก\nแป๋ว\nแป๊ะเจี๊ยะ\nโปร\nโปรเจกต์\nโปรเจ็กต์\nโปรเจกเตอร์\nโปรเจ็กเตอร์\nโปรเจคท์\nโปรเจ็คท์\nโปรดักชั่น\nโปรดิวเซอร์\nโปรโมชั่น\nโปรโมต\nโปรโมเตอร์\nโปรโมท\nโปลิศ\nโปสเตอร์\nผลไม้\nผลักดัน\nผ้าห่ม\nผิดพลาด\nผู้นำ\nแผดเผา\nเฝอ\nพงษ์\nพริตตี้\nพรีเซนต์\nพรีเซ็นเตอร์\nพรีเมียม\nพรีเมียร์\nพฤหัส\nพล็อต\nพลาซ่า\nพลานุภาพ\nพ่อค้า\nพอเพียง\nพะเรอ\nพันธกิจ\nพันธุวิศวกรรม\nพาร์\nพาร์ตเนอร์\nพาร์ทเนอร์\nพาวเวอร์\nพาสเจอร์ไรส์\nพาสตา\nพาสต้า\nพาสปอร์ต\nพาเหรด\nพิซซ่า\nพีเรียด\nพุดดิ้ง\nพุทธภูมิ\nพุทธศตวรรษ\nพุทโธ\nพูล\nเพทนาการ\nเพนกวิน\nเพนตากอน\nเพรส\nเพรียวบาง\nเพลซ\nเพลท\nเพลย์บอย\nเพียบแปร้\nเพียว\nเพาเวอร์\nแพกเกจ\nแพ็ค\nแพตเทิร์น\nแพทเทิร์น\nแพทยสภา\nแพนงเชิญ\nแพนดา\nแพนด้า\nแพลน\nโพลล์\nโพลารอยด์\nโพสต์\nไพลิน\nฟยอร์ด\nฟรังก์\nฟรุต\nฟลอร์\nฟลุก\nฟลุค\nฟลุต\nฟลุท\nฟอยล์\nฟอร์ม\nฟันด์\nฟาวล์\nฟาสต์ฟู้ด\nฟินิกซ์\nฟิวเจอร์\nฟีด\nฟีเวอร์\nฟุตบาท\nเฟรช\nเฟรชชี่\nเฟรม\nเฟมินิสต์\nเฟส\nเฟอร์นิเจอร์\nเฟอร์รี่\nเฟิร์ม\nเฟี้ยวฟ้าว\nแฟกซ์\nแฟ็กซ์\nแฟนซี\nแฟนตาซี\nแฟ้บ\nแฟร์\nแฟรนไชส์\nแฟรี\nแฟรี่\nแฟลช\nแฟล็ต\nโฟน\nโฟม\nโฟล์ค\nไฟต์\nไฟแนนซ์\nไฟลต์\nไฟลท์\nภควัทคีตา\nภควัมบดี\nภควัมปติ\nภคันทลาพาธ\nภววิสัย\nภารตะ\nภูมิทัศน์\nม้ง\nมวลชน\nมยุราภิรมย์\nมลภาวะ\nมหภาค\nมหาอุปราชา\nมอคคา\nมอคค่า\nมอนสเตอร์\nม็อบ\nมอบตัว\nมอยส์เจอไรเซอร์\nมอลล์\nมะกัน\nมั้ง\nมัฟฟิน\nมั้ย\nม้านั่ง\nมาเฟีย\nมาม่า\nมายองเนส\nมายาคติ\nมาร์ก\nมาร์เก็ต\nมาร์เก็ตติ้ง\nมาร์ค\nมาร์จิน\nมาร์ช\nมาร์ต\nมาร์ท\nมาราธอน\nม้าหินอ่อน\nมินต์\nมินท์\nมินิ\nมิลค์\nมิวสิค\nมิสซัง\nมิสไซล์\nมิสเตอร์\nมือถือ\nมุมมอง\nเมคอัพ\nเมจิก\nเมจิค\nเมทัล\nเมเปิล\nเมาท์\nเมี่ยงคำ\nแมกกาซีน\nแม็กกาซีน\nแมคเคอเรล\nแม่ค้า\nแมชชีน\nแมชีน\nแมนชั่น\nแมมบ้า\nแมมโบ้\nโมจิ\nโมเดล\nโมเดิร์น\nโมเต็ล\nโมโนเรล\nโมหจริต\nไมค์\nไมเกรน\nยนตรกรรม\nยอมรับ\nยะเยือก\nยังไง\nยากูซ่า\nยาวี\nยิม\nยิว\nยุวทูต\nยูโทเปีย\nยูโร\nยูวี\nเยน\nเยลลี่\nเย้ว\nเยอบีรา\nเยอบีร่า\nเยอร์บีรา\nเยอร์บีร่า\nแยมโรล\nโยเกิร์ต\nโยโย่\nรวมมิตร\nร็อค\nร็อคเก็ต\nรองรับ\nรอมฎอน\nรอยัลตี้\nระโงก\nรันเวย์\nรัม\nรากหญ้า\nราชบัณฑิตยสถาน\nราชานุญาต\nราชานุสาวรีย์\nรามเทพ\nรามาธิบดี\nรามายณะ\nราเม็ง\nราเมน\nรายชื่อ\nราสเบอร์รี\nริกเตอร์\nริคเตอร์\nรีไซเคิล\nรีดไถ\nรีทัช\nรีเทิร์น\nรีไทร์\nรีแบรนด์\nรีพอร์ท\nรีโมต\nรีโมท\nรีวิว\nรีสอร์ต\nรีสอร์ท\nรีเสิร์ช\nรุมบ้า\nรุสโซ\nรูบิก\nรูบิค\nเรซิน\nเรซิ่น\nเรดิโอ\nเรต\nเรตติ้ง\nแรงใจ\nแรงดูด\nแรงผลัก\nแรลลี\nแรลลี่\nโรดแมป\nโรเนียว\nโรแมนติก\nโรแมนติค\nโรล\nโรลออน\nไรเฟิล\nล็อกเกอร์\nลอจิสติกส์\nล็อต\nล็อบบี้\nลอร์ด\nล้มเหลว\nละติน\nละอ่อน\nลาซานญ่า\nลาติน\nลาเต้\nลานีญา\nลามะ\nลิมิต\nลิมูซีน\nลิสต์\nลีก\nลีด\nลีดเดอร์\nลีเมอร์\nลีลาวดี\nลุค\nลูกชาย\nลูกสาว\nเลกเชอร์\nเลคเชอร์\nเลดี้\nเลสเบี้ยน\nเลิฟ\nแลนด์\nแล็บ\nโลโก้\nโลชั่น\nไลท์\nไลน์\nไลฟ์\nวนาราม\nวราราม\nวโรกาส\nว้อดก้า\nวอเตอร์\nวอฟเฟิล\nว้อย\nวอร์ม\nวอร์มอัพ\nวอร์รูม\nวอล์ก\nวอล์ค\nวอลซ์\nวอลนัต\nวอลนัท\nวอลล์\nว่ะ\nวันเวย์\nวัสสา\nวาซาบิ\nวาทกรรม\nวาทะ\nวานิลลา\nวานิลา\nวาฟเฟิล\nวาริชศาสตร์\nว้าว\nวัคค์\nวัจนะ\nวาไรตี้\nวิก\nวิดีโอ\nวิทย์\nวิน\nวิป\nวิปปิ้ง\nวิภัชภาค\nวิว\nวิลล์\nวิลเลจ\nวีเจ\nวีซ่า\nวีดิทัศน์\nวีน\nวีไอพี\nวืด\nเวณิกา\nเวเฟอร์\nเวสต์\nเวอร์\nเวิร์ก\nเวิร์กช็อป\nเวิร์ค\nเวิร์ลด์\nเวิลด์\nแวมไพร์\nไวกิ้ง\nไวเบรเตอร์\nไวอะกร้า\nไวอากร้า\nศากยบุตร\nศิรินทร์\nศิลปวัฒนธรรม\nศิลปากร\nศิวิไลซ์\nศึกษาศาสตร์\nสกรัม\nสกาย\nสกู๊ป\nสเกตช์\nสเก็ตช์\nสคริปต์\nสแควร์\nสงบสุข\nสจ๊วต\nสตรอเบอร์รี\nสตรอเบอรี\nสตรอว์เบอร์รี\nสตริง\nสต็อก\nสต๊อก\nสต็อค\nสต๊อค\nสตอรี\nสตาร์\nสตาร์ท\nสติกเกอร์\nสติ๊กเกอร์\nสตีล\nสตูดิโอ\nสเตชัน\nสเตชั่น\nสเตเดียม\nสเตนเลส\nสเต็ป\nสเตย์\nสเตริโอ\nสเตอริโอ\nสแตนดาร์ด\nสแตนเลส\nสโตน\nสโตร์\nสไตรค์\nสไตล์\nสถาปัตย์\nสไนเปอร์\nสปอต\nสป็อต\nสปอนเซอร์\nสปอร์ต\nสปา\nสปาย\nสปิริต\nสเปก\nสเปค\nสไปเดอร์\nสมณพราหมณ์\nสมาพันธ์\nสมิติเวช\nสโรชา\nสลัม\nสแล็ก\nสโลแกน\nสโลว์\nสไลด์\nสวีท\nสหรัฐ\nสหัชญาณ\nสหัสวรรษ\nสะกอม\nสะเด่า\nสะบึม\nสะบึมส์\nสะออน\nสังโฆ\nสะโหลสะเหล\nสันทนาการ\nสัมนา\nสามช่า\nสามแยก\nสารขัณฑ์\nสี่แยก\nสึนามิ\nสุนทรีย์\nสุริยยาตร\nสุริยยาตร์\nสุหนี่\nเสกสรรค์\nเสพติด\nเสือโคร่ง\nหงวน\nหน่อมแน้ม\nหมวย\nหมั่นโถว\nหม่านโถว\nหมายปอง\nหมิง\nหยวน\nหลวงตา\nหลวงปู่\nหลวงพี่\nหล่อฮังก้วย\nหลินจือ\nห่วย\nเห็นด้วย\nเหมย\nเห่ย\nเหี่ยวย่น\nแหม็บ\nแหวว\nโหงว\nโหงวเฮ้ง\nโหลน\nโหลยโท่ย\nไหง\nไหร่\nอพาร์ตเมนต์\nอพาร์ตเมนท์\nอพาร์ทเมนต์\nอพาร์ทเมนท์\nอมาตยาธิปไตย\nอยุติธรรม\nอริยสงฆ์\nอ่วม\nอวอร์ด\nออกแบบ\nออดิชั่น\nออดิทอเรียม\nออเดอร์\nออโต้\nออทิสติก\nอ่อนด้อย\nออฟ\nออยล์\nออร์แกน\nออร์แกนิก\nออร์แกนิค\nออร์เดอร์\nออรัล\nออสซี่\nอะ\nอัตลักษณ์\nอัตวิสัย\nอันเดอร์\nอันตรกิริยา\nอัลตรา\nอัลไซเมอร์\nอัลบัม\nอัลบั้ม\nอัลมอนด์\nอาข่า\nอาโนเนะ\nอาฟเตอร์\nอาร์ติสต์\nอาร์พีจี\nอาว์\nอาสวะ\nอิกัวนา\nอินดอร์\nอินดัสตรีส์\nอินเตอร์\nอิ่มแปร้\nอิมพีเรียล\nอิเล็กทริก\nอิเล็กทริค\nอิเลียด\nอิสรชน\nอิเหนา\nอิออน\nอีแต๋น\nอีโรติก\nอีเวนท์\nอีสต์\nอีสเตอร์\nอึ๊บ\nอึ้ม\nอึ๋ม\nอึมครึม\nอุด้ง\nอุตสาหการ\nอุเทน\nอุปการคุณ\nอุปทาน\nอุปนายก\nอุปนายิกา\nอุปสงค์\nอุปัทวเหตุ\nอุรังคธาตุ\nอูคูเลเล่\nอู้ฟู่\nเอ๋\nเอ็กซ์โป\nเอ็กซ์เพรส\nเอ็กโซเซต์\nเอ็กโซเซ่ต์\nเอเซีย\nเอ็นจีโอ\nเอ็นเตอร์เทน\nเอนทรานซ์\nเอ็นทรานซ์\nเอฟเฟ็กต์\nเอเยนต์\nเอลนีโญ\nเอสเปรสโซ\nเอสเพรสโซ\nเอ๋อ\nเอาต์\nเอาท์\nเอาท์ดอร์\nเอ๊าะ\nแอ็กชั่น\nแอ็คชั่น\nแอคทีฟ\nแอดมิชชั่น\nแอดมิสชัน\nแอนด์\nแอ๊บแบ๊ว\nแอปเปิล\nแอปเปิ้ล\nแอปพริคอท\nแอพพริคอท\nแอพริคอต\nแอร์\nแอโรบิก\nแอโรบิค\nแอลมอนด์\nแอสเตอร์\nโอเค\nโอเปอเรเตอร์\nโอเปร่า\nโอเพ่น\nโอ้ย\nโอยัวะ\nโอรสาธิราช\nโอเลี้ยง\nโอวัลติน\nโอเวอร์\nไอซ์\nไอซียู\nไอดอล\nไอเดีย\nไอติม\nฮวงจุ้ย\nฮ่องเต้\nฮองเฮา\nฮอต\nฮ็อต\nฮอตดอก\nฮ็อตด็อก\nฮันนีมูน\nฮัม\nฮัลโลวีน\nฮัลโหล\nฮากกา\nฮาร์ด\nฮาราคีรี\nฮาลาล\nฮาโลวีน\nฮิ\nฮิต\nฮิบรู\nฮิปโป\nฮิปฮอป\nฮีโร่\nฮูลาฮูป\nฮูล่าฮูป\nเฮฟวี\nเฮฟวี่\nเฮอร์ริเคน\nเฮีย\nแฮนด์\nแฮปปี้\nแฮมเบอร์เกอร์\nโฮป\nโฮม\nโฮลดิงส์\nโฮลวีต\nโฮสเตส\nไฮกุ\nไฮแจ็ค\nไฮโซ\nไฮเทค\nไฮบริด\nไฮเปอร์\nไฮไลต์\nไฮไลท์\nไฮเวย์\nไฮสคูล\nไฮเอนด์\n\nกรีซ\nกัมพูชา\nกัวเตมาลา\nกาตาร์\nกานา\nกาบอง\nกายอานา\nกินี\nเกรนาดีนส์\nเกรเนดา\nเกาหลี\nแกมเบีย\nโกตดิวัวร์\nคองโก\nคอโมโรส\nคอสตาริกา\nคาซัคสถาน\nคิตส์\nคิริบาตี\nคิริบาส\nคิวบา\nคีร์กีซสถาน\nคูเวต\nเคนยา\nเคปเวิร์ด\nเคย์แมน\nแคนาดา\nแคเมอรูน\nโครเอเชีย\nโคลอมเบีย\nจอร์เจีย\nจอร์แดน\nจาเมกา\nจิบูตี\nจีน\nชาด\nชิลี\nเช็ก\nซามัว\nซาอุ\nซิมบับเว\nซีเรีย\nซูดาน\nซูรินาเม\nเซนต์\nเซเนกัล\nเซอร์เบีย\nเซาตูเม\nเซียร์รา\nแซมเบีย\nโซมาเลีย\nโซเวียต\nไซปรัส\nญี่ปุ่น\nดารุสซาลาม\nเดนมาร์ก\nโดมินิกัน\nโดมินิกา\nตรินิแดด\nตองกา\nติมอร์\nตุรกี\nตูนิเซีย\nเติร์กเมนิสถาน\nโตโก\nโตเบโก\nไต้หวัน\nทาจิกิสถาน\nแทนซาเนีย\nนอร์เวย์\nนามิเบีย\nนาอูรู\nนิการากัว\nนิวซีแลนด์\nเนเธอร์แลนด์\nเนปาล\nเนวิส\nไนจีเรีย\nไนเจอร์\nบราซิล\nบริติช\nบริเตน\nบรูไน\nบอตสวานา\nบอสเนีย\nบังกลาเทศ\nบังคลาเทศ\nบัลแกเรีย\nบาร์บูดา\nบาร์เบโดส\nบาห์เรน\nบาฮามาส\nบิสเซา\nบุรุนดี\nบูร์กินาฟาโซ\nเบนิน\nเบลเยียม\nเบลารุส\nเบลีซ\nเบอร์มิวดา\nโบลิเวีย\nปรินซิปี\nปากีสถาน\nปานามา\nปาปัวนิวกินี\nปารากวัย\nปาเลสไตน์\nปาเลา\nเปรู\nเปอร์เซีย\nเปอร์โตริโก\nโปรตุเกส\nโปแลนด์\nฝรั่งเศส\nพม่า\nฟิจิ\nฟินแลนด์\nฟิลิปปินส์\nเฟรนช์\nภูฏาน\nภูฐาน\nมองโกเลีย\nมอนเตเนโกร\nมอนแทนา\nมอริเชียส\nมอริเตเนีย\nมอลโดวา\nมอลตา\nมัลดีฟส์\nมาเก๊า\nมาซิโดเนีย\nมาดากัสการ์\nมาร์แชลล์\nมาลาวี\nมาลี\nมาเลเซีย\nเม็กซิโก\nเมียนมาร์\nโมซัมบิก\nโมนาโก\nโมนาโค\nโมร็อกโก\nไมโครนีเซีย\nยูกันดา\nยูโกสลาเวีย\nยูเครน\nเยเมน\nเยอรมนี\nรวันดา\nรัสเซีย\nโรมาเนีย\nลักเซมเบิร์ก\nลัตเวีย\nลาว\nลิกเตนสไตน์\nลิทัวเนีย\nลิเบีย\nลีโอน\nลูเซีย\nเลโซโท\nเลบานอน\nเลสเต\nไลบีเรีย\nวาติกัน\nวานูอาตู\nวินเซนต์\nเวเนซุเอลา\nเวียดนาม\nศรีลังกา\nสเปน\nสโลวะเกีย\nสโลวัก\nสโลวีเนีย\nสวาซิแลนด์\nสวิตเซอร์แลนด์\nสวีเดน\nสหรัฐ\nสหราชอาณาจักร\nสิกขิม\nสิงคโปร์\nอเมริกา\nออสเตรเลีย\nออสเตรีย\nอันดอร์รา\nอัฟกานิสถาน\nอาเซอร์ไบจาน\nอาร์เจนตินา\nอาร์เมเนีย\nอาระเบีย\nอิเควทอเรียล\nอิตาลี\nอินเดีย\nอินโดนีเซีย\nอิรัก\nอิสราเอล\nอิหร่าน\nอียิปต์\nอุซเบกิสถาน\nอุรุกวัย\nเอกวาดอร์\nเอธิโอเปีย\nเอมิเรตส์\nเอริเทรีย\nเอลซัลวาดอร์\nเอสโตเนีย\nแองโกลา\nแอนติกา\nแอลจีเรีย\nแอลเบเนีย\nโอมาน\nไอซ์แลนด์\nไอร์แลนด์\nฮ่องกง\nฮอนดูรัส\nฮังการี\nเฮติ\nเฮอร์เซโกวีนา\n\nกระบี่\nกรุงเทพ\nกาญจนบุรี\nกาฬสินธุ์\nกำแพงเพชร\nขอนแก่น\nจันทบุรี\nฉะเชิงเทรา\nชลบุรี\nชัยนาท\nชัยภูมิ\nชุมพร\nเชียงราย\nเชียงใหม่\nตรัง\nตราด\nตาก\nนครนายก\nนครปฐม\nนครพนม\nนครราชสีมา\nนครศรีธรรมราช\nนครสวรรค์\nนนทบุรี\nนราธิวาส\nน่าน\nบึงกาฬ\nบุรีรัมย์\nปทุมธานี\nประจวบคีรีขันธ์\nปราจีนบุรี\nปัตตานี\nพะเยา\nพังงา\nพัทลุง\nพิจิตร\nพิษณุโลก\nเพชรบุรี\nเพชรบูรณ์\nแพร่\nภูเก็ต\nมหาสารคาม\nมุกดาหาร\nแม่ฮ่องสอน\nยโสธร\nยะลา\nร้อยเอ็ด\nระนอง\nระยอง\nราชบุรี\nลพบุรี\nลำปาง\nลำพูน\nเลย\nศรีสะเกษ\nสกลนคร\nสงขลา\nสตูล\nสมุทรปราการ\nสมุทรสงคราม\nสมุทรสาคร\nสระแก้ว\nสระบุรี\nสิงห์บุรี\nสุโขทัย\nสุพรรณบุรี\nสุราษฎร์\nสุราษฎร์ธานี\nสุรินทร์\nหนองคาย\nหนองบัวลำภู\nอยุธยา\nอ่างทอง\nอำนาจเจริญ\nอุดรธานี\nอุตรดิตถ์\nอุทัยธานี\nอุบลราชธานี\nกันทรลักษ์\nจตุจักร\nไชยา\nซีคอน\nดอนเมือง\nถลาง\nไทรโยค\nธนบุรี\nธัญบุรี\nบางกอก\nบางปะกง\nบางระจัน\nปะทิว\nปาย\nพญาไท\nพัฒน์พงษ์\nพัทยา\nพารากอน\nภูมิซรอล\nรัตนาธิเบศร์\nรังสิต\nลันตา\nลาดพร้าว\nวโรรส\nวิภาวดี\nสตึก\nสมุย\nสัตหีบ\nสิมิลัน\nสุขุมวิท\nสุไหง\nเสลภูมิ\nอังรีดูนังต์\nอ่างขาง\nอินทนนท์\nเอ็มโพเรียม\n\nคิวชู\nแคริบเบียน\nแคสเปียน\nดานูบ\nตะนาวศรี\nนอร์วีเจียน\nนิโคบาร์\nเนรัญชรา\nไนล์\nบอร์เนียว\nบอลติก\nเบงกอล\nปิง\nแปซิฟิก\nมะละกา\nมินดาเนา\nมิสซิสซิปปี\nเมดิเตอร์เรเนียน\nเมโสโปเตเมีย\nยมุนา\nยุโรป\nยูเรเชีย\nยูเรเซีย\nแยงซี\nแยงซีเกียง\nสแกนดิเนเวีย\nสะโตง\nสาละวิน\nสุมาตรา\nสุเอซ\nอะเมซอน\nอันดามัน\nอัลไต\nอาร์กติก\nอาหรับ\nอินโดจีน\nอิรวดี\nอิระวดี\nอีเจียน\nอุษาคเณย์\nอูราล\nเอเชีย\nเอเดรียติก\nเอเวอเรสต์\nแอตแลนติก\nแอนตาร์กติก\nแอนตาร์กติกา\nแอฟริกา\nโอลิมปัส\nไอโอเนียน\nฮวงโห\nฮอกไกโด\nฮอนชู\n\nกบิลพัสดุ์\nกุสินารา\nโกลิยะ\nโกสัมพี\nโคตรบอง\nโคตรบูรณ์\nตองอู\nทรอย\nทวารวดี\nทวาราวดี\nเทวทหะ\nไทรบุรี\nนาลันทา\nไบแซนไทน์\nปรัสเซีย\nปัลลวะ\nปาฏลีบุตร\nพุทธคยา\nมถุรา\nมายัน\nมิถิลา\nราชคฤห์\nล้านช้าง\nล้านนา\nลุมพินี\nวัชชี\nเวสาลี\nสารนาถ\nสาวัตถี\nหริภุญชัย\nอโยธยา\nออตโตมัน\nอังวะ\nอินทปัตถ์\nอุชเชนี\n\nกราฟิก\nกราฟิกส์\nกราฟิค\nกริด\nกิกะไบต์\nกูเกิล\nกูเกิ้ล\nเกตเวย์\nโกลบอล\nคลัสเตอร์\nคลาส\nคลิก\nคลิปอาร์ต\nคอนโซล\nคอนเทนต์\nคอมพิวติ้ง\nคอมไพล์\nคอมไพเลอร์\nคอมมูนิเคชั่น\nคอร์\nคีย์\nคีย์บอร์ด\nเครือข่าย\nเคอร์เซอร์\nเคอร์เนล\nแคช\nแคมฟรอก\nแคมฟร็อก\nแคร็ก\nโค้ด\nจาวา\nจีพีเอส\nชิป\nชิพ\nเชลล์\nแช็ต\nแชนเนล\nแชนแนล\nซ็อกเก็ต\nซอฟต์แวร์\nซอฟท์แวร์\nซอร์ส\nซัพพอร์ต\nซัพพอร์ท\nซีดี\nซีดีรอม\nซีเนอร์\nเซิร์ฟเวอร์\nโซลูชัน\nโซลูชั่น\nไซต์\nไซเบอร์\nทรานแซกชัน\nทรานแซกชั่น\nทรานแซ็กชัน\nทรานแซ็กชั่น\nทรานแซคชัน\nทรานแซคชั่น\nทรานแซ็คชัน\nทรานแซ็คชั่น\nทวิตเตอร์\nทวีต\nทัชแพด\nเทมเพลต\nเทอร์มินัล\nแท็ก\nแท็บ\nแทบเล็ต\nโทรจัน\nเน็ต\nเน็ตบุ๊ก\nเน็ตบุค\nเน็ตบุ๊ค\nเน็ตเวิร์ก\nเน็ตเวิร์ค\nโน้ตบุ๊ก\nโน้ตบุค\nโน้ตบุ๊ค\nดอส\nดาวน์เกรด\nดาวน์โหลด\nดิจิตอล\nดิจิทัล\nดีบั๊ก\nดีวีดี\nดีไวซ์\nเดเบียน\nเดลไฟ\nเดสก์ท็อป\nโดเมน\nไดรว์\nไดรเวอร์\nไดเรกทอรี\nไดโอด\nเทเลคอม\nบล็อกเกอร์\nบรอดแบนด์\nบราวเซอร์\nบลูทูท\nบลูทูธ\nบลูเรย์\nบั๊ก\nบัฟเฟอร์\nบิต\nบิท\nบูต\nเบราว์เซอร์\nแบนด์วิดท์\nไบต์\nไบนารี\nโปรแกรมเมอร์\nโปรเซส\nโปรเซสเซอร์\nโปรโตคอล\nพร็อกซี\nพอร์ต\nพอร์ท\nพาเนล\nพาร์ทิชัน\nพารามิเตอร์\nพาสเวิร์ด\nพิกเซล\nเพจ\nเพจเจอร์\nแพกเก็ต\nแพตช์\nแพลตฟอร์ม\nโพรเซส\nโพรเซสเซอร์\nโพรโทคอล\nไพธอน\nฟล็อปส์\nฟอนต์\nฟอร์แมต\nฟอร์เวิร์ด\nฟอรัม\nฟีเจอร์\nเฟซบุ๊ก\nเฟิร์มแวร์\nแฟล็ก\nโฟลเดอร์\nไฟร์ฟอกซ์\nไฟร์วอลล์\nไฟล์\nมอดูล\nมอนิเตอร์\nมัลติ\nมัลติทัช\nมัลติเพล็กซ์\nมัลแวร์\nมาสเตอร์\nมีเดีย\nเมนู\nเมมโมรี\nเมล\nเมาส์\nแมค\nโมดูล\nโมเด็ม\nโมบาย\nโมบายล์\nโมไบล์\nไมโครซอฟท์\nยูนิกซ์\nยูนิโคด\nยูนิโค้ด\nริงโทน\nรีเฟรช\nรีเลย์\nเราเตอร์\nเรียลไทม์\nลิงก์\nลินุกซ์\nลีนุกซ์\nลูป\nเลเยอร์\nแล็ปท็อป\nไลเซนส์\nไลบรารี\nวิกิ\nวิกิพีเดีย\nวินโดวส์\nวินโดว์ส\nเว็บ\nเวอร์ชวล\nเวอร์ชัน\nเวอร์ชั่น\nเวิร์กสเตชัน\nเวิร์กสเตชั่น\nเวิร์คสเตชัน\nเวิร์คสเตชั่น\nเวิร์ด\nเวิร์ม\nไวแมกซ์\nสกรีน\nสแกน\nสแกนเนอร์\nสแต็ก\nสนิฟเฟอร์\nสปายแวร์\nสเปซ\nสแปม\nสมาร์ท\nสล็อต\nเสิร์ช\nโหลด\nออนไลน์\nออปติก\nออปติคอล\nออปติคัล\nออฟไลน์\nออราเคิล\nอัพเกรด\nอัพเดต\nอัพโหลด\nอัปเกรด\nอัปเดต\nอัปโหลด\nอัลกอริทึม\nอาร์กิวเมนต์\nอินเตอร์เน็ต\nอินทิเกรเตอร์\nอินเทอร์เน็ต\nอินเทอร์เฟซ\nอินเทล\nอินพุต\nอินพุท\nอีเมล\nอีเมล์\nอูบุนตู\nอูบันตู\nเอนจิน\nเอ็นจิน\nเอาต์พุต\nเอาต์พุท\nเอาท์พุต\nเอาท์พุท\nแอนะล็อก\nแอนิเมชัน\nแอนิเมชั่น\nแอปพลิเคชัน\nแอปพลิเคชั่น\nแอพพลิเคชัน\nแอพพลิเคชั่น\nแอสเซมบลี\nแอสเซมเบลอร์\nโอเพน\nไอคอน\nไอซี\nไอพอด\nไอพ็อด\nไอแพด\nไอโฟน\nฮับ\nฮาร์ดดิสก์\nฮาร์ดแวร์\nแฮกเกอร์\nแฮ็กเกอร์\nแฮนด์เฮลด์\nโฮสต์\n\nกรีก\nกัณณาฑ\nกัศมีรี\nคันจิ\nคาตาคานะ\nคุชราตี\nคุรุมุขี\nซีริลลิก\nซูลู\nเซลติก\nเซิร์บ\nตากาล็อก\nเตลุคู\nเติร์ก\nทราวิฑ\nเบงกาลี\nปัญจาบี\nพินอิน\nมลยาฬัม\nมองโกล\nมาราฐี\nมาเลย์\nเม็กซิกัน\nแมนจู\nแมนดาริน\nไมถิลี\nเยอรมัน\nรัสเซียน\nสวาฮิลี\nสวิส\nสินธี\nอูรดู\nอัสสมี\nอารบิก\nอิตาเลียน\nอุยกูร์\nแอฟริกัน\nโอริยา\nไอริช\nฮันกึล\nฮินดี\nฮิรางานะ\nฮีบรู\n\nกรีนพีซ\nกรือเซะ\nกวนอิม\nกวนอู\nกัดดาฟี\nกัลยาณวัตร\nกัสสปะ\nกาลิเลโอ\nกินเนส\nกุมภกรรณ\nกูเตนเบิร์ก\nเกตส์\nเกษมณี\nโกณฑัญญะ\nขงเบ้ง\nคริสโตเฟอร์\nคองคอร์ด\nคอลเกต\nคานธี\nคาเบรียล\nคาร์ฟูร์\nคาร์สัน\nคาราบาว\nคาสิโอ\nคิริน\nคุนลุ้น\nคูโบต้า\nเครมลิน\nแคทรีนา\nโคตมะ\nโคตมี\nโคลัมบัส\nไคฟง\nไครสเลอร์\nง้อไบ๊\nจตุพร\nจ็อบส์\nจอห์น\nจิ้น\nจิม\nจิ๋ม\nจิว\nจุฬาภรณ์\nจุฬาลงกรณ์\nเจมส์\nแจ็กสัน\nโจเซฟ\nโจว\nชมัยมรุเชฐ\nชมัยมรุเชษฐ์\nชเวดากอง\nชาร์ลส์\nชินราช\nชินวัตร\nชุนชิว\nเช็ง\nเชตวัน\nเชฟรอน\nเชฟโรเลต\nเชลซี\nไชยานุชิต\nซ่ง\nซังฮี้\nซัดดัม\nซันซิล\nซัมซุง\nซัวเจ๋ง\nซินหัว\nซีซาร์\nซีแพค\nซูซาน\nซูซูกิ\nซูบารุ\nเซ็นทารา\nเซเวน\nเซเว่น\nโซฟิเทล\nโซยุซ\nโซยูซ\nณัฐวุฒิ\nดาร์ลี่\nดาวโจนส์\nดิสนีย์\nดีแทค\nดูปองท์\nเดโมแครต\nเดลล์\nเดลินิวส์\nเดวิด\nแดวู\nโดนัลด์\nโดราเอมอน\nโดเรมอน\nต๋อง\nตั๊กม้อ\nตากสิน\nตาเมือน\nตาลีบัน\nตูน\nเตมีย์\nโต๋\nโตชิบา\nโตโยต้า\nถังซัมจั๋ง\nถังซำจั๋ง\nทรพา\nทราเวล\nทรูมูฟ\nทีปังกร\nเทปโก\nเทพรัตน\nเทวทัต\nเทสโก้\nโทมัส\nไททานิก\nไททานิค\nไทยรัฐ\nธีออส\nนครินทรา\nนโปเลียน\nนพดล\nนราดูร\nนเรนทร\nนอสตราดามุส\nนาซา\nนาซ่า\nนาซี\nนาโต\nนาโต้\nนาลแก\nนิคอน\nนิโคลัส\nนิด้า\nนินเทนโด\nนิปปอน\nนิวตัน\nนิสสัน\nเนคเทค\nเนชั่น\nเนชันแนล\nเนชั่นแนล\nเนวิน\nเนสเล่\nเนสาด\nแนท\nแนสแดค\nโนเกีย\nโนเบล\nโนเวลล์\nโนโวเทล\nไนเม็กซ์\nบรอดเวย์\nบรัดเลย์\nบรู๊ซ\nบัลเมอร์\nบารัก\nบารัค\nบู๊ตึ๊ง\nเบญกาย\nเบนซ์\nเบ็นซ์\nเบนจามิน\nโบตัน\nไบโอเทค\nประชาธิปัตย์\nปวีณา\nปอเต็กตึ๊ง\nปอเต๊กตึ๊ง\nป่อเต็กตึ๊ง\nปัตตะโชติ\nปารุสก์\nปีเตอร์\nปูติน\nเป๊ปซี่\nเป้ย\nเปอร์โยต์\nเปาบุ้นจิ้น\nโปเกมอน\nโป๊ยก่าย\nพรหมทัต\nพลาโต\nพอลล่า\nพานาโซนิค\nพานาโซนิก\nพิทยานุกูล\nพิมพิสาร\nเพนแทกซ์\nเพลโต\nไพโอเนียร์\nฟรอยด์\nฟรังซิส\nฟรานซิส\nฟลอเรนซ์\nฟอร์ด\nฟิลิปส์\nฟูจิ\nแฟซ่า\nโฟร์โมสต์\nภูมิพล\nภูริทัต\nมงฟอร์ต\nมณโฑ\nมติชน\nมหิตลาธิเบศร\nมโหสถ\nมัจฉานุ\nมาร์กาเร็ต\nมาร์ติน\nมาสด้า\nมิตซูบิชิ\nมิราเคิล\nมุสโสลินี\nเม้ง\nเมจิ\nเมอร์ซีเดส\nเมอร์เซเดส\nแมกซ์เวลล์\nแมกไซไซ\nแมคอินทอช\nแมชีนเนอรี่\nโมคคัลลานะ\nโมโตโรลา\nโมโตโรล่า\nโมเนีย\nไมเคิล\nไมยราพณ์\nยโสธรา\nยะโฮวา\nยะโฮวาห์\nยามาฮ่า\nยาเวห์\nยาฮู\nยูนิเซฟ\nยูเนสโก\nยูไล\nเยโฮวาห์\nรอยเตอร์\nรอยัล\nรัชดา\nรัสปูติน\nราฟาเอล\nรามาวตาร\nราเมศวร\nราหุล\nริชาร์ด\nรีพับลิกัน\nรูนีย์\nเรนโบว์\nแรมโบ้\nโรตารี\nโรนัลโด\nโรนัลโด้\nโรบินสัน\nโรเบิร์ต\nล็อกซเล่ย์\nลิงคอล์น\nลิจฉวี\nลิไท\nลิไทย\nลินคอล์น\nลิเวอร์พูล\nเลโนโว\nเลียดก๊ก\nโลตัส\nวชิราลงกรณ์\nวลาดิเมียร์\nวอลล์สตรีท\nวาเลนไทน์\nวิกตอเรีย\nวิทยานุสรณ์\nวิทยายน\nวิมเบิลดัน\nวิลเลียม\nวีระ\nวุฒิชัย\nเวียดกง\nไวตามิลค์\nศกุนตลา\nศรีวิชัย\nศิริพงษ์\nศิริราช\nศุภชลาศัย\nสดกก๊อกธม\nสดายุ\nสตาลิน\nสตีฟ\nสแตนฟอร์ด\nสวรินทิรา\nสังกัจจายน์\nสาทิตย์\nสารีบุตร\nสิริกิติ์\nสิรินธร\nสิหิงค์\nสีวลี\nสีหนุ\nสีหมุนี\nสีหโมนี\nสุครีพ\nสุทโธทนะ\nสุเทพ\nสุนทราภรณ์\nสุนีย์\nสุรนารี\nสุรยุทธ์\nสุริยาสน์\nเส้าหลิน\nโสกราตีส\nโสภิต\nหนุมาน\nหลินฮุ่ย\nหลุยส์\nเห้งเจีย\nไหหม่า\nองคต\nองคุลิมาล\nอชาตศัตรู\nอดุลยเดช\nอพอลโล\nอริสโตเติล\nอริสมันต์\nอลิซาเบธ\nอ๋อม\nออร์คิด\nออสการ์\nอะพอลโล\nอับราฮัม\nอั้ม\nอัลกออิดะห์\nอัลคาเทล\nอัลจาซีราห์\nอัลเฟรด\nอัลเลาะห์\nอัสซุส\nอัสสชิ\nอัสสัมชัญ\nอาเซม\nอาเซ็ม\nอาเซียน\nอาฟต้า\nอาร์เซนอล\nอินทรชิต\nอินทราทิตย์\nอีซูซุ\nอีเลฟเวน\nอีเลฟเว่น\nอุณรุท\nอุบลรัตน์\nอุบาลี\nอุ๋ย\nเอกทัศน์\nเอเซอร์\nเอ็ดเวิร์ด\nเอดิสัน\nเอแบค\nเอลิซาเบธ\nเอสพลานาด\nเอสพลานาร์ด\nแอคคอร์\nแอคคอร์ด\nแองเจลิน่า\nแอตแลนติส\nแอน\nแอ๋ม\nแอมบาสซาเดอร์\nแอมบาสเดอร์\nแอมเวย์\nแอ๋ว\nโอดีสซีย์\nโอเดียน\nโอบามา\nโอรสาราม\nโอลิมเปีย\nโออิชิ\nไอน์สไตน์\nฮอนด้า\nฮอปกินส์\nฮอลลีวูด\nฮอลลีวู้ด\nฮานามิ\nฮามาส\nฮิตเลอร์\nฮิตาชิ\nฮุนเซน\nฮุนเซ็น\nฮุนได\nฮุสเซ็น\nเฮนรี\nเฮนรี่\nเฮเลน\nโฮจิมินห์\nโฮปเวลล์\nโฮเมอร์\n\nกลีเซอรีน\nกำทอน\nแกนีมีด\nครอส\nคริสตัล\nคลอโรพลาสต์\nคลอไรด์\nควอนตัม\nคอนดักเตอร์\nคอปเปอร์\nคอลลาเจน\nคอเลสเตอรอล\nคอสมิก\nคูลอมบ์\nเคอราติน\nแคโรทีน\nแคสสินี\nโครมาโทกราฟี\nไคโตซาน\nจีโนม\nจุลชีววิทยา\nชิคุนกุนยา\nซัลฟิวริก\nซัลเฟต\nซัลไฟด์\nซิงค์\nซิริอุส\nซิลิกา\nซิลิเกต\nซิลิโคน\nซีเทน\nซีเวิร์ต\nเซ็กเตอร์\nเซ็กเมนต์\nเซมิ\nโซนาร์\nไซบอร์ก\nดอปเปลอร์\nดอปเพลอร์\nไดนามิก\nไดนามิกส์\nไดนามิค\nไดนามิคส์\nไดออกไซด์\nทรานส์\nทามิฟลู\nเทฟลอน\nเทสโทสเตอโรน\nเทอร์โม\nแทนนิน\nไททัน\nไทฟอยด์\nไทรอยด์\nธาลัสซีเมีย\nเนกาตีฟ\nโนวา\nบอแรกซ์\nโบทอกซ์\nโบท็อกซ์\nไบโอติน\nปฏิยานุพันธ์\nโปรเจสเตอโรน\nพอลิเมอร์\nพันธุศาสตร์\nพัลซาร์\nพาร์กินสัน\nพาราเซตามอล\nพาราโบลา\nเพอร์ออกไซด์\nโพรเจสเทอโรน\nโพลาไรซ์\nโพลิเมอร์\nโพลีเอทิลีน\nไพรเมต\nฟลาโวนอยด์\nฟลูออเรสเซนซ์\nฟลูออไรด์\nฟอสซิล\nฟิชชัน\nฟิวชัน\nฟีโรโมน\nไฟเบอร์\nมอนอกไซด์\nมิราจ\nเมตริกซ์\nเมทริกซ์\nเมลานิน\nเมลามีน\nโมเมนตัม\nไมโตคอนเดรีย\nไมโทคอนเดรีย\nยีสต์\nยูริก\nยูเรีย\nรูมาตอยด์\nวีก้า\nเวกเตอร์\nเวก้า\nเวสิเคิล\nโวลต์\nสเกล\nสเกลาร์\nสเต็ม\nสเตียรอยด์\nสปีชีส์\nสเปิร์ม\nสัมพัทธภาพ\nสุริยจักรวาล\nออกเทน\nออโรรา\nออโรร่า\nอะคริลิก\nอะครีลิก\nอะซีติก\nอะซีโตน\nอะมิโน\nอะลูมินา\nอันโดรเมดา\nอัลคาไลน์\nอัลตราซาวด์\nอัลตราซาวนด์\nอัลลอยด์\nอินทิกรัล\nอินทิเกรต\nอีโบลา\nอีโบล่า\nเอ็กซ์โพเนนเชียล\nเอทานอล\nเอทิลีน\nเอนโทรปี\nเอสเตอร์\nเอสโตรเจน\nเอสโทรเจน\nแอนดรอยด์\nแอนแทร็กซ์\nแอมพลิจูด\nแอมโมเนียม\nแอลกอฮอลิซึม\nแอสพาร์แตม\nโอเซลทามิเวียร์\nฮับเบิล\nฮิวมัส\nไฮดรอกไซด์\nไฮดรอลิก\nไฮโดรลิก\nไฮเพอร์โบลา\n\nกงเต็ก\nกฎุมพี\nกฏ\nกฏหมาย\nกบฎ\nกราไฟต์\nก๊อปปี้\nกะทะ\nกังวาล\nกุฎฐัง\nกุฏุมพี\nฃวด\nคฑา\nคลินิค\nคลีนิก\nคลีนิค\nคาทอลิค\nคึ่นฉ่าย\nแคตตาล็อก\nโควต้า\nฅน\nจุมพฎ\nช็อคโกแลต\nแซ่ด\nดัทช์\nทนง\nทรมาณ\nทราก\nทะแยง\nทิฏฐิ\nบล็อค\nบ๊องแบ๊ว\nบัลเล่ต์\nเบรค\nแบงค์\nปรากฎ\nปัคคหะ\nปาฏิโมกข์\nปิติ\nปิรามิด\nโปรเตสแตนท์\nพนิช\nพยักเพยิด\nพริ้ว\nพลูโตเนียม\nพากษ์\nเฟิร์น\nยากี้\nเยภุยยสิกา\nรุสเซีย\nฤาษี\nล็อค\nล็อคเกอร์\nวันทยาหัตถ์\nวานิช\nวิญญาน\nวิศิษฐ์\nศรีษะ\nสเปกโทรสโคป\nสฤษฎ์\nสลิ่ม\nสัตตสดก\nสาราณียากร\nสุกี้\nสุกี้ยากี้\nสูญญากาศ\nหยอมแหยม\nหยอย\nหล่ะ\nอะดรีนาลีน\nอะหลั่ย\nอัตคัต\nอัฟริกา\nอานิสงค์\nอาฟริกา\nอิริยาบท\nอิเลคโทรนิคส์\nอีรุงตุงนัง\nอุตรายัน\nอุลตรา\nอุลตร้า\nโอกาศ\n\nกกหู\nกงการ\nกงจักร\nกฎเกณฑ์\nกฎบัตร\nกฎหมาย\nกฎหมู่\nกดขี่\nกดดัน\nก้นกบ\nก้นบึ้ง\nก้นปล่อง\nกนิษฐภคินี\nกนิษฐภาดา\nกรงเล็บ\nกรมการ\nกรมท่า\nกรมธรรม์\nกรมนา\nกรมวัง\nกรรมกร\nกรรมการ\nกรรมฐาน\nกรรมบถ\nกรรมพันธุ์\nกรรมวิธี\nกรรมสิทธิ์\nกระจกเงา\nกระจกตา\nกระจกนูน\nกระจกเว้า\nกระจอกชวา\nกระจอกเทศ\nกระจ้อยร่อย\nกระจับบก\nกระจับปิ้ง\nกระจับปี่\nกระโชกโฮกฮาก\nกระดานดำ\nกระดานหก\nกระดาษแก้ว\nกระดาษไข\nกระดาษทราย\nกระดาษสา\nกระดูกงู\nกระทาชาย\nกระเท่เร่\nกระบวนการ\nกระบองเพชร\nกระผีกริ้น\nกระยาทิพย์\nกระยาสารท\nกระยาหาร\nกระสอบทราย\nกระสุนปืน\nกระแสจิต\nกระแสน้ำ\nกระแสลม\nกรับคู่\nกรับพวง\nกรับเสภา\nกราดเกรี้ยว\nกราวรูด\nกริ่งเกรง\nกรีฑาสถาน\nกรีดกราย\nกรี๊ดกร๊าด\nกลไก\nกลบท\nกลเม็ด\nกลยุทธ์\nกลวิธี\nกลศาสตร์\nกลอักษร\nกลบเกลื่อน\nกลมกล่อม\nกลมกลืน\nกลมเกลียว\nกล้วยแขก\nกล้วยไม้\nกล่องเสียง\nกล่อมเกลา\nกล่อมเกลี้ยง\nกลัดกลุ้ม\nกลัดมัน\nกลั่นกรอง\nกลั่นแกล้ง\nกลับกลอก\nกลางคน\nกลางคัน\nกลางค่ำ\nกลางคืน\nกลางแจ้ง\nกลางแปลง\nกลางวัน\nกลาดเกลื่อน\nกล่าวขวัญ\nกล่าวโทษ\nกล่าวหา\nกล้ำกราย\nกล้ำกลืน\nกลิ้งกลอก\nกลิ้งเกลือก\nกลิ่นอาย\nกลียุค\nกวดขัน\nกวัดแกว่ง\nกวัดไกว\nกวีนิพนธ์\nก่อกวน\nก่อการ\nก่อตั้ง\nก่อสร้าง\nก่อหวอด\nก้อร่อก้อติก\nกองกลาง\nกองเกิน\nกองโจร\nกองทัพ\nกองทุน\nกองพล\nกองพัน\nกองฟอน\nกองร้อย\nกองหนุน\nกอบโกย\nกะเกณฑ์\nกะบังลม\nกักกัน\nกักขัง\nกักตัว\nกักตุน\nกัณฑ์เทศน์\nกัดฟัน\nกันชน\nกันท่า\nกันสาด\nกันเอง\nกับแกล้ม\nกับข้าว\nกับระเบิด\nกากเพชร\nกากหมู\nกาชาด\nกาญจนาภิเษก\nก้านคอ\nกาฝาก\nก้ามกราม\nกามกิจ\nกามคุณ\nกามเทพ\nกามโรค\nก้ามปู\nกายกรรม\nกายบริหาร\nกายภาพ\nกายวิภาค\nกายสิทธิ์\nก่ายกอง\nการคลัง\nการเงิน\nการบ้าน\nการเปรียญ\nการเมือง\nการเรือน\nการละเล่น\nกาลกิริยา\nกาลเทศะ\nก้าวก่าย\nก้าวร้าว\nก้าวหน้า\nกาสาวพัสตร์\nกาฬพฤกษ์\nกาฬโรค\nกำปั้น\nกำมือ\nกำแพงขาว\nกำลังใจ\nกำลังม้า\nกี่งอำเภอ\nกิจกรรม\nกิจการ\nกิจวัตร\nกิจจะลักษณะ\nกิตติคุณ\nกิตติศัพท์\nกินขาด\nกินใจ\nกินดอง\nกินโต๊ะ\nกินแบ่ง\nกินเปล่า\nกินเลี้ยง\nกินเส้น\nกินแหนง\nกิโลกรัม\nกิโลเมตร\nกิโลลิตร\nกิโลเฮิรตซ์\nกีดกัน\nกีดกั้น\nกีดขวาง\nกึกก้อง\nกึกกัก\nกึกกือ\nกึ่งกลาง\nกุกกัก\nกุ๊กกิ๊ก\nกุ้งฝอย\nกุ้งมังกร\nกุ้งแห้ง\nกุ้งเต้น\nกุ้งยิง\nกุญแจผี\nกุญแจมือ\nกุญแจเลื่อน\nกุญแจเสียง\nกุลธิดา\nกุลบุตร\nกุลสตรี\nกู้ยืม\nเก้งก้าง\nเก็บกวาด\nเก็บเกี่ยว\nเก็บงำ\nเก็บตก\nเกรงกลัว\nเกรงใจ\nเกรงขาม\nเกรียงไกร\nเกรียมกรม\nเกรี้ยวกราด\nเกล็ดเลือด\nเกลี้ยกล่อม\nเกลี้ยงเกลา\nเกลือกกลั้ว\nเกลือกกลิ้ง\nเกลื่อนกล่น\nเกลื่อนกลาด\nเกศธาตุ\nเกษตรกร\nเกษตรกรรม\nเกษตรศาสตร์\nเกษมสันต์\nเกษียรสมุทร\nเก้อเขิน\nเกาะแกะ\nเกี่ยงงอน\nเกียจคร้าน\nเกียรติคุณ\nเกียรตินิยม\nเกียรติประวัติ\nเกียรติภูมิ\nเกียรติยศ\nเกียรติศักดิ์\nเกียรติมุข\nเกี่ยวข้อง\nเกี่ยวดอง\nเกี่ยวพัน\nเกี่ยวโยง\nเกี้ยวพาน\nเกี้ยวพาราสี\nแก่แดด\nแก้ขัด\nแก้ไข\nแก้ตัว\nแก้เผ็ด\nแก้ลำ\nแกงคั่ว\nแกงจืด\nแกงบวด\nแกงป่า\nแกงเผ็ด\nแกงส้ม\nแก่งแย่ง\nแก่นแก้ว\nแก่นสาร\nแก้วตา\nแก้วหู\nแกว่งกวัด\nแกว่งไกว\nแกะรอย\nโก้เก๋\nโกรธเกรี้ยว\nโกรธขึ้ง\nไก่เขี่ย\nไก่ชน\nไก่บ้าน\nไก่ป่า\nไก่ฟ้า\nไกล่เกลี่ย\nขจัดขจาย\nขนเพชร\nขนสัตว์\nขนหนู\nขนส่ง\nขนมจีน\nขบขัน\nขบวนการ\nข่มขี่\nข่มขู่\nข่มขืน\nข่มเหง\nขมหิน\nขมิ้นชัน\nขมุบขมิบ\nขยะแขยง\nขยักขย่อน\nขยักขย้อน\nขยับขยาย\nขยับเขยื้อน\nขวดโหล\nขวยเขิน\nขวัญใจ\nขวัญตา\nขวัญอ่อน\nขวากหนาม\nขวางโลก\nของ้าว\nขอสับ\nขอขมา\nขอทาน\nขอโทษ\nขอร้อง\nขออภัย\nข้อเขียน\nข้อความ\nข้อเท็จจริง\nของกลาง\nของขวัญ\nของแข็ง\nของชำ\nของลับ\nของเล่น\nของว่าง\nของเหลว\nของไหล\nของไหว้\nข้องใจ\nข้องแวะ\nขอบข่าย\nขอบเขต\nขอบคุณ\nขอบใจ\nขอบพระคุณ\nข้อมูล\nข้อแม้\nข้อหา\nข้อสังเกต\nขัดข้อง\nขัดขืน\nขัดเขิน\nขัดจังหวะ\nขัดดอก\nขัดแตะ\nขัดยอก\nขัดแย้ง\nขัดสมาธิ\nขันหมาก\nขันอาสา\nขับขี่\nขับเคี่ยว\nขั้วโลก\nขาจร\nขาประจำ\nข้าราชการ\nข้าศึก\nข้าหลวง\nขาดแคลน\nขาดใจ\nขาดตอน\nขาดตัว\nขาดทุน\nขาดเหลือ\nขายหน้า\nข่าวกรอง\nข่าวคราว\nข่าวล่า\nข่าวลือ\nข่าวสาร\nข้าวเกรียบ\nข้าวแกง\nข้าวของ\nข้าวจี่\nข้าวเจ้า\nข้าวซอย\nข้าวต้ม\nข้าวตอก\nข้าวตัง\nข้าวแตน\nข้าวทิพย์\nข้าวบิณฑ์\nข้าวเปลือก\nข้าวโพด\nข้าวฟ่าง\nข้าวเม่า\nข้าวสวย\nข้าวสาร\nข้าวเหนียว\nข้าวหมาก\nข้าวหลาม\nขี้เกียจ\nขี้ข้า\nขี้ครอก\nขี้คร้าน\nขี้คุก\nขี้ไคล\nขี้เซา\nขีดขั้น\nขีดคร่อม\nขีดคั่น\nขีดฆ่า\nขี้ตา\nขี้ตืด\nขี้เถ้า\nขี้ทูด\nขี้ปะติ๋ว\nขี้ผึ้ง\nขี้มูก\nขี้ยา\nขี้แย\nขี้ริ้ว\nขี้เรื้อน\nขี้เล็บ\nขี้หู\nขี้หน้า\nขี้เหนียว\nขี้เหล็ก\nขี้เหร่\nขึงขัง\nขึงพืด\nขึ้งโกรธ\nขึ้นใจ\nขึ้นชื่อ\nขึ้นมือ\nขืนใจ\nขื่นขม\nขุดคุ้ย\nขุนทอง\nขุนนาง\nขุนพล\nขุนศึก\nขุนหลวง\nขูดรีด\nเข็มกลัด\nเข็มขัด\nเข้มข้น\nเข้มแข็ง\nเข้มงวด\nเข็มทิศ\nเข็มหมุด\nเข้าขา\nเข้าเค้า\nเข้าใจ\nเข้าชื่อ\nเข้าตัว\nเข้าถึง\nเข้าทรง\nเข้าท่า\nเข้าที\nเข้าเนื้อ\nเข้าเล่ม\nเขียวเสวย\nเขียวหวาน\nแขกเต้า\nแข็งกร้าว\nแข็งกล้า\nแข็งแกร่ง\nแข็งข้อ\nแข็งขัน\nแข่งขัน\nแข็งใจ\nแข็งตัว\nแข็งเมือง\nแข็งแรง\nแขวนลอย\nโขกสับ\nโขยกเขยก\nไขข้อ\nไขควง\nไขมัน\nไข่มุก\nไขว่ห้าง\nไขสันหลัง\nไขสือ\nไข่เค็ม\nไข่เยี่ยวม้า\nไข่หงส์\nไข่เหี้ย\nคงกระพัน\nคงตัว\nคงทน\nคงที่\nคชลักษณ์\nคชสาร\nคชสีห์\nคชราช\nคณิตศาสตร์\nคดเคี้ยว\nคติธรรม\nคติพจน์\nคนกลาง\nคนไข้\nคนใช้\nคนทรง\nคบไฟ\nคบเพลิง\nคบค้า\nคบคิด\nคบหา\nคมคาย\nครบครัน\nครบถ้วน\nครอบครอง\nครอบคลุม\nครอบครัว\nครอบงำ\nครอบจักรวาล\nคริสตกาล\nคริสตจักร\nคริสต์มาส\nคริสต์ศตวรรษ\nคริสต์ศักราช\nคริสตัง\nคริสเตียน\nครุกรรม\nครุภัณฑ์\nครุศาสตร์\nครุฑพ่าห์\nครุ่นคิด\nคลอเคลีย\nคล่องแคล่ว\nคล่องตัว\nคล่องมือ\nคลั่งไคล้\nคลาคล่ำ\nคลาไคล\nคลาดเคลื่อน\nคลาดแคล้ว\nคลี่คลาย\nคลึงเคล้น\nคลึงเคล้า\nคลื่นไส้\nคลื่นเหียน\nคลุกคลี\nคลุกคลาน\nคลุมเครือ\nคลุมโปง\nคลุ้มคลั่ง\nควงสว่าน\nควบคุม\nควบคู่\nควบแน่น\nควันหลง\nความคิด\nความหลัง\nความเห็น\nคอหอย\nคอห่าน\nคอแห้ง\nค่อนขอด\nค่อนแคะ\nค้อนควัก\nคั่งค้าง\nคั่งแค้น\nคัดค้าน\nคัดง้าง\nคัดท้าย\nคัดเลือก\nคันจาม\nคันฉ่อง\nคันฉาย\nคันชัก\nคันชั่ง\nคันไถ\nคันนา\nคันเร่ง\nคับขัน\nคับคั่ง\nคับแค้น\nคับแคบ\nคางทูม\nคางหมู\nค้างคืน\nค้างปี\nคาดคั้น\nคาดเชือก\nคาดโทษ\nคาดหมาย\nคานหาม\nคาบเกี่ยว\nคาบศิลา\nคาบสมุทร\nคำขาด\nคำนำ\nคิดค้น\nคืนดี\nคืนตัว\nคุกเข่า\nคุณค่า\nคุณชาย\nคุณธรรม\nคุณนาย\nคุณภาพ\nคุณลักษณะ\nคุณวุฒิ\nคุณศัพท์\nคุณสมบัติ\nคุณหญิง\nคุณากร\nคุณูปการ\nคุโณปการ\nคุมเชิง\nคุ้มกัน\nคุยเขื่อง\nคุยโต\nคุ้ยเขี่ย\nคุ้มครอง\nคู่กรณี\nคู่กัด\nคู่ขา\nคู่แข่ง\nคู่ครอง\nคู่ควร\nคู่คิด\nคู่คี่\nคู่ใจ\nคู่ชีพ\nคู่ชีวิต\nคู่บารมี\nคู่บุญ\nคู่ปรปักษ์\nคู่ปรับ\nคู่ผสม\nคู่มือ\nคู่รัก\nคู่ลำดับ\nคู่สาย\nคู่หมั้น\nคู่หู\nคู่อริ\nคู่อาฆาต\nเคมีภัณฑ์\nเคยตัว\nเคร่งขรึม\nเคร่งครัด\nเคร่งเครียด\nเครดิตฟองซิเอร์\nเครื่องกล\nเครื่องกัณฑ์\nเครื่องแกง\nเครื่องเขิน\nเครื่องครัว\nเครื่องเคียง\nเครื่องเงิน\nเครื่องจักร\nเครื่องเซ่น\nเครื่องดนตรี\nเครื่องต้น\nเครื่องทุ่นแรง\nเครื่องเทศ\nเครื่องใน\nเครื่องบิน\nเครื่องบูชา\nเครื่องแบบ\nเครื่องประดับ\nเครื่องปรุง\nเครื่องปรุงรส\nเครื่องมือ\nเครื่องยนต์\nเครื่องร่อน\nเครื่องราง\nเครื่องเรือน\nเครื่องล่าง\nเครื่องเล่น\nเครื่องสาย\nเครื่องสำอาง\nเครื่องสุกำศพ\nเครื่องหมาย\nเครือรัฐ\nเคลียคลอ\nเคลื่อนที่\nเคลื่อนไหว\nเคลือบแคลง\nเคลือบแฝง\nเคลือบฟัน\nเคว้งคว้าง\nเคหสถาน\nเค้าโครง\nเคียดแค้น\nเคี่ยวเข็ญ\nเคี้ยวเอื้อง\nเคืองขุ่น\nโคนม\nโคบาล\nโคมูตร\nโคมลอย\nโครงการ\nโครงเรื่อง\nโครงงาน\nโครงสร้าง\nโครมคราม\nโคลงเคลง\nฆ้องกระแต\nฆ้องชัย\nฆ้องวง\nฆ้องหุ่ย\nฆ้องเหม่ง\nฆ้องโหม่ง\nฆาตกร\nฆาตกรรม\nฆานประสาท\nงงงวย\nงงงัน\nงดเว้น\nงบดุล\nงบประมาณ\nงมโข่ง\nงมงาย\nง่วงงุน\nง่วงเหงา\nงอหาย\nง้องอน\nงอนง้อ\nงอมแงม\nงาช้าง\nง่าเงย\nงานการ\nง่ายดาย\nงึมงำ\nเงินเดือน\nเงินตรา\nเงินยวง\nเงียบกริบ\nเงียบเชียบ\nเงียบเหงา\nเงื่องหงอย\nเงื่อนไข\nเงื่อนงำ\nเงื่อนเวลา\nเงื้อมมือ\nแง่งอน\nจงใจ\nจงรัก\nจดจ่อ\nจดจำ\nจดหมาย\nจดหมายเหตุ\nจรจัด\nจรรยาบรรณ\nจริงจัง\nจริงใจ\nจอมขวัญ\nจอมใจ\nจอมทัพ\nจอมปลวก\nจอมพล\nจ๊ะเอ๋\nจักสาน\nจักรพรรดิ\nจักรภพ\nจักรยาน\nจักรยานยนต์\nจักรราศี\nจักรวรรดิ\nจักรวรรดินิยม\nจักรวาล\nจังหนับ\nจัดการ\nจัดจ้าน\nจัดเจน\nจัดแจง\nจัดตั้ง\nจัดสรร\nจับกุม\nจับจด\nจับเจ่า\nจ่าหน้า\nจาตุทสี\nจาตุมหาราช\nจาตุมหาราชิก\nจาตุมหาราชิกา\nจาตุรงคสันนิบาต\nจาตุรราชการ\nจานเชิง\nจานบิน\nจานผี\nจานเสียง\nจาบจ้วง\nจำเป็น\nจำพรรษา\nจำวัด\nจ้ำจี้จ้ำไช\nจำเลาะตา\nจิงโจ้น้ำ\nจิตใจ\nจิตตภาวนา\nจิตตัง\nจิตตานุปัสสนา\nจิตนิยม\nจิตบำบัด\nจิตแพทย์\nจิตวิสัย\nจิตรกร\nจิตรกรรม\nจิตรลดา\nจิตวิทยา\nจิตเวช\nจิตเวชศาสตร์\nจินตกวี\nจินตนา\nจินตนาการ\nจินตภาพ\nจุฑามณี\nจุฑามาศ\nจุฑารัตน์\nจุนเจือ\nจุ้นจ้าน\nจุลชีพ\nจุลชีวัน\nจุลชีวิน\nจุลทรรศน์\nจุลภาค\nจุลวรรค\nจุลศักราช\nจุลสาร\nจุลินทรีย์\nจุฬามณี\nจุฬาลักษณ์\nเจตคติ\nเจตจำนง\nเจตนารมณ์\nเจตภูต\nเจริญพร\nเจ้ากรม\nเจ้ากรรม\nเจ้าของ\nเจ้าขา\nเจ้าข้า\nเจ้าคณะ\nเจ้าค่ะ\nเจ้าจอม\nเจ้าชู้\nเจ้าตัว\nเจ้าถิ่น\nเจ้าท่า\nเจ้าที่\nเจ้าทุกข์\nเจ้านาย\nเจ้าเนื้อ\nเจ้าบ้าน\nเจ้าบ่าว\nเจ้าประคุณ\nเจ้าประคู้น\nเจ้าพนักงาน\nเจ้าพระคุณ\nเจ้าพระยา\nเจ้าพ่อ\nเจ้าพายุ\nเจ้าฟ้า\nเจ้าภาพ\nเจ้ามือ\nเจ้าแม่\nเจ้าเรือน\nเจ้าสังกัด\nเจ้าสัว\nเจ้าสาว\nเจ้าหน้าที่\nเจ้าหนี้\nเจ้าอาวาส\nเจาะจง\nเจือจาง\nเจือจาน\nเจือปน\nเจื้อยแจ้ว\nแจกจ่าย\nแจ่มแจ้ง\nแจ่มใส\nโจงกระเบน\nโจมตี\nโจรกรรม\nโจรสลัด\nใจความ\nใจคอ\nฉกฉวย\nฉกชิง\nฉลองได\nฉ้อฉล\nฉัตรมงคล\nฉันทลักษณ์\nฉายาลักษณ์\nฉิบหาย\nฉุกเฉิน\nฉุกละหุก\nฉุนเฉียว\nฉุปศาสตร์\nเฉไฉ\nเฉยเมย\nเฉาโฉด\nเฉิดฉัน\nเฉิดฉาย\nเฉิดฉิน\nเฉียบขาด\nเฉียบพลัน\nเฉียบแหลม\nเฉื่อยชา\nแฉะแบะ\nโฉดเฉา\nโฉมงาม\nโฉมฉาย\nโฉมเฉลา\nโฉมตรู\nโฉมยง\nโฉมศรี\nโฉมหน้า\nชดช้อย\nชดเชย\nชดใช้\nชนบท\nชนินทร์\nชนกกรรม\nชนมพรรษา\nชนมายุ\nชมเชย\nชมพูทวีป\nชมพูนท\nชมพูนุท\nชราธรรม\nชราภาพ\nชลจร\nชลธาร\nชลธี\nชลนัยน์\nชลนา\nชลเนตร\nชลประทาน\nชลมารค\nชลาธาร\nชลาลัย\nชลาศัย\nชลาสินธุ์\nชโลทร\nช่วงชิง\nช่วงใช้\nชวนชม\nชวนหัว\nช่วยเหลือ\nช่อฟ้า\nช่อม่วง\nชอกช้ำ\nช่องเขา\nช่องแคบ\nช่องไฟ\nช่องว่าง\nช้องนาง\nชอบกล\nชอบใจ\nชอบธรรม\nชอบพอ\nชักโครก\nชักเงา\nชักจูง\nชักชวน\nชักนำ\nชักเนื้อ\nชักพระ\nชักเย่อ\nชักใย\nชั่งใจ\nชังฆวิหาร\nชัดเจน\nชั้นเชิง\nชั่วคน\nชั่วคราว\nชั่วช้า\nชั่วโมง\nชั่วแล่น\nชาเย็น\nช้านาน\nช่างเครื่อง\nช่างฝีมือ\nช่างฟิต\nช่างไฟ\nช้างน้ำ\nช้างเผือก\nช้างพลาย\nช้างพัง\nช้างสาร\nช้างสีดอ\nชาติธรรม\nชาตินิยม\nชาติพันธุ์\nชาติพันธุ์วิทยา\nชาติภูมิ\nชานชาลา\nชายชาตรี\nชายคา\nชายฝั่ง\nชายทะเล\nชาวเล\nชาววัง\nช้ำใจ\nช้ำชอก\nชิงชัง\nชิงพลบ\nชินชา\nชินบุตร\nชิ้นเอก\nชิมลาง\nชีเปลือย\nชี้ขาด\nชี้แจง\nชี้นำ\nชี้แนะ\nชี้ฟ้า\nชีพจร\nชีพิตักษัย\nชื่นชม\nชื่นบาน\nชื่นมื่น\nชื่อย่อ\nชื่อรอง\nชื่อเล่น\nชื่อเสียง\nชุกชุม\nชุติมา\nชุบตัว\nชุบเลี้ยง\nชุมชน\nชุมทาง\nชุมสาย\nชุ่มใจ\nชุ่มชื่น\nชุ่มชื้น\nชุมนุมชน\nชูชีพ\nชูโรง\nชู้สาว\nเชยชม\nเชลยศักดิ์\nเชลยศึก\nเช่าซื้อ\nเช้าตรู่\nเช้ามืด\nเชิงกราน\nเชิงกล\nเชิงชั้น\nเชิงชาย\nเชิงซ้อน\nเชิงเดียว\nเชิงเดี่ยว\nเชิงตะกอน\nเชิงเทิน\nเชิงมุม\nเชิดชู\nเชิงอรรถ\nเชี่ยนหมาก\nเชี่ยวชาญ\nเชื่องช้า\nเชื่อใจ\nเชื่อถือ\nเชื่อฟัง\nเชื่อมือ\nเชื้อชาติ\nเชื้อเพลิง\nเชื้อไฟ\nเชื้อโรค\nเชื้อสาย\nเชื้อเชิญ\nเชื่องช้า\nเชือนแช\nเชื่อวัน\nแช่เย็น\nแช่อิ่ม\nแช่มช้อย\nแช่มชื่น\nโชกโชน\nโชติช่วง\nโชติรส\nใช้สอย\nซบเซา\nซมซาน\nซวนเซ\nซอกซอน\nซอกแซก\nซ่องสุม\nซ่องเสพ\nซ่องแซ่ง\nซ่อนรูป\nซ่อนเร้น\nซ่อนหา\nซ่อนกลิ่น\nซ่อนทราย\nซ่อมแซม\nซักค้าน\nซักซ้อม\nซักไซ้\nซักฟอก\nซักแห้ง\nซังกะตาย\nซังตาย\nซัดเซ\nซัดทอด\nซับซ้อน\nซับใน\nซับพระพักตร์\nซากศพ\nซ่านเซ็น\nซ้ำซ้อน\nซ้ำซาก\nซ้ำเติม\nซ้ำร้าย\nซี่โครง\nซีดเซียว\nซึมกะทือ\nซึมซาบ\nซึมเซา\nซึมทราบ\nซึมเศร้า\nซื่อตรง\nซื่อสัตย์\nซื้อขาย\nซุกซน\nซุกซ่อน\nซุบซิบ\nซู่ซ่า\nเซซัง\nเซ่อซ่า\nแซ่ซ้อง\nโซดาไฟ\nญาณทัสนะ\nญาณวิทยา\nญาณศาสตร์\nญาติกา\nฐานราก\nดกดื่น\nดงดิบ\nดลใจ\nดลบันดาล\nดวงแก้ว\nดวงใจ\nดวงเดือน\nดวงตรา\nดวงตา\nดวงสมร\nดอกจัน\nดอกจิก\nดอกบัว\nดอกเบี้ย\nดอกฟ้า\nดอกไม้\nดอกยาง\nดอกเล็บ\nดอกทอง\nดอกสร้อย\nดองยา\nดักคอ\nดักฟัง\nดังนั้น\nดังนี้\nดังหนึ่ง\nดั้งเดิม\nดัดจริต\nดัดแปลง\nดันทุรัง\nดับขันธ์\nดับจิต\nดับชีพ\nด่าทอ\nด่างทับทิม\nด่างพร้อย\nดาดฟ้า\nดาราศาสตร์\nดาลเดือด\nดาวกระจาย\nดาวเคราะห์\nดาวตก\nดาวเทียม\nดาวรุ่ง\nดาวเรือง\nดาวฤกษ์\nดาวหาง\nดาวเหนือ\nดาษดื่น\nดินขาว\nดินดาน\nดินดำ\nดินประสิว\nดินปืน\nดินระเบิด\nดินสอ\nดินสอพอง\nดิ้นรน\nดิบดี\nดีเกลือ\nดีใจ\nดีซ่าน\nดีดัก\nดีเดือด\nดีฝ่อ\nดีดดิ้น\nดึกดำบรรพ์\nดึกดื่น\nดึงดัน\nดึงดูด\nดื่มด่ำ\nดื้อด้าน\nดื้อดึง\nดื้อแพ่ง\nดื้อยา\nดื้อรั้น\nดุดัน\nดุเดือด\nดุร้าย\nดุลการค้า\nดุลพินิจ\nดุลภาค\nดุลยพินิจ\nดุลยภาพ\nดุษฎีนิพนธ์\nดุษฎีบัณฑิต\nดุษณีภาพ\nดูแคลน\nดูถูก\nดูดาย\nดูเบา\nดูแล\nดูหมิ่น\nดูเหมือน\nดูดดื่ม\nเด็ดขาด\nเด็ดดวง\nเด็ดเดี่ยว\nเดนตาย\nเดาสวด\nเดาสุ่ม\nเดินทาง\nเดินสะพัด\nเดินสาย\nเดินเหิน\nเดิมพัน\nเดียงสา\nเดียดฉันท์\nเดียวกัน\nเดียวดาย\nเดี๋ยวเดียว\nเดี๋ยวนี้\nเดือดดาล\nเดือดร้อน\nเดือนมืด\nเดือนหงาย\nแดดาล\nแดดิ้น\nแดกดัน\nโด่เด่\nโด่งดัง\nโดดเดี่ยว\nโดยสาร\nได้การ\nได้แก่\nได้ใจ\nได้ที\nได้ยิน\nได้เสีย\nตกเขียว\nตกค้าง\nตกใจ\nตกต่ำ\nตกแต่ง\nตกทอด\nตกฟาก\nตกมัน\nตกยาก\nตกลง\nตกหล่น\nต้นขั้ว\nต้นคิด\nต้นฉบับ\nต้นตอ\nต้นตำรับ\nต้นทุน\nต้นแบบ\nต้นเพลิง\nต้นมือ\nต้นไม้\nต้นร่าง\nต้นเรื่อง\nต้นสังกัด\nต้นหน\nต้นเหตุ\nตบตา\nตบแต่ง\nตบแผละ\nตบมือ\nต้มข่า\nต้มโคล้ง\nต้มยำ\nต้มส้ม\nตรมตรอม\nตรรกวิทยา\nตรรกศาสตร์\nตรวจการ\nตรวจการณ์\nตรวจตรา\nตระบัดสัตย์\nตรัสรู้\nตราตั้ง\nตราบาป\nตรายาง\nตราสาร\nตริตรอง\nตรีกฏุก\nตรีกาย\nตรีโกณ\nตรีโกณมิติ\nตรีคูณ\nตรีทูต\nตรีปิฎก\nตรีภพ\nตรีมูรติ\nตรึกตรอง\nตรึงตรา\nตรุษจีน\nตฤณชาติ\nตฤณมัย\nตลกบาตร\nตลบตะแลง\nตลบหลัง\nตลาดนัด\nตลาดน้ำ\nตลาดมืด\nตลาดสด\nต่อตี\nต่อเติม\nต่อว่า\nต่อสู้\nต่อกร\nต่อต้าน\nต่อแย้ง\nต้องการ\nต้องโทษ\nต้องหา\nต้อนรับ\nตอบโต้\nตอบแทน\nต่อยหอย\nตะพาบน้ำ\nตักตวง\nตักบาตร\nตั้งเข็ม\nตั้งไข่\nตั้งเค้า\nตั้งแง่\nตั้งใจ\nตั้งต้น\nตั้งแต่\nตั้งท้อง\nตัดขาด\nตัดใจ\nตัดเชือก\nตัดตอน\nตัดทอน\nตัดบท\nตัดพ้อ\nตัดรอน\nตัดสิน\nตับเต่า\nตับแลบ\nตับอ่อน\nตัวกลาง\nตัวการ\nตัวเก็ง\nตัวดี\nตัวตั้ง\nตัวเต็ง\nตัวถัง\nตัวแทน\nตัวประกอบ\nตัวประกัน\nตัวแปร\nตัวผู้\nตัวพิมพ์\nตัวเมีย\nตัวยืน\nตัวเลข\nตัวอย่าง\nตั๋วเงิน\nตั๋วแลกเงิน\nตากล้อง\nตาไก่\nตาข่าย\nตาชั่ง\nตาตุ่ม\nตาทวด\nตาปลา\nตาราง\nต่างหาก\nต้านทาน\nตามใจ\nตายใจ\nตายซาก\nตายด้าน\nตายตัว\nตายทั้งกลม\nตายห่า\nตายโหง\nตาลปัตร\nต่ำช้า\nต่ำต้อย\nตำส้ม\nติเตียน\nติณชาติ\nติดขัด\nติดใจ\nติดต่อ\nติดตั้ง\nติดตาม\nติดตื้น\nติดพัน\nติดลม\nติดอ่าง\nตีเกลียว\nตีขลุม\nตีความ\nตีคู่\nตีจาก\nตีตื้น\nตีแผ่\nตีรวน\nตีลังกา\nตีวง\nตีเสมอ\nตีนกา\nตีนคู้\nตีนจก\nตีนตะขาบ\nตีนผี\nตีนเหยียด\nตึกแถว\nตึกระฟ้า\nตึงเครียด\nตึงตัง\nตื้นตัน\nตื่นตัว\nตื่นตูม\nตื่นเต้น\nตุ๊ต๊ะ\nตุ้บตั้บ\nตุ้มหู\nตุลาการ\nตุลาคม\nตู้นิรภัย\nตูมตาม\nตู้เสบียง\nเตโชธาตุ\nเตร็ดเตร่\nเต้นรำ\nเตาแก๊ส\nเตาผิง\nเตาฟู่\nเตาไฟ\nเตารีด\nเตาสูบ\nเต่าทอง\nเต้ารับ\nเต้าส่วน\nเต้าเสียบ\nเต้าหู้ยี้\nแต่ละ\nแตกคอ\nแตกคอก\nแตกฉาน\nแตกดับ\nแตกตื่น\nแตกพาน\nแตกแยก\nแตกร้าว\nแตกหัก\nแต่งงาน\nแต่งตั้ง\nแต้มคู\nแต้มต่อ\nแตรงอน\nแตรเดี่ยว\nแตรฝรั่ง\nแตรฟันฟาร์\nแตรวง\nโต้ตอบ\nโต้เถียง\nโต้แย้ง\nโต๊ะหมู่\nโต๊ะอิหม่าม\nใต้ถุน\nไต้ก๋ง\nไต่คู้\nไต่เต้า\nไต่ถาม\nไต้ฝุ่น\nไตรจักร\nไตรจีวร\nไตรตรึงษ์\nไตรทวาร\nไตรปิฎก\nไตรเพท\nไตรภพ\nไตรภูมิ\nไตรภาคี\nไตรยางศ์\nไตรรงค์\nไตรรัตน์\nไตรลักษณ์\nไตรโลก\nไตรสรณคมน์\nไตรสิกขา\nไต่สวน\nถกเถียง\nถดถอย\nถนัดถนี่\nถนิมสร้อย\nถมถืด\nถมเถ\nถมไป\nถลากไถล\nถ้วนถี่\nถ้วยฟู\nถ่องแท้\nถอดถอน\nถ้อยคำ\nถ้อยแถลง\nถากถาง\nถ่านไฟฉาย\nถ่านหิน\nถามไถ่\nถ่ายทอด\nถ่ายทุกข์\nถ่ายเท\nถาวรวัตถุ\nถ้ำมอง\nถี่ถ้วน\nถึงใจ\nถูกใจ\nถูกชะตา\nเถรวาท\nเถ้าแก่\nเถ้าแก่เนี้ย\nแถมพก\nแถลงการณ์\nไถ่ถอน\nไถ่ถาม\nทดแทน\nทดรอง\nทดลอง\nทดสอบ\nทนทาน\nทนายความ\nทบทวน\nทแยงมุม\nทรงกลด\nทรงเครื่อง\nทรงเจ้า\nทรัพย์สิน\nทรามชม\nทรามเชย\nทรามวัย\nทรามสงวน\nทรามสวาท\nทรุดโทรม\nทฤษฎีบท\nท้วงติง\nท่วมท้น\nทวาทศ\nทวาทศมาส\nทวาบรยุค\nทวารบาล\nทวิบถ\nทวิบท\nทวิบาท\nทวิภาค\nทวิภาคี\nทวีคูณ\nทศกัณฐ์\nทศชาติ\nทศทิศ\nทศนิยม\nทศพร\nทศพล\nทศพิธราชธรรม\nทศมาส\nทศวรรษ\nท่อไอเสีย\nท้อถอย\nท้อแท้\nทองขาว\nทองคำ\nทองคำขาว\nทองคำเปลว\nทองเค\nทองแดง\nทองบรอนซ์\nทองม้วน\nทองย้อย\nทองสัมฤทธิ์\nทองหยอด\nทองหยิบ\nทองเหลือง\nทองเอก\nท่องเที่ยว\nท้องตรา\nท้องถิ่น\nท้องที่\nท้องน้อย\nท้องร่อง\nท้องเรื่อง\nทอดมัน\nทอดทิ้ง\nทอดน่อง\nทอดยอด\nทอดหุ่ย\nทอยกอง\nทะเบียนบ้าน\nทะเลทราย\nทะเลสาบ\nทะเลหลวง\nทักขิณาวัฏ\nทักท้วง\nทักทาย\nทักษิณาวรรต\nทักษิณาทาน\nทักษิณานุประทาน\nทั้งกลม\nทั้งคน\nทั้งดุ้น\nทั้งที\nทั้งนั้น\nทั้งนี้\nทั้งปวง\nทั้งผอง\nทั้งเพ\nทั้งมวล\nทั้งสิ้น\nทั้งหมด\nทั้งหลาย\nทัณฑ์บน\nทัดทาน\nทัดเทียม\nทันควัน\nทันใจ\nทันใด\nทันตา\nทันสมัย\nทันที\nทับถม\nทับทรวง\nทับศัพท์\nทั่วถึง\nทั่วไป\nท่าทาง\nท่าที\nท้าทาย\nทางการ\nทางข้าม\nทางด่วน\nทางเท้า\nทางโท\nทางใน\nทางผ่าน\nทางม้าลาย\nทางหลวง\nทางออก\nทางเอก\nทานกัณฑ์\nทานตะวัน\nท่านชาย\nทานบารมี\nท่านผู้หญิง\nท่านหญิง\nทาบทาม\nท้ายทอย\nทารุณกรรม\nทำคลอด\nทำใจ\nทำซ้ำ\nทำท่า\nทำที\nทำแท้ง\nทำโทษ\nทำบาป\nทำบุญ\nทำพิษ\nทำฟัน\nทำร้าย\nทำวัตร\nทำสาว\nทำเสน่ห์\nทำหมัน\nทำให้\nทิ้งขว้าง\nทิ้งทวน\nทิ้งท้าย\nทินกร\nทิพจักขุ\nทิพโสต\nทิพยจักษุ\nทิพยญาณ\nทิพยเนตร\nทิพยรส\nทิพากร\nทิ่มตำ\nทิ่มแทง\nทิวากร\nทิวากาล\nทิศทาง\nทีเด็ด\nทีท่า\nทีนี้\nทีหลัง\nทีฆนิกาย\nทีฆสระ\nที่ดิน\nที่นอน\nที่นั่ง\nที่ปรึกษา\nที่พึ่ง\nที่มั่น\nที่ราบ\nที่ว่าการ\nที่สุด\nที่หมาย\nที่ไหน\nทุกที\nทุกเมื่อ\nทุกข์สุข\nทุนทรัพย์\nทุนนิยม\nทุนรอน\nทุนสำรอง\nทุ่มเถียง\nทุ่มเท\nทูนหัว\nทูลกระหม่อม\nเทกระจาด\nเทครัว\nเทพเจ้า\nเทพดา\nเทพธิดา\nเทพนม\nเทพนิยม\nเทพนิยาย\nเทพบุตร\nเทพสังหรณ์\nเทศกาล\nเทศนาโวหาร\nเทศบัญญัติ\nเทศบาล\nเทศมนตรี\nเทห์ฟากฟ้า\nเท่ากับ\nเท่าใด\nเท่าตัว\nเท่าทัน\nเท่าทุน\nเท่าเทียม\nเท่านั้น\nเท่าไร\nเท้าช้าง\nเทิดทูน\nเที่ยงตรง\nเที่ยงแท้\nเที่ยงธรรม\nเทียนชนวน\nเทียนพรรษา\nเทียบเคียง\nเทียบเท่า\nเทือกเขา\nเทือกเถา\nแท็งก์น้ำ\nแท่นพิมพ์\nแท่นมณฑล\nแท่นหมึก\nแทรกซอน\nแทรกซ้อน\nแทรกซึม\nแทรกแซง\nแทะโลม\nไทยดำ\nไทยทาน\nไทยธรรม\nไทยน้อย\nไทยใหญ่\nธงชัย\nธงชาติ\nธงทิว\nธรณีวิทยา\nธรณีสงฆ์\nธรรมกาย\nธรรมการ\nธรรมเกษตร\nธรรมขันธ์\nธรรมคุณ\nธรรมจรรยา\nธรรมจริยา\nธรรมจักร\nธรรมจักษุ\nธรรมจาคะ\nธรรมจารี\nธรรมชาติ\nธรรมดา\nธรรมเนียม\nธรรมราชา\nธรรมศาสตร์\nธรรมสภา\nธรรมสังเวช\nธัญพืช\nธารพระกร\nธีรภาพ\nธีรราช\nนกเขา\nนกต่อ\nนกยูง\nนกรู้\nนกหวีด\nนครบาล\nนครรัฐ\nนงคราญ\nนงนุช\nนงพะงา\nนงเยาว์\nนงราม\nนงลักษณ์\nนบนอบ\nนพเก้า\nนพคุณ\nนพเคราะห์\nนพปฎล\nนพพล\nนพรัตน์\nนพศก\nนพศูล\nนมข้น\nนมผง\nนมไม้\nนมนาน\nนมหนู\nนมแมว\nนรีเวช\nนรีเวชวิทยา\nนวดฟั้น\nนวยนาด\nนวลระหง\nนวลลออ\nนวลละออง\nนวลจันทร์\nนอกครู\nนอกคอก\nนอกจาก\nนอกใจ\nนอกชาน\nนอกรีต\nนอกเหนือ\nนองเนือง\nนองเลือด\nนอนก้น\nนอนใจ\nนอบนบ\nนอนเล่น\nนอบน้อม\nน้อมนำ\nน้อยใจ\nน้อยหน้า\nนักการ\nนักการเมือง\nนักกีฬา\nนักข่าว\nนักท่องเที่ยว\nนักเทศน์\nนักโทษ\nนักธรรม\nนักบวช\nนักบิน\nนักบุญ\nนักปราชญ์\nนักพรต\nนักรบ\nนักเรียน\nนักเลง\nนักวิชาการ\nนักศึกษา\nนักสิทธิ์\nนักสืบ\nนักหนา\nนั่งเทียน\nนั่งร้าน\nนัดแนะ\nนัดหมาย\nนั่นแหละ\nนั่นเอง\nนับถือ\nนับประสา\nนัยน์ตา\nนาดำ\nนาปรัง\nนาปี\nนาสวน\nนาหว่าน\nนาคบาศ\nนาคปรก\nนาคราช\nนางกวัก\nนางกำนัล\nนางงาม\nนางใน\nนางบำเรอ\nนางแบบ\nนางพญา\nนางฟ้า\nนางไม้\nนางโลม\nนางสาว\nนางห้าม\nนางเอก\nนาฏกรรม\nนาฏดนตรี\nนาฏศิลป์\nนานนม\nน่านน้ำ\nน่านฟ้า\nนามกร\nนามธรรม\nนามไธย\nนามบัตร\nนามปากกา\nนามแฝง\nนามสกุล\nนามสงเคราะห์\nนามสมญา\nนายทะเบียน\nนายท่า\nนายท้าย\nนายทุน\nนายประกัน\nนายหน้า\nนายอำเภอ\nนารายณ์หัตถ์\nนารีผล\nนาวิกโยธิน\nนำจับ\nนำพา\nนำทาง\nนำร่อง\nนำสืบ\nนำแสดง\nน้ำกรด\nน้ำกาม\nน้ำเกลือ\nน้ำข้าว\nน้ำแข็ง\nน้ำแข็งไส\nน้ำแข็งแห้ง\nน้ำครำ\nน้ำคร่ำ\nน้ำค้าง\nน้ำค้างแข็ง\nน้ำคาวปลา\nน้ำคำ\nน้ำเค็ม\nน้ำเคย\nน้ำเงิน\nน้ำเงี้ยว\nน้ำจัณฑ์\nน้ำจิ้ม\nน้ำใจ\nน้ำเชื้อ\nน้ำเชื่อม\nน้ำซาวข้าว\nน้ำดอกไม้\nน้ำดี\nน้ำตก\nน้ำตา\nน้ำตาล\nน้ำท่า\nน้ำนม\nน้ำนวล\nน้ำบาดาล\nน้ำประสานทอง\nน้ำประปา\nน้ำปลา\nน้ำป่า\nน้ำผึ้ง\nน้ำพริก\nน้ำพริกเผา\nน้ำพี้\nน้ำพุ\nน้ำมนต์\nน้ำมนตร์\nน้ำมัน\nน้ำมือ\nน้ำมูก\nน้ำเมา\nน้ำย่อย\nน้ำยา\nน้ำรัก\nน้ำแร่\nน้ำลาย\nน้ำเลี้ยง\nน้ำสต๊อก\nน้ำส้ม\nน้ำส้มสายชู\nน้ำสังข์\nน้ำสาบาน\nน้ำเสียง\nน้ำหนวก\nน้ำหนอง\nน้ำหนัก\nน้ำหน้า\nน้ำหนึ่ง\nน้ำหมึก\nน้ำหอม\nน้ำเหลือง\nน้ำอบ\nน้ำอ้อย\nน้ำอัดลม\nนิ่งเฉย\nนิจศีล\nนิดเดียว\nนิดหน่อย\nนิติกร\nนิติกรรม\nนิติธรรม\nนิตินัย\nนิติบัญญัติ\nนิติบุคคล\nนิติภาวะ\nนิติวิทยาศาสตร์\nนิติเวช\nนิติเวชศาสตร์\nนิติศาสตร์\nนิเทศศาสตร์\nนิ่มนวล\nนิรุกติศาสตร์\nนิเวศวิทยา\nนิศากร\nนิศากาล\nนิศาชล\nนิศารัตน์\nนี่แน่ะ\nนี่แหละ\nนี่เอง\nนึกคิด\nนุงถุง\nนุ่งห่ม\nนุ่มนวล\nนุ่มนิ่ม\nเนตรนารี\nเนติบัณฑิต\nเนยเทียม\nเนยใส\nเนิ่นนาน\nเนิบนาบ\nเนื้อความ\nเนื้อคู่\nเนื้อเค็ม\nเนื้องอก\nเนื้อตัว\nเนื้อตาย\nเนื้อที่\nเนื้อแท้\nเนื้อเปื่อย\nเนื้อผ้า\nเนื้อเพลง\nเนื้อไม้\nเนื้อเยื่อ\nเนื้อร้อง\nเนื้อร้าย\nเนื้อเรื่อง\nเนื้อหา\nเนืองนอง\nเนืองนิตย์\nเนืองแน่น\nแน่ใจ\nแน่ชัด\nแน่แท้\nแน่นอน\nแน่นิ่ง\nแน่แน่ว\nแน่นแฟ้น\nแน่นหนา\nแนบเนียน\nแนบแน่น\nแนวคิด\nแนวทาง\nแนวโน้ม\nแนวป่า\nแนวรบ\nแนวร่วม\nแนวหน้า\nแนวหลัง\nแน่วแน่\nแนะนำ\nแนะแนว\nโน้มน้าว\nในหลวง\nบกพร่อง\nบงกช\nบงการ\nบดบัง\nบทกลอน\nบทกวี\nบทความ\nบทคัดย่อ\nบทเฉพาะกาล\nบทนำ\nบทบัญญัติ\nบทบาท\nบทประพันธ์\nบทเพลง\nบทร้อง\nบทเรียน\nบทลงโทษ\nบทสนทนา\nบทอัศจรรย์\nบทจร\nบทบงสุ์\nบทมาลย์\nบทรัช\nบทเรศ\nบทวลัญช์\nบนบาน\nบรมครู\nบรมธาตุ\nบรมบพิตร\nบรมวงศานุวงศ์\nบรมอัฐิ\nบรรณพิภพ\nบรรณศาลา\nบรรณาการ\nบรรณาธิการ\nบรรณานุกรม\nบรรณารักษ์\nบรรณารักษศาสตร์\nบรรดามี\nบรรดาศักดิ์\nบรรทัดฐาน\nบรรพบุรุษ\nบรรลัยกัลป์\nบรรลัยจักร\nบริคณห์สนธิ\nบวงสรวง\nบ่วงบาศ\nบ้วนพระโอษฐ์\nบ่อเกิด\nบอกกล่าว\nบอกบท\nบอกบุญ\nบอกใบ้\nบอกปัด\nบ้องกัญชา\nบ้องตื้น\nบ้องไฟ\nบ้องหู\nบอดสี\nบ่อนทำลาย\nบอบช้ำ\nบอบบาง\nบอบแบบ\nบังโกลน\nบังโคลน\nบังใบ\nบั้งไฟ\nบังคับการ\nบังคับบัญชา\nบัญชาการ\nบัณฑุกัมพล\nบัดดล\nบัดเดี๋ยว\nบัดนั้น\nบัดนี้\nบัดสีบัดเถลิง\nบัตรเครดิต\nบัตรพลี\nบัตรสนเท่ห์\nบัตรสินเชื่อ\nบั่นทอน\nบั้นท้าย\nบั้นปลาย\nบั้นพระองค์\nบั้นเอว\nบันไดลิง\nบันไดเลื่อน\nบันเทิงคดี\nบัวลอย\nบัวบก\nบ้าจี้\nบ้าดีเดือด\nบ้าน้ำลาย\nบ้าบิ่น\nบ้าระห่ำ\nบ้าเลือด\nบ้าหอบฟาง\nบากบั่น\nบากหน้า\nบางตา\nบางเบา\nบางที\nบาดเจ็บ\nบาดแผล\nบาดหมาง\nบาตรใหญ่\nบาทบงกช\nบาทบงสุ์\nบาทบริจาริกา\nบาทวิถี\nบานเกล็ด\nบานตะเกียง\nบานตะไท\nบานเบอะ\nบานปลาย\nบานแผละ\nบานพับ\nบ้านจัดสรร\nบ้านช่อง\nบ้านนอก\nบ้านพัก\nบ้านเมือง\nบ้านรับรอง\nบ้านเรือน\nบาปกรรม\nบายศรี\nบ่ายเบี่ยง\nบ่ายหน้า\nบ่าวไพร่\nบิดเบี้ยว\nบิดเบือน\nบิดพลิ้ว\nบี้แบน\nบีบคั้น\nบีบรัด\nบึ้งตึง\nบึ้งบูด\nบุกบั่น\nบุกเบิก\nบุกรุก\nบุคลิกภาพ\nบุคลิกลักษณะ\nบุญธรรม\nบุญนิธิ\nบุญฤทธิ์\nบุบสลาย\nบุ้ยใบ้\nบุรุษเพศ\nบุหงารำไป\nบู้บี้\nบูชายัญ\nบูดบึ้ง\nบูดเบี้ยว\nเบาความ\nเบาใจ\nเบาบาง\nเบาปัญญา\nเบามือ\nเบาแรง\nเบาสมอง\nเบาหวาน\nเบาโหวง\nเบ้าตา\nเบาะแส\nเบิกความ\nเบิกบาน\nเบี้ยล่าง\nเบี้ยเลี้ยง\nเบี้ยหวัด\nเบี่ยงบ่าย\nเบียดบัง\nเบียดเบียน\nเบียดเสียด\nเบื้องต้น\nเบื้องบน\nเบื้องหน้า\nเบื้องหลัง\nแบกะดิน\nแบเบาะ\nแบ่งเบา\nแบ่งปัน\nแบ่งแยก\nแบบฉบับ\nแบบแปลน\nแบบแผน\nแบบฝึกหัด\nแบบพิมพ์\nแบบสอบถาม\nแบบอย่าง\nแบะแฉะ\nแบะท่า\nโบแดง\nโบราณคดี\nโบราณวัตถุ\nโบราณสถาน\nใบขับขี่\nใบจอง\nใบตอง\nใบแทรก\nใบบอก\nใบบุญ\nใบเบิกทาง\nใบปลิว\nใบพัด\nใบโพ\nใบไม้\nใบระกา\nใบรับรอง\nใบลา\nใบเลี้ยง\nใบสั่ง\nใบสำคัญ\nใบสุทธิ\nใบเสร็จ\nใบหน้า\nใบอนุญาต\nใบระกา\nปกครอง\nปกคลุม\nปกป้อง\nปกปิด\nปฏิบัติการ\nปฏิบัติบูชา\nปฐพีวิทยา\nปฐมฌาน\nปฐมทัศน์\nปฐมเทศนา\nปฐมนิเทศ\nปฐมพยาบาล\nปฐมยาม\nปฐมฤกษ์\nปฐมวัย\nปฐมสมโพธิ\nปนเป\nป่นปี้\nปมเขื่อง\nปมเด่น\nปมด้อย\nปรนเปรอ\nปรบไก่\nปรบมือ\nปรสิตวิทยา\nประโปรย\nประพรม\nประกันชีวิต\nประกันภัย\nประจักษ์พยาน\nประจัญบาน\nประจันหน้า\nประจำการ\nประจำเดือน\nประจำเมือง\nประจำยาม\nประชดประชัน\nประชากร\nประชากรศาสตร์\nประชาคม\nประชาชน\nประชาราษฎร์\nประชาชาติ\nประชาชี\nประชาทัณฑ์\nประชาบาล\nประชาพิจารณ์\nประชาภิบาล\nประชามติ\nประชาสงเคราะห์\nประชาสัมพันธ์\nประดับประดา\nประดามี\nประดาน้ำ\nประเดี๋ยวเดียว\nประเดี๋ยวนี้\nประทับใจ\nประทุษร้าย\nประเทศราช\nประพาสต้น\nประเพณีนิยม\nประลัยกัลป์\nประวัติการณ์\nประวัติศาสตร์\nประสบการณ์\nประสบการณ์นิยม\nประสาทการ\nประสูติการ\nประสูติกาล\nประเส\nปรับทุกข์\nปรับโทษ\nปรับปรุง\nปรากฏการณ์\nปราดเปรียว\nปราดเปรื่อง\nปราบปราม\nปริญญาบัตร\nปรัยัติธรรม\nปรุโปร่ง\nปลงใจ\nปลงตก\nปลดทุกข์\nปลดปลง\nปลดปล่อย\nปลดเปลื้อง\nปลดระวาง\nปลดแอก\nปล้นสะดม\nปลอกกระสุน\nปลอกคอ\nปลอดโปร่ง\nปลอดภัย\nปลอมปน\nปลอมแปลง\nปลอบโยน\nปล่อยใจ\nปล่อยตัว\nปล่อยปละ\nปลั๊กไฟ\nปลากริม\nปลาเค็ม\nปลาจ่อม\nปลาเจ่า\nปลาแดก\nปลาตู้\nปลาทอง\nปลาร้า\nปลาส้ม\nปลาดาว\nปลาบิน\nปลาฝา\nปลาวาฬ\nปลาหมึก\nปลาบปลื้ม\nปลายข้าว\nปลายแถว\nปลายทาง\nปลิ้นปลอก\nปลิ้นปล้อน\nปลีกตัว\nปลีกย่อย\nปลุกใจ\nปลุกปล้ำ\nปลุกปั่น\nปลุกระดม\nปลุกเสก\nปลูกฝัง\nปลูกสร้าง\nปวดถ่วง\nปวดมวน\nปวดร้าว\nป่วนปั่น\nป่วยการ\nปอกลอก\nป้องกัน\nปักใจ\nปักดำ\nปักหลัก\nปัจเจกบุคคล\nปัจเจกพุทธะ\nปัจเจกโพธิ\nปัจฉิมชน\nปัจฉิมทิศ\nปัจฉิมภาค\nปัจฉิมยาม\nปัจฉิมลิขิต\nปัจฉิมวัย\nปัจฉิมวาจา\nปัญญาชน\nปัญญาวิมุติ\nปัญญาอ่อน\nปัดเป่า\nปันส่วน\nปั่นป่วน\nปั่นแปะ\nปั่นหัว\nปั้นจิ้ม\nปั้นเจ๋อ\nปั้นปึ่ง\nปั้นสิบ\nปั๊มน้ำมัน\nป่าช้า\nป่าชายเลน\nป่าดง\nป่าดงดิบ\nป่าดิบ\nป่าเถื่อน\nป่าเบญจพรรณ\nป่าละเมาะ\nปากกา\nปากขอ\nปากแข็ง\nปากคอ\nปากคำ\nปากคีบ\nปากจัด\nปากน้ำ\nปากเปล่า\nปากเสียง\nปานกลาง\nป่านนี้\nป้านลม\nป้ายสี\nป่าวร้อง\nปิดฉาก\nปิดบัง\nปิตุฆาต\nปิตุภูมิ\nปีมะโว้\nปีแสง\nปี่กลาง\nปี่ไฉน\nปี่ชวา\nปี่นอก\nปี่ใน\nปี่พาทย์\nปี่อ้อ\nปีกกา\nปีนเกลียว\nปีนป่าย\nปึกแผ่น\nปึงปัง\nปืนกล\nปืนครก\nปืนพก\nปืนยา\nปืนยาว\nปืนลม\nปืนเล็ก\nปืนเล็กยาว\nปืนสั้น\nปืนใหญ่\nปุบปับ\nปุ๊บปั๊บ\nปุ่มเปือก\nปุยฝ้าย\nปุ๋ยคอก\nปุ๋ยเคมี\nปุ๋ยวิทยาศาสตร์\nปุ๋ยหมัก\nปุ๋ยอินทรีย์\nปูจ๋า\nปูเสฉวน\nปู่เจ้า\nปู่ทวด\nปูนขาว\nปูนซีเมนต์\nปูนดิบ\nปูนแดง\nปูนปลาสเตอร์\nปูนปั้น\nเป็ดเทศ\nเป็ดน้ำ\nเป็นกลาง\nเป็นใจ\nเป็นต้น\nเป็นต่อ\nเป็นรอง\nเป็นไร\nเป็นลม\nเป็นห่วง\nเป็นอยู่\nเปรมปรีดิ์\nเปรอะเปื้อน\nเปรียบเทียบ\nเปรียบเปรย\nเปรี้ยวปาก\nเปรี้ยวหวาน\nเปรื่องปราด\nเปลญวน\nเปล่งปลั่ง\nเปล่าดาย\nเปล่าเปลี่ยว\nเปลี่ยนใจ\nเปลี่ยนตัว\nเปลี่ยนแปลง\nเปลี่ยนมือ\nเปลี่ยนหน้า\nเป๋อเหลอ\nเปะปะ\nเป่ากบ\nเป้านิ่ง\nเป้าหมาย\nเปิดฉาก\nเปิดเปิง\nเปิดโปง\nเปิดผนึก\nเปิดเผย\nเปียกปูน\nแป้งสาลี\nแป้งนวล\nแป้งเปียก\nแป้งมัน\nแป้งฝุ่น\nแป้งร่ำ\nแป้งสิงคโปร์\nแป้งหมี่\nแปดปน\nแปดเปื้อน\nแปรปรวน\nแปรผัน\nแปรพักตร์\nแปรรูป\nแปรอักษร\nแปลกปลอม\nแปะโป้ง\nโป้ปด\nโปร่งแสง\nโปร่งใส\nโปรดปราน\nโปรยทาน\nโปรยปราย\nโปโลน้ำ\nผกผัน\nผกากรอง\nผงขาว\nผงชูรส\nผงซักฟอก\nผงฟู\nผดุงครรภ์\nผมไฟ\nผลพลอยได้\nผลลัพธ์\nผลัดเปลี่ยน\nผลิตผล\nผลิตภัณฑ์\nผลุบโผล่\nผสมเทียม\nผสมผสาน\nผสมผเส\nผสมพันธุ์\nผสมโรง\nผสมเสร็จ\nผ่องแผ้ว\nผ่องใส\nผ่อนคลาย\nผ่อนชำระ\nผ่อนปรน\nผ่อนผัน\nผ่อนส่ง\nผอมโซ\nผอมแห้ง\nผักชี\nผักตบชวา\nผักบุ้ง\nผังเมือง\nผัดผ่อน\nผันแปร\nผันผวน\nผ่าตัด\nผ่าเผย\nผ่าหมาก\nผ่าเหล่า\nผ้าขนหนู\nผ้าขาวม้า\nผ้าขี้ริ้ว\nผ้าเช็ดตัว\nผ้าเช็ดปาก\nผ้าเช็ดมือ\nผ้าเช็ดหน้า\nผ้าดิบ\nผ้าต่วน\nผ้าไตร\nผ้าถุง\nผ้าแถบ\nผ้านวม\nผ้านุ่ง\nผ้าใบ\nผ้าป่า\nผ้าป่าน\nผ้าผ่อน\nผ้าพันคอ\nผ้าพันแผล\nผ้าแพร\nผ้าโพกหัว\nผ้ามัดหมี่\nผ้ายาง\nผ้าลูกไม้\nผ้าเหลือง\nผ้าอนามัย\nผ้าอ้อม\nผาดโผน\nผาติกรรม\nผิดหวัง\nผิวเผิน\nผิวพรรณ\nผิวหนัง\nผีกระสือ\nผีกระหัง\nผีกองกอย\nผีโขมด\nผีดิบ\nผีตองเหลือง\nผีถ้วยแก้ว\nผีแถน\nผีทะเล\nผีบุญ\nผีปอบ\nผีพุ่งไต้\nผีฟ้า\nผีเรือน\nผีสาง\nผีเสื้อ\nผีห่า\nผึ่งผาย\nผุดผ่อง\nผุดผาด\nผู้คน\nผู้คุม\nผู้จัดการ\nผู้ชาย\nผู้เชี่ยวชาญ\nผู้ดี\nผู้โดยสาร\nผู้ต้องขัง\nผู้ต้องหา\nผู้แทน\nผู้น้อย\nผู้บริโภค\nผู้บังคับบัญชา\nผู้ปกครอง\nผู้ประกอบการ\nผู้ป่วย\nผู้พิพากษา\nผู้เยาว์\nผู้ร้าย\nผู้วิเศษ\nผู้สื่อข่าว\nผู้เสียหาย\nผู้หญิง\nผู้ใหญ่\nผู้ใหญ่บ้าน\nผูกขวัญ\nผูกขาด\nผูกพัน\nผูกมัด\nเผชิญหน้า\nเผด็จการ\nเผด็จศึก\nเผยแผ่\nเผยแพร่\nเผละผละ\nเผ่าพันธุ์\nเผื่อแผ่\nแผงลอย\nแผนการ\nแผนงาน\nแผนที่\nแผนผัง\nแผนภาพ\nแผนภูมิ\nแผ่นดิน\nแผ่นเสียง\nแผ้วพาน\nโผงผาง\nฝนทอง\nฝอยทอง\nฝักแค\nฝักบัว\nฝักฝ่าย\nฝักใฝ่\nฝังใจ\nฝังหัว\nฝาชี\nฝาแฝด\nฝาละมี\nฝ่าพระบาท\nฝ่าฝืน\nฝ่าฟัน\nฝ้าฟาง\nฝากตัว\nฝากฝัง\nฝีดาษ\nฝีมะม่วง\nฝีจักร\nฝีเท้า\nฝีปาก\nฝีพาย\nฝีมือ\nฝีเย็บ\nฝึกงาน\nฝึกปรือ\nฝึกฝน\nฝึกสอน\nฝึกหัด\nฝืดเคือง\nใฝ่ฝัน\nพงพี\nพงศ์พันธุ์\nพญาโศก\nพญาไฟ\nพบปะ\nพบพาน\nพรสวรรค์\nพรมคด\nพรมแดน\nพรมมิ\nพรรคพวก\nพรรณราย\nพรวดพราด\nพรหมชาติ\nพรหมลิขิต\nพรหมโลก\nพรหมวิหาร\nพร้อมใจ\nพร้อมพรั่ง\nพร้อมเพรียง\nพร้อมมูล\nพร้อมสรรพ\nพร้อมหน้า\nพระครู\nพระคุณ\nพระเคราะห์\nพระเครื่อง\nพระเจ้า\nพระเจ้าอยู่หัว\nพระชายา\nพระทัย\nพระนาง\nพระนางเจ้า\nพระเป็นเจ้า\nพระผู้เป็นเจ้า\nพระพิมพ์\nพระพุทธเจ้า\nพระพุทธองค์\nพระภูมิ\nพระยา\nพระรอง\nพระสนม\nพระสนมเอก\nพระองค์\nพระองค์เจ้า\nพระเอก\nพรั่งพร้อม\nพรั่งพรู\nพรั่นพรึง\nพร่างพราว\nพรายน้ำ\nพรายแพรว\nพราวแพรว\nพร่ำพลอด\nพร่ำเพรื่อ\nพร่ำเพ้อ\nพริกไทย\nพริ้งพราย\nพริ้งเพรา\nพริ้งเพริศ\nพริบตา\nพริ้มพราย\nพริ้มเพรา\nพรุ่งนี้\nพฤติกรรม\nพฤติการณ์\nพฤตินัย\nพลการ\nพลขับ\nพลความ\nพลเมือง\nพลรบ\nพลร่ม\nพลเรือน\nพลโลก\nพลศึกษา\nพลบค่ำ\nพลอดรัก\nพลังงาน\nพลังเงียบ\nพลังจิต\nพลั้งปาก\nพลั้งเผลอ\nพลั้งพลาด\nพลัดถิ่น\nพลัดพราก\nพลาดท่า\nพลาดพลั้ง\nพลิกแพลง\nพลีกรรม\nพลุ่งพล่าน\nพวกพ้อง\nพวงมาลัย\nพวงมาลา\nพวงหรีด\nพวงคราม\nพวงชมพู\nพวงแสด\nพ่วงพี\nพวยน้ำ\nพวยพุ่ง\nพสกนิกร\nพหุคูณ\nพหุภาคี\nพหูพจน์\nพหูสูต\nพอควร\nพอใจ\nพอใช้\nพอใช้ได้\nพอดี\nพอตัว\nพอทำเนา\nพอประมาณ\nพอเพียง\nพอแรง\nพอสมควร\nพอเหมาะ\nพ่อขุน\nพ่อครัว\nพ่อตา\nพ่อบ้าน\nพ่อพันธุ์\nพ่อม่าย\nพ่อเมือง\nพ่อเลี้ยง\nพ่อสื่อ\nพอกพูน\nพ้องพาน\nพักผ่อน\nพักพิง\nพักฟื้น\nพักร้อน\nพักแรม\nพัดยศ\nพัดลม\nพันพัว\nพับฐาน\nพับเพียบ\nพัวพัน\nพาซื่อ\nพาดพิง\nพิณพาทย์\nพิธีกร\nพิธีกรรม\nพิธีการ\nพิธีรีตอง\nพิธีสาร\nพินัยกรรม\nพิมพ์เขียว\nพิมพ์ใจ\nพิมพ์ดีด\nพิษสง\nพี่น้อง\nพี่เบิ้ม\nพี่เลี้ยง\nพึงใจ\nพึงพอใจ\nพึ่งพา\nพึ่งพิง\nพืชพันธุ์\nพืชมงคล\nพื้นฐาน\nพื้นที่\nพื้นบ้าน\nพื้นเพ\nพื้นเมือง\nพื้นเสีย\nพุพอง\nพุทธกาล\nพุทธคุณ\nพุทธจักร\nพุทธเจดีย์\nพุทธฎีกา\nพุทธปฏิมา\nพุทธปฏิมากร\nพุทธมามกะ\nพุทธศักราช\nพุทธศาสนิกชน\nพุทธองค์\nพุทธชาด\nพุทธรักษา\nพุ่มพวง\nพุ่มไม้\nพู่กัน\nพูดจา\nเพ่งเล็ง\nเพดานบิน\nเพดานปาก\nเพริศพราย\nเพริศพริ้ง\nเพริศแพร้ว\nเพรียกพร้อง\nเพรียวลม\nเพลงเชิด\nเพลงยาว\nเพลิงกัลป์\nเพลินใจ\nเพลินตา\nเพลี่ยงพล้ำ\nเพ้อฝัน\nเพาะกาย\nเพาะชำ\nเพาะปลูก\nเพิกถอน\nเพิกเฉย\nเพิ่มเติม\nเพิ่มพูน\nเพียงตา\nเพียงพอ\nเพียบแประ\nเพียบพร้อม\nเพื่อนเกลอ\nเพื่อนตาย\nเพื่อนบ้าน\nเพื่อนฝูง\nเพื่อนยาก\nแพ้ท้อง\nแพร่หลาย\nแพร่งพราย\nแพรวพราว\nโพธิญาณ\nโพธิบัลลังก์\nโพธิสมภาร\nโพธิสัตว์\nโพ้นทะเล\nโพยภัย\nไพ่ตาย\nไพ่ป๊อก\nไพรวัน\nไพรสณฑ์\nไพรสัณฑ์\nไพร่พล\nไพร่ฟ้า\nไพร่สม\nไพร่ส่วย\nไพร่หลวง\nฟกช้ำ\nฟองเต้าหู้\nฟองน้ำ\nฟองมัน\nฟ้องกลับ\nฟ้องร้อง\nฟอนเฟะ\nฟักทอง\nฟัดเฟียด\nฟันดาบ\nฟันฝ่า\nฟันแท้\nฟันน้ำนม\nฟันปลา\nฟันฟาง\nฟันเฟือง\nฟันม้า\nฟันเลื่อย\nฟันหนู\nฟั่นเฝือ\nฟั่นเฟือน\nฟื้นตัว\nฟื้นฝอย\nฟื้นฟู\nฟุ้งซ่าน\nฟุ้งเฟ้อ\nฟุ้งเฟื่อง\nฟุตบอล\nฟูฟ่อง\nฟูเฟื่อง\nฟูมฟัก\nฟูมฟาย\nเฟะฟะ\nเฟื่องฟ้า\nเฟื่องฟุ้ง\nเฟื่องฟู\nไฟฉาย\nไฟแช็ก\nไฟธาตุ\nไฟฟ้า\nภัตกิจ\nภาคทัณฑ์\nภาคพื้น\nภาคเรียน\nภาคภูมิ\nภาพถ่าย\nภาพนิ่ง\nภาพประกอบ\nภาพพจน์\nภาพยนตร์\nภาพลวงตา\nภาพลักษณ์\nภายนอก\nภายใน\nภายหน้า\nภายหลัง\nภารกิจ\nภารธุระ\nภารโรง\nภารตวิทยา\nภาษาศาสตร์\nภาสกร\nภิญโญภาพ\nภินชาติ\nภูธร\nภูธเรศ\nภูบาล\nภูเบศ\nภูเบศวร์\nภูเขา\nภูเขาไฟ\nภูผา\nภูตคาม\nภูตบดี\nภูตรูป\nภูเตศวร\nภูมินทร์\nภูมิบาล\nภูมิประเทศ\nภูมิภาค\nภูมิรัฐศาสตร์\nภูมิลำเนา\nภูมิศาสตร์\nภูมิอากาศ\nภูมิธรรม\nภูมิปัญญา\nภูมิรู้\nภูมิใจ\nภูมิฐาน\nภูมิคุ้มกัน\nภูมิแพ้\nภูษาโยง\nเภทภัย\nเภสัชกร\nเภสัชกรรม\nเภสัชวิทยา\nเภสัชศาสตร์\nโภคทรัพย์\nโภคภัณฑ์\nโภชนากร\nโภชนาการ\nมกุฎราชกุมาร\nมงคลแฝด\nมงคลสูตร\nมงคลหัตถี\nมณเฑียรบาล\nมดดำ\nมดแดง\nมดเท็จ\nมดยอบ\nมดลูก\nมธุปายาส\nมธุรส\nมนเทียรบาล\nมนุษย์กบ\nมโนกรรม\nมโนคติ\nมโนทุจริต\nมโนธรรม\nมโนภาพ\nมโนมัย\nมโนรถ\nมโนรมย์\nมโนสุจริต\nมรรคนายก\nมรรคผล\nมฤคชาติ\nมฤคทายวัน\nมฤคราช\nมลทิน\nมลพิษ\nมลสาร\nมวกเหล็ก\nม้วนหน้า\nมวยไทย\nมวยปล้ำ\nมวยล้ม\nมวยวัด\nมวยสากล\nมวยหมู่\nมวลสาร\nมอคราม\nมอซอ\nมอหมึก\nมองเมียง\nมอบตัว\nมอบหมาย\nมอมเมา\nมะขามเทศ\nมะขามป้อม\nมะขามเปียก\nมะเขือเทศ\nมะเขือพวง\nมะพร้าวแก้ว\nมักคุ้น\nมักจี่\nมักง่าย\nมักน้อย\nมักมาก\nมักใหญ่\nมั่งคั่ง\nมั่งมี\nมัจจุราช\nมัชฌิมนิกาย\nมัชฌิมประเทศ\nมัชฌิมยาม\nมัชฌิมวัย\nมัดจำ\nมัดหมี่\nมัธยมกาล\nมัธยมศึกษา\nมันแกว\nมันเทศ\nมันฝรั่ง\nมันเปลว\nมันสมอง\nมั่นคง\nมั่นใจ\nมั่นหมาย\nมั่นเหมาะ\nมัวเมา\nมัวหมอง\nมั่วสุม\nม้าเทศ\nม้าน้ำ\nม้ามืด\nม้าเร็ว\nม้าล่อ\nม้าลาย\nมากมาย\nมาตรการ\nมาตรฐาน\nมาตราส่วน\nมาตุคาม\nมาตุฆาต\nมาตุภูมิ\nม่านตา\nม่านบังตา\nมายากร\nมายากล\nมายาการ\nมายาวี\nมารผจญ\nมารวิชัย\nมารสังคม\nมารหัวขน\nมาลาการ\nมิ่งขวัญ\nมิ่งมิตร\nมิจฉาจาร\nมิจฉาชีพ\nมิดชิด\nมิดเมี้ยน\nมิดหมี\nมิตรจิต\nมิตรภาพ\nมิตรสหาย\nมิน่า\nมีหน้า\nมีดโกน\nมีดดาบ\nมีดโต้\nมีดพก\nมีดพับ\nมีดสั้น\nมึนงง\nมึนชา\nมึนตึง\nมึนเมา\nมืดครึ้ม\nมืดมน\nมืดมัว\nมือจับ\nมือดี\nมือเติบ\nมือปืน\nมือเปล่า\nมือมืด\nมือสอง\nมือเสือ\nมือหนึ่ง\nมือใหม่\nมุกตลก\nมุขปาฐะ\nมุขมนตรี\nมุ่งมั่น\nมุ่งมาด\nมุ่งหน้า\nมุ่งหมาย\nมุ่งหวัง\nมุ้งลวด\nมุ้งสายบัว\nมุมก้ม\nมุมกลับ\nมุมเงย\nมุมฉาก\nมุมตรง\nมุมป้าน\nมุมมืด\nมุมแย้ง\nมุมสะท้อน\nมุมหักเห\nมุมแหลม\nมุสาวาท\nมูกเลือด\nมูกมัน\nมูกหลวง\nมูนดิน\nมูลฐาน\nมูลนาย\nมูลนิธิ\nมูลเหตุ\nมูลค่า\nมูลฝอย\nเม็ดเงิน\nเม็ดเลือด\nเม็ดโลหิต\nเม่นทะเล\nเมรุมาศ\nเมรุราช\nเมล์อากาศ\nเมาดิบ\nเมามัน\nเมามัว\nเมามาย\nเมินเฉย\nเมียน้อย\nเมียหลวง\nเมียงมอง\nเมี่ยงลาว\nเมี่ยงส้ม\nเมื่อกี้\nเมื่อตะกี้\nเมื่อใด\nเมื่อไร\nเมื่อไหร่\nเมื่อนั้น\nเมืองขึ้น\nเมืองท่า\nเมืองนอก\nเมืองหลวง\nเมื่อยขบ\nเมื่อยล้า\nแม่กอง\nแม่กุญแจ\nแม่คุณ\nแม่งาน\nแม่เจ้า\nแม่ชี\nแม่ทัพ\nแม่นม\nแม่น้ำ\nแม่บท\nแม่บ้าน\nแม่เบี้ย\nแม่พระ\nแม่พิมพ์\nแม่เพลง\nแม่มด\nแม่ม่าย\nแม่ไม้\nแม่ยก\nแม่ยาย\nแม่ร้าง\nแม่เรือน\nแม่แรง\nแม่เล้า\nแม่เลี้ยง\nแม่สี\nแม่สื่อ\nแม่เหล็ก\nแมงมุม\nแม่นยำ\nแมลงช้าง\nแมลงวัน\nแมลงปอ\nแมลงภู่\nแมลงเม่า\nแมวเซา\nแมวน้ำ\nแมวป่า\nแมวมอง\nไม้กลัด\nไม้กวาด\nไม้กางเขน\nไม้เกาหลัง\nไม้ขีดไฟ\nไม้จิ้มฟัน\nไม้เด็ด\nไม้ตาย\nไม้ตีพริก\nไม้ที\nไม้เท้า\nไม้บรรทัด\nไม้เมตร\nไม้ระแนง\nไม้เรียว\nไม้หมอน\nไม้อัด\nไม้จัตวา\nไม้ตรี\nไม้ไต่คู้\nไม้โท\nไม้ผัด\nไม้มลาย\nไม้ม้วน\nไม้ยมก\nไม้หน้า\nไม้หันอากาศ\nไม้เอก\nยกกลีบ\nยกครู\nยกเครื่อง\nยกเค้า\nยกทรง\nยกฟ้อง\nยกเมฆ\nยกยอ\nยกย่อง\nยกเลิก\nยกเว้น\nย่นย่อ\nยมทูต\nยมบาล\nยมราช\nยมโลก\nยวดยิ่ง\nยวดยาน\nยวนยี\nยวบยาบ\nย่อท้อ\nย่อส่วน\nย่อหน้า\nย่อหย่อน\nยอกย้อน\nยองใย\nย่องเบา\nย่องแย่ง\nยอดเยี่ยม\nยอดอก\nย้อนยอก\nย้อนรอย\nย้อนศร\nย้อนแสง\nย้อนหลัง\nยอบแยบ\nยอมความ\nย่อมเยา\nย่อยยับ\nยักยอก\nยักย้าย\nยักเยื้อง\nยัญกรรม\nยัญพิธี\nยัดเยียด\nยับเยิน\nยับยั้ง\nยั่วยวน\nยั่วยุ\nยั่วเย้า\nยากวาด\nยากันยุง\nยาเขียว\nยาใจ\nยาฉุน\nยาชา\nยาซัด\nยาดอง\nยาแดง\nยาถ่าย\nยาธาตุ\nยานัตถุ์\nยาเบื่อ\nยาโป๊\nยาแฝด\nยาพิษ\nยาระบาย\nยาสลบ\nยาสั่ง\nยาสีฟัน\nยาสูบ\nยาเส้น\nยาเสพติด\nยาหม่อง\nยาเหลือง\nย่าทวด\nย่านาง\nยากแค้น\nยากจน\nยากเย็น\nยากไร้\nยางนอก\nยางใน\nยางมะตอย\nยางมะตูม\nยางลบ\nยางสน\nยางอาย\nย่างกราย\nย่างเยื้อง\nย่างสด\nย่างสามขุม\nย่างเหยียบ\nยานเกราะ\nยานพาหนะ\nยานอวกาศ\nยานคาง\nยายทวด\nยาวเฟื้อย\nยาวยืด\nยาวเหยียด\nยำทวาย\nยำใหญ่\nยำเกรง\nยำเยง\nย่ำต๊อก\nย่ำยี\nย่ำแย่\nยิงเป้า\nยิ่งนัก\nยิ่งยวด\nยิ่งใหญ่\nยินดี\nยินยอม\nยินร้าย\nยิ้มกริ่ม\nยิ้มแฉ่ง\nยิ้มแต้\nยิ้มแป้น\nยิ้มเผล่\nยิ้มเยาะ\nยิ้มแย้ม\nยียวน\nยึดครอง\nยึดถือ\nยึดมั่น\nยึดเหนี่ยว\nยืดยาด\nยืดยาว\nยืดเยื้อ\nยืดหยุ่น\nยืดอก\nยืนกราน\nยืนต้น\nยืนพื้น\nยืนยง\nยืนยัน\nยืนหยัด\nยื้อยุด\nยุยง\nยุแยง\nยุแหย่\nยุคลบาท\nยุคเข็ญ\nยุคทอง\nยุคมืด\nยุ่งขิง\nยุ่งยาก\nยุ่งเหยิง\nยุติธรรม\nยุทธการ\nยุทธนาวี\nยุทธปัจจัย\nยุทธภัณฑ์\nยุทธภูมิ\nยุทธวิธี\nยุทธศาสตร์\nยุทธหัตถี\nยุทธนาการ\nยุทธนาธิการ\nยุบยับ\nยุบยิบ\nยุพราช\nยู่ยี่\nเย็นเจี๊ยบ\nเย็นใจ\nเย็นฉ่ำ\nเย็นเฉียบ\nเย็นชา\nเย็นชืด\nเย็นตา\nเย็นเยียบ\nเย็นเยือก\nเย็นวาบ\nเย็นวูบ\nเย็บกี่\nเย็บจักร\nเย็บด้าย\nเย้ยหยัน\nเย้าหยอก\nเยาะเย้ย\nเยี่ยมกราย\nเยี่ยมเยียน\nเยี่ยมเยือน\nเยี่ยมยอด\nเยื่อเคย\nเยื่อใย\nเยือกเย็น\nเยื้องกราย\nเยื้องยัก\nเยื้องย่าง\nแยกย้าย\nแยกแยะ\nแย่งชิง\nแยบคาย\nแยบยล\nแย้มพราย\nแย้มยิ้ม\nแย้มสรวล\nโยเย\nโย้เย้\nโยกโคลง\nโยกย้าย\nโยกโย้\nโยนกลอง\nใยหิน\nรกชัฏ\nรกร้าง\nรกเรี้ยว\nรกเรื้อ\nรกราก\nรงควัตถุ\nรชนีกร\nรถกระบะ\nรถเก๋ง\nรถเข็น\nรถแข่ง\nรถจักร\nรถจี๊ป\nรถตู้\nรถทัวร์\nรถบรรทุก\nรถพ่วง\nรถพยาบาล\nรถไฟ\nรถไฟฟ้า\nรถม้า\nรถเมล์\nรถยนต์\nรถราง\nรถลาก\nรถสปอร์ต\nรถสิบล้อ\nรบกวน\nรบรา\nรบเร้า\nรมดำ\nร่มเกล้า\nร่มชูชีพ\nร่มเย็น\nร่มรื่น\nร่วงโรย\nรวงผึ้ง\nรวงรัง\nรวดเร็ว\nรวนเร\nรวบยอด\nรวบรวม\nรวบรัด\nรวมพล\nรวมหัว\nร่วมใจ\nร่วมเพศ\nร่วมมือ\nร่วมรัก\nร่วมสมัย\nรวยริน\nรวยรื่น\nรสชาติ\nรสนิยม\nรองท้อง\nรองเท้า\nรองพื้น\nร่องน้ำ\nร่องรอย\nร้องขอ\nร้องทุกข์\nร้องเรียน\nร้องห่ม\nร้องไห้\nรองช้ำ\nรองทรง\nรอดชีวิต\nรอดตัว\nรอดตาย\nรอนแรม\nร่อนเร่\nร้อนใจ\nร้อนตัว\nร้อนรน\nร้อนรุ่ม\nร้อนวิชา\nร้อนอาสน์\nรอบจัด\nรอบเดือน\nรอบรู้\nรอยร้าว\nร่อยหรอ\nร้อยละ\nร้อยกรอง\nร้อยแก้ว\nร้อยหวาย\nระนาดทุ้ม\nระนาดเอก\nระเบิดขวด\nระเบิดมือ\nระเบียบการ\nรักใคร่\nรักษาการ\nรักษาการณ์\nรังไข่\nรังแตน\nรังนก\nรังผึ้ง\nรังเพลิง\nรังมด\nรังสรรค์\nรังสฤษฏ์\nรั้งรอ\nรังสีแพทย์\nรังสีวิทยา\nรัชกาล\nรัชทายาท\nรัชนีกร\nรัฐธรรมนูญ\nรัฐบาล\nรัฐบุรุษ\nรัฐประศาสน์\nรัฐประหาร\nรัฐพิธี\nรัฐมนตรี\nรัฐวิสาหกิจ\nรัฐศาสตร์\nรัฐสภา\nรัดกุม\nรัดเกล้า\nรัดตัว\nรัดประคด\nรัดรึง\nรัดรูป\nรัตติกาล\nรับขวัญ\nรับจ้าง\nรับช่วง\nรับใช้\nรับซื้อ\nรับทราบ\nรับประกัน\nรับประทาน\nรับปาก\nรับผิด\nรับผิดชอบ\nรับฟ้อง\nรับฟัง\nรับมือ\nรับรอง\nรับรู้\nรับสมัคร\nรับสั่ง\nรับหน้า\nรับเหมา\nรั่วไหล\nรามือ\nร่าเริง\nรากแก้ว\nรากขวัญ\nรากฐาน\nรากฟัน\nรากศัพท์\nรากเหง้า\nร่างกาย\nร่างแห\nร้างรา\nราชกรณียกิจ\nราชการ\nราชกิจ\nราชครู\nราชฐาน\nราชทัณฑ์\nราชทินนาม\nราชทูต\nราชธานี\nราชนาวี\nราชบัณฑิต\nราชบัลลังก์\nราชบาตร\nราชบุตร\nราชปะแตน\nราชภัฏ\nราชมัล\nราชยาน\nราชรถ\nราชลัญจกร\nราชเลขาธิการ\nราชเลขานุการ\nราชวงศ์\nราชวัติ\nราชสกุล\nราชสมบัติ\nราชสาส์น\nราชหัตถเลขา\nราชองครักษ์\nราชโองการ\nราชาคณะ\nราชาศัพท์\nราชินีนาถ\nร้านชำ\nร้านรวง\nราบคาบ\nราบรื่น\nราบเรียบ\nรายการ\nรายงาน\nรายจ่าย\nรายได้\nรายทาง\nรายรับ\nรายล้อม\nรายละเอียด\nรายวิชา\nร่ายยาว\nร่ายรำ\nร้ายกาจ\nร้ายแรง\nราวนม\nราวป่า\nร้าวฉาน\nร้าวราน\nรำพัด\nรำแพน\nรำวง\nร่ำไป\nร่ำร้อง\nร่ำเรียน\nร่ำไร\nร่ำลา\nร่ำไห้\nริเริ่ม\nริอ่าน\nริมฝีปาก\nริ้วรอย\nรีบร้อน\nรีบรุด\nรีบเร่ง\nรื่นรมย์\nรื่นเริง\nรื้อถอน\nรื้อฟื้น\nรุกฆาต\nรุกราน\nรุกล้ำ\nรุกไล่\nรุ่งขึ้น\nรุ่งแจ้ง\nรุ่งเช้า\nรุ่งเรือง\nรุ่งโรจน์\nรุ่งสว่าง\nรุ่งสาง\nรุ่งอรุณ\nรุจิเรข\nรุดหน้า\nรุนแรง\nรุมเร้า\nรุมล้อม\nรุ่มรวย\nรุ่มร้อน\nรุ่ยร่าย\nรู้แกว\nรู้ความ\nรู้คุณ\nรู้งาน\nรู้จัก\nรู้แจ้ง\nรู้ใจ\nรู้เชิง\nรู้ตัว\nรู้ทัน\nรู้เท่า\nรู้เรื่อง\nรู้สำนึก\nรู้สึก\nรู้เห็น\nรูปการณ์\nรูปโฉม\nรูปฌาน\nรูปถ่าย\nรูปทรง\nรูปธรรม\nรูปแบบ\nรูปพรรณ\nรูปพรหม\nรูปภพ\nรูปภาพ\nรูปร่าง\nรูปสมบัติ\nเร่ร่อน\nเร่งด่วน\nเร่งมือ\nเร่งรัด\nเร่งรีบ\nเร่งเร้า\nเร้นลับ\nเร่อร่า\nเร่าร้อน\nเราะราย\nเราะร้าย\nเริงใจ\nเริงรมย์\nเริดร้าง\nเริ่มต้น\nเริ่มแรก\nเรี่ยราด\nเรี่ยไร\nเรียกคืน\nเรียกตัว\nเรียกร้อง\nเรียกหา\nเรียบร้อย\nเรียงความ\nเรียงตัว\nเรียงเบอร์\nเรียงพิมพ์\nเรียงเม็ด\nเรียงราย\nเรียนรู้\nเรียบร้อย\nเรียบเรียง\nเรียบวุธ\nเรี่ยมเร้\nเรี่ยวแรง\nเรือกลไฟ\nเรือกอและ\nเรือกำปั่น\nเรือจ้าง\nเรือดำน้ำ\nเรือโดยสาร\nเรือตรวจการณ์\nเรือตังเก\nเรือธง\nเรือนำร่อง\nเรือบด\nเรือบิน\nเรือใบ\nเรือประมง\nเรือพ่วง\nเรือพิฆาต\nเรือยนต์\nเรือยาว\nเรือโยง\nเรือรบ\nเรือลากจูง\nเรือสำปั้น\nเรือสำเภา\nเรือหลวง\nเรือหางยาว\nเรืออีโปง\nเรือเอี้ยมจุ๊น\nเรื้อรัง\nเรือกสวน\nเรืองนาม\nเรืองรอง\nเรืองแสง\nเรื่องราว\nเรื่องสั้น\nเรือนแก้ว\nเรือนจำ\nเรือนเบี้ย\nเรือนแพ\nเรือนหอ\nเรื่อยเจื้อย\nเรื่อยเฉื่อย\nเรื่อยเปื่อย\nแรเงา\nแรกนา\nแรกนาขวัญ\nแรงงาน\nแรงดึงดูด\nแรงเทียน\nแรงม้า\nแรงเหวี่ยง\nแรมรอน\nแรมรา\nแรมโรย\nโรคจิต\nโรงครัว\nโรงงาน\nโรงเจ\nโรงเตี๊ยม\nโรงทาน\nโรงนา\nโรงพยาบาล\nโรงพัก\nโรงพิมพ์\nโรงเรียน\nโรงเรือน\nโรงแรม\nโรงเลี้ยง\nโรงเลื่อย\nโรงสี\nโรงสีข้าว\nโรงอาหาร\nโรมรัน\nโรยรา\nฤชากร\nฤดูกาล\nลงขัน\nลงแขก\nลงคอ\nลงตัว\nลงท้าย\nลงทุน\nลงโทษ\nลงพุง\nลงมือ\nลงรัก\nลงรอย\nลงแรง\nลงโรง\nลงเอย\nลดตัว\nลดละ\nลดเลี้ยว\nลดหย่อน\nลดหลั่น\nลนลาน\nล้นพ้น\nล้นหลาม\nล้นเหลือ\nลบล้าง\nลบเลือน\nลบหลู่\nลมกรด\nลมค้า\nลมงวง\nลมแดด\nลมทะเล\nลมบก\nลมบน\nลมบ้าหมู\nลมปราณ\nลมปาก\nลมพิษ\nลมว่าว\nลมเสีย\nลมหนาว\nลมหายใจ\nล่มจม\nล่มสลาย\nล้มละลาย\nล้มลุก\nล้มเลิก\nล่วงเกิน\nล่วงรู้\nล่วงละเมิด\nล่วงลับ\nล่วงล้ำ\nล่วงเลย\nล่วงหน้า\nลวดลาย\nลวดสปริง\nลวดหนาม\nล้วนแล้ว\nลหุโทษ\nล่อลวง\nล่อหลอก\nล่อแหลม\nล้อต๊อก\nล้อเลื่อน\nล้อเล่น\nล้อเลียน\nล้อหลอก\nลองเชิง\nลองดี\nลองภูมิ\nล่องหน\nลอดช่อง\nล่อนจ้อน\nลอบกัด\nล้อมวง\nลอยแก้ว\nลอยชาย\nลอยตัว\nลอยนวล\nลอยแพ\nลอยลำ\nละทิ้ง\nละเลย\nละเว้น\nละครนอก\nละครใน\nละครเพลง\nละครร้อง\nละครรำ\nละครลิง\nละครสัตว์\nละเอียดอ่อน\nลักไก่\nลักพา\nลักเพศ\nลักยิ้ม\nลักลอบ\nลักลั่น\nลักหลับ\nลัดเลาะ\nลับตา\nลับแล\nลับหลัง\nลาออก\nล่าช้า\nล่าทัพ\nล้าสมัย\nล้าหลัง\nลากข้าง\nล้างบาง\nล้างผลาญ\nลาดเขา\nลาดตระเวน\nลาดเท\nลาดยาง\nลานบิน\nลาภปาก\nลาภลอย\nลามปาม\nลามเลีย\nลายคราม\nลายเซ็น\nลายแทง\nลายน้ำ\nลายพร้อย\nลายมือ\nลายลักษณ์\nลายเส้น\nลำกล้อง\nลำแข้ง\nลำธาร\nลำแสง\nลำไส้\nลำตัด\nลำนำ\nล่ำสัน\nล้ำยุค\nล้ำสมัย\nล้ำลึก\nล้ำเลิศ\nล้ำเส้น\nล้ำหน้า\nลิงจุ่น\nลิงลม\nลิงโลด\nลิดรอน\nลิ้นไก่\nลิ้นชัก\nลิ้นปี่\nลิ้นควาย\nลิ้นงูเห่า\nลิ้นหมา\nลิบลับ\nลิบลิ่ว\nลิ่มเลือด\nลี้ภัย\nลี้ลับ\nลึกซึ้ง\nลึกลับ\nลึกล้ำ\nลืมตน\nลืมต้น\nลืมตัว\nลืมตา\nลืมเลือน\nลือชา\nลือชื่อ\nลือลั่น\nลุล่วง\nลุกลน\nลุกลาม\nลุกลี้ลุกลน\nลุกฮือ\nลุ่มน้ำ\nลุ่มลึก\nลุ่มหลง\nลุ่ทาง\nลูกกรง\nลูกกรอก\nลูกกรุง\nลูกกลอน\nลูกกลิ้ง\nลูกกวาด\nลูกกะจ๊อก\nลูกกุญแจ\nลูกเกด\nลูกแก้ว\nลูกขนไก่\nลูกข่าง\nลูกขุน\nลูกเขย\nลูกครึ่ง\nลูกคลื่น\nลูกความ\nลูกคอ\nลูกค้า\nลูกคิด\nลูกคู่\nลูกจ้าง\nลูกช้าง\nลูกชิด\nลูกชิ้น\nลูกชุบ\nลูกซอง\nลูกโซ่\nลูกดอก\nลูกดิ่ง\nลูกตะกั่ว\nลูกตุ้ม\nลูกเต้า\nลูกเต๋า\nลูกถ้วย\nลูกทุ่ง\nลูกเธอ\nลูกน้อง\nลูกน้ำ\nลูกนิมิต\nลูกบอล\nลูกบ้าน\nลูกบาศก์\nลูกบิด\nลูกเบี้ยว\nลูกประคบ\nลูกประคำ\nลูกปัด\nลูกปืน\nลูกโป่ง\nลูกผสม\nลูกผู้ชาย\nลูกผู้หญิง\nลูกพรรค\nลูกพี่\nลูกฟูก\nลูกไฟ\nลูกมือ\nลูกโม่\nลูกไม้\nลูกยาเธอ\nลูกรอก\nลูกรัง\nลูกเรือ\nลูกล้อ\nลูกลอย\nลูกเล่น\nลูกเลี้ยง\nลูกโลก\nลูกวัด\nลูกศร\nลูกศิษย์\nลูกสมุน\nลูกสะใภ้\nลูกสูบ\nลูกเสือ\nลูกหนัง\nลูกหนี้\nลูกหนู\nลูกหมาก\nลูกหลง\nลูกหลาน\nลูกหาบ\nลูกหิน\nลูกเห็บ\nลูกเหม็น\nลูกแหง่\nลูกอม\nลูกหม้อ\nลูบคม\nลูบคลำ\nลูบไล้\nเล็กน้อย\nเลขคณิต\nเลขผา\nเลขหมาย\nเล็ดลอด\nเล่นงาน\nเล่นแง่\nเล่นชู้\nเล่นตัว\nเล่นลิ้น\nเล่นหัว\nเลนส์นูน\nเลนส์เว้า\nเล็บครุฑ\nเลยเถิด\nเลศนัย\nเล่ห์กล\nเล่ห์เหลี่ยม\nเลอโฉม\nเลอมาน\nเลอเลิศ\nเลอสรวง\nเล่อล่า\nเลอะเลือน\nเล่าเรียน\nเล่าลือ\nเลาะลัด\nเลิกรา\nเลิกร้าง\nเลิกล้ม\nเลิศเลอ\nเลี้ยงชีพ\nเลี้ยงดู\nเลี้ยงต้อย\nเลียบเคียง\nเลี้ยวลด\nเลือกตั้ง\nเลือกเฟ้น\nเลือกสรร\nเลื่องลือ\nเลือดกำเดา\nเลือดเนื้อ\nเลือดฝาด\nเลือดเย็น\nเลือดร้อน\nเลือดหมู\nเลือดอุ่น\nเลือนราง\nเลื่อนเปื้อน\nเลื่อนลอย\nเลื่อมพราย\nเลื่อมใส\nเลื่อยฉลุ\nเลื่อยลันดา\nเลื่อยวงเดือน\nเลื้อยคลาน\nแลเหลียว\nแลกเปลี่ยน\nแล้วกัน\nและเล็ม\nโล่งใจ\nโล่งโถง\nโล่งอก\nโลดเต้น\nโลดโผน\nโลดลิ่ว\nโลดแล่น\nไล่ที่\nไล่เบี้ย\nไล่เลี่ย\nไล่เลียง\nไล่หลัง\nไล่ออก\nวกวน\nวงกบ\nวงกลม\nวงการ\nวงแขน\nวงเงิน\nวงจร\nวงนอก\nวงใน\nวงรี\nวงเล็บ\nวงเวียน\nวงแหวน\nวงศ์วาน\nวจีกรรม\nวจีเภท\nวจีภาค\nวนเวียน\nวอดวาย\nว็อบแว็บ\nวังวน\nวังหน้า\nวังหลวง\nวังหลัง\nวัดราษฎร์\nวัดวา\nวัดหลวง\nวัดผล\nวัดพื้น\nวัตถุนิยม\nวัตถุประสงค์\nวัตรปฏิบัติ\nวันโกน\nวันพระ\nวันเพ็ญ\nวัยรุ่น\nวัยวุฒิ\nว่ากล่าว\nว่าจ้าง\nว่าด้วย\nว่าที่\nวางก้าม\nวางใจ\nวางตัว\nวางตา\nวางโต\nวางท่า\nวางมวย\nวางมาด\nวางมือ\nวางวาย\nว่างเปล่า\nว่างเว้น\nวาดเขียน\nว่านเครือ\nวาบหวาม\nวายชนม์\nวายปราณ\nวายวาง\nวายวอด\nวายร้าย\nวายุภักษ์\nวาววับ\nวาววาม\nวาวแวว\nวาวแสง\nวิกฤตการณ์\nวิกฤติการณ์\nวิกฤตกาล\nวิกฤติกาล\nวิกลจริต\nวิงเวียน\nวิ่งเต้น\nวิ่งผลัด\nวิ่งรอก\nวิ่งราว\nวิจิตรศิลป์\nวิชาการ\nวิชาชีพ\nวิชาธร\nวิญญูชน\nวิดพื้น\nวิตกจริต\nวิถีทาง\nวิทยากร\nวิทยากล\nวิทยาการ\nวิทยาเขต\nวิทยาทาน\nวิทยาธร\nวิทยานิพนธ์\nวิทยาศาสตร์\nวิเทศสัมพันธ์\nวิธีการ\nวินัยธร\nวินัยปิฎก\nวินาศกรรม\nวินาศภัย\nวินาศสันตะโร\nวิภัชพยากรณ์\nวิภัชวาที\nวิไลวรรณ\nวิสัญญีแพทย์\nวิสัญญีภาพ\nวิสัญญีวิทยา\nวุฒิบัตร\nวุฒิสภา\nวุฒิสมาชิก\nวุ่นวาย\nวุ้นเส้น\nวูบวาบ\nเวจกุฎี\nเวจมรรค\nเวชกรรม\nเวชภัณฑ์\nเวชศาสตร์\nเวทมนตร์\nเวนคืน\nเวรกรรม\nเวฬุการ\nเวฬุวัน\nเว้าวอน\nเวิ้งว้าง\nเวียงวัง\nเวียนเทียน\nแว้งกัด\nแวดล้อม\nแวดวง\nแว่นขยาย\nแว่นแคว้น\nแว่นตา\nแวบวับ\nแววตา\nแวววาม\nแวววาว\nแวะเวียน\nโวยวาย\nไวไฟ\nไว้ใจ\nไว้ชื่อ\nไว้ตัว\nไว้ทุกข์\nไว้ลาย\nไว้หน้า\nไว้อาลัย\nศนิวาร\nศอกกลับ\nศอกกำ\nศอกกำมา\nศักดิ์ศรี\nศักดิ์สิทธิ์\nศารทวิษุวัติ\nศาลแขวง\nศาลจังหวัด\nศาลชั้นต้น\nศาลฎีกา\nศาลเตี้ย\nศาลทหาร\nศาลปกครอง\nศาลพระภูมิ\nศาลเพียงตา\nศาลแพ่ง\nศาลรัฐธรรมนูญ\nศาลแรงงาน\nศาลล้มละลาย\nศาลโลก\nศาลสูง\nศาลสูงสุด\nศาลอาญา\nศาลอุทธรณ์\nศาลากลาง\nศาลาดิน\nศาลาราย\nศาลาวัด\nศิลาฤกษ์\nศิลาแลง\nศิษย์เก่า\nศิษย์เอก\nศีลจุ่ม\nศีลธรรม\nศีลวัต\nศีลอด\nศูนย์กลาง\nศูนย์การค้า\nศูนย์ถ่วง\nศูนย์สูตร\nศูนย์หน้า\nเศร้าใจ\nเศร้าโศก\nเศร้าสร้อย\nเศร้าสลด\nเศร้าหมอง\nเศวตฉัตร\nเศษเกิน\nเศษซ้อน\nเศษวรรค\nเศษส่วน\nเศษเหล็ก\nโศกนาฏกรรม\nโศกศัลย์\nโศกเศร้า\nโศกสลด\nสกลโลก\nส่งเดช\nส่งท้าย\nส่งเสริม\nส่งเสีย\nส่งเสียง\nสงบเงียบ\nสงบเสงี่ยม\nสง่างาม\nสง่าราศี\nสดชื่น\nสดใส\nสตรีเพศ\nสติปัญญา\nสถลมารค\nสถานกงสุล\nสถานที่\nสถานทูต\nสถานการณ์\nสถานภาพ\nสถิติศาสตร์\nสนตะพาย\nสนใจ\nส้นตีน\nสนธิสัญญา\nสนนราคา\nสนับแข้ง\nสนับเพลา\nสนับมือ\nสนามบิน\nสนามเพลาะ\nสนิทสนม\nสนิมขุม\nสนิมสร้อย\nสนุกสนาน\nสบประมาท\nสบายใจ\nสภาพธรรม\nสมควร\nสมจริง\nสมใจ\nสมนัย\nสมน้ำหน้า\nสมประกอบ\nสมส่วน\nสมหวัง\nสมคบ\nสมทบ\nสมยอม\nสมรัก\nสมรู้\nสมสู่\nส้มฉุน\nส้มตำ\nส้มลิ้ม\nส้มกุ้ง\nส้มเช้า\nสมญานาม\nสมมติฐาน\nสมมุติฐาน\nสมมติเทพ\nสมรภูมิ\nสมัครใจ\nสมัยนิยม\nสมุทรศาสตร์\nสมุทรเสนา\nสยดสยอง\nสยองขวัญ\nสยามรัฐ\nสรรหา\nสรวมชีพ\nสรวลเส\nสร้อยเศร้า\nสร้างสรรค์\nสร้างเสริม\nสลดใจ\nสลบไสล\nสละสลวย\nสลาเหิน\nสลากภัต\nสวนครัว\nสวนป่า\nสวนสนุก\nสวนหย่อม\nส่วนกลาง\nส่วนเกิน\nส่วนตัว\nส่วนบุญ\nส่วนแบ่ง\nส่วนประกอบ\nส่วนพระองค์\nส่วนผสม\nส่วนรวม\nส่วนร่วม\nส่วนลด\nส่วนสัด\nสวมกอด\nสวมเขา\nสวมรอย\nสวยมภู\nสว่างไสว\nสวามิภักดิ์\nสวิงสวาย\nสสารนิยม\nส่อเสียด\nสอดคล้อง\nสอดแทรก\nสอดแนม\nสอบถาม\nสอบทาน\nสอบไล่\nสอบสวน\nส้อมเสียง\nสะสวย\nสะแกวัลย์\nสะแกแสง\nสะใจ\nสะเด็ดยาด\nสะเทือนใจ\nสะบัดช่อ\nสั่งสม\nสั่งสอน\nสั่งเสีย\nสังเกตการณ์\nสังคมนิยม\nสังคมวิทยา\nสังคมศาสตร์\nสังคมศึกษา\nสังคมสงเคราะห์\nสัญญาบัตร\nสัดส่วน\nสัตการ\nสัตบุรุษ\nสัตบริภัณฑ์\nสัตภัณฑ์\nสัตมหาสถาน\nสัตโลหะ\nสันเขา\nสันดอน\nสันหลัง\nสั่นเทา\nสั่นเทิ้ม\nสันติบาล\nสันติภาพ\nสันติวิธี\nสันติสุข\nสับเปลี่ยน\nสับสน\nสับหลีก\nสับหว่าง\nสัมมาคารวะ\nสัมมาชีพ\nส่าเหล้า\nสากกะเบือ\nสาทิสลักษณ์\nสาธุการ\nสาธุชน\nสาบเสือ\nสาปสรร\nสาปแช่ง\nสาปส่ง\nสามง่าม\nสามล้อ\nสามเหลี่ยม\nสามเวท\nสามัญชน\nสามัญสำนึก\nสายดิ่ง\nสายดิน\nสายตรวจ\nสายน้ำ\nสายบัว\nสายพาน\nสายฟ้า\nสายยาง\nสายยู\nสายใย\nสายรก\nสายรุ้ง\nสายล่อฟ้า\nสายลับ\nสายเลือด\nสายโลหิต\nสายวัด\nสายส่ง\nสายสวาท\nสายสะดือ\nสายสะพาย\nสายสัมพันธ์\nสายสิญจน์\nสายสืบ\nสายไหม\nสายอากาศ\nสายตา\nสายหยุด\nสารตรา\nสารประกอบ\nสารละลาย\nสารส้ม\nสารหนู\nสารทฤดู\nสาวใช้\nสาวน้อย\nสาวใหญ่\nสำนักงาน\nสำนักพิมพ์\nสำนักสงฆ์\nสำมะโนครัว\nสำเร็จรูป\nสิกขาบท\nสิงสถิต\nสิงสู่\nสิ่งก่อสร้าง\nสิ่งของ\nสิ่งปฏิกูล\nสิ่งพิมพ์\nสิ่งแวดล้อม\nสิ่งศักดิ์สิทธิ์\nสิทธิกร\nสิทธิ์ขาด\nสิทธิชัย\nสิทธิโชค\nสิทธิบัตร\nสินค้า\nสินจ้าง\nสินเชื่อ\nสินไถ่\nสินทรัพย์\nสินน้ำใจ\nสินบน\nสินแร่\nสินสมรส\nสินสอด\nสินไหม\nสิ้นเชิง\nสิ้นสุด\nสีผึ้ง\nสีลม\nสีชอล์ก\nสีถ่าน\nสีเทียน\nสีน้ำ\nสีน้ำมัน\nสีโปสเตอร์\nสีฝุ่น\nสี่เหลี่ยม\nสีหน้า\nสึกหรอ\nสืบทอด\nสืบค้น\nสืบสวน\nสืบสาว\nสืบเสาะ\nสื่อผสม\nสื่อมวลชน\nสื่อสาร\nสุกงอม\nสุกดิบ\nสุกปลั่ง\nสุกใส\nสุขนาฏกรรม\nสุขภัณฑ์\nสุขภาพ\nสุขลักษณะ\nสุขวิทยา\nสุขศาลา\nสุขศึกษา\nสุดท้าย\nสุตกวี\nสุนทรพจน์\nสุภาพชน\nสู่ขอ\nสู่รู้\nสู่สม\nสูงส่ง\nสูญเปล่า\nสูญสิ้น\nสูญเสีย\nสูญหาย\nเสสรวล\nเสแสร้ง\nเสกสรร\nเสถียรภาพ\nเส้นชัย\nเส้นตรง\nเส้นตาย\nเส้นทาง\nเส้นใย\nเส้นรุ้ง\nเส้นเลือด\nเส้นแวง\nเส้นสาย\nเส้นเสียง\nเส้นหมี่\nเส้นเอ็น\nเสบียงกรัง\nเสมอภาค\nเสมอหน้า\nเสมอเหมือน\nเสมียนตรา\nเสร็จสรรพ\nเสร็จสิ้น\nเสริมส่ง\nเสริมสร้าง\nเสริมสวย\nเสรีไทย\nเสรีธรรม\nเสรีนิยม\nเสรีภาพ\nเสาเข็ม\nเสาธง\nเสียใจ\nเสียเชิง\nเสียดาย\nเสียที\nเสียเที่ยว\nเสียเปรียบ\nเสียเปล่า\nเสียรู้\nเสียแรง\nเสียสละ\nเสียหลัก\nเสียหาย\nเสี่ยงทาย\nเสียดแทง\nเสียดแทรก\nเสียดสี\nเสี้ยนศึก\nเสี้ยนหนาม\nเสี้ยมสอน\nเสียวซ่าน\nเสียวไส้\nเสือดาว\nเสือดำ\nเสือปลา\nเสือป่า\nเสือไฟ\nเสื่อกก\nเสื่อกระจูด\nเสื่อน้ำมัน\nเสื่อลำแพน\nเสื้อกล้าม\nเสื้อกั๊ก\nเสื้อเกราะ\nเสื้อครุย\nเสื้อแสง\nเสื้อเมือง\nเสือกคลาน\nเสือกสน\nเสือกไส\nเสื่อมคลาย\nเสื่อมถอย\nเสื่อมทราม\nเสื่อมโทรม\nเสื่อมสลาย\nเสื่อมสูญ\nเสื่อมเสีย\nเสือหมอบ\nแสกหน้า\nแสดงออก\nแสเถา\nแสนกล\nแสนรู้\nแสร้งว่า\nใส่ความ\nใส่ไคล้\nใส่ใจ\nใส่ไฟ\nไส้กรอก\nไส้ไก่\nไส้ติ่ง\nไส้ศึก\nไส้อั่ว\nไส้เดือน\nไส้ตัน\nไสยเวท\nไสยศาสตร์\nหกล้ม\nหงส์หยก\nหงอนไก่\nหงอยก๋อย\nหงอยเหงา\nหงายท้อง\nหงายหลัง\nหงำเหงอะ\nหงำเหงือก\nหดหาย\nหดหู่\nหนทาง\nหนวกหู\nหน่วงเหนี่ยว\nหน่วยก้าน\nหน่อไม้\nหนองใน\nหนองแซง\nหนักข้อ\nหนักใจ\nหนักแน่น\nหนักหน่วง\nหนักหนา\nหนังกลับ\nหนังตะลุง\nหนังเรียด\nหนังสด\nหนังใหญ่\nหนังสือพิมพ์\nหนาแน่น\nหน้ากระดาน\nหน้ากาก\nหน้ากาฬ\nหน้าแข้ง\nหน้าจั่ว\nหน้าฉาน\nหน้าตัก\nหน้าตา\nหน้าต่าง\nหน้าท้อง\nหน้าทับ\nหน้าที่\nหน้าที่นั่ง\nหน้าบัน\nหน้าปัด\nหน้าผา\nหน้าผาก\nหน้าม้า\nหน้ามุข\nหน้าไม้\nหน้าเลือด\nหน้าอก\nหนามเตย\nหน่ายหนี\nหน่ายแหนง\nหนาวเหน็บ\nหนำใจ\nหนี้สิน\nหนี้สูญ\nหนุนเนื่อง\nหนุนหลัง\nหมกมุ่น\nหมดจด\nหมอขวัญ\nหมอความ\nหมอแคน\nหมองู\nหมอดู\nหมอตำแย\nหมอทำขวัญ\nหมอนวด\nหมอผี\nหมอยา\nหมอลำ\nหมอเสน่ห์\nหม้อแกง\nหม้อตาล\nหม้อน้ำ\nหม้อแปลง\nหมองใจ\nหมองมัว\nหมองหม่น\nหมองหมาง\nหมอนขวาน\nหมอนข้าง\nหมอนทอง\nหม่อมเจ้า\nหม่อมฉัน\nหม่อมราชวงศ์\nหม่อมหลวง\nหม่อมห้าม\nหมั่นไส้\nหมาป่า\nหมาหมู่\nหมากฝรั่ง\nหมากสง\nหมากหอม\nหมากเก็บ\nหมากรุก\nหมากเม่า\nหมางใจ\nหมางเมิน\nหมาไม้\nหมายเกณฑ์\nหมายขัง\nหมายค้น\nหมายความ\nหมายจับ\nหมายใจ\nหมายตา\nหมายปล่อย\nหมายมั่น\nหมายเรียก\nหมายเลข\nหมายเหตุ\nหมิ่นเหม่\nหมึกจีน\nหมุนเวียน\nหมูแดง\nหมูป่า\nหมูแผ่น\nหมูยอ\nหมูหย็อง\nหมูหัน\nหมูแฮม\nหมู่บ้าน\nหยดย้อย\nหยอกเย้า\nหยักรั้ง\nหยักศก\nหยั่งทราบ\nหยั่งรู้\nหยั่งเสียง\nหยาบคาย\nหยาบช้า\nหยาบโลน\nหยาบหยาม\nหยิบมือ\nหยิบยก\nหยิบยืม\nหยิบหย่ง\nหยิบโหย่ง\nหริรักษ์\nหริวงศ์\nหลงผิด\nหลบฉาก\nหลบมุม\nหลวงจีน\nหลวงพ่อ\nหลวมตัว\nหล่อลื่น\nหล่อเลี้ยง\nหล่อหลอม\nหลอกลวง\nหลอกล่อ\nหลอกล้อ\nหลอดลม\nหลอดเลือด\nหลอดอาหาร\nหลอมตัว\nหลอมเหลว\nหลักการ\nหลักเกณฑ์\nหลักชัย\nหลักฐาน\nหลักทรัพย์\nหลักเมือง\nหลักลอย\nหลักสูตร\nหลักแหล่ง\nหลักแหลม\nหลังคา\nหลังเต่า\nหลั่งไหล\nหลับนก\nหลับใน\nหลากใจ\nหลากหลาย\nหลาบจำ\nหลายหลาก\nหลายแหล่\nหลุดพ้น\nหลุดลอย\nหลุดลุ่ย\nหลุมโจน\nหลุมพราง\nหวงก้าง\nหวงห้าม\nหวงแหน\nห่วงใย\nห้วงน้ำ\nหวังใจ\nหวังดี\nหวั่นกลัว\nหวั่นเกรง\nหวั่นใจ\nหวั่นวิตก\nหวั่นหวาด\nหวั่นไหว\nหวาดกลัว\nหวาดเกรง\nหวาดผวา\nหวาดเสียว\nหวาดหวั่น\nหวาดไหว\nหวานเย็น\nหว่านล้อม\nหอคอย\nหอคำ\nหอฉัน\nหอไตร\nหอประชุม\nหอพัก\nห่อหมก\nห่อเหี่ยว\nหอกซัด\nห้องเครื่อง\nห้องชุด\nห้องแถว\nห้องโถง\nห้องน้ำ\nห้องสมุด\nหอสมุด\nหอมหวน\nห้อมล้อม\nห้อยโหน\nหักล้าง\nหักหาญ\nหักห้าม\nหักเห\nหักโหม\nหักมุก\nหันเห\nหับเผย\nหัวขโมย\nหัวข้อ\nหัวขั้ว\nหัวเข่า\nหัวโขน\nหัวคะแนน\nหัวค่ำ\nหัวคิด\nหัวจุก\nหัวโจก\nหัวใจ\nหัวเทียน\nหัวนม\nหัวนอน\nหัวป่า\nหัวมุม\nหัวเรื่อง\nหัวแร้ง\nหัวใส\nหัวหน้า\nหัวหน่าว\nหัวหอก\nหัวเห็ด\nหัวไหล่\nหัวอก\nหัสดนตรี\nหัสนาฏกรรม\nหัสนิยาย\nหัสดีลิงค์\nหางเครื่อง\nหางแถว\nหางเลข\nหางว่าว\nหางเสียง\nหางเสือ\nห่างเหิน\nหาบเร่\nห้ามปราม\nห้ามล้อ\nหายตัว\nหาวนอน\nห้าวหาญ\nห้ำหั่น\nหินงอก\nหินทราย\nหินปูน\nหินย้อย\nหินอ่อน\nหินชาติ\nหินยาน\nหีบเพลง\nหีบห่อ\nหุ่นกระบอก\nหุ่นยนต์\nหุ้นลม\nหุ้นส่วน\nหุบเขา\nหุบผา\nหุบเหว\nหูกระต่าย\nหูช้าง\nหูรูด\nหูกวาง\nเหงาหงอย\nเหงื่อกาฬ\nเหตุการณ์\nเหตุผล\nเห็นแก่\nเห็นใจ\nเหน็บแนม\nเหน็บชา\nเหนียวแน่น\nเหนี่ยวนำ\nเหนี่ยวรั้ง\nเหนื่อยหน่าย\nเหมาะเจาะ\nเหมาะสม\nเหมาะเหม็ง\nเหยเก\nเหยียดหยาม\nเหล็กกล้า\nเหล็กจาร\nเหล็กใน\nเหล็กส่ง\nเหล็กเส้น\nเหล็กหล่อ\nเหล็กไหล\nเหลวแหลก\nเหลวไหล\nเหลอหลา\nเหล่ากอ\nเหลียวแล\nเหลือเกิน\nเหลือขอ\nเหลือใจ\nเหลือเชื่อ\nเหลือเฟือ\nเหลือร้าย\nเหลือล้น\nเหลือหลาย\nเหลือแหล่\nเหลือแสน\nเหลือหลอ\nเหลื่อมล้ำ\nเห่อเหิม\nเหินห่าง\nเหิมเกริม\nเหิมหาญ\nเหี้ยมเกรียม\nเหี้ยมหาญ\nเหี้ยมโหด\nเหี่ยวแห้ง\nเหือดหาย\nเหือดแห้ง\nแห่แหน\nแหนงหน่าย\nแหลกลาญ\nแหลกเหลว\nแหวกแนว\nแหวกว่าย\nโหงพราย\nโหดร้าย\nโหดเหี้ยม\nโหยหวน\nโหวงเหวง\nให้การ\nให้ท่า\nให้ท้าย\nให้ร้าย\nให้หลัง\nไหมพรม\nไหวพริบ\nอกไก่\nอกร่อง\nองค์กร\nองค์การ\nอดกลั้น\nอดทน\nอดสู\nอดอยาก\nอดออม\nอดีตกาล\nอดีตชาติ\nอดีตภพ\nอติชาตบุตร\nอธิการบดี\nอนาคตกาล\nอนิจกรรม\nอนุชาตบุตร\nอเนกประสงค์\nอบรม\nอบอวล\nอบอ้าว\nอบอุ่น\nอบายภูมิ\nอบายมุข\nอภัพบุคคล\nอภัยทาน\nอภัยโทษ\nอภิชาตบุตร\nอมยิ้ม\nอมรรัตน์\nอมฤตบท\nอมฤตรส\nอย่างไร\nอรรถกร\nอรรถกวี\nอรรถคดี\nอรรถประโยชน์\nอรรถรส\nอรรธนิศา\nอรรธภาค\nอรรธสระ\nอรสุมพล\nอรูปฌาน\nอรูปพรหม\nอรูปภพ\nอรูปภูมิ\nอวชาตบุตร\nอวดดี\nอวดอ้าง\nอ้วนท้วน\nอ้วนพี\nอวบอั๋น\nอวยชัย\nอวยพร\nอสุภกรรมฐาน\nอสุภสัญญา\nอโหสิกรรม\nออเจ้า\nออกแขก\nออกตัว\nออกโรง\nออกฤทธิ์\nออกลาย\nออกหาก\nออดอ้อน\nออดแอด\nอ่อนข้อ\nอ่อนใจ\nอ่อนช้อย\nอ่อนน้อม\nอ่อนเปลี้ย\nอ่อนเพลีย\nอ่อนโยน\nอ่อนหวาน\nอ่อนหัด\nอ่อนไหว\nอ่อนแอ\nอ้อนวอน\nอ้อนออด\nอ้อมค้อม\nอักษรศาสตร์\nอักษรสาส์น\nอัคคีภัย\nอัญชนะศักราช\nอัดฉีด\nอัดอั้น\nอัตราส่วน\nอันโตชน\nอันโตนาที\nอับจน\nอับเฉา\nอับอาย\nอัสสุชล\nอัสสุธารา\nอากัปกิริยา\nอาการนาม\nอากาศธาตุ\nอากาศยาน\nอาคารชุด\nอ่างเก็บน้ำ\nอ้างอิง\nอาจหาญ\nอาจอง\nอาชญากร\nอาชญากรรม\nอาชญาบัตร\nอาชญาสิทธิ์\nอาญาสิทธิ์\nอาณาเขต\nอาณาจักร\nอาณานิคม\nอาณาประโยชน์\nอาโปกสิณ\nอาโปธาตุ\nอาภากร\nอายุขัย\nอายุวัฒนะ\nอาโลกกสิณ\nอาหารว่าง\nอำพราง\nอิดโรย\nอิดออด\nอิดเอื้อน\nอิตถีลิงค์\nอิทธิปาฏิหาริย์\nอิทธิพล\nอิทธิฤทธิ์\nอินังขังขอบ\nอิ่มตัว\nอิ่มหนำ\nอิ่มเอม\nอิ่มเอิบ\nอีฉัน\nอีตัว\nอึงคะนึง\nอึงมี่\nอึงอล\nอึ่งยาง\nอึ่งอ่าง\nอึดใจ\nอึดอัด\nอืดอาด\nอื้อฉาว\nอื้อซ่า\nอื้ออึง\nอุกฉกรรจ์\nอุกอาจ\nอุดอู้\nอุ่นเครื่อง\nอุ่นใจ\nอุบอิบ\nอุบัติภัย\nอุบัติเหตุ\nอุโบสถกรรม\nอุโบสถหัตถี\nอุปมาโวหาร\nอุ้มชู\nอุ้มสม\nอุ้ยอ้าย\nอู้อี้\nเอกจิต\nเอกฉันท์\nเอกชน\nเอกเทศ\nเอกนัย\nเอกบุคคล\nเอกบุรุษ\nเอกพจน์\nเอกภพ\nเอกภาพ\nเอกมัย\nเอกราช\nเอกรูป\nเอกลักษณ์\nเอกศก\nเอกสาร\nเอกสิทธิ์\nเอกอุ\nเอ็ดอึง\nเอนเอียง\nเอมอร\nเอออวย\nเออออ\nเอาการ\nเอางาน\nเอาจริง\nเอาใจ\nเอาเปรียบ\nเอาเยี่ยง\nเอิบอาบ\nเอียงอาย\nเอียงเอน\nเอื้อเฟื้อ\nโอ่โถง\nโอ้โถง\nโอ่อวด\nโอ้อวด\nโอ่อ่า\nโอ้โลม\nโอดครวญ\nโอดโอย\nโอนอ่อน\nโอนเอน\nโอบอ้อม\nโอบอุ้ม\nโอสถกรรม\nไอเสีย\nไอกรน\nฮวบฮาบ\nฮาป่า\nฮึกหาญ\nฮึกห้าว\nฮึกเหิม\nฮึกโหม\nฮึกฮัก\nเฮงซวย\nโฮกฮือ\nโฮกฮาก\n\nก็\nกก\nก๊ก\nกกุธภัณฑ์\nกง\nก่ง\nก้ง\nก๊ง\nก๋ง\nกงกอน\nกงไฉ่\nกงเต๊ก\nกงสี\nกงสุล\nกช\nกฎ\nกฏุก\nกฐิน\nกณิกนันต์\nกณิการ์\nกด\nกตเวทิตา\nกตเวที\nกตัญชลี\nกตัญญุตา\nกตัญญู\nกตาธิการ\nกตาภินิหาร\nกติกา\nกถา\nกถิกาจารย์\nกทลี\nกน\nก่น\nก้น\nกนก\nกนิษฐ์\nกนิษฐา\nกบ\nกบฏ\nกบดาน\nกบทู\nกบาล\nกบินทร์\nกบิล\nกบี่\nกบูร\nกเบนทร์\nกม\nก้ม\nกมณฑลาภิเษก\nกมณฑโลทก\nกมล\nกมลา\nกมลาศ\nกมลาสน์\nกมเลศ\nกมัณฑลุ\nกมุท\nกร\nกรกฎ\nกรกฎาคม\nกรกฏ\nกรง\nกรชกาย\nกรณฑ์\nกรณิการ์\nกรณี\nกรณีย์\nกรณียกิจ\nกรณียะ\nกรด\nกรน\nกรบ\nกรบูร\nกรพินธุ์\nกรม\nกรรกฎ\nกรรกศ\nกรรเกด\nกรรไกร\nกรรเจียก\nกรรชิง\nกรรเชียง\nกรรโชก\nกรรฐ์\nกรรฐา\nกรรณ\nกรรณา\nกรรณิกา\nกรรณิการ์\nกรรดิ\nกรรดิก\nกรรดึก\nกรรตุ\nกรรไตร\nกรรทบ\nกรรแทก\nกรรบิด\nกรรบูร\nกรรภิรมย์\nกรรม\nกรรม์\nกรรม์ภิรมย์\nกรรมชวาต\nกรรมัชวาต\nกรรมาชีพ\nกรรมาธิการ\nกรรมาร\nกรรษก\nกรรสะ\nกรรแสง\nกรวด\nกรวบ\nกรวม\nกร้วม\nกรวย\nกรวิก\nกรสาปน์\nกรสุทธิ์\nกรอ\nกร้อ\nกรอก\nกร็อกกร๋อย\nกรอกแกรก\nกรอง\nกรองกรอย\nกรอด\nกร่อน\nกรอบ\nกรอม\nกร่อย\nกระ\nกระกร\nกระกรุ่น\nกระกลับกลอก\nกระกี้\nกระเกรอก\nกระเกริก\nกระเกริ่น\nกระคน\nกระคาย\nกระงกกระเงิ่น\nกระง่องกระแง่ง\nกระง่อนกระแง่น\nกระเง้ากระงอด\nกระโงก\nกระจก\nกระจง\nกระจร\nกระจอก\nกระจองหง่อง\nกระจ๋องหง่อง\nกระจองอแง\nกระจ้อน\nกระจอนหู\nกระจ้อย\nกระจ๋อหวอ\nกระจะ\nกระจัก\nกระจัง\nกระจัด\nกระจับ\nกระจ่า\nกระจ่าง\nกระจาด\nกระจาน\nกระจาบ\nกระจาม\nกระจาย\nกระจาว\nกระจิก\nกระจิ๋ง\nกระจิด\nกระจิบ\nกระจิ๋ม\nกระจิริด\nกระจิ๋ว\nกระจี้\nกระจี๋\nกระจุก\nกระจุ๋งกระจิ๋ง\nกระจุบ\nกระจุ๊บ\nกระจุ๋มกระจิ๋ม\nกระจุย\nกระจู้\nกระจู๋กระจี๋\nกระจูด\nกระเจอะกระเจิง\nกระเจา\nกระเจ่า\nกระเจ้า\nกระเจาะ\nกระเจิง\nกระเจิดกระเจิง\nกระเจี้ยง\nกระเจี๊ยบ\nกระเจียว\nกระเจี๊ยว\nกระแจะ\nกระโจน\nกระโจม\nกระฉอก\nกระฉ่อน\nกระฉับกระเฉง\nกระฉิ่ง\nกระฉีก\nกระฉูด\nกระเฉก\nกระเฉด\nกระแฉก\nกระโฉกกระเฉก\nกระโฉม\nกระชดกระช้อย\nกระชอน\nกระชอมดอก\nกระช้อย\nกระชัง\nกระชั้น\nกระชับ\nกระชาก\nกระชาย\nกระชิง\nกระชิด\nกระชุ\nกระชุก\nกระชุ่มกระชวย\nกระเชอ\nกระเชา\nกระเช้า\nกระเชียง\nกระแชง\nกระแชะ\nกระโชก\nกระซ่องกระแซ่ง\nกระซับ\nกระซาบ\nกระซิก\nกระซิบ\nกระซี้\nกระซุง\nกระซุบกระซิบ\nกระซุ้ม\nกระซู่\nกระเซ็น\nกระเซอ\nกระเซอะกระเซอ\nกระเซอะกระเซิง\nกระเซ้า\nกระเซิง\nกระแซ\nกระแซะ\nกระโซกระเซ\nกระฎี\nกระฎุมพี\nกระดก\nกระด้ง\nกระดนโด่\nกระดวง\nกระดวน\nกระด้วมกระเดี้ยม\nกระดอ\nกระดอง\nกระดองหาย\nกระดอน\nกระดอม\nกระดักกระเดี้ย\nกระดังงัว\nกระดังงา\nกระดาก\nกระด้าง\nกระดางลาง\nกระดาด\nกระดาดขาว\nกระดาน\nกระดานพน\nกระดาษ\nกระดำกระด่าง\nกระดิก\nกระดิ่ง\nกระดิ้ง\nกระดิบ\nกระดี่\nกระดี้กระเดียม\nกระดึง\nกระดืบ\nกระดุ\nกระดุกกระดิก\nกระดุ้งกระดิ้ง\nกระดุบ\nกระดุบกระดิบ\nกระดุม\nกระดูก\nกระเดก\nกระเด้ง\nกระเด็น\nกระเด้า\nกระเดาะ\nกระเดิด\nกระเดี้ย\nกระเดียด\nกระเดือก\nกระเดื่อง\nกระแด็ก\nกระแด้ง\nกระแด้แร่\nกระแด่ว\nกระแดะ\nกระโดก\nกระโดง\nกระโดด\nกระโดน\nกระได\nกระตรับ\nกระตราก\nกระตรุด\nกระตรุม\nกระต้วมกระเตี้ยม\nกระต้อ\nกระต่องกระแต่ง\nกระต๊อบ\nกระต้อยตีวิด\nกระตัก\nกระตั้ว\nกระต่าย\nกระติก\nกระติ๊ด\nกระติบ\nกระตือรือร้น\nกระตุก\nกระตุ้งกระติ้ง\nกระตุ่น\nกระตุ้น\nกระตูบ\nกระเตง\nกระเต็น\nกระเตอะ\nกระเตาะ\nกระเตาะกระแตะ\nกระเตื้อง\nกระแต\nกระแตแต้แว้ด\nกระโตกกระตาก\nกระโตน\nกระถด\nกระถอบ\nกระถั่ว\nกระถาง\nกระถิก\nกระถิน\nกระเถิบ\nกระโถน\nกระทก\nกระทง\nกระทบ\nกระทรวง\nกระทอก\nกระท้อน\nกระท่อนกระแท่น\nกระท่อม\nกระท้อมกระแท้ม\nกระทะ\nกระทั่ง\nกระทั้น\nกระทา\nกระทาย\nกระทาสี\nกระทาหอง\nกระทำ\nกระทิกกระทวย\nกระทิง\nกระทึง\nกระทืบ\nกระทุ\nกระทุง\nกระทุ้ง\nกระทุ่ม\nกระทู้\nกระเท่\nกระเทียบ\nกระเทียม\nกระเทือน\nกระเทื้อม\nกระแทก\nกระแท่น\nกระแทะ\nกระไทชาย\nกระน่อง\nกระนั้น\nกระนี้\nกระแนะกระแหน\nกระโน้น\nกระไน\nกระบก\nกระบม\nกระบวน\nกระบวย\nกระบวร\nกระบอก\nกระบอง\nกระบะ\nกระบัด\nกระบั้วกระเบี้ย\nกระบ่า\nกระบ้า\nกระบาก\nกระบาย\nกระบาล\nกระบิ\nกระบิ้ง\nกระบิด\nกระบิล\nกระบี่\nกระบือ\nกระบุง\nกระบุ่มกระบ่าม\nกระบู้กระบี้\nกระบูน\nกระบูร\nกระเบง\nกระเบญ\nกระเบ็ดกระบวน\nกระเบน\nกระเบา\nกระเบิก\nกระเบียด\nกระเบียน\nกระเบื้อง\nกระแบก\nกระแบะ\nกระโบม\nกระปมกระปำ\nกระปมกระเปา\nกระปรอก\nกระปรอกว่าว\nกระปรี้กระเปร่า\nกระปอก\nกระป้อกระแป้\nกระป่อง\nกระป๋อง\nกระปอดกระแปด\nกระป๋อหลอ\nกระปั้วกระเปี้ย\nกระป่ำ\nกระปุก\nกระปุ๊กลุก\nกระปุ่ม\nกระปุ่มกระป่ำ\nกระปุ่มกระปิ่ม\nกระเป๋า\nกระเปาะ\nกระโปก\nกระโปรง\nกระผม\nกระผลีกระผลาม\nกระผาน\nกระผีก\nกระพรวน\nกระพริ้ม\nกระพอก\nกระพอง\nกระพ้อม\nกระพัก\nกระพัง\nกระพังเหิร\nกระพังโหม\nกระพัด\nกระพัตร\nกระพัน\nกระพั่น\nกระพา\nกระพาก\nกระพี้\nกระพือ\nกระพุ้ง\nกระพุ่ม\nกระเพาะ\nกระเพิง\nกระเพื่อม\nกระแพ้ง\nกระฟัดกระเฟียด\nกระฟูมกระฟาย\nกระมล\nกระมอบ\nกระมอมกระแมม\nกระมัง\nกระมัน\nกระมิดกระเมี้ยน\nกระมุท\nกระเมาะ\nกระย่อง\nกระย่องกระแย่ง\nกระย่อน\nกระย่อม\nกระยา\nกระยาง\nกระยาจก\nกระยาหงัน\nกระยิก\nกระยิ้มกระย่อง\nกระยึกกระยือ\nกระยืดกระยาด\nกระเย้อกระแหย่ง\nกระรอก\nกระเรียน\nกระโรกน้ำข้าว\nกระโรกใหญ่\nกระไร\nกระลด\nกระลบ\nกระลอก\nกระลอม\nกระละหล่ำ\nกระลัด\nกระลับ\nกระลัมพร\nกระลา\nกระลำ\nกระลำพัก\nกระลำพุก\nกระลิง\nกระลี\nกระลุมพาง\nกระลุมพุก\nกระลุมพู\nกระลูน\nกระลู่น์\nกระเล็น\nกระเลียด\nกระเลือก\nกระโลง\nกระวน\nกระวัด\nกระวาด\nกระวาน\nกระวาย\nกระวิน\nกระวี\nกระวีกระวาด\nกระวูดกระวาด\nกระเวน\nกระเวยกระวาย\nกระแวน\nกระโวยกระวาย\nกระษัย\nกระษาปณ์\nกระสง\nกระสบ\nกระสม\nกระสรวล\nกระสร้อย\nกระสวน\nกระสวย\nกระสอบ\nกระสะ\nกระสัง\nกระสัน\nกระสับกระส่าย\nกระสา\nกระสานติ์\nกระสาบ\nกระสาย\nกระสือ\nกระสุงกระสิง\nกระสุน\nกระสูทธิ์\nกระสูบ\nกระเสด\nกระเส็นกระสาย\nกระเส่า\nกระเสาะกระแสะ\nกระเสียน\nกระเสียร\nกระเสือกกระสน\nกระแส\nกระแสง\nกระแสะ\nกระโสง\nกระไส\nกระหนก\nกระหนาก\nกระหนาบ\nกระหน่ำ\nกระหมวด\nกระหมอบ\nกระหม่อม\nกระหมั่ง\nกระหมิบ\nกระหมุดกระหมิด\nกระหมุบ\nกระหย่ง\nกระหย่อม\nกระหยัง\nกระหยับ\nกระหยิ่ม\nกระหรอด\nกระหริ่ง\nกระหวน\nกระหวัด\nกระหอง\nกระหัง\nกระหัด\nกระหาง\nกระหาย\nกระหึม\nกระหึ่ม\nกระหืดกระหอบ\nกระเห็น\nกระเหนียด\nกระเหม็ดกระเหมียด\nกระเหม็ดกระแหม่\nกระเหม่น\nกระเหม่า\nกระเหว่า\nกระเห่อ\nกระเหิม\nกระเหี้ยนกระหือรือ\nกระแห\nกระแหทอง\nกระแหนบ\nกระแหนะ\nกระแหมบ\nกระแหม่ว\nกระแหย่ง\nกระแหร่ม\nกระแหล่ง\nกระโห้\nกระโหนด\nกระโหม\nกระโหย\nกระโหย่ง\nกระอวล\nกระอ้อกระแอ้\nกระออดกระแอด\nกระออบ\nกระออม\nกระอ้อมกระแอ้ม\nกระอัก\nกระอักกระอ่วน\nกระอั้วแทงควาย\nกระอ้า\nกระอาน\nกระอิด\nกระอิดกระเอื้อน\nกระอึก\nกระอืด\nกระอุ\nกระอุก\nกระเอา\nกระเอิก\nกระเอิบ\nกระแอก\nกระแอบ\nกระแอม\nกระไอ\nกรัก\nกรักขี\nกรัง\nกรัชกาย\nกรัณฑ์\nกรัณย์\nกรัน\nกรับ\nกรัม\nกราก\nกราง\nกร่าง\nกราด\nกราดวง\nกราน\nกร้าน\nกราบ\nกราฟ\nกราม\nกราย\nกร่าย\nกราว\nกร้าว\nกรำ\nกร่ำ\nกริก\nกริ๊ก\nกริกกริว\nกริกกรี\nกริ่ง\nกริ๊ง\nกริงกริว\nกริ้งกริ้ว\nกริช\nกริณี\nกริน\nกรินทร์\nกรินี\nกริบ\nกริม\nกริ่ม\nกริยา\nกริยานุเคราะห์\nกริว\nกริ้ว\nกรี\nกรีฑา\nกรีด\nกรี๊ด\nกรีธา\nกรีษ\nกรีส\nกรึ๊บ\nกรุ\nกรุง\nกรุ้งกริ่ง\nกรุณ\nกรุณา\nกรุณาธิคุณ\nกรุ่น\nกรุบ\nกรุ่ม\nกรุ้มกริ่ม\nกรุย\nกรุยเกรียว\nกรู\nกรูด\nกรูม\nกเรณุ\nกเรนทร\nกเรนทร์\nกฤช\nกฤดาภินิหาร\nกฤตติกา\nกฤษฎา\nกฤษฎาธาร\nกฤษฎาภินิหาร\nกฤษฎีกา\nกฤษณา\nกล\nกลด\nกล่น\nกลบ\nกลม\nกลละ\nกลวง\nกล้วย\nกลศ\nกล้อ\nกลอก\nกลอง\nกล่อง\nกล้อง\nกล้องแกล้ง\nกลอน\nกล่อน\nกล้อน\nกล่อม\nกล้อมแกล้ม\nกลอย\nกลัก\nกลัด\nกลั่น\nกลั้น\nกลันทก์\nกลันทะ\nกลับ\nกลัมพร\nกลัมพัก\nกลัว\nกลั้ว\nกลา\nกล้า\nกลาก\nกลากลาด\nกลาง\nกลาด\nกลาบาต\nกลาป\nกล้าม\nกลาย\nกล้าย\nกลายกลอก\nกล่าว\nกลาโหม\nกล่ำ\nกล้ำ\nกลิ้ง\nกลิงค์\nกลิ่น\nกลี\nกลีบ\nกลึง\nกลึงค์\nกลืน\nกลุ่ม\nกลุ้ม\nกลูโคส\nกเลวระ\nกวด\nกวน\nกวม\nกวย\nกวยจั๊บ\nกวยจี๊\nก๋วยเตี๋ยว\nกวัก\nกวัด\nกวา\nกว่า\nกวาง\nกว่าง\nกว้าง\nกว่างโซ้ง\nกวางตุ้ง\nกวาด\nกว้าน\nกว๊าน\nกว้าว\nกวาวเครือ\nกวี\nกษณะ\nกษมา\nกษัตร\nกษัตรา\nกษัตริย์\nกษัตรี\nกษัตรีย์\nกษัย\nกษาปณ์\nกษิดิ\nกษีร\nกษีรธารา\nกษีระ\nกสานติ์\nกสิกร\nกสิกรรม\nกสิณ\nกหังปายา\nกหาปณะ\nกเฬวราก\nกอ\nก่อ\nก้อ\nก๊อ\nกอก\nก๊อก\nกอแก\nกอง\nก่อง\nก้อง\nกองกอย\nก๊อซ\nกอด\nก่อน\nก้อน\nกอบ\nกอบนาง\nก๊อบปี้\nกอปร\nก้อม\nกอมก้อ\nก่อมก้อ\nกอย\nก้อย\nก๋อย\nกอริลลา\nกอล์ฟ\nกอและ\nกอเอี๊ยะ\nกะ\nกะกัง\nกะง้องกะแง้ง\nกะจัง\nกะแจะ\nกะชะ\nกะชัง\nกะชามาศ\nกะชิง\nกะชึ่กกะชั่ก\nกะแช่\nกะซวก\nกะซ้าหอย\nกะซี่\nกะโซ่\nกะโซ้\nกะดก\nกะดง\nกะดวน\nกะดอก\nกะดะ\nกะดังบาย\nกะดัด\nกะด้าง\nกะดำกะด่าง\nกะดี\nกะดี่\nกะดุ้ง\nกะเด้\nกะเดก\nกะเดี๋ยว\nกะตรุด\nกะตอก\nกะต่อย\nกะตัก\nกะตั้ก\nกะตัง\nกะตังกะติ้ว\nกะต๊าก\nกะต้ำ\nกะติ๊กริก\nกะติงกะแตง\nกะตีบ\nกะตึงกะแตง\nกะตุ๊ก\nกะตุด\nกะตูก\nกะเตง\nกะโต๊ก\nกะโตงกะเตง\nกะโต้งโห่ง\nกะถัว\nกะทกรก\nกะทอ\nกะทัง\nกะทังหัน\nกะทัดรัด\nกะทันหัน\nกะทับ\nกะทิ\nกะทือ\nกะทุน\nกะเทย\nกะเทาะ\nกะแท้\nกะแท่ง\nกะแทน\nกะนวล\nกะนัด\nกะบ่อนกะแบ่น\nกะบัง\nกะบั้ง\nกะบิ้ง\nกะบิล\nกะบึงกะบอน\nกะบุด\nกะเบ้อ\nกะเบียน\nกะเบือ\nกะปริดกะปรอย\nกะปริบ\nกะปริบกะปรอย\nกะปลกกะเปลี้ย\nกะปวกกะเปียก\nกะปอม\nกะปอมขาง\nกะปะ\nกะป้ำกะเป๋อ\nกะปิ\nกะปู\nกะปูด\nกะปูดหลูด\nกะเปะ\nกะเปิ๊บกะป๊าบ\nกะเปียด\nกะแป้น\nกะแปะ\nกะโปรง\nกะโปโล\nกะผลุบกะโผล่\nกะเผ่น\nกะเผลก\nกะโผลกกะเผลก\nกะพง\nกะพรวดกะพราด\nกะพร่องกะแพร่ง\nกะพริบ\nกะพรุน\nกะพรูดกะพราด\nกะพล้อ\nกะพ้อ\nกะเพรา\nกะเพียด\nกะเม็ง\nกะร่องกะแร่ง\nกะระตะ\nกะระหนะ\nกะรัง\nกะรัต\nกะราง\nกะริง\nกะรุงกะรัง\nกะรุ่งกะริ่ง\nกะรุน\nกะเร\nกะเรกะร่อน\nกะเร่กะร่อน\nกะเร่อ\nกะเรี่ยกะราด\nกะโรกะเร\nกะลวย\nกะลอ\nกะล่อกะแล่\nกะลอจี๊\nกะล่อน\nกะล่อมกะแล่ม\nกะล่อยกะหลิบ\nกะละปังหา\nกะละมัง\nกะละแม\nกะละออม\nกะลังตังไก่\nกะลัน\nกะลันทา\nกะลา\nกะลาง\nกะลาสี\nกะลำพอ\nกะลิง\nกะลิงปลิง\nกะลิ้มกะเหลี่ย\nกะลิอ่อง\nกะลุมพี\nกะเล็ง\nกะเล่อกะล่า\nกะเลิด\nกะเลียว\nกะแล\nกะโล่\nกะโลง\nกะวอกกะแวก\nกะวะ\nกะส้มชื่น\nกะสัง\nกะส้าหอย\nกะหนอกะแหน\nกะหน็องกะแหน็ง\nกะหนะ\nกะหนุงกะหนิง\nกะหร่อง\nกะหรอด\nกะหร็อมกะแหร็ม\nกะหราน\nกะหรี่\nกะหรี่ปั๊บ\nกะหลาป๋า\nกะหล่ำ\nกะหลี่\nกะหลีกะหลอ\nกะหลุกกะหลิก\nกะหำ\nกะหำแพะ\nกะหือ\nกะหูด\nกะเหรี่ยง\nกะเหลาะเปาะ\nกะแหยก\nกะแหะ\nกะโหลก\nกะโหล้ง\nกะไหล่\nกะอวม\nกะออม\nกะอาน\nกะอาม\nกะอูบ\nกัก\nกั๊ก\nกักกรา\nกักการุ\nกักขฬะ\nกัง\nกั้ง\nกังก้า\nกังเกียง\nกังขา\nกังฉิน\nกังฟู\nกังวล\nกังวาน\nกังสดาล\nกังไส\nกังหัน\nกัจฉปะ\nกัจฉะ\nกัจฉา\nกัญ\nกัญจุก\nกัญจุการา\nกัญชา\nกัญญา\nกัฐ\nกัณฏกะ\nกัณฐกะ\nกัณฐชะ\nกัณฐัศ\nกัณฐัศว์\nกัณฐา\nกัณฐี\nกัณฑ์\nกัณณ์\nกัณหา\nกัด\nกัตติกมาส\nกัตติกา\nกัตติเกยา\nกัตรา\nกัทลี\nกัน\nกั่น\nกั้น\nกันเกรา\nกันไกร\nกันชิง\nกันเชอ\nกันดาร\nกันดาล\nกันได\nกันต์\nกันตัง\nกันไตร\nกันทร\nกันทรากร\nกันภิรมย์\nกันเมียง\nกันย์\nกันยา\nกันยายน\nกันลง\nกันลอง\nกันแสง\nกั้นหยั่น\nกับ\nกับแก้\nกัป\nกัปตัน\nกัปปาสิก\nกัปปิยภัณฑ์\nกัปปิยะ\nกัมปนาท\nกัมประโด\nกัมปี\nกัมพล\nกัมพุช\nกัมพู\nกัมพูชา\nกัมโพช\nกัมมัชวาต\nกัมมัฏฐาน\nกัมมันตภาพรังสี\nกัมมันตรังสี\nกัมมาร\nกัมลาศ\nกัยวิกัย\nกัลชาญ\nกัลบก\nกัลป์\nกัลปนา\nกัลปพฤกษ์\nกัลปังหา\nกัลปาวสาน\nกัลปิต\nกัลเม็ด\nกัลยา\nกัลยาณมิตร\nกัลยาณี\nกัลออม\nกัศยป\nกัษณ\nกา\nก๋า\nกาก\nกากบาท\nกากะทิง\nกากะเยีย\nกากี\nกาง\nก้าง\nกางเกง\nกางเขน\nก๊าซ\nกาซะลอง\nกาญจนา\nกาฐ\nกาด\nก๊าด\nกาน\nก่าน\nก้าน\nก๊าน\nกานดา\nกานต์\nกานน\nก้านพร้าว\nกานพลู\nกาน้า\nกาบ\nก้าบ\nกาบู\nกาพย์\nกาเฟอีน\nกาแฟ\nกาม\nก้าม\nกามารมณ์\nกามินี\nกาเมสุมิจฉาจาร\nกาย\nก่าย\nกาเยน\nการ\nการณ์\nการ์ด\nการ์ตูน\nการบูร\nการย์\nการวิก\nการเวก\nการะเกด\nการะบุหนิง\nการัณย์\nการันต์\nการางหัวขวาน\nการิตการก\nการิตวาจก\nการุญ\nการุณย์\nกาเรการ่อน\nกาล\nกาลกรรณี\nกาลกิณี\nกาลจักร\nกาลัญญุตา\nกาลัญญู\nกาลัด\nกาลานุกาล\nกาลิก\nกาลี\nกาแล\nกาแล็กซี\nกาแล็กโทส\nกาว\nก้าว\nกาววาว\nกาวาง\nกาแวน\nกาศิก\nกาษฐะ\nกาษา\nกาสร\nกาสะ\nกาสา\nกาสาร\nกาสาวะ\nกาสิโน\nกาหล\nกาหลง\nกาหลา\nกาเหว่า\nกาไหล่\nกาฬ\nกาฬาวก\nกาฮัง\nกำ\nก่ำ\nกำกวม\nกำกัด\nกำกับ\nก้ำกึ่ง\nกำกูน\nก้ำเกิน\nกำเกียง\nกำคูน\nกำจร\nกำจัด\nกำจาย\nกำชับ\nกำชำ\nกำซาบ\nกำซำ\nกำด้น\nกำดัด\nกำดาล\nกำเดา\nกำธร\nกำนล\nกำนัน\nกำนัล\nกำเนิด\nกำบัง\nก่ำบึ้ง\nกำเบ้อ\nกำปอ\nกำปั่น\nกำผลา\nกำพง\nกำพด\nกำพต\nกำพร้า\nกำพราก\nกำพวด\nกำพอง\nกำพืด\nกำพุด\nกำพู\nกำเพลิง\nกำแพง\nกำภู\nกำมลาศน์\nกำมเลศ\nกำมะถัน\nกำมะลอ\nกำมะหยี่\nกำมะหริด\nกำมังละการ\nกำมังวิลิต\nกำมัชพล\nกำยาน\nกำยำ\nกำรอ\nกำราบ\nกำราล\nกำเริบ\nกำไร\nกำลัง\nกำลุง\nกำเลา\nกำไล\nกำสรด\nกำสรวล\nกำหนด\nกำหนัด\nกำเหน็จ\nกำแหง\nกิก\nกิ๊ก\nกิ่ง\nกิ้งก่า\nกิ้งกือ\nกิ้งโครง\nกิจ\nกิจจะ\nกิจจา\nกิดาการ\nกิดาหยัน\nกิตติ\nกิตติมศักดิ์\nกิน\nกินนร\nกินปลี\nกินเปี้ยว\nกินริน\nกินรี\nกิ๊บ\nกิมตึ๋ง\nกิมิชาติ\nกิมิวิทยา\nกิโมโน\nกิโยตีน\nกิระ\nกิริณี\nกิรินท\nกิริเนศวร\nกิริยา\nกิเลน\nกิเลส\nกิโล\nกิโลมกะ\nกิ่ว\nกิ๋ว\nกี\nกี่\nกี้\nกี๊\nกี๋\nกีฏวิทยา\nกีด\nกีตาร์\nกีบ\nกีรติ\nกีฬา\nกึก\nกึง\nกึ่ง\nกึ๋น\nกุ\nกุก\nกุ๊ก\nกุกกุฏ\nกุกกุร\nกุกรรม\nกุ้ง\nกุงอน\nกุงาน\nกุโงก\nกุจี\nกุญแจ\nกุญชร\nกุฎ\nกุฎา\nกุฎี\nกุฎุมพี\nกุฏฐัง\nกุฏิ\nกุณฑ์\nกุณฑล\nกุณฑี\nกุณโฑ\nกุณาล\nกุณี\nกุด\nกุดัง\nกุดั่น\nกุดา\nกุทัณฑ์\nกุน\nกุ๊น\nกุนเชียง\nกุนที\nกุโนกามอ\nกุบ\nกุบกับ\nกุม\nกุ่ม\nกุมฝอย\nกุมภ์\nกุมภนิยา\nกุมภัณฑ์\nกุมภา\nกุมภิล\nกุมภีล์\nกุมเหง\nกุมาร\nกุมารา\nกุมารี\nกุมุท\nกุย\nกุ๊ย\nกุ๋ย\nกุยช่าย\nกุยเฮง\nกุรระ\nกุรุพินท์\nกุเรา\nกุล\nกุลา\nกุลาหล\nกุลี\nกุลีกุจอ\nกุเลา\nกุแล\nกุเวร\nกุศราช\nกุศล\nกุศโลบาย\nกุสุม\nกุสุมภ์\nกุสุมา\nกุสุมาลย์\nกุสุมิตลดาเวลลิตา\nกุหนี\nกุหนุง\nกุหร่า\nกุหล่า\nกุหลาบ\nกุแหละ\nกู\nกู่\nกู้\nกู๊ก\nกูฏ\nกูฏา\nกูณฑ์\nกูด\nกูบ\nกูปรี\nกูรมะ\nกูรมาวตาร\nเก\nเก้\nเก๊\nเก๋\nเกก\nเก๊ก\nเกกมะเหรก\nเก๊กฮวย\nเก้กัง\nเก็ง\nเก่ง\nเก้ง\nเก๋ง\nเกงกอย\nเก่งกาจ\nเกงเขง\nเก๋งเคง\nเก็จ\nเกจิอาจารย์\nเกชา\nเกณฑ์\nเกด\nเก็ด\nเกตุ\nเกน\nเก็บ\nเกม\nเกย\nเกยูร\nเกรง\nเกร็ง\nเกร็ด\nเกรน\nเกร่อ\nเกรอะ\nเกราะ\nเกริก\nเกริน\nเกริ่น\nเกรียก\nเกรียง\nเกรียด\nเกรียน\nเกรียบ\nเกรียม\nเกรียว\nเกรี้ยว\nเกเร\nเกล็ด\nเกลศ\nเกลอ\nเกลา\nเกล้า\nเกลาะ\nเกลี่ย\nเกลี้ย\nเกลียง\nเกลี้ยง\nเกลียด\nเกลียว\nเกลือ\nเกลื้อ\nเกลือก\nเกลื่อน\nเกลื้อน\nเกวัฏ\nเกวียน\nเกศ\nเกศว\nเกศวะ\nเกศา\nเกศินี\nเกศี\nเกษตร\nเกษม\nเกษียณ\nเกษียน\nเกษียร\nเกส\nเกสร\nเกสรี\nเกสา\nเกสี\nเก้อ\nเกอิชา\nเกะ\nเกะกะ\nเกา\nเก่า\nเก้า\nเก๋า\nเกาต์\nเกาทัณฑ์\nเกาบิล\nเกาลัด\nเกาลิน\nเกาไศย\nเกาหลี\nเกาเหลา\nเกาเหลียง\nเก้าอี้\nเกาะ\nเกิ้ง\nเกิด\nเกิน\nเกิบ\nเกีย\nเกียกกาย\nเกียง\nเกี่ยง\nเกี๋ยง\nเกียจ\nเกียด\nเกียน\nเกี้ยมไฉ่\nเกี้ยมอี๋\nเกียร์\nเกียรติ\nเกียรติ์\nเกี่ยว\nเกี้ยว\nเกี๊ยว\nเกี๊ยะ\nเกื้อ\nเกือก\nเกื้อกูล\nเกือบ\nแก\nแก่\nแก้\nแกง\nแก่ง\nแก้ง\nแก๊ง\nแกงได\nแกงแนง\nแกโดลิเนียม\nแกน\nแก่น\nแก๊ป\nแกม\nแก้ม\nแกมมา\nแกรก\nแกร่ง\nแกร็น\nแกรนิต\nแกรไฟต์\nแกร่ว\nแกระ\nแกล\nแกล้ง\nแกลน\nแกลบ\nแกล้ม\nแกลลอน\nแกลเลียม\nแกล้ว\nแกละ\nแกแล\nแกว\nแก้ว\nแกว่ง\nแก๊ส\nแกะ\nโก\nโก่\nโก้\nโก๋\nโกก\nโกกนุท\nโกกิลา\nโกโก้\nโกง\nโก่ง\nโกงกาง\nโก้งเก้ง\nโกงโก้\nโก้งโค้ง\nโกเชาว์\nโกญจนาท\nโกญจา\nโกฏิ\nโกฐ\nโกฐาส\nโกณะ\nโกดัง\nโกทัณฑ์\nโกน\nโก่น\nโก๋น\nโกมล\nโกมุท\nโกเมน\nโกเมศ\nโกย\nโกรก\nโกรกกราก\nโกรง\nโกร่ง\nโกร่งกร่าง\nโกรงเกรง\nโกร๋งเกร๋ง\nโกรญจ\nโกรต๋น\nโกรธ\nโกรธา\nโกร๋น\nโกรม\nโกรย\nโกรศ\nโกโรโกเต\nโกโรโกโรก\nโกโรโกโส\nโกลน\nโกลาหล\nโกไล\nโกวิท\nโกศ\nโกศล\nโกษม\nโกสน\nโกสัช\nโกสินทร์\nโกสีย์\nโกสุม\nโกไสย\nโกหก\nใกล้\nไก\nไก่\nไก๊\nไก๋\nไก่กอม\nไกพัล\nไกร\nไกรพ\nไกรลาส\nไกรศร\nไกรศรี\nไกรสร\nไกรสรี\nไกรสิทธิ\nไกล\nไกล่\nไกลาส\nไกว\nไกวัล\nขงจื๊อ\nขจร\nขจรจบ\nขจัด\nขจ่าง\nขจาย\nขจาว\nขจิต\nขจี\nขจุย\nขเจา\nขณะ\nขด\nขน\nข้น\nขนง\nขนด\nขนบ\nขนม\nขนอง\nขนอน\nขนอบ\nขนัด\nขนัน\nขนาก\nขนาง\nขนาด\nขนาน\nขนาบ\nขนาย\nขนำ\nขนิษฐ\nขนิษฐา\nขนุน\nขนุนนก\nขบ\nขบถ\nขบวน\nขบวร\nขม\nข่ม\nขมงโกรย\nขมวด\nขมวน\nขมอง\nขม่อม\nขมัง\nขมับ\nขมา\nขม้ำ\nขมิ้น\nขมิบ\nขมีขมัน\nขมึง\nขมึงทึง\nขมุ\nขมุกขมัว\nขมุบ\nขโมย\nขยด\nขยม\nขย่ม\nขยอก\nขยอง\nขย่อน\nขย้อน\nขยะ\nขยัก\nขยัน\nขยั้น\nขยับ\nขยาด\nขยาย\nขยำ\nขย้ำ\nขยิก\nขยิบ\nขยิ่ม\nขยี้\nขยุกขยิก\nขยุกขยุย\nขยุบ\nขยุบขยิบ\nขยุม\nขยุ้ม\nขยุย\nขรม\nขรรค์\nขรัว\nขริบ\nขรี\nขรึม\nขรุขระ\nขลบ\nขล้อ\nขลัง\nขลับ\nขลาด\nขลาย\nขลิบ\nขลุก\nขลุกขลัก\nขลุกขลิก\nขลุบ\nขลุม\nขลุ่ย\nขลู\nขลู่\nขวง\nข่วง\nขวด\nข่วน\nขวนขวาย\nขวบ\nขวย\nขวักไขว่\nขวัญ\nขวั้น\nขวับ\nขวับเขวียว\nขวา\nขวาก\nขวาง\nขว้าง\nขวาด\nขวาน\nขวายขวน\nขวาว\nขว้าว\nขวิด\nขอ\nข่อ\nข้อ\nของ\nข้อง\nขอด\nขอน\nข้อน\nขอบ\nขอม\nข่อย\nข้อย\nข่อยหยอง\nขะแจะ\nขะเน็ด\nขะมอมขะแมม\nขะมักเขม้น\nขะมุกขะมอม\nขะยิก\nขะยุก\nขะเย้อแขย่ง\nขัค\nขัง\nขังขอก\nขัช\nขัณฑสกร\nขัณฑสีมา\nขัด\nขัดมอน\nขัตติยมานะ\nขัน\nขั้น\nขันติ\nขันตี\nขันโตก\nขันที\nขันธ์\nขันธาวาร\nขับ\nขัว\nขั้ว\nขา\nข่า\nข้า\nขาก\nขาก๊วย\nขาง\nข่าง\nข้าง\nขาณุ\nขาด\nขาทนียะ\nขาน\nขาบ\nข้าพเจ้า\nขาม\nข่าม\nข้าม\nขาย\nข่าย\nขาล\nขาว\nข่าว\nข้าว\nข้าวอังกุลี\nขำ\nขิก\nขิง\nขิงแกลง\nขิงแครง\nขิด\nขิปสัทโท\nขิม\nขี่\nขี้\nขี้เข็บ\nขีณาสพ\nขีด\nขี้ตังนี\nขีปนาวุธ\nขี้ยอก\nขีระ\nขึง\nขึ้ง\nขึ้น\nขึ้นฉ่าย\nขืน\nขื่น\nขื่อ\nขุก\nขุด\nขุน\nขุ่น\nขุนเพ็ด\nขุม\nขุย\nขู่\nขูด\nเข\nเข้\nเขก\nเข็ง\nเข่ง\nเขจร\nเข็ญ\nเข็ด\nเขดา\nเขต\nเขน\nเข็น\nเข่น\nเขนง\nเขน็ด\nเขนย\nเขบ็จขบวน\nเขบ็ต\nเขม\nเข็ม\nเข้ม\nเข้มขาบ\nเขม็ง\nเขม็ดแขม่\nเขม่น\nเขม้น\nเขม้นขะมัก\nเขมร\nเขมา\nเขม่า\nเขมือบ\nเขย\nเขยก\nเขย่ง\nเขย้อแขย่ง\nเขย่า\nเขยิน\nเขยิบ\nเขยื้อน\nเขรอะ\nเขลง\nเขลอะ\nเขละ\nเขลา\nเขลาะ\nเขว\nเขษม\nเขฬะ\nเขะขะ\nเขา\nเข่า\nเข้า\nเขิง\nเขิน\nเขิบ\nเขี่ย\nเขียง\nเขียด\nเขียดตะปาด\nเขียน\nเขี่ยน\nเขียม\nเขียว\nเขี้ยว\nเขียะ\nเขือ\nเขือง\nเขื่อง\nเขื่อน\nเขือม\nแข\nแข้\nแขก\nแข็ง\nแข่ง\nแข้ง\nแขน\nแข่น\nแข้น\nแขนง\nแขม\nแขม็บ\nแขม่ว\nแขยง\nแขย่ง\nแขวก\nแขวง\nแขวน\nแขวะ\nโข\nโขก\nโขง\nโข่ง\nโขด\nโขดง\nโขน\nโขนง\nโขม\nโขมง\nโขมด\nโขยก\nโขยง\nโขย่ง\nโขยด\nโขลก\nโขลง\nโขลน\nโขษม\nไข\nไข่\nไข้\nไขว่\nไขว้\nคคนะ\nคคนัมพร\nคคนางค์\nคคนานต์\nคง\nคงคา\nคงไคย\nคช\nคชาชาติ\nคชาชีพ\nคชาธาร\nคชาภรณ์\nคณนา\nคณบดี\nคณะ\nคณาจารย์\nคณาธิการ\nคณาธิปไตย\nคณานับ\nคณิกา\nคณิต\nคเณศ\nคด\nคดี\nคติ\nคทา\nคน\nค้น\nคนทา\nคนทิสอ\nคนที\nคนโท\nคนธ์\nคันธ์\nคนธรรพ์\nคเนจร\nคบ\nคม\nคมน์\nคมนาการ\nคมนาคม\nคมิกภัต\nครก\nครบ\nครรชิต\nครรภ\nครรภ์\nครรลอง\nครรโลง\nครรไล\nครวญ\nครวี\nครหา\nครอก\nครอง\nครองแครง\nคร่อเงาะ\nคร่อเทียน\nครอบ\nคร่อม\nคระเมิม\nคระแลง\nคระไล\nคระแวง\nคระหน\nคระหวน\nคระหาย\nคระโหย\nครั่ง\nครั้ง\nครัดเคร่ง\nครัน\nครั่น\nครั้น\nครับ\nครัว\nครา\nคร่า\nคราก\nคราง\nคราญ\nคราด\nคร้าน\nคราบ\nคราม\nคร้าม\nครามครัน\nคราว\nคร่าว\nคราส\nครำ\nคร่ำ\nคร่ำเคร่ง\nคริปทอน\nคริสต์\nครีบ\nครีม\nครีษมายัน\nครึ\nครึกครื้น\nครึกโครม\nครึ่ง\nครึ่ด\nครึน\nครึ้ม\nครืด\nครืน\nครื้น\nครืนครั่น\nครื้นครั่น\nครื้นครึก\nครื้นเครง\nครือ\nครุ\nครุคระ\nครุฑ\nครุ่น\nครุมเครือ\nครุย\nครุวนา\nครู\nครู่\nครูด\nคฤโฆษ\nคฤนถ์\nคฤหบดี\nคฤหัสถ์\nคฤหาสน์\nคลวง\nคลอ\nคล้อ\nคลอก\nคลอง\nคล่อง\nคล้อง\nคลอด\nคลอน\nคล้อย\nคลอรีน\nคลอโรฟอร์ม\nคลอโรฟีลล์\nคละ\nคละคลุ้ง\nคลัก\nคลั่ก\nคลัง\nคลั่ง\nคลัตช์\nคลับคล้าย\nคลับคลา\nคลา\nคล้า\nคลางแคลง\nคลาด\nคลาน\nคลาย\nคล้าย\nคล้ายคลึง\nคล่าว\nคลำ\nคล่ำ\nคล้ำ\nคลิ้งโคลง\nคลิด\nคลินิก\nคลี\nคลี่\nคลึง\nคลื่น\nคลุก\nคลุ้ง\nคลุบ\nคลุม\nคลุ่ม\nคลุ้ม\nควง\nควณ\nควน\nควบ\nควย\nควร\nควัก\nควั่ก\nควั่งคว้าง\nควัน\nควั่น\nคว้า\nควาก\nคว้าง\nควาญ\nควาน\nคว้าน\nความ\nควาย\nคว่าว\nคว่ำ\nควินิน\nควิวคว่าง\nคหกรรม\nคหกรรมศาสตร์\nคหบดี\nคหัฐ\nคอ\nค้อ\nคอก\nค็อกคัส\nค็อกเทล\nคอเคซอยด์\nค่องอ้อย\nคอด\nคอแดง\nคอน\nค่อน\nค้อน\nคอนกรีต\nคอนเดนเซอร์\nคอนแวนต์\nคอนเสิร์ต\nคอม\nค่อม\nค้อม\nคอมพิวเตอร์\nคอมมานโด\nคอมมิวนิสต์\nคอย\nค่อย\nค้อย\nคอยล์\nคอร์ด\nคอแลน\nคอสติกโซดา\nคะ\nค่ะ\nคะไขว่\nคะค้อย\nคะคาน\nคะนน\nคะนอง\nคะน้า\nคะนึง\nคะเน\nคะเนงร้าย\nคะเน็ด\nคะแนน\nคะมำ\nคะยั้นคะยอ\nคะเยอ\nคัก\nคั่ก\nคัคนะ\nคัคนัมพร\nคัคนางค์\nคัคนานต์\nคั่ง\nคังไคย\nคัจฉ\nคัณฑมาลา\nคัณฑสูตร\nคัด\nคัดเค้า\nคัดมอน\nคัดเม็ง\nคัทลียา\nคัน\nคั่น\nคั้น\nคันถรจนาจารย์\nคันธกุฎี\nคันธมาทน์\nคันธารราษฎร์\nคับ\nคับค้อน\nคับคา\nคับแค\nคัพภ์\nคัมภีร์\nคัมภีรภาพ\nคัล\nคั่ว\nคา\nค่า\nค้า\nค่าคบ\nคาง\nค่าง\nค้าง\nคางคก\nค้างคาว\nคาด\nคาถา\nคาทอลิก\nคาน\nค้าน\nคาบ\nคาพยุต\nคาม\nคามวาสี\nคามณีย์\nคามภีร์\nคาย\nค่าย\nคาร์บอน\nคาร์บอเนต\nคาร์บอลิก\nคาร์บูเรเตอร์\nคาร์โบรันดัม\nคาร์โบไฮเดรต\nคารม\nคารวะ\nคาราเต้\nคาราวาน\nคาว\nค่าว\nค้าว\nคาวตอง\nคาวี\nคาวุต\nคาส\nคำ\nค่ำ\nค้ำ\nคำนวณ\nคำนวร\nคำนับ\nคำนัล\nคำนึง\nคำนูณ\nคำฝอย\nคำเพลิง\nคำรน\nคำรบ\nคำราม\nคำแสด\nคำแหง\nคำโอง\nคิก\nคิง\nคิด\nคิมหันต์\nคิรี\nคิลาน\nคิลานะ\nคิว\nคิ้ว\nคี่\nคีต\nคีบ\nคีม\nคีรี\nคีรีบูน\nคึก\nคึ่ก\nคึกคัก\nคืน\nคืบ\nคือ\nคุ\nคุก\nคุกกี้\nคุกคาม\nคุกพาทย์\nคุ้ง\nคุณ\nคุด\nคุดทะราด\nคุต\nคุตติ\nคุ่น\nคุ้น\nคุป\nคุปต์\nคุปติ\nคุม\nคุ่ม\nคุ้ม\nคุย\nคุ้ย\nคุยหฐาน\nคุยหประเทศ\nคุรุ\nคุลา\nคุลิก่า\nคุลีการ\nคุหา\nคู\nคู่\nคู้\nคูณ\nคูถ\nคูน\nคูปอง\nคูเรียม\nคูหา\nเค้ก\nเค้เก้\nเค้ง\nเคณฑะ\nเคด\nเค็ด\nเคน\nเค้น\nเคเบิล\nเค็ม\nเคมี\nเคย\nเครง\nเคร่ง\nเครงครา\nเครงครำ\nเครดิต\nเครน\nเครา\nเคร่า\nเคราหณี\nเคราะห์\nเครียด\nเครียว\nเครือ\nเครื่อง\nเคล้ง\nเคล็ด\nเคล้น\nเคล้า\nเคล่าคล่อง\nเคลิบเคลิ้ม\nเคลิ้ม\nเคลีย\nเคลื่อน\nเคลือบ\nเคว้ง\nเคหะ\nเคหา\nเคอะ\nเค้า\nเคาน์เตอร์\nเคารพ\nเคาะ\nเคาะแคะ\nเคียง\nเคียด\nเคียน\nเคียม\nเคี่ยม\nเคียร\nเคียว\nเคี่ยว\nเคี้ยว\nเคือง\nแค\nแค่\nแค้\nแคแล\nแคดเมียม\nแค็ตตาล็อก\nแคแตร\nแคโทด\nแคน\nแค่น\nแค้น\nแคบ\nแคบหมู\nแคปซูล\nแคม\nแคร่\nแครก\nแครง\nแคระ\nแคลคูลัส\nแคลง\nแคลเซียม\nแคลน\nแคล้ว\nแคล่วคล่อง\nแคลอรี\nแคลิฟอร์เนียม\nแคว\nแควก\nแคว้น\nแคแสด\nแคะ\nโค\nโคก\nโคเคน\nโค่ง\nโค้ง\nโคจร\nโคเซแคนต์\nโคไซน์\nโคตร\nโคแทนเจนต์\nโคธา\nโคน\nโค่น\nโคบอลต์\nโคปผกะ\nโคม\nโคม่า\nโครก\nโครกคราก\nโครง\nโคร่ง\nโคร่งคร่าง\nโครม\nโครเมียม\nโครโมโซม\nโคราช\nโครำ\nโคล\nโคลง\nโคลน\nโควตา\nโคออร์ดิเนต\nใคร\nใคร่\nใคร่ครวญ\nไค\nไค้\nไคร้\nไคร้เครือ\nไคล\nไคล้\nฆนะ\nฆราวาส\nฆ้อง\nฆ่า\nฆาต\nฆาน\nฆานินทรีย์\nเฆี่ยน\nโฆรวิส\nโฆษก\nโฆษณา\nโฆษะ\nโฆษิต\nงก\nงง\nงด\nงดงาม\nงบ\nงม\nงวง\nง่วง\nงวด\nง่วน\nง้วน\nงวยงง\nงอ\nง้อ\nงอก\nงอกแงก\nง่อกแง่ก\nง่อง\nง่องแง่ง\nงอแง\nงอด\nงอดแงด\nงอน\nง่อน\nง่อนแง่น\nงอนหง่อ\nงอบ\nงอม\nง้อม\nงอย\nง่อย\nงัก\nงั่ก\nงั่ง\nงัด\nงัน\nงันงก\nงับ\nงัว\nงั่ว\nงัวเงีย\nงา\nง่า\nง้าง\nงาน\nง่าน\nงาบ\nงาม\nง่าม\nงาย\nง่าย\nง้าว\nงำ\nง่ำ\nง้ำ\nงิ้ว\nงี่เง่า\nงีบ\nงึก\nงึน\nงึม\nงุด\nงุนงง\nงุ่นง่าน\nงุบ\nงุบงิบ\nงุ้ม\nงุ่มง่าม\nงุย\nงู\nงูบ\nงูสวัด\nเงก\nเงย\nเงอะ\nเงอะงะ\nเงา\nเง่า\nเง้า\nเงาะ\nเงิน\nเงี่ยง\nเงี่ยน\nเงียบ\nเงี้ยว\nเงี่ยหู\nเงื้อ\nเงือก\nเงื่อง\nเงือด\nเงื่อน\nเงือบ\nเงื้อม\nแง\nแง่\nแง่ง\nแง่น\nแง้ม\nแงะ\nโง\nโง่\nโงก\nโงกเงก\nโงง\nโง่ง\nโง้ง\nโงงเงง\nโง่งเง่ง\nโงเง\nโงน\nโงนเงน\nไง้\nจก\nจง\nจ่ง\nจงกรม\nจงกล\nจงกลนี\nจงโคร่ง\nโจงโคร่ง\nจงอร\nจงอาง\nจด\nจดุรงค์\nจตุปัจจัย\nจตุลังคบาท\nจตุโลกบาล\nจตุสดมภ์\nจตุตถ\nจตุตถี\nจตุร\nจตุรงค์\nจตุรพักตร์\nจตุรพิธ\nจตุรพิธพร\nจน\nจบ\nจม\nจ่ม\nจมร\nจมรี\nจมูก\nจยุติ\nจร\nจรณะ\nจรด\nจรรจา\nจรรโจษ\nจรรม\nจรรยา\nจรรโลง\nจรลี\nจรวจ\nจรวด\nจรส\nจรอก\nจระเข้\nจระนำ\nจระบี\nจรัล\nจรัส\nจราจร\nจราญ\nจริก\nจริง\nจริต\nจริม\nจริยธรรม\nจริยวัตร\nจริยาวัตร\nจริยศาสตร์\nจริยศึกษา\nจริยา\nจรุง\nจรูง\nจรูญ\nจเร\nจล\nจลนพลศาสตร์\nจลนศาสตร์\nจลนี\nจลาจล\nจวก\nจ๊วก\nจวง\nจ้วง\nจ๋วง\nจวด\nจวน\nจวบ\nจวัก\nจอ\nจ่อ\nจ้อ\nจ๋อ\nจอก\nจ้อก\nจ๊อก\nจ้อกแจ้ก\nจอง\nจ้อง\nจ๋อง\nจ้องเต\nจองเปรียง\nจ้องหน่อง\nจองหอง\nจอแจ\nจ๋อแจ๋\nจอด\nจอน\nจ้อน\nจอนจ่อ\nจอบ\nจอม\nจ่อม\nจอมสุรางค์\nจ่อย\nจ้อย\nจ๋อย\nจอแส\nจะ\nจ้ะ\nจ๊ะ\nจ๋ะ\nจะกละ\nจะกลาม\nจะกูด\nจะขาบ\nจะเข้\nจะเข็บ\nจะงอย\nจะจะ\nจ๊ะจ๋า\nจะแจ้ง\nจะแจ่ม\nจะละเม็ด\nจะละหวั่น\nจัก\nจั้ก\nจักกาย\nจั๊กกิ้ม\nจักขุ\nจักจั่น\nจักจี้\nจั๊กจี้\nจั๊กเดียม\nจักร\nจักรพาก\nจักรวาก\nจักริน\nจักรี\nจั๊กเล้อ\nจักษุ\nจักแหล่น\nจัง\nจั้ง\nจั๋ง\nจังกวด\nจังกอบ\nจังก้า\nจังกูด\nจังโกฏก์\nจังงัง\nจั้งมั่ง\nจังไร\nจังหนับ\nจังหรีด\nจังหวะ\nจังหวัด\nจังหัน\nจัญไร\nจัณฑ์\nจัณฑาล\nจัด\nจัตตาฬีสะ\nจัตวา\nจัตุ\nจัตุรงค์\nจัตุรัส\nจัตุลังคบาท\nจัตุโลกบาล\nจัตุสดมภ์\nจัน\nจั่น\nจันโจษ\nจั่นดิน\nจันท์\nจันทน์\nจันทร์\nจันทรคติ\nจันทรคราส\nจันทรุปราคา\nจันทรเม็ด\nจันทวาร\nจันทัน\nจันอับ\nจับ\nจับกัง\nจับฉ่าย\nจับเดิม\nจับปิ้ง\nจับยี่กี\nจัมบก\nจัมปกะ\nจัมปา\nจัมมะ\nจัว\nจั่ว\nจั๊วะ\nจา\nจ่า\nจ้า\nจ๋า\nจาก\nจากพาก\nจาคะ\nจาคี\nจาง\nจ่าง\nจ้าง\nจางปาง\nจางวาง\nจาด\nจาตุรงค์\nจาตุรนต์\nจาตุรันต์\nจาน\nจ้าน\nจาบ\nจาบัล\nจาบัลย์\nจาป\nจาม\nจ่ามงกุฎ\nจามจุรี\nจามร\nจามรี\nจามีกร\nจ่าย\nจาร\nจ่ารง\nจารวาก\nจาระไน\nจาระบี\nจาริก\nจารึก\nจารี\nจารีต\nจารุ\nจ้าละหวั่น\nจาว\nจ้าว\nจ่าหวัก\nจำ\nจ้ำ\nจำกัด\nจำงาย\nจ้ำจี้\nจำเจ\nจำเดิม\nจำทวย\nจำนง\nจำนน\nจำนรรจ์\nจำนรรจา\nจำนวน\nจำนอง\nจำนัล\nจำนำ\nจำเนียน\nจำเนียม\nจำเนียร\nจำแนก\nจำบ่ม\nจำบัง\nจ้ำเบ้า\nจำปา\nจำปาดะ\nจำปี\nจำปูน\nจำพวก\nจำเพาะ\nจ้ำม่ำ\nจำรัส\nจำราญ\nจำรูญ\nจำเริญ\nจำเรียง\nจำลอง\nจำเลย\nจำเลาะ\nจำแลง\nจำแล่น\nจำหนับ\nจ๋ำหนับ\nจำหน่าย\nจำหระ\nจำหล่อ\nจำหลัก\nจำเหียง\nจำอวด\nจิ\nจิก\nจิ้งโกร่ง\nจิ้งจก\nจิงจ้อ\nจิ้งจอก\nจิงจัง\nจิ้งจัง\nจิงโจ้\nจิ้งหรีด\nจิ้งเหลน\nจิต\nจิตกาธาน\nจิตต์\nจิตร\nจิตรจุล\nจิตระ\nจิตรา\nจินเจา\nจินดา\nจินดาหนา\nจินดาหรา\nจินต์\nจิบ\nจิปาถะ\nจิ่ม\nจิ้ม\nจิ้มก้อง\nจิ้มลิ้ม\nจิรกาล\nจิ๋ว\nจี\nจี่\nจี้\nจี๋\nจี๋จ้อ\nจีแจ๊บ\nจี๊ด\nจีน\nจีนแส\nจีบ\nจีโบ\nจีม\nจีวร\nจึง\nจึ่ง\nจึ้ง\nจืด\nจุ\nจุก\nจุ๊กกรู๊\nจุกจิก\nจุกชี\nจุกผาม\nจุกโรหินี\nจุ่ง\nจุ๋งจิ๋ง\nจุฑา\nจุณ\nจุณณียบท\nจุด\nจุติ\nจุตูปปาตญาณ\nจุทส\nจุน\nจุ่น\nจุ้น\nจุนจู๋\nจุ้นจู๊\nจุนทการ\nจุนสี\nจุบ\nจุ๊บ\nจุบจิบ\nจุ๊บแจง\nจุ่ม\nจุ้ม\nจุ๋มจิ๋ม\nจุมพฏ\nจุมพรวด\nจุมพล\nจุมพิต\nจุมโพล่\nจุ้ย\nจุรณ\nจูรณ\nจุรี\nจุไร\nจุล\nจุลจอมเกล้า\nจุลวงศ์\nจุฬา\nจุฬาราชมนตรี\nจุฬาลัมพา\nจุฬาลำพา\nจู\nจู่\nจู้\nจู๋\nจูง\nจู้จี้\nจู๋จี๋\nจู๊ด\nจูบ\nเจ\nเจ๊ก\nเจ่ง\nเจ้ง\nเจ๊ง\nเจ๋ง\nเจ็ด\nเจ็ดตะคลี\nเจดีย์\nเจดียสถาน\nเจต\nเจตนา\nเจตพังคี\nเจตมูลเพลิง\nเจตสิก\nเจโตวิมุติ\nเจน\nเจ็บ\nเจรจา\nเจริญ\nเจริด\nเจรียง\nเจลียง\nเจว็ด\nเจษฎา\nเจ๊สัว\nเจอ\nเจ่อ\nเจ๋อ\nเจ๋อเจ๊อะ\nเจอร์เมเนียม\nเจอะ\nเจา\nเจ่า\nเจ้า\nเจ๊า\nเจาะ\nเจิ่ง\nเจิด\nเจิ่น\nเจิม\nเจีย\nเจียง\nเจียด\nเจียน\nเจี๋ยน\nเจี๊ยบ\nเจียม\nเจี๋ยมเจี้ยม\nเจียร\nเจียระไน\nเจียระบาด\nเจียว\nเจี๊ยวจ๊าว\nเจือ\nเจื่อน\nเจื้อย\nเจือสม\nแจ\nแจ้\nแจ๋\nแจก\nแจกัน\nแจง\nแจ่ง\nแจ้ง\nแจงลอน\nแจ๊ด\nแจ๊ดแจ๋\nแจตร\nแจ้น\nแจบ\nแจ่ม\nแจรง\nแจว\nแจ่ว\nแจ้ว\nแจ๋ว\nแจะ\nโจก\nโจ๊ก\nโจง\nโจ่งครึ่ม\nโจ๋งครึ่ม\nโจ่งครุ่ม\nโจ๋งเจ๋ง\nโจ่งแจ้ง\nโจท\nโจทก์\nโจทนา\nโจทย์\nโจน\nโจม\nโจร\nโจล\nโจษ\nโจษจัน\nใจ\nไจ\nไจ้\nฉก\nฉกรรจ์\nฉกษัตริย์\nฉกาจ\nฉกามาพจร\nฉกามาวจร\nฉง\nฉงน\nฉงาย\nฉทึง\nฉนวน\nฉนัง\nฉนาก\nฉนำ\nฉบัง\nฉบัด\nฉบับ\nฉบำ\nฉม\nฉมบ\nฉมวก\nฉมวย\nฉม่อง\nฉมัง\nฉมัน\nฉมา\nฉมำ\nฉล\nฉลวย\nฉลอง\nฉลอม\nฉลัก\nฉลับ\nฉลาก\nฉลาง\nฉลาด\nฉลาม\nฉลาย\nฉลิว\nฉลีก\nฉลุ\nฉลู\nฉวย\nฉวะ\nฉวัดเฉวียน\nฉวาง\nฉวี\nฉศก\nฉ้อ\nฉอก\nฉ่อง\nฉอด\nฉ่อย\nฉอเลาะ\nฉะ\nฉะฉาด\nฉะฉาน\nฉะฉ่ำ\nฉะฉี่\nฉะเฉื่อย\nฉะนั้น\nฉะนี้\nฉะอ้อน\nฉักกะ\nฉัฐ\nฉัด\nฉัตร\nฉัททันต์\nฉัน\nฉันท\nฉันท์\nฉันทะ\nฉันทา\nฉันทาคติ\nฉันทานุมัติ\nฉับ\nฉัพพรรณรังสี\nฉัยยา\nฉ่า\nฉาก\nฉาง\nฉ่าง\nฉ่าฉาว\nฉาด\nฉาดฉาน\nฉาตกภัย\nฉาน\nฉาบ\nฉาบฉวย\nฉาย\nฉายา\nฉาว\nฉ่ำ\nฉำฉา\nฉำแฉะ\nฉิ่ง\nฉิน\nฉินท์\nฉินทฤกษ์\nฉิบ\nฉิมพลี\nฉิว\nฉี่\nฉีก\nฉีด\nฉุ\nฉุก\nฉุด\nฉุน\nฉุป\nฉุป\nฉุย\nฉุยฉาย\nฉู่\nฉู่ฉี่\nฉูด\nฉูดฉาด\nเฉ\nเฉก\nเฉโก\nเฉ่ง\nเฉด\nเฉท\nเฉนียน\nเฉพาะ\nเฉย\nเฉลย\nเฉลว\nเฉลา\nเฉลิม\nเฉลี่ย\nเฉลียง\nเฉลี่ยง\nเฉลียบ\nเฉลียว\nเฉวียง\nเฉวียน\nเฉอะแฉะ\nเฉา\nเฉาก๊วย\nเฉาฮื้อ\nเฉาะ\nเฉิด\nเฉิบ\nเฉียง\nเฉียงพร้านางแอ\nเฉียด\nเฉียบ\nเฉียว\nเฉี่ยว\nเฉือน\nเฉื่อย\nแฉ\nแฉ่\nแฉก\nแฉง\nแฉ่ง\nแฉลบ\nแฉล้ม\nแฉะ\nโฉ\nโฉ่\nโฉเก\nโฉ่งฉ่าง\nโฉงเฉง\nโฉด\nโฉนด\nโฉบ\nโฉเบ๊\nโฉม\nโฉลก\nไฉน\nไฉไล\nชก\nชคัตตรัย\nชง\nชงโค\nชงฆ์\nชงฆา\nชงโลง\nชฎา\nชฎามังษี\nชฎามังสี\nชฎิล\nชด\nชน\nชนก\nชนนี\nชนม์\nชนวน\nชนะ\nชนัก\nชนา\nชนาง\nชนิด\nชเนตตี\nชบา\nชม\nชมดชม้อย\nชมนาด\nชมพู\nชมพู่\nชมรม\nชม้อย\nชม้าย\nชไม\nชยา\nชโย\nชรทึง\nชรริน\nชรอุ่ม\nชระล้ำ\nชระลุ\nชระอาบ\nชระเอม\nชรัด\nชรา\nชล\nชโลง\nชโลม\nช่วง\nชวด\nชวน\nชวย\nช่วย\nชวร\nชวลิต\nชวา\nชวาล\nชวาลา\nช่อ\nชอก\nช็อก\nช็อกโกเลต\nช็อกโกแลต\nชอง\nช่อง\nช้อง\nชองระอา\nชอน\nช่อน\nช้อน\nชอบ\nชอม\nช้อย\nชอล์ก\nชอ่ำ\nชอุ่ม\nชะ\nชะคราม\nชะงอก\nชะง่อน\nชะงัก\nชะงัด\nชะง้ำ\nชะงุ้ม\nชะเง้อ\nชะเงื้อม\nชะแง้\nชะโงก\nชะฉ่า\nชะช่อง\nชะชะ\nชะช้า\nชะโด\nชะตา\nชะต้า\nชะนี\nชะเนาะ\nชะเนียง\nชะพลู\nชะเพลิง\nชะมด\nชะมบ\nชะมวง\nชะมัง\nชะมัด\nชะแม่\nชะรอย\nชะลอ\nชะลอม\nชะล่า\nชะลาน\nชะลิน\nชะลูด\nชะเลง\nชะเลย\nชะแล็ก\nชะแลง\nชะวาก\nชะวาด\nชะเวิกชะวาก\nชะแวง\nชะอม\nชะอ้อน\nชะเอม\nชะโอน\nชัก\nชักคราม\nชักช้า\nชัง\nชั่ง\nชังคา\nชังฆ\nชัชวาล\nชัฏ\nชัด\nชัดช้า\nชัน\nชั้น\nชันกาด\nชันชี\nชันตุ\nชันนะตุ\nชันนุ\nชันโรง\nชันษา\nชันสูตร\nชัปนะ\nชัพ\nชัมพูนท\nชัย\nชัยพฤกษ์\nชัยภูมิ\nชัลลุกา\nชั่ว\nชั้ว\nชัวชม\nชา\nช้า\nชาคระ\nชาคริต\nชาคริยานุโยค\nช่าง\nช้าง\nช้าช่อน\nชาญ\nชาด\nชาดก\nชาต\nชาตบุษย์\nชาตรี\nชาตะ\nชาตา\nชาติ\nชาน\nชานุ\nช้าปี่\nชาปีไหน\nช้าแป้น\nช้าพลู\nชาม\nชามพูนท\nชามาดร\nชามาดา\nชามาตุ\nชาย\nชายา\nชาล\nชาลา\nชาลินี\nช้าเลือด\nชาว\nชาวี\nชำ\nช่ำ\nช้ำ\nชำงัด\nชำงาย\nช่ำชอง\nชำนะ\nชำนัญ\nชำนัน\nชำนาญ\nชำนิ\nชำเนียร\nชำมะนาด\nชำมะเลียง\nชำร่วย\nชำระ\nช้ำรั่ว\nชำรุด\nชำเรา\nชำเราะ\nชำแรก\nชำแระ\nชำเลือง\nชำแหละ\nชิ\nชิง\nชิ่ง\nชิงชัน\nชิงช้า\nชิงช้าชาลี\nชิงชี่\nชิงฮื้อ\nชิชะ\nชิชิ\nชิณณะ\nชิด\nชิเดนทรีย์\nชิต\nชิตินทรีย์\nชิน\nชิ้น\nชินโต\nชิโนรส\nชิม\nชิมแปนซี\nชิยา\nชิรณะ\nชิระ\nชิวหา\nชิสา\nชี\nชี่\nชี้\nชีปะขาว\nชีผะขาว\nชีผ้าขาว\nชีพ\nชีฟอง\nชีรณ\nชีระ\nชีวเคมี\nชีวประวัติ\nชีวภาพ\nชีววิทยา\nชีวะ\nชีวัน\nชีวา\nชีวาตม์\nชีวาลัย\nชีวิต\nชีวิตักษัย\nชีวิน\nชีวี\nชืด\nชื่น\nชื้น\nชื่อ\nชุก\nชุกชี\nชุ้ง\nชุณห\nชุด\nชุติ\nชุน\nชุบ\nชุม\nชุ่ม\nชุมนุม\nชุมพร\nชุมพา\nชุมแพรก\nชุมรุม\nชุมแสง\nชุมเห็ด\nชุ่ย\nชุลมุน\nชุลี\nชุษณะ\nชู\nชู้\nเช็ค\nเช้ง\nเช้งวับ\nเชงเลง\nเช็ด\nเชน\nเช่น\nเชย\nเชลง\nเชลย\nเชลแล็ก\nเชลียง\nเชวง\nเชษฐะ\nเชษฐา\nเชอ\nเช่า\nเช้า\nเชาว์\nเชาวน์\nเชิง\nเชิญ\nเชิด\nเชิ้ต\nเชียง\nเชี่ยน\nเชียบ\nเชี่ยม\nเชียร\nเชียร์\nเชียว\nเชี่ยว\nเชื่อ\nเชื้อ\nเชือก\nเชื่อง\nเชือด\nเชือน\nเชื่อม\nแช\nแช่\nแช่ง\nแชงมา\nแชบ๊วย\nแช่ม\nแชร์\nแชล่ม\nแชสซี\nแชะ\nโชก\nโชค\nโชงโลง\nโชดก\nโชดึก\nโชต\nโชตก\nโชติ\nโชติก\nโชน\nโชมโรม\nโชย\nโชยงการ\nโชยชาย\nโชยติส\nโชว์\nใช่\nใช้\nไช\nไชนะ\nไชย\nไชโย\nซก\nซ่ก\nซงดำ\nซ่งฮื้อ\nซด\nซน\nซ้น\nซบ\nซม\nซวดเซ\nซวน\nซวย\nซอ\nซอก\nซอง\nซ่อง\nซ้อง\nซองแมว\nซ้องแมว\nซอน\nซ่อน\nซ้อน\nซอม\nซ่อม\nซ้อม\nซอมซ่อ\nซอย\nซอส\nซัก\nซักส้าว\nซัง\nซั้ง\nซัด\nซับ\nซัลฟา\nซั้ว\nซา\nซ่า\nซาก\nซาง\nซ่าง\nซาด\nซาน\nซ่าน\nซาบซ่าน\nซาบซึ้ง\nซ่าโบะ\nซาแมเรียม\nซ้าย\nซาลาเปา\nซาว\nซ่าหริ่ม\nซำ\nซ้ำ\nซิ\nซี\nซิก\nซิกข์\nซิกซี้\nซิกแซ็ก\nซิการ์\nซิงโคนา\nซิ่น\nซินนามิก\nซินแส\nซิบ\nซิป\nซิฟิลิส\nซิลิคอน\nซิว\nซี่\nซีก\nซีเซียม\nซีด\nซี้ด\nซีนอน\nซีป่าย\nซีเมนต์\nซีเรียม\nซีลีเนียม\nซีอิ๊ว\nซึก\nซึง\nซึ่ง\nซึ้ง\nซึม\nซื่อ\nซื้อ\nซุก\nซุง\nซุน\nซุบ\nซุป\nซุ่ม\nซุ้ม\nซุ่มซ่าม\nซุย\nซู่\nซูโครส\nซูด\nซู้ด\nซูดซาด\nซูบ\nเซ\nเซ็ก\nเซแคนต์\nเซ็ง\nเซ่ง\nเซ้ง\nเซ็งแซ่\nเซต\nเซน\nเซ็น\nเซ่น\nเซนติกรัม\nเซนติเกรด\nเซนติเมตร\nเซนติลิตร\nเซปักตะกร้อ\nเซราะ\nเซรุ่ม\nเซลเซียส\nเซลล์\nเซลลูลอยด์\nเซลลูโลส\nเซ่อ\nเซอร์โคเนียม\nเซอะ\nเซา\nเซ้าซี้\nเซาะ\nเซิง\nเซิ้ง\nเซียน\nเซียบ\nเซียมซี\nเซียว\nเซี่ยว\nเซี่ยวกาง\nเซื่อง\nแซ\nแซ่\nแซ็กคาริน\nแซง\nแซงแซว\nแซด\nแซบ\nแซม\nแซยิด\nแซ่ว\nแซะ\nโซ\nโซ่\nโซก\nโซ่ง\nโซงโขดง\nโซเซ\nโซดา\nโซเดียม\nโซม\nโซรม\nโซลา\nไซ\nไซ้\nไซเกิล\nไซโคลน\nไซน์\nไซยาไนด์\nไซร้\nไซเรน\nไซโล\nฌาน\nฌาปน\nฌาปนกิจ\nฌาปนสถาน\nเฌอ\nเฌอเอม\nญวน\nญัตติ\nญาณ\nญาติ\nญานาซะฮ์\nญิบ\nญี่ปุ่น\nเญยธรรม\nไญยธรรม\nฎีกา\nฐกัด\nฐากูร\nฐาน\nฐานะ\nฐานันดร\nฐานานุกรม\nฐานานุรูป\nฐานานุศักดิ์\nฐานียะ\nฐาปน\nฐาปนา\nฐายี\nฐิต\nฐิติ\nฑาหก\nฑาหะ\nเฒ่า\nณรงค์\nเณร\nดก\nดง\nด้ง\nด้น\nดนโด่\nดนตรี\nดนัย\nดนุ\nดนู\nดบัสวิน\nดบัสวี\nดม\nดรงค์\nดรณี\nดรรชนี\nดราฟต์\nดรุณ\nดรุณี\nดล\nดวง\nด้วง\nดวด\nด่วน\nด้วน\nด้วย\nดอก\nดอง\nด่อง\nด้อง\nดองฉาย\nดองดึง\nดอด\nดอน\nด่อน\nดอม\nด้อม\nดอย\nด้อย\nดอลลาร์\nดะ\nดะโต๊ะ\nดะหมัง\nดัก\nดักดาน\nดักแด้\nดัง\nดั่ง\nดั้ง\nดัชนี\nดัด\nดัตช์\nดัน\nดั้น\nดับ\nดัมพ์\nดั้วเดี้ย\nดัสกร\nดา\nด่า\nดาก\nด่าง\nด้าง\nดาด\nดาน\nด่าน\nด้าน\nดาบ\nดาบส\nดาม\nด้าม\nด้ามจิ้ว\nดามพ์\nดาย\nด้าย\nดารกะ\nดารณี\nดารดาษ\nดาระ\nดารา\nดาล\nดาลัด\nดาว\nด่าว\nด้าว\nดาวดึงส์\nดาวบส\nดาษ\nดาษดา\nดำ\nด่ำ\nด้ำ\nดำกล\nดำเกิง\nดำแคง\nดำดง\nดำนาณ\nดำเนิน\nดำบล\nดำรง\nดำรวจ\nดำรัส\nดำริ\nดำรี\nดำรู\nดำฤษณา\nดำเลิง\nดิก\nดิ่ง\nดิฉัน\nดิฐ\nดิตถ์\nดิถี\nดิน\nดิ้น\nดิบ\nดิรัจฉาน\nดิลก\nดิ่ว\nดิ้ว\nดิ้วเดี้ยว\nดิษฐ์\nดิสโพรเซียม\nดี\nดีเซล\nดีด\nดีดีที\nดีบุก\nดีปลี\nดีเปรสชัน\nดีหมี\nดีหลี\nดึก\nดึง\nดึ่ง\nดึ่ม\nดื่น\nดื่ม\nดือ\nดื้อ\nดุ\nดุก\nดุกดิก\nดุกทะเล\nดุ้ง\nดุ้งดิ้ง\nดุจ\nดุด\nดุน\nดุ้น\nดุบ\nดุม\nดุ่ม\nดุ่ย\nดุรงค์\nดุริยะ\nดุริยางค์\nดุริยางคศาสตร์\nดุริยางคศิลป์\nดุล\nดุษฎี\nดุษณี\nดุษณีภาพ\nดุษิต\nดุสิต\nดุเหว่า\nดู\nดูกค่าง\nดูกร\nดูด\nดูรา\nดูแล\nเด\nเด่\nเดก\nเด็ก\nเดกซ์โทรส\nเดคากรัม\nเดคาเมตร\nเดคาลิตร\nเด้ง\nเด็จ\nเดช\nเดชน์\nเดชนะ\nเดชะ\nเดโช\nเดซิกรัม\nเดซิเมตร\nเดซิลิตร\nเด็ด\nเดน\nเด่น\nเดนมาร์ก\nเดรัจฉาน\nเด๋อ\nเด๋อด๋า\nเดา\nเด้า\nเดาะ\nเดิน\nเดิ่น\nเดิม\nเดียง\nเดียด\nเดียรดาษ\nเดียรถีย์\nเดียรัจฉาน\nเดียว\nเดี่ยว\nเดี๋ยว\nเดียะ\nเดื่อ\nเดือก\nเดื่อง\nเดือด\nเดือน\nเดือย\nแด\nแด่\nแดก\nแด็ก\nแดกงา\nแดกแด้\nแดง\nแดด\nแดน\nแด่น\nแด่ว\nแดะ\nแดะแด๋\nโด\nโด่\nโดกเดก\nโด่ง\nโดด\nโดน\nโดม\nโดมร\nโดย\nโดรณ\nใด\nได\nได้\nไดแซ็กคาไรด์\nไดนาโม\nไดนาไมต์\nไดโนเสาร์\nไดเรกตริกซ์\nตก\nต๊กโต\nตง\nต๋ง\nตงฉิน\nตงิด\nตงุ่น\nตด\nตติย\nตถาคต\nตน\nต้น\nตนัย\nตนุ\nตบ\nตบะ\nตปนียะ\nตม\nต้ม\nตมูก\nตยาคี\nตรง\nตรณี\nตรม\nตรรก\nตรรกะ\nตรลบ\nตรลอด\nตรลาด\nตรวจ\nตรวน\nตรอก\nตรอง\nตรอมใจ\nตรอมตรม\nตระ\nตระกล\nตระกวน\nตระกอง\nตระการ\nตระกูล\nตระคัร\nตระเตรียม\nตระนาว\nตระบก\nตระบอก\nตระบอง\nตระบัด\nตระบัน\nตระเบ็ง\nตระแบก\nตระแบง\nตระโบม\nตระพอง\nตระพัง\nตระลาการ\nตระวัน\nตระเว็ด\nตระเวน\nตระสัก\nตระหง่าน\nตระหนก\nตระหนัก\nตระหน่ำ\nตระหนี่\nตรัง\nตรังค์\nตรับ\nตรับฟัง\nตรัย\nตรัยตรึงศ์\nตรัส\nตรัสสา\nตรา\nตรากตรำ\nตราชู\nตราบ\nตราสัง\nตรำ\nตริ\nตริว\nตรี\nตรีปวาย\nตรีพิธพรรณ\nตรียัมปวาย\nตรึก\nตรึง\nตรุ\nตรุณ\nตรุณะ\nตรุษ\nตรู\nตรู่\nตฤณ\nตฤตีย\nตฤษณา\nตลก\nตลบ\nตลอด\nตลับ\nตลาด\nตลิ่ง\nตลึง\nตวง\nต่วน\nต้วมเตี้ยม\nตวัก\nตวัด\nตวาด\nตอ\nตอม่อ\nต่อ\nต้อ\nตอก\nต๊อก\nต๊อกต๋อย\nตอง\nต้อง\nตองกราย\nต้องเต\nตองแตก\nต่องแต่ง\nตองเหลือง\nตอด\nตอน\nต้อน\nตอบ\nตอเบา\nตอม\nต่อม\nต๋อม\nต่อย\nต้อย\nต้อยตริ่ง\nต้อยติ่ง\nต้อยตีวิด\nตอแย\nตอร์ปิโด\nต่อไส้\nตอแหล\nตะ\nตะกรน\nตะกร้อ\nตะกรัน\nตะกรับ\nตะกร้า\nตะกราม\nตะกรุด\nตะกรุม\nตะกรุมตะกราม\nตะกละ\nตะกลาม\nตะกวด\nตะกอ\nตะกอน\nตะกัง\nตะกั่ว\nตะกาง\nตะกาด\nตะกาย\nตะกาว\nตะกุกตะกัก\nตะกุย\nตะกู\nตะกูด\nตะเกียกตะกาย\nตะเกียง\nตะเกียบ\nตะแก\nตะแก่\nตะแกรง\nตะโก\nตะโก้\nตะโกก\nตะโกน\nตะโกรง\nตะโกรม\nตะไกร\nตะขบ\nตะขอ\nตะขาบ\nตะขิดตะขวง\nตะเข้\nตะเข็บ\nตะโขง\nตะคร้อ\nตะครอง\nตะครั่นตะครอ\nตะคร้ำ\nตะคริว\nตะคิว\nตะครุบ\nตะคอก\nตะคัน\nตะค้า\nตะคาก\nตะค้าน\nตะคุ่ม\nตะเครียว\nตะเคียว\nตะเคียน\nตะแคง\nตะไคร่\nตะไคร้\nตะเฆ่\nตะนอย\nตะนาว\nตะบม\nตะบอง\nตะบอย\nตะบัน\nตะบิ้ง\nตะบิด\nตะบิดตะบอย\nตะบี้ตะบัน\nตะบึง\nตะบูน\nตะเบ็ง\nตะเบ็งมาน\nตะเบ๊ะ\nตะแบก\nตะแบง\nตะโบม\nตะไบ\nตะปบ\nตะปลิง\nตะปิ้ง\nตะปุ่มตะป่ำ\nตะปู\nตะพง\nตะพด\nตะพอง\nตะพัก\nตะพัง\nตะพัด\nตะพั้น\nตะพาก\nตะพาน\nตะพาบ\nตะพาย\nตะพึด\nตะพึดตะพือ\nตะพุ่น\nตะเพรา\nตะเพิง\nตะเพิด\nตะเพียน\nตะโพก\nตะโพง\nตะโพน\nตะเภา\nตะใภ้\nตะม่อ\nตะมอย\nตะรังกะนู\nตะรังตังกวาง\nตะรังตังช้าง\nตะราง\nตะลอง\nตะลอน\nตะล่อม\nตะละ\nตะลาน\nตะลิงปลิง\nตะลิบ\nตะลีตะลาน\nตะลึง\nตะลึงพรึงเพริด\nตะลุง\nตะลุ่ม\nตะลุ่มนก\nตะลุมบอน\nตะลุ่มโปง\nตะลุมพอ\nตะลุมพุก\nตะลุย\nตะเลง\nตะแลงแกง\nตะไล\nตะวัน\nตะเวน\nตะหลิว\nตะหลุก\nตะหลุง\nตะแหง่ว\nตะแหมะแขะ\nตะโหงก\nตัก\nตักกะ\nตักเตือน\nตั๊กแตน\nตักษัย\nตัง\nตั่ง\nตั้ง\nตังเก\nตังฉ่าย\nตังเม\nตังวาย\nตังโอ๋\nตัจฉก\nตัจฉนี\nตัณฑุล\nตัณหา\nตัด\nตัน\nตันตระ\nตันติ\nตันหยง\nตับ\nตับปิ้ง\nตัว\nตั๋ว\nตัวจี๊ด\nตัวตืด\nตั้วโผ\nตั้วเหี่ย\nตา\nตาก\nตากวาง\nต่าง\nตาด\nตาน\nต่าน\nต้าน\nตานนกกด\nตานี\nตาบ\nตาม\nตามะแน\nตามิน\nตาย\nตาราไต\nตาล\nตาลุ\nต๋าว\nตาเสือ\nตาหนู\nตาฬ\nตำ\nต่ำ\nตำนาน\nตำบล\nตำแบ\nตำแย\nตำรวจ\nตำรับ\nตำรา\nตำรุ\nตำลึง\nตำเสา\nตำหนัก\nตำหนิ\nตำแหน่ง\nติ\nติก\nติ๊ก\nติกะ\nติกาหรัง\nติง\nติ่ง\nติ๋ง\nติ่งตั่ง\nติ๋งต่าง\nติงส\nติงสติ\nติณ\nติด\nติตติกะ\nติตติร\nติตถ\nติตถะ\nติถี\nติมิงคละ\nติรัจฉาน\nติลก\nติละ\nติ้ว\nตี\nตี่\nตีน\nตีบ\nตีรถะ\nตีระ\nตึ\nตึก\nตึ้ก\nตึ้กตั้ก\nตึง\nตึดตื๋อ\nตึ๊ดตื๋อ\nตืด\nตื่น\nตื้น\nตื้อ\nตื๊อ\nตื๋อ\nตุ\nตุ๊\nตุ๊กแก\nตุ๊กตา\nตุ๊กต่ำ\nตุกติก\nตุ๊กติ๊ก\nตุ๊กตุ่น\nตุ๊กตุ๋ย\nตุง\nตุ้งก่า\nตุ้งติ้ง\nตุ๊ดตู่\nตุน\nตุ่น\nตุ๋น\nตุนาหงัน\nตุบ\nตุ้บ\nตุ๊บป่อง\nตุปัดตุป่อง\nตุปัดตุเป๋\nตุ่ม\nตุ้ม\nตุ๋ม\nตุ้มกว้าว\nตุมกา\nตุ้มแซะ\nตุมตัง\nตุ้มเต๋น\nตุ้มปี่\nตุมพะ\nตุ่ย\nตุ้ย\nตุ๊ย\nตุ๋ยตุ่ย\nตุรคะ\nตุรงค์\nตุล\nตุลา\nตุหรัดตุเหร่\nตู\nตู่\nตู้\nตูก\nตูด\nตูบ\nตูม\nเต๊ก\nเต็ง\nเต่ง\nเตช\nเตโช\nเต้น\nเต็นท์\nเต็ม\nเตย\nเตร่\nเตร็ด\nเตรตา\nเตรียม\nเตรียมตรม\nเตละ\nเตลิด\nเตว็ด\nเต่อ\nเตอะ\nเตะ\nเตา\nเต่า\nเต้า\nเต๋า\nเต่าเกียด\nเต้าเจี้ยว\nเต้าทึง\nเต้าหู้\nเต้าฮวย\nเต๊าะ\nเตาะแตะ\nเติ่ง\nเติบ\nเติม\nเตี้ย\nเตียง\nเตียน\nเตียบ\nเตี๋ยม\nเตียรถ์\nเตียว\nเตี่ยว\nเตือน\nแต่\nแต้\nแตก\nแตง\nแต่ง\nแตงเม\nแต้จิ๋ว\nแตด\nแต๊ดแต๋\nแตน\nแต้ม\nแตร\nแตระ\nแต้ว\nแต้วแร้ว\nแต้วแล้ว\nแต่ว่า\nแต้แว้ด\nแตะ\nโต\nโต้\nโตก\nโต่ง\nโต้ง\nโตงเตง\nโตฎก\nโต๊ด\nโตน\nโตนด\nโต้โผ\nโตมร\nโตย\nโตรก\nโต๊ะ\nใต้\nไต\nไต่\nไต้\nไต๋\nไตร\nไตรกิศยา\nไตรดายุค\nไตร่ตรอง\nไตรย\nไต้หวัน\nถก\nถกล\nถงาด\nถด\nถนน\nถนอม\nถนัด\nถนัน\nถนำ\nถนิม\nถม\nถ่ม\nถมอ\nถมึงทึง\nถลก\nถลกบาตร\nถลน\nถล่ม\nถลอก\nถลัน\nถลา\nถลาก\nถลาย\nถลำ\nถลึงตา\nถลุง\nถ่วง\nถ้วน\nถ้วย\nถวัล\nถวัลย์\nถวาย\nถวิน\nถวิล\nถ่อ\nถ้อ\nถอก\nถอง\nถ่อง\nถ้อง\nถอด\nถอน\nถอบ\nถอบแถบ\nถ่อม\nถอย\nถ่อย\nถ้อย\nถะ\nถะถั่น\nถะมัดถะแมง\nถัก\nถัง\nถั่ง\nถัด\nถัทธ\nถัน\nถั่น\nถับ\nถัมภ์\nถัว\nถั่ว\nถา\nถ้า\nถาก\nถาง\nถ่าง\nถาด\nถาน\nถ่าน\nถาบ\nถาม\nถามะ\nถ่าย\nถ่าว\nถาวร\nถาวรธิรา\nถ้ำ\nถิ่น\nถี่\nถีบ\nถึก\nถึง\nถือ\nถุง\nถุน\nถุย\nถู\nถูก\nเถกิง\nเถน\nเถร\nเถระ\nเถรานุเถระ\nเถรี\nเถลไถล\nเถลิง\nเถลือกถลน\nเถ่อ\nเถอะ\nเถา\nเถ้า\nเถาวัลย์\nเถาะ\nเถิก\nเถิง\nเถิด\nเถิดเทิง\nเถิน\nเถียง\nเถียร\nเถือ\nเถือก\nเถื่อน\nแถ\nแถก\nแถง\nแถน\nแถบ\nแถม\nแถลง\nแถลบ\nแถว\nโถ\nโถง\nโถงเถง\nโถบ\nโถม\nโถมนาการ\nไถ\nไถ่\nไถ้\nไถง\nไถล\nทกล้า\nทแกล้ว\nท่ง\nทด\nทน\nท้น\nทนต์\nทนโท่\nทนาย\nทบ\nทบวง\nทมอ\nทมะ\nทมิฬ\nทโมน\nทยอย\nทแยง\nทรกรรม\nทรชน\nทรชาติ\nทรพิษ\nทรยศ\nทรราช\nทรลักษณ์\nทรง\nทรพี\nทรมาทรกรรม\nทรมาน\nทรรทึง\nทรรป\nทรรปณ์\nทรรปณะ\nทรรศนะ\nทรรศนาการ\nทรรศนีย์\nทรวง\nทรวดทรง\nทรวาร\nทรหด\nทรหวล\nทรหึง\nทรอมโบน\nทระนง\nทรัพย์\nทรัพยากร\nทรัมเป็ต\nทรานซิสเตอร์\nทราบ\nทราม\nทราย\nทรุด\nทฤษฎี\nทลาย\nทลิท\nทลิททก\nทวง\nท้วง\nท่วงท่า\nท่วงทำนอง\nท่วงที\nทวด\nทวน\nท้วน\nท่วม\nท้วม\nทวย\nท่วย\nท้วย\nทวอย\nทวัตดึงส์\nทวัย\nทวา\nทวาบร\nทว่า\nทวาย\nทวาร\nทวิ\nทวิช\nทวิตีย์\nทวิตียา\nทวี\nทวีธาภิเษก\nทวีป\nทศ\nทศมี\nทศางค์\nทหระ\nทหาร\nทอ\nท่อ\nท้อ\nทอก\nทอง\nท่อง\nท้อง\nทองกวาว\nทองภู\nทองลิน\nทองหลาง\nทองโหลง\nทองอุไร\nทอด\nทอน\nท่อน\nทอนซิล\nทอฟฟี่\nท่อม\nทอย\nทอเรียม\nทะ\nทะงัน\nทะนง\nทะนน\nทะนาน\nทะนุ\nทะเบียน\nทะมัดทะแมง\nทะมึน\nทะมื่น\nทะแม่ง\nทะยาน\nทะเยอทะยาน\nทะแย\nทะร่อทะแร่\nทะลวง\nทะลอก\nทะลัก\nทะลาย\nทะลึ่ง\nทะลุ\nทะลุดทะลาด\nทะเล\nทะเล้น\nทะเล่อทะล่า\nทะเลาะ\nทะเลิ่กทะลั่ก\nทะวาย\nทัก\nทักข์\nทักขิญ\nทักขิณ\nทักขิณา\nทักขิณาวัฏ\nทักขิโณทก\nทักขิไณยบุคคล\nทักทิน\nทักษะ\nทักษา\nทักษิณ\nทักษิณา\nทักษิโณทก\nทัง\nทั่ง\nทั้ง\nทังวล\nทังวี้ทังวล\nทังสเตน\nทัณฑ์\nทัณฑกรรม\nทัณฑฆาต\nทัณฑสถาน\nทัณฑะ\nทัณฑิกา\nทัณฑิมา\nทัณฑีบท\nทัด\nทัดทา\nทัต\nทัน\nทันต์\nทันตชะ\nทันตแพทย์\nทันติน\nทันตี\nทันธ์\nทับ\nทับทิม\nทับสมิงคลา\nทัพ\nทัพพะ\nทัพพี\nทั่ว\nทัศ\nทัศน์\nทัศนะ\nทัศนา\nทัศนคติ\nทัศนวิสัย\nทัศนศาสตร์\nทัศนศิลป์\nทัศนศึกษา\nทัศนาการ\nทัศนาจร\nทัศนีย์\nทัศนียภาพ\nทัศนูปกรณ์\nทัศไนย\nทัสนานุตริยะ\nทัฬหะ\nทัฬหิ\nทัฬหี\nทา\nท่า\nท้า\nทาก\nทาง\nท้าง\nทาฐะ\nทาฐิกะ\nทาฒะ\nทาฒิกะ\nทาน\nท่าน\nทานต์\nทานพ\nทาบ\nทาม\nท่ามกลาง\nทาย\nท้าย\nทายก\nทายัช\nทายาด\nทายาท\nทายิกา\nทารก\nทารพี\nทาริกา\nทารุณ\nทาว\nท่าว\nท้าว\nทาส\nทาสี\nทำ\nทำนบ\nทำนอง\nทำนาย\nทำนุ\nทำนูล\nทำเนา\nทำเนียบ\nทำไม\nทำลาย\nทำเล\nทิคัมพร\nทิฆัมพร\nทิ้ง\nทิงเจอร์\nทิ้งถ่อน\nทิ้งทูด\nทิชะ\nทิชากร\nทิชาชาติ\nทิฏฐะ\nทิฏฐานุคติ\nทิฏฐุชุกรรม\nทิฐธรรม\nทิฐิ\nทิด\nทิต\nทิน\nทิพ\nทิพย์\nทิพา\nทิม\nทิ่ม\nทิมทอง\nทิว\nทิวงคต\nทิวทัศน์\nทิวา\nทิศ\nทิศา\nทิศานุทิศ\nที\nที่\nทีฆชาติ\nทีฆนิกาย\nทีฆสระ\nทีฆายุ\nทีป\nทีม\nทีเอ็นที\nทึก\nทึกทัก\nทึ่ง\nทึ้ง\nทึดทือ\nทึนทึก\nทึบ\nทึม\nทึ่ม\nทื่อ\nทุ\nทุก\nทุกข์\nทุกขลาภ\nทุกขเวทนา\nทุกขารมณ์\nทุกฏ\nทุกรกิริยา\nทุกะ\nทุกัง\nทุกูล\nทุคตะ\nทุคติ\nทุ่ง\nทุ้ง\nทุงงะ\nทุจริต\nทุด\nทุทรรศนนิยม\nทุนิยม\nทุน\nทุ่น\nทุนนิมิต\nทุบ\nทุบทู\nทุปปัญญา\nทุพพรรณ\nทุพพล\nทุพพลภาพ\nทุพภิกขภัย\nทุม\nทุ่ม\nทุ้ม\nทุย\nทุ้ย\nทุรกันดาร\nทุรชน\nทุรชาติ\nทุรพล\nทุรลักษณ์\nทุรน\nทุรนทุราย\nทุรัศ\nทุราคม\nทุราจาร\nทุเรศ\nทุเรียน\nทุลักทุเล\nทุเลา\nทุศีล\nทุสสะ\nทุสสีล\nทู\nทูโม่ง\nทู่\nทู้\nทูกัง\nทู่ซี้\nทูต\nทูตานุทูต\nทูน\nทูบ\nทูม\nทูล\nทูเลียม\nเท\nเท่\nเทคนิค\nเทคนีเชียม\nเทคโนโลยี\nเท้ง\nเท้งเต้ง\nเท็จ\nเทนนิส\nเทพ\nเทพา\nเทพารักษ์\nเทพยเจ้า\nเทพยดา\nเทพยุดา\nเทพิน\nเทพินทร์\nเทพี\nเทเพนทร์\nเทโพ\nเทริด\nเทลลูเรียม\nเทวทัณฑ์\nเทวดา\nเทวทูต\nเทวธรรม\nเทวนาครี\nเทวนิยม\nเทวรูป\nเทวโลก\nเทววิทยา\nเทวสถาน\nเทวศ\nเทวษ\nเทวัญ\nเทวัน\nเทวาลัย\nเทวินทร์\nเทวี\nเทเวศ\nเทเวศร์\nเทเวศวร์\nเทศ\nเทศะ\nเทศาภิบาล\nเทศน์\nเทศนา\nเทห์\nเท่ห์\nเทห์ฟากฟ้า\nเทหวัตถุ\nเท่อ\nเท้อ\nเทอญ\nเทอม\nเทอร์เบียม\nเทอร์โมมิเตอร์\nเทอะทะ\nเทา\nเท่า\nเท้า\nเท้ายายม่อม\nเท่ารึง\nเทิ่ง\nเทิด\nเทิน\nเทิบ\nเทิบทาบ\nเทิ้ม\nเที่ยง\nเทียด\nเทียน\nเที้ยน\nเทียบ\nเทียม\nเทียร\nเที้ยร\nเทียว\nเที่ยว\nเทือ\nเทื่อ\nเทื้อ\nเทือก\nแท้\nแท็กซี่\nแทง\nแท่ง\nแท้ง\nแท็งก์\nแทงทวย\nแทงวิสัย\nแทตย์\nแทน\nแท่น\nแทนเจนต์\nแทนทาลัม\nแทบ\nแทรก\nแทรกเตอร์\nแทลเลียม\nแทะ\nโท\nโท่\nโทกเทก\nโทง\nโทงเทง\nโทณะ\nโทน\nโทนโท่\nโทมนัส\nโทรคมนาคม\nโทรทรรศน์\nโทรทัศน์\nโทรพิมพ์\nโทรภาพ\nโทรเลข\nโทรศัพท์\nโทรสาร\nโทรม\nโทษ\nโทษา\nโทษานุโทษ\nโทสะ\nโทสาคติ\nโทโส\nโทหฬินี\nไท\nไท้\nไทเทเนียม\nไทเทรต\nไทย\nไทร\nไทวะ\nธง\nธงก์\nธชะ\nธชี\nธตรฐ\nธนบัตร\nธนสมบัติ\nธนสาร\nธนะ\nธนา\nธนาคม\nธนาคาร\nธนาณัติ\nธเนศ\nธโนปจัย\nธไนศวรรย์\nธนิต\nธนิษฐะ\nธนิษฐา\nธนุ\nธนุรวิทยา\nธนุรเวท\nธนู\nธม\nธมกรก\nธรณะ\nธรณิน\nธรณินทร์\nธรณิศ\nธรณิศร\nธรณิศวร์\nธรณี\nธรมาน\nธรรม\nธรรมนูญ\nธรรมยุต\nธรรมยุติกนิกาย\nธรรมะ\nธรรมาทิตย์\nธรรมาธรรม\nธรรมาธิปไตย\nธรรมาธิษฐาน\nธรรมานุสาร\nธรรมาภิมุข\nธรรมาภิสมัย\nธรรมายตนะ\nธรรมารมณ์\nธรรมาสน์\nธรรมิก\nธรา\nธราดล\nธราธร\nธราธาร\nธราธิบดี\nธราธิป\nธริษตรี\nธเรษตรี\nธเรศ\nธวัช\nธัช\nธัญ\nธัญญาหาร\nธันยา\nธันยาวาท\nธันวาคม\nธัมมะ\nธาดา\nธาตรี\nธาตวากร\nธาตุ\nธาตุโขภ\nธาตุมมิสสา\nธานิน\nธานินทร์\nธานี\nธาร\nธารกำนัล\nธารคำนัล\nธารณะ\nธารณา\nธารา\nธาษตรี\nธำมรงค์\nธำรง\nธิดา\nธิติ\nธีระ\nธุช\nธุดงค์\nธุดงควัตร\nธุต\nธุตตะ\nธุมเกตุ\nธุมา\nธุรการ\nธุรกิจ\nธุระ\nธุรำ\nธุลี\nธุวดารา\nธุวภาค\nธุวมณฑล\nธูป\nเธนุ\nเธอ\nเธียร\nโธ่\nโธวนะ\nนก\nนกุล\nนขลิขิต\nนขะ\nนขา\nนเคนทร์\nนโคทร\nนคร\nนครินทร์\nนคเรศ\nนง\nนงคุฐ\nนที\nนนตรา\nนนท์\nนันทน์\nนนทรี\nนนทลี\nนนทิ\nนบ\nนปุงสกลิงค์\nนปุงสกลึงค์\nนพ\nนพนิต\nนภจร\nนภดล\nนภศูล\nนภา\nนภาลัย\nนม\nนมตำเรีย\nนมตำเลีย\nนมะ\nนมัสการ\nนมาซ\nนยนะ\nนยนา\nนโยบาย\nนรชาติ\nนรเทพ\nนรนาถ\nนรบดี\nนรบาล\nนรสิงห์\nนรสีห์\nนรา\nนรากร\nนราธิป\nนรินทร์\nนริศ\nนริศร\nนริศวร\nนเรศ\nนเรศวร\nนเรศวร์\nนโรดม\nนรก\nนรกานต์\nนรการ\nนรี\nนฤเทพ\nนฤบดี\nนฤบาล\nนฤเบศ\nนฤปเวศม์\nนฤปัตนี\nนฤคหิต\nนฤนาท\nนฤมล\nนฤตย์\nนฤตยสถาน\nนฤพาน\nนฤมาณ\nนฤมิต\nนลาฏ\nนลิน\nนลินี\nนวกรรม\nนวการ\nนวกิจ\nนวนิยาย\nนวปฎล\nนวรัตน์\nนวโลหะ\nนวกะ\nนวโกวาท\nนวด\nนวม\nน่วม\nนวมี\nนวย\nนวล\nนวัตกรรม\nนวาระ\nนหารุ\nนหุต\nนฬการ\nนอ\nนอก\nนอง\nน่อง\nน้อง\nน่องแน่ง\nนอต\nนอน\nนอบ\nน้อม\nน้อย\nน้อยหน่า\nน้อยโหน่ง\nนะ\nนะแน่ง\nนัก\nนักขัต\nนักขัตฤกษ์\nนักษัตร\nนักสราช\nนัข\nนั่ง\nนังคัล\nนัจ\nนัฑ\nนัด\nนัดดา\nนัตถุ์\nนั่น\nนั้น\nนันททายี\nนันทนาการ\nนันทวัน\nนันทิ\nนับ\nนัย\nนัยน์\nนัยนา\nนัว\nนัวเนีย\nนา\nน่า\nน้า\nนาก\nนากบุด\nนากาสาหรี\nนาค\nนาคร\nนาคา\nนาคาวโลก\nนาคินทร์\nนาคี\nนาเคนทร์\nนาเคศวร\nนาง\nนางเกล็ด\nนางนวล\nนางนูน\nนางรม\nนางรำ\nนางล้อม\nนางเล็ด\nนางเลิ้ง\nนางหงส์\nนางอาย\nนางแอ่น\nนาฏ\nนาฏกะ\nนาด\nนาถ\nนาท\nนาที\nนาน\nน่าน\nนานัครส\nนานัปการ\nนานา\nนาเนก\nนาบ\nนาภี\nนาม\nนามานุกรม\nนามาภิไธย\nนาย\nน่าย\nนายก\nนายิกา\nนารา\nนารายณ์\nนารี\nนาเรศ\nนาลิวัน\nนาว\nน้าว\nนาวา\nนาวิก\nนาวิน\nนาวี\nนาเวศ\nนาศ\nนาสา\nนาสิก\nนาฬิกา\nนาฬิเก\nนาฬี\nนำ\nน้ำ\nน้ำละว้า\nน้ำว้า\nนิ\nนิกเกิล\nนิกขะ\nนิกร\nนิกรอยด์\nนิกาย\nนิคม\nนิครนถ์\nนิคหกรรม\nนิคหะ\nนิคหิต\nนิคาลัย\nนิเคราะห์\nนิโคติน\nนิโครธ\nนิโครม\nนิ่ง\nนิจ\nนิด\nนิตย์\nนิตยทาน\nนิตยภัต\nนิตยสาร\nนิติ\nนิทร\nนิทรรศการ\nนิทรา\nนิทรารมณ์\nนิทัศน์\nนิทาน\nนิเทศ\nนิธาน\nนิธิ\nนินทา\nนินนาท\nนินาท\nนิบาต\nนิปริยาย\nนิปัจการ\nนิพจน์\nนิพนธ์\nนิพพาน\nนิพพิทา\nนิพัทธ์\nนิพันธ์\nนิพิท\nนิเพท\nนิภา\nนิ่ม\nนิ้ม\nนิมนต์\nนิมมาน\nนิมมานรดี\nนิมิต\nนิยต\nนิยม\nนิยัตินิยม\nนิยาม\nนิยาย\nนิยุต\nนิรคุณ\nนิรชร\nนิรชรา\nนิรทุกข์\nนิรเทศ\nนิรโทษ\nนิรโทษกรรม\nนิรนัย\nนิรนาม\nนิรภัย\nนิรมล\nนิรมาน\nนิรัตศัย\nนิรันดร\nนิราพาธ\nนิรามัย\nนิรามิษ\nนิราศรัย\nนิรินธน์\nนิรมาณ\nนิรมิต\nนิรยบาล\nนิรัพพุท\nนิรา\nนิราศ\nนิรุกติ\nนิรุตติ\nนิรุทธ์\nนิโรธ\nนิล\nนิลุบล\nนิโลบล\nนิ่ว\nนิ้ว\nนิวคลิอิก\nนิวเคลียร์\nนิวเคลียส\nนิวตรอน\nนิวรณ์\nนิวัต\nนิวัตน์\nนิวาต\nนิวาส\nนิเวศ\nนิเวศน์\nนิศา\nนิษาท\nนิสัช\nนิสัชชาการ\nนิสัย\nนิสาท\nนิสิต\nนิสีทนสันถัต\nนิสีทนะ\nนิสีทนาการ\nนิเสธ\nนี่\nนี้\nนี่นัน\nนีรนาท\nนีออน\nนีโอดิเมียม\nนึก\nนึง\nนึ่ง\nนุง\nนุ่ง\nนุงนัง\nนุช\nนุต\nนุ่น\nนุ่ม\nนุ้ย\nนูน\nนู่น\nนู้น\nเนกขัม\nเนตบอล\nเนตร\nเนติ\nเน้น\nเนบิวลา\nเนปจูน\nเนปทูเนียม\nเนมิ\nเนย\nเนรกัณฐี\nเนรคุณ\nเนรเทศ\nเนรนาด\nเนรมิต\nเนระพูสี\nเนอ\nเน้อ\nเนา\nเน่า\nเนาวนิต\nเนาวรัตน์\nเนิน\nเนิ่น\nเนิบ\nเนียง\nเนียน\nเนียม\nเนียร\nเนียรทุกข์\nเนียรเทศ\nเนียรนาท\nเนื้อ\nเนือง\nเนื่อง\nเนือย\nแน่\nแน่ง\nแน่น\nแนบ\nแน่บ\nแนม\nแนว\nแน่ว\nแนะ\nแน่ะ\nแนะแหน\nโน\nโน้ต\nโนน\nโน่น\nโน้น\nโนเบเลียม\nโน้ม\nโนมพรรณ\nโนรา\nโนรี\nใน\nไน\nไนต์คลับ\nไนโตรเจน\nไนลอน\nไนโอเบียม\nบ่\nบก\nบง\nบ่ง\nบงก์\nบ๊งเบ๊ง\nบงสุ์\nบด\nบดินทร์\nบดี\nบถ\nบท\nบน\nบ่น\nบพิตร\nบพิธ\nบ่ม\nบรม\nบรมัตถ์\nบรรจง\nบรรจถรณ์\nบรรจบ\nบรรจวบ\nบรรจุ\nบรรเจิด\nบรรณ\nบรรดา\nบรรตานึก\nบรรถร\nบรรทม\nบรรทัด\nบรรทาน\nบรรทุก\nบรรเทา\nบรรเทือง\nบรรพ\nบรรพ์\nบรรพชา\nบรรพชิต\nบรรพต\nบรรยง\nบรรยงก์\nบรรยเวกษก์\nบรรยากาศ\nบรรยาย\nบรรลัย\nบรรลาย\nบรรลุ\nบรรเลง\nบรรโลม\nบรรษัท\nบรรสบ\nบรรสพ\nบรรสม\nบรรสาน\nบรรสาร\nบรรหาน\nบรรหาร\nบรอนซ์\nบรั่นดี\nบรัศว์\nบราลี\nบริกรรม\nบริการ\nบริขาร\nบริขารโจล\nบริคณห์\nบริจาค\nบริจาริกา\nบริเฉท\nบริชน\nบริดจ์\nบริบท\nบริบาล\nบริบูรณ์\nบริพนธ์\nบริพัตร\nบริพันธ์\nบริพาชก\nบริพาร\nบริภัณฑ์\nบริภาษ\nบริโภค\nบริมาส\nบริยาย\nบริรม\nบริรักษ์\nบริราช\nบริวรรต\nบริวาร\nบริวาส\nบริเวณ\nบริษัท\nบริสชน\nบริสุทธิ์\nบริหาร\nบล็อก\nบวก\nบวง\nบ่วง\nบวช\nบวน\nบ้วน\nบวบ\nบวม\nบ๊วย\nบวร\nบหลิ่ม\nบอ\nบ่อ\nบ้อ\nบอก\nบอง\nบ่อง\nบ้อง\nบ๊อง\nบ้องแบ๊ว\nบองหลา\nบอด\nบอน\nบ่อน\nบอบ\nบ้อม\nบ๋อม\nบ่อย\nบอระเพ็ด\nบอล\nบอลลูน\nบ้อหุ้น\nบ๊ะ\nบ๊ะจ่าง\nบะหมี่\nบัก\nบักโกรก\nบัคเตรี\nบัง\nบั้ง\nบังกะโล\nบังเกิด\nบังคน\nบังคม\nบังคล\nบังควร\nบังคับ\nบังคัล\nบังแทรก\nบังวาย\nบังเวียน\nบังสุกุล\nบังสุกูลิก\nบังสูรย์\nบังหวน\nบังเหตุ\nบังเหียน\nบังอร\nบังอวจ\nบังอาจ\nบังเอิญ\nบัญจก\nบัญชร\nบัญชา\nบัญชี\nบัญญัติ\nบัญหา\nบัฏ\nบัณฑร\nบัณฑิต\nบัณฑิตย์\nบัณฑุ\nบัณฑูร\nบัณเฑาะก์\nบัณเฑาะว์\nบัณณาส\nบัณรส\nบัณรสี\nบัด\nบัดกรี\nบัดซบ\nบัดสี\nบัตร\nบัทม์\nบัน\nบั่น\nบั้น\nบันจวบ\nบันดล\nบันดาล\nบันได\nบันทึก\nบันทึง\nบันเทิง\nบันยะบันยัง\nบันลือ\nบัปผาสะ\nบัพ\nบัพชา\nบัพพาชนียกรรม\nบัล\nบัลลพ\nบัลลังก์\nบัลลูน\nบัลเลต์\nบัว\nบา\nบ่า\nบ้า\nบาก\nบาง\nบ่าง\nบ้าง\nบาจรีย์\nบาซิลลัส\nบาด\nบาดทะจิต\nบาดทะพิษ\nบาดทะยัก\nบาดาล\nบาตร\nบาท\nบาทสกุณี\nบาทหลวง\nบาทาธึก\nบาทุกา\nบาน\nบ้าน\nบานชื่น\nบานเช้า\nบานบุรี\nบานไม่รู้โรย\nบานเย็น\nบ้าบ๋า\nบาป\nบาย\nบ่าย\nบ้าย\nบาร์\nบารนี\nบารมี\nบาร์เรล\nบาร์เลย์\nบารอมิเตอร์\nบ้าระบุ่น\nบาเรียน\nบาเรียม\nบาล\nบาลี\nบ่าว\nบ่าวขุน\nบาศ\nบาศก์\nบาสเกตบอล\nบาหลี\nบ๋ำ\nบำเทิง\nบำนาญ\nบำบวง\nบำบัด\nบำเพ็ญ\nบำราบ\nบำราศ\nบำรุง\nบำรู\nบำเรอ\nบำหยัด\nบำเหน็จ\nบิ\nบิฐ\nบิณฑบาต\nบิด\nบิดร\nบิดหล่า\nบิดา\nบิตุ\nบิตุจฉา\nบิตุรงค์\nบิตุเรศ\nบิตุลา\nบิน\nบิ่น\nบินยา\nบิลเลียด\nบิวเรตต์\nบิสมัท\nบี้\nบีฑา\nบีตา\nบีบ\nบีเยศ\nบึก\nบึกบึน\nบึง\nบึ่ง\nบึ้ง\nบุ\nบุก\nบุคคล\nบุคลากร\nบุคลาธิษฐาน\nบุคลิก\nบุง\nบุ่ง\nบุ้ง\nบุ้งกี๋\nบุญ\nบุญญาธิการ\nบุญญานุภาพ\nบุญญาภินิหาร\nบุญญาภิสังขาร\nบุณฑริก\nบุณมี\nบุณย์\nบุตร\nบุตรี\nบุถุชน\nบุทคล\nบุนนาค\nบุบ\nบุบบิบ\nบุปผชาติ\nบุพกรรม\nบุพการี\nบุพกิจ\nบุพชาติ\nบุพทักษิณ\nบุพนิมิต\nบุพบท\nบุพพาจารย์\nบุพเพสันนิวาส\nบุพโพ\nบุ๋ม\nบุ่มบ่าม\nบุ้ย\nบุรณะ\nบุรพทิศ\nบุรพบท\nบุรพาจารย์\nบูรพาจารย์\nบุระ\nบุราณ\nบุรินทร์\nบุริมทิศ\nบุริมพรรษา\nบุริมสิทธิ\nบุรี\nบุรุษ\nบุโรทั่ง\nบุษกร\nบุษบก\nบุษบง\nบุษบัน\nบุษบา\nบุษบามินตรา\nบุษปราค\nบุษปะ\nบุษย์\nบุษย์น้ำทอง\nบุษยมาส\nบุษยะ\nบุษราคัม\nบุหงัน\nบุหงา\nบุหรง\nบุหรี่\nบุหลัน\nบู่\nบู้\nบูชนียสถาน\nบูชา\nบูชิต\nบูด\nบูดู\nบูร\nบูรณ์\nบูรณภาพ\nบูรณมี\nบูรณะ\nบูรณาการ\nบูรพ์\nบูรพะ\nบูรพา\nเบ้\nเบ่ง\nเบ๊จี๋\nเบญกานี\nเบญจกัลยาณี\nเบญจกามคุณ\nเบญจขันธ์\nเบญจดุริยางค์\nเบญจธรรม\nเบญจบรรพต\nเบญจพรรณ\nเบญจเพส\nเบญจมาศ\nเบญจรงค์\nเบญจศก\nเบญจศีล\nเบญจะ\nเบญจา\nเบญจางค์\nเบญจางคประดิษฐ์\nเบญญา\nเบญพาด\nเบ็ด\nเบ็ดเตล็ด\nเบ็ดเสร็จ\nเบน\nเบนซิน\nเบรก\nเบริลเลียม\nเบส\nเบ้อ\nเบอร์\nเบอร์คีเลียม\nเบ้อเร่อ\nเบ้อเร่อเท่อ\nเบ้อเริ่ม\nเบ้อเริ่มเทิ่ม\nเบอะ\nเบอะบะ\nเบะ\nเบา\nเบ้า\nเบาราณ\nเบาะ\nเบิก\nเบิ่ง\nเบี้ย\nเบี่ยง\nเบียด\nเบียน\nเบียร์\nเบี้ยว\nเบือ\nเบื่อ\nเบื้อ\nเบื้อง\nเบือน\nแบ\nแบ้\nแบก\nแบคทีเรีย\nแบ่ง\nแบงก์\nแบดมินตัน\nแบตเตอรี่\nแบน\nแบนโจ\nแบบ\nแบ็บ\nแบเรียม\nแบหลา\nแบะ\nโบ\nโบ้\nโบ๋\nโบก\nโบกขรณี\nโบกขรพรรษ\nโบชุก\nโบต\nโบนัส\nโบ๊เบ๊\nโบย\nโบรมีน\nโบรอน\nโบราณ\nโบสถ์\nใบ\nใบ้\nไบ่\nปก\nปกติ\nปกรณ์\nปกรณัม\nปกิณกะ\nปกีรณัม\nปโกฏิ\nปง\nป่ง\nปงช้าง\nปฎล\nปฏัก\nปฏิกรณ์\nปฏิกรรม\nปฏิการะ\nปฏิกิริยา\nปฏิกูล\nปฏิคม\nปฏิคหิต\nปฏิคาหก\nปฏิฆะ\nปฏิชีวนะ\nปฏิญญา\nปฏิญาณ\nปฏิทิน\nปฏิบถ\nปฏิบัติ\nปฏิปทา\nปฏิปักษ์\nปฏิปัน\nปฏิปุจฉาพยากรณ์\nปฏิปุจฉาวาที\nปฏิพัทธ์\nปฏิพากย์\nปฏิภาค\nปฏิภาณ\nปฏิมา\nปฏิมากร\nปฏิยุทธ์\nปฏิรพ\nปฏิรูป\nปฏิโลม\nปฏิวัติ\nปฏิวาต\nปฏิวาท\nปฏิเวธ\nปฏิสนธิ\nปฏิสวะ\nปฏิสังขรณ์\nปฏิสันถาร\nปฏิสัมภิทา\nปฏิเสธ\nปฐพี\nปฐม\nปฐวี\nปณต\nปณาม\nปณิธาน\nปณิธิ\nปณีต\nปด\nปดิวรัดา\nปติ\nปถพี\nปถมัง\nปถวี\nปทัฏฐาน\nปทัสถาน\nปทานุกรม\nปทีป\nปทุม\nปน\nป่น\nปนัดดา\nปปัญจะ\nปม\nปรนัย\nปรปักษ์\nปรโลก\nปรวาที\nปรก\nปรกติ\nปรง\nปรตยักษ์\nปรน\nปรนนิบัติ\nปรนิมมิตวสวัตดี\nปรบ\nปรปักษ์\nปรมัตถ์\nปรมาจารย์\nปรมาณู\nปรมาภิไธย\nปรมาภิเษก\nปรมินทร์\nบรเมนทร์\nปรเมศวร์\nปรเมษฐ์\nปรวด\nปรวนแปร\nปรศุ\nปรสิต\nปร๋อ\nปรองดอง\nปรอด\nปรอท\nปรอย\nประ\nประกบ\nประกฤต\nประกฤติ\nประกล\nประกวด\nประกวดประขัน\nประกอบ\nประกัน\nประกับ\nประกาย\nประกายพรึก\nประการ\nประกาศ\nประกาศนียบัตร\nประกาศิต\nประกำ\nประกิด\nประกิต\nประคด\nประคนธรรพ\nประคนธรรพ์\nประคบ\nประคบประหงม\nประคอง\nประคับประคอง\nประคัลภ์\nประคำ\nประคิ่น\nประคุณ\nประเคน\nประเคราะห์\nประโคน\nประโคนธรรพ\nประโคนธรรพ์\nประโคม\nประจง\nประจญ\nประจบ\nประจบประแจง\nประจวบ\nประจ๋อประแจ๋\nประจักษ์\nประจักษนิยม\nประจัญ\nประจัน\nประจาก\nประจาค\nประจาน\nประจำ\nประจิม\nประจิ้มประเจ๋อ\nประจุ\nประจุคมน์\nประจุบัน\nประเจก\nประเจิด\nประเจิดประเจ้อ\nประเจียด\nประแจ\nประชด\nประชน\nประชวม\nประชวร\nประชัน\nประชา\nประชาธิปไตย\nประชิด\nประชี\nประชุม\nประเชิญ\nประณต\nประณม\nประณาม\nประณิธาน\nประณิธิ\nประณีต\nประณุท\nประดง\nประดน\nประดวน\nประดอน\nประดอย\nประดัก\nประดักประเดิด\nประดัง\nประดับ\nประดา\nประดาก\nประดาป\nประดาษ\nประดิชญา\nประดิดประดอย\nประดิทิน\nประดิษฐ์\nประดิษฐกรรม\nประดิษฐาน\nประดุง\nประดุจ\nประดู่\nประเด\nประเด็น\nประเดิม\nประเดียง\nประเดี๋ยว\nประเดี๋ยวประด๋าว\nประแดง\nประแดะ\nประโดง\nประโดย\nประตง\nประตัก\nประตาป\nประติชญา\nประติญาณ\nประติทิน\nประติมากร\nประติมากรรม\nประติรพ\nประตู\nประถม\nประถมจินดา\nประทม\nประท้วง\nประทวน\nประทักษ์\nประทักษิณ\nประทัง\nประทัด\nประทับ\nประทาน\nประทาย\nประทาศี\nประทิน\nประทิ่น\nประทีป\nประทุฐ\nประทุน\nประทุษ\nประทุษฐ์\nประเทศ\nประเทา\nประเทียด\nประเทียบ\nประเทือง\nประธาน\nประธานาธิบดี\nประนม\nประนอ\nประนอม\nประนัง\nประนัปดา\nประนีประนอม\nประปราน\nประปราย\nประปา\nประเปรี้ยง\nประเปรียว\nประพจน์\nประพนธ์\nประพรม\nประพฤติ\nประพฤทธิ์\nประพัด\nประพัทธ์\nประพันธ์\nประพาต\nประพาส\nประพาสมหรณพ\nประพาฬ\nประพิณ\nประพิมพ์ประพาย\nประพุทธ์\nประเพณี\nประโพธ\nประไพ\nประไพร\nประภพ\nประภัสสร\nประภา\nประภาคาร\nประภาพ\nประภาษ\nประภาส\nประเภท\nประมง\nประมวล\nประมาณ\nประมาท\nประมุข\nประมุท\nประมูล\nประเมิน\nประโมง\nประโมทย์\nประยงค์\nประยุกต์\nประยุทธ์\nประยุร\nประยูร\nประโยค\nประโยชน์\nประโรหิต\nประลมพ์\nประลอง\nประลัย\nประลาต\nประลาย\nประลุ\nประเล่ห์\nประเล้าประโลม\nประโลม\nประวรรต\nประวรรตน์\nประวัติ\nประวาล\nประวาลปัทม์\nประวาส\nประวิง\nประวิช\nประวิตร\nประวิน\nประวีณ\nประเวณี\nประเวศ\nประเวศน์\nประศม\nประศาสน์\nประศุ\nประสก\nประสงค์\nประสบ\nประสพ\nประสม\nประสะ\nประสัก\nประสันนาการ\nประสัยห์\nประสา\nประสาท\nประสาธน์\nประสาน\nประสาร\nประสิทธิ์\nประสิทธิผล\nประสิทธิภาพ\nประสีประสา\nประสูต\nประสูติ\nประเสบัน\nประเสบันอากง\nประเสริฐ\nประหนึ่ง\nประหม่า\nประหยัด\nประหลาด\nประหล่ำ\nประหวัด\nประหวั่น\nประหัตประหาร\nประหาณ\nประหาร\nประเหล\nประเหส\nประไหมสุหรี\nประอบ\nประอร\nปรัก\nปรักปรำ\nปรักมะ\nปรัง\nปรัชญา\nปรัตถจริยา\nปรัตยุบัน\nปรัน\nปรับ\nปรัมปรา\nปรัศจิม\nปรัศนา\nปรัศนี\nปรัศว์\nปรัสสบท\nปร่า\nปรากฏ\nปรากรม\nปรากฤต\nปราการ\nปราง\nปรางค์\nปราจีน\nปราชญ์\nปราชญา\nปราชัย\nปราณ\nปราณี\nปราด\nปราน\nปรานี\nปราบ\nปราบดาภิเษก\nปราปต์\nปราม\nปรามาส\nปราโมช\nปราโมทย์\nปราย\nปรารถนา\nปรารภ\nปรารมภ์\nปราศ\nปราศจาก\nปราศรัย\nปราษณี\nปราษาณ\nปราสัย\nปราสาท\nปรำ\nปริ\nปริก\nปริกขาร\nปริกรรม\nปริกัป\nปริคณห์\nปริจาค\nปริจาริกา\nปริเฉท\nปริชน\nปริซึม\nปริญญา\nปริณาม\nปริณายก\nปริต\nปริตตะ\nปริตโตทก\nปริตร\nปริทรรศน์\nปริทัยหัคคี\nปริทัศน์\nปริเทพ\nปริเทวะ\nปรินิพพาน\nปริบ\nปริบท\nปริปันถ์\nปริพนธ์\nปริพัตร\nปริพันธ์\nปริพาชก\nปริภัณฑ์\nปริภาษ\nปริภูมิ\nปริโภค\nปริ่ม\nปริมณฑล\nปริมาณ\nปริมาตร\nปริยัติ\nปริยานุช\nปริยาย\nปริเยศ\nปริโยสาน\nปริวรรต\nปริวัตร\nปริวาร\nปริวาส\nปริวิตก\nปริเวณ\nปริศนา\nปริษัท\nปริสัญญู\nปริสุทธิ\nปริหาน\nปริหาร\nปรี่\nปรีชญา\nปรีชา\nปรี๊ด\nปรีดา\nปรีดิ\nปรีดิ์\nปรีดี\nปรีติ\nปรียะ\nปรียา\nปรึก\nปรึกษา\nปรึง\nปรือ\nปรื๋อ\nปรุ\nปรุง\nปรู\nปรู๋\nปรูด\nปรู๊ด\nปรู๊ดปร๊าด\nปรู๊ฟ\nปฤงคพ\nปฤจฉา\nปฤษฎางค์\nปฤษฐ\nปลก\nปลกเปลี้ย\nปลง\nปล่ง\nปลด\nปล้น\nปลวก\nปลอก\nปล่อง\nปล้อง\nปลอด\nปล้อน\nปลอบ\nปลอม\nปล่อย\nปละ\nปลัก\nปลั๊ก\nปลัง\nปลั่ง\nปลัด\nปลัดขิก\nปลา\nปลาต\nปลาบ\nปลาย\nปลาสเตอร์\nปลาสนาการ\nปล้ำ\nปลิง\nปลิด\nปลิ้น\nปลิโพธ\nปลิม\nปลิ่ม\nปลิว\nปลี\nปลีก\nปลื้ม\nปลุก\nปลูก\nปวกเปียก\nปวง\nป่วง\nปวด\nป่วน\nป้วน\nป้วนเปี้ยน\nป่วย\nปวัตน์\nปวารณา\nปวาล\nปวาส\nปวาฬ\nปวิช\nปวิตร\nปวิธ\nปวิเวก\nปวีณ\nปวุติ\nปเวณี\nปเวส\nปเวสน์\nปศุ\nปสันนะ\nปสันนาการ\nปสาท\nปสาน\nปสาสน์\nปสุ\nปสุต\nปสูติ\nปหังสนะ\nปหาน\nปหาร\nปหาส\nปอ\nป้อ\nป๋อ\nปอก\nปอง\nป่อง\nป้อง\nปอด\nปอน\nป้อน\nปอนด์\nปอเนาะ\nปอบ\nป้อแป้\nปอม\nป้อม\nป๋อม\nปอย\nป้อย\nป้อยอ\nปะ\nปะกน\nปะกัง\nปะการัง\nปะกำ\nปะขาว\nปะงาบ\nปะตาปา\nปะตาระกาหลา\nปะติดปะต่อ\nปะติยาน\nปะทะ\nปะทะปะทัง\nปะทุ\nปะทุน\nปะปน\nปะมง\nปะราลี\nปะรำ\nปะไร\nปะลอม\nปะเลง\nปะแล่ม\nปะโลง\nปะวะหล่ำ\nปะหงับ\nปะหนัน\nปะหัง\nปะเหลาะ\nปัก\nปักข์\nปักเป้า\nปักษ์\nปักษา\nปักษิน\nปักษี\nปัง\nปั๋ง\nปังสุ์\nปังสุกุล\nปัจจัตตะ\nปัจจันต์\nปัจจันตคาม\nปัจจันตชนบท\nปัจจันตประเทศ\nปัจจัย\nปัจจามิตร\nปัจจุคมน์\nปัจจุทธรณ์\nปัจจุบัน\nปัจจุสมัย\nปัจเจก\nปัจโจปการกิจ\nปัจฉา\nปัจฉิม\nปัจถรณ์\nปัจนึก\nปัจยาการ\nปัจเวกขณ์\nปัชชุน\nปัญจนที\nปัญจวัคคีย์\nปัญจก\nปัญจกะ\nปัญจมี\nปัญจวีสติ\nปัญญัติ\nปัญญา\nปัญหา\nปัฏ\nปัฏนะ\nปัฐยาวัต\nปัณฑรหัตถี\nปัณณะ\nปัณณาส\nปัณณาสก์\nปัณรสี\nปัณหิ\nปัด\nปัตคาด\nปัตตะ\nปัตตานึก\nปัตตานุโมทนา\nปัตตาเวีย\nปัตติ\nปัตติก\nปัตถร\nปัตถะ\nปัตนิ\nปัตนี\nปัตหล่า\nปัถพี\nปัถวี\nปัทม์\nปัทมะ\nปัทมาสน์\nปัน\nปั่น\nปั้น\nปั้นจั่น\nปันจุเหร็จ\nปั้นลม\nปั้นหยา\nปั้นเหน่ง\nปับ\nปั๊บ\nปัปผาสะ\nปัพพาชนียกรรม\nปัพภาระ\nปั๊ม\nปัยกา\nปัยยิกา\nปัวเปีย\nปัศจิม\nปัศตัน\nปัสสาวะ\nปัสสาสะ\nปา\nป่า\nป้า\nปาก\nปาง\nป้าง\nปาจรีย์\nปาจิตตีย์\nปาจีน\nปาฏลิ\nปาฏิบท\nปาฏิบุคลิก\nปาฏิโภค\nปาฏิหาริย์\nปาฐก\nปาฐกถา\nปาฐะ\nปาณกชาติ\nปาณะ\nปาณาติบาต\nปาณิ\nปาณี\nปาด\nปาติโมกข์\nปาตี\nปาเต๊ะ\nปาท่องโก๋\nปาทังกา\nปาทาน\nปาทุกา\nปาน\nป่าน\nป้าน\nปานะ\nปานียะ\nป้าบ\nป๊าบ\nปาพจน์\nปาม\nปาโมกข์\nป่าย\nป้าย\nปายาส\nปาร์เกต์\nปารมี\nปารเมศ\nปาราชิก\nปาริฉัตร\nปาริชาต\nปารุสกวัน\nปาล\nปาล์ม\nปาลิไลยก์\nปาลี\nปาว\nป่าว\nป๊าว\nปาวาร\nปาษาณ\nปาส\nปาสาณ\nปาสาทิกะ\nปาหนัน\nปาหี่\nปำ\nป้ำ\nป้ำเป๋อ\nปิกนิก\nปิ้ง\nปิงคละ\nปิงปอง\nปิฎก\nปิฏฐะ\nปิฐิ\nปิณฑะ\nปิด\nปิตตะ\nปิตา\nปิตามหัยกา\nปิตามหัยยิกา\nปิตุ\nปิตุจฉา\nปิตุภูมิ\nปิตุลา\nปิโตรเลียม\nปิ่น\nปิ่นแก้ว\nปิ่นโต\nปิปผลี\nปิ่ม\nปิ้ม\nปิยะ\nปิยังคุ\nปิโยรส\nปิลันธน์\nปิ๋ว\nปิศาจ\nปิหกะ\nปี\nปี่\nปี้\nปี๋\nปีก\nปีฐะ\nปี๊ด\nปีติ\nปีน\nปีบ\nปี๊บ\nปีศาจ\nปีฬกะ\nปึก\nปึง\nปึ่ง\nปึ๋ง\nปึ้ด\nปึมปื้อ\nปืน\nปื้น\nปือ\nปื้อ\nปื๋อ\nปุ\nปุ๊\nปุก\nปุกปุย\nปุคละ\nปุ้งกี๋\nปุงควะ\nปุงลิงค์\nปุงลึงค์\nปุจฉา\nปุฏะ\nปุณฑริก\nปุด\nปุตตะ\nปุถุชน\nปุนนาค\nปุนภพ\nปุนัพสุ\nปุบ\nปุ๊บ\nปุปผะ\nปุปะ\nปุพพะ\nปุ่ม\nปุ่มป่ำ\nปุ้ม\nปุ๋ม\nปุย\nปุ้ย\nปุ๋ย\nปุรณะ\nปุระ\nปุราณ\nปุราณะ\nปุริมพรรษา\nปุเรจาริก\nปุโรหิต\nปุลลิงค์\nปุลลึงค์\nปุลินท์\nปุโลปุเล\nปุษยะ\nปุสสะ\nปู\nปู่\nปูชกะ\nปูชนียบุคคล\nปูชนียวัตถุ\nปูชนียะ\nปูชา\nปูชิต\nปูด\nปูน\nปูม\nปู้ยี่ปู้ยำ\nปูระ\nปูลู\nเป้\nเป๋\nเปก\nเป๊ก\nเป่ง\nเป้ง\nเป๋ง\nเป็ด\nเปตพลี\nเปตอง\nเป็น\nเปยยาล\nเปร็ง\nเปรต\nเปรม\nเปรย\nเปรอ\nเปรอะ\nเปราะ\nเปรียง\nเปรี้ยง\nเปรี้ยงปร้าง\nเปรียญ\nเปรียบ\nเปรี่ยม\nเปรียว\nเปรี้ยว\nเปรียะ\nเปรี๊ยะ\nเปรื่อง\nเปรื้อย\nเปล\nเปล่ง\nเปลว\nเปลา\nเปล่า\nเปล้า\nเปลาะ\nเปลี้ย\nเปลี่ยน\nเปลี่ยม\nเปลี่ยว\nเปลือก\nเปลือง\nเปลื้อง\nเปลือย\nเปศะ\nเปศัส\nเปสการ\nเปสละ\nเปสุญวาท\nเป๋อ\nเป้อเย้อ\nเปอร์\nเปอร์เซ็นต์\nเปะ\nเปา\nเป่า\nเป้า\nเป๊า\nเป๋า\nเป๋าฮื้อ\nเปาะ\nเป๊าะ\nเปาะเปี๊ยะ\nเปาะแปะ\nเปิก\nเปิง\nเปิงมาง\nเปิด\nเปิ่น\nเปิบ\nเปิ๊บ\nเปีย\nเปียก\nเปี๊ยก\nเปี๊ยบ\nเปี่ยม\nเปี้ยว\nเปี๊ยว\nเปียะ\nเปี๊ยะ\nเปือก\nเปื้อน\nเปื่อย\nแป\nแป้ง\nแป๋ง\nแปด\nแป๊ด\nแปทู\nแป้น\nแป๊น\nแปบ\nแป๊บ\nแปม\nแปร\nแปร๋\nแปรก\nแปรง\nแปร่ง\nแปร๊ด\nแปร้น\nแปร๋น\nแปรปรวน\nแประ\nแปล\nแปล้\nแปลก\nแปลง\nแปลน\nแปลบ\nแปล๊บ\nแป้ว\nแป๊ว\nแปะ\nแป๊ะ\nแป๊ะซะ\nโป\nโป่\nโป้\nโป๊\nโปก\nโป๊ก\nโป๊กเกอร์\nโปกขรณี\nโปกขรพรรษ\nโปเก\nโปง\nโป่ง\nโป้ง\nโป่งข่าม\nโปงลาง\nโป่งวิด\nโปฐบท\nโปฐปทมาส\nโปดก\nโปตถกะ\nโปน\nโป๊ป\nโป๊ยเซียน\nโปรแกรม\nโปรง\nโปร่ง\nโปรด\nโปรตอน\nโปรตีน\nโปรเตสแตนต์\nโปรแทรกเตอร์\nโปรย\nโปล่ง\nโปลิโอ\nโปโล\nโปสก\nโปสต์การ์ด\nโปะ\nโป๊ะ\nโป๊ะจ้าย\nไป\nไป่\nไป๋\nไปยาล\nไปรษณีย์\nไปรษณียบัตร\nไปรษณียภัณฑ์\nไปรษณียากร\nไปล่\nไปศาจ\nผก\nผกา\nผกาย\nผคม\nผง\nผงก\nผงม\nผงะ\nผงาด\nผง่าน\nผจง\nผจญ\nผจัญ\nผจาน\nผชุม\nผณิน\nผณินทร\nผณิศวร\nผด\nผดุง\nผเดิน\nผทม\nผนวก\nผนวช\nผนัง\nผนิด\nผนึก\nผม\nผยอง\nผรณาปีติ\nผรสุ\nผริต\nผรุสวาท\nผล\nผลคุน\nผลคุนี\nผล็อย\nผละ\nผลัก\nผลัด\nผลับ\nผลัวะ\nผลา\nผลาญ\nผลานิสงส์\nผลาผล\nผลาหาร\nผลิ\nผลิกะ\nผลิต\nผลิน\nผลี\nผลีผลาม\nผลึก\nผลึ่ง\nผลือ\nผลุ\nผลุง\nผลุด\nผลุน\nผลุนผลัน\nผลุบ\nผลุบผลับ\nผลุย\nผลู\nผวน\nผวย\nผวา\nผสม\nผสาน\nผอง\nผ่อง\nผ่อน\nผอบ\nผอม\nผ็อย\nผอูน\nผะ\nผะดา\nผะสา\nผัก\nผัคคุณ\nผัคคุณี\nผัง\nผัด\nผัน\nผับ\nผัว\nผัวะ\nผัสสะ\nผัสสาหาร\nผา\nผ่า\nผ้า\nผาก\nผาง\nผ่าง\nผาณิต\nผาด\nผาติ\nผ่าน\nผาม\nผาย\nผ่ายผอม\nผาล\nผาลคุน\nผาลา\nผ่าว\nผาสุก\nผ้าฮาด\nผำ\nผ้ำ\nผิ\nผิง\nผิด\nผิตะ\nผิน\nผิว\nผี\nผี้ว์\nผึง\nผึ่ง\nผึ้ง\nผึ้งรวง\nผืน\nผื่น\nผุ\nผุด\nผุยผง\nผุสราคา\nผู้\nผูก\nเผ\nเผง\nเผชิญ\nเผ็ด\nเผด็จ\nเผดิม\nเผดียง\nเผ่น\nเผนิก\nเผย\nเผยอ\nเผยิบ\nเผยิบผยาบ\nเผล\nเผล่\nเผล็ด\nเผลอ\nเผลอไผล\nเผละ\nเผลาะ\nเผลาะแผละ\nเผลียง\nเผอเรอ\nเผอิญ\nเผอิล\nเผะ\nเผา\nเผ่า\nเผ้า\nเผาะ\nเผิ้ง\nเผิน\nเผียน\nเผือ\nเผื่อ\nเผือก\nเผือด\nเผือน\nเผื่อน\nแผ่\nแผก\nแผง\nแผด\nแผน\nแผ่น\nแผนก\nแผล\nแผลง\nแผล็บ\nแผล็ว\nแผละ\nแผ่ว\nแผ้ว\nโผ\nโผง\nโผฏฐัพพะ\nโผน\nโผเผ\nโผย\nโผล่\nโผลกเผลก\nโผละ\nโผอน\nโผะ\nไผ\nไผ่\nไผท\nฝน\nฝรั่ง\nฝรั่งเศส\nฝ่อ\nฝอย\nฝัก\nฝัง\nฝั่ง\nฝัด\nฝัน\nฝา\nฝ่า\nฝ้า\nฝาก\nฝาง\nฝาด\nฝาน\nฝาย\nฝ่าย\nฝ้าย\nฝิ่น\nฝี\nฝี่\nฝีก\nฝึก\nฝืด\nฝืน\nฝุ่น\nฝูง\nเฝ้า\nเฝือ\nเฝือก\nเฝือง\nเฝื่อน\nแฝก\nแฝง\nแฝด\nใฝ่\nไฝ\nพก\nพกุล\nพง\nพงศ์\nพงศกร\nพงศธร\nพงศา\nพงศาวดาร\nพจน์\nพจนา\nพจนานุกรม\nพจนารถ\nพจนีย์\nพจมาน\nพจี\nพชระ\nพญา\nพญาลอ\nพณิช\nพณิชย์\nพดด้วง\nพธู\nพนันดร\nพนาดร\nพนาดอน\nพนาราม\nพนาลัย\nพนาลี\nพนาวาส\nพนาเวศ\nพนาศรม\nพนาสณฑ์\nพนาสัณฑ์\nพเนจร\nพ่น\nพ้น\nพนม\nพนอง\nพนอม\nพนัก\nพนักงาน\nพนัง\nพนัน\nพนัส\nพนา\nพนาย\nพนิดา\nพนิต\nพบ\nพม่า\nพยนต์\nพยศ\nพยัก\nพยักพเยิด\nพยัคฆ์\nพยัคฆา\nพยัคฆิน\nพยัคฆี\nพยัชน์\nพยัญชนะ\nพยัต\nพยับ\nพยากรณ์\nพยาฆร์\nพยางค์\nพยาธิ\nพยาน\nพยาบาท\nพยาบาล\nพยาม\nพยามะ\nพยายาม\nพยุ\nพยุง\nพยุหยาตรา\nพยุหโยธา\nพยุหเสนา\nพยุหะ\nพยู่ห์\nพเยีย\nพร\nพรต\nพรม\nพรรค\nพรรค์\nพรรคานต์\nพรรณ\nพรรณนา\nพรรดึก\nพรรลาย\nพรรษ\nพรรษา\nพรรเอิญ\nพรวด\nพรวน\nพรหม\nพรหมจรรย์\nพรหมจาริณี\nพรหมจารี\nพรหมา\nพรหมาสตร์\nพรหมินทร์\nพรอก\nพร่อง\nพร้อง\nพรอด\nพร้อม\nพร้อมพรัก\nพร่อย\nพร้อย\nพระ\nพระนอม\nพระนาด\nพระฮาม\nพรักพร้อม\nพรั่ง\nพรัด\nพรั่น\nพรับ\nพร่า\nพร้า\nพราก\nพราง\nพร่าง\nพราด\nพราน\nพราย\nพราว\nพราหมณ์\nพราหมณะ\nพราหมณี\nพราหมี\nพรำ\nพร่ำ\nพริก\nพริ้ง\nพริบ\nพริ้ม\nพรึง\nพรึน\nพรึบ\nพรึ่บ\nพรืด\nพรุ\nพรุ่ง\nพรุน\nพรู\nพรูด\nพฤกษ์\nพฤกษชาติ\nพฤกษเทวดา\nพฤกษราช\nพฤกษศาสตร์\nพฤกษา\nพฤฒ\nพฤฒา\nพฤฒาจารย์\nพฤฒิ\nพฤต\nพฤติ\nพฤทธ์\nพฤทธิ์\nพฤนต์\nพฤนท์\nพฤศจิก\nพฤศจิกายน\nพฤษภ\nพฤษภาคม\nพฤหัสบดี\nพล\nพละ\nพลากร\nพลาดิศัย\nพลาธิการ\nพลานามัย\nพลบ\nพลวก\nพลวง\nพลวัต\nพลศาสตร์\nพลอ\nพล้อ\nพลอง\nพลอด\nพลอน\nพลอมแพลม\nพลอย\nพล่อย\nพลั่ก\nพลัง\nพลั่ง\nพลั้ง\nพลัด\nพลัน\nพลับ\nพลับพลา\nพลับพลึง\nพลั่ว\nพล่า\nพลาง\nพลาญ\nพลาด\nพล่าน\nพลาม\nพล่าม\nพลาย\nพลาสติก\nพลาสมา\nพลาหก\nพลำ\nพล้ำ\nพลำภัง\nพลิก\nพลิพัท\nพลิ้ว\nพลี\nพลุ\nพลุก\nพลุ่ก\nพลุกพล่าน\nพลุ่ง\nพลุ้ย\nพลู\nพลูโต\nพลูโทเนียม\nพวก\nพวง\nพ่วง\nพวน\nพวย\nพสก\nพสุ\nพสุธา\nพสุสงกรานต์\nพหล\nพหุ\nพหุล\nพหู\nพอ\nพ่อ\nพ้อ\nพอก\nพอง\nพ้อง\nพอน\nพ้อม\nพอโลเนียม\nพะ\nพะงา\nพะงาบ\nพะจง\nพะทำมะรง\nพะนอ\nพะเน้าพะนอ\nพะเนิน\nพะเนียง\nพะแนง\nพะพาน\nพะพิง\nพะเพิง\nพะยอม\nพ่ะย่ะค่ะ\nพะยูง\nพะยูน\nพะเยิบ\nพะเยิบพะยาบ\nพะรุงพะรัง\nพะโล้\nพะไล\nพะวง\nพะวักพะวน\nพะวา\nพะว้าพะวัง\nพะอง\nพะอากพะอำ\nพะอืดพะอม\nพัก\nพักตร์\nพักตรา\nพักร\nพัง\nพังกา\nพังงา\nพังผืด\nพังพวย\nพังพอน\nพังพาน\nพังพาบ\nพังเพย\nพัช\nพัชนี\nพัชระ\nพัญจน์\nพัฒนะ\nพัฒนา\nพัฒนากร\nพัฒนาการ\nพัด\nพัดชา\nพัดดึงส์\nพัตร\nพัทธ์\nพัทธยา\nพัทธสีมา\nพัทร\nพัน\nพันตู\nพันทาง\nพันธ์\nพันธะ\nพันธกรณี\nพันธบัตร\nพันธมิตร\nพันธนะ\nพันธนาคาร\nพันธนาการ\nพันธุ์\nพันธุกรรม\nพันลึก\nพันลือ\nพันเลิศ\nพันเอิญ\nพับ\nพัลลภ\nพัลวัน\nพัว\nพัวะ\nพัศดี\nพัสดุ\nพัสตร์\nพัสถาน\nพา\nพาก\nพากเพียร\nพากย์\nพาง\nพ่าง\nพาชี\nพาณิช\nพาณิชย์\nพาณิชยกรรม\nพาณิชยการ\nพาณิชยศาสตร์\nพาณิชยศิลป์\nพาณินี\nพาณี\nพาณีนี\nพาด\nพาท\nพาทย์\nพาธ\nพาธา\nพาน\nพ่าน\nพานร\nพานรินทร์\nพาม\nพาย\nพ่าย\nพายม้า\nพายัพ\nพายุ\nพาร์เซก\nพารณ\nพารา\nพาราฟิน\nพาล\nพาลา\nพาลี\nพาลุก\nพาโล\nพาไล\nพาส\nพาสน์\nพาสนา\nพาสุกรี\nพ่าห์\nพาหนะ\nพาหะ\nพาหา\nพาหิรกะ\nพาหิระ\nพาหุ\nพาหุรัด\nพาหุสัจจะ\nพาเหียร\nพาฬ\nพำ\nพำนัก\nพำพึม\nพำลา\nพิกล\nพิกสิต\nพิกัด\nพิกัติ\nพิกัน\nพิการ\nพิกุล\nพิเคราะห์\nพิฆน์\nพิฆเนศ\nพิฆเนศวร\nพิฆาต\nพิง\nพิจัย\nพิจาร\nพิจารณ์\nพิจารณา\nพิจิก\nพิจิต\nพิจิตร\nพิชญ์\nพิชัย\nพิชาน\nพิชิต\nพิเชฐ\nพิเชียร\nพิฑูรย์\nพิณ\nพิดทูล\nพิดาน\nพิโดร\nพิตร\nพิถี\nพิถีพิถัน\nพิทย\nพิทย์\nพิทยา\nพิทยาคม\nพิทยาคาร\nพิทยาธร\nพิทยาลัย\nพิทักษ์\nพิทูร\nพิเทศ\nพิธาน\nพิธี\nพิธุ\nพินทุ\nพินอบพิเทา\nพินัย\nพินาศ\nพินิจ\nพินิต\nพินิศ\nพินิศจัย\nพิเนต\nพิบัติ\nพิบุล\nพิบูล\nพิปริต\nพิปลาส\nพิพรรธ\nพิพรรธน์\nพิพักพิพ่วน\nพิพัฒ\nพิพัฒน์\nพิพากษ์\nพิพากษา\nพิพาท\nพิพิธ\nพิพิธภัณฑ์\nพิพิธภัณฑสถาน\nพิภพ\nพิภัช\nพิภาค\nพิภูษณะ\nพิเภก\nพิมปะการัง\nพิมพ์\nพิมพการัง\nพิมพา\nพิมพาภรณ์\nพิมล\nพิมเสน\nพิมาน\nพิมุข\nพิโมกข์\nพิโมกษ์\nพิโยกพิเกน\nพิโยค\nพิรอด\nพิระ\nพิรากล\nพิราบ\nพิราม\nพิราลัย\nพิริยะ\nพิรี้พิไร\nพิรุณ\nพิรุธ\nพิรุฬห์\nพิเรนทร์\nพิเราะ\nพิโรธ\nพิไร\nพิลังกาสา\nพิลาป\nพิลาส\nพิลิปดา\nพิลึก\nพิลึกกึกกือ\nพิลึกพิลั่น\nพิโลน\nพิไล\nพิศ\nพิศวง\nพิศวาส\nพิศาล\nพิศุทธ์\nพิศุทธิ์\nพิเศษ\nพิษ\nพิษฐาน\nพิษนาศน์\nพิสดาร\nพิสมร\nพิสมัย\nพิสัง\nพิสัช\nพิสัย\nพิสิฐ\nพิสุทธิ์\nพิสูจน์\nพิหค\nพิหาร\nพิฬาร\nพี\nพี่\nพี้\nพีชคณิต\nพีระมิด\nพึง\nพึ่ง\nพึ่บ\nพึ่บพั่บ\nพึม\nพึมพำ\nพืช\nพืด\nพื้น\nพุ\nพุก\nพุกาม\nพุง\nพุ่ง\nพุงดอ\nพุฒ\nพุฒิ\nพุด\nพุดตาน\nพุทธ\nพุทธะ\nพุทธังกูร\nพุทธางกูร\nพุทธันดร\nพุทธาภิเษก\nพุทธาวาส\nพุทธิ\nพุทโธ่\nพุทรา\nพุธ\nพุ่ม\nพุมเรียง\nพุ้ย\nพู\nพูพอน\nพู่\nพูด\nพูน\nพู้น\nพู่ระหง\nเพ\nเพ็ก\nเพกา\nเพคะ\nเพ็ง\nเพ่ง\nเพ็จ\nเพชฉลูกรรม\nเพชฌฆาต\nเพชร\nเพชรดา\nเพชรปาณี\nเพชรฤกษ์\nเพชรายุธ\nเพชรกลับ\nเพชรสังฆาต\nเพชรหลีก\nเพชรหึง\nเพ็ญ\nเพฑูริย์\nเพณี\nเพ็ดทูล\nเพดาน\nเพท\nเพทนา\nเพทาย\nเพทุบาย\nเพโทบาย\nเพ่นพ่าน\nเพนียด\nเพไนย\nเพ้ย\nเพรง\nเพรซีโอดิเมียม\nเพรา\nเพราะ\nเพริด\nเพริศ\nเพรียก\nเพรียง\nเพรียบ\nเพรี้ยม\nเพรียว\nเพรื่อ\nเพรือง\nเพล\nเพลง\nเพล็ด\nเพล้โพล้\nเพลา\nเพลาะ\nเพลิง\nเพลิดเพลิน\nเพลิน\nเพลีย\nเพลี้ย\nเพลี่ยง\nเพศ\nเพส\nเพสลาด\nเพ่อ\nเพ้อ\nเพ้อเจ้อ\nเพอิญ\nเพะ\nเพา\nเพาะ\nเพิก\nเพิง\nเพิ่ง\nเพิดเพ้ย\nเพิ่ม\nเพี้ย\nเพียง\nเพี้ยง\nเพียงออ\nเพี้ยน\nเพียบ\nเพียร\nเพื่อ\nเพื่อน\nแพ\nแพ้\nแพง\nแพ่ง\nแพงพวย\nแพทย์\nแพทยศาสตร์\nแพน\nแพ่น\nแพนก\nแพนงเชิง\nแพร\nแพร่\nแพรก\nแพร่ง\nแพรว\nแพร้ว\nแพลง\nแพลทินัม\nแพล็บ\nแพลม\nแพลเลเดียม\nแพละ\nแพละโลม\nแพว\nแพ้ว\nแพศย์\nแพศยา\nแพะ\nโพ\nโพก\nโพกพาย\nโพง\nโพงพาง\nโพชฌงค์\nโพซิตรอน\nโพด\nโพทะเล\nโพแทสเซียม\nโพธ\nโพธิ\nโพธิ์\nโพน\nโพ้น\nโพนทะนา\nโพบาย\nโพย\nโพยก๊วน\nโพยม\nโพรก\nโพรง\nโพรโทแอกทิเนียม\nโพรมีเทียม\nโพระดก\nโพล่\nโพลง\nโพล่ง\nโพล้ง\nโพลน\nโพล้เพล้\nโพละ\nโพสพ\nไพ\nไพ่\nไพจิตร\nไพชน\nไพชยนต์\nไพฑูรย์\nไพที\nไพบูลย์\nไพพรรณ\nไพร\nไพร่\nไพรจิตร\nไพรชน\nไพรชยนต์\nไพรฑูรย์\nไพรที\nไพรบูลย์\nไพรเราะ\nไพรัช\nไพรำ\nไพริน\nไพรินทร์\nไพรี\nไพเราะ\nไพโรจน์\nไพล\nไพล่\nไพศาขะ\nไพศาล\nไพเศษ\nไพสพ\nไพสิฐ\nไพหาร\nฟก\nฟ้ง\nฟรักโทส\nฟรี\nฟลูออรีน\nฟ่อ\nฟ้อ\nฟอก\nฟอง\nฟ่อง\nฟ้อง\nฟอด\nฟอน\nฟ่อน\nฟ้อน\nฟ้อแฟ้\nฟอร์มาลดีไฮด์\nฟอร์มาลิน\nฟอสฟอรัส\nฟอสเฟต\nฟัก\nฟักฟุ้น\nฟัง\nฟังก์ชัน\nฟัด\nฟัน\nฟั่น\nฟั้น\nฟ้า\nฟาก\nฟาง\nฟ่าง\nฟาด\nฟาทอม\nฟาน\nฟ่าม\nฟาย\nฟาร์ม\nฟาสซิสต์\nฟิด\nฟิต\nฟิบ\nฟิล์ม\nฟิวส์\nฟิสิกส์\nฟี่\nฟี้\nฟืดฟาด\nฟืน\nฟื้น\nฟืม\nฟุ\nฟุ้ง\nฟุต\nฟุน\nฟุบ\nฟุ่บ\nฟุ่มเฟือย\nฟุลสแก๊ป\nฟู\nฟู่\nฟูก\nฟูด\nฟูม\nเฟ็ด\nเฟ้น\nเฟลด์สปาร์\nเฟ้อ\nเฟอร์เมียม\nเฟอะ\nเฟอะฟะ\nเฟะ\nเฟะฟะ\nเฟิน\nเฟี้ยม\nเฟี้ยว\nเฟือ\nเฟื้อ\nเฟือง\nเฟื่อง\nเฟื้อง\nเฟือน\nเฟือย\nเฟื้อย\nแฟ่\nแฟง\nแฟชั่น\nแฟน\nแฟบ\nแฟ้ม\nแฟรนเซียม\nแฟลกซ์\nแฟลต\nแฟะ\nโฟกัส\nไฟ\nภควดี\nภควัต\nภควันต์\nภควัม\nภควา\nภควาน\nภคะ\nภคันทลา\nภคินี\nภณะ\nภณิดา\nภพ\nภมร\nภมริน\nภมรี\nภมุกา\nภยันตราย\nภยาคติ\nภระ\nภรณี\nภรต\nภรรดร\nภรรดา\nภรรยา\nภระมร\nภระมรี\nภราดร\nภราดรภาพ\nภราดา\nภริยา\nภฤศ\nภวะ\nภวตัณหา\nภวนะ\nภวังค์\nภวังคจิต\nภักดี\nภักตะ\nภักติ\nภักษ์\nภักษา\nภักษาหาร\nภัค\nภัคน์\nภังคะ\nภังคี\nภัจ\nภัณฑ์\nภัณฑาคาร\nภัณฑาคาริก\nภัณฑารักษ์\nภัณฑนะ\nภัณฑู\nภัต\nภัตตาคาร\nภัตตาหาร\nภัตร\nภัทระ\nภัทรกัป\nภัพ\nภัย\nภัสดา\nภัสตรา\nภัสมะ\nภัสสร\nภา\nภาค\nภาคย์\nภาคยานุวัติ\nภาคินี\nภาคิไนย\nภาคี\nภาคียะ\nภาชนะ\nภาชี\nภาณ\nภาณวาร\nภาณกะ\nภาณี\nภาณุ\nภาดร\nภาดา\nภาตระ\nภาตา\nภาตุ\nภาติกะ\nภาติยะ\nภาพ\nภาพย์\nภาม\nภาย\nภาร\nภาระ\nภารดี\nภารต\nภารตี\nภารยทรัพย์\nภารยา\nภารา\nภาวนา\nภาวะ\nภาษ\nภาษณ์\nภาษา\nภาษิต\nภาษี\nภาส\nภาสน์\nภาสวร\nภาสา\nภาสุระ\nภิกขา\nภิกขาจาร\nภิกขุ\nภิกขุนี\nภิกษา\nภิกษาจาร\nภิกษาหาร\nภิกษุ\nภิกษุณี\nภิงคาร\nภิญโญ\nภิตติ\nภินท์\nภินทนาการ\nภิยโย\nภิรมย์\nภิรมย์สุรางค์\nภิษัช\nภิสัก\nภีตะ\nภีมะ\nภีรุ\nภุกต์\nภุขัน\nภุช\nภุชงค์\nภุต\nภุมมะ\nภุมรัตน์\nภุมวาร\nภุมรา\nภุมริน\nภุมรี\nภุมเรศ\nภู\nภู่\nภูต\nภูติ\nภูม\nภูมิ\nภูมี\nภูริ\nภูรี\nภูวดล\nภูวนาถ\nภูวเนตร\nภูวไนย\nภูษา\nภูษิต\nเภกะ\nเภตรา\nเภท\nเภทุบาย\nเภรี\nเภสัช\nโภค\nโภคะ\nโภคิน\nโภคี\nโภไคย\nโภไคศวรรย์\nโภช\nโภชย์\nโภชก\nโภชนะ\nโภชนา\nโภชนาหาร\nโภชนียะ\nไภริน\nไภรี\nไภษัชคุรุ\nไภษัชย์\nมกร\nมกราคม\nมกุฎ\nมคธ\nมฆวัน\nมฆะ\nมฆา\nม่ง\nมงกุฎ\nมงโกรย\nมงคล\nมงคลวาร\nมณฑ์\nมณฑก\nมณฑนะ\nมณฑป\nมณฑล\nมณฑา\nมณฑารพ\nมณฑิระ\nมณเฑียร\nมณี\nมด\nมตะ\nมตกภัต\nมติ\nมทนะ\nมทะ\nมธุ\nมธุกร\nมธุการี\nมธุลีห์\nมธุระ\nมธุรพจน์\nมน\nมนินทรีย์\nม่น\nมนต์\nมนตร์\nมนตรี\nมนท์\nมนทิราลัย\nมนเทียร\nมนสิการ\nมนัส\nมนัสวี\nมนินทรีย์\nมนิมนา\nมนิลา\nมนุญ\nมนุษย์\nมนุษยชาติ\nมนุษยธรรม\nมนุษย์มนา\nมนุษยโลก\nมนุษยศาสตร์\nมนุษยสัมพันธ์\nมนุสาร\nมนู\nมนูสาร\nมโน\nมโนช\nมโนชญ์\nมโนราห์\nมโนสาเร่\nมโนห์รา\nมมังการ\nมยุรฉัตร\nมยุระ\nมยุรา\nมยุรี\nมยุเรศ\nมยูร\nมรกต\nมรคา\nมรฑป\nมรณ์\nมรณะ\nมรณกรรม\nมรณบัตร\nมรณภัย\nมรณภาพ\nมรดก\nมรรค\nมรรคา\nมรรตัย\nมรรยาท\nมรรษ\nมรสุม\nมริจ\nมริยาท\nมรีจิ\nมรุต\nมฤค\nมฤคย์\nมฤคศิระ\nมฤคศิรมาส\nมฤคเศียร\nมฤคินทร์\nมฤเคนทร์\nมฤดก\nมฤต\nมฤตยู\nมฤทุ\nมล\nมละ\nมลัก\nมลังเมลือง\nมล้าง\nมลาย\nมลายู\nมวก\nม่วง\nมวน\nม่วน\nม้วน\nม้วนต้วน\nมวย\nม้วย\nมวล\nมหกรรม\nมหรณพ\nมหรรณพ\nมหรสพ\nมหัจฉริยะ\nมหัต\nมหัทธนะ\nมหันต์\nมหันตโทษ\nมหัพภาค\nมหัศจรรย์\nมหา\nมหากฐิน\nมหากาฬ\nมหาขันธกะ\nมหาจักร\nมหาชน\nมหาชัย\nมหาชาติ\nมหาโชตรัต\nมหาดไทย\nมหาดเล็ก\nมหาตมะ\nมหาไถ่\nมหาเทพ\nมหาเทพี\nมหาเทวี\nมหาธาตุ\nมหานิกาย\nมหานิล\nมหาบพิตร\nมหาบัณฑิต\nมหาพน\nมหาพรหม\nมหาภารตะ\nมหาภิเนษกรมณ์\nมหาภูต\nมหาเมฆ\nมหายาน\nมหายุค\nมหาราช\nมหาฤกษ์\nมหาละลวย\nมหาละลาย\nมหาวงศ์\nมหาวรรค\nมหาวิทยาลัย\nมหาศักราช\nมหาศาล\nมหาสงกรานต์\nมหาสดมภ์\nมหาสดำ\nมหาสมุทร\nมหาสาวก\nมหาหงส์\nมหาหิงคุ์\nมหาอำนาจ\nมหาอุจ\nมหาอุด\nมหาอุปรากร\nมหาอุปราช\nมหิ\nมหิดล\nมหิธร\nมหิป\nมหิงส์\nมหิทธิ\nมหินท์\nมหิมา\nมหิศร\nมหิศวร\nมหิษ\nมหิษี\nมหึมา\nมเหยงค์\nมเหศ\nมเหศวร\nมเหศักดิ์\nมเหสักข์\nมเหสิ\nมเหสี\nมเหาฬาร\nมโหรสพ\nมโหระทึก\nมโหรี\nมโหฬาร\nมไหศวรรย์\nมอ\nมอง\nมองโกลอยด์\nมองโกเลีย\nมองคร่อ\nมอญ\nมอด\nม่อต้อ\nมอเตอร์\nมอเตอร์ไซค์\nมอน\nม่อน\nมอบ\nมอม\nมอมแมม\nม่อย\nมอร์ฟีน\nมอระกู่\nมอลโทส\nม่อลอกม่อแลก\nม่อห้อม\nม่อฮ่อม\nมะ\nมะกรูด\nมะกล่ำ\nมะกอก\nมะก่อง\nมะกะโรนี\nมะกา\nมะเกลือ\nมะเกี๋ยง\nมะข่วง\nมะขวิด\nมะขาม\nมะเขือ\nมะแข่น\nมะคังแดง\nมะค่า\nมะคำไก่\nมะคำดีควาย\nมะงั่ว\nมะงุมมะงาหรา\nมะซัก\nมะซาง\nมะดัน\nมะดีหวี\nมะดูก\nมะเดหวี\nมะเดื่อ\nมะต้อง\nมะตะบะ\nมะตาด\nมะตาหะรี\nมะตึ่ง\nมะตื๋น\nมะตูม\nมะแตก\nมะโต\nมะนาว\nมะปราง\nมะปริง\nมะฝ่อ\nมะพร้าว\nมะพลับ\nมะพูด\nมะแพน\nมะแพร้ว\nมะเฟือง\nมะแฟน\nมะไฟ\nมะม่วง\nมะม่าว\nมะมี่\nมะมื่น\nมะมุด\nมะเมอ\nมะเมีย\nมะเมื่อย\nมะแม\nมะยง\nมะยม\nมะระ\nมะริด\nมะรืน\nมะรุม\nมะรุมมะตุ้ม\nมะเร็ง\nมะเรื่อง\nมะโรง\nมะลอกมะแลก\nมะละกอ\nมะลิ\nมะลื่น\nมะลืมดำ\nมะลุลี\nมะแว้ง\nมะสัง\nมะเส็ง\nมะหวด\nมะหะหมัด\nมะหาด\nมะหิ่ง\nมะเหงก\nมะอึก\nมะฮอกกานี\nมัก\nมักกะโรนี\nมักกะลีผล\nมักกะสัน\nมักขะ\nมั่กขั้ก\nมักขิกา\nมัค\nมัคคะ\nมัคคุเทศก์\nมัคนายก\nมัฆวาน\nมั่ง\nมังกง\nมังกร\nมังกุ\nมังคละ\nมังค่า\nมังคุด\nมังตาน\nมังสวิรัติ\nมังสะ\nมังสี\nมัจจะ\nมัจจุ\nมัจฉริยะ\nมัจฉรี\nมัจฉะ\nมัจฉา\nมัชชะ\nมัชวิรัติ\nมัชชาระ\nมัชฌันติกสมัย\nมัชฌิม\nมัชฌิมา\nมัญจา\nมัญชิษฐา\nมัญชุ\nมัญชุสา\nมัญชูสา\nมัญเชฏฐะ\nมัฏฐะ\nมัณฑนศิลป์\nมัณฑนา\nมัด\nมัตตะ\nมัตตัญญู\nมัตตา\nมัตติกา\nมัตถกะ\nมัตถลุงค์\nมัตสยะ\nมัตสยา\nมัตสระ\nมัตสริน\nมัททวะ\nมัทนะ\nมัทยะ\nมัธยฐาน\nมัธยม\nมัธยันห์\nมัธยัสถ์\nมัน\nมั่น\nมันตา\nมันถะ\nมันทิระ\nมันทิราลัย\nมับ\nมั้ม\nมัมมี่\nมัย\nมัลละ\nมัลลิกา\nมัว\nมัวซัว\nมั่ว\nมัศยา\nมัสตุ\nมัสตาร์ด\nมัสมั่น\nมัสยิด\nมัสรู่\nมัสลิน\nมัสสุ\nมา\nม้า\nมาก\nมาคสิระ\nมาฆบูชา\nมาฆะ\nม้าง\nมางสะ\nมาณพ\nมาณวิกา\nมาด\nมาดา\nมาตงค์\nมาตร\nมาตรา\nมาตฤ\nมาตังคะ\nมาตา\nมาตามหัยกะ\nมาตามหัยกา\nมาตามหัยยิกา\nมาติกะ\nมาติกา\nมาตุ\nมาตุจฉา\nมาตุรงค์\nมาตุเรศ\nมาตุละ\nมาตุลา\nมาตุลานี\nมาทะ\nมาธยมิก\nมาธยมิกะ\nมาธุระ\nมาธุสร\nมาธูระ\nมาน\nม่าน\nม้าน\nมานพ\nมานะ\nมานัต\nมานัส\nมานิต\nมานี\nมานุษ\nมานุษยวิทยา\nมาโนชญ์\nมาบ\nมาภา\nม้าม\nม่าย\nมายา\nมาร\nมาราธิราช\nมารค\nมารดร\nมารดา\nมารยา\nมารยาท\nมารศรี\nมารษา\nมาริต\nมารุต\nมาลย์\nมาลัย\nมาลา\nมาลาตี\nมาลาเรีย\nมาลินี\nมาลี\nมาลุต\nมาศ\nมาส\nมาสก\nมาห์\nม่าห์\nมาหิส\nม่าเหมี่ยว\nมาฬก\nมิ\nมิค\nมิคสัญญี\nมิ่ง\nมิจฉา\nมิด\nมิตร\nมิติ\nมิเตอร์\nมิถยา\nมิถุน\nมิถุนายน\nมิทธะ\nมินตรา\nมินตา\nมินหม้อ\nมิ่ม\nมิ้ม\nมิไย\nมิรันตี\nมิลลิกรัม\nมิลลิบาร์\nมิลลิเมตร\nมิลลิลิตร\nมิลักขะ\nมิลักขู\nมิส\nมิสกรี\nมิสกวัน\nมิสซา\nมี\nมี่\nมีด\nมีเทน\nมีน\nมีนาคม\nมี่สั้ว\nมึง\nมึน\nมืด\nมืน\nมื่น\nมือ\nมื้อ\nมุ\nมุก\nมุกดา\nมุกดาหาร\nมุกุระ\nมุข\nมุขเด็จ\nมุขยประโยค\nมุโขโลกนะ\nมุคคะ\nมุง\nมุ่ง\nมุ้ง\nมุจฉา\nมุจนะ\nมุจลินท์\nมุญจนะ\nมุญชะ\nมุฐิ\nมุณฑกะ\nมุณฑะ\nมุด\nมุตกิด\nมุตฆาต\nมุตตะ\nมุตตา\nมุตติ\nมุตะ\nมุติ\nมุททา\nมุทธชะ\nมุทธา\nมุทธาภิเษก\nมุทรา\nมุทริกา\nมุทะลุ\nมุทา\nมุทิกา\nมุทิงค์\nมุทิตา\nมุทุ\nมุทุตา\nมุ่น\nมุนิ\nมุนินทร์\nมุนี\nมุบ\nมุบมิบ\nมุม\nมุ้ม\nมุ่ย\nมุรธา\nมุรธาภิเษก\nมุสละ\nมุสลิม\nมุสา\nมุสิก\nมุหงิด\nมุหน่าย\nมุหุต\nมุฮัมมัด\nมูก\nมูเซอ\nมูตร\nมู่ทู่\nมูน\nมูมมาม\nมูรติ\nมูรธา\nมูรธาภิเษก\nมูล\nมูละ\nมูลา\nมูลิกากร\nมู่ลี่\nมู่เล่\nมูสัง\nมูสิก\nมูสิกะ\nมูสิกทันต์\nเม\nเม็ก\nเมกะเฮิรตซ์\nเมขลา\nเมฆ\nเมฆา\nเมฆินทร์\nเมฆี\nเม็ง\nเม็ด\nเมตตา\nเมตไตรย\nเมตร\nเมตริก\nเมตริกตัน\nเมถุน\nเมท\nเมโท\nเมทนี\nเมทินี\nเมทนีดล\nเมทานอล\nเมทิลแอลกอฮอล์\nเมธ\nเมธา\nเมธาวี\nเมธี\nเมน\nเม่น\nเม้น\nเมนเดลีเวียม\nเมนทอล\nเม้ม\nเมรัย\nเมริเดียน\nเมรุ\nเมล์\nเมล็ด\nเมลือง\nเมษ\nเมษายน\nเมห์\nเมหนะ\nเมหะ\nเมะ\nเมา\nเม่า\nเม้า\nเมารี\nเมาลี\nเมาฬี\nเมาะ\nเมิง\nเมิน\nเมิล\nเมีย\nเมียง\nเมี่ยง\nเมี้ยน\nเมือ\nเมื้อ\nเมื่อ\nเมือก\nเมือง\nเมือบ\nเมื่อย\nแม่\nแม้\nแมก\nแมกนีเซียม\nแมง\nแมงกะพรุน\nแมงกานิน\nแมงกานีส\nแมงคา\nแมงคาเรือง\nแมงช้าง\nแมงดา\nแมงลัก\nแม่ตะงาว\nแมน\nแม่น\nแม้น\nแมลง\nแมลบ\nแมว\nแม้ว\nแมะ\nโม\nโม่\nโม้\nโมก\nโมกข์\nโมกษะ\nโมฆกรรม\nโมฆสัญญา\nโมฆะ\nโมฆียกรรม\nโมฆียะ\nโมง\nโม่ง\nโมงครุ่ม\nโมทนา\nโมโนแซ็กคาไรด์\nโมไนย\nโมเม\nโมเมนต์\nโมเย\nโมรา\nโมรี\nโมเรส\nโมลิบดีนัม\nโมลี\nโมเลกุล\nโมเสก\nโมเสส\nโม่ห์\nโมหะ\nโมหันธ์\nโมหาคติ\nโมโห\nไม่\nไม้\nไมกา\nไมครอน\nไมโครกรัม\nไมโครฟิล์ม\nไมโครโฟน\nไมโครมิเตอร์\nไมโครเมตร\nไมโครลิตร\nไมโครเวฟ\nไมตรี\nไมยราบ\nไมล์\nยก\nยกกระบัตร\nยกนะ\nยง\nยงโย่\nยชุรเวท\nยติ\nยติภังค์\nยถากรรม\nยถาภูตญาณ\nย่น\nยนต์\nยนตร์\nยม\nยมก\nยมโดย\nยมนา\nยมล\nยมะ\nยรรยง\nยล\nยวง\nยวด\nยวน\nยวบ\nย้วย\nยวรยาตร\nยศ\nยโส\nยอ\nย่อ\nยอก\nย็อกแย็ก\nยอง\nย่อง\nย้อง\nยอด\nยอน\nย้อน\nยอบ\nยอม\nย่อม\nย้อม\nย่อย\nย้อย\nย้อแย้\nยะ\nย่ะ\nยะยอบ\nยะยับ\nยัก\nยักข์\nยักขินี\nยักษ์\nยักษา\nยักษิณี\nยักษี\nยัง\nยั้ง\nยั่งยืน\nยัชโญปวีต\nยัญ\nยัญญะ\nยัด\nยัติภังค์\nยัน\nยั่น\nยันต์\nยันตร\nยันตร์\nยันตรกรรม\nยั่นตะนี\nยับ\nยั่ว\nยั้ว\nยั้วเยี้ย\nยัวรยาตร\nยัวะ\nยัษฏิ\nยา\nย่า\nยาก\nยาคุ\nยาคู\nยาง\nย่าง\nยางพารา\nยาจก\nยาจนา\nยาไฉน\nยาด\nยาดา\nยาตร\nยาตรา\nยาน\nย่าน\nย่านพาโหม\nยานมาศ\nยานุมาศ\nยานี\nยาม\nย่าม\nยามะ\nยามักการ\nยามา\nยาย\nย้าย\nยายี\nยาว\nย้าว\nยาวกาลิก\nยาวชีวิก\nยาสูบ\nย่าหยา\nยาหยี\nยำ\nย่ำ\nย้ำ\nยำเยีย\nยิก\nยิง\nยิ่ง\nยิฏฐะ\nยิน\nยิบ\nยิบหยี\nยิปซัม\nยิปซี\nยิ้ม\nยิมนาสติก\nยิหวา\nยี\nยี่\nยี้\nยี่ก่า\nยี่เก\nยี่เข่ง\nยี่โถ\nยีน\nยี่โป้\nยี่ภู่\nยีราฟ\nยี่สก\nยี่สง\nยี่สน\nยี่สาน\nยี่สุ่น\nยี่หระ\nยี่หร่า\nยี่ห้อ\nยี่หุบ\nยึกยัก\nยึกยือ\nยึด\nยืด\nยืน\nยื่น\nยืม\nยื้อ\nยุ\nยุกกระบัตร\nยุกดิ\nยุกติ\nยุกติธรรม\nยุกต์\nยุค\nยุคนธร\nยุคล\nยุคันต์\nยุคันธร\nยุคุนธร\nยุง\nยุ่ง\nยุ้ง\nยุด\nยุต\nยุติ\nยุทธ\nยุทธ์\nยุทธนา\nยุทโธปกรณ์\nยุบ\nยุ่บ\nยุ่บยั่บ\nยุบล\nยุพดี\nยุพเรศ\nยุพา\nยุพาน\nยุพาพาล\nยุพาพิน\nยุ่มย่าม\nยุ่ย\nยุ้ย\nยุรยาตร\nยูรยาตร\nยุวชน\nยุวดี\nยุวราช\nยุวา\nยุวาน\nยู\nยู่\nยูง\nยูโด\nยูถะ\nยูถิกา\nยูริก\nยูเรนัส\nยูเรเนียม\nยูโรเพียม\nเย\nเย้\nเยง\nเยซู\nเย็ด\nเย็น\nเย็นตาโฟ\nเย็นเตาโฟ\nเย็บ\nเย้ย\nเยอ\nเย่อ\nเยอรมัน\nเยอว\nเย่อหยิ่ง\nเยอะ\nเยอะแยะ\nเยา\nเย้า\nเยาว์\nเยาวชน\nเยาวมาลย์\nเยาวยอด\nเยาวราช\nเยาวเรศ\nเยาวลักษณ์\nเยาวพา\nเยาวพาณี\nเยาวพาน\nเยาะ\nเยิง\nเยิน\nเยิ่น\nเยิ่นเย้อ\nเยินยอ\nเยิบ\nเยิบยาบ\nเยิ้ม\nเยีย\nเยี่ยง\nเยี่ยงอย่าง\nเยียงผา\nเยียดยัด\nเยียน\nเยียบ\nเยี่ยม\nเยียรบับ\nเยียรยง\nเยียว\nเยี่ยว\nเยียวยา\nเยือ\nเยื่อ\nเยื้อ\nเยือก\nเยือง\nเยื่อง\nเยื้อง\nเยือน\nเยื้อน\nแย่\nแย้\nแยก\nแยง\nแย่ง\nแย้ง\nแยงแย่\nแยงแย้\nแยบ\nแย็บ\nแยม\nแย้ม\nแยแส\nแยะ\nโย\nโย้\nโยก\nโยกเยก\nโยคาพจร\nโยคาวจร\nโยคเกณฑ์\nโยคยะ\nโยคะ\nโยคิน\nโยคี\nโยง\nโย่ง\nโย่งเย่ง\nโยงโย่\nโยชน์\nโยชนา\nโยถิกะ\nโยทะกา\nโยธวาทิต\nโยธา\nโยธิน\nโยน\nโยนก\nโยนิโส\nโยนี\nโยม\nโยโส\nใย\nไย\nไย่\nไยดี\nไยไพ\nรก\nรง\nรงค์\nรงควัตถุ\nรงรอง\nรจนา\nรจเรข\nรจเลข\nรจิต\nรชตะ\nรชนิ\nรชนี\nรชะ\nรณรงค์\nรด\nรดี\nรตนะ\nรตะ\nรติ\nรถ\nรน\nร่น\nรบ\nรบาญ\nรพี\nรม\nร่ม\nรมณี\nรมณีย์\nรมณียสถาน\nรมย์\nรมเยศ\nรยางค์\nรวก\nรวง\nร่วง\nรวด\nรวน\nรวนเร\nร่วน\nรวบ\nรวม\nร่วม\nรวย\nรวิ\nรวิวาร\nรวี\nรศนา\nรส\nรสนา\nรสสุคนธ์\nรสายนเวท\nรสิก\nรหัท\nรหัส\nรโห\nรโหฐาน\nรอ\nร่อ\nรอก\nรอง\nร่อง\nร้อง\nรองเง็ง\nร่องแร่ง\nรอด\nรอน\nร่อน\nร้อน\nรอบ\nรอบคอบ\nรอม\nรอมชอม\nรอมร่อ\nรอย\nร่อย\nร้อย\nร่อแร่\nระ\nระกะ\nระกา\nระกำ\nระเกะระกะ\nระคน\nระคาง\nระคาย\nระแคะ\nระฆัง\nระงม\nระงับ\nระแง้\nระโงกหิน\nระชวย\nระดม\nระดะ\nระดับ\nระดา\nระด่าว\nระดู\nระเด่น\nระเดียง\nระแด\nระตู\nระทก\nระทด\nระทม\nระทวย\nระทา\nระทึก\nระแทะ\nระนาด\nระนาบ\nระนาม\nระนาว\nระเนน\nระเนระนาด\nระเนียด\nระแนง\nระแนะ\nระบบ\nระบม\nระบอบ\nระบัด\nระบับ\nระบาด\nระบาย\nระบำ\nระบิล\nระบือ\nระบุ\nระเบง\nระเบ็ง\nระเบิด\nระเบียง\nระเบียน\nระเบียบ\nระแบบ\nระมัดระวัง\nระมาด\nระเมียร\nระย่อ\nระย่อม\nระยะ\nระยั้ง\nระยับ\nระย้า\nระยาบ\nระยำ\nระยิบระยับ\nระโยง\nระโยงระยาง\nระรวย\nระรอง\nระร่อน\nระรัว\nระราน\nระร่าย\nระริก\nระรี่\nระรึง\nระรื่น\nระรื้น\nระเร้ง\nระเริง\nระเรียง\nระเรื่อย\nระแรง\nระลวง\nระลอก\nระลึก\nระวัง\nระวาง\nระวาย\nระวิง\nระแวง\nระแวดระวัง\nระไว\nระส่ำระสาย\nระหกระเหิน\nระหง\nระหวย\nระหว่าง\nระหองระแหง\nระหัด\nระหาย\nระเห็จ\nระเหย\nระเหระหน\nระเหหน\nระเหิด\nระเหินระหก\nระแหง\nระโหย\nระอา\nระอิดระอา\nระอุ\nรัก\nรักข์\nรักขิต\nรักตะ\nรักบี้\nรักเร่\nรักแร้\nรักษ์\nรักษา\nรัง\nรั้ง\nรังเกียจ\nรังแก\nรังค์\nรังควาน\nรังแค\nรังรอง\nรังวัด\nรังสิ\nรังสี\nรังสิมันตุ์\nรังสิมา\nรัจฉา\nรัช\nรัชชูปการ\nรัชมังคลาภิเษก\nรัชชุ\nรัชฎาภิเษก\nรัชดาภิเษก\nรัชนะ\nรัชนี\nรัญจวน\nรัฏฐาภิปาลโนบาย\nรัฐ\nรัฐประศาสโนบาย\nรัฐประศาสนศาสตร์\nรัด\nรัต\nรัตกัมพล\nรัตมณี\nรัตคน\nรัตจันทน์\nรัตตัญญู\nรัตติ\nรัตน์\nรัตนะ\nรัตนโกสินทร์\nรัตนโกสินทรศก\nรัตนชาติ\nรัตนตรัย\nรัตนบัลลังก์\nรัตนวราภรณ์\nรัตนสิงหาสน์\nรัตนา\nรัตนากร\nรัตนาภรณ์\nรัตนาวลี\nรัตมา\nรัถ\nรัถยา\nรัทเทอร์ฟอร์เดียม\nรัน\nรั้น\nรันทด\nรันทวย\nรับ\nรัมณียสถาน\nรัมภา\nรัมมี่\nรัมย์\nรัย\nรัว\nรั่ว\nรั้ว\nรัศมิมัต\nรัศมิมาน\nรัศมี\nรัษฎากร\nรัสเซีย\nรัสสะ\nรัสสระ\nรา\nร่า\nร้า\nราก\nรากษส\nรากสาด\nราคะ\nราคจริต\nราคา\nราคิน\nราคี\nราง\nร่าง\nร้าง\nรางจืด\nรางชาง\nรางวัล\nราช\nราชกิจจานุเบกษา\nราชนิกุล\nราชวโรงการ\nราชญี\nราชดัด\nราชพฤกษ์\nราชมาณพ\nราชมาษ\nราชมาส\nราชย์\nราชสีห์\nราชะ\nราชัน\nราชันย์\nราชัย\nราชา\nราชาธิปไตย\nราชาธิราช\nราชาภิเษก\nราชายตนะ\nราชาวดี\nราชี\nราชินิกุล\nราชินีกุล\nราชินี\nราชินูปถัมภ์\nราชูปถัมภ์\nราชูปโภค\nราเชน\nราเชนทร์\nราเชนทรยาน\nราโชวาท\nราไชศวรรย์\nราญ\nราญรอน\nราด\nราต\nราตร\nราตรี\nราน\nร่าน\nร้าน\nราบ\nราพณ์\nราพณาสูร\nราม\nรามเกียรติ์\nรามสูร\nรามัญ\nรามา\nราย\nร่าย\nร้าย\nราว\nร้าว\nราวี\nราศี\nราษฎร\nราษฎร์\nราษตรี\nราษราตรี\nราหุ\nราหู\nรำ\nร่ำ\nรำคาญ\nรำงับ\nรำจวน\nรำบาญ\nรำพัน\nรำพาย\nรำพึง\nรำเพย\nรำไพ\nรำมะนา\nรำมะนาด\nรำมะร่อ\nร่ำรวย\nร่ำร่ำ\nรำไร\nรำลึก\nรำหัด\nรำหัส\nริ\nริก\nริดสีดวง\nริน\nริ้น\nริบ\nริบบิ้น\nริบรี่\nริบหรี่\nริปุ\nริปู\nริม\nริ้ว\nริษยา\nรี\nรี่\nรี้พล\nรีด\nรีดักชัน\nรีต\nรีเนียม\nรีบ\nรีม\nรีรอ\nรี้ริก\nรึง\nรึ้ง\nรื่น\nรื้น\nรื้อ\nรุ\nรุก\nรุกข์\nรุกขชาติ\nรุกขเทวดา\nรุกขมูล\nรุกขา\nรุกรุย\nรุ่ง\nรุ้ง\nรุงรัง\nรุ่งริ่ง\nรุจ\nรุจา\nรุจนะ\nรุจิ\nรุจี\nรุจิระ\nรุจิรา\nรุด\nรุต\nรุทธ์\nรุทระ\nรุธิร\nรุธิระ\nรุเธียร\nรุน\nรุ่น\nรุบรู่\nรุม\nรุ่ม\nรุ่มร่าม\nรุย\nรุ่ย\nรุรุ\nรุหะ\nรู\nรู่\nรู้\nรูจี\nรูด\nรูทีเนียม\nรูบิเดียม\nรูป\nรูปิยะ\nรูปี\nรูเล็ตต์\nเร่\nเรข\nเรขา\nเรขาคณิต\nเร็ง\nเร่ง\nเร้ง\nเรณุ\nเรณู\nเรดอน\nเรดาร์\nเรเดียม\nเร้น\nเรรวน\nเรไร\nเร็ว\nเร่ว\nเรวดี\nเรอ\nเร่อ\nเรา\nเร่า\nเร้า\nเราะ\nเริง\nเริด\nเริม\nเริ่ม\nเริ้ม\nเริศร้าง\nเรี่ย\nเรี้ย\nเรียก\nเรียง\nเรียด\nเรียน\nเรียบ\nเรียม\nเรี่ยม\nเรียว\nเรี่ยว\nเรี้ยวรก\nเรือ\nเรื่อ\nเรื้อ\nเรือก\nเรือง\nเรื่อง\nเรื้อง\nเรืองรอง\nเรือด\nเรือน\nเรื้อน\nเรื่อย\nแร\nแร่\nแรก\nแร็กเกต\nแรง\nแร่ง\nแร้ง\nแรด\nแร้นแค้น\nแรม\nแร้ว\nแระ\nโร\nโร่\nโรค\nโรคา\nโรคาพาธ\nโรง\nโรจ\nโรจน์\nโรเดียม\nโรตี\nโรท\nโรธ\nโรม\nโรมัน\nโรเมอร์\nโรย\nโรเร\nโรหิณี\nโรหิต\nไร\nไร่\nไร้\nไรย์\nฤกษ์\nฤกษณะ\nฤคเวท\nฤชา\nฤชุ\nฤณ\nฤดี\nฤดียา\nฤดู\nฤต\nฤติยา\nฤตุ\nฤทธา\nฤทธิ์\nฤทัย\nฤษภ\nฤษยา\nฤษี\nฤๅ\nฤๅดี\nฤๅทัย\nฤๅษี\nฤๅสาย\nลก\nล่ก\nลฆุ\nลง\nล่ง\nลงกา\nล้งเล้ง\nลด\nลดา\nลดาวัลย์\nลน\nล้น\nลบ\nลบอง\nลพ\nลพุช\nลม\nล่ม\nล้ม\nลมาด\nลรรลุง\nลลนา\nลลิต\nลวก\nลวง\nล่วง\nล้วง\nลวณะ\nลวด\nล้วน\nลวนลาม\nลวนะ\nล่วม\nลวะ\nลวิตร\nลหุ\nลหุกาบัติ\nล่อ\nล้อ\nลอก\nล็อก\nล็อกเกต\nลอกแลก\nลอการิทึม\nลอง\nล่อง\nลองกอง\nลองจิจูด\nลองไน\nลอด\nลอตเตอรี่\nลอน\nล่อน\nลอบ\nลอม\nล้อม\nลอมชอม\nลอมพอก\nลอย\nล่อย\nล่อแล่\nลอว์เรนเซียม\nลออ\nละ\nล่ะ\nละคร\nละติจูด\nละบม\nละบอง\nละบือ\nละเบ็ง\nละโบม\nละม่อม\nละมั่ง\nละมาน\nละม้าย\nละมุ\nละมุด\nละมุน\nละเมอ\nละเมาะ\nละเมิด\nละเมียด\nละแมะ\nละโมก\nละโมบ\nละไม\nละลวย\nละลอก\nละล้า\nละล้าละลัง\nละลาน\nละลาบละล้วง\nละลาย\nละล้าว\nละล่ำละลัก\nละลิบ\nละลุม\nละเลง\nละเล้า\nละเลาะ\nละเลิง\nละเลียด\nละเลียบ\nละไล้\nละว้า\nละวาด\nละเวง\nละแวก\nละโว้\nละหมาด\nละห้อย\nละหาน\nละหาร\nละหุ่ง\nละเหย\nละเหี่ย\nละอง\nละออง\nละอาย\nละเอียด\nละแอน\nลัก\nลักขณะ\nลักขณา\nลักขะ\nลักขี\nลักจั่น\nลักปิดลักเปิด\nลักษณ์\nลักษณนาม\nลักษณะ\nลักษณาการ\nลักษมณ์\nลักษมาณา\nลักษมี\nลักษะ\nลัคคะ\nลัคน์\nลัคนา\nลัง\nลั่ง\nลังกา\nลังคี\nลังถึง\nลังลอง\nลังเล\nลังสาด\nลัชชา\nลัชชี\nลัญจ์\nลัญจกร\nลัญฉกร\nลัญฉน์\nลัฐิ\nลัฐิกา\nลัด\nลัดา\nลัทธ์\nลัทธิ\nลัน\nลั่น\nลันเต\nลันเตา\nลันไต\nลั่นทม\nลันโทม\nลับ\nลัพธ์\nลัพธิ\nลัภ\nลัภนะ\nลัภย์\nลัมพ์\nลัย\nลา\nล่า\nล้า\nลาก\nลาง\nล่าง\nล้าง\nลางลิง\nลางสาด\nลาช\nลาชะ\nลาชา\nลาญ\nลาด\nลาดเลา\nล้าต้า\nล่าเตียง\nลาน\nล่าน\nล้าน\nลาบ\nลาพอน\nลาภ\nลาม\nล่าม\nลามก\nลาย\nล้าย\nลายสือ\nลาลา\nลาว\nลาวัณย์\nลาวา\nลำ\nล่ำ\nล้ำ\nลำเข็ญ\nลำแข\nลำเค็ญ\nลำเจียก\nลำดวน\nลำดับ\nลำเนา\nลำบอง\nลำบาก\nลำปำ\nลำพวน\nลำพอง\nลำพัง\nลำพู\nลำเพ็ญ\nลำเพา\nลำแพน\nลำโพง\nลำไพ่\nลำภุขัน\nลำมะลอก\nลำยอง\nลำไย\nลำลอง\nล่ำลา\nลำลาบ\nลำลึก\nลำเลาะ\nลำเลิก\nลำเลียง\nลำเวียง\nลำเอียก\nลำเอียง\nลิ\nลิกขา\nลิกไนต์\nลิกู\nลิเก\nลิขนะ\nลิขสิทธิ์\nลิขิต\nลิง\nลิงค์\nลิด\nลิต\nลิตมัส\nลิตร\nลิเทียม\nลิ่น\nลิ้น\nลินจง\nลิ้นจี่\nลินลา\nลินสีด\nลิ่นฮื้อ\nลินิน\nลิบ\nลิปดา\nลิปสติก\nลิปิ\nลิฟต์\nลิเภา\nลิ่ม\nลิ้ม\nลิมป์\nลิมปนะ\nลิลิต\nลิว\nลิ่ว\nลิสง\nลี\nลี่\nลี้\nลีซอ\nลีบ\nลีลา\nลีลาศ\nลีฬหา\nลึก\nลึงค์\nลืด\nลื่น\nลื้น\nลืบ\nลืม\nลือ\nลื่อ\nลื้อ\nลุ\nลุก\nลุง\nลุ้ง\nลุ่น\nลุ้น\nลุพธ์\nลุ่ม\nลุมพี\nลุมพู\nลุย\nลุ่ย\nลุ้ย\nลู่\nลูก\nลูกระมาศ\nลูกเอ็น\nลูขะ\nลูทีเชียม\nลูบ\nเลก\nเล็ก\nเลข\nเลขา\nเลขาธิการ\nเลขานุการ\nเล็ง\nเล้ง\nเล่งฮื้อ\nเลเซอร์\nเลฑฑุ\nเลณฑุ\nเลณะ\nเล็ด\nเลน\nเล็น\nเล่น\nเลนส์\nเล็บ\nเลบง\nเลปกร\nเลปน์\nเลเป\nเลเพ\nเล็ม\nเล่ม\nเลย\nเลว\nเลวง\nเลวูโลส\nเลศ\nเลษฏุ\nเล่ห์\nเล่ห์กระเท่ห์\nเลหลัง\nเลหะ\nเลอ\nเล่อ\nเลอะ\nเลอะเทอะ\nเละ\nเละเทะ\nเลา\nเล่า\nเล้า\nเลากัย\nเล้าโลม\nเลาะ\nเลิก\nเลิ่กลั่ก\nเลิง\nเลิ้ง\nเลินเล่อ\nเลิศ\nเลีย\nเลียง\nเลี่ยง\nเลี้ยง\nเลียงผา\nเลียงฝ้าย\nเลียงมัน\nเลียน\nเลี่ยน\nเลียนไฟ\nเลียบ\nเลี่ยม\nเลียว\nเลี้ยว\nเลือก\nเลือง\nเลื่อง\nเลือด\nเลือน\nเลื่อน\nเลื่อม\nเลื่อย\nเลื้อย\nเลื่อยล้า\nแล\nแล่\nแล้\nแลก\nแล็กเกอร์\nแล็กโทส\nแลง\nแล่ง\nแล้ง\nแลน\nแล่น\nแลนทานัม\nแลบ\nแล้ว\nและ\nโล่\nโล้\nโลก\nโลกเชษฐ์\nโลกธรรม\nโลกธาตุ\nโลกนาถ\nโลกบาล\nโลกย์\nโลกัย\nโลกวัชชะ\nโลกวิทู\nโลกัตถจริยา\nโลกันตร์\nโลกา\nโลกาธิบดี\nโลกาธิปไตย\nโลกานุวัตร\nโลกาภิวัตน์\nโลกามิส\nโลกายัต\nโลกาวินาศ\nโลกิยะ\nโลกีย์\nโลกียวัตร\nโลกียวิสัย\nโลกียสุข\nโลกุตระ\nโลกุตรธรรม\nโลกุตรภูมิ\nโลง\nโล่ง\nโล้ง\nโล่งโจ้ง\nโล่งโต้ง\nโล้งโต้ง\nโลจนะ\nโลณะ\nโลด\nโล่ติ๊น\nโลโต\nโลท\nโลน\nโล้น\nโลภ\nโลม\nโลมเล้า\nโลมะ\nโลมา\nโลลุป\nโลเล\nโลโล\nโลโล้\nโลหะ\nโลหกุมภี\nโลหัช\nโลหิต\nไล่\nไล้\nไลย\nไลลา\nไล่เลี่ย\nฦๅ\nฦๅชา\nฦๅสาย\nวก\nวง\nวงก์\nวงกต\nวงศ์\nวงศกร\nวงศา\nวงษ์\nวจนะ\nวจี\nวชิระ\nวชิรปาณี\nวชิรหัตถ์\nวชิราวุธ\nวฏะ\nวฏาการ\nวณิช\nวณิชชา\nวณิชย์\nวณิชยา\nวณิพก\nวดี\nวทนะ\nวทัญญุตา\nวทัญญู\nวธุกา\nวธู\nวน\nวนศาสตร์\nวนสณฑ์\nวนสัณฑ์\nวนอุทยาน\nวนัส\nวนัสบดี\nวนา\nวนาดร\nวนาดอน\nวนานต์\nวนาลัย\nวนาลี\nวนาวาส\nวนาศรม\nวนาสณฑ์\nวนาสัณฑ์\nวนิดา\nวนิพก\nวเนจร\nวโนทยาน\nวยัคฆ์\nวยากรณ์\nวรดนู\nวรทาน\nวรมหาวิหาร\nวรงค์\nวรณะ\nวรรค\nวรรคย์\nวรรช\nวรรชย์\nวรรณะ\nวรรณกรรม\nวรรณคดี\nวรรณยุกต์\nวรรณยุต\nวรรณศิลป์\nวรรณนา\nวรรณพฤติ\nวรรณึก\nวรรธกะ\nวรรธนะ\nวรรษ\nวรรษา\nวรวิหาร\nวรัญญู\nวรางคณา\nวรางคนา\nวราห์\nวราหะ\nวรุณ\nวโรดม\nวฤก\nวลัช\nวลัญช์\nวลัญชน์\nวลัย\nวลาหก\nวลี\nวศค\nวศะ\nวศิน\nวสนะ\nวสภะ\nวสละ\nวสวัดดี\nวสวัตตี\nวสะ\nวสันต์\nวสันตดิลก\nวสันตฤดู\nวสันตวิษุวัต\nวสา\nวสี\nวสุ\nวสุธา\nวสุนธรา\nวสุมดี\nวหะ\nวอ\nวอก\nวอกแวก\nว่องไว\nวอด\nวอน\nว่อน\nว็อบ\nวอมแวม\nวอลเลย์บอล\nวอแว\nวะ\nวัก\nวักกะ\nวัคคีย์\nวัคคุ\nวัคซีน\nวัง\nวังก์\nวังชา\nวังเวง\nวังศะ\nวังสะ\nวัจจะ\nวัจกุฎี\nวัจฉละ\nวัจน์\nวัช\nวัชชะ\nวัชพืช\nวัชฌ์\nวัชระ\nวัชรปาณี\nวัชรยาน\nวัชรอาสน์\nวัชราสน์\nวัชรินทร์\nวัชรี\nวัชเรนทร์\nวัฏ\nวัฏฏะ\nวัฏจักร\nวัฏทุกข์\nวัฏสงสาร\nวัฏกะ\nวัฏฏิ\nวัฒกะ\nวัฒกี\nวัฒนธรรม\nวัฒนะ\nวัฒนา\nวัณ\nวัณโรค\nวัณฏ์\nวัณณะ\nวัณนา\nวัด\nวัต\nวัตต์\nวัตตา\nวัตถ์\nวัตถาภรณ์\nวัตถาลังการ\nวัตถุ\nวัตนะ\nวัตร\nวัตสดร\nวัตสะ\nวัติ\nวัทน์\nวัน\nวันต์\nวันทนา\nวันทนาการ\nวันทนีย์\nวันทยหัตถ์\nวันทยาวุธ\nวันทา\nวันทิ\nวับ\nวับวาบ\nวับวาม\nวับแวบ\nวับแวม\nวัปปะ\nวัมมิกะ\nวัย\nวัลก์\nวัลคุ\nวัลย์\nวัลลภ\nวัลลี\nวัว\nวัสสะ\nวัสโสทก\nวัสดุ\nวัสตร์\nวัสน์\nวัสนะ\nวัสสานะ\nวัสสานฤดู\nวา\nว่า\nว้า\nว้าเหว่\nวาก\nว้าก\nวากยสัมพันธ์\nวากยะ\nวาง\nว่าง\nว้าง\nวาจก\nวาจา\nวาจาไปยะ\nวาจาล\nวาชเปยะ\nวาณิช\nวาณิชกะ\nวาณิชย์\nวาณี\nวาด\nวาต\nวาตะ\nวาตภัย\nวาท\nวาทศาสตร์\nวาทศิลป์\nวาทกะ\nวาทนะ\nวาทย์\nวาทยกร\nวาทิต\nวาทิน\nวาที\nวาน\nวานซืน\nว่าน\nวานร\nวานรินทร์\nวาเนเดียม\nวาบ\nวาปี\nวาม\nวามน\nวามนาวตาร\nวามะ\nวาย\nว่าย\nว้าย\nวายะ\nวาโย\nวายามะ\nวายุ\nวายุกูล\nวาร\nวาระ\nวารสาร\nวารสารศาสตร์\nวาริ\nวารี\nวาริช\nวารีช\nวาริท\nวาริธร\nวารุณ\nวารุณี\nวาล\nวาลวีชนี\nวาล์ว\nวาลิกา\nวาลุกา\nวาว\nว่าว\nว้าว่อน\nว้าวุ่น\nวาสนะ\nวาสนา\nวาสพ\nวาสะ\nวาสิน\nวาสี\nวาสุกรี\nวาสุกี\nวาสุเทพ\nวาหนะ\nวาหะ\nวาหินี\nวาฬ\nวิกขัมภ์\nวิกขัมภนะ\nวิกเขป\nวิกรม\nวิกรัย\nวิกรานต์\nวิกฤต\nวิกฤติ\nวิกล\nวิกสิต\nวิกัต\nวิกัติ\nวิกัติการก\nวิกัป\nวิกัย\nวิการ\nวิกาล\nวิกาลโภชน์\nวิคหะ\nวิเคราะห์\nวิฆเนศ\nวิฆเนศวร\nวิฆาต\nวิง\nวิ่ง\nวิ่งเปี้ยว\nวิงวอน\nวิจฉิกะ\nวิจล\nวิจักขณ์\nวิจักษ์\nวิจักษณ์\nวิจัย\nวิจาร\nวิจารณ์\nวิจารณญาณ\nวิจิ\nวิจิกิจฉา\nวิจิต\nวิจิตร\nวิจิน\nวิจุณ\nวิจุรณ\nวิชชา\nวิชชุ\nวิชชุดา\nวิชชุตา\nวิชชุลดา\nวิชญะ\nวิชน\nวิชนี\nวิชย\nวิชัย\nวิชา\nวิชานนะ\nวิชิต\nวิเชียร\nวิญญัตติ\nวิญญาณ\nวิญญาณกทรัพย์\nวิญญู\nวิฑูรย์\nวิด\nวิตก\nวิตถาร\nวิตามิน\nวิถี\nวิทธะ\nวิทยฐานะ\nวิทยา\nวิทยาคม\nวิทยาคาร\nวิทยาลัย\nวิทยุ\nวิทยุต\nวิทวัส\nวิทัตถิ\nวิทัศน์\nวิทารณ์\nวิทิต\nวิทู\nวิทูร\nวิเทศ\nวิเทโศบาย\nวิธ\nวิธวา\nวิธาน\nวิธี\nวิธุระ\nวิธู\nวิธูปนะ\nวิ่น\nวินตกะ\nวินัย\nวินาที\nวินายก\nวินาศ\nวินิจ\nวินิจฉัย\nวินิต\nวินิบาต\nวินิปาติก\nวิเนต\nวิบัติ\nวิบาก\nวิบุล\nวิบุลย์\nวิบูล\nวิบูลย์\nวิปการ\nวิปฏิสาร\nวิปโยค\nวิประโยค\nวิปริต\nวิปลาส\nวิปวาส\nวิปักษ์\nวิปัสสก\nวิปัสสนา\nวิปัสสนายานิก\nวิพากษ์\nวิพิธทัศนา\nวิพุธ\nวิภว\nวิภวตัณหา\nวิภังค์\nวิภัช\nวิภัตติ\nวิภา\nวิภาค\nวิภาช\nวิภาดา\nวิภาวี\nวิภาษ\nวิภาส\nวิภู\nวิภูษณะ\nวิภูษา\nวิภูษิต\nวิมน\nวิมล\nวิมลัก\nวิมังสา\nวิมัติ\nวิมาน\nวิมุข\nวิมุต\nวิมุตติ\nวิเมลือง\nวิโมกข์\nวิโยค\nวิระ\nวิรงรอง\nวิรังรอง\nวิรัช\nวิรัต\nวิรัติ\nวิราคะ\nวิราม\nวิริยภาพ\nวิริยะ\nวิรุธ\nวิรุฬห์\nวิรุฬหก\nวิรูป\nวิรูปักษ์\nวิเรนทร์\nวิโรจ\nวิโรจน์\nวิโรฒ\nวิโรธ\nวิลันดา\nวิลัย\nวิลาด\nวิลาศ\nวิลาป\nวิลาวัณย์\nวิลาส\nวิลาสินี\nวิลิปดา\nวิลิศมาหรา\nวิเลป\nวิเลปนะ\nวิโลกนะ\nวิโลม\nวิไล\nวิไลวรรณ\nวิวรณ์\nวิวรรธน์\nวิวัฏ\nวิวัฒน์\nวิวัฒนาการ\nวิวัน\nวิวาท\nวิวาห์\nวิวาหมงคล\nวิวาหะ\nวิวิต\nวิวิธ\nวิเวก\nวิศรุต\nวิศว\nวิศวกร\nวิศวกรรม\nวิศวกรรมศาสตร์\nวิศัลย์\nวิศาขบูชา\nวิศาขา\nวิศาล\nวิศิษฏ์\nวิศุทธ์\nวิศุทธิ์\nวิเศษ\nวิเศษณ์\nวิษณุ\nวิษณุกรรม\nวิษธร\nวิษัย\nวิษาณ\nวิษุวัต\nวิสกี้\nวิสรรชนีย์\nวิสฤต\nวิสสุกรรม\nวิสัชนา\nวิสัญญี\nวิสัย\nวิสัยทัศน์\nวิสาขบูชา\nวิสาขะ\nวิสาขา\nวิสามัญ\nวิสามานยนาม\nวิสาร\nวิสารทะ\nวิสาล\nวิสาสะ\nวิสาหกิจ\nวิสิฐ\nวิสุงคามสีมา\nวิสุทธ์\nวิสุทธิ์\nวิสูตร\nวิเสท\nวิหค\nวิหลั่น\nวิหาร\nวิหิงสา\nวิเหสา\nวิฬาร\nวิฬาร์\nวี\nวีจิ\nวีชนี\nวีณา\nวี้ด\nวีรกรรม\nวีรชน\nวีรบุรุษ\nวีรสตรี\nวี่วัน\nวี่แวว\nวีสะ\nวุ้ง\nวุฐิ\nวุฒ\nวุฒิ\nวุด\nวุ่น\nวุ้น\nวุบ\nวุ้ย\nวุลแฟรม\nวู้\nวูดวาด\nวูบ\nวู่วาม\nเว้\nเวค\nเวคิน\nเวคี\nเวจ\nเวช\nเวชยันต์\nเวฐน์\nเวณิ\nเวณิก\nเวณุ\nเวตน์\nเวตร\nเวตาล\nเวท\nเวทคู\nเวทนา\nเวทย์\nเวทัลละ\nเวทางค์\nเวทางคศาสตร์\nเวทานต์\nเวทานตะ\nเวทิ\nเวที\nเวธะ\nเวน\nเว้น\nเวนไตย\nเวไนย\nเวมัต\nเว้ย\nเวยยากรณะ\nเวร\nเวรมณี\nเวรี\nเวโรจน์\nเวลา\nเวเลนซี\nเวศม์\nเวศย์\nเวศยา\nเวสน์\nเวสภู\nเวสม์\nเวสวัณ\nเวสสะ\nเวสสันดร\nเวสสุกรรม\nเวสสุวัณ\nเวสารัช\nเวสิยา\nเวหน\nเวหะ\nเวหา\nเวหาส\nเวฬุ\nเวฬุริยะ\nเว่อ\nเว้า\nเวิก\nเวิ้ง\nเวี่ย\nเวียง\nเวียด\nเวียดนาม\nเวียน\nเวียร\nเวี่ยว\nแว้\nแวง\nแว้ง\nแวด\nแว้ด\nแวน\nแว่น\nแวนดา\nแวบ\nแว็บ\nแวม\nแว็ม\nแวว\nแว่ว\nแวะ\nโว\nโว่\nโวการ\nโว่ง\nโวทาน\nโวย\nโว้ย\nโว้เว้\nโวหาร\nไว\nไว้\nไวกูณฐ์\nไวฑูรย์\nไวทย์\nไวน์\nไวพจน์\nไวยากรณ์\nไวยาวัจกร\nไวยาวัจมัย\nไวรัส\nไววรรณ\nไวษณพ\nไวโอลิน\nศก\nศกุน\nศกุนต์\nศกุนิ\nศกุนี\nศจี\nศตะ\nศตภิษัช\nศตวรรษ\nศตพรรษ\nศตกะ\nศนิ\nศพ\nศมนะ\nศมะ\nศยาม\nศยามล\nศร\nศรายุธ\nศราวรณ์\nศรรกรา\nศรวณะ\nศรวณีย์\nศรวิษฐา\nศรัณย์\nศรัณยู\nศรัท\nศรัทธา\nศรัย\nศราทธ์\nศราทธพรต\nศราพก\nศราวก\nศราวณะ\nศรี\nศรีตรัง\nศรุติ\nศฤคาล\nศฤงค์\nศฤงคาร\nศฤงคาริน\nศฤงคารี\nศลิษฏ์\nศลิษา\nศวะ\nศวัส\nศวา\nศวาน\nศศะ\nศศธร\nศศพินทุ์\nศศลักษณ์\nศศิ\nศศิน\nศศี\nศศิขัณฑ์\nศศิธร\nศศิมณฑล\nศศิวิมล\nศอ\nศอก\nศักดา\nศักดิ\nศักดิ์\nศักดินา\nศักติ\nศักย\nศักยภาพ\nศักย์\nศักยะ\nศักร\nศักรินทร์\nศักเรนทร์\nศักราช\nศังกร\nศัตรู\nศันสนะ\nศันสนีย์\nศัพท์\nศัยยา\nศัล\nศัลย์\nศัลยกรรม\nศัลยแพทย์\nศัลยศาสตร์\nศัสดร\nศัสตร\nศัสตรศาสตร์\nศัสตรา\nศัสตราวุธ\nศากตะ\nศากย\nศากยะ\nศากยพุทธ\nศากยมุนี\nศาฎก\nศาณ\nศานต์\nศานติ\nศาป\nศารท\nศารทูล\nศาริกา\nศาล\nศาลา\nศาศวัต\nศาสดา\nศาสตร์\nศาสตรา\nศาสตราจารย์\nศาสนา\nศาสนกิจ\nศาสนจักร\nศาสนธรรม\nศาสนบุคคล\nศาสนพิธี\nศาสนวัตถุ\nศาสนศาสตร์\nศาสนสถาน\nศาสนสมบัติ\nศาสนิกชน\nศาสนีย์\nศาสนูปถัมภก\nศาสน์\nศิกษก\nศิการ\nศิขร\nศิขริน\nศิขรี\nศิขัณฑ์\nศิคาล\nศิงขร\nศิงขริน\nศิตะ\nศิถี\nศิพิระ\nศิระ\nศิรประภา\nศิราภรณ์\nศิโรรัตน์\nศิโรเวฐน์\nศิรา\nศิรามพุช\nศิโรราบ\nศิลป\nศิลป์\nศิลปะ\nศิลปกร\nศิลปกรรม\nศิลปกิจ\nศิลปวัตถุ\nศิลปวิทยา\nศิลปศาสตร์\nศิลปศึกษา\nศิลปหัตถกรรม\nศิลปิน\nศิลปี\nศิลา\nศิวะ\nศิวโมกข์\nศิวลึงค์\nศิวเวท\nศิวาลัย\nศิศีระ\nศิษฎิ\nศิษฏ์\nศิษย์\nศิษยานุศิษย์\nศีขร\nศีต\nศีตกาล\nศีรษะ\nศีล\nศึก\nศึกษา\nศึกษาธิการ\nศึกษานิเทศก์\nศุกร์\nศุกรวรรณ\nศุกรวาร\nศุกระ\nศุกล\nศุกลปักษ์\nศุจิ\nศุทธะ\nศุทธิ\nศุนะ\nศุนิ\nศุภกร\nศุภเคราะห์\nศุภนิมิต\nศุภมัสดุ\nศุภมาตรา\nศุภมาส\nศุภอักษร\nศุภางค์\nศูกร\nศุลกากร\nศุลการักษ์\nศุลี\nศุษิร\nศูทร\nศูนย์\nศูนยวาท\nศูละ\nศูลิน\nเศรณี\nเศรษฐ\nเศรษฐ์\nเศรษฐกิจ\nเศรษฐศาสตร์\nเศรษฐี\nเศร้า\nเศลษ\nเศวต\nเศวตร\nเศวตัมพร\nเศษ\nเศาจ\nเศาร์\nเศารยะ\nเศิก\nเศียร\nโศก\nโศกา\nโศกาดูร\nโศกาลัย\nโศกี\nโศจิ\nโศธนะ\nโศภน\nโศภะ\nโศภา\nโศภิต\nโศภิน\nโศภิษฐ์\nโศภี\nโศรดา\nโศรตร\nโศลก\nไศล\nไศวะ\nษมา\nษัฏ\nษัฑ\nษัณ\nษัษ\nษัษฐะ\nษัษฐี\nโษฑศัน\nสก\nสกวาที\nสกฏะ\nสกทาคามิผล\nสกิทาคามิผล\nสกทาคามิมรรค\nสกิทาคามิมรรค\nสกทาคามี\nสกิทาคามี\nสกนธ์\nสกปรก\nสกรณีย์\nสกรรจ์\nสกรรมกริยา\nสกล\nสกลมหาสังฆปริณายก\nสกัด\nสกา\nสกาว\nสกี\nสกุณ\nสกุณา\nสกุณี\nสกุน\nสกุนต์\nสกุล\nสเกต\nสแกนเดียม\nสขะ\nสง\nส่ง\nสงกร\nสงกรานต์\nสงกา\nสงค์\nสงคร\nสงคราม\nสงเคราะห์\nสงฆ์\nสงบ\nสงวน\nส่งสการ\nสงสัย\nสงสาร\nสงสารวัฏ\nสงัด\nสง่า\nสฐะ\nสณฑ์\nสด\nสดมภ์\nสดับ\nสดับปกรณ์\nสดำ\nสดุดี\nสตะ\nสตน\nสตภิสชะ\nสตรอนเชียม\nสตริกนิน\nสตรี\nสตัฟฟ์\nสตัมภ์\nสตางค์\nสติ\nสติปัฏฐาน\nสตี\nสตู\nสตูป\nสเต๊ก\nสถบดี\nสถล\nสถวีระ\nสถาน\nสถานะ\nสถานี\nสถาบัน\nสถาปนา\nสถาปนิก\nสถาปัตยกรรม\nสถาปัตยกรรมศาสตร์\nสถาปัตยเรขา\nสถาปัตยเวท\nสถาพร\nสถาวร\nสถิต\nสถิตยศาสตร์\nสถิติ\nสถิร\nสถีรวาท\nสถุล\nสถูป\nสทิง\nสทึง\nสทุม\nสธนะ\nสาธุสะ\nสน\nส้น\nสนทนา\nสนทรรศ\nสนทรรศน์\nสนเทศ\nสนเท่ห์\nสนธยา\nสนธิ\nสนน\nสนม\nสนวน\nสนอง\nสนอบ\nสนอม\nสนะ\nสนัด\nสนั่น\nสนับ\nสนับทึบ\nสนับสนุน\nสนาน\nสนาม\nสนายุ\nสนิกะ\nสนิท\nสนิธ\nสนิม\nสนุก\nสนุกเกอร์\nสนุข\nสนุต\nสนุ่น\nสบ\nสบง\nสบถ\nสบัน\nสบาย\nสบู่\nสไบ\nสปริง\nสปอร์\nสปาเกตตี\nสเปกตรัม\nสเปกโทรสโกป\nสไปริลลัม\nสพาบ\nสภา\nสภาพ\nสภาวการณ์\nสภาวะ\nสม\nสมการ\nสมจารี\nสมดุล\nสมมูล\nส้ม\nสมญา\nสมณะ\nสมณบริขาร\nสมณศักดิ์\nสมณสารูป\nสมเด็จ\nสมถะ\nสมถยานิก\nสมถวิปัสสนา\nสมนาคุณ\nสมบัติ\nสมบุกสมบัน\nสมบูรณ์\nสมบูรณาญาสิทธิราชย์\nสมประดี\nสมปฤดี\nสมปฤๅดี\nส้มป่อย\nสมปัก\nสมผุส\nสมพง\nสมพงศ์\nสมพล\nสมพัตสร\nสมพาส\nสมเพช\nสมโพธน์\nสมโพธิ\nสมภพ\nสมภาร\nสมโภค\nสมโภช\nสมมต\nสมมติ\nสมมุติ\nสมมาตร\nส้มมือ\nสมโมท\nสมโยค\nสมร\nสมรด\nสมรรถ\nสมรรถนะ\nสมรรถภาพ\nสมรส\nสมฤดี\nสมฤติ\nสมวายะ\nสมเสร็จ\nสมอ\nสมอง\nสมะ\nสมัคร\nสมังคี\nสมัช\nสมัชชา\nสมัญญา\nสมัต\nสมัน\nสมันต์\nสมัย\nสมา\nสมาคม\nสมาจาร\nสมาชิก\nสมาทาน\nสมาธิ\nสมาน\nสมานฉันท์\nสมาบัติ\nสมาพันธรัฐ\nสมาส\nสม่ำเสมอ\nสมิง\nสมิต\nสมิติ\nสมิทธ์\nสมิทธิ\nสมี\nสมุก\nสมุจจัย\nสมุจเฉท\nสมุฏฐาน\nสมุด\nสมุทร\nสมุทรโคดม\nสมุทัย\nสมุน\nสมุนไพร\nสมุลแว้ง\nสมุห\nสมุห์\nสมุหกลาโหม\nสมุหเทศาภิบาล\nสมุหนาม\nสมุหนายก\nสโมธาน\nสโมสร\nสยด\nสยนะ\nสยบ\nสยมพร\nสยมภู\nสยอง\nสยอน\nสยัมวรา\nสยาม\nสยามานุสติ\nสยามินทร์\nสยาย\nสยิว\nสยิ้ว\nสยุมพร\nสยุมภู\nสร\nสรง\nสร่ง\nสรณะ\nสรณคมน์\nสรณาคมน์\nสรณตรัย\nสรตะ\nสรทะ\nสรนุก\nสรเนาะ\nสรไน\nสรเพชญ\nสรภะ\nสรภัญญะ\nสรภู\nสรม\nสรร\nสรรค์\nสรรพ\nสรรพคุณ\nสรรพนาม\nสรรพสามิต\nสรรพัชญ\nสรรพากร\nสรรพางค์\nสรรเพชญ\nสรรเพชุดา\nสรรเสริญ\nสรลอน\nสรเลข\nสรวง\nสรวม\nสรวล\nสรเสริญ\nสร้อย\nสระ\nสระกอ\nสระท้อน\nสระพรั่ง\nสระอาด\nสรั่ง\nสรัสวดี\nสร่าง\nสร้าง\nสราญ\nสรี้\nสรีระ\nสรีรกิจ\nสรีรธาตุ\nสรีรวิทยา\nสรีรศาสตร์\nสรีรังคาร\nสรีรางคาร\nสรุป\nสโรช\nสโรชะ\nสฤก\nสฤต\nสฤษฎิ\nสฤษฎี\nสฤษฏ์\nสฤษดิ์\nสลด\nสลบ\nสลวน\nสลวย\nสลอด\nสลอน\nสลอย\nสละ\nสลัก\nสลัด\nสลัดได\nสลับ\nสลัว\nสลา\nสลาก\nสลาง\nสล้าง\nสลาด\nสลาตัน\nสลาบ\nสลาย\nสลิด\nสลิล\nสลึก\nสลึง\nสลุต\nสลุบ\nสลุมพร\nสแลง\nสวการย์\nสวภาพ\nสวราชย์\nสวก\nส้วง\nสวด\nสวน\nสวนะ\nสวนาการ\nส่วน\nสวนิต\nสวบ\nสวม\nส้วม\nสวย\nส่วย\nส้วย\nสวยม\nสวรรค\nสวรรค์\nสวรรคต\nสวรรคาลัย\nสวรรยา\nสวระ\nสวะ\nสวัสดิ\nสวัสดิ์\nสวัสดิการ\nสวัสดิภาพ\nสวัสดิมงคล\nสวัสดี\nสวัสติ\nสวาตี\nสวัสติกะ\nสวา\nสวาปาม\nสวาคตะ\nสวาง\nสว่าง\nสวาด\nสวาดิ\nสวาท\nสว่าน\nสว้าน\nสวาบ\nสวามิ\nสวามี\nสวามินี\nสวาย\nสวาสดิ์\nสวาหะ\nสวิง\nสวิญญาณกทรัพย์\nสวิตช์\nสสาร\nสสุระ\nสสุรี\nสหกรณ์\nสหการ\nสหจร\nสหชาต\nสหชาติ\nสหธรรม\nสหธรรมิก\nสหประชาชาติ\nสหพันธ์\nสหพันธรัฐ\nสหภาพ\nสหศึกษา\nสหัช\nสหัมบดี\nสหัส\nสหัสสะ\nสหัสธารา\nสหัสนัยน์\nสหัสเนตร\nสหัสรังสี\nสหัสา\nสหาย\nสอ\nส่อ\nสอง\nส่อง\nส้อง\nสอด\nสอน\nส่อน\nสอบ\nสอพลอ\nส้อม\nสอย\nสะ\nสะกด\nสะกอ\nสะกาง\nสะการะ\nสะกิด\nสะกิดสะเกา\nสะเก็ด\nสะแก\nสะคร้อ\nสะคราญ\nสะค้าน\nสะเงาะสะแงะ\nสะดม\nสะดวก\nสะดิ้ง\nสะดึง\nสะดือ\nสะดุ้ง\nสะดุด\nสะเด็ด\nสะเดา\nสะเดาะ\nสะตอ\nสะตาหมัน\nสะตึ\nสะตือ\nสะตุ\nสะเต๊ะ\nสะโตก\nสะทก\nสะท้อน\nสะท้าน\nสะทึก\nสะเทิน\nสะเทิ้น\nสะเทือน\nสะเทื้อน\nสะบะ\nสะบัก\nสะบักสะบอม\nสะบัด\nสะบัดสะบิ้ง\nสะบั้น\nสะบันงา\nสะบ้า\nสะบู\nสะแบง\nสะเปะสะปะ\nสะพรั่ง\nสะพรึงกลัว\nสะพรึบ\nสะพรึ่บ\nสะพัก\nสะพัง\nสะพัด\nสะพั้น\nสะพาน\nสะพาย\nสะเพร่า\nสะโพก\nสะเภา\nสะใภ้\nสะโมง\nสะระตะ\nสะระแหน่\nสะลาง\nสะลาบ\nสะลึมสะลือ\nสะวี้ดสะว้าด\nสะสม\nสะสวย\nสะสาง\nสะเหล่อ\nสะอาง\nสะอาด\nสะอ้าน\nสะอิ้ง\nสะอิดสะเอียน\nสะอึก\nสะอื้น\nสะเอ้ง\nสะเอว\nสะเออะ\nสะโอดสะอง\nสะไอ\nสัก\nสักกะ\nสักยะ\nสักกัจจะ\nสักกายทิฐิ\nสักการ\nสักการะ\nสักขี\nสักวา\nสักหลาด\nสัค\nสัคคะ\nสั่ง\nสังกร\nสังกรณี\nสังกรประโยค\nสังกะตัง\nสังกะวัง\nสังกะวาด\nสังกะสี\nสังกัด\nสังกัปปะ\nสังกา\nสังการ\nสังกาศ\nสังกิเลส\nสังเกต\nสังข์\nสังขกร\nสังขตธรรม\nสังขตะ\nสังขยา\nสังขลิก\nสังขลิกา\nสังขาร\nสังขารา\nสังเขป\nสังค์\nสังคญาติ\nสังคม\nสังคหะ\nสังคัง\nสังคายนา\nสังคายนาย\nสังคีต\nสังคีติ\nสังเค็ด\nสังเคราะห์\nสังฆกรรม\nสังฆการี\nสังฆเถระ\nสังฆทาน\nสังฆนายก\nสังฆปาโมกข์\nสังฆภัต\nสังฆเภท\nสังฆมณฑล\nสังฆมนตรี\nสังฆราช\nสังฆสภา\nสังฆาณัติ\nสังฆาฏิ\nสังฆาทิเสส\nสังฆาธิการ\nสังฆานุสติ\nสังฆาวาส\nสังยุตนิกาย\nสังโยค\nสังโยชน์\nสังวร\nสังวัจฉระ\nสังวัธยาย\nสังวาล\nสังวาส\nสังเวคะ\nสังเวช\nสังเวชนียสถาน\nสังเวย\nสังเวียน\nสังสกฤต\nสังสการ\nสังสนทนา\nสั่งสนทนา\nสังสรรค์\nสังสารวัฏ\nสังสิทธิ\nสังสุทธ์\nสังสุทธิ\nสังหร\nสังหรณ์\nสังหาร\nสังหาริมทรัพย์\nสังหาริมะ\nสังหิต\nสัจ\nสัจกิริยา\nสัจจะ\nสัจญาณ\nสัจธรรม\nสัจนิยม\nสัจพจน์\nสัชฌะ\nสัชฌุ\nสัญจร\nสัญเจตนา\nสัญชาตญาณ\nสัญชาติ\nสัญฌา\nสัญญา\nสัญญาณ\nสัญญี\nสัญโญชน์\nสัญนิยม\nสัญประกาศ\nสัญลักษณ์\nสัฐิ\nสัณฐาน\nสัณฐิติ\nสัณฑ์\nสัณห์\nสัด\nสัดจอง\nสัต\nสัตตะ\nสัตตาหกรณียะ\nสัตตาหกาลิก\nสัตมวาร\nสัตสดก\nสัตตบงกช\nสัตตบรรณ\nสัตตบุษย์\nสัตตู\nสัตถันดร\nสัตถา\nสัตถิ\nสัตถุ\nสัตถุศาสนา\nสัตบรรณ\nสัตย์\nสัตยพรต\nสัตยวาที\nสัตยาเคราะห์\nสัตยาธิษฐาน\nสัตยาบัน\nสัตว์\nสัตวชาติ\nสัตวบาล\nสัตวแพทย์\nสัตววิทยา\nสัตวา\nสัทธรรม\nสัทธา\nสัทธาจริต\nสัทธาธิกะ\nสัทธินทรีย์\nสัทธิงวิหาริก\nสัทธิวิหาริก\nสัทวิทยา\nสัทศาสตร์\nสัทอักษร\nสัน\nสั่น\nสั้น\nสันดาน\nสันดาป\nสันโดษ\nสันต์\nสันตติ\nสันตะปาปา\nสันตะวา\nสันติ\nสันตุฏฐี\nสันถวไมตรี\nสันถวะ\nสันถัต\nสันถาร\nสันทนะ\nสันทะ\nสันทัด\nสันทัสนะ\nสันทาน\nสันทิฐิก\nสันทิส\nสันเทหะ\nสันธาน\nสันนิธิ\nสันนิบาต\nสันนิวาส\nสันนิษฐาน\nสันสกฤต\nสับ\nสับปลับ\nสับปลี้\nสับปะรด\nสัปคับ\nสัปดาห์\nสัปดาหะ\nสัปดน\nสัปตศก\nสัปทน\nสัปปะ\nสัปปิ\nสัปปุริส\nสัปปุรุษ\nสัประยุทธ์\nสัปหงก\nสัปเหร่อ\nสัพ\nสัพพะ\nสัพพัญญู\nสัพเพเหระ\nสัพยอก\nสัมบูรณ์\nสัมปชัญญะ\nสัมปทา\nสัมปทาน\nสัมปยุต\nสัมปโยค\nสัมประสิทธิ์\nสัมประหาร\nสัมปรายภพ\nสัมปรายิกภพ\nสัมปัตติ\nสัมผัปลาป\nสัมผัปลาปะ\nสัมผัส\nสัมพล\nสัมพหุลา\nสัมพัจฉรฉินท์\nสัมพัตสร\nสัมพัทธ์\nสัมพันธ์\nสัมพันธน์\nสัมพันธภาพ\nสัมพันธมิตร\nสัมพันธไมตรี\nสัมพาหะ\nสัมพุทธ\nสัมพุทธะ\nสัมโพธิ\nสัมภวะ\nสัมภเวสี\nสัมภัต\nสัมภัตตะ\nสัมภาระ\nสัมภาษณ์\nสัมโภคกาย\nสัมมนา\nสัมมัปธาน\nสัมมา\nสัมโมทนียกถา\nสัมฤทธิ\nสัมฤทธิ์\nสัมฤทธิศก\nสัยน์\nสัลเลข\nสัสดี\nสัสตทิฐิ\nสัสสะ\nสัสสุ\nสัสสู\nสา\nส่า\nสาก\nสากรรจ์\nสากล\nสากัจฉา\nสากัลย์\nสากิยะ\nสาเก\nสาขา\nสาคร\nสาคเรศ\nสาคู\nสาง\nส้าง\nสาชล\nสาฎก\nสาฏิก\nสาณี\nสาด\nสาไถย\nสาทร\nสาทิส\nสาทุ\nสาโท\nสาธก\nสาธยะ\nสาธยาย\nสาธารณะ\nสาธารณชน\nสาธารณประโยชน์\nสาธารณภัย\nสาธารณรัฐ\nสาธารณสถาน\nสาธารณสมบัติ\nสาธารณสุข\nสาธารณูปการ\nสาธารณูปโภค\nสาธารณ์\nสาธิต\nสาธุ\nสาน\nส่าน\nสานุ\nสานู\nสานุศิษย์\nสาบ\nสาบสูญ\nสาบาน\nสาป\nสาปไตย\nสาม\nสามชุก\nสามเณร\nสามเณรี\nสามนต์\nสามนตราช\nสามยทรัพย์\nสามล\nสามหาว\nสามะ\nสามัคคี\nสามัญ\nสามัตถิยะ\nสามานย์\nสามานยนาม\nสามารถ\nสามิต\nสามินี\nสามิภักดิ์\nสามี\nสามีจิกรรม\nสาย\nส่าย\nส้าย\nสายชู\nสายัณห์\nสายาห์\nสาร\nสารคดี\nสารธรรม\nสารนิเทศ\nสารบบ\nสารบรรณ\nสารบัญ\nสารบาญ\nสารบาญชี\nสารประโยชน์\nสารสนเทศ\nสารทุกข์\nสารถี\nสารท\nสารพัด\nสารพัน\nสารพางค์\nสารภาพ\nสารภี\nสารวัตร\nสาระ\nสาระแน\nสาระพา\nสาระยำ\nสาระวารี\nสาระสะมา\nสารัตถประโยชน์\nสารัตถศึกษา\nสารัตถะ\nสารัทธ์\nสารัมภ์\nสาราณียกร\nสาราณียธรรม\nสาราณียะ\nสารานุกรม\nสารีริกธาตุ\nสารูป\nสาโรช\nสาละ\nสาละวน\nสาลิ\nสาลิกา\nสาลินี\nสาลี\nสาลี่\nสาลู\nสาโลหิต\nสาว\nสาวก\nสาวิกา\nสาวิตร\nสาวิตรี\nสาสน\nสาสน์\nสาส์น\nสาสนา\nสาสม\nสาหร่าย\nสาหรี\nส่าหรี\nสาหัส\nสาเหตุ\nสาแหรก\nสำ\nสำส่อน\nส่ำ\nสำคัญ\nสำซ่าง\nสำแดง\nสำทับ\nสำนวน\nสำนอง\nสำนัก\nสำนาน\nสำนึก\nสำนึง\nสำเนา\nสำเนียง\nสำบัด\nสำปะลอ\nสำปะหลัง\nสำปั้น\nสำปันนี\nสำเภา\nสำมะงา\nสำมะโน\nสำมะลอ\nสำมะเลเทเมา\nสำมะหา\nสำรด\nสำรวจ\nสำรวม\nสำรวย\nสำรวล\nสำรอก\nสำรอง\nสำรับ\nสำราก\nสำราญ\nสำริด\nสำเร็จ\nสำเรา\nสำเริง\nสำโรง\nสำลัก\nสำลาน\nสำลี\nสำแลง\nสำหรวด\nสำหรับ\nสำหา\nสำเหนียก\nสำเหร่\nสำออย\nสำอาง\nสิ\nสิกข์\nสิข\nสิกขมานา\nสิกขา\nสิขร\nสิขรี\nสิขเรศ\nสิขา\nสิขานล\nสิขี\nสิคาล\nสิง\nสิ่ง\nสิงขร\nสิงค์\nสิงคลิ้ง\nสิงคลี\nสิงคาร\nสิงคาล\nสิงคี\nสิงโต\nสิงห์\nสิงหนาท\nสิงหบัญชร\nสิงหรา\nสิงหราช\nสิงหาคม\nสิงหาสน์\nสิงหล\nสิญจน์\nสิตะ\nสิตางศุ์\nสิถิล\nสิทธ์\nสิทธัตถะ\nสิทธา\nสิทธาจารย์\nสิทธารถ\nสิทธิ\nสิทธิ์\nสิทธิการิยะ\nสิธยะ\nสิน\nสิ้น\nสินเทา\nสินธพ\nสินธุ\nสินธุ์\nสินธุระ\nสินธู\nสินเธาว์\nสินาด\nสินิทธ์\nสินี\nสิเนรุ\nสิเนหก\nสิเนหะ\nสิเนหา\nสิเน่หา\nสิบ\nสิปปะ\nสิมพลี\nสิระ\nสิโรดม\nสิโรตม์\nสิริ\nสิรี\nสิลา\nสิว\nสิ่ว\nสิวะ\nสิวาลัย\nสิวิกา\nสี\nสี่\nสี้\nสีกา\nสีกุน\nสีข้าง\nสีด\nสีดอ\nสีดา\nสีตลรัศมี\nสีตโลทก\nสีโตทก\nสีทันดร\nสีมันต์\nสีมา\nสีละมัน\nสีวิกา\nสีสอ\nสีสะ\nสีสา\nสีสุก\nสีเสียด\nสีห์\nสีหนาท\nสีหบัญชร\nสีหราช\nสีหไสยา\nสีหไสยาสน์\nสีหะ\nสึก\nสึง\nสืบ\nสื่อ\nสุ\nสุก\nสุกข์\nสุกร\nสุกรม\nสุกำศพ\nสุกียากี้\nสุข\nสุขา\nสุขาภิบาล\nสุขารมณ์\nสุขาวดี\nสุขิน\nสุขี\nสุขุม\nสุขุมาล\nสุโข\nสุคต\nสุคติ\nสุคนธ\nสุคนธ์\nสุคนธชาติ\nสุคนธรส\nสุคันธ์\nสุคันธรส\nสุงกะ\nสุงกากร\nสุงสิง\nสุงสุมาร\nสุจริต\nสุจหนี่\nสุจิ\nสุจิต\nสุจิตร\nสุชน\nสุชัมบดี\nสุชา\nสุชาดา\nสุญ\nสุญญากาศ\nสุญตา\nสุญนิยม\nสุณ\nสุณิสา\nสุด\nสุดา\nสุต\nสุตตนิบาต\nสุตตะ\nสุตตันตปิฎก\nสุตตันตะ\nสุติ\nสุทธ\nสุทธ์\nสุทธาวาส\nสุทธิ\nสุทรรศน์\nสุทัศน์\nสุธา\nสุธาโภชน์\nสุธารส\nสุธาสินี\nสุธาสี\nสุธี\nสุนทร\nสุนทรี\nสุนทรียภาพ\nสุนทรียศาสตร์\nสุนทรียะ\nสุนัข\nสุนันท์\nสุโนก\nสุบดี\nสุบรรณ\nสุบิน\nสุปรีดิ์\nสุปรีย์\nสุปาณี\nสุพพัต\nสุพรรณ\nสุพรรณบัฏ\nสุพรรณภาชน์\nสุพรรณราช\nสุพรรณศรี\nสุพรรณถัน\nสุพรรณิการ์\nสุภร\nสุภัค\nสุภา\nสุภาพ\nสุภาษิต\nสุม\nสุ่ม\nสุมทุม\nสุมน\nสุมนะ\nสุมนัส\nสุมนา\nสุ้มเสียง\nสุมะ\nสุมาลี\nสุเมธ\nสุเมรุ\nสุรคต\nสุรเชษฐ์\nสุรบดี\nสุรภาพ\nสุรโลก\nสุรสีหนาท\nสุรเสียง\nสุรงค์\nสุรังค์\nสุรภี\nสุรัติ\nสุรัสวดี\nสุรา\nสุรางค์จำเรียง\nสุรางคนา\nสุรางคนางค์\nสุรารักษ์\nสุราลัย\nสุรินทร์\nสุรินทราหู\nสุริยะ\nสุริยกันต์\nสุริยกานต์\nสุริยการ\nสุริยกาล\nสุริยคติ\nสุริยคราส\nสุริยมณฑล\nสุริยวงศ์\nสุริยง\nสุริยา\nสุริเยนทร์\nสุริเยศ\nสุริโย\nสุริยน\nสุริยัน\nสุริยุปราคา\nสุรีย์\nสุรุ่ยสุร่าย\nสุลต่าน\nสุวคนธ์\nสุวภาพ\nสุวรรณ\nสุวรรณภูมิ\nสุวะ\nสุวาน\nสุวินัย\nสุวิมล\nสุษิระ\nสุสาน\nสุหนัต\nสุหร่ง\nสุหร่าย\nสุหฤท\nสุหัท\nสุเหร่า\nสู\nสู่\nสู้\nสูง\nสูจิ\nสูจิบัตร\nสูญ\nสูด\nสูต\nสูตร\nสูติ\nสูติกรรม\nสูตินรีเวช\nสูติบัตร\nสูติแพทย์\nสูติศาสตร์\nสูท\nสูทกรรม\nสูทศาสตร์\nสูบ\nสูปะ\nสูร\nสูรย์\nสูรยกานต์\nสูริ\nสูสี\nเส\nเสก\nเสกขบุคคล\nเสกขะ\nเสขบุคคล\nเสขะ\nเส็ง\nเส้ง\nเส็งเคร็ง\nเสงี่ยม\nเสฏฐี\nเสณี\nเสด\nเสด็จ\nเสตุ\nเสถียร\nเสทะ\nเสโท\nเสน\nเส้น\nเสนง\nเสน่ง\nเสน่ห์\nเสนหา\nเสน่หา\nเสนอ\nเสนะ\nเสนา\nเสนาธิการ\nเสนาบดี\nเสน่า\nเสนากุฎ\nเสนางค์\nเสนางคนิกร\nเสนานี\nเสนาสนะ\nเสนาะ\nเสนี\nเสนีย์\nเสนียะ\nเสนียด\nเสบย\nเสบียง\nเสพ\nเสพย์\nเสเพล\nเสภา\nเสม็ด\nเสมหะ\nเสมอ\nเสมา\nเสมียน\nเสมือน\nเสย\nเสร็จ\nเสริด\nเสริม\nเสรี\nเสลด\nเสลบรรพต\nเสลา\nเสลี่ยง\nเสลือกสลน\nเสโล\nเสวก\nเสวกามาตย์\nเสวนะ\nเสวนา\nเสวย\nเสวียน\nเสสรวง\nเสสรวล\nเสา\nเส้า\nเสาร์\nเสารภย์\nเสารี\nเสาวคนธ์\nเสาวธาร\nเสาวภา\nเสาวภาคย์\nเสาวภาพ\nเสาวรภย์\nเสาวรส\nเสาวลักษณ์\nเสาวณิต\nเสาวนะ\nเสาวนา\nเสาวนีย์\nเสาหฤท\nเสาะ\nเสาะแสะ\nเสิร์จ\nเสิร์ฟ\nเสีย\nเสียง\nเสี่ยง\nเสียด\nเสี้ยน\nเสียบ\nเสียม\nเสี่ยม\nเสี้ยม\nเสียว\nเสี่ยว\nเสี้ยว\nเสือ\nเสื่อ\nเสื้อ\nเสือก\nเสื่อม\nแส\nแส่\nแส้\nแสก\nแสง\nแสด\nแสดง\nแสตมป์\nแสน\nแสนย์\nแสนยากร\nแสนยานุภาพ\nแสบ\nแสม\nแสยก\nแสยง\nแสยะ\nแสรก\nแสร้ง\nแสลง\nแสล้ม\nแสวง\nแสะ\nโสก\nโสกโดก\nโสกันต์\nโสโครก\nโสณฑ์\nโสณิ\nโสณี\nโสด\nโสดก\nโสดม\nโสดา\nโสดาบัน\nโสดาปัตติผล\nโสดาปัตติมรรค\nโสต\nโสตทัศนวัสดุ\nโสตทัศนอุปกรณ์\nโสตทัศนูปกรณ์\nโสตินทรีย์\nโสตถิ\nโสทก\nโสทร\nโสธก\nโสธนะ\nโสน\nโสภณ\nโสภา\nโสภี\nโสภิณี\nโสเภณี\nโสม\nโสมนัส\nโสมม\nโสมย์\nโสร่ง\nโสรจ\nโสรวาร\nโสโร\nโสวรรณ\nโสหุ้ย\nโสฬส\nใส\nใส่\nไส\nไส้\nไสย\nไสยา\nไสยาสน์\nไสร้\nไสว\nหก\nหกคะเมน\nหง\nหงก\nหงส์\nหงสบาท\nหงสรถ\nหงอ\nหงอก\nหง่อง\nหงองแหงง\nหงอด\nหงอน\nหง่อม\nหงอย\nหง่อย\nหงัก\nหงับ\nหง่าง\nหงาย\nหง่าว\nหงำ\nหงิก\nหงิง\nหงิม\nหงึก\nหงุงหงิง\nหงุดหงิด\nหงุบ\nหงุ่ย\nหญ้า\nหญ้าฝรั่น\nหญ้ายายเภา\nหญิง\nหญิบ\nหด\nหตะ\nหทัย\nหน\nหนวก\nหน่วง\nหนวด\nหน่วย\nหน่วยกิต\nหนอ\nหน่อ\nหนอก\nหนอง\nหนอน\nหนอนตายหยาก\nหน่อย\nหน็อยแน่\nหนัก\nหนัง\nหนังสติ๊ก\nหนังสือ\nหนั่น\nหนับ\nหนา\nหน้า\nหน่าง\nหนาด\nหนาน\nหนาม\nหน่าย\nหนาว\nหนำ\nหนำเลี้ยบ\nหนี\nหนี้\nหนีบ\nหนึก\nหนึ่ง\nหนึบ\nหนืด\nหนุ\nหนุน\nหนุบ\nหนุ่ม\nหนุ่ย\nหนู\nห่ม\nหมก\nหมด\nหม่น\nหมวก\nหมวด\nหมวน\nหมอ\nหม่อ\nหม้อ\nหมอก\nหมอง\nหม่อง\nหมอน\nหม่อน\nหมอบ\nหม่อม\nหมอย\nหม้อห้อม\nหมัก\nหมักหมม\nหมัด\nหมัน\nหมั่น\nหมั้น\nหมับ\nหมา\nหม่า\nหมาก\nหมากฮอส\nหมาง\nหมาด\nหมามุ่ย\nหมามุ้ย\nหมาย\nหม้าย\nหมาร่า\nหม่ำ\nหม้ำ\nหมิ่น\nหมี\nหมี่\nหมึก\nหมืน\nหมื่น\nหมุด\nหมุน\nหมุบ\nหมุบหมับ\nหมุบหมิบ\nหมุ่ย\nหมุยขาว\nหมู\nหมู่\nหมูหริ่ง\nหยก\nหย่ง\nหยด\nหยวก\nหยวบ\nหยอก\nหยอกเอิน\nหย็อกหย็อย\nหยอง\nหย็อง\nหย่อง\nหย็องกรอด\nหย็องแหย็ง\nหยอด\nหยอน\nหย่อน\nหย่อม\nหย็อมแหย็ม\nหย็อย\nหย่อย\nหยัก\nหยักไย่\nหยักเหยา\nหยัง\nหยั่ง\nหยังหยัง\nหยัด\nหยัน\nหยับ\nหยั่วเมือง\nหย่า\nหยากเยื่อ\nหยากไย่\nหยาด\nหยาบ\nหยาม\nหยาว\nหย้าว\nหยำเป\nหยำเหยอะ\nหยำแหยะ\nหยิก\nหยิ่ง\nหยิบ\nหยิม\nหยี\nหยี่\nหยุกหยิก\nหยุด\nหยุ่น\nหยุบ\nหยุมหยิม\nหยูกยา\nหโยดม\nหรคุณ\nหรณะ\nหรดาล\nหรดี\nหรรษ์\nหรรษา\nหรอ\nหรอก\nหร็อมแหร็ม\nหรอย\nหระ\nหรับ\nหรา\nหริ\nหริ่ง\nหริณะ\nหริต\nหริตกี\nหรีตกี\nหรี่\nหรีด\nหรือ\nหรุบ\nหรุบรู่\nหรุบหรู่\nหรุ่ม\nหรู\nหรูหรา\nหฤทัย\nหฤทย์\nหฤษฎ์\nหฤษฎี\nหฤหรรษ์\nหฤโหด\nหลง\nหลงใหล\nหลงจู๊\nหลด\nหลน\nหล่น\nหลบ\nหล่ม\nหลวง\nหลวม\nหลอ\nหล่อ\nหลอก\nหลอด\nหลอน\nหล็อน\nหล่อน\nหลอม\nหละ\nหละหลวม\nหลัก\nหลัง\nหลั่ง\nหลัด\nหลั่น\nหลับ\nหลัว\nหลา\nหล้า\nหลาก\nหลาน\nหลาบ\nหลาม\nหลาย\nหลาว\nหลิ่ง\nหลิท\nหลิน\nหลิม\nหลิว\nหลิ่ว\nหลี\nหลีก\nหลีโก\nหลีบ\nหลีฮื้อ\nหลืบ\nหลุกหลิก\nหลุด\nหลุน\nหลุบ\nหลุม\nหลุมพอ\nหลุมพี\nหลู่\nหวง\nห่วง\nห้วง\nหวด\nหวน\nห้วน\nหวย\nห้วย\nหวอ\nหวอด\nหวะ\nหวัง\nหวัด\nหวั่น\nหวันยิหวา\nหวัว\nหวัวร่อ\nหวัวเราะ\nหวา\nหว่า\nหว้า\nหวาก\nหว่าง\nหวาด\nหวาน\nหว่าน\nหวาม\nหวาย\nหวำ\nหวิด\nหวิว\nหวี\nหวี่\nหวีด\nหวือ\nหวุดหวิด\nหวูด\nหอ\nห่อ\nห้อ\nหอก\nหอง\nห้อง\nหอน\nห่อน\nหอบ\nหอม\nห้อม\nหอย\nห้อย\nหะ\nหะยี\nหะหาย\nหัก\nหัจญ์\nหัจญี\nหัช\nหัฏฐะ\nหัด\nหัต\nหัตถ์\nหัตถกรรม\nหัตถการ\nหัตถกิจ\nหัตถบาส\nหัตถพันธ์\nหัตถาภรณ์\nหัตถศาสตร์\nหัตถศิลป์\nหัตถศึกษา\nหัตถาจารย์\nหัตถินี\nหัตถี\nหัน\nหั่น\nหั้น\nหันตรา\nหับ\nหัย\nหัว\nหัวร่อ\nหัวเราะ\nหัส\nหัสดิน\nหัสดี\nหัสต์\nหัสตะ\nหา\nห่า\nห้า\nหาก\nหาง\nห่าง\nห้าง\nหาญ\nหาด\nห่าน\nหาบ\nหาม\nห่าม\nห้าม\nหาย\nหายใจ\nหายนะ\nหาร\nหารือ\nหาว\nห้าว\nหาสะ\nหำ\nห้ำ\nหิ้ง\nหิงคุ\nหิงสา\nหิงห้อย\nหิ่งห้อย\nหิ่งหาย\nหิด\nหิต\nหิตานุหิตประโยชน์\nหิน\nหิมพาน\nหิมพานต์\nหิมวัต\nหิมวันต์\nหิมวา\nหิมะ\nหิมาลัย\nหิรัญ\nหิรัญญิการ์\nหิรัญบัฏ\nหิรัณย์\nหิรัณยรัศมี\nหิริ\nหิว\nหิ้ว\nหี\nหีด\nหีนยาน\nหีบ\nหึ\nหึง\nหึ่ง\nหึงสา\nหืด\nหืน\nหื่น\nหือ\nหื้อ\nหุง\nหุน\nหุ่น\nหุ้น\nหุนหัน\nหุบ\nหุ้ม\nหุยฮา\nหู\nหู่\nหูก\nหูด\nเห\nเห่\nเหง\nเหง่ง\nเหงา\nเหง้า\nเหงื่อ\nเหงือก\nเห็จ\nเห็ด\nเหติ\nเหตุ\nเห็น\nเหน่ง\nเหนงนายพราน\nเหน็ดเหนื่อย\nเหน็บ\nเหน่อ\nเห็นอ้ม\nเหนอะ\nเหนอะหนะ\nเหน้า\nเหนาะ\nเหนียง\nเหนี่ยง\nเหนี่ยน\nเหนียม\nเหนียว\nเหนี่ยว\nเหนือ\nเหนื่อย\nเห็บ\nเหม\nเหม่\nเหม็ง\nเหม่ง\nเหม็น\nเหมวดี\nเหม่อ\nเหมันต์\nเหมันตฤดู\nเหมา\nเหมายัน\nเหมาะ\nเหมียว\nเหมี่ยว\nเหมือง\nเหมือด\nเหมือน\nเหมื่อย\nเหย\nเหยง\nเหย่อย\nเหยา\nเหย่า\nเหย้า\nเหยาะ\nเหยาะแหยะ\nเหยิง\nเหยิบ\nเหยียด\nเหยียบ\nเหยี่ยว\nเหยื่อ\nเหยือก\nเหรอ\nเหรอะ\nเหรัญญิก\nเหรา\nเหราะ\nเหรียญ\nเหล่\nเหล็ก\nเหลน\nเหลว\nเหลอ\nเหลา\nเหล่า\nเหล้า\nเหลาะแหละ\nเหลิง\nเหลิงเจิ้ง\nเหลียน\nเหลี่ยม\nเหลียว\nเหลือ\nเหลือก\nเหลือง\nเหลือบ\nเหลือม\nเหลื่อม\nเหว\nเหว่\nเหวง\nเหวย\nเหวอะ\nเหวอะหวะ\nเหวี่ยง\nเห่อ\nเหอะ\nเหะ\nเหะหะ\nเหา\nเห่า\nเหาะ\nเหิน\nเหิม\nเหี้ย\nเหียง\nเหียน\nเหี้ยน\nเหี้ยม\nเหี่ยว\nเหื่อ\nเหือด\nแห\nแห่\nแห้\nแหก\nแหง\nแหง่\nแห่ง\nแห้ง\nแหงแก๋\nแหง่ง\nแหงน\nแหน\nแห้น\nแหนง\nแหนบ\nแหนม\nแหบ\nแหม\nแหม่\nแหม่ม\nแหมะ\nแหย\nแหย่\nแหยง\nแหย่ง\nแหยม\nแหย็ม\nแหยะ\nแหล่\nแหลก\nแหล่ง\nแหลน\nแหลม\nแหละ\nแหว\nแห้ว\nแหวก\nแหว่ง\nแหวด\nแหวน\nแหวะ\nแหะ\nโห่\nโหง\nโหด\nโหน\nโหนก\nโหน่ง\nโหม\nโหม่ง\nโหมด\nโหย\nโหยกเหยก\nโหยง\nโหย่ง\nโหร\nโหรง\nโหรงเหรง\nโหรดาจารย์\nโหระพา\nโหรา\nโหราจารย์\nโหราศาสตร์\nโหล\nโหล่\nโหลงโจ้ง\nโหว\nโหว่\nโหว้\nโหวกเหวก\nโหวง\nโหวด\nโหวต\nให้\nใหญ่\nใหม่\nไห\nไห่\nไห้\nไหน\nไหม\nไหม้\nไหรณย์\nไหล\nไหล่\nไหว\nไหว้\nไหหลำ\nอก\nอกตเวทิตา\nอกตเวที\nอกตัญญุตา\nอกตัญญู\nอกนิษฐ์\nอกรณีย์\nอกรรมกริยา\nอกัปปิยวัตถุ\nอกัปปิยะ\nอกุศล\nอคติ\nอคาธ\nอโฆษะ\nองก์\nองค์\nองคชาต\nองคมนตรี\nองครักษ์\nองคาพยพ\nองคุลี\nองศ์\nองศา\nองอาจ\nองุ่น\nอจลา\nอจินตา\nอจินไตย\nอจิระ\nอเจลก\nอเจละ\nอชะ\nอชิน\nอชินี\nอชิระ\nอฏวี\nอณิ\nอณู\nอโณทัย\nอด\nอดิถี\nอดิเทพ\nอดิเรก\nอดิศร\nอดิศวร\nอดิศัย\nอดีต\nอดุล\nอดุลย์\nอติ\nอติชาต\nอติมานะ\nอติราช\nอติเรก\nอติสาร\nอถรรพเวท\nอาถรรพเวท\nอทระ\nอทินนาทาน\nอธรรม\nอธิ\nอธิกมาส\nอธิกรณ์\nอธิกวาร\nอธิกสุรทิน\nอธิการ\nอธิคม\nอธิฏฐาน\nอธิบดี\nอธิบาย\nอธิป\nอธิปไตย\nอธิมาตร\nอธิมุตติ\nอธิโมกข์\nอธิราช\nอธิวาส\nอธิวาสนะ\nอธิศีล\nอธิษฐาน\nอธึก\nอ้น\nอนงค์\nอนงคณะ\nอนงคเลขา\nอนธการ\nอนนต์\nอนยะ\nอนรรฆ\nอนรรถ\nอนล\nอนวัช\nอนัญ\nอนัตตา\nอนันต์\nอนันตริยกรรม\nอนัม\nอนาคต\nอนาคามิผล\nอนาคามิมรรค\nอนาคามี\nอนาจาร\nอนาถ\nอนาถา\nอนาทร\nอนาธิปไตย\nอนามัย\nอนามิกา\nอนารยชน\nอนารยธรรม\nอนารยะ\nอนาลัย\nอนำ\nอนิจ\nอนิจจัง\nอนิจจา\nอนิฏฐารมณ์\nอนิยต\nอนิยม\nอนิล\nอนิวรรต\nอนิวรรตน์\nอนีกะ\nอนีจะ\nอนึก\nอนึ่ง\nอนุ\nอนุกร\nอนุกรม\nอนุกรรมการ\nอนุกระเบียด\nอนุกาชาด\nอนุการ\nอนุกูล\nอนุคามิก\nอนุเคราะห์\nอนุจร\nอนุช\nอนุชน\nอนุชา\nอนุชาต\nอนุชิต\nอนุญาต\nอนุญาโตตุลาการ\nอนุตร\nอนุเถระ\nอนุทิน\nอนุบท\nอนุบาล\nอนุประโยค\nอนุปริญญา\nอนุปสัมบัน\nอนุปัสนา\nอนุพงศ์\nอนุพัทธ์\nอนุพันธ์\nอนุโพธ\nอนุภรรยา\nอนุภริยา\nอนุภาค\nอนุภาษ\nอนุมัติ\nอนุมาตรา\nอนุมาน\nอนุมูล\nอนุโมทนา\nอนุโยค\nอนุรักษ์\nอนุรักษนิยม\nอนุราช\nอนุราธ\nอนุราธะ\nอนุราธา\nอนุรูป\nอนุโลม\nอนุวงศ์\nอนุวรรตน์\nอนุวัต\nอนุวัตน์\nอนุวัตร\nอนุวัติ\nอนุวาต\nอนุศาสก\nอนุศาสน์\nอนุศาสนาจารย์\nอนุศิษฏ์\nอนุสติ\nอนุสนธิ\nอนุสร\nอนุสรณ์\nอนุสัญญา\nอนุสัย\nอนุสาวรีย์\nอนุสาสนี\nอเนก\nอเนกคุณ\nอเนกรรถประโยค\nอเนจอนาถ\nอโนชา\nอโนดาต\nอบ\nอบเชย\nอบาย\nอปจายนธรรม\nอปจายนมัย\nอปมงคล\nอปยศ\nอประไมย\nอปรัณณชาติ\nอปรา\nอปราชัย\nอปราชิต\nอปริมาณ\nอปลักษณ์\nอปโลกน์\nอปวาท\nอเปหิ\nอพพะ\nอพยพ\nอภัพ\nอภัย\nอภิ\nอภิฆาต\nอภิชฌา\nอภิชน\nอภิชนาธิปไตย\nอภิชัย\nอภิชาต\nอภิชิต\nอภิญญา\nอภิญญาณ\nอภิธรรม\nอภิธาน\nอภิไธย\nอภินันท์\nอภินันทนาการ\nอภินัย\nอภินิหาร\nอภิเนษกรมณ์\nอภิบาล\nอภิปรัชญา\nอภิปราย\nอภิมหาอำนาจ\nอภิมานะ\nอภิมุข\nอภิรดี\nอภิรติ\nอภิรมย์\nอภิรักษ์\nอภิราม\nอภิรุต\nอภิรุม\nอภิรูป\nอภิลักขิต\nอภิลักขิตสมัย\nอภิเลปน์\nอภิวันท์\nอภิวาท\nอภิวาทน์\nอภิเษก\nอภิสมโพธิ\nอภิสมัย\nอภิสมาจาร\nอภิสัมโพธิ\nอภิสัมโพธิญาณ\nอภิสิต\nอภิสิทธิ์\nอภูตะ\nอม\nอมพะนำ\nอ้ม\nอมตธรรม\nอมตบท\nอมตะ\nอมนุษย์\nอมร\nอมรา\nอมราวดี\nอมรินทร์\nอมเรนทร์\nอมเรศ\nอมฤต\nอมัตร\nอมาตย์\nอมาวสี\nอมาวสุ\nอมาวาสี\nอมิตร\nอเมริกัน\nอย่า\nอยาก\nอย่าง\nอยุทธ์\nอยู่\nอร\nอรชร\nอรชุน\nอรดี\nอรติ\nอรทัย\nอรไท\nอรนุช\nอรพินท์\nอรพิม\nอรรค\nอรรฆ\nอรรฆย์\nอรรจน์\nอรรณพ\nอรรถ\nอรรถกถา\nอรรถกถาจารย์\nอรรถาธิบาย\nอรรธ\nอรสุม\nอรหะ\nอรหัง\nอรหัต\nอรหัตผล\nอรหัตมรรค\nอรหัน\nอรหันต์\nอรหันตฆาต\nอร่อย\nอรัญ\nอรัญญิก\nอรัญวาส\nอรัญวาสี\nอรัณย์\nอราดี\nอร่าม\nอริ\nอรินทร์\nอริน\nอริยกะ\nอริยทรัพย์\nอริยบุคคล\nอริยผล\nอริยมรรค\nอริยสัจ\nอริยะ\nอรุณ\nอรุโณทัย\nอรุ่ม\nอรูป\nอลงกต\nอลงกรณ์\nอลงการ\nอลวน\nอลเวง\nอลหม่าน\nอล่องฉ่อง\nอลักเอลื่อ\nอลังการ\nอลัชชี\nอล่างฉ่าง\nอลิงค์\nอลึงค์\nอลึ่งฉึ่ง\nอโลหะ\nอ้วก\nอวกาศ\nอวจร\nอวชัย\nอวชาต\nอวด\nอวตาร\nอวน\nอ้วน\nอวบ\nอวมงคล\nอวย\nอวยวะ\nอวรรค\nอวรุทธ์\nอวรุทธก\nอวล\nอวสาน\nอวหาร\nอวัยวะ\nอวัสดา\nอวาจี\nอวิจี\nอวิชชา\nอวิญญาณกทรัพย์\nอวิญญู\nอวิรุทธ์\nอวิโรธน์\nอวิโรธนะ\nอวิหิงสา\nอวีจิ\nอเวจี\nอโศก\nอสงไขย\nอสนี\nอัสนี\nอสนีบาต\nอสภะ\nอสมการ\nอสมมาตร\nอสรพิษ\nอสังหาริมทรัพย์\nอสังหาริมะ\nอสัญกรรม\nอสัญญี\nอสัญแดหวา\nอสัตถพฤกษ์\nอัสสัตถพฤกษ์\nอสัตย์\nอสัมภิน\nอสัมภินพงศ์\nอสัมภินวงศ์\nอสิ\nอสิธารา\nอสิต\nอสิเลสะ\nอสีตยานุพยัญชนะ\nอสีติ\nอสุ\nอสุจิ\nอสุนีบาต\nอสุภ\nอสุรกาย\nอสุรา\nอสุรี\nอสุเรศ\nอสูร\nอเสกขบุคคล\nอเสกขะ\nอเสขบุคคล\nอเสขะ\nอหังการ\nอหิ\nอหิงสา\nอหิวาต์\nอหิวาตกโรค\nอหึงสา\nอเหตุกทิฐิ\nอโหสิ\nออ\nอ้อ\nอ๋อ\nออก\nออกซิเจน\nออกซิเดชัน\nออกไซด์\nออกญา\nอ่อง\nอ๋อง\nอ้องแอ้ง\nออเซาะ\nออด\nอ๊อด\nอ๊อดแอ๊ด\nอ่อน\nอ้อน\nออนซ์\nออนซอน\nอ้อนแอ้น\nออฟฟิศ\nออม\nอ่อม\nอ้อม\nออมชอม\nออมซอม\nอ้อมแอ้ม\nอ่อย\nอ้อย\nอ๋อย\nอ้อยส้อย\nอ้อยอิ่ง\nออสเมียม\nอ้อแอ้\nอ๊ะ\nอะคร้าว\nอะเคื้อ\nอะแจ\nอะเซทิลีน\nอะดรีนาลิน\nอะดุง\nอะตอม\nอะมีบา\nอะเมริเซียม\nอะร้าอร่าม\nอะไร\nอะลุ่มอล่วย\nอะลุ้มอล่วย\nอะลูมิเนียม\nอะหม\nอะไหล่\nอัก\nอั้ก\nอั๊ก\nอักกะ\nอักโกธะ\nอักขรวิธี\nอักขรวิบัติ\nอักขรสมัย\nอักขระ\nอักขรานุกรม\nอักขะ\nอักโข\nอักโขภิณี\nอักโขเภณี\nอักษร\nอักษะ\nอักเษาหิณี\nอักเสบ\nอักอ่วน\nอัคคะ\nอัคคิ\nอัคคี\nอัคนิ\nอัคนี\nอัคร\nอัครชายา\nอัครมเหสี\nอัครราชทูต\nอัครสมณทูต\nอัง\nอังก์\nอังกนะ\nอังกฤษ\nอังกะลุง\nอังกา\nอังกาบ\nอังกุระ\nอังกุศ\nอังกูร\nอังคณะ\nอังคณา\nอังคาร\nอังคาส\nอังคีรส\nอังคุฐ\nอังคุตรนิกาย\nอังฆาต\nอังแพลม\nอั้งยี่\nอั้งโล่\nอังศุ\nอังศุก\nอังศุธร\nอังศุมาลี\nอังสกุฏ\nอังสตรอม\nอังสนา\nอังสภาระ\nอังสะ\nอังสา\nอัจกลับ\nอัจจิ\nอัจจิมา\nอัจจุตะ\nอัจฉรา\nอัจฉริยบุคคล\nอัจฉริยภาพ\nอัจฉริยลักษณ์\nอัจฉริยลักษณะ\nอัจฉริยะ\nอัจนา\nอัชฌัตติก\nอัชฌา\nอัชฌาจาร\nอัชฌาศัย\nอัชฌาสัย\nอัญเดียรถีย์\nอัญมณี\nอัญขยม\nอัญชนะ\nอัญชลี\nอัญชัน\nอัญชุลี\nอัญเชิญ\nอัญญะ\nอัญดิตถีย์\nอัญเดียรถีย์\nอัญประกาศ\nอัญรูป\nอัฏ\nอัฏฐบาน\nอัฏฐะ\nอัฏฐังคิกมรรค\nอัฏนา\nอัฐ\nอัฐฬส\nอัฐเคราะห์\nอัฐทิศ\nอัฐบริขาร\nอัฐบาน\nอัฐม\nอัฐมี\nอัฐศก\nอัฐิ\nอัฒจันทร์\nอัฒภาค\nอัฒมาส\nอัฒรัตติ\nอัณฑโกส\nอัณฑชะ\nอัณฑะ\nอัณณพ\nอัด\nอัดแจ\nอัต\nอัตชีวประวัติ\nอัตนัย\nอัตภาพ\nอัตวินิบาตกรรม\nอัตคัด\nอัตตโนบท\nอัตตา\nอัตตาธิปไตย\nอัตถ์\nอัตถะ\nอัตโนมัติ\nอัตรชะ\nอัตรา\nอัตลัด\nอัททา\nอัทธ์\nอัทธา\nอัทธาน\nอัทธายุ\nอัธยาตมวิทยา\nอัธยาย\nอัธยาศัย\nอัน\nอั้น\nอั๋น\nอันดร\nอันดับ\nอันตกะ\nอันตกาล\nอันตะ\nอันตคุณ\nอันตรภาค\nอันตรวาสก\nอันตรธาน\nอันตรา\nอันตราย\nอันตรายิกธรรม\nอันติกะ\nอันติมสัจ\nอันติมะ\nอันเต\nอันโต\nอันเตปุริก\nอันเตวาสิก\nอันแถ้ง\nอันโทล\nอันธการ\nอันธพาล\nอันธิกา\nอันเวส\nอับ\nอับปาง\nอัปปะ\nอัปเปหิ\nอัปภาคย์\nอัปมงคล\nอัปยศ\nอัประมาณ\nอัประไมย\nอัปราชัย\nอัปรีย์\nอัปลักษณ์\nอัปสร\nอัพพุท\nอัพโพหาริก\nอัพภันดร\nอัพภาน\nอัพภาส\nอัพภูตธรรม\nอัพยากฤต\nอัมพฤกษ์\nอัมพาต\nอัมพวัน\nอัมพวา\nอัมพร\nอัมพา\nอัมพิละ\nอัมพุ\nอัมพุช\nอัมพุชินี\nอัมพุท\nอัยกา\nอัยการ\nอัยกี\nอัยยะ\nอัยยิกา\nอัลกุรอาน\nอัลตราไวโอเลต\nอั่ว\nอัศจรรย์\nอัศเจรีย์\nอัศว\nอัศวเมธ\nอัศวยุช\nอัศวานึก\nอัศวิน\nอัศวินี\nอัษฎมงคล\nอัษฏมงคล\nอัษฎางคิกมรรค\nอัษฎายุธ\nอัษฎาวุธ\nอัสสะ\nอัสดร\nอัสกัณ\nอัสดง\nอัสดงคต\nอัสมิมานะ\nอัสสนี\nอัสสานึก\nอัสสาสะ\nอัสสุ\nอา\nอ่า\nอ้า\nอ๋า\nอากร\nอากังขา\nอากัป\nอาการ\nอากาศ\nอากูล\nอาเกียรณ์\nอาขยาต\nอาขยาน\nอาคเนย์\nอาคม\nอาครหายณี\nอาคันตุกะ\nอาคันตุกภัต\nอาคันตุกวัตร\nอาคาร\nอาฆาต\nอ่าง\nอ้าง\nอางขนาง\nอ้างว้าง\nอาจ\nอาจม\nอาจริยวัตร\nอาจริยวาท\nอาจาด\nอาจาร\nอาจารย์\nอาจารี\nอาจิณ\nอาเจียน\nอาชญา\nอาชวะ\nอาชา\nอาชาไนย\nอาชีพ\nอาชีวศึกษา\nอาชีวะ\nอาชีวก\nอาญา\nอาฏานา\nอาณัติ\nอาณา\nอาด\nอาดูร\nอาดุลย์\nอาดูลย์\nอาเด๊ะ\nอาตมภาพ\nอาตมัน\nอาตมา\nอาถรรพ์\nอาถรรพณ์\nอาทร\nอาทิ\nอาทิจจวาร\nอาทิตย์\nอาทิตยมณฑล\nอาทิตยวาร\nอาทีนพ\nอาทีนวะ\nอาทึก\nอาเทศ\nอาเทสนา\nอาธรรม\nอาธรรม์\nอาธาน\nอาธาร\nอาน\nอ่าน\nอานน\nอานนท์\nอานันท์\nอานันทนะ\nอานัม\nอานาปานะ\nอานาปานัสสติ\nอานิสงส์\nอานุภาพ\nอานุภาวะ\nอาบ\nอาบัติ\nอาบัน\nอาปณกะ\nอาปณะ\nอาปะ\nอาโป\nอาปานะ\nอาพัทธ์\nอาพันธ์\nอาพันธนะ\nอาพาธ\nอาเพศ\nอาภรณ์\nอาภัพ\nอาภัสระ\nอาภา\nอาภาส\nอามลกะ\nอามัย\nอามิษ\nอามิส\nอาย\nอ้าย\nอายตนะ\nอายตะ\nอายน\nอายัด\nอายัต\nอายัน\nอายาจนะ\nอายานะ\nอายุ\nอายุตกะ\nอายุธ\nอายุรกรรม\nอายุรแพทย์\nอายุรเวช\nอายุรเวท\nอายุศาสตร์\nอายุษ\nอาร์กอน\nอารดี\nอารติ\nอาร์ต\nอารทรา\nอาร์ม\nอารมณ์\nอารยชน\nอารยชาติ\nอารยธรรม\nอารยประเทศ\nอารยะ\nอารยัน\nอาระ\nอารักขา\nอารักษ์\nอารัญ\nอารัณย์\nอารัญญิก\nอารัณยกะ\nอารัติ\nอารัมภ์\nอารัมภกถา\nอารัมภบท\nอารัมภะ\nอาราธน์\nอาราธนา\nอาราม\nอารามิก\nอารี\nอารุม\nอาลปนะ\nอาละวาด\nอาลักษณ์\nอาลัย\nอาลัว\nอาลี\nอาโลก\nอาว\nอ่าว\nอ้าว\nอาวรณ์\nอาวัชนาการ\nอาวัล\nอาวาส\nอาวาสิก\nอาวาหมงคล\nอาวาหะ\nอาวุต\nอาวุธ\nอาวุโส\nอาเวค\nอาศรม\nอาศรมบท\nอาศเลษา\nอาศัย\nอาศิรพจน์\nอาศิรพาท\nอาศิรวาท\nอาศุ\nอาเศียรพจน์\nอาเศียรพาท\nอาเศียรวาท\nอาษาฒ\nอาสน\nอาสน์\nอาสนะ\nอาสนศาลา\nอาสัญ\nอาสัตย์\nอาสา\nอาสาฬห์\nอาสาฬหบูชา\nอาสาฬหะ\nอาสิญจ์\nอาสิน\nอาหม\nอาหรับ\nอาหาร\nอาฬหก\nอำ\nอ่ำ\nอ้ำ\nอำแดง\nอำนนต์\nอำนรรฆ\nอำนวย\nอำนาจ\nอำนาถ\nอำนิฐ\nอำนิษฐ์\nอำปลัง\nอำพน\nอำพล\nอำพะนำ\nอำพัน\nอำไพ\nอำเภอ\nอำมร\nอำมฤคโชค\nอำมฤต\nอำมหิต\nอำมาตย์\nอำมาตยาธิปไตย\nอำยวน\nอำรุง\nอำลา\nอำอวม\nอ้ำอึ้ง\nอิก\nอิง\nอิงค์\nอิงอร\nอิจฉา\nอิฉัน\nอิชยา\nอิฏฐารมณ์\nอิฐ\nอิฐผล\nอิด\nอิตถี\nอิตเทรียม\nอิตเทอร์เบียม\nอิติวุตตกะ\nอิทธิ\nอิน\nอินซูลิน\nอินเดีย\nอินเดียนแดง\nอินเดียม\nอินท์\nอินทขีล\nอินทนิล\nอินทผลัม\nอินทร์\nอินทรธนู\nอินทรวงศ์\nอินทรวิเชียร\nอินทรศักดิ์\nอินทราณี\nอินทราภิเษก\nอินทรายุธ\nอินทรี\nอินทรีย์\nอินทรียสังวร\nอินทีวร\nอินทุ\nอินฟราเรด\nอินัง\nอิ่ม\nอิมัลชัน\nอิริเดียม\nอิริยา\nอิริยาบถ\nอิรุพเพท\nอิเล็กตรอน\nอิเล็กทรอนิกส์\nอิเล็กโทน\nอิศร\nอิศวร\nอิษฏ์\nอิษฏี\nอิส\nอิสตรี\nอิสัตรี\nอิสรภาพ\nอิสระ\nอิสริยยศ\nอิสริยะ\nอิสริยาภรณ์\nอิสลาม\nอิสสา\nอิสิ\nอิสี\nอิหม่าม\nอิหลักอิเหลื่อ\nอี\nอี่\nอี้\nอี๊\nอี๋\nอี๋อ๋อ\nอีก\nอีก้อ\nอีก๋อย\nอีโก้ง\nอีจู้\nอี๊ด\nอีเต้อ\nอีโต้\nอีทุบ\nอีเทอร์\nอีนุงตุงนัง\nอีนูน\nอีโน\nอีแปะ\nอีโปง\nอีเพา\nอีมู\nอีรม\nอีลุ้ม\nอีลุ่ยฉุยแฉก\nอีเลิ้ง\nอีศ\nอีศวร\nอีส\nอีสาน\nอีสุกอีใส\nอีหรอบ\nอีหลักอีเหลื่อ\nอีหลี\nอีหลุกขลุกขลัก\nอีหลุกขลุกขลุ่ย\nอีเห็น\nอีเหน็บ\nอีเหนียว\nอีเหละเขละขละ\nอีเหละเขะขะ\nอีโหน่อีเหน่\nอีโหลกโขลกเขลก\nอีแอ่น\nอึ\nอึก\nอึ้ก\nอึ๊ก\nอึกทึก\nอึกอัก\nอึง\nอึ่ง\nอึ้ง\nอึด\nอึดตะปือ\nอึ้ดทึ่ด\nอึน\nอืด\nอื่น\nอื้น\nอือ\nอื้อ\nอื้อฮือ\nอุ\nอุก\nอุกกา\nอุกกาบาต\nอุกฤษฏ์\nอุกลาบาต\nอุค\nอุคระ\nอุคหนิมิต\nอุโฆษ\nอุ้ง\nอุจ\nอุจจาระ\nอุจฉุ\nอุจเฉท\nอุจเฉททิฐิ\nอุจาด\nอุชุ\nอุฏฐาการ\nอุณหภูมิ\nอุณหะ\nอุณหาหาร\nอุณหิส\nอุณา\nอุณาโลม\nอุด\nอุดเตา\nอุดม\nอุดมการณ์\nอุดมคติ\nอุดมศึกษา\nอุดร\nอุดหนุน\nอุตดม\nอุตตมะ\nอุตมภาพ\nอุตมางค์\nอุตดร\nอุตรกุรุทวีป\nอุตตรายัน\nอุตรนิกาย\nอุตรผลคุนี\nอุตตรผลคุนี\nอุตรภัทรบท\nอุตตรภัทรบท\nอุตตรภัททะ\nอุตราภิมุข\nอุตราวรรต\nอุตราวัฏ\nอุตราษาฒ\nอุตตราสาฬหะ\nอุตราสงค์\nอุตตานภาพ\nอุตพิด\nอุตรา\nอุตริ\nอุตริมนุสธรรม\nอุตลุด\nอุตส่าห์\nอุตสาหกรรม\nอุตสาหะ\nอุตุ\nอุตุนิยม\nอุตุนิยมวิทยา\nอุทก\nอุทกธาร\nอุทกธารา\nอุทกภัย\nอุทกวิทยา\nอุทกศาสตร์\nอุทธรณ์\nอุทธัจ\nอุทยาน\nอุทร\nอุทริยะ\nอุทลุม\nอุทัช\nอุทัย\nอุทาน\nอุทาร\nอุทาหรณ์\nอุทิศ\nอุทุมพร\nอุเทศ\nอุเทสิกเจดีย์\nอุธัจ\nอุ่น\nอุบ\nอุบล\nอุบะ\nอุบ๊ะ\nอุบัติ\nอุบาท\nอุบาทว์\nอุบาย\nอุบาสก\nอุบาสิกา\nอุเบกขา\nอุโบสถ\nอุปกรณ์\nอุปกรม\nอุปการ\nอุปการะ\nอุปการี\nอุปกิเลส\nอุปจาร\nอุปถัมภ์\nอุปถัมภก\nอุปทม\nอุปทูต\nอุปเทศ\nอุปเท่ห์\nอุปธิ\nอุปนัย\nอุปนิกขิต\nอุปนิษัท\nอุปนิสัย\nอุปบัติ\nอุปปาติกะ\nอุปพัทธ์\nอุปพันธ์\nอุปโภค\nอุปมา\nอุปมาน\nอุปไมย\nอุปยุวราช\nอุปรากร\nอุปราคา\nอุปราช\nอุปริ\nอุปริมปริยาย\nอุปโลกน์\nอุปเวท\nอุปสมบท\nอุปสมบัน\nอุปสัมบัน\nอุปสรรค\nอุปสัมปทา\nอุปฮาด\nอุปัชฌาย์\nอุปัชฌายวัตร\nอุปัชฌายะ\nอุปัฏฐาก\nอุปัฏฐานะ\nอุปัทวะ\nอุปัทวันตราย\nอุปาทาน\nอุปาหนา\nอุภัย\nอุ้ม\nอุมงค์\nอุโมงค์\nอุย\nอุ่ย\nอุ้ย\nอุ๊ย\nอุยยาน\nอุยยาม\nอุรณะ\nอุรพี\nอุระ\nอุรังอุตัง\nอุรัจฉัท\nอุรัจฉทะ\nอุรา\nอุรุ\nอุไร\nอุลกมณี\nอุลโลจ\nอุลามก\nอุลิด\nอุโลก\nอุแว้\nอุษณกร\nอุษณกาล\nอุษณรัศมี\nอุษณรุจี\nอุษณาการ\nอุษณีษ์\nอุษมะ\nอุษมัน\nอุษา\nอุษาโยค\nอุสภ\nอุสส่าห์\nอุสสาหะ\nอุสา\nอุสุ\nอุสุภ\nอุสุภราช\nอุสุม\nอุหรับ\nอุหลบ\nอุเหม่\nอุฬาร\nอู\nอู่\nอู้\nอูฐ\nอูด\nอูม\nอูย\nอูรุ\nอู๋อี๋\nเอ\nเอ้\nเอ๊\nเอก\nเอกเขนก\nเอกซเรย์\nเอกรรถประโยค\nเอกัคตา\nเอกังสพยากรณ์\nเอกังสวาที\nเอกา\nเอ้กา\nเอกาธิปไตย\nเอเคอร์\nเอง\nเอ็ง\nเอ๋ง\nเอ็ด\nเอ็ดตะโร\nเอดส์\nเอตทัคคะ\nเอ้เต\nเอทิล\nเอน\nเอ็น\nเอนไซม์\nเอ็นดู\nเอ็นอ่อน\nเอม\nเอ็มบริโอ\nเอย\nเอ่ย\nเอ๊ย\nเอ๋ย\nเอร็ดอร่อย\nเอราวัณ\nเอว\nเอ๊ว\nเอวัง\nเอฬกะ\nเอฬา\nเออ\nเอ่อ\nเออร์เบียม\nเอ้อระเหย\nเอ้อเร้อ\nเอ้อเฮอ\nเอ๊ะ\nเอะใจ\nเอะอะ\nเอะอะมะเทิ่ง\nเอา\nเอาทาร\nเอาทารย์\nเอารส\nเอาฬาร\nเอาะลาย\nเอิก\nเอิกเกริก\nเอิ้น\nเอิบ\nเอียง\nเอี้ยง\nเอียด\nเอี๊ยด\nเอียน\nเอี่ยน\nเอี่ยม\nเอี๊ยม\nเอี้ยมจุ๊น\nเอี้ยมเฟี้ยม\nเอี่ยว\nเอี้ยว\nเอื้อ\nเอื๊อก\nเอื้อง\nเอือด\nเอือน\nเอื้อน\nเอือม\nเอื้อม\nเอื่อย\nเอื้อย\nแอ\nแอ้\nแอ๋\nแอก\nแอกทิเนียม\nแอ่ง\nแอ้งแม้ง\nแอด\nแอ้ด\nแอ๊ด\nแอ่น\nแอนติเจน\nแอนติบอดี\nแอนติอิเล็กตรอน\nแอโนด\nแอบ\nแอม\nแอ้ม\nแอมแปร์\nแอมมิเตอร์\nแอมโมเนีย\nแอร่ม\nแอลกอฮอล์\nแอลฟา\nแอว\nแอ่ว\nแอ้วแซ่ว\nแอสทาทีน\nแอสไพริน\nแอสฟัลต์\nแอหนัง\nแออัด\nโอ\nโอ่\nโอ้\nโอ๋\nโอก\nโอ้ก\nโอ้กอ้าก\nโอ๊ก\nโอกาส\nโอฆชล\nโอฆสงสาร\nโอฆะ\nโอ่ง\nโองการ\nโองโขดง\nโอชะ\nโอชา\nโอโซน\nโอฐ\nโอด\nโอ๊ต\nโอตตัปปะ\nโอทนะ\nโอน\nโอบ\nโอปปาติกะ\nโอภา\nโอภาส\nโอม\nโอย\nโอ๊ย\nโอรส\nโอละพ่อ\nโอลิมปิก\nโอวาท\nโอษฐ์\nโอษฐชะ\nโอษฐภัย\nโอสถ\nโอห์ม\nโอหัง\nโอฬาร\nโอฬาริก\nโอฬารึก\nโอ้เอ้\nโอเอซิส\nโอ้โฮ\nไอ\nไอ้\nไอโซโทป\nไอน์สไตเนียม\nไอยรา\nไอยเรศ\nไอราพต\nไอราวัณ\nไอราวัต\nไอศกรีม\nไอศวรรย์\nไอศุริยสมบัติ\nไอศูรย์\nไอออน\nไอโอดีน\nฮกเกี้ยน\nฮด\nฮวงซุ้ย\nฮวน\nฮ้วนหมู\nฮวบ\nฮ่อ\nฮ้อ\nฮอกกี้\nฮอด\nฮ่อม\nฮ่อยจ๊อ\nฮอร์โมน\nฮอลแลนด์\nฮอลันดา\nฮะ\nฮะเบส\nฮะเรีย\nฮัก\nฮังเล\nฮัจญ์\nฮัจญะฮ์\nฮัจญี\nฮั่น\nฮั้ว\nฮา\nฮ้า\nฮ่างหลวง\nฮาจญ์\nฮาม\nฮาเร็ม\nฮาห์เนียม\nฮิจเราะห์\nฮินดู\nฮิปโปโปเตมัส\nฮิสทีเรีย\nฮีเลียม\nฮึ\nฮึก\nฮึด\nฮึดฮัด\nฮึ่ม\nฮึย\nฮึ่ย\nฮืดฮาด\nฮือ\nฮื่อ\nฮื้อ\nฮื้อฉี่\nฮุด\nฮุบ\nฮุยเลฮุย\nฮู้\nฮูก\nฮูม\nเฮ\nเฮฮา\nเฮกตาร์\nเฮกโตกรัม\nเฮกโตเมตร\nเฮกโตลิตร\nเฮง\nเฮ็ด\nเฮโมโกลบิน\nเฮย\nเฮ่ย\nเฮ้ย\nเฮโรอีน\nเฮลิคอปเตอร์\nเฮโล\nเฮละโล\nเฮ้ว\nเฮอ\nเฮ่อ\nเฮ้อ\nเฮอริเคน\nเฮิรตซ์\nเฮี้ยน\nเฮี้ยบ\nเฮี้ยว\nเฮือก\nเฮือน\nแฮ\nแฮ่\nแฮก\nแฮ่กึ๊น\nแฮนด์บอล\nแฮฟเนียม\nแฮม\nแฮะ\nโฮ\nโฮก\nโฮ่ง\nโฮ้ง\nโฮเต็ล\nโฮลเมียม\nโฮะ\nไฮ้\nไฮโกรมิเตอร์\nไฮดรา\nไฮโดร\nไฮโดรคาร์บอน\nไฮโดรเจน\nไฮโดรมิเตอร์\nไฮไฟ\nไฮโล\nไฮฮี\n".split(/[\r\n]+/).filter(function(n){return 1<n.length}),this.addWords(words,!1);t&&this.finalizeDict()},dictSeek:function(n,t,e,r,i){for(var o=null;n<=t;){var s=Math.floor((n+t)/2),a=this.dict[s];if(a.length<=r)n=s+1;else{var c=a[r];c<e?n=s+1:e<c?t=s-1:(o=s,0==i?t=s-1:n=s+1)}}return o},isFinal:function(n){return this.dict[n.l].length==n.strOffset},createAcceptor:function(){return{l:0,r:this.dict.length-1,strOffset:0,isFinal:!1,dict:this,transit:function(n){return this.dict.transit(this,n)},isError:!1,tag:"DICT",w:1,type:"DICT"}},transit:function(n,t){var e=this.dictSeek(n.l,n.r,t,n.strOffset,0);if(null!==e){var r=this.dictSeek(e,n.r,t,n.strOffset,1);n.l=e,n.r=r,n.strOffset++,n.isFinal=this.isFinal(n)}else n.isError=!0;return n},sortuniq:function(n){return n.sort().filter(function(n,t,e){return!t||n!=e[t-1]})},flatten:function(n){return[].concat.apply([],n)}});e.exports=n}).call(this,"/dist/tmp")},{glob:16,path:22}],3:[function(n,t,e){var r={tag:"SPACE_RULE",createAcceptor:function(n){return n.SPACE_RULE?null:{strOffset:0,isFinal:!1,transit:function(n){return" "==n||"\t"==n||"\r"==n||"\n"==n||" "==n||" "==n?(this.isFinal=!0,this.strOffset++):this.isError=!0,this},isError:!1,tag:r.tag,w:1,type:"SPACE_RULE"}}},i=[{createAcceptor:function(n){return n.WORD_RULE?null:{strOffset:0,isFinal:!1,transit:function(n){var t=n.toLowerCase();return"a"<=t&&t<="z"?(this.isFinal=!0,this.strOffset++):this.isError=!0,this},isError:!1,tag:"WORD_RULE",type:"WORD_RULE",w:1}}},r,{tag:"SINSYM",createAcceptor:function(n){return{strOffset:0,isFinal:!1,transit:function(n){return 0==this.strOffset&&n.match(/^[\@\(\)\/\,\-\."`]$/)?(this.isFinal=!0,this.strOffset++):this.isError=!0,this},isError:!1,tag:"SINSYM",w:1,type:"SINSYM"}}},{createAcceptor:function(n){return n.NUMBER_RULE?null:{strOffset:0,isFinal:!1,transit:function(n){return"0"<=n&&n<="9"?(this.isFinal=!0,this.strOffset++):this.isError=!0,this},isError:!1,tag:"NUMBER_RULE",type:"NUMBER_RULE",w:1}}}];t.exports=i},{}],4:[function(n,t,e){var r=n("underscore"),i=(n("./wordcut_core"),{buildByAcceptors:function(o,n,s){return n.map(function(n){var t=s-n.strOffset+1,e=o[t],r={p:t,mw:e.mw+(void 0===n.mw?0:n.mw),w:n.w+e.w,unk:(n.unk?n.unk:0)+e.unk,type:n.type};if("PART"==n.type){for(var i=t+1;i<=s;i++)o[i].merge=t;r.merge=t}return r}).filter(function(n){return n})},fallback:function(n,t,e,r){var i=n[t];return e[r].match(/[\u0E48-\u0E4E]/)?(0!=t&&(t=n[t].p),{p:t,mw:0,w:1+i.w,unk:1+i.unk,type:"UNK"}):{p:t,mw:i.mw,w:1+i.w,unk:1+i.unk,type:"UNK"}},build:function(n,t,e,r,i){var o=this.buildByAcceptors(n,t,e);return 0<o.length?o:[this.fallback(n,r,i,e)]}});t.exports=function(){return r.clone(i)}},{"./wordcut_core":8,underscore:25}],5:[function(n,t,e){var r=n("underscore"),i={selectPath:function(n){return n.reduce(function(n,t){if(null==n)return t;if(t.unk<n.unk)return t;if(t.unk==n.unk){if(t.mw<n.mw)return t;if(t.mw==n.mw&&t.w<n.w)return t}return n},null)},createPath:function(){return[{p:null,w:0,unk:0,type:"INIT",mw:0}]}};t.exports=function(){return r.clone(i)}},{underscore:25}],6:[function(n,t,e){function i(n,t,e){if(n.length<=t)return!1;var r=n[t];return r==e||r.match(/[กข]/)&&e.match(/[ก-ฮ]/)||r.match(/[มบ]/)&&e.match(/[ก-ฮ]/)||r.match(/\u0E49/)&&e.match(/[\u0E48-\u0E4B]/)}var r={pat:"เหก็ม",createAcceptor:function(n){return{strOffset:0,isFinal:!1,transit:function(n){return i(r.pat,this.strOffset,n)?(this.isFinal=this.strOffset+1==r.pat.length,this.strOffset++):this.isError=!0,this},isError:!1,tag:"THAI_RULE",type:"THAI_RULE",w:1}}},o=[r,{createAcceptor:function(n){return{strOffset:0,patterns:["แก","เก","ก้","กก์","กา","กี","กิ","กืก"],isFinal:!1,transit:function(t){var e=this.strOffset;if(this.patterns=this.patterns.filter(function(n){return i(n,e,t)}),0<this.patterns.length){var r=1+e;this.isFinal=this.patterns.some(function(n){return n.length==r}),this.strOffset++}else this.isError=!0;return this},isError:!1,tag:"PART",type:"PART",unk:1,w:1}}}];t.exports=o},{}],7:[function(n,t,e){n("sys");var r=n("./dict"),i=n("./wordcut_core"),o=n("./path_info_builder"),s=n("./path_selector"),a=n("./acceptors"),c=n("./latin_rules"),u=n("./thai_rules"),l=n("underscore"),f=Object.create(i);f.defaultPathInfoBuilder=o,f.defaultPathSelector=s,f.defaultAcceptors=a,f.defaultLatinRules=c,f.defaultThaiRules=u,f.defaultDict=r,f.initNoDict=function(n){var t=this;t.pathInfoBuilder=new t.defaultPathInfoBuilder,t.pathSelector=new t.defaultPathSelector,t.acceptors=new t.defaultAcceptors,t.defaultLatinRules.forEach(function(n){t.acceptors.creators.push(n)}),t.defaultThaiRules.forEach(function(n){t.acceptors.creators.push(n)})},f.init=function(n,t,e){t=t||!1,this.initNoDict();var r=l.clone(this.defaultDict);r.init(n,t,e),this.acceptors.creators.push(r)},t.exports=f},{"./acceptors":1,"./dict":2,"./latin_rules":3,"./path_info_builder":4,"./path_selector":5,"./thai_rules":6,"./wordcut_core":8,sys:28,underscore:25}],8:[function(n,t,e){var r={buildPath:function(n){var t=this,e=t.pathSelector.createPath(),r=0;t.acceptors.reset();for(var i=0;i<n.length;i++){var o=n[i];t.acceptors.transit(o);var s=t.pathInfoBuilder.build(e,t.acceptors.getFinalAcceptors(),i,r,n),a=t.pathSelector.selectPath(s);e.push(a),"UNK"!==a.type&&(r=i)}return e},pathToRanges:function(n){for(var t=n.length-1,e=[];0<t;){var r=n[t],i=r.p;if(void 0!==r.merge&&0<e.length){var o=e[e.length-1];o.s=r.merge,i=o.s}else e.push({s:i,e:t});t=i}return e.reverse()},rangesToText:function(t,n,e){return n.map(function(n){return t.substring(n.s,n.e)}).join(e)},cut:function(n,t){var e=this.buildPath(n),r=this.pathToRanges(e);return this.rangesToText(n,r,void 0===t?"|":t)},cutIntoRanges:function(t,n){var e=this.buildPath(t),r=this.pathToRanges(e);return n||r.forEach(function(n){n.text=t.substring(n.s,n.e)}),r},cutIntoArray:function(t){var n=this.buildPath(t);return this.pathToRanges(n).map(function(n){return t.substring(n.s,n.e)})}};t.exports=r},{}],9:[function(n,t,e){var c=n("util/"),u=Array.prototype.slice,r=Object.prototype.hasOwnProperty,o=t.exports=i;function l(n,t){return c.isUndefined(t)?""+t:c.isNumber(t)&&!isFinite(t)?t.toString():c.isFunction(t)||c.isRegExp(t)?t.toString():t}function f(n,t){return c.isString(n)?n.length<t?n:n.slice(0,t):n}function h(n,t,e,r,i){throw new o.AssertionError({message:e,actual:n,expected:t,operator:r,stackStartFunction:i})}function i(n,t){n||h(n,!0,t,"==",o.ok)}function p(n,t){if(n===t)return!0;if(c.isBuffer(n)&&c.isBuffer(t)){if(n.length!=t.length)return!1;for(var e=0;e<n.length;e++)if(n[e]!==t[e])return!1;return!0}return c.isDate(n)&&c.isDate(t)?n.getTime()===t.getTime():c.isRegExp(n)&&c.isRegExp(t)?n.source===t.source&&n.global===t.global&&n.multiline===t.multiline&&n.lastIndex===t.lastIndex&&n.ignoreCase===t.ignoreCase:c.isObject(n)||c.isObject(t)?function(n,t){if(c.isNullOrUndefined(n)||c.isNullOrUndefined(t))return!1;if(n.prototype!==t.prototype)return!1;if(c.isPrimitive(n)||c.isPrimitive(t))return n===t;var e=d(n),r=d(t);if(e&&!r||!e&&r)return!1;if(e)return n=u.call(n),t=u.call(t),p(n,t);var i,o,s=v(n),a=v(t);if(s.length!=a.length)return!1;for(s.sort(),a.sort(),o=s.length-1;0<=o;o--)if(s[o]!=a[o])return!1;for(o=s.length-1;0<=o;o--)if(i=s[o],!p(n[i],t[i]))return!1;return!0}(n,t):n==t}function d(n){return"[object Arguments]"==Object.prototype.toString.call(n)}function s(n,t){return!(!n||!t)&&("[object RegExp]"==Object.prototype.toString.call(t)?t.test(n):n instanceof t||!0===t.call({},n))}function a(n,t,e,r){var i;c.isString(e)&&(r=e,e=null);try{t()}catch(n){i=n}if(r=(e&&e.name?" ("+e.name+").":".")+(r?" "+r:"."),n&&!i&&h(i,e,"Missing expected exception"+r),!n&&s(i,e)&&h(i,e,"Got unwanted exception"+r),n&&i&&e&&!s(i,e)||!n&&i)throw i}o.AssertionError=function(n){var t;this.name="AssertionError",this.actual=n.actual,this.expected=n.expected,this.operator=n.operator,n.message?(this.message=n.message,this.generatedMessage=!1):(this.message=(t=this,f(JSON.stringify(t.actual,l),128)+" "+t.operator+" "+f(JSON.stringify(t.expected,l),128)),this.generatedMessage=!0);var e=n.stackStartFunction||h;if(Error.captureStackTrace)Error.captureStackTrace(this,e);else{var r=new Error;if(r.stack){var i=r.stack,o=e.name,s=i.indexOf("\n"+o);if(0<=s){var a=i.indexOf("\n",s+1);i=i.substring(a+1)}this.stack=i}}},c.inherits(o.AssertionError,Error),o.fail=h,o.ok=i,o.equal=function(n,t,e){n!=t&&h(n,t,e,"==",o.equal)},o.notEqual=function(n,t,e){n==t&&h(n,t,e,"!=",o.notEqual)},o.deepEqual=function(n,t,e){p(n,t)||h(n,t,e,"deepEqual",o.deepEqual)},o.notDeepEqual=function(n,t,e){p(n,t)&&h(n,t,e,"notDeepEqual",o.notDeepEqual)},o.strictEqual=function(n,t,e){n!==t&&h(n,t,e,"===",o.strictEqual)},o.notStrictEqual=function(n,t,e){n===t&&h(n,t,e,"!==",o.notStrictEqual)},o.throws=function(n,t,e){a.apply(this,[!0].concat(u.call(arguments)))},o.doesNotThrow=function(n,t){a.apply(this,[!1].concat(u.call(arguments)))},o.ifError=function(n){if(n)throw n};var v=Object.keys||function(n){var t=[];for(var e in n)r.call(n,e)&&t.push(e);return t}},{"util/":28}],10:[function(n,t,e){"use strict";function r(n,t,e){n instanceof RegExp&&(n=i(n,e)),t instanceof RegExp&&(t=i(t,e));var r=o(n,t,e);return r&&{start:r[0],end:r[1],pre:e.slice(0,r[0]),body:e.slice(r[0]+n.length,r[1]),post:e.slice(r[1]+t.length)}}function i(n,t){var e=t.match(n);return e?e[0]:null}function o(n,t,e){var r,i,o,s,a,c=e.indexOf(n),u=e.indexOf(t,c+1),l=c;if(0<=c&&0<u){for(r=[],o=e.length;0<=l&&!a;)l==c?(r.push(l),c=e.indexOf(n,l+1)):1==r.length?a=[r.pop(),u]:((i=r.pop())<o&&(o=i,s=u),u=e.indexOf(t,l+1)),l=c<u&&0<=c?c:u;r.length&&(a=[o,s])}return a}(t.exports=r).range=o},{}],11:[function(n,t,e){var k=n("concat-map"),S=n("balanced-match");t.exports=function(n){if(!n)return[];"{}"===n.substr(0,2)&&(n="\\{\\}"+n.substr(2));return function t(n,e){var r=[];var i=S("{","}",n);if(!i||/\$$/.test(i.pre))return[n];var o=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(i.body);var s=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(i.body);var a=o||s;var c=0<=i.body.indexOf(",");if(!a&&!c)return i.post.match(/,.*\}/)?(n=i.pre+"{"+i.body+R+i.post,t(n)):[n];var u;if(a)u=i.body.split(/\.\./);else if(1===(u=T(i.body)).length&&1===(u=t(u[0],!1).map(I)).length){var l=i.post.length?t(i.post,!1):[""];return l.map(function(n){return i.pre+u[0]+n})}var f=i.pre;var l=i.post.length?t(i.post,!1):[""];var h;if(a){var p=L(u[0]),d=L(u[1]),v=Math.max(u[0].length,u[1].length),g=3==u.length?Math.abs(L(u[2])):1,m=D,y=d<p;y&&(g*=-1,m=F);var b=u.some(N);h=[];for(var _=p;m(_,d);_+=g){var w;if(s)"\\"===(w=String.fromCharCode(_))&&(w="");else if(w=String(_),b){var E=v-w.length;if(0<E){var O=new Array(E+1).join("0");w=_<0?"-"+O+w.slice(1):O+w}}h.push(w)}}else h=k(u,function(n){return t(n,!1)});for(var A=0;A<h.length;A++)for(var x=0;x<l.length;x++){var j=f+h[A]+l[x];(!e||a||j)&&r.push(j)}return r}((t=n,t.split("\\\\").join(r).split("\\{").join(i).split("\\}").join(R).split("\\,").join(o).split("\\.").join(s)),!0).map(a);var t};var r="\0SLASH"+Math.random()+"\0",i="\0OPEN"+Math.random()+"\0",R="\0CLOSE"+Math.random()+"\0",o="\0COMMA"+Math.random()+"\0",s="\0PERIOD"+Math.random()+"\0";function L(n){return parseInt(n,10)==n?parseInt(n,10):n.charCodeAt(0)}function a(n){return n.split(r).join("\\").split(i).join("{").split(R).join("}").split(o).join(",").split(s).join(".")}function T(n){if(!n)return[""];var t=[],e=S("{","}",n);if(!e)return n.split(",");var r=e.pre,i=e.body,o=e.post,s=r.split(",");s[s.length-1]+="{"+i+"}";var a=T(o);return o.length&&(s[s.length-1]+=a.shift(),s.push.apply(s,a)),t.push.apply(t,s),t}function I(n){return"{"+n+"}"}function N(n){return/^-?0\d/.test(n)}function D(n,t){return n<=t}function F(n,t){return t<=n}},{"balanced-match":10,"concat-map":13}],12:[function(n,t,e){},{}],13:[function(n,t,e){t.exports=function(n,t){for(var e=[],r=0;r<n.length;r++){var i=t(n[r],r);o(i)?e.push.apply(e,i):e.push(i)}return e};var o=Array.isArray||function(n){return"[object Array]"===Object.prototype.toString.call(n)}},{}],14:[function(n,t,e){function r(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function a(n){return"function"==typeof n}function c(n){return"object"==typeof n&&null!==n}function u(n){return void 0===n}((t.exports=r).EventEmitter=r).prototype._events=void 0,r.prototype._maxListeners=void 0,r.defaultMaxListeners=10,r.prototype.setMaxListeners=function(n){if("number"!=typeof n||n<0||isNaN(n))throw TypeError("n must be a positive number");return this._maxListeners=n,this},r.prototype.emit=function(n){var t,e,r,i,o,s;if(this._events||(this._events={}),"error"===n&&(!this._events.error||c(this._events.error)&&!this._events.error.length)){if((t=arguments[1])instanceof Error)throw t;throw TypeError('Uncaught, unspecified "error" event.')}if(u(e=this._events[n]))return!1;if(a(e))switch(arguments.length){case 1:e.call(this);break;case 2:e.call(this,arguments[1]);break;case 3:e.call(this,arguments[1],arguments[2]);break;default:for(r=arguments.length,i=new Array(r-1),o=1;o<r;o++)i[o-1]=arguments[o];e.apply(this,i)}else if(c(e)){for(r=arguments.length,i=new Array(r-1),o=1;o<r;o++)i[o-1]=arguments[o];for(r=(s=e.slice()).length,o=0;o<r;o++)s[o].apply(this,i)}return!0},r.prototype.on=r.prototype.addListener=function(n,t){var e;if(!a(t))throw TypeError("listener must be a function");(this._events||(this._events={}),this._events.newListener&&this.emit("newListener",n,a(t.listener)?t.listener:t),this._events[n]?c(this._events[n])?this._events[n].push(t):this._events[n]=[this._events[n],t]:this._events[n]=t,c(this._events[n])&&!this._events[n].warned)&&((e=u(this._maxListeners)?r.defaultMaxListeners:this._maxListeners)&&0<e&&this._events[n].length>e&&(this._events[n].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[n].length),"function"==typeof console.trace&&console.trace()));return this},r.prototype.once=function(n,t){if(!a(t))throw TypeError("listener must be a function");var e=!1;function r(){this.removeListener(n,r),e||(e=!0,t.apply(this,arguments))}return r.listener=t,this.on(n,r),this},r.prototype.removeListener=function(n,t){var e,r,i,o;if(!a(t))throw TypeError("listener must be a function");if(!this._events||!this._events[n])return this;if(i=(e=this._events[n]).length,r=-1,e===t||a(e.listener)&&e.listener===t)delete this._events[n],this._events.removeListener&&this.emit("removeListener",n,t);else if(c(e)){for(o=i;0<o--;)if(e[o]===t||e[o].listener&&e[o].listener===t){r=o;break}if(r<0)return this;1===e.length?(e.length=0,delete this._events[n]):e.splice(r,1),this._events.removeListener&&this.emit("removeListener",n,t)}return this},r.prototype.removeAllListeners=function(n){var t,e;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[n]&&delete this._events[n],this;if(0===arguments.length){for(t in this._events)"removeListener"!==t&&this.removeAllListeners(t);return this.removeAllListeners("removeListener"),this._events={},this}if(a(e=this._events[n]))this.removeListener(n,e);else for(;e.length;)this.removeListener(n,e[e.length-1]);return delete this._events[n],this},r.prototype.listeners=function(n){return this._events&&this._events[n]?a(this._events[n])?[this._events[n]]:this._events[n].slice():[]},r.listenerCount=function(n,t){return n._events&&n._events[t]?a(n._events[t])?1:n._events[t].length:0}},{}],15:[function(t,n,p){(function(i){function o(n,t){return Object.prototype.hasOwnProperty.call(n,t)}p.alphasort=u,p.alphasorti=c,p.setopts=function(n,t,e){e||(e={});if(e.matchBase&&-1===t.indexOf("/")){if(e.noglobstar)throw new Error("base matching requires globstar");t="**/"+t}n.silent=!!e.silent,n.pattern=t,n.strict=!1!==e.strict,n.realpath=!!e.realpath,n.realpathCache=e.realpathCache||Object.create(null),n.follow=!!e.follow,n.dot=!!e.dot,n.mark=!!e.mark,n.nodir=!!e.nodir,n.nodir&&(n.mark=!0);n.sync=!!e.sync,n.nounique=!!e.nounique,n.nonull=!!e.nonull,n.nosort=!!e.nosort,n.nocase=!!e.nocase,n.stat=!!e.stat,n.noprocess=!!e.noprocess,n.maxLength=e.maxLength||1/0,n.cache=e.cache||Object.create(null),n.statCache=e.statCache||Object.create(null),n.symlinks=e.symlinks||Object.create(null),function(n,t){n.ignore=t.ignore||[],Array.isArray(n.ignore)||(n.ignore=[n.ignore]);n.ignore.length&&(n.ignore=n.ignore.map(l))}(n,e),n.changedCwd=!1;var r=i.cwd();o(e,"cwd")?(n.cwd=e.cwd,n.changedCwd=s.resolve(e.cwd)!==r):n.cwd=r;n.root=e.root||s.resolve(n.cwd,"/"),n.root=s.resolve(n.root),"win32"===i.platform&&(n.root=n.root.replace(/\\/g,"/"));n.nomount=!!e.nomount,e.nonegate=!1!==e.nonegate,e.nocomment=!1!==e.nocomment,function(n){if(!(n.nonegate&&n.nocomment||!0===i.noDeprecation||p.deprecationWarned)){var t="glob WARNING: comments and negation will be disabled in v6";if(i.throwDeprecation)throw new Error(t);i.traceDeprecation?console.trace(t):console.error(t),p.deprecationWarned=!0}}(e),n.minimatch=new a(t,e),n.options=n.minimatch.options},p.ownProp=o,p.makeAbs=f,p.finish=function(t){for(var n=t.nounique,e=n?[]:Object.create(null),r=0,i=t.matches.length;r<i;r++){var o=t.matches[r];if(o&&0!==Object.keys(o).length){var s=Object.keys(o);n?e.push.apply(e,s):s.forEach(function(n){e[n]=!0})}else if(t.nonull){var a=t.minimatch.globSet[r];n?e.push(a):e[a]=!0}}n||(e=Object.keys(e));t.nosort||(e=e.sort(t.nocase?c:u));if(t.mark){for(var r=0;r<e.length;r++)e[r]=t._mark(e[r]);t.nodir&&(e=e.filter(function(n){return!/\/$/.test(n)}))}t.ignore.length&&(e=e.filter(function(n){return!h(t,n)}));t.found=e},p.mark=function(n,t){var e=f(n,t),r=n.cache[e],i=t;if(r){var o="DIR"===r||Array.isArray(r),s="/"===t.slice(-1);if(o&&!s?i+="/":!o&&s&&(i=i.slice(0,-1)),i!==t){var a=f(n,i);n.statCache[a]=n.statCache[e],n.cache[a]=n.cache[e]}}return i},p.isIgnored=h,p.childrenIgnored=function(n,t){return!!n.ignore.length&&n.ignore.some(function(n){return!(!n.gmatcher||!n.gmatcher.match(t))})};var s=t("path"),n=t("minimatch"),e=t("path-is-absolute"),a=n.Minimatch;function c(n,t){return n.toLowerCase().localeCompare(t.toLowerCase())}function u(n,t){return n.localeCompare(t)}function l(n){var t=null;if("/**"===n.slice(-3)){var e=n.replace(/(\/\*\*)+$/,"");t=new a(e)}return{matcher:new a(n),gmatcher:t}}function f(n,t){return"/"===t.charAt(0)?s.join(n.root,t):e(t)||""===t?t:n.changedCwd?s.resolve(n.cwd,t):s.resolve(t)}function h(n,t){return!!n.ignore.length&&n.ignore.some(function(n){return n.matcher.match(t)||!(!n.gmatcher||!n.gmatcher.match(t))})}p.deprecationWarned}).call(this,t("_process"))},{_process:24,minimatch:20,path:22,"path-is-absolute":23}],16:[function(_,w,n){(function(s){w.exports=i;var u=_("fs"),l=_("minimatch"),n=(l.Minimatch,_("inherits")),t=_("events").EventEmitter,g=_("path"),f=_("assert"),h=_("path-is-absolute"),r=_("./sync.js"),e=_("./common.js"),a=(e.alphasort,e.alphasorti,e.setopts),p=e.ownProp,d=_("inflight"),o=_("util"),v=e.childrenIgnored,c=e.isIgnored,m=_("once");function i(n,t,e){if("function"==typeof t&&(e=t,t={}),t||(t={}),t.sync){if(e)throw new TypeError("callback provided to sync glob");return r(n,t)}return new b(n,t,e)}i.sync=r;var y=i.GlobSync=r.GlobSync;function b(n,t,e){if("function"==typeof t&&(e=t,t=null),t&&t.sync){if(e)throw new TypeError("callback provided to sync glob");return new y(n,t)}if(!(this instanceof b))return new b(n,t,e);a(this,n,t),this._didRealPath=!1;var r=this.minimatch.set.length;this.matches=new Array(r),"function"==typeof e&&(e=m(e),this.on("error",e),this.on("end",function(n){e(null,n)}));var i=this;r=this.minimatch.set.length;if(this._processing=0,this.matches=new Array(r),this._emitQueue=[],this._processQueue=[],this.paused=!1,this.noprocess)return this;if(0===r)return s();for(var o=0;o<r;o++)this._process(this.minimatch.set[o],o,!1,s);function s(){--i._processing,i._processing<=0&&i._finish()}}(i.glob=i).hasMagic=function(n,t){var e=o._extend({},t);e.noprocess=!0;var r=new b(n,e).minimatch.set;if(1<r.length)return!0;for(var i=0;i<r[0].length;i++)if("string"!=typeof r[0][i])return!0;return!1},n(i.Glob=b,t),b.prototype._finish=function(){if(f(this instanceof b),!this.aborted){if(this.realpath&&!this._didRealpath)return this._realpath();e.finish(this),this.emit("end",this.found)}},b.prototype._realpath=function(){if(!this._didRealpath){this._didRealpath=!0;var n=this.matches.length;if(0===n)return this._finish();for(var t=this,e=0;e<this.matches.length;e++)this._realpathSet(e,r)}function r(){0==--n&&t._finish()}},b.prototype._realpathSet=function(r,i){var n=this.matches[r];if(!n)return i();var t=Object.keys(n),o=this,s=t.length;if(0===s)return i();var a=this.matches[r]=Object.create(null);t.forEach(function(e,n){e=o._makeAbs(e),u.realpath(e,o.realpathCache,function(n,t){n?"stat"===n.syscall?a[e]=!0:o.emit("error",n):a[t]=!0,0==--s&&(o.matches[r]=a,i())})})},b.prototype._mark=function(n){return e.mark(this,n)},b.prototype._makeAbs=function(n){return e.makeAbs(this,n)},b.prototype.abort=function(){this.aborted=!0,this.emit("abort")},b.prototype.pause=function(){this.paused||(this.paused=!0,this.emit("pause"))},b.prototype.resume=function(){if(this.paused){if(this.emit("resume"),this.paused=!1,this._emitQueue.length)for(var n=this._emitQueue.slice(0),t=this._emitQueue.length=0;t<n.length;t++){var e=n[t];this._emitMatch(e[0],e[1])}if(this._processQueue.length){var r=this._processQueue.slice(0);for(t=this._processQueue.length=0;t<r.length;t++){var i=r[t];this._processing--,this._process(i[0],i[1],i[2],i[3])}}}},b.prototype._process=function(n,t,e,r){if(f(this instanceof b),f("function"==typeof r),!this.aborted)if(this._processing++,this.paused)this._processQueue.push([n,t,e,r]);else{for(var i,o=0;"string"==typeof n[o];)o++;switch(o){case n.length:return void this._processSimple(n.join("/"),t,r);case 0:i=null;break;default:i=n.slice(0,o).join("/")}var s,a=n.slice(o);s=null===i?".":((h(i)||h(n.join("/")))&&(i&&h(i)||(i="/"+i)),i);var c=this._makeAbs(s);if(v(this,s))return r();a[0]===l.GLOBSTAR?this._processGlobStar(i,s,c,a,t,e,r):this._processReaddir(i,s,c,a,t,e,r)}},b.prototype._processReaddir=function(e,r,i,o,s,a,c){var u=this;this._readdir(i,a,function(n,t){return u._processReaddir2(e,r,i,o,s,a,t,c)})},b.prototype._processReaddir2=function(n,t,e,r,i,o,s,a){if(!s)return a();for(var c=r[0],u=!!this.minimatch.negate,l=c._glob,f=this.dot||"."===l.charAt(0),h=[],p=0;p<s.length;p++){if("."!==(v=s[p]).charAt(0)||f)(u&&!n?!v.match(c):v.match(c))&&h.push(v)}var d=h.length;if(0===d)return a();if(1===r.length&&!this.mark&&!this.stat){this.matches[i]||(this.matches[i]=Object.create(null));for(p=0;p<d;p++){var v=h[p];n&&(v="/"!==n?n+"/"+v:n+v),"/"!==v.charAt(0)||this.nomount||(v=g.join(this.root,v)),this._emitMatch(i,v)}return a()}r.shift();for(p=0;p<d;p++){v=h[p];n&&(v="/"!==n?n+"/"+v:n+v),this._process([v].concat(r),i,o,a)}a()},b.prototype._emitMatch=function(n,t){if(!this.aborted&&!this.matches[n][t]&&!c(this,t))if(this.paused)this._emitQueue.push([n,t]);else{var e=this._makeAbs(t);if(this.nodir){var r=this.cache[e];if("DIR"===r||Array.isArray(r))return}this.mark&&(t=this._mark(t)),this.matches[n][t]=!0;var i=this.statCache[e];i&&this.emit("stat",t,i),this.emit("match",t)}},b.prototype._readdirInGlobStar=function(r,i){if(!this.aborted){if(this.follow)return this._readdir(r,!1,i);var o=this,n=d("lstat\0"+r,function(n,t){if(n)return i();var e=t.isSymbolicLink();(o.symlinks[r]=e)||t.isDirectory()?o._readdir(r,!1,i):(o.cache[r]="FILE",i())});n&&u.lstat(r,n)}},b.prototype._readdir=function(n,t,e){if(!this.aborted&&(e=d("readdir\0"+n+"\0"+t,e))){if(t&&!p(this.symlinks,n))return this._readdirInGlobStar(n,e);if(p(this.cache,n)){var r=this.cache[n];if(!r||"FILE"===r)return e();if(Array.isArray(r))return e(null,r)}var i,o,s;u.readdir(n,(i=this,o=n,s=e,function(n,t){n?i._readdirError(o,n,s):i._readdirEntries(o,t,s)}))}},b.prototype._readdirEntries=function(n,t,e){if(!this.aborted){if(!this.mark&&!this.stat)for(var r=0;r<t.length;r++){var i=t[r];i="/"===n?n+i:n+"/"+i,this.cache[i]=!0}return e(null,this.cache[n]=t)}},b.prototype._readdirError=function(n,t,e){if(!this.aborted){switch(t.code){case"ENOTSUP":case"ENOTDIR":this.cache[this._makeAbs(n)]="FILE";break;case"ENOENT":case"ELOOP":case"ENAMETOOLONG":case"UNKNOWN":this.cache[this._makeAbs(n)]=!1;break;default:this.cache[this._makeAbs(n)]=!1,this.strict&&(this.emit("error",t),this.abort()),this.silent||console.error("glob error",t)}return e()}},b.prototype._processGlobStar=function(e,r,i,o,s,a,c){var u=this;this._readdir(i,a,function(n,t){u._processGlobStar2(e,r,i,o,s,a,t,c)})},b.prototype._processGlobStar2=function(n,t,e,r,i,o,s,a){if(!s)return a();var c=r.slice(1),u=n?[n]:[],l=u.concat(c);this._process(l,i,!1,a);var f=this.symlinks[e],h=s.length;if(f&&o)return a();for(var p=0;p<h;p++){if("."!==s[p].charAt(0)||this.dot){var d=u.concat(s[p],c);this._process(d,i,!0,a);var v=u.concat(s[p],r);this._process(v,i,!0,a)}}a()},b.prototype._processSimple=function(e,r,i){var o=this;this._stat(e,function(n,t){o._processSimple2(e,r,n,t,i)})},b.prototype._processSimple2=function(n,t,e,r,i){if(this.matches[t]||(this.matches[t]=Object.create(null)),!r)return i();if(n&&h(n)&&!this.nomount){var o=/[\/\\]$/.test(n);"/"===n.charAt(0)?n=g.join(this.root,n):(n=g.resolve(this.root,n),o&&(n+="/"))}"win32"===s.platform&&(n=n.replace(/\\/g,"/")),this._emitMatch(t,n),i()},b.prototype._stat=function(r,i){var o=this._makeAbs(r),n="/"===r.slice(-1);if(r.length>this.maxLength)return i();if(!this.stat&&p(this.cache,o)){var t=this.cache[o];if(Array.isArray(t)&&(t="DIR"),!n||"DIR"===t)return i(null,t);if(n&&"FILE"===t)return i()}var e=this.statCache[o];if(void 0!==e){if(!1===e)return i(null,e);var s=e.isDirectory()?"DIR":"FILE";return n&&"FILE"===s?i():i(null,s,e)}var a=this,c=d("stat\0"+o,function(n,e){{if(e&&e.isSymbolicLink())return u.stat(o,function(n,t){n?a._stat2(r,o,null,e,i):a._stat2(r,o,n,t,i)});a._stat2(r,o,n,e,i)}});c&&u.lstat(o,c)},b.prototype._stat2=function(n,t,e,r,i){if(e)return this.statCache[t]=!1,i();var o="/"===n.slice(-1);if(this.statCache[t]=r,"/"===t.slice(-1)&&!r.isDirectory())return i(null,!1,r);var s=r.isDirectory()?"DIR":"FILE";return this.cache[t]=this.cache[t]||s,o&&"DIR"!==s?i():i(null,s,r)}}).call(this,_("_process"))},{"./common.js":15,"./sync.js":17,_process:24,assert:9,events:14,fs:12,inflight:18,inherits:19,minimatch:20,once:21,path:22,"path-is-absolute":23,util:28}],17:[function(e,r,n){(function(i){(r.exports=n).GlobSync=h;var s=e("fs"),c=e("minimatch"),g=(c.Minimatch,e("./glob.js").Glob,e("util"),e("path")),u=e("assert"),l=e("path-is-absolute"),t=e("./common.js"),o=(t.alphasort,t.alphasorti,t.setopts),a=t.ownProp,f=t.childrenIgnored;function n(n,t){if("function"==typeof t||3===arguments.length)throw new TypeError("callback provided to sync glob\nSee: https://github.com/isaacs/node-glob/issues/167");return new h(n,t).found}function h(n,t){if(!n)throw new Error("must provide pattern");if("function"==typeof t||3===arguments.length)throw new TypeError("callback provided to sync glob\nSee: https://github.com/isaacs/node-glob/issues/167");if(!(this instanceof h))return new h(n,t);if(o(this,n,t),this.noprocess)return this;var e=this.minimatch.set.length;this.matches=new Array(e);for(var r=0;r<e;r++)this._process(this.minimatch.set[r],r,!1);this._finish()}h.prototype._finish=function(){if(u(this instanceof h),this.realpath){var i=this;this.matches.forEach(function(n,t){var e=i.matches[t]=Object.create(null);for(var r in n)try{r=i._makeAbs(r),e[s.realpathSync(r,i.realpathCache)]=!0}catch(n){if("stat"!==n.syscall)throw n;e[i._makeAbs(r)]=!0}})}t.finish(this)},h.prototype._process=function(n,t,e){u(this instanceof h);for(var r,i=0;"string"==typeof n[i];)i++;switch(i){case n.length:return void this._processSimple(n.join("/"),t);case 0:r=null;break;default:r=n.slice(0,i).join("/")}var o,s=n.slice(i);o=null===r?".":((l(r)||l(n.join("/")))&&(r&&l(r)||(r="/"+r)),r);var a=this._makeAbs(o);f(this,o)||(s[0]===c.GLOBSTAR?this._processGlobStar(r,o,a,s,t,e):this._processReaddir(r,o,a,s,t,e))},h.prototype._processReaddir=function(n,t,e,r,i,o){var s=this._readdir(e,o);if(s){for(var a=r[0],c=!!this.minimatch.negate,u=a._glob,l=this.dot||"."===u.charAt(0),f=[],h=0;h<s.length;h++){if("."!==(v=s[h]).charAt(0)||l)(c&&!n?!v.match(a):v.match(a))&&f.push(v)}var p=f.length;if(0!==p)if(1!==r.length||this.mark||this.stat){r.shift();for(h=0;h<p;h++){var d;v=f[h];d=n?[n,v]:[v],this._process(d.concat(r),i,o)}}else{this.matches[i]||(this.matches[i]=Object.create(null));for(var h=0;h<p;h++){var v=f[h];n&&(v="/"!==n.slice(-1)?n+"/"+v:n+v),"/"!==v.charAt(0)||this.nomount||(v=g.join(this.root,v)),this.matches[i][v]=!0}}}},h.prototype._emitMatch=function(n,t){this._makeAbs(t);if(this.mark&&(t=this._mark(t)),!this.matches[n][t]){if(this.nodir){var e=this.cache[this._makeAbs(t)];if("DIR"===e||Array.isArray(e))return}this.matches[n][t]=!0,this.stat&&this._stat(t)}},h.prototype._readdirInGlobStar=function(n){if(this.follow)return this._readdir(n,!1);var t,e;try{e=s.lstatSync(n)}catch(n){return null}var r=e.isSymbolicLink();return(this.symlinks[n]=r)||e.isDirectory()?t=this._readdir(n,!1):this.cache[n]="FILE",t},h.prototype._readdir=function(t,n){if(n&&!a(this.symlinks,t))return this._readdirInGlobStar(t);if(a(this.cache,t)){var e=this.cache[t];if(!e||"FILE"===e)return null;if(Array.isArray(e))return e}try{return this._readdirEntries(t,s.readdirSync(t))}catch(n){return this._readdirError(t,n),null}},h.prototype._readdirEntries=function(n,t){if(!this.mark&&!this.stat)for(var e=0;e<t.length;e++){var r=t[e];r="/"===n?n+r:n+"/"+r,this.cache[r]=!0}return this.cache[n]=t},h.prototype._readdirError=function(n,t){switch(t.code){case"ENOTSUP":case"ENOTDIR":this.cache[this._makeAbs(n)]="FILE";break;case"ENOENT":case"ELOOP":case"ENAMETOOLONG":case"UNKNOWN":this.cache[this._makeAbs(n)]=!1;break;default:if(this.cache[this._makeAbs(n)]=!1,this.strict)throw t;this.silent||console.error("glob error",t)}},h.prototype._processGlobStar=function(n,t,e,r,i,o){var s=this._readdir(e,o);if(s){var a=r.slice(1),c=n?[n]:[],u=c.concat(a);this._process(u,i,!1);var l=s.length;if(!this.symlinks[e]||!o)for(var f=0;f<l;f++){if("."!==s[f].charAt(0)||this.dot){var h=c.concat(s[f],a);this._process(h,i,!0);var p=c.concat(s[f],r);this._process(p,i,!0)}}}},h.prototype._processSimple=function(n,t){var e=this._stat(n);if(this.matches[t]||(this.matches[t]=Object.create(null)),e){if(n&&l(n)&&!this.nomount){var r=/[\/\\]$/.test(n);"/"===n.charAt(0)?n=g.join(this.root,n):(n=g.resolve(this.root,n),r&&(n+="/"))}"win32"===i.platform&&(n=n.replace(/\\/g,"/")),this.matches[t][n]=!0}},h.prototype._stat=function(n){var t=this._makeAbs(n),e="/"===n.slice(-1);if(n.length>this.maxLength)return!1;if(!this.stat&&a(this.cache,t)){var r=this.cache[t];if(Array.isArray(r)&&(r="DIR"),!e||"DIR"===r)return r;if(e&&"FILE"===r)return!1}var i=this.statCache[t];if(!i){var o;try{o=s.lstatSync(t)}catch(n){return!1}if(o.isSymbolicLink())try{i=s.statSync(t)}catch(n){i=o}else i=o}r=(this.statCache[t]=i).isDirectory()?"DIR":"FILE";return this.cache[t]=this.cache[t]||r,(!e||"DIR"===r)&&r},h.prototype._mark=function(n){return t.mark(this,n)},h.prototype._makeAbs=function(n){return t.makeAbs(this,n)}}).call(this,e("_process"))},{"./common.js":15,"./glob.js":16,_process:24,assert:9,fs:12,minimatch:20,path:22,"path-is-absolute":23,util:28}],18:[function(t,r,n){(function(s){var n=t("wrappy"),a=Object.create(null),e=t("once");r.exports=n(function(n,t){return a[n]?(a[n].push(t),null):(a[n]=[t],o=n,e(function n(){var t=a[o],e=t.length,r=function(n){for(var t=n.length,e=[],r=0;r<t;r++)e[r]=n[r];return e}(arguments);try{for(var i=0;i<e;i++)t[i].apply(null,r)}finally{t.length>e?(t.splice(0,e),s.nextTick(function(){n.apply(null,r)})):delete a[o]}}));var o})}).call(this,t("_process"))},{_process:24,once:21,wrappy:29}],19:[function(n,t,e){"function"==typeof Object.create?t.exports=function(n,t){n.super_=t,n.prototype=Object.create(t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}})}:t.exports=function(n,t){n.super_=t;var e=function(){};e.prototype=t.prototype,n.prototype=new e,n.prototype.constructor=n}},{}],20:[function(n,t,e){(t.exports=s).Minimatch=i;var u={sep:"/"};try{u=n("path")}catch(n){}var M=s.GLOBSTAR=i.GLOBSTAR={},r=n("brace-expansion"),C={"!":{open:"(?:(?!(?:",close:"))[^/]*?)"},"?":{open:"(?:",close:")?"},"+":{open:"(?:",close:")+"},"*":{open:"(?:",close:")*"},"@":{open:"(?:",close:")"}},P="[^/]",z=P+"*?",B="().*{}+?[]^$\\!".split("").reduce(function(n,t){return n[t]=!0,n},{});var l=/\/+/;function o(t,e){t=t||{},e=e||{};var r={};return Object.keys(e).forEach(function(n){r[n]=e[n]}),Object.keys(t).forEach(function(n){r[n]=t[n]}),r}function s(n,t,e){if("string"!=typeof t)throw new TypeError("glob pattern string required");return e||(e={}),!(!e.nocomment&&"#"===t.charAt(0))&&(""===t.trim()?""===n:new i(t,e).match(n))}function i(n,t){if(!(this instanceof i))return new i(n,t);if("string"!=typeof n)throw new TypeError("glob pattern string required");t||(t={}),n=n.trim(),"/"!==u.sep&&(n=n.split(u.sep).join("/")),this.options=t,this.set=[],this.pattern=n,this.regexp=null,this.negate=!1,this.comment=!1,this.empty=!1,this.make()}function a(n,t){if(t||(t=this instanceof i?this.options:{}),void 0===(n=void 0===n?this.pattern:n))throw new TypeError("undefined pattern");return t.nobrace||!n.match(/\{.*\}/)?[n]:r(n)}s.filter=function(r,i){return i=i||{},function(n,t,e){return s(n,r,i)}},s.defaults=function(r){if(!r||!Object.keys(r).length)return s;var i=s,n=function(n,t,e){return i.minimatch(n,t,o(r,e))};return n.Minimatch=function(n,t){return new i.Minimatch(n,o(r,t))},n},i.defaults=function(n){return n&&Object.keys(n).length?s.defaults(n).Minimatch:i},i.prototype.debug=function(){},i.prototype.make=function(){if(this._made)return;var n=this.pattern,t=this.options;if(!t.nocomment&&"#"===n.charAt(0))return void(this.comment=!0);if(!n)return void(this.empty=!0);this.parseNegate();var e=this.globSet=this.braceExpand();t.debug&&(this.debug=console.error);this.debug(this.pattern,e),e=this.globParts=e.map(function(n){return n.split(l)}),this.debug(this.pattern,e),e=e.map(function(n,t,e){return n.map(this.parse,this)},this),this.debug(this.pattern,e),e=e.filter(function(n){return-1===n.indexOf(!1)}),this.debug(this.pattern,e),this.set=e},i.prototype.parseNegate=function(){var n=this.pattern,t=!1,e=this.options,r=0;if(e.nonegate)return;for(var i=0,o=n.length;i<o&&"!"===n.charAt(i);i++)t=!t,r++;r&&(this.pattern=n.substr(r));this.negate=t},s.braceExpand=function(n,t){return a(n,t)},i.prototype.braceExpand=a,i.prototype.parse=function(n,t){if(65536<n.length)throw new TypeError("pattern is too long");var e=this.options;if(!e.noglobstar&&"**"===n)return M;if(""===n)return"";var r,i="",o=!!e.nocase,s=!1,a=[],c=[],u=!1,l=-1,f=-1,h="."===n.charAt(0)?"":e.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)",p=this;function d(){if(r){switch(r){case"*":i+=z,o=!0;break;case"?":i+=P,o=!0;break;default:i+="\\"+r}p.debug("clearStateChar %j %j",r,i),r=!1}}for(var v,g=0,m=n.length;g<m&&(v=n.charAt(g));g++)if(this.debug("%s\t%s %s %j",n,g,i,v),s&&B[v])i+="\\"+v,s=!1;else switch(v){case"/":return!1;case"\\":d(),s=!0;continue;case"?":case"*":case"+":case"@":case"!":if(this.debug("%s\t%s %s %j <-- stateChar",n,g,i,v),u){this.debug(" in class"),"!"===v&&g===f+1&&(v="^"),i+=v;continue}p.debug("call clearStateChar %j",r),d(),r=v,e.noext&&d();continue;case"(":if(u){i+="(";continue}if(!r){i+="\\(";continue}a.push({type:r,start:g-1,reStart:i.length,open:C[r].open,close:C[r].close}),i+="!"===r?"(?:(?!(?:":"(?:",this.debug("plType %j %j",r,i),r=!1;continue;case")":if(u||!a.length){i+="\\)";continue}d(),o=!0;var y=a.pop();i+=y.close,"!"===y.type&&c.push(y),y.reEnd=i.length;continue;case"|":if(u||!a.length||s){i+="\\|",s=!1;continue}d(),i+="|";continue;case"[":if(d(),u){i+="\\"+v;continue}u=!0,f=g,l=i.length,i+=v;continue;case"]":if(g===f+1||!u){i+="\\"+v,s=!1;continue}if(u){var b=n.substring(f+1,g);try{RegExp("["+b+"]")}catch(n){var _=this.parse(b,U);i=i.substr(0,l)+"\\["+_[0]+"\\]",o=o||_[1],u=!1;continue}}u=!(o=!0),i+=v;continue;default:d(),s?s=!1:!B[v]||"^"===v&&u||(i+="\\"),i+=v}u&&(b=n.substr(f+1),_=this.parse(b,U),i=i.substr(0,l)+"\\["+_[0],o=o||_[1]);for(y=a.pop();y;y=a.pop()){var w=i.slice(y.reStart+y.open.length);this.debug("setting tail",i,y),w=w.replace(/((?:\\{2}){0,64})(\\?)\|/g,function(n,t,e){return e||(e="\\"),t+t+e+"|"}),this.debug("tail=%j\n %s",w,w,y,i);var E="*"===y.type?z:"?"===y.type?P:"\\"+y.type;o=!0,i=i.slice(0,y.reStart)+E+"\\("+w}d(),s&&(i+="\\\\");var O=!1;switch(i.charAt(0)){case".":case"[":case"(":O=!0}for(var A=c.length-1;-1<A;A--){var x=c[A],j=i.slice(0,x.reStart),k=i.slice(x.reStart,x.reEnd-8),S=i.slice(x.reEnd-8,x.reEnd),R=i.slice(x.reEnd);S+=R;var L=j.split("(").length-1,T=R;for(g=0;g<L;g++)T=T.replace(/\)[+*?]?/,"");var I="";""===(R=T)&&t!==U&&(I="$");var N=j+k+R+I+S;i=N}""!==i&&o&&(i="(?=.)"+i);O&&(i=h+i);if(t===U)return[i,o];if(!o)return n.replace(/\\(.)/g,"$1");var D=e.nocase?"i":"";try{var F=new RegExp("^"+i+"$",D)}catch(n){return new RegExp("$.")}return F._glob=n,F._src=i,F};var U={};s.makeRe=function(n,t){return new i(n,t||{}).makeRe()},i.prototype.makeRe=function(){if(this.regexp||!1===this.regexp)return this.regexp;var n=this.set;if(!n.length)return this.regexp=!1,this.regexp;var t=this.options,e=t.noglobstar?z:t.dot?"(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?":"(?:(?!(?:\\/|^)\\.).)*?",r=t.nocase?"i":"",i=n.map(function(n){return n.map(function(n){return n===M?e:"string"==typeof n?n.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"):n._src}).join("\\/")}).join("|");i="^(?:"+i+")$",this.negate&&(i="^(?!"+i+").*$");try{this.regexp=new RegExp(i,r)}catch(n){this.regexp=!1}return this.regexp},s.match=function(n,t,e){var r=new i(t,e=e||{});return n=n.filter(function(n){return r.match(n)}),r.options.nonull&&!n.length&&n.push(t),n},i.prototype.match=function(n,t){if(this.debug("match",n,this.pattern),this.comment)return!1;if(this.empty)return""===n;if("/"===n&&t)return!0;var e=this.options;"/"!==u.sep&&(n=n.split(u.sep).join("/"));n=n.split(l),this.debug(this.pattern,"split",n);var r,i,o=this.set;for(this.debug(this.pattern,"set",o),i=n.length-1;0<=i&&!(r=n[i]);i--);for(i=0;i<o.length;i++){var s=o[i],a=n;e.matchBase&&1===s.length&&(a=[r]);var c=this.matchOne(a,s,t);if(c)return!!e.flipNegate||!this.negate}return!e.flipNegate&&this.negate},i.prototype.matchOne=function(n,t,e){var r=this.options;this.debug("matchOne",{this:this,file:n,pattern:t}),this.debug("matchOne",n.length,t.length);for(var i=0,o=0,s=n.length,a=t.length;i<s&&o<a;i++,o++){this.debug("matchOne loop");var c,u=t[o],l=n[i];if(this.debug(t,u,l),!1===u)return!1;if(u===M){this.debug("GLOBSTAR",[t,u,l]);var f=i,h=o+1;if(h===a){for(this.debug("** at the end");i<s;i++)if("."===n[i]||".."===n[i]||!r.dot&&"."===n[i].charAt(0))return!1;return!0}for(;f<s;){var p=n[f];if(this.debug("\nglobstar while",n,f,t,h,p),this.matchOne(n.slice(f),t.slice(h),e))return this.debug("globstar found match!",f,s,p),!0;if("."===p||".."===p||!r.dot&&"."===p.charAt(0)){this.debug("dot detected!",n,f,t,h);break}this.debug("globstar swallow a segment, and continue"),f++}return!(!e||(this.debug("\n>>> no match, partial?",n,f,t,h),f!==s))}if("string"==typeof u?(c=r.nocase?l.toLowerCase()===u.toLowerCase():l===u,this.debug("string match",u,l,c)):(c=l.match(u),this.debug("pattern match",u,l,c)),!c)return!1}if(i===s&&o===a)return!0;if(i===s)return e;if(o===a)return i===s-1&&""===n[i];throw new Error("wtf?")}},{"brace-expansion":11,path:22}],21:[function(n,t,e){var r=n("wrappy");function i(n){var t=function(){return t.called?t.value:(t.called=!0,t.value=n.apply(this,arguments))};return t.called=!1,t}function o(n){var t=function(){if(t.called)throw new Error(t.onceError);return t.called=!0,t.value=n.apply(this,arguments)},e=n.name||"Function wrapped with `once`";return t.onceError=e+" shouldn't be called more than once",t.called=!1,t}t.exports=r(i),t.exports.strict=r(o),i.proto=i(function(){Object.defineProperty(Function.prototype,"once",{value:function(){return i(this)},configurable:!0}),Object.defineProperty(Function.prototype,"onceStrict",{value:function(){return o(this)},configurable:!0})})},{wrappy:29}],22:[function(n,t,u){(function(i){function o(n,t){for(var e=0,r=n.length-1;0<=r;r--){var i=n[r];"."===i?n.splice(r,1):".."===i?(n.splice(r,1),e++):e&&(n.splice(r,1),e--)}if(t)for(;e--;e)n.unshift("..");return n}var t=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/,s=function(n){return t.exec(n).slice(1)};function a(n,t){if(n.filter)return n.filter(t);for(var e=[],r=0;r<n.length;r++)t(n[r],r,n)&&e.push(n[r]);return e}u.resolve=function(){for(var n="",t=!1,e=arguments.length-1;-1<=e&&!t;e--){var r=0<=e?arguments[e]:i.cwd();if("string"!=typeof r)throw new TypeError("Arguments to path.resolve must be strings");r&&(n=r+"/"+n,t="/"===r.charAt(0))}return(t?"/":"")+(n=o(a(n.split("/"),function(n){return!!n}),!t).join("/"))||"."},u.normalize=function(n){var t=u.isAbsolute(n),e="/"===r(n,-1);return(n=o(a(n.split("/"),function(n){return!!n}),!t).join("/"))||t||(n="."),n&&e&&(n+="/"),(t?"/":"")+n},u.isAbsolute=function(n){return"/"===n.charAt(0)},u.join=function(){var n=Array.prototype.slice.call(arguments,0);return u.normalize(a(n,function(n,t){if("string"!=typeof n)throw new TypeError("Arguments to path.join must be strings");return n}).join("/"))},u.relative=function(n,t){function e(n){for(var t=0;t<n.length&&""===n[t];t++);for(var e=n.length-1;0<=e&&""===n[e];e--);return e<t?[]:n.slice(t,e-t+1)}n=u.resolve(n).substr(1),t=u.resolve(t).substr(1);for(var r=e(n.split("/")),i=e(t.split("/")),o=Math.min(r.length,i.length),s=o,a=0;a<o;a++)if(r[a]!==i[a]){s=a;break}var c=[];for(a=s;a<r.length;a++)c.push("..");return(c=c.concat(i.slice(s))).join("/")},u.sep="/",u.delimiter=":",u.dirname=function(n){var t=s(n),e=t[0],r=t[1];return e||r?(r&&(r=r.substr(0,r.length-1)),e+r):"."},u.basename=function(n,t){var e=s(n)[2];return t&&e.substr(-1*t.length)===t&&(e=e.substr(0,e.length-t.length)),e},u.extname=function(n){return s(n)[3]};var r="b"==="ab".substr(-1)?function(n,t,e){return n.substr(t,e)}:function(n,t,e){return t<0&&(t=n.length+t),n.substr(t,e)}}).call(this,n("_process"))},{_process:24}],23:[function(n,r,t){(function(n){"use strict";function t(n){return"/"===n.charAt(0)}function e(n){var t=/^([a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?([\\\/])?([\s\S]*?)$/.exec(n),e=t[1]||"",r=Boolean(e&&":"!==e.charAt(1));return Boolean(t[2]||r)}r.exports="win32"===n.platform?e:t,r.exports.posix=t,r.exports.win32=e}).call(this,n("_process"))},{_process:24}],24:[function(n,t,e){var r,i,o=t.exports={};function s(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function c(t){if(r===setTimeout)return setTimeout(t,0);if((r===s||!r)&&setTimeout)return r=setTimeout,setTimeout(t,0);try{return r(t,0)}catch(n){try{return r.call(null,t,0)}catch(n){return r.call(this,t,0)}}}!function(){try{r="function"==typeof setTimeout?setTimeout:s}catch(n){r=s}try{i="function"==typeof clearTimeout?clearTimeout:a}catch(n){i=a}}();var u,l=[],f=!1,h=-1;function p(){f&&u&&(f=!1,u.length?l=u.concat(l):h=-1,l.length&&d())}function d(){if(!f){var n=c(p);f=!0;for(var t=l.length;t;){for(u=l,l=[];++h<t;)u&&u[h].run();h=-1,t=l.length}u=null,f=!1,function(t){if(i===clearTimeout)return clearTimeout(t);if((i===a||!i)&&clearTimeout)return i=clearTimeout,clearTimeout(t);try{i(t)}catch(n){try{return i.call(null,t)}catch(n){return i.call(this,t)}}}(n)}}function v(n,t){this.fun=n,this.array=t}function g(){}o.nextTick=function(n){var t=new Array(arguments.length-1);if(1<arguments.length)for(var e=1;e<arguments.length;e++)t[e-1]=arguments[e];l.push(new v(n,t)),1!==l.length||f||c(d)},v.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=g,o.addListener=g,o.once=g,o.off=g,o.removeListener=g,o.removeAllListeners=g,o.emit=g,o.prependListener=g,o.prependOnceListener=g,o.listeners=function(n){return[]},o.binding=function(n){throw new Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(n){throw new Error("process.chdir is not supported")},o.umask=function(){return 0}},{}],25:[function(n,q,$){(function(){var n=this,t=n._,r=Array.prototype,s=Object.prototype,e=Function.prototype,i=r.push,c=r.slice,f=s.toString,o=s.hasOwnProperty,a=Array.isArray,u=Object.keys,l=e.bind,h=Object.create,p=function(){},d=function(n){return n instanceof d?n:this instanceof d?void(this._wrapped=n):new d(n)};void 0!==$?(void 0!==q&&q.exports&&($=q.exports=d),$._=d):n._=d,d.VERSION="1.8.3";var v=function(i,o,n){if(void 0===o)return i;switch(null==n?3:n){case 1:return function(n){return i.call(o,n)};case 2:return function(n,t){return i.call(o,n,t)};case 3:return function(n,t,e){return i.call(o,n,t,e)};case 4:return function(n,t,e,r){return i.call(o,n,t,e,r)}}return function(){return i.apply(o,arguments)}},g=function(n,t,e){return null==n?d.identity:d.isFunction(n)?v(n,t,e):d.isObject(n)?d.matcher(n):d.property(n)};d.iteratee=function(n,t){return g(n,t,1/0)};var m=function(c,u){return function(n){var t=arguments.length;if(t<2||null==n)return n;for(var e=1;e<t;e++)for(var r=arguments[e],i=c(r),o=i.length,s=0;s<o;s++){var a=i[s];u&&void 0!==n[a]||(n[a]=r[a])}return n}},y=function(n){if(!d.isObject(n))return{};if(h)return h(n);p.prototype=n;var t=new p;return p.prototype=null,t},b=function(t){return function(n){return null==n?void 0:n[t]}},_=Math.pow(2,53)-1,w=b("length"),E=function(n){var t=w(n);return"number"==typeof t&&0<=t&&t<=_};function O(a){return function(n,t,e,r){t=v(t,r,4);var i=!E(n)&&d.keys(n),o=(i||n).length,s=0<a?0:o-1;return arguments.length<3&&(e=n[i?i[s]:s],s+=a),function(n,t,e,r,i,o){for(;0<=i&&i<o;i+=a){var s=r?r[i]:i;e=t(e,n[s],s,n)}return e}(n,t,e,i,s,o)}}d.each=d.forEach=function(n,t,e){var r,i;if(t=v(t,e),E(n))for(r=0,i=n.length;r<i;r++)t(n[r],r,n);else{var o=d.keys(n);for(r=0,i=o.length;r<i;r++)t(n[o[r]],o[r],n)}return n},d.map=d.collect=function(n,t,e){t=g(t,e);for(var r=!E(n)&&d.keys(n),i=(r||n).length,o=Array(i),s=0;s<i;s++){var a=r?r[s]:s;o[s]=t(n[a],a,n)}return o},d.reduce=d.foldl=d.inject=O(1),d.reduceRight=d.foldr=O(-1),d.find=d.detect=function(n,t,e){var r;if(void 0!==(r=E(n)?d.findIndex(n,t,e):d.findKey(n,t,e))&&-1!==r)return n[r]},d.filter=d.select=function(n,r,t){var i=[];return r=g(r,t),d.each(n,function(n,t,e){r(n,t,e)&&i.push(n)}),i},d.reject=function(n,t,e){return d.filter(n,d.negate(g(t)),e)},d.every=d.all=function(n,t,e){t=g(t,e);for(var r=!E(n)&&d.keys(n),i=(r||n).length,o=0;o<i;o++){var s=r?r[o]:o;if(!t(n[s],s,n))return!1}return!0},d.some=d.any=function(n,t,e){t=g(t,e);for(var r=!E(n)&&d.keys(n),i=(r||n).length,o=0;o<i;o++){var s=r?r[o]:o;if(t(n[s],s,n))return!0}return!1},d.contains=d.includes=d.include=function(n,t,e,r){return E(n)||(n=d.values(n)),("number"!=typeof e||r)&&(e=0),0<=d.indexOf(n,t,e)},d.invoke=function(n,e){var r=c.call(arguments,2),i=d.isFunction(e);return d.map(n,function(n){var t=i?e:n[e];return null==t?t:t.apply(n,r)})},d.pluck=function(n,t){return d.map(n,d.property(t))},d.where=function(n,t){return d.filter(n,d.matcher(t))},d.findWhere=function(n,t){return d.find(n,d.matcher(t))},d.max=function(n,r,t){var e,i,o=-1/0,s=-1/0;if(null==r&&null!=n)for(var a=0,c=(n=E(n)?n:d.values(n)).length;a<c;a++)e=n[a],o<e&&(o=e);else r=g(r,t),d.each(n,function(n,t,e){i=r(n,t,e),(s<i||i===-1/0&&o===-1/0)&&(o=n,s=i)});return o},d.min=function(n,r,t){var e,i,o=1/0,s=1/0;if(null==r&&null!=n)for(var a=0,c=(n=E(n)?n:d.values(n)).length;a<c;a++)(e=n[a])<o&&(o=e);else r=g(r,t),d.each(n,function(n,t,e){((i=r(n,t,e))<s||i===1/0&&o===1/0)&&(o=n,s=i)});return o},d.shuffle=function(n){for(var t,e=E(n)?n:d.values(n),r=e.length,i=Array(r),o=0;o<r;o++)(t=d.random(0,o))!==o&&(i[o]=i[t]),i[t]=e[o];return i},d.sample=function(n,t,e){return null==t||e?(E(n)||(n=d.values(n)),n[d.random(n.length-1)]):d.shuffle(n).slice(0,Math.max(0,t))},d.sortBy=function(n,r,t){return r=g(r,t),d.pluck(d.map(n,function(n,t,e){return{value:n,index:t,criteria:r(n,t,e)}}).sort(function(n,t){var e=n.criteria,r=t.criteria;if(e!==r){if(r<e||void 0===e)return 1;if(e<r||void 0===r)return-1}return n.index-t.index}),"value")};var A=function(s){return function(r,i,n){var o={};return i=g(i,n),d.each(r,function(n,t){var e=i(n,t,r);s(o,n,e)}),o}};d.groupBy=A(function(n,t,e){d.has(n,e)?n[e].push(t):n[e]=[t]}),d.indexBy=A(function(n,t,e){n[e]=t}),d.countBy=A(function(n,t,e){d.has(n,e)?n[e]++:n[e]=1}),d.toArray=function(n){return n?d.isArray(n)?c.call(n):E(n)?d.map(n,d.identity):d.values(n):[]},d.size=function(n){return null==n?0:E(n)?n.length:d.keys(n).length},d.partition=function(n,r,t){r=g(r,t);var i=[],o=[];return d.each(n,function(n,t,e){(r(n,t,e)?i:o).push(n)}),[i,o]},d.first=d.head=d.take=function(n,t,e){if(null!=n)return null==t||e?n[0]:d.initial(n,n.length-t)},d.initial=function(n,t,e){return c.call(n,0,Math.max(0,n.length-(null==t||e?1:t)))},d.last=function(n,t,e){if(null!=n)return null==t||e?n[n.length-1]:d.rest(n,Math.max(0,n.length-t))},d.rest=d.tail=d.drop=function(n,t,e){return c.call(n,null==t||e?1:t)},d.compact=function(n){return d.filter(n,d.identity)};var x=function(n,t,e,r){for(var i=[],o=0,s=r||0,a=w(n);s<a;s++){var c=n[s];if(E(c)&&(d.isArray(c)||d.isArguments(c))){t||(c=x(c,t,e));var u=0,l=c.length;for(i.length+=l;u<l;)i[o++]=c[u++]}else e||(i[o++]=c)}return i};function j(o){return function(n,t,e){t=g(t,e);for(var r=w(n),i=0<o?0:r-1;0<=i&&i<r;i+=o)if(t(n[i],i,n))return i;return-1}}function k(o,s,a){return function(n,t,e){var r=0,i=w(n);if("number"==typeof e)0<o?r=0<=e?e:Math.max(e+i,r):i=0<=e?Math.min(e+1,i):e+i+1;else if(a&&e&&i)return n[e=a(n,t)]===t?e:-1;if(t!=t)return 0<=(e=s(c.call(n,r,i),d.isNaN))?e+r:-1;for(e=0<o?r:i-1;0<=e&&e<i;e+=o)if(n[e]===t)return e;return-1}}d.flatten=function(n,t){return x(n,t,!1)},d.without=function(n){return d.difference(n,c.call(arguments,1))},d.uniq=d.unique=function(n,t,e,r){d.isBoolean(t)||(r=e,e=t,t=!1),null!=e&&(e=g(e,r));for(var i=[],o=[],s=0,a=w(n);s<a;s++){var c=n[s],u=e?e(c,s,n):c;t?(s&&o===u||i.push(c),o=u):e?d.contains(o,u)||(o.push(u),i.push(c)):d.contains(i,c)||i.push(c)}return i},d.union=function(){return d.uniq(x(arguments,!0,!0))},d.intersection=function(n){for(var t=[],e=arguments.length,r=0,i=w(n);r<i;r++){var o=n[r];if(!d.contains(t,o)){for(var s=1;s<e&&d.contains(arguments[s],o);s++);s===e&&t.push(o)}}return t},d.difference=function(n){var t=x(arguments,!0,!0,1);return d.filter(n,function(n){return!d.contains(t,n)})},d.zip=function(){return d.unzip(arguments)},d.unzip=function(n){for(var t=n&&d.max(n,w).length||0,e=Array(t),r=0;r<t;r++)e[r]=d.pluck(n,r);return e},d.object=function(n,t){for(var e={},r=0,i=w(n);r<i;r++)t?e[n[r]]=t[r]:e[n[r][0]]=n[r][1];return e},d.findIndex=j(1),d.findLastIndex=j(-1),d.sortedIndex=function(n,t,e,r){for(var i=(e=g(e,r,1))(t),o=0,s=w(n);o<s;){var a=Math.floor((o+s)/2);e(n[a])<i?o=a+1:s=a}return o},d.indexOf=k(1,d.findIndex,d.sortedIndex),d.lastIndexOf=k(-1,d.findLastIndex),d.range=function(n,t,e){null==t&&(t=n||0,n=0),e=e||1;for(var r=Math.max(Math.ceil((t-n)/e),0),i=Array(r),o=0;o<r;o++,n+=e)i[o]=n;return i};var S=function(n,t,e,r,i){if(!(r instanceof t))return n.apply(e,i);var o=y(n.prototype),s=n.apply(o,i);return d.isObject(s)?s:o};d.bind=function(n,t){if(l&&n.bind===l)return l.apply(n,c.call(arguments,1));if(!d.isFunction(n))throw new TypeError("Bind must be called on a function");var e=c.call(arguments,2),r=function(){return S(n,r,t,this,e.concat(c.call(arguments)))};return r},d.partial=function(i){var o=c.call(arguments,1),s=function(){for(var n=0,t=o.length,e=Array(t),r=0;r<t;r++)e[r]=o[r]===d?arguments[n++]:o[r];for(;n<arguments.length;)e.push(arguments[n++]);return S(i,s,this,this,e)};return s},d.bindAll=function(n){var t,e,r=arguments.length;if(r<=1)throw new Error("bindAll must be passed function names");for(t=1;t<r;t++)n[e=arguments[t]]=d.bind(n[e],n);return n},d.memoize=function(r,i){var o=function(n){var t=o.cache,e=""+(i?i.apply(this,arguments):n);return d.has(t,e)||(t[e]=r.apply(this,arguments)),t[e]};return o.cache={},o},d.delay=function(n,t){var e=c.call(arguments,2);return setTimeout(function(){return n.apply(null,e)},t)},d.defer=d.partial(d.delay,d,1),d.throttle=function(e,r,i){var o,s,a,c=null,u=0;i||(i={});var l=function(){u=!1===i.leading?0:d.now(),c=null,a=e.apply(o,s),c||(o=s=null)};return function(){var n=d.now();u||!1!==i.leading||(u=n);var t=r-(n-u);return o=this,s=arguments,t<=0||r<t?(c&&(clearTimeout(c),c=null),u=n,a=e.apply(o,s),c||(o=s=null)):c||!1===i.trailing||(c=setTimeout(l,t)),a}},d.debounce=function(t,e,r){var i,o,s,a,c,u=function(){var n=d.now()-a;n<e&&0<=n?i=setTimeout(u,e-n):(i=null,r||(c=t.apply(s,o),i||(s=o=null)))};return function(){s=this,o=arguments,a=d.now();var n=r&&!i;return i||(i=setTimeout(u,e)),n&&(c=t.apply(s,o),s=o=null),c}},d.wrap=function(n,t){return d.partial(t,n)},d.negate=function(n){return function(){return!n.apply(this,arguments)}},d.compose=function(){var e=arguments,r=e.length-1;return function(){for(var n=r,t=e[r].apply(this,arguments);n--;)t=e[n].call(this,t);return t}},d.after=function(n,t){return function(){if(--n<1)return t.apply(this,arguments)}},d.before=function(n,t){var e;return function(){return 0<--n&&(e=t.apply(this,arguments)),n<=1&&(t=null),e}},d.once=d.partial(d.before,2);var R=!{toString:null}.propertyIsEnumerable("toString"),L=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"];function T(n,t){var e=L.length,r=n.constructor,i=d.isFunction(r)&&r.prototype||s,o="constructor";for(d.has(n,o)&&!d.contains(t,o)&&t.push(o);e--;)(o=L[e])in n&&n[o]!==i[o]&&!d.contains(t,o)&&t.push(o)}d.keys=function(n){if(!d.isObject(n))return[];if(u)return u(n);var t=[];for(var e in n)d.has(n,e)&&t.push(e);return R&&T(n,t),t},d.allKeys=function(n){if(!d.isObject(n))return[];var t=[];for(var e in n)t.push(e);return R&&T(n,t),t},d.values=function(n){for(var t=d.keys(n),e=t.length,r=Array(e),i=0;i<e;i++)r[i]=n[t[i]];return r},d.mapObject=function(n,t,e){t=g(t,e);for(var r,i=d.keys(n),o=i.length,s={},a=0;a<o;a++)s[r=i[a]]=t(n[r],r,n);return s},d.pairs=function(n){for(var t=d.keys(n),e=t.length,r=Array(e),i=0;i<e;i++)r[i]=[t[i],n[t[i]]];return r},d.invert=function(n){for(var t={},e=d.keys(n),r=0,i=e.length;r<i;r++)t[n[e[r]]]=e[r];return t},d.functions=d.methods=function(n){var t=[];for(var e in n)d.isFunction(n[e])&&t.push(e);return t.sort()},d.extend=m(d.allKeys),d.extendOwn=d.assign=m(d.keys),d.findKey=function(n,t,e){t=g(t,e);for(var r,i=d.keys(n),o=0,s=i.length;o<s;o++)if(t(n[r=i[o]],r,n))return r},d.pick=function(n,t,e){var r,i,o={},s=n;if(null==s)return o;d.isFunction(t)?(i=d.allKeys(s),r=v(t,e)):(i=x(arguments,!1,!1,1),r=function(n,t,e){return t in e},s=Object(s));for(var a=0,c=i.length;a<c;a++){var u=i[a],l=s[u];r(l,u,s)&&(o[u]=l)}return o},d.omit=function(n,t,e){if(d.isFunction(t))t=d.negate(t);else{var r=d.map(x(arguments,!1,!1,1),String);t=function(n,t){return!d.contains(r,t)}}return d.pick(n,t,e)},d.defaults=m(d.allKeys,!0),d.create=function(n,t){var e=y(n);return t&&d.extendOwn(e,t),e},d.clone=function(n){return d.isObject(n)?d.isArray(n)?n.slice():d.extend({},n):n},d.tap=function(n,t){return t(n),n},d.isMatch=function(n,t){var e=d.keys(t),r=e.length;if(null==n)return!r;for(var i=Object(n),o=0;o<r;o++){var s=e[o];if(t[s]!==i[s]||!(s in i))return!1}return!0};var I=function(n,t,e,r){if(n===t)return 0!==n||1/n==1/t;if(null==n||null==t)return n===t;n instanceof d&&(n=n._wrapped),t instanceof d&&(t=t._wrapped);var i=f.call(n);if(i!==f.call(t))return!1;switch(i){case"[object RegExp]":case"[object String]":return""+n==""+t;case"[object Number]":return+n!=+n?+t!=+t:0==+n?1/+n==1/t:+n==+t;case"[object Date]":case"[object Boolean]":return+n==+t}var o="[object Array]"===i;if(!o){if("object"!=typeof n||"object"!=typeof t)return!1;var s=n.constructor,a=t.constructor;if(s!==a&&!(d.isFunction(s)&&s instanceof s&&d.isFunction(a)&&a instanceof a)&&"constructor"in n&&"constructor"in t)return!1}r=r||[];for(var c=(e=e||[]).length;c--;)if(e[c]===n)return r[c]===t;if(e.push(n),r.push(t),o){if((c=n.length)!==t.length)return!1;for(;c--;)if(!I(n[c],t[c],e,r))return!1}else{var u,l=d.keys(n);if(c=l.length,d.keys(t).length!==c)return!1;for(;c--;)if(u=l[c],!d.has(t,u)||!I(n[u],t[u],e,r))return!1}return e.pop(),r.pop(),!0};d.isEqual=function(n,t){return I(n,t)},d.isEmpty=function(n){return null==n||(E(n)&&(d.isArray(n)||d.isString(n)||d.isArguments(n))?0===n.length:0===d.keys(n).length)},d.isElement=function(n){return!(!n||1!==n.nodeType)},d.isArray=a||function(n){return"[object Array]"===f.call(n)},d.isObject=function(n){var t=typeof n;return"function"===t||"object"===t&&!!n},d.each(["Arguments","Function","String","Number","Date","RegExp","Error"],function(t){d["is"+t]=function(n){return f.call(n)==="[object "+t+"]"}}),d.isArguments(arguments)||(d.isArguments=function(n){return d.has(n,"callee")}),"function"!=typeof/./&&"object"!=typeof Int8Array&&(d.isFunction=function(n){return"function"==typeof n||!1}),d.isFinite=function(n){return isFinite(n)&&!isNaN(parseFloat(n))},d.isNaN=function(n){return d.isNumber(n)&&n!==+n},d.isBoolean=function(n){return!0===n||!1===n||"[object Boolean]"===f.call(n)},d.isNull=function(n){return null===n},d.isUndefined=function(n){return void 0===n},d.has=function(n,t){return null!=n&&o.call(n,t)},d.noConflict=function(){return n._=t,this},d.identity=function(n){return n},d.constant=function(n){return function(){return n}},d.noop=function(){},d.property=b,d.propertyOf=function(t){return null==t?function(){}:function(n){return t[n]}},d.matcher=d.matches=function(t){return t=d.extendOwn({},t),function(n){return d.isMatch(n,t)}},d.times=function(n,t,e){var r=Array(Math.max(0,n));t=v(t,e,1);for(var i=0;i<n;i++)r[i]=t(i);return r},d.random=function(n,t){return null==t&&(t=n,n=0),n+Math.floor(Math.random()*(t-n+1))},d.now=Date.now||function(){return(new Date).getTime()};var N={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;"},D=d.invert(N),F=function(t){var e=function(n){return t[n]},n="(?:"+d.keys(t).join("|")+")",r=RegExp(n),i=RegExp(n,"g");return function(n){return n=null==n?"":""+n,r.test(n)?n.replace(i,e):n}};d.escape=F(N),d.unescape=F(D),d.result=function(n,t,e){var r=null==n?void 0:n[t];return void 0===r&&(r=e),d.isFunction(r)?r.call(n):r};var M=0;d.uniqueId=function(n){var t=++M+"";return n?n+t:t},d.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g};var C=/(.)^/,P={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},z=/\\|'|\r|\n|\u2028|\u2029/g,B=function(n){return"\\"+P[n]};d.template=function(o,n,t){!n&&t&&(n=t),n=d.defaults({},n,d.templateSettings);var e=RegExp([(n.escape||C).source,(n.interpolate||C).source,(n.evaluate||C).source].join("|")+"|$","g"),s=0,a="__p+='";o.replace(e,function(n,t,e,r,i){return a+=o.slice(s,i).replace(z,B),s=i+n.length,t?a+="'+\n((__t=("+t+"))==null?'':_.escape(__t))+\n'":e?a+="'+\n((__t=("+e+"))==null?'':__t)+\n'":r&&(a+="';\n"+r+"\n__p+='"),n}),a+="';\n",n.variable||(a="with(obj||{}){\n"+a+"}\n"),a="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+a+"return __p;\n";try{var r=new Function(n.variable||"obj","_",a)}catch(n){throw n.source=a,n}var i=function(n){return r.call(this,n,d)},c=n.variable||"obj";return i.source="function("+c+"){\n"+a+"}",i},d.chain=function(n){var t=d(n);return t._chain=!0,t};var U=function(n,t){return n._chain?d(t).chain():t};d.mixin=function(e){d.each(d.functions(e),function(n){var t=d[n]=e[n];d.prototype[n]=function(){var n=[this._wrapped];return i.apply(n,arguments),U(this,t.apply(d,n))}})},d.mixin(d),d.each(["pop","push","reverse","shift","sort","splice","unshift"],function(t){var e=r[t];d.prototype[t]=function(){var n=this._wrapped;return e.apply(n,arguments),"shift"!==t&&"splice"!==t||0!==n.length||delete n[0],U(this,n)}}),d.each(["concat","join","slice"],function(n){var t=r[n];d.prototype[n]=function(){return U(this,t.apply(this._wrapped,arguments))}}),d.prototype.value=function(){return this._wrapped},d.prototype.valueOf=d.prototype.toJSON=d.prototype.value,d.prototype.toString=function(){return""+this._wrapped}}).call(this)},{}],26:[function(n,t,e){arguments[4][19][0].apply(e,arguments)},{dup:19}],27:[function(n,t,e){t.exports=function(n){return n&&"object"==typeof n&&"function"==typeof n.copy&&"function"==typeof n.fill&&"function"==typeof n.readUInt8}},{}],28:[function(h,n,k){(function(r,i){var a=/%[sdj%]/g;k.format=function(n){if(!_(n)){for(var t=[],e=0;e<arguments.length;e++)t.push(c(arguments[e]));return t.join(" ")}e=1;for(var r=arguments,i=r.length,o=String(n).replace(a,function(n){if("%%"===n)return"%";if(i<=e)return n;switch(n){case"%s":return String(r[e++]);case"%d":return Number(r[e++]);case"%j":try{return JSON.stringify(r[e++])}catch(n){return"[Circular]"}default:return n}}),s=r[e];e<i;s=r[++e])y(s)||!l(s)?o+=" "+s:o+=" "+c(s);return o},k.deprecate=function(n,t){if(w(i.process))return function(){return k.deprecate(n,t).apply(this,arguments)};if(!0===r.noDeprecation)return n;var e=!1;return function(){if(!e){if(r.throwDeprecation)throw new Error(t);r.traceDeprecation?console.trace(t):console.error(t),e=!0}return n.apply(this,arguments)}};var n,o={};function c(n,t){var e={seen:[],stylize:u};return 3<=arguments.length&&(e.depth=arguments[2]),4<=arguments.length&&(e.colors=arguments[3]),m(t)?e.showHidden=t:t&&k._extend(e,t),w(e.showHidden)&&(e.showHidden=!1),w(e.depth)&&(e.depth=2),w(e.colors)&&(e.colors=!1),w(e.customInspect)&&(e.customInspect=!0),e.colors&&(e.stylize=s),p(e,n,e.depth)}function s(n,t){var e=c.styles[t];return e?"["+c.colors[e][0]+"m"+n+"["+c.colors[e][1]+"m":n}function u(n,t){return n}function p(t,e,r){if(t.customInspect&&e&&x(e.inspect)&&e.inspect!==k.inspect&&(!e.constructor||e.constructor.prototype!==e)){var n=e.inspect(r,t);return _(n)||(n=p(t,n,r)),n}var i=function(n,t){if(w(t))return n.stylize("undefined","undefined");if(_(t)){var e="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return n.stylize(e,"string")}if(b(t))return n.stylize(""+t,"number");if(m(t))return n.stylize(""+t,"boolean");if(y(t))return n.stylize("null","null")}(t,e);if(i)return i;var o,s=Object.keys(e),a=(o={},s.forEach(function(n,t){o[n]=!0}),o);if(t.showHidden&&(s=Object.getOwnPropertyNames(e)),A(e)&&(0<=s.indexOf("message")||0<=s.indexOf("description")))return d(e);if(0===s.length){if(x(e)){var c=e.name?": "+e.name:"";return t.stylize("[Function"+c+"]","special")}if(E(e))return t.stylize(RegExp.prototype.toString.call(e),"regexp");if(O(e))return t.stylize(Date.prototype.toString.call(e),"date");if(A(e))return d(e)}var u,l="",f=!1,h=["{","}"];(g(e)&&(f=!0,h=["[","]"]),x(e))&&(l=" [Function"+(e.name?": "+e.name:"")+"]");return E(e)&&(l=" "+RegExp.prototype.toString.call(e)),O(e)&&(l=" "+Date.prototype.toUTCString.call(e)),A(e)&&(l=" "+d(e)),0!==s.length||f&&0!=e.length?r<0?E(e)?t.stylize(RegExp.prototype.toString.call(e),"regexp"):t.stylize("[Object]","special"):(t.seen.push(e),u=f?function(t,e,r,i,n){for(var o=[],s=0,a=e.length;s<a;++s)j(e,String(s))?o.push(v(t,e,r,i,String(s),!0)):o.push("");return n.forEach(function(n){n.match(/^\d+$/)||o.push(v(t,e,r,i,n,!0))}),o}(t,e,r,a,s):s.map(function(n){return v(t,e,r,a,n,f)}),t.seen.pop(),function(n,t,e){if(60<n.reduce(function(n,t){return 0,0<=t.indexOf("\n")&&0,n+t.replace(/\u001b\[\d\d?m/g,"").length+1},0))return e[0]+(""===t?"":t+"\n ")+" "+n.join(",\n ")+" "+e[1];return e[0]+t+" "+n.join(", ")+" "+e[1]}(u,l,h)):h[0]+l+h[1]}function d(n){return"["+Error.prototype.toString.call(n)+"]"}function v(n,t,e,r,i,o){var s,a,c;if((c=Object.getOwnPropertyDescriptor(t,i)||{value:t[i]}).get?a=c.set?n.stylize("[Getter/Setter]","special"):n.stylize("[Getter]","special"):c.set&&(a=n.stylize("[Setter]","special")),j(r,i)||(s="["+i+"]"),a||(n.seen.indexOf(c.value)<0?-1<(a=y(e)?p(n,c.value,null):p(n,c.value,e-1)).indexOf("\n")&&(a=o?a.split("\n").map(function(n){return" "+n}).join("\n").substr(2):"\n"+a.split("\n").map(function(n){return" "+n}).join("\n")):a=n.stylize("[Circular]","special")),w(s)){if(o&&i.match(/^\d+$/))return a;s=(s=JSON.stringify(""+i)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(s=s.substr(1,s.length-2),n.stylize(s,"name")):(s=s.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),n.stylize(s,"string"))}return s+": "+a}function g(n){return Array.isArray(n)}function m(n){return"boolean"==typeof n}function y(n){return null===n}function b(n){return"number"==typeof n}function _(n){return"string"==typeof n}function w(n){return void 0===n}function E(n){return l(n)&&"[object RegExp]"===t(n)}function l(n){return"object"==typeof n&&null!==n}function O(n){return l(n)&&"[object Date]"===t(n)}function A(n){return l(n)&&("[object Error]"===t(n)||n instanceof Error)}function x(n){return"function"==typeof n}function t(n){return Object.prototype.toString.call(n)}function e(n){return n<10?"0"+n.toString(10):n.toString(10)}k.debuglog=function(t){if(w(n)&&(n=r.env.NODE_DEBUG||""),t=t.toUpperCase(),!o[t])if(new RegExp("\\b"+t+"\\b","i").test(n)){var e=r.pid;o[t]=function(){var n=k.format.apply(k,arguments);console.error("%s %d: %s",t,e,n)}}else o[t]=function(){};return o[t]},(k.inspect=c).colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},c.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},k.isArray=g,k.isBoolean=m,k.isNull=y,k.isNullOrUndefined=function(n){return null==n},k.isNumber=b,k.isString=_,k.isSymbol=function(n){return"symbol"==typeof n},k.isUndefined=w,k.isRegExp=E,k.isObject=l,k.isDate=O,k.isError=A,k.isFunction=x,k.isPrimitive=function(n){return null===n||"boolean"==typeof n||"number"==typeof n||"string"==typeof n||"symbol"==typeof n||void 0===n},k.isBuffer=h("./support/isBuffer");var f=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function j(n,t){return Object.prototype.hasOwnProperty.call(n,t)}k.log=function(){var n,t;console.log("%s - %s",(n=new Date,t=[e(n.getHours()),e(n.getMinutes()),e(n.getSeconds())].join(":"),[n.getDate(),f[n.getMonth()],t].join(" ")),k.format.apply(k,arguments))},k.inherits=h("inherits"),k._extend=function(n,t){if(!t||!l(t))return n;for(var e=Object.keys(t),r=e.length;r--;)n[e[r]]=t[e[r]];return n}}).call(this,h("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./support/isBuffer":27,_process:24,inherits:26}],29:[function(n,t,e){t.exports=function n(i,t){if(i&&t)return n(i)(t);if("function"!=typeof i)throw new TypeError("need wrapper function");Object.keys(i).forEach(function(n){e[n]=i[n]});return e;function e(){for(var n=new Array(arguments.length),t=0;t<n.length;t++)n[t]=arguments[t];var e=i.apply(this,n),r=n[n.length-1];return"function"==typeof e&&e!==r&&Object.keys(r).forEach(function(n){e[n]=r[n]}),e}}},{}]},{},[7])(7)}); \ No newline at end of file
+(function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}(g.lunr || (g.lunr = {})).wordcut = f()}})(function(){var define,module,exports;return (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(require,module,exports){
+var _ = require("underscore");
+
+var Acceptors = {
+ creators: null,
+ current: null,
+ tag: null,
+
+ init: function() {
+ this.creators = [];
+ this.current = [];
+ this.tag = {};
+ },
+
+ reset: function() {
+ this.current = [];
+ this.tag = {}
+ },
+
+ transit: function(ch) {
+ var self = this;
+
+ self.creators.forEach(function(creator) {
+ var acceptor = creator.createAcceptor(self.tag);
+ if (acceptor)
+ self.current.push(acceptor);
+ });
+
+ var _current = [];
+ self.tag = {};
+
+ for (var i = 0; i < self.current.length; i++) {
+ var _acceptor = self.current[i]
+ , acceptor = _acceptor.transit(ch);
+
+ if (!acceptor.isError) {
+ _current.push(acceptor);
+ self.tag[acceptor.tag] = acceptor;
+ }
+ }
+ self.current = _current;
+
+ },
+
+ getFinalAcceptors: function() {
+ return this.current.filter(function(acceptor) {
+ return acceptor.isFinal;
+ });
+ }
+};
+
+module.exports = function() {
+ var acceptors = _.clone(Acceptors);
+ acceptors.init();
+ return acceptors;
+};
+
+},{"underscore":25}],2:[function(require,module,exports){
+(function (__dirname){
+
+var LEFT = 0;
+var RIGHT = 1;
+var path = require("path");
+var glob = require("glob");
+
+var WordcutDict = {
+
+
+ init: function (dictPathFile, withDefault, words) {
+ withDefault = withDefault || false
+ defaultDict = path.normalize(__dirname + "/..") + "/data/tdict-*.txt";
+ this.dict=[]
+ var dictPathIsDefined = dictPathFile !== undefined
+ var dictPath = (withDefault || !dictPathIsDefined) ? [defaultDict]: [];
+ var dictPathFile = dictPathFile || defaultDict
+
+ if(dictPathIsDefined){
+ if (Array.isArray(dictPathFile)) {
+ dictPath.concat.apply(dictPath, dictPathFile);
+ } else {
+ dictPath.push(dictPathFile)
+ }
+ }
+
+ this.addFiles(dictPath, false)
+
+ if(words!==undefined){
+ this.addWords(words, false)
+ }
+ this.finalizeDict();
+ },
+
+ addWords: function(words, finalize){
+ finalize = finalize===undefined || finalize;
+ this.dict.push.apply(this.dict, words)
+ if(finalize){
+ this.finalizeDict();
+ }
+ },
+
+ finalizeDict: function(){
+ this.dict = this.sortuniq(this.dict);
+ },
+
+ addFiles: function(files, finalize){
+ finalize = finalize===undefined || finalize;
+
+ for (var i = 0; i < 1; i++) {
+ words = "ก.ก.\nก.ก.น.\nก.ข.ค.\nก.ค.\nก.จ.\nก.ช.น.\nก.ฌ.\nก.ต.\nก.ต.ง.\nก.ต.ช.\nก.ตร.\nก.ท.\nก.น.ช.\nก.บช.\nก.บถ.\nก.ป.ส.\nก.พ.\nก.ม.\nก.ย.\nก.ร.\nก.ล.ต.\nก.ว.\nก.ศ.ว.\nก.ส.ท.\nก.ส.ธ.\nก.ส.อ.\nก.อ.\nกก.ตชด.\nกก.ตร.น.\nกก.ภ.จว.\nกก.รสช.\nกกบ.ขส.ทบ.\nกกล.รพน.\nกง.กห.\nกง.ทบ.\nกง.ทร.\nกซข.ป.\nกซม.ป.\nกทม.กรุงเทพมหานคร\nกบ.ทบ.\nกป.สป.\nกพ.ทบ.\nกพ.ทร.\nกพ.ทหาร\nกร.ทบ.\nกรป.กลาง\nกรอ.พอ.\nกศ.ด.\nกศ.บ.\nกศ.บป.\nกศ.ม.\nกษ.ด.\nกษ.บ.\nกษ.ม.\nกส.ด.\nกส.ทบ.\nกส.บ.\nกส.ม.\nกอ.ปค.\nกอ.รพน.\nกอ.รมน.\nกอ.รสต.\nข.ต.ว.\nขว.ทบ.\nขว.ทร.\nขว.ทหาร\nขส.ทบ.\nขส.ทร.\nขส.ทอ.\nค.ด.\nค.บ.\nค.พ.ศ.\nค.ม.\nค.ร.น.\nค.ร.ฟ.\nค.ร.ม.\nค.ศ.\nค.อ.ด.\nค.อ.บ.\nค.อ.ม.\nคศ.ด.\nคศ.บ.\nคศ.ม.\nง.ด.\nจ.จ.\nจ.จ.จ.\nจ.ช.\nจ.ต.\nจ.ท.\nจ.ป.ร.\nจ.ม.\nจ.ศ.\nจ.ส.ต.\nจ.ส.ท.\nจ.ส.อ.\nจ.อ.\nจ.อ.ร.\nจ.๑๘\nจก.ธน.\nจก.สน.\nช.ค.\nช.ค.บ.\nช.พ.ค.\nช.ส.\nช.ส.ค.\nฌ.ป.ค.\nฌ.ศ.ร.\nฌ.ส.อ.\nฐท.สห.\nด.ช.\nด.ญ.\nด.ต.\nด.ศ.ค.\nด.ศ.ร.\nดย.ทร.\nต.ก.\nต.ค.\nต.จ.\nต.จ.ว.\nต.ช.\nต.ต.\nต.บ.\nต.ม.\nต.ร.\nต.ศ.ร.\nต.ห.\nต.อ.\nต.อ.จ.\nตร.กม.\nตร.ซม.\nตร.ต.\nตร.ทล.\nตร.น.\nตร.ปม.\nตร.ภ.\nตร.ม.\nตร.รฟ.\nตร.ว.\nตร.ส.\nตร.สข.\nท.จ.\nท.จ.ว.\nท.ช.\nท.ญ.\nท.ด.\nท.ท.ท.\nท.ทบ.\nท.บ.\nท.พ.\nท.ม.\nท.ศ.\nทก.ด.\nทก.บ.\nทก.ม.\nทส.ปช.\nทส.รมว.กห.\nทุ.ส.นิ.ม.\nธ.ก.ส.\nธ.ค.\nธ.ญ\nธ.บ.\nน.ช.\nน.ญ.\nน.ด.\nน.ต.\nน.ท.\nน.น.\nน.บ.\nน.บ.ท.\nน.ป.ท.\nน.พ.\nน.ม.\nน.ร.\nน.ว.\nน.ศ.\nน.ส.\nน.ส.พ.\nน.ส.๓\nน.สพ.\nน.อ.\nนปพ.ภ.\nนศ.ด.\nนศ.บ.\nนศ.ม.\nบ.ก.\nบ.ข.ส.\nบ.ช.\nบ.ด.ท.\nบ.ตร.\nบ.ภ.\nบ.ม.\nบก.จร.\nบก.ตชด.\nบก.ตม.\nบก.ทล.\nบก.น.\nบก.ป.\nบก.ปค.\nบก.ปม.\nบก.ภ.เขต\nบก.รน.\nบก.รฟ.\nบก.ร้อย.ตชด.\nบก.ส.\nบกข.ป.\nบจพ.ป.\nบช.ก.\nบช.ด.\nบช.ตชด.\nบช.น.\nบช.บ.\nบช.ปส.\nบช.ภ.\nบช.ม.\nบชท.ป.\nบชน.ป.\nบชส.ป.\nบธ.ด.\nบธ.บ.\nบธ.ม.\nบนท.ป.\nบนอ.ป.\nบปช.ป.\nป.กท.\nป.กศ.\nป.กศ.สูง\nป.จ.\nป.จ.ว.\nป.ช.\nป.ธ.\nป.ป.\nป.ป.ก.\nป.ป.ช.\nป.ป.ป.\nป.ป.ร.\nป.ป.ส.\nป.พ.\nป.พ.พ.\nป.พย.\nป.ม.\nป.ม.ก.\nป.ม.ช.\nป.ม.ธ.\nป.ม.ศ.\nป.ม.อ.\nป.ร.ร.๔\nป.ร.ร.๕\nป.ร.ร.๖\nป.ล.\nป.ว.พ.\nป.วิ.อ.\nป.ส.ส.\nป.อ.\nป.อ.ร.ส.\nป.๑\nปม.วส.\nปอ.พ.\nผกก.ภ.\nผช.ผอ.\nผต.มท.\nผบ.ตร.\nผบ.ทบ.\nผบ.ทร.\nผบ.ทสส.\nผบ.ทอ.\nผบก.น.\nผบก.ป.\nผบก.ปค.\nผบก.ปม.\nผบก.ภ.\nผบช.ก.\nผบช.ตชด.\nผบช.น.\nผบช.ภ.\nผว.กทม.\nผอ.ปจ.\nพ.ก.ง.\nพ.กศ.\nพ.ข.ต.\nพ.ค.\nพ.ค.ช.\nพ.ค.ว.\nพ.ค.ศ.\nพ.จ.ต.\nพ.จ.ท.\nพ.จ.อ.\nพ.ช.\nพ.ช.ค.\nพ.ด.\nพ.ต.\nพ.ต.ต.\nพ.ต.ท.\nพ.ต.อ.\nพ.ต.อ.พิเศษ\nพ.ท.\nพ.บ.\nพ.ป.\nพ.ภ.ม.\nพ.ม.\nพ.ม.ช.\nพ.ย.\nพ.ร.ก.\nพ.ร.ฎ.\nพ.ร.ต.\nพ.ร.ธ.\nพ.ร.บ.\nพ.ศ.\nพ.ศ.บ.\nพ.ส.ร.\nพ.ส.ล.\nพ.อ.\nพ.อ.ต.\nพ.อ.ท.\nพ.อ.พิเศษ\nพ.อ.อ.\nพณ.ด.\nพณ.บ.\nพณ.ม.\nพธ.ด.\nพธ.บ.\nพธ.ม.\nพบ.ด.\nพบ.บ.\nพบ.ม.\nพย.ด.\nพย.บ.\nพย.ม.\nพล.จ.\nพล.ต.\nพล.ต.จ.\nพล.ต.ต.\nพล.ต.ท.\nพล.ต.อ.\nพล.ท.\nพล.ปตอ.\nพล.ม.\nพล.ม.๒\nพล.ร.จ.\nพล.ร.ต.\nพล.ร.ท.\nพล.ร.อ.\nพล.อ.\nพล.อ.จ.\nพล.อ.ต.\nพล.อ.ท.\nพล.อ.อ.\nพลา.ทร.\nพศ.ด.\nพศ.บ.\nพศ.ม.\nพอ.สว.\nภ.ง.ด.\nภ.ง.ด.๙\nภ.ด.\nภ.บ.\nภ.บ.ท.๕\nภ.ป.ร.\nภ.พ.\nภ.ม.\nภ.สถ.บ.\nม.ค.\nม.จ.\nม.ป.ท.\nม.ป.ป.\nม.ป.พ.\nม.ร.ว.\nม.ศ.\nม.อ.\nม.อ.ปัตตานี\nมิ.ย.\nมี.ค.\nยศ.ทบ.\nยศ.ทร.\nยศ.ทอ.\nร.ง.\nร.ด.\nร.ต.\nร.ต.ต.\nร.ต.ท.\nร.ต.อ.\nร.ท.\nร.น.\nร.บ.\nร.พ.\nร.ฟ.ล.\nร.ย.ล.\nร.ย.ส.ท.\nร.ล.\nร.ศ.\nร.ส.พ.\nร.อ.\nรป.ม.\nรร.จปร.\nรร.จอ.\nรร.ชท.\nรร.ตท.\nรร.นร.\nรร.นรต.\nรร.นอ.\nล.ญ.\nล.ว.\nลส.ชบ.\nว.ค.\nว.ฉ.\nว.ช.\nว.ด.ป.\nว.ป.ถ.\nวท.บ.\nศ.บ.\nศ.ป.ก.\nศ.ศ.ป.\nศฝร.ภ.\nศศ.บ.\nศษ.บ.\nศส.บ.\nส.ก.\nส.ก.ศ.ท.\nส.ค.\nส.ค.1\nส.ค.ร.\nส.ค.ส.\nส.ต.\nส.ต.ต.\nส.ต.ท.\nส.ต.อ.\nส.ท.\nส.ทร.\nส.ป.ช.\nส.ป.ส.ท.\nส.ป.อ.\nส.ร.\nส.ล.น.\nส.ว.\nส.ว.ท.\nส.ว.ส.ท.\nส.ส.\nส.ส.ท.\nส.ส.ร.\nส.ห.\nส.อ.\nสถ.บ.\nสนง.สสอ.\nสพ.ญ.\nสพ.บ.\nสว.จร.\nสว.ธร.\nสว.ส.\nสว.สป.\nสว.สส.\nสว.อก.\nสส.บ.\nสุ.จิ.ปุ.ลิ.\nห.ร.ม.\nอ.ก.ค.\nอ.ก.จ.\nอ.จ.\nอ.ช.พ.\nอ.ตร.\nอ.บ.\nอ.ส.ท.\nอ.ส.ม.ท.\nอ.ส.ย.\nอ.อ.ป.\nอส.รด.\nอุ.อา.ก.ส.\nฮ.จ.\nฮ.ท.\nฮ.ฝ.\nฮ.ล.\nฮ.ศ.\nเม.ย.\n\nกรีนิช\nกลันตัน\nกัลกัตตา\nกัวลาลัมเปอร์\nกัศมีร์\nกาฐมาณฑุ\nโกลกาตา\nควิเบก\nคอนเนตทิคัต\nคาบูล\nคุชราต\nคุนหมิง\nเคนตักกี\nเคนทักกี\nเคมบริดจ์\nแคชเมียร์\nแคนซัส\nแคนเบอร์รา\nแคโรไลนา\nแคลิฟอร์เนีย\nโคเปนเฮเกน\nโคลัมโบ\nโคโลราโด\nไครสต์เชิร์ช\nไคโร\nจาการ์ตา\nจำปาศักดิ์\nเจนไน\nเจนีวา\nเจ้อเจียง\nฉงชิ่ง\nเฉิงตู\nชานตง\nชิคาโก\nเชนไน\nเชอร์โนบิล\nซัปโปโร\nซานมารีโน\nซาบาห์\nซาราเยโว\nซาราวัก\nซิดนีย์\nซีอาน\nซีแอตเทิล\nซูริก\nซูริค\nเซเชลส์\nเซนได\nเซี่ยงไฮ้\nโซเฟีย\nโซล\nโซโลมอน\nไซ่ง่อน\nไซบีเรีย\nดัลลัส\nดาโคตา\nดานัง\nดีทรอยต์\nดูไบ\nเดนเวอร์\nเดลาแวร์\nเดียนเบียนฟู\nโดเวอร์\nโดฮา\nไดฟุกุ\nไดฟูกุ\nตรังกานู\nตริโปลี\nตูวาลู\nเตหะราน\nโตเกียว\nโตรอนโต\nทมิฬนาฑู\nทริโปลี\nทิเบต\nเทกซัส\nเท็กซัส\nเทนเนสซี\nเทลอาวีฟ\nแทสเมเนีย\nโทรอนโต\nไทเป\nธากา\nนางาซากิ\nนาริตะ\nนิวเจอร์ซีย์\nนิวเดลี\nนิวยอร์ก\nนิวยอร์ค\nนิวแฮมป์เชียร์\nเนบราสกา\nเนแบรสกา\nเนวาดา\nบรัสเซลส์\nบราซิเลีย\nบอมเบย์\nบอสตัน\nบังกาลอร์\nบังคาลอร์\nบูคาเรสต์\nบูดาเปสต์\nเบงกาซี\nเบนกาซี\nเบรุต\nเบลเกรด\nเบอร์ลิน\nแบกแดด\nปอยเปต\nปะลิส\nปะหัง\nปักกิ่ง\nปัญจาบ\nปัฏนา\nปารีส\nปีนัง\nเประ\nเปียงยาง\nพนมเปญ\nพระตะบอง\nพะโค\nพะสิม\nพาราณสี\nพิหารี\nเพนซิลวาเนีย\nเพนซิลเวเนีย\nฟรานซ์\nฟลอริดา\nฟิลาเดลเฟีย\nฟุกุชิมะ\nฟุกุชิมา\nฟุกุโอกะ\nฟูกูโอกะ\nแฟรงก์เฟิร์ต\nมอสโก\nมะนิลา\nมะละแหม่ง\nมัณฑะเลย์\nมัทราส\nมาดริด\nมิชิแกน\nมินนิโซตา\nมิยางิ\nมิลาน\nมิวนิก\nมิสซูรี\nมุมไบ\nเมน\nเมลเบิร์น\nเมาะตะมะ\nเมาะลำเลิง\nแมนจูเรีย\nแมนเชสเตอร์\nแมนฮัตตัน\nแมริแลนด์\nแมรีแลนด์\nแมสซาชูเซตส์\nยะไข่\nย่างกุ้ง\nยูทาห์\nยูนนาน\nเยรูซาเล็ม\nโยโกฮามา\nริยาด\nรีโอเดจาเนโร\nโรดไอแลนด์\nลอนดอน\nลอสแองเจลิส\nลาปาซ\nลาสเวกัส\nลิสบอน\nลุยเซียนา\nโลซาน\nโลซานน์\nวอชิงตัน\nวอร์ซอ\nวิสคอนซิน\nเวนิส\nเวลส์\nเวอร์จิเนีย\nเวอร์มอนต์\nเวียงจันทน์\nเวียนนา\nแวนคูเวอร์\nไวโอมิง\nสกอตแลนด์\nสก็อตแลนด์\nสตอกโฮล์ม\nสลังงอร์\nเสฉวน\nเสียมราฐ\nเสียมเรียบ\nหงสา\nหงสาวดี\nหนานไห่\nหลวงพระบาง\nหูเป่ย\nหูเป่ย์\nหูหนาน\nเหอเป่ย\nเหอเป่ย์\nเหอหนาน\nอชันตา\nอลาสกา\nอวันตี\nออริกอน\nออสโล\nอะแลสกา\nอัตตะปือ\nอัมมาน\nอัมสเตอร์ดัม\nอัสสัม\nอาบูดาบี\nอาร์คันซอ\nอินเดียนา\nอิบารากิ\nอิลลินอยส์\nอิสตันบูล\nอิสลามาบัด\nอุรุมชี\nอูลานบาตอร์\nเอดินบะระ\nเอเธนส์\nแอตแลนตา\nแอริโซนา\nแอลเจียร์\nโอคลาโฮมา\nโอค็อตสค์\nโอกินาวา\nโอซากา\nโอริสสา\nโอเรกอน\nโอไฮโอ\nไอดาโฮ\nไอโอวา\nฮอนโนลูลู\nฮานอย\nฮาเนดะ\nฮาราเร\nฮาวาย\nฮิโรชิมา\nฮุสตัน\nเฮลซิงกิ\n\nมกรา\nกุมภา\nมีนา\nเมษา\nพฤษภา\nมิถุนา\nกรกฎา\nสิงหา\nกันยา\nตุลา\nพฤศจิกา\nธันวา\nเอ\nบี\nซี\nดี\nอี\nเอฟ\nจี\nเอช\nไอ\nเจ\nเค\nแอล\nเอ็ม\nเอ็น\nโอ\nพี\nคิว\nอาร์\nเอส\nที\nยู\nวี\nดับเบิล\nดับบลิว\nเอ็กซ์\nเอ๊กซ์\nวาย\nแซด\nแอลฟา\nแอลฟ่า\nเบตา\nเบต้า\nแกมมา\nแกมม่า\nเดลตา\nเดลต้า\nโอเมกา\nโอเมก้า\nเมกะ\nกิกะ\nนาโน\nไมโคร\n\nกรรมาชน\nกรอบรูป\nกระดี๊กระด๊า\nกระบับ\nกราวนด์\nกรีน\nกรุ๊ป\nกฤษณ์\nกลาส\nก๊วน\nกษัตริยา\nกษัตริยาธิราช\nก่อนหน้า\nกะบับ\nกับดัก\nกัมมันตะ\nก๊าก\nก๋ากั่น\nกาญจน์\nกาญจนาภิเษก\nกามิกาเซ่\nการันตี\nกาหลิบ\nกิฟท์\nกิมจิ\nกีวี\nกึ๊ก\nกึ๋ย\nกุนซือ\nกุมภาพันธ์\nกู๋\nเกจิ\nเกมส์\nเกย์\nเกรด\nเกรย์\nเกสต์เฮาส์\nเก๊ะ\nเก๋ากี้\nเกิร์ล\nแกงค์\nแกรนด์\nแกสโซฮอล์\nแก๊สโซฮอล์\nโกเต็กซ์\nโกลด์\nโกะ\nโก๊ะ\nไกด์\nขั้นตอน\nเขวี้ยง\nคณาญาติ\nครัวซอง\nครัวซองต์\nคร่ำครวญ\nครีเอทีฟ\nครูเสด\nคลับ\nคลาสสิก\nคลิตอริส\nคลิป\nความหมาย\nควิก\nควีน\nคองเกรส\nคอนซูเมอร์\nคอนเซปต์\nคอนเซ็ปต์\nคอนโด\nคอนโดมิเนียม\nคอนเทนเนอร์\nคอนแทค\nคอนแท็ค\nคอนโทรล\nคอนเฟิร์ม\nคอปเตอร์\nคอมพ์\nคอมเพล็กซ์\nคอมมอนส์\nคอมเมนท์\nคอมเมนต์\nคอร์ป\nคอร์ปอเรชั่น\nคอร์รัปชัน\nคอร์รัปชั่น\nคอรัปชัน\nคอรัปชั่น\nคอร์ส\nคอลเล็กชั่น\nคอลัมน์\nคอลัมนิสต์\nคัตเอาต์\nคันคาก\nคันถธุระ\nคันธาระ\nคันยิ\nคัสตาร์ด\nคาราโอเกะ\nคีตกวี\nคีตปฏิภาณ\nคีตราชัน\nคาปูชิโน\nคามิคาเซ่\nคาเฟ่\nคาร์\nคาร์โก้\nคาราเมล\nคาแรกเตอร์\nคาแร็กเตอร์\nคาแรคเตอร์\nคาแร็คเตอร์\nคาวบอย\nคาสิโน\nคิกขุ\nคิวบิก\nคูลเลอร์\nเคบับ\nเครป\nเคลม\nเคลียร์\nเคลื่อนย้าย\nเคส\nเคอร์ฟิว\nแคชเชียร์\nแคทวอล์ค\nแคนดิเดต\nแคนตาลูป\nแคนยอน\nแคนู\nแคป\nแคมป์\nแคมปัส\nแคมเปญ\nแคร์\nแครกเกอร์\nแคร็กเกอร์\nแครอท\nแคสต์\nแคสติง\nแคสติ้ง\nโค้ก\nโค้ช\nโคโยตี\nโคโยตี้\nโครนา\nโคอะล่า\nโคอาลา\nโคอาล่า\nไคลแมกซ์\nไคลแม็กซ์\nงั้น\nง่าว\nงี้\nเง็ง\nโง่เขลา\nไง\nจตุคาม\nจ๊อกกี้\nจอหงวน\nจังโก้\nจัมโบ้\nจ๊าบ\nจารกรรม\nจารชน\nจิ๊ก\nจิ๊กโก๋\nจิ๊กซอว์\nจิตพิสัย\nจิตเภท\nจีดีพี\nจึ๊ก\nจุ๊ย\nจูน\nจูเนียร์\nเจ๊\nเจได\nเจ็ต\nเจล\nเจ๊าะแจ๊ะ\nเจี๊ยว\nแจ็กเก็ต\nแจ๊กเก็ต\nแจ็กพอต\nแจ็กพ็อต\nแจ๊กพอต\nแจ๊กพ็อต\nแจม\nแจ๊ส\nโจ๋\nฉลุย\nเฉิ่ม\nชนะเลิศ\nช็อค\nช็อต\nช็อป\nช็อปปิ้ง\nช็อปเปอร์\nชะโนด\nชัตเตอร์\nชัวร์\nชาร์จ\nชาร์ต\nชาร์ป\nชินบัญชร\nชิฟฟอน\nชีส\nชีอะห์\nเช็ก\nเช็งเม้ง\nเชฟ\nเชลียร์\nเชอร์รี่\nแชเชือน\nแช่แข็ง\nแชมป์\nแชมปิยอง\nแชมเปญ\nแชมเปี้ยน\nแชมพู\nโชว์รูม\nโชห่วย\nใช้งาน\nไชน่า\nซ้อ\nซอมบี้\nซะ\nซังเต\nซันตาคลอส\nซัพพลาย\nซัพพลายเออร์\nซัมเมอร์\nซากุระ\nซาดิสต์\nซาดิสม์\nซาตาน\nซานตาคลอส\nซาฟารี\nซาบะ\nซามูไร\nซาร์\nซาร์ดีน\nซาเล้ง\nซิง\nซิ่ง\nซิงเกิล\nซิตี\nซิตี้\nซินโดรม\nซิม\nซิ้ม\nซิมโฟนี\nซิมโฟนี่\nซิลเวอร์\nซี้\nซี้ซั้ว\nซีดาน\nซีน\nซีนีเพล็กซ์\nซีเนียร์\nซีร็อกซ์\nซีรีส์\nซีเรียส\nซีอีโอ\nซื่อบื้อ\nซุนหนี่\nซุปเปอร์\nซูชิ\nซูเปอร์\nซูม\nซูโม่\nซูเอี๋ย\nซูฮก\nเซ็กซ์\nเซ็กซี่\nเซ็กส์\nเซนเซอร์\nเซ็นเซอร์\nเซนเตอร์\nเซ็นเตอร์\nเซ็นทรัล\nเซนส์\nเซ่นไหว้\nเซฟตี้\nเซรามิก\nเซลส์\nเซลส์แมน\nเซอร์\nเซอร์ไพรส์\nเซอร์วิส\nเซาท์\nเซี้ยว\nแซ็ก\nแซกโซโฟน\nแซ็กโซโฟน\nแซนด์วิช\nแซมบ้า\nแซลมอน\nแซว\nโซเชียล\nโซน\nโซนี่\nโซลาร์\nโซโล\nโซโล่\nญาณทัสสนะ\nดยุก\nดยุค\nดร็อป\nดรัมเมเยอร์\nดรามา\nดราม่า\nดอกเตอร์\nด็อกเตอร์\nดัมพ์\nดั๊มพ์\nดาวน์\nดิกชันนารี\nดิสเครดิต\nดีกรี\nดีเจ\nดีไซน์\nดีไซน์เนอร์\nดีไซเนอร์\nดีเบต\nดีพาร์ตเมนต์\nดีพาร์ตเมนท์\nดีพาร์ทเมนต์\nดีพาร์ทเมนท์\nดีมานด์\nดีล\nดีลเลอร์\nดีเลย์\nเดชานุภาพ\nเดบิต\nเดโม\nเดย์\nเด้อ\nเดอะ\nเด๊ะ\nเดี้ยง\nเดี๊ยะ\nแดนซ์\nแดนเซอร์\nแดรี่\nโดนัท\nโดมิโน\nโดรายากิ\nไดเอ็ต\nตถตา\nตนเอง\nตรวจทาน\nตรวจสอบ\nตอกย้ำ\nต๊อง\nต่อยอด\nต่อรอง\nตะหงิด\nตังค์\nตันเถียน\nตัวตน\nตัวเอง\nตาปรือ\nต้าอ่วย\nติงต๊อง\nติ๋ม\nติ่มซำ\nติว\nติวเตอร์\nตี๋\nตื้บ\nตุ๊ก\nตุ๊กตุ๊ก\nตุ๊ด\nตุ๋ย\nตู้เซฟ\nเต๊ะ\nเตี๊ยม\nแตงกวา\nแตงโม\nแต๋ว\nโต๋เต๋\nโต๊ะจีน\nไตรมาส\nถ่ายทำ\nถูกต้อง\nทงคัตสึ\nทริป\nทรู\nทอม\nท็อป\nทอร์นาโด\nทอล์ค\nทักซิโด\nทันตกรรม\nทันตแพทยศาสตร์\nทับซ้อน\nทัวร์\nทัวร์นาเมนต์\nทัวร์นาเมนท์\nทัวริสต์\nทาเลนต์\nทาวน์\nทาวน์เฮาส์\nทำงาน\nทิป\nทิพยสมบัติ\nทิวลิป\nทีรามิสุ\nทีวี\nทูน่า\nเท็กซ์\nเทค\nเทคโน\nเทคโนแครต\nเทควันโด\nเทป\nเทรด\nเทรนด์\nเทรนเนอร์\nเทรลเลอร์\nเทรลเล่อร์\nเทเลกราฟ\nเทวบัญชา\nเทวบุตร\nเทวา\nเทวาธิราช\nเทโวโรหนะ\nเทอร์โบ\nเที่ยงคืน\nเที่ยงวัน\nเทียมทาน\nแทกติค\nแทคติค\nแทงกั๊ก\nแทงโก้\nโทมาฮอก\nโทมาฮอว์ก\nโทมาฮอว์ค\nโทร\nโทรโข่ง\nไทม์\nไทยแลนด์\nไทเฮา\nธรรมา\nธรรมาภิบาล\nธัมโม\nธีม\nธุรกรรม\nธุหร่ำ\nเธค\nนพมาศ\nนรีแพทย์\nน็อก\nน็อค\nน้องใหม่\nนอมินี\nนอร์ท\nน่ะ\nนางแบบ\nนาฏยศาลา\nนายแบบ\nนายพราน\nนินจา\nนิรันดร์\nนิว\nนิวส์\nนู้ด\nเนอะ\nเนิร์สเซอรี\nเนิร์สเซอรี่\nเนี้ยบ\nโนติส\nไนท์\nไนน์\nบรรพชน\nบร็อกโคลี\nบร็อคโคลี\nบรา\nบริกร\nบริวเวอรี่ส์\nบลอนด์\nบลูเบอร์รี\nบลูเบอร์รี่\nบ๊วย\nบอกซ์\nบ็อกซ์\nบ๊อกซ์\nบอดี้\nบอนด์\nบ๊อบ\nบอมบ์\nบ๋อย\nบอยคอต\nบอยคอตต์\nบอร์ด\nบังเกอร์\nบัตเตอร์\nบัลลาสต์\nบัส\nบาบูน\nบาร์บีคิว\nบาร์บี้\nบาลานซ์\nบิ๊ก\nบิล\nบึม\nบึ้ม\nบุญคุณ\nบุ๋น\nบุปผา\nบู๊\nบูชิโด\nบูติก\nบูติค\nบูม\nเบเกอรี่\nเบญจมบพิตร\nเบตาดีน\nเบนโตะ\nเบนโล\nเบบี้\nเบลอ\nเบอร์เกอร์\nเบอร์รี\nเบิร์ด\nเบิร์น\nแบ็กโฮ\nแบคโฮ\nแบด\nแบต\nแบนเนอร์\nแบรนด์\nแบล็ก\nแบล็ค\nไบโอ\nโบกี้\nโบตั๋น\nโบ้ย\nโบรกเกอร์\nโบรชัวร์\nโบว์\nโบว์ลิ่ง\nไบเบิล\nปฏิสัมพันธ์\nป๊อก\nปอดแหก\nป๊อป\nป๋อหลอ\nปักขคณนา\nปัจเจกชน\nปัจฉิมนิเทศ\nป๊า\nป๋า\nป่าไม้\nปาร์ตี้\nปาสกาล\nปาสคาล\nปาสเตอร์\nปิกอัพ\nปิ๊ง\nปิโตรเคมี\nปิยมิตร\nปึ้ก\nปูอัด\nเปโซ\nเป็นไง\nเปปเปอร์มินต์\nเปเปอร์\nเปราะบาง\nเป๊ะ\nเป่ายิงฉุบ\nเป่ายิ้งฉุบ\nเปียโน\nแป้ก\nแป๋ว\nแป๊ะเจี๊ยะ\nโปร\nโปรเจกต์\nโปรเจ็กต์\nโปรเจกเตอร์\nโปรเจ็กเตอร์\nโปรเจคท์\nโปรเจ็คท์\nโปรดักชั่น\nโปรดิวเซอร์\nโปรโมชั่น\nโปรโมต\nโปรโมเตอร์\nโปรโมท\nโปลิศ\nโปสเตอร์\nผลไม้\nผลักดัน\nผ้าห่ม\nผิดพลาด\nผู้นำ\nแผดเผา\nเฝอ\nพงษ์\nพริตตี้\nพรีเซนต์\nพรีเซ็นเตอร์\nพรีเมียม\nพรีเมียร์\nพฤหัส\nพล็อต\nพลาซ่า\nพลานุภาพ\nพ่อค้า\nพอเพียง\nพะเรอ\nพันธกิจ\nพันธุวิศวกรรม\nพาร์\nพาร์ตเนอร์\nพาร์ทเนอร์\nพาวเวอร์\nพาสเจอร์ไรส์\nพาสตา\nพาสต้า\nพาสปอร์ต\nพาเหรด\nพิซซ่า\nพีเรียด\nพุดดิ้ง\nพุทธภูมิ\nพุทธศตวรรษ\nพุทโธ\nพูล\nเพทนาการ\nเพนกวิน\nเพนตากอน\nเพรส\nเพรียวบาง\nเพลซ\nเพลท\nเพลย์บอย\nเพียบแปร้\nเพียว\nเพาเวอร์\nแพกเกจ\nแพ็ค\nแพตเทิร์น\nแพทเทิร์น\nแพทยสภา\nแพนงเชิญ\nแพนดา\nแพนด้า\nแพลน\nโพลล์\nโพลารอยด์\nโพสต์\nไพลิน\nฟยอร์ด\nฟรังก์\nฟรุต\nฟลอร์\nฟลุก\nฟลุค\nฟลุต\nฟลุท\nฟอยล์\nฟอร์ม\nฟันด์\nฟาวล์\nฟาสต์ฟู้ด\nฟินิกซ์\nฟิวเจอร์\nฟีด\nฟีเวอร์\nฟุตบาท\nเฟรช\nเฟรชชี่\nเฟรม\nเฟมินิสต์\nเฟส\nเฟอร์นิเจอร์\nเฟอร์รี่\nเฟิร์ม\nเฟี้ยวฟ้าว\nแฟกซ์\nแฟ็กซ์\nแฟนซี\nแฟนตาซี\nแฟ้บ\nแฟร์\nแฟรนไชส์\nแฟรี\nแฟรี่\nแฟลช\nแฟล็ต\nโฟน\nโฟม\nโฟล์ค\nไฟต์\nไฟแนนซ์\nไฟลต์\nไฟลท์\nภควัทคีตา\nภควัมบดี\nภควัมปติ\nภคันทลาพาธ\nภววิสัย\nภารตะ\nภูมิทัศน์\nม้ง\nมวลชน\nมยุราภิรมย์\nมลภาวะ\nมหภาค\nมหาอุปราชา\nมอคคา\nมอคค่า\nมอนสเตอร์\nม็อบ\nมอบตัว\nมอยส์เจอไรเซอร์\nมอลล์\nมะกัน\nมั้ง\nมัฟฟิน\nมั้ย\nม้านั่ง\nมาเฟีย\nมาม่า\nมายองเนส\nมายาคติ\nมาร์ก\nมาร์เก็ต\nมาร์เก็ตติ้ง\nมาร์ค\nมาร์จิน\nมาร์ช\nมาร์ต\nมาร์ท\nมาราธอน\nม้าหินอ่อน\nมินต์\nมินท์\nมินิ\nมิลค์\nมิวสิค\nมิสซัง\nมิสไซล์\nมิสเตอร์\nมือถือ\nมุมมอง\nเมคอัพ\nเมจิก\nเมจิค\nเมทัล\nเมเปิล\nเมาท์\nเมี่ยงคำ\nแมกกาซีน\nแม็กกาซีน\nแมคเคอเรล\nแม่ค้า\nแมชชีน\nแมชีน\nแมนชั่น\nแมมบ้า\nแมมโบ้\nโมจิ\nโมเดล\nโมเดิร์น\nโมเต็ล\nโมโนเรล\nโมหจริต\nไมค์\nไมเกรน\nยนตรกรรม\nยอมรับ\nยะเยือก\nยังไง\nยากูซ่า\nยาวี\nยิม\nยิว\nยุวทูต\nยูโทเปีย\nยูโร\nยูวี\nเยน\nเยลลี่\nเย้ว\nเยอบีรา\nเยอบีร่า\nเยอร์บีรา\nเยอร์บีร่า\nแยมโรล\nโยเกิร์ต\nโยโย่\nรวมมิตร\nร็อค\nร็อคเก็ต\nรองรับ\nรอมฎอน\nรอยัลตี้\nระโงก\nรันเวย์\nรัม\nรากหญ้า\nราชบัณฑิตยสถาน\nราชานุญาต\nราชานุสาวรีย์\nรามเทพ\nรามาธิบดี\nรามายณะ\nราเม็ง\nราเมน\nรายชื่อ\nราสเบอร์รี\nริกเตอร์\nริคเตอร์\nรีไซเคิล\nรีดไถ\nรีทัช\nรีเทิร์น\nรีไทร์\nรีแบรนด์\nรีพอร์ท\nรีโมต\nรีโมท\nรีวิว\nรีสอร์ต\nรีสอร์ท\nรีเสิร์ช\nรุมบ้า\nรุสโซ\nรูบิก\nรูบิค\nเรซิน\nเรซิ่น\nเรดิโอ\nเรต\nเรตติ้ง\nแรงใจ\nแรงดูด\nแรงผลัก\nแรลลี\nแรลลี่\nโรดแมป\nโรเนียว\nโรแมนติก\nโรแมนติค\nโรล\nโรลออน\nไรเฟิล\nล็อกเกอร์\nลอจิสติกส์\nล็อต\nล็อบบี้\nลอร์ด\nล้มเหลว\nละติน\nละอ่อน\nลาซานญ่า\nลาติน\nลาเต้\nลานีญา\nลามะ\nลิมิต\nลิมูซีน\nลิสต์\nลีก\nลีด\nลีดเดอร์\nลีเมอร์\nลีลาวดี\nลุค\nลูกชาย\nลูกสาว\nเลกเชอร์\nเลคเชอร์\nเลดี้\nเลสเบี้ยน\nเลิฟ\nแลนด์\nแล็บ\nโลโก้\nโลชั่น\nไลท์\nไลน์\nไลฟ์\nวนาราม\nวราราม\nวโรกาส\nว้อดก้า\nวอเตอร์\nวอฟเฟิล\nว้อย\nวอร์ม\nวอร์มอัพ\nวอร์รูม\nวอล์ก\nวอล์ค\nวอลซ์\nวอลนัต\nวอลนัท\nวอลล์\nว่ะ\nวันเวย์\nวัสสา\nวาซาบิ\nวาทกรรม\nวาทะ\nวานิลลา\nวานิลา\nวาฟเฟิล\nวาริชศาสตร์\nว้าว\nวัคค์\nวัจนะ\nวาไรตี้\nวิก\nวิดีโอ\nวิทย์\nวิน\nวิป\nวิปปิ้ง\nวิภัชภาค\nวิว\nวิลล์\nวิลเลจ\nวีเจ\nวีซ่า\nวีดิทัศน์\nวีน\nวีไอพี\nวืด\nเวณิกา\nเวเฟอร์\nเวสต์\nเวอร์\nเวิร์ก\nเวิร์กช็อป\nเวิร์ค\nเวิร์ลด์\nเวิลด์\nแวมไพร์\nไวกิ้ง\nไวเบรเตอร์\nไวอะกร้า\nไวอากร้า\nศากยบุตร\nศิรินทร์\nศิลปวัฒนธรรม\nศิลปากร\nศิวิไลซ์\nศึกษาศาสตร์\nสกรัม\nสกาย\nสกู๊ป\nสเกตช์\nสเก็ตช์\nสคริปต์\nสแควร์\nสงบสุข\nสจ๊วต\nสตรอเบอร์รี\nสตรอเบอรี\nสตรอว์เบอร์รี\nสตริง\nสต็อก\nสต๊อก\nสต็อค\nสต๊อค\nสตอรี\nสตาร์\nสตาร์ท\nสติกเกอร์\nสติ๊กเกอร์\nสตีล\nสตูดิโอ\nสเตชัน\nสเตชั่น\nสเตเดียม\nสเตนเลส\nสเต็ป\nสเตย์\nสเตริโอ\nสเตอริโอ\nสแตนดาร์ด\nสแตนเลส\nสโตน\nสโตร์\nสไตรค์\nสไตล์\nสถาปัตย์\nสไนเปอร์\nสปอต\nสป็อต\nสปอนเซอร์\nสปอร์ต\nสปา\nสปาย\nสปิริต\nสเปก\nสเปค\nสไปเดอร์\nสมณพราหมณ์\nสมาพันธ์\nสมิติเวช\nสโรชา\nสลัม\nสแล็ก\nสโลแกน\nสโลว์\nสไลด์\nสวีท\nสหรัฐ\nสหัชญาณ\nสหัสวรรษ\nสะกอม\nสะเด่า\nสะบึม\nสะบึมส์\nสะออน\nสังโฆ\nสะโหลสะเหล\nสันทนาการ\nสัมนา\nสามช่า\nสามแยก\nสารขัณฑ์\nสี่แยก\nสึนามิ\nสุนทรีย์\nสุริยยาตร\nสุริยยาตร์\nสุหนี่\nเสกสรรค์\nเสพติด\nเสือโคร่ง\nหงวน\nหน่อมแน้ม\nหมวย\nหมั่นโถว\nหม่านโถว\nหมายปอง\nหมิง\nหยวน\nหลวงตา\nหลวงปู่\nหลวงพี่\nหล่อฮังก้วย\nหลินจือ\nห่วย\nเห็นด้วย\nเหมย\nเห่ย\nเหี่ยวย่น\nแหม็บ\nแหวว\nโหงว\nโหงวเฮ้ง\nโหลน\nโหลยโท่ย\nไหง\nไหร่\nอพาร์ตเมนต์\nอพาร์ตเมนท์\nอพาร์ทเมนต์\nอพาร์ทเมนท์\nอมาตยาธิปไตย\nอยุติธรรม\nอริยสงฆ์\nอ่วม\nอวอร์ด\nออกแบบ\nออดิชั่น\nออดิทอเรียม\nออเดอร์\nออโต้\nออทิสติก\nอ่อนด้อย\nออฟ\nออยล์\nออร์แกน\nออร์แกนิก\nออร์แกนิค\nออร์เดอร์\nออรัล\nออสซี่\nอะ\nอัตลักษณ์\nอัตวิสัย\nอันเดอร์\nอันตรกิริยา\nอัลตรา\nอัลไซเมอร์\nอัลบัม\nอัลบั้ม\nอัลมอนด์\nอาข่า\nอาโนเนะ\nอาฟเตอร์\nอาร์ติสต์\nอาร์พีจี\nอาว์\nอาสวะ\nอิกัวนา\nอินดอร์\nอินดัสตรีส์\nอินเตอร์\nอิ่มแปร้\nอิมพีเรียล\nอิเล็กทริก\nอิเล็กทริค\nอิเลียด\nอิสรชน\nอิเหนา\nอิออน\nอีแต๋น\nอีโรติก\nอีเวนท์\nอีสต์\nอีสเตอร์\nอึ๊บ\nอึ้ม\nอึ๋ม\nอึมครึม\nอุด้ง\nอุตสาหการ\nอุเทน\nอุปการคุณ\nอุปทาน\nอุปนายก\nอุปนายิกา\nอุปสงค์\nอุปัทวเหตุ\nอุรังคธาตุ\nอูคูเลเล่\nอู้ฟู่\nเอ๋\nเอ็กซ์โป\nเอ็กซ์เพรส\nเอ็กโซเซต์\nเอ็กโซเซ่ต์\nเอเซีย\nเอ็นจีโอ\nเอ็นเตอร์เทน\nเอนทรานซ์\nเอ็นทรานซ์\nเอฟเฟ็กต์\nเอเยนต์\nเอลนีโญ\nเอสเปรสโซ\nเอสเพรสโซ\nเอ๋อ\nเอาต์\nเอาท์\nเอาท์ดอร์\nเอ๊าะ\nแอ็กชั่น\nแอ็คชั่น\nแอคทีฟ\nแอดมิชชั่น\nแอดมิสชัน\nแอนด์\nแอ๊บแบ๊ว\nแอปเปิล\nแอปเปิ้ล\nแอปพริคอท\nแอพพริคอท\nแอพริคอต\nแอร์\nแอโรบิก\nแอโรบิค\nแอลมอนด์\nแอสเตอร์\nโอเค\nโอเปอเรเตอร์\nโอเปร่า\nโอเพ่น\nโอ้ย\nโอยัวะ\nโอรสาธิราช\nโอเลี้ยง\nโอวัลติน\nโอเวอร์\nไอซ์\nไอซียู\nไอดอล\nไอเดีย\nไอติม\nฮวงจุ้ย\nฮ่องเต้\nฮองเฮา\nฮอต\nฮ็อต\nฮอตดอก\nฮ็อตด็อก\nฮันนีมูน\nฮัม\nฮัลโลวีน\nฮัลโหล\nฮากกา\nฮาร์ด\nฮาราคีรี\nฮาลาล\nฮาโลวีน\nฮิ\nฮิต\nฮิบรู\nฮิปโป\nฮิปฮอป\nฮีโร่\nฮูลาฮูป\nฮูล่าฮูป\nเฮฟวี\nเฮฟวี่\nเฮอร์ริเคน\nเฮีย\nแฮนด์\nแฮปปี้\nแฮมเบอร์เกอร์\nโฮป\nโฮม\nโฮลดิงส์\nโฮลวีต\nโฮสเตส\nไฮกุ\nไฮแจ็ค\nไฮโซ\nไฮเทค\nไฮบริด\nไฮเปอร์\nไฮไลต์\nไฮไลท์\nไฮเวย์\nไฮสคูล\nไฮเอนด์\n\nกรีซ\nกัมพูชา\nกัวเตมาลา\nกาตาร์\nกานา\nกาบอง\nกายอานา\nกินี\nเกรนาดีนส์\nเกรเนดา\nเกาหลี\nแกมเบีย\nโกตดิวัวร์\nคองโก\nคอโมโรส\nคอสตาริกา\nคาซัคสถาน\nคิตส์\nคิริบาตี\nคิริบาส\nคิวบา\nคีร์กีซสถาน\nคูเวต\nเคนยา\nเคปเวิร์ด\nเคย์แมน\nแคนาดา\nแคเมอรูน\nโครเอเชีย\nโคลอมเบีย\nจอร์เจีย\nจอร์แดน\nจาเมกา\nจิบูตี\nจีน\nชาด\nชิลี\nเช็ก\nซามัว\nซาอุ\nซิมบับเว\nซีเรีย\nซูดาน\nซูรินาเม\nเซนต์\nเซเนกัล\nเซอร์เบีย\nเซาตูเม\nเซียร์รา\nแซมเบีย\nโซมาเลีย\nโซเวียต\nไซปรัส\nญี่ปุ่น\nดารุสซาลาม\nเดนมาร์ก\nโดมินิกัน\nโดมินิกา\nตรินิแดด\nตองกา\nติมอร์\nตุรกี\nตูนิเซีย\nเติร์กเมนิสถาน\nโตโก\nโตเบโก\nไต้หวัน\nทาจิกิสถาน\nแทนซาเนีย\nนอร์เวย์\nนามิเบีย\nนาอูรู\nนิการากัว\nนิวซีแลนด์\nเนเธอร์แลนด์\nเนปาล\nเนวิส\nไนจีเรีย\nไนเจอร์\nบราซิล\nบริติช\nบริเตน\nบรูไน\nบอตสวานา\nบอสเนีย\nบังกลาเทศ\nบังคลาเทศ\nบัลแกเรีย\nบาร์บูดา\nบาร์เบโดส\nบาห์เรน\nบาฮามาส\nบิสเซา\nบุรุนดี\nบูร์กินาฟาโซ\nเบนิน\nเบลเยียม\nเบลารุส\nเบลีซ\nเบอร์มิวดา\nโบลิเวีย\nปรินซิปี\nปากีสถาน\nปานามา\nปาปัวนิวกินี\nปารากวัย\nปาเลสไตน์\nปาเลา\nเปรู\nเปอร์เซีย\nเปอร์โตริโก\nโปรตุเกส\nโปแลนด์\nฝรั่งเศส\nพม่า\nฟิจิ\nฟินแลนด์\nฟิลิปปินส์\nเฟรนช์\nภูฏาน\nภูฐาน\nมองโกเลีย\nมอนเตเนโกร\nมอนแทนา\nมอริเชียส\nมอริเตเนีย\nมอลโดวา\nมอลตา\nมัลดีฟส์\nมาเก๊า\nมาซิโดเนีย\nมาดากัสการ์\nมาร์แชลล์\nมาลาวี\nมาลี\nมาเลเซีย\nเม็กซิโก\nเมียนมาร์\nโมซัมบิก\nโมนาโก\nโมนาโค\nโมร็อกโก\nไมโครนีเซีย\nยูกันดา\nยูโกสลาเวีย\nยูเครน\nเยเมน\nเยอรมนี\nรวันดา\nรัสเซีย\nโรมาเนีย\nลักเซมเบิร์ก\nลัตเวีย\nลาว\nลิกเตนสไตน์\nลิทัวเนีย\nลิเบีย\nลีโอน\nลูเซีย\nเลโซโท\nเลบานอน\nเลสเต\nไลบีเรีย\nวาติกัน\nวานูอาตู\nวินเซนต์\nเวเนซุเอลา\nเวียดนาม\nศรีลังกา\nสเปน\nสโลวะเกีย\nสโลวัก\nสโลวีเนีย\nสวาซิแลนด์\nสวิตเซอร์แลนด์\nสวีเดน\nสหรัฐ\nสหราชอาณาจักร\nสิกขิม\nสิงคโปร์\nอเมริกา\nออสเตรเลีย\nออสเตรีย\nอันดอร์รา\nอัฟกานิสถาน\nอาเซอร์ไบจาน\nอาร์เจนตินา\nอาร์เมเนีย\nอาระเบีย\nอิเควทอเรียล\nอิตาลี\nอินเดีย\nอินโดนีเซีย\nอิรัก\nอิสราเอล\nอิหร่าน\nอียิปต์\nอุซเบกิสถาน\nอุรุกวัย\nเอกวาดอร์\nเอธิโอเปีย\nเอมิเรตส์\nเอริเทรีย\nเอลซัลวาดอร์\nเอสโตเนีย\nแองโกลา\nแอนติกา\nแอลจีเรีย\nแอลเบเนีย\nโอมาน\nไอซ์แลนด์\nไอร์แลนด์\nฮ่องกง\nฮอนดูรัส\nฮังการี\nเฮติ\nเฮอร์เซโกวีนา\n\nกระบี่\nกรุงเทพ\nกาญจนบุรี\nกาฬสินธุ์\nกำแพงเพชร\nขอนแก่น\nจันทบุรี\nฉะเชิงเทรา\nชลบุรี\nชัยนาท\nชัยภูมิ\nชุมพร\nเชียงราย\nเชียงใหม่\nตรัง\nตราด\nตาก\nนครนายก\nนครปฐม\nนครพนม\nนครราชสีมา\nนครศรีธรรมราช\nนครสวรรค์\nนนทบุรี\nนราธิวาส\nน่าน\nบึงกาฬ\nบุรีรัมย์\nปทุมธานี\nประจวบคีรีขันธ์\nปราจีนบุรี\nปัตตานี\nพะเยา\nพังงา\nพัทลุง\nพิจิตร\nพิษณุโลก\nเพชรบุรี\nเพชรบูรณ์\nแพร่\nภูเก็ต\nมหาสารคาม\nมุกดาหาร\nแม่ฮ่องสอน\nยโสธร\nยะลา\nร้อยเอ็ด\nระนอง\nระยอง\nราชบุรี\nลพบุรี\nลำปาง\nลำพูน\nเลย\nศรีสะเกษ\nสกลนคร\nสงขลา\nสตูล\nสมุทรปราการ\nสมุทรสงคราม\nสมุทรสาคร\nสระแก้ว\nสระบุรี\nสิงห์บุรี\nสุโขทัย\nสุพรรณบุรี\nสุราษฎร์\nสุราษฎร์ธานี\nสุรินทร์\nหนองคาย\nหนองบัวลำภู\nอยุธยา\nอ่างทอง\nอำนาจเจริญ\nอุดรธานี\nอุตรดิตถ์\nอุทัยธานี\nอุบลราชธานี\nกันทรลักษ์\nจตุจักร\nไชยา\nซีคอน\nดอนเมือง\nถลาง\nไทรโยค\nธนบุรี\nธัญบุรี\nบางกอก\nบางปะกง\nบางระจัน\nปะทิว\nปาย\nพญาไท\nพัฒน์พงษ์\nพัทยา\nพารากอน\nภูมิซรอล\nรัตนาธิเบศร์\nรังสิต\nลันตา\nลาดพร้าว\nวโรรส\nวิภาวดี\nสตึก\nสมุย\nสัตหีบ\nสิมิลัน\nสุขุมวิท\nสุไหง\nเสลภูมิ\nอังรีดูนังต์\nอ่างขาง\nอินทนนท์\nเอ็มโพเรียม\n\nคิวชู\nแคริบเบียน\nแคสเปียน\nดานูบ\nตะนาวศรี\nนอร์วีเจียน\nนิโคบาร์\nเนรัญชรา\nไนล์\nบอร์เนียว\nบอลติก\nเบงกอล\nปิง\nแปซิฟิก\nมะละกา\nมินดาเนา\nมิสซิสซิปปี\nเมดิเตอร์เรเนียน\nเมโสโปเตเมีย\nยมุนา\nยุโรป\nยูเรเชีย\nยูเรเซีย\nแยงซี\nแยงซีเกียง\nสแกนดิเนเวีย\nสะโตง\nสาละวิน\nสุมาตรา\nสุเอซ\nอะเมซอน\nอันดามัน\nอัลไต\nอาร์กติก\nอาหรับ\nอินโดจีน\nอิรวดี\nอิระวดี\nอีเจียน\nอุษาคเณย์\nอูราล\nเอเชีย\nเอเดรียติก\nเอเวอเรสต์\nแอตแลนติก\nแอนตาร์กติก\nแอนตาร์กติกา\nแอฟริกา\nโอลิมปัส\nไอโอเนียน\nฮวงโห\nฮอกไกโด\nฮอนชู\n\nกบิลพัสดุ์\nกุสินารา\nโกลิยะ\nโกสัมพี\nโคตรบอง\nโคตรบูรณ์\nตองอู\nทรอย\nทวารวดี\nทวาราวดี\nเทวทหะ\nไทรบุรี\nนาลันทา\nไบแซนไทน์\nปรัสเซีย\nปัลลวะ\nปาฏลีบุตร\nพุทธคยา\nมถุรา\nมายัน\nมิถิลา\nราชคฤห์\nล้านช้าง\nล้านนา\nลุมพินี\nวัชชี\nเวสาลี\nสารนาถ\nสาวัตถี\nหริภุญชัย\nอโยธยา\nออตโตมัน\nอังวะ\nอินทปัตถ์\nอุชเชนี\n\nกราฟิก\nกราฟิกส์\nกราฟิค\nกริด\nกิกะไบต์\nกูเกิล\nกูเกิ้ล\nเกตเวย์\nโกลบอล\nคลัสเตอร์\nคลาส\nคลิก\nคลิปอาร์ต\nคอนโซล\nคอนเทนต์\nคอมพิวติ้ง\nคอมไพล์\nคอมไพเลอร์\nคอมมูนิเคชั่น\nคอร์\nคีย์\nคีย์บอร์ด\nเครือข่าย\nเคอร์เซอร์\nเคอร์เนล\nแคช\nแคมฟรอก\nแคมฟร็อก\nแคร็ก\nโค้ด\nจาวา\nจีพีเอส\nชิป\nชิพ\nเชลล์\nแช็ต\nแชนเนล\nแชนแนล\nซ็อกเก็ต\nซอฟต์แวร์\nซอฟท์แวร์\nซอร์ส\nซัพพอร์ต\nซัพพอร์ท\nซีดี\nซีดีรอม\nซีเนอร์\nเซิร์ฟเวอร์\nโซลูชัน\nโซลูชั่น\nไซต์\nไซเบอร์\nทรานแซกชัน\nทรานแซกชั่น\nทรานแซ็กชัน\nทรานแซ็กชั่น\nทรานแซคชัน\nทรานแซคชั่น\nทรานแซ็คชัน\nทรานแซ็คชั่น\nทวิตเตอร์\nทวีต\nทัชแพด\nเทมเพลต\nเทอร์มินัล\nแท็ก\nแท็บ\nแทบเล็ต\nโทรจัน\nเน็ต\nเน็ตบุ๊ก\nเน็ตบุค\nเน็ตบุ๊ค\nเน็ตเวิร์ก\nเน็ตเวิร์ค\nโน้ตบุ๊ก\nโน้ตบุค\nโน้ตบุ๊ค\nดอส\nดาวน์เกรด\nดาวน์โหลด\nดิจิตอล\nดิจิทัล\nดีบั๊ก\nดีวีดี\nดีไวซ์\nเดเบียน\nเดลไฟ\nเดสก์ท็อป\nโดเมน\nไดรว์\nไดรเวอร์\nไดเรกทอรี\nไดโอด\nเทเลคอม\nบล็อกเกอร์\nบรอดแบนด์\nบราวเซอร์\nบลูทูท\nบลูทูธ\nบลูเรย์\nบั๊ก\nบัฟเฟอร์\nบิต\nบิท\nบูต\nเบราว์เซอร์\nแบนด์วิดท์\nไบต์\nไบนารี\nโปรแกรมเมอร์\nโปรเซส\nโปรเซสเซอร์\nโปรโตคอล\nพร็อกซี\nพอร์ต\nพอร์ท\nพาเนล\nพาร์ทิชัน\nพารามิเตอร์\nพาสเวิร์ด\nพิกเซล\nเพจ\nเพจเจอร์\nแพกเก็ต\nแพตช์\nแพลตฟอร์ม\nโพรเซส\nโพรเซสเซอร์\nโพรโทคอล\nไพธอน\nฟล็อปส์\nฟอนต์\nฟอร์แมต\nฟอร์เวิร์ด\nฟอรัม\nฟีเจอร์\nเฟซบุ๊ก\nเฟิร์มแวร์\nแฟล็ก\nโฟลเดอร์\nไฟร์ฟอกซ์\nไฟร์วอลล์\nไฟล์\nมอดูล\nมอนิเตอร์\nมัลติ\nมัลติทัช\nมัลติเพล็กซ์\nมัลแวร์\nมาสเตอร์\nมีเดีย\nเมนู\nเมมโมรี\nเมล\nเมาส์\nแมค\nโมดูล\nโมเด็ม\nโมบาย\nโมบายล์\nโมไบล์\nไมโครซอฟท์\nยูนิกซ์\nยูนิโคด\nยูนิโค้ด\nริงโทน\nรีเฟรช\nรีเลย์\nเราเตอร์\nเรียลไทม์\nลิงก์\nลินุกซ์\nลีนุกซ์\nลูป\nเลเยอร์\nแล็ปท็อป\nไลเซนส์\nไลบรารี\nวิกิ\nวิกิพีเดีย\nวินโดวส์\nวินโดว์ส\nเว็บ\nเวอร์ชวล\nเวอร์ชัน\nเวอร์ชั่น\nเวิร์กสเตชัน\nเวิร์กสเตชั่น\nเวิร์คสเตชัน\nเวิร์คสเตชั่น\nเวิร์ด\nเวิร์ม\nไวแมกซ์\nสกรีน\nสแกน\nสแกนเนอร์\nสแต็ก\nสนิฟเฟอร์\nสปายแวร์\nสเปซ\nสแปม\nสมาร์ท\nสล็อต\nเสิร์ช\nโหลด\nออนไลน์\nออปติก\nออปติคอล\nออปติคัล\nออฟไลน์\nออราเคิล\nอัพเกรด\nอัพเดต\nอัพโหลด\nอัปเกรด\nอัปเดต\nอัปโหลด\nอัลกอริทึม\nอาร์กิวเมนต์\nอินเตอร์เน็ต\nอินทิเกรเตอร์\nอินเทอร์เน็ต\nอินเทอร์เฟซ\nอินเทล\nอินพุต\nอินพุท\nอีเมล\nอีเมล์\nอูบุนตู\nอูบันตู\nเอนจิน\nเอ็นจิน\nเอาต์พุต\nเอาต์พุท\nเอาท์พุต\nเอาท์พุท\nแอนะล็อก\nแอนิเมชัน\nแอนิเมชั่น\nแอปพลิเคชัน\nแอปพลิเคชั่น\nแอพพลิเคชัน\nแอพพลิเคชั่น\nแอสเซมบลี\nแอสเซมเบลอร์\nโอเพน\nไอคอน\nไอซี\nไอพอด\nไอพ็อด\nไอแพด\nไอโฟน\nฮับ\nฮาร์ดดิสก์\nฮาร์ดแวร์\nแฮกเกอร์\nแฮ็กเกอร์\nแฮนด์เฮลด์\nโฮสต์\n\nกรีก\nกัณณาฑ\nกัศมีรี\nคันจิ\nคาตาคานะ\nคุชราตี\nคุรุมุขี\nซีริลลิก\nซูลู\nเซลติก\nเซิร์บ\nตากาล็อก\nเตลุคู\nเติร์ก\nทราวิฑ\nเบงกาลี\nปัญจาบี\nพินอิน\nมลยาฬัม\nมองโกล\nมาราฐี\nมาเลย์\nเม็กซิกัน\nแมนจู\nแมนดาริน\nไมถิลี\nเยอรมัน\nรัสเซียน\nสวาฮิลี\nสวิส\nสินธี\nอูรดู\nอัสสมี\nอารบิก\nอิตาเลียน\nอุยกูร์\nแอฟริกัน\nโอริยา\nไอริช\nฮันกึล\nฮินดี\nฮิรางานะ\nฮีบรู\n\nกรีนพีซ\nกรือเซะ\nกวนอิม\nกวนอู\nกัดดาฟี\nกัลยาณวัตร\nกัสสปะ\nกาลิเลโอ\nกินเนส\nกุมภกรรณ\nกูเตนเบิร์ก\nเกตส์\nเกษมณี\nโกณฑัญญะ\nขงเบ้ง\nคริสโตเฟอร์\nคองคอร์ด\nคอลเกต\nคานธี\nคาเบรียล\nคาร์ฟูร์\nคาร์สัน\nคาราบาว\nคาสิโอ\nคิริน\nคุนลุ้น\nคูโบต้า\nเครมลิน\nแคทรีนา\nโคตมะ\nโคตมี\nโคลัมบัส\nไคฟง\nไครสเลอร์\nง้อไบ๊\nจตุพร\nจ็อบส์\nจอห์น\nจิ้น\nจิม\nจิ๋ม\nจิว\nจุฬาภรณ์\nจุฬาลงกรณ์\nเจมส์\nแจ็กสัน\nโจเซฟ\nโจว\nชมัยมรุเชฐ\nชมัยมรุเชษฐ์\nชเวดากอง\nชาร์ลส์\nชินราช\nชินวัตร\nชุนชิว\nเช็ง\nเชตวัน\nเชฟรอน\nเชฟโรเลต\nเชลซี\nไชยานุชิต\nซ่ง\nซังฮี้\nซัดดัม\nซันซิล\nซัมซุง\nซัวเจ๋ง\nซินหัว\nซีซาร์\nซีแพค\nซูซาน\nซูซูกิ\nซูบารุ\nเซ็นทารา\nเซเวน\nเซเว่น\nโซฟิเทล\nโซยุซ\nโซยูซ\nณัฐวุฒิ\nดาร์ลี่\nดาวโจนส์\nดิสนีย์\nดีแทค\nดูปองท์\nเดโมแครต\nเดลล์\nเดลินิวส์\nเดวิด\nแดวู\nโดนัลด์\nโดราเอมอน\nโดเรมอน\nต๋อง\nตั๊กม้อ\nตากสิน\nตาเมือน\nตาลีบัน\nตูน\nเตมีย์\nโต๋\nโตชิบา\nโตโยต้า\nถังซัมจั๋ง\nถังซำจั๋ง\nทรพา\nทราเวล\nทรูมูฟ\nทีปังกร\nเทปโก\nเทพรัตน\nเทวทัต\nเทสโก้\nโทมัส\nไททานิก\nไททานิค\nไทยรัฐ\nธีออส\nนครินทรา\nนโปเลียน\nนพดล\nนราดูร\nนเรนทร\nนอสตราดามุส\nนาซา\nนาซ่า\nนาซี\nนาโต\nนาโต้\nนาลแก\nนิคอน\nนิโคลัส\nนิด้า\nนินเทนโด\nนิปปอน\nนิวตัน\nนิสสัน\nเนคเทค\nเนชั่น\nเนชันแนล\nเนชั่นแนล\nเนวิน\nเนสเล่\nเนสาด\nแนท\nแนสแดค\nโนเกีย\nโนเบล\nโนเวลล์\nโนโวเทล\nไนเม็กซ์\nบรอดเวย์\nบรัดเลย์\nบรู๊ซ\nบัลเมอร์\nบารัก\nบารัค\nบู๊ตึ๊ง\nเบญกาย\nเบนซ์\nเบ็นซ์\nเบนจามิน\nโบตัน\nไบโอเทค\nประชาธิปัตย์\nปวีณา\nปอเต็กตึ๊ง\nปอเต๊กตึ๊ง\nป่อเต็กตึ๊ง\nปัตตะโชติ\nปารุสก์\nปีเตอร์\nปูติน\nเป๊ปซี่\nเป้ย\nเปอร์โยต์\nเปาบุ้นจิ้น\nโปเกมอน\nโป๊ยก่าย\nพรหมทัต\nพลาโต\nพอลล่า\nพานาโซนิค\nพานาโซนิก\nพิทยานุกูล\nพิมพิสาร\nเพนแทกซ์\nเพลโต\nไพโอเนียร์\nฟรอยด์\nฟรังซิส\nฟรานซิส\nฟลอเรนซ์\nฟอร์ด\nฟิลิปส์\nฟูจิ\nแฟซ่า\nโฟร์โมสต์\nภูมิพล\nภูริทัต\nมงฟอร์ต\nมณโฑ\nมติชน\nมหิตลาธิเบศร\nมโหสถ\nมัจฉานุ\nมาร์กาเร็ต\nมาร์ติน\nมาสด้า\nมิตซูบิชิ\nมิราเคิล\nมุสโสลินี\nเม้ง\nเมจิ\nเมอร์ซีเดส\nเมอร์เซเดส\nแมกซ์เวลล์\nแมกไซไซ\nแมคอินทอช\nแมชีนเนอรี่\nโมคคัลลานะ\nโมโตโรลา\nโมโตโรล่า\nโมเนีย\nไมเคิล\nไมยราพณ์\nยโสธรา\nยะโฮวา\nยะโฮวาห์\nยามาฮ่า\nยาเวห์\nยาฮู\nยูนิเซฟ\nยูเนสโก\nยูไล\nเยโฮวาห์\nรอยเตอร์\nรอยัล\nรัชดา\nรัสปูติน\nราฟาเอล\nรามาวตาร\nราเมศวร\nราหุล\nริชาร์ด\nรีพับลิกัน\nรูนีย์\nเรนโบว์\nแรมโบ้\nโรตารี\nโรนัลโด\nโรนัลโด้\nโรบินสัน\nโรเบิร์ต\nล็อกซเล่ย์\nลิงคอล์น\nลิจฉวี\nลิไท\nลิไทย\nลินคอล์น\nลิเวอร์พูล\nเลโนโว\nเลียดก๊ก\nโลตัส\nวชิราลงกรณ์\nวลาดิเมียร์\nวอลล์สตรีท\nวาเลนไทน์\nวิกตอเรีย\nวิทยานุสรณ์\nวิทยายน\nวิมเบิลดัน\nวิลเลียม\nวีระ\nวุฒิชัย\nเวียดกง\nไวตามิลค์\nศกุนตลา\nศรีวิชัย\nศิริพงษ์\nศิริราช\nศุภชลาศัย\nสดกก๊อกธม\nสดายุ\nสตาลิน\nสตีฟ\nสแตนฟอร์ด\nสวรินทิรา\nสังกัจจายน์\nสาทิตย์\nสารีบุตร\nสิริกิติ์\nสิรินธร\nสิหิงค์\nสีวลี\nสีหนุ\nสีหมุนี\nสีหโมนี\nสุครีพ\nสุทโธทนะ\nสุเทพ\nสุนทราภรณ์\nสุนีย์\nสุรนารี\nสุรยุทธ์\nสุริยาสน์\nเส้าหลิน\nโสกราตีส\nโสภิต\nหนุมาน\nหลินฮุ่ย\nหลุยส์\nเห้งเจีย\nไหหม่า\nองคต\nองคุลิมาล\nอชาตศัตรู\nอดุลยเดช\nอพอลโล\nอริสโตเติล\nอริสมันต์\nอลิซาเบธ\nอ๋อม\nออร์คิด\nออสการ์\nอะพอลโล\nอับราฮัม\nอั้ม\nอัลกออิดะห์\nอัลคาเทล\nอัลจาซีราห์\nอัลเฟรด\nอัลเลาะห์\nอัสซุส\nอัสสชิ\nอัสสัมชัญ\nอาเซม\nอาเซ็ม\nอาเซียน\nอาฟต้า\nอาร์เซนอล\nอินทรชิต\nอินทราทิตย์\nอีซูซุ\nอีเลฟเวน\nอีเลฟเว่น\nอุณรุท\nอุบลรัตน์\nอุบาลี\nอุ๋ย\nเอกทัศน์\nเอเซอร์\nเอ็ดเวิร์ด\nเอดิสัน\nเอแบค\nเอลิซาเบธ\nเอสพลานาด\nเอสพลานาร์ด\nแอคคอร์\nแอคคอร์ด\nแองเจลิน่า\nแอตแลนติส\nแอน\nแอ๋ม\nแอมบาสซาเดอร์\nแอมบาสเดอร์\nแอมเวย์\nแอ๋ว\nโอดีสซีย์\nโอเดียน\nโอบามา\nโอรสาราม\nโอลิมเปีย\nโออิชิ\nไอน์สไตน์\nฮอนด้า\nฮอปกินส์\nฮอลลีวูด\nฮอลลีวู้ด\nฮานามิ\nฮามาส\nฮิตเลอร์\nฮิตาชิ\nฮุนเซน\nฮุนเซ็น\nฮุนได\nฮุสเซ็น\nเฮนรี\nเฮนรี่\nเฮเลน\nโฮจิมินห์\nโฮปเวลล์\nโฮเมอร์\n\nกลีเซอรีน\nกำทอน\nแกนีมีด\nครอส\nคริสตัล\nคลอโรพลาสต์\nคลอไรด์\nควอนตัม\nคอนดักเตอร์\nคอปเปอร์\nคอลลาเจน\nคอเลสเตอรอล\nคอสมิก\nคูลอมบ์\nเคอราติน\nแคโรทีน\nแคสสินี\nโครมาโทกราฟี\nไคโตซาน\nจีโนม\nจุลชีววิทยา\nชิคุนกุนยา\nซัลฟิวริก\nซัลเฟต\nซัลไฟด์\nซิงค์\nซิริอุส\nซิลิกา\nซิลิเกต\nซิลิโคน\nซีเทน\nซีเวิร์ต\nเซ็กเตอร์\nเซ็กเมนต์\nเซมิ\nโซนาร์\nไซบอร์ก\nดอปเปลอร์\nดอปเพลอร์\nไดนามิก\nไดนามิกส์\nไดนามิค\nไดนามิคส์\nไดออกไซด์\nทรานส์\nทามิฟลู\nเทฟลอน\nเทสโทสเตอโรน\nเทอร์โม\nแทนนิน\nไททัน\nไทฟอยด์\nไทรอยด์\nธาลัสซีเมีย\nเนกาตีฟ\nโนวา\nบอแรกซ์\nโบทอกซ์\nโบท็อกซ์\nไบโอติน\nปฏิยานุพันธ์\nโปรเจสเตอโรน\nพอลิเมอร์\nพันธุศาสตร์\nพัลซาร์\nพาร์กินสัน\nพาราเซตามอล\nพาราโบลา\nเพอร์ออกไซด์\nโพรเจสเทอโรน\nโพลาไรซ์\nโพลิเมอร์\nโพลีเอทิลีน\nไพรเมต\nฟลาโวนอยด์\nฟลูออเรสเซนซ์\nฟลูออไรด์\nฟอสซิล\nฟิชชัน\nฟิวชัน\nฟีโรโมน\nไฟเบอร์\nมอนอกไซด์\nมิราจ\nเมตริกซ์\nเมทริกซ์\nเมลานิน\nเมลามีน\nโมเมนตัม\nไมโตคอนเดรีย\nไมโทคอนเดรีย\nยีสต์\nยูริก\nยูเรีย\nรูมาตอยด์\nวีก้า\nเวกเตอร์\nเวก้า\nเวสิเคิล\nโวลต์\nสเกล\nสเกลาร์\nสเต็ม\nสเตียรอยด์\nสปีชีส์\nสเปิร์ม\nสัมพัทธภาพ\nสุริยจักรวาล\nออกเทน\nออโรรา\nออโรร่า\nอะคริลิก\nอะครีลิก\nอะซีติก\nอะซีโตน\nอะมิโน\nอะลูมินา\nอันโดรเมดา\nอัลคาไลน์\nอัลตราซาวด์\nอัลตราซาวนด์\nอัลลอยด์\nอินทิกรัล\nอินทิเกรต\nอีโบลา\nอีโบล่า\nเอ็กซ์โพเนนเชียล\nเอทานอล\nเอทิลีน\nเอนโทรปี\nเอสเตอร์\nเอสโตรเจน\nเอสโทรเจน\nแอนดรอยด์\nแอนแทร็กซ์\nแอมพลิจูด\nแอมโมเนียม\nแอลกอฮอลิซึม\nแอสพาร์แตม\nโอเซลทามิเวียร์\nฮับเบิล\nฮิวมัส\nไฮดรอกไซด์\nไฮดรอลิก\nไฮโดรลิก\nไฮเพอร์โบลา\n\nกงเต็ก\nกฎุมพี\nกฏ\nกฏหมาย\nกบฎ\nกราไฟต์\nก๊อปปี้\nกะทะ\nกังวาล\nกุฎฐัง\nกุฏุมพี\nฃวด\nคฑา\nคลินิค\nคลีนิก\nคลีนิค\nคาทอลิค\nคึ่นฉ่าย\nแคตตาล็อก\nโควต้า\nฅน\nจุมพฎ\nช็อคโกแลต\nแซ่ด\nดัทช์\nทนง\nทรมาณ\nทราก\nทะแยง\nทิฏฐิ\nบล็อค\nบ๊องแบ๊ว\nบัลเล่ต์\nเบรค\nแบงค์\nปรากฎ\nปัคคหะ\nปาฏิโมกข์\nปิติ\nปิรามิด\nโปรเตสแตนท์\nพนิช\nพยักเพยิด\nพริ้ว\nพลูโตเนียม\nพากษ์\nเฟิร์น\nยากี้\nเยภุยยสิกา\nรุสเซีย\nฤาษี\nล็อค\nล็อคเกอร์\nวันทยาหัตถ์\nวานิช\nวิญญาน\nวิศิษฐ์\nศรีษะ\nสเปกโทรสโคป\nสฤษฎ์\nสลิ่ม\nสัตตสดก\nสาราณียากร\nสุกี้\nสุกี้ยากี้\nสูญญากาศ\nหยอมแหยม\nหยอย\nหล่ะ\nอะดรีนาลีน\nอะหลั่ย\nอัตคัต\nอัฟริกา\nอานิสงค์\nอาฟริกา\nอิริยาบท\nอิเลคโทรนิคส์\nอีรุงตุงนัง\nอุตรายัน\nอุลตรา\nอุลตร้า\nโอกาศ\n\nกกหู\nกงการ\nกงจักร\nกฎเกณฑ์\nกฎบัตร\nกฎหมาย\nกฎหมู่\nกดขี่\nกดดัน\nก้นกบ\nก้นบึ้ง\nก้นปล่อง\nกนิษฐภคินี\nกนิษฐภาดา\nกรงเล็บ\nกรมการ\nกรมท่า\nกรมธรรม์\nกรมนา\nกรมวัง\nกรรมกร\nกรรมการ\nกรรมฐาน\nกรรมบถ\nกรรมพันธุ์\nกรรมวิธี\nกรรมสิทธิ์\nกระจกเงา\nกระจกตา\nกระจกนูน\nกระจกเว้า\nกระจอกชวา\nกระจอกเทศ\nกระจ้อยร่อย\nกระจับบก\nกระจับปิ้ง\nกระจับปี่\nกระโชกโฮกฮาก\nกระดานดำ\nกระดานหก\nกระดาษแก้ว\nกระดาษไข\nกระดาษทราย\nกระดาษสา\nกระดูกงู\nกระทาชาย\nกระเท่เร่\nกระบวนการ\nกระบองเพชร\nกระผีกริ้น\nกระยาทิพย์\nกระยาสารท\nกระยาหาร\nกระสอบทราย\nกระสุนปืน\nกระแสจิต\nกระแสน้ำ\nกระแสลม\nกรับคู่\nกรับพวง\nกรับเสภา\nกราดเกรี้ยว\nกราวรูด\nกริ่งเกรง\nกรีฑาสถาน\nกรีดกราย\nกรี๊ดกร๊าด\nกลไก\nกลบท\nกลเม็ด\nกลยุทธ์\nกลวิธี\nกลศาสตร์\nกลอักษร\nกลบเกลื่อน\nกลมกล่อม\nกลมกลืน\nกลมเกลียว\nกล้วยแขก\nกล้วยไม้\nกล่องเสียง\nกล่อมเกลา\nกล่อมเกลี้ยง\nกลัดกลุ้ม\nกลัดมัน\nกลั่นกรอง\nกลั่นแกล้ง\nกลับกลอก\nกลางคน\nกลางคัน\nกลางค่ำ\nกลางคืน\nกลางแจ้ง\nกลางแปลง\nกลางวัน\nกลาดเกลื่อน\nกล่าวขวัญ\nกล่าวโทษ\nกล่าวหา\nกล้ำกราย\nกล้ำกลืน\nกลิ้งกลอก\nกลิ้งเกลือก\nกลิ่นอาย\nกลียุค\nกวดขัน\nกวัดแกว่ง\nกวัดไกว\nกวีนิพนธ์\nก่อกวน\nก่อการ\nก่อตั้ง\nก่อสร้าง\nก่อหวอด\nก้อร่อก้อติก\nกองกลาง\nกองเกิน\nกองโจร\nกองทัพ\nกองทุน\nกองพล\nกองพัน\nกองฟอน\nกองร้อย\nกองหนุน\nกอบโกย\nกะเกณฑ์\nกะบังลม\nกักกัน\nกักขัง\nกักตัว\nกักตุน\nกัณฑ์เทศน์\nกัดฟัน\nกันชน\nกันท่า\nกันสาด\nกันเอง\nกับแกล้ม\nกับข้าว\nกับระเบิด\nกากเพชร\nกากหมู\nกาชาด\nกาญจนาภิเษก\nก้านคอ\nกาฝาก\nก้ามกราม\nกามกิจ\nกามคุณ\nกามเทพ\nกามโรค\nก้ามปู\nกายกรรม\nกายบริหาร\nกายภาพ\nกายวิภาค\nกายสิทธิ์\nก่ายกอง\nการคลัง\nการเงิน\nการบ้าน\nการเปรียญ\nการเมือง\nการเรือน\nการละเล่น\nกาลกิริยา\nกาลเทศะ\nก้าวก่าย\nก้าวร้าว\nก้าวหน้า\nกาสาวพัสตร์\nกาฬพฤกษ์\nกาฬโรค\nกำปั้น\nกำมือ\nกำแพงขาว\nกำลังใจ\nกำลังม้า\nกี่งอำเภอ\nกิจกรรม\nกิจการ\nกิจวัตร\nกิจจะลักษณะ\nกิตติคุณ\nกิตติศัพท์\nกินขาด\nกินใจ\nกินดอง\nกินโต๊ะ\nกินแบ่ง\nกินเปล่า\nกินเลี้ยง\nกินเส้น\nกินแหนง\nกิโลกรัม\nกิโลเมตร\nกิโลลิตร\nกิโลเฮิรตซ์\nกีดกัน\nกีดกั้น\nกีดขวาง\nกึกก้อง\nกึกกัก\nกึกกือ\nกึ่งกลาง\nกุกกัก\nกุ๊กกิ๊ก\nกุ้งฝอย\nกุ้งมังกร\nกุ้งแห้ง\nกุ้งเต้น\nกุ้งยิง\nกุญแจผี\nกุญแจมือ\nกุญแจเลื่อน\nกุญแจเสียง\nกุลธิดา\nกุลบุตร\nกุลสตรี\nกู้ยืม\nเก้งก้าง\nเก็บกวาด\nเก็บเกี่ยว\nเก็บงำ\nเก็บตก\nเกรงกลัว\nเกรงใจ\nเกรงขาม\nเกรียงไกร\nเกรียมกรม\nเกรี้ยวกราด\nเกล็ดเลือด\nเกลี้ยกล่อม\nเกลี้ยงเกลา\nเกลือกกลั้ว\nเกลือกกลิ้ง\nเกลื่อนกล่น\nเกลื่อนกลาด\nเกศธาตุ\nเกษตรกร\nเกษตรกรรม\nเกษตรศาสตร์\nเกษมสันต์\nเกษียรสมุทร\nเก้อเขิน\nเกาะแกะ\nเกี่ยงงอน\nเกียจคร้าน\nเกียรติคุณ\nเกียรตินิยม\nเกียรติประวัติ\nเกียรติภูมิ\nเกียรติยศ\nเกียรติศักดิ์\nเกียรติมุข\nเกี่ยวข้อง\nเกี่ยวดอง\nเกี่ยวพัน\nเกี่ยวโยง\nเกี้ยวพาน\nเกี้ยวพาราสี\nแก่แดด\nแก้ขัด\nแก้ไข\nแก้ตัว\nแก้เผ็ด\nแก้ลำ\nแกงคั่ว\nแกงจืด\nแกงบวด\nแกงป่า\nแกงเผ็ด\nแกงส้ม\nแก่งแย่ง\nแก่นแก้ว\nแก่นสาร\nแก้วตา\nแก้วหู\nแกว่งกวัด\nแกว่งไกว\nแกะรอย\nโก้เก๋\nโกรธเกรี้ยว\nโกรธขึ้ง\nไก่เขี่ย\nไก่ชน\nไก่บ้าน\nไก่ป่า\nไก่ฟ้า\nไกล่เกลี่ย\nขจัดขจาย\nขนเพชร\nขนสัตว์\nขนหนู\nขนส่ง\nขนมจีน\nขบขัน\nขบวนการ\nข่มขี่\nข่มขู่\nข่มขืน\nข่มเหง\nขมหิน\nขมิ้นชัน\nขมุบขมิบ\nขยะแขยง\nขยักขย่อน\nขยักขย้อน\nขยับขยาย\nขยับเขยื้อน\nขวดโหล\nขวยเขิน\nขวัญใจ\nขวัญตา\nขวัญอ่อน\nขวากหนาม\nขวางโลก\nของ้าว\nขอสับ\nขอขมา\nขอทาน\nขอโทษ\nขอร้อง\nขออภัย\nข้อเขียน\nข้อความ\nข้อเท็จจริง\nของกลาง\nของขวัญ\nของแข็ง\nของชำ\nของลับ\nของเล่น\nของว่าง\nของเหลว\nของไหล\nของไหว้\nข้องใจ\nข้องแวะ\nขอบข่าย\nขอบเขต\nขอบคุณ\nขอบใจ\nขอบพระคุณ\nข้อมูล\nข้อแม้\nข้อหา\nข้อสังเกต\nขัดข้อง\nขัดขืน\nขัดเขิน\nขัดจังหวะ\nขัดดอก\nขัดแตะ\nขัดยอก\nขัดแย้ง\nขัดสมาธิ\nขันหมาก\nขันอาสา\nขับขี่\nขับเคี่ยว\nขั้วโลก\nขาจร\nขาประจำ\nข้าราชการ\nข้าศึก\nข้าหลวง\nขาดแคลน\nขาดใจ\nขาดตอน\nขาดตัว\nขาดทุน\nขาดเหลือ\nขายหน้า\nข่าวกรอง\nข่าวคราว\nข่าวล่า\nข่าวลือ\nข่าวสาร\nข้าวเกรียบ\nข้าวแกง\nข้าวของ\nข้าวจี่\nข้าวเจ้า\nข้าวซอย\nข้าวต้ม\nข้าวตอก\nข้าวตัง\nข้าวแตน\nข้าวทิพย์\nข้าวบิณฑ์\nข้าวเปลือก\nข้าวโพด\nข้าวฟ่าง\nข้าวเม่า\nข้าวสวย\nข้าวสาร\nข้าวเหนียว\nข้าวหมาก\nข้าวหลาม\nขี้เกียจ\nขี้ข้า\nขี้ครอก\nขี้คร้าน\nขี้คุก\nขี้ไคล\nขี้เซา\nขีดขั้น\nขีดคร่อม\nขีดคั่น\nขีดฆ่า\nขี้ตา\nขี้ตืด\nขี้เถ้า\nขี้ทูด\nขี้ปะติ๋ว\nขี้ผึ้ง\nขี้มูก\nขี้ยา\nขี้แย\nขี้ริ้ว\nขี้เรื้อน\nขี้เล็บ\nขี้หู\nขี้หน้า\nขี้เหนียว\nขี้เหล็ก\nขี้เหร่\nขึงขัง\nขึงพืด\nขึ้งโกรธ\nขึ้นใจ\nขึ้นชื่อ\nขึ้นมือ\nขืนใจ\nขื่นขม\nขุดคุ้ย\nขุนทอง\nขุนนาง\nขุนพล\nขุนศึก\nขุนหลวง\nขูดรีด\nเข็มกลัด\nเข็มขัด\nเข้มข้น\nเข้มแข็ง\nเข้มงวด\nเข็มทิศ\nเข็มหมุด\nเข้าขา\nเข้าเค้า\nเข้าใจ\nเข้าชื่อ\nเข้าตัว\nเข้าถึง\nเข้าทรง\nเข้าท่า\nเข้าที\nเข้าเนื้อ\nเข้าเล่ม\nเขียวเสวย\nเขียวหวาน\nแขกเต้า\nแข็งกร้าว\nแข็งกล้า\nแข็งแกร่ง\nแข็งข้อ\nแข็งขัน\nแข่งขัน\nแข็งใจ\nแข็งตัว\nแข็งเมือง\nแข็งแรง\nแขวนลอย\nโขกสับ\nโขยกเขยก\nไขข้อ\nไขควง\nไขมัน\nไข่มุก\nไขว่ห้าง\nไขสันหลัง\nไขสือ\nไข่เค็ม\nไข่เยี่ยวม้า\nไข่หงส์\nไข่เหี้ย\nคงกระพัน\nคงตัว\nคงทน\nคงที่\nคชลักษณ์\nคชสาร\nคชสีห์\nคชราช\nคณิตศาสตร์\nคดเคี้ยว\nคติธรรม\nคติพจน์\nคนกลาง\nคนไข้\nคนใช้\nคนทรง\nคบไฟ\nคบเพลิง\nคบค้า\nคบคิด\nคบหา\nคมคาย\nครบครัน\nครบถ้วน\nครอบครอง\nครอบคลุม\nครอบครัว\nครอบงำ\nครอบจักรวาล\nคริสตกาล\nคริสตจักร\nคริสต์มาส\nคริสต์ศตวรรษ\nคริสต์ศักราช\nคริสตัง\nคริสเตียน\nครุกรรม\nครุภัณฑ์\nครุศาสตร์\nครุฑพ่าห์\nครุ่นคิด\nคลอเคลีย\nคล่องแคล่ว\nคล่องตัว\nคล่องมือ\nคลั่งไคล้\nคลาคล่ำ\nคลาไคล\nคลาดเคลื่อน\nคลาดแคล้ว\nคลี่คลาย\nคลึงเคล้น\nคลึงเคล้า\nคลื่นไส้\nคลื่นเหียน\nคลุกคลี\nคลุกคลาน\nคลุมเครือ\nคลุมโปง\nคลุ้มคลั่ง\nควงสว่าน\nควบคุม\nควบคู่\nควบแน่น\nควันหลง\nความคิด\nความหลัง\nความเห็น\nคอหอย\nคอห่าน\nคอแห้ง\nค่อนขอด\nค่อนแคะ\nค้อนควัก\nคั่งค้าง\nคั่งแค้น\nคัดค้าน\nคัดง้าง\nคัดท้าย\nคัดเลือก\nคันจาม\nคันฉ่อง\nคันฉาย\nคันชัก\nคันชั่ง\nคันไถ\nคันนา\nคันเร่ง\nคับขัน\nคับคั่ง\nคับแค้น\nคับแคบ\nคางทูม\nคางหมู\nค้างคืน\nค้างปี\nคาดคั้น\nคาดเชือก\nคาดโทษ\nคาดหมาย\nคานหาม\nคาบเกี่ยว\nคาบศิลา\nคาบสมุทร\nคำขาด\nคำนำ\nคิดค้น\nคืนดี\nคืนตัว\nคุกเข่า\nคุณค่า\nคุณชาย\nคุณธรรม\nคุณนาย\nคุณภาพ\nคุณลักษณะ\nคุณวุฒิ\nคุณศัพท์\nคุณสมบัติ\nคุณหญิง\nคุณากร\nคุณูปการ\nคุโณปการ\nคุมเชิง\nคุ้มกัน\nคุยเขื่อง\nคุยโต\nคุ้ยเขี่ย\nคุ้มครอง\nคู่กรณี\nคู่กัด\nคู่ขา\nคู่แข่ง\nคู่ครอง\nคู่ควร\nคู่คิด\nคู่คี่\nคู่ใจ\nคู่ชีพ\nคู่ชีวิต\nคู่บารมี\nคู่บุญ\nคู่ปรปักษ์\nคู่ปรับ\nคู่ผสม\nคู่มือ\nคู่รัก\nคู่ลำดับ\nคู่สาย\nคู่หมั้น\nคู่หู\nคู่อริ\nคู่อาฆาต\nเคมีภัณฑ์\nเคยตัว\nเคร่งขรึม\nเคร่งครัด\nเคร่งเครียด\nเครดิตฟองซิเอร์\nเครื่องกล\nเครื่องกัณฑ์\nเครื่องแกง\nเครื่องเขิน\nเครื่องครัว\nเครื่องเคียง\nเครื่องเงิน\nเครื่องจักร\nเครื่องเซ่น\nเครื่องดนตรี\nเครื่องต้น\nเครื่องทุ่นแรง\nเครื่องเทศ\nเครื่องใน\nเครื่องบิน\nเครื่องบูชา\nเครื่องแบบ\nเครื่องประดับ\nเครื่องปรุง\nเครื่องปรุงรส\nเครื่องมือ\nเครื่องยนต์\nเครื่องร่อน\nเครื่องราง\nเครื่องเรือน\nเครื่องล่าง\nเครื่องเล่น\nเครื่องสาย\nเครื่องสำอาง\nเครื่องสุกำศพ\nเครื่องหมาย\nเครือรัฐ\nเคลียคลอ\nเคลื่อนที่\nเคลื่อนไหว\nเคลือบแคลง\nเคลือบแฝง\nเคลือบฟัน\nเคว้งคว้าง\nเคหสถาน\nเค้าโครง\nเคียดแค้น\nเคี่ยวเข็ญ\nเคี้ยวเอื้อง\nเคืองขุ่น\nโคนม\nโคบาล\nโคมูตร\nโคมลอย\nโครงการ\nโครงเรื่อง\nโครงงาน\nโครงสร้าง\nโครมคราม\nโคลงเคลง\nฆ้องกระแต\nฆ้องชัย\nฆ้องวง\nฆ้องหุ่ย\nฆ้องเหม่ง\nฆ้องโหม่ง\nฆาตกร\nฆาตกรรม\nฆานประสาท\nงงงวย\nงงงัน\nงดเว้น\nงบดุล\nงบประมาณ\nงมโข่ง\nงมงาย\nง่วงงุน\nง่วงเหงา\nงอหาย\nง้องอน\nงอนง้อ\nงอมแงม\nงาช้าง\nง่าเงย\nงานการ\nง่ายดาย\nงึมงำ\nเงินเดือน\nเงินตรา\nเงินยวง\nเงียบกริบ\nเงียบเชียบ\nเงียบเหงา\nเงื่องหงอย\nเงื่อนไข\nเงื่อนงำ\nเงื่อนเวลา\nเงื้อมมือ\nแง่งอน\nจงใจ\nจงรัก\nจดจ่อ\nจดจำ\nจดหมาย\nจดหมายเหตุ\nจรจัด\nจรรยาบรรณ\nจริงจัง\nจริงใจ\nจอมขวัญ\nจอมใจ\nจอมทัพ\nจอมปลวก\nจอมพล\nจ๊ะเอ๋\nจักสาน\nจักรพรรดิ\nจักรภพ\nจักรยาน\nจักรยานยนต์\nจักรราศี\nจักรวรรดิ\nจักรวรรดินิยม\nจักรวาล\nจังหนับ\nจัดการ\nจัดจ้าน\nจัดเจน\nจัดแจง\nจัดตั้ง\nจัดสรร\nจับกุม\nจับจด\nจับเจ่า\nจ่าหน้า\nจาตุทสี\nจาตุมหาราช\nจาตุมหาราชิก\nจาตุมหาราชิกา\nจาตุรงคสันนิบาต\nจาตุรราชการ\nจานเชิง\nจานบิน\nจานผี\nจานเสียง\nจาบจ้วง\nจำเป็น\nจำพรรษา\nจำวัด\nจ้ำจี้จ้ำไช\nจำเลาะตา\nจิงโจ้น้ำ\nจิตใจ\nจิตตภาวนา\nจิตตัง\nจิตตานุปัสสนา\nจิตนิยม\nจิตบำบัด\nจิตแพทย์\nจิตวิสัย\nจิตรกร\nจิตรกรรม\nจิตรลดา\nจิตวิทยา\nจิตเวช\nจิตเวชศาสตร์\nจินตกวี\nจินตนา\nจินตนาการ\nจินตภาพ\nจุฑามณี\nจุฑามาศ\nจุฑารัตน์\nจุนเจือ\nจุ้นจ้าน\nจุลชีพ\nจุลชีวัน\nจุลชีวิน\nจุลทรรศน์\nจุลภาค\nจุลวรรค\nจุลศักราช\nจุลสาร\nจุลินทรีย์\nจุฬามณี\nจุฬาลักษณ์\nเจตคติ\nเจตจำนง\nเจตนารมณ์\nเจตภูต\nเจริญพร\nเจ้ากรม\nเจ้ากรรม\nเจ้าของ\nเจ้าขา\nเจ้าข้า\nเจ้าคณะ\nเจ้าค่ะ\nเจ้าจอม\nเจ้าชู้\nเจ้าตัว\nเจ้าถิ่น\nเจ้าท่า\nเจ้าที่\nเจ้าทุกข์\nเจ้านาย\nเจ้าเนื้อ\nเจ้าบ้าน\nเจ้าบ่าว\nเจ้าประคุณ\nเจ้าประคู้น\nเจ้าพนักงาน\nเจ้าพระคุณ\nเจ้าพระยา\nเจ้าพ่อ\nเจ้าพายุ\nเจ้าฟ้า\nเจ้าภาพ\nเจ้ามือ\nเจ้าแม่\nเจ้าเรือน\nเจ้าสังกัด\nเจ้าสัว\nเจ้าสาว\nเจ้าหน้าที่\nเจ้าหนี้\nเจ้าอาวาส\nเจาะจง\nเจือจาง\nเจือจาน\nเจือปน\nเจื้อยแจ้ว\nแจกจ่าย\nแจ่มแจ้ง\nแจ่มใส\nโจงกระเบน\nโจมตี\nโจรกรรม\nโจรสลัด\nใจความ\nใจคอ\nฉกฉวย\nฉกชิง\nฉลองได\nฉ้อฉล\nฉัตรมงคล\nฉันทลักษณ์\nฉายาลักษณ์\nฉิบหาย\nฉุกเฉิน\nฉุกละหุก\nฉุนเฉียว\nฉุปศาสตร์\nเฉไฉ\nเฉยเมย\nเฉาโฉด\nเฉิดฉัน\nเฉิดฉาย\nเฉิดฉิน\nเฉียบขาด\nเฉียบพลัน\nเฉียบแหลม\nเฉื่อยชา\nแฉะแบะ\nโฉดเฉา\nโฉมงาม\nโฉมฉาย\nโฉมเฉลา\nโฉมตรู\nโฉมยง\nโฉมศรี\nโฉมหน้า\nชดช้อย\nชดเชย\nชดใช้\nชนบท\nชนินทร์\nชนกกรรม\nชนมพรรษา\nชนมายุ\nชมเชย\nชมพูทวีป\nชมพูนท\nชมพูนุท\nชราธรรม\nชราภาพ\nชลจร\nชลธาร\nชลธี\nชลนัยน์\nชลนา\nชลเนตร\nชลประทาน\nชลมารค\nชลาธาร\nชลาลัย\nชลาศัย\nชลาสินธุ์\nชโลทร\nช่วงชิง\nช่วงใช้\nชวนชม\nชวนหัว\nช่วยเหลือ\nช่อฟ้า\nช่อม่วง\nชอกช้ำ\nช่องเขา\nช่องแคบ\nช่องไฟ\nช่องว่าง\nช้องนาง\nชอบกล\nชอบใจ\nชอบธรรม\nชอบพอ\nชักโครก\nชักเงา\nชักจูง\nชักชวน\nชักนำ\nชักเนื้อ\nชักพระ\nชักเย่อ\nชักใย\nชั่งใจ\nชังฆวิหาร\nชัดเจน\nชั้นเชิง\nชั่วคน\nชั่วคราว\nชั่วช้า\nชั่วโมง\nชั่วแล่น\nชาเย็น\nช้านาน\nช่างเครื่อง\nช่างฝีมือ\nช่างฟิต\nช่างไฟ\nช้างน้ำ\nช้างเผือก\nช้างพลาย\nช้างพัง\nช้างสาร\nช้างสีดอ\nชาติธรรม\nชาตินิยม\nชาติพันธุ์\nชาติพันธุ์วิทยา\nชาติภูมิ\nชานชาลา\nชายชาตรี\nชายคา\nชายฝั่ง\nชายทะเล\nชาวเล\nชาววัง\nช้ำใจ\nช้ำชอก\nชิงชัง\nชิงพลบ\nชินชา\nชินบุตร\nชิ้นเอก\nชิมลาง\nชีเปลือย\nชี้ขาด\nชี้แจง\nชี้นำ\nชี้แนะ\nชี้ฟ้า\nชีพจร\nชีพิตักษัย\nชื่นชม\nชื่นบาน\nชื่นมื่น\nชื่อย่อ\nชื่อรอง\nชื่อเล่น\nชื่อเสียง\nชุกชุม\nชุติมา\nชุบตัว\nชุบเลี้ยง\nชุมชน\nชุมทาง\nชุมสาย\nชุ่มใจ\nชุ่มชื่น\nชุ่มชื้น\nชุมนุมชน\nชูชีพ\nชูโรง\nชู้สาว\nเชยชม\nเชลยศักดิ์\nเชลยศึก\nเช่าซื้อ\nเช้าตรู่\nเช้ามืด\nเชิงกราน\nเชิงกล\nเชิงชั้น\nเชิงชาย\nเชิงซ้อน\nเชิงเดียว\nเชิงเดี่ยว\nเชิงตะกอน\nเชิงเทิน\nเชิงมุม\nเชิดชู\nเชิงอรรถ\nเชี่ยนหมาก\nเชี่ยวชาญ\nเชื่องช้า\nเชื่อใจ\nเชื่อถือ\nเชื่อฟัง\nเชื่อมือ\nเชื้อชาติ\nเชื้อเพลิง\nเชื้อไฟ\nเชื้อโรค\nเชื้อสาย\nเชื้อเชิญ\nเชื่องช้า\nเชือนแช\nเชื่อวัน\nแช่เย็น\nแช่อิ่ม\nแช่มช้อย\nแช่มชื่น\nโชกโชน\nโชติช่วง\nโชติรส\nใช้สอย\nซบเซา\nซมซาน\nซวนเซ\nซอกซอน\nซอกแซก\nซ่องสุม\nซ่องเสพ\nซ่องแซ่ง\nซ่อนรูป\nซ่อนเร้น\nซ่อนหา\nซ่อนกลิ่น\nซ่อนทราย\nซ่อมแซม\nซักค้าน\nซักซ้อม\nซักไซ้\nซักฟอก\nซักแห้ง\nซังกะตาย\nซังตาย\nซัดเซ\nซัดทอด\nซับซ้อน\nซับใน\nซับพระพักตร์\nซากศพ\nซ่านเซ็น\nซ้ำซ้อน\nซ้ำซาก\nซ้ำเติม\nซ้ำร้าย\nซี่โครง\nซีดเซียว\nซึมกะทือ\nซึมซาบ\nซึมเซา\nซึมทราบ\nซึมเศร้า\nซื่อตรง\nซื่อสัตย์\nซื้อขาย\nซุกซน\nซุกซ่อน\nซุบซิบ\nซู่ซ่า\nเซซัง\nเซ่อซ่า\nแซ่ซ้อง\nโซดาไฟ\nญาณทัสนะ\nญาณวิทยา\nญาณศาสตร์\nญาติกา\nฐานราก\nดกดื่น\nดงดิบ\nดลใจ\nดลบันดาล\nดวงแก้ว\nดวงใจ\nดวงเดือน\nดวงตรา\nดวงตา\nดวงสมร\nดอกจัน\nดอกจิก\nดอกบัว\nดอกเบี้ย\nดอกฟ้า\nดอกไม้\nดอกยาง\nดอกเล็บ\nดอกทอง\nดอกสร้อย\nดองยา\nดักคอ\nดักฟัง\nดังนั้น\nดังนี้\nดังหนึ่ง\nดั้งเดิม\nดัดจริต\nดัดแปลง\nดันทุรัง\nดับขันธ์\nดับจิต\nดับชีพ\nด่าทอ\nด่างทับทิม\nด่างพร้อย\nดาดฟ้า\nดาราศาสตร์\nดาลเดือด\nดาวกระจาย\nดาวเคราะห์\nดาวตก\nดาวเทียม\nดาวรุ่ง\nดาวเรือง\nดาวฤกษ์\nดาวหาง\nดาวเหนือ\nดาษดื่น\nดินขาว\nดินดาน\nดินดำ\nดินประสิว\nดินปืน\nดินระเบิด\nดินสอ\nดินสอพอง\nดิ้นรน\nดิบดี\nดีเกลือ\nดีใจ\nดีซ่าน\nดีดัก\nดีเดือด\nดีฝ่อ\nดีดดิ้น\nดึกดำบรรพ์\nดึกดื่น\nดึงดัน\nดึงดูด\nดื่มด่ำ\nดื้อด้าน\nดื้อดึง\nดื้อแพ่ง\nดื้อยา\nดื้อรั้น\nดุดัน\nดุเดือด\nดุร้าย\nดุลการค้า\nดุลพินิจ\nดุลภาค\nดุลยพินิจ\nดุลยภาพ\nดุษฎีนิพนธ์\nดุษฎีบัณฑิต\nดุษณีภาพ\nดูแคลน\nดูถูก\nดูดาย\nดูเบา\nดูแล\nดูหมิ่น\nดูเหมือน\nดูดดื่ม\nเด็ดขาด\nเด็ดดวง\nเด็ดเดี่ยว\nเดนตาย\nเดาสวด\nเดาสุ่ม\nเดินทาง\nเดินสะพัด\nเดินสาย\nเดินเหิน\nเดิมพัน\nเดียงสา\nเดียดฉันท์\nเดียวกัน\nเดียวดาย\nเดี๋ยวเดียว\nเดี๋ยวนี้\nเดือดดาล\nเดือดร้อน\nเดือนมืด\nเดือนหงาย\nแดดาล\nแดดิ้น\nแดกดัน\nโด่เด่\nโด่งดัง\nโดดเดี่ยว\nโดยสาร\nได้การ\nได้แก่\nได้ใจ\nได้ที\nได้ยิน\nได้เสีย\nตกเขียว\nตกค้าง\nตกใจ\nตกต่ำ\nตกแต่ง\nตกทอด\nตกฟาก\nตกมัน\nตกยาก\nตกลง\nตกหล่น\nต้นขั้ว\nต้นคิด\nต้นฉบับ\nต้นตอ\nต้นตำรับ\nต้นทุน\nต้นแบบ\nต้นเพลิง\nต้นมือ\nต้นไม้\nต้นร่าง\nต้นเรื่อง\nต้นสังกัด\nต้นหน\nต้นเหตุ\nตบตา\nตบแต่ง\nตบแผละ\nตบมือ\nต้มข่า\nต้มโคล้ง\nต้มยำ\nต้มส้ม\nตรมตรอม\nตรรกวิทยา\nตรรกศาสตร์\nตรวจการ\nตรวจการณ์\nตรวจตรา\nตระบัดสัตย์\nตรัสรู้\nตราตั้ง\nตราบาป\nตรายาง\nตราสาร\nตริตรอง\nตรีกฏุก\nตรีกาย\nตรีโกณ\nตรีโกณมิติ\nตรีคูณ\nตรีทูต\nตรีปิฎก\nตรีภพ\nตรีมูรติ\nตรึกตรอง\nตรึงตรา\nตรุษจีน\nตฤณชาติ\nตฤณมัย\nตลกบาตร\nตลบตะแลง\nตลบหลัง\nตลาดนัด\nตลาดน้ำ\nตลาดมืด\nตลาดสด\nต่อตี\nต่อเติม\nต่อว่า\nต่อสู้\nต่อกร\nต่อต้าน\nต่อแย้ง\nต้องการ\nต้องโทษ\nต้องหา\nต้อนรับ\nตอบโต้\nตอบแทน\nต่อยหอย\nตะพาบน้ำ\nตักตวง\nตักบาตร\nตั้งเข็ม\nตั้งไข่\nตั้งเค้า\nตั้งแง่\nตั้งใจ\nตั้งต้น\nตั้งแต่\nตั้งท้อง\nตัดขาด\nตัดใจ\nตัดเชือก\nตัดตอน\nตัดทอน\nตัดบท\nตัดพ้อ\nตัดรอน\nตัดสิน\nตับเต่า\nตับแลบ\nตับอ่อน\nตัวกลาง\nตัวการ\nตัวเก็ง\nตัวดี\nตัวตั้ง\nตัวเต็ง\nตัวถัง\nตัวแทน\nตัวประกอบ\nตัวประกัน\nตัวแปร\nตัวผู้\nตัวพิมพ์\nตัวเมีย\nตัวยืน\nตัวเลข\nตัวอย่าง\nตั๋วเงิน\nตั๋วแลกเงิน\nตากล้อง\nตาไก่\nตาข่าย\nตาชั่ง\nตาตุ่ม\nตาทวด\nตาปลา\nตาราง\nต่างหาก\nต้านทาน\nตามใจ\nตายใจ\nตายซาก\nตายด้าน\nตายตัว\nตายทั้งกลม\nตายห่า\nตายโหง\nตาลปัตร\nต่ำช้า\nต่ำต้อย\nตำส้ม\nติเตียน\nติณชาติ\nติดขัด\nติดใจ\nติดต่อ\nติดตั้ง\nติดตาม\nติดตื้น\nติดพัน\nติดลม\nติดอ่าง\nตีเกลียว\nตีขลุม\nตีความ\nตีคู่\nตีจาก\nตีตื้น\nตีแผ่\nตีรวน\nตีลังกา\nตีวง\nตีเสมอ\nตีนกา\nตีนคู้\nตีนจก\nตีนตะขาบ\nตีนผี\nตีนเหยียด\nตึกแถว\nตึกระฟ้า\nตึงเครียด\nตึงตัง\nตื้นตัน\nตื่นตัว\nตื่นตูม\nตื่นเต้น\nตุ๊ต๊ะ\nตุ้บตั้บ\nตุ้มหู\nตุลาการ\nตุลาคม\nตู้นิรภัย\nตูมตาม\nตู้เสบียง\nเตโชธาตุ\nเตร็ดเตร่\nเต้นรำ\nเตาแก๊ส\nเตาผิง\nเตาฟู่\nเตาไฟ\nเตารีด\nเตาสูบ\nเต่าทอง\nเต้ารับ\nเต้าส่วน\nเต้าเสียบ\nเต้าหู้ยี้\nแต่ละ\nแตกคอ\nแตกคอก\nแตกฉาน\nแตกดับ\nแตกตื่น\nแตกพาน\nแตกแยก\nแตกร้าว\nแตกหัก\nแต่งงาน\nแต่งตั้ง\nแต้มคู\nแต้มต่อ\nแตรงอน\nแตรเดี่ยว\nแตรฝรั่ง\nแตรฟันฟาร์\nแตรวง\nโต้ตอบ\nโต้เถียง\nโต้แย้ง\nโต๊ะหมู่\nโต๊ะอิหม่าม\nใต้ถุน\nไต้ก๋ง\nไต่คู้\nไต่เต้า\nไต่ถาม\nไต้ฝุ่น\nไตรจักร\nไตรจีวร\nไตรตรึงษ์\nไตรทวาร\nไตรปิฎก\nไตรเพท\nไตรภพ\nไตรภูมิ\nไตรภาคี\nไตรยางศ์\nไตรรงค์\nไตรรัตน์\nไตรลักษณ์\nไตรโลก\nไตรสรณคมน์\nไตรสิกขา\nไต่สวน\nถกเถียง\nถดถอย\nถนัดถนี่\nถนิมสร้อย\nถมถืด\nถมเถ\nถมไป\nถลากไถล\nถ้วนถี่\nถ้วยฟู\nถ่องแท้\nถอดถอน\nถ้อยคำ\nถ้อยแถลง\nถากถาง\nถ่านไฟฉาย\nถ่านหิน\nถามไถ่\nถ่ายทอด\nถ่ายทุกข์\nถ่ายเท\nถาวรวัตถุ\nถ้ำมอง\nถี่ถ้วน\nถึงใจ\nถูกใจ\nถูกชะตา\nเถรวาท\nเถ้าแก่\nเถ้าแก่เนี้ย\nแถมพก\nแถลงการณ์\nไถ่ถอน\nไถ่ถาม\nทดแทน\nทดรอง\nทดลอง\nทดสอบ\nทนทาน\nทนายความ\nทบทวน\nทแยงมุม\nทรงกลด\nทรงเครื่อง\nทรงเจ้า\nทรัพย์สิน\nทรามชม\nทรามเชย\nทรามวัย\nทรามสงวน\nทรามสวาท\nทรุดโทรม\nทฤษฎีบท\nท้วงติง\nท่วมท้น\nทวาทศ\nทวาทศมาส\nทวาบรยุค\nทวารบาล\nทวิบถ\nทวิบท\nทวิบาท\nทวิภาค\nทวิภาคี\nทวีคูณ\nทศกัณฐ์\nทศชาติ\nทศทิศ\nทศนิยม\nทศพร\nทศพล\nทศพิธราชธรรม\nทศมาส\nทศวรรษ\nท่อไอเสีย\nท้อถอย\nท้อแท้\nทองขาว\nทองคำ\nทองคำขาว\nทองคำเปลว\nทองเค\nทองแดง\nทองบรอนซ์\nทองม้วน\nทองย้อย\nทองสัมฤทธิ์\nทองหยอด\nทองหยิบ\nทองเหลือง\nทองเอก\nท่องเที่ยว\nท้องตรา\nท้องถิ่น\nท้องที่\nท้องน้อย\nท้องร่อง\nท้องเรื่อง\nทอดมัน\nทอดทิ้ง\nทอดน่อง\nทอดยอด\nทอดหุ่ย\nทอยกอง\nทะเบียนบ้าน\nทะเลทราย\nทะเลสาบ\nทะเลหลวง\nทักขิณาวัฏ\nทักท้วง\nทักทาย\nทักษิณาวรรต\nทักษิณาทาน\nทักษิณานุประทาน\nทั้งกลม\nทั้งคน\nทั้งดุ้น\nทั้งที\nทั้งนั้น\nทั้งนี้\nทั้งปวง\nทั้งผอง\nทั้งเพ\nทั้งมวล\nทั้งสิ้น\nทั้งหมด\nทั้งหลาย\nทัณฑ์บน\nทัดทาน\nทัดเทียม\nทันควัน\nทันใจ\nทันใด\nทันตา\nทันสมัย\nทันที\nทับถม\nทับทรวง\nทับศัพท์\nทั่วถึง\nทั่วไป\nท่าทาง\nท่าที\nท้าทาย\nทางการ\nทางข้าม\nทางด่วน\nทางเท้า\nทางโท\nทางใน\nทางผ่าน\nทางม้าลาย\nทางหลวง\nทางออก\nทางเอก\nทานกัณฑ์\nทานตะวัน\nท่านชาย\nทานบารมี\nท่านผู้หญิง\nท่านหญิง\nทาบทาม\nท้ายทอย\nทารุณกรรม\nทำคลอด\nทำใจ\nทำซ้ำ\nทำท่า\nทำที\nทำแท้ง\nทำโทษ\nทำบาป\nทำบุญ\nทำพิษ\nทำฟัน\nทำร้าย\nทำวัตร\nทำสาว\nทำเสน่ห์\nทำหมัน\nทำให้\nทิ้งขว้าง\nทิ้งทวน\nทิ้งท้าย\nทินกร\nทิพจักขุ\nทิพโสต\nทิพยจักษุ\nทิพยญาณ\nทิพยเนตร\nทิพยรส\nทิพากร\nทิ่มตำ\nทิ่มแทง\nทิวากร\nทิวากาล\nทิศทาง\nทีเด็ด\nทีท่า\nทีนี้\nทีหลัง\nทีฆนิกาย\nทีฆสระ\nที่ดิน\nที่นอน\nที่นั่ง\nที่ปรึกษา\nที่พึ่ง\nที่มั่น\nที่ราบ\nที่ว่าการ\nที่สุด\nที่หมาย\nที่ไหน\nทุกที\nทุกเมื่อ\nทุกข์สุข\nทุนทรัพย์\nทุนนิยม\nทุนรอน\nทุนสำรอง\nทุ่มเถียง\nทุ่มเท\nทูนหัว\nทูลกระหม่อม\nเทกระจาด\nเทครัว\nเทพเจ้า\nเทพดา\nเทพธิดา\nเทพนม\nเทพนิยม\nเทพนิยาย\nเทพบุตร\nเทพสังหรณ์\nเทศกาล\nเทศนาโวหาร\nเทศบัญญัติ\nเทศบาล\nเทศมนตรี\nเทห์ฟากฟ้า\nเท่ากับ\nเท่าใด\nเท่าตัว\nเท่าทัน\nเท่าทุน\nเท่าเทียม\nเท่านั้น\nเท่าไร\nเท้าช้าง\nเทิดทูน\nเที่ยงตรง\nเที่ยงแท้\nเที่ยงธรรม\nเทียนชนวน\nเทียนพรรษา\nเทียบเคียง\nเทียบเท่า\nเทือกเขา\nเทือกเถา\nแท็งก์น้ำ\nแท่นพิมพ์\nแท่นมณฑล\nแท่นหมึก\nแทรกซอน\nแทรกซ้อน\nแทรกซึม\nแทรกแซง\nแทะโลม\nไทยดำ\nไทยทาน\nไทยธรรม\nไทยน้อย\nไทยใหญ่\nธงชัย\nธงชาติ\nธงทิว\nธรณีวิทยา\nธรณีสงฆ์\nธรรมกาย\nธรรมการ\nธรรมเกษตร\nธรรมขันธ์\nธรรมคุณ\nธรรมจรรยา\nธรรมจริยา\nธรรมจักร\nธรรมจักษุ\nธรรมจาคะ\nธรรมจารี\nธรรมชาติ\nธรรมดา\nธรรมเนียม\nธรรมราชา\nธรรมศาสตร์\nธรรมสภา\nธรรมสังเวช\nธัญพืช\nธารพระกร\nธีรภาพ\nธีรราช\nนกเขา\nนกต่อ\nนกยูง\nนกรู้\nนกหวีด\nนครบาล\nนครรัฐ\nนงคราญ\nนงนุช\nนงพะงา\nนงเยาว์\nนงราม\nนงลักษณ์\nนบนอบ\nนพเก้า\nนพคุณ\nนพเคราะห์\nนพปฎล\nนพพล\nนพรัตน์\nนพศก\nนพศูล\nนมข้น\nนมผง\nนมไม้\nนมนาน\nนมหนู\nนมแมว\nนรีเวช\nนรีเวชวิทยา\nนวดฟั้น\nนวยนาด\nนวลระหง\nนวลลออ\nนวลละออง\nนวลจันทร์\nนอกครู\nนอกคอก\nนอกจาก\nนอกใจ\nนอกชาน\nนอกรีต\nนอกเหนือ\nนองเนือง\nนองเลือด\nนอนก้น\nนอนใจ\nนอบนบ\nนอนเล่น\nนอบน้อม\nน้อมนำ\nน้อยใจ\nน้อยหน้า\nนักการ\nนักการเมือง\nนักกีฬา\nนักข่าว\nนักท่องเที่ยว\nนักเทศน์\nนักโทษ\nนักธรรม\nนักบวช\nนักบิน\nนักบุญ\nนักปราชญ์\nนักพรต\nนักรบ\nนักเรียน\nนักเลง\nนักวิชาการ\nนักศึกษา\nนักสิทธิ์\nนักสืบ\nนักหนา\nนั่งเทียน\nนั่งร้าน\nนัดแนะ\nนัดหมาย\nนั่นแหละ\nนั่นเอง\nนับถือ\nนับประสา\nนัยน์ตา\nนาดำ\nนาปรัง\nนาปี\nนาสวน\nนาหว่าน\nนาคบาศ\nนาคปรก\nนาคราช\nนางกวัก\nนางกำนัล\nนางงาม\nนางใน\nนางบำเรอ\nนางแบบ\nนางพญา\nนางฟ้า\nนางไม้\nนางโลม\nนางสาว\nนางห้าม\nนางเอก\nนาฏกรรม\nนาฏดนตรี\nนาฏศิลป์\nนานนม\nน่านน้ำ\nน่านฟ้า\nนามกร\nนามธรรม\nนามไธย\nนามบัตร\nนามปากกา\nนามแฝง\nนามสกุล\nนามสงเคราะห์\nนามสมญา\nนายทะเบียน\nนายท่า\nนายท้าย\nนายทุน\nนายประกัน\nนายหน้า\nนายอำเภอ\nนารายณ์หัตถ์\nนารีผล\nนาวิกโยธิน\nนำจับ\nนำพา\nนำทาง\nนำร่อง\nนำสืบ\nนำแสดง\nน้ำกรด\nน้ำกาม\nน้ำเกลือ\nน้ำข้าว\nน้ำแข็ง\nน้ำแข็งไส\nน้ำแข็งแห้ง\nน้ำครำ\nน้ำคร่ำ\nน้ำค้าง\nน้ำค้างแข็ง\nน้ำคาวปลา\nน้ำคำ\nน้ำเค็ม\nน้ำเคย\nน้ำเงิน\nน้ำเงี้ยว\nน้ำจัณฑ์\nน้ำจิ้ม\nน้ำใจ\nน้ำเชื้อ\nน้ำเชื่อม\nน้ำซาวข้าว\nน้ำดอกไม้\nน้ำดี\nน้ำตก\nน้ำตา\nน้ำตาล\nน้ำท่า\nน้ำนม\nน้ำนวล\nน้ำบาดาล\nน้ำประสานทอง\nน้ำประปา\nน้ำปลา\nน้ำป่า\nน้ำผึ้ง\nน้ำพริก\nน้ำพริกเผา\nน้ำพี้\nน้ำพุ\nน้ำมนต์\nน้ำมนตร์\nน้ำมัน\nน้ำมือ\nน้ำมูก\nน้ำเมา\nน้ำย่อย\nน้ำยา\nน้ำรัก\nน้ำแร่\nน้ำลาย\nน้ำเลี้ยง\nน้ำสต๊อก\nน้ำส้ม\nน้ำส้มสายชู\nน้ำสังข์\nน้ำสาบาน\nน้ำเสียง\nน้ำหนวก\nน้ำหนอง\nน้ำหนัก\nน้ำหน้า\nน้ำหนึ่ง\nน้ำหมึก\nน้ำหอม\nน้ำเหลือง\nน้ำอบ\nน้ำอ้อย\nน้ำอัดลม\nนิ่งเฉย\nนิจศีล\nนิดเดียว\nนิดหน่อย\nนิติกร\nนิติกรรม\nนิติธรรม\nนิตินัย\nนิติบัญญัติ\nนิติบุคคล\nนิติภาวะ\nนิติวิทยาศาสตร์\nนิติเวช\nนิติเวชศาสตร์\nนิติศาสตร์\nนิเทศศาสตร์\nนิ่มนวล\nนิรุกติศาสตร์\nนิเวศวิทยา\nนิศากร\nนิศากาล\nนิศาชล\nนิศารัตน์\nนี่แน่ะ\nนี่แหละ\nนี่เอง\nนึกคิด\nนุงถุง\nนุ่งห่ม\nนุ่มนวล\nนุ่มนิ่ม\nเนตรนารี\nเนติบัณฑิต\nเนยเทียม\nเนยใส\nเนิ่นนาน\nเนิบนาบ\nเนื้อความ\nเนื้อคู่\nเนื้อเค็ม\nเนื้องอก\nเนื้อตัว\nเนื้อตาย\nเนื้อที่\nเนื้อแท้\nเนื้อเปื่อย\nเนื้อผ้า\nเนื้อเพลง\nเนื้อไม้\nเนื้อเยื่อ\nเนื้อร้อง\nเนื้อร้าย\nเนื้อเรื่อง\nเนื้อหา\nเนืองนอง\nเนืองนิตย์\nเนืองแน่น\nแน่ใจ\nแน่ชัด\nแน่แท้\nแน่นอน\nแน่นิ่ง\nแน่แน่ว\nแน่นแฟ้น\nแน่นหนา\nแนบเนียน\nแนบแน่น\nแนวคิด\nแนวทาง\nแนวโน้ม\nแนวป่า\nแนวรบ\nแนวร่วม\nแนวหน้า\nแนวหลัง\nแน่วแน่\nแนะนำ\nแนะแนว\nโน้มน้าว\nในหลวง\nบกพร่อง\nบงกช\nบงการ\nบดบัง\nบทกลอน\nบทกวี\nบทความ\nบทคัดย่อ\nบทเฉพาะกาล\nบทนำ\nบทบัญญัติ\nบทบาท\nบทประพันธ์\nบทเพลง\nบทร้อง\nบทเรียน\nบทลงโทษ\nบทสนทนา\nบทอัศจรรย์\nบทจร\nบทบงสุ์\nบทมาลย์\nบทรัช\nบทเรศ\nบทวลัญช์\nบนบาน\nบรมครู\nบรมธาตุ\nบรมบพิตร\nบรมวงศานุวงศ์\nบรมอัฐิ\nบรรณพิภพ\nบรรณศาลา\nบรรณาการ\nบรรณาธิการ\nบรรณานุกรม\nบรรณารักษ์\nบรรณารักษศาสตร์\nบรรดามี\nบรรดาศักดิ์\nบรรทัดฐาน\nบรรพบุรุษ\nบรรลัยกัลป์\nบรรลัยจักร\nบริคณห์สนธิ\nบวงสรวง\nบ่วงบาศ\nบ้วนพระโอษฐ์\nบ่อเกิด\nบอกกล่าว\nบอกบท\nบอกบุญ\nบอกใบ้\nบอกปัด\nบ้องกัญชา\nบ้องตื้น\nบ้องไฟ\nบ้องหู\nบอดสี\nบ่อนทำลาย\nบอบช้ำ\nบอบบาง\nบอบแบบ\nบังโกลน\nบังโคลน\nบังใบ\nบั้งไฟ\nบังคับการ\nบังคับบัญชา\nบัญชาการ\nบัณฑุกัมพล\nบัดดล\nบัดเดี๋ยว\nบัดนั้น\nบัดนี้\nบัดสีบัดเถลิง\nบัตรเครดิต\nบัตรพลี\nบัตรสนเท่ห์\nบัตรสินเชื่อ\nบั่นทอน\nบั้นท้าย\nบั้นปลาย\nบั้นพระองค์\nบั้นเอว\nบันไดลิง\nบันไดเลื่อน\nบันเทิงคดี\nบัวลอย\nบัวบก\nบ้าจี้\nบ้าดีเดือด\nบ้าน้ำลาย\nบ้าบิ่น\nบ้าระห่ำ\nบ้าเลือด\nบ้าหอบฟาง\nบากบั่น\nบากหน้า\nบางตา\nบางเบา\nบางที\nบาดเจ็บ\nบาดแผล\nบาดหมาง\nบาตรใหญ่\nบาทบงกช\nบาทบงสุ์\nบาทบริจาริกา\nบาทวิถี\nบานเกล็ด\nบานตะเกียง\nบานตะไท\nบานเบอะ\nบานปลาย\nบานแผละ\nบานพับ\nบ้านจัดสรร\nบ้านช่อง\nบ้านนอก\nบ้านพัก\nบ้านเมือง\nบ้านรับรอง\nบ้านเรือน\nบาปกรรม\nบายศรี\nบ่ายเบี่ยง\nบ่ายหน้า\nบ่าวไพร่\nบิดเบี้ยว\nบิดเบือน\nบิดพลิ้ว\nบี้แบน\nบีบคั้น\nบีบรัด\nบึ้งตึง\nบึ้งบูด\nบุกบั่น\nบุกเบิก\nบุกรุก\nบุคลิกภาพ\nบุคลิกลักษณะ\nบุญธรรม\nบุญนิธิ\nบุญฤทธิ์\nบุบสลาย\nบุ้ยใบ้\nบุรุษเพศ\nบุหงารำไป\nบู้บี้\nบูชายัญ\nบูดบึ้ง\nบูดเบี้ยว\nเบาความ\nเบาใจ\nเบาบาง\nเบาปัญญา\nเบามือ\nเบาแรง\nเบาสมอง\nเบาหวาน\nเบาโหวง\nเบ้าตา\nเบาะแส\nเบิกความ\nเบิกบาน\nเบี้ยล่าง\nเบี้ยเลี้ยง\nเบี้ยหวัด\nเบี่ยงบ่าย\nเบียดบัง\nเบียดเบียน\nเบียดเสียด\nเบื้องต้น\nเบื้องบน\nเบื้องหน้า\nเบื้องหลัง\nแบกะดิน\nแบเบาะ\nแบ่งเบา\nแบ่งปัน\nแบ่งแยก\nแบบฉบับ\nแบบแปลน\nแบบแผน\nแบบฝึกหัด\nแบบพิมพ์\nแบบสอบถาม\nแบบอย่าง\nแบะแฉะ\nแบะท่า\nโบแดง\nโบราณคดี\nโบราณวัตถุ\nโบราณสถาน\nใบขับขี่\nใบจอง\nใบตอง\nใบแทรก\nใบบอก\nใบบุญ\nใบเบิกทาง\nใบปลิว\nใบพัด\nใบโพ\nใบไม้\nใบระกา\nใบรับรอง\nใบลา\nใบเลี้ยง\nใบสั่ง\nใบสำคัญ\nใบสุทธิ\nใบเสร็จ\nใบหน้า\nใบอนุญาต\nใบระกา\nปกครอง\nปกคลุม\nปกป้อง\nปกปิด\nปฏิบัติการ\nปฏิบัติบูชา\nปฐพีวิทยา\nปฐมฌาน\nปฐมทัศน์\nปฐมเทศนา\nปฐมนิเทศ\nปฐมพยาบาล\nปฐมยาม\nปฐมฤกษ์\nปฐมวัย\nปฐมสมโพธิ\nปนเป\nป่นปี้\nปมเขื่อง\nปมเด่น\nปมด้อย\nปรนเปรอ\nปรบไก่\nปรบมือ\nปรสิตวิทยา\nประโปรย\nประพรม\nประกันชีวิต\nประกันภัย\nประจักษ์พยาน\nประจัญบาน\nประจันหน้า\nประจำการ\nประจำเดือน\nประจำเมือง\nประจำยาม\nประชดประชัน\nประชากร\nประชากรศาสตร์\nประชาคม\nประชาชน\nประชาราษฎร์\nประชาชาติ\nประชาชี\nประชาทัณฑ์\nประชาบาล\nประชาพิจารณ์\nประชาภิบาล\nประชามติ\nประชาสงเคราะห์\nประชาสัมพันธ์\nประดับประดา\nประดามี\nประดาน้ำ\nประเดี๋ยวเดียว\nประเดี๋ยวนี้\nประทับใจ\nประทุษร้าย\nประเทศราช\nประพาสต้น\nประเพณีนิยม\nประลัยกัลป์\nประวัติการณ์\nประวัติศาสตร์\nประสบการณ์\nประสบการณ์นิยม\nประสาทการ\nประสูติการ\nประสูติกาล\nประเส\nปรับทุกข์\nปรับโทษ\nปรับปรุง\nปรากฏการณ์\nปราดเปรียว\nปราดเปรื่อง\nปราบปราม\nปริญญาบัตร\nปรัยัติธรรม\nปรุโปร่ง\nปลงใจ\nปลงตก\nปลดทุกข์\nปลดปลง\nปลดปล่อย\nปลดเปลื้อง\nปลดระวาง\nปลดแอก\nปล้นสะดม\nปลอกกระสุน\nปลอกคอ\nปลอดโปร่ง\nปลอดภัย\nปลอมปน\nปลอมแปลง\nปลอบโยน\nปล่อยใจ\nปล่อยตัว\nปล่อยปละ\nปลั๊กไฟ\nปลากริม\nปลาเค็ม\nปลาจ่อม\nปลาเจ่า\nปลาแดก\nปลาตู้\nปลาทอง\nปลาร้า\nปลาส้ม\nปลาดาว\nปลาบิน\nปลาฝา\nปลาวาฬ\nปลาหมึก\nปลาบปลื้ม\nปลายข้าว\nปลายแถว\nปลายทาง\nปลิ้นปลอก\nปลิ้นปล้อน\nปลีกตัว\nปลีกย่อย\nปลุกใจ\nปลุกปล้ำ\nปลุกปั่น\nปลุกระดม\nปลุกเสก\nปลูกฝัง\nปลูกสร้าง\nปวดถ่วง\nปวดมวน\nปวดร้าว\nป่วนปั่น\nป่วยการ\nปอกลอก\nป้องกัน\nปักใจ\nปักดำ\nปักหลัก\nปัจเจกบุคคล\nปัจเจกพุทธะ\nปัจเจกโพธิ\nปัจฉิมชน\nปัจฉิมทิศ\nปัจฉิมภาค\nปัจฉิมยาม\nปัจฉิมลิขิต\nปัจฉิมวัย\nปัจฉิมวาจา\nปัญญาชน\nปัญญาวิมุติ\nปัญญาอ่อน\nปัดเป่า\nปันส่วน\nปั่นป่วน\nปั่นแปะ\nปั่นหัว\nปั้นจิ้ม\nปั้นเจ๋อ\nปั้นปึ่ง\nปั้นสิบ\nปั๊มน้ำมัน\nป่าช้า\nป่าชายเลน\nป่าดง\nป่าดงดิบ\nป่าดิบ\nป่าเถื่อน\nป่าเบญจพรรณ\nป่าละเมาะ\nปากกา\nปากขอ\nปากแข็ง\nปากคอ\nปากคำ\nปากคีบ\nปากจัด\nปากน้ำ\nปากเปล่า\nปากเสียง\nปานกลาง\nป่านนี้\nป้านลม\nป้ายสี\nป่าวร้อง\nปิดฉาก\nปิดบัง\nปิตุฆาต\nปิตุภูมิ\nปีมะโว้\nปีแสง\nปี่กลาง\nปี่ไฉน\nปี่ชวา\nปี่นอก\nปี่ใน\nปี่พาทย์\nปี่อ้อ\nปีกกา\nปีนเกลียว\nปีนป่าย\nปึกแผ่น\nปึงปัง\nปืนกล\nปืนครก\nปืนพก\nปืนยา\nปืนยาว\nปืนลม\nปืนเล็ก\nปืนเล็กยาว\nปืนสั้น\nปืนใหญ่\nปุบปับ\nปุ๊บปั๊บ\nปุ่มเปือก\nปุยฝ้าย\nปุ๋ยคอก\nปุ๋ยเคมี\nปุ๋ยวิทยาศาสตร์\nปุ๋ยหมัก\nปุ๋ยอินทรีย์\nปูจ๋า\nปูเสฉวน\nปู่เจ้า\nปู่ทวด\nปูนขาว\nปูนซีเมนต์\nปูนดิบ\nปูนแดง\nปูนปลาสเตอร์\nปูนปั้น\nเป็ดเทศ\nเป็ดน้ำ\nเป็นกลาง\nเป็นใจ\nเป็นต้น\nเป็นต่อ\nเป็นรอง\nเป็นไร\nเป็นลม\nเป็นห่วง\nเป็นอยู่\nเปรมปรีดิ์\nเปรอะเปื้อน\nเปรียบเทียบ\nเปรียบเปรย\nเปรี้ยวปาก\nเปรี้ยวหวาน\nเปรื่องปราด\nเปลญวน\nเปล่งปลั่ง\nเปล่าดาย\nเปล่าเปลี่ยว\nเปลี่ยนใจ\nเปลี่ยนตัว\nเปลี่ยนแปลง\nเปลี่ยนมือ\nเปลี่ยนหน้า\nเป๋อเหลอ\nเปะปะ\nเป่ากบ\nเป้านิ่ง\nเป้าหมาย\nเปิดฉาก\nเปิดเปิง\nเปิดโปง\nเปิดผนึก\nเปิดเผย\nเปียกปูน\nแป้งสาลี\nแป้งนวล\nแป้งเปียก\nแป้งมัน\nแป้งฝุ่น\nแป้งร่ำ\nแป้งสิงคโปร์\nแป้งหมี่\nแปดปน\nแปดเปื้อน\nแปรปรวน\nแปรผัน\nแปรพักตร์\nแปรรูป\nแปรอักษร\nแปลกปลอม\nแปะโป้ง\nโป้ปด\nโปร่งแสง\nโปร่งใส\nโปรดปราน\nโปรยทาน\nโปรยปราย\nโปโลน้ำ\nผกผัน\nผกากรอง\nผงขาว\nผงชูรส\nผงซักฟอก\nผงฟู\nผดุงครรภ์\nผมไฟ\nผลพลอยได้\nผลลัพธ์\nผลัดเปลี่ยน\nผลิตผล\nผลิตภัณฑ์\nผลุบโผล่\nผสมเทียม\nผสมผสาน\nผสมผเส\nผสมพันธุ์\nผสมโรง\nผสมเสร็จ\nผ่องแผ้ว\nผ่องใส\nผ่อนคลาย\nผ่อนชำระ\nผ่อนปรน\nผ่อนผัน\nผ่อนส่ง\nผอมโซ\nผอมแห้ง\nผักชี\nผักตบชวา\nผักบุ้ง\nผังเมือง\nผัดผ่อน\nผันแปร\nผันผวน\nผ่าตัด\nผ่าเผย\nผ่าหมาก\nผ่าเหล่า\nผ้าขนหนู\nผ้าขาวม้า\nผ้าขี้ริ้ว\nผ้าเช็ดตัว\nผ้าเช็ดปาก\nผ้าเช็ดมือ\nผ้าเช็ดหน้า\nผ้าดิบ\nผ้าต่วน\nผ้าไตร\nผ้าถุง\nผ้าแถบ\nผ้านวม\nผ้านุ่ง\nผ้าใบ\nผ้าป่า\nผ้าป่าน\nผ้าผ่อน\nผ้าพันคอ\nผ้าพันแผล\nผ้าแพร\nผ้าโพกหัว\nผ้ามัดหมี่\nผ้ายาง\nผ้าลูกไม้\nผ้าเหลือง\nผ้าอนามัย\nผ้าอ้อม\nผาดโผน\nผาติกรรม\nผิดหวัง\nผิวเผิน\nผิวพรรณ\nผิวหนัง\nผีกระสือ\nผีกระหัง\nผีกองกอย\nผีโขมด\nผีดิบ\nผีตองเหลือง\nผีถ้วยแก้ว\nผีแถน\nผีทะเล\nผีบุญ\nผีปอบ\nผีพุ่งไต้\nผีฟ้า\nผีเรือน\nผีสาง\nผีเสื้อ\nผีห่า\nผึ่งผาย\nผุดผ่อง\nผุดผาด\nผู้คน\nผู้คุม\nผู้จัดการ\nผู้ชาย\nผู้เชี่ยวชาญ\nผู้ดี\nผู้โดยสาร\nผู้ต้องขัง\nผู้ต้องหา\nผู้แทน\nผู้น้อย\nผู้บริโภค\nผู้บังคับบัญชา\nผู้ปกครอง\nผู้ประกอบการ\nผู้ป่วย\nผู้พิพากษา\nผู้เยาว์\nผู้ร้าย\nผู้วิเศษ\nผู้สื่อข่าว\nผู้เสียหาย\nผู้หญิง\nผู้ใหญ่\nผู้ใหญ่บ้าน\nผูกขวัญ\nผูกขาด\nผูกพัน\nผูกมัด\nเผชิญหน้า\nเผด็จการ\nเผด็จศึก\nเผยแผ่\nเผยแพร่\nเผละผละ\nเผ่าพันธุ์\nเผื่อแผ่\nแผงลอย\nแผนการ\nแผนงาน\nแผนที่\nแผนผัง\nแผนภาพ\nแผนภูมิ\nแผ่นดิน\nแผ่นเสียง\nแผ้วพาน\nโผงผาง\nฝนทอง\nฝอยทอง\nฝักแค\nฝักบัว\nฝักฝ่าย\nฝักใฝ่\nฝังใจ\nฝังหัว\nฝาชี\nฝาแฝด\nฝาละมี\nฝ่าพระบาท\nฝ่าฝืน\nฝ่าฟัน\nฝ้าฟาง\nฝากตัว\nฝากฝัง\nฝีดาษ\nฝีมะม่วง\nฝีจักร\nฝีเท้า\nฝีปาก\nฝีพาย\nฝีมือ\nฝีเย็บ\nฝึกงาน\nฝึกปรือ\nฝึกฝน\nฝึกสอน\nฝึกหัด\nฝืดเคือง\nใฝ่ฝัน\nพงพี\nพงศ์พันธุ์\nพญาโศก\nพญาไฟ\nพบปะ\nพบพาน\nพรสวรรค์\nพรมคด\nพรมแดน\nพรมมิ\nพรรคพวก\nพรรณราย\nพรวดพราด\nพรหมชาติ\nพรหมลิขิต\nพรหมโลก\nพรหมวิหาร\nพร้อมใจ\nพร้อมพรั่ง\nพร้อมเพรียง\nพร้อมมูล\nพร้อมสรรพ\nพร้อมหน้า\nพระครู\nพระคุณ\nพระเคราะห์\nพระเครื่อง\nพระเจ้า\nพระเจ้าอยู่หัว\nพระชายา\nพระทัย\nพระนาง\nพระนางเจ้า\nพระเป็นเจ้า\nพระผู้เป็นเจ้า\nพระพิมพ์\nพระพุทธเจ้า\nพระพุทธองค์\nพระภูมิ\nพระยา\nพระรอง\nพระสนม\nพระสนมเอก\nพระองค์\nพระองค์เจ้า\nพระเอก\nพรั่งพร้อม\nพรั่งพรู\nพรั่นพรึง\nพร่างพราว\nพรายน้ำ\nพรายแพรว\nพราวแพรว\nพร่ำพลอด\nพร่ำเพรื่อ\nพร่ำเพ้อ\nพริกไทย\nพริ้งพราย\nพริ้งเพรา\nพริ้งเพริศ\nพริบตา\nพริ้มพราย\nพริ้มเพรา\nพรุ่งนี้\nพฤติกรรม\nพฤติการณ์\nพฤตินัย\nพลการ\nพลขับ\nพลความ\nพลเมือง\nพลรบ\nพลร่ม\nพลเรือน\nพลโลก\nพลศึกษา\nพลบค่ำ\nพลอดรัก\nพลังงาน\nพลังเงียบ\nพลังจิต\nพลั้งปาก\nพลั้งเผลอ\nพลั้งพลาด\nพลัดถิ่น\nพลัดพราก\nพลาดท่า\nพลาดพลั้ง\nพลิกแพลง\nพลีกรรม\nพลุ่งพล่าน\nพวกพ้อง\nพวงมาลัย\nพวงมาลา\nพวงหรีด\nพวงคราม\nพวงชมพู\nพวงแสด\nพ่วงพี\nพวยน้ำ\nพวยพุ่ง\nพสกนิกร\nพหุคูณ\nพหุภาคี\nพหูพจน์\nพหูสูต\nพอควร\nพอใจ\nพอใช้\nพอใช้ได้\nพอดี\nพอตัว\nพอทำเนา\nพอประมาณ\nพอเพียง\nพอแรง\nพอสมควร\nพอเหมาะ\nพ่อขุน\nพ่อครัว\nพ่อตา\nพ่อบ้าน\nพ่อพันธุ์\nพ่อม่าย\nพ่อเมือง\nพ่อเลี้ยง\nพ่อสื่อ\nพอกพูน\nพ้องพาน\nพักผ่อน\nพักพิง\nพักฟื้น\nพักร้อน\nพักแรม\nพัดยศ\nพัดลม\nพันพัว\nพับฐาน\nพับเพียบ\nพัวพัน\nพาซื่อ\nพาดพิง\nพิณพาทย์\nพิธีกร\nพิธีกรรม\nพิธีการ\nพิธีรีตอง\nพิธีสาร\nพินัยกรรม\nพิมพ์เขียว\nพิมพ์ใจ\nพิมพ์ดีด\nพิษสง\nพี่น้อง\nพี่เบิ้ม\nพี่เลี้ยง\nพึงใจ\nพึงพอใจ\nพึ่งพา\nพึ่งพิง\nพืชพันธุ์\nพืชมงคล\nพื้นฐาน\nพื้นที่\nพื้นบ้าน\nพื้นเพ\nพื้นเมือง\nพื้นเสีย\nพุพอง\nพุทธกาล\nพุทธคุณ\nพุทธจักร\nพุทธเจดีย์\nพุทธฎีกา\nพุทธปฏิมา\nพุทธปฏิมากร\nพุทธมามกะ\nพุทธศักราช\nพุทธศาสนิกชน\nพุทธองค์\nพุทธชาด\nพุทธรักษา\nพุ่มพวง\nพุ่มไม้\nพู่กัน\nพูดจา\nเพ่งเล็ง\nเพดานบิน\nเพดานปาก\nเพริศพราย\nเพริศพริ้ง\nเพริศแพร้ว\nเพรียกพร้อง\nเพรียวลม\nเพลงเชิด\nเพลงยาว\nเพลิงกัลป์\nเพลินใจ\nเพลินตา\nเพลี่ยงพล้ำ\nเพ้อฝัน\nเพาะกาย\nเพาะชำ\nเพาะปลูก\nเพิกถอน\nเพิกเฉย\nเพิ่มเติม\nเพิ่มพูน\nเพียงตา\nเพียงพอ\nเพียบแประ\nเพียบพร้อม\nเพื่อนเกลอ\nเพื่อนตาย\nเพื่อนบ้าน\nเพื่อนฝูง\nเพื่อนยาก\nแพ้ท้อง\nแพร่หลาย\nแพร่งพราย\nแพรวพราว\nโพธิญาณ\nโพธิบัลลังก์\nโพธิสมภาร\nโพธิสัตว์\nโพ้นทะเล\nโพยภัย\nไพ่ตาย\nไพ่ป๊อก\nไพรวัน\nไพรสณฑ์\nไพรสัณฑ์\nไพร่พล\nไพร่ฟ้า\nไพร่สม\nไพร่ส่วย\nไพร่หลวง\nฟกช้ำ\nฟองเต้าหู้\nฟองน้ำ\nฟองมัน\nฟ้องกลับ\nฟ้องร้อง\nฟอนเฟะ\nฟักทอง\nฟัดเฟียด\nฟันดาบ\nฟันฝ่า\nฟันแท้\nฟันน้ำนม\nฟันปลา\nฟันฟาง\nฟันเฟือง\nฟันม้า\nฟันเลื่อย\nฟันหนู\nฟั่นเฝือ\nฟั่นเฟือน\nฟื้นตัว\nฟื้นฝอย\nฟื้นฟู\nฟุ้งซ่าน\nฟุ้งเฟ้อ\nฟุ้งเฟื่อง\nฟุตบอล\nฟูฟ่อง\nฟูเฟื่อง\nฟูมฟัก\nฟูมฟาย\nเฟะฟะ\nเฟื่องฟ้า\nเฟื่องฟุ้ง\nเฟื่องฟู\nไฟฉาย\nไฟแช็ก\nไฟธาตุ\nไฟฟ้า\nภัตกิจ\nภาคทัณฑ์\nภาคพื้น\nภาคเรียน\nภาคภูมิ\nภาพถ่าย\nภาพนิ่ง\nภาพประกอบ\nภาพพจน์\nภาพยนตร์\nภาพลวงตา\nภาพลักษณ์\nภายนอก\nภายใน\nภายหน้า\nภายหลัง\nภารกิจ\nภารธุระ\nภารโรง\nภารตวิทยา\nภาษาศาสตร์\nภาสกร\nภิญโญภาพ\nภินชาติ\nภูธร\nภูธเรศ\nภูบาล\nภูเบศ\nภูเบศวร์\nภูเขา\nภูเขาไฟ\nภูผา\nภูตคาม\nภูตบดี\nภูตรูป\nภูเตศวร\nภูมินทร์\nภูมิบาล\nภูมิประเทศ\nภูมิภาค\nภูมิรัฐศาสตร์\nภูมิลำเนา\nภูมิศาสตร์\nภูมิอากาศ\nภูมิธรรม\nภูมิปัญญา\nภูมิรู้\nภูมิใจ\nภูมิฐาน\nภูมิคุ้มกัน\nภูมิแพ้\nภูษาโยง\nเภทภัย\nเภสัชกร\nเภสัชกรรม\nเภสัชวิทยา\nเภสัชศาสตร์\nโภคทรัพย์\nโภคภัณฑ์\nโภชนากร\nโภชนาการ\nมกุฎราชกุมาร\nมงคลแฝด\nมงคลสูตร\nมงคลหัตถี\nมณเฑียรบาล\nมดดำ\nมดแดง\nมดเท็จ\nมดยอบ\nมดลูก\nมธุปายาส\nมธุรส\nมนเทียรบาล\nมนุษย์กบ\nมโนกรรม\nมโนคติ\nมโนทุจริต\nมโนธรรม\nมโนภาพ\nมโนมัย\nมโนรถ\nมโนรมย์\nมโนสุจริต\nมรรคนายก\nมรรคผล\nมฤคชาติ\nมฤคทายวัน\nมฤคราช\nมลทิน\nมลพิษ\nมลสาร\nมวกเหล็ก\nม้วนหน้า\nมวยไทย\nมวยปล้ำ\nมวยล้ม\nมวยวัด\nมวยสากล\nมวยหมู่\nมวลสาร\nมอคราม\nมอซอ\nมอหมึก\nมองเมียง\nมอบตัว\nมอบหมาย\nมอมเมา\nมะขามเทศ\nมะขามป้อม\nมะขามเปียก\nมะเขือเทศ\nมะเขือพวง\nมะพร้าวแก้ว\nมักคุ้น\nมักจี่\nมักง่าย\nมักน้อย\nมักมาก\nมักใหญ่\nมั่งคั่ง\nมั่งมี\nมัจจุราช\nมัชฌิมนิกาย\nมัชฌิมประเทศ\nมัชฌิมยาม\nมัชฌิมวัย\nมัดจำ\nมัดหมี่\nมัธยมกาล\nมัธยมศึกษา\nมันแกว\nมันเทศ\nมันฝรั่ง\nมันเปลว\nมันสมอง\nมั่นคง\nมั่นใจ\nมั่นหมาย\nมั่นเหมาะ\nมัวเมา\nมัวหมอง\nมั่วสุม\nม้าเทศ\nม้าน้ำ\nม้ามืด\nม้าเร็ว\nม้าล่อ\nม้าลาย\nมากมาย\nมาตรการ\nมาตรฐาน\nมาตราส่วน\nมาตุคาม\nมาตุฆาต\nมาตุภูมิ\nม่านตา\nม่านบังตา\nมายากร\nมายากล\nมายาการ\nมายาวี\nมารผจญ\nมารวิชัย\nมารสังคม\nมารหัวขน\nมาลาการ\nมิ่งขวัญ\nมิ่งมิตร\nมิจฉาจาร\nมิจฉาชีพ\nมิดชิด\nมิดเมี้ยน\nมิดหมี\nมิตรจิต\nมิตรภาพ\nมิตรสหาย\nมิน่า\nมีหน้า\nมีดโกน\nมีดดาบ\nมีดโต้\nมีดพก\nมีดพับ\nมีดสั้น\nมึนงง\nมึนชา\nมึนตึง\nมึนเมา\nมืดครึ้ม\nมืดมน\nมืดมัว\nมือจับ\nมือดี\nมือเติบ\nมือปืน\nมือเปล่า\nมือมืด\nมือสอง\nมือเสือ\nมือหนึ่ง\nมือใหม่\nมุกตลก\nมุขปาฐะ\nมุขมนตรี\nมุ่งมั่น\nมุ่งมาด\nมุ่งหน้า\nมุ่งหมาย\nมุ่งหวัง\nมุ้งลวด\nมุ้งสายบัว\nมุมก้ม\nมุมกลับ\nมุมเงย\nมุมฉาก\nมุมตรง\nมุมป้าน\nมุมมืด\nมุมแย้ง\nมุมสะท้อน\nมุมหักเห\nมุมแหลม\nมุสาวาท\nมูกเลือด\nมูกมัน\nมูกหลวง\nมูนดิน\nมูลฐาน\nมูลนาย\nมูลนิธิ\nมูลเหตุ\nมูลค่า\nมูลฝอย\nเม็ดเงิน\nเม็ดเลือด\nเม็ดโลหิต\nเม่นทะเล\nเมรุมาศ\nเมรุราช\nเมล์อากาศ\nเมาดิบ\nเมามัน\nเมามัว\nเมามาย\nเมินเฉย\nเมียน้อย\nเมียหลวง\nเมียงมอง\nเมี่ยงลาว\nเมี่ยงส้ม\nเมื่อกี้\nเมื่อตะกี้\nเมื่อใด\nเมื่อไร\nเมื่อไหร่\nเมื่อนั้น\nเมืองขึ้น\nเมืองท่า\nเมืองนอก\nเมืองหลวง\nเมื่อยขบ\nเมื่อยล้า\nแม่กอง\nแม่กุญแจ\nแม่คุณ\nแม่งาน\nแม่เจ้า\nแม่ชี\nแม่ทัพ\nแม่นม\nแม่น้ำ\nแม่บท\nแม่บ้าน\nแม่เบี้ย\nแม่พระ\nแม่พิมพ์\nแม่เพลง\nแม่มด\nแม่ม่าย\nแม่ไม้\nแม่ยก\nแม่ยาย\nแม่ร้าง\nแม่เรือน\nแม่แรง\nแม่เล้า\nแม่เลี้ยง\nแม่สี\nแม่สื่อ\nแม่เหล็ก\nแมงมุม\nแม่นยำ\nแมลงช้าง\nแมลงวัน\nแมลงปอ\nแมลงภู่\nแมลงเม่า\nแมวเซา\nแมวน้ำ\nแมวป่า\nแมวมอง\nไม้กลัด\nไม้กวาด\nไม้กางเขน\nไม้เกาหลัง\nไม้ขีดไฟ\nไม้จิ้มฟัน\nไม้เด็ด\nไม้ตาย\nไม้ตีพริก\nไม้ที\nไม้เท้า\nไม้บรรทัด\nไม้เมตร\nไม้ระแนง\nไม้เรียว\nไม้หมอน\nไม้อัด\nไม้จัตวา\nไม้ตรี\nไม้ไต่คู้\nไม้โท\nไม้ผัด\nไม้มลาย\nไม้ม้วน\nไม้ยมก\nไม้หน้า\nไม้หันอากาศ\nไม้เอก\nยกกลีบ\nยกครู\nยกเครื่อง\nยกเค้า\nยกทรง\nยกฟ้อง\nยกเมฆ\nยกยอ\nยกย่อง\nยกเลิก\nยกเว้น\nย่นย่อ\nยมทูต\nยมบาล\nยมราช\nยมโลก\nยวดยิ่ง\nยวดยาน\nยวนยี\nยวบยาบ\nย่อท้อ\nย่อส่วน\nย่อหน้า\nย่อหย่อน\nยอกย้อน\nยองใย\nย่องเบา\nย่องแย่ง\nยอดเยี่ยม\nยอดอก\nย้อนยอก\nย้อนรอย\nย้อนศร\nย้อนแสง\nย้อนหลัง\nยอบแยบ\nยอมความ\nย่อมเยา\nย่อยยับ\nยักยอก\nยักย้าย\nยักเยื้อง\nยัญกรรม\nยัญพิธี\nยัดเยียด\nยับเยิน\nยับยั้ง\nยั่วยวน\nยั่วยุ\nยั่วเย้า\nยากวาด\nยากันยุง\nยาเขียว\nยาใจ\nยาฉุน\nยาชา\nยาซัด\nยาดอง\nยาแดง\nยาถ่าย\nยาธาตุ\nยานัตถุ์\nยาเบื่อ\nยาโป๊\nยาแฝด\nยาพิษ\nยาระบาย\nยาสลบ\nยาสั่ง\nยาสีฟัน\nยาสูบ\nยาเส้น\nยาเสพติด\nยาหม่อง\nยาเหลือง\nย่าทวด\nย่านาง\nยากแค้น\nยากจน\nยากเย็น\nยากไร้\nยางนอก\nยางใน\nยางมะตอย\nยางมะตูม\nยางลบ\nยางสน\nยางอาย\nย่างกราย\nย่างเยื้อง\nย่างสด\nย่างสามขุม\nย่างเหยียบ\nยานเกราะ\nยานพาหนะ\nยานอวกาศ\nยานคาง\nยายทวด\nยาวเฟื้อย\nยาวยืด\nยาวเหยียด\nยำทวาย\nยำใหญ่\nยำเกรง\nยำเยง\nย่ำต๊อก\nย่ำยี\nย่ำแย่\nยิงเป้า\nยิ่งนัก\nยิ่งยวด\nยิ่งใหญ่\nยินดี\nยินยอม\nยินร้าย\nยิ้มกริ่ม\nยิ้มแฉ่ง\nยิ้มแต้\nยิ้มแป้น\nยิ้มเผล่\nยิ้มเยาะ\nยิ้มแย้ม\nยียวน\nยึดครอง\nยึดถือ\nยึดมั่น\nยึดเหนี่ยว\nยืดยาด\nยืดยาว\nยืดเยื้อ\nยืดหยุ่น\nยืดอก\nยืนกราน\nยืนต้น\nยืนพื้น\nยืนยง\nยืนยัน\nยืนหยัด\nยื้อยุด\nยุยง\nยุแยง\nยุแหย่\nยุคลบาท\nยุคเข็ญ\nยุคทอง\nยุคมืด\nยุ่งขิง\nยุ่งยาก\nยุ่งเหยิง\nยุติธรรม\nยุทธการ\nยุทธนาวี\nยุทธปัจจัย\nยุทธภัณฑ์\nยุทธภูมิ\nยุทธวิธี\nยุทธศาสตร์\nยุทธหัตถี\nยุทธนาการ\nยุทธนาธิการ\nยุบยับ\nยุบยิบ\nยุพราช\nยู่ยี่\nเย็นเจี๊ยบ\nเย็นใจ\nเย็นฉ่ำ\nเย็นเฉียบ\nเย็นชา\nเย็นชืด\nเย็นตา\nเย็นเยียบ\nเย็นเยือก\nเย็นวาบ\nเย็นวูบ\nเย็บกี่\nเย็บจักร\nเย็บด้าย\nเย้ยหยัน\nเย้าหยอก\nเยาะเย้ย\nเยี่ยมกราย\nเยี่ยมเยียน\nเยี่ยมเยือน\nเยี่ยมยอด\nเยื่อเคย\nเยื่อใย\nเยือกเย็น\nเยื้องกราย\nเยื้องยัก\nเยื้องย่าง\nแยกย้าย\nแยกแยะ\nแย่งชิง\nแยบคาย\nแยบยล\nแย้มพราย\nแย้มยิ้ม\nแย้มสรวล\nโยเย\nโย้เย้\nโยกโคลง\nโยกย้าย\nโยกโย้\nโยนกลอง\nใยหิน\nรกชัฏ\nรกร้าง\nรกเรี้ยว\nรกเรื้อ\nรกราก\nรงควัตถุ\nรชนีกร\nรถกระบะ\nรถเก๋ง\nรถเข็น\nรถแข่ง\nรถจักร\nรถจี๊ป\nรถตู้\nรถทัวร์\nรถบรรทุก\nรถพ่วง\nรถพยาบาล\nรถไฟ\nรถไฟฟ้า\nรถม้า\nรถเมล์\nรถยนต์\nรถราง\nรถลาก\nรถสปอร์ต\nรถสิบล้อ\nรบกวน\nรบรา\nรบเร้า\nรมดำ\nร่มเกล้า\nร่มชูชีพ\nร่มเย็น\nร่มรื่น\nร่วงโรย\nรวงผึ้ง\nรวงรัง\nรวดเร็ว\nรวนเร\nรวบยอด\nรวบรวม\nรวบรัด\nรวมพล\nรวมหัว\nร่วมใจ\nร่วมเพศ\nร่วมมือ\nร่วมรัก\nร่วมสมัย\nรวยริน\nรวยรื่น\nรสชาติ\nรสนิยม\nรองท้อง\nรองเท้า\nรองพื้น\nร่องน้ำ\nร่องรอย\nร้องขอ\nร้องทุกข์\nร้องเรียน\nร้องห่ม\nร้องไห้\nรองช้ำ\nรองทรง\nรอดชีวิต\nรอดตัว\nรอดตาย\nรอนแรม\nร่อนเร่\nร้อนใจ\nร้อนตัว\nร้อนรน\nร้อนรุ่ม\nร้อนวิชา\nร้อนอาสน์\nรอบจัด\nรอบเดือน\nรอบรู้\nรอยร้าว\nร่อยหรอ\nร้อยละ\nร้อยกรอง\nร้อยแก้ว\nร้อยหวาย\nระนาดทุ้ม\nระนาดเอก\nระเบิดขวด\nระเบิดมือ\nระเบียบการ\nรักใคร่\nรักษาการ\nรักษาการณ์\nรังไข่\nรังแตน\nรังนก\nรังผึ้ง\nรังเพลิง\nรังมด\nรังสรรค์\nรังสฤษฏ์\nรั้งรอ\nรังสีแพทย์\nรังสีวิทยา\nรัชกาล\nรัชทายาท\nรัชนีกร\nรัฐธรรมนูญ\nรัฐบาล\nรัฐบุรุษ\nรัฐประศาสน์\nรัฐประหาร\nรัฐพิธี\nรัฐมนตรี\nรัฐวิสาหกิจ\nรัฐศาสตร์\nรัฐสภา\nรัดกุม\nรัดเกล้า\nรัดตัว\nรัดประคด\nรัดรึง\nรัดรูป\nรัตติกาล\nรับขวัญ\nรับจ้าง\nรับช่วง\nรับใช้\nรับซื้อ\nรับทราบ\nรับประกัน\nรับประทาน\nรับปาก\nรับผิด\nรับผิดชอบ\nรับฟ้อง\nรับฟัง\nรับมือ\nรับรอง\nรับรู้\nรับสมัคร\nรับสั่ง\nรับหน้า\nรับเหมา\nรั่วไหล\nรามือ\nร่าเริง\nรากแก้ว\nรากขวัญ\nรากฐาน\nรากฟัน\nรากศัพท์\nรากเหง้า\nร่างกาย\nร่างแห\nร้างรา\nราชกรณียกิจ\nราชการ\nราชกิจ\nราชครู\nราชฐาน\nราชทัณฑ์\nราชทินนาม\nราชทูต\nราชธานี\nราชนาวี\nราชบัณฑิต\nราชบัลลังก์\nราชบาตร\nราชบุตร\nราชปะแตน\nราชภัฏ\nราชมัล\nราชยาน\nราชรถ\nราชลัญจกร\nราชเลขาธิการ\nราชเลขานุการ\nราชวงศ์\nราชวัติ\nราชสกุล\nราชสมบัติ\nราชสาส์น\nราชหัตถเลขา\nราชองครักษ์\nราชโองการ\nราชาคณะ\nราชาศัพท์\nราชินีนาถ\nร้านชำ\nร้านรวง\nราบคาบ\nราบรื่น\nราบเรียบ\nรายการ\nรายงาน\nรายจ่าย\nรายได้\nรายทาง\nรายรับ\nรายล้อม\nรายละเอียด\nรายวิชา\nร่ายยาว\nร่ายรำ\nร้ายกาจ\nร้ายแรง\nราวนม\nราวป่า\nร้าวฉาน\nร้าวราน\nรำพัด\nรำแพน\nรำวง\nร่ำไป\nร่ำร้อง\nร่ำเรียน\nร่ำไร\nร่ำลา\nร่ำไห้\nริเริ่ม\nริอ่าน\nริมฝีปาก\nริ้วรอย\nรีบร้อน\nรีบรุด\nรีบเร่ง\nรื่นรมย์\nรื่นเริง\nรื้อถอน\nรื้อฟื้น\nรุกฆาต\nรุกราน\nรุกล้ำ\nรุกไล่\nรุ่งขึ้น\nรุ่งแจ้ง\nรุ่งเช้า\nรุ่งเรือง\nรุ่งโรจน์\nรุ่งสว่าง\nรุ่งสาง\nรุ่งอรุณ\nรุจิเรข\nรุดหน้า\nรุนแรง\nรุมเร้า\nรุมล้อม\nรุ่มรวย\nรุ่มร้อน\nรุ่ยร่าย\nรู้แกว\nรู้ความ\nรู้คุณ\nรู้งาน\nรู้จัก\nรู้แจ้ง\nรู้ใจ\nรู้เชิง\nรู้ตัว\nรู้ทัน\nรู้เท่า\nรู้เรื่อง\nรู้สำนึก\nรู้สึก\nรู้เห็น\nรูปการณ์\nรูปโฉม\nรูปฌาน\nรูปถ่าย\nรูปทรง\nรูปธรรม\nรูปแบบ\nรูปพรรณ\nรูปพรหม\nรูปภพ\nรูปภาพ\nรูปร่าง\nรูปสมบัติ\nเร่ร่อน\nเร่งด่วน\nเร่งมือ\nเร่งรัด\nเร่งรีบ\nเร่งเร้า\nเร้นลับ\nเร่อร่า\nเร่าร้อน\nเราะราย\nเราะร้าย\nเริงใจ\nเริงรมย์\nเริดร้าง\nเริ่มต้น\nเริ่มแรก\nเรี่ยราด\nเรี่ยไร\nเรียกคืน\nเรียกตัว\nเรียกร้อง\nเรียกหา\nเรียบร้อย\nเรียงความ\nเรียงตัว\nเรียงเบอร์\nเรียงพิมพ์\nเรียงเม็ด\nเรียงราย\nเรียนรู้\nเรียบร้อย\nเรียบเรียง\nเรียบวุธ\nเรี่ยมเร้\nเรี่ยวแรง\nเรือกลไฟ\nเรือกอและ\nเรือกำปั่น\nเรือจ้าง\nเรือดำน้ำ\nเรือโดยสาร\nเรือตรวจการณ์\nเรือตังเก\nเรือธง\nเรือนำร่อง\nเรือบด\nเรือบิน\nเรือใบ\nเรือประมง\nเรือพ่วง\nเรือพิฆาต\nเรือยนต์\nเรือยาว\nเรือโยง\nเรือรบ\nเรือลากจูง\nเรือสำปั้น\nเรือสำเภา\nเรือหลวง\nเรือหางยาว\nเรืออีโปง\nเรือเอี้ยมจุ๊น\nเรื้อรัง\nเรือกสวน\nเรืองนาม\nเรืองรอง\nเรืองแสง\nเรื่องราว\nเรื่องสั้น\nเรือนแก้ว\nเรือนจำ\nเรือนเบี้ย\nเรือนแพ\nเรือนหอ\nเรื่อยเจื้อย\nเรื่อยเฉื่อย\nเรื่อยเปื่อย\nแรเงา\nแรกนา\nแรกนาขวัญ\nแรงงาน\nแรงดึงดูด\nแรงเทียน\nแรงม้า\nแรงเหวี่ยง\nแรมรอน\nแรมรา\nแรมโรย\nโรคจิต\nโรงครัว\nโรงงาน\nโรงเจ\nโรงเตี๊ยม\nโรงทาน\nโรงนา\nโรงพยาบาล\nโรงพัก\nโรงพิมพ์\nโรงเรียน\nโรงเรือน\nโรงแรม\nโรงเลี้ยง\nโรงเลื่อย\nโรงสี\nโรงสีข้าว\nโรงอาหาร\nโรมรัน\nโรยรา\nฤชากร\nฤดูกาล\nลงขัน\nลงแขก\nลงคอ\nลงตัว\nลงท้าย\nลงทุน\nลงโทษ\nลงพุง\nลงมือ\nลงรัก\nลงรอย\nลงแรง\nลงโรง\nลงเอย\nลดตัว\nลดละ\nลดเลี้ยว\nลดหย่อน\nลดหลั่น\nลนลาน\nล้นพ้น\nล้นหลาม\nล้นเหลือ\nลบล้าง\nลบเลือน\nลบหลู่\nลมกรด\nลมค้า\nลมงวง\nลมแดด\nลมทะเล\nลมบก\nลมบน\nลมบ้าหมู\nลมปราณ\nลมปาก\nลมพิษ\nลมว่าว\nลมเสีย\nลมหนาว\nลมหายใจ\nล่มจม\nล่มสลาย\nล้มละลาย\nล้มลุก\nล้มเลิก\nล่วงเกิน\nล่วงรู้\nล่วงละเมิด\nล่วงลับ\nล่วงล้ำ\nล่วงเลย\nล่วงหน้า\nลวดลาย\nลวดสปริง\nลวดหนาม\nล้วนแล้ว\nลหุโทษ\nล่อลวง\nล่อหลอก\nล่อแหลม\nล้อต๊อก\nล้อเลื่อน\nล้อเล่น\nล้อเลียน\nล้อหลอก\nลองเชิง\nลองดี\nลองภูมิ\nล่องหน\nลอดช่อง\nล่อนจ้อน\nลอบกัด\nล้อมวง\nลอยแก้ว\nลอยชาย\nลอยตัว\nลอยนวล\nลอยแพ\nลอยลำ\nละทิ้ง\nละเลย\nละเว้น\nละครนอก\nละครใน\nละครเพลง\nละครร้อง\nละครรำ\nละครลิง\nละครสัตว์\nละเอียดอ่อน\nลักไก่\nลักพา\nลักเพศ\nลักยิ้ม\nลักลอบ\nลักลั่น\nลักหลับ\nลัดเลาะ\nลับตา\nลับแล\nลับหลัง\nลาออก\nล่าช้า\nล่าทัพ\nล้าสมัย\nล้าหลัง\nลากข้าง\nล้างบาง\nล้างผลาญ\nลาดเขา\nลาดตระเวน\nลาดเท\nลาดยาง\nลานบิน\nลาภปาก\nลาภลอย\nลามปาม\nลามเลีย\nลายคราม\nลายเซ็น\nลายแทง\nลายน้ำ\nลายพร้อย\nลายมือ\nลายลักษณ์\nลายเส้น\nลำกล้อง\nลำแข้ง\nลำธาร\nลำแสง\nลำไส้\nลำตัด\nลำนำ\nล่ำสัน\nล้ำยุค\nล้ำสมัย\nล้ำลึก\nล้ำเลิศ\nล้ำเส้น\nล้ำหน้า\nลิงจุ่น\nลิงลม\nลิงโลด\nลิดรอน\nลิ้นไก่\nลิ้นชัก\nลิ้นปี่\nลิ้นควาย\nลิ้นงูเห่า\nลิ้นหมา\nลิบลับ\nลิบลิ่ว\nลิ่มเลือด\nลี้ภัย\nลี้ลับ\nลึกซึ้ง\nลึกลับ\nลึกล้ำ\nลืมตน\nลืมต้น\nลืมตัว\nลืมตา\nลืมเลือน\nลือชา\nลือชื่อ\nลือลั่น\nลุล่วง\nลุกลน\nลุกลาม\nลุกลี้ลุกลน\nลุกฮือ\nลุ่มน้ำ\nลุ่มลึก\nลุ่มหลง\nลุ่ทาง\nลูกกรง\nลูกกรอก\nลูกกรุง\nลูกกลอน\nลูกกลิ้ง\nลูกกวาด\nลูกกะจ๊อก\nลูกกุญแจ\nลูกเกด\nลูกแก้ว\nลูกขนไก่\nลูกข่าง\nลูกขุน\nลูกเขย\nลูกครึ่ง\nลูกคลื่น\nลูกความ\nลูกคอ\nลูกค้า\nลูกคิด\nลูกคู่\nลูกจ้าง\nลูกช้าง\nลูกชิด\nลูกชิ้น\nลูกชุบ\nลูกซอง\nลูกโซ่\nลูกดอก\nลูกดิ่ง\nลูกตะกั่ว\nลูกตุ้ม\nลูกเต้า\nลูกเต๋า\nลูกถ้วย\nลูกทุ่ง\nลูกเธอ\nลูกน้อง\nลูกน้ำ\nลูกนิมิต\nลูกบอล\nลูกบ้าน\nลูกบาศก์\nลูกบิด\nลูกเบี้ยว\nลูกประคบ\nลูกประคำ\nลูกปัด\nลูกปืน\nลูกโป่ง\nลูกผสม\nลูกผู้ชาย\nลูกผู้หญิง\nลูกพรรค\nลูกพี่\nลูกฟูก\nลูกไฟ\nลูกมือ\nลูกโม่\nลูกไม้\nลูกยาเธอ\nลูกรอก\nลูกรัง\nลูกเรือ\nลูกล้อ\nลูกลอย\nลูกเล่น\nลูกเลี้ยง\nลูกโลก\nลูกวัด\nลูกศร\nลูกศิษย์\nลูกสมุน\nลูกสะใภ้\nลูกสูบ\nลูกเสือ\nลูกหนัง\nลูกหนี้\nลูกหนู\nลูกหมาก\nลูกหลง\nลูกหลาน\nลูกหาบ\nลูกหิน\nลูกเห็บ\nลูกเหม็น\nลูกแหง่\nลูกอม\nลูกหม้อ\nลูบคม\nลูบคลำ\nลูบไล้\nเล็กน้อย\nเลขคณิต\nเลขผา\nเลขหมาย\nเล็ดลอด\nเล่นงาน\nเล่นแง่\nเล่นชู้\nเล่นตัว\nเล่นลิ้น\nเล่นหัว\nเลนส์นูน\nเลนส์เว้า\nเล็บครุฑ\nเลยเถิด\nเลศนัย\nเล่ห์กล\nเล่ห์เหลี่ยม\nเลอโฉม\nเลอมาน\nเลอเลิศ\nเลอสรวง\nเล่อล่า\nเลอะเลือน\nเล่าเรียน\nเล่าลือ\nเลาะลัด\nเลิกรา\nเลิกร้าง\nเลิกล้ม\nเลิศเลอ\nเลี้ยงชีพ\nเลี้ยงดู\nเลี้ยงต้อย\nเลียบเคียง\nเลี้ยวลด\nเลือกตั้ง\nเลือกเฟ้น\nเลือกสรร\nเลื่องลือ\nเลือดกำเดา\nเลือดเนื้อ\nเลือดฝาด\nเลือดเย็น\nเลือดร้อน\nเลือดหมู\nเลือดอุ่น\nเลือนราง\nเลื่อนเปื้อน\nเลื่อนลอย\nเลื่อมพราย\nเลื่อมใส\nเลื่อยฉลุ\nเลื่อยลันดา\nเลื่อยวงเดือน\nเลื้อยคลาน\nแลเหลียว\nแลกเปลี่ยน\nแล้วกัน\nและเล็ม\nโล่งใจ\nโล่งโถง\nโล่งอก\nโลดเต้น\nโลดโผน\nโลดลิ่ว\nโลดแล่น\nไล่ที่\nไล่เบี้ย\nไล่เลี่ย\nไล่เลียง\nไล่หลัง\nไล่ออก\nวกวน\nวงกบ\nวงกลม\nวงการ\nวงแขน\nวงเงิน\nวงจร\nวงนอก\nวงใน\nวงรี\nวงเล็บ\nวงเวียน\nวงแหวน\nวงศ์วาน\nวจีกรรม\nวจีเภท\nวจีภาค\nวนเวียน\nวอดวาย\nว็อบแว็บ\nวังวน\nวังหน้า\nวังหลวง\nวังหลัง\nวัดราษฎร์\nวัดวา\nวัดหลวง\nวัดผล\nวัดพื้น\nวัตถุนิยม\nวัตถุประสงค์\nวัตรปฏิบัติ\nวันโกน\nวันพระ\nวันเพ็ญ\nวัยรุ่น\nวัยวุฒิ\nว่ากล่าว\nว่าจ้าง\nว่าด้วย\nว่าที่\nวางก้าม\nวางใจ\nวางตัว\nวางตา\nวางโต\nวางท่า\nวางมวย\nวางมาด\nวางมือ\nวางวาย\nว่างเปล่า\nว่างเว้น\nวาดเขียน\nว่านเครือ\nวาบหวาม\nวายชนม์\nวายปราณ\nวายวาง\nวายวอด\nวายร้าย\nวายุภักษ์\nวาววับ\nวาววาม\nวาวแวว\nวาวแสง\nวิกฤตการณ์\nวิกฤติการณ์\nวิกฤตกาล\nวิกฤติกาล\nวิกลจริต\nวิงเวียน\nวิ่งเต้น\nวิ่งผลัด\nวิ่งรอก\nวิ่งราว\nวิจิตรศิลป์\nวิชาการ\nวิชาชีพ\nวิชาธร\nวิญญูชน\nวิดพื้น\nวิตกจริต\nวิถีทาง\nวิทยากร\nวิทยากล\nวิทยาการ\nวิทยาเขต\nวิทยาทาน\nวิทยาธร\nวิทยานิพนธ์\nวิทยาศาสตร์\nวิเทศสัมพันธ์\nวิธีการ\nวินัยธร\nวินัยปิฎก\nวินาศกรรม\nวินาศภัย\nวินาศสันตะโร\nวิภัชพยากรณ์\nวิภัชวาที\nวิไลวรรณ\nวิสัญญีแพทย์\nวิสัญญีภาพ\nวิสัญญีวิทยา\nวุฒิบัตร\nวุฒิสภา\nวุฒิสมาชิก\nวุ่นวาย\nวุ้นเส้น\nวูบวาบ\nเวจกุฎี\nเวจมรรค\nเวชกรรม\nเวชภัณฑ์\nเวชศาสตร์\nเวทมนตร์\nเวนคืน\nเวรกรรม\nเวฬุการ\nเวฬุวัน\nเว้าวอน\nเวิ้งว้าง\nเวียงวัง\nเวียนเทียน\nแว้งกัด\nแวดล้อม\nแวดวง\nแว่นขยาย\nแว่นแคว้น\nแว่นตา\nแวบวับ\nแววตา\nแวววาม\nแวววาว\nแวะเวียน\nโวยวาย\nไวไฟ\nไว้ใจ\nไว้ชื่อ\nไว้ตัว\nไว้ทุกข์\nไว้ลาย\nไว้หน้า\nไว้อาลัย\nศนิวาร\nศอกกลับ\nศอกกำ\nศอกกำมา\nศักดิ์ศรี\nศักดิ์สิทธิ์\nศารทวิษุวัติ\nศาลแขวง\nศาลจังหวัด\nศาลชั้นต้น\nศาลฎีกา\nศาลเตี้ย\nศาลทหาร\nศาลปกครอง\nศาลพระภูมิ\nศาลเพียงตา\nศาลแพ่ง\nศาลรัฐธรรมนูญ\nศาลแรงงาน\nศาลล้มละลาย\nศาลโลก\nศาลสูง\nศาลสูงสุด\nศาลอาญา\nศาลอุทธรณ์\nศาลากลาง\nศาลาดิน\nศาลาราย\nศาลาวัด\nศิลาฤกษ์\nศิลาแลง\nศิษย์เก่า\nศิษย์เอก\nศีลจุ่ม\nศีลธรรม\nศีลวัต\nศีลอด\nศูนย์กลาง\nศูนย์การค้า\nศูนย์ถ่วง\nศูนย์สูตร\nศูนย์หน้า\nเศร้าใจ\nเศร้าโศก\nเศร้าสร้อย\nเศร้าสลด\nเศร้าหมอง\nเศวตฉัตร\nเศษเกิน\nเศษซ้อน\nเศษวรรค\nเศษส่วน\nเศษเหล็ก\nโศกนาฏกรรม\nโศกศัลย์\nโศกเศร้า\nโศกสลด\nสกลโลก\nส่งเดช\nส่งท้าย\nส่งเสริม\nส่งเสีย\nส่งเสียง\nสงบเงียบ\nสงบเสงี่ยม\nสง่างาม\nสง่าราศี\nสดชื่น\nสดใส\nสตรีเพศ\nสติปัญญา\nสถลมารค\nสถานกงสุล\nสถานที่\nสถานทูต\nสถานการณ์\nสถานภาพ\nสถิติศาสตร์\nสนตะพาย\nสนใจ\nส้นตีน\nสนธิสัญญา\nสนนราคา\nสนับแข้ง\nสนับเพลา\nสนับมือ\nสนามบิน\nสนามเพลาะ\nสนิทสนม\nสนิมขุม\nสนิมสร้อย\nสนุกสนาน\nสบประมาท\nสบายใจ\nสภาพธรรม\nสมควร\nสมจริง\nสมใจ\nสมนัย\nสมน้ำหน้า\nสมประกอบ\nสมส่วน\nสมหวัง\nสมคบ\nสมทบ\nสมยอม\nสมรัก\nสมรู้\nสมสู่\nส้มฉุน\nส้มตำ\nส้มลิ้ม\nส้มกุ้ง\nส้มเช้า\nสมญานาม\nสมมติฐาน\nสมมุติฐาน\nสมมติเทพ\nสมรภูมิ\nสมัครใจ\nสมัยนิยม\nสมุทรศาสตร์\nสมุทรเสนา\nสยดสยอง\nสยองขวัญ\nสยามรัฐ\nสรรหา\nสรวมชีพ\nสรวลเส\nสร้อยเศร้า\nสร้างสรรค์\nสร้างเสริม\nสลดใจ\nสลบไสล\nสละสลวย\nสลาเหิน\nสลากภัต\nสวนครัว\nสวนป่า\nสวนสนุก\nสวนหย่อม\nส่วนกลาง\nส่วนเกิน\nส่วนตัว\nส่วนบุญ\nส่วนแบ่ง\nส่วนประกอบ\nส่วนพระองค์\nส่วนผสม\nส่วนรวม\nส่วนร่วม\nส่วนลด\nส่วนสัด\nสวมกอด\nสวมเขา\nสวมรอย\nสวยมภู\nสว่างไสว\nสวามิภักดิ์\nสวิงสวาย\nสสารนิยม\nส่อเสียด\nสอดคล้อง\nสอดแทรก\nสอดแนม\nสอบถาม\nสอบทาน\nสอบไล่\nสอบสวน\nส้อมเสียง\nสะสวย\nสะแกวัลย์\nสะแกแสง\nสะใจ\nสะเด็ดยาด\nสะเทือนใจ\nสะบัดช่อ\nสั่งสม\nสั่งสอน\nสั่งเสีย\nสังเกตการณ์\nสังคมนิยม\nสังคมวิทยา\nสังคมศาสตร์\nสังคมศึกษา\nสังคมสงเคราะห์\nสัญญาบัตร\nสัดส่วน\nสัตการ\nสัตบุรุษ\nสัตบริภัณฑ์\nสัตภัณฑ์\nสัตมหาสถาน\nสัตโลหะ\nสันเขา\nสันดอน\nสันหลัง\nสั่นเทา\nสั่นเทิ้ม\nสันติบาล\nสันติภาพ\nสันติวิธี\nสันติสุข\nสับเปลี่ยน\nสับสน\nสับหลีก\nสับหว่าง\nสัมมาคารวะ\nสัมมาชีพ\nส่าเหล้า\nสากกะเบือ\nสาทิสลักษณ์\nสาธุการ\nสาธุชน\nสาบเสือ\nสาปสรร\nสาปแช่ง\nสาปส่ง\nสามง่าม\nสามล้อ\nสามเหลี่ยม\nสามเวท\nสามัญชน\nสามัญสำนึก\nสายดิ่ง\nสายดิน\nสายตรวจ\nสายน้ำ\nสายบัว\nสายพาน\nสายฟ้า\nสายยาง\nสายยู\nสายใย\nสายรก\nสายรุ้ง\nสายล่อฟ้า\nสายลับ\nสายเลือด\nสายโลหิต\nสายวัด\nสายส่ง\nสายสวาท\nสายสะดือ\nสายสะพาย\nสายสัมพันธ์\nสายสิญจน์\nสายสืบ\nสายไหม\nสายอากาศ\nสายตา\nสายหยุด\nสารตรา\nสารประกอบ\nสารละลาย\nสารส้ม\nสารหนู\nสารทฤดู\nสาวใช้\nสาวน้อย\nสาวใหญ่\nสำนักงาน\nสำนักพิมพ์\nสำนักสงฆ์\nสำมะโนครัว\nสำเร็จรูป\nสิกขาบท\nสิงสถิต\nสิงสู่\nสิ่งก่อสร้าง\nสิ่งของ\nสิ่งปฏิกูล\nสิ่งพิมพ์\nสิ่งแวดล้อม\nสิ่งศักดิ์สิทธิ์\nสิทธิกร\nสิทธิ์ขาด\nสิทธิชัย\nสิทธิโชค\nสิทธิบัตร\nสินค้า\nสินจ้าง\nสินเชื่อ\nสินไถ่\nสินทรัพย์\nสินน้ำใจ\nสินบน\nสินแร่\nสินสมรส\nสินสอด\nสินไหม\nสิ้นเชิง\nสิ้นสุด\nสีผึ้ง\nสีลม\nสีชอล์ก\nสีถ่าน\nสีเทียน\nสีน้ำ\nสีน้ำมัน\nสีโปสเตอร์\nสีฝุ่น\nสี่เหลี่ยม\nสีหน้า\nสึกหรอ\nสืบทอด\nสืบค้น\nสืบสวน\nสืบสาว\nสืบเสาะ\nสื่อผสม\nสื่อมวลชน\nสื่อสาร\nสุกงอม\nสุกดิบ\nสุกปลั่ง\nสุกใส\nสุขนาฏกรรม\nสุขภัณฑ์\nสุขภาพ\nสุขลักษณะ\nสุขวิทยา\nสุขศาลา\nสุขศึกษา\nสุดท้าย\nสุตกวี\nสุนทรพจน์\nสุภาพชน\nสู่ขอ\nสู่รู้\nสู่สม\nสูงส่ง\nสูญเปล่า\nสูญสิ้น\nสูญเสีย\nสูญหาย\nเสสรวล\nเสแสร้ง\nเสกสรร\nเสถียรภาพ\nเส้นชัย\nเส้นตรง\nเส้นตาย\nเส้นทาง\nเส้นใย\nเส้นรุ้ง\nเส้นเลือด\nเส้นแวง\nเส้นสาย\nเส้นเสียง\nเส้นหมี่\nเส้นเอ็น\nเสบียงกรัง\nเสมอภาค\nเสมอหน้า\nเสมอเหมือน\nเสมียนตรา\nเสร็จสรรพ\nเสร็จสิ้น\nเสริมส่ง\nเสริมสร้าง\nเสริมสวย\nเสรีไทย\nเสรีธรรม\nเสรีนิยม\nเสรีภาพ\nเสาเข็ม\nเสาธง\nเสียใจ\nเสียเชิง\nเสียดาย\nเสียที\nเสียเที่ยว\nเสียเปรียบ\nเสียเปล่า\nเสียรู้\nเสียแรง\nเสียสละ\nเสียหลัก\nเสียหาย\nเสี่ยงทาย\nเสียดแทง\nเสียดแทรก\nเสียดสี\nเสี้ยนศึก\nเสี้ยนหนาม\nเสี้ยมสอน\nเสียวซ่าน\nเสียวไส้\nเสือดาว\nเสือดำ\nเสือปลา\nเสือป่า\nเสือไฟ\nเสื่อกก\nเสื่อกระจูด\nเสื่อน้ำมัน\nเสื่อลำแพน\nเสื้อกล้าม\nเสื้อกั๊ก\nเสื้อเกราะ\nเสื้อครุย\nเสื้อแสง\nเสื้อเมือง\nเสือกคลาน\nเสือกสน\nเสือกไส\nเสื่อมคลาย\nเสื่อมถอย\nเสื่อมทราม\nเสื่อมโทรม\nเสื่อมสลาย\nเสื่อมสูญ\nเสื่อมเสีย\nเสือหมอบ\nแสกหน้า\nแสดงออก\nแสเถา\nแสนกล\nแสนรู้\nแสร้งว่า\nใส่ความ\nใส่ไคล้\nใส่ใจ\nใส่ไฟ\nไส้กรอก\nไส้ไก่\nไส้ติ่ง\nไส้ศึก\nไส้อั่ว\nไส้เดือน\nไส้ตัน\nไสยเวท\nไสยศาสตร์\nหกล้ม\nหงส์หยก\nหงอนไก่\nหงอยก๋อย\nหงอยเหงา\nหงายท้อง\nหงายหลัง\nหงำเหงอะ\nหงำเหงือก\nหดหาย\nหดหู่\nหนทาง\nหนวกหู\nหน่วงเหนี่ยว\nหน่วยก้าน\nหน่อไม้\nหนองใน\nหนองแซง\nหนักข้อ\nหนักใจ\nหนักแน่น\nหนักหน่วง\nหนักหนา\nหนังกลับ\nหนังตะลุง\nหนังเรียด\nหนังสด\nหนังใหญ่\nหนังสือพิมพ์\nหนาแน่น\nหน้ากระดาน\nหน้ากาก\nหน้ากาฬ\nหน้าแข้ง\nหน้าจั่ว\nหน้าฉาน\nหน้าตัก\nหน้าตา\nหน้าต่าง\nหน้าท้อง\nหน้าทับ\nหน้าที่\nหน้าที่นั่ง\nหน้าบัน\nหน้าปัด\nหน้าผา\nหน้าผาก\nหน้าม้า\nหน้ามุข\nหน้าไม้\nหน้าเลือด\nหน้าอก\nหนามเตย\nหน่ายหนี\nหน่ายแหนง\nหนาวเหน็บ\nหนำใจ\nหนี้สิน\nหนี้สูญ\nหนุนเนื่อง\nหนุนหลัง\nหมกมุ่น\nหมดจด\nหมอขวัญ\nหมอความ\nหมอแคน\nหมองู\nหมอดู\nหมอตำแย\nหมอทำขวัญ\nหมอนวด\nหมอผี\nหมอยา\nหมอลำ\nหมอเสน่ห์\nหม้อแกง\nหม้อตาล\nหม้อน้ำ\nหม้อแปลง\nหมองใจ\nหมองมัว\nหมองหม่น\nหมองหมาง\nหมอนขวาน\nหมอนข้าง\nหมอนทอง\nหม่อมเจ้า\nหม่อมฉัน\nหม่อมราชวงศ์\nหม่อมหลวง\nหม่อมห้าม\nหมั่นไส้\nหมาป่า\nหมาหมู่\nหมากฝรั่ง\nหมากสง\nหมากหอม\nหมากเก็บ\nหมากรุก\nหมากเม่า\nหมางใจ\nหมางเมิน\nหมาไม้\nหมายเกณฑ์\nหมายขัง\nหมายค้น\nหมายความ\nหมายจับ\nหมายใจ\nหมายตา\nหมายปล่อย\nหมายมั่น\nหมายเรียก\nหมายเลข\nหมายเหตุ\nหมิ่นเหม่\nหมึกจีน\nหมุนเวียน\nหมูแดง\nหมูป่า\nหมูแผ่น\nหมูยอ\nหมูหย็อง\nหมูหัน\nหมูแฮม\nหมู่บ้าน\nหยดย้อย\nหยอกเย้า\nหยักรั้ง\nหยักศก\nหยั่งทราบ\nหยั่งรู้\nหยั่งเสียง\nหยาบคาย\nหยาบช้า\nหยาบโลน\nหยาบหยาม\nหยิบมือ\nหยิบยก\nหยิบยืม\nหยิบหย่ง\nหยิบโหย่ง\nหริรักษ์\nหริวงศ์\nหลงผิด\nหลบฉาก\nหลบมุม\nหลวงจีน\nหลวงพ่อ\nหลวมตัว\nหล่อลื่น\nหล่อเลี้ยง\nหล่อหลอม\nหลอกลวง\nหลอกล่อ\nหลอกล้อ\nหลอดลม\nหลอดเลือด\nหลอดอาหาร\nหลอมตัว\nหลอมเหลว\nหลักการ\nหลักเกณฑ์\nหลักชัย\nหลักฐาน\nหลักทรัพย์\nหลักเมือง\nหลักลอย\nหลักสูตร\nหลักแหล่ง\nหลักแหลม\nหลังคา\nหลังเต่า\nหลั่งไหล\nหลับนก\nหลับใน\nหลากใจ\nหลากหลาย\nหลาบจำ\nหลายหลาก\nหลายแหล่\nหลุดพ้น\nหลุดลอย\nหลุดลุ่ย\nหลุมโจน\nหลุมพราง\nหวงก้าง\nหวงห้าม\nหวงแหน\nห่วงใย\nห้วงน้ำ\nหวังใจ\nหวังดี\nหวั่นกลัว\nหวั่นเกรง\nหวั่นใจ\nหวั่นวิตก\nหวั่นหวาด\nหวั่นไหว\nหวาดกลัว\nหวาดเกรง\nหวาดผวา\nหวาดเสียว\nหวาดหวั่น\nหวาดไหว\nหวานเย็น\nหว่านล้อม\nหอคอย\nหอคำ\nหอฉัน\nหอไตร\nหอประชุม\nหอพัก\nห่อหมก\nห่อเหี่ยว\nหอกซัด\nห้องเครื่อง\nห้องชุด\nห้องแถว\nห้องโถง\nห้องน้ำ\nห้องสมุด\nหอสมุด\nหอมหวน\nห้อมล้อม\nห้อยโหน\nหักล้าง\nหักหาญ\nหักห้าม\nหักเห\nหักโหม\nหักมุก\nหันเห\nหับเผย\nหัวขโมย\nหัวข้อ\nหัวขั้ว\nหัวเข่า\nหัวโขน\nหัวคะแนน\nหัวค่ำ\nหัวคิด\nหัวจุก\nหัวโจก\nหัวใจ\nหัวเทียน\nหัวนม\nหัวนอน\nหัวป่า\nหัวมุม\nหัวเรื่อง\nหัวแร้ง\nหัวใส\nหัวหน้า\nหัวหน่าว\nหัวหอก\nหัวเห็ด\nหัวไหล่\nหัวอก\nหัสดนตรี\nหัสนาฏกรรม\nหัสนิยาย\nหัสดีลิงค์\nหางเครื่อง\nหางแถว\nหางเลข\nหางว่าว\nหางเสียง\nหางเสือ\nห่างเหิน\nหาบเร่\nห้ามปราม\nห้ามล้อ\nหายตัว\nหาวนอน\nห้าวหาญ\nห้ำหั่น\nหินงอก\nหินทราย\nหินปูน\nหินย้อย\nหินอ่อน\nหินชาติ\nหินยาน\nหีบเพลง\nหีบห่อ\nหุ่นกระบอก\nหุ่นยนต์\nหุ้นลม\nหุ้นส่วน\nหุบเขา\nหุบผา\nหุบเหว\nหูกระต่าย\nหูช้าง\nหูรูด\nหูกวาง\nเหงาหงอย\nเหงื่อกาฬ\nเหตุการณ์\nเหตุผล\nเห็นแก่\nเห็นใจ\nเหน็บแนม\nเหน็บชา\nเหนียวแน่น\nเหนี่ยวนำ\nเหนี่ยวรั้ง\nเหนื่อยหน่าย\nเหมาะเจาะ\nเหมาะสม\nเหมาะเหม็ง\nเหยเก\nเหยียดหยาม\nเหล็กกล้า\nเหล็กจาร\nเหล็กใน\nเหล็กส่ง\nเหล็กเส้น\nเหล็กหล่อ\nเหล็กไหล\nเหลวแหลก\nเหลวไหล\nเหลอหลา\nเหล่ากอ\nเหลียวแล\nเหลือเกิน\nเหลือขอ\nเหลือใจ\nเหลือเชื่อ\nเหลือเฟือ\nเหลือร้าย\nเหลือล้น\nเหลือหลาย\nเหลือแหล่\nเหลือแสน\nเหลือหลอ\nเหลื่อมล้ำ\nเห่อเหิม\nเหินห่าง\nเหิมเกริม\nเหิมหาญ\nเหี้ยมเกรียม\nเหี้ยมหาญ\nเหี้ยมโหด\nเหี่ยวแห้ง\nเหือดหาย\nเหือดแห้ง\nแห่แหน\nแหนงหน่าย\nแหลกลาญ\nแหลกเหลว\nแหวกแนว\nแหวกว่าย\nโหงพราย\nโหดร้าย\nโหดเหี้ยม\nโหยหวน\nโหวงเหวง\nให้การ\nให้ท่า\nให้ท้าย\nให้ร้าย\nให้หลัง\nไหมพรม\nไหวพริบ\nอกไก่\nอกร่อง\nองค์กร\nองค์การ\nอดกลั้น\nอดทน\nอดสู\nอดอยาก\nอดออม\nอดีตกาล\nอดีตชาติ\nอดีตภพ\nอติชาตบุตร\nอธิการบดี\nอนาคตกาล\nอนิจกรรม\nอนุชาตบุตร\nอเนกประสงค์\nอบรม\nอบอวล\nอบอ้าว\nอบอุ่น\nอบายภูมิ\nอบายมุข\nอภัพบุคคล\nอภัยทาน\nอภัยโทษ\nอภิชาตบุตร\nอมยิ้ม\nอมรรัตน์\nอมฤตบท\nอมฤตรส\nอย่างไร\nอรรถกร\nอรรถกวี\nอรรถคดี\nอรรถประโยชน์\nอรรถรส\nอรรธนิศา\nอรรธภาค\nอรรธสระ\nอรสุมพล\nอรูปฌาน\nอรูปพรหม\nอรูปภพ\nอรูปภูมิ\nอวชาตบุตร\nอวดดี\nอวดอ้าง\nอ้วนท้วน\nอ้วนพี\nอวบอั๋น\nอวยชัย\nอวยพร\nอสุภกรรมฐาน\nอสุภสัญญา\nอโหสิกรรม\nออเจ้า\nออกแขก\nออกตัว\nออกโรง\nออกฤทธิ์\nออกลาย\nออกหาก\nออดอ้อน\nออดแอด\nอ่อนข้อ\nอ่อนใจ\nอ่อนช้อย\nอ่อนน้อม\nอ่อนเปลี้ย\nอ่อนเพลีย\nอ่อนโยน\nอ่อนหวาน\nอ่อนหัด\nอ่อนไหว\nอ่อนแอ\nอ้อนวอน\nอ้อนออด\nอ้อมค้อม\nอักษรศาสตร์\nอักษรสาส์น\nอัคคีภัย\nอัญชนะศักราช\nอัดฉีด\nอัดอั้น\nอัตราส่วน\nอันโตชน\nอันโตนาที\nอับจน\nอับเฉา\nอับอาย\nอัสสุชล\nอัสสุธารา\nอากัปกิริยา\nอาการนาม\nอากาศธาตุ\nอากาศยาน\nอาคารชุด\nอ่างเก็บน้ำ\nอ้างอิง\nอาจหาญ\nอาจอง\nอาชญากร\nอาชญากรรม\nอาชญาบัตร\nอาชญาสิทธิ์\nอาญาสิทธิ์\nอาณาเขต\nอาณาจักร\nอาณานิคม\nอาณาประโยชน์\nอาโปกสิณ\nอาโปธาตุ\nอาภากร\nอายุขัย\nอายุวัฒนะ\nอาโลกกสิณ\nอาหารว่าง\nอำพราง\nอิดโรย\nอิดออด\nอิดเอื้อน\nอิตถีลิงค์\nอิทธิปาฏิหาริย์\nอิทธิพล\nอิทธิฤทธิ์\nอินังขังขอบ\nอิ่มตัว\nอิ่มหนำ\nอิ่มเอม\nอิ่มเอิบ\nอีฉัน\nอีตัว\nอึงคะนึง\nอึงมี่\nอึงอล\nอึ่งยาง\nอึ่งอ่าง\nอึดใจ\nอึดอัด\nอืดอาด\nอื้อฉาว\nอื้อซ่า\nอื้ออึง\nอุกฉกรรจ์\nอุกอาจ\nอุดอู้\nอุ่นเครื่อง\nอุ่นใจ\nอุบอิบ\nอุบัติภัย\nอุบัติเหตุ\nอุโบสถกรรม\nอุโบสถหัตถี\nอุปมาโวหาร\nอุ้มชู\nอุ้มสม\nอุ้ยอ้าย\nอู้อี้\nเอกจิต\nเอกฉันท์\nเอกชน\nเอกเทศ\nเอกนัย\nเอกบุคคล\nเอกบุรุษ\nเอกพจน์\nเอกภพ\nเอกภาพ\nเอกมัย\nเอกราช\nเอกรูป\nเอกลักษณ์\nเอกศก\nเอกสาร\nเอกสิทธิ์\nเอกอุ\nเอ็ดอึง\nเอนเอียง\nเอมอร\nเอออวย\nเออออ\nเอาการ\nเอางาน\nเอาจริง\nเอาใจ\nเอาเปรียบ\nเอาเยี่ยง\nเอิบอาบ\nเอียงอาย\nเอียงเอน\nเอื้อเฟื้อ\nโอ่โถง\nโอ้โถง\nโอ่อวด\nโอ้อวด\nโอ่อ่า\nโอ้โลม\nโอดครวญ\nโอดโอย\nโอนอ่อน\nโอนเอน\nโอบอ้อม\nโอบอุ้ม\nโอสถกรรม\nไอเสีย\nไอกรน\nฮวบฮาบ\nฮาป่า\nฮึกหาญ\nฮึกห้าว\nฮึกเหิม\nฮึกโหม\nฮึกฮัก\nเฮงซวย\nโฮกฮือ\nโฮกฮาก\n\nก็\nกก\nก๊ก\nกกุธภัณฑ์\nกง\nก่ง\nก้ง\nก๊ง\nก๋ง\nกงกอน\nกงไฉ่\nกงเต๊ก\nกงสี\nกงสุล\nกช\nกฎ\nกฏุก\nกฐิน\nกณิกนันต์\nกณิการ์\nกด\nกตเวทิตา\nกตเวที\nกตัญชลี\nกตัญญุตา\nกตัญญู\nกตาธิการ\nกตาภินิหาร\nกติกา\nกถา\nกถิกาจารย์\nกทลี\nกน\nก่น\nก้น\nกนก\nกนิษฐ์\nกนิษฐา\nกบ\nกบฏ\nกบดาน\nกบทู\nกบาล\nกบินทร์\nกบิล\nกบี่\nกบูร\nกเบนทร์\nกม\nก้ม\nกมณฑลาภิเษก\nกมณฑโลทก\nกมล\nกมลา\nกมลาศ\nกมลาสน์\nกมเลศ\nกมัณฑลุ\nกมุท\nกร\nกรกฎ\nกรกฎาคม\nกรกฏ\nกรง\nกรชกาย\nกรณฑ์\nกรณิการ์\nกรณี\nกรณีย์\nกรณียกิจ\nกรณียะ\nกรด\nกรน\nกรบ\nกรบูร\nกรพินธุ์\nกรม\nกรรกฎ\nกรรกศ\nกรรเกด\nกรรไกร\nกรรเจียก\nกรรชิง\nกรรเชียง\nกรรโชก\nกรรฐ์\nกรรฐา\nกรรณ\nกรรณา\nกรรณิกา\nกรรณิการ์\nกรรดิ\nกรรดิก\nกรรดึก\nกรรตุ\nกรรไตร\nกรรทบ\nกรรแทก\nกรรบิด\nกรรบูร\nกรรภิรมย์\nกรรม\nกรรม์\nกรรม์ภิรมย์\nกรรมชวาต\nกรรมัชวาต\nกรรมาชีพ\nกรรมาธิการ\nกรรมาร\nกรรษก\nกรรสะ\nกรรแสง\nกรวด\nกรวบ\nกรวม\nกร้วม\nกรวย\nกรวิก\nกรสาปน์\nกรสุทธิ์\nกรอ\nกร้อ\nกรอก\nกร็อกกร๋อย\nกรอกแกรก\nกรอง\nกรองกรอย\nกรอด\nกร่อน\nกรอบ\nกรอม\nกร่อย\nกระ\nกระกร\nกระกรุ่น\nกระกลับกลอก\nกระกี้\nกระเกรอก\nกระเกริก\nกระเกริ่น\nกระคน\nกระคาย\nกระงกกระเงิ่น\nกระง่องกระแง่ง\nกระง่อนกระแง่น\nกระเง้ากระงอด\nกระโงก\nกระจก\nกระจง\nกระจร\nกระจอก\nกระจองหง่อง\nกระจ๋องหง่อง\nกระจองอแง\nกระจ้อน\nกระจอนหู\nกระจ้อย\nกระจ๋อหวอ\nกระจะ\nกระจัก\nกระจัง\nกระจัด\nกระจับ\nกระจ่า\nกระจ่าง\nกระจาด\nกระจาน\nกระจาบ\nกระจาม\nกระจาย\nกระจาว\nกระจิก\nกระจิ๋ง\nกระจิด\nกระจิบ\nกระจิ๋ม\nกระจิริด\nกระจิ๋ว\nกระจี้\nกระจี๋\nกระจุก\nกระจุ๋งกระจิ๋ง\nกระจุบ\nกระจุ๊บ\nกระจุ๋มกระจิ๋ม\nกระจุย\nกระจู้\nกระจู๋กระจี๋\nกระจูด\nกระเจอะกระเจิง\nกระเจา\nกระเจ่า\nกระเจ้า\nกระเจาะ\nกระเจิง\nกระเจิดกระเจิง\nกระเจี้ยง\nกระเจี๊ยบ\nกระเจียว\nกระเจี๊ยว\nกระแจะ\nกระโจน\nกระโจม\nกระฉอก\nกระฉ่อน\nกระฉับกระเฉง\nกระฉิ่ง\nกระฉีก\nกระฉูด\nกระเฉก\nกระเฉด\nกระแฉก\nกระโฉกกระเฉก\nกระโฉม\nกระชดกระช้อย\nกระชอน\nกระชอมดอก\nกระช้อย\nกระชัง\nกระชั้น\nกระชับ\nกระชาก\nกระชาย\nกระชิง\nกระชิด\nกระชุ\nกระชุก\nกระชุ่มกระชวย\nกระเชอ\nกระเชา\nกระเช้า\nกระเชียง\nกระแชง\nกระแชะ\nกระโชก\nกระซ่องกระแซ่ง\nกระซับ\nกระซาบ\nกระซิก\nกระซิบ\nกระซี้\nกระซุง\nกระซุบกระซิบ\nกระซุ้ม\nกระซู่\nกระเซ็น\nกระเซอ\nกระเซอะกระเซอ\nกระเซอะกระเซิง\nกระเซ้า\nกระเซิง\nกระแซ\nกระแซะ\nกระโซกระเซ\nกระฎี\nกระฎุมพี\nกระดก\nกระด้ง\nกระดนโด่\nกระดวง\nกระดวน\nกระด้วมกระเดี้ยม\nกระดอ\nกระดอง\nกระดองหาย\nกระดอน\nกระดอม\nกระดักกระเดี้ย\nกระดังงัว\nกระดังงา\nกระดาก\nกระด้าง\nกระดางลาง\nกระดาด\nกระดาดขาว\nกระดาน\nกระดานพน\nกระดาษ\nกระดำกระด่าง\nกระดิก\nกระดิ่ง\nกระดิ้ง\nกระดิบ\nกระดี่\nกระดี้กระเดียม\nกระดึง\nกระดืบ\nกระดุ\nกระดุกกระดิก\nกระดุ้งกระดิ้ง\nกระดุบ\nกระดุบกระดิบ\nกระดุม\nกระดูก\nกระเดก\nกระเด้ง\nกระเด็น\nกระเด้า\nกระเดาะ\nกระเดิด\nกระเดี้ย\nกระเดียด\nกระเดือก\nกระเดื่อง\nกระแด็ก\nกระแด้ง\nกระแด้แร่\nกระแด่ว\nกระแดะ\nกระโดก\nกระโดง\nกระโดด\nกระโดน\nกระได\nกระตรับ\nกระตราก\nกระตรุด\nกระตรุม\nกระต้วมกระเตี้ยม\nกระต้อ\nกระต่องกระแต่ง\nกระต๊อบ\nกระต้อยตีวิด\nกระตัก\nกระตั้ว\nกระต่าย\nกระติก\nกระติ๊ด\nกระติบ\nกระตือรือร้น\nกระตุก\nกระตุ้งกระติ้ง\nกระตุ่น\nกระตุ้น\nกระตูบ\nกระเตง\nกระเต็น\nกระเตอะ\nกระเตาะ\nกระเตาะกระแตะ\nกระเตื้อง\nกระแต\nกระแตแต้แว้ด\nกระโตกกระตาก\nกระโตน\nกระถด\nกระถอบ\nกระถั่ว\nกระถาง\nกระถิก\nกระถิน\nกระเถิบ\nกระโถน\nกระทก\nกระทง\nกระทบ\nกระทรวง\nกระทอก\nกระท้อน\nกระท่อนกระแท่น\nกระท่อม\nกระท้อมกระแท้ม\nกระทะ\nกระทั่ง\nกระทั้น\nกระทา\nกระทาย\nกระทาสี\nกระทาหอง\nกระทำ\nกระทิกกระทวย\nกระทิง\nกระทึง\nกระทืบ\nกระทุ\nกระทุง\nกระทุ้ง\nกระทุ่ม\nกระทู้\nกระเท่\nกระเทียบ\nกระเทียม\nกระเทือน\nกระเทื้อม\nกระแทก\nกระแท่น\nกระแทะ\nกระไทชาย\nกระน่อง\nกระนั้น\nกระนี้\nกระแนะกระแหน\nกระโน้น\nกระไน\nกระบก\nกระบม\nกระบวน\nกระบวย\nกระบวร\nกระบอก\nกระบอง\nกระบะ\nกระบัด\nกระบั้วกระเบี้ย\nกระบ่า\nกระบ้า\nกระบาก\nกระบาย\nกระบาล\nกระบิ\nกระบิ้ง\nกระบิด\nกระบิล\nกระบี่\nกระบือ\nกระบุง\nกระบุ่มกระบ่าม\nกระบู้กระบี้\nกระบูน\nกระบูร\nกระเบง\nกระเบญ\nกระเบ็ดกระบวน\nกระเบน\nกระเบา\nกระเบิก\nกระเบียด\nกระเบียน\nกระเบื้อง\nกระแบก\nกระแบะ\nกระโบม\nกระปมกระปำ\nกระปมกระเปา\nกระปรอก\nกระปรอกว่าว\nกระปรี้กระเปร่า\nกระปอก\nกระป้อกระแป้\nกระป่อง\nกระป๋อง\nกระปอดกระแปด\nกระป๋อหลอ\nกระปั้วกระเปี้ย\nกระป่ำ\nกระปุก\nกระปุ๊กลุก\nกระปุ่ม\nกระปุ่มกระป่ำ\nกระปุ่มกระปิ่ม\nกระเป๋า\nกระเปาะ\nกระโปก\nกระโปรง\nกระผม\nกระผลีกระผลาม\nกระผาน\nกระผีก\nกระพรวน\nกระพริ้ม\nกระพอก\nกระพอง\nกระพ้อม\nกระพัก\nกระพัง\nกระพังเหิร\nกระพังโหม\nกระพัด\nกระพัตร\nกระพัน\nกระพั่น\nกระพา\nกระพาก\nกระพี้\nกระพือ\nกระพุ้ง\nกระพุ่ม\nกระเพาะ\nกระเพิง\nกระเพื่อม\nกระแพ้ง\nกระฟัดกระเฟียด\nกระฟูมกระฟาย\nกระมล\nกระมอบ\nกระมอมกระแมม\nกระมัง\nกระมัน\nกระมิดกระเมี้ยน\nกระมุท\nกระเมาะ\nกระย่อง\nกระย่องกระแย่ง\nกระย่อน\nกระย่อม\nกระยา\nกระยาง\nกระยาจก\nกระยาหงัน\nกระยิก\nกระยิ้มกระย่อง\nกระยึกกระยือ\nกระยืดกระยาด\nกระเย้อกระแหย่ง\nกระรอก\nกระเรียน\nกระโรกน้ำข้าว\nกระโรกใหญ่\nกระไร\nกระลด\nกระลบ\nกระลอก\nกระลอม\nกระละหล่ำ\nกระลัด\nกระลับ\nกระลัมพร\nกระลา\nกระลำ\nกระลำพัก\nกระลำพุก\nกระลิง\nกระลี\nกระลุมพาง\nกระลุมพุก\nกระลุมพู\nกระลูน\nกระลู่น์\nกระเล็น\nกระเลียด\nกระเลือก\nกระโลง\nกระวน\nกระวัด\nกระวาด\nกระวาน\nกระวาย\nกระวิน\nกระวี\nกระวีกระวาด\nกระวูดกระวาด\nกระเวน\nกระเวยกระวาย\nกระแวน\nกระโวยกระวาย\nกระษัย\nกระษาปณ์\nกระสง\nกระสบ\nกระสม\nกระสรวล\nกระสร้อย\nกระสวน\nกระสวย\nกระสอบ\nกระสะ\nกระสัง\nกระสัน\nกระสับกระส่าย\nกระสา\nกระสานติ์\nกระสาบ\nกระสาย\nกระสือ\nกระสุงกระสิง\nกระสุน\nกระสูทธิ์\nกระสูบ\nกระเสด\nกระเส็นกระสาย\nกระเส่า\nกระเสาะกระแสะ\nกระเสียน\nกระเสียร\nกระเสือกกระสน\nกระแส\nกระแสง\nกระแสะ\nกระโสง\nกระไส\nกระหนก\nกระหนาก\nกระหนาบ\nกระหน่ำ\nกระหมวด\nกระหมอบ\nกระหม่อม\nกระหมั่ง\nกระหมิบ\nกระหมุดกระหมิด\nกระหมุบ\nกระหย่ง\nกระหย่อม\nกระหยัง\nกระหยับ\nกระหยิ่ม\nกระหรอด\nกระหริ่ง\nกระหวน\nกระหวัด\nกระหอง\nกระหัง\nกระหัด\nกระหาง\nกระหาย\nกระหึม\nกระหึ่ม\nกระหืดกระหอบ\nกระเห็น\nกระเหนียด\nกระเหม็ดกระเหมียด\nกระเหม็ดกระแหม่\nกระเหม่น\nกระเหม่า\nกระเหว่า\nกระเห่อ\nกระเหิม\nกระเหี้ยนกระหือรือ\nกระแห\nกระแหทอง\nกระแหนบ\nกระแหนะ\nกระแหมบ\nกระแหม่ว\nกระแหย่ง\nกระแหร่ม\nกระแหล่ง\nกระโห้\nกระโหนด\nกระโหม\nกระโหย\nกระโหย่ง\nกระอวล\nกระอ้อกระแอ้\nกระออดกระแอด\nกระออบ\nกระออม\nกระอ้อมกระแอ้ม\nกระอัก\nกระอักกระอ่วน\nกระอั้วแทงควาย\nกระอ้า\nกระอาน\nกระอิด\nกระอิดกระเอื้อน\nกระอึก\nกระอืด\nกระอุ\nกระอุก\nกระเอา\nกระเอิก\nกระเอิบ\nกระแอก\nกระแอบ\nกระแอม\nกระไอ\nกรัก\nกรักขี\nกรัง\nกรัชกาย\nกรัณฑ์\nกรัณย์\nกรัน\nกรับ\nกรัม\nกราก\nกราง\nกร่าง\nกราด\nกราดวง\nกราน\nกร้าน\nกราบ\nกราฟ\nกราม\nกราย\nกร่าย\nกราว\nกร้าว\nกรำ\nกร่ำ\nกริก\nกริ๊ก\nกริกกริว\nกริกกรี\nกริ่ง\nกริ๊ง\nกริงกริว\nกริ้งกริ้ว\nกริช\nกริณี\nกริน\nกรินทร์\nกรินี\nกริบ\nกริม\nกริ่ม\nกริยา\nกริยานุเคราะห์\nกริว\nกริ้ว\nกรี\nกรีฑา\nกรีด\nกรี๊ด\nกรีธา\nกรีษ\nกรีส\nกรึ๊บ\nกรุ\nกรุง\nกรุ้งกริ่ง\nกรุณ\nกรุณา\nกรุณาธิคุณ\nกรุ่น\nกรุบ\nกรุ่ม\nกรุ้มกริ่ม\nกรุย\nกรุยเกรียว\nกรู\nกรูด\nกรูม\nกเรณุ\nกเรนทร\nกเรนทร์\nกฤช\nกฤดาภินิหาร\nกฤตติกา\nกฤษฎา\nกฤษฎาธาร\nกฤษฎาภินิหาร\nกฤษฎีกา\nกฤษณา\nกล\nกลด\nกล่น\nกลบ\nกลม\nกลละ\nกลวง\nกล้วย\nกลศ\nกล้อ\nกลอก\nกลอง\nกล่อง\nกล้อง\nกล้องแกล้ง\nกลอน\nกล่อน\nกล้อน\nกล่อม\nกล้อมแกล้ม\nกลอย\nกลัก\nกลัด\nกลั่น\nกลั้น\nกลันทก์\nกลันทะ\nกลับ\nกลัมพร\nกลัมพัก\nกลัว\nกลั้ว\nกลา\nกล้า\nกลาก\nกลากลาด\nกลาง\nกลาด\nกลาบาต\nกลาป\nกล้าม\nกลาย\nกล้าย\nกลายกลอก\nกล่าว\nกลาโหม\nกล่ำ\nกล้ำ\nกลิ้ง\nกลิงค์\nกลิ่น\nกลี\nกลีบ\nกลึง\nกลึงค์\nกลืน\nกลุ่ม\nกลุ้ม\nกลูโคส\nกเลวระ\nกวด\nกวน\nกวม\nกวย\nกวยจั๊บ\nกวยจี๊\nก๋วยเตี๋ยว\nกวัก\nกวัด\nกวา\nกว่า\nกวาง\nกว่าง\nกว้าง\nกว่างโซ้ง\nกวางตุ้ง\nกวาด\nกว้าน\nกว๊าน\nกว้าว\nกวาวเครือ\nกวี\nกษณะ\nกษมา\nกษัตร\nกษัตรา\nกษัตริย์\nกษัตรี\nกษัตรีย์\nกษัย\nกษาปณ์\nกษิดิ\nกษีร\nกษีรธารา\nกษีระ\nกสานติ์\nกสิกร\nกสิกรรม\nกสิณ\nกหังปายา\nกหาปณะ\nกเฬวราก\nกอ\nก่อ\nก้อ\nก๊อ\nกอก\nก๊อก\nกอแก\nกอง\nก่อง\nก้อง\nกองกอย\nก๊อซ\nกอด\nก่อน\nก้อน\nกอบ\nกอบนาง\nก๊อบปี้\nกอปร\nก้อม\nกอมก้อ\nก่อมก้อ\nกอย\nก้อย\nก๋อย\nกอริลลา\nกอล์ฟ\nกอและ\nกอเอี๊ยะ\nกะ\nกะกัง\nกะง้องกะแง้ง\nกะจัง\nกะแจะ\nกะชะ\nกะชัง\nกะชามาศ\nกะชิง\nกะชึ่กกะชั่ก\nกะแช่\nกะซวก\nกะซ้าหอย\nกะซี่\nกะโซ่\nกะโซ้\nกะดก\nกะดง\nกะดวน\nกะดอก\nกะดะ\nกะดังบาย\nกะดัด\nกะด้าง\nกะดำกะด่าง\nกะดี\nกะดี่\nกะดุ้ง\nกะเด้\nกะเดก\nกะเดี๋ยว\nกะตรุด\nกะตอก\nกะต่อย\nกะตัก\nกะตั้ก\nกะตัง\nกะตังกะติ้ว\nกะต๊าก\nกะต้ำ\nกะติ๊กริก\nกะติงกะแตง\nกะตีบ\nกะตึงกะแตง\nกะตุ๊ก\nกะตุด\nกะตูก\nกะเตง\nกะโต๊ก\nกะโตงกะเตง\nกะโต้งโห่ง\nกะถัว\nกะทกรก\nกะทอ\nกะทัง\nกะทังหัน\nกะทัดรัด\nกะทันหัน\nกะทับ\nกะทิ\nกะทือ\nกะทุน\nกะเทย\nกะเทาะ\nกะแท้\nกะแท่ง\nกะแทน\nกะนวล\nกะนัด\nกะบ่อนกะแบ่น\nกะบัง\nกะบั้ง\nกะบิ้ง\nกะบิล\nกะบึงกะบอน\nกะบุด\nกะเบ้อ\nกะเบียน\nกะเบือ\nกะปริดกะปรอย\nกะปริบ\nกะปริบกะปรอย\nกะปลกกะเปลี้ย\nกะปวกกะเปียก\nกะปอม\nกะปอมขาง\nกะปะ\nกะป้ำกะเป๋อ\nกะปิ\nกะปู\nกะปูด\nกะปูดหลูด\nกะเปะ\nกะเปิ๊บกะป๊าบ\nกะเปียด\nกะแป้น\nกะแปะ\nกะโปรง\nกะโปโล\nกะผลุบกะโผล่\nกะเผ่น\nกะเผลก\nกะโผลกกะเผลก\nกะพง\nกะพรวดกะพราด\nกะพร่องกะแพร่ง\nกะพริบ\nกะพรุน\nกะพรูดกะพราด\nกะพล้อ\nกะพ้อ\nกะเพรา\nกะเพียด\nกะเม็ง\nกะร่องกะแร่ง\nกะระตะ\nกะระหนะ\nกะรัง\nกะรัต\nกะราง\nกะริง\nกะรุงกะรัง\nกะรุ่งกะริ่ง\nกะรุน\nกะเร\nกะเรกะร่อน\nกะเร่กะร่อน\nกะเร่อ\nกะเรี่ยกะราด\nกะโรกะเร\nกะลวย\nกะลอ\nกะล่อกะแล่\nกะลอจี๊\nกะล่อน\nกะล่อมกะแล่ม\nกะล่อยกะหลิบ\nกะละปังหา\nกะละมัง\nกะละแม\nกะละออม\nกะลังตังไก่\nกะลัน\nกะลันทา\nกะลา\nกะลาง\nกะลาสี\nกะลำพอ\nกะลิง\nกะลิงปลิง\nกะลิ้มกะเหลี่ย\nกะลิอ่อง\nกะลุมพี\nกะเล็ง\nกะเล่อกะล่า\nกะเลิด\nกะเลียว\nกะแล\nกะโล่\nกะโลง\nกะวอกกะแวก\nกะวะ\nกะส้มชื่น\nกะสัง\nกะส้าหอย\nกะหนอกะแหน\nกะหน็องกะแหน็ง\nกะหนะ\nกะหนุงกะหนิง\nกะหร่อง\nกะหรอด\nกะหร็อมกะแหร็ม\nกะหราน\nกะหรี่\nกะหรี่ปั๊บ\nกะหลาป๋า\nกะหล่ำ\nกะหลี่\nกะหลีกะหลอ\nกะหลุกกะหลิก\nกะหำ\nกะหำแพะ\nกะหือ\nกะหูด\nกะเหรี่ยง\nกะเหลาะเปาะ\nกะแหยก\nกะแหะ\nกะโหลก\nกะโหล้ง\nกะไหล่\nกะอวม\nกะออม\nกะอาน\nกะอาม\nกะอูบ\nกัก\nกั๊ก\nกักกรา\nกักการุ\nกักขฬะ\nกัง\nกั้ง\nกังก้า\nกังเกียง\nกังขา\nกังฉิน\nกังฟู\nกังวล\nกังวาน\nกังสดาล\nกังไส\nกังหัน\nกัจฉปะ\nกัจฉะ\nกัจฉา\nกัญ\nกัญจุก\nกัญจุการา\nกัญชา\nกัญญา\nกัฐ\nกัณฏกะ\nกัณฐกะ\nกัณฐชะ\nกัณฐัศ\nกัณฐัศว์\nกัณฐา\nกัณฐี\nกัณฑ์\nกัณณ์\nกัณหา\nกัด\nกัตติกมาส\nกัตติกา\nกัตติเกยา\nกัตรา\nกัทลี\nกัน\nกั่น\nกั้น\nกันเกรา\nกันไกร\nกันชิง\nกันเชอ\nกันดาร\nกันดาล\nกันได\nกันต์\nกันตัง\nกันไตร\nกันทร\nกันทรากร\nกันภิรมย์\nกันเมียง\nกันย์\nกันยา\nกันยายน\nกันลง\nกันลอง\nกันแสง\nกั้นหยั่น\nกับ\nกับแก้\nกัป\nกัปตัน\nกัปปาสิก\nกัปปิยภัณฑ์\nกัปปิยะ\nกัมปนาท\nกัมประโด\nกัมปี\nกัมพล\nกัมพุช\nกัมพู\nกัมพูชา\nกัมโพช\nกัมมัชวาต\nกัมมัฏฐาน\nกัมมันตภาพรังสี\nกัมมันตรังสี\nกัมมาร\nกัมลาศ\nกัยวิกัย\nกัลชาญ\nกัลบก\nกัลป์\nกัลปนา\nกัลปพฤกษ์\nกัลปังหา\nกัลปาวสาน\nกัลปิต\nกัลเม็ด\nกัลยา\nกัลยาณมิตร\nกัลยาณี\nกัลออม\nกัศยป\nกัษณ\nกา\nก๋า\nกาก\nกากบาท\nกากะทิง\nกากะเยีย\nกากี\nกาง\nก้าง\nกางเกง\nกางเขน\nก๊าซ\nกาซะลอง\nกาญจนา\nกาฐ\nกาด\nก๊าด\nกาน\nก่าน\nก้าน\nก๊าน\nกานดา\nกานต์\nกานน\nก้านพร้าว\nกานพลู\nกาน้า\nกาบ\nก้าบ\nกาบู\nกาพย์\nกาเฟอีน\nกาแฟ\nกาม\nก้าม\nกามารมณ์\nกามินี\nกาเมสุมิจฉาจาร\nกาย\nก่าย\nกาเยน\nการ\nการณ์\nการ์ด\nการ์ตูน\nการบูร\nการย์\nการวิก\nการเวก\nการะเกด\nการะบุหนิง\nการัณย์\nการันต์\nการางหัวขวาน\nการิตการก\nการิตวาจก\nการุญ\nการุณย์\nกาเรการ่อน\nกาล\nกาลกรรณี\nกาลกิณี\nกาลจักร\nกาลัญญุตา\nกาลัญญู\nกาลัด\nกาลานุกาล\nกาลิก\nกาลี\nกาแล\nกาแล็กซี\nกาแล็กโทส\nกาว\nก้าว\nกาววาว\nกาวาง\nกาแวน\nกาศิก\nกาษฐะ\nกาษา\nกาสร\nกาสะ\nกาสา\nกาสาร\nกาสาวะ\nกาสิโน\nกาหล\nกาหลง\nกาหลา\nกาเหว่า\nกาไหล่\nกาฬ\nกาฬาวก\nกาฮัง\nกำ\nก่ำ\nกำกวม\nกำกัด\nกำกับ\nก้ำกึ่ง\nกำกูน\nก้ำเกิน\nกำเกียง\nกำคูน\nกำจร\nกำจัด\nกำจาย\nกำชับ\nกำชำ\nกำซาบ\nกำซำ\nกำด้น\nกำดัด\nกำดาล\nกำเดา\nกำธร\nกำนล\nกำนัน\nกำนัล\nกำเนิด\nกำบัง\nก่ำบึ้ง\nกำเบ้อ\nกำปอ\nกำปั่น\nกำผลา\nกำพง\nกำพด\nกำพต\nกำพร้า\nกำพราก\nกำพวด\nกำพอง\nกำพืด\nกำพุด\nกำพู\nกำเพลิง\nกำแพง\nกำภู\nกำมลาศน์\nกำมเลศ\nกำมะถัน\nกำมะลอ\nกำมะหยี่\nกำมะหริด\nกำมังละการ\nกำมังวิลิต\nกำมัชพล\nกำยาน\nกำยำ\nกำรอ\nกำราบ\nกำราล\nกำเริบ\nกำไร\nกำลัง\nกำลุง\nกำเลา\nกำไล\nกำสรด\nกำสรวล\nกำหนด\nกำหนัด\nกำเหน็จ\nกำแหง\nกิก\nกิ๊ก\nกิ่ง\nกิ้งก่า\nกิ้งกือ\nกิ้งโครง\nกิจ\nกิจจะ\nกิจจา\nกิดาการ\nกิดาหยัน\nกิตติ\nกิตติมศักดิ์\nกิน\nกินนร\nกินปลี\nกินเปี้ยว\nกินริน\nกินรี\nกิ๊บ\nกิมตึ๋ง\nกิมิชาติ\nกิมิวิทยา\nกิโมโน\nกิโยตีน\nกิระ\nกิริณี\nกิรินท\nกิริเนศวร\nกิริยา\nกิเลน\nกิเลส\nกิโล\nกิโลมกะ\nกิ่ว\nกิ๋ว\nกี\nกี่\nกี้\nกี๊\nกี๋\nกีฏวิทยา\nกีด\nกีตาร์\nกีบ\nกีรติ\nกีฬา\nกึก\nกึง\nกึ่ง\nกึ๋น\nกุ\nกุก\nกุ๊ก\nกุกกุฏ\nกุกกุร\nกุกรรม\nกุ้ง\nกุงอน\nกุงาน\nกุโงก\nกุจี\nกุญแจ\nกุญชร\nกุฎ\nกุฎา\nกุฎี\nกุฎุมพี\nกุฏฐัง\nกุฏิ\nกุณฑ์\nกุณฑล\nกุณฑี\nกุณโฑ\nกุณาล\nกุณี\nกุด\nกุดัง\nกุดั่น\nกุดา\nกุทัณฑ์\nกุน\nกุ๊น\nกุนเชียง\nกุนที\nกุโนกามอ\nกุบ\nกุบกับ\nกุม\nกุ่ม\nกุมฝอย\nกุมภ์\nกุมภนิยา\nกุมภัณฑ์\nกุมภา\nกุมภิล\nกุมภีล์\nกุมเหง\nกุมาร\nกุมารา\nกุมารี\nกุมุท\nกุย\nกุ๊ย\nกุ๋ย\nกุยช่าย\nกุยเฮง\nกุรระ\nกุรุพินท์\nกุเรา\nกุล\nกุลา\nกุลาหล\nกุลี\nกุลีกุจอ\nกุเลา\nกุแล\nกุเวร\nกุศราช\nกุศล\nกุศโลบาย\nกุสุม\nกุสุมภ์\nกุสุมา\nกุสุมาลย์\nกุสุมิตลดาเวลลิตา\nกุหนี\nกุหนุง\nกุหร่า\nกุหล่า\nกุหลาบ\nกุแหละ\nกู\nกู่\nกู้\nกู๊ก\nกูฏ\nกูฏา\nกูณฑ์\nกูด\nกูบ\nกูปรี\nกูรมะ\nกูรมาวตาร\nเก\nเก้\nเก๊\nเก๋\nเกก\nเก๊ก\nเกกมะเหรก\nเก๊กฮวย\nเก้กัง\nเก็ง\nเก่ง\nเก้ง\nเก๋ง\nเกงกอย\nเก่งกาจ\nเกงเขง\nเก๋งเคง\nเก็จ\nเกจิอาจารย์\nเกชา\nเกณฑ์\nเกด\nเก็ด\nเกตุ\nเกน\nเก็บ\nเกม\nเกย\nเกยูร\nเกรง\nเกร็ง\nเกร็ด\nเกรน\nเกร่อ\nเกรอะ\nเกราะ\nเกริก\nเกริน\nเกริ่น\nเกรียก\nเกรียง\nเกรียด\nเกรียน\nเกรียบ\nเกรียม\nเกรียว\nเกรี้ยว\nเกเร\nเกล็ด\nเกลศ\nเกลอ\nเกลา\nเกล้า\nเกลาะ\nเกลี่ย\nเกลี้ย\nเกลียง\nเกลี้ยง\nเกลียด\nเกลียว\nเกลือ\nเกลื้อ\nเกลือก\nเกลื่อน\nเกลื้อน\nเกวัฏ\nเกวียน\nเกศ\nเกศว\nเกศวะ\nเกศา\nเกศินี\nเกศี\nเกษตร\nเกษม\nเกษียณ\nเกษียน\nเกษียร\nเกส\nเกสร\nเกสรี\nเกสา\nเกสี\nเก้อ\nเกอิชา\nเกะ\nเกะกะ\nเกา\nเก่า\nเก้า\nเก๋า\nเกาต์\nเกาทัณฑ์\nเกาบิล\nเกาลัด\nเกาลิน\nเกาไศย\nเกาหลี\nเกาเหลา\nเกาเหลียง\nเก้าอี้\nเกาะ\nเกิ้ง\nเกิด\nเกิน\nเกิบ\nเกีย\nเกียกกาย\nเกียง\nเกี่ยง\nเกี๋ยง\nเกียจ\nเกียด\nเกียน\nเกี้ยมไฉ่\nเกี้ยมอี๋\nเกียร์\nเกียรติ\nเกียรติ์\nเกี่ยว\nเกี้ยว\nเกี๊ยว\nเกี๊ยะ\nเกื้อ\nเกือก\nเกื้อกูล\nเกือบ\nแก\nแก่\nแก้\nแกง\nแก่ง\nแก้ง\nแก๊ง\nแกงได\nแกงแนง\nแกโดลิเนียม\nแกน\nแก่น\nแก๊ป\nแกม\nแก้ม\nแกมมา\nแกรก\nแกร่ง\nแกร็น\nแกรนิต\nแกรไฟต์\nแกร่ว\nแกระ\nแกล\nแกล้ง\nแกลน\nแกลบ\nแกล้ม\nแกลลอน\nแกลเลียม\nแกล้ว\nแกละ\nแกแล\nแกว\nแก้ว\nแกว่ง\nแก๊ส\nแกะ\nโก\nโก่\nโก้\nโก๋\nโกก\nโกกนุท\nโกกิลา\nโกโก้\nโกง\nโก่ง\nโกงกาง\nโก้งเก้ง\nโกงโก้\nโก้งโค้ง\nโกเชาว์\nโกญจนาท\nโกญจา\nโกฏิ\nโกฐ\nโกฐาส\nโกณะ\nโกดัง\nโกทัณฑ์\nโกน\nโก่น\nโก๋น\nโกมล\nโกมุท\nโกเมน\nโกเมศ\nโกย\nโกรก\nโกรกกราก\nโกรง\nโกร่ง\nโกร่งกร่าง\nโกรงเกรง\nโกร๋งเกร๋ง\nโกรญจ\nโกรต๋น\nโกรธ\nโกรธา\nโกร๋น\nโกรม\nโกรย\nโกรศ\nโกโรโกเต\nโกโรโกโรก\nโกโรโกโส\nโกลน\nโกลาหล\nโกไล\nโกวิท\nโกศ\nโกศล\nโกษม\nโกสน\nโกสัช\nโกสินทร์\nโกสีย์\nโกสุม\nโกไสย\nโกหก\nใกล้\nไก\nไก่\nไก๊\nไก๋\nไก่กอม\nไกพัล\nไกร\nไกรพ\nไกรลาส\nไกรศร\nไกรศรี\nไกรสร\nไกรสรี\nไกรสิทธิ\nไกล\nไกล่\nไกลาส\nไกว\nไกวัล\nขงจื๊อ\nขจร\nขจรจบ\nขจัด\nขจ่าง\nขจาย\nขจาว\nขจิต\nขจี\nขจุย\nขเจา\nขณะ\nขด\nขน\nข้น\nขนง\nขนด\nขนบ\nขนม\nขนอง\nขนอน\nขนอบ\nขนัด\nขนัน\nขนาก\nขนาง\nขนาด\nขนาน\nขนาบ\nขนาย\nขนำ\nขนิษฐ\nขนิษฐา\nขนุน\nขนุนนก\nขบ\nขบถ\nขบวน\nขบวร\nขม\nข่ม\nขมงโกรย\nขมวด\nขมวน\nขมอง\nขม่อม\nขมัง\nขมับ\nขมา\nขม้ำ\nขมิ้น\nขมิบ\nขมีขมัน\nขมึง\nขมึงทึง\nขมุ\nขมุกขมัว\nขมุบ\nขโมย\nขยด\nขยม\nขย่ม\nขยอก\nขยอง\nขย่อน\nขย้อน\nขยะ\nขยัก\nขยัน\nขยั้น\nขยับ\nขยาด\nขยาย\nขยำ\nขย้ำ\nขยิก\nขยิบ\nขยิ่ม\nขยี้\nขยุกขยิก\nขยุกขยุย\nขยุบ\nขยุบขยิบ\nขยุม\nขยุ้ม\nขยุย\nขรม\nขรรค์\nขรัว\nขริบ\nขรี\nขรึม\nขรุขระ\nขลบ\nขล้อ\nขลัง\nขลับ\nขลาด\nขลาย\nขลิบ\nขลุก\nขลุกขลัก\nขลุกขลิก\nขลุบ\nขลุม\nขลุ่ย\nขลู\nขลู่\nขวง\nข่วง\nขวด\nข่วน\nขวนขวาย\nขวบ\nขวย\nขวักไขว่\nขวัญ\nขวั้น\nขวับ\nขวับเขวียว\nขวา\nขวาก\nขวาง\nขว้าง\nขวาด\nขวาน\nขวายขวน\nขวาว\nขว้าว\nขวิด\nขอ\nข่อ\nข้อ\nของ\nข้อง\nขอด\nขอน\nข้อน\nขอบ\nขอม\nข่อย\nข้อย\nข่อยหยอง\nขะแจะ\nขะเน็ด\nขะมอมขะแมม\nขะมักเขม้น\nขะมุกขะมอม\nขะยิก\nขะยุก\nขะเย้อแขย่ง\nขัค\nขัง\nขังขอก\nขัช\nขัณฑสกร\nขัณฑสีมา\nขัด\nขัดมอน\nขัตติยมานะ\nขัน\nขั้น\nขันติ\nขันตี\nขันโตก\nขันที\nขันธ์\nขันธาวาร\nขับ\nขัว\nขั้ว\nขา\nข่า\nข้า\nขาก\nขาก๊วย\nขาง\nข่าง\nข้าง\nขาณุ\nขาด\nขาทนียะ\nขาน\nขาบ\nข้าพเจ้า\nขาม\nข่าม\nข้าม\nขาย\nข่าย\nขาล\nขาว\nข่าว\nข้าว\nข้าวอังกุลี\nขำ\nขิก\nขิง\nขิงแกลง\nขิงแครง\nขิด\nขิปสัทโท\nขิม\nขี่\nขี้\nขี้เข็บ\nขีณาสพ\nขีด\nขี้ตังนี\nขีปนาวุธ\nขี้ยอก\nขีระ\nขึง\nขึ้ง\nขึ้น\nขึ้นฉ่าย\nขืน\nขื่น\nขื่อ\nขุก\nขุด\nขุน\nขุ่น\nขุนเพ็ด\nขุม\nขุย\nขู่\nขูด\nเข\nเข้\nเขก\nเข็ง\nเข่ง\nเขจร\nเข็ญ\nเข็ด\nเขดา\nเขต\nเขน\nเข็น\nเข่น\nเขนง\nเขน็ด\nเขนย\nเขบ็จขบวน\nเขบ็ต\nเขม\nเข็ม\nเข้ม\nเข้มขาบ\nเขม็ง\nเขม็ดแขม่\nเขม่น\nเขม้น\nเขม้นขะมัก\nเขมร\nเขมา\nเขม่า\nเขมือบ\nเขย\nเขยก\nเขย่ง\nเขย้อแขย่ง\nเขย่า\nเขยิน\nเขยิบ\nเขยื้อน\nเขรอะ\nเขลง\nเขลอะ\nเขละ\nเขลา\nเขลาะ\nเขว\nเขษม\nเขฬะ\nเขะขะ\nเขา\nเข่า\nเข้า\nเขิง\nเขิน\nเขิบ\nเขี่ย\nเขียง\nเขียด\nเขียดตะปาด\nเขียน\nเขี่ยน\nเขียม\nเขียว\nเขี้ยว\nเขียะ\nเขือ\nเขือง\nเขื่อง\nเขื่อน\nเขือม\nแข\nแข้\nแขก\nแข็ง\nแข่ง\nแข้ง\nแขน\nแข่น\nแข้น\nแขนง\nแขม\nแขม็บ\nแขม่ว\nแขยง\nแขย่ง\nแขวก\nแขวง\nแขวน\nแขวะ\nโข\nโขก\nโขง\nโข่ง\nโขด\nโขดง\nโขน\nโขนง\nโขม\nโขมง\nโขมด\nโขยก\nโขยง\nโขย่ง\nโขยด\nโขลก\nโขลง\nโขลน\nโขษม\nไข\nไข่\nไข้\nไขว่\nไขว้\nคคนะ\nคคนัมพร\nคคนางค์\nคคนานต์\nคง\nคงคา\nคงไคย\nคช\nคชาชาติ\nคชาชีพ\nคชาธาร\nคชาภรณ์\nคณนา\nคณบดี\nคณะ\nคณาจารย์\nคณาธิการ\nคณาธิปไตย\nคณานับ\nคณิกา\nคณิต\nคเณศ\nคด\nคดี\nคติ\nคทา\nคน\nค้น\nคนทา\nคนทิสอ\nคนที\nคนโท\nคนธ์\nคันธ์\nคนธรรพ์\nคเนจร\nคบ\nคม\nคมน์\nคมนาการ\nคมนาคม\nคมิกภัต\nครก\nครบ\nครรชิต\nครรภ\nครรภ์\nครรลอง\nครรโลง\nครรไล\nครวญ\nครวี\nครหา\nครอก\nครอง\nครองแครง\nคร่อเงาะ\nคร่อเทียน\nครอบ\nคร่อม\nคระเมิม\nคระแลง\nคระไล\nคระแวง\nคระหน\nคระหวน\nคระหาย\nคระโหย\nครั่ง\nครั้ง\nครัดเคร่ง\nครัน\nครั่น\nครั้น\nครับ\nครัว\nครา\nคร่า\nคราก\nคราง\nคราญ\nคราด\nคร้าน\nคราบ\nคราม\nคร้าม\nครามครัน\nคราว\nคร่าว\nคราส\nครำ\nคร่ำ\nคร่ำเคร่ง\nคริปทอน\nคริสต์\nครีบ\nครีม\nครีษมายัน\nครึ\nครึกครื้น\nครึกโครม\nครึ่ง\nครึ่ด\nครึน\nครึ้ม\nครืด\nครืน\nครื้น\nครืนครั่น\nครื้นครั่น\nครื้นครึก\nครื้นเครง\nครือ\nครุ\nครุคระ\nครุฑ\nครุ่น\nครุมเครือ\nครุย\nครุวนา\nครู\nครู่\nครูด\nคฤโฆษ\nคฤนถ์\nคฤหบดี\nคฤหัสถ์\nคฤหาสน์\nคลวง\nคลอ\nคล้อ\nคลอก\nคลอง\nคล่อง\nคล้อง\nคลอด\nคลอน\nคล้อย\nคลอรีน\nคลอโรฟอร์ม\nคลอโรฟีลล์\nคละ\nคละคลุ้ง\nคลัก\nคลั่ก\nคลัง\nคลั่ง\nคลัตช์\nคลับคล้าย\nคลับคลา\nคลา\nคล้า\nคลางแคลง\nคลาด\nคลาน\nคลาย\nคล้าย\nคล้ายคลึง\nคล่าว\nคลำ\nคล่ำ\nคล้ำ\nคลิ้งโคลง\nคลิด\nคลินิก\nคลี\nคลี่\nคลึง\nคลื่น\nคลุก\nคลุ้ง\nคลุบ\nคลุม\nคลุ่ม\nคลุ้ม\nควง\nควณ\nควน\nควบ\nควย\nควร\nควัก\nควั่ก\nควั่งคว้าง\nควัน\nควั่น\nคว้า\nควาก\nคว้าง\nควาญ\nควาน\nคว้าน\nความ\nควาย\nคว่าว\nคว่ำ\nควินิน\nควิวคว่าง\nคหกรรม\nคหกรรมศาสตร์\nคหบดี\nคหัฐ\nคอ\nค้อ\nคอก\nค็อกคัส\nค็อกเทล\nคอเคซอยด์\nค่องอ้อย\nคอด\nคอแดง\nคอน\nค่อน\nค้อน\nคอนกรีต\nคอนเดนเซอร์\nคอนแวนต์\nคอนเสิร์ต\nคอม\nค่อม\nค้อม\nคอมพิวเตอร์\nคอมมานโด\nคอมมิวนิสต์\nคอย\nค่อย\nค้อย\nคอยล์\nคอร์ด\nคอแลน\nคอสติกโซดา\nคะ\nค่ะ\nคะไขว่\nคะค้อย\nคะคาน\nคะนน\nคะนอง\nคะน้า\nคะนึง\nคะเน\nคะเนงร้าย\nคะเน็ด\nคะแนน\nคะมำ\nคะยั้นคะยอ\nคะเยอ\nคัก\nคั่ก\nคัคนะ\nคัคนัมพร\nคัคนางค์\nคัคนานต์\nคั่ง\nคังไคย\nคัจฉ\nคัณฑมาลา\nคัณฑสูตร\nคัด\nคัดเค้า\nคัดมอน\nคัดเม็ง\nคัทลียา\nคัน\nคั่น\nคั้น\nคันถรจนาจารย์\nคันธกุฎี\nคันธมาทน์\nคันธารราษฎร์\nคับ\nคับค้อน\nคับคา\nคับแค\nคัพภ์\nคัมภีร์\nคัมภีรภาพ\nคัล\nคั่ว\nคา\nค่า\nค้า\nค่าคบ\nคาง\nค่าง\nค้าง\nคางคก\nค้างคาว\nคาด\nคาถา\nคาทอลิก\nคาน\nค้าน\nคาบ\nคาพยุต\nคาม\nคามวาสี\nคามณีย์\nคามภีร์\nคาย\nค่าย\nคาร์บอน\nคาร์บอเนต\nคาร์บอลิก\nคาร์บูเรเตอร์\nคาร์โบรันดัม\nคาร์โบไฮเดรต\nคารม\nคารวะ\nคาราเต้\nคาราวาน\nคาว\nค่าว\nค้าว\nคาวตอง\nคาวี\nคาวุต\nคาส\nคำ\nค่ำ\nค้ำ\nคำนวณ\nคำนวร\nคำนับ\nคำนัล\nคำนึง\nคำนูณ\nคำฝอย\nคำเพลิง\nคำรน\nคำรบ\nคำราม\nคำแสด\nคำแหง\nคำโอง\nคิก\nคิง\nคิด\nคิมหันต์\nคิรี\nคิลาน\nคิลานะ\nคิว\nคิ้ว\nคี่\nคีต\nคีบ\nคีม\nคีรี\nคีรีบูน\nคึก\nคึ่ก\nคึกคัก\nคืน\nคืบ\nคือ\nคุ\nคุก\nคุกกี้\nคุกคาม\nคุกพาทย์\nคุ้ง\nคุณ\nคุด\nคุดทะราด\nคุต\nคุตติ\nคุ่น\nคุ้น\nคุป\nคุปต์\nคุปติ\nคุม\nคุ่ม\nคุ้ม\nคุย\nคุ้ย\nคุยหฐาน\nคุยหประเทศ\nคุรุ\nคุลา\nคุลิก่า\nคุลีการ\nคุหา\nคู\nคู่\nคู้\nคูณ\nคูถ\nคูน\nคูปอง\nคูเรียม\nคูหา\nเค้ก\nเค้เก้\nเค้ง\nเคณฑะ\nเคด\nเค็ด\nเคน\nเค้น\nเคเบิล\nเค็ม\nเคมี\nเคย\nเครง\nเคร่ง\nเครงครา\nเครงครำ\nเครดิต\nเครน\nเครา\nเคร่า\nเคราหณี\nเคราะห์\nเครียด\nเครียว\nเครือ\nเครื่อง\nเคล้ง\nเคล็ด\nเคล้น\nเคล้า\nเคล่าคล่อง\nเคลิบเคลิ้ม\nเคลิ้ม\nเคลีย\nเคลื่อน\nเคลือบ\nเคว้ง\nเคหะ\nเคหา\nเคอะ\nเค้า\nเคาน์เตอร์\nเคารพ\nเคาะ\nเคาะแคะ\nเคียง\nเคียด\nเคียน\nเคียม\nเคี่ยม\nเคียร\nเคียว\nเคี่ยว\nเคี้ยว\nเคือง\nแค\nแค่\nแค้\nแคแล\nแคดเมียม\nแค็ตตาล็อก\nแคแตร\nแคโทด\nแคน\nแค่น\nแค้น\nแคบ\nแคบหมู\nแคปซูล\nแคม\nแคร่\nแครก\nแครง\nแคระ\nแคลคูลัส\nแคลง\nแคลเซียม\nแคลน\nแคล้ว\nแคล่วคล่อง\nแคลอรี\nแคลิฟอร์เนียม\nแคว\nแควก\nแคว้น\nแคแสด\nแคะ\nโค\nโคก\nโคเคน\nโค่ง\nโค้ง\nโคจร\nโคเซแคนต์\nโคไซน์\nโคตร\nโคแทนเจนต์\nโคธา\nโคน\nโค่น\nโคบอลต์\nโคปผกะ\nโคม\nโคม่า\nโครก\nโครกคราก\nโครง\nโคร่ง\nโคร่งคร่าง\nโครม\nโครเมียม\nโครโมโซม\nโคราช\nโครำ\nโคล\nโคลง\nโคลน\nโควตา\nโคออร์ดิเนต\nใคร\nใคร่\nใคร่ครวญ\nไค\nไค้\nไคร้\nไคร้เครือ\nไคล\nไคล้\nฆนะ\nฆราวาส\nฆ้อง\nฆ่า\nฆาต\nฆาน\nฆานินทรีย์\nเฆี่ยน\nโฆรวิส\nโฆษก\nโฆษณา\nโฆษะ\nโฆษิต\nงก\nงง\nงด\nงดงาม\nงบ\nงม\nงวง\nง่วง\nงวด\nง่วน\nง้วน\nงวยงง\nงอ\nง้อ\nงอก\nงอกแงก\nง่อกแง่ก\nง่อง\nง่องแง่ง\nงอแง\nงอด\nงอดแงด\nงอน\nง่อน\nง่อนแง่น\nงอนหง่อ\nงอบ\nงอม\nง้อม\nงอย\nง่อย\nงัก\nงั่ก\nงั่ง\nงัด\nงัน\nงันงก\nงับ\nงัว\nงั่ว\nงัวเงีย\nงา\nง่า\nง้าง\nงาน\nง่าน\nงาบ\nงาม\nง่าม\nงาย\nง่าย\nง้าว\nงำ\nง่ำ\nง้ำ\nงิ้ว\nงี่เง่า\nงีบ\nงึก\nงึน\nงึม\nงุด\nงุนงง\nงุ่นง่าน\nงุบ\nงุบงิบ\nงุ้ม\nงุ่มง่าม\nงุย\nงู\nงูบ\nงูสวัด\nเงก\nเงย\nเงอะ\nเงอะงะ\nเงา\nเง่า\nเง้า\nเงาะ\nเงิน\nเงี่ยง\nเงี่ยน\nเงียบ\nเงี้ยว\nเงี่ยหู\nเงื้อ\nเงือก\nเงื่อง\nเงือด\nเงื่อน\nเงือบ\nเงื้อม\nแง\nแง่\nแง่ง\nแง่น\nแง้ม\nแงะ\nโง\nโง่\nโงก\nโงกเงก\nโงง\nโง่ง\nโง้ง\nโงงเงง\nโง่งเง่ง\nโงเง\nโงน\nโงนเงน\nไง้\nจก\nจง\nจ่ง\nจงกรม\nจงกล\nจงกลนี\nจงโคร่ง\nโจงโคร่ง\nจงอร\nจงอาง\nจด\nจดุรงค์\nจตุปัจจัย\nจตุลังคบาท\nจตุโลกบาล\nจตุสดมภ์\nจตุตถ\nจตุตถี\nจตุร\nจตุรงค์\nจตุรพักตร์\nจตุรพิธ\nจตุรพิธพร\nจน\nจบ\nจม\nจ่ม\nจมร\nจมรี\nจมูก\nจยุติ\nจร\nจรณะ\nจรด\nจรรจา\nจรรโจษ\nจรรม\nจรรยา\nจรรโลง\nจรลี\nจรวจ\nจรวด\nจรส\nจรอก\nจระเข้\nจระนำ\nจระบี\nจรัล\nจรัส\nจราจร\nจราญ\nจริก\nจริง\nจริต\nจริม\nจริยธรรม\nจริยวัตร\nจริยาวัตร\nจริยศาสตร์\nจริยศึกษา\nจริยา\nจรุง\nจรูง\nจรูญ\nจเร\nจล\nจลนพลศาสตร์\nจลนศาสตร์\nจลนี\nจลาจล\nจวก\nจ๊วก\nจวง\nจ้วง\nจ๋วง\nจวด\nจวน\nจวบ\nจวัก\nจอ\nจ่อ\nจ้อ\nจ๋อ\nจอก\nจ้อก\nจ๊อก\nจ้อกแจ้ก\nจอง\nจ้อง\nจ๋อง\nจ้องเต\nจองเปรียง\nจ้องหน่อง\nจองหอง\nจอแจ\nจ๋อแจ๋\nจอด\nจอน\nจ้อน\nจอนจ่อ\nจอบ\nจอม\nจ่อม\nจอมสุรางค์\nจ่อย\nจ้อย\nจ๋อย\nจอแส\nจะ\nจ้ะ\nจ๊ะ\nจ๋ะ\nจะกละ\nจะกลาม\nจะกูด\nจะขาบ\nจะเข้\nจะเข็บ\nจะงอย\nจะจะ\nจ๊ะจ๋า\nจะแจ้ง\nจะแจ่ม\nจะละเม็ด\nจะละหวั่น\nจัก\nจั้ก\nจักกาย\nจั๊กกิ้ม\nจักขุ\nจักจั่น\nจักจี้\nจั๊กจี้\nจั๊กเดียม\nจักร\nจักรพาก\nจักรวาก\nจักริน\nจักรี\nจั๊กเล้อ\nจักษุ\nจักแหล่น\nจัง\nจั้ง\nจั๋ง\nจังกวด\nจังกอบ\nจังก้า\nจังกูด\nจังโกฏก์\nจังงัง\nจั้งมั่ง\nจังไร\nจังหนับ\nจังหรีด\nจังหวะ\nจังหวัด\nจังหัน\nจัญไร\nจัณฑ์\nจัณฑาล\nจัด\nจัตตาฬีสะ\nจัตวา\nจัตุ\nจัตุรงค์\nจัตุรัส\nจัตุลังคบาท\nจัตุโลกบาล\nจัตุสดมภ์\nจัน\nจั่น\nจันโจษ\nจั่นดิน\nจันท์\nจันทน์\nจันทร์\nจันทรคติ\nจันทรคราส\nจันทรุปราคา\nจันทรเม็ด\nจันทวาร\nจันทัน\nจันอับ\nจับ\nจับกัง\nจับฉ่าย\nจับเดิม\nจับปิ้ง\nจับยี่กี\nจัมบก\nจัมปกะ\nจัมปา\nจัมมะ\nจัว\nจั่ว\nจั๊วะ\nจา\nจ่า\nจ้า\nจ๋า\nจาก\nจากพาก\nจาคะ\nจาคี\nจาง\nจ่าง\nจ้าง\nจางปาง\nจางวาง\nจาด\nจาตุรงค์\nจาตุรนต์\nจาตุรันต์\nจาน\nจ้าน\nจาบ\nจาบัล\nจาบัลย์\nจาป\nจาม\nจ่ามงกุฎ\nจามจุรี\nจามร\nจามรี\nจามีกร\nจ่าย\nจาร\nจ่ารง\nจารวาก\nจาระไน\nจาระบี\nจาริก\nจารึก\nจารี\nจารีต\nจารุ\nจ้าละหวั่น\nจาว\nจ้าว\nจ่าหวัก\nจำ\nจ้ำ\nจำกัด\nจำงาย\nจ้ำจี้\nจำเจ\nจำเดิม\nจำทวย\nจำนง\nจำนน\nจำนรรจ์\nจำนรรจา\nจำนวน\nจำนอง\nจำนัล\nจำนำ\nจำเนียน\nจำเนียม\nจำเนียร\nจำแนก\nจำบ่ม\nจำบัง\nจ้ำเบ้า\nจำปา\nจำปาดะ\nจำปี\nจำปูน\nจำพวก\nจำเพาะ\nจ้ำม่ำ\nจำรัส\nจำราญ\nจำรูญ\nจำเริญ\nจำเรียง\nจำลอง\nจำเลย\nจำเลาะ\nจำแลง\nจำแล่น\nจำหนับ\nจ๋ำหนับ\nจำหน่าย\nจำหระ\nจำหล่อ\nจำหลัก\nจำเหียง\nจำอวด\nจิ\nจิก\nจิ้งโกร่ง\nจิ้งจก\nจิงจ้อ\nจิ้งจอก\nจิงจัง\nจิ้งจัง\nจิงโจ้\nจิ้งหรีด\nจิ้งเหลน\nจิต\nจิตกาธาน\nจิตต์\nจิตร\nจิตรจุล\nจิตระ\nจิตรา\nจินเจา\nจินดา\nจินดาหนา\nจินดาหรา\nจินต์\nจิบ\nจิปาถะ\nจิ่ม\nจิ้ม\nจิ้มก้อง\nจิ้มลิ้ม\nจิรกาล\nจิ๋ว\nจี\nจี่\nจี้\nจี๋\nจี๋จ้อ\nจีแจ๊บ\nจี๊ด\nจีน\nจีนแส\nจีบ\nจีโบ\nจีม\nจีวร\nจึง\nจึ่ง\nจึ้ง\nจืด\nจุ\nจุก\nจุ๊กกรู๊\nจุกจิก\nจุกชี\nจุกผาม\nจุกโรหินี\nจุ่ง\nจุ๋งจิ๋ง\nจุฑา\nจุณ\nจุณณียบท\nจุด\nจุติ\nจุตูปปาตญาณ\nจุทส\nจุน\nจุ่น\nจุ้น\nจุนจู๋\nจุ้นจู๊\nจุนทการ\nจุนสี\nจุบ\nจุ๊บ\nจุบจิบ\nจุ๊บแจง\nจุ่ม\nจุ้ม\nจุ๋มจิ๋ม\nจุมพฏ\nจุมพรวด\nจุมพล\nจุมพิต\nจุมโพล่\nจุ้ย\nจุรณ\nจูรณ\nจุรี\nจุไร\nจุล\nจุลจอมเกล้า\nจุลวงศ์\nจุฬา\nจุฬาราชมนตรี\nจุฬาลัมพา\nจุฬาลำพา\nจู\nจู่\nจู้\nจู๋\nจูง\nจู้จี้\nจู๋จี๋\nจู๊ด\nจูบ\nเจ\nเจ๊ก\nเจ่ง\nเจ้ง\nเจ๊ง\nเจ๋ง\nเจ็ด\nเจ็ดตะคลี\nเจดีย์\nเจดียสถาน\nเจต\nเจตนา\nเจตพังคี\nเจตมูลเพลิง\nเจตสิก\nเจโตวิมุติ\nเจน\nเจ็บ\nเจรจา\nเจริญ\nเจริด\nเจรียง\nเจลียง\nเจว็ด\nเจษฎา\nเจ๊สัว\nเจอ\nเจ่อ\nเจ๋อ\nเจ๋อเจ๊อะ\nเจอร์เมเนียม\nเจอะ\nเจา\nเจ่า\nเจ้า\nเจ๊า\nเจาะ\nเจิ่ง\nเจิด\nเจิ่น\nเจิม\nเจีย\nเจียง\nเจียด\nเจียน\nเจี๋ยน\nเจี๊ยบ\nเจียม\nเจี๋ยมเจี้ยม\nเจียร\nเจียระไน\nเจียระบาด\nเจียว\nเจี๊ยวจ๊าว\nเจือ\nเจื่อน\nเจื้อย\nเจือสม\nแจ\nแจ้\nแจ๋\nแจก\nแจกัน\nแจง\nแจ่ง\nแจ้ง\nแจงลอน\nแจ๊ด\nแจ๊ดแจ๋\nแจตร\nแจ้น\nแจบ\nแจ่ม\nแจรง\nแจว\nแจ่ว\nแจ้ว\nแจ๋ว\nแจะ\nโจก\nโจ๊ก\nโจง\nโจ่งครึ่ม\nโจ๋งครึ่ม\nโจ่งครุ่ม\nโจ๋งเจ๋ง\nโจ่งแจ้ง\nโจท\nโจทก์\nโจทนา\nโจทย์\nโจน\nโจม\nโจร\nโจล\nโจษ\nโจษจัน\nใจ\nไจ\nไจ้\nฉก\nฉกรรจ์\nฉกษัตริย์\nฉกาจ\nฉกามาพจร\nฉกามาวจร\nฉง\nฉงน\nฉงาย\nฉทึง\nฉนวน\nฉนัง\nฉนาก\nฉนำ\nฉบัง\nฉบัด\nฉบับ\nฉบำ\nฉม\nฉมบ\nฉมวก\nฉมวย\nฉม่อง\nฉมัง\nฉมัน\nฉมา\nฉมำ\nฉล\nฉลวย\nฉลอง\nฉลอม\nฉลัก\nฉลับ\nฉลาก\nฉลาง\nฉลาด\nฉลาม\nฉลาย\nฉลิว\nฉลีก\nฉลุ\nฉลู\nฉวย\nฉวะ\nฉวัดเฉวียน\nฉวาง\nฉวี\nฉศก\nฉ้อ\nฉอก\nฉ่อง\nฉอด\nฉ่อย\nฉอเลาะ\nฉะ\nฉะฉาด\nฉะฉาน\nฉะฉ่ำ\nฉะฉี่\nฉะเฉื่อย\nฉะนั้น\nฉะนี้\nฉะอ้อน\nฉักกะ\nฉัฐ\nฉัด\nฉัตร\nฉัททันต์\nฉัน\nฉันท\nฉันท์\nฉันทะ\nฉันทา\nฉันทาคติ\nฉันทานุมัติ\nฉับ\nฉัพพรรณรังสี\nฉัยยา\nฉ่า\nฉาก\nฉาง\nฉ่าง\nฉ่าฉาว\nฉาด\nฉาดฉาน\nฉาตกภัย\nฉาน\nฉาบ\nฉาบฉวย\nฉาย\nฉายา\nฉาว\nฉ่ำ\nฉำฉา\nฉำแฉะ\nฉิ่ง\nฉิน\nฉินท์\nฉินทฤกษ์\nฉิบ\nฉิมพลี\nฉิว\nฉี่\nฉีก\nฉีด\nฉุ\nฉุก\nฉุด\nฉุน\nฉุป\nฉุป\nฉุย\nฉุยฉาย\nฉู่\nฉู่ฉี่\nฉูด\nฉูดฉาด\nเฉ\nเฉก\nเฉโก\nเฉ่ง\nเฉด\nเฉท\nเฉนียน\nเฉพาะ\nเฉย\nเฉลย\nเฉลว\nเฉลา\nเฉลิม\nเฉลี่ย\nเฉลียง\nเฉลี่ยง\nเฉลียบ\nเฉลียว\nเฉวียง\nเฉวียน\nเฉอะแฉะ\nเฉา\nเฉาก๊วย\nเฉาฮื้อ\nเฉาะ\nเฉิด\nเฉิบ\nเฉียง\nเฉียงพร้านางแอ\nเฉียด\nเฉียบ\nเฉียว\nเฉี่ยว\nเฉือน\nเฉื่อย\nแฉ\nแฉ่\nแฉก\nแฉง\nแฉ่ง\nแฉลบ\nแฉล้ม\nแฉะ\nโฉ\nโฉ่\nโฉเก\nโฉ่งฉ่าง\nโฉงเฉง\nโฉด\nโฉนด\nโฉบ\nโฉเบ๊\nโฉม\nโฉลก\nไฉน\nไฉไล\nชก\nชคัตตรัย\nชง\nชงโค\nชงฆ์\nชงฆา\nชงโลง\nชฎา\nชฎามังษี\nชฎามังสี\nชฎิล\nชด\nชน\nชนก\nชนนี\nชนม์\nชนวน\nชนะ\nชนัก\nชนา\nชนาง\nชนิด\nชเนตตี\nชบา\nชม\nชมดชม้อย\nชมนาด\nชมพู\nชมพู่\nชมรม\nชม้อย\nชม้าย\nชไม\nชยา\nชโย\nชรทึง\nชรริน\nชรอุ่ม\nชระล้ำ\nชระลุ\nชระอาบ\nชระเอม\nชรัด\nชรา\nชล\nชโลง\nชโลม\nช่วง\nชวด\nชวน\nชวย\nช่วย\nชวร\nชวลิต\nชวา\nชวาล\nชวาลา\nช่อ\nชอก\nช็อก\nช็อกโกเลต\nช็อกโกแลต\nชอง\nช่อง\nช้อง\nชองระอา\nชอน\nช่อน\nช้อน\nชอบ\nชอม\nช้อย\nชอล์ก\nชอ่ำ\nชอุ่ม\nชะ\nชะคราม\nชะงอก\nชะง่อน\nชะงัก\nชะงัด\nชะง้ำ\nชะงุ้ม\nชะเง้อ\nชะเงื้อม\nชะแง้\nชะโงก\nชะฉ่า\nชะช่อง\nชะชะ\nชะช้า\nชะโด\nชะตา\nชะต้า\nชะนี\nชะเนาะ\nชะเนียง\nชะพลู\nชะเพลิง\nชะมด\nชะมบ\nชะมวง\nชะมัง\nชะมัด\nชะแม่\nชะรอย\nชะลอ\nชะลอม\nชะล่า\nชะลาน\nชะลิน\nชะลูด\nชะเลง\nชะเลย\nชะแล็ก\nชะแลง\nชะวาก\nชะวาด\nชะเวิกชะวาก\nชะแวง\nชะอม\nชะอ้อน\nชะเอม\nชะโอน\nชัก\nชักคราม\nชักช้า\nชัง\nชั่ง\nชังคา\nชังฆ\nชัชวาล\nชัฏ\nชัด\nชัดช้า\nชัน\nชั้น\nชันกาด\nชันชี\nชันตุ\nชันนะตุ\nชันนุ\nชันโรง\nชันษา\nชันสูตร\nชัปนะ\nชัพ\nชัมพูนท\nชัย\nชัยพฤกษ์\nชัยภูมิ\nชัลลุกา\nชั่ว\nชั้ว\nชัวชม\nชา\nช้า\nชาคระ\nชาคริต\nชาคริยานุโยค\nช่าง\nช้าง\nช้าช่อน\nชาญ\nชาด\nชาดก\nชาต\nชาตบุษย์\nชาตรี\nชาตะ\nชาตา\nชาติ\nชาน\nชานุ\nช้าปี่\nชาปีไหน\nช้าแป้น\nช้าพลู\nชาม\nชามพูนท\nชามาดร\nชามาดา\nชามาตุ\nชาย\nชายา\nชาล\nชาลา\nชาลินี\nช้าเลือด\nชาว\nชาวี\nชำ\nช่ำ\nช้ำ\nชำงัด\nชำงาย\nช่ำชอง\nชำนะ\nชำนัญ\nชำนัน\nชำนาญ\nชำนิ\nชำเนียร\nชำมะนาด\nชำมะเลียง\nชำร่วย\nชำระ\nช้ำรั่ว\nชำรุด\nชำเรา\nชำเราะ\nชำแรก\nชำแระ\nชำเลือง\nชำแหละ\nชิ\nชิง\nชิ่ง\nชิงชัน\nชิงช้า\nชิงช้าชาลี\nชิงชี่\nชิงฮื้อ\nชิชะ\nชิชิ\nชิณณะ\nชิด\nชิเดนทรีย์\nชิต\nชิตินทรีย์\nชิน\nชิ้น\nชินโต\nชิโนรส\nชิม\nชิมแปนซี\nชิยา\nชิรณะ\nชิระ\nชิวหา\nชิสา\nชี\nชี่\nชี้\nชีปะขาว\nชีผะขาว\nชีผ้าขาว\nชีพ\nชีฟอง\nชีรณ\nชีระ\nชีวเคมี\nชีวประวัติ\nชีวภาพ\nชีววิทยา\nชีวะ\nชีวัน\nชีวา\nชีวาตม์\nชีวาลัย\nชีวิต\nชีวิตักษัย\nชีวิน\nชีวี\nชืด\nชื่น\nชื้น\nชื่อ\nชุก\nชุกชี\nชุ้ง\nชุณห\nชุด\nชุติ\nชุน\nชุบ\nชุม\nชุ่ม\nชุมนุม\nชุมพร\nชุมพา\nชุมแพรก\nชุมรุม\nชุมแสง\nชุมเห็ด\nชุ่ย\nชุลมุน\nชุลี\nชุษณะ\nชู\nชู้\nเช็ค\nเช้ง\nเช้งวับ\nเชงเลง\nเช็ด\nเชน\nเช่น\nเชย\nเชลง\nเชลย\nเชลแล็ก\nเชลียง\nเชวง\nเชษฐะ\nเชษฐา\nเชอ\nเช่า\nเช้า\nเชาว์\nเชาวน์\nเชิง\nเชิญ\nเชิด\nเชิ้ต\nเชียง\nเชี่ยน\nเชียบ\nเชี่ยม\nเชียร\nเชียร์\nเชียว\nเชี่ยว\nเชื่อ\nเชื้อ\nเชือก\nเชื่อง\nเชือด\nเชือน\nเชื่อม\nแช\nแช่\nแช่ง\nแชงมา\nแชบ๊วย\nแช่ม\nแชร์\nแชล่ม\nแชสซี\nแชะ\nโชก\nโชค\nโชงโลง\nโชดก\nโชดึก\nโชต\nโชตก\nโชติ\nโชติก\nโชน\nโชมโรม\nโชย\nโชยงการ\nโชยชาย\nโชยติส\nโชว์\nใช่\nใช้\nไช\nไชนะ\nไชย\nไชโย\nซก\nซ่ก\nซงดำ\nซ่งฮื้อ\nซด\nซน\nซ้น\nซบ\nซม\nซวดเซ\nซวน\nซวย\nซอ\nซอก\nซอง\nซ่อง\nซ้อง\nซองแมว\nซ้องแมว\nซอน\nซ่อน\nซ้อน\nซอม\nซ่อม\nซ้อม\nซอมซ่อ\nซอย\nซอส\nซัก\nซักส้าว\nซัง\nซั้ง\nซัด\nซับ\nซัลฟา\nซั้ว\nซา\nซ่า\nซาก\nซาง\nซ่าง\nซาด\nซาน\nซ่าน\nซาบซ่าน\nซาบซึ้ง\nซ่าโบะ\nซาแมเรียม\nซ้าย\nซาลาเปา\nซาว\nซ่าหริ่ม\nซำ\nซ้ำ\nซิ\nซี\nซิก\nซิกข์\nซิกซี้\nซิกแซ็ก\nซิการ์\nซิงโคนา\nซิ่น\nซินนามิก\nซินแส\nซิบ\nซิป\nซิฟิลิส\nซิลิคอน\nซิว\nซี่\nซีก\nซีเซียม\nซีด\nซี้ด\nซีนอน\nซีป่าย\nซีเมนต์\nซีเรียม\nซีลีเนียม\nซีอิ๊ว\nซึก\nซึง\nซึ่ง\nซึ้ง\nซึม\nซื่อ\nซื้อ\nซุก\nซุง\nซุน\nซุบ\nซุป\nซุ่ม\nซุ้ม\nซุ่มซ่าม\nซุย\nซู่\nซูโครส\nซูด\nซู้ด\nซูดซาด\nซูบ\nเซ\nเซ็ก\nเซแคนต์\nเซ็ง\nเซ่ง\nเซ้ง\nเซ็งแซ่\nเซต\nเซน\nเซ็น\nเซ่น\nเซนติกรัม\nเซนติเกรด\nเซนติเมตร\nเซนติลิตร\nเซปักตะกร้อ\nเซราะ\nเซรุ่ม\nเซลเซียส\nเซลล์\nเซลลูลอยด์\nเซลลูโลส\nเซ่อ\nเซอร์โคเนียม\nเซอะ\nเซา\nเซ้าซี้\nเซาะ\nเซิง\nเซิ้ง\nเซียน\nเซียบ\nเซียมซี\nเซียว\nเซี่ยว\nเซี่ยวกาง\nเซื่อง\nแซ\nแซ่\nแซ็กคาริน\nแซง\nแซงแซว\nแซด\nแซบ\nแซม\nแซยิด\nแซ่ว\nแซะ\nโซ\nโซ่\nโซก\nโซ่ง\nโซงโขดง\nโซเซ\nโซดา\nโซเดียม\nโซม\nโซรม\nโซลา\nไซ\nไซ้\nไซเกิล\nไซโคลน\nไซน์\nไซยาไนด์\nไซร้\nไซเรน\nไซโล\nฌาน\nฌาปน\nฌาปนกิจ\nฌาปนสถาน\nเฌอ\nเฌอเอม\nญวน\nญัตติ\nญาณ\nญาติ\nญานาซะฮ์\nญิบ\nญี่ปุ่น\nเญยธรรม\nไญยธรรม\nฎีกา\nฐกัด\nฐากูร\nฐาน\nฐานะ\nฐานันดร\nฐานานุกรม\nฐานานุรูป\nฐานานุศักดิ์\nฐานียะ\nฐาปน\nฐาปนา\nฐายี\nฐิต\nฐิติ\nฑาหก\nฑาหะ\nเฒ่า\nณรงค์\nเณร\nดก\nดง\nด้ง\nด้น\nดนโด่\nดนตรี\nดนัย\nดนุ\nดนู\nดบัสวิน\nดบัสวี\nดม\nดรงค์\nดรณี\nดรรชนี\nดราฟต์\nดรุณ\nดรุณี\nดล\nดวง\nด้วง\nดวด\nด่วน\nด้วน\nด้วย\nดอก\nดอง\nด่อง\nด้อง\nดองฉาย\nดองดึง\nดอด\nดอน\nด่อน\nดอม\nด้อม\nดอย\nด้อย\nดอลลาร์\nดะ\nดะโต๊ะ\nดะหมัง\nดัก\nดักดาน\nดักแด้\nดัง\nดั่ง\nดั้ง\nดัชนี\nดัด\nดัตช์\nดัน\nดั้น\nดับ\nดัมพ์\nดั้วเดี้ย\nดัสกร\nดา\nด่า\nดาก\nด่าง\nด้าง\nดาด\nดาน\nด่าน\nด้าน\nดาบ\nดาบส\nดาม\nด้าม\nด้ามจิ้ว\nดามพ์\nดาย\nด้าย\nดารกะ\nดารณี\nดารดาษ\nดาระ\nดารา\nดาล\nดาลัด\nดาว\nด่าว\nด้าว\nดาวดึงส์\nดาวบส\nดาษ\nดาษดา\nดำ\nด่ำ\nด้ำ\nดำกล\nดำเกิง\nดำแคง\nดำดง\nดำนาณ\nดำเนิน\nดำบล\nดำรง\nดำรวจ\nดำรัส\nดำริ\nดำรี\nดำรู\nดำฤษณา\nดำเลิง\nดิก\nดิ่ง\nดิฉัน\nดิฐ\nดิตถ์\nดิถี\nดิน\nดิ้น\nดิบ\nดิรัจฉาน\nดิลก\nดิ่ว\nดิ้ว\nดิ้วเดี้ยว\nดิษฐ์\nดิสโพรเซียม\nดี\nดีเซล\nดีด\nดีดีที\nดีบุก\nดีปลี\nดีเปรสชัน\nดีหมี\nดีหลี\nดึก\nดึง\nดึ่ง\nดึ่ม\nดื่น\nดื่ม\nดือ\nดื้อ\nดุ\nดุก\nดุกดิก\nดุกทะเล\nดุ้ง\nดุ้งดิ้ง\nดุจ\nดุด\nดุน\nดุ้น\nดุบ\nดุม\nดุ่ม\nดุ่ย\nดุรงค์\nดุริยะ\nดุริยางค์\nดุริยางคศาสตร์\nดุริยางคศิลป์\nดุล\nดุษฎี\nดุษณี\nดุษณีภาพ\nดุษิต\nดุสิต\nดุเหว่า\nดู\nดูกค่าง\nดูกร\nดูด\nดูรา\nดูแล\nเด\nเด่\nเดก\nเด็ก\nเดกซ์โทรส\nเดคากรัม\nเดคาเมตร\nเดคาลิตร\nเด้ง\nเด็จ\nเดช\nเดชน์\nเดชนะ\nเดชะ\nเดโช\nเดซิกรัม\nเดซิเมตร\nเดซิลิตร\nเด็ด\nเดน\nเด่น\nเดนมาร์ก\nเดรัจฉาน\nเด๋อ\nเด๋อด๋า\nเดา\nเด้า\nเดาะ\nเดิน\nเดิ่น\nเดิม\nเดียง\nเดียด\nเดียรดาษ\nเดียรถีย์\nเดียรัจฉาน\nเดียว\nเดี่ยว\nเดี๋ยว\nเดียะ\nเดื่อ\nเดือก\nเดื่อง\nเดือด\nเดือน\nเดือย\nแด\nแด่\nแดก\nแด็ก\nแดกงา\nแดกแด้\nแดง\nแดด\nแดน\nแด่น\nแด่ว\nแดะ\nแดะแด๋\nโด\nโด่\nโดกเดก\nโด่ง\nโดด\nโดน\nโดม\nโดมร\nโดย\nโดรณ\nใด\nได\nได้\nไดแซ็กคาไรด์\nไดนาโม\nไดนาไมต์\nไดโนเสาร์\nไดเรกตริกซ์\nตก\nต๊กโต\nตง\nต๋ง\nตงฉิน\nตงิด\nตงุ่น\nตด\nตติย\nตถาคต\nตน\nต้น\nตนัย\nตนุ\nตบ\nตบะ\nตปนียะ\nตม\nต้ม\nตมูก\nตยาคี\nตรง\nตรณี\nตรม\nตรรก\nตรรกะ\nตรลบ\nตรลอด\nตรลาด\nตรวจ\nตรวน\nตรอก\nตรอง\nตรอมใจ\nตรอมตรม\nตระ\nตระกล\nตระกวน\nตระกอง\nตระการ\nตระกูล\nตระคัร\nตระเตรียม\nตระนาว\nตระบก\nตระบอก\nตระบอง\nตระบัด\nตระบัน\nตระเบ็ง\nตระแบก\nตระแบง\nตระโบม\nตระพอง\nตระพัง\nตระลาการ\nตระวัน\nตระเว็ด\nตระเวน\nตระสัก\nตระหง่าน\nตระหนก\nตระหนัก\nตระหน่ำ\nตระหนี่\nตรัง\nตรังค์\nตรับ\nตรับฟัง\nตรัย\nตรัยตรึงศ์\nตรัส\nตรัสสา\nตรา\nตรากตรำ\nตราชู\nตราบ\nตราสัง\nตรำ\nตริ\nตริว\nตรี\nตรีปวาย\nตรีพิธพรรณ\nตรียัมปวาย\nตรึก\nตรึง\nตรุ\nตรุณ\nตรุณะ\nตรุษ\nตรู\nตรู่\nตฤณ\nตฤตีย\nตฤษณา\nตลก\nตลบ\nตลอด\nตลับ\nตลาด\nตลิ่ง\nตลึง\nตวง\nต่วน\nต้วมเตี้ยม\nตวัก\nตวัด\nตวาด\nตอ\nตอม่อ\nต่อ\nต้อ\nตอก\nต๊อก\nต๊อกต๋อย\nตอง\nต้อง\nตองกราย\nต้องเต\nตองแตก\nต่องแต่ง\nตองเหลือง\nตอด\nตอน\nต้อน\nตอบ\nตอเบา\nตอม\nต่อม\nต๋อม\nต่อย\nต้อย\nต้อยตริ่ง\nต้อยติ่ง\nต้อยตีวิด\nตอแย\nตอร์ปิโด\nต่อไส้\nตอแหล\nตะ\nตะกรน\nตะกร้อ\nตะกรัน\nตะกรับ\nตะกร้า\nตะกราม\nตะกรุด\nตะกรุม\nตะกรุมตะกราม\nตะกละ\nตะกลาม\nตะกวด\nตะกอ\nตะกอน\nตะกัง\nตะกั่ว\nตะกาง\nตะกาด\nตะกาย\nตะกาว\nตะกุกตะกัก\nตะกุย\nตะกู\nตะกูด\nตะเกียกตะกาย\nตะเกียง\nตะเกียบ\nตะแก\nตะแก่\nตะแกรง\nตะโก\nตะโก้\nตะโกก\nตะโกน\nตะโกรง\nตะโกรม\nตะไกร\nตะขบ\nตะขอ\nตะขาบ\nตะขิดตะขวง\nตะเข้\nตะเข็บ\nตะโขง\nตะคร้อ\nตะครอง\nตะครั่นตะครอ\nตะคร้ำ\nตะคริว\nตะคิว\nตะครุบ\nตะคอก\nตะคัน\nตะค้า\nตะคาก\nตะค้าน\nตะคุ่ม\nตะเครียว\nตะเคียว\nตะเคียน\nตะแคง\nตะไคร่\nตะไคร้\nตะเฆ่\nตะนอย\nตะนาว\nตะบม\nตะบอง\nตะบอย\nตะบัน\nตะบิ้ง\nตะบิด\nตะบิดตะบอย\nตะบี้ตะบัน\nตะบึง\nตะบูน\nตะเบ็ง\nตะเบ็งมาน\nตะเบ๊ะ\nตะแบก\nตะแบง\nตะโบม\nตะไบ\nตะปบ\nตะปลิง\nตะปิ้ง\nตะปุ่มตะป่ำ\nตะปู\nตะพง\nตะพด\nตะพอง\nตะพัก\nตะพัง\nตะพัด\nตะพั้น\nตะพาก\nตะพาน\nตะพาบ\nตะพาย\nตะพึด\nตะพึดตะพือ\nตะพุ่น\nตะเพรา\nตะเพิง\nตะเพิด\nตะเพียน\nตะโพก\nตะโพง\nตะโพน\nตะเภา\nตะใภ้\nตะม่อ\nตะมอย\nตะรังกะนู\nตะรังตังกวาง\nตะรังตังช้าง\nตะราง\nตะลอง\nตะลอน\nตะล่อม\nตะละ\nตะลาน\nตะลิงปลิง\nตะลิบ\nตะลีตะลาน\nตะลึง\nตะลึงพรึงเพริด\nตะลุง\nตะลุ่ม\nตะลุ่มนก\nตะลุมบอน\nตะลุ่มโปง\nตะลุมพอ\nตะลุมพุก\nตะลุย\nตะเลง\nตะแลงแกง\nตะไล\nตะวัน\nตะเวน\nตะหลิว\nตะหลุก\nตะหลุง\nตะแหง่ว\nตะแหมะแขะ\nตะโหงก\nตัก\nตักกะ\nตักเตือน\nตั๊กแตน\nตักษัย\nตัง\nตั่ง\nตั้ง\nตังเก\nตังฉ่าย\nตังเม\nตังวาย\nตังโอ๋\nตัจฉก\nตัจฉนี\nตัณฑุล\nตัณหา\nตัด\nตัน\nตันตระ\nตันติ\nตันหยง\nตับ\nตับปิ้ง\nตัว\nตั๋ว\nตัวจี๊ด\nตัวตืด\nตั้วโผ\nตั้วเหี่ย\nตา\nตาก\nตากวาง\nต่าง\nตาด\nตาน\nต่าน\nต้าน\nตานนกกด\nตานี\nตาบ\nตาม\nตามะแน\nตามิน\nตาย\nตาราไต\nตาล\nตาลุ\nต๋าว\nตาเสือ\nตาหนู\nตาฬ\nตำ\nต่ำ\nตำนาน\nตำบล\nตำแบ\nตำแย\nตำรวจ\nตำรับ\nตำรา\nตำรุ\nตำลึง\nตำเสา\nตำหนัก\nตำหนิ\nตำแหน่ง\nติ\nติก\nติ๊ก\nติกะ\nติกาหรัง\nติง\nติ่ง\nติ๋ง\nติ่งตั่ง\nติ๋งต่าง\nติงส\nติงสติ\nติณ\nติด\nติตติกะ\nติตติร\nติตถ\nติตถะ\nติถี\nติมิงคละ\nติรัจฉาน\nติลก\nติละ\nติ้ว\nตี\nตี่\nตีน\nตีบ\nตีรถะ\nตีระ\nตึ\nตึก\nตึ้ก\nตึ้กตั้ก\nตึง\nตึดตื๋อ\nตึ๊ดตื๋อ\nตืด\nตื่น\nตื้น\nตื้อ\nตื๊อ\nตื๋อ\nตุ\nตุ๊\nตุ๊กแก\nตุ๊กตา\nตุ๊กต่ำ\nตุกติก\nตุ๊กติ๊ก\nตุ๊กตุ่น\nตุ๊กตุ๋ย\nตุง\nตุ้งก่า\nตุ้งติ้ง\nตุ๊ดตู่\nตุน\nตุ่น\nตุ๋น\nตุนาหงัน\nตุบ\nตุ้บ\nตุ๊บป่อง\nตุปัดตุป่อง\nตุปัดตุเป๋\nตุ่ม\nตุ้ม\nตุ๋ม\nตุ้มกว้าว\nตุมกา\nตุ้มแซะ\nตุมตัง\nตุ้มเต๋น\nตุ้มปี่\nตุมพะ\nตุ่ย\nตุ้ย\nตุ๊ย\nตุ๋ยตุ่ย\nตุรคะ\nตุรงค์\nตุล\nตุลา\nตุหรัดตุเหร่\nตู\nตู่\nตู้\nตูก\nตูด\nตูบ\nตูม\nเต๊ก\nเต็ง\nเต่ง\nเตช\nเตโช\nเต้น\nเต็นท์\nเต็ม\nเตย\nเตร่\nเตร็ด\nเตรตา\nเตรียม\nเตรียมตรม\nเตละ\nเตลิด\nเตว็ด\nเต่อ\nเตอะ\nเตะ\nเตา\nเต่า\nเต้า\nเต๋า\nเต่าเกียด\nเต้าเจี้ยว\nเต้าทึง\nเต้าหู้\nเต้าฮวย\nเต๊าะ\nเตาะแตะ\nเติ่ง\nเติบ\nเติม\nเตี้ย\nเตียง\nเตียน\nเตียบ\nเตี๋ยม\nเตียรถ์\nเตียว\nเตี่ยว\nเตือน\nแต่\nแต้\nแตก\nแตง\nแต่ง\nแตงเม\nแต้จิ๋ว\nแตด\nแต๊ดแต๋\nแตน\nแต้ม\nแตร\nแตระ\nแต้ว\nแต้วแร้ว\nแต้วแล้ว\nแต่ว่า\nแต้แว้ด\nแตะ\nโต\nโต้\nโตก\nโต่ง\nโต้ง\nโตงเตง\nโตฎก\nโต๊ด\nโตน\nโตนด\nโต้โผ\nโตมร\nโตย\nโตรก\nโต๊ะ\nใต้\nไต\nไต่\nไต้\nไต๋\nไตร\nไตรกิศยา\nไตรดายุค\nไตร่ตรอง\nไตรย\nไต้หวัน\nถก\nถกล\nถงาด\nถด\nถนน\nถนอม\nถนัด\nถนัน\nถนำ\nถนิม\nถม\nถ่ม\nถมอ\nถมึงทึง\nถลก\nถลกบาตร\nถลน\nถล่ม\nถลอก\nถลัน\nถลา\nถลาก\nถลาย\nถลำ\nถลึงตา\nถลุง\nถ่วง\nถ้วน\nถ้วย\nถวัล\nถวัลย์\nถวาย\nถวิน\nถวิล\nถ่อ\nถ้อ\nถอก\nถอง\nถ่อง\nถ้อง\nถอด\nถอน\nถอบ\nถอบแถบ\nถ่อม\nถอย\nถ่อย\nถ้อย\nถะ\nถะถั่น\nถะมัดถะแมง\nถัก\nถัง\nถั่ง\nถัด\nถัทธ\nถัน\nถั่น\nถับ\nถัมภ์\nถัว\nถั่ว\nถา\nถ้า\nถาก\nถาง\nถ่าง\nถาด\nถาน\nถ่าน\nถาบ\nถาม\nถามะ\nถ่าย\nถ่าว\nถาวร\nถาวรธิรา\nถ้ำ\nถิ่น\nถี่\nถีบ\nถึก\nถึง\nถือ\nถุง\nถุน\nถุย\nถู\nถูก\nเถกิง\nเถน\nเถร\nเถระ\nเถรานุเถระ\nเถรี\nเถลไถล\nเถลิง\nเถลือกถลน\nเถ่อ\nเถอะ\nเถา\nเถ้า\nเถาวัลย์\nเถาะ\nเถิก\nเถิง\nเถิด\nเถิดเทิง\nเถิน\nเถียง\nเถียร\nเถือ\nเถือก\nเถื่อน\nแถ\nแถก\nแถง\nแถน\nแถบ\nแถม\nแถลง\nแถลบ\nแถว\nโถ\nโถง\nโถงเถง\nโถบ\nโถม\nโถมนาการ\nไถ\nไถ่\nไถ้\nไถง\nไถล\nทกล้า\nทแกล้ว\nท่ง\nทด\nทน\nท้น\nทนต์\nทนโท่\nทนาย\nทบ\nทบวง\nทมอ\nทมะ\nทมิฬ\nทโมน\nทยอย\nทแยง\nทรกรรม\nทรชน\nทรชาติ\nทรพิษ\nทรยศ\nทรราช\nทรลักษณ์\nทรง\nทรพี\nทรมาทรกรรม\nทรมาน\nทรรทึง\nทรรป\nทรรปณ์\nทรรปณะ\nทรรศนะ\nทรรศนาการ\nทรรศนีย์\nทรวง\nทรวดทรง\nทรวาร\nทรหด\nทรหวล\nทรหึง\nทรอมโบน\nทระนง\nทรัพย์\nทรัพยากร\nทรัมเป็ต\nทรานซิสเตอร์\nทราบ\nทราม\nทราย\nทรุด\nทฤษฎี\nทลาย\nทลิท\nทลิททก\nทวง\nท้วง\nท่วงท่า\nท่วงทำนอง\nท่วงที\nทวด\nทวน\nท้วน\nท่วม\nท้วม\nทวย\nท่วย\nท้วย\nทวอย\nทวัตดึงส์\nทวัย\nทวา\nทวาบร\nทว่า\nทวาย\nทวาร\nทวิ\nทวิช\nทวิตีย์\nทวิตียา\nทวี\nทวีธาภิเษก\nทวีป\nทศ\nทศมี\nทศางค์\nทหระ\nทหาร\nทอ\nท่อ\nท้อ\nทอก\nทอง\nท่อง\nท้อง\nทองกวาว\nทองภู\nทองลิน\nทองหลาง\nทองโหลง\nทองอุไร\nทอด\nทอน\nท่อน\nทอนซิล\nทอฟฟี่\nท่อม\nทอย\nทอเรียม\nทะ\nทะงัน\nทะนง\nทะนน\nทะนาน\nทะนุ\nทะเบียน\nทะมัดทะแมง\nทะมึน\nทะมื่น\nทะแม่ง\nทะยาน\nทะเยอทะยาน\nทะแย\nทะร่อทะแร่\nทะลวง\nทะลอก\nทะลัก\nทะลาย\nทะลึ่ง\nทะลุ\nทะลุดทะลาด\nทะเล\nทะเล้น\nทะเล่อทะล่า\nทะเลาะ\nทะเลิ่กทะลั่ก\nทะวาย\nทัก\nทักข์\nทักขิญ\nทักขิณ\nทักขิณา\nทักขิณาวัฏ\nทักขิโณทก\nทักขิไณยบุคคล\nทักทิน\nทักษะ\nทักษา\nทักษิณ\nทักษิณา\nทักษิโณทก\nทัง\nทั่ง\nทั้ง\nทังวล\nทังวี้ทังวล\nทังสเตน\nทัณฑ์\nทัณฑกรรม\nทัณฑฆาต\nทัณฑสถาน\nทัณฑะ\nทัณฑิกา\nทัณฑิมา\nทัณฑีบท\nทัด\nทัดทา\nทัต\nทัน\nทันต์\nทันตชะ\nทันตแพทย์\nทันติน\nทันตี\nทันธ์\nทับ\nทับทิม\nทับสมิงคลา\nทัพ\nทัพพะ\nทัพพี\nทั่ว\nทัศ\nทัศน์\nทัศนะ\nทัศนา\nทัศนคติ\nทัศนวิสัย\nทัศนศาสตร์\nทัศนศิลป์\nทัศนศึกษา\nทัศนาการ\nทัศนาจร\nทัศนีย์\nทัศนียภาพ\nทัศนูปกรณ์\nทัศไนย\nทัสนานุตริยะ\nทัฬหะ\nทัฬหิ\nทัฬหี\nทา\nท่า\nท้า\nทาก\nทาง\nท้าง\nทาฐะ\nทาฐิกะ\nทาฒะ\nทาฒิกะ\nทาน\nท่าน\nทานต์\nทานพ\nทาบ\nทาม\nท่ามกลาง\nทาย\nท้าย\nทายก\nทายัช\nทายาด\nทายาท\nทายิกา\nทารก\nทารพี\nทาริกา\nทารุณ\nทาว\nท่าว\nท้าว\nทาส\nทาสี\nทำ\nทำนบ\nทำนอง\nทำนาย\nทำนุ\nทำนูล\nทำเนา\nทำเนียบ\nทำไม\nทำลาย\nทำเล\nทิคัมพร\nทิฆัมพร\nทิ้ง\nทิงเจอร์\nทิ้งถ่อน\nทิ้งทูด\nทิชะ\nทิชากร\nทิชาชาติ\nทิฏฐะ\nทิฏฐานุคติ\nทิฏฐุชุกรรม\nทิฐธรรม\nทิฐิ\nทิด\nทิต\nทิน\nทิพ\nทิพย์\nทิพา\nทิม\nทิ่ม\nทิมทอง\nทิว\nทิวงคต\nทิวทัศน์\nทิวา\nทิศ\nทิศา\nทิศานุทิศ\nที\nที่\nทีฆชาติ\nทีฆนิกาย\nทีฆสระ\nทีฆายุ\nทีป\nทีม\nทีเอ็นที\nทึก\nทึกทัก\nทึ่ง\nทึ้ง\nทึดทือ\nทึนทึก\nทึบ\nทึม\nทึ่ม\nทื่อ\nทุ\nทุก\nทุกข์\nทุกขลาภ\nทุกขเวทนา\nทุกขารมณ์\nทุกฏ\nทุกรกิริยา\nทุกะ\nทุกัง\nทุกูล\nทุคตะ\nทุคติ\nทุ่ง\nทุ้ง\nทุงงะ\nทุจริต\nทุด\nทุทรรศนนิยม\nทุนิยม\nทุน\nทุ่น\nทุนนิมิต\nทุบ\nทุบทู\nทุปปัญญา\nทุพพรรณ\nทุพพล\nทุพพลภาพ\nทุพภิกขภัย\nทุม\nทุ่ม\nทุ้ม\nทุย\nทุ้ย\nทุรกันดาร\nทุรชน\nทุรชาติ\nทุรพล\nทุรลักษณ์\nทุรน\nทุรนทุราย\nทุรัศ\nทุราคม\nทุราจาร\nทุเรศ\nทุเรียน\nทุลักทุเล\nทุเลา\nทุศีล\nทุสสะ\nทุสสีล\nทู\nทูโม่ง\nทู่\nทู้\nทูกัง\nทู่ซี้\nทูต\nทูตานุทูต\nทูน\nทูบ\nทูม\nทูล\nทูเลียม\nเท\nเท่\nเทคนิค\nเทคนีเชียม\nเทคโนโลยี\nเท้ง\nเท้งเต้ง\nเท็จ\nเทนนิส\nเทพ\nเทพา\nเทพารักษ์\nเทพยเจ้า\nเทพยดา\nเทพยุดา\nเทพิน\nเทพินทร์\nเทพี\nเทเพนทร์\nเทโพ\nเทริด\nเทลลูเรียม\nเทวทัณฑ์\nเทวดา\nเทวทูต\nเทวธรรม\nเทวนาครี\nเทวนิยม\nเทวรูป\nเทวโลก\nเทววิทยา\nเทวสถาน\nเทวศ\nเทวษ\nเทวัญ\nเทวัน\nเทวาลัย\nเทวินทร์\nเทวี\nเทเวศ\nเทเวศร์\nเทเวศวร์\nเทศ\nเทศะ\nเทศาภิบาล\nเทศน์\nเทศนา\nเทห์\nเท่ห์\nเทห์ฟากฟ้า\nเทหวัตถุ\nเท่อ\nเท้อ\nเทอญ\nเทอม\nเทอร์เบียม\nเทอร์โมมิเตอร์\nเทอะทะ\nเทา\nเท่า\nเท้า\nเท้ายายม่อม\nเท่ารึง\nเทิ่ง\nเทิด\nเทิน\nเทิบ\nเทิบทาบ\nเทิ้ม\nเที่ยง\nเทียด\nเทียน\nเที้ยน\nเทียบ\nเทียม\nเทียร\nเที้ยร\nเทียว\nเที่ยว\nเทือ\nเทื่อ\nเทื้อ\nเทือก\nแท้\nแท็กซี่\nแทง\nแท่ง\nแท้ง\nแท็งก์\nแทงทวย\nแทงวิสัย\nแทตย์\nแทน\nแท่น\nแทนเจนต์\nแทนทาลัม\nแทบ\nแทรก\nแทรกเตอร์\nแทลเลียม\nแทะ\nโท\nโท่\nโทกเทก\nโทง\nโทงเทง\nโทณะ\nโทน\nโทนโท่\nโทมนัส\nโทรคมนาคม\nโทรทรรศน์\nโทรทัศน์\nโทรพิมพ์\nโทรภาพ\nโทรเลข\nโทรศัพท์\nโทรสาร\nโทรม\nโทษ\nโทษา\nโทษานุโทษ\nโทสะ\nโทสาคติ\nโทโส\nโทหฬินี\nไท\nไท้\nไทเทเนียม\nไทเทรต\nไทย\nไทร\nไทวะ\nธง\nธงก์\nธชะ\nธชี\nธตรฐ\nธนบัตร\nธนสมบัติ\nธนสาร\nธนะ\nธนา\nธนาคม\nธนาคาร\nธนาณัติ\nธเนศ\nธโนปจัย\nธไนศวรรย์\nธนิต\nธนิษฐะ\nธนิษฐา\nธนุ\nธนุรวิทยา\nธนุรเวท\nธนู\nธม\nธมกรก\nธรณะ\nธรณิน\nธรณินทร์\nธรณิศ\nธรณิศร\nธรณิศวร์\nธรณี\nธรมาน\nธรรม\nธรรมนูญ\nธรรมยุต\nธรรมยุติกนิกาย\nธรรมะ\nธรรมาทิตย์\nธรรมาธรรม\nธรรมาธิปไตย\nธรรมาธิษฐาน\nธรรมานุสาร\nธรรมาภิมุข\nธรรมาภิสมัย\nธรรมายตนะ\nธรรมารมณ์\nธรรมาสน์\nธรรมิก\nธรา\nธราดล\nธราธร\nธราธาร\nธราธิบดี\nธราธิป\nธริษตรี\nธเรษตรี\nธเรศ\nธวัช\nธัช\nธัญ\nธัญญาหาร\nธันยา\nธันยาวาท\nธันวาคม\nธัมมะ\nธาดา\nธาตรี\nธาตวากร\nธาตุ\nธาตุโขภ\nธาตุมมิสสา\nธานิน\nธานินทร์\nธานี\nธาร\nธารกำนัล\nธารคำนัล\nธารณะ\nธารณา\nธารา\nธาษตรี\nธำมรงค์\nธำรง\nธิดา\nธิติ\nธีระ\nธุช\nธุดงค์\nธุดงควัตร\nธุต\nธุตตะ\nธุมเกตุ\nธุมา\nธุรการ\nธุรกิจ\nธุระ\nธุรำ\nธุลี\nธุวดารา\nธุวภาค\nธุวมณฑล\nธูป\nเธนุ\nเธอ\nเธียร\nโธ่\nโธวนะ\nนก\nนกุล\nนขลิขิต\nนขะ\nนขา\nนเคนทร์\nนโคทร\nนคร\nนครินทร์\nนคเรศ\nนง\nนงคุฐ\nนที\nนนตรา\nนนท์\nนันทน์\nนนทรี\nนนทลี\nนนทิ\nนบ\nนปุงสกลิงค์\nนปุงสกลึงค์\nนพ\nนพนิต\nนภจร\nนภดล\nนภศูล\nนภา\nนภาลัย\nนม\nนมตำเรีย\nนมตำเลีย\nนมะ\nนมัสการ\nนมาซ\nนยนะ\nนยนา\nนโยบาย\nนรชาติ\nนรเทพ\nนรนาถ\nนรบดี\nนรบาล\nนรสิงห์\nนรสีห์\nนรา\nนรากร\nนราธิป\nนรินทร์\nนริศ\nนริศร\nนริศวร\nนเรศ\nนเรศวร\nนเรศวร์\nนโรดม\nนรก\nนรกานต์\nนรการ\nนรี\nนฤเทพ\nนฤบดี\nนฤบาล\nนฤเบศ\nนฤปเวศม์\nนฤปัตนี\nนฤคหิต\nนฤนาท\nนฤมล\nนฤตย์\nนฤตยสถาน\nนฤพาน\nนฤมาณ\nนฤมิต\nนลาฏ\nนลิน\nนลินี\nนวกรรม\nนวการ\nนวกิจ\nนวนิยาย\nนวปฎล\nนวรัตน์\nนวโลหะ\nนวกะ\nนวโกวาท\nนวด\nนวม\nน่วม\nนวมี\nนวย\nนวล\nนวัตกรรม\nนวาระ\nนหารุ\nนหุต\nนฬการ\nนอ\nนอก\nนอง\nน่อง\nน้อง\nน่องแน่ง\nนอต\nนอน\nนอบ\nน้อม\nน้อย\nน้อยหน่า\nน้อยโหน่ง\nนะ\nนะแน่ง\nนัก\nนักขัต\nนักขัตฤกษ์\nนักษัตร\nนักสราช\nนัข\nนั่ง\nนังคัล\nนัจ\nนัฑ\nนัด\nนัดดา\nนัตถุ์\nนั่น\nนั้น\nนันททายี\nนันทนาการ\nนันทวัน\nนันทิ\nนับ\nนัย\nนัยน์\nนัยนา\nนัว\nนัวเนีย\nนา\nน่า\nน้า\nนาก\nนากบุด\nนากาสาหรี\nนาค\nนาคร\nนาคา\nนาคาวโลก\nนาคินทร์\nนาคี\nนาเคนทร์\nนาเคศวร\nนาง\nนางเกล็ด\nนางนวล\nนางนูน\nนางรม\nนางรำ\nนางล้อม\nนางเล็ด\nนางเลิ้ง\nนางหงส์\nนางอาย\nนางแอ่น\nนาฏ\nนาฏกะ\nนาด\nนาถ\nนาท\nนาที\nนาน\nน่าน\nนานัครส\nนานัปการ\nนานา\nนาเนก\nนาบ\nนาภี\nนาม\nนามานุกรม\nนามาภิไธย\nนาย\nน่าย\nนายก\nนายิกา\nนารา\nนารายณ์\nนารี\nนาเรศ\nนาลิวัน\nนาว\nน้าว\nนาวา\nนาวิก\nนาวิน\nนาวี\nนาเวศ\nนาศ\nนาสา\nนาสิก\nนาฬิกา\nนาฬิเก\nนาฬี\nนำ\nน้ำ\nน้ำละว้า\nน้ำว้า\nนิ\nนิกเกิล\nนิกขะ\nนิกร\nนิกรอยด์\nนิกาย\nนิคม\nนิครนถ์\nนิคหกรรม\nนิคหะ\nนิคหิต\nนิคาลัย\nนิเคราะห์\nนิโคติน\nนิโครธ\nนิโครม\nนิ่ง\nนิจ\nนิด\nนิตย์\nนิตยทาน\nนิตยภัต\nนิตยสาร\nนิติ\nนิทร\nนิทรรศการ\nนิทรา\nนิทรารมณ์\nนิทัศน์\nนิทาน\nนิเทศ\nนิธาน\nนิธิ\nนินทา\nนินนาท\nนินาท\nนิบาต\nนิปริยาย\nนิปัจการ\nนิพจน์\nนิพนธ์\nนิพพาน\nนิพพิทา\nนิพัทธ์\nนิพันธ์\nนิพิท\nนิเพท\nนิภา\nนิ่ม\nนิ้ม\nนิมนต์\nนิมมาน\nนิมมานรดี\nนิมิต\nนิยต\nนิยม\nนิยัตินิยม\nนิยาม\nนิยาย\nนิยุต\nนิรคุณ\nนิรชร\nนิรชรา\nนิรทุกข์\nนิรเทศ\nนิรโทษ\nนิรโทษกรรม\nนิรนัย\nนิรนาม\nนิรภัย\nนิรมล\nนิรมาน\nนิรัตศัย\nนิรันดร\nนิราพาธ\nนิรามัย\nนิรามิษ\nนิราศรัย\nนิรินธน์\nนิรมาณ\nนิรมิต\nนิรยบาล\nนิรัพพุท\nนิรา\nนิราศ\nนิรุกติ\nนิรุตติ\nนิรุทธ์\nนิโรธ\nนิล\nนิลุบล\nนิโลบล\nนิ่ว\nนิ้ว\nนิวคลิอิก\nนิวเคลียร์\nนิวเคลียส\nนิวตรอน\nนิวรณ์\nนิวัต\nนิวัตน์\nนิวาต\nนิวาส\nนิเวศ\nนิเวศน์\nนิศา\nนิษาท\nนิสัช\nนิสัชชาการ\nนิสัย\nนิสาท\nนิสิต\nนิสีทนสันถัต\nนิสีทนะ\nนิสีทนาการ\nนิเสธ\nนี่\nนี้\nนี่นัน\nนีรนาท\nนีออน\nนีโอดิเมียม\nนึก\nนึง\nนึ่ง\nนุง\nนุ่ง\nนุงนัง\nนุช\nนุต\nนุ่น\nนุ่ม\nนุ้ย\nนูน\nนู่น\nนู้น\nเนกขัม\nเนตบอล\nเนตร\nเนติ\nเน้น\nเนบิวลา\nเนปจูน\nเนปทูเนียม\nเนมิ\nเนย\nเนรกัณฐี\nเนรคุณ\nเนรเทศ\nเนรนาด\nเนรมิต\nเนระพูสี\nเนอ\nเน้อ\nเนา\nเน่า\nเนาวนิต\nเนาวรัตน์\nเนิน\nเนิ่น\nเนิบ\nเนียง\nเนียน\nเนียม\nเนียร\nเนียรทุกข์\nเนียรเทศ\nเนียรนาท\nเนื้อ\nเนือง\nเนื่อง\nเนือย\nแน่\nแน่ง\nแน่น\nแนบ\nแน่บ\nแนม\nแนว\nแน่ว\nแนะ\nแน่ะ\nแนะแหน\nโน\nโน้ต\nโนน\nโน่น\nโน้น\nโนเบเลียม\nโน้ม\nโนมพรรณ\nโนรา\nโนรี\nใน\nไน\nไนต์คลับ\nไนโตรเจน\nไนลอน\nไนโอเบียม\nบ่\nบก\nบง\nบ่ง\nบงก์\nบ๊งเบ๊ง\nบงสุ์\nบด\nบดินทร์\nบดี\nบถ\nบท\nบน\nบ่น\nบพิตร\nบพิธ\nบ่ม\nบรม\nบรมัตถ์\nบรรจง\nบรรจถรณ์\nบรรจบ\nบรรจวบ\nบรรจุ\nบรรเจิด\nบรรณ\nบรรดา\nบรรตานึก\nบรรถร\nบรรทม\nบรรทัด\nบรรทาน\nบรรทุก\nบรรเทา\nบรรเทือง\nบรรพ\nบรรพ์\nบรรพชา\nบรรพชิต\nบรรพต\nบรรยง\nบรรยงก์\nบรรยเวกษก์\nบรรยากาศ\nบรรยาย\nบรรลัย\nบรรลาย\nบรรลุ\nบรรเลง\nบรรโลม\nบรรษัท\nบรรสบ\nบรรสพ\nบรรสม\nบรรสาน\nบรรสาร\nบรรหาน\nบรรหาร\nบรอนซ์\nบรั่นดี\nบรัศว์\nบราลี\nบริกรรม\nบริการ\nบริขาร\nบริขารโจล\nบริคณห์\nบริจาค\nบริจาริกา\nบริเฉท\nบริชน\nบริดจ์\nบริบท\nบริบาล\nบริบูรณ์\nบริพนธ์\nบริพัตร\nบริพันธ์\nบริพาชก\nบริพาร\nบริภัณฑ์\nบริภาษ\nบริโภค\nบริมาส\nบริยาย\nบริรม\nบริรักษ์\nบริราช\nบริวรรต\nบริวาร\nบริวาส\nบริเวณ\nบริษัท\nบริสชน\nบริสุทธิ์\nบริหาร\nบล็อก\nบวก\nบวง\nบ่วง\nบวช\nบวน\nบ้วน\nบวบ\nบวม\nบ๊วย\nบวร\nบหลิ่ม\nบอ\nบ่อ\nบ้อ\nบอก\nบอง\nบ่อง\nบ้อง\nบ๊อง\nบ้องแบ๊ว\nบองหลา\nบอด\nบอน\nบ่อน\nบอบ\nบ้อม\nบ๋อม\nบ่อย\nบอระเพ็ด\nบอล\nบอลลูน\nบ้อหุ้น\nบ๊ะ\nบ๊ะจ่าง\nบะหมี่\nบัก\nบักโกรก\nบัคเตรี\nบัง\nบั้ง\nบังกะโล\nบังเกิด\nบังคน\nบังคม\nบังคล\nบังควร\nบังคับ\nบังคัล\nบังแทรก\nบังวาย\nบังเวียน\nบังสุกุล\nบังสุกูลิก\nบังสูรย์\nบังหวน\nบังเหตุ\nบังเหียน\nบังอร\nบังอวจ\nบังอาจ\nบังเอิญ\nบัญจก\nบัญชร\nบัญชา\nบัญชี\nบัญญัติ\nบัญหา\nบัฏ\nบัณฑร\nบัณฑิต\nบัณฑิตย์\nบัณฑุ\nบัณฑูร\nบัณเฑาะก์\nบัณเฑาะว์\nบัณณาส\nบัณรส\nบัณรสี\nบัด\nบัดกรี\nบัดซบ\nบัดสี\nบัตร\nบัทม์\nบัน\nบั่น\nบั้น\nบันจวบ\nบันดล\nบันดาล\nบันได\nบันทึก\nบันทึง\nบันเทิง\nบันยะบันยัง\nบันลือ\nบัปผาสะ\nบัพ\nบัพชา\nบัพพาชนียกรรม\nบัล\nบัลลพ\nบัลลังก์\nบัลลูน\nบัลเลต์\nบัว\nบา\nบ่า\nบ้า\nบาก\nบาง\nบ่าง\nบ้าง\nบาจรีย์\nบาซิลลัส\nบาด\nบาดทะจิต\nบาดทะพิษ\nบาดทะยัก\nบาดาล\nบาตร\nบาท\nบาทสกุณี\nบาทหลวง\nบาทาธึก\nบาทุกา\nบาน\nบ้าน\nบานชื่น\nบานเช้า\nบานบุรี\nบานไม่รู้โรย\nบานเย็น\nบ้าบ๋า\nบาป\nบาย\nบ่าย\nบ้าย\nบาร์\nบารนี\nบารมี\nบาร์เรล\nบาร์เลย์\nบารอมิเตอร์\nบ้าระบุ่น\nบาเรียน\nบาเรียม\nบาล\nบาลี\nบ่าว\nบ่าวขุน\nบาศ\nบาศก์\nบาสเกตบอล\nบาหลี\nบ๋ำ\nบำเทิง\nบำนาญ\nบำบวง\nบำบัด\nบำเพ็ญ\nบำราบ\nบำราศ\nบำรุง\nบำรู\nบำเรอ\nบำหยัด\nบำเหน็จ\nบิ\nบิฐ\nบิณฑบาต\nบิด\nบิดร\nบิดหล่า\nบิดา\nบิตุ\nบิตุจฉา\nบิตุรงค์\nบิตุเรศ\nบิตุลา\nบิน\nบิ่น\nบินยา\nบิลเลียด\nบิวเรตต์\nบิสมัท\nบี้\nบีฑา\nบีตา\nบีบ\nบีเยศ\nบึก\nบึกบึน\nบึง\nบึ่ง\nบึ้ง\nบุ\nบุก\nบุคคล\nบุคลากร\nบุคลาธิษฐาน\nบุคลิก\nบุง\nบุ่ง\nบุ้ง\nบุ้งกี๋\nบุญ\nบุญญาธิการ\nบุญญานุภาพ\nบุญญาภินิหาร\nบุญญาภิสังขาร\nบุณฑริก\nบุณมี\nบุณย์\nบุตร\nบุตรี\nบุถุชน\nบุทคล\nบุนนาค\nบุบ\nบุบบิบ\nบุปผชาติ\nบุพกรรม\nบุพการี\nบุพกิจ\nบุพชาติ\nบุพทักษิณ\nบุพนิมิต\nบุพบท\nบุพพาจารย์\nบุพเพสันนิวาส\nบุพโพ\nบุ๋ม\nบุ่มบ่าม\nบุ้ย\nบุรณะ\nบุรพทิศ\nบุรพบท\nบุรพาจารย์\nบูรพาจารย์\nบุระ\nบุราณ\nบุรินทร์\nบุริมทิศ\nบุริมพรรษา\nบุริมสิทธิ\nบุรี\nบุรุษ\nบุโรทั่ง\nบุษกร\nบุษบก\nบุษบง\nบุษบัน\nบุษบา\nบุษบามินตรา\nบุษปราค\nบุษปะ\nบุษย์\nบุษย์น้ำทอง\nบุษยมาส\nบุษยะ\nบุษราคัม\nบุหงัน\nบุหงา\nบุหรง\nบุหรี่\nบุหลัน\nบู่\nบู้\nบูชนียสถาน\nบูชา\nบูชิต\nบูด\nบูดู\nบูร\nบูรณ์\nบูรณภาพ\nบูรณมี\nบูรณะ\nบูรณาการ\nบูรพ์\nบูรพะ\nบูรพา\nเบ้\nเบ่ง\nเบ๊จี๋\nเบญกานี\nเบญจกัลยาณี\nเบญจกามคุณ\nเบญจขันธ์\nเบญจดุริยางค์\nเบญจธรรม\nเบญจบรรพต\nเบญจพรรณ\nเบญจเพส\nเบญจมาศ\nเบญจรงค์\nเบญจศก\nเบญจศีล\nเบญจะ\nเบญจา\nเบญจางค์\nเบญจางคประดิษฐ์\nเบญญา\nเบญพาด\nเบ็ด\nเบ็ดเตล็ด\nเบ็ดเสร็จ\nเบน\nเบนซิน\nเบรก\nเบริลเลียม\nเบส\nเบ้อ\nเบอร์\nเบอร์คีเลียม\nเบ้อเร่อ\nเบ้อเร่อเท่อ\nเบ้อเริ่ม\nเบ้อเริ่มเทิ่ม\nเบอะ\nเบอะบะ\nเบะ\nเบา\nเบ้า\nเบาราณ\nเบาะ\nเบิก\nเบิ่ง\nเบี้ย\nเบี่ยง\nเบียด\nเบียน\nเบียร์\nเบี้ยว\nเบือ\nเบื่อ\nเบื้อ\nเบื้อง\nเบือน\nแบ\nแบ้\nแบก\nแบคทีเรีย\nแบ่ง\nแบงก์\nแบดมินตัน\nแบตเตอรี่\nแบน\nแบนโจ\nแบบ\nแบ็บ\nแบเรียม\nแบหลา\nแบะ\nโบ\nโบ้\nโบ๋\nโบก\nโบกขรณี\nโบกขรพรรษ\nโบชุก\nโบต\nโบนัส\nโบ๊เบ๊\nโบย\nโบรมีน\nโบรอน\nโบราณ\nโบสถ์\nใบ\nใบ้\nไบ่\nปก\nปกติ\nปกรณ์\nปกรณัม\nปกิณกะ\nปกีรณัม\nปโกฏิ\nปง\nป่ง\nปงช้าง\nปฎล\nปฏัก\nปฏิกรณ์\nปฏิกรรม\nปฏิการะ\nปฏิกิริยา\nปฏิกูล\nปฏิคม\nปฏิคหิต\nปฏิคาหก\nปฏิฆะ\nปฏิชีวนะ\nปฏิญญา\nปฏิญาณ\nปฏิทิน\nปฏิบถ\nปฏิบัติ\nปฏิปทา\nปฏิปักษ์\nปฏิปัน\nปฏิปุจฉาพยากรณ์\nปฏิปุจฉาวาที\nปฏิพัทธ์\nปฏิพากย์\nปฏิภาค\nปฏิภาณ\nปฏิมา\nปฏิมากร\nปฏิยุทธ์\nปฏิรพ\nปฏิรูป\nปฏิโลม\nปฏิวัติ\nปฏิวาต\nปฏิวาท\nปฏิเวธ\nปฏิสนธิ\nปฏิสวะ\nปฏิสังขรณ์\nปฏิสันถาร\nปฏิสัมภิทา\nปฏิเสธ\nปฐพี\nปฐม\nปฐวี\nปณต\nปณาม\nปณิธาน\nปณิธิ\nปณีต\nปด\nปดิวรัดา\nปติ\nปถพี\nปถมัง\nปถวี\nปทัฏฐาน\nปทัสถาน\nปทานุกรม\nปทีป\nปทุม\nปน\nป่น\nปนัดดา\nปปัญจะ\nปม\nปรนัย\nปรปักษ์\nปรโลก\nปรวาที\nปรก\nปรกติ\nปรง\nปรตยักษ์\nปรน\nปรนนิบัติ\nปรนิมมิตวสวัตดี\nปรบ\nปรปักษ์\nปรมัตถ์\nปรมาจารย์\nปรมาณู\nปรมาภิไธย\nปรมาภิเษก\nปรมินทร์\nบรเมนทร์\nปรเมศวร์\nปรเมษฐ์\nปรวด\nปรวนแปร\nปรศุ\nปรสิต\nปร๋อ\nปรองดอง\nปรอด\nปรอท\nปรอย\nประ\nประกบ\nประกฤต\nประกฤติ\nประกล\nประกวด\nประกวดประขัน\nประกอบ\nประกัน\nประกับ\nประกาย\nประกายพรึก\nประการ\nประกาศ\nประกาศนียบัตร\nประกาศิต\nประกำ\nประกิด\nประกิต\nประคด\nประคนธรรพ\nประคนธรรพ์\nประคบ\nประคบประหงม\nประคอง\nประคับประคอง\nประคัลภ์\nประคำ\nประคิ่น\nประคุณ\nประเคน\nประเคราะห์\nประโคน\nประโคนธรรพ\nประโคนธรรพ์\nประโคม\nประจง\nประจญ\nประจบ\nประจบประแจง\nประจวบ\nประจ๋อประแจ๋\nประจักษ์\nประจักษนิยม\nประจัญ\nประจัน\nประจาก\nประจาค\nประจาน\nประจำ\nประจิม\nประจิ้มประเจ๋อ\nประจุ\nประจุคมน์\nประจุบัน\nประเจก\nประเจิด\nประเจิดประเจ้อ\nประเจียด\nประแจ\nประชด\nประชน\nประชวม\nประชวร\nประชัน\nประชา\nประชาธิปไตย\nประชิด\nประชี\nประชุม\nประเชิญ\nประณต\nประณม\nประณาม\nประณิธาน\nประณิธิ\nประณีต\nประณุท\nประดง\nประดน\nประดวน\nประดอน\nประดอย\nประดัก\nประดักประเดิด\nประดัง\nประดับ\nประดา\nประดาก\nประดาป\nประดาษ\nประดิชญา\nประดิดประดอย\nประดิทิน\nประดิษฐ์\nประดิษฐกรรม\nประดิษฐาน\nประดุง\nประดุจ\nประดู่\nประเด\nประเด็น\nประเดิม\nประเดียง\nประเดี๋ยว\nประเดี๋ยวประด๋าว\nประแดง\nประแดะ\nประโดง\nประโดย\nประตง\nประตัก\nประตาป\nประติชญา\nประติญาณ\nประติทิน\nประติมากร\nประติมากรรม\nประติรพ\nประตู\nประถม\nประถมจินดา\nประทม\nประท้วง\nประทวน\nประทักษ์\nประทักษิณ\nประทัง\nประทัด\nประทับ\nประทาน\nประทาย\nประทาศี\nประทิน\nประทิ่น\nประทีป\nประทุฐ\nประทุน\nประทุษ\nประทุษฐ์\nประเทศ\nประเทา\nประเทียด\nประเทียบ\nประเทือง\nประธาน\nประธานาธิบดี\nประนม\nประนอ\nประนอม\nประนัง\nประนัปดา\nประนีประนอม\nประปราน\nประปราย\nประปา\nประเปรี้ยง\nประเปรียว\nประพจน์\nประพนธ์\nประพรม\nประพฤติ\nประพฤทธิ์\nประพัด\nประพัทธ์\nประพันธ์\nประพาต\nประพาส\nประพาสมหรณพ\nประพาฬ\nประพิณ\nประพิมพ์ประพาย\nประพุทธ์\nประเพณี\nประโพธ\nประไพ\nประไพร\nประภพ\nประภัสสร\nประภา\nประภาคาร\nประภาพ\nประภาษ\nประภาส\nประเภท\nประมง\nประมวล\nประมาณ\nประมาท\nประมุข\nประมุท\nประมูล\nประเมิน\nประโมง\nประโมทย์\nประยงค์\nประยุกต์\nประยุทธ์\nประยุร\nประยูร\nประโยค\nประโยชน์\nประโรหิต\nประลมพ์\nประลอง\nประลัย\nประลาต\nประลาย\nประลุ\nประเล่ห์\nประเล้าประโลม\nประโลม\nประวรรต\nประวรรตน์\nประวัติ\nประวาล\nประวาลปัทม์\nประวาส\nประวิง\nประวิช\nประวิตร\nประวิน\nประวีณ\nประเวณี\nประเวศ\nประเวศน์\nประศม\nประศาสน์\nประศุ\nประสก\nประสงค์\nประสบ\nประสพ\nประสม\nประสะ\nประสัก\nประสันนาการ\nประสัยห์\nประสา\nประสาท\nประสาธน์\nประสาน\nประสาร\nประสิทธิ์\nประสิทธิผล\nประสิทธิภาพ\nประสีประสา\nประสูต\nประสูติ\nประเสบัน\nประเสบันอากง\nประเสริฐ\nประหนึ่ง\nประหม่า\nประหยัด\nประหลาด\nประหล่ำ\nประหวัด\nประหวั่น\nประหัตประหาร\nประหาณ\nประหาร\nประเหล\nประเหส\nประไหมสุหรี\nประอบ\nประอร\nปรัก\nปรักปรำ\nปรักมะ\nปรัง\nปรัชญา\nปรัตถจริยา\nปรัตยุบัน\nปรัน\nปรับ\nปรัมปรา\nปรัศจิม\nปรัศนา\nปรัศนี\nปรัศว์\nปรัสสบท\nปร่า\nปรากฏ\nปรากรม\nปรากฤต\nปราการ\nปราง\nปรางค์\nปราจีน\nปราชญ์\nปราชญา\nปราชัย\nปราณ\nปราณี\nปราด\nปราน\nปรานี\nปราบ\nปราบดาภิเษก\nปราปต์\nปราม\nปรามาส\nปราโมช\nปราโมทย์\nปราย\nปรารถนา\nปรารภ\nปรารมภ์\nปราศ\nปราศจาก\nปราศรัย\nปราษณี\nปราษาณ\nปราสัย\nปราสาท\nปรำ\nปริ\nปริก\nปริกขาร\nปริกรรม\nปริกัป\nปริคณห์\nปริจาค\nปริจาริกา\nปริเฉท\nปริชน\nปริซึม\nปริญญา\nปริณาม\nปริณายก\nปริต\nปริตตะ\nปริตโตทก\nปริตร\nปริทรรศน์\nปริทัยหัคคี\nปริทัศน์\nปริเทพ\nปริเทวะ\nปรินิพพาน\nปริบ\nปริบท\nปริปันถ์\nปริพนธ์\nปริพัตร\nปริพันธ์\nปริพาชก\nปริภัณฑ์\nปริภาษ\nปริภูมิ\nปริโภค\nปริ่ม\nปริมณฑล\nปริมาณ\nปริมาตร\nปริยัติ\nปริยานุช\nปริยาย\nปริเยศ\nปริโยสาน\nปริวรรต\nปริวัตร\nปริวาร\nปริวาส\nปริวิตก\nปริเวณ\nปริศนา\nปริษัท\nปริสัญญู\nปริสุทธิ\nปริหาน\nปริหาร\nปรี่\nปรีชญา\nปรีชา\nปรี๊ด\nปรีดา\nปรีดิ\nปรีดิ์\nปรีดี\nปรีติ\nปรียะ\nปรียา\nปรึก\nปรึกษา\nปรึง\nปรือ\nปรื๋อ\nปรุ\nปรุง\nปรู\nปรู๋\nปรูด\nปรู๊ด\nปรู๊ดปร๊าด\nปรู๊ฟ\nปฤงคพ\nปฤจฉา\nปฤษฎางค์\nปฤษฐ\nปลก\nปลกเปลี้ย\nปลง\nปล่ง\nปลด\nปล้น\nปลวก\nปลอก\nปล่อง\nปล้อง\nปลอด\nปล้อน\nปลอบ\nปลอม\nปล่อย\nปละ\nปลัก\nปลั๊ก\nปลัง\nปลั่ง\nปลัด\nปลัดขิก\nปลา\nปลาต\nปลาบ\nปลาย\nปลาสเตอร์\nปลาสนาการ\nปล้ำ\nปลิง\nปลิด\nปลิ้น\nปลิโพธ\nปลิม\nปลิ่ม\nปลิว\nปลี\nปลีก\nปลื้ม\nปลุก\nปลูก\nปวกเปียก\nปวง\nป่วง\nปวด\nป่วน\nป้วน\nป้วนเปี้ยน\nป่วย\nปวัตน์\nปวารณา\nปวาล\nปวาส\nปวาฬ\nปวิช\nปวิตร\nปวิธ\nปวิเวก\nปวีณ\nปวุติ\nปเวณี\nปเวส\nปเวสน์\nปศุ\nปสันนะ\nปสันนาการ\nปสาท\nปสาน\nปสาสน์\nปสุ\nปสุต\nปสูติ\nปหังสนะ\nปหาน\nปหาร\nปหาส\nปอ\nป้อ\nป๋อ\nปอก\nปอง\nป่อง\nป้อง\nปอด\nปอน\nป้อน\nปอนด์\nปอเนาะ\nปอบ\nป้อแป้\nปอม\nป้อม\nป๋อม\nปอย\nป้อย\nป้อยอ\nปะ\nปะกน\nปะกัง\nปะการัง\nปะกำ\nปะขาว\nปะงาบ\nปะตาปา\nปะตาระกาหลา\nปะติดปะต่อ\nปะติยาน\nปะทะ\nปะทะปะทัง\nปะทุ\nปะทุน\nปะปน\nปะมง\nปะราลี\nปะรำ\nปะไร\nปะลอม\nปะเลง\nปะแล่ม\nปะโลง\nปะวะหล่ำ\nปะหงับ\nปะหนัน\nปะหัง\nปะเหลาะ\nปัก\nปักข์\nปักเป้า\nปักษ์\nปักษา\nปักษิน\nปักษี\nปัง\nปั๋ง\nปังสุ์\nปังสุกุล\nปัจจัตตะ\nปัจจันต์\nปัจจันตคาม\nปัจจันตชนบท\nปัจจันตประเทศ\nปัจจัย\nปัจจามิตร\nปัจจุคมน์\nปัจจุทธรณ์\nปัจจุบัน\nปัจจุสมัย\nปัจเจก\nปัจโจปการกิจ\nปัจฉา\nปัจฉิม\nปัจถรณ์\nปัจนึก\nปัจยาการ\nปัจเวกขณ์\nปัชชุน\nปัญจนที\nปัญจวัคคีย์\nปัญจก\nปัญจกะ\nปัญจมี\nปัญจวีสติ\nปัญญัติ\nปัญญา\nปัญหา\nปัฏ\nปัฏนะ\nปัฐยาวัต\nปัณฑรหัตถี\nปัณณะ\nปัณณาส\nปัณณาสก์\nปัณรสี\nปัณหิ\nปัด\nปัตคาด\nปัตตะ\nปัตตานึก\nปัตตานุโมทนา\nปัตตาเวีย\nปัตติ\nปัตติก\nปัตถร\nปัตถะ\nปัตนิ\nปัตนี\nปัตหล่า\nปัถพี\nปัถวี\nปัทม์\nปัทมะ\nปัทมาสน์\nปัน\nปั่น\nปั้น\nปั้นจั่น\nปันจุเหร็จ\nปั้นลม\nปั้นหยา\nปั้นเหน่ง\nปับ\nปั๊บ\nปัปผาสะ\nปัพพาชนียกรรม\nปัพภาระ\nปั๊ม\nปัยกา\nปัยยิกา\nปัวเปีย\nปัศจิม\nปัศตัน\nปัสสาวะ\nปัสสาสะ\nปา\nป่า\nป้า\nปาก\nปาง\nป้าง\nปาจรีย์\nปาจิตตีย์\nปาจีน\nปาฏลิ\nปาฏิบท\nปาฏิบุคลิก\nปาฏิโภค\nปาฏิหาริย์\nปาฐก\nปาฐกถา\nปาฐะ\nปาณกชาติ\nปาณะ\nปาณาติบาต\nปาณิ\nปาณี\nปาด\nปาติโมกข์\nปาตี\nปาเต๊ะ\nปาท่องโก๋\nปาทังกา\nปาทาน\nปาทุกา\nปาน\nป่าน\nป้าน\nปานะ\nปานียะ\nป้าบ\nป๊าบ\nปาพจน์\nปาม\nปาโมกข์\nป่าย\nป้าย\nปายาส\nปาร์เกต์\nปารมี\nปารเมศ\nปาราชิก\nปาริฉัตร\nปาริชาต\nปารุสกวัน\nปาล\nปาล์ม\nปาลิไลยก์\nปาลี\nปาว\nป่าว\nป๊าว\nปาวาร\nปาษาณ\nปาส\nปาสาณ\nปาสาทิกะ\nปาหนัน\nปาหี่\nปำ\nป้ำ\nป้ำเป๋อ\nปิกนิก\nปิ้ง\nปิงคละ\nปิงปอง\nปิฎก\nปิฏฐะ\nปิฐิ\nปิณฑะ\nปิด\nปิตตะ\nปิตา\nปิตามหัยกา\nปิตามหัยยิกา\nปิตุ\nปิตุจฉา\nปิตุภูมิ\nปิตุลา\nปิโตรเลียม\nปิ่น\nปิ่นแก้ว\nปิ่นโต\nปิปผลี\nปิ่ม\nปิ้ม\nปิยะ\nปิยังคุ\nปิโยรส\nปิลันธน์\nปิ๋ว\nปิศาจ\nปิหกะ\nปี\nปี่\nปี้\nปี๋\nปีก\nปีฐะ\nปี๊ด\nปีติ\nปีน\nปีบ\nปี๊บ\nปีศาจ\nปีฬกะ\nปึก\nปึง\nปึ่ง\nปึ๋ง\nปึ้ด\nปึมปื้อ\nปืน\nปื้น\nปือ\nปื้อ\nปื๋อ\nปุ\nปุ๊\nปุก\nปุกปุย\nปุคละ\nปุ้งกี๋\nปุงควะ\nปุงลิงค์\nปุงลึงค์\nปุจฉา\nปุฏะ\nปุณฑริก\nปุด\nปุตตะ\nปุถุชน\nปุนนาค\nปุนภพ\nปุนัพสุ\nปุบ\nปุ๊บ\nปุปผะ\nปุปะ\nปุพพะ\nปุ่ม\nปุ่มป่ำ\nปุ้ม\nปุ๋ม\nปุย\nปุ้ย\nปุ๋ย\nปุรณะ\nปุระ\nปุราณ\nปุราณะ\nปุริมพรรษา\nปุเรจาริก\nปุโรหิต\nปุลลิงค์\nปุลลึงค์\nปุลินท์\nปุโลปุเล\nปุษยะ\nปุสสะ\nปู\nปู่\nปูชกะ\nปูชนียบุคคล\nปูชนียวัตถุ\nปูชนียะ\nปูชา\nปูชิต\nปูด\nปูน\nปูม\nปู้ยี่ปู้ยำ\nปูระ\nปูลู\nเป้\nเป๋\nเปก\nเป๊ก\nเป่ง\nเป้ง\nเป๋ง\nเป็ด\nเปตพลี\nเปตอง\nเป็น\nเปยยาล\nเปร็ง\nเปรต\nเปรม\nเปรย\nเปรอ\nเปรอะ\nเปราะ\nเปรียง\nเปรี้ยง\nเปรี้ยงปร้าง\nเปรียญ\nเปรียบ\nเปรี่ยม\nเปรียว\nเปรี้ยว\nเปรียะ\nเปรี๊ยะ\nเปรื่อง\nเปรื้อย\nเปล\nเปล่ง\nเปลว\nเปลา\nเปล่า\nเปล้า\nเปลาะ\nเปลี้ย\nเปลี่ยน\nเปลี่ยม\nเปลี่ยว\nเปลือก\nเปลือง\nเปลื้อง\nเปลือย\nเปศะ\nเปศัส\nเปสการ\nเปสละ\nเปสุญวาท\nเป๋อ\nเป้อเย้อ\nเปอร์\nเปอร์เซ็นต์\nเปะ\nเปา\nเป่า\nเป้า\nเป๊า\nเป๋า\nเป๋าฮื้อ\nเปาะ\nเป๊าะ\nเปาะเปี๊ยะ\nเปาะแปะ\nเปิก\nเปิง\nเปิงมาง\nเปิด\nเปิ่น\nเปิบ\nเปิ๊บ\nเปีย\nเปียก\nเปี๊ยก\nเปี๊ยบ\nเปี่ยม\nเปี้ยว\nเปี๊ยว\nเปียะ\nเปี๊ยะ\nเปือก\nเปื้อน\nเปื่อย\nแป\nแป้ง\nแป๋ง\nแปด\nแป๊ด\nแปทู\nแป้น\nแป๊น\nแปบ\nแป๊บ\nแปม\nแปร\nแปร๋\nแปรก\nแปรง\nแปร่ง\nแปร๊ด\nแปร้น\nแปร๋น\nแปรปรวน\nแประ\nแปล\nแปล้\nแปลก\nแปลง\nแปลน\nแปลบ\nแปล๊บ\nแป้ว\nแป๊ว\nแปะ\nแป๊ะ\nแป๊ะซะ\nโป\nโป่\nโป้\nโป๊\nโปก\nโป๊ก\nโป๊กเกอร์\nโปกขรณี\nโปกขรพรรษ\nโปเก\nโปง\nโป่ง\nโป้ง\nโป่งข่าม\nโปงลาง\nโป่งวิด\nโปฐบท\nโปฐปทมาส\nโปดก\nโปตถกะ\nโปน\nโป๊ป\nโป๊ยเซียน\nโปรแกรม\nโปรง\nโปร่ง\nโปรด\nโปรตอน\nโปรตีน\nโปรเตสแตนต์\nโปรแทรกเตอร์\nโปรย\nโปล่ง\nโปลิโอ\nโปโล\nโปสก\nโปสต์การ์ด\nโปะ\nโป๊ะ\nโป๊ะจ้าย\nไป\nไป่\nไป๋\nไปยาล\nไปรษณีย์\nไปรษณียบัตร\nไปรษณียภัณฑ์\nไปรษณียากร\nไปล่\nไปศาจ\nผก\nผกา\nผกาย\nผคม\nผง\nผงก\nผงม\nผงะ\nผงาด\nผง่าน\nผจง\nผจญ\nผจัญ\nผจาน\nผชุม\nผณิน\nผณินทร\nผณิศวร\nผด\nผดุง\nผเดิน\nผทม\nผนวก\nผนวช\nผนัง\nผนิด\nผนึก\nผม\nผยอง\nผรณาปีติ\nผรสุ\nผริต\nผรุสวาท\nผล\nผลคุน\nผลคุนี\nผล็อย\nผละ\nผลัก\nผลัด\nผลับ\nผลัวะ\nผลา\nผลาญ\nผลานิสงส์\nผลาผล\nผลาหาร\nผลิ\nผลิกะ\nผลิต\nผลิน\nผลี\nผลีผลาม\nผลึก\nผลึ่ง\nผลือ\nผลุ\nผลุง\nผลุด\nผลุน\nผลุนผลัน\nผลุบ\nผลุบผลับ\nผลุย\nผลู\nผวน\nผวย\nผวา\nผสม\nผสาน\nผอง\nผ่อง\nผ่อน\nผอบ\nผอม\nผ็อย\nผอูน\nผะ\nผะดา\nผะสา\nผัก\nผัคคุณ\nผัคคุณี\nผัง\nผัด\nผัน\nผับ\nผัว\nผัวะ\nผัสสะ\nผัสสาหาร\nผา\nผ่า\nผ้า\nผาก\nผาง\nผ่าง\nผาณิต\nผาด\nผาติ\nผ่าน\nผาม\nผาย\nผ่ายผอม\nผาล\nผาลคุน\nผาลา\nผ่าว\nผาสุก\nผ้าฮาด\nผำ\nผ้ำ\nผิ\nผิง\nผิด\nผิตะ\nผิน\nผิว\nผี\nผี้ว์\nผึง\nผึ่ง\nผึ้ง\nผึ้งรวง\nผืน\nผื่น\nผุ\nผุด\nผุยผง\nผุสราคา\nผู้\nผูก\nเผ\nเผง\nเผชิญ\nเผ็ด\nเผด็จ\nเผดิม\nเผดียง\nเผ่น\nเผนิก\nเผย\nเผยอ\nเผยิบ\nเผยิบผยาบ\nเผล\nเผล่\nเผล็ด\nเผลอ\nเผลอไผล\nเผละ\nเผลาะ\nเผลาะแผละ\nเผลียง\nเผอเรอ\nเผอิญ\nเผอิล\nเผะ\nเผา\nเผ่า\nเผ้า\nเผาะ\nเผิ้ง\nเผิน\nเผียน\nเผือ\nเผื่อ\nเผือก\nเผือด\nเผือน\nเผื่อน\nแผ่\nแผก\nแผง\nแผด\nแผน\nแผ่น\nแผนก\nแผล\nแผลง\nแผล็บ\nแผล็ว\nแผละ\nแผ่ว\nแผ้ว\nโผ\nโผง\nโผฏฐัพพะ\nโผน\nโผเผ\nโผย\nโผล่\nโผลกเผลก\nโผละ\nโผอน\nโผะ\nไผ\nไผ่\nไผท\nฝน\nฝรั่ง\nฝรั่งเศส\nฝ่อ\nฝอย\nฝัก\nฝัง\nฝั่ง\nฝัด\nฝัน\nฝา\nฝ่า\nฝ้า\nฝาก\nฝาง\nฝาด\nฝาน\nฝาย\nฝ่าย\nฝ้าย\nฝิ่น\nฝี\nฝี่\nฝีก\nฝึก\nฝืด\nฝืน\nฝุ่น\nฝูง\nเฝ้า\nเฝือ\nเฝือก\nเฝือง\nเฝื่อน\nแฝก\nแฝง\nแฝด\nใฝ่\nไฝ\nพก\nพกุล\nพง\nพงศ์\nพงศกร\nพงศธร\nพงศา\nพงศาวดาร\nพจน์\nพจนา\nพจนานุกรม\nพจนารถ\nพจนีย์\nพจมาน\nพจี\nพชระ\nพญา\nพญาลอ\nพณิช\nพณิชย์\nพดด้วง\nพธู\nพนันดร\nพนาดร\nพนาดอน\nพนาราม\nพนาลัย\nพนาลี\nพนาวาส\nพนาเวศ\nพนาศรม\nพนาสณฑ์\nพนาสัณฑ์\nพเนจร\nพ่น\nพ้น\nพนม\nพนอง\nพนอม\nพนัก\nพนักงาน\nพนัง\nพนัน\nพนัส\nพนา\nพนาย\nพนิดา\nพนิต\nพบ\nพม่า\nพยนต์\nพยศ\nพยัก\nพยักพเยิด\nพยัคฆ์\nพยัคฆา\nพยัคฆิน\nพยัคฆี\nพยัชน์\nพยัญชนะ\nพยัต\nพยับ\nพยากรณ์\nพยาฆร์\nพยางค์\nพยาธิ\nพยาน\nพยาบาท\nพยาบาล\nพยาม\nพยามะ\nพยายาม\nพยุ\nพยุง\nพยุหยาตรา\nพยุหโยธา\nพยุหเสนา\nพยุหะ\nพยู่ห์\nพเยีย\nพร\nพรต\nพรม\nพรรค\nพรรค์\nพรรคานต์\nพรรณ\nพรรณนา\nพรรดึก\nพรรลาย\nพรรษ\nพรรษา\nพรรเอิญ\nพรวด\nพรวน\nพรหม\nพรหมจรรย์\nพรหมจาริณี\nพรหมจารี\nพรหมา\nพรหมาสตร์\nพรหมินทร์\nพรอก\nพร่อง\nพร้อง\nพรอด\nพร้อม\nพร้อมพรัก\nพร่อย\nพร้อย\nพระ\nพระนอม\nพระนาด\nพระฮาม\nพรักพร้อม\nพรั่ง\nพรัด\nพรั่น\nพรับ\nพร่า\nพร้า\nพราก\nพราง\nพร่าง\nพราด\nพราน\nพราย\nพราว\nพราหมณ์\nพราหมณะ\nพราหมณี\nพราหมี\nพรำ\nพร่ำ\nพริก\nพริ้ง\nพริบ\nพริ้ม\nพรึง\nพรึน\nพรึบ\nพรึ่บ\nพรืด\nพรุ\nพรุ่ง\nพรุน\nพรู\nพรูด\nพฤกษ์\nพฤกษชาติ\nพฤกษเทวดา\nพฤกษราช\nพฤกษศาสตร์\nพฤกษา\nพฤฒ\nพฤฒา\nพฤฒาจารย์\nพฤฒิ\nพฤต\nพฤติ\nพฤทธ์\nพฤทธิ์\nพฤนต์\nพฤนท์\nพฤศจิก\nพฤศจิกายน\nพฤษภ\nพฤษภาคม\nพฤหัสบดี\nพล\nพละ\nพลากร\nพลาดิศัย\nพลาธิการ\nพลานามัย\nพลบ\nพลวก\nพลวง\nพลวัต\nพลศาสตร์\nพลอ\nพล้อ\nพลอง\nพลอด\nพลอน\nพลอมแพลม\nพลอย\nพล่อย\nพลั่ก\nพลัง\nพลั่ง\nพลั้ง\nพลัด\nพลัน\nพลับ\nพลับพลา\nพลับพลึง\nพลั่ว\nพล่า\nพลาง\nพลาญ\nพลาด\nพล่าน\nพลาม\nพล่าม\nพลาย\nพลาสติก\nพลาสมา\nพลาหก\nพลำ\nพล้ำ\nพลำภัง\nพลิก\nพลิพัท\nพลิ้ว\nพลี\nพลุ\nพลุก\nพลุ่ก\nพลุกพล่าน\nพลุ่ง\nพลุ้ย\nพลู\nพลูโต\nพลูโทเนียม\nพวก\nพวง\nพ่วง\nพวน\nพวย\nพสก\nพสุ\nพสุธา\nพสุสงกรานต์\nพหล\nพหุ\nพหุล\nพหู\nพอ\nพ่อ\nพ้อ\nพอก\nพอง\nพ้อง\nพอน\nพ้อม\nพอโลเนียม\nพะ\nพะงา\nพะงาบ\nพะจง\nพะทำมะรง\nพะนอ\nพะเน้าพะนอ\nพะเนิน\nพะเนียง\nพะแนง\nพะพาน\nพะพิง\nพะเพิง\nพะยอม\nพ่ะย่ะค่ะ\nพะยูง\nพะยูน\nพะเยิบ\nพะเยิบพะยาบ\nพะรุงพะรัง\nพะโล้\nพะไล\nพะวง\nพะวักพะวน\nพะวา\nพะว้าพะวัง\nพะอง\nพะอากพะอำ\nพะอืดพะอม\nพัก\nพักตร์\nพักตรา\nพักร\nพัง\nพังกา\nพังงา\nพังผืด\nพังพวย\nพังพอน\nพังพาน\nพังพาบ\nพังเพย\nพัช\nพัชนี\nพัชระ\nพัญจน์\nพัฒนะ\nพัฒนา\nพัฒนากร\nพัฒนาการ\nพัด\nพัดชา\nพัดดึงส์\nพัตร\nพัทธ์\nพัทธยา\nพัทธสีมา\nพัทร\nพัน\nพันตู\nพันทาง\nพันธ์\nพันธะ\nพันธกรณี\nพันธบัตร\nพันธมิตร\nพันธนะ\nพันธนาคาร\nพันธนาการ\nพันธุ์\nพันธุกรรม\nพันลึก\nพันลือ\nพันเลิศ\nพันเอิญ\nพับ\nพัลลภ\nพัลวัน\nพัว\nพัวะ\nพัศดี\nพัสดุ\nพัสตร์\nพัสถาน\nพา\nพาก\nพากเพียร\nพากย์\nพาง\nพ่าง\nพาชี\nพาณิช\nพาณิชย์\nพาณิชยกรรม\nพาณิชยการ\nพาณิชยศาสตร์\nพาณิชยศิลป์\nพาณินี\nพาณี\nพาณีนี\nพาด\nพาท\nพาทย์\nพาธ\nพาธา\nพาน\nพ่าน\nพานร\nพานรินทร์\nพาม\nพาย\nพ่าย\nพายม้า\nพายัพ\nพายุ\nพาร์เซก\nพารณ\nพารา\nพาราฟิน\nพาล\nพาลา\nพาลี\nพาลุก\nพาโล\nพาไล\nพาส\nพาสน์\nพาสนา\nพาสุกรี\nพ่าห์\nพาหนะ\nพาหะ\nพาหา\nพาหิรกะ\nพาหิระ\nพาหุ\nพาหุรัด\nพาหุสัจจะ\nพาเหียร\nพาฬ\nพำ\nพำนัก\nพำพึม\nพำลา\nพิกล\nพิกสิต\nพิกัด\nพิกัติ\nพิกัน\nพิการ\nพิกุล\nพิเคราะห์\nพิฆน์\nพิฆเนศ\nพิฆเนศวร\nพิฆาต\nพิง\nพิจัย\nพิจาร\nพิจารณ์\nพิจารณา\nพิจิก\nพิจิต\nพิจิตร\nพิชญ์\nพิชัย\nพิชาน\nพิชิต\nพิเชฐ\nพิเชียร\nพิฑูรย์\nพิณ\nพิดทูล\nพิดาน\nพิโดร\nพิตร\nพิถี\nพิถีพิถัน\nพิทย\nพิทย์\nพิทยา\nพิทยาคม\nพิทยาคาร\nพิทยาธร\nพิทยาลัย\nพิทักษ์\nพิทูร\nพิเทศ\nพิธาน\nพิธี\nพิธุ\nพินทุ\nพินอบพิเทา\nพินัย\nพินาศ\nพินิจ\nพินิต\nพินิศ\nพินิศจัย\nพิเนต\nพิบัติ\nพิบุล\nพิบูล\nพิปริต\nพิปลาส\nพิพรรธ\nพิพรรธน์\nพิพักพิพ่วน\nพิพัฒ\nพิพัฒน์\nพิพากษ์\nพิพากษา\nพิพาท\nพิพิธ\nพิพิธภัณฑ์\nพิพิธภัณฑสถาน\nพิภพ\nพิภัช\nพิภาค\nพิภูษณะ\nพิเภก\nพิมปะการัง\nพิมพ์\nพิมพการัง\nพิมพา\nพิมพาภรณ์\nพิมล\nพิมเสน\nพิมาน\nพิมุข\nพิโมกข์\nพิโมกษ์\nพิโยกพิเกน\nพิโยค\nพิรอด\nพิระ\nพิรากล\nพิราบ\nพิราม\nพิราลัย\nพิริยะ\nพิรี้พิไร\nพิรุณ\nพิรุธ\nพิรุฬห์\nพิเรนทร์\nพิเราะ\nพิโรธ\nพิไร\nพิลังกาสา\nพิลาป\nพิลาส\nพิลิปดา\nพิลึก\nพิลึกกึกกือ\nพิลึกพิลั่น\nพิโลน\nพิไล\nพิศ\nพิศวง\nพิศวาส\nพิศาล\nพิศุทธ์\nพิศุทธิ์\nพิเศษ\nพิษ\nพิษฐาน\nพิษนาศน์\nพิสดาร\nพิสมร\nพิสมัย\nพิสัง\nพิสัช\nพิสัย\nพิสิฐ\nพิสุทธิ์\nพิสูจน์\nพิหค\nพิหาร\nพิฬาร\nพี\nพี่\nพี้\nพีชคณิต\nพีระมิด\nพึง\nพึ่ง\nพึ่บ\nพึ่บพั่บ\nพึม\nพึมพำ\nพืช\nพืด\nพื้น\nพุ\nพุก\nพุกาม\nพุง\nพุ่ง\nพุงดอ\nพุฒ\nพุฒิ\nพุด\nพุดตาน\nพุทธ\nพุทธะ\nพุทธังกูร\nพุทธางกูร\nพุทธันดร\nพุทธาภิเษก\nพุทธาวาส\nพุทธิ\nพุทโธ่\nพุทรา\nพุธ\nพุ่ม\nพุมเรียง\nพุ้ย\nพู\nพูพอน\nพู่\nพูด\nพูน\nพู้น\nพู่ระหง\nเพ\nเพ็ก\nเพกา\nเพคะ\nเพ็ง\nเพ่ง\nเพ็จ\nเพชฉลูกรรม\nเพชฌฆาต\nเพชร\nเพชรดา\nเพชรปาณี\nเพชรฤกษ์\nเพชรายุธ\nเพชรกลับ\nเพชรสังฆาต\nเพชรหลีก\nเพชรหึง\nเพ็ญ\nเพฑูริย์\nเพณี\nเพ็ดทูล\nเพดาน\nเพท\nเพทนา\nเพทาย\nเพทุบาย\nเพโทบาย\nเพ่นพ่าน\nเพนียด\nเพไนย\nเพ้ย\nเพรง\nเพรซีโอดิเมียม\nเพรา\nเพราะ\nเพริด\nเพริศ\nเพรียก\nเพรียง\nเพรียบ\nเพรี้ยม\nเพรียว\nเพรื่อ\nเพรือง\nเพล\nเพลง\nเพล็ด\nเพล้โพล้\nเพลา\nเพลาะ\nเพลิง\nเพลิดเพลิน\nเพลิน\nเพลีย\nเพลี้ย\nเพลี่ยง\nเพศ\nเพส\nเพสลาด\nเพ่อ\nเพ้อ\nเพ้อเจ้อ\nเพอิญ\nเพะ\nเพา\nเพาะ\nเพิก\nเพิง\nเพิ่ง\nเพิดเพ้ย\nเพิ่ม\nเพี้ย\nเพียง\nเพี้ยง\nเพียงออ\nเพี้ยน\nเพียบ\nเพียร\nเพื่อ\nเพื่อน\nแพ\nแพ้\nแพง\nแพ่ง\nแพงพวย\nแพทย์\nแพทยศาสตร์\nแพน\nแพ่น\nแพนก\nแพนงเชิง\nแพร\nแพร่\nแพรก\nแพร่ง\nแพรว\nแพร้ว\nแพลง\nแพลทินัม\nแพล็บ\nแพลม\nแพลเลเดียม\nแพละ\nแพละโลม\nแพว\nแพ้ว\nแพศย์\nแพศยา\nแพะ\nโพ\nโพก\nโพกพาย\nโพง\nโพงพาง\nโพชฌงค์\nโพซิตรอน\nโพด\nโพทะเล\nโพแทสเซียม\nโพธ\nโพธิ\nโพธิ์\nโพน\nโพ้น\nโพนทะนา\nโพบาย\nโพย\nโพยก๊วน\nโพยม\nโพรก\nโพรง\nโพรโทแอกทิเนียม\nโพรมีเทียม\nโพระดก\nโพล่\nโพลง\nโพล่ง\nโพล้ง\nโพลน\nโพล้เพล้\nโพละ\nโพสพ\nไพ\nไพ่\nไพจิตร\nไพชน\nไพชยนต์\nไพฑูรย์\nไพที\nไพบูลย์\nไพพรรณ\nไพร\nไพร่\nไพรจิตร\nไพรชน\nไพรชยนต์\nไพรฑูรย์\nไพรที\nไพรบูลย์\nไพรเราะ\nไพรัช\nไพรำ\nไพริน\nไพรินทร์\nไพรี\nไพเราะ\nไพโรจน์\nไพล\nไพล่\nไพศาขะ\nไพศาล\nไพเศษ\nไพสพ\nไพสิฐ\nไพหาร\nฟก\nฟ้ง\nฟรักโทส\nฟรี\nฟลูออรีน\nฟ่อ\nฟ้อ\nฟอก\nฟอง\nฟ่อง\nฟ้อง\nฟอด\nฟอน\nฟ่อน\nฟ้อน\nฟ้อแฟ้\nฟอร์มาลดีไฮด์\nฟอร์มาลิน\nฟอสฟอรัส\nฟอสเฟต\nฟัก\nฟักฟุ้น\nฟัง\nฟังก์ชัน\nฟัด\nฟัน\nฟั่น\nฟั้น\nฟ้า\nฟาก\nฟาง\nฟ่าง\nฟาด\nฟาทอม\nฟาน\nฟ่าม\nฟาย\nฟาร์ม\nฟาสซิสต์\nฟิด\nฟิต\nฟิบ\nฟิล์ม\nฟิวส์\nฟิสิกส์\nฟี่\nฟี้\nฟืดฟาด\nฟืน\nฟื้น\nฟืม\nฟุ\nฟุ้ง\nฟุต\nฟุน\nฟุบ\nฟุ่บ\nฟุ่มเฟือย\nฟุลสแก๊ป\nฟู\nฟู่\nฟูก\nฟูด\nฟูม\nเฟ็ด\nเฟ้น\nเฟลด์สปาร์\nเฟ้อ\nเฟอร์เมียม\nเฟอะ\nเฟอะฟะ\nเฟะ\nเฟะฟะ\nเฟิน\nเฟี้ยม\nเฟี้ยว\nเฟือ\nเฟื้อ\nเฟือง\nเฟื่อง\nเฟื้อง\nเฟือน\nเฟือย\nเฟื้อย\nแฟ่\nแฟง\nแฟชั่น\nแฟน\nแฟบ\nแฟ้ม\nแฟรนเซียม\nแฟลกซ์\nแฟลต\nแฟะ\nโฟกัส\nไฟ\nภควดี\nภควัต\nภควันต์\nภควัม\nภควา\nภควาน\nภคะ\nภคันทลา\nภคินี\nภณะ\nภณิดา\nภพ\nภมร\nภมริน\nภมรี\nภมุกา\nภยันตราย\nภยาคติ\nภระ\nภรณี\nภรต\nภรรดร\nภรรดา\nภรรยา\nภระมร\nภระมรี\nภราดร\nภราดรภาพ\nภราดา\nภริยา\nภฤศ\nภวะ\nภวตัณหา\nภวนะ\nภวังค์\nภวังคจิต\nภักดี\nภักตะ\nภักติ\nภักษ์\nภักษา\nภักษาหาร\nภัค\nภัคน์\nภังคะ\nภังคี\nภัจ\nภัณฑ์\nภัณฑาคาร\nภัณฑาคาริก\nภัณฑารักษ์\nภัณฑนะ\nภัณฑู\nภัต\nภัตตาคาร\nภัตตาหาร\nภัตร\nภัทระ\nภัทรกัป\nภัพ\nภัย\nภัสดา\nภัสตรา\nภัสมะ\nภัสสร\nภา\nภาค\nภาคย์\nภาคยานุวัติ\nภาคินี\nภาคิไนย\nภาคี\nภาคียะ\nภาชนะ\nภาชี\nภาณ\nภาณวาร\nภาณกะ\nภาณี\nภาณุ\nภาดร\nภาดา\nภาตระ\nภาตา\nภาตุ\nภาติกะ\nภาติยะ\nภาพ\nภาพย์\nภาม\nภาย\nภาร\nภาระ\nภารดี\nภารต\nภารตี\nภารยทรัพย์\nภารยา\nภารา\nภาวนา\nภาวะ\nภาษ\nภาษณ์\nภาษา\nภาษิต\nภาษี\nภาส\nภาสน์\nภาสวร\nภาสา\nภาสุระ\nภิกขา\nภิกขาจาร\nภิกขุ\nภิกขุนี\nภิกษา\nภิกษาจาร\nภิกษาหาร\nภิกษุ\nภิกษุณี\nภิงคาร\nภิญโญ\nภิตติ\nภินท์\nภินทนาการ\nภิยโย\nภิรมย์\nภิรมย์สุรางค์\nภิษัช\nภิสัก\nภีตะ\nภีมะ\nภีรุ\nภุกต์\nภุขัน\nภุช\nภุชงค์\nภุต\nภุมมะ\nภุมรัตน์\nภุมวาร\nภุมรา\nภุมริน\nภุมรี\nภุมเรศ\nภู\nภู่\nภูต\nภูติ\nภูม\nภูมิ\nภูมี\nภูริ\nภูรี\nภูวดล\nภูวนาถ\nภูวเนตร\nภูวไนย\nภูษา\nภูษิต\nเภกะ\nเภตรา\nเภท\nเภทุบาย\nเภรี\nเภสัช\nโภค\nโภคะ\nโภคิน\nโภคี\nโภไคย\nโภไคศวรรย์\nโภช\nโภชย์\nโภชก\nโภชนะ\nโภชนา\nโภชนาหาร\nโภชนียะ\nไภริน\nไภรี\nไภษัชคุรุ\nไภษัชย์\nมกร\nมกราคม\nมกุฎ\nมคธ\nมฆวัน\nมฆะ\nมฆา\nม่ง\nมงกุฎ\nมงโกรย\nมงคล\nมงคลวาร\nมณฑ์\nมณฑก\nมณฑนะ\nมณฑป\nมณฑล\nมณฑา\nมณฑารพ\nมณฑิระ\nมณเฑียร\nมณี\nมด\nมตะ\nมตกภัต\nมติ\nมทนะ\nมทะ\nมธุ\nมธุกร\nมธุการี\nมธุลีห์\nมธุระ\nมธุรพจน์\nมน\nมนินทรีย์\nม่น\nมนต์\nมนตร์\nมนตรี\nมนท์\nมนทิราลัย\nมนเทียร\nมนสิการ\nมนัส\nมนัสวี\nมนินทรีย์\nมนิมนา\nมนิลา\nมนุญ\nมนุษย์\nมนุษยชาติ\nมนุษยธรรม\nมนุษย์มนา\nมนุษยโลก\nมนุษยศาสตร์\nมนุษยสัมพันธ์\nมนุสาร\nมนู\nมนูสาร\nมโน\nมโนช\nมโนชญ์\nมโนราห์\nมโนสาเร่\nมโนห์รา\nมมังการ\nมยุรฉัตร\nมยุระ\nมยุรา\nมยุรี\nมยุเรศ\nมยูร\nมรกต\nมรคา\nมรฑป\nมรณ์\nมรณะ\nมรณกรรม\nมรณบัตร\nมรณภัย\nมรณภาพ\nมรดก\nมรรค\nมรรคา\nมรรตัย\nมรรยาท\nมรรษ\nมรสุม\nมริจ\nมริยาท\nมรีจิ\nมรุต\nมฤค\nมฤคย์\nมฤคศิระ\nมฤคศิรมาส\nมฤคเศียร\nมฤคินทร์\nมฤเคนทร์\nมฤดก\nมฤต\nมฤตยู\nมฤทุ\nมล\nมละ\nมลัก\nมลังเมลือง\nมล้าง\nมลาย\nมลายู\nมวก\nม่วง\nมวน\nม่วน\nม้วน\nม้วนต้วน\nมวย\nม้วย\nมวล\nมหกรรม\nมหรณพ\nมหรรณพ\nมหรสพ\nมหัจฉริยะ\nมหัต\nมหัทธนะ\nมหันต์\nมหันตโทษ\nมหัพภาค\nมหัศจรรย์\nมหา\nมหากฐิน\nมหากาฬ\nมหาขันธกะ\nมหาจักร\nมหาชน\nมหาชัย\nมหาชาติ\nมหาโชตรัต\nมหาดไทย\nมหาดเล็ก\nมหาตมะ\nมหาไถ่\nมหาเทพ\nมหาเทพี\nมหาเทวี\nมหาธาตุ\nมหานิกาย\nมหานิล\nมหาบพิตร\nมหาบัณฑิต\nมหาพน\nมหาพรหม\nมหาภารตะ\nมหาภิเนษกรมณ์\nมหาภูต\nมหาเมฆ\nมหายาน\nมหายุค\nมหาราช\nมหาฤกษ์\nมหาละลวย\nมหาละลาย\nมหาวงศ์\nมหาวรรค\nมหาวิทยาลัย\nมหาศักราช\nมหาศาล\nมหาสงกรานต์\nมหาสดมภ์\nมหาสดำ\nมหาสมุทร\nมหาสาวก\nมหาหงส์\nมหาหิงคุ์\nมหาอำนาจ\nมหาอุจ\nมหาอุด\nมหาอุปรากร\nมหาอุปราช\nมหิ\nมหิดล\nมหิธร\nมหิป\nมหิงส์\nมหิทธิ\nมหินท์\nมหิมา\nมหิศร\nมหิศวร\nมหิษ\nมหิษี\nมหึมา\nมเหยงค์\nมเหศ\nมเหศวร\nมเหศักดิ์\nมเหสักข์\nมเหสิ\nมเหสี\nมเหาฬาร\nมโหรสพ\nมโหระทึก\nมโหรี\nมโหฬาร\nมไหศวรรย์\nมอ\nมอง\nมองโกลอยด์\nมองโกเลีย\nมองคร่อ\nมอญ\nมอด\nม่อต้อ\nมอเตอร์\nมอเตอร์ไซค์\nมอน\nม่อน\nมอบ\nมอม\nมอมแมม\nม่อย\nมอร์ฟีน\nมอระกู่\nมอลโทส\nม่อลอกม่อแลก\nม่อห้อม\nม่อฮ่อม\nมะ\nมะกรูด\nมะกล่ำ\nมะกอก\nมะก่อง\nมะกะโรนี\nมะกา\nมะเกลือ\nมะเกี๋ยง\nมะข่วง\nมะขวิด\nมะขาม\nมะเขือ\nมะแข่น\nมะคังแดง\nมะค่า\nมะคำไก่\nมะคำดีควาย\nมะงั่ว\nมะงุมมะงาหรา\nมะซัก\nมะซาง\nมะดัน\nมะดีหวี\nมะดูก\nมะเดหวี\nมะเดื่อ\nมะต้อง\nมะตะบะ\nมะตาด\nมะตาหะรี\nมะตึ่ง\nมะตื๋น\nมะตูม\nมะแตก\nมะโต\nมะนาว\nมะปราง\nมะปริง\nมะฝ่อ\nมะพร้าว\nมะพลับ\nมะพูด\nมะแพน\nมะแพร้ว\nมะเฟือง\nมะแฟน\nมะไฟ\nมะม่วง\nมะม่าว\nมะมี่\nมะมื่น\nมะมุด\nมะเมอ\nมะเมีย\nมะเมื่อย\nมะแม\nมะยง\nมะยม\nมะระ\nมะริด\nมะรืน\nมะรุม\nมะรุมมะตุ้ม\nมะเร็ง\nมะเรื่อง\nมะโรง\nมะลอกมะแลก\nมะละกอ\nมะลิ\nมะลื่น\nมะลืมดำ\nมะลุลี\nมะแว้ง\nมะสัง\nมะเส็ง\nมะหวด\nมะหะหมัด\nมะหาด\nมะหิ่ง\nมะเหงก\nมะอึก\nมะฮอกกานี\nมัก\nมักกะโรนี\nมักกะลีผล\nมักกะสัน\nมักขะ\nมั่กขั้ก\nมักขิกา\nมัค\nมัคคะ\nมัคคุเทศก์\nมัคนายก\nมัฆวาน\nมั่ง\nมังกง\nมังกร\nมังกุ\nมังคละ\nมังค่า\nมังคุด\nมังตาน\nมังสวิรัติ\nมังสะ\nมังสี\nมัจจะ\nมัจจุ\nมัจฉริยะ\nมัจฉรี\nมัจฉะ\nมัจฉา\nมัชชะ\nมัชวิรัติ\nมัชชาระ\nมัชฌันติกสมัย\nมัชฌิม\nมัชฌิมา\nมัญจา\nมัญชิษฐา\nมัญชุ\nมัญชุสา\nมัญชูสา\nมัญเชฏฐะ\nมัฏฐะ\nมัณฑนศิลป์\nมัณฑนา\nมัด\nมัตตะ\nมัตตัญญู\nมัตตา\nมัตติกา\nมัตถกะ\nมัตถลุงค์\nมัตสยะ\nมัตสยา\nมัตสระ\nมัตสริน\nมัททวะ\nมัทนะ\nมัทยะ\nมัธยฐาน\nมัธยม\nมัธยันห์\nมัธยัสถ์\nมัน\nมั่น\nมันตา\nมันถะ\nมันทิระ\nมันทิราลัย\nมับ\nมั้ม\nมัมมี่\nมัย\nมัลละ\nมัลลิกา\nมัว\nมัวซัว\nมั่ว\nมัศยา\nมัสตุ\nมัสตาร์ด\nมัสมั่น\nมัสยิด\nมัสรู่\nมัสลิน\nมัสสุ\nมา\nม้า\nมาก\nมาคสิระ\nมาฆบูชา\nมาฆะ\nม้าง\nมางสะ\nมาณพ\nมาณวิกา\nมาด\nมาดา\nมาตงค์\nมาตร\nมาตรา\nมาตฤ\nมาตังคะ\nมาตา\nมาตามหัยกะ\nมาตามหัยกา\nมาตามหัยยิกา\nมาติกะ\nมาติกา\nมาตุ\nมาตุจฉา\nมาตุรงค์\nมาตุเรศ\nมาตุละ\nมาตุลา\nมาตุลานี\nมาทะ\nมาธยมิก\nมาธยมิกะ\nมาธุระ\nมาธุสร\nมาธูระ\nมาน\nม่าน\nม้าน\nมานพ\nมานะ\nมานัต\nมานัส\nมานิต\nมานี\nมานุษ\nมานุษยวิทยา\nมาโนชญ์\nมาบ\nมาภา\nม้าม\nม่าย\nมายา\nมาร\nมาราธิราช\nมารค\nมารดร\nมารดา\nมารยา\nมารยาท\nมารศรี\nมารษา\nมาริต\nมารุต\nมาลย์\nมาลัย\nมาลา\nมาลาตี\nมาลาเรีย\nมาลินี\nมาลี\nมาลุต\nมาศ\nมาส\nมาสก\nมาห์\nม่าห์\nมาหิส\nม่าเหมี่ยว\nมาฬก\nมิ\nมิค\nมิคสัญญี\nมิ่ง\nมิจฉา\nมิด\nมิตร\nมิติ\nมิเตอร์\nมิถยา\nมิถุน\nมิถุนายน\nมิทธะ\nมินตรา\nมินตา\nมินหม้อ\nมิ่ม\nมิ้ม\nมิไย\nมิรันตี\nมิลลิกรัม\nมิลลิบาร์\nมิลลิเมตร\nมิลลิลิตร\nมิลักขะ\nมิลักขู\nมิส\nมิสกรี\nมิสกวัน\nมิสซา\nมี\nมี่\nมีด\nมีเทน\nมีน\nมีนาคม\nมี่สั้ว\nมึง\nมึน\nมืด\nมืน\nมื่น\nมือ\nมื้อ\nมุ\nมุก\nมุกดา\nมุกดาหาร\nมุกุระ\nมุข\nมุขเด็จ\nมุขยประโยค\nมุโขโลกนะ\nมุคคะ\nมุง\nมุ่ง\nมุ้ง\nมุจฉา\nมุจนะ\nมุจลินท์\nมุญจนะ\nมุญชะ\nมุฐิ\nมุณฑกะ\nมุณฑะ\nมุด\nมุตกิด\nมุตฆาต\nมุตตะ\nมุตตา\nมุตติ\nมุตะ\nมุติ\nมุททา\nมุทธชะ\nมุทธา\nมุทธาภิเษก\nมุทรา\nมุทริกา\nมุทะลุ\nมุทา\nมุทิกา\nมุทิงค์\nมุทิตา\nมุทุ\nมุทุตา\nมุ่น\nมุนิ\nมุนินทร์\nมุนี\nมุบ\nมุบมิบ\nมุม\nมุ้ม\nมุ่ย\nมุรธา\nมุรธาภิเษก\nมุสละ\nมุสลิม\nมุสา\nมุสิก\nมุหงิด\nมุหน่าย\nมุหุต\nมุฮัมมัด\nมูก\nมูเซอ\nมูตร\nมู่ทู่\nมูน\nมูมมาม\nมูรติ\nมูรธา\nมูรธาภิเษก\nมูล\nมูละ\nมูลา\nมูลิกากร\nมู่ลี่\nมู่เล่\nมูสัง\nมูสิก\nมูสิกะ\nมูสิกทันต์\nเม\nเม็ก\nเมกะเฮิรตซ์\nเมขลา\nเมฆ\nเมฆา\nเมฆินทร์\nเมฆี\nเม็ง\nเม็ด\nเมตตา\nเมตไตรย\nเมตร\nเมตริก\nเมตริกตัน\nเมถุน\nเมท\nเมโท\nเมทนี\nเมทินี\nเมทนีดล\nเมทานอล\nเมทิลแอลกอฮอล์\nเมธ\nเมธา\nเมธาวี\nเมธี\nเมน\nเม่น\nเม้น\nเมนเดลีเวียม\nเมนทอล\nเม้ม\nเมรัย\nเมริเดียน\nเมรุ\nเมล์\nเมล็ด\nเมลือง\nเมษ\nเมษายน\nเมห์\nเมหนะ\nเมหะ\nเมะ\nเมา\nเม่า\nเม้า\nเมารี\nเมาลี\nเมาฬี\nเมาะ\nเมิง\nเมิน\nเมิล\nเมีย\nเมียง\nเมี่ยง\nเมี้ยน\nเมือ\nเมื้อ\nเมื่อ\nเมือก\nเมือง\nเมือบ\nเมื่อย\nแม่\nแม้\nแมก\nแมกนีเซียม\nแมง\nแมงกะพรุน\nแมงกานิน\nแมงกานีส\nแมงคา\nแมงคาเรือง\nแมงช้าง\nแมงดา\nแมงลัก\nแม่ตะงาว\nแมน\nแม่น\nแม้น\nแมลง\nแมลบ\nแมว\nแม้ว\nแมะ\nโม\nโม่\nโม้\nโมก\nโมกข์\nโมกษะ\nโมฆกรรม\nโมฆสัญญา\nโมฆะ\nโมฆียกรรม\nโมฆียะ\nโมง\nโม่ง\nโมงครุ่ม\nโมทนา\nโมโนแซ็กคาไรด์\nโมไนย\nโมเม\nโมเมนต์\nโมเย\nโมรา\nโมรี\nโมเรส\nโมลิบดีนัม\nโมลี\nโมเลกุล\nโมเสก\nโมเสส\nโม่ห์\nโมหะ\nโมหันธ์\nโมหาคติ\nโมโห\nไม่\nไม้\nไมกา\nไมครอน\nไมโครกรัม\nไมโครฟิล์ม\nไมโครโฟน\nไมโครมิเตอร์\nไมโครเมตร\nไมโครลิตร\nไมโครเวฟ\nไมตรี\nไมยราบ\nไมล์\nยก\nยกกระบัตร\nยกนะ\nยง\nยงโย่\nยชุรเวท\nยติ\nยติภังค์\nยถากรรม\nยถาภูตญาณ\nย่น\nยนต์\nยนตร์\nยม\nยมก\nยมโดย\nยมนา\nยมล\nยมะ\nยรรยง\nยล\nยวง\nยวด\nยวน\nยวบ\nย้วย\nยวรยาตร\nยศ\nยโส\nยอ\nย่อ\nยอก\nย็อกแย็ก\nยอง\nย่อง\nย้อง\nยอด\nยอน\nย้อน\nยอบ\nยอม\nย่อม\nย้อม\nย่อย\nย้อย\nย้อแย้\nยะ\nย่ะ\nยะยอบ\nยะยับ\nยัก\nยักข์\nยักขินี\nยักษ์\nยักษา\nยักษิณี\nยักษี\nยัง\nยั้ง\nยั่งยืน\nยัชโญปวีต\nยัญ\nยัญญะ\nยัด\nยัติภังค์\nยัน\nยั่น\nยันต์\nยันตร\nยันตร์\nยันตรกรรม\nยั่นตะนี\nยับ\nยั่ว\nยั้ว\nยั้วเยี้ย\nยัวรยาตร\nยัวะ\nยัษฏิ\nยา\nย่า\nยาก\nยาคุ\nยาคู\nยาง\nย่าง\nยางพารา\nยาจก\nยาจนา\nยาไฉน\nยาด\nยาดา\nยาตร\nยาตรา\nยาน\nย่าน\nย่านพาโหม\nยานมาศ\nยานุมาศ\nยานี\nยาม\nย่าม\nยามะ\nยามักการ\nยามา\nยาย\nย้าย\nยายี\nยาว\nย้าว\nยาวกาลิก\nยาวชีวิก\nยาสูบ\nย่าหยา\nยาหยี\nยำ\nย่ำ\nย้ำ\nยำเยีย\nยิก\nยิง\nยิ่ง\nยิฏฐะ\nยิน\nยิบ\nยิบหยี\nยิปซัม\nยิปซี\nยิ้ม\nยิมนาสติก\nยิหวา\nยี\nยี่\nยี้\nยี่ก่า\nยี่เก\nยี่เข่ง\nยี่โถ\nยีน\nยี่โป้\nยี่ภู่\nยีราฟ\nยี่สก\nยี่สง\nยี่สน\nยี่สาน\nยี่สุ่น\nยี่หระ\nยี่หร่า\nยี่ห้อ\nยี่หุบ\nยึกยัก\nยึกยือ\nยึด\nยืด\nยืน\nยื่น\nยืม\nยื้อ\nยุ\nยุกกระบัตร\nยุกดิ\nยุกติ\nยุกติธรรม\nยุกต์\nยุค\nยุคนธร\nยุคล\nยุคันต์\nยุคันธร\nยุคุนธร\nยุง\nยุ่ง\nยุ้ง\nยุด\nยุต\nยุติ\nยุทธ\nยุทธ์\nยุทธนา\nยุทโธปกรณ์\nยุบ\nยุ่บ\nยุ่บยั่บ\nยุบล\nยุพดี\nยุพเรศ\nยุพา\nยุพาน\nยุพาพาล\nยุพาพิน\nยุ่มย่าม\nยุ่ย\nยุ้ย\nยุรยาตร\nยูรยาตร\nยุวชน\nยุวดี\nยุวราช\nยุวา\nยุวาน\nยู\nยู่\nยูง\nยูโด\nยูถะ\nยูถิกา\nยูริก\nยูเรนัส\nยูเรเนียม\nยูโรเพียม\nเย\nเย้\nเยง\nเยซู\nเย็ด\nเย็น\nเย็นตาโฟ\nเย็นเตาโฟ\nเย็บ\nเย้ย\nเยอ\nเย่อ\nเยอรมัน\nเยอว\nเย่อหยิ่ง\nเยอะ\nเยอะแยะ\nเยา\nเย้า\nเยาว์\nเยาวชน\nเยาวมาลย์\nเยาวยอด\nเยาวราช\nเยาวเรศ\nเยาวลักษณ์\nเยาวพา\nเยาวพาณี\nเยาวพาน\nเยาะ\nเยิง\nเยิน\nเยิ่น\nเยิ่นเย้อ\nเยินยอ\nเยิบ\nเยิบยาบ\nเยิ้ม\nเยีย\nเยี่ยง\nเยี่ยงอย่าง\nเยียงผา\nเยียดยัด\nเยียน\nเยียบ\nเยี่ยม\nเยียรบับ\nเยียรยง\nเยียว\nเยี่ยว\nเยียวยา\nเยือ\nเยื่อ\nเยื้อ\nเยือก\nเยือง\nเยื่อง\nเยื้อง\nเยือน\nเยื้อน\nแย่\nแย้\nแยก\nแยง\nแย่ง\nแย้ง\nแยงแย่\nแยงแย้\nแยบ\nแย็บ\nแยม\nแย้ม\nแยแส\nแยะ\nโย\nโย้\nโยก\nโยกเยก\nโยคาพจร\nโยคาวจร\nโยคเกณฑ์\nโยคยะ\nโยคะ\nโยคิน\nโยคี\nโยง\nโย่ง\nโย่งเย่ง\nโยงโย่\nโยชน์\nโยชนา\nโยถิกะ\nโยทะกา\nโยธวาทิต\nโยธา\nโยธิน\nโยน\nโยนก\nโยนิโส\nโยนี\nโยม\nโยโส\nใย\nไย\nไย่\nไยดี\nไยไพ\nรก\nรง\nรงค์\nรงควัตถุ\nรงรอง\nรจนา\nรจเรข\nรจเลข\nรจิต\nรชตะ\nรชนิ\nรชนี\nรชะ\nรณรงค์\nรด\nรดี\nรตนะ\nรตะ\nรติ\nรถ\nรน\nร่น\nรบ\nรบาญ\nรพี\nรม\nร่ม\nรมณี\nรมณีย์\nรมณียสถาน\nรมย์\nรมเยศ\nรยางค์\nรวก\nรวง\nร่วง\nรวด\nรวน\nรวนเร\nร่วน\nรวบ\nรวม\nร่วม\nรวย\nรวิ\nรวิวาร\nรวี\nรศนา\nรส\nรสนา\nรสสุคนธ์\nรสายนเวท\nรสิก\nรหัท\nรหัส\nรโห\nรโหฐาน\nรอ\nร่อ\nรอก\nรอง\nร่อง\nร้อง\nรองเง็ง\nร่องแร่ง\nรอด\nรอน\nร่อน\nร้อน\nรอบ\nรอบคอบ\nรอม\nรอมชอม\nรอมร่อ\nรอย\nร่อย\nร้อย\nร่อแร่\nระ\nระกะ\nระกา\nระกำ\nระเกะระกะ\nระคน\nระคาง\nระคาย\nระแคะ\nระฆัง\nระงม\nระงับ\nระแง้\nระโงกหิน\nระชวย\nระดม\nระดะ\nระดับ\nระดา\nระด่าว\nระดู\nระเด่น\nระเดียง\nระแด\nระตู\nระทก\nระทด\nระทม\nระทวย\nระทา\nระทึก\nระแทะ\nระนาด\nระนาบ\nระนาม\nระนาว\nระเนน\nระเนระนาด\nระเนียด\nระแนง\nระแนะ\nระบบ\nระบม\nระบอบ\nระบัด\nระบับ\nระบาด\nระบาย\nระบำ\nระบิล\nระบือ\nระบุ\nระเบง\nระเบ็ง\nระเบิด\nระเบียง\nระเบียน\nระเบียบ\nระแบบ\nระมัดระวัง\nระมาด\nระเมียร\nระย่อ\nระย่อม\nระยะ\nระยั้ง\nระยับ\nระย้า\nระยาบ\nระยำ\nระยิบระยับ\nระโยง\nระโยงระยาง\nระรวย\nระรอง\nระร่อน\nระรัว\nระราน\nระร่าย\nระริก\nระรี่\nระรึง\nระรื่น\nระรื้น\nระเร้ง\nระเริง\nระเรียง\nระเรื่อย\nระแรง\nระลวง\nระลอก\nระลึก\nระวัง\nระวาง\nระวาย\nระวิง\nระแวง\nระแวดระวัง\nระไว\nระส่ำระสาย\nระหกระเหิน\nระหง\nระหวย\nระหว่าง\nระหองระแหง\nระหัด\nระหาย\nระเห็จ\nระเหย\nระเหระหน\nระเหหน\nระเหิด\nระเหินระหก\nระแหง\nระโหย\nระอา\nระอิดระอา\nระอุ\nรัก\nรักข์\nรักขิต\nรักตะ\nรักบี้\nรักเร่\nรักแร้\nรักษ์\nรักษา\nรัง\nรั้ง\nรังเกียจ\nรังแก\nรังค์\nรังควาน\nรังแค\nรังรอง\nรังวัด\nรังสิ\nรังสี\nรังสิมันตุ์\nรังสิมา\nรัจฉา\nรัช\nรัชชูปการ\nรัชมังคลาภิเษก\nรัชชุ\nรัชฎาภิเษก\nรัชดาภิเษก\nรัชนะ\nรัชนี\nรัญจวน\nรัฏฐาภิปาลโนบาย\nรัฐ\nรัฐประศาสโนบาย\nรัฐประศาสนศาสตร์\nรัด\nรัต\nรัตกัมพล\nรัตมณี\nรัตคน\nรัตจันทน์\nรัตตัญญู\nรัตติ\nรัตน์\nรัตนะ\nรัตนโกสินทร์\nรัตนโกสินทรศก\nรัตนชาติ\nรัตนตรัย\nรัตนบัลลังก์\nรัตนวราภรณ์\nรัตนสิงหาสน์\nรัตนา\nรัตนากร\nรัตนาภรณ์\nรัตนาวลี\nรัตมา\nรัถ\nรัถยา\nรัทเทอร์ฟอร์เดียม\nรัน\nรั้น\nรันทด\nรันทวย\nรับ\nรัมณียสถาน\nรัมภา\nรัมมี่\nรัมย์\nรัย\nรัว\nรั่ว\nรั้ว\nรัศมิมัต\nรัศมิมาน\nรัศมี\nรัษฎากร\nรัสเซีย\nรัสสะ\nรัสสระ\nรา\nร่า\nร้า\nราก\nรากษส\nรากสาด\nราคะ\nราคจริต\nราคา\nราคิน\nราคี\nราง\nร่าง\nร้าง\nรางจืด\nรางชาง\nรางวัล\nราช\nราชกิจจานุเบกษา\nราชนิกุล\nราชวโรงการ\nราชญี\nราชดัด\nราชพฤกษ์\nราชมาณพ\nราชมาษ\nราชมาส\nราชย์\nราชสีห์\nราชะ\nราชัน\nราชันย์\nราชัย\nราชา\nราชาธิปไตย\nราชาธิราช\nราชาภิเษก\nราชายตนะ\nราชาวดี\nราชี\nราชินิกุล\nราชินีกุล\nราชินี\nราชินูปถัมภ์\nราชูปถัมภ์\nราชูปโภค\nราเชน\nราเชนทร์\nราเชนทรยาน\nราโชวาท\nราไชศวรรย์\nราญ\nราญรอน\nราด\nราต\nราตร\nราตรี\nราน\nร่าน\nร้าน\nราบ\nราพณ์\nราพณาสูร\nราม\nรามเกียรติ์\nรามสูร\nรามัญ\nรามา\nราย\nร่าย\nร้าย\nราว\nร้าว\nราวี\nราศี\nราษฎร\nราษฎร์\nราษตรี\nราษราตรี\nราหุ\nราหู\nรำ\nร่ำ\nรำคาญ\nรำงับ\nรำจวน\nรำบาญ\nรำพัน\nรำพาย\nรำพึง\nรำเพย\nรำไพ\nรำมะนา\nรำมะนาด\nรำมะร่อ\nร่ำรวย\nร่ำร่ำ\nรำไร\nรำลึก\nรำหัด\nรำหัส\nริ\nริก\nริดสีดวง\nริน\nริ้น\nริบ\nริบบิ้น\nริบรี่\nริบหรี่\nริปุ\nริปู\nริม\nริ้ว\nริษยา\nรี\nรี่\nรี้พล\nรีด\nรีดักชัน\nรีต\nรีเนียม\nรีบ\nรีม\nรีรอ\nรี้ริก\nรึง\nรึ้ง\nรื่น\nรื้น\nรื้อ\nรุ\nรุก\nรุกข์\nรุกขชาติ\nรุกขเทวดา\nรุกขมูล\nรุกขา\nรุกรุย\nรุ่ง\nรุ้ง\nรุงรัง\nรุ่งริ่ง\nรุจ\nรุจา\nรุจนะ\nรุจิ\nรุจี\nรุจิระ\nรุจิรา\nรุด\nรุต\nรุทธ์\nรุทระ\nรุธิร\nรุธิระ\nรุเธียร\nรุน\nรุ่น\nรุบรู่\nรุม\nรุ่ม\nรุ่มร่าม\nรุย\nรุ่ย\nรุรุ\nรุหะ\nรู\nรู่\nรู้\nรูจี\nรูด\nรูทีเนียม\nรูบิเดียม\nรูป\nรูปิยะ\nรูปี\nรูเล็ตต์\nเร่\nเรข\nเรขา\nเรขาคณิต\nเร็ง\nเร่ง\nเร้ง\nเรณุ\nเรณู\nเรดอน\nเรดาร์\nเรเดียม\nเร้น\nเรรวน\nเรไร\nเร็ว\nเร่ว\nเรวดี\nเรอ\nเร่อ\nเรา\nเร่า\nเร้า\nเราะ\nเริง\nเริด\nเริม\nเริ่ม\nเริ้ม\nเริศร้าง\nเรี่ย\nเรี้ย\nเรียก\nเรียง\nเรียด\nเรียน\nเรียบ\nเรียม\nเรี่ยม\nเรียว\nเรี่ยว\nเรี้ยวรก\nเรือ\nเรื่อ\nเรื้อ\nเรือก\nเรือง\nเรื่อง\nเรื้อง\nเรืองรอง\nเรือด\nเรือน\nเรื้อน\nเรื่อย\nแร\nแร่\nแรก\nแร็กเกต\nแรง\nแร่ง\nแร้ง\nแรด\nแร้นแค้น\nแรม\nแร้ว\nแระ\nโร\nโร่\nโรค\nโรคา\nโรคาพาธ\nโรง\nโรจ\nโรจน์\nโรเดียม\nโรตี\nโรท\nโรธ\nโรม\nโรมัน\nโรเมอร์\nโรย\nโรเร\nโรหิณี\nโรหิต\nไร\nไร่\nไร้\nไรย์\nฤกษ์\nฤกษณะ\nฤคเวท\nฤชา\nฤชุ\nฤณ\nฤดี\nฤดียา\nฤดู\nฤต\nฤติยา\nฤตุ\nฤทธา\nฤทธิ์\nฤทัย\nฤษภ\nฤษยา\nฤษี\nฤๅ\nฤๅดี\nฤๅทัย\nฤๅษี\nฤๅสาย\nลก\nล่ก\nลฆุ\nลง\nล่ง\nลงกา\nล้งเล้ง\nลด\nลดา\nลดาวัลย์\nลน\nล้น\nลบ\nลบอง\nลพ\nลพุช\nลม\nล่ม\nล้ม\nลมาด\nลรรลุง\nลลนา\nลลิต\nลวก\nลวง\nล่วง\nล้วง\nลวณะ\nลวด\nล้วน\nลวนลาม\nลวนะ\nล่วม\nลวะ\nลวิตร\nลหุ\nลหุกาบัติ\nล่อ\nล้อ\nลอก\nล็อก\nล็อกเกต\nลอกแลก\nลอการิทึม\nลอง\nล่อง\nลองกอง\nลองจิจูด\nลองไน\nลอด\nลอตเตอรี่\nลอน\nล่อน\nลอบ\nลอม\nล้อม\nลอมชอม\nลอมพอก\nลอย\nล่อย\nล่อแล่\nลอว์เรนเซียม\nลออ\nละ\nล่ะ\nละคร\nละติจูด\nละบม\nละบอง\nละบือ\nละเบ็ง\nละโบม\nละม่อม\nละมั่ง\nละมาน\nละม้าย\nละมุ\nละมุด\nละมุน\nละเมอ\nละเมาะ\nละเมิด\nละเมียด\nละแมะ\nละโมก\nละโมบ\nละไม\nละลวย\nละลอก\nละล้า\nละล้าละลัง\nละลาน\nละลาบละล้วง\nละลาย\nละล้าว\nละล่ำละลัก\nละลิบ\nละลุม\nละเลง\nละเล้า\nละเลาะ\nละเลิง\nละเลียด\nละเลียบ\nละไล้\nละว้า\nละวาด\nละเวง\nละแวก\nละโว้\nละหมาด\nละห้อย\nละหาน\nละหาร\nละหุ่ง\nละเหย\nละเหี่ย\nละอง\nละออง\nละอาย\nละเอียด\nละแอน\nลัก\nลักขณะ\nลักขณา\nลักขะ\nลักขี\nลักจั่น\nลักปิดลักเปิด\nลักษณ์\nลักษณนาม\nลักษณะ\nลักษณาการ\nลักษมณ์\nลักษมาณา\nลักษมี\nลักษะ\nลัคคะ\nลัคน์\nลัคนา\nลัง\nลั่ง\nลังกา\nลังคี\nลังถึง\nลังลอง\nลังเล\nลังสาด\nลัชชา\nลัชชี\nลัญจ์\nลัญจกร\nลัญฉกร\nลัญฉน์\nลัฐิ\nลัฐิกา\nลัด\nลัดา\nลัทธ์\nลัทธิ\nลัน\nลั่น\nลันเต\nลันเตา\nลันไต\nลั่นทม\nลันโทม\nลับ\nลัพธ์\nลัพธิ\nลัภ\nลัภนะ\nลัภย์\nลัมพ์\nลัย\nลา\nล่า\nล้า\nลาก\nลาง\nล่าง\nล้าง\nลางลิง\nลางสาด\nลาช\nลาชะ\nลาชา\nลาญ\nลาด\nลาดเลา\nล้าต้า\nล่าเตียง\nลาน\nล่าน\nล้าน\nลาบ\nลาพอน\nลาภ\nลาม\nล่าม\nลามก\nลาย\nล้าย\nลายสือ\nลาลา\nลาว\nลาวัณย์\nลาวา\nลำ\nล่ำ\nล้ำ\nลำเข็ญ\nลำแข\nลำเค็ญ\nลำเจียก\nลำดวน\nลำดับ\nลำเนา\nลำบอง\nลำบาก\nลำปำ\nลำพวน\nลำพอง\nลำพัง\nลำพู\nลำเพ็ญ\nลำเพา\nลำแพน\nลำโพง\nลำไพ่\nลำภุขัน\nลำมะลอก\nลำยอง\nลำไย\nลำลอง\nล่ำลา\nลำลาบ\nลำลึก\nลำเลาะ\nลำเลิก\nลำเลียง\nลำเวียง\nลำเอียก\nลำเอียง\nลิ\nลิกขา\nลิกไนต์\nลิกู\nลิเก\nลิขนะ\nลิขสิทธิ์\nลิขิต\nลิง\nลิงค์\nลิด\nลิต\nลิตมัส\nลิตร\nลิเทียม\nลิ่น\nลิ้น\nลินจง\nลิ้นจี่\nลินลา\nลินสีด\nลิ่นฮื้อ\nลินิน\nลิบ\nลิปดา\nลิปสติก\nลิปิ\nลิฟต์\nลิเภา\nลิ่ม\nลิ้ม\nลิมป์\nลิมปนะ\nลิลิต\nลิว\nลิ่ว\nลิสง\nลี\nลี่\nลี้\nลีซอ\nลีบ\nลีลา\nลีลาศ\nลีฬหา\nลึก\nลึงค์\nลืด\nลื่น\nลื้น\nลืบ\nลืม\nลือ\nลื่อ\nลื้อ\nลุ\nลุก\nลุง\nลุ้ง\nลุ่น\nลุ้น\nลุพธ์\nลุ่ม\nลุมพี\nลุมพู\nลุย\nลุ่ย\nลุ้ย\nลู่\nลูก\nลูกระมาศ\nลูกเอ็น\nลูขะ\nลูทีเชียม\nลูบ\nเลก\nเล็ก\nเลข\nเลขา\nเลขาธิการ\nเลขานุการ\nเล็ง\nเล้ง\nเล่งฮื้อ\nเลเซอร์\nเลฑฑุ\nเลณฑุ\nเลณะ\nเล็ด\nเลน\nเล็น\nเล่น\nเลนส์\nเล็บ\nเลบง\nเลปกร\nเลปน์\nเลเป\nเลเพ\nเล็ม\nเล่ม\nเลย\nเลว\nเลวง\nเลวูโลส\nเลศ\nเลษฏุ\nเล่ห์\nเล่ห์กระเท่ห์\nเลหลัง\nเลหะ\nเลอ\nเล่อ\nเลอะ\nเลอะเทอะ\nเละ\nเละเทะ\nเลา\nเล่า\nเล้า\nเลากัย\nเล้าโลม\nเลาะ\nเลิก\nเลิ่กลั่ก\nเลิง\nเลิ้ง\nเลินเล่อ\nเลิศ\nเลีย\nเลียง\nเลี่ยง\nเลี้ยง\nเลียงผา\nเลียงฝ้าย\nเลียงมัน\nเลียน\nเลี่ยน\nเลียนไฟ\nเลียบ\nเลี่ยม\nเลียว\nเลี้ยว\nเลือก\nเลือง\nเลื่อง\nเลือด\nเลือน\nเลื่อน\nเลื่อม\nเลื่อย\nเลื้อย\nเลื่อยล้า\nแล\nแล่\nแล้\nแลก\nแล็กเกอร์\nแล็กโทส\nแลง\nแล่ง\nแล้ง\nแลน\nแล่น\nแลนทานัม\nแลบ\nแล้ว\nและ\nโล่\nโล้\nโลก\nโลกเชษฐ์\nโลกธรรม\nโลกธาตุ\nโลกนาถ\nโลกบาล\nโลกย์\nโลกัย\nโลกวัชชะ\nโลกวิทู\nโลกัตถจริยา\nโลกันตร์\nโลกา\nโลกาธิบดี\nโลกาธิปไตย\nโลกานุวัตร\nโลกาภิวัตน์\nโลกามิส\nโลกายัต\nโลกาวินาศ\nโลกิยะ\nโลกีย์\nโลกียวัตร\nโลกียวิสัย\nโลกียสุข\nโลกุตระ\nโลกุตรธรรม\nโลกุตรภูมิ\nโลง\nโล่ง\nโล้ง\nโล่งโจ้ง\nโล่งโต้ง\nโล้งโต้ง\nโลจนะ\nโลณะ\nโลด\nโล่ติ๊น\nโลโต\nโลท\nโลน\nโล้น\nโลภ\nโลม\nโลมเล้า\nโลมะ\nโลมา\nโลลุป\nโลเล\nโลโล\nโลโล้\nโลหะ\nโลหกุมภี\nโลหัช\nโลหิต\nไล่\nไล้\nไลย\nไลลา\nไล่เลี่ย\nฦๅ\nฦๅชา\nฦๅสาย\nวก\nวง\nวงก์\nวงกต\nวงศ์\nวงศกร\nวงศา\nวงษ์\nวจนะ\nวจี\nวชิระ\nวชิรปาณี\nวชิรหัตถ์\nวชิราวุธ\nวฏะ\nวฏาการ\nวณิช\nวณิชชา\nวณิชย์\nวณิชยา\nวณิพก\nวดี\nวทนะ\nวทัญญุตา\nวทัญญู\nวธุกา\nวธู\nวน\nวนศาสตร์\nวนสณฑ์\nวนสัณฑ์\nวนอุทยาน\nวนัส\nวนัสบดี\nวนา\nวนาดร\nวนาดอน\nวนานต์\nวนาลัย\nวนาลี\nวนาวาส\nวนาศรม\nวนาสณฑ์\nวนาสัณฑ์\nวนิดา\nวนิพก\nวเนจร\nวโนทยาน\nวยัคฆ์\nวยากรณ์\nวรดนู\nวรทาน\nวรมหาวิหาร\nวรงค์\nวรณะ\nวรรค\nวรรคย์\nวรรช\nวรรชย์\nวรรณะ\nวรรณกรรม\nวรรณคดี\nวรรณยุกต์\nวรรณยุต\nวรรณศิลป์\nวรรณนา\nวรรณพฤติ\nวรรณึก\nวรรธกะ\nวรรธนะ\nวรรษ\nวรรษา\nวรวิหาร\nวรัญญู\nวรางคณา\nวรางคนา\nวราห์\nวราหะ\nวรุณ\nวโรดม\nวฤก\nวลัช\nวลัญช์\nวลัญชน์\nวลัย\nวลาหก\nวลี\nวศค\nวศะ\nวศิน\nวสนะ\nวสภะ\nวสละ\nวสวัดดี\nวสวัตตี\nวสะ\nวสันต์\nวสันตดิลก\nวสันตฤดู\nวสันตวิษุวัต\nวสา\nวสี\nวสุ\nวสุธา\nวสุนธรา\nวสุมดี\nวหะ\nวอ\nวอก\nวอกแวก\nว่องไว\nวอด\nวอน\nว่อน\nว็อบ\nวอมแวม\nวอลเลย์บอล\nวอแว\nวะ\nวัก\nวักกะ\nวัคคีย์\nวัคคุ\nวัคซีน\nวัง\nวังก์\nวังชา\nวังเวง\nวังศะ\nวังสะ\nวัจจะ\nวัจกุฎี\nวัจฉละ\nวัจน์\nวัช\nวัชชะ\nวัชพืช\nวัชฌ์\nวัชระ\nวัชรปาณี\nวัชรยาน\nวัชรอาสน์\nวัชราสน์\nวัชรินทร์\nวัชรี\nวัชเรนทร์\nวัฏ\nวัฏฏะ\nวัฏจักร\nวัฏทุกข์\nวัฏสงสาร\nวัฏกะ\nวัฏฏิ\nวัฒกะ\nวัฒกี\nวัฒนธรรม\nวัฒนะ\nวัฒนา\nวัณ\nวัณโรค\nวัณฏ์\nวัณณะ\nวัณนา\nวัด\nวัต\nวัตต์\nวัตตา\nวัตถ์\nวัตถาภรณ์\nวัตถาลังการ\nวัตถุ\nวัตนะ\nวัตร\nวัตสดร\nวัตสะ\nวัติ\nวัทน์\nวัน\nวันต์\nวันทนา\nวันทนาการ\nวันทนีย์\nวันทยหัตถ์\nวันทยาวุธ\nวันทา\nวันทิ\nวับ\nวับวาบ\nวับวาม\nวับแวบ\nวับแวม\nวัปปะ\nวัมมิกะ\nวัย\nวัลก์\nวัลคุ\nวัลย์\nวัลลภ\nวัลลี\nวัว\nวัสสะ\nวัสโสทก\nวัสดุ\nวัสตร์\nวัสน์\nวัสนะ\nวัสสานะ\nวัสสานฤดู\nวา\nว่า\nว้า\nว้าเหว่\nวาก\nว้าก\nวากยสัมพันธ์\nวากยะ\nวาง\nว่าง\nว้าง\nวาจก\nวาจา\nวาจาไปยะ\nวาจาล\nวาชเปยะ\nวาณิช\nวาณิชกะ\nวาณิชย์\nวาณี\nวาด\nวาต\nวาตะ\nวาตภัย\nวาท\nวาทศาสตร์\nวาทศิลป์\nวาทกะ\nวาทนะ\nวาทย์\nวาทยกร\nวาทิต\nวาทิน\nวาที\nวาน\nวานซืน\nว่าน\nวานร\nวานรินทร์\nวาเนเดียม\nวาบ\nวาปี\nวาม\nวามน\nวามนาวตาร\nวามะ\nวาย\nว่าย\nว้าย\nวายะ\nวาโย\nวายามะ\nวายุ\nวายุกูล\nวาร\nวาระ\nวารสาร\nวารสารศาสตร์\nวาริ\nวารี\nวาริช\nวารีช\nวาริท\nวาริธร\nวารุณ\nวารุณี\nวาล\nวาลวีชนี\nวาล์ว\nวาลิกา\nวาลุกา\nวาว\nว่าว\nว้าว่อน\nว้าวุ่น\nวาสนะ\nวาสนา\nวาสพ\nวาสะ\nวาสิน\nวาสี\nวาสุกรี\nวาสุกี\nวาสุเทพ\nวาหนะ\nวาหะ\nวาหินี\nวาฬ\nวิกขัมภ์\nวิกขัมภนะ\nวิกเขป\nวิกรม\nวิกรัย\nวิกรานต์\nวิกฤต\nวิกฤติ\nวิกล\nวิกสิต\nวิกัต\nวิกัติ\nวิกัติการก\nวิกัป\nวิกัย\nวิการ\nวิกาล\nวิกาลโภชน์\nวิคหะ\nวิเคราะห์\nวิฆเนศ\nวิฆเนศวร\nวิฆาต\nวิง\nวิ่ง\nวิ่งเปี้ยว\nวิงวอน\nวิจฉิกะ\nวิจล\nวิจักขณ์\nวิจักษ์\nวิจักษณ์\nวิจัย\nวิจาร\nวิจารณ์\nวิจารณญาณ\nวิจิ\nวิจิกิจฉา\nวิจิต\nวิจิตร\nวิจิน\nวิจุณ\nวิจุรณ\nวิชชา\nวิชชุ\nวิชชุดา\nวิชชุตา\nวิชชุลดา\nวิชญะ\nวิชน\nวิชนี\nวิชย\nวิชัย\nวิชา\nวิชานนะ\nวิชิต\nวิเชียร\nวิญญัตติ\nวิญญาณ\nวิญญาณกทรัพย์\nวิญญู\nวิฑูรย์\nวิด\nวิตก\nวิตถาร\nวิตามิน\nวิถี\nวิทธะ\nวิทยฐานะ\nวิทยา\nวิทยาคม\nวิทยาคาร\nวิทยาลัย\nวิทยุ\nวิทยุต\nวิทวัส\nวิทัตถิ\nวิทัศน์\nวิทารณ์\nวิทิต\nวิทู\nวิทูร\nวิเทศ\nวิเทโศบาย\nวิธ\nวิธวา\nวิธาน\nวิธี\nวิธุระ\nวิธู\nวิธูปนะ\nวิ่น\nวินตกะ\nวินัย\nวินาที\nวินายก\nวินาศ\nวินิจ\nวินิจฉัย\nวินิต\nวินิบาต\nวินิปาติก\nวิเนต\nวิบัติ\nวิบาก\nวิบุล\nวิบุลย์\nวิบูล\nวิบูลย์\nวิปการ\nวิปฏิสาร\nวิปโยค\nวิประโยค\nวิปริต\nวิปลาส\nวิปวาส\nวิปักษ์\nวิปัสสก\nวิปัสสนา\nวิปัสสนายานิก\nวิพากษ์\nวิพิธทัศนา\nวิพุธ\nวิภว\nวิภวตัณหา\nวิภังค์\nวิภัช\nวิภัตติ\nวิภา\nวิภาค\nวิภาช\nวิภาดา\nวิภาวี\nวิภาษ\nวิภาส\nวิภู\nวิภูษณะ\nวิภูษา\nวิภูษิต\nวิมน\nวิมล\nวิมลัก\nวิมังสา\nวิมัติ\nวิมาน\nวิมุข\nวิมุต\nวิมุตติ\nวิเมลือง\nวิโมกข์\nวิโยค\nวิระ\nวิรงรอง\nวิรังรอง\nวิรัช\nวิรัต\nวิรัติ\nวิราคะ\nวิราม\nวิริยภาพ\nวิริยะ\nวิรุธ\nวิรุฬห์\nวิรุฬหก\nวิรูป\nวิรูปักษ์\nวิเรนทร์\nวิโรจ\nวิโรจน์\nวิโรฒ\nวิโรธ\nวิลันดา\nวิลัย\nวิลาด\nวิลาศ\nวิลาป\nวิลาวัณย์\nวิลาส\nวิลาสินี\nวิลิปดา\nวิลิศมาหรา\nวิเลป\nวิเลปนะ\nวิโลกนะ\nวิโลม\nวิไล\nวิไลวรรณ\nวิวรณ์\nวิวรรธน์\nวิวัฏ\nวิวัฒน์\nวิวัฒนาการ\nวิวัน\nวิวาท\nวิวาห์\nวิวาหมงคล\nวิวาหะ\nวิวิต\nวิวิธ\nวิเวก\nวิศรุต\nวิศว\nวิศวกร\nวิศวกรรม\nวิศวกรรมศาสตร์\nวิศัลย์\nวิศาขบูชา\nวิศาขา\nวิศาล\nวิศิษฏ์\nวิศุทธ์\nวิศุทธิ์\nวิเศษ\nวิเศษณ์\nวิษณุ\nวิษณุกรรม\nวิษธร\nวิษัย\nวิษาณ\nวิษุวัต\nวิสกี้\nวิสรรชนีย์\nวิสฤต\nวิสสุกรรม\nวิสัชนา\nวิสัญญี\nวิสัย\nวิสัยทัศน์\nวิสาขบูชา\nวิสาขะ\nวิสาขา\nวิสามัญ\nวิสามานยนาม\nวิสาร\nวิสารทะ\nวิสาล\nวิสาสะ\nวิสาหกิจ\nวิสิฐ\nวิสุงคามสีมา\nวิสุทธ์\nวิสุทธิ์\nวิสูตร\nวิเสท\nวิหค\nวิหลั่น\nวิหาร\nวิหิงสา\nวิเหสา\nวิฬาร\nวิฬาร์\nวี\nวีจิ\nวีชนี\nวีณา\nวี้ด\nวีรกรรม\nวีรชน\nวีรบุรุษ\nวีรสตรี\nวี่วัน\nวี่แวว\nวีสะ\nวุ้ง\nวุฐิ\nวุฒ\nวุฒิ\nวุด\nวุ่น\nวุ้น\nวุบ\nวุ้ย\nวุลแฟรม\nวู้\nวูดวาด\nวูบ\nวู่วาม\nเว้\nเวค\nเวคิน\nเวคี\nเวจ\nเวช\nเวชยันต์\nเวฐน์\nเวณิ\nเวณิก\nเวณุ\nเวตน์\nเวตร\nเวตาล\nเวท\nเวทคู\nเวทนา\nเวทย์\nเวทัลละ\nเวทางค์\nเวทางคศาสตร์\nเวทานต์\nเวทานตะ\nเวทิ\nเวที\nเวธะ\nเวน\nเว้น\nเวนไตย\nเวไนย\nเวมัต\nเว้ย\nเวยยากรณะ\nเวร\nเวรมณี\nเวรี\nเวโรจน์\nเวลา\nเวเลนซี\nเวศม์\nเวศย์\nเวศยา\nเวสน์\nเวสภู\nเวสม์\nเวสวัณ\nเวสสะ\nเวสสันดร\nเวสสุกรรม\nเวสสุวัณ\nเวสารัช\nเวสิยา\nเวหน\nเวหะ\nเวหา\nเวหาส\nเวฬุ\nเวฬุริยะ\nเว่อ\nเว้า\nเวิก\nเวิ้ง\nเวี่ย\nเวียง\nเวียด\nเวียดนาม\nเวียน\nเวียร\nเวี่ยว\nแว้\nแวง\nแว้ง\nแวด\nแว้ด\nแวน\nแว่น\nแวนดา\nแวบ\nแว็บ\nแวม\nแว็ม\nแวว\nแว่ว\nแวะ\nโว\nโว่\nโวการ\nโว่ง\nโวทาน\nโวย\nโว้ย\nโว้เว้\nโวหาร\nไว\nไว้\nไวกูณฐ์\nไวฑูรย์\nไวทย์\nไวน์\nไวพจน์\nไวยากรณ์\nไวยาวัจกร\nไวยาวัจมัย\nไวรัส\nไววรรณ\nไวษณพ\nไวโอลิน\nศก\nศกุน\nศกุนต์\nศกุนิ\nศกุนี\nศจี\nศตะ\nศตภิษัช\nศตวรรษ\nศตพรรษ\nศตกะ\nศนิ\nศพ\nศมนะ\nศมะ\nศยาม\nศยามล\nศร\nศรายุธ\nศราวรณ์\nศรรกรา\nศรวณะ\nศรวณีย์\nศรวิษฐา\nศรัณย์\nศรัณยู\nศรัท\nศรัทธา\nศรัย\nศราทธ์\nศราทธพรต\nศราพก\nศราวก\nศราวณะ\nศรี\nศรีตรัง\nศรุติ\nศฤคาล\nศฤงค์\nศฤงคาร\nศฤงคาริน\nศฤงคารี\nศลิษฏ์\nศลิษา\nศวะ\nศวัส\nศวา\nศวาน\nศศะ\nศศธร\nศศพินทุ์\nศศลักษณ์\nศศิ\nศศิน\nศศี\nศศิขัณฑ์\nศศิธร\nศศิมณฑล\nศศิวิมล\nศอ\nศอก\nศักดา\nศักดิ\nศักดิ์\nศักดินา\nศักติ\nศักย\nศักยภาพ\nศักย์\nศักยะ\nศักร\nศักรินทร์\nศักเรนทร์\nศักราช\nศังกร\nศัตรู\nศันสนะ\nศันสนีย์\nศัพท์\nศัยยา\nศัล\nศัลย์\nศัลยกรรม\nศัลยแพทย์\nศัลยศาสตร์\nศัสดร\nศัสตร\nศัสตรศาสตร์\nศัสตรา\nศัสตราวุธ\nศากตะ\nศากย\nศากยะ\nศากยพุทธ\nศากยมุนี\nศาฎก\nศาณ\nศานต์\nศานติ\nศาป\nศารท\nศารทูล\nศาริกา\nศาล\nศาลา\nศาศวัต\nศาสดา\nศาสตร์\nศาสตรา\nศาสตราจารย์\nศาสนา\nศาสนกิจ\nศาสนจักร\nศาสนธรรม\nศาสนบุคคล\nศาสนพิธี\nศาสนวัตถุ\nศาสนศาสตร์\nศาสนสถาน\nศาสนสมบัติ\nศาสนิกชน\nศาสนีย์\nศาสนูปถัมภก\nศาสน์\nศิกษก\nศิการ\nศิขร\nศิขริน\nศิขรี\nศิขัณฑ์\nศิคาล\nศิงขร\nศิงขริน\nศิตะ\nศิถี\nศิพิระ\nศิระ\nศิรประภา\nศิราภรณ์\nศิโรรัตน์\nศิโรเวฐน์\nศิรา\nศิรามพุช\nศิโรราบ\nศิลป\nศิลป์\nศิลปะ\nศิลปกร\nศิลปกรรม\nศิลปกิจ\nศิลปวัตถุ\nศิลปวิทยา\nศิลปศาสตร์\nศิลปศึกษา\nศิลปหัตถกรรม\nศิลปิน\nศิลปี\nศิลา\nศิวะ\nศิวโมกข์\nศิวลึงค์\nศิวเวท\nศิวาลัย\nศิศีระ\nศิษฎิ\nศิษฏ์\nศิษย์\nศิษยานุศิษย์\nศีขร\nศีต\nศีตกาล\nศีรษะ\nศีล\nศึก\nศึกษา\nศึกษาธิการ\nศึกษานิเทศก์\nศุกร์\nศุกรวรรณ\nศุกรวาร\nศุกระ\nศุกล\nศุกลปักษ์\nศุจิ\nศุทธะ\nศุทธิ\nศุนะ\nศุนิ\nศุภกร\nศุภเคราะห์\nศุภนิมิต\nศุภมัสดุ\nศุภมาตรา\nศุภมาส\nศุภอักษร\nศุภางค์\nศูกร\nศุลกากร\nศุลการักษ์\nศุลี\nศุษิร\nศูทร\nศูนย์\nศูนยวาท\nศูละ\nศูลิน\nเศรณี\nเศรษฐ\nเศรษฐ์\nเศรษฐกิจ\nเศรษฐศาสตร์\nเศรษฐี\nเศร้า\nเศลษ\nเศวต\nเศวตร\nเศวตัมพร\nเศษ\nเศาจ\nเศาร์\nเศารยะ\nเศิก\nเศียร\nโศก\nโศกา\nโศกาดูร\nโศกาลัย\nโศกี\nโศจิ\nโศธนะ\nโศภน\nโศภะ\nโศภา\nโศภิต\nโศภิน\nโศภิษฐ์\nโศภี\nโศรดา\nโศรตร\nโศลก\nไศล\nไศวะ\nษมา\nษัฏ\nษัฑ\nษัณ\nษัษ\nษัษฐะ\nษัษฐี\nโษฑศัน\nสก\nสกวาที\nสกฏะ\nสกทาคามิผล\nสกิทาคามิผล\nสกทาคามิมรรค\nสกิทาคามิมรรค\nสกทาคามี\nสกิทาคามี\nสกนธ์\nสกปรก\nสกรณีย์\nสกรรจ์\nสกรรมกริยา\nสกล\nสกลมหาสังฆปริณายก\nสกัด\nสกา\nสกาว\nสกี\nสกุณ\nสกุณา\nสกุณี\nสกุน\nสกุนต์\nสกุล\nสเกต\nสแกนเดียม\nสขะ\nสง\nส่ง\nสงกร\nสงกรานต์\nสงกา\nสงค์\nสงคร\nสงคราม\nสงเคราะห์\nสงฆ์\nสงบ\nสงวน\nส่งสการ\nสงสัย\nสงสาร\nสงสารวัฏ\nสงัด\nสง่า\nสฐะ\nสณฑ์\nสด\nสดมภ์\nสดับ\nสดับปกรณ์\nสดำ\nสดุดี\nสตะ\nสตน\nสตภิสชะ\nสตรอนเชียม\nสตริกนิน\nสตรี\nสตัฟฟ์\nสตัมภ์\nสตางค์\nสติ\nสติปัฏฐาน\nสตี\nสตู\nสตูป\nสเต๊ก\nสถบดี\nสถล\nสถวีระ\nสถาน\nสถานะ\nสถานี\nสถาบัน\nสถาปนา\nสถาปนิก\nสถาปัตยกรรม\nสถาปัตยกรรมศาสตร์\nสถาปัตยเรขา\nสถาปัตยเวท\nสถาพร\nสถาวร\nสถิต\nสถิตยศาสตร์\nสถิติ\nสถิร\nสถีรวาท\nสถุล\nสถูป\nสทิง\nสทึง\nสทุม\nสธนะ\nสาธุสะ\nสน\nส้น\nสนทนา\nสนทรรศ\nสนทรรศน์\nสนเทศ\nสนเท่ห์\nสนธยา\nสนธิ\nสนน\nสนม\nสนวน\nสนอง\nสนอบ\nสนอม\nสนะ\nสนัด\nสนั่น\nสนับ\nสนับทึบ\nสนับสนุน\nสนาน\nสนาม\nสนายุ\nสนิกะ\nสนิท\nสนิธ\nสนิม\nสนุก\nสนุกเกอร์\nสนุข\nสนุต\nสนุ่น\nสบ\nสบง\nสบถ\nสบัน\nสบาย\nสบู่\nสไบ\nสปริง\nสปอร์\nสปาเกตตี\nสเปกตรัม\nสเปกโทรสโกป\nสไปริลลัม\nสพาบ\nสภา\nสภาพ\nสภาวการณ์\nสภาวะ\nสม\nสมการ\nสมจารี\nสมดุล\nสมมูล\nส้ม\nสมญา\nสมณะ\nสมณบริขาร\nสมณศักดิ์\nสมณสารูป\nสมเด็จ\nสมถะ\nสมถยานิก\nสมถวิปัสสนา\nสมนาคุณ\nสมบัติ\nสมบุกสมบัน\nสมบูรณ์\nสมบูรณาญาสิทธิราชย์\nสมประดี\nสมปฤดี\nสมปฤๅดี\nส้มป่อย\nสมปัก\nสมผุส\nสมพง\nสมพงศ์\nสมพล\nสมพัตสร\nสมพาส\nสมเพช\nสมโพธน์\nสมโพธิ\nสมภพ\nสมภาร\nสมโภค\nสมโภช\nสมมต\nสมมติ\nสมมุติ\nสมมาตร\nส้มมือ\nสมโมท\nสมโยค\nสมร\nสมรด\nสมรรถ\nสมรรถนะ\nสมรรถภาพ\nสมรส\nสมฤดี\nสมฤติ\nสมวายะ\nสมเสร็จ\nสมอ\nสมอง\nสมะ\nสมัคร\nสมังคี\nสมัช\nสมัชชา\nสมัญญา\nสมัต\nสมัน\nสมันต์\nสมัย\nสมา\nสมาคม\nสมาจาร\nสมาชิก\nสมาทาน\nสมาธิ\nสมาน\nสมานฉันท์\nสมาบัติ\nสมาพันธรัฐ\nสมาส\nสม่ำเสมอ\nสมิง\nสมิต\nสมิติ\nสมิทธ์\nสมิทธิ\nสมี\nสมุก\nสมุจจัย\nสมุจเฉท\nสมุฏฐาน\nสมุด\nสมุทร\nสมุทรโคดม\nสมุทัย\nสมุน\nสมุนไพร\nสมุลแว้ง\nสมุห\nสมุห์\nสมุหกลาโหม\nสมุหเทศาภิบาล\nสมุหนาม\nสมุหนายก\nสโมธาน\nสโมสร\nสยด\nสยนะ\nสยบ\nสยมพร\nสยมภู\nสยอง\nสยอน\nสยัมวรา\nสยาม\nสยามานุสติ\nสยามินทร์\nสยาย\nสยิว\nสยิ้ว\nสยุมพร\nสยุมภู\nสร\nสรง\nสร่ง\nสรณะ\nสรณคมน์\nสรณาคมน์\nสรณตรัย\nสรตะ\nสรทะ\nสรนุก\nสรเนาะ\nสรไน\nสรเพชญ\nสรภะ\nสรภัญญะ\nสรภู\nสรม\nสรร\nสรรค์\nสรรพ\nสรรพคุณ\nสรรพนาม\nสรรพสามิต\nสรรพัชญ\nสรรพากร\nสรรพางค์\nสรรเพชญ\nสรรเพชุดา\nสรรเสริญ\nสรลอน\nสรเลข\nสรวง\nสรวม\nสรวล\nสรเสริญ\nสร้อย\nสระ\nสระกอ\nสระท้อน\nสระพรั่ง\nสระอาด\nสรั่ง\nสรัสวดี\nสร่าง\nสร้าง\nสราญ\nสรี้\nสรีระ\nสรีรกิจ\nสรีรธาตุ\nสรีรวิทยา\nสรีรศาสตร์\nสรีรังคาร\nสรีรางคาร\nสรุป\nสโรช\nสโรชะ\nสฤก\nสฤต\nสฤษฎิ\nสฤษฎี\nสฤษฏ์\nสฤษดิ์\nสลด\nสลบ\nสลวน\nสลวย\nสลอด\nสลอน\nสลอย\nสละ\nสลัก\nสลัด\nสลัดได\nสลับ\nสลัว\nสลา\nสลาก\nสลาง\nสล้าง\nสลาด\nสลาตัน\nสลาบ\nสลาย\nสลิด\nสลิล\nสลึก\nสลึง\nสลุต\nสลุบ\nสลุมพร\nสแลง\nสวการย์\nสวภาพ\nสวราชย์\nสวก\nส้วง\nสวด\nสวน\nสวนะ\nสวนาการ\nส่วน\nสวนิต\nสวบ\nสวม\nส้วม\nสวย\nส่วย\nส้วย\nสวยม\nสวรรค\nสวรรค์\nสวรรคต\nสวรรคาลัย\nสวรรยา\nสวระ\nสวะ\nสวัสดิ\nสวัสดิ์\nสวัสดิการ\nสวัสดิภาพ\nสวัสดิมงคล\nสวัสดี\nสวัสติ\nสวาตี\nสวัสติกะ\nสวา\nสวาปาม\nสวาคตะ\nสวาง\nสว่าง\nสวาด\nสวาดิ\nสวาท\nสว่าน\nสว้าน\nสวาบ\nสวามิ\nสวามี\nสวามินี\nสวาย\nสวาสดิ์\nสวาหะ\nสวิง\nสวิญญาณกทรัพย์\nสวิตช์\nสสาร\nสสุระ\nสสุรี\nสหกรณ์\nสหการ\nสหจร\nสหชาต\nสหชาติ\nสหธรรม\nสหธรรมิก\nสหประชาชาติ\nสหพันธ์\nสหพันธรัฐ\nสหภาพ\nสหศึกษา\nสหัช\nสหัมบดี\nสหัส\nสหัสสะ\nสหัสธารา\nสหัสนัยน์\nสหัสเนตร\nสหัสรังสี\nสหัสา\nสหาย\nสอ\nส่อ\nสอง\nส่อง\nส้อง\nสอด\nสอน\nส่อน\nสอบ\nสอพลอ\nส้อม\nสอย\nสะ\nสะกด\nสะกอ\nสะกาง\nสะการะ\nสะกิด\nสะกิดสะเกา\nสะเก็ด\nสะแก\nสะคร้อ\nสะคราญ\nสะค้าน\nสะเงาะสะแงะ\nสะดม\nสะดวก\nสะดิ้ง\nสะดึง\nสะดือ\nสะดุ้ง\nสะดุด\nสะเด็ด\nสะเดา\nสะเดาะ\nสะตอ\nสะตาหมัน\nสะตึ\nสะตือ\nสะตุ\nสะเต๊ะ\nสะโตก\nสะทก\nสะท้อน\nสะท้าน\nสะทึก\nสะเทิน\nสะเทิ้น\nสะเทือน\nสะเทื้อน\nสะบะ\nสะบัก\nสะบักสะบอม\nสะบัด\nสะบัดสะบิ้ง\nสะบั้น\nสะบันงา\nสะบ้า\nสะบู\nสะแบง\nสะเปะสะปะ\nสะพรั่ง\nสะพรึงกลัว\nสะพรึบ\nสะพรึ่บ\nสะพัก\nสะพัง\nสะพัด\nสะพั้น\nสะพาน\nสะพาย\nสะเพร่า\nสะโพก\nสะเภา\nสะใภ้\nสะโมง\nสะระตะ\nสะระแหน่\nสะลาง\nสะลาบ\nสะลึมสะลือ\nสะวี้ดสะว้าด\nสะสม\nสะสวย\nสะสาง\nสะเหล่อ\nสะอาง\nสะอาด\nสะอ้าน\nสะอิ้ง\nสะอิดสะเอียน\nสะอึก\nสะอื้น\nสะเอ้ง\nสะเอว\nสะเออะ\nสะโอดสะอง\nสะไอ\nสัก\nสักกะ\nสักยะ\nสักกัจจะ\nสักกายทิฐิ\nสักการ\nสักการะ\nสักขี\nสักวา\nสักหลาด\nสัค\nสัคคะ\nสั่ง\nสังกร\nสังกรณี\nสังกรประโยค\nสังกะตัง\nสังกะวัง\nสังกะวาด\nสังกะสี\nสังกัด\nสังกัปปะ\nสังกา\nสังการ\nสังกาศ\nสังกิเลส\nสังเกต\nสังข์\nสังขกร\nสังขตธรรม\nสังขตะ\nสังขยา\nสังขลิก\nสังขลิกา\nสังขาร\nสังขารา\nสังเขป\nสังค์\nสังคญาติ\nสังคม\nสังคหะ\nสังคัง\nสังคายนา\nสังคายนาย\nสังคีต\nสังคีติ\nสังเค็ด\nสังเคราะห์\nสังฆกรรม\nสังฆการี\nสังฆเถระ\nสังฆทาน\nสังฆนายก\nสังฆปาโมกข์\nสังฆภัต\nสังฆเภท\nสังฆมณฑล\nสังฆมนตรี\nสังฆราช\nสังฆสภา\nสังฆาณัติ\nสังฆาฏิ\nสังฆาทิเสส\nสังฆาธิการ\nสังฆานุสติ\nสังฆาวาส\nสังยุตนิกาย\nสังโยค\nสังโยชน์\nสังวร\nสังวัจฉระ\nสังวัธยาย\nสังวาล\nสังวาส\nสังเวคะ\nสังเวช\nสังเวชนียสถาน\nสังเวย\nสังเวียน\nสังสกฤต\nสังสการ\nสังสนทนา\nสั่งสนทนา\nสังสรรค์\nสังสารวัฏ\nสังสิทธิ\nสังสุทธ์\nสังสุทธิ\nสังหร\nสังหรณ์\nสังหาร\nสังหาริมทรัพย์\nสังหาริมะ\nสังหิต\nสัจ\nสัจกิริยา\nสัจจะ\nสัจญาณ\nสัจธรรม\nสัจนิยม\nสัจพจน์\nสัชฌะ\nสัชฌุ\nสัญจร\nสัญเจตนา\nสัญชาตญาณ\nสัญชาติ\nสัญฌา\nสัญญา\nสัญญาณ\nสัญญี\nสัญโญชน์\nสัญนิยม\nสัญประกาศ\nสัญลักษณ์\nสัฐิ\nสัณฐาน\nสัณฐิติ\nสัณฑ์\nสัณห์\nสัด\nสัดจอง\nสัต\nสัตตะ\nสัตตาหกรณียะ\nสัตตาหกาลิก\nสัตมวาร\nสัตสดก\nสัตตบงกช\nสัตตบรรณ\nสัตตบุษย์\nสัตตู\nสัตถันดร\nสัตถา\nสัตถิ\nสัตถุ\nสัตถุศาสนา\nสัตบรรณ\nสัตย์\nสัตยพรต\nสัตยวาที\nสัตยาเคราะห์\nสัตยาธิษฐาน\nสัตยาบัน\nสัตว์\nสัตวชาติ\nสัตวบาล\nสัตวแพทย์\nสัตววิทยา\nสัตวา\nสัทธรรม\nสัทธา\nสัทธาจริต\nสัทธาธิกะ\nสัทธินทรีย์\nสัทธิงวิหาริก\nสัทธิวิหาริก\nสัทวิทยา\nสัทศาสตร์\nสัทอักษร\nสัน\nสั่น\nสั้น\nสันดาน\nสันดาป\nสันโดษ\nสันต์\nสันตติ\nสันตะปาปา\nสันตะวา\nสันติ\nสันตุฏฐี\nสันถวไมตรี\nสันถวะ\nสันถัต\nสันถาร\nสันทนะ\nสันทะ\nสันทัด\nสันทัสนะ\nสันทาน\nสันทิฐิก\nสันทิส\nสันเทหะ\nสันธาน\nสันนิธิ\nสันนิบาต\nสันนิวาส\nสันนิษฐาน\nสันสกฤต\nสับ\nสับปลับ\nสับปลี้\nสับปะรด\nสัปคับ\nสัปดาห์\nสัปดาหะ\nสัปดน\nสัปตศก\nสัปทน\nสัปปะ\nสัปปิ\nสัปปุริส\nสัปปุรุษ\nสัประยุทธ์\nสัปหงก\nสัปเหร่อ\nสัพ\nสัพพะ\nสัพพัญญู\nสัพเพเหระ\nสัพยอก\nสัมบูรณ์\nสัมปชัญญะ\nสัมปทา\nสัมปทาน\nสัมปยุต\nสัมปโยค\nสัมประสิทธิ์\nสัมประหาร\nสัมปรายภพ\nสัมปรายิกภพ\nสัมปัตติ\nสัมผัปลาป\nสัมผัปลาปะ\nสัมผัส\nสัมพล\nสัมพหุลา\nสัมพัจฉรฉินท์\nสัมพัตสร\nสัมพัทธ์\nสัมพันธ์\nสัมพันธน์\nสัมพันธภาพ\nสัมพันธมิตร\nสัมพันธไมตรี\nสัมพาหะ\nสัมพุทธ\nสัมพุทธะ\nสัมโพธิ\nสัมภวะ\nสัมภเวสี\nสัมภัต\nสัมภัตตะ\nสัมภาระ\nสัมภาษณ์\nสัมโภคกาย\nสัมมนา\nสัมมัปธาน\nสัมมา\nสัมโมทนียกถา\nสัมฤทธิ\nสัมฤทธิ์\nสัมฤทธิศก\nสัยน์\nสัลเลข\nสัสดี\nสัสตทิฐิ\nสัสสะ\nสัสสุ\nสัสสู\nสา\nส่า\nสาก\nสากรรจ์\nสากล\nสากัจฉา\nสากัลย์\nสากิยะ\nสาเก\nสาขา\nสาคร\nสาคเรศ\nสาคู\nสาง\nส้าง\nสาชล\nสาฎก\nสาฏิก\nสาณี\nสาด\nสาไถย\nสาทร\nสาทิส\nสาทุ\nสาโท\nสาธก\nสาธยะ\nสาธยาย\nสาธารณะ\nสาธารณชน\nสาธารณประโยชน์\nสาธารณภัย\nสาธารณรัฐ\nสาธารณสถาน\nสาธารณสมบัติ\nสาธารณสุข\nสาธารณูปการ\nสาธารณูปโภค\nสาธารณ์\nสาธิต\nสาธุ\nสาน\nส่าน\nสานุ\nสานู\nสานุศิษย์\nสาบ\nสาบสูญ\nสาบาน\nสาป\nสาปไตย\nสาม\nสามชุก\nสามเณร\nสามเณรี\nสามนต์\nสามนตราช\nสามยทรัพย์\nสามล\nสามหาว\nสามะ\nสามัคคี\nสามัญ\nสามัตถิยะ\nสามานย์\nสามานยนาม\nสามารถ\nสามิต\nสามินี\nสามิภักดิ์\nสามี\nสามีจิกรรม\nสาย\nส่าย\nส้าย\nสายชู\nสายัณห์\nสายาห์\nสาร\nสารคดี\nสารธรรม\nสารนิเทศ\nสารบบ\nสารบรรณ\nสารบัญ\nสารบาญ\nสารบาญชี\nสารประโยชน์\nสารสนเทศ\nสารทุกข์\nสารถี\nสารท\nสารพัด\nสารพัน\nสารพางค์\nสารภาพ\nสารภี\nสารวัตร\nสาระ\nสาระแน\nสาระพา\nสาระยำ\nสาระวารี\nสาระสะมา\nสารัตถประโยชน์\nสารัตถศึกษา\nสารัตถะ\nสารัทธ์\nสารัมภ์\nสาราณียกร\nสาราณียธรรม\nสาราณียะ\nสารานุกรม\nสารีริกธาตุ\nสารูป\nสาโรช\nสาละ\nสาละวน\nสาลิ\nสาลิกา\nสาลินี\nสาลี\nสาลี่\nสาลู\nสาโลหิต\nสาว\nสาวก\nสาวิกา\nสาวิตร\nสาวิตรี\nสาสน\nสาสน์\nสาส์น\nสาสนา\nสาสม\nสาหร่าย\nสาหรี\nส่าหรี\nสาหัส\nสาเหตุ\nสาแหรก\nสำ\nสำส่อน\nส่ำ\nสำคัญ\nสำซ่าง\nสำแดง\nสำทับ\nสำนวน\nสำนอง\nสำนัก\nสำนาน\nสำนึก\nสำนึง\nสำเนา\nสำเนียง\nสำบัด\nสำปะลอ\nสำปะหลัง\nสำปั้น\nสำปันนี\nสำเภา\nสำมะงา\nสำมะโน\nสำมะลอ\nสำมะเลเทเมา\nสำมะหา\nสำรด\nสำรวจ\nสำรวม\nสำรวย\nสำรวล\nสำรอก\nสำรอง\nสำรับ\nสำราก\nสำราญ\nสำริด\nสำเร็จ\nสำเรา\nสำเริง\nสำโรง\nสำลัก\nสำลาน\nสำลี\nสำแลง\nสำหรวด\nสำหรับ\nสำหา\nสำเหนียก\nสำเหร่\nสำออย\nสำอาง\nสิ\nสิกข์\nสิข\nสิกขมานา\nสิกขา\nสิขร\nสิขรี\nสิขเรศ\nสิขา\nสิขานล\nสิขี\nสิคาล\nสิง\nสิ่ง\nสิงขร\nสิงค์\nสิงคลิ้ง\nสิงคลี\nสิงคาร\nสิงคาล\nสิงคี\nสิงโต\nสิงห์\nสิงหนาท\nสิงหบัญชร\nสิงหรา\nสิงหราช\nสิงหาคม\nสิงหาสน์\nสิงหล\nสิญจน์\nสิตะ\nสิตางศุ์\nสิถิล\nสิทธ์\nสิทธัตถะ\nสิทธา\nสิทธาจารย์\nสิทธารถ\nสิทธิ\nสิทธิ์\nสิทธิการิยะ\nสิธยะ\nสิน\nสิ้น\nสินเทา\nสินธพ\nสินธุ\nสินธุ์\nสินธุระ\nสินธู\nสินเธาว์\nสินาด\nสินิทธ์\nสินี\nสิเนรุ\nสิเนหก\nสิเนหะ\nสิเนหา\nสิเน่หา\nสิบ\nสิปปะ\nสิมพลี\nสิระ\nสิโรดม\nสิโรตม์\nสิริ\nสิรี\nสิลา\nสิว\nสิ่ว\nสิวะ\nสิวาลัย\nสิวิกา\nสี\nสี่\nสี้\nสีกา\nสีกุน\nสีข้าง\nสีด\nสีดอ\nสีดา\nสีตลรัศมี\nสีตโลทก\nสีโตทก\nสีทันดร\nสีมันต์\nสีมา\nสีละมัน\nสีวิกา\nสีสอ\nสีสะ\nสีสา\nสีสุก\nสีเสียด\nสีห์\nสีหนาท\nสีหบัญชร\nสีหราช\nสีหไสยา\nสีหไสยาสน์\nสีหะ\nสึก\nสึง\nสืบ\nสื่อ\nสุ\nสุก\nสุกข์\nสุกร\nสุกรม\nสุกำศพ\nสุกียากี้\nสุข\nสุขา\nสุขาภิบาล\nสุขารมณ์\nสุขาวดี\nสุขิน\nสุขี\nสุขุม\nสุขุมาล\nสุโข\nสุคต\nสุคติ\nสุคนธ\nสุคนธ์\nสุคนธชาติ\nสุคนธรส\nสุคันธ์\nสุคันธรส\nสุงกะ\nสุงกากร\nสุงสิง\nสุงสุมาร\nสุจริต\nสุจหนี่\nสุจิ\nสุจิต\nสุจิตร\nสุชน\nสุชัมบดี\nสุชา\nสุชาดา\nสุญ\nสุญญากาศ\nสุญตา\nสุญนิยม\nสุณ\nสุณิสา\nสุด\nสุดา\nสุต\nสุตตนิบาต\nสุตตะ\nสุตตันตปิฎก\nสุตตันตะ\nสุติ\nสุทธ\nสุทธ์\nสุทธาวาส\nสุทธิ\nสุทรรศน์\nสุทัศน์\nสุธา\nสุธาโภชน์\nสุธารส\nสุธาสินี\nสุธาสี\nสุธี\nสุนทร\nสุนทรี\nสุนทรียภาพ\nสุนทรียศาสตร์\nสุนทรียะ\nสุนัข\nสุนันท์\nสุโนก\nสุบดี\nสุบรรณ\nสุบิน\nสุปรีดิ์\nสุปรีย์\nสุปาณี\nสุพพัต\nสุพรรณ\nสุพรรณบัฏ\nสุพรรณภาชน์\nสุพรรณราช\nสุพรรณศรี\nสุพรรณถัน\nสุพรรณิการ์\nสุภร\nสุภัค\nสุภา\nสุภาพ\nสุภาษิต\nสุม\nสุ่ม\nสุมทุม\nสุมน\nสุมนะ\nสุมนัส\nสุมนา\nสุ้มเสียง\nสุมะ\nสุมาลี\nสุเมธ\nสุเมรุ\nสุรคต\nสุรเชษฐ์\nสุรบดี\nสุรภาพ\nสุรโลก\nสุรสีหนาท\nสุรเสียง\nสุรงค์\nสุรังค์\nสุรภี\nสุรัติ\nสุรัสวดี\nสุรา\nสุรางค์จำเรียง\nสุรางคนา\nสุรางคนางค์\nสุรารักษ์\nสุราลัย\nสุรินทร์\nสุรินทราหู\nสุริยะ\nสุริยกันต์\nสุริยกานต์\nสุริยการ\nสุริยกาล\nสุริยคติ\nสุริยคราส\nสุริยมณฑล\nสุริยวงศ์\nสุริยง\nสุริยา\nสุริเยนทร์\nสุริเยศ\nสุริโย\nสุริยน\nสุริยัน\nสุริยุปราคา\nสุรีย์\nสุรุ่ยสุร่าย\nสุลต่าน\nสุวคนธ์\nสุวภาพ\nสุวรรณ\nสุวรรณภูมิ\nสุวะ\nสุวาน\nสุวินัย\nสุวิมล\nสุษิระ\nสุสาน\nสุหนัต\nสุหร่ง\nสุหร่าย\nสุหฤท\nสุหัท\nสุเหร่า\nสู\nสู่\nสู้\nสูง\nสูจิ\nสูจิบัตร\nสูญ\nสูด\nสูต\nสูตร\nสูติ\nสูติกรรม\nสูตินรีเวช\nสูติบัตร\nสูติแพทย์\nสูติศาสตร์\nสูท\nสูทกรรม\nสูทศาสตร์\nสูบ\nสูปะ\nสูร\nสูรย์\nสูรยกานต์\nสูริ\nสูสี\nเส\nเสก\nเสกขบุคคล\nเสกขะ\nเสขบุคคล\nเสขะ\nเส็ง\nเส้ง\nเส็งเคร็ง\nเสงี่ยม\nเสฏฐี\nเสณี\nเสด\nเสด็จ\nเสตุ\nเสถียร\nเสทะ\nเสโท\nเสน\nเส้น\nเสนง\nเสน่ง\nเสน่ห์\nเสนหา\nเสน่หา\nเสนอ\nเสนะ\nเสนา\nเสนาธิการ\nเสนาบดี\nเสน่า\nเสนากุฎ\nเสนางค์\nเสนางคนิกร\nเสนานี\nเสนาสนะ\nเสนาะ\nเสนี\nเสนีย์\nเสนียะ\nเสนียด\nเสบย\nเสบียง\nเสพ\nเสพย์\nเสเพล\nเสภา\nเสม็ด\nเสมหะ\nเสมอ\nเสมา\nเสมียน\nเสมือน\nเสย\nเสร็จ\nเสริด\nเสริม\nเสรี\nเสลด\nเสลบรรพต\nเสลา\nเสลี่ยง\nเสลือกสลน\nเสโล\nเสวก\nเสวกามาตย์\nเสวนะ\nเสวนา\nเสวย\nเสวียน\nเสสรวง\nเสสรวล\nเสา\nเส้า\nเสาร์\nเสารภย์\nเสารี\nเสาวคนธ์\nเสาวธาร\nเสาวภา\nเสาวภาคย์\nเสาวภาพ\nเสาวรภย์\nเสาวรส\nเสาวลักษณ์\nเสาวณิต\nเสาวนะ\nเสาวนา\nเสาวนีย์\nเสาหฤท\nเสาะ\nเสาะแสะ\nเสิร์จ\nเสิร์ฟ\nเสีย\nเสียง\nเสี่ยง\nเสียด\nเสี้ยน\nเสียบ\nเสียม\nเสี่ยม\nเสี้ยม\nเสียว\nเสี่ยว\nเสี้ยว\nเสือ\nเสื่อ\nเสื้อ\nเสือก\nเสื่อม\nแส\nแส่\nแส้\nแสก\nแสง\nแสด\nแสดง\nแสตมป์\nแสน\nแสนย์\nแสนยากร\nแสนยานุภาพ\nแสบ\nแสม\nแสยก\nแสยง\nแสยะ\nแสรก\nแสร้ง\nแสลง\nแสล้ม\nแสวง\nแสะ\nโสก\nโสกโดก\nโสกันต์\nโสโครก\nโสณฑ์\nโสณิ\nโสณี\nโสด\nโสดก\nโสดม\nโสดา\nโสดาบัน\nโสดาปัตติผล\nโสดาปัตติมรรค\nโสต\nโสตทัศนวัสดุ\nโสตทัศนอุปกรณ์\nโสตทัศนูปกรณ์\nโสตินทรีย์\nโสตถิ\nโสทก\nโสทร\nโสธก\nโสธนะ\nโสน\nโสภณ\nโสภา\nโสภี\nโสภิณี\nโสเภณี\nโสม\nโสมนัส\nโสมม\nโสมย์\nโสร่ง\nโสรจ\nโสรวาร\nโสโร\nโสวรรณ\nโสหุ้ย\nโสฬส\nใส\nใส่\nไส\nไส้\nไสย\nไสยา\nไสยาสน์\nไสร้\nไสว\nหก\nหกคะเมน\nหง\nหงก\nหงส์\nหงสบาท\nหงสรถ\nหงอ\nหงอก\nหง่อง\nหงองแหงง\nหงอด\nหงอน\nหง่อม\nหงอย\nหง่อย\nหงัก\nหงับ\nหง่าง\nหงาย\nหง่าว\nหงำ\nหงิก\nหงิง\nหงิม\nหงึก\nหงุงหงิง\nหงุดหงิด\nหงุบ\nหงุ่ย\nหญ้า\nหญ้าฝรั่น\nหญ้ายายเภา\nหญิง\nหญิบ\nหด\nหตะ\nหทัย\nหน\nหนวก\nหน่วง\nหนวด\nหน่วย\nหน่วยกิต\nหนอ\nหน่อ\nหนอก\nหนอง\nหนอน\nหนอนตายหยาก\nหน่อย\nหน็อยแน่\nหนัก\nหนัง\nหนังสติ๊ก\nหนังสือ\nหนั่น\nหนับ\nหนา\nหน้า\nหน่าง\nหนาด\nหนาน\nหนาม\nหน่าย\nหนาว\nหนำ\nหนำเลี้ยบ\nหนี\nหนี้\nหนีบ\nหนึก\nหนึ่ง\nหนึบ\nหนืด\nหนุ\nหนุน\nหนุบ\nหนุ่ม\nหนุ่ย\nหนู\nห่ม\nหมก\nหมด\nหม่น\nหมวก\nหมวด\nหมวน\nหมอ\nหม่อ\nหม้อ\nหมอก\nหมอง\nหม่อง\nหมอน\nหม่อน\nหมอบ\nหม่อม\nหมอย\nหม้อห้อม\nหมัก\nหมักหมม\nหมัด\nหมัน\nหมั่น\nหมั้น\nหมับ\nหมา\nหม่า\nหมาก\nหมากฮอส\nหมาง\nหมาด\nหมามุ่ย\nหมามุ้ย\nหมาย\nหม้าย\nหมาร่า\nหม่ำ\nหม้ำ\nหมิ่น\nหมี\nหมี่\nหมึก\nหมืน\nหมื่น\nหมุด\nหมุน\nหมุบ\nหมุบหมับ\nหมุบหมิบ\nหมุ่ย\nหมุยขาว\nหมู\nหมู่\nหมูหริ่ง\nหยก\nหย่ง\nหยด\nหยวก\nหยวบ\nหยอก\nหยอกเอิน\nหย็อกหย็อย\nหยอง\nหย็อง\nหย่อง\nหย็องกรอด\nหย็องแหย็ง\nหยอด\nหยอน\nหย่อน\nหย่อม\nหย็อมแหย็ม\nหย็อย\nหย่อย\nหยัก\nหยักไย่\nหยักเหยา\nหยัง\nหยั่ง\nหยังหยัง\nหยัด\nหยัน\nหยับ\nหยั่วเมือง\nหย่า\nหยากเยื่อ\nหยากไย่\nหยาด\nหยาบ\nหยาม\nหยาว\nหย้าว\nหยำเป\nหยำเหยอะ\nหยำแหยะ\nหยิก\nหยิ่ง\nหยิบ\nหยิม\nหยี\nหยี่\nหยุกหยิก\nหยุด\nหยุ่น\nหยุบ\nหยุมหยิม\nหยูกยา\nหโยดม\nหรคุณ\nหรณะ\nหรดาล\nหรดี\nหรรษ์\nหรรษา\nหรอ\nหรอก\nหร็อมแหร็ม\nหรอย\nหระ\nหรับ\nหรา\nหริ\nหริ่ง\nหริณะ\nหริต\nหริตกี\nหรีตกี\nหรี่\nหรีด\nหรือ\nหรุบ\nหรุบรู่\nหรุบหรู่\nหรุ่ม\nหรู\nหรูหรา\nหฤทัย\nหฤทย์\nหฤษฎ์\nหฤษฎี\nหฤหรรษ์\nหฤโหด\nหลง\nหลงใหล\nหลงจู๊\nหลด\nหลน\nหล่น\nหลบ\nหล่ม\nหลวง\nหลวม\nหลอ\nหล่อ\nหลอก\nหลอด\nหลอน\nหล็อน\nหล่อน\nหลอม\nหละ\nหละหลวม\nหลัก\nหลัง\nหลั่ง\nหลัด\nหลั่น\nหลับ\nหลัว\nหลา\nหล้า\nหลาก\nหลาน\nหลาบ\nหลาม\nหลาย\nหลาว\nหลิ่ง\nหลิท\nหลิน\nหลิม\nหลิว\nหลิ่ว\nหลี\nหลีก\nหลีโก\nหลีบ\nหลีฮื้อ\nหลืบ\nหลุกหลิก\nหลุด\nหลุน\nหลุบ\nหลุม\nหลุมพอ\nหลุมพี\nหลู่\nหวง\nห่วง\nห้วง\nหวด\nหวน\nห้วน\nหวย\nห้วย\nหวอ\nหวอด\nหวะ\nหวัง\nหวัด\nหวั่น\nหวันยิหวา\nหวัว\nหวัวร่อ\nหวัวเราะ\nหวา\nหว่า\nหว้า\nหวาก\nหว่าง\nหวาด\nหวาน\nหว่าน\nหวาม\nหวาย\nหวำ\nหวิด\nหวิว\nหวี\nหวี่\nหวีด\nหวือ\nหวุดหวิด\nหวูด\nหอ\nห่อ\nห้อ\nหอก\nหอง\nห้อง\nหอน\nห่อน\nหอบ\nหอม\nห้อม\nหอย\nห้อย\nหะ\nหะยี\nหะหาย\nหัก\nหัจญ์\nหัจญี\nหัช\nหัฏฐะ\nหัด\nหัต\nหัตถ์\nหัตถกรรม\nหัตถการ\nหัตถกิจ\nหัตถบาส\nหัตถพันธ์\nหัตถาภรณ์\nหัตถศาสตร์\nหัตถศิลป์\nหัตถศึกษา\nหัตถาจารย์\nหัตถินี\nหัตถี\nหัน\nหั่น\nหั้น\nหันตรา\nหับ\nหัย\nหัว\nหัวร่อ\nหัวเราะ\nหัส\nหัสดิน\nหัสดี\nหัสต์\nหัสตะ\nหา\nห่า\nห้า\nหาก\nหาง\nห่าง\nห้าง\nหาญ\nหาด\nห่าน\nหาบ\nหาม\nห่าม\nห้าม\nหาย\nหายใจ\nหายนะ\nหาร\nหารือ\nหาว\nห้าว\nหาสะ\nหำ\nห้ำ\nหิ้ง\nหิงคุ\nหิงสา\nหิงห้อย\nหิ่งห้อย\nหิ่งหาย\nหิด\nหิต\nหิตานุหิตประโยชน์\nหิน\nหิมพาน\nหิมพานต์\nหิมวัต\nหิมวันต์\nหิมวา\nหิมะ\nหิมาลัย\nหิรัญ\nหิรัญญิการ์\nหิรัญบัฏ\nหิรัณย์\nหิรัณยรัศมี\nหิริ\nหิว\nหิ้ว\nหี\nหีด\nหีนยาน\nหีบ\nหึ\nหึง\nหึ่ง\nหึงสา\nหืด\nหืน\nหื่น\nหือ\nหื้อ\nหุง\nหุน\nหุ่น\nหุ้น\nหุนหัน\nหุบ\nหุ้ม\nหุยฮา\nหู\nหู่\nหูก\nหูด\nเห\nเห่\nเหง\nเหง่ง\nเหงา\nเหง้า\nเหงื่อ\nเหงือก\nเห็จ\nเห็ด\nเหติ\nเหตุ\nเห็น\nเหน่ง\nเหนงนายพราน\nเหน็ดเหนื่อย\nเหน็บ\nเหน่อ\nเห็นอ้ม\nเหนอะ\nเหนอะหนะ\nเหน้า\nเหนาะ\nเหนียง\nเหนี่ยง\nเหนี่ยน\nเหนียม\nเหนียว\nเหนี่ยว\nเหนือ\nเหนื่อย\nเห็บ\nเหม\nเหม่\nเหม็ง\nเหม่ง\nเหม็น\nเหมวดี\nเหม่อ\nเหมันต์\nเหมันตฤดู\nเหมา\nเหมายัน\nเหมาะ\nเหมียว\nเหมี่ยว\nเหมือง\nเหมือด\nเหมือน\nเหมื่อย\nเหย\nเหยง\nเหย่อย\nเหยา\nเหย่า\nเหย้า\nเหยาะ\nเหยาะแหยะ\nเหยิง\nเหยิบ\nเหยียด\nเหยียบ\nเหยี่ยว\nเหยื่อ\nเหยือก\nเหรอ\nเหรอะ\nเหรัญญิก\nเหรา\nเหราะ\nเหรียญ\nเหล่\nเหล็ก\nเหลน\nเหลว\nเหลอ\nเหลา\nเหล่า\nเหล้า\nเหลาะแหละ\nเหลิง\nเหลิงเจิ้ง\nเหลียน\nเหลี่ยม\nเหลียว\nเหลือ\nเหลือก\nเหลือง\nเหลือบ\nเหลือม\nเหลื่อม\nเหว\nเหว่\nเหวง\nเหวย\nเหวอะ\nเหวอะหวะ\nเหวี่ยง\nเห่อ\nเหอะ\nเหะ\nเหะหะ\nเหา\nเห่า\nเหาะ\nเหิน\nเหิม\nเหี้ย\nเหียง\nเหียน\nเหี้ยน\nเหี้ยม\nเหี่ยว\nเหื่อ\nเหือด\nแห\nแห่\nแห้\nแหก\nแหง\nแหง่\nแห่ง\nแห้ง\nแหงแก๋\nแหง่ง\nแหงน\nแหน\nแห้น\nแหนง\nแหนบ\nแหนม\nแหบ\nแหม\nแหม่\nแหม่ม\nแหมะ\nแหย\nแหย่\nแหยง\nแหย่ง\nแหยม\nแหย็ม\nแหยะ\nแหล่\nแหลก\nแหล่ง\nแหลน\nแหลม\nแหละ\nแหว\nแห้ว\nแหวก\nแหว่ง\nแหวด\nแหวน\nแหวะ\nแหะ\nโห่\nโหง\nโหด\nโหน\nโหนก\nโหน่ง\nโหม\nโหม่ง\nโหมด\nโหย\nโหยกเหยก\nโหยง\nโหย่ง\nโหร\nโหรง\nโหรงเหรง\nโหรดาจารย์\nโหระพา\nโหรา\nโหราจารย์\nโหราศาสตร์\nโหล\nโหล่\nโหลงโจ้ง\nโหว\nโหว่\nโหว้\nโหวกเหวก\nโหวง\nโหวด\nโหวต\nให้\nใหญ่\nใหม่\nไห\nไห่\nไห้\nไหน\nไหม\nไหม้\nไหรณย์\nไหล\nไหล่\nไหว\nไหว้\nไหหลำ\nอก\nอกตเวทิตา\nอกตเวที\nอกตัญญุตา\nอกตัญญู\nอกนิษฐ์\nอกรณีย์\nอกรรมกริยา\nอกัปปิยวัตถุ\nอกัปปิยะ\nอกุศล\nอคติ\nอคาธ\nอโฆษะ\nองก์\nองค์\nองคชาต\nองคมนตรี\nองครักษ์\nองคาพยพ\nองคุลี\nองศ์\nองศา\nองอาจ\nองุ่น\nอจลา\nอจินตา\nอจินไตย\nอจิระ\nอเจลก\nอเจละ\nอชะ\nอชิน\nอชินี\nอชิระ\nอฏวี\nอณิ\nอณู\nอโณทัย\nอด\nอดิถี\nอดิเทพ\nอดิเรก\nอดิศร\nอดิศวร\nอดิศัย\nอดีต\nอดุล\nอดุลย์\nอติ\nอติชาต\nอติมานะ\nอติราช\nอติเรก\nอติสาร\nอถรรพเวท\nอาถรรพเวท\nอทระ\nอทินนาทาน\nอธรรม\nอธิ\nอธิกมาส\nอธิกรณ์\nอธิกวาร\nอธิกสุรทิน\nอธิการ\nอธิคม\nอธิฏฐาน\nอธิบดี\nอธิบาย\nอธิป\nอธิปไตย\nอธิมาตร\nอธิมุตติ\nอธิโมกข์\nอธิราช\nอธิวาส\nอธิวาสนะ\nอธิศีล\nอธิษฐาน\nอธึก\nอ้น\nอนงค์\nอนงคณะ\nอนงคเลขา\nอนธการ\nอนนต์\nอนยะ\nอนรรฆ\nอนรรถ\nอนล\nอนวัช\nอนัญ\nอนัตตา\nอนันต์\nอนันตริยกรรม\nอนัม\nอนาคต\nอนาคามิผล\nอนาคามิมรรค\nอนาคามี\nอนาจาร\nอนาถ\nอนาถา\nอนาทร\nอนาธิปไตย\nอนามัย\nอนามิกา\nอนารยชน\nอนารยธรรม\nอนารยะ\nอนาลัย\nอนำ\nอนิจ\nอนิจจัง\nอนิจจา\nอนิฏฐารมณ์\nอนิยต\nอนิยม\nอนิล\nอนิวรรต\nอนิวรรตน์\nอนีกะ\nอนีจะ\nอนึก\nอนึ่ง\nอนุ\nอนุกร\nอนุกรม\nอนุกรรมการ\nอนุกระเบียด\nอนุกาชาด\nอนุการ\nอนุกูล\nอนุคามิก\nอนุเคราะห์\nอนุจร\nอนุช\nอนุชน\nอนุชา\nอนุชาต\nอนุชิต\nอนุญาต\nอนุญาโตตุลาการ\nอนุตร\nอนุเถระ\nอนุทิน\nอนุบท\nอนุบาล\nอนุประโยค\nอนุปริญญา\nอนุปสัมบัน\nอนุปัสนา\nอนุพงศ์\nอนุพัทธ์\nอนุพันธ์\nอนุโพธ\nอนุภรรยา\nอนุภริยา\nอนุภาค\nอนุภาษ\nอนุมัติ\nอนุมาตรา\nอนุมาน\nอนุมูล\nอนุโมทนา\nอนุโยค\nอนุรักษ์\nอนุรักษนิยม\nอนุราช\nอนุราธ\nอนุราธะ\nอนุราธา\nอนุรูป\nอนุโลม\nอนุวงศ์\nอนุวรรตน์\nอนุวัต\nอนุวัตน์\nอนุวัตร\nอนุวัติ\nอนุวาต\nอนุศาสก\nอนุศาสน์\nอนุศาสนาจารย์\nอนุศิษฏ์\nอนุสติ\nอนุสนธิ\nอนุสร\nอนุสรณ์\nอนุสัญญา\nอนุสัย\nอนุสาวรีย์\nอนุสาสนี\nอเนก\nอเนกคุณ\nอเนกรรถประโยค\nอเนจอนาถ\nอโนชา\nอโนดาต\nอบ\nอบเชย\nอบาย\nอปจายนธรรม\nอปจายนมัย\nอปมงคล\nอปยศ\nอประไมย\nอปรัณณชาติ\nอปรา\nอปราชัย\nอปราชิต\nอปริมาณ\nอปลักษณ์\nอปโลกน์\nอปวาท\nอเปหิ\nอพพะ\nอพยพ\nอภัพ\nอภัย\nอภิ\nอภิฆาต\nอภิชฌา\nอภิชน\nอภิชนาธิปไตย\nอภิชัย\nอภิชาต\nอภิชิต\nอภิญญา\nอภิญญาณ\nอภิธรรม\nอภิธาน\nอภิไธย\nอภินันท์\nอภินันทนาการ\nอภินัย\nอภินิหาร\nอภิเนษกรมณ์\nอภิบาล\nอภิปรัชญา\nอภิปราย\nอภิมหาอำนาจ\nอภิมานะ\nอภิมุข\nอภิรดี\nอภิรติ\nอภิรมย์\nอภิรักษ์\nอภิราม\nอภิรุต\nอภิรุม\nอภิรูป\nอภิลักขิต\nอภิลักขิตสมัย\nอภิเลปน์\nอภิวันท์\nอภิวาท\nอภิวาทน์\nอภิเษก\nอภิสมโพธิ\nอภิสมัย\nอภิสมาจาร\nอภิสัมโพธิ\nอภิสัมโพธิญาณ\nอภิสิต\nอภิสิทธิ์\nอภูตะ\nอม\nอมพะนำ\nอ้ม\nอมตธรรม\nอมตบท\nอมตะ\nอมนุษย์\nอมร\nอมรา\nอมราวดี\nอมรินทร์\nอมเรนทร์\nอมเรศ\nอมฤต\nอมัตร\nอมาตย์\nอมาวสี\nอมาวสุ\nอมาวาสี\nอมิตร\nอเมริกัน\nอย่า\nอยาก\nอย่าง\nอยุทธ์\nอยู่\nอร\nอรชร\nอรชุน\nอรดี\nอรติ\nอรทัย\nอรไท\nอรนุช\nอรพินท์\nอรพิม\nอรรค\nอรรฆ\nอรรฆย์\nอรรจน์\nอรรณพ\nอรรถ\nอรรถกถา\nอรรถกถาจารย์\nอรรถาธิบาย\nอรรธ\nอรสุม\nอรหะ\nอรหัง\nอรหัต\nอรหัตผล\nอรหัตมรรค\nอรหัน\nอรหันต์\nอรหันตฆาต\nอร่อย\nอรัญ\nอรัญญิก\nอรัญวาส\nอรัญวาสี\nอรัณย์\nอราดี\nอร่าม\nอริ\nอรินทร์\nอริน\nอริยกะ\nอริยทรัพย์\nอริยบุคคล\nอริยผล\nอริยมรรค\nอริยสัจ\nอริยะ\nอรุณ\nอรุโณทัย\nอรุ่ม\nอรูป\nอลงกต\nอลงกรณ์\nอลงการ\nอลวน\nอลเวง\nอลหม่าน\nอล่องฉ่อง\nอลักเอลื่อ\nอลังการ\nอลัชชี\nอล่างฉ่าง\nอลิงค์\nอลึงค์\nอลึ่งฉึ่ง\nอโลหะ\nอ้วก\nอวกาศ\nอวจร\nอวชัย\nอวชาต\nอวด\nอวตาร\nอวน\nอ้วน\nอวบ\nอวมงคล\nอวย\nอวยวะ\nอวรรค\nอวรุทธ์\nอวรุทธก\nอวล\nอวสาน\nอวหาร\nอวัยวะ\nอวัสดา\nอวาจี\nอวิจี\nอวิชชา\nอวิญญาณกทรัพย์\nอวิญญู\nอวิรุทธ์\nอวิโรธน์\nอวิโรธนะ\nอวิหิงสา\nอวีจิ\nอเวจี\nอโศก\nอสงไขย\nอสนี\nอัสนี\nอสนีบาต\nอสภะ\nอสมการ\nอสมมาตร\nอสรพิษ\nอสังหาริมทรัพย์\nอสังหาริมะ\nอสัญกรรม\nอสัญญี\nอสัญแดหวา\nอสัตถพฤกษ์\nอัสสัตถพฤกษ์\nอสัตย์\nอสัมภิน\nอสัมภินพงศ์\nอสัมภินวงศ์\nอสิ\nอสิธารา\nอสิต\nอสิเลสะ\nอสีตยานุพยัญชนะ\nอสีติ\nอสุ\nอสุจิ\nอสุนีบาต\nอสุภ\nอสุรกาย\nอสุรา\nอสุรี\nอสุเรศ\nอสูร\nอเสกขบุคคล\nอเสกขะ\nอเสขบุคคล\nอเสขะ\nอหังการ\nอหิ\nอหิงสา\nอหิวาต์\nอหิวาตกโรค\nอหึงสา\nอเหตุกทิฐิ\nอโหสิ\nออ\nอ้อ\nอ๋อ\nออก\nออกซิเจน\nออกซิเดชัน\nออกไซด์\nออกญา\nอ่อง\nอ๋อง\nอ้องแอ้ง\nออเซาะ\nออด\nอ๊อด\nอ๊อดแอ๊ด\nอ่อน\nอ้อน\nออนซ์\nออนซอน\nอ้อนแอ้น\nออฟฟิศ\nออม\nอ่อม\nอ้อม\nออมชอม\nออมซอม\nอ้อมแอ้ม\nอ่อย\nอ้อย\nอ๋อย\nอ้อยส้อย\nอ้อยอิ่ง\nออสเมียม\nอ้อแอ้\nอ๊ะ\nอะคร้าว\nอะเคื้อ\nอะแจ\nอะเซทิลีน\nอะดรีนาลิน\nอะดุง\nอะตอม\nอะมีบา\nอะเมริเซียม\nอะร้าอร่าม\nอะไร\nอะลุ่มอล่วย\nอะลุ้มอล่วย\nอะลูมิเนียม\nอะหม\nอะไหล่\nอัก\nอั้ก\nอั๊ก\nอักกะ\nอักโกธะ\nอักขรวิธี\nอักขรวิบัติ\nอักขรสมัย\nอักขระ\nอักขรานุกรม\nอักขะ\nอักโข\nอักโขภิณี\nอักโขเภณี\nอักษร\nอักษะ\nอักเษาหิณี\nอักเสบ\nอักอ่วน\nอัคคะ\nอัคคิ\nอัคคี\nอัคนิ\nอัคนี\nอัคร\nอัครชายา\nอัครมเหสี\nอัครราชทูต\nอัครสมณทูต\nอัง\nอังก์\nอังกนะ\nอังกฤษ\nอังกะลุง\nอังกา\nอังกาบ\nอังกุระ\nอังกุศ\nอังกูร\nอังคณะ\nอังคณา\nอังคาร\nอังคาส\nอังคีรส\nอังคุฐ\nอังคุตรนิกาย\nอังฆาต\nอังแพลม\nอั้งยี่\nอั้งโล่\nอังศุ\nอังศุก\nอังศุธร\nอังศุมาลี\nอังสกุฏ\nอังสตรอม\nอังสนา\nอังสภาระ\nอังสะ\nอังสา\nอัจกลับ\nอัจจิ\nอัจจิมา\nอัจจุตะ\nอัจฉรา\nอัจฉริยบุคคล\nอัจฉริยภาพ\nอัจฉริยลักษณ์\nอัจฉริยลักษณะ\nอัจฉริยะ\nอัจนา\nอัชฌัตติก\nอัชฌา\nอัชฌาจาร\nอัชฌาศัย\nอัชฌาสัย\nอัญเดียรถีย์\nอัญมณี\nอัญขยม\nอัญชนะ\nอัญชลี\nอัญชัน\nอัญชุลี\nอัญเชิญ\nอัญญะ\nอัญดิตถีย์\nอัญเดียรถีย์\nอัญประกาศ\nอัญรูป\nอัฏ\nอัฏฐบาน\nอัฏฐะ\nอัฏฐังคิกมรรค\nอัฏนา\nอัฐ\nอัฐฬส\nอัฐเคราะห์\nอัฐทิศ\nอัฐบริขาร\nอัฐบาน\nอัฐม\nอัฐมี\nอัฐศก\nอัฐิ\nอัฒจันทร์\nอัฒภาค\nอัฒมาส\nอัฒรัตติ\nอัณฑโกส\nอัณฑชะ\nอัณฑะ\nอัณณพ\nอัด\nอัดแจ\nอัต\nอัตชีวประวัติ\nอัตนัย\nอัตภาพ\nอัตวินิบาตกรรม\nอัตคัด\nอัตตโนบท\nอัตตา\nอัตตาธิปไตย\nอัตถ์\nอัตถะ\nอัตโนมัติ\nอัตรชะ\nอัตรา\nอัตลัด\nอัททา\nอัทธ์\nอัทธา\nอัทธาน\nอัทธายุ\nอัธยาตมวิทยา\nอัธยาย\nอัธยาศัย\nอัน\nอั้น\nอั๋น\nอันดร\nอันดับ\nอันตกะ\nอันตกาล\nอันตะ\nอันตคุณ\nอันตรภาค\nอันตรวาสก\nอันตรธาน\nอันตรา\nอันตราย\nอันตรายิกธรรม\nอันติกะ\nอันติมสัจ\nอันติมะ\nอันเต\nอันโต\nอันเตปุริก\nอันเตวาสิก\nอันแถ้ง\nอันโทล\nอันธการ\nอันธพาล\nอันธิกา\nอันเวส\nอับ\nอับปาง\nอัปปะ\nอัปเปหิ\nอัปภาคย์\nอัปมงคล\nอัปยศ\nอัประมาณ\nอัประไมย\nอัปราชัย\nอัปรีย์\nอัปลักษณ์\nอัปสร\nอัพพุท\nอัพโพหาริก\nอัพภันดร\nอัพภาน\nอัพภาส\nอัพภูตธรรม\nอัพยากฤต\nอัมพฤกษ์\nอัมพาต\nอัมพวัน\nอัมพวา\nอัมพร\nอัมพา\nอัมพิละ\nอัมพุ\nอัมพุช\nอัมพุชินี\nอัมพุท\nอัยกา\nอัยการ\nอัยกี\nอัยยะ\nอัยยิกา\nอัลกุรอาน\nอัลตราไวโอเลต\nอั่ว\nอัศจรรย์\nอัศเจรีย์\nอัศว\nอัศวเมธ\nอัศวยุช\nอัศวานึก\nอัศวิน\nอัศวินี\nอัษฎมงคล\nอัษฏมงคล\nอัษฎางคิกมรรค\nอัษฎายุธ\nอัษฎาวุธ\nอัสสะ\nอัสดร\nอัสกัณ\nอัสดง\nอัสดงคต\nอัสมิมานะ\nอัสสนี\nอัสสานึก\nอัสสาสะ\nอัสสุ\nอา\nอ่า\nอ้า\nอ๋า\nอากร\nอากังขา\nอากัป\nอาการ\nอากาศ\nอากูล\nอาเกียรณ์\nอาขยาต\nอาขยาน\nอาคเนย์\nอาคม\nอาครหายณี\nอาคันตุกะ\nอาคันตุกภัต\nอาคันตุกวัตร\nอาคาร\nอาฆาต\nอ่าง\nอ้าง\nอางขนาง\nอ้างว้าง\nอาจ\nอาจม\nอาจริยวัตร\nอาจริยวาท\nอาจาด\nอาจาร\nอาจารย์\nอาจารี\nอาจิณ\nอาเจียน\nอาชญา\nอาชวะ\nอาชา\nอาชาไนย\nอาชีพ\nอาชีวศึกษา\nอาชีวะ\nอาชีวก\nอาญา\nอาฏานา\nอาณัติ\nอาณา\nอาด\nอาดูร\nอาดุลย์\nอาดูลย์\nอาเด๊ะ\nอาตมภาพ\nอาตมัน\nอาตมา\nอาถรรพ์\nอาถรรพณ์\nอาทร\nอาทิ\nอาทิจจวาร\nอาทิตย์\nอาทิตยมณฑล\nอาทิตยวาร\nอาทีนพ\nอาทีนวะ\nอาทึก\nอาเทศ\nอาเทสนา\nอาธรรม\nอาธรรม์\nอาธาน\nอาธาร\nอาน\nอ่าน\nอานน\nอานนท์\nอานันท์\nอานันทนะ\nอานัม\nอานาปานะ\nอานาปานัสสติ\nอานิสงส์\nอานุภาพ\nอานุภาวะ\nอาบ\nอาบัติ\nอาบัน\nอาปณกะ\nอาปณะ\nอาปะ\nอาโป\nอาปานะ\nอาพัทธ์\nอาพันธ์\nอาพันธนะ\nอาพาธ\nอาเพศ\nอาภรณ์\nอาภัพ\nอาภัสระ\nอาภา\nอาภาส\nอามลกะ\nอามัย\nอามิษ\nอามิส\nอาย\nอ้าย\nอายตนะ\nอายตะ\nอายน\nอายัด\nอายัต\nอายัน\nอายาจนะ\nอายานะ\nอายุ\nอายุตกะ\nอายุธ\nอายุรกรรม\nอายุรแพทย์\nอายุรเวช\nอายุรเวท\nอายุศาสตร์\nอายุษ\nอาร์กอน\nอารดี\nอารติ\nอาร์ต\nอารทรา\nอาร์ม\nอารมณ์\nอารยชน\nอารยชาติ\nอารยธรรม\nอารยประเทศ\nอารยะ\nอารยัน\nอาระ\nอารักขา\nอารักษ์\nอารัญ\nอารัณย์\nอารัญญิก\nอารัณยกะ\nอารัติ\nอารัมภ์\nอารัมภกถา\nอารัมภบท\nอารัมภะ\nอาราธน์\nอาราธนา\nอาราม\nอารามิก\nอารี\nอารุม\nอาลปนะ\nอาละวาด\nอาลักษณ์\nอาลัย\nอาลัว\nอาลี\nอาโลก\nอาว\nอ่าว\nอ้าว\nอาวรณ์\nอาวัชนาการ\nอาวัล\nอาวาส\nอาวาสิก\nอาวาหมงคล\nอาวาหะ\nอาวุต\nอาวุธ\nอาวุโส\nอาเวค\nอาศรม\nอาศรมบท\nอาศเลษา\nอาศัย\nอาศิรพจน์\nอาศิรพาท\nอาศิรวาท\nอาศุ\nอาเศียรพจน์\nอาเศียรพาท\nอาเศียรวาท\nอาษาฒ\nอาสน\nอาสน์\nอาสนะ\nอาสนศาลา\nอาสัญ\nอาสัตย์\nอาสา\nอาสาฬห์\nอาสาฬหบูชา\nอาสาฬหะ\nอาสิญจ์\nอาสิน\nอาหม\nอาหรับ\nอาหาร\nอาฬหก\nอำ\nอ่ำ\nอ้ำ\nอำแดง\nอำนนต์\nอำนรรฆ\nอำนวย\nอำนาจ\nอำนาถ\nอำนิฐ\nอำนิษฐ์\nอำปลัง\nอำพน\nอำพล\nอำพะนำ\nอำพัน\nอำไพ\nอำเภอ\nอำมร\nอำมฤคโชค\nอำมฤต\nอำมหิต\nอำมาตย์\nอำมาตยาธิปไตย\nอำยวน\nอำรุง\nอำลา\nอำอวม\nอ้ำอึ้ง\nอิก\nอิง\nอิงค์\nอิงอร\nอิจฉา\nอิฉัน\nอิชยา\nอิฏฐารมณ์\nอิฐ\nอิฐผล\nอิด\nอิตถี\nอิตเทรียม\nอิตเทอร์เบียม\nอิติวุตตกะ\nอิทธิ\nอิน\nอินซูลิน\nอินเดีย\nอินเดียนแดง\nอินเดียม\nอินท์\nอินทขีล\nอินทนิล\nอินทผลัม\nอินทร์\nอินทรธนู\nอินทรวงศ์\nอินทรวิเชียร\nอินทรศักดิ์\nอินทราณี\nอินทราภิเษก\nอินทรายุธ\nอินทรี\nอินทรีย์\nอินทรียสังวร\nอินทีวร\nอินทุ\nอินฟราเรด\nอินัง\nอิ่ม\nอิมัลชัน\nอิริเดียม\nอิริยา\nอิริยาบถ\nอิรุพเพท\nอิเล็กตรอน\nอิเล็กทรอนิกส์\nอิเล็กโทน\nอิศร\nอิศวร\nอิษฏ์\nอิษฏี\nอิส\nอิสตรี\nอิสัตรี\nอิสรภาพ\nอิสระ\nอิสริยยศ\nอิสริยะ\nอิสริยาภรณ์\nอิสลาม\nอิสสา\nอิสิ\nอิสี\nอิหม่าม\nอิหลักอิเหลื่อ\nอี\nอี่\nอี้\nอี๊\nอี๋\nอี๋อ๋อ\nอีก\nอีก้อ\nอีก๋อย\nอีโก้ง\nอีจู้\nอี๊ด\nอีเต้อ\nอีโต้\nอีทุบ\nอีเทอร์\nอีนุงตุงนัง\nอีนูน\nอีโน\nอีแปะ\nอีโปง\nอีเพา\nอีมู\nอีรม\nอีลุ้ม\nอีลุ่ยฉุยแฉก\nอีเลิ้ง\nอีศ\nอีศวร\nอีส\nอีสาน\nอีสุกอีใส\nอีหรอบ\nอีหลักอีเหลื่อ\nอีหลี\nอีหลุกขลุกขลัก\nอีหลุกขลุกขลุ่ย\nอีเห็น\nอีเหน็บ\nอีเหนียว\nอีเหละเขละขละ\nอีเหละเขะขะ\nอีโหน่อีเหน่\nอีโหลกโขลกเขลก\nอีแอ่น\nอึ\nอึก\nอึ้ก\nอึ๊ก\nอึกทึก\nอึกอัก\nอึง\nอึ่ง\nอึ้ง\nอึด\nอึดตะปือ\nอึ้ดทึ่ด\nอึน\nอืด\nอื่น\nอื้น\nอือ\nอื้อ\nอื้อฮือ\nอุ\nอุก\nอุกกา\nอุกกาบาต\nอุกฤษฏ์\nอุกลาบาต\nอุค\nอุคระ\nอุคหนิมิต\nอุโฆษ\nอุ้ง\nอุจ\nอุจจาระ\nอุจฉุ\nอุจเฉท\nอุจเฉททิฐิ\nอุจาด\nอุชุ\nอุฏฐาการ\nอุณหภูมิ\nอุณหะ\nอุณหาหาร\nอุณหิส\nอุณา\nอุณาโลม\nอุด\nอุดเตา\nอุดม\nอุดมการณ์\nอุดมคติ\nอุดมศึกษา\nอุดร\nอุดหนุน\nอุตดม\nอุตตมะ\nอุตมภาพ\nอุตมางค์\nอุตดร\nอุตรกุรุทวีป\nอุตตรายัน\nอุตรนิกาย\nอุตรผลคุนี\nอุตตรผลคุนี\nอุตรภัทรบท\nอุตตรภัทรบท\nอุตตรภัททะ\nอุตราภิมุข\nอุตราวรรต\nอุตราวัฏ\nอุตราษาฒ\nอุตตราสาฬหะ\nอุตราสงค์\nอุตตานภาพ\nอุตพิด\nอุตรา\nอุตริ\nอุตริมนุสธรรม\nอุตลุด\nอุตส่าห์\nอุตสาหกรรม\nอุตสาหะ\nอุตุ\nอุตุนิยม\nอุตุนิยมวิทยา\nอุทก\nอุทกธาร\nอุทกธารา\nอุทกภัย\nอุทกวิทยา\nอุทกศาสตร์\nอุทธรณ์\nอุทธัจ\nอุทยาน\nอุทร\nอุทริยะ\nอุทลุม\nอุทัช\nอุทัย\nอุทาน\nอุทาร\nอุทาหรณ์\nอุทิศ\nอุทุมพร\nอุเทศ\nอุเทสิกเจดีย์\nอุธัจ\nอุ่น\nอุบ\nอุบล\nอุบะ\nอุบ๊ะ\nอุบัติ\nอุบาท\nอุบาทว์\nอุบาย\nอุบาสก\nอุบาสิกา\nอุเบกขา\nอุโบสถ\nอุปกรณ์\nอุปกรม\nอุปการ\nอุปการะ\nอุปการี\nอุปกิเลส\nอุปจาร\nอุปถัมภ์\nอุปถัมภก\nอุปทม\nอุปทูต\nอุปเทศ\nอุปเท่ห์\nอุปธิ\nอุปนัย\nอุปนิกขิต\nอุปนิษัท\nอุปนิสัย\nอุปบัติ\nอุปปาติกะ\nอุปพัทธ์\nอุปพันธ์\nอุปโภค\nอุปมา\nอุปมาน\nอุปไมย\nอุปยุวราช\nอุปรากร\nอุปราคา\nอุปราช\nอุปริ\nอุปริมปริยาย\nอุปโลกน์\nอุปเวท\nอุปสมบท\nอุปสมบัน\nอุปสัมบัน\nอุปสรรค\nอุปสัมปทา\nอุปฮาด\nอุปัชฌาย์\nอุปัชฌายวัตร\nอุปัชฌายะ\nอุปัฏฐาก\nอุปัฏฐานะ\nอุปัทวะ\nอุปัทวันตราย\nอุปาทาน\nอุปาหนา\nอุภัย\nอุ้ม\nอุมงค์\nอุโมงค์\nอุย\nอุ่ย\nอุ้ย\nอุ๊ย\nอุยยาน\nอุยยาม\nอุรณะ\nอุรพี\nอุระ\nอุรังอุตัง\nอุรัจฉัท\nอุรัจฉทะ\nอุรา\nอุรุ\nอุไร\nอุลกมณี\nอุลโลจ\nอุลามก\nอุลิด\nอุโลก\nอุแว้\nอุษณกร\nอุษณกาล\nอุษณรัศมี\nอุษณรุจี\nอุษณาการ\nอุษณีษ์\nอุษมะ\nอุษมัน\nอุษา\nอุษาโยค\nอุสภ\nอุสส่าห์\nอุสสาหะ\nอุสา\nอุสุ\nอุสุภ\nอุสุภราช\nอุสุม\nอุหรับ\nอุหลบ\nอุเหม่\nอุฬาร\nอู\nอู่\nอู้\nอูฐ\nอูด\nอูม\nอูย\nอูรุ\nอู๋อี๋\nเอ\nเอ้\nเอ๊\nเอก\nเอกเขนก\nเอกซเรย์\nเอกรรถประโยค\nเอกัคตา\nเอกังสพยากรณ์\nเอกังสวาที\nเอกา\nเอ้กา\nเอกาธิปไตย\nเอเคอร์\nเอง\nเอ็ง\nเอ๋ง\nเอ็ด\nเอ็ดตะโร\nเอดส์\nเอตทัคคะ\nเอ้เต\nเอทิล\nเอน\nเอ็น\nเอนไซม์\nเอ็นดู\nเอ็นอ่อน\nเอม\nเอ็มบริโอ\nเอย\nเอ่ย\nเอ๊ย\nเอ๋ย\nเอร็ดอร่อย\nเอราวัณ\nเอว\nเอ๊ว\nเอวัง\nเอฬกะ\nเอฬา\nเออ\nเอ่อ\nเออร์เบียม\nเอ้อระเหย\nเอ้อเร้อ\nเอ้อเฮอ\nเอ๊ะ\nเอะใจ\nเอะอะ\nเอะอะมะเทิ่ง\nเอา\nเอาทาร\nเอาทารย์\nเอารส\nเอาฬาร\nเอาะลาย\nเอิก\nเอิกเกริก\nเอิ้น\nเอิบ\nเอียง\nเอี้ยง\nเอียด\nเอี๊ยด\nเอียน\nเอี่ยน\nเอี่ยม\nเอี๊ยม\nเอี้ยมจุ๊น\nเอี้ยมเฟี้ยม\nเอี่ยว\nเอี้ยว\nเอื้อ\nเอื๊อก\nเอื้อง\nเอือด\nเอือน\nเอื้อน\nเอือม\nเอื้อม\nเอื่อย\nเอื้อย\nแอ\nแอ้\nแอ๋\nแอก\nแอกทิเนียม\nแอ่ง\nแอ้งแม้ง\nแอด\nแอ้ด\nแอ๊ด\nแอ่น\nแอนติเจน\nแอนติบอดี\nแอนติอิเล็กตรอน\nแอโนด\nแอบ\nแอม\nแอ้ม\nแอมแปร์\nแอมมิเตอร์\nแอมโมเนีย\nแอร่ม\nแอลกอฮอล์\nแอลฟา\nแอว\nแอ่ว\nแอ้วแซ่ว\nแอสทาทีน\nแอสไพริน\nแอสฟัลต์\nแอหนัง\nแออัด\nโอ\nโอ่\nโอ้\nโอ๋\nโอก\nโอ้ก\nโอ้กอ้าก\nโอ๊ก\nโอกาส\nโอฆชล\nโอฆสงสาร\nโอฆะ\nโอ่ง\nโองการ\nโองโขดง\nโอชะ\nโอชา\nโอโซน\nโอฐ\nโอด\nโอ๊ต\nโอตตัปปะ\nโอทนะ\nโอน\nโอบ\nโอปปาติกะ\nโอภา\nโอภาส\nโอม\nโอย\nโอ๊ย\nโอรส\nโอละพ่อ\nโอลิมปิก\nโอวาท\nโอษฐ์\nโอษฐชะ\nโอษฐภัย\nโอสถ\nโอห์ม\nโอหัง\nโอฬาร\nโอฬาริก\nโอฬารึก\nโอ้เอ้\nโอเอซิส\nโอ้โฮ\nไอ\nไอ้\nไอโซโทป\nไอน์สไตเนียม\nไอยรา\nไอยเรศ\nไอราพต\nไอราวัณ\nไอราวัต\nไอศกรีม\nไอศวรรย์\nไอศุริยสมบัติ\nไอศูรย์\nไอออน\nไอโอดีน\nฮกเกี้ยน\nฮด\nฮวงซุ้ย\nฮวน\nฮ้วนหมู\nฮวบ\nฮ่อ\nฮ้อ\nฮอกกี้\nฮอด\nฮ่อม\nฮ่อยจ๊อ\nฮอร์โมน\nฮอลแลนด์\nฮอลันดา\nฮะ\nฮะเบส\nฮะเรีย\nฮัก\nฮังเล\nฮัจญ์\nฮัจญะฮ์\nฮัจญี\nฮั่น\nฮั้ว\nฮา\nฮ้า\nฮ่างหลวง\nฮาจญ์\nฮาม\nฮาเร็ม\nฮาห์เนียม\nฮิจเราะห์\nฮินดู\nฮิปโปโปเตมัส\nฮิสทีเรีย\nฮีเลียม\nฮึ\nฮึก\nฮึด\nฮึดฮัด\nฮึ่ม\nฮึย\nฮึ่ย\nฮืดฮาด\nฮือ\nฮื่อ\nฮื้อ\nฮื้อฉี่\nฮุด\nฮุบ\nฮุยเลฮุย\nฮู้\nฮูก\nฮูม\nเฮ\nเฮฮา\nเฮกตาร์\nเฮกโตกรัม\nเฮกโตเมตร\nเฮกโตลิตร\nเฮง\nเฮ็ด\nเฮโมโกลบิน\nเฮย\nเฮ่ย\nเฮ้ย\nเฮโรอีน\nเฮลิคอปเตอร์\nเฮโล\nเฮละโล\nเฮ้ว\nเฮอ\nเฮ่อ\nเฮ้อ\nเฮอริเคน\nเฮิรตซ์\nเฮี้ยน\nเฮี้ยบ\nเฮี้ยว\nเฮือก\nเฮือน\nแฮ\nแฮ่\nแฮก\nแฮ่กึ๊น\nแฮนด์บอล\nแฮฟเนียม\nแฮม\nแฮะ\nโฮ\nโฮก\nโฮ่ง\nโฮ้ง\nโฮเต็ล\nโฮลเมียม\nโฮะ\nไฮ้\nไฮโกรมิเตอร์\nไฮดรา\nไฮโดร\nไฮโดรคาร์บอน\nไฮโดรเจน\nไฮโดรมิเตอร์\nไฮไฟ\nไฮโล\nไฮฮี\n"
+ .split(/[\r\n]+/)
+ .filter(function (w) {
+ return w.length > 1;
+ })
+ this.addWords(words, false)
+ }
+ if(finalize){
+ this.finalizeDict();
+ }
+ },
+
+ dictSeek: function (l, r, ch, strOffset, pos) {
+ var ans = null;
+ while (l <= r) {
+ var m = Math.floor((l + r) / 2),
+ dict_item = this.dict[m],
+ len = dict_item.length;
+ if (len <= strOffset) {
+ l = m + 1;
+ } else {
+ var ch_ = dict_item[strOffset];
+ if (ch_ < ch) {
+ l = m + 1;
+ } else if (ch_ > ch) {
+ r = m - 1;
+ } else {
+ ans = m;
+ if (pos == LEFT) {
+ r = m - 1;
+ } else {
+ l = m + 1;
+ }
+ }
+ }
+ }
+ return ans;
+ },
+
+ isFinal: function (acceptor) {
+ return this.dict[acceptor.l].length == acceptor.strOffset;
+ },
+
+ createAcceptor: function () {
+ return {
+ l: 0,
+ r: this.dict.length - 1,
+ strOffset: 0,
+ isFinal: false,
+ dict: this,
+ transit: function (ch) {
+ return this.dict.transit(this, ch);
+ },
+ isError: false,
+ tag: "DICT",
+ w: 1,
+ type: "DICT"
+ };
+ },
+
+ transit: function (acceptor, ch) {
+ var l = this.dictSeek(acceptor.l,
+ acceptor.r,
+ ch,
+ acceptor.strOffset,
+ LEFT);
+ if (l !== null) {
+ var r = this.dictSeek(l,
+ acceptor.r,
+ ch,
+ acceptor.strOffset,
+ RIGHT);
+ acceptor.l = l;
+ acceptor.r = r;
+ acceptor.strOffset++;
+ acceptor.isFinal = this.isFinal(acceptor);
+ } else {
+ acceptor.isError = true;
+ }
+ return acceptor;
+ },
+
+ sortuniq: function(a){
+ return a.sort().filter(function(item, pos, arr){
+ return !pos || item != arr[pos - 1];
+ })
+ },
+
+ flatten: function(a){
+ //[[1,2],[3]] -> [1,2,3]
+ return [].concat.apply([], a);
+ }
+};
+module.exports = WordcutDict;
+
+}).call(this,"/dist/tmp")
+},{"glob":16,"path":22}],3:[function(require,module,exports){
+var WordRule = {
+ createAcceptor: function(tag) {
+ if (tag["WORD_RULE"])
+ return null;
+
+ return {strOffset: 0,
+ isFinal: false,
+ transit: function(ch) {
+ var lch = ch.toLowerCase();
+ if (lch >= "a" && lch <= "z") {
+ this.isFinal = true;
+ this.strOffset++;
+ } else {
+ this.isError = true;
+ }
+ return this;
+ },
+ isError: false,
+ tag: "WORD_RULE",
+ type: "WORD_RULE",
+ w: 1};
+ }
+};
+
+var NumberRule = {
+ createAcceptor: function(tag) {
+ if (tag["NUMBER_RULE"])
+ return null;
+
+ return {strOffset: 0,
+ isFinal: false,
+ transit: function(ch) {
+ if (ch >= "0" && ch <= "9") {
+ this.isFinal = true;
+ this.strOffset++;
+ } else {
+ this.isError = true;
+ }
+ return this;
+ },
+ isError: false,
+ tag: "NUMBER_RULE",
+ type: "NUMBER_RULE",
+ w: 1};
+ }
+};
+
+var SpaceRule = {
+ tag: "SPACE_RULE",
+ createAcceptor: function(tag) {
+
+ if (tag["SPACE_RULE"])
+ return null;
+
+ return {strOffset: 0,
+ isFinal: false,
+ transit: function(ch) {
+ if (ch == " " || ch == "\t" || ch == "\r" || ch == "\n" ||
+ ch == "\u00A0" || ch=="\u2003"//nbsp and emsp
+ ) {
+ this.isFinal = true;
+ this.strOffset++;
+ } else {
+ this.isError = true;
+ }
+ return this;
+ },
+ isError: false,
+ tag: SpaceRule.tag,
+ w: 1,
+ type: "SPACE_RULE"};
+ }
+}
+
+var SingleSymbolRule = {
+ tag: "SINSYM",
+ createAcceptor: function(tag) {
+ return {strOffset: 0,
+ isFinal: false,
+ transit: function(ch) {
+ if (this.strOffset == 0 && ch.match(/^[\@\(\)\/\,\-\."`]$/)) {
+ this.isFinal = true;
+ this.strOffset++;
+ } else {
+ this.isError = true;
+ }
+ return this;
+ },
+ isError: false,
+ tag: "SINSYM",
+ w: 1,
+ type: "SINSYM"};
+ }
+}
+
+
+var LatinRules = [WordRule, SpaceRule, SingleSymbolRule, NumberRule];
+
+module.exports = LatinRules;
+
+},{}],4:[function(require,module,exports){
+var _ = require("underscore")
+ , WordcutCore = require("./wordcut_core");
+var PathInfoBuilder = {
+
+ /*
+ buildByPartAcceptors: function(path, acceptors, i) {
+ var
+ var genInfos = partAcceptors.reduce(function(genInfos, acceptor) {
+
+ }, []);
+
+ return genInfos;
+ }
+ */
+
+ buildByAcceptors: function(path, finalAcceptors, i) {
+ var self = this;
+ var infos = finalAcceptors.map(function(acceptor) {
+ var p = i - acceptor.strOffset + 1
+ , _info = path[p];
+
+ var info = {p: p,
+ mw: _info.mw + (acceptor.mw === undefined ? 0 : acceptor.mw),
+ w: acceptor.w + _info.w,
+ unk: (acceptor.unk ? acceptor.unk : 0) + _info.unk,
+ type: acceptor.type};
+
+ if (acceptor.type == "PART") {
+ for(var j = p + 1; j <= i; j++) {
+ path[j].merge = p;
+ }
+ info.merge = p;
+ }
+
+ return info;
+ });
+ return infos.filter(function(info) { return info; });
+ },
+
+ fallback: function(path, leftBoundary, text, i) {
+ var _info = path[leftBoundary];
+ if (text[i].match(/[\u0E48-\u0E4E]/)) {
+ if (leftBoundary != 0)
+ leftBoundary = path[leftBoundary].p;
+ return {p: leftBoundary,
+ mw: 0,
+ w: 1 + _info.w,
+ unk: 1 + _info.unk,
+ type: "UNK"};
+/* } else if(leftBoundary > 0 && path[leftBoundary].type !== "UNK") {
+ leftBoundary = path[leftBoundary].p;
+ return {p: leftBoundary,
+ w: 1 + _info.w,
+ unk: 1 + _info.unk,
+ type: "UNK"}; */
+ } else {
+ return {p: leftBoundary,
+ mw: _info.mw,
+ w: 1 + _info.w,
+ unk: 1 + _info.unk,
+ type: "UNK"};
+ }
+ },
+
+ build: function(path, finalAcceptors, i, leftBoundary, text) {
+ var basicPathInfos = this.buildByAcceptors(path, finalAcceptors, i);
+ if (basicPathInfos.length > 0) {
+ return basicPathInfos;
+ } else {
+ return [this.fallback(path, leftBoundary, text, i)];
+ }
+ }
+};
+
+module.exports = function() {
+ return _.clone(PathInfoBuilder);
+}
+
+},{"./wordcut_core":8,"underscore":25}],5:[function(require,module,exports){
+var _ = require("underscore");
+
+
+var PathSelector = {
+ selectPath: function(paths) {
+ var path = paths.reduce(function(selectedPath, path) {
+ if (selectedPath == null) {
+ return path;
+ } else {
+ if (path.unk < selectedPath.unk)
+ return path;
+ if (path.unk == selectedPath.unk) {
+ if (path.mw < selectedPath.mw)
+ return path
+ if (path.mw == selectedPath.mw) {
+ if (path.w < selectedPath.w)
+ return path;
+ }
+ }
+ return selectedPath;
+ }
+ }, null);
+ return path;
+ },
+
+ createPath: function() {
+ return [{p:null, w:0, unk:0, type: "INIT", mw:0}];
+ }
+};
+
+module.exports = function() {
+ return _.clone(PathSelector);
+};
+
+},{"underscore":25}],6:[function(require,module,exports){
+function isMatch(pat, offset, ch) {
+ if (pat.length <= offset)
+ return false;
+ var _ch = pat[offset];
+ return _ch == ch ||
+ (_ch.match(/[กข]/) && ch.match(/[ก-ฮ]/)) ||
+ (_ch.match(/[มบ]/) && ch.match(/[ก-ฮ]/)) ||
+ (_ch.match(/\u0E49/) && ch.match(/[\u0E48-\u0E4B]/));
+}
+
+var Rule0 = {
+ pat: "เหก็ม",
+ createAcceptor: function(tag) {
+ return {strOffset: 0,
+ isFinal: false,
+ transit: function(ch) {
+ if (isMatch(Rule0.pat, this.strOffset,ch)) {
+ this.isFinal = (this.strOffset + 1 == Rule0.pat.length);
+ this.strOffset++;
+ } else {
+ this.isError = true;
+ }
+ return this;
+ },
+ isError: false,
+ tag: "THAI_RULE",
+ type: "THAI_RULE",
+ w: 1};
+ }
+};
+
+var PartRule = {
+ createAcceptor: function(tag) {
+ return {strOffset: 0,
+ patterns: [
+ "แก", "เก", "ก้", "กก์", "กา", "กี", "กิ", "กืก"
+ ],
+ isFinal: false,
+ transit: function(ch) {
+ var offset = this.strOffset;
+ this.patterns = this.patterns.filter(function(pat) {
+ return isMatch(pat, offset, ch);
+ });
+
+ if (this.patterns.length > 0) {
+ var len = 1 + offset;
+ this.isFinal = this.patterns.some(function(pat) {
+ return pat.length == len;
+ });
+ this.strOffset++;
+ } else {
+ this.isError = true;
+ }
+ return this;
+ },
+ isError: false,
+ tag: "PART",
+ type: "PART",
+ unk: 1,
+ w: 1};
+ }
+};
+
+var ThaiRules = [Rule0, PartRule];
+
+module.exports = ThaiRules;
+
+},{}],7:[function(require,module,exports){
+var sys = require("sys")
+ , WordcutDict = require("./dict")
+ , WordcutCore = require("./wordcut_core")
+ , PathInfoBuilder = require("./path_info_builder")
+ , PathSelector = require("./path_selector")
+ , Acceptors = require("./acceptors")
+ , latinRules = require("./latin_rules")
+ , thaiRules = require("./thai_rules")
+ , _ = require("underscore");
+
+
+var Wordcut = Object.create(WordcutCore);
+Wordcut.defaultPathInfoBuilder = PathInfoBuilder;
+Wordcut.defaultPathSelector = PathSelector;
+Wordcut.defaultAcceptors = Acceptors;
+Wordcut.defaultLatinRules = latinRules;
+Wordcut.defaultThaiRules = thaiRules;
+Wordcut.defaultDict = WordcutDict;
+
+
+Wordcut.initNoDict = function(dict_path) {
+ var self = this;
+ self.pathInfoBuilder = new self.defaultPathInfoBuilder;
+ self.pathSelector = new self.defaultPathSelector;
+ self.acceptors = new self.defaultAcceptors;
+ self.defaultLatinRules.forEach(function(rule) {
+ self.acceptors.creators.push(rule);
+ });
+ self.defaultThaiRules.forEach(function(rule) {
+ self.acceptors.creators.push(rule);
+ });
+};
+
+Wordcut.init = function(dict_path, withDefault, additionalWords) {
+ withDefault = withDefault || false;
+ this.initNoDict();
+ var dict = _.clone(this.defaultDict);
+ dict.init(dict_path, withDefault, additionalWords);
+ this.acceptors.creators.push(dict);
+};
+
+module.exports = Wordcut;
+
+},{"./acceptors":1,"./dict":2,"./latin_rules":3,"./path_info_builder":4,"./path_selector":5,"./thai_rules":6,"./wordcut_core":8,"sys":28,"underscore":25}],8:[function(require,module,exports){
+var WordcutCore = {
+
+ buildPath: function(text) {
+ var self = this
+ , path = self.pathSelector.createPath()
+ , leftBoundary = 0;
+ self.acceptors.reset();
+ for (var i = 0; i < text.length; i++) {
+ var ch = text[i];
+ self.acceptors.transit(ch);
+
+ var possiblePathInfos = self
+ .pathInfoBuilder
+ .build(path,
+ self.acceptors.getFinalAcceptors(),
+ i,
+ leftBoundary,
+ text);
+ var selectedPath = self.pathSelector.selectPath(possiblePathInfos)
+
+ path.push(selectedPath);
+ if (selectedPath.type !== "UNK") {
+ leftBoundary = i;
+ }
+ }
+ return path;
+ },
+
+ pathToRanges: function(path) {
+ var e = path.length - 1
+ , ranges = [];
+
+ while (e > 0) {
+ var info = path[e]
+ , s = info.p;
+
+ if (info.merge !== undefined && ranges.length > 0) {
+ var r = ranges[ranges.length - 1];
+ r.s = info.merge;
+ s = r.s;
+ } else {
+ ranges.push({s:s, e:e});
+ }
+ e = s;
+ }
+ return ranges.reverse();
+ },
+
+ rangesToText: function(text, ranges, delimiter) {
+ return ranges.map(function(r) {
+ return text.substring(r.s, r.e);
+ }).join(delimiter);
+ },
+
+ cut: function(text, delimiter) {
+ var path = this.buildPath(text)
+ , ranges = this.pathToRanges(path);
+ return this
+ .rangesToText(text, ranges,
+ (delimiter === undefined ? "|" : delimiter));
+ },
+
+ cutIntoRanges: function(text, noText) {
+ var path = this.buildPath(text)
+ , ranges = this.pathToRanges(path);
+
+ if (!noText) {
+ ranges.forEach(function(r) {
+ r.text = text.substring(r.s, r.e);
+ });
+ }
+ return ranges;
+ },
+
+ cutIntoArray: function(text) {
+ var path = this.buildPath(text)
+ , ranges = this.pathToRanges(path);
+
+ return ranges.map(function(r) {
+ return text.substring(r.s, r.e)
+ });
+ }
+};
+
+module.exports = WordcutCore;
+
+},{}],9:[function(require,module,exports){
+// http://wiki.commonjs.org/wiki/Unit_Testing/1.0
+//
+// THIS IS NOT TESTED NOR LIKELY TO WORK OUTSIDE V8!
+//
+// Originally from narwhal.js (http://narwhaljs.org)
+// Copyright (c) 2009 Thomas Robinson <280north.com>
+//
+// Permission is hereby granted, free of charge, to any person obtaining a copy
+// of this software and associated documentation files (the 'Software'), to
+// deal in the Software without restriction, including without limitation the
+// rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
+// sell copies of the Software, and to permit persons to whom the Software is
+// furnished to do so, subject to the following conditions:
+//
+// The above copyright notice and this permission notice shall be included in
+// all copies or substantial portions of the Software.
+//
+// THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+// AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
+// ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+
+// when used in node, this will actually load the util module we depend on
+// versus loading the builtin util module as happens otherwise
+// this is a bug in node module loading as far as I am concerned
+var util = require('util/');
+
+var pSlice = Array.prototype.slice;
+var hasOwn = Object.prototype.hasOwnProperty;
+
+// 1. The assert module provides functions that throw
+// AssertionError's when particular conditions are not met. The
+// assert module must conform to the following interface.
+
+var assert = module.exports = ok;
+
+// 2. The AssertionError is defined in assert.
+// new assert.AssertionError({ message: message,
+// actual: actual,
+// expected: expected })
+
+assert.AssertionError = function AssertionError(options) {
+ this.name = 'AssertionError';
+ this.actual = options.actual;
+ this.expected = options.expected;
+ this.operator = options.operator;
+ if (options.message) {
+ this.message = options.message;
+ this.generatedMessage = false;
+ } else {
+ this.message = getMessage(this);
+ this.generatedMessage = true;
+ }
+ var stackStartFunction = options.stackStartFunction || fail;
+
+ if (Error.captureStackTrace) {
+ Error.captureStackTrace(this, stackStartFunction);
+ }
+ else {
+ // non v8 browsers so we can have a stacktrace
+ var err = new Error();
+ if (err.stack) {
+ var out = err.stack;
+
+ // try to strip useless frames
+ var fn_name = stackStartFunction.name;
+ var idx = out.indexOf('\n' + fn_name);
+ if (idx >= 0) {
+ // once we have located the function frame
+ // we need to strip out everything before it (and its line)
+ var next_line = out.indexOf('\n', idx + 1);
+ out = out.substring(next_line + 1);
+ }
+
+ this.stack = out;
+ }
+ }
+};
+
+// assert.AssertionError instanceof Error
+util.inherits(assert.AssertionError, Error);
+
+function replacer(key, value) {
+ if (util.isUndefined(value)) {
+ return '' + value;
+ }
+ if (util.isNumber(value) && !isFinite(value)) {
+ return value.toString();
+ }
+ if (util.isFunction(value) || util.isRegExp(value)) {
+ return value.toString();
+ }
+ return value;
+}
+
+function truncate(s, n) {
+ if (util.isString(s)) {
+ return s.length < n ? s : s.slice(0, n);
+ } else {
+ return s;
+ }
+}
+
+function getMessage(self) {
+ return truncate(JSON.stringify(self.actual, replacer), 128) + ' ' +
+ self.operator + ' ' +
+ truncate(JSON.stringify(self.expected, replacer), 128);
+}
+
+// At present only the three keys mentioned above are used and
+// understood by the spec. Implementations or sub modules can pass
+// other keys to the AssertionError's constructor - they will be
+// ignored.
+
+// 3. All of the following functions must throw an AssertionError
+// when a corresponding condition is not met, with a message that
+// may be undefined if not provided. All assertion methods provide
+// both the actual and expected values to the assertion error for
+// display purposes.
+
+function fail(actual, expected, message, operator, stackStartFunction) {
+ throw new assert.AssertionError({
+ message: message,
+ actual: actual,
+ expected: expected,
+ operator: operator,
+ stackStartFunction: stackStartFunction
+ });
+}
+
+// EXTENSION! allows for well behaved errors defined elsewhere.
+assert.fail = fail;
+
+// 4. Pure assertion tests whether a value is truthy, as determined
+// by !!guard.
+// assert.ok(guard, message_opt);
+// This statement is equivalent to assert.equal(true, !!guard,
+// message_opt);. To test strictly for the value true, use
+// assert.strictEqual(true, guard, message_opt);.
+
+function ok(value, message) {
+ if (!value) fail(value, true, message, '==', assert.ok);
+}
+assert.ok = ok;
+
+// 5. The equality assertion tests shallow, coercive equality with
+// ==.
+// assert.equal(actual, expected, message_opt);
+
+assert.equal = function equal(actual, expected, message) {
+ if (actual != expected) fail(actual, expected, message, '==', assert.equal);
+};
+
+// 6. The non-equality assertion tests for whether two objects are not equal
+// with != assert.notEqual(actual, expected, message_opt);
+
+assert.notEqual = function notEqual(actual, expected, message) {
+ if (actual == expected) {
+ fail(actual, expected, message, '!=', assert.notEqual);
+ }
+};
+
+// 7. The equivalence assertion tests a deep equality relation.
+// assert.deepEqual(actual, expected, message_opt);
+
+assert.deepEqual = function deepEqual(actual, expected, message) {
+ if (!_deepEqual(actual, expected)) {
+ fail(actual, expected, message, 'deepEqual', assert.deepEqual);
+ }
+};
+
+function _deepEqual(actual, expected) {
+ // 7.1. All identical values are equivalent, as determined by ===.
+ if (actual === expected) {
+ return true;
+
+ } else if (util.isBuffer(actual) && util.isBuffer(expected)) {
+ if (actual.length != expected.length) return false;
+
+ for (var i = 0; i < actual.length; i++) {
+ if (actual[i] !== expected[i]) return false;
+ }
+
+ return true;
+
+ // 7.2. If the expected value is a Date object, the actual value is
+ // equivalent if it is also a Date object that refers to the same time.
+ } else if (util.isDate(actual) && util.isDate(expected)) {
+ return actual.getTime() === expected.getTime();
+
+ // 7.3 If the expected value is a RegExp object, the actual value is
+ // equivalent if it is also a RegExp object with the same source and
+ // properties (`global`, `multiline`, `lastIndex`, `ignoreCase`).
+ } else if (util.isRegExp(actual) && util.isRegExp(expected)) {
+ return actual.source === expected.source &&
+ actual.global === expected.global &&
+ actual.multiline === expected.multiline &&
+ actual.lastIndex === expected.lastIndex &&
+ actual.ignoreCase === expected.ignoreCase;
+
+ // 7.4. Other pairs that do not both pass typeof value == 'object',
+ // equivalence is determined by ==.
+ } else if (!util.isObject(actual) && !util.isObject(expected)) {
+ return actual == expected;
+
+ // 7.5 For all other Object pairs, including Array objects, equivalence is
+ // determined by having the same number of owned properties (as verified
+ // with Object.prototype.hasOwnProperty.call), the same set of keys
+ // (although not necessarily the same order), equivalent values for every
+ // corresponding key, and an identical 'prototype' property. Note: this
+ // accounts for both named and indexed properties on Arrays.
+ } else {
+ return objEquiv(actual, expected);
+ }
+}
+
+function isArguments(object) {
+ return Object.prototype.toString.call(object) == '[object Arguments]';
+}
+
+function objEquiv(a, b) {
+ if (util.isNullOrUndefined(a) || util.isNullOrUndefined(b))
+ return false;
+ // an identical 'prototype' property.
+ if (a.prototype !== b.prototype) return false;
+ // if one is a primitive, the other must be same
+ if (util.isPrimitive(a) || util.isPrimitive(b)) {
+ return a === b;
+ }
+ var aIsArgs = isArguments(a),
+ bIsArgs = isArguments(b);
+ if ((aIsArgs && !bIsArgs) || (!aIsArgs && bIsArgs))
+ return false;
+ if (aIsArgs) {
+ a = pSlice.call(a);
+ b = pSlice.call(b);
+ return _deepEqual(a, b);
+ }
+ var ka = objectKeys(a),
+ kb = objectKeys(b),
+ key, i;
+ // having the same number of owned properties (keys incorporates
+ // hasOwnProperty)
+ if (ka.length != kb.length)
+ return false;
+ //the same set of keys (although not necessarily the same order),
+ ka.sort();
+ kb.sort();
+ //~~~cheap key test
+ for (i = ka.length - 1; i >= 0; i--) {
+ if (ka[i] != kb[i])
+ return false;
+ }
+ //equivalent values for every corresponding key, and
+ //~~~possibly expensive deep test
+ for (i = ka.length - 1; i >= 0; i--) {
+ key = ka[i];
+ if (!_deepEqual(a[key], b[key])) return false;
+ }
+ return true;
+}
+
+// 8. The non-equivalence assertion tests for any deep inequality.
+// assert.notDeepEqual(actual, expected, message_opt);
+
+assert.notDeepEqual = function notDeepEqual(actual, expected, message) {
+ if (_deepEqual(actual, expected)) {
+ fail(actual, expected, message, 'notDeepEqual', assert.notDeepEqual);
+ }
+};
+
+// 9. The strict equality assertion tests strict equality, as determined by ===.
+// assert.strictEqual(actual, expected, message_opt);
+
+assert.strictEqual = function strictEqual(actual, expected, message) {
+ if (actual !== expected) {
+ fail(actual, expected, message, '===', assert.strictEqual);
+ }
+};
+
+// 10. The strict non-equality assertion tests for strict inequality, as
+// determined by !==. assert.notStrictEqual(actual, expected, message_opt);
+
+assert.notStrictEqual = function notStrictEqual(actual, expected, message) {
+ if (actual === expected) {
+ fail(actual, expected, message, '!==', assert.notStrictEqual);
+ }
+};
+
+function expectedException(actual, expected) {
+ if (!actual || !expected) {
+ return false;
+ }
+
+ if (Object.prototype.toString.call(expected) == '[object RegExp]') {
+ return expected.test(actual);
+ } else if (actual instanceof expected) {
+ return true;
+ } else if (expected.call({}, actual) === true) {
+ return true;
+ }
+
+ return false;
+}
+
+function _throws(shouldThrow, block, expected, message) {
+ var actual;
+
+ if (util.isString(expected)) {
+ message = expected;
+ expected = null;
+ }
+
+ try {
+ block();
+ } catch (e) {
+ actual = e;
+ }
+
+ message = (expected && expected.name ? ' (' + expected.name + ').' : '.') +
+ (message ? ' ' + message : '.');
+
+ if (shouldThrow && !actual) {
+ fail(actual, expected, 'Missing expected exception' + message);
+ }
+
+ if (!shouldThrow && expectedException(actual, expected)) {
+ fail(actual, expected, 'Got unwanted exception' + message);
+ }
+
+ if ((shouldThrow && actual && expected &&
+ !expectedException(actual, expected)) || (!shouldThrow && actual)) {
+ throw actual;
+ }
+}
+
+// 11. Expected to throw an error:
+// assert.throws(block, Error_opt, message_opt);
+
+assert.throws = function(block, /*optional*/error, /*optional*/message) {
+ _throws.apply(this, [true].concat(pSlice.call(arguments)));
+};
+
+// EXTENSION! This is annoying to write outside this module.
+assert.doesNotThrow = function(block, /*optional*/message) {
+ _throws.apply(this, [false].concat(pSlice.call(arguments)));
+};
+
+assert.ifError = function(err) { if (err) {throw err;}};
+
+var objectKeys = Object.keys || function (obj) {
+ var keys = [];
+ for (var key in obj) {
+ if (hasOwn.call(obj, key)) keys.push(key);
+ }
+ return keys;
+};
+
+},{"util/":28}],10:[function(require,module,exports){
+'use strict';
+module.exports = balanced;
+function balanced(a, b, str) {
+ if (a instanceof RegExp) a = maybeMatch(a, str);
+ if (b instanceof RegExp) b = maybeMatch(b, str);
+
+ var r = range(a, b, str);
+
+ return r && {
+ start: r[0],
+ end: r[1],
+ pre: str.slice(0, r[0]),
+ body: str.slice(r[0] + a.length, r[1]),
+ post: str.slice(r[1] + b.length)
+ };
+}
+
+function maybeMatch(reg, str) {
+ var m = str.match(reg);
+ return m ? m[0] : null;
+}
+
+balanced.range = range;
+function range(a, b, str) {
+ var begs, beg, left, right, result;
+ var ai = str.indexOf(a);
+ var bi = str.indexOf(b, ai + 1);
+ var i = ai;
+
+ if (ai >= 0 && bi > 0) {
+ begs = [];
+ left = str.length;
+
+ while (i >= 0 && !result) {
+ if (i == ai) {
+ begs.push(i);
+ ai = str.indexOf(a, i + 1);
+ } else if (begs.length == 1) {
+ result = [ begs.pop(), bi ];
+ } else {
+ beg = begs.pop();
+ if (beg < left) {
+ left = beg;
+ right = bi;
+ }
+
+ bi = str.indexOf(b, i + 1);
+ }
+
+ i = ai < bi && ai >= 0 ? ai : bi;
+ }
+
+ if (begs.length) {
+ result = [ left, right ];
+ }
+ }
+
+ return result;
+}
+
+},{}],11:[function(require,module,exports){
+var concatMap = require('concat-map');
+var balanced = require('balanced-match');
+
+module.exports = expandTop;
+
+var escSlash = '\0SLASH'+Math.random()+'\0';
+var escOpen = '\0OPEN'+Math.random()+'\0';
+var escClose = '\0CLOSE'+Math.random()+'\0';
+var escComma = '\0COMMA'+Math.random()+'\0';
+var escPeriod = '\0PERIOD'+Math.random()+'\0';
+
+function numeric(str) {
+ return parseInt(str, 10) == str
+ ? parseInt(str, 10)
+ : str.charCodeAt(0);
+}
+
+function escapeBraces(str) {
+ return str.split('\\\\').join(escSlash)
+ .split('\\{').join(escOpen)
+ .split('\\}').join(escClose)
+ .split('\\,').join(escComma)
+ .split('\\.').join(escPeriod);
+}
+
+function unescapeBraces(str) {
+ return str.split(escSlash).join('\\')
+ .split(escOpen).join('{')
+ .split(escClose).join('}')
+ .split(escComma).join(',')
+ .split(escPeriod).join('.');
+}
+
+
+// Basically just str.split(","), but handling cases
+// where we have nested braced sections, which should be
+// treated as individual members, like {a,{b,c},d}
+function parseCommaParts(str) {
+ if (!str)
+ return [''];
+
+ var parts = [];
+ var m = balanced('{', '}', str);
+
+ if (!m)
+ return str.split(',');
+
+ var pre = m.pre;
+ var body = m.body;
+ var post = m.post;
+ var p = pre.split(',');
+
+ p[p.length-1] += '{' + body + '}';
+ var postParts = parseCommaParts(post);
+ if (post.length) {
+ p[p.length-1] += postParts.shift();
+ p.push.apply(p, postParts);
+ }
+
+ parts.push.apply(parts, p);
+
+ return parts;
+}
+
+function expandTop(str) {
+ if (!str)
+ return [];
+
+ // I don't know why Bash 4.3 does this, but it does.
+ // Anything starting with {} will have the first two bytes preserved
+ // but *only* at the top level, so {},a}b will not expand to anything,
+ // but a{},b}c will be expanded to [a}c,abc].
+ // One could argue that this is a bug in Bash, but since the goal of
+ // this module is to match Bash's rules, we escape a leading {}
+ if (str.substr(0, 2) === '{}') {
+ str = '\\{\\}' + str.substr(2);
+ }
+
+ return expand(escapeBraces(str), true).map(unescapeBraces);
+}
+
+function identity(e) {
+ return e;
+}
+
+function embrace(str) {
+ return '{' + str + '}';
+}
+function isPadded(el) {
+ return /^-?0\d/.test(el);
+}
+
+function lte(i, y) {
+ return i <= y;
+}
+function gte(i, y) {
+ return i >= y;
+}
+
+function expand(str, isTop) {
+ var expansions = [];
+
+ var m = balanced('{', '}', str);
+ if (!m || /\$$/.test(m.pre)) return [str];
+
+ var isNumericSequence = /^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(m.body);
+ var isAlphaSequence = /^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(m.body);
+ var isSequence = isNumericSequence || isAlphaSequence;
+ var isOptions = m.body.indexOf(',') >= 0;
+ if (!isSequence && !isOptions) {
+ // {a},b}
+ if (m.post.match(/,.*\}/)) {
+ str = m.pre + '{' + m.body + escClose + m.post;
+ return expand(str);
+ }
+ return [str];
+ }
+
+ var n;
+ if (isSequence) {
+ n = m.body.split(/\.\./);
+ } else {
+ n = parseCommaParts(m.body);
+ if (n.length === 1) {
+ // x{{a,b}}y ==> x{a}y x{b}y
+ n = expand(n[0], false).map(embrace);
+ if (n.length === 1) {
+ var post = m.post.length
+ ? expand(m.post, false)
+ : [''];
+ return post.map(function(p) {
+ return m.pre + n[0] + p;
+ });
+ }
+ }
+ }
+
+ // at this point, n is the parts, and we know it's not a comma set
+ // with a single entry.
+
+ // no need to expand pre, since it is guaranteed to be free of brace-sets
+ var pre = m.pre;
+ var post = m.post.length
+ ? expand(m.post, false)
+ : [''];
+
+ var N;
+
+ if (isSequence) {
+ var x = numeric(n[0]);
+ var y = numeric(n[1]);
+ var width = Math.max(n[0].length, n[1].length)
+ var incr = n.length == 3
+ ? Math.abs(numeric(n[2]))
+ : 1;
+ var test = lte;
+ var reverse = y < x;
+ if (reverse) {
+ incr *= -1;
+ test = gte;
+ }
+ var pad = n.some(isPadded);
+
+ N = [];
+
+ for (var i = x; test(i, y); i += incr) {
+ var c;
+ if (isAlphaSequence) {
+ c = String.fromCharCode(i);
+ if (c === '\\')
+ c = '';
+ } else {
+ c = String(i);
+ if (pad) {
+ var need = width - c.length;
+ if (need > 0) {
+ var z = new Array(need + 1).join('0');
+ if (i < 0)
+ c = '-' + z + c.slice(1);
+ else
+ c = z + c;
+ }
+ }
+ }
+ N.push(c);
+ }
+ } else {
+ N = concatMap(n, function(el) { return expand(el, false) });
+ }
+
+ for (var j = 0; j < N.length; j++) {
+ for (var k = 0; k < post.length; k++) {
+ var expansion = pre + N[j] + post[k];
+ if (!isTop || isSequence || expansion)
+ expansions.push(expansion);
+ }
+ }
+
+ return expansions;
+}
+
+
+},{"balanced-match":10,"concat-map":13}],12:[function(require,module,exports){
+
+},{}],13:[function(require,module,exports){
+module.exports = function (xs, fn) {
+ var res = [];
+ for (var i = 0; i < xs.length; i++) {
+ var x = fn(xs[i], i);
+ if (isArray(x)) res.push.apply(res, x);
+ else res.push(x);
+ }
+ return res;
+};
+
+var isArray = Array.isArray || function (xs) {
+ return Object.prototype.toString.call(xs) === '[object Array]';
+};
+
+},{}],14:[function(require,module,exports){
+// Copyright Joyent, Inc. and other Node contributors.
+//
+// Permission is hereby granted, free of charge, to any person obtaining a
+// copy of this software and associated documentation files (the
+// "Software"), to deal in the Software without restriction, including
+// without limitation the rights to use, copy, modify, merge, publish,
+// distribute, sublicense, and/or sell copies of the Software, and to permit
+// persons to whom the Software is furnished to do so, subject to the
+// following conditions:
+//
+// The above copyright notice and this permission notice shall be included
+// in all copies or substantial portions of the Software.
+//
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
+// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
+// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
+// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
+// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
+// USE OR OTHER DEALINGS IN THE SOFTWARE.
+
+function EventEmitter() {
+ this._events = this._events || {};
+ this._maxListeners = this._maxListeners || undefined;
+}
+module.exports = EventEmitter;
+
+// Backwards-compat with node 0.10.x
+EventEmitter.EventEmitter = EventEmitter;
+
+EventEmitter.prototype._events = undefined;
+EventEmitter.prototype._maxListeners = undefined;
+
+// By default EventEmitters will print a warning if more than 10 listeners are
+// added to it. This is a useful default which helps finding memory leaks.
+EventEmitter.defaultMaxListeners = 10;
+
+// Obviously not all Emitters should be limited to 10. This function allows
+// that to be increased. Set to zero for unlimited.
+EventEmitter.prototype.setMaxListeners = function(n) {
+ if (!isNumber(n) || n < 0 || isNaN(n))
+ throw TypeError('n must be a positive number');
+ this._maxListeners = n;
+ return this;
+};
+
+EventEmitter.prototype.emit = function(type) {
+ var er, handler, len, args, i, listeners;
+
+ if (!this._events)
+ this._events = {};
+
+ // If there is no 'error' event listener then throw.
+ if (type === 'error') {
+ if (!this._events.error ||
+ (isObject(this._events.error) && !this._events.error.length)) {
+ er = arguments[1];
+ if (er instanceof Error) {
+ throw er; // Unhandled 'error' event
+ }
+ throw TypeError('Uncaught, unspecified "error" event.');
+ }
+ }
+
+ handler = this._events[type];
+
+ if (isUndefined(handler))
+ return false;
+
+ if (isFunction(handler)) {
+ switch (arguments.length) {
+ // fast cases
+ case 1:
+ handler.call(this);
+ break;
+ case 2:
+ handler.call(this, arguments[1]);
+ break;
+ case 3:
+ handler.call(this, arguments[1], arguments[2]);
+ break;
+ // slower
+ default:
+ len = arguments.length;
+ args = new Array(len - 1);
+ for (i = 1; i < len; i++)
+ args[i - 1] = arguments[i];
+ handler.apply(this, args);
+ }
+ } else if (isObject(handler)) {
+ len = arguments.length;
+ args = new Array(len - 1);
+ for (i = 1; i < len; i++)
+ args[i - 1] = arguments[i];
+
+ listeners = handler.slice();
+ len = listeners.length;
+ for (i = 0; i < len; i++)
+ listeners[i].apply(this, args);
+ }
+
+ return true;
+};
+
+EventEmitter.prototype.addListener = function(type, listener) {
+ var m;
+
+ if (!isFunction(listener))
+ throw TypeError('listener must be a function');
+
+ if (!this._events)
+ this._events = {};
+
+ // To avoid recursion in the case that type === "newListener"! Before
+ // adding it to the listeners, first emit "newListener".
+ if (this._events.newListener)
+ this.emit('newListener', type,
+ isFunction(listener.listener) ?
+ listener.listener : listener);
+
+ if (!this._events[type])
+ // Optimize the case of one listener. Don't need the extra array object.
+ this._events[type] = listener;
+ else if (isObject(this._events[type]))
+ // If we've already got an array, just append.
+ this._events[type].push(listener);
+ else
+ // Adding the second element, need to change to array.
+ this._events[type] = [this._events[type], listener];
+
+ // Check for listener leak
+ if (isObject(this._events[type]) && !this._events[type].warned) {
+ var m;
+ if (!isUndefined(this._maxListeners)) {
+ m = this._maxListeners;
+ } else {
+ m = EventEmitter.defaultMaxListeners;
+ }
+
+ if (m && m > 0 && this._events[type].length > m) {
+ this._events[type].warned = true;
+ console.error('(node) warning: possible EventEmitter memory ' +
+ 'leak detected. %d listeners added. ' +
+ 'Use emitter.setMaxListeners() to increase limit.',
+ this._events[type].length);
+ if (typeof console.trace === 'function') {
+ // not supported in IE 10
+ console.trace();
+ }
+ }
+ }
+
+ return this;
+};
+
+EventEmitter.prototype.on = EventEmitter.prototype.addListener;
+
+EventEmitter.prototype.once = function(type, listener) {
+ if (!isFunction(listener))
+ throw TypeError('listener must be a function');
+
+ var fired = false;
+
+ function g() {
+ this.removeListener(type, g);
+
+ if (!fired) {
+ fired = true;
+ listener.apply(this, arguments);
+ }
+ }
+
+ g.listener = listener;
+ this.on(type, g);
+
+ return this;
+};
+
+// emits a 'removeListener' event iff the listener was removed
+EventEmitter.prototype.removeListener = function(type, listener) {
+ var list, position, length, i;
+
+ if (!isFunction(listener))
+ throw TypeError('listener must be a function');
+
+ if (!this._events || !this._events[type])
+ return this;
+
+ list = this._events[type];
+ length = list.length;
+ position = -1;
+
+ if (list === listener ||
+ (isFunction(list.listener) && list.listener === listener)) {
+ delete this._events[type];
+ if (this._events.removeListener)
+ this.emit('removeListener', type, listener);
+
+ } else if (isObject(list)) {
+ for (i = length; i-- > 0;) {
+ if (list[i] === listener ||
+ (list[i].listener && list[i].listener === listener)) {
+ position = i;
+ break;
+ }
+ }
+
+ if (position < 0)
+ return this;
+
+ if (list.length === 1) {
+ list.length = 0;
+ delete this._events[type];
+ } else {
+ list.splice(position, 1);
+ }
+
+ if (this._events.removeListener)
+ this.emit('removeListener', type, listener);
+ }
+
+ return this;
+};
+
+EventEmitter.prototype.removeAllListeners = function(type) {
+ var key, listeners;
+
+ if (!this._events)
+ return this;
+
+ // not listening for removeListener, no need to emit
+ if (!this._events.removeListener) {
+ if (arguments.length === 0)
+ this._events = {};
+ else if (this._events[type])
+ delete this._events[type];
+ return this;
+ }
+
+ // emit removeListener for all listeners on all events
+ if (arguments.length === 0) {
+ for (key in this._events) {
+ if (key === 'removeListener') continue;
+ this.removeAllListeners(key);
+ }
+ this.removeAllListeners('removeListener');
+ this._events = {};
+ return this;
+ }
+
+ listeners = this._events[type];
+
+ if (isFunction(listeners)) {
+ this.removeListener(type, listeners);
+ } else {
+ // LIFO order
+ while (listeners.length)
+ this.removeListener(type, listeners[listeners.length - 1]);
+ }
+ delete this._events[type];
+
+ return this;
+};
+
+EventEmitter.prototype.listeners = function(type) {
+ var ret;
+ if (!this._events || !this._events[type])
+ ret = [];
+ else if (isFunction(this._events[type]))
+ ret = [this._events[type]];
+ else
+ ret = this._events[type].slice();
+ return ret;
+};
+
+EventEmitter.listenerCount = function(emitter, type) {
+ var ret;
+ if (!emitter._events || !emitter._events[type])
+ ret = 0;
+ else if (isFunction(emitter._events[type]))
+ ret = 1;
+ else
+ ret = emitter._events[type].length;
+ return ret;
+};
+
+function isFunction(arg) {
+ return typeof arg === 'function';
+}
+
+function isNumber(arg) {
+ return typeof arg === 'number';
+}
+
+function isObject(arg) {
+ return typeof arg === 'object' && arg !== null;
+}
+
+function isUndefined(arg) {
+ return arg === void 0;
+}
+
+},{}],15:[function(require,module,exports){
+(function (process){
+exports.alphasort = alphasort
+exports.alphasorti = alphasorti
+exports.setopts = setopts
+exports.ownProp = ownProp
+exports.makeAbs = makeAbs
+exports.finish = finish
+exports.mark = mark
+exports.isIgnored = isIgnored
+exports.childrenIgnored = childrenIgnored
+
+function ownProp (obj, field) {
+ return Object.prototype.hasOwnProperty.call(obj, field)
+}
+
+var path = require("path")
+var minimatch = require("minimatch")
+var isAbsolute = require("path-is-absolute")
+var Minimatch = minimatch.Minimatch
+
+function alphasorti (a, b) {
+ return a.toLowerCase().localeCompare(b.toLowerCase())
+}
+
+function alphasort (a, b) {
+ return a.localeCompare(b)
+}
+
+function setupIgnores (self, options) {
+ self.ignore = options.ignore || []
+
+ if (!Array.isArray(self.ignore))
+ self.ignore = [self.ignore]
+
+ if (self.ignore.length) {
+ self.ignore = self.ignore.map(ignoreMap)
+ }
+}
+
+function ignoreMap (pattern) {
+ var gmatcher = null
+ if (pattern.slice(-3) === '/**') {
+ var gpattern = pattern.replace(/(\/\*\*)+$/, '')
+ gmatcher = new Minimatch(gpattern)
+ }
+
+ return {
+ matcher: new Minimatch(pattern),
+ gmatcher: gmatcher
+ }
+}
+
+function setopts (self, pattern, options) {
+ if (!options)
+ options = {}
+
+ // base-matching: just use globstar for that.
+ if (options.matchBase && -1 === pattern.indexOf("/")) {
+ if (options.noglobstar) {
+ throw new Error("base matching requires globstar")
+ }
+ pattern = "**/" + pattern
+ }
+
+ self.silent = !!options.silent
+ self.pattern = pattern
+ self.strict = options.strict !== false
+ self.realpath = !!options.realpath
+ self.realpathCache = options.realpathCache || Object.create(null)
+ self.follow = !!options.follow
+ self.dot = !!options.dot
+ self.mark = !!options.mark
+ self.nodir = !!options.nodir
+ if (self.nodir)
+ self.mark = true
+ self.sync = !!options.sync
+ self.nounique = !!options.nounique
+ self.nonull = !!options.nonull
+ self.nosort = !!options.nosort
+ self.nocase = !!options.nocase
+ self.stat = !!options.stat
+ self.noprocess = !!options.noprocess
+
+ self.maxLength = options.maxLength || Infinity
+ self.cache = options.cache || Object.create(null)
+ self.statCache = options.statCache || Object.create(null)
+ self.symlinks = options.symlinks || Object.create(null)
+
+ setupIgnores(self, options)
+
+ self.changedCwd = false
+ var cwd = process.cwd()
+ if (!ownProp(options, "cwd"))
+ self.cwd = cwd
+ else {
+ self.cwd = options.cwd
+ self.changedCwd = path.resolve(options.cwd) !== cwd
+ }
+
+ self.root = options.root || path.resolve(self.cwd, "/")
+ self.root = path.resolve(self.root)
+ if (process.platform === "win32")
+ self.root = self.root.replace(/\\/g, "/")
+
+ self.nomount = !!options.nomount
+
+ // disable comments and negation unless the user explicitly
+ // passes in false as the option.
+ options.nonegate = options.nonegate === false ? false : true
+ options.nocomment = options.nocomment === false ? false : true
+ deprecationWarning(options)
+
+ self.minimatch = new Minimatch(pattern, options)
+ self.options = self.minimatch.options
+}
+
+// TODO(isaacs): remove entirely in v6
+// exported to reset in tests
+exports.deprecationWarned
+function deprecationWarning(options) {
+ if (!options.nonegate || !options.nocomment) {
+ if (process.noDeprecation !== true && !exports.deprecationWarned) {
+ var msg = 'glob WARNING: comments and negation will be disabled in v6'
+ if (process.throwDeprecation)
+ throw new Error(msg)
+ else if (process.traceDeprecation)
+ console.trace(msg)
+ else
+ console.error(msg)
+
+ exports.deprecationWarned = true
+ }
+ }
+}
+
+function finish (self) {
+ var nou = self.nounique
+ var all = nou ? [] : Object.create(null)
+
+ for (var i = 0, l = self.matches.length; i < l; i ++) {
+ var matches = self.matches[i]
+ if (!matches || Object.keys(matches).length === 0) {
+ if (self.nonull) {
+ // do like the shell, and spit out the literal glob
+ var literal = self.minimatch.globSet[i]
+ if (nou)
+ all.push(literal)
+ else
+ all[literal] = true
+ }
+ } else {
+ // had matches
+ var m = Object.keys(matches)
+ if (nou)
+ all.push.apply(all, m)
+ else
+ m.forEach(function (m) {
+ all[m] = true
+ })
+ }
+ }
+
+ if (!nou)
+ all = Object.keys(all)
+
+ if (!self.nosort)
+ all = all.sort(self.nocase ? alphasorti : alphasort)
+
+ // at *some* point we statted all of these
+ if (self.mark) {
+ for (var i = 0; i < all.length; i++) {
+ all[i] = self._mark(all[i])
+ }
+ if (self.nodir) {
+ all = all.filter(function (e) {
+ return !(/\/$/.test(e))
+ })
+ }
+ }
+
+ if (self.ignore.length)
+ all = all.filter(function(m) {
+ return !isIgnored(self, m)
+ })
+
+ self.found = all
+}
+
+function mark (self, p) {
+ var abs = makeAbs(self, p)
+ var c = self.cache[abs]
+ var m = p
+ if (c) {
+ var isDir = c === 'DIR' || Array.isArray(c)
+ var slash = p.slice(-1) === '/'
+
+ if (isDir && !slash)
+ m += '/'
+ else if (!isDir && slash)
+ m = m.slice(0, -1)
+
+ if (m !== p) {
+ var mabs = makeAbs(self, m)
+ self.statCache[mabs] = self.statCache[abs]
+ self.cache[mabs] = self.cache[abs]
+ }
+ }
+
+ return m
+}
+
+// lotta situps...
+function makeAbs (self, f) {
+ var abs = f
+ if (f.charAt(0) === '/') {
+ abs = path.join(self.root, f)
+ } else if (isAbsolute(f) || f === '') {
+ abs = f
+ } else if (self.changedCwd) {
+ abs = path.resolve(self.cwd, f)
+ } else {
+ abs = path.resolve(f)
+ }
+ return abs
+}
+
+
+// Return true, if pattern ends with globstar '**', for the accompanying parent directory.
+// Ex:- If node_modules/** is the pattern, add 'node_modules' to ignore list along with it's contents
+function isIgnored (self, path) {
+ if (!self.ignore.length)
+ return false
+
+ return self.ignore.some(function(item) {
+ return item.matcher.match(path) || !!(item.gmatcher && item.gmatcher.match(path))
+ })
+}
+
+function childrenIgnored (self, path) {
+ if (!self.ignore.length)
+ return false
+
+ return self.ignore.some(function(item) {
+ return !!(item.gmatcher && item.gmatcher.match(path))
+ })
+}
+
+}).call(this,require('_process'))
+},{"_process":24,"minimatch":20,"path":22,"path-is-absolute":23}],16:[function(require,module,exports){
+(function (process){
+// Approach:
+//
+// 1. Get the minimatch set
+// 2. For each pattern in the set, PROCESS(pattern, false)
+// 3. Store matches per-set, then uniq them
+//
+// PROCESS(pattern, inGlobStar)
+// Get the first [n] items from pattern that are all strings
+// Join these together. This is PREFIX.
+// If there is no more remaining, then stat(PREFIX) and
+// add to matches if it succeeds. END.
+//
+// If inGlobStar and PREFIX is symlink and points to dir
+// set ENTRIES = []
+// else readdir(PREFIX) as ENTRIES
+// If fail, END
+//
+// with ENTRIES
+// If pattern[n] is GLOBSTAR
+// // handle the case where the globstar match is empty
+// // by pruning it out, and testing the resulting pattern
+// PROCESS(pattern[0..n] + pattern[n+1 .. $], false)
+// // handle other cases.
+// for ENTRY in ENTRIES (not dotfiles)
+// // attach globstar + tail onto the entry
+// // Mark that this entry is a globstar match
+// PROCESS(pattern[0..n] + ENTRY + pattern[n .. $], true)
+//
+// else // not globstar
+// for ENTRY in ENTRIES (not dotfiles, unless pattern[n] is dot)
+// Test ENTRY against pattern[n]
+// If fails, continue
+// If passes, PROCESS(pattern[0..n] + item + pattern[n+1 .. $])
+//
+// Caveat:
+// Cache all stats and readdirs results to minimize syscall. Since all
+// we ever care about is existence and directory-ness, we can just keep
+// `true` for files, and [children,...] for directories, or `false` for
+// things that don't exist.
+
+module.exports = glob
+
+var fs = require('fs')
+var minimatch = require('minimatch')
+var Minimatch = minimatch.Minimatch
+var inherits = require('inherits')
+var EE = require('events').EventEmitter
+var path = require('path')
+var assert = require('assert')
+var isAbsolute = require('path-is-absolute')
+var globSync = require('./sync.js')
+var common = require('./common.js')
+var alphasort = common.alphasort
+var alphasorti = common.alphasorti
+var setopts = common.setopts
+var ownProp = common.ownProp
+var inflight = require('inflight')
+var util = require('util')
+var childrenIgnored = common.childrenIgnored
+var isIgnored = common.isIgnored
+
+var once = require('once')
+
+function glob (pattern, options, cb) {
+ if (typeof options === 'function') cb = options, options = {}
+ if (!options) options = {}
+
+ if (options.sync) {
+ if (cb)
+ throw new TypeError('callback provided to sync glob')
+ return globSync(pattern, options)
+ }
+
+ return new Glob(pattern, options, cb)
+}
+
+glob.sync = globSync
+var GlobSync = glob.GlobSync = globSync.GlobSync
+
+// old api surface
+glob.glob = glob
+
+glob.hasMagic = function (pattern, options_) {
+ var options = util._extend({}, options_)
+ options.noprocess = true
+
+ var g = new Glob(pattern, options)
+ var set = g.minimatch.set
+ if (set.length > 1)
+ return true
+
+ for (var j = 0; j < set[0].length; j++) {
+ if (typeof set[0][j] !== 'string')
+ return true
+ }
+
+ return false
+}
+
+glob.Glob = Glob
+inherits(Glob, EE)
+function Glob (pattern, options, cb) {
+ if (typeof options === 'function') {
+ cb = options
+ options = null
+ }
+
+ if (options && options.sync) {
+ if (cb)
+ throw new TypeError('callback provided to sync glob')
+ return new GlobSync(pattern, options)
+ }
+
+ if (!(this instanceof Glob))
+ return new Glob(pattern, options, cb)
+
+ setopts(this, pattern, options)
+ this._didRealPath = false
+
+ // process each pattern in the minimatch set
+ var n = this.minimatch.set.length
+
+ // The matches are stored as {<filename>: true,...} so that
+ // duplicates are automagically pruned.
+ // Later, we do an Object.keys() on these.
+ // Keep them as a list so we can fill in when nonull is set.
+ this.matches = new Array(n)
+
+ if (typeof cb === 'function') {
+ cb = once(cb)
+ this.on('error', cb)
+ this.on('end', function (matches) {
+ cb(null, matches)
+ })
+ }
+
+ var self = this
+ var n = this.minimatch.set.length
+ this._processing = 0
+ this.matches = new Array(n)
+
+ this._emitQueue = []
+ this._processQueue = []
+ this.paused = false
+
+ if (this.noprocess)
+ return this
+
+ if (n === 0)
+ return done()
+
+ for (var i = 0; i < n; i ++) {
+ this._process(this.minimatch.set[i], i, false, done)
+ }
+
+ function done () {
+ --self._processing
+ if (self._processing <= 0)
+ self._finish()
+ }
+}
+
+Glob.prototype._finish = function () {
+ assert(this instanceof Glob)
+ if (this.aborted)
+ return
+
+ if (this.realpath && !this._didRealpath)
+ return this._realpath()
+
+ common.finish(this)
+ this.emit('end', this.found)
+}
+
+Glob.prototype._realpath = function () {
+ if (this._didRealpath)
+ return
+
+ this._didRealpath = true
+
+ var n = this.matches.length
+ if (n === 0)
+ return this._finish()
+
+ var self = this
+ for (var i = 0; i < this.matches.length; i++)
+ this._realpathSet(i, next)
+
+ function next () {
+ if (--n === 0)
+ self._finish()
+ }
+}
+
+Glob.prototype._realpathSet = function (index, cb) {
+ var matchset = this.matches[index]
+ if (!matchset)
+ return cb()
+
+ var found = Object.keys(matchset)
+ var self = this
+ var n = found.length
+
+ if (n === 0)
+ return cb()
+
+ var set = this.matches[index] = Object.create(null)
+ found.forEach(function (p, i) {
+ // If there's a problem with the stat, then it means that
+ // one or more of the links in the realpath couldn't be
+ // resolved. just return the abs value in that case.
+ p = self._makeAbs(p)
+ fs.realpath(p, self.realpathCache, function (er, real) {
+ if (!er)
+ set[real] = true
+ else if (er.syscall === 'stat')
+ set[p] = true
+ else
+ self.emit('error', er) // srsly wtf right here
+
+ if (--n === 0) {
+ self.matches[index] = set
+ cb()
+ }
+ })
+ })
+}
+
+Glob.prototype._mark = function (p) {
+ return common.mark(this, p)
+}
+
+Glob.prototype._makeAbs = function (f) {
+ return common.makeAbs(this, f)
+}
+
+Glob.prototype.abort = function () {
+ this.aborted = true
+ this.emit('abort')
+}
+
+Glob.prototype.pause = function () {
+ if (!this.paused) {
+ this.paused = true
+ this.emit('pause')
+ }
+}
+
+Glob.prototype.resume = function () {
+ if (this.paused) {
+ this.emit('resume')
+ this.paused = false
+ if (this._emitQueue.length) {
+ var eq = this._emitQueue.slice(0)
+ this._emitQueue.length = 0
+ for (var i = 0; i < eq.length; i ++) {
+ var e = eq[i]
+ this._emitMatch(e[0], e[1])
+ }
+ }
+ if (this._processQueue.length) {
+ var pq = this._processQueue.slice(0)
+ this._processQueue.length = 0
+ for (var i = 0; i < pq.length; i ++) {
+ var p = pq[i]
+ this._processing--
+ this._process(p[0], p[1], p[2], p[3])
+ }
+ }
+ }
+}
+
+Glob.prototype._process = function (pattern, index, inGlobStar, cb) {
+ assert(this instanceof Glob)
+ assert(typeof cb === 'function')
+
+ if (this.aborted)
+ return
+
+ this._processing++
+ if (this.paused) {
+ this._processQueue.push([pattern, index, inGlobStar, cb])
+ return
+ }
+
+ //console.error('PROCESS %d', this._processing, pattern)
+
+ // Get the first [n] parts of pattern that are all strings.
+ var n = 0
+ while (typeof pattern[n] === 'string') {
+ n ++
+ }
+ // now n is the index of the first one that is *not* a string.
+
+ // see if there's anything else
+ var prefix
+ switch (n) {
+ // if not, then this is rather simple
+ case pattern.length:
+ this._processSimple(pattern.join('/'), index, cb)
+ return
+
+ case 0:
+ // pattern *starts* with some non-trivial item.
+ // going to readdir(cwd), but not include the prefix in matches.
+ prefix = null
+ break
+
+ default:
+ // pattern has some string bits in the front.
+ // whatever it starts with, whether that's 'absolute' like /foo/bar,
+ // or 'relative' like '../baz'
+ prefix = pattern.slice(0, n).join('/')
+ break
+ }
+
+ var remain = pattern.slice(n)
+
+ // get the list of entries.
+ var read
+ if (prefix === null)
+ read = '.'
+ else if (isAbsolute(prefix) || isAbsolute(pattern.join('/'))) {
+ if (!prefix || !isAbsolute(prefix))
+ prefix = '/' + prefix
+ read = prefix
+ } else
+ read = prefix
+
+ var abs = this._makeAbs(read)
+
+ //if ignored, skip _processing
+ if (childrenIgnored(this, read))
+ return cb()
+
+ var isGlobStar = remain[0] === minimatch.GLOBSTAR
+ if (isGlobStar)
+ this._processGlobStar(prefix, read, abs, remain, index, inGlobStar, cb)
+ else
+ this._processReaddir(prefix, read, abs, remain, index, inGlobStar, cb)
+}
+
+Glob.prototype._processReaddir = function (prefix, read, abs, remain, index, inGlobStar, cb) {
+ var self = this
+ this._readdir(abs, inGlobStar, function (er, entries) {
+ return self._processReaddir2(prefix, read, abs, remain, index, inGlobStar, entries, cb)
+ })
+}
+
+Glob.prototype._processReaddir2 = function (prefix, read, abs, remain, index, inGlobStar, entries, cb) {
+
+ // if the abs isn't a dir, then nothing can match!
+ if (!entries)
+ return cb()
+
+ // It will only match dot entries if it starts with a dot, or if
+ // dot is set. Stuff like @(.foo|.bar) isn't allowed.
+ var pn = remain[0]
+ var negate = !!this.minimatch.negate
+ var rawGlob = pn._glob
+ var dotOk = this.dot || rawGlob.charAt(0) === '.'
+
+ var matchedEntries = []
+ for (var i = 0; i < entries.length; i++) {
+ var e = entries[i]
+ if (e.charAt(0) !== '.' || dotOk) {
+ var m
+ if (negate && !prefix) {
+ m = !e.match(pn)
+ } else {
+ m = e.match(pn)
+ }
+ if (m)
+ matchedEntries.push(e)
+ }
+ }
+
+ //console.error('prd2', prefix, entries, remain[0]._glob, matchedEntries)
+
+ var len = matchedEntries.length
+ // If there are no matched entries, then nothing matches.
+ if (len === 0)
+ return cb()
+
+ // if this is the last remaining pattern bit, then no need for
+ // an additional stat *unless* the user has specified mark or
+ // stat explicitly. We know they exist, since readdir returned
+ // them.
+
+ if (remain.length === 1 && !this.mark && !this.stat) {
+ if (!this.matches[index])
+ this.matches[index] = Object.create(null)
+
+ for (var i = 0; i < len; i ++) {
+ var e = matchedEntries[i]
+ if (prefix) {
+ if (prefix !== '/')
+ e = prefix + '/' + e
+ else
+ e = prefix + e
+ }
+
+ if (e.charAt(0) === '/' && !this.nomount) {
+ e = path.join(this.root, e)
+ }
+ this._emitMatch(index, e)
+ }
+ // This was the last one, and no stats were needed
+ return cb()
+ }
+
+ // now test all matched entries as stand-ins for that part
+ // of the pattern.
+ remain.shift()
+ for (var i = 0; i < len; i ++) {
+ var e = matchedEntries[i]
+ var newPattern
+ if (prefix) {
+ if (prefix !== '/')
+ e = prefix + '/' + e
+ else
+ e = prefix + e
+ }
+ this._process([e].concat(remain), index, inGlobStar, cb)
+ }
+ cb()
+}
+
+Glob.prototype._emitMatch = function (index, e) {
+ if (this.aborted)
+ return
+
+ if (this.matches[index][e])
+ return
+
+ if (isIgnored(this, e))
+ return
+
+ if (this.paused) {
+ this._emitQueue.push([index, e])
+ return
+ }
+
+ var abs = this._makeAbs(e)
+
+ if (this.nodir) {
+ var c = this.cache[abs]
+ if (c === 'DIR' || Array.isArray(c))
+ return
+ }
+
+ if (this.mark)
+ e = this._mark(e)
+
+ this.matches[index][e] = true
+
+ var st = this.statCache[abs]
+ if (st)
+ this.emit('stat', e, st)
+
+ this.emit('match', e)
+}
+
+Glob.prototype._readdirInGlobStar = function (abs, cb) {
+ if (this.aborted)
+ return
+
+ // follow all symlinked directories forever
+ // just proceed as if this is a non-globstar situation
+ if (this.follow)
+ return this._readdir(abs, false, cb)
+
+ var lstatkey = 'lstat\0' + abs
+ var self = this
+ var lstatcb = inflight(lstatkey, lstatcb_)
+
+ if (lstatcb)
+ fs.lstat(abs, lstatcb)
+
+ function lstatcb_ (er, lstat) {
+ if (er)
+ return cb()
+
+ var isSym = lstat.isSymbolicLink()
+ self.symlinks[abs] = isSym
+
+ // If it's not a symlink or a dir, then it's definitely a regular file.
+ // don't bother doing a readdir in that case.
+ if (!isSym && !lstat.isDirectory()) {
+ self.cache[abs] = 'FILE'
+ cb()
+ } else
+ self._readdir(abs, false, cb)
+ }
+}
+
+Glob.prototype._readdir = function (abs, inGlobStar, cb) {
+ if (this.aborted)
+ return
+
+ cb = inflight('readdir\0'+abs+'\0'+inGlobStar, cb)
+ if (!cb)
+ return
+
+ //console.error('RD %j %j', +inGlobStar, abs)
+ if (inGlobStar && !ownProp(this.symlinks, abs))
+ return this._readdirInGlobStar(abs, cb)
+
+ if (ownProp(this.cache, abs)) {
+ var c = this.cache[abs]
+ if (!c || c === 'FILE')
+ return cb()
+
+ if (Array.isArray(c))
+ return cb(null, c)
+ }
+
+ var self = this
+ fs.readdir(abs, readdirCb(this, abs, cb))
+}
+
+function readdirCb (self, abs, cb) {
+ return function (er, entries) {
+ if (er)
+ self._readdirError(abs, er, cb)
+ else
+ self._readdirEntries(abs, entries, cb)
+ }
+}
+
+Glob.prototype._readdirEntries = function (abs, entries, cb) {
+ if (this.aborted)
+ return
+
+ // if we haven't asked to stat everything, then just
+ // assume that everything in there exists, so we can avoid
+ // having to stat it a second time.
+ if (!this.mark && !this.stat) {
+ for (var i = 0; i < entries.length; i ++) {
+ var e = entries[i]
+ if (abs === '/')
+ e = abs + e
+ else
+ e = abs + '/' + e
+ this.cache[e] = true
+ }
+ }
+
+ this.cache[abs] = entries
+ return cb(null, entries)
+}
+
+Glob.prototype._readdirError = function (f, er, cb) {
+ if (this.aborted)
+ return
+
+ // handle errors, and cache the information
+ switch (er.code) {
+ case 'ENOTSUP': // https://github.com/isaacs/node-glob/issues/205
+ case 'ENOTDIR': // totally normal. means it *does* exist.
+ this.cache[this._makeAbs(f)] = 'FILE'
+ break
+
+ case 'ENOENT': // not terribly unusual
+ case 'ELOOP':
+ case 'ENAMETOOLONG':
+ case 'UNKNOWN':
+ this.cache[this._makeAbs(f)] = false
+ break
+
+ default: // some unusual error. Treat as failure.
+ this.cache[this._makeAbs(f)] = false
+ if (this.strict) {
+ this.emit('error', er)
+ // If the error is handled, then we abort
+ // if not, we threw out of here
+ this.abort()
+ }
+ if (!this.silent)
+ console.error('glob error', er)
+ break
+ }
+
+ return cb()
+}
+
+Glob.prototype._processGlobStar = function (prefix, read, abs, remain, index, inGlobStar, cb) {
+ var self = this
+ this._readdir(abs, inGlobStar, function (er, entries) {
+ self._processGlobStar2(prefix, read, abs, remain, index, inGlobStar, entries, cb)
+ })
+}
+
+
+Glob.prototype._processGlobStar2 = function (prefix, read, abs, remain, index, inGlobStar, entries, cb) {
+ //console.error('pgs2', prefix, remain[0], entries)
+
+ // no entries means not a dir, so it can never have matches
+ // foo.txt/** doesn't match foo.txt
+ if (!entries)
+ return cb()
+
+ // test without the globstar, and with every child both below
+ // and replacing the globstar.
+ var remainWithoutGlobStar = remain.slice(1)
+ var gspref = prefix ? [ prefix ] : []
+ var noGlobStar = gspref.concat(remainWithoutGlobStar)
+
+ // the noGlobStar pattern exits the inGlobStar state
+ this._process(noGlobStar, index, false, cb)
+
+ var isSym = this.symlinks[abs]
+ var len = entries.length
+
+ // If it's a symlink, and we're in a globstar, then stop
+ if (isSym && inGlobStar)
+ return cb()
+
+ for (var i = 0; i < len; i++) {
+ var e = entries[i]
+ if (e.charAt(0) === '.' && !this.dot)
+ continue
+
+ // these two cases enter the inGlobStar state
+ var instead = gspref.concat(entries[i], remainWithoutGlobStar)
+ this._process(instead, index, true, cb)
+
+ var below = gspref.concat(entries[i], remain)
+ this._process(below, index, true, cb)
+ }
+
+ cb()
+}
+
+Glob.prototype._processSimple = function (prefix, index, cb) {
+ // XXX review this. Shouldn't it be doing the mounting etc
+ // before doing stat? kinda weird?
+ var self = this
+ this._stat(prefix, function (er, exists) {
+ self._processSimple2(prefix, index, er, exists, cb)
+ })
+}
+Glob.prototype._processSimple2 = function (prefix, index, er, exists, cb) {
+
+ //console.error('ps2', prefix, exists)
+
+ if (!this.matches[index])
+ this.matches[index] = Object.create(null)
+
+ // If it doesn't exist, then just mark the lack of results
+ if (!exists)
+ return cb()
+
+ if (prefix && isAbsolute(prefix) && !this.nomount) {
+ var trail = /[\/\\]$/.test(prefix)
+ if (prefix.charAt(0) === '/') {
+ prefix = path.join(this.root, prefix)
+ } else {
+ prefix = path.resolve(this.root, prefix)
+ if (trail)
+ prefix += '/'
+ }
+ }
+
+ if (process.platform === 'win32')
+ prefix = prefix.replace(/\\/g, '/')
+
+ // Mark this as a match
+ this._emitMatch(index, prefix)
+ cb()
+}
+
+// Returns either 'DIR', 'FILE', or false
+Glob.prototype._stat = function (f, cb) {
+ var abs = this._makeAbs(f)
+ var needDir = f.slice(-1) === '/'
+
+ if (f.length > this.maxLength)
+ return cb()
+
+ if (!this.stat && ownProp(this.cache, abs)) {
+ var c = this.cache[abs]
+
+ if (Array.isArray(c))
+ c = 'DIR'
+
+ // It exists, but maybe not how we need it
+ if (!needDir || c === 'DIR')
+ return cb(null, c)
+
+ if (needDir && c === 'FILE')
+ return cb()
+
+ // otherwise we have to stat, because maybe c=true
+ // if we know it exists, but not what it is.
+ }
+
+ var exists
+ var stat = this.statCache[abs]
+ if (stat !== undefined) {
+ if (stat === false)
+ return cb(null, stat)
+ else {
+ var type = stat.isDirectory() ? 'DIR' : 'FILE'
+ if (needDir && type === 'FILE')
+ return cb()
+ else
+ return cb(null, type, stat)
+ }
+ }
+
+ var self = this
+ var statcb = inflight('stat\0' + abs, lstatcb_)
+ if (statcb)
+ fs.lstat(abs, statcb)
+
+ function lstatcb_ (er, lstat) {
+ if (lstat && lstat.isSymbolicLink()) {
+ // If it's a symlink, then treat it as the target, unless
+ // the target does not exist, then treat it as a file.
+ return fs.stat(abs, function (er, stat) {
+ if (er)
+ self._stat2(f, abs, null, lstat, cb)
+ else
+ self._stat2(f, abs, er, stat, cb)
+ })
+ } else {
+ self._stat2(f, abs, er, lstat, cb)
+ }
+ }
+}
+
+Glob.prototype._stat2 = function (f, abs, er, stat, cb) {
+ if (er) {
+ this.statCache[abs] = false
+ return cb()
+ }
+
+ var needDir = f.slice(-1) === '/'
+ this.statCache[abs] = stat
+
+ if (abs.slice(-1) === '/' && !stat.isDirectory())
+ return cb(null, false, stat)
+
+ var c = stat.isDirectory() ? 'DIR' : 'FILE'
+ this.cache[abs] = this.cache[abs] || c
+
+ if (needDir && c !== 'DIR')
+ return cb()
+
+ return cb(null, c, stat)
+}
+
+}).call(this,require('_process'))
+},{"./common.js":15,"./sync.js":17,"_process":24,"assert":9,"events":14,"fs":12,"inflight":18,"inherits":19,"minimatch":20,"once":21,"path":22,"path-is-absolute":23,"util":28}],17:[function(require,module,exports){
+(function (process){
+module.exports = globSync
+globSync.GlobSync = GlobSync
+
+var fs = require('fs')
+var minimatch = require('minimatch')
+var Minimatch = minimatch.Minimatch
+var Glob = require('./glob.js').Glob
+var util = require('util')
+var path = require('path')
+var assert = require('assert')
+var isAbsolute = require('path-is-absolute')
+var common = require('./common.js')
+var alphasort = common.alphasort
+var alphasorti = common.alphasorti
+var setopts = common.setopts
+var ownProp = common.ownProp
+var childrenIgnored = common.childrenIgnored
+
+function globSync (pattern, options) {
+ if (typeof options === 'function' || arguments.length === 3)
+ throw new TypeError('callback provided to sync glob\n'+
+ 'See: https://github.com/isaacs/node-glob/issues/167')
+
+ return new GlobSync(pattern, options).found
+}
+
+function GlobSync (pattern, options) {
+ if (!pattern)
+ throw new Error('must provide pattern')
+
+ if (typeof options === 'function' || arguments.length === 3)
+ throw new TypeError('callback provided to sync glob\n'+
+ 'See: https://github.com/isaacs/node-glob/issues/167')
+
+ if (!(this instanceof GlobSync))
+ return new GlobSync(pattern, options)
+
+ setopts(this, pattern, options)
+
+ if (this.noprocess)
+ return this
+
+ var n = this.minimatch.set.length
+ this.matches = new Array(n)
+ for (var i = 0; i < n; i ++) {
+ this._process(this.minimatch.set[i], i, false)
+ }
+ this._finish()
+}
+
+GlobSync.prototype._finish = function () {
+ assert(this instanceof GlobSync)
+ if (this.realpath) {
+ var self = this
+ this.matches.forEach(function (matchset, index) {
+ var set = self.matches[index] = Object.create(null)
+ for (var p in matchset) {
+ try {
+ p = self._makeAbs(p)
+ var real = fs.realpathSync(p, self.realpathCache)
+ set[real] = true
+ } catch (er) {
+ if (er.syscall === 'stat')
+ set[self._makeAbs(p)] = true
+ else
+ throw er
+ }
+ }
+ })
+ }
+ common.finish(this)
+}
+
+
+GlobSync.prototype._process = function (pattern, index, inGlobStar) {
+ assert(this instanceof GlobSync)
+
+ // Get the first [n] parts of pattern that are all strings.
+ var n = 0
+ while (typeof pattern[n] === 'string') {
+ n ++
+ }
+ // now n is the index of the first one that is *not* a string.
+
+ // See if there's anything else
+ var prefix
+ switch (n) {
+ // if not, then this is rather simple
+ case pattern.length:
+ this._processSimple(pattern.join('/'), index)
+ return
+
+ case 0:
+ // pattern *starts* with some non-trivial item.
+ // going to readdir(cwd), but not include the prefix in matches.
+ prefix = null
+ break
+
+ default:
+ // pattern has some string bits in the front.
+ // whatever it starts with, whether that's 'absolute' like /foo/bar,
+ // or 'relative' like '../baz'
+ prefix = pattern.slice(0, n).join('/')
+ break
+ }
+
+ var remain = pattern.slice(n)
+
+ // get the list of entries.
+ var read
+ if (prefix === null)
+ read = '.'
+ else if (isAbsolute(prefix) || isAbsolute(pattern.join('/'))) {
+ if (!prefix || !isAbsolute(prefix))
+ prefix = '/' + prefix
+ read = prefix
+ } else
+ read = prefix
+
+ var abs = this._makeAbs(read)
+
+ //if ignored, skip processing
+ if (childrenIgnored(this, read))
+ return
+
+ var isGlobStar = remain[0] === minimatch.GLOBSTAR
+ if (isGlobStar)
+ this._processGlobStar(prefix, read, abs, remain, index, inGlobStar)
+ else
+ this._processReaddir(prefix, read, abs, remain, index, inGlobStar)
+}
+
+
+GlobSync.prototype._processReaddir = function (prefix, read, abs, remain, index, inGlobStar) {
+ var entries = this._readdir(abs, inGlobStar)
+
+ // if the abs isn't a dir, then nothing can match!
+ if (!entries)
+ return
+
+ // It will only match dot entries if it starts with a dot, or if
+ // dot is set. Stuff like @(.foo|.bar) isn't allowed.
+ var pn = remain[0]
+ var negate = !!this.minimatch.negate
+ var rawGlob = pn._glob
+ var dotOk = this.dot || rawGlob.charAt(0) === '.'
+
+ var matchedEntries = []
+ for (var i = 0; i < entries.length; i++) {
+ var e = entries[i]
+ if (e.charAt(0) !== '.' || dotOk) {
+ var m
+ if (negate && !prefix) {
+ m = !e.match(pn)
+ } else {
+ m = e.match(pn)
+ }
+ if (m)
+ matchedEntries.push(e)
+ }
+ }
+
+ var len = matchedEntries.length
+ // If there are no matched entries, then nothing matches.
+ if (len === 0)
+ return
+
+ // if this is the last remaining pattern bit, then no need for
+ // an additional stat *unless* the user has specified mark or
+ // stat explicitly. We know they exist, since readdir returned
+ // them.
+
+ if (remain.length === 1 && !this.mark && !this.stat) {
+ if (!this.matches[index])
+ this.matches[index] = Object.create(null)
+
+ for (var i = 0; i < len; i ++) {
+ var e = matchedEntries[i]
+ if (prefix) {
+ if (prefix.slice(-1) !== '/')
+ e = prefix + '/' + e
+ else
+ e = prefix + e
+ }
+
+ if (e.charAt(0) === '/' && !this.nomount) {
+ e = path.join(this.root, e)
+ }
+ this.matches[index][e] = true
+ }
+ // This was the last one, and no stats were needed
+ return
+ }
+
+ // now test all matched entries as stand-ins for that part
+ // of the pattern.
+ remain.shift()
+ for (var i = 0; i < len; i ++) {
+ var e = matchedEntries[i]
+ var newPattern
+ if (prefix)
+ newPattern = [prefix, e]
+ else
+ newPattern = [e]
+ this._process(newPattern.concat(remain), index, inGlobStar)
+ }
+}
+
+
+GlobSync.prototype._emitMatch = function (index, e) {
+ var abs = this._makeAbs(e)
+ if (this.mark)
+ e = this._mark(e)
+
+ if (this.matches[index][e])
+ return
+
+ if (this.nodir) {
+ var c = this.cache[this._makeAbs(e)]
+ if (c === 'DIR' || Array.isArray(c))
+ return
+ }
+
+ this.matches[index][e] = true
+ if (this.stat)
+ this._stat(e)
+}
+
+
+GlobSync.prototype._readdirInGlobStar = function (abs) {
+ // follow all symlinked directories forever
+ // just proceed as if this is a non-globstar situation
+ if (this.follow)
+ return this._readdir(abs, false)
+
+ var entries
+ var lstat
+ var stat
+ try {
+ lstat = fs.lstatSync(abs)
+ } catch (er) {
+ // lstat failed, doesn't exist
+ return null
+ }
+
+ var isSym = lstat.isSymbolicLink()
+ this.symlinks[abs] = isSym
+
+ // If it's not a symlink or a dir, then it's definitely a regular file.
+ // don't bother doing a readdir in that case.
+ if (!isSym && !lstat.isDirectory())
+ this.cache[abs] = 'FILE'
+ else
+ entries = this._readdir(abs, false)
+
+ return entries
+}
+
+GlobSync.prototype._readdir = function (abs, inGlobStar) {
+ var entries
+
+ if (inGlobStar && !ownProp(this.symlinks, abs))
+ return this._readdirInGlobStar(abs)
+
+ if (ownProp(this.cache, abs)) {
+ var c = this.cache[abs]
+ if (!c || c === 'FILE')
+ return null
+
+ if (Array.isArray(c))
+ return c
+ }
+
+ try {
+ return this._readdirEntries(abs, fs.readdirSync(abs))
+ } catch (er) {
+ this._readdirError(abs, er)
+ return null
+ }
+}
+
+GlobSync.prototype._readdirEntries = function (abs, entries) {
+ // if we haven't asked to stat everything, then just
+ // assume that everything in there exists, so we can avoid
+ // having to stat it a second time.
+ if (!this.mark && !this.stat) {
+ for (var i = 0; i < entries.length; i ++) {
+ var e = entries[i]
+ if (abs === '/')
+ e = abs + e
+ else
+ e = abs + '/' + e
+ this.cache[e] = true
+ }
+ }
+
+ this.cache[abs] = entries
+
+ // mark and cache dir-ness
+ return entries
+}
+
+GlobSync.prototype._readdirError = function (f, er) {
+ // handle errors, and cache the information
+ switch (er.code) {
+ case 'ENOTSUP': // https://github.com/isaacs/node-glob/issues/205
+ case 'ENOTDIR': // totally normal. means it *does* exist.
+ this.cache[this._makeAbs(f)] = 'FILE'
+ break
+
+ case 'ENOENT': // not terribly unusual
+ case 'ELOOP':
+ case 'ENAMETOOLONG':
+ case 'UNKNOWN':
+ this.cache[this._makeAbs(f)] = false
+ break
+
+ default: // some unusual error. Treat as failure.
+ this.cache[this._makeAbs(f)] = false
+ if (this.strict)
+ throw er
+ if (!this.silent)
+ console.error('glob error', er)
+ break
+ }
+}
+
+GlobSync.prototype._processGlobStar = function (prefix, read, abs, remain, index, inGlobStar) {
+
+ var entries = this._readdir(abs, inGlobStar)
+
+ // no entries means not a dir, so it can never have matches
+ // foo.txt/** doesn't match foo.txt
+ if (!entries)
+ return
+
+ // test without the globstar, and with every child both below
+ // and replacing the globstar.
+ var remainWithoutGlobStar = remain.slice(1)
+ var gspref = prefix ? [ prefix ] : []
+ var noGlobStar = gspref.concat(remainWithoutGlobStar)
+
+ // the noGlobStar pattern exits the inGlobStar state
+ this._process(noGlobStar, index, false)
+
+ var len = entries.length
+ var isSym = this.symlinks[abs]
+
+ // If it's a symlink, and we're in a globstar, then stop
+ if (isSym && inGlobStar)
+ return
+
+ for (var i = 0; i < len; i++) {
+ var e = entries[i]
+ if (e.charAt(0) === '.' && !this.dot)
+ continue
+
+ // these two cases enter the inGlobStar state
+ var instead = gspref.concat(entries[i], remainWithoutGlobStar)
+ this._process(instead, index, true)
+
+ var below = gspref.concat(entries[i], remain)
+ this._process(below, index, true)
+ }
+}
+
+GlobSync.prototype._processSimple = function (prefix, index) {
+ // XXX review this. Shouldn't it be doing the mounting etc
+ // before doing stat? kinda weird?
+ var exists = this._stat(prefix)
+
+ if (!this.matches[index])
+ this.matches[index] = Object.create(null)
+
+ // If it doesn't exist, then just mark the lack of results
+ if (!exists)
+ return
+
+ if (prefix && isAbsolute(prefix) && !this.nomount) {
+ var trail = /[\/\\]$/.test(prefix)
+ if (prefix.charAt(0) === '/') {
+ prefix = path.join(this.root, prefix)
+ } else {
+ prefix = path.resolve(this.root, prefix)
+ if (trail)
+ prefix += '/'
+ }
+ }
+
+ if (process.platform === 'win32')
+ prefix = prefix.replace(/\\/g, '/')
+
+ // Mark this as a match
+ this.matches[index][prefix] = true
+}
+
+// Returns either 'DIR', 'FILE', or false
+GlobSync.prototype._stat = function (f) {
+ var abs = this._makeAbs(f)
+ var needDir = f.slice(-1) === '/'
+
+ if (f.length > this.maxLength)
+ return false
+
+ if (!this.stat && ownProp(this.cache, abs)) {
+ var c = this.cache[abs]
+
+ if (Array.isArray(c))
+ c = 'DIR'
+
+ // It exists, but maybe not how we need it
+ if (!needDir || c === 'DIR')
+ return c
+
+ if (needDir && c === 'FILE')
+ return false
+
+ // otherwise we have to stat, because maybe c=true
+ // if we know it exists, but not what it is.
+ }
+
+ var exists
+ var stat = this.statCache[abs]
+ if (!stat) {
+ var lstat
+ try {
+ lstat = fs.lstatSync(abs)
+ } catch (er) {
+ return false
+ }
+
+ if (lstat.isSymbolicLink()) {
+ try {
+ stat = fs.statSync(abs)
+ } catch (er) {
+ stat = lstat
+ }
+ } else {
+ stat = lstat
+ }
+ }
+
+ this.statCache[abs] = stat
+
+ var c = stat.isDirectory() ? 'DIR' : 'FILE'
+ this.cache[abs] = this.cache[abs] || c
+
+ if (needDir && c !== 'DIR')
+ return false
+
+ return c
+}
+
+GlobSync.prototype._mark = function (p) {
+ return common.mark(this, p)
+}
+
+GlobSync.prototype._makeAbs = function (f) {
+ return common.makeAbs(this, f)
+}
+
+}).call(this,require('_process'))
+},{"./common.js":15,"./glob.js":16,"_process":24,"assert":9,"fs":12,"minimatch":20,"path":22,"path-is-absolute":23,"util":28}],18:[function(require,module,exports){
+(function (process){
+var wrappy = require('wrappy')
+var reqs = Object.create(null)
+var once = require('once')
+
+module.exports = wrappy(inflight)
+
+function inflight (key, cb) {
+ if (reqs[key]) {
+ reqs[key].push(cb)
+ return null
+ } else {
+ reqs[key] = [cb]
+ return makeres(key)
+ }
+}
+
+function makeres (key) {
+ return once(function RES () {
+ var cbs = reqs[key]
+ var len = cbs.length
+ var args = slice(arguments)
+
+ // XXX It's somewhat ambiguous whether a new callback added in this
+ // pass should be queued for later execution if something in the
+ // list of callbacks throws, or if it should just be discarded.
+ // However, it's such an edge case that it hardly matters, and either
+ // choice is likely as surprising as the other.
+ // As it happens, we do go ahead and schedule it for later execution.
+ try {
+ for (var i = 0; i < len; i++) {
+ cbs[i].apply(null, args)
+ }
+ } finally {
+ if (cbs.length > len) {
+ // added more in the interim.
+ // de-zalgo, just in case, but don't call again.
+ cbs.splice(0, len)
+ process.nextTick(function () {
+ RES.apply(null, args)
+ })
+ } else {
+ delete reqs[key]
+ }
+ }
+ })
+}
+
+function slice (args) {
+ var length = args.length
+ var array = []
+
+ for (var i = 0; i < length; i++) array[i] = args[i]
+ return array
+}
+
+}).call(this,require('_process'))
+},{"_process":24,"once":21,"wrappy":29}],19:[function(require,module,exports){
+if (typeof Object.create === 'function') {
+ // implementation from standard node.js 'util' module
+ module.exports = function inherits(ctor, superCtor) {
+ ctor.super_ = superCtor
+ ctor.prototype = Object.create(superCtor.prototype, {
+ constructor: {
+ value: ctor,
+ enumerable: false,
+ writable: true,
+ configurable: true
+ }
+ });
+ };
+} else {
+ // old school shim for old browsers
+ module.exports = function inherits(ctor, superCtor) {
+ ctor.super_ = superCtor
+ var TempCtor = function () {}
+ TempCtor.prototype = superCtor.prototype
+ ctor.prototype = new TempCtor()
+ ctor.prototype.constructor = ctor
+ }
+}
+
+},{}],20:[function(require,module,exports){
+module.exports = minimatch
+minimatch.Minimatch = Minimatch
+
+var path = { sep: '/' }
+try {
+ path = require('path')
+} catch (er) {}
+
+var GLOBSTAR = minimatch.GLOBSTAR = Minimatch.GLOBSTAR = {}
+var expand = require('brace-expansion')
+
+var plTypes = {
+ '!': { open: '(?:(?!(?:', close: '))[^/]*?)'},
+ '?': { open: '(?:', close: ')?' },
+ '+': { open: '(?:', close: ')+' },
+ '*': { open: '(?:', close: ')*' },
+ '@': { open: '(?:', close: ')' }
+}
+
+// any single thing other than /
+// don't need to escape / when using new RegExp()
+var qmark = '[^/]'
+
+// * => any number of characters
+var star = qmark + '*?'
+
+// ** when dots are allowed. Anything goes, except .. and .
+// not (^ or / followed by one or two dots followed by $ or /),
+// followed by anything, any number of times.
+var twoStarDot = '(?:(?!(?:\\\/|^)(?:\\.{1,2})($|\\\/)).)*?'
+
+// not a ^ or / followed by a dot,
+// followed by anything, any number of times.
+var twoStarNoDot = '(?:(?!(?:\\\/|^)\\.).)*?'
+
+// characters that need to be escaped in RegExp.
+var reSpecials = charSet('().*{}+?[]^$\\!')
+
+// "abc" -> { a:true, b:true, c:true }
+function charSet (s) {
+ return s.split('').reduce(function (set, c) {
+ set[c] = true
+ return set
+ }, {})
+}
+
+// normalizes slashes.
+var slashSplit = /\/+/
+
+minimatch.filter = filter
+function filter (pattern, options) {
+ options = options || {}
+ return function (p, i, list) {
+ return minimatch(p, pattern, options)
+ }
+}
+
+function ext (a, b) {
+ a = a || {}
+ b = b || {}
+ var t = {}
+ Object.keys(b).forEach(function (k) {
+ t[k] = b[k]
+ })
+ Object.keys(a).forEach(function (k) {
+ t[k] = a[k]
+ })
+ return t
+}
+
+minimatch.defaults = function (def) {
+ if (!def || !Object.keys(def).length) return minimatch
+
+ var orig = minimatch
+
+ var m = function minimatch (p, pattern, options) {
+ return orig.minimatch(p, pattern, ext(def, options))
+ }
+
+ m.Minimatch = function Minimatch (pattern, options) {
+ return new orig.Minimatch(pattern, ext(def, options))
+ }
+
+ return m
+}
+
+Minimatch.defaults = function (def) {
+ if (!def || !Object.keys(def).length) return Minimatch
+ return minimatch.defaults(def).Minimatch
+}
+
+function minimatch (p, pattern, options) {
+ if (typeof pattern !== 'string') {
+ throw new TypeError('glob pattern string required')
+ }
+
+ if (!options) options = {}
+
+ // shortcut: comments match nothing.
+ if (!options.nocomment && pattern.charAt(0) === '#') {
+ return false
+ }
+
+ // "" only matches ""
+ if (pattern.trim() === '') return p === ''
+
+ return new Minimatch(pattern, options).match(p)
+}
+
+function Minimatch (pattern, options) {
+ if (!(this instanceof Minimatch)) {
+ return new Minimatch(pattern, options)
+ }
+
+ if (typeof pattern !== 'string') {
+ throw new TypeError('glob pattern string required')
+ }
+
+ if (!options) options = {}
+ pattern = pattern.trim()
+
+ // windows support: need to use /, not \
+ if (path.sep !== '/') {
+ pattern = pattern.split(path.sep).join('/')
+ }
+
+ this.options = options
+ this.set = []
+ this.pattern = pattern
+ this.regexp = null
+ this.negate = false
+ this.comment = false
+ this.empty = false
+
+ // make the set of regexps etc.
+ this.make()
+}
+
+Minimatch.prototype.debug = function () {}
+
+Minimatch.prototype.make = make
+function make () {
+ // don't do it more than once.
+ if (this._made) return
+
+ var pattern = this.pattern
+ var options = this.options
+
+ // empty patterns and comments match nothing.
+ if (!options.nocomment && pattern.charAt(0) === '#') {
+ this.comment = true
+ return
+ }
+ if (!pattern) {
+ this.empty = true
+ return
+ }
+
+ // step 1: figure out negation, etc.
+ this.parseNegate()
+
+ // step 2: expand braces
+ var set = this.globSet = this.braceExpand()
+
+ if (options.debug) this.debug = console.error
+
+ this.debug(this.pattern, set)
+
+ // step 3: now we have a set, so turn each one into a series of path-portion
+ // matching patterns.
+ // These will be regexps, except in the case of "**", which is
+ // set to the GLOBSTAR object for globstar behavior,
+ // and will not contain any / characters
+ set = this.globParts = set.map(function (s) {
+ return s.split(slashSplit)
+ })
+
+ this.debug(this.pattern, set)
+
+ // glob --> regexps
+ set = set.map(function (s, si, set) {
+ return s.map(this.parse, this)
+ }, this)
+
+ this.debug(this.pattern, set)
+
+ // filter out everything that didn't compile properly.
+ set = set.filter(function (s) {
+ return s.indexOf(false) === -1
+ })
+
+ this.debug(this.pattern, set)
+
+ this.set = set
+}
+
+Minimatch.prototype.parseNegate = parseNegate
+function parseNegate () {
+ var pattern = this.pattern
+ var negate = false
+ var options = this.options
+ var negateOffset = 0
+
+ if (options.nonegate) return
+
+ for (var i = 0, l = pattern.length
+ ; i < l && pattern.charAt(i) === '!'
+ ; i++) {
+ negate = !negate
+ negateOffset++
+ }
+
+ if (negateOffset) this.pattern = pattern.substr(negateOffset)
+ this.negate = negate
+}
+
+// Brace expansion:
+// a{b,c}d -> abd acd
+// a{b,}c -> abc ac
+// a{0..3}d -> a0d a1d a2d a3d
+// a{b,c{d,e}f}g -> abg acdfg acefg
+// a{b,c}d{e,f}g -> abdeg acdeg abdeg abdfg
+//
+// Invalid sets are not expanded.
+// a{2..}b -> a{2..}b
+// a{b}c -> a{b}c
+minimatch.braceExpand = function (pattern, options) {
+ return braceExpand(pattern, options)
+}
+
+Minimatch.prototype.braceExpand = braceExpand
+
+function braceExpand (pattern, options) {
+ if (!options) {
+ if (this instanceof Minimatch) {
+ options = this.options
+ } else {
+ options = {}
+ }
+ }
+
+ pattern = typeof pattern === 'undefined'
+ ? this.pattern : pattern
+
+ if (typeof pattern === 'undefined') {
+ throw new TypeError('undefined pattern')
+ }
+
+ if (options.nobrace ||
+ !pattern.match(/\{.*\}/)) {
+ // shortcut. no need to expand.
+ return [pattern]
+ }
+
+ return expand(pattern)
+}
+
+// parse a component of the expanded set.
+// At this point, no pattern may contain "/" in it
+// so we're going to return a 2d array, where each entry is the full
+// pattern, split on '/', and then turned into a regular expression.
+// A regexp is made at the end which joins each array with an
+// escaped /, and another full one which joins each regexp with |.
+//
+// Following the lead of Bash 4.1, note that "**" only has special meaning
+// when it is the *only* thing in a path portion. Otherwise, any series
+// of * is equivalent to a single *. Globstar behavior is enabled by
+// default, and can be disabled by setting options.noglobstar.
+Minimatch.prototype.parse = parse
+var SUBPARSE = {}
+function parse (pattern, isSub) {
+ if (pattern.length > 1024 * 64) {
+ throw new TypeError('pattern is too long')
+ }
+
+ var options = this.options
+
+ // shortcuts
+ if (!options.noglobstar && pattern === '**') return GLOBSTAR
+ if (pattern === '') return ''
+
+ var re = ''
+ var hasMagic = !!options.nocase
+ var escaping = false
+ // ? => one single character
+ var patternListStack = []
+ var negativeLists = []
+ var stateChar
+ var inClass = false
+ var reClassStart = -1
+ var classStart = -1
+ // . and .. never match anything that doesn't start with .,
+ // even when options.dot is set.
+ var patternStart = pattern.charAt(0) === '.' ? '' // anything
+ // not (start or / followed by . or .. followed by / or end)
+ : options.dot ? '(?!(?:^|\\\/)\\.{1,2}(?:$|\\\/))'
+ : '(?!\\.)'
+ var self = this
+
+ function clearStateChar () {
+ if (stateChar) {
+ // we had some state-tracking character
+ // that wasn't consumed by this pass.
+ switch (stateChar) {
+ case '*':
+ re += star
+ hasMagic = true
+ break
+ case '?':
+ re += qmark
+ hasMagic = true
+ break
+ default:
+ re += '\\' + stateChar
+ break
+ }
+ self.debug('clearStateChar %j %j', stateChar, re)
+ stateChar = false
+ }
+ }
+
+ for (var i = 0, len = pattern.length, c
+ ; (i < len) && (c = pattern.charAt(i))
+ ; i++) {
+ this.debug('%s\t%s %s %j', pattern, i, re, c)
+
+ // skip over any that are escaped.
+ if (escaping && reSpecials[c]) {
+ re += '\\' + c
+ escaping = false
+ continue
+ }
+
+ switch (c) {
+ case '/':
+ // completely not allowed, even escaped.
+ // Should already be path-split by now.
+ return false
+
+ case '\\':
+ clearStateChar()
+ escaping = true
+ continue
+
+ // the various stateChar values
+ // for the "extglob" stuff.
+ case '?':
+ case '*':
+ case '+':
+ case '@':
+ case '!':
+ this.debug('%s\t%s %s %j <-- stateChar', pattern, i, re, c)
+
+ // all of those are literals inside a class, except that
+ // the glob [!a] means [^a] in regexp
+ if (inClass) {
+ this.debug(' in class')
+ if (c === '!' && i === classStart + 1) c = '^'
+ re += c
+ continue
+ }
+
+ // if we already have a stateChar, then it means
+ // that there was something like ** or +? in there.
+ // Handle the stateChar, then proceed with this one.
+ self.debug('call clearStateChar %j', stateChar)
+ clearStateChar()
+ stateChar = c
+ // if extglob is disabled, then +(asdf|foo) isn't a thing.
+ // just clear the statechar *now*, rather than even diving into
+ // the patternList stuff.
+ if (options.noext) clearStateChar()
+ continue
+
+ case '(':
+ if (inClass) {
+ re += '('
+ continue
+ }
+
+ if (!stateChar) {
+ re += '\\('
+ continue
+ }
+
+ patternListStack.push({
+ type: stateChar,
+ start: i - 1,
+ reStart: re.length,
+ open: plTypes[stateChar].open,
+ close: plTypes[stateChar].close
+ })
+ // negation is (?:(?!js)[^/]*)
+ re += stateChar === '!' ? '(?:(?!(?:' : '(?:'
+ this.debug('plType %j %j', stateChar, re)
+ stateChar = false
+ continue
+
+ case ')':
+ if (inClass || !patternListStack.length) {
+ re += '\\)'
+ continue
+ }
+
+ clearStateChar()
+ hasMagic = true
+ var pl = patternListStack.pop()
+ // negation is (?:(?!js)[^/]*)
+ // The others are (?:<pattern>)<type>
+ re += pl.close
+ if (pl.type === '!') {
+ negativeLists.push(pl)
+ }
+ pl.reEnd = re.length
+ continue
+
+ case '|':
+ if (inClass || !patternListStack.length || escaping) {
+ re += '\\|'
+ escaping = false
+ continue
+ }
+
+ clearStateChar()
+ re += '|'
+ continue
+
+ // these are mostly the same in regexp and glob
+ case '[':
+ // swallow any state-tracking char before the [
+ clearStateChar()
+
+ if (inClass) {
+ re += '\\' + c
+ continue
+ }
+
+ inClass = true
+ classStart = i
+ reClassStart = re.length
+ re += c
+ continue
+
+ case ']':
+ // a right bracket shall lose its special
+ // meaning and represent itself in
+ // a bracket expression if it occurs
+ // first in the list. -- POSIX.2 2.8.3.2
+ if (i === classStart + 1 || !inClass) {
+ re += '\\' + c
+ escaping = false
+ continue
+ }
+
+ // handle the case where we left a class open.
+ // "[z-a]" is valid, equivalent to "\[z-a\]"
+ if (inClass) {
+ // split where the last [ was, make sure we don't have
+ // an invalid re. if so, re-walk the contents of the
+ // would-be class to re-translate any characters that
+ // were passed through as-is
+ // TODO: It would probably be faster to determine this
+ // without a try/catch and a new RegExp, but it's tricky
+ // to do safely. For now, this is safe and works.
+ var cs = pattern.substring(classStart + 1, i)
+ try {
+ RegExp('[' + cs + ']')
+ } catch (er) {
+ // not a valid class!
+ var sp = this.parse(cs, SUBPARSE)
+ re = re.substr(0, reClassStart) + '\\[' + sp[0] + '\\]'
+ hasMagic = hasMagic || sp[1]
+ inClass = false
+ continue
+ }
+ }
+
+ // finish up the class.
+ hasMagic = true
+ inClass = false
+ re += c
+ continue
+
+ default:
+ // swallow any state char that wasn't consumed
+ clearStateChar()
+
+ if (escaping) {
+ // no need
+ escaping = false
+ } else if (reSpecials[c]
+ && !(c === '^' && inClass)) {
+ re += '\\'
+ }
+
+ re += c
+
+ } // switch
+ } // for
+
+ // handle the case where we left a class open.
+ // "[abc" is valid, equivalent to "\[abc"
+ if (inClass) {
+ // split where the last [ was, and escape it
+ // this is a huge pita. We now have to re-walk
+ // the contents of the would-be class to re-translate
+ // any characters that were passed through as-is
+ cs = pattern.substr(classStart + 1)
+ sp = this.parse(cs, SUBPARSE)
+ re = re.substr(0, reClassStart) + '\\[' + sp[0]
+ hasMagic = hasMagic || sp[1]
+ }
+
+ // handle the case where we had a +( thing at the *end*
+ // of the pattern.
+ // each pattern list stack adds 3 chars, and we need to go through
+ // and escape any | chars that were passed through as-is for the regexp.
+ // Go through and escape them, taking care not to double-escape any
+ // | chars that were already escaped.
+ for (pl = patternListStack.pop(); pl; pl = patternListStack.pop()) {
+ var tail = re.slice(pl.reStart + pl.open.length)
+ this.debug('setting tail', re, pl)
+ // maybe some even number of \, then maybe 1 \, followed by a |
+ tail = tail.replace(/((?:\\{2}){0,64})(\\?)\|/g, function (_, $1, $2) {
+ if (!$2) {
+ // the | isn't already escaped, so escape it.
+ $2 = '\\'
+ }
+
+ // need to escape all those slashes *again*, without escaping the
+ // one that we need for escaping the | character. As it works out,
+ // escaping an even number of slashes can be done by simply repeating
+ // it exactly after itself. That's why this trick works.
+ //
+ // I am sorry that you have to see this.
+ return $1 + $1 + $2 + '|'
+ })
+
+ this.debug('tail=%j\n %s', tail, tail, pl, re)
+ var t = pl.type === '*' ? star
+ : pl.type === '?' ? qmark
+ : '\\' + pl.type
+
+ hasMagic = true
+ re = re.slice(0, pl.reStart) + t + '\\(' + tail
+ }
+
+ // handle trailing things that only matter at the very end.
+ clearStateChar()
+ if (escaping) {
+ // trailing \\
+ re += '\\\\'
+ }
+
+ // only need to apply the nodot start if the re starts with
+ // something that could conceivably capture a dot
+ var addPatternStart = false
+ switch (re.charAt(0)) {
+ case '.':
+ case '[':
+ case '(': addPatternStart = true
+ }
+
+ // Hack to work around lack of negative lookbehind in JS
+ // A pattern like: *.!(x).!(y|z) needs to ensure that a name
+ // like 'a.xyz.yz' doesn't match. So, the first negative
+ // lookahead, has to look ALL the way ahead, to the end of
+ // the pattern.
+ for (var n = negativeLists.length - 1; n > -1; n--) {
+ var nl = negativeLists[n]
+
+ var nlBefore = re.slice(0, nl.reStart)
+ var nlFirst = re.slice(nl.reStart, nl.reEnd - 8)
+ var nlLast = re.slice(nl.reEnd - 8, nl.reEnd)
+ var nlAfter = re.slice(nl.reEnd)
+
+ nlLast += nlAfter
+
+ // Handle nested stuff like *(*.js|!(*.json)), where open parens
+ // mean that we should *not* include the ) in the bit that is considered
+ // "after" the negated section.
+ var openParensBefore = nlBefore.split('(').length - 1
+ var cleanAfter = nlAfter
+ for (i = 0; i < openParensBefore; i++) {
+ cleanAfter = cleanAfter.replace(/\)[+*?]?/, '')
+ }
+ nlAfter = cleanAfter
+
+ var dollar = ''
+ if (nlAfter === '' && isSub !== SUBPARSE) {
+ dollar = '$'
+ }
+ var newRe = nlBefore + nlFirst + nlAfter + dollar + nlLast
+ re = newRe
+ }
+
+ // if the re is not "" at this point, then we need to make sure
+ // it doesn't match against an empty path part.
+ // Otherwise a/* will match a/, which it should not.
+ if (re !== '' && hasMagic) {
+ re = '(?=.)' + re
+ }
+
+ if (addPatternStart) {
+ re = patternStart + re
+ }
+
+ // parsing just a piece of a larger pattern.
+ if (isSub === SUBPARSE) {
+ return [re, hasMagic]
+ }
+
+ // skip the regexp for non-magical patterns
+ // unescape anything in it, though, so that it'll be
+ // an exact match against a file etc.
+ if (!hasMagic) {
+ return globUnescape(pattern)
+ }
+
+ var flags = options.nocase ? 'i' : ''
+ try {
+ var regExp = new RegExp('^' + re + '$', flags)
+ } catch (er) {
+ // If it was an invalid regular expression, then it can't match
+ // anything. This trick looks for a character after the end of
+ // the string, which is of course impossible, except in multi-line
+ // mode, but it's not a /m regex.
+ return new RegExp('$.')
+ }
+
+ regExp._glob = pattern
+ regExp._src = re
+
+ return regExp
+}
+
+minimatch.makeRe = function (pattern, options) {
+ return new Minimatch(pattern, options || {}).makeRe()
+}
+
+Minimatch.prototype.makeRe = makeRe
+function makeRe () {
+ if (this.regexp || this.regexp === false) return this.regexp
+
+ // at this point, this.set is a 2d array of partial
+ // pattern strings, or "**".
+ //
+ // It's better to use .match(). This function shouldn't
+ // be used, really, but it's pretty convenient sometimes,
+ // when you just want to work with a regex.
+ var set = this.set
+
+ if (!set.length) {
+ this.regexp = false
+ return this.regexp
+ }
+ var options = this.options
+
+ var twoStar = options.noglobstar ? star
+ : options.dot ? twoStarDot
+ : twoStarNoDot
+ var flags = options.nocase ? 'i' : ''
+
+ var re = set.map(function (pattern) {
+ return pattern.map(function (p) {
+ return (p === GLOBSTAR) ? twoStar
+ : (typeof p === 'string') ? regExpEscape(p)
+ : p._src
+ }).join('\\\/')
+ }).join('|')
+
+ // must match entire pattern
+ // ending in a * or ** will make it less strict.
+ re = '^(?:' + re + ')$'
+
+ // can match anything, as long as it's not this.
+ if (this.negate) re = '^(?!' + re + ').*$'
+
+ try {
+ this.regexp = new RegExp(re, flags)
+ } catch (ex) {
+ this.regexp = false
+ }
+ return this.regexp
+}
+
+minimatch.match = function (list, pattern, options) {
+ options = options || {}
+ var mm = new Minimatch(pattern, options)
+ list = list.filter(function (f) {
+ return mm.match(f)
+ })
+ if (mm.options.nonull && !list.length) {
+ list.push(pattern)
+ }
+ return list
+}
+
+Minimatch.prototype.match = match
+function match (f, partial) {
+ this.debug('match', f, this.pattern)
+ // short-circuit in the case of busted things.
+ // comments, etc.
+ if (this.comment) return false
+ if (this.empty) return f === ''
+
+ if (f === '/' && partial) return true
+
+ var options = this.options
+
+ // windows: need to use /, not \
+ if (path.sep !== '/') {
+ f = f.split(path.sep).join('/')
+ }
+
+ // treat the test path as a set of pathparts.
+ f = f.split(slashSplit)
+ this.debug(this.pattern, 'split', f)
+
+ // just ONE of the pattern sets in this.set needs to match
+ // in order for it to be valid. If negating, then just one
+ // match means that we have failed.
+ // Either way, return on the first hit.
+
+ var set = this.set
+ this.debug(this.pattern, 'set', set)
+
+ // Find the basename of the path by looking for the last non-empty segment
+ var filename
+ var i
+ for (i = f.length - 1; i >= 0; i--) {
+ filename = f[i]
+ if (filename) break
+ }
+
+ for (i = 0; i < set.length; i++) {
+ var pattern = set[i]
+ var file = f
+ if (options.matchBase && pattern.length === 1) {
+ file = [filename]
+ }
+ var hit = this.matchOne(file, pattern, partial)
+ if (hit) {
+ if (options.flipNegate) return true
+ return !this.negate
+ }
+ }
+
+ // didn't get any hits. this is success if it's a negative
+ // pattern, failure otherwise.
+ if (options.flipNegate) return false
+ return this.negate
+}
+
+// set partial to true to test if, for example,
+// "/a/b" matches the start of "/*/b/*/d"
+// Partial means, if you run out of file before you run
+// out of pattern, then that's fine, as long as all
+// the parts match.
+Minimatch.prototype.matchOne = function (file, pattern, partial) {
+ var options = this.options
+
+ this.debug('matchOne',
+ { 'this': this, file: file, pattern: pattern })
+
+ this.debug('matchOne', file.length, pattern.length)
+
+ for (var fi = 0,
+ pi = 0,
+ fl = file.length,
+ pl = pattern.length
+ ; (fi < fl) && (pi < pl)
+ ; fi++, pi++) {
+ this.debug('matchOne loop')
+ var p = pattern[pi]
+ var f = file[fi]
+
+ this.debug(pattern, p, f)
+
+ // should be impossible.
+ // some invalid regexp stuff in the set.
+ if (p === false) return false
+
+ if (p === GLOBSTAR) {
+ this.debug('GLOBSTAR', [pattern, p, f])
+
+ // "**"
+ // a/**/b/**/c would match the following:
+ // a/b/x/y/z/c
+ // a/x/y/z/b/c
+ // a/b/x/b/x/c
+ // a/b/c
+ // To do this, take the rest of the pattern after
+ // the **, and see if it would match the file remainder.
+ // If so, return success.
+ // If not, the ** "swallows" a segment, and try again.
+ // This is recursively awful.
+ //
+ // a/**/b/**/c matching a/b/x/y/z/c
+ // - a matches a
+ // - doublestar
+ // - matchOne(b/x/y/z/c, b/**/c)
+ // - b matches b
+ // - doublestar
+ // - matchOne(x/y/z/c, c) -> no
+ // - matchOne(y/z/c, c) -> no
+ // - matchOne(z/c, c) -> no
+ // - matchOne(c, c) yes, hit
+ var fr = fi
+ var pr = pi + 1
+ if (pr === pl) {
+ this.debug('** at the end')
+ // a ** at the end will just swallow the rest.
+ // We have found a match.
+ // however, it will not swallow /.x, unless
+ // options.dot is set.
+ // . and .. are *never* matched by **, for explosively
+ // exponential reasons.
+ for (; fi < fl; fi++) {
+ if (file[fi] === '.' || file[fi] === '..' ||
+ (!options.dot && file[fi].charAt(0) === '.')) return false
+ }
+ return true
+ }
+
+ // ok, let's see if we can swallow whatever we can.
+ while (fr < fl) {
+ var swallowee = file[fr]
+
+ this.debug('\nglobstar while', file, fr, pattern, pr, swallowee)
+
+ // XXX remove this slice. Just pass the start index.
+ if (this.matchOne(file.slice(fr), pattern.slice(pr), partial)) {
+ this.debug('globstar found match!', fr, fl, swallowee)
+ // found a match.
+ return true
+ } else {
+ // can't swallow "." or ".." ever.
+ // can only swallow ".foo" when explicitly asked.
+ if (swallowee === '.' || swallowee === '..' ||
+ (!options.dot && swallowee.charAt(0) === '.')) {
+ this.debug('dot detected!', file, fr, pattern, pr)
+ break
+ }
+
+ // ** swallows a segment, and continue.
+ this.debug('globstar swallow a segment, and continue')
+ fr++
+ }
+ }
+
+ // no match was found.
+ // However, in partial mode, we can't say this is necessarily over.
+ // If there's more *pattern* left, then
+ if (partial) {
+ // ran out of file
+ this.debug('\n>>> no match, partial?', file, fr, pattern, pr)
+ if (fr === fl) return true
+ }
+ return false
+ }
+
+ // something other than **
+ // non-magic patterns just have to match exactly
+ // patterns with magic have been turned into regexps.
+ var hit
+ if (typeof p === 'string') {
+ if (options.nocase) {
+ hit = f.toLowerCase() === p.toLowerCase()
+ } else {
+ hit = f === p
+ }
+ this.debug('string match', p, f, hit)
+ } else {
+ hit = f.match(p)
+ this.debug('pattern match', p, f, hit)
+ }
+
+ if (!hit) return false
+ }
+
+ // Note: ending in / means that we'll get a final ""
+ // at the end of the pattern. This can only match a
+ // corresponding "" at the end of the file.
+ // If the file ends in /, then it can only match a
+ // a pattern that ends in /, unless the pattern just
+ // doesn't have any more for it. But, a/b/ should *not*
+ // match "a/b/*", even though "" matches against the
+ // [^/]*? pattern, except in partial mode, where it might
+ // simply not be reached yet.
+ // However, a/b/ should still satisfy a/*
+
+ // now either we fell off the end of the pattern, or we're done.
+ if (fi === fl && pi === pl) {
+ // ran out of pattern and filename at the same time.
+ // an exact hit!
+ return true
+ } else if (fi === fl) {
+ // ran out of file, but still had pattern left.
+ // this is ok if we're doing the match as part of
+ // a glob fs traversal.
+ return partial
+ } else if (pi === pl) {
+ // ran out of pattern, still have file left.
+ // this is only acceptable if we're on the very last
+ // empty segment of a file with a trailing slash.
+ // a/* should match a/b/
+ var emptyFileEnd = (fi === fl - 1) && (file[fi] === '')
+ return emptyFileEnd
+ }
+
+ // should be unreachable.
+ throw new Error('wtf?')
+}
+
+// replace stuff like \* with *
+function globUnescape (s) {
+ return s.replace(/\\(.)/g, '$1')
+}
+
+function regExpEscape (s) {
+ return s.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, '\\$&')
+}
+
+},{"brace-expansion":11,"path":22}],21:[function(require,module,exports){
+var wrappy = require('wrappy')
+module.exports = wrappy(once)
+module.exports.strict = wrappy(onceStrict)
+
+once.proto = once(function () {
+ Object.defineProperty(Function.prototype, 'once', {
+ value: function () {
+ return once(this)
+ },
+ configurable: true
+ })
+
+ Object.defineProperty(Function.prototype, 'onceStrict', {
+ value: function () {
+ return onceStrict(this)
+ },
+ configurable: true
+ })
+})
+
+function once (fn) {
+ var f = function () {
+ if (f.called) return f.value
+ f.called = true
+ return f.value = fn.apply(this, arguments)
+ }
+ f.called = false
+ return f
+}
+
+function onceStrict (fn) {
+ var f = function () {
+ if (f.called)
+ throw new Error(f.onceError)
+ f.called = true
+ return f.value = fn.apply(this, arguments)
+ }
+ var name = fn.name || 'Function wrapped with `once`'
+ f.onceError = name + " shouldn't be called more than once"
+ f.called = false
+ return f
+}
+
+},{"wrappy":29}],22:[function(require,module,exports){
+(function (process){
+// Copyright Joyent, Inc. and other Node contributors.
+//
+// Permission is hereby granted, free of charge, to any person obtaining a
+// copy of this software and associated documentation files (the
+// "Software"), to deal in the Software without restriction, including
+// without limitation the rights to use, copy, modify, merge, publish,
+// distribute, sublicense, and/or sell copies of the Software, and to permit
+// persons to whom the Software is furnished to do so, subject to the
+// following conditions:
+//
+// The above copyright notice and this permission notice shall be included
+// in all copies or substantial portions of the Software.
+//
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
+// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
+// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
+// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
+// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
+// USE OR OTHER DEALINGS IN THE SOFTWARE.
+
+// resolves . and .. elements in a path array with directory names there
+// must be no slashes, empty elements, or device names (c:\) in the array
+// (so also no leading and trailing slashes - it does not distinguish
+// relative and absolute paths)
+function normalizeArray(parts, allowAboveRoot) {
+ // if the path tries to go above the root, `up` ends up > 0
+ var up = 0;
+ for (var i = parts.length - 1; i >= 0; i--) {
+ var last = parts[i];
+ if (last === '.') {
+ parts.splice(i, 1);
+ } else if (last === '..') {
+ parts.splice(i, 1);
+ up++;
+ } else if (up) {
+ parts.splice(i, 1);
+ up--;
+ }
+ }
+
+ // if the path is allowed to go above the root, restore leading ..s
+ if (allowAboveRoot) {
+ for (; up--; up) {
+ parts.unshift('..');
+ }
+ }
+
+ return parts;
+}
+
+// Split a filename into [root, dir, basename, ext], unix version
+// 'root' is just a slash, or nothing.
+var splitPathRe =
+ /^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/;
+var splitPath = function(filename) {
+ return splitPathRe.exec(filename).slice(1);
+};
+
+// path.resolve([from ...], to)
+// posix version
+exports.resolve = function() {
+ var resolvedPath = '',
+ resolvedAbsolute = false;
+
+ for (var i = arguments.length - 1; i >= -1 && !resolvedAbsolute; i--) {
+ var path = (i >= 0) ? arguments[i] : process.cwd();
+
+ // Skip empty and invalid entries
+ if (typeof path !== 'string') {
+ throw new TypeError('Arguments to path.resolve must be strings');
+ } else if (!path) {
+ continue;
+ }
+
+ resolvedPath = path + '/' + resolvedPath;
+ resolvedAbsolute = path.charAt(0) === '/';
+ }
+
+ // At this point the path should be resolved to a full absolute path, but
+ // handle relative paths to be safe (might happen when process.cwd() fails)
+
+ // Normalize the path
+ resolvedPath = normalizeArray(filter(resolvedPath.split('/'), function(p) {
+ return !!p;
+ }), !resolvedAbsolute).join('/');
+
+ return ((resolvedAbsolute ? '/' : '') + resolvedPath) || '.';
+};
+
+// path.normalize(path)
+// posix version
+exports.normalize = function(path) {
+ var isAbsolute = exports.isAbsolute(path),
+ trailingSlash = substr(path, -1) === '/';
+
+ // Normalize the path
+ path = normalizeArray(filter(path.split('/'), function(p) {
+ return !!p;
+ }), !isAbsolute).join('/');
+
+ if (!path && !isAbsolute) {
+ path = '.';
+ }
+ if (path && trailingSlash) {
+ path += '/';
+ }
+
+ return (isAbsolute ? '/' : '') + path;
+};
+
+// posix version
+exports.isAbsolute = function(path) {
+ return path.charAt(0) === '/';
+};
+
+// posix version
+exports.join = function() {
+ var paths = Array.prototype.slice.call(arguments, 0);
+ return exports.normalize(filter(paths, function(p, index) {
+ if (typeof p !== 'string') {
+ throw new TypeError('Arguments to path.join must be strings');
+ }
+ return p;
+ }).join('/'));
+};
+
+
+// path.relative(from, to)
+// posix version
+exports.relative = function(from, to) {
+ from = exports.resolve(from).substr(1);
+ to = exports.resolve(to).substr(1);
+
+ function trim(arr) {
+ var start = 0;
+ for (; start < arr.length; start++) {
+ if (arr[start] !== '') break;
+ }
+
+ var end = arr.length - 1;
+ for (; end >= 0; end--) {
+ if (arr[end] !== '') break;
+ }
+
+ if (start > end) return [];
+ return arr.slice(start, end - start + 1);
+ }
+
+ var fromParts = trim(from.split('/'));
+ var toParts = trim(to.split('/'));
+
+ var length = Math.min(fromParts.length, toParts.length);
+ var samePartsLength = length;
+ for (var i = 0; i < length; i++) {
+ if (fromParts[i] !== toParts[i]) {
+ samePartsLength = i;
+ break;
+ }
+ }
+
+ var outputParts = [];
+ for (var i = samePartsLength; i < fromParts.length; i++) {
+ outputParts.push('..');
+ }
+
+ outputParts = outputParts.concat(toParts.slice(samePartsLength));
+
+ return outputParts.join('/');
+};
+
+exports.sep = '/';
+exports.delimiter = ':';
+
+exports.dirname = function(path) {
+ var result = splitPath(path),
+ root = result[0],
+ dir = result[1];
+
+ if (!root && !dir) {
+ // No dirname whatsoever
+ return '.';
+ }
+
+ if (dir) {
+ // It has a dirname, strip trailing slash
+ dir = dir.substr(0, dir.length - 1);
+ }
+
+ return root + dir;
+};
+
+
+exports.basename = function(path, ext) {
+ var f = splitPath(path)[2];
+ // TODO: make this comparison case-insensitive on windows?
+ if (ext && f.substr(-1 * ext.length) === ext) {
+ f = f.substr(0, f.length - ext.length);
+ }
+ return f;
+};
+
+
+exports.extname = function(path) {
+ return splitPath(path)[3];
+};
+
+function filter (xs, f) {
+ if (xs.filter) return xs.filter(f);
+ var res = [];
+ for (var i = 0; i < xs.length; i++) {
+ if (f(xs[i], i, xs)) res.push(xs[i]);
+ }
+ return res;
+}
+
+// String.prototype.substr - negative index don't work in IE8
+var substr = 'ab'.substr(-1) === 'b'
+ ? function (str, start, len) { return str.substr(start, len) }
+ : function (str, start, len) {
+ if (start < 0) start = str.length + start;
+ return str.substr(start, len);
+ }
+;
+
+}).call(this,require('_process'))
+},{"_process":24}],23:[function(require,module,exports){
+(function (process){
+'use strict';
+
+function posix(path) {
+ return path.charAt(0) === '/';
+}
+
+function win32(path) {
+ // https://github.com/nodejs/node/blob/b3fcc245fb25539909ef1d5eaa01dbf92e168633/lib/path.js#L56
+ var splitDeviceRe = /^([a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?([\\\/])?([\s\S]*?)$/;
+ var result = splitDeviceRe.exec(path);
+ var device = result[1] || '';
+ var isUnc = Boolean(device && device.charAt(1) !== ':');
+
+ // UNC paths are always absolute
+ return Boolean(result[2] || isUnc);
+}
+
+module.exports = process.platform === 'win32' ? win32 : posix;
+module.exports.posix = posix;
+module.exports.win32 = win32;
+
+}).call(this,require('_process'))
+},{"_process":24}],24:[function(require,module,exports){
+// shim for using process in browser
+var process = module.exports = {};
+
+// cached from whatever global is present so that test runners that stub it
+// don't break things. But we need to wrap it in a try catch in case it is
+// wrapped in strict mode code which doesn't define any globals. It's inside a
+// function because try/catches deoptimize in certain engines.
+
+var cachedSetTimeout;
+var cachedClearTimeout;
+
+function defaultSetTimout() {
+ throw new Error('setTimeout has not been defined');
+}
+function defaultClearTimeout () {
+ throw new Error('clearTimeout has not been defined');
+}
+(function () {
+ try {
+ if (typeof setTimeout === 'function') {
+ cachedSetTimeout = setTimeout;
+ } else {
+ cachedSetTimeout = defaultSetTimout;
+ }
+ } catch (e) {
+ cachedSetTimeout = defaultSetTimout;
+ }
+ try {
+ if (typeof clearTimeout === 'function') {
+ cachedClearTimeout = clearTimeout;
+ } else {
+ cachedClearTimeout = defaultClearTimeout;
+ }
+ } catch (e) {
+ cachedClearTimeout = defaultClearTimeout;
+ }
+} ())
+function runTimeout(fun) {
+ if (cachedSetTimeout === setTimeout) {
+ //normal enviroments in sane situations
+ return setTimeout(fun, 0);
+ }
+ // if setTimeout wasn't available but was latter defined
+ if ((cachedSetTimeout === defaultSetTimout || !cachedSetTimeout) && setTimeout) {
+ cachedSetTimeout = setTimeout;
+ return setTimeout(fun, 0);
+ }
+ try {
+ // when when somebody has screwed with setTimeout but no I.E. maddness
+ return cachedSetTimeout(fun, 0);
+ } catch(e){
+ try {
+ // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally
+ return cachedSetTimeout.call(null, fun, 0);
+ } catch(e){
+ // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error
+ return cachedSetTimeout.call(this, fun, 0);
+ }
+ }
+
+
+}
+function runClearTimeout(marker) {
+ if (cachedClearTimeout === clearTimeout) {
+ //normal enviroments in sane situations
+ return clearTimeout(marker);
+ }
+ // if clearTimeout wasn't available but was latter defined
+ if ((cachedClearTimeout === defaultClearTimeout || !cachedClearTimeout) && clearTimeout) {
+ cachedClearTimeout = clearTimeout;
+ return clearTimeout(marker);
+ }
+ try {
+ // when when somebody has screwed with setTimeout but no I.E. maddness
+ return cachedClearTimeout(marker);
+ } catch (e){
+ try {
+ // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally
+ return cachedClearTimeout.call(null, marker);
+ } catch (e){
+ // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error.
+ // Some versions of I.E. have different rules for clearTimeout vs setTimeout
+ return cachedClearTimeout.call(this, marker);
+ }
+ }
+
+
+
+}
+var queue = [];
+var draining = false;
+var currentQueue;
+var queueIndex = -1;
+
+function cleanUpNextTick() {
+ if (!draining || !currentQueue) {
+ return;
+ }
+ draining = false;
+ if (currentQueue.length) {
+ queue = currentQueue.concat(queue);
+ } else {
+ queueIndex = -1;
+ }
+ if (queue.length) {
+ drainQueue();
+ }
+}
+
+function drainQueue() {
+ if (draining) {
+ return;
+ }
+ var timeout = runTimeout(cleanUpNextTick);
+ draining = true;
+
+ var len = queue.length;
+ while(len) {
+ currentQueue = queue;
+ queue = [];
+ while (++queueIndex < len) {
+ if (currentQueue) {
+ currentQueue[queueIndex].run();
+ }
+ }
+ queueIndex = -1;
+ len = queue.length;
+ }
+ currentQueue = null;
+ draining = false;
+ runClearTimeout(timeout);
+}
+
+process.nextTick = function (fun) {
+ var args = new Array(arguments.length - 1);
+ if (arguments.length > 1) {
+ for (var i = 1; i < arguments.length; i++) {
+ args[i - 1] = arguments[i];
+ }
+ }
+ queue.push(new Item(fun, args));
+ if (queue.length === 1 && !draining) {
+ runTimeout(drainQueue);
+ }
+};
+
+// v8 likes predictible objects
+function Item(fun, array) {
+ this.fun = fun;
+ this.array = array;
+}
+Item.prototype.run = function () {
+ this.fun.apply(null, this.array);
+};
+process.title = 'browser';
+process.browser = true;
+process.env = {};
+process.argv = [];
+process.version = ''; // empty string to avoid regexp issues
+process.versions = {};
+
+function noop() {}
+
+process.on = noop;
+process.addListener = noop;
+process.once = noop;
+process.off = noop;
+process.removeListener = noop;
+process.removeAllListeners = noop;
+process.emit = noop;
+process.prependListener = noop;
+process.prependOnceListener = noop;
+
+process.listeners = function (name) { return [] }
+
+process.binding = function (name) {
+ throw new Error('process.binding is not supported');
+};
+
+process.cwd = function () { return '/' };
+process.chdir = function (dir) {
+ throw new Error('process.chdir is not supported');
+};
+process.umask = function() { return 0; };
+
+},{}],25:[function(require,module,exports){
+// Underscore.js 1.8.3
+// http://underscorejs.org
+// (c) 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
+// Underscore may be freely distributed under the MIT license.
+
+(function() {
+
+ // Baseline setup
+ // --------------
+
+ // Establish the root object, `window` in the browser, or `exports` on the server.
+ var root = this;
+
+ // Save the previous value of the `_` variable.
+ var previousUnderscore = root._;
+
+ // Save bytes in the minified (but not gzipped) version:
+ var ArrayProto = Array.prototype, ObjProto = Object.prototype, FuncProto = Function.prototype;
+
+ // Create quick reference variables for speed access to core prototypes.
+ var
+ push = ArrayProto.push,
+ slice = ArrayProto.slice,
+ toString = ObjProto.toString,
+ hasOwnProperty = ObjProto.hasOwnProperty;
+
+ // All **ECMAScript 5** native function implementations that we hope to use
+ // are declared here.
+ var
+ nativeIsArray = Array.isArray,
+ nativeKeys = Object.keys,
+ nativeBind = FuncProto.bind,
+ nativeCreate = Object.create;
+
+ // Naked function reference for surrogate-prototype-swapping.
+ var Ctor = function(){};
+
+ // Create a safe reference to the Underscore object for use below.
+ var _ = function(obj) {
+ if (obj instanceof _) return obj;
+ if (!(this instanceof _)) return new _(obj);
+ this._wrapped = obj;
+ };
+
+ // Export the Underscore object for **Node.js**, with
+ // backwards-compatibility for the old `require()` API. If we're in
+ // the browser, add `_` as a global object.
+ if (typeof exports !== 'undefined') {
+ if (typeof module !== 'undefined' && module.exports) {
+ exports = module.exports = _;
+ }
+ exports._ = _;
+ } else {
+ root._ = _;
+ }
+
+ // Current version.
+ _.VERSION = '1.8.3';
+
+ // Internal function that returns an efficient (for current engines) version
+ // of the passed-in callback, to be repeatedly applied in other Underscore
+ // functions.
+ var optimizeCb = function(func, context, argCount) {
+ if (context === void 0) return func;
+ switch (argCount == null ? 3 : argCount) {
+ case 1: return function(value) {
+ return func.call(context, value);
+ };
+ case 2: return function(value, other) {
+ return func.call(context, value, other);
+ };
+ case 3: return function(value, index, collection) {
+ return func.call(context, value, index, collection);
+ };
+ case 4: return function(accumulator, value, index, collection) {
+ return func.call(context, accumulator, value, index, collection);
+ };
+ }
+ return function() {
+ return func.apply(context, arguments);
+ };
+ };
+
+ // A mostly-internal function to generate callbacks that can be applied
+ // to each element in a collection, returning the desired result — either
+ // identity, an arbitrary callback, a property matcher, or a property accessor.
+ var cb = function(value, context, argCount) {
+ if (value == null) return _.identity;
+ if (_.isFunction(value)) return optimizeCb(value, context, argCount);
+ if (_.isObject(value)) return _.matcher(value);
+ return _.property(value);
+ };
+ _.iteratee = function(value, context) {
+ return cb(value, context, Infinity);
+ };
+
+ // An internal function for creating assigner functions.
+ var createAssigner = function(keysFunc, undefinedOnly) {
+ return function(obj) {
+ var length = arguments.length;
+ if (length < 2 || obj == null) return obj;
+ for (var index = 1; index < length; index++) {
+ var source = arguments[index],
+ keys = keysFunc(source),
+ l = keys.length;
+ for (var i = 0; i < l; i++) {
+ var key = keys[i];
+ if (!undefinedOnly || obj[key] === void 0) obj[key] = source[key];
+ }
+ }
+ return obj;
+ };
+ };
+
+ // An internal function for creating a new object that inherits from another.
+ var baseCreate = function(prototype) {
+ if (!_.isObject(prototype)) return {};
+ if (nativeCreate) return nativeCreate(prototype);
+ Ctor.prototype = prototype;
+ var result = new Ctor;
+ Ctor.prototype = null;
+ return result;
+ };
+
+ var property = function(key) {
+ return function(obj) {
+ return obj == null ? void 0 : obj[key];
+ };
+ };
+
+ // Helper for collection methods to determine whether a collection
+ // should be iterated as an array or as an object
+ // Related: http://people.mozilla.org/~jorendorff/es6-draft.html#sec-tolength
+ // Avoids a very nasty iOS 8 JIT bug on ARM-64. #2094
+ var MAX_ARRAY_INDEX = Math.pow(2, 53) - 1;
+ var getLength = property('length');
+ var isArrayLike = function(collection) {
+ var length = getLength(collection);
+ return typeof length == 'number' && length >= 0 && length <= MAX_ARRAY_INDEX;
+ };
+
+ // Collection Functions
+ // --------------------
+
+ // The cornerstone, an `each` implementation, aka `forEach`.
+ // Handles raw objects in addition to array-likes. Treats all
+ // sparse array-likes as if they were dense.
+ _.each = _.forEach = function(obj, iteratee, context) {
+ iteratee = optimizeCb(iteratee, context);
+ var i, length;
+ if (isArrayLike(obj)) {
+ for (i = 0, length = obj.length; i < length; i++) {
+ iteratee(obj[i], i, obj);
+ }
+ } else {
+ var keys = _.keys(obj);
+ for (i = 0, length = keys.length; i < length; i++) {
+ iteratee(obj[keys[i]], keys[i], obj);
+ }
+ }
+ return obj;
+ };
+
+ // Return the results of applying the iteratee to each element.
+ _.map = _.collect = function(obj, iteratee, context) {
+ iteratee = cb(iteratee, context);
+ var keys = !isArrayLike(obj) && _.keys(obj),
+ length = (keys || obj).length,
+ results = Array(length);
+ for (var index = 0; index < length; index++) {
+ var currentKey = keys ? keys[index] : index;
+ results[index] = iteratee(obj[currentKey], currentKey, obj);
+ }
+ return results;
+ };
+
+ // Create a reducing function iterating left or right.
+ function createReduce(dir) {
+ // Optimized iterator function as using arguments.length
+ // in the main function will deoptimize the, see #1991.
+ function iterator(obj, iteratee, memo, keys, index, length) {
+ for (; index >= 0 && index < length; index += dir) {
+ var currentKey = keys ? keys[index] : index;
+ memo = iteratee(memo, obj[currentKey], currentKey, obj);
+ }
+ return memo;
+ }
+
+ return function(obj, iteratee, memo, context) {
+ iteratee = optimizeCb(iteratee, context, 4);
+ var keys = !isArrayLike(obj) && _.keys(obj),
+ length = (keys || obj).length,
+ index = dir > 0 ? 0 : length - 1;
+ // Determine the initial value if none is provided.
+ if (arguments.length < 3) {
+ memo = obj[keys ? keys[index] : index];
+ index += dir;
+ }
+ return iterator(obj, iteratee, memo, keys, index, length);
+ };
+ }
+
+ // **Reduce** builds up a single result from a list of values, aka `inject`,
+ // or `foldl`.
+ _.reduce = _.foldl = _.inject = createReduce(1);
+
+ // The right-associative version of reduce, also known as `foldr`.
+ _.reduceRight = _.foldr = createReduce(-1);
+
+ // Return the first value which passes a truth test. Aliased as `detect`.
+ _.find = _.detect = function(obj, predicate, context) {
+ var key;
+ if (isArrayLike(obj)) {
+ key = _.findIndex(obj, predicate, context);
+ } else {
+ key = _.findKey(obj, predicate, context);
+ }
+ if (key !== void 0 && key !== -1) return obj[key];
+ };
+
+ // Return all the elements that pass a truth test.
+ // Aliased as `select`.
+ _.filter = _.select = function(obj, predicate, context) {
+ var results = [];
+ predicate = cb(predicate, context);
+ _.each(obj, function(value, index, list) {
+ if (predicate(value, index, list)) results.push(value);
+ });
+ return results;
+ };
+
+ // Return all the elements for which a truth test fails.
+ _.reject = function(obj, predicate, context) {
+ return _.filter(obj, _.negate(cb(predicate)), context);
+ };
+
+ // Determine whether all of the elements match a truth test.
+ // Aliased as `all`.
+ _.every = _.all = function(obj, predicate, context) {
+ predicate = cb(predicate, context);
+ var keys = !isArrayLike(obj) && _.keys(obj),
+ length = (keys || obj).length;
+ for (var index = 0; index < length; index++) {
+ var currentKey = keys ? keys[index] : index;
+ if (!predicate(obj[currentKey], currentKey, obj)) return false;
+ }
+ return true;
+ };
+
+ // Determine if at least one element in the object matches a truth test.
+ // Aliased as `any`.
+ _.some = _.any = function(obj, predicate, context) {
+ predicate = cb(predicate, context);
+ var keys = !isArrayLike(obj) && _.keys(obj),
+ length = (keys || obj).length;
+ for (var index = 0; index < length; index++) {
+ var currentKey = keys ? keys[index] : index;
+ if (predicate(obj[currentKey], currentKey, obj)) return true;
+ }
+ return false;
+ };
+
+ // Determine if the array or object contains a given item (using `===`).
+ // Aliased as `includes` and `include`.
+ _.contains = _.includes = _.include = function(obj, item, fromIndex, guard) {
+ if (!isArrayLike(obj)) obj = _.values(obj);
+ if (typeof fromIndex != 'number' || guard) fromIndex = 0;
+ return _.indexOf(obj, item, fromIndex) >= 0;
+ };
+
+ // Invoke a method (with arguments) on every item in a collection.
+ _.invoke = function(obj, method) {
+ var args = slice.call(arguments, 2);
+ var isFunc = _.isFunction(method);
+ return _.map(obj, function(value) {
+ var func = isFunc ? method : value[method];
+ return func == null ? func : func.apply(value, args);
+ });
+ };
+
+ // Convenience version of a common use case of `map`: fetching a property.
+ _.pluck = function(obj, key) {
+ return _.map(obj, _.property(key));
+ };
+
+ // Convenience version of a common use case of `filter`: selecting only objects
+ // containing specific `key:value` pairs.
+ _.where = function(obj, attrs) {
+ return _.filter(obj, _.matcher(attrs));
+ };
+
+ // Convenience version of a common use case of `find`: getting the first object
+ // containing specific `key:value` pairs.
+ _.findWhere = function(obj, attrs) {
+ return _.find(obj, _.matcher(attrs));
+ };
+
+ // Return the maximum element (or element-based computation).
+ _.max = function(obj, iteratee, context) {
+ var result = -Infinity, lastComputed = -Infinity,
+ value, computed;
+ if (iteratee == null && obj != null) {
+ obj = isArrayLike(obj) ? obj : _.values(obj);
+ for (var i = 0, length = obj.length; i < length; i++) {
+ value = obj[i];
+ if (value > result) {
+ result = value;
+ }
+ }
+ } else {
+ iteratee = cb(iteratee, context);
+ _.each(obj, function(value, index, list) {
+ computed = iteratee(value, index, list);
+ if (computed > lastComputed || computed === -Infinity && result === -Infinity) {
+ result = value;
+ lastComputed = computed;
+ }
+ });
+ }
+ return result;
+ };
+
+ // Return the minimum element (or element-based computation).
+ _.min = function(obj, iteratee, context) {
+ var result = Infinity, lastComputed = Infinity,
+ value, computed;
+ if (iteratee == null && obj != null) {
+ obj = isArrayLike(obj) ? obj : _.values(obj);
+ for (var i = 0, length = obj.length; i < length; i++) {
+ value = obj[i];
+ if (value < result) {
+ result = value;
+ }
+ }
+ } else {
+ iteratee = cb(iteratee, context);
+ _.each(obj, function(value, index, list) {
+ computed = iteratee(value, index, list);
+ if (computed < lastComputed || computed === Infinity && result === Infinity) {
+ result = value;
+ lastComputed = computed;
+ }
+ });
+ }
+ return result;
+ };
+
+ // Shuffle a collection, using the modern version of the
+ // [Fisher-Yates shuffle](http://en.wikipedia.org/wiki/Fisher–Yates_shuffle).
+ _.shuffle = function(obj) {
+ var set = isArrayLike(obj) ? obj : _.values(obj);
+ var length = set.length;
+ var shuffled = Array(length);
+ for (var index = 0, rand; index < length; index++) {
+ rand = _.random(0, index);
+ if (rand !== index) shuffled[index] = shuffled[rand];
+ shuffled[rand] = set[index];
+ }
+ return shuffled;
+ };
+
+ // Sample **n** random values from a collection.
+ // If **n** is not specified, returns a single random element.
+ // The internal `guard` argument allows it to work with `map`.
+ _.sample = function(obj, n, guard) {
+ if (n == null || guard) {
+ if (!isArrayLike(obj)) obj = _.values(obj);
+ return obj[_.random(obj.length - 1)];
+ }
+ return _.shuffle(obj).slice(0, Math.max(0, n));
+ };
+
+ // Sort the object's values by a criterion produced by an iteratee.
+ _.sortBy = function(obj, iteratee, context) {
+ iteratee = cb(iteratee, context);
+ return _.pluck(_.map(obj, function(value, index, list) {
+ return {
+ value: value,
+ index: index,
+ criteria: iteratee(value, index, list)
+ };
+ }).sort(function(left, right) {
+ var a = left.criteria;
+ var b = right.criteria;
+ if (a !== b) {
+ if (a > b || a === void 0) return 1;
+ if (a < b || b === void 0) return -1;
+ }
+ return left.index - right.index;
+ }), 'value');
+ };
+
+ // An internal function used for aggregate "group by" operations.
+ var group = function(behavior) {
+ return function(obj, iteratee, context) {
+ var result = {};
+ iteratee = cb(iteratee, context);
+ _.each(obj, function(value, index) {
+ var key = iteratee(value, index, obj);
+ behavior(result, value, key);
+ });
+ return result;
+ };
+ };
+
+ // Groups the object's values by a criterion. Pass either a string attribute
+ // to group by, or a function that returns the criterion.
+ _.groupBy = group(function(result, value, key) {
+ if (_.has(result, key)) result[key].push(value); else result[key] = [value];
+ });
+
+ // Indexes the object's values by a criterion, similar to `groupBy`, but for
+ // when you know that your index values will be unique.
+ _.indexBy = group(function(result, value, key) {
+ result[key] = value;
+ });
+
+ // Counts instances of an object that group by a certain criterion. Pass
+ // either a string attribute to count by, or a function that returns the
+ // criterion.
+ _.countBy = group(function(result, value, key) {
+ if (_.has(result, key)) result[key]++; else result[key] = 1;
+ });
+
+ // Safely create a real, live array from anything iterable.
+ _.toArray = function(obj) {
+ if (!obj) return [];
+ if (_.isArray(obj)) return slice.call(obj);
+ if (isArrayLike(obj)) return _.map(obj, _.identity);
+ return _.values(obj);
+ };
+
+ // Return the number of elements in an object.
+ _.size = function(obj) {
+ if (obj == null) return 0;
+ return isArrayLike(obj) ? obj.length : _.keys(obj).length;
+ };
+
+ // Split a collection into two arrays: one whose elements all satisfy the given
+ // predicate, and one whose elements all do not satisfy the predicate.
+ _.partition = function(obj, predicate, context) {
+ predicate = cb(predicate, context);
+ var pass = [], fail = [];
+ _.each(obj, function(value, key, obj) {
+ (predicate(value, key, obj) ? pass : fail).push(value);
+ });
+ return [pass, fail];
+ };
+
+ // Array Functions
+ // ---------------
+
+ // Get the first element of an array. Passing **n** will return the first N
+ // values in the array. Aliased as `head` and `take`. The **guard** check
+ // allows it to work with `_.map`.
+ _.first = _.head = _.take = function(array, n, guard) {
+ if (array == null) return void 0;
+ if (n == null || guard) return array[0];
+ return _.initial(array, array.length - n);
+ };
+
+ // Returns everything but the last entry of the array. Especially useful on
+ // the arguments object. Passing **n** will return all the values in
+ // the array, excluding the last N.
+ _.initial = function(array, n, guard) {
+ return slice.call(array, 0, Math.max(0, array.length - (n == null || guard ? 1 : n)));
+ };
+
+ // Get the last element of an array. Passing **n** will return the last N
+ // values in the array.
+ _.last = function(array, n, guard) {
+ if (array == null) return void 0;
+ if (n == null || guard) return array[array.length - 1];
+ return _.rest(array, Math.max(0, array.length - n));
+ };
+
+ // Returns everything but the first entry of the array. Aliased as `tail` and `drop`.
+ // Especially useful on the arguments object. Passing an **n** will return
+ // the rest N values in the array.
+ _.rest = _.tail = _.drop = function(array, n, guard) {
+ return slice.call(array, n == null || guard ? 1 : n);
+ };
+
+ // Trim out all falsy values from an array.
+ _.compact = function(array) {
+ return _.filter(array, _.identity);
+ };
+
+ // Internal implementation of a recursive `flatten` function.
+ var flatten = function(input, shallow, strict, startIndex) {
+ var output = [], idx = 0;
+ for (var i = startIndex || 0, length = getLength(input); i < length; i++) {
+ var value = input[i];
+ if (isArrayLike(value) && (_.isArray(value) || _.isArguments(value))) {
+ //flatten current level of array or arguments object
+ if (!shallow) value = flatten(value, shallow, strict);
+ var j = 0, len = value.length;
+ output.length += len;
+ while (j < len) {
+ output[idx++] = value[j++];
+ }
+ } else if (!strict) {
+ output[idx++] = value;
+ }
+ }
+ return output;
+ };
+
+ // Flatten out an array, either recursively (by default), or just one level.
+ _.flatten = function(array, shallow) {
+ return flatten(array, shallow, false);
+ };
+
+ // Return a version of the array that does not contain the specified value(s).
+ _.without = function(array) {
+ return _.difference(array, slice.call(arguments, 1));
+ };
+
+ // Produce a duplicate-free version of the array. If the array has already
+ // been sorted, you have the option of using a faster algorithm.
+ // Aliased as `unique`.
+ _.uniq = _.unique = function(array, isSorted, iteratee, context) {
+ if (!_.isBoolean(isSorted)) {
+ context = iteratee;
+ iteratee = isSorted;
+ isSorted = false;
+ }
+ if (iteratee != null) iteratee = cb(iteratee, context);
+ var result = [];
+ var seen = [];
+ for (var i = 0, length = getLength(array); i < length; i++) {
+ var value = array[i],
+ computed = iteratee ? iteratee(value, i, array) : value;
+ if (isSorted) {
+ if (!i || seen !== computed) result.push(value);
+ seen = computed;
+ } else if (iteratee) {
+ if (!_.contains(seen, computed)) {
+ seen.push(computed);
+ result.push(value);
+ }
+ } else if (!_.contains(result, value)) {
+ result.push(value);
+ }
+ }
+ return result;
+ };
+
+ // Produce an array that contains the union: each distinct element from all of
+ // the passed-in arrays.
+ _.union = function() {
+ return _.uniq(flatten(arguments, true, true));
+ };
+
+ // Produce an array that contains every item shared between all the
+ // passed-in arrays.
+ _.intersection = function(array) {
+ var result = [];
+ var argsLength = arguments.length;
+ for (var i = 0, length = getLength(array); i < length; i++) {
+ var item = array[i];
+ if (_.contains(result, item)) continue;
+ for (var j = 1; j < argsLength; j++) {
+ if (!_.contains(arguments[j], item)) break;
+ }
+ if (j === argsLength) result.push(item);
+ }
+ return result;
+ };
+
+ // Take the difference between one array and a number of other arrays.
+ // Only the elements present in just the first array will remain.
+ _.difference = function(array) {
+ var rest = flatten(arguments, true, true, 1);
+ return _.filter(array, function(value){
+ return !_.contains(rest, value);
+ });
+ };
+
+ // Zip together multiple lists into a single array -- elements that share
+ // an index go together.
+ _.zip = function() {
+ return _.unzip(arguments);
+ };
+
+ // Complement of _.zip. Unzip accepts an array of arrays and groups
+ // each array's elements on shared indices
+ _.unzip = function(array) {
+ var length = array && _.max(array, getLength).length || 0;
+ var result = Array(length);
+
+ for (var index = 0; index < length; index++) {
+ result[index] = _.pluck(array, index);
+ }
+ return result;
+ };
+
+ // Converts lists into objects. Pass either a single array of `[key, value]`
+ // pairs, or two parallel arrays of the same length -- one of keys, and one of
+ // the corresponding values.
+ _.object = function(list, values) {
+ var result = {};
+ for (var i = 0, length = getLength(list); i < length; i++) {
+ if (values) {
+ result[list[i]] = values[i];
+ } else {
+ result[list[i][0]] = list[i][1];
+ }
+ }
+ return result;
+ };
+
+ // Generator function to create the findIndex and findLastIndex functions
+ function createPredicateIndexFinder(dir) {
+ return function(array, predicate, context) {
+ predicate = cb(predicate, context);
+ var length = getLength(array);
+ var index = dir > 0 ? 0 : length - 1;
+ for (; index >= 0 && index < length; index += dir) {
+ if (predicate(array[index], index, array)) return index;
+ }
+ return -1;
+ };
+ }
+
+ // Returns the first index on an array-like that passes a predicate test
+ _.findIndex = createPredicateIndexFinder(1);
+ _.findLastIndex = createPredicateIndexFinder(-1);
+
+ // Use a comparator function to figure out the smallest index at which
+ // an object should be inserted so as to maintain order. Uses binary search.
+ _.sortedIndex = function(array, obj, iteratee, context) {
+ iteratee = cb(iteratee, context, 1);
+ var value = iteratee(obj);
+ var low = 0, high = getLength(array);
+ while (low < high) {
+ var mid = Math.floor((low + high) / 2);
+ if (iteratee(array[mid]) < value) low = mid + 1; else high = mid;
+ }
+ return low;
+ };
+
+ // Generator function to create the indexOf and lastIndexOf functions
+ function createIndexFinder(dir, predicateFind, sortedIndex) {
+ return function(array, item, idx) {
+ var i = 0, length = getLength(array);
+ if (typeof idx == 'number') {
+ if (dir > 0) {
+ i = idx >= 0 ? idx : Math.max(idx + length, i);
+ } else {
+ length = idx >= 0 ? Math.min(idx + 1, length) : idx + length + 1;
+ }
+ } else if (sortedIndex && idx && length) {
+ idx = sortedIndex(array, item);
+ return array[idx] === item ? idx : -1;
+ }
+ if (item !== item) {
+ idx = predicateFind(slice.call(array, i, length), _.isNaN);
+ return idx >= 0 ? idx + i : -1;
+ }
+ for (idx = dir > 0 ? i : length - 1; idx >= 0 && idx < length; idx += dir) {
+ if (array[idx] === item) return idx;
+ }
+ return -1;
+ };
+ }
+
+ // Return the position of the first occurrence of an item in an array,
+ // or -1 if the item is not included in the array.
+ // If the array is large and already in sort order, pass `true`
+ // for **isSorted** to use binary search.
+ _.indexOf = createIndexFinder(1, _.findIndex, _.sortedIndex);
+ _.lastIndexOf = createIndexFinder(-1, _.findLastIndex);
+
+ // Generate an integer Array containing an arithmetic progression. A port of
+ // the native Python `range()` function. See
+ // [the Python documentation](http://docs.python.org/library/functions.html#range).
+ _.range = function(start, stop, step) {
+ if (stop == null) {
+ stop = start || 0;
+ start = 0;
+ }
+ step = step || 1;
+
+ var length = Math.max(Math.ceil((stop - start) / step), 0);
+ var range = Array(length);
+
+ for (var idx = 0; idx < length; idx++, start += step) {
+ range[idx] = start;
+ }
+
+ return range;
+ };
+
+ // Function (ahem) Functions
+ // ------------------
+
+ // Determines whether to execute a function as a constructor
+ // or a normal function with the provided arguments
+ var executeBound = function(sourceFunc, boundFunc, context, callingContext, args) {
+ if (!(callingContext instanceof boundFunc)) return sourceFunc.apply(context, args);
+ var self = baseCreate(sourceFunc.prototype);
+ var result = sourceFunc.apply(self, args);
+ if (_.isObject(result)) return result;
+ return self;
+ };
+
+ // Create a function bound to a given object (assigning `this`, and arguments,
+ // optionally). Delegates to **ECMAScript 5**'s native `Function.bind` if
+ // available.
+ _.bind = function(func, context) {
+ if (nativeBind && func.bind === nativeBind) return nativeBind.apply(func, slice.call(arguments, 1));
+ if (!_.isFunction(func)) throw new TypeError('Bind must be called on a function');
+ var args = slice.call(arguments, 2);
+ var bound = function() {
+ return executeBound(func, bound, context, this, args.concat(slice.call(arguments)));
+ };
+ return bound;
+ };
+
+ // Partially apply a function by creating a version that has had some of its
+ // arguments pre-filled, without changing its dynamic `this` context. _ acts
+ // as a placeholder, allowing any combination of arguments to be pre-filled.
+ _.partial = function(func) {
+ var boundArgs = slice.call(arguments, 1);
+ var bound = function() {
+ var position = 0, length = boundArgs.length;
+ var args = Array(length);
+ for (var i = 0; i < length; i++) {
+ args[i] = boundArgs[i] === _ ? arguments[position++] : boundArgs[i];
+ }
+ while (position < arguments.length) args.push(arguments[position++]);
+ return executeBound(func, bound, this, this, args);
+ };
+ return bound;
+ };
+
+ // Bind a number of an object's methods to that object. Remaining arguments
+ // are the method names to be bound. Useful for ensuring that all callbacks
+ // defined on an object belong to it.
+ _.bindAll = function(obj) {
+ var i, length = arguments.length, key;
+ if (length <= 1) throw new Error('bindAll must be passed function names');
+ for (i = 1; i < length; i++) {
+ key = arguments[i];
+ obj[key] = _.bind(obj[key], obj);
+ }
+ return obj;
+ };
+
+ // Memoize an expensive function by storing its results.
+ _.memoize = function(func, hasher) {
+ var memoize = function(key) {
+ var cache = memoize.cache;
+ var address = '' + (hasher ? hasher.apply(this, arguments) : key);
+ if (!_.has(cache, address)) cache[address] = func.apply(this, arguments);
+ return cache[address];
+ };
+ memoize.cache = {};
+ return memoize;
+ };
+
+ // Delays a function for the given number of milliseconds, and then calls
+ // it with the arguments supplied.
+ _.delay = function(func, wait) {
+ var args = slice.call(arguments, 2);
+ return setTimeout(function(){
+ return func.apply(null, args);
+ }, wait);
+ };
+
+ // Defers a function, scheduling it to run after the current call stack has
+ // cleared.
+ _.defer = _.partial(_.delay, _, 1);
+
+ // Returns a function, that, when invoked, will only be triggered at most once
+ // during a given window of time. Normally, the throttled function will run
+ // as much as it can, without ever going more than once per `wait` duration;
+ // but if you'd like to disable the execution on the leading edge, pass
+ // `{leading: false}`. To disable execution on the trailing edge, ditto.
+ _.throttle = function(func, wait, options) {
+ var context, args, result;
+ var timeout = null;
+ var previous = 0;
+ if (!options) options = {};
+ var later = function() {
+ previous = options.leading === false ? 0 : _.now();
+ timeout = null;
+ result = func.apply(context, args);
+ if (!timeout) context = args = null;
+ };
+ return function() {
+ var now = _.now();
+ if (!previous && options.leading === false) previous = now;
+ var remaining = wait - (now - previous);
+ context = this;
+ args = arguments;
+ if (remaining <= 0 || remaining > wait) {
+ if (timeout) {
+ clearTimeout(timeout);
+ timeout = null;
+ }
+ previous = now;
+ result = func.apply(context, args);
+ if (!timeout) context = args = null;
+ } else if (!timeout && options.trailing !== false) {
+ timeout = setTimeout(later, remaining);
+ }
+ return result;
+ };
+ };
+
+ // Returns a function, that, as long as it continues to be invoked, will not
+ // be triggered. The function will be called after it stops being called for
+ // N milliseconds. If `immediate` is passed, trigger the function on the
+ // leading edge, instead of the trailing.
+ _.debounce = function(func, wait, immediate) {
+ var timeout, args, context, timestamp, result;
+
+ var later = function() {
+ var last = _.now() - timestamp;
+
+ if (last < wait && last >= 0) {
+ timeout = setTimeout(later, wait - last);
+ } else {
+ timeout = null;
+ if (!immediate) {
+ result = func.apply(context, args);
+ if (!timeout) context = args = null;
+ }
+ }
+ };
+
+ return function() {
+ context = this;
+ args = arguments;
+ timestamp = _.now();
+ var callNow = immediate && !timeout;
+ if (!timeout) timeout = setTimeout(later, wait);
+ if (callNow) {
+ result = func.apply(context, args);
+ context = args = null;
+ }
+
+ return result;
+ };
+ };
+
+ // Returns the first function passed as an argument to the second,
+ // allowing you to adjust arguments, run code before and after, and
+ // conditionally execute the original function.
+ _.wrap = function(func, wrapper) {
+ return _.partial(wrapper, func);
+ };
+
+ // Returns a negated version of the passed-in predicate.
+ _.negate = function(predicate) {
+ return function() {
+ return !predicate.apply(this, arguments);
+ };
+ };
+
+ // Returns a function that is the composition of a list of functions, each
+ // consuming the return value of the function that follows.
+ _.compose = function() {
+ var args = arguments;
+ var start = args.length - 1;
+ return function() {
+ var i = start;
+ var result = args[start].apply(this, arguments);
+ while (i--) result = args[i].call(this, result);
+ return result;
+ };
+ };
+
+ // Returns a function that will only be executed on and after the Nth call.
+ _.after = function(times, func) {
+ return function() {
+ if (--times < 1) {
+ return func.apply(this, arguments);
+ }
+ };
+ };
+
+ // Returns a function that will only be executed up to (but not including) the Nth call.
+ _.before = function(times, func) {
+ var memo;
+ return function() {
+ if (--times > 0) {
+ memo = func.apply(this, arguments);
+ }
+ if (times <= 1) func = null;
+ return memo;
+ };
+ };
+
+ // Returns a function that will be executed at most one time, no matter how
+ // often you call it. Useful for lazy initialization.
+ _.once = _.partial(_.before, 2);
+
+ // Object Functions
+ // ----------------
+
+ // Keys in IE < 9 that won't be iterated by `for key in ...` and thus missed.
+ var hasEnumBug = !{toString: null}.propertyIsEnumerable('toString');
+ var nonEnumerableProps = ['valueOf', 'isPrototypeOf', 'toString',
+ 'propertyIsEnumerable', 'hasOwnProperty', 'toLocaleString'];
+
+ function collectNonEnumProps(obj, keys) {
+ var nonEnumIdx = nonEnumerableProps.length;
+ var constructor = obj.constructor;
+ var proto = (_.isFunction(constructor) && constructor.prototype) || ObjProto;
+
+ // Constructor is a special case.
+ var prop = 'constructor';
+ if (_.has(obj, prop) && !_.contains(keys, prop)) keys.push(prop);
+
+ while (nonEnumIdx--) {
+ prop = nonEnumerableProps[nonEnumIdx];
+ if (prop in obj && obj[prop] !== proto[prop] && !_.contains(keys, prop)) {
+ keys.push(prop);
+ }
+ }
+ }
+
+ // Retrieve the names of an object's own properties.
+ // Delegates to **ECMAScript 5**'s native `Object.keys`
+ _.keys = function(obj) {
+ if (!_.isObject(obj)) return [];
+ if (nativeKeys) return nativeKeys(obj);
+ var keys = [];
+ for (var key in obj) if (_.has(obj, key)) keys.push(key);
+ // Ahem, IE < 9.
+ if (hasEnumBug) collectNonEnumProps(obj, keys);
+ return keys;
+ };
+
+ // Retrieve all the property names of an object.
+ _.allKeys = function(obj) {
+ if (!_.isObject(obj)) return [];
+ var keys = [];
+ for (var key in obj) keys.push(key);
+ // Ahem, IE < 9.
+ if (hasEnumBug) collectNonEnumProps(obj, keys);
+ return keys;
+ };
+
+ // Retrieve the values of an object's properties.
+ _.values = function(obj) {
+ var keys = _.keys(obj);
+ var length = keys.length;
+ var values = Array(length);
+ for (var i = 0; i < length; i++) {
+ values[i] = obj[keys[i]];
+ }
+ return values;
+ };
+
+ // Returns the results of applying the iteratee to each element of the object
+ // In contrast to _.map it returns an object
+ _.mapObject = function(obj, iteratee, context) {
+ iteratee = cb(iteratee, context);
+ var keys = _.keys(obj),
+ length = keys.length,
+ results = {},
+ currentKey;
+ for (var index = 0; index < length; index++) {
+ currentKey = keys[index];
+ results[currentKey] = iteratee(obj[currentKey], currentKey, obj);
+ }
+ return results;
+ };
+
+ // Convert an object into a list of `[key, value]` pairs.
+ _.pairs = function(obj) {
+ var keys = _.keys(obj);
+ var length = keys.length;
+ var pairs = Array(length);
+ for (var i = 0; i < length; i++) {
+ pairs[i] = [keys[i], obj[keys[i]]];
+ }
+ return pairs;
+ };
+
+ // Invert the keys and values of an object. The values must be serializable.
+ _.invert = function(obj) {
+ var result = {};
+ var keys = _.keys(obj);
+ for (var i = 0, length = keys.length; i < length; i++) {
+ result[obj[keys[i]]] = keys[i];
+ }
+ return result;
+ };
+
+ // Return a sorted list of the function names available on the object.
+ // Aliased as `methods`
+ _.functions = _.methods = function(obj) {
+ var names = [];
+ for (var key in obj) {
+ if (_.isFunction(obj[key])) names.push(key);
+ }
+ return names.sort();
+ };
+
+ // Extend a given object with all the properties in passed-in object(s).
+ _.extend = createAssigner(_.allKeys);
+
+ // Assigns a given object with all the own properties in the passed-in object(s)
+ // (https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object/assign)
+ _.extendOwn = _.assign = createAssigner(_.keys);
+
+ // Returns the first key on an object that passes a predicate test
+ _.findKey = function(obj, predicate, context) {
+ predicate = cb(predicate, context);
+ var keys = _.keys(obj), key;
+ for (var i = 0, length = keys.length; i < length; i++) {
+ key = keys[i];
+ if (predicate(obj[key], key, obj)) return key;
+ }
+ };
+
+ // Return a copy of the object only containing the whitelisted properties.
+ _.pick = function(object, oiteratee, context) {
+ var result = {}, obj = object, iteratee, keys;
+ if (obj == null) return result;
+ if (_.isFunction(oiteratee)) {
+ keys = _.allKeys(obj);
+ iteratee = optimizeCb(oiteratee, context);
+ } else {
+ keys = flatten(arguments, false, false, 1);
+ iteratee = function(value, key, obj) { return key in obj; };
+ obj = Object(obj);
+ }
+ for (var i = 0, length = keys.length; i < length; i++) {
+ var key = keys[i];
+ var value = obj[key];
+ if (iteratee(value, key, obj)) result[key] = value;
+ }
+ return result;
+ };
+
+ // Return a copy of the object without the blacklisted properties.
+ _.omit = function(obj, iteratee, context) {
+ if (_.isFunction(iteratee)) {
+ iteratee = _.negate(iteratee);
+ } else {
+ var keys = _.map(flatten(arguments, false, false, 1), String);
+ iteratee = function(value, key) {
+ return !_.contains(keys, key);
+ };
+ }
+ return _.pick(obj, iteratee, context);
+ };
+
+ // Fill in a given object with default properties.
+ _.defaults = createAssigner(_.allKeys, true);
+
+ // Creates an object that inherits from the given prototype object.
+ // If additional properties are provided then they will be added to the
+ // created object.
+ _.create = function(prototype, props) {
+ var result = baseCreate(prototype);
+ if (props) _.extendOwn(result, props);
+ return result;
+ };
+
+ // Create a (shallow-cloned) duplicate of an object.
+ _.clone = function(obj) {
+ if (!_.isObject(obj)) return obj;
+ return _.isArray(obj) ? obj.slice() : _.extend({}, obj);
+ };
+
+ // Invokes interceptor with the obj, and then returns obj.
+ // The primary purpose of this method is to "tap into" a method chain, in
+ // order to perform operations on intermediate results within the chain.
+ _.tap = function(obj, interceptor) {
+ interceptor(obj);
+ return obj;
+ };
+
+ // Returns whether an object has a given set of `key:value` pairs.
+ _.isMatch = function(object, attrs) {
+ var keys = _.keys(attrs), length = keys.length;
+ if (object == null) return !length;
+ var obj = Object(object);
+ for (var i = 0; i < length; i++) {
+ var key = keys[i];
+ if (attrs[key] !== obj[key] || !(key in obj)) return false;
+ }
+ return true;
+ };
+
+
+ // Internal recursive comparison function for `isEqual`.
+ var eq = function(a, b, aStack, bStack) {
+ // Identical objects are equal. `0 === -0`, but they aren't identical.
+ // See the [Harmony `egal` proposal](http://wiki.ecmascript.org/doku.php?id=harmony:egal).
+ if (a === b) return a !== 0 || 1 / a === 1 / b;
+ // A strict comparison is necessary because `null == undefined`.
+ if (a == null || b == null) return a === b;
+ // Unwrap any wrapped objects.
+ if (a instanceof _) a = a._wrapped;
+ if (b instanceof _) b = b._wrapped;
+ // Compare `[[Class]]` names.
+ var className = toString.call(a);
+ if (className !== toString.call(b)) return false;
+ switch (className) {
+ // Strings, numbers, regular expressions, dates, and booleans are compared by value.
+ case '[object RegExp]':
+ // RegExps are coerced to strings for comparison (Note: '' + /a/i === '/a/i')
+ case '[object String]':
+ // Primitives and their corresponding object wrappers are equivalent; thus, `"5"` is
+ // equivalent to `new String("5")`.
+ return '' + a === '' + b;
+ case '[object Number]':
+ // `NaN`s are equivalent, but non-reflexive.
+ // Object(NaN) is equivalent to NaN
+ if (+a !== +a) return +b !== +b;
+ // An `egal` comparison is performed for other numeric values.
+ return +a === 0 ? 1 / +a === 1 / b : +a === +b;
+ case '[object Date]':
+ case '[object Boolean]':
+ // Coerce dates and booleans to numeric primitive values. Dates are compared by their
+ // millisecond representations. Note that invalid dates with millisecond representations
+ // of `NaN` are not equivalent.
+ return +a === +b;
+ }
+
+ var areArrays = className === '[object Array]';
+ if (!areArrays) {
+ if (typeof a != 'object' || typeof b != 'object') return false;
+
+ // Objects with different constructors are not equivalent, but `Object`s or `Array`s
+ // from different frames are.
+ var aCtor = a.constructor, bCtor = b.constructor;
+ if (aCtor !== bCtor && !(_.isFunction(aCtor) && aCtor instanceof aCtor &&
+ _.isFunction(bCtor) && bCtor instanceof bCtor)
+ && ('constructor' in a && 'constructor' in b)) {
+ return false;
+ }
+ }
+ // Assume equality for cyclic structures. The algorithm for detecting cyclic
+ // structures is adapted from ES 5.1 section 15.12.3, abstract operation `JO`.
+
+ // Initializing stack of traversed objects.
+ // It's done here since we only need them for objects and arrays comparison.
+ aStack = aStack || [];
+ bStack = bStack || [];
+ var length = aStack.length;
+ while (length--) {
+ // Linear search. Performance is inversely proportional to the number of
+ // unique nested structures.
+ if (aStack[length] === a) return bStack[length] === b;
+ }
+
+ // Add the first object to the stack of traversed objects.
+ aStack.push(a);
+ bStack.push(b);
+
+ // Recursively compare objects and arrays.
+ if (areArrays) {
+ // Compare array lengths to determine if a deep comparison is necessary.
+ length = a.length;
+ if (length !== b.length) return false;
+ // Deep compare the contents, ignoring non-numeric properties.
+ while (length--) {
+ if (!eq(a[length], b[length], aStack, bStack)) return false;
+ }
+ } else {
+ // Deep compare objects.
+ var keys = _.keys(a), key;
+ length = keys.length;
+ // Ensure that both objects contain the same number of properties before comparing deep equality.
+ if (_.keys(b).length !== length) return false;
+ while (length--) {
+ // Deep compare each member
+ key = keys[length];
+ if (!(_.has(b, key) && eq(a[key], b[key], aStack, bStack))) return false;
+ }
+ }
+ // Remove the first object from the stack of traversed objects.
+ aStack.pop();
+ bStack.pop();
+ return true;
+ };
+
+ // Perform a deep comparison to check if two objects are equal.
+ _.isEqual = function(a, b) {
+ return eq(a, b);
+ };
+
+ // Is a given array, string, or object empty?
+ // An "empty" object has no enumerable own-properties.
+ _.isEmpty = function(obj) {
+ if (obj == null) return true;
+ if (isArrayLike(obj) && (_.isArray(obj) || _.isString(obj) || _.isArguments(obj))) return obj.length === 0;
+ return _.keys(obj).length === 0;
+ };
+
+ // Is a given value a DOM element?
+ _.isElement = function(obj) {
+ return !!(obj && obj.nodeType === 1);
+ };
+
+ // Is a given value an array?
+ // Delegates to ECMA5's native Array.isArray
+ _.isArray = nativeIsArray || function(obj) {
+ return toString.call(obj) === '[object Array]';
+ };
+
+ // Is a given variable an object?
+ _.isObject = function(obj) {
+ var type = typeof obj;
+ return type === 'function' || type === 'object' && !!obj;
+ };
+
+ // Add some isType methods: isArguments, isFunction, isString, isNumber, isDate, isRegExp, isError.
+ _.each(['Arguments', 'Function', 'String', 'Number', 'Date', 'RegExp', 'Error'], function(name) {
+ _['is' + name] = function(obj) {
+ return toString.call(obj) === '[object ' + name + ']';
+ };
+ });
+
+ // Define a fallback version of the method in browsers (ahem, IE < 9), where
+ // there isn't any inspectable "Arguments" type.
+ if (!_.isArguments(arguments)) {
+ _.isArguments = function(obj) {
+ return _.has(obj, 'callee');
+ };
+ }
+
+ // Optimize `isFunction` if appropriate. Work around some typeof bugs in old v8,
+ // IE 11 (#1621), and in Safari 8 (#1929).
+ if (typeof /./ != 'function' && typeof Int8Array != 'object') {
+ _.isFunction = function(obj) {
+ return typeof obj == 'function' || false;
+ };
+ }
+
+ // Is a given object a finite number?
+ _.isFinite = function(obj) {
+ return isFinite(obj) && !isNaN(parseFloat(obj));
+ };
+
+ // Is the given value `NaN`? (NaN is the only number which does not equal itself).
+ _.isNaN = function(obj) {
+ return _.isNumber(obj) && obj !== +obj;
+ };
+
+ // Is a given value a boolean?
+ _.isBoolean = function(obj) {
+ return obj === true || obj === false || toString.call(obj) === '[object Boolean]';
+ };
+
+ // Is a given value equal to null?
+ _.isNull = function(obj) {
+ return obj === null;
+ };
+
+ // Is a given variable undefined?
+ _.isUndefined = function(obj) {
+ return obj === void 0;
+ };
+
+ // Shortcut function for checking if an object has a given property directly
+ // on itself (in other words, not on a prototype).
+ _.has = function(obj, key) {
+ return obj != null && hasOwnProperty.call(obj, key);
+ };
+
+ // Utility Functions
+ // -----------------
+
+ // Run Underscore.js in *noConflict* mode, returning the `_` variable to its
+ // previous owner. Returns a reference to the Underscore object.
+ _.noConflict = function() {
+ root._ = previousUnderscore;
+ return this;
+ };
+
+ // Keep the identity function around for default iteratees.
+ _.identity = function(value) {
+ return value;
+ };
+
+ // Predicate-generating functions. Often useful outside of Underscore.
+ _.constant = function(value) {
+ return function() {
+ return value;
+ };
+ };
+
+ _.noop = function(){};
+
+ _.property = property;
+
+ // Generates a function for a given object that returns a given property.
+ _.propertyOf = function(obj) {
+ return obj == null ? function(){} : function(key) {
+ return obj[key];
+ };
+ };
+
+ // Returns a predicate for checking whether an object has a given set of
+ // `key:value` pairs.
+ _.matcher = _.matches = function(attrs) {
+ attrs = _.extendOwn({}, attrs);
+ return function(obj) {
+ return _.isMatch(obj, attrs);
+ };
+ };
+
+ // Run a function **n** times.
+ _.times = function(n, iteratee, context) {
+ var accum = Array(Math.max(0, n));
+ iteratee = optimizeCb(iteratee, context, 1);
+ for (var i = 0; i < n; i++) accum[i] = iteratee(i);
+ return accum;
+ };
+
+ // Return a random integer between min and max (inclusive).
+ _.random = function(min, max) {
+ if (max == null) {
+ max = min;
+ min = 0;
+ }
+ return min + Math.floor(Math.random() * (max - min + 1));
+ };
+
+ // A (possibly faster) way to get the current timestamp as an integer.
+ _.now = Date.now || function() {
+ return new Date().getTime();
+ };
+
+ // List of HTML entities for escaping.
+ var escapeMap = {
+ '&': '&amp;',
+ '<': '&lt;',
+ '>': '&gt;',
+ '"': '&quot;',
+ "'": '&#x27;',
+ '`': '&#x60;'
+ };
+ var unescapeMap = _.invert(escapeMap);
+
+ // Functions for escaping and unescaping strings to/from HTML interpolation.
+ var createEscaper = function(map) {
+ var escaper = function(match) {
+ return map[match];
+ };
+ // Regexes for identifying a key that needs to be escaped
+ var source = '(?:' + _.keys(map).join('|') + ')';
+ var testRegexp = RegExp(source);
+ var replaceRegexp = RegExp(source, 'g');
+ return function(string) {
+ string = string == null ? '' : '' + string;
+ return testRegexp.test(string) ? string.replace(replaceRegexp, escaper) : string;
+ };
+ };
+ _.escape = createEscaper(escapeMap);
+ _.unescape = createEscaper(unescapeMap);
+
+ // If the value of the named `property` is a function then invoke it with the
+ // `object` as context; otherwise, return it.
+ _.result = function(object, property, fallback) {
+ var value = object == null ? void 0 : object[property];
+ if (value === void 0) {
+ value = fallback;
+ }
+ return _.isFunction(value) ? value.call(object) : value;
+ };
+
+ // Generate a unique integer id (unique within the entire client session).
+ // Useful for temporary DOM ids.
+ var idCounter = 0;
+ _.uniqueId = function(prefix) {
+ var id = ++idCounter + '';
+ return prefix ? prefix + id : id;
+ };
+
+ // By default, Underscore uses ERB-style template delimiters, change the
+ // following template settings to use alternative delimiters.
+ _.templateSettings = {
+ evaluate : /<%([\s\S]+?)%>/g,
+ interpolate : /<%=([\s\S]+?)%>/g,
+ escape : /<%-([\s\S]+?)%>/g
+ };
+
+ // When customizing `templateSettings`, if you don't want to define an
+ // interpolation, evaluation or escaping regex, we need one that is
+ // guaranteed not to match.
+ var noMatch = /(.)^/;
+
+ // Certain characters need to be escaped so that they can be put into a
+ // string literal.
+ var escapes = {
+ "'": "'",
+ '\\': '\\',
+ '\r': 'r',
+ '\n': 'n',
+ '\u2028': 'u2028',
+ '\u2029': 'u2029'
+ };
+
+ var escaper = /\\|'|\r|\n|\u2028|\u2029/g;
+
+ var escapeChar = function(match) {
+ return '\\' + escapes[match];
+ };
+
+ // JavaScript micro-templating, similar to John Resig's implementation.
+ // Underscore templating handles arbitrary delimiters, preserves whitespace,
+ // and correctly escapes quotes within interpolated code.
+ // NB: `oldSettings` only exists for backwards compatibility.
+ _.template = function(text, settings, oldSettings) {
+ if (!settings && oldSettings) settings = oldSettings;
+ settings = _.defaults({}, settings, _.templateSettings);
+
+ // Combine delimiters into one regular expression via alternation.
+ var matcher = RegExp([
+ (settings.escape || noMatch).source,
+ (settings.interpolate || noMatch).source,
+ (settings.evaluate || noMatch).source
+ ].join('|') + '|$', 'g');
+
+ // Compile the template source, escaping string literals appropriately.
+ var index = 0;
+ var source = "__p+='";
+ text.replace(matcher, function(match, escape, interpolate, evaluate, offset) {
+ source += text.slice(index, offset).replace(escaper, escapeChar);
+ index = offset + match.length;
+
+ if (escape) {
+ source += "'+\n((__t=(" + escape + "))==null?'':_.escape(__t))+\n'";
+ } else if (interpolate) {
+ source += "'+\n((__t=(" + interpolate + "))==null?'':__t)+\n'";
+ } else if (evaluate) {
+ source += "';\n" + evaluate + "\n__p+='";
+ }
+
+ // Adobe VMs need the match returned to produce the correct offest.
+ return match;
+ });
+ source += "';\n";
+
+ // If a variable is not specified, place data values in local scope.
+ if (!settings.variable) source = 'with(obj||{}){\n' + source + '}\n';
+
+ source = "var __t,__p='',__j=Array.prototype.join," +
+ "print=function(){__p+=__j.call(arguments,'');};\n" +
+ source + 'return __p;\n';
+
+ try {
+ var render = new Function(settings.variable || 'obj', '_', source);
+ } catch (e) {
+ e.source = source;
+ throw e;
+ }
+
+ var template = function(data) {
+ return render.call(this, data, _);
+ };
+
+ // Provide the compiled source as a convenience for precompilation.
+ var argument = settings.variable || 'obj';
+ template.source = 'function(' + argument + '){\n' + source + '}';
+
+ return template;
+ };
+
+ // Add a "chain" function. Start chaining a wrapped Underscore object.
+ _.chain = function(obj) {
+ var instance = _(obj);
+ instance._chain = true;
+ return instance;
+ };
+
+ // OOP
+ // ---------------
+ // If Underscore is called as a function, it returns a wrapped object that
+ // can be used OO-style. This wrapper holds altered versions of all the
+ // underscore functions. Wrapped objects may be chained.
+
+ // Helper function to continue chaining intermediate results.
+ var result = function(instance, obj) {
+ return instance._chain ? _(obj).chain() : obj;
+ };
+
+ // Add your own custom functions to the Underscore object.
+ _.mixin = function(obj) {
+ _.each(_.functions(obj), function(name) {
+ var func = _[name] = obj[name];
+ _.prototype[name] = function() {
+ var args = [this._wrapped];
+ push.apply(args, arguments);
+ return result(this, func.apply(_, args));
+ };
+ });
+ };
+
+ // Add all of the Underscore functions to the wrapper object.
+ _.mixin(_);
+
+ // Add all mutator Array functions to the wrapper.
+ _.each(['pop', 'push', 'reverse', 'shift', 'sort', 'splice', 'unshift'], function(name) {
+ var method = ArrayProto[name];
+ _.prototype[name] = function() {
+ var obj = this._wrapped;
+ method.apply(obj, arguments);
+ if ((name === 'shift' || name === 'splice') && obj.length === 0) delete obj[0];
+ return result(this, obj);
+ };
+ });
+
+ // Add all accessor Array functions to the wrapper.
+ _.each(['concat', 'join', 'slice'], function(name) {
+ var method = ArrayProto[name];
+ _.prototype[name] = function() {
+ return result(this, method.apply(this._wrapped, arguments));
+ };
+ });
+
+ // Extracts the result from a wrapped and chained object.
+ _.prototype.value = function() {
+ return this._wrapped;
+ };
+
+ // Provide unwrapping proxy for some methods used in engine operations
+ // such as arithmetic and JSON stringification.
+ _.prototype.valueOf = _.prototype.toJSON = _.prototype.value;
+
+ _.prototype.toString = function() {
+ return '' + this._wrapped;
+ };
+
+ // AMD registration happens at the end for compatibility with AMD loaders
+ // that may not enforce next-turn semantics on modules. Even though general
+ // practice for AMD registration is to be anonymous, underscore registers
+ // as a named module because, like jQuery, it is a base library that is
+ // popular enough to be bundled in a third party lib, but not be part of
+ // an AMD load request. Those cases could generate an error when an
+ // anonymous define() is called outside of a loader request.
+ if (typeof define === 'function' && define.amd) {
+ define('underscore', [], function() {
+ return _;
+ });
+ }
+}.call(this));
+
+},{}],26:[function(require,module,exports){
+arguments[4][19][0].apply(exports,arguments)
+},{"dup":19}],27:[function(require,module,exports){
+module.exports = function isBuffer(arg) {
+ return arg && typeof arg === 'object'
+ && typeof arg.copy === 'function'
+ && typeof arg.fill === 'function'
+ && typeof arg.readUInt8 === 'function';
+}
+},{}],28:[function(require,module,exports){
+(function (process,global){
+// Copyright Joyent, Inc. and other Node contributors.
+//
+// Permission is hereby granted, free of charge, to any person obtaining a
+// copy of this software and associated documentation files (the
+// "Software"), to deal in the Software without restriction, including
+// without limitation the rights to use, copy, modify, merge, publish,
+// distribute, sublicense, and/or sell copies of the Software, and to permit
+// persons to whom the Software is furnished to do so, subject to the
+// following conditions:
+//
+// The above copyright notice and this permission notice shall be included
+// in all copies or substantial portions of the Software.
+//
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
+// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
+// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
+// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
+// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
+// USE OR OTHER DEALINGS IN THE SOFTWARE.
+
+var formatRegExp = /%[sdj%]/g;
+exports.format = function(f) {
+ if (!isString(f)) {
+ var objects = [];
+ for (var i = 0; i < arguments.length; i++) {
+ objects.push(inspect(arguments[i]));
+ }
+ return objects.join(' ');
+ }
+
+ var i = 1;
+ var args = arguments;
+ var len = args.length;
+ var str = String(f).replace(formatRegExp, function(x) {
+ if (x === '%%') return '%';
+ if (i >= len) return x;
+ switch (x) {
+ case '%s': return String(args[i++]);
+ case '%d': return Number(args[i++]);
+ case '%j':
+ try {
+ return JSON.stringify(args[i++]);
+ } catch (_) {
+ return '[Circular]';
+ }
+ default:
+ return x;
+ }
+ });
+ for (var x = args[i]; i < len; x = args[++i]) {
+ if (isNull(x) || !isObject(x)) {
+ str += ' ' + x;
+ } else {
+ str += ' ' + inspect(x);
+ }
+ }
+ return str;
+};
+
+
+// Mark that a method should not be used.
+// Returns a modified function which warns once by default.
+// If --no-deprecation is set, then it is a no-op.
+exports.deprecate = function(fn, msg) {
+ // Allow for deprecating things in the process of starting up.
+ if (isUndefined(global.process)) {
+ return function() {
+ return exports.deprecate(fn, msg).apply(this, arguments);
+ };
+ }
+
+ if (process.noDeprecation === true) {
+ return fn;
+ }
+
+ var warned = false;
+ function deprecated() {
+ if (!warned) {
+ if (process.throwDeprecation) {
+ throw new Error(msg);
+ } else if (process.traceDeprecation) {
+ console.trace(msg);
+ } else {
+ console.error(msg);
+ }
+ warned = true;
+ }
+ return fn.apply(this, arguments);
+ }
+
+ return deprecated;
+};
+
+
+var debugs = {};
+var debugEnviron;
+exports.debuglog = function(set) {
+ if (isUndefined(debugEnviron))
+ debugEnviron = process.env.NODE_DEBUG || '';
+ set = set.toUpperCase();
+ if (!debugs[set]) {
+ if (new RegExp('\\b' + set + '\\b', 'i').test(debugEnviron)) {
+ var pid = process.pid;
+ debugs[set] = function() {
+ var msg = exports.format.apply(exports, arguments);
+ console.error('%s %d: %s', set, pid, msg);
+ };
+ } else {
+ debugs[set] = function() {};
+ }
+ }
+ return debugs[set];
+};
+
+
+/**
+ * Echos the value of a value. Trys to print the value out
+ * in the best way possible given the different types.
+ *
+ * @param {Object} obj The object to print out.
+ * @param {Object} opts Optional options object that alters the output.
+ */
+/* legacy: obj, showHidden, depth, colors*/
+function inspect(obj, opts) {
+ // default options
+ var ctx = {
+ seen: [],
+ stylize: stylizeNoColor
+ };
+ // legacy...
+ if (arguments.length >= 3) ctx.depth = arguments[2];
+ if (arguments.length >= 4) ctx.colors = arguments[3];
+ if (isBoolean(opts)) {
+ // legacy...
+ ctx.showHidden = opts;
+ } else if (opts) {
+ // got an "options" object
+ exports._extend(ctx, opts);
+ }
+ // set default options
+ if (isUndefined(ctx.showHidden)) ctx.showHidden = false;
+ if (isUndefined(ctx.depth)) ctx.depth = 2;
+ if (isUndefined(ctx.colors)) ctx.colors = false;
+ if (isUndefined(ctx.customInspect)) ctx.customInspect = true;
+ if (ctx.colors) ctx.stylize = stylizeWithColor;
+ return formatValue(ctx, obj, ctx.depth);
+}
+exports.inspect = inspect;
+
+
+// http://en.wikipedia.org/wiki/ANSI_escape_code#graphics
+inspect.colors = {
+ 'bold' : [1, 22],
+ 'italic' : [3, 23],
+ 'underline' : [4, 24],
+ 'inverse' : [7, 27],
+ 'white' : [37, 39],
+ 'grey' : [90, 39],
+ 'black' : [30, 39],
+ 'blue' : [34, 39],
+ 'cyan' : [36, 39],
+ 'green' : [32, 39],
+ 'magenta' : [35, 39],
+ 'red' : [31, 39],
+ 'yellow' : [33, 39]
+};
+
+// Don't use 'blue' not visible on cmd.exe
+inspect.styles = {
+ 'special': 'cyan',
+ 'number': 'yellow',
+ 'boolean': 'yellow',
+ 'undefined': 'grey',
+ 'null': 'bold',
+ 'string': 'green',
+ 'date': 'magenta',
+ // "name": intentionally not styling
+ 'regexp': 'red'
+};
+
+
+function stylizeWithColor(str, styleType) {
+ var style = inspect.styles[styleType];
+
+ if (style) {
+ return '\u001b[' + inspect.colors[style][0] + 'm' + str +
+ '\u001b[' + inspect.colors[style][1] + 'm';
+ } else {
+ return str;
+ }
+}
+
+
+function stylizeNoColor(str, styleType) {
+ return str;
+}
+
+
+function arrayToHash(array) {
+ var hash = {};
+
+ array.forEach(function(val, idx) {
+ hash[val] = true;
+ });
+
+ return hash;
+}
+
+
+function formatValue(ctx, value, recurseTimes) {
+ // Provide a hook for user-specified inspect functions.
+ // Check that value is an object with an inspect function on it
+ if (ctx.customInspect &&
+ value &&
+ isFunction(value.inspect) &&
+ // Filter out the util module, it's inspect function is special
+ value.inspect !== exports.inspect &&
+ // Also filter out any prototype objects using the circular check.
+ !(value.constructor && value.constructor.prototype === value)) {
+ var ret = value.inspect(recurseTimes, ctx);
+ if (!isString(ret)) {
+ ret = formatValue(ctx, ret, recurseTimes);
+ }
+ return ret;
+ }
+
+ // Primitive types cannot have properties
+ var primitive = formatPrimitive(ctx, value);
+ if (primitive) {
+ return primitive;
+ }
+
+ // Look up the keys of the object.
+ var keys = Object.keys(value);
+ var visibleKeys = arrayToHash(keys);
+
+ if (ctx.showHidden) {
+ keys = Object.getOwnPropertyNames(value);
+ }
+
+ // IE doesn't make error fields non-enumerable
+ // http://msdn.microsoft.com/en-us/library/ie/dww52sbt(v=vs.94).aspx
+ if (isError(value)
+ && (keys.indexOf('message') >= 0 || keys.indexOf('description') >= 0)) {
+ return formatError(value);
+ }
+
+ // Some type of object without properties can be shortcutted.
+ if (keys.length === 0) {
+ if (isFunction(value)) {
+ var name = value.name ? ': ' + value.name : '';
+ return ctx.stylize('[Function' + name + ']', 'special');
+ }
+ if (isRegExp(value)) {
+ return ctx.stylize(RegExp.prototype.toString.call(value), 'regexp');
+ }
+ if (isDate(value)) {
+ return ctx.stylize(Date.prototype.toString.call(value), 'date');
+ }
+ if (isError(value)) {
+ return formatError(value);
+ }
+ }
+
+ var base = '', array = false, braces = ['{', '}'];
+
+ // Make Array say that they are Array
+ if (isArray(value)) {
+ array = true;
+ braces = ['[', ']'];
+ }
+
+ // Make functions say that they are functions
+ if (isFunction(value)) {
+ var n = value.name ? ': ' + value.name : '';
+ base = ' [Function' + n + ']';
+ }
+
+ // Make RegExps say that they are RegExps
+ if (isRegExp(value)) {
+ base = ' ' + RegExp.prototype.toString.call(value);
+ }
+
+ // Make dates with properties first say the date
+ if (isDate(value)) {
+ base = ' ' + Date.prototype.toUTCString.call(value);
+ }
+
+ // Make error with message first say the error
+ if (isError(value)) {
+ base = ' ' + formatError(value);
+ }
+
+ if (keys.length === 0 && (!array || value.length == 0)) {
+ return braces[0] + base + braces[1];
+ }
+
+ if (recurseTimes < 0) {
+ if (isRegExp(value)) {
+ return ctx.stylize(RegExp.prototype.toString.call(value), 'regexp');
+ } else {
+ return ctx.stylize('[Object]', 'special');
+ }
+ }
+
+ ctx.seen.push(value);
+
+ var output;
+ if (array) {
+ output = formatArray(ctx, value, recurseTimes, visibleKeys, keys);
+ } else {
+ output = keys.map(function(key) {
+ return formatProperty(ctx, value, recurseTimes, visibleKeys, key, array);
+ });
+ }
+
+ ctx.seen.pop();
+
+ return reduceToSingleString(output, base, braces);
+}
+
+
+function formatPrimitive(ctx, value) {
+ if (isUndefined(value))
+ return ctx.stylize('undefined', 'undefined');
+ if (isString(value)) {
+ var simple = '\'' + JSON.stringify(value).replace(/^"|"$/g, '')
+ .replace(/'/g, "\\'")
+ .replace(/\\"/g, '"') + '\'';
+ return ctx.stylize(simple, 'string');
+ }
+ if (isNumber(value))
+ return ctx.stylize('' + value, 'number');
+ if (isBoolean(value))
+ return ctx.stylize('' + value, 'boolean');
+ // For some reason typeof null is "object", so special case here.
+ if (isNull(value))
+ return ctx.stylize('null', 'null');
+}
+
+
+function formatError(value) {
+ return '[' + Error.prototype.toString.call(value) + ']';
+}
+
+
+function formatArray(ctx, value, recurseTimes, visibleKeys, keys) {
+ var output = [];
+ for (var i = 0, l = value.length; i < l; ++i) {
+ if (hasOwnProperty(value, String(i))) {
+ output.push(formatProperty(ctx, value, recurseTimes, visibleKeys,
+ String(i), true));
+ } else {
+ output.push('');
+ }
+ }
+ keys.forEach(function(key) {
+ if (!key.match(/^\d+$/)) {
+ output.push(formatProperty(ctx, value, recurseTimes, visibleKeys,
+ key, true));
+ }
+ });
+ return output;
+}
+
+
+function formatProperty(ctx, value, recurseTimes, visibleKeys, key, array) {
+ var name, str, desc;
+ desc = Object.getOwnPropertyDescriptor(value, key) || { value: value[key] };
+ if (desc.get) {
+ if (desc.set) {
+ str = ctx.stylize('[Getter/Setter]', 'special');
+ } else {
+ str = ctx.stylize('[Getter]', 'special');
+ }
+ } else {
+ if (desc.set) {
+ str = ctx.stylize('[Setter]', 'special');
+ }
+ }
+ if (!hasOwnProperty(visibleKeys, key)) {
+ name = '[' + key + ']';
+ }
+ if (!str) {
+ if (ctx.seen.indexOf(desc.value) < 0) {
+ if (isNull(recurseTimes)) {
+ str = formatValue(ctx, desc.value, null);
+ } else {
+ str = formatValue(ctx, desc.value, recurseTimes - 1);
+ }
+ if (str.indexOf('\n') > -1) {
+ if (array) {
+ str = str.split('\n').map(function(line) {
+ return ' ' + line;
+ }).join('\n').substr(2);
+ } else {
+ str = '\n' + str.split('\n').map(function(line) {
+ return ' ' + line;
+ }).join('\n');
+ }
+ }
+ } else {
+ str = ctx.stylize('[Circular]', 'special');
+ }
+ }
+ if (isUndefined(name)) {
+ if (array && key.match(/^\d+$/)) {
+ return str;
+ }
+ name = JSON.stringify('' + key);
+ if (name.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)) {
+ name = name.substr(1, name.length - 2);
+ name = ctx.stylize(name, 'name');
+ } else {
+ name = name.replace(/'/g, "\\'")
+ .replace(/\\"/g, '"')
+ .replace(/(^"|"$)/g, "'");
+ name = ctx.stylize(name, 'string');
+ }
+ }
+
+ return name + ': ' + str;
+}
+
+
+function reduceToSingleString(output, base, braces) {
+ var numLinesEst = 0;
+ var length = output.reduce(function(prev, cur) {
+ numLinesEst++;
+ if (cur.indexOf('\n') >= 0) numLinesEst++;
+ return prev + cur.replace(/\u001b\[\d\d?m/g, '').length + 1;
+ }, 0);
+
+ if (length > 60) {
+ return braces[0] +
+ (base === '' ? '' : base + '\n ') +
+ ' ' +
+ output.join(',\n ') +
+ ' ' +
+ braces[1];
+ }
+
+ return braces[0] + base + ' ' + output.join(', ') + ' ' + braces[1];
+}
+
+
+// NOTE: These type checking functions intentionally don't use `instanceof`
+// because it is fragile and can be easily faked with `Object.create()`.
+function isArray(ar) {
+ return Array.isArray(ar);
+}
+exports.isArray = isArray;
+
+function isBoolean(arg) {
+ return typeof arg === 'boolean';
+}
+exports.isBoolean = isBoolean;
+
+function isNull(arg) {
+ return arg === null;
+}
+exports.isNull = isNull;
+
+function isNullOrUndefined(arg) {
+ return arg == null;
+}
+exports.isNullOrUndefined = isNullOrUndefined;
+
+function isNumber(arg) {
+ return typeof arg === 'number';
+}
+exports.isNumber = isNumber;
+
+function isString(arg) {
+ return typeof arg === 'string';
+}
+exports.isString = isString;
+
+function isSymbol(arg) {
+ return typeof arg === 'symbol';
+}
+exports.isSymbol = isSymbol;
+
+function isUndefined(arg) {
+ return arg === void 0;
+}
+exports.isUndefined = isUndefined;
+
+function isRegExp(re) {
+ return isObject(re) && objectToString(re) === '[object RegExp]';
+}
+exports.isRegExp = isRegExp;
+
+function isObject(arg) {
+ return typeof arg === 'object' && arg !== null;
+}
+exports.isObject = isObject;
+
+function isDate(d) {
+ return isObject(d) && objectToString(d) === '[object Date]';
+}
+exports.isDate = isDate;
+
+function isError(e) {
+ return isObject(e) &&
+ (objectToString(e) === '[object Error]' || e instanceof Error);
+}
+exports.isError = isError;
+
+function isFunction(arg) {
+ return typeof arg === 'function';
+}
+exports.isFunction = isFunction;
+
+function isPrimitive(arg) {
+ return arg === null ||
+ typeof arg === 'boolean' ||
+ typeof arg === 'number' ||
+ typeof arg === 'string' ||
+ typeof arg === 'symbol' || // ES6 symbol
+ typeof arg === 'undefined';
+}
+exports.isPrimitive = isPrimitive;
+
+exports.isBuffer = require('./support/isBuffer');
+
+function objectToString(o) {
+ return Object.prototype.toString.call(o);
+}
+
+
+function pad(n) {
+ return n < 10 ? '0' + n.toString(10) : n.toString(10);
+}
+
+
+var months = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep',
+ 'Oct', 'Nov', 'Dec'];
+
+// 26 Feb 16:19:34
+function timestamp() {
+ var d = new Date();
+ var time = [pad(d.getHours()),
+ pad(d.getMinutes()),
+ pad(d.getSeconds())].join(':');
+ return [d.getDate(), months[d.getMonth()], time].join(' ');
+}
+
+
+// log is just a thin wrapper to console.log that prepends a timestamp
+exports.log = function() {
+ console.log('%s - %s', timestamp(), exports.format.apply(exports, arguments));
+};
+
+
+/**
+ * Inherit the prototype methods from one constructor into another.
+ *
+ * The Function.prototype.inherits from lang.js rewritten as a standalone
+ * function (not on Function.prototype). NOTE: If this file is to be loaded
+ * during bootstrapping this function needs to be rewritten using some native
+ * functions as prototype setup using normal JavaScript does not work as
+ * expected during bootstrapping (see mirror.js in r114903).
+ *
+ * @param {function} ctor Constructor function which needs to inherit the
+ * prototype.
+ * @param {function} superCtor Constructor function to inherit prototype from.
+ */
+exports.inherits = require('inherits');
+
+exports._extend = function(origin, add) {
+ // Don't do anything if add isn't an object
+ if (!add || !isObject(add)) return origin;
+
+ var keys = Object.keys(add);
+ var i = keys.length;
+ while (i--) {
+ origin[keys[i]] = add[keys[i]];
+ }
+ return origin;
+};
+
+function hasOwnProperty(obj, prop) {
+ return Object.prototype.hasOwnProperty.call(obj, prop);
+}
+
+}).call(this,require('_process'),typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
+},{"./support/isBuffer":27,"_process":24,"inherits":26}],29:[function(require,module,exports){
+// Returns a wrapper function that returns a wrapped callback
+// The wrapper function should do some stuff, and return a
+// presumably different callback function.
+// This makes sure that own properties are retained, so that
+// decorations and such are not lost along the way.
+module.exports = wrappy
+function wrappy (fn, cb) {
+ if (fn && cb) return wrappy(fn)(cb)
+
+ if (typeof fn !== 'function')
+ throw new TypeError('need wrapper function')
+
+ Object.keys(fn).forEach(function (k) {
+ wrapper[k] = fn[k]
+ })
+
+ return wrapper
+
+ function wrapper() {
+ var args = new Array(arguments.length)
+ for (var i = 0; i < args.length; i++) {
+ args[i] = arguments[i]
+ }
+ var ret = fn.apply(this, args)
+ var cb = args[args.length-1]
+ if (typeof ret === 'function' && ret !== cb) {
+ Object.keys(cb).forEach(function (k) {
+ ret[k] = cb[k]
+ })
+ }
+ return ret
+ }
+}
+
+},{}]},{},[7])(7)
+}); \ No newline at end of file
diff --git a/freetype/docs/reference/assets/javascripts/workers/search.477d984a.min.js b/freetype/docs/reference/assets/javascripts/workers/search.477d984a.min.js
new file mode 100644
index 00000000..07714b6a
--- /dev/null
+++ b/freetype/docs/reference/assets/javascripts/workers/search.477d984a.min.js
@@ -0,0 +1,48 @@
+(()=>{var le=Object.create;var U=Object.defineProperty;var he=Object.getOwnPropertyDescriptor;var de=Object.getOwnPropertyNames;var fe=Object.getPrototypeOf,pe=Object.prototype.hasOwnProperty;var ge=t=>U(t,"__esModule",{value:!0});var q=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports);var ye=(t,e,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of de(e))!pe.call(t,n)&&n!=="default"&&U(t,n,{get:()=>e[n],enumerable:!(r=he(e,n))||r.enumerable});return t},Y=t=>ye(ge(U(t!=null?le(fe(t)):{},"default",t&&t.__esModule&&"default"in t?{get:()=>t.default,enumerable:!0}:{value:t,enumerable:!0})),t);var z=(t,e,r)=>new Promise((n,i)=>{var s=u=>{try{a(r.next(u))}catch(c){i(c)}},o=u=>{try{a(r.throw(u))}catch(c){i(c)}},a=u=>u.done?n(u.value):Promise.resolve(u.value).then(s,o);a((r=r.apply(t,e)).next())});var X=q((G,J)=>{/**
+ * lunr - http://lunrjs.com - A bit like Solr, but much smaller and not as bright - 2.3.9
+ * Copyright (C) 2020 Oliver Nightingale
+ * @license MIT
+ */(function(){var t=function(e){var r=new t.Builder;return r.pipeline.add(t.trimmer,t.stopWordFilter,t.stemmer),r.searchPipeline.add(t.stemmer),e.call(r,r),r.build()};t.version="2.3.9";/*!
+ * lunr.utils
+ * Copyright (C) 2020 Oliver Nightingale
+ */t.utils={},t.utils.warn=function(e){return function(r){e.console&&console.warn&&console.warn(r)}}(this),t.utils.asString=function(e){return e==null?"":e.toString()},t.utils.clone=function(e){if(e==null)return e;for(var r=Object.create(null),n=Object.keys(e),i=0;i<n.length;i++){var s=n[i],o=e[s];if(Array.isArray(o)){r[s]=o.slice();continue}if(typeof o=="string"||typeof o=="number"||typeof o=="boolean"){r[s]=o;continue}throw new TypeError("clone is not deep and does not support nested objects")}return r},t.FieldRef=function(e,r,n){this.docRef=e,this.fieldName=r,this._stringValue=n},t.FieldRef.joiner="/",t.FieldRef.fromString=function(e){var r=e.indexOf(t.FieldRef.joiner);if(r===-1)throw"malformed field ref string";var n=e.slice(0,r),i=e.slice(r+1);return new t.FieldRef(i,n,e)},t.FieldRef.prototype.toString=function(){return this._stringValue==null&&(this._stringValue=this.fieldName+t.FieldRef.joiner+this.docRef),this._stringValue};/*!
+ * lunr.Set
+ * Copyright (C) 2020 Oliver Nightingale
+ */t.Set=function(e){if(this.elements=Object.create(null),e){this.length=e.length;for(var r=0;r<this.length;r++)this.elements[e[r]]=!0}else this.length=0},t.Set.complete={intersect:function(e){return e},union:function(){return this},contains:function(){return!0}},t.Set.empty={intersect:function(){return this},union:function(e){return e},contains:function(){return!1}},t.Set.prototype.contains=function(e){return!!this.elements[e]},t.Set.prototype.intersect=function(e){var r,n,i,s=[];if(e===t.Set.complete)return this;if(e===t.Set.empty)return e;this.length<e.length?(r=this,n=e):(r=e,n=this),i=Object.keys(r.elements);for(var o=0;o<i.length;o++){var a=i[o];a in n.elements&&s.push(a)}return new t.Set(s)},t.Set.prototype.union=function(e){return e===t.Set.complete?t.Set.complete:e===t.Set.empty?this:new t.Set(Object.keys(this.elements).concat(Object.keys(e.elements)))},t.idf=function(e,r){var n=0;for(var i in e)i!="_index"&&(n+=Object.keys(e[i]).length);var s=(r-n+.5)/(n+.5);return Math.log(1+Math.abs(s))},t.Token=function(e,r){this.str=e||"",this.metadata=r||{}},t.Token.prototype.toString=function(){return this.str},t.Token.prototype.update=function(e){return this.str=e(this.str,this.metadata),this},t.Token.prototype.clone=function(e){return e=e||function(r){return r},new t.Token(e(this.str,this.metadata),this.metadata)};/*!
+ * lunr.tokenizer
+ * Copyright (C) 2020 Oliver Nightingale
+ */t.tokenizer=function(e,r){if(e==null||e==null)return[];if(Array.isArray(e))return e.map(function(y){return new t.Token(t.utils.asString(y).toLowerCase(),t.utils.clone(r))});for(var n=e.toString().toLowerCase(),i=n.length,s=[],o=0,a=0;o<=i;o++){var u=n.charAt(o),c=o-a;if(u.match(t.tokenizer.separator)||o==i){if(c>0){var d=t.utils.clone(r)||{};d.position=[a,c],d.index=s.length,s.push(new t.Token(n.slice(a,o),d))}a=o+1}}return s},t.tokenizer.separator=/[\s\-]+/;/*!
+ * lunr.Pipeline
+ * Copyright (C) 2020 Oliver Nightingale
+ */t.Pipeline=function(){this._stack=[]},t.Pipeline.registeredFunctions=Object.create(null),t.Pipeline.registerFunction=function(e,r){r in this.registeredFunctions&&t.utils.warn("Overwriting existing registered function: "+r),e.label=r,t.Pipeline.registeredFunctions[e.label]=e},t.Pipeline.warnIfFunctionNotRegistered=function(e){var r=e.label&&e.label in this.registeredFunctions;r||t.utils.warn(`Function is not registered with pipeline. This may cause problems when serialising the index.
+`,e)},t.Pipeline.load=function(e){var r=new t.Pipeline;return e.forEach(function(n){var i=t.Pipeline.registeredFunctions[n];if(i)r.add(i);else throw new Error("Cannot load unregistered function: "+n)}),r},t.Pipeline.prototype.add=function(){var e=Array.prototype.slice.call(arguments);e.forEach(function(r){t.Pipeline.warnIfFunctionNotRegistered(r),this._stack.push(r)},this)},t.Pipeline.prototype.after=function(e,r){t.Pipeline.warnIfFunctionNotRegistered(r);var n=this._stack.indexOf(e);if(n==-1)throw new Error("Cannot find existingFn");n=n+1,this._stack.splice(n,0,r)},t.Pipeline.prototype.before=function(e,r){t.Pipeline.warnIfFunctionNotRegistered(r);var n=this._stack.indexOf(e);if(n==-1)throw new Error("Cannot find existingFn");this._stack.splice(n,0,r)},t.Pipeline.prototype.remove=function(e){var r=this._stack.indexOf(e);r!=-1&&this._stack.splice(r,1)},t.Pipeline.prototype.run=function(e){for(var r=this._stack.length,n=0;n<r;n++){for(var i=this._stack[n],s=[],o=0;o<e.length;o++){var a=i(e[o],o,e);if(!(a==null||a===""))if(Array.isArray(a))for(var u=0;u<a.length;u++)s.push(a[u]);else s.push(a)}e=s}return e},t.Pipeline.prototype.runString=function(e,r){var n=new t.Token(e,r);return this.run([n]).map(function(i){return i.toString()})},t.Pipeline.prototype.reset=function(){this._stack=[]},t.Pipeline.prototype.toJSON=function(){return this._stack.map(function(e){return t.Pipeline.warnIfFunctionNotRegistered(e),e.label})};/*!
+ * lunr.Vector
+ * Copyright (C) 2020 Oliver Nightingale
+ */t.Vector=function(e){this._magnitude=0,this.elements=e||[]},t.Vector.prototype.positionForIndex=function(e){if(this.elements.length==0)return 0;for(var r=0,n=this.elements.length/2,i=n-r,s=Math.floor(i/2),o=this.elements[s*2];i>1&&(o<e&&(r=s),o>e&&(n=s),o!=e);)i=n-r,s=r+Math.floor(i/2),o=this.elements[s*2];if(o==e||o>e)return s*2;if(o<e)return(s+1)*2},t.Vector.prototype.insert=function(e,r){this.upsert(e,r,function(){throw"duplicate index"})},t.Vector.prototype.upsert=function(e,r,n){this._magnitude=0;var i=this.positionForIndex(e);this.elements[i]==e?this.elements[i+1]=n(this.elements[i+1],r):this.elements.splice(i,0,e,r)},t.Vector.prototype.magnitude=function(){if(this._magnitude)return this._magnitude;for(var e=0,r=this.elements.length,n=1;n<r;n+=2){var i=this.elements[n];e+=i*i}return this._magnitude=Math.sqrt(e)},t.Vector.prototype.dot=function(e){for(var r=0,n=this.elements,i=e.elements,s=n.length,o=i.length,a=0,u=0,c=0,d=0;c<s&&d<o;)a=n[c],u=i[d],a<u?c+=2:a>u?d+=2:a==u&&(r+=n[c+1]*i[d+1],c+=2,d+=2);return r},t.Vector.prototype.similarity=function(e){return this.dot(e)/this.magnitude()||0},t.Vector.prototype.toArray=function(){for(var e=new Array(this.elements.length/2),r=1,n=0;r<this.elements.length;r+=2,n++)e[n]=this.elements[r];return e},t.Vector.prototype.toJSON=function(){return this.elements};/*!
+ * lunr.stemmer
+ * Copyright (C) 2020 Oliver Nightingale
+ * Includes code from - http://tartarus.org/~martin/PorterStemmer/js.txt
+ */t.stemmer=function(){var e={ational:"ate",tional:"tion",enci:"ence",anci:"ance",izer:"ize",bli:"ble",alli:"al",entli:"ent",eli:"e",ousli:"ous",ization:"ize",ation:"ate",ator:"ate",alism:"al",iveness:"ive",fulness:"ful",ousness:"ous",aliti:"al",iviti:"ive",biliti:"ble",logi:"log"},r={icate:"ic",ative:"",alize:"al",iciti:"ic",ical:"ic",ful:"",ness:""},n="[^aeiou]",i="[aeiouy]",s=n+"[^aeiouy]*",o=i+"[aeiou]*",a="^("+s+")?"+o+s,u="^("+s+")?"+o+s+"("+o+")?$",c="^("+s+")?"+o+s+o+s,d="^("+s+")?"+i,y=new RegExp(a),p=new RegExp(c),b=new RegExp(u),m=new RegExp(d),Q=/^(.+?)(ss|i)es$/,f=/^(.+?)([^s])s$/,g=/^(.+?)eed$/,L=/^(.+?)(ed|ing)$/,w=/.$/,k=/(at|bl|iz)$/,O=new RegExp("([^aeiouylsz])\\1$"),j=new RegExp("^"+s+i+"[^aeiouwxy]$"),C=/^(.+?[^aeiou])y$/,A=/^(.+?)(ational|tional|enci|anci|izer|bli|alli|entli|eli|ousli|ization|ation|ator|alism|iveness|fulness|ousness|aliti|iviti|biliti|logi)$/,$=/^(.+?)(icate|ative|alize|iciti|ical|ful|ness)$/,D=/^(.+?)(al|ance|ence|er|ic|able|ible|ant|ement|ment|ent|ou|ism|ate|iti|ous|ive|ize)$/,V=/^(.+?)(s|t)(ion)$/,P=/^(.+?)e$/,N=/ll$/,B=new RegExp("^"+s+i+"[^aeiouwxy]$"),M=function(l){var v,I,E,h,x,T,F;if(l.length<3)return l;if(E=l.substr(0,1),E=="y"&&(l=E.toUpperCase()+l.substr(1)),h=Q,x=f,h.test(l)?l=l.replace(h,"$1$2"):x.test(l)&&(l=l.replace(x,"$1$2")),h=g,x=L,h.test(l)){var S=h.exec(l);h=y,h.test(S[1])&&(h=w,l=l.replace(h,""))}else if(x.test(l)){var S=x.exec(l);v=S[1],x=m,x.test(v)&&(l=v,x=k,T=O,F=j,x.test(l)?l=l+"e":T.test(l)?(h=w,l=l.replace(h,"")):F.test(l)&&(l=l+"e"))}if(h=C,h.test(l)){var S=h.exec(l);v=S[1],l=v+"i"}if(h=A,h.test(l)){var S=h.exec(l);v=S[1],I=S[2],h=y,h.test(v)&&(l=v+e[I])}if(h=$,h.test(l)){var S=h.exec(l);v=S[1],I=S[2],h=y,h.test(v)&&(l=v+r[I])}if(h=D,x=V,h.test(l)){var S=h.exec(l);v=S[1],h=p,h.test(v)&&(l=v)}else if(x.test(l)){var S=x.exec(l);v=S[1]+S[2],x=p,x.test(v)&&(l=v)}if(h=P,h.test(l)){var S=h.exec(l);v=S[1],h=p,x=b,T=B,(h.test(v)||x.test(v)&&!T.test(v))&&(l=v)}return h=N,x=p,h.test(l)&&x.test(l)&&(h=w,l=l.replace(h,"")),E=="y"&&(l=E.toLowerCase()+l.substr(1)),l};return function(_){return _.update(M)}}(),t.Pipeline.registerFunction(t.stemmer,"stemmer");/*!
+ * lunr.stopWordFilter
+ * Copyright (C) 2020 Oliver Nightingale
+ */t.generateStopWordFilter=function(e){var r=e.reduce(function(n,i){return n[i]=i,n},{});return function(n){if(n&&r[n.toString()]!==n.toString())return n}},t.stopWordFilter=t.generateStopWordFilter(["a","able","about","across","after","all","almost","also","am","among","an","and","any","are","as","at","be","because","been","but","by","can","cannot","could","dear","did","do","does","either","else","ever","every","for","from","get","got","had","has","have","he","her","hers","him","his","how","however","i","if","in","into","is","it","its","just","least","let","like","likely","may","me","might","most","must","my","neither","no","nor","not","of","off","often","on","only","or","other","our","own","rather","said","say","says","she","should","since","so","some","than","that","the","their","them","then","there","these","they","this","tis","to","too","twas","us","wants","was","we","were","what","when","where","which","while","who","whom","why","will","with","would","yet","you","your"]),t.Pipeline.registerFunction(t.stopWordFilter,"stopWordFilter");/*!
+ * lunr.trimmer
+ * Copyright (C) 2020 Oliver Nightingale
+ */t.trimmer=function(e){return e.update(function(r){return r.replace(/^\W+/,"").replace(/\W+$/,"")})},t.Pipeline.registerFunction(t.trimmer,"trimmer");/*!
+ * lunr.TokenSet
+ * Copyright (C) 2020 Oliver Nightingale
+ */t.TokenSet=function(){this.final=!1,this.edges={},this.id=t.TokenSet._nextId,t.TokenSet._nextId+=1},t.TokenSet._nextId=1,t.TokenSet.fromArray=function(e){for(var r=new t.TokenSet.Builder,n=0,i=e.length;n<i;n++)r.insert(e[n]);return r.finish(),r.root},t.TokenSet.fromClause=function(e){return"editDistance"in e?t.TokenSet.fromFuzzyString(e.term,e.editDistance):t.TokenSet.fromString(e.term)},t.TokenSet.fromFuzzyString=function(e,r){for(var n=new t.TokenSet,i=[{node:n,editsRemaining:r,str:e}];i.length;){var s=i.pop();if(s.str.length>0){var o=s.str.charAt(0),a;o in s.node.edges?a=s.node.edges[o]:(a=new t.TokenSet,s.node.edges[o]=a),s.str.length==1&&(a.final=!0),i.push({node:a,editsRemaining:s.editsRemaining,str:s.str.slice(1)})}if(s.editsRemaining!=0){if("*"in s.node.edges)var u=s.node.edges["*"];else{var u=new t.TokenSet;s.node.edges["*"]=u}if(s.str.length==0&&(u.final=!0),i.push({node:u,editsRemaining:s.editsRemaining-1,str:s.str}),s.str.length>1&&i.push({node:s.node,editsRemaining:s.editsRemaining-1,str:s.str.slice(1)}),s.str.length==1&&(s.node.final=!0),s.str.length>=1){if("*"in s.node.edges)var c=s.node.edges["*"];else{var c=new t.TokenSet;s.node.edges["*"]=c}s.str.length==1&&(c.final=!0),i.push({node:c,editsRemaining:s.editsRemaining-1,str:s.str.slice(1)})}if(s.str.length>1){var d=s.str.charAt(0),y=s.str.charAt(1),p;y in s.node.edges?p=s.node.edges[y]:(p=new t.TokenSet,s.node.edges[y]=p),s.str.length==1&&(p.final=!0),i.push({node:p,editsRemaining:s.editsRemaining-1,str:d+s.str.slice(2)})}}}return n},t.TokenSet.fromString=function(e){for(var r=new t.TokenSet,n=r,i=0,s=e.length;i<s;i++){var o=e[i],a=i==s-1;if(o=="*")r.edges[o]=r,r.final=a;else{var u=new t.TokenSet;u.final=a,r.edges[o]=u,r=u}}return n},t.TokenSet.prototype.toArray=function(){for(var e=[],r=[{prefix:"",node:this}];r.length;){var n=r.pop(),i=Object.keys(n.node.edges),s=i.length;n.node.final&&(n.prefix.charAt(0),e.push(n.prefix));for(var o=0;o<s;o++){var a=i[o];r.push({prefix:n.prefix.concat(a),node:n.node.edges[a]})}}return e},t.TokenSet.prototype.toString=function(){if(this._str)return this._str;for(var e=this.final?"1":"0",r=Object.keys(this.edges).sort(),n=r.length,i=0;i<n;i++){var s=r[i],o=this.edges[s];e=e+s+o.id}return e},t.TokenSet.prototype.intersect=function(e){for(var r=new t.TokenSet,n=void 0,i=[{qNode:e,output:r,node:this}];i.length;){n=i.pop();for(var s=Object.keys(n.qNode.edges),o=s.length,a=Object.keys(n.node.edges),u=a.length,c=0;c<o;c++)for(var d=s[c],y=0;y<u;y++){var p=a[y];if(p==d||d=="*"){var b=n.node.edges[p],m=n.qNode.edges[d],Q=b.final&&m.final,f=void 0;p in n.output.edges?(f=n.output.edges[p],f.final=f.final||Q):(f=new t.TokenSet,f.final=Q,n.output.edges[p]=f),i.push({qNode:m,output:f,node:b})}}}return r},t.TokenSet.Builder=function(){this.previousWord="",this.root=new t.TokenSet,this.uncheckedNodes=[],this.minimizedNodes={}},t.TokenSet.Builder.prototype.insert=function(e){var r,n=0;if(e<this.previousWord)throw new Error("Out of order word insertion");for(var i=0;i<e.length&&i<this.previousWord.length&&e[i]==this.previousWord[i];i++)n++;this.minimize(n),this.uncheckedNodes.length==0?r=this.root:r=this.uncheckedNodes[this.uncheckedNodes.length-1].child;for(var i=n;i<e.length;i++){var s=new t.TokenSet,o=e[i];r.edges[o]=s,this.uncheckedNodes.push({parent:r,char:o,child:s}),r=s}r.final=!0,this.previousWord=e},t.TokenSet.Builder.prototype.finish=function(){this.minimize(0)},t.TokenSet.Builder.prototype.minimize=function(e){for(var r=this.uncheckedNodes.length-1;r>=e;r--){var n=this.uncheckedNodes[r],i=n.child.toString();i in this.minimizedNodes?n.parent.edges[n.char]=this.minimizedNodes[i]:(n.child._str=i,this.minimizedNodes[i]=n.child),this.uncheckedNodes.pop()}};/*!
+ * lunr.Index
+ * Copyright (C) 2020 Oliver Nightingale
+ */t.Index=function(e){this.invertedIndex=e.invertedIndex,this.fieldVectors=e.fieldVectors,this.tokenSet=e.tokenSet,this.fields=e.fields,this.pipeline=e.pipeline},t.Index.prototype.search=function(e){return this.query(function(r){var n=new t.QueryParser(e,r);n.parse()})},t.Index.prototype.query=function(e){for(var r=new t.Query(this.fields),n=Object.create(null),i=Object.create(null),s=Object.create(null),o=Object.create(null),a=Object.create(null),u=0;u<this.fields.length;u++)i[this.fields[u]]=new t.Vector;e.call(r,r);for(var u=0;u<r.clauses.length;u++){var c=r.clauses[u],d=null,y=t.Set.empty;c.usePipeline?d=this.pipeline.runString(c.term,{fields:c.fields}):d=[c.term];for(var p=0;p<d.length;p++){var b=d[p];c.term=b;var m=t.TokenSet.fromClause(c),Q=this.tokenSet.intersect(m).toArray();if(Q.length===0&&c.presence===t.Query.presence.REQUIRED){for(var f=0;f<c.fields.length;f++){var g=c.fields[f];o[g]=t.Set.empty}break}for(var L=0;L<Q.length;L++)for(var w=Q[L],k=this.invertedIndex[w],O=k._index,f=0;f<c.fields.length;f++){var g=c.fields[f],j=k[g],C=Object.keys(j),A=w+"/"+g,$=new t.Set(C);if(c.presence==t.Query.presence.REQUIRED&&(y=y.union($),o[g]===void 0&&(o[g]=t.Set.complete)),c.presence==t.Query.presence.PROHIBITED){a[g]===void 0&&(a[g]=t.Set.empty),a[g]=a[g].union($);continue}if(i[g].upsert(O,c.boost,function(ue,ce){return ue+ce}),!s[A]){for(var D=0;D<C.length;D++){var V=C[D],P=new t.FieldRef(V,g),N=j[V],B;(B=n[P])===void 0?n[P]=new t.MatchData(w,g,N):B.add(w,g,N)}s[A]=!0}}}if(c.presence===t.Query.presence.REQUIRED)for(var f=0;f<c.fields.length;f++){var g=c.fields[f];o[g]=o[g].intersect(y)}}for(var M=t.Set.complete,_=t.Set.empty,u=0;u<this.fields.length;u++){var g=this.fields[u];o[g]&&(M=M.intersect(o[g])),a[g]&&(_=_.union(a[g]))}var l=Object.keys(n),v=[],I=Object.create(null);if(r.isNegated()){l=Object.keys(this.fieldVectors);for(var u=0;u<l.length;u++){var P=l[u],E=t.FieldRef.fromString(P);n[P]=new t.MatchData}}for(var u=0;u<l.length;u++){var E=t.FieldRef.fromString(l[u]),h=E.docRef;if(!!M.contains(h)&&!_.contains(h)){var x=this.fieldVectors[E],T=i[E.fieldName].similarity(x),F;if((F=I[h])!==void 0)F.score+=T,F.matchData.combine(n[E]);else{var S={ref:h,score:T,matchData:n[E]};I[h]=S,v.push(S)}}}return v.sort(function(oe,ae){return ae.score-oe.score})},t.Index.prototype.toJSON=function(){var e=Object.keys(this.invertedIndex).sort().map(function(n){return[n,this.invertedIndex[n]]},this),r=Object.keys(this.fieldVectors).map(function(n){return[n,this.fieldVectors[n].toJSON()]},this);return{version:t.version,fields:this.fields,fieldVectors:r,invertedIndex:e,pipeline:this.pipeline.toJSON()}},t.Index.load=function(e){var r={},n={},i=e.fieldVectors,s=Object.create(null),o=e.invertedIndex,a=new t.TokenSet.Builder,u=t.Pipeline.load(e.pipeline);e.version!=t.version&&t.utils.warn("Version mismatch when loading serialised index. Current version of lunr '"+t.version+"' does not match serialized index '"+e.version+"'");for(var c=0;c<i.length;c++){var d=i[c],y=d[0],p=d[1];n[y]=new t.Vector(p)}for(var c=0;c<o.length;c++){var d=o[c],b=d[0],m=d[1];a.insert(b),s[b]=m}return a.finish(),r.fields=e.fields,r.fieldVectors=n,r.invertedIndex=s,r.tokenSet=a.root,r.pipeline=u,new t.Index(r)};/*!
+ * lunr.Builder
+ * Copyright (C) 2020 Oliver Nightingale
+ */t.Builder=function(){this._ref="id",this._fields=Object.create(null),this._documents=Object.create(null),this.invertedIndex=Object.create(null),this.fieldTermFrequencies={},this.fieldLengths={},this.tokenizer=t.tokenizer,this.pipeline=new t.Pipeline,this.searchPipeline=new t.Pipeline,this.documentCount=0,this._b=.75,this._k1=1.2,this.termIndex=0,this.metadataWhitelist=[]},t.Builder.prototype.ref=function(e){this._ref=e},t.Builder.prototype.field=function(e,r){if(/\//.test(e))throw new RangeError("Field '"+e+"' contains illegal character '/'");this._fields[e]=r||{}},t.Builder.prototype.b=function(e){e<0?this._b=0:e>1?this._b=1:this._b=e},t.Builder.prototype.k1=function(e){this._k1=e},t.Builder.prototype.add=function(e,r){var n=e[this._ref],i=Object.keys(this._fields);this._documents[n]=r||{},this.documentCount+=1;for(var s=0;s<i.length;s++){var o=i[s],a=this._fields[o].extractor,u=a?a(e):e[o],c=this.tokenizer(u,{fields:[o]}),d=this.pipeline.run(c),y=new t.FieldRef(n,o),p=Object.create(null);this.fieldTermFrequencies[y]=p,this.fieldLengths[y]=0,this.fieldLengths[y]+=d.length;for(var b=0;b<d.length;b++){var m=d[b];if(p[m]==null&&(p[m]=0),p[m]+=1,this.invertedIndex[m]==null){var Q=Object.create(null);Q._index=this.termIndex,this.termIndex+=1;for(var f=0;f<i.length;f++)Q[i[f]]=Object.create(null);this.invertedIndex[m]=Q}this.invertedIndex[m][o][n]==null&&(this.invertedIndex[m][o][n]=Object.create(null));for(var g=0;g<this.metadataWhitelist.length;g++){var L=this.metadataWhitelist[g],w=m.metadata[L];this.invertedIndex[m][o][n][L]==null&&(this.invertedIndex[m][o][n][L]=[]),this.invertedIndex[m][o][n][L].push(w)}}}},t.Builder.prototype.calculateAverageFieldLengths=function(){for(var e=Object.keys(this.fieldLengths),r=e.length,n={},i={},s=0;s<r;s++){var o=t.FieldRef.fromString(e[s]),a=o.fieldName;i[a]||(i[a]=0),i[a]+=1,n[a]||(n[a]=0),n[a]+=this.fieldLengths[o]}for(var u=Object.keys(this._fields),s=0;s<u.length;s++){var c=u[s];n[c]=n[c]/i[c]}this.averageFieldLength=n},t.Builder.prototype.createFieldVectors=function(){for(var e={},r=Object.keys(this.fieldTermFrequencies),n=r.length,i=Object.create(null),s=0;s<n;s++){for(var o=t.FieldRef.fromString(r[s]),a=o.fieldName,u=this.fieldLengths[o],c=new t.Vector,d=this.fieldTermFrequencies[o],y=Object.keys(d),p=y.length,b=this._fields[a].boost||1,m=this._documents[o.docRef].boost||1,Q=0;Q<p;Q++){var f=y[Q],g=d[f],L=this.invertedIndex[f]._index,w,k,O;i[f]===void 0?(w=t.idf(this.invertedIndex[f],this.documentCount),i[f]=w):w=i[f],k=w*((this._k1+1)*g)/(this._k1*(1-this._b+this._b*(u/this.averageFieldLength[a]))+g),k*=b,k*=m,O=Math.round(k*1e3)/1e3,c.insert(L,O)}e[o]=c}this.fieldVectors=e},t.Builder.prototype.createTokenSet=function(){this.tokenSet=t.TokenSet.fromArray(Object.keys(this.invertedIndex).sort())},t.Builder.prototype.build=function(){return this.calculateAverageFieldLengths(),this.createFieldVectors(),this.createTokenSet(),new t.Index({invertedIndex:this.invertedIndex,fieldVectors:this.fieldVectors,tokenSet:this.tokenSet,fields:Object.keys(this._fields),pipeline:this.searchPipeline})},t.Builder.prototype.use=function(e){var r=Array.prototype.slice.call(arguments,1);r.unshift(this),e.apply(this,r)},t.MatchData=function(e,r,n){for(var i=Object.create(null),s=Object.keys(n||{}),o=0;o<s.length;o++){var a=s[o];i[a]=n[a].slice()}this.metadata=Object.create(null),e!==void 0&&(this.metadata[e]=Object.create(null),this.metadata[e][r]=i)},t.MatchData.prototype.combine=function(e){for(var r=Object.keys(e.metadata),n=0;n<r.length;n++){var i=r[n],s=Object.keys(e.metadata[i]);this.metadata[i]==null&&(this.metadata[i]=Object.create(null));for(var o=0;o<s.length;o++){var a=s[o],u=Object.keys(e.metadata[i][a]);this.metadata[i][a]==null&&(this.metadata[i][a]=Object.create(null));for(var c=0;c<u.length;c++){var d=u[c];this.metadata[i][a][d]==null?this.metadata[i][a][d]=e.metadata[i][a][d]:this.metadata[i][a][d]=this.metadata[i][a][d].concat(e.metadata[i][a][d])}}}},t.MatchData.prototype.add=function(e,r,n){if(!(e in this.metadata)){this.metadata[e]=Object.create(null),this.metadata[e][r]=n;return}if(!(r in this.metadata[e])){this.metadata[e][r]=n;return}for(var i=Object.keys(n),s=0;s<i.length;s++){var o=i[s];o in this.metadata[e][r]?this.metadata[e][r][o]=this.metadata[e][r][o].concat(n[o]):this.metadata[e][r][o]=n[o]}},t.Query=function(e){this.clauses=[],this.allFields=e},t.Query.wildcard=new String("*"),t.Query.wildcard.NONE=0,t.Query.wildcard.LEADING=1,t.Query.wildcard.TRAILING=2,t.Query.presence={OPTIONAL:1,REQUIRED:2,PROHIBITED:3},t.Query.prototype.clause=function(e){return"fields"in e||(e.fields=this.allFields),"boost"in e||(e.boost=1),"usePipeline"in e||(e.usePipeline=!0),"wildcard"in e||(e.wildcard=t.Query.wildcard.NONE),e.wildcard&t.Query.wildcard.LEADING&&e.term.charAt(0)!=t.Query.wildcard&&(e.term="*"+e.term),e.wildcard&t.Query.wildcard.TRAILING&&e.term.slice(-1)!=t.Query.wildcard&&(e.term=""+e.term+"*"),"presence"in e||(e.presence=t.Query.presence.OPTIONAL),this.clauses.push(e),this},t.Query.prototype.isNegated=function(){for(var e=0;e<this.clauses.length;e++)if(this.clauses[e].presence!=t.Query.presence.PROHIBITED)return!1;return!0},t.Query.prototype.term=function(e,r){if(Array.isArray(e))return e.forEach(function(i){this.term(i,t.utils.clone(r))},this),this;var n=r||{};return n.term=e.toString(),this.clause(n),this},t.QueryParseError=function(e,r,n){this.name="QueryParseError",this.message=e,this.start=r,this.end=n},t.QueryParseError.prototype=new Error,t.QueryLexer=function(e){this.lexemes=[],this.str=e,this.length=e.length,this.pos=0,this.start=0,this.escapeCharPositions=[]},t.QueryLexer.prototype.run=function(){for(var e=t.QueryLexer.lexText;e;)e=e(this)},t.QueryLexer.prototype.sliceString=function(){for(var e=[],r=this.start,n=this.pos,i=0;i<this.escapeCharPositions.length;i++)n=this.escapeCharPositions[i],e.push(this.str.slice(r,n)),r=n+1;return e.push(this.str.slice(r,this.pos)),this.escapeCharPositions.length=0,e.join("")},t.QueryLexer.prototype.emit=function(e){this.lexemes.push({type:e,str:this.sliceString(),start:this.start,end:this.pos}),this.start=this.pos},t.QueryLexer.prototype.escapeCharacter=function(){this.escapeCharPositions.push(this.pos-1),this.pos+=1},t.QueryLexer.prototype.next=function(){if(this.pos>=this.length)return t.QueryLexer.EOS;var e=this.str.charAt(this.pos);return this.pos+=1,e},t.QueryLexer.prototype.width=function(){return this.pos-this.start},t.QueryLexer.prototype.ignore=function(){this.start==this.pos&&(this.pos+=1),this.start=this.pos},t.QueryLexer.prototype.backup=function(){this.pos-=1},t.QueryLexer.prototype.acceptDigitRun=function(){var e,r;do e=this.next(),r=e.charCodeAt(0);while(r>47&&r<58);e!=t.QueryLexer.EOS&&this.backup()},t.QueryLexer.prototype.more=function(){return this.pos<this.length},t.QueryLexer.EOS="EOS",t.QueryLexer.FIELD="FIELD",t.QueryLexer.TERM="TERM",t.QueryLexer.EDIT_DISTANCE="EDIT_DISTANCE",t.QueryLexer.BOOST="BOOST",t.QueryLexer.PRESENCE="PRESENCE",t.QueryLexer.lexField=function(e){return e.backup(),e.emit(t.QueryLexer.FIELD),e.ignore(),t.QueryLexer.lexText},t.QueryLexer.lexTerm=function(e){if(e.width()>1&&(e.backup(),e.emit(t.QueryLexer.TERM)),e.ignore(),e.more())return t.QueryLexer.lexText},t.QueryLexer.lexEditDistance=function(e){return e.ignore(),e.acceptDigitRun(),e.emit(t.QueryLexer.EDIT_DISTANCE),t.QueryLexer.lexText},t.QueryLexer.lexBoost=function(e){return e.ignore(),e.acceptDigitRun(),e.emit(t.QueryLexer.BOOST),t.QueryLexer.lexText},t.QueryLexer.lexEOS=function(e){e.width()>0&&e.emit(t.QueryLexer.TERM)},t.QueryLexer.termSeparator=t.tokenizer.separator,t.QueryLexer.lexText=function(e){for(;;){var r=e.next();if(r==t.QueryLexer.EOS)return t.QueryLexer.lexEOS;if(r.charCodeAt(0)==92){e.escapeCharacter();continue}if(r==":")return t.QueryLexer.lexField;if(r=="~")return e.backup(),e.width()>0&&e.emit(t.QueryLexer.TERM),t.QueryLexer.lexEditDistance;if(r=="^")return e.backup(),e.width()>0&&e.emit(t.QueryLexer.TERM),t.QueryLexer.lexBoost;if(r=="+"&&e.width()===1||r=="-"&&e.width()===1)return e.emit(t.QueryLexer.PRESENCE),t.QueryLexer.lexText;if(r.match(t.QueryLexer.termSeparator))return t.QueryLexer.lexTerm}},t.QueryParser=function(e,r){this.lexer=new t.QueryLexer(e),this.query=r,this.currentClause={},this.lexemeIdx=0},t.QueryParser.prototype.parse=function(){this.lexer.run(),this.lexemes=this.lexer.lexemes;for(var e=t.QueryParser.parseClause;e;)e=e(this);return this.query},t.QueryParser.prototype.peekLexeme=function(){return this.lexemes[this.lexemeIdx]},t.QueryParser.prototype.consumeLexeme=function(){var e=this.peekLexeme();return this.lexemeIdx+=1,e},t.QueryParser.prototype.nextClause=function(){var e=this.currentClause;this.query.clause(e),this.currentClause={}},t.QueryParser.parseClause=function(e){var r=e.peekLexeme();if(r!=null)switch(r.type){case t.QueryLexer.PRESENCE:return t.QueryParser.parsePresence;case t.QueryLexer.FIELD:return t.QueryParser.parseField;case t.QueryLexer.TERM:return t.QueryParser.parseTerm;default:var n="expected either a field or a term, found "+r.type;throw r.str.length>=1&&(n+=" with value '"+r.str+"'"),new t.QueryParseError(n,r.start,r.end)}},t.QueryParser.parsePresence=function(e){var r=e.consumeLexeme();if(r!=null){switch(r.str){case"-":e.currentClause.presence=t.Query.presence.PROHIBITED;break;case"+":e.currentClause.presence=t.Query.presence.REQUIRED;break;default:var n="unrecognised presence operator'"+r.str+"'";throw new t.QueryParseError(n,r.start,r.end)}var i=e.peekLexeme();if(i==null){var n="expecting term or field, found nothing";throw new t.QueryParseError(n,r.start,r.end)}switch(i.type){case t.QueryLexer.FIELD:return t.QueryParser.parseField;case t.QueryLexer.TERM:return t.QueryParser.parseTerm;default:var n="expecting term or field, found '"+i.type+"'";throw new t.QueryParseError(n,i.start,i.end)}}},t.QueryParser.parseField=function(e){var r=e.consumeLexeme();if(r!=null){if(e.query.allFields.indexOf(r.str)==-1){var n=e.query.allFields.map(function(o){return"'"+o+"'"}).join(", "),i="unrecognised field '"+r.str+"', possible fields: "+n;throw new t.QueryParseError(i,r.start,r.end)}e.currentClause.fields=[r.str];var s=e.peekLexeme();if(s==null){var i="expecting term, found nothing";throw new t.QueryParseError(i,r.start,r.end)}switch(s.type){case t.QueryLexer.TERM:return t.QueryParser.parseTerm;default:var i="expecting term, found '"+s.type+"'";throw new t.QueryParseError(i,s.start,s.end)}}},t.QueryParser.parseTerm=function(e){var r=e.consumeLexeme();if(r!=null){e.currentClause.term=r.str.toLowerCase(),r.str.indexOf("*")!=-1&&(e.currentClause.usePipeline=!1);var n=e.peekLexeme();if(n==null){e.nextClause();return}switch(n.type){case t.QueryLexer.TERM:return e.nextClause(),t.QueryParser.parseTerm;case t.QueryLexer.FIELD:return e.nextClause(),t.QueryParser.parseField;case t.QueryLexer.EDIT_DISTANCE:return t.QueryParser.parseEditDistance;case t.QueryLexer.BOOST:return t.QueryParser.parseBoost;case t.QueryLexer.PRESENCE:return e.nextClause(),t.QueryParser.parsePresence;default:var i="Unexpected lexeme type '"+n.type+"'";throw new t.QueryParseError(i,n.start,n.end)}}},t.QueryParser.parseEditDistance=function(e){var r=e.consumeLexeme();if(r!=null){var n=parseInt(r.str,10);if(isNaN(n)){var i="edit distance must be numeric";throw new t.QueryParseError(i,r.start,r.end)}e.currentClause.editDistance=n;var s=e.peekLexeme();if(s==null){e.nextClause();return}switch(s.type){case t.QueryLexer.TERM:return e.nextClause(),t.QueryParser.parseTerm;case t.QueryLexer.FIELD:return e.nextClause(),t.QueryParser.parseField;case t.QueryLexer.EDIT_DISTANCE:return t.QueryParser.parseEditDistance;case t.QueryLexer.BOOST:return t.QueryParser.parseBoost;case t.QueryLexer.PRESENCE:return e.nextClause(),t.QueryParser.parsePresence;default:var i="Unexpected lexeme type '"+s.type+"'";throw new t.QueryParseError(i,s.start,s.end)}}},t.QueryParser.parseBoost=function(e){var r=e.consumeLexeme();if(r!=null){var n=parseInt(r.str,10);if(isNaN(n)){var i="boost must be numeric";throw new t.QueryParseError(i,r.start,r.end)}e.currentClause.boost=n;var s=e.peekLexeme();if(s==null){e.nextClause();return}switch(s.type){case t.QueryLexer.TERM:return e.nextClause(),t.QueryParser.parseTerm;case t.QueryLexer.FIELD:return e.nextClause(),t.QueryParser.parseField;case t.QueryLexer.EDIT_DISTANCE:return t.QueryParser.parseEditDistance;case t.QueryLexer.BOOST:return t.QueryParser.parseBoost;case t.QueryLexer.PRESENCE:return e.nextClause(),t.QueryParser.parsePresence;default:var i="Unexpected lexeme type '"+s.type+"'";throw new t.QueryParseError(i,s.start,s.end)}}},function(e,r){typeof define=="function"&&define.amd?define(r):typeof G=="object"?J.exports=r():e.lunr=r()}(this,function(){return t})})()});var K=q((we,Z)=>{/*!
+ * escape-html
+ * Copyright(c) 2012-2013 TJ Holowaychuk
+ * Copyright(c) 2015 Andreas Lubbe
+ * Copyright(c) 2015 Tiancheng "Timothy" Gu
+ * MIT Licensed
+ */"use strict";var me=/["'&<>]/;Z.exports=ve;function ve(t){var e=""+t,r=me.exec(e);if(!r)return e;var n,i="",s=0,o=0;for(s=r.index;s<e.length;s++){switch(e.charCodeAt(s)){case 34:n="&quot;";break;case 38:n="&amp;";break;case 39:n="&#39;";break;case 60:n="&lt;";break;case 62:n="&gt;";break;default:continue}o!==s&&(i+=e.substring(o,s)),o=s+1,i+=n}return o!==s?i+e.substring(o,s):i}});var se=Y(X());var ee=Y(K());function te(t){let e=new Map,r=new Set;for(let n of t){let[i,s]=n.location.split("#"),o=n.location,a=n.title,u=(0,ee.default)(n.text).replace(/\s+(?=[,.:;!?])/g,"").replace(/\s+/g," ");if(s){let c=e.get(i);r.has(c)?e.set(o,{location:o,title:a,text:u,parent:c}):(c.title=n.title,c.text=u,r.add(c))}else e.set(o,{location:o,title:a,text:u})}return e}function re(t){let e=new RegExp(t.separator,"img"),r=(n,i,s)=>`${i}<mark data-md-highlight>${s}</mark>`;return n=>{n=n.replace(/[\s*+\-:~^]+/g," ").trim();let i=new RegExp(`(^|${t.separator})(${n.replace(/[|\\{}()[\]^$+*?.-]/g,"\\$&").replace(e,"|")})`,"img");return s=>s.replace(i,r).replace(/<\/mark>(\s+)<mark[^>]*>/img,"$1")}}function ne(t){let e=new lunr.Query(["title","text"]);return new lunr.QueryParser(t,e).parse(),e.clauses}function ie(t,e){let r=new Set(t),n={};for(let i=0;i<e.length;i++)for(let s of r)e[i].startsWith(s.term)&&(n[s.term]=!0,r.delete(s));for(let i of r)n[i.term]=!1;return n}function xe(t,e){let[r,n]=[new Set(t),new Set(e)];return[...new Set([...r].filter(i=>!n.has(i)))]}var W=class{constructor({config:e,docs:r,pipeline:n,index:i}){this.documents=te(r),this.highlight=re(e),lunr.tokenizer.separator=new RegExp(e.separator),typeof i=="undefined"?this.index=lunr(function(){e.lang.length===1&&e.lang[0]!=="en"?this.use(lunr[e.lang[0]]):e.lang.length>1&&this.use(lunr.multiLanguage(...e.lang));let s=xe(["trimmer","stopWordFilter","stemmer"],n);for(let o of e.lang.map(a=>a==="en"?lunr:lunr[a]))for(let a of s)this.pipeline.remove(o[a]),this.searchPipeline.remove(o[a]);this.field("title",{boost:1e3}),this.field("text"),this.ref("location");for(let o of r)this.add(o)}):this.index=lunr.Index.load(i)}search(e){if(e)try{let r=this.highlight(e),n=ne(e).filter(s=>s.presence!==lunr.Query.presence.PROHIBITED);return[...this.index.search(`${e}*`).reduce((s,{ref:o,score:a,matchData:u})=>{let c=this.documents.get(o);if(typeof c!="undefined"){let{location:d,title:y,text:p,parent:b}=c,m=ie(n,Object.keys(u.metadata)),Q=+!b+ +Object.values(m).every(f=>f);s.push({location:d,title:r(y),text:r(p),score:a*(1+Q),terms:m})}return s},[]).sort((s,o)=>o.score-s.score).reduce((s,o)=>{let a=this.documents.get(o.location);if(typeof a!="undefined"){let u="parent"in a?a.parent.location:a.location;s.set(u,[...s.get(u)||[],o])}return s},new Map).values()]}catch(r){console.warn(`Invalid query: ${e} \u2013 see https://bit.ly/2s3ChXG`)}return[]}};var R;(function(i){i[i.SETUP=0]="SETUP",i[i.READY=1]="READY",i[i.QUERY=2]="QUERY",i[i.RESULT=3]="RESULT"})(R||(R={}));var H;function Se(t){return z(this,null,function*(){let e="../lunr";if(typeof parent!="undefined"&&"IFrameWorker"in parent){let n=document.querySelector("script[src]"),[i]=n.src.split("/worker");e=e.replace("..",i)}let r=[];for(let n of t.lang){switch(n){case"ja":r.push(`${e}/tinyseg.js`);break;case"hi":case"th":r.push(`${e}/wordcut.js`);break}n!=="en"&&r.push(`${e}/min/lunr.${n}.min.js`)}t.lang.length>1&&r.push(`${e}/min/lunr.multi.min.js`),r.length&&(yield importScripts(`${e}/min/lunr.stemmer.support.min.js`,...r))})}function Qe(t){return z(this,null,function*(){switch(t.type){case R.SETUP:return yield Se(t.data.config),H=new W(t.data),{type:R.READY};case R.QUERY:return{type:R.RESULT,data:H?H.search(t.data):[]};default:throw new TypeError("Invalid message type")}})}self.lunr=se.default;addEventListener("message",t=>z(void 0,null,function*(){postMessage(yield Qe(t.data))}));})();
+//# sourceMappingURL=search.477d984a.min.js.map
+
diff --git a/freetype/docs/reference/assets/javascripts/workers/search.477d984a.min.js.map b/freetype/docs/reference/assets/javascripts/workers/search.477d984a.min.js.map
new file mode 100644
index 00000000..e1f2dd9c
--- /dev/null
+++ b/freetype/docs/reference/assets/javascripts/workers/search.477d984a.min.js.map
@@ -0,0 +1,7 @@
+{
+ "version": 3,
+ "sources": ["node_modules/lunr/lunr.js", "node_modules/escape-html/index.js", "src/assets/javascripts/integrations/search/worker/main/index.ts", "src/assets/javascripts/integrations/search/document/index.ts", "src/assets/javascripts/integrations/search/highlighter/index.ts", "src/assets/javascripts/integrations/search/query/_/index.ts", "src/assets/javascripts/integrations/search/_/index.ts", "src/assets/javascripts/integrations/search/worker/message/index.ts"],
+ "sourcesContent": ["/**\n * lunr - http://lunrjs.com - A bit like Solr, but much smaller and not as bright - 2.3.9\n * Copyright (C) 2020 Oliver Nightingale\n * @license MIT\n */\n\n;(function(){\n\n/**\n * A convenience function for configuring and constructing\n * a new lunr Index.\n *\n * A lunr.Builder instance is created and the pipeline setup\n * with a trimmer, stop word filter and stemmer.\n *\n * This builder object is yielded to the configuration function\n * that is passed as a parameter, allowing the list of fields\n * and other builder parameters to be customised.\n *\n * All documents _must_ be added within the passed config function.\n *\n * @example\n * var idx = lunr(function () {\n * this.field('title')\n * this.field('body')\n * this.ref('id')\n *\n * documents.forEach(function (doc) {\n * this.add(doc)\n * }, this)\n * })\n *\n * @see {@link lunr.Builder}\n * @see {@link lunr.Pipeline}\n * @see {@link lunr.trimmer}\n * @see {@link lunr.stopWordFilter}\n * @see {@link lunr.stemmer}\n * @namespace {function} lunr\n */\nvar lunr = function (config) {\n var builder = new lunr.Builder\n\n builder.pipeline.add(\n lunr.trimmer,\n lunr.stopWordFilter,\n lunr.stemmer\n )\n\n builder.searchPipeline.add(\n lunr.stemmer\n )\n\n config.call(builder, builder)\n return builder.build()\n}\n\nlunr.version = \"2.3.9\"\n/*!\n * lunr.utils\n * Copyright (C) 2020 Oliver Nightingale\n */\n\n/**\n * A namespace containing utils for the rest of the lunr library\n * @namespace lunr.utils\n */\nlunr.utils = {}\n\n/**\n * Print a warning message to the console.\n *\n * @param {String} message The message to be printed.\n * @memberOf lunr.utils\n * @function\n */\nlunr.utils.warn = (function (global) {\n /* eslint-disable no-console */\n return function (message) {\n if (global.console && console.warn) {\n console.warn(message)\n }\n }\n /* eslint-enable no-console */\n})(this)\n\n/**\n * Convert an object to a string.\n *\n * In the case of `null` and `undefined` the function returns\n * the empty string, in all other cases the result of calling\n * `toString` on the passed object is returned.\n *\n * @param {Any} obj The object to convert to a string.\n * @return {String} string representation of the passed object.\n * @memberOf lunr.utils\n */\nlunr.utils.asString = function (obj) {\n if (obj === void 0 || obj === null) {\n return \"\"\n } else {\n return obj.toString()\n }\n}\n\n/**\n * Clones an object.\n *\n * Will create a copy of an existing object such that any mutations\n * on the copy cannot affect the original.\n *\n * Only shallow objects are supported, passing a nested object to this\n * function will cause a TypeError.\n *\n * Objects with primitives, and arrays of primitives are supported.\n *\n * @param {Object} obj The object to clone.\n * @return {Object} a clone of the passed object.\n * @throws {TypeError} when a nested object is passed.\n * @memberOf Utils\n */\nlunr.utils.clone = function (obj) {\n if (obj === null || obj === undefined) {\n return obj\n }\n\n var clone = Object.create(null),\n keys = Object.keys(obj)\n\n for (var i = 0; i < keys.length; i++) {\n var key = keys[i],\n val = obj[key]\n\n if (Array.isArray(val)) {\n clone[key] = val.slice()\n continue\n }\n\n if (typeof val === 'string' ||\n typeof val === 'number' ||\n typeof val === 'boolean') {\n clone[key] = val\n continue\n }\n\n throw new TypeError(\"clone is not deep and does not support nested objects\")\n }\n\n return clone\n}\nlunr.FieldRef = function (docRef, fieldName, stringValue) {\n this.docRef = docRef\n this.fieldName = fieldName\n this._stringValue = stringValue\n}\n\nlunr.FieldRef.joiner = \"/\"\n\nlunr.FieldRef.fromString = function (s) {\n var n = s.indexOf(lunr.FieldRef.joiner)\n\n if (n === -1) {\n throw \"malformed field ref string\"\n }\n\n var fieldRef = s.slice(0, n),\n docRef = s.slice(n + 1)\n\n return new lunr.FieldRef (docRef, fieldRef, s)\n}\n\nlunr.FieldRef.prototype.toString = function () {\n if (this._stringValue == undefined) {\n this._stringValue = this.fieldName + lunr.FieldRef.joiner + this.docRef\n }\n\n return this._stringValue\n}\n/*!\n * lunr.Set\n * Copyright (C) 2020 Oliver Nightingale\n */\n\n/**\n * A lunr set.\n *\n * @constructor\n */\nlunr.Set = function (elements) {\n this.elements = Object.create(null)\n\n if (elements) {\n this.length = elements.length\n\n for (var i = 0; i < this.length; i++) {\n this.elements[elements[i]] = true\n }\n } else {\n this.length = 0\n }\n}\n\n/**\n * A complete set that contains all elements.\n *\n * @static\n * @readonly\n * @type {lunr.Set}\n */\nlunr.Set.complete = {\n intersect: function (other) {\n return other\n },\n\n union: function () {\n return this\n },\n\n contains: function () {\n return true\n }\n}\n\n/**\n * An empty set that contains no elements.\n *\n * @static\n * @readonly\n * @type {lunr.Set}\n */\nlunr.Set.empty = {\n intersect: function () {\n return this\n },\n\n union: function (other) {\n return other\n },\n\n contains: function () {\n return false\n }\n}\n\n/**\n * Returns true if this set contains the specified object.\n *\n * @param {object} object - Object whose presence in this set is to be tested.\n * @returns {boolean} - True if this set contains the specified object.\n */\nlunr.Set.prototype.contains = function (object) {\n return !!this.elements[object]\n}\n\n/**\n * Returns a new set containing only the elements that are present in both\n * this set and the specified set.\n *\n * @param {lunr.Set} other - set to intersect with this set.\n * @returns {lunr.Set} a new set that is the intersection of this and the specified set.\n */\n\nlunr.Set.prototype.intersect = function (other) {\n var a, b, elements, intersection = []\n\n if (other === lunr.Set.complete) {\n return this\n }\n\n if (other === lunr.Set.empty) {\n return other\n }\n\n if (this.length < other.length) {\n a = this\n b = other\n } else {\n a = other\n b = this\n }\n\n elements = Object.keys(a.elements)\n\n for (var i = 0; i < elements.length; i++) {\n var element = elements[i]\n if (element in b.elements) {\n intersection.push(element)\n }\n }\n\n return new lunr.Set (intersection)\n}\n\n/**\n * Returns a new set combining the elements of this and the specified set.\n *\n * @param {lunr.Set} other - set to union with this set.\n * @return {lunr.Set} a new set that is the union of this and the specified set.\n */\n\nlunr.Set.prototype.union = function (other) {\n if (other === lunr.Set.complete) {\n return lunr.Set.complete\n }\n\n if (other === lunr.Set.empty) {\n return this\n }\n\n return new lunr.Set(Object.keys(this.elements).concat(Object.keys(other.elements)))\n}\n/**\n * A function to calculate the inverse document frequency for\n * a posting. This is shared between the builder and the index\n *\n * @private\n * @param {object} posting - The posting for a given term\n * @param {number} documentCount - The total number of documents.\n */\nlunr.idf = function (posting, documentCount) {\n var documentsWithTerm = 0\n\n for (var fieldName in posting) {\n if (fieldName == '_index') continue // Ignore the term index, its not a field\n documentsWithTerm += Object.keys(posting[fieldName]).length\n }\n\n var x = (documentCount - documentsWithTerm + 0.5) / (documentsWithTerm + 0.5)\n\n return Math.log(1 + Math.abs(x))\n}\n\n/**\n * A token wraps a string representation of a token\n * as it is passed through the text processing pipeline.\n *\n * @constructor\n * @param {string} [str=''] - The string token being wrapped.\n * @param {object} [metadata={}] - Metadata associated with this token.\n */\nlunr.Token = function (str, metadata) {\n this.str = str || \"\"\n this.metadata = metadata || {}\n}\n\n/**\n * Returns the token string that is being wrapped by this object.\n *\n * @returns {string}\n */\nlunr.Token.prototype.toString = function () {\n return this.str\n}\n\n/**\n * A token update function is used when updating or optionally\n * when cloning a token.\n *\n * @callback lunr.Token~updateFunction\n * @param {string} str - The string representation of the token.\n * @param {Object} metadata - All metadata associated with this token.\n */\n\n/**\n * Applies the given function to the wrapped string token.\n *\n * @example\n * token.update(function (str, metadata) {\n * return str.toUpperCase()\n * })\n *\n * @param {lunr.Token~updateFunction} fn - A function to apply to the token string.\n * @returns {lunr.Token}\n */\nlunr.Token.prototype.update = function (fn) {\n this.str = fn(this.str, this.metadata)\n return this\n}\n\n/**\n * Creates a clone of this token. Optionally a function can be\n * applied to the cloned token.\n *\n * @param {lunr.Token~updateFunction} [fn] - An optional function to apply to the cloned token.\n * @returns {lunr.Token}\n */\nlunr.Token.prototype.clone = function (fn) {\n fn = fn || function (s) { return s }\n return new lunr.Token (fn(this.str, this.metadata), this.metadata)\n}\n/*!\n * lunr.tokenizer\n * Copyright (C) 2020 Oliver Nightingale\n */\n\n/**\n * A function for splitting a string into tokens ready to be inserted into\n * the search index. Uses `lunr.tokenizer.separator` to split strings, change\n * the value of this property to change how strings are split into tokens.\n *\n * This tokenizer will convert its parameter to a string by calling `toString` and\n * then will split this string on the character in `lunr.tokenizer.separator`.\n * Arrays will have their elements converted to strings and wrapped in a lunr.Token.\n *\n * Optional metadata can be passed to the tokenizer, this metadata will be cloned and\n * added as metadata to every token that is created from the object to be tokenized.\n *\n * @static\n * @param {?(string|object|object[])} obj - The object to convert into tokens\n * @param {?object} metadata - Optional metadata to associate with every token\n * @returns {lunr.Token[]}\n * @see {@link lunr.Pipeline}\n */\nlunr.tokenizer = function (obj, metadata) {\n if (obj == null || obj == undefined) {\n return []\n }\n\n if (Array.isArray(obj)) {\n return obj.map(function (t) {\n return new lunr.Token(\n lunr.utils.asString(t).toLowerCase(),\n lunr.utils.clone(metadata)\n )\n })\n }\n\n var str = obj.toString().toLowerCase(),\n len = str.length,\n tokens = []\n\n for (var sliceEnd = 0, sliceStart = 0; sliceEnd <= len; sliceEnd++) {\n var char = str.charAt(sliceEnd),\n sliceLength = sliceEnd - sliceStart\n\n if ((char.match(lunr.tokenizer.separator) || sliceEnd == len)) {\n\n if (sliceLength > 0) {\n var tokenMetadata = lunr.utils.clone(metadata) || {}\n tokenMetadata[\"position\"] = [sliceStart, sliceLength]\n tokenMetadata[\"index\"] = tokens.length\n\n tokens.push(\n new lunr.Token (\n str.slice(sliceStart, sliceEnd),\n tokenMetadata\n )\n )\n }\n\n sliceStart = sliceEnd + 1\n }\n\n }\n\n return tokens\n}\n\n/**\n * The separator used to split a string into tokens. Override this property to change the behaviour of\n * `lunr.tokenizer` behaviour when tokenizing strings. By default this splits on whitespace and hyphens.\n *\n * @static\n * @see lunr.tokenizer\n */\nlunr.tokenizer.separator = /[\\s\\-]+/\n/*!\n * lunr.Pipeline\n * Copyright (C) 2020 Oliver Nightingale\n */\n\n/**\n * lunr.Pipelines maintain an ordered list of functions to be applied to all\n * tokens in documents entering the search index and queries being ran against\n * the index.\n *\n * An instance of lunr.Index created with the lunr shortcut will contain a\n * pipeline with a stop word filter and an English language stemmer. Extra\n * functions can be added before or after either of these functions or these\n * default functions can be removed.\n *\n * When run the pipeline will call each function in turn, passing a token, the\n * index of that token in the original list of all tokens and finally a list of\n * all the original tokens.\n *\n * The output of functions in the pipeline will be passed to the next function\n * in the pipeline. To exclude a token from entering the index the function\n * should return undefined, the rest of the pipeline will not be called with\n * this token.\n *\n * For serialisation of pipelines to work, all functions used in an instance of\n * a pipeline should be registered with lunr.Pipeline. Registered functions can\n * then be loaded. If trying to load a serialised pipeline that uses functions\n * that are not registered an error will be thrown.\n *\n * If not planning on serialising the pipeline then registering pipeline functions\n * is not necessary.\n *\n * @constructor\n */\nlunr.Pipeline = function () {\n this._stack = []\n}\n\nlunr.Pipeline.registeredFunctions = Object.create(null)\n\n/**\n * A pipeline function maps lunr.Token to lunr.Token. A lunr.Token contains the token\n * string as well as all known metadata. A pipeline function can mutate the token string\n * or mutate (or add) metadata for a given token.\n *\n * A pipeline function can indicate that the passed token should be discarded by returning\n * null, undefined or an empty string. This token will not be passed to any downstream pipeline\n * functions and will not be added to the index.\n *\n * Multiple tokens can be returned by returning an array of tokens. Each token will be passed\n * to any downstream pipeline functions and all will returned tokens will be added to the index.\n *\n * Any number of pipeline functions may be chained together using a lunr.Pipeline.\n *\n * @interface lunr.PipelineFunction\n * @param {lunr.Token} token - A token from the document being processed.\n * @param {number} i - The index of this token in the complete list of tokens for this document/field.\n * @param {lunr.Token[]} tokens - All tokens for this document/field.\n * @returns {(?lunr.Token|lunr.Token[])}\n */\n\n/**\n * Register a function with the pipeline.\n *\n * Functions that are used in the pipeline should be registered if the pipeline\n * needs to be serialised, or a serialised pipeline needs to be loaded.\n *\n * Registering a function does not add it to a pipeline, functions must still be\n * added to instances of the pipeline for them to be used when running a pipeline.\n *\n * @param {lunr.PipelineFunction} fn - The function to check for.\n * @param {String} label - The label to register this function with\n */\nlunr.Pipeline.registerFunction = function (fn, label) {\n if (label in this.registeredFunctions) {\n lunr.utils.warn('Overwriting existing registered function: ' + label)\n }\n\n fn.label = label\n lunr.Pipeline.registeredFunctions[fn.label] = fn\n}\n\n/**\n * Warns if the function is not registered as a Pipeline function.\n *\n * @param {lunr.PipelineFunction} fn - The function to check for.\n * @private\n */\nlunr.Pipeline.warnIfFunctionNotRegistered = function (fn) {\n var isRegistered = fn.label && (fn.label in this.registeredFunctions)\n\n if (!isRegistered) {\n lunr.utils.warn('Function is not registered with pipeline. This may cause problems when serialising the index.\\n', fn)\n }\n}\n\n/**\n * Loads a previously serialised pipeline.\n *\n * All functions to be loaded must already be registered with lunr.Pipeline.\n * If any function from the serialised data has not been registered then an\n * error will be thrown.\n *\n * @param {Object} serialised - The serialised pipeline to load.\n * @returns {lunr.Pipeline}\n */\nlunr.Pipeline.load = function (serialised) {\n var pipeline = new lunr.Pipeline\n\n serialised.forEach(function (fnName) {\n var fn = lunr.Pipeline.registeredFunctions[fnName]\n\n if (fn) {\n pipeline.add(fn)\n } else {\n throw new Error('Cannot load unregistered function: ' + fnName)\n }\n })\n\n return pipeline\n}\n\n/**\n * Adds new functions to the end of the pipeline.\n *\n * Logs a warning if the function has not been registered.\n *\n * @param {lunr.PipelineFunction[]} functions - Any number of functions to add to the pipeline.\n */\nlunr.Pipeline.prototype.add = function () {\n var fns = Array.prototype.slice.call(arguments)\n\n fns.forEach(function (fn) {\n lunr.Pipeline.warnIfFunctionNotRegistered(fn)\n this._stack.push(fn)\n }, this)\n}\n\n/**\n * Adds a single function after a function that already exists in the\n * pipeline.\n *\n * Logs a warning if the function has not been registered.\n *\n * @param {lunr.PipelineFunction} existingFn - A function that already exists in the pipeline.\n * @param {lunr.PipelineFunction} newFn - The new function to add to the pipeline.\n */\nlunr.Pipeline.prototype.after = function (existingFn, newFn) {\n lunr.Pipeline.warnIfFunctionNotRegistered(newFn)\n\n var pos = this._stack.indexOf(existingFn)\n if (pos == -1) {\n throw new Error('Cannot find existingFn')\n }\n\n pos = pos + 1\n this._stack.splice(pos, 0, newFn)\n}\n\n/**\n * Adds a single function before a function that already exists in the\n * pipeline.\n *\n * Logs a warning if the function has not been registered.\n *\n * @param {lunr.PipelineFunction} existingFn - A function that already exists in the pipeline.\n * @param {lunr.PipelineFunction} newFn - The new function to add to the pipeline.\n */\nlunr.Pipeline.prototype.before = function (existingFn, newFn) {\n lunr.Pipeline.warnIfFunctionNotRegistered(newFn)\n\n var pos = this._stack.indexOf(existingFn)\n if (pos == -1) {\n throw new Error('Cannot find existingFn')\n }\n\n this._stack.splice(pos, 0, newFn)\n}\n\n/**\n * Removes a function from the pipeline.\n *\n * @param {lunr.PipelineFunction} fn The function to remove from the pipeline.\n */\nlunr.Pipeline.prototype.remove = function (fn) {\n var pos = this._stack.indexOf(fn)\n if (pos == -1) {\n return\n }\n\n this._stack.splice(pos, 1)\n}\n\n/**\n * Runs the current list of functions that make up the pipeline against the\n * passed tokens.\n *\n * @param {Array} tokens The tokens to run through the pipeline.\n * @returns {Array}\n */\nlunr.Pipeline.prototype.run = function (tokens) {\n var stackLength = this._stack.length\n\n for (var i = 0; i < stackLength; i++) {\n var fn = this._stack[i]\n var memo = []\n\n for (var j = 0; j < tokens.length; j++) {\n var result = fn(tokens[j], j, tokens)\n\n if (result === null || result === void 0 || result === '') continue\n\n if (Array.isArray(result)) {\n for (var k = 0; k < result.length; k++) {\n memo.push(result[k])\n }\n } else {\n memo.push(result)\n }\n }\n\n tokens = memo\n }\n\n return tokens\n}\n\n/**\n * Convenience method for passing a string through a pipeline and getting\n * strings out. This method takes care of wrapping the passed string in a\n * token and mapping the resulting tokens back to strings.\n *\n * @param {string} str - The string to pass through the pipeline.\n * @param {?object} metadata - Optional metadata to associate with the token\n * passed to the pipeline.\n * @returns {string[]}\n */\nlunr.Pipeline.prototype.runString = function (str, metadata) {\n var token = new lunr.Token (str, metadata)\n\n return this.run([token]).map(function (t) {\n return t.toString()\n })\n}\n\n/**\n * Resets the pipeline by removing any existing processors.\n *\n */\nlunr.Pipeline.prototype.reset = function () {\n this._stack = []\n}\n\n/**\n * Returns a representation of the pipeline ready for serialisation.\n *\n * Logs a warning if the function has not been registered.\n *\n * @returns {Array}\n */\nlunr.Pipeline.prototype.toJSON = function () {\n return this._stack.map(function (fn) {\n lunr.Pipeline.warnIfFunctionNotRegistered(fn)\n\n return fn.label\n })\n}\n/*!\n * lunr.Vector\n * Copyright (C) 2020 Oliver Nightingale\n */\n\n/**\n * A vector is used to construct the vector space of documents and queries. These\n * vectors support operations to determine the similarity between two documents or\n * a document and a query.\n *\n * Normally no parameters are required for initializing a vector, but in the case of\n * loading a previously dumped vector the raw elements can be provided to the constructor.\n *\n * For performance reasons vectors are implemented with a flat array, where an elements\n * index is immediately followed by its value. E.g. [index, value, index, value]. This\n * allows the underlying array to be as sparse as possible and still offer decent\n * performance when being used for vector calculations.\n *\n * @constructor\n * @param {Number[]} [elements] - The flat list of element index and element value pairs.\n */\nlunr.Vector = function (elements) {\n this._magnitude = 0\n this.elements = elements || []\n}\n\n\n/**\n * Calculates the position within the vector to insert a given index.\n *\n * This is used internally by insert and upsert. If there are duplicate indexes then\n * the position is returned as if the value for that index were to be updated, but it\n * is the callers responsibility to check whether there is a duplicate at that index\n *\n * @param {Number} insertIdx - The index at which the element should be inserted.\n * @returns {Number}\n */\nlunr.Vector.prototype.positionForIndex = function (index) {\n // For an empty vector the tuple can be inserted at the beginning\n if (this.elements.length == 0) {\n return 0\n }\n\n var start = 0,\n end = this.elements.length / 2,\n sliceLength = end - start,\n pivotPoint = Math.floor(sliceLength / 2),\n pivotIndex = this.elements[pivotPoint * 2]\n\n while (sliceLength > 1) {\n if (pivotIndex < index) {\n start = pivotPoint\n }\n\n if (pivotIndex > index) {\n end = pivotPoint\n }\n\n if (pivotIndex == index) {\n break\n }\n\n sliceLength = end - start\n pivotPoint = start + Math.floor(sliceLength / 2)\n pivotIndex = this.elements[pivotPoint * 2]\n }\n\n if (pivotIndex == index) {\n return pivotPoint * 2\n }\n\n if (pivotIndex > index) {\n return pivotPoint * 2\n }\n\n if (pivotIndex < index) {\n return (pivotPoint + 1) * 2\n }\n}\n\n/**\n * Inserts an element at an index within the vector.\n *\n * Does not allow duplicates, will throw an error if there is already an entry\n * for this index.\n *\n * @param {Number} insertIdx - The index at which the element should be inserted.\n * @param {Number} val - The value to be inserted into the vector.\n */\nlunr.Vector.prototype.insert = function (insertIdx, val) {\n this.upsert(insertIdx, val, function () {\n throw \"duplicate index\"\n })\n}\n\n/**\n * Inserts or updates an existing index within the vector.\n *\n * @param {Number} insertIdx - The index at which the element should be inserted.\n * @param {Number} val - The value to be inserted into the vector.\n * @param {function} fn - A function that is called for updates, the existing value and the\n * requested value are passed as arguments\n */\nlunr.Vector.prototype.upsert = function (insertIdx, val, fn) {\n this._magnitude = 0\n var position = this.positionForIndex(insertIdx)\n\n if (this.elements[position] == insertIdx) {\n this.elements[position + 1] = fn(this.elements[position + 1], val)\n } else {\n this.elements.splice(position, 0, insertIdx, val)\n }\n}\n\n/**\n * Calculates the magnitude of this vector.\n *\n * @returns {Number}\n */\nlunr.Vector.prototype.magnitude = function () {\n if (this._magnitude) return this._magnitude\n\n var sumOfSquares = 0,\n elementsLength = this.elements.length\n\n for (var i = 1; i < elementsLength; i += 2) {\n var val = this.elements[i]\n sumOfSquares += val * val\n }\n\n return this._magnitude = Math.sqrt(sumOfSquares)\n}\n\n/**\n * Calculates the dot product of this vector and another vector.\n *\n * @param {lunr.Vector} otherVector - The vector to compute the dot product with.\n * @returns {Number}\n */\nlunr.Vector.prototype.dot = function (otherVector) {\n var dotProduct = 0,\n a = this.elements, b = otherVector.elements,\n aLen = a.length, bLen = b.length,\n aVal = 0, bVal = 0,\n i = 0, j = 0\n\n while (i < aLen && j < bLen) {\n aVal = a[i], bVal = b[j]\n if (aVal < bVal) {\n i += 2\n } else if (aVal > bVal) {\n j += 2\n } else if (aVal == bVal) {\n dotProduct += a[i + 1] * b[j + 1]\n i += 2\n j += 2\n }\n }\n\n return dotProduct\n}\n\n/**\n * Calculates the similarity between this vector and another vector.\n *\n * @param {lunr.Vector} otherVector - The other vector to calculate the\n * similarity with.\n * @returns {Number}\n */\nlunr.Vector.prototype.similarity = function (otherVector) {\n return this.dot(otherVector) / this.magnitude() || 0\n}\n\n/**\n * Converts the vector to an array of the elements within the vector.\n *\n * @returns {Number[]}\n */\nlunr.Vector.prototype.toArray = function () {\n var output = new Array (this.elements.length / 2)\n\n for (var i = 1, j = 0; i < this.elements.length; i += 2, j++) {\n output[j] = this.elements[i]\n }\n\n return output\n}\n\n/**\n * A JSON serializable representation of the vector.\n *\n * @returns {Number[]}\n */\nlunr.Vector.prototype.toJSON = function () {\n return this.elements\n}\n/* eslint-disable */\n/*!\n * lunr.stemmer\n * Copyright (C) 2020 Oliver Nightingale\n * Includes code from - http://tartarus.org/~martin/PorterStemmer/js.txt\n */\n\n/**\n * lunr.stemmer is an english language stemmer, this is a JavaScript\n * implementation of the PorterStemmer taken from http://tartarus.org/~martin\n *\n * @static\n * @implements {lunr.PipelineFunction}\n * @param {lunr.Token} token - The string to stem\n * @returns {lunr.Token}\n * @see {@link lunr.Pipeline}\n * @function\n */\nlunr.stemmer = (function(){\n var step2list = {\n \"ational\" : \"ate\",\n \"tional\" : \"tion\",\n \"enci\" : \"ence\",\n \"anci\" : \"ance\",\n \"izer\" : \"ize\",\n \"bli\" : \"ble\",\n \"alli\" : \"al\",\n \"entli\" : \"ent\",\n \"eli\" : \"e\",\n \"ousli\" : \"ous\",\n \"ization\" : \"ize\",\n \"ation\" : \"ate\",\n \"ator\" : \"ate\",\n \"alism\" : \"al\",\n \"iveness\" : \"ive\",\n \"fulness\" : \"ful\",\n \"ousness\" : \"ous\",\n \"aliti\" : \"al\",\n \"iviti\" : \"ive\",\n \"biliti\" : \"ble\",\n \"logi\" : \"log\"\n },\n\n step3list = {\n \"icate\" : \"ic\",\n \"ative\" : \"\",\n \"alize\" : \"al\",\n \"iciti\" : \"ic\",\n \"ical\" : \"ic\",\n \"ful\" : \"\",\n \"ness\" : \"\"\n },\n\n c = \"[^aeiou]\", // consonant\n v = \"[aeiouy]\", // vowel\n C = c + \"[^aeiouy]*\", // consonant sequence\n V = v + \"[aeiou]*\", // vowel sequence\n\n mgr0 = \"^(\" + C + \")?\" + V + C, // [C]VC... is m>0\n meq1 = \"^(\" + C + \")?\" + V + C + \"(\" + V + \")?$\", // [C]VC[V] is m=1\n mgr1 = \"^(\" + C + \")?\" + V + C + V + C, // [C]VCVC... is m>1\n s_v = \"^(\" + C + \")?\" + v; // vowel in stem\n\n var re_mgr0 = new RegExp(mgr0);\n var re_mgr1 = new RegExp(mgr1);\n var re_meq1 = new RegExp(meq1);\n var re_s_v = new RegExp(s_v);\n\n var re_1a = /^(.+?)(ss|i)es$/;\n var re2_1a = /^(.+?)([^s])s$/;\n var re_1b = /^(.+?)eed$/;\n var re2_1b = /^(.+?)(ed|ing)$/;\n var re_1b_2 = /.$/;\n var re2_1b_2 = /(at|bl|iz)$/;\n var re3_1b_2 = new RegExp(\"([^aeiouylsz])\\\\1$\");\n var re4_1b_2 = new RegExp(\"^\" + C + v + \"[^aeiouwxy]$\");\n\n var re_1c = /^(.+?[^aeiou])y$/;\n var re_2 = /^(.+?)(ational|tional|enci|anci|izer|bli|alli|entli|eli|ousli|ization|ation|ator|alism|iveness|fulness|ousness|aliti|iviti|biliti|logi)$/;\n\n var re_3 = /^(.+?)(icate|ative|alize|iciti|ical|ful|ness)$/;\n\n var re_4 = /^(.+?)(al|ance|ence|er|ic|able|ible|ant|ement|ment|ent|ou|ism|ate|iti|ous|ive|ize)$/;\n var re2_4 = /^(.+?)(s|t)(ion)$/;\n\n var re_5 = /^(.+?)e$/;\n var re_5_1 = /ll$/;\n var re3_5 = new RegExp(\"^\" + C + v + \"[^aeiouwxy]$\");\n\n var porterStemmer = function porterStemmer(w) {\n var stem,\n suffix,\n firstch,\n re,\n re2,\n re3,\n re4;\n\n if (w.length < 3) { return w; }\n\n firstch = w.substr(0,1);\n if (firstch == \"y\") {\n w = firstch.toUpperCase() + w.substr(1);\n }\n\n // Step 1a\n re = re_1a\n re2 = re2_1a;\n\n if (re.test(w)) { w = w.replace(re,\"$1$2\"); }\n else if (re2.test(w)) { w = w.replace(re2,\"$1$2\"); }\n\n // Step 1b\n re = re_1b;\n re2 = re2_1b;\n if (re.test(w)) {\n var fp = re.exec(w);\n re = re_mgr0;\n if (re.test(fp[1])) {\n re = re_1b_2;\n w = w.replace(re,\"\");\n }\n } else if (re2.test(w)) {\n var fp = re2.exec(w);\n stem = fp[1];\n re2 = re_s_v;\n if (re2.test(stem)) {\n w = stem;\n re2 = re2_1b_2;\n re3 = re3_1b_2;\n re4 = re4_1b_2;\n if (re2.test(w)) { w = w + \"e\"; }\n else if (re3.test(w)) { re = re_1b_2; w = w.replace(re,\"\"); }\n else if (re4.test(w)) { w = w + \"e\"; }\n }\n }\n\n // Step 1c - replace suffix y or Y by i if preceded by a non-vowel which is not the first letter of the word (so cry -> cri, by -> by, say -> say)\n re = re_1c;\n if (re.test(w)) {\n var fp = re.exec(w);\n stem = fp[1];\n w = stem + \"i\";\n }\n\n // Step 2\n re = re_2;\n if (re.test(w)) {\n var fp = re.exec(w);\n stem = fp[1];\n suffix = fp[2];\n re = re_mgr0;\n if (re.test(stem)) {\n w = stem + step2list[suffix];\n }\n }\n\n // Step 3\n re = re_3;\n if (re.test(w)) {\n var fp = re.exec(w);\n stem = fp[1];\n suffix = fp[2];\n re = re_mgr0;\n if (re.test(stem)) {\n w = stem + step3list[suffix];\n }\n }\n\n // Step 4\n re = re_4;\n re2 = re2_4;\n if (re.test(w)) {\n var fp = re.exec(w);\n stem = fp[1];\n re = re_mgr1;\n if (re.test(stem)) {\n w = stem;\n }\n } else if (re2.test(w)) {\n var fp = re2.exec(w);\n stem = fp[1] + fp[2];\n re2 = re_mgr1;\n if (re2.test(stem)) {\n w = stem;\n }\n }\n\n // Step 5\n re = re_5;\n if (re.test(w)) {\n var fp = re.exec(w);\n stem = fp[1];\n re = re_mgr1;\n re2 = re_meq1;\n re3 = re3_5;\n if (re.test(stem) || (re2.test(stem) && !(re3.test(stem)))) {\n w = stem;\n }\n }\n\n re = re_5_1;\n re2 = re_mgr1;\n if (re.test(w) && re2.test(w)) {\n re = re_1b_2;\n w = w.replace(re,\"\");\n }\n\n // and turn initial Y back to y\n\n if (firstch == \"y\") {\n w = firstch.toLowerCase() + w.substr(1);\n }\n\n return w;\n };\n\n return function (token) {\n return token.update(porterStemmer);\n }\n})();\n\nlunr.Pipeline.registerFunction(lunr.stemmer, 'stemmer')\n/*!\n * lunr.stopWordFilter\n * Copyright (C) 2020 Oliver Nightingale\n */\n\n/**\n * lunr.generateStopWordFilter builds a stopWordFilter function from the provided\n * list of stop words.\n *\n * The built in lunr.stopWordFilter is built using this generator and can be used\n * to generate custom stopWordFilters for applications or non English languages.\n *\n * @function\n * @param {Array} token The token to pass through the filter\n * @returns {lunr.PipelineFunction}\n * @see lunr.Pipeline\n * @see lunr.stopWordFilter\n */\nlunr.generateStopWordFilter = function (stopWords) {\n var words = stopWords.reduce(function (memo, stopWord) {\n memo[stopWord] = stopWord\n return memo\n }, {})\n\n return function (token) {\n if (token && words[token.toString()] !== token.toString()) return token\n }\n}\n\n/**\n * lunr.stopWordFilter is an English language stop word list filter, any words\n * contained in the list will not be passed through the filter.\n *\n * This is intended to be used in the Pipeline. If the token does not pass the\n * filter then undefined will be returned.\n *\n * @function\n * @implements {lunr.PipelineFunction}\n * @params {lunr.Token} token - A token to check for being a stop word.\n * @returns {lunr.Token}\n * @see {@link lunr.Pipeline}\n */\nlunr.stopWordFilter = lunr.generateStopWordFilter([\n 'a',\n 'able',\n 'about',\n 'across',\n 'after',\n 'all',\n 'almost',\n 'also',\n 'am',\n 'among',\n 'an',\n 'and',\n 'any',\n 'are',\n 'as',\n 'at',\n 'be',\n 'because',\n 'been',\n 'but',\n 'by',\n 'can',\n 'cannot',\n 'could',\n 'dear',\n 'did',\n 'do',\n 'does',\n 'either',\n 'else',\n 'ever',\n 'every',\n 'for',\n 'from',\n 'get',\n 'got',\n 'had',\n 'has',\n 'have',\n 'he',\n 'her',\n 'hers',\n 'him',\n 'his',\n 'how',\n 'however',\n 'i',\n 'if',\n 'in',\n 'into',\n 'is',\n 'it',\n 'its',\n 'just',\n 'least',\n 'let',\n 'like',\n 'likely',\n 'may',\n 'me',\n 'might',\n 'most',\n 'must',\n 'my',\n 'neither',\n 'no',\n 'nor',\n 'not',\n 'of',\n 'off',\n 'often',\n 'on',\n 'only',\n 'or',\n 'other',\n 'our',\n 'own',\n 'rather',\n 'said',\n 'say',\n 'says',\n 'she',\n 'should',\n 'since',\n 'so',\n 'some',\n 'than',\n 'that',\n 'the',\n 'their',\n 'them',\n 'then',\n 'there',\n 'these',\n 'they',\n 'this',\n 'tis',\n 'to',\n 'too',\n 'twas',\n 'us',\n 'wants',\n 'was',\n 'we',\n 'were',\n 'what',\n 'when',\n 'where',\n 'which',\n 'while',\n 'who',\n 'whom',\n 'why',\n 'will',\n 'with',\n 'would',\n 'yet',\n 'you',\n 'your'\n])\n\nlunr.Pipeline.registerFunction(lunr.stopWordFilter, 'stopWordFilter')\n/*!\n * lunr.trimmer\n * Copyright (C) 2020 Oliver Nightingale\n */\n\n/**\n * lunr.trimmer is a pipeline function for trimming non word\n * characters from the beginning and end of tokens before they\n * enter the index.\n *\n * This implementation may not work correctly for non latin\n * characters and should either be removed or adapted for use\n * with languages with non-latin characters.\n *\n * @static\n * @implements {lunr.PipelineFunction}\n * @param {lunr.Token} token The token to pass through the filter\n * @returns {lunr.Token}\n * @see lunr.Pipeline\n */\nlunr.trimmer = function (token) {\n return token.update(function (s) {\n return s.replace(/^\\W+/, '').replace(/\\W+$/, '')\n })\n}\n\nlunr.Pipeline.registerFunction(lunr.trimmer, 'trimmer')\n/*!\n * lunr.TokenSet\n * Copyright (C) 2020 Oliver Nightingale\n */\n\n/**\n * A token set is used to store the unique list of all tokens\n * within an index. Token sets are also used to represent an\n * incoming query to the index, this query token set and index\n * token set are then intersected to find which tokens to look\n * up in the inverted index.\n *\n * A token set can hold multiple tokens, as in the case of the\n * index token set, or it can hold a single token as in the\n * case of a simple query token set.\n *\n * Additionally token sets are used to perform wildcard matching.\n * Leading, contained and trailing wildcards are supported, and\n * from this edit distance matching can also be provided.\n *\n * Token sets are implemented as a minimal finite state automata,\n * where both common prefixes and suffixes are shared between tokens.\n * This helps to reduce the space used for storing the token set.\n *\n * @constructor\n */\nlunr.TokenSet = function () {\n this.final = false\n this.edges = {}\n this.id = lunr.TokenSet._nextId\n lunr.TokenSet._nextId += 1\n}\n\n/**\n * Keeps track of the next, auto increment, identifier to assign\n * to a new tokenSet.\n *\n * TokenSets require a unique identifier to be correctly minimised.\n *\n * @private\n */\nlunr.TokenSet._nextId = 1\n\n/**\n * Creates a TokenSet instance from the given sorted array of words.\n *\n * @param {String[]} arr - A sorted array of strings to create the set from.\n * @returns {lunr.TokenSet}\n * @throws Will throw an error if the input array is not sorted.\n */\nlunr.TokenSet.fromArray = function (arr) {\n var builder = new lunr.TokenSet.Builder\n\n for (var i = 0, len = arr.length; i < len; i++) {\n builder.insert(arr[i])\n }\n\n builder.finish()\n return builder.root\n}\n\n/**\n * Creates a token set from a query clause.\n *\n * @private\n * @param {Object} clause - A single clause from lunr.Query.\n * @param {string} clause.term - The query clause term.\n * @param {number} [clause.editDistance] - The optional edit distance for the term.\n * @returns {lunr.TokenSet}\n */\nlunr.TokenSet.fromClause = function (clause) {\n if ('editDistance' in clause) {\n return lunr.TokenSet.fromFuzzyString(clause.term, clause.editDistance)\n } else {\n return lunr.TokenSet.fromString(clause.term)\n }\n}\n\n/**\n * Creates a token set representing a single string with a specified\n * edit distance.\n *\n * Insertions, deletions, substitutions and transpositions are each\n * treated as an edit distance of 1.\n *\n * Increasing the allowed edit distance will have a dramatic impact\n * on the performance of both creating and intersecting these TokenSets.\n * It is advised to keep the edit distance less than 3.\n *\n * @param {string} str - The string to create the token set from.\n * @param {number} editDistance - The allowed edit distance to match.\n * @returns {lunr.Vector}\n */\nlunr.TokenSet.fromFuzzyString = function (str, editDistance) {\n var root = new lunr.TokenSet\n\n var stack = [{\n node: root,\n editsRemaining: editDistance,\n str: str\n }]\n\n while (stack.length) {\n var frame = stack.pop()\n\n // no edit\n if (frame.str.length > 0) {\n var char = frame.str.charAt(0),\n noEditNode\n\n if (char in frame.node.edges) {\n noEditNode = frame.node.edges[char]\n } else {\n noEditNode = new lunr.TokenSet\n frame.node.edges[char] = noEditNode\n }\n\n if (frame.str.length == 1) {\n noEditNode.final = true\n }\n\n stack.push({\n node: noEditNode,\n editsRemaining: frame.editsRemaining,\n str: frame.str.slice(1)\n })\n }\n\n if (frame.editsRemaining == 0) {\n continue\n }\n\n // insertion\n if (\"*\" in frame.node.edges) {\n var insertionNode = frame.node.edges[\"*\"]\n } else {\n var insertionNode = new lunr.TokenSet\n frame.node.edges[\"*\"] = insertionNode\n }\n\n if (frame.str.length == 0) {\n insertionNode.final = true\n }\n\n stack.push({\n node: insertionNode,\n editsRemaining: frame.editsRemaining - 1,\n str: frame.str\n })\n\n // deletion\n // can only do a deletion if we have enough edits remaining\n // and if there are characters left to delete in the string\n if (frame.str.length > 1) {\n stack.push({\n node: frame.node,\n editsRemaining: frame.editsRemaining - 1,\n str: frame.str.slice(1)\n })\n }\n\n // deletion\n // just removing the last character from the str\n if (frame.str.length == 1) {\n frame.node.final = true\n }\n\n // substitution\n // can only do a substitution if we have enough edits remaining\n // and if there are characters left to substitute\n if (frame.str.length >= 1) {\n if (\"*\" in frame.node.edges) {\n var substitutionNode = frame.node.edges[\"*\"]\n } else {\n var substitutionNode = new lunr.TokenSet\n frame.node.edges[\"*\"] = substitutionNode\n }\n\n if (frame.str.length == 1) {\n substitutionNode.final = true\n }\n\n stack.push({\n node: substitutionNode,\n editsRemaining: frame.editsRemaining - 1,\n str: frame.str.slice(1)\n })\n }\n\n // transposition\n // can only do a transposition if there are edits remaining\n // and there are enough characters to transpose\n if (frame.str.length > 1) {\n var charA = frame.str.charAt(0),\n charB = frame.str.charAt(1),\n transposeNode\n\n if (charB in frame.node.edges) {\n transposeNode = frame.node.edges[charB]\n } else {\n transposeNode = new lunr.TokenSet\n frame.node.edges[charB] = transposeNode\n }\n\n if (frame.str.length == 1) {\n transposeNode.final = true\n }\n\n stack.push({\n node: transposeNode,\n editsRemaining: frame.editsRemaining - 1,\n str: charA + frame.str.slice(2)\n })\n }\n }\n\n return root\n}\n\n/**\n * Creates a TokenSet from a string.\n *\n * The string may contain one or more wildcard characters (*)\n * that will allow wildcard matching when intersecting with\n * another TokenSet.\n *\n * @param {string} str - The string to create a TokenSet from.\n * @returns {lunr.TokenSet}\n */\nlunr.TokenSet.fromString = function (str) {\n var node = new lunr.TokenSet,\n root = node\n\n /*\n * Iterates through all characters within the passed string\n * appending a node for each character.\n *\n * When a wildcard character is found then a self\n * referencing edge is introduced to continually match\n * any number of any characters.\n */\n for (var i = 0, len = str.length; i < len; i++) {\n var char = str[i],\n final = (i == len - 1)\n\n if (char == \"*\") {\n node.edges[char] = node\n node.final = final\n\n } else {\n var next = new lunr.TokenSet\n next.final = final\n\n node.edges[char] = next\n node = next\n }\n }\n\n return root\n}\n\n/**\n * Converts this TokenSet into an array of strings\n * contained within the TokenSet.\n *\n * This is not intended to be used on a TokenSet that\n * contains wildcards, in these cases the results are\n * undefined and are likely to cause an infinite loop.\n *\n * @returns {string[]}\n */\nlunr.TokenSet.prototype.toArray = function () {\n var words = []\n\n var stack = [{\n prefix: \"\",\n node: this\n }]\n\n while (stack.length) {\n var frame = stack.pop(),\n edges = Object.keys(frame.node.edges),\n len = edges.length\n\n if (frame.node.final) {\n /* In Safari, at this point the prefix is sometimes corrupted, see:\n * https://github.com/olivernn/lunr.js/issues/279 Calling any\n * String.prototype method forces Safari to \"cast\" this string to what\n * it's supposed to be, fixing the bug. */\n frame.prefix.charAt(0)\n words.push(frame.prefix)\n }\n\n for (var i = 0; i < len; i++) {\n var edge = edges[i]\n\n stack.push({\n prefix: frame.prefix.concat(edge),\n node: frame.node.edges[edge]\n })\n }\n }\n\n return words\n}\n\n/**\n * Generates a string representation of a TokenSet.\n *\n * This is intended to allow TokenSets to be used as keys\n * in objects, largely to aid the construction and minimisation\n * of a TokenSet. As such it is not designed to be a human\n * friendly representation of the TokenSet.\n *\n * @returns {string}\n */\nlunr.TokenSet.prototype.toString = function () {\n // NOTE: Using Object.keys here as this.edges is very likely\n // to enter 'hash-mode' with many keys being added\n //\n // avoiding a for-in loop here as it leads to the function\n // being de-optimised (at least in V8). From some simple\n // benchmarks the performance is comparable, but allowing\n // V8 to optimize may mean easy performance wins in the future.\n\n if (this._str) {\n return this._str\n }\n\n var str = this.final ? '1' : '0',\n labels = Object.keys(this.edges).sort(),\n len = labels.length\n\n for (var i = 0; i < len; i++) {\n var label = labels[i],\n node = this.edges[label]\n\n str = str + label + node.id\n }\n\n return str\n}\n\n/**\n * Returns a new TokenSet that is the intersection of\n * this TokenSet and the passed TokenSet.\n *\n * This intersection will take into account any wildcards\n * contained within the TokenSet.\n *\n * @param {lunr.TokenSet} b - An other TokenSet to intersect with.\n * @returns {lunr.TokenSet}\n */\nlunr.TokenSet.prototype.intersect = function (b) {\n var output = new lunr.TokenSet,\n frame = undefined\n\n var stack = [{\n qNode: b,\n output: output,\n node: this\n }]\n\n while (stack.length) {\n frame = stack.pop()\n\n // NOTE: As with the #toString method, we are using\n // Object.keys and a for loop instead of a for-in loop\n // as both of these objects enter 'hash' mode, causing\n // the function to be de-optimised in V8\n var qEdges = Object.keys(frame.qNode.edges),\n qLen = qEdges.length,\n nEdges = Object.keys(frame.node.edges),\n nLen = nEdges.length\n\n for (var q = 0; q < qLen; q++) {\n var qEdge = qEdges[q]\n\n for (var n = 0; n < nLen; n++) {\n var nEdge = nEdges[n]\n\n if (nEdge == qEdge || qEdge == '*') {\n var node = frame.node.edges[nEdge],\n qNode = frame.qNode.edges[qEdge],\n final = node.final && qNode.final,\n next = undefined\n\n if (nEdge in frame.output.edges) {\n // an edge already exists for this character\n // no need to create a new node, just set the finality\n // bit unless this node is already final\n next = frame.output.edges[nEdge]\n next.final = next.final || final\n\n } else {\n // no edge exists yet, must create one\n // set the finality bit and insert it\n // into the output\n next = new lunr.TokenSet\n next.final = final\n frame.output.edges[nEdge] = next\n }\n\n stack.push({\n qNode: qNode,\n output: next,\n node: node\n })\n }\n }\n }\n }\n\n return output\n}\nlunr.TokenSet.Builder = function () {\n this.previousWord = \"\"\n this.root = new lunr.TokenSet\n this.uncheckedNodes = []\n this.minimizedNodes = {}\n}\n\nlunr.TokenSet.Builder.prototype.insert = function (word) {\n var node,\n commonPrefix = 0\n\n if (word < this.previousWord) {\n throw new Error (\"Out of order word insertion\")\n }\n\n for (var i = 0; i < word.length && i < this.previousWord.length; i++) {\n if (word[i] != this.previousWord[i]) break\n commonPrefix++\n }\n\n this.minimize(commonPrefix)\n\n if (this.uncheckedNodes.length == 0) {\n node = this.root\n } else {\n node = this.uncheckedNodes[this.uncheckedNodes.length - 1].child\n }\n\n for (var i = commonPrefix; i < word.length; i++) {\n var nextNode = new lunr.TokenSet,\n char = word[i]\n\n node.edges[char] = nextNode\n\n this.uncheckedNodes.push({\n parent: node,\n char: char,\n child: nextNode\n })\n\n node = nextNode\n }\n\n node.final = true\n this.previousWord = word\n}\n\nlunr.TokenSet.Builder.prototype.finish = function () {\n this.minimize(0)\n}\n\nlunr.TokenSet.Builder.prototype.minimize = function (downTo) {\n for (var i = this.uncheckedNodes.length - 1; i >= downTo; i--) {\n var node = this.uncheckedNodes[i],\n childKey = node.child.toString()\n\n if (childKey in this.minimizedNodes) {\n node.parent.edges[node.char] = this.minimizedNodes[childKey]\n } else {\n // Cache the key for this node since\n // we know it can't change anymore\n node.child._str = childKey\n\n this.minimizedNodes[childKey] = node.child\n }\n\n this.uncheckedNodes.pop()\n }\n}\n/*!\n * lunr.Index\n * Copyright (C) 2020 Oliver Nightingale\n */\n\n/**\n * An index contains the built index of all documents and provides a query interface\n * to the index.\n *\n * Usually instances of lunr.Index will not be created using this constructor, instead\n * lunr.Builder should be used to construct new indexes, or lunr.Index.load should be\n * used to load previously built and serialized indexes.\n *\n * @constructor\n * @param {Object} attrs - The attributes of the built search index.\n * @param {Object} attrs.invertedIndex - An index of term/field to document reference.\n * @param {Object<string, lunr.Vector>} attrs.fieldVectors - Field vectors\n * @param {lunr.TokenSet} attrs.tokenSet - An set of all corpus tokens.\n * @param {string[]} attrs.fields - The names of indexed document fields.\n * @param {lunr.Pipeline} attrs.pipeline - The pipeline to use for search terms.\n */\nlunr.Index = function (attrs) {\n this.invertedIndex = attrs.invertedIndex\n this.fieldVectors = attrs.fieldVectors\n this.tokenSet = attrs.tokenSet\n this.fields = attrs.fields\n this.pipeline = attrs.pipeline\n}\n\n/**\n * A result contains details of a document matching a search query.\n * @typedef {Object} lunr.Index~Result\n * @property {string} ref - The reference of the document this result represents.\n * @property {number} score - A number between 0 and 1 representing how similar this document is to the query.\n * @property {lunr.MatchData} matchData - Contains metadata about this match including which term(s) caused the match.\n */\n\n/**\n * Although lunr provides the ability to create queries using lunr.Query, it also provides a simple\n * query language which itself is parsed into an instance of lunr.Query.\n *\n * For programmatically building queries it is advised to directly use lunr.Query, the query language\n * is best used for human entered text rather than program generated text.\n *\n * At its simplest queries can just be a single term, e.g. `hello`, multiple terms are also supported\n * and will be combined with OR, e.g `hello world` will match documents that contain either 'hello'\n * or 'world', though those that contain both will rank higher in the results.\n *\n * Wildcards can be included in terms to match one or more unspecified characters, these wildcards can\n * be inserted anywhere within the term, and more than one wildcard can exist in a single term. Adding\n * wildcards will increase the number of documents that will be found but can also have a negative\n * impact on query performance, especially with wildcards at the beginning of a term.\n *\n * Terms can be restricted to specific fields, e.g. `title:hello`, only documents with the term\n * hello in the title field will match this query. Using a field not present in the index will lead\n * to an error being thrown.\n *\n * Modifiers can also be added to terms, lunr supports edit distance and boost modifiers on terms. A term\n * boost will make documents matching that term score higher, e.g. `foo^5`. Edit distance is also supported\n * to provide fuzzy matching, e.g. 'hello~2' will match documents with hello with an edit distance of 2.\n * Avoid large values for edit distance to improve query performance.\n *\n * Each term also supports a presence modifier. By default a term's presence in document is optional, however\n * this can be changed to either required or prohibited. For a term's presence to be required in a document the\n * term should be prefixed with a '+', e.g. `+foo bar` is a search for documents that must contain 'foo' and\n * optionally contain 'bar'. Conversely a leading '-' sets the terms presence to prohibited, i.e. it must not\n * appear in a document, e.g. `-foo bar` is a search for documents that do not contain 'foo' but may contain 'bar'.\n *\n * To escape special characters the backslash character '\\' can be used, this allows searches to include\n * characters that would normally be considered modifiers, e.g. `foo\\~2` will search for a term \"foo~2\" instead\n * of attempting to apply a boost of 2 to the search term \"foo\".\n *\n * @typedef {string} lunr.Index~QueryString\n * @example <caption>Simple single term query</caption>\n * hello\n * @example <caption>Multiple term query</caption>\n * hello world\n * @example <caption>term scoped to a field</caption>\n * title:hello\n * @example <caption>term with a boost of 10</caption>\n * hello^10\n * @example <caption>term with an edit distance of 2</caption>\n * hello~2\n * @example <caption>terms with presence modifiers</caption>\n * -foo +bar baz\n */\n\n/**\n * Performs a search against the index using lunr query syntax.\n *\n * Results will be returned sorted by their score, the most relevant results\n * will be returned first. For details on how the score is calculated, please see\n * the {@link https://lunrjs.com/guides/searching.html#scoring|guide}.\n *\n * For more programmatic querying use lunr.Index#query.\n *\n * @param {lunr.Index~QueryString} queryString - A string containing a lunr query.\n * @throws {lunr.QueryParseError} If the passed query string cannot be parsed.\n * @returns {lunr.Index~Result[]}\n */\nlunr.Index.prototype.search = function (queryString) {\n return this.query(function (query) {\n var parser = new lunr.QueryParser(queryString, query)\n parser.parse()\n })\n}\n\n/**\n * A query builder callback provides a query object to be used to express\n * the query to perform on the index.\n *\n * @callback lunr.Index~queryBuilder\n * @param {lunr.Query} query - The query object to build up.\n * @this lunr.Query\n */\n\n/**\n * Performs a query against the index using the yielded lunr.Query object.\n *\n * If performing programmatic queries against the index, this method is preferred\n * over lunr.Index#search so as to avoid the additional query parsing overhead.\n *\n * A query object is yielded to the supplied function which should be used to\n * express the query to be run against the index.\n *\n * Note that although this function takes a callback parameter it is _not_ an\n * asynchronous operation, the callback is just yielded a query object to be\n * customized.\n *\n * @param {lunr.Index~queryBuilder} fn - A function that is used to build the query.\n * @returns {lunr.Index~Result[]}\n */\nlunr.Index.prototype.query = function (fn) {\n // for each query clause\n // * process terms\n // * expand terms from token set\n // * find matching documents and metadata\n // * get document vectors\n // * score documents\n\n var query = new lunr.Query(this.fields),\n matchingFields = Object.create(null),\n queryVectors = Object.create(null),\n termFieldCache = Object.create(null),\n requiredMatches = Object.create(null),\n prohibitedMatches = Object.create(null)\n\n /*\n * To support field level boosts a query vector is created per\n * field. An empty vector is eagerly created to support negated\n * queries.\n */\n for (var i = 0; i < this.fields.length; i++) {\n queryVectors[this.fields[i]] = new lunr.Vector\n }\n\n fn.call(query, query)\n\n for (var i = 0; i < query.clauses.length; i++) {\n /*\n * Unless the pipeline has been disabled for this term, which is\n * the case for terms with wildcards, we need to pass the clause\n * term through the search pipeline. A pipeline returns an array\n * of processed terms. Pipeline functions may expand the passed\n * term, which means we may end up performing multiple index lookups\n * for a single query term.\n */\n var clause = query.clauses[i],\n terms = null,\n clauseMatches = lunr.Set.empty\n\n if (clause.usePipeline) {\n terms = this.pipeline.runString(clause.term, {\n fields: clause.fields\n })\n } else {\n terms = [clause.term]\n }\n\n for (var m = 0; m < terms.length; m++) {\n var term = terms[m]\n\n /*\n * Each term returned from the pipeline needs to use the same query\n * clause object, e.g. the same boost and or edit distance. The\n * simplest way to do this is to re-use the clause object but mutate\n * its term property.\n */\n clause.term = term\n\n /*\n * From the term in the clause we create a token set which will then\n * be used to intersect the indexes token set to get a list of terms\n * to lookup in the inverted index\n */\n var termTokenSet = lunr.TokenSet.fromClause(clause),\n expandedTerms = this.tokenSet.intersect(termTokenSet).toArray()\n\n /*\n * If a term marked as required does not exist in the tokenSet it is\n * impossible for the search to return any matches. We set all the field\n * scoped required matches set to empty and stop examining any further\n * clauses.\n */\n if (expandedTerms.length === 0 && clause.presence === lunr.Query.presence.REQUIRED) {\n for (var k = 0; k < clause.fields.length; k++) {\n var field = clause.fields[k]\n requiredMatches[field] = lunr.Set.empty\n }\n\n break\n }\n\n for (var j = 0; j < expandedTerms.length; j++) {\n /*\n * For each term get the posting and termIndex, this is required for\n * building the query vector.\n */\n var expandedTerm = expandedTerms[j],\n posting = this.invertedIndex[expandedTerm],\n termIndex = posting._index\n\n for (var k = 0; k < clause.fields.length; k++) {\n /*\n * For each field that this query term is scoped by (by default\n * all fields are in scope) we need to get all the document refs\n * that have this term in that field.\n *\n * The posting is the entry in the invertedIndex for the matching\n * term from above.\n */\n var field = clause.fields[k],\n fieldPosting = posting[field],\n matchingDocumentRefs = Object.keys(fieldPosting),\n termField = expandedTerm + \"/\" + field,\n matchingDocumentsSet = new lunr.Set(matchingDocumentRefs)\n\n /*\n * if the presence of this term is required ensure that the matching\n * documents are added to the set of required matches for this clause.\n *\n */\n if (clause.presence == lunr.Query.presence.REQUIRED) {\n clauseMatches = clauseMatches.union(matchingDocumentsSet)\n\n if (requiredMatches[field] === undefined) {\n requiredMatches[field] = lunr.Set.complete\n }\n }\n\n /*\n * if the presence of this term is prohibited ensure that the matching\n * documents are added to the set of prohibited matches for this field,\n * creating that set if it does not yet exist.\n */\n if (clause.presence == lunr.Query.presence.PROHIBITED) {\n if (prohibitedMatches[field] === undefined) {\n prohibitedMatches[field] = lunr.Set.empty\n }\n\n prohibitedMatches[field] = prohibitedMatches[field].union(matchingDocumentsSet)\n\n /*\n * Prohibited matches should not be part of the query vector used for\n * similarity scoring and no metadata should be extracted so we continue\n * to the next field\n */\n continue\n }\n\n /*\n * The query field vector is populated using the termIndex found for\n * the term and a unit value with the appropriate boost applied.\n * Using upsert because there could already be an entry in the vector\n * for the term we are working with. In that case we just add the scores\n * together.\n */\n queryVectors[field].upsert(termIndex, clause.boost, function (a, b) { return a + b })\n\n /**\n * If we've already seen this term, field combo then we've already collected\n * the matching documents and metadata, no need to go through all that again\n */\n if (termFieldCache[termField]) {\n continue\n }\n\n for (var l = 0; l < matchingDocumentRefs.length; l++) {\n /*\n * All metadata for this term/field/document triple\n * are then extracted and collected into an instance\n * of lunr.MatchData ready to be returned in the query\n * results\n */\n var matchingDocumentRef = matchingDocumentRefs[l],\n matchingFieldRef = new lunr.FieldRef (matchingDocumentRef, field),\n metadata = fieldPosting[matchingDocumentRef],\n fieldMatch\n\n if ((fieldMatch = matchingFields[matchingFieldRef]) === undefined) {\n matchingFields[matchingFieldRef] = new lunr.MatchData (expandedTerm, field, metadata)\n } else {\n fieldMatch.add(expandedTerm, field, metadata)\n }\n\n }\n\n termFieldCache[termField] = true\n }\n }\n }\n\n /**\n * If the presence was required we need to update the requiredMatches field sets.\n * We do this after all fields for the term have collected their matches because\n * the clause terms presence is required in _any_ of the fields not _all_ of the\n * fields.\n */\n if (clause.presence === lunr.Query.presence.REQUIRED) {\n for (var k = 0; k < clause.fields.length; k++) {\n var field = clause.fields[k]\n requiredMatches[field] = requiredMatches[field].intersect(clauseMatches)\n }\n }\n }\n\n /**\n * Need to combine the field scoped required and prohibited\n * matching documents into a global set of required and prohibited\n * matches\n */\n var allRequiredMatches = lunr.Set.complete,\n allProhibitedMatches = lunr.Set.empty\n\n for (var i = 0; i < this.fields.length; i++) {\n var field = this.fields[i]\n\n if (requiredMatches[field]) {\n allRequiredMatches = allRequiredMatches.intersect(requiredMatches[field])\n }\n\n if (prohibitedMatches[field]) {\n allProhibitedMatches = allProhibitedMatches.union(prohibitedMatches[field])\n }\n }\n\n var matchingFieldRefs = Object.keys(matchingFields),\n results = [],\n matches = Object.create(null)\n\n /*\n * If the query is negated (contains only prohibited terms)\n * we need to get _all_ fieldRefs currently existing in the\n * index. This is only done when we know that the query is\n * entirely prohibited terms to avoid any cost of getting all\n * fieldRefs unnecessarily.\n *\n * Additionally, blank MatchData must be created to correctly\n * populate the results.\n */\n if (query.isNegated()) {\n matchingFieldRefs = Object.keys(this.fieldVectors)\n\n for (var i = 0; i < matchingFieldRefs.length; i++) {\n var matchingFieldRef = matchingFieldRefs[i]\n var fieldRef = lunr.FieldRef.fromString(matchingFieldRef)\n matchingFields[matchingFieldRef] = new lunr.MatchData\n }\n }\n\n for (var i = 0; i < matchingFieldRefs.length; i++) {\n /*\n * Currently we have document fields that match the query, but we\n * need to return documents. The matchData and scores are combined\n * from multiple fields belonging to the same document.\n *\n * Scores are calculated by field, using the query vectors created\n * above, and combined into a final document score using addition.\n */\n var fieldRef = lunr.FieldRef.fromString(matchingFieldRefs[i]),\n docRef = fieldRef.docRef\n\n if (!allRequiredMatches.contains(docRef)) {\n continue\n }\n\n if (allProhibitedMatches.contains(docRef)) {\n continue\n }\n\n var fieldVector = this.fieldVectors[fieldRef],\n score = queryVectors[fieldRef.fieldName].similarity(fieldVector),\n docMatch\n\n if ((docMatch = matches[docRef]) !== undefined) {\n docMatch.score += score\n docMatch.matchData.combine(matchingFields[fieldRef])\n } else {\n var match = {\n ref: docRef,\n score: score,\n matchData: matchingFields[fieldRef]\n }\n matches[docRef] = match\n results.push(match)\n }\n }\n\n /*\n * Sort the results objects by score, highest first.\n */\n return results.sort(function (a, b) {\n return b.score - a.score\n })\n}\n\n/**\n * Prepares the index for JSON serialization.\n *\n * The schema for this JSON blob will be described in a\n * separate JSON schema file.\n *\n * @returns {Object}\n */\nlunr.Index.prototype.toJSON = function () {\n var invertedIndex = Object.keys(this.invertedIndex)\n .sort()\n .map(function (term) {\n return [term, this.invertedIndex[term]]\n }, this)\n\n var fieldVectors = Object.keys(this.fieldVectors)\n .map(function (ref) {\n return [ref, this.fieldVectors[ref].toJSON()]\n }, this)\n\n return {\n version: lunr.version,\n fields: this.fields,\n fieldVectors: fieldVectors,\n invertedIndex: invertedIndex,\n pipeline: this.pipeline.toJSON()\n }\n}\n\n/**\n * Loads a previously serialized lunr.Index\n *\n * @param {Object} serializedIndex - A previously serialized lunr.Index\n * @returns {lunr.Index}\n */\nlunr.Index.load = function (serializedIndex) {\n var attrs = {},\n fieldVectors = {},\n serializedVectors = serializedIndex.fieldVectors,\n invertedIndex = Object.create(null),\n serializedInvertedIndex = serializedIndex.invertedIndex,\n tokenSetBuilder = new lunr.TokenSet.Builder,\n pipeline = lunr.Pipeline.load(serializedIndex.pipeline)\n\n if (serializedIndex.version != lunr.version) {\n lunr.utils.warn(\"Version mismatch when loading serialised index. Current version of lunr '\" + lunr.version + \"' does not match serialized index '\" + serializedIndex.version + \"'\")\n }\n\n for (var i = 0; i < serializedVectors.length; i++) {\n var tuple = serializedVectors[i],\n ref = tuple[0],\n elements = tuple[1]\n\n fieldVectors[ref] = new lunr.Vector(elements)\n }\n\n for (var i = 0; i < serializedInvertedIndex.length; i++) {\n var tuple = serializedInvertedIndex[i],\n term = tuple[0],\n posting = tuple[1]\n\n tokenSetBuilder.insert(term)\n invertedIndex[term] = posting\n }\n\n tokenSetBuilder.finish()\n\n attrs.fields = serializedIndex.fields\n\n attrs.fieldVectors = fieldVectors\n attrs.invertedIndex = invertedIndex\n attrs.tokenSet = tokenSetBuilder.root\n attrs.pipeline = pipeline\n\n return new lunr.Index(attrs)\n}\n/*!\n * lunr.Builder\n * Copyright (C) 2020 Oliver Nightingale\n */\n\n/**\n * lunr.Builder performs indexing on a set of documents and\n * returns instances of lunr.Index ready for querying.\n *\n * All configuration of the index is done via the builder, the\n * fields to index, the document reference, the text processing\n * pipeline and document scoring parameters are all set on the\n * builder before indexing.\n *\n * @constructor\n * @property {string} _ref - Internal reference to the document reference field.\n * @property {string[]} _fields - Internal reference to the document fields to index.\n * @property {object} invertedIndex - The inverted index maps terms to document fields.\n * @property {object} documentTermFrequencies - Keeps track of document term frequencies.\n * @property {object} documentLengths - Keeps track of the length of documents added to the index.\n * @property {lunr.tokenizer} tokenizer - Function for splitting strings into tokens for indexing.\n * @property {lunr.Pipeline} pipeline - The pipeline performs text processing on tokens before indexing.\n * @property {lunr.Pipeline} searchPipeline - A pipeline for processing search terms before querying the index.\n * @property {number} documentCount - Keeps track of the total number of documents indexed.\n * @property {number} _b - A parameter to control field length normalization, setting this to 0 disabled normalization, 1 fully normalizes field lengths, the default value is 0.75.\n * @property {number} _k1 - A parameter to control how quickly an increase in term frequency results in term frequency saturation, the default value is 1.2.\n * @property {number} termIndex - A counter incremented for each unique term, used to identify a terms position in the vector space.\n * @property {array} metadataWhitelist - A list of metadata keys that have been whitelisted for entry in the index.\n */\nlunr.Builder = function () {\n this._ref = \"id\"\n this._fields = Object.create(null)\n this._documents = Object.create(null)\n this.invertedIndex = Object.create(null)\n this.fieldTermFrequencies = {}\n this.fieldLengths = {}\n this.tokenizer = lunr.tokenizer\n this.pipeline = new lunr.Pipeline\n this.searchPipeline = new lunr.Pipeline\n this.documentCount = 0\n this._b = 0.75\n this._k1 = 1.2\n this.termIndex = 0\n this.metadataWhitelist = []\n}\n\n/**\n * Sets the document field used as the document reference. Every document must have this field.\n * The type of this field in the document should be a string, if it is not a string it will be\n * coerced into a string by calling toString.\n *\n * The default ref is 'id'.\n *\n * The ref should _not_ be changed during indexing, it should be set before any documents are\n * added to the index. Changing it during indexing can lead to inconsistent results.\n *\n * @param {string} ref - The name of the reference field in the document.\n */\nlunr.Builder.prototype.ref = function (ref) {\n this._ref = ref\n}\n\n/**\n * A function that is used to extract a field from a document.\n *\n * Lunr expects a field to be at the top level of a document, if however the field\n * is deeply nested within a document an extractor function can be used to extract\n * the right field for indexing.\n *\n * @callback fieldExtractor\n * @param {object} doc - The document being added to the index.\n * @returns {?(string|object|object[])} obj - The object that will be indexed for this field.\n * @example <caption>Extracting a nested field</caption>\n * function (doc) { return doc.nested.field }\n */\n\n/**\n * Adds a field to the list of document fields that will be indexed. Every document being\n * indexed should have this field. Null values for this field in indexed documents will\n * not cause errors but will limit the chance of that document being retrieved by searches.\n *\n * All fields should be added before adding documents to the index. Adding fields after\n * a document has been indexed will have no effect on already indexed documents.\n *\n * Fields can be boosted at build time. This allows terms within that field to have more\n * importance when ranking search results. Use a field boost to specify that matches within\n * one field are more important than other fields.\n *\n * @param {string} fieldName - The name of a field to index in all documents.\n * @param {object} attributes - Optional attributes associated with this field.\n * @param {number} [attributes.boost=1] - Boost applied to all terms within this field.\n * @param {fieldExtractor} [attributes.extractor] - Function to extract a field from a document.\n * @throws {RangeError} fieldName cannot contain unsupported characters '/'\n */\nlunr.Builder.prototype.field = function (fieldName, attributes) {\n if (/\\//.test(fieldName)) {\n throw new RangeError (\"Field '\" + fieldName + \"' contains illegal character '/'\")\n }\n\n this._fields[fieldName] = attributes || {}\n}\n\n/**\n * A parameter to tune the amount of field length normalisation that is applied when\n * calculating relevance scores. A value of 0 will completely disable any normalisation\n * and a value of 1 will fully normalise field lengths. The default is 0.75. Values of b\n * will be clamped to the range 0 - 1.\n *\n * @param {number} number - The value to set for this tuning parameter.\n */\nlunr.Builder.prototype.b = function (number) {\n if (number < 0) {\n this._b = 0\n } else if (number > 1) {\n this._b = 1\n } else {\n this._b = number\n }\n}\n\n/**\n * A parameter that controls the speed at which a rise in term frequency results in term\n * frequency saturation. The default value is 1.2. Setting this to a higher value will give\n * slower saturation levels, a lower value will result in quicker saturation.\n *\n * @param {number} number - The value to set for this tuning parameter.\n */\nlunr.Builder.prototype.k1 = function (number) {\n this._k1 = number\n}\n\n/**\n * Adds a document to the index.\n *\n * Before adding fields to the index the index should have been fully setup, with the document\n * ref and all fields to index already having been specified.\n *\n * The document must have a field name as specified by the ref (by default this is 'id') and\n * it should have all fields defined for indexing, though null or undefined values will not\n * cause errors.\n *\n * Entire documents can be boosted at build time. Applying a boost to a document indicates that\n * this document should rank higher in search results than other documents.\n *\n * @param {object} doc - The document to add to the index.\n * @param {object} attributes - Optional attributes associated with this document.\n * @param {number} [attributes.boost=1] - Boost applied to all terms within this document.\n */\nlunr.Builder.prototype.add = function (doc, attributes) {\n var docRef = doc[this._ref],\n fields = Object.keys(this._fields)\n\n this._documents[docRef] = attributes || {}\n this.documentCount += 1\n\n for (var i = 0; i < fields.length; i++) {\n var fieldName = fields[i],\n extractor = this._fields[fieldName].extractor,\n field = extractor ? extractor(doc) : doc[fieldName],\n tokens = this.tokenizer(field, {\n fields: [fieldName]\n }),\n terms = this.pipeline.run(tokens),\n fieldRef = new lunr.FieldRef (docRef, fieldName),\n fieldTerms = Object.create(null)\n\n this.fieldTermFrequencies[fieldRef] = fieldTerms\n this.fieldLengths[fieldRef] = 0\n\n // store the length of this field for this document\n this.fieldLengths[fieldRef] += terms.length\n\n // calculate term frequencies for this field\n for (var j = 0; j < terms.length; j++) {\n var term = terms[j]\n\n if (fieldTerms[term] == undefined) {\n fieldTerms[term] = 0\n }\n\n fieldTerms[term] += 1\n\n // add to inverted index\n // create an initial posting if one doesn't exist\n if (this.invertedIndex[term] == undefined) {\n var posting = Object.create(null)\n posting[\"_index\"] = this.termIndex\n this.termIndex += 1\n\n for (var k = 0; k < fields.length; k++) {\n posting[fields[k]] = Object.create(null)\n }\n\n this.invertedIndex[term] = posting\n }\n\n // add an entry for this term/fieldName/docRef to the invertedIndex\n if (this.invertedIndex[term][fieldName][docRef] == undefined) {\n this.invertedIndex[term][fieldName][docRef] = Object.create(null)\n }\n\n // store all whitelisted metadata about this token in the\n // inverted index\n for (var l = 0; l < this.metadataWhitelist.length; l++) {\n var metadataKey = this.metadataWhitelist[l],\n metadata = term.metadata[metadataKey]\n\n if (this.invertedIndex[term][fieldName][docRef][metadataKey] == undefined) {\n this.invertedIndex[term][fieldName][docRef][metadataKey] = []\n }\n\n this.invertedIndex[term][fieldName][docRef][metadataKey].push(metadata)\n }\n }\n\n }\n}\n\n/**\n * Calculates the average document length for this index\n *\n * @private\n */\nlunr.Builder.prototype.calculateAverageFieldLengths = function () {\n\n var fieldRefs = Object.keys(this.fieldLengths),\n numberOfFields = fieldRefs.length,\n accumulator = {},\n documentsWithField = {}\n\n for (var i = 0; i < numberOfFields; i++) {\n var fieldRef = lunr.FieldRef.fromString(fieldRefs[i]),\n field = fieldRef.fieldName\n\n documentsWithField[field] || (documentsWithField[field] = 0)\n documentsWithField[field] += 1\n\n accumulator[field] || (accumulator[field] = 0)\n accumulator[field] += this.fieldLengths[fieldRef]\n }\n\n var fields = Object.keys(this._fields)\n\n for (var i = 0; i < fields.length; i++) {\n var fieldName = fields[i]\n accumulator[fieldName] = accumulator[fieldName] / documentsWithField[fieldName]\n }\n\n this.averageFieldLength = accumulator\n}\n\n/**\n * Builds a vector space model of every document using lunr.Vector\n *\n * @private\n */\nlunr.Builder.prototype.createFieldVectors = function () {\n var fieldVectors = {},\n fieldRefs = Object.keys(this.fieldTermFrequencies),\n fieldRefsLength = fieldRefs.length,\n termIdfCache = Object.create(null)\n\n for (var i = 0; i < fieldRefsLength; i++) {\n var fieldRef = lunr.FieldRef.fromString(fieldRefs[i]),\n fieldName = fieldRef.fieldName,\n fieldLength = this.fieldLengths[fieldRef],\n fieldVector = new lunr.Vector,\n termFrequencies = this.fieldTermFrequencies[fieldRef],\n terms = Object.keys(termFrequencies),\n termsLength = terms.length\n\n\n var fieldBoost = this._fields[fieldName].boost || 1,\n docBoost = this._documents[fieldRef.docRef].boost || 1\n\n for (var j = 0; j < termsLength; j++) {\n var term = terms[j],\n tf = termFrequencies[term],\n termIndex = this.invertedIndex[term]._index,\n idf, score, scoreWithPrecision\n\n if (termIdfCache[term] === undefined) {\n idf = lunr.idf(this.invertedIndex[term], this.documentCount)\n termIdfCache[term] = idf\n } else {\n idf = termIdfCache[term]\n }\n\n score = idf * ((this._k1 + 1) * tf) / (this._k1 * (1 - this._b + this._b * (fieldLength / this.averageFieldLength[fieldName])) + tf)\n score *= fieldBoost\n score *= docBoost\n scoreWithPrecision = Math.round(score * 1000) / 1000\n // Converts 1.23456789 to 1.234.\n // Reducing the precision so that the vectors take up less\n // space when serialised. Doing it now so that they behave\n // the same before and after serialisation. Also, this is\n // the fastest approach to reducing a number's precision in\n // JavaScript.\n\n fieldVector.insert(termIndex, scoreWithPrecision)\n }\n\n fieldVectors[fieldRef] = fieldVector\n }\n\n this.fieldVectors = fieldVectors\n}\n\n/**\n * Creates a token set of all tokens in the index using lunr.TokenSet\n *\n * @private\n */\nlunr.Builder.prototype.createTokenSet = function () {\n this.tokenSet = lunr.TokenSet.fromArray(\n Object.keys(this.invertedIndex).sort()\n )\n}\n\n/**\n * Builds the index, creating an instance of lunr.Index.\n *\n * This completes the indexing process and should only be called\n * once all documents have been added to the index.\n *\n * @returns {lunr.Index}\n */\nlunr.Builder.prototype.build = function () {\n this.calculateAverageFieldLengths()\n this.createFieldVectors()\n this.createTokenSet()\n\n return new lunr.Index({\n invertedIndex: this.invertedIndex,\n fieldVectors: this.fieldVectors,\n tokenSet: this.tokenSet,\n fields: Object.keys(this._fields),\n pipeline: this.searchPipeline\n })\n}\n\n/**\n * Applies a plugin to the index builder.\n *\n * A plugin is a function that is called with the index builder as its context.\n * Plugins can be used to customise or extend the behaviour of the index\n * in some way. A plugin is just a function, that encapsulated the custom\n * behaviour that should be applied when building the index.\n *\n * The plugin function will be called with the index builder as its argument, additional\n * arguments can also be passed when calling use. The function will be called\n * with the index builder as its context.\n *\n * @param {Function} plugin The plugin to apply.\n */\nlunr.Builder.prototype.use = function (fn) {\n var args = Array.prototype.slice.call(arguments, 1)\n args.unshift(this)\n fn.apply(this, args)\n}\n/**\n * Contains and collects metadata about a matching document.\n * A single instance of lunr.MatchData is returned as part of every\n * lunr.Index~Result.\n *\n * @constructor\n * @param {string} term - The term this match data is associated with\n * @param {string} field - The field in which the term was found\n * @param {object} metadata - The metadata recorded about this term in this field\n * @property {object} metadata - A cloned collection of metadata associated with this document.\n * @see {@link lunr.Index~Result}\n */\nlunr.MatchData = function (term, field, metadata) {\n var clonedMetadata = Object.create(null),\n metadataKeys = Object.keys(metadata || {})\n\n // Cloning the metadata to prevent the original\n // being mutated during match data combination.\n // Metadata is kept in an array within the inverted\n // index so cloning the data can be done with\n // Array#slice\n for (var i = 0; i < metadataKeys.length; i++) {\n var key = metadataKeys[i]\n clonedMetadata[key] = metadata[key].slice()\n }\n\n this.metadata = Object.create(null)\n\n if (term !== undefined) {\n this.metadata[term] = Object.create(null)\n this.metadata[term][field] = clonedMetadata\n }\n}\n\n/**\n * An instance of lunr.MatchData will be created for every term that matches a\n * document. However only one instance is required in a lunr.Index~Result. This\n * method combines metadata from another instance of lunr.MatchData with this\n * objects metadata.\n *\n * @param {lunr.MatchData} otherMatchData - Another instance of match data to merge with this one.\n * @see {@link lunr.Index~Result}\n */\nlunr.MatchData.prototype.combine = function (otherMatchData) {\n var terms = Object.keys(otherMatchData.metadata)\n\n for (var i = 0; i < terms.length; i++) {\n var term = terms[i],\n fields = Object.keys(otherMatchData.metadata[term])\n\n if (this.metadata[term] == undefined) {\n this.metadata[term] = Object.create(null)\n }\n\n for (var j = 0; j < fields.length; j++) {\n var field = fields[j],\n keys = Object.keys(otherMatchData.metadata[term][field])\n\n if (this.metadata[term][field] == undefined) {\n this.metadata[term][field] = Object.create(null)\n }\n\n for (var k = 0; k < keys.length; k++) {\n var key = keys[k]\n\n if (this.metadata[term][field][key] == undefined) {\n this.metadata[term][field][key] = otherMatchData.metadata[term][field][key]\n } else {\n this.metadata[term][field][key] = this.metadata[term][field][key].concat(otherMatchData.metadata[term][field][key])\n }\n\n }\n }\n }\n}\n\n/**\n * Add metadata for a term/field pair to this instance of match data.\n *\n * @param {string} term - The term this match data is associated with\n * @param {string} field - The field in which the term was found\n * @param {object} metadata - The metadata recorded about this term in this field\n */\nlunr.MatchData.prototype.add = function (term, field, metadata) {\n if (!(term in this.metadata)) {\n this.metadata[term] = Object.create(null)\n this.metadata[term][field] = metadata\n return\n }\n\n if (!(field in this.metadata[term])) {\n this.metadata[term][field] = metadata\n return\n }\n\n var metadataKeys = Object.keys(metadata)\n\n for (var i = 0; i < metadataKeys.length; i++) {\n var key = metadataKeys[i]\n\n if (key in this.metadata[term][field]) {\n this.metadata[term][field][key] = this.metadata[term][field][key].concat(metadata[key])\n } else {\n this.metadata[term][field][key] = metadata[key]\n }\n }\n}\n/**\n * A lunr.Query provides a programmatic way of defining queries to be performed\n * against a {@link lunr.Index}.\n *\n * Prefer constructing a lunr.Query using the {@link lunr.Index#query} method\n * so the query object is pre-initialized with the right index fields.\n *\n * @constructor\n * @property {lunr.Query~Clause[]} clauses - An array of query clauses.\n * @property {string[]} allFields - An array of all available fields in a lunr.Index.\n */\nlunr.Query = function (allFields) {\n this.clauses = []\n this.allFields = allFields\n}\n\n/**\n * Constants for indicating what kind of automatic wildcard insertion will be used when constructing a query clause.\n *\n * This allows wildcards to be added to the beginning and end of a term without having to manually do any string\n * concatenation.\n *\n * The wildcard constants can be bitwise combined to select both leading and trailing wildcards.\n *\n * @constant\n * @default\n * @property {number} wildcard.NONE - The term will have no wildcards inserted, this is the default behaviour\n * @property {number} wildcard.LEADING - Prepend the term with a wildcard, unless a leading wildcard already exists\n * @property {number} wildcard.TRAILING - Append a wildcard to the term, unless a trailing wildcard already exists\n * @see lunr.Query~Clause\n * @see lunr.Query#clause\n * @see lunr.Query#term\n * @example <caption>query term with trailing wildcard</caption>\n * query.term('foo', { wildcard: lunr.Query.wildcard.TRAILING })\n * @example <caption>query term with leading and trailing wildcard</caption>\n * query.term('foo', {\n * wildcard: lunr.Query.wildcard.LEADING | lunr.Query.wildcard.TRAILING\n * })\n */\n\nlunr.Query.wildcard = new String (\"*\")\nlunr.Query.wildcard.NONE = 0\nlunr.Query.wildcard.LEADING = 1\nlunr.Query.wildcard.TRAILING = 2\n\n/**\n * Constants for indicating what kind of presence a term must have in matching documents.\n *\n * @constant\n * @enum {number}\n * @see lunr.Query~Clause\n * @see lunr.Query#clause\n * @see lunr.Query#term\n * @example <caption>query term with required presence</caption>\n * query.term('foo', { presence: lunr.Query.presence.REQUIRED })\n */\nlunr.Query.presence = {\n /**\n * Term's presence in a document is optional, this is the default value.\n */\n OPTIONAL: 1,\n\n /**\n * Term's presence in a document is required, documents that do not contain\n * this term will not be returned.\n */\n REQUIRED: 2,\n\n /**\n * Term's presence in a document is prohibited, documents that do contain\n * this term will not be returned.\n */\n PROHIBITED: 3\n}\n\n/**\n * A single clause in a {@link lunr.Query} contains a term and details on how to\n * match that term against a {@link lunr.Index}.\n *\n * @typedef {Object} lunr.Query~Clause\n * @property {string[]} fields - The fields in an index this clause should be matched against.\n * @property {number} [boost=1] - Any boost that should be applied when matching this clause.\n * @property {number} [editDistance] - Whether the term should have fuzzy matching applied, and how fuzzy the match should be.\n * @property {boolean} [usePipeline] - Whether the term should be passed through the search pipeline.\n * @property {number} [wildcard=lunr.Query.wildcard.NONE] - Whether the term should have wildcards appended or prepended.\n * @property {number} [presence=lunr.Query.presence.OPTIONAL] - The terms presence in any matching documents.\n */\n\n/**\n * Adds a {@link lunr.Query~Clause} to this query.\n *\n * Unless the clause contains the fields to be matched all fields will be matched. In addition\n * a default boost of 1 is applied to the clause.\n *\n * @param {lunr.Query~Clause} clause - The clause to add to this query.\n * @see lunr.Query~Clause\n * @returns {lunr.Query}\n */\nlunr.Query.prototype.clause = function (clause) {\n if (!('fields' in clause)) {\n clause.fields = this.allFields\n }\n\n if (!('boost' in clause)) {\n clause.boost = 1\n }\n\n if (!('usePipeline' in clause)) {\n clause.usePipeline = true\n }\n\n if (!('wildcard' in clause)) {\n clause.wildcard = lunr.Query.wildcard.NONE\n }\n\n if ((clause.wildcard & lunr.Query.wildcard.LEADING) && (clause.term.charAt(0) != lunr.Query.wildcard)) {\n clause.term = \"*\" + clause.term\n }\n\n if ((clause.wildcard & lunr.Query.wildcard.TRAILING) && (clause.term.slice(-1) != lunr.Query.wildcard)) {\n clause.term = \"\" + clause.term + \"*\"\n }\n\n if (!('presence' in clause)) {\n clause.presence = lunr.Query.presence.OPTIONAL\n }\n\n this.clauses.push(clause)\n\n return this\n}\n\n/**\n * A negated query is one in which every clause has a presence of\n * prohibited. These queries require some special processing to return\n * the expected results.\n *\n * @returns boolean\n */\nlunr.Query.prototype.isNegated = function () {\n for (var i = 0; i < this.clauses.length; i++) {\n if (this.clauses[i].presence != lunr.Query.presence.PROHIBITED) {\n return false\n }\n }\n\n return true\n}\n\n/**\n * Adds a term to the current query, under the covers this will create a {@link lunr.Query~Clause}\n * to the list of clauses that make up this query.\n *\n * The term is used as is, i.e. no tokenization will be performed by this method. Instead conversion\n * to a token or token-like string should be done before calling this method.\n *\n * The term will be converted to a string by calling `toString`. Multiple terms can be passed as an\n * array, each term in the array will share the same options.\n *\n * @param {object|object[]} term - The term(s) to add to the query.\n * @param {object} [options] - Any additional properties to add to the query clause.\n * @returns {lunr.Query}\n * @see lunr.Query#clause\n * @see lunr.Query~Clause\n * @example <caption>adding a single term to a query</caption>\n * query.term(\"foo\")\n * @example <caption>adding a single term to a query and specifying search fields, term boost and automatic trailing wildcard</caption>\n * query.term(\"foo\", {\n * fields: [\"title\"],\n * boost: 10,\n * wildcard: lunr.Query.wildcard.TRAILING\n * })\n * @example <caption>using lunr.tokenizer to convert a string to tokens before using them as terms</caption>\n * query.term(lunr.tokenizer(\"foo bar\"))\n */\nlunr.Query.prototype.term = function (term, options) {\n if (Array.isArray(term)) {\n term.forEach(function (t) { this.term(t, lunr.utils.clone(options)) }, this)\n return this\n }\n\n var clause = options || {}\n clause.term = term.toString()\n\n this.clause(clause)\n\n return this\n}\nlunr.QueryParseError = function (message, start, end) {\n this.name = \"QueryParseError\"\n this.message = message\n this.start = start\n this.end = end\n}\n\nlunr.QueryParseError.prototype = new Error\nlunr.QueryLexer = function (str) {\n this.lexemes = []\n this.str = str\n this.length = str.length\n this.pos = 0\n this.start = 0\n this.escapeCharPositions = []\n}\n\nlunr.QueryLexer.prototype.run = function () {\n var state = lunr.QueryLexer.lexText\n\n while (state) {\n state = state(this)\n }\n}\n\nlunr.QueryLexer.prototype.sliceString = function () {\n var subSlices = [],\n sliceStart = this.start,\n sliceEnd = this.pos\n\n for (var i = 0; i < this.escapeCharPositions.length; i++) {\n sliceEnd = this.escapeCharPositions[i]\n subSlices.push(this.str.slice(sliceStart, sliceEnd))\n sliceStart = sliceEnd + 1\n }\n\n subSlices.push(this.str.slice(sliceStart, this.pos))\n this.escapeCharPositions.length = 0\n\n return subSlices.join('')\n}\n\nlunr.QueryLexer.prototype.emit = function (type) {\n this.lexemes.push({\n type: type,\n str: this.sliceString(),\n start: this.start,\n end: this.pos\n })\n\n this.start = this.pos\n}\n\nlunr.QueryLexer.prototype.escapeCharacter = function () {\n this.escapeCharPositions.push(this.pos - 1)\n this.pos += 1\n}\n\nlunr.QueryLexer.prototype.next = function () {\n if (this.pos >= this.length) {\n return lunr.QueryLexer.EOS\n }\n\n var char = this.str.charAt(this.pos)\n this.pos += 1\n return char\n}\n\nlunr.QueryLexer.prototype.width = function () {\n return this.pos - this.start\n}\n\nlunr.QueryLexer.prototype.ignore = function () {\n if (this.start == this.pos) {\n this.pos += 1\n }\n\n this.start = this.pos\n}\n\nlunr.QueryLexer.prototype.backup = function () {\n this.pos -= 1\n}\n\nlunr.QueryLexer.prototype.acceptDigitRun = function () {\n var char, charCode\n\n do {\n char = this.next()\n charCode = char.charCodeAt(0)\n } while (charCode > 47 && charCode < 58)\n\n if (char != lunr.QueryLexer.EOS) {\n this.backup()\n }\n}\n\nlunr.QueryLexer.prototype.more = function () {\n return this.pos < this.length\n}\n\nlunr.QueryLexer.EOS = 'EOS'\nlunr.QueryLexer.FIELD = 'FIELD'\nlunr.QueryLexer.TERM = 'TERM'\nlunr.QueryLexer.EDIT_DISTANCE = 'EDIT_DISTANCE'\nlunr.QueryLexer.BOOST = 'BOOST'\nlunr.QueryLexer.PRESENCE = 'PRESENCE'\n\nlunr.QueryLexer.lexField = function (lexer) {\n lexer.backup()\n lexer.emit(lunr.QueryLexer.FIELD)\n lexer.ignore()\n return lunr.QueryLexer.lexText\n}\n\nlunr.QueryLexer.lexTerm = function (lexer) {\n if (lexer.width() > 1) {\n lexer.backup()\n lexer.emit(lunr.QueryLexer.TERM)\n }\n\n lexer.ignore()\n\n if (lexer.more()) {\n return lunr.QueryLexer.lexText\n }\n}\n\nlunr.QueryLexer.lexEditDistance = function (lexer) {\n lexer.ignore()\n lexer.acceptDigitRun()\n lexer.emit(lunr.QueryLexer.EDIT_DISTANCE)\n return lunr.QueryLexer.lexText\n}\n\nlunr.QueryLexer.lexBoost = function (lexer) {\n lexer.ignore()\n lexer.acceptDigitRun()\n lexer.emit(lunr.QueryLexer.BOOST)\n return lunr.QueryLexer.lexText\n}\n\nlunr.QueryLexer.lexEOS = function (lexer) {\n if (lexer.width() > 0) {\n lexer.emit(lunr.QueryLexer.TERM)\n }\n}\n\n// This matches the separator used when tokenising fields\n// within a document. These should match otherwise it is\n// not possible to search for some tokens within a document.\n//\n// It is possible for the user to change the separator on the\n// tokenizer so it _might_ clash with any other of the special\n// characters already used within the search string, e.g. :.\n//\n// This means that it is possible to change the separator in\n// such a way that makes some words unsearchable using a search\n// string.\nlunr.QueryLexer.termSeparator = lunr.tokenizer.separator\n\nlunr.QueryLexer.lexText = function (lexer) {\n while (true) {\n var char = lexer.next()\n\n if (char == lunr.QueryLexer.EOS) {\n return lunr.QueryLexer.lexEOS\n }\n\n // Escape character is '\\'\n if (char.charCodeAt(0) == 92) {\n lexer.escapeCharacter()\n continue\n }\n\n if (char == \":\") {\n return lunr.QueryLexer.lexField\n }\n\n if (char == \"~\") {\n lexer.backup()\n if (lexer.width() > 0) {\n lexer.emit(lunr.QueryLexer.TERM)\n }\n return lunr.QueryLexer.lexEditDistance\n }\n\n if (char == \"^\") {\n lexer.backup()\n if (lexer.width() > 0) {\n lexer.emit(lunr.QueryLexer.TERM)\n }\n return lunr.QueryLexer.lexBoost\n }\n\n // \"+\" indicates term presence is required\n // checking for length to ensure that only\n // leading \"+\" are considered\n if (char == \"+\" && lexer.width() === 1) {\n lexer.emit(lunr.QueryLexer.PRESENCE)\n return lunr.QueryLexer.lexText\n }\n\n // \"-\" indicates term presence is prohibited\n // checking for length to ensure that only\n // leading \"-\" are considered\n if (char == \"-\" && lexer.width() === 1) {\n lexer.emit(lunr.QueryLexer.PRESENCE)\n return lunr.QueryLexer.lexText\n }\n\n if (char.match(lunr.QueryLexer.termSeparator)) {\n return lunr.QueryLexer.lexTerm\n }\n }\n}\n\nlunr.QueryParser = function (str, query) {\n this.lexer = new lunr.QueryLexer (str)\n this.query = query\n this.currentClause = {}\n this.lexemeIdx = 0\n}\n\nlunr.QueryParser.prototype.parse = function () {\n this.lexer.run()\n this.lexemes = this.lexer.lexemes\n\n var state = lunr.QueryParser.parseClause\n\n while (state) {\n state = state(this)\n }\n\n return this.query\n}\n\nlunr.QueryParser.prototype.peekLexeme = function () {\n return this.lexemes[this.lexemeIdx]\n}\n\nlunr.QueryParser.prototype.consumeLexeme = function () {\n var lexeme = this.peekLexeme()\n this.lexemeIdx += 1\n return lexeme\n}\n\nlunr.QueryParser.prototype.nextClause = function () {\n var completedClause = this.currentClause\n this.query.clause(completedClause)\n this.currentClause = {}\n}\n\nlunr.QueryParser.parseClause = function (parser) {\n var lexeme = parser.peekLexeme()\n\n if (lexeme == undefined) {\n return\n }\n\n switch (lexeme.type) {\n case lunr.QueryLexer.PRESENCE:\n return lunr.QueryParser.parsePresence\n case lunr.QueryLexer.FIELD:\n return lunr.QueryParser.parseField\n case lunr.QueryLexer.TERM:\n return lunr.QueryParser.parseTerm\n default:\n var errorMessage = \"expected either a field or a term, found \" + lexeme.type\n\n if (lexeme.str.length >= 1) {\n errorMessage += \" with value '\" + lexeme.str + \"'\"\n }\n\n throw new lunr.QueryParseError (errorMessage, lexeme.start, lexeme.end)\n }\n}\n\nlunr.QueryParser.parsePresence = function (parser) {\n var lexeme = parser.consumeLexeme()\n\n if (lexeme == undefined) {\n return\n }\n\n switch (lexeme.str) {\n case \"-\":\n parser.currentClause.presence = lunr.Query.presence.PROHIBITED\n break\n case \"+\":\n parser.currentClause.presence = lunr.Query.presence.REQUIRED\n break\n default:\n var errorMessage = \"unrecognised presence operator'\" + lexeme.str + \"'\"\n throw new lunr.QueryParseError (errorMessage, lexeme.start, lexeme.end)\n }\n\n var nextLexeme = parser.peekLexeme()\n\n if (nextLexeme == undefined) {\n var errorMessage = \"expecting term or field, found nothing\"\n throw new lunr.QueryParseError (errorMessage, lexeme.start, lexeme.end)\n }\n\n switch (nextLexeme.type) {\n case lunr.QueryLexer.FIELD:\n return lunr.QueryParser.parseField\n case lunr.QueryLexer.TERM:\n return lunr.QueryParser.parseTerm\n default:\n var errorMessage = \"expecting term or field, found '\" + nextLexeme.type + \"'\"\n throw new lunr.QueryParseError (errorMessage, nextLexeme.start, nextLexeme.end)\n }\n}\n\nlunr.QueryParser.parseField = function (parser) {\n var lexeme = parser.consumeLexeme()\n\n if (lexeme == undefined) {\n return\n }\n\n if (parser.query.allFields.indexOf(lexeme.str) == -1) {\n var possibleFields = parser.query.allFields.map(function (f) { return \"'\" + f + \"'\" }).join(', '),\n errorMessage = \"unrecognised field '\" + lexeme.str + \"', possible fields: \" + possibleFields\n\n throw new lunr.QueryParseError (errorMessage, lexeme.start, lexeme.end)\n }\n\n parser.currentClause.fields = [lexeme.str]\n\n var nextLexeme = parser.peekLexeme()\n\n if (nextLexeme == undefined) {\n var errorMessage = \"expecting term, found nothing\"\n throw new lunr.QueryParseError (errorMessage, lexeme.start, lexeme.end)\n }\n\n switch (nextLexeme.type) {\n case lunr.QueryLexer.TERM:\n return lunr.QueryParser.parseTerm\n default:\n var errorMessage = \"expecting term, found '\" + nextLexeme.type + \"'\"\n throw new lunr.QueryParseError (errorMessage, nextLexeme.start, nextLexeme.end)\n }\n}\n\nlunr.QueryParser.parseTerm = function (parser) {\n var lexeme = parser.consumeLexeme()\n\n if (lexeme == undefined) {\n return\n }\n\n parser.currentClause.term = lexeme.str.toLowerCase()\n\n if (lexeme.str.indexOf(\"*\") != -1) {\n parser.currentClause.usePipeline = false\n }\n\n var nextLexeme = parser.peekLexeme()\n\n if (nextLexeme == undefined) {\n parser.nextClause()\n return\n }\n\n switch (nextLexeme.type) {\n case lunr.QueryLexer.TERM:\n parser.nextClause()\n return lunr.QueryParser.parseTerm\n case lunr.QueryLexer.FIELD:\n parser.nextClause()\n return lunr.QueryParser.parseField\n case lunr.QueryLexer.EDIT_DISTANCE:\n return lunr.QueryParser.parseEditDistance\n case lunr.QueryLexer.BOOST:\n return lunr.QueryParser.parseBoost\n case lunr.QueryLexer.PRESENCE:\n parser.nextClause()\n return lunr.QueryParser.parsePresence\n default:\n var errorMessage = \"Unexpected lexeme type '\" + nextLexeme.type + \"'\"\n throw new lunr.QueryParseError (errorMessage, nextLexeme.start, nextLexeme.end)\n }\n}\n\nlunr.QueryParser.parseEditDistance = function (parser) {\n var lexeme = parser.consumeLexeme()\n\n if (lexeme == undefined) {\n return\n }\n\n var editDistance = parseInt(lexeme.str, 10)\n\n if (isNaN(editDistance)) {\n var errorMessage = \"edit distance must be numeric\"\n throw new lunr.QueryParseError (errorMessage, lexeme.start, lexeme.end)\n }\n\n parser.currentClause.editDistance = editDistance\n\n var nextLexeme = parser.peekLexeme()\n\n if (nextLexeme == undefined) {\n parser.nextClause()\n return\n }\n\n switch (nextLexeme.type) {\n case lunr.QueryLexer.TERM:\n parser.nextClause()\n return lunr.QueryParser.parseTerm\n case lunr.QueryLexer.FIELD:\n parser.nextClause()\n return lunr.QueryParser.parseField\n case lunr.QueryLexer.EDIT_DISTANCE:\n return lunr.QueryParser.parseEditDistance\n case lunr.QueryLexer.BOOST:\n return lunr.QueryParser.parseBoost\n case lunr.QueryLexer.PRESENCE:\n parser.nextClause()\n return lunr.QueryParser.parsePresence\n default:\n var errorMessage = \"Unexpected lexeme type '\" + nextLexeme.type + \"'\"\n throw new lunr.QueryParseError (errorMessage, nextLexeme.start, nextLexeme.end)\n }\n}\n\nlunr.QueryParser.parseBoost = function (parser) {\n var lexeme = parser.consumeLexeme()\n\n if (lexeme == undefined) {\n return\n }\n\n var boost = parseInt(lexeme.str, 10)\n\n if (isNaN(boost)) {\n var errorMessage = \"boost must be numeric\"\n throw new lunr.QueryParseError (errorMessage, lexeme.start, lexeme.end)\n }\n\n parser.currentClause.boost = boost\n\n var nextLexeme = parser.peekLexeme()\n\n if (nextLexeme == undefined) {\n parser.nextClause()\n return\n }\n\n switch (nextLexeme.type) {\n case lunr.QueryLexer.TERM:\n parser.nextClause()\n return lunr.QueryParser.parseTerm\n case lunr.QueryLexer.FIELD:\n parser.nextClause()\n return lunr.QueryParser.parseField\n case lunr.QueryLexer.EDIT_DISTANCE:\n return lunr.QueryParser.parseEditDistance\n case lunr.QueryLexer.BOOST:\n return lunr.QueryParser.parseBoost\n case lunr.QueryLexer.PRESENCE:\n parser.nextClause()\n return lunr.QueryParser.parsePresence\n default:\n var errorMessage = \"Unexpected lexeme type '\" + nextLexeme.type + \"'\"\n throw new lunr.QueryParseError (errorMessage, nextLexeme.start, nextLexeme.end)\n }\n}\n\n /**\n * export the module via AMD, CommonJS or as a browser global\n * Export code from https://github.com/umdjs/umd/blob/master/returnExports.js\n */\n ;(function (root, factory) {\n if (typeof define === 'function' && define.amd) {\n // AMD. Register as an anonymous module.\n define(factory)\n } else if (typeof exports === 'object') {\n /**\n * Node. Does not work with strict CommonJS, but\n * only CommonJS-like enviroments that support module.exports,\n * like Node.\n */\n module.exports = factory()\n } else {\n // Browser globals (root is window)\n root.lunr = factory()\n }\n }(this, function () {\n /**\n * Just return a value to define the module export.\n * This example returns an object, but the module\n * can return a function as the exported value.\n */\n return lunr\n }))\n})();\n", "/*!\n * escape-html\n * Copyright(c) 2012-2013 TJ Holowaychuk\n * Copyright(c) 2015 Andreas Lubbe\n * Copyright(c) 2015 Tiancheng \"Timothy\" Gu\n * MIT Licensed\n */\n\n'use strict';\n\n/**\n * Module variables.\n * @private\n */\n\nvar matchHtmlRegExp = /[\"'&<>]/;\n\n/**\n * Module exports.\n * @public\n */\n\nmodule.exports = escapeHtml;\n\n/**\n * Escape special characters in the given string of html.\n *\n * @param {string} string The string to escape for inserting into HTML\n * @return {string}\n * @public\n */\n\nfunction escapeHtml(string) {\n var str = '' + string;\n var match = matchHtmlRegExp.exec(str);\n\n if (!match) {\n return str;\n }\n\n var escape;\n var html = '';\n var index = 0;\n var lastIndex = 0;\n\n for (index = match.index; index < str.length; index++) {\n switch (str.charCodeAt(index)) {\n case 34: // \"\n escape = '&quot;';\n break;\n case 38: // &\n escape = '&amp;';\n break;\n case 39: // '\n escape = '&#39;';\n break;\n case 60: // <\n escape = '&lt;';\n break;\n case 62: // >\n escape = '&gt;';\n break;\n default:\n continue;\n }\n\n if (lastIndex !== index) {\n html += str.substring(lastIndex, index);\n }\n\n lastIndex = index + 1;\n html += escape;\n }\n\n return lastIndex !== index\n ? html + str.substring(lastIndex, index)\n : html;\n}\n", "/*\n * Copyright (c) 2016-2021 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A RTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport lunr from \"lunr\"\n\nimport { Search, SearchIndexConfig } from \"../../_\"\nimport {\n SearchMessage,\n SearchMessageType\n} from \"../message\"\n\n/* ----------------------------------------------------------------------------\n * Types\n * ------------------------------------------------------------------------- */\n\n/**\n * Add support for usage with `iframe-worker` polyfill\n *\n * While `importScripts` is synchronous when executed inside of a web worker,\n * it's not possible to provide a synchronous polyfilled implementation. The\n * cool thing is that awaiting a non-Promise is a noop, so extending the type\n * definition to return a `Promise` shouldn't break anything.\n *\n * @see https://bit.ly/2PjDnXi - GitHub comment\n */\ndeclare global {\n function importScripts(...urls: string[]): Promise<void> | void\n}\n\n/* ----------------------------------------------------------------------------\n * Data\n * ------------------------------------------------------------------------- */\n\n/**\n * Search index\n */\nlet index: Search\n\n/* ----------------------------------------------------------------------------\n * Helper functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Fetch (= import) multi-language support through `lunr-languages`\n *\n * This function automatically imports the stemmers necessary to process the\n * languages, which are defined through the search index configuration.\n *\n * If the worker runs inside of an `iframe` (when using `iframe-worker` as\n * a shim), the base URL for the stemmers to be loaded must be determined by\n * searching for the first `script` element with a `src` attribute, which will\n * contain the contents of this script.\n *\n * @param config - Search index configuration\n *\n * @returns Promise resolving with no result\n */\nasync function setupSearchLanguages(\n config: SearchIndexConfig\n): Promise<void> {\n let base = \"../lunr\"\n\n /* Detect `iframe-worker` and fix base URL */\n if (typeof parent !== \"undefined\" && \"IFrameWorker\" in parent) {\n const worker = document.querySelector<HTMLScriptElement>(\"script[src]\")!\n const [path] = worker.src.split(\"/worker\")\n\n /* Prefix base with path */\n base = base.replace(\"..\", path)\n }\n\n /* Add scripts for languages */\n const scripts = []\n for (const lang of config.lang) {\n switch (lang) {\n\n /* Add segmenter for Japanese */\n case \"ja\":\n scripts.push(`${base}/tinyseg.js`)\n break\n\n /* Add segmenter for Hindi and Thai */\n case \"hi\":\n case \"th\":\n scripts.push(`${base}/wordcut.js`)\n break\n }\n\n /* Add language support */\n if (lang !== \"en\")\n scripts.push(`${base}/min/lunr.${lang}.min.js`)\n }\n\n /* Add multi-language support */\n if (config.lang.length > 1)\n scripts.push(`${base}/min/lunr.multi.min.js`)\n\n /* Load scripts synchronously */\n if (scripts.length)\n await importScripts(\n `${base}/min/lunr.stemmer.support.min.js`,\n ...scripts\n )\n}\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Message handler\n *\n * @param message - Source message\n *\n * @returns Target message\n */\nexport async function handler(\n message: SearchMessage\n): Promise<SearchMessage> {\n switch (message.type) {\n\n /* Search setup message */\n case SearchMessageType.SETUP:\n await setupSearchLanguages(message.data.config)\n index = new Search(message.data)\n return {\n type: SearchMessageType.READY\n }\n\n /* Search query message */\n case SearchMessageType.QUERY:\n return {\n type: SearchMessageType.RESULT,\n data: index ? index.search(message.data) : []\n }\n\n /* All other messages */\n default:\n throw new TypeError(\"Invalid message type\")\n }\n}\n\n/* ----------------------------------------------------------------------------\n * Worker\n * ------------------------------------------------------------------------- */\n\n/* @ts-ignore - expose Lunr.js in global scope, or stemmers will not work */\nself.lunr = lunr\n\n/* Handle messages */\naddEventListener(\"message\", async ev => {\n postMessage(await handler(ev.data))\n})\n", "/*\n * Copyright (c) 2016-2021 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport escapeHTML from \"escape-html\"\n\nimport { SearchIndexDocument } from \"../_\"\n\n/* ----------------------------------------------------------------------------\n * Types\n * ------------------------------------------------------------------------- */\n\n/**\n * Search document\n */\nexport interface SearchDocument extends SearchIndexDocument {\n parent?: SearchIndexDocument /* Parent article */\n}\n\n/* ------------------------------------------------------------------------- */\n\n/**\n * Search document mapping\n */\nexport type SearchDocumentMap = Map<string, SearchDocument>\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Create a search document mapping\n *\n * @param docs - Search index documents\n *\n * @returns Search document map\n */\nexport function setupSearchDocumentMap(\n docs: SearchIndexDocument[]\n): SearchDocumentMap {\n const documents = new Map<string, SearchDocument>()\n const parents = new Set<SearchDocument>()\n for (const doc of docs) {\n const [path, hash] = doc.location.split(\"#\")\n\n /* Extract location and title */\n const location = doc.location\n const title = doc.title\n\n /* Escape and cleanup text */\n const text = escapeHTML(doc.text)\n .replace(/\\s+(?=[,.:;!?])/g, \"\")\n .replace(/\\s+/g, \" \")\n\n /* Handle section */\n if (hash) {\n const parent = documents.get(path)!\n\n /* Ignore first section, override article */\n if (!parents.has(parent)) {\n parent.title = doc.title\n parent.text = text\n\n /* Remember that we processed the article */\n parents.add(parent)\n\n /* Add subsequent section */\n } else {\n documents.set(location, {\n location,\n title,\n text,\n parent\n })\n }\n\n /* Add article */\n } else {\n documents.set(location, {\n location,\n title,\n text\n })\n }\n }\n return documents\n}\n", "/*\n * Copyright (c) 2016-2021 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport { SearchIndexConfig } from \"../_\"\n\n/* ----------------------------------------------------------------------------\n * Types\n * ------------------------------------------------------------------------- */\n\n/**\n * Search highlight function\n *\n * @param value - Value\n *\n * @returns Highlighted value\n */\nexport type SearchHighlightFn = (value: string) => string\n\n/**\n * Search highlight factory function\n *\n * @param query - Query value\n *\n * @returns Search highlight function\n */\nexport type SearchHighlightFactoryFn = (query: string) => SearchHighlightFn\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Create a search highlighter\n *\n * @param config - Search index configuration\n *\n * @returns Search highlight factory function\n */\nexport function setupSearchHighlighter(\n config: SearchIndexConfig\n): SearchHighlightFactoryFn {\n const separator = new RegExp(config.separator, \"img\")\n const highlight = (_: unknown, data: string, term: string) => {\n return `${data}<mark data-md-highlight>${term}</mark>`\n }\n\n /* Return factory function */\n return (query: string) => {\n query = query\n .replace(/[\\s*+\\-:~^]+/g, \" \")\n .trim()\n\n /* Create search term match expression */\n const match = new RegExp(`(^|${config.separator})(${\n query\n .replace(/[|\\\\{}()[\\]^$+*?.-]/g, \"\\\\$&\")\n .replace(separator, \"|\")\n })`, \"img\")\n\n /* Highlight string value */\n return value => value\n .replace(match, highlight)\n .replace(/<\\/mark>(\\s+)<mark[^>]*>/img, \"$1\")\n }\n}\n", "/*\n * Copyright (c) 2016-2021 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\n/* ----------------------------------------------------------------------------\n * Types\n * ------------------------------------------------------------------------- */\n\n/**\n * Search query clause\n */\nexport interface SearchQueryClause {\n presence: lunr.Query.presence /* Clause presence */\n term: string /* Clause term */\n}\n\n/* ------------------------------------------------------------------------- */\n\n/**\n * Search query terms\n */\nexport type SearchQueryTerms = Record<string, boolean>\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Parse a search query for analysis\n *\n * @param value - Query value\n *\n * @returns Search query clauses\n */\nexport function parseSearchQuery(\n value: string\n): SearchQueryClause[] {\n const query = new (lunr as any).Query([\"title\", \"text\"])\n const parser = new (lunr as any).QueryParser(value, query)\n\n /* Parse and return query clauses */\n parser.parse()\n return query.clauses\n}\n\n/**\n * Analyze the search query clauses in regard to the search terms found\n *\n * @param query - Search query clauses\n * @param terms - Search terms\n *\n * @returns Search query terms\n */\nexport function getSearchQueryTerms(\n query: SearchQueryClause[], terms: string[]\n): SearchQueryTerms {\n const clauses = new Set<SearchQueryClause>(query)\n\n /* Match query clauses against terms */\n const result: SearchQueryTerms = {}\n for (let t = 0; t < terms.length; t++)\n for (const clause of clauses)\n if (terms[t].startsWith(clause.term)) {\n result[clause.term] = true\n clauses.delete(clause)\n }\n\n /* Annotate unmatched query clauses */\n for (const clause of clauses)\n result[clause.term] = false\n\n /* Return query terms */\n return result\n}\n", "/*\n * Copyright (c) 2016-2021 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport {\n SearchDocument,\n SearchDocumentMap,\n setupSearchDocumentMap\n} from \"../document\"\nimport {\n SearchHighlightFactoryFn,\n setupSearchHighlighter\n} from \"../highlighter\"\nimport {\n SearchQueryTerms,\n getSearchQueryTerms,\n parseSearchQuery\n} from \"../query\"\n\n/* ----------------------------------------------------------------------------\n * Types\n * ------------------------------------------------------------------------- */\n\n/**\n * Search index configuration\n */\nexport interface SearchIndexConfig {\n lang: string[] /* Search languages */\n separator: string /* Search separator */\n}\n\n/**\n * Search index document\n */\nexport interface SearchIndexDocument {\n location: string /* Document location */\n title: string /* Document title */\n text: string /* Document text */\n}\n\n/* ------------------------------------------------------------------------- */\n\n/**\n * Search index pipeline function\n */\nexport type SearchIndexPipelineFn =\n | \"trimmer\" /* Trimmer */\n | \"stopWordFilter\" /* Stop word filter */\n | \"stemmer\" /* Stemmer */\n\n/**\n * Search index pipeline\n */\nexport type SearchIndexPipeline = SearchIndexPipelineFn[]\n\n/* ------------------------------------------------------------------------- */\n\n/**\n * Search index\n *\n * This interfaces describes the format of the `search_index.json` file which\n * is automatically built by the MkDocs search plugin.\n */\nexport interface SearchIndex {\n config: SearchIndexConfig /* Search index configuration */\n docs: SearchIndexDocument[] /* Search index documents */\n index?: object /* Prebuilt index */\n pipeline?: SearchIndexPipeline /* Search index pipeline */\n}\n\n/* ------------------------------------------------------------------------- */\n\n/**\n * Search metadata\n */\nexport interface SearchMetadata {\n score: number /* Score (relevance) */\n terms: SearchQueryTerms /* Search query terms */\n}\n\n/* ------------------------------------------------------------------------- */\n\n/**\n * Search result\n */\nexport type SearchResult = Array<SearchDocument & SearchMetadata>\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Compute the difference of two lists of strings\n *\n * @param a - 1st list of strings\n * @param b - 2nd list of strings\n *\n * @returns Difference\n */\nfunction difference(a: string[], b: string[]): string[] {\n const [x, y] = [new Set(a), new Set(b)]\n return [\n ...new Set([...x].filter(value => !y.has(value)))\n ]\n}\n\n/* ----------------------------------------------------------------------------\n * Class\n * ------------------------------------------------------------------------- */\n\n/**\n * Search index\n */\nexport class Search {\n\n /**\n * Search document mapping\n *\n * A mapping of URLs (including hash fragments) to the actual articles and\n * sections of the documentation. The search document mapping must be created\n * regardless of whether the index was prebuilt or not, as Lunr.js itself\n * only stores the actual index.\n */\n protected documents: SearchDocumentMap\n\n /**\n * Search highlight factory function\n */\n protected highlight: SearchHighlightFactoryFn\n\n /**\n * The underlying Lunr.js search index\n */\n protected index: lunr.Index\n\n /**\n * Create the search integration\n *\n * @param data - Search index\n */\n public constructor({ config, docs, pipeline, index }: SearchIndex) {\n this.documents = setupSearchDocumentMap(docs)\n this.highlight = setupSearchHighlighter(config)\n\n /* Set separator for tokenizer */\n lunr.tokenizer.separator = new RegExp(config.separator)\n\n /* If no index was given, create it */\n if (typeof index === \"undefined\") {\n this.index = lunr(function () {\n\n /* Set up multi-language support */\n if (config.lang.length === 1 && config.lang[0] !== \"en\") {\n this.use((lunr as any)[config.lang[0]])\n } else if (config.lang.length > 1) {\n this.use((lunr as any).multiLanguage(...config.lang))\n }\n\n /* Compute functions to be removed from the pipeline */\n const fns = difference([\n \"trimmer\", \"stopWordFilter\", \"stemmer\"\n ], pipeline!)\n\n /* Remove functions from the pipeline for registered languages */\n for (const lang of config.lang.map(language => (\n language === \"en\" ? lunr : (lunr as any)[language]\n ))) {\n for (const fn of fns) {\n this.pipeline.remove(lang[fn])\n this.searchPipeline.remove(lang[fn])\n }\n }\n\n /* Set up fields and reference */\n this.field(\"title\", { boost: 1000 })\n this.field(\"text\")\n this.ref(\"location\")\n\n /* Index documents */\n for (const doc of docs)\n this.add(doc)\n })\n\n /* Handle prebuilt index */\n } else {\n this.index = lunr.Index.load(index)\n }\n }\n\n /**\n * Search for matching documents\n *\n * The search index which MkDocs provides is divided up into articles, which\n * contain the whole content of the individual pages, and sections, which only\n * contain the contents of the subsections obtained by breaking the individual\n * pages up at `h1` ... `h6`. As there may be many sections on different pages\n * with identical titles (for example within this very project, e.g. \"Usage\"\n * or \"Installation\"), they need to be put into the context of the containing\n * page. For this reason, section results are grouped within their respective\n * articles which are the top-level results that are returned.\n *\n * @param query - Query value\n *\n * @returns Search results\n */\n public search(query: string): SearchResult[] {\n if (query) {\n try {\n const highlight = this.highlight(query)\n\n /* Parse query to extract clauses for analysis */\n const clauses = parseSearchQuery(query)\n .filter(clause => (\n clause.presence !== lunr.Query.presence.PROHIBITED\n ))\n\n /* Perform search and post-process results */\n const groups = this.index.search(`${query}*`)\n\n /* Apply post-query boosts based on title and search query terms */\n .reduce<SearchResult>((results, { ref, score, matchData }) => {\n const document = this.documents.get(ref)\n if (typeof document !== \"undefined\") {\n const { location, title, text, parent } = document\n\n /* Compute and analyze search query terms */\n const terms = getSearchQueryTerms(\n clauses,\n Object.keys(matchData.metadata)\n )\n\n /* Highlight title and text and apply post-query boosts */\n const boost = +!parent + +Object.values(terms).every(t => t)\n results.push({\n location,\n title: highlight(title),\n text: highlight(text),\n score: score * (1 + boost),\n terms\n })\n }\n return results\n }, [])\n\n /* Sort search results again after applying boosts */\n .sort((a, b) => b.score - a.score)\n\n /* Group search results by page */\n .reduce((results, result) => {\n const document = this.documents.get(result.location)\n if (typeof document !== \"undefined\") {\n const ref = \"parent\" in document\n ? document.parent!.location\n : document.location\n results.set(ref, [...results.get(ref) || [], result])\n }\n return results\n }, new Map<string, SearchResult>())\n\n /* Expand grouped search results */\n return [...groups.values()]\n\n /* Log errors to console (for now) */\n } catch {\n console.warn(`Invalid query: ${query} \u2013 see https://bit.ly/2s3ChXG`)\n }\n }\n\n /* Return nothing in case of error or empty query */\n return []\n }\n}\n", "/*\n * Copyright (c) 2016-2021 Martin Donath <martin.donath@squidfunk.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A RTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport { SearchIndex, SearchResult } from \"../../_\"\n\n/* ----------------------------------------------------------------------------\n * Types\n * ------------------------------------------------------------------------- */\n\n/**\n * Search message type\n */\nexport const enum SearchMessageType {\n SETUP, /* Search index setup */\n READY, /* Search index ready */\n QUERY, /* Search query */\n RESULT /* Search results */\n}\n\n/* ------------------------------------------------------------------------- */\n\n/**\n * A message containing the data necessary to setup the search index\n */\nexport interface SearchSetupMessage {\n type: SearchMessageType.SETUP /* Message type */\n data: SearchIndex /* Message data */\n}\n\n/**\n * A message indicating the search index is ready\n */\nexport interface SearchReadyMessage {\n type: SearchMessageType.READY /* Message type */\n}\n\n/**\n * A message containing a search query\n */\nexport interface SearchQueryMessage {\n type: SearchMessageType.QUERY /* Message type */\n data: string /* Message data */\n}\n\n/**\n * A message containing results for a search query\n */\nexport interface SearchResultMessage {\n type: SearchMessageType.RESULT /* Message type */\n data: SearchResult[] /* Message data */\n}\n\n/* ------------------------------------------------------------------------- */\n\n/**\n * A message exchanged with the search worker\n */\nexport type SearchMessage =\n | SearchSetupMessage\n | SearchReadyMessage\n | SearchQueryMessage\n | SearchResultMessage\n\n/* ----------------------------------------------------------------------------\n * Functions\n * ------------------------------------------------------------------------- */\n\n/**\n * Type guard for search setup messages\n *\n * @param message - Search worker message\n *\n * @returns Test result\n */\nexport function isSearchSetupMessage(\n message: SearchMessage\n): message is SearchSetupMessage {\n return message.type === SearchMessageType.SETUP\n}\n\n/**\n * Type guard for search ready messages\n *\n * @param message - Search worker message\n *\n * @returns Test result\n */\nexport function isSearchReadyMessage(\n message: SearchMessage\n): message is SearchReadyMessage {\n return message.type === SearchMessageType.READY\n}\n\n/**\n * Type guard for search query messages\n *\n * @param message - Search worker message\n *\n * @returns Test result\n */\nexport function isSearchQueryMessage(\n message: SearchMessage\n): message is SearchQueryMessage {\n return message.type === SearchMessageType.QUERY\n}\n\n/**\n * Type guard for search result messages\n *\n * @param message - Search worker message\n *\n * @returns Test result\n */\nexport function isSearchResultMessage(\n message: SearchMessage\n): message is SearchResultMessage {\n return message.type === SearchMessageType.RESULT\n}\n"],
+ "mappings": "mzBAAA;AAAA;AAAA;AAAA;AAAA,GAMC,AAAC,WAAU,CAiCZ,GAAI,GAAO,SAAU,EAAQ,CAC3B,GAAI,GAAU,GAAI,GAAK,QAEvB,SAAQ,SAAS,IACf,EAAK,QACL,EAAK,eACL,EAAK,SAGP,EAAQ,eAAe,IACrB,EAAK,SAGP,EAAO,KAAK,EAAS,GACd,EAAQ,SAGjB,EAAK,QAAU,QACf;AAAA;AAAA;AAAA,GASA,EAAK,MAAQ,GASb,EAAK,MAAM,KAAQ,SAAU,EAAQ,CAEnC,MAAO,UAAU,EAAS,CACxB,AAAI,EAAO,SAAW,QAAQ,MAC5B,QAAQ,KAAK,KAIhB,MAaH,EAAK,MAAM,SAAW,SAAU,EAAK,CACnC,MAAI,AAAkB,IAAQ,KACrB,GAEA,EAAI,YAoBf,EAAK,MAAM,MAAQ,SAAU,EAAK,CAChC,GAAI,GAAQ,KACV,MAAO,GAMT,OAHI,GAAQ,OAAO,OAAO,MACtB,EAAO,OAAO,KAAK,GAEd,EAAI,EAAG,EAAI,EAAK,OAAQ,IAAK,CACpC,GAAI,GAAM,EAAK,GACX,EAAM,EAAI,GAEd,GAAI,MAAM,QAAQ,GAAM,CACtB,EAAM,GAAO,EAAI,QACjB,SAGF,GAAI,MAAO,IAAQ,UACf,MAAO,IAAQ,UACf,MAAO,IAAQ,UAAW,CAC5B,EAAM,GAAO,EACb,SAGF,KAAM,IAAI,WAAU,yDAGtB,MAAO,IAET,EAAK,SAAW,SAAU,EAAQ,EAAW,EAAa,CACxD,KAAK,OAAS,EACd,KAAK,UAAY,EACjB,KAAK,aAAe,GAGtB,EAAK,SAAS,OAAS,IAEvB,EAAK,SAAS,WAAa,SAAU,EAAG,CACtC,GAAI,GAAI,EAAE,QAAQ,EAAK,SAAS,QAEhC,GAAI,IAAM,GACR,KAAM,6BAGR,GAAI,GAAW,EAAE,MAAM,EAAG,GACtB,EAAS,EAAE,MAAM,EAAI,GAEzB,MAAO,IAAI,GAAK,SAAU,EAAQ,EAAU,IAG9C,EAAK,SAAS,UAAU,SAAW,UAAY,CAC7C,MAAI,MAAK,cAAgB,MACvB,MAAK,aAAe,KAAK,UAAY,EAAK,SAAS,OAAS,KAAK,QAG5D,KAAK,cAEd;AAAA;AAAA;AAAA,GAUA,EAAK,IAAM,SAAU,EAAU,CAG7B,GAFA,KAAK,SAAW,OAAO,OAAO,MAE1B,EAAU,CACZ,KAAK,OAAS,EAAS,OAEvB,OAAS,GAAI,EAAG,EAAI,KAAK,OAAQ,IAC/B,KAAK,SAAS,EAAS,IAAM,OAG/B,MAAK,OAAS,GAWlB,EAAK,IAAI,SAAW,CAClB,UAAW,SAAU,EAAO,CAC1B,MAAO,IAGT,MAAO,UAAY,CACjB,MAAO,OAGT,SAAU,UAAY,CACpB,MAAO,KAWX,EAAK,IAAI,MAAQ,CACf,UAAW,UAAY,CACrB,MAAO,OAGT,MAAO,SAAU,EAAO,CACtB,MAAO,IAGT,SAAU,UAAY,CACpB,MAAO,KAUX,EAAK,IAAI,UAAU,SAAW,SAAU,EAAQ,CAC9C,MAAO,CAAC,CAAC,KAAK,SAAS,IAWzB,EAAK,IAAI,UAAU,UAAY,SAAU,EAAO,CAC9C,GAAI,GAAG,EAAG,EAAU,EAAe,GAEnC,GAAI,IAAU,EAAK,IAAI,SACrB,MAAO,MAGT,GAAI,IAAU,EAAK,IAAI,MACrB,MAAO,GAGT,AAAI,KAAK,OAAS,EAAM,OACtB,GAAI,KACJ,EAAI,GAEJ,GAAI,EACJ,EAAI,MAGN,EAAW,OAAO,KAAK,EAAE,UAEzB,OAAS,GAAI,EAAG,EAAI,EAAS,OAAQ,IAAK,CACxC,GAAI,GAAU,EAAS,GACvB,AAAI,IAAW,GAAE,UACf,EAAa,KAAK,GAItB,MAAO,IAAI,GAAK,IAAK,IAUvB,EAAK,IAAI,UAAU,MAAQ,SAAU,EAAO,CAC1C,MAAI,KAAU,EAAK,IAAI,SACd,EAAK,IAAI,SAGd,IAAU,EAAK,IAAI,MACd,KAGF,GAAI,GAAK,IAAI,OAAO,KAAK,KAAK,UAAU,OAAO,OAAO,KAAK,EAAM,aAU1E,EAAK,IAAM,SAAU,EAAS,EAAe,CAC3C,GAAI,GAAoB,EAExB,OAAS,KAAa,GACpB,AAAI,GAAa,UACjB,IAAqB,OAAO,KAAK,EAAQ,IAAY,QAGvD,GAAI,GAAK,GAAgB,EAAoB,IAAQ,GAAoB,IAEzE,MAAO,MAAK,IAAI,EAAI,KAAK,IAAI,KAW/B,EAAK,MAAQ,SAAU,EAAK,EAAU,CACpC,KAAK,IAAM,GAAO,GAClB,KAAK,SAAW,GAAY,IAQ9B,EAAK,MAAM,UAAU,SAAW,UAAY,CAC1C,MAAO,MAAK,KAuBd,EAAK,MAAM,UAAU,OAAS,SAAU,EAAI,CAC1C,YAAK,IAAM,EAAG,KAAK,IAAK,KAAK,UACtB,MAUT,EAAK,MAAM,UAAU,MAAQ,SAAU,EAAI,CACzC,SAAK,GAAM,SAAU,EAAG,CAAE,MAAO,IAC1B,GAAI,GAAK,MAAO,EAAG,KAAK,IAAK,KAAK,UAAW,KAAK,WAE3D;AAAA;AAAA;AAAA,GAuBA,EAAK,UAAY,SAAU,EAAK,EAAU,CACxC,GAAI,GAAO,MAAQ,GAAO,KACxB,MAAO,GAGT,GAAI,MAAM,QAAQ,GAChB,MAAO,GAAI,IAAI,SAAU,EAAG,CAC1B,MAAO,IAAI,GAAK,MACd,EAAK,MAAM,SAAS,GAAG,cACvB,EAAK,MAAM,MAAM,MASvB,OAJI,GAAM,EAAI,WAAW,cACrB,EAAM,EAAI,OACV,EAAS,GAEJ,EAAW,EAAG,EAAa,EAAG,GAAY,EAAK,IAAY,CAClE,GAAI,GAAO,EAAI,OAAO,GAClB,EAAc,EAAW,EAE7B,GAAK,EAAK,MAAM,EAAK,UAAU,YAAc,GAAY,EAAM,CAE7D,GAAI,EAAc,EAAG,CACnB,GAAI,GAAgB,EAAK,MAAM,MAAM,IAAa,GAClD,EAAc,SAAc,CAAC,EAAY,GACzC,EAAc,MAAW,EAAO,OAEhC,EAAO,KACL,GAAI,GAAK,MACP,EAAI,MAAM,EAAY,GACtB,IAKN,EAAa,EAAW,GAK5B,MAAO,IAUT,EAAK,UAAU,UAAY,UAC3B;AAAA;AAAA;AAAA,GAkCA,EAAK,SAAW,UAAY,CAC1B,KAAK,OAAS,IAGhB,EAAK,SAAS,oBAAsB,OAAO,OAAO,MAmClD,EAAK,SAAS,iBAAmB,SAAU,EAAI,EAAO,CACpD,AAAI,IAAS,MAAK,qBAChB,EAAK,MAAM,KAAK,6CAA+C,GAGjE,EAAG,MAAQ,EACX,EAAK,SAAS,oBAAoB,EAAG,OAAS,GAShD,EAAK,SAAS,4BAA8B,SAAU,EAAI,CACxD,GAAI,GAAe,EAAG,OAAU,EAAG,QAAS,MAAK,oBAEjD,AAAK,GACH,EAAK,MAAM,KAAK;AAAA,EAAmG,IAcvH,EAAK,SAAS,KAAO,SAAU,EAAY,CACzC,GAAI,GAAW,GAAI,GAAK,SAExB,SAAW,QAAQ,SAAU,EAAQ,CACnC,GAAI,GAAK,EAAK,SAAS,oBAAoB,GAE3C,GAAI,EACF,EAAS,IAAI,OAEb,MAAM,IAAI,OAAM,sCAAwC,KAIrD,GAUT,EAAK,SAAS,UAAU,IAAM,UAAY,CACxC,GAAI,GAAM,MAAM,UAAU,MAAM,KAAK,WAErC,EAAI,QAAQ,SAAU,EAAI,CACxB,EAAK,SAAS,4BAA4B,GAC1C,KAAK,OAAO,KAAK,IAChB,OAYL,EAAK,SAAS,UAAU,MAAQ,SAAU,EAAY,EAAO,CAC3D,EAAK,SAAS,4BAA4B,GAE1C,GAAI,GAAM,KAAK,OAAO,QAAQ,GAC9B,GAAI,GAAO,GACT,KAAM,IAAI,OAAM,0BAGlB,EAAM,EAAM,EACZ,KAAK,OAAO,OAAO,EAAK,EAAG,IAY7B,EAAK,SAAS,UAAU,OAAS,SAAU,EAAY,EAAO,CAC5D,EAAK,SAAS,4BAA4B,GAE1C,GAAI,GAAM,KAAK,OAAO,QAAQ,GAC9B,GAAI,GAAO,GACT,KAAM,IAAI,OAAM,0BAGlB,KAAK,OAAO,OAAO,EAAK,EAAG,IAQ7B,EAAK,SAAS,UAAU,OAAS,SAAU,EAAI,CAC7C,GAAI,GAAM,KAAK,OAAO,QAAQ,GAC9B,AAAI,GAAO,IAIX,KAAK,OAAO,OAAO,EAAK,IAU1B,EAAK,SAAS,UAAU,IAAM,SAAU,EAAQ,CAG9C,OAFI,GAAc,KAAK,OAAO,OAErB,EAAI,EAAG,EAAI,EAAa,IAAK,CAIpC,OAHI,GAAK,KAAK,OAAO,GACjB,EAAO,GAEF,EAAI,EAAG,EAAI,EAAO,OAAQ,IAAK,CACtC,GAAI,GAAS,EAAG,EAAO,GAAI,EAAG,GAE9B,GAAI,KAAW,MAA6B,IAAW,IAEvD,GAAI,MAAM,QAAQ,GAChB,OAAS,GAAI,EAAG,EAAI,EAAO,OAAQ,IACjC,EAAK,KAAK,EAAO,QAGnB,GAAK,KAAK,GAId,EAAS,EAGX,MAAO,IAaT,EAAK,SAAS,UAAU,UAAY,SAAU,EAAK,EAAU,CAC3D,GAAI,GAAQ,GAAI,GAAK,MAAO,EAAK,GAEjC,MAAO,MAAK,IAAI,CAAC,IAAQ,IAAI,SAAU,EAAG,CACxC,MAAO,GAAE,cAQb,EAAK,SAAS,UAAU,MAAQ,UAAY,CAC1C,KAAK,OAAS,IAUhB,EAAK,SAAS,UAAU,OAAS,UAAY,CAC3C,MAAO,MAAK,OAAO,IAAI,SAAU,EAAI,CACnC,SAAK,SAAS,4BAA4B,GAEnC,EAAG,SAGd;AAAA;AAAA;AAAA,GAqBA,EAAK,OAAS,SAAU,EAAU,CAChC,KAAK,WAAa,EAClB,KAAK,SAAW,GAAY,IAc9B,EAAK,OAAO,UAAU,iBAAmB,SAAU,EAAO,CAExD,GAAI,KAAK,SAAS,QAAU,EAC1B,MAAO,GAST,OANI,GAAQ,EACR,EAAM,KAAK,SAAS,OAAS,EAC7B,EAAc,EAAM,EACpB,EAAa,KAAK,MAAM,EAAc,GACtC,EAAa,KAAK,SAAS,EAAa,GAErC,EAAc,GACf,GAAa,GACf,GAAQ,GAGN,EAAa,GACf,GAAM,GAGJ,GAAc,IAIlB,EAAc,EAAM,EACpB,EAAa,EAAQ,KAAK,MAAM,EAAc,GAC9C,EAAa,KAAK,SAAS,EAAa,GAO1C,GAJI,GAAc,GAId,EAAa,EACf,MAAO,GAAa,EAGtB,GAAI,EAAa,EACf,MAAQ,GAAa,GAAK,GAa9B,EAAK,OAAO,UAAU,OAAS,SAAU,EAAW,EAAK,CACvD,KAAK,OAAO,EAAW,EAAK,UAAY,CACtC,KAAM,qBAYV,EAAK,OAAO,UAAU,OAAS,SAAU,EAAW,EAAK,EAAI,CAC3D,KAAK,WAAa,EAClB,GAAI,GAAW,KAAK,iBAAiB,GAErC,AAAI,KAAK,SAAS,IAAa,EAC7B,KAAK,SAAS,EAAW,GAAK,EAAG,KAAK,SAAS,EAAW,GAAI,GAE9D,KAAK,SAAS,OAAO,EAAU,EAAG,EAAW,IASjD,EAAK,OAAO,UAAU,UAAY,UAAY,CAC5C,GAAI,KAAK,WAAY,MAAO,MAAK,WAKjC,OAHI,GAAe,EACf,EAAiB,KAAK,SAAS,OAE1B,EAAI,EAAG,EAAI,EAAgB,GAAK,EAAG,CAC1C,GAAI,GAAM,KAAK,SAAS,GACxB,GAAgB,EAAM,EAGxB,MAAO,MAAK,WAAa,KAAK,KAAK,IASrC,EAAK,OAAO,UAAU,IAAM,SAAU,EAAa,CAOjD,OANI,GAAa,EACb,EAAI,KAAK,SAAU,EAAI,EAAY,SACnC,EAAO,EAAE,OAAQ,EAAO,EAAE,OAC1B,EAAO,EAAG,EAAO,EACjB,EAAI,EAAG,EAAI,EAER,EAAI,GAAQ,EAAI,GACrB,EAAO,EAAE,GAAI,EAAO,EAAE,GACtB,AAAI,EAAO,EACT,GAAK,EACA,AAAI,EAAO,EAChB,GAAK,EACI,GAAQ,GACjB,IAAc,EAAE,EAAI,GAAK,EAAE,EAAI,GAC/B,GAAK,EACL,GAAK,GAIT,MAAO,IAUT,EAAK,OAAO,UAAU,WAAa,SAAU,EAAa,CACxD,MAAO,MAAK,IAAI,GAAe,KAAK,aAAe,GAQrD,EAAK,OAAO,UAAU,QAAU,UAAY,CAG1C,OAFI,GAAS,GAAI,OAAO,KAAK,SAAS,OAAS,GAEtC,EAAI,EAAG,EAAI,EAAG,EAAI,KAAK,SAAS,OAAQ,GAAK,EAAG,IACvD,EAAO,GAAK,KAAK,SAAS,GAG5B,MAAO,IAQT,EAAK,OAAO,UAAU,OAAS,UAAY,CACzC,MAAO,MAAK,UAGd;AAAA;AAAA;AAAA;AAAA,GAiBA,EAAK,QAAW,UAAU,CACxB,GAAI,GAAY,CACZ,QAAY,MACZ,OAAW,OACX,KAAS,OACT,KAAS,OACT,KAAS,MACT,IAAQ,MACR,KAAS,KACT,MAAU,MACV,IAAQ,IACR,MAAU,MACV,QAAY,MACZ,MAAU,MACV,KAAS,MACT,MAAU,KACV,QAAY,MACZ,QAAY,MACZ,QAAY,MACZ,MAAU,KACV,MAAU,MACV,OAAW,MACX,KAAS,OAGX,EAAY,CACV,MAAU,KACV,MAAU,GACV,MAAU,KACV,MAAU,KACV,KAAS,KACT,IAAQ,GACR,KAAS,IAGX,EAAI,WACJ,EAAI,WACJ,EAAI,EAAI,aACR,EAAI,EAAI,WAER,EAAO,KAAO,EAAI,KAAO,EAAI,EAC7B,EAAO,KAAO,EAAI,KAAO,EAAI,EAAI,IAAM,EAAI,MAC3C,EAAO,KAAO,EAAI,KAAO,EAAI,EAAI,EAAI,EACrC,EAAM,KAAO,EAAI,KAAO,EAEtB,EAAU,GAAI,QAAO,GACrB,EAAU,GAAI,QAAO,GACrB,EAAU,GAAI,QAAO,GACrB,EAAS,GAAI,QAAO,GAEpB,EAAQ,kBACR,EAAS,iBACT,EAAQ,aACR,EAAS,kBACT,EAAU,KACV,EAAW,cACX,EAAW,GAAI,QAAO,sBACtB,EAAW,GAAI,QAAO,IAAM,EAAI,EAAI,gBAEpC,EAAQ,mBACR,EAAO,2IAEP,EAAO,iDAEP,EAAO,sFACP,EAAQ,oBAER,EAAO,WACP,EAAS,MACT,EAAQ,GAAI,QAAO,IAAM,EAAI,EAAI,gBAEjC,EAAgB,SAAuB,EAAG,CAC5C,GAAI,GACF,EACA,EACA,EACA,EACA,EACA,EAEF,GAAI,EAAE,OAAS,EAAK,MAAO,GAiB3B,GAfA,EAAU,EAAE,OAAO,EAAE,GACjB,GAAW,KACb,GAAI,EAAQ,cAAgB,EAAE,OAAO,IAIvC,EAAK,EACL,EAAM,EAEN,AAAI,EAAG,KAAK,GAAM,EAAI,EAAE,QAAQ,EAAG,QAC1B,EAAI,KAAK,IAAM,GAAI,EAAE,QAAQ,EAAI,SAG1C,EAAK,EACL,EAAM,EACF,EAAG,KAAK,GAAI,CACd,GAAI,GAAK,EAAG,KAAK,GACjB,EAAK,EACD,EAAG,KAAK,EAAG,KACb,GAAK,EACL,EAAI,EAAE,QAAQ,EAAG,aAEV,EAAI,KAAK,GAAI,CACtB,GAAI,GAAK,EAAI,KAAK,GAClB,EAAO,EAAG,GACV,EAAM,EACF,EAAI,KAAK,IACX,GAAI,EACJ,EAAM,EACN,EAAM,EACN,EAAM,EACN,AAAI,EAAI,KAAK,GAAM,EAAI,EAAI,IACtB,AAAI,EAAI,KAAK,GAAM,GAAK,EAAS,EAAI,EAAE,QAAQ,EAAG,KAC9C,EAAI,KAAK,IAAM,GAAI,EAAI,MAMpC,GADA,EAAK,EACD,EAAG,KAAK,GAAI,CACd,GAAI,GAAK,EAAG,KAAK,GACjB,EAAO,EAAG,GACV,EAAI,EAAO,IAKb,GADA,EAAK,EACD,EAAG,KAAK,GAAI,CACd,GAAI,GAAK,EAAG,KAAK,GACjB,EAAO,EAAG,GACV,EAAS,EAAG,GACZ,EAAK,EACD,EAAG,KAAK,IACV,GAAI,EAAO,EAAU,IAMzB,GADA,EAAK,EACD,EAAG,KAAK,GAAI,CACd,GAAI,GAAK,EAAG,KAAK,GACjB,EAAO,EAAG,GACV,EAAS,EAAG,GACZ,EAAK,EACD,EAAG,KAAK,IACV,GAAI,EAAO,EAAU,IAOzB,GAFA,EAAK,EACL,EAAM,EACF,EAAG,KAAK,GAAI,CACd,GAAI,GAAK,EAAG,KAAK,GACjB,EAAO,EAAG,GACV,EAAK,EACD,EAAG,KAAK,IACV,GAAI,WAEG,EAAI,KAAK,GAAI,CACtB,GAAI,GAAK,EAAI,KAAK,GAClB,EAAO,EAAG,GAAK,EAAG,GAClB,EAAM,EACF,EAAI,KAAK,IACX,GAAI,GAMR,GADA,EAAK,EACD,EAAG,KAAK,GAAI,CACd,GAAI,GAAK,EAAG,KAAK,GACjB,EAAO,EAAG,GACV,EAAK,EACL,EAAM,EACN,EAAM,EACF,GAAG,KAAK,IAAU,EAAI,KAAK,IAAS,CAAE,EAAI,KAAK,KACjD,GAAI,GAIR,SAAK,EACL,EAAM,EACF,EAAG,KAAK,IAAM,EAAI,KAAK,IACzB,GAAK,EACL,EAAI,EAAE,QAAQ,EAAG,KAKf,GAAW,KACb,GAAI,EAAQ,cAAgB,EAAE,OAAO,IAGhC,GAGT,MAAO,UAAU,EAAO,CACtB,MAAO,GAAM,OAAO,OAIxB,EAAK,SAAS,iBAAiB,EAAK,QAAS,WAC7C;AAAA;AAAA;AAAA,GAkBA,EAAK,uBAAyB,SAAU,EAAW,CACjD,GAAI,GAAQ,EAAU,OAAO,SAAU,EAAM,EAAU,CACrD,SAAK,GAAY,EACV,GACN,IAEH,MAAO,UAAU,EAAO,CACtB,GAAI,GAAS,EAAM,EAAM,cAAgB,EAAM,WAAY,MAAO,KAiBtE,EAAK,eAAiB,EAAK,uBAAuB,CAChD,IACA,OACA,QACA,SACA,QACA,MACA,SACA,OACA,KACA,QACA,KACA,MACA,MACA,MACA,KACA,KACA,KACA,UACA,OACA,MACA,KACA,MACA,SACA,QACA,OACA,MACA,KACA,OACA,SACA,OACA,OACA,QACA,MACA,OACA,MACA,MACA,MACA,MACA,OACA,KACA,MACA,OACA,MACA,MACA,MACA,UACA,IACA,KACA,KACA,OACA,KACA,KACA,MACA,OACA,QACA,MACA,OACA,SACA,MACA,KACA,QACA,OACA,OACA,KACA,UACA,KACA,MACA,MACA,KACA,MACA,QACA,KACA,OACA,KACA,QACA,MACA,MACA,SACA,OACA,MACA,OACA,MACA,SACA,QACA,KACA,OACA,OACA,OACA,MACA,QACA,OACA,OACA,QACA,QACA,OACA,OACA,MACA,KACA,MACA,OACA,KACA,QACA,MACA,KACA,OACA,OACA,OACA,QACA,QACA,QACA,MACA,OACA,MACA,OACA,OACA,QACA,MACA,MACA,SAGF,EAAK,SAAS,iBAAiB,EAAK,eAAgB,kBACpD;AAAA;AAAA;AAAA,GAoBA,EAAK,QAAU,SAAU,EAAO,CAC9B,MAAO,GAAM,OAAO,SAAU,EAAG,CAC/B,MAAO,GAAE,QAAQ,OAAQ,IAAI,QAAQ,OAAQ,OAIjD,EAAK,SAAS,iBAAiB,EAAK,QAAS,WAC7C;AAAA;AAAA;AAAA,GA0BA,EAAK,SAAW,UAAY,CAC1B,KAAK,MAAQ,GACb,KAAK,MAAQ,GACb,KAAK,GAAK,EAAK,SAAS,QACxB,EAAK,SAAS,SAAW,GAW3B,EAAK,SAAS,QAAU,EASxB,EAAK,SAAS,UAAY,SAAU,EAAK,CAGvC,OAFI,GAAU,GAAI,GAAK,SAAS,QAEvB,EAAI,EAAG,EAAM,EAAI,OAAQ,EAAI,EAAK,IACzC,EAAQ,OAAO,EAAI,IAGrB,SAAQ,SACD,EAAQ,MAYjB,EAAK,SAAS,WAAa,SAAU,EAAQ,CAC3C,MAAI,gBAAkB,GACb,EAAK,SAAS,gBAAgB,EAAO,KAAM,EAAO,cAElD,EAAK,SAAS,WAAW,EAAO,OAmB3C,EAAK,SAAS,gBAAkB,SAAU,EAAK,EAAc,CAS3D,OARI,GAAO,GAAI,GAAK,SAEhB,EAAQ,CAAC,CACX,KAAM,EACN,eAAgB,EAChB,IAAK,IAGA,EAAM,QAAQ,CACnB,GAAI,GAAQ,EAAM,MAGlB,GAAI,EAAM,IAAI,OAAS,EAAG,CACxB,GAAI,GAAO,EAAM,IAAI,OAAO,GACxB,EAEJ,AAAI,IAAQ,GAAM,KAAK,MACrB,EAAa,EAAM,KAAK,MAAM,GAE9B,GAAa,GAAI,GAAK,SACtB,EAAM,KAAK,MAAM,GAAQ,GAGvB,EAAM,IAAI,QAAU,GACtB,GAAW,MAAQ,IAGrB,EAAM,KAAK,CACT,KAAM,EACN,eAAgB,EAAM,eACtB,IAAK,EAAM,IAAI,MAAM,KAIzB,GAAI,EAAM,gBAAkB,EAK5B,IAAI,KAAO,GAAM,KAAK,MACpB,GAAI,GAAgB,EAAM,KAAK,MAAM,SAChC,CACL,GAAI,GAAgB,GAAI,GAAK,SAC7B,EAAM,KAAK,MAAM,KAAO,EAiC1B,GA9BI,EAAM,IAAI,QAAU,GACtB,GAAc,MAAQ,IAGxB,EAAM,KAAK,CACT,KAAM,EACN,eAAgB,EAAM,eAAiB,EACvC,IAAK,EAAM,MAMT,EAAM,IAAI,OAAS,GACrB,EAAM,KAAK,CACT,KAAM,EAAM,KACZ,eAAgB,EAAM,eAAiB,EACvC,IAAK,EAAM,IAAI,MAAM,KAMrB,EAAM,IAAI,QAAU,GACtB,GAAM,KAAK,MAAQ,IAMjB,EAAM,IAAI,QAAU,EAAG,CACzB,GAAI,KAAO,GAAM,KAAK,MACpB,GAAI,GAAmB,EAAM,KAAK,MAAM,SACnC,CACL,GAAI,GAAmB,GAAI,GAAK,SAChC,EAAM,KAAK,MAAM,KAAO,EAG1B,AAAI,EAAM,IAAI,QAAU,GACtB,GAAiB,MAAQ,IAG3B,EAAM,KAAK,CACT,KAAM,EACN,eAAgB,EAAM,eAAiB,EACvC,IAAK,EAAM,IAAI,MAAM,KAOzB,GAAI,EAAM,IAAI,OAAS,EAAG,CACxB,GAAI,GAAQ,EAAM,IAAI,OAAO,GACzB,EAAQ,EAAM,IAAI,OAAO,GACzB,EAEJ,AAAI,IAAS,GAAM,KAAK,MACtB,EAAgB,EAAM,KAAK,MAAM,GAEjC,GAAgB,GAAI,GAAK,SACzB,EAAM,KAAK,MAAM,GAAS,GAGxB,EAAM,IAAI,QAAU,GACtB,GAAc,MAAQ,IAGxB,EAAM,KAAK,CACT,KAAM,EACN,eAAgB,EAAM,eAAiB,EACvC,IAAK,EAAQ,EAAM,IAAI,MAAM,OAKnC,MAAO,IAaT,EAAK,SAAS,WAAa,SAAU,EAAK,CAYxC,OAXI,GAAO,GAAI,GAAK,SAChB,EAAO,EAUF,EAAI,EAAG,EAAM,EAAI,OAAQ,EAAI,EAAK,IAAK,CAC9C,GAAI,GAAO,EAAI,GACX,EAAS,GAAK,EAAM,EAExB,GAAI,GAAQ,IACV,EAAK,MAAM,GAAQ,EACnB,EAAK,MAAQ,MAER,CACL,GAAI,GAAO,GAAI,GAAK,SACpB,EAAK,MAAQ,EAEb,EAAK,MAAM,GAAQ,EACnB,EAAO,GAIX,MAAO,IAaT,EAAK,SAAS,UAAU,QAAU,UAAY,CAQ5C,OAPI,GAAQ,GAER,EAAQ,CAAC,CACX,OAAQ,GACR,KAAM,OAGD,EAAM,QAAQ,CACnB,GAAI,GAAQ,EAAM,MACd,EAAQ,OAAO,KAAK,EAAM,KAAK,OAC/B,EAAM,EAAM,OAEhB,AAAI,EAAM,KAAK,OAKb,GAAM,OAAO,OAAO,GACpB,EAAM,KAAK,EAAM,SAGnB,OAAS,GAAI,EAAG,EAAI,EAAK,IAAK,CAC5B,GAAI,GAAO,EAAM,GAEjB,EAAM,KAAK,CACT,OAAQ,EAAM,OAAO,OAAO,GAC5B,KAAM,EAAM,KAAK,MAAM,MAK7B,MAAO,IAaT,EAAK,SAAS,UAAU,SAAW,UAAY,CAS7C,GAAI,KAAK,KACP,MAAO,MAAK,KAOd,OAJI,GAAM,KAAK,MAAQ,IAAM,IACzB,EAAS,OAAO,KAAK,KAAK,OAAO,OACjC,EAAM,EAAO,OAER,EAAI,EAAG,EAAI,EAAK,IAAK,CAC5B,GAAI,GAAQ,EAAO,GACf,EAAO,KAAK,MAAM,GAEtB,EAAM,EAAM,EAAQ,EAAK,GAG3B,MAAO,IAaT,EAAK,SAAS,UAAU,UAAY,SAAU,EAAG,CAU/C,OATI,GAAS,GAAI,GAAK,SAClB,EAAQ,OAER,EAAQ,CAAC,CACX,MAAO,EACP,OAAQ,EACR,KAAM,OAGD,EAAM,QAAQ,CACnB,EAAQ,EAAM,MAWd,OALI,GAAS,OAAO,KAAK,EAAM,MAAM,OACjC,EAAO,EAAO,OACd,EAAS,OAAO,KAAK,EAAM,KAAK,OAChC,EAAO,EAAO,OAET,EAAI,EAAG,EAAI,EAAM,IAGxB,OAFI,GAAQ,EAAO,GAEV,EAAI,EAAG,EAAI,EAAM,IAAK,CAC7B,GAAI,GAAQ,EAAO,GAEnB,GAAI,GAAS,GAAS,GAAS,IAAK,CAClC,GAAI,GAAO,EAAM,KAAK,MAAM,GACxB,EAAQ,EAAM,MAAM,MAAM,GAC1B,EAAQ,EAAK,OAAS,EAAM,MAC5B,EAAO,OAEX,AAAI,IAAS,GAAM,OAAO,MAIxB,GAAO,EAAM,OAAO,MAAM,GAC1B,EAAK,MAAQ,EAAK,OAAS,GAM3B,GAAO,GAAI,GAAK,SAChB,EAAK,MAAQ,EACb,EAAM,OAAO,MAAM,GAAS,GAG9B,EAAM,KAAK,CACT,MAAO,EACP,OAAQ,EACR,KAAM,MAOhB,MAAO,IAET,EAAK,SAAS,QAAU,UAAY,CAClC,KAAK,aAAe,GACpB,KAAK,KAAO,GAAI,GAAK,SACrB,KAAK,eAAiB,GACtB,KAAK,eAAiB,IAGxB,EAAK,SAAS,QAAQ,UAAU,OAAS,SAAU,EAAM,CACvD,GAAI,GACA,EAAe,EAEnB,GAAI,EAAO,KAAK,aACd,KAAM,IAAI,OAAO,+BAGnB,OAAS,GAAI,EAAG,EAAI,EAAK,QAAU,EAAI,KAAK,aAAa,QACnD,EAAK,IAAM,KAAK,aAAa,GAD8B,IAE/D,IAGF,KAAK,SAAS,GAEd,AAAI,KAAK,eAAe,QAAU,EAChC,EAAO,KAAK,KAEZ,EAAO,KAAK,eAAe,KAAK,eAAe,OAAS,GAAG,MAG7D,OAAS,GAAI,EAAc,EAAI,EAAK,OAAQ,IAAK,CAC/C,GAAI,GAAW,GAAI,GAAK,SACpB,EAAO,EAAK,GAEhB,EAAK,MAAM,GAAQ,EAEnB,KAAK,eAAe,KAAK,CACvB,OAAQ,EACR,KAAM,EACN,MAAO,IAGT,EAAO,EAGT,EAAK,MAAQ,GACb,KAAK,aAAe,GAGtB,EAAK,SAAS,QAAQ,UAAU,OAAS,UAAY,CACnD,KAAK,SAAS,IAGhB,EAAK,SAAS,QAAQ,UAAU,SAAW,SAAU,EAAQ,CAC3D,OAAS,GAAI,KAAK,eAAe,OAAS,EAAG,GAAK,EAAQ,IAAK,CAC7D,GAAI,GAAO,KAAK,eAAe,GAC3B,EAAW,EAAK,MAAM,WAE1B,AAAI,IAAY,MAAK,eACnB,EAAK,OAAO,MAAM,EAAK,MAAQ,KAAK,eAAe,GAInD,GAAK,MAAM,KAAO,EAElB,KAAK,eAAe,GAAY,EAAK,OAGvC,KAAK,eAAe,QAGxB;AAAA;AAAA;AAAA,GAqBA,EAAK,MAAQ,SAAU,EAAO,CAC5B,KAAK,cAAgB,EAAM,cAC3B,KAAK,aAAe,EAAM,aAC1B,KAAK,SAAW,EAAM,SACtB,KAAK,OAAS,EAAM,OACpB,KAAK,SAAW,EAAM,UA0ExB,EAAK,MAAM,UAAU,OAAS,SAAU,EAAa,CACnD,MAAO,MAAK,MAAM,SAAU,EAAO,CACjC,GAAI,GAAS,GAAI,GAAK,YAAY,EAAa,GAC/C,EAAO,WA6BX,EAAK,MAAM,UAAU,MAAQ,SAAU,EAAI,CAoBzC,OAZI,GAAQ,GAAI,GAAK,MAAM,KAAK,QAC5B,EAAiB,OAAO,OAAO,MAC/B,EAAe,OAAO,OAAO,MAC7B,EAAiB,OAAO,OAAO,MAC/B,EAAkB,OAAO,OAAO,MAChC,EAAoB,OAAO,OAAO,MAO7B,EAAI,EAAG,EAAI,KAAK,OAAO,OAAQ,IACtC,EAAa,KAAK,OAAO,IAAM,GAAI,GAAK,OAG1C,EAAG,KAAK,EAAO,GAEf,OAAS,GAAI,EAAG,EAAI,EAAM,QAAQ,OAAQ,IAAK,CAS7C,GAAI,GAAS,EAAM,QAAQ,GACvB,EAAQ,KACR,EAAgB,EAAK,IAAI,MAE7B,AAAI,EAAO,YACT,EAAQ,KAAK,SAAS,UAAU,EAAO,KAAM,CAC3C,OAAQ,EAAO,SAGjB,EAAQ,CAAC,EAAO,MAGlB,OAAS,GAAI,EAAG,EAAI,EAAM,OAAQ,IAAK,CACrC,GAAI,GAAO,EAAM,GAQjB,EAAO,KAAO,EAOd,GAAI,GAAe,EAAK,SAAS,WAAW,GACxC,EAAgB,KAAK,SAAS,UAAU,GAAc,UAQ1D,GAAI,EAAc,SAAW,GAAK,EAAO,WAAa,EAAK,MAAM,SAAS,SAAU,CAClF,OAAS,GAAI,EAAG,EAAI,EAAO,OAAO,OAAQ,IAAK,CAC7C,GAAI,GAAQ,EAAO,OAAO,GAC1B,EAAgB,GAAS,EAAK,IAAI,MAGpC,MAGF,OAAS,GAAI,EAAG,EAAI,EAAc,OAAQ,IASxC,OAJI,GAAe,EAAc,GAC7B,EAAU,KAAK,cAAc,GAC7B,EAAY,EAAQ,OAEf,EAAI,EAAG,EAAI,EAAO,OAAO,OAAQ,IAAK,CAS7C,GAAI,GAAQ,EAAO,OAAO,GACtB,EAAe,EAAQ,GACvB,EAAuB,OAAO,KAAK,GACnC,EAAY,EAAe,IAAM,EACjC,EAAuB,GAAI,GAAK,IAAI,GAoBxC,GAbI,EAAO,UAAY,EAAK,MAAM,SAAS,UACzC,GAAgB,EAAc,MAAM,GAEhC,EAAgB,KAAW,QAC7B,GAAgB,GAAS,EAAK,IAAI,WASlC,EAAO,UAAY,EAAK,MAAM,SAAS,WAAY,CACrD,AAAI,EAAkB,KAAW,QAC/B,GAAkB,GAAS,EAAK,IAAI,OAGtC,EAAkB,GAAS,EAAkB,GAAO,MAAM,GAO1D,SAgBF,GANA,EAAa,GAAO,OAAO,EAAW,EAAO,MAAO,SAAU,GAAG,GAAG,CAAE,MAAO,IAAI,KAM7E,GAAe,GAInB,QAAS,GAAI,EAAG,EAAI,EAAqB,OAAQ,IAAK,CAOpD,GAAI,GAAsB,EAAqB,GAC3C,EAAmB,GAAI,GAAK,SAAU,EAAqB,GAC3D,EAAW,EAAa,GACxB,EAEJ,AAAK,GAAa,EAAe,MAAuB,OACtD,EAAe,GAAoB,GAAI,GAAK,UAAW,EAAc,EAAO,GAE5E,EAAW,IAAI,EAAc,EAAO,GAKxC,EAAe,GAAa,KAWlC,GAAI,EAAO,WAAa,EAAK,MAAM,SAAS,SAC1C,OAAS,GAAI,EAAG,EAAI,EAAO,OAAO,OAAQ,IAAK,CAC7C,GAAI,GAAQ,EAAO,OAAO,GAC1B,EAAgB,GAAS,EAAgB,GAAO,UAAU,IAahE,OAHI,GAAqB,EAAK,IAAI,SAC9B,EAAuB,EAAK,IAAI,MAE3B,EAAI,EAAG,EAAI,KAAK,OAAO,OAAQ,IAAK,CAC3C,GAAI,GAAQ,KAAK,OAAO,GAExB,AAAI,EAAgB,IAClB,GAAqB,EAAmB,UAAU,EAAgB,KAGhE,EAAkB,IACpB,GAAuB,EAAqB,MAAM,EAAkB,KAIxE,GAAI,GAAoB,OAAO,KAAK,GAChC,EAAU,GACV,EAAU,OAAO,OAAO,MAY5B,GAAI,EAAM,YAAa,CACrB,EAAoB,OAAO,KAAK,KAAK,cAErC,OAAS,GAAI,EAAG,EAAI,EAAkB,OAAQ,IAAK,CACjD,GAAI,GAAmB,EAAkB,GACrC,EAAW,EAAK,SAAS,WAAW,GACxC,EAAe,GAAoB,GAAI,GAAK,WAIhD,OAAS,GAAI,EAAG,EAAI,EAAkB,OAAQ,IAAK,CASjD,GAAI,GAAW,EAAK,SAAS,WAAW,EAAkB,IACtD,EAAS,EAAS,OAEtB,GAAI,EAAC,EAAmB,SAAS,IAI7B,GAAqB,SAAS,GAIlC,IAAI,GAAc,KAAK,aAAa,GAChC,EAAQ,EAAa,EAAS,WAAW,WAAW,GACpD,EAEJ,GAAK,GAAW,EAAQ,MAAa,OACnC,EAAS,OAAS,EAClB,EAAS,UAAU,QAAQ,EAAe,QACrC,CACL,GAAI,GAAQ,CACV,IAAK,EACL,MAAO,EACP,UAAW,EAAe,IAE5B,EAAQ,GAAU,EAClB,EAAQ,KAAK,KAOjB,MAAO,GAAQ,KAAK,SAAU,GAAG,GAAG,CAClC,MAAO,IAAE,MAAQ,GAAE,SAYvB,EAAK,MAAM,UAAU,OAAS,UAAY,CACxC,GAAI,GAAgB,OAAO,KAAK,KAAK,eAClC,OACA,IAAI,SAAU,EAAM,CACnB,MAAO,CAAC,EAAM,KAAK,cAAc,KAChC,MAED,EAAe,OAAO,KAAK,KAAK,cACjC,IAAI,SAAU,EAAK,CAClB,MAAO,CAAC,EAAK,KAAK,aAAa,GAAK,WACnC,MAEL,MAAO,CACL,QAAS,EAAK,QACd,OAAQ,KAAK,OACb,aAAc,EACd,cAAe,EACf,SAAU,KAAK,SAAS,WAU5B,EAAK,MAAM,KAAO,SAAU,EAAiB,CAC3C,GAAI,GAAQ,GACR,EAAe,GACf,EAAoB,EAAgB,aACpC,EAAgB,OAAO,OAAO,MAC9B,EAA0B,EAAgB,cAC1C,EAAkB,GAAI,GAAK,SAAS,QACpC,EAAW,EAAK,SAAS,KAAK,EAAgB,UAElD,AAAI,EAAgB,SAAW,EAAK,SAClC,EAAK,MAAM,KAAK,4EAA8E,EAAK,QAAU,sCAAwC,EAAgB,QAAU,KAGjL,OAAS,GAAI,EAAG,EAAI,EAAkB,OAAQ,IAAK,CACjD,GAAI,GAAQ,EAAkB,GAC1B,EAAM,EAAM,GACZ,EAAW,EAAM,GAErB,EAAa,GAAO,GAAI,GAAK,OAAO,GAGtC,OAAS,GAAI,EAAG,EAAI,EAAwB,OAAQ,IAAK,CACvD,GAAI,GAAQ,EAAwB,GAChC,EAAO,EAAM,GACb,EAAU,EAAM,GAEpB,EAAgB,OAAO,GACvB,EAAc,GAAQ,EAGxB,SAAgB,SAEhB,EAAM,OAAS,EAAgB,OAE/B,EAAM,aAAe,EACrB,EAAM,cAAgB,EACtB,EAAM,SAAW,EAAgB,KACjC,EAAM,SAAW,EAEV,GAAI,GAAK,MAAM,IAExB;AAAA;AAAA;AAAA,GA6BA,EAAK,QAAU,UAAY,CACzB,KAAK,KAAO,KACZ,KAAK,QAAU,OAAO,OAAO,MAC7B,KAAK,WAAa,OAAO,OAAO,MAChC,KAAK,cAAgB,OAAO,OAAO,MACnC,KAAK,qBAAuB,GAC5B,KAAK,aAAe,GACpB,KAAK,UAAY,EAAK,UACtB,KAAK,SAAW,GAAI,GAAK,SACzB,KAAK,eAAiB,GAAI,GAAK,SAC/B,KAAK,cAAgB,EACrB,KAAK,GAAK,IACV,KAAK,IAAM,IACX,KAAK,UAAY,EACjB,KAAK,kBAAoB,IAe3B,EAAK,QAAQ,UAAU,IAAM,SAAU,EAAK,CAC1C,KAAK,KAAO,GAmCd,EAAK,QAAQ,UAAU,MAAQ,SAAU,EAAW,EAAY,CAC9D,GAAI,KAAK,KAAK,GACZ,KAAM,IAAI,YAAY,UAAY,EAAY,oCAGhD,KAAK,QAAQ,GAAa,GAAc,IAW1C,EAAK,QAAQ,UAAU,EAAI,SAAU,EAAQ,CAC3C,AAAI,EAAS,EACX,KAAK,GAAK,EACL,AAAI,EAAS,EAClB,KAAK,GAAK,EAEV,KAAK,GAAK,GAWd,EAAK,QAAQ,UAAU,GAAK,SAAU,EAAQ,CAC5C,KAAK,IAAM,GAoBb,EAAK,QAAQ,UAAU,IAAM,SAAU,EAAK,EAAY,CACtD,GAAI,GAAS,EAAI,KAAK,MAClB,EAAS,OAAO,KAAK,KAAK,SAE9B,KAAK,WAAW,GAAU,GAAc,GACxC,KAAK,eAAiB,EAEtB,OAAS,GAAI,EAAG,EAAI,EAAO,OAAQ,IAAK,CACtC,GAAI,GAAY,EAAO,GACnB,EAAY,KAAK,QAAQ,GAAW,UACpC,EAAQ,EAAY,EAAU,GAAO,EAAI,GACzC,EAAS,KAAK,UAAU,EAAO,CAC7B,OAAQ,CAAC,KAEX,EAAQ,KAAK,SAAS,IAAI,GAC1B,EAAW,GAAI,GAAK,SAAU,EAAQ,GACtC,EAAa,OAAO,OAAO,MAE/B,KAAK,qBAAqB,GAAY,EACtC,KAAK,aAAa,GAAY,EAG9B,KAAK,aAAa,IAAa,EAAM,OAGrC,OAAS,GAAI,EAAG,EAAI,EAAM,OAAQ,IAAK,CACrC,GAAI,GAAO,EAAM,GAUjB,GARI,EAAW,IAAS,MACtB,GAAW,GAAQ,GAGrB,EAAW,IAAS,EAIhB,KAAK,cAAc,IAAS,KAAW,CACzC,GAAI,GAAU,OAAO,OAAO,MAC5B,EAAQ,OAAY,KAAK,UACzB,KAAK,WAAa,EAElB,OAAS,GAAI,EAAG,EAAI,EAAO,OAAQ,IACjC,EAAQ,EAAO,IAAM,OAAO,OAAO,MAGrC,KAAK,cAAc,GAAQ,EAI7B,AAAI,KAAK,cAAc,GAAM,GAAW,IAAW,MACjD,MAAK,cAAc,GAAM,GAAW,GAAU,OAAO,OAAO,OAK9D,OAAS,GAAI,EAAG,EAAI,KAAK,kBAAkB,OAAQ,IAAK,CACtD,GAAI,GAAc,KAAK,kBAAkB,GACrC,EAAW,EAAK,SAAS,GAE7B,AAAI,KAAK,cAAc,GAAM,GAAW,GAAQ,IAAgB,MAC9D,MAAK,cAAc,GAAM,GAAW,GAAQ,GAAe,IAG7D,KAAK,cAAc,GAAM,GAAW,GAAQ,GAAa,KAAK,OAYtE,EAAK,QAAQ,UAAU,6BAA+B,UAAY,CAOhE,OALI,GAAY,OAAO,KAAK,KAAK,cAC7B,EAAiB,EAAU,OAC3B,EAAc,GACd,EAAqB,GAEhB,EAAI,EAAG,EAAI,EAAgB,IAAK,CACvC,GAAI,GAAW,EAAK,SAAS,WAAW,EAAU,IAC9C,EAAQ,EAAS,UAErB,EAAmB,IAAW,GAAmB,GAAS,GAC1D,EAAmB,IAAU,EAE7B,EAAY,IAAW,GAAY,GAAS,GAC5C,EAAY,IAAU,KAAK,aAAa,GAK1C,OAFI,GAAS,OAAO,KAAK,KAAK,SAErB,EAAI,EAAG,EAAI,EAAO,OAAQ,IAAK,CACtC,GAAI,GAAY,EAAO,GACvB,EAAY,GAAa,EAAY,GAAa,EAAmB,GAGvE,KAAK,mBAAqB,GAQ5B,EAAK,QAAQ,UAAU,mBAAqB,UAAY,CAMtD,OALI,GAAe,GACf,EAAY,OAAO,KAAK,KAAK,sBAC7B,EAAkB,EAAU,OAC5B,EAAe,OAAO,OAAO,MAExB,EAAI,EAAG,EAAI,EAAiB,IAAK,CAaxC,OAZI,GAAW,EAAK,SAAS,WAAW,EAAU,IAC9C,EAAY,EAAS,UACrB,EAAc,KAAK,aAAa,GAChC,EAAc,GAAI,GAAK,OACvB,EAAkB,KAAK,qBAAqB,GAC5C,EAAQ,OAAO,KAAK,GACpB,EAAc,EAAM,OAGpB,EAAa,KAAK,QAAQ,GAAW,OAAS,EAC9C,EAAW,KAAK,WAAW,EAAS,QAAQ,OAAS,EAEhD,EAAI,EAAG,EAAI,EAAa,IAAK,CACpC,GAAI,GAAO,EAAM,GACb,EAAK,EAAgB,GACrB,EAAY,KAAK,cAAc,GAAM,OACrC,EAAK,EAAO,EAEhB,AAAI,EAAa,KAAU,OACzB,GAAM,EAAK,IAAI,KAAK,cAAc,GAAO,KAAK,eAC9C,EAAa,GAAQ,GAErB,EAAM,EAAa,GAGrB,EAAQ,EAAQ,OAAK,IAAM,GAAK,GAAO,MAAK,IAAO,GAAI,KAAK,GAAK,KAAK,GAAM,GAAc,KAAK,mBAAmB,KAAe,GACjI,GAAS,EACT,GAAS,EACT,EAAqB,KAAK,MAAM,EAAQ,KAAQ,IAQhD,EAAY,OAAO,EAAW,GAGhC,EAAa,GAAY,EAG3B,KAAK,aAAe,GAQtB,EAAK,QAAQ,UAAU,eAAiB,UAAY,CAClD,KAAK,SAAW,EAAK,SAAS,UAC5B,OAAO,KAAK,KAAK,eAAe,SAYpC,EAAK,QAAQ,UAAU,MAAQ,UAAY,CACzC,YAAK,+BACL,KAAK,qBACL,KAAK,iBAEE,GAAI,GAAK,MAAM,CACpB,cAAe,KAAK,cACpB,aAAc,KAAK,aACnB,SAAU,KAAK,SACf,OAAQ,OAAO,KAAK,KAAK,SACzB,SAAU,KAAK,kBAkBnB,EAAK,QAAQ,UAAU,IAAM,SAAU,EAAI,CACzC,GAAI,GAAO,MAAM,UAAU,MAAM,KAAK,UAAW,GACjD,EAAK,QAAQ,MACb,EAAG,MAAM,KAAM,IAcjB,EAAK,UAAY,SAAU,EAAM,EAAO,EAAU,CAShD,OARI,GAAiB,OAAO,OAAO,MAC/B,EAAe,OAAO,KAAK,GAAY,IAOlC,EAAI,EAAG,EAAI,EAAa,OAAQ,IAAK,CAC5C,GAAI,GAAM,EAAa,GACvB,EAAe,GAAO,EAAS,GAAK,QAGtC,KAAK,SAAW,OAAO,OAAO,MAE1B,IAAS,QACX,MAAK,SAAS,GAAQ,OAAO,OAAO,MACpC,KAAK,SAAS,GAAM,GAAS,IAajC,EAAK,UAAU,UAAU,QAAU,SAAU,EAAgB,CAG3D,OAFI,GAAQ,OAAO,KAAK,EAAe,UAE9B,EAAI,EAAG,EAAI,EAAM,OAAQ,IAAK,CACrC,GAAI,GAAO,EAAM,GACb,EAAS,OAAO,KAAK,EAAe,SAAS,IAEjD,AAAI,KAAK,SAAS,IAAS,MACzB,MAAK,SAAS,GAAQ,OAAO,OAAO,OAGtC,OAAS,GAAI,EAAG,EAAI,EAAO,OAAQ,IAAK,CACtC,GAAI,GAAQ,EAAO,GACf,EAAO,OAAO,KAAK,EAAe,SAAS,GAAM,IAErD,AAAI,KAAK,SAAS,GAAM,IAAU,MAChC,MAAK,SAAS,GAAM,GAAS,OAAO,OAAO,OAG7C,OAAS,GAAI,EAAG,EAAI,EAAK,OAAQ,IAAK,CACpC,GAAI,GAAM,EAAK,GAEf,AAAI,KAAK,SAAS,GAAM,GAAO,IAAQ,KACrC,KAAK,SAAS,GAAM,GAAO,GAAO,EAAe,SAAS,GAAM,GAAO,GAEvE,KAAK,SAAS,GAAM,GAAO,GAAO,KAAK,SAAS,GAAM,GAAO,GAAK,OAAO,EAAe,SAAS,GAAM,GAAO,QAexH,EAAK,UAAU,UAAU,IAAM,SAAU,EAAM,EAAO,EAAU,CAC9D,GAAI,CAAE,KAAQ,MAAK,UAAW,CAC5B,KAAK,SAAS,GAAQ,OAAO,OAAO,MACpC,KAAK,SAAS,GAAM,GAAS,EAC7B,OAGF,GAAI,CAAE,KAAS,MAAK,SAAS,IAAQ,CACnC,KAAK,SAAS,GAAM,GAAS,EAC7B,OAKF,OAFI,GAAe,OAAO,KAAK,GAEtB,EAAI,EAAG,EAAI,EAAa,OAAQ,IAAK,CAC5C,GAAI,GAAM,EAAa,GAEvB,AAAI,IAAO,MAAK,SAAS,GAAM,GAC7B,KAAK,SAAS,GAAM,GAAO,GAAO,KAAK,SAAS,GAAM,GAAO,GAAK,OAAO,EAAS,IAElF,KAAK,SAAS,GAAM,GAAO,GAAO,EAAS,KAejD,EAAK,MAAQ,SAAU,EAAW,CAChC,KAAK,QAAU,GACf,KAAK,UAAY,GA2BnB,EAAK,MAAM,SAAW,GAAI,QAAQ,KAClC,EAAK,MAAM,SAAS,KAAO,EAC3B,EAAK,MAAM,SAAS,QAAU,EAC9B,EAAK,MAAM,SAAS,SAAW,EAa/B,EAAK,MAAM,SAAW,CAIpB,SAAU,EAMV,SAAU,EAMV,WAAY,GA0Bd,EAAK,MAAM,UAAU,OAAS,SAAU,EAAQ,CAC9C,MAAM,UAAY,IAChB,GAAO,OAAS,KAAK,WAGjB,SAAW,IACf,GAAO,MAAQ,GAGX,eAAiB,IACrB,GAAO,YAAc,IAGjB,YAAc,IAClB,GAAO,SAAW,EAAK,MAAM,SAAS,MAGnC,EAAO,SAAW,EAAK,MAAM,SAAS,SAAa,EAAO,KAAK,OAAO,IAAM,EAAK,MAAM,UAC1F,GAAO,KAAO,IAAM,EAAO,MAGxB,EAAO,SAAW,EAAK,MAAM,SAAS,UAAc,EAAO,KAAK,MAAM,KAAO,EAAK,MAAM,UAC3F,GAAO,KAAO,GAAK,EAAO,KAAO,KAG7B,YAAc,IAClB,GAAO,SAAW,EAAK,MAAM,SAAS,UAGxC,KAAK,QAAQ,KAAK,GAEX,MAUT,EAAK,MAAM,UAAU,UAAY,UAAY,CAC3C,OAAS,GAAI,EAAG,EAAI,KAAK,QAAQ,OAAQ,IACvC,GAAI,KAAK,QAAQ,GAAG,UAAY,EAAK,MAAM,SAAS,WAClD,MAAO,GAIX,MAAO,IA6BT,EAAK,MAAM,UAAU,KAAO,SAAU,EAAM,EAAS,CACnD,GAAI,MAAM,QAAQ,GAChB,SAAK,QAAQ,SAAU,EAAG,CAAE,KAAK,KAAK,EAAG,EAAK,MAAM,MAAM,KAAa,MAChE,KAGT,GAAI,GAAS,GAAW,GACxB,SAAO,KAAO,EAAK,WAEnB,KAAK,OAAO,GAEL,MAET,EAAK,gBAAkB,SAAU,EAAS,EAAO,EAAK,CACpD,KAAK,KAAO,kBACZ,KAAK,QAAU,EACf,KAAK,MAAQ,EACb,KAAK,IAAM,GAGb,EAAK,gBAAgB,UAAY,GAAI,OACrC,EAAK,WAAa,SAAU,EAAK,CAC/B,KAAK,QAAU,GACf,KAAK,IAAM,EACX,KAAK,OAAS,EAAI,OAClB,KAAK,IAAM,EACX,KAAK,MAAQ,EACb,KAAK,oBAAsB,IAG7B,EAAK,WAAW,UAAU,IAAM,UAAY,CAG1C,OAFI,GAAQ,EAAK,WAAW,QAErB,GACL,EAAQ,EAAM,OAIlB,EAAK,WAAW,UAAU,YAAc,UAAY,CAKlD,OAJI,GAAY,GACZ,EAAa,KAAK,MAClB,EAAW,KAAK,IAEX,EAAI,EAAG,EAAI,KAAK,oBAAoB,OAAQ,IACnD,EAAW,KAAK,oBAAoB,GACpC,EAAU,KAAK,KAAK,IAAI,MAAM,EAAY,IAC1C,EAAa,EAAW,EAG1B,SAAU,KAAK,KAAK,IAAI,MAAM,EAAY,KAAK,MAC/C,KAAK,oBAAoB,OAAS,EAE3B,EAAU,KAAK,KAGxB,EAAK,WAAW,UAAU,KAAO,SAAU,EAAM,CAC/C,KAAK,QAAQ,KAAK,CAChB,KAAM,EACN,IAAK,KAAK,cACV,MAAO,KAAK,MACZ,IAAK,KAAK,MAGZ,KAAK,MAAQ,KAAK,KAGpB,EAAK,WAAW,UAAU,gBAAkB,UAAY,CACtD,KAAK,oBAAoB,KAAK,KAAK,IAAM,GACzC,KAAK,KAAO,GAGd,EAAK,WAAW,UAAU,KAAO,UAAY,CAC3C,GAAI,KAAK,KAAO,KAAK,OACnB,MAAO,GAAK,WAAW,IAGzB,GAAI,GAAO,KAAK,IAAI,OAAO,KAAK,KAChC,YAAK,KAAO,EACL,GAGT,EAAK,WAAW,UAAU,MAAQ,UAAY,CAC5C,MAAO,MAAK,IAAM,KAAK,OAGzB,EAAK,WAAW,UAAU,OAAS,UAAY,CAC7C,AAAI,KAAK,OAAS,KAAK,KACrB,MAAK,KAAO,GAGd,KAAK,MAAQ,KAAK,KAGpB,EAAK,WAAW,UAAU,OAAS,UAAY,CAC7C,KAAK,KAAO,GAGd,EAAK,WAAW,UAAU,eAAiB,UAAY,CACrD,GAAI,GAAM,EAEV,EACE,GAAO,KAAK,OACZ,EAAW,EAAK,WAAW,SACpB,EAAW,IAAM,EAAW,IAErC,AAAI,GAAQ,EAAK,WAAW,KAC1B,KAAK,UAIT,EAAK,WAAW,UAAU,KAAO,UAAY,CAC3C,MAAO,MAAK,IAAM,KAAK,QAGzB,EAAK,WAAW,IAAM,MACtB,EAAK,WAAW,MAAQ,QACxB,EAAK,WAAW,KAAO,OACvB,EAAK,WAAW,cAAgB,gBAChC,EAAK,WAAW,MAAQ,QACxB,EAAK,WAAW,SAAW,WAE3B,EAAK,WAAW,SAAW,SAAU,EAAO,CAC1C,SAAM,SACN,EAAM,KAAK,EAAK,WAAW,OAC3B,EAAM,SACC,EAAK,WAAW,SAGzB,EAAK,WAAW,QAAU,SAAU,EAAO,CAQzC,GAPI,EAAM,QAAU,GAClB,GAAM,SACN,EAAM,KAAK,EAAK,WAAW,OAG7B,EAAM,SAEF,EAAM,OACR,MAAO,GAAK,WAAW,SAI3B,EAAK,WAAW,gBAAkB,SAAU,EAAO,CACjD,SAAM,SACN,EAAM,iBACN,EAAM,KAAK,EAAK,WAAW,eACpB,EAAK,WAAW,SAGzB,EAAK,WAAW,SAAW,SAAU,EAAO,CAC1C,SAAM,SACN,EAAM,iBACN,EAAM,KAAK,EAAK,WAAW,OACpB,EAAK,WAAW,SAGzB,EAAK,WAAW,OAAS,SAAU,EAAO,CACxC,AAAI,EAAM,QAAU,GAClB,EAAM,KAAK,EAAK,WAAW,OAe/B,EAAK,WAAW,cAAgB,EAAK,UAAU,UAE/C,EAAK,WAAW,QAAU,SAAU,EAAO,CACzC,OAAa,CACX,GAAI,GAAO,EAAM,OAEjB,GAAI,GAAQ,EAAK,WAAW,IAC1B,MAAO,GAAK,WAAW,OAIzB,GAAI,EAAK,WAAW,IAAM,GAAI,CAC5B,EAAM,kBACN,SAGF,GAAI,GAAQ,IACV,MAAO,GAAK,WAAW,SAGzB,GAAI,GAAQ,IACV,SAAM,SACF,EAAM,QAAU,GAClB,EAAM,KAAK,EAAK,WAAW,MAEtB,EAAK,WAAW,gBAGzB,GAAI,GAAQ,IACV,SAAM,SACF,EAAM,QAAU,GAClB,EAAM,KAAK,EAAK,WAAW,MAEtB,EAAK,WAAW,SAczB,GARI,GAAQ,KAAO,EAAM,UAAY,GAQjC,GAAQ,KAAO,EAAM,UAAY,EACnC,SAAM,KAAK,EAAK,WAAW,UACpB,EAAK,WAAW,QAGzB,GAAI,EAAK,MAAM,EAAK,WAAW,eAC7B,MAAO,GAAK,WAAW,UAK7B,EAAK,YAAc,SAAU,EAAK,EAAO,CACvC,KAAK,MAAQ,GAAI,GAAK,WAAY,GAClC,KAAK,MAAQ,EACb,KAAK,cAAgB,GACrB,KAAK,UAAY,GAGnB,EAAK,YAAY,UAAU,MAAQ,UAAY,CAC7C,KAAK,MAAM,MACX,KAAK,QAAU,KAAK,MAAM,QAI1B,OAFI,GAAQ,EAAK,YAAY,YAEtB,GACL,EAAQ,EAAM,MAGhB,MAAO,MAAK,OAGd,EAAK,YAAY,UAAU,WAAa,UAAY,CAClD,MAAO,MAAK,QAAQ,KAAK,YAG3B,EAAK,YAAY,UAAU,cAAgB,UAAY,CACrD,GAAI,GAAS,KAAK,aAClB,YAAK,WAAa,EACX,GAGT,EAAK,YAAY,UAAU,WAAa,UAAY,CAClD,GAAI,GAAkB,KAAK,cAC3B,KAAK,MAAM,OAAO,GAClB,KAAK,cAAgB,IAGvB,EAAK,YAAY,YAAc,SAAU,EAAQ,CAC/C,GAAI,GAAS,EAAO,aAEpB,GAAI,GAAU,KAId,OAAQ,EAAO,UACR,GAAK,WAAW,SACnB,MAAO,GAAK,YAAY,kBACrB,GAAK,WAAW,MACnB,MAAO,GAAK,YAAY,eACrB,GAAK,WAAW,KACnB,MAAO,GAAK,YAAY,kBAExB,GAAI,GAAe,4CAA8C,EAAO,KAExE,KAAI,GAAO,IAAI,QAAU,GACvB,IAAgB,gBAAkB,EAAO,IAAM,KAG3C,GAAI,GAAK,gBAAiB,EAAc,EAAO,MAAO,EAAO,OAIzE,EAAK,YAAY,cAAgB,SAAU,EAAQ,CACjD,GAAI,GAAS,EAAO,gBAEpB,GAAI,GAAU,KAId,QAAQ,EAAO,SACR,IACH,EAAO,cAAc,SAAW,EAAK,MAAM,SAAS,WACpD,UACG,IACH,EAAO,cAAc,SAAW,EAAK,MAAM,SAAS,SACpD,cAEA,GAAI,GAAe,kCAAoC,EAAO,IAAM,IACpE,KAAM,IAAI,GAAK,gBAAiB,EAAc,EAAO,MAAO,EAAO,KAGvE,GAAI,GAAa,EAAO,aAExB,GAAI,GAAc,KAAW,CAC3B,GAAI,GAAe,yCACnB,KAAM,IAAI,GAAK,gBAAiB,EAAc,EAAO,MAAO,EAAO,KAGrE,OAAQ,EAAW,UACZ,GAAK,WAAW,MACnB,MAAO,GAAK,YAAY,eACrB,GAAK,WAAW,KACnB,MAAO,GAAK,YAAY,kBAExB,GAAI,GAAe,mCAAqC,EAAW,KAAO,IAC1E,KAAM,IAAI,GAAK,gBAAiB,EAAc,EAAW,MAAO,EAAW,QAIjF,EAAK,YAAY,WAAa,SAAU,EAAQ,CAC9C,GAAI,GAAS,EAAO,gBAEpB,GAAI,GAAU,KAId,IAAI,EAAO,MAAM,UAAU,QAAQ,EAAO,MAAQ,GAAI,CACpD,GAAI,GAAiB,EAAO,MAAM,UAAU,IAAI,SAAU,EAAG,CAAE,MAAO,IAAM,EAAI,MAAO,KAAK,MACxF,EAAe,uBAAyB,EAAO,IAAM,uBAAyB,EAElF,KAAM,IAAI,GAAK,gBAAiB,EAAc,EAAO,MAAO,EAAO,KAGrE,EAAO,cAAc,OAAS,CAAC,EAAO,KAEtC,GAAI,GAAa,EAAO,aAExB,GAAI,GAAc,KAAW,CAC3B,GAAI,GAAe,gCACnB,KAAM,IAAI,GAAK,gBAAiB,EAAc,EAAO,MAAO,EAAO,KAGrE,OAAQ,EAAW,UACZ,GAAK,WAAW,KACnB,MAAO,GAAK,YAAY,kBAExB,GAAI,GAAe,0BAA4B,EAAW,KAAO,IACjE,KAAM,IAAI,GAAK,gBAAiB,EAAc,EAAW,MAAO,EAAW,QAIjF,EAAK,YAAY,UAAY,SAAU,EAAQ,CAC7C,GAAI,GAAS,EAAO,gBAEpB,GAAI,GAAU,KAId,GAAO,cAAc,KAAO,EAAO,IAAI,cAEnC,EAAO,IAAI,QAAQ,MAAQ,IAC7B,GAAO,cAAc,YAAc,IAGrC,GAAI,GAAa,EAAO,aAExB,GAAI,GAAc,KAAW,CAC3B,EAAO,aACP,OAGF,OAAQ,EAAW,UACZ,GAAK,WAAW,KACnB,SAAO,aACA,EAAK,YAAY,cACrB,GAAK,WAAW,MACnB,SAAO,aACA,EAAK,YAAY,eACrB,GAAK,WAAW,cACnB,MAAO,GAAK,YAAY,sBACrB,GAAK,WAAW,MACnB,MAAO,GAAK,YAAY,eACrB,GAAK,WAAW,SACnB,SAAO,aACA,EAAK,YAAY,sBAExB,GAAI,GAAe,2BAA6B,EAAW,KAAO,IAClE,KAAM,IAAI,GAAK,gBAAiB,EAAc,EAAW,MAAO,EAAW,QAIjF,EAAK,YAAY,kBAAoB,SAAU,EAAQ,CACrD,GAAI,GAAS,EAAO,gBAEpB,GAAI,GAAU,KAId,IAAI,GAAe,SAAS,EAAO,IAAK,IAExC,GAAI,MAAM,GAAe,CACvB,GAAI,GAAe,gCACnB,KAAM,IAAI,GAAK,gBAAiB,EAAc,EAAO,MAAO,EAAO,KAGrE,EAAO,cAAc,aAAe,EAEpC,GAAI,GAAa,EAAO,aAExB,GAAI,GAAc,KAAW,CAC3B,EAAO,aACP,OAGF,OAAQ,EAAW,UACZ,GAAK,WAAW,KACnB,SAAO,aACA,EAAK,YAAY,cACrB,GAAK,WAAW,MACnB,SAAO,aACA,EAAK,YAAY,eACrB,GAAK,WAAW,cACnB,MAAO,GAAK,YAAY,sBACrB,GAAK,WAAW,MACnB,MAAO,GAAK,YAAY,eACrB,GAAK,WAAW,SACnB,SAAO,aACA,EAAK,YAAY,sBAExB,GAAI,GAAe,2BAA6B,EAAW,KAAO,IAClE,KAAM,IAAI,GAAK,gBAAiB,EAAc,EAAW,MAAO,EAAW,QAIjF,EAAK,YAAY,WAAa,SAAU,EAAQ,CAC9C,GAAI,GAAS,EAAO,gBAEpB,GAAI,GAAU,KAId,IAAI,GAAQ,SAAS,EAAO,IAAK,IAEjC,GAAI,MAAM,GAAQ,CAChB,GAAI,GAAe,wBACnB,KAAM,IAAI,GAAK,gBAAiB,EAAc,EAAO,MAAO,EAAO,KAGrE,EAAO,cAAc,MAAQ,EAE7B,GAAI,GAAa,EAAO,aAExB,GAAI,GAAc,KAAW,CAC3B,EAAO,aACP,OAGF,OAAQ,EAAW,UACZ,GAAK,WAAW,KACnB,SAAO,aACA,EAAK,YAAY,cACrB,GAAK,WAAW,MACnB,SAAO,aACA,EAAK,YAAY,eACrB,GAAK,WAAW,cACnB,MAAO,GAAK,YAAY,sBACrB,GAAK,WAAW,MACnB,MAAO,GAAK,YAAY,eACrB,GAAK,WAAW,SACnB,SAAO,aACA,EAAK,YAAY,sBAExB,GAAI,GAAe,2BAA6B,EAAW,KAAO,IAClE,KAAM,IAAI,GAAK,gBAAiB,EAAc,EAAW,MAAO,EAAW,QAQ7E,SAAU,EAAM,EAAS,CACzB,AAAI,MAAO,SAAW,YAAc,OAAO,IAEzC,OAAO,GACF,AAAI,MAAO,IAAY,SAM5B,EAAO,QAAU,IAGjB,EAAK,KAAO,KAEd,KAAM,UAAY,CAMlB,MAAO,WCh5GX;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,GAQA,aAOA,GAAI,IAAkB,UAOtB,EAAO,QAAU,GAUjB,YAAoB,EAAQ,CAC1B,GAAI,GAAM,GAAK,EACX,EAAQ,GAAgB,KAAK,GAEjC,GAAI,CAAC,EACH,MAAO,GAGT,GAAI,GACA,EAAO,GACP,EAAQ,EACR,EAAY,EAEhB,IAAK,EAAQ,EAAM,MAAO,EAAQ,EAAI,OAAQ,IAAS,CACrD,OAAQ,EAAI,WAAW,QAChB,IACH,EAAS,SACT,UACG,IACH,EAAS,QACT,UACG,IACH,EAAS,QACT,UACG,IACH,EAAS,OACT,UACG,IACH,EAAS,OACT,cAEA,SAGJ,AAAI,IAAc,GAChB,IAAQ,EAAI,UAAU,EAAW,IAGnC,EAAY,EAAQ,EACpB,GAAQ,EAGV,MAAO,KAAc,EACjB,EAAO,EAAI,UAAU,EAAW,GAChC,KCtDN,OAAiB,OCAjB,OAAuB,OAiChB,YACL,EACmB,CACnB,GAAM,GAAY,GAAI,KAChB,EAAY,GAAI,KACtB,OAAW,KAAO,GAAM,CACtB,GAAM,CAAC,EAAM,GAAQ,EAAI,SAAS,MAAM,KAGlC,EAAW,EAAI,SACf,EAAW,EAAI,MAGf,EAAO,eAAW,EAAI,MACzB,QAAQ,mBAAoB,IAC5B,QAAQ,OAAQ,KAGnB,GAAI,EAAM,CACR,GAAM,GAAS,EAAU,IAAI,GAG7B,AAAK,EAAQ,IAAI,GASf,EAAU,IAAI,EAAU,CACtB,WACA,QACA,OACA,WAZF,GAAO,MAAQ,EAAI,MACnB,EAAO,KAAQ,EAGf,EAAQ,IAAI,QAcd,GAAU,IAAI,EAAU,CACtB,WACA,QACA,SAIN,MAAO,GC9CF,YACL,EAC0B,CAC1B,GAAM,GAAY,GAAI,QAAO,EAAO,UAAW,OACzC,EAAY,CAAC,EAAY,EAAc,IACpC,GAAG,4BAA+B,WAI3C,MAAO,AAAC,IAAkB,CACxB,EAAQ,EACL,QAAQ,gBAAiB,KACzB,OAGH,GAAM,GAAQ,GAAI,QAAO,MAAM,EAAO,cACpC,EACG,QAAQ,uBAAwB,QAChC,QAAQ,EAAW,QACnB,OAGL,MAAO,IAAS,EACb,QAAQ,EAAO,GACf,QAAQ,8BAA+B,OC7BvC,YACL,EACqB,CACrB,GAAM,GAAS,GAAK,MAAa,MAAM,CAAC,QAAS,SAIjD,MAHe,IAAK,MAAa,YAAY,EAAO,GAG7C,QACA,EAAM,QAWR,YACL,EAA4B,EACV,CAClB,GAAM,GAAU,GAAI,KAAuB,GAGrC,EAA2B,GACjC,OAAS,GAAI,EAAG,EAAI,EAAM,OAAQ,IAChC,OAAW,KAAU,GACnB,AAAI,EAAM,GAAG,WAAW,EAAO,OAC7B,GAAO,EAAO,MAAQ,GACtB,EAAQ,OAAO,IAIrB,OAAW,KAAU,GACnB,EAAO,EAAO,MAAQ,GAGxB,MAAO,GC2BT,YAAoB,EAAa,EAAuB,CACtD,GAAM,CAAC,EAAG,GAAK,CAAC,GAAI,KAAI,GAAI,GAAI,KAAI,IACpC,MAAO,CACL,GAAG,GAAI,KAAI,CAAC,GAAG,GAAG,OAAO,GAAS,CAAC,EAAE,IAAI,MAWtC,WAAa,CA2BX,YAAY,CAAE,SAAQ,OAAM,WAAU,SAAsB,CACjE,KAAK,UAAY,GAAuB,GACxC,KAAK,UAAY,GAAuB,GAGxC,KAAK,UAAU,UAAY,GAAI,QAAO,EAAO,WAG7C,AAAI,MAAO,IAAU,YACnB,KAAK,MAAQ,KAAK,UAAY,CAG5B,AAAI,EAAO,KAAK,SAAW,GAAK,EAAO,KAAK,KAAO,KACjD,KAAK,IAAK,KAAa,EAAO,KAAK,KAC1B,EAAO,KAAK,OAAS,GAC9B,KAAK,IAAK,KAAa,cAAc,GAAG,EAAO,OAIjD,GAAM,GAAM,GAAW,CACrB,UAAW,iBAAkB,WAC5B,GAGH,OAAW,KAAQ,GAAO,KAAK,IAAI,GACjC,IAAa,KAAO,KAAQ,KAAa,IAEzC,OAAW,KAAM,GACf,KAAK,SAAS,OAAO,EAAK,IAC1B,KAAK,eAAe,OAAO,EAAK,IAKpC,KAAK,MAAM,QAAS,CAAE,MAAO,MAC7B,KAAK,MAAM,QACX,KAAK,IAAI,YAGT,OAAW,KAAO,GAChB,KAAK,IAAI,KAKb,KAAK,MAAQ,KAAK,MAAM,KAAK,GAoB1B,OAAO,EAA+B,CAC3C,GAAI,EACF,GAAI,CACF,GAAM,GAAY,KAAK,UAAU,GAG3B,EAAU,GAAiB,GAC9B,OAAO,GACN,EAAO,WAAa,KAAK,MAAM,SAAS,YA+C5C,MAAO,CAAC,GAAG,AA3CI,KAAK,MAAM,OAAO,GAAG,MAGjC,OAAqB,CAAC,EAAS,CAAE,MAAK,QAAO,eAAgB,CAC5D,GAAM,GAAW,KAAK,UAAU,IAAI,GACpC,GAAI,MAAO,IAAa,YAAa,CACnC,GAAM,CAAE,WAAU,QAAO,OAAM,UAAW,EAGpC,EAAQ,GACZ,EACA,OAAO,KAAK,EAAU,WAIlB,EAAQ,CAAC,CAAC,EAAS,EAAC,OAAO,OAAO,GAAO,MAAM,GAAK,GAC1D,EAAQ,KAAK,CACX,WACA,MAAO,EAAU,GACjB,KAAM,EAAU,GAChB,MAAO,EAAS,GAAI,GACpB,UAGJ,MAAO,IACN,IAGF,KAAK,CAAC,EAAG,IAAM,EAAE,MAAQ,EAAE,OAG3B,OAAO,CAAC,EAAS,IAAW,CAC3B,GAAM,GAAW,KAAK,UAAU,IAAI,EAAO,UAC3C,GAAI,MAAO,IAAa,YAAa,CACnC,GAAM,GAAM,UAAY,GACpB,EAAS,OAAQ,SACjB,EAAS,SACb,EAAQ,IAAI,EAAK,CAAC,GAAG,EAAQ,IAAI,IAAQ,GAAI,IAE/C,MAAO,IACN,GAAI,MAGS,gBAGZ,EAAN,CACA,QAAQ,KAAK,kBAAkB,uCAKnC,MAAO,KChQJ,GAAW,GAAX,UAAW,EAAX,CACL,qBACA,qBACA,qBACA,yBAJgB,WLwBlB,GAAI,GAqBJ,YACE,EACe,gCACf,GAAI,GAAO,UAGX,GAAI,MAAO,SAAW,aAAe,gBAAkB,QAAQ,CAC7D,GAAM,GAAS,SAAS,cAAiC,eACnD,CAAC,GAAQ,EAAO,IAAI,MAAM,WAGhC,EAAO,EAAK,QAAQ,KAAM,GAI5B,GAAM,GAAU,GAChB,OAAW,KAAQ,GAAO,KAAM,CAC9B,OAAQ,OAGD,KACH,EAAQ,KAAK,GAAG,gBAChB,UAGG,SACA,KACH,EAAQ,KAAK,GAAG,gBAChB,MAIJ,AAAI,IAAS,MACX,EAAQ,KAAK,GAAG,cAAiB,YAIrC,AAAI,EAAO,KAAK,OAAS,GACvB,EAAQ,KAAK,GAAG,2BAGd,EAAQ,QACV,MAAM,eACJ,GAAG,oCACH,GAAG,MAeT,YACE,EACwB,gCACxB,OAAQ,EAAQ,UAGT,GAAkB,MACrB,YAAM,IAAqB,EAAQ,KAAK,QACxC,EAAQ,GAAI,GAAO,EAAQ,MACpB,CACL,KAAM,EAAkB,WAIvB,GAAkB,MACrB,MAAO,CACL,KAAM,EAAkB,OACxB,KAAM,EAAQ,EAAM,OAAO,EAAQ,MAAQ,YAK7C,KAAM,IAAI,WAAU,2BAS1B,KAAK,KAAO,WAGZ,iBAAiB,UAAW,AAAM,GAAM,0BACtC,YAAY,KAAM,IAAQ,EAAG",
+ "names": []
+}
diff --git a/freetype/docs/reference/assets/stylesheets/main.ca7ac06f.min.css b/freetype/docs/reference/assets/stylesheets/main.ca7ac06f.min.css
new file mode 100644
index 00000000..8d2ce39a
--- /dev/null
+++ b/freetype/docs/reference/assets/stylesheets/main.ca7ac06f.min.css
@@ -0,0 +1,2 @@
+@charset "UTF-8";html{-webkit-text-size-adjust:none;-moz-text-size-adjust:none;-ms-text-size-adjust:none;text-size-adjust:none;box-sizing:border-box}*,:after,:before{box-sizing:inherit}body{margin:0}a,button,input,label{-webkit-tap-highlight-color:transparent}a{color:inherit;text-decoration:none}hr{border:0;box-sizing:content-box;display:block;height:.05rem;overflow:visible;padding:0}small{font-size:80%}sub,sup{line-height:1em}img{border-style:none}table{border-collapse:separate;border-spacing:0}td,th{font-weight:400;vertical-align:top}button{background:transparent;border:0;font-family:inherit;font-size:inherit;margin:0;padding:0}input{border:0;outline:none}:root{--md-default-fg-color:rgba(0,0,0,0.87);--md-default-fg-color--light:rgba(0,0,0,0.54);--md-default-fg-color--lighter:rgba(0,0,0,0.32);--md-default-fg-color--lightest:rgba(0,0,0,0.07);--md-default-bg-color:#fff;--md-default-bg-color--light:hsla(0,0%,100%,0.7);--md-default-bg-color--lighter:hsla(0,0%,100%,0.3);--md-default-bg-color--lightest:hsla(0,0%,100%,0.12);--md-primary-fg-color:#4051b5;--md-primary-fg-color--light:#5d6cc0;--md-primary-fg-color--dark:#303fa1;--md-primary-bg-color:#fff;--md-primary-bg-color--light:hsla(0,0%,100%,0.7);--md-accent-fg-color:#526cfe;--md-accent-fg-color--transparent:rgba(82,108,254,0.1);--md-accent-bg-color:#fff;--md-accent-bg-color--light:hsla(0,0%,100%,0.7)}:root>*{--md-code-fg-color:#36464e;--md-code-bg-color:#f5f5f5;--md-code-hl-color:rgba(255,255,0,0.5);--md-code-hl-number-color:#d52a2a;--md-code-hl-special-color:#db1457;--md-code-hl-function-color:#a846b9;--md-code-hl-constant-color:#6e59d9;--md-code-hl-keyword-color:#3f6ec6;--md-code-hl-string-color:#1c7d4d;--md-code-hl-name-color:var(--md-code-fg-color);--md-code-hl-operator-color:var(--md-default-fg-color--light);--md-code-hl-punctuation-color:var(--md-default-fg-color--light);--md-code-hl-comment-color:var(--md-default-fg-color--light);--md-code-hl-generic-color:var(--md-default-fg-color--light);--md-code-hl-variable-color:var(--md-default-fg-color--light);--md-typeset-color:var(--md-default-fg-color);--md-typeset-a-color:var(--md-primary-fg-color);--md-typeset-mark-color:rgba(255,255,0,0.5);--md-typeset-del-color:hsla(6,90%,60%,0.15);--md-typeset-ins-color:rgba(11,213,112,0.15);--md-typeset-kbd-color:#fafafa;--md-typeset-kbd-accent-color:#fff;--md-typeset-kbd-border-color:#b8b8b8;--md-admonition-fg-color:var(--md-default-fg-color);--md-admonition-bg-color:var(--md-default-bg-color);--md-footer-fg-color:#fff;--md-footer-fg-color--light:hsla(0,0%,100%,0.7);--md-footer-fg-color--lighter:hsla(0,0%,100%,0.3);--md-footer-bg-color:rgba(0,0,0,0.87);--md-footer-bg-color--dark:rgba(0,0,0,0.32)}.md-icon svg{fill:currentColor;display:block;height:1.2rem;width:1.2rem}body{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}body,input{font-feature-settings:"kern","liga";font-family:var(--md-text-font-family,_),-apple-system,BlinkMacSystemFont,Helvetica,Arial,sans-serif}body,code,input,kbd,pre{color:var(--md-typeset-color)}code,kbd,pre{font-feature-settings:"kern";font-family:var(--md-code-font-family,_),SFMono-Regular,Consolas,Menlo,monospace}:root{--md-typeset-table--ascending:url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M11 4h2v12l5.5-5.5 1.42 1.42L12 19.84l-7.92-7.92L5.5 10.5 11 16V4z"/></svg>');--md-typeset-table--descending:url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M13 20h-2V8l-5.5 5.5-1.42-1.42L12 4.16l7.92 7.92-1.42 1.42L13 8v12z"/></svg>')}.md-typeset{-webkit-print-color-adjust:exact;color-adjust:exact;font-size:.8rem;line-height:1.6}@media print{.md-typeset{font-size:.68rem}}.md-typeset blockquote,.md-typeset dl,.md-typeset figure,.md-typeset ol,.md-typeset pre,.md-typeset ul{margin:1em 0}.md-typeset h1{color:var(--md-default-fg-color--light);font-size:2em;line-height:1.3;margin:0 0 1.25em}.md-typeset h1,.md-typeset h2{font-weight:300;letter-spacing:-.01em}.md-typeset h2{font-size:1.5625em;line-height:1.4;margin:1.6em 0 .64em}.md-typeset h3{font-size:1.25em;font-weight:400;letter-spacing:-.01em;line-height:1.5;margin:1.6em 0 .8em}.md-typeset h2+h3{margin-top:.8em}.md-typeset h4{font-weight:700;letter-spacing:-.01em;margin:1em 0}.md-typeset h5,.md-typeset h6{color:var(--md-default-fg-color--light);font-size:.8em;font-weight:700;letter-spacing:-.01em;margin:1.25em 0}.md-typeset h5{text-transform:uppercase}.md-typeset hr{border-bottom:.05rem solid var(--md-default-fg-color--lightest);display:flow-root;margin:1.5em 0}.md-typeset a{color:var(--md-typeset-a-color);word-break:break-word}.md-typeset a,.md-typeset a:before{transition:color 125ms}.md-typeset a:focus,.md-typeset a:hover{color:var(--md-accent-fg-color)}.md-typeset a.focus-visible{outline-color:var(--md-accent-fg-color);outline-offset:.2rem}.md-typeset code,.md-typeset kbd,.md-typeset pre{color:var(--md-code-fg-color);direction:ltr}@media print{.md-typeset code,.md-typeset kbd,.md-typeset pre{white-space:pre-wrap}}.md-typeset code{background-color:var(--md-code-bg-color);border-radius:.1rem;-webkit-box-decoration-break:clone;box-decoration-break:clone;font-size:.85em;padding:0 .2941176471em;word-break:break-word}.md-typeset code:not(.focus-visible){-webkit-tap-highlight-color:transparent;outline:none}.md-typeset h1 code,.md-typeset h2 code,.md-typeset h3 code,.md-typeset h4 code,.md-typeset h5 code,.md-typeset h6 code{background-color:transparent;box-shadow:none;margin:initial;padding:initial}.md-typeset a code{color:currentColor}.md-typeset pre{display:flow-root;line-height:1.4;position:relative}.md-typeset pre>code{-webkit-box-decoration-break:slice;box-decoration-break:slice;box-shadow:none;display:block;margin:0;overflow:auto;padding:.7720588235em 1.1764705882em;scrollbar-color:var(--md-default-fg-color--lighter) transparent;scrollbar-width:thin;touch-action:auto;word-break:normal}.md-typeset pre>code:hover{scrollbar-color:var(--md-accent-fg-color) transparent}.md-typeset pre>code::-webkit-scrollbar{height:.2rem;width:.2rem}.md-typeset pre>code::-webkit-scrollbar-thumb{background-color:var(--md-default-fg-color--lighter)}.md-typeset pre>code::-webkit-scrollbar-thumb:hover{background-color:var(--md-accent-fg-color)}@media screen and (max-width:44.9375em){.md-typeset>pre{margin:1em -.8rem}.md-typeset>pre code{border-radius:0}}.md-typeset kbd{background-color:var(--md-typeset-kbd-color);border-radius:.1rem;box-shadow:0 .1rem 0 .05rem var(--md-typeset-kbd-border-color),0 .1rem 0 var(--md-typeset-kbd-border-color),0 -.1rem .2rem var(--md-typeset-kbd-accent-color) inset;color:var(--md-default-fg-color);display:inline-block;font-size:.75em;padding:0 .6666666667em;vertical-align:text-top;word-break:break-word}.md-typeset mark{background-color:var(--md-typeset-mark-color);-webkit-box-decoration-break:clone;box-decoration-break:clone;color:inherit;word-break:break-word}.md-typeset abbr{border-bottom:.05rem dotted var(--md-default-fg-color--light);cursor:help;text-decoration:none}@media (hover:none){.md-typeset abbr{position:relative}.md-typeset abbr[title]:focus:after,.md-typeset abbr[title]:hover:after{background-color:var(--md-default-fg-color);border-radius:.1rem;box-shadow:0 2px 2px 0 rgba(0,0,0,.14),0 1px 5px 0 rgba(0,0,0,.12),0 3px 1px -2px rgba(0,0,0,.2);color:var(--md-default-bg-color);content:attr(title);display:inline-block;font-size:.7rem;left:0;margin-top:2em;max-width:80%;min-width:-webkit-max-content;min-width:-moz-max-content;min-width:max-content;padding:.2rem .3rem;position:absolute;width:auto}}.md-typeset small{opacity:.75}.md-typeset sub,.md-typeset sup{margin-left:.078125em}[dir=rtl] .md-typeset sub,[dir=rtl] .md-typeset sup{margin-left:0;margin-right:.078125em}.md-typeset blockquote{border-left:.2rem solid var(--md-default-fg-color--lighter);color:var(--md-default-fg-color--light);display:flow-root;padding-left:.6rem}[dir=rtl] .md-typeset blockquote{border-left:initial;border-right:.2rem solid var(--md-default-fg-color--lighter);padding-left:0;padding-right:.6rem}.md-typeset ul{list-style-type:disc}.md-typeset ol,.md-typeset ul{display:flow-root;margin-left:.625em;padding:0}[dir=rtl] .md-typeset ol,[dir=rtl] .md-typeset ul{margin-left:0;margin-right:.625em}.md-typeset ol ol,.md-typeset ul ol{list-style-type:lower-alpha}.md-typeset ol ol ol,.md-typeset ul ol ol{list-style-type:lower-roman}.md-typeset ol li,.md-typeset ul li{margin-bottom:.5em;margin-left:1.25em}[dir=rtl] .md-typeset ol li,[dir=rtl] .md-typeset ul li{margin-left:0;margin-right:1.25em}.md-typeset ol li blockquote,.md-typeset ol li p,.md-typeset ul li blockquote,.md-typeset ul li p{margin:.5em 0}.md-typeset ol li:last-child,.md-typeset ul li:last-child{margin-bottom:0}.md-typeset ol li ol,.md-typeset ol li ul,.md-typeset ul li ol,.md-typeset ul li ul{margin:.5em 0 .5em .625em}[dir=rtl] .md-typeset ol li ol,[dir=rtl] .md-typeset ol li ul,[dir=rtl] .md-typeset ul li ol,[dir=rtl] .md-typeset ul li ul{margin-left:0;margin-right:.625em}.md-typeset dd{margin:1em 0 1.5em 1.875em}[dir=rtl] .md-typeset dd{margin-left:0;margin-right:1.875em}.md-typeset img,.md-typeset svg{height:auto;max-width:100%}.md-typeset img[align=left],.md-typeset svg[align=left]{margin:1em 1em 1em 0}.md-typeset img[align=right],.md-typeset svg[align=right]{margin:1em 0 1em 1em}.md-typeset img[align]:only-child,.md-typeset svg[align]:only-child{margin-top:0}.md-typeset figure{display:flow-root;margin:0 auto;max-width:100%;text-align:center;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content}.md-typeset figure img{display:block}.md-typeset figcaption{font-style:italic;margin:1em auto 2em;max-width:24rem}.md-typeset iframe{max-width:100%}.md-typeset table:not([class]){background-color:var(--md-default-bg-color);border-radius:.1rem;box-shadow:0 .2rem .5rem rgba(0,0,0,.05),0 0 .05rem rgba(0,0,0,.1);display:inline-block;font-size:.64rem;max-width:100%;overflow:auto;touch-action:auto}@media print{.md-typeset table:not([class]){display:table}}.md-typeset table:not([class])+*{margin-top:1.5em}.md-typeset table:not([class]) td>:first-child,.md-typeset table:not([class]) th>:first-child{margin-top:0}.md-typeset table:not([class]) td>:last-child,.md-typeset table:not([class]) th>:last-child{margin-bottom:0}.md-typeset table:not([class]) td:not([align]),.md-typeset table:not([class]) th:not([align]){text-align:left}[dir=rtl] .md-typeset table:not([class]) td:not([align]),[dir=rtl] .md-typeset table:not([class]) th:not([align]){text-align:right}.md-typeset table:not([class]) th{background-color:var(--md-default-fg-color--light);color:var(--md-default-bg-color);min-width:5rem;padding:.9375em 1.25em;vertical-align:top}.md-typeset table:not([class]) th a{color:inherit}.md-typeset table:not([class]) td{border-top:.05rem solid var(--md-default-fg-color--lightest);padding:.9375em 1.25em;vertical-align:top}.md-typeset table:not([class]) tr{transition:background-color 125ms}.md-typeset table:not([class]) tr:hover{background-color:rgba(0,0,0,.035);box-shadow:0 .05rem 0 var(--md-default-bg-color) inset}.md-typeset table:not([class]) tr:first-child td{border-top:0}.md-typeset table:not([class]) a{word-break:normal}.md-typeset table th[role=columnheader]{cursor:pointer}.md-typeset table th[role=columnheader]:after{content:"";display:inline-block;height:1.2em;margin-left:.5em;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:contain;mask-size:contain;vertical-align:sub;width:1.2em}.md-typeset table th[role=columnheader][aria-sort=ascending]:after{background-color:currentColor;-webkit-mask-image:var(--md-typeset-table--ascending);mask-image:var(--md-typeset-table--ascending)}.md-typeset table th[role=columnheader][aria-sort=descending]:after{background-color:currentColor;-webkit-mask-image:var(--md-typeset-table--descending);mask-image:var(--md-typeset-table--descending)}.md-typeset__scrollwrap{margin:1em -.8rem;overflow-x:auto;touch-action:auto}.md-typeset__table{display:inline-block;margin-bottom:.5em;padding:0 .8rem}@media print{.md-typeset__table{display:block}}html .md-typeset__table table{display:table;margin:0;overflow:hidden;width:100%}html{font-size:125%;height:100%;overflow-x:hidden}@media screen and (min-width:100em){html{font-size:137.5%}}@media screen and (min-width:125em){html{font-size:150%}}body{background-color:var(--md-default-bg-color);display:flex;flex-direction:column;font-size:.5rem;min-height:100%;position:relative;width:100%}@media print{body{display:block}}@media screen and (max-width:59.9375em){body[data-md-state=lock]{position:fixed}}.md-grid{margin-left:auto;margin-right:auto;max-width:61rem}.md-container{display:flex;flex-direction:column;flex-grow:1}@media print{.md-container{display:block}}.md-main{flex-grow:1}.md-main__inner{display:flex;height:100%;margin-top:1.5rem}.md-ellipsis{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.md-toggle{display:none}.md-option{height:0;opacity:0;position:absolute;width:0}.md-option:checked+label:not([hidden]){display:block}.md-option.focus-visible+label{outline-color:var(--md-accent-fg-color);outline-style:auto}.md-skip{background-color:var(--md-default-fg-color);border-radius:.1rem;color:var(--md-default-bg-color);font-size:.64rem;margin:.5rem;opacity:0;outline-color:var(--md-accent-fg-color);padding:.3rem .5rem;position:fixed;transform:translateY(.4rem);z-index:-1}.md-skip:focus{opacity:1;transform:translateY(0);transition:transform .25s cubic-bezier(.4,0,.2,1),opacity 175ms 75ms;z-index:10}@page{margin:25mm}.md-announce{background-color:var(--md-footer-bg-color);overflow:auto}@media print{.md-announce{display:none}}.md-announce__inner{color:var(--md-footer-fg-color);font-size:.7rem;margin:.6rem auto;padding:0 .8rem}:root{--md-clipboard-icon:url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M19 21H8V7h11m0-2H8a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h11a2 2 0 0 0 2-2V7a2 2 0 0 0-2-2m-3-4H4a2 2 0 0 0-2 2v14h2V3h12V1z"/></svg>')}.md-clipboard{border-radius:.1rem;color:var(--md-default-fg-color--lightest);cursor:pointer;height:1.5em;outline-color:var(--md-accent-fg-color);outline-offset:.1rem;position:absolute;right:.5em;top:.5em;transition:color .25s;width:1.5em;z-index:1}@media print{.md-clipboard{display:none}}.md-clipboard:not(.focus-visible){-webkit-tap-highlight-color:transparent;outline:none}:hover>.md-clipboard{color:var(--md-default-fg-color--light)}.md-clipboard:focus,.md-clipboard:hover{color:var(--md-accent-fg-color)}.md-clipboard:after{background-color:currentColor;content:"";display:block;height:1.125em;margin:0 auto;-webkit-mask-image:var(--md-clipboard-icon);mask-image:var(--md-clipboard-icon);-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:contain;mask-size:contain;width:1.125em}.md-clipboard--inline{cursor:pointer}.md-clipboard--inline code{transition:color .25s,background-color .25s}.md-clipboard--inline:focus code,.md-clipboard--inline:hover code{background-color:var(--md-accent-fg-color--transparent);color:var(--md-accent-fg-color)}.md-content{flex-grow:1;overflow:hidden;scroll-padding-top:51.2rem}.md-content__inner{margin:0 .8rem 1.2rem;padding-top:.6rem}@media screen and (min-width:76.25em){.md-sidebar--primary:not([hidden])~.md-content>.md-content__inner{margin-left:1.2rem}[dir=rtl] .md-sidebar--primary:not([hidden])~.md-content>.md-content__inner{margin-left:.8rem;margin-right:1.2rem}.md-sidebar--secondary:not([hidden])~.md-content>.md-content__inner{margin-right:1.2rem}[dir=rtl] .md-sidebar--secondary:not([hidden])~.md-content>.md-content__inner{margin-left:1.2rem;margin-right:.8rem}}.md-content__inner:before{content:"";display:block;height:.4rem}.md-content__inner>:last-child{margin-bottom:0}.md-content__button{float:right;margin:.4rem 0 .4rem .4rem;padding:0}@media print{.md-content__button{display:none}}[dir=rtl] .md-content__button{float:left;margin-left:0;margin-right:.4rem}[dir=rtl] .md-content__button svg{transform:scaleX(-1)}.md-typeset .md-content__button{color:var(--md-default-fg-color--lighter)}.md-content__button svg{display:inline;vertical-align:top}.md-dialog{background-color:var(--md-default-fg-color);border-radius:.1rem;bottom:.8rem;box-shadow:0 2px 2px 0 rgba(0,0,0,.14),0 1px 5px 0 rgba(0,0,0,.12),0 3px 1px -2px rgba(0,0,0,.2);left:auto;min-width:11.1rem;opacity:0;padding:.4rem .6rem;pointer-events:none;position:fixed;right:.8rem;transform:translateY(100%);transition:transform 0ms .4s,opacity .4s;z-index:2}@media print{.md-dialog{display:none}}[dir=rtl] .md-dialog{left:.8rem;right:auto}.md-dialog[data-md-state=open]{opacity:1;pointer-events:auto;transform:translateY(0);transition:transform .4s cubic-bezier(.075,.85,.175,1),opacity .4s}.md-dialog__inner{color:var(--md-default-bg-color);font-size:.7rem}.md-typeset .md-button{border:.1rem solid;border-radius:.1rem;color:var(--md-primary-fg-color);display:inline-block;font-weight:700;padding:.625em 2em;transition:color 125ms,background-color 125ms,border-color 125ms}.md-typeset .md-button--primary{background-color:var(--md-primary-fg-color);border-color:var(--md-primary-fg-color);color:var(--md-primary-bg-color)}.md-typeset .md-button:focus,.md-typeset .md-button:hover{background-color:var(--md-accent-fg-color);border-color:var(--md-accent-fg-color);color:var(--md-accent-bg-color)}.md-typeset .md-input{border-radius:.1rem;box-shadow:0 .2rem .5rem rgba(0,0,0,.1),0 .025rem .05rem rgba(0,0,0,.1);font-size:.8rem;height:1.8rem;padding:0 .6rem;transition:box-shadow .25s}.md-typeset .md-input:focus,.md-typeset .md-input:hover{box-shadow:0 .4rem 1rem rgba(0,0,0,.15),0 .025rem .05rem rgba(0,0,0,.15)}.md-typeset .md-input--stretch{width:100%}.md-header{background-color:var(--md-primary-fg-color);box-shadow:0 0 .2rem transparent,0 .2rem .4rem transparent;color:var(--md-primary-bg-color);left:0;position:-webkit-sticky;position:sticky;right:0;top:0;z-index:2}@media print{.md-header{display:none}}.md-header[data-md-state=shadow]{box-shadow:0 0 .2rem rgba(0,0,0,.1),0 .2rem .4rem rgba(0,0,0,.2);transition:transform .25s cubic-bezier(.1,.7,.1,1),box-shadow .25s}.md-header[data-md-state=hidden]{transform:translateY(-100%);transition:transform .25s cubic-bezier(.8,0,.6,1),box-shadow .25s}.md-header__inner{align-items:center;display:flex;padding:0 .2rem}.md-header__button{color:currentColor;cursor:pointer;margin:.2rem;outline-color:var(--md-accent-fg-color);padding:.4rem;position:relative;transition:opacity .25s;vertical-align:middle;z-index:1}.md-header__button:hover{opacity:.7}.md-header__button:not([hidden]){display:inline-block}.md-header__button:not(.focus-visible){-webkit-tap-highlight-color:transparent;outline:none}.md-header__button.md-logo{margin:.2rem;padding:.4rem}@media screen and (max-width:76.1875em){.md-header__button.md-logo{display:none}}.md-header__button.md-logo img,.md-header__button.md-logo svg{fill:currentColor;display:block;height:1.2rem;width:1.2rem}@media screen and (min-width:60em){.md-header__button[for=__search]{display:none}}.no-js .md-header__button[for=__search]{display:none}[dir=rtl] .md-header__button[for=__search] svg{transform:scaleX(-1)}@media screen and (min-width:76.25em){.md-header__button[for=__drawer]{display:none}}.md-header__topic{display:flex;max-width:100%;position:absolute;transition:transform .4s cubic-bezier(.1,.7,.1,1),opacity .15s}.md-header__topic+.md-header__topic{opacity:0;pointer-events:none;transform:translateX(1.25rem);transition:transform .4s cubic-bezier(1,.7,.1,.1),opacity .15s;z-index:-1}[dir=rtl] .md-header__topic+.md-header__topic{transform:translateX(-1.25rem)}.md-header__title{flex-grow:1;font-size:.9rem;height:2.4rem;line-height:2.4rem;margin-left:1rem;margin-right:.4rem}.md-header__title[data-md-state=active] .md-header__topic{opacity:0;pointer-events:none;transform:translateX(-1.25rem);transition:transform .4s cubic-bezier(1,.7,.1,.1),opacity .15s;z-index:-1}[dir=rtl] .md-header__title[data-md-state=active] .md-header__topic{transform:translateX(1.25rem)}.md-header__title[data-md-state=active] .md-header__topic+.md-header__topic{opacity:1;pointer-events:auto;transform:translateX(0);transition:transform .4s cubic-bezier(.1,.7,.1,1),opacity .15s;z-index:0}.md-header__title>.md-header__ellipsis{height:100%;position:relative;width:100%}.md-header__option{display:flex;flex-shrink:0;max-width:100%;transition:max-width 0ms .25s,opacity .25s .25s;white-space:nowrap}[data-md-toggle=search]:checked~.md-header .md-header__option{max-width:0;opacity:0;transition:max-width 0ms,opacity 0ms}.md-header__source{display:none}@media screen and (min-width:60em){.md-header__source{display:block;margin-left:1rem;max-width:11.7rem;width:11.7rem}[dir=rtl] .md-header__source{margin-left:0;margin-right:1rem}}@media screen and (min-width:76.25em){.md-header__source{margin-left:1.4rem}[dir=rtl] .md-header__source{margin-right:1.4rem}}.md-footer{background-color:var(--md-footer-bg-color);color:var(--md-footer-fg-color)}@media print{.md-footer{display:none}}.md-footer__inner{overflow:auto;padding:.2rem}.md-footer__link{display:flex;outline-color:var(--md-accent-fg-color);padding-bottom:.4rem;padding-top:1.4rem;transition:opacity .25s}@media screen and (min-width:45em){.md-footer__link{width:50%}}.md-footer__link:focus,.md-footer__link:hover{opacity:.7}.md-footer__link--prev{float:left}@media screen and (max-width:44.9375em){.md-footer__link--prev{width:25%}.md-footer__link--prev .md-footer__title{display:none}}[dir=rtl] .md-footer__link--prev{float:right}[dir=rtl] .md-footer__link--prev svg{transform:scaleX(-1)}.md-footer__link--next{float:right;text-align:right}@media screen and (max-width:44.9375em){.md-footer__link--next{width:75%}}[dir=rtl] .md-footer__link--next{float:left;text-align:left}[dir=rtl] .md-footer__link--next svg{transform:scaleX(-1)}.md-footer__title{flex-grow:1;font-size:.9rem;line-height:2.4rem;max-width:calc(100% - 2.4rem);padding:0 1rem;position:relative}.md-footer__button{margin:.2rem;padding:.4rem}.md-footer__direction{font-size:.64rem;left:0;margin-top:-1rem;opacity:.7;padding:0 1rem;position:absolute;right:0}.md-footer-meta{background-color:var(--md-footer-bg-color--dark)}.md-footer-meta__inner{display:flex;flex-wrap:wrap;justify-content:space-between;padding:.2rem}html .md-footer-meta.md-typeset a{color:var(--md-footer-fg-color--light)}html .md-footer-meta.md-typeset a:focus,html .md-footer-meta.md-typeset a:hover{color:var(--md-footer-fg-color)}.md-footer-copyright{color:var(--md-footer-fg-color--lighter);font-size:.64rem;margin:auto .6rem;padding:.4rem 0;width:100%}@media screen and (min-width:45em){.md-footer-copyright{width:auto}}.md-footer-copyright__highlight{color:var(--md-footer-fg-color--light)}.md-footer-social{margin:0 .4rem;padding:.2rem 0 .6rem}@media screen and (min-width:45em){.md-footer-social{padding:.6rem 0}}.md-footer-social__link{display:inline-block;height:1.6rem;text-align:center;width:1.6rem}.md-footer-social__link:before{line-height:1.9}.md-footer-social__link svg{fill:currentColor;max-height:.8rem;vertical-align:-25%}:root{--md-nav-icon--prev:url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M20 11v2H8l5.5 5.5-1.42 1.42L4.16 12l7.92-7.92L13.5 5.5 8 11h12z"/></svg>');--md-nav-icon--next:url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M8.59 16.58 13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.42z"/></svg>');--md-toc-icon:url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M3 9h14V7H3v2m0 4h14v-2H3v2m0 4h14v-2H3v2m16 0h2v-2h-2v2m0-10v2h2V7h-2m0 6h2v-2h-2v2z"/></svg>')}.md-nav{font-size:.7rem;line-height:1.3}.md-nav__title{display:block;font-weight:700;overflow:hidden;padding:0 .6rem;text-overflow:ellipsis}.md-nav__title .md-nav__button{display:none}.md-nav__title .md-nav__button img{height:100%;width:auto}.md-nav__title .md-nav__button.md-logo img,.md-nav__title .md-nav__button.md-logo svg{fill:currentColor;display:block;height:2.4rem;width:2.4rem}.md-nav__list{list-style:none;margin:0;padding:0}.md-nav__item{padding:0 .6rem}.md-nav__item .md-nav__item{padding-right:0}[dir=rtl] .md-nav__item .md-nav__item{padding-left:0;padding-right:.6rem}.md-nav__link{cursor:pointer;display:block;margin-top:.625em;overflow:hidden;scroll-snap-align:start;text-overflow:ellipsis;transition:color 125ms}.md-nav__link[data-md-state=blur]{color:var(--md-default-fg-color--light)}.md-nav__item .md-nav__link--active{color:var(--md-typeset-a-color)}.md-nav__item--nested>.md-nav__link{color:inherit}.md-nav__link:focus,.md-nav__link:hover{color:var(--md-accent-fg-color)}.md-nav__link.focus-visible{outline-color:var(--md-accent-fg-color);outline-offset:.2rem}.md-nav--primary .md-nav__link[for=__toc]{display:none}.md-nav--primary .md-nav__link[for=__toc] .md-icon:after{background-color:currentColor;display:block;height:100%;-webkit-mask-image:var(--md-toc-icon);mask-image:var(--md-toc-icon);width:100%}.md-nav--primary .md-nav__link[for=__toc]~.md-nav{display:none}.md-nav__source{display:none}@media screen and (max-width:76.1875em){.md-nav--primary,.md-nav--primary .md-nav{background-color:var(--md-default-bg-color);display:flex;flex-direction:column;height:100%;left:0;position:absolute;right:0;top:0;z-index:1}.md-nav--primary .md-nav__item,.md-nav--primary .md-nav__title{font-size:.8rem;line-height:1.5}.md-nav--primary .md-nav__title{background-color:var(--md-default-fg-color--lightest);color:var(--md-default-fg-color--light);cursor:pointer;font-weight:400;height:5.6rem;line-height:2.4rem;padding:3rem .8rem .2rem;position:relative;white-space:nowrap}.md-nav--primary .md-nav__title .md-nav__icon{display:block;height:1.2rem;left:.4rem;margin:.2rem;position:absolute;top:.4rem;width:1.2rem}[dir=rtl] .md-nav--primary .md-nav__title .md-nav__icon{left:auto;right:.4rem}.md-nav--primary .md-nav__title .md-nav__icon:after{background-color:currentColor;content:"";display:block;height:100%;-webkit-mask-image:var(--md-nav-icon--prev);mask-image:var(--md-nav-icon--prev);-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:contain;mask-size:contain;width:100%}.md-nav--primary .md-nav__title~.md-nav__list{background-color:var(--md-default-bg-color);box-shadow:0 .05rem 0 var(--md-default-fg-color--lightest) inset;overflow-y:auto;-ms-scroll-snap-type:y mandatory;scroll-snap-type:y mandatory;touch-action:pan-y}.md-nav--primary .md-nav__title~.md-nav__list>:first-child{border-top:0}.md-nav--primary .md-nav__title[for=__drawer]{background-color:var(--md-primary-fg-color);color:var(--md-primary-bg-color)}.md-nav--primary .md-nav__title .md-logo{display:block;left:.2rem;margin:.2rem;padding:.4rem;position:absolute;top:.2rem}[dir=rtl] .md-nav--primary .md-nav__title .md-logo{left:auto;right:.2rem}.md-nav--primary .md-nav__list{flex:1}.md-nav--primary .md-nav__item{border-top:.05rem solid var(--md-default-fg-color--lightest);padding:0}.md-nav--primary .md-nav__item--nested>.md-nav__link{padding-right:2.4rem}[dir=rtl] .md-nav--primary .md-nav__item--nested>.md-nav__link{padding-left:2.4rem;padding-right:.8rem}.md-nav--primary .md-nav__item--active>.md-nav__link{color:var(--md-typeset-a-color)}.md-nav--primary .md-nav__item--active>.md-nav__link:focus,.md-nav--primary .md-nav__item--active>.md-nav__link:hover{color:var(--md-accent-fg-color)}.md-nav--primary .md-nav__link{margin-top:0;padding:.6rem .8rem;position:relative}.md-nav--primary .md-nav__link .md-nav__icon{color:inherit;font-size:1.2rem;height:1.2rem;margin-top:-.6rem;position:absolute;right:.6rem;top:50%;width:1.2rem}[dir=rtl] .md-nav--primary .md-nav__link .md-nav__icon{left:.6rem;right:auto}.md-nav--primary .md-nav__link .md-nav__icon:after{background-color:currentColor;content:"";display:block;height:100%;-webkit-mask-image:var(--md-nav-icon--next);mask-image:var(--md-nav-icon--next);-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:contain;mask-size:contain;width:100%}[dir=rtl] .md-nav--primary .md-nav__icon:after{transform:scale(-1)}.md-nav--primary .md-nav--secondary .md-nav__link{position:static}.md-nav--primary .md-nav--secondary .md-nav{background-color:transparent;position:static}.md-nav--primary .md-nav--secondary .md-nav .md-nav__link{padding-left:1.4rem}[dir=rtl] .md-nav--primary .md-nav--secondary .md-nav .md-nav__link{padding-left:0;padding-right:1.4rem}.md-nav--primary .md-nav--secondary .md-nav .md-nav .md-nav__link{padding-left:2rem}[dir=rtl] .md-nav--primary .md-nav--secondary .md-nav .md-nav .md-nav__link{padding-left:0;padding-right:2rem}.md-nav--primary .md-nav--secondary .md-nav .md-nav .md-nav .md-nav__link{padding-left:2.6rem}[dir=rtl] .md-nav--primary .md-nav--secondary .md-nav .md-nav .md-nav .md-nav__link{padding-left:0;padding-right:2.6rem}.md-nav--primary .md-nav--secondary .md-nav .md-nav .md-nav .md-nav .md-nav__link{padding-left:3.2rem}[dir=rtl] .md-nav--primary .md-nav--secondary .md-nav .md-nav .md-nav .md-nav .md-nav__link{padding-left:0;padding-right:3.2rem}.md-nav--secondary{background-color:transparent}.md-nav__toggle~.md-nav{display:flex;opacity:0;transform:translateX(100%);transition:transform .25s cubic-bezier(.8,0,.6,1),opacity 125ms 50ms}[dir=rtl] .md-nav__toggle~.md-nav{transform:translateX(-100%)}.md-nav__toggle:checked~.md-nav{opacity:1;transform:translateX(0);transition:transform .25s cubic-bezier(.4,0,.2,1),opacity 125ms 125ms}.md-nav__toggle:checked~.md-nav>.md-nav__list{-webkit-backface-visibility:hidden;backface-visibility:hidden}}@media screen and (max-width:59.9375em){.md-nav--primary .md-nav__link[for=__toc]{display:block;padding-right:2.4rem}[dir=rtl] .md-nav--primary .md-nav__link[for=__toc]{padding-left:2.4rem;padding-right:.8rem}.md-nav--primary .md-nav__link[for=__toc] .md-icon:after{content:""}.md-nav--primary .md-nav__link[for=__toc]+.md-nav__link{display:none}.md-nav--primary .md-nav__link[for=__toc]~.md-nav{display:flex}.md-nav__source{background-color:var(--md-primary-fg-color--dark);color:var(--md-primary-bg-color);display:block;padding:0 .2rem}}@media screen and (min-width:60em) and (max-width:76.1875em){.md-nav--integrated .md-nav__link[for=__toc]{display:block;padding-right:2.4rem;scroll-snap-align:none}[dir=rtl] .md-nav--integrated .md-nav__link[for=__toc]{padding-left:2.4rem;padding-right:.8rem}.md-nav--integrated .md-nav__link[for=__toc] .md-icon:after{content:""}.md-nav--integrated .md-nav__link[for=__toc]+.md-nav__link{display:none}.md-nav--integrated .md-nav__link[for=__toc]~.md-nav{display:flex}}@media screen and (min-width:60em){.md-nav--secondary .md-nav__title[for=__toc]{scroll-snap-align:start}.md-nav--secondary .md-nav__title .md-nav__icon{display:none}}@media screen and (min-width:76.25em){.md-nav{transition:max-height .25s cubic-bezier(.86,0,.07,1)}.md-nav--primary .md-nav__title[for=__drawer]{scroll-snap-align:start}.md-nav--primary .md-nav__title .md-nav__icon{display:none}.md-nav__toggle~.md-nav{display:none}.md-nav__toggle:checked~.md-nav,.md-nav__toggle:indeterminate~.md-nav{display:block}.md-nav__item--nested>.md-nav>.md-nav__title{display:none}.md-nav__item--section{display:block;margin:1.25em 0}.md-nav__item--section:last-child{margin-bottom:0}.md-nav__item--section>.md-nav__link{display:none}.md-nav__item--section>.md-nav{display:block}.md-nav__item--section>.md-nav>.md-nav__title{display:block;padding:0;pointer-events:none;scroll-snap-align:start}.md-nav__item--section>.md-nav>.md-nav__list>.md-nav__item{padding:0}.md-nav__icon{float:right;height:.9rem;transition:transform .25s;width:.9rem}[dir=rtl] .md-nav__icon{float:left;transform:rotate(180deg)}.md-nav__icon:after{background-color:currentColor;content:"";display:inline-block;height:100%;-webkit-mask-image:var(--md-nav-icon--next);mask-image:var(--md-nav-icon--next);-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:contain;mask-size:contain;vertical-align:-.1rem;width:100%}.md-nav__item--nested .md-nav__toggle:checked~.md-nav__link .md-nav__icon,.md-nav__item--nested .md-nav__toggle:indeterminate~.md-nav__link .md-nav__icon{transform:rotate(90deg)}.md-nav--lifted>.md-nav__list>.md-nav__item--nested,.md-nav--lifted>.md-nav__title{display:none}.md-nav--lifted>.md-nav__list>.md-nav__item{display:none}.md-nav--lifted>.md-nav__list>.md-nav__item--active{display:block;padding:0}.md-nav--lifted>.md-nav__list>.md-nav__item--active>.md-nav__link{display:none}.md-nav--lifted>.md-nav__list>.md-nav__item--active>.md-nav>.md-nav__title{display:block;padding:0 .6rem;pointer-events:none;scroll-snap-align:start}.md-nav--lifted .md-nav[data-md-level="1"]{display:block}.md-nav--lifted .md-nav[data-md-level="1"]>.md-nav__list>.md-nav__item{padding-right:.6rem}.md-nav--integrated .md-nav__link[for=__toc]~.md-nav{border-left:.05rem solid var(--md-primary-fg-color);display:block;margin-bottom:1.25em}.md-nav--integrated .md-nav__link[for=__toc]~.md-nav>.md-nav__title{display:none}}:root{--md-search-result-icon:url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h7c-.41-.25-.8-.56-1.14-.9-.33-.33-.61-.7-.86-1.1H6V4h7v5h5v1.18c.71.16 1.39.43 2 .82V8l-6-6m6.31 16.9c1.33-2.11.69-4.9-1.4-6.22-2.11-1.33-4.91-.68-6.22 1.4-1.34 2.11-.69 4.89 1.4 6.22 1.46.93 3.32.93 4.79.02L22 23.39 23.39 22l-3.08-3.1m-3.81.1a2.5 2.5 0 0 1-2.5-2.5 2.5 2.5 0 0 1 2.5-2.5 2.5 2.5 0 0 1 2.5 2.5 2.5 2.5 0 0 1-2.5 2.5z"/></svg>')}.md-search{position:relative}@media screen and (min-width:60em){.md-search{padding:.2rem 0}}.no-js .md-search{display:none}.md-search__overlay{opacity:0;z-index:1}@media screen and (max-width:59.9375em){.md-search__overlay{background-color:var(--md-default-bg-color);border-radius:1rem;height:2rem;left:-2.2rem;overflow:hidden;pointer-events:none;position:absolute;top:.2rem;transform-origin:center;transition:transform .3s .1s,opacity .2s .2s;width:2rem}[dir=rtl] .md-search__overlay{left:auto;right:-2.2rem}[data-md-toggle=search]:checked~.md-header .md-search__overlay{opacity:1;transition:transform .4s,opacity .1s}}@media screen and (min-width:60em){.md-search__overlay{background-color:rgba(0,0,0,.54);cursor:pointer;height:0;left:0;position:fixed;top:0;transition:width 0ms .25s,height 0ms .25s,opacity .25s;width:0}[dir=rtl] .md-search__overlay{left:auto;right:0}[data-md-toggle=search]:checked~.md-header .md-search__overlay{height:200vh;opacity:1;transition:width 0ms,height 0ms,opacity .25s;width:100%}}@media screen and (max-width:29.9375em){[data-md-toggle=search]:checked~.md-header .md-search__overlay{transform:scale(45)}}@media screen and (min-width:30em) and (max-width:44.9375em){[data-md-toggle=search]:checked~.md-header .md-search__overlay{transform:scale(60)}}@media screen and (min-width:45em) and (max-width:59.9375em){[data-md-toggle=search]:checked~.md-header .md-search__overlay{transform:scale(75)}}.md-search__inner{-webkit-backface-visibility:hidden;backface-visibility:hidden}@media screen and (max-width:59.9375em){.md-search__inner{height:100%;left:100%;opacity:0;position:fixed;top:0;transform:translateX(5%);transition:right 0ms .3s,left 0ms .3s,transform .15s cubic-bezier(.4,0,.2,1) .15s,opacity .15s .15s;width:100%;z-index:2}[data-md-toggle=search]:checked~.md-header .md-search__inner{left:0;opacity:1;transform:translateX(0);transition:right 0ms 0ms,left 0ms 0ms,transform .15s cubic-bezier(.1,.7,.1,1) .15s,opacity .15s .15s}[dir=rtl] [data-md-toggle=search]:checked~.md-header .md-search__inner{left:auto;right:0}html [dir=rtl] .md-search__inner{left:auto;right:100%;transform:translateX(-5%)}}@media screen and (min-width:60em){.md-search__inner{float:right;padding:.1rem 0;position:relative;transition:width .25s cubic-bezier(.1,.7,.1,1);width:11.7rem}[dir=rtl] .md-search__inner{float:left}}@media screen and (min-width:60em) and (max-width:76.1875em){[data-md-toggle=search]:checked~.md-header .md-search__inner{width:23.4rem}}@media screen and (min-width:76.25em){[data-md-toggle=search]:checked~.md-header .md-search__inner{width:34.4rem}}.md-search__form{position:relative}@media screen and (min-width:60em){.md-search__form{border-radius:.1rem}}.md-search__input{background-color:var(--md-default-bg-color);box-shadow:0 0 .6rem transparent;padding:0 2.2rem 0 3.6rem;position:relative;text-overflow:ellipsis;transition:color .25s,background-color .25s,box-shadow .25s;z-index:2}[dir=rtl] .md-search__input{padding:0 3.6rem 0 2.2rem}.md-search__input::-webkit-input-placeholder{-webkit-transition:color .25s;transition:color .25s}.md-search__input::-moz-placeholder{-moz-transition:color .25s;transition:color .25s}.md-search__input::-ms-input-placeholder{-ms-transition:color .25s;transition:color .25s}.md-search__input::placeholder{transition:color .25s}.md-search__input::-webkit-input-placeholder{color:var(--md-default-fg-color--light)}.md-search__input::-moz-placeholder{color:var(--md-default-fg-color--light)}.md-search__input::-ms-input-placeholder{color:var(--md-default-fg-color--light)}.md-search__input::placeholder,.md-search__input~.md-search__icon{color:var(--md-default-fg-color--light)}.md-search__input::-ms-clear{display:none}[data-md-toggle=search]:checked~.md-header .md-search__input{box-shadow:0 0 .6rem rgba(0,0,0,.07)}@media screen and (max-width:59.9375em){.md-search__input{font-size:.9rem;height:2.4rem;width:100%}}@media screen and (min-width:60em){.md-search__input{background-color:rgba(0,0,0,.26);border-radius:.1rem;color:inherit;font-size:.8rem;height:1.8rem;padding-left:2.2rem;width:100%}[dir=rtl] .md-search__input{padding-right:2.2rem}.md-search__input+.md-search__icon{color:var(--md-primary-bg-color)}.md-search__input::-webkit-input-placeholder{color:var(--md-primary-bg-color--light)}.md-search__input::-moz-placeholder{color:var(--md-primary-bg-color--light)}.md-search__input::-ms-input-placeholder{color:var(--md-primary-bg-color--light)}.md-search__input::placeholder{color:var(--md-primary-bg-color--light)}.md-search__input:hover{background-color:hsla(0,0%,100%,.12)}[data-md-toggle=search]:checked~.md-header .md-search__input{background-color:var(--md-default-bg-color);border-radius:.1rem .1rem 0 0;color:var(--md-default-fg-color);text-overflow:clip}[data-md-toggle=search]:checked~.md-header .md-search__input::-webkit-input-placeholder{color:var(--md-default-fg-color--light)}[data-md-toggle=search]:checked~.md-header .md-search__input::-moz-placeholder{color:var(--md-default-fg-color--light)}[data-md-toggle=search]:checked~.md-header .md-search__input::-ms-input-placeholder{color:var(--md-default-fg-color--light)}[data-md-toggle=search]:checked~.md-header .md-search__input+.md-search__icon,[data-md-toggle=search]:checked~.md-header .md-search__input::placeholder{color:var(--md-default-fg-color--light)}}.md-search__icon{cursor:pointer;height:1.2rem;position:absolute;transition:color .25s,opacity .25s;width:1.2rem;z-index:2}.md-search__icon:hover{opacity:.7}.md-search__icon[for=__search]{left:.5rem;top:.3rem}[dir=rtl] .md-search__icon[for=__search]{left:auto;right:.5rem}[dir=rtl] .md-search__icon[for=__search] svg{transform:scaleX(-1)}@media screen and (max-width:59.9375em){.md-search__icon[for=__search]{left:.8rem;top:.6rem}[dir=rtl] .md-search__icon[for=__search]{left:auto;right:.8rem}.md-search__icon[for=__search] svg:first-child{display:none}}@media screen and (min-width:60em){.md-search__icon[for=__search]{pointer-events:none}.md-search__icon[for=__search] svg:last-child{display:none}}.md-search__icon[type=reset]{opacity:0;pointer-events:none;right:.5rem;top:.3rem;transform:scale(.75);transition:transform .15s cubic-bezier(.1,.7,.1,1),opacity .15s}[dir=rtl] .md-search__icon[type=reset]{left:.5rem;right:auto}@media screen and (max-width:59.9375em){.md-search__icon[type=reset]{right:.8rem;top:.6rem}[dir=rtl] .md-search__icon[type=reset]{left:.8rem;right:auto}}[data-md-toggle=search]:checked~.md-header .md-search__input:valid~.md-search__icon[type=reset]{opacity:1;pointer-events:auto;transform:scale(1)}[data-md-toggle=search]:checked~.md-header .md-search__input:valid~.md-search__icon[type=reset]:hover{opacity:.7}.md-search__output{border-radius:0 0 .1rem .1rem;overflow:hidden;position:absolute;width:100%;z-index:1}@media screen and (max-width:59.9375em){.md-search__output{bottom:0;top:2.4rem}}@media screen and (min-width:60em){.md-search__output{opacity:0;top:1.9rem;transition:opacity .4s}[data-md-toggle=search]:checked~.md-header .md-search__output{box-shadow:0 6px 10px 0 rgba(0,0,0,.14),0 1px 18px 0 rgba(0,0,0,.12),0 3px 5px -1px rgba(0,0,0,.4);opacity:1}}.md-search__scrollwrap{-webkit-backface-visibility:hidden;backface-visibility:hidden;background-color:var(--md-default-bg-color);height:100%;overflow-y:auto;touch-action:pan-y}@media (-webkit-max-device-pixel-ratio:1),(max-resolution:1dppx){.md-search__scrollwrap{transform:translateZ(0)}}@media screen and (min-width:60em) and (max-width:76.1875em){.md-search__scrollwrap{width:23.4rem}}@media screen and (min-width:76.25em){.md-search__scrollwrap{width:34.4rem}}@media screen and (min-width:60em){.md-search__scrollwrap{max-height:0;scrollbar-color:var(--md-default-fg-color--lighter) transparent;scrollbar-width:thin}[data-md-toggle=search]:checked~.md-header .md-search__scrollwrap{max-height:75vh}.md-search__scrollwrap:hover{scrollbar-color:var(--md-accent-fg-color) transparent}.md-search__scrollwrap::-webkit-scrollbar{height:.2rem;width:.2rem}.md-search__scrollwrap::-webkit-scrollbar-thumb{background-color:var(--md-default-fg-color--lighter)}.md-search__scrollwrap::-webkit-scrollbar-thumb:hover{background-color:var(--md-accent-fg-color)}}.md-search-result{color:var(--md-default-fg-color);word-break:break-word}.md-search-result__meta{background-color:var(--md-default-fg-color--lightest);color:var(--md-default-fg-color--light);font-size:.64rem;line-height:1.8rem;padding:0 .8rem;scroll-snap-align:start}@media screen and (min-width:60em){.md-search-result__meta{padding-left:2.2rem}[dir=rtl] .md-search-result__meta{padding-left:0;padding-right:2.2rem}}.md-search-result__list{list-style:none;margin:0;padding:0}.md-search-result__item{box-shadow:0 -.05rem 0 var(--md-default-fg-color--lightest)}.md-search-result__item:first-child{box-shadow:none}.md-search-result__link{display:block;outline:none;scroll-snap-align:start;transition:background-color .25s}.md-search-result__link:focus,.md-search-result__link:hover{background-color:var(--md-accent-fg-color--transparent)}.md-search-result__link:last-child p:last-child{margin-bottom:.6rem}.md-search-result__more summary{color:var(--md-typeset-a-color);cursor:pointer;display:block;font-size:.64rem;outline:none;padding:.75em .8rem;scroll-snap-align:start;transition:color .25s,background-color .25s}@media screen and (min-width:60em){.md-search-result__more summary{padding-left:2.2rem}[dir=rtl] .md-search-result__more summary{padding-left:.8rem;padding-right:2.2rem}}.md-search-result__more summary:focus,.md-search-result__more summary:hover{background-color:var(--md-accent-fg-color--transparent);color:var(--md-accent-fg-color)}.md-search-result__more summary::-webkit-details-marker,.md-search-result__more summary::marker{display:none}.md-search-result__more summary~*>*{opacity:.65}.md-search-result__article{overflow:hidden;padding:0 .8rem;position:relative}@media screen and (min-width:60em){.md-search-result__article{padding-left:2.2rem}[dir=rtl] .md-search-result__article{padding-left:.8rem;padding-right:2.2rem}}.md-search-result__article--document .md-search-result__title{font-size:.8rem;font-weight:400;line-height:1.4;margin:.55rem 0}.md-search-result__icon{color:var(--md-default-fg-color--light);height:1.2rem;left:0;margin:.5rem;position:absolute;width:1.2rem}@media screen and (max-width:59.9375em){.md-search-result__icon{display:none}}.md-search-result__icon:after{background-color:currentColor;content:"";display:inline-block;height:100%;-webkit-mask-image:var(--md-search-result-icon);mask-image:var(--md-search-result-icon);-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:contain;mask-size:contain;width:100%}[dir=rtl] .md-search-result__icon{left:auto;right:0}[dir=rtl] .md-search-result__icon:after{transform:scaleX(-1)}.md-search-result__title{font-size:.64rem;font-weight:700;line-height:1.6;margin:.5em 0}.md-search-result__teaser{-webkit-box-orient:vertical;-webkit-line-clamp:2;color:var(--md-default-fg-color--light);display:-webkit-box;font-size:.64rem;line-height:1.6;margin:.5em 0;max-height:2rem;overflow:hidden;text-overflow:ellipsis}@media screen and (max-width:44.9375em){.md-search-result__teaser{-webkit-line-clamp:3;max-height:3rem}}@media screen and (min-width:60em) and (max-width:76.1875em){.md-search-result__teaser{-webkit-line-clamp:3;max-height:3rem}}.md-search-result__teaser mark{background-color:transparent;text-decoration:underline}.md-search-result__terms{font-size:.64rem;font-style:italic;margin:.5em 0}.md-search-result mark{background-color:transparent;color:var(--md-accent-fg-color)}.md-select{position:relative;z-index:1}.md-select__inner{background-color:var(--md-default-bg-color);border-radius:.1rem;box-shadow:0 .2rem .5rem rgba(0,0,0,.1),0 0 .05rem rgba(0,0,0,.25);color:var(--md-default-fg-color);left:50%;margin-top:.2rem;max-height:0;opacity:0;position:absolute;top:calc(100% - .2rem);transform:translate3d(-50%,.3rem,0);transition:transform .25s 375ms,opacity .25s .25s,max-height 0ms .5s}.md-select:focus-within .md-select__inner,.md-select:hover .md-select__inner{max-height:10rem;opacity:1;transform:translate3d(-50%,0,0);transition:transform .25s cubic-bezier(.1,.7,.1,1),opacity .25s,max-height 0ms}.md-select__inner:after{border-bottom:.2rem solid transparent;border-bottom-color:var(--md-default-bg-color);border-left:.2rem solid transparent;border-right:.2rem solid transparent;border-top:0;content:"";height:0;left:50%;margin-left:-.2rem;margin-top:-.2rem;position:absolute;top:0;width:0}.md-select__list{border-radius:.1rem;font-size:.8rem;list-style-type:none;margin:0;max-height:inherit;overflow:auto;padding:0}.md-select__item{line-height:1.8rem}.md-select__link{cursor:pointer;display:block;outline:none;padding-left:.6rem;padding-right:1.2rem;scroll-snap-align:start;transition:background-color .25s,color .25s;width:100%}[dir=rtl] .md-select__link{padding-left:1.2rem;padding-right:.6rem}.md-select__link:focus,.md-select__link:hover{color:var(--md-accent-fg-color)}.md-select__link:focus{background-color:var(--md-default-fg-color--lightest)}.md-sidebar{align-self:flex-start;flex-shrink:0;padding:1.2rem 0;position:-webkit-sticky;position:sticky;top:2.4rem;width:12.1rem}@media print{.md-sidebar{display:none}}@media screen and (max-width:76.1875em){.md-sidebar--primary{background-color:var(--md-default-bg-color);display:block;height:100%;left:-12.1rem;position:fixed;top:0;transform:translateX(0);transition:transform .25s cubic-bezier(.4,0,.2,1),box-shadow .25s;width:12.1rem;z-index:3}[dir=rtl] .md-sidebar--primary{left:auto;right:-12.1rem}[data-md-toggle=drawer]:checked~.md-container .md-sidebar--primary{box-shadow:0 8px 10px 1px rgba(0,0,0,.14),0 3px 14px 2px rgba(0,0,0,.12),0 5px 5px -3px rgba(0,0,0,.4);transform:translateX(12.1rem)}[dir=rtl] [data-md-toggle=drawer]:checked~.md-container .md-sidebar--primary{transform:translateX(-12.1rem)}.md-sidebar--primary .md-sidebar__scrollwrap{bottom:0;left:0;margin:0;overflow:hidden;position:absolute;right:0;-ms-scroll-snap-type:none;scroll-snap-type:none;top:0}}@media screen and (min-width:76.25em){.md-sidebar{height:0}.no-js .md-sidebar{height:auto}}.md-sidebar--secondary{display:none;order:2}@media screen and (min-width:60em){.md-sidebar--secondary{height:0}.no-js .md-sidebar--secondary{height:auto}.md-sidebar--secondary:not([hidden]){display:block}.md-sidebar--secondary .md-sidebar__scrollwrap{touch-action:pan-y}}.md-sidebar__scrollwrap{-webkit-backface-visibility:hidden;backface-visibility:hidden;margin:0 .2rem;overflow-y:auto;scrollbar-color:var(--md-default-fg-color--lighter) transparent;scrollbar-width:thin}.md-sidebar__scrollwrap:hover{scrollbar-color:var(--md-accent-fg-color) transparent}.md-sidebar__scrollwrap::-webkit-scrollbar{height:.2rem;width:.2rem}.md-sidebar__scrollwrap::-webkit-scrollbar-thumb{background-color:var(--md-default-fg-color--lighter)}.md-sidebar__scrollwrap::-webkit-scrollbar-thumb:hover{background-color:var(--md-accent-fg-color)}@media screen and (max-width:76.1875em){.md-overlay{background-color:rgba(0,0,0,.54);height:0;opacity:0;position:fixed;top:0;transition:width 0ms .25s,height 0ms .25s,opacity .25s;width:0;z-index:3}[data-md-toggle=drawer]:checked~.md-overlay{height:100%;opacity:1;transition:width 0ms,height 0ms,opacity .25s;width:100%}}@-webkit-keyframes facts{0%{height:0}to{height:.65rem}}@keyframes facts{0%{height:0}to{height:.65rem}}@-webkit-keyframes fact{0%{opacity:0;transform:translateY(100%)}50%{opacity:0}to{opacity:1;transform:translateY(0)}}@keyframes fact{0%{opacity:0;transform:translateY(100%)}50%{opacity:0}to{opacity:1;transform:translateY(0)}}:root{--md-source-forks-icon:url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path fill-rule="evenodd" d="M5 3.25a.75.75 0 1 1-1.5 0 .75.75 0 0 1 1.5 0zm0 2.122a2.25 2.25 0 1 0-1.5 0v.878A2.25 2.25 0 0 0 5.75 8.5h1.5v2.128a2.251 2.251 0 1 0 1.5 0V8.5h1.5a2.25 2.25 0 0 0 2.25-2.25v-.878a2.25 2.25 0 1 0-1.5 0v.878a.75.75 0 0 1-.75.75h-4.5A.75.75 0 0 1 5 6.25v-.878zm3.75 7.378a.75.75 0 1 1-1.5 0 .75.75 0 0 1 1.5 0zm3-8.75a.75.75 0 1 0 0-1.5.75.75 0 0 0 0 1.5z"/></svg>');--md-source-repositories-icon:url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path fill-rule="evenodd" d="M2 2.5A2.5 2.5 0 0 1 4.5 0h8.75a.75.75 0 0 1 .75.75v12.5a.75.75 0 0 1-.75.75h-2.5a.75.75 0 1 1 0-1.5h1.75v-2h-8a1 1 0 0 0-.714 1.7.75.75 0 0 1-1.072 1.05A2.495 2.495 0 0 1 2 11.5v-9zm10.5-1V9h-8c-.356 0-.694.074-1 .208V2.5a1 1 0 0 1 1-1h8zM5 12.25v3.25a.25.25 0 0 0 .4.2l1.45-1.087a.25.25 0 0 1 .3 0L8.6 15.7a.25.25 0 0 0 .4-.2v-3.25a.25.25 0 0 0-.25-.25h-3.5a.25.25 0 0 0-.25.25z"/></svg>');--md-source-stars-icon:url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path fill-rule="evenodd" d="M8 .25a.75.75 0 0 1 .673.418l1.882 3.815 4.21.612a.75.75 0 0 1 .416 1.279l-3.046 2.97.719 4.192a.75.75 0 0 1-1.088.791L8 12.347l-3.766 1.98a.75.75 0 0 1-1.088-.79l.72-4.194L.818 6.374a.75.75 0 0 1 .416-1.28l4.21-.611L7.327.668A.75.75 0 0 1 8 .25zm0 2.445L6.615 5.5a.75.75 0 0 1-.564.41l-3.097.45 2.24 2.184a.75.75 0 0 1 .216.664l-.528 3.084 2.769-1.456a.75.75 0 0 1 .698 0l2.77 1.456-.53-3.084a.75.75 0 0 1 .216-.664l2.24-2.183-3.096-.45a.75.75 0 0 1-.564-.41L8 2.694v.001z"/></svg>');--md-source-version-icon:url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path fill-rule="evenodd" d="M2.5 7.775V2.75a.25.25 0 0 1 .25-.25h5.025a.25.25 0 0 1 .177.073l6.25 6.25a.25.25 0 0 1 0 .354l-5.025 5.025a.25.25 0 0 1-.354 0l-6.25-6.25a.25.25 0 0 1-.073-.177zm-1.5 0V2.75C1 1.784 1.784 1 2.75 1h5.025c.464 0 .91.184 1.238.513l6.25 6.25a1.75 1.75 0 0 1 0 2.474l-5.026 5.026a1.75 1.75 0 0 1-2.474 0l-6.25-6.25A1.75 1.75 0 0 1 1 7.775zM6 5a1 1 0 1 0 0 2 1 1 0 0 0 0-2z"/></svg>')}.md-source{-webkit-backface-visibility:hidden;backface-visibility:hidden;display:block;font-size:.65rem;line-height:1.2;outline-color:var(--md-accent-fg-color);transition:opacity .25s;white-space:nowrap}.md-source:hover{opacity:.7}.md-source__icon{display:inline-block;height:2.4rem;vertical-align:middle;width:2rem}.md-source__icon svg{margin-left:.6rem;margin-top:.6rem}[dir=rtl] .md-source__icon svg{margin-left:0;margin-right:.6rem}.md-source__icon+.md-source__repository{margin-left:-2rem;padding-left:2rem}[dir=rtl] .md-source__icon+.md-source__repository{margin-left:0;margin-right:-2rem;padding-left:0;padding-right:2rem}.md-source__repository{display:inline-block;margin-left:.6rem;max-width:calc(100% - 1.2rem);overflow:hidden;text-overflow:ellipsis;vertical-align:middle}.md-source__facts{font-size:.55rem;list-style-type:none;margin:.1rem 0 0;opacity:.75;overflow:hidden;padding:0}[data-md-state=done] .md-source__facts{-webkit-animation:facts .25s ease-in;animation:facts .25s ease-in}.md-source__fact{display:inline-block}[data-md-state=done] .md-source__fact{-webkit-animation:fact .4s ease-out;animation:fact .4s ease-out}.md-source__fact:before{background-color:currentColor;content:"";display:inline-block;height:.6rem;margin-right:.1rem;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:contain;mask-size:contain;vertical-align:text-top;width:.6rem}.md-source__fact:nth-child(1n+2):before{margin-left:.4rem}[dir=rtl] .md-source__fact{margin-left:.1rem;margin-right:0}[dir=rtl] .md-source__fact:nth-child(1n+2):before{margin-left:0;margin-right:.4rem}.md-source__fact--version:before{-webkit-mask-image:var(--md-source-version-icon);mask-image:var(--md-source-version-icon)}.md-source__fact--stars:before{-webkit-mask-image:var(--md-source-stars-icon);mask-image:var(--md-source-stars-icon)}.md-source__fact--forks:before{-webkit-mask-image:var(--md-source-forks-icon);mask-image:var(--md-source-forks-icon)}.md-source__fact--repositories:before{-webkit-mask-image:var(--md-source-repositories-icon);mask-image:var(--md-source-repositories-icon)}.md-tabs{background-color:var(--md-primary-fg-color);color:var(--md-primary-bg-color);overflow:auto;width:100%}@media print{.md-tabs{display:none}}@media screen and (max-width:76.1875em){.md-tabs{display:none}}.md-tabs[data-md-state=hidden]{pointer-events:none}.md-tabs__list{contain:content;list-style:none;margin:0 0 0 .2rem;padding:0;white-space:nowrap}[dir=rtl] .md-tabs__list{margin-left:0;margin-right:.2rem}.md-tabs__item{display:inline-block;height:2.4rem;padding-left:.6rem;padding-right:.6rem}.md-tabs__link{-webkit-backface-visibility:hidden;backface-visibility:hidden;display:block;font-size:.7rem;margin-top:.8rem;opacity:.7;outline-color:var(--md-accent-fg-color);outline-offset:.2rem;transition:transform .4s cubic-bezier(.1,.7,.1,1),opacity .25s}.md-tabs__link--active,.md-tabs__link:focus,.md-tabs__link:hover{color:inherit;opacity:1}.md-tabs__item:nth-child(2) .md-tabs__link{transition-delay:20ms}.md-tabs__item:nth-child(3) .md-tabs__link{transition-delay:40ms}.md-tabs__item:nth-child(4) .md-tabs__link{transition-delay:60ms}.md-tabs__item:nth-child(5) .md-tabs__link{transition-delay:80ms}.md-tabs__item:nth-child(6) .md-tabs__link{transition-delay:.1s}.md-tabs__item:nth-child(7) .md-tabs__link{transition-delay:.12s}.md-tabs__item:nth-child(8) .md-tabs__link{transition-delay:.14s}.md-tabs__item:nth-child(9) .md-tabs__link{transition-delay:.16s}.md-tabs__item:nth-child(10) .md-tabs__link{transition-delay:.18s}.md-tabs__item:nth-child(11) .md-tabs__link{transition-delay:.2s}.md-tabs__item:nth-child(12) .md-tabs__link{transition-delay:.22s}.md-tabs__item:nth-child(13) .md-tabs__link{transition-delay:.24s}.md-tabs__item:nth-child(14) .md-tabs__link{transition-delay:.26s}.md-tabs__item:nth-child(15) .md-tabs__link{transition-delay:.28s}.md-tabs__item:nth-child(16) .md-tabs__link{transition-delay:.3s}.md-tabs[data-md-state=hidden] .md-tabs__link{opacity:0;transform:translateY(50%);transition:transform 0ms .1s,opacity .1s}.md-top{background:var(--md-primary-fg-color);border-radius:100%;bottom:.4rem;box-shadow:0 .2rem .5rem rgba(0,0,0,.1),0 .025rem .05rem rgba(0,0,0,.1);color:var(--md-primary-bg-color);float:right;margin:-2.8rem .4rem .4rem;outline:none;padding:.4rem;position:-webkit-sticky;position:sticky;transform:translateY(0);transition:opacity 125ms,transform 125ms cubic-bezier(.4,0,.2,1),background-color 125ms;z-index:1}[dir=rtl] .md-top{float:left}.md-top[data-md-state=hidden]{opacity:0;pointer-events:none;transform:translateY(-.2rem)}.md-top:focus,.md-top:hover{background:var(--md-accent-fg-color);transform:scale(1.1)}@-webkit-keyframes hoverfix{0%{pointer-events:none}}@keyframes hoverfix{0%{pointer-events:none}}:root{--md-version-icon:url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 320 512"><path d="M31.3 192h257.3c17.8 0 26.7 21.5 14.1 34.1L174.1 354.8c-7.8 7.8-20.5 7.8-28.3 0L17.2 226.1C4.6 213.5 13.5 192 31.3 192z"/></svg>')}.md-version{flex-shrink:0;font-size:.8rem;height:2.4rem}.md-version__current{color:inherit;cursor:pointer;margin-left:1.4rem;margin-right:.4rem;outline:none;position:relative;top:.05rem}[dir=rtl] .md-version__current{margin-left:.4rem;margin-right:1.4rem}.md-version__current:after{background-color:currentColor;content:"";display:inline-block;height:.6rem;margin-left:.4rem;-webkit-mask-image:var(--md-version-icon);mask-image:var(--md-version-icon);-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;width:.4rem}[dir=rtl] .md-version__current:after{margin-left:0;margin-right:.4rem}.md-version__list{background-color:var(--md-default-bg-color);border-radius:.1rem;box-shadow:0 .2rem .5rem rgba(0,0,0,.1),0 0 .05rem rgba(0,0,0,.25);color:var(--md-default-fg-color);list-style-type:none;margin:.2rem .8rem;max-height:0;opacity:0;overflow:auto;padding:0;position:absolute;-ms-scroll-snap-type:y mandatory;scroll-snap-type:y mandatory;top:.15rem;transition:max-height 0ms .5s,opacity .25s .25s;z-index:1}.md-version:focus-within .md-version__list,.md-version:hover .md-version__list{max-height:10rem;opacity:1;transition:max-height 0ms,opacity .25s}@media (pointer:coarse){.md-version:hover .md-version__list{-webkit-animation:hoverfix .25s forwards;animation:hoverfix .25s forwards}.md-version:focus-within .md-version__list{-webkit-animation:none;animation:none}}.md-version__item{line-height:1.8rem}.md-version__link{cursor:pointer;display:block;outline:none;padding-left:.6rem;padding-right:1.2rem;scroll-snap-align:start;transition:color .25s,background-color .25s;white-space:nowrap;width:100%}[dir=rtl] .md-version__link{padding-left:1.2rem;padding-right:.6rem}.md-version__link:focus,.md-version__link:hover{color:var(--md-accent-fg-color)}.md-version__link:focus{background-color:var(--md-default-fg-color--lightest)}:root{--md-admonition-icon--note:url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M20.71 7.04c.39-.39.39-1.04 0-1.41l-2.34-2.34c-.37-.39-1.02-.39-1.41 0l-1.84 1.83 3.75 3.75M3 17.25V21h3.75L17.81 9.93l-3.75-3.75L3 17.25z"/></svg>');--md-admonition-icon--abstract:url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M4 5h16v2H4V5m0 4h16v2H4V9m0 4h16v2H4v-2m0 4h10v2H4v-2z"/></svg>');--md-admonition-icon--info:url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M13 9h-2V7h2m0 10h-2v-6h2m-1-9A10 10 0 0 0 2 12a10 10 0 0 0 10 10 10 10 0 0 0 10-10A10 10 0 0 0 12 2z"/></svg>');--md-admonition-icon--tip:url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M17.66 11.2c-.23-.3-.51-.56-.77-.82-.67-.6-1.43-1.03-2.07-1.66C13.33 7.26 13 4.85 13.95 3c-.95.23-1.78.75-2.49 1.32-2.59 2.08-3.61 5.75-2.39 8.9.04.1.08.2.08.33 0 .22-.15.42-.35.5-.23.1-.47.04-.66-.12a.58.58 0 0 1-.14-.17c-1.13-1.43-1.31-3.48-.55-5.12C5.78 10 4.87 12.3 5 14.47c.06.5.12 1 .29 1.5.14.6.41 1.2.71 1.73 1.08 1.73 2.95 2.97 4.96 3.22 2.14.27 4.43-.12 6.07-1.6 1.83-1.66 2.47-4.32 1.53-6.6l-.13-.26c-.21-.46-.77-1.26-.77-1.26m-3.16 6.3c-.28.24-.74.5-1.1.6-1.12.4-2.24-.16-2.9-.82 1.19-.28 1.9-1.16 2.11-2.05.17-.8-.15-1.46-.28-2.23-.12-.74-.1-1.37.17-2.06.19.38.39.76.63 1.06.77 1 1.98 1.44 2.24 2.8.04.14.06.28.06.43.03.82-.33 1.72-.93 2.27z"/></svg>');--md-admonition-icon--success:url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 2C6.5 2 2 6.5 2 12s4.5 10 10 10 10-4.5 10-10S17.5 2 12 2m-2 15-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"/></svg>');--md-admonition-icon--question:url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="m15.07 11.25-.9.92C13.45 12.89 13 13.5 13 15h-2v-.5c0-1.11.45-2.11 1.17-2.83l1.24-1.26c.37-.36.59-.86.59-1.41a2 2 0 0 0-2-2 2 2 0 0 0-2 2H8a4 4 0 0 1 4-4 4 4 0 0 1 4 4 3.2 3.2 0 0 1-.93 2.25M13 19h-2v-2h2M12 2A10 10 0 0 0 2 12a10 10 0 0 0 10 10 10 10 0 0 0 10-10c0-5.53-4.5-10-10-10z"/></svg>');--md-admonition-icon--warning:url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M13 14h-2V9h2m0 9h-2v-2h2M1 21h22L12 2 1 21z"/></svg>');--md-admonition-icon--failure:url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 2c5.53 0 10 4.47 10 10s-4.47 10-10 10S2 17.53 2 12 6.47 2 12 2m3.59 5L12 10.59 8.41 7 7 8.41 10.59 12 7 15.59 8.41 17 12 13.41 15.59 17 17 15.59 13.41 12 17 8.41 15.59 7z"/></svg>');--md-admonition-icon--danger:url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="m11.5 20 4.86-9.73H13V4l-5 9.73h3.5V20M12 2c2.75 0 5.1 1 7.05 2.95C21 6.9 22 9.25 22 12s-1 5.1-2.95 7.05C17.1 21 14.75 22 12 22s-5.1-1-7.05-2.95C3 17.1 2 14.75 2 12s1-5.1 2.95-7.05C6.9 3 9.25 2 12 2z"/></svg>');--md-admonition-icon--bug:url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M14 12h-4v-2h4m0 6h-4v-2h4m6-6h-2.81a5.985 5.985 0 0 0-1.82-1.96L17 4.41 15.59 3l-2.17 2.17a6.002 6.002 0 0 0-2.83 0L8.41 3 7 4.41l1.62 1.63C7.88 6.55 7.26 7.22 6.81 8H4v2h2.09c-.05.33-.09.66-.09 1v1H4v2h2v1c0 .34.04.67.09 1H4v2h2.81c1.04 1.79 2.97 3 5.19 3s4.15-1.21 5.19-3H20v-2h-2.09c.05-.33.09-.66.09-1v-1h2v-2h-2v-1c0-.34-.04-.67-.09-1H20V8z"/></svg>');--md-admonition-icon--example:url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M7 13v-2h14v2H7m0 6v-2h14v2H7M7 7V5h14v2H7M3 8V5H2V4h2v4H3m-1 9v-1h3v4H2v-1h2v-.5H3v-1h1V17H2m2.25-7a.75.75 0 0 1 .75.75c0 .2-.08.39-.21.52L3.12 13H5v1H2v-.92L4 11H2v-1h2.25z"/></svg>');--md-admonition-icon--quote:url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M14 17h3l2-4V7h-6v6h3M6 17h3l2-4V7H5v6h3l-2 4z"/></svg>')}.md-typeset .admonition,.md-typeset details{background-color:var(--md-admonition-bg-color);border-left:.2rem solid #448aff;border-radius:.1rem;box-shadow:0 .2rem .5rem rgba(0,0,0,.05),0 .025rem .05rem rgba(0,0,0,.05);color:var(--md-admonition-fg-color);font-size:.64rem;margin:1.5625em 0;overflow:hidden;padding:0 .6rem;page-break-inside:avoid}@media print{.md-typeset .admonition,.md-typeset details{box-shadow:none}}[dir=rtl] .md-typeset .admonition,[dir=rtl] .md-typeset details{border-left:none;border-right:.2rem solid #448aff}.md-typeset .admonition .admonition,.md-typeset .admonition details,.md-typeset details .admonition,.md-typeset details details{margin-bottom:1em;margin-top:1em}.md-typeset .admonition .md-typeset__scrollwrap,.md-typeset details .md-typeset__scrollwrap{margin:1em -.6rem}.md-typeset .admonition .md-typeset__table,.md-typeset details .md-typeset__table{padding:0 .6rem}.md-typeset .admonition>.tabbed-set:only-child,.md-typeset details>.tabbed-set:only-child{margin-top:0}html .md-typeset .admonition>:last-child,html .md-typeset details>:last-child{margin-bottom:.6rem}.md-typeset .admonition-title,.md-typeset summary{background-color:rgba(68,138,255,.1);border-left:.2rem solid #448aff;font-weight:700;margin:0 -.6rem 0 -.8rem;padding:.4rem .6rem .4rem 2rem;position:relative}[dir=rtl] .md-typeset .admonition-title,[dir=rtl] .md-typeset summary{border-left:none;border-right:.2rem solid #448aff;margin:0 -.8rem 0 -.6rem;padding:.4rem 2rem .4rem .6rem}html .md-typeset .admonition-title:last-child,html .md-typeset summary:last-child{margin-bottom:0}.md-typeset .admonition-title:before,.md-typeset summary:before{background-color:#448aff;content:"";height:1rem;left:.6rem;-webkit-mask-image:var(--md-admonition-icon--note);mask-image:var(--md-admonition-icon--note);-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:contain;mask-size:contain;position:absolute;width:1rem}[dir=rtl] .md-typeset .admonition-title:before,[dir=rtl] .md-typeset summary:before{left:auto;right:.6rem}.md-typeset .admonition-title+.tabbed-set:last-child,.md-typeset summary+.tabbed-set:last-child{margin-top:0}.md-typeset .admonition.note,.md-typeset details.note{border-color:#448aff}.md-typeset .note>.admonition-title,.md-typeset .note>summary{background-color:rgba(68,138,255,.1);border-color:#448aff}.md-typeset .note>.admonition-title:before,.md-typeset .note>summary:before{background-color:#448aff;-webkit-mask-image:var(--md-admonition-icon--note);mask-image:var(--md-admonition-icon--note);-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:contain;mask-size:contain}.md-typeset .admonition.abstract,.md-typeset .admonition.summary,.md-typeset .admonition.tldr,.md-typeset details.abstract,.md-typeset details.summary,.md-typeset details.tldr{border-color:#00b0ff}.md-typeset .abstract>.admonition-title,.md-typeset .abstract>summary,.md-typeset .summary>.admonition-title,.md-typeset .summary>summary,.md-typeset .tldr>.admonition-title,.md-typeset .tldr>summary{background-color:rgba(0,176,255,.1);border-color:#00b0ff}.md-typeset .abstract>.admonition-title:before,.md-typeset .abstract>summary:before,.md-typeset .summary>.admonition-title:before,.md-typeset .summary>summary:before,.md-typeset .tldr>.admonition-title:before,.md-typeset .tldr>summary:before{background-color:#00b0ff;-webkit-mask-image:var(--md-admonition-icon--abstract);mask-image:var(--md-admonition-icon--abstract);-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:contain;mask-size:contain}.md-typeset .admonition.info,.md-typeset .admonition.todo,.md-typeset details.info,.md-typeset details.todo{border-color:#00b8d4}.md-typeset .info>.admonition-title,.md-typeset .info>summary,.md-typeset .todo>.admonition-title,.md-typeset .todo>summary{background-color:rgba(0,184,212,.1);border-color:#00b8d4}.md-typeset .info>.admonition-title:before,.md-typeset .info>summary:before,.md-typeset .todo>.admonition-title:before,.md-typeset .todo>summary:before{background-color:#00b8d4;-webkit-mask-image:var(--md-admonition-icon--info);mask-image:var(--md-admonition-icon--info);-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:contain;mask-size:contain}.md-typeset .admonition.hint,.md-typeset .admonition.important,.md-typeset .admonition.tip,.md-typeset details.hint,.md-typeset details.important,.md-typeset details.tip{border-color:#00bfa5}.md-typeset .hint>.admonition-title,.md-typeset .hint>summary,.md-typeset .important>.admonition-title,.md-typeset .important>summary,.md-typeset .tip>.admonition-title,.md-typeset .tip>summary{background-color:rgba(0,191,165,.1);border-color:#00bfa5}.md-typeset .hint>.admonition-title:before,.md-typeset .hint>summary:before,.md-typeset .important>.admonition-title:before,.md-typeset .important>summary:before,.md-typeset .tip>.admonition-title:before,.md-typeset .tip>summary:before{background-color:#00bfa5;-webkit-mask-image:var(--md-admonition-icon--tip);mask-image:var(--md-admonition-icon--tip);-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:contain;mask-size:contain}.md-typeset .admonition.check,.md-typeset .admonition.done,.md-typeset .admonition.success,.md-typeset details.check,.md-typeset details.done,.md-typeset details.success{border-color:#00c853}.md-typeset .check>.admonition-title,.md-typeset .check>summary,.md-typeset .done>.admonition-title,.md-typeset .done>summary,.md-typeset .success>.admonition-title,.md-typeset .success>summary{background-color:rgba(0,200,83,.1);border-color:#00c853}.md-typeset .check>.admonition-title:before,.md-typeset .check>summary:before,.md-typeset .done>.admonition-title:before,.md-typeset .done>summary:before,.md-typeset .success>.admonition-title:before,.md-typeset .success>summary:before{background-color:#00c853;-webkit-mask-image:var(--md-admonition-icon--success);mask-image:var(--md-admonition-icon--success);-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:contain;mask-size:contain}.md-typeset .admonition.faq,.md-typeset .admonition.help,.md-typeset .admonition.question,.md-typeset details.faq,.md-typeset details.help,.md-typeset details.question{border-color:#64dd17}.md-typeset .faq>.admonition-title,.md-typeset .faq>summary,.md-typeset .help>.admonition-title,.md-typeset .help>summary,.md-typeset .question>.admonition-title,.md-typeset .question>summary{background-color:rgba(100,221,23,.1);border-color:#64dd17}.md-typeset .faq>.admonition-title:before,.md-typeset .faq>summary:before,.md-typeset .help>.admonition-title:before,.md-typeset .help>summary:before,.md-typeset .question>.admonition-title:before,.md-typeset .question>summary:before{background-color:#64dd17;-webkit-mask-image:var(--md-admonition-icon--question);mask-image:var(--md-admonition-icon--question);-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:contain;mask-size:contain}.md-typeset .admonition.attention,.md-typeset .admonition.caution,.md-typeset .admonition.warning,.md-typeset details.attention,.md-typeset details.caution,.md-typeset details.warning{border-color:#ff9100}.md-typeset .attention>.admonition-title,.md-typeset .attention>summary,.md-typeset .caution>.admonition-title,.md-typeset .caution>summary,.md-typeset .warning>.admonition-title,.md-typeset .warning>summary{background-color:rgba(255,145,0,.1);border-color:#ff9100}.md-typeset .attention>.admonition-title:before,.md-typeset .attention>summary:before,.md-typeset .caution>.admonition-title:before,.md-typeset .caution>summary:before,.md-typeset .warning>.admonition-title:before,.md-typeset .warning>summary:before{background-color:#ff9100;-webkit-mask-image:var(--md-admonition-icon--warning);mask-image:var(--md-admonition-icon--warning);-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:contain;mask-size:contain}.md-typeset .admonition.fail,.md-typeset .admonition.failure,.md-typeset .admonition.missing,.md-typeset details.fail,.md-typeset details.failure,.md-typeset details.missing{border-color:#ff5252}.md-typeset .fail>.admonition-title,.md-typeset .fail>summary,.md-typeset .failure>.admonition-title,.md-typeset .failure>summary,.md-typeset .missing>.admonition-title,.md-typeset .missing>summary{background-color:rgba(255,82,82,.1);border-color:#ff5252}.md-typeset .fail>.admonition-title:before,.md-typeset .fail>summary:before,.md-typeset .failure>.admonition-title:before,.md-typeset .failure>summary:before,.md-typeset .missing>.admonition-title:before,.md-typeset .missing>summary:before{background-color:#ff5252;-webkit-mask-image:var(--md-admonition-icon--failure);mask-image:var(--md-admonition-icon--failure);-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:contain;mask-size:contain}.md-typeset .admonition.danger,.md-typeset .admonition.error,.md-typeset details.danger,.md-typeset details.error{border-color:#ff1744}.md-typeset .danger>.admonition-title,.md-typeset .danger>summary,.md-typeset .error>.admonition-title,.md-typeset .error>summary{background-color:rgba(255,23,68,.1);border-color:#ff1744}.md-typeset .danger>.admonition-title:before,.md-typeset .danger>summary:before,.md-typeset .error>.admonition-title:before,.md-typeset .error>summary:before{background-color:#ff1744;-webkit-mask-image:var(--md-admonition-icon--danger);mask-image:var(--md-admonition-icon--danger);-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:contain;mask-size:contain}.md-typeset .admonition.bug,.md-typeset details.bug{border-color:#f50057}.md-typeset .bug>.admonition-title,.md-typeset .bug>summary{background-color:rgba(245,0,87,.1);border-color:#f50057}.md-typeset .bug>.admonition-title:before,.md-typeset .bug>summary:before{background-color:#f50057;-webkit-mask-image:var(--md-admonition-icon--bug);mask-image:var(--md-admonition-icon--bug);-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:contain;mask-size:contain}.md-typeset .admonition.example,.md-typeset details.example{border-color:#7c4dff}.md-typeset .example>.admonition-title,.md-typeset .example>summary{background-color:rgba(124,77,255,.1);border-color:#7c4dff}.md-typeset .example>.admonition-title:before,.md-typeset .example>summary:before{background-color:#7c4dff;-webkit-mask-image:var(--md-admonition-icon--example);mask-image:var(--md-admonition-icon--example);-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:contain;mask-size:contain}.md-typeset .admonition.cite,.md-typeset .admonition.quote,.md-typeset details.cite,.md-typeset details.quote{border-color:#9e9e9e}.md-typeset .cite>.admonition-title,.md-typeset .cite>summary,.md-typeset .quote>.admonition-title,.md-typeset .quote>summary{background-color:hsla(0,0%,62%,.1);border-color:#9e9e9e}.md-typeset .cite>.admonition-title:before,.md-typeset .cite>summary:before,.md-typeset .quote>.admonition-title:before,.md-typeset .quote>summary:before{background-color:#9e9e9e;-webkit-mask-image:var(--md-admonition-icon--quote);mask-image:var(--md-admonition-icon--quote);-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:contain;mask-size:contain}:root{--md-footnotes-icon:url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M19 7v4H5.83l3.58-3.59L8 6l-6 6 6 6 1.41-1.42L5.83 13H21V7h-2z"/></svg>')}.md-typeset .footnote{color:var(--md-default-fg-color--light);font-size:.64rem}.md-typeset .footnote>ol{margin-left:0}.md-typeset .footnote>ol>li{transition:color 125ms}.md-typeset .footnote>ol>li:target{color:var(--md-default-fg-color)}.md-typeset .footnote>ol>li:hover .footnote-backref,.md-typeset .footnote>ol>li:target .footnote-backref{opacity:1;transform:translateX(0)}.md-typeset .footnote>ol>li>:first-child{margin-top:0}.md-typeset .footnote-ref{font-size:.75em;font-weight:700}html .md-typeset .footnote-ref{outline-offset:.1rem}.md-typeset .footnote-backref{color:var(--md-typeset-a-color);display:inline-block;font-size:0;opacity:0;transform:translateX(.25rem);transition:color .25s,transform .25s .25s,opacity 125ms .25s;vertical-align:text-bottom}@media print{.md-typeset .footnote-backref{color:var(--md-typeset-a-color);opacity:1;transform:translateX(0)}}[dir=rtl] .md-typeset .footnote-backref{transform:translateX(-.25rem)}.md-typeset .footnote-backref:hover{color:var(--md-accent-fg-color)}.md-typeset .footnote-backref:before{background-color:currentColor;content:"";display:inline-block;height:.8rem;-webkit-mask-image:var(--md-footnotes-icon);mask-image:var(--md-footnotes-icon);-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:contain;mask-size:contain;width:.8rem}[dir=rtl] .md-typeset .footnote-backref:before svg{transform:scaleX(-1)}.md-typeset [id^="fnref:"]:target{margin-top:-3.4rem;padding-top:3.4rem;scroll-margin-top:0}.md-typeset [id^="fnref:"]:target>.footnote-ref{outline:auto}.md-typeset [id^="fn:"]:target{margin-top:-3.45rem;padding-top:3.45rem;scroll-margin-top:0}.md-typeset .headerlink{color:var(--md-default-fg-color--lighter);display:inline-block;margin-left:.5rem;opacity:0;transition:color .25s,opacity 125ms}@media print{.md-typeset .headerlink{display:none}}[dir=rtl] .md-typeset .headerlink{margin-left:0;margin-right:.5rem}.md-typeset .headerlink:focus,.md-typeset :hover>.headerlink,.md-typeset :target>.headerlink{opacity:1;transition:color .25s,opacity 125ms}.md-typeset .headerlink:focus,.md-typeset .headerlink:hover,.md-typeset :target>.headerlink{color:var(--md-accent-fg-color)}.md-typeset :target{scroll-margin-top:3.6rem}.md-typeset h1:target,.md-typeset h2:target,.md-typeset h3:target{scroll-margin-top:0}.md-typeset h1:target:before,.md-typeset h2:target:before,.md-typeset h3:target:before{content:"";display:block;margin-top:-3.4rem;padding-top:3.4rem}.md-typeset h4:target{scroll-margin-top:0}.md-typeset h4:target:before{content:"";display:block;margin-top:-3.45rem;padding-top:3.45rem}.md-typeset h5:target,.md-typeset h6:target{scroll-margin-top:0}.md-typeset h5:target:before,.md-typeset h6:target:before{content:"";display:block;margin-top:-3.6rem;padding-top:3.6rem}.md-typeset div.arithmatex{overflow:auto}@media screen and (max-width:44.9375em){.md-typeset div.arithmatex{margin:0 -.8rem}}.md-typeset div.arithmatex>*{margin:1em auto!important;padding:0 .8rem;touch-action:auto;width:-webkit-min-content;width:-moz-min-content;width:min-content}.md-typeset .critic.comment,.md-typeset del.critic,.md-typeset ins.critic{-webkit-box-decoration-break:clone;box-decoration-break:clone}.md-typeset del.critic{background-color:var(--md-typeset-del-color)}.md-typeset ins.critic{background-color:var(--md-typeset-ins-color)}.md-typeset .critic.comment{color:var(--md-code-hl-comment-color)}.md-typeset .critic.comment:before{content:"/* "}.md-typeset .critic.comment:after{content:" */"}.md-typeset .critic.block{box-shadow:none;display:block;margin:1em 0;overflow:auto;padding-left:.8rem;padding-right:.8rem}.md-typeset .critic.block>:first-child{margin-top:.5em}.md-typeset .critic.block>:last-child{margin-bottom:.5em}:root{--md-details-icon:url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M8.59 16.58 13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.42z"/></svg>')}.md-typeset details{display:flow-root;overflow:visible;padding-top:0}.md-typeset details[open]>summary:after{transform:rotate(90deg)}.md-typeset details:not([open]){box-shadow:none;padding-bottom:0}.md-typeset details:not([open])>summary{border-radius:.1rem}.md-typeset details:after{content:"";display:table}.md-typeset summary{border-top-left-radius:.1rem;border-top-right-radius:.1rem;cursor:pointer;display:block;min-height:1rem;padding:.4rem 1.8rem .4rem 2rem}[dir=rtl] .md-typeset summary{padding:.4rem 2.2rem .4rem 1.8rem}.md-typeset summary:not(.focus-visible){-webkit-tap-highlight-color:transparent;outline:none}.md-typeset summary:after{background-color:currentColor;content:"";height:1rem;-webkit-mask-image:var(--md-details-icon);mask-image:var(--md-details-icon);-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:contain;mask-size:contain;position:absolute;right:.4rem;top:.4rem;transform:rotate(0deg);transition:transform .25s;width:1rem}[dir=rtl] .md-typeset summary:after{left:.4rem;right:auto;transform:rotate(180deg)}.md-typeset summary::-webkit-details-marker,.md-typeset summary::marker{display:none}.md-typeset .emojione,.md-typeset .gemoji,.md-typeset .twemoji{display:inline-flex;height:1.125em;vertical-align:text-top}.md-typeset .emojione svg,.md-typeset .gemoji svg,.md-typeset .twemoji svg{fill:currentColor;max-height:100%;width:1.125em}.highlight .o,.highlight .ow{color:var(--md-code-hl-operator-color)}.highlight .p{color:var(--md-code-hl-punctuation-color)}.highlight .cpf,.highlight .l,.highlight .s,.highlight .s1,.highlight .s2,.highlight .sb,.highlight .sc,.highlight .si,.highlight .ss{color:var(--md-code-hl-string-color)}.highlight .cp,.highlight .se,.highlight .sh,.highlight .sr,.highlight .sx{color:var(--md-code-hl-special-color)}.highlight .il,.highlight .m,.highlight .mb,.highlight .mf,.highlight .mh,.highlight .mi,.highlight .mo{color:var(--md-code-hl-number-color)}.highlight .k,.highlight .kd,.highlight .kn,.highlight .kp,.highlight .kr,.highlight .kt{color:var(--md-code-hl-keyword-color)}.highlight .kc,.highlight .n{color:var(--md-code-hl-name-color)}.highlight .bp,.highlight .nb,.highlight .no{color:var(--md-code-hl-constant-color)}.highlight .nc,.highlight .ne,.highlight .nf,.highlight .nn{color:var(--md-code-hl-function-color)}.highlight .nd,.highlight .ni,.highlight .nl,.highlight .nt{color:var(--md-code-hl-keyword-color)}.highlight .c,.highlight .c1,.highlight .ch,.highlight .cm,.highlight .cs,.highlight .sd{color:var(--md-code-hl-comment-color)}.highlight .na,.highlight .nv,.highlight .vc,.highlight .vg,.highlight .vi{color:var(--md-code-hl-variable-color)}.highlight .ge,.highlight .gh,.highlight .go,.highlight .gp,.highlight .gr,.highlight .gs,.highlight .gt,.highlight .gu{color:var(--md-code-hl-generic-color)}.highlight .gd,.highlight .gi{border-radius:.1rem;margin:0 -.125em;padding:0 .125em}.highlight .gd{background-color:var(--md-typeset-del-color)}.highlight .gi{background-color:var(--md-typeset-ins-color)}.highlight .hll{background-color:var(--md-code-hl-color);display:block;margin:0 -1.1764705882em;padding:0 1.1764705882em}.highlight [data-linenos]:before{background-color:var(--md-code-bg-color);box-shadow:-.05rem 0 var(--md-default-fg-color--lightest) inset;color:var(--md-default-fg-color--light);content:attr(data-linenos);float:left;left:-1.1764705882em;margin-left:-1.1764705882em;margin-right:1.1764705882em;padding-left:1.1764705882em;position:-webkit-sticky;position:sticky;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.highlighttable{display:flow-root;overflow:hidden}.highlighttable tbody,.highlighttable td{display:block;padding:0}.highlighttable tr{display:flex}.highlighttable pre{margin:0}.highlighttable .linenos{background-color:var(--md-code-bg-color);font-size:.85em;padding:.7720588235em 0 .7720588235em 1.1764705882em;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.highlighttable .linenodiv{box-shadow:-.05rem 0 var(--md-default-fg-color--lightest) inset;padding-right:.5882352941em}.highlighttable .linenodiv pre{color:var(--md-default-fg-color--light);text-align:right}.highlighttable .code{flex:1;overflow:hidden}.md-typeset .highlighttable{border-radius:.1rem;direction:ltr;margin:1em 0}.md-typeset .highlighttable code{border-radius:0}@media screen and (max-width:44.9375em){.md-typeset>.highlight{margin:1em -.8rem}.md-typeset>.highlight .hll{margin:0 -.8rem;padding:0 .8rem}.md-typeset>.highlight code{border-radius:0}.md-typeset>.highlighttable{border-radius:0;margin:1em -.8rem}.md-typeset>.highlighttable .hll{margin:0 -.8rem;padding:0 .8rem}}.md-typeset .keys kbd:after,.md-typeset .keys kbd:before{-moz-osx-font-smoothing:initial;-webkit-font-smoothing:initial;color:inherit;margin:0;position:relative}.md-typeset .keys span{color:var(--md-default-fg-color--light);padding:0 .2em}.md-typeset .keys .key-alt:before{content:"⎇";padding-right:.4em}.md-typeset .keys .key-left-alt:before{content:"⎇";padding-right:.4em}.md-typeset .keys .key-right-alt:before{content:"⎇";padding-right:.4em}.md-typeset .keys .key-command:before{content:"⌘";padding-right:.4em}.md-typeset .keys .key-left-command:before{content:"⌘";padding-right:.4em}.md-typeset .keys .key-right-command:before{content:"⌘";padding-right:.4em}.md-typeset .keys .key-control:before{content:"⌃";padding-right:.4em}.md-typeset .keys .key-left-control:before{content:"⌃";padding-right:.4em}.md-typeset .keys .key-right-control:before{content:"⌃";padding-right:.4em}.md-typeset .keys .key-meta:before{content:"◆";padding-right:.4em}.md-typeset .keys .key-left-meta:before{content:"◆";padding-right:.4em}.md-typeset .keys .key-right-meta:before{content:"◆";padding-right:.4em}.md-typeset .keys .key-option:before{content:"⌥";padding-right:.4em}.md-typeset .keys .key-left-option:before{content:"⌥";padding-right:.4em}.md-typeset .keys .key-right-option:before{content:"⌥";padding-right:.4em}.md-typeset .keys .key-shift:before{content:"⇧";padding-right:.4em}.md-typeset .keys .key-left-shift:before{content:"⇧";padding-right:.4em}.md-typeset .keys .key-right-shift:before{content:"⇧";padding-right:.4em}.md-typeset .keys .key-super:before{content:"❖";padding-right:.4em}.md-typeset .keys .key-left-super:before{content:"❖";padding-right:.4em}.md-typeset .keys .key-right-super:before{content:"❖";padding-right:.4em}.md-typeset .keys .key-windows:before{content:"⊞";padding-right:.4em}.md-typeset .keys .key-left-windows:before{content:"⊞";padding-right:.4em}.md-typeset .keys .key-right-windows:before{content:"⊞";padding-right:.4em}.md-typeset .keys .key-arrow-down:before{content:"↓";padding-right:.4em}.md-typeset .keys .key-arrow-left:before{content:"←";padding-right:.4em}.md-typeset .keys .key-arrow-right:before{content:"→";padding-right:.4em}.md-typeset .keys .key-arrow-up:before{content:"↑";padding-right:.4em}.md-typeset .keys .key-backspace:before{content:"⌫";padding-right:.4em}.md-typeset .keys .key-backtab:before{content:"⇤";padding-right:.4em}.md-typeset .keys .key-caps-lock:before{content:"⇪";padding-right:.4em}.md-typeset .keys .key-clear:before{content:"⌧";padding-right:.4em}.md-typeset .keys .key-context-menu:before{content:"☰";padding-right:.4em}.md-typeset .keys .key-delete:before{content:"⌦";padding-right:.4em}.md-typeset .keys .key-eject:before{content:"⏏";padding-right:.4em}.md-typeset .keys .key-end:before{content:"⤓";padding-right:.4em}.md-typeset .keys .key-escape:before{content:"⎋";padding-right:.4em}.md-typeset .keys .key-home:before{content:"⤒";padding-right:.4em}.md-typeset .keys .key-insert:before{content:"⎀";padding-right:.4em}.md-typeset .keys .key-page-down:before{content:"⇟";padding-right:.4em}.md-typeset .keys .key-page-up:before{content:"⇞";padding-right:.4em}.md-typeset .keys .key-print-screen:before{content:"⎙";padding-right:.4em}.md-typeset .keys .key-tab:after{content:"⇥";padding-left:.4em}.md-typeset .keys .key-num-enter:after{content:"⌤";padding-left:.4em}.md-typeset .keys .key-enter:after{content:"⏎";padding-left:.4em}.md-typeset .tabbed-content{box-shadow:0 -.05rem var(--md-default-fg-color--lightest);display:none;order:99;width:100%}@media print{.md-typeset .tabbed-content{display:block;order:0}}.md-typeset .tabbed-content>.highlight:only-child pre,.md-typeset .tabbed-content>.highlighttable:only-child,.md-typeset .tabbed-content>pre:only-child{margin:0}.md-typeset .tabbed-content>.highlight:only-child pre>code,.md-typeset .tabbed-content>.highlighttable:only-child>code,.md-typeset .tabbed-content>pre:only-child>code{border-top-left-radius:0;border-top-right-radius:0}.md-typeset .tabbed-content>.tabbed-set{margin:0}.md-typeset .tabbed-set{border-radius:.1rem;display:flex;flex-wrap:wrap;margin:1em 0;position:relative}.md-typeset .tabbed-set>input{height:0;opacity:0;position:absolute;width:0}.md-typeset .tabbed-set>input:checked+label{border-color:var(--md-accent-fg-color);color:var(--md-accent-fg-color)}.md-typeset .tabbed-set>input:checked+label+.tabbed-content{display:block}.md-typeset .tabbed-set>input:focus+label{outline-color:var(--md-accent-fg-color);outline-style:auto}.md-typeset .tabbed-set>input:not(.focus-visible)+label{-webkit-tap-highlight-color:transparent;outline:none}.md-typeset .tabbed-set>label{border-bottom:.1rem solid transparent;color:var(--md-default-fg-color--light);cursor:pointer;font-size:.64rem;font-weight:700;padding:.9375em 1.25em .78125em;transition:color .25s;width:auto;z-index:1}.md-typeset .tabbed-set>label:hover{color:var(--md-accent-fg-color)}:root{--md-tasklist-icon:url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M1 12C1 5.925 5.925 1 12 1s11 4.925 11 11-4.925 11-11 11S1 18.075 1 12zm16.28-2.72a.75.75 0 0 0-1.06-1.06l-5.97 5.97-2.47-2.47a.75.75 0 0 0-1.06 1.06l3 3a.75.75 0 0 0 1.06 0l6.5-6.5z"/></svg>');--md-tasklist-icon--checked:url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M1 12C1 5.925 5.925 1 12 1s11 4.925 11 11-4.925 11-11 11S1 18.075 1 12zm16.28-2.72a.75.75 0 0 0-1.06-1.06l-5.97 5.97-2.47-2.47a.75.75 0 0 0-1.06 1.06l3 3a.75.75 0 0 0 1.06 0l6.5-6.5z"/></svg>')}.md-typeset .task-list-item{list-style-type:none;position:relative}.md-typeset .task-list-item [type=checkbox]{left:-2em;position:absolute;top:.45em}[dir=rtl] .md-typeset .task-list-item [type=checkbox]{left:auto;right:-2em}.md-typeset .task-list-control [type=checkbox]{opacity:0;z-index:-1}.md-typeset .task-list-indicator:before{background-color:var(--md-default-fg-color--lightest);content:"";height:1.25em;left:-1.5em;-webkit-mask-image:var(--md-tasklist-icon);mask-image:var(--md-tasklist-icon);-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:contain;mask-size:contain;position:absolute;top:.15em;width:1.25em}[dir=rtl] .md-typeset .task-list-indicator:before{left:auto;right:-1.5em}.md-typeset [type=checkbox]:checked+.task-list-indicator:before{background-color:#00e676;-webkit-mask-image:var(--md-tasklist-icon--checked);mask-image:var(--md-tasklist-icon--checked)}@media screen and (min-width:45em){.md-typeset .inline{float:left;margin-bottom:.8rem;margin-right:.8rem;margin-top:0;width:11.7rem}[dir=rtl] .md-typeset .inline{float:right;margin-left:.8rem;margin-right:0}.md-typeset .inline.end{float:right;margin-left:.8rem;margin-right:0}[dir=rtl] .md-typeset .inline.end{float:left;margin-left:0;margin-right:.8rem}}
+/*# sourceMappingURL=main.ca7ac06f.min.css.map */ \ No newline at end of file
diff --git a/freetype/docs/reference/assets/stylesheets/main.ca7ac06f.min.css.map b/freetype/docs/reference/assets/stylesheets/main.ca7ac06f.min.css.map
new file mode 100644
index 00000000..6b3f10bc
--- /dev/null
+++ b/freetype/docs/reference/assets/stylesheets/main.ca7ac06f.min.css.map
@@ -0,0 +1 @@
+{"version":3,"sources":["src/assets/stylesheets/main/extensions/pymdownx/_keys.scss","src/assets/stylesheets/main.scss","src/assets/stylesheets/main/_reset.scss","src/assets/stylesheets/main/_colors.scss","src/assets/stylesheets/main/_icons.scss","src/assets/stylesheets/main/_typeset.scss","src/assets/stylesheets/utilities/_break.scss","node_modules/material-shadows/material-shadows.scss","src/assets/stylesheets/main/layout/_base.scss","src/assets/stylesheets/main/layout/_announce.scss","src/assets/stylesheets/main/layout/_clipboard.scss","src/assets/stylesheets/main/layout/_content.scss","src/assets/stylesheets/main/layout/_dialog.scss","src/assets/stylesheets/main/layout/_form.scss","src/assets/stylesheets/main/layout/_header.scss","src/assets/stylesheets/main/layout/_footer.scss","src/assets/stylesheets/main/layout/_nav.scss","src/assets/stylesheets/main/layout/_search.scss","src/assets/stylesheets/main/layout/_select.scss","src/assets/stylesheets/main/layout/_sidebar.scss","src/assets/stylesheets/main/layout/_source.scss","src/assets/stylesheets/main/layout/_tabs.scss","src/assets/stylesheets/main/layout/_top.scss","src/assets/stylesheets/main/layout/_version.scss","src/assets/stylesheets/main/extensions/markdown/_admonition.scss","node_modules/material-design-color/material-color.scss","src/assets/stylesheets/main/extensions/markdown/_footnotes.scss","src/assets/stylesheets/main/extensions/markdown/_toc.scss","src/assets/stylesheets/main/extensions/pymdownx/_arithmatex.scss","src/assets/stylesheets/main/extensions/pymdownx/_critic.scss","src/assets/stylesheets/main/extensions/pymdownx/_details.scss","src/assets/stylesheets/main/extensions/pymdownx/_emoji.scss","src/assets/stylesheets/main/extensions/pymdownx/_highlight.scss","src/assets/stylesheets/main/extensions/pymdownx/_tabbed.scss","src/assets/stylesheets/main/extensions/pymdownx/_tasklist.scss","src/assets/stylesheets/main/_modifiers.scss"],"names":[],"mappings":"AAkGQ,gBCwvGR,CC9zGA,KAEE,6BAAA,CAAA,0BAAA,CAAA,yBAAA,CAAA,qBAAA,CADA,qBDzBF,CC8BA,iBAGE,kBD3BF,CC+BA,KACE,QD5BF,CCgCA,qBAIE,uCD7BF,CCiCA,EACE,aAAA,CACA,oBD9BF,CCkCA,GAME,QAAA,CAJA,sBAAA,CADA,aAAA,CAEA,aAAA,CAEA,gBAAA,CADA,SD7BF,CCmCA,MACE,aDhCF,CCoCA,QAEE,eDjCF,CCqCA,IACE,iBDlCF,CCsCA,MACE,wBAAA,CACA,gBDnCF,CCuCA,MAEE,eAAA,CACA,kBDpCF,CCwCA,OAKE,sBAAA,CACA,QAAA,CAFA,mBAAA,CADA,iBAAA,CAFA,QAAA,CACA,SDjCF,CCyCA,MACE,QAAA,CACA,YDtCF,CE9CA,MAGE,sCAAA,CACA,6CAAA,CACA,+CAAA,CACA,gDAAA,CACA,0BAAA,CACA,gDAAA,CACA,kDAAA,CACA,oDAAA,CAGA,6BAAA,CACA,oCAAA,CACA,mCAAA,CACA,0BAAA,CACA,gDAAA,CAGA,4BAAA,CACA,sDAAA,CACA,yBAAA,CACA,+CF2CF,CExCE,QAGE,0BAAA,CACA,0BAAA,CAGA,sCAAA,CACA,iCAAA,CACA,kCAAA,CACA,mCAAA,CACA,mCAAA,CACA,kCAAA,CACA,iCAAA,CACA,+CAAA,CACA,6DAAA,CACA,gEAAA,CACA,4DAAA,CACA,4DAAA,CACA,6DAAA,CAGA,6CAAA,CAGA,+CAAA,CAGA,2CAAA,CAGA,2CAAA,CACA,4CAAA,CAGA,8BAAA,CACA,kCAAA,CACA,qCAAA,CAGA,mDAAA,CACA,mDAAA,CAGA,yBAAA,CACA,+CAAA,CACA,iDAAA,CACA,qCAAA,CACA,2CFwBJ,CG/FE,aAIE,iBAAA,CAHA,aAAA,CAEA,aAAA,CADA,YHoGJ,CIzGA,KACE,kCAAA,CACA,iCJ4GF,CIxGA,WAGE,mCAAA,CACA,oGJ2GF,CIrGA,wBARE,6BJqHF,CI7GA,aAIE,4BAAA,CACA,gFJwGF,CI9FA,MACE,sNAAA,CACA,wNJiGF,CI1FA,YAGE,gCAAA,CAAA,kBAAA,CAFA,eAAA,CACA,eJ8FF,CIzFE,aAPF,YAQI,gBJ4FF,CACF,CIzFE,uGAME,YJ2FJ,CIvFE,eAEE,uCAAA,CAEA,aAAA,CACA,eAAA,CAJA,iBJ8FJ,CIrFE,8BAPE,eAAA,CAGA,qBJgGJ,CI5FE,eAGE,kBAAA,CACA,eAAA,CAHA,oBJ2FJ,CInFE,eAGE,gBAAA,CADA,eAAA,CAGA,qBAAA,CADA,eAAA,CAHA,mBJyFJ,CIjFE,kBACE,eJmFJ,CI/EE,eAEE,eAAA,CACA,qBAAA,CAFA,YJmFJ,CI7EE,8BAGE,uCAAA,CAEA,cAAA,CADA,eAAA,CAEA,qBAAA,CAJA,eJmFJ,CI3EE,eACE,wBJ6EJ,CIzEE,eAGE,+DAAA,CAFA,iBAAA,CACA,cJ4EJ,CIvEE,cACE,+BAAA,CACA,qBJyEJ,CItEI,mCAEE,sBJuEN,CInEI,wCAEE,+BJoEN,CIhEI,4BACE,uCAAA,CACA,oBJkEN,CI7DE,iDAGE,6BAAA,CACA,aJ+DJ,CI5DI,aAPF,iDAQI,oBJiEJ,CACF,CI7DE,iBAIE,wCAAA,CACA,mBAAA,CACA,kCAAA,CAAA,0BAAA,CAJA,eAAA,CADA,uBAAA,CAEA,qBJkEJ,CI5DI,qCAEE,uCAAA,CADA,YJ+DN,CIzDE,wHAQE,4BAAA,CACA,eAAA,CAHA,cAAA,CACA,eJ6DJ,CIvDE,mBACE,kBJyDJ,CIrDE,gBAEE,iBAAA,CACA,eAAA,CAFA,iBJyDJ,CIpDI,qBAOE,kCAAA,CAAA,0BAAA,CADA,eAAA,CALA,aAAA,CACA,QAAA,CAEA,aAAA,CADA,oCAAA,CAOA,+DAAA,CADA,oBAAA,CADA,iBAAA,CAHA,iBJ2DN,CInDM,2BACE,qDJqDR,CIjDM,wCAEE,YAAA,CADA,WJoDR,CI/CM,8CACE,oDJiDR,CI9CQ,oDACE,0CJgDV,CKjGI,wCD2DA,gBACE,iBJyCJ,CItCI,qBACE,eJwCN,CACF,CInCE,gBAOE,4CAAA,CACA,mBAAA,CACA,mKACE,CAPF,gCAAA,CAFA,oBAAA,CAGA,eAAA,CAFA,uBAAA,CAGA,uBAAA,CACA,qBJwCJ,CI9BE,iBAGE,6CAAA,CACA,kCAAA,CAAA,0BAAA,CAHA,aAAA,CACA,qBJkCJ,CI5BE,iBAEE,6DAAA,CACA,WAAA,CAFA,oBJgCJ,CI3BI,oBANF,iBAOI,iBJ8BJ,CI3BI,wEAcE,2CAAA,CACA,mBAAA,CE9SN,gGAAA,CF2SM,gCAAA,CAIA,mBAAA,CAVA,oBAAA,CAOA,eAAA,CARA,MAAA,CAKA,cAAA,CADA,aAAA,CADA,6BAAA,CAAA,0BAAA,CAAA,qBAAA,CAGA,mBAAA,CAPA,iBAAA,CAGA,UJoCN,CACF,CItBE,kBACE,WJwBJ,CIpBE,gCAEE,qBJsBJ,CInBI,oDAEE,aAAA,CADA,sBJuBN,CIjBE,uBAIE,2DAAA,CADA,uCAAA,CAFA,iBAAA,CACA,kBJqBJ,CIhBI,iCAIE,mBAAA,CADA,4DAAA,CADA,cAAA,CADA,mBJqBN,CIbE,eACE,oBJeJ,CIXE,8BAEE,iBAAA,CACA,kBAAA,CACA,SJaJ,CIVI,kDAEE,aAAA,CADA,mBJcN,CITI,oCACE,2BJYN,CITM,0CACE,2BJYR,CIPI,oCACE,kBAAA,CACA,kBJUN,CIPM,wDAEE,aAAA,CADA,mBJWR,CINM,kGAEE,aJUR,CINM,0DACE,eJSR,CILM,oFAEE,yBJSR,CINQ,4HAEE,aAAA,CADA,mBJYV,CIJE,eACE,0BJMJ,CIHI,yBAEE,aAAA,CADA,oBJMN,CIAE,gCAGE,WAAA,CADA,cJGJ,CICI,wDAEE,oBJEN,CIEI,0DAEE,oBJCN,CIGI,oEACE,YJAN,CIKE,mBACE,iBAAA,CAGA,aAAA,CADA,cAAA,CAEA,iBAAA,CAHA,yBAAA,CAAA,sBAAA,CAAA,iBJAJ,CIMI,uBACE,aJJN,CISE,uBAGE,iBAAA,CADA,mBAAA,CADA,eJLJ,CIWE,mBACE,cJTJ,CIaE,+BAKE,2CAAA,CACA,mBAAA,CACA,kEACE,CAPF,oBAAA,CAGA,gBAAA,CAFA,cAAA,CACA,aAAA,CAOA,iBJbJ,CIgBI,aAbF,+BAcI,aJbJ,CACF,CIkBI,iCACE,gBJhBN,CIwBM,8FACE,YJrBR,CIyBM,4FACE,eJtBR,CI2BI,8FAEE,eJzBN,CI4BM,kHACE,gBJzBR,CI8BI,kCAKE,kDAAA,CAFA,gCAAA,CAFA,cAAA,CACA,sBAAA,CAEA,kBJ3BN,CI+BM,oCACE,aJ7BR,CIkCI,kCAGE,4DAAA,CAFA,sBAAA,CACA,kBJ/BN,CIoCI,kCACE,iCJlCN,CIqCM,wCACE,iCAAA,CACA,sDJnCR,CIuCM,iDACE,YJrCR,CI0CI,iCACE,iBJxCN,CI6CE,wCACE,cJ3CJ,CI8CI,8CAQE,UAAA,CAPA,oBAAA,CAEA,YAAA,CACA,gBAAA,CAEA,6BAAA,CAAA,qBAAA,CACA,yBAAA,CAAA,iBAAA,CAFA,kBAAA,CAHA,WJtCN,CIgDI,mEACE,6BAAA,CACA,qDAAA,CAAA,6CJ9CN,CIkDI,oEACE,6BAAA,CACA,sDAAA,CAAA,8CJhDN,CIqDE,wBACE,iBAAA,CACA,eAAA,CACA,iBJnDJ,CIuDE,mBACE,oBAAA,CACA,kBAAA,CACA,eJrDJ,CIwDI,aANF,mBAOI,aJrDJ,CACF,CIwDI,8BACE,aAAA,CAEA,QAAA,CACA,eAAA,CAFA,UJpDN,CO5iBA,KASE,cAAA,CARA,WAAA,CACA,iBPgjBF,CKhZI,oCElKJ,KAaI,gBPyiBF,CACF,CKrZI,oCElKJ,KAkBI,cPyiBF,CACF,COpiBA,KASE,2CAAA,CAPA,YAAA,CACA,qBAAA,CAKA,eAAA,CAHA,eAAA,CAJA,iBAAA,CAGA,UP0iBF,COliBE,aAZF,KAaI,aPqiBF,CACF,CKtZI,wCE5IF,yBAII,cPkiBJ,CACF,COzhBA,SAGE,gBAAA,CADA,iBAAA,CADA,eP8hBF,COxhBA,cACE,YAAA,CACA,qBAAA,CACA,WP2hBF,COxhBE,aANF,cAOI,aP2hBF,CACF,COvhBA,SACE,WP0hBF,COvhBE,gBACE,YAAA,CACA,WAAA,CACA,iBPyhBJ,COphBA,aACE,eAAA,CAEA,sBAAA,CADA,kBPwhBF,CO9gBA,WACE,YPihBF,CO5gBA,WAGE,QAAA,CACA,SAAA,CAHA,iBAAA,CACA,OPihBF,CO5gBE,uCACE,aP8gBJ,CO1gBE,+BAEE,uCAAA,CADA,kBP6gBJ,COvgBA,SASE,2CAAA,CACA,mBAAA,CAHA,gCAAA,CACA,gBAAA,CAHA,YAAA,CAQA,SAAA,CAFA,uCAAA,CALA,mBAAA,CALA,cAAA,CAWA,2BAAA,CARA,UPihBF,COrgBE,eAGE,SAAA,CADA,uBAAA,CAEA,oEACE,CAJF,UP0gBJ,CO5fA,MACE,WP+fF,CQ1pBA,aAEE,0CAAA,CADA,aR6pBF,CQzpBE,aALF,aAMI,YR4pBF,CACF,CQzpBE,oBAGE,+BAAA,CACA,eAAA,CAHA,iBAAA,CACA,eR6pBJ,CSzqBA,MACE,+PT4qBF,CStqBA,cAQE,mBAAA,CADA,0CAAA,CAIA,cAAA,CALA,YAAA,CAGA,uCAAA,CACA,oBAAA,CATA,iBAAA,CAEA,UAAA,CADA,QAAA,CAUA,qBAAA,CAPA,WAAA,CADA,STirBF,CStqBE,aAfF,cAgBI,YTyqBF,CACF,CStqBE,kCAEE,uCAAA,CADA,YTyqBJ,CSpqBE,qBACE,uCTsqBJ,CSlqBE,wCAEE,+BTmqBJ,CS9pBE,oBAKE,6BAAA,CAIA,UAAA,CARA,aAAA,CAEA,cAAA,CACA,aAAA,CAEA,2CAAA,CAAA,mCAAA,CACA,6BAAA,CAAA,qBAAA,CACA,yBAAA,CAAA,iBAAA,CANA,aTuqBJ,CS5pBE,sBACE,cT8pBJ,CS3pBI,2BACE,2CT6pBN,CSvpBI,kEAGE,uDAAA,CADA,+BTypBN,CUhuBA,YACE,WAAA,CAMA,eAAA,CACA,0BV8tBF,CU3tBE,mBACE,qBAAA,CACA,iBV6tBJ,CKxkBI,sCK/IE,kEACE,kBV0tBN,CUvtBM,4EAEE,iBAAA,CADA,mBV0tBR,CUptBI,oEACE,mBVstBN,CUntBM,8EAEE,kBAAA,CADA,kBVstBR,CACF,CU/sBI,0BAGE,UAAA,CAFA,aAAA,CACA,YVktBN,CU7sBI,+BACE,eV+sBN,CUzsBE,oBACE,WAAA,CAEA,0BAAA,CACA,SV2sBJ,CUxsBI,aAPF,oBAQI,YV2sBJ,CACF,CUxsBI,8BACE,UAAA,CAEA,aAAA,CADA,kBV2sBN,CUvsBM,kCACE,oBVysBR,CUpsBI,gCACE,yCVssBN,CUlsBI,wBACE,cAAA,CACA,kBVosBN,CW5xBA,WAUE,2CAAA,CACA,mBAAA,CANA,YAAA,CLPA,gGAAA,CKQA,SAAA,CAEA,iBAAA,CAKA,SAAA,CAJA,mBAAA,CAQA,mBAAA,CAdA,cAAA,CACA,WAAA,CAQA,0BAAA,CAEA,wCACE,CARF,SXsyBF,CWzxBE,aApBF,WAqBI,YX4xBF,CACF,CWzxBE,qBAEE,UAAA,CADA,UX4xBJ,CWvxBE,+BAEE,SAAA,CAIA,mBAAA,CALA,uBAAA,CAEA,kEX0xBJ,CWnxBE,kBACE,gCAAA,CACA,eXqxBJ,CY7zBE,uBAKE,kBAAA,CACA,mBAAA,CAHA,gCAAA,CAFA,oBAAA,CAGA,eAAA,CAFA,kBAAA,CAKA,gEZg0BJ,CY1zBI,gCAEE,2CAAA,CACA,uCAAA,CAFA,gCZ8zBN,CYxzBI,0DAGE,0CAAA,CACA,sCAAA,CAFA,+BZ2zBN,CYpzBE,sBAIE,mBAAA,CACA,uEACE,CAHF,eAAA,CAFA,aAAA,CACA,eAAA,CAMA,0BZozBJ,CYjzBI,wDAEE,wEZkzBN,CY5yBI,+BACE,UZ8yBN,Caj2BA,WAOE,2CAAA,CAGA,0DACE,CALF,gCAAA,CAFA,MAAA,CAHA,uBAAA,CAAA,eAAA,CAEA,OAAA,CADA,KAAA,CAGA,Sbu2BF,Ca71BE,aAfF,WAgBI,Ybg2BF,CACF,Ca71BE,iCACE,gEACE,CAEF,kEb61BJ,Cav1BE,iCACE,2BAAA,CACA,iEby1BJ,Can1BE,kBAEE,kBAAA,CADA,YAAA,CAEA,ebq1BJ,Caj1BE,mBAKE,kBAAA,CAGA,cAAA,CALA,YAAA,CAIA,uCAAA,CAHA,aAAA,CAHA,iBAAA,CAQA,uBAAA,CAHA,qBAAA,CAJA,Sb01BJ,Cah1BI,yBACE,Ubk1BN,Ca90BI,iCACE,oBbg1BN,Ca50BI,uCAEE,uCAAA,CADA,Yb+0BN,Ca10BI,2BACE,YAAA,CACA,ab40BN,CKnuBI,wCQ3GA,2BAMI,Yb40BN,CACF,Caz0BM,8DAKE,iBAAA,CAHA,aAAA,CAEA,aAAA,CADA,Yb60BR,CKlwBI,mCQpEA,iCAII,Ybs0BN,CACF,Can0BM,wCACE,Ybq0BR,Ca9zBQ,+CACE,oBbg0BV,CK7wBI,sCQ7CA,iCAII,Yb0zBN,CACF,CarzBE,kBAEE,YAAA,CACA,cAAA,CAFA,iBAAA,CAGA,8DbuzBJ,CalzBI,oCAGE,SAAA,CAIA,mBAAA,CALA,6BAAA,CAEA,8DACE,CAJF,UbwzBN,Ca/yBM,8CACE,8BbizBR,Ca3yBE,kBACE,WAAA,CAIA,eAAA,CAHA,aAAA,CAIA,kBAAA,CAFA,gBAAA,CADA,kBbgzBJ,Ca1yBI,0DAGE,SAAA,CAIA,mBAAA,CALA,8BAAA,CAEA,8DACE,CAJF,UbgzBN,CavyBM,oEACE,6BbyyBR,CaryBM,4EAGE,SAAA,CAIA,mBAAA,CALA,uBAAA,CAEA,8DACE,CAJF,Sb2yBR,CahyBI,uCAGE,WAAA,CAFA,iBAAA,CACA,UbmyBN,Ca7xBE,mBACE,YAAA,CACA,aAAA,CACA,cAAA,CAEA,+CACE,CAFF,kBbgyBJ,Ca1xBI,8DACE,WAAA,CACA,SAAA,CACA,oCb4xBN,CarxBE,mBACE,YbuxBJ,CK/0BI,mCQuDF,mBAKI,aAAA,CAGA,gBAAA,CADA,iBAAA,CADA,abyxBJ,CapxBI,6BAEE,aAAA,CADA,iBbuxBN,CACF,CK31BI,sCQuDF,mBAmBI,kBbqxBJ,CalxBI,6BACE,mBboxBN,CACF,CcrgCA,WAEE,0CAAA,CADA,+BdygCF,CcrgCE,aALF,WAMI,YdwgCF,CACF,CcrgCE,kBAEE,aAAA,CADA,adwgCJ,CcngCE,iBACE,YAAA,CAGA,uCAAA,CADA,oBAAA,CADA,kBAAA,CAGA,uBdqgCJ,CKx3BI,mCSlJF,iBASI,SdqgCJ,CACF,CclgCI,8CAEE,UdmgCN,Cc//BI,uBACE,UdigCN,CKh3BI,wCSlJA,uBAKI,SdigCN,Cc9/BM,yCACE,YdggCR,CACF,Cc5/BM,iCACE,Wd8/BR,Cc3/BQ,qCACE,oBd6/BV,Ccv/BI,uBACE,WAAA,CACA,gBdy/BN,CKl4BI,wCSzHA,uBAMI,Sdy/BN,CACF,Cct/BM,iCACE,UAAA,CACA,edw/BR,Ccr/BQ,qCACE,oBdu/BV,Cch/BE,kBAEE,WAAA,CAGA,eAAA,CACA,kBAAA,CAHA,6BAAA,CACA,cAAA,CAHA,iBdu/BJ,Cc9+BE,mBACE,YAAA,CACA,adg/BJ,Cc5+BE,sBAME,gBAAA,CAHA,MAAA,CACA,gBAAA,CAGA,UAAA,CAFA,cAAA,CAJA,iBAAA,CACA,Odm/BJ,Ccz+BA,gBACE,gDd4+BF,Ccz+BE,uBACE,YAAA,CACA,cAAA,CACA,6BAAA,CACA,ad2+BJ,Ccv+BE,kCACE,sCdy+BJ,Cct+BI,gFAEE,+Bdu+BN,Ccj+BA,qBAIE,wCAAA,CACA,gBAAA,CAHA,iBAAA,CACA,eAAA,CAFA,Udw+BF,CK98BI,mCS3BJ,qBASI,Udo+BF,CACF,Cch+BE,gCACE,sCdk+BJ,Cc79BA,kBACE,cAAA,CACA,qBdg+BF,CK39BI,mCSPJ,kBAMI,edg+BF,CACF,Cc79BE,wBACE,oBAAA,CAEA,aAAA,CACA,iBAAA,CAFA,Ydi+BJ,Cc59BI,+BACE,ed89BN,Cc19BI,4BAGE,iBAAA,CAFA,gBAAA,CACA,mBd69BN,CehpCA,MACE,0MAAA,CACA,gMAAA,CACA,yNfmpCF,Ce7oCA,QACE,eAAA,CACA,efgpCF,Ce7oCE,eACE,aAAA,CAGA,eAAA,CADA,eAAA,CADA,eAAA,CAGA,sBf+oCJ,Ce5oCI,+BACE,Yf8oCN,Ce3oCM,mCAEE,WAAA,CADA,Uf8oCR,CetoCQ,sFAKE,iBAAA,CAHA,aAAA,CAEA,aAAA,CADA,Yf0oCV,CejoCE,cAGE,eAAA,CAFA,QAAA,CACA,SfooCJ,Ce/nCE,cACE,efioCJ,Ce9nCI,4BACE,efgoCN,Ce7nCM,sCAEE,cAAA,CADA,mBfgoCR,CeznCE,cAKE,cAAA,CAJA,aAAA,CACA,iBAAA,CACA,eAAA,CAIA,uBAAA,CAHA,sBAAA,CAEA,sBf4nCJ,CexnCI,kCACE,uCf0nCN,CetnCI,oCACE,+BfwnCN,CepnCI,oCACE,afsnCN,CelnCI,wCAEE,+BfmnCN,Ce/mCI,4BACE,uCAAA,CACA,oBfinCN,Ce7mCI,0CACE,Yf+mCN,Ce5mCM,yDAKE,6BAAA,CAJA,aAAA,CAEA,WAAA,CACA,qCAAA,CAAA,6BAAA,CAFA,UfinCR,Ce1mCM,kDACE,Yf4mCR,CetmCE,gBACE,YfwmCJ,CKnjCI,wCU9CA,0CAUE,2CAAA,CAHA,YAAA,CACA,qBAAA,CACA,WAAA,CAJA,MAAA,CAHA,iBAAA,CAEA,OAAA,CADA,KAAA,CAGA,SfumCJ,Ce5lCI,+DAEE,eAAA,CACA,ef8lCN,Ce1lCI,gCAQE,qDAAA,CAJA,uCAAA,CAKA,cAAA,CAJA,eAAA,CAHA,aAAA,CAIA,kBAAA,CAHA,wBAAA,CAFA,iBAAA,CAMA,kBf8lCN,CezlCM,8CAIE,aAAA,CAEA,aAAA,CAHA,UAAA,CAIA,YAAA,CANA,iBAAA,CACA,SAAA,CAGA,Yf6lCR,CexlCQ,wDAEE,SAAA,CADA,Wf2lCV,CetlCQ,oDAIE,6BAAA,CAIA,UAAA,CAPA,aAAA,CAEA,WAAA,CAEA,2CAAA,CAAA,mCAAA,CACA,6BAAA,CAAA,qBAAA,CACA,yBAAA,CAAA,iBAAA,CALA,Uf8lCV,CenlCM,8CAEE,2CAAA,CACA,gEACE,CAHF,eAAA,CAIA,gCAAA,CAAA,4BAAA,CACA,kBfolCR,CejlCQ,2DACE,YfmlCV,Ce9kCM,8CAEE,2CAAA,CADA,gCfilCR,Ce5kCM,yCAIE,aAAA,CADA,UAAA,CAEA,YAAA,CACA,aAAA,CALA,iBAAA,CACA,SfklCR,Ce3kCQ,mDAEE,SAAA,CADA,Wf8kCV,CevkCI,+BACE,MfykCN,CerkCI,+BAEE,4DAAA,CADA,SfwkCN,CepkCM,qDACE,oBfskCR,CenkCQ,+DAEE,mBAAA,CADA,mBfskCV,CehkCM,qDACE,+BfkkCR,Ce/jCQ,sHAEE,+BfgkCV,Ce1jCI,+BAEE,YAAA,CACA,mBAAA,CAFA,iBf8jCN,CezjCM,6CAOE,aAAA,CACA,gBAAA,CAHA,aAAA,CACA,iBAAA,CALA,iBAAA,CAEA,WAAA,CADA,OAAA,CAEA,Yf+jCR,CexjCQ,uDAEE,UAAA,CADA,Uf2jCV,CetjCQ,mDAIE,6BAAA,CAIA,UAAA,CAPA,aAAA,CAEA,WAAA,CAEA,2CAAA,CAAA,mCAAA,CACA,6BAAA,CAAA,qBAAA,CACA,yBAAA,CAAA,iBAAA,CALA,Uf8jCV,Ce/iCM,+CACE,mBfijCR,CeziCM,kDACE,ef2iCR,CeviCM,4CAEE,4BAAA,CADA,ef0iCR,CetiCQ,0DACE,mBfwiCV,CeriCU,oEAEE,cAAA,CADA,oBfwiCZ,CeliCQ,kEACE,iBfoiCV,CejiCU,4EAEE,cAAA,CADA,kBfoiCZ,Ce9hCQ,0EACE,mBfgiCV,Ce7hCU,oFAEE,cAAA,CADA,oBfgiCZ,Ce1hCQ,kFACE,mBf4hCV,CezhCU,4FAEE,cAAA,CADA,oBf4hCZ,CenhCE,mBACE,4BfqhCJ,CejhCE,wBACE,YAAA,CAEA,SAAA,CADA,0BAAA,CAEA,oEfmhCJ,Ce9gCI,kCACE,2BfghCN,Ce3gCE,gCAEE,SAAA,CADA,uBAAA,CAEA,qEf6gCJ,CexgCI,8CAEE,kCAAA,CAAA,0BfygCN,CACF,CK5uCI,wCU2OA,0CACE,aAAA,CACA,oBfogCJ,CejgCI,oDAEE,mBAAA,CADA,mBfogCN,Ce//BI,yDACE,UfigCN,Ce7/BI,wDACE,Yf+/BN,Ce3/BI,kDACE,Yf6/BN,Cex/BE,gBAIE,iDAAA,CADA,gCAAA,CAFA,aAAA,CACA,ef4/BJ,CACF,CK9yCM,6DU2TF,6CACE,aAAA,CACA,oBAAA,CACA,sBfs/BJ,Cen/BI,uDAEE,mBAAA,CADA,mBfs/BN,Cej/BI,4DACE,Ufm/BN,Ce/+BI,2DACE,Yfi/BN,Ce7+BI,qDACE,Yf++BN,CACF,CK5yCI,mCUwUE,6CACE,uBfu+BN,Cen+BI,gDACE,Yfq+BN,CACF,CKpzCI,sCUzJJ,QA8eI,oDfm+BF,Ce79BI,8CACE,uBf+9BN,Ce39BI,8CACE,Yf69BN,Cex9BE,wBACE,Yf09BJ,Cet9BE,sEAEE,afu9BJ,Cen9BE,6CACE,Yfq9BJ,Cej9BE,uBACE,aAAA,CACA,efm9BJ,Ceh9BI,kCACE,efk9BN,Ce98BI,qCACE,Yfg9BN,Ce58BI,+BACE,af88BN,Ce38BM,8CACE,aAAA,CACA,SAAA,CACA,mBAAA,CACA,uBf68BR,Cez8BM,2DACE,Sf28BR,Cer8BE,cACE,WAAA,CAEA,YAAA,CACA,yBAAA,CAFA,Wfy8BJ,Cep8BI,wBACE,UAAA,CACA,wBfs8BN,Cel8BI,oBAKE,6BAAA,CAIA,UAAA,CARA,oBAAA,CAEA,WAAA,CAGA,2CAAA,CAAA,mCAAA,CACA,6BAAA,CAAA,qBAAA,CACA,yBAAA,CAAA,iBAAA,CAJA,qBAAA,CAFA,Uf28BN,Ceh8BI,0JAEE,uBfi8BN,Cez7BI,mFAEE,Yf27BN,Cev7BI,4CACE,Yfy7BN,Cet7BM,oDACE,aAAA,CACA,Sfw7BR,Cer7BQ,kEACE,Yfu7BV,Cen7BQ,2EACE,aAAA,CACA,eAAA,CACA,mBAAA,CACA,uBfq7BV,Ce96BI,2CACE,afg7BN,Ce76BM,uEACE,mBf+6BR,Cez6BE,qDAGE,mDAAA,CAFA,aAAA,CACA,oBf46BJ,Cex6BI,oEACE,Yf06BN,CACF,CgB1jDA,MACE,igBhB6jDF,CgBvjDA,WACE,iBhB0jDF,CKh6CI,mCW3JJ,WAKI,ehB0jDF,CACF,CgBvjDE,kBACE,YhByjDJ,CgBrjDE,oBAEE,SAAA,CADA,ShBwjDJ,CKz5CI,wCWhKF,oBAYI,2CAAA,CACA,kBAAA,CAHA,WAAA,CAFA,YAAA,CAGA,eAAA,CAOA,mBAAA,CAZA,iBAAA,CACA,SAAA,CAOA,uBAAA,CACA,4CACE,CAPF,UhB8jDJ,CgBljDI,8BAEE,SAAA,CADA,ahBqjDN,CgBhjDI,+DACE,SAAA,CACA,oChBkjDN,CACF,CKn8CI,mCW7IF,oBA0CI,gCAAA,CACA,cAAA,CAFA,QAAA,CAFA,MAAA,CAFA,cAAA,CACA,KAAA,CAMA,sDACE,CALF,OhBmjDJ,CgBziDI,8BAEE,SAAA,CADA,OhB4iDN,CgBviDI,+DAME,YAAA,CACA,SAAA,CACA,4CACE,CARF,UhB4iDN,CACF,CKt8CI,wCWxFA,+DAII,mBhB8hDN,CACF,CKp/CM,6DW/CF,+DASI,mBhB8hDN,CACF,CKz/CM,6DW/CF,+DAcI,mBhB8hDN,CACF,CgBzhDE,kBAEE,kCAAA,CAAA,0BhB0hDJ,CKx9CI,wCWpEF,kBAWI,WAAA,CAHA,SAAA,CAKA,SAAA,CAPA,cAAA,CACA,KAAA,CAKA,wBAAA,CAEA,mGACE,CALF,UAAA,CADA,ShB+hDJ,CgBnhDI,6DACE,MAAA,CAEA,SAAA,CADA,uBAAA,CAEA,oGhBqhDN,CgB9gDM,uEAEE,SAAA,CADA,OhBihDR,CgB3gDI,iCAEE,SAAA,CADA,UAAA,CAEA,yBhB6gDN,CACF,CKvgDI,mCWjDF,kBAiDI,WAAA,CAEA,eAAA,CAHA,iBAAA,CAIA,8CAAA,CAFA,ahB8gDJ,CgBzgDI,4BACE,UhB2gDN,CACF,CKziDM,6DWkCF,6DAII,ahBugDN,CACF,CKxhDI,sCWYA,6DASI,ahBugDN,CACF,CgBlgDE,iBACE,iBhBogDJ,CKhiDI,mCW2BF,iBAKI,mBhBogDJ,CACF,CgBhgDE,kBAKE,2CAAA,CACA,gCAAA,CAHA,yBAAA,CAFA,iBAAA,CAGA,sBAAA,CAGA,2DACE,CANF,ShBugDJ,CgB5/CI,4BACE,yBhB8/CN,CgB1/CI,6CACE,6BAAA,CAAA,qBhB4/CN,CgB7/CI,oCACE,0BAAA,CAAA,qBhB4/CN,CgB7/CI,yCACE,yBAAA,CAAA,qBhB4/CN,CgB7/CI,+BACE,qBhB4/CN,CgBx/CI,6CAEE,uChBy/CN,CgB3/CI,oCAEE,uChBy/CN,CgB3/CI,yCAEE,uChBy/CN,CgB3/CI,kEAEE,uChBy/CN,CgBr/CI,6BACE,YhBu/CN,CgBn/CI,6DACE,oChBq/CN,CK1iDI,wCWkBF,kBA0CI,eAAA,CADA,aAAA,CADA,UhBs/CJ,CACF,CKpkDI,mCWqCF,kBAoDI,gCAAA,CACA,mBAAA,CAHA,aAAA,CACA,eAAA,CAHA,aAAA,CACA,mBAAA,CAFA,UhB0/CJ,CgBj/CI,4BACE,oBhBm/CN,CgB/+CI,mCACE,gChBi/CN,CgB7+CI,6CACE,uChB++CN,CgBh/CI,oCACE,uChB++CN,CgBh/CI,yCACE,uChB++CN,CgBh/CI,+BACE,uChB++CN,CgB3+CI,wBACE,oChB6+CN,CgBz+CI,6DAGE,2CAAA,CACA,6BAAA,CAHA,gCAAA,CACA,kBhB6+CN,CgBx+CM,wFAEE,uChBy+CR,CgB3+CM,+EAEE,uChBy+CR,CgB3+CM,oFAEE,uChBy+CR,CgB3+CM,wJAEE,uChBy+CR,CACF,CgBn+CE,iBAKE,cAAA,CADA,aAAA,CAHA,iBAAA,CAKA,kCACE,CAJF,YAAA,CADA,ShBy+CJ,CgBh+CI,uBACE,UhBk+CN,CgB99CI,+BAEE,UAAA,CADA,ShBi+CN,CgB79CM,yCAEE,SAAA,CADA,WhBg+CR,CgB59CQ,6CACE,oBhB89CV,CKvmDI,wCW8HA,+BAkBI,UAAA,CADA,ShB69CN,CgBz9CM,yCAEE,SAAA,CADA,WhB49CR,CgBv9CM,+CACE,YhBy9CR,CACF,CKvoDI,mCWiJA,+BAkCI,mBhBw9CN,CgBr9CM,8CACE,YhBu9CR,CACF,CgBl9CI,6BAIE,SAAA,CAIA,mBAAA,CANA,WAAA,CADA,SAAA,CAEA,oBAAA,CAEA,+DhBq9CN,CgB/8CM,uCAEE,UAAA,CADA,UhBk9CR,CKxoDI,wCW0KA,6BAmBI,WAAA,CADA,ShBi9CN,CgB78CM,uCAEE,UAAA,CADA,UhBg9CR,CACF,CgB38CM,gGAGE,SAAA,CACA,mBAAA,CAFA,kBhB88CR,CgBz8CQ,sGACE,UhB28CV,CgBp8CE,mBAKE,6BAAA,CADA,eAAA,CAHA,iBAAA,CAEA,UAAA,CADA,ShBy8CJ,CKjqDI,wCWsNF,mBAUI,QAAA,CADA,UhBu8CJ,CACF,CK1rDI,mCWyOF,mBAgBI,SAAA,CADA,UAAA,CAEA,sBhBs8CJ,CgBn8CI,8DV/YJ,kGAAA,CUkZM,ShBo8CN,CACF,CgB/7CE,uBAKE,kCAAA,CAAA,0BAAA,CAFA,2CAAA,CAFA,WAAA,CACA,eAAA,CAOA,kBhB67CJ,CgB17CI,iEAZF,uBAaI,uBhB67CJ,CACF,CKvuDM,6DW4RJ,uBAkBI,ahB67CJ,CACF,CKttDI,sCWsQF,uBAuBI,ahB67CJ,CACF,CK3tDI,mCWsQF,uBA4BI,YAAA,CAEA,+DAAA,CADA,oBhB87CJ,CgB17CI,kEACE,ehB47CN,CgBx7CI,6BACE,qDhB07CN,CgBt7CI,0CAEE,YAAA,CADA,WhBy7CN,CgBp7CI,gDACE,oDhBs7CN,CgBn7CM,sDACE,0ChBq7CR,CACF,CgB96CA,kBACE,gCAAA,CACA,qBhBi7CF,CgB96CE,wBAKE,qDAAA,CAHA,uCAAA,CACA,gBAAA,CACA,kBAAA,CAHA,eAAA,CAKA,uBhBg7CJ,CK/vDI,mCWyUF,wBAUI,mBhBg7CJ,CgB76CI,kCAEE,cAAA,CADA,oBhBg7CN,CACF,CgB16CE,wBAGE,eAAA,CAFA,QAAA,CACA,ShB66CJ,CgBx6CE,wBACE,2DhB06CJ,CgBv6CI,oCACE,ehBy6CN,CgBp6CE,wBACE,aAAA,CACA,YAAA,CAEA,uBAAA,CADA,gChBu6CJ,CgBn6CI,4DAEE,uDhBo6CN,CgBh6CI,gDACE,mBhBk6CN,CgB75CE,gCAGE,+BAAA,CAGA,cAAA,CALA,aAAA,CAGA,gBAAA,CACA,YAAA,CAHA,mBAAA,CAQA,uBAAA,CAHA,2ChBg6CJ,CKzyDI,mCWkYF,gCAcI,mBhB65CJ,CgB15CI,0CAEE,kBAAA,CADA,oBhB65CN,CACF,CgBx5CI,4EAGE,uDAAA,CADA,+BhB05CN,CgBr5CI,gGAEE,YhBs5CN,CgBl5CI,oCACE,WhBo5CN,CgB/4CE,2BAGE,eAAA,CADA,eAAA,CADA,iBhBm5CJ,CKj0DI,mCW6aF,2BAOI,mBhBi5CJ,CgB94CI,qCAEE,kBAAA,CADA,oBhBi5CN,CACF,CgBz4CM,8DAGE,eAAA,CADA,eAAA,CAEA,eAAA,CAHA,ehB84CR,CgBr4CE,wBAME,uCAAA,CAFA,aAAA,CAFA,MAAA,CAGA,YAAA,CAJA,iBAAA,CAEA,YhB04CJ,CKr0DI,wCWwbF,wBAUI,YhBu4CJ,CACF,CgBp4CI,8BAIE,6BAAA,CAIA,UAAA,CAPA,oBAAA,CAEA,WAAA,CAEA,+CAAA,CAAA,uCAAA,CACA,6BAAA,CAAA,qBAAA,CACA,yBAAA,CAAA,iBAAA,CALA,UhB44CN,CgBl4CI,kCAEE,SAAA,CADA,OhBq4CN,CgBj4CM,wCACE,oBhBm4CR,CgB73CE,yBAGE,gBAAA,CADA,eAAA,CAEA,eAAA,CAHA,ahBk4CJ,CgB33CE,0BASE,2BAAA,CACA,oBAAA,CALA,uCAAA,CAJA,mBAAA,CAKA,gBAAA,CACA,eAAA,CAJA,aAAA,CADA,eAAA,CAEA,eAAA,CAIA,sBhB+3CJ,CK72DI,wCWseF,0BAeI,oBAAA,CADA,ehB83CJ,CACF,CK55DM,6DW+gBJ,0BAqBI,oBAAA,CADA,ehB83CJ,CACF,CgB13CI,+BAEE,4BAAA,CADA,yBhB63CN,CgBv3CE,yBAEE,gBAAA,CACA,iBAAA,CAFA,ahB23CJ,CgBr3CE,uBAEE,4BAAA,CADA,+BhBw3CJ,CiB3jEA,WACE,iBAAA,CACA,SjB8jEF,CiB3jEE,kBAOE,2CAAA,CACA,mBAAA,CACA,kEACE,CAJF,gCAAA,CAHA,QAAA,CAEA,gBAAA,CADA,YAAA,CASA,SAAA,CAZA,iBAAA,CACA,sBAAA,CAUA,mCAAA,CAEA,oEjB2jEJ,CiBrjEI,6EAEE,gBAAA,CAEA,SAAA,CADA,+BAAA,CAEA,8EjBsjEN,CiB/iEI,wBAUE,qCAAA,CAAA,8CAAA,CAFA,mCAAA,CAAA,oCAAA,CACA,YAAA,CAEA,UAAA,CANA,QAAA,CAFA,QAAA,CAIA,kBAAA,CADA,iBAAA,CALA,iBAAA,CACA,KAAA,CAEA,OjBwjEN,CiB5iEE,iBAOE,mBAAA,CAFA,eAAA,CACA,oBAAA,CAJA,QAAA,CADA,kBAAA,CAGA,aAAA,CADA,SjBkjEJ,CiB1iEE,iBACE,kBjB4iEJ,CiBxiEE,iBAME,cAAA,CALA,aAAA,CAIA,YAAA,CADA,kBAAA,CADA,oBAAA,CAOA,uBAAA,CAHA,2CACE,CANF,UjBgjEJ,CiBriEI,2BAEE,mBAAA,CADA,mBjBwiEN,CiBniEI,8CAEE,+BjBoiEN,CiBhiEI,uBACE,qDjBkiEN,CkBjoEA,YAIE,qBAAA,CADA,aAAA,CAGA,gBAAA,CALA,uBAAA,CAAA,eAAA,CACA,UAAA,CAGA,alBqoEF,CkBjoEE,aATF,YAUI,YlBooEF,CACF,CK19DI,wCapKA,qBAQE,2CAAA,CAHA,aAAA,CAEA,WAAA,CAJA,aAAA,CAFA,cAAA,CACA,KAAA,CAOA,uBAAA,CACA,iEACE,CALF,aAAA,CAFA,SlBuoEJ,CkB5nEI,+BAEE,SAAA,CADA,clB+nEN,CkB1nEI,mEZhBJ,sGAAA,CYmBM,6BlB2nEN,CkBxnEM,6EACE,8BlB0nER,CkBrnEI,6CAIE,QAAA,CACA,MAAA,CACA,QAAA,CAEA,eAAA,CAPA,iBAAA,CAEA,OAAA,CAIA,yBAAA,CAAA,qBAAA,CALA,KlB6nEN,CACF,CKhhEI,sCalKJ,YAiEI,QlBqnEF,CkBlnEE,mBACE,WlBonEJ,CACF,CkBhnEE,uBACE,YAAA,CACA,OlBknEJ,CK5hEI,mCaxFF,uBAMI,QlBknEJ,CkB/mEI,8BACE,WlBinEN,CkB7mEI,qCACE,alB+mEN,CkB3mEI,+CACE,kBlB6mEN,CACF,CkBxmEE,wBAIE,kCAAA,CAAA,0BAAA,CAHA,cAAA,CACA,eAAA,CAQA,+DAAA,CADA,oBlBsmEJ,CkBlmEI,8BACE,qDlBomEN,CkBhmEI,2CAEE,YAAA,CADA,WlBmmEN,CkB9lEI,iDACE,oDlBgmEN,CkB7lEM,uDACE,0ClB+lER,CK3iEI,wCa1CF,YAME,gCAAA,CADA,QAAA,CAEA,SAAA,CANA,cAAA,CACA,KAAA,CAMA,sDACE,CALF,OAAA,CADA,SlB8lEF,CkBnlEE,4CAEE,WAAA,CACA,SAAA,CACA,4CACE,CAJF,UlBwlEJ,CACF,CmBnvEA,yBACE,GACE,QnBqvEF,CmBlvEA,GACE,anBovEF,CACF,CmB3vEA,iBACE,GACE,QnBqvEF,CmBlvEA,GACE,anBovEF,CACF,CmBhvEA,wBACE,GAEE,SAAA,CADA,0BnBmvEF,CmB/uEA,IACE,SnBivEF,CmB9uEA,GAEE,SAAA,CADA,uBnBivEF,CACF,CmB7vEA,gBACE,GAEE,SAAA,CADA,0BnBmvEF,CmB/uEA,IACE,SnBivEF,CmB9uEA,GAEE,SAAA,CADA,uBnBivEF,CACF,CmBxuEA,MACE,mgBAAA,CACA,oiBAAA,CACA,0nBAAA,CACA,mhBnB0uEF,CmBpuEA,WAOE,kCAAA,CAAA,0BAAA,CANA,aAAA,CACA,gBAAA,CACA,eAAA,CAEA,uCAAA,CAGA,uBAAA,CAJA,kBnB0uEF,CmBnuEE,iBACE,UnBquEJ,CmBjuEE,iBACE,oBAAA,CAEA,aAAA,CACA,qBAAA,CAFA,UnBquEJ,CmBhuEI,qBAEE,iBAAA,CADA,gBnBmuEN,CmB/tEM,+BAEE,aAAA,CADA,kBnBkuER,CmB5tEI,wCACE,iBAAA,CACA,iBnB8tEN,CmB3tEM,kDAEE,aAAA,CADA,kBAAA,CAGA,cAAA,CADA,kBnB8tER,CmBvtEE,uBACE,oBAAA,CAEA,iBAAA,CADA,6BAAA,CAEA,eAAA,CACA,sBAAA,CACA,qBnBytEJ,CmBrtEE,kBAIE,gBAAA,CACA,oBAAA,CAJA,gBAAA,CAKA,WAAA,CAHA,eAAA,CADA,SnB2tEJ,CmBptEI,uCACE,oCAAA,CAAA,4BnBstEN,CmBjtEE,iBACE,oBnBmtEJ,CmBhtEI,sCACE,mCAAA,CAAA,2BnBktEN,CmB9sEI,wBAME,6BAAA,CAGA,UAAA,CARA,oBAAA,CAEA,YAAA,CACA,kBAAA,CAGA,6BAAA,CAAA,qBAAA,CACA,yBAAA,CAAA,iBAAA,CAHA,uBAAA,CAHA,WnButEN,CmB5sEI,wCACE,iBnB8sEN,CmB1sEI,2BAEE,iBAAA,CADA,cnB6sEN,CmBzsEM,kDAEE,aAAA,CADA,kBnB4sER,CmBtsEI,iCACE,gDAAA,CAAA,wCnBwsEN,CmBpsEI,+BACE,8CAAA,CAAA,sCnBssEN,CmBlsEI,+BACE,8CAAA,CAAA,sCnBosEN,CmBhsEI,sCACE,qDAAA,CAAA,6CnBksEN,CoB92EA,SAIE,2CAAA,CADA,gCAAA,CADA,aAAA,CADA,UpBo3EF,CoB92EE,aAPF,SAQI,YpBi3EF,CACF,CKrsEI,wCerLJ,SAaI,YpBi3EF,CACF,CoB92EE,+BACE,mBpBg3EJ,CoB52EE,eAME,eAAA,CADA,eAAA,CAHA,kBAAA,CACA,SAAA,CACA,kBpBg3EJ,CoB32EI,yBAEE,aAAA,CADA,kBpB82EN,CoBx2EE,eACE,oBAAA,CACA,aAAA,CAEA,kBAAA,CADA,mBpB22EJ,CoBr2EE,eAOE,kCAAA,CAAA,0BAAA,CANA,aAAA,CAEA,eAAA,CADA,gBAAA,CAMA,UAAA,CAJA,uCAAA,CACA,oBAAA,CAIA,8DpBs2EJ,CoBj2EI,iEAGE,aAAA,CACA,SpBi2EN,CoB51EM,2CACE,qBpB81ER,CoB/1EM,2CACE,qBpBi2ER,CoBl2EM,2CACE,qBpBo2ER,CoBr2EM,2CACE,qBpBu2ER,CoBx2EM,2CACE,oBpB02ER,CoB32EM,2CACE,qBpB62ER,CoB92EM,2CACE,qBpBg3ER,CoBj3EM,2CACE,qBpBm3ER,CoBp3EM,4CACE,qBpBs3ER,CoBv3EM,4CACE,oBpBy3ER,CoB13EM,4CACE,qBpB43ER,CoB73EM,4CACE,qBpB+3ER,CoBh4EM,4CACE,qBpBk4ER,CoBn4EM,4CACE,qBpBq4ER,CoBt4EM,4CACE,oBpBw4ER,CoBl4EI,8CAEE,SAAA,CADA,yBAAA,CAEA,wCpBo4EN,CqBp9EA,QAQE,qCAAA,CACA,kBAAA,CAPA,YAAA,CASA,uEACE,CALF,gCAAA,CAHA,WAAA,CACA,0BAAA,CAKA,YAAA,CAJA,aAAA,CALA,uBAAA,CAAA,eAAA,CAaA,uBAAA,CACA,uFACE,CAbF,SrBi+EF,CqB/8EE,kBACE,UrBi9EJ,CqB78EE,8BAEE,SAAA,CACA,mBAAA,CAFA,4BrBi9EJ,CqB38EE,4BAEE,oCAAA,CACA,oBrB48EJ,CsBh/EA,4BACE,GACE,mBtBm/EF,CACF,CsBt/EA,oBACE,GACE,mBtBm/EF,CACF,CsB3+EA,MACE,iQtB6+EF,CsBv+EA,YACE,aAAA,CAEA,eAAA,CADA,atB2+EF,CsBv+EE,qBASE,aAAA,CAEA,cAAA,CAHA,kBAAA,CADA,kBAAA,CAGA,YAAA,CATA,iBAAA,CAKA,UtB0+EJ,CsBl+EI,+BAEE,iBAAA,CADA,mBtBq+EN,CsBh+EI,2BAKE,6BAAA,CAGA,UAAA,CAPA,oBAAA,CAEA,YAAA,CACA,iBAAA,CAEA,yCAAA,CAAA,iCAAA,CACA,6BAAA,CAAA,qBAAA,CALA,WtBw+EN,CsB/9EM,qCAEE,aAAA,CADA,kBtBk+ER,CsB39EE,kBAUE,2CAAA,CACA,mBAAA,CACA,kEACE,CALF,gCAAA,CACA,oBAAA,CAJA,kBAAA,CADA,YAAA,CAWA,SAAA,CARA,aAAA,CADA,SAAA,CALA,iBAAA,CAkBA,gCAAA,CAAA,4BAAA,CAjBA,UAAA,CAcA,+CACE,CAdF,StBy+EJ,CsBt9EI,+EAEE,gBAAA,CACA,SAAA,CACA,sCtBu9EN,CsBj9EI,wBAGE,oCACE,wCAAA,CAAA,gCtBi9EN,CsB78EI,2CACE,sBAAA,CAAA,ctB+8EN,CACF,CsB18EE,kBACE,kBtB48EJ,CsBx8EE,kBAOE,cAAA,CANA,aAAA,CAKA,YAAA,CAFA,kBAAA,CADA,oBAAA,CAQA,uBAAA,CAHA,2CACE,CAJF,kBAAA,CAHA,UtBi9EJ,CsBr8EI,4BAEE,mBAAA,CADA,mBtBw8EN,CsBn8EI,gDAEE,+BtBo8EN,CsBh8EI,wBACE,qDtBk8EN,CuB5jFA,MAEI,2RAAA,CAAA,4MAAA,CAAA,sPAAA,CAAA,8xBAAA,CAAA,kQAAA,CAAA,gbAAA,CAAA,gMAAA,CAAA,kUAAA,CAAA,0VAAA,CAAA,0eAAA,CAAA,kUAAA,CAAA,gMvBqlFJ,CuB1kFE,4CAOE,8CAAA,CACA,+BAAA,CACA,mBAAA,CACA,yEACE,CAPF,mCAAA,CACA,gBAAA,CAJA,iBAAA,CAEA,eAAA,CADA,eAAA,CAIA,uBvBilFJ,CuBxkFI,aAfF,4CAgBI,evB2kFJ,CACF,CuBxkFI,gEAEE,gBAAA,CADA,gCvB2kFN,CuBtkFI,gIAEE,iBAAA,CADA,cvBykFN,CuBpkFI,4FACE,iBvBskFN,CuBlkFI,kFACE,evBokFN,CuBhkFI,0FACE,YvBkkFN,CuB9jFI,8EACE,mBvBgkFN,CuB3jFE,kDAKE,oCAAA,CACA,+BAAA,CAFA,eAAA,CAFA,wBAAA,CACA,8BAAA,CAFA,iBvBkkFJ,CuB1jFI,sEAIE,gBAAA,CADA,gCAAA,CAFA,wBAAA,CACA,8BvB8jFN,CuBxjFI,kFACE,evB0jFN,CuBtjFI,gEAKE,wBCwIU,CDpIV,UAAA,CALA,WAAA,CAFA,UAAA,CAIA,kDAAA,CAAA,0CAAA,CACA,6BAAA,CAAA,qBAAA,CACA,yBAAA,CAAA,iBAAA,CAPA,iBAAA,CAEA,UvB8jFN,CuBrjFM,oFAEE,SAAA,CADA,WvBwjFR,CuBjjFI,gGACE,YvBmjFN,CuBriFE,sDACE,oBvBwiFJ,CuBpiFE,8DACE,oCAAA,CACA,oBvBuiFJ,CuBpiFI,4EACE,wBAdG,CAeH,kDAAA,CAAA,0CAAA,CACA,6BAAA,CAAA,qBAAA,CACA,yBAAA,CAAA,iBvBsiFN,CuBpjFE,gLACE,oBvBujFJ,CuBnjFE,wMACE,mCAAA,CACA,oBvBsjFJ,CuBnjFI,kPACE,wBAdG,CAeH,sDAAA,CAAA,8CAAA,CACA,6BAAA,CAAA,qBAAA,CACA,yBAAA,CAAA,iBvBqjFN,CuBnkFE,4GACE,oBvBskFJ,CuBlkFE,4HACE,mCAAA,CACA,oBvBqkFJ,CuBlkFI,wJACE,wBAdG,CAeH,kDAAA,CAAA,0CAAA,CACA,6BAAA,CAAA,qBAAA,CACA,yBAAA,CAAA,iBvBokFN,CuBllFE,0KACE,oBvBqlFJ,CuBjlFE,kMACE,mCAAA,CACA,oBvBolFJ,CuBjlFI,4OACE,wBAdG,CAeH,iDAAA,CAAA,yCAAA,CACA,6BAAA,CAAA,qBAAA,CACA,yBAAA,CAAA,iBvBmlFN,CuBjmFE,0KACE,oBvBomFJ,CuBhmFE,kMACE,kCAAA,CACA,oBvBmmFJ,CuBhmFI,4OACE,wBAdG,CAeH,qDAAA,CAAA,6CAAA,CACA,6BAAA,CAAA,qBAAA,CACA,yBAAA,CAAA,iBvBkmFN,CuBhnFE,wKACE,oBvBmnFJ,CuB/mFE,gMACE,oCAAA,CACA,oBvBknFJ,CuB/mFI,0OACE,wBAdG,CAeH,sDAAA,CAAA,8CAAA,CACA,6BAAA,CAAA,qBAAA,CACA,yBAAA,CAAA,iBvBinFN,CuB/nFE,wLACE,oBvBkoFJ,CuB9nFE,gNACE,mCAAA,CACA,oBvBioFJ,CuB9nFI,0PACE,wBAdG,CAeH,qDAAA,CAAA,6CAAA,CACA,6BAAA,CAAA,qBAAA,CACA,yBAAA,CAAA,iBvBgoFN,CuB9oFE,8KACE,oBvBipFJ,CuB7oFE,sMACE,mCAAA,CACA,oBvBgpFJ,CuB7oFI,gPACE,wBAdG,CAeH,qDAAA,CAAA,6CAAA,CACA,6BAAA,CAAA,qBAAA,CACA,yBAAA,CAAA,iBvB+oFN,CuB7pFE,kHACE,oBvBgqFJ,CuB5pFE,kIACE,mCAAA,CACA,oBvB+pFJ,CuB5pFI,8JACE,wBAdG,CAeH,oDAAA,CAAA,4CAAA,CACA,6BAAA,CAAA,qBAAA,CACA,yBAAA,CAAA,iBvB8pFN,CuB5qFE,oDACE,oBvB+qFJ,CuB3qFE,4DACE,kCAAA,CACA,oBvB8qFJ,CuB3qFI,0EACE,wBAdG,CAeH,iDAAA,CAAA,yCAAA,CACA,6BAAA,CAAA,qBAAA,CACA,yBAAA,CAAA,iBvB6qFN,CuB3rFE,4DACE,oBvB8rFJ,CuB1rFE,oEACE,oCAAA,CACA,oBvB6rFJ,CuB1rFI,kFACE,wBAdG,CAeH,qDAAA,CAAA,6CAAA,CACA,6BAAA,CAAA,qBAAA,CACA,yBAAA,CAAA,iBvB4rFN,CuB1sFE,8GACE,oBvB6sFJ,CuBzsFE,8HACE,kCAAA,CACA,oBvB4sFJ,CuBzsFI,0JACE,wBAdG,CAeH,mDAAA,CAAA,2CAAA,CACA,6BAAA,CAAA,qBAAA,CACA,yBAAA,CAAA,iBvB2sFN,CyBx2FA,MACE,wMzB22FF,CyBl2FE,sBACE,uCAAA,CACA,gBzBq2FJ,CyBl2FI,yBACE,azBo2FN,CyBh2FM,4BACE,sBzBk2FR,CyB/1FQ,mCACE,gCzBi2FV,CyB71FQ,yGAGE,SAAA,CADA,uBzB+1FV,CyB11FQ,yCACE,YzB41FV,CyBr1FE,0BAEE,eAAA,CADA,ezBw1FJ,CyBp1FI,+BACE,oBzBs1FN,CyBj1FE,8BAEE,+BAAA,CADA,oBAAA,CAGA,WAAA,CAGA,SAAA,CADA,4BAAA,CAEA,4DACE,CAJF,0BzBq1FJ,CyB50FI,aAdF,8BAeI,+BAAA,CAEA,SAAA,CADA,uBzBg1FJ,CACF,CyB50FI,wCACE,6BzB80FN,CyB10FI,oCACE,+BzB40FN,CyBx0FI,qCAIE,6BAAA,CAIA,UAAA,CAPA,oBAAA,CAEA,YAAA,CAEA,2CAAA,CAAA,mCAAA,CACA,6BAAA,CAAA,qBAAA,CACA,yBAAA,CAAA,iBAAA,CALA,WzBg1FN,CyBp0FQ,mDACE,oBzBs0FV,CyB/zFE,kCAEE,kBAAA,CACA,kBAAA,CAFA,mBzBm0FJ,CyB9zFI,gDACE,YzBg0FN,CyB3zFE,+BAEE,mBAAA,CACA,mBAAA,CAFA,mBzB+zFJ,C0Br7FE,wBAGE,yCAAA,CAFA,oBAAA,CACA,iBAAA,CAEA,SAAA,CACA,mC1Bw7FJ,C0Bn7FI,aAVF,wBAWI,Y1Bs7FJ,CACF,C0Bn7FI,kCAEE,aAAA,CADA,kB1Bs7FN,C0Bh7FE,6FAGE,SAAA,CACA,mC1Bk7FJ,C0B56FE,4FAGE,+B1B86FJ,C0Bv6FE,oBACE,wB1By6FJ,C0Br6FE,kEAGE,mB1Bu6FJ,C0Bp6FI,uFAIE,UAAA,CAHA,aAAA,CACA,kBAAA,CACA,kB1By6FN,C0Bn6FE,sBACE,mB1Bq6FJ,C0Bl6FI,6BAIE,UAAA,CAHA,aAAA,CACA,mBAAA,CACA,mB1Bq6FN,C0B/5FE,4CAEE,mB1Bi6FJ,C0B95FI,0DAIE,UAAA,CAHA,aAAA,CACA,kBAAA,CACA,kB1Bk6FN,C2Br/FE,2BACE,a3Bw/FJ,CKv0FI,wCsBlLF,2BAKI,e3Bw/FJ,CACF,C2Br/FI,6BAGE,yBAAA,CACA,eAAA,CACA,iBAAA,CAJA,yBAAA,CAAA,sBAAA,CAAA,iB3B0/FN,C4BpgGE,0EAGE,kCAAA,CAAA,0B5BugGJ,C4BngGE,uBACE,4C5BqgGJ,C4BjgGE,uBACE,4C5BmgGJ,C4B//FE,4BACE,qC5BigGJ,C4B9/FI,mCACE,a5BggGN,C4B5/FI,kCACE,a5B8/FN,C4Bz/FE,0BAME,eAAA,CALA,aAAA,CACA,YAAA,CAGA,aAAA,CADA,kBAAA,CADA,mB5B8/FJ,C4Bx/FI,uCACE,e5B0/FN,C4Bt/FI,sCACE,kB5Bw/FN,C6B1iGA,MACE,8L7B6iGF,C6BpiGE,oBAGE,iBAAA,CAEA,gBAAA,CADA,a7BsiGJ,C6BliGI,wCACE,uB7BoiGN,C6BhiGI,gCAEE,eAAA,CADA,gB7BmiGN,C6B5hGM,wCACE,mB7B8hGR,C6BzhGI,0BAEE,UAAA,CADA,a7B4hGN,C6BthGE,oBAME,4BAAA,CACA,6BAAA,CACA,cAAA,CALA,aAAA,CACA,eAAA,CACA,+B7ByhGJ,C6BnhGI,8BACE,iC7BqhGN,C6BjhGI,wCAEE,uCAAA,CADA,Y7BohGN,C6B/gGI,0BAME,6BAAA,CAMA,UAAA,CAPA,WAAA,CAEA,yCAAA,CAAA,iCAAA,CACA,6BAAA,CAAA,qBAAA,CACA,yBAAA,CAAA,iBAAA,CARA,iBAAA,CAEA,WAAA,CADA,SAAA,CAQA,sBAAA,CACA,yBAAA,CAPA,U7ByhGN,C6B9gGM,oCAEE,UAAA,CADA,UAAA,CAEA,wB7BghGR,C6B3gGI,wEAEE,Y7B4gGN,C8BpmGE,+DAGE,mBAAA,CACA,cAAA,CACA,uB9BumGJ,C8BpmGI,2EAGE,iBAAA,CADA,eAAA,CADA,a9B0mGN,C+BrnGE,6BAEE,sC/BwnGJ,C+BrnGE,cACE,yC/BunGJ,C+BpnGE,sIASE,oC/BsnGJ,C+BnnGE,2EAKE,qC/BqnGJ,C+BlnGE,wGAOE,oC/BonGJ,C+BjnGE,yFAME,qC/BmnGJ,C+BhnGE,6BAEE,kC/BknGJ,C+B/mGE,6CAGE,sC/BinGJ,C+B9mGE,4DAIE,sC/BgnGJ,C+B7mGE,4DAIE,qC/B+mGJ,C+B5mGE,yFAME,qC/B8mGJ,C+B3mGE,2EAKE,sC/B6mGJ,C+B1mGE,wHAQE,qC/B4mGJ,C+BzmGE,8BAIE,mBAAA,CAFA,gBAAA,CACA,gB/B4mGJ,C+BxmGE,eACE,4C/B0mGJ,C+BvmGE,eACE,4C/BymGJ,C+BrmGE,gBAIE,wCAAA,CAHA,aAAA,CACA,wBAAA,CACA,wB/BwmGJ,C+BnmGE,iCAQE,wCAAA,CACA,+DAAA,CAFA,uCAAA,CAGA,0BAAA,CAPA,UAAA,CADA,oBAAA,CAGA,2BAAA,CADA,2BAAA,CAEA,2BAAA,CALA,uBAAA,CAAA,eAAA,CAUA,wBAAA,CAAA,qBAAA,CAAA,oBAAA,CAAA,gB/BqmGJ,C+B5lGA,gBACE,iBAAA,CACA,e/B+lGF,C+B3lGE,yCAEE,aAAA,CACA,S/B6lGJ,C+BxlGE,mBACE,Y/B0lGJ,C+BrlGE,oBACE,Q/BulGJ,C+BllGE,yBAIE,wCAAA,CADA,eAAA,CADA,oDAAA,CAGA,wBAAA,CAAA,qBAAA,CAAA,oBAAA,CAAA,gB/BolGJ,C+BhlGE,2BAEE,+DAAA,CADA,2B/BmlGJ,C+B/kGI,+BACE,uCAAA,CACA,gB/BilGN,C+B5kGE,sBACE,MAAA,CACA,e/B8kGJ,C+BpkGE,4BAGE,mBAAA,CADA,aAAA,CADA,Y/BykGJ,C+BpkGI,iCACE,e/BskGN,CKrmGI,wC0BuCA,uBACE,iB/BikGJ,C+B9jGI,4BACE,eAAA,CACA,e/BgkGN,C+B5jGI,4BACE,e/B8jGN,C+BzjGE,4BAEE,eAAA,CADA,iB/B4jGJ,C+BxjGI,iCACE,eAAA,CACA,e/B0jGN,CACF,CDxyGI,yDAKE,+BAAA,CACA,8BAAA,CAFA,aAAA,CADA,QAAA,CADA,iBC+yGN,CDvyGI,uBAEE,uCAAA,CADA,cC0yGN,CDpvGQ,kCAEE,WAnDgB,CAkDhB,kBCuvGV,CDxvGQ,uCAEE,WAnDgB,CAkDhB,kBC2vGV,CD5vGQ,wCAEE,WAnDgB,CAkDhB,kBC+vGV,CDhwGQ,sCAEE,WAnDgB,CAkDhB,kBCmwGV,CDpwGQ,2CAEE,WAnDgB,CAkDhB,kBCuwGV,CDxwGQ,4CAEE,WAnDgB,CAkDhB,kBC2wGV,CD5wGQ,sCAEE,WAnDgB,CAkDhB,kBC+wGV,CDhxGQ,2CAEE,WAnDgB,CAkDhB,kBCmxGV,CDpxGQ,4CAEE,WAnDgB,CAkDhB,kBCuxGV,CDxxGQ,mCAEE,WAnDgB,CAkDhB,kBC2xGV,CD5xGQ,wCAEE,WAnDgB,CAkDhB,kBC+xGV,CDhyGQ,yCAEE,WAnDgB,CAkDhB,kBCmyGV,CDpyGQ,qCAEE,WAnDgB,CAkDhB,kBCuyGV,CDxyGQ,0CAEE,WAnDgB,CAkDhB,kBC2yGV,CD5yGQ,2CAEE,WAnDgB,CAkDhB,kBC+yGV,CDhzGQ,oCAEE,WAnDgB,CAkDhB,kBCmzGV,CDpzGQ,yCAEE,WAnDgB,CAkDhB,kBCuzGV,CDxzGQ,0CAEE,WAnDgB,CAkDhB,kBC2zGV,CD5zGQ,oCAEE,WAnDgB,CAkDhB,kBC+zGV,CDh0GQ,yCAEE,WAnDgB,CAkDhB,kBCm0GV,CDp0GQ,0CAEE,WAnDgB,CAkDhB,kBCu0GV,CDx0GQ,sCAEE,WAnDgB,CAkDhB,kBC20GV,CD50GQ,2CAEE,WAnDgB,CAkDhB,kBC+0GV,CDh1GQ,4CAEE,WAnDgB,CAkDhB,kBCm1GV,CDp1GQ,yCAEE,WAnDgB,CAkDhB,kBCu1GV,CDx1GQ,yCAEE,WAnDgB,CAkDhB,kBC21GV,CD51GQ,0CAEE,WAnDgB,CAkDhB,kBC+1GV,CDh2GQ,uCAEE,WAnDgB,CAkDhB,kBCm2GV,CDp2GQ,wCAEE,WAnDgB,CAkDhB,kBCu2GV,CDx2GQ,sCAEE,WAnDgB,CAkDhB,kBC22GV,CD52GQ,wCAEE,WAnDgB,CAkDhB,kBC+2GV,CDh3GQ,oCAEE,WAnDgB,CAkDhB,kBCm3GV,CDp3GQ,2CAEE,WAnDgB,CAkDhB,kBCu3GV,CDx3GQ,qCAEE,WAnDgB,CAkDhB,kBC23GV,CD53GQ,oCAEE,WAnDgB,CAkDhB,kBC+3GV,CDh4GQ,kCAEE,WAnDgB,CAkDhB,kBCm4GV,CDp4GQ,qCAEE,WAnDgB,CAkDhB,kBCu4GV,CDx4GQ,mCAEE,WAnDgB,CAkDhB,kBC24GV,CD54GQ,qCAEE,WAnDgB,CAkDhB,kBC+4GV,CDh5GQ,wCAEE,WAnDgB,CAkDhB,kBCm5GV,CDp5GQ,sCAEE,WAnDgB,CAkDhB,kBCu5GV,CDx5GQ,2CAEE,WAnDgB,CAkDhB,kBC25GV,CD94GQ,iCAEE,WARgB,CAOhB,iBCi5GV,CDl5GQ,uCAEE,WARgB,CAOhB,iBCq5GV,CDt5GQ,mCAEE,WARgB,CAOhB,iBCy5GV,CgC5+GE,4BAIE,yDAAA,CAHA,YAAA,CACA,QAAA,CACA,UhCg/GJ,CgC5+GI,aAPF,4BAQI,aAAA,CACA,OhC++GJ,CACF,CgC3+GI,wJAGE,QhC6+GN,CgC1+GM,uKACE,wBAAA,CACA,yBhC8+GR,CgCz+GI,wCACE,QhC2+GN,CgCt+GE,wBAKE,mBAAA,CAHA,YAAA,CACA,cAAA,CACA,YAAA,CAHA,iBhC4+GJ,CgCl+GI,8BAGE,QAAA,CACA,SAAA,CAHA,iBAAA,CACA,OhCs+GN,CgCj+GM,4CAEE,sCAAA,CADA,+BhCo+GR,CgCh+GQ,4DACE,ahCk+GV,CgC79GM,0CAEE,uCAAA,CADA,kBhCg+GR,CgC39GM,wDAEE,uCAAA,CADA,YhC89GR,CgCx9GI,8BAOE,qCAAA,CAHA,uCAAA,CAIA,cAAA,CAFA,gBAAA,CADA,eAAA,CAFA,+BAAA,CAMA,qBAAA,CAPA,UAAA,CADA,ShCk+GN,CgCv9GM,oCACE,+BhCy9GR,CiCpjHA,MACE,mVAAA,CAEA,4VjCwjHF,CiC9iHE,4BAEE,oBAAA,CADA,iBjCkjHJ,CiC7iHI,4CAGE,SAAA,CAFA,iBAAA,CACA,SjCgjHN,CiC5iHM,sDAEE,SAAA,CADA,UjC+iHR,CiCxiHE,+CAEE,SAAA,CADA,UjC2iHJ,CiCtiHE,wCAME,qDAAA,CAIA,UAAA,CALA,aAAA,CAFA,WAAA,CAIA,0CAAA,CAAA,kCAAA,CACA,6BAAA,CAAA,qBAAA,CACA,yBAAA,CAAA,iBAAA,CARA,iBAAA,CACA,SAAA,CAEA,YjC8iHJ,CiCriHI,kDAEE,SAAA,CADA,YjCwiHN,CiCliHE,gEACE,wBT8Va,CS7Vb,mDAAA,CAAA,2CjCoiHJ,CK/7GI,mC6B5JA,oBACE,UAAA,CAIA,mBAAA,CADA,kBAAA,CADA,YAAA,CADA,alCkmHJ,CkC5lHI,8BACE,WAAA,CAEA,iBAAA,CADA,clC+lHN,CkC1lHI,wBACE,WAAA,CAEA,iBAAA,CADA,clC6lHN,CkCzlHM,kCACE,UAAA,CAEA,aAAA,CADA,kBlC4lHR,CACF","file":"src/assets/stylesheets/main.scss","sourcesContent":["////\n/// Copyright (c) 2016-2021 Martin Donath <martin.donath@squidfunk.com>\n///\n/// Permission is hereby granted, free of charge, to any person obtaining a\n/// copy of this software and associated documentation files (the \"Software\"),\n/// to deal in the Software without restriction, including without limitation\n/// the rights to use, copy, modify, merge, publish, distribute, sublicense,\n/// and/or sell copies of the Software, and to permit persons to whom the\n/// Software is furnished to do so, subject to the following conditions:\n///\n/// The above copyright notice and this permission notice shall be included in\n/// all copies or substantial portions of the Software.\n///\n/// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n/// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n/// FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL\n/// THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n/// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n/// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER\n/// DEALINGS\n////\n\n// ----------------------------------------------------------------------------\n// Rules\n// ----------------------------------------------------------------------------\n\n// Scoped in typesetted content to match specificity of regular content\n.md-typeset {\n\n // Keyboard key\n .keys {\n\n // Keyboard key icon\n kbd::before,\n kbd::after {\n position: relative;\n margin: 0;\n color: inherit;\n -moz-osx-font-smoothing: initial;\n -webkit-font-smoothing: initial;\n }\n\n // Surrounding text\n span {\n padding: 0 px2em(3.2px);\n color: var(--md-default-fg-color--light);\n }\n\n // Define keyboard keys with left icon\n @each $name, $code in (\n\n // Modifiers\n \"alt\": \"\\2387\",\n \"left-alt\": \"\\2387\",\n \"right-alt\": \"\\2387\",\n \"command\": \"\\2318\",\n \"left-command\": \"\\2318\",\n \"right-command\": \"\\2318\",\n \"control\": \"\\2303\",\n \"left-control\": \"\\2303\",\n \"right-control\": \"\\2303\",\n \"meta\": \"\\25C6\",\n \"left-meta\": \"\\25C6\",\n \"right-meta\": \"\\25C6\",\n \"option\": \"\\2325\",\n \"left-option\": \"\\2325\",\n \"right-option\": \"\\2325\",\n \"shift\": \"\\21E7\",\n \"left-shift\": \"\\21E7\",\n \"right-shift\": \"\\21E7\",\n \"super\": \"\\2756\",\n \"left-super\": \"\\2756\",\n \"right-super\": \"\\2756\",\n \"windows\": \"\\229E\",\n \"left-windows\": \"\\229E\",\n \"right-windows\": \"\\229E\",\n\n // Other keys\n \"arrow-down\": \"\\2193\",\n \"arrow-left\": \"\\2190\",\n \"arrow-right\": \"\\2192\",\n \"arrow-up\": \"\\2191\",\n \"backspace\": \"\\232B\",\n \"backtab\": \"\\21E4\",\n \"caps-lock\": \"\\21EA\",\n \"clear\": \"\\2327\",\n \"context-menu\": \"\\2630\",\n \"delete\": \"\\2326\",\n \"eject\": \"\\23CF\",\n \"end\": \"\\2913\",\n \"escape\": \"\\238B\",\n \"home\": \"\\2912\",\n \"insert\": \"\\2380\",\n \"page-down\": \"\\21DF\",\n \"page-up\": \"\\21DE\",\n \"print-screen\": \"\\2399\"\n ) {\n .key-#{$name} {\n &::before {\n padding-right: px2em(6.4px);\n content: $code;\n }\n }\n }\n\n // Define keyboard keys with right icon\n @each $name, $code in (\n \"tab\": \"\\21E5\",\n \"num-enter\": \"\\2324\",\n \"enter\": \"\\23CE\"\n ) {\n .key-#{$name} {\n &::after {\n padding-left: px2em(6.4px);\n content: $code;\n }\n }\n }\n }\n}\n","@charset \"UTF-8\";\nhtml {\n box-sizing: border-box;\n text-size-adjust: none;\n}\n\n*,\n*::before,\n*::after {\n box-sizing: inherit;\n}\n\nbody {\n margin: 0;\n}\n\na,\nbutton,\nlabel,\ninput {\n -webkit-tap-highlight-color: transparent;\n}\n\na {\n color: inherit;\n text-decoration: none;\n}\n\nhr {\n display: block;\n box-sizing: content-box;\n height: 0.05rem;\n padding: 0;\n overflow: visible;\n border: 0;\n}\n\nsmall {\n font-size: 80%;\n}\n\nsub,\nsup {\n line-height: 1em;\n}\n\nimg {\n border-style: none;\n}\n\ntable {\n border-collapse: separate;\n border-spacing: 0;\n}\n\ntd,\nth {\n font-weight: 400;\n vertical-align: top;\n}\n\nbutton {\n margin: 0;\n padding: 0;\n font-size: inherit;\n font-family: inherit;\n background: transparent;\n border: 0;\n}\n\ninput {\n border: 0;\n outline: none;\n}\n\n:root {\n --md-default-fg-color: hsla(0, 0%, 0%, 0.87);\n --md-default-fg-color--light: hsla(0, 0%, 0%, 0.54);\n --md-default-fg-color--lighter: hsla(0, 0%, 0%, 0.32);\n --md-default-fg-color--lightest: hsla(0, 0%, 0%, 0.07);\n --md-default-bg-color: hsla(0, 0%, 100%, 1);\n --md-default-bg-color--light: hsla(0, 0%, 100%, 0.7);\n --md-default-bg-color--lighter: hsla(0, 0%, 100%, 0.3);\n --md-default-bg-color--lightest: hsla(0, 0%, 100%, 0.12);\n --md-primary-fg-color: hsla(231, 48%, 48%, 1);\n --md-primary-fg-color--light: hsla(231, 44%, 56%, 1);\n --md-primary-fg-color--dark: hsla(232, 54%, 41%, 1);\n --md-primary-bg-color: hsla(0, 0%, 100%, 1);\n --md-primary-bg-color--light: hsla(0, 0%, 100%, 0.7);\n --md-accent-fg-color: hsla(231, 99%, 66%, 1);\n --md-accent-fg-color--transparent: hsla(231, 99%, 66%, 0.1);\n --md-accent-bg-color: hsla(0, 0%, 100%, 1);\n --md-accent-bg-color--light: hsla(0, 0%, 100%, 0.7);\n}\n:root > * {\n --md-code-fg-color: hsla(200, 18%, 26%, 1);\n --md-code-bg-color: hsla(0, 0%, 96%, 1);\n --md-code-hl-color: hsla(60, 100%, 50%, 0.5);\n --md-code-hl-number-color: hsla(0, 67%, 50%, 1);\n --md-code-hl-special-color: hsla(340, 83%, 47%, 1);\n --md-code-hl-function-color: hsla(291, 45%, 50%, 1);\n --md-code-hl-constant-color: hsla(250, 63%, 60%, 1);\n --md-code-hl-keyword-color: hsla(219, 54%, 51%, 1);\n --md-code-hl-string-color: hsla(150, 63%, 30%, 1);\n --md-code-hl-name-color: var(--md-code-fg-color);\n --md-code-hl-operator-color: var(--md-default-fg-color--light);\n --md-code-hl-punctuation-color: var(--md-default-fg-color--light);\n --md-code-hl-comment-color: var(--md-default-fg-color--light);\n --md-code-hl-generic-color: var(--md-default-fg-color--light);\n --md-code-hl-variable-color: var(--md-default-fg-color--light);\n --md-typeset-color: var(--md-default-fg-color);\n --md-typeset-a-color: var(--md-primary-fg-color);\n --md-typeset-mark-color: hsla(60, 100%, 50%, 0.5);\n --md-typeset-del-color: hsla(6, 90%, 60%, 0.15);\n --md-typeset-ins-color: hsla(150, 90%, 44%, 0.15);\n --md-typeset-kbd-color: hsla(0, 0%, 98%, 1);\n --md-typeset-kbd-accent-color: hsla(0, 100%, 100%, 1);\n --md-typeset-kbd-border-color: hsla(0, 0%, 72%, 1);\n --md-admonition-fg-color: var(--md-default-fg-color);\n --md-admonition-bg-color: var(--md-default-bg-color);\n --md-footer-fg-color: hsla(0, 0%, 100%, 1);\n --md-footer-fg-color--light: hsla(0, 0%, 100%, 0.7);\n --md-footer-fg-color--lighter: hsla(0, 0%, 100%, 0.3);\n --md-footer-bg-color: hsla(0, 0%, 0%, 0.87);\n --md-footer-bg-color--dark: hsla(0, 0%, 0%, 0.32);\n}\n\n.md-icon svg {\n display: block;\n width: 1.2rem;\n height: 1.2rem;\n fill: currentColor;\n}\n\nbody {\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n\nbody,\ninput {\n color: var(--md-typeset-color);\n font-feature-settings: \"kern\", \"liga\";\n font-family: var(--md-text-font-family, _), -apple-system, BlinkMacSystemFont, Helvetica, Arial, sans-serif;\n}\n\ncode,\npre,\nkbd {\n color: var(--md-typeset-color);\n font-feature-settings: \"kern\";\n font-family: var(--md-code-font-family, _), SFMono-Regular, Consolas, Menlo, monospace;\n}\n\n:root {\n --md-typeset-table--ascending: svg-load(\"material/arrow-down.svg\");\n --md-typeset-table--descending: svg-load(\"material/arrow-up.svg\");\n}\n\n.md-typeset {\n font-size: 0.8rem;\n line-height: 1.6;\n color-adjust: exact;\n}\n@media print {\n .md-typeset {\n font-size: 0.68rem;\n }\n}\n.md-typeset ul,\n.md-typeset ol,\n.md-typeset dl,\n.md-typeset figure,\n.md-typeset blockquote,\n.md-typeset pre {\n margin: 1em 0;\n}\n.md-typeset h1 {\n margin: 0 0 1.25em;\n color: var(--md-default-fg-color--light);\n font-weight: 300;\n font-size: 2em;\n line-height: 1.3;\n letter-spacing: -0.01em;\n}\n.md-typeset h2 {\n margin: 1.6em 0 0.64em;\n font-weight: 300;\n font-size: 1.5625em;\n line-height: 1.4;\n letter-spacing: -0.01em;\n}\n.md-typeset h3 {\n margin: 1.6em 0 0.8em;\n font-weight: 400;\n font-size: 1.25em;\n line-height: 1.5;\n letter-spacing: -0.01em;\n}\n.md-typeset h2 + h3 {\n margin-top: 0.8em;\n}\n.md-typeset h4 {\n margin: 1em 0;\n font-weight: 700;\n letter-spacing: -0.01em;\n}\n.md-typeset h5,\n.md-typeset h6 {\n margin: 1.25em 0;\n color: var(--md-default-fg-color--light);\n font-weight: 700;\n font-size: 0.8em;\n letter-spacing: -0.01em;\n}\n.md-typeset h5 {\n text-transform: uppercase;\n}\n.md-typeset hr {\n display: flow-root;\n margin: 1.5em 0;\n border-bottom: 0.05rem solid var(--md-default-fg-color--lightest);\n}\n.md-typeset a {\n color: var(--md-typeset-a-color);\n word-break: break-word;\n}\n.md-typeset a, .md-typeset a::before {\n transition: color 125ms;\n}\n.md-typeset a:focus, .md-typeset a:hover {\n color: var(--md-accent-fg-color);\n}\n.md-typeset a.focus-visible {\n outline-color: var(--md-accent-fg-color);\n outline-offset: 0.2rem;\n}\n.md-typeset code,\n.md-typeset pre,\n.md-typeset kbd {\n color: var(--md-code-fg-color);\n direction: ltr;\n}\n@media print {\n .md-typeset code,\n.md-typeset pre,\n.md-typeset kbd {\n white-space: pre-wrap;\n }\n}\n.md-typeset code {\n padding: 0 0.2941176471em;\n font-size: 0.85em;\n word-break: break-word;\n background-color: var(--md-code-bg-color);\n border-radius: 0.1rem;\n box-decoration-break: clone;\n}\n.md-typeset code:not(.focus-visible) {\n outline: none;\n -webkit-tap-highlight-color: transparent;\n}\n.md-typeset h1 code,\n.md-typeset h2 code,\n.md-typeset h3 code,\n.md-typeset h4 code,\n.md-typeset h5 code,\n.md-typeset h6 code {\n margin: initial;\n padding: initial;\n background-color: transparent;\n box-shadow: none;\n}\n.md-typeset a code {\n color: currentColor;\n}\n.md-typeset pre {\n position: relative;\n display: flow-root;\n line-height: 1.4;\n}\n.md-typeset pre > code {\n display: block;\n margin: 0;\n padding: 0.7720588235em 1.1764705882em;\n overflow: auto;\n word-break: normal;\n box-shadow: none;\n box-decoration-break: slice;\n touch-action: auto;\n scrollbar-width: thin;\n scrollbar-color: var(--md-default-fg-color--lighter) transparent;\n}\n.md-typeset pre > code:hover {\n scrollbar-color: var(--md-accent-fg-color) transparent;\n}\n.md-typeset pre > code::-webkit-scrollbar {\n width: 0.2rem;\n height: 0.2rem;\n}\n.md-typeset pre > code::-webkit-scrollbar-thumb {\n background-color: var(--md-default-fg-color--lighter);\n}\n.md-typeset pre > code::-webkit-scrollbar-thumb:hover {\n background-color: var(--md-accent-fg-color);\n}\n@media screen and (max-width: 44.9375em) {\n .md-typeset > pre {\n margin: 1em -0.8rem;\n }\n .md-typeset > pre code {\n border-radius: 0;\n }\n}\n.md-typeset kbd {\n display: inline-block;\n padding: 0 0.6666666667em;\n color: var(--md-default-fg-color);\n font-size: 0.75em;\n vertical-align: text-top;\n word-break: break-word;\n background-color: var(--md-typeset-kbd-color);\n border-radius: 0.1rem;\n box-shadow: 0 0.1rem 0 0.05rem var(--md-typeset-kbd-border-color), 0 0.1rem 0 var(--md-typeset-kbd-border-color), 0 -0.1rem 0.2rem var(--md-typeset-kbd-accent-color) inset;\n}\n.md-typeset mark {\n color: inherit;\n word-break: break-word;\n background-color: var(--md-typeset-mark-color);\n box-decoration-break: clone;\n}\n.md-typeset abbr {\n text-decoration: none;\n border-bottom: 0.05rem dotted var(--md-default-fg-color--light);\n cursor: help;\n}\n@media (hover: none) {\n .md-typeset abbr {\n position: relative;\n }\n .md-typeset abbr[title]:focus::after, .md-typeset abbr[title]:hover::after {\n box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 1px 5px 0 rgba(0, 0, 0, 0.12), 0 3px 1px -2px rgba(0, 0, 0, 0.2);\n position: absolute;\n left: 0;\n display: inline-block;\n width: auto;\n min-width: max-content;\n max-width: 80%;\n margin-top: 2em;\n padding: 0.2rem 0.3rem;\n color: var(--md-default-bg-color);\n font-size: 0.7rem;\n background-color: var(--md-default-fg-color);\n border-radius: 0.1rem;\n content: attr(title);\n }\n}\n.md-typeset small {\n opacity: 0.75;\n}\n.md-typeset sup,\n.md-typeset sub {\n margin-left: 0.078125em;\n}\n[dir=rtl] .md-typeset sup,\n[dir=rtl] .md-typeset sub {\n margin-right: 0.078125em;\n margin-left: initial;\n}\n.md-typeset blockquote {\n display: flow-root;\n padding-left: 0.6rem;\n color: var(--md-default-fg-color--light);\n border-left: 0.2rem solid var(--md-default-fg-color--lighter);\n}\n[dir=rtl] .md-typeset blockquote {\n padding-right: 0.6rem;\n padding-left: initial;\n border-right: 0.2rem solid var(--md-default-fg-color--lighter);\n border-left: initial;\n}\n.md-typeset ul {\n list-style-type: disc;\n}\n.md-typeset ul,\n.md-typeset ol {\n display: flow-root;\n margin-left: 0.625em;\n padding: 0;\n}\n[dir=rtl] .md-typeset ul,\n[dir=rtl] .md-typeset ol {\n margin-right: 0.625em;\n margin-left: initial;\n}\n.md-typeset ul ol,\n.md-typeset ol ol {\n list-style-type: lower-alpha;\n}\n.md-typeset ul ol ol,\n.md-typeset ol ol ol {\n list-style-type: lower-roman;\n}\n.md-typeset ul li,\n.md-typeset ol li {\n margin-bottom: 0.5em;\n margin-left: 1.25em;\n}\n[dir=rtl] .md-typeset ul li,\n[dir=rtl] .md-typeset ol li {\n margin-right: 1.25em;\n margin-left: initial;\n}\n.md-typeset ul li p,\n.md-typeset ul li blockquote,\n.md-typeset ol li p,\n.md-typeset ol li blockquote {\n margin: 0.5em 0;\n}\n.md-typeset ul li:last-child,\n.md-typeset ol li:last-child {\n margin-bottom: 0;\n}\n.md-typeset ul li ul,\n.md-typeset ul li ol,\n.md-typeset ol li ul,\n.md-typeset ol li ol {\n margin: 0.5em 0 0.5em 0.625em;\n}\n[dir=rtl] .md-typeset ul li ul,\n[dir=rtl] .md-typeset ul li ol,\n[dir=rtl] .md-typeset ol li ul,\n[dir=rtl] .md-typeset ol li ol {\n margin-right: 0.625em;\n margin-left: initial;\n}\n.md-typeset dd {\n margin: 1em 0 1.5em 1.875em;\n}\n[dir=rtl] .md-typeset dd {\n margin-right: 1.875em;\n margin-left: initial;\n}\n.md-typeset img,\n.md-typeset svg {\n max-width: 100%;\n height: auto;\n}\n.md-typeset img[align=left],\n.md-typeset svg[align=left] {\n margin: 1em;\n margin-left: 0;\n}\n.md-typeset img[align=right],\n.md-typeset svg[align=right] {\n margin: 1em;\n margin-right: 0;\n}\n.md-typeset img[align]:only-child,\n.md-typeset svg[align]:only-child {\n margin-top: 0;\n}\n.md-typeset figure {\n display: flow-root;\n width: fit-content;\n max-width: 100%;\n margin: 0 auto;\n text-align: center;\n}\n.md-typeset figure img {\n display: block;\n}\n.md-typeset figcaption {\n max-width: 24rem;\n margin: 1em auto 2em;\n font-style: italic;\n}\n.md-typeset iframe {\n max-width: 100%;\n}\n.md-typeset table:not([class]) {\n display: inline-block;\n max-width: 100%;\n overflow: auto;\n font-size: 0.64rem;\n background-color: var(--md-default-bg-color);\n border-radius: 0.1rem;\n box-shadow: 0 0.2rem 0.5rem rgba(0, 0, 0, 0.05), 0 0 0.05rem rgba(0, 0, 0, 0.1);\n touch-action: auto;\n}\n@media print {\n .md-typeset table:not([class]) {\n display: table;\n }\n}\n.md-typeset table:not([class]) + * {\n margin-top: 1.5em;\n}\n.md-typeset table:not([class]) th > *:first-child,\n.md-typeset table:not([class]) td > *:first-child {\n margin-top: 0;\n}\n.md-typeset table:not([class]) th > *:last-child,\n.md-typeset table:not([class]) td > *:last-child {\n margin-bottom: 0;\n}\n.md-typeset table:not([class]) th:not([align]),\n.md-typeset table:not([class]) td:not([align]) {\n text-align: left;\n}\n[dir=rtl] .md-typeset table:not([class]) th:not([align]),\n[dir=rtl] .md-typeset table:not([class]) td:not([align]) {\n text-align: right;\n}\n.md-typeset table:not([class]) th {\n min-width: 5rem;\n padding: 0.9375em 1.25em;\n color: var(--md-default-bg-color);\n vertical-align: top;\n background-color: var(--md-default-fg-color--light);\n}\n.md-typeset table:not([class]) th a {\n color: inherit;\n}\n.md-typeset table:not([class]) td {\n padding: 0.9375em 1.25em;\n vertical-align: top;\n border-top: 0.05rem solid var(--md-default-fg-color--lightest);\n}\n.md-typeset table:not([class]) tr {\n transition: background-color 125ms;\n}\n.md-typeset table:not([class]) tr:hover {\n background-color: rgba(0, 0, 0, 0.035);\n box-shadow: 0 0.05rem 0 var(--md-default-bg-color) inset;\n}\n.md-typeset table:not([class]) tr:first-child td {\n border-top: 0;\n}\n.md-typeset table:not([class]) a {\n word-break: normal;\n}\n.md-typeset table th[role=columnheader] {\n cursor: pointer;\n}\n.md-typeset table th[role=columnheader]::after {\n display: inline-block;\n width: 1.2em;\n height: 1.2em;\n margin-left: 0.5em;\n vertical-align: sub;\n mask-repeat: no-repeat;\n mask-size: contain;\n content: \"\";\n}\n.md-typeset table th[role=columnheader][aria-sort=ascending]::after {\n background-color: currentColor;\n mask-image: var(--md-typeset-table--ascending);\n}\n.md-typeset table th[role=columnheader][aria-sort=descending]::after {\n background-color: currentColor;\n mask-image: var(--md-typeset-table--descending);\n}\n.md-typeset__scrollwrap {\n margin: 1em -0.8rem;\n overflow-x: auto;\n touch-action: auto;\n}\n.md-typeset__table {\n display: inline-block;\n margin-bottom: 0.5em;\n padding: 0 0.8rem;\n}\n@media print {\n .md-typeset__table {\n display: block;\n }\n}\nhtml .md-typeset__table table {\n display: table;\n width: 100%;\n margin: 0;\n overflow: hidden;\n}\n\nhtml {\n height: 100%;\n overflow-x: hidden;\n font-size: 125%;\n}\n@media screen and (min-width: 100em) {\n html {\n font-size: 137.5%;\n }\n}\n@media screen and (min-width: 125em) {\n html {\n font-size: 150%;\n }\n}\n\nbody {\n position: relative;\n display: flex;\n flex-direction: column;\n width: 100%;\n min-height: 100%;\n font-size: 0.5rem;\n background-color: var(--md-default-bg-color);\n}\n@media print {\n body {\n display: block;\n }\n}\n@media screen and (max-width: 59.9375em) {\n body[data-md-state=lock] {\n position: fixed;\n }\n}\n\n.md-grid {\n max-width: 61rem;\n margin-right: auto;\n margin-left: auto;\n}\n\n.md-container {\n display: flex;\n flex-direction: column;\n flex-grow: 1;\n}\n@media print {\n .md-container {\n display: block;\n }\n}\n\n.md-main {\n flex-grow: 1;\n}\n.md-main__inner {\n display: flex;\n height: 100%;\n margin-top: 1.5rem;\n}\n\n.md-ellipsis {\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n}\n\n.md-toggle {\n display: none;\n}\n\n.md-option {\n position: absolute;\n width: 0;\n height: 0;\n opacity: 0;\n}\n.md-option:checked + label:not([hidden]) {\n display: block;\n}\n.md-option.focus-visible + label {\n outline-style: auto;\n outline-color: var(--md-accent-fg-color);\n}\n\n.md-skip {\n position: fixed;\n z-index: -1;\n margin: 0.5rem;\n padding: 0.3rem 0.5rem;\n color: var(--md-default-bg-color);\n font-size: 0.64rem;\n background-color: var(--md-default-fg-color);\n border-radius: 0.1rem;\n outline-color: var(--md-accent-fg-color);\n transform: translateY(0.4rem);\n opacity: 0;\n}\n.md-skip:focus {\n z-index: 10;\n transform: translateY(0);\n opacity: 1;\n transition: transform 250ms cubic-bezier(0.4, 0, 0.2, 1), opacity 175ms 75ms;\n}\n\n@page {\n margin: 25mm;\n}\n.md-announce {\n overflow: auto;\n background-color: var(--md-footer-bg-color);\n}\n@media print {\n .md-announce {\n display: none;\n }\n}\n.md-announce__inner {\n margin: 0.6rem auto;\n padding: 0 0.8rem;\n color: var(--md-footer-fg-color);\n font-size: 0.7rem;\n}\n\n:root {\n --md-clipboard-icon: svg-load(\"material/content-copy.svg\");\n}\n\n.md-clipboard {\n position: absolute;\n top: 0.5em;\n right: 0.5em;\n z-index: 1;\n width: 1.5em;\n height: 1.5em;\n color: var(--md-default-fg-color--lightest);\n border-radius: 0.1rem;\n outline-color: var(--md-accent-fg-color);\n outline-offset: 0.1rem;\n cursor: pointer;\n transition: color 250ms;\n}\n@media print {\n .md-clipboard {\n display: none;\n }\n}\n.md-clipboard:not(.focus-visible) {\n outline: none;\n -webkit-tap-highlight-color: transparent;\n}\n:hover > .md-clipboard {\n color: var(--md-default-fg-color--light);\n}\n.md-clipboard:focus, .md-clipboard:hover {\n color: var(--md-accent-fg-color);\n}\n.md-clipboard::after {\n display: block;\n width: 1.125em;\n height: 1.125em;\n margin: 0 auto;\n background-color: currentColor;\n mask-image: var(--md-clipboard-icon);\n mask-repeat: no-repeat;\n mask-size: contain;\n content: \"\";\n}\n.md-clipboard--inline {\n cursor: pointer;\n}\n.md-clipboard--inline code {\n transition: color 250ms, background-color 250ms;\n}\n.md-clipboard--inline:focus code, .md-clipboard--inline:hover code {\n color: var(--md-accent-fg-color);\n background-color: var(--md-accent-fg-color--transparent);\n}\n\n.md-content {\n flex-grow: 1;\n overflow: hidden;\n scroll-padding-top: 51.2rem;\n}\n.md-content__inner {\n margin: 0 0.8rem 1.2rem;\n padding-top: 0.6rem;\n}\n@media screen and (min-width: 76.25em) {\n .md-sidebar--primary:not([hidden]) ~ .md-content > .md-content__inner {\n margin-left: 1.2rem;\n }\n [dir=rtl] .md-sidebar--primary:not([hidden]) ~ .md-content > .md-content__inner {\n margin-right: 1.2rem;\n margin-left: 0.8rem;\n }\n .md-sidebar--secondary:not([hidden]) ~ .md-content > .md-content__inner {\n margin-right: 1.2rem;\n }\n [dir=rtl] .md-sidebar--secondary:not([hidden]) ~ .md-content > .md-content__inner {\n margin-right: 0.8rem;\n margin-left: 1.2rem;\n }\n}\n.md-content__inner::before {\n display: block;\n height: 0.4rem;\n content: \"\";\n}\n.md-content__inner > :last-child {\n margin-bottom: 0;\n}\n.md-content__button {\n float: right;\n margin: 0.4rem 0;\n margin-left: 0.4rem;\n padding: 0;\n}\n@media print {\n .md-content__button {\n display: none;\n }\n}\n[dir=rtl] .md-content__button {\n float: left;\n margin-right: 0.4rem;\n margin-left: initial;\n}\n[dir=rtl] .md-content__button svg {\n transform: scaleX(-1);\n}\n.md-typeset .md-content__button {\n color: var(--md-default-fg-color--lighter);\n}\n.md-content__button svg {\n display: inline;\n vertical-align: top;\n}\n\n.md-dialog {\n box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 1px 5px 0 rgba(0, 0, 0, 0.12), 0 3px 1px -2px rgba(0, 0, 0, 0.2);\n position: fixed;\n right: 0.8rem;\n bottom: 0.8rem;\n left: initial;\n z-index: 2;\n min-width: 11.1rem;\n padding: 0.4rem 0.6rem;\n background-color: var(--md-default-fg-color);\n border-radius: 0.1rem;\n transform: translateY(100%);\n opacity: 0;\n transition: transform 0ms 400ms, opacity 400ms;\n pointer-events: none;\n}\n@media print {\n .md-dialog {\n display: none;\n }\n}\n[dir=rtl] .md-dialog {\n right: initial;\n left: 0.8rem;\n}\n.md-dialog[data-md-state=open] {\n transform: translateY(0);\n opacity: 1;\n transition: transform 400ms cubic-bezier(0.075, 0.85, 0.175, 1), opacity 400ms;\n pointer-events: initial;\n}\n.md-dialog__inner {\n color: var(--md-default-bg-color);\n font-size: 0.7rem;\n}\n\n.md-typeset .md-button {\n display: inline-block;\n padding: 0.625em 2em;\n color: var(--md-primary-fg-color);\n font-weight: 700;\n border: 0.1rem solid currentColor;\n border-radius: 0.1rem;\n transition: color 125ms, background-color 125ms, border-color 125ms;\n}\n.md-typeset .md-button--primary {\n color: var(--md-primary-bg-color);\n background-color: var(--md-primary-fg-color);\n border-color: var(--md-primary-fg-color);\n}\n.md-typeset .md-button:focus, .md-typeset .md-button:hover {\n color: var(--md-accent-bg-color);\n background-color: var(--md-accent-fg-color);\n border-color: var(--md-accent-fg-color);\n}\n.md-typeset .md-input {\n height: 1.8rem;\n padding: 0 0.6rem;\n font-size: 0.8rem;\n border-radius: 0.1rem;\n box-shadow: 0 0.2rem 0.5rem rgba(0, 0, 0, 0.1), 0 0.025rem 0.05rem rgba(0, 0, 0, 0.1);\n transition: box-shadow 250ms;\n}\n.md-typeset .md-input:focus, .md-typeset .md-input:hover {\n box-shadow: 0 0.4rem 1rem rgba(0, 0, 0, 0.15), 0 0.025rem 0.05rem rgba(0, 0, 0, 0.15);\n}\n.md-typeset .md-input--stretch {\n width: 100%;\n}\n\n.md-header {\n position: sticky;\n top: 0;\n right: 0;\n left: 0;\n z-index: 2;\n color: var(--md-primary-bg-color);\n background-color: var(--md-primary-fg-color);\n box-shadow: 0 0 0.2rem rgba(0, 0, 0, 0), 0 0.2rem 0.4rem rgba(0, 0, 0, 0);\n}\n@media print {\n .md-header {\n display: none;\n }\n}\n.md-header[data-md-state=shadow] {\n box-shadow: 0 0 0.2rem rgba(0, 0, 0, 0.1), 0 0.2rem 0.4rem rgba(0, 0, 0, 0.2);\n transition: transform 250ms cubic-bezier(0.1, 0.7, 0.1, 1), box-shadow 250ms;\n}\n.md-header[data-md-state=hidden] {\n transform: translateY(-100%);\n transition: transform 250ms cubic-bezier(0.8, 0, 0.6, 1), box-shadow 250ms;\n}\n.md-header__inner {\n display: flex;\n align-items: center;\n padding: 0 0.2rem;\n}\n.md-header__button {\n position: relative;\n z-index: 1;\n margin: 0.2rem;\n padding: 0.4rem;\n color: currentColor;\n vertical-align: middle;\n outline-color: var(--md-accent-fg-color);\n cursor: pointer;\n transition: opacity 250ms;\n}\n.md-header__button:hover {\n opacity: 0.7;\n}\n.md-header__button:not([hidden]) {\n display: inline-block;\n}\n.md-header__button:not(.focus-visible) {\n outline: none;\n -webkit-tap-highlight-color: transparent;\n}\n.md-header__button.md-logo {\n margin: 0.2rem;\n padding: 0.4rem;\n}\n@media screen and (max-width: 76.1875em) {\n .md-header__button.md-logo {\n display: none;\n }\n}\n.md-header__button.md-logo img,\n.md-header__button.md-logo svg {\n display: block;\n width: 1.2rem;\n height: 1.2rem;\n fill: currentColor;\n}\n@media screen and (min-width: 60em) {\n .md-header__button[for=__search] {\n display: none;\n }\n}\n.no-js .md-header__button[for=__search] {\n display: none;\n}\n[dir=rtl] .md-header__button[for=__search] svg {\n transform: scaleX(-1);\n}\n@media screen and (min-width: 76.25em) {\n .md-header__button[for=__drawer] {\n display: none;\n }\n}\n.md-header__topic {\n position: absolute;\n display: flex;\n max-width: 100%;\n transition: transform 400ms cubic-bezier(0.1, 0.7, 0.1, 1), opacity 150ms;\n}\n.md-header__topic + .md-header__topic {\n z-index: -1;\n transform: translateX(1.25rem);\n opacity: 0;\n transition: transform 400ms cubic-bezier(1, 0.7, 0.1, 0.1), opacity 150ms;\n pointer-events: none;\n}\n[dir=rtl] .md-header__topic + .md-header__topic {\n transform: translateX(-1.25rem);\n}\n.md-header__title {\n flex-grow: 1;\n height: 2.4rem;\n margin-right: 0.4rem;\n margin-left: 1rem;\n font-size: 0.9rem;\n line-height: 2.4rem;\n}\n.md-header__title[data-md-state=active] .md-header__topic {\n z-index: -1;\n transform: translateX(-1.25rem);\n opacity: 0;\n transition: transform 400ms cubic-bezier(1, 0.7, 0.1, 0.1), opacity 150ms;\n pointer-events: none;\n}\n[dir=rtl] .md-header__title[data-md-state=active] .md-header__topic {\n transform: translateX(1.25rem);\n}\n.md-header__title[data-md-state=active] .md-header__topic + .md-header__topic {\n z-index: 0;\n transform: translateX(0);\n opacity: 1;\n transition: transform 400ms cubic-bezier(0.1, 0.7, 0.1, 1), opacity 150ms;\n pointer-events: initial;\n}\n.md-header__title > .md-header__ellipsis {\n position: relative;\n width: 100%;\n height: 100%;\n}\n.md-header__option {\n display: flex;\n flex-shrink: 0;\n max-width: 100%;\n white-space: nowrap;\n transition: max-width 0ms 250ms, opacity 250ms 250ms;\n}\n[data-md-toggle=search]:checked ~ .md-header .md-header__option {\n max-width: 0;\n opacity: 0;\n transition: max-width 0ms, opacity 0ms;\n}\n.md-header__source {\n display: none;\n}\n@media screen and (min-width: 60em) {\n .md-header__source {\n display: block;\n width: 11.7rem;\n max-width: 11.7rem;\n margin-left: 1rem;\n }\n [dir=rtl] .md-header__source {\n margin-right: 1rem;\n margin-left: initial;\n }\n}\n@media screen and (min-width: 76.25em) {\n .md-header__source {\n margin-left: 1.4rem;\n }\n [dir=rtl] .md-header__source {\n margin-right: 1.4rem;\n }\n}\n\n.md-footer {\n color: var(--md-footer-fg-color);\n background-color: var(--md-footer-bg-color);\n}\n@media print {\n .md-footer {\n display: none;\n }\n}\n.md-footer__inner {\n padding: 0.2rem;\n overflow: auto;\n}\n.md-footer__link {\n display: flex;\n padding-top: 1.4rem;\n padding-bottom: 0.4rem;\n outline-color: var(--md-accent-fg-color);\n transition: opacity 250ms;\n}\n@media screen and (min-width: 45em) {\n .md-footer__link {\n width: 50%;\n }\n}\n.md-footer__link:focus, .md-footer__link:hover {\n opacity: 0.7;\n}\n.md-footer__link--prev {\n float: left;\n}\n@media screen and (max-width: 44.9375em) {\n .md-footer__link--prev {\n width: 25%;\n }\n .md-footer__link--prev .md-footer__title {\n display: none;\n }\n}\n[dir=rtl] .md-footer__link--prev {\n float: right;\n}\n[dir=rtl] .md-footer__link--prev svg {\n transform: scaleX(-1);\n}\n.md-footer__link--next {\n float: right;\n text-align: right;\n}\n@media screen and (max-width: 44.9375em) {\n .md-footer__link--next {\n width: 75%;\n }\n}\n[dir=rtl] .md-footer__link--next {\n float: left;\n text-align: left;\n}\n[dir=rtl] .md-footer__link--next svg {\n transform: scaleX(-1);\n}\n.md-footer__title {\n position: relative;\n flex-grow: 1;\n max-width: calc(100% - 2.4rem);\n padding: 0 1rem;\n font-size: 0.9rem;\n line-height: 2.4rem;\n}\n.md-footer__button {\n margin: 0.2rem;\n padding: 0.4rem;\n}\n.md-footer__direction {\n position: absolute;\n right: 0;\n left: 0;\n margin-top: -1rem;\n padding: 0 1rem;\n font-size: 0.64rem;\n opacity: 0.7;\n}\n\n.md-footer-meta {\n background-color: var(--md-footer-bg-color--dark);\n}\n.md-footer-meta__inner {\n display: flex;\n flex-wrap: wrap;\n justify-content: space-between;\n padding: 0.2rem;\n}\nhtml .md-footer-meta.md-typeset a {\n color: var(--md-footer-fg-color--light);\n}\nhtml .md-footer-meta.md-typeset a:focus, html .md-footer-meta.md-typeset a:hover {\n color: var(--md-footer-fg-color);\n}\n\n.md-footer-copyright {\n width: 100%;\n margin: auto 0.6rem;\n padding: 0.4rem 0;\n color: var(--md-footer-fg-color--lighter);\n font-size: 0.64rem;\n}\n@media screen and (min-width: 45em) {\n .md-footer-copyright {\n width: auto;\n }\n}\n.md-footer-copyright__highlight {\n color: var(--md-footer-fg-color--light);\n}\n\n.md-footer-social {\n margin: 0 0.4rem;\n padding: 0.2rem 0 0.6rem;\n}\n@media screen and (min-width: 45em) {\n .md-footer-social {\n padding: 0.6rem 0;\n }\n}\n.md-footer-social__link {\n display: inline-block;\n width: 1.6rem;\n height: 1.6rem;\n text-align: center;\n}\n.md-footer-social__link::before {\n line-height: 1.9;\n}\n.md-footer-social__link svg {\n max-height: 0.8rem;\n vertical-align: -25%;\n fill: currentColor;\n}\n\n:root {\n --md-nav-icon--prev: svg-load(\"material/arrow-left.svg\");\n --md-nav-icon--next: svg-load(\"material/chevron-right.svg\");\n --md-toc-icon: svg-load(\"material/table-of-contents.svg\");\n}\n\n.md-nav {\n font-size: 0.7rem;\n line-height: 1.3;\n}\n.md-nav__title {\n display: block;\n padding: 0 0.6rem;\n overflow: hidden;\n font-weight: 700;\n text-overflow: ellipsis;\n}\n.md-nav__title .md-nav__button {\n display: none;\n}\n.md-nav__title .md-nav__button img {\n width: auto;\n height: 100%;\n}\n.md-nav__title .md-nav__button.md-logo img,\n.md-nav__title .md-nav__button.md-logo svg {\n display: block;\n width: 2.4rem;\n height: 2.4rem;\n fill: currentColor;\n}\n.md-nav__list {\n margin: 0;\n padding: 0;\n list-style: none;\n}\n.md-nav__item {\n padding: 0 0.6rem;\n}\n.md-nav__item .md-nav__item {\n padding-right: 0;\n}\n[dir=rtl] .md-nav__item .md-nav__item {\n padding-right: 0.6rem;\n padding-left: 0;\n}\n.md-nav__link {\n display: block;\n margin-top: 0.625em;\n overflow: hidden;\n text-overflow: ellipsis;\n cursor: pointer;\n transition: color 125ms;\n scroll-snap-align: start;\n}\n.md-nav__link[data-md-state=blur] {\n color: var(--md-default-fg-color--light);\n}\n.md-nav__item .md-nav__link--active {\n color: var(--md-typeset-a-color);\n}\n.md-nav__item--nested > .md-nav__link {\n color: inherit;\n}\n.md-nav__link:focus, .md-nav__link:hover {\n color: var(--md-accent-fg-color);\n}\n.md-nav__link.focus-visible {\n outline-color: var(--md-accent-fg-color);\n outline-offset: 0.2rem;\n}\n.md-nav--primary .md-nav__link[for=__toc] {\n display: none;\n}\n.md-nav--primary .md-nav__link[for=__toc] .md-icon::after {\n display: block;\n width: 100%;\n height: 100%;\n mask-image: var(--md-toc-icon);\n background-color: currentColor;\n}\n.md-nav--primary .md-nav__link[for=__toc] ~ .md-nav {\n display: none;\n}\n.md-nav__source {\n display: none;\n}\n@media screen and (max-width: 76.1875em) {\n .md-nav--primary, .md-nav--primary .md-nav {\n position: absolute;\n top: 0;\n right: 0;\n left: 0;\n z-index: 1;\n display: flex;\n flex-direction: column;\n height: 100%;\n background-color: var(--md-default-bg-color);\n }\n .md-nav--primary .md-nav__title,\n.md-nav--primary .md-nav__item {\n font-size: 0.8rem;\n line-height: 1.5;\n }\n .md-nav--primary .md-nav__title {\n position: relative;\n height: 5.6rem;\n padding: 3rem 0.8rem 0.2rem;\n color: var(--md-default-fg-color--light);\n font-weight: 400;\n line-height: 2.4rem;\n white-space: nowrap;\n background-color: var(--md-default-fg-color--lightest);\n cursor: pointer;\n }\n .md-nav--primary .md-nav__title .md-nav__icon {\n position: absolute;\n top: 0.4rem;\n left: 0.4rem;\n display: block;\n width: 1.2rem;\n height: 1.2rem;\n margin: 0.2rem;\n }\n [dir=rtl] .md-nav--primary .md-nav__title .md-nav__icon {\n right: 0.4rem;\n left: initial;\n }\n .md-nav--primary .md-nav__title .md-nav__icon::after {\n display: block;\n width: 100%;\n height: 100%;\n background-color: currentColor;\n mask-image: var(--md-nav-icon--prev);\n mask-repeat: no-repeat;\n mask-size: contain;\n content: \"\";\n }\n .md-nav--primary .md-nav__title ~ .md-nav__list {\n overflow-y: auto;\n background-color: var(--md-default-bg-color);\n box-shadow: 0 0.05rem 0 var(--md-default-fg-color--lightest) inset;\n scroll-snap-type: y mandatory;\n touch-action: pan-y;\n }\n .md-nav--primary .md-nav__title ~ .md-nav__list > :first-child {\n border-top: 0;\n }\n .md-nav--primary .md-nav__title[for=__drawer] {\n color: var(--md-primary-bg-color);\n background-color: var(--md-primary-fg-color);\n }\n .md-nav--primary .md-nav__title .md-logo {\n position: absolute;\n top: 0.2rem;\n left: 0.2rem;\n display: block;\n margin: 0.2rem;\n padding: 0.4rem;\n }\n [dir=rtl] .md-nav--primary .md-nav__title .md-logo {\n right: 0.2rem;\n left: initial;\n }\n .md-nav--primary .md-nav__list {\n flex: 1;\n }\n .md-nav--primary .md-nav__item {\n padding: 0;\n border-top: 0.05rem solid var(--md-default-fg-color--lightest);\n }\n .md-nav--primary .md-nav__item--nested > .md-nav__link {\n padding-right: 2.4rem;\n }\n [dir=rtl] .md-nav--primary .md-nav__item--nested > .md-nav__link {\n padding-right: 0.8rem;\n padding-left: 2.4rem;\n }\n .md-nav--primary .md-nav__item--active > .md-nav__link {\n color: var(--md-typeset-a-color);\n }\n .md-nav--primary .md-nav__item--active > .md-nav__link:focus, .md-nav--primary .md-nav__item--active > .md-nav__link:hover {\n color: var(--md-accent-fg-color);\n }\n .md-nav--primary .md-nav__link {\n position: relative;\n margin-top: 0;\n padding: 0.6rem 0.8rem;\n }\n .md-nav--primary .md-nav__link .md-nav__icon {\n position: absolute;\n top: 50%;\n right: 0.6rem;\n width: 1.2rem;\n height: 1.2rem;\n margin-top: -0.6rem;\n color: inherit;\n font-size: 1.2rem;\n }\n [dir=rtl] .md-nav--primary .md-nav__link .md-nav__icon {\n right: initial;\n left: 0.6rem;\n }\n .md-nav--primary .md-nav__link .md-nav__icon::after {\n display: block;\n width: 100%;\n height: 100%;\n background-color: currentColor;\n mask-image: var(--md-nav-icon--next);\n mask-repeat: no-repeat;\n mask-size: contain;\n content: \"\";\n }\n [dir=rtl] .md-nav--primary .md-nav__icon::after {\n transform: scale(-1);\n }\n .md-nav--primary .md-nav--secondary .md-nav__link {\n position: static;\n }\n .md-nav--primary .md-nav--secondary .md-nav {\n position: static;\n background-color: transparent;\n }\n .md-nav--primary .md-nav--secondary .md-nav .md-nav__link {\n padding-left: 1.4rem;\n }\n [dir=rtl] .md-nav--primary .md-nav--secondary .md-nav .md-nav__link {\n padding-right: 1.4rem;\n padding-left: initial;\n }\n .md-nav--primary .md-nav--secondary .md-nav .md-nav .md-nav__link {\n padding-left: 2rem;\n }\n [dir=rtl] .md-nav--primary .md-nav--secondary .md-nav .md-nav .md-nav__link {\n padding-right: 2rem;\n padding-left: initial;\n }\n .md-nav--primary .md-nav--secondary .md-nav .md-nav .md-nav .md-nav__link {\n padding-left: 2.6rem;\n }\n [dir=rtl] .md-nav--primary .md-nav--secondary .md-nav .md-nav .md-nav .md-nav__link {\n padding-right: 2.6rem;\n padding-left: initial;\n }\n .md-nav--primary .md-nav--secondary .md-nav .md-nav .md-nav .md-nav .md-nav__link {\n padding-left: 3.2rem;\n }\n [dir=rtl] .md-nav--primary .md-nav--secondary .md-nav .md-nav .md-nav .md-nav .md-nav__link {\n padding-right: 3.2rem;\n padding-left: initial;\n }\n .md-nav--secondary {\n background-color: transparent;\n }\n .md-nav__toggle ~ .md-nav {\n display: flex;\n transform: translateX(100%);\n opacity: 0;\n transition: transform 250ms cubic-bezier(0.8, 0, 0.6, 1), opacity 125ms 50ms;\n }\n [dir=rtl] .md-nav__toggle ~ .md-nav {\n transform: translateX(-100%);\n }\n .md-nav__toggle:checked ~ .md-nav {\n transform: translateX(0);\n opacity: 1;\n transition: transform 250ms cubic-bezier(0.4, 0, 0.2, 1), opacity 125ms 125ms;\n }\n .md-nav__toggle:checked ~ .md-nav > .md-nav__list {\n backface-visibility: hidden;\n }\n}\n@media screen and (max-width: 59.9375em) {\n .md-nav--primary .md-nav__link[for=__toc] {\n display: block;\n padding-right: 2.4rem;\n }\n [dir=rtl] .md-nav--primary .md-nav__link[for=__toc] {\n padding-right: 0.8rem;\n padding-left: 2.4rem;\n }\n .md-nav--primary .md-nav__link[for=__toc] .md-icon::after {\n content: \"\";\n }\n .md-nav--primary .md-nav__link[for=__toc] + .md-nav__link {\n display: none;\n }\n .md-nav--primary .md-nav__link[for=__toc] ~ .md-nav {\n display: flex;\n }\n .md-nav__source {\n display: block;\n padding: 0 0.2rem;\n color: var(--md-primary-bg-color);\n background-color: var(--md-primary-fg-color--dark);\n }\n}\n@media screen and (min-width: 60em) and (max-width: 76.1875em) {\n .md-nav--integrated .md-nav__link[for=__toc] {\n display: block;\n padding-right: 2.4rem;\n scroll-snap-align: initial;\n }\n [dir=rtl] .md-nav--integrated .md-nav__link[for=__toc] {\n padding-right: 0.8rem;\n padding-left: 2.4rem;\n }\n .md-nav--integrated .md-nav__link[for=__toc] .md-icon::after {\n content: \"\";\n }\n .md-nav--integrated .md-nav__link[for=__toc] + .md-nav__link {\n display: none;\n }\n .md-nav--integrated .md-nav__link[for=__toc] ~ .md-nav {\n display: flex;\n }\n}\n@media screen and (min-width: 60em) {\n .md-nav--secondary .md-nav__title[for=__toc] {\n scroll-snap-align: start;\n }\n .md-nav--secondary .md-nav__title .md-nav__icon {\n display: none;\n }\n}\n@media screen and (min-width: 76.25em) {\n .md-nav {\n transition: max-height 250ms cubic-bezier(0.86, 0, 0.07, 1);\n }\n .md-nav--primary .md-nav__title[for=__drawer] {\n scroll-snap-align: start;\n }\n .md-nav--primary .md-nav__title .md-nav__icon {\n display: none;\n }\n .md-nav__toggle ~ .md-nav {\n display: none;\n }\n .md-nav__toggle:checked ~ .md-nav, .md-nav__toggle:indeterminate ~ .md-nav {\n display: block;\n }\n .md-nav__item--nested > .md-nav > .md-nav__title {\n display: none;\n }\n .md-nav__item--section {\n display: block;\n margin: 1.25em 0;\n }\n .md-nav__item--section:last-child {\n margin-bottom: 0;\n }\n .md-nav__item--section > .md-nav__link {\n display: none;\n }\n .md-nav__item--section > .md-nav {\n display: block;\n }\n .md-nav__item--section > .md-nav > .md-nav__title {\n display: block;\n padding: 0;\n pointer-events: none;\n scroll-snap-align: start;\n }\n .md-nav__item--section > .md-nav > .md-nav__list > .md-nav__item {\n padding: 0;\n }\n .md-nav__icon {\n float: right;\n width: 0.9rem;\n height: 0.9rem;\n transition: transform 250ms;\n }\n [dir=rtl] .md-nav__icon {\n float: left;\n transform: rotate(180deg);\n }\n .md-nav__icon::after {\n display: inline-block;\n width: 100%;\n height: 100%;\n vertical-align: -0.1rem;\n background-color: currentColor;\n mask-image: var(--md-nav-icon--next);\n mask-repeat: no-repeat;\n mask-size: contain;\n content: \"\";\n }\n .md-nav__item--nested .md-nav__toggle:checked ~ .md-nav__link .md-nav__icon, .md-nav__item--nested .md-nav__toggle:indeterminate ~ .md-nav__link .md-nav__icon {\n transform: rotate(90deg);\n }\n .md-nav--lifted > .md-nav__list > .md-nav__item--nested,\n.md-nav--lifted > .md-nav__title {\n display: none;\n }\n .md-nav--lifted > .md-nav__list > .md-nav__item {\n display: none;\n }\n .md-nav--lifted > .md-nav__list > .md-nav__item--active {\n display: block;\n padding: 0;\n }\n .md-nav--lifted > .md-nav__list > .md-nav__item--active > .md-nav__link {\n display: none;\n }\n .md-nav--lifted > .md-nav__list > .md-nav__item--active > .md-nav > .md-nav__title {\n display: block;\n padding: 0 0.6rem;\n pointer-events: none;\n scroll-snap-align: start;\n }\n .md-nav--lifted .md-nav[data-md-level=\"1\"] {\n display: block;\n }\n .md-nav--lifted .md-nav[data-md-level=\"1\"] > .md-nav__list > .md-nav__item {\n padding-right: 0.6rem;\n }\n .md-nav--integrated .md-nav__link[for=__toc] ~ .md-nav {\n display: block;\n margin-bottom: 1.25em;\n border-left: 0.05rem solid var(--md-primary-fg-color);\n }\n .md-nav--integrated .md-nav__link[for=__toc] ~ .md-nav > .md-nav__title {\n display: none;\n }\n}\n\n:root {\n --md-search-result-icon: svg-load(\"material/file-search-outline.svg\");\n}\n\n.md-search {\n position: relative;\n}\n@media screen and (min-width: 60em) {\n .md-search {\n padding: 0.2rem 0;\n }\n}\n.no-js .md-search {\n display: none;\n}\n.md-search__overlay {\n z-index: 1;\n opacity: 0;\n}\n@media screen and (max-width: 59.9375em) {\n .md-search__overlay {\n position: absolute;\n top: 0.2rem;\n left: -2.2rem;\n width: 2rem;\n height: 2rem;\n overflow: hidden;\n background-color: var(--md-default-bg-color);\n border-radius: 1rem;\n transform-origin: center;\n transition: transform 300ms 100ms, opacity 200ms 200ms;\n pointer-events: none;\n }\n [dir=rtl] .md-search__overlay {\n right: -2.2rem;\n left: initial;\n }\n [data-md-toggle=search]:checked ~ .md-header .md-search__overlay {\n opacity: 1;\n transition: transform 400ms, opacity 100ms;\n }\n}\n@media screen and (min-width: 60em) {\n .md-search__overlay {\n position: fixed;\n top: 0;\n left: 0;\n width: 0;\n height: 0;\n background-color: rgba(0, 0, 0, 0.54);\n cursor: pointer;\n transition: width 0ms 250ms, height 0ms 250ms, opacity 250ms;\n }\n [dir=rtl] .md-search__overlay {\n right: 0;\n left: initial;\n }\n [data-md-toggle=search]:checked ~ .md-header .md-search__overlay {\n width: 100%;\n height: 200vh;\n opacity: 1;\n transition: width 0ms, height 0ms, opacity 250ms;\n }\n}\n@media screen and (max-width: 29.9375em) {\n [data-md-toggle=search]:checked ~ .md-header .md-search__overlay {\n transform: scale(45);\n }\n}\n@media screen and (min-width: 30em) and (max-width: 44.9375em) {\n [data-md-toggle=search]:checked ~ .md-header .md-search__overlay {\n transform: scale(60);\n }\n}\n@media screen and (min-width: 45em) and (max-width: 59.9375em) {\n [data-md-toggle=search]:checked ~ .md-header .md-search__overlay {\n transform: scale(75);\n }\n}\n.md-search__inner {\n backface-visibility: hidden;\n}\n@media screen and (max-width: 59.9375em) {\n .md-search__inner {\n position: fixed;\n top: 0;\n left: 100%;\n z-index: 2;\n width: 100%;\n height: 100%;\n transform: translateX(5%);\n opacity: 0;\n transition: right 0ms 300ms, left 0ms 300ms, transform 150ms 150ms cubic-bezier(0.4, 0, 0.2, 1), opacity 150ms 150ms;\n }\n [data-md-toggle=search]:checked ~ .md-header .md-search__inner {\n left: 0;\n transform: translateX(0);\n opacity: 1;\n transition: right 0ms 0ms, left 0ms 0ms, transform 150ms 150ms cubic-bezier(0.1, 0.7, 0.1, 1), opacity 150ms 150ms;\n }\n [dir=rtl] [data-md-toggle=search]:checked ~ .md-header .md-search__inner {\n right: 0;\n left: initial;\n }\n html [dir=rtl] .md-search__inner {\n right: 100%;\n left: initial;\n transform: translateX(-5%);\n }\n}\n@media screen and (min-width: 60em) {\n .md-search__inner {\n position: relative;\n float: right;\n width: 11.7rem;\n padding: 0.1rem 0;\n transition: width 250ms cubic-bezier(0.1, 0.7, 0.1, 1);\n }\n [dir=rtl] .md-search__inner {\n float: left;\n }\n}\n@media screen and (min-width: 60em) and (max-width: 76.1875em) {\n [data-md-toggle=search]:checked ~ .md-header .md-search__inner {\n width: 23.4rem;\n }\n}\n@media screen and (min-width: 76.25em) {\n [data-md-toggle=search]:checked ~ .md-header .md-search__inner {\n width: 34.4rem;\n }\n}\n.md-search__form {\n position: relative;\n}\n@media screen and (min-width: 60em) {\n .md-search__form {\n border-radius: 0.1rem;\n }\n}\n.md-search__input {\n position: relative;\n z-index: 2;\n padding: 0 2.2rem 0 3.6rem;\n text-overflow: ellipsis;\n background-color: var(--md-default-bg-color);\n box-shadow: 0 0 0.6rem transparent;\n transition: color 250ms, background-color 250ms, box-shadow 250ms;\n}\n[dir=rtl] .md-search__input {\n padding: 0 3.6rem 0 2.2rem;\n}\n.md-search__input::placeholder {\n transition: color 250ms;\n}\n.md-search__input ~ .md-search__icon, .md-search__input::placeholder {\n color: var(--md-default-fg-color--light);\n}\n.md-search__input::-ms-clear {\n display: none;\n}\n[data-md-toggle=search]:checked ~ .md-header .md-search__input {\n box-shadow: 0 0 0.6rem rgba(0, 0, 0, 0.07);\n}\n@media screen and (max-width: 59.9375em) {\n .md-search__input {\n width: 100%;\n height: 2.4rem;\n font-size: 0.9rem;\n }\n}\n@media screen and (min-width: 60em) {\n .md-search__input {\n width: 100%;\n height: 1.8rem;\n padding-left: 2.2rem;\n color: inherit;\n font-size: 0.8rem;\n background-color: rgba(0, 0, 0, 0.26);\n border-radius: 0.1rem;\n }\n [dir=rtl] .md-search__input {\n padding-right: 2.2rem;\n }\n .md-search__input + .md-search__icon {\n color: var(--md-primary-bg-color);\n }\n .md-search__input::placeholder {\n color: var(--md-primary-bg-color--light);\n }\n .md-search__input:hover {\n background-color: rgba(255, 255, 255, 0.12);\n }\n [data-md-toggle=search]:checked ~ .md-header .md-search__input {\n color: var(--md-default-fg-color);\n text-overflow: clip;\n background-color: var(--md-default-bg-color);\n border-radius: 0.1rem 0.1rem 0 0;\n }\n [data-md-toggle=search]:checked ~ .md-header .md-search__input + .md-search__icon, [data-md-toggle=search]:checked ~ .md-header .md-search__input::placeholder {\n color: var(--md-default-fg-color--light);\n }\n}\n.md-search__icon {\n position: absolute;\n z-index: 2;\n width: 1.2rem;\n height: 1.2rem;\n cursor: pointer;\n transition: color 250ms, opacity 250ms;\n}\n.md-search__icon:hover {\n opacity: 0.7;\n}\n.md-search__icon[for=__search] {\n top: 0.3rem;\n left: 0.5rem;\n}\n[dir=rtl] .md-search__icon[for=__search] {\n right: 0.5rem;\n left: initial;\n}\n[dir=rtl] .md-search__icon[for=__search] svg {\n transform: scaleX(-1);\n}\n@media screen and (max-width: 59.9375em) {\n .md-search__icon[for=__search] {\n top: 0.6rem;\n left: 0.8rem;\n }\n [dir=rtl] .md-search__icon[for=__search] {\n right: 0.8rem;\n left: initial;\n }\n .md-search__icon[for=__search] svg:first-child {\n display: none;\n }\n}\n@media screen and (min-width: 60em) {\n .md-search__icon[for=__search] {\n pointer-events: none;\n }\n .md-search__icon[for=__search] svg:last-child {\n display: none;\n }\n}\n.md-search__icon[type=reset] {\n top: 0.3rem;\n right: 0.5rem;\n transform: scale(0.75);\n opacity: 0;\n transition: transform 150ms cubic-bezier(0.1, 0.7, 0.1, 1), opacity 150ms;\n pointer-events: none;\n}\n[dir=rtl] .md-search__icon[type=reset] {\n right: initial;\n left: 0.5rem;\n}\n@media screen and (max-width: 59.9375em) {\n .md-search__icon[type=reset] {\n top: 0.6rem;\n right: 0.8rem;\n }\n [dir=rtl] .md-search__icon[type=reset] {\n right: initial;\n left: 0.8rem;\n }\n}\n[data-md-toggle=search]:checked ~ .md-header .md-search__input:valid ~ .md-search__icon[type=reset] {\n transform: scale(1);\n opacity: 1;\n pointer-events: initial;\n}\n[data-md-toggle=search]:checked ~ .md-header .md-search__input:valid ~ .md-search__icon[type=reset]:hover {\n opacity: 0.7;\n}\n.md-search__output {\n position: absolute;\n z-index: 1;\n width: 100%;\n overflow: hidden;\n border-radius: 0 0 0.1rem 0.1rem;\n}\n@media screen and (max-width: 59.9375em) {\n .md-search__output {\n top: 2.4rem;\n bottom: 0;\n }\n}\n@media screen and (min-width: 60em) {\n .md-search__output {\n top: 1.9rem;\n opacity: 0;\n transition: opacity 400ms;\n }\n [data-md-toggle=search]:checked ~ .md-header .md-search__output {\n box-shadow: 0 6px 10px 0 rgba(0, 0, 0, 0.14), 0 1px 18px 0 rgba(0, 0, 0, 0.12), 0 3px 5px -1px rgba(0, 0, 0, 0.4);\n opacity: 1;\n }\n}\n.md-search__scrollwrap {\n height: 100%;\n overflow-y: auto;\n background-color: var(--md-default-bg-color);\n backface-visibility: hidden;\n touch-action: pan-y;\n}\n@media (max-resolution: 1dppx) {\n .md-search__scrollwrap {\n transform: translateZ(0);\n }\n}\n@media screen and (min-width: 60em) and (max-width: 76.1875em) {\n .md-search__scrollwrap {\n width: 23.4rem;\n }\n}\n@media screen and (min-width: 76.25em) {\n .md-search__scrollwrap {\n width: 34.4rem;\n }\n}\n@media screen and (min-width: 60em) {\n .md-search__scrollwrap {\n max-height: 0;\n scrollbar-width: thin;\n scrollbar-color: var(--md-default-fg-color--lighter) transparent;\n }\n [data-md-toggle=search]:checked ~ .md-header .md-search__scrollwrap {\n max-height: 75vh;\n }\n .md-search__scrollwrap:hover {\n scrollbar-color: var(--md-accent-fg-color) transparent;\n }\n .md-search__scrollwrap::-webkit-scrollbar {\n width: 0.2rem;\n height: 0.2rem;\n }\n .md-search__scrollwrap::-webkit-scrollbar-thumb {\n background-color: var(--md-default-fg-color--lighter);\n }\n .md-search__scrollwrap::-webkit-scrollbar-thumb:hover {\n background-color: var(--md-accent-fg-color);\n }\n}\n\n.md-search-result {\n color: var(--md-default-fg-color);\n word-break: break-word;\n}\n.md-search-result__meta {\n padding: 0 0.8rem;\n color: var(--md-default-fg-color--light);\n font-size: 0.64rem;\n line-height: 1.8rem;\n background-color: var(--md-default-fg-color--lightest);\n scroll-snap-align: start;\n}\n@media screen and (min-width: 60em) {\n .md-search-result__meta {\n padding-left: 2.2rem;\n }\n [dir=rtl] .md-search-result__meta {\n padding-right: 2.2rem;\n padding-left: initial;\n }\n}\n.md-search-result__list {\n margin: 0;\n padding: 0;\n list-style: none;\n}\n.md-search-result__item {\n box-shadow: 0 -0.05rem 0 var(--md-default-fg-color--lightest);\n}\n.md-search-result__item:first-child {\n box-shadow: none;\n}\n.md-search-result__link {\n display: block;\n outline: none;\n transition: background-color 250ms;\n scroll-snap-align: start;\n}\n.md-search-result__link:focus, .md-search-result__link:hover {\n background-color: var(--md-accent-fg-color--transparent);\n}\n.md-search-result__link:last-child p:last-child {\n margin-bottom: 0.6rem;\n}\n.md-search-result__more summary {\n display: block;\n padding: 0.75em 0.8rem;\n color: var(--md-typeset-a-color);\n font-size: 0.64rem;\n outline: none;\n cursor: pointer;\n transition: color 250ms, background-color 250ms;\n scroll-snap-align: start;\n}\n@media screen and (min-width: 60em) {\n .md-search-result__more summary {\n padding-left: 2.2rem;\n }\n [dir=rtl] .md-search-result__more summary {\n padding-right: 2.2rem;\n padding-left: 0.8rem;\n }\n}\n.md-search-result__more summary:focus, .md-search-result__more summary:hover {\n color: var(--md-accent-fg-color);\n background-color: var(--md-accent-fg-color--transparent);\n}\n.md-search-result__more summary::marker, .md-search-result__more summary::-webkit-details-marker {\n display: none;\n}\n.md-search-result__more summary ~ * > * {\n opacity: 0.65;\n}\n.md-search-result__article {\n position: relative;\n padding: 0 0.8rem;\n overflow: hidden;\n}\n@media screen and (min-width: 60em) {\n .md-search-result__article {\n padding-left: 2.2rem;\n }\n [dir=rtl] .md-search-result__article {\n padding-right: 2.2rem;\n padding-left: 0.8rem;\n }\n}\n.md-search-result__article--document .md-search-result__title {\n margin: 0.55rem 0;\n font-weight: 400;\n font-size: 0.8rem;\n line-height: 1.4;\n}\n.md-search-result__icon {\n position: absolute;\n left: 0;\n width: 1.2rem;\n height: 1.2rem;\n margin: 0.5rem;\n color: var(--md-default-fg-color--light);\n}\n@media screen and (max-width: 59.9375em) {\n .md-search-result__icon {\n display: none;\n }\n}\n.md-search-result__icon::after {\n display: inline-block;\n width: 100%;\n height: 100%;\n background-color: currentColor;\n mask-image: var(--md-search-result-icon);\n mask-repeat: no-repeat;\n mask-size: contain;\n content: \"\";\n}\n[dir=rtl] .md-search-result__icon {\n right: 0;\n left: initial;\n}\n[dir=rtl] .md-search-result__icon::after {\n transform: scaleX(-1);\n}\n.md-search-result__title {\n margin: 0.5em 0;\n font-weight: 700;\n font-size: 0.64rem;\n line-height: 1.6;\n}\n.md-search-result__teaser {\n display: -webkit-box;\n max-height: 2rem;\n margin: 0.5em 0;\n overflow: hidden;\n color: var(--md-default-fg-color--light);\n font-size: 0.64rem;\n line-height: 1.6;\n text-overflow: ellipsis;\n -webkit-box-orient: vertical;\n -webkit-line-clamp: 2;\n}\n@media screen and (max-width: 44.9375em) {\n .md-search-result__teaser {\n max-height: 3rem;\n -webkit-line-clamp: 3;\n }\n}\n@media screen and (min-width: 60em) and (max-width: 76.1875em) {\n .md-search-result__teaser {\n max-height: 3rem;\n -webkit-line-clamp: 3;\n }\n}\n.md-search-result__teaser mark {\n text-decoration: underline;\n background-color: transparent;\n}\n.md-search-result__terms {\n margin: 0.5em 0;\n font-size: 0.64rem;\n font-style: italic;\n}\n.md-search-result mark {\n color: var(--md-accent-fg-color);\n background-color: transparent;\n}\n\n.md-select {\n position: relative;\n z-index: 1;\n}\n.md-select__inner {\n position: absolute;\n top: calc(100% - 0.2rem);\n left: 50%;\n max-height: 0;\n margin-top: 0.2rem;\n color: var(--md-default-fg-color);\n background-color: var(--md-default-bg-color);\n border-radius: 0.1rem;\n box-shadow: 0 0.2rem 0.5rem rgba(0, 0, 0, 0.1), 0 0 0.05rem rgba(0, 0, 0, 0.25);\n transform: translate3d(-50%, 0.3rem, 0);\n opacity: 0;\n transition: transform 250ms 375ms, opacity 250ms 250ms, max-height 0ms 500ms;\n}\n.md-select:focus-within .md-select__inner, .md-select:hover .md-select__inner {\n max-height: 10rem;\n transform: translate3d(-50%, 0, 0);\n opacity: 1;\n transition: transform 250ms cubic-bezier(0.1, 0.7, 0.1, 1), opacity 250ms, max-height 0ms;\n}\n.md-select__inner::after {\n position: absolute;\n top: 0;\n left: 50%;\n width: 0;\n height: 0;\n margin-top: -0.2rem;\n margin-left: -0.2rem;\n border: 0.2rem solid transparent;\n border-top: 0;\n border-bottom-color: var(--md-default-bg-color);\n content: \"\";\n}\n.md-select__list {\n max-height: inherit;\n margin: 0;\n padding: 0;\n overflow: auto;\n font-size: 0.8rem;\n list-style-type: none;\n border-radius: 0.1rem;\n}\n.md-select__item {\n line-height: 1.8rem;\n}\n.md-select__link {\n display: block;\n width: 100%;\n padding-right: 1.2rem;\n padding-left: 0.6rem;\n outline: none;\n cursor: pointer;\n transition: background-color 250ms, color 250ms;\n scroll-snap-align: start;\n}\n[dir=rtl] .md-select__link {\n padding-right: 0.6rem;\n padding-left: 1.2rem;\n}\n.md-select__link:focus, .md-select__link:hover {\n color: var(--md-accent-fg-color);\n}\n.md-select__link:focus {\n background-color: var(--md-default-fg-color--lightest);\n}\n\n.md-sidebar {\n position: sticky;\n top: 2.4rem;\n flex-shrink: 0;\n align-self: flex-start;\n width: 12.1rem;\n padding: 1.2rem 0;\n}\n@media print {\n .md-sidebar {\n display: none;\n }\n}\n@media screen and (max-width: 76.1875em) {\n .md-sidebar--primary {\n position: fixed;\n top: 0;\n left: -12.1rem;\n z-index: 3;\n display: block;\n width: 12.1rem;\n height: 100%;\n background-color: var(--md-default-bg-color);\n transform: translateX(0);\n transition: transform 250ms cubic-bezier(0.4, 0, 0.2, 1), box-shadow 250ms;\n }\n [dir=rtl] .md-sidebar--primary {\n right: -12.1rem;\n left: initial;\n }\n [data-md-toggle=drawer]:checked ~ .md-container .md-sidebar--primary {\n box-shadow: 0 8px 10px 1px rgba(0, 0, 0, 0.14), 0 3px 14px 2px rgba(0, 0, 0, 0.12), 0 5px 5px -3px rgba(0, 0, 0, 0.4);\n transform: translateX(12.1rem);\n }\n [dir=rtl] [data-md-toggle=drawer]:checked ~ .md-container .md-sidebar--primary {\n transform: translateX(-12.1rem);\n }\n .md-sidebar--primary .md-sidebar__scrollwrap {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n margin: 0;\n scroll-snap-type: none;\n overflow: hidden;\n }\n}\n@media screen and (min-width: 76.25em) {\n .md-sidebar {\n height: 0;\n }\n .no-js .md-sidebar {\n height: auto;\n }\n}\n.md-sidebar--secondary {\n display: none;\n order: 2;\n}\n@media screen and (min-width: 60em) {\n .md-sidebar--secondary {\n height: 0;\n }\n .no-js .md-sidebar--secondary {\n height: auto;\n }\n .md-sidebar--secondary:not([hidden]) {\n display: block;\n }\n .md-sidebar--secondary .md-sidebar__scrollwrap {\n touch-action: pan-y;\n }\n}\n.md-sidebar__scrollwrap {\n margin: 0 0.2rem;\n overflow-y: auto;\n backface-visibility: hidden;\n scrollbar-width: thin;\n scrollbar-color: var(--md-default-fg-color--lighter) transparent;\n}\n.md-sidebar__scrollwrap:hover {\n scrollbar-color: var(--md-accent-fg-color) transparent;\n}\n.md-sidebar__scrollwrap::-webkit-scrollbar {\n width: 0.2rem;\n height: 0.2rem;\n}\n.md-sidebar__scrollwrap::-webkit-scrollbar-thumb {\n background-color: var(--md-default-fg-color--lighter);\n}\n.md-sidebar__scrollwrap::-webkit-scrollbar-thumb:hover {\n background-color: var(--md-accent-fg-color);\n}\n\n@media screen and (max-width: 76.1875em) {\n .md-overlay {\n position: fixed;\n top: 0;\n z-index: 3;\n width: 0;\n height: 0;\n background-color: rgba(0, 0, 0, 0.54);\n opacity: 0;\n transition: width 0ms 250ms, height 0ms 250ms, opacity 250ms;\n }\n [data-md-toggle=drawer]:checked ~ .md-overlay {\n width: 100%;\n height: 100%;\n opacity: 1;\n transition: width 0ms, height 0ms, opacity 250ms;\n }\n}\n@keyframes facts {\n 0% {\n height: 0;\n }\n 100% {\n height: 0.65rem;\n }\n}\n@keyframes fact {\n 0% {\n transform: translateY(100%);\n opacity: 0;\n }\n 50% {\n opacity: 0;\n }\n 100% {\n transform: translateY(0%);\n opacity: 1;\n }\n}\n:root {\n --md-source-forks-icon: svg-load(\"octicons/repo-forked-16.svg\");\n --md-source-repositories-icon: svg-load(\"octicons/repo-16.svg\");\n --md-source-stars-icon: svg-load(\"octicons/star-16.svg\");\n --md-source-version-icon: svg-load(\"octicons/tag-16.svg\");\n}\n\n.md-source {\n display: block;\n font-size: 0.65rem;\n line-height: 1.2;\n white-space: nowrap;\n outline-color: var(--md-accent-fg-color);\n backface-visibility: hidden;\n transition: opacity 250ms;\n}\n.md-source:hover {\n opacity: 0.7;\n}\n.md-source__icon {\n display: inline-block;\n width: 2rem;\n height: 2.4rem;\n vertical-align: middle;\n}\n.md-source__icon svg {\n margin-top: 0.6rem;\n margin-left: 0.6rem;\n}\n[dir=rtl] .md-source__icon svg {\n margin-right: 0.6rem;\n margin-left: initial;\n}\n.md-source__icon + .md-source__repository {\n margin-left: -2rem;\n padding-left: 2rem;\n}\n[dir=rtl] .md-source__icon + .md-source__repository {\n margin-right: -2rem;\n margin-left: initial;\n padding-right: 2rem;\n padding-left: initial;\n}\n.md-source__repository {\n display: inline-block;\n max-width: calc(100% - 1.2rem);\n margin-left: 0.6rem;\n overflow: hidden;\n text-overflow: ellipsis;\n vertical-align: middle;\n}\n.md-source__facts {\n margin: 0.1rem 0 0;\n padding: 0;\n overflow: hidden;\n font-size: 0.55rem;\n list-style-type: none;\n opacity: 0.75;\n}\n[data-md-state=done] .md-source__facts {\n animation: facts 250ms ease-in;\n}\n.md-source__fact {\n display: inline-block;\n}\n[data-md-state=done] .md-source__fact {\n animation: fact 400ms ease-out;\n}\n.md-source__fact::before {\n display: inline-block;\n width: 0.6rem;\n height: 0.6rem;\n margin-right: 0.1rem;\n vertical-align: text-top;\n background-color: currentColor;\n mask-repeat: no-repeat;\n mask-size: contain;\n content: \"\";\n}\n.md-source__fact:nth-child(1n+2)::before {\n margin-left: 0.4rem;\n}\n[dir=rtl] .md-source__fact {\n margin-right: initial;\n margin-left: 0.1rem;\n}\n[dir=rtl] .md-source__fact:nth-child(1n+2)::before {\n margin-right: 0.4rem;\n margin-left: initial;\n}\n.md-source__fact--version::before {\n mask-image: var(--md-source-version-icon);\n}\n.md-source__fact--stars::before {\n mask-image: var(--md-source-stars-icon);\n}\n.md-source__fact--forks::before {\n mask-image: var(--md-source-forks-icon);\n}\n.md-source__fact--repositories::before {\n mask-image: var(--md-source-repositories-icon);\n}\n\n.md-tabs {\n width: 100%;\n overflow: auto;\n color: var(--md-primary-bg-color);\n background-color: var(--md-primary-fg-color);\n}\n@media print {\n .md-tabs {\n display: none;\n }\n}\n@media screen and (max-width: 76.1875em) {\n .md-tabs {\n display: none;\n }\n}\n.md-tabs[data-md-state=hidden] {\n pointer-events: none;\n}\n.md-tabs__list {\n margin: 0;\n margin-left: 0.2rem;\n padding: 0;\n white-space: nowrap;\n list-style: none;\n contain: content;\n}\n[dir=rtl] .md-tabs__list {\n margin-right: 0.2rem;\n margin-left: initial;\n}\n.md-tabs__item {\n display: inline-block;\n height: 2.4rem;\n padding-right: 0.6rem;\n padding-left: 0.6rem;\n}\n.md-tabs__link {\n display: block;\n margin-top: 0.8rem;\n font-size: 0.7rem;\n outline-color: var(--md-accent-fg-color);\n outline-offset: 0.2rem;\n backface-visibility: hidden;\n opacity: 0.7;\n transition: transform 400ms cubic-bezier(0.1, 0.7, 0.1, 1), opacity 250ms;\n}\n.md-tabs__link--active, .md-tabs__link:focus, .md-tabs__link:hover {\n color: inherit;\n opacity: 1;\n}\n.md-tabs__item:nth-child(2) .md-tabs__link {\n transition-delay: 20ms;\n}\n.md-tabs__item:nth-child(3) .md-tabs__link {\n transition-delay: 40ms;\n}\n.md-tabs__item:nth-child(4) .md-tabs__link {\n transition-delay: 60ms;\n}\n.md-tabs__item:nth-child(5) .md-tabs__link {\n transition-delay: 80ms;\n}\n.md-tabs__item:nth-child(6) .md-tabs__link {\n transition-delay: 100ms;\n}\n.md-tabs__item:nth-child(7) .md-tabs__link {\n transition-delay: 120ms;\n}\n.md-tabs__item:nth-child(8) .md-tabs__link {\n transition-delay: 140ms;\n}\n.md-tabs__item:nth-child(9) .md-tabs__link {\n transition-delay: 160ms;\n}\n.md-tabs__item:nth-child(10) .md-tabs__link {\n transition-delay: 180ms;\n}\n.md-tabs__item:nth-child(11) .md-tabs__link {\n transition-delay: 200ms;\n}\n.md-tabs__item:nth-child(12) .md-tabs__link {\n transition-delay: 220ms;\n}\n.md-tabs__item:nth-child(13) .md-tabs__link {\n transition-delay: 240ms;\n}\n.md-tabs__item:nth-child(14) .md-tabs__link {\n transition-delay: 260ms;\n}\n.md-tabs__item:nth-child(15) .md-tabs__link {\n transition-delay: 280ms;\n}\n.md-tabs__item:nth-child(16) .md-tabs__link {\n transition-delay: 300ms;\n}\n.md-tabs[data-md-state=hidden] .md-tabs__link {\n transform: translateY(50%);\n opacity: 0;\n transition: transform 0ms 100ms, opacity 100ms;\n}\n\n.md-top {\n position: sticky;\n bottom: 0.4rem;\n z-index: 1;\n float: right;\n margin: -2.8rem 0.4rem 0.4rem;\n padding: 0.4rem;\n color: var(--md-primary-bg-color);\n background: var(--md-primary-fg-color);\n border-radius: 100%;\n outline: none;\n box-shadow: 0 0.2rem 0.5rem rgba(0, 0, 0, 0.1), 0 0.025rem 0.05rem rgba(0, 0, 0, 0.1);\n transform: translateY(0);\n transition: opacity 125ms, transform 125ms cubic-bezier(0.4, 0, 0.2, 1), background-color 125ms;\n}\n[dir=rtl] .md-top {\n float: left;\n}\n.md-top[data-md-state=hidden] {\n transform: translateY(-0.2rem);\n opacity: 0;\n pointer-events: none;\n}\n.md-top:focus, .md-top:hover {\n background: var(--md-accent-fg-color);\n transform: scale(1.1);\n}\n\n@keyframes hoverfix {\n 0% {\n pointer-events: none;\n }\n}\n:root {\n --md-version-icon: svg-load(\"fontawesome/solid/caret-down.svg\");\n}\n\n.md-version {\n flex-shrink: 0;\n height: 2.4rem;\n font-size: 0.8rem;\n}\n.md-version__current {\n position: relative;\n top: 0.05rem;\n margin-right: 0.4rem;\n margin-left: 1.4rem;\n color: inherit;\n outline: none;\n cursor: pointer;\n}\n[dir=rtl] .md-version__current {\n margin-right: 1.4rem;\n margin-left: 0.4rem;\n}\n.md-version__current::after {\n display: inline-block;\n width: 0.4rem;\n height: 0.6rem;\n margin-left: 0.4rem;\n background-color: currentColor;\n mask-image: var(--md-version-icon);\n mask-repeat: no-repeat;\n content: \"\";\n}\n[dir=rtl] .md-version__current::after {\n margin-right: 0.4rem;\n margin-left: initial;\n}\n.md-version__list {\n position: absolute;\n top: 0.15rem;\n z-index: 1;\n max-height: 0;\n margin: 0.2rem 0.8rem;\n padding: 0;\n overflow: auto;\n color: var(--md-default-fg-color);\n list-style-type: none;\n background-color: var(--md-default-bg-color);\n border-radius: 0.1rem;\n box-shadow: 0 0.2rem 0.5rem rgba(0, 0, 0, 0.1), 0 0 0.05rem rgba(0, 0, 0, 0.25);\n opacity: 0;\n transition: max-height 0ms 500ms, opacity 250ms 250ms;\n scroll-snap-type: y mandatory;\n}\n.md-version:focus-within .md-version__list, .md-version:hover .md-version__list {\n max-height: 10rem;\n opacity: 1;\n transition: max-height 0ms, opacity 250ms;\n}\n@media (pointer: coarse) {\n .md-version:hover .md-version__list {\n animation: hoverfix 250ms forwards;\n }\n .md-version:focus-within .md-version__list {\n animation: none;\n }\n}\n.md-version__item {\n line-height: 1.8rem;\n}\n.md-version__link {\n display: block;\n width: 100%;\n padding-right: 1.2rem;\n padding-left: 0.6rem;\n white-space: nowrap;\n outline: none;\n cursor: pointer;\n transition: color 250ms, background-color 250ms;\n scroll-snap-align: start;\n}\n[dir=rtl] .md-version__link {\n padding-right: 0.6rem;\n padding-left: 1.2rem;\n}\n.md-version__link:focus, .md-version__link:hover {\n color: var(--md-accent-fg-color);\n}\n.md-version__link:focus {\n background-color: var(--md-default-fg-color--lightest);\n}\n\n:root {\n --md-admonition-icon--note:\n svg-load(\"material/pencil.svg\");\n --md-admonition-icon--abstract:\n svg-load(\"material/text-subject.svg\");\n --md-admonition-icon--info:\n svg-load(\"material/information.svg\");\n --md-admonition-icon--tip:\n svg-load(\"material/fire.svg\");\n --md-admonition-icon--success:\n svg-load(\"material/check-circle.svg\");\n --md-admonition-icon--question:\n svg-load(\"material/help-circle.svg\");\n --md-admonition-icon--warning:\n svg-load(\"material/alert.svg\");\n --md-admonition-icon--failure:\n svg-load(\"material/close-circle.svg\");\n --md-admonition-icon--danger:\n svg-load(\"material/flash-circle.svg\");\n --md-admonition-icon--bug:\n svg-load(\"material/bug.svg\");\n --md-admonition-icon--example:\n svg-load(\"material/format-list-numbered.svg\");\n --md-admonition-icon--quote:\n svg-load(\"material/format-quote-close.svg\");\n}\n\n.md-typeset .admonition, .md-typeset details {\n margin: 1.5625em 0;\n padding: 0 0.6rem;\n overflow: hidden;\n color: var(--md-admonition-fg-color);\n font-size: 0.64rem;\n page-break-inside: avoid;\n background-color: var(--md-admonition-bg-color);\n border-left: 0.2rem solid #448aff;\n border-radius: 0.1rem;\n box-shadow: 0 0.2rem 0.5rem rgba(0, 0, 0, 0.05), 0 0.025rem 0.05rem rgba(0, 0, 0, 0.05);\n}\n@media print {\n .md-typeset .admonition, .md-typeset details {\n box-shadow: none;\n }\n}\n[dir=rtl] .md-typeset .admonition, [dir=rtl] .md-typeset details {\n border-right: 0.2rem solid #448aff;\n border-left: none;\n}\n.md-typeset .admonition .admonition, .md-typeset details .admonition, .md-typeset .admonition details, .md-typeset details details {\n margin-top: 1em;\n margin-bottom: 1em;\n}\n.md-typeset .admonition .md-typeset__scrollwrap, .md-typeset details .md-typeset__scrollwrap {\n margin: 1em -0.6rem;\n}\n.md-typeset .admonition .md-typeset__table, .md-typeset details .md-typeset__table {\n padding: 0 0.6rem;\n}\n.md-typeset .admonition > .tabbed-set:only-child, .md-typeset details > .tabbed-set:only-child {\n margin-top: 0;\n}\nhtml .md-typeset .admonition > :last-child, html .md-typeset details > :last-child {\n margin-bottom: 0.6rem;\n}\n.md-typeset .admonition-title, .md-typeset summary {\n position: relative;\n margin: 0 -0.6rem 0 -0.8rem;\n padding: 0.4rem 0.6rem 0.4rem 2rem;\n font-weight: 700;\n background-color: rgba(68, 138, 255, 0.1);\n border-left: 0.2rem solid #448aff;\n}\n[dir=rtl] .md-typeset .admonition-title, [dir=rtl] .md-typeset summary {\n margin: 0 -0.8rem 0 -0.6rem;\n padding: 0.4rem 2rem 0.4rem 0.6rem;\n border-right: 0.2rem solid #448aff;\n border-left: none;\n}\nhtml .md-typeset .admonition-title:last-child, html .md-typeset summary:last-child {\n margin-bottom: 0;\n}\n.md-typeset .admonition-title::before, .md-typeset summary::before {\n position: absolute;\n left: 0.6rem;\n width: 1rem;\n height: 1rem;\n background-color: #448aff;\n mask-image: var(--md-admonition-icon--note);\n mask-repeat: no-repeat;\n mask-size: contain;\n content: \"\";\n}\n[dir=rtl] .md-typeset .admonition-title::before, [dir=rtl] .md-typeset summary::before {\n right: 0.6rem;\n left: initial;\n}\n.md-typeset .admonition-title + .tabbed-set:last-child, .md-typeset summary + .tabbed-set:last-child {\n margin-top: 0;\n}\n\n.md-typeset .admonition.note, .md-typeset details.note {\n border-color: #448aff;\n}\n\n.md-typeset .note > .admonition-title, .md-typeset .note > summary {\n background-color: rgba(68, 138, 255, 0.1);\n border-color: #448aff;\n}\n.md-typeset .note > .admonition-title::before, .md-typeset .note > summary::before {\n background-color: #448aff;\n mask-image: var(--md-admonition-icon--note);\n mask-repeat: no-repeat;\n mask-size: contain;\n}\n\n.md-typeset .admonition.abstract, .md-typeset details.abstract, .md-typeset .admonition.tldr, .md-typeset details.tldr, .md-typeset .admonition.summary, .md-typeset details.summary {\n border-color: #00b0ff;\n}\n\n.md-typeset .abstract > .admonition-title, .md-typeset .abstract > summary, .md-typeset .tldr > .admonition-title, .md-typeset .tldr > summary, .md-typeset .summary > .admonition-title, .md-typeset .summary > summary {\n background-color: rgba(0, 176, 255, 0.1);\n border-color: #00b0ff;\n}\n.md-typeset .abstract > .admonition-title::before, .md-typeset .abstract > summary::before, .md-typeset .tldr > .admonition-title::before, .md-typeset .tldr > summary::before, .md-typeset .summary > .admonition-title::before, .md-typeset .summary > summary::before {\n background-color: #00b0ff;\n mask-image: var(--md-admonition-icon--abstract);\n mask-repeat: no-repeat;\n mask-size: contain;\n}\n\n.md-typeset .admonition.info, .md-typeset details.info, .md-typeset .admonition.todo, .md-typeset details.todo {\n border-color: #00b8d4;\n}\n\n.md-typeset .info > .admonition-title, .md-typeset .info > summary, .md-typeset .todo > .admonition-title, .md-typeset .todo > summary {\n background-color: rgba(0, 184, 212, 0.1);\n border-color: #00b8d4;\n}\n.md-typeset .info > .admonition-title::before, .md-typeset .info > summary::before, .md-typeset .todo > .admonition-title::before, .md-typeset .todo > summary::before {\n background-color: #00b8d4;\n mask-image: var(--md-admonition-icon--info);\n mask-repeat: no-repeat;\n mask-size: contain;\n}\n\n.md-typeset .admonition.tip, .md-typeset details.tip, .md-typeset .admonition.important, .md-typeset details.important, .md-typeset .admonition.hint, .md-typeset details.hint {\n border-color: #00bfa5;\n}\n\n.md-typeset .tip > .admonition-title, .md-typeset .tip > summary, .md-typeset .important > .admonition-title, .md-typeset .important > summary, .md-typeset .hint > .admonition-title, .md-typeset .hint > summary {\n background-color: rgba(0, 191, 165, 0.1);\n border-color: #00bfa5;\n}\n.md-typeset .tip > .admonition-title::before, .md-typeset .tip > summary::before, .md-typeset .important > .admonition-title::before, .md-typeset .important > summary::before, .md-typeset .hint > .admonition-title::before, .md-typeset .hint > summary::before {\n background-color: #00bfa5;\n mask-image: var(--md-admonition-icon--tip);\n mask-repeat: no-repeat;\n mask-size: contain;\n}\n\n.md-typeset .admonition.success, .md-typeset details.success, .md-typeset .admonition.done, .md-typeset details.done, .md-typeset .admonition.check, .md-typeset details.check {\n border-color: #00c853;\n}\n\n.md-typeset .success > .admonition-title, .md-typeset .success > summary, .md-typeset .done > .admonition-title, .md-typeset .done > summary, .md-typeset .check > .admonition-title, .md-typeset .check > summary {\n background-color: rgba(0, 200, 83, 0.1);\n border-color: #00c853;\n}\n.md-typeset .success > .admonition-title::before, .md-typeset .success > summary::before, .md-typeset .done > .admonition-title::before, .md-typeset .done > summary::before, .md-typeset .check > .admonition-title::before, .md-typeset .check > summary::before {\n background-color: #00c853;\n mask-image: var(--md-admonition-icon--success);\n mask-repeat: no-repeat;\n mask-size: contain;\n}\n\n.md-typeset .admonition.question, .md-typeset details.question, .md-typeset .admonition.faq, .md-typeset details.faq, .md-typeset .admonition.help, .md-typeset details.help {\n border-color: #64dd17;\n}\n\n.md-typeset .question > .admonition-title, .md-typeset .question > summary, .md-typeset .faq > .admonition-title, .md-typeset .faq > summary, .md-typeset .help > .admonition-title, .md-typeset .help > summary {\n background-color: rgba(100, 221, 23, 0.1);\n border-color: #64dd17;\n}\n.md-typeset .question > .admonition-title::before, .md-typeset .question > summary::before, .md-typeset .faq > .admonition-title::before, .md-typeset .faq > summary::before, .md-typeset .help > .admonition-title::before, .md-typeset .help > summary::before {\n background-color: #64dd17;\n mask-image: var(--md-admonition-icon--question);\n mask-repeat: no-repeat;\n mask-size: contain;\n}\n\n.md-typeset .admonition.warning, .md-typeset details.warning, .md-typeset .admonition.attention, .md-typeset details.attention, .md-typeset .admonition.caution, .md-typeset details.caution {\n border-color: #ff9100;\n}\n\n.md-typeset .warning > .admonition-title, .md-typeset .warning > summary, .md-typeset .attention > .admonition-title, .md-typeset .attention > summary, .md-typeset .caution > .admonition-title, .md-typeset .caution > summary {\n background-color: rgba(255, 145, 0, 0.1);\n border-color: #ff9100;\n}\n.md-typeset .warning > .admonition-title::before, .md-typeset .warning > summary::before, .md-typeset .attention > .admonition-title::before, .md-typeset .attention > summary::before, .md-typeset .caution > .admonition-title::before, .md-typeset .caution > summary::before {\n background-color: #ff9100;\n mask-image: var(--md-admonition-icon--warning);\n mask-repeat: no-repeat;\n mask-size: contain;\n}\n\n.md-typeset .admonition.failure, .md-typeset details.failure, .md-typeset .admonition.missing, .md-typeset details.missing, .md-typeset .admonition.fail, .md-typeset details.fail {\n border-color: #ff5252;\n}\n\n.md-typeset .failure > .admonition-title, .md-typeset .failure > summary, .md-typeset .missing > .admonition-title, .md-typeset .missing > summary, .md-typeset .fail > .admonition-title, .md-typeset .fail > summary {\n background-color: rgba(255, 82, 82, 0.1);\n border-color: #ff5252;\n}\n.md-typeset .failure > .admonition-title::before, .md-typeset .failure > summary::before, .md-typeset .missing > .admonition-title::before, .md-typeset .missing > summary::before, .md-typeset .fail > .admonition-title::before, .md-typeset .fail > summary::before {\n background-color: #ff5252;\n mask-image: var(--md-admonition-icon--failure);\n mask-repeat: no-repeat;\n mask-size: contain;\n}\n\n.md-typeset .admonition.danger, .md-typeset details.danger, .md-typeset .admonition.error, .md-typeset details.error {\n border-color: #ff1744;\n}\n\n.md-typeset .danger > .admonition-title, .md-typeset .danger > summary, .md-typeset .error > .admonition-title, .md-typeset .error > summary {\n background-color: rgba(255, 23, 68, 0.1);\n border-color: #ff1744;\n}\n.md-typeset .danger > .admonition-title::before, .md-typeset .danger > summary::before, .md-typeset .error > .admonition-title::before, .md-typeset .error > summary::before {\n background-color: #ff1744;\n mask-image: var(--md-admonition-icon--danger);\n mask-repeat: no-repeat;\n mask-size: contain;\n}\n\n.md-typeset .admonition.bug, .md-typeset details.bug {\n border-color: #f50057;\n}\n\n.md-typeset .bug > .admonition-title, .md-typeset .bug > summary {\n background-color: rgba(245, 0, 87, 0.1);\n border-color: #f50057;\n}\n.md-typeset .bug > .admonition-title::before, .md-typeset .bug > summary::before {\n background-color: #f50057;\n mask-image: var(--md-admonition-icon--bug);\n mask-repeat: no-repeat;\n mask-size: contain;\n}\n\n.md-typeset .admonition.example, .md-typeset details.example {\n border-color: #7c4dff;\n}\n\n.md-typeset .example > .admonition-title, .md-typeset .example > summary {\n background-color: rgba(124, 77, 255, 0.1);\n border-color: #7c4dff;\n}\n.md-typeset .example > .admonition-title::before, .md-typeset .example > summary::before {\n background-color: #7c4dff;\n mask-image: var(--md-admonition-icon--example);\n mask-repeat: no-repeat;\n mask-size: contain;\n}\n\n.md-typeset .admonition.quote, .md-typeset details.quote, .md-typeset .admonition.cite, .md-typeset details.cite {\n border-color: #9e9e9e;\n}\n\n.md-typeset .quote > .admonition-title, .md-typeset .quote > summary, .md-typeset .cite > .admonition-title, .md-typeset .cite > summary {\n background-color: rgba(158, 158, 158, 0.1);\n border-color: #9e9e9e;\n}\n.md-typeset .quote > .admonition-title::before, .md-typeset .quote > summary::before, .md-typeset .cite > .admonition-title::before, .md-typeset .cite > summary::before {\n background-color: #9e9e9e;\n mask-image: var(--md-admonition-icon--quote);\n mask-repeat: no-repeat;\n mask-size: contain;\n}\n\n:root {\n --md-footnotes-icon: svg-load(\"material/keyboard-return.svg\");\n}\n\n.md-typeset .footnote {\n color: var(--md-default-fg-color--light);\n font-size: 0.64rem;\n}\n.md-typeset .footnote > ol {\n margin-left: 0;\n}\n.md-typeset .footnote > ol > li {\n transition: color 125ms;\n}\n.md-typeset .footnote > ol > li:target {\n color: var(--md-default-fg-color);\n}\n.md-typeset .footnote > ol > li:hover .footnote-backref, .md-typeset .footnote > ol > li:target .footnote-backref {\n transform: translateX(0);\n opacity: 1;\n}\n.md-typeset .footnote > ol > li > :first-child {\n margin-top: 0;\n}\n.md-typeset .footnote-ref {\n font-weight: 700;\n font-size: 0.75em;\n}\nhtml .md-typeset .footnote-ref {\n outline-offset: 0.1rem;\n}\n.md-typeset .footnote-backref {\n display: inline-block;\n color: var(--md-typeset-a-color);\n font-size: 0;\n vertical-align: text-bottom;\n transform: translateX(0.25rem);\n opacity: 0;\n transition: color 250ms, transform 250ms 250ms, opacity 125ms 250ms;\n}\n@media print {\n .md-typeset .footnote-backref {\n color: var(--md-typeset-a-color);\n transform: translateX(0);\n opacity: 1;\n }\n}\n[dir=rtl] .md-typeset .footnote-backref {\n transform: translateX(-0.25rem);\n}\n.md-typeset .footnote-backref:hover {\n color: var(--md-accent-fg-color);\n}\n.md-typeset .footnote-backref::before {\n display: inline-block;\n width: 0.8rem;\n height: 0.8rem;\n background-color: currentColor;\n mask-image: var(--md-footnotes-icon);\n mask-repeat: no-repeat;\n mask-size: contain;\n content: \"\";\n}\n[dir=rtl] .md-typeset .footnote-backref::before svg {\n transform: scaleX(-1);\n}\n.md-typeset [id^=\"fnref:\"]:target {\n scroll-margin-top: initial;\n margin-top: -3.4rem;\n padding-top: 3.4rem;\n}\n.md-typeset [id^=\"fnref:\"]:target > .footnote-ref {\n outline: auto;\n}\n.md-typeset [id^=\"fn:\"]:target {\n scroll-margin-top: initial;\n margin-top: -3.45rem;\n padding-top: 3.45rem;\n}\n\n.md-typeset .headerlink {\n display: inline-block;\n margin-left: 0.5rem;\n color: var(--md-default-fg-color--lighter);\n opacity: 0;\n transition: color 250ms, opacity 125ms;\n}\n@media print {\n .md-typeset .headerlink {\n display: none;\n }\n}\n[dir=rtl] .md-typeset .headerlink {\n margin-right: 0.5rem;\n margin-left: initial;\n}\n.md-typeset :hover > .headerlink,\n.md-typeset :target > .headerlink,\n.md-typeset .headerlink:focus {\n opacity: 1;\n transition: color 250ms, opacity 125ms;\n}\n.md-typeset :target > .headerlink,\n.md-typeset .headerlink:focus,\n.md-typeset .headerlink:hover {\n color: var(--md-accent-fg-color);\n}\n.md-typeset :target {\n scroll-margin-top: 3.6rem;\n}\n.md-typeset h1:target,\n.md-typeset h2:target,\n.md-typeset h3:target {\n scroll-margin-top: initial;\n}\n.md-typeset h1:target::before,\n.md-typeset h2:target::before,\n.md-typeset h3:target::before {\n display: block;\n margin-top: -3.4rem;\n padding-top: 3.4rem;\n content: \"\";\n}\n.md-typeset h4:target {\n scroll-margin-top: initial;\n}\n.md-typeset h4:target::before {\n display: block;\n margin-top: -3.45rem;\n padding-top: 3.45rem;\n content: \"\";\n}\n.md-typeset h5:target,\n.md-typeset h6:target {\n scroll-margin-top: initial;\n}\n.md-typeset h5:target::before,\n.md-typeset h6:target::before {\n display: block;\n margin-top: -3.6rem;\n padding-top: 3.6rem;\n content: \"\";\n}\n\n.md-typeset div.arithmatex {\n overflow: auto;\n}\n@media screen and (max-width: 44.9375em) {\n .md-typeset div.arithmatex {\n margin: 0 -0.8rem;\n }\n}\n.md-typeset div.arithmatex > * {\n width: min-content;\n margin: 1em auto !important;\n padding: 0 0.8rem;\n touch-action: auto;\n}\n\n.md-typeset del.critic,\n.md-typeset ins.critic,\n.md-typeset .critic.comment {\n box-decoration-break: clone;\n}\n.md-typeset del.critic {\n background-color: var(--md-typeset-del-color);\n}\n.md-typeset ins.critic {\n background-color: var(--md-typeset-ins-color);\n}\n.md-typeset .critic.comment {\n color: var(--md-code-hl-comment-color);\n}\n.md-typeset .critic.comment::before {\n content: \"/* \";\n}\n.md-typeset .critic.comment::after {\n content: \" */\";\n}\n.md-typeset .critic.block {\n display: block;\n margin: 1em 0;\n padding-right: 0.8rem;\n padding-left: 0.8rem;\n overflow: auto;\n box-shadow: none;\n}\n.md-typeset .critic.block > :first-child {\n margin-top: 0.5em;\n}\n.md-typeset .critic.block > :last-child {\n margin-bottom: 0.5em;\n}\n\n:root {\n --md-details-icon: svg-load(\"material/chevron-right.svg\");\n}\n\n.md-typeset details {\n display: flow-root;\n padding-top: 0;\n overflow: visible;\n}\n.md-typeset details[open] > summary::after {\n transform: rotate(90deg);\n}\n.md-typeset details:not([open]) {\n padding-bottom: 0;\n box-shadow: none;\n}\n.md-typeset details:not([open]) > summary {\n border-radius: 0.1rem;\n}\n.md-typeset details::after {\n display: table;\n content: \"\";\n}\n.md-typeset summary {\n display: block;\n min-height: 1rem;\n padding: 0.4rem 1.8rem 0.4rem 2rem;\n border-top-left-radius: 0.1rem;\n border-top-right-radius: 0.1rem;\n cursor: pointer;\n}\n[dir=rtl] .md-typeset summary {\n padding: 0.4rem 2.2rem 0.4rem 1.8rem;\n}\n.md-typeset summary:not(.focus-visible) {\n outline: none;\n -webkit-tap-highlight-color: transparent;\n}\n.md-typeset summary::after {\n position: absolute;\n top: 0.4rem;\n right: 0.4rem;\n width: 1rem;\n height: 1rem;\n background-color: currentColor;\n mask-image: var(--md-details-icon);\n mask-repeat: no-repeat;\n mask-size: contain;\n transform: rotate(0deg);\n transition: transform 250ms;\n content: \"\";\n}\n[dir=rtl] .md-typeset summary::after {\n right: initial;\n left: 0.4rem;\n transform: rotate(180deg);\n}\n.md-typeset summary::marker, .md-typeset summary::-webkit-details-marker {\n display: none;\n}\n\n.md-typeset .emojione,\n.md-typeset .twemoji,\n.md-typeset .gemoji {\n display: inline-flex;\n height: 1.125em;\n vertical-align: text-top;\n}\n.md-typeset .emojione svg,\n.md-typeset .twemoji svg,\n.md-typeset .gemoji svg {\n width: 1.125em;\n max-height: 100%;\n fill: currentColor;\n}\n\n.highlight .o,\n.highlight .ow {\n color: var(--md-code-hl-operator-color);\n}\n.highlight .p {\n color: var(--md-code-hl-punctuation-color);\n}\n.highlight .cpf,\n.highlight .l,\n.highlight .s,\n.highlight .sb,\n.highlight .sc,\n.highlight .s2,\n.highlight .si,\n.highlight .s1,\n.highlight .ss {\n color: var(--md-code-hl-string-color);\n}\n.highlight .cp,\n.highlight .se,\n.highlight .sh,\n.highlight .sr,\n.highlight .sx {\n color: var(--md-code-hl-special-color);\n}\n.highlight .m,\n.highlight .mb,\n.highlight .mf,\n.highlight .mh,\n.highlight .mi,\n.highlight .il,\n.highlight .mo {\n color: var(--md-code-hl-number-color);\n}\n.highlight .k,\n.highlight .kd,\n.highlight .kn,\n.highlight .kp,\n.highlight .kr,\n.highlight .kt {\n color: var(--md-code-hl-keyword-color);\n}\n.highlight .kc,\n.highlight .n {\n color: var(--md-code-hl-name-color);\n}\n.highlight .no,\n.highlight .nb,\n.highlight .bp {\n color: var(--md-code-hl-constant-color);\n}\n.highlight .nc,\n.highlight .ne,\n.highlight .nf,\n.highlight .nn {\n color: var(--md-code-hl-function-color);\n}\n.highlight .nd,\n.highlight .ni,\n.highlight .nl,\n.highlight .nt {\n color: var(--md-code-hl-keyword-color);\n}\n.highlight .c,\n.highlight .cm,\n.highlight .c1,\n.highlight .ch,\n.highlight .cs,\n.highlight .sd {\n color: var(--md-code-hl-comment-color);\n}\n.highlight .na,\n.highlight .nv,\n.highlight .vc,\n.highlight .vg,\n.highlight .vi {\n color: var(--md-code-hl-variable-color);\n}\n.highlight .ge,\n.highlight .gr,\n.highlight .gh,\n.highlight .go,\n.highlight .gp,\n.highlight .gs,\n.highlight .gu,\n.highlight .gt {\n color: var(--md-code-hl-generic-color);\n}\n.highlight .gd,\n.highlight .gi {\n margin: 0 -0.125em;\n padding: 0 0.125em;\n border-radius: 0.1rem;\n}\n.highlight .gd {\n background-color: var(--md-typeset-del-color);\n}\n.highlight .gi {\n background-color: var(--md-typeset-ins-color);\n}\n.highlight .hll {\n display: block;\n margin: 0 -1.1764705882em;\n padding: 0 1.1764705882em;\n background-color: var(--md-code-hl-color);\n}\n.highlight [data-linenos]::before {\n position: sticky;\n left: -1.1764705882em;\n float: left;\n margin-right: 1.1764705882em;\n margin-left: -1.1764705882em;\n padding-left: 1.1764705882em;\n color: var(--md-default-fg-color--light);\n background-color: var(--md-code-bg-color);\n box-shadow: -0.05rem 0 var(--md-default-fg-color--lightest) inset;\n content: attr(data-linenos);\n user-select: none;\n}\n\n.highlighttable {\n display: flow-root;\n overflow: hidden;\n}\n.highlighttable tbody,\n.highlighttable td {\n display: block;\n padding: 0;\n}\n.highlighttable tr {\n display: flex;\n}\n.highlighttable pre {\n margin: 0;\n}\n.highlighttable .linenos {\n padding: 0.7720588235em 1.1764705882em;\n padding-right: 0;\n font-size: 0.85em;\n background-color: var(--md-code-bg-color);\n user-select: none;\n}\n.highlighttable .linenodiv {\n padding-right: 0.5882352941em;\n box-shadow: -0.05rem 0 var(--md-default-fg-color--lightest) inset;\n}\n.highlighttable .linenodiv pre {\n color: var(--md-default-fg-color--light);\n text-align: right;\n}\n.highlighttable .code {\n flex: 1;\n overflow: hidden;\n}\n\n.md-typeset .highlighttable {\n margin: 1em 0;\n direction: ltr;\n border-radius: 0.1rem;\n}\n.md-typeset .highlighttable code {\n border-radius: 0;\n}\n@media screen and (max-width: 44.9375em) {\n .md-typeset > .highlight {\n margin: 1em -0.8rem;\n }\n .md-typeset > .highlight .hll {\n margin: 0 -0.8rem;\n padding: 0 0.8rem;\n }\n .md-typeset > .highlight code {\n border-radius: 0;\n }\n .md-typeset > .highlighttable {\n margin: 1em -0.8rem;\n border-radius: 0;\n }\n .md-typeset > .highlighttable .hll {\n margin: 0 -0.8rem;\n padding: 0 0.8rem;\n }\n}\n\n.md-typeset .keys kbd::before,\n.md-typeset .keys kbd::after {\n position: relative;\n margin: 0;\n color: inherit;\n -moz-osx-font-smoothing: initial;\n -webkit-font-smoothing: initial;\n}\n.md-typeset .keys span {\n padding: 0 0.2em;\n color: var(--md-default-fg-color--light);\n}\n.md-typeset .keys .key-alt::before {\n padding-right: 0.4em;\n content: \"⎇\";\n}\n.md-typeset .keys .key-left-alt::before {\n padding-right: 0.4em;\n content: \"⎇\";\n}\n.md-typeset .keys .key-right-alt::before {\n padding-right: 0.4em;\n content: \"⎇\";\n}\n.md-typeset .keys .key-command::before {\n padding-right: 0.4em;\n content: \"⌘\";\n}\n.md-typeset .keys .key-left-command::before {\n padding-right: 0.4em;\n content: \"⌘\";\n}\n.md-typeset .keys .key-right-command::before {\n padding-right: 0.4em;\n content: \"⌘\";\n}\n.md-typeset .keys .key-control::before {\n padding-right: 0.4em;\n content: \"⌃\";\n}\n.md-typeset .keys .key-left-control::before {\n padding-right: 0.4em;\n content: \"⌃\";\n}\n.md-typeset .keys .key-right-control::before {\n padding-right: 0.4em;\n content: \"⌃\";\n}\n.md-typeset .keys .key-meta::before {\n padding-right: 0.4em;\n content: \"◆\";\n}\n.md-typeset .keys .key-left-meta::before {\n padding-right: 0.4em;\n content: \"◆\";\n}\n.md-typeset .keys .key-right-meta::before {\n padding-right: 0.4em;\n content: \"◆\";\n}\n.md-typeset .keys .key-option::before {\n padding-right: 0.4em;\n content: \"⌥\";\n}\n.md-typeset .keys .key-left-option::before {\n padding-right: 0.4em;\n content: \"⌥\";\n}\n.md-typeset .keys .key-right-option::before {\n padding-right: 0.4em;\n content: \"⌥\";\n}\n.md-typeset .keys .key-shift::before {\n padding-right: 0.4em;\n content: \"⇧\";\n}\n.md-typeset .keys .key-left-shift::before {\n padding-right: 0.4em;\n content: \"⇧\";\n}\n.md-typeset .keys .key-right-shift::before {\n padding-right: 0.4em;\n content: \"⇧\";\n}\n.md-typeset .keys .key-super::before {\n padding-right: 0.4em;\n content: \"❖\";\n}\n.md-typeset .keys .key-left-super::before {\n padding-right: 0.4em;\n content: \"❖\";\n}\n.md-typeset .keys .key-right-super::before {\n padding-right: 0.4em;\n content: \"❖\";\n}\n.md-typeset .keys .key-windows::before {\n padding-right: 0.4em;\n content: \"⊞\";\n}\n.md-typeset .keys .key-left-windows::before {\n padding-right: 0.4em;\n content: \"⊞\";\n}\n.md-typeset .keys .key-right-windows::before {\n padding-right: 0.4em;\n content: \"⊞\";\n}\n.md-typeset .keys .key-arrow-down::before {\n padding-right: 0.4em;\n content: \"↓\";\n}\n.md-typeset .keys .key-arrow-left::before {\n padding-right: 0.4em;\n content: \"←\";\n}\n.md-typeset .keys .key-arrow-right::before {\n padding-right: 0.4em;\n content: \"→\";\n}\n.md-typeset .keys .key-arrow-up::before {\n padding-right: 0.4em;\n content: \"↑\";\n}\n.md-typeset .keys .key-backspace::before {\n padding-right: 0.4em;\n content: \"⌫\";\n}\n.md-typeset .keys .key-backtab::before {\n padding-right: 0.4em;\n content: \"⇤\";\n}\n.md-typeset .keys .key-caps-lock::before {\n padding-right: 0.4em;\n content: \"⇪\";\n}\n.md-typeset .keys .key-clear::before {\n padding-right: 0.4em;\n content: \"⌧\";\n}\n.md-typeset .keys .key-context-menu::before {\n padding-right: 0.4em;\n content: \"☰\";\n}\n.md-typeset .keys .key-delete::before {\n padding-right: 0.4em;\n content: \"⌦\";\n}\n.md-typeset .keys .key-eject::before {\n padding-right: 0.4em;\n content: \"⏏\";\n}\n.md-typeset .keys .key-end::before {\n padding-right: 0.4em;\n content: \"⤓\";\n}\n.md-typeset .keys .key-escape::before {\n padding-right: 0.4em;\n content: \"⎋\";\n}\n.md-typeset .keys .key-home::before {\n padding-right: 0.4em;\n content: \"⤒\";\n}\n.md-typeset .keys .key-insert::before {\n padding-right: 0.4em;\n content: \"⎀\";\n}\n.md-typeset .keys .key-page-down::before {\n padding-right: 0.4em;\n content: \"⇟\";\n}\n.md-typeset .keys .key-page-up::before {\n padding-right: 0.4em;\n content: \"⇞\";\n}\n.md-typeset .keys .key-print-screen::before {\n padding-right: 0.4em;\n content: \"⎙\";\n}\n.md-typeset .keys .key-tab::after {\n padding-left: 0.4em;\n content: \"⇥\";\n}\n.md-typeset .keys .key-num-enter::after {\n padding-left: 0.4em;\n content: \"⌤\";\n}\n.md-typeset .keys .key-enter::after {\n padding-left: 0.4em;\n content: \"⏎\";\n}\n\n.md-typeset .tabbed-content {\n display: none;\n order: 99;\n width: 100%;\n box-shadow: 0 -0.05rem var(--md-default-fg-color--lightest);\n}\n@media print {\n .md-typeset .tabbed-content {\n display: block;\n order: initial;\n }\n}\n.md-typeset .tabbed-content > pre:only-child,\n.md-typeset .tabbed-content > .highlight:only-child pre,\n.md-typeset .tabbed-content > .highlighttable:only-child {\n margin: 0;\n}\n.md-typeset .tabbed-content > pre:only-child > code,\n.md-typeset .tabbed-content > .highlight:only-child pre > code,\n.md-typeset .tabbed-content > .highlighttable:only-child > code {\n border-top-left-radius: 0;\n border-top-right-radius: 0;\n}\n.md-typeset .tabbed-content > .tabbed-set {\n margin: 0;\n}\n.md-typeset .tabbed-set {\n position: relative;\n display: flex;\n flex-wrap: wrap;\n margin: 1em 0;\n border-radius: 0.1rem;\n}\n.md-typeset .tabbed-set > input {\n position: absolute;\n width: 0;\n height: 0;\n opacity: 0;\n}\n.md-typeset .tabbed-set > input:checked + label {\n color: var(--md-accent-fg-color);\n border-color: var(--md-accent-fg-color);\n}\n.md-typeset .tabbed-set > input:checked + label + .tabbed-content {\n display: block;\n}\n.md-typeset .tabbed-set > input:focus + label {\n outline-style: auto;\n outline-color: var(--md-accent-fg-color);\n}\n.md-typeset .tabbed-set > input:not(.focus-visible) + label {\n outline: none;\n -webkit-tap-highlight-color: transparent;\n}\n.md-typeset .tabbed-set > label {\n z-index: 1;\n width: auto;\n padding: 0.9375em 1.25em 0.78125em;\n color: var(--md-default-fg-color--light);\n font-weight: 700;\n font-size: 0.64rem;\n border-bottom: 0.1rem solid transparent;\n cursor: pointer;\n transition: color 250ms;\n}\n.md-typeset .tabbed-set > label:hover {\n color: var(--md-accent-fg-color);\n}\n\n:root {\n --md-tasklist-icon:\n svg-load(\"octicons/check-circle-fill-24.svg\");\n --md-tasklist-icon--checked:\n svg-load(\"octicons/check-circle-fill-24.svg\");\n}\n\n.md-typeset .task-list-item {\n position: relative;\n list-style-type: none;\n}\n.md-typeset .task-list-item [type=checkbox] {\n position: absolute;\n top: 0.45em;\n left: -2em;\n}\n[dir=rtl] .md-typeset .task-list-item [type=checkbox] {\n right: -2em;\n left: initial;\n}\n.md-typeset .task-list-control [type=checkbox] {\n z-index: -1;\n opacity: 0;\n}\n.md-typeset .task-list-indicator::before {\n position: absolute;\n top: 0.15em;\n left: -1.5em;\n width: 1.25em;\n height: 1.25em;\n background-color: var(--md-default-fg-color--lightest);\n mask-image: var(--md-tasklist-icon);\n mask-repeat: no-repeat;\n mask-size: contain;\n content: \"\";\n}\n[dir=rtl] .md-typeset .task-list-indicator::before {\n right: -1.5em;\n left: initial;\n}\n.md-typeset [type=checkbox]:checked + .task-list-indicator::before {\n background-color: #00e676;\n mask-image: var(--md-tasklist-icon--checked);\n}\n\n@media screen and (min-width: 45em) {\n .md-typeset .inline {\n float: left;\n width: 11.7rem;\n margin-top: 0;\n margin-right: 0.8rem;\n margin-bottom: 0.8rem;\n }\n [dir=rtl] .md-typeset .inline {\n float: right;\n margin-right: 0;\n margin-left: 0.8rem;\n }\n .md-typeset .inline.end {\n float: right;\n margin-right: 0;\n margin-left: 0.8rem;\n }\n [dir=rtl] .md-typeset .inline.end {\n float: left;\n margin-right: 0.8rem;\n margin-left: 0;\n }\n}\n\n/*# sourceMappingURL=main.css.map */","////\n/// Copyright (c) 2016-2021 Martin Donath <martin.donath@squidfunk.com>\n///\n/// Permission is hereby granted, free of charge, to any person obtaining a\n/// copy of this software and associated documentation files (the \"Software\"),\n/// to deal in the Software without restriction, including without limitation\n/// the rights to use, copy, modify, merge, publish, distribute, sublicense,\n/// and/or sell copies of the Software, and to permit persons to whom the\n/// Software is furnished to do so, subject to the following conditions:\n///\n/// The above copyright notice and this permission notice shall be included in\n/// all copies or substantial portions of the Software.\n///\n/// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n/// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n/// FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL\n/// THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n/// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n/// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER\n/// DEALINGS\n////\n\n// ----------------------------------------------------------------------------\n// Rules\n// ----------------------------------------------------------------------------\n\n// Enforce correct box model and prevent adjustments of font size after\n// orientation changes in IE and iOS\nhtml {\n box-sizing: border-box;\n text-size-adjust: none;\n}\n\n// All elements shall inherit the document default\n*,\n*::before,\n*::after {\n box-sizing: inherit;\n}\n\n// Remove margin in all browsers\nbody {\n margin: 0;\n}\n\n// Reset tap outlines on iOS and Android\na,\nbutton,\nlabel,\ninput {\n -webkit-tap-highlight-color: transparent;\n}\n\n// Reset link styles\na {\n color: inherit;\n text-decoration: none;\n}\n\n// Normalize horizontal separator styles\nhr {\n display: block;\n box-sizing: content-box;\n height: px2rem(1px);\n padding: 0;\n overflow: visible;\n border: 0;\n}\n\n// Normalize font-size in all browsers\nsmall {\n font-size: 80%;\n}\n\n// Prevent subscript and superscript from affecting line-height\nsub,\nsup {\n line-height: 1em;\n}\n\n// Remove border on image\nimg {\n border-style: none;\n}\n\n// Reset table styles\ntable {\n border-collapse: separate;\n border-spacing: 0;\n}\n\n// Reset table cell styles\ntd,\nth {\n font-weight: 400;\n vertical-align: top;\n}\n\n// Reset button styles\nbutton {\n margin: 0;\n padding: 0;\n font-size: inherit;\n font-family: inherit;\n background: transparent;\n border: 0;\n}\n\n// Reset input styles\ninput {\n border: 0;\n outline: none;\n}\n","////\n/// Copyright (c) 2016-2021 Martin Donath <martin.donath@squidfunk.com>\n///\n/// Permission is hereby granted, free of charge, to any person obtaining a\n/// copy of this software and associated documentation files (the \"Software\"),\n/// to deal in the Software without restriction, including without limitation\n/// the rights to use, copy, modify, merge, publish, distribute, sublicense,\n/// and/or sell copies of the Software, and to permit persons to whom the\n/// Software is furnished to do so, subject to the following conditions:\n///\n/// The above copyright notice and this permission notice shall be included in\n/// all copies or substantial portions of the Software.\n///\n/// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n/// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n/// FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL\n/// THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n/// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n/// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER\n/// DEALINGS\n////\n\n// ----------------------------------------------------------------------------\n// Rules\n// ----------------------------------------------------------------------------\n\n// Color definitions\n:root {\n\n // Default color shades\n --md-default-fg-color: hsla(0, 0%, 0%, 0.87);\n --md-default-fg-color--light: hsla(0, 0%, 0%, 0.54);\n --md-default-fg-color--lighter: hsla(0, 0%, 0%, 0.32);\n --md-default-fg-color--lightest: hsla(0, 0%, 0%, 0.07);\n --md-default-bg-color: hsla(0, 0%, 100%, 1);\n --md-default-bg-color--light: hsla(0, 0%, 100%, 0.7);\n --md-default-bg-color--lighter: hsla(0, 0%, 100%, 0.3);\n --md-default-bg-color--lightest: hsla(0, 0%, 100%, 0.12);\n\n // Primary color shades\n --md-primary-fg-color: hsla(#{hex2hsl($clr-indigo-500)}, 1);\n --md-primary-fg-color--light: hsla(#{hex2hsl($clr-indigo-400)}, 1);\n --md-primary-fg-color--dark: hsla(#{hex2hsl($clr-indigo-700)}, 1);\n --md-primary-bg-color: hsla(0, 0%, 100%, 1);\n --md-primary-bg-color--light: hsla(0, 0%, 100%, 0.7);\n\n // Accent color shades\n --md-accent-fg-color: hsla(#{hex2hsl($clr-indigo-a200)}, 1);\n --md-accent-fg-color--transparent: hsla(#{hex2hsl($clr-indigo-a200)}, 0.1);\n --md-accent-bg-color: hsla(0, 0%, 100%, 1);\n --md-accent-bg-color--light: hsla(0, 0%, 100%, 0.7);\n\n // Light theme (default)\n > * {\n\n // Code color shades\n --md-code-fg-color: hsla(200, 18%, 26%, 1);\n --md-code-bg-color: hsla(0, 0%, 96%, 1);\n\n // Code highlighting color shades\n --md-code-hl-color: hsla(#{hex2hsl($clr-yellow-a200)}, 0.5);\n --md-code-hl-number-color: hsla(0, 67%, 50%, 1);\n --md-code-hl-special-color: hsla(340, 83%, 47%, 1);\n --md-code-hl-function-color: hsla(291, 45%, 50%, 1);\n --md-code-hl-constant-color: hsla(250, 63%, 60%, 1);\n --md-code-hl-keyword-color: hsla(219, 54%, 51%, 1);\n --md-code-hl-string-color: hsla(150, 63%, 30%, 1);\n --md-code-hl-name-color: var(--md-code-fg-color);\n --md-code-hl-operator-color: var(--md-default-fg-color--light);\n --md-code-hl-punctuation-color: var(--md-default-fg-color--light);\n --md-code-hl-comment-color: var(--md-default-fg-color--light);\n --md-code-hl-generic-color: var(--md-default-fg-color--light);\n --md-code-hl-variable-color: var(--md-default-fg-color--light);\n\n // Typeset color shades\n --md-typeset-color: var(--md-default-fg-color);\n\n // Typeset `a` color shades\n --md-typeset-a-color: var(--md-primary-fg-color);\n\n // Typeset `mark` color shades\n --md-typeset-mark-color: hsla(#{hex2hsl($clr-yellow-a200)}, 0.5);\n\n // Typeset `del` and `ins` color shades\n --md-typeset-del-color: hsla(6, 90%, 60%, 0.15);\n --md-typeset-ins-color: hsla(150, 90%, 44%, 0.15);\n\n // Typeset `kbd` color shades\n --md-typeset-kbd-color: hsla(0, 0%, 98%, 1);\n --md-typeset-kbd-accent-color: hsla(0, 100%, 100%, 1);\n --md-typeset-kbd-border-color: hsla(0, 0%, 72%, 1);\n\n // Admonition color shades\n --md-admonition-fg-color: var(--md-default-fg-color);\n --md-admonition-bg-color: var(--md-default-bg-color);\n\n // Footer color shades\n --md-footer-fg-color: hsla(0, 0%, 100%, 1);\n --md-footer-fg-color--light: hsla(0, 0%, 100%, 0.7);\n --md-footer-fg-color--lighter: hsla(0, 0%, 100%, 0.3);\n --md-footer-bg-color: hsla(0, 0%, 0%, 0.87);\n --md-footer-bg-color--dark: hsla(0, 0%, 0%, 0.32);\n }\n}\n","////\n/// Copyright (c) 2016-2021 Martin Donath <martin.donath@squidfunk.com>\n///\n/// Permission is hereby granted, free of charge, to any person obtaining a\n/// copy of this software and associated documentation files (the \"Software\"),\n/// to deal in the Software without restriction, including without limitation\n/// the rights to use, copy, modify, merge, publish, distribute, sublicense,\n/// and/or sell copies of the Software, and to permit persons to whom the\n/// Software is furnished to do so, subject to the following conditions:\n///\n/// The above copyright notice and this permission notice shall be included in\n/// all copies or substantial portions of the Software.\n///\n/// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n/// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n/// FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL\n/// THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n/// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n/// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER\n/// DEALINGS\n////\n\n// ----------------------------------------------------------------------------\n// Rules\n// ----------------------------------------------------------------------------\n\n// Icon\n.md-icon {\n\n // SVG defaults\n svg {\n display: block;\n width: px2rem(24px);\n height: px2rem(24px);\n fill: currentColor;\n }\n}\n","////\n/// Copyright (c) 2016-2021 Martin Donath <martin.donath@squidfunk.com>\n///\n/// Permission is hereby granted, free of charge, to any person obtaining a\n/// copy of this software and associated documentation files (the \"Software\"),\n/// to deal in the Software without restriction, including without limitation\n/// the rights to use, copy, modify, merge, publish, distribute, sublicense,\n/// and/or sell copies of the Software, and to permit persons to whom the\n/// Software is furnished to do so, subject to the following conditions:\n///\n/// The above copyright notice and this permission notice shall be included in\n/// all copies or substantial portions of the Software.\n///\n/// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n/// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n/// FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL\n/// THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n/// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n/// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER\n/// DEALINGS\n////\n\n// ----------------------------------------------------------------------------\n// Rules: font definitions\n// ----------------------------------------------------------------------------\n\n// Enable font-smoothing in Webkit and FF\nbody {\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n\n// Define default fonts\nbody,\ninput {\n color: var(--md-typeset-color);\n font-feature-settings: \"kern\", \"liga\";\n font-family:\n var(--md-text-font-family, _),\n -apple-system, BlinkMacSystemFont, Helvetica, Arial, sans-serif;\n}\n\n// Define monospaced fonts\ncode,\npre,\nkbd {\n color: var(--md-typeset-color);\n font-feature-settings: \"kern\";\n font-family:\n var(--md-code-font-family, _),\n SFMono-Regular, Consolas, Menlo, monospace;\n}\n\n// ----------------------------------------------------------------------------\n// Rules: typesetted content\n// ----------------------------------------------------------------------------\n\n// Icon definitions\n:root {\n --md-typeset-table--ascending: svg-load(\"material/arrow-down.svg\");\n --md-typeset-table--descending: svg-load(\"material/arrow-up.svg\");\n}\n\n// ----------------------------------------------------------------------------\n\n// Content that is typeset - if possible, all margins, paddings and font sizes\n// should be set in ems, so nested blocks (e.g. admonitions) render correctly.\n.md-typeset {\n font-size: px2rem(16px);\n line-height: 1.6;\n color-adjust: exact;\n\n // [print]: We'll use a smaller `font-size` for printing, so code examples\n // don't break too early, and `16px` looks too big anyway.\n @media print {\n font-size: px2rem(13.6px);\n }\n\n // Default spacing\n ul,\n ol,\n dl,\n figure,\n blockquote,\n pre {\n margin: 1em 0;\n }\n\n // Headline on level 1\n h1 {\n margin: 0 0 px2em(40px, 32px);\n color: var(--md-default-fg-color--light);\n font-weight: 300;\n font-size: px2em(32px);\n line-height: 1.3;\n letter-spacing: -0.01em;\n }\n\n // Headline on level 2\n h2 {\n margin: px2em(40px, 25px) 0 px2em(16px, 25px);\n font-weight: 300;\n font-size: px2em(25px);\n line-height: 1.4;\n letter-spacing: -0.01em;\n }\n\n // Headline on level 3\n h3 {\n margin: px2em(32px, 20px) 0 px2em(16px, 20px);\n font-weight: 400;\n font-size: px2em(20px);\n line-height: 1.5;\n letter-spacing: -0.01em;\n }\n\n // Headline on level 3 following level 2\n h2 + h3 {\n margin-top: px2em(16px, 20px);\n }\n\n // Headline on level 4\n h4 {\n margin: px2em(16px) 0;\n font-weight: 700;\n letter-spacing: -0.01em;\n }\n\n // Headline on level 5-6\n h5,\n h6 {\n margin: px2em(16px, 12.8px) 0;\n color: var(--md-default-fg-color--light);\n font-weight: 700;\n font-size: px2em(12.8px);\n letter-spacing: -0.01em;\n }\n\n // Headline on level 5\n h5 {\n text-transform: uppercase;\n }\n\n // Horizontal separator\n hr {\n display: flow-root;\n margin: 1.5em 0;\n border-bottom: px2rem(1px) solid var(--md-default-fg-color--lightest);\n }\n\n // Text link\n a {\n color: var(--md-typeset-a-color);\n word-break: break-word;\n\n // Also enable color transition on pseudo elements\n &,\n &::before {\n transition: color 125ms;\n }\n\n // Text link on focus/hover\n &:focus,\n &:hover {\n color: var(--md-accent-fg-color);\n }\n\n // Text link on keyboard focus\n &.focus-visible {\n outline-color: var(--md-accent-fg-color);\n outline-offset: px2rem(4px);\n }\n }\n\n // Code block\n code,\n pre,\n kbd {\n color: var(--md-code-fg-color);\n direction: ltr;\n\n // [print]: Wrap text and hide scollbars\n @media print {\n white-space: pre-wrap;\n }\n }\n\n // Inline code block\n code {\n padding: 0 px2em(4px, 13.6px);\n font-size: px2em(13.6px);\n word-break: break-word;\n background-color: var(--md-code-bg-color);\n border-radius: px2rem(2px);\n box-decoration-break: clone;\n\n // Hide outline for pointer devices\n &:not(.focus-visible) {\n outline: none;\n -webkit-tap-highlight-color: transparent;\n }\n }\n\n // Code block in headline\n h1 code,\n h2 code,\n h3 code,\n h4 code,\n h5 code,\n h6 code {\n margin: initial;\n padding: initial;\n background-color: transparent;\n box-shadow: none;\n }\n\n // Ensure link color in code blocks\n a code {\n color: currentColor;\n }\n\n // Unformatted content\n pre {\n position: relative;\n display: flow-root;\n line-height: 1.4;\n\n // Code block\n > code {\n display: block;\n margin: 0;\n padding: px2em(10.5px, 13.6px) px2em(16px, 13.6px);\n overflow: auto;\n word-break: normal;\n box-shadow: none;\n box-decoration-break: slice;\n touch-action: auto;\n scrollbar-width: thin;\n scrollbar-color: var(--md-default-fg-color--lighter) transparent;\n\n // Code block on hover\n &:hover {\n scrollbar-color: var(--md-accent-fg-color) transparent;\n }\n\n // Webkit scrollbar\n &::-webkit-scrollbar {\n width: px2rem(4px);\n height: px2rem(4px);\n }\n\n // Webkit scrollbar thumb\n &::-webkit-scrollbar-thumb {\n background-color: var(--md-default-fg-color--lighter);\n\n // Webkit scrollbar thumb on hover\n &:hover {\n background-color: var(--md-accent-fg-color);\n }\n }\n }\n }\n\n // [mobile -]: Align with body copy\n @include break-to-device(mobile) {\n\n // Unformatted text\n > pre {\n margin: 1em px2rem(-16px);\n\n // Code block\n code {\n border-radius: 0;\n }\n }\n }\n\n // Keyboard key\n kbd {\n display: inline-block;\n padding: 0 px2em(8px, 12px);\n color: var(--md-default-fg-color);\n font-size: px2em(12px);\n vertical-align: text-top;\n word-break: break-word;\n background-color: var(--md-typeset-kbd-color);\n border-radius: px2rem(2px);\n box-shadow:\n 0 px2rem(2px) 0 px2rem(1px) var(--md-typeset-kbd-border-color),\n 0 px2rem(2px) 0 var(--md-typeset-kbd-border-color),\n 0 px2rem(-2px) px2rem(4px) var(--md-typeset-kbd-accent-color) inset;\n }\n\n // Text highlighting marker\n mark {\n color: inherit;\n word-break: break-word;\n background-color: var(--md-typeset-mark-color);\n box-decoration-break: clone;\n }\n\n // Abbreviation\n abbr {\n text-decoration: none;\n border-bottom: px2rem(1px) dotted var(--md-default-fg-color--light);\n cursor: help;\n\n // Show tooltip for touch devices\n @media (hover: none) {\n position: relative;\n\n // Tooltip\n &[title]:focus::after,\n &[title]:hover::after {\n @include z-depth(2);\n\n position: absolute;\n left: 0;\n display: inline-block;\n width: auto;\n min-width: max-content;\n max-width: 80%;\n margin-top: 2em;\n padding: px2rem(4px) px2rem(6px);\n color: var(--md-default-bg-color);\n font-size: px2rem(14px);\n background-color: var(--md-default-fg-color);\n border-radius: px2rem(2px);\n content: attr(title);\n }\n }\n }\n\n // Small text\n small {\n opacity: 0.75;\n }\n\n // Superscript and subscript\n sup,\n sub {\n margin-left: px2em(1px, 12.8px);\n\n // Adjust for right-to-left languages\n [dir=\"rtl\"] & {\n margin-right: px2em(1px, 12.8px);\n margin-left: initial;\n }\n }\n\n // Blockquotes, possibly nested\n blockquote {\n display: flow-root;\n padding-left: px2rem(12px);\n color: var(--md-default-fg-color--light);\n border-left: px2rem(4px) solid var(--md-default-fg-color--lighter);\n\n // Adjust for right-to-left languages\n [dir=\"rtl\"] & {\n padding-right: px2rem(12px);\n padding-left: initial;\n border-right: px2rem(4px) solid var(--md-default-fg-color--lighter);\n border-left: initial;\n }\n }\n\n // Unordered list\n ul {\n list-style-type: disc;\n }\n\n // Unordered and ordered list\n ul,\n ol {\n display: flow-root;\n margin-left: px2em(10px);\n padding: 0;\n\n // Adjust for right-to-left languages\n [dir=\"rtl\"] & {\n margin-right: px2em(10px);\n margin-left: initial;\n }\n\n // Nested ordered list\n ol {\n list-style-type: lower-alpha;\n\n // Triply nested ordered list\n ol {\n list-style-type: lower-roman;\n }\n }\n\n // List element\n li {\n margin-bottom: 0.5em;\n margin-left: px2em(20px);\n\n // Adjust for right-to-left languages\n [dir=\"rtl\"] & {\n margin-right: px2em(20px);\n margin-left: initial;\n }\n\n // Adjust spacing\n p,\n blockquote {\n margin: 0.5em 0;\n }\n\n // Adjust spacing on last child\n &:last-child {\n margin-bottom: 0;\n }\n\n // Nested list\n ul,\n ol {\n margin: 0.5em 0 0.5em px2em(10px);\n\n // Adjust for right-to-left languages\n [dir=\"rtl\"] & {\n margin-right: px2em(10px);\n margin-left: initial;\n }\n }\n }\n }\n\n // Definition list\n dd {\n margin: 1em 0 1.5em px2em(30px);\n\n // Adjust for right-to-left languages\n [dir=\"rtl\"] & {\n margin-right: px2em(30px);\n margin-left: initial;\n }\n }\n\n // Image or icon\n img,\n svg {\n max-width: 100%;\n height: auto;\n\n // Adjust spacing when left-aligned\n &[align=\"left\"] {\n margin: 1em;\n margin-left: 0;\n }\n\n // Adjust spacing when right-aligned\n &[align=\"right\"] {\n margin: 1em;\n margin-right: 0;\n }\n\n // Adjust spacing when sole children\n &[align]:only-child {\n margin-top: 0;\n }\n }\n\n // Figure\n figure {\n display: flow-root;\n width: fit-content;\n max-width: 100%;\n margin: 0 auto;\n text-align: center;\n\n // Figure images\n img {\n display: block;\n }\n }\n\n // Figure caption\n figcaption {\n max-width: px2rem(480px);\n margin: 1em auto 2em;\n font-style: italic;\n }\n\n // Limit width to container\n iframe {\n max-width: 100%;\n }\n\n // Data table\n table:not([class]) {\n display: inline-block;\n max-width: 100%;\n overflow: auto;\n font-size: px2rem(12.8px);\n background-color: var(--md-default-bg-color);\n border-radius: px2rem(2px);\n box-shadow:\n 0 px2rem(4px) px2rem(10px) hsla(0, 0%, 0%, 0.05),\n 0 0 px2rem(1px) hsla(0, 0%, 0%, 0.1);\n touch-action: auto;\n\n // [print]: Reset display mode so table header wraps when printing\n @media print {\n display: table;\n }\n\n // Due to margin collapse because of the necessary inline-block hack, we\n // cannot increase the bottom margin on the table, so we just increase the\n // top margin on the following element\n + * {\n margin-top: 1.5em;\n }\n\n // Elements in table heading and cell\n th > *,\n td > * {\n\n // Adjust spacing on first child\n &:first-child {\n margin-top: 0;\n }\n\n // Adjust spacing on last child\n &:last-child {\n margin-bottom: 0;\n }\n }\n\n // Table heading and cell\n th:not([align]),\n td:not([align]) {\n text-align: left;\n\n // Adjust for right-to-left languages\n [dir=\"rtl\"] & {\n text-align: right;\n }\n }\n\n // Table heading\n th {\n min-width: px2rem(100px);\n padding: px2em(12px, 12.8px) px2em(16px, 12.8px);\n color: var(--md-default-bg-color);\n vertical-align: top;\n background-color: var(--md-default-fg-color--light);\n\n // Links in table headings\n a {\n color: inherit;\n }\n }\n\n // Table cell\n td {\n padding: px2em(12px, 12.8px) px2em(16px, 12.8px);\n vertical-align: top;\n border-top: px2rem(1px) solid var(--md-default-fg-color--lightest);\n }\n\n // Table row\n tr {\n transition: background-color 125ms;\n\n // Table row on hover\n &:hover {\n background-color: rgba(0, 0, 0, 0.035);\n box-shadow: 0 px2rem(1px) 0 var(--md-default-bg-color) inset;\n }\n\n // Hide border on first table row\n &:first-child td {\n border-top: 0;\n }\n }\n\n // Text link in table\n a {\n word-break: normal;\n }\n }\n\n // Sortable table\n table th[role=\"columnheader\"] {\n cursor: pointer;\n\n // Sort icon\n &::after {\n display: inline-block;\n width: 1.2em;\n height: 1.2em;\n margin-left: 0.5em;\n vertical-align: sub;\n mask-repeat: no-repeat;\n mask-size: contain;\n content: \"\";\n }\n\n // Sort ascending\n &[aria-sort=\"ascending\"]::after {\n background-color: currentColor;\n mask-image: var(--md-typeset-table--ascending);\n }\n\n // Sort descending\n &[aria-sort=\"descending\"]::after {\n background-color: currentColor;\n mask-image: var(--md-typeset-table--descending);\n }\n }\n\n // Data table scroll wrapper\n &__scrollwrap {\n margin: 1em px2rem(-16px);\n overflow-x: auto;\n touch-action: auto;\n }\n\n // Data table wrapper\n &__table {\n display: inline-block;\n margin-bottom: 0.5em;\n padding: 0 px2rem(16px);\n\n // [print]: Reset display mode so table header wraps when printing\n @media print {\n display: block;\n }\n\n // Data table\n html & table {\n display: table;\n width: 100%;\n margin: 0;\n overflow: hidden;\n }\n }\n}\n","////\n/// Copyright (c) 2016-2021 Martin Donath <martin.donath@squidfunk.com>\n///\n/// Permission is hereby granted, free of charge, to any person obtaining a\n/// copy of this software and associated documentation files (the \"Software\"),\n/// to deal in the Software without restriction, including without limitation\n/// the rights to use, copy, modify, merge, publish, distribute, sublicense,\n/// and/or sell copies of the Software, and to permit persons to whom the\n/// Software is furnished to do so, subject to the following conditions:\n///\n/// The above copyright notice and this permission notice shall be included in\n/// all copies or substantial portions of the Software.\n///\n/// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n/// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n/// FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL\n/// THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n/// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n/// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER\n/// DEALINGS\n////\n\n// ----------------------------------------------------------------------------\n// Variables\n// ----------------------------------------------------------------------------\n\n///\n/// Device-specific breakpoints\n///\n/// @example\n/// $break-devices: (\n/// mobile: (\n/// portrait: 220px 479px,\n/// landscape: 480px 719px\n/// ),\n/// tablet: (\n/// portrait: 720px 959px,\n/// landscape: 960px 1219px\n/// ),\n/// screen: (\n/// small: 1220px 1599px,\n/// medium: 1600px 1999px,\n/// large: 2000px\n/// )\n/// );\n///\n$break-devices: () !default;\n\n// ----------------------------------------------------------------------------\n// Helpers\n// ----------------------------------------------------------------------------\n\n///\n/// Choose minimum and maximum device widths\n///\n@function break-select-min-max($devices) {\n $min: 1000000;\n $max: 0;\n @each $key, $value in $devices {\n @while type-of($value) == map {\n $value: break-select-min-max($value);\n }\n @if type-of($value) == list {\n @each $number in $value {\n @if type-of($number) == number {\n $min: min($number, $min);\n @if $max {\n $max: max($number, $max);\n }\n } @else {\n @error \"Invalid number: #{$number}\";\n }\n }\n } @else if type-of($value) == number {\n $min: min($value, $min);\n $max: null;\n } @else {\n @error \"Invalid value: #{$value}\";\n }\n }\n @return $min, $max;\n}\n\n///\n/// Select minimum and maximum widths for a device breakpoint\n///\n@function break-select-device($device) {\n $current: $break-devices;\n @for $n from 1 through length($device) {\n @if type-of($current) == map {\n $current: map-get($current, nth($device, $n));\n } @else {\n @error \"Invalid device map: #{$devices}\";\n }\n }\n @if type-of($current) == list or type-of($current) == number {\n $current: (default: $current);\n }\n @return break-select-min-max($current);\n}\n\n// ----------------------------------------------------------------------------\n// Mixins\n// ----------------------------------------------------------------------------\n\n///\n/// A minimum-maximum media query breakpoint\n///\n@mixin break-at($breakpoint) {\n @if type-of($breakpoint) == number {\n @media screen and (min-width: $breakpoint) {\n @content;\n }\n } @else if type-of($breakpoint) == list {\n $min: nth($breakpoint, 1);\n $max: nth($breakpoint, 2);\n @if type-of($min) == number and type-of($max) == number {\n @media screen and (min-width: $min) and (max-width: $max) {\n @content;\n }\n } @else {\n @error \"Invalid breakpoint: #{$breakpoint}\";\n }\n } @else {\n @error \"Invalid breakpoint: #{$breakpoint}\";\n }\n}\n\n///\n/// An orientation media query breakpoint\n///\n@mixin break-at-orientation($breakpoint) {\n @if type-of($breakpoint) == string {\n @media screen and (orientation: $breakpoint) {\n @content;\n }\n } @else {\n @error \"Invalid breakpoint: #{$breakpoint}\";\n }\n}\n\n///\n/// A maximum-aspect-ratio media query breakpoint\n///\n@mixin break-at-ratio($breakpoint) {\n @if type-of($breakpoint) == number {\n @media screen and (max-aspect-ratio: $breakpoint) {\n @content;\n }\n } @else {\n @error \"Invalid breakpoint: #{$breakpoint}\";\n }\n}\n\n///\n/// A minimum-maximum media query device breakpoint\n///\n@mixin break-at-device($device) {\n @if type-of($device) == string {\n $device: $device,;\n }\n @if type-of($device) == list {\n $breakpoint: break-select-device($device);\n @if nth($breakpoint, 2) {\n $min: nth($breakpoint, 1);\n $max: nth($breakpoint, 2);\n\n @media screen and (min-width: $min) and (max-width: $max) {\n @content;\n }\n } @else {\n @error \"Invalid device: #{$device}\";\n }\n } @else {\n @error \"Invalid device: #{$device}\";\n }\n}\n\n///\n/// A minimum media query device breakpoint\n///\n@mixin break-from-device($device) {\n @if type-of($device) == string {\n $device: $device,;\n }\n @if type-of($device) == list {\n $breakpoint: break-select-device($device);\n $min: nth($breakpoint, 1);\n\n @media screen and (min-width: $min) {\n @content;\n }\n } @else {\n @error \"Invalid device: #{$device}\";\n }\n}\n\n///\n/// A maximum media query device breakpoint\n///\n@mixin break-to-device($device) {\n @if type-of($device) == string {\n $device: $device,;\n }\n @if type-of($device) == list {\n $breakpoint: break-select-device($device);\n $max: nth($breakpoint, 2);\n\n @media screen and (max-width: $max) {\n @content;\n }\n } @else {\n @error \"Invalid device: #{$device}\";\n }\n}\n","//\n// Name: Material Shadows\n// Description: Mixins for Material Design Shadows.\n// Version: 3.0.1\n//\n// Author: Denis Malinochkin\n// Git: https://github.com/mrmlnc/material-shadows\n//\n// twitter: @mrmlnc\n//\n// ------------------------------------\n\n\n// Mixins\n// ------------------------------------\n\n@mixin z-depth-transition() {\n transition: box-shadow .28s cubic-bezier(.4, 0, .2, 1);\n}\n\n@mixin z-depth-focus() {\n box-shadow: 0 0 8px rgba(0, 0, 0, .18), 0 8px 16px rgba(0, 0, 0, .36);\n}\n\n@mixin z-depth-2dp() {\n box-shadow: 0 2px 2px 0 rgba(0, 0, 0, .14),\n 0 1px 5px 0 rgba(0, 0, 0, .12),\n 0 3px 1px -2px rgba(0, 0, 0, .2);\n}\n\n@mixin z-depth-3dp() {\n box-shadow: 0 3px 4px 0 rgba(0, 0, 0, .14),\n 0 1px 8px 0 rgba(0, 0, 0, .12),\n 0 3px 3px -2px rgba(0, 0, 0, .4);\n}\n\n@mixin z-depth-4dp() {\n box-shadow: 0 4px 5px 0 rgba(0, 0, 0, .14),\n 0 1px 10px 0 rgba(0, 0, 0, .12),\n 0 2px 4px -1px rgba(0, 0, 0, .4);\n}\n\n@mixin z-depth-6dp() {\n box-shadow: 0 6px 10px 0 rgba(0, 0, 0, .14),\n 0 1px 18px 0 rgba(0, 0, 0, .12),\n 0 3px 5px -1px rgba(0, 0, 0, .4);\n}\n\n@mixin z-depth-8dp() {\n box-shadow: 0 8px 10px 1px rgba(0, 0, 0, .14),\n 0 3px 14px 2px rgba(0, 0, 0, .12),\n 0 5px 5px -3px rgba(0, 0, 0, .4);\n}\n\n@mixin z-depth-16dp() {\n box-shadow: 0 16px 24px 2px rgba(0, 0, 0, .14),\n 0 6px 30px 5px rgba(0, 0, 0, .12),\n 0 8px 10px -5px rgba(0, 0, 0, .4);\n}\n\n@mixin z-depth-24dp() {\n box-shadow: 0 9px 46px 8px rgba(0, 0, 0, .14),\n 0 24px 38px 3px rgba(0, 0, 0, .12),\n 0 11px 15px -7px rgba(0, 0, 0, .4);\n}\n\n@mixin z-depth($dp: 2) {\n @if $dp == 2 {\n @include z-depth-2dp();\n } @else if $dp == 3 {\n @include z-depth-3dp();\n } @else if $dp == 4 {\n @include z-depth-4dp();\n } @else if $dp == 6 {\n @include z-depth-6dp();\n } @else if $dp == 8 {\n @include z-depth-8dp();\n } @else if $dp == 16 {\n @include z-depth-16dp();\n } @else if $dp == 24 {\n @include z-depth-24dp();\n }\n}\n\n\n// Class generator\n// ------------------------------------\n\n@mixin z-depth-classes($transition: false, $focus: false) {\n @if $transition == true {\n &-transition {\n @include z-depth-transition();\n }\n }\n\n @if $focus == true {\n &-focus {\n @include z-depth-focus();\n }\n }\n\n // The available values for the shadow depth\n @each $depth in 2, 3, 4, 6, 8, 16, 24 {\n &-#{$depth}dp {\n @include z-depth($depth);\n }\n }\n}\n","////\n/// Copyright (c) 2016-2021 Martin Donath <martin.donath@squidfunk.com>\n///\n/// Permission is hereby granted, free of charge, to any person obtaining a\n/// copy of this software and associated documentation files (the \"Software\"),\n/// to deal in the Software without restriction, including without limitation\n/// the rights to use, copy, modify, merge, publish, distribute, sublicense,\n/// and/or sell copies of the Software, and to permit persons to whom the\n/// Software is furnished to do so, subject to the following conditions:\n///\n/// The above copyright notice and this permission notice shall be included in\n/// all copies or substantial portions of the Software.\n///\n/// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n/// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n/// FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL\n/// THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n/// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n/// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER\n/// DEALINGS\n////\n\n// ----------------------------------------------------------------------------\n// Rules: base grid and containers\n// ----------------------------------------------------------------------------\n\n// Stretch container to viewport and set base `font-size`\nhtml {\n height: 100%;\n overflow-x: hidden;\n // Hack: normally, we would set the base `font-size` to `62.5%`, so we can\n // base all calculations on `10px`, but Chromium and Chrome define a minimal\n // `font-size` of `12px` if the system language is set to Chinese. For this\n // reason we just double the `font-size` and set it to `20px`.\n //\n // See https://github.com/squidfunk/mkdocs-material/issues/911\n font-size: 125%;\n\n // [screen medium +]: Set base `font-size` to `11px`\n @include break-from-device(screen medium) {\n font-size: 137.5%;\n }\n\n // [screen large +]: Set base `font-size` to `12px`\n @include break-from-device(screen large) {\n font-size: 150%;\n }\n}\n\n// Stretch body to container - flexbox is used, so the footer will always be\n// aligned to the bottom of the viewport\nbody {\n position: relative;\n display: flex;\n flex-direction: column;\n width: 100%;\n min-height: 100%;\n // Hack: reset `font-size` to `10px`, so the spacing for all inline elements\n // is correct again. Otherwise the spacing would be based on `20px`.\n font-size: px2rem(10px);\n background-color: var(--md-default-bg-color);\n\n // [print]: Omit flexbox layout due to a Firefox bug (https://mzl.la/39DgR3m)\n @media print {\n display: block;\n }\n\n // Body in locked state\n &[data-md-state=\"lock\"] {\n\n // [tablet portrait -]: Omit scroll bubbling\n @include break-to-device(tablet portrait) {\n position: fixed;\n }\n }\n}\n\n// ----------------------------------------------------------------------------\n\n// Grid container - this class is applied to wrapper elements within the\n// header, content area and footer, and makes sure that their width is limited\n// to `1220px`, and they are rendered centered if the screen is larger.\n.md-grid {\n max-width: px2rem(1220px);\n margin-right: auto;\n margin-left: auto;\n}\n\n// Main container\n.md-container {\n display: flex;\n flex-direction: column;\n flex-grow: 1;\n\n // [print]: Omit flexbox layout due to a Firefox bug (https://mzl.la/39DgR3m)\n @media print {\n display: block;\n }\n}\n\n// Main area - stretch to remaining space of container\n.md-main {\n flex-grow: 1;\n\n // Main area wrapper\n &__inner {\n display: flex;\n height: 100%;\n margin-top: px2rem(24px + 6px);\n }\n}\n\n// Add ellipsis in case of overflowing text\n.md-ellipsis {\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n}\n\n// ----------------------------------------------------------------------------\n// Rules: navigational elements\n// ----------------------------------------------------------------------------\n\n// Toggle - this class is applied to checkbox elements, which are used to\n// implement the CSS-only drawer and navigation, as well as the search\n.md-toggle {\n display: none;\n}\n\n// Option - this class is applied to radio elements, which are used to\n// implement the color palette toggle\n.md-option {\n position: absolute;\n width: 0;\n height: 0;\n opacity: 0;\n\n // Option label for checked radio button\n &:checked + label:not([hidden]) {\n display: block;\n }\n\n // Show outline for pointer devices\n &.focus-visible + label {\n outline-style: auto;\n outline-color: var(--md-accent-fg-color);\n }\n}\n\n// Skip link\n.md-skip {\n position: fixed;\n // Hack: if we don't set the negative `z-index`, the skip link will force the\n // creation of new layers when code blocks are near the header on scrolling\n z-index: -1;\n margin: px2rem(10px);\n padding: px2rem(6px) px2rem(10px);\n color: var(--md-default-bg-color);\n font-size: px2rem(12.8px);\n background-color: var(--md-default-fg-color);\n border-radius: px2rem(2px);\n outline-color: var(--md-accent-fg-color);\n transform: translateY(px2rem(8px));\n opacity: 0;\n\n // Show skip link on focus\n &:focus {\n z-index: 10;\n transform: translateY(0);\n opacity: 1;\n transition:\n transform 250ms cubic-bezier(0.4, 0, 0.2, 1),\n opacity 175ms 75ms;\n }\n}\n\n// ----------------------------------------------------------------------------\n// Rules: print styles\n// ----------------------------------------------------------------------------\n\n// Add margins to page\n@page {\n margin: 25mm;\n}\n","////\n/// Copyright (c) 2016-2021 Martin Donath <martin.donath@squidfunk.com>\n///\n/// Permission is hereby granted, free of charge, to any person obtaining a\n/// copy of this software and associated documentation files (the \"Software\"),\n/// to deal in the Software without restriction, including without limitation\n/// the rights to use, copy, modify, merge, publish, distribute, sublicense,\n/// and/or sell copies of the Software, and to permit persons to whom the\n/// Software is furnished to do so, subject to the following conditions:\n///\n/// The above copyright notice and this permission notice shall be included in\n/// all copies or substantial portions of the Software.\n///\n/// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n/// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n/// FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL\n/// THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n/// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n/// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER\n/// DEALINGS\n////\n\n// ----------------------------------------------------------------------------\n// Rules\n// ----------------------------------------------------------------------------\n\n// Announcement bar\n.md-announce {\n overflow: auto;\n background-color: var(--md-footer-bg-color);\n\n // [print]: Hide announcement bar\n @media print {\n display: none;\n }\n\n // Announcement wrapper\n &__inner {\n margin: px2rem(12px) auto;\n padding: 0 px2rem(16px);\n color: var(--md-footer-fg-color);\n font-size: px2rem(14px);\n }\n}\n","////\n/// Copyright (c) 2016-2021 Martin Donath <martin.donath@squidfunk.com>\n///\n/// Permission is hereby granted, free of charge, to any person obtaining a\n/// copy of this software and associated documentation files (the \"Software\"),\n/// to deal in the Software without restriction, including without limitation\n/// the rights to use, copy, modify, merge, publish, distribute, sublicense,\n/// and/or sell copies of the Software, and to permit persons to whom the\n/// Software is furnished to do so, subject to the following conditions:\n///\n/// The above copyright notice and this permission notice shall be included in\n/// all copies or substantial portions of the Software.\n///\n/// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n/// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n/// FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL\n/// THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n/// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n/// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER\n/// DEALINGS\n////\n\n// ----------------------------------------------------------------------------\n// Rules\n// ----------------------------------------------------------------------------\n\n// Icon definitions\n:root {\n --md-clipboard-icon: svg-load(\"material/content-copy.svg\");\n}\n\n// ----------------------------------------------------------------------------\n\n// Button to copy to clipboard\n.md-clipboard {\n position: absolute;\n top: px2em(8px);\n right: px2em(8px);\n z-index: 1;\n width: px2em(24px);\n height: px2em(24px);\n color: var(--md-default-fg-color--lightest);\n border-radius: px2rem(2px);\n outline-color: var(--md-accent-fg-color);\n outline-offset: px2rem(2px);\n cursor: pointer;\n transition: color 250ms;\n\n // [print]: Hide button\n @media print {\n display: none;\n }\n\n // Hide outline for pointer devices\n &:not(.focus-visible) {\n outline: none;\n -webkit-tap-highlight-color: transparent;\n }\n\n // Darken color on code block hover\n :hover > & {\n color: var(--md-default-fg-color--light);\n }\n\n // Button on focus/hover\n &:focus,\n &:hover {\n color: var(--md-accent-fg-color);\n }\n\n // Button icon - the width and height are defined in `em`, so the size is\n // automatically adjusted for nested code blocks (e.g. in admonitions)\n &::after {\n display: block;\n width: px2em(18px);\n height: px2em(18px);\n margin: 0 auto;\n background-color: currentColor;\n mask-image: var(--md-clipboard-icon);\n mask-repeat: no-repeat;\n mask-size: contain;\n content: \"\";\n }\n\n // Inline button\n &--inline {\n cursor: pointer;\n\n // Code block\n code {\n transition:\n color 250ms,\n background-color 250ms;\n }\n\n // Code block on focus/hover\n &:focus code,\n &:hover code {\n color: var(--md-accent-fg-color);\n background-color: var(--md-accent-fg-color--transparent);\n }\n }\n}\n","////\n/// Copyright (c) 2016-2021 Martin Donath <martin.donath@squidfunk.com>\n///\n/// Permission is hereby granted, free of charge, to any person obtaining a\n/// copy of this software and associated documentation files (the \"Software\"),\n/// to deal in the Software without restriction, including without limitation\n/// the rights to use, copy, modify, merge, publish, distribute, sublicense,\n/// and/or sell copies of the Software, and to permit persons to whom the\n/// Software is furnished to do so, subject to the following conditions:\n///\n/// The above copyright notice and this permission notice shall be included in\n/// all copies or substantial portions of the Software.\n///\n/// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n/// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n/// FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL\n/// THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n/// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n/// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER\n/// DEALINGS\n////\n\n// ----------------------------------------------------------------------------\n// Rules\n// ----------------------------------------------------------------------------\n\n// Content area\n.md-content {\n flex-grow: 1;\n // Hack: we must use `overflow: hidden`, so the content area is capped by\n // the dimensions of its parent. Otherwise, long code blocks might lead to\n // a wider content area which will break everything. This, however, induces\n // margin collapse, which will break scroll margins. Adding a large enough\n // scroll padding seems to do the trick, at least in Chrome and Firefox.\n overflow: hidden;\n scroll-padding-top: px2rem(1024px);\n\n // Content wrapper\n &__inner {\n margin: 0 px2rem(16px) px2rem(24px);\n padding-top: px2rem(12px);\n\n // [screen +]: Adjust spacing between content area and sidebars\n @include break-from-device(screen) {\n\n // Sidebar with navigation is visible\n .md-sidebar--primary:not([hidden]) ~ .md-content > & {\n margin-left: px2rem(24px);\n\n // Adjust for right-to-left languages\n [dir=\"rtl\"] & {\n margin-right: px2rem(24px);\n margin-left: px2rem(16px);\n }\n }\n\n // Sidebar with table of contents is visible\n .md-sidebar--secondary:not([hidden]) ~ .md-content > & {\n margin-right: px2rem(24px);\n\n // Adjust for right-to-left languages\n [dir=\"rtl\"] & {\n margin-right: px2rem(16px);\n margin-left: px2rem(24px);\n }\n }\n }\n\n // Hack: add pseudo element for spacing, as the overflow of the content\n // container may not be hidden due to an imminent offset error on targets\n &::before {\n display: block;\n height: px2rem(8px);\n content: \"\";\n }\n\n // Adjust spacing on last child\n > :last-child {\n margin-bottom: 0;\n }\n }\n\n // Button inside of the content area - these buttons are meant for actions on\n // a document-level, i.e. linking to related source code files, printing etc.\n &__button {\n float: right;\n margin: px2rem(8px) 0;\n margin-left: px2rem(8px);\n padding: 0;\n\n // [print]: Hide buttons\n @media print {\n display: none;\n }\n\n // Adjust for right-to-left languages\n [dir=\"rtl\"] & {\n float: left;\n margin-right: px2rem(8px);\n margin-left: initial;\n\n // Flip icon vertically\n svg {\n transform: scaleX(-1);\n }\n }\n\n // Adjust default link color for icons\n .md-typeset & {\n color: var(--md-default-fg-color--lighter);\n }\n\n // Align with body copy located next to icon\n svg {\n display: inline;\n vertical-align: top;\n }\n }\n}\n","////\n/// Copyright (c) 2016-2021 Martin Donath <martin.donath@squidfunk.com>\n///\n/// Permission is hereby granted, free of charge, to any person obtaining a\n/// copy of this software and associated documentation files (the \"Software\"),\n/// to deal in the Software without restriction, including without limitation\n/// the rights to use, copy, modify, merge, publish, distribute, sublicense,\n/// and/or sell copies of the Software, and to permit persons to whom the\n/// Software is furnished to do so, subject to the following conditions:\n///\n/// The above copyright notice and this permission notice shall be included in\n/// all copies or substantial portions of the Software.\n///\n/// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n/// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n/// FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL\n/// THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n/// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n/// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER\n/// DEALINGS\n////\n\n// ----------------------------------------------------------------------------\n// Rules\n// ----------------------------------------------------------------------------\n\n// Dialog\n.md-dialog {\n @include z-depth(2);\n\n position: fixed;\n right: px2rem(16px);\n bottom: px2rem(16px);\n left: initial;\n z-index: 2;\n min-width: px2rem(222px);\n padding: px2rem(8px) px2rem(12px);\n background-color: var(--md-default-fg-color);\n border-radius: px2rem(2px);\n transform: translateY(100%);\n opacity: 0;\n transition:\n transform 0ms 400ms,\n opacity 400ms;\n pointer-events: none;\n\n // [print]: Hide dialog\n @media print {\n display: none;\n }\n\n // Adjust for right-to-left languages\n [dir=\"rtl\"] & {\n right: initial;\n left: px2rem(16px);\n }\n\n // Dialog in open state\n &[data-md-state=\"open\"] {\n transform: translateY(0);\n opacity: 1;\n transition:\n transform 400ms cubic-bezier(0.075, 0.85, 0.175, 1),\n opacity 400ms;\n pointer-events: initial;\n }\n\n // Dialog wrapper\n &__inner {\n color: var(--md-default-bg-color);\n font-size: px2rem(14px);\n }\n}\n","////\n/// Copyright (c) 2016-2021 Martin Donath <martin.donath@squidfunk.com>\n///\n/// Permission is hereby granted, free of charge, to any person obtaining a\n/// copy of this software and associated documentation files (the \"Software\"),\n/// to deal in the Software without restriction, including without limitation\n/// the rights to use, copy, modify, merge, publish, distribute, sublicense,\n/// and/or sell copies of the Software, and to permit persons to whom the\n/// Software is furnished to do so, subject to the following conditions:\n///\n/// The above copyright notice and this permission notice shall be included in\n/// all copies or substantial portions of the Software.\n///\n/// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n/// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n/// FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL\n/// THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n/// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n/// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER\n/// DEALINGS\n////\n\n// ----------------------------------------------------------------------------\n// Rules\n// ----------------------------------------------------------------------------\n\n// Scoped in typesetted content to match specificity of regular content\n.md-typeset {\n\n // Form button\n .md-button {\n display: inline-block;\n padding: px2em(10px) px2em(32px);\n color: var(--md-primary-fg-color);\n font-weight: 700;\n border: px2rem(2px) solid currentColor;\n border-radius: px2rem(2px);\n transition:\n color 125ms,\n background-color 125ms,\n border-color 125ms;\n\n // Primary button\n &--primary {\n color: var(--md-primary-bg-color);\n background-color: var(--md-primary-fg-color);\n border-color: var(--md-primary-fg-color);\n }\n\n // Button on focus/hover\n &:focus,\n &:hover {\n color: var(--md-accent-bg-color);\n background-color: var(--md-accent-fg-color);\n border-color: var(--md-accent-fg-color);\n }\n }\n\n // Form input\n .md-input {\n height: px2rem(36px);\n padding: 0 px2rem(12px);\n font-size: px2rem(16px);\n border-radius: px2rem(2px);\n box-shadow:\n 0 px2rem(4px) px2rem(10px) hsla(0, 0%, 0%, 0.1),\n 0 px2rem(0.5px) px2rem(1px) hsla(0, 0%, 0%, 0.1);\n transition: box-shadow 250ms;\n\n // Input on focus/hover\n &:focus,\n &:hover {\n box-shadow:\n 0 px2rem(8px) px2rem(20px) hsla(0, 0%, 0%, 0.15),\n 0 px2rem(0.5px) px2rem(1px) hsla(0, 0%, 0%, 0.15);\n }\n\n // Stretch to full width\n &--stretch {\n width: 100%;\n }\n }\n}\n","////\n/// Copyright (c) 2016-2021 Martin Donath <martin.donath@squidfunk.com>\n///\n/// Permission is hereby granted, free of charge, to any person obtaining a\n/// copy of this software and associated documentation files (the \"Software\"),\n/// to deal in the Software without restriction, including without limitation\n/// the rights to use, copy, modify, merge, publish, distribute, sublicense,\n/// and/or sell copies of the Software, and to permit persons to whom the\n/// Software is furnished to do so, subject to the following conditions:\n///\n/// The above copyright notice and this permission notice shall be included in\n/// all copies or substantial portions of the Software.\n///\n/// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n/// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n/// FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL\n/// THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n/// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n/// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER\n/// DEALINGS\n////\n\n// ----------------------------------------------------------------------------\n// Rules\n// ----------------------------------------------------------------------------\n\n// Header - by default, the header will be sticky and stay always on top of the\n// viewport. If this behavior is not desired, just set `position: static`.\n.md-header {\n position: sticky;\n top: 0;\n right: 0;\n left: 0;\n z-index: 2;\n color: var(--md-primary-bg-color);\n background-color: var(--md-primary-fg-color);\n // Hack: reduce jitter by adding a transparent box shadow of the same size\n // so the size of the layer doesn't change during animation\n box-shadow:\n 0 0 px2rem(4px) rgba(0, 0, 0, 0),\n 0 px2rem(4px) px2rem(8px) rgba(0, 0, 0, 0);\n\n // [print]: Hide header\n @media print {\n display: none;\n }\n\n // Header in shadow state, i.e. shadow is visible\n &[data-md-state=\"shadow\"] {\n box-shadow:\n 0 0 px2rem(4px) rgba(0, 0, 0, 0.1),\n 0 px2rem(4px) px2rem(8px) rgba(0, 0, 0, 0.2);\n transition:\n transform 250ms cubic-bezier(0.1, 0.7, 0.1, 1),\n box-shadow 250ms;\n }\n\n // Header in hidden state, i.e. moved out of sight\n &[data-md-state=\"hidden\"] {\n transform: translateY(-100%);\n transition:\n transform 250ms cubic-bezier(0.8, 0, 0.6, 1),\n box-shadow 250ms;\n }\n\n // Header wrapper\n &__inner {\n display: flex;\n align-items: center;\n padding: 0 px2rem(4px);\n }\n\n // Header button\n &__button {\n position: relative;\n z-index: 1;\n margin: px2rem(4px);\n padding: px2rem(8px);\n color: currentColor;\n vertical-align: middle;\n outline-color: var(--md-accent-fg-color);\n cursor: pointer;\n transition: opacity 250ms;\n\n // Button on hover\n &:hover {\n opacity: 0.7;\n }\n\n // Header button is visible\n &:not([hidden]) {\n display: inline-block;\n }\n\n // Hide outline for pointer devices\n &:not(.focus-visible) {\n outline: none;\n -webkit-tap-highlight-color: transparent;\n }\n\n // Button with logo, pointing to `config.site_url`\n &.md-logo {\n margin: px2rem(4px);\n padding: px2rem(8px);\n\n // [tablet -]: Hide button\n @include break-to-device(tablet) {\n display: none;\n }\n\n // Image or icon\n img,\n svg {\n display: block;\n width: px2rem(24px);\n height: px2rem(24px);\n fill: currentColor;\n }\n }\n\n // Button for search\n &[for=\"__search\"] {\n\n // [tablet landscape +]: Hide button\n @include break-from-device(tablet landscape) {\n display: none;\n }\n\n // [no-js]: Hide button\n .no-js & {\n display: none;\n }\n\n // Adjust for right-to-left languages\n [dir=\"rtl\"] & {\n\n // Flip icon vertically\n svg {\n transform: scaleX(-1);\n }\n }\n }\n\n // Button for drawer\n &[for=\"__drawer\"] {\n\n // [screen +]: Hide button\n @include break-from-device(screen) {\n display: none;\n }\n }\n }\n\n // Header topic\n &__topic {\n position: absolute;\n display: flex;\n max-width: 100%;\n transition:\n transform 400ms cubic-bezier(0.1, 0.7, 0.1, 1),\n opacity 150ms;\n\n // Second header topic - title of the current page\n & + & {\n z-index: -1;\n transform: translateX(px2rem(25px));\n opacity: 0;\n transition:\n transform 400ms cubic-bezier(1, 0.7, 0.1, 0.1),\n opacity 150ms;\n pointer-events: none;\n\n // Adjust for right-to-left languages\n [dir=\"rtl\"] & {\n transform: translateX(px2rem(-25px));\n }\n }\n }\n\n // Header title\n &__title {\n flex-grow: 1;\n height: px2rem(48px);\n margin-right: px2rem(8px);\n margin-left: px2rem(20px);\n font-size: px2rem(18px);\n line-height: px2rem(48px);\n\n // Header title in active state, i.e. page title is visible\n &[data-md-state=\"active\"] .md-header__topic {\n z-index: -1;\n transform: translateX(px2rem(-25px));\n opacity: 0;\n transition:\n transform 400ms cubic-bezier(1, 0.7, 0.1, 0.1),\n opacity 150ms;\n pointer-events: none;\n\n // Adjust for right-to-left languages\n [dir=\"rtl\"] & {\n transform: translateX(px2rem(25px));\n }\n\n // Second header topic - title of the current page\n + .md-header__topic {\n z-index: 0;\n transform: translateX(0);\n opacity: 1;\n transition:\n transform 400ms cubic-bezier(0.1, 0.7, 0.1, 1),\n opacity 150ms;\n pointer-events: initial;\n }\n }\n\n // Add ellipsis in case of overflowing text\n > .md-header__ellipsis {\n position: relative;\n width: 100%;\n height: 100%;\n }\n }\n\n // Header option\n &__option {\n display: flex;\n flex-shrink: 0;\n max-width: 100%;\n white-space: nowrap;\n transition:\n max-width 0ms 250ms,\n opacity 250ms 250ms;\n\n // Hide toggle when search is active\n [data-md-toggle=\"search\"]:checked ~ .md-header & {\n max-width: 0;\n opacity: 0;\n transition:\n max-width 0ms,\n opacity 0ms;\n }\n }\n\n // Repository information container\n &__source {\n display: none;\n\n // [tablet landscape +]: Show repository information\n @include break-from-device(tablet landscape) {\n display: block;\n width: px2rem(234px);\n max-width: px2rem(234px);\n margin-left: px2rem(20px);\n\n // Adjust for right-to-left languages\n [dir=\"rtl\"] & {\n margin-right: px2rem(20px);\n margin-left: initial;\n }\n }\n\n // [screen +]: Adjust spacing of search bar\n @include break-from-device(screen) {\n margin-left: px2rem(28px);\n\n // Adjust for right-to-left languages\n [dir=\"rtl\"] & {\n margin-right: px2rem(28px);\n }\n }\n }\n}\n","////\n/// Copyright (c) 2016-2021 Martin Donath <martin.donath@squidfunk.com>\n///\n/// Permission is hereby granted, free of charge, to any person obtaining a\n/// copy of this software and associated documentation files (the \"Software\"),\n/// to deal in the Software without restriction, including without limitation\n/// the rights to use, copy, modify, merge, publish, distribute, sublicense,\n/// and/or sell copies of the Software, and to permit persons to whom the\n/// Software is furnished to do so, subject to the following conditions:\n///\n/// The above copyright notice and this permission notice shall be included in\n/// all copies or substantial portions of the Software.\n///\n/// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n/// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n/// FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL\n/// THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n/// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n/// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER\n/// DEALINGS\n////\n\n// ----------------------------------------------------------------------------\n// Rules\n// ----------------------------------------------------------------------------\n\n// Footer\n.md-footer {\n color: var(--md-footer-fg-color);\n background-color: var(--md-footer-bg-color);\n\n // [print]: Hide footer\n @media print {\n display: none;\n }\n\n // Footer wrapper\n &__inner {\n padding: px2rem(4px);\n overflow: auto;\n }\n\n // Footer link to previous and next page\n &__link {\n display: flex;\n padding-top: px2rem(28px);\n padding-bottom: px2rem(8px);\n outline-color: var(--md-accent-fg-color);\n transition: opacity 250ms;\n\n // [tablet +]: Adjust width to 50/50\n @include break-from-device(tablet) {\n width: 50%;\n }\n\n // Footer link on focus/hover\n &:focus,\n &:hover {\n opacity: 0.7;\n }\n\n // Footer link to previous page\n &--prev {\n float: left;\n\n // [mobile -]: Adjust width to 25/75 and hide title\n @include break-to-device(mobile) {\n width: 25%;\n\n // Hide footer title\n .md-footer__title {\n display: none;\n }\n }\n\n // Adjust for right-to-left languages\n [dir=\"rtl\"] & {\n float: right;\n\n // Flip icon vertically\n svg {\n transform: scaleX(-1);\n }\n }\n }\n\n // Footer link to next page\n &--next {\n float: right;\n text-align: right;\n\n // [mobile -]: Adjust width to 25/75\n @include break-to-device(mobile) {\n width: 75%;\n }\n\n // Adjust for right-to-left languages\n [dir=\"rtl\"] & {\n float: left;\n text-align: left;\n\n // Flip icon vertically\n svg {\n transform: scaleX(-1);\n }\n }\n }\n }\n\n // Footer title\n &__title {\n position: relative;\n flex-grow: 1;\n max-width: calc(100% - #{px2rem(48px)});\n padding: 0 px2rem(20px);\n font-size: px2rem(18px);\n line-height: px2rem(48px);\n }\n\n // Footer link button\n &__button {\n margin: px2rem(4px);\n padding: px2rem(8px);\n }\n\n // Footer link direction (i.e. prev and next)\n &__direction {\n position: absolute;\n right: 0;\n left: 0;\n margin-top: px2rem(-20px);\n padding: 0 px2rem(20px);\n font-size: px2rem(12.8px);\n opacity: 0.7;\n }\n}\n\n// Footer metadata\n.md-footer-meta {\n background-color: var(--md-footer-bg-color--dark);\n\n // Footer metadata wrapper\n &__inner {\n display: flex;\n flex-wrap: wrap;\n justify-content: space-between;\n padding: px2rem(4px);\n }\n\n // Lighten color for non-hovered text links\n html &.md-typeset a {\n color: var(--md-footer-fg-color--light);\n\n // Text link on focus/hover\n &:focus,\n &:hover {\n color: var(--md-footer-fg-color);\n }\n }\n}\n\n// Footer copyright and theme information\n.md-footer-copyright {\n width: 100%;\n margin: auto px2rem(12px);\n padding: px2rem(8px) 0;\n color: var(--md-footer-fg-color--lighter);\n font-size: px2rem(12.8px);\n\n // [tablet portrait +]: Show copyright and social links in one line\n @include break-from-device(tablet portrait) {\n width: auto;\n }\n\n // Footer copyright highlight - this is the upper part of the copyright and\n // theme information, which will include a darker color than the theme link\n &__highlight {\n color: var(--md-footer-fg-color--light);\n }\n}\n\n// Footer social links\n.md-footer-social {\n margin: 0 px2rem(8px);\n padding: px2rem(4px) 0 px2rem(12px);\n\n // [tablet portrait +]: Show copyright and social links in one line\n @include break-from-device(tablet portrait) {\n padding: px2rem(12px) 0;\n }\n\n // Footer social link\n &__link {\n display: inline-block;\n width: px2rem(32px);\n height: px2rem(32px);\n text-align: center;\n\n // Adjust line-height to match height for correct alignment\n &::before {\n line-height: 1.9;\n }\n\n // Fill icon with current color\n svg {\n max-height: px2rem(16px);\n vertical-align: -25%;\n fill: currentColor;\n }\n }\n}\n","////\n/// Copyright (c) 2016-2021 Martin Donath <martin.donath@squidfunk.com>\n///\n/// Permission is hereby granted, free of charge, to any person obtaining a\n/// copy of this software and associated documentation files (the \"Software\"),\n/// to deal in the Software without restriction, including without limitation\n/// the rights to use, copy, modify, merge, publish, distribute, sublicense,\n/// and/or sell copies of the Software, and to permit persons to whom the\n/// Software is furnished to do so, subject to the following conditions:\n///\n/// The above copyright notice and this permission notice shall be included in\n/// all copies or substantial portions of the Software.\n///\n/// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n/// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n/// FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL\n/// THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n/// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n/// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER\n/// DEALINGS\n////\n\n// ----------------------------------------------------------------------------\n// Rules\n// ----------------------------------------------------------------------------\n\n// Icon definitions\n:root {\n --md-nav-icon--prev: svg-load(\"material/arrow-left.svg\");\n --md-nav-icon--next: svg-load(\"material/chevron-right.svg\");\n --md-toc-icon: svg-load(\"material/table-of-contents.svg\");\n}\n\n// ----------------------------------------------------------------------------\n\n// Navigation\n.md-nav {\n font-size: px2rem(14px);\n line-height: 1.3;\n\n // Navigation title\n &__title {\n display: block;\n padding: 0 px2rem(12px);\n overflow: hidden;\n font-weight: 700;\n text-overflow: ellipsis;\n\n // Navigaton button\n .md-nav__button {\n display: none;\n\n // Stretch images based on height, as it's the smaller dimension\n img {\n width: auto;\n height: 100%;\n }\n\n // Button with logo, pointing to `config.site_url`\n &.md-logo {\n\n // Image or icon\n img,\n svg {\n display: block;\n width: px2rem(48px);\n height: px2rem(48px);\n fill: currentColor;\n }\n }\n }\n }\n\n // Navigation list\n &__list {\n margin: 0;\n padding: 0;\n list-style: none;\n }\n\n // Navigation item\n &__item {\n padding: 0 px2rem(12px);\n\n // Navigation item on level 2\n & & {\n padding-right: 0;\n\n // Adjust for right-to-left languages\n [dir=\"rtl\"] & {\n padding-right: px2rem(12px);\n padding-left: 0;\n }\n }\n }\n\n // Navigation link\n &__link {\n display: block;\n margin-top: 0.625em;\n overflow: hidden;\n text-overflow: ellipsis;\n cursor: pointer;\n transition: color 125ms;\n scroll-snap-align: start;\n\n // Link in blurred state\n &[data-md-state=\"blur\"] {\n color: var(--md-default-fg-color--light);\n }\n\n // Active link\n .md-nav__item &--active {\n color: var(--md-typeset-a-color);\n }\n\n // Navigation link in nested list\n .md-nav__item--nested > & {\n color: inherit;\n }\n\n // Navigation link on focus/hover\n &:focus,\n &:hover {\n color: var(--md-accent-fg-color);\n }\n\n // Navigation link on keyboard focus\n &.focus-visible {\n outline-color: var(--md-accent-fg-color);\n outline-offset: px2rem(4px);\n }\n\n // Navigation link to table of contents\n .md-nav--primary &[for=\"__toc\"] {\n display: none;\n\n // Table of contents icon\n .md-icon::after {\n display: block;\n width: 100%;\n height: 100%;\n mask-image: var(--md-toc-icon);\n background-color: currentColor;\n }\n\n // Hide table of contents\n ~ .md-nav {\n display: none;\n }\n }\n }\n\n // Repository information container\n &__source {\n display: none;\n }\n\n // [tablet -]: Layered navigation\n @include break-to-device(tablet) {\n\n // Primary and nested navigation\n &--primary,\n &--primary & {\n position: absolute;\n top: 0;\n right: 0;\n left: 0;\n z-index: 1;\n display: flex;\n flex-direction: column;\n height: 100%;\n background-color: var(--md-default-bg-color);\n }\n\n // Primary navigation\n &--primary {\n\n // Navigation title and item\n .md-nav__title,\n .md-nav__item {\n font-size: px2rem(16px);\n line-height: 1.5;\n }\n\n // Navigation title\n .md-nav__title {\n position: relative;\n height: px2rem(112px);\n padding: px2rem(60px) px2rem(16px) px2rem(4px);\n color: var(--md-default-fg-color--light);\n font-weight: 400;\n line-height: px2rem(48px);\n white-space: nowrap;\n background-color: var(--md-default-fg-color--lightest);\n cursor: pointer;\n\n // Navigation icon\n .md-nav__icon {\n position: absolute;\n top: px2rem(8px);\n left: px2rem(8px);\n display: block;\n width: px2rem(24px);\n height: px2rem(24px);\n margin: px2rem(4px);\n\n // Adjust for right-to-left languages\n [dir=\"rtl\"] & {\n right: px2rem(8px);\n left: initial;\n }\n\n // Navigation icon in link to previous level\n &::after {\n display: block;\n width: 100%;\n height: 100%;\n background-color: currentColor;\n mask-image: var(--md-nav-icon--prev);\n mask-repeat: no-repeat;\n mask-size: contain;\n content: \"\";\n }\n }\n\n // Navigation list\n ~ .md-nav__list {\n overflow-y: auto;\n background-color: var(--md-default-bg-color);\n box-shadow:\n 0 px2rem(1px) 0 var(--md-default-fg-color--lightest) inset;\n scroll-snap-type: y mandatory;\n touch-action: pan-y;\n\n // Omit border on first child\n > :first-child {\n border-top: 0;\n }\n }\n\n // Top-level navigation title\n &[for=\"__drawer\"] {\n color: var(--md-primary-bg-color);\n background-color: var(--md-primary-fg-color);\n }\n\n // Button with logo, pointing to `config.site_url`\n .md-logo {\n position: absolute;\n top: px2rem(4px);\n left: px2rem(4px);\n display: block;\n margin: px2rem(4px);\n padding: px2rem(8px);\n\n // Adjust for right-to-left languages\n [dir=\"rtl\"] & {\n right: px2rem(4px);\n left: initial;\n }\n }\n }\n\n // Navigation list\n .md-nav__list {\n flex: 1;\n }\n\n // Navigation item\n .md-nav__item {\n padding: 0;\n border-top: px2rem(1px) solid var(--md-default-fg-color--lightest);\n\n // Navigation link in nested navigation\n &--nested > .md-nav__link {\n padding-right: px2rem(48px);\n\n // Adjust for right-to-left languages\n [dir=\"rtl\"] & {\n padding-right: px2rem(16px);\n padding-left: px2rem(48px);\n }\n }\n\n // Navigation link in active navigation\n &--active > .md-nav__link {\n color: var(--md-typeset-a-color);\n\n // Navigation link on focus/hover\n &:focus,\n &:hover {\n color: var(--md-accent-fg-color);\n }\n }\n }\n\n // Navigation link\n .md-nav__link {\n position: relative;\n margin-top: 0;\n padding: px2rem(12px) px2rem(16px);\n\n // Navigation icon\n .md-nav__icon {\n position: absolute;\n top: 50%;\n right: px2rem(12px);\n width: px2rem(24px);\n height: px2rem(24px);\n margin-top: px2rem(-12px);\n color: inherit;\n font-size: px2rem(24px);\n\n // Adjust for right-to-left languages\n [dir=\"rtl\"] & {\n right: initial;\n left: px2rem(12px);\n }\n\n // Navigation icon in link to next level\n &::after {\n display: block;\n width: 100%;\n height: 100%;\n background-color: currentColor;\n mask-image: var(--md-nav-icon--next);\n mask-repeat: no-repeat;\n mask-size: contain;\n content: \"\";\n }\n }\n }\n\n // Flip icon vertically\n .md-nav__icon {\n\n // Adjust for right-to-left languages\n [dir=\"rtl\"] &::after {\n transform: scale(-1);\n }\n }\n\n // Table of contents contained in primary navigation\n .md-nav--secondary {\n\n // Navigation link - omit unnecessary layering\n .md-nav__link {\n position: static;\n }\n\n // Navigation on level 2-6\n .md-nav {\n position: static;\n background-color: transparent;\n\n // Navigation link on level 3\n .md-nav__link {\n padding-left: px2rem(28px);\n\n // Adjust for right-to-left languages\n [dir=\"rtl\"] & {\n padding-right: px2rem(28px);\n padding-left: initial;\n }\n }\n\n // Navigation link on level 4\n .md-nav .md-nav__link {\n padding-left: px2rem(40px);\n\n // Adjust for right-to-left languages\n [dir=\"rtl\"] & {\n padding-right: px2rem(40px);\n padding-left: initial;\n }\n }\n\n // Navigation link on level 5\n .md-nav .md-nav .md-nav__link {\n padding-left: px2rem(52px);\n\n // Adjust for right-to-left languages\n [dir=\"rtl\"] & {\n padding-right: px2rem(52px);\n padding-left: initial;\n }\n }\n\n // Navigation link on level 6\n .md-nav .md-nav .md-nav .md-nav__link {\n padding-left: px2rem(64px);\n\n // Adjust for right-to-left languages\n [dir=\"rtl\"] & {\n padding-right: px2rem(64px);\n padding-left: initial;\n }\n }\n }\n }\n }\n\n // Table of contents\n &--secondary {\n background-color: transparent;\n }\n\n // Toggle for nested navigation\n &__toggle ~ & {\n display: flex;\n transform: translateX(100%);\n opacity: 0;\n transition:\n transform 250ms cubic-bezier(0.8, 0, 0.6, 1),\n opacity 125ms 50ms;\n\n // Adjust for right-to-left languages\n [dir=\"rtl\"] & {\n transform: translateX(-100%);\n }\n }\n\n // Show nested navigation when toggle is active\n &__toggle:checked ~ & {\n transform: translateX(0);\n opacity: 1;\n transition:\n transform 250ms cubic-bezier(0.4, 0, 0.2, 1),\n opacity 125ms 125ms;\n\n // Navigation list\n > .md-nav__list {\n // Hack: promote to own layer to reduce jitter\n backface-visibility: hidden;\n }\n }\n }\n\n // [tablet portrait -]: Layered navigation with table of contents\n @include break-to-device(tablet portrait) {\n\n // Show link to table of contents\n &--primary &__link[for=\"__toc\"] {\n display: block;\n padding-right: px2rem(48px);\n\n // Adjust for right-to-left languages\n [dir=\"rtl\"] & {\n padding-right: px2rem(16px);\n padding-left: px2rem(48px);\n }\n\n // Show table of contents icon\n .md-icon::after {\n content: \"\";\n }\n\n // Hide navigation link to current page\n + .md-nav__link {\n display: none;\n }\n\n // Show table of contents\n ~ .md-nav {\n display: flex;\n }\n }\n\n // Repository information container\n &__source {\n display: block;\n padding: 0 px2rem(4px);\n color: var(--md-primary-bg-color);\n background-color: var(--md-primary-fg-color--dark);\n }\n }\n\n // [tablet landscape]: Layered navigation with table of contents\n @include break-at-device(tablet landscape) {\n\n // Show link to integrated table of contents\n &--integrated &__link[for=\"__toc\"] {\n display: block;\n padding-right: px2rem(48px);\n scroll-snap-align: initial;\n\n // Adjust for right-to-left languages\n [dir=\"rtl\"] & {\n padding-right: px2rem(16px);\n padding-left: px2rem(48px);\n }\n\n // Show table of contents icon\n .md-icon::after {\n content: \"\";\n }\n\n // Hide navigation link to current page\n + .md-nav__link {\n display: none;\n }\n\n // Show table of contents\n ~ .md-nav {\n display: flex;\n }\n }\n }\n\n // [tablet landscape +]: Tree-like table of contents\n @include break-from-device(tablet landscape) {\n\n // Navigation title\n &--secondary &__title {\n\n // Adjust snapping behavior\n &[for=\"__toc\"] {\n scroll-snap-align: start;\n }\n\n // Hide navigation icon\n .md-nav__icon {\n display: none;\n }\n }\n }\n\n // [screen +]: Tree-like navigation\n @include break-from-device(screen) {\n transition: max-height 250ms cubic-bezier(0.86, 0, 0.07, 1);\n\n // Navigation title\n &--primary &__title {\n\n // Adjust snapping behavior\n &[for=\"__drawer\"] {\n scroll-snap-align: start;\n }\n\n // Hide navigation icon\n .md-nav__icon {\n display: none;\n }\n }\n\n // Hide toggle for nested navigation\n &__toggle ~ & {\n display: none;\n }\n\n // Show nested navigation when toggle is active or indeterminate\n &__toggle:checked ~ &,\n &__toggle:indeterminate ~ & {\n display: block;\n }\n\n // Hide navigation title in nested navigation\n &__item--nested > & > &__title {\n display: none;\n }\n\n // Navigation section\n &__item--section {\n display: block;\n margin: 1.25em 0;\n\n // Adjust spacing on last child\n &:last-child {\n margin-bottom: 0;\n }\n\n // Hide navigation link, as sections are always expanded\n > .md-nav__link {\n display: none;\n }\n\n // Navigation\n > .md-nav {\n display: block;\n\n // Navigation title\n > .md-nav__title {\n display: block;\n padding: 0;\n pointer-events: none;\n scroll-snap-align: start;\n }\n\n // Adjust spacing on next level item\n > .md-nav__list > .md-nav__item {\n padding: 0;\n }\n }\n }\n\n // Navigation icon\n &__icon {\n float: right;\n width: px2rem(18px);\n height: px2rem(18px);\n transition: transform 250ms;\n\n // Adjust for right-to-left languages\n [dir=\"rtl\"] & {\n float: left;\n transform: rotate(180deg);\n }\n\n // Navigation icon content\n &::after {\n display: inline-block;\n width: 100%;\n height: 100%;\n vertical-align: px2rem(-2px);\n background-color: currentColor;\n mask-image: var(--md-nav-icon--next);\n mask-repeat: no-repeat;\n mask-size: contain;\n content: \"\";\n }\n\n // Navigation icon - rotate icon when toggle is active or indeterminate\n .md-nav__item--nested .md-nav__toggle:checked ~ .md-nav__link &,\n .md-nav__item--nested .md-nav__toggle:indeterminate ~ .md-nav__link & {\n transform: rotate(90deg);\n }\n }\n\n // Modifier for when navigation tabs are rendered\n &--lifted {\n\n // Hide nested level 0 items and site title\n > .md-nav__list > .md-nav__item--nested,\n > .md-nav__title {\n display: none;\n }\n\n // Hide level 0 items\n > .md-nav__list > .md-nav__item {\n display: none;\n\n // Active parent navigation item\n &--active {\n display: block;\n padding: 0;\n\n // Hide nested links\n > .md-nav__link {\n display: none;\n }\n\n // Show title and adjust spacing\n > .md-nav > .md-nav__title {\n display: block;\n padding: 0 px2rem(12px);\n pointer-events: none;\n scroll-snap-align: start;\n }\n }\n }\n\n // Hack: Always show active navigation tab on breakpoint screen, despite\n // of checkbox being checked or not. Fixes #1655.\n .md-nav[data-md-level=\"1\"] {\n display: block;\n\n // Adjust spacing for level 1 items\n > .md-nav__list > .md-nav__item {\n padding-right: px2rem(12px);\n }\n }\n }\n\n // Modifier for when table of contents is rendered in primary navigation\n &--integrated &__link[for=\"__toc\"] ~ .md-nav {\n display: block;\n margin-bottom: 1.25em;\n border-left: px2rem(1px) solid var(--md-primary-fg-color);\n\n // Hide navigation title\n > .md-nav__title {\n display: none;\n }\n }\n }\n}\n","////\n/// Copyright (c) 2016-2021 Martin Donath <martin.donath@squidfunk.com>\n///\n/// Permission is hereby granted, free of charge, to any person obtaining a\n/// copy of this software and associated documentation files (the \"Software\"),\n/// to deal in the Software without restriction, including without limitation\n/// the rights to use, copy, modify, merge, publish, distribute, sublicense,\n/// and/or sell copies of the Software, and to permit persons to whom the\n/// Software is furnished to do so, subject to the following conditions:\n///\n/// The above copyright notice and this permission notice shall be included in\n/// all copies or substantial portions of the Software.\n///\n/// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n/// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n/// FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL\n/// THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n/// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n/// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER\n/// DEALINGS\n////\n\n// ----------------------------------------------------------------------------\n// Rules\n// ----------------------------------------------------------------------------\n\n// Icon definitions\n:root {\n --md-search-result-icon: svg-load(\"material/file-search-outline.svg\");\n}\n\n// ----------------------------------------------------------------------------\n\n// Search\n.md-search {\n position: relative;\n\n // [tablet landscape +]: Header-embedded search\n @include break-from-device(tablet landscape) {\n padding: px2rem(4px) 0;\n }\n\n // [no-js]: Hide search\n .no-js & {\n display: none;\n }\n\n // Search overlay\n &__overlay {\n z-index: 1;\n opacity: 0;\n\n // [tablet portrait -]: Search modal\n @include break-to-device(tablet portrait) {\n position: absolute;\n top: px2rem(4px);\n left: px2rem(-44px);\n width: px2rem(40px);\n height: px2rem(40px);\n overflow: hidden;\n background-color: var(--md-default-bg-color);\n border-radius: px2rem(20px);\n transform-origin: center;\n transition:\n transform 300ms 100ms,\n opacity 200ms 200ms;\n pointer-events: none;\n\n // Adjust for right-to-left languages\n [dir=\"rtl\"] & {\n right: px2rem(-44px);\n left: initial;\n }\n\n // Show overlay when search is active\n [data-md-toggle=\"search\"]:checked ~ .md-header & {\n opacity: 1;\n transition:\n transform 400ms,\n opacity 100ms;\n }\n }\n\n // [tablet landscape +]: Header-embedded search\n @include break-from-device(tablet landscape) {\n position: fixed;\n top: 0;\n left: 0;\n width: 0;\n height: 0;\n background-color: hsla(0, 0%, 0%, 0.54);\n cursor: pointer;\n transition:\n width 0ms 250ms,\n height 0ms 250ms,\n opacity 250ms;\n\n // Adjust for right-to-left languages\n [dir=\"rtl\"] & {\n right: 0;\n left: initial;\n }\n\n // Show overlay when search is active\n [data-md-toggle=\"search\"]:checked ~ .md-header & {\n width: 100%;\n // Hack: when the header is translated upon scrolling, a new layer is\n // induced, which means that the height will now refer to the height of\n // the header, albeit positioning is fixed. This should be mitigated\n // in all cases when setting the height to 2x the viewport.\n height: 200vh;\n opacity: 1;\n transition:\n width 0ms,\n height 0ms,\n opacity 250ms;\n }\n }\n\n // Adjust appearance when search is active\n [data-md-toggle=\"search\"]:checked ~ .md-header & {\n\n // [mobile portrait -]: Scale up 45 times\n @include break-to-device(mobile portrait) {\n transform: scale(45);\n }\n\n // [mobile landscape]: Scale up 60 times\n @include break-at-device(mobile landscape) {\n transform: scale(60);\n }\n\n // [tablet portrait]: Scale up 75 times\n @include break-at-device(tablet portrait) {\n transform: scale(75);\n }\n }\n }\n\n // Search wrapper\n &__inner {\n // Hack: promote to own layer to reduce jitter\n backface-visibility: hidden;\n\n // [tablet portrait -]: Search modal\n @include break-to-device(tablet portrait) {\n position: fixed;\n top: 0;\n left: 100%;\n z-index: 2;\n width: 100%;\n height: 100%;\n transform: translateX(5%);\n opacity: 0;\n transition:\n right 0ms 300ms,\n left 0ms 300ms,\n transform 150ms 150ms cubic-bezier(0.4, 0, 0.2, 1),\n opacity 150ms 150ms;\n\n // Adjust appearance when search is active\n [data-md-toggle=\"search\"]:checked ~ .md-header & {\n left: 0;\n transform: translateX(0);\n opacity: 1;\n transition:\n right 0ms 0ms,\n left 0ms 0ms,\n transform 150ms 150ms cubic-bezier(0.1, 0.7, 0.1, 1),\n opacity 150ms 150ms;\n\n // Adjust for right-to-left languages\n [dir=\"rtl\"] & {\n right: 0;\n left: initial;\n }\n }\n\n // Adjust for right-to-left languages\n html [dir=\"rtl\"] & {\n right: 100%;\n left: initial;\n transform: translateX(-5%);\n }\n }\n\n // [tablet landscape +]: Header-embedded search\n @include break-from-device(tablet landscape) {\n position: relative;\n float: right;\n width: px2rem(234px);\n padding: px2rem(2px) 0;\n transition: width 250ms cubic-bezier(0.1, 0.7, 0.1, 1);\n\n // Adjust for right-to-left languages\n [dir=\"rtl\"] & {\n float: left;\n }\n }\n\n // Adjust appearance when search is active\n [data-md-toggle=\"search\"]:checked ~ .md-header & {\n\n // [tablet landscape]: Omit overlaying header title\n @include break-at-device(tablet landscape) {\n width: px2rem(468px);\n }\n\n // [screen +]: Match width of content area\n @include break-from-device(screen) {\n width: px2rem(688px);\n }\n }\n }\n\n // Search form\n &__form {\n position: relative;\n\n // [tablet landscape +]: Header-embedded search\n @include break-from-device(tablet landscape) {\n border-radius: px2rem(2px);\n }\n }\n\n // Search input\n &__input {\n position: relative;\n z-index: 2;\n padding: 0 px2rem(44px) 0 px2rem(72px);\n text-overflow: ellipsis;\n background-color: var(--md-default-bg-color);\n box-shadow: 0 0 px2rem(12px) transparent;\n transition:\n color 250ms,\n background-color 250ms,\n box-shadow 250ms;\n\n // Adjust for right-to-left languages\n [dir=\"rtl\"] & {\n padding: 0 px2rem(72px) 0 px2rem(44px);\n }\n\n // Search placeholder\n &::placeholder {\n transition: color 250ms;\n }\n\n // Search icon and placeholder\n ~ .md-search__icon,\n &::placeholder {\n color: var(--md-default-fg-color--light);\n }\n\n // Remove the \"x\" rendered by Internet Explorer\n &::-ms-clear {\n display: none;\n }\n\n // Adjust appearance when search is active\n [data-md-toggle=\"search\"]:checked ~ .md-header & {\n box-shadow: 0 0 px2rem(12px) hsla(0, 0%, 0%, 0.07);\n }\n\n // [tablet portrait -]: Search modal\n @include break-to-device(tablet portrait) {\n width: 100%;\n height: px2rem(48px);\n font-size: px2rem(18px);\n }\n\n // [tablet landscape +]: Header-embedded search\n @include break-from-device(tablet landscape) {\n width: 100%;\n height: px2rem(36px);\n padding-left: px2rem(44px);\n color: inherit;\n font-size: px2rem(16px);\n background-color: hsla(0, 0%, 0%, 0.26);\n border-radius: px2rem(2px);\n\n // Adjust for right-to-left languages\n [dir=\"rtl\"] & {\n padding-right: px2rem(44px);\n }\n\n // Search icon\n + .md-search__icon {\n color: var(--md-primary-bg-color);\n }\n\n // Search placeholder\n &::placeholder {\n color: var(--md-primary-bg-color--light);\n }\n\n // Search input on hover\n &:hover {\n background-color: hsla(0, 0%, 100%, 0.12);\n }\n\n // Adjust appearance when search is active\n [data-md-toggle=\"search\"]:checked ~ .md-header & {\n color: var(--md-default-fg-color);\n text-overflow: clip;\n background-color: var(--md-default-bg-color);\n border-radius: px2rem(2px) px2rem(2px) 0 0;\n\n // Search icon and placeholder\n + .md-search__icon,\n &::placeholder {\n color: var(--md-default-fg-color--light);\n }\n }\n }\n }\n\n // Search icon\n &__icon {\n position: absolute;\n z-index: 2;\n width: px2rem(24px);\n height: px2rem(24px);\n cursor: pointer;\n transition:\n color 250ms,\n opacity 250ms;\n\n // Search icon on hover\n &:hover {\n opacity: 0.7;\n }\n\n // Search focus button\n &[for=\"__search\"] {\n top: px2rem(6px);\n left: px2rem(10px);\n\n // Adjust for right-to-left languages\n [dir=\"rtl\"] & {\n right: px2rem(10px);\n left: initial;\n\n // Flip icon vertically\n svg {\n transform: scaleX(-1);\n }\n }\n\n // [tablet portrait -]: Search modal\n @include break-to-device(tablet portrait) {\n top: px2rem(12px);\n left: px2rem(16px);\n\n // Adjust for right-to-left languages\n [dir=\"rtl\"] & {\n right: px2rem(16px);\n left: initial;\n }\n\n // Hide the magnifying glass\n svg:first-child {\n display: none;\n }\n }\n\n // [tablet landscape +]: Header-embedded search\n @include break-from-device(tablet landscape) {\n pointer-events: none;\n\n // Hide the back arrow\n svg:last-child {\n display: none;\n }\n }\n }\n\n // Search reset button\n &[type=\"reset\"] {\n top: px2rem(6px);\n right: px2rem(10px);\n transform: scale(0.75);\n opacity: 0;\n transition:\n transform 150ms cubic-bezier(0.1, 0.7, 0.1, 1),\n opacity 150ms;\n pointer-events: none;\n\n // Adjust for right-to-left languages\n [dir=\"rtl\"] & {\n right: initial;\n left: px2rem(10px);\n }\n\n // [tablet portrait -]: Search modal\n @include break-to-device(tablet portrait) {\n top: px2rem(12px);\n right: px2rem(16px);\n\n // Adjust for right-to-left languages\n [dir=\"rtl\"] & {\n right: initial;\n left: px2rem(16px);\n }\n }\n\n // Show reset button when search is active and input non-empty\n [data-md-toggle=\"search\"]:checked ~ .md-header\n .md-search__input:valid ~ & {\n transform: scale(1);\n opacity: 1;\n pointer-events: initial;\n\n // Search focus icon\n &:hover {\n opacity: 0.7;\n }\n }\n }\n }\n\n // Search output\n &__output {\n position: absolute;\n z-index: 1;\n width: 100%;\n overflow: hidden;\n border-radius: 0 0 px2rem(2px) px2rem(2px);\n\n // [tablet portrait -]: Search modal\n @include break-to-device(tablet portrait) {\n top: px2rem(48px);\n bottom: 0;\n }\n\n // [tablet landscape +]: Header-embedded search\n @include break-from-device(tablet landscape) {\n top: px2rem(38px);\n opacity: 0;\n transition: opacity 400ms;\n\n // Show output when search is active\n [data-md-toggle=\"search\"]:checked ~ .md-header & {\n @include z-depth(6);\n\n opacity: 1;\n }\n }\n }\n\n // Search scroll wrapper\n &__scrollwrap {\n height: 100%;\n overflow-y: auto;\n background-color: var(--md-default-bg-color);\n // Hack: promote to own layer to reduce jitter\n backface-visibility: hidden;\n // Hack: Chrome 88+ has weird overscroll behavior. Overall, scroll snapping\n // seems to be something that is not ready for prime time on some browsers.\n // scroll-snap-type: y mandatory;\n touch-action: pan-y;\n\n // Mitigiate excessive repaints on non-retina devices\n @media (max-resolution: 1dppx) {\n transform: translateZ(0);\n }\n\n // [tablet landscape]: Set fixed width to omit unnecessary reflow\n @include break-at-device(tablet landscape) {\n width: px2rem(468px);\n }\n\n // [screen +]: Set fixed width to omit unnecessary reflow\n @include break-from-device(screen) {\n width: px2rem(688px);\n }\n\n // [tablet landscape +]: Limit height to viewport\n @include break-from-device(tablet landscape) {\n max-height: 0;\n scrollbar-width: thin;\n scrollbar-color: var(--md-default-fg-color--lighter) transparent;\n\n // Show scroll wrapper when search is active\n [data-md-toggle=\"search\"]:checked ~ .md-header & {\n max-height: 75vh;\n }\n\n // Search scroll wrapper on hover\n &:hover {\n scrollbar-color: var(--md-accent-fg-color) transparent;\n }\n\n // Webkit scrollbar\n &::-webkit-scrollbar {\n width: px2rem(4px);\n height: px2rem(4px);\n }\n\n // Webkit scrollbar thumb\n &::-webkit-scrollbar-thumb {\n background-color: var(--md-default-fg-color--lighter);\n\n // Webkit scrollbar thumb on hover\n &:hover {\n background-color: var(--md-accent-fg-color);\n }\n }\n }\n }\n}\n\n// Search result\n.md-search-result {\n color: var(--md-default-fg-color);\n word-break: break-word;\n\n // Search result metadata\n &__meta {\n padding: 0 px2rem(16px);\n color: var(--md-default-fg-color--light);\n font-size: px2rem(12.8px);\n line-height: px2rem(36px);\n background-color: var(--md-default-fg-color--lightest);\n scroll-snap-align: start;\n\n // [tablet landscape +]: Adjust spacing\n @include break-from-device(tablet landscape) {\n padding-left: px2rem(44px);\n\n // Adjust for right-to-left languages\n [dir=\"rtl\"] & {\n padding-right: px2rem(44px);\n padding-left: initial;\n }\n }\n }\n\n // Search result list\n &__list {\n margin: 0;\n padding: 0;\n list-style: none;\n }\n\n // Search result item\n &__item {\n box-shadow: 0 px2rem(-1px) 0 var(--md-default-fg-color--lightest);\n\n // Omit border on first child\n &:first-child {\n box-shadow: none;\n }\n }\n\n // Search result link\n &__link {\n display: block;\n outline: none;\n transition: background-color 250ms;\n scroll-snap-align: start;\n\n // Search result link on focus/hover\n &:focus,\n &:hover {\n background-color: var(--md-accent-fg-color--transparent);\n }\n\n // Adjust spacing on last child of last link\n &:last-child p:last-child {\n margin-bottom: px2rem(12px);\n }\n }\n\n // Search result more link\n &__more summary {\n display: block;\n padding: px2em(12px) px2rem(16px);\n color: var(--md-typeset-a-color);\n font-size: px2rem(12.8px);\n outline: none;\n cursor: pointer;\n transition:\n color 250ms,\n background-color 250ms;\n scroll-snap-align: start;\n\n // [tablet landscape +]: Adjust spacing\n @include break-from-device(tablet landscape) {\n padding-left: px2rem(44px);\n\n // Adjust for right-to-left languages\n [dir=\"rtl\"] & {\n padding-right: px2rem(44px);\n padding-left: px2rem(16px);\n }\n }\n\n // Search result more link on focus/hover\n &:focus,\n &:hover {\n color: var(--md-accent-fg-color);\n background-color: var(--md-accent-fg-color--transparent);\n }\n\n // Hide native details marker\n &::marker,\n &::-webkit-details-marker {\n display: none;\n }\n\n // Adjust transparency of less relevant results\n ~ * > * {\n opacity: 0.65;\n }\n }\n\n // Search result article\n &__article {\n position: relative;\n padding: 0 px2rem(16px);\n overflow: hidden;\n\n // [tablet landscape +]: Adjust spacing\n @include break-from-device(tablet landscape) {\n padding-left: px2rem(44px);\n\n // Adjust for right-to-left languages\n [dir=\"rtl\"] & {\n padding-right: px2rem(44px);\n padding-left: px2rem(16px);\n }\n }\n\n // Search result article document\n &--document {\n\n // Search result title\n .md-search-result__title {\n margin: px2rem(11px) 0;\n font-weight: 400;\n font-size: px2rem(16px);\n line-height: 1.4;\n }\n }\n }\n\n // Search result icon\n &__icon {\n position: absolute;\n left: 0;\n width: px2rem(24px);\n height: px2rem(24px);\n margin: px2rem(10px);\n color: var(--md-default-fg-color--light);\n\n // [tablet portrait -]: Hide icon\n @include break-to-device(tablet portrait) {\n display: none;\n }\n\n // Search result icon content\n &::after {\n display: inline-block;\n width: 100%;\n height: 100%;\n background-color: currentColor;\n mask-image: var(--md-search-result-icon);\n mask-repeat: no-repeat;\n mask-size: contain;\n content: \"\";\n }\n\n // Adjust for right-to-left languages\n [dir=\"rtl\"] & {\n right: 0;\n left: initial;\n\n // Flip icon vertically\n &::after {\n transform: scaleX(-1);\n }\n }\n }\n\n // Search result title\n &__title {\n margin: 0.5em 0;\n font-weight: 700;\n font-size: px2rem(12.8px);\n line-height: 1.6;\n }\n\n // Search result teaser\n &__teaser {\n display: -webkit-box;\n max-height: px2rem(40px);\n margin: 0.5em 0;\n overflow: hidden;\n color: var(--md-default-fg-color--light);\n font-size: px2rem(12.8px);\n line-height: 1.6;\n text-overflow: ellipsis;\n -webkit-box-orient: vertical;\n -webkit-line-clamp: 2;\n\n // [mobile -]: Adjust number of lines\n @include break-to-device(mobile) {\n max-height: px2rem(60px);\n -webkit-line-clamp: 3;\n }\n\n // [tablet landscape]: Adjust number of lines\n @include break-at-device(tablet landscape) {\n max-height: px2rem(60px);\n -webkit-line-clamp: 3;\n }\n\n // Search term highlighting\n mark {\n text-decoration: underline;\n background-color: transparent;\n }\n }\n\n // Search result terms\n &__terms {\n margin: 0.5em 0;\n font-size: px2rem(12.8px);\n font-style: italic;\n }\n\n // Search term highlighting\n mark {\n color: var(--md-accent-fg-color);\n background-color: transparent;\n }\n}\n","////\n/// Copyright (c) 2016-2021 Martin Donath <martin.donath@squidfunk.com>\n///\n/// Permission is hereby granted, free of charge, to any person obtaining a\n/// copy of this software and associated documentation files (the \"Software\"),\n/// to deal in the Software without restriction, including without limitation\n/// the rights to use, copy, modify, merge, publish, distribute, sublicense,\n/// and/or sell copies of the Software, and to permit persons to whom the\n/// Software is furnished to do so, subject to the following conditions:\n///\n/// The above copyright notice and this permission notice shall be included in\n/// all copies or substantial portions of the Software.\n///\n/// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n/// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n/// FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL\n/// THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n/// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n/// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER\n/// DEALINGS\n////\n\n// ----------------------------------------------------------------------------\n// Rules\n// ----------------------------------------------------------------------------\n\n// Selection\n.md-select {\n position: relative;\n z-index: 1;\n\n // Selection bubble\n &__inner {\n position: absolute;\n top: calc(100% - #{px2rem(4px)});\n left: 50%;\n max-height: 0;\n margin-top: px2rem(4px);\n color: var(--md-default-fg-color);\n background-color: var(--md-default-bg-color);\n border-radius: px2rem(2px);\n box-shadow:\n 0 px2rem(4px) px2rem(10px) hsla(0, 0%, 0%, 0.1),\n 0 0 px2rem(1px) hsla(0, 0%, 0%, 0.25);\n transform: translate3d(-50%, px2rem(6px), 0);\n opacity: 0;\n transition:\n transform 250ms 375ms,\n opacity 250ms 250ms,\n max-height 0ms 500ms;\n\n // Selection bubble on parent focus/hover\n .md-select:focus-within &,\n .md-select:hover & {\n max-height: px2rem(200px);\n transform: translate3d(-50%, 0, 0);\n opacity: 1;\n transition:\n transform 250ms cubic-bezier(0.1, 0.7, 0.1, 1),\n opacity 250ms,\n max-height 0ms;\n }\n\n // Selection bubble handle\n &::after {\n position: absolute;\n top: 0;\n left: 50%;\n width: 0;\n height: 0;\n margin-top: px2rem(-4px);\n margin-left: px2rem(-4px);\n border: px2rem(4px) solid transparent;\n border-top: 0;\n border-bottom-color: var(--md-default-bg-color);\n content: \"\";\n }\n }\n\n // Selection list\n &__list {\n max-height: inherit;\n margin: 0;\n padding: 0;\n overflow: auto;\n font-size: px2rem(16px);\n list-style-type: none;\n border-radius: px2rem(2px);\n }\n\n // Selection item\n &__item {\n line-height: px2rem(36px);\n }\n\n // Selection link\n &__link {\n display: block;\n width: 100%;\n padding-right: px2rem(24px);\n padding-left: px2rem(12px);\n outline: none;\n cursor: pointer;\n transition:\n background-color 250ms,\n color 250ms;\n scroll-snap-align: start;\n\n // Adjust for right-to-left languages\n [dir=\"rtl\"] & {\n padding-right: px2rem(12px);\n padding-left: px2rem(24px);\n }\n\n // Link on focus/hover\n &:focus,\n &:hover {\n color: var(--md-accent-fg-color);\n }\n\n // Link on focus\n &:focus {\n background-color: var(--md-default-fg-color--lightest);\n }\n }\n}\n","////\n/// Copyright (c) 2016-2021 Martin Donath <martin.donath@squidfunk.com>\n///\n/// Permission is hereby granted, free of charge, to any person obtaining a\n/// copy of this software and associated documentation files (the \"Software\"),\n/// to deal in the Software without restriction, including without limitation\n/// the rights to use, copy, modify, merge, publish, distribute, sublicense,\n/// and/or sell copies of the Software, and to permit persons to whom the\n/// Software is furnished to do so, subject to the following conditions:\n///\n/// The above copyright notice and this permission notice shall be included in\n/// all copies or substantial portions of the Software.\n///\n/// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n/// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n/// FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL\n/// THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n/// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n/// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER\n/// DEALINGS\n////\n\n// ----------------------------------------------------------------------------\n// Rules\n// ----------------------------------------------------------------------------\n\n// Sidebar\n.md-sidebar {\n position: sticky;\n top: px2rem(48px);\n flex-shrink: 0;\n align-self: flex-start;\n width: px2rem(242px);\n padding: px2rem(24px) 0;\n\n // [print]: Hide sidebar\n @media print {\n display: none;\n }\n\n // [tablet -]: Show navigation as drawer\n @include break-to-device(tablet) {\n\n // Primary sidebar with navigation\n &--primary {\n position: fixed;\n top: 0;\n left: px2rem(-242px);\n z-index: 3;\n display: block;\n width: px2rem(242px);\n height: 100%;\n background-color: var(--md-default-bg-color);\n transform: translateX(0);\n transition:\n transform 250ms cubic-bezier(0.4, 0, 0.2, 1),\n box-shadow 250ms;\n\n // Adjust for right-to-left languages\n [dir=\"rtl\"] & {\n right: px2rem(-242px);\n left: initial;\n }\n\n // Show sidebar when drawer is active\n [data-md-toggle=\"drawer\"]:checked ~ .md-container & {\n @include z-depth(8);\n\n transform: translateX(px2rem(242px));\n\n // Adjust for right-to-left languages\n [dir=\"rtl\"] & {\n transform: translateX(px2rem(-242px));\n }\n }\n\n // Stretch scroll wrapper for primary sidebar\n .md-sidebar__scrollwrap {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n margin: 0;\n scroll-snap-type: none;\n overflow: hidden;\n }\n }\n }\n\n // [screen +]: Show navigation as sidebar\n @include break-from-device(screen) {\n height: 0;\n\n // [no-js]: Switch to native sticky behavior\n .no-js & {\n height: auto;\n }\n }\n\n // Secondary sidebar with table of contents\n &--secondary {\n display: none;\n order: 2;\n\n // [tablet landscape +]: Show table of contents as sidebar\n @include break-from-device(tablet landscape) {\n height: 0;\n\n // [no-js]: Switch to native sticky behavior\n .no-js & {\n height: auto;\n }\n\n // Sidebar is visible\n &:not([hidden]) {\n display: block;\n }\n\n // Ensure smooth scrolling on iOS\n .md-sidebar__scrollwrap {\n touch-action: pan-y;\n }\n }\n }\n\n // Sidebar scroll wrapper\n &__scrollwrap {\n margin: 0 px2rem(4px);\n overflow-y: auto;\n // Hack: promote to own layer to reduce jitter\n backface-visibility: hidden;\n // Hack: Chrome 81+ exhibits a strange bug, where it scrolls the container\n // to the bottom if `scroll-snap-type` is set on the initial render. For\n // this reason, we disable scroll snapping until this is resolved (#1667).\n // scroll-snap-type: y mandatory;\n scrollbar-width: thin;\n scrollbar-color: var(--md-default-fg-color--lighter) transparent;\n\n // Sidebar scroll wrapper on hover\n &:hover {\n scrollbar-color: var(--md-accent-fg-color) transparent;\n }\n\n // Webkit scrollbar\n &::-webkit-scrollbar {\n width: px2rem(4px);\n height: px2rem(4px);\n }\n\n // Webkit scrollbar thumb\n &::-webkit-scrollbar-thumb {\n background-color: var(--md-default-fg-color--lighter);\n\n // Webkit scrollbar thumb on hover\n &:hover {\n background-color: var(--md-accent-fg-color);\n }\n }\n }\n}\n\n// [tablet -]: Show overlay on active drawer\n@include break-to-device(tablet) {\n\n // Sidebar overlay\n .md-overlay {\n position: fixed;\n top: 0;\n z-index: 3;\n width: 0;\n height: 0;\n background-color: hsla(0, 0%, 0%, 0.54);\n opacity: 0;\n transition:\n width 0ms 250ms,\n height 0ms 250ms,\n opacity 250ms;\n\n // Show overlay when drawer is active\n [data-md-toggle=\"drawer\"]:checked ~ & {\n width: 100%;\n height: 100%;\n opacity: 1;\n transition:\n width 0ms,\n height 0ms,\n opacity 250ms;\n }\n }\n}\n","////\n/// Copyright (c) 2016-2021 Martin Donath <martin.donath@squidfunk.com>\n///\n/// Permission is hereby granted, free of charge, to any person obtaining a\n/// copy of this software and associated documentation files (the \"Software\"),\n/// to deal in the Software without restriction, including without limitation\n/// the rights to use, copy, modify, merge, publish, distribute, sublicense,\n/// and/or sell copies of the Software, and to permit persons to whom the\n/// Software is furnished to do so, subject to the following conditions:\n///\n/// The above copyright notice and this permission notice shall be included in\n/// all copies or substantial portions of the Software.\n///\n/// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n/// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n/// FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL\n/// THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n/// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n/// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER\n/// DEALINGS\n////\n\n// ----------------------------------------------------------------------------\n// Keyframes\n// ----------------------------------------------------------------------------\n\n// Show repository facts\n@keyframes facts {\n 0% {\n height: 0;\n }\n\n 100% {\n height: px2rem(13px);\n }\n}\n\n// Show repository fact\n@keyframes fact {\n 0% {\n transform: translateY(100%);\n opacity: 0;\n }\n\n 50% {\n opacity: 0;\n }\n\n 100% {\n transform: translateY(0%);\n opacity: 1;\n }\n}\n\n// ----------------------------------------------------------------------------\n// Rules\n// ----------------------------------------------------------------------------\n\n// Icon definitions\n:root {\n --md-source-forks-icon: svg-load(\"octicons/repo-forked-16.svg\");\n --md-source-repositories-icon: svg-load(\"octicons/repo-16.svg\");\n --md-source-stars-icon: svg-load(\"octicons/star-16.svg\");\n --md-source-version-icon: svg-load(\"octicons/tag-16.svg\");\n}\n\n// ----------------------------------------------------------------------------\n\n// Repository information\n.md-source {\n display: block;\n font-size: px2rem(13px);\n line-height: 1.2;\n white-space: nowrap;\n outline-color: var(--md-accent-fg-color);\n // Hack: promote to own layer to reduce jitter\n backface-visibility: hidden;\n transition: opacity 250ms;\n\n // Repository information on hover\n &:hover {\n opacity: 0.7;\n }\n\n // Repository icon\n &__icon {\n display: inline-block;\n width: px2rem(40px);\n height: px2rem(48px);\n vertical-align: middle;\n\n // Align with margin only (as opposed to normal button alignment)\n svg {\n margin-top: px2rem(12px);\n margin-left: px2rem(12px);\n\n // Adjust for right-to-left languages\n [dir=\"rtl\"] & {\n margin-right: px2rem(12px);\n margin-left: initial;\n }\n }\n\n // Adjust spacing if icon is present\n + .md-source__repository {\n margin-left: px2rem(-40px);\n padding-left: px2rem(40px);\n\n // Adjust for right-to-left languages\n [dir=\"rtl\"] & {\n margin-right: px2rem(-40px);\n margin-left: initial;\n padding-right: px2rem(40px);\n padding-left: initial;\n }\n }\n }\n\n // Repository name\n &__repository {\n display: inline-block;\n max-width: calc(100% - #{px2rem(24px)});\n margin-left: px2rem(12px);\n overflow: hidden;\n text-overflow: ellipsis;\n vertical-align: middle;\n }\n\n // Repository facts\n &__facts {\n margin: px2rem(2px) 0 0;\n padding: 0;\n overflow: hidden;\n font-size: px2rem(11px);\n list-style-type: none;\n opacity: 0.75;\n\n // Show after the data was loaded\n [data-md-state=\"done\"] & {\n animation: facts 250ms ease-in;\n }\n }\n\n // Repository fact\n &__fact {\n display: inline-block;\n\n // Show after the data was loaded\n [data-md-state=\"done\"] & {\n animation: fact 400ms ease-out;\n }\n\n // Repository fact icon\n &::before {\n display: inline-block;\n width: px2rem(12px);\n height: px2rem(12px);\n margin-right: px2rem(2px);\n vertical-align: text-top;\n background-color: currentColor;\n mask-repeat: no-repeat;\n mask-size: contain;\n content: \"\";\n }\n\n // Adjust spacing for repository fact icon\n &:nth-child(1n+2)::before {\n margin-left: px2rem(8px);\n }\n\n // Adjust for right-to-left languages\n [dir=\"rtl\"] & {\n margin-right: initial;\n margin-left: px2rem(2px);\n\n // Adjust spacing for repository fact icon\n &:nth-child(1n+2)::before {\n margin-right: px2rem(8px);\n margin-left: initial;\n }\n }\n\n // Repository fact: version\n &--version::before {\n mask-image: var(--md-source-version-icon);\n }\n\n // Repository fact: stars\n &--stars::before {\n mask-image: var(--md-source-stars-icon);\n }\n\n // Repository fact: forks\n &--forks::before {\n mask-image: var(--md-source-forks-icon);\n }\n\n // Repository fact: repositories\n &--repositories::before {\n mask-image: var(--md-source-repositories-icon);\n }\n }\n}\n","////\n/// Copyright (c) 2016-2021 Martin Donath <martin.donath@squidfunk.com>\n///\n/// Permission is hereby granted, free of charge, to any person obtaining a\n/// copy of this software and associated documentation files (the \"Software\"),\n/// to deal in the Software without restriction, including without limitation\n/// the rights to use, copy, modify, merge, publish, distribute, sublicense,\n/// and/or sell copies of the Software, and to permit persons to whom the\n/// Software is furnished to do so, subject to the following conditions:\n///\n/// The above copyright notice and this permission notice shall be included in\n/// all copies or substantial portions of the Software.\n///\n/// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n/// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n/// FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL\n/// THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n/// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n/// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER\n/// DEALINGS\n////\n\n// ----------------------------------------------------------------------------\n// Rules\n// ----------------------------------------------------------------------------\n\n// Navigation tabs\n.md-tabs {\n width: 100%;\n overflow: auto;\n color: var(--md-primary-bg-color);\n background-color: var(--md-primary-fg-color);\n\n // [print]: Hide tabs\n @media print {\n display: none;\n }\n\n // [tablet -]: Hide tabs\n @include break-to-device(tablet) {\n display: none;\n }\n\n // Tabs in hidden state, i.e. when scrolling down\n &[data-md-state=\"hidden\"] {\n pointer-events: none;\n }\n\n // Navigation tabs list\n &__list {\n margin: 0;\n margin-left: px2rem(4px);\n padding: 0;\n white-space: nowrap;\n list-style: none;\n contain: content;\n\n // Adjust for right-to-left languages\n [dir=\"rtl\"] & {\n margin-right: px2rem(4px);\n margin-left: initial;\n }\n }\n\n // Navigation tabs item\n &__item {\n display: inline-block;\n height: px2rem(48px);\n padding-right: px2rem(12px);\n padding-left: px2rem(12px);\n }\n\n // Navigation tabs link - could be defined as block elements and aligned via\n // line height, but this would imply more repaints when scrolling\n &__link {\n display: block;\n margin-top: px2rem(16px);\n font-size: px2rem(14px);\n outline-color: var(--md-accent-fg-color);\n outline-offset: px2rem(4px);\n // Hack: save a repaint when tabs are appearing on scrolling up\n backface-visibility: hidden;\n opacity: 0.7;\n transition:\n transform 400ms cubic-bezier(0.1, 0.7, 0.1, 1),\n opacity 250ms;\n\n // Active link and link on focus/hover\n &--active,\n &:focus,\n &:hover {\n color: inherit;\n opacity: 1;\n }\n\n // Delay transitions by a small amount\n @for $i from 2 through 16 {\n .md-tabs__item:nth-child(#{$i}) & {\n transition-delay: 20ms * ($i - 1);\n }\n }\n\n // Hide tabs upon scrolling - disable transition to minimizes repaints\n // while scrolling down, while scrolling up seems to be okay\n .md-tabs[data-md-state=\"hidden\"] & {\n transform: translateY(50%);\n opacity: 0;\n transition:\n transform 0ms 100ms,\n opacity 100ms;\n }\n }\n}\n","////\n/// Copyright (c) 2016-2021 Martin Donath <martin.donath@squidfunk.com>\n///\n/// Permission is hereby granted, free of charge, to any person obtaining a\n/// copy of this software and associated documentation files (the \"Software\"),\n/// to deal in the Software without restriction, including without limitation\n/// the rights to use, copy, modify, merge, publish, distribute, sublicense,\n/// and/or sell copies of the Software, and to permit persons to whom the\n/// Software is furnished to do so, subject to the following conditions:\n///\n/// The above copyright notice and this permission notice shall be included in\n/// all copies or substantial portions of the Software.\n///\n/// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n/// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n/// FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL\n/// THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n/// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n/// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER\n/// DEALINGS\n////\n\n// ----------------------------------------------------------------------------\n// Rules\n// ----------------------------------------------------------------------------\n\n// Back-to-top button\n.md-top {\n position: sticky;\n bottom: px2rem(8px);\n z-index: 1;\n float: right;\n margin: px2rem(-56px) px2rem(8px) px2rem(8px);\n padding: px2rem(8px);\n color: var(--md-primary-bg-color);\n background: var(--md-primary-fg-color);\n border-radius: 100%;\n outline: none;\n box-shadow:\n 0 px2rem(4px) px2rem(10px) hsla(0, 0%, 0%, 0.1),\n 0 px2rem(0.5px) px2rem(1px) hsla(0, 0%, 0%, 0.1);\n transform: translateY(0);\n transition:\n opacity 125ms,\n transform 125ms cubic-bezier(0.4, 0, 0.2, 1),\n background-color 125ms;\n\n // Adjust for right-to-left languages\n [dir=\"rtl\"] & {\n float: left;\n }\n\n // Back-to-top button in hidden state\n &[data-md-state=\"hidden\"] {\n transform: translateY(px2rem(-4px));\n opacity: 0;\n pointer-events: none;\n }\n\n // Back-to-top button on focus/hover\n &:focus,\n &:hover {\n background: var(--md-accent-fg-color);\n transform: scale(1.1);\n }\n}\n","////\n/// Copyright (c) 2016-2021 Martin Donath <martin.donath@squidfunk.com>\n///\n/// Permission is hereby granted, free of charge, to any person obtaining a\n/// copy of this software and associated documentation files (the \"Software\"),\n/// to deal in the Software without restriction, including without limitation\n/// the rights to use, copy, modify, merge, publish, distribute, sublicense,\n/// and/or sell copies of the Software, and to permit persons to whom the\n/// Software is furnished to do so, subject to the following conditions:\n///\n/// The above copyright notice and this permission notice shall be included in\n/// all copies or substantial portions of the Software.\n///\n/// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n/// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n/// FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL\n/// THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n/// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n/// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER\n/// DEALINGS\n////\n\n// ----------------------------------------------------------------------------\n// Keyframes\n// ----------------------------------------------------------------------------\n\n// See https://github.com/squidfunk/mkdocs-material/issues/2429\n@keyframes hoverfix {\n 0% {\n pointer-events: none;\n }\n}\n\n// ----------------------------------------------------------------------------\n// Rules\n// ----------------------------------------------------------------------------\n\n// Icon definitions\n:root {\n --md-version-icon: svg-load(\"fontawesome/solid/caret-down.svg\");\n}\n\n// ----------------------------------------------------------------------------\n\n// Version selection\n.md-version {\n flex-shrink: 0;\n height: px2rem(48px);\n font-size: px2rem(16px);\n\n // Current selection\n &__current {\n position: relative;\n // Hack: in general, we would use `vertical-align` to align the version at\n // the bottom with the title, but since the list uses absolute positioning,\n // this won't work consistently. Furthermore, we would need to use inline\n // positioning to align the links, which looks jagged.\n top: px2rem(1px);\n margin-right: px2rem(8px);\n margin-left: px2rem(28px);\n color: inherit;\n outline: none;\n cursor: pointer;\n\n // Adjust for right-to-left languages\n [dir=\"rtl\"] & {\n margin-right: px2rem(28px);\n margin-left: px2rem(8px);\n }\n\n // Version selection icon\n &::after {\n display: inline-block;\n width: px2rem(8px);\n height: px2rem(12px);\n margin-left: px2rem(8px);\n background-color: currentColor;\n mask-image: var(--md-version-icon);\n mask-repeat: no-repeat;\n content: \"\";\n\n // Adjust for right-to-left languages\n [dir=\"rtl\"] & {\n margin-right: px2rem(8px);\n margin-left: initial;\n }\n }\n }\n\n // Version selection list\n &__list {\n position: absolute;\n top: px2rem(3px);\n z-index: 1;\n max-height: 0;\n margin: px2rem(4px) px2rem(16px);\n padding: 0;\n overflow: auto;\n color: var(--md-default-fg-color);\n list-style-type: none;\n background-color: var(--md-default-bg-color);\n border-radius: px2rem(2px);\n box-shadow:\n 0 px2rem(4px) px2rem(10px) hsla(0, 0%, 0%, 0.1),\n 0 0 px2rem(1px) hsla(0, 0%, 0%, 0.25);\n opacity: 0;\n transition:\n max-height 0ms 500ms,\n opacity 250ms 250ms;\n scroll-snap-type: y mandatory;\n\n // Version selection list on parent focus/hover\n .md-version:focus-within &,\n .md-version:hover & {\n max-height: px2rem(200px);\n opacity: 1;\n transition:\n max-height 0ms,\n opacity 250ms;\n }\n\n // Fix hover on touch devices\n @media (pointer: coarse) {\n\n // Switch off on hover\n .md-version:hover & {\n animation: hoverfix 250ms forwards;\n }\n\n // Enable on focus\n .md-version:focus-within & {\n animation: none;\n }\n }\n }\n\n // Version selection item\n &__item {\n line-height: px2rem(36px);\n }\n\n // Version selection link\n &__link {\n display: block;\n width: 100%;\n padding-right: px2rem(24px);\n padding-left: px2rem(12px);\n white-space: nowrap;\n outline: none;\n cursor: pointer;\n transition:\n color 250ms,\n background-color 250ms;\n scroll-snap-align: start;\n\n // Adjust for right-to-left languages\n [dir=\"rtl\"] & {\n padding-right: px2rem(12px);\n padding-left: px2rem(24px);\n }\n\n // Link on focus/hover\n &:focus,\n &:hover {\n color: var(--md-accent-fg-color);\n }\n\n // Link on focus\n &:focus {\n background-color: var(--md-default-fg-color--lightest);\n }\n }\n}\n","////\n/// Copyright (c) 2016-2021 Martin Donath <martin.donath@squidfunk.com>\n///\n/// Permission is hereby granted, free of charge, to any person obtaining a\n/// copy of this software and associated documentation files (the \"Software\"),\n/// to deal in the Software without restriction, including without limitation\n/// the rights to use, copy, modify, merge, publish, distribute, sublicense,\n/// and/or sell copies of the Software, and to permit persons to whom the\n/// Software is furnished to do so, subject to the following conditions:\n///\n/// The above copyright notice and this permission notice shall be included in\n/// all copies or substantial portions of the Software.\n///\n/// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n/// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n/// FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL\n/// THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n/// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n/// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER\n/// DEALINGS\n////\n\n// ----------------------------------------------------------------------------\n// Variables\n// ----------------------------------------------------------------------------\n\n/// Admonition flavours\n$admonitions: (\n note: pencil $clr-blue-a200,\n abstract summary tldr: text-subject $clr-light-blue-a400,\n info todo: information $clr-cyan-a700,\n tip hint important: fire $clr-teal-a700,\n success check done: check-circle $clr-green-a700,\n question help faq: help-circle $clr-light-green-a700,\n warning caution attention: alert $clr-orange-a400,\n failure fail missing: close-circle $clr-red-a200,\n danger error: flash-circle $clr-red-a400,\n bug: bug $clr-pink-a400,\n example: format-list-numbered $clr-deep-purple-a200,\n quote cite: format-quote-close $clr-grey\n) !default;\n\n// ----------------------------------------------------------------------------\n// Rules: layout\n// ----------------------------------------------------------------------------\n\n// Icon definitions\n:root {\n @each $names, $props in $admonitions {\n --md-admonition-icon--#{nth($names, 1)}:\n svg-load(\"material/#{nth($props, 1)}.svg\");\n }\n}\n\n// ----------------------------------------------------------------------------\n\n// Scoped in typesetted content to match specificity of regular content\n.md-typeset {\n\n // Admonition\n .admonition {\n margin: px2em(20px, 12.8px) 0;\n padding: 0 px2rem(12px);\n overflow: hidden;\n color: var(--md-admonition-fg-color);\n font-size: px2rem(12.8px);\n page-break-inside: avoid;\n background-color: var(--md-admonition-bg-color);\n border-left: px2rem(4px) solid $clr-blue-a200;\n border-radius: px2rem(2px);\n box-shadow:\n 0 px2rem(4px) px2rem(10px) hsla(0, 0%, 0%, 0.05),\n 0 px2rem(0.5px) px2rem(1px) hsla(0, 0%, 0%, 0.05);\n\n // [print]: Omit shadow as it may lead to rendering errors\n @media print {\n box-shadow: none;\n }\n\n // Adjust for right-to-left languages\n [dir=\"rtl\"] & {\n border-right: px2rem(4px) solid $clr-blue-a200;\n border-left: none;\n }\n\n // Adjust vertical spacing for nested admonitions\n .admonition {\n margin-top: 1em;\n margin-bottom: 1em;\n }\n\n // Adjust spacing for contained table wrappers\n .md-typeset__scrollwrap {\n margin: 1em px2rem(-12px);\n }\n\n // Adjust spacing for contained tables\n .md-typeset__table {\n padding: 0 px2rem(12px);\n }\n\n // Adjust spacing for single-child tabbed block container\n > .tabbed-set:only-child {\n margin-top: 0;\n }\n\n // Adjust spacing on last child\n html & > :last-child {\n margin-bottom: px2rem(12px);\n }\n }\n\n // Admonition title\n .admonition-title {\n position: relative;\n margin: 0 px2rem(-12px) 0 px2rem(-16px);\n padding: px2rem(8px) px2rem(12px) px2rem(8px) px2rem(40px);\n font-weight: 700;\n background-color: transparentize($clr-blue-a200, 0.9);\n border-left: px2rem(4px) solid $clr-blue-a200;\n\n // Adjust for right-to-left languages\n [dir=\"rtl\"] & {\n margin: 0 px2rem(-16px) 0 px2rem(-12px);\n padding: px2rem(8px) px2rem(40px) px2rem(8px) px2rem(12px);\n border-right: px2rem(4px) solid $clr-blue-a200;\n border-left: none;\n }\n\n // Adjust spacing for title-only admonitions\n html &:last-child {\n margin-bottom: 0;\n }\n\n // Admonition icon\n &::before {\n position: absolute;\n left: px2rem(12px);\n width: px2rem(20px);\n height: px2rem(20px);\n background-color: $clr-blue-a200;\n mask-image: var(--md-admonition-icon--note);\n mask-repeat: no-repeat;\n mask-size: contain;\n content: \"\";\n\n // Adjust for right-to-left languages\n [dir=\"rtl\"] & {\n right: px2rem(12px);\n left: initial;\n }\n }\n\n // Adjust spacing on last tabbed block container child - if the tabbed\n // block container is the sole child, it looks better to omit the margin\n + .tabbed-set:last-child {\n margin-top: 0;\n }\n }\n}\n\n// ----------------------------------------------------------------------------\n// Rules: flavours\n// ----------------------------------------------------------------------------\n\n@each $names, $props in $admonitions {\n $name: nth($names, 1);\n $tint: nth($props, 2);\n\n // Admonition flavour\n .md-typeset .admonition.#{$name} {\n border-color: $tint;\n }\n\n // Admonition flavour title\n .md-typeset .#{$name} > .admonition-title {\n background-color: transparentize($tint, 0.9);\n border-color: $tint;\n\n // Admonition icon\n &::before {\n background-color: $tint;\n mask-image: var(--md-admonition-icon--#{$name});\n mask-repeat: no-repeat;\n mask-size: contain;\n }\n }\n\n // Define synonyms for flavours\n @if length($names) > 1 {\n @for $n from 2 through length($names) {\n .#{nth($names, $n)} {\n @extend .#{$name};\n }\n }\n }\n}\n","// ==========================================================================\n//\n// Name: UI Color Palette\n// Description: The color palette of material design.\n// Version: 2.3.1\n//\n// Author: Denis Malinochkin\n// Git: https://github.com/mrmlnc/material-color\n//\n// twitter: @mrmlnc\n//\n// ==========================================================================\n\n\n//\n// List of base colors\n//\n\n// $clr-red\n// $clr-pink\n// $clr-purple\n// $clr-deep-purple\n// $clr-indigo\n// $clr-blue\n// $clr-light-blue\n// $clr-cyan\n// $clr-teal\n// $clr-green\n// $clr-light-green\n// $clr-lime\n// $clr-yellow\n// $clr-amber\n// $clr-orange\n// $clr-deep-orange\n// $clr-brown\n// $clr-grey\n// $clr-blue-grey\n// $clr-black\n// $clr-white\n\n\n//\n// Red\n//\n\n$clr-red-list: (\n \"base\": #f44336,\n \"50\": #ffebee,\n \"100\": #ffcdd2,\n \"200\": #ef9a9a,\n \"300\": #e57373,\n \"400\": #ef5350,\n \"500\": #f44336,\n \"600\": #e53935,\n \"700\": #d32f2f,\n \"800\": #c62828,\n \"900\": #b71c1c,\n \"a100\": #ff8a80,\n \"a200\": #ff5252,\n \"a400\": #ff1744,\n \"a700\": #d50000\n);\n\n$clr-red: map-get($clr-red-list, \"base\");\n\n$clr-red-50: map-get($clr-red-list, \"50\");\n$clr-red-100: map-get($clr-red-list, \"100\");\n$clr-red-200: map-get($clr-red-list, \"200\");\n$clr-red-300: map-get($clr-red-list, \"300\");\n$clr-red-400: map-get($clr-red-list, \"400\");\n$clr-red-500: map-get($clr-red-list, \"500\");\n$clr-red-600: map-get($clr-red-list, \"600\");\n$clr-red-700: map-get($clr-red-list, \"700\");\n$clr-red-800: map-get($clr-red-list, \"800\");\n$clr-red-900: map-get($clr-red-list, \"900\");\n$clr-red-a100: map-get($clr-red-list, \"a100\");\n$clr-red-a200: map-get($clr-red-list, \"a200\");\n$clr-red-a400: map-get($clr-red-list, \"a400\");\n$clr-red-a700: map-get($clr-red-list, \"a700\");\n\n\n//\n// Pink\n//\n\n$clr-pink-list: (\n \"base\": #e91e63,\n \"50\": #fce4ec,\n \"100\": #f8bbd0,\n \"200\": #f48fb1,\n \"300\": #f06292,\n \"400\": #ec407a,\n \"500\": #e91e63,\n \"600\": #d81b60,\n \"700\": #c2185b,\n \"800\": #ad1457,\n \"900\": #880e4f,\n \"a100\": #ff80ab,\n \"a200\": #ff4081,\n \"a400\": #f50057,\n \"a700\": #c51162\n);\n\n$clr-pink: map-get($clr-pink-list, \"base\");\n\n$clr-pink-50: map-get($clr-pink-list, \"50\");\n$clr-pink-100: map-get($clr-pink-list, \"100\");\n$clr-pink-200: map-get($clr-pink-list, \"200\");\n$clr-pink-300: map-get($clr-pink-list, \"300\");\n$clr-pink-400: map-get($clr-pink-list, \"400\");\n$clr-pink-500: map-get($clr-pink-list, \"500\");\n$clr-pink-600: map-get($clr-pink-list, \"600\");\n$clr-pink-700: map-get($clr-pink-list, \"700\");\n$clr-pink-800: map-get($clr-pink-list, \"800\");\n$clr-pink-900: map-get($clr-pink-list, \"900\");\n$clr-pink-a100: map-get($clr-pink-list, \"a100\");\n$clr-pink-a200: map-get($clr-pink-list, \"a200\");\n$clr-pink-a400: map-get($clr-pink-list, \"a400\");\n$clr-pink-a700: map-get($clr-pink-list, \"a700\");\n\n\n//\n// Purple\n//\n\n$clr-purple-list: (\n \"base\": #9c27b0,\n \"50\": #f3e5f5,\n \"100\": #e1bee7,\n \"200\": #ce93d8,\n \"300\": #ba68c8,\n \"400\": #ab47bc,\n \"500\": #9c27b0,\n \"600\": #8e24aa,\n \"700\": #7b1fa2,\n \"800\": #6a1b9a,\n \"900\": #4a148c,\n \"a100\": #ea80fc,\n \"a200\": #e040fb,\n \"a400\": #d500f9,\n \"a700\": #aa00ff\n);\n\n$clr-purple: map-get($clr-purple-list, \"base\");\n\n$clr-purple-50: map-get($clr-purple-list, \"50\");\n$clr-purple-100: map-get($clr-purple-list, \"100\");\n$clr-purple-200: map-get($clr-purple-list, \"200\");\n$clr-purple-300: map-get($clr-purple-list, \"300\");\n$clr-purple-400: map-get($clr-purple-list, \"400\");\n$clr-purple-500: map-get($clr-purple-list, \"500\");\n$clr-purple-600: map-get($clr-purple-list, \"600\");\n$clr-purple-700: map-get($clr-purple-list, \"700\");\n$clr-purple-800: map-get($clr-purple-list, \"800\");\n$clr-purple-900: map-get($clr-purple-list, \"900\");\n$clr-purple-a100: map-get($clr-purple-list, \"a100\");\n$clr-purple-a200: map-get($clr-purple-list, \"a200\");\n$clr-purple-a400: map-get($clr-purple-list, \"a400\");\n$clr-purple-a700: map-get($clr-purple-list, \"a700\");\n\n\n//\n// Deep purple\n//\n\n$clr-deep-purple-list: (\n \"base\": #673ab7,\n \"50\": #ede7f6,\n \"100\": #d1c4e9,\n \"200\": #b39ddb,\n \"300\": #9575cd,\n \"400\": #7e57c2,\n \"500\": #673ab7,\n \"600\": #5e35b1,\n \"700\": #512da8,\n \"800\": #4527a0,\n \"900\": #311b92,\n \"a100\": #b388ff,\n \"a200\": #7c4dff,\n \"a400\": #651fff,\n \"a700\": #6200ea\n);\n\n$clr-deep-purple: map-get($clr-deep-purple-list, \"base\");\n\n$clr-deep-purple-50: map-get($clr-deep-purple-list, \"50\");\n$clr-deep-purple-100: map-get($clr-deep-purple-list, \"100\");\n$clr-deep-purple-200: map-get($clr-deep-purple-list, \"200\");\n$clr-deep-purple-300: map-get($clr-deep-purple-list, \"300\");\n$clr-deep-purple-400: map-get($clr-deep-purple-list, \"400\");\n$clr-deep-purple-500: map-get($clr-deep-purple-list, \"500\");\n$clr-deep-purple-600: map-get($clr-deep-purple-list, \"600\");\n$clr-deep-purple-700: map-get($clr-deep-purple-list, \"700\");\n$clr-deep-purple-800: map-get($clr-deep-purple-list, \"800\");\n$clr-deep-purple-900: map-get($clr-deep-purple-list, \"900\");\n$clr-deep-purple-a100: map-get($clr-deep-purple-list, \"a100\");\n$clr-deep-purple-a200: map-get($clr-deep-purple-list, \"a200\");\n$clr-deep-purple-a400: map-get($clr-deep-purple-list, \"a400\");\n$clr-deep-purple-a700: map-get($clr-deep-purple-list, \"a700\");\n\n\n//\n// Indigo\n//\n\n$clr-indigo-list: (\n \"base\": #3f51b5,\n \"50\": #e8eaf6,\n \"100\": #c5cae9,\n \"200\": #9fa8da,\n \"300\": #7986cb,\n \"400\": #5c6bc0,\n \"500\": #3f51b5,\n \"600\": #3949ab,\n \"700\": #303f9f,\n \"800\": #283593,\n \"900\": #1a237e,\n \"a100\": #8c9eff,\n \"a200\": #536dfe,\n \"a400\": #3d5afe,\n \"a700\": #304ffe\n);\n\n$clr-indigo: map-get($clr-indigo-list, \"base\");\n\n$clr-indigo-50: map-get($clr-indigo-list, \"50\");\n$clr-indigo-100: map-get($clr-indigo-list, \"100\");\n$clr-indigo-200: map-get($clr-indigo-list, \"200\");\n$clr-indigo-300: map-get($clr-indigo-list, \"300\");\n$clr-indigo-400: map-get($clr-indigo-list, \"400\");\n$clr-indigo-500: map-get($clr-indigo-list, \"500\");\n$clr-indigo-600: map-get($clr-indigo-list, \"600\");\n$clr-indigo-700: map-get($clr-indigo-list, \"700\");\n$clr-indigo-800: map-get($clr-indigo-list, \"800\");\n$clr-indigo-900: map-get($clr-indigo-list, \"900\");\n$clr-indigo-a100: map-get($clr-indigo-list, \"a100\");\n$clr-indigo-a200: map-get($clr-indigo-list, \"a200\");\n$clr-indigo-a400: map-get($clr-indigo-list, \"a400\");\n$clr-indigo-a700: map-get($clr-indigo-list, \"a700\");\n\n\n//\n// Blue\n//\n\n$clr-blue-list: (\n \"base\": #2196f3,\n \"50\": #e3f2fd,\n \"100\": #bbdefb,\n \"200\": #90caf9,\n \"300\": #64b5f6,\n \"400\": #42a5f5,\n \"500\": #2196f3,\n \"600\": #1e88e5,\n \"700\": #1976d2,\n \"800\": #1565c0,\n \"900\": #0d47a1,\n \"a100\": #82b1ff,\n \"a200\": #448aff,\n \"a400\": #2979ff,\n \"a700\": #2962ff\n);\n\n$clr-blue: map-get($clr-blue-list, \"base\");\n\n$clr-blue-50: map-get($clr-blue-list, \"50\");\n$clr-blue-100: map-get($clr-blue-list, \"100\");\n$clr-blue-200: map-get($clr-blue-list, \"200\");\n$clr-blue-300: map-get($clr-blue-list, \"300\");\n$clr-blue-400: map-get($clr-blue-list, \"400\");\n$clr-blue-500: map-get($clr-blue-list, \"500\");\n$clr-blue-600: map-get($clr-blue-list, \"600\");\n$clr-blue-700: map-get($clr-blue-list, \"700\");\n$clr-blue-800: map-get($clr-blue-list, \"800\");\n$clr-blue-900: map-get($clr-blue-list, \"900\");\n$clr-blue-a100: map-get($clr-blue-list, \"a100\");\n$clr-blue-a200: map-get($clr-blue-list, \"a200\");\n$clr-blue-a400: map-get($clr-blue-list, \"a400\");\n$clr-blue-a700: map-get($clr-blue-list, \"a700\");\n\n\n//\n// Light Blue\n//\n\n$clr-light-blue-list: (\n \"base\": #03a9f4,\n \"50\": #e1f5fe,\n \"100\": #b3e5fc,\n \"200\": #81d4fa,\n \"300\": #4fc3f7,\n \"400\": #29b6f6,\n \"500\": #03a9f4,\n \"600\": #039be5,\n \"700\": #0288d1,\n \"800\": #0277bd,\n \"900\": #01579b,\n \"a100\": #80d8ff,\n \"a200\": #40c4ff,\n \"a400\": #00b0ff,\n \"a700\": #0091ea\n);\n\n$clr-light-blue: map-get($clr-light-blue-list, \"base\");\n\n$clr-light-blue-50: map-get($clr-light-blue-list, \"50\");\n$clr-light-blue-100: map-get($clr-light-blue-list, \"100\");\n$clr-light-blue-200: map-get($clr-light-blue-list, \"200\");\n$clr-light-blue-300: map-get($clr-light-blue-list, \"300\");\n$clr-light-blue-400: map-get($clr-light-blue-list, \"400\");\n$clr-light-blue-500: map-get($clr-light-blue-list, \"500\");\n$clr-light-blue-600: map-get($clr-light-blue-list, \"600\");\n$clr-light-blue-700: map-get($clr-light-blue-list, \"700\");\n$clr-light-blue-800: map-get($clr-light-blue-list, \"800\");\n$clr-light-blue-900: map-get($clr-light-blue-list, \"900\");\n$clr-light-blue-a100: map-get($clr-light-blue-list, \"a100\");\n$clr-light-blue-a200: map-get($clr-light-blue-list, \"a200\");\n$clr-light-blue-a400: map-get($clr-light-blue-list, \"a400\");\n$clr-light-blue-a700: map-get($clr-light-blue-list, \"a700\");\n\n\n//\n// Cyan\n//\n\n$clr-cyan-list: (\n \"base\": #00bcd4,\n \"50\": #e0f7fa,\n \"100\": #b2ebf2,\n \"200\": #80deea,\n \"300\": #4dd0e1,\n \"400\": #26c6da,\n \"500\": #00bcd4,\n \"600\": #00acc1,\n \"700\": #0097a7,\n \"800\": #00838f,\n \"900\": #006064,\n \"a100\": #84ffff,\n \"a200\": #18ffff,\n \"a400\": #00e5ff,\n \"a700\": #00b8d4\n);\n\n$clr-cyan: map-get($clr-cyan-list, \"base\");\n\n$clr-cyan-50: map-get($clr-cyan-list, \"50\");\n$clr-cyan-100: map-get($clr-cyan-list, \"100\");\n$clr-cyan-200: map-get($clr-cyan-list, \"200\");\n$clr-cyan-300: map-get($clr-cyan-list, \"300\");\n$clr-cyan-400: map-get($clr-cyan-list, \"400\");\n$clr-cyan-500: map-get($clr-cyan-list, \"500\");\n$clr-cyan-600: map-get($clr-cyan-list, \"600\");\n$clr-cyan-700: map-get($clr-cyan-list, \"700\");\n$clr-cyan-800: map-get($clr-cyan-list, \"800\");\n$clr-cyan-900: map-get($clr-cyan-list, \"900\");\n$clr-cyan-a100: map-get($clr-cyan-list, \"a100\");\n$clr-cyan-a200: map-get($clr-cyan-list, \"a200\");\n$clr-cyan-a400: map-get($clr-cyan-list, \"a400\");\n$clr-cyan-a700: map-get($clr-cyan-list, \"a700\");\n\n\n//\n// Teal\n//\n\n$clr-teal-list: (\n \"base\": #009688,\n \"50\": #e0f2f1,\n \"100\": #b2dfdb,\n \"200\": #80cbc4,\n \"300\": #4db6ac,\n \"400\": #26a69a,\n \"500\": #009688,\n \"600\": #00897b,\n \"700\": #00796b,\n \"800\": #00695c,\n \"900\": #004d40,\n \"a100\": #a7ffeb,\n \"a200\": #64ffda,\n \"a400\": #1de9b6,\n \"a700\": #00bfa5\n);\n\n$clr-teal: map-get($clr-teal-list, \"base\");\n\n$clr-teal-50: map-get($clr-teal-list, \"50\");\n$clr-teal-100: map-get($clr-teal-list, \"100\");\n$clr-teal-200: map-get($clr-teal-list, \"200\");\n$clr-teal-300: map-get($clr-teal-list, \"300\");\n$clr-teal-400: map-get($clr-teal-list, \"400\");\n$clr-teal-500: map-get($clr-teal-list, \"500\");\n$clr-teal-600: map-get($clr-teal-list, \"600\");\n$clr-teal-700: map-get($clr-teal-list, \"700\");\n$clr-teal-800: map-get($clr-teal-list, \"800\");\n$clr-teal-900: map-get($clr-teal-list, \"900\");\n$clr-teal-a100: map-get($clr-teal-list, \"a100\");\n$clr-teal-a200: map-get($clr-teal-list, \"a200\");\n$clr-teal-a400: map-get($clr-teal-list, \"a400\");\n$clr-teal-a700: map-get($clr-teal-list, \"a700\");\n\n\n//\n// Green\n//\n\n$clr-green-list: (\n \"base\": #4caf50,\n \"50\": #e8f5e9,\n \"100\": #c8e6c9,\n \"200\": #a5d6a7,\n \"300\": #81c784,\n \"400\": #66bb6a,\n \"500\": #4caf50,\n \"600\": #43a047,\n \"700\": #388e3c,\n \"800\": #2e7d32,\n \"900\": #1b5e20,\n \"a100\": #b9f6ca,\n \"a200\": #69f0ae,\n \"a400\": #00e676,\n \"a700\": #00c853\n);\n\n$clr-green: map-get($clr-green-list, \"base\");\n\n$clr-green-50: map-get($clr-green-list, \"50\");\n$clr-green-100: map-get($clr-green-list, \"100\");\n$clr-green-200: map-get($clr-green-list, \"200\");\n$clr-green-300: map-get($clr-green-list, \"300\");\n$clr-green-400: map-get($clr-green-list, \"400\");\n$clr-green-500: map-get($clr-green-list, \"500\");\n$clr-green-600: map-get($clr-green-list, \"600\");\n$clr-green-700: map-get($clr-green-list, \"700\");\n$clr-green-800: map-get($clr-green-list, \"800\");\n$clr-green-900: map-get($clr-green-list, \"900\");\n$clr-green-a100: map-get($clr-green-list, \"a100\");\n$clr-green-a200: map-get($clr-green-list, \"a200\");\n$clr-green-a400: map-get($clr-green-list, \"a400\");\n$clr-green-a700: map-get($clr-green-list, \"a700\");\n\n\n//\n// Light green\n//\n\n$clr-light-green-list: (\n \"base\": #8bc34a,\n \"50\": #f1f8e9,\n \"100\": #dcedc8,\n \"200\": #c5e1a5,\n \"300\": #aed581,\n \"400\": #9ccc65,\n \"500\": #8bc34a,\n \"600\": #7cb342,\n \"700\": #689f38,\n \"800\": #558b2f,\n \"900\": #33691e,\n \"a100\": #ccff90,\n \"a200\": #b2ff59,\n \"a400\": #76ff03,\n \"a700\": #64dd17\n);\n\n$clr-light-green: map-get($clr-light-green-list, \"base\");\n\n$clr-light-green-50: map-get($clr-light-green-list, \"50\");\n$clr-light-green-100: map-get($clr-light-green-list, \"100\");\n$clr-light-green-200: map-get($clr-light-green-list, \"200\");\n$clr-light-green-300: map-get($clr-light-green-list, \"300\");\n$clr-light-green-400: map-get($clr-light-green-list, \"400\");\n$clr-light-green-500: map-get($clr-light-green-list, \"500\");\n$clr-light-green-600: map-get($clr-light-green-list, \"600\");\n$clr-light-green-700: map-get($clr-light-green-list, \"700\");\n$clr-light-green-800: map-get($clr-light-green-list, \"800\");\n$clr-light-green-900: map-get($clr-light-green-list, \"900\");\n$clr-light-green-a100: map-get($clr-light-green-list, \"a100\");\n$clr-light-green-a200: map-get($clr-light-green-list, \"a200\");\n$clr-light-green-a400: map-get($clr-light-green-list, \"a400\");\n$clr-light-green-a700: map-get($clr-light-green-list, \"a700\");\n\n\n//\n// Lime\n//\n\n$clr-lime-list: (\n \"base\": #cddc39,\n \"50\": #f9fbe7,\n \"100\": #f0f4c3,\n \"200\": #e6ee9c,\n \"300\": #dce775,\n \"400\": #d4e157,\n \"500\": #cddc39,\n \"600\": #c0ca33,\n \"700\": #afb42b,\n \"800\": #9e9d24,\n \"900\": #827717,\n \"a100\": #f4ff81,\n \"a200\": #eeff41,\n \"a400\": #c6ff00,\n \"a700\": #aeea00\n);\n\n$clr-lime: map-get($clr-lime-list, \"base\");\n\n$clr-lime-50: map-get($clr-lime-list, \"50\");\n$clr-lime-100: map-get($clr-lime-list, \"100\");\n$clr-lime-200: map-get($clr-lime-list, \"200\");\n$clr-lime-300: map-get($clr-lime-list, \"300\");\n$clr-lime-400: map-get($clr-lime-list, \"400\");\n$clr-lime-500: map-get($clr-lime-list, \"500\");\n$clr-lime-600: map-get($clr-lime-list, \"600\");\n$clr-lime-700: map-get($clr-lime-list, \"700\");\n$clr-lime-800: map-get($clr-lime-list, \"800\");\n$clr-lime-900: map-get($clr-lime-list, \"900\");\n$clr-lime-a100: map-get($clr-lime-list, \"a100\");\n$clr-lime-a200: map-get($clr-lime-list, \"a200\");\n$clr-lime-a400: map-get($clr-lime-list, \"a400\");\n$clr-lime-a700: map-get($clr-lime-list, \"a700\");\n\n\n//\n// Yellow\n//\n\n$clr-yellow-list: (\n \"base\": #ffeb3b,\n \"50\": #fffde7,\n \"100\": #fff9c4,\n \"200\": #fff59d,\n \"300\": #fff176,\n \"400\": #ffee58,\n \"500\": #ffeb3b,\n \"600\": #fdd835,\n \"700\": #fbc02d,\n \"800\": #f9a825,\n \"900\": #f57f17,\n \"a100\": #ffff8d,\n \"a200\": #ffff00,\n \"a400\": #ffea00,\n \"a700\": #ffd600\n);\n\n$clr-yellow: map-get($clr-yellow-list, \"base\");\n\n$clr-yellow-50: map-get($clr-yellow-list, \"50\");\n$clr-yellow-100: map-get($clr-yellow-list, \"100\");\n$clr-yellow-200: map-get($clr-yellow-list, \"200\");\n$clr-yellow-300: map-get($clr-yellow-list, \"300\");\n$clr-yellow-400: map-get($clr-yellow-list, \"400\");\n$clr-yellow-500: map-get($clr-yellow-list, \"500\");\n$clr-yellow-600: map-get($clr-yellow-list, \"600\");\n$clr-yellow-700: map-get($clr-yellow-list, \"700\");\n$clr-yellow-800: map-get($clr-yellow-list, \"800\");\n$clr-yellow-900: map-get($clr-yellow-list, \"900\");\n$clr-yellow-a100: map-get($clr-yellow-list, \"a100\");\n$clr-yellow-a200: map-get($clr-yellow-list, \"a200\");\n$clr-yellow-a400: map-get($clr-yellow-list, \"a400\");\n$clr-yellow-a700: map-get($clr-yellow-list, \"a700\");\n\n\n//\n// amber\n//\n\n$clr-amber-list: (\n \"base\": #ffc107,\n \"50\": #fff8e1,\n \"100\": #ffecb3,\n \"200\": #ffe082,\n \"300\": #ffd54f,\n \"400\": #ffca28,\n \"500\": #ffc107,\n \"600\": #ffb300,\n \"700\": #ffa000,\n \"800\": #ff8f00,\n \"900\": #ff6f00,\n \"a100\": #ffe57f,\n \"a200\": #ffd740,\n \"a400\": #ffc400,\n \"a700\": #ffab00\n);\n\n$clr-amber: map-get($clr-amber-list, \"base\");\n\n$clr-amber-50: map-get($clr-amber-list, \"50\");\n$clr-amber-100: map-get($clr-amber-list, \"100\");\n$clr-amber-200: map-get($clr-amber-list, \"200\");\n$clr-amber-300: map-get($clr-amber-list, \"300\");\n$clr-amber-400: map-get($clr-amber-list, \"400\");\n$clr-amber-500: map-get($clr-amber-list, \"500\");\n$clr-amber-600: map-get($clr-amber-list, \"600\");\n$clr-amber-700: map-get($clr-amber-list, \"700\");\n$clr-amber-800: map-get($clr-amber-list, \"800\");\n$clr-amber-900: map-get($clr-amber-list, \"900\");\n$clr-amber-a100: map-get($clr-amber-list, \"a100\");\n$clr-amber-a200: map-get($clr-amber-list, \"a200\");\n$clr-amber-a400: map-get($clr-amber-list, \"a400\");\n$clr-amber-a700: map-get($clr-amber-list, \"a700\");\n\n\n//\n// Orange\n//\n\n$clr-orange-list: (\n \"base\": #ff9800,\n \"50\": #fff3e0,\n \"100\": #ffe0b2,\n \"200\": #ffcc80,\n \"300\": #ffb74d,\n \"400\": #ffa726,\n \"500\": #ff9800,\n \"600\": #fb8c00,\n \"700\": #f57c00,\n \"800\": #ef6c00,\n \"900\": #e65100,\n \"a100\": #ffd180,\n \"a200\": #ffab40,\n \"a400\": #ff9100,\n \"a700\": #ff6d00\n);\n\n$clr-orange: map-get($clr-orange-list, \"base\");\n\n$clr-orange-50: map-get($clr-orange-list, \"50\");\n$clr-orange-100: map-get($clr-orange-list, \"100\");\n$clr-orange-200: map-get($clr-orange-list, \"200\");\n$clr-orange-300: map-get($clr-orange-list, \"300\");\n$clr-orange-400: map-get($clr-orange-list, \"400\");\n$clr-orange-500: map-get($clr-orange-list, \"500\");\n$clr-orange-600: map-get($clr-orange-list, \"600\");\n$clr-orange-700: map-get($clr-orange-list, \"700\");\n$clr-orange-800: map-get($clr-orange-list, \"800\");\n$clr-orange-900: map-get($clr-orange-list, \"900\");\n$clr-orange-a100: map-get($clr-orange-list, \"a100\");\n$clr-orange-a200: map-get($clr-orange-list, \"a200\");\n$clr-orange-a400: map-get($clr-orange-list, \"a400\");\n$clr-orange-a700: map-get($clr-orange-list, \"a700\");\n\n\n//\n// Deep orange\n//\n\n$clr-deep-orange-list: (\n \"base\": #ff5722,\n \"50\": #fbe9e7,\n \"100\": #ffccbc,\n \"200\": #ffab91,\n \"300\": #ff8a65,\n \"400\": #ff7043,\n \"500\": #ff5722,\n \"600\": #f4511e,\n \"700\": #e64a19,\n \"800\": #d84315,\n \"900\": #bf360c,\n \"a100\": #ff9e80,\n \"a200\": #ff6e40,\n \"a400\": #ff3d00,\n \"a700\": #dd2c00\n);\n\n$clr-deep-orange: map-get($clr-deep-orange-list, \"base\");\n\n$clr-deep-orange-50: map-get($clr-deep-orange-list, \"50\");\n$clr-deep-orange-100: map-get($clr-deep-orange-list, \"100\");\n$clr-deep-orange-200: map-get($clr-deep-orange-list, \"200\");\n$clr-deep-orange-300: map-get($clr-deep-orange-list, \"300\");\n$clr-deep-orange-400: map-get($clr-deep-orange-list, \"400\");\n$clr-deep-orange-500: map-get($clr-deep-orange-list, \"500\");\n$clr-deep-orange-600: map-get($clr-deep-orange-list, \"600\");\n$clr-deep-orange-700: map-get($clr-deep-orange-list, \"700\");\n$clr-deep-orange-800: map-get($clr-deep-orange-list, \"800\");\n$clr-deep-orange-900: map-get($clr-deep-orange-list, \"900\");\n$clr-deep-orange-a100: map-get($clr-deep-orange-list, \"a100\");\n$clr-deep-orange-a200: map-get($clr-deep-orange-list, \"a200\");\n$clr-deep-orange-a400: map-get($clr-deep-orange-list, \"a400\");\n$clr-deep-orange-a700: map-get($clr-deep-orange-list, \"a700\");\n\n\n//\n// Brown\n//\n\n$clr-brown-list: (\n \"base\": #795548,\n \"50\": #efebe9,\n \"100\": #d7ccc8,\n \"200\": #bcaaa4,\n \"300\": #a1887f,\n \"400\": #8d6e63,\n \"500\": #795548,\n \"600\": #6d4c41,\n \"700\": #5d4037,\n \"800\": #4e342e,\n \"900\": #3e2723,\n);\n\n$clr-brown: map-get($clr-brown-list, \"base\");\n\n$clr-brown-50: map-get($clr-brown-list, \"50\");\n$clr-brown-100: map-get($clr-brown-list, \"100\");\n$clr-brown-200: map-get($clr-brown-list, \"200\");\n$clr-brown-300: map-get($clr-brown-list, \"300\");\n$clr-brown-400: map-get($clr-brown-list, \"400\");\n$clr-brown-500: map-get($clr-brown-list, \"500\");\n$clr-brown-600: map-get($clr-brown-list, \"600\");\n$clr-brown-700: map-get($clr-brown-list, \"700\");\n$clr-brown-800: map-get($clr-brown-list, \"800\");\n$clr-brown-900: map-get($clr-brown-list, \"900\");\n\n\n//\n// Grey\n//\n\n$clr-grey-list: (\n \"base\": #9e9e9e,\n \"50\": #fafafa,\n \"100\": #f5f5f5,\n \"200\": #eeeeee,\n \"300\": #e0e0e0,\n \"400\": #bdbdbd,\n \"500\": #9e9e9e,\n \"600\": #757575,\n \"700\": #616161,\n \"800\": #424242,\n \"900\": #212121,\n);\n\n$clr-grey: map-get($clr-grey-list, \"base\");\n\n$clr-grey-50: map-get($clr-grey-list, \"50\");\n$clr-grey-100: map-get($clr-grey-list, \"100\");\n$clr-grey-200: map-get($clr-grey-list, \"200\");\n$clr-grey-300: map-get($clr-grey-list, \"300\");\n$clr-grey-400: map-get($clr-grey-list, \"400\");\n$clr-grey-500: map-get($clr-grey-list, \"500\");\n$clr-grey-600: map-get($clr-grey-list, \"600\");\n$clr-grey-700: map-get($clr-grey-list, \"700\");\n$clr-grey-800: map-get($clr-grey-list, \"800\");\n$clr-grey-900: map-get($clr-grey-list, \"900\");\n\n\n//\n// Blue grey\n//\n\n$clr-blue-grey-list: (\n \"base\": #607d8b,\n \"50\": #eceff1,\n \"100\": #cfd8dc,\n \"200\": #b0bec5,\n \"300\": #90a4ae,\n \"400\": #78909c,\n \"500\": #607d8b,\n \"600\": #546e7a,\n \"700\": #455a64,\n \"800\": #37474f,\n \"900\": #263238,\n);\n\n$clr-blue-grey: map-get($clr-blue-grey-list, \"base\");\n\n$clr-blue-grey-50: map-get($clr-blue-grey-list, \"50\");\n$clr-blue-grey-100: map-get($clr-blue-grey-list, \"100\");\n$clr-blue-grey-200: map-get($clr-blue-grey-list, \"200\");\n$clr-blue-grey-300: map-get($clr-blue-grey-list, \"300\");\n$clr-blue-grey-400: map-get($clr-blue-grey-list, \"400\");\n$clr-blue-grey-500: map-get($clr-blue-grey-list, \"500\");\n$clr-blue-grey-600: map-get($clr-blue-grey-list, \"600\");\n$clr-blue-grey-700: map-get($clr-blue-grey-list, \"700\");\n$clr-blue-grey-800: map-get($clr-blue-grey-list, \"800\");\n$clr-blue-grey-900: map-get($clr-blue-grey-list, \"900\");\n\n\n//\n// Black\n//\n\n$clr-black-list: (\n \"base\": #000\n);\n\n$clr-black: map-get($clr-black-list, \"base\");\n\n\n//\n// White\n//\n\n$clr-white-list: (\n \"base\": #fff\n);\n\n$clr-white: map-get($clr-white-list, \"base\");\n\n\n//\n// List for all Colors for looping\n//\n\n$clr-list-all: (\n \"red\": $clr-red-list,\n \"pink\": $clr-pink-list,\n \"purple\": $clr-purple-list,\n \"deep-purple\": $clr-deep-purple-list,\n \"indigo\": $clr-indigo-list,\n \"blue\": $clr-blue-list,\n \"light-blue\": $clr-light-blue-list,\n \"cyan\": $clr-cyan-list,\n \"teal\": $clr-teal-list,\n \"green\": $clr-green-list,\n \"light-green\": $clr-light-green-list,\n \"lime\": $clr-lime-list,\n \"yellow\": $clr-yellow-list,\n \"amber\": $clr-amber-list,\n \"orange\": $clr-orange-list,\n \"deep-orange\": $clr-deep-orange-list,\n \"brown\": $clr-brown-list,\n \"grey\": $clr-grey-list,\n \"blue-grey\": $clr-blue-grey-list,\n \"black\": $clr-black-list,\n \"white\": $clr-white-list\n);\n\n\n//\n// Typography\n//\n\n$clr-ui-display-4: $clr-grey-600;\n$clr-ui-display-3: $clr-grey-600;\n$clr-ui-display-2: $clr-grey-600;\n$clr-ui-display-1: $clr-grey-600;\n$clr-ui-headline: $clr-grey-900;\n$clr-ui-title: $clr-grey-900;\n$clr-ui-subhead-1: $clr-grey-900;\n$clr-ui-body-2: $clr-grey-900;\n$clr-ui-body-1: $clr-grey-900;\n$clr-ui-caption: $clr-grey-600;\n$clr-ui-menu: $clr-grey-900;\n$clr-ui-button: $clr-grey-900;\n","////\n/// Copyright (c) 2016-2021 Martin Donath <martin.donath@squidfunk.com>\n///\n/// Permission is hereby granted, free of charge, to any person obtaining a\n/// copy of this software and associated documentation files (the \"Software\"),\n/// to deal in the Software without restriction, including without limitation\n/// the rights to use, copy, modify, merge, publish, distribute, sublicense,\n/// and/or sell copies of the Software, and to permit persons to whom the\n/// Software is furnished to do so, subject to the following conditions:\n///\n/// The above copyright notice and this permission notice shall be included in\n/// all copies or substantial portions of the Software.\n///\n/// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n/// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n/// FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL\n/// THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n/// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n/// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER\n/// DEALINGS\n////\n\n// ----------------------------------------------------------------------------\n// Rules\n// ----------------------------------------------------------------------------\n\n// Icon definitions\n:root {\n --md-footnotes-icon: svg-load(\"material/keyboard-return.svg\");\n}\n\n// ----------------------------------------------------------------------------\n\n// Scoped in typesetted content to match specificity of regular content\n.md-typeset {\n\n // Footnote container\n .footnote {\n color: var(--md-default-fg-color--light);\n font-size: px2rem(12.8px);\n\n // Footnote list - omit left indentation\n > ol {\n margin-left: 0;\n\n // Footnote item - footnote items can contain lists, so we need to scope\n // the spacing adjustments to the top-level footnote item.\n > li {\n transition: color 125ms;\n\n // Darken color on target\n &:target {\n color: var(--md-default-fg-color);\n }\n\n // Show backreferences on footnote hover\n &:hover .footnote-backref,\n &:target .footnote-backref {\n transform: translateX(0);\n opacity: 1;\n }\n\n // Adjust spacing on first child\n > :first-child {\n margin-top: 0;\n }\n }\n }\n }\n\n // Footnote reference\n .footnote-ref {\n font-weight: 700;\n font-size: px2em(12px, 16px);\n\n // Hack: increase specificity to override default\n html & {\n outline-offset: px2rem(2px);\n }\n }\n\n // Footnote backreference\n .footnote-backref {\n display: inline-block;\n color: var(--md-typeset-a-color);\n // Hack: omit Unicode arrow for replacement with icon\n font-size: 0;\n vertical-align: text-bottom;\n transform: translateX(px2rem(5px));\n opacity: 0;\n transition:\n color 250ms,\n transform 250ms 250ms,\n opacity 125ms 250ms;\n\n // [print]: Show footnote backreferences\n @media print {\n color: var(--md-typeset-a-color);\n transform: translateX(0);\n opacity: 1;\n }\n\n // Adjust for right-to-left languages\n [dir=\"rtl\"] & {\n transform: translateX(px2rem(-5px));\n }\n\n // Adjust color on hover\n &:hover {\n color: var(--md-accent-fg-color);\n }\n\n // Footnote backreference icon\n &::before {\n display: inline-block;\n width: px2rem(16px);\n height: px2rem(16px);\n background-color: currentColor;\n mask-image: var(--md-footnotes-icon);\n mask-repeat: no-repeat;\n mask-size: contain;\n content: \"\";\n\n // Adjust for right-to-left languages\n [dir=\"rtl\"] & {\n\n // Flip icon vertically\n svg {\n transform: scaleX(-1);\n }\n }\n }\n }\n\n // Footnote reference wrapper\n [id^=\"fnref:\"]:target {\n scroll-margin-top: initial;\n margin-top: -1 * px2rem(48px + 24px - 4px);\n padding-top: px2rem(48px + 24px - 4px);\n\n // Show outline for all devices\n > .footnote-ref {\n outline: auto;\n }\n }\n\n // Footnote wrapper\n [id^=\"fn:\"]:target {\n scroll-margin-top: initial;\n margin-top: -1 * px2rem(48px + 24px - 3px);\n padding-top: px2rem(48px + 24px - 3px);\n }\n}\n","////\n/// Copyright (c) 2016-2021 Martin Donath <martin.donath@squidfunk.com>\n///\n/// Permission is hereby granted, free of charge, to any person obtaining a\n/// copy of this software and associated documentation files (the \"Software\"),\n/// to deal in the Software without restriction, including without limitation\n/// the rights to use, copy, modify, merge, publish, distribute, sublicense,\n/// and/or sell copies of the Software, and to permit persons to whom the\n/// Software is furnished to do so, subject to the following conditions:\n///\n/// The above copyright notice and this permission notice shall be included in\n/// all copies or substantial portions of the Software.\n///\n/// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n/// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n/// FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL\n/// THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n/// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n/// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER\n/// DEALINGS\n////\n\n// ----------------------------------------------------------------------------\n// Rules\n// ----------------------------------------------------------------------------\n\n// Scoped in typesetted content to match specificity of regular content\n.md-typeset {\n\n // Headerlink\n .headerlink {\n display: inline-block;\n margin-left: px2rem(10px);\n color: var(--md-default-fg-color--lighter);\n opacity: 0;\n transition:\n color 250ms,\n opacity 125ms;\n\n // [print]: Hide headerlinks\n @media print {\n display: none;\n }\n\n // Adjust for right-to-left languages\n [dir=\"rtl\"] & {\n margin-right: px2rem(10px);\n margin-left: initial;\n }\n }\n\n // Show headerlinks on parent hover\n :hover > .headerlink,\n :target > .headerlink,\n .headerlink:focus {\n opacity: 1;\n transition:\n color 250ms,\n opacity 125ms;\n }\n\n // Adjust color on parent target or focus/hover\n :target > .headerlink,\n .headerlink:focus,\n .headerlink:hover {\n color: var(--md-accent-fg-color);\n }\n\n // Adjust scroll offset for all elements with `id` attributes - general scroll\n // margin offset for anything that can be targeted. Browser support is pretty\n // decent by now, but Edge <79 and Safari (iOS and macOS) still don't support\n // it properly, so we settle with a cross-browser anchor correction solution.\n :target {\n scroll-margin-top: px2rem(48px + 24px);\n }\n\n // Adjust scroll offset for headlines of level 1-3\n h1:target,\n h2:target,\n h3:target {\n scroll-margin-top: initial;\n\n // Anchor correction hack\n &::before {\n display: block;\n margin-top: -1 * px2rem(48px + 24px - 4px);\n padding-top: px2rem(48px + 24px - 4px);\n content: \"\";\n }\n }\n\n // Adjust scroll offset for headlines of level 4\n h4:target {\n scroll-margin-top: initial;\n\n // Anchor correction hack\n &::before {\n display: block;\n margin-top: -1 * px2rem(48px + 24px - 3px);\n padding-top: px2rem(48px + 24px - 3px);\n content: \"\";\n }\n }\n\n // Adjust scroll offset for headlines of level 5-6\n h5:target,\n h6:target {\n scroll-margin-top: initial;\n\n // Anchor correction hack\n &::before {\n display: block;\n margin-top: -1 * px2rem(48px + 24px);\n padding-top: px2rem(48px + 24px);\n content: \"\";\n }\n }\n}\n","////\n/// Copyright (c) 2016-2021 Martin Donath <martin.donath@squidfunk.com>\n///\n/// Permission is hereby granted, free of charge, to any person obtaining a\n/// copy of this software and associated documentation files (the \"Software\"),\n/// to deal in the Software without restriction, including without limitation\n/// the rights to use, copy, modify, merge, publish, distribute, sublicense,\n/// and/or sell copies of the Software, and to permit persons to whom the\n/// Software is furnished to do so, subject to the following conditions:\n///\n/// The above copyright notice and this permission notice shall be included in\n/// all copies or substantial portions of the Software.\n///\n/// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n/// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n/// FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL\n/// THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n/// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n/// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER\n/// DEALINGS\n////\n\n// ----------------------------------------------------------------------------\n// Rules\n// ----------------------------------------------------------------------------\n\n// Scoped in typesetted content to match specificity of regular content\n.md-typeset {\n\n // Arithmatex container\n div.arithmatex {\n overflow: auto;\n\n // [mobile -]: Align with body copy\n @include break-to-device(mobile) {\n margin: 0 px2rem(-16px);\n }\n\n // Arithmatex content\n > * {\n width: min-content;\n // stylelint-disable-next-line declaration-no-important\n margin: 1em auto !important;\n padding: 0 px2rem(16px);\n touch-action: auto;\n }\n }\n}\n","////\n/// Copyright (c) 2016-2021 Martin Donath <martin.donath@squidfunk.com>\n///\n/// Permission is hereby granted, free of charge, to any person obtaining a\n/// copy of this software and associated documentation files (the \"Software\"),\n/// to deal in the Software without restriction, including without limitation\n/// the rights to use, copy, modify, merge, publish, distribute, sublicense,\n/// and/or sell copies of the Software, and to permit persons to whom the\n/// Software is furnished to do so, subject to the following conditions:\n///\n/// The above copyright notice and this permission notice shall be included in\n/// all copies or substantial portions of the Software.\n///\n/// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n/// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n/// FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL\n/// THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n/// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n/// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER\n/// DEALINGS\n////\n\n// ----------------------------------------------------------------------------\n// Rules\n// ----------------------------------------------------------------------------\n\n// Scoped in typesetted content to match specificity of regular content\n.md-typeset {\n\n // Deletion, addition or comment\n del.critic,\n ins.critic,\n .critic.comment {\n box-decoration-break: clone;\n }\n\n // Deletion\n del.critic {\n background-color: var(--md-typeset-del-color);\n }\n\n // Addition\n ins.critic {\n background-color: var(--md-typeset-ins-color);\n }\n\n // Comment\n .critic.comment {\n color: var(--md-code-hl-comment-color);\n\n // Comment opening mark\n &::before {\n content: \"/* \";\n }\n\n // Comment closing mark\n &::after {\n content: \" */\";\n }\n }\n\n // Critic block\n .critic.block {\n display: block;\n margin: 1em 0;\n padding-right: px2rem(16px);\n padding-left: px2rem(16px);\n overflow: auto;\n box-shadow: none;\n\n // Adjust spacing on first child\n > :first-child {\n margin-top: 0.5em;\n }\n\n // Adjust spacing on last child\n > :last-child {\n margin-bottom: 0.5em;\n }\n }\n}\n","////\n/// Copyright (c) 2016-2021 Martin Donath <martin.donath@squidfunk.com>\n///\n/// Permission is hereby granted, free of charge, to any person obtaining a\n/// copy of this software and associated documentation files (the \"Software\"),\n/// to deal in the Software without restriction, including without limitation\n/// the rights to use, copy, modify, merge, publish, distribute, sublicense,\n/// and/or sell copies of the Software, and to permit persons to whom the\n/// Software is furnished to do so, subject to the following conditions:\n///\n/// The above copyright notice and this permission notice shall be included in\n/// all copies or substantial portions of the Software.\n///\n/// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n/// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n/// FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL\n/// THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n/// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n/// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER\n/// DEALINGS\n////\n\n// ----------------------------------------------------------------------------\n// Rules\n// ----------------------------------------------------------------------------\n\n// Icon definitions\n:root {\n --md-details-icon: svg-load(\"material/chevron-right.svg\");\n}\n\n// ----------------------------------------------------------------------------\n\n// Scoped in typesetted content to match specificity of regular content\n.md-typeset {\n\n // Details\n details {\n @extend .admonition;\n\n display: flow-root;\n padding-top: 0;\n overflow: visible;\n\n // Details title icon - rotate icon on transition to open state\n &[open] > summary::after {\n transform: rotate(90deg);\n }\n\n // Adjust spacing for details in closed state\n &:not([open]) {\n padding-bottom: 0;\n box-shadow: none;\n\n // Hack: we cannot set `overflow: hidden` on the `details` element (which\n // is why we set it to `overflow: visible`, as the outline would not be\n // visible when focusing. Therefore, we must set the border radius on the\n // summary explicitly.\n > summary {\n border-radius: px2rem(2px);\n }\n }\n\n // Hack: omit margin collapse\n &::after {\n display: table;\n content: \"\";\n }\n }\n\n // Details title\n summary {\n @extend .admonition-title;\n\n display: block;\n min-height: px2rem(20px);\n padding: px2rem(8px) px2rem(36px) px2rem(8px) px2rem(40px);\n border-top-left-radius: px2rem(2px);\n border-top-right-radius: px2rem(2px);\n cursor: pointer;\n\n // Adjust for right-to-left languages\n [dir=\"rtl\"] & {\n padding: px2rem(8px) px2rem(44px) px2rem(8px) px2rem(36px);\n }\n\n // Hide outline for pointer devices\n &:not(.focus-visible) {\n outline: none;\n -webkit-tap-highlight-color: transparent;\n }\n\n // Details marker\n &::after {\n position: absolute;\n top: px2rem(8px);\n right: px2rem(8px);\n width: px2rem(20px);\n height: px2rem(20px);\n background-color: currentColor;\n mask-image: var(--md-details-icon);\n mask-repeat: no-repeat;\n mask-size: contain;\n transform: rotate(0deg);\n transition: transform 250ms;\n content: \"\";\n\n // Adjust for right-to-left languages\n [dir=\"rtl\"] & {\n right: initial;\n left: px2rem(8px);\n transform: rotate(180deg);\n }\n }\n\n // Hide native details marker\n &::marker,\n &::-webkit-details-marker {\n display: none;\n }\n }\n}\n","////\n/// Copyright (c) 2016-2021 Martin Donath <martin.donath@squidfunk.com>\n///\n/// Permission is hereby granted, free of charge, to any person obtaining a\n/// copy of this software and associated documentation files (the \"Software\"),\n/// to deal in the Software without restriction, including without limitation\n/// the rights to use, copy, modify, merge, publish, distribute, sublicense,\n/// and/or sell copies of the Software, and to permit persons to whom the\n/// Software is furnished to do so, subject to the following conditions:\n///\n/// The above copyright notice and this permission notice shall be included in\n/// all copies or substantial portions of the Software.\n///\n/// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n/// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n/// FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL\n/// THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n/// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n/// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER\n/// DEALINGS\n////\n\n// ----------------------------------------------------------------------------\n// Rules\n// ----------------------------------------------------------------------------\n\n// Scoped in typesetted content to match specificity of regular content\n.md-typeset {\n\n // Emoji and icon container\n .emojione,\n .twemoji,\n .gemoji {\n display: inline-flex;\n height: px2em(18px);\n vertical-align: text-top;\n\n // Icon - inlined via mkdocs-material-extensions\n svg {\n width: px2em(18px);\n max-height: 100%;\n fill: currentColor;\n }\n }\n}\n","////\n/// Copyright (c) 2016-2021 Martin Donath <martin.donath@squidfunk.com>\n///\n/// Permission is hereby granted, free of charge, to any person obtaining a\n/// copy of this software and associated documentation files (the \"Software\"),\n/// to deal in the Software without restriction, including without limitation\n/// the rights to use, copy, modify, merge, publish, distribute, sublicense,\n/// and/or sell copies of the Software, and to permit persons to whom the\n/// Software is furnished to do so, subject to the following conditions:\n///\n/// The above copyright notice and this permission notice shall be included in\n/// all copies or substantial portions of the Software.\n///\n/// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n/// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n/// FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL\n/// THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n/// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n/// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER\n/// DEALINGS\n////\n\n// ----------------------------------------------------------------------------\n// Rules: syntax highlighting\n// ----------------------------------------------------------------------------\n\n// Code block\n.highlight {\n .o, // Operator\n .ow { // Operator, word\n color: var(--md-code-hl-operator-color);\n }\n\n .p { // Punctuation\n color: var(--md-code-hl-punctuation-color);\n }\n\n .cpf, // Comment, preprocessor file\n .l, // Literal\n .s, // Literal, string\n .sb, // Literal, string backticks\n .sc, // Literal, string char\n .s2, // Literal, string double\n .si, // Literal, string interpol\n .s1, // Literal, string single\n .ss { // Literal, string symbol\n color: var(--md-code-hl-string-color);\n }\n\n .cp, // Comment, pre-processor\n .se, // Literal, string escape\n .sh, // Literal, string heredoc\n .sr, // Literal, string regex\n .sx { // Literal, string other\n color: var(--md-code-hl-special-color);\n }\n\n .m, // Number\n .mb, // Number, binary\n .mf, // Number, float\n .mh, // Number, hex\n .mi, // Number, integer\n .il, // Number, integer long\n .mo { // Number, octal\n color: var(--md-code-hl-number-color);\n }\n\n .k, // Keyword,\n .kd, // Keyword, declaration\n .kn, // Keyword, namespace\n .kp, // Keyword, pseudo\n .kr, // Keyword, reserved\n .kt { // Keyword, type\n color: var(--md-code-hl-keyword-color);\n }\n\n .kc, // Keyword, constant\n .n { // Name\n color: var(--md-code-hl-name-color);\n }\n\n .no, // Name, constant\n .nb, // Name, builtin\n .bp { // Name, builtin pseudo\n color: var(--md-code-hl-constant-color);\n }\n\n .nc, // Name, class\n .ne, // Name, exception\n .nf, // Name, function\n .nn { // Name, namespace\n color: var(--md-code-hl-function-color);\n }\n\n .nd, // Name, decorator\n .ni, // Name, entity\n .nl, // Name, label\n .nt { // Name, tag\n color: var(--md-code-hl-keyword-color);\n }\n\n .c, // Comment\n .cm, // Comment, multiline\n .c1, // Comment, single\n .ch, // Comment, shebang\n .cs, // Comment, special\n .sd { // Literal, string doc\n color: var(--md-code-hl-comment-color);\n }\n\n .na, // Name, attribute\n .nv, // Variable,\n .vc, // Variable, class\n .vg, // Variable, global\n .vi { // Variable, instance\n color: var(--md-code-hl-variable-color);\n }\n\n .ge, // Generic, emph\n .gr, // Generic, error\n .gh, // Generic, heading\n .go, // Generic, output\n .gp, // Generic, prompt\n .gs, // Generic, strong\n .gu, // Generic, subheading\n .gt { // Generic, traceback\n color: var(--md-code-hl-generic-color);\n }\n\n .gd, // Diff, delete\n .gi { // Diff, insert\n margin: 0 px2em(-2px);\n padding: 0 px2em(2px);\n border-radius: px2rem(2px);\n }\n\n .gd { // Diff, delete\n background-color: var(--md-typeset-del-color);\n }\n\n .gi { // Diff, insert\n background-color: var(--md-typeset-ins-color);\n }\n\n // Highlighted line\n .hll {\n display: block;\n margin: 0 px2em(-16px, 13.6px);\n padding: 0 px2em(16px, 13.6px);\n background-color: var(--md-code-hl-color);\n }\n\n // Code block line numbers (inline)\n [data-linenos]::before {\n position: sticky;\n left: px2em(-16px, 13.6px);\n float: left;\n margin-right: px2em(16px, 13.6px);\n margin-left: px2em(-16px, 13.6px);\n padding-left: px2em(16px, 13.6px);\n color: var(--md-default-fg-color--light);\n background-color: var(--md-code-bg-color);\n box-shadow: px2rem(-1px) 0 var(--md-default-fg-color--lightest) inset;\n content: attr(data-linenos);\n user-select: none;\n }\n}\n\n// ----------------------------------------------------------------------------\n// Rules: layout\n// ----------------------------------------------------------------------------\n\n// Code block with line numbers\n.highlighttable {\n display: flow-root;\n overflow: hidden;\n\n // Set table elements to block layout, because otherwise the whole flexbox\n // hacking won't work correctly\n tbody,\n td {\n display: block;\n padding: 0;\n }\n\n // We need to use flexbox layout, because otherwise it's not possible to\n // make the code container scroll while keeping the line numbers static\n tr {\n display: flex;\n }\n\n // The pre tags are nested inside a table, so we need to omit the margin\n // because it collapses below all the overflows\n pre {\n margin: 0;\n }\n\n // Code block line numbers - disable user selection, so code can be easily\n // copied without accidentally also copying the line numbers\n .linenos {\n padding: px2em(10.5px, 13.6px) px2em(16px, 13.6px);\n padding-right: 0;\n font-size: px2em(13.6px);\n background-color: var(--md-code-bg-color);\n user-select: none;\n }\n\n // Code block line numbers container\n .linenodiv {\n padding-right: px2em(8px, 13.6px);\n box-shadow: px2rem(-1px) 0 var(--md-default-fg-color--lightest) inset;\n\n // Adjust colors and alignment\n pre {\n color: var(--md-default-fg-color--light);\n text-align: right;\n }\n }\n\n // Code block container - stretch to remaining space\n .code {\n flex: 1;\n overflow: hidden;\n }\n}\n\n// ----------------------------------------------------------------------------\n\n// Scoped in typesetted content to match specificity of regular content\n.md-typeset {\n\n // Code block with line numbers\n .highlighttable {\n margin: 1em 0;\n direction: ltr;\n border-radius: px2rem(2px);\n\n // Omit rounded borders on contained code block\n code {\n border-radius: 0;\n }\n }\n\n // [mobile -]: Align with body copy\n @include break-to-device(mobile) {\n\n // Top-level code block\n > .highlight {\n margin: 1em px2rem(-16px);\n\n // Highlighted line\n .hll {\n margin: 0 px2rem(-16px);\n padding: 0 px2rem(16px);\n }\n\n // Omit rounded borders\n code {\n border-radius: 0;\n }\n }\n\n // Top-level code block with line numbers\n > .highlighttable {\n margin: 1em px2rem(-16px);\n border-radius: 0;\n\n // Highlighted line\n .hll {\n margin: 0 px2rem(-16px);\n padding: 0 px2rem(16px);\n }\n }\n }\n}\n","////\n/// Copyright (c) 2016-2021 Martin Donath <martin.donath@squidfunk.com>\n///\n/// Permission is hereby granted, free of charge, to any person obtaining a\n/// copy of this software and associated documentation files (the \"Software\"),\n/// to deal in the Software without restriction, including without limitation\n/// the rights to use, copy, modify, merge, publish, distribute, sublicense,\n/// and/or sell copies of the Software, and to permit persons to whom the\n/// Software is furnished to do so, subject to the following conditions:\n///\n/// The above copyright notice and this permission notice shall be included in\n/// all copies or substantial portions of the Software.\n///\n/// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n/// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n/// FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL\n/// THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n/// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n/// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER\n/// DEALINGS\n////\n\n// ----------------------------------------------------------------------------\n// Rules\n// ----------------------------------------------------------------------------\n\n// Scoped in typesetted content to match specificity of regular content\n.md-typeset {\n\n // Tabbed block content\n .tabbed-content {\n display: none;\n order: 99;\n width: 100%;\n box-shadow: 0 px2rem(-1px) var(--md-default-fg-color--lightest);\n\n // [print]: Show all tabs (even hidden ones) when printing\n @media print {\n display: block;\n order: initial;\n }\n\n // Code block is the only child of a tab - remove margin and mirror\n // previous (now deprecated) SuperFences code block grouping behavior\n > pre:only-child,\n > .highlight:only-child pre,\n > .highlighttable:only-child {\n margin: 0;\n\n // Omit rounded borders\n > code {\n border-top-left-radius: 0;\n border-top-right-radius: 0;\n }\n }\n\n // Adjust spacing for nested tab\n > .tabbed-set {\n margin: 0;\n }\n }\n\n // Tabbed block container\n .tabbed-set {\n position: relative;\n display: flex;\n flex-wrap: wrap;\n margin: 1em 0;\n border-radius: px2rem(2px);\n\n // Tab radio button - the Tabbed extension will generate radio buttons with\n // labels, so tabs can be triggered without the necessity for JavaScript.\n // This is pretty cool, as it has great accessibility out-of-the box, so\n // we just hide the radio button and toggle the label color for indication.\n > input {\n position: absolute;\n width: 0;\n height: 0;\n opacity: 0;\n\n // Tab label for checked radio button\n &:checked + label {\n color: var(--md-accent-fg-color);\n border-color: var(--md-accent-fg-color);\n\n // Show tabbed block content\n + .tabbed-content {\n display: block;\n }\n }\n\n // Tab label on focus\n &:focus + label {\n outline-style: auto;\n outline-color: var(--md-accent-fg-color);\n }\n\n // Hide outline for pointer devices\n &:not(.focus-visible) + label {\n outline: none;\n -webkit-tap-highlight-color: transparent;\n }\n }\n\n // Tab label\n > label {\n z-index: 1;\n width: auto;\n padding: px2em(12px, 12.8px) 1.25em px2em(10px, 12.8px);\n color: var(--md-default-fg-color--light);\n font-weight: 700;\n font-size: px2rem(12.8px);\n border-bottom: px2rem(2px) solid transparent;\n cursor: pointer;\n transition: color 250ms;\n\n // Tab label on hover\n &:hover {\n color: var(--md-accent-fg-color);\n }\n }\n }\n}\n","////\n/// Copyright (c) 2016-2021 Martin Donath <martin.donath@squidfunk.com>\n///\n/// Permission is hereby granted, free of charge, to any person obtaining a\n/// copy of this software and associated documentation files (the \"Software\"),\n/// to deal in the Software without restriction, including without limitation\n/// the rights to use, copy, modify, merge, publish, distribute, sublicense,\n/// and/or sell copies of the Software, and to permit persons to whom the\n/// Software is furnished to do so, subject to the following conditions:\n///\n/// The above copyright notice and this permission notice shall be included in\n/// all copies or substantial portions of the Software.\n///\n/// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n/// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n/// FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL\n/// THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n/// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n/// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER\n/// DEALINGS\n////\n\n// ----------------------------------------------------------------------------\n// Rules\n// ----------------------------------------------------------------------------\n\n// Icon definitions\n:root {\n --md-tasklist-icon:\n svg-load(\"octicons/check-circle-fill-24.svg\");\n --md-tasklist-icon--checked:\n svg-load(\"octicons/check-circle-fill-24.svg\");\n}\n\n// ----------------------------------------------------------------------------\n\n// Scoped in typesetted content to match specificity of regular content\n.md-typeset {\n\n // Tasklist item\n .task-list-item {\n position: relative;\n list-style-type: none;\n\n // Make checkbox items align with normal list items, but position\n // everything in ems for correct layout at smaller font sizes\n [type=\"checkbox\"] {\n position: absolute;\n top: 0.45em;\n left: -2em;\n\n // Adjust for right-to-left languages\n [dir=\"rtl\"] & {\n right: -2em;\n left: initial;\n }\n }\n }\n\n // Hide native checkbox, when custom classes are enabled\n .task-list-control [type=\"checkbox\"] {\n z-index: -1;\n opacity: 0;\n }\n\n // Tasklist indicator in unchecked state\n .task-list-indicator::before {\n position: absolute;\n top: 0.15em;\n left: px2em(-24px);\n width: px2em(20px);\n height: px2em(20px);\n background-color: var(--md-default-fg-color--lightest);\n mask-image: var(--md-tasklist-icon);\n mask-repeat: no-repeat;\n mask-size: contain;\n content: \"\";\n\n // Adjust for right-to-left languages\n [dir=\"rtl\"] & {\n right: px2em(-24px);\n left: initial;\n }\n }\n\n // Tasklist indicator in checked state\n [type=\"checkbox\"]:checked + .task-list-indicator::before {\n background-color: $clr-green-a400;\n mask-image: var(--md-tasklist-icon--checked);\n }\n}\n","////\n/// Copyright (c) 2016-2021 Martin Donath <martin.donath@squidfunk.com>\n///\n/// Permission is hereby granted, free of charge, to any person obtaining a\n/// copy of this software and associated documentation files (the \"Software\"),\n/// to deal in the Software without restriction, including without limitation\n/// the rights to use, copy, modify, merge, publish, distribute, sublicense,\n/// and/or sell copies of the Software, and to permit persons to whom the\n/// Software is furnished to do so, subject to the following conditions:\n///\n/// The above copyright notice and this permission notice shall be included in\n/// all copies or substantial portions of the Software.\n///\n/// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n/// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n/// FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL\n/// THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n/// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n/// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER\n/// DEALINGS\n////\n\n// ----------------------------------------------------------------------------\n// Rules\n// ----------------------------------------------------------------------------\n\n// Scoped in typesetted content to match specificity of regular content\n.md-typeset {\n\n // [tablet +]: Allow for rendering content as sidebars\n @include break-from-device(tablet) {\n\n // Modifier to float block elements\n .inline {\n float: left;\n width: px2rem(234px);\n margin-top: 0;\n margin-right: px2rem(16px);\n margin-bottom: px2rem(16px);\n\n // Adjust for right-to-left languages\n [dir=\"rtl\"] & {\n float: right;\n margin-right: 0;\n margin-left: px2rem(16px);\n }\n\n // Modifier to move to end (ltr: right, rtl: left)\n &.end {\n float: right;\n margin-right: 0;\n margin-left: px2rem(16px);\n\n // Adjust for right-to-left languages\n [dir=\"rtl\"] & {\n float: left;\n margin-right: px2rem(16px);\n margin-left: 0;\n }\n }\n }\n }\n}\n"]} \ No newline at end of file
diff --git a/freetype/docs/reference/assets/stylesheets/palette.f1a3b89f.min.css b/freetype/docs/reference/assets/stylesheets/palette.f1a3b89f.min.css
new file mode 100644
index 00000000..8bbfcfe6
--- /dev/null
+++ b/freetype/docs/reference/assets/stylesheets/palette.f1a3b89f.min.css
@@ -0,0 +1,2 @@
+[data-md-color-accent=red]{--md-accent-fg-color:#ff1947;--md-accent-fg-color--transparent:rgba(255,25,71,0.1);--md-accent-bg-color:#fff;--md-accent-bg-color--light:hsla(0,0%,100%,0.7)}[data-md-color-accent=pink]{--md-accent-fg-color:#f50056;--md-accent-fg-color--transparent:rgba(245,0,86,0.1);--md-accent-bg-color:#fff;--md-accent-bg-color--light:hsla(0,0%,100%,0.7)}[data-md-color-accent=purple]{--md-accent-fg-color:#df41fb;--md-accent-fg-color--transparent:rgba(223,65,251,0.1);--md-accent-bg-color:#fff;--md-accent-bg-color--light:hsla(0,0%,100%,0.7)}[data-md-color-accent=deep-purple]{--md-accent-fg-color:#7c4dff;--md-accent-fg-color--transparent:rgba(124,77,255,0.1);--md-accent-bg-color:#fff;--md-accent-bg-color--light:hsla(0,0%,100%,0.7)}[data-md-color-accent=indigo]{--md-accent-fg-color:#526cfe;--md-accent-fg-color--transparent:rgba(82,108,254,0.1);--md-accent-bg-color:#fff;--md-accent-bg-color--light:hsla(0,0%,100%,0.7)}[data-md-color-accent=blue]{--md-accent-fg-color:#4287ff;--md-accent-fg-color--transparent:rgba(66,135,255,0.1);--md-accent-bg-color:#fff;--md-accent-bg-color--light:hsla(0,0%,100%,0.7)}[data-md-color-accent=light-blue]{--md-accent-fg-color:#0091eb;--md-accent-fg-color--transparent:rgba(0,145,235,0.1);--md-accent-bg-color:#fff;--md-accent-bg-color--light:hsla(0,0%,100%,0.7)}[data-md-color-accent=cyan]{--md-accent-fg-color:#00bad6;--md-accent-fg-color--transparent:rgba(0,186,214,0.1);--md-accent-bg-color:#fff;--md-accent-bg-color--light:hsla(0,0%,100%,0.7)}[data-md-color-accent=teal]{--md-accent-fg-color:#00bda4;--md-accent-fg-color--transparent:rgba(0,189,164,0.1);--md-accent-bg-color:#fff;--md-accent-bg-color--light:hsla(0,0%,100%,0.7)}[data-md-color-accent=green]{--md-accent-fg-color:#00c753;--md-accent-fg-color--transparent:rgba(0,199,83,0.1);--md-accent-bg-color:#fff;--md-accent-bg-color--light:hsla(0,0%,100%,0.7)}[data-md-color-accent=light-green]{--md-accent-fg-color:#63de17;--md-accent-fg-color--transparent:rgba(99,222,23,0.1);--md-accent-bg-color:#fff;--md-accent-bg-color--light:hsla(0,0%,100%,0.7)}[data-md-color-accent=lime]{--md-accent-fg-color:#b0eb00;--md-accent-fg-color--transparent:rgba(176,235,0,0.1);--md-accent-bg-color:rgba(0,0,0,0.87);--md-accent-bg-color--light:rgba(0,0,0,0.54)}[data-md-color-accent=yellow]{--md-accent-fg-color:#ffd500;--md-accent-fg-color--transparent:rgba(255,213,0,0.1);--md-accent-bg-color:rgba(0,0,0,0.87);--md-accent-bg-color--light:rgba(0,0,0,0.54)}[data-md-color-accent=amber]{--md-accent-fg-color:#fa0;--md-accent-fg-color--transparent:rgba(255,170,0,0.1);--md-accent-bg-color:rgba(0,0,0,0.87);--md-accent-bg-color--light:rgba(0,0,0,0.54)}[data-md-color-accent=orange]{--md-accent-fg-color:#ff9100;--md-accent-fg-color--transparent:rgba(255,145,0,0.1);--md-accent-bg-color:rgba(0,0,0,0.87);--md-accent-bg-color--light:rgba(0,0,0,0.54)}[data-md-color-accent=deep-orange]{--md-accent-fg-color:#ff6e42;--md-accent-fg-color--transparent:rgba(255,110,66,0.1);--md-accent-bg-color:#fff;--md-accent-bg-color--light:hsla(0,0%,100%,0.7)}[data-md-color-primary=red]{--md-primary-fg-color:#ef5552;--md-primary-fg-color--light:#e57171;--md-primary-fg-color--dark:#e53734;--md-primary-bg-color:#fff;--md-primary-bg-color--light:hsla(0,0%,100%,0.7)}[data-md-color-primary=pink]{--md-primary-fg-color:#e92063;--md-primary-fg-color--light:#ec417a;--md-primary-fg-color--dark:#c3185d;--md-primary-bg-color:#fff;--md-primary-bg-color--light:hsla(0,0%,100%,0.7)}[data-md-color-primary=purple]{--md-primary-fg-color:#ab47bd;--md-primary-fg-color--light:#bb69c9;--md-primary-fg-color--dark:#8c24a8;--md-primary-bg-color:#fff;--md-primary-bg-color--light:hsla(0,0%,100%,0.7)}[data-md-color-primary=deep-purple]{--md-primary-fg-color:#7e56c2;--md-primary-fg-color--light:#9574cd;--md-primary-fg-color--dark:#673ab6;--md-primary-bg-color:#fff;--md-primary-bg-color--light:hsla(0,0%,100%,0.7)}[data-md-color-primary=indigo]{--md-primary-fg-color:#4051b5;--md-primary-fg-color--light:#5d6cc0;--md-primary-fg-color--dark:#303fa1;--md-primary-bg-color:#fff;--md-primary-bg-color--light:hsla(0,0%,100%,0.7)}[data-md-color-primary=blue]{--md-primary-fg-color:#2094f3;--md-primary-fg-color--light:#42a5f5;--md-primary-fg-color--dark:#1975d2;--md-primary-bg-color:#fff;--md-primary-bg-color--light:hsla(0,0%,100%,0.7)}[data-md-color-primary=light-blue]{--md-primary-fg-color:#02a6f2;--md-primary-fg-color--light:#28b5f6;--md-primary-fg-color--dark:#0287cf;--md-primary-bg-color:#fff;--md-primary-bg-color--light:hsla(0,0%,100%,0.7)}[data-md-color-primary=cyan]{--md-primary-fg-color:#00bdd6;--md-primary-fg-color--light:#25c5da;--md-primary-fg-color--dark:#0097a8;--md-primary-bg-color:#fff;--md-primary-bg-color--light:hsla(0,0%,100%,0.7)}[data-md-color-primary=teal]{--md-primary-fg-color:#009485;--md-primary-fg-color--light:#26a699;--md-primary-fg-color--dark:#007a6c;--md-primary-bg-color:#fff;--md-primary-bg-color--light:hsla(0,0%,100%,0.7)}[data-md-color-primary=green]{--md-primary-fg-color:#4cae4f;--md-primary-fg-color--light:#68bb6c;--md-primary-fg-color--dark:#398e3d;--md-primary-bg-color:#fff;--md-primary-bg-color--light:hsla(0,0%,100%,0.7)}[data-md-color-primary=light-green]{--md-primary-fg-color:#8bc34b;--md-primary-fg-color--light:#9ccc66;--md-primary-fg-color--dark:#689f38;--md-primary-bg-color:#fff;--md-primary-bg-color--light:hsla(0,0%,100%,0.7)}[data-md-color-primary=lime]{--md-primary-fg-color:#cbdc38;--md-primary-fg-color--light:#d3e156;--md-primary-fg-color--dark:#b0b52c;--md-primary-bg-color:rgba(0,0,0,0.87);--md-primary-bg-color--light:rgba(0,0,0,0.54)}[data-md-color-primary=yellow]{--md-primary-fg-color:#ffec3d;--md-primary-fg-color--light:#ffee57;--md-primary-fg-color--dark:#fbc02d;--md-primary-bg-color:rgba(0,0,0,0.87);--md-primary-bg-color--light:rgba(0,0,0,0.54)}[data-md-color-primary=amber]{--md-primary-fg-color:#ffc105;--md-primary-fg-color--light:#ffc929;--md-primary-fg-color--dark:#ffa200;--md-primary-bg-color:rgba(0,0,0,0.87);--md-primary-bg-color--light:rgba(0,0,0,0.54)}[data-md-color-primary=orange]{--md-primary-fg-color:#ffa724;--md-primary-fg-color--light:#ffa724;--md-primary-fg-color--dark:#fa8900;--md-primary-bg-color:rgba(0,0,0,0.87);--md-primary-bg-color--light:rgba(0,0,0,0.54)}[data-md-color-primary=deep-orange]{--md-primary-fg-color:#ff6e42;--md-primary-fg-color--light:#ff8a66;--md-primary-fg-color--dark:#f4511f;--md-primary-bg-color:#fff;--md-primary-bg-color--light:hsla(0,0%,100%,0.7)}[data-md-color-primary=brown]{--md-primary-fg-color:#795649;--md-primary-fg-color--light:#8d6e62;--md-primary-fg-color--dark:#5d4037;--md-primary-bg-color:#fff;--md-primary-bg-color--light:hsla(0,0%,100%,0.7)}[data-md-color-primary=grey]{--md-primary-fg-color:#757575;--md-primary-fg-color--light:#9e9e9e;--md-primary-fg-color--dark:#616161;--md-primary-bg-color:#fff;--md-primary-bg-color--light:hsla(0,0%,100%,0.7)}[data-md-color-primary=blue-grey]{--md-primary-fg-color:#546d78;--md-primary-fg-color--light:#607c8a;--md-primary-fg-color--dark:#455a63;--md-primary-bg-color:#fff;--md-primary-bg-color--light:hsla(0,0%,100%,0.7)}[data-md-color-primary=white]{--md-primary-fg-color:#fff;--md-primary-fg-color--light:hsla(0,0%,100%,0.7);--md-primary-fg-color--dark:rgba(0,0,0,0.07);--md-primary-bg-color:rgba(0,0,0,0.87);--md-primary-bg-color--light:rgba(0,0,0,0.54);--md-typeset-a-color:#4051b5}@media screen and (min-width:60em){[data-md-color-primary=white] .md-search__input{background-color:rgba(0,0,0,.07)}[data-md-color-primary=white] .md-search__input+.md-search__icon{color:rgba(0,0,0,.87)}[data-md-color-primary=white] .md-search__input::-webkit-input-placeholder{color:rgba(0,0,0,.54)}[data-md-color-primary=white] .md-search__input::-moz-placeholder{color:rgba(0,0,0,.54)}[data-md-color-primary=white] .md-search__input::-ms-input-placeholder{color:rgba(0,0,0,.54)}[data-md-color-primary=white] .md-search__input::placeholder{color:rgba(0,0,0,.54)}[data-md-color-primary=white] .md-search__input:hover{background-color:rgba(0,0,0,.32)}}@media screen and (min-width:76.25em){[data-md-color-primary=white] .md-tabs{border-bottom:.05rem solid rgba(0,0,0,.07)}}[data-md-color-primary=black]{--md-primary-fg-color:#000;--md-primary-fg-color--light:rgba(0,0,0,0.54);--md-primary-fg-color--dark:#000;--md-primary-bg-color:#fff;--md-primary-bg-color--light:hsla(0,0%,100%,0.7);--md-typeset-a-color:#4051b5}[data-md-color-primary=black] .md-header{background-color:#000}@media screen and (max-width:59.9375em){[data-md-color-primary=black] .md-nav__source{background-color:rgba(0,0,0,.87)}}@media screen and (min-width:60em){[data-md-color-primary=black] .md-search__input{background-color:hsla(0,0%,100%,.12)}[data-md-color-primary=black] .md-search__input:hover{background-color:hsla(0,0%,100%,.3)}}@media screen and (max-width:76.1875em){html [data-md-color-primary=black] .md-nav--primary .md-nav__title[for=__drawer]{background-color:#000}}@media screen and (min-width:76.25em){[data-md-color-primary=black] .md-tabs{background-color:#000}}@media screen{[data-md-color-scheme=slate]{--md-hue:232;--md-default-fg-color:hsla(var(--md-hue),75%,95%,1);--md-default-fg-color--light:hsla(var(--md-hue),75%,90%,0.62);--md-default-fg-color--lighter:hsla(var(--md-hue),75%,90%,0.32);--md-default-fg-color--lightest:hsla(var(--md-hue),75%,90%,0.12);--md-default-bg-color:hsla(var(--md-hue),15%,21%,1);--md-default-bg-color--light:hsla(var(--md-hue),15%,21%,0.54);--md-default-bg-color--lighter:hsla(var(--md-hue),15%,21%,0.26);--md-default-bg-color--lightest:hsla(var(--md-hue),15%,21%,0.07);--md-code-fg-color:hsla(var(--md-hue),18%,86%,1);--md-code-bg-color:hsla(var(--md-hue),15%,15%,1);--md-code-hl-color:rgba(66,135,255,0.15);--md-code-hl-number-color:#e6695b;--md-code-hl-special-color:#f06090;--md-code-hl-function-color:#c973d9;--md-code-hl-constant-color:#9383e2;--md-code-hl-keyword-color:#6791e0;--md-code-hl-string-color:#2fb170;--md-code-hl-name-color:var(--md-code-fg-color);--md-code-hl-operator-color:var(--md-default-fg-color--light);--md-code-hl-punctuation-color:var(--md-default-fg-color--light);--md-code-hl-comment-color:var(--md-default-fg-color--light);--md-code-hl-generic-color:var(--md-default-fg-color--light);--md-code-hl-variable-color:var(--md-default-fg-color--light);--md-typeset-color:var(--md-default-fg-color);--md-typeset-a-color:var(--md-primary-fg-color);--md-typeset-mark-color:rgba(66,135,255,0.3);--md-typeset-kbd-color:hsla(var(--md-hue),15%,94%,0.12);--md-typeset-kbd-accent-color:hsla(var(--md-hue),15%,94%,0.2);--md-typeset-kbd-border-color:hsla(var(--md-hue),15%,14%,1);--md-admonition-bg-color:hsla(var(--md-hue),0%,100%,0.025);--md-footer-bg-color:hsla(var(--md-hue),15%,12%,0.87);--md-footer-bg-color--dark:hsla(var(--md-hue),15%,10%,1)}[data-md-color-scheme=slate][data-md-color-primary=black],[data-md-color-scheme=slate][data-md-color-primary=white]{--md-typeset-a-color:#5d6cc0}}
+/*# sourceMappingURL=palette.f1a3b89f.min.css.map */ \ No newline at end of file
diff --git a/freetype/docs/reference/assets/stylesheets/palette.f1a3b89f.min.css.map b/freetype/docs/reference/assets/stylesheets/palette.f1a3b89f.min.css.map
new file mode 100644
index 00000000..80516686
--- /dev/null
+++ b/freetype/docs/reference/assets/stylesheets/palette.f1a3b89f.min.css.map
@@ -0,0 +1 @@
+{"version":3,"sources":["src/assets/stylesheets/palette/_accent.scss","src/assets/stylesheets/palette.scss","src/assets/stylesheets/palette/_primary.scss","src/assets/stylesheets/utilities/_break.scss","src/assets/stylesheets/palette/_scheme.scss"],"names":[],"mappings":"AA8CE,2BACE,4BAAA,CACA,qDAAA,CAOE,yBAAA,CACA,+CCnDN,CDyCE,4BACE,4BAAA,CACA,oDAAA,CAOE,yBAAA,CACA,+CC5CN,CDkCE,8BACE,4BAAA,CACA,sDAAA,CAOE,yBAAA,CACA,+CCrCN,CD2BE,mCACE,4BAAA,CACA,sDAAA,CAOE,yBAAA,CACA,+CC9BN,CDoBE,8BACE,4BAAA,CACA,sDAAA,CAOE,yBAAA,CACA,+CCvBN,CDaE,4BACE,4BAAA,CACA,sDAAA,CAOE,yBAAA,CACA,+CChBN,CDME,kCACE,4BAAA,CACA,qDAAA,CAOE,yBAAA,CACA,+CCTN,CDDE,4BACE,4BAAA,CACA,qDAAA,CAOE,yBAAA,CACA,+CCFN,CDRE,4BACE,4BAAA,CACA,qDAAA,CAOE,yBAAA,CACA,+CCKN,CDfE,6BACE,4BAAA,CACA,oDAAA,CAOE,yBAAA,CACA,+CCYN,CDtBE,mCACE,4BAAA,CACA,qDAAA,CAOE,yBAAA,CACA,+CCmBN,CD7BE,4BACE,4BAAA,CACA,qDAAA,CAIE,qCAAA,CACA,4CC6BN,CDpCE,8BACE,4BAAA,CACA,qDAAA,CAIE,qCAAA,CACA,4CCoCN,CD3CE,6BACE,yBAAA,CACA,qDAAA,CAIE,qCAAA,CACA,4CC2CN,CDlDE,8BACE,4BAAA,CACA,qDAAA,CAIE,qCAAA,CACA,4CCkDN,CDzDE,mCACE,4BAAA,CACA,sDAAA,CAOE,yBAAA,CACA,+CCsDN,CC7DE,4BACE,6BAAA,CACA,oCAAA,CACA,mCAAA,CAOE,0BAAA,CACA,gDD0DN,CCrEE,6BACE,6BAAA,CACA,oCAAA,CACA,mCAAA,CAOE,0BAAA,CACA,gDDkEN,CC7EE,+BACE,6BAAA,CACA,oCAAA,CACA,mCAAA,CAOE,0BAAA,CACA,gDD0EN,CCrFE,oCACE,6BAAA,CACA,oCAAA,CACA,mCAAA,CAOE,0BAAA,CACA,gDDkFN,CC7FE,+BACE,6BAAA,CACA,oCAAA,CACA,mCAAA,CAOE,0BAAA,CACA,gDD0FN,CCrGE,6BACE,6BAAA,CACA,oCAAA,CACA,mCAAA,CAOE,0BAAA,CACA,gDDkGN,CC7GE,mCACE,6BAAA,CACA,oCAAA,CACA,mCAAA,CAOE,0BAAA,CACA,gDD0GN,CCrHE,6BACE,6BAAA,CACA,oCAAA,CACA,mCAAA,CAOE,0BAAA,CACA,gDDkHN,CC7HE,6BACE,6BAAA,CACA,oCAAA,CACA,mCAAA,CAOE,0BAAA,CACA,gDD0HN,CCrIE,8BACE,6BAAA,CACA,oCAAA,CACA,mCAAA,CAOE,0BAAA,CACA,gDDkIN,CC7IE,oCACE,6BAAA,CACA,oCAAA,CACA,mCAAA,CAOE,0BAAA,CACA,gDD0IN,CCrJE,6BACE,6BAAA,CACA,oCAAA,CACA,mCAAA,CAIE,sCAAA,CACA,6CDqJN,CC7JE,+BACE,6BAAA,CACA,oCAAA,CACA,mCAAA,CAIE,sCAAA,CACA,6CD6JN,CCrKE,8BACE,6BAAA,CACA,oCAAA,CACA,mCAAA,CAIE,sCAAA,CACA,6CDqKN,CC7KE,+BACE,6BAAA,CACA,oCAAA,CACA,mCAAA,CAIE,sCAAA,CACA,6CD6KN,CCrLE,oCACE,6BAAA,CACA,oCAAA,CACA,mCAAA,CAOE,0BAAA,CACA,gDDkLN,CC7LE,8BACE,6BAAA,CACA,oCAAA,CACA,mCAAA,CAOE,0BAAA,CACA,gDD0LN,CCrME,6BACE,6BAAA,CACA,oCAAA,CACA,mCAAA,CAOE,0BAAA,CACA,gDDkMN,CC7ME,kCACE,6BAAA,CACA,oCAAA,CACA,mCAAA,CAOE,0BAAA,CACA,gDD0MN,CChMA,8BACE,0BAAA,CACA,gDAAA,CACA,4CAAA,CACA,sCAAA,CACA,6CAAA,CAGA,4BDiMF,CElFI,mCDzGA,gDACE,gCD8LJ,CC3LI,iEACE,qBD6LN,CCzLI,2EACE,qBD2LN,CC5LI,kEACE,qBD2LN,CC5LI,uEACE,qBD2LN,CC5LI,6DACE,qBD2LN,CCvLI,sDACE,gCDyLN,CACF,CEhGI,sCDjFA,uCACE,0CDoLJ,CACF,CC3KA,8BACE,0BAAA,CACA,6CAAA,CACA,gCAAA,CACA,0BAAA,CACA,gDAAA,CAGA,4BD4KF,CCzKE,yCACE,qBD2KJ,CE9FI,wCDtEA,8CACE,gCDuKJ,CACF,CEtHI,mCD1CA,gDACE,oCDmKJ,CChKI,sDACE,mCDkKN,CACF,CE3GI,wCD/CA,iFACE,qBD6JJ,CACF,CEnII,sCDnBA,uCACE,qBDyJJ,CACF,CG1SA,cAGE,6BAKE,YAAA,CAGA,mDAAA,CACA,6DAAA,CACA,+DAAA,CACA,gEAAA,CACA,mDAAA,CACA,6DAAA,CACA,+DAAA,CACA,gEAAA,CAGA,gDAAA,CACA,gDAAA,CAGA,wCAAA,CACA,iCAAA,CACA,kCAAA,CACA,mCAAA,CACA,mCAAA,CACA,kCAAA,CACA,iCAAA,CACA,+CAAA,CACA,6DAAA,CACA,gEAAA,CACA,4DAAA,CACA,4DAAA,CACA,6DAAA,CAGA,6CAAA,CAGA,+CAAA,CAGA,4CAAA,CAGA,uDAAA,CACA,6DAAA,CACA,2DAAA,CAGA,0DAAA,CAGA,qDAAA,CACA,wDHqRF,CGlRE,oHAIE,4BHiRJ,CACF","file":"src/assets/stylesheets/palette.scss","sourcesContent":["////\n/// Copyright (c) 2016-2021 Martin Donath <martin.donath@squidfunk.com>\n///\n/// Permission is hereby granted, free of charge, to any person obtaining a\n/// copy of this software and associated documentation files (the \"Software\"),\n/// to deal in the Software without restriction, including without limitation\n/// the rights to use, copy, modify, merge, publish, distribute, sublicense,\n/// and/or sell copies of the Software, and to permit persons to whom the\n/// Software is furnished to do so, subject to the following conditions:\n///\n/// The above copyright notice and this permission notice shall be included in\n/// all copies or substantial portions of the Software.\n///\n/// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n/// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n/// FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL\n/// THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n/// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n/// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER\n/// DEALINGS\n////\n\n// ----------------------------------------------------------------------------\n// Rules\n// ----------------------------------------------------------------------------\n\n@each $name, $color in (\n \"red\": $clr-red-a400,\n \"pink\": $clr-pink-a400,\n \"purple\": $clr-purple-a200,\n \"deep-purple\": $clr-deep-purple-a200,\n \"indigo\": $clr-indigo-a200,\n \"blue\": $clr-blue-a200,\n \"light-blue\": $clr-light-blue-a700,\n \"cyan\": $clr-cyan-a700,\n \"teal\": $clr-teal-a700,\n \"green\": $clr-green-a700,\n \"light-green\": $clr-light-green-a700,\n \"lime\": $clr-lime-a700,\n \"yellow\": $clr-yellow-a700,\n \"amber\": $clr-amber-a700,\n \"orange\": $clr-orange-a400,\n \"deep-orange\": $clr-deep-orange-a200\n) {\n\n // Color palette\n [data-md-color-accent=\"#{$name}\"] {\n --md-accent-fg-color: hsla(#{hex2hsl($color)}, 1);\n --md-accent-fg-color--transparent: hsla(#{hex2hsl($color)}, 0.1);\n\n // Inverted text for lighter shades\n @if index(\"lime\" \"yellow\" \"amber\" \"orange\", $name) {\n --md-accent-bg-color: hsla(0, 0%, 0%, 0.87);\n --md-accent-bg-color--light: hsla(0, 0%, 0%, 0.54);\n } @else {\n --md-accent-bg-color: hsla(0, 0%, 100%, 1);\n --md-accent-bg-color--light: hsla(0, 0%, 100%, 0.7);\n }\n }\n}\n","[data-md-color-accent=red] {\n --md-accent-fg-color: hsla(348, 100%, 55%, 1);\n --md-accent-fg-color--transparent: hsla(348, 100%, 55%, 0.1);\n --md-accent-bg-color: hsla(0, 0%, 100%, 1);\n --md-accent-bg-color--light: hsla(0, 0%, 100%, 0.7);\n}\n\n[data-md-color-accent=pink] {\n --md-accent-fg-color: hsla(339, 100%, 48%, 1);\n --md-accent-fg-color--transparent: hsla(339, 100%, 48%, 0.1);\n --md-accent-bg-color: hsla(0, 0%, 100%, 1);\n --md-accent-bg-color--light: hsla(0, 0%, 100%, 0.7);\n}\n\n[data-md-color-accent=purple] {\n --md-accent-fg-color: hsla(291, 96%, 62%, 1);\n --md-accent-fg-color--transparent: hsla(291, 96%, 62%, 0.1);\n --md-accent-bg-color: hsla(0, 0%, 100%, 1);\n --md-accent-bg-color--light: hsla(0, 0%, 100%, 0.7);\n}\n\n[data-md-color-accent=deep-purple] {\n --md-accent-fg-color: hsla(256, 100%, 65%, 1);\n --md-accent-fg-color--transparent: hsla(256, 100%, 65%, 0.1);\n --md-accent-bg-color: hsla(0, 0%, 100%, 1);\n --md-accent-bg-color--light: hsla(0, 0%, 100%, 0.7);\n}\n\n[data-md-color-accent=indigo] {\n --md-accent-fg-color: hsla(231, 99%, 66%, 1);\n --md-accent-fg-color--transparent: hsla(231, 99%, 66%, 0.1);\n --md-accent-bg-color: hsla(0, 0%, 100%, 1);\n --md-accent-bg-color--light: hsla(0, 0%, 100%, 0.7);\n}\n\n[data-md-color-accent=blue] {\n --md-accent-fg-color: hsla(218, 100%, 63%, 1);\n --md-accent-fg-color--transparent: hsla(218, 100%, 63%, 0.1);\n --md-accent-bg-color: hsla(0, 0%, 100%, 1);\n --md-accent-bg-color--light: hsla(0, 0%, 100%, 0.7);\n}\n\n[data-md-color-accent=light-blue] {\n --md-accent-fg-color: hsla(203, 100%, 46%, 1);\n --md-accent-fg-color--transparent: hsla(203, 100%, 46%, 0.1);\n --md-accent-bg-color: hsla(0, 0%, 100%, 1);\n --md-accent-bg-color--light: hsla(0, 0%, 100%, 0.7);\n}\n\n[data-md-color-accent=cyan] {\n --md-accent-fg-color: hsla(188, 100%, 42%, 1);\n --md-accent-fg-color--transparent: hsla(188, 100%, 42%, 0.1);\n --md-accent-bg-color: hsla(0, 0%, 100%, 1);\n --md-accent-bg-color--light: hsla(0, 0%, 100%, 0.7);\n}\n\n[data-md-color-accent=teal] {\n --md-accent-fg-color: hsla(172, 100%, 37%, 1);\n --md-accent-fg-color--transparent: hsla(172, 100%, 37%, 0.1);\n --md-accent-bg-color: hsla(0, 0%, 100%, 1);\n --md-accent-bg-color--light: hsla(0, 0%, 100%, 0.7);\n}\n\n[data-md-color-accent=green] {\n --md-accent-fg-color: hsla(145, 100%, 39%, 1);\n --md-accent-fg-color--transparent: hsla(145, 100%, 39%, 0.1);\n --md-accent-bg-color: hsla(0, 0%, 100%, 1);\n --md-accent-bg-color--light: hsla(0, 0%, 100%, 0.7);\n}\n\n[data-md-color-accent=light-green] {\n --md-accent-fg-color: hsla(97, 81%, 48%, 1);\n --md-accent-fg-color--transparent: hsla(97, 81%, 48%, 0.1);\n --md-accent-bg-color: hsla(0, 0%, 100%, 1);\n --md-accent-bg-color--light: hsla(0, 0%, 100%, 0.7);\n}\n\n[data-md-color-accent=lime] {\n --md-accent-fg-color: hsla(75, 100%, 46%, 1);\n --md-accent-fg-color--transparent: hsla(75, 100%, 46%, 0.1);\n --md-accent-bg-color: hsla(0, 0%, 0%, 0.87);\n --md-accent-bg-color--light: hsla(0, 0%, 0%, 0.54);\n}\n\n[data-md-color-accent=yellow] {\n --md-accent-fg-color: hsla(50, 100%, 50%, 1);\n --md-accent-fg-color--transparent: hsla(50, 100%, 50%, 0.1);\n --md-accent-bg-color: hsla(0, 0%, 0%, 0.87);\n --md-accent-bg-color--light: hsla(0, 0%, 0%, 0.54);\n}\n\n[data-md-color-accent=amber] {\n --md-accent-fg-color: hsla(40, 100%, 50%, 1);\n --md-accent-fg-color--transparent: hsla(40, 100%, 50%, 0.1);\n --md-accent-bg-color: hsla(0, 0%, 0%, 0.87);\n --md-accent-bg-color--light: hsla(0, 0%, 0%, 0.54);\n}\n\n[data-md-color-accent=orange] {\n --md-accent-fg-color: hsla(34, 100%, 50%, 1);\n --md-accent-fg-color--transparent: hsla(34, 100%, 50%, 0.1);\n --md-accent-bg-color: hsla(0, 0%, 0%, 0.87);\n --md-accent-bg-color--light: hsla(0, 0%, 0%, 0.54);\n}\n\n[data-md-color-accent=deep-orange] {\n --md-accent-fg-color: hsla(14, 100%, 63%, 1);\n --md-accent-fg-color--transparent: hsla(14, 100%, 63%, 0.1);\n --md-accent-bg-color: hsla(0, 0%, 100%, 1);\n --md-accent-bg-color--light: hsla(0, 0%, 100%, 0.7);\n}\n\n[data-md-color-primary=red] {\n --md-primary-fg-color: hsla(1, 83%, 63%, 1);\n --md-primary-fg-color--light: hsla(0, 69%, 67%, 1);\n --md-primary-fg-color--dark: hsla(1, 77%, 55%, 1);\n --md-primary-bg-color: hsla(0, 0%, 100%, 1);\n --md-primary-bg-color--light: hsla(0, 0%, 100%, 0.7);\n}\n\n[data-md-color-primary=pink] {\n --md-primary-fg-color: hsla(340, 82%, 52%, 1);\n --md-primary-fg-color--light: hsla(340, 82%, 59%, 1);\n --md-primary-fg-color--dark: hsla(336, 78%, 43%, 1);\n --md-primary-bg-color: hsla(0, 0%, 100%, 1);\n --md-primary-bg-color--light: hsla(0, 0%, 100%, 0.7);\n}\n\n[data-md-color-primary=purple] {\n --md-primary-fg-color: hsla(291, 47%, 51%, 1);\n --md-primary-fg-color--light: hsla(291, 47%, 60%, 1);\n --md-primary-fg-color--dark: hsla(287, 65%, 40%, 1);\n --md-primary-bg-color: hsla(0, 0%, 100%, 1);\n --md-primary-bg-color--light: hsla(0, 0%, 100%, 0.7);\n}\n\n[data-md-color-primary=deep-purple] {\n --md-primary-fg-color: hsla(262, 47%, 55%, 1);\n --md-primary-fg-color--light: hsla(262, 47%, 63%, 1);\n --md-primary-fg-color--dark: hsla(262, 52%, 47%, 1);\n --md-primary-bg-color: hsla(0, 0%, 100%, 1);\n --md-primary-bg-color--light: hsla(0, 0%, 100%, 0.7);\n}\n\n[data-md-color-primary=indigo] {\n --md-primary-fg-color: hsla(231, 48%, 48%, 1);\n --md-primary-fg-color--light: hsla(231, 44%, 56%, 1);\n --md-primary-fg-color--dark: hsla(232, 54%, 41%, 1);\n --md-primary-bg-color: hsla(0, 0%, 100%, 1);\n --md-primary-bg-color--light: hsla(0, 0%, 100%, 0.7);\n}\n\n[data-md-color-primary=blue] {\n --md-primary-fg-color: hsla(207, 90%, 54%, 1);\n --md-primary-fg-color--light: hsla(207, 90%, 61%, 1);\n --md-primary-fg-color--dark: hsla(210, 79%, 46%, 1);\n --md-primary-bg-color: hsla(0, 0%, 100%, 1);\n --md-primary-bg-color--light: hsla(0, 0%, 100%, 0.7);\n}\n\n[data-md-color-primary=light-blue] {\n --md-primary-fg-color: hsla(199, 98%, 48%, 1);\n --md-primary-fg-color--light: hsla(199, 92%, 56%, 1);\n --md-primary-fg-color--dark: hsla(201, 98%, 41%, 1);\n --md-primary-bg-color: hsla(0, 0%, 100%, 1);\n --md-primary-bg-color--light: hsla(0, 0%, 100%, 0.7);\n}\n\n[data-md-color-primary=cyan] {\n --md-primary-fg-color: hsla(187, 100%, 42%, 1);\n --md-primary-fg-color--light: hsla(187, 71%, 50%, 1);\n --md-primary-fg-color--dark: hsla(186, 100%, 33%, 1);\n --md-primary-bg-color: hsla(0, 0%, 100%, 1);\n --md-primary-bg-color--light: hsla(0, 0%, 100%, 0.7);\n}\n\n[data-md-color-primary=teal] {\n --md-primary-fg-color: hsla(174, 100%, 29%, 1);\n --md-primary-fg-color--light: hsla(174, 63%, 40%, 1);\n --md-primary-fg-color--dark: hsla(173, 100%, 24%, 1);\n --md-primary-bg-color: hsla(0, 0%, 100%, 1);\n --md-primary-bg-color--light: hsla(0, 0%, 100%, 0.7);\n}\n\n[data-md-color-primary=green] {\n --md-primary-fg-color: hsla(122, 39%, 49%, 1);\n --md-primary-fg-color--light: hsla(123, 38%, 57%, 1);\n --md-primary-fg-color--dark: hsla(123, 43%, 39%, 1);\n --md-primary-bg-color: hsla(0, 0%, 100%, 1);\n --md-primary-bg-color--light: hsla(0, 0%, 100%, 0.7);\n}\n\n[data-md-color-primary=light-green] {\n --md-primary-fg-color: hsla(88, 50%, 53%, 1);\n --md-primary-fg-color--light: hsla(88, 50%, 60%, 1);\n --md-primary-fg-color--dark: hsla(92, 48%, 42%, 1);\n --md-primary-bg-color: hsla(0, 0%, 100%, 1);\n --md-primary-bg-color--light: hsla(0, 0%, 100%, 0.7);\n}\n\n[data-md-color-primary=lime] {\n --md-primary-fg-color: hsla(66, 70%, 54%, 1);\n --md-primary-fg-color--light: hsla(66, 70%, 61%, 1);\n --md-primary-fg-color--dark: hsla(62, 61%, 44%, 1);\n --md-primary-bg-color: hsla(0, 0%, 0%, 0.87);\n --md-primary-bg-color--light: hsla(0, 0%, 0%, 0.54);\n}\n\n[data-md-color-primary=yellow] {\n --md-primary-fg-color: hsla(54, 100%, 62%, 1);\n --md-primary-fg-color--light: hsla(54, 100%, 67%, 1);\n --md-primary-fg-color--dark: hsla(43, 96%, 58%, 1);\n --md-primary-bg-color: hsla(0, 0%, 0%, 0.87);\n --md-primary-bg-color--light: hsla(0, 0%, 0%, 0.54);\n}\n\n[data-md-color-primary=amber] {\n --md-primary-fg-color: hsla(45, 100%, 51%, 1);\n --md-primary-fg-color--light: hsla(45, 100%, 58%, 1);\n --md-primary-fg-color--dark: hsla(38, 100%, 50%, 1);\n --md-primary-bg-color: hsla(0, 0%, 0%, 0.87);\n --md-primary-bg-color--light: hsla(0, 0%, 0%, 0.54);\n}\n\n[data-md-color-primary=orange] {\n --md-primary-fg-color: hsla(36, 100%, 57%, 1);\n --md-primary-fg-color--light: hsla(36, 100%, 57%, 1);\n --md-primary-fg-color--dark: hsla(33, 100%, 49%, 1);\n --md-primary-bg-color: hsla(0, 0%, 0%, 0.87);\n --md-primary-bg-color--light: hsla(0, 0%, 0%, 0.54);\n}\n\n[data-md-color-primary=deep-orange] {\n --md-primary-fg-color: hsla(14, 100%, 63%, 1);\n --md-primary-fg-color--light: hsla(14, 100%, 70%, 1);\n --md-primary-fg-color--dark: hsla(14, 91%, 54%, 1);\n --md-primary-bg-color: hsla(0, 0%, 100%, 1);\n --md-primary-bg-color--light: hsla(0, 0%, 100%, 0.7);\n}\n\n[data-md-color-primary=brown] {\n --md-primary-fg-color: hsla(16, 25%, 38%, 1);\n --md-primary-fg-color--light: hsla(16, 18%, 47%, 1);\n --md-primary-fg-color--dark: hsla(14, 26%, 29%, 1);\n --md-primary-bg-color: hsla(0, 0%, 100%, 1);\n --md-primary-bg-color--light: hsla(0, 0%, 100%, 0.7);\n}\n\n[data-md-color-primary=grey] {\n --md-primary-fg-color: hsla(0, 0%, 46%, 1);\n --md-primary-fg-color--light: hsla(0, 0%, 62%, 1);\n --md-primary-fg-color--dark: hsla(0, 0%, 38%, 1);\n --md-primary-bg-color: hsla(0, 0%, 100%, 1);\n --md-primary-bg-color--light: hsla(0, 0%, 100%, 0.7);\n}\n\n[data-md-color-primary=blue-grey] {\n --md-primary-fg-color: hsla(199, 18%, 40%, 1);\n --md-primary-fg-color--light: hsla(200, 18%, 46%, 1);\n --md-primary-fg-color--dark: hsla(199, 18%, 33%, 1);\n --md-primary-bg-color: hsla(0, 0%, 100%, 1);\n --md-primary-bg-color--light: hsla(0, 0%, 100%, 0.7);\n}\n\n[data-md-color-primary=white] {\n --md-primary-fg-color: hsla(0, 0%, 100%, 1);\n --md-primary-fg-color--light: hsla(0, 0%, 100%, 0.7);\n --md-primary-fg-color--dark: hsla(0, 0%, 0%, 0.07);\n --md-primary-bg-color: hsla(0, 0%, 0%, 0.87);\n --md-primary-bg-color--light: hsla(0, 0%, 0%, 0.54);\n --md-typeset-a-color: hsla(231, 48%, 48%, 1);\n}\n@media screen and (min-width: 60em) {\n [data-md-color-primary=white] .md-search__input {\n background-color: rgba(0, 0, 0, 0.07);\n }\n [data-md-color-primary=white] .md-search__input + .md-search__icon {\n color: rgba(0, 0, 0, 0.87);\n }\n [data-md-color-primary=white] .md-search__input::placeholder {\n color: rgba(0, 0, 0, 0.54);\n }\n [data-md-color-primary=white] .md-search__input:hover {\n background-color: rgba(0, 0, 0, 0.32);\n }\n}\n@media screen and (min-width: 76.25em) {\n [data-md-color-primary=white] .md-tabs {\n border-bottom: 0.05rem solid rgba(0, 0, 0, 0.07);\n }\n}\n\n[data-md-color-primary=black] {\n --md-primary-fg-color: hsla(0, 0%, 0%, 1);\n --md-primary-fg-color--light: hsla(0, 0%, 0%, 0.54);\n --md-primary-fg-color--dark: hsla(0, 0%, 0%, 1);\n --md-primary-bg-color: hsla(0, 0%, 100%, 1);\n --md-primary-bg-color--light: hsla(0, 0%, 100%, 0.7);\n --md-typeset-a-color: hsla(231, 48%, 48%, 1);\n}\n[data-md-color-primary=black] .md-header {\n background-color: black;\n}\n@media screen and (max-width: 59.9375em) {\n [data-md-color-primary=black] .md-nav__source {\n background-color: rgba(0, 0, 0, 0.87);\n }\n}\n@media screen and (min-width: 60em) {\n [data-md-color-primary=black] .md-search__input {\n background-color: rgba(255, 255, 255, 0.12);\n }\n [data-md-color-primary=black] .md-search__input:hover {\n background-color: rgba(255, 255, 255, 0.3);\n }\n}\n@media screen and (max-width: 76.1875em) {\n html [data-md-color-primary=black] .md-nav--primary .md-nav__title[for=__drawer] {\n background-color: black;\n }\n}\n@media screen and (min-width: 76.25em) {\n [data-md-color-primary=black] .md-tabs {\n background-color: black;\n }\n}\n\n@media screen {\n [data-md-color-scheme=slate] {\n --md-hue: 232;\n --md-default-fg-color: hsla(var(--md-hue), 75%, 95%, 1);\n --md-default-fg-color--light: hsla(var(--md-hue), 75%, 90%, 0.62);\n --md-default-fg-color--lighter: hsla(var(--md-hue), 75%, 90%, 0.32);\n --md-default-fg-color--lightest: hsla(var(--md-hue), 75%, 90%, 0.12);\n --md-default-bg-color: hsla(var(--md-hue), 15%, 21%, 1);\n --md-default-bg-color--light: hsla(var(--md-hue), 15%, 21%, 0.54);\n --md-default-bg-color--lighter: hsla(var(--md-hue), 15%, 21%, 0.26);\n --md-default-bg-color--lightest: hsla(var(--md-hue), 15%, 21%, 0.07);\n --md-code-fg-color: hsla(var(--md-hue), 18%, 86%, 1);\n --md-code-bg-color: hsla(var(--md-hue), 15%, 15%, 1);\n --md-code-hl-color: hsla(218, 100%, 63%, 0.15);\n --md-code-hl-number-color: hsla(6, 74%, 63%, 1);\n --md-code-hl-special-color: hsla(340, 83%, 66%, 1);\n --md-code-hl-function-color: hsla(291, 57%, 65%, 1);\n --md-code-hl-constant-color: hsla(250, 62%, 70%, 1);\n --md-code-hl-keyword-color: hsla(219, 66%, 64%, 1);\n --md-code-hl-string-color: hsla(150, 58%, 44%, 1);\n --md-code-hl-name-color: var(--md-code-fg-color);\n --md-code-hl-operator-color: var(--md-default-fg-color--light);\n --md-code-hl-punctuation-color: var(--md-default-fg-color--light);\n --md-code-hl-comment-color: var(--md-default-fg-color--light);\n --md-code-hl-generic-color: var(--md-default-fg-color--light);\n --md-code-hl-variable-color: var(--md-default-fg-color--light);\n --md-typeset-color: var(--md-default-fg-color);\n --md-typeset-a-color: var(--md-primary-fg-color);\n --md-typeset-mark-color: hsla(218, 100%, 63%, 0.3);\n --md-typeset-kbd-color: hsla(var(--md-hue), 15%, 94%, 0.12);\n --md-typeset-kbd-accent-color: hsla(var(--md-hue), 15%, 94%, 0.2);\n --md-typeset-kbd-border-color: hsla(var(--md-hue), 15%, 14%, 1);\n --md-admonition-bg-color: hsla(var(--md-hue), 0%, 100%, 0.025);\n --md-footer-bg-color: hsla(var(--md-hue), 15%, 12%, 0.87);\n --md-footer-bg-color--dark: hsla(var(--md-hue), 15%, 10%, 1);\n }\n [data-md-color-scheme=slate][data-md-color-primary=black], [data-md-color-scheme=slate][data-md-color-primary=white] {\n --md-typeset-a-color: hsla(231, 44%, 56%, 1);\n }\n}\n\n/*# sourceMappingURL=palette.css.map */","////\n/// Copyright (c) 2016-2021 Martin Donath <martin.donath@squidfunk.com>\n///\n/// Permission is hereby granted, free of charge, to any person obtaining a\n/// copy of this software and associated documentation files (the \"Software\"),\n/// to deal in the Software without restriction, including without limitation\n/// the rights to use, copy, modify, merge, publish, distribute, sublicense,\n/// and/or sell copies of the Software, and to permit persons to whom the\n/// Software is furnished to do so, subject to the following conditions:\n///\n/// The above copyright notice and this permission notice shall be included in\n/// all copies or substantial portions of the Software.\n///\n/// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n/// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n/// FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL\n/// THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n/// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n/// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER\n/// DEALINGS\n////\n\n// ----------------------------------------------------------------------------\n// Rules\n// ----------------------------------------------------------------------------\n\n@each $name, $colors in (\n \"red\": $clr-red-400 $clr-red-300 $clr-red-600,\n \"pink\": $clr-pink-500 $clr-pink-400 $clr-pink-700,\n \"purple\": $clr-purple-400 $clr-purple-300 $clr-purple-600,\n \"deep-purple\": $clr-deep-purple-400 $clr-deep-purple-300 $clr-deep-purple-500,\n \"indigo\": $clr-indigo-500 $clr-indigo-400 $clr-indigo-700,\n \"blue\": $clr-blue-500 $clr-blue-400 $clr-blue-700,\n \"light-blue\": $clr-light-blue-500 $clr-light-blue-400 $clr-light-blue-700,\n \"cyan\": $clr-cyan-500 $clr-cyan-400 $clr-cyan-700,\n \"teal\": $clr-teal-500 $clr-teal-400 $clr-teal-700,\n \"green\": $clr-green-500 $clr-green-400 $clr-green-700,\n \"light-green\": $clr-light-green-500 $clr-light-green-400 $clr-light-green-700,\n \"lime\": $clr-lime-500 $clr-lime-400 $clr-lime-700,\n \"yellow\": $clr-yellow-500 $clr-yellow-400 $clr-yellow-700,\n \"amber\": $clr-amber-500 $clr-amber-400 $clr-amber-700,\n \"orange\": $clr-orange-400 $clr-orange-400 $clr-orange-600,\n \"deep-orange\": $clr-deep-orange-400 $clr-deep-orange-300 $clr-deep-orange-600,\n \"brown\": $clr-brown-500 $clr-brown-400 $clr-brown-700,\n \"grey\": $clr-grey-600 $clr-grey-500 $clr-grey-700,\n \"blue-grey\": $clr-blue-grey-600 $clr-blue-grey-500 $clr-blue-grey-700\n) {\n\n // Color palette\n [data-md-color-primary=\"#{$name}\"] {\n --md-primary-fg-color: hsla(#{hex2hsl(nth($colors, 1))}, 1);\n --md-primary-fg-color--light: hsla(#{hex2hsl(nth($colors, 2))}, 1);\n --md-primary-fg-color--dark: hsla(#{hex2hsl(nth($colors, 3))}, 1);\n\n // Inverted text for lighter shades\n @if index(\"lime\" \"yellow\" \"amber\" \"orange\", $name) {\n --md-primary-bg-color: hsla(0, 0%, 0%, 0.87);\n --md-primary-bg-color--light: hsla(0, 0%, 0%, 0.54);\n } @else {\n --md-primary-bg-color: hsla(0, 0%, 100%, 1);\n --md-primary-bg-color--light: hsla(0, 0%, 100%, 0.7);\n }\n }\n}\n\n// ----------------------------------------------------------------------------\n// Rules: white\n// ----------------------------------------------------------------------------\n\n// Color palette\n[data-md-color-primary=\"white\"] {\n --md-primary-fg-color: hsla(0, 0%, 100%, 1);\n --md-primary-fg-color--light: hsla(0, 0%, 100%, 0.7);\n --md-primary-fg-color--dark: hsla(0, 0%, 0%, 0.07);\n --md-primary-bg-color: hsla(0, 0%, 0%, 0.87);\n --md-primary-bg-color--light: hsla(0, 0%, 0%, 0.54);\n\n // Typeset color shades\n --md-typeset-a-color: hsla(#{hex2hsl($clr-indigo-500)}, 1);\n\n // [tablet portrait +]: Header-embedded search\n @include break-from-device(tablet landscape) {\n\n // Search input\n .md-search__input {\n background-color: hsla(0, 0%, 0%, 0.07);\n\n // Search icon color\n + .md-search__icon {\n color: hsla(0, 0%, 0%, 0.87);\n }\n\n // Placeholder color\n &::placeholder {\n color: hsla(0, 0%, 0%, 0.54);\n }\n\n // Search input on hover\n &:hover {\n background-color: hsla(0, 0%, 0%, 0.32);\n }\n }\n }\n\n // [screen +]: Add bottom border for tabs\n @include break-from-device(screen) {\n\n // Navigation tabs\n .md-tabs {\n border-bottom: px2rem(1px) solid hsla(0, 0%, 0%, 0.07);\n }\n }\n}\n\n// ----------------------------------------------------------------------------\n// Rules: black\n// ----------------------------------------------------------------------------\n\n// Color palette\n[data-md-color-primary=\"black\"] {\n --md-primary-fg-color: hsla(0, 0%, 0%, 1);\n --md-primary-fg-color--light: hsla(0, 0%, 0%, 0.54);\n --md-primary-fg-color--dark: hsla(0, 0%, 0%, 1);\n --md-primary-bg-color: hsla(0, 0%, 100%, 1);\n --md-primary-bg-color--light: hsla(0, 0%, 100%, 0.7);\n\n // Text color shades\n --md-typeset-a-color: hsla(#{hex2hsl($clr-indigo-500)}, 1);\n\n // Header\n .md-header {\n background-color: hsla(0, 0%, 0%, 1);\n }\n\n // [tablet portrait -]: Layered navigation\n @include break-to-device(tablet portrait) {\n\n // Repository information container\n .md-nav__source {\n background-color: hsla(0, 0%, 0%, 0.87);\n }\n }\n\n // [tablet landscape +]: Header-embedded search\n @include break-from-device(tablet landscape) {\n\n // Search input\n .md-search__input {\n background-color: hsla(0, 0%, 100%, 0.12);\n\n // Search form on hover\n &:hover {\n background-color: hsla(0, 0%, 100%, 0.3);\n }\n }\n }\n\n // [tablet -]: Layered navigation\n @include break-to-device(tablet) {\n\n // Site title in main navigation\n html & .md-nav--primary .md-nav__title[for=\"__drawer\"] {\n background-color: hsla(0, 0%, 0%, 1);\n }\n }\n\n // [screen +]: Set background color for tabs\n @include break-from-device(screen) {\n\n // Navigation tabs\n .md-tabs {\n background-color: hsla(0, 0%, 0%, 1);\n }\n }\n}\n","////\n/// Copyright (c) 2016-2021 Martin Donath <martin.donath@squidfunk.com>\n///\n/// Permission is hereby granted, free of charge, to any person obtaining a\n/// copy of this software and associated documentation files (the \"Software\"),\n/// to deal in the Software without restriction, including without limitation\n/// the rights to use, copy, modify, merge, publish, distribute, sublicense,\n/// and/or sell copies of the Software, and to permit persons to whom the\n/// Software is furnished to do so, subject to the following conditions:\n///\n/// The above copyright notice and this permission notice shall be included in\n/// all copies or substantial portions of the Software.\n///\n/// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n/// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n/// FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL\n/// THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n/// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n/// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER\n/// DEALINGS\n////\n\n// ----------------------------------------------------------------------------\n// Variables\n// ----------------------------------------------------------------------------\n\n///\n/// Device-specific breakpoints\n///\n/// @example\n/// $break-devices: (\n/// mobile: (\n/// portrait: 220px 479px,\n/// landscape: 480px 719px\n/// ),\n/// tablet: (\n/// portrait: 720px 959px,\n/// landscape: 960px 1219px\n/// ),\n/// screen: (\n/// small: 1220px 1599px,\n/// medium: 1600px 1999px,\n/// large: 2000px\n/// )\n/// );\n///\n$break-devices: () !default;\n\n// ----------------------------------------------------------------------------\n// Helpers\n// ----------------------------------------------------------------------------\n\n///\n/// Choose minimum and maximum device widths\n///\n@function break-select-min-max($devices) {\n $min: 1000000;\n $max: 0;\n @each $key, $value in $devices {\n @while type-of($value) == map {\n $value: break-select-min-max($value);\n }\n @if type-of($value) == list {\n @each $number in $value {\n @if type-of($number) == number {\n $min: min($number, $min);\n @if $max {\n $max: max($number, $max);\n }\n } @else {\n @error \"Invalid number: #{$number}\";\n }\n }\n } @else if type-of($value) == number {\n $min: min($value, $min);\n $max: null;\n } @else {\n @error \"Invalid value: #{$value}\";\n }\n }\n @return $min, $max;\n}\n\n///\n/// Select minimum and maximum widths for a device breakpoint\n///\n@function break-select-device($device) {\n $current: $break-devices;\n @for $n from 1 through length($device) {\n @if type-of($current) == map {\n $current: map-get($current, nth($device, $n));\n } @else {\n @error \"Invalid device map: #{$devices}\";\n }\n }\n @if type-of($current) == list or type-of($current) == number {\n $current: (default: $current);\n }\n @return break-select-min-max($current);\n}\n\n// ----------------------------------------------------------------------------\n// Mixins\n// ----------------------------------------------------------------------------\n\n///\n/// A minimum-maximum media query breakpoint\n///\n@mixin break-at($breakpoint) {\n @if type-of($breakpoint) == number {\n @media screen and (min-width: $breakpoint) {\n @content;\n }\n } @else if type-of($breakpoint) == list {\n $min: nth($breakpoint, 1);\n $max: nth($breakpoint, 2);\n @if type-of($min) == number and type-of($max) == number {\n @media screen and (min-width: $min) and (max-width: $max) {\n @content;\n }\n } @else {\n @error \"Invalid breakpoint: #{$breakpoint}\";\n }\n } @else {\n @error \"Invalid breakpoint: #{$breakpoint}\";\n }\n}\n\n///\n/// An orientation media query breakpoint\n///\n@mixin break-at-orientation($breakpoint) {\n @if type-of($breakpoint) == string {\n @media screen and (orientation: $breakpoint) {\n @content;\n }\n } @else {\n @error \"Invalid breakpoint: #{$breakpoint}\";\n }\n}\n\n///\n/// A maximum-aspect-ratio media query breakpoint\n///\n@mixin break-at-ratio($breakpoint) {\n @if type-of($breakpoint) == number {\n @media screen and (max-aspect-ratio: $breakpoint) {\n @content;\n }\n } @else {\n @error \"Invalid breakpoint: #{$breakpoint}\";\n }\n}\n\n///\n/// A minimum-maximum media query device breakpoint\n///\n@mixin break-at-device($device) {\n @if type-of($device) == string {\n $device: $device,;\n }\n @if type-of($device) == list {\n $breakpoint: break-select-device($device);\n @if nth($breakpoint, 2) {\n $min: nth($breakpoint, 1);\n $max: nth($breakpoint, 2);\n\n @media screen and (min-width: $min) and (max-width: $max) {\n @content;\n }\n } @else {\n @error \"Invalid device: #{$device}\";\n }\n } @else {\n @error \"Invalid device: #{$device}\";\n }\n}\n\n///\n/// A minimum media query device breakpoint\n///\n@mixin break-from-device($device) {\n @if type-of($device) == string {\n $device: $device,;\n }\n @if type-of($device) == list {\n $breakpoint: break-select-device($device);\n $min: nth($breakpoint, 1);\n\n @media screen and (min-width: $min) {\n @content;\n }\n } @else {\n @error \"Invalid device: #{$device}\";\n }\n}\n\n///\n/// A maximum media query device breakpoint\n///\n@mixin break-to-device($device) {\n @if type-of($device) == string {\n $device: $device,;\n }\n @if type-of($device) == list {\n $breakpoint: break-select-device($device);\n $max: nth($breakpoint, 2);\n\n @media screen and (max-width: $max) {\n @content;\n }\n } @else {\n @error \"Invalid device: #{$device}\";\n }\n}\n","////\n/// Copyright (c) 2016-2021 Martin Donath <martin.donath@squidfunk.com>\n///\n/// Permission is hereby granted, free of charge, to any person obtaining a\n/// copy of this software and associated documentation files (the \"Software\"),\n/// to deal in the Software without restriction, including without limitation\n/// the rights to use, copy, modify, merge, publish, distribute, sublicense,\n/// and/or sell copies of the Software, and to permit persons to whom the\n/// Software is furnished to do so, subject to the following conditions:\n///\n/// The above copyright notice and this permission notice shall be included in\n/// all copies or substantial portions of the Software.\n///\n/// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n/// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n/// FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL\n/// THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n/// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n/// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER\n/// DEALINGS\n////\n\n// ----------------------------------------------------------------------------\n// Rules\n// ----------------------------------------------------------------------------\n\n// Only use dark mode on screens\n@media screen {\n\n // Slate theme, i.e. dark mode\n [data-md-color-scheme=\"slate\"] {\n\n // Slate's hue in the range [0,360] - change this variable to alter the tone\n // of the theme, e.g. to make it more redish or greenish. This is a slate-\n // specific variable, but the same approach may be adapted to custom themes.\n --md-hue: 232;\n\n // Default color shades\n --md-default-fg-color: hsla(var(--md-hue), 75%, 95%, 1);\n --md-default-fg-color--light: hsla(var(--md-hue), 75%, 90%, 0.62);\n --md-default-fg-color--lighter: hsla(var(--md-hue), 75%, 90%, 0.32);\n --md-default-fg-color--lightest: hsla(var(--md-hue), 75%, 90%, 0.12);\n --md-default-bg-color: hsla(var(--md-hue), 15%, 21%, 1);\n --md-default-bg-color--light: hsla(var(--md-hue), 15%, 21%, 0.54);\n --md-default-bg-color--lighter: hsla(var(--md-hue), 15%, 21%, 0.26);\n --md-default-bg-color--lightest: hsla(var(--md-hue), 15%, 21%, 0.07);\n\n // Code color shades\n --md-code-fg-color: hsla(var(--md-hue), 18%, 86%, 1);\n --md-code-bg-color: hsla(var(--md-hue), 15%, 15%, 1);\n\n // Code highlighting color shades\n --md-code-hl-color: hsla(#{hex2hsl($clr-blue-a200)}, 0.15);\n --md-code-hl-number-color: hsla(6, 74%, 63%, 1);\n --md-code-hl-special-color: hsla(340, 83%, 66%, 1);\n --md-code-hl-function-color: hsla(291, 57%, 65%, 1);\n --md-code-hl-constant-color: hsla(250, 62%, 70%, 1);\n --md-code-hl-keyword-color: hsla(219, 66%, 64%, 1);\n --md-code-hl-string-color: hsla(150, 58%, 44%, 1);\n --md-code-hl-name-color: var(--md-code-fg-color);\n --md-code-hl-operator-color: var(--md-default-fg-color--light);\n --md-code-hl-punctuation-color: var(--md-default-fg-color--light);\n --md-code-hl-comment-color: var(--md-default-fg-color--light);\n --md-code-hl-generic-color: var(--md-default-fg-color--light);\n --md-code-hl-variable-color: var(--md-default-fg-color--light);\n\n // Typeset color shades\n --md-typeset-color: var(--md-default-fg-color);\n\n // Typeset `a` color shades\n --md-typeset-a-color: var(--md-primary-fg-color);\n\n // Typeset `mark` color shades\n --md-typeset-mark-color: hsla(#{hex2hsl($clr-blue-a200)}, 0.3);\n\n // Typeset `kbd` color shades\n --md-typeset-kbd-color: hsla(var(--md-hue), 15%, 94%, 0.12);\n --md-typeset-kbd-accent-color: hsla(var(--md-hue), 15%, 94%, 0.2);\n --md-typeset-kbd-border-color: hsla(var(--md-hue), 15%, 14%, 1);\n\n // Admonition color shades\n --md-admonition-bg-color: hsla(var(--md-hue), 0%, 100%, 0.025);\n\n // Footer color shades\n --md-footer-bg-color: hsla(var(--md-hue), 15%, 12%, 0.87);\n --md-footer-bg-color--dark: hsla(var(--md-hue), 15%, 10%, 1);\n\n // Black and white primary colors\n &[data-md-color-primary=\"black\"],\n &[data-md-color-primary=\"white\"] {\n\n // Typeset color shades\n --md-typeset-a-color: hsla(#{hex2hsl($clr-indigo-400)}, 1);\n }\n }\n}\n"]} \ No newline at end of file
diff --git a/freetype/docs/reference/ft2-auto_hinter.html b/freetype/docs/reference/ft2-auto_hinter.html
index 80ccfd72..2ccc6ce9 100644
--- a/freetype/docs/reference/ft2-auto_hinter.html
+++ b/freetype/docs/reference/ft2-auto_hinter.html
@@ -1,145 +1,136 @@
-
-
-
<!doctype html>
<html lang="en" class="no-js">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
- <meta http-equiv="x-ua-compatible" content="ie=edge">
- <meta name="description" content="API Reference Documentation for FreeType-2.10.4">
+ <meta name="description" content="API Reference Documentation for FreeType-2.11.1">
<meta name="author" content="FreeType Contributors">
- <meta name="lang:clipboard.copy" content="Copy to clipboard">
-
- <meta name="lang:clipboard.copied" content="Copied to clipboard">
-
- <meta name="lang:search.language" content="en">
-
- <meta name="lang:search.pipeline.stopwords" content="True">
-
- <meta name="lang:search.pipeline.trimmer" content="True">
-
- <meta name="lang:search.result.none" content="No matching documents">
-
- <meta name="lang:search.result.one" content="1 matching document">
-
- <meta name="lang:search.result.other" content="# matching documents">
-
- <meta name="lang:search.tokenizer" content="[\s\-]+">
-
- <link rel="shortcut icon" href="images/favico.ico">
- <meta name="generator" content="mkdocs-1.1, mkdocs-material-4.6.3">
+ <link rel="icon" href="images/favico.ico">
+ <meta name="generator" content="mkdocs-1.2.1, mkdocs-material-7.1.9">
- <title>The auto-hinter - FreeType-2.10.4 API Reference</title>
+ <title>The auto-hinter - FreeType-2.11.1 API Reference</title>
- <link rel="stylesheet" href="assets/stylesheets/application.adb8469c.css">
-
- <link rel="stylesheet" href="assets/stylesheets/application-palette.a8b3c06d.css">
-
+ <link rel="stylesheet" href="assets/stylesheets/main.ca7ac06f.min.css">
+ <link rel="stylesheet" href="assets/stylesheets/palette.f1a3b89f.min.css">
+
+
+
+ <meta name="theme-color" content="#4cae4f">
- <meta name="theme-color" content="#4caf50">
- <script src="assets/javascripts/modernizr.86422ebf.js"></script>
-
- <link href="https://fonts.gstatic.com" rel="preconnect" crossorigin>
+
+ <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Noto+Serif:300,400,400i,700%7CRoboto+Mono&display=fallback">
- <style>body,input{font-family:"Noto Serif","Helvetica Neue",Helvetica,Arial,sans-serif}code,kbd,pre{font-family:"Roboto Mono","Courier New",Courier,monospace}</style>
+ <style>:root{--md-text-font-family:"Noto Serif";--md-code-font-family:"Roboto Mono"}</style>
- <link rel="stylesheet" href="assets/fonts/material-icons.css">
<link rel="stylesheet" href="stylesheets/extra.css">
+
+
</head>
+
+
+
+
- <body dir="ltr" data-md-color-primary="green" data-md-color-accent="green">
+ <body dir="ltr" data-md-color-scheme="" data-md-color-primary="green" data-md-color-accent="green">
- <svg class="md-svg">
- <defs>
-
-
- </defs>
- </svg>
- <input class="md-toggle" data-md-toggle="drawer" type="checkbox" id="__drawer" autocomplete="off">
- <input class="md-toggle" data-md-toggle="search" type="checkbox" id="__search" autocomplete="off">
- <label class="md-overlay" data-md-component="overlay" for="__drawer"></label>
- <a href="#the-auto-hinter" tabindex="0" class="md-skip">
- Skip to content
- </a>
+ <script>function __prefix(e){return new URL(".",location).pathname+"."+e}function __get(e,t=localStorage){return JSON.parse(t.getItem(__prefix(e)))}</script>
+ <input class="md-toggle" data-md-toggle="drawer" type="checkbox" id="__drawer" autocomplete="off">
+ <input class="md-toggle" data-md-toggle="search" type="checkbox" id="__search" autocomplete="off">
+ <label class="md-overlay" for="__drawer"></label>
+ <div data-md-component="skip">
+
+
+ <a href="#the-auto-hinter" class="md-skip">
+ Skip to content
+ </a>
+
+ </div>
+ <div data-md-component="announce">
+
+ </div>
<header class="md-header" data-md-component="header">
- <nav class="md-header-nav md-grid">
- <div class="md-flex">
- <div class="md-flex__cell md-flex__cell--shrink">
- <a href="." title="FreeType-2.10.4 API Reference" aria-label="FreeType-2.10.4 API Reference" class="md-header-nav__button md-logo">
-
- <img alt="logo" src="images/favico.ico" width="24" height="24">
-
- </a>
- </div>
- <div class="md-flex__cell md-flex__cell--shrink">
- <label class="md-icon md-icon--menu md-header-nav__button" for="__drawer"></label>
- </div>
- <div class="md-flex__cell md-flex__cell--stretch">
- <div class="md-flex__ellipsis md-header-nav__title" data-md-component="title">
-
- <span class="md-header-nav__topic">
- FreeType-2.10.4 API Reference
- </span>
- <span class="md-header-nav__topic">
-
- The auto-hinter
-
- </span>
-
+ <nav class="md-header__inner md-grid" aria-label="Header">
+ <a href="index.html" title="FreeType-2.11.1 API Reference" class="md-header__button md-logo" aria-label="FreeType-2.11.1 API Reference" data-md-component="logo">
+
+ <img src="images/favico.ico" alt="logo">
+
+ </a>
+ <label class="md-header__button md-icon" for="__drawer">
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M3 6h18v2H3V6m0 5h18v2H3v-2m0 5h18v2H3v-2z"/></svg>
+ </label>
+ <div class="md-header__title" data-md-component="header-title">
+ <div class="md-header__ellipsis">
+ <div class="md-header__topic">
+ <span class="md-ellipsis">
+ FreeType-2.11.1 API Reference
+ </span>
+ </div>
+ <div class="md-header__topic" data-md-component="header-topic">
+ <span class="md-ellipsis">
+
+ The auto-hinter
+
+ </span>
</div>
</div>
- <div class="md-flex__cell md-flex__cell--shrink">
-
- <label class="md-icon md-icon--search md-header-nav__button" for="__search"></label>
-
+ </div>
+
+
+
+ <label class="md-header__button md-icon" for="__search">
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M9.5 3A6.5 6.5 0 0 1 16 9.5c0 1.61-.59 3.09-1.56 4.23l.27.27h.79l5 5-1.5 1.5-5-5v-.79l-.27-.27A6.516 6.516 0 0 1 9.5 16 6.5 6.5 0 0 1 3 9.5 6.5 6.5 0 0 1 9.5 3m0 2C7 5 5 7 5 9.5S7 14 9.5 14 14 12 14 9.5 12 5 9.5 5z"/></svg>
+ </label>
+
<div class="md-search" data-md-component="search" role="dialog">
<label class="md-search__overlay" for="__search"></label>
<div class="md-search__inner" role="search">
<form class="md-search__form" name="search">
- <input type="text" class="md-search__input" aria-label="search" name="query" placeholder="Search" autocapitalize="off" autocorrect="off" autocomplete="off" spellcheck="false" data-md-component="query" data-md-state="active">
- <label class="md-icon md-search__icon" for="__search"></label>
- <button type="reset" class="md-icon md-search__icon" data-md-component="reset" tabindex="-1">
- &#xE5CD;
+ <input type="text" class="md-search__input" name="query" aria-label="Search" placeholder="Search" autocapitalize="off" autocorrect="off" autocomplete="off" spellcheck="false" data-md-component="search-query" data-md-state="active" required>
+ <label class="md-search__icon md-icon" for="__search">
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M9.5 3A6.5 6.5 0 0 1 16 9.5c0 1.61-.59 3.09-1.56 4.23l.27.27h.79l5 5-1.5 1.5-5-5v-.79l-.27-.27A6.516 6.516 0 0 1 9.5 16 6.5 6.5 0 0 1 3 9.5 6.5 6.5 0 0 1 9.5 3m0 2C7 5 5 7 5 9.5S7 14 9.5 14 14 12 14 9.5 12 5 9.5 5z"/></svg>
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M20 11v2H8l5.5 5.5-1.42 1.42L4.16 12l7.92-7.92L13.5 5.5 8 11h12z"/></svg>
+ </label>
+ <button type="reset" class="md-search__icon md-icon" aria-label="Clear" tabindex="-1">
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z"/></svg>
</button>
</form>
<div class="md-search__output">
<div class="md-search__scrollwrap" data-md-scrollfix>
- <div class="md-search-result" data-md-component="result">
+ <div class="md-search-result" data-md-component="search-result">
<div class="md-search-result__meta">
- Type to start searching
+ Initializing search
</div>
<ol class="md-search-result__list"></ol>
</div>
@@ -147,33 +138,35 @@
</div>
</div>
</div>
-
- </div>
-
- </div>
+
+
</nav>
</header>
- <div class="md-container">
+ <div class="md-container" data-md-component="container">
-
+
- <main class="md-main" role="main">
- <div class="md-main__inner md-grid" data-md-component="container">
+ <main class="md-main" data-md-component="main">
+ <div class="md-main__inner md-grid">
- <div class="md-sidebar md-sidebar--primary" data-md-component="navigation">
+
+ <div class="md-sidebar md-sidebar--primary" data-md-component="sidebar" data-md-type="navigation" >
<div class="md-sidebar__scrollwrap">
<div class="md-sidebar__inner">
- <nav class="md-nav md-nav--primary" data-md-level="0">
- <label class="md-nav__title md-nav__title--site" for="__drawer">
- <a href="." title="FreeType-2.10.4 API Reference" class="md-nav__button md-logo">
-
- <img alt="logo" src="images/favico.ico" width="48" height="48">
+
+
+
+<nav class="md-nav md-nav--primary" aria-label="Navigation" data-md-level="0">
+ <label class="md-nav__title" for="__drawer">
+ <a href="index.html" title="FreeType-2.11.1 API Reference" class="md-nav__button md-logo" aria-label="FreeType-2.11.1 API Reference" data-md-component="logo">
+ <img src="images/favico.ico" alt="logo">
+
</a>
- FreeType-2.10.4 API Reference
+ FreeType-2.11.1 API Reference
</label>
<ul class="md-nav__list" data-md-scrollfix>
@@ -182,360 +175,396 @@
-
- <li class="md-nav__item">
- <a href="index.html" title="TOC" class="md-nav__link">
- TOC
- </a>
- </li>
+
+
+
+ <li class="md-nav__item">
+ <a href="index.html" class="md-nav__link">
+ TOC
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-index.html" title="Index" class="md-nav__link">
- Index
- </a>
- </li>
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-index.html" class="md-nav__link">
+ Index
+ </a>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-3" type="checkbox" id="nav-3">
+
+
+
- <label class="md-nav__link" for="nav-3">
- General Remarks
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-3">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_3" type="checkbox" id="__nav_3" >
+
+ <label class="md-nav__link" for="__nav_3">
General Remarks
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
+ <nav class="md-nav" aria-label="General Remarks" data-md-level="1">
+ <label class="md-nav__title" for="__nav_3">
+ <span class="md-nav__icon md-icon"></span>
+ General Remarks
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-header_inclusion.html" title="FreeType's header inclusion scheme" class="md-nav__link">
- FreeType's header inclusion scheme
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-preamble.html" class="md-nav__link">
+ Preamble
+ </a>
+ </li>
+
-
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-header_inclusion.html" class="md-nav__link">
+ FreeType's header inclusion scheme
+ </a>
+ </li>
+
- <li class="md-nav__item">
- <a href="ft2-user_allocation.html" title="User allocation" class="md-nav__link">
- User allocation
- </a>
- </li>
+
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-user_allocation.html" class="md-nav__link">
+ User allocation
+ </a>
+ </li>
+
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-4" type="checkbox" id="nav-4">
+
+
+
- <label class="md-nav__link" for="nav-4">
- Core API
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-4">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_4" type="checkbox" id="__nav_4" >
+
+ <label class="md-nav__link" for="__nav_4">
Core API
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
-
-
+ <nav class="md-nav" aria-label="Core API" data-md-level="1">
+ <label class="md-nav__title" for="__nav_4">
+ <span class="md-nav__icon md-icon"></span>
+ Core API
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-version.html" class="md-nav__link">
+ FreeType Version
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-version.html" title="FreeType Version" class="md-nav__link">
- FreeType Version
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-basic_types.html" title="Basic Data Types" class="md-nav__link">
- Basic Data Types
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-basic_types.html" class="md-nav__link">
+ Basic Data Types
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-base_interface.html" class="md-nav__link">
+ Base Interface
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-base_interface.html" title="Base Interface" class="md-nav__link">
- Base Interface
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-glyph_variants.html" title="Unicode Variation Sequences" class="md-nav__link">
- Unicode Variation Sequences
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-glyph_variants.html" class="md-nav__link">
+ Unicode Variation Sequences
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-color_management.html" title="Glyph Color Management" class="md-nav__link">
- Glyph Color Management
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-color_management.html" class="md-nav__link">
+ Glyph Color Management
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-layer_management.html" title="Glyph Layer Management" class="md-nav__link">
- Glyph Layer Management
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-layer_management.html" class="md-nav__link">
+ Glyph Layer Management
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-glyph_management.html" title="Glyph Management" class="md-nav__link">
- Glyph Management
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-glyph_management.html" class="md-nav__link">
+ Glyph Management
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-mac_specific.html" title="Mac Specific Interface" class="md-nav__link">
- Mac Specific Interface
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-mac_specific.html" class="md-nav__link">
+ Mac Specific Interface
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-sizes_management.html" title="Size Management" class="md-nav__link">
- Size Management
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-sizes_management.html" class="md-nav__link">
+ Size Management
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-header_file_macros.html" title="Header File Macros" class="md-nav__link">
- Header File Macros
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-header_file_macros.html" class="md-nav__link">
+ Header File Macros
+ </a>
+ </li>
+
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-5" type="checkbox" id="nav-5">
+
+
+
- <label class="md-nav__link" for="nav-5">
- Format-Specific API
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-5">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_5" type="checkbox" id="__nav_5" >
+
+ <label class="md-nav__link" for="__nav_5">
Format-Specific API
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
+ <nav class="md-nav" aria-label="Format-Specific API" data-md-level="1">
+ <label class="md-nav__title" for="__nav_5">
+ <span class="md-nav__icon md-icon"></span>
+ Format-Specific API
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-multiple_masters.html" title="Multiple Masters" class="md-nav__link">
- Multiple Masters
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-multiple_masters.html" class="md-nav__link">
+ Multiple Masters
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-truetype_tables.html" title="TrueType Tables" class="md-nav__link">
- TrueType Tables
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-truetype_tables.html" class="md-nav__link">
+ TrueType Tables
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-type1_tables.html" title="Type 1 Tables" class="md-nav__link">
- Type 1 Tables
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-type1_tables.html" class="md-nav__link">
+ Type 1 Tables
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-sfnt_names.html" title="SFNT Names" class="md-nav__link">
- SFNT Names
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-sfnt_names.html" class="md-nav__link">
+ SFNT Names
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-bdf_fonts.html" class="md-nav__link">
+ BDF and PCF Files
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-bdf_fonts.html" title="BDF and PCF Files" class="md-nav__link">
- BDF and PCF Files
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-cid_fonts.html" title="CID Fonts" class="md-nav__link">
- CID Fonts
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-cid_fonts.html" class="md-nav__link">
+ CID Fonts
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-pfr_fonts.html" class="md-nav__link">
+ PFR Fonts
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-pfr_fonts.html" title="PFR Fonts" class="md-nav__link">
- PFR Fonts
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-winfnt_fonts.html" title="Window FNT Files" class="md-nav__link">
- Window FNT Files
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-winfnt_fonts.html" class="md-nav__link">
+ Window FNT Files
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-font_formats.html" title="Font Formats" class="md-nav__link">
- Font Formats
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-font_formats.html" class="md-nav__link">
+ Font Formats
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-gasp_table.html" title="Gasp Table" class="md-nav__link">
- Gasp Table
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-gasp_table.html" class="md-nav__link">
+ Gasp Table
+ </a>
+ </li>
+
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
@@ -543,53 +572,63 @@
-
-
- <li class="md-nav__item md-nav__item--active md-nav__item--nested">
+
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-6" type="checkbox" id="nav-6" checked>
+
+
- <label class="md-nav__link" for="nav-6">
- Controlling FreeType Modules
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-6">
+ <li class="md-nav__item md-nav__item--active md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_6" type="checkbox" id="__nav_6" checked>
+
+ <label class="md-nav__link" for="__nav_6">
Controlling FreeType Modules
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
+ <nav class="md-nav" aria-label="Controlling FreeType Modules" data-md-level="1">
+ <label class="md-nav__title" for="__nav_6">
+ <span class="md-nav__icon md-icon"></span>
+ Controlling FreeType Modules
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
-
-
-
+
+
-
-
- <li class="md-nav__item md-nav__item--active">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="toc" type="checkbox" id="__toc">
+
+
+ <li class="md-nav__item md-nav__item--active">
-
-
- <label class="md-nav__link md-nav__link--active" for="__toc">
+ <input class="md-nav__toggle md-toggle" data-md-toggle="toc" type="checkbox" id="__toc">
+
+
+
+
+
+ <label class="md-nav__link md-nav__link--active" for="__toc">
+ The auto-hinter
+ <span class="md-nav__icon md-icon"></span>
+ </label>
+
+ <a href="ft2-auto_hinter.html" class="md-nav__link md-nav__link--active">
The auto-hinter
- </label>
-
- <a href="ft2-auto_hinter.html" title="The auto-hinter" class="md-nav__link md-nav__link--active">
- The auto-hinter
- </a>
-
+ </a>
-<nav class="md-nav md-nav--secondary">
+
+<nav class="md-nav md-nav--secondary" aria-label="Table of contents">
+
- <label class="md-nav__title" for="__toc">Table of contents</label>
- <ul class="md-nav__list" data-md-scrollfix>
+ <label class="md-nav__title" for="__toc">
+ <span class="md-nav__icon md-icon"></span>
+ Table of contents
+ </label>
+ <ul class="md-nav__list" data-md-component="toc" data-md-scrollfix>
<li class="md-nav__item">
<a href="#synopsis" class="md-nav__link">
@@ -598,428 +637,462 @@
</li>
-
-
-
-
</ul>
</nav>
-
- </li>
+
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-cff_driver.html" title="The CFF driver" class="md-nav__link">
- The CFF driver
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-cff_driver.html" class="md-nav__link">
+ The CFF driver
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-t1_cid_driver.html" class="md-nav__link">
+ The Type 1 and CID drivers
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-t1_cid_driver.html" title="The Type 1 and CID drivers" class="md-nav__link">
- The Type 1 and CID drivers
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-tt_driver.html" title="The TrueType driver" class="md-nav__link">
- The TrueType driver
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-tt_driver.html" class="md-nav__link">
+ The TrueType driver
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-pcf_driver.html" title="The PCF driver" class="md-nav__link">
- The PCF driver
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-pcf_driver.html" class="md-nav__link">
+ The PCF driver
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-properties.html" title="Driver properties" class="md-nav__link">
- Driver properties
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-properties.html" class="md-nav__link">
+ Driver properties
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-parameter_tags.html" title="Parameter Tags" class="md-nav__link">
- Parameter Tags
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-parameter_tags.html" class="md-nav__link">
+ Parameter Tags
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-lcd_rendering.html" title="Subpixel Rendering" class="md-nav__link">
- Subpixel Rendering
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-lcd_rendering.html" class="md-nav__link">
+ Subpixel Rendering
+ </a>
+ </li>
+
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-7" type="checkbox" id="nav-7">
+
+
+
- <label class="md-nav__link" for="nav-7">
- Cache Sub-System
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-7">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_7" type="checkbox" id="__nav_7" >
+
+ <label class="md-nav__link" for="__nav_7">
Cache Sub-System
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
-
+ <nav class="md-nav" aria-label="Cache Sub-System" data-md-level="1">
+ <label class="md-nav__title" for="__nav_7">
+ <span class="md-nav__icon md-icon"></span>
+ Cache Sub-System
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
-
-
-
- <li class="md-nav__item">
- <a href="ft2-cache_subsystem.html" title="Cache Sub-System" class="md-nav__link">
- Cache Sub-System
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-cache_subsystem.html" class="md-nav__link">
+ Cache Sub-System
+ </a>
+ </li>
+
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-8" type="checkbox" id="nav-8">
+
+
+
- <label class="md-nav__link" for="nav-8">
- Support API
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-8">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_8" type="checkbox" id="__nav_8" >
+
+ <label class="md-nav__link" for="__nav_8">
Support API
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
-
-
+ <nav class="md-nav" aria-label="Support API" data-md-level="1">
+ <label class="md-nav__title" for="__nav_8">
+ <span class="md-nav__icon md-icon"></span>
+ Support API
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-computations.html" class="md-nav__link">
+ Computations
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-computations.html" title="Computations" class="md-nav__link">
- Computations
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-list_processing.html" title="List Processing" class="md-nav__link">
- List Processing
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-list_processing.html" class="md-nav__link">
+ List Processing
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-outline_processing.html" title="Outline Processing" class="md-nav__link">
- Outline Processing
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-outline_processing.html" class="md-nav__link">
+ Outline Processing
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-quick_advance.html" title="Quick retrieval of advance values" class="md-nav__link">
- Quick retrieval of advance values
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-quick_advance.html" class="md-nav__link">
+ Quick retrieval of advance values
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-bitmap_handling.html" title="Bitmap Handling" class="md-nav__link">
- Bitmap Handling
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-bitmap_handling.html" class="md-nav__link">
+ Bitmap Handling
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-raster.html" title="Scanline Converter" class="md-nav__link">
- Scanline Converter
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-raster.html" class="md-nav__link">
+ Scanline Converter
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-glyph_stroker.html" title="Glyph Stroker" class="md-nav__link">
- Glyph Stroker
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-glyph_stroker.html" class="md-nav__link">
+ Glyph Stroker
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-system_interface.html" class="md-nav__link">
+ System Interface
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-system_interface.html" title="System Interface" class="md-nav__link">
- System Interface
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-module_management.html" title="Module Management" class="md-nav__link">
- Module Management
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-module_management.html" class="md-nav__link">
+ Module Management
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-gzip.html" class="md-nav__link">
+ GZIP Streams
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-gzip.html" title="GZIP Streams" class="md-nav__link">
- GZIP Streams
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-lzw.html" title="LZW Streams" class="md-nav__link">
- LZW Streams
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-lzw.html" class="md-nav__link">
+ LZW Streams
+ </a>
+ </li>
+
-
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-bzip2.html" class="md-nav__link">
+ BZIP2 Streams
+ </a>
+ </li>
+
- <li class="md-nav__item">
- <a href="ft2-bzip2.html" title="BZIP2 Streams" class="md-nav__link">
- BZIP2 Streams
- </a>
- </li>
+
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-debugging_apis.html" class="md-nav__link">
+ External Debugging APIs
+ </a>
+ </li>
+
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-9" type="checkbox" id="nav-9">
+
+
+
- <label class="md-nav__link" for="nav-9">
- Error Codes
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-9">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_9" type="checkbox" id="__nav_9" >
+
+ <label class="md-nav__link" for="__nav_9">
Error Codes
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
-
-
+ <nav class="md-nav" aria-label="Error Codes" data-md-level="1">
+ <label class="md-nav__title" for="__nav_9">
+ <span class="md-nav__icon md-icon"></span>
+ Error Codes
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-error_enumerations.html" class="md-nav__link">
+ Error Enumerations
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-error_enumerations.html" title="Error Enumerations" class="md-nav__link">
- Error Enumerations
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-error_code_values.html" title="Error Code Values" class="md-nav__link">
- Error Code Values
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-error_code_values.html" class="md-nav__link">
+ Error Code Values
+ </a>
+ </li>
+
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-10" type="checkbox" id="nav-10">
+
+
+
- <label class="md-nav__link" for="nav-10">
- Miscellaneous
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-10">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_10" type="checkbox" id="__nav_10" >
+
+ <label class="md-nav__link" for="__nav_10">
Miscellaneous
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
+ <nav class="md-nav" aria-label="Miscellaneous" data-md-level="1">
+ <label class="md-nav__title" for="__nav_10">
+ <span class="md-nav__icon md-icon"></span>
+ Miscellaneous
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-gx_validation.html" title="TrueTypeGX/AAT Validation" class="md-nav__link">
- TrueTypeGX/AAT Validation
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-gx_validation.html" class="md-nav__link">
+ TrueTypeGX/AAT Validation
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-incremental.html" class="md-nav__link">
+ Incremental Loading
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-incremental.html" title="Incremental Loading" class="md-nav__link">
- Incremental Loading
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-truetype_engine.html" title="The TrueType Engine" class="md-nav__link">
- The TrueType Engine
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-truetype_engine.html" class="md-nav__link">
+ The TrueType Engine
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-ot_validation.html" title="OpenType Validation" class="md-nav__link">
- OpenType Validation
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-ot_validation.html" class="md-nav__link">
+ OpenType Validation
+ </a>
+ </li>
+
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
</ul>
@@ -1029,18 +1102,23 @@
</div>
- <div class="md-sidebar md-sidebar--secondary" data-md-component="toc">
+
+ <div class="md-sidebar md-sidebar--secondary" data-md-component="sidebar" data-md-type="toc" >
<div class="md-sidebar__scrollwrap">
<div class="md-sidebar__inner">
-<nav class="md-nav md-nav--secondary">
+<nav class="md-nav md-nav--secondary" aria-label="Table of contents">
+
- <label class="md-nav__title" for="__toc">Table of contents</label>
- <ul class="md-nav__list" data-md-scrollfix>
+ <label class="md-nav__title" for="__toc">
+ <span class="md-nav__icon md-icon"></span>
+ Table of contents
+ </label>
+ <ul class="md-nav__list" data-md-component="toc" data-md-scrollfix>
<li class="md-nav__item">
<a href="#synopsis" class="md-nav__link">
@@ -1049,10 +1127,6 @@
</li>
-
-
-
-
</ul>
</nav>
@@ -1061,7 +1135,7 @@
</div>
- <div class="md-content">
+ <div class="md-content" data-md-component="content">
<article class="md-content__inner md-typeset">
@@ -1072,10 +1146,7 @@
<h2 id="synopsis">Synopsis<a class="headerlink" href="#synopsis" title="Permanent link">&para;</a></h2>
<p>While FreeType's auto-hinter doesn't expose API functions by itself, it is possible to control its behaviour with <code><a href="ft2-module_management.html#ft_property_set">FT_Property_Set</a></code> and <code><a href="ft2-module_management.html#ft_property_get">FT_Property_Get</a></code>. The following lists the available properties together with the necessary macros and structures.</p>
<p>Note that the auto-hinter's module name is &lsquo;autofitter&rsquo; for historical reasons.</p>
-<p>Available properties are <code><a href="ft2-properties.html#increase-x-height">increase-x-height</a></code>, <code><a href="ft2-properties.html#no-stem-darkening">no-stem-darkening</a></code> (experimental), <code><a href="ft2-properties.html#darkening-parameters">darkening-parameters</a></code> (experimental), <code><a href="ft2-properties.html#warping">warping</a></code> (experimental), <code><a href="ft2-properties.html#glyph-to-script-map">glyph-to-script-map</a></code> (experimental), <code><a href="ft2-properties.html#fallback-script">fallback-script</a></code> (experimental), and <code><a href="ft2-properties.html#default-script">default-script</a></code> (experimental), as documented in the &lsquo;<a href="ft2-properties.html#properties">Driver properties</a>&rsquo; section.</p>
-
-
-
+<p>Available properties are <code><a href="ft2-properties.html#increase-x-height">increase-x-height</a></code>, <code><a href="ft2-properties.html#no-stem-darkening">no-stem-darkening</a></code> (experimental), <code><a href="ft2-properties.html#darkening-parameters">darkening-parameters</a></code> (experimental), <code><a href="ft2-properties.html#glyph-to-script-map">glyph-to-script-map</a></code> (experimental), <code><a href="ft2-properties.html#fallback-script">fallback-script</a></code> (experimental), and <code><a href="ft2-properties.html#default-script">default-script</a></code> (experimental), as documented in the &lsquo;<a href="ft2-properties.html#properties">Driver properties</a>&rsquo; section.</p>
@@ -1086,59 +1157,60 @@
</article>
</div>
</div>
+
</main>
<footer class="md-footer">
- <div class="md-footer-nav">
- <nav class="md-footer-nav__inner md-grid">
+ <nav class="md-footer__inner md-grid" aria-label="Footer">
+
- <a href="ft2-gasp_table.html" title="Gasp Table" class="md-flex md-footer-nav__link md-footer-nav__link--prev" rel="prev">
- <div class="md-flex__cell md-flex__cell--shrink">
- <i class="md-icon md-icon--arrow-back md-footer-nav__button"></i>
- </div>
- <div class="md-flex__cell md-flex__cell--stretch md-footer-nav__title">
- <span class="md-flex__ellipsis">
- <span class="md-footer-nav__direction">
- Previous
- </span>
- Gasp Table
+ <a href="ft2-gasp_table.html" class="md-footer__link md-footer__link--prev" aria-label="Previous: Gasp Table" rel="prev">
+ <div class="md-footer__button md-icon">
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M20 11v2H8l5.5 5.5-1.42 1.42L4.16 12l7.92-7.92L13.5 5.5 8 11h12z"/></svg>
+ </div>
+ <div class="md-footer__title">
+ <div class="md-ellipsis">
+ <span class="md-footer__direction">
+ Previous
</span>
+ Gasp Table
</div>
- </a>
-
+ </div>
+ </a>
+
+
- <a href="ft2-cff_driver.html" title="The CFF driver" class="md-flex md-footer-nav__link md-footer-nav__link--next" rel="next">
- <div class="md-flex__cell md-flex__cell--stretch md-footer-nav__title">
- <span class="md-flex__ellipsis">
- <span class="md-footer-nav__direction">
- Next
- </span>
- The CFF driver
+ <a href="ft2-cff_driver.html" class="md-footer__link md-footer__link--next" aria-label="Next: The CFF driver" rel="next">
+ <div class="md-footer__title">
+ <div class="md-ellipsis">
+ <span class="md-footer__direction">
+ Next
</span>
+ The CFF driver
</div>
- <div class="md-flex__cell md-flex__cell--shrink">
- <i class="md-icon md-icon--arrow-forward md-footer-nav__button"></i>
- </div>
- </a>
-
- </nav>
- </div>
+ </div>
+ <div class="md-footer__button md-icon">
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M4 11v2h12l-5.5 5.5 1.42 1.42L19.84 12l-7.92-7.92L10.5 5.5 16 11H4z"/></svg>
+ </div>
+ </a>
+
+ </nav>
<div class="md-footer-meta md-typeset">
<div class="md-footer-meta__inner md-grid">
<div class="md-footer-copyright">
<div class="md-footer-copyright__highlight">
- Copyright 2020 <a href = "https://www.freetype.org/license.html">The FreeType Project</a>.
+ Copyright 2021 <a href = "https://www.freetype.org/license.html">The FreeType Project</a>.
</div>
- powered by
- <a href="https://www.mkdocs.org" target="_blank" rel="noopener">MkDocs</a>
- and
+ Made with
<a href="https://squidfunk.github.io/mkdocs-material/" target="_blank" rel="noopener">
- Material for MkDocs</a>
+ Material for MkDocs
+ </a>
+
</div>
</div>
@@ -1146,10 +1218,13 @@
</footer>
</div>
+ <div class="md-dialog" data-md-component="dialog">
+ <div class="md-dialog__inner md-typeset"></div>
+ </div>
+ <script id="__config" type="application/json">{"base": ".", "features": [], "translations": {"clipboard.copy": "Copy to clipboard", "clipboard.copied": "Copied to clipboard", "search.config.lang": "en", "search.config.pipeline": "trimmer, stopWordFilter", "search.config.separator": "[\\s\\-]+", "search.placeholder": "Search", "search.result.placeholder": "Type to start searching", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.term.missing": "Missing", "select.version.title": "Select version"}, "search": "assets/javascripts/workers/search.477d984a.min.js", "version": null}</script>
- <script src="assets/javascripts/application.c33a9706.js"></script>
-
- <script>app.initialize({version:"1.1",url:{base:"."}})</script>
+
+ <script src="assets/javascripts/bundle.82b56eb2.min.js"></script>
<script src="javascripts/extra.js"></script>
diff --git a/freetype/docs/reference/ft2-base_interface.html b/freetype/docs/reference/ft2-base_interface.html
index 25f219db..91925f18 100644
--- a/freetype/docs/reference/ft2-base_interface.html
+++ b/freetype/docs/reference/ft2-base_interface.html
@@ -1,145 +1,136 @@
-
-
-
<!doctype html>
<html lang="en" class="no-js">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
- <meta http-equiv="x-ua-compatible" content="ie=edge">
- <meta name="description" content="API Reference Documentation for FreeType-2.10.4">
+ <meta name="description" content="API Reference Documentation for FreeType-2.11.1">
<meta name="author" content="FreeType Contributors">
- <meta name="lang:clipboard.copy" content="Copy to clipboard">
-
- <meta name="lang:clipboard.copied" content="Copied to clipboard">
-
- <meta name="lang:search.language" content="en">
-
- <meta name="lang:search.pipeline.stopwords" content="True">
-
- <meta name="lang:search.pipeline.trimmer" content="True">
-
- <meta name="lang:search.result.none" content="No matching documents">
-
- <meta name="lang:search.result.one" content="1 matching document">
-
- <meta name="lang:search.result.other" content="# matching documents">
-
- <meta name="lang:search.tokenizer" content="[\s\-]+">
-
- <link rel="shortcut icon" href="images/favico.ico">
- <meta name="generator" content="mkdocs-1.1, mkdocs-material-4.6.3">
+ <link rel="icon" href="images/favico.ico">
+ <meta name="generator" content="mkdocs-1.2.1, mkdocs-material-7.1.9">
- <title>Base Interface - FreeType-2.10.4 API Reference</title>
+ <title>Base Interface - FreeType-2.11.1 API Reference</title>
- <link rel="stylesheet" href="assets/stylesheets/application.adb8469c.css">
-
- <link rel="stylesheet" href="assets/stylesheets/application-palette.a8b3c06d.css">
-
+ <link rel="stylesheet" href="assets/stylesheets/main.ca7ac06f.min.css">
+ <link rel="stylesheet" href="assets/stylesheets/palette.f1a3b89f.min.css">
+
+
+
+ <meta name="theme-color" content="#4cae4f">
- <meta name="theme-color" content="#4caf50">
- <script src="assets/javascripts/modernizr.86422ebf.js"></script>
-
- <link href="https://fonts.gstatic.com" rel="preconnect" crossorigin>
+
+ <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Noto+Serif:300,400,400i,700%7CRoboto+Mono&display=fallback">
- <style>body,input{font-family:"Noto Serif","Helvetica Neue",Helvetica,Arial,sans-serif}code,kbd,pre{font-family:"Roboto Mono","Courier New",Courier,monospace}</style>
+ <style>:root{--md-text-font-family:"Noto Serif";--md-code-font-family:"Roboto Mono"}</style>
- <link rel="stylesheet" href="assets/fonts/material-icons.css">
<link rel="stylesheet" href="stylesheets/extra.css">
+
+
</head>
+
+
+
- <body dir="ltr" data-md-color-primary="green" data-md-color-accent="green">
+
+ <body dir="ltr" data-md-color-scheme="" data-md-color-primary="green" data-md-color-accent="green">
- <svg class="md-svg">
- <defs>
-
-
- </defs>
- </svg>
- <input class="md-toggle" data-md-toggle="drawer" type="checkbox" id="__drawer" autocomplete="off">
- <input class="md-toggle" data-md-toggle="search" type="checkbox" id="__search" autocomplete="off">
- <label class="md-overlay" data-md-component="overlay" for="__drawer"></label>
- <a href="#base-interface" tabindex="0" class="md-skip">
- Skip to content
- </a>
+ <script>function __prefix(e){return new URL(".",location).pathname+"."+e}function __get(e,t=localStorage){return JSON.parse(t.getItem(__prefix(e)))}</script>
+ <input class="md-toggle" data-md-toggle="drawer" type="checkbox" id="__drawer" autocomplete="off">
+ <input class="md-toggle" data-md-toggle="search" type="checkbox" id="__search" autocomplete="off">
+ <label class="md-overlay" for="__drawer"></label>
+ <div data-md-component="skip">
+
+
+ <a href="#base-interface" class="md-skip">
+ Skip to content
+ </a>
+
+ </div>
+ <div data-md-component="announce">
+
+ </div>
<header class="md-header" data-md-component="header">
- <nav class="md-header-nav md-grid">
- <div class="md-flex">
- <div class="md-flex__cell md-flex__cell--shrink">
- <a href="." title="FreeType-2.10.4 API Reference" aria-label="FreeType-2.10.4 API Reference" class="md-header-nav__button md-logo">
-
- <img alt="logo" src="images/favico.ico" width="24" height="24">
-
- </a>
- </div>
- <div class="md-flex__cell md-flex__cell--shrink">
- <label class="md-icon md-icon--menu md-header-nav__button" for="__drawer"></label>
- </div>
- <div class="md-flex__cell md-flex__cell--stretch">
- <div class="md-flex__ellipsis md-header-nav__title" data-md-component="title">
-
- <span class="md-header-nav__topic">
- FreeType-2.10.4 API Reference
- </span>
- <span class="md-header-nav__topic">
-
- Base Interface
-
- </span>
-
+ <nav class="md-header__inner md-grid" aria-label="Header">
+ <a href="index.html" title="FreeType-2.11.1 API Reference" class="md-header__button md-logo" aria-label="FreeType-2.11.1 API Reference" data-md-component="logo">
+
+ <img src="images/favico.ico" alt="logo">
+
+ </a>
+ <label class="md-header__button md-icon" for="__drawer">
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M3 6h18v2H3V6m0 5h18v2H3v-2m0 5h18v2H3v-2z"/></svg>
+ </label>
+ <div class="md-header__title" data-md-component="header-title">
+ <div class="md-header__ellipsis">
+ <div class="md-header__topic">
+ <span class="md-ellipsis">
+ FreeType-2.11.1 API Reference
+ </span>
+ </div>
+ <div class="md-header__topic" data-md-component="header-topic">
+ <span class="md-ellipsis">
+
+ Base Interface
+
+ </span>
</div>
</div>
- <div class="md-flex__cell md-flex__cell--shrink">
-
- <label class="md-icon md-icon--search md-header-nav__button" for="__search"></label>
-
+ </div>
+
+
+
+ <label class="md-header__button md-icon" for="__search">
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M9.5 3A6.5 6.5 0 0 1 16 9.5c0 1.61-.59 3.09-1.56 4.23l.27.27h.79l5 5-1.5 1.5-5-5v-.79l-.27-.27A6.516 6.516 0 0 1 9.5 16 6.5 6.5 0 0 1 3 9.5 6.5 6.5 0 0 1 9.5 3m0 2C7 5 5 7 5 9.5S7 14 9.5 14 14 12 14 9.5 12 5 9.5 5z"/></svg>
+ </label>
+
<div class="md-search" data-md-component="search" role="dialog">
<label class="md-search__overlay" for="__search"></label>
<div class="md-search__inner" role="search">
<form class="md-search__form" name="search">
- <input type="text" class="md-search__input" aria-label="search" name="query" placeholder="Search" autocapitalize="off" autocorrect="off" autocomplete="off" spellcheck="false" data-md-component="query" data-md-state="active">
- <label class="md-icon md-search__icon" for="__search"></label>
- <button type="reset" class="md-icon md-search__icon" data-md-component="reset" tabindex="-1">
- &#xE5CD;
+ <input type="text" class="md-search__input" name="query" aria-label="Search" placeholder="Search" autocapitalize="off" autocorrect="off" autocomplete="off" spellcheck="false" data-md-component="search-query" data-md-state="active" required>
+ <label class="md-search__icon md-icon" for="__search">
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M9.5 3A6.5 6.5 0 0 1 16 9.5c0 1.61-.59 3.09-1.56 4.23l.27.27h.79l5 5-1.5 1.5-5-5v-.79l-.27-.27A6.516 6.516 0 0 1 9.5 16 6.5 6.5 0 0 1 3 9.5 6.5 6.5 0 0 1 9.5 3m0 2C7 5 5 7 5 9.5S7 14 9.5 14 14 12 14 9.5 12 5 9.5 5z"/></svg>
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M20 11v2H8l5.5 5.5-1.42 1.42L4.16 12l7.92-7.92L13.5 5.5 8 11h12z"/></svg>
+ </label>
+ <button type="reset" class="md-search__icon md-icon" aria-label="Clear" tabindex="-1">
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z"/></svg>
</button>
</form>
<div class="md-search__output">
<div class="md-search__scrollwrap" data-md-scrollfix>
- <div class="md-search-result" data-md-component="result">
+ <div class="md-search-result" data-md-component="search-result">
<div class="md-search-result__meta">
- Type to start searching
+ Initializing search
</div>
<ol class="md-search-result__list"></ol>
</div>
@@ -147,33 +138,35 @@
</div>
</div>
</div>
-
- </div>
-
- </div>
+
+
</nav>
</header>
- <div class="md-container">
+ <div class="md-container" data-md-component="container">
-
+
- <main class="md-main" role="main">
- <div class="md-main__inner md-grid" data-md-component="container">
+ <main class="md-main" data-md-component="main">
+ <div class="md-main__inner md-grid">
- <div class="md-sidebar md-sidebar--primary" data-md-component="navigation">
+
+ <div class="md-sidebar md-sidebar--primary" data-md-component="sidebar" data-md-type="navigation" >
<div class="md-sidebar__scrollwrap">
<div class="md-sidebar__inner">
- <nav class="md-nav md-nav--primary" data-md-level="0">
- <label class="md-nav__title md-nav__title--site" for="__drawer">
- <a href="." title="FreeType-2.10.4 API Reference" class="md-nav__button md-logo">
-
- <img alt="logo" src="images/favico.ico" width="48" height="48">
+
+
+
+<nav class="md-nav md-nav--primary" aria-label="Navigation" data-md-level="0">
+ <label class="md-nav__title" for="__drawer">
+ <a href="index.html" title="FreeType-2.11.1 API Reference" class="md-nav__button md-logo" aria-label="FreeType-2.11.1 API Reference" data-md-component="logo">
+ <img src="images/favico.ico" alt="logo">
+
</a>
- FreeType-2.10.4 API Reference
+ FreeType-2.11.1 API Reference
</label>
<ul class="md-nav__list" data-md-scrollfix>
@@ -182,72 +175,96 @@
-
- <li class="md-nav__item">
- <a href="index.html" title="TOC" class="md-nav__link">
- TOC
- </a>
- </li>
+
+
+
+ <li class="md-nav__item">
+ <a href="index.html" class="md-nav__link">
+ TOC
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-index.html" title="Index" class="md-nav__link">
- Index
- </a>
- </li>
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-index.html" class="md-nav__link">
+ Index
+ </a>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-3" type="checkbox" id="nav-3">
+
+
+
- <label class="md-nav__link" for="nav-3">
- General Remarks
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-3">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_3" type="checkbox" id="__nav_3" >
+
+ <label class="md-nav__link" for="__nav_3">
General Remarks
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
-
-
+ <nav class="md-nav" aria-label="General Remarks" data-md-level="1">
+ <label class="md-nav__title" for="__nav_3">
+ <span class="md-nav__icon md-icon"></span>
+ General Remarks
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-preamble.html" class="md-nav__link">
+ Preamble
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-header_inclusion.html" title="FreeType's header inclusion scheme" class="md-nav__link">
- FreeType's header inclusion scheme
- </a>
- </li>
-
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-header_inclusion.html" class="md-nav__link">
+ FreeType's header inclusion scheme
+ </a>
+ </li>
+
+
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-user_allocation.html" class="md-nav__link">
+ User allocation
+ </a>
+ </li>
+
- <li class="md-nav__item">
- <a href="ft2-user_allocation.html" title="User allocation" class="md-nav__link">
- User allocation
- </a>
- </li>
-
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
@@ -255,77 +272,87 @@
-
-
- <li class="md-nav__item md-nav__item--active md-nav__item--nested">
+
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-4" type="checkbox" id="nav-4" checked>
+
+
- <label class="md-nav__link" for="nav-4">
- Core API
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-4">
+ <li class="md-nav__item md-nav__item--active md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_4" type="checkbox" id="__nav_4" checked>
+
+ <label class="md-nav__link" for="__nav_4">
Core API
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
+ <nav class="md-nav" aria-label="Core API" data-md-level="1">
+ <label class="md-nav__title" for="__nav_4">
+ <span class="md-nav__icon md-icon"></span>
+ Core API
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-version.html" title="FreeType Version" class="md-nav__link">
- FreeType Version
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-version.html" class="md-nav__link">
+ FreeType Version
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-basic_types.html" title="Basic Data Types" class="md-nav__link">
- Basic Data Types
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-basic_types.html" class="md-nav__link">
+ Basic Data Types
+ </a>
+ </li>
+
-
-
-
-
+
+
-
-
- <li class="md-nav__item md-nav__item--active">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="toc" type="checkbox" id="__toc">
+
+
+ <li class="md-nav__item md-nav__item--active">
-
-
- <label class="md-nav__link md-nav__link--active" for="__toc">
+ <input class="md-nav__toggle md-toggle" data-md-toggle="toc" type="checkbox" id="__toc">
+
+
+
+
+
+ <label class="md-nav__link md-nav__link--active" for="__toc">
+ Base Interface
+ <span class="md-nav__icon md-icon"></span>
+ </label>
+
+ <a href="ft2-base_interface.html" class="md-nav__link md-nav__link--active">
Base Interface
- </label>
-
- <a href="ft2-base_interface.html" title="Base Interface" class="md-nav__link md-nav__link--active">
- Base Interface
- </a>
-
+ </a>
-<nav class="md-nav md-nav--secondary">
+
+<nav class="md-nav md-nav--secondary" aria-label="Table of contents">
+
- <label class="md-nav__title" for="__toc">Table of contents</label>
- <ul class="md-nav__list" data-md-scrollfix>
+ <label class="md-nav__title" for="__toc">
+ <span class="md-nav__icon md-icon"></span>
+ Table of contents
+ </label>
+ <ul class="md-nav__list" data-md-component="toc" data-md-scrollfix>
<li class="md-nav__item">
<a href="#synopsis" class="md-nav__link">
@@ -671,6 +698,13 @@
</li>
<li class="md-nav__item">
+ <a href="#ft_get_transform" class="md-nav__link">
+ FT_Get_Transform
+ </a>
+
+</li>
+
+ <li class="md-nav__item">
<a href="#ft_load_glyph" class="md-nav__link">
FT_Load_Glyph
</a>
@@ -887,692 +921,738 @@
</li>
-
-
-
-
</ul>
</nav>
-
- </li>
+
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-glyph_variants.html" title="Unicode Variation Sequences" class="md-nav__link">
- Unicode Variation Sequences
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-glyph_variants.html" class="md-nav__link">
+ Unicode Variation Sequences
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-color_management.html" class="md-nav__link">
+ Glyph Color Management
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-color_management.html" title="Glyph Color Management" class="md-nav__link">
- Glyph Color Management
- </a>
- </li>
-
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-layer_management.html" class="md-nav__link">
+ Glyph Layer Management
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-layer_management.html" title="Glyph Layer Management" class="md-nav__link">
- Glyph Layer Management
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-glyph_management.html" title="Glyph Management" class="md-nav__link">
- Glyph Management
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-glyph_management.html" class="md-nav__link">
+ Glyph Management
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-mac_specific.html" title="Mac Specific Interface" class="md-nav__link">
- Mac Specific Interface
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-mac_specific.html" class="md-nav__link">
+ Mac Specific Interface
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-sizes_management.html" title="Size Management" class="md-nav__link">
- Size Management
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-sizes_management.html" class="md-nav__link">
+ Size Management
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-header_file_macros.html" title="Header File Macros" class="md-nav__link">
- Header File Macros
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-header_file_macros.html" class="md-nav__link">
+ Header File Macros
+ </a>
+ </li>
+
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-5" type="checkbox" id="nav-5">
+
+
+
- <label class="md-nav__link" for="nav-5">
- Format-Specific API
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-5">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_5" type="checkbox" id="__nav_5" >
+
+ <label class="md-nav__link" for="__nav_5">
Format-Specific API
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
+ <nav class="md-nav" aria-label="Format-Specific API" data-md-level="1">
+ <label class="md-nav__title" for="__nav_5">
+ <span class="md-nav__icon md-icon"></span>
+ Format-Specific API
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-multiple_masters.html" title="Multiple Masters" class="md-nav__link">
- Multiple Masters
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-multiple_masters.html" class="md-nav__link">
+ Multiple Masters
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-truetype_tables.html" title="TrueType Tables" class="md-nav__link">
- TrueType Tables
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-truetype_tables.html" class="md-nav__link">
+ TrueType Tables
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-type1_tables.html" title="Type 1 Tables" class="md-nav__link">
- Type 1 Tables
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-type1_tables.html" class="md-nav__link">
+ Type 1 Tables
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-sfnt_names.html" title="SFNT Names" class="md-nav__link">
- SFNT Names
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-sfnt_names.html" class="md-nav__link">
+ SFNT Names
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-bdf_fonts.html" title="BDF and PCF Files" class="md-nav__link">
- BDF and PCF Files
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-bdf_fonts.html" class="md-nav__link">
+ BDF and PCF Files
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-cid_fonts.html" class="md-nav__link">
+ CID Fonts
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-cid_fonts.html" title="CID Fonts" class="md-nav__link">
- CID Fonts
- </a>
- </li>
-
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-pfr_fonts.html" class="md-nav__link">
+ PFR Fonts
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-pfr_fonts.html" title="PFR Fonts" class="md-nav__link">
- PFR Fonts
- </a>
- </li>
-
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-winfnt_fonts.html" class="md-nav__link">
+ Window FNT Files
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-winfnt_fonts.html" title="Window FNT Files" class="md-nav__link">
- Window FNT Files
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-font_formats.html" title="Font Formats" class="md-nav__link">
- Font Formats
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-font_formats.html" class="md-nav__link">
+ Font Formats
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-gasp_table.html" title="Gasp Table" class="md-nav__link">
- Gasp Table
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-gasp_table.html" class="md-nav__link">
+ Gasp Table
+ </a>
+ </li>
+
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-6" type="checkbox" id="nav-6">
+
+
+
- <label class="md-nav__link" for="nav-6">
- Controlling FreeType Modules
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-6">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_6" type="checkbox" id="__nav_6" >
+
+ <label class="md-nav__link" for="__nav_6">
Controlling FreeType Modules
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
-
+ <nav class="md-nav" aria-label="Controlling FreeType Modules" data-md-level="1">
+ <label class="md-nav__title" for="__nav_6">
+ <span class="md-nav__icon md-icon"></span>
+ Controlling FreeType Modules
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
-
-
-
- <li class="md-nav__item">
- <a href="ft2-auto_hinter.html" title="The auto-hinter" class="md-nav__link">
- The auto-hinter
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-auto_hinter.html" class="md-nav__link">
+ The auto-hinter
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-cff_driver.html" title="The CFF driver" class="md-nav__link">
- The CFF driver
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-cff_driver.html" class="md-nav__link">
+ The CFF driver
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-t1_cid_driver.html" title="The Type 1 and CID drivers" class="md-nav__link">
- The Type 1 and CID drivers
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-t1_cid_driver.html" class="md-nav__link">
+ The Type 1 and CID drivers
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-tt_driver.html" title="The TrueType driver" class="md-nav__link">
- The TrueType driver
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-tt_driver.html" class="md-nav__link">
+ The TrueType driver
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-pcf_driver.html" class="md-nav__link">
+ The PCF driver
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-pcf_driver.html" title="The PCF driver" class="md-nav__link">
- The PCF driver
- </a>
- </li>
-
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-properties.html" class="md-nav__link">
+ Driver properties
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-properties.html" title="Driver properties" class="md-nav__link">
- Driver properties
- </a>
- </li>
-
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-parameter_tags.html" class="md-nav__link">
+ Parameter Tags
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-parameter_tags.html" title="Parameter Tags" class="md-nav__link">
- Parameter Tags
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-lcd_rendering.html" title="Subpixel Rendering" class="md-nav__link">
- Subpixel Rendering
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-lcd_rendering.html" class="md-nav__link">
+ Subpixel Rendering
+ </a>
+ </li>
+
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-7" type="checkbox" id="nav-7">
+
+
+
- <label class="md-nav__link" for="nav-7">
- Cache Sub-System
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-7">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_7" type="checkbox" id="__nav_7" >
+
+ <label class="md-nav__link" for="__nav_7">
Cache Sub-System
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
-
+ <nav class="md-nav" aria-label="Cache Sub-System" data-md-level="1">
+ <label class="md-nav__title" for="__nav_7">
+ <span class="md-nav__icon md-icon"></span>
+ Cache Sub-System
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
-
-
-
- <li class="md-nav__item">
- <a href="ft2-cache_subsystem.html" title="Cache Sub-System" class="md-nav__link">
- Cache Sub-System
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-cache_subsystem.html" class="md-nav__link">
+ Cache Sub-System
+ </a>
+ </li>
+
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-8" type="checkbox" id="nav-8">
+
+
+
- <label class="md-nav__link" for="nav-8">
- Support API
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-8">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_8" type="checkbox" id="__nav_8" >
+
+ <label class="md-nav__link" for="__nav_8">
Support API
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
-
+ <nav class="md-nav" aria-label="Support API" data-md-level="1">
+ <label class="md-nav__title" for="__nav_8">
+ <span class="md-nav__icon md-icon"></span>
+ Support API
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
-
-
-
- <li class="md-nav__item">
- <a href="ft2-computations.html" title="Computations" class="md-nav__link">
- Computations
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-computations.html" class="md-nav__link">
+ Computations
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-list_processing.html" title="List Processing" class="md-nav__link">
- List Processing
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-list_processing.html" class="md-nav__link">
+ List Processing
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-outline_processing.html" title="Outline Processing" class="md-nav__link">
- Outline Processing
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-outline_processing.html" class="md-nav__link">
+ Outline Processing
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-quick_advance.html" title="Quick retrieval of advance values" class="md-nav__link">
- Quick retrieval of advance values
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-quick_advance.html" class="md-nav__link">
+ Quick retrieval of advance values
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-bitmap_handling.html" title="Bitmap Handling" class="md-nav__link">
- Bitmap Handling
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-bitmap_handling.html" class="md-nav__link">
+ Bitmap Handling
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-raster.html" title="Scanline Converter" class="md-nav__link">
- Scanline Converter
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-raster.html" class="md-nav__link">
+ Scanline Converter
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-glyph_stroker.html" class="md-nav__link">
+ Glyph Stroker
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-glyph_stroker.html" title="Glyph Stroker" class="md-nav__link">
- Glyph Stroker
- </a>
- </li>
-
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-system_interface.html" class="md-nav__link">
+ System Interface
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-system_interface.html" title="System Interface" class="md-nav__link">
- System Interface
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-module_management.html" title="Module Management" class="md-nav__link">
- Module Management
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-module_management.html" class="md-nav__link">
+ Module Management
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-gzip.html" title="GZIP Streams" class="md-nav__link">
- GZIP Streams
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-gzip.html" class="md-nav__link">
+ GZIP Streams
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-lzw.html" title="LZW Streams" class="md-nav__link">
- LZW Streams
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-lzw.html" class="md-nav__link">
+ LZW Streams
+ </a>
+ </li>
+
-
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-bzip2.html" class="md-nav__link">
+ BZIP2 Streams
+ </a>
+ </li>
+
- <li class="md-nav__item">
- <a href="ft2-bzip2.html" title="BZIP2 Streams" class="md-nav__link">
- BZIP2 Streams
- </a>
- </li>
+
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-debugging_apis.html" class="md-nav__link">
+ External Debugging APIs
+ </a>
+ </li>
+
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-9" type="checkbox" id="nav-9">
+
+
+
- <label class="md-nav__link" for="nav-9">
- Error Codes
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-9">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_9" type="checkbox" id="__nav_9" >
+
+ <label class="md-nav__link" for="__nav_9">
Error Codes
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
-
+ <nav class="md-nav" aria-label="Error Codes" data-md-level="1">
+ <label class="md-nav__title" for="__nav_9">
+ <span class="md-nav__icon md-icon"></span>
+ Error Codes
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
-
-
-
- <li class="md-nav__item">
- <a href="ft2-error_enumerations.html" title="Error Enumerations" class="md-nav__link">
- Error Enumerations
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-error_enumerations.html" class="md-nav__link">
+ Error Enumerations
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-error_code_values.html" title="Error Code Values" class="md-nav__link">
- Error Code Values
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-error_code_values.html" class="md-nav__link">
+ Error Code Values
+ </a>
+ </li>
+
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-10" type="checkbox" id="nav-10">
+
+
+
- <label class="md-nav__link" for="nav-10">
- Miscellaneous
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-10">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_10" type="checkbox" id="__nav_10" >
+
+ <label class="md-nav__link" for="__nav_10">
Miscellaneous
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
-
+ <nav class="md-nav" aria-label="Miscellaneous" data-md-level="1">
+ <label class="md-nav__title" for="__nav_10">
+ <span class="md-nav__icon md-icon"></span>
+ Miscellaneous
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
-
-
-
- <li class="md-nav__item">
- <a href="ft2-gx_validation.html" title="TrueTypeGX/AAT Validation" class="md-nav__link">
- TrueTypeGX/AAT Validation
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-gx_validation.html" class="md-nav__link">
+ TrueTypeGX/AAT Validation
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-incremental.html" title="Incremental Loading" class="md-nav__link">
- Incremental Loading
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-incremental.html" class="md-nav__link">
+ Incremental Loading
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-truetype_engine.html" title="The TrueType Engine" class="md-nav__link">
- The TrueType Engine
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-truetype_engine.html" class="md-nav__link">
+ The TrueType Engine
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-ot_validation.html" title="OpenType Validation" class="md-nav__link">
- OpenType Validation
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-ot_validation.html" class="md-nav__link">
+ OpenType Validation
+ </a>
+ </li>
+
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
</ul>
@@ -1582,18 +1662,23 @@
</div>
- <div class="md-sidebar md-sidebar--secondary" data-md-component="toc">
+
+ <div class="md-sidebar md-sidebar--secondary" data-md-component="sidebar" data-md-type="toc" >
<div class="md-sidebar__scrollwrap">
<div class="md-sidebar__inner">
-<nav class="md-nav md-nav--secondary">
+<nav class="md-nav md-nav--secondary" aria-label="Table of contents">
+
- <label class="md-nav__title" for="__toc">Table of contents</label>
- <ul class="md-nav__list" data-md-scrollfix>
+ <label class="md-nav__title" for="__toc">
+ <span class="md-nav__icon md-icon"></span>
+ Table of contents
+ </label>
+ <ul class="md-nav__list" data-md-component="toc" data-md-scrollfix>
<li class="md-nav__item">
<a href="#synopsis" class="md-nav__link">
@@ -1939,6 +2024,13 @@
</li>
<li class="md-nav__item">
+ <a href="#ft_get_transform" class="md-nav__link">
+ FT_Get_Transform
+ </a>
+
+</li>
+
+ <li class="md-nav__item">
<a href="#ft_load_glyph" class="md-nav__link">
FT_Load_Glyph
</a>
@@ -2155,10 +2247,6 @@
</li>
-
-
-
-
</ul>
</nav>
@@ -2167,7 +2255,7 @@
</div>
- <div class="md-content">
+ <div class="md-content" data-md-component="content">
<article class="md-content__inner md-typeset">
@@ -2312,7 +2400,6 @@
<p>Despite the name, this enumeration lists specific character repertories (i.e., charsets), and not text encoding methods (e.g., UTF-8, UTF-16, etc.).</p>
<p>Other encodings might be defined in the future.</p>
<h4>values</h4>
-
<table class="fields long">
<tr><td class="val" id="ft_encoding_none">FT_ENCODING_NONE</td><td class="desc">
<p>The encoding value&nbsp;0 is reserved for all formats except BDF, PCF, and Windows FNT; see below for more information.</p>
@@ -2377,7 +2464,8 @@
<h4>note</h4>
-<p>By default, FreeType enables a Unicode charmap and tags it with <code>FT_ENCODING_UNICODE</code> when it is either provided or can be generated from PostScript glyph name dictionaries in the font file. All other encodings are considered legacy and tagged only if explicitly defined in the font file. Otherwise, <code>FT_ENCODING_NONE</code> is used.</p>
+<p>When loading a font, FreeType makes a Unicode charmap active if possible (either if the font provides such a charmap, or if FreeType can synthesize one from PostScript glyph name dictionaries; in either case, the charmap is tagged with <code>FT_ENCODING_UNICODE</code>). If such a charmap is synthesized, it is placed at the first position of the charmap array.</p>
+<p>All other encodings are considered legacy and tagged only if explicitly defined in the font file. Otherwise, <code>FT_ENCODING_NONE</code> is used.</p>
<p><code>FT_ENCODING_NONE</code> is set by the BDF and PCF drivers if the charmap is neither Unicode nor ISO-8859-1 (otherwise it is set to <code>FT_ENCODING_UNICODE</code>). Use <code><a href="ft2-bdf_fonts.html#ft_get_bdf_charset_id">FT_Get_BDF_Charset_ID</a></code> to find out which encoding is really present. If, for example, the <code>cs_registry</code> field is &lsquo;KOI8&rsquo; and the <code>cs_encoding</code> field is &lsquo;R&rsquo;, the font is encoded in KOI8-R.</p>
<p><code>FT_ENCODING_NONE</code> is always set (with a single exception) by the winfonts driver. Use <code><a href="ft2-winfnt_fonts.html#ft_get_winfnt_header">FT_Get_WinFNT_Header</a></code> and examine the <code>charset</code> field of the <code><a href="ft2-winfnt_fonts.html#ft_winfnt_headerrec">FT_WinFNT_HeaderRec</a></code> structure to find out which encoding is really present. For example, <code><a href="ft2-winfnt_fonts.html#ft_winfnt_id_xxx">FT_WinFNT_ID_CP1251</a></code> (204) means Windows code page 1251 (for Russian).</p>
<p><code>FT_ENCODING_NONE</code> is set if <code>platform_id</code> is <code><a href="ft2-truetype_tables.html#tt_platform_xxx">TT_PLATFORM_MACINTOSH</a></code> and <code>encoding_id</code> is not <code>TT_MAC_ID_ROMAN</code> (otherwise it is set to <code>FT_ENCODING_APPLE_ROMAN</code>).</p>
@@ -2389,11 +2477,12 @@
<h2 id="ft_enc_tag">FT_ENC_TAG<a class="headerlink" href="#ft_enc_tag" title="Permanent link">&para;</a></h2>
<p>Defined in FT_FREETYPE_H (freetype/freetype.h).</p>
<div class = "codehilite"><pre><code>#<span class="keyword">ifndef</span> <b>FT_ENC_TAG</b>
-#<span class="keyword">define</span> <b>FT_ENC_TAG</b>( value, a, b, c, d ) \
- value = ( ( (<a href="ft2-basic_types.html#ft_uint32">FT_UInt32</a>)(a) &lt;&lt; 24 ) | \
- ( (<a href="ft2-basic_types.html#ft_uint32">FT_UInt32</a>)(b) &lt;&lt; 16 ) | \
- ( (<a href="ft2-basic_types.html#ft_uint32">FT_UInt32</a>)(c) &lt;&lt; 8 ) | \
- (<a href="ft2-basic_types.html#ft_uint32">FT_UInt32</a>)(d) )
+
+#<span class="keyword">define</span> <b>FT_ENC_TAG</b>( value, a, b, c, d ) \
+ value = ( ( FT_STATIC_BYTE_CAST( <a href="ft2-basic_types.html#ft_uint32">FT_UInt32</a>, a ) &lt;&lt; 24 ) | \
+ ( FT_STATIC_BYTE_CAST( <a href="ft2-basic_types.html#ft_uint32">FT_UInt32</a>, b ) &lt;&lt; 16 ) | \
+ ( FT_STATIC_BYTE_CAST( <a href="ft2-basic_types.html#ft_uint32">FT_UInt32</a>, c ) &lt;&lt; 8 ) | \
+ FT_STATIC_BYTE_CAST( <a href="ft2-basic_types.html#ft_uint32">FT_UInt32</a>, d ) )
#<span class="keyword">endif</span> /* <b>FT_ENC_TAG</b> */
</code></pre></div>
@@ -2470,7 +2559,6 @@
<p>FreeType root face class structure. A face object models a typeface in a font file.</p>
<h4>fields</h4>
-
<table class="fields">
<tr><td class="val" id="num_faces">num_faces</td><td class="desc">
<p>The number of faces in the font file. Some font formats can have multiple faces in a single font file.</p>
@@ -2718,7 +2806,6 @@
<p>FreeType root size class structure. A size object models a face object at a given size.</p>
<h4>fields</h4>
-
<table class="fields">
<tr><td class="val" id="face">face</td><td class="desc">
<p>Handle to the parent face object.</p>
@@ -2753,7 +2840,6 @@
<p>The size metrics structure gives the metrics of a size object.</p>
<h4>fields</h4>
-
<table class="fields">
<tr><td class="val" id="x_ppem">x_ppem</td><td class="desc">
<p>The width of the scaled EM square in pixels, hence the term &lsquo;ppem&rsquo; (pixels per EM). It is also referred to as &lsquo;nominal width&rsquo;.</p>
@@ -2856,7 +2942,6 @@
<p>FreeType root glyph slot class structure. A glyph slot is a container where individual glyphs can be loaded, be they in outline or bitmap format.</p>
<h4>fields</h4>
-
<table class="fields">
<tr><td class="val" id="library">library</td><td class="desc">
<p>A handle to the FreeType library instance this slot belongs to.</p>
@@ -2997,7 +3082,6 @@
<p>A structure to model the metrics of a single glyph. The values are expressed in 26.6 fractional pixel format; if the flag <code><a href="ft2-base_interface.html#ft_load_xxx">FT_LOAD_NO_SCALE</a></code> has been used while loading the glyph, values are expressed in font units instead.</p>
<h4>fields</h4>
-
<table class="fields">
<tr><td class="val" id="width">width</td><td class="desc">
<p>The glyph's width.</p>
@@ -3061,7 +3145,6 @@
<p>This structure models the metrics of a bitmap strike (i.e., a set of glyphs for a given point size and resolution) in a bitmap font. It is used for the <code>available_sizes</code> field of <code><a href="ft2-base_interface.html#ft_face">FT_Face</a></code>.</p>
<h4>fields</h4>
-
<table class="fields">
<tr><td class="val" id="height">height</td><td class="desc">
<p>The vertical distance, in pixels, between two consecutive baselines. It is always positive.</p>
@@ -3094,7 +3177,6 @@
<p>Initialize a new FreeType library object. The set of modules that are registered by this function is determined at build time.</p>
<h4>output</h4>
-
<table class="fields">
<tr><td class="val" id="alibrary">alibrary</td><td class="desc">
<p>A handle to a new library object.</p>
@@ -3120,7 +3202,6 @@
<p>Destroy a given FreeType library object and all of its children, including resources, drivers, faces, sizes, etc.</p>
<h4>input</h4>
-
<table class="fields">
<tr><td class="val" id="library">library</td><td class="desc">
<p>A handle to the target library object.</p>
@@ -3143,7 +3224,6 @@
<p>Call <code><a href="ft2-base_interface.html#ft_open_face">FT_Open_Face</a></code> to open a font by its pathname.</p>
<h4>inout</h4>
-
<table class="fields">
<tr><td class="val" id="library">library</td><td class="desc">
<p>A handle to the library resource.</p>
@@ -3151,7 +3231,6 @@
</table>
<h4>input</h4>
-
<table class="fields">
<tr><td class="val" id="pathname">pathname</td><td class="desc">
<p>A path to the font file.</p>
@@ -3162,7 +3241,6 @@
</table>
<h4>output</h4>
-
<table class="fields">
<tr><td class="val" id="aface">aface</td><td class="desc">
<p>A handle to a new face object. If <code>face_index</code> is greater than or equal to zero, it must be non-<code>NULL</code>.</p>
@@ -3174,6 +3252,7 @@
<p>FreeType error code. 0&nbsp;means success.</p>
<h4>note</h4>
+<p>The <code>pathname</code> string should be recognizable as such by a standard <code>fopen</code> call on your system; in particular, this means that <code>pathname</code> must not contain null bytes. If that is not sufficient to address all file name possibilities (for example, to handle wide character file names on Windows in UTF-16 encoding) you might use <code><a href="ft2-base_interface.html#ft_open_face">FT_Open_Face</a></code> to pass a memory array or a stream object instead.</p>
<p>Use <code><a href="ft2-base_interface.html#ft_done_face">FT_Done_Face</a></code> to destroy the created <code><a href="ft2-base_interface.html#ft_face">FT_Face</a></code> object (along with its slot and sizes).</p>
<hr>
@@ -3185,7 +3264,6 @@
<p>Discard a given face object, as well as all of its child slots and sizes.</p>
<h4>input</h4>
-
<table class="fields">
<tr><td class="val" id="face">face</td><td class="desc">
<p>A handle to a target face object.</p>
@@ -3209,7 +3287,6 @@
<p>A counter gets initialized to&nbsp;1 at the time an <code><a href="ft2-base_interface.html#ft_face">FT_Face</a></code> structure is created. This function increments the counter. <code><a href="ft2-base_interface.html#ft_done_face">FT_Done_Face</a></code> then only destroys a face if the counter is&nbsp;1, otherwise it simply decrements the counter.</p>
<p>This function helps in managing life-cycles of structures that reference <code><a href="ft2-base_interface.html#ft_face">FT_Face</a></code> objects.</p>
<h4>input</h4>
-
<table class="fields">
<tr><td class="val" id="face">face</td><td class="desc">
<p>A handle to a target face object.</p>
@@ -3236,7 +3313,6 @@
<p>Call <code><a href="ft2-base_interface.html#ft_open_face">FT_Open_Face</a></code> to open a font that has been loaded into memory.</p>
<h4>inout</h4>
-
<table class="fields">
<tr><td class="val" id="library">library</td><td class="desc">
<p>A handle to the library resource.</p>
@@ -3244,7 +3320,6 @@
</table>
<h4>input</h4>
-
<table class="fields">
<tr><td class="val" id="file_base">file_base</td><td class="desc">
<p>A pointer to the beginning of the font data.</p>
@@ -3258,7 +3333,6 @@
</table>
<h4>output</h4>
-
<table class="fields">
<tr><td class="val" id="aface">aface</td><td class="desc">
<p>A handle to a new face object. If <code>face_index</code> is greater than or equal to zero, it must be non-<code>NULL</code>.</p>
@@ -3296,7 +3370,6 @@
</ul>
<p>Pass <code>NULL</code> as <code>data</code> in <code><a href="ft2-base_interface.html#ft_parameter">FT_Parameter</a></code> for a given tag to reset the option and use the library or module default again.</p>
<h4>input</h4>
-
<table class="fields">
<tr><td class="val" id="face">face</td><td class="desc">
<p>A handle to the source face object.</p>
@@ -3366,7 +3439,6 @@
<p>Create a face object from a given resource described by <code><a href="ft2-base_interface.html#ft_open_args">FT_Open_Args</a></code>.</p>
<h4>inout</h4>
-
<table class="fields">
<tr><td class="val" id="library">library</td><td class="desc">
<p>A handle to the library resource.</p>
@@ -3374,7 +3446,6 @@
</table>
<h4>input</h4>
-
<table class="fields">
<tr><td class="val" id="args">args</td><td class="desc">
<p>A pointer to an <code>FT_Open_Args</code> structure that must be filled by the caller.</p>
@@ -3387,7 +3458,6 @@
</table>
<h4>output</h4>
-
<table class="fields">
<tr><td class="val" id="aface">aface</td><td class="desc">
<p>A handle to a new face object. If <code>face_index</code> is greater than or equal to zero, it must be non-<code>NULL</code>.</p>
@@ -3403,6 +3473,7 @@
<p>Each new face object created with this function also owns a default <code><a href="ft2-base_interface.html#ft_size">FT_Size</a></code> object, accessible as <code>face-&gt;size</code>.</p>
<p>One <code><a href="ft2-base_interface.html#ft_library">FT_Library</a></code> instance can have multiple face objects, this is, <code><a href="ft2-base_interface.html#ft_open_face">FT_Open_Face</a></code> and its siblings can be called multiple times using the same <code>library</code> argument.</p>
<p>See the discussion of reference counters in the description of <code><a href="ft2-base_interface.html#ft_reference_face">FT_Reference_Face</a></code>.</p>
+<p>If <code>FT_OPEN_STREAM</code> is set in <code>args-&gt;flags</code>, the stream in <code>args-&gt;stream</code> is automatically closed before this function returns any error (including <code>FT_Err_Invalid_Argument</code>).</p>
<h4>example</h4>
<p>To loop over all faces, use code similar to the following snippet (omitting the error handling).
@@ -3482,7 +3553,6 @@
<p>A structure to indicate how to open a new font file or stream. A pointer to such a structure can be used as a parameter for the functions <code><a href="ft2-base_interface.html#ft_open_face">FT_Open_Face</a></code> and <code><a href="ft2-base_interface.html#ft_attach_stream">FT_Attach_Stream</a></code>.</p>
<h4>fields</h4>
-
<table class="fields">
<tr><td class="val" id="flags">flags</td><td class="desc">
<p>A set of bit flags indicating how to use the structure.</p>
@@ -3494,7 +3564,7 @@
<p>The size in bytes of the file in memory.</p>
</td></tr>
<tr><td class="val" id="pathname">pathname</td><td class="desc">
-<p>A pointer to an 8-bit file pathname. The pointer is not owned by FreeType.</p>
+<p>A pointer to an 8-bit file pathname, which must be a C&nbsp;string (i.e., no null bytes except at the very end). The pointer is not owned by FreeType.</p>
</td></tr>
<tr><td class="val" id="stream">stream</td><td class="desc">
<p>A handle to a source stream object.</p>
@@ -3512,10 +3582,11 @@
<h4>note</h4>
-<p>The stream type is determined by the contents of <code>flags</code> that are tested in the following order by <code><a href="ft2-base_interface.html#ft_open_face">FT_Open_Face</a></code>:</p>
+<p>The stream type is determined by the contents of <code>flags</code>:</p>
<p>If the <code><a href="ft2-base_interface.html#ft_open_xxx">FT_OPEN_MEMORY</a></code> bit is set, assume that this is a memory file of <code>memory_size</code> bytes, located at <code>memory_address</code>. The data are not copied, and the client is responsible for releasing and destroying them <em>after</em> the corresponding call to <code><a href="ft2-base_interface.html#ft_done_face">FT_Done_Face</a></code>.</p>
<p>Otherwise, if the <code><a href="ft2-base_interface.html#ft_open_xxx">FT_OPEN_STREAM</a></code> bit is set, assume that a custom input stream <code>stream</code> is used.</p>
<p>Otherwise, if the <code><a href="ft2-base_interface.html#ft_open_xxx">FT_OPEN_PATHNAME</a></code> bit is set, assume that this is a normal file and use <code>pathname</code> to open it.</p>
+<p>If none of the above bits are set or if multiple are set at the same time, the flags are invalid and <code><a href="ft2-base_interface.html#ft_open_face">FT_Open_Face</a></code> fails.</p>
<p>If the <code><a href="ft2-base_interface.html#ft_open_xxx">FT_OPEN_DRIVER</a></code> bit is set, <code><a href="ft2-base_interface.html#ft_open_face">FT_Open_Face</a></code> only tries to open the file with the driver whose handler is in <code>driver</code>.</p>
<p>If the <code><a href="ft2-base_interface.html#ft_open_xxx">FT_OPEN_PARAMS</a></code> bit is set, the parameters given by <code>num_params</code> and <code>params</code> is used. They are ignored otherwise.</p>
<p>Ideally, both the <code>pathname</code> and <code>params</code> fields should be tagged as &lsquo;const&rsquo;; this is missing for API backward compatibility. In other words, applications should treat them as read-only.</p>
@@ -3533,7 +3604,6 @@
<p>A simple structure to pass more or less generic parameters to <code><a href="ft2-base_interface.html#ft_open_face">FT_Open_Face</a></code> and <code><a href="ft2-base_interface.html#ft_face_properties">FT_Face_Properties</a></code>.</p>
<h4>fields</h4>
-
<table class="fields">
<tr><td class="val" id="tag">tag</td><td class="desc">
<p>A four-byte identification tag.</p>
@@ -3557,7 +3627,6 @@
<p>Call <code><a href="ft2-base_interface.html#ft_attach_stream">FT_Attach_Stream</a></code> to attach a file.</p>
<h4>inout</h4>
-
<table class="fields">
<tr><td class="val" id="face">face</td><td class="desc">
<p>The target face object.</p>
@@ -3565,7 +3634,6 @@
</table>
<h4>input</h4>
-
<table class="fields">
<tr><td class="val" id="filepathname">filepathname</td><td class="desc">
<p>The pathname.</p>
@@ -3586,7 +3654,6 @@
<p>&lsquo;Attach&rsquo; data to a face object. Normally, this is used to read additional information for the face object. For example, you can attach an AFM file that comes with a Type&nbsp;1 font to get the kerning values and other metrics.</p>
<h4>inout</h4>
-
<table class="fields">
<tr><td class="val" id="face">face</td><td class="desc">
<p>The target face object.</p>
@@ -3594,7 +3661,6 @@
</table>
<h4>input</h4>
-
<table class="fields">
<tr><td class="val" id="parameters">parameters</td><td class="desc">
<p>A pointer to <code><a href="ft2-base_interface.html#ft_open_args">FT_Open_Args</a></code> that must be filled by the caller.</p>
@@ -3622,7 +3688,6 @@
<p>Call <code><a href="ft2-base_interface.html#ft_request_size">FT_Request_Size</a></code> to request the nominal size (in points).</p>
<h4>inout</h4>
-
<table class="fields">
<tr><td class="val" id="face">face</td><td class="desc">
<p>A handle to a target face object.</p>
@@ -3630,7 +3695,6 @@
</table>
<h4>input</h4>
-
<table class="fields">
<tr><td class="val" id="char_width">char_width</td><td class="desc">
<p>The nominal width, in 26.6 fractional points.</p>
@@ -3668,7 +3732,6 @@
<p>Call <code><a href="ft2-base_interface.html#ft_request_size">FT_Request_Size</a></code> to request the nominal size (in pixels).</p>
<h4>inout</h4>
-
<table class="fields">
<tr><td class="val" id="face">face</td><td class="desc">
<p>A handle to the target face object.</p>
@@ -3676,7 +3739,6 @@
</table>
<h4>input</h4>
-
<table class="fields">
<tr><td class="val" id="pixel_width">pixel_width</td><td class="desc">
<p>The nominal width, in pixels.</p>
@@ -3704,7 +3766,6 @@
<p>Resize the scale of the active <code><a href="ft2-base_interface.html#ft_size">FT_Size</a></code> object in a face.</p>
<h4>inout</h4>
-
<table class="fields">
<tr><td class="val" id="face">face</td><td class="desc">
<p>A handle to a target face object.</p>
@@ -3712,7 +3773,6 @@
</table>
<h4>input</h4>
-
<table class="fields">
<tr><td class="val" id="req">req</td><td class="desc">
<p>A pointer to a <code><a href="ft2-base_interface.html#ft_size_requestrec">FT_Size_RequestRec</a></code>.</p>
@@ -3739,7 +3799,6 @@
<p>Select a bitmap strike. To be more precise, this function sets the scaling factors of the active <code><a href="ft2-base_interface.html#ft_size">FT_Size</a></code> object in a face so that bitmaps from this particular strike are taken by <code><a href="ft2-base_interface.html#ft_load_glyph">FT_Load_Glyph</a></code> and friends.</p>
<h4>inout</h4>
-
<table class="fields">
<tr><td class="val" id="face">face</td><td class="desc">
<p>A handle to a target face object.</p>
@@ -3747,7 +3806,6 @@
</table>
<h4>input</h4>
-
<table class="fields">
<tr><td class="val" id="strike_index">strike_index</td><td class="desc">
<p>The index of the bitmap strike in the <code>available_sizes</code> field of <code><a href="ft2-base_interface.html#ft_facerec">FT_FaceRec</a></code> structure.</p>
@@ -3781,7 +3839,6 @@
<p>An enumeration type that lists the supported size request types, i.e., what input size (in font units) maps to the requested output size (in pixels, as computed from the arguments of <code><a href="ft2-base_interface.html#ft_size_request">FT_Size_Request</a></code>).</p>
<h4>values</h4>
-
<table class="fields long">
<tr><td class="val" id="ft_size_request_type_nominal">FT_SIZE_REQUEST_TYPE_NOMINAL</td><td class="desc">
<p>The nominal size. The <code>units_per_EM</code> field of <code><a href="ft2-base_interface.html#ft_facerec">FT_FaceRec</a></code> is used to determine both scaling values.</p>
@@ -3822,7 +3879,6 @@
<p>A structure to model a size request.</p>
<h4>fields</h4>
-
<table class="fields">
<tr><td class="val" id="type">type</td><td class="desc">
<p>See <code><a href="ft2-base_interface.html#ft_size_request_type">FT_Size_Request_Type</a></code>.</p>
@@ -3865,7 +3921,6 @@
<p>Set the transformation that is applied to glyph images when they are loaded into a glyph slot through <code><a href="ft2-base_interface.html#ft_load_glyph">FT_Load_Glyph</a></code>.</p>
<h4>inout</h4>
-
<table class="fields">
<tr><td class="val" id="face">face</td><td class="desc">
<p>A handle to the source face object.</p>
@@ -3873,7 +3928,6 @@
</table>
<h4>input</h4>
-
<table class="fields">
<tr><td class="val" id="matrix">matrix</td><td class="desc">
<p>A pointer to the transformation's 2x2 matrix. Use <code>NULL</code> for the identity matrix.</p>
@@ -3885,11 +3939,42 @@
<h4>note</h4>
-<p>This function is provided as a convenience, but keep in mind that <code><a href="ft2-basic_types.html#ft_matrix">FT_Matrix</a></code> coefficients are only 16.16 fixed point values, which can limit the accuracy of the results. Using floating-point computations to perform the transform directly in client code instead will always yield better numbers.</p>
+<p>This function is provided as a convenience, but keep in mind that <code><a href="ft2-basic_types.html#ft_matrix">FT_Matrix</a></code> coefficients are only 16.16 fixed-point values, which can limit the accuracy of the results. Using floating-point computations to perform the transform directly in client code instead will always yield better numbers.</p>
<p>The transformation is only applied to scalable image formats after the glyph has been loaded. It means that hinting is unaltered by the transformation and is performed on the character size given in the last call to <code><a href="ft2-base_interface.html#ft_set_char_size">FT_Set_Char_Size</a></code> or <code><a href="ft2-base_interface.html#ft_set_pixel_sizes">FT_Set_Pixel_Sizes</a></code>.</p>
<p>Note that this also transforms the <code>face.glyph.advance</code> field, but <strong>not</strong> the values in <code>face.glyph.metrics</code>.</p>
<hr>
+<h2 id="ft_get_transform">FT_Get_Transform<a class="headerlink" href="#ft_get_transform" title="Permanent link">&para;</a></h2>
+<p>Defined in FT_FREETYPE_H (freetype/freetype.h).</p>
+<div class = "codehilite"><pre><code> FT_EXPORT( <span class="keyword">void</span> )
+ <b>FT_Get_Transform</b>( <a href="ft2-base_interface.html#ft_face">FT_Face</a> face,
+ <a href="ft2-basic_types.html#ft_matrix">FT_Matrix</a>* matrix,
+ <a href="ft2-basic_types.html#ft_vector">FT_Vector</a>* delta );
+</code></pre></div>
+
+<p>Return the transformation that is applied to glyph images when they are loaded into a glyph slot through <code><a href="ft2-base_interface.html#ft_load_glyph">FT_Load_Glyph</a></code>. See <code><a href="ft2-base_interface.html#ft_set_transform">FT_Set_Transform</a></code> for more details.</p>
+<h4>input</h4>
+<table class="fields">
+<tr><td class="val" id="face">face</td><td class="desc">
+<p>A handle to the source face object.</p>
+</td></tr>
+</table>
+
+<h4>output</h4>
+<table class="fields">
+<tr><td class="val" id="matrix">matrix</td><td class="desc">
+<p>A pointer to a transformation's 2x2 matrix. Set this to NULL if you are not interested in the value.</p>
+</td></tr>
+<tr><td class="val" id="delta">delta</td><td class="desc">
+<p>A pointer a translation vector. Set this to NULL if you are not interested in the value.</p>
+</td></tr>
+</table>
+
+<h4>since</h4>
+
+<p>2.11</p>
+<hr>
+
<h2 id="ft_load_glyph">FT_Load_Glyph<a class="headerlink" href="#ft_load_glyph" title="Permanent link">&para;</a></h2>
<p>Defined in FT_FREETYPE_H (freetype/freetype.h).</p>
<div class = "codehilite"><pre><code> FT_EXPORT( <a href="ft2-basic_types.html#ft_error">FT_Error</a> )
@@ -3900,7 +3985,6 @@
<p>Load a glyph into the glyph slot of a face object.</p>
<h4>inout</h4>
-
<table class="fields">
<tr><td class="val" id="face">face</td><td class="desc">
<p>A handle to the target face object where the glyph is loaded.</p>
@@ -3908,7 +3992,6 @@
</table>
<h4>input</h4>
-
<table class="fields">
<tr><td class="val" id="glyph_index">glyph_index</td><td class="desc">
<p>The index of the glyph in the font file. For CID-keyed fonts (either in PS or in CFF format) this argument specifies the CID value.</p>
@@ -3937,7 +4020,6 @@
<p>Return the glyph index of a given character code. This function uses the currently selected charmap to do the mapping.</p>
<h4>input</h4>
-
<table class="fields">
<tr><td class="val" id="face">face</td><td class="desc">
<p>A handle to the source face object.</p>
@@ -3952,7 +4034,7 @@
<p>The glyph index. 0&nbsp;means &lsquo;undefined character code&rsquo;.</p>
<h4>note</h4>
-<p>If you use FreeType to manipulate the contents of font files directly, be aware that the glyph index returned by this function doesn't always correspond to the internal indices used within the file. This is done to ensure that value&nbsp;0 always corresponds to the &lsquo;missing glyph&rsquo;. If the first glyph is not named &lsquo;.notdef&rsquo;, then for Type&nbsp;1 and Type&nbsp;42 fonts, &lsquo;.notdef&rsquo; will be moved into the glyph ID&nbsp;0 position, and whatever was there will be moved to the position &lsquo;.notdef&rsquo; had. For Type&nbsp;1 fonts, if there is no &lsquo;.notdef&rsquo; glyph at all, then one will be created at index&nbsp;0 and whatever was there will be moved to the last index -- Type&nbsp;42 fonts are considered invalid under this condition.</p>
+<p>If you use FreeType to manipulate the contents of font files directly, be aware that the glyph index returned by this function doesn't always correspond to the internal indices used within the file. This is done to ensure that value&nbsp;0 always corresponds to the &lsquo;missing glyph&rsquo;. If the first glyph is not named &lsquo;.notdef&rsquo;, then for Type&nbsp;1 and Type&nbsp;42 fonts, &lsquo;.notdef&rsquo; will be moved into the glyph ID&nbsp;0 position, and whatever was there will be moved to the position &lsquo;.notdef&rsquo; had. For Type&nbsp;1 fonts, if there is no &lsquo;.notdef&rsquo; glyph at all, then one will be created at index&nbsp;0 and whatever was there will be moved to the last index &ndash; Type&nbsp;42 fonts are considered invalid under this condition.</p>
<hr>
<h2 id="ft_get_first_char">FT_Get_First_Char<a class="headerlink" href="#ft_get_first_char" title="Permanent link">&para;</a></h2>
@@ -3964,7 +4046,6 @@
<p>Return the first character code in the current charmap of a given face, together with its corresponding glyph index.</p>
<h4>input</h4>
-
<table class="fields">
<tr><td class="val" id="face">face</td><td class="desc">
<p>A handle to the source face object.</p>
@@ -3972,7 +4053,6 @@
</table>
<h4>output</h4>
-
<table class="fields">
<tr><td class="val" id="agindex">agindex</td><td class="desc">
<p>Glyph index of first character code. 0&nbsp;if charmap is empty.</p>
@@ -4011,7 +4091,6 @@
<p>Return the next character code in the current charmap of a given face following the value <code>char_code</code>, as well as the corresponding glyph index.</p>
<h4>input</h4>
-
<table class="fields">
<tr><td class="val" id="face">face</td><td class="desc">
<p>A handle to the source face object.</p>
@@ -4022,7 +4101,6 @@
</table>
<h4>output</h4>
-
<table class="fields">
<tr><td class="val" id="agindex">agindex</td><td class="desc">
<p>Glyph index of next character code. 0&nbsp;if charmap is empty.</p>
@@ -4047,7 +4125,6 @@
<p>Return the glyph index of a given glyph name.</p>
<h4>input</h4>
-
<table class="fields">
<tr><td class="val" id="face">face</td><td class="desc">
<p>A handle to the source face object.</p>
@@ -4072,7 +4149,6 @@
<p>Load a glyph into the glyph slot of a face object, accessed by its character code.</p>
<h4>inout</h4>
-
<table class="fields">
<tr><td class="val" id="face">face</td><td class="desc">
<p>A handle to a target face object where the glyph is loaded.</p>
@@ -4080,7 +4156,6 @@
</table>
<h4>input</h4>
-
<table class="fields">
<tr><td class="val" id="char_code">char_code</td><td class="desc">
<p>The glyph's character code, according to the current charmap used in the face.</p>
@@ -4102,7 +4177,8 @@
<h2 id="ft_load_target_mode">FT_LOAD_TARGET_MODE<a class="headerlink" href="#ft_load_target_mode" title="Permanent link">&para;</a></h2>
<p>Defined in FT_FREETYPE_H (freetype/freetype.h).</p>
-<div class = "codehilite"><pre><code>#<span class="keyword">define</span> <b>FT_LOAD_TARGET_MODE</b>( x ) ( (<a href="ft2-base_interface.html#ft_render_mode">FT_Render_Mode</a>)( ( (x) &gt;&gt; 16 ) &amp; 15 ) )
+<div class = "codehilite"><pre><code>#<span class="keyword">define</span> <b>FT_LOAD_TARGET_MODE</b>( x ) \
+ FT_STATIC_CAST( <a href="ft2-base_interface.html#ft_render_mode">FT_Render_Mode</a>, ( (x) &gt;&gt; 16 ) &amp; 15 )
</code></pre></div>
<p>Return the <code><a href="ft2-base_interface.html#ft_render_mode">FT_Render_Mode</a></code> corresponding to a given <code><a href="ft2-base_interface.html#ft_load_target_xxx">FT_LOAD_TARGET_XXX</a></code> value.</p>
@@ -4117,7 +4193,6 @@
<p>Convert a given glyph image to a bitmap. It does so by inspecting the glyph image format, finding the relevant renderer, and invoking it.</p>
<h4>inout</h4>
-
<table class="fields">
<tr><td class="val" id="slot">slot</td><td class="desc">
<p>A handle to the glyph slot containing the image to convert.</p>
@@ -4125,7 +4200,6 @@
</table>
<h4>input</h4>
-
<table class="fields">
<tr><td class="val" id="render_mode">render_mode</td><td class="desc">
<p>The render mode used to render the glyph image into a bitmap. See <code><a href="ft2-base_interface.html#ft_render_mode">FT_Render_Mode</a></code> for a list of possible values.</p>
@@ -4141,12 +4215,12 @@
<p>To get meaningful results, font scaling values must be set with functions like <code><a href="ft2-base_interface.html#ft_set_char_size">FT_Set_Char_Size</a></code> before calling <code>FT_Render_Glyph</code>.</p>
<p>When FreeType outputs a bitmap of a glyph, it really outputs an alpha coverage map. If a pixel is completely covered by a filled-in outline, the bitmap contains 0xFF at that pixel, meaning that 0xFF/0xFF fraction of that pixel is covered, meaning the pixel is 100% black (or 0% bright). If a pixel is only 50% covered (value 0x80), the pixel is made 50% black (50% bright or a middle shade of grey). 0% covered means 0% black (100% bright or white).</p>
<p>On high-DPI screens like on smartphones and tablets, the pixels are so small that their chance of being completely covered and therefore completely black are fairly good. On the low-DPI screens, however, the situation is different. The pixels are too large for most of the details of a glyph and shades of gray are the norm rather than the exception.</p>
-<p>This is relevant because all our screens have a second problem: they are not linear. 1&nbsp;+&nbsp;1 is not&nbsp;2. Twice the value does not result in twice the brightness. When a pixel is only 50% covered, the coverage map says 50% black, and this translates to a pixel value of 128 when you use 8&nbsp;bits per channel (0-255). However, this does not translate to 50% brightness for that pixel on our sRGB and gamma&nbsp;2.2 screens. Due to their non-linearity, they dwell longer in the darks and only a pixel value of about 186 results in 50% brightness -- 128 ends up too dark on both bright and dark backgrounds. The net result is that dark text looks burnt-out, pixely and blotchy on bright background, bright text too frail on dark backgrounds, and colored text on colored background (for example, red on green) seems to have dark halos or &lsquo;dirt&rsquo; around it. The situation is especially ugly for diagonal stems like in &lsquo;w&rsquo; glyph shapes where the quality of FreeType's anti-aliasing depends on the correct display of grays. On high-DPI screens where smaller, fully black pixels reign supreme, this doesn't matter, but on our low-DPI screens with all the gray shades, it does. 0% and 100% brightness are the same things in linear and non-linear space, just all the shades in-between aren't.</p>
+<p>This is relevant because all our screens have a second problem: they are not linear. 1&nbsp;+&nbsp;1 is not&nbsp;2. Twice the value does not result in twice the brightness. When a pixel is only 50% covered, the coverage map says 50% black, and this translates to a pixel value of 128 when you use 8&nbsp;bits per channel (0-255). However, this does not translate to 50% brightness for that pixel on our sRGB and gamma&nbsp;2.2 screens. Due to their non-linearity, they dwell longer in the darks and only a pixel value of about 186 results in 50% brightness &ndash; 128 ends up too dark on both bright and dark backgrounds. The net result is that dark text looks burnt-out, pixely and blotchy on bright background, bright text too frail on dark backgrounds, and colored text on colored background (for example, red on green) seems to have dark halos or &lsquo;dirt&rsquo; around it. The situation is especially ugly for diagonal stems like in &lsquo;w&rsquo; glyph shapes where the quality of FreeType's anti-aliasing depends on the correct display of grays. On high-DPI screens where smaller, fully black pixels reign supreme, this doesn't matter, but on our low-DPI screens with all the gray shades, it does. 0% and 100% brightness are the same things in linear and non-linear space, just all the shades in-between aren't.</p>
<p>The blending function for placing text over a background is
<div class="highlight"><pre><span></span><code> dst = alpha * src + (1 - alpha) * dst ,
</code></pre></div></p>
<p>which is known as the OVER operator.</p>
-<p>To correctly composite an antialiased pixel of a glyph onto a surface,</p>
+<p>To correctly composite an anti-aliased pixel of a glyph onto a surface,</p>
<ol>
<li>
<p>take the foreground and background colors (e.g., in sRGB space) and apply gamma to get them in a linear space,</p>
@@ -4172,6 +4246,7 @@
<a href="ft2-base_interface.html#ft_render_mode_mono">FT_RENDER_MODE_MONO</a>,
<a href="ft2-base_interface.html#ft_render_mode_lcd">FT_RENDER_MODE_LCD</a>,
<a href="ft2-base_interface.html#ft_render_mode_lcd_v">FT_RENDER_MODE_LCD_V</a>,
+ <a href="ft2-base_interface.html#ft_render_mode_sdf">FT_RENDER_MODE_SDF</a>,
FT_RENDER_MODE_MAX
@@ -4187,8 +4262,8 @@
<p>Render modes supported by FreeType&nbsp;2. Each mode corresponds to a specific type of scanline conversion performed on the outline.</p>
<p>For bitmap fonts and embedded bitmaps the <code>bitmap-&gt;pixel_mode</code> field in the <code><a href="ft2-base_interface.html#ft_glyphslotrec">FT_GlyphSlotRec</a></code> structure gives the format of the returned bitmap.</p>
<p>All modes except <code><a href="ft2-base_interface.html#ft_render_mode">FT_RENDER_MODE_MONO</a></code> use 256 levels of opacity, indicating pixel coverage. Use linear alpha blending and gamma correction to correctly render non-monochrome glyph bitmaps onto a surface; see <code><a href="ft2-base_interface.html#ft_render_glyph">FT_Render_Glyph</a></code>.</p>
+<p>The <code><a href="ft2-base_interface.html#ft_render_mode">FT_RENDER_MODE_SDF</a></code> is a special render mode that uses up to 256 distance values, indicating the signed distance from the grid position to the nearest outline.</p>
<h4>values</h4>
-
<table class="fields">
<tr><td class="val" id="ft_render_mode_normal">FT_RENDER_MODE_NORMAL</td><td class="desc">
<p>Default render mode; it corresponds to 8-bit anti-aliased bitmaps.</p>
@@ -4205,11 +4280,36 @@
<tr><td class="val" id="ft_render_mode_lcd_v">FT_RENDER_MODE_LCD_V</td><td class="desc">
<p>This mode corresponds to vertical RGB and BGR subpixel displays (like PDA screens, rotated LCD displays, etc.). It produces 8-bit bitmaps that are 3&nbsp;times the height of the original glyph outline in pixels and use the <code><a href="ft2-basic_types.html#ft_pixel_mode">FT_PIXEL_MODE_LCD_V</a></code> mode.</p>
</td></tr>
+<tr><td class="val" id="ft_render_mode_sdf">FT_RENDER_MODE_SDF</td><td class="desc">
+<p>This mode corresponds to 8-bit, single-channel signed distance field (SDF) bitmaps. Each pixel in the SDF grid is the value from the pixel's position to the nearest glyph's outline. The distances are calculated from the center of the pixel and are positive if they are filled by the outline (i.e., inside the outline) and negative otherwise. Check the note below on how to convert the output values to usable data.</p>
+</td></tr>
</table>
<h4>note</h4>
<p>The selected render mode only affects vector glyphs of a font. Embedded bitmaps often have a different pixel mode like <code><a href="ft2-basic_types.html#ft_pixel_mode">FT_PIXEL_MODE_MONO</a></code>. You can use <code><a href="ft2-bitmap_handling.html#ft_bitmap_convert">FT_Bitmap_Convert</a></code> to transform them into 8-bit pixmaps.</p>
+<p>For <code><a href="ft2-base_interface.html#ft_render_mode">FT_RENDER_MODE_SDF</a></code> the output bitmap buffer contains normalized distances that are packed into unsigned 8-bit values. To get pixel values in floating point representation use the following pseudo-C code for the conversion.
+<div class="highlight"><pre><span></span><code>// Load glyph and render using FT_RENDER_MODE_SDF,
+// then use the output buffer as follows.
+
+...
+FT_Byte buffer = glyph-&gt;bitmap-&gt;buffer;
+
+
+for pixel in buffer
+{
+ // `sd` is the signed distance and `spread` is the current spread;
+ // the default spread is 2 and can be changed.
+
+ float sd = (float)pixel - 128.0f;
+
+
+ // Convert to pixel values.
+ sd = ( sd / 128.0f ) * spread;
+
+ // Store `sd` in a buffer or use as required.
+}
+</code></pre></div></p>
<hr>
<h2 id="ft_get_kerning">FT_Get_Kerning<a class="headerlink" href="#ft_get_kerning" title="Permanent link">&para;</a></h2>
@@ -4224,7 +4324,6 @@
<p>Return the kerning vector between two glyphs of the same face.</p>
<h4>input</h4>
-
<table class="fields">
<tr><td class="val" id="face">face</td><td class="desc">
<p>A handle to a source face object.</p>
@@ -4241,7 +4340,6 @@
</table>
<h4>output</h4>
-
<table class="fields">
<tr><td class="val" id="akerning">akerning</td><td class="desc">
<p>The kerning vector. This is either in font units, fractional pixels (26.6 format), or pixels for scalable formats, and in pixels for fixed-sizes formats.</p>
@@ -4253,7 +4351,7 @@
<p>FreeType error code. 0&nbsp;means success.</p>
<h4>note</h4>
-<p>Only horizontal layouts (left-to-right &amp; right-to-left) are supported by this method. Other layouts, or more sophisticated kernings, are out of the scope of this API function -- they can be implemented through format-specific interfaces.</p>
+<p>Only horizontal layouts (left-to-right &amp; right-to-left) are supported by this method. Other layouts, or more sophisticated kernings, are out of the scope of this API function &ndash; they can be implemented through format-specific interfaces.</p>
<p>Kerning for OpenType fonts implemented in a &lsquo;GPOS&rsquo; table is not supported; use <code><a href="ft2-base_interface.html#ft_has_kerning">FT_HAS_KERNING</a></code> to find out whether a font has data that can be extracted with <code>FT_Get_Kerning</code>.</p>
<hr>
@@ -4277,7 +4375,6 @@
<p>An enumeration to specify the format of kerning values returned by <code><a href="ft2-base_interface.html#ft_get_kerning">FT_Get_Kerning</a></code>.</p>
<h4>values</h4>
-
<table class="fields">
<tr><td class="val" id="ft_kerning_default">FT_KERNING_DEFAULT</td><td class="desc">
<p>Return grid-fitted kerning distances in 26.6 fractional pixels.</p>
@@ -4307,7 +4404,6 @@
<p>Return the track kerning for a given face object at a given size.</p>
<h4>input</h4>
-
<table class="fields">
<tr><td class="val" id="face">face</td><td class="desc">
<p>A handle to a source face object.</p>
@@ -4321,7 +4417,6 @@
</table>
<h4>output</h4>
-
<table class="fields">
<tr><td class="val" id="akerning">akerning</td><td class="desc">
<p>The kerning in 16.16 fractional points, to be uniformly applied between all glyphs.</p>
@@ -4348,7 +4443,6 @@
<p>Retrieve the ASCII name of a given glyph in a face. This only works for those faces where <code><a href="ft2-base_interface.html#ft_has_glyph_names">FT_HAS_GLYPH_NAMES</a></code>(face) returns&nbsp;1.</p>
<h4>input</h4>
-
<table class="fields">
<tr><td class="val" id="face">face</td><td class="desc">
<p>A handle to a source face object.</p>
@@ -4362,7 +4456,6 @@
</table>
<h4>output</h4>
-
<table class="fields">
<tr><td class="val" id="buffer">buffer</td><td class="desc">
<p>A pointer to a target buffer where the name is copied to.</p>
@@ -4388,7 +4481,6 @@
<p>Retrieve the ASCII PostScript name of a given face, if available. This only works with PostScript, TrueType, and OpenType fonts.</p>
<h4>input</h4>
-
<table class="fields">
<tr><td class="val" id="face">face</td><td class="desc">
<p>A handle to the source face object.</p>
@@ -4420,7 +4512,6 @@
<p>The base charmap structure.</p>
<h4>fields</h4>
-
<table class="fields">
<tr><td class="val" id="face">face</td><td class="desc">
<p>A handle to the parent face object.</p>
@@ -4447,7 +4538,6 @@
<p>Select a given charmap by its encoding tag (as listed in <code>freetype.h</code>).</p>
<h4>inout</h4>
-
<table class="fields">
<tr><td class="val" id="face">face</td><td class="desc">
<p>A handle to the source face object.</p>
@@ -4455,7 +4545,6 @@
</table>
<h4>input</h4>
-
<table class="fields">
<tr><td class="val" id="encoding">encoding</td><td class="desc">
<p>A handle to the selected encoding.</p>
@@ -4480,7 +4569,6 @@
<p>Select a given charmap for character code to glyph index mapping.</p>
<h4>inout</h4>
-
<table class="fields">
<tr><td class="val" id="face">face</td><td class="desc">
<p>A handle to the source face object.</p>
@@ -4488,7 +4576,6 @@
</table>
<h4>input</h4>
-
<table class="fields">
<tr><td class="val" id="charmap">charmap</td><td class="desc">
<p>A handle to the selected charmap.</p>
@@ -4512,7 +4599,6 @@
<p>Retrieve index of a given charmap.</p>
<h4>input</h4>
-
<table class="fields">
<tr><td class="val" id="charmap">charmap</td><td class="desc">
<p>A handle to a charmap.</p>
@@ -4532,7 +4618,6 @@
<p>Return the <code>fsType</code> flags for a font.</p>
<h4>input</h4>
-
<table class="fields">
<tr><td class="val" id="face">face</td><td class="desc">
<p>A handle to the source face object.</p>
@@ -4564,7 +4649,6 @@
<p>Retrieve a description of a given subglyph. Only use it if <code>glyph-&gt;format</code> is <code><a href="ft2-basic_types.html#ft_glyph_format">FT_GLYPH_FORMAT_COMPOSITE</a></code>; an error is returned otherwise.</p>
<h4>input</h4>
-
<table class="fields">
<tr><td class="val" id="glyph">glyph</td><td class="desc">
<p>The source glyph slot.</p>
@@ -4575,7 +4659,6 @@
</table>
<h4>output</h4>
-
<table class="fields">
<tr><td class="val" id="p_index">p_index</td><td class="desc">
<p>The glyph index of the subglyph.</p>
@@ -4650,7 +4733,6 @@
<p>A list of bit flags used in the <code>face_flags</code> field of the <code><a href="ft2-base_interface.html#ft_facerec">FT_FaceRec</a></code> structure. They inform client applications of properties of the corresponding face.</p>
<h4>values</h4>
-
<table class="fields long">
<tr><td class="val" id="ft_face_flag_scalable">FT_FACE_FLAG_SCALABLE</td><td class="desc">
<p>The face contains outline glyphs. Note that a face can contain bitmap strikes also, i.e., a face can have both this flag and <code><a href="ft2-base_interface.html#ft_face_flag_xxx">FT_FACE_FLAG_FIXED_SIZES</a></code> set.</p>
@@ -4716,7 +4798,6 @@
<p>A list of bit flags to indicate the style of a given face. These are used in the <code>style_flags</code> field of <code><a href="ft2-base_interface.html#ft_facerec">FT_FaceRec</a></code>.</p>
<h4>values</h4>
-
<table class="fields">
<tr><td class="val" id="ft_style_flag_italic">FT_STYLE_FLAG_ITALIC</td><td class="desc">
<p>The face style is italic or oblique.</p>
@@ -4739,6 +4820,7 @@
#<span class="keyword">define</span> <a href="ft2-base_interface.html#ft_open_driver">FT_OPEN_DRIVER</a> 0x8
#<span class="keyword">define</span> <a href="ft2-base_interface.html#ft_open_params">FT_OPEN_PARAMS</a> 0x10
+
/* these constants are deprecated; use the corresponding `<b>FT_OPEN_XXX</b>` */
/* values instead */
#<span class="keyword">define</span> ft_open_memory <a href="ft2-base_interface.html#ft_open_memory">FT_OPEN_MEMORY</a>
@@ -4750,7 +4832,6 @@
<p>A list of bit field constants used within the <code>flags</code> field of the <code><a href="ft2-base_interface.html#ft_open_args">FT_Open_Args</a></code> structure.</p>
<h4>values</h4>
-
<table class="fields">
<tr><td class="val" id="ft_open_memory">FT_OPEN_MEMORY</td><td class="desc">
<p>This is a memory-based stream.</p>
@@ -4799,7 +4880,6 @@
<p>A list of bit field constants for <code><a href="ft2-base_interface.html#ft_load_glyph">FT_Load_Glyph</a></code> to indicate what kind of operations to perform during glyph loading.</p>
<h4>values</h4>
-
<table class="fields long">
<tr><td class="val" id="ft_load_default">FT_LOAD_DEFAULT</td><td class="desc">
<p>Corresponding to&nbsp;0, this value is used as the default glyph load operation. In this case, the following happens:</p>
@@ -4888,7 +4968,7 @@
<h2 id="ft_load_target_xxx">FT_LOAD_TARGET_XXX<a class="headerlink" href="#ft_load_target_xxx" title="Permanent link">&para;</a></h2>
<p>Defined in FT_FREETYPE_H (freetype/freetype.h).</p>
-<div class = "codehilite"><pre><code>#<span class="keyword">define</span> FT_LOAD_TARGET_( x ) ( (<a href="ft2-basic_types.html#ft_int32">FT_Int32</a>)( (x) &amp; 15 ) &lt;&lt; 16 )
+<div class = "codehilite"><pre><code>#<span class="keyword">define</span> FT_LOAD_TARGET_( x ) ( FT_STATIC_CAST( <a href="ft2-basic_types.html#ft_int32">FT_Int32</a>, (x) &amp; 15 ) &lt;&lt; 16 )
#<span class="keyword">define</span> <a href="ft2-base_interface.html#ft_load_target_normal">FT_LOAD_TARGET_NORMAL</a> FT_LOAD_TARGET_( <a href="ft2-base_interface.html#ft_render_mode_normal">FT_RENDER_MODE_NORMAL</a> )
#<span class="keyword">define</span> <a href="ft2-base_interface.html#ft_load_target_light">FT_LOAD_TARGET_LIGHT</a> FT_LOAD_TARGET_( <a href="ft2-base_interface.html#ft_render_mode_light">FT_RENDER_MODE_LIGHT</a> )
@@ -4900,7 +4980,6 @@
<p>A list of values to select a specific hinting algorithm for the hinter. You should OR one of these values to your <code>load_flags</code> when calling <code><a href="ft2-base_interface.html#ft_load_glyph">FT_Load_Glyph</a></code>.</p>
<p>Note that a font's native hinters may ignore the hinting algorithm you have specified (e.g., the TrueType bytecode interpreter). You can set <code><a href="ft2-base_interface.html#ft_load_xxx">FT_LOAD_FORCE_AUTOHINT</a></code> to ensure that the auto-hinter is used.</p>
<h4>values</h4>
-
<table class="fields">
<tr><td class="val" id="ft_load_target_normal">FT_LOAD_TARGET_NORMAL</td><td class="desc">
<p>The default hinting algorithm, optimized for standard gray-level rendering. For monochrome output, use <code><a href="ft2-base_interface.html#ft_load_target_xxx">FT_LOAD_TARGET_MONO</a></code> instead.</p>
@@ -4949,7 +5028,6 @@
<p>A list of constants describing subglyphs. Please refer to the &lsquo;glyf&rsquo; table description in the OpenType specification for the meaning of the various flags (which get synthesized for non-OpenType subglyphs).</p>
<p><a href="https://docs.microsoft.com/en-us/typography/opentype/spec/glyf#composite-glyph-description">https://docs.microsoft.com/en-us/typography/opentype/spec/glyf#composite-glyph-description</a></p>
<h4>values</h4>
-
<table class="fields long">
<tr><td class="val" id="ft_subglyph_flag_args_are_words">FT_SUBGLYPH_FLAG_ARGS_ARE_WORDS</td><td class="desc">
@@ -4989,7 +5067,6 @@
<p>A list of bit flags used in the <code>fsType</code> field of the OS/2 table in a TrueType or OpenType font and the <code>FSType</code> entry in a PostScript font. These bit flags are returned by <code><a href="ft2-base_interface.html#ft_get_fstype_flags">FT_Get_FSType_Flags</a></code>; they inform client applications of embedding and subsetting restrictions associated with a font.</p>
<p>See <a href="https://www.adobe.com/content/dam/Adobe/en/devnet/acrobat/pdfs/FontPolicies.pdf">https://www.adobe.com/content/dam/Adobe/en/devnet/acrobat/pdfs/FontPolicies.pdf</a> for more details.</p>
<h4>values</h4>
-
<table class="fields long">
<tr><td class="val" id="ft_fstype_installable_embedding">FT_FSTYPE_INSTALLABLE_EMBEDDING</td><td class="desc">
<p>Fonts with no fsType bit set may be embedded and permanently installed on the remote system by an application.</p>
@@ -5025,9 +5102,6 @@
<p>Deprecated.</p>
<hr>
-
-
-
@@ -5037,59 +5111,60 @@
</article>
</div>
</div>
+
</main>
<footer class="md-footer">
- <div class="md-footer-nav">
- <nav class="md-footer-nav__inner md-grid">
+ <nav class="md-footer__inner md-grid" aria-label="Footer">
+
- <a href="ft2-basic_types.html" title="Basic Data Types" class="md-flex md-footer-nav__link md-footer-nav__link--prev" rel="prev">
- <div class="md-flex__cell md-flex__cell--shrink">
- <i class="md-icon md-icon--arrow-back md-footer-nav__button"></i>
- </div>
- <div class="md-flex__cell md-flex__cell--stretch md-footer-nav__title">
- <span class="md-flex__ellipsis">
- <span class="md-footer-nav__direction">
- Previous
- </span>
- Basic Data Types
+ <a href="ft2-basic_types.html" class="md-footer__link md-footer__link--prev" aria-label="Previous: Basic Data Types" rel="prev">
+ <div class="md-footer__button md-icon">
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M20 11v2H8l5.5 5.5-1.42 1.42L4.16 12l7.92-7.92L13.5 5.5 8 11h12z"/></svg>
+ </div>
+ <div class="md-footer__title">
+ <div class="md-ellipsis">
+ <span class="md-footer__direction">
+ Previous
</span>
+ Basic Data Types
</div>
- </a>
-
+ </div>
+ </a>
+
+
- <a href="ft2-glyph_variants.html" title="Unicode Variation Sequences" class="md-flex md-footer-nav__link md-footer-nav__link--next" rel="next">
- <div class="md-flex__cell md-flex__cell--stretch md-footer-nav__title">
- <span class="md-flex__ellipsis">
- <span class="md-footer-nav__direction">
- Next
- </span>
- Unicode Variation Sequences
+ <a href="ft2-glyph_variants.html" class="md-footer__link md-footer__link--next" aria-label="Next: Unicode Variation Sequences" rel="next">
+ <div class="md-footer__title">
+ <div class="md-ellipsis">
+ <span class="md-footer__direction">
+ Next
</span>
+ Unicode Variation Sequences
</div>
- <div class="md-flex__cell md-flex__cell--shrink">
- <i class="md-icon md-icon--arrow-forward md-footer-nav__button"></i>
- </div>
- </a>
-
- </nav>
- </div>
+ </div>
+ <div class="md-footer__button md-icon">
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M4 11v2h12l-5.5 5.5 1.42 1.42L19.84 12l-7.92-7.92L10.5 5.5 16 11H4z"/></svg>
+ </div>
+ </a>
+
+ </nav>
<div class="md-footer-meta md-typeset">
<div class="md-footer-meta__inner md-grid">
<div class="md-footer-copyright">
<div class="md-footer-copyright__highlight">
- Copyright 2020 <a href = "https://www.freetype.org/license.html">The FreeType Project</a>.
+ Copyright 2021 <a href = "https://www.freetype.org/license.html">The FreeType Project</a>.
</div>
- powered by
- <a href="https://www.mkdocs.org" target="_blank" rel="noopener">MkDocs</a>
- and
+ Made with
<a href="https://squidfunk.github.io/mkdocs-material/" target="_blank" rel="noopener">
- Material for MkDocs</a>
+ Material for MkDocs
+ </a>
+
</div>
</div>
@@ -5097,10 +5172,13 @@
</footer>
</div>
+ <div class="md-dialog" data-md-component="dialog">
+ <div class="md-dialog__inner md-typeset"></div>
+ </div>
+ <script id="__config" type="application/json">{"base": ".", "features": [], "translations": {"clipboard.copy": "Copy to clipboard", "clipboard.copied": "Copied to clipboard", "search.config.lang": "en", "search.config.pipeline": "trimmer, stopWordFilter", "search.config.separator": "[\\s\\-]+", "search.placeholder": "Search", "search.result.placeholder": "Type to start searching", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.term.missing": "Missing", "select.version.title": "Select version"}, "search": "assets/javascripts/workers/search.477d984a.min.js", "version": null}</script>
- <script src="assets/javascripts/application.c33a9706.js"></script>
-
- <script>app.initialize({version:"1.1",url:{base:"."}})</script>
+
+ <script src="assets/javascripts/bundle.82b56eb2.min.js"></script>
<script src="javascripts/extra.js"></script>
diff --git a/freetype/docs/reference/ft2-basic_types.html b/freetype/docs/reference/ft2-basic_types.html
index fe49d583..a6eab97d 100644
--- a/freetype/docs/reference/ft2-basic_types.html
+++ b/freetype/docs/reference/ft2-basic_types.html
@@ -1,145 +1,136 @@
-
-
-
<!doctype html>
<html lang="en" class="no-js">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
- <meta http-equiv="x-ua-compatible" content="ie=edge">
- <meta name="description" content="API Reference Documentation for FreeType-2.10.4">
+ <meta name="description" content="API Reference Documentation for FreeType-2.11.1">
<meta name="author" content="FreeType Contributors">
- <meta name="lang:clipboard.copy" content="Copy to clipboard">
-
- <meta name="lang:clipboard.copied" content="Copied to clipboard">
-
- <meta name="lang:search.language" content="en">
-
- <meta name="lang:search.pipeline.stopwords" content="True">
-
- <meta name="lang:search.pipeline.trimmer" content="True">
-
- <meta name="lang:search.result.none" content="No matching documents">
-
- <meta name="lang:search.result.one" content="1 matching document">
-
- <meta name="lang:search.result.other" content="# matching documents">
-
- <meta name="lang:search.tokenizer" content="[\s\-]+">
-
- <link rel="shortcut icon" href="images/favico.ico">
- <meta name="generator" content="mkdocs-1.1, mkdocs-material-4.6.3">
+ <link rel="icon" href="images/favico.ico">
+ <meta name="generator" content="mkdocs-1.2.1, mkdocs-material-7.1.9">
- <title>Basic Data Types - FreeType-2.10.4 API Reference</title>
+ <title>Basic Data Types - FreeType-2.11.1 API Reference</title>
- <link rel="stylesheet" href="assets/stylesheets/application.adb8469c.css">
-
- <link rel="stylesheet" href="assets/stylesheets/application-palette.a8b3c06d.css">
-
+ <link rel="stylesheet" href="assets/stylesheets/main.ca7ac06f.min.css">
+ <link rel="stylesheet" href="assets/stylesheets/palette.f1a3b89f.min.css">
+
+
+
+ <meta name="theme-color" content="#4cae4f">
- <meta name="theme-color" content="#4caf50">
- <script src="assets/javascripts/modernizr.86422ebf.js"></script>
-
- <link href="https://fonts.gstatic.com" rel="preconnect" crossorigin>
+
+ <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Noto+Serif:300,400,400i,700%7CRoboto+Mono&display=fallback">
- <style>body,input{font-family:"Noto Serif","Helvetica Neue",Helvetica,Arial,sans-serif}code,kbd,pre{font-family:"Roboto Mono","Courier New",Courier,monospace}</style>
+ <style>:root{--md-text-font-family:"Noto Serif";--md-code-font-family:"Roboto Mono"}</style>
- <link rel="stylesheet" href="assets/fonts/material-icons.css">
<link rel="stylesheet" href="stylesheets/extra.css">
+
+
</head>
+
+
+
+
- <body dir="ltr" data-md-color-primary="green" data-md-color-accent="green">
+ <body dir="ltr" data-md-color-scheme="" data-md-color-primary="green" data-md-color-accent="green">
- <svg class="md-svg">
- <defs>
-
-
- </defs>
- </svg>
- <input class="md-toggle" data-md-toggle="drawer" type="checkbox" id="__drawer" autocomplete="off">
- <input class="md-toggle" data-md-toggle="search" type="checkbox" id="__search" autocomplete="off">
- <label class="md-overlay" data-md-component="overlay" for="__drawer"></label>
- <a href="#basic-data-types" tabindex="0" class="md-skip">
- Skip to content
- </a>
+ <script>function __prefix(e){return new URL(".",location).pathname+"."+e}function __get(e,t=localStorage){return JSON.parse(t.getItem(__prefix(e)))}</script>
+ <input class="md-toggle" data-md-toggle="drawer" type="checkbox" id="__drawer" autocomplete="off">
+ <input class="md-toggle" data-md-toggle="search" type="checkbox" id="__search" autocomplete="off">
+ <label class="md-overlay" for="__drawer"></label>
+ <div data-md-component="skip">
+
+
+ <a href="#basic-data-types" class="md-skip">
+ Skip to content
+ </a>
+
+ </div>
+ <div data-md-component="announce">
+
+ </div>
<header class="md-header" data-md-component="header">
- <nav class="md-header-nav md-grid">
- <div class="md-flex">
- <div class="md-flex__cell md-flex__cell--shrink">
- <a href="." title="FreeType-2.10.4 API Reference" aria-label="FreeType-2.10.4 API Reference" class="md-header-nav__button md-logo">
-
- <img alt="logo" src="images/favico.ico" width="24" height="24">
-
- </a>
- </div>
- <div class="md-flex__cell md-flex__cell--shrink">
- <label class="md-icon md-icon--menu md-header-nav__button" for="__drawer"></label>
- </div>
- <div class="md-flex__cell md-flex__cell--stretch">
- <div class="md-flex__ellipsis md-header-nav__title" data-md-component="title">
-
- <span class="md-header-nav__topic">
- FreeType-2.10.4 API Reference
- </span>
- <span class="md-header-nav__topic">
-
- Basic Data Types
-
- </span>
-
+ <nav class="md-header__inner md-grid" aria-label="Header">
+ <a href="index.html" title="FreeType-2.11.1 API Reference" class="md-header__button md-logo" aria-label="FreeType-2.11.1 API Reference" data-md-component="logo">
+
+ <img src="images/favico.ico" alt="logo">
+
+ </a>
+ <label class="md-header__button md-icon" for="__drawer">
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M3 6h18v2H3V6m0 5h18v2H3v-2m0 5h18v2H3v-2z"/></svg>
+ </label>
+ <div class="md-header__title" data-md-component="header-title">
+ <div class="md-header__ellipsis">
+ <div class="md-header__topic">
+ <span class="md-ellipsis">
+ FreeType-2.11.1 API Reference
+ </span>
+ </div>
+ <div class="md-header__topic" data-md-component="header-topic">
+ <span class="md-ellipsis">
+
+ Basic Data Types
+
+ </span>
</div>
</div>
- <div class="md-flex__cell md-flex__cell--shrink">
-
- <label class="md-icon md-icon--search md-header-nav__button" for="__search"></label>
-
+ </div>
+
+
+
+ <label class="md-header__button md-icon" for="__search">
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M9.5 3A6.5 6.5 0 0 1 16 9.5c0 1.61-.59 3.09-1.56 4.23l.27.27h.79l5 5-1.5 1.5-5-5v-.79l-.27-.27A6.516 6.516 0 0 1 9.5 16 6.5 6.5 0 0 1 3 9.5 6.5 6.5 0 0 1 9.5 3m0 2C7 5 5 7 5 9.5S7 14 9.5 14 14 12 14 9.5 12 5 9.5 5z"/></svg>
+ </label>
+
<div class="md-search" data-md-component="search" role="dialog">
<label class="md-search__overlay" for="__search"></label>
<div class="md-search__inner" role="search">
<form class="md-search__form" name="search">
- <input type="text" class="md-search__input" aria-label="search" name="query" placeholder="Search" autocapitalize="off" autocorrect="off" autocomplete="off" spellcheck="false" data-md-component="query" data-md-state="active">
- <label class="md-icon md-search__icon" for="__search"></label>
- <button type="reset" class="md-icon md-search__icon" data-md-component="reset" tabindex="-1">
- &#xE5CD;
+ <input type="text" class="md-search__input" name="query" aria-label="Search" placeholder="Search" autocapitalize="off" autocorrect="off" autocomplete="off" spellcheck="false" data-md-component="search-query" data-md-state="active" required>
+ <label class="md-search__icon md-icon" for="__search">
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M9.5 3A6.5 6.5 0 0 1 16 9.5c0 1.61-.59 3.09-1.56 4.23l.27.27h.79l5 5-1.5 1.5-5-5v-.79l-.27-.27A6.516 6.516 0 0 1 9.5 16 6.5 6.5 0 0 1 3 9.5 6.5 6.5 0 0 1 9.5 3m0 2C7 5 5 7 5 9.5S7 14 9.5 14 14 12 14 9.5 12 5 9.5 5z"/></svg>
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M20 11v2H8l5.5 5.5-1.42 1.42L4.16 12l7.92-7.92L13.5 5.5 8 11h12z"/></svg>
+ </label>
+ <button type="reset" class="md-search__icon md-icon" aria-label="Clear" tabindex="-1">
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z"/></svg>
</button>
</form>
<div class="md-search__output">
<div class="md-search__scrollwrap" data-md-scrollfix>
- <div class="md-search-result" data-md-component="result">
+ <div class="md-search-result" data-md-component="search-result">
<div class="md-search-result__meta">
- Type to start searching
+ Initializing search
</div>
<ol class="md-search-result__list"></ol>
</div>
@@ -147,33 +138,35 @@
</div>
</div>
</div>
-
- </div>
-
- </div>
+
+
</nav>
</header>
- <div class="md-container">
+ <div class="md-container" data-md-component="container">
-
+
- <main class="md-main" role="main">
- <div class="md-main__inner md-grid" data-md-component="container">
+ <main class="md-main" data-md-component="main">
+ <div class="md-main__inner md-grid">
- <div class="md-sidebar md-sidebar--primary" data-md-component="navigation">
+
+ <div class="md-sidebar md-sidebar--primary" data-md-component="sidebar" data-md-type="navigation" >
<div class="md-sidebar__scrollwrap">
<div class="md-sidebar__inner">
- <nav class="md-nav md-nav--primary" data-md-level="0">
- <label class="md-nav__title md-nav__title--site" for="__drawer">
- <a href="." title="FreeType-2.10.4 API Reference" class="md-nav__button md-logo">
-
- <img alt="logo" src="images/favico.ico" width="48" height="48">
+
+
+
+<nav class="md-nav md-nav--primary" aria-label="Navigation" data-md-level="0">
+ <label class="md-nav__title" for="__drawer">
+ <a href="index.html" title="FreeType-2.11.1 API Reference" class="md-nav__button md-logo" aria-label="FreeType-2.11.1 API Reference" data-md-component="logo">
+ <img src="images/favico.ico" alt="logo">
+
</a>
- FreeType-2.10.4 API Reference
+ FreeType-2.11.1 API Reference
</label>
<ul class="md-nav__list" data-md-scrollfix>
@@ -182,72 +175,96 @@
-
- <li class="md-nav__item">
- <a href="index.html" title="TOC" class="md-nav__link">
- TOC
- </a>
- </li>
+
+
+
+ <li class="md-nav__item">
+ <a href="index.html" class="md-nav__link">
+ TOC
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-index.html" title="Index" class="md-nav__link">
- Index
- </a>
- </li>
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-index.html" class="md-nav__link">
+ Index
+ </a>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-3" type="checkbox" id="nav-3">
+
+
+
- <label class="md-nav__link" for="nav-3">
- General Remarks
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-3">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_3" type="checkbox" id="__nav_3" >
+
+ <label class="md-nav__link" for="__nav_3">
General Remarks
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
-
-
+ <nav class="md-nav" aria-label="General Remarks" data-md-level="1">
+ <label class="md-nav__title" for="__nav_3">
+ <span class="md-nav__icon md-icon"></span>
+ General Remarks
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-preamble.html" class="md-nav__link">
+ Preamble
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-header_inclusion.html" title="FreeType's header inclusion scheme" class="md-nav__link">
- FreeType's header inclusion scheme
- </a>
- </li>
-
-
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-header_inclusion.html" class="md-nav__link">
+ FreeType's header inclusion scheme
+ </a>
+ </li>
+
- <li class="md-nav__item">
- <a href="ft2-user_allocation.html" title="User allocation" class="md-nav__link">
- User allocation
- </a>
- </li>
+
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-user_allocation.html" class="md-nav__link">
+ User allocation
+ </a>
+ </li>
+
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
@@ -255,65 +272,75 @@
-
-
- <li class="md-nav__item md-nav__item--active md-nav__item--nested">
+
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-4" type="checkbox" id="nav-4" checked>
+
+
- <label class="md-nav__link" for="nav-4">
- Core API
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-4">
+ <li class="md-nav__item md-nav__item--active md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_4" type="checkbox" id="__nav_4" checked>
+
+ <label class="md-nav__link" for="__nav_4">
Core API
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
-
-
+ <nav class="md-nav" aria-label="Core API" data-md-level="1">
+ <label class="md-nav__title" for="__nav_4">
+ <span class="md-nav__icon md-icon"></span>
+ Core API
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-version.html" class="md-nav__link">
+ FreeType Version
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-version.html" title="FreeType Version" class="md-nav__link">
- FreeType Version
- </a>
- </li>
-
-
-
-
-
+
+
-
-
- <li class="md-nav__item md-nav__item--active">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="toc" type="checkbox" id="__toc">
+
+
+ <li class="md-nav__item md-nav__item--active">
-
-
- <label class="md-nav__link md-nav__link--active" for="__toc">
+ <input class="md-nav__toggle md-toggle" data-md-toggle="toc" type="checkbox" id="__toc">
+
+
+
+
+
+ <label class="md-nav__link md-nav__link--active" for="__toc">
+ Basic Data Types
+ <span class="md-nav__icon md-icon"></span>
+ </label>
+
+ <a href="ft2-basic_types.html" class="md-nav__link md-nav__link--active">
Basic Data Types
- </label>
-
- <a href="ft2-basic_types.html" title="Basic Data Types" class="md-nav__link md-nav__link--active">
- Basic Data Types
- </a>
-
+ </a>
-<nav class="md-nav md-nav--secondary">
+
+<nav class="md-nav md-nav--secondary" aria-label="Table of contents">
+
- <label class="md-nav__title" for="__toc">Table of contents</label>
- <ul class="md-nav__list" data-md-scrollfix>
+ <label class="md-nav__title" for="__toc">
+ <span class="md-nav__icon md-icon"></span>
+ Table of contents
+ </label>
+ <ul class="md-nav__list" data-md-component="toc" data-md-scrollfix>
<li class="md-nav__item">
<a href="#synopsis" class="md-nav__link">
@@ -602,704 +629,750 @@
</li>
-
-
-
-
</ul>
</nav>
-
- </li>
+
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-base_interface.html" title="Base Interface" class="md-nav__link">
- Base Interface
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-base_interface.html" class="md-nav__link">
+ Base Interface
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-glyph_variants.html" class="md-nav__link">
+ Unicode Variation Sequences
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-glyph_variants.html" title="Unicode Variation Sequences" class="md-nav__link">
- Unicode Variation Sequences
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-color_management.html" title="Glyph Color Management" class="md-nav__link">
- Glyph Color Management
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-color_management.html" class="md-nav__link">
+ Glyph Color Management
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-layer_management.html" class="md-nav__link">
+ Glyph Layer Management
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-layer_management.html" title="Glyph Layer Management" class="md-nav__link">
- Glyph Layer Management
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-glyph_management.html" title="Glyph Management" class="md-nav__link">
- Glyph Management
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-glyph_management.html" class="md-nav__link">
+ Glyph Management
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-mac_specific.html" class="md-nav__link">
+ Mac Specific Interface
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-mac_specific.html" title="Mac Specific Interface" class="md-nav__link">
- Mac Specific Interface
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-sizes_management.html" title="Size Management" class="md-nav__link">
- Size Management
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-sizes_management.html" class="md-nav__link">
+ Size Management
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-header_file_macros.html" class="md-nav__link">
+ Header File Macros
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-header_file_macros.html" title="Header File Macros" class="md-nav__link">
- Header File Macros
- </a>
- </li>
-
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-5" type="checkbox" id="nav-5">
+
+
+
- <label class="md-nav__link" for="nav-5">
- Format-Specific API
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-5">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_5" type="checkbox" id="__nav_5" >
+
+ <label class="md-nav__link" for="__nav_5">
Format-Specific API
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
-
+ <nav class="md-nav" aria-label="Format-Specific API" data-md-level="1">
+ <label class="md-nav__title" for="__nav_5">
+ <span class="md-nav__icon md-icon"></span>
+ Format-Specific API
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
-
-
-
- <li class="md-nav__item">
- <a href="ft2-multiple_masters.html" title="Multiple Masters" class="md-nav__link">
- Multiple Masters
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-multiple_masters.html" class="md-nav__link">
+ Multiple Masters
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-truetype_tables.html" title="TrueType Tables" class="md-nav__link">
- TrueType Tables
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-truetype_tables.html" class="md-nav__link">
+ TrueType Tables
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-type1_tables.html" class="md-nav__link">
+ Type 1 Tables
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-type1_tables.html" title="Type 1 Tables" class="md-nav__link">
- Type 1 Tables
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-sfnt_names.html" title="SFNT Names" class="md-nav__link">
- SFNT Names
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-sfnt_names.html" class="md-nav__link">
+ SFNT Names
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-bdf_fonts.html" title="BDF and PCF Files" class="md-nav__link">
- BDF and PCF Files
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-bdf_fonts.html" class="md-nav__link">
+ BDF and PCF Files
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-cid_fonts.html" title="CID Fonts" class="md-nav__link">
- CID Fonts
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-cid_fonts.html" class="md-nav__link">
+ CID Fonts
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-pfr_fonts.html" title="PFR Fonts" class="md-nav__link">
- PFR Fonts
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-pfr_fonts.html" class="md-nav__link">
+ PFR Fonts
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-winfnt_fonts.html" title="Window FNT Files" class="md-nav__link">
- Window FNT Files
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-winfnt_fonts.html" class="md-nav__link">
+ Window FNT Files
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-font_formats.html" title="Font Formats" class="md-nav__link">
- Font Formats
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-font_formats.html" class="md-nav__link">
+ Font Formats
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-gasp_table.html" title="Gasp Table" class="md-nav__link">
- Gasp Table
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-gasp_table.html" class="md-nav__link">
+ Gasp Table
+ </a>
+ </li>
+
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-6" type="checkbox" id="nav-6">
+
+
+
- <label class="md-nav__link" for="nav-6">
- Controlling FreeType Modules
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-6">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_6" type="checkbox" id="__nav_6" >
+
+ <label class="md-nav__link" for="__nav_6">
Controlling FreeType Modules
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
-
+ <nav class="md-nav" aria-label="Controlling FreeType Modules" data-md-level="1">
+ <label class="md-nav__title" for="__nav_6">
+ <span class="md-nav__icon md-icon"></span>
+ Controlling FreeType Modules
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
-
-
-
- <li class="md-nav__item">
- <a href="ft2-auto_hinter.html" title="The auto-hinter" class="md-nav__link">
- The auto-hinter
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-auto_hinter.html" class="md-nav__link">
+ The auto-hinter
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-cff_driver.html" title="The CFF driver" class="md-nav__link">
- The CFF driver
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-cff_driver.html" class="md-nav__link">
+ The CFF driver
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-t1_cid_driver.html" class="md-nav__link">
+ The Type 1 and CID drivers
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-t1_cid_driver.html" title="The Type 1 and CID drivers" class="md-nav__link">
- The Type 1 and CID drivers
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-tt_driver.html" title="The TrueType driver" class="md-nav__link">
- The TrueType driver
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-tt_driver.html" class="md-nav__link">
+ The TrueType driver
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-pcf_driver.html" class="md-nav__link">
+ The PCF driver
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-pcf_driver.html" title="The PCF driver" class="md-nav__link">
- The PCF driver
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-properties.html" title="Driver properties" class="md-nav__link">
- Driver properties
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-properties.html" class="md-nav__link">
+ Driver properties
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-parameter_tags.html" class="md-nav__link">
+ Parameter Tags
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-parameter_tags.html" title="Parameter Tags" class="md-nav__link">
- Parameter Tags
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-lcd_rendering.html" title="Subpixel Rendering" class="md-nav__link">
- Subpixel Rendering
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-lcd_rendering.html" class="md-nav__link">
+ Subpixel Rendering
+ </a>
+ </li>
+
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-7" type="checkbox" id="nav-7">
+
+
+
- <label class="md-nav__link" for="nav-7">
- Cache Sub-System
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-7">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_7" type="checkbox" id="__nav_7" >
+
+ <label class="md-nav__link" for="__nav_7">
Cache Sub-System
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
+ <nav class="md-nav" aria-label="Cache Sub-System" data-md-level="1">
+ <label class="md-nav__title" for="__nav_7">
+ <span class="md-nav__icon md-icon"></span>
+ Cache Sub-System
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-cache_subsystem.html" title="Cache Sub-System" class="md-nav__link">
- Cache Sub-System
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-cache_subsystem.html" class="md-nav__link">
+ Cache Sub-System
+ </a>
+ </li>
+
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-8" type="checkbox" id="nav-8">
+
+
+
- <label class="md-nav__link" for="nav-8">
- Support API
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-8">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_8" type="checkbox" id="__nav_8" >
+
+ <label class="md-nav__link" for="__nav_8">
Support API
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
+ <nav class="md-nav" aria-label="Support API" data-md-level="1">
+ <label class="md-nav__title" for="__nav_8">
+ <span class="md-nav__icon md-icon"></span>
+ Support API
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-computations.html" title="Computations" class="md-nav__link">
- Computations
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-computations.html" class="md-nav__link">
+ Computations
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-list_processing.html" class="md-nav__link">
+ List Processing
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-list_processing.html" title="List Processing" class="md-nav__link">
- List Processing
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-outline_processing.html" title="Outline Processing" class="md-nav__link">
- Outline Processing
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-outline_processing.html" class="md-nav__link">
+ Outline Processing
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-quick_advance.html" class="md-nav__link">
+ Quick retrieval of advance values
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-quick_advance.html" title="Quick retrieval of advance values" class="md-nav__link">
- Quick retrieval of advance values
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-bitmap_handling.html" title="Bitmap Handling" class="md-nav__link">
- Bitmap Handling
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-bitmap_handling.html" class="md-nav__link">
+ Bitmap Handling
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-raster.html" class="md-nav__link">
+ Scanline Converter
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-raster.html" title="Scanline Converter" class="md-nav__link">
- Scanline Converter
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-glyph_stroker.html" title="Glyph Stroker" class="md-nav__link">
- Glyph Stroker
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-glyph_stroker.html" class="md-nav__link">
+ Glyph Stroker
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-system_interface.html" class="md-nav__link">
+ System Interface
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-system_interface.html" title="System Interface" class="md-nav__link">
- System Interface
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-module_management.html" title="Module Management" class="md-nav__link">
- Module Management
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-module_management.html" class="md-nav__link">
+ Module Management
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-gzip.html" class="md-nav__link">
+ GZIP Streams
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-gzip.html" title="GZIP Streams" class="md-nav__link">
- GZIP Streams
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-lzw.html" title="LZW Streams" class="md-nav__link">
- LZW Streams
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-lzw.html" class="md-nav__link">
+ LZW Streams
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-bzip2.html" class="md-nav__link">
+ BZIP2 Streams
+ </a>
+ </li>
+
+
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-debugging_apis.html" class="md-nav__link">
+ External Debugging APIs
+ </a>
+ </li>
+
- <li class="md-nav__item">
- <a href="ft2-bzip2.html" title="BZIP2 Streams" class="md-nav__link">
- BZIP2 Streams
- </a>
- </li>
-
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-9" type="checkbox" id="nav-9">
+
+
+
- <label class="md-nav__link" for="nav-9">
- Error Codes
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-9">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_9" type="checkbox" id="__nav_9" >
+
+ <label class="md-nav__link" for="__nav_9">
Error Codes
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
+ <nav class="md-nav" aria-label="Error Codes" data-md-level="1">
+ <label class="md-nav__title" for="__nav_9">
+ <span class="md-nav__icon md-icon"></span>
+ Error Codes
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-error_enumerations.html" title="Error Enumerations" class="md-nav__link">
- Error Enumerations
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-error_enumerations.html" class="md-nav__link">
+ Error Enumerations
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-error_code_values.html" class="md-nav__link">
+ Error Code Values
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-error_code_values.html" title="Error Code Values" class="md-nav__link">
- Error Code Values
- </a>
- </li>
-
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-10" type="checkbox" id="nav-10">
+
+
+
- <label class="md-nav__link" for="nav-10">
- Miscellaneous
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-10">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_10" type="checkbox" id="__nav_10" >
+
+ <label class="md-nav__link" for="__nav_10">
Miscellaneous
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
-
-
+ <nav class="md-nav" aria-label="Miscellaneous" data-md-level="1">
+ <label class="md-nav__title" for="__nav_10">
+ <span class="md-nav__icon md-icon"></span>
+ Miscellaneous
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-gx_validation.html" class="md-nav__link">
+ TrueTypeGX/AAT Validation
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-gx_validation.html" title="TrueTypeGX/AAT Validation" class="md-nav__link">
- TrueTypeGX/AAT Validation
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-incremental.html" title="Incremental Loading" class="md-nav__link">
- Incremental Loading
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-incremental.html" class="md-nav__link">
+ Incremental Loading
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-truetype_engine.html" title="The TrueType Engine" class="md-nav__link">
- The TrueType Engine
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-truetype_engine.html" class="md-nav__link">
+ The TrueType Engine
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-ot_validation.html" title="OpenType Validation" class="md-nav__link">
- OpenType Validation
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-ot_validation.html" class="md-nav__link">
+ OpenType Validation
+ </a>
+ </li>
+
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
</ul>
@@ -1309,18 +1382,23 @@
</div>
- <div class="md-sidebar md-sidebar--secondary" data-md-component="toc">
+
+ <div class="md-sidebar md-sidebar--secondary" data-md-component="sidebar" data-md-type="toc" >
<div class="md-sidebar__scrollwrap">
<div class="md-sidebar__inner">
-<nav class="md-nav md-nav--secondary">
+<nav class="md-nav md-nav--secondary" aria-label="Table of contents">
+
- <label class="md-nav__title" for="__toc">Table of contents</label>
- <ul class="md-nav__list" data-md-scrollfix>
+ <label class="md-nav__title" for="__toc">
+ <span class="md-nav__icon md-icon"></span>
+ Table of contents
+ </label>
+ <ul class="md-nav__list" data-md-component="toc" data-md-scrollfix>
<li class="md-nav__item">
<a href="#synopsis" class="md-nav__link">
@@ -1609,10 +1687,6 @@
</li>
-
-
-
-
</ul>
</nav>
@@ -1621,7 +1695,7 @@
</div>
- <div class="md-content">
+ <div class="md-content" data-md-component="content">
<article class="md-content__inner md-typeset">
@@ -1695,19 +1769,16 @@
<h2 id="ft_uint32">FT_UInt32<a class="headerlink" href="#ft_uint32" title="Permanent link">&para;</a></h2>
<div class = "codehilite"><pre><code> <span class="keyword">typedef</span> <span class="keyword">unsigned</span> XXX <b>FT_UInt32</b>;
</code></pre></div>
-
<hr>
<h2 id="ft_int64">FT_Int64<a class="headerlink" href="#ft_int64" title="Permanent link">&para;</a></h2>
<div class = "codehilite"><pre><code> <span class="keyword">typedef</span> <span class="keyword">signed</span> XXX <b>FT_Int64</b>;
</code></pre></div>
-
<hr>
<h2 id="ft_uint64">FT_UInt64<a class="headerlink" href="#ft_uint64" title="Permanent link">&para;</a></h2>
<div class = "codehilite"><pre><code> <span class="keyword">typedef</span> <span class="keyword">unsigned</span> XXX <b>FT_UInt64</b>;
</code></pre></div>
-
<hr>
<h2 id="ft_short">FT_Short<a class="headerlink" href="#ft_short" title="Permanent link">&para;</a></h2>
@@ -1826,7 +1897,6 @@
<p>A simple structure used to store a 2D vector; coordinates are of the FT_Pos type.</p>
<h4>fields</h4>
-
<table class="fields">
<tr><td class="val" id="x">x</td><td class="desc">
<p>The horizontal coordinate.</p>
@@ -1850,7 +1920,6 @@
<p>A structure used to hold an outline's bounding box, i.e., the coordinates of its extrema in the horizontal and vertical directions.</p>
<h4>fields</h4>
-
<table class="fields">
<tr><td class="val" id="xmin">xMin</td><td class="desc">
<p>The horizontal minimum (left-most).</p>
@@ -1888,7 +1957,6 @@
y&#39; = x*yx + y*yy
</code></pre></div></p>
<h4>fields</h4>
-
<table class="fields">
<tr><td class="val" id="xx">xx</td><td class="desc">
<p>Matrix coefficient.</p>
@@ -1942,7 +2010,6 @@
<p>A simple structure used to store a 2D vector unit vector. Uses FT_F2Dot14 types.</p>
<h4>fields</h4>
-
<table class="fields">
<tr><td class="val" id="x">x</td><td class="desc">
<p>Horizontal coordinate.</p>
@@ -1967,14 +2034,13 @@
<div class = "codehilite"><pre><code> <span class="keyword">typedef</span> <span class="keyword">struct</span> FT_Data_
{
<span class="keyword">const</span> <a href="ft2-basic_types.html#ft_byte">FT_Byte</a>* pointer;
- <a href="ft2-basic_types.html#ft_int">FT_Int</a> length;
+ <a href="ft2-basic_types.html#ft_uint">FT_UInt</a> length;
} <b>FT_Data</b>;
</code></pre></div>
<p>Read-only binary data represented as a pointer and a length.</p>
<h4>fields</h4>
-
<table class="fields">
<tr><td class="val" id="pointer">pointer</td><td class="desc">
<p>The data.</p>
@@ -1988,15 +2054,14 @@
<h2 id="ft_make_tag">FT_MAKE_TAG<a class="headerlink" href="#ft_make_tag" title="Permanent link">&para;</a></h2>
<p>Defined in FT_TYPES_H (freetype/fttypes.h).</p>
-<div class = "codehilite"><pre><code>#<span class="keyword">define</span> <b>FT_MAKE_TAG</b>( _x1, _x2, _x3, _x4 ) \
- (<a href="ft2-basic_types.html#ft_tag">FT_Tag</a>) \
- ( ( (<a href="ft2-basic_types.html#ft_ulong">FT_ULong</a>)_x1 &lt;&lt; 24 ) | \
- ( (<a href="ft2-basic_types.html#ft_ulong">FT_ULong</a>)_x2 &lt;&lt; 16 ) | \
- ( (<a href="ft2-basic_types.html#ft_ulong">FT_ULong</a>)_x3 &lt;&lt; 8 ) | \
- (<a href="ft2-basic_types.html#ft_ulong">FT_ULong</a>)_x4 )
+<div class = "codehilite"><pre><code>#<span class="keyword">define</span> <b>FT_MAKE_TAG</b>( _x1, _x2, _x3, _x4 ) \
+ ( ( FT_STATIC_BYTE_CAST( <a href="ft2-basic_types.html#ft_tag">FT_Tag</a>, _x1 ) &lt;&lt; 24 ) | \
+ ( FT_STATIC_BYTE_CAST( <a href="ft2-basic_types.html#ft_tag">FT_Tag</a>, _x2 ) &lt;&lt; 16 ) | \
+ ( FT_STATIC_BYTE_CAST( <a href="ft2-basic_types.html#ft_tag">FT_Tag</a>, _x3 ) &lt;&lt; 8 ) | \
+ FT_STATIC_BYTE_CAST( <a href="ft2-basic_types.html#ft_tag">FT_Tag</a>, _x4 ) )
</code></pre></div>
-<p>This macro converts four-letter tags that are used to label TrueType tables into an unsigned long, to be used within FreeType.</p>
+<p>This macro converts four-letter tags that are used to label TrueType tables into an <code>FT_Tag</code> type, to be used within FreeType.</p>
<h4>note</h4>
<p>The produced values <strong>must</strong> be 32-bit integers. Don't redefine this macro.</p>
@@ -2016,7 +2081,6 @@
<p>Some FreeType object contains a <code>generic</code> field, of type <code>FT_Generic</code>, which usage is left to client applications and font servers.</p>
<p>It can be used to store a pointer to client-specific data, as well as the address of a &lsquo;finalizer&rsquo; function, which will be called by FreeType when the object is destroyed (for example, the previous client example would put the address of the glyph cache destructor in the <code>finalizer</code> field).</p>
<h4>fields</h4>
-
<table class="fields">
<tr><td class="val" id="data">data</td><td class="desc">
<p>A typeless pointer to any client-specified data. This field is completely ignored by the FreeType library.</p>
@@ -2057,7 +2121,6 @@
<p>A structure used to describe a bitmap or pixmap to the raster. Note that we now manage pixmaps of various depths through the <code>pixel_mode</code> field.</p>
<h4>fields</h4>
-
<table class="fields">
<tr><td class="val" id="rows">rows</td><td class="desc">
<p>The number of bitmap rows.</p>
@@ -2119,7 +2182,6 @@
<p>An enumeration type used to describe the format of pixels in a given bitmap. Note that additional formats may be added in the future.</p>
<h4>values</h4>
-
<table class="fields">
<tr><td class="val" id="ft_pixel_mode_none">FT_PIXEL_MODE_NONE</td><td class="desc">
<p>Value&nbsp;0 is reserved.</p>
@@ -2174,7 +2236,6 @@
<p>An enumeration type used to describe the format of a given glyph image. Note that this version of FreeType only supports two image formats, even though future font drivers will be able to register their own format.</p>
<h4>values</h4>
-
<table class="fields">
<tr><td class="val" id="ft_glyph_format_none">FT_GLYPH_FORMAT_NONE</td><td class="desc">
<p>The value&nbsp;0 is reserved.</p>
@@ -2198,11 +2259,13 @@
<h2 id="ft_image_tag">FT_IMAGE_TAG<a class="headerlink" href="#ft_image_tag" title="Permanent link">&para;</a></h2>
<p>Defined in FT_IMAGE_H (freetype/ftimage.h).</p>
<div class = "codehilite"><pre><code>#<span class="keyword">ifndef</span> <b>FT_IMAGE_TAG</b>
-#<span class="keyword">define</span> <b>FT_IMAGE_TAG</b>( value, _x1, _x2, _x3, _x4 ) \
- value = ( ( (<span class="keyword">unsigned</span> <span class="keyword">long</span>)_x1 &lt;&lt; 24 ) | \
- ( (<span class="keyword">unsigned</span> <span class="keyword">long</span>)_x2 &lt;&lt; 16 ) | \
- ( (<span class="keyword">unsigned</span> <span class="keyword">long</span>)_x3 &lt;&lt; 8 ) | \
- (<span class="keyword">unsigned</span> <span class="keyword">long</span>)_x4 )
+
+#<span class="keyword">define</span> <b>FT_IMAGE_TAG</b>( value, _x1, _x2, _x3, _x4 ) \
+ value = ( ( FT_STATIC_BYTE_CAST( <span class="keyword">unsigned</span> <span class="keyword">long</span>, _x1 ) &lt;&lt; 24 ) | \
+ ( FT_STATIC_BYTE_CAST( <span class="keyword">unsigned</span> <span class="keyword">long</span>, _x2 ) &lt;&lt; 16 ) | \
+ ( FT_STATIC_BYTE_CAST( <span class="keyword">unsigned</span> <span class="keyword">long</span>, _x3 ) &lt;&lt; 8 ) | \
+ FT_STATIC_BYTE_CAST( <span class="keyword">unsigned</span> <span class="keyword">long</span>, _x4 ) )
+
#<span class="keyword">endif</span> /* <b>FT_IMAGE_TAG</b> */
</code></pre></div>
@@ -2215,9 +2278,6 @@
<p>to get a simple enumeration without assigning special numbers.</p>
<hr>
-
-
-
@@ -2227,59 +2287,60 @@
</article>
</div>
</div>
+
</main>
<footer class="md-footer">
- <div class="md-footer-nav">
- <nav class="md-footer-nav__inner md-grid">
+ <nav class="md-footer__inner md-grid" aria-label="Footer">
+
- <a href="ft2-version.html" title="FreeType Version" class="md-flex md-footer-nav__link md-footer-nav__link--prev" rel="prev">
- <div class="md-flex__cell md-flex__cell--shrink">
- <i class="md-icon md-icon--arrow-back md-footer-nav__button"></i>
- </div>
- <div class="md-flex__cell md-flex__cell--stretch md-footer-nav__title">
- <span class="md-flex__ellipsis">
- <span class="md-footer-nav__direction">
- Previous
- </span>
- FreeType Version
+ <a href="ft2-version.html" class="md-footer__link md-footer__link--prev" aria-label="Previous: FreeType Version" rel="prev">
+ <div class="md-footer__button md-icon">
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M20 11v2H8l5.5 5.5-1.42 1.42L4.16 12l7.92-7.92L13.5 5.5 8 11h12z"/></svg>
+ </div>
+ <div class="md-footer__title">
+ <div class="md-ellipsis">
+ <span class="md-footer__direction">
+ Previous
</span>
+ FreeType Version
</div>
- </a>
-
+ </div>
+ </a>
+
+
- <a href="ft2-base_interface.html" title="Base Interface" class="md-flex md-footer-nav__link md-footer-nav__link--next" rel="next">
- <div class="md-flex__cell md-flex__cell--stretch md-footer-nav__title">
- <span class="md-flex__ellipsis">
- <span class="md-footer-nav__direction">
- Next
- </span>
- Base Interface
+ <a href="ft2-base_interface.html" class="md-footer__link md-footer__link--next" aria-label="Next: Base Interface" rel="next">
+ <div class="md-footer__title">
+ <div class="md-ellipsis">
+ <span class="md-footer__direction">
+ Next
</span>
+ Base Interface
</div>
- <div class="md-flex__cell md-flex__cell--shrink">
- <i class="md-icon md-icon--arrow-forward md-footer-nav__button"></i>
- </div>
- </a>
-
- </nav>
- </div>
+ </div>
+ <div class="md-footer__button md-icon">
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M4 11v2h12l-5.5 5.5 1.42 1.42L19.84 12l-7.92-7.92L10.5 5.5 16 11H4z"/></svg>
+ </div>
+ </a>
+
+ </nav>
<div class="md-footer-meta md-typeset">
<div class="md-footer-meta__inner md-grid">
<div class="md-footer-copyright">
<div class="md-footer-copyright__highlight">
- Copyright 2020 <a href = "https://www.freetype.org/license.html">The FreeType Project</a>.
+ Copyright 2021 <a href = "https://www.freetype.org/license.html">The FreeType Project</a>.
</div>
- powered by
- <a href="https://www.mkdocs.org" target="_blank" rel="noopener">MkDocs</a>
- and
+ Made with
<a href="https://squidfunk.github.io/mkdocs-material/" target="_blank" rel="noopener">
- Material for MkDocs</a>
+ Material for MkDocs
+ </a>
+
</div>
</div>
@@ -2287,10 +2348,13 @@
</footer>
</div>
+ <div class="md-dialog" data-md-component="dialog">
+ <div class="md-dialog__inner md-typeset"></div>
+ </div>
+ <script id="__config" type="application/json">{"base": ".", "features": [], "translations": {"clipboard.copy": "Copy to clipboard", "clipboard.copied": "Copied to clipboard", "search.config.lang": "en", "search.config.pipeline": "trimmer, stopWordFilter", "search.config.separator": "[\\s\\-]+", "search.placeholder": "Search", "search.result.placeholder": "Type to start searching", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.term.missing": "Missing", "select.version.title": "Select version"}, "search": "assets/javascripts/workers/search.477d984a.min.js", "version": null}</script>
- <script src="assets/javascripts/application.c33a9706.js"></script>
-
- <script>app.initialize({version:"1.1",url:{base:"."}})</script>
+
+ <script src="assets/javascripts/bundle.82b56eb2.min.js"></script>
<script src="javascripts/extra.js"></script>
diff --git a/freetype/docs/reference/ft2-bdf_fonts.html b/freetype/docs/reference/ft2-bdf_fonts.html
index 44318130..a55d06be 100644
--- a/freetype/docs/reference/ft2-bdf_fonts.html
+++ b/freetype/docs/reference/ft2-bdf_fonts.html
@@ -1,145 +1,136 @@
-
-
-
<!doctype html>
<html lang="en" class="no-js">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
- <meta http-equiv="x-ua-compatible" content="ie=edge">
- <meta name="description" content="API Reference Documentation for FreeType-2.10.4">
+ <meta name="description" content="API Reference Documentation for FreeType-2.11.1">
<meta name="author" content="FreeType Contributors">
- <meta name="lang:clipboard.copy" content="Copy to clipboard">
-
- <meta name="lang:clipboard.copied" content="Copied to clipboard">
-
- <meta name="lang:search.language" content="en">
-
- <meta name="lang:search.pipeline.stopwords" content="True">
-
- <meta name="lang:search.pipeline.trimmer" content="True">
-
- <meta name="lang:search.result.none" content="No matching documents">
-
- <meta name="lang:search.result.one" content="1 matching document">
-
- <meta name="lang:search.result.other" content="# matching documents">
-
- <meta name="lang:search.tokenizer" content="[\s\-]+">
-
- <link rel="shortcut icon" href="images/favico.ico">
- <meta name="generator" content="mkdocs-1.1, mkdocs-material-4.6.3">
+ <link rel="icon" href="images/favico.ico">
+ <meta name="generator" content="mkdocs-1.2.1, mkdocs-material-7.1.9">
- <title>BDF and PCF Files - FreeType-2.10.4 API Reference</title>
+ <title>BDF and PCF Files - FreeType-2.11.1 API Reference</title>
- <link rel="stylesheet" href="assets/stylesheets/application.adb8469c.css">
-
- <link rel="stylesheet" href="assets/stylesheets/application-palette.a8b3c06d.css">
-
+ <link rel="stylesheet" href="assets/stylesheets/main.ca7ac06f.min.css">
+ <link rel="stylesheet" href="assets/stylesheets/palette.f1a3b89f.min.css">
+
+
+
+ <meta name="theme-color" content="#4cae4f">
- <meta name="theme-color" content="#4caf50">
- <script src="assets/javascripts/modernizr.86422ebf.js"></script>
-
- <link href="https://fonts.gstatic.com" rel="preconnect" crossorigin>
+
+ <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Noto+Serif:300,400,400i,700%7CRoboto+Mono&display=fallback">
- <style>body,input{font-family:"Noto Serif","Helvetica Neue",Helvetica,Arial,sans-serif}code,kbd,pre{font-family:"Roboto Mono","Courier New",Courier,monospace}</style>
+ <style>:root{--md-text-font-family:"Noto Serif";--md-code-font-family:"Roboto Mono"}</style>
- <link rel="stylesheet" href="assets/fonts/material-icons.css">
<link rel="stylesheet" href="stylesheets/extra.css">
+
+
</head>
+
+
+
+
- <body dir="ltr" data-md-color-primary="green" data-md-color-accent="green">
+ <body dir="ltr" data-md-color-scheme="" data-md-color-primary="green" data-md-color-accent="green">
- <svg class="md-svg">
- <defs>
-
-
- </defs>
- </svg>
- <input class="md-toggle" data-md-toggle="drawer" type="checkbox" id="__drawer" autocomplete="off">
- <input class="md-toggle" data-md-toggle="search" type="checkbox" id="__search" autocomplete="off">
- <label class="md-overlay" data-md-component="overlay" for="__drawer"></label>
- <a href="#bdf-and-pcf-files" tabindex="0" class="md-skip">
- Skip to content
- </a>
+ <script>function __prefix(e){return new URL(".",location).pathname+"."+e}function __get(e,t=localStorage){return JSON.parse(t.getItem(__prefix(e)))}</script>
+ <input class="md-toggle" data-md-toggle="drawer" type="checkbox" id="__drawer" autocomplete="off">
+ <input class="md-toggle" data-md-toggle="search" type="checkbox" id="__search" autocomplete="off">
+ <label class="md-overlay" for="__drawer"></label>
+ <div data-md-component="skip">
+
+
+ <a href="#bdf-and-pcf-files" class="md-skip">
+ Skip to content
+ </a>
+
+ </div>
+ <div data-md-component="announce">
+
+ </div>
<header class="md-header" data-md-component="header">
- <nav class="md-header-nav md-grid">
- <div class="md-flex">
- <div class="md-flex__cell md-flex__cell--shrink">
- <a href="." title="FreeType-2.10.4 API Reference" aria-label="FreeType-2.10.4 API Reference" class="md-header-nav__button md-logo">
-
- <img alt="logo" src="images/favico.ico" width="24" height="24">
-
- </a>
- </div>
- <div class="md-flex__cell md-flex__cell--shrink">
- <label class="md-icon md-icon--menu md-header-nav__button" for="__drawer"></label>
- </div>
- <div class="md-flex__cell md-flex__cell--stretch">
- <div class="md-flex__ellipsis md-header-nav__title" data-md-component="title">
-
- <span class="md-header-nav__topic">
- FreeType-2.10.4 API Reference
- </span>
- <span class="md-header-nav__topic">
-
- BDF and PCF Files
-
- </span>
-
+ <nav class="md-header__inner md-grid" aria-label="Header">
+ <a href="index.html" title="FreeType-2.11.1 API Reference" class="md-header__button md-logo" aria-label="FreeType-2.11.1 API Reference" data-md-component="logo">
+
+ <img src="images/favico.ico" alt="logo">
+
+ </a>
+ <label class="md-header__button md-icon" for="__drawer">
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M3 6h18v2H3V6m0 5h18v2H3v-2m0 5h18v2H3v-2z"/></svg>
+ </label>
+ <div class="md-header__title" data-md-component="header-title">
+ <div class="md-header__ellipsis">
+ <div class="md-header__topic">
+ <span class="md-ellipsis">
+ FreeType-2.11.1 API Reference
+ </span>
+ </div>
+ <div class="md-header__topic" data-md-component="header-topic">
+ <span class="md-ellipsis">
+
+ BDF and PCF Files
+
+ </span>
</div>
</div>
- <div class="md-flex__cell md-flex__cell--shrink">
-
- <label class="md-icon md-icon--search md-header-nav__button" for="__search"></label>
-
+ </div>
+
+
+
+ <label class="md-header__button md-icon" for="__search">
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M9.5 3A6.5 6.5 0 0 1 16 9.5c0 1.61-.59 3.09-1.56 4.23l.27.27h.79l5 5-1.5 1.5-5-5v-.79l-.27-.27A6.516 6.516 0 0 1 9.5 16 6.5 6.5 0 0 1 3 9.5 6.5 6.5 0 0 1 9.5 3m0 2C7 5 5 7 5 9.5S7 14 9.5 14 14 12 14 9.5 12 5 9.5 5z"/></svg>
+ </label>
+
<div class="md-search" data-md-component="search" role="dialog">
<label class="md-search__overlay" for="__search"></label>
<div class="md-search__inner" role="search">
<form class="md-search__form" name="search">
- <input type="text" class="md-search__input" aria-label="search" name="query" placeholder="Search" autocapitalize="off" autocorrect="off" autocomplete="off" spellcheck="false" data-md-component="query" data-md-state="active">
- <label class="md-icon md-search__icon" for="__search"></label>
- <button type="reset" class="md-icon md-search__icon" data-md-component="reset" tabindex="-1">
- &#xE5CD;
+ <input type="text" class="md-search__input" name="query" aria-label="Search" placeholder="Search" autocapitalize="off" autocorrect="off" autocomplete="off" spellcheck="false" data-md-component="search-query" data-md-state="active" required>
+ <label class="md-search__icon md-icon" for="__search">
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M9.5 3A6.5 6.5 0 0 1 16 9.5c0 1.61-.59 3.09-1.56 4.23l.27.27h.79l5 5-1.5 1.5-5-5v-.79l-.27-.27A6.516 6.516 0 0 1 9.5 16 6.5 6.5 0 0 1 3 9.5 6.5 6.5 0 0 1 9.5 3m0 2C7 5 5 7 5 9.5S7 14 9.5 14 14 12 14 9.5 12 5 9.5 5z"/></svg>
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M20 11v2H8l5.5 5.5-1.42 1.42L4.16 12l7.92-7.92L13.5 5.5 8 11h12z"/></svg>
+ </label>
+ <button type="reset" class="md-search__icon md-icon" aria-label="Clear" tabindex="-1">
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z"/></svg>
</button>
</form>
<div class="md-search__output">
<div class="md-search__scrollwrap" data-md-scrollfix>
- <div class="md-search-result" data-md-component="result">
+ <div class="md-search-result" data-md-component="search-result">
<div class="md-search-result__meta">
- Type to start searching
+ Initializing search
</div>
<ol class="md-search-result__list"></ol>
</div>
@@ -147,33 +138,35 @@
</div>
</div>
</div>
-
- </div>
-
- </div>
+
+
</nav>
</header>
- <div class="md-container">
+ <div class="md-container" data-md-component="container">
-
+
- <main class="md-main" role="main">
- <div class="md-main__inner md-grid" data-md-component="container">
+ <main class="md-main" data-md-component="main">
+ <div class="md-main__inner md-grid">
- <div class="md-sidebar md-sidebar--primary" data-md-component="navigation">
+
+ <div class="md-sidebar md-sidebar--primary" data-md-component="sidebar" data-md-type="navigation" >
<div class="md-sidebar__scrollwrap">
<div class="md-sidebar__inner">
- <nav class="md-nav md-nav--primary" data-md-level="0">
- <label class="md-nav__title md-nav__title--site" for="__drawer">
- <a href="." title="FreeType-2.10.4 API Reference" class="md-nav__button md-logo">
-
- <img alt="logo" src="images/favico.ico" width="48" height="48">
+
+
+
+<nav class="md-nav md-nav--primary" aria-label="Navigation" data-md-level="0">
+ <label class="md-nav__title" for="__drawer">
+ <a href="index.html" title="FreeType-2.11.1 API Reference" class="md-nav__button md-logo" aria-label="FreeType-2.11.1 API Reference" data-md-component="logo">
+ <img src="images/favico.ico" alt="logo">
+
</a>
- FreeType-2.10.4 API Reference
+ FreeType-2.11.1 API Reference
</label>
<ul class="md-nav__list" data-md-scrollfix>
@@ -182,216 +175,246 @@
-
- <li class="md-nav__item">
- <a href="index.html" title="TOC" class="md-nav__link">
- TOC
- </a>
- </li>
+
+
+
+ <li class="md-nav__item">
+ <a href="index.html" class="md-nav__link">
+ TOC
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-index.html" title="Index" class="md-nav__link">
- Index
- </a>
- </li>
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-index.html" class="md-nav__link">
+ Index
+ </a>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-3" type="checkbox" id="nav-3">
+
+
+
- <label class="md-nav__link" for="nav-3">
- General Remarks
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-3">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_3" type="checkbox" id="__nav_3" >
+
+ <label class="md-nav__link" for="__nav_3">
General Remarks
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
-
+ <nav class="md-nav" aria-label="General Remarks" data-md-level="1">
+ <label class="md-nav__title" for="__nav_3">
+ <span class="md-nav__icon md-icon"></span>
+ General Remarks
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
-
-
-
- <li class="md-nav__item">
- <a href="ft2-header_inclusion.html" title="FreeType's header inclusion scheme" class="md-nav__link">
- FreeType's header inclusion scheme
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-preamble.html" class="md-nav__link">
+ Preamble
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-header_inclusion.html" class="md-nav__link">
+ FreeType's header inclusion scheme
+ </a>
+ </li>
+
+
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-user_allocation.html" class="md-nav__link">
+ User allocation
+ </a>
+ </li>
+
- <li class="md-nav__item">
- <a href="ft2-user_allocation.html" title="User allocation" class="md-nav__link">
- User allocation
- </a>
- </li>
-
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-4" type="checkbox" id="nav-4">
+
+
+
- <label class="md-nav__link" for="nav-4">
- Core API
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-4">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_4" type="checkbox" id="__nav_4" >
+
+ <label class="md-nav__link" for="__nav_4">
Core API
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
-
+ <nav class="md-nav" aria-label="Core API" data-md-level="1">
+ <label class="md-nav__title" for="__nav_4">
+ <span class="md-nav__icon md-icon"></span>
+ Core API
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
-
-
-
- <li class="md-nav__item">
- <a href="ft2-version.html" title="FreeType Version" class="md-nav__link">
- FreeType Version
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-version.html" class="md-nav__link">
+ FreeType Version
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-basic_types.html" class="md-nav__link">
+ Basic Data Types
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-basic_types.html" title="Basic Data Types" class="md-nav__link">
- Basic Data Types
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-base_interface.html" title="Base Interface" class="md-nav__link">
- Base Interface
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-base_interface.html" class="md-nav__link">
+ Base Interface
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-glyph_variants.html" class="md-nav__link">
+ Unicode Variation Sequences
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-glyph_variants.html" title="Unicode Variation Sequences" class="md-nav__link">
- Unicode Variation Sequences
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-color_management.html" title="Glyph Color Management" class="md-nav__link">
- Glyph Color Management
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-color_management.html" class="md-nav__link">
+ Glyph Color Management
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-layer_management.html" class="md-nav__link">
+ Glyph Layer Management
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-layer_management.html" title="Glyph Layer Management" class="md-nav__link">
- Glyph Layer Management
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-glyph_management.html" title="Glyph Management" class="md-nav__link">
- Glyph Management
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-glyph_management.html" class="md-nav__link">
+ Glyph Management
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-mac_specific.html" title="Mac Specific Interface" class="md-nav__link">
- Mac Specific Interface
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-mac_specific.html" class="md-nav__link">
+ Mac Specific Interface
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-sizes_management.html" title="Size Management" class="md-nav__link">
- Size Management
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-sizes_management.html" class="md-nav__link">
+ Size Management
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-header_file_macros.html" class="md-nav__link">
+ Header File Macros
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-header_file_macros.html" title="Header File Macros" class="md-nav__link">
- Header File Macros
- </a>
- </li>
-
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
@@ -399,101 +422,111 @@
-
-
- <li class="md-nav__item md-nav__item--active md-nav__item--nested">
+
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-5" type="checkbox" id="nav-5" checked>
+
+
- <label class="md-nav__link" for="nav-5">
- Format-Specific API
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-5">
+ <li class="md-nav__item md-nav__item--active md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_5" type="checkbox" id="__nav_5" checked>
+
+ <label class="md-nav__link" for="__nav_5">
Format-Specific API
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
-
-
+ <nav class="md-nav" aria-label="Format-Specific API" data-md-level="1">
+ <label class="md-nav__title" for="__nav_5">
+ <span class="md-nav__icon md-icon"></span>
+ Format-Specific API
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-multiple_masters.html" class="md-nav__link">
+ Multiple Masters
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-multiple_masters.html" title="Multiple Masters" class="md-nav__link">
- Multiple Masters
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-truetype_tables.html" title="TrueType Tables" class="md-nav__link">
- TrueType Tables
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-truetype_tables.html" class="md-nav__link">
+ TrueType Tables
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-type1_tables.html" title="Type 1 Tables" class="md-nav__link">
- Type 1 Tables
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-type1_tables.html" class="md-nav__link">
+ Type 1 Tables
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-sfnt_names.html" title="SFNT Names" class="md-nav__link">
- SFNT Names
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-sfnt_names.html" class="md-nav__link">
+ SFNT Names
+ </a>
+ </li>
+
-
-
-
-
+
+
-
-
- <li class="md-nav__item md-nav__item--active">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="toc" type="checkbox" id="__toc">
+
+
+ <li class="md-nav__item md-nav__item--active">
-
-
- <label class="md-nav__link md-nav__link--active" for="__toc">
+ <input class="md-nav__toggle md-toggle" data-md-toggle="toc" type="checkbox" id="__toc">
+
+
+
+
+
+ <label class="md-nav__link md-nav__link--active" for="__toc">
+ BDF and PCF Files
+ <span class="md-nav__icon md-icon"></span>
+ </label>
+
+ <a href="ft2-bdf_fonts.html" class="md-nav__link md-nav__link--active">
BDF and PCF Files
- </label>
-
- <a href="ft2-bdf_fonts.html" title="BDF and PCF Files" class="md-nav__link md-nav__link--active">
- BDF and PCF Files
- </a>
-
+ </a>
-<nav class="md-nav md-nav--secondary">
+
+<nav class="md-nav md-nav--secondary" aria-label="Table of contents">
+
- <label class="md-nav__title" for="__toc">Table of contents</label>
- <ul class="md-nav__list" data-md-scrollfix>
+ <label class="md-nav__title" for="__toc">
+ <span class="md-nav__icon md-icon"></span>
+ Table of contents
+ </label>
+ <ul class="md-nav__list" data-md-component="toc" data-md-scrollfix>
<li class="md-nav__item">
<a href="#synopsis" class="md-nav__link">
@@ -537,524 +570,564 @@
</li>
-
-
-
-
</ul>
</nav>
-
- </li>
+
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-cid_fonts.html" class="md-nav__link">
+ CID Fonts
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-cid_fonts.html" title="CID Fonts" class="md-nav__link">
- CID Fonts
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-pfr_fonts.html" title="PFR Fonts" class="md-nav__link">
- PFR Fonts
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-pfr_fonts.html" class="md-nav__link">
+ PFR Fonts
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-winfnt_fonts.html" title="Window FNT Files" class="md-nav__link">
- Window FNT Files
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-winfnt_fonts.html" class="md-nav__link">
+ Window FNT Files
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-font_formats.html" title="Font Formats" class="md-nav__link">
- Font Formats
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-font_formats.html" class="md-nav__link">
+ Font Formats
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-gasp_table.html" title="Gasp Table" class="md-nav__link">
- Gasp Table
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-gasp_table.html" class="md-nav__link">
+ Gasp Table
+ </a>
+ </li>
+
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-6" type="checkbox" id="nav-6">
+
+
+
- <label class="md-nav__link" for="nav-6">
- Controlling FreeType Modules
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-6">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_6" type="checkbox" id="__nav_6" >
+
+ <label class="md-nav__link" for="__nav_6">
Controlling FreeType Modules
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
-
+ <nav class="md-nav" aria-label="Controlling FreeType Modules" data-md-level="1">
+ <label class="md-nav__title" for="__nav_6">
+ <span class="md-nav__icon md-icon"></span>
+ Controlling FreeType Modules
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
-
-
-
- <li class="md-nav__item">
- <a href="ft2-auto_hinter.html" title="The auto-hinter" class="md-nav__link">
- The auto-hinter
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-auto_hinter.html" class="md-nav__link">
+ The auto-hinter
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-cff_driver.html" title="The CFF driver" class="md-nav__link">
- The CFF driver
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-cff_driver.html" class="md-nav__link">
+ The CFF driver
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-t1_cid_driver.html" title="The Type 1 and CID drivers" class="md-nav__link">
- The Type 1 and CID drivers
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-t1_cid_driver.html" class="md-nav__link">
+ The Type 1 and CID drivers
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-tt_driver.html" title="The TrueType driver" class="md-nav__link">
- The TrueType driver
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-tt_driver.html" class="md-nav__link">
+ The TrueType driver
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-pcf_driver.html" title="The PCF driver" class="md-nav__link">
- The PCF driver
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-pcf_driver.html" class="md-nav__link">
+ The PCF driver
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-properties.html" title="Driver properties" class="md-nav__link">
- Driver properties
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-properties.html" class="md-nav__link">
+ Driver properties
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-parameter_tags.html" title="Parameter Tags" class="md-nav__link">
- Parameter Tags
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-parameter_tags.html" class="md-nav__link">
+ Parameter Tags
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-lcd_rendering.html" class="md-nav__link">
+ Subpixel Rendering
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-lcd_rendering.html" title="Subpixel Rendering" class="md-nav__link">
- Subpixel Rendering
- </a>
- </li>
-
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-7" type="checkbox" id="nav-7">
+
+
+
- <label class="md-nav__link" for="nav-7">
- Cache Sub-System
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-7">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_7" type="checkbox" id="__nav_7" >
+
+ <label class="md-nav__link" for="__nav_7">
Cache Sub-System
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
-
-
+ <nav class="md-nav" aria-label="Cache Sub-System" data-md-level="1">
+ <label class="md-nav__title" for="__nav_7">
+ <span class="md-nav__icon md-icon"></span>
+ Cache Sub-System
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-cache_subsystem.html" class="md-nav__link">
+ Cache Sub-System
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-cache_subsystem.html" title="Cache Sub-System" class="md-nav__link">
- Cache Sub-System
- </a>
- </li>
-
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-8" type="checkbox" id="nav-8">
+
+
+
- <label class="md-nav__link" for="nav-8">
- Support API
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-8">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_8" type="checkbox" id="__nav_8" >
+
+ <label class="md-nav__link" for="__nav_8">
Support API
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
-
-
+ <nav class="md-nav" aria-label="Support API" data-md-level="1">
+ <label class="md-nav__title" for="__nav_8">
+ <span class="md-nav__icon md-icon"></span>
+ Support API
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-computations.html" class="md-nav__link">
+ Computations
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-computations.html" title="Computations" class="md-nav__link">
- Computations
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-list_processing.html" title="List Processing" class="md-nav__link">
- List Processing
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-list_processing.html" class="md-nav__link">
+ List Processing
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-outline_processing.html" class="md-nav__link">
+ Outline Processing
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-outline_processing.html" title="Outline Processing" class="md-nav__link">
- Outline Processing
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-quick_advance.html" title="Quick retrieval of advance values" class="md-nav__link">
- Quick retrieval of advance values
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-quick_advance.html" class="md-nav__link">
+ Quick retrieval of advance values
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-bitmap_handling.html" title="Bitmap Handling" class="md-nav__link">
- Bitmap Handling
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-bitmap_handling.html" class="md-nav__link">
+ Bitmap Handling
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-raster.html" title="Scanline Converter" class="md-nav__link">
- Scanline Converter
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-raster.html" class="md-nav__link">
+ Scanline Converter
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-glyph_stroker.html" title="Glyph Stroker" class="md-nav__link">
- Glyph Stroker
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-glyph_stroker.html" class="md-nav__link">
+ Glyph Stroker
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-system_interface.html" title="System Interface" class="md-nav__link">
- System Interface
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-system_interface.html" class="md-nav__link">
+ System Interface
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-module_management.html" title="Module Management" class="md-nav__link">
- Module Management
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-module_management.html" class="md-nav__link">
+ Module Management
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-gzip.html" title="GZIP Streams" class="md-nav__link">
- GZIP Streams
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-gzip.html" class="md-nav__link">
+ GZIP Streams
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-lzw.html" class="md-nav__link">
+ LZW Streams
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-lzw.html" title="LZW Streams" class="md-nav__link">
- LZW Streams
- </a>
- </li>
-
-
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-bzip2.html" class="md-nav__link">
+ BZIP2 Streams
+ </a>
+ </li>
+
- <li class="md-nav__item">
- <a href="ft2-bzip2.html" title="BZIP2 Streams" class="md-nav__link">
- BZIP2 Streams
- </a>
- </li>
+
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-debugging_apis.html" class="md-nav__link">
+ External Debugging APIs
+ </a>
+ </li>
+
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-9" type="checkbox" id="nav-9">
+
+
+
- <label class="md-nav__link" for="nav-9">
- Error Codes
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-9">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_9" type="checkbox" id="__nav_9" >
+
+ <label class="md-nav__link" for="__nav_9">
Error Codes
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
+ <nav class="md-nav" aria-label="Error Codes" data-md-level="1">
+ <label class="md-nav__title" for="__nav_9">
+ <span class="md-nav__icon md-icon"></span>
+ Error Codes
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-error_enumerations.html" title="Error Enumerations" class="md-nav__link">
- Error Enumerations
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-error_enumerations.html" class="md-nav__link">
+ Error Enumerations
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-error_code_values.html" class="md-nav__link">
+ Error Code Values
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-error_code_values.html" title="Error Code Values" class="md-nav__link">
- Error Code Values
- </a>
- </li>
-
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-10" type="checkbox" id="nav-10">
+
+
+
- <label class="md-nav__link" for="nav-10">
- Miscellaneous
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-10">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_10" type="checkbox" id="__nav_10" >
+
+ <label class="md-nav__link" for="__nav_10">
Miscellaneous
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
-
-
+ <nav class="md-nav" aria-label="Miscellaneous" data-md-level="1">
+ <label class="md-nav__title" for="__nav_10">
+ <span class="md-nav__icon md-icon"></span>
+ Miscellaneous
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-gx_validation.html" class="md-nav__link">
+ TrueTypeGX/AAT Validation
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-gx_validation.html" title="TrueTypeGX/AAT Validation" class="md-nav__link">
- TrueTypeGX/AAT Validation
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-incremental.html" title="Incremental Loading" class="md-nav__link">
- Incremental Loading
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-incremental.html" class="md-nav__link">
+ Incremental Loading
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-truetype_engine.html" title="The TrueType Engine" class="md-nav__link">
- The TrueType Engine
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-truetype_engine.html" class="md-nav__link">
+ The TrueType Engine
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-ot_validation.html" title="OpenType Validation" class="md-nav__link">
- OpenType Validation
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-ot_validation.html" class="md-nav__link">
+ OpenType Validation
+ </a>
+ </li>
+
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
</ul>
@@ -1064,18 +1137,23 @@
</div>
- <div class="md-sidebar md-sidebar--secondary" data-md-component="toc">
+
+ <div class="md-sidebar md-sidebar--secondary" data-md-component="sidebar" data-md-type="toc" >
<div class="md-sidebar__scrollwrap">
<div class="md-sidebar__inner">
-<nav class="md-nav md-nav--secondary">
+<nav class="md-nav md-nav--secondary" aria-label="Table of contents">
+
- <label class="md-nav__title" for="__toc">Table of contents</label>
- <ul class="md-nav__list" data-md-scrollfix>
+ <label class="md-nav__title" for="__toc">
+ <span class="md-nav__icon md-icon"></span>
+ Table of contents
+ </label>
+ <ul class="md-nav__list" data-md-component="toc" data-md-scrollfix>
<li class="md-nav__item">
<a href="#synopsis" class="md-nav__link">
@@ -1119,10 +1197,6 @@
</li>
-
-
-
-
</ul>
</nav>
@@ -1131,7 +1205,7 @@
</div>
- <div class="md-content">
+ <div class="md-content" data-md-component="content">
<article class="md-content__inner md-typeset">
@@ -1155,7 +1229,6 @@
<p>A list of BDF property types.</p>
<h4>values</h4>
-
<table class="fields long">
<tr><td class="val" id="bdf_property_type_none">BDF_PROPERTY_TYPE_NONE</td><td class="desc">
<p>Value&nbsp;0 is used to indicate a missing property.</p>
@@ -1198,7 +1271,6 @@
<p>This structure models a given BDF/PCF property.</p>
<h4>fields</h4>
-
<table class="fields">
<tr><td class="val" id="type">type</td><td class="desc">
<p>The property type.</p>
@@ -1226,7 +1298,6 @@
<p>Retrieve a BDF font character set identity, according to the BDF specification.</p>
<h4>input</h4>
-
<table class="fields">
<tr><td class="val" id="face">face</td><td class="desc">
<p>A handle to the input face.</p>
@@ -1234,7 +1305,6 @@
</table>
<h4>output</h4>
-
<table class="fields">
<tr><td class="val" id="acharset_encoding">acharset_encoding</td><td class="desc">
<p>Charset encoding, as a C&nbsp;string, owned by the face.</p>
@@ -1262,7 +1332,6 @@
<p>Retrieve a BDF property from a BDF or PCF font file.</p>
<h4>input</h4>
-
<table class="fields">
<tr><td class="val" id="face">face</td><td class="desc">
<p>A handle to the input face.</p>
@@ -1273,7 +1342,6 @@
</table>
<h4>output</h4>
-
<table class="fields">
<tr><td class="val" id="aproperty">aproperty</td><td class="desc">
<p>The property.</p>
@@ -1286,14 +1354,11 @@
<h4>note</h4>
<p>This function works with BDF <em>and</em> PCF fonts. It returns an error otherwise. It also returns an error if the property is not in the font.</p>
-<p>A &lsquo;property&rsquo; is a either key-value pair within the STARTPROPERTIES ... ENDPROPERTIES block of a BDF font or a key-value pair from the <code>info-&gt;props</code> array within a <code>FontRec</code> structure of a PCF font.</p>
+<p>A &lsquo;property&rsquo; is a either key-value pair within the STARTPROPERTIES &hellip; ENDPROPERTIES block of a BDF font or a key-value pair from the <code>info-&gt;props</code> array within a <code>FontRec</code> structure of a PCF font.</p>
<p>Integer properties are always stored as &lsquo;signed&rsquo; within PCF fonts; consequently, <code><a href="ft2-bdf_fonts.html#bdf_propertytype">BDF_PROPERTY_TYPE_CARDINAL</a></code> is a possible return value for BDF fonts only.</p>
<p>In case of error, <code>aproperty-&gt;type</code> is always set to <code><a href="ft2-bdf_fonts.html#bdf_propertytype">BDF_PROPERTY_TYPE_NONE</a></code>.</p>
<hr>
-
-
-
@@ -1303,59 +1368,60 @@
</article>
</div>
</div>
+
</main>
<footer class="md-footer">
- <div class="md-footer-nav">
- <nav class="md-footer-nav__inner md-grid">
+ <nav class="md-footer__inner md-grid" aria-label="Footer">
+
- <a href="ft2-sfnt_names.html" title="SFNT Names" class="md-flex md-footer-nav__link md-footer-nav__link--prev" rel="prev">
- <div class="md-flex__cell md-flex__cell--shrink">
- <i class="md-icon md-icon--arrow-back md-footer-nav__button"></i>
- </div>
- <div class="md-flex__cell md-flex__cell--stretch md-footer-nav__title">
- <span class="md-flex__ellipsis">
- <span class="md-footer-nav__direction">
- Previous
- </span>
- SFNT Names
+ <a href="ft2-sfnt_names.html" class="md-footer__link md-footer__link--prev" aria-label="Previous: SFNT Names" rel="prev">
+ <div class="md-footer__button md-icon">
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M20 11v2H8l5.5 5.5-1.42 1.42L4.16 12l7.92-7.92L13.5 5.5 8 11h12z"/></svg>
+ </div>
+ <div class="md-footer__title">
+ <div class="md-ellipsis">
+ <span class="md-footer__direction">
+ Previous
</span>
+ SFNT Names
</div>
- </a>
-
+ </div>
+ </a>
+
+
- <a href="ft2-cid_fonts.html" title="CID Fonts" class="md-flex md-footer-nav__link md-footer-nav__link--next" rel="next">
- <div class="md-flex__cell md-flex__cell--stretch md-footer-nav__title">
- <span class="md-flex__ellipsis">
- <span class="md-footer-nav__direction">
- Next
- </span>
- CID Fonts
+ <a href="ft2-cid_fonts.html" class="md-footer__link md-footer__link--next" aria-label="Next: CID Fonts" rel="next">
+ <div class="md-footer__title">
+ <div class="md-ellipsis">
+ <span class="md-footer__direction">
+ Next
</span>
+ CID Fonts
</div>
- <div class="md-flex__cell md-flex__cell--shrink">
- <i class="md-icon md-icon--arrow-forward md-footer-nav__button"></i>
- </div>
- </a>
-
- </nav>
- </div>
+ </div>
+ <div class="md-footer__button md-icon">
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M4 11v2h12l-5.5 5.5 1.42 1.42L19.84 12l-7.92-7.92L10.5 5.5 16 11H4z"/></svg>
+ </div>
+ </a>
+
+ </nav>
<div class="md-footer-meta md-typeset">
<div class="md-footer-meta__inner md-grid">
<div class="md-footer-copyright">
<div class="md-footer-copyright__highlight">
- Copyright 2020 <a href = "https://www.freetype.org/license.html">The FreeType Project</a>.
+ Copyright 2021 <a href = "https://www.freetype.org/license.html">The FreeType Project</a>.
</div>
- powered by
- <a href="https://www.mkdocs.org" target="_blank" rel="noopener">MkDocs</a>
- and
+ Made with
<a href="https://squidfunk.github.io/mkdocs-material/" target="_blank" rel="noopener">
- Material for MkDocs</a>
+ Material for MkDocs
+ </a>
+
</div>
</div>
@@ -1363,10 +1429,13 @@
</footer>
</div>
+ <div class="md-dialog" data-md-component="dialog">
+ <div class="md-dialog__inner md-typeset"></div>
+ </div>
+ <script id="__config" type="application/json">{"base": ".", "features": [], "translations": {"clipboard.copy": "Copy to clipboard", "clipboard.copied": "Copied to clipboard", "search.config.lang": "en", "search.config.pipeline": "trimmer, stopWordFilter", "search.config.separator": "[\\s\\-]+", "search.placeholder": "Search", "search.result.placeholder": "Type to start searching", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.term.missing": "Missing", "select.version.title": "Select version"}, "search": "assets/javascripts/workers/search.477d984a.min.js", "version": null}</script>
- <script src="assets/javascripts/application.c33a9706.js"></script>
-
- <script>app.initialize({version:"1.1",url:{base:"."}})</script>
+
+ <script src="assets/javascripts/bundle.82b56eb2.min.js"></script>
<script src="javascripts/extra.js"></script>
diff --git a/freetype/docs/reference/ft2-bitmap_handling.html b/freetype/docs/reference/ft2-bitmap_handling.html
index 166bc2b5..189ef5e6 100644
--- a/freetype/docs/reference/ft2-bitmap_handling.html
+++ b/freetype/docs/reference/ft2-bitmap_handling.html
@@ -1,145 +1,136 @@
-
-
-
<!doctype html>
<html lang="en" class="no-js">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
- <meta http-equiv="x-ua-compatible" content="ie=edge">
- <meta name="description" content="API Reference Documentation for FreeType-2.10.4">
+ <meta name="description" content="API Reference Documentation for FreeType-2.11.1">
<meta name="author" content="FreeType Contributors">
- <meta name="lang:clipboard.copy" content="Copy to clipboard">
-
- <meta name="lang:clipboard.copied" content="Copied to clipboard">
-
- <meta name="lang:search.language" content="en">
-
- <meta name="lang:search.pipeline.stopwords" content="True">
-
- <meta name="lang:search.pipeline.trimmer" content="True">
-
- <meta name="lang:search.result.none" content="No matching documents">
-
- <meta name="lang:search.result.one" content="1 matching document">
-
- <meta name="lang:search.result.other" content="# matching documents">
-
- <meta name="lang:search.tokenizer" content="[\s\-]+">
-
- <link rel="shortcut icon" href="images/favico.ico">
- <meta name="generator" content="mkdocs-1.1, mkdocs-material-4.6.3">
+ <link rel="icon" href="images/favico.ico">
+ <meta name="generator" content="mkdocs-1.2.1, mkdocs-material-7.1.9">
- <title>Bitmap Handling - FreeType-2.10.4 API Reference</title>
+ <title>Bitmap Handling - FreeType-2.11.1 API Reference</title>
- <link rel="stylesheet" href="assets/stylesheets/application.adb8469c.css">
-
- <link rel="stylesheet" href="assets/stylesheets/application-palette.a8b3c06d.css">
-
+ <link rel="stylesheet" href="assets/stylesheets/main.ca7ac06f.min.css">
+ <link rel="stylesheet" href="assets/stylesheets/palette.f1a3b89f.min.css">
+
+
+
+ <meta name="theme-color" content="#4cae4f">
- <meta name="theme-color" content="#4caf50">
- <script src="assets/javascripts/modernizr.86422ebf.js"></script>
-
- <link href="https://fonts.gstatic.com" rel="preconnect" crossorigin>
+
+ <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Noto+Serif:300,400,400i,700%7CRoboto+Mono&display=fallback">
- <style>body,input{font-family:"Noto Serif","Helvetica Neue",Helvetica,Arial,sans-serif}code,kbd,pre{font-family:"Roboto Mono","Courier New",Courier,monospace}</style>
+ <style>:root{--md-text-font-family:"Noto Serif";--md-code-font-family:"Roboto Mono"}</style>
- <link rel="stylesheet" href="assets/fonts/material-icons.css">
<link rel="stylesheet" href="stylesheets/extra.css">
+
+
</head>
+
+
+
+
- <body dir="ltr" data-md-color-primary="green" data-md-color-accent="green">
+ <body dir="ltr" data-md-color-scheme="" data-md-color-primary="green" data-md-color-accent="green">
- <svg class="md-svg">
- <defs>
-
-
- </defs>
- </svg>
- <input class="md-toggle" data-md-toggle="drawer" type="checkbox" id="__drawer" autocomplete="off">
- <input class="md-toggle" data-md-toggle="search" type="checkbox" id="__search" autocomplete="off">
- <label class="md-overlay" data-md-component="overlay" for="__drawer"></label>
- <a href="#bitmap-handling" tabindex="0" class="md-skip">
- Skip to content
- </a>
+ <script>function __prefix(e){return new URL(".",location).pathname+"."+e}function __get(e,t=localStorage){return JSON.parse(t.getItem(__prefix(e)))}</script>
+ <input class="md-toggle" data-md-toggle="drawer" type="checkbox" id="__drawer" autocomplete="off">
+ <input class="md-toggle" data-md-toggle="search" type="checkbox" id="__search" autocomplete="off">
+ <label class="md-overlay" for="__drawer"></label>
+ <div data-md-component="skip">
+
+
+ <a href="#bitmap-handling" class="md-skip">
+ Skip to content
+ </a>
+
+ </div>
+ <div data-md-component="announce">
+
+ </div>
<header class="md-header" data-md-component="header">
- <nav class="md-header-nav md-grid">
- <div class="md-flex">
- <div class="md-flex__cell md-flex__cell--shrink">
- <a href="." title="FreeType-2.10.4 API Reference" aria-label="FreeType-2.10.4 API Reference" class="md-header-nav__button md-logo">
-
- <img alt="logo" src="images/favico.ico" width="24" height="24">
-
- </a>
- </div>
- <div class="md-flex__cell md-flex__cell--shrink">
- <label class="md-icon md-icon--menu md-header-nav__button" for="__drawer"></label>
- </div>
- <div class="md-flex__cell md-flex__cell--stretch">
- <div class="md-flex__ellipsis md-header-nav__title" data-md-component="title">
-
- <span class="md-header-nav__topic">
- FreeType-2.10.4 API Reference
- </span>
- <span class="md-header-nav__topic">
-
- Bitmap Handling
-
- </span>
-
+ <nav class="md-header__inner md-grid" aria-label="Header">
+ <a href="index.html" title="FreeType-2.11.1 API Reference" class="md-header__button md-logo" aria-label="FreeType-2.11.1 API Reference" data-md-component="logo">
+
+ <img src="images/favico.ico" alt="logo">
+
+ </a>
+ <label class="md-header__button md-icon" for="__drawer">
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M3 6h18v2H3V6m0 5h18v2H3v-2m0 5h18v2H3v-2z"/></svg>
+ </label>
+ <div class="md-header__title" data-md-component="header-title">
+ <div class="md-header__ellipsis">
+ <div class="md-header__topic">
+ <span class="md-ellipsis">
+ FreeType-2.11.1 API Reference
+ </span>
+ </div>
+ <div class="md-header__topic" data-md-component="header-topic">
+ <span class="md-ellipsis">
+
+ Bitmap Handling
+
+ </span>
</div>
</div>
- <div class="md-flex__cell md-flex__cell--shrink">
-
- <label class="md-icon md-icon--search md-header-nav__button" for="__search"></label>
-
+ </div>
+
+
+
+ <label class="md-header__button md-icon" for="__search">
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M9.5 3A6.5 6.5 0 0 1 16 9.5c0 1.61-.59 3.09-1.56 4.23l.27.27h.79l5 5-1.5 1.5-5-5v-.79l-.27-.27A6.516 6.516 0 0 1 9.5 16 6.5 6.5 0 0 1 3 9.5 6.5 6.5 0 0 1 9.5 3m0 2C7 5 5 7 5 9.5S7 14 9.5 14 14 12 14 9.5 12 5 9.5 5z"/></svg>
+ </label>
+
<div class="md-search" data-md-component="search" role="dialog">
<label class="md-search__overlay" for="__search"></label>
<div class="md-search__inner" role="search">
<form class="md-search__form" name="search">
- <input type="text" class="md-search__input" aria-label="search" name="query" placeholder="Search" autocapitalize="off" autocorrect="off" autocomplete="off" spellcheck="false" data-md-component="query" data-md-state="active">
- <label class="md-icon md-search__icon" for="__search"></label>
- <button type="reset" class="md-icon md-search__icon" data-md-component="reset" tabindex="-1">
- &#xE5CD;
+ <input type="text" class="md-search__input" name="query" aria-label="Search" placeholder="Search" autocapitalize="off" autocorrect="off" autocomplete="off" spellcheck="false" data-md-component="search-query" data-md-state="active" required>
+ <label class="md-search__icon md-icon" for="__search">
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M9.5 3A6.5 6.5 0 0 1 16 9.5c0 1.61-.59 3.09-1.56 4.23l.27.27h.79l5 5-1.5 1.5-5-5v-.79l-.27-.27A6.516 6.516 0 0 1 9.5 16 6.5 6.5 0 0 1 3 9.5 6.5 6.5 0 0 1 9.5 3m0 2C7 5 5 7 5 9.5S7 14 9.5 14 14 12 14 9.5 12 5 9.5 5z"/></svg>
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M20 11v2H8l5.5 5.5-1.42 1.42L4.16 12l7.92-7.92L13.5 5.5 8 11h12z"/></svg>
+ </label>
+ <button type="reset" class="md-search__icon md-icon" aria-label="Clear" tabindex="-1">
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z"/></svg>
</button>
</form>
<div class="md-search__output">
<div class="md-search__scrollwrap" data-md-scrollfix>
- <div class="md-search-result" data-md-component="result">
+ <div class="md-search-result" data-md-component="search-result">
<div class="md-search-result__meta">
- Type to start searching
+ Initializing search
</div>
<ol class="md-search-result__list"></ol>
</div>
@@ -147,33 +138,35 @@
</div>
</div>
</div>
-
- </div>
-
- </div>
+
+
</nav>
</header>
- <div class="md-container">
+ <div class="md-container" data-md-component="container">
-
+
- <main class="md-main" role="main">
- <div class="md-main__inner md-grid" data-md-component="container">
+ <main class="md-main" data-md-component="main">
+ <div class="md-main__inner md-grid">
- <div class="md-sidebar md-sidebar--primary" data-md-component="navigation">
+
+ <div class="md-sidebar md-sidebar--primary" data-md-component="sidebar" data-md-type="navigation" >
<div class="md-sidebar__scrollwrap">
<div class="md-sidebar__inner">
- <nav class="md-nav md-nav--primary" data-md-level="0">
- <label class="md-nav__title md-nav__title--site" for="__drawer">
- <a href="." title="FreeType-2.10.4 API Reference" class="md-nav__button md-logo">
-
- <img alt="logo" src="images/favico.ico" width="48" height="48">
+
+
+
+<nav class="md-nav md-nav--primary" aria-label="Navigation" data-md-level="0">
+ <label class="md-nav__title" for="__drawer">
+ <a href="index.html" title="FreeType-2.11.1 API Reference" class="md-nav__button md-logo" aria-label="FreeType-2.11.1 API Reference" data-md-component="logo">
+ <img src="images/favico.ico" alt="logo">
+
</a>
- FreeType-2.10.4 API Reference
+ FreeType-2.11.1 API Reference
</label>
<ul class="md-nav__list" data-md-scrollfix>
@@ -182,516 +175,564 @@
-
- <li class="md-nav__item">
- <a href="index.html" title="TOC" class="md-nav__link">
- TOC
- </a>
- </li>
+
+
+
+ <li class="md-nav__item">
+ <a href="index.html" class="md-nav__link">
+ TOC
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-index.html" title="Index" class="md-nav__link">
- Index
- </a>
- </li>
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-index.html" class="md-nav__link">
+ Index
+ </a>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-3" type="checkbox" id="nav-3">
+
+
+
- <label class="md-nav__link" for="nav-3">
- General Remarks
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-3">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_3" type="checkbox" id="__nav_3" >
+
+ <label class="md-nav__link" for="__nav_3">
General Remarks
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
-
+ <nav class="md-nav" aria-label="General Remarks" data-md-level="1">
+ <label class="md-nav__title" for="__nav_3">
+ <span class="md-nav__icon md-icon"></span>
+ General Remarks
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
-
-
-
- <li class="md-nav__item">
- <a href="ft2-header_inclusion.html" title="FreeType's header inclusion scheme" class="md-nav__link">
- FreeType's header inclusion scheme
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-preamble.html" class="md-nav__link">
+ Preamble
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-header_inclusion.html" class="md-nav__link">
+ FreeType's header inclusion scheme
+ </a>
+ </li>
+
+
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-user_allocation.html" class="md-nav__link">
+ User allocation
+ </a>
+ </li>
+
- <li class="md-nav__item">
- <a href="ft2-user_allocation.html" title="User allocation" class="md-nav__link">
- User allocation
- </a>
- </li>
-
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-4" type="checkbox" id="nav-4">
+
+
+
- <label class="md-nav__link" for="nav-4">
- Core API
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-4">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_4" type="checkbox" id="__nav_4" >
+
+ <label class="md-nav__link" for="__nav_4">
Core API
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
-
+ <nav class="md-nav" aria-label="Core API" data-md-level="1">
+ <label class="md-nav__title" for="__nav_4">
+ <span class="md-nav__icon md-icon"></span>
+ Core API
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
-
-
-
- <li class="md-nav__item">
- <a href="ft2-version.html" title="FreeType Version" class="md-nav__link">
- FreeType Version
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-version.html" class="md-nav__link">
+ FreeType Version
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-basic_types.html" class="md-nav__link">
+ Basic Data Types
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-basic_types.html" title="Basic Data Types" class="md-nav__link">
- Basic Data Types
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-base_interface.html" title="Base Interface" class="md-nav__link">
- Base Interface
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-base_interface.html" class="md-nav__link">
+ Base Interface
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-glyph_variants.html" class="md-nav__link">
+ Unicode Variation Sequences
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-glyph_variants.html" title="Unicode Variation Sequences" class="md-nav__link">
- Unicode Variation Sequences
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-color_management.html" title="Glyph Color Management" class="md-nav__link">
- Glyph Color Management
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-color_management.html" class="md-nav__link">
+ Glyph Color Management
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-layer_management.html" title="Glyph Layer Management" class="md-nav__link">
- Glyph Layer Management
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-layer_management.html" class="md-nav__link">
+ Glyph Layer Management
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-glyph_management.html" title="Glyph Management" class="md-nav__link">
- Glyph Management
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-glyph_management.html" class="md-nav__link">
+ Glyph Management
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-mac_specific.html" class="md-nav__link">
+ Mac Specific Interface
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-mac_specific.html" title="Mac Specific Interface" class="md-nav__link">
- Mac Specific Interface
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-sizes_management.html" title="Size Management" class="md-nav__link">
- Size Management
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-sizes_management.html" class="md-nav__link">
+ Size Management
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-header_file_macros.html" title="Header File Macros" class="md-nav__link">
- Header File Macros
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-header_file_macros.html" class="md-nav__link">
+ Header File Macros
+ </a>
+ </li>
+
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-5" type="checkbox" id="nav-5">
+
+
+
- <label class="md-nav__link" for="nav-5">
- Format-Specific API
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-5">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_5" type="checkbox" id="__nav_5" >
+
+ <label class="md-nav__link" for="__nav_5">
Format-Specific API
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
-
+ <nav class="md-nav" aria-label="Format-Specific API" data-md-level="1">
+ <label class="md-nav__title" for="__nav_5">
+ <span class="md-nav__icon md-icon"></span>
+ Format-Specific API
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
-
-
-
- <li class="md-nav__item">
- <a href="ft2-multiple_masters.html" title="Multiple Masters" class="md-nav__link">
- Multiple Masters
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-multiple_masters.html" class="md-nav__link">
+ Multiple Masters
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-truetype_tables.html" title="TrueType Tables" class="md-nav__link">
- TrueType Tables
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-truetype_tables.html" class="md-nav__link">
+ TrueType Tables
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-type1_tables.html" title="Type 1 Tables" class="md-nav__link">
- Type 1 Tables
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-type1_tables.html" class="md-nav__link">
+ Type 1 Tables
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-sfnt_names.html" class="md-nav__link">
+ SFNT Names
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-sfnt_names.html" title="SFNT Names" class="md-nav__link">
- SFNT Names
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-bdf_fonts.html" title="BDF and PCF Files" class="md-nav__link">
- BDF and PCF Files
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-bdf_fonts.html" class="md-nav__link">
+ BDF and PCF Files
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-cid_fonts.html" title="CID Fonts" class="md-nav__link">
- CID Fonts
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-cid_fonts.html" class="md-nav__link">
+ CID Fonts
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-pfr_fonts.html" title="PFR Fonts" class="md-nav__link">
- PFR Fonts
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-pfr_fonts.html" class="md-nav__link">
+ PFR Fonts
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-winfnt_fonts.html" class="md-nav__link">
+ Window FNT Files
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-winfnt_fonts.html" title="Window FNT Files" class="md-nav__link">
- Window FNT Files
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-font_formats.html" title="Font Formats" class="md-nav__link">
- Font Formats
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-font_formats.html" class="md-nav__link">
+ Font Formats
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-gasp_table.html" title="Gasp Table" class="md-nav__link">
- Gasp Table
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-gasp_table.html" class="md-nav__link">
+ Gasp Table
+ </a>
+ </li>
+
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-6" type="checkbox" id="nav-6">
+
+
+
- <label class="md-nav__link" for="nav-6">
- Controlling FreeType Modules
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-6">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_6" type="checkbox" id="__nav_6" >
+
+ <label class="md-nav__link" for="__nav_6">
Controlling FreeType Modules
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
-
-
+ <nav class="md-nav" aria-label="Controlling FreeType Modules" data-md-level="1">
+ <label class="md-nav__title" for="__nav_6">
+ <span class="md-nav__icon md-icon"></span>
+ Controlling FreeType Modules
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-auto_hinter.html" class="md-nav__link">
+ The auto-hinter
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-auto_hinter.html" title="The auto-hinter" class="md-nav__link">
- The auto-hinter
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-cff_driver.html" title="The CFF driver" class="md-nav__link">
- The CFF driver
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-cff_driver.html" class="md-nav__link">
+ The CFF driver
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-t1_cid_driver.html" class="md-nav__link">
+ The Type 1 and CID drivers
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-t1_cid_driver.html" title="The Type 1 and CID drivers" class="md-nav__link">
- The Type 1 and CID drivers
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-tt_driver.html" title="The TrueType driver" class="md-nav__link">
- The TrueType driver
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-tt_driver.html" class="md-nav__link">
+ The TrueType driver
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-pcf_driver.html" class="md-nav__link">
+ The PCF driver
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-pcf_driver.html" title="The PCF driver" class="md-nav__link">
- The PCF driver
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-properties.html" title="Driver properties" class="md-nav__link">
- Driver properties
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-properties.html" class="md-nav__link">
+ Driver properties
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-parameter_tags.html" class="md-nav__link">
+ Parameter Tags
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-parameter_tags.html" title="Parameter Tags" class="md-nav__link">
- Parameter Tags
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-lcd_rendering.html" title="Subpixel Rendering" class="md-nav__link">
- Subpixel Rendering
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-lcd_rendering.html" class="md-nav__link">
+ Subpixel Rendering
+ </a>
+ </li>
+
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-7" type="checkbox" id="nav-7">
+
+
+
- <label class="md-nav__link" for="nav-7">
- Cache Sub-System
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-7">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_7" type="checkbox" id="__nav_7" >
+
+ <label class="md-nav__link" for="__nav_7">
Cache Sub-System
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
-
+ <nav class="md-nav" aria-label="Cache Sub-System" data-md-level="1">
+ <label class="md-nav__title" for="__nav_7">
+ <span class="md-nav__icon md-icon"></span>
+ Cache Sub-System
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
-
-
-
- <li class="md-nav__item">
- <a href="ft2-cache_subsystem.html" title="Cache Sub-System" class="md-nav__link">
- Cache Sub-System
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-cache_subsystem.html" class="md-nav__link">
+ Cache Sub-System
+ </a>
+ </li>
+
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
@@ -699,101 +740,111 @@
-
-
- <li class="md-nav__item md-nav__item--active md-nav__item--nested">
+
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-8" type="checkbox" id="nav-8" checked>
+
+
- <label class="md-nav__link" for="nav-8">
- Support API
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-8">
+ <li class="md-nav__item md-nav__item--active md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_8" type="checkbox" id="__nav_8" checked>
+
+ <label class="md-nav__link" for="__nav_8">
Support API
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
+ <nav class="md-nav" aria-label="Support API" data-md-level="1">
+ <label class="md-nav__title" for="__nav_8">
+ <span class="md-nav__icon md-icon"></span>
+ Support API
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-computations.html" title="Computations" class="md-nav__link">
- Computations
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-computations.html" class="md-nav__link">
+ Computations
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-list_processing.html" class="md-nav__link">
+ List Processing
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-list_processing.html" title="List Processing" class="md-nav__link">
- List Processing
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-outline_processing.html" title="Outline Processing" class="md-nav__link">
- Outline Processing
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-outline_processing.html" class="md-nav__link">
+ Outline Processing
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-quick_advance.html" title="Quick retrieval of advance values" class="md-nav__link">
- Quick retrieval of advance values
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-quick_advance.html" class="md-nav__link">
+ Quick retrieval of advance values
+ </a>
+ </li>
+
-
-
-
-
+
+
-
-
- <li class="md-nav__item md-nav__item--active">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="toc" type="checkbox" id="__toc">
+
+
+ <li class="md-nav__item md-nav__item--active">
-
-
- <label class="md-nav__link md-nav__link--active" for="__toc">
+ <input class="md-nav__toggle md-toggle" data-md-toggle="toc" type="checkbox" id="__toc">
+
+
+
+
+
+ <label class="md-nav__link md-nav__link--active" for="__toc">
+ Bitmap Handling
+ <span class="md-nav__icon md-icon"></span>
+ </label>
+
+ <a href="ft2-bitmap_handling.html" class="md-nav__link md-nav__link--active">
Bitmap Handling
- </label>
-
- <a href="ft2-bitmap_handling.html" title="Bitmap Handling" class="md-nav__link md-nav__link--active">
- Bitmap Handling
- </a>
-
+ </a>
-<nav class="md-nav md-nav--secondary">
+
+<nav class="md-nav md-nav--secondary" aria-label="Table of contents">
+
- <label class="md-nav__title" for="__toc">Table of contents</label>
- <ul class="md-nav__list" data-md-scrollfix>
+ <label class="md-nav__title" for="__toc">
+ <span class="md-nav__icon md-icon"></span>
+ Table of contents
+ </label>
+ <ul class="md-nav__list" data-md-component="toc" data-md-scrollfix>
<li class="md-nav__item">
<a href="#synopsis" class="md-nav__link">
@@ -851,224 +902,246 @@
</li>
-
-
-
-
</ul>
</nav>
-
- </li>
+
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-raster.html" title="Scanline Converter" class="md-nav__link">
- Scanline Converter
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-raster.html" class="md-nav__link">
+ Scanline Converter
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-glyph_stroker.html" title="Glyph Stroker" class="md-nav__link">
- Glyph Stroker
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-glyph_stroker.html" class="md-nav__link">
+ Glyph Stroker
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-system_interface.html" title="System Interface" class="md-nav__link">
- System Interface
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-system_interface.html" class="md-nav__link">
+ System Interface
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-module_management.html" title="Module Management" class="md-nav__link">
- Module Management
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-module_management.html" class="md-nav__link">
+ Module Management
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-gzip.html" title="GZIP Streams" class="md-nav__link">
- GZIP Streams
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-gzip.html" class="md-nav__link">
+ GZIP Streams
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-lzw.html" title="LZW Streams" class="md-nav__link">
- LZW Streams
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-lzw.html" class="md-nav__link">
+ LZW Streams
+ </a>
+ </li>
+
-
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-bzip2.html" class="md-nav__link">
+ BZIP2 Streams
+ </a>
+ </li>
+
- <li class="md-nav__item">
- <a href="ft2-bzip2.html" title="BZIP2 Streams" class="md-nav__link">
- BZIP2 Streams
- </a>
- </li>
+
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-debugging_apis.html" class="md-nav__link">
+ External Debugging APIs
+ </a>
+ </li>
+
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-9" type="checkbox" id="nav-9">
+
+
+
- <label class="md-nav__link" for="nav-9">
- Error Codes
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-9">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_9" type="checkbox" id="__nav_9" >
+
+ <label class="md-nav__link" for="__nav_9">
Error Codes
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
-
+ <nav class="md-nav" aria-label="Error Codes" data-md-level="1">
+ <label class="md-nav__title" for="__nav_9">
+ <span class="md-nav__icon md-icon"></span>
+ Error Codes
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
-
-
-
- <li class="md-nav__item">
- <a href="ft2-error_enumerations.html" title="Error Enumerations" class="md-nav__link">
- Error Enumerations
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-error_enumerations.html" class="md-nav__link">
+ Error Enumerations
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-error_code_values.html" title="Error Code Values" class="md-nav__link">
- Error Code Values
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-error_code_values.html" class="md-nav__link">
+ Error Code Values
+ </a>
+ </li>
+
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-10" type="checkbox" id="nav-10">
+
+
+
- <label class="md-nav__link" for="nav-10">
- Miscellaneous
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-10">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_10" type="checkbox" id="__nav_10" >
+
+ <label class="md-nav__link" for="__nav_10">
Miscellaneous
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
-
+ <nav class="md-nav" aria-label="Miscellaneous" data-md-level="1">
+ <label class="md-nav__title" for="__nav_10">
+ <span class="md-nav__icon md-icon"></span>
+ Miscellaneous
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
-
-
-
- <li class="md-nav__item">
- <a href="ft2-gx_validation.html" title="TrueTypeGX/AAT Validation" class="md-nav__link">
- TrueTypeGX/AAT Validation
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-gx_validation.html" class="md-nav__link">
+ TrueTypeGX/AAT Validation
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-incremental.html" title="Incremental Loading" class="md-nav__link">
- Incremental Loading
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-incremental.html" class="md-nav__link">
+ Incremental Loading
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-truetype_engine.html" class="md-nav__link">
+ The TrueType Engine
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-truetype_engine.html" title="The TrueType Engine" class="md-nav__link">
- The TrueType Engine
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-ot_validation.html" title="OpenType Validation" class="md-nav__link">
- OpenType Validation
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-ot_validation.html" class="md-nav__link">
+ OpenType Validation
+ </a>
+ </li>
+
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
</ul>
@@ -1078,18 +1151,23 @@
</div>
- <div class="md-sidebar md-sidebar--secondary" data-md-component="toc">
+
+ <div class="md-sidebar md-sidebar--secondary" data-md-component="sidebar" data-md-type="toc" >
<div class="md-sidebar__scrollwrap">
<div class="md-sidebar__inner">
-<nav class="md-nav md-nav--secondary">
+<nav class="md-nav md-nav--secondary" aria-label="Table of contents">
+
- <label class="md-nav__title" for="__toc">Table of contents</label>
- <ul class="md-nav__list" data-md-scrollfix>
+ <label class="md-nav__title" for="__toc">
+ <span class="md-nav__icon md-icon"></span>
+ Table of contents
+ </label>
+ <ul class="md-nav__list" data-md-component="toc" data-md-scrollfix>
<li class="md-nav__item">
<a href="#synopsis" class="md-nav__link">
@@ -1147,10 +1225,6 @@
</li>
-
-
-
-
</ul>
</nav>
@@ -1159,7 +1233,7 @@
</div>
- <div class="md-content">
+ <div class="md-content" data-md-component="content">
<article class="md-content__inner md-typeset">
@@ -1176,6 +1250,7 @@
<div class = "codehilite"><pre><code> FT_EXPORT( <span class="keyword">void</span> )
<b>FT_Bitmap_Init</b>( <a href="ft2-basic_types.html#ft_bitmap">FT_Bitmap</a> *abitmap );
+
/* deprecated */
FT_EXPORT( <span class="keyword">void</span> )
FT_Bitmap_New( <a href="ft2-basic_types.html#ft_bitmap">FT_Bitmap</a> *abitmap );
@@ -1183,7 +1258,6 @@
<p>Initialize a pointer to an <code><a href="ft2-basic_types.html#ft_bitmap">FT_Bitmap</a></code> structure.</p>
<h4>inout</h4>
-
<table class="fields">
<tr><td class="val" id="abitmap">abitmap</td><td class="desc">
<p>A pointer to the bitmap structure.</p>
@@ -1205,7 +1279,6 @@
<p>Copy a bitmap into another one.</p>
<h4>input</h4>
-
<table class="fields">
<tr><td class="val" id="library">library</td><td class="desc">
<p>A handle to a library object.</p>
@@ -1216,7 +1289,6 @@
</table>
<h4>output</h4>
-
<table class="fields">
<tr><td class="val" id="target">target</td><td class="desc">
<p>A handle to the target bitmap.</p>
@@ -1242,7 +1314,6 @@
<p>Embolden a bitmap. The new bitmap will be about <code>xStrength</code> pixels wider and <code>yStrength</code> pixels higher. The left and bottom borders are kept unchanged.</p>
<h4>input</h4>
-
<table class="fields">
<tr><td class="val" id="library">library</td><td class="desc">
<p>A handle to a library object.</p>
@@ -1256,7 +1327,6 @@
</table>
<h4>inout</h4>
-
<table class="fields">
<tr><td class="val" id="bitmap">bitmap</td><td class="desc">
<p>A handle to the target bitmap.</p>
@@ -1284,7 +1354,6 @@
<p>Convert a bitmap object with depth 1bpp, 2bpp, 4bpp, 8bpp or 32bpp to a bitmap object with depth 8bpp, making the number of used bytes per line (a.k.a. the &lsquo;pitch&rsquo;) a multiple of <code>alignment</code>.</p>
<h4>input</h4>
-
<table class="fields">
<tr><td class="val" id="library">library</td><td class="desc">
<p>A handle to a library object.</p>
@@ -1298,7 +1367,6 @@
</table>
<h4>output</h4>
-
<table class="fields">
<tr><td class="val" id="target">target</td><td class="desc">
<p>The target bitmap.</p>
@@ -1329,7 +1397,6 @@
<p>Blend a bitmap onto another bitmap, using a given color.</p>
<h4>input</h4>
-
<table class="fields">
<tr><td class="val" id="library">library</td><td class="desc">
<p>A handle to a library object.</p>
@@ -1346,7 +1413,6 @@
</table>
<h4>inout</h4>
-
<table class="fields">
<tr><td class="val" id="target">target</td><td class="desc">
<p>A handle to an <code>FT_Bitmap</code> object. It should be either initialized as empty with a call to <code><a href="ft2-bitmap_handling.html#ft_bitmap_init">FT_Bitmap_Init</a></code>, or it should be of type <code><a href="ft2-basic_types.html#ft_pixel_mode">FT_PIXEL_MODE_BGRA</a></code>.</p>
@@ -1378,7 +1444,6 @@
<p>Make sure that a glyph slot owns <code>slot-&gt;bitmap</code>.</p>
<h4>input</h4>
-
<table class="fields">
<tr><td class="val" id="slot">slot</td><td class="desc">
<p>The glyph slot.</p>
@@ -1402,7 +1467,6 @@
<p>Destroy a bitmap object initialized with <code><a href="ft2-bitmap_handling.html#ft_bitmap_init">FT_Bitmap_Init</a></code>.</p>
<h4>input</h4>
-
<table class="fields">
<tr><td class="val" id="library">library</td><td class="desc">
<p>A handle to a library object.</p>
@@ -1420,9 +1484,6 @@
<p>The <code>library</code> argument is taken to have access to FreeType's memory handling functions.</p>
<hr>
-
-
-
@@ -1432,59 +1493,60 @@
</article>
</div>
</div>
+
</main>
<footer class="md-footer">
- <div class="md-footer-nav">
- <nav class="md-footer-nav__inner md-grid">
+ <nav class="md-footer__inner md-grid" aria-label="Footer">
+
- <a href="ft2-quick_advance.html" title="Quick retrieval of advance values" class="md-flex md-footer-nav__link md-footer-nav__link--prev" rel="prev">
- <div class="md-flex__cell md-flex__cell--shrink">
- <i class="md-icon md-icon--arrow-back md-footer-nav__button"></i>
- </div>
- <div class="md-flex__cell md-flex__cell--stretch md-footer-nav__title">
- <span class="md-flex__ellipsis">
- <span class="md-footer-nav__direction">
- Previous
- </span>
- Quick retrieval of advance values
+ <a href="ft2-quick_advance.html" class="md-footer__link md-footer__link--prev" aria-label="Previous: Quick retrieval of advance values" rel="prev">
+ <div class="md-footer__button md-icon">
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M20 11v2H8l5.5 5.5-1.42 1.42L4.16 12l7.92-7.92L13.5 5.5 8 11h12z"/></svg>
+ </div>
+ <div class="md-footer__title">
+ <div class="md-ellipsis">
+ <span class="md-footer__direction">
+ Previous
</span>
+ Quick retrieval of advance values
</div>
- </a>
-
+ </div>
+ </a>
+
+
- <a href="ft2-raster.html" title="Scanline Converter" class="md-flex md-footer-nav__link md-footer-nav__link--next" rel="next">
- <div class="md-flex__cell md-flex__cell--stretch md-footer-nav__title">
- <span class="md-flex__ellipsis">
- <span class="md-footer-nav__direction">
- Next
- </span>
- Scanline Converter
+ <a href="ft2-raster.html" class="md-footer__link md-footer__link--next" aria-label="Next: Scanline Converter" rel="next">
+ <div class="md-footer__title">
+ <div class="md-ellipsis">
+ <span class="md-footer__direction">
+ Next
</span>
+ Scanline Converter
</div>
- <div class="md-flex__cell md-flex__cell--shrink">
- <i class="md-icon md-icon--arrow-forward md-footer-nav__button"></i>
- </div>
- </a>
-
- </nav>
- </div>
+ </div>
+ <div class="md-footer__button md-icon">
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M4 11v2h12l-5.5 5.5 1.42 1.42L19.84 12l-7.92-7.92L10.5 5.5 16 11H4z"/></svg>
+ </div>
+ </a>
+
+ </nav>
<div class="md-footer-meta md-typeset">
<div class="md-footer-meta__inner md-grid">
<div class="md-footer-copyright">
<div class="md-footer-copyright__highlight">
- Copyright 2020 <a href = "https://www.freetype.org/license.html">The FreeType Project</a>.
+ Copyright 2021 <a href = "https://www.freetype.org/license.html">The FreeType Project</a>.
</div>
- powered by
- <a href="https://www.mkdocs.org" target="_blank" rel="noopener">MkDocs</a>
- and
+ Made with
<a href="https://squidfunk.github.io/mkdocs-material/" target="_blank" rel="noopener">
- Material for MkDocs</a>
+ Material for MkDocs
+ </a>
+
</div>
</div>
@@ -1492,10 +1554,13 @@
</footer>
</div>
+ <div class="md-dialog" data-md-component="dialog">
+ <div class="md-dialog__inner md-typeset"></div>
+ </div>
+ <script id="__config" type="application/json">{"base": ".", "features": [], "translations": {"clipboard.copy": "Copy to clipboard", "clipboard.copied": "Copied to clipboard", "search.config.lang": "en", "search.config.pipeline": "trimmer, stopWordFilter", "search.config.separator": "[\\s\\-]+", "search.placeholder": "Search", "search.result.placeholder": "Type to start searching", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.term.missing": "Missing", "select.version.title": "Select version"}, "search": "assets/javascripts/workers/search.477d984a.min.js", "version": null}</script>
- <script src="assets/javascripts/application.c33a9706.js"></script>
-
- <script>app.initialize({version:"1.1",url:{base:"."}})</script>
+
+ <script src="assets/javascripts/bundle.82b56eb2.min.js"></script>
<script src="javascripts/extra.js"></script>
diff --git a/freetype/docs/reference/ft2-bzip2.html b/freetype/docs/reference/ft2-bzip2.html
index 5b7d1b26..8d0eb93b 100644
--- a/freetype/docs/reference/ft2-bzip2.html
+++ b/freetype/docs/reference/ft2-bzip2.html
@@ -1,145 +1,136 @@
-
-
-
<!doctype html>
<html lang="en" class="no-js">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
- <meta http-equiv="x-ua-compatible" content="ie=edge">
- <meta name="description" content="API Reference Documentation for FreeType-2.10.4">
+ <meta name="description" content="API Reference Documentation for FreeType-2.11.1">
<meta name="author" content="FreeType Contributors">
- <meta name="lang:clipboard.copy" content="Copy to clipboard">
-
- <meta name="lang:clipboard.copied" content="Copied to clipboard">
-
- <meta name="lang:search.language" content="en">
-
- <meta name="lang:search.pipeline.stopwords" content="True">
-
- <meta name="lang:search.pipeline.trimmer" content="True">
-
- <meta name="lang:search.result.none" content="No matching documents">
-
- <meta name="lang:search.result.one" content="1 matching document">
-
- <meta name="lang:search.result.other" content="# matching documents">
-
- <meta name="lang:search.tokenizer" content="[\s\-]+">
-
- <link rel="shortcut icon" href="images/favico.ico">
- <meta name="generator" content="mkdocs-1.1, mkdocs-material-4.6.3">
+ <link rel="icon" href="images/favico.ico">
+ <meta name="generator" content="mkdocs-1.2.1, mkdocs-material-7.1.9">
- <title>BZIP2 Streams - FreeType-2.10.4 API Reference</title>
+ <title>BZIP2 Streams - FreeType-2.11.1 API Reference</title>
- <link rel="stylesheet" href="assets/stylesheets/application.adb8469c.css">
-
- <link rel="stylesheet" href="assets/stylesheets/application-palette.a8b3c06d.css">
-
+ <link rel="stylesheet" href="assets/stylesheets/main.ca7ac06f.min.css">
+ <link rel="stylesheet" href="assets/stylesheets/palette.f1a3b89f.min.css">
+
+
+
+ <meta name="theme-color" content="#4cae4f">
- <meta name="theme-color" content="#4caf50">
- <script src="assets/javascripts/modernizr.86422ebf.js"></script>
-
- <link href="https://fonts.gstatic.com" rel="preconnect" crossorigin>
+
+ <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Noto+Serif:300,400,400i,700%7CRoboto+Mono&display=fallback">
- <style>body,input{font-family:"Noto Serif","Helvetica Neue",Helvetica,Arial,sans-serif}code,kbd,pre{font-family:"Roboto Mono","Courier New",Courier,monospace}</style>
+ <style>:root{--md-text-font-family:"Noto Serif";--md-code-font-family:"Roboto Mono"}</style>
- <link rel="stylesheet" href="assets/fonts/material-icons.css">
<link rel="stylesheet" href="stylesheets/extra.css">
+
+
</head>
+
+
+
+
- <body dir="ltr" data-md-color-primary="green" data-md-color-accent="green">
+ <body dir="ltr" data-md-color-scheme="" data-md-color-primary="green" data-md-color-accent="green">
- <svg class="md-svg">
- <defs>
-
-
- </defs>
- </svg>
- <input class="md-toggle" data-md-toggle="drawer" type="checkbox" id="__drawer" autocomplete="off">
- <input class="md-toggle" data-md-toggle="search" type="checkbox" id="__search" autocomplete="off">
- <label class="md-overlay" data-md-component="overlay" for="__drawer"></label>
- <a href="#bzip2-streams" tabindex="0" class="md-skip">
- Skip to content
- </a>
+ <script>function __prefix(e){return new URL(".",location).pathname+"."+e}function __get(e,t=localStorage){return JSON.parse(t.getItem(__prefix(e)))}</script>
+ <input class="md-toggle" data-md-toggle="drawer" type="checkbox" id="__drawer" autocomplete="off">
+ <input class="md-toggle" data-md-toggle="search" type="checkbox" id="__search" autocomplete="off">
+ <label class="md-overlay" for="__drawer"></label>
+ <div data-md-component="skip">
+
+
+ <a href="#bzip2-streams" class="md-skip">
+ Skip to content
+ </a>
+
+ </div>
+ <div data-md-component="announce">
+
+ </div>
<header class="md-header" data-md-component="header">
- <nav class="md-header-nav md-grid">
- <div class="md-flex">
- <div class="md-flex__cell md-flex__cell--shrink">
- <a href="." title="FreeType-2.10.4 API Reference" aria-label="FreeType-2.10.4 API Reference" class="md-header-nav__button md-logo">
-
- <img alt="logo" src="images/favico.ico" width="24" height="24">
-
- </a>
- </div>
- <div class="md-flex__cell md-flex__cell--shrink">
- <label class="md-icon md-icon--menu md-header-nav__button" for="__drawer"></label>
- </div>
- <div class="md-flex__cell md-flex__cell--stretch">
- <div class="md-flex__ellipsis md-header-nav__title" data-md-component="title">
-
- <span class="md-header-nav__topic">
- FreeType-2.10.4 API Reference
- </span>
- <span class="md-header-nav__topic">
-
- BZIP2 Streams
-
- </span>
-
+ <nav class="md-header__inner md-grid" aria-label="Header">
+ <a href="index.html" title="FreeType-2.11.1 API Reference" class="md-header__button md-logo" aria-label="FreeType-2.11.1 API Reference" data-md-component="logo">
+
+ <img src="images/favico.ico" alt="logo">
+
+ </a>
+ <label class="md-header__button md-icon" for="__drawer">
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M3 6h18v2H3V6m0 5h18v2H3v-2m0 5h18v2H3v-2z"/></svg>
+ </label>
+ <div class="md-header__title" data-md-component="header-title">
+ <div class="md-header__ellipsis">
+ <div class="md-header__topic">
+ <span class="md-ellipsis">
+ FreeType-2.11.1 API Reference
+ </span>
+ </div>
+ <div class="md-header__topic" data-md-component="header-topic">
+ <span class="md-ellipsis">
+
+ BZIP2 Streams
+
+ </span>
</div>
</div>
- <div class="md-flex__cell md-flex__cell--shrink">
-
- <label class="md-icon md-icon--search md-header-nav__button" for="__search"></label>
-
+ </div>
+
+
+
+ <label class="md-header__button md-icon" for="__search">
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M9.5 3A6.5 6.5 0 0 1 16 9.5c0 1.61-.59 3.09-1.56 4.23l.27.27h.79l5 5-1.5 1.5-5-5v-.79l-.27-.27A6.516 6.516 0 0 1 9.5 16 6.5 6.5 0 0 1 3 9.5 6.5 6.5 0 0 1 9.5 3m0 2C7 5 5 7 5 9.5S7 14 9.5 14 14 12 14 9.5 12 5 9.5 5z"/></svg>
+ </label>
+
<div class="md-search" data-md-component="search" role="dialog">
<label class="md-search__overlay" for="__search"></label>
<div class="md-search__inner" role="search">
<form class="md-search__form" name="search">
- <input type="text" class="md-search__input" aria-label="search" name="query" placeholder="Search" autocapitalize="off" autocorrect="off" autocomplete="off" spellcheck="false" data-md-component="query" data-md-state="active">
- <label class="md-icon md-search__icon" for="__search"></label>
- <button type="reset" class="md-icon md-search__icon" data-md-component="reset" tabindex="-1">
- &#xE5CD;
+ <input type="text" class="md-search__input" name="query" aria-label="Search" placeholder="Search" autocapitalize="off" autocorrect="off" autocomplete="off" spellcheck="false" data-md-component="search-query" data-md-state="active" required>
+ <label class="md-search__icon md-icon" for="__search">
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M9.5 3A6.5 6.5 0 0 1 16 9.5c0 1.61-.59 3.09-1.56 4.23l.27.27h.79l5 5-1.5 1.5-5-5v-.79l-.27-.27A6.516 6.516 0 0 1 9.5 16 6.5 6.5 0 0 1 3 9.5 6.5 6.5 0 0 1 9.5 3m0 2C7 5 5 7 5 9.5S7 14 9.5 14 14 12 14 9.5 12 5 9.5 5z"/></svg>
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M20 11v2H8l5.5 5.5-1.42 1.42L4.16 12l7.92-7.92L13.5 5.5 8 11h12z"/></svg>
+ </label>
+ <button type="reset" class="md-search__icon md-icon" aria-label="Clear" tabindex="-1">
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z"/></svg>
</button>
</form>
<div class="md-search__output">
<div class="md-search__scrollwrap" data-md-scrollfix>
- <div class="md-search-result" data-md-component="result">
+ <div class="md-search-result" data-md-component="search-result">
<div class="md-search-result__meta">
- Type to start searching
+ Initializing search
</div>
<ol class="md-search-result__list"></ol>
</div>
@@ -147,33 +138,35 @@
</div>
</div>
</div>
-
- </div>
-
- </div>
+
+
</nav>
</header>
- <div class="md-container">
+ <div class="md-container" data-md-component="container">
-
+
- <main class="md-main" role="main">
- <div class="md-main__inner md-grid" data-md-component="container">
+ <main class="md-main" data-md-component="main">
+ <div class="md-main__inner md-grid">
- <div class="md-sidebar md-sidebar--primary" data-md-component="navigation">
+
+ <div class="md-sidebar md-sidebar--primary" data-md-component="sidebar" data-md-type="navigation" >
<div class="md-sidebar__scrollwrap">
<div class="md-sidebar__inner">
- <nav class="md-nav md-nav--primary" data-md-level="0">
- <label class="md-nav__title md-nav__title--site" for="__drawer">
- <a href="." title="FreeType-2.10.4 API Reference" class="md-nav__button md-logo">
-
- <img alt="logo" src="images/favico.ico" width="48" height="48">
+
+
+
+<nav class="md-nav md-nav--primary" aria-label="Navigation" data-md-level="0">
+ <label class="md-nav__title" for="__drawer">
+ <a href="index.html" title="FreeType-2.11.1 API Reference" class="md-nav__button md-logo" aria-label="FreeType-2.11.1 API Reference" data-md-component="logo">
+ <img src="images/favico.ico" alt="logo">
+
</a>
- FreeType-2.10.4 API Reference
+ FreeType-2.11.1 API Reference
</label>
<ul class="md-nav__list" data-md-scrollfix>
@@ -182,516 +175,564 @@
-
- <li class="md-nav__item">
- <a href="index.html" title="TOC" class="md-nav__link">
- TOC
- </a>
- </li>
+
+
+
+ <li class="md-nav__item">
+ <a href="index.html" class="md-nav__link">
+ TOC
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-index.html" title="Index" class="md-nav__link">
- Index
- </a>
- </li>
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-index.html" class="md-nav__link">
+ Index
+ </a>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-3" type="checkbox" id="nav-3">
+
+
+
- <label class="md-nav__link" for="nav-3">
- General Remarks
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-3">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_3" type="checkbox" id="__nav_3" >
+
+ <label class="md-nav__link" for="__nav_3">
General Remarks
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
+ <nav class="md-nav" aria-label="General Remarks" data-md-level="1">
+ <label class="md-nav__title" for="__nav_3">
+ <span class="md-nav__icon md-icon"></span>
+ General Remarks
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-header_inclusion.html" title="FreeType's header inclusion scheme" class="md-nav__link">
- FreeType's header inclusion scheme
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-preamble.html" class="md-nav__link">
+ Preamble
+ </a>
+ </li>
+
-
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-header_inclusion.html" class="md-nav__link">
+ FreeType's header inclusion scheme
+ </a>
+ </li>
+
- <li class="md-nav__item">
- <a href="ft2-user_allocation.html" title="User allocation" class="md-nav__link">
- User allocation
- </a>
- </li>
+
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-user_allocation.html" class="md-nav__link">
+ User allocation
+ </a>
+ </li>
+
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-4" type="checkbox" id="nav-4">
+
+
+
- <label class="md-nav__link" for="nav-4">
- Core API
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-4">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_4" type="checkbox" id="__nav_4" >
+
+ <label class="md-nav__link" for="__nav_4">
Core API
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
+ <nav class="md-nav" aria-label="Core API" data-md-level="1">
+ <label class="md-nav__title" for="__nav_4">
+ <span class="md-nav__icon md-icon"></span>
+ Core API
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-version.html" title="FreeType Version" class="md-nav__link">
- FreeType Version
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-version.html" class="md-nav__link">
+ FreeType Version
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-basic_types.html" title="Basic Data Types" class="md-nav__link">
- Basic Data Types
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-basic_types.html" class="md-nav__link">
+ Basic Data Types
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-base_interface.html" title="Base Interface" class="md-nav__link">
- Base Interface
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-base_interface.html" class="md-nav__link">
+ Base Interface
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-glyph_variants.html" title="Unicode Variation Sequences" class="md-nav__link">
- Unicode Variation Sequences
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-glyph_variants.html" class="md-nav__link">
+ Unicode Variation Sequences
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-color_management.html" class="md-nav__link">
+ Glyph Color Management
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-color_management.html" title="Glyph Color Management" class="md-nav__link">
- Glyph Color Management
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-layer_management.html" title="Glyph Layer Management" class="md-nav__link">
- Glyph Layer Management
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-layer_management.html" class="md-nav__link">
+ Glyph Layer Management
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-glyph_management.html" class="md-nav__link">
+ Glyph Management
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-glyph_management.html" title="Glyph Management" class="md-nav__link">
- Glyph Management
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-mac_specific.html" title="Mac Specific Interface" class="md-nav__link">
- Mac Specific Interface
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-mac_specific.html" class="md-nav__link">
+ Mac Specific Interface
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-sizes_management.html" class="md-nav__link">
+ Size Management
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-sizes_management.html" title="Size Management" class="md-nav__link">
- Size Management
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-header_file_macros.html" title="Header File Macros" class="md-nav__link">
- Header File Macros
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-header_file_macros.html" class="md-nav__link">
+ Header File Macros
+ </a>
+ </li>
+
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-5" type="checkbox" id="nav-5">
+
+
+
- <label class="md-nav__link" for="nav-5">
- Format-Specific API
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-5">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_5" type="checkbox" id="__nav_5" >
+
+ <label class="md-nav__link" for="__nav_5">
Format-Specific API
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
-
+ <nav class="md-nav" aria-label="Format-Specific API" data-md-level="1">
+ <label class="md-nav__title" for="__nav_5">
+ <span class="md-nav__icon md-icon"></span>
+ Format-Specific API
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
-
-
-
- <li class="md-nav__item">
- <a href="ft2-multiple_masters.html" title="Multiple Masters" class="md-nav__link">
- Multiple Masters
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-multiple_masters.html" class="md-nav__link">
+ Multiple Masters
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-truetype_tables.html" class="md-nav__link">
+ TrueType Tables
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-truetype_tables.html" title="TrueType Tables" class="md-nav__link">
- TrueType Tables
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-type1_tables.html" title="Type 1 Tables" class="md-nav__link">
- Type 1 Tables
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-type1_tables.html" class="md-nav__link">
+ Type 1 Tables
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-sfnt_names.html" class="md-nav__link">
+ SFNT Names
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-sfnt_names.html" title="SFNT Names" class="md-nav__link">
- SFNT Names
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-bdf_fonts.html" title="BDF and PCF Files" class="md-nav__link">
- BDF and PCF Files
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-bdf_fonts.html" class="md-nav__link">
+ BDF and PCF Files
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-cid_fonts.html" class="md-nav__link">
+ CID Fonts
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-cid_fonts.html" title="CID Fonts" class="md-nav__link">
- CID Fonts
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-pfr_fonts.html" title="PFR Fonts" class="md-nav__link">
- PFR Fonts
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-pfr_fonts.html" class="md-nav__link">
+ PFR Fonts
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-winfnt_fonts.html" title="Window FNT Files" class="md-nav__link">
- Window FNT Files
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-winfnt_fonts.html" class="md-nav__link">
+ Window FNT Files
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-font_formats.html" class="md-nav__link">
+ Font Formats
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-font_formats.html" title="Font Formats" class="md-nav__link">
- Font Formats
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-gasp_table.html" title="Gasp Table" class="md-nav__link">
- Gasp Table
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-gasp_table.html" class="md-nav__link">
+ Gasp Table
+ </a>
+ </li>
+
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-6" type="checkbox" id="nav-6">
+
+
+
- <label class="md-nav__link" for="nav-6">
- Controlling FreeType Modules
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-6">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_6" type="checkbox" id="__nav_6" >
+
+ <label class="md-nav__link" for="__nav_6">
Controlling FreeType Modules
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
-
+ <nav class="md-nav" aria-label="Controlling FreeType Modules" data-md-level="1">
+ <label class="md-nav__title" for="__nav_6">
+ <span class="md-nav__icon md-icon"></span>
+ Controlling FreeType Modules
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
-
-
-
- <li class="md-nav__item">
- <a href="ft2-auto_hinter.html" title="The auto-hinter" class="md-nav__link">
- The auto-hinter
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-auto_hinter.html" class="md-nav__link">
+ The auto-hinter
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-cff_driver.html" class="md-nav__link">
+ The CFF driver
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-cff_driver.html" title="The CFF driver" class="md-nav__link">
- The CFF driver
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-t1_cid_driver.html" title="The Type 1 and CID drivers" class="md-nav__link">
- The Type 1 and CID drivers
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-t1_cid_driver.html" class="md-nav__link">
+ The Type 1 and CID drivers
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-tt_driver.html" class="md-nav__link">
+ The TrueType driver
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-tt_driver.html" title="The TrueType driver" class="md-nav__link">
- The TrueType driver
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-pcf_driver.html" title="The PCF driver" class="md-nav__link">
- The PCF driver
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-pcf_driver.html" class="md-nav__link">
+ The PCF driver
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-properties.html" title="Driver properties" class="md-nav__link">
- Driver properties
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-properties.html" class="md-nav__link">
+ Driver properties
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-parameter_tags.html" title="Parameter Tags" class="md-nav__link">
- Parameter Tags
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-parameter_tags.html" class="md-nav__link">
+ Parameter Tags
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-lcd_rendering.html" class="md-nav__link">
+ Subpixel Rendering
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-lcd_rendering.html" title="Subpixel Rendering" class="md-nav__link">
- Subpixel Rendering
- </a>
- </li>
-
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-7" type="checkbox" id="nav-7">
+
+
+
- <label class="md-nav__link" for="nav-7">
- Cache Sub-System
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-7">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_7" type="checkbox" id="__nav_7" >
+
+ <label class="md-nav__link" for="__nav_7">
Cache Sub-System
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
-
-
+ <nav class="md-nav" aria-label="Cache Sub-System" data-md-level="1">
+ <label class="md-nav__title" for="__nav_7">
+ <span class="md-nav__icon md-icon"></span>
+ Cache Sub-System
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-cache_subsystem.html" class="md-nav__link">
+ Cache Sub-System
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-cache_subsystem.html" title="Cache Sub-System" class="md-nav__link">
- Cache Sub-System
- </a>
- </li>
-
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
@@ -699,185 +740,195 @@
-
-
- <li class="md-nav__item md-nav__item--active md-nav__item--nested">
+
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-8" type="checkbox" id="nav-8" checked>
+
+
- <label class="md-nav__link" for="nav-8">
- Support API
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-8">
+ <li class="md-nav__item md-nav__item--active md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_8" type="checkbox" id="__nav_8" checked>
+
+ <label class="md-nav__link" for="__nav_8">
Support API
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
-
+ <nav class="md-nav" aria-label="Support API" data-md-level="1">
+ <label class="md-nav__title" for="__nav_8">
+ <span class="md-nav__icon md-icon"></span>
+ Support API
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
-
-
-
- <li class="md-nav__item">
- <a href="ft2-computations.html" title="Computations" class="md-nav__link">
- Computations
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-computations.html" class="md-nav__link">
+ Computations
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-list_processing.html" title="List Processing" class="md-nav__link">
- List Processing
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-list_processing.html" class="md-nav__link">
+ List Processing
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-outline_processing.html" class="md-nav__link">
+ Outline Processing
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-outline_processing.html" title="Outline Processing" class="md-nav__link">
- Outline Processing
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-quick_advance.html" title="Quick retrieval of advance values" class="md-nav__link">
- Quick retrieval of advance values
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-quick_advance.html" class="md-nav__link">
+ Quick retrieval of advance values
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-bitmap_handling.html" title="Bitmap Handling" class="md-nav__link">
- Bitmap Handling
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-bitmap_handling.html" class="md-nav__link">
+ Bitmap Handling
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-raster.html" title="Scanline Converter" class="md-nav__link">
- Scanline Converter
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-raster.html" class="md-nav__link">
+ Scanline Converter
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-glyph_stroker.html" title="Glyph Stroker" class="md-nav__link">
- Glyph Stroker
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-glyph_stroker.html" class="md-nav__link">
+ Glyph Stroker
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-system_interface.html" title="System Interface" class="md-nav__link">
- System Interface
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-system_interface.html" class="md-nav__link">
+ System Interface
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-module_management.html" title="Module Management" class="md-nav__link">
- Module Management
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-module_management.html" class="md-nav__link">
+ Module Management
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-gzip.html" class="md-nav__link">
+ GZIP Streams
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-gzip.html" title="GZIP Streams" class="md-nav__link">
- GZIP Streams
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-lzw.html" title="LZW Streams" class="md-nav__link">
- LZW Streams
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-lzw.html" class="md-nav__link">
+ LZW Streams
+ </a>
+ </li>
+
-
-
-
-
+
+
-
-
- <li class="md-nav__item md-nav__item--active">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="toc" type="checkbox" id="__toc">
+
+
+ <li class="md-nav__item md-nav__item--active">
-
-
- <label class="md-nav__link md-nav__link--active" for="__toc">
+ <input class="md-nav__toggle md-toggle" data-md-toggle="toc" type="checkbox" id="__toc">
+
+
+
+
+
+ <label class="md-nav__link md-nav__link--active" for="__toc">
+ BZIP2 Streams
+ <span class="md-nav__icon md-icon"></span>
+ </label>
+
+ <a href="ft2-bzip2.html" class="md-nav__link md-nav__link--active">
BZIP2 Streams
- </label>
-
- <a href="ft2-bzip2.html" title="BZIP2 Streams" class="md-nav__link md-nav__link--active">
- BZIP2 Streams
- </a>
-
+ </a>
-<nav class="md-nav md-nav--secondary">
+
+<nav class="md-nav md-nav--secondary" aria-label="Table of contents">
+
- <label class="md-nav__title" for="__toc">Table of contents</label>
- <ul class="md-nav__list" data-md-scrollfix>
+ <label class="md-nav__title" for="__toc">
+ <span class="md-nav__icon md-icon"></span>
+ Table of contents
+ </label>
+ <ul class="md-nav__list" data-md-component="toc" data-md-scrollfix>
<li class="md-nav__item">
<a href="#synopsis" class="md-nav__link">
@@ -893,140 +944,162 @@
</li>
-
-
-
-
</ul>
</nav>
-
- </li>
+
+ </li>
+
-
- </ul>
- </nav>
- </li>
+
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-debugging_apis.html" class="md-nav__link">
+ External Debugging APIs
+ </a>
+ </li>
+
+
+
+ </ul>
+ </nav>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-9" type="checkbox" id="nav-9">
+
+
+
- <label class="md-nav__link" for="nav-9">
- Error Codes
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-9">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_9" type="checkbox" id="__nav_9" >
+
+ <label class="md-nav__link" for="__nav_9">
Error Codes
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
+ <nav class="md-nav" aria-label="Error Codes" data-md-level="1">
+ <label class="md-nav__title" for="__nav_9">
+ <span class="md-nav__icon md-icon"></span>
+ Error Codes
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-error_enumerations.html" title="Error Enumerations" class="md-nav__link">
- Error Enumerations
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-error_enumerations.html" class="md-nav__link">
+ Error Enumerations
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-error_code_values.html" title="Error Code Values" class="md-nav__link">
- Error Code Values
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-error_code_values.html" class="md-nav__link">
+ Error Code Values
+ </a>
+ </li>
+
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-10" type="checkbox" id="nav-10">
+
+
+
- <label class="md-nav__link" for="nav-10">
- Miscellaneous
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-10">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_10" type="checkbox" id="__nav_10" >
+
+ <label class="md-nav__link" for="__nav_10">
Miscellaneous
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
-
+ <nav class="md-nav" aria-label="Miscellaneous" data-md-level="1">
+ <label class="md-nav__title" for="__nav_10">
+ <span class="md-nav__icon md-icon"></span>
+ Miscellaneous
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
-
-
-
- <li class="md-nav__item">
- <a href="ft2-gx_validation.html" title="TrueTypeGX/AAT Validation" class="md-nav__link">
- TrueTypeGX/AAT Validation
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-gx_validation.html" class="md-nav__link">
+ TrueTypeGX/AAT Validation
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-incremental.html" title="Incremental Loading" class="md-nav__link">
- Incremental Loading
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-incremental.html" class="md-nav__link">
+ Incremental Loading
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-truetype_engine.html" title="The TrueType Engine" class="md-nav__link">
- The TrueType Engine
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-truetype_engine.html" class="md-nav__link">
+ The TrueType Engine
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-ot_validation.html" class="md-nav__link">
+ OpenType Validation
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-ot_validation.html" title="OpenType Validation" class="md-nav__link">
- OpenType Validation
- </a>
- </li>
-
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
</ul>
@@ -1036,18 +1109,23 @@
</div>
- <div class="md-sidebar md-sidebar--secondary" data-md-component="toc">
+
+ <div class="md-sidebar md-sidebar--secondary" data-md-component="sidebar" data-md-type="toc" >
<div class="md-sidebar__scrollwrap">
<div class="md-sidebar__inner">
-<nav class="md-nav md-nav--secondary">
+<nav class="md-nav md-nav--secondary" aria-label="Table of contents">
+
- <label class="md-nav__title" for="__toc">Table of contents</label>
- <ul class="md-nav__list" data-md-scrollfix>
+ <label class="md-nav__title" for="__toc">
+ <span class="md-nav__icon md-icon"></span>
+ Table of contents
+ </label>
+ <ul class="md-nav__list" data-md-component="toc" data-md-scrollfix>
<li class="md-nav__item">
<a href="#synopsis" class="md-nav__link">
@@ -1063,10 +1141,6 @@
</li>
-
-
-
-
</ul>
</nav>
@@ -1075,7 +1149,7 @@
</div>
- <div class="md-content">
+ <div class="md-content" data-md-component="content">
<article class="md-content__inner md-typeset">
@@ -1096,7 +1170,6 @@
<p>Open a new stream to parse bzip2-compressed font files. This is mainly used to support the compressed <code>*.pcf.bz2</code> fonts that come with XFree86.</p>
<h4>input</h4>
-
<table class="fields">
<tr><td class="val" id="stream">stream</td><td class="desc">
<p>The target embedding stream.</p>
@@ -1116,9 +1189,6 @@
<p>This function may return <code>FT_Err_Unimplemented_Feature</code> if your build of FreeType was not compiled with bzip2 support.</p>
<hr>
-
-
-
@@ -1128,59 +1198,60 @@
</article>
</div>
</div>
+
</main>
<footer class="md-footer">
- <div class="md-footer-nav">
- <nav class="md-footer-nav__inner md-grid">
+ <nav class="md-footer__inner md-grid" aria-label="Footer">
+
- <a href="ft2-lzw.html" title="LZW Streams" class="md-flex md-footer-nav__link md-footer-nav__link--prev" rel="prev">
- <div class="md-flex__cell md-flex__cell--shrink">
- <i class="md-icon md-icon--arrow-back md-footer-nav__button"></i>
- </div>
- <div class="md-flex__cell md-flex__cell--stretch md-footer-nav__title">
- <span class="md-flex__ellipsis">
- <span class="md-footer-nav__direction">
- Previous
- </span>
- LZW Streams
+ <a href="ft2-lzw.html" class="md-footer__link md-footer__link--prev" aria-label="Previous: LZW Streams" rel="prev">
+ <div class="md-footer__button md-icon">
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M20 11v2H8l5.5 5.5-1.42 1.42L4.16 12l7.92-7.92L13.5 5.5 8 11h12z"/></svg>
+ </div>
+ <div class="md-footer__title">
+ <div class="md-ellipsis">
+ <span class="md-footer__direction">
+ Previous
</span>
+ LZW Streams
</div>
- </a>
-
+ </div>
+ </a>
+
+
- <a href="ft2-error_enumerations.html" title="Error Enumerations" class="md-flex md-footer-nav__link md-footer-nav__link--next" rel="next">
- <div class="md-flex__cell md-flex__cell--stretch md-footer-nav__title">
- <span class="md-flex__ellipsis">
- <span class="md-footer-nav__direction">
- Next
- </span>
- Error Enumerations
+ <a href="ft2-debugging_apis.html" class="md-footer__link md-footer__link--next" aria-label="Next: External Debugging APIs" rel="next">
+ <div class="md-footer__title">
+ <div class="md-ellipsis">
+ <span class="md-footer__direction">
+ Next
</span>
+ External Debugging APIs
</div>
- <div class="md-flex__cell md-flex__cell--shrink">
- <i class="md-icon md-icon--arrow-forward md-footer-nav__button"></i>
- </div>
- </a>
-
- </nav>
- </div>
+ </div>
+ <div class="md-footer__button md-icon">
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M4 11v2h12l-5.5 5.5 1.42 1.42L19.84 12l-7.92-7.92L10.5 5.5 16 11H4z"/></svg>
+ </div>
+ </a>
+
+ </nav>
<div class="md-footer-meta md-typeset">
<div class="md-footer-meta__inner md-grid">
<div class="md-footer-copyright">
<div class="md-footer-copyright__highlight">
- Copyright 2020 <a href = "https://www.freetype.org/license.html">The FreeType Project</a>.
+ Copyright 2021 <a href = "https://www.freetype.org/license.html">The FreeType Project</a>.
</div>
- powered by
- <a href="https://www.mkdocs.org" target="_blank" rel="noopener">MkDocs</a>
- and
+ Made with
<a href="https://squidfunk.github.io/mkdocs-material/" target="_blank" rel="noopener">
- Material for MkDocs</a>
+ Material for MkDocs
+ </a>
+
</div>
</div>
@@ -1188,10 +1259,13 @@
</footer>
</div>
+ <div class="md-dialog" data-md-component="dialog">
+ <div class="md-dialog__inner md-typeset"></div>
+ </div>
+ <script id="__config" type="application/json">{"base": ".", "features": [], "translations": {"clipboard.copy": "Copy to clipboard", "clipboard.copied": "Copied to clipboard", "search.config.lang": "en", "search.config.pipeline": "trimmer, stopWordFilter", "search.config.separator": "[\\s\\-]+", "search.placeholder": "Search", "search.result.placeholder": "Type to start searching", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.term.missing": "Missing", "select.version.title": "Select version"}, "search": "assets/javascripts/workers/search.477d984a.min.js", "version": null}</script>
- <script src="assets/javascripts/application.c33a9706.js"></script>
-
- <script>app.initialize({version:"1.1",url:{base:"."}})</script>
+
+ <script src="assets/javascripts/bundle.82b56eb2.min.js"></script>
<script src="javascripts/extra.js"></script>
diff --git a/freetype/docs/reference/ft2-cache_subsystem.html b/freetype/docs/reference/ft2-cache_subsystem.html
index dd55a5d6..27113424 100644
--- a/freetype/docs/reference/ft2-cache_subsystem.html
+++ b/freetype/docs/reference/ft2-cache_subsystem.html
@@ -1,145 +1,136 @@
-
-
-
<!doctype html>
<html lang="en" class="no-js">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
- <meta http-equiv="x-ua-compatible" content="ie=edge">
- <meta name="description" content="API Reference Documentation for FreeType-2.10.4">
+ <meta name="description" content="API Reference Documentation for FreeType-2.11.1">
<meta name="author" content="FreeType Contributors">
- <meta name="lang:clipboard.copy" content="Copy to clipboard">
-
- <meta name="lang:clipboard.copied" content="Copied to clipboard">
-
- <meta name="lang:search.language" content="en">
-
- <meta name="lang:search.pipeline.stopwords" content="True">
-
- <meta name="lang:search.pipeline.trimmer" content="True">
-
- <meta name="lang:search.result.none" content="No matching documents">
-
- <meta name="lang:search.result.one" content="1 matching document">
-
- <meta name="lang:search.result.other" content="# matching documents">
-
- <meta name="lang:search.tokenizer" content="[\s\-]+">
-
- <link rel="shortcut icon" href="images/favico.ico">
- <meta name="generator" content="mkdocs-1.1, mkdocs-material-4.6.3">
+ <link rel="icon" href="images/favico.ico">
+ <meta name="generator" content="mkdocs-1.2.1, mkdocs-material-7.1.9">
- <title>Cache Sub-System - FreeType-2.10.4 API Reference</title>
+ <title>Cache Sub-System - FreeType-2.11.1 API Reference</title>
- <link rel="stylesheet" href="assets/stylesheets/application.adb8469c.css">
-
- <link rel="stylesheet" href="assets/stylesheets/application-palette.a8b3c06d.css">
-
+ <link rel="stylesheet" href="assets/stylesheets/main.ca7ac06f.min.css">
+ <link rel="stylesheet" href="assets/stylesheets/palette.f1a3b89f.min.css">
+
+
+
+ <meta name="theme-color" content="#4cae4f">
- <meta name="theme-color" content="#4caf50">
- <script src="assets/javascripts/modernizr.86422ebf.js"></script>
-
- <link href="https://fonts.gstatic.com" rel="preconnect" crossorigin>
+
+ <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Noto+Serif:300,400,400i,700%7CRoboto+Mono&display=fallback">
- <style>body,input{font-family:"Noto Serif","Helvetica Neue",Helvetica,Arial,sans-serif}code,kbd,pre{font-family:"Roboto Mono","Courier New",Courier,monospace}</style>
+ <style>:root{--md-text-font-family:"Noto Serif";--md-code-font-family:"Roboto Mono"}</style>
- <link rel="stylesheet" href="assets/fonts/material-icons.css">
<link rel="stylesheet" href="stylesheets/extra.css">
+
+
</head>
+
+
+
+
- <body dir="ltr" data-md-color-primary="green" data-md-color-accent="green">
+ <body dir="ltr" data-md-color-scheme="" data-md-color-primary="green" data-md-color-accent="green">
- <svg class="md-svg">
- <defs>
-
-
- </defs>
- </svg>
- <input class="md-toggle" data-md-toggle="drawer" type="checkbox" id="__drawer" autocomplete="off">
- <input class="md-toggle" data-md-toggle="search" type="checkbox" id="__search" autocomplete="off">
- <label class="md-overlay" data-md-component="overlay" for="__drawer"></label>
- <a href="#cache-sub-system" tabindex="0" class="md-skip">
- Skip to content
- </a>
+ <script>function __prefix(e){return new URL(".",location).pathname+"."+e}function __get(e,t=localStorage){return JSON.parse(t.getItem(__prefix(e)))}</script>
+ <input class="md-toggle" data-md-toggle="drawer" type="checkbox" id="__drawer" autocomplete="off">
+ <input class="md-toggle" data-md-toggle="search" type="checkbox" id="__search" autocomplete="off">
+ <label class="md-overlay" for="__drawer"></label>
+ <div data-md-component="skip">
+
+
+ <a href="#cache-sub-system" class="md-skip">
+ Skip to content
+ </a>
+
+ </div>
+ <div data-md-component="announce">
+
+ </div>
<header class="md-header" data-md-component="header">
- <nav class="md-header-nav md-grid">
- <div class="md-flex">
- <div class="md-flex__cell md-flex__cell--shrink">
- <a href="." title="FreeType-2.10.4 API Reference" aria-label="FreeType-2.10.4 API Reference" class="md-header-nav__button md-logo">
-
- <img alt="logo" src="images/favico.ico" width="24" height="24">
-
- </a>
- </div>
- <div class="md-flex__cell md-flex__cell--shrink">
- <label class="md-icon md-icon--menu md-header-nav__button" for="__drawer"></label>
- </div>
- <div class="md-flex__cell md-flex__cell--stretch">
- <div class="md-flex__ellipsis md-header-nav__title" data-md-component="title">
-
- <span class="md-header-nav__topic">
- FreeType-2.10.4 API Reference
- </span>
- <span class="md-header-nav__topic">
-
- Cache Sub-System
-
- </span>
-
+ <nav class="md-header__inner md-grid" aria-label="Header">
+ <a href="index.html" title="FreeType-2.11.1 API Reference" class="md-header__button md-logo" aria-label="FreeType-2.11.1 API Reference" data-md-component="logo">
+
+ <img src="images/favico.ico" alt="logo">
+
+ </a>
+ <label class="md-header__button md-icon" for="__drawer">
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M3 6h18v2H3V6m0 5h18v2H3v-2m0 5h18v2H3v-2z"/></svg>
+ </label>
+ <div class="md-header__title" data-md-component="header-title">
+ <div class="md-header__ellipsis">
+ <div class="md-header__topic">
+ <span class="md-ellipsis">
+ FreeType-2.11.1 API Reference
+ </span>
+ </div>
+ <div class="md-header__topic" data-md-component="header-topic">
+ <span class="md-ellipsis">
+
+ Cache Sub-System
+
+ </span>
</div>
</div>
- <div class="md-flex__cell md-flex__cell--shrink">
-
- <label class="md-icon md-icon--search md-header-nav__button" for="__search"></label>
-
+ </div>
+
+
+
+ <label class="md-header__button md-icon" for="__search">
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M9.5 3A6.5 6.5 0 0 1 16 9.5c0 1.61-.59 3.09-1.56 4.23l.27.27h.79l5 5-1.5 1.5-5-5v-.79l-.27-.27A6.516 6.516 0 0 1 9.5 16 6.5 6.5 0 0 1 3 9.5 6.5 6.5 0 0 1 9.5 3m0 2C7 5 5 7 5 9.5S7 14 9.5 14 14 12 14 9.5 12 5 9.5 5z"/></svg>
+ </label>
+
<div class="md-search" data-md-component="search" role="dialog">
<label class="md-search__overlay" for="__search"></label>
<div class="md-search__inner" role="search">
<form class="md-search__form" name="search">
- <input type="text" class="md-search__input" aria-label="search" name="query" placeholder="Search" autocapitalize="off" autocorrect="off" autocomplete="off" spellcheck="false" data-md-component="query" data-md-state="active">
- <label class="md-icon md-search__icon" for="__search"></label>
- <button type="reset" class="md-icon md-search__icon" data-md-component="reset" tabindex="-1">
- &#xE5CD;
+ <input type="text" class="md-search__input" name="query" aria-label="Search" placeholder="Search" autocapitalize="off" autocorrect="off" autocomplete="off" spellcheck="false" data-md-component="search-query" data-md-state="active" required>
+ <label class="md-search__icon md-icon" for="__search">
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M9.5 3A6.5 6.5 0 0 1 16 9.5c0 1.61-.59 3.09-1.56 4.23l.27.27h.79l5 5-1.5 1.5-5-5v-.79l-.27-.27A6.516 6.516 0 0 1 9.5 16 6.5 6.5 0 0 1 3 9.5 6.5 6.5 0 0 1 9.5 3m0 2C7 5 5 7 5 9.5S7 14 9.5 14 14 12 14 9.5 12 5 9.5 5z"/></svg>
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M20 11v2H8l5.5 5.5-1.42 1.42L4.16 12l7.92-7.92L13.5 5.5 8 11h12z"/></svg>
+ </label>
+ <button type="reset" class="md-search__icon md-icon" aria-label="Clear" tabindex="-1">
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z"/></svg>
</button>
</form>
<div class="md-search__output">
<div class="md-search__scrollwrap" data-md-scrollfix>
- <div class="md-search-result" data-md-component="result">
+ <div class="md-search-result" data-md-component="search-result">
<div class="md-search-result__meta">
- Type to start searching
+ Initializing search
</div>
<ol class="md-search-result__list"></ol>
</div>
@@ -147,33 +138,35 @@
</div>
</div>
</div>
-
- </div>
-
- </div>
+
+
</nav>
</header>
- <div class="md-container">
+ <div class="md-container" data-md-component="container">
-
+
- <main class="md-main" role="main">
- <div class="md-main__inner md-grid" data-md-component="container">
+ <main class="md-main" data-md-component="main">
+ <div class="md-main__inner md-grid">
- <div class="md-sidebar md-sidebar--primary" data-md-component="navigation">
+
+ <div class="md-sidebar md-sidebar--primary" data-md-component="sidebar" data-md-type="navigation" >
<div class="md-sidebar__scrollwrap">
<div class="md-sidebar__inner">
- <nav class="md-nav md-nav--primary" data-md-level="0">
- <label class="md-nav__title md-nav__title--site" for="__drawer">
- <a href="." title="FreeType-2.10.4 API Reference" class="md-nav__button md-logo">
-
- <img alt="logo" src="images/favico.ico" width="48" height="48">
+
+
+
+<nav class="md-nav md-nav--primary" aria-label="Navigation" data-md-level="0">
+ <label class="md-nav__title" for="__drawer">
+ <a href="index.html" title="FreeType-2.11.1 API Reference" class="md-nav__button md-logo" aria-label="FreeType-2.11.1 API Reference" data-md-component="logo">
+ <img src="images/favico.ico" alt="logo">
+
</a>
- FreeType-2.10.4 API Reference
+ FreeType-2.11.1 API Reference
</label>
<ul class="md-nav__list" data-md-scrollfix>
@@ -182,480 +175,522 @@
-
- <li class="md-nav__item">
- <a href="index.html" title="TOC" class="md-nav__link">
- TOC
- </a>
- </li>
+
+
+
+ <li class="md-nav__item">
+ <a href="index.html" class="md-nav__link">
+ TOC
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-index.html" title="Index" class="md-nav__link">
- Index
- </a>
- </li>
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-index.html" class="md-nav__link">
+ Index
+ </a>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-3" type="checkbox" id="nav-3">
+
+
+
- <label class="md-nav__link" for="nav-3">
- General Remarks
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-3">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_3" type="checkbox" id="__nav_3" >
+
+ <label class="md-nav__link" for="__nav_3">
General Remarks
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
-
-
+ <nav class="md-nav" aria-label="General Remarks" data-md-level="1">
+ <label class="md-nav__title" for="__nav_3">
+ <span class="md-nav__icon md-icon"></span>
+ General Remarks
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-preamble.html" class="md-nav__link">
+ Preamble
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-header_inclusion.html" title="FreeType's header inclusion scheme" class="md-nav__link">
- FreeType's header inclusion scheme
- </a>
- </li>
-
-
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-header_inclusion.html" class="md-nav__link">
+ FreeType's header inclusion scheme
+ </a>
+ </li>
+
- <li class="md-nav__item">
- <a href="ft2-user_allocation.html" title="User allocation" class="md-nav__link">
- User allocation
- </a>
- </li>
+
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-user_allocation.html" class="md-nav__link">
+ User allocation
+ </a>
+ </li>
+
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-4" type="checkbox" id="nav-4">
+
+
+
- <label class="md-nav__link" for="nav-4">
- Core API
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-4">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_4" type="checkbox" id="__nav_4" >
+
+ <label class="md-nav__link" for="__nav_4">
Core API
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
-
+ <nav class="md-nav" aria-label="Core API" data-md-level="1">
+ <label class="md-nav__title" for="__nav_4">
+ <span class="md-nav__icon md-icon"></span>
+ Core API
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
-
-
-
- <li class="md-nav__item">
- <a href="ft2-version.html" title="FreeType Version" class="md-nav__link">
- FreeType Version
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-version.html" class="md-nav__link">
+ FreeType Version
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-basic_types.html" title="Basic Data Types" class="md-nav__link">
- Basic Data Types
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-basic_types.html" class="md-nav__link">
+ Basic Data Types
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-base_interface.html" title="Base Interface" class="md-nav__link">
- Base Interface
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-base_interface.html" class="md-nav__link">
+ Base Interface
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-glyph_variants.html" class="md-nav__link">
+ Unicode Variation Sequences
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-glyph_variants.html" title="Unicode Variation Sequences" class="md-nav__link">
- Unicode Variation Sequences
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-color_management.html" title="Glyph Color Management" class="md-nav__link">
- Glyph Color Management
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-color_management.html" class="md-nav__link">
+ Glyph Color Management
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-layer_management.html" class="md-nav__link">
+ Glyph Layer Management
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-layer_management.html" title="Glyph Layer Management" class="md-nav__link">
- Glyph Layer Management
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-glyph_management.html" title="Glyph Management" class="md-nav__link">
- Glyph Management
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-glyph_management.html" class="md-nav__link">
+ Glyph Management
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-mac_specific.html" title="Mac Specific Interface" class="md-nav__link">
- Mac Specific Interface
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-mac_specific.html" class="md-nav__link">
+ Mac Specific Interface
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-sizes_management.html" title="Size Management" class="md-nav__link">
- Size Management
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-sizes_management.html" class="md-nav__link">
+ Size Management
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-header_file_macros.html" title="Header File Macros" class="md-nav__link">
- Header File Macros
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-header_file_macros.html" class="md-nav__link">
+ Header File Macros
+ </a>
+ </li>
+
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-5" type="checkbox" id="nav-5">
+
+
+
- <label class="md-nav__link" for="nav-5">
- Format-Specific API
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-5">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_5" type="checkbox" id="__nav_5" >
+
+ <label class="md-nav__link" for="__nav_5">
Format-Specific API
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
-
+ <nav class="md-nav" aria-label="Format-Specific API" data-md-level="1">
+ <label class="md-nav__title" for="__nav_5">
+ <span class="md-nav__icon md-icon"></span>
+ Format-Specific API
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
-
-
-
- <li class="md-nav__item">
- <a href="ft2-multiple_masters.html" title="Multiple Masters" class="md-nav__link">
- Multiple Masters
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-multiple_masters.html" class="md-nav__link">
+ Multiple Masters
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-truetype_tables.html" title="TrueType Tables" class="md-nav__link">
- TrueType Tables
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-truetype_tables.html" class="md-nav__link">
+ TrueType Tables
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-type1_tables.html" title="Type 1 Tables" class="md-nav__link">
- Type 1 Tables
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-type1_tables.html" class="md-nav__link">
+ Type 1 Tables
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-sfnt_names.html" title="SFNT Names" class="md-nav__link">
- SFNT Names
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-sfnt_names.html" class="md-nav__link">
+ SFNT Names
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-bdf_fonts.html" class="md-nav__link">
+ BDF and PCF Files
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-bdf_fonts.html" title="BDF and PCF Files" class="md-nav__link">
- BDF and PCF Files
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-cid_fonts.html" title="CID Fonts" class="md-nav__link">
- CID Fonts
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-cid_fonts.html" class="md-nav__link">
+ CID Fonts
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-pfr_fonts.html" class="md-nav__link">
+ PFR Fonts
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-pfr_fonts.html" title="PFR Fonts" class="md-nav__link">
- PFR Fonts
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-winfnt_fonts.html" title="Window FNT Files" class="md-nav__link">
- Window FNT Files
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-winfnt_fonts.html" class="md-nav__link">
+ Window FNT Files
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-font_formats.html" title="Font Formats" class="md-nav__link">
- Font Formats
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-font_formats.html" class="md-nav__link">
+ Font Formats
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-gasp_table.html" title="Gasp Table" class="md-nav__link">
- Gasp Table
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-gasp_table.html" class="md-nav__link">
+ Gasp Table
+ </a>
+ </li>
+
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-6" type="checkbox" id="nav-6">
+
+
+
- <label class="md-nav__link" for="nav-6">
- Controlling FreeType Modules
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-6">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_6" type="checkbox" id="__nav_6" >
+
+ <label class="md-nav__link" for="__nav_6">
Controlling FreeType Modules
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
-
-
+ <nav class="md-nav" aria-label="Controlling FreeType Modules" data-md-level="1">
+ <label class="md-nav__title" for="__nav_6">
+ <span class="md-nav__icon md-icon"></span>
+ Controlling FreeType Modules
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-auto_hinter.html" class="md-nav__link">
+ The auto-hinter
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-auto_hinter.html" title="The auto-hinter" class="md-nav__link">
- The auto-hinter
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-cff_driver.html" title="The CFF driver" class="md-nav__link">
- The CFF driver
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-cff_driver.html" class="md-nav__link">
+ The CFF driver
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-t1_cid_driver.html" title="The Type 1 and CID drivers" class="md-nav__link">
- The Type 1 and CID drivers
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-t1_cid_driver.html" class="md-nav__link">
+ The Type 1 and CID drivers
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-tt_driver.html" title="The TrueType driver" class="md-nav__link">
- The TrueType driver
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-tt_driver.html" class="md-nav__link">
+ The TrueType driver
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-pcf_driver.html" title="The PCF driver" class="md-nav__link">
- The PCF driver
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-pcf_driver.html" class="md-nav__link">
+ The PCF driver
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-properties.html" class="md-nav__link">
+ Driver properties
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-properties.html" title="Driver properties" class="md-nav__link">
- Driver properties
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-parameter_tags.html" title="Parameter Tags" class="md-nav__link">
- Parameter Tags
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-parameter_tags.html" class="md-nav__link">
+ Parameter Tags
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-lcd_rendering.html" class="md-nav__link">
+ Subpixel Rendering
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-lcd_rendering.html" title="Subpixel Rendering" class="md-nav__link">
- Subpixel Rendering
- </a>
- </li>
-
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
@@ -663,53 +698,63 @@
-
-
- <li class="md-nav__item md-nav__item--active md-nav__item--nested">
+
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-7" type="checkbox" id="nav-7" checked>
+
+
- <label class="md-nav__link" for="nav-7">
- Cache Sub-System
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-7">
+ <li class="md-nav__item md-nav__item--active md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_7" type="checkbox" id="__nav_7" checked>
+
+ <label class="md-nav__link" for="__nav_7">
Cache Sub-System
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
+ <nav class="md-nav" aria-label="Cache Sub-System" data-md-level="1">
+ <label class="md-nav__title" for="__nav_7">
+ <span class="md-nav__icon md-icon"></span>
+ Cache Sub-System
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
-
-
-
+
+
-
-
- <li class="md-nav__item md-nav__item--active">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="toc" type="checkbox" id="__toc">
+
+
+ <li class="md-nav__item md-nav__item--active">
-
-
- <label class="md-nav__link md-nav__link--active" for="__toc">
+ <input class="md-nav__toggle md-toggle" data-md-toggle="toc" type="checkbox" id="__toc">
+
+
+
+
+
+ <label class="md-nav__link md-nav__link--active" for="__toc">
+ Cache Sub-System
+ <span class="md-nav__icon md-icon"></span>
+ </label>
+
+ <a href="ft2-cache_subsystem.html" class="md-nav__link md-nav__link--active">
Cache Sub-System
- </label>
-
- <a href="ft2-cache_subsystem.html" title="Cache Sub-System" class="md-nav__link md-nav__link--active">
- Cache Sub-System
- </a>
-
+ </a>
-<nav class="md-nav md-nav--secondary">
+
+<nav class="md-nav md-nav--secondary" aria-label="Table of contents">
+
- <label class="md-nav__title" for="__toc">Table of contents</label>
- <ul class="md-nav__list" data-md-scrollfix>
+ <label class="md-nav__title" for="__toc">
+ <span class="md-nav__icon md-icon"></span>
+ Table of contents
+ </label>
+ <ul class="md-nav__list" data-md-component="toc" data-md-scrollfix>
<li class="md-nav__item">
<a href="#synopsis" class="md-nav__link">
@@ -914,308 +959,336 @@
</li>
-
-
-
-
</ul>
</nav>
-
- </li>
+
+ </li>
+
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-8" type="checkbox" id="nav-8">
+
+
+
- <label class="md-nav__link" for="nav-8">
- Support API
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-8">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_8" type="checkbox" id="__nav_8" >
+
+ <label class="md-nav__link" for="__nav_8">
Support API
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
+ <nav class="md-nav" aria-label="Support API" data-md-level="1">
+ <label class="md-nav__title" for="__nav_8">
+ <span class="md-nav__icon md-icon"></span>
+ Support API
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-computations.html" title="Computations" class="md-nav__link">
- Computations
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-computations.html" class="md-nav__link">
+ Computations
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-list_processing.html" class="md-nav__link">
+ List Processing
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-list_processing.html" title="List Processing" class="md-nav__link">
- List Processing
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-outline_processing.html" title="Outline Processing" class="md-nav__link">
- Outline Processing
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-outline_processing.html" class="md-nav__link">
+ Outline Processing
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-quick_advance.html" class="md-nav__link">
+ Quick retrieval of advance values
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-quick_advance.html" title="Quick retrieval of advance values" class="md-nav__link">
- Quick retrieval of advance values
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-bitmap_handling.html" title="Bitmap Handling" class="md-nav__link">
- Bitmap Handling
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-bitmap_handling.html" class="md-nav__link">
+ Bitmap Handling
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-raster.html" title="Scanline Converter" class="md-nav__link">
- Scanline Converter
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-raster.html" class="md-nav__link">
+ Scanline Converter
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-glyph_stroker.html" title="Glyph Stroker" class="md-nav__link">
- Glyph Stroker
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-glyph_stroker.html" class="md-nav__link">
+ Glyph Stroker
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-system_interface.html" title="System Interface" class="md-nav__link">
- System Interface
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-system_interface.html" class="md-nav__link">
+ System Interface
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-module_management.html" class="md-nav__link">
+ Module Management
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-module_management.html" title="Module Management" class="md-nav__link">
- Module Management
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-gzip.html" title="GZIP Streams" class="md-nav__link">
- GZIP Streams
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-gzip.html" class="md-nav__link">
+ GZIP Streams
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-lzw.html" class="md-nav__link">
+ LZW Streams
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-lzw.html" title="LZW Streams" class="md-nav__link">
- LZW Streams
- </a>
- </li>
-
-
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-bzip2.html" class="md-nav__link">
+ BZIP2 Streams
+ </a>
+ </li>
+
- <li class="md-nav__item">
- <a href="ft2-bzip2.html" title="BZIP2 Streams" class="md-nav__link">
- BZIP2 Streams
- </a>
- </li>
+
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-debugging_apis.html" class="md-nav__link">
+ External Debugging APIs
+ </a>
+ </li>
+
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-9" type="checkbox" id="nav-9">
+
+
+
- <label class="md-nav__link" for="nav-9">
- Error Codes
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-9">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_9" type="checkbox" id="__nav_9" >
+
+ <label class="md-nav__link" for="__nav_9">
Error Codes
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
-
+ <nav class="md-nav" aria-label="Error Codes" data-md-level="1">
+ <label class="md-nav__title" for="__nav_9">
+ <span class="md-nav__icon md-icon"></span>
+ Error Codes
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
-
-
-
- <li class="md-nav__item">
- <a href="ft2-error_enumerations.html" title="Error Enumerations" class="md-nav__link">
- Error Enumerations
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-error_enumerations.html" class="md-nav__link">
+ Error Enumerations
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-error_code_values.html" title="Error Code Values" class="md-nav__link">
- Error Code Values
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-error_code_values.html" class="md-nav__link">
+ Error Code Values
+ </a>
+ </li>
+
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-10" type="checkbox" id="nav-10">
+
+
+
- <label class="md-nav__link" for="nav-10">
- Miscellaneous
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-10">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_10" type="checkbox" id="__nav_10" >
+
+ <label class="md-nav__link" for="__nav_10">
Miscellaneous
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
-
-
+ <nav class="md-nav" aria-label="Miscellaneous" data-md-level="1">
+ <label class="md-nav__title" for="__nav_10">
+ <span class="md-nav__icon md-icon"></span>
+ Miscellaneous
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-gx_validation.html" class="md-nav__link">
+ TrueTypeGX/AAT Validation
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-gx_validation.html" title="TrueTypeGX/AAT Validation" class="md-nav__link">
- TrueTypeGX/AAT Validation
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-incremental.html" title="Incremental Loading" class="md-nav__link">
- Incremental Loading
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-incremental.html" class="md-nav__link">
+ Incremental Loading
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-truetype_engine.html" title="The TrueType Engine" class="md-nav__link">
- The TrueType Engine
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-truetype_engine.html" class="md-nav__link">
+ The TrueType Engine
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-ot_validation.html" title="OpenType Validation" class="md-nav__link">
- OpenType Validation
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-ot_validation.html" class="md-nav__link">
+ OpenType Validation
+ </a>
+ </li>
+
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
</ul>
@@ -1225,18 +1298,23 @@
</div>
- <div class="md-sidebar md-sidebar--secondary" data-md-component="toc">
+
+ <div class="md-sidebar md-sidebar--secondary" data-md-component="sidebar" data-md-type="toc" >
<div class="md-sidebar__scrollwrap">
<div class="md-sidebar__inner">
-<nav class="md-nav md-nav--secondary">
+<nav class="md-nav md-nav--secondary" aria-label="Table of contents">
+
- <label class="md-nav__title" for="__toc">Table of contents</label>
- <ul class="md-nav__list" data-md-scrollfix>
+ <label class="md-nav__title" for="__toc">
+ <span class="md-nav__icon md-icon"></span>
+ Table of contents
+ </label>
+ <ul class="md-nav__list" data-md-component="toc" data-md-scrollfix>
<li class="md-nav__item">
<a href="#synopsis" class="md-nav__link">
@@ -1441,10 +1519,6 @@
</li>
-
-
-
-
</ul>
</nav>
@@ -1453,7 +1527,7 @@
</div>
- <div class="md-content">
+ <div class="md-content" data-md-component="content">
<article class="md-content__inner md-typeset">
@@ -1472,7 +1546,7 @@
<p>If this is unavoidable (e.g., when a font is uninstalled at runtime), you should call <code><a href="ft2-cache_subsystem.html#ftc_manager_removefaceid">FTC_Manager_RemoveFaceID</a></code> as soon as possible, to let the cache get rid of any references to the old <code><a href="ft2-cache_subsystem.html#ftc_faceid">FTC_FaceID</a></code> it may keep internally. Failure to do so will lead to incorrect behaviour or even crashes.</p>
<p>To use the cache, start with calling <code><a href="ft2-cache_subsystem.html#ftc_manager_new">FTC_Manager_New</a></code> to create a new <code><a href="ft2-cache_subsystem.html#ftc_manager">FTC_Manager</a></code> object, which models a single cache instance. You can then look up <code><a href="ft2-base_interface.html#ft_face">FT_Face</a></code> and <code><a href="ft2-base_interface.html#ft_size">FT_Size</a></code> objects with <code><a href="ft2-cache_subsystem.html#ftc_manager_lookupface">FTC_Manager_LookupFace</a></code> and <code><a href="ft2-cache_subsystem.html#ftc_manager_lookupsize">FTC_Manager_LookupSize</a></code>, respectively.</p>
<p>If you want to use the charmap caching, call <code><a href="ft2-cache_subsystem.html#ftc_cmapcache_new">FTC_CMapCache_New</a></code>, then later use <code><a href="ft2-cache_subsystem.html#ftc_cmapcache_lookup">FTC_CMapCache_Lookup</a></code> to perform the equivalent of <code><a href="ft2-base_interface.html#ft_get_char_index">FT_Get_Char_Index</a></code>, only much faster.</p>
-<p>If you want to use the <code><a href="ft2-glyph_management.html#ft_glyph">FT_Glyph</a></code> caching, call <code><a href="ft2-cache_subsystem.html#ftc_imagecache">FTC_ImageCache</a></code>, then later use <code><a href="ft2-cache_subsystem.html#ftc_imagecache_lookup">FTC_ImageCache_Lookup</a></code> to retrieve the corresponding <code><a href="ft2-glyph_management.html#ft_glyph">FT_Glyph</a></code> objects from the cache.</p>
+<p>If you want to use the <code><a href="ft2-glyph_management.html#ft_glyph">FT_Glyph</a></code> caching, call <code><a href="ft2-cache_subsystem.html#ftc_imagecache_new">FTC_ImageCache_New</a></code>, then later use <code><a href="ft2-cache_subsystem.html#ftc_imagecache_lookup">FTC_ImageCache_Lookup</a></code> to retrieve the corresponding <code><a href="ft2-glyph_management.html#ft_glyph">FT_Glyph</a></code> objects from the cache.</p>
<p>If you need lots of small bitmaps, it is much more memory efficient to call <code><a href="ft2-cache_subsystem.html#ftc_sbitcache_new">FTC_SBitCache_New</a></code> followed by <code><a href="ft2-cache_subsystem.html#ftc_sbitcache_lookup">FTC_SBitCache_Lookup</a></code>. This returns <code><a href="ft2-cache_subsystem.html#ftc_sbitrec">FTC_SBitRec</a></code> structures, which are used to store small bitmaps directly. (A small bitmap is one whose metrics and dimensions all fit into 8-bit integers).</p>
<p>We hope to also provide a kerning cache in the near future.</p>
<h2 id="ftc_manager">FTC_Manager<a class="headerlink" href="#ftc_manager" title="Permanent link">&para;</a></h2>
@@ -1512,7 +1586,6 @@
<p>A callback function provided by client applications. It is used by the cache manager to translate a given <code><a href="ft2-cache_subsystem.html#ftc_faceid">FTC_FaceID</a></code> into a new valid <code><a href="ft2-base_interface.html#ft_face">FT_Face</a></code> object, on demand.</p>
<h4>input</h4>
-
<table class="fields">
<tr><td class="val" id="face_id">face_id</td><td class="desc">
<p>The face ID to resolve.</p>
@@ -1526,7 +1599,6 @@
</table>
<h4>output</h4>
-
<table class="fields">
<tr><td class="val" id="aface">aface</td><td class="desc">
<p>A new <code><a href="ft2-base_interface.html#ft_face">FT_Face</a></code> handle.</p>
@@ -1556,7 +1628,6 @@
<p>Create a new cache manager.</p>
<h4>input</h4>
-
<table class="fields">
<tr><td class="val" id="library">library</td><td class="desc">
<p>The parent FreeType library handle to use.</p>
@@ -1579,7 +1650,6 @@
</table>
<h4>output</h4>
-
<table class="fields">
<tr><td class="val" id="amanager">amanager</td><td class="desc">
<p>A handle to a new manager object. 0&nbsp;in case of failure.</p>
@@ -1599,7 +1669,6 @@
<p>Empty a given cache manager. This simply gets rid of all the currently cached <code><a href="ft2-base_interface.html#ft_face">FT_Face</a></code> and <code><a href="ft2-base_interface.html#ft_size">FT_Size</a></code> objects within the manager.</p>
<h4>inout</h4>
-
<table class="fields">
<tr><td class="val" id="manager">manager</td><td class="desc">
<p>A handle to the manager.</p>
@@ -1616,7 +1685,6 @@
<p>Destroy a given manager after emptying it.</p>
<h4>input</h4>
-
<table class="fields">
<tr><td class="val" id="manager">manager</td><td class="desc">
<p>A handle to the target cache manager object.</p>
@@ -1635,7 +1703,6 @@
<p>Retrieve the <code><a href="ft2-base_interface.html#ft_face">FT_Face</a></code> object that corresponds to a given face ID through a cache manager.</p>
<h4>input</h4>
-
<table class="fields">
<tr><td class="val" id="manager">manager</td><td class="desc">
<p>A handle to the cache manager.</p>
@@ -1646,7 +1713,6 @@
</table>
<h4>output</h4>
-
<table class="fields">
<tr><td class="val" id="aface">aface</td><td class="desc">
<p>A handle to the face object.</p>
@@ -1675,7 +1741,6 @@
<p>Retrieve the <code><a href="ft2-base_interface.html#ft_size">FT_Size</a></code> object that corresponds to a given <code><a href="ft2-cache_subsystem.html#ftc_scalerrec">FTC_ScalerRec</a></code> pointer through a cache manager.</p>
<h4>input</h4>
-
<table class="fields">
<tr><td class="val" id="manager">manager</td><td class="desc">
<p>A handle to the cache manager.</p>
@@ -1686,7 +1751,6 @@
</table>
<h4>output</h4>
-
<table class="fields">
<tr><td class="val" id="asize">asize</td><td class="desc">
<p>A handle to the size object.</p>
@@ -1715,7 +1779,6 @@
<p>A special function used to indicate to the cache manager that a given <code><a href="ft2-cache_subsystem.html#ftc_faceid">FTC_FaceID</a></code> is no longer valid, either because its content changed, or because it was deallocated or uninstalled.</p>
<h4>input</h4>
-
<table class="fields">
<tr><td class="val" id="manager">manager</td><td class="desc">
<p>The cache manager handle.</p>
@@ -1750,7 +1813,6 @@
<p>Decrement a cache node's internal reference count. When the count reaches 0, it is not destroyed but becomes eligible for subsequent cache flushes.</p>
<h4>input</h4>
-
<table class="fields">
<tr><td class="val" id="node">node</td><td class="desc">
<p>The cache node handle.</p>
@@ -1779,7 +1841,6 @@
<p>Create a new glyph image cache.</p>
<h4>input</h4>
-
<table class="fields">
<tr><td class="val" id="manager">manager</td><td class="desc">
<p>The parent manager for the image cache.</p>
@@ -1787,7 +1848,6 @@
</table>
<h4>output</h4>
-
<table class="fields">
<tr><td class="val" id="acache">acache</td><td class="desc">
<p>A handle to the new glyph image cache object.</p>
@@ -1811,7 +1871,6 @@
<p>Retrieve a given glyph image from a glyph image cache.</p>
<h4>input</h4>
-
<table class="fields">
<tr><td class="val" id="cache">cache</td><td class="desc">
<p>A handle to the source glyph image cache.</p>
@@ -1825,7 +1884,6 @@
</table>
<h4>output</h4>
-
<table class="fields">
<tr><td class="val" id="aglyph">aglyph</td><td class="desc">
<p>The corresponding <code><a href="ft2-glyph_management.html#ft_glyph">FT_Glyph</a></code> object. 0&nbsp;in case of failure.</p>
@@ -1870,7 +1928,6 @@
<p>Create a new cache to store small glyph bitmaps.</p>
<h4>input</h4>
-
<table class="fields">
<tr><td class="val" id="manager">manager</td><td class="desc">
<p>A handle to the source cache manager.</p>
@@ -1878,7 +1935,6 @@
</table>
<h4>output</h4>
-
<table class="fields">
<tr><td class="val" id="acache">acache</td><td class="desc">
<p>A handle to the new sbit cache. <code>NULL</code> in case of error.</p>
@@ -1902,7 +1958,6 @@
<p>Look up a given small glyph bitmap in a given sbit cache and &lsquo;lock&rsquo; it to prevent its flushing from the cache until needed.</p>
<h4>input</h4>
-
<table class="fields">
<tr><td class="val" id="cache">cache</td><td class="desc">
<p>A handle to the source sbit cache.</p>
@@ -1916,7 +1971,6 @@
</table>
<h4>output</h4>
-
<table class="fields">
<tr><td class="val" id="sbit">sbit</td><td class="desc">
<p>A handle to a small bitmap descriptor.</p>
@@ -1954,7 +2008,6 @@
<p>Create a new charmap cache.</p>
<h4>input</h4>
-
<table class="fields">
<tr><td class="val" id="manager">manager</td><td class="desc">
<p>A handle to the cache manager.</p>
@@ -1962,7 +2015,6 @@
</table>
<h4>output</h4>
-
<table class="fields">
<tr><td class="val" id="acache">acache</td><td class="desc">
<p>A new cache handle. <code>NULL</code> in case of error.</p>
@@ -1988,7 +2040,6 @@
<p>Translate a character code into a glyph index, using the charmap cache.</p>
<h4>input</h4>
-
<table class="fields">
<tr><td class="val" id="cache">cache</td><td class="desc">
<p>A charmap cache handle.</p>
@@ -2025,7 +2076,6 @@
<p>A structure used to describe a given character size in either pixels or points to the cache manager. See <code><a href="ft2-cache_subsystem.html#ftc_manager_lookupsize">FTC_Manager_LookupSize</a></code>.</p>
<h4>fields</h4>
-
<table class="fields">
<tr><td class="val" id="face_id">face_id</td><td class="desc">
<p>The source face ID.</p>
@@ -2074,7 +2124,6 @@
<p>A structure used to model the type of images in a glyph cache.</p>
<h4>fields</h4>
-
<table class="fields">
<tr><td class="val" id="face_id">face_id</td><td class="desc">
<p>The face ID.</p>
@@ -2113,7 +2162,6 @@
<p>A variant of <code><a href="ft2-cache_subsystem.html#ftc_imagecache_lookup">FTC_ImageCache_Lookup</a></code> that uses an <code><a href="ft2-cache_subsystem.html#ftc_scalerrec">FTC_ScalerRec</a></code> to specify the face ID and its size.</p>
<h4>input</h4>
-
<table class="fields">
<tr><td class="val" id="cache">cache</td><td class="desc">
<p>A handle to the source glyph image cache.</p>
@@ -2130,7 +2178,6 @@
</table>
<h4>output</h4>
-
<table class="fields">
<tr><td class="val" id="aglyph">aglyph</td><td class="desc">
<p>The corresponding <code><a href="ft2-glyph_management.html#ft_glyph">FT_Glyph</a></code> object. 0&nbsp;in case of failure.</p>
@@ -2173,7 +2220,6 @@
<p>A very compact structure used to describe a small glyph bitmap.</p>
<h4>fields</h4>
-
<table class="fields">
<tr><td class="val" id="width">width</td><td class="desc">
<p>The bitmap width in pixels.</p>
@@ -2222,7 +2268,6 @@
<p>A variant of <code><a href="ft2-cache_subsystem.html#ftc_sbitcache_lookup">FTC_SBitCache_Lookup</a></code> that uses an <code><a href="ft2-cache_subsystem.html#ftc_scalerrec">FTC_ScalerRec</a></code> to specify the face ID and its size.</p>
<h4>input</h4>
-
<table class="fields">
<tr><td class="val" id="cache">cache</td><td class="desc">
<p>A handle to the source sbit cache.</p>
@@ -2239,7 +2284,6 @@
</table>
<h4>output</h4>
-
<table class="fields">
<tr><td class="val" id="sbit">sbit</td><td class="desc">
<p>A handle to a small bitmap descriptor.</p>
@@ -2260,9 +2304,6 @@
<p>If <code>anode</code> is <code>NULL</code>, the cache node is left unchanged, which means that the bitmap could be flushed out of the cache on the next call to one of the caching sub-system APIs. Don't assume that it is persistent!</p>
<hr>
-
-
-
@@ -2272,59 +2313,60 @@
</article>
</div>
</div>
+
</main>
<footer class="md-footer">
- <div class="md-footer-nav">
- <nav class="md-footer-nav__inner md-grid">
+ <nav class="md-footer__inner md-grid" aria-label="Footer">
+
- <a href="ft2-lcd_rendering.html" title="Subpixel Rendering" class="md-flex md-footer-nav__link md-footer-nav__link--prev" rel="prev">
- <div class="md-flex__cell md-flex__cell--shrink">
- <i class="md-icon md-icon--arrow-back md-footer-nav__button"></i>
- </div>
- <div class="md-flex__cell md-flex__cell--stretch md-footer-nav__title">
- <span class="md-flex__ellipsis">
- <span class="md-footer-nav__direction">
- Previous
- </span>
- Subpixel Rendering
+ <a href="ft2-lcd_rendering.html" class="md-footer__link md-footer__link--prev" aria-label="Previous: Subpixel Rendering" rel="prev">
+ <div class="md-footer__button md-icon">
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M20 11v2H8l5.5 5.5-1.42 1.42L4.16 12l7.92-7.92L13.5 5.5 8 11h12z"/></svg>
+ </div>
+ <div class="md-footer__title">
+ <div class="md-ellipsis">
+ <span class="md-footer__direction">
+ Previous
</span>
+ Subpixel Rendering
</div>
- </a>
-
+ </div>
+ </a>
+
+
- <a href="ft2-computations.html" title="Computations" class="md-flex md-footer-nav__link md-footer-nav__link--next" rel="next">
- <div class="md-flex__cell md-flex__cell--stretch md-footer-nav__title">
- <span class="md-flex__ellipsis">
- <span class="md-footer-nav__direction">
- Next
- </span>
- Computations
+ <a href="ft2-computations.html" class="md-footer__link md-footer__link--next" aria-label="Next: Computations" rel="next">
+ <div class="md-footer__title">
+ <div class="md-ellipsis">
+ <span class="md-footer__direction">
+ Next
</span>
+ Computations
</div>
- <div class="md-flex__cell md-flex__cell--shrink">
- <i class="md-icon md-icon--arrow-forward md-footer-nav__button"></i>
- </div>
- </a>
-
- </nav>
- </div>
+ </div>
+ <div class="md-footer__button md-icon">
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M4 11v2h12l-5.5 5.5 1.42 1.42L19.84 12l-7.92-7.92L10.5 5.5 16 11H4z"/></svg>
+ </div>
+ </a>
+
+ </nav>
<div class="md-footer-meta md-typeset">
<div class="md-footer-meta__inner md-grid">
<div class="md-footer-copyright">
<div class="md-footer-copyright__highlight">
- Copyright 2020 <a href = "https://www.freetype.org/license.html">The FreeType Project</a>.
+ Copyright 2021 <a href = "https://www.freetype.org/license.html">The FreeType Project</a>.
</div>
- powered by
- <a href="https://www.mkdocs.org" target="_blank" rel="noopener">MkDocs</a>
- and
+ Made with
<a href="https://squidfunk.github.io/mkdocs-material/" target="_blank" rel="noopener">
- Material for MkDocs</a>
+ Material for MkDocs
+ </a>
+
</div>
</div>
@@ -2332,10 +2374,13 @@
</footer>
</div>
+ <div class="md-dialog" data-md-component="dialog">
+ <div class="md-dialog__inner md-typeset"></div>
+ </div>
+ <script id="__config" type="application/json">{"base": ".", "features": [], "translations": {"clipboard.copy": "Copy to clipboard", "clipboard.copied": "Copied to clipboard", "search.config.lang": "en", "search.config.pipeline": "trimmer, stopWordFilter", "search.config.separator": "[\\s\\-]+", "search.placeholder": "Search", "search.result.placeholder": "Type to start searching", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.term.missing": "Missing", "select.version.title": "Select version"}, "search": "assets/javascripts/workers/search.477d984a.min.js", "version": null}</script>
- <script src="assets/javascripts/application.c33a9706.js"></script>
-
- <script>app.initialize({version:"1.1",url:{base:"."}})</script>
+
+ <script src="assets/javascripts/bundle.82b56eb2.min.js"></script>
<script src="javascripts/extra.js"></script>
diff --git a/freetype/docs/reference/ft2-cff_driver.html b/freetype/docs/reference/ft2-cff_driver.html
index 70487fec..2988d170 100644
--- a/freetype/docs/reference/ft2-cff_driver.html
+++ b/freetype/docs/reference/ft2-cff_driver.html
@@ -1,145 +1,136 @@
-
-
-
<!doctype html>
<html lang="en" class="no-js">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
- <meta http-equiv="x-ua-compatible" content="ie=edge">
- <meta name="description" content="API Reference Documentation for FreeType-2.10.4">
+ <meta name="description" content="API Reference Documentation for FreeType-2.11.1">
<meta name="author" content="FreeType Contributors">
- <meta name="lang:clipboard.copy" content="Copy to clipboard">
-
- <meta name="lang:clipboard.copied" content="Copied to clipboard">
-
- <meta name="lang:search.language" content="en">
-
- <meta name="lang:search.pipeline.stopwords" content="True">
-
- <meta name="lang:search.pipeline.trimmer" content="True">
-
- <meta name="lang:search.result.none" content="No matching documents">
-
- <meta name="lang:search.result.one" content="1 matching document">
-
- <meta name="lang:search.result.other" content="# matching documents">
-
- <meta name="lang:search.tokenizer" content="[\s\-]+">
-
- <link rel="shortcut icon" href="images/favico.ico">
- <meta name="generator" content="mkdocs-1.1, mkdocs-material-4.6.3">
+ <link rel="icon" href="images/favico.ico">
+ <meta name="generator" content="mkdocs-1.2.1, mkdocs-material-7.1.9">
- <title>The CFF driver - FreeType-2.10.4 API Reference</title>
+ <title>The CFF driver - FreeType-2.11.1 API Reference</title>
- <link rel="stylesheet" href="assets/stylesheets/application.adb8469c.css">
-
- <link rel="stylesheet" href="assets/stylesheets/application-palette.a8b3c06d.css">
-
+ <link rel="stylesheet" href="assets/stylesheets/main.ca7ac06f.min.css">
+ <link rel="stylesheet" href="assets/stylesheets/palette.f1a3b89f.min.css">
+
+
+
+ <meta name="theme-color" content="#4cae4f">
- <meta name="theme-color" content="#4caf50">
- <script src="assets/javascripts/modernizr.86422ebf.js"></script>
-
- <link href="https://fonts.gstatic.com" rel="preconnect" crossorigin>
+
+ <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Noto+Serif:300,400,400i,700%7CRoboto+Mono&display=fallback">
- <style>body,input{font-family:"Noto Serif","Helvetica Neue",Helvetica,Arial,sans-serif}code,kbd,pre{font-family:"Roboto Mono","Courier New",Courier,monospace}</style>
+ <style>:root{--md-text-font-family:"Noto Serif";--md-code-font-family:"Roboto Mono"}</style>
- <link rel="stylesheet" href="assets/fonts/material-icons.css">
<link rel="stylesheet" href="stylesheets/extra.css">
+
+
</head>
+
+
+
+
- <body dir="ltr" data-md-color-primary="green" data-md-color-accent="green">
+ <body dir="ltr" data-md-color-scheme="" data-md-color-primary="green" data-md-color-accent="green">
- <svg class="md-svg">
- <defs>
-
-
- </defs>
- </svg>
- <input class="md-toggle" data-md-toggle="drawer" type="checkbox" id="__drawer" autocomplete="off">
- <input class="md-toggle" data-md-toggle="search" type="checkbox" id="__search" autocomplete="off">
- <label class="md-overlay" data-md-component="overlay" for="__drawer"></label>
- <a href="#the-cff-driver" tabindex="0" class="md-skip">
- Skip to content
- </a>
+ <script>function __prefix(e){return new URL(".",location).pathname+"."+e}function __get(e,t=localStorage){return JSON.parse(t.getItem(__prefix(e)))}</script>
+ <input class="md-toggle" data-md-toggle="drawer" type="checkbox" id="__drawer" autocomplete="off">
+ <input class="md-toggle" data-md-toggle="search" type="checkbox" id="__search" autocomplete="off">
+ <label class="md-overlay" for="__drawer"></label>
+ <div data-md-component="skip">
+
+
+ <a href="#the-cff-driver" class="md-skip">
+ Skip to content
+ </a>
+
+ </div>
+ <div data-md-component="announce">
+
+ </div>
<header class="md-header" data-md-component="header">
- <nav class="md-header-nav md-grid">
- <div class="md-flex">
- <div class="md-flex__cell md-flex__cell--shrink">
- <a href="." title="FreeType-2.10.4 API Reference" aria-label="FreeType-2.10.4 API Reference" class="md-header-nav__button md-logo">
-
- <img alt="logo" src="images/favico.ico" width="24" height="24">
-
- </a>
- </div>
- <div class="md-flex__cell md-flex__cell--shrink">
- <label class="md-icon md-icon--menu md-header-nav__button" for="__drawer"></label>
- </div>
- <div class="md-flex__cell md-flex__cell--stretch">
- <div class="md-flex__ellipsis md-header-nav__title" data-md-component="title">
-
- <span class="md-header-nav__topic">
- FreeType-2.10.4 API Reference
- </span>
- <span class="md-header-nav__topic">
-
- The CFF driver
-
- </span>
-
+ <nav class="md-header__inner md-grid" aria-label="Header">
+ <a href="index.html" title="FreeType-2.11.1 API Reference" class="md-header__button md-logo" aria-label="FreeType-2.11.1 API Reference" data-md-component="logo">
+
+ <img src="images/favico.ico" alt="logo">
+
+ </a>
+ <label class="md-header__button md-icon" for="__drawer">
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M3 6h18v2H3V6m0 5h18v2H3v-2m0 5h18v2H3v-2z"/></svg>
+ </label>
+ <div class="md-header__title" data-md-component="header-title">
+ <div class="md-header__ellipsis">
+ <div class="md-header__topic">
+ <span class="md-ellipsis">
+ FreeType-2.11.1 API Reference
+ </span>
+ </div>
+ <div class="md-header__topic" data-md-component="header-topic">
+ <span class="md-ellipsis">
+
+ The CFF driver
+
+ </span>
</div>
</div>
- <div class="md-flex__cell md-flex__cell--shrink">
-
- <label class="md-icon md-icon--search md-header-nav__button" for="__search"></label>
-
+ </div>
+
+
+
+ <label class="md-header__button md-icon" for="__search">
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M9.5 3A6.5 6.5 0 0 1 16 9.5c0 1.61-.59 3.09-1.56 4.23l.27.27h.79l5 5-1.5 1.5-5-5v-.79l-.27-.27A6.516 6.516 0 0 1 9.5 16 6.5 6.5 0 0 1 3 9.5 6.5 6.5 0 0 1 9.5 3m0 2C7 5 5 7 5 9.5S7 14 9.5 14 14 12 14 9.5 12 5 9.5 5z"/></svg>
+ </label>
+
<div class="md-search" data-md-component="search" role="dialog">
<label class="md-search__overlay" for="__search"></label>
<div class="md-search__inner" role="search">
<form class="md-search__form" name="search">
- <input type="text" class="md-search__input" aria-label="search" name="query" placeholder="Search" autocapitalize="off" autocorrect="off" autocomplete="off" spellcheck="false" data-md-component="query" data-md-state="active">
- <label class="md-icon md-search__icon" for="__search"></label>
- <button type="reset" class="md-icon md-search__icon" data-md-component="reset" tabindex="-1">
- &#xE5CD;
+ <input type="text" class="md-search__input" name="query" aria-label="Search" placeholder="Search" autocapitalize="off" autocorrect="off" autocomplete="off" spellcheck="false" data-md-component="search-query" data-md-state="active" required>
+ <label class="md-search__icon md-icon" for="__search">
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M9.5 3A6.5 6.5 0 0 1 16 9.5c0 1.61-.59 3.09-1.56 4.23l.27.27h.79l5 5-1.5 1.5-5-5v-.79l-.27-.27A6.516 6.516 0 0 1 9.5 16 6.5 6.5 0 0 1 3 9.5 6.5 6.5 0 0 1 9.5 3m0 2C7 5 5 7 5 9.5S7 14 9.5 14 14 12 14 9.5 12 5 9.5 5z"/></svg>
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M20 11v2H8l5.5 5.5-1.42 1.42L4.16 12l7.92-7.92L13.5 5.5 8 11h12z"/></svg>
+ </label>
+ <button type="reset" class="md-search__icon md-icon" aria-label="Clear" tabindex="-1">
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z"/></svg>
</button>
</form>
<div class="md-search__output">
<div class="md-search__scrollwrap" data-md-scrollfix>
- <div class="md-search-result" data-md-component="result">
+ <div class="md-search-result" data-md-component="search-result">
<div class="md-search-result__meta">
- Type to start searching
+ Initializing search
</div>
<ol class="md-search-result__list"></ol>
</div>
@@ -147,33 +138,35 @@
</div>
</div>
</div>
-
- </div>
-
- </div>
+
+
</nav>
</header>
- <div class="md-container">
+ <div class="md-container" data-md-component="container">
-
+
- <main class="md-main" role="main">
- <div class="md-main__inner md-grid" data-md-component="container">
+ <main class="md-main" data-md-component="main">
+ <div class="md-main__inner md-grid">
- <div class="md-sidebar md-sidebar--primary" data-md-component="navigation">
+
+ <div class="md-sidebar md-sidebar--primary" data-md-component="sidebar" data-md-type="navigation" >
<div class="md-sidebar__scrollwrap">
<div class="md-sidebar__inner">
- <nav class="md-nav md-nav--primary" data-md-level="0">
- <label class="md-nav__title md-nav__title--site" for="__drawer">
- <a href="." title="FreeType-2.10.4 API Reference" class="md-nav__button md-logo">
-
- <img alt="logo" src="images/favico.ico" width="48" height="48">
+
+
+
+<nav class="md-nav md-nav--primary" aria-label="Navigation" data-md-level="0">
+ <label class="md-nav__title" for="__drawer">
+ <a href="index.html" title="FreeType-2.11.1 API Reference" class="md-nav__button md-logo" aria-label="FreeType-2.11.1 API Reference" data-md-component="logo">
+ <img src="images/favico.ico" alt="logo">
+
</a>
- FreeType-2.10.4 API Reference
+ FreeType-2.11.1 API Reference
</label>
<ul class="md-nav__list" data-md-scrollfix>
@@ -182,360 +175,396 @@
-
- <li class="md-nav__item">
- <a href="index.html" title="TOC" class="md-nav__link">
- TOC
- </a>
- </li>
+
+
+
+ <li class="md-nav__item">
+ <a href="index.html" class="md-nav__link">
+ TOC
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-index.html" title="Index" class="md-nav__link">
- Index
- </a>
- </li>
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-index.html" class="md-nav__link">
+ Index
+ </a>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-3" type="checkbox" id="nav-3">
+
+
+
- <label class="md-nav__link" for="nav-3">
- General Remarks
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-3">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_3" type="checkbox" id="__nav_3" >
+
+ <label class="md-nav__link" for="__nav_3">
General Remarks
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
+ <nav class="md-nav" aria-label="General Remarks" data-md-level="1">
+ <label class="md-nav__title" for="__nav_3">
+ <span class="md-nav__icon md-icon"></span>
+ General Remarks
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-header_inclusion.html" title="FreeType's header inclusion scheme" class="md-nav__link">
- FreeType's header inclusion scheme
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-preamble.html" class="md-nav__link">
+ Preamble
+ </a>
+ </li>
+
-
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-header_inclusion.html" class="md-nav__link">
+ FreeType's header inclusion scheme
+ </a>
+ </li>
+
- <li class="md-nav__item">
- <a href="ft2-user_allocation.html" title="User allocation" class="md-nav__link">
- User allocation
- </a>
- </li>
+
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-user_allocation.html" class="md-nav__link">
+ User allocation
+ </a>
+ </li>
+
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-4" type="checkbox" id="nav-4">
+
+
+
- <label class="md-nav__link" for="nav-4">
- Core API
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-4">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_4" type="checkbox" id="__nav_4" >
+
+ <label class="md-nav__link" for="__nav_4">
Core API
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
-
-
+ <nav class="md-nav" aria-label="Core API" data-md-level="1">
+ <label class="md-nav__title" for="__nav_4">
+ <span class="md-nav__icon md-icon"></span>
+ Core API
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-version.html" class="md-nav__link">
+ FreeType Version
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-version.html" title="FreeType Version" class="md-nav__link">
- FreeType Version
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-basic_types.html" title="Basic Data Types" class="md-nav__link">
- Basic Data Types
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-basic_types.html" class="md-nav__link">
+ Basic Data Types
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-base_interface.html" class="md-nav__link">
+ Base Interface
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-base_interface.html" title="Base Interface" class="md-nav__link">
- Base Interface
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-glyph_variants.html" title="Unicode Variation Sequences" class="md-nav__link">
- Unicode Variation Sequences
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-glyph_variants.html" class="md-nav__link">
+ Unicode Variation Sequences
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-color_management.html" title="Glyph Color Management" class="md-nav__link">
- Glyph Color Management
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-color_management.html" class="md-nav__link">
+ Glyph Color Management
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-layer_management.html" title="Glyph Layer Management" class="md-nav__link">
- Glyph Layer Management
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-layer_management.html" class="md-nav__link">
+ Glyph Layer Management
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-glyph_management.html" title="Glyph Management" class="md-nav__link">
- Glyph Management
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-glyph_management.html" class="md-nav__link">
+ Glyph Management
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-mac_specific.html" title="Mac Specific Interface" class="md-nav__link">
- Mac Specific Interface
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-mac_specific.html" class="md-nav__link">
+ Mac Specific Interface
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-sizes_management.html" title="Size Management" class="md-nav__link">
- Size Management
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-sizes_management.html" class="md-nav__link">
+ Size Management
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-header_file_macros.html" title="Header File Macros" class="md-nav__link">
- Header File Macros
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-header_file_macros.html" class="md-nav__link">
+ Header File Macros
+ </a>
+ </li>
+
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-5" type="checkbox" id="nav-5">
+
+
+
- <label class="md-nav__link" for="nav-5">
- Format-Specific API
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-5">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_5" type="checkbox" id="__nav_5" >
+
+ <label class="md-nav__link" for="__nav_5">
Format-Specific API
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
+ <nav class="md-nav" aria-label="Format-Specific API" data-md-level="1">
+ <label class="md-nav__title" for="__nav_5">
+ <span class="md-nav__icon md-icon"></span>
+ Format-Specific API
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-multiple_masters.html" title="Multiple Masters" class="md-nav__link">
- Multiple Masters
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-multiple_masters.html" class="md-nav__link">
+ Multiple Masters
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-truetype_tables.html" title="TrueType Tables" class="md-nav__link">
- TrueType Tables
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-truetype_tables.html" class="md-nav__link">
+ TrueType Tables
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-type1_tables.html" title="Type 1 Tables" class="md-nav__link">
- Type 1 Tables
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-type1_tables.html" class="md-nav__link">
+ Type 1 Tables
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-sfnt_names.html" title="SFNT Names" class="md-nav__link">
- SFNT Names
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-sfnt_names.html" class="md-nav__link">
+ SFNT Names
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-bdf_fonts.html" class="md-nav__link">
+ BDF and PCF Files
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-bdf_fonts.html" title="BDF and PCF Files" class="md-nav__link">
- BDF and PCF Files
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-cid_fonts.html" title="CID Fonts" class="md-nav__link">
- CID Fonts
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-cid_fonts.html" class="md-nav__link">
+ CID Fonts
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-pfr_fonts.html" class="md-nav__link">
+ PFR Fonts
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-pfr_fonts.html" title="PFR Fonts" class="md-nav__link">
- PFR Fonts
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-winfnt_fonts.html" title="Window FNT Files" class="md-nav__link">
- Window FNT Files
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-winfnt_fonts.html" class="md-nav__link">
+ Window FNT Files
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-font_formats.html" title="Font Formats" class="md-nav__link">
- Font Formats
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-font_formats.html" class="md-nav__link">
+ Font Formats
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-gasp_table.html" title="Gasp Table" class="md-nav__link">
- Gasp Table
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-gasp_table.html" class="md-nav__link">
+ Gasp Table
+ </a>
+ </li>
+
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
@@ -543,65 +572,75 @@
-
-
- <li class="md-nav__item md-nav__item--active md-nav__item--nested">
+
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-6" type="checkbox" id="nav-6" checked>
+
+
- <label class="md-nav__link" for="nav-6">
- Controlling FreeType Modules
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-6">
+ <li class="md-nav__item md-nav__item--active md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_6" type="checkbox" id="__nav_6" checked>
+
+ <label class="md-nav__link" for="__nav_6">
Controlling FreeType Modules
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
+ <nav class="md-nav" aria-label="Controlling FreeType Modules" data-md-level="1">
+ <label class="md-nav__title" for="__nav_6">
+ <span class="md-nav__icon md-icon"></span>
+ Controlling FreeType Modules
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-auto_hinter.html" title="The auto-hinter" class="md-nav__link">
- The auto-hinter
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-auto_hinter.html" class="md-nav__link">
+ The auto-hinter
+ </a>
+ </li>
+
-
-
-
-
+
+
-
-
- <li class="md-nav__item md-nav__item--active">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="toc" type="checkbox" id="__toc">
+
+
+ <li class="md-nav__item md-nav__item--active">
-
-
- <label class="md-nav__link md-nav__link--active" for="__toc">
+ <input class="md-nav__toggle md-toggle" data-md-toggle="toc" type="checkbox" id="__toc">
+
+
+
+
+
+ <label class="md-nav__link md-nav__link--active" for="__toc">
+ The CFF driver
+ <span class="md-nav__icon md-icon"></span>
+ </label>
+
+ <a href="ft2-cff_driver.html" class="md-nav__link md-nav__link--active">
The CFF driver
- </label>
-
- <a href="ft2-cff_driver.html" title="The CFF driver" class="md-nav__link md-nav__link--active">
- The CFF driver
- </a>
-
+ </a>
-<nav class="md-nav md-nav--secondary">
+
+<nav class="md-nav md-nav--secondary" aria-label="Table of contents">
+
- <label class="md-nav__title" for="__toc">Table of contents</label>
- <ul class="md-nav__list" data-md-scrollfix>
+ <label class="md-nav__title" for="__toc">
+ <span class="md-nav__icon md-icon"></span>
+ Table of contents
+ </label>
+ <ul class="md-nav__list" data-md-component="toc" data-md-scrollfix>
<li class="md-nav__item">
<a href="#synopsis" class="md-nav__link">
@@ -610,416 +649,450 @@
</li>
-
-
-
-
</ul>
</nav>
-
- </li>
+
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-t1_cid_driver.html" class="md-nav__link">
+ The Type 1 and CID drivers
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-t1_cid_driver.html" title="The Type 1 and CID drivers" class="md-nav__link">
- The Type 1 and CID drivers
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-tt_driver.html" title="The TrueType driver" class="md-nav__link">
- The TrueType driver
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-tt_driver.html" class="md-nav__link">
+ The TrueType driver
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-pcf_driver.html" title="The PCF driver" class="md-nav__link">
- The PCF driver
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-pcf_driver.html" class="md-nav__link">
+ The PCF driver
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-properties.html" title="Driver properties" class="md-nav__link">
- Driver properties
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-properties.html" class="md-nav__link">
+ Driver properties
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-parameter_tags.html" title="Parameter Tags" class="md-nav__link">
- Parameter Tags
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-parameter_tags.html" class="md-nav__link">
+ Parameter Tags
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-lcd_rendering.html" title="Subpixel Rendering" class="md-nav__link">
- Subpixel Rendering
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-lcd_rendering.html" class="md-nav__link">
+ Subpixel Rendering
+ </a>
+ </li>
+
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-7" type="checkbox" id="nav-7">
+
+
+
- <label class="md-nav__link" for="nav-7">
- Cache Sub-System
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-7">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_7" type="checkbox" id="__nav_7" >
+
+ <label class="md-nav__link" for="__nav_7">
Cache Sub-System
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
-
+ <nav class="md-nav" aria-label="Cache Sub-System" data-md-level="1">
+ <label class="md-nav__title" for="__nav_7">
+ <span class="md-nav__icon md-icon"></span>
+ Cache Sub-System
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
-
-
-
- <li class="md-nav__item">
- <a href="ft2-cache_subsystem.html" title="Cache Sub-System" class="md-nav__link">
- Cache Sub-System
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-cache_subsystem.html" class="md-nav__link">
+ Cache Sub-System
+ </a>
+ </li>
+
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-8" type="checkbox" id="nav-8">
+
+
+
- <label class="md-nav__link" for="nav-8">
- Support API
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-8">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_8" type="checkbox" id="__nav_8" >
+
+ <label class="md-nav__link" for="__nav_8">
Support API
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
-
-
+ <nav class="md-nav" aria-label="Support API" data-md-level="1">
+ <label class="md-nav__title" for="__nav_8">
+ <span class="md-nav__icon md-icon"></span>
+ Support API
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-computations.html" class="md-nav__link">
+ Computations
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-computations.html" title="Computations" class="md-nav__link">
- Computations
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-list_processing.html" title="List Processing" class="md-nav__link">
- List Processing
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-list_processing.html" class="md-nav__link">
+ List Processing
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-outline_processing.html" title="Outline Processing" class="md-nav__link">
- Outline Processing
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-outline_processing.html" class="md-nav__link">
+ Outline Processing
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-quick_advance.html" title="Quick retrieval of advance values" class="md-nav__link">
- Quick retrieval of advance values
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-quick_advance.html" class="md-nav__link">
+ Quick retrieval of advance values
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-bitmap_handling.html" title="Bitmap Handling" class="md-nav__link">
- Bitmap Handling
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-bitmap_handling.html" class="md-nav__link">
+ Bitmap Handling
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-raster.html" title="Scanline Converter" class="md-nav__link">
- Scanline Converter
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-raster.html" class="md-nav__link">
+ Scanline Converter
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-glyph_stroker.html" title="Glyph Stroker" class="md-nav__link">
- Glyph Stroker
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-glyph_stroker.html" class="md-nav__link">
+ Glyph Stroker
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-system_interface.html" class="md-nav__link">
+ System Interface
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-system_interface.html" title="System Interface" class="md-nav__link">
- System Interface
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-module_management.html" title="Module Management" class="md-nav__link">
- Module Management
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-module_management.html" class="md-nav__link">
+ Module Management
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-gzip.html" class="md-nav__link">
+ GZIP Streams
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-gzip.html" title="GZIP Streams" class="md-nav__link">
- GZIP Streams
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-lzw.html" title="LZW Streams" class="md-nav__link">
- LZW Streams
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-lzw.html" class="md-nav__link">
+ LZW Streams
+ </a>
+ </li>
+
-
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-bzip2.html" class="md-nav__link">
+ BZIP2 Streams
+ </a>
+ </li>
+
- <li class="md-nav__item">
- <a href="ft2-bzip2.html" title="BZIP2 Streams" class="md-nav__link">
- BZIP2 Streams
- </a>
- </li>
+
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-debugging_apis.html" class="md-nav__link">
+ External Debugging APIs
+ </a>
+ </li>
+
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-9" type="checkbox" id="nav-9">
+
+
+
- <label class="md-nav__link" for="nav-9">
- Error Codes
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-9">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_9" type="checkbox" id="__nav_9" >
+
+ <label class="md-nav__link" for="__nav_9">
Error Codes
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
-
-
+ <nav class="md-nav" aria-label="Error Codes" data-md-level="1">
+ <label class="md-nav__title" for="__nav_9">
+ <span class="md-nav__icon md-icon"></span>
+ Error Codes
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-error_enumerations.html" class="md-nav__link">
+ Error Enumerations
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-error_enumerations.html" title="Error Enumerations" class="md-nav__link">
- Error Enumerations
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-error_code_values.html" title="Error Code Values" class="md-nav__link">
- Error Code Values
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-error_code_values.html" class="md-nav__link">
+ Error Code Values
+ </a>
+ </li>
+
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-10" type="checkbox" id="nav-10">
+
+
+
- <label class="md-nav__link" for="nav-10">
- Miscellaneous
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-10">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_10" type="checkbox" id="__nav_10" >
+
+ <label class="md-nav__link" for="__nav_10">
Miscellaneous
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
+ <nav class="md-nav" aria-label="Miscellaneous" data-md-level="1">
+ <label class="md-nav__title" for="__nav_10">
+ <span class="md-nav__icon md-icon"></span>
+ Miscellaneous
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-gx_validation.html" title="TrueTypeGX/AAT Validation" class="md-nav__link">
- TrueTypeGX/AAT Validation
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-gx_validation.html" class="md-nav__link">
+ TrueTypeGX/AAT Validation
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-incremental.html" class="md-nav__link">
+ Incremental Loading
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-incremental.html" title="Incremental Loading" class="md-nav__link">
- Incremental Loading
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-truetype_engine.html" title="The TrueType Engine" class="md-nav__link">
- The TrueType Engine
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-truetype_engine.html" class="md-nav__link">
+ The TrueType Engine
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-ot_validation.html" title="OpenType Validation" class="md-nav__link">
- OpenType Validation
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-ot_validation.html" class="md-nav__link">
+ OpenType Validation
+ </a>
+ </li>
+
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
</ul>
@@ -1029,18 +1102,23 @@
</div>
- <div class="md-sidebar md-sidebar--secondary" data-md-component="toc">
+
+ <div class="md-sidebar md-sidebar--secondary" data-md-component="sidebar" data-md-type="toc" >
<div class="md-sidebar__scrollwrap">
<div class="md-sidebar__inner">
-<nav class="md-nav md-nav--secondary">
+<nav class="md-nav md-nav--secondary" aria-label="Table of contents">
+
- <label class="md-nav__title" for="__toc">Table of contents</label>
- <ul class="md-nav__list" data-md-scrollfix>
+ <label class="md-nav__title" for="__toc">
+ <span class="md-nav__icon md-icon"></span>
+ Table of contents
+ </label>
+ <ul class="md-nav__list" data-md-component="toc" data-md-scrollfix>
<li class="md-nav__item">
<a href="#synopsis" class="md-nav__link">
@@ -1049,10 +1127,6 @@
</li>
-
-
-
-
</ul>
</nav>
@@ -1061,7 +1135,7 @@
</div>
- <div class="md-content">
+ <div class="md-content" data-md-component="content">
<article class="md-content__inner md-typeset">
@@ -1073,18 +1147,15 @@
<p>While FreeType's CFF driver doesn't expose API functions by itself, it is possible to control its behaviour with <code><a href="ft2-module_management.html#ft_property_set">FT_Property_Set</a></code> and <code><a href="ft2-module_management.html#ft_property_get">FT_Property_Get</a></code>.</p>
<p>The CFF driver's module name is &lsquo;cff&rsquo;.</p>
<p>Available properties are <code><a href="ft2-properties.html#hinting-engine">hinting-engine</a></code>, <code><a href="ft2-properties.html#no-stem-darkening">no-stem-darkening</a></code>, <code><a href="ft2-properties.html#darkening-parameters">darkening-parameters</a></code>, and <code><a href="ft2-properties.html#random-seed">random-seed</a></code>, as documented in the &lsquo;<a href="ft2-properties.html#properties">Driver properties</a>&rsquo; section.</p>
-<p><strong>Hinting and antialiasing principles of the new engine</strong></p>
-<p>The rasterizer is positioning horizontal features (e.g., ascender height &amp; x-height, or crossbars) on the pixel grid and minimizing the amount of antialiasing applied to them, while placing vertical features (vertical stems) on the pixel grid without hinting, thus representing the stem position and weight accurately. Sometimes the vertical stems may be only partially black. In this context, &lsquo;antialiasing&rsquo; means that stems are not positioned exactly on pixel borders, causing a fuzzy appearance.</p>
+<p><strong>Hinting and anti-aliasing principles of the new engine</strong></p>
+<p>The rasterizer is positioning horizontal features (e.g., ascender height &amp; x-height, or crossbars) on the pixel grid and minimizing the amount of anti-aliasing applied to them, while placing vertical features (vertical stems) on the pixel grid without hinting, thus representing the stem position and weight accurately. Sometimes the vertical stems may be only partially black. In this context, &lsquo;anti-aliasing&rsquo; means that stems are not positioned exactly on pixel borders, causing a fuzzy appearance.</p>
<p>There are two principles behind this approach.</p>
<p>1) No hinting in the horizontal direction: Unlike &lsquo;superhinted&rsquo; TrueType, which changes glyph widths to accommodate regular inter-glyph spacing, Adobe's approach is &lsquo;faithful to the design&rsquo; in representing both the glyph width and the inter-glyph spacing designed for the font. This makes the screen display as close as it can be to the result one would get with infinite resolution, while preserving what is considered the key characteristics of each glyph. Note that the distances between unhinted and grid-fitted positions at small sizes are comparable to kerning values and thus would be noticeable (and distracting) while reading if hinting were applied.</p>
-<p>One of the reasons to not hint horizontally is antialiasing for LCD screens: The pixel geometry of modern displays supplies three vertical subpixels as the eye moves horizontally across each visible pixel. On devices where we can be certain this characteristic is present a rasterizer can take advantage of the subpixels to add increments of weight. In Western writing systems this turns out to be the more critical direction anyway; the weights and spacing of vertical stems (see above) are central to Armenian, Cyrillic, Greek, and Latin type designs. Even when the rasterizer uses greyscale antialiasing instead of color (a necessary compromise when one doesn't know the screen characteristics), the unhinted vertical features preserve the design's weight and spacing much better than aliased type would.</p>
+<p>One of the reasons to not hint horizontally is anti-aliasing for LCD screens: The pixel geometry of modern displays supplies three vertical subpixels as the eye moves horizontally across each visible pixel. On devices where we can be certain this characteristic is present a rasterizer can take advantage of the subpixels to add increments of weight. In Western writing systems this turns out to be the more critical direction anyway; the weights and spacing of vertical stems (see above) are central to Armenian, Cyrillic, Greek, and Latin type designs. Even when the rasterizer uses greyscale anti-aliasing instead of color (a necessary compromise when one doesn't know the screen characteristics), the unhinted vertical features preserve the design's weight and spacing much better than aliased type would.</p>
<p>2) Alignment in the vertical direction: Weights and spacing along the y&nbsp;axis are less critical; what is much more important is the visual alignment of related features (like cap-height and x-height). The sense of alignment for these is enhanced by the sharpness of grid-fit edges, while the cruder vertical resolution (full pixels instead of &#8531; pixels) is less of a problem.</p>
<p>On the technical side, horizontal alignment zones for ascender, x-height, and other important height values (traditionally called &lsquo;blue zones&rsquo;) as defined in the font are positioned independently, each being rounded to the nearest pixel edge, taking care of overshoot suppression at small sizes, stem darkening, and scaling.</p>
<p>Hstems (this is, hint values defined in the font to help align horizontal features) that fall within a blue zone are said to be &lsquo;captured&rsquo; and are aligned to that zone. Uncaptured stems are moved in one of four ways, top edge up or down, bottom edge up or down. Unless there are conflicting hstems, the smallest movement is taken to minimize distortion.</p>
-
-
-
@@ -1094,59 +1165,60 @@
</article>
</div>
</div>
+
</main>
<footer class="md-footer">
- <div class="md-footer-nav">
- <nav class="md-footer-nav__inner md-grid">
+ <nav class="md-footer__inner md-grid" aria-label="Footer">
+
- <a href="ft2-auto_hinter.html" title="The auto-hinter" class="md-flex md-footer-nav__link md-footer-nav__link--prev" rel="prev">
- <div class="md-flex__cell md-flex__cell--shrink">
- <i class="md-icon md-icon--arrow-back md-footer-nav__button"></i>
- </div>
- <div class="md-flex__cell md-flex__cell--stretch md-footer-nav__title">
- <span class="md-flex__ellipsis">
- <span class="md-footer-nav__direction">
- Previous
- </span>
- The auto-hinter
+ <a href="ft2-auto_hinter.html" class="md-footer__link md-footer__link--prev" aria-label="Previous: The auto-hinter" rel="prev">
+ <div class="md-footer__button md-icon">
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M20 11v2H8l5.5 5.5-1.42 1.42L4.16 12l7.92-7.92L13.5 5.5 8 11h12z"/></svg>
+ </div>
+ <div class="md-footer__title">
+ <div class="md-ellipsis">
+ <span class="md-footer__direction">
+ Previous
</span>
+ The auto-hinter
</div>
- </a>
-
+ </div>
+ </a>
+
+
- <a href="ft2-t1_cid_driver.html" title="The Type 1 and CID drivers" class="md-flex md-footer-nav__link md-footer-nav__link--next" rel="next">
- <div class="md-flex__cell md-flex__cell--stretch md-footer-nav__title">
- <span class="md-flex__ellipsis">
- <span class="md-footer-nav__direction">
- Next
- </span>
- The Type 1 and CID drivers
+ <a href="ft2-t1_cid_driver.html" class="md-footer__link md-footer__link--next" aria-label="Next: The Type 1 and CID drivers" rel="next">
+ <div class="md-footer__title">
+ <div class="md-ellipsis">
+ <span class="md-footer__direction">
+ Next
</span>
+ The Type 1 and CID drivers
</div>
- <div class="md-flex__cell md-flex__cell--shrink">
- <i class="md-icon md-icon--arrow-forward md-footer-nav__button"></i>
- </div>
- </a>
-
- </nav>
- </div>
+ </div>
+ <div class="md-footer__button md-icon">
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M4 11v2h12l-5.5 5.5 1.42 1.42L19.84 12l-7.92-7.92L10.5 5.5 16 11H4z"/></svg>
+ </div>
+ </a>
+
+ </nav>
<div class="md-footer-meta md-typeset">
<div class="md-footer-meta__inner md-grid">
<div class="md-footer-copyright">
<div class="md-footer-copyright__highlight">
- Copyright 2020 <a href = "https://www.freetype.org/license.html">The FreeType Project</a>.
+ Copyright 2021 <a href = "https://www.freetype.org/license.html">The FreeType Project</a>.
</div>
- powered by
- <a href="https://www.mkdocs.org" target="_blank" rel="noopener">MkDocs</a>
- and
+ Made with
<a href="https://squidfunk.github.io/mkdocs-material/" target="_blank" rel="noopener">
- Material for MkDocs</a>
+ Material for MkDocs
+ </a>
+
</div>
</div>
@@ -1154,10 +1226,13 @@
</footer>
</div>
+ <div class="md-dialog" data-md-component="dialog">
+ <div class="md-dialog__inner md-typeset"></div>
+ </div>
+ <script id="__config" type="application/json">{"base": ".", "features": [], "translations": {"clipboard.copy": "Copy to clipboard", "clipboard.copied": "Copied to clipboard", "search.config.lang": "en", "search.config.pipeline": "trimmer, stopWordFilter", "search.config.separator": "[\\s\\-]+", "search.placeholder": "Search", "search.result.placeholder": "Type to start searching", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.term.missing": "Missing", "select.version.title": "Select version"}, "search": "assets/javascripts/workers/search.477d984a.min.js", "version": null}</script>
- <script src="assets/javascripts/application.c33a9706.js"></script>
-
- <script>app.initialize({version:"1.1",url:{base:"."}})</script>
+
+ <script src="assets/javascripts/bundle.82b56eb2.min.js"></script>
<script src="javascripts/extra.js"></script>
diff --git a/freetype/docs/reference/ft2-cid_fonts.html b/freetype/docs/reference/ft2-cid_fonts.html
index 72a5c473..d44150c4 100644
--- a/freetype/docs/reference/ft2-cid_fonts.html
+++ b/freetype/docs/reference/ft2-cid_fonts.html
@@ -1,145 +1,136 @@
-
-
-
<!doctype html>
<html lang="en" class="no-js">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
- <meta http-equiv="x-ua-compatible" content="ie=edge">
- <meta name="description" content="API Reference Documentation for FreeType-2.10.4">
+ <meta name="description" content="API Reference Documentation for FreeType-2.11.1">
<meta name="author" content="FreeType Contributors">
- <meta name="lang:clipboard.copy" content="Copy to clipboard">
-
- <meta name="lang:clipboard.copied" content="Copied to clipboard">
-
- <meta name="lang:search.language" content="en">
-
- <meta name="lang:search.pipeline.stopwords" content="True">
-
- <meta name="lang:search.pipeline.trimmer" content="True">
-
- <meta name="lang:search.result.none" content="No matching documents">
-
- <meta name="lang:search.result.one" content="1 matching document">
-
- <meta name="lang:search.result.other" content="# matching documents">
-
- <meta name="lang:search.tokenizer" content="[\s\-]+">
-
- <link rel="shortcut icon" href="images/favico.ico">
- <meta name="generator" content="mkdocs-1.1, mkdocs-material-4.6.3">
+ <link rel="icon" href="images/favico.ico">
+ <meta name="generator" content="mkdocs-1.2.1, mkdocs-material-7.1.9">
- <title>CID Fonts - FreeType-2.10.4 API Reference</title>
+ <title>CID Fonts - FreeType-2.11.1 API Reference</title>
- <link rel="stylesheet" href="assets/stylesheets/application.adb8469c.css">
-
- <link rel="stylesheet" href="assets/stylesheets/application-palette.a8b3c06d.css">
-
+ <link rel="stylesheet" href="assets/stylesheets/main.ca7ac06f.min.css">
+ <link rel="stylesheet" href="assets/stylesheets/palette.f1a3b89f.min.css">
+
+
+
+ <meta name="theme-color" content="#4cae4f">
- <meta name="theme-color" content="#4caf50">
- <script src="assets/javascripts/modernizr.86422ebf.js"></script>
-
- <link href="https://fonts.gstatic.com" rel="preconnect" crossorigin>
+
+ <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Noto+Serif:300,400,400i,700%7CRoboto+Mono&display=fallback">
- <style>body,input{font-family:"Noto Serif","Helvetica Neue",Helvetica,Arial,sans-serif}code,kbd,pre{font-family:"Roboto Mono","Courier New",Courier,monospace}</style>
+ <style>:root{--md-text-font-family:"Noto Serif";--md-code-font-family:"Roboto Mono"}</style>
- <link rel="stylesheet" href="assets/fonts/material-icons.css">
<link rel="stylesheet" href="stylesheets/extra.css">
+
+
</head>
+
+
+
+
- <body dir="ltr" data-md-color-primary="green" data-md-color-accent="green">
+ <body dir="ltr" data-md-color-scheme="" data-md-color-primary="green" data-md-color-accent="green">
- <svg class="md-svg">
- <defs>
-
-
- </defs>
- </svg>
- <input class="md-toggle" data-md-toggle="drawer" type="checkbox" id="__drawer" autocomplete="off">
- <input class="md-toggle" data-md-toggle="search" type="checkbox" id="__search" autocomplete="off">
- <label class="md-overlay" data-md-component="overlay" for="__drawer"></label>
- <a href="#cid-fonts" tabindex="0" class="md-skip">
- Skip to content
- </a>
+ <script>function __prefix(e){return new URL(".",location).pathname+"."+e}function __get(e,t=localStorage){return JSON.parse(t.getItem(__prefix(e)))}</script>
+ <input class="md-toggle" data-md-toggle="drawer" type="checkbox" id="__drawer" autocomplete="off">
+ <input class="md-toggle" data-md-toggle="search" type="checkbox" id="__search" autocomplete="off">
+ <label class="md-overlay" for="__drawer"></label>
+ <div data-md-component="skip">
+
+
+ <a href="#cid-fonts" class="md-skip">
+ Skip to content
+ </a>
+
+ </div>
+ <div data-md-component="announce">
+
+ </div>
<header class="md-header" data-md-component="header">
- <nav class="md-header-nav md-grid">
- <div class="md-flex">
- <div class="md-flex__cell md-flex__cell--shrink">
- <a href="." title="FreeType-2.10.4 API Reference" aria-label="FreeType-2.10.4 API Reference" class="md-header-nav__button md-logo">
-
- <img alt="logo" src="images/favico.ico" width="24" height="24">
-
- </a>
- </div>
- <div class="md-flex__cell md-flex__cell--shrink">
- <label class="md-icon md-icon--menu md-header-nav__button" for="__drawer"></label>
- </div>
- <div class="md-flex__cell md-flex__cell--stretch">
- <div class="md-flex__ellipsis md-header-nav__title" data-md-component="title">
-
- <span class="md-header-nav__topic">
- FreeType-2.10.4 API Reference
- </span>
- <span class="md-header-nav__topic">
-
- CID Fonts
-
- </span>
-
+ <nav class="md-header__inner md-grid" aria-label="Header">
+ <a href="index.html" title="FreeType-2.11.1 API Reference" class="md-header__button md-logo" aria-label="FreeType-2.11.1 API Reference" data-md-component="logo">
+
+ <img src="images/favico.ico" alt="logo">
+
+ </a>
+ <label class="md-header__button md-icon" for="__drawer">
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M3 6h18v2H3V6m0 5h18v2H3v-2m0 5h18v2H3v-2z"/></svg>
+ </label>
+ <div class="md-header__title" data-md-component="header-title">
+ <div class="md-header__ellipsis">
+ <div class="md-header__topic">
+ <span class="md-ellipsis">
+ FreeType-2.11.1 API Reference
+ </span>
+ </div>
+ <div class="md-header__topic" data-md-component="header-topic">
+ <span class="md-ellipsis">
+
+ CID Fonts
+
+ </span>
</div>
</div>
- <div class="md-flex__cell md-flex__cell--shrink">
-
- <label class="md-icon md-icon--search md-header-nav__button" for="__search"></label>
-
+ </div>
+
+
+
+ <label class="md-header__button md-icon" for="__search">
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M9.5 3A6.5 6.5 0 0 1 16 9.5c0 1.61-.59 3.09-1.56 4.23l.27.27h.79l5 5-1.5 1.5-5-5v-.79l-.27-.27A6.516 6.516 0 0 1 9.5 16 6.5 6.5 0 0 1 3 9.5 6.5 6.5 0 0 1 9.5 3m0 2C7 5 5 7 5 9.5S7 14 9.5 14 14 12 14 9.5 12 5 9.5 5z"/></svg>
+ </label>
+
<div class="md-search" data-md-component="search" role="dialog">
<label class="md-search__overlay" for="__search"></label>
<div class="md-search__inner" role="search">
<form class="md-search__form" name="search">
- <input type="text" class="md-search__input" aria-label="search" name="query" placeholder="Search" autocapitalize="off" autocorrect="off" autocomplete="off" spellcheck="false" data-md-component="query" data-md-state="active">
- <label class="md-icon md-search__icon" for="__search"></label>
- <button type="reset" class="md-icon md-search__icon" data-md-component="reset" tabindex="-1">
- &#xE5CD;
+ <input type="text" class="md-search__input" name="query" aria-label="Search" placeholder="Search" autocapitalize="off" autocorrect="off" autocomplete="off" spellcheck="false" data-md-component="search-query" data-md-state="active" required>
+ <label class="md-search__icon md-icon" for="__search">
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M9.5 3A6.5 6.5 0 0 1 16 9.5c0 1.61-.59 3.09-1.56 4.23l.27.27h.79l5 5-1.5 1.5-5-5v-.79l-.27-.27A6.516 6.516 0 0 1 9.5 16 6.5 6.5 0 0 1 3 9.5 6.5 6.5 0 0 1 9.5 3m0 2C7 5 5 7 5 9.5S7 14 9.5 14 14 12 14 9.5 12 5 9.5 5z"/></svg>
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M20 11v2H8l5.5 5.5-1.42 1.42L4.16 12l7.92-7.92L13.5 5.5 8 11h12z"/></svg>
+ </label>
+ <button type="reset" class="md-search__icon md-icon" aria-label="Clear" tabindex="-1">
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z"/></svg>
</button>
</form>
<div class="md-search__output">
<div class="md-search__scrollwrap" data-md-scrollfix>
- <div class="md-search-result" data-md-component="result">
+ <div class="md-search-result" data-md-component="search-result">
<div class="md-search-result__meta">
- Type to start searching
+ Initializing search
</div>
<ol class="md-search-result__list"></ol>
</div>
@@ -147,33 +138,35 @@
</div>
</div>
</div>
-
- </div>
-
- </div>
+
+
</nav>
</header>
- <div class="md-container">
+ <div class="md-container" data-md-component="container">
-
+
- <main class="md-main" role="main">
- <div class="md-main__inner md-grid" data-md-component="container">
+ <main class="md-main" data-md-component="main">
+ <div class="md-main__inner md-grid">
- <div class="md-sidebar md-sidebar--primary" data-md-component="navigation">
+
+ <div class="md-sidebar md-sidebar--primary" data-md-component="sidebar" data-md-type="navigation" >
<div class="md-sidebar__scrollwrap">
<div class="md-sidebar__inner">
- <nav class="md-nav md-nav--primary" data-md-level="0">
- <label class="md-nav__title md-nav__title--site" for="__drawer">
- <a href="." title="FreeType-2.10.4 API Reference" class="md-nav__button md-logo">
-
- <img alt="logo" src="images/favico.ico" width="48" height="48">
+
+
+
+<nav class="md-nav md-nav--primary" aria-label="Navigation" data-md-level="0">
+ <label class="md-nav__title" for="__drawer">
+ <a href="index.html" title="FreeType-2.11.1 API Reference" class="md-nav__button md-logo" aria-label="FreeType-2.11.1 API Reference" data-md-component="logo">
+ <img src="images/favico.ico" alt="logo">
+
</a>
- FreeType-2.10.4 API Reference
+ FreeType-2.11.1 API Reference
</label>
<ul class="md-nav__list" data-md-scrollfix>
@@ -182,216 +175,246 @@
-
- <li class="md-nav__item">
- <a href="index.html" title="TOC" class="md-nav__link">
- TOC
- </a>
- </li>
+
+
+
+ <li class="md-nav__item">
+ <a href="index.html" class="md-nav__link">
+ TOC
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-index.html" title="Index" class="md-nav__link">
- Index
- </a>
- </li>
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-index.html" class="md-nav__link">
+ Index
+ </a>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-3" type="checkbox" id="nav-3">
+
+
+
- <label class="md-nav__link" for="nav-3">
- General Remarks
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-3">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_3" type="checkbox" id="__nav_3" >
+
+ <label class="md-nav__link" for="__nav_3">
General Remarks
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
-
+ <nav class="md-nav" aria-label="General Remarks" data-md-level="1">
+ <label class="md-nav__title" for="__nav_3">
+ <span class="md-nav__icon md-icon"></span>
+ General Remarks
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
-
-
-
- <li class="md-nav__item">
- <a href="ft2-header_inclusion.html" title="FreeType's header inclusion scheme" class="md-nav__link">
- FreeType's header inclusion scheme
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-preamble.html" class="md-nav__link">
+ Preamble
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-header_inclusion.html" class="md-nav__link">
+ FreeType's header inclusion scheme
+ </a>
+ </li>
+
+
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-user_allocation.html" class="md-nav__link">
+ User allocation
+ </a>
+ </li>
+
- <li class="md-nav__item">
- <a href="ft2-user_allocation.html" title="User allocation" class="md-nav__link">
- User allocation
- </a>
- </li>
-
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-4" type="checkbox" id="nav-4">
+
+
+
- <label class="md-nav__link" for="nav-4">
- Core API
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-4">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_4" type="checkbox" id="__nav_4" >
+
+ <label class="md-nav__link" for="__nav_4">
Core API
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
-
+ <nav class="md-nav" aria-label="Core API" data-md-level="1">
+ <label class="md-nav__title" for="__nav_4">
+ <span class="md-nav__icon md-icon"></span>
+ Core API
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
-
-
-
- <li class="md-nav__item">
- <a href="ft2-version.html" title="FreeType Version" class="md-nav__link">
- FreeType Version
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-version.html" class="md-nav__link">
+ FreeType Version
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-basic_types.html" class="md-nav__link">
+ Basic Data Types
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-basic_types.html" title="Basic Data Types" class="md-nav__link">
- Basic Data Types
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-base_interface.html" title="Base Interface" class="md-nav__link">
- Base Interface
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-base_interface.html" class="md-nav__link">
+ Base Interface
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-glyph_variants.html" class="md-nav__link">
+ Unicode Variation Sequences
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-glyph_variants.html" title="Unicode Variation Sequences" class="md-nav__link">
- Unicode Variation Sequences
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-color_management.html" title="Glyph Color Management" class="md-nav__link">
- Glyph Color Management
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-color_management.html" class="md-nav__link">
+ Glyph Color Management
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-layer_management.html" class="md-nav__link">
+ Glyph Layer Management
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-layer_management.html" title="Glyph Layer Management" class="md-nav__link">
- Glyph Layer Management
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-glyph_management.html" title="Glyph Management" class="md-nav__link">
- Glyph Management
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-glyph_management.html" class="md-nav__link">
+ Glyph Management
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-mac_specific.html" title="Mac Specific Interface" class="md-nav__link">
- Mac Specific Interface
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-mac_specific.html" class="md-nav__link">
+ Mac Specific Interface
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-sizes_management.html" title="Size Management" class="md-nav__link">
- Size Management
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-sizes_management.html" class="md-nav__link">
+ Size Management
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-header_file_macros.html" class="md-nav__link">
+ Header File Macros
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-header_file_macros.html" title="Header File Macros" class="md-nav__link">
- Header File Macros
- </a>
- </li>
-
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
@@ -399,113 +422,123 @@
-
-
- <li class="md-nav__item md-nav__item--active md-nav__item--nested">
+
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-5" type="checkbox" id="nav-5" checked>
+
+
- <label class="md-nav__link" for="nav-5">
- Format-Specific API
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-5">
+ <li class="md-nav__item md-nav__item--active md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_5" type="checkbox" id="__nav_5" checked>
+
+ <label class="md-nav__link" for="__nav_5">
Format-Specific API
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
-
-
+ <nav class="md-nav" aria-label="Format-Specific API" data-md-level="1">
+ <label class="md-nav__title" for="__nav_5">
+ <span class="md-nav__icon md-icon"></span>
+ Format-Specific API
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-multiple_masters.html" class="md-nav__link">
+ Multiple Masters
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-multiple_masters.html" title="Multiple Masters" class="md-nav__link">
- Multiple Masters
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-truetype_tables.html" title="TrueType Tables" class="md-nav__link">
- TrueType Tables
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-truetype_tables.html" class="md-nav__link">
+ TrueType Tables
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-type1_tables.html" title="Type 1 Tables" class="md-nav__link">
- Type 1 Tables
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-type1_tables.html" class="md-nav__link">
+ Type 1 Tables
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-sfnt_names.html" title="SFNT Names" class="md-nav__link">
- SFNT Names
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-sfnt_names.html" class="md-nav__link">
+ SFNT Names
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-bdf_fonts.html" title="BDF and PCF Files" class="md-nav__link">
- BDF and PCF Files
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-bdf_fonts.html" class="md-nav__link">
+ BDF and PCF Files
+ </a>
+ </li>
+
-
-
-
-
+
+
-
-
- <li class="md-nav__item md-nav__item--active">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="toc" type="checkbox" id="__toc">
+
+
+ <li class="md-nav__item md-nav__item--active">
-
-
- <label class="md-nav__link md-nav__link--active" for="__toc">
+ <input class="md-nav__toggle md-toggle" data-md-toggle="toc" type="checkbox" id="__toc">
+
+
+
+
+
+ <label class="md-nav__link md-nav__link--active" for="__toc">
+ CID Fonts
+ <span class="md-nav__icon md-icon"></span>
+ </label>
+
+ <a href="ft2-cid_fonts.html" class="md-nav__link md-nav__link--active">
CID Fonts
- </label>
-
- <a href="ft2-cid_fonts.html" title="CID Fonts" class="md-nav__link md-nav__link--active">
- CID Fonts
- </a>
-
+ </a>
-<nav class="md-nav md-nav--secondary">
+
+<nav class="md-nav md-nav--secondary" aria-label="Table of contents">
+
- <label class="md-nav__title" for="__toc">Table of contents</label>
- <ul class="md-nav__list" data-md-scrollfix>
+ <label class="md-nav__title" for="__toc">
+ <span class="md-nav__icon md-icon"></span>
+ Table of contents
+ </label>
+ <ul class="md-nav__list" data-md-component="toc" data-md-scrollfix>
<li class="md-nav__item">
<a href="#synopsis" class="md-nav__link">
@@ -535,512 +568,552 @@
</li>
-
-
-
-
</ul>
</nav>
-
- </li>
+
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-pfr_fonts.html" title="PFR Fonts" class="md-nav__link">
- PFR Fonts
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-pfr_fonts.html" class="md-nav__link">
+ PFR Fonts
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-winfnt_fonts.html" title="Window FNT Files" class="md-nav__link">
- Window FNT Files
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-winfnt_fonts.html" class="md-nav__link">
+ Window FNT Files
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-font_formats.html" title="Font Formats" class="md-nav__link">
- Font Formats
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-font_formats.html" class="md-nav__link">
+ Font Formats
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-gasp_table.html" title="Gasp Table" class="md-nav__link">
- Gasp Table
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-gasp_table.html" class="md-nav__link">
+ Gasp Table
+ </a>
+ </li>
+
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-6" type="checkbox" id="nav-6">
+
+
+
- <label class="md-nav__link" for="nav-6">
- Controlling FreeType Modules
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-6">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_6" type="checkbox" id="__nav_6" >
+
+ <label class="md-nav__link" for="__nav_6">
Controlling FreeType Modules
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
-
+ <nav class="md-nav" aria-label="Controlling FreeType Modules" data-md-level="1">
+ <label class="md-nav__title" for="__nav_6">
+ <span class="md-nav__icon md-icon"></span>
+ Controlling FreeType Modules
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
-
-
-
- <li class="md-nav__item">
- <a href="ft2-auto_hinter.html" title="The auto-hinter" class="md-nav__link">
- The auto-hinter
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-auto_hinter.html" class="md-nav__link">
+ The auto-hinter
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-cff_driver.html" title="The CFF driver" class="md-nav__link">
- The CFF driver
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-cff_driver.html" class="md-nav__link">
+ The CFF driver
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-t1_cid_driver.html" title="The Type 1 and CID drivers" class="md-nav__link">
- The Type 1 and CID drivers
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-t1_cid_driver.html" class="md-nav__link">
+ The Type 1 and CID drivers
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-tt_driver.html" title="The TrueType driver" class="md-nav__link">
- The TrueType driver
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-tt_driver.html" class="md-nav__link">
+ The TrueType driver
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-pcf_driver.html" title="The PCF driver" class="md-nav__link">
- The PCF driver
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-pcf_driver.html" class="md-nav__link">
+ The PCF driver
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-properties.html" title="Driver properties" class="md-nav__link">
- Driver properties
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-properties.html" class="md-nav__link">
+ Driver properties
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-parameter_tags.html" title="Parameter Tags" class="md-nav__link">
- Parameter Tags
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-parameter_tags.html" class="md-nav__link">
+ Parameter Tags
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-lcd_rendering.html" class="md-nav__link">
+ Subpixel Rendering
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-lcd_rendering.html" title="Subpixel Rendering" class="md-nav__link">
- Subpixel Rendering
- </a>
- </li>
-
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-7" type="checkbox" id="nav-7">
+
+
+
- <label class="md-nav__link" for="nav-7">
- Cache Sub-System
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-7">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_7" type="checkbox" id="__nav_7" >
+
+ <label class="md-nav__link" for="__nav_7">
Cache Sub-System
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
-
-
+ <nav class="md-nav" aria-label="Cache Sub-System" data-md-level="1">
+ <label class="md-nav__title" for="__nav_7">
+ <span class="md-nav__icon md-icon"></span>
+ Cache Sub-System
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-cache_subsystem.html" class="md-nav__link">
+ Cache Sub-System
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-cache_subsystem.html" title="Cache Sub-System" class="md-nav__link">
- Cache Sub-System
- </a>
- </li>
-
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-8" type="checkbox" id="nav-8">
+
+
+
- <label class="md-nav__link" for="nav-8">
- Support API
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-8">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_8" type="checkbox" id="__nav_8" >
+
+ <label class="md-nav__link" for="__nav_8">
Support API
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
-
-
+ <nav class="md-nav" aria-label="Support API" data-md-level="1">
+ <label class="md-nav__title" for="__nav_8">
+ <span class="md-nav__icon md-icon"></span>
+ Support API
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-computations.html" class="md-nav__link">
+ Computations
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-computations.html" title="Computations" class="md-nav__link">
- Computations
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-list_processing.html" title="List Processing" class="md-nav__link">
- List Processing
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-list_processing.html" class="md-nav__link">
+ List Processing
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-outline_processing.html" class="md-nav__link">
+ Outline Processing
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-outline_processing.html" title="Outline Processing" class="md-nav__link">
- Outline Processing
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-quick_advance.html" title="Quick retrieval of advance values" class="md-nav__link">
- Quick retrieval of advance values
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-quick_advance.html" class="md-nav__link">
+ Quick retrieval of advance values
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-bitmap_handling.html" title="Bitmap Handling" class="md-nav__link">
- Bitmap Handling
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-bitmap_handling.html" class="md-nav__link">
+ Bitmap Handling
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-raster.html" title="Scanline Converter" class="md-nav__link">
- Scanline Converter
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-raster.html" class="md-nav__link">
+ Scanline Converter
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-glyph_stroker.html" title="Glyph Stroker" class="md-nav__link">
- Glyph Stroker
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-glyph_stroker.html" class="md-nav__link">
+ Glyph Stroker
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-system_interface.html" title="System Interface" class="md-nav__link">
- System Interface
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-system_interface.html" class="md-nav__link">
+ System Interface
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-module_management.html" title="Module Management" class="md-nav__link">
- Module Management
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-module_management.html" class="md-nav__link">
+ Module Management
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-gzip.html" title="GZIP Streams" class="md-nav__link">
- GZIP Streams
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-gzip.html" class="md-nav__link">
+ GZIP Streams
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-lzw.html" class="md-nav__link">
+ LZW Streams
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-lzw.html" title="LZW Streams" class="md-nav__link">
- LZW Streams
- </a>
- </li>
-
-
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-bzip2.html" class="md-nav__link">
+ BZIP2 Streams
+ </a>
+ </li>
+
- <li class="md-nav__item">
- <a href="ft2-bzip2.html" title="BZIP2 Streams" class="md-nav__link">
- BZIP2 Streams
- </a>
- </li>
+
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-debugging_apis.html" class="md-nav__link">
+ External Debugging APIs
+ </a>
+ </li>
+
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-9" type="checkbox" id="nav-9">
+
+
+
- <label class="md-nav__link" for="nav-9">
- Error Codes
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-9">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_9" type="checkbox" id="__nav_9" >
+
+ <label class="md-nav__link" for="__nav_9">
Error Codes
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
+ <nav class="md-nav" aria-label="Error Codes" data-md-level="1">
+ <label class="md-nav__title" for="__nav_9">
+ <span class="md-nav__icon md-icon"></span>
+ Error Codes
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-error_enumerations.html" title="Error Enumerations" class="md-nav__link">
- Error Enumerations
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-error_enumerations.html" class="md-nav__link">
+ Error Enumerations
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-error_code_values.html" class="md-nav__link">
+ Error Code Values
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-error_code_values.html" title="Error Code Values" class="md-nav__link">
- Error Code Values
- </a>
- </li>
-
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-10" type="checkbox" id="nav-10">
+
+
+
- <label class="md-nav__link" for="nav-10">
- Miscellaneous
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-10">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_10" type="checkbox" id="__nav_10" >
+
+ <label class="md-nav__link" for="__nav_10">
Miscellaneous
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
-
-
+ <nav class="md-nav" aria-label="Miscellaneous" data-md-level="1">
+ <label class="md-nav__title" for="__nav_10">
+ <span class="md-nav__icon md-icon"></span>
+ Miscellaneous
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-gx_validation.html" class="md-nav__link">
+ TrueTypeGX/AAT Validation
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-gx_validation.html" title="TrueTypeGX/AAT Validation" class="md-nav__link">
- TrueTypeGX/AAT Validation
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-incremental.html" title="Incremental Loading" class="md-nav__link">
- Incremental Loading
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-incremental.html" class="md-nav__link">
+ Incremental Loading
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-truetype_engine.html" title="The TrueType Engine" class="md-nav__link">
- The TrueType Engine
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-truetype_engine.html" class="md-nav__link">
+ The TrueType Engine
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-ot_validation.html" title="OpenType Validation" class="md-nav__link">
- OpenType Validation
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-ot_validation.html" class="md-nav__link">
+ OpenType Validation
+ </a>
+ </li>
+
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
</ul>
@@ -1050,18 +1123,23 @@
</div>
- <div class="md-sidebar md-sidebar--secondary" data-md-component="toc">
+
+ <div class="md-sidebar md-sidebar--secondary" data-md-component="sidebar" data-md-type="toc" >
<div class="md-sidebar__scrollwrap">
<div class="md-sidebar__inner">
-<nav class="md-nav md-nav--secondary">
+<nav class="md-nav md-nav--secondary" aria-label="Table of contents">
+
- <label class="md-nav__title" for="__toc">Table of contents</label>
- <ul class="md-nav__list" data-md-scrollfix>
+ <label class="md-nav__title" for="__toc">
+ <span class="md-nav__icon md-icon"></span>
+ Table of contents
+ </label>
+ <ul class="md-nav__list" data-md-component="toc" data-md-scrollfix>
<li class="md-nav__item">
<a href="#synopsis" class="md-nav__link">
@@ -1091,10 +1169,6 @@
</li>
-
-
-
-
</ul>
</nav>
@@ -1103,7 +1177,7 @@
</div>
- <div class="md-content">
+ <div class="md-content" data-md-component="content">
<article class="md-content__inner md-typeset">
@@ -1124,7 +1198,6 @@
<p>Retrieve the Registry/Ordering/Supplement triple (also known as the "R/O/S") from a CID-keyed font.</p>
<h4>input</h4>
-
<table class="fields">
<tr><td class="val" id="face">face</td><td class="desc">
<p>A handle to the input face.</p>
@@ -1132,7 +1205,6 @@
</table>
<h4>output</h4>
-
<table class="fields">
<tr><td class="val" id="registry">registry</td><td class="desc">
<p>The registry, as a C&nbsp;string, owned by the face.</p>
@@ -1165,7 +1237,6 @@
<p>Retrieve the type of the input face, CID keyed or not. In contrast to the <code><a href="ft2-base_interface.html#ft_is_cid_keyed">FT_IS_CID_KEYED</a></code> macro this function returns successfully also for CID-keyed fonts in an SFNT wrapper.</p>
<h4>input</h4>
-
<table class="fields">
<tr><td class="val" id="face">face</td><td class="desc">
<p>A handle to the input face.</p>
@@ -1173,7 +1244,6 @@
</table>
<h4>output</h4>
-
<table class="fields">
<tr><td class="val" id="is_cid">is_cid</td><td class="desc">
<p>The type of the face as an <code><a href="ft2-basic_types.html#ft_bool">FT_Bool</a></code>.</p>
@@ -1201,7 +1271,6 @@
<p>Retrieve the CID of the input glyph index.</p>
<h4>input</h4>
-
<table class="fields">
<tr><td class="val" id="face">face</td><td class="desc">
<p>A handle to the input face.</p>
@@ -1212,7 +1281,6 @@
</table>
<h4>output</h4>
-
<table class="fields">
<tr><td class="val" id="cid">cid</td><td class="desc">
<p>The CID as an <code><a href="ft2-basic_types.html#ft_uint">FT_UInt</a></code>.</p>
@@ -1230,9 +1298,6 @@
<p>2.3.9</p>
<hr>
-
-
-
@@ -1242,59 +1307,60 @@
</article>
</div>
</div>
+
</main>
<footer class="md-footer">
- <div class="md-footer-nav">
- <nav class="md-footer-nav__inner md-grid">
+ <nav class="md-footer__inner md-grid" aria-label="Footer">
+
- <a href="ft2-bdf_fonts.html" title="BDF and PCF Files" class="md-flex md-footer-nav__link md-footer-nav__link--prev" rel="prev">
- <div class="md-flex__cell md-flex__cell--shrink">
- <i class="md-icon md-icon--arrow-back md-footer-nav__button"></i>
- </div>
- <div class="md-flex__cell md-flex__cell--stretch md-footer-nav__title">
- <span class="md-flex__ellipsis">
- <span class="md-footer-nav__direction">
- Previous
- </span>
- BDF and PCF Files
+ <a href="ft2-bdf_fonts.html" class="md-footer__link md-footer__link--prev" aria-label="Previous: BDF and PCF Files" rel="prev">
+ <div class="md-footer__button md-icon">
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M20 11v2H8l5.5 5.5-1.42 1.42L4.16 12l7.92-7.92L13.5 5.5 8 11h12z"/></svg>
+ </div>
+ <div class="md-footer__title">
+ <div class="md-ellipsis">
+ <span class="md-footer__direction">
+ Previous
</span>
+ BDF and PCF Files
</div>
- </a>
-
+ </div>
+ </a>
+
+
- <a href="ft2-pfr_fonts.html" title="PFR Fonts" class="md-flex md-footer-nav__link md-footer-nav__link--next" rel="next">
- <div class="md-flex__cell md-flex__cell--stretch md-footer-nav__title">
- <span class="md-flex__ellipsis">
- <span class="md-footer-nav__direction">
- Next
- </span>
- PFR Fonts
+ <a href="ft2-pfr_fonts.html" class="md-footer__link md-footer__link--next" aria-label="Next: PFR Fonts" rel="next">
+ <div class="md-footer__title">
+ <div class="md-ellipsis">
+ <span class="md-footer__direction">
+ Next
</span>
+ PFR Fonts
</div>
- <div class="md-flex__cell md-flex__cell--shrink">
- <i class="md-icon md-icon--arrow-forward md-footer-nav__button"></i>
- </div>
- </a>
-
- </nav>
- </div>
+ </div>
+ <div class="md-footer__button md-icon">
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M4 11v2h12l-5.5 5.5 1.42 1.42L19.84 12l-7.92-7.92L10.5 5.5 16 11H4z"/></svg>
+ </div>
+ </a>
+
+ </nav>
<div class="md-footer-meta md-typeset">
<div class="md-footer-meta__inner md-grid">
<div class="md-footer-copyright">
<div class="md-footer-copyright__highlight">
- Copyright 2020 <a href = "https://www.freetype.org/license.html">The FreeType Project</a>.
+ Copyright 2021 <a href = "https://www.freetype.org/license.html">The FreeType Project</a>.
</div>
- powered by
- <a href="https://www.mkdocs.org" target="_blank" rel="noopener">MkDocs</a>
- and
+ Made with
<a href="https://squidfunk.github.io/mkdocs-material/" target="_blank" rel="noopener">
- Material for MkDocs</a>
+ Material for MkDocs
+ </a>
+
</div>
</div>
@@ -1302,10 +1368,13 @@
</footer>
</div>
+ <div class="md-dialog" data-md-component="dialog">
+ <div class="md-dialog__inner md-typeset"></div>
+ </div>
+ <script id="__config" type="application/json">{"base": ".", "features": [], "translations": {"clipboard.copy": "Copy to clipboard", "clipboard.copied": "Copied to clipboard", "search.config.lang": "en", "search.config.pipeline": "trimmer, stopWordFilter", "search.config.separator": "[\\s\\-]+", "search.placeholder": "Search", "search.result.placeholder": "Type to start searching", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.term.missing": "Missing", "select.version.title": "Select version"}, "search": "assets/javascripts/workers/search.477d984a.min.js", "version": null}</script>
- <script src="assets/javascripts/application.c33a9706.js"></script>
-
- <script>app.initialize({version:"1.1",url:{base:"."}})</script>
+
+ <script src="assets/javascripts/bundle.82b56eb2.min.js"></script>
<script src="javascripts/extra.js"></script>
diff --git a/freetype/docs/reference/ft2-color_management.html b/freetype/docs/reference/ft2-color_management.html
index d5ce4c32..fff03ef2 100644
--- a/freetype/docs/reference/ft2-color_management.html
+++ b/freetype/docs/reference/ft2-color_management.html
@@ -1,145 +1,136 @@
-
-
-
<!doctype html>
<html lang="en" class="no-js">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
- <meta http-equiv="x-ua-compatible" content="ie=edge">
- <meta name="description" content="API Reference Documentation for FreeType-2.10.4">
+ <meta name="description" content="API Reference Documentation for FreeType-2.11.1">
<meta name="author" content="FreeType Contributors">
- <meta name="lang:clipboard.copy" content="Copy to clipboard">
-
- <meta name="lang:clipboard.copied" content="Copied to clipboard">
-
- <meta name="lang:search.language" content="en">
-
- <meta name="lang:search.pipeline.stopwords" content="True">
-
- <meta name="lang:search.pipeline.trimmer" content="True">
-
- <meta name="lang:search.result.none" content="No matching documents">
-
- <meta name="lang:search.result.one" content="1 matching document">
-
- <meta name="lang:search.result.other" content="# matching documents">
-
- <meta name="lang:search.tokenizer" content="[\s\-]+">
-
- <link rel="shortcut icon" href="images/favico.ico">
- <meta name="generator" content="mkdocs-1.1, mkdocs-material-4.6.3">
+ <link rel="icon" href="images/favico.ico">
+ <meta name="generator" content="mkdocs-1.2.1, mkdocs-material-7.1.9">
- <title>Glyph Color Management - FreeType-2.10.4 API Reference</title>
+ <title>Glyph Color Management - FreeType-2.11.1 API Reference</title>
- <link rel="stylesheet" href="assets/stylesheets/application.adb8469c.css">
-
- <link rel="stylesheet" href="assets/stylesheets/application-palette.a8b3c06d.css">
-
+ <link rel="stylesheet" href="assets/stylesheets/main.ca7ac06f.min.css">
+ <link rel="stylesheet" href="assets/stylesheets/palette.f1a3b89f.min.css">
+
+
+
+ <meta name="theme-color" content="#4cae4f">
- <meta name="theme-color" content="#4caf50">
- <script src="assets/javascripts/modernizr.86422ebf.js"></script>
-
- <link href="https://fonts.gstatic.com" rel="preconnect" crossorigin>
+
+ <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Noto+Serif:300,400,400i,700%7CRoboto+Mono&display=fallback">
- <style>body,input{font-family:"Noto Serif","Helvetica Neue",Helvetica,Arial,sans-serif}code,kbd,pre{font-family:"Roboto Mono","Courier New",Courier,monospace}</style>
+ <style>:root{--md-text-font-family:"Noto Serif";--md-code-font-family:"Roboto Mono"}</style>
- <link rel="stylesheet" href="assets/fonts/material-icons.css">
<link rel="stylesheet" href="stylesheets/extra.css">
+
+
</head>
+
+
+
+
- <body dir="ltr" data-md-color-primary="green" data-md-color-accent="green">
+ <body dir="ltr" data-md-color-scheme="" data-md-color-primary="green" data-md-color-accent="green">
- <svg class="md-svg">
- <defs>
-
-
- </defs>
- </svg>
- <input class="md-toggle" data-md-toggle="drawer" type="checkbox" id="__drawer" autocomplete="off">
- <input class="md-toggle" data-md-toggle="search" type="checkbox" id="__search" autocomplete="off">
- <label class="md-overlay" data-md-component="overlay" for="__drawer"></label>
- <a href="#glyph-color-management" tabindex="0" class="md-skip">
- Skip to content
- </a>
+ <script>function __prefix(e){return new URL(".",location).pathname+"."+e}function __get(e,t=localStorage){return JSON.parse(t.getItem(__prefix(e)))}</script>
+ <input class="md-toggle" data-md-toggle="drawer" type="checkbox" id="__drawer" autocomplete="off">
+ <input class="md-toggle" data-md-toggle="search" type="checkbox" id="__search" autocomplete="off">
+ <label class="md-overlay" for="__drawer"></label>
+ <div data-md-component="skip">
+
+
+ <a href="#glyph-color-management" class="md-skip">
+ Skip to content
+ </a>
+
+ </div>
+ <div data-md-component="announce">
+
+ </div>
<header class="md-header" data-md-component="header">
- <nav class="md-header-nav md-grid">
- <div class="md-flex">
- <div class="md-flex__cell md-flex__cell--shrink">
- <a href="." title="FreeType-2.10.4 API Reference" aria-label="FreeType-2.10.4 API Reference" class="md-header-nav__button md-logo">
-
- <img alt="logo" src="images/favico.ico" width="24" height="24">
-
- </a>
- </div>
- <div class="md-flex__cell md-flex__cell--shrink">
- <label class="md-icon md-icon--menu md-header-nav__button" for="__drawer"></label>
- </div>
- <div class="md-flex__cell md-flex__cell--stretch">
- <div class="md-flex__ellipsis md-header-nav__title" data-md-component="title">
-
- <span class="md-header-nav__topic">
- FreeType-2.10.4 API Reference
- </span>
- <span class="md-header-nav__topic">
-
- Glyph Color Management
-
- </span>
-
+ <nav class="md-header__inner md-grid" aria-label="Header">
+ <a href="index.html" title="FreeType-2.11.1 API Reference" class="md-header__button md-logo" aria-label="FreeType-2.11.1 API Reference" data-md-component="logo">
+
+ <img src="images/favico.ico" alt="logo">
+
+ </a>
+ <label class="md-header__button md-icon" for="__drawer">
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M3 6h18v2H3V6m0 5h18v2H3v-2m0 5h18v2H3v-2z"/></svg>
+ </label>
+ <div class="md-header__title" data-md-component="header-title">
+ <div class="md-header__ellipsis">
+ <div class="md-header__topic">
+ <span class="md-ellipsis">
+ FreeType-2.11.1 API Reference
+ </span>
+ </div>
+ <div class="md-header__topic" data-md-component="header-topic">
+ <span class="md-ellipsis">
+
+ Glyph Color Management
+
+ </span>
</div>
</div>
- <div class="md-flex__cell md-flex__cell--shrink">
-
- <label class="md-icon md-icon--search md-header-nav__button" for="__search"></label>
-
+ </div>
+
+
+
+ <label class="md-header__button md-icon" for="__search">
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M9.5 3A6.5 6.5 0 0 1 16 9.5c0 1.61-.59 3.09-1.56 4.23l.27.27h.79l5 5-1.5 1.5-5-5v-.79l-.27-.27A6.516 6.516 0 0 1 9.5 16 6.5 6.5 0 0 1 3 9.5 6.5 6.5 0 0 1 9.5 3m0 2C7 5 5 7 5 9.5S7 14 9.5 14 14 12 14 9.5 12 5 9.5 5z"/></svg>
+ </label>
+
<div class="md-search" data-md-component="search" role="dialog">
<label class="md-search__overlay" for="__search"></label>
<div class="md-search__inner" role="search">
<form class="md-search__form" name="search">
- <input type="text" class="md-search__input" aria-label="search" name="query" placeholder="Search" autocapitalize="off" autocorrect="off" autocomplete="off" spellcheck="false" data-md-component="query" data-md-state="active">
- <label class="md-icon md-search__icon" for="__search"></label>
- <button type="reset" class="md-icon md-search__icon" data-md-component="reset" tabindex="-1">
- &#xE5CD;
+ <input type="text" class="md-search__input" name="query" aria-label="Search" placeholder="Search" autocapitalize="off" autocorrect="off" autocomplete="off" spellcheck="false" data-md-component="search-query" data-md-state="active" required>
+ <label class="md-search__icon md-icon" for="__search">
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M9.5 3A6.5 6.5 0 0 1 16 9.5c0 1.61-.59 3.09-1.56 4.23l.27.27h.79l5 5-1.5 1.5-5-5v-.79l-.27-.27A6.516 6.516 0 0 1 9.5 16 6.5 6.5 0 0 1 3 9.5 6.5 6.5 0 0 1 9.5 3m0 2C7 5 5 7 5 9.5S7 14 9.5 14 14 12 14 9.5 12 5 9.5 5z"/></svg>
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M20 11v2H8l5.5 5.5-1.42 1.42L4.16 12l7.92-7.92L13.5 5.5 8 11h12z"/></svg>
+ </label>
+ <button type="reset" class="md-search__icon md-icon" aria-label="Clear" tabindex="-1">
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z"/></svg>
</button>
</form>
<div class="md-search__output">
<div class="md-search__scrollwrap" data-md-scrollfix>
- <div class="md-search-result" data-md-component="result">
+ <div class="md-search-result" data-md-component="search-result">
<div class="md-search-result__meta">
- Type to start searching
+ Initializing search
</div>
<ol class="md-search-result__list"></ol>
</div>
@@ -147,33 +138,35 @@
</div>
</div>
</div>
-
- </div>
-
- </div>
+
+
</nav>
</header>
- <div class="md-container">
+ <div class="md-container" data-md-component="container">
-
+
- <main class="md-main" role="main">
- <div class="md-main__inner md-grid" data-md-component="container">
+ <main class="md-main" data-md-component="main">
+ <div class="md-main__inner md-grid">
- <div class="md-sidebar md-sidebar--primary" data-md-component="navigation">
+
+ <div class="md-sidebar md-sidebar--primary" data-md-component="sidebar" data-md-type="navigation" >
<div class="md-sidebar__scrollwrap">
<div class="md-sidebar__inner">
- <nav class="md-nav md-nav--primary" data-md-level="0">
- <label class="md-nav__title md-nav__title--site" for="__drawer">
- <a href="." title="FreeType-2.10.4 API Reference" class="md-nav__button md-logo">
-
- <img alt="logo" src="images/favico.ico" width="48" height="48">
+
+
+
+<nav class="md-nav md-nav--primary" aria-label="Navigation" data-md-level="0">
+ <label class="md-nav__title" for="__drawer">
+ <a href="index.html" title="FreeType-2.11.1 API Reference" class="md-nav__button md-logo" aria-label="FreeType-2.11.1 API Reference" data-md-component="logo">
+ <img src="images/favico.ico" alt="logo">
+
</a>
- FreeType-2.10.4 API Reference
+ FreeType-2.11.1 API Reference
</label>
<ul class="md-nav__list" data-md-scrollfix>
@@ -182,72 +175,96 @@
-
- <li class="md-nav__item">
- <a href="index.html" title="TOC" class="md-nav__link">
- TOC
- </a>
- </li>
+
+
+
+ <li class="md-nav__item">
+ <a href="index.html" class="md-nav__link">
+ TOC
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-index.html" title="Index" class="md-nav__link">
- Index
- </a>
- </li>
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-index.html" class="md-nav__link">
+ Index
+ </a>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-3" type="checkbox" id="nav-3">
+
+
+
- <label class="md-nav__link" for="nav-3">
- General Remarks
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-3">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_3" type="checkbox" id="__nav_3" >
+
+ <label class="md-nav__link" for="__nav_3">
General Remarks
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
-
+ <nav class="md-nav" aria-label="General Remarks" data-md-level="1">
+ <label class="md-nav__title" for="__nav_3">
+ <span class="md-nav__icon md-icon"></span>
+ General Remarks
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
-
-
-
- <li class="md-nav__item">
- <a href="ft2-header_inclusion.html" title="FreeType's header inclusion scheme" class="md-nav__link">
- FreeType's header inclusion scheme
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-preamble.html" class="md-nav__link">
+ Preamble
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-header_inclusion.html" class="md-nav__link">
+ FreeType's header inclusion scheme
+ </a>
+ </li>
+
+
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-user_allocation.html" class="md-nav__link">
+ User allocation
+ </a>
+ </li>
+
- <li class="md-nav__item">
- <a href="ft2-user_allocation.html" title="User allocation" class="md-nav__link">
- User allocation
- </a>
- </li>
-
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
@@ -255,101 +272,111 @@
-
-
- <li class="md-nav__item md-nav__item--active md-nav__item--nested">
+
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-4" type="checkbox" id="nav-4" checked>
+
+
- <label class="md-nav__link" for="nav-4">
- Core API
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-4">
+ <li class="md-nav__item md-nav__item--active md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_4" type="checkbox" id="__nav_4" checked>
+
+ <label class="md-nav__link" for="__nav_4">
Core API
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
-
+ <nav class="md-nav" aria-label="Core API" data-md-level="1">
+ <label class="md-nav__title" for="__nav_4">
+ <span class="md-nav__icon md-icon"></span>
+ Core API
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
-
-
-
- <li class="md-nav__item">
- <a href="ft2-version.html" title="FreeType Version" class="md-nav__link">
- FreeType Version
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-version.html" class="md-nav__link">
+ FreeType Version
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-basic_types.html" class="md-nav__link">
+ Basic Data Types
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-basic_types.html" title="Basic Data Types" class="md-nav__link">
- Basic Data Types
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-base_interface.html" title="Base Interface" class="md-nav__link">
- Base Interface
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-base_interface.html" class="md-nav__link">
+ Base Interface
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-glyph_variants.html" class="md-nav__link">
+ Unicode Variation Sequences
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-glyph_variants.html" title="Unicode Variation Sequences" class="md-nav__link">
- Unicode Variation Sequences
- </a>
- </li>
-
-
-
-
-
+
+
-
-
- <li class="md-nav__item md-nav__item--active">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="toc" type="checkbox" id="__toc">
+
+
+ <li class="md-nav__item md-nav__item--active">
-
-
- <label class="md-nav__link md-nav__link--active" for="__toc">
+ <input class="md-nav__toggle md-toggle" data-md-toggle="toc" type="checkbox" id="__toc">
+
+
+
+
+
+ <label class="md-nav__link md-nav__link--active" for="__toc">
+ Glyph Color Management
+ <span class="md-nav__icon md-icon"></span>
+ </label>
+
+ <a href="ft2-color_management.html" class="md-nav__link md-nav__link--active">
Glyph Color Management
- </label>
-
- <a href="ft2-color_management.html" title="Glyph Color Management" class="md-nav__link md-nav__link--active">
- Glyph Color Management
- </a>
-
+ </a>
-<nav class="md-nav md-nav--secondary">
+
+<nav class="md-nav md-nav--secondary" aria-label="Table of contents">
+
- <label class="md-nav__title" for="__toc">Table of contents</label>
- <ul class="md-nav__list" data-md-scrollfix>
+ <label class="md-nav__title" for="__toc">
+ <span class="md-nav__icon md-icon"></span>
+ Table of contents
+ </label>
+ <ul class="md-nav__list" data-md-component="toc" data-md-scrollfix>
<li class="md-nav__item">
<a href="#synopsis" class="md-nav__link">
@@ -400,668 +427,714 @@
</li>
-
-
-
-
</ul>
</nav>
-
- </li>
+
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-layer_management.html" title="Glyph Layer Management" class="md-nav__link">
- Glyph Layer Management
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-layer_management.html" class="md-nav__link">
+ Glyph Layer Management
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-glyph_management.html" class="md-nav__link">
+ Glyph Management
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-glyph_management.html" title="Glyph Management" class="md-nav__link">
- Glyph Management
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-mac_specific.html" title="Mac Specific Interface" class="md-nav__link">
- Mac Specific Interface
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-mac_specific.html" class="md-nav__link">
+ Mac Specific Interface
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-sizes_management.html" class="md-nav__link">
+ Size Management
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-sizes_management.html" title="Size Management" class="md-nav__link">
- Size Management
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-header_file_macros.html" title="Header File Macros" class="md-nav__link">
- Header File Macros
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-header_file_macros.html" class="md-nav__link">
+ Header File Macros
+ </a>
+ </li>
+
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-5" type="checkbox" id="nav-5">
+
+
+
- <label class="md-nav__link" for="nav-5">
- Format-Specific API
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-5">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_5" type="checkbox" id="__nav_5" >
+
+ <label class="md-nav__link" for="__nav_5">
Format-Specific API
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
-
+ <nav class="md-nav" aria-label="Format-Specific API" data-md-level="1">
+ <label class="md-nav__title" for="__nav_5">
+ <span class="md-nav__icon md-icon"></span>
+ Format-Specific API
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
-
-
-
- <li class="md-nav__item">
- <a href="ft2-multiple_masters.html" title="Multiple Masters" class="md-nav__link">
- Multiple Masters
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-multiple_masters.html" class="md-nav__link">
+ Multiple Masters
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-truetype_tables.html" title="TrueType Tables" class="md-nav__link">
- TrueType Tables
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-truetype_tables.html" class="md-nav__link">
+ TrueType Tables
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-type1_tables.html" title="Type 1 Tables" class="md-nav__link">
- Type 1 Tables
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-type1_tables.html" class="md-nav__link">
+ Type 1 Tables
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-sfnt_names.html" class="md-nav__link">
+ SFNT Names
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-sfnt_names.html" title="SFNT Names" class="md-nav__link">
- SFNT Names
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-bdf_fonts.html" title="BDF and PCF Files" class="md-nav__link">
- BDF and PCF Files
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-bdf_fonts.html" class="md-nav__link">
+ BDF and PCF Files
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-cid_fonts.html" title="CID Fonts" class="md-nav__link">
- CID Fonts
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-cid_fonts.html" class="md-nav__link">
+ CID Fonts
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-pfr_fonts.html" title="PFR Fonts" class="md-nav__link">
- PFR Fonts
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-pfr_fonts.html" class="md-nav__link">
+ PFR Fonts
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-winfnt_fonts.html" class="md-nav__link">
+ Window FNT Files
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-winfnt_fonts.html" title="Window FNT Files" class="md-nav__link">
- Window FNT Files
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-font_formats.html" title="Font Formats" class="md-nav__link">
- Font Formats
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-font_formats.html" class="md-nav__link">
+ Font Formats
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-gasp_table.html" class="md-nav__link">
+ Gasp Table
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-gasp_table.html" title="Gasp Table" class="md-nav__link">
- Gasp Table
- </a>
- </li>
-
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-6" type="checkbox" id="nav-6">
+
+
+
- <label class="md-nav__link" for="nav-6">
- Controlling FreeType Modules
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-6">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_6" type="checkbox" id="__nav_6" >
+
+ <label class="md-nav__link" for="__nav_6">
Controlling FreeType Modules
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
-
-
+ <nav class="md-nav" aria-label="Controlling FreeType Modules" data-md-level="1">
+ <label class="md-nav__title" for="__nav_6">
+ <span class="md-nav__icon md-icon"></span>
+ Controlling FreeType Modules
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-auto_hinter.html" class="md-nav__link">
+ The auto-hinter
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-auto_hinter.html" title="The auto-hinter" class="md-nav__link">
- The auto-hinter
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-cff_driver.html" title="The CFF driver" class="md-nav__link">
- The CFF driver
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-cff_driver.html" class="md-nav__link">
+ The CFF driver
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-t1_cid_driver.html" class="md-nav__link">
+ The Type 1 and CID drivers
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-t1_cid_driver.html" title="The Type 1 and CID drivers" class="md-nav__link">
- The Type 1 and CID drivers
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-tt_driver.html" title="The TrueType driver" class="md-nav__link">
- The TrueType driver
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-tt_driver.html" class="md-nav__link">
+ The TrueType driver
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-pcf_driver.html" class="md-nav__link">
+ The PCF driver
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-pcf_driver.html" title="The PCF driver" class="md-nav__link">
- The PCF driver
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-properties.html" title="Driver properties" class="md-nav__link">
- Driver properties
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-properties.html" class="md-nav__link">
+ Driver properties
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-parameter_tags.html" class="md-nav__link">
+ Parameter Tags
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-parameter_tags.html" title="Parameter Tags" class="md-nav__link">
- Parameter Tags
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-lcd_rendering.html" title="Subpixel Rendering" class="md-nav__link">
- Subpixel Rendering
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-lcd_rendering.html" class="md-nav__link">
+ Subpixel Rendering
+ </a>
+ </li>
+
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-7" type="checkbox" id="nav-7">
+
+
+
- <label class="md-nav__link" for="nav-7">
- Cache Sub-System
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-7">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_7" type="checkbox" id="__nav_7" >
+
+ <label class="md-nav__link" for="__nav_7">
Cache Sub-System
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
-
+ <nav class="md-nav" aria-label="Cache Sub-System" data-md-level="1">
+ <label class="md-nav__title" for="__nav_7">
+ <span class="md-nav__icon md-icon"></span>
+ Cache Sub-System
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
-
-
-
- <li class="md-nav__item">
- <a href="ft2-cache_subsystem.html" title="Cache Sub-System" class="md-nav__link">
- Cache Sub-System
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-cache_subsystem.html" class="md-nav__link">
+ Cache Sub-System
+ </a>
+ </li>
+
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-8" type="checkbox" id="nav-8">
+
+
+
- <label class="md-nav__link" for="nav-8">
- Support API
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-8">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_8" type="checkbox" id="__nav_8" >
+
+ <label class="md-nav__link" for="__nav_8">
Support API
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
-
+ <nav class="md-nav" aria-label="Support API" data-md-level="1">
+ <label class="md-nav__title" for="__nav_8">
+ <span class="md-nav__icon md-icon"></span>
+ Support API
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
-
-
-
- <li class="md-nav__item">
- <a href="ft2-computations.html" title="Computations" class="md-nav__link">
- Computations
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-computations.html" class="md-nav__link">
+ Computations
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-list_processing.html" title="List Processing" class="md-nav__link">
- List Processing
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-list_processing.html" class="md-nav__link">
+ List Processing
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-outline_processing.html" title="Outline Processing" class="md-nav__link">
- Outline Processing
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-outline_processing.html" class="md-nav__link">
+ Outline Processing
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-quick_advance.html" class="md-nav__link">
+ Quick retrieval of advance values
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-quick_advance.html" title="Quick retrieval of advance values" class="md-nav__link">
- Quick retrieval of advance values
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-bitmap_handling.html" title="Bitmap Handling" class="md-nav__link">
- Bitmap Handling
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-bitmap_handling.html" class="md-nav__link">
+ Bitmap Handling
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-raster.html" class="md-nav__link">
+ Scanline Converter
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-raster.html" title="Scanline Converter" class="md-nav__link">
- Scanline Converter
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-glyph_stroker.html" title="Glyph Stroker" class="md-nav__link">
- Glyph Stroker
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-glyph_stroker.html" class="md-nav__link">
+ Glyph Stroker
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-system_interface.html" title="System Interface" class="md-nav__link">
- System Interface
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-system_interface.html" class="md-nav__link">
+ System Interface
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-module_management.html" title="Module Management" class="md-nav__link">
- Module Management
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-module_management.html" class="md-nav__link">
+ Module Management
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-gzip.html" class="md-nav__link">
+ GZIP Streams
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-gzip.html" title="GZIP Streams" class="md-nav__link">
- GZIP Streams
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-lzw.html" title="LZW Streams" class="md-nav__link">
- LZW Streams
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-lzw.html" class="md-nav__link">
+ LZW Streams
+ </a>
+ </li>
+
-
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-bzip2.html" class="md-nav__link">
+ BZIP2 Streams
+ </a>
+ </li>
+
- <li class="md-nav__item">
- <a href="ft2-bzip2.html" title="BZIP2 Streams" class="md-nav__link">
- BZIP2 Streams
- </a>
- </li>
+
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-debugging_apis.html" class="md-nav__link">
+ External Debugging APIs
+ </a>
+ </li>
+
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-9" type="checkbox" id="nav-9">
+
+
+
- <label class="md-nav__link" for="nav-9">
- Error Codes
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-9">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_9" type="checkbox" id="__nav_9" >
+
+ <label class="md-nav__link" for="__nav_9">
Error Codes
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
-
-
+ <nav class="md-nav" aria-label="Error Codes" data-md-level="1">
+ <label class="md-nav__title" for="__nav_9">
+ <span class="md-nav__icon md-icon"></span>
+ Error Codes
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-error_enumerations.html" class="md-nav__link">
+ Error Enumerations
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-error_enumerations.html" title="Error Enumerations" class="md-nav__link">
- Error Enumerations
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-error_code_values.html" title="Error Code Values" class="md-nav__link">
- Error Code Values
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-error_code_values.html" class="md-nav__link">
+ Error Code Values
+ </a>
+ </li>
+
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-10" type="checkbox" id="nav-10">
+
+
+
- <label class="md-nav__link" for="nav-10">
- Miscellaneous
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-10">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_10" type="checkbox" id="__nav_10" >
+
+ <label class="md-nav__link" for="__nav_10">
Miscellaneous
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
-
+ <nav class="md-nav" aria-label="Miscellaneous" data-md-level="1">
+ <label class="md-nav__title" for="__nav_10">
+ <span class="md-nav__icon md-icon"></span>
+ Miscellaneous
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
-
-
-
- <li class="md-nav__item">
- <a href="ft2-gx_validation.html" title="TrueTypeGX/AAT Validation" class="md-nav__link">
- TrueTypeGX/AAT Validation
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-gx_validation.html" class="md-nav__link">
+ TrueTypeGX/AAT Validation
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-incremental.html" title="Incremental Loading" class="md-nav__link">
- Incremental Loading
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-incremental.html" class="md-nav__link">
+ Incremental Loading
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-truetype_engine.html" title="The TrueType Engine" class="md-nav__link">
- The TrueType Engine
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-truetype_engine.html" class="md-nav__link">
+ The TrueType Engine
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-ot_validation.html" class="md-nav__link">
+ OpenType Validation
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-ot_validation.html" title="OpenType Validation" class="md-nav__link">
- OpenType Validation
- </a>
- </li>
-
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
</ul>
@@ -1071,18 +1144,23 @@
</div>
- <div class="md-sidebar md-sidebar--secondary" data-md-component="toc">
+
+ <div class="md-sidebar md-sidebar--secondary" data-md-component="sidebar" data-md-type="toc" >
<div class="md-sidebar__scrollwrap">
<div class="md-sidebar__inner">
-<nav class="md-nav md-nav--secondary">
+<nav class="md-nav md-nav--secondary" aria-label="Table of contents">
+
- <label class="md-nav__title" for="__toc">Table of contents</label>
- <ul class="md-nav__list" data-md-scrollfix>
+ <label class="md-nav__title" for="__toc">
+ <span class="md-nav__icon md-icon"></span>
+ Table of contents
+ </label>
+ <ul class="md-nav__list" data-md-component="toc" data-md-scrollfix>
<li class="md-nav__item">
<a href="#synopsis" class="md-nav__link">
@@ -1133,10 +1211,6 @@
</li>
-
-
-
-
</ul>
</nav>
@@ -1145,7 +1219,7 @@
</div>
- <div class="md-content">
+ <div class="md-content" data-md-component="content">
<article class="md-content__inner md-typeset">
@@ -1170,7 +1244,6 @@
<p>This structure models a BGRA color value of a &lsquo;CPAL&rsquo; palette entry.</p>
<p>The used color space is sRGB; the colors are not pre-multiplied, and alpha values must be explicitly set.</p>
<h4>fields</h4>
-
<table class="fields">
<tr><td class="val" id="blue">blue</td><td class="desc">
<p>Blue value.</p>
@@ -1199,7 +1272,6 @@
<p>A list of bit field constants used in the <code>palette_flags</code> array of the <code><a href="ft2-color_management.html#ft_palette_data">FT_Palette_Data</a></code> structure to indicate for which background a palette with a given index is usable.</p>
<h4>values</h4>
-
<table class="fields long">
<tr><td class="val" id="ft_palette_for_light_background">FT_PALETTE_FOR_LIGHT_BACKGROUND</td><td class="desc">
<p>The palette is appropriate to use when displaying the font on a light background such as white.</p>
@@ -1229,7 +1301,6 @@
<p>This structure holds the data of the &lsquo;CPAL&rsquo; table.</p>
<h4>fields</h4>
-
<table class="fields">
<tr><td class="val" id="num_palettes">num_palettes</td><td class="desc">
<p>The number of palettes.</p>
@@ -1271,7 +1342,6 @@
<p>Retrieve the face's color palette data.</p>
<h4>input</h4>
-
<table class="fields">
<tr><td class="val" id="face">face</td><td class="desc">
<p>The source face handle.</p>
@@ -1279,7 +1349,6 @@
</table>
<h4>output</h4>
-
<table class="fields">
<tr><td class="val" id="apalette">apalette</td><td class="desc">
<p>A pointer to an <code><a href="ft2-color_management.html#ft_palette_data">FT_Palette_Data</a></code> structure.</p>
@@ -1311,7 +1380,6 @@
<p>(2) it retrieves all (unmodified) color entries of this palette. This function returns a read-write array, which means that a calling application can modify the palette entries on demand.</p>
<p>A corollary of (2) is that calling the function, then modifying some values, then calling the function again with the same arguments resets all color entries to the original &lsquo;CPAL&rsquo; values; all user modifications are lost.</p>
<h4>input</h4>
-
<table class="fields">
<tr><td class="val" id="face">face</td><td class="desc">
<p>The source face handle.</p>
@@ -1322,7 +1390,6 @@
</table>
<h4>output</h4>
-
<table class="fields">
<tr><td class="val" id="apalette">apalette</td><td class="desc">
<p>An array of color entries for a palette with index <code>palette_index</code>, having <code>num_palette_entries</code> elements (as found in the <code>FT_Palette_Data</code> structure). If <code>apalette</code> is set to <code>NULL</code>, no array gets returned (and no color entries can be modified).</p>
@@ -1351,7 +1418,6 @@
<p>&lsquo;COLR&rsquo; uses palette index 0xFFFF to indicate a &lsquo;text foreground color&rsquo;. This function sets this value.</p>
<h4>input</h4>
-
<table class="fields">
<tr><td class="val" id="face">face</td><td class="desc">
<p>The source face handle.</p>
@@ -1373,9 +1439,6 @@
<p>2.10</p>
<hr>
-
-
-
@@ -1385,59 +1448,60 @@
</article>
</div>
</div>
+
</main>
<footer class="md-footer">
- <div class="md-footer-nav">
- <nav class="md-footer-nav__inner md-grid">
+ <nav class="md-footer__inner md-grid" aria-label="Footer">
+
- <a href="ft2-glyph_variants.html" title="Unicode Variation Sequences" class="md-flex md-footer-nav__link md-footer-nav__link--prev" rel="prev">
- <div class="md-flex__cell md-flex__cell--shrink">
- <i class="md-icon md-icon--arrow-back md-footer-nav__button"></i>
- </div>
- <div class="md-flex__cell md-flex__cell--stretch md-footer-nav__title">
- <span class="md-flex__ellipsis">
- <span class="md-footer-nav__direction">
- Previous
- </span>
- Unicode Variation Sequences
+ <a href="ft2-glyph_variants.html" class="md-footer__link md-footer__link--prev" aria-label="Previous: Unicode Variation Sequences" rel="prev">
+ <div class="md-footer__button md-icon">
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M20 11v2H8l5.5 5.5-1.42 1.42L4.16 12l7.92-7.92L13.5 5.5 8 11h12z"/></svg>
+ </div>
+ <div class="md-footer__title">
+ <div class="md-ellipsis">
+ <span class="md-footer__direction">
+ Previous
</span>
+ Unicode Variation Sequences
</div>
- </a>
-
+ </div>
+ </a>
+
+
- <a href="ft2-layer_management.html" title="Glyph Layer Management" class="md-flex md-footer-nav__link md-footer-nav__link--next" rel="next">
- <div class="md-flex__cell md-flex__cell--stretch md-footer-nav__title">
- <span class="md-flex__ellipsis">
- <span class="md-footer-nav__direction">
- Next
- </span>
- Glyph Layer Management
+ <a href="ft2-layer_management.html" class="md-footer__link md-footer__link--next" aria-label="Next: Glyph Layer Management" rel="next">
+ <div class="md-footer__title">
+ <div class="md-ellipsis">
+ <span class="md-footer__direction">
+ Next
</span>
+ Glyph Layer Management
</div>
- <div class="md-flex__cell md-flex__cell--shrink">
- <i class="md-icon md-icon--arrow-forward md-footer-nav__button"></i>
- </div>
- </a>
-
- </nav>
- </div>
+ </div>
+ <div class="md-footer__button md-icon">
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M4 11v2h12l-5.5 5.5 1.42 1.42L19.84 12l-7.92-7.92L10.5 5.5 16 11H4z"/></svg>
+ </div>
+ </a>
+
+ </nav>
<div class="md-footer-meta md-typeset">
<div class="md-footer-meta__inner md-grid">
<div class="md-footer-copyright">
<div class="md-footer-copyright__highlight">
- Copyright 2020 <a href = "https://www.freetype.org/license.html">The FreeType Project</a>.
+ Copyright 2021 <a href = "https://www.freetype.org/license.html">The FreeType Project</a>.
</div>
- powered by
- <a href="https://www.mkdocs.org" target="_blank" rel="noopener">MkDocs</a>
- and
+ Made with
<a href="https://squidfunk.github.io/mkdocs-material/" target="_blank" rel="noopener">
- Material for MkDocs</a>
+ Material for MkDocs
+ </a>
+
</div>
</div>
@@ -1445,10 +1509,13 @@
</footer>
</div>
+ <div class="md-dialog" data-md-component="dialog">
+ <div class="md-dialog__inner md-typeset"></div>
+ </div>
+ <script id="__config" type="application/json">{"base": ".", "features": [], "translations": {"clipboard.copy": "Copy to clipboard", "clipboard.copied": "Copied to clipboard", "search.config.lang": "en", "search.config.pipeline": "trimmer, stopWordFilter", "search.config.separator": "[\\s\\-]+", "search.placeholder": "Search", "search.result.placeholder": "Type to start searching", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.term.missing": "Missing", "select.version.title": "Select version"}, "search": "assets/javascripts/workers/search.477d984a.min.js", "version": null}</script>
- <script src="assets/javascripts/application.c33a9706.js"></script>
-
- <script>app.initialize({version:"1.1",url:{base:"."}})</script>
+
+ <script src="assets/javascripts/bundle.82b56eb2.min.js"></script>
<script src="javascripts/extra.js"></script>
diff --git a/freetype/docs/reference/ft2-computations.html b/freetype/docs/reference/ft2-computations.html
index fa2c3a7d..829bf284 100644
--- a/freetype/docs/reference/ft2-computations.html
+++ b/freetype/docs/reference/ft2-computations.html
@@ -1,145 +1,136 @@
-
-
-
<!doctype html>
<html lang="en" class="no-js">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
- <meta http-equiv="x-ua-compatible" content="ie=edge">
- <meta name="description" content="API Reference Documentation for FreeType-2.10.4">
+ <meta name="description" content="API Reference Documentation for FreeType-2.11.1">
<meta name="author" content="FreeType Contributors">
- <meta name="lang:clipboard.copy" content="Copy to clipboard">
-
- <meta name="lang:clipboard.copied" content="Copied to clipboard">
-
- <meta name="lang:search.language" content="en">
-
- <meta name="lang:search.pipeline.stopwords" content="True">
-
- <meta name="lang:search.pipeline.trimmer" content="True">
-
- <meta name="lang:search.result.none" content="No matching documents">
-
- <meta name="lang:search.result.one" content="1 matching document">
-
- <meta name="lang:search.result.other" content="# matching documents">
-
- <meta name="lang:search.tokenizer" content="[\s\-]+">
-
- <link rel="shortcut icon" href="images/favico.ico">
- <meta name="generator" content="mkdocs-1.1, mkdocs-material-4.6.3">
+ <link rel="icon" href="images/favico.ico">
+ <meta name="generator" content="mkdocs-1.2.1, mkdocs-material-7.1.9">
- <title>Computations - FreeType-2.10.4 API Reference</title>
+ <title>Computations - FreeType-2.11.1 API Reference</title>
- <link rel="stylesheet" href="assets/stylesheets/application.adb8469c.css">
-
- <link rel="stylesheet" href="assets/stylesheets/application-palette.a8b3c06d.css">
-
+ <link rel="stylesheet" href="assets/stylesheets/main.ca7ac06f.min.css">
+ <link rel="stylesheet" href="assets/stylesheets/palette.f1a3b89f.min.css">
+
+
+
+ <meta name="theme-color" content="#4cae4f">
- <meta name="theme-color" content="#4caf50">
- <script src="assets/javascripts/modernizr.86422ebf.js"></script>
-
- <link href="https://fonts.gstatic.com" rel="preconnect" crossorigin>
+
+ <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Noto+Serif:300,400,400i,700%7CRoboto+Mono&display=fallback">
- <style>body,input{font-family:"Noto Serif","Helvetica Neue",Helvetica,Arial,sans-serif}code,kbd,pre{font-family:"Roboto Mono","Courier New",Courier,monospace}</style>
+ <style>:root{--md-text-font-family:"Noto Serif";--md-code-font-family:"Roboto Mono"}</style>
- <link rel="stylesheet" href="assets/fonts/material-icons.css">
<link rel="stylesheet" href="stylesheets/extra.css">
+
+
</head>
+
+
+
+
- <body dir="ltr" data-md-color-primary="green" data-md-color-accent="green">
+ <body dir="ltr" data-md-color-scheme="" data-md-color-primary="green" data-md-color-accent="green">
- <svg class="md-svg">
- <defs>
-
-
- </defs>
- </svg>
- <input class="md-toggle" data-md-toggle="drawer" type="checkbox" id="__drawer" autocomplete="off">
- <input class="md-toggle" data-md-toggle="search" type="checkbox" id="__search" autocomplete="off">
- <label class="md-overlay" data-md-component="overlay" for="__drawer"></label>
- <a href="#computations" tabindex="0" class="md-skip">
- Skip to content
- </a>
+ <script>function __prefix(e){return new URL(".",location).pathname+"."+e}function __get(e,t=localStorage){return JSON.parse(t.getItem(__prefix(e)))}</script>
+ <input class="md-toggle" data-md-toggle="drawer" type="checkbox" id="__drawer" autocomplete="off">
+ <input class="md-toggle" data-md-toggle="search" type="checkbox" id="__search" autocomplete="off">
+ <label class="md-overlay" for="__drawer"></label>
+ <div data-md-component="skip">
+
+
+ <a href="#computations" class="md-skip">
+ Skip to content
+ </a>
+
+ </div>
+ <div data-md-component="announce">
+
+ </div>
<header class="md-header" data-md-component="header">
- <nav class="md-header-nav md-grid">
- <div class="md-flex">
- <div class="md-flex__cell md-flex__cell--shrink">
- <a href="." title="FreeType-2.10.4 API Reference" aria-label="FreeType-2.10.4 API Reference" class="md-header-nav__button md-logo">
-
- <img alt="logo" src="images/favico.ico" width="24" height="24">
-
- </a>
- </div>
- <div class="md-flex__cell md-flex__cell--shrink">
- <label class="md-icon md-icon--menu md-header-nav__button" for="__drawer"></label>
- </div>
- <div class="md-flex__cell md-flex__cell--stretch">
- <div class="md-flex__ellipsis md-header-nav__title" data-md-component="title">
-
- <span class="md-header-nav__topic">
- FreeType-2.10.4 API Reference
- </span>
- <span class="md-header-nav__topic">
-
- Computations
-
- </span>
-
+ <nav class="md-header__inner md-grid" aria-label="Header">
+ <a href="index.html" title="FreeType-2.11.1 API Reference" class="md-header__button md-logo" aria-label="FreeType-2.11.1 API Reference" data-md-component="logo">
+
+ <img src="images/favico.ico" alt="logo">
+
+ </a>
+ <label class="md-header__button md-icon" for="__drawer">
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M3 6h18v2H3V6m0 5h18v2H3v-2m0 5h18v2H3v-2z"/></svg>
+ </label>
+ <div class="md-header__title" data-md-component="header-title">
+ <div class="md-header__ellipsis">
+ <div class="md-header__topic">
+ <span class="md-ellipsis">
+ FreeType-2.11.1 API Reference
+ </span>
+ </div>
+ <div class="md-header__topic" data-md-component="header-topic">
+ <span class="md-ellipsis">
+
+ Computations
+
+ </span>
</div>
</div>
- <div class="md-flex__cell md-flex__cell--shrink">
-
- <label class="md-icon md-icon--search md-header-nav__button" for="__search"></label>
-
+ </div>
+
+
+
+ <label class="md-header__button md-icon" for="__search">
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M9.5 3A6.5 6.5 0 0 1 16 9.5c0 1.61-.59 3.09-1.56 4.23l.27.27h.79l5 5-1.5 1.5-5-5v-.79l-.27-.27A6.516 6.516 0 0 1 9.5 16 6.5 6.5 0 0 1 3 9.5 6.5 6.5 0 0 1 9.5 3m0 2C7 5 5 7 5 9.5S7 14 9.5 14 14 12 14 9.5 12 5 9.5 5z"/></svg>
+ </label>
+
<div class="md-search" data-md-component="search" role="dialog">
<label class="md-search__overlay" for="__search"></label>
<div class="md-search__inner" role="search">
<form class="md-search__form" name="search">
- <input type="text" class="md-search__input" aria-label="search" name="query" placeholder="Search" autocapitalize="off" autocorrect="off" autocomplete="off" spellcheck="false" data-md-component="query" data-md-state="active">
- <label class="md-icon md-search__icon" for="__search"></label>
- <button type="reset" class="md-icon md-search__icon" data-md-component="reset" tabindex="-1">
- &#xE5CD;
+ <input type="text" class="md-search__input" name="query" aria-label="Search" placeholder="Search" autocapitalize="off" autocorrect="off" autocomplete="off" spellcheck="false" data-md-component="search-query" data-md-state="active" required>
+ <label class="md-search__icon md-icon" for="__search">
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M9.5 3A6.5 6.5 0 0 1 16 9.5c0 1.61-.59 3.09-1.56 4.23l.27.27h.79l5 5-1.5 1.5-5-5v-.79l-.27-.27A6.516 6.516 0 0 1 9.5 16 6.5 6.5 0 0 1 3 9.5 6.5 6.5 0 0 1 9.5 3m0 2C7 5 5 7 5 9.5S7 14 9.5 14 14 12 14 9.5 12 5 9.5 5z"/></svg>
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M20 11v2H8l5.5 5.5-1.42 1.42L4.16 12l7.92-7.92L13.5 5.5 8 11h12z"/></svg>
+ </label>
+ <button type="reset" class="md-search__icon md-icon" aria-label="Clear" tabindex="-1">
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z"/></svg>
</button>
</form>
<div class="md-search__output">
<div class="md-search__scrollwrap" data-md-scrollfix>
- <div class="md-search-result" data-md-component="result">
+ <div class="md-search-result" data-md-component="search-result">
<div class="md-search-result__meta">
- Type to start searching
+ Initializing search
</div>
<ol class="md-search-result__list"></ol>
</div>
@@ -147,33 +138,35 @@
</div>
</div>
</div>
-
- </div>
-
- </div>
+
+
</nav>
</header>
- <div class="md-container">
+ <div class="md-container" data-md-component="container">
-
+
- <main class="md-main" role="main">
- <div class="md-main__inner md-grid" data-md-component="container">
+ <main class="md-main" data-md-component="main">
+ <div class="md-main__inner md-grid">
- <div class="md-sidebar md-sidebar--primary" data-md-component="navigation">
+
+ <div class="md-sidebar md-sidebar--primary" data-md-component="sidebar" data-md-type="navigation" >
<div class="md-sidebar__scrollwrap">
<div class="md-sidebar__inner">
- <nav class="md-nav md-nav--primary" data-md-level="0">
- <label class="md-nav__title md-nav__title--site" for="__drawer">
- <a href="." title="FreeType-2.10.4 API Reference" class="md-nav__button md-logo">
-
- <img alt="logo" src="images/favico.ico" width="48" height="48">
+
+
+
+<nav class="md-nav md-nav--primary" aria-label="Navigation" data-md-level="0">
+ <label class="md-nav__title" for="__drawer">
+ <a href="index.html" title="FreeType-2.11.1 API Reference" class="md-nav__button md-logo" aria-label="FreeType-2.11.1 API Reference" data-md-component="logo">
+ <img src="images/favico.ico" alt="logo">
+
</a>
- FreeType-2.10.4 API Reference
+ FreeType-2.11.1 API Reference
</label>
<ul class="md-nav__list" data-md-scrollfix>
@@ -182,516 +175,564 @@
-
- <li class="md-nav__item">
- <a href="index.html" title="TOC" class="md-nav__link">
- TOC
- </a>
- </li>
+
+
+
+ <li class="md-nav__item">
+ <a href="index.html" class="md-nav__link">
+ TOC
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-index.html" title="Index" class="md-nav__link">
- Index
- </a>
- </li>
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-index.html" class="md-nav__link">
+ Index
+ </a>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-3" type="checkbox" id="nav-3">
+
+
+
- <label class="md-nav__link" for="nav-3">
- General Remarks
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-3">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_3" type="checkbox" id="__nav_3" >
+
+ <label class="md-nav__link" for="__nav_3">
General Remarks
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
-
-
+ <nav class="md-nav" aria-label="General Remarks" data-md-level="1">
+ <label class="md-nav__title" for="__nav_3">
+ <span class="md-nav__icon md-icon"></span>
+ General Remarks
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-preamble.html" class="md-nav__link">
+ Preamble
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-header_inclusion.html" title="FreeType's header inclusion scheme" class="md-nav__link">
- FreeType's header inclusion scheme
- </a>
- </li>
-
-
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-header_inclusion.html" class="md-nav__link">
+ FreeType's header inclusion scheme
+ </a>
+ </li>
+
- <li class="md-nav__item">
- <a href="ft2-user_allocation.html" title="User allocation" class="md-nav__link">
- User allocation
- </a>
- </li>
+
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-user_allocation.html" class="md-nav__link">
+ User allocation
+ </a>
+ </li>
+
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-4" type="checkbox" id="nav-4">
+
+
+
- <label class="md-nav__link" for="nav-4">
- Core API
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-4">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_4" type="checkbox" id="__nav_4" >
+
+ <label class="md-nav__link" for="__nav_4">
Core API
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
-
+ <nav class="md-nav" aria-label="Core API" data-md-level="1">
+ <label class="md-nav__title" for="__nav_4">
+ <span class="md-nav__icon md-icon"></span>
+ Core API
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
-
-
-
- <li class="md-nav__item">
- <a href="ft2-version.html" title="FreeType Version" class="md-nav__link">
- FreeType Version
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-version.html" class="md-nav__link">
+ FreeType Version
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-basic_types.html" title="Basic Data Types" class="md-nav__link">
- Basic Data Types
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-basic_types.html" class="md-nav__link">
+ Basic Data Types
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-base_interface.html" title="Base Interface" class="md-nav__link">
- Base Interface
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-base_interface.html" class="md-nav__link">
+ Base Interface
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-glyph_variants.html" class="md-nav__link">
+ Unicode Variation Sequences
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-glyph_variants.html" title="Unicode Variation Sequences" class="md-nav__link">
- Unicode Variation Sequences
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-color_management.html" title="Glyph Color Management" class="md-nav__link">
- Glyph Color Management
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-color_management.html" class="md-nav__link">
+ Glyph Color Management
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-layer_management.html" class="md-nav__link">
+ Glyph Layer Management
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-layer_management.html" title="Glyph Layer Management" class="md-nav__link">
- Glyph Layer Management
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-glyph_management.html" title="Glyph Management" class="md-nav__link">
- Glyph Management
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-glyph_management.html" class="md-nav__link">
+ Glyph Management
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-mac_specific.html" class="md-nav__link">
+ Mac Specific Interface
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-mac_specific.html" title="Mac Specific Interface" class="md-nav__link">
- Mac Specific Interface
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-sizes_management.html" title="Size Management" class="md-nav__link">
- Size Management
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-sizes_management.html" class="md-nav__link">
+ Size Management
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-header_file_macros.html" class="md-nav__link">
+ Header File Macros
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-header_file_macros.html" title="Header File Macros" class="md-nav__link">
- Header File Macros
- </a>
- </li>
-
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-5" type="checkbox" id="nav-5">
+
+
+
- <label class="md-nav__link" for="nav-5">
- Format-Specific API
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-5">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_5" type="checkbox" id="__nav_5" >
+
+ <label class="md-nav__link" for="__nav_5">
Format-Specific API
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
+ <nav class="md-nav" aria-label="Format-Specific API" data-md-level="1">
+ <label class="md-nav__title" for="__nav_5">
+ <span class="md-nav__icon md-icon"></span>
+ Format-Specific API
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-multiple_masters.html" title="Multiple Masters" class="md-nav__link">
- Multiple Masters
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-multiple_masters.html" class="md-nav__link">
+ Multiple Masters
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-truetype_tables.html" class="md-nav__link">
+ TrueType Tables
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-truetype_tables.html" title="TrueType Tables" class="md-nav__link">
- TrueType Tables
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-type1_tables.html" title="Type 1 Tables" class="md-nav__link">
- Type 1 Tables
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-type1_tables.html" class="md-nav__link">
+ Type 1 Tables
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-sfnt_names.html" class="md-nav__link">
+ SFNT Names
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-sfnt_names.html" title="SFNT Names" class="md-nav__link">
- SFNT Names
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-bdf_fonts.html" title="BDF and PCF Files" class="md-nav__link">
- BDF and PCF Files
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-bdf_fonts.html" class="md-nav__link">
+ BDF and PCF Files
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-cid_fonts.html" title="CID Fonts" class="md-nav__link">
- CID Fonts
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-cid_fonts.html" class="md-nav__link">
+ CID Fonts
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-pfr_fonts.html" title="PFR Fonts" class="md-nav__link">
- PFR Fonts
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-pfr_fonts.html" class="md-nav__link">
+ PFR Fonts
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-winfnt_fonts.html" title="Window FNT Files" class="md-nav__link">
- Window FNT Files
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-winfnt_fonts.html" class="md-nav__link">
+ Window FNT Files
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-font_formats.html" class="md-nav__link">
+ Font Formats
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-font_formats.html" title="Font Formats" class="md-nav__link">
- Font Formats
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-gasp_table.html" title="Gasp Table" class="md-nav__link">
- Gasp Table
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-gasp_table.html" class="md-nav__link">
+ Gasp Table
+ </a>
+ </li>
+
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-6" type="checkbox" id="nav-6">
+
+
+
- <label class="md-nav__link" for="nav-6">
- Controlling FreeType Modules
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-6">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_6" type="checkbox" id="__nav_6" >
+
+ <label class="md-nav__link" for="__nav_6">
Controlling FreeType Modules
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
-
+ <nav class="md-nav" aria-label="Controlling FreeType Modules" data-md-level="1">
+ <label class="md-nav__title" for="__nav_6">
+ <span class="md-nav__icon md-icon"></span>
+ Controlling FreeType Modules
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
-
-
-
- <li class="md-nav__item">
- <a href="ft2-auto_hinter.html" title="The auto-hinter" class="md-nav__link">
- The auto-hinter
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-auto_hinter.html" class="md-nav__link">
+ The auto-hinter
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-cff_driver.html" title="The CFF driver" class="md-nav__link">
- The CFF driver
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-cff_driver.html" class="md-nav__link">
+ The CFF driver
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-t1_cid_driver.html" title="The Type 1 and CID drivers" class="md-nav__link">
- The Type 1 and CID drivers
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-t1_cid_driver.html" class="md-nav__link">
+ The Type 1 and CID drivers
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-tt_driver.html" title="The TrueType driver" class="md-nav__link">
- The TrueType driver
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-tt_driver.html" class="md-nav__link">
+ The TrueType driver
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-pcf_driver.html" title="The PCF driver" class="md-nav__link">
- The PCF driver
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-pcf_driver.html" class="md-nav__link">
+ The PCF driver
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-properties.html" title="Driver properties" class="md-nav__link">
- Driver properties
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-properties.html" class="md-nav__link">
+ Driver properties
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-parameter_tags.html" class="md-nav__link">
+ Parameter Tags
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-parameter_tags.html" title="Parameter Tags" class="md-nav__link">
- Parameter Tags
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-lcd_rendering.html" title="Subpixel Rendering" class="md-nav__link">
- Subpixel Rendering
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-lcd_rendering.html" class="md-nav__link">
+ Subpixel Rendering
+ </a>
+ </li>
+
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-7" type="checkbox" id="nav-7">
+
+
+
- <label class="md-nav__link" for="nav-7">
- Cache Sub-System
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-7">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_7" type="checkbox" id="__nav_7" >
+
+ <label class="md-nav__link" for="__nav_7">
Cache Sub-System
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
-
+ <nav class="md-nav" aria-label="Cache Sub-System" data-md-level="1">
+ <label class="md-nav__title" for="__nav_7">
+ <span class="md-nav__icon md-icon"></span>
+ Cache Sub-System
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
-
-
-
- <li class="md-nav__item">
- <a href="ft2-cache_subsystem.html" title="Cache Sub-System" class="md-nav__link">
- Cache Sub-System
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-cache_subsystem.html" class="md-nav__link">
+ Cache Sub-System
+ </a>
+ </li>
+
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
@@ -699,53 +740,63 @@
-
-
- <li class="md-nav__item md-nav__item--active md-nav__item--nested">
+
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-8" type="checkbox" id="nav-8" checked>
+
+
- <label class="md-nav__link" for="nav-8">
- Support API
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-8">
+ <li class="md-nav__item md-nav__item--active md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_8" type="checkbox" id="__nav_8" checked>
+
+ <label class="md-nav__link" for="__nav_8">
Support API
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
-
+ <nav class="md-nav" aria-label="Support API" data-md-level="1">
+ <label class="md-nav__title" for="__nav_8">
+ <span class="md-nav__icon md-icon"></span>
+ Support API
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
-
-
+
+
-
-
- <li class="md-nav__item md-nav__item--active">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="toc" type="checkbox" id="__toc">
+
+
+ <li class="md-nav__item md-nav__item--active">
-
-
- <label class="md-nav__link md-nav__link--active" for="__toc">
+ <input class="md-nav__toggle md-toggle" data-md-toggle="toc" type="checkbox" id="__toc">
+
+
+
+
+
+ <label class="md-nav__link md-nav__link--active" for="__toc">
+ Computations
+ <span class="md-nav__icon md-icon"></span>
+ </label>
+
+ <a href="ft2-computations.html" class="md-nav__link md-nav__link--active">
Computations
- </label>
-
- <a href="ft2-computations.html" title="Computations" class="md-nav__link md-nav__link--active">
- Computations
- </a>
-
+ </a>
-<nav class="md-nav md-nav--secondary">
+
+<nav class="md-nav md-nav--secondary" aria-label="Table of contents">
+
- <label class="md-nav__title" for="__toc">Table of contents</label>
- <ul class="md-nav__list" data-md-scrollfix>
+ <label class="md-nav__title" for="__toc">
+ <span class="md-nav__icon md-icon"></span>
+ Table of contents
+ </label>
+ <ul class="md-nav__list" data-md-component="toc" data-md-scrollfix>
<li class="md-nav__item">
<a href="#synopsis" class="md-nav__link">
@@ -922,272 +973,294 @@
</li>
-
-
-
-
</ul>
</nav>
-
- </li>
+
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-list_processing.html" class="md-nav__link">
+ List Processing
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-list_processing.html" title="List Processing" class="md-nav__link">
- List Processing
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-outline_processing.html" title="Outline Processing" class="md-nav__link">
- Outline Processing
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-outline_processing.html" class="md-nav__link">
+ Outline Processing
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-quick_advance.html" title="Quick retrieval of advance values" class="md-nav__link">
- Quick retrieval of advance values
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-quick_advance.html" class="md-nav__link">
+ Quick retrieval of advance values
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-bitmap_handling.html" title="Bitmap Handling" class="md-nav__link">
- Bitmap Handling
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-bitmap_handling.html" class="md-nav__link">
+ Bitmap Handling
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-raster.html" title="Scanline Converter" class="md-nav__link">
- Scanline Converter
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-raster.html" class="md-nav__link">
+ Scanline Converter
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-glyph_stroker.html" class="md-nav__link">
+ Glyph Stroker
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-glyph_stroker.html" title="Glyph Stroker" class="md-nav__link">
- Glyph Stroker
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-system_interface.html" title="System Interface" class="md-nav__link">
- System Interface
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-system_interface.html" class="md-nav__link">
+ System Interface
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-module_management.html" title="Module Management" class="md-nav__link">
- Module Management
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-module_management.html" class="md-nav__link">
+ Module Management
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-gzip.html" title="GZIP Streams" class="md-nav__link">
- GZIP Streams
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-gzip.html" class="md-nav__link">
+ GZIP Streams
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-lzw.html" class="md-nav__link">
+ LZW Streams
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-lzw.html" title="LZW Streams" class="md-nav__link">
- LZW Streams
- </a>
- </li>
-
-
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-bzip2.html" class="md-nav__link">
+ BZIP2 Streams
+ </a>
+ </li>
+
- <li class="md-nav__item">
- <a href="ft2-bzip2.html" title="BZIP2 Streams" class="md-nav__link">
- BZIP2 Streams
- </a>
- </li>
+
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-debugging_apis.html" class="md-nav__link">
+ External Debugging APIs
+ </a>
+ </li>
+
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-9" type="checkbox" id="nav-9">
+
+
+
- <label class="md-nav__link" for="nav-9">
- Error Codes
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-9">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_9" type="checkbox" id="__nav_9" >
+
+ <label class="md-nav__link" for="__nav_9">
Error Codes
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
-
-
+ <nav class="md-nav" aria-label="Error Codes" data-md-level="1">
+ <label class="md-nav__title" for="__nav_9">
+ <span class="md-nav__icon md-icon"></span>
+ Error Codes
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-error_enumerations.html" class="md-nav__link">
+ Error Enumerations
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-error_enumerations.html" title="Error Enumerations" class="md-nav__link">
- Error Enumerations
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-error_code_values.html" title="Error Code Values" class="md-nav__link">
- Error Code Values
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-error_code_values.html" class="md-nav__link">
+ Error Code Values
+ </a>
+ </li>
+
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-10" type="checkbox" id="nav-10">
+
+
+
- <label class="md-nav__link" for="nav-10">
- Miscellaneous
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-10">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_10" type="checkbox" id="__nav_10" >
+
+ <label class="md-nav__link" for="__nav_10">
Miscellaneous
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
-
-
+ <nav class="md-nav" aria-label="Miscellaneous" data-md-level="1">
+ <label class="md-nav__title" for="__nav_10">
+ <span class="md-nav__icon md-icon"></span>
+ Miscellaneous
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-gx_validation.html" class="md-nav__link">
+ TrueTypeGX/AAT Validation
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-gx_validation.html" title="TrueTypeGX/AAT Validation" class="md-nav__link">
- TrueTypeGX/AAT Validation
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-incremental.html" title="Incremental Loading" class="md-nav__link">
- Incremental Loading
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-incremental.html" class="md-nav__link">
+ Incremental Loading
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-truetype_engine.html" class="md-nav__link">
+ The TrueType Engine
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-truetype_engine.html" title="The TrueType Engine" class="md-nav__link">
- The TrueType Engine
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-ot_validation.html" title="OpenType Validation" class="md-nav__link">
- OpenType Validation
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-ot_validation.html" class="md-nav__link">
+ OpenType Validation
+ </a>
+ </li>
+
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
</ul>
@@ -1197,18 +1270,23 @@
</div>
- <div class="md-sidebar md-sidebar--secondary" data-md-component="toc">
+
+ <div class="md-sidebar md-sidebar--secondary" data-md-component="sidebar" data-md-type="toc" >
<div class="md-sidebar__scrollwrap">
<div class="md-sidebar__inner">
-<nav class="md-nav md-nav--secondary">
+<nav class="md-nav md-nav--secondary" aria-label="Table of contents">
+
- <label class="md-nav__title" for="__toc">Table of contents</label>
- <ul class="md-nav__list" data-md-scrollfix>
+ <label class="md-nav__title" for="__toc">
+ <span class="md-nav__icon md-icon"></span>
+ Table of contents
+ </label>
+ <ul class="md-nav__list" data-md-component="toc" data-md-scrollfix>
<li class="md-nav__item">
<a href="#synopsis" class="md-nav__link">
@@ -1385,10 +1463,6 @@
</li>
-
-
-
-
</ul>
</nav>
@@ -1397,7 +1471,7 @@
</div>
- <div class="md-content">
+ <div class="md-content" data-md-component="content">
<article class="md-content__inner md-typeset">
@@ -1419,7 +1493,6 @@
<p>Compute <code>(a*b)/c</code> with maximum accuracy, using a 64-bit intermediate integer whenever necessary.</p>
<p>This function isn't necessarily as fast as some processor-specific operations, but is at least completely portable.</p>
<h4>input</h4>
-
<table class="fields">
<tr><td class="val" id="a">a</td><td class="desc">
<p>The first multiplier.</p>
@@ -1446,7 +1519,6 @@
<p>Compute <code>(a*b)/0x10000</code> with maximum accuracy. Its main use is to multiply a given value by a 16.16 fixed-point factor.</p>
<h4>input</h4>
-
<table class="fields">
<tr><td class="val" id="a">a</td><td class="desc">
<p>The first multiplier.</p>
@@ -1474,7 +1546,6 @@
<p>Compute <code>(a*0x10000)/b</code> with maximum accuracy. Its main use is to divide a given value by a 16.16 fixed-point factor.</p>
<h4>input</h4>
-
<table class="fields">
<tr><td class="val" id="a">a</td><td class="desc">
<p>The numerator.</p>
@@ -1497,7 +1568,6 @@
<p>Round a 16.16 fixed number.</p>
<h4>input</h4>
-
<table class="fields">
<tr><td class="val" id="a">a</td><td class="desc">
<p>The number to be rounded.</p>
@@ -1520,7 +1590,6 @@
<p>Compute the smallest following integer of a 16.16 fixed number.</p>
<h4>input</h4>
-
<table class="fields">
<tr><td class="val" id="a">a</td><td class="desc">
<p>The number for which the ceiling function is to be computed.</p>
@@ -1543,7 +1612,6 @@
<p>Compute the largest previous integer of a 16.16 fixed number.</p>
<h4>input</h4>
-
<table class="fields">
<tr><td class="val" id="a">a</td><td class="desc">
<p>The number for which the floor function is to be computed.</p>
@@ -1564,7 +1632,6 @@
<p>Transform a single vector through a 2x2 matrix.</p>
<h4>inout</h4>
-
<table class="fields">
<tr><td class="val" id="vector">vector</td><td class="desc">
<p>The target vector to transform.</p>
@@ -1572,7 +1639,6 @@
</table>
<h4>input</h4>
-
<table class="fields">
<tr><td class="val" id="matrix">matrix</td><td class="desc">
<p>A pointer to the source 2x2 matrix.</p>
@@ -1593,7 +1659,6 @@
<p>Perform the matrix operation <code>b = a*b</code>.</p>
<h4>input</h4>
-
<table class="fields">
<tr><td class="val" id="a">a</td><td class="desc">
<p>A pointer to matrix <code>a</code>.</p>
@@ -1601,7 +1666,6 @@
</table>
<h4>inout</h4>
-
<table class="fields">
<tr><td class="val" id="b">b</td><td class="desc">
<p>A pointer to matrix <code>b</code>.</p>
@@ -1622,7 +1686,6 @@
<p>Invert a 2x2 matrix. Return an error if it can't be inverted.</p>
<h4>inout</h4>
-
<table class="fields">
<tr><td class="val" id="matrix">matrix</td><td class="desc">
<p>A pointer to the target matrix. Remains untouched in case of error.</p>
@@ -1682,7 +1745,6 @@
<p>Return the sinus of a given angle in fixed-point format.</p>
<h4>input</h4>
-
<table class="fields">
<tr><td class="val" id="angle">angle</td><td class="desc">
<p>The input angle.</p>
@@ -1705,7 +1767,6 @@
<p>Return the cosinus of a given angle in fixed-point format.</p>
<h4>input</h4>
-
<table class="fields">
<tr><td class="val" id="angle">angle</td><td class="desc">
<p>The input angle.</p>
@@ -1728,7 +1789,6 @@
<p>Return the tangent of a given angle in fixed-point format.</p>
<h4>input</h4>
-
<table class="fields">
<tr><td class="val" id="angle">angle</td><td class="desc">
<p>The input angle.</p>
@@ -1749,7 +1809,6 @@
<p>Return the arc-tangent corresponding to a given vector (x,y) in the 2d plane.</p>
<h4>input</h4>
-
<table class="fields">
<tr><td class="val" id="x">x</td><td class="desc">
<p>The horizontal vector coordinate.</p>
@@ -1773,7 +1832,6 @@
<p>Return the difference between two angles. The result is always constrained to the ]-PI..PI] interval.</p>
<h4>input</h4>
-
<table class="fields">
<tr><td class="val" id="angle1">angle1</td><td class="desc">
<p>First angle.</p>
@@ -1798,7 +1856,6 @@
<p>Return the unit vector corresponding to a given angle. After the call, the value of <code>vec.x</code> will be <code>cos(angle)</code>, and the value of <code>vec.y</code> will be <code>sin(angle)</code>.</p>
<p>This function is useful to retrieve both the sinus and cosinus of a given angle quickly.</p>
<h4>output</h4>
-
<table class="fields">
<tr><td class="val" id="vec">vec</td><td class="desc">
<p>The address of target vector.</p>
@@ -1806,7 +1863,6 @@
</table>
<h4>input</h4>
-
<table class="fields">
<tr><td class="val" id="angle">angle</td><td class="desc">
<p>The input angle.</p>
@@ -1824,7 +1880,6 @@
<p>Rotate a vector by a given angle.</p>
<h4>inout</h4>
-
<table class="fields">
<tr><td class="val" id="vec">vec</td><td class="desc">
<p>The address of target vector.</p>
@@ -1832,7 +1887,6 @@
</table>
<h4>input</h4>
-
<table class="fields">
<tr><td class="val" id="angle">angle</td><td class="desc">
<p>The input angle.</p>
@@ -1849,7 +1903,6 @@
<p>Return the length of a given vector.</p>
<h4>input</h4>
-
<table class="fields">
<tr><td class="val" id="vec">vec</td><td class="desc">
<p>The address of target vector.</p>
@@ -1871,7 +1924,6 @@
<p>Compute both the length and angle of a given vector.</p>
<h4>input</h4>
-
<table class="fields">
<tr><td class="val" id="vec">vec</td><td class="desc">
<p>The address of source vector.</p>
@@ -1879,7 +1931,6 @@
</table>
<h4>output</h4>
-
<table class="fields">
<tr><td class="val" id="length">length</td><td class="desc">
<p>The vector length.</p>
@@ -1901,7 +1952,6 @@
<p>Compute vector coordinates from a length and angle.</p>
<h4>output</h4>
-
<table class="fields">
<tr><td class="val" id="vec">vec</td><td class="desc">
<p>The address of source vector.</p>
@@ -1909,7 +1959,6 @@
</table>
<h4>input</h4>
-
<table class="fields">
<tr><td class="val" id="length">length</td><td class="desc">
<p>The vector length.</p>
@@ -1921,9 +1970,6 @@
<hr>
-
-
-
@@ -1933,59 +1979,60 @@
</article>
</div>
</div>
+
</main>
<footer class="md-footer">
- <div class="md-footer-nav">
- <nav class="md-footer-nav__inner md-grid">
+ <nav class="md-footer__inner md-grid" aria-label="Footer">
+
- <a href="ft2-cache_subsystem.html" title="Cache Sub-System" class="md-flex md-footer-nav__link md-footer-nav__link--prev" rel="prev">
- <div class="md-flex__cell md-flex__cell--shrink">
- <i class="md-icon md-icon--arrow-back md-footer-nav__button"></i>
- </div>
- <div class="md-flex__cell md-flex__cell--stretch md-footer-nav__title">
- <span class="md-flex__ellipsis">
- <span class="md-footer-nav__direction">
- Previous
- </span>
- Cache Sub-System
+ <a href="ft2-cache_subsystem.html" class="md-footer__link md-footer__link--prev" aria-label="Previous: Cache Sub-System" rel="prev">
+ <div class="md-footer__button md-icon">
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M20 11v2H8l5.5 5.5-1.42 1.42L4.16 12l7.92-7.92L13.5 5.5 8 11h12z"/></svg>
+ </div>
+ <div class="md-footer__title">
+ <div class="md-ellipsis">
+ <span class="md-footer__direction">
+ Previous
</span>
+ Cache Sub-System
</div>
- </a>
-
+ </div>
+ </a>
+
+
- <a href="ft2-list_processing.html" title="List Processing" class="md-flex md-footer-nav__link md-footer-nav__link--next" rel="next">
- <div class="md-flex__cell md-flex__cell--stretch md-footer-nav__title">
- <span class="md-flex__ellipsis">
- <span class="md-footer-nav__direction">
- Next
- </span>
- List Processing
+ <a href="ft2-list_processing.html" class="md-footer__link md-footer__link--next" aria-label="Next: List Processing" rel="next">
+ <div class="md-footer__title">
+ <div class="md-ellipsis">
+ <span class="md-footer__direction">
+ Next
</span>
+ List Processing
</div>
- <div class="md-flex__cell md-flex__cell--shrink">
- <i class="md-icon md-icon--arrow-forward md-footer-nav__button"></i>
- </div>
- </a>
-
- </nav>
- </div>
+ </div>
+ <div class="md-footer__button md-icon">
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M4 11v2h12l-5.5 5.5 1.42 1.42L19.84 12l-7.92-7.92L10.5 5.5 16 11H4z"/></svg>
+ </div>
+ </a>
+
+ </nav>
<div class="md-footer-meta md-typeset">
<div class="md-footer-meta__inner md-grid">
<div class="md-footer-copyright">
<div class="md-footer-copyright__highlight">
- Copyright 2020 <a href = "https://www.freetype.org/license.html">The FreeType Project</a>.
+ Copyright 2021 <a href = "https://www.freetype.org/license.html">The FreeType Project</a>.
</div>
- powered by
- <a href="https://www.mkdocs.org" target="_blank" rel="noopener">MkDocs</a>
- and
+ Made with
<a href="https://squidfunk.github.io/mkdocs-material/" target="_blank" rel="noopener">
- Material for MkDocs</a>
+ Material for MkDocs
+ </a>
+
</div>
</div>
@@ -1993,10 +2040,13 @@
</footer>
</div>
+ <div class="md-dialog" data-md-component="dialog">
+ <div class="md-dialog__inner md-typeset"></div>
+ </div>
+ <script id="__config" type="application/json">{"base": ".", "features": [], "translations": {"clipboard.copy": "Copy to clipboard", "clipboard.copied": "Copied to clipboard", "search.config.lang": "en", "search.config.pipeline": "trimmer, stopWordFilter", "search.config.separator": "[\\s\\-]+", "search.placeholder": "Search", "search.result.placeholder": "Type to start searching", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.term.missing": "Missing", "select.version.title": "Select version"}, "search": "assets/javascripts/workers/search.477d984a.min.js", "version": null}</script>
- <script src="assets/javascripts/application.c33a9706.js"></script>
-
- <script>app.initialize({version:"1.1",url:{base:"."}})</script>
+
+ <script src="assets/javascripts/bundle.82b56eb2.min.js"></script>
<script src="javascripts/extra.js"></script>
diff --git a/freetype/docs/reference/ft2-debugging_apis.html b/freetype/docs/reference/ft2-debugging_apis.html
new file mode 100644
index 00000000..7567faa4
--- /dev/null
+++ b/freetype/docs/reference/ft2-debugging_apis.html
@@ -0,0 +1,1401 @@
+
+<!doctype html>
+<html lang="en" class="no-js">
+ <head>
+
+ <meta charset="utf-8">
+ <meta name="viewport" content="width=device-width,initial-scale=1">
+
+ <meta name="description" content="API Reference Documentation for FreeType-2.11.1">
+
+
+
+ <meta name="author" content="FreeType Contributors">
+
+
+ <link rel="icon" href="images/favico.ico">
+ <meta name="generator" content="mkdocs-1.2.1, mkdocs-material-7.1.9">
+
+
+
+ <title>External Debugging APIs - FreeType-2.11.1 API Reference</title>
+
+
+
+ <link rel="stylesheet" href="assets/stylesheets/main.ca7ac06f.min.css">
+
+
+ <link rel="stylesheet" href="assets/stylesheets/palette.f1a3b89f.min.css">
+
+
+
+ <meta name="theme-color" content="#4cae4f">
+
+
+
+
+
+
+
+ <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
+ <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Noto+Serif:300,400,400i,700%7CRoboto+Mono&display=fallback">
+ <style>:root{--md-text-font-family:"Noto Serif";--md-code-font-family:"Roboto Mono"}</style>
+
+
+
+
+ <link rel="stylesheet" href="stylesheets/extra.css">
+
+
+
+
+
+
+
+ </head>
+
+
+
+
+
+
+
+ <body dir="ltr" data-md-color-scheme="" data-md-color-primary="green" data-md-color-accent="green">
+
+
+ <script>function __prefix(e){return new URL(".",location).pathname+"."+e}function __get(e,t=localStorage){return JSON.parse(t.getItem(__prefix(e)))}</script>
+
+ <input class="md-toggle" data-md-toggle="drawer" type="checkbox" id="__drawer" autocomplete="off">
+ <input class="md-toggle" data-md-toggle="search" type="checkbox" id="__search" autocomplete="off">
+ <label class="md-overlay" for="__drawer"></label>
+ <div data-md-component="skip">
+
+
+ <a href="#external-debugging-apis" class="md-skip">
+ Skip to content
+ </a>
+
+ </div>
+ <div data-md-component="announce">
+
+ </div>
+
+ <header class="md-header" data-md-component="header">
+ <nav class="md-header__inner md-grid" aria-label="Header">
+ <a href="index.html" title="FreeType-2.11.1 API Reference" class="md-header__button md-logo" aria-label="FreeType-2.11.1 API Reference" data-md-component="logo">
+
+ <img src="images/favico.ico" alt="logo">
+
+ </a>
+ <label class="md-header__button md-icon" for="__drawer">
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M3 6h18v2H3V6m0 5h18v2H3v-2m0 5h18v2H3v-2z"/></svg>
+ </label>
+ <div class="md-header__title" data-md-component="header-title">
+ <div class="md-header__ellipsis">
+ <div class="md-header__topic">
+ <span class="md-ellipsis">
+ FreeType-2.11.1 API Reference
+ </span>
+ </div>
+ <div class="md-header__topic" data-md-component="header-topic">
+ <span class="md-ellipsis">
+
+ External Debugging APIs
+
+ </span>
+ </div>
+ </div>
+ </div>
+
+
+
+ <label class="md-header__button md-icon" for="__search">
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M9.5 3A6.5 6.5 0 0 1 16 9.5c0 1.61-.59 3.09-1.56 4.23l.27.27h.79l5 5-1.5 1.5-5-5v-.79l-.27-.27A6.516 6.516 0 0 1 9.5 16 6.5 6.5 0 0 1 3 9.5 6.5 6.5 0 0 1 9.5 3m0 2C7 5 5 7 5 9.5S7 14 9.5 14 14 12 14 9.5 12 5 9.5 5z"/></svg>
+ </label>
+
+<div class="md-search" data-md-component="search" role="dialog">
+ <label class="md-search__overlay" for="__search"></label>
+ <div class="md-search__inner" role="search">
+ <form class="md-search__form" name="search">
+ <input type="text" class="md-search__input" name="query" aria-label="Search" placeholder="Search" autocapitalize="off" autocorrect="off" autocomplete="off" spellcheck="false" data-md-component="search-query" data-md-state="active" required>
+ <label class="md-search__icon md-icon" for="__search">
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M9.5 3A6.5 6.5 0 0 1 16 9.5c0 1.61-.59 3.09-1.56 4.23l.27.27h.79l5 5-1.5 1.5-5-5v-.79l-.27-.27A6.516 6.516 0 0 1 9.5 16 6.5 6.5 0 0 1 3 9.5 6.5 6.5 0 0 1 9.5 3m0 2C7 5 5 7 5 9.5S7 14 9.5 14 14 12 14 9.5 12 5 9.5 5z"/></svg>
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M20 11v2H8l5.5 5.5-1.42 1.42L4.16 12l7.92-7.92L13.5 5.5 8 11h12z"/></svg>
+ </label>
+ <button type="reset" class="md-search__icon md-icon" aria-label="Clear" tabindex="-1">
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z"/></svg>
+ </button>
+ </form>
+ <div class="md-search__output">
+ <div class="md-search__scrollwrap" data-md-scrollfix>
+ <div class="md-search-result" data-md-component="search-result">
+ <div class="md-search-result__meta">
+ Initializing search
+ </div>
+ <ol class="md-search-result__list"></ol>
+ </div>
+ </div>
+ </div>
+ </div>
+</div>
+
+
+ </nav>
+</header>
+
+ <div class="md-container" data-md-component="container">
+
+
+
+
+ <main class="md-main" data-md-component="main">
+ <div class="md-main__inner md-grid">
+
+
+
+ <div class="md-sidebar md-sidebar--primary" data-md-component="sidebar" data-md-type="navigation" >
+ <div class="md-sidebar__scrollwrap">
+ <div class="md-sidebar__inner">
+
+
+
+<nav class="md-nav md-nav--primary" aria-label="Navigation" data-md-level="0">
+ <label class="md-nav__title" for="__drawer">
+ <a href="index.html" title="FreeType-2.11.1 API Reference" class="md-nav__button md-logo" aria-label="FreeType-2.11.1 API Reference" data-md-component="logo">
+
+ <img src="images/favico.ico" alt="logo">
+
+ </a>
+ FreeType-2.11.1 API Reference
+ </label>
+
+ <ul class="md-nav__list" data-md-scrollfix>
+
+
+
+
+
+
+
+
+ <li class="md-nav__item">
+ <a href="index.html" class="md-nav__link">
+ TOC
+ </a>
+ </li>
+
+
+
+
+
+
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-index.html" class="md-nav__link">
+ Index
+ </a>
+ </li>
+
+
+
+
+
+
+
+
+
+
+
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_3" type="checkbox" id="__nav_3" >
+
+ <label class="md-nav__link" for="__nav_3">
+ General Remarks
+ <span class="md-nav__icon md-icon"></span>
+ </label>
+ <nav class="md-nav" aria-label="General Remarks" data-md-level="1">
+ <label class="md-nav__title" for="__nav_3">
+ <span class="md-nav__icon md-icon"></span>
+ General Remarks
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
+
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-preamble.html" class="md-nav__link">
+ Preamble
+ </a>
+ </li>
+
+
+
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-header_inclusion.html" class="md-nav__link">
+ FreeType's header inclusion scheme
+ </a>
+ </li>
+
+
+
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-user_allocation.html" class="md-nav__link">
+ User allocation
+ </a>
+ </li>
+
+
+
+ </ul>
+ </nav>
+ </li>
+
+
+
+
+
+
+
+
+
+
+
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_4" type="checkbox" id="__nav_4" >
+
+ <label class="md-nav__link" for="__nav_4">
+ Core API
+ <span class="md-nav__icon md-icon"></span>
+ </label>
+ <nav class="md-nav" aria-label="Core API" data-md-level="1">
+ <label class="md-nav__title" for="__nav_4">
+ <span class="md-nav__icon md-icon"></span>
+ Core API
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
+
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-version.html" class="md-nav__link">
+ FreeType Version
+ </a>
+ </li>
+
+
+
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-basic_types.html" class="md-nav__link">
+ Basic Data Types
+ </a>
+ </li>
+
+
+
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-base_interface.html" class="md-nav__link">
+ Base Interface
+ </a>
+ </li>
+
+
+
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-glyph_variants.html" class="md-nav__link">
+ Unicode Variation Sequences
+ </a>
+ </li>
+
+
+
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-color_management.html" class="md-nav__link">
+ Glyph Color Management
+ </a>
+ </li>
+
+
+
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-layer_management.html" class="md-nav__link">
+ Glyph Layer Management
+ </a>
+ </li>
+
+
+
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-glyph_management.html" class="md-nav__link">
+ Glyph Management
+ </a>
+ </li>
+
+
+
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-mac_specific.html" class="md-nav__link">
+ Mac Specific Interface
+ </a>
+ </li>
+
+
+
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-sizes_management.html" class="md-nav__link">
+ Size Management
+ </a>
+ </li>
+
+
+
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-header_file_macros.html" class="md-nav__link">
+ Header File Macros
+ </a>
+ </li>
+
+
+
+ </ul>
+ </nav>
+ </li>
+
+
+
+
+
+
+
+
+
+
+
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_5" type="checkbox" id="__nav_5" >
+
+ <label class="md-nav__link" for="__nav_5">
+ Format-Specific API
+ <span class="md-nav__icon md-icon"></span>
+ </label>
+ <nav class="md-nav" aria-label="Format-Specific API" data-md-level="1">
+ <label class="md-nav__title" for="__nav_5">
+ <span class="md-nav__icon md-icon"></span>
+ Format-Specific API
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
+
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-multiple_masters.html" class="md-nav__link">
+ Multiple Masters
+ </a>
+ </li>
+
+
+
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-truetype_tables.html" class="md-nav__link">
+ TrueType Tables
+ </a>
+ </li>
+
+
+
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-type1_tables.html" class="md-nav__link">
+ Type 1 Tables
+ </a>
+ </li>
+
+
+
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-sfnt_names.html" class="md-nav__link">
+ SFNT Names
+ </a>
+ </li>
+
+
+
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-bdf_fonts.html" class="md-nav__link">
+ BDF and PCF Files
+ </a>
+ </li>
+
+
+
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-cid_fonts.html" class="md-nav__link">
+ CID Fonts
+ </a>
+ </li>
+
+
+
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-pfr_fonts.html" class="md-nav__link">
+ PFR Fonts
+ </a>
+ </li>
+
+
+
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-winfnt_fonts.html" class="md-nav__link">
+ Window FNT Files
+ </a>
+ </li>
+
+
+
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-font_formats.html" class="md-nav__link">
+ Font Formats
+ </a>
+ </li>
+
+
+
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-gasp_table.html" class="md-nav__link">
+ Gasp Table
+ </a>
+ </li>
+
+
+
+ </ul>
+ </nav>
+ </li>
+
+
+
+
+
+
+
+
+
+
+
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_6" type="checkbox" id="__nav_6" >
+
+ <label class="md-nav__link" for="__nav_6">
+ Controlling FreeType Modules
+ <span class="md-nav__icon md-icon"></span>
+ </label>
+ <nav class="md-nav" aria-label="Controlling FreeType Modules" data-md-level="1">
+ <label class="md-nav__title" for="__nav_6">
+ <span class="md-nav__icon md-icon"></span>
+ Controlling FreeType Modules
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
+
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-auto_hinter.html" class="md-nav__link">
+ The auto-hinter
+ </a>
+ </li>
+
+
+
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-cff_driver.html" class="md-nav__link">
+ The CFF driver
+ </a>
+ </li>
+
+
+
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-t1_cid_driver.html" class="md-nav__link">
+ The Type 1 and CID drivers
+ </a>
+ </li>
+
+
+
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-tt_driver.html" class="md-nav__link">
+ The TrueType driver
+ </a>
+ </li>
+
+
+
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-pcf_driver.html" class="md-nav__link">
+ The PCF driver
+ </a>
+ </li>
+
+
+
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-properties.html" class="md-nav__link">
+ Driver properties
+ </a>
+ </li>
+
+
+
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-parameter_tags.html" class="md-nav__link">
+ Parameter Tags
+ </a>
+ </li>
+
+
+
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-lcd_rendering.html" class="md-nav__link">
+ Subpixel Rendering
+ </a>
+ </li>
+
+
+
+ </ul>
+ </nav>
+ </li>
+
+
+
+
+
+
+
+
+
+
+
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_7" type="checkbox" id="__nav_7" >
+
+ <label class="md-nav__link" for="__nav_7">
+ Cache Sub-System
+ <span class="md-nav__icon md-icon"></span>
+ </label>
+ <nav class="md-nav" aria-label="Cache Sub-System" data-md-level="1">
+ <label class="md-nav__title" for="__nav_7">
+ <span class="md-nav__icon md-icon"></span>
+ Cache Sub-System
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
+
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-cache_subsystem.html" class="md-nav__link">
+ Cache Sub-System
+ </a>
+ </li>
+
+
+
+ </ul>
+ </nav>
+ </li>
+
+
+
+
+
+
+
+
+
+
+
+
+
+ <li class="md-nav__item md-nav__item--active md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_8" type="checkbox" id="__nav_8" checked>
+
+ <label class="md-nav__link" for="__nav_8">
+ Support API
+ <span class="md-nav__icon md-icon"></span>
+ </label>
+ <nav class="md-nav" aria-label="Support API" data-md-level="1">
+ <label class="md-nav__title" for="__nav_8">
+ <span class="md-nav__icon md-icon"></span>
+ Support API
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
+
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-computations.html" class="md-nav__link">
+ Computations
+ </a>
+ </li>
+
+
+
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-list_processing.html" class="md-nav__link">
+ List Processing
+ </a>
+ </li>
+
+
+
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-outline_processing.html" class="md-nav__link">
+ Outline Processing
+ </a>
+ </li>
+
+
+
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-quick_advance.html" class="md-nav__link">
+ Quick retrieval of advance values
+ </a>
+ </li>
+
+
+
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-bitmap_handling.html" class="md-nav__link">
+ Bitmap Handling
+ </a>
+ </li>
+
+
+
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-raster.html" class="md-nav__link">
+ Scanline Converter
+ </a>
+ </li>
+
+
+
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-glyph_stroker.html" class="md-nav__link">
+ Glyph Stroker
+ </a>
+ </li>
+
+
+
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-system_interface.html" class="md-nav__link">
+ System Interface
+ </a>
+ </li>
+
+
+
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-module_management.html" class="md-nav__link">
+ Module Management
+ </a>
+ </li>
+
+
+
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-gzip.html" class="md-nav__link">
+ GZIP Streams
+ </a>
+ </li>
+
+
+
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-lzw.html" class="md-nav__link">
+ LZW Streams
+ </a>
+ </li>
+
+
+
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-bzip2.html" class="md-nav__link">
+ BZIP2 Streams
+ </a>
+ </li>
+
+
+
+
+
+
+
+
+
+ <li class="md-nav__item md-nav__item--active">
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="toc" type="checkbox" id="__toc">
+
+
+
+
+
+ <label class="md-nav__link md-nav__link--active" for="__toc">
+ External Debugging APIs
+ <span class="md-nav__icon md-icon"></span>
+ </label>
+
+ <a href="ft2-debugging_apis.html" class="md-nav__link md-nav__link--active">
+ External Debugging APIs
+ </a>
+
+
+<nav class="md-nav md-nav--secondary" aria-label="Table of contents">
+
+
+
+
+
+
+ <label class="md-nav__title" for="__toc">
+ <span class="md-nav__icon md-icon"></span>
+ Table of contents
+ </label>
+ <ul class="md-nav__list" data-md-component="toc" data-md-scrollfix>
+
+ <li class="md-nav__item">
+ <a href="#synopsis" class="md-nav__link">
+ Synopsis
+ </a>
+
+</li>
+
+ <li class="md-nav__item">
+ <a href="#ft_trace_set_level" class="md-nav__link">
+ FT_Trace_Set_Level
+ </a>
+
+</li>
+
+ <li class="md-nav__item">
+ <a href="#ft_trace_set_default_level" class="md-nav__link">
+ FT_Trace_Set_Default_Level
+ </a>
+
+</li>
+
+ <li class="md-nav__item">
+ <a href="#ft_custom_log_handler" class="md-nav__link">
+ FT_Custom_Log_Handler
+ </a>
+
+</li>
+
+ <li class="md-nav__item">
+ <a href="#ft_set_log_handler" class="md-nav__link">
+ FT_Set_Log_Handler
+ </a>
+
+</li>
+
+ <li class="md-nav__item">
+ <a href="#ft_set_default_log_handler" class="md-nav__link">
+ FT_Set_Default_Log_Handler
+ </a>
+
+</li>
+
+ </ul>
+
+</nav>
+
+ </li>
+
+
+
+ </ul>
+ </nav>
+ </li>
+
+
+
+
+
+
+
+
+
+
+
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_9" type="checkbox" id="__nav_9" >
+
+ <label class="md-nav__link" for="__nav_9">
+ Error Codes
+ <span class="md-nav__icon md-icon"></span>
+ </label>
+ <nav class="md-nav" aria-label="Error Codes" data-md-level="1">
+ <label class="md-nav__title" for="__nav_9">
+ <span class="md-nav__icon md-icon"></span>
+ Error Codes
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
+
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-error_enumerations.html" class="md-nav__link">
+ Error Enumerations
+ </a>
+ </li>
+
+
+
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-error_code_values.html" class="md-nav__link">
+ Error Code Values
+ </a>
+ </li>
+
+
+
+ </ul>
+ </nav>
+ </li>
+
+
+
+
+
+
+
+
+
+
+
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_10" type="checkbox" id="__nav_10" >
+
+ <label class="md-nav__link" for="__nav_10">
+ Miscellaneous
+ <span class="md-nav__icon md-icon"></span>
+ </label>
+ <nav class="md-nav" aria-label="Miscellaneous" data-md-level="1">
+ <label class="md-nav__title" for="__nav_10">
+ <span class="md-nav__icon md-icon"></span>
+ Miscellaneous
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
+
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-gx_validation.html" class="md-nav__link">
+ TrueTypeGX/AAT Validation
+ </a>
+ </li>
+
+
+
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-incremental.html" class="md-nav__link">
+ Incremental Loading
+ </a>
+ </li>
+
+
+
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-truetype_engine.html" class="md-nav__link">
+ The TrueType Engine
+ </a>
+ </li>
+
+
+
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-ot_validation.html" class="md-nav__link">
+ OpenType Validation
+ </a>
+ </li>
+
+
+
+ </ul>
+ </nav>
+ </li>
+
+
+
+ </ul>
+</nav>
+ </div>
+ </div>
+ </div>
+
+
+
+ <div class="md-sidebar md-sidebar--secondary" data-md-component="sidebar" data-md-type="toc" >
+ <div class="md-sidebar__scrollwrap">
+ <div class="md-sidebar__inner">
+
+<nav class="md-nav md-nav--secondary" aria-label="Table of contents">
+
+
+
+
+
+
+ <label class="md-nav__title" for="__toc">
+ <span class="md-nav__icon md-icon"></span>
+ Table of contents
+ </label>
+ <ul class="md-nav__list" data-md-component="toc" data-md-scrollfix>
+
+ <li class="md-nav__item">
+ <a href="#synopsis" class="md-nav__link">
+ Synopsis
+ </a>
+
+</li>
+
+ <li class="md-nav__item">
+ <a href="#ft_trace_set_level" class="md-nav__link">
+ FT_Trace_Set_Level
+ </a>
+
+</li>
+
+ <li class="md-nav__item">
+ <a href="#ft_trace_set_default_level" class="md-nav__link">
+ FT_Trace_Set_Default_Level
+ </a>
+
+</li>
+
+ <li class="md-nav__item">
+ <a href="#ft_custom_log_handler" class="md-nav__link">
+ FT_Custom_Log_Handler
+ </a>
+
+</li>
+
+ <li class="md-nav__item">
+ <a href="#ft_set_log_handler" class="md-nav__link">
+ FT_Set_Log_Handler
+ </a>
+
+</li>
+
+ <li class="md-nav__item">
+ <a href="#ft_set_default_log_handler" class="md-nav__link">
+ FT_Set_Default_Log_Handler
+ </a>
+
+</li>
+
+ </ul>
+
+</nav>
+ </div>
+ </div>
+ </div>
+
+
+ <div class="md-content" data-md-component="content">
+ <article class="md-content__inner md-typeset">
+
+
+
+ <p><a href="https://www.freetype.org">FreeType</a> &raquo; <a href="../">Docs</a> &raquo; <a href="index.html#support-api">Support API</a> &raquo; External Debugging APIs</p>
+<hr />
+<h1 id="external-debugging-apis">External Debugging APIs<a class="headerlink" href="#external-debugging-apis" title="Permanent link">&para;</a></h1>
+<h2 id="synopsis">Synopsis<a class="headerlink" href="#synopsis" title="Permanent link">&para;</a></h2>
+<p>This section contains the declarations of public functions that enables fine control of what the <code>FT_DEBUG_LOGGING</code> macro outputs.</p>
+<h2 id="ft_trace_set_level">FT_Trace_Set_Level<a class="headerlink" href="#ft_trace_set_level" title="Permanent link">&para;</a></h2>
+<div class = "codehilite"><pre><code> FT_EXPORT( <span class="keyword">void</span> )
+ <b>FT_Trace_Set_Level</b>( <span class="keyword">const</span> <span class="keyword">char</span>* tracing_level );
+</code></pre></div>
+
+<p>Change the levels of tracing components of FreeType at run time.</p>
+<h4>input</h4>
+<table class="fields">
+<tr><td class="val" id="tracing_level">tracing_level</td><td class="desc">
+<p>New tracing value.</p>
+</td></tr>
+</table>
+
+<h4>example</h4>
+
+<p>The following call makes FreeType trace everything but the &lsquo;memory&rsquo; component.
+<div class="highlight"><pre><span></span><code>FT_Trace_Set_Level( &quot;any:7 memory:0 );
+</code></pre></div></p>
+<h4>note</h4>
+
+<p>This function does nothing if compilation option <code>FT_DEBUG_LOGGING</code> isn't set.</p>
+<h4>since</h4>
+
+<p>2.11</p>
+<hr>
+
+<h2 id="ft_trace_set_default_level">FT_Trace_Set_Default_Level<a class="headerlink" href="#ft_trace_set_default_level" title="Permanent link">&para;</a></h2>
+<div class = "codehilite"><pre><code> FT_EXPORT( <span class="keyword">void</span> )
+ <b>FT_Trace_Set_Default_Level</b>( <span class="keyword">void</span> );
+</code></pre></div>
+
+<p>Reset tracing value of FreeType's components to the default value (i.e., to the value of the <code>FT2_DEBUG</code> environment value or to NULL if <code>FT2_DEBUG</code> is not set).</p>
+<h4>note</h4>
+
+<p>This function does nothing if compilation option <code>FT_DEBUG_LOGGING</code> isn't set.</p>
+<h4>since</h4>
+
+<p>2.11</p>
+<hr>
+
+<h2 id="ft_custom_log_handler">FT_Custom_Log_Handler<a class="headerlink" href="#ft_custom_log_handler" title="Permanent link">&para;</a></h2>
+<div class = "codehilite"><pre><code> <span class="keyword">typedef</span> <span class="keyword">void</span>
+ (*<b>FT_Custom_Log_Handler</b>)( <span class="keyword">const</span> <span class="keyword">char</span>* ft_component,
+ <span class="keyword">const</span> <span class="keyword">char</span>* fmt,
+ va_list args );
+</code></pre></div>
+
+<p>A function typedef that is used to handle the logging of tracing and debug messages on a file system.</p>
+<h4>input</h4>
+<table class="fields">
+<tr><td class="val" id="ft_component">ft_component</td><td class="desc">
+<p>The name of <code>FT_COMPONENT</code> from which the current debug or error message is produced.</p>
+</td></tr>
+<tr><td class="val" id="fmt">fmt</td><td class="desc">
+<p>Actual debug or tracing message.</p>
+</td></tr>
+<tr><td class="val" id="args">args</td><td class="desc">
+<p>Arguments of debug or tracing messages.</p>
+</td></tr>
+</table>
+
+<h4>since</h4>
+
+<p>2.11</p>
+<hr>
+
+<h2 id="ft_set_log_handler">FT_Set_Log_Handler<a class="headerlink" href="#ft_set_log_handler" title="Permanent link">&para;</a></h2>
+<div class = "codehilite"><pre><code> FT_EXPORT( <span class="keyword">void</span> )
+ <b>FT_Set_Log_Handler</b>( <a href="ft2-debugging_apis.html#ft_custom_log_handler">FT_Custom_Log_Handler</a> handler );
+</code></pre></div>
+
+<p>A function to set a custom log handler.</p>
+<h4>input</h4>
+<table class="fields">
+<tr><td class="val" id="handler">handler</td><td class="desc">
+<p>New logging function.</p>
+</td></tr>
+</table>
+
+<h4>note</h4>
+
+<p>This function does nothing if compilation option <code>FT_DEBUG_LOGGING</code> isn't set.</p>
+<h4>since</h4>
+
+<p>2.11</p>
+<hr>
+
+<h2 id="ft_set_default_log_handler">FT_Set_Default_Log_Handler<a class="headerlink" href="#ft_set_default_log_handler" title="Permanent link">&para;</a></h2>
+<div class = "codehilite"><pre><code> FT_EXPORT( <span class="keyword">void</span> )
+ <b>FT_Set_Default_Log_Handler</b>( <span class="keyword">void</span> );
+</code></pre></div>
+
+<p>A function to undo the effect of <code><a href="ft2-debugging_apis.html#ft_set_log_handler">FT_Set_Log_Handler</a></code>, resetting the log handler to FreeType's built-in version.</p>
+<h4>note</h4>
+
+<p>This function does nothing if compilation option <code>FT_DEBUG_LOGGING</code> isn't set.</p>
+<h4>since</h4>
+
+<p>2.11</p>
+<hr>
+
+
+
+
+
+
+
+ </article>
+ </div>
+ </div>
+
+ </main>
+
+
+<footer class="md-footer">
+
+ <nav class="md-footer__inner md-grid" aria-label="Footer">
+
+
+ <a href="ft2-bzip2.html" class="md-footer__link md-footer__link--prev" aria-label="Previous: BZIP2 Streams" rel="prev">
+ <div class="md-footer__button md-icon">
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M20 11v2H8l5.5 5.5-1.42 1.42L4.16 12l7.92-7.92L13.5 5.5 8 11h12z"/></svg>
+ </div>
+ <div class="md-footer__title">
+ <div class="md-ellipsis">
+ <span class="md-footer__direction">
+ Previous
+ </span>
+ BZIP2 Streams
+ </div>
+ </div>
+ </a>
+
+
+
+ <a href="ft2-error_enumerations.html" class="md-footer__link md-footer__link--next" aria-label="Next: Error Enumerations" rel="next">
+ <div class="md-footer__title">
+ <div class="md-ellipsis">
+ <span class="md-footer__direction">
+ Next
+ </span>
+ Error Enumerations
+ </div>
+ </div>
+ <div class="md-footer__button md-icon">
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M4 11v2h12l-5.5 5.5 1.42 1.42L19.84 12l-7.92-7.92L10.5 5.5 16 11H4z"/></svg>
+ </div>
+ </a>
+
+ </nav>
+
+ <div class="md-footer-meta md-typeset">
+ <div class="md-footer-meta__inner md-grid">
+ <div class="md-footer-copyright">
+
+ <div class="md-footer-copyright__highlight">
+ Copyright 2021 <a href = "https://www.freetype.org/license.html">The FreeType Project</a>.
+ </div>
+
+ Made with
+ <a href="https://squidfunk.github.io/mkdocs-material/" target="_blank" rel="noopener">
+ Material for MkDocs
+ </a>
+
+ </div>
+
+ </div>
+ </div>
+</footer>
+
+ </div>
+ <div class="md-dialog" data-md-component="dialog">
+ <div class="md-dialog__inner md-typeset"></div>
+ </div>
+ <script id="__config" type="application/json">{"base": ".", "features": [], "translations": {"clipboard.copy": "Copy to clipboard", "clipboard.copied": "Copied to clipboard", "search.config.lang": "en", "search.config.pipeline": "trimmer, stopWordFilter", "search.config.separator": "[\\s\\-]+", "search.placeholder": "Search", "search.result.placeholder": "Type to start searching", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.term.missing": "Missing", "select.version.title": "Select version"}, "search": "assets/javascripts/workers/search.477d984a.min.js", "version": null}</script>
+
+
+ <script src="assets/javascripts/bundle.82b56eb2.min.js"></script>
+
+ <script src="javascripts/extra.js"></script>
+
+
+ </body>
+</html> \ No newline at end of file
diff --git a/freetype/docs/reference/ft2-error_code_values.html b/freetype/docs/reference/ft2-error_code_values.html
index 1c76c504..8650712a 100644
--- a/freetype/docs/reference/ft2-error_code_values.html
+++ b/freetype/docs/reference/ft2-error_code_values.html
@@ -1,145 +1,136 @@
-
-
-
<!doctype html>
<html lang="en" class="no-js">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
- <meta http-equiv="x-ua-compatible" content="ie=edge">
- <meta name="description" content="API Reference Documentation for FreeType-2.10.4">
+ <meta name="description" content="API Reference Documentation for FreeType-2.11.1">
<meta name="author" content="FreeType Contributors">
- <meta name="lang:clipboard.copy" content="Copy to clipboard">
-
- <meta name="lang:clipboard.copied" content="Copied to clipboard">
-
- <meta name="lang:search.language" content="en">
-
- <meta name="lang:search.pipeline.stopwords" content="True">
-
- <meta name="lang:search.pipeline.trimmer" content="True">
-
- <meta name="lang:search.result.none" content="No matching documents">
-
- <meta name="lang:search.result.one" content="1 matching document">
-
- <meta name="lang:search.result.other" content="# matching documents">
-
- <meta name="lang:search.tokenizer" content="[\s\-]+">
-
- <link rel="shortcut icon" href="images/favico.ico">
- <meta name="generator" content="mkdocs-1.1, mkdocs-material-4.6.3">
+ <link rel="icon" href="images/favico.ico">
+ <meta name="generator" content="mkdocs-1.2.1, mkdocs-material-7.1.9">
- <title>Error Code Values - FreeType-2.10.4 API Reference</title>
+ <title>Error Code Values - FreeType-2.11.1 API Reference</title>
- <link rel="stylesheet" href="assets/stylesheets/application.adb8469c.css">
-
- <link rel="stylesheet" href="assets/stylesheets/application-palette.a8b3c06d.css">
-
+ <link rel="stylesheet" href="assets/stylesheets/main.ca7ac06f.min.css">
+ <link rel="stylesheet" href="assets/stylesheets/palette.f1a3b89f.min.css">
+
+
+
+ <meta name="theme-color" content="#4cae4f">
- <meta name="theme-color" content="#4caf50">
- <script src="assets/javascripts/modernizr.86422ebf.js"></script>
-
- <link href="https://fonts.gstatic.com" rel="preconnect" crossorigin>
+
+ <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Noto+Serif:300,400,400i,700%7CRoboto+Mono&display=fallback">
- <style>body,input{font-family:"Noto Serif","Helvetica Neue",Helvetica,Arial,sans-serif}code,kbd,pre{font-family:"Roboto Mono","Courier New",Courier,monospace}</style>
+ <style>:root{--md-text-font-family:"Noto Serif";--md-code-font-family:"Roboto Mono"}</style>
- <link rel="stylesheet" href="assets/fonts/material-icons.css">
<link rel="stylesheet" href="stylesheets/extra.css">
+
+
</head>
+
+
+
+
- <body dir="ltr" data-md-color-primary="green" data-md-color-accent="green">
+ <body dir="ltr" data-md-color-scheme="" data-md-color-primary="green" data-md-color-accent="green">
- <svg class="md-svg">
- <defs>
-
-
- </defs>
- </svg>
- <input class="md-toggle" data-md-toggle="drawer" type="checkbox" id="__drawer" autocomplete="off">
- <input class="md-toggle" data-md-toggle="search" type="checkbox" id="__search" autocomplete="off">
- <label class="md-overlay" data-md-component="overlay" for="__drawer"></label>
- <a href="#error-code-values" tabindex="0" class="md-skip">
- Skip to content
- </a>
+ <script>function __prefix(e){return new URL(".",location).pathname+"."+e}function __get(e,t=localStorage){return JSON.parse(t.getItem(__prefix(e)))}</script>
+ <input class="md-toggle" data-md-toggle="drawer" type="checkbox" id="__drawer" autocomplete="off">
+ <input class="md-toggle" data-md-toggle="search" type="checkbox" id="__search" autocomplete="off">
+ <label class="md-overlay" for="__drawer"></label>
+ <div data-md-component="skip">
+
+
+ <a href="#error-code-values" class="md-skip">
+ Skip to content
+ </a>
+
+ </div>
+ <div data-md-component="announce">
+
+ </div>
<header class="md-header" data-md-component="header">
- <nav class="md-header-nav md-grid">
- <div class="md-flex">
- <div class="md-flex__cell md-flex__cell--shrink">
- <a href="." title="FreeType-2.10.4 API Reference" aria-label="FreeType-2.10.4 API Reference" class="md-header-nav__button md-logo">
-
- <img alt="logo" src="images/favico.ico" width="24" height="24">
-
- </a>
- </div>
- <div class="md-flex__cell md-flex__cell--shrink">
- <label class="md-icon md-icon--menu md-header-nav__button" for="__drawer"></label>
- </div>
- <div class="md-flex__cell md-flex__cell--stretch">
- <div class="md-flex__ellipsis md-header-nav__title" data-md-component="title">
-
- <span class="md-header-nav__topic">
- FreeType-2.10.4 API Reference
- </span>
- <span class="md-header-nav__topic">
-
- Error Code Values
-
- </span>
-
+ <nav class="md-header__inner md-grid" aria-label="Header">
+ <a href="index.html" title="FreeType-2.11.1 API Reference" class="md-header__button md-logo" aria-label="FreeType-2.11.1 API Reference" data-md-component="logo">
+
+ <img src="images/favico.ico" alt="logo">
+
+ </a>
+ <label class="md-header__button md-icon" for="__drawer">
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M3 6h18v2H3V6m0 5h18v2H3v-2m0 5h18v2H3v-2z"/></svg>
+ </label>
+ <div class="md-header__title" data-md-component="header-title">
+ <div class="md-header__ellipsis">
+ <div class="md-header__topic">
+ <span class="md-ellipsis">
+ FreeType-2.11.1 API Reference
+ </span>
+ </div>
+ <div class="md-header__topic" data-md-component="header-topic">
+ <span class="md-ellipsis">
+
+ Error Code Values
+
+ </span>
</div>
</div>
- <div class="md-flex__cell md-flex__cell--shrink">
-
- <label class="md-icon md-icon--search md-header-nav__button" for="__search"></label>
-
+ </div>
+
+
+
+ <label class="md-header__button md-icon" for="__search">
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M9.5 3A6.5 6.5 0 0 1 16 9.5c0 1.61-.59 3.09-1.56 4.23l.27.27h.79l5 5-1.5 1.5-5-5v-.79l-.27-.27A6.516 6.516 0 0 1 9.5 16 6.5 6.5 0 0 1 3 9.5 6.5 6.5 0 0 1 9.5 3m0 2C7 5 5 7 5 9.5S7 14 9.5 14 14 12 14 9.5 12 5 9.5 5z"/></svg>
+ </label>
+
<div class="md-search" data-md-component="search" role="dialog">
<label class="md-search__overlay" for="__search"></label>
<div class="md-search__inner" role="search">
<form class="md-search__form" name="search">
- <input type="text" class="md-search__input" aria-label="search" name="query" placeholder="Search" autocapitalize="off" autocorrect="off" autocomplete="off" spellcheck="false" data-md-component="query" data-md-state="active">
- <label class="md-icon md-search__icon" for="__search"></label>
- <button type="reset" class="md-icon md-search__icon" data-md-component="reset" tabindex="-1">
- &#xE5CD;
+ <input type="text" class="md-search__input" name="query" aria-label="Search" placeholder="Search" autocapitalize="off" autocorrect="off" autocomplete="off" spellcheck="false" data-md-component="search-query" data-md-state="active" required>
+ <label class="md-search__icon md-icon" for="__search">
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M9.5 3A6.5 6.5 0 0 1 16 9.5c0 1.61-.59 3.09-1.56 4.23l.27.27h.79l5 5-1.5 1.5-5-5v-.79l-.27-.27A6.516 6.516 0 0 1 9.5 16 6.5 6.5 0 0 1 3 9.5 6.5 6.5 0 0 1 9.5 3m0 2C7 5 5 7 5 9.5S7 14 9.5 14 14 12 14 9.5 12 5 9.5 5z"/></svg>
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M20 11v2H8l5.5 5.5-1.42 1.42L4.16 12l7.92-7.92L13.5 5.5 8 11h12z"/></svg>
+ </label>
+ <button type="reset" class="md-search__icon md-icon" aria-label="Clear" tabindex="-1">
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z"/></svg>
</button>
</form>
<div class="md-search__output">
<div class="md-search__scrollwrap" data-md-scrollfix>
- <div class="md-search-result" data-md-component="result">
+ <div class="md-search-result" data-md-component="search-result">
<div class="md-search-result__meta">
- Type to start searching
+ Initializing search
</div>
<ol class="md-search-result__list"></ol>
</div>
@@ -147,33 +138,35 @@
</div>
</div>
</div>
-
- </div>
-
- </div>
+
+
</nav>
</header>
- <div class="md-container">
+ <div class="md-container" data-md-component="container">
-
+
- <main class="md-main" role="main">
- <div class="md-main__inner md-grid" data-md-component="container">
+ <main class="md-main" data-md-component="main">
+ <div class="md-main__inner md-grid">
- <div class="md-sidebar md-sidebar--primary" data-md-component="navigation">
+
+ <div class="md-sidebar md-sidebar--primary" data-md-component="sidebar" data-md-type="navigation" >
<div class="md-sidebar__scrollwrap">
<div class="md-sidebar__inner">
- <nav class="md-nav md-nav--primary" data-md-level="0">
- <label class="md-nav__title md-nav__title--site" for="__drawer">
- <a href="." title="FreeType-2.10.4 API Reference" class="md-nav__button md-logo">
-
- <img alt="logo" src="images/favico.ico" width="48" height="48">
+
+
+
+<nav class="md-nav md-nav--primary" aria-label="Navigation" data-md-level="0">
+ <label class="md-nav__title" for="__drawer">
+ <a href="index.html" title="FreeType-2.11.1 API Reference" class="md-nav__button md-logo" aria-label="FreeType-2.11.1 API Reference" data-md-component="logo">
+ <img src="images/favico.ico" alt="logo">
+
</a>
- FreeType-2.10.4 API Reference
+ FreeType-2.11.1 API Reference
</label>
<ul class="md-nav__list" data-md-scrollfix>
@@ -182,684 +175,750 @@
-
- <li class="md-nav__item">
- <a href="index.html" title="TOC" class="md-nav__link">
- TOC
- </a>
- </li>
+
+
+
+ <li class="md-nav__item">
+ <a href="index.html" class="md-nav__link">
+ TOC
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-index.html" title="Index" class="md-nav__link">
- Index
- </a>
- </li>
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-index.html" class="md-nav__link">
+ Index
+ </a>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-3" type="checkbox" id="nav-3">
+
+
+
- <label class="md-nav__link" for="nav-3">
- General Remarks
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-3">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_3" type="checkbox" id="__nav_3" >
+
+ <label class="md-nav__link" for="__nav_3">
General Remarks
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
+ <nav class="md-nav" aria-label="General Remarks" data-md-level="1">
+ <label class="md-nav__title" for="__nav_3">
+ <span class="md-nav__icon md-icon"></span>
+ General Remarks
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-header_inclusion.html" title="FreeType's header inclusion scheme" class="md-nav__link">
- FreeType's header inclusion scheme
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-preamble.html" class="md-nav__link">
+ Preamble
+ </a>
+ </li>
+
-
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-header_inclusion.html" class="md-nav__link">
+ FreeType's header inclusion scheme
+ </a>
+ </li>
+
- <li class="md-nav__item">
- <a href="ft2-user_allocation.html" title="User allocation" class="md-nav__link">
- User allocation
- </a>
- </li>
+
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-user_allocation.html" class="md-nav__link">
+ User allocation
+ </a>
+ </li>
+
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-4" type="checkbox" id="nav-4">
+
+
+
- <label class="md-nav__link" for="nav-4">
- Core API
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-4">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_4" type="checkbox" id="__nav_4" >
+
+ <label class="md-nav__link" for="__nav_4">
Core API
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
-
-
+ <nav class="md-nav" aria-label="Core API" data-md-level="1">
+ <label class="md-nav__title" for="__nav_4">
+ <span class="md-nav__icon md-icon"></span>
+ Core API
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-version.html" class="md-nav__link">
+ FreeType Version
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-version.html" title="FreeType Version" class="md-nav__link">
- FreeType Version
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-basic_types.html" title="Basic Data Types" class="md-nav__link">
- Basic Data Types
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-basic_types.html" class="md-nav__link">
+ Basic Data Types
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-base_interface.html" class="md-nav__link">
+ Base Interface
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-base_interface.html" title="Base Interface" class="md-nav__link">
- Base Interface
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-glyph_variants.html" title="Unicode Variation Sequences" class="md-nav__link">
- Unicode Variation Sequences
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-glyph_variants.html" class="md-nav__link">
+ Unicode Variation Sequences
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-color_management.html" title="Glyph Color Management" class="md-nav__link">
- Glyph Color Management
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-color_management.html" class="md-nav__link">
+ Glyph Color Management
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-layer_management.html" title="Glyph Layer Management" class="md-nav__link">
- Glyph Layer Management
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-layer_management.html" class="md-nav__link">
+ Glyph Layer Management
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-glyph_management.html" title="Glyph Management" class="md-nav__link">
- Glyph Management
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-glyph_management.html" class="md-nav__link">
+ Glyph Management
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-mac_specific.html" title="Mac Specific Interface" class="md-nav__link">
- Mac Specific Interface
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-mac_specific.html" class="md-nav__link">
+ Mac Specific Interface
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-sizes_management.html" title="Size Management" class="md-nav__link">
- Size Management
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-sizes_management.html" class="md-nav__link">
+ Size Management
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-header_file_macros.html" title="Header File Macros" class="md-nav__link">
- Header File Macros
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-header_file_macros.html" class="md-nav__link">
+ Header File Macros
+ </a>
+ </li>
+
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-5" type="checkbox" id="nav-5">
+
+
+
- <label class="md-nav__link" for="nav-5">
- Format-Specific API
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-5">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_5" type="checkbox" id="__nav_5" >
+
+ <label class="md-nav__link" for="__nav_5">
Format-Specific API
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
+ <nav class="md-nav" aria-label="Format-Specific API" data-md-level="1">
+ <label class="md-nav__title" for="__nav_5">
+ <span class="md-nav__icon md-icon"></span>
+ Format-Specific API
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-multiple_masters.html" title="Multiple Masters" class="md-nav__link">
- Multiple Masters
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-multiple_masters.html" class="md-nav__link">
+ Multiple Masters
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-truetype_tables.html" title="TrueType Tables" class="md-nav__link">
- TrueType Tables
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-truetype_tables.html" class="md-nav__link">
+ TrueType Tables
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-type1_tables.html" title="Type 1 Tables" class="md-nav__link">
- Type 1 Tables
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-type1_tables.html" class="md-nav__link">
+ Type 1 Tables
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-sfnt_names.html" title="SFNT Names" class="md-nav__link">
- SFNT Names
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-sfnt_names.html" class="md-nav__link">
+ SFNT Names
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-bdf_fonts.html" class="md-nav__link">
+ BDF and PCF Files
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-bdf_fonts.html" title="BDF and PCF Files" class="md-nav__link">
- BDF and PCF Files
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-cid_fonts.html" title="CID Fonts" class="md-nav__link">
- CID Fonts
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-cid_fonts.html" class="md-nav__link">
+ CID Fonts
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-pfr_fonts.html" class="md-nav__link">
+ PFR Fonts
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-pfr_fonts.html" title="PFR Fonts" class="md-nav__link">
- PFR Fonts
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-winfnt_fonts.html" title="Window FNT Files" class="md-nav__link">
- Window FNT Files
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-winfnt_fonts.html" class="md-nav__link">
+ Window FNT Files
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-font_formats.html" title="Font Formats" class="md-nav__link">
- Font Formats
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-font_formats.html" class="md-nav__link">
+ Font Formats
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-gasp_table.html" title="Gasp Table" class="md-nav__link">
- Gasp Table
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-gasp_table.html" class="md-nav__link">
+ Gasp Table
+ </a>
+ </li>
+
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-6" type="checkbox" id="nav-6">
+
+
+
- <label class="md-nav__link" for="nav-6">
- Controlling FreeType Modules
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-6">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_6" type="checkbox" id="__nav_6" >
+
+ <label class="md-nav__link" for="__nav_6">
Controlling FreeType Modules
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
+ <nav class="md-nav" aria-label="Controlling FreeType Modules" data-md-level="1">
+ <label class="md-nav__title" for="__nav_6">
+ <span class="md-nav__icon md-icon"></span>
+ Controlling FreeType Modules
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-auto_hinter.html" title="The auto-hinter" class="md-nav__link">
- The auto-hinter
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-auto_hinter.html" class="md-nav__link">
+ The auto-hinter
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-cff_driver.html" title="The CFF driver" class="md-nav__link">
- The CFF driver
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-cff_driver.html" class="md-nav__link">
+ The CFF driver
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-t1_cid_driver.html" title="The Type 1 and CID drivers" class="md-nav__link">
- The Type 1 and CID drivers
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-t1_cid_driver.html" class="md-nav__link">
+ The Type 1 and CID drivers
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-tt_driver.html" title="The TrueType driver" class="md-nav__link">
- The TrueType driver
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-tt_driver.html" class="md-nav__link">
+ The TrueType driver
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-pcf_driver.html" title="The PCF driver" class="md-nav__link">
- The PCF driver
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-pcf_driver.html" class="md-nav__link">
+ The PCF driver
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-properties.html" class="md-nav__link">
+ Driver properties
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-properties.html" title="Driver properties" class="md-nav__link">
- Driver properties
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-parameter_tags.html" title="Parameter Tags" class="md-nav__link">
- Parameter Tags
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-parameter_tags.html" class="md-nav__link">
+ Parameter Tags
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-lcd_rendering.html" title="Subpixel Rendering" class="md-nav__link">
- Subpixel Rendering
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-lcd_rendering.html" class="md-nav__link">
+ Subpixel Rendering
+ </a>
+ </li>
+
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-7" type="checkbox" id="nav-7">
+
+
+
- <label class="md-nav__link" for="nav-7">
- Cache Sub-System
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-7">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_7" type="checkbox" id="__nav_7" >
+
+ <label class="md-nav__link" for="__nav_7">
Cache Sub-System
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
-
+ <nav class="md-nav" aria-label="Cache Sub-System" data-md-level="1">
+ <label class="md-nav__title" for="__nav_7">
+ <span class="md-nav__icon md-icon"></span>
+ Cache Sub-System
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
-
-
-
- <li class="md-nav__item">
- <a href="ft2-cache_subsystem.html" title="Cache Sub-System" class="md-nav__link">
- Cache Sub-System
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-cache_subsystem.html" class="md-nav__link">
+ Cache Sub-System
+ </a>
+ </li>
+
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-8" type="checkbox" id="nav-8">
+
+
+
- <label class="md-nav__link" for="nav-8">
- Support API
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-8">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_8" type="checkbox" id="__nav_8" >
+
+ <label class="md-nav__link" for="__nav_8">
Support API
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
+ <nav class="md-nav" aria-label="Support API" data-md-level="1">
+ <label class="md-nav__title" for="__nav_8">
+ <span class="md-nav__icon md-icon"></span>
+ Support API
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-computations.html" title="Computations" class="md-nav__link">
- Computations
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-computations.html" class="md-nav__link">
+ Computations
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-list_processing.html" title="List Processing" class="md-nav__link">
- List Processing
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-list_processing.html" class="md-nav__link">
+ List Processing
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-outline_processing.html" title="Outline Processing" class="md-nav__link">
- Outline Processing
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-outline_processing.html" class="md-nav__link">
+ Outline Processing
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-quick_advance.html" title="Quick retrieval of advance values" class="md-nav__link">
- Quick retrieval of advance values
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-quick_advance.html" class="md-nav__link">
+ Quick retrieval of advance values
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-bitmap_handling.html" title="Bitmap Handling" class="md-nav__link">
- Bitmap Handling
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-bitmap_handling.html" class="md-nav__link">
+ Bitmap Handling
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-raster.html" title="Scanline Converter" class="md-nav__link">
- Scanline Converter
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-raster.html" class="md-nav__link">
+ Scanline Converter
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-glyph_stroker.html" class="md-nav__link">
+ Glyph Stroker
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-glyph_stroker.html" title="Glyph Stroker" class="md-nav__link">
- Glyph Stroker
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-system_interface.html" title="System Interface" class="md-nav__link">
- System Interface
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-system_interface.html" class="md-nav__link">
+ System Interface
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-module_management.html" class="md-nav__link">
+ Module Management
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-module_management.html" title="Module Management" class="md-nav__link">
- Module Management
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-gzip.html" title="GZIP Streams" class="md-nav__link">
- GZIP Streams
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-gzip.html" class="md-nav__link">
+ GZIP Streams
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-lzw.html" class="md-nav__link">
+ LZW Streams
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-lzw.html" title="LZW Streams" class="md-nav__link">
- LZW Streams
- </a>
- </li>
-
-
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-bzip2.html" class="md-nav__link">
+ BZIP2 Streams
+ </a>
+ </li>
+
- <li class="md-nav__item">
- <a href="ft2-bzip2.html" title="BZIP2 Streams" class="md-nav__link">
- BZIP2 Streams
- </a>
- </li>
+
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-debugging_apis.html" class="md-nav__link">
+ External Debugging APIs
+ </a>
+ </li>
+
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
@@ -867,65 +926,75 @@
-
-
- <li class="md-nav__item md-nav__item--active md-nav__item--nested">
+
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-9" type="checkbox" id="nav-9" checked>
+
+
- <label class="md-nav__link" for="nav-9">
- Error Codes
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-9">
+ <li class="md-nav__item md-nav__item--active md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_9" type="checkbox" id="__nav_9" checked>
+
+ <label class="md-nav__link" for="__nav_9">
Error Codes
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
-
-
+ <nav class="md-nav" aria-label="Error Codes" data-md-level="1">
+ <label class="md-nav__title" for="__nav_9">
+ <span class="md-nav__icon md-icon"></span>
+ Error Codes
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-error_enumerations.html" class="md-nav__link">
+ Error Enumerations
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-error_enumerations.html" title="Error Enumerations" class="md-nav__link">
- Error Enumerations
- </a>
- </li>
-
-
-
-
-
+
+
-
-
- <li class="md-nav__item md-nav__item--active">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="toc" type="checkbox" id="__toc">
+
+
+ <li class="md-nav__item md-nav__item--active">
-
-
- <label class="md-nav__link md-nav__link--active" for="__toc">
+ <input class="md-nav__toggle md-toggle" data-md-toggle="toc" type="checkbox" id="__toc">
+
+
+
+
+
+ <label class="md-nav__link md-nav__link--active" for="__toc">
+ Error Code Values
+ <span class="md-nav__icon md-icon"></span>
+ </label>
+
+ <a href="ft2-error_code_values.html" class="md-nav__link md-nav__link--active">
Error Code Values
- </label>
-
- <a href="ft2-error_code_values.html" title="Error Code Values" class="md-nav__link md-nav__link--active">
- Error Code Values
- </a>
-
+ </a>
-<nav class="md-nav md-nav--secondary">
+
+<nav class="md-nav md-nav--secondary" aria-label="Table of contents">
+
- <label class="md-nav__title" for="__toc">Table of contents</label>
- <ul class="md-nav__list" data-md-scrollfix>
+ <label class="md-nav__title" for="__toc">
+ <span class="md-nav__icon md-icon"></span>
+ Table of contents
+ </label>
+ <ul class="md-nav__list" data-md-component="toc" data-md-scrollfix>
<li class="md-nav__item">
<a href="#synopsis" class="md-nav__link">
@@ -941,92 +1010,96 @@
</li>
-
-
-
-
</ul>
</nav>
-
- </li>
+
+ </li>
+
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-10" type="checkbox" id="nav-10">
+
+
+
- <label class="md-nav__link" for="nav-10">
- Miscellaneous
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-10">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_10" type="checkbox" id="__nav_10" >
+
+ <label class="md-nav__link" for="__nav_10">
Miscellaneous
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
-
+ <nav class="md-nav" aria-label="Miscellaneous" data-md-level="1">
+ <label class="md-nav__title" for="__nav_10">
+ <span class="md-nav__icon md-icon"></span>
+ Miscellaneous
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
-
-
-
- <li class="md-nav__item">
- <a href="ft2-gx_validation.html" title="TrueTypeGX/AAT Validation" class="md-nav__link">
- TrueTypeGX/AAT Validation
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-gx_validation.html" class="md-nav__link">
+ TrueTypeGX/AAT Validation
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-incremental.html" title="Incremental Loading" class="md-nav__link">
- Incremental Loading
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-incremental.html" class="md-nav__link">
+ Incremental Loading
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-truetype_engine.html" title="The TrueType Engine" class="md-nav__link">
- The TrueType Engine
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-truetype_engine.html" class="md-nav__link">
+ The TrueType Engine
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-ot_validation.html" class="md-nav__link">
+ OpenType Validation
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-ot_validation.html" title="OpenType Validation" class="md-nav__link">
- OpenType Validation
- </a>
- </li>
-
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
</ul>
@@ -1036,18 +1109,23 @@
</div>
- <div class="md-sidebar md-sidebar--secondary" data-md-component="toc">
+
+ <div class="md-sidebar md-sidebar--secondary" data-md-component="sidebar" data-md-type="toc" >
<div class="md-sidebar__scrollwrap">
<div class="md-sidebar__inner">
-<nav class="md-nav md-nav--secondary">
+<nav class="md-nav md-nav--secondary" aria-label="Table of contents">
+
- <label class="md-nav__title" for="__toc">Table of contents</label>
- <ul class="md-nav__list" data-md-scrollfix>
+ <label class="md-nav__title" for="__toc">
+ <span class="md-nav__icon md-icon"></span>
+ Table of contents
+ </label>
+ <ul class="md-nav__list" data-md-component="toc" data-md-scrollfix>
<li class="md-nav__item">
<a href="#synopsis" class="md-nav__link">
@@ -1063,10 +1141,6 @@
</li>
-
-
-
-
</ul>
</nav>
@@ -1075,7 +1149,7 @@
</div>
- <div class="md-content">
+ <div class="md-content" data-md-component="content">
<article class="md-content__inner md-typeset">
@@ -1308,12 +1382,8 @@
FT_ERRORDEF_( Corrupted_Font_Glyphs, 0xBA,
"Font glyphs corrupted or missing fields" )
</code></pre></div>
-
<hr>
-
-
-
@@ -1323,59 +1393,60 @@
</article>
</div>
</div>
+
</main>
<footer class="md-footer">
- <div class="md-footer-nav">
- <nav class="md-footer-nav__inner md-grid">
+ <nav class="md-footer__inner md-grid" aria-label="Footer">
+
- <a href="ft2-error_enumerations.html" title="Error Enumerations" class="md-flex md-footer-nav__link md-footer-nav__link--prev" rel="prev">
- <div class="md-flex__cell md-flex__cell--shrink">
- <i class="md-icon md-icon--arrow-back md-footer-nav__button"></i>
- </div>
- <div class="md-flex__cell md-flex__cell--stretch md-footer-nav__title">
- <span class="md-flex__ellipsis">
- <span class="md-footer-nav__direction">
- Previous
- </span>
- Error Enumerations
+ <a href="ft2-error_enumerations.html" class="md-footer__link md-footer__link--prev" aria-label="Previous: Error Enumerations" rel="prev">
+ <div class="md-footer__button md-icon">
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M20 11v2H8l5.5 5.5-1.42 1.42L4.16 12l7.92-7.92L13.5 5.5 8 11h12z"/></svg>
+ </div>
+ <div class="md-footer__title">
+ <div class="md-ellipsis">
+ <span class="md-footer__direction">
+ Previous
</span>
+ Error Enumerations
</div>
- </a>
-
+ </div>
+ </a>
+
+
- <a href="ft2-gx_validation.html" title="TrueTypeGX/AAT Validation" class="md-flex md-footer-nav__link md-footer-nav__link--next" rel="next">
- <div class="md-flex__cell md-flex__cell--stretch md-footer-nav__title">
- <span class="md-flex__ellipsis">
- <span class="md-footer-nav__direction">
- Next
- </span>
- TrueTypeGX/AAT Validation
+ <a href="ft2-gx_validation.html" class="md-footer__link md-footer__link--next" aria-label="Next: TrueTypeGX/AAT Validation" rel="next">
+ <div class="md-footer__title">
+ <div class="md-ellipsis">
+ <span class="md-footer__direction">
+ Next
</span>
+ TrueTypeGX/AAT Validation
</div>
- <div class="md-flex__cell md-flex__cell--shrink">
- <i class="md-icon md-icon--arrow-forward md-footer-nav__button"></i>
- </div>
- </a>
-
- </nav>
- </div>
+ </div>
+ <div class="md-footer__button md-icon">
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M4 11v2h12l-5.5 5.5 1.42 1.42L19.84 12l-7.92-7.92L10.5 5.5 16 11H4z"/></svg>
+ </div>
+ </a>
+
+ </nav>
<div class="md-footer-meta md-typeset">
<div class="md-footer-meta__inner md-grid">
<div class="md-footer-copyright">
<div class="md-footer-copyright__highlight">
- Copyright 2020 <a href = "https://www.freetype.org/license.html">The FreeType Project</a>.
+ Copyright 2021 <a href = "https://www.freetype.org/license.html">The FreeType Project</a>.
</div>
- powered by
- <a href="https://www.mkdocs.org" target="_blank" rel="noopener">MkDocs</a>
- and
+ Made with
<a href="https://squidfunk.github.io/mkdocs-material/" target="_blank" rel="noopener">
- Material for MkDocs</a>
+ Material for MkDocs
+ </a>
+
</div>
</div>
@@ -1383,10 +1454,13 @@
</footer>
</div>
+ <div class="md-dialog" data-md-component="dialog">
+ <div class="md-dialog__inner md-typeset"></div>
+ </div>
+ <script id="__config" type="application/json">{"base": ".", "features": [], "translations": {"clipboard.copy": "Copy to clipboard", "clipboard.copied": "Copied to clipboard", "search.config.lang": "en", "search.config.pipeline": "trimmer, stopWordFilter", "search.config.separator": "[\\s\\-]+", "search.placeholder": "Search", "search.result.placeholder": "Type to start searching", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.term.missing": "Missing", "select.version.title": "Select version"}, "search": "assets/javascripts/workers/search.477d984a.min.js", "version": null}</script>
- <script src="assets/javascripts/application.c33a9706.js"></script>
-
- <script>app.initialize({version:"1.1",url:{base:"."}})</script>
+
+ <script src="assets/javascripts/bundle.82b56eb2.min.js"></script>
<script src="javascripts/extra.js"></script>
diff --git a/freetype/docs/reference/ft2-error_enumerations.html b/freetype/docs/reference/ft2-error_enumerations.html
index af273620..216f8213 100644
--- a/freetype/docs/reference/ft2-error_enumerations.html
+++ b/freetype/docs/reference/ft2-error_enumerations.html
@@ -1,145 +1,136 @@
-
-
-
<!doctype html>
<html lang="en" class="no-js">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
- <meta http-equiv="x-ua-compatible" content="ie=edge">
- <meta name="description" content="API Reference Documentation for FreeType-2.10.4">
+ <meta name="description" content="API Reference Documentation for FreeType-2.11.1">
<meta name="author" content="FreeType Contributors">
- <meta name="lang:clipboard.copy" content="Copy to clipboard">
-
- <meta name="lang:clipboard.copied" content="Copied to clipboard">
-
- <meta name="lang:search.language" content="en">
-
- <meta name="lang:search.pipeline.stopwords" content="True">
-
- <meta name="lang:search.pipeline.trimmer" content="True">
-
- <meta name="lang:search.result.none" content="No matching documents">
-
- <meta name="lang:search.result.one" content="1 matching document">
-
- <meta name="lang:search.result.other" content="# matching documents">
-
- <meta name="lang:search.tokenizer" content="[\s\-]+">
-
- <link rel="shortcut icon" href="images/favico.ico">
- <meta name="generator" content="mkdocs-1.1, mkdocs-material-4.6.3">
+ <link rel="icon" href="images/favico.ico">
+ <meta name="generator" content="mkdocs-1.2.1, mkdocs-material-7.1.9">
- <title>Error Enumerations - FreeType-2.10.4 API Reference</title>
+ <title>Error Enumerations - FreeType-2.11.1 API Reference</title>
- <link rel="stylesheet" href="assets/stylesheets/application.adb8469c.css">
-
- <link rel="stylesheet" href="assets/stylesheets/application-palette.a8b3c06d.css">
-
+ <link rel="stylesheet" href="assets/stylesheets/main.ca7ac06f.min.css">
+ <link rel="stylesheet" href="assets/stylesheets/palette.f1a3b89f.min.css">
+
+
+
+ <meta name="theme-color" content="#4cae4f">
- <meta name="theme-color" content="#4caf50">
- <script src="assets/javascripts/modernizr.86422ebf.js"></script>
-
- <link href="https://fonts.gstatic.com" rel="preconnect" crossorigin>
+
+ <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Noto+Serif:300,400,400i,700%7CRoboto+Mono&display=fallback">
- <style>body,input{font-family:"Noto Serif","Helvetica Neue",Helvetica,Arial,sans-serif}code,kbd,pre{font-family:"Roboto Mono","Courier New",Courier,monospace}</style>
+ <style>:root{--md-text-font-family:"Noto Serif";--md-code-font-family:"Roboto Mono"}</style>
- <link rel="stylesheet" href="assets/fonts/material-icons.css">
<link rel="stylesheet" href="stylesheets/extra.css">
+
+
</head>
+
+
+
+
- <body dir="ltr" data-md-color-primary="green" data-md-color-accent="green">
+ <body dir="ltr" data-md-color-scheme="" data-md-color-primary="green" data-md-color-accent="green">
- <svg class="md-svg">
- <defs>
-
-
- </defs>
- </svg>
- <input class="md-toggle" data-md-toggle="drawer" type="checkbox" id="__drawer" autocomplete="off">
- <input class="md-toggle" data-md-toggle="search" type="checkbox" id="__search" autocomplete="off">
- <label class="md-overlay" data-md-component="overlay" for="__drawer"></label>
- <a href="#error-enumerations" tabindex="0" class="md-skip">
- Skip to content
- </a>
+ <script>function __prefix(e){return new URL(".",location).pathname+"."+e}function __get(e,t=localStorage){return JSON.parse(t.getItem(__prefix(e)))}</script>
+ <input class="md-toggle" data-md-toggle="drawer" type="checkbox" id="__drawer" autocomplete="off">
+ <input class="md-toggle" data-md-toggle="search" type="checkbox" id="__search" autocomplete="off">
+ <label class="md-overlay" for="__drawer"></label>
+ <div data-md-component="skip">
+
+
+ <a href="#error-enumerations" class="md-skip">
+ Skip to content
+ </a>
+
+ </div>
+ <div data-md-component="announce">
+
+ </div>
<header class="md-header" data-md-component="header">
- <nav class="md-header-nav md-grid">
- <div class="md-flex">
- <div class="md-flex__cell md-flex__cell--shrink">
- <a href="." title="FreeType-2.10.4 API Reference" aria-label="FreeType-2.10.4 API Reference" class="md-header-nav__button md-logo">
-
- <img alt="logo" src="images/favico.ico" width="24" height="24">
-
- </a>
- </div>
- <div class="md-flex__cell md-flex__cell--shrink">
- <label class="md-icon md-icon--menu md-header-nav__button" for="__drawer"></label>
- </div>
- <div class="md-flex__cell md-flex__cell--stretch">
- <div class="md-flex__ellipsis md-header-nav__title" data-md-component="title">
-
- <span class="md-header-nav__topic">
- FreeType-2.10.4 API Reference
- </span>
- <span class="md-header-nav__topic">
-
- Error Enumerations
-
- </span>
-
+ <nav class="md-header__inner md-grid" aria-label="Header">
+ <a href="index.html" title="FreeType-2.11.1 API Reference" class="md-header__button md-logo" aria-label="FreeType-2.11.1 API Reference" data-md-component="logo">
+
+ <img src="images/favico.ico" alt="logo">
+
+ </a>
+ <label class="md-header__button md-icon" for="__drawer">
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M3 6h18v2H3V6m0 5h18v2H3v-2m0 5h18v2H3v-2z"/></svg>
+ </label>
+ <div class="md-header__title" data-md-component="header-title">
+ <div class="md-header__ellipsis">
+ <div class="md-header__topic">
+ <span class="md-ellipsis">
+ FreeType-2.11.1 API Reference
+ </span>
+ </div>
+ <div class="md-header__topic" data-md-component="header-topic">
+ <span class="md-ellipsis">
+
+ Error Enumerations
+
+ </span>
</div>
</div>
- <div class="md-flex__cell md-flex__cell--shrink">
-
- <label class="md-icon md-icon--search md-header-nav__button" for="__search"></label>
-
+ </div>
+
+
+
+ <label class="md-header__button md-icon" for="__search">
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M9.5 3A6.5 6.5 0 0 1 16 9.5c0 1.61-.59 3.09-1.56 4.23l.27.27h.79l5 5-1.5 1.5-5-5v-.79l-.27-.27A6.516 6.516 0 0 1 9.5 16 6.5 6.5 0 0 1 3 9.5 6.5 6.5 0 0 1 9.5 3m0 2C7 5 5 7 5 9.5S7 14 9.5 14 14 12 14 9.5 12 5 9.5 5z"/></svg>
+ </label>
+
<div class="md-search" data-md-component="search" role="dialog">
<label class="md-search__overlay" for="__search"></label>
<div class="md-search__inner" role="search">
<form class="md-search__form" name="search">
- <input type="text" class="md-search__input" aria-label="search" name="query" placeholder="Search" autocapitalize="off" autocorrect="off" autocomplete="off" spellcheck="false" data-md-component="query" data-md-state="active">
- <label class="md-icon md-search__icon" for="__search"></label>
- <button type="reset" class="md-icon md-search__icon" data-md-component="reset" tabindex="-1">
- &#xE5CD;
+ <input type="text" class="md-search__input" name="query" aria-label="Search" placeholder="Search" autocapitalize="off" autocorrect="off" autocomplete="off" spellcheck="false" data-md-component="search-query" data-md-state="active" required>
+ <label class="md-search__icon md-icon" for="__search">
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M9.5 3A6.5 6.5 0 0 1 16 9.5c0 1.61-.59 3.09-1.56 4.23l.27.27h.79l5 5-1.5 1.5-5-5v-.79l-.27-.27A6.516 6.516 0 0 1 9.5 16 6.5 6.5 0 0 1 3 9.5 6.5 6.5 0 0 1 9.5 3m0 2C7 5 5 7 5 9.5S7 14 9.5 14 14 12 14 9.5 12 5 9.5 5z"/></svg>
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M20 11v2H8l5.5 5.5-1.42 1.42L4.16 12l7.92-7.92L13.5 5.5 8 11h12z"/></svg>
+ </label>
+ <button type="reset" class="md-search__icon md-icon" aria-label="Clear" tabindex="-1">
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z"/></svg>
</button>
</form>
<div class="md-search__output">
<div class="md-search__scrollwrap" data-md-scrollfix>
- <div class="md-search-result" data-md-component="result">
+ <div class="md-search-result" data-md-component="search-result">
<div class="md-search-result__meta">
- Type to start searching
+ Initializing search
</div>
<ol class="md-search-result__list"></ol>
</div>
@@ -147,33 +138,35 @@
</div>
</div>
</div>
-
- </div>
-
- </div>
+
+
</nav>
</header>
- <div class="md-container">
+ <div class="md-container" data-md-component="container">
-
+
- <main class="md-main" role="main">
- <div class="md-main__inner md-grid" data-md-component="container">
+ <main class="md-main" data-md-component="main">
+ <div class="md-main__inner md-grid">
- <div class="md-sidebar md-sidebar--primary" data-md-component="navigation">
+
+ <div class="md-sidebar md-sidebar--primary" data-md-component="sidebar" data-md-type="navigation" >
<div class="md-sidebar__scrollwrap">
<div class="md-sidebar__inner">
- <nav class="md-nav md-nav--primary" data-md-level="0">
- <label class="md-nav__title md-nav__title--site" for="__drawer">
- <a href="." title="FreeType-2.10.4 API Reference" class="md-nav__button md-logo">
-
- <img alt="logo" src="images/favico.ico" width="48" height="48">
+
+
+
+<nav class="md-nav md-nav--primary" aria-label="Navigation" data-md-level="0">
+ <label class="md-nav__title" for="__drawer">
+ <a href="index.html" title="FreeType-2.11.1 API Reference" class="md-nav__button md-logo" aria-label="FreeType-2.11.1 API Reference" data-md-component="logo">
+ <img src="images/favico.ico" alt="logo">
+
</a>
- FreeType-2.10.4 API Reference
+ FreeType-2.11.1 API Reference
</label>
<ul class="md-nav__list" data-md-scrollfix>
@@ -182,684 +175,750 @@
-
- <li class="md-nav__item">
- <a href="index.html" title="TOC" class="md-nav__link">
- TOC
- </a>
- </li>
+
+
+
+ <li class="md-nav__item">
+ <a href="index.html" class="md-nav__link">
+ TOC
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-index.html" title="Index" class="md-nav__link">
- Index
- </a>
- </li>
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-index.html" class="md-nav__link">
+ Index
+ </a>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-3" type="checkbox" id="nav-3">
+
+
+
- <label class="md-nav__link" for="nav-3">
- General Remarks
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-3">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_3" type="checkbox" id="__nav_3" >
+
+ <label class="md-nav__link" for="__nav_3">
General Remarks
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
-
+ <nav class="md-nav" aria-label="General Remarks" data-md-level="1">
+ <label class="md-nav__title" for="__nav_3">
+ <span class="md-nav__icon md-icon"></span>
+ General Remarks
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
-
-
-
- <li class="md-nav__item">
- <a href="ft2-header_inclusion.html" title="FreeType's header inclusion scheme" class="md-nav__link">
- FreeType's header inclusion scheme
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-preamble.html" class="md-nav__link">
+ Preamble
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-header_inclusion.html" class="md-nav__link">
+ FreeType's header inclusion scheme
+ </a>
+ </li>
+
+
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-user_allocation.html" class="md-nav__link">
+ User allocation
+ </a>
+ </li>
+
- <li class="md-nav__item">
- <a href="ft2-user_allocation.html" title="User allocation" class="md-nav__link">
- User allocation
- </a>
- </li>
-
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-4" type="checkbox" id="nav-4">
+
+
+
- <label class="md-nav__link" for="nav-4">
- Core API
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-4">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_4" type="checkbox" id="__nav_4" >
+
+ <label class="md-nav__link" for="__nav_4">
Core API
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
-
+ <nav class="md-nav" aria-label="Core API" data-md-level="1">
+ <label class="md-nav__title" for="__nav_4">
+ <span class="md-nav__icon md-icon"></span>
+ Core API
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
-
-
-
- <li class="md-nav__item">
- <a href="ft2-version.html" title="FreeType Version" class="md-nav__link">
- FreeType Version
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-version.html" class="md-nav__link">
+ FreeType Version
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-basic_types.html" class="md-nav__link">
+ Basic Data Types
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-basic_types.html" title="Basic Data Types" class="md-nav__link">
- Basic Data Types
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-base_interface.html" title="Base Interface" class="md-nav__link">
- Base Interface
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-base_interface.html" class="md-nav__link">
+ Base Interface
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-glyph_variants.html" class="md-nav__link">
+ Unicode Variation Sequences
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-glyph_variants.html" title="Unicode Variation Sequences" class="md-nav__link">
- Unicode Variation Sequences
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-color_management.html" title="Glyph Color Management" class="md-nav__link">
- Glyph Color Management
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-color_management.html" class="md-nav__link">
+ Glyph Color Management
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-layer_management.html" class="md-nav__link">
+ Glyph Layer Management
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-layer_management.html" title="Glyph Layer Management" class="md-nav__link">
- Glyph Layer Management
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-glyph_management.html" title="Glyph Management" class="md-nav__link">
- Glyph Management
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-glyph_management.html" class="md-nav__link">
+ Glyph Management
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-mac_specific.html" title="Mac Specific Interface" class="md-nav__link">
- Mac Specific Interface
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-mac_specific.html" class="md-nav__link">
+ Mac Specific Interface
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-sizes_management.html" title="Size Management" class="md-nav__link">
- Size Management
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-sizes_management.html" class="md-nav__link">
+ Size Management
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-header_file_macros.html" class="md-nav__link">
+ Header File Macros
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-header_file_macros.html" title="Header File Macros" class="md-nav__link">
- Header File Macros
- </a>
- </li>
-
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-5" type="checkbox" id="nav-5">
+
+
+
- <label class="md-nav__link" for="nav-5">
- Format-Specific API
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-5">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_5" type="checkbox" id="__nav_5" >
+
+ <label class="md-nav__link" for="__nav_5">
Format-Specific API
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
-
-
+ <nav class="md-nav" aria-label="Format-Specific API" data-md-level="1">
+ <label class="md-nav__title" for="__nav_5">
+ <span class="md-nav__icon md-icon"></span>
+ Format-Specific API
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-multiple_masters.html" class="md-nav__link">
+ Multiple Masters
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-multiple_masters.html" title="Multiple Masters" class="md-nav__link">
- Multiple Masters
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-truetype_tables.html" title="TrueType Tables" class="md-nav__link">
- TrueType Tables
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-truetype_tables.html" class="md-nav__link">
+ TrueType Tables
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-type1_tables.html" class="md-nav__link">
+ Type 1 Tables
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-type1_tables.html" title="Type 1 Tables" class="md-nav__link">
- Type 1 Tables
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-sfnt_names.html" title="SFNT Names" class="md-nav__link">
- SFNT Names
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-sfnt_names.html" class="md-nav__link">
+ SFNT Names
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-bdf_fonts.html" class="md-nav__link">
+ BDF and PCF Files
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-bdf_fonts.html" title="BDF and PCF Files" class="md-nav__link">
- BDF and PCF Files
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-cid_fonts.html" title="CID Fonts" class="md-nav__link">
- CID Fonts
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-cid_fonts.html" class="md-nav__link">
+ CID Fonts
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-pfr_fonts.html" class="md-nav__link">
+ PFR Fonts
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-pfr_fonts.html" title="PFR Fonts" class="md-nav__link">
- PFR Fonts
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-winfnt_fonts.html" title="Window FNT Files" class="md-nav__link">
- Window FNT Files
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-winfnt_fonts.html" class="md-nav__link">
+ Window FNT Files
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-font_formats.html" class="md-nav__link">
+ Font Formats
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-font_formats.html" title="Font Formats" class="md-nav__link">
- Font Formats
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-gasp_table.html" title="Gasp Table" class="md-nav__link">
- Gasp Table
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-gasp_table.html" class="md-nav__link">
+ Gasp Table
+ </a>
+ </li>
+
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-6" type="checkbox" id="nav-6">
+
+
+
- <label class="md-nav__link" for="nav-6">
- Controlling FreeType Modules
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-6">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_6" type="checkbox" id="__nav_6" >
+
+ <label class="md-nav__link" for="__nav_6">
Controlling FreeType Modules
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
+ <nav class="md-nav" aria-label="Controlling FreeType Modules" data-md-level="1">
+ <label class="md-nav__title" for="__nav_6">
+ <span class="md-nav__icon md-icon"></span>
+ Controlling FreeType Modules
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-auto_hinter.html" title="The auto-hinter" class="md-nav__link">
- The auto-hinter
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-auto_hinter.html" class="md-nav__link">
+ The auto-hinter
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-cff_driver.html" class="md-nav__link">
+ The CFF driver
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-cff_driver.html" title="The CFF driver" class="md-nav__link">
- The CFF driver
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-t1_cid_driver.html" title="The Type 1 and CID drivers" class="md-nav__link">
- The Type 1 and CID drivers
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-t1_cid_driver.html" class="md-nav__link">
+ The Type 1 and CID drivers
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-tt_driver.html" class="md-nav__link">
+ The TrueType driver
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-tt_driver.html" title="The TrueType driver" class="md-nav__link">
- The TrueType driver
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-pcf_driver.html" title="The PCF driver" class="md-nav__link">
- The PCF driver
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-pcf_driver.html" class="md-nav__link">
+ The PCF driver
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-properties.html" class="md-nav__link">
+ Driver properties
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-properties.html" title="Driver properties" class="md-nav__link">
- Driver properties
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-parameter_tags.html" title="Parameter Tags" class="md-nav__link">
- Parameter Tags
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-parameter_tags.html" class="md-nav__link">
+ Parameter Tags
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-lcd_rendering.html" class="md-nav__link">
+ Subpixel Rendering
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-lcd_rendering.html" title="Subpixel Rendering" class="md-nav__link">
- Subpixel Rendering
- </a>
- </li>
-
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-7" type="checkbox" id="nav-7">
+
+
+
- <label class="md-nav__link" for="nav-7">
- Cache Sub-System
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-7">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_7" type="checkbox" id="__nav_7" >
+
+ <label class="md-nav__link" for="__nav_7">
Cache Sub-System
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
-
+ <nav class="md-nav" aria-label="Cache Sub-System" data-md-level="1">
+ <label class="md-nav__title" for="__nav_7">
+ <span class="md-nav__icon md-icon"></span>
+ Cache Sub-System
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
-
-
-
- <li class="md-nav__item">
- <a href="ft2-cache_subsystem.html" title="Cache Sub-System" class="md-nav__link">
- Cache Sub-System
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-cache_subsystem.html" class="md-nav__link">
+ Cache Sub-System
+ </a>
+ </li>
+
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-8" type="checkbox" id="nav-8">
+
+
+
- <label class="md-nav__link" for="nav-8">
- Support API
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-8">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_8" type="checkbox" id="__nav_8" >
+
+ <label class="md-nav__link" for="__nav_8">
Support API
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
-
-
+ <nav class="md-nav" aria-label="Support API" data-md-level="1">
+ <label class="md-nav__title" for="__nav_8">
+ <span class="md-nav__icon md-icon"></span>
+ Support API
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-computations.html" class="md-nav__link">
+ Computations
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-computations.html" title="Computations" class="md-nav__link">
- Computations
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-list_processing.html" title="List Processing" class="md-nav__link">
- List Processing
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-list_processing.html" class="md-nav__link">
+ List Processing
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-outline_processing.html" class="md-nav__link">
+ Outline Processing
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-outline_processing.html" title="Outline Processing" class="md-nav__link">
- Outline Processing
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-quick_advance.html" title="Quick retrieval of advance values" class="md-nav__link">
- Quick retrieval of advance values
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-quick_advance.html" class="md-nav__link">
+ Quick retrieval of advance values
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-bitmap_handling.html" class="md-nav__link">
+ Bitmap Handling
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-bitmap_handling.html" title="Bitmap Handling" class="md-nav__link">
- Bitmap Handling
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-raster.html" title="Scanline Converter" class="md-nav__link">
- Scanline Converter
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-raster.html" class="md-nav__link">
+ Scanline Converter
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-glyph_stroker.html" title="Glyph Stroker" class="md-nav__link">
- Glyph Stroker
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-glyph_stroker.html" class="md-nav__link">
+ Glyph Stroker
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-system_interface.html" title="System Interface" class="md-nav__link">
- System Interface
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-system_interface.html" class="md-nav__link">
+ System Interface
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-module_management.html" title="Module Management" class="md-nav__link">
- Module Management
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-module_management.html" class="md-nav__link">
+ Module Management
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-gzip.html" title="GZIP Streams" class="md-nav__link">
- GZIP Streams
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-gzip.html" class="md-nav__link">
+ GZIP Streams
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-lzw.html" title="LZW Streams" class="md-nav__link">
- LZW Streams
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-lzw.html" class="md-nav__link">
+ LZW Streams
+ </a>
+ </li>
+
-
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-bzip2.html" class="md-nav__link">
+ BZIP2 Streams
+ </a>
+ </li>
+
- <li class="md-nav__item">
- <a href="ft2-bzip2.html" title="BZIP2 Streams" class="md-nav__link">
- BZIP2 Streams
- </a>
- </li>
+
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-debugging_apis.html" class="md-nav__link">
+ External Debugging APIs
+ </a>
+ </li>
+
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
@@ -867,53 +926,63 @@
-
-
- <li class="md-nav__item md-nav__item--active md-nav__item--nested">
+
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-9" type="checkbox" id="nav-9" checked>
+
+
- <label class="md-nav__link" for="nav-9">
- Error Codes
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-9">
+ <li class="md-nav__item md-nav__item--active md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_9" type="checkbox" id="__nav_9" checked>
+
+ <label class="md-nav__link" for="__nav_9">
Error Codes
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
-
+ <nav class="md-nav" aria-label="Error Codes" data-md-level="1">
+ <label class="md-nav__title" for="__nav_9">
+ <span class="md-nav__icon md-icon"></span>
+ Error Codes
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
-
-
+
+
-
-
- <li class="md-nav__item md-nav__item--active">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="toc" type="checkbox" id="__toc">
+
+
+ <li class="md-nav__item md-nav__item--active">
-
-
- <label class="md-nav__link md-nav__link--active" for="__toc">
+ <input class="md-nav__toggle md-toggle" data-md-toggle="toc" type="checkbox" id="__toc">
+
+
+
+
+
+ <label class="md-nav__link md-nav__link--active" for="__toc">
+ Error Enumerations
+ <span class="md-nav__icon md-icon"></span>
+ </label>
+
+ <a href="ft2-error_enumerations.html" class="md-nav__link md-nav__link--active">
Error Enumerations
- </label>
-
- <a href="ft2-error_enumerations.html" title="Error Enumerations" class="md-nav__link md-nav__link--active">
- Error Enumerations
- </a>
-
+ </a>
-<nav class="md-nav md-nav--secondary">
+
+<nav class="md-nav md-nav--secondary" aria-label="Table of contents">
+
- <label class="md-nav__title" for="__toc">Table of contents</label>
- <ul class="md-nav__list" data-md-scrollfix>
+ <label class="md-nav__title" for="__toc">
+ <span class="md-nav__icon md-icon"></span>
+ Table of contents
+ </label>
+ <ul class="md-nav__list" data-md-component="toc" data-md-scrollfix>
<li class="md-nav__item">
<a href="#synopsis" class="md-nav__link">
@@ -929,104 +998,108 @@
</li>
-
-
-
-
</ul>
</nav>
-
- </li>
+
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-error_code_values.html" title="Error Code Values" class="md-nav__link">
- Error Code Values
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-error_code_values.html" class="md-nav__link">
+ Error Code Values
+ </a>
+ </li>
+
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-10" type="checkbox" id="nav-10">
+
+
+
- <label class="md-nav__link" for="nav-10">
- Miscellaneous
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-10">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_10" type="checkbox" id="__nav_10" >
+
+ <label class="md-nav__link" for="__nav_10">
Miscellaneous
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
-
+ <nav class="md-nav" aria-label="Miscellaneous" data-md-level="1">
+ <label class="md-nav__title" for="__nav_10">
+ <span class="md-nav__icon md-icon"></span>
+ Miscellaneous
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
-
-
-
- <li class="md-nav__item">
- <a href="ft2-gx_validation.html" title="TrueTypeGX/AAT Validation" class="md-nav__link">
- TrueTypeGX/AAT Validation
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-gx_validation.html" class="md-nav__link">
+ TrueTypeGX/AAT Validation
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-incremental.html" title="Incremental Loading" class="md-nav__link">
- Incremental Loading
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-incremental.html" class="md-nav__link">
+ Incremental Loading
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-truetype_engine.html" title="The TrueType Engine" class="md-nav__link">
- The TrueType Engine
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-truetype_engine.html" class="md-nav__link">
+ The TrueType Engine
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-ot_validation.html" class="md-nav__link">
+ OpenType Validation
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-ot_validation.html" title="OpenType Validation" class="md-nav__link">
- OpenType Validation
- </a>
- </li>
-
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
</ul>
@@ -1036,18 +1109,23 @@
</div>
- <div class="md-sidebar md-sidebar--secondary" data-md-component="toc">
+
+ <div class="md-sidebar md-sidebar--secondary" data-md-component="sidebar" data-md-type="toc" >
<div class="md-sidebar__scrollwrap">
<div class="md-sidebar__inner">
-<nav class="md-nav md-nav--secondary">
+<nav class="md-nav md-nav--secondary" aria-label="Table of contents">
+
- <label class="md-nav__title" for="__toc">Table of contents</label>
- <ul class="md-nav__list" data-md-scrollfix>
+ <label class="md-nav__title" for="__toc">
+ <span class="md-nav__icon md-icon"></span>
+ Table of contents
+ </label>
+ <ul class="md-nav__list" data-md-component="toc" data-md-scrollfix>
<li class="md-nav__item">
<a href="#synopsis" class="md-nav__link">
@@ -1063,10 +1141,6 @@
</li>
-
-
-
-
</ul>
</nav>
@@ -1075,7 +1149,7 @@
</div>
- <div class="md-content">
+ <div class="md-content" data-md-component="content">
<article class="md-content__inner md-typeset">
@@ -1125,23 +1199,10 @@
<p>Defined in FT_ERRORS_H (freetype/fterrors.h).</p>
<div class = "codehilite"><pre><code> FT_EXPORT( <span class="keyword">const</span> <span class="keyword">char</span>* )
<b>FT_Error_String</b>( <a href="ft2-basic_types.html#ft_error">FT_Error</a> error_code );
-
-FT_END_HEADER
-
-
-#<span class="keyword">endif</span> /* FT_ERR_PROTOS_DEFINED */
-
-#<span class="keyword">endif</span> /* FT_INCLUDE_ERR_PROTOS */
-
-#<span class="keyword">endif</span> /* !(FTERRORS_H_ &amp;&amp; __FTERRORS_H__) */
-
-
-/* END */
</code></pre></div>
<p>Retrieve the description of a valid FreeType error code.</p>
<h4>input</h4>
-
<table class="fields">
<tr><td class="val" id="error_code">error_code</td><td class="desc">
<p>A valid FreeType error code.</p>
@@ -1160,9 +1221,6 @@ FT_END_HEADER
</code></pre></div></p>
<hr>
-
-
-
@@ -1172,59 +1230,60 @@ FT_END_HEADER
</article>
</div>
</div>
+
</main>
<footer class="md-footer">
- <div class="md-footer-nav">
- <nav class="md-footer-nav__inner md-grid">
+ <nav class="md-footer__inner md-grid" aria-label="Footer">
+
- <a href="ft2-bzip2.html" title="BZIP2 Streams" class="md-flex md-footer-nav__link md-footer-nav__link--prev" rel="prev">
- <div class="md-flex__cell md-flex__cell--shrink">
- <i class="md-icon md-icon--arrow-back md-footer-nav__button"></i>
- </div>
- <div class="md-flex__cell md-flex__cell--stretch md-footer-nav__title">
- <span class="md-flex__ellipsis">
- <span class="md-footer-nav__direction">
- Previous
- </span>
- BZIP2 Streams
+ <a href="ft2-debugging_apis.html" class="md-footer__link md-footer__link--prev" aria-label="Previous: External Debugging APIs" rel="prev">
+ <div class="md-footer__button md-icon">
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M20 11v2H8l5.5 5.5-1.42 1.42L4.16 12l7.92-7.92L13.5 5.5 8 11h12z"/></svg>
+ </div>
+ <div class="md-footer__title">
+ <div class="md-ellipsis">
+ <span class="md-footer__direction">
+ Previous
</span>
+ External Debugging APIs
</div>
- </a>
-
+ </div>
+ </a>
+
+
- <a href="ft2-error_code_values.html" title="Error Code Values" class="md-flex md-footer-nav__link md-footer-nav__link--next" rel="next">
- <div class="md-flex__cell md-flex__cell--stretch md-footer-nav__title">
- <span class="md-flex__ellipsis">
- <span class="md-footer-nav__direction">
- Next
- </span>
- Error Code Values
+ <a href="ft2-error_code_values.html" class="md-footer__link md-footer__link--next" aria-label="Next: Error Code Values" rel="next">
+ <div class="md-footer__title">
+ <div class="md-ellipsis">
+ <span class="md-footer__direction">
+ Next
</span>
+ Error Code Values
</div>
- <div class="md-flex__cell md-flex__cell--shrink">
- <i class="md-icon md-icon--arrow-forward md-footer-nav__button"></i>
- </div>
- </a>
-
- </nav>
- </div>
+ </div>
+ <div class="md-footer__button md-icon">
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M4 11v2h12l-5.5 5.5 1.42 1.42L19.84 12l-7.92-7.92L10.5 5.5 16 11H4z"/></svg>
+ </div>
+ </a>
+
+ </nav>
<div class="md-footer-meta md-typeset">
<div class="md-footer-meta__inner md-grid">
<div class="md-footer-copyright">
<div class="md-footer-copyright__highlight">
- Copyright 2020 <a href = "https://www.freetype.org/license.html">The FreeType Project</a>.
+ Copyright 2021 <a href = "https://www.freetype.org/license.html">The FreeType Project</a>.
</div>
- powered by
- <a href="https://www.mkdocs.org" target="_blank" rel="noopener">MkDocs</a>
- and
+ Made with
<a href="https://squidfunk.github.io/mkdocs-material/" target="_blank" rel="noopener">
- Material for MkDocs</a>
+ Material for MkDocs
+ </a>
+
</div>
</div>
@@ -1232,10 +1291,13 @@ FT_END_HEADER
</footer>
</div>
+ <div class="md-dialog" data-md-component="dialog">
+ <div class="md-dialog__inner md-typeset"></div>
+ </div>
+ <script id="__config" type="application/json">{"base": ".", "features": [], "translations": {"clipboard.copy": "Copy to clipboard", "clipboard.copied": "Copied to clipboard", "search.config.lang": "en", "search.config.pipeline": "trimmer, stopWordFilter", "search.config.separator": "[\\s\\-]+", "search.placeholder": "Search", "search.result.placeholder": "Type to start searching", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.term.missing": "Missing", "select.version.title": "Select version"}, "search": "assets/javascripts/workers/search.477d984a.min.js", "version": null}</script>
- <script src="assets/javascripts/application.c33a9706.js"></script>
-
- <script>app.initialize({version:"1.1",url:{base:"."}})</script>
+
+ <script src="assets/javascripts/bundle.82b56eb2.min.js"></script>
<script src="javascripts/extra.js"></script>
diff --git a/freetype/docs/reference/ft2-font_formats.html b/freetype/docs/reference/ft2-font_formats.html
index 537e9548..76a75c36 100644
--- a/freetype/docs/reference/ft2-font_formats.html
+++ b/freetype/docs/reference/ft2-font_formats.html
@@ -1,145 +1,136 @@
-
-
-
<!doctype html>
<html lang="en" class="no-js">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
- <meta http-equiv="x-ua-compatible" content="ie=edge">
- <meta name="description" content="API Reference Documentation for FreeType-2.10.4">
+ <meta name="description" content="API Reference Documentation for FreeType-2.11.1">
<meta name="author" content="FreeType Contributors">
- <meta name="lang:clipboard.copy" content="Copy to clipboard">
-
- <meta name="lang:clipboard.copied" content="Copied to clipboard">
-
- <meta name="lang:search.language" content="en">
-
- <meta name="lang:search.pipeline.stopwords" content="True">
-
- <meta name="lang:search.pipeline.trimmer" content="True">
-
- <meta name="lang:search.result.none" content="No matching documents">
-
- <meta name="lang:search.result.one" content="1 matching document">
-
- <meta name="lang:search.result.other" content="# matching documents">
-
- <meta name="lang:search.tokenizer" content="[\s\-]+">
-
- <link rel="shortcut icon" href="images/favico.ico">
- <meta name="generator" content="mkdocs-1.1, mkdocs-material-4.6.3">
+ <link rel="icon" href="images/favico.ico">
+ <meta name="generator" content="mkdocs-1.2.1, mkdocs-material-7.1.9">
- <title>Font Formats - FreeType-2.10.4 API Reference</title>
+ <title>Font Formats - FreeType-2.11.1 API Reference</title>
- <link rel="stylesheet" href="assets/stylesheets/application.adb8469c.css">
-
- <link rel="stylesheet" href="assets/stylesheets/application-palette.a8b3c06d.css">
-
+ <link rel="stylesheet" href="assets/stylesheets/main.ca7ac06f.min.css">
+ <link rel="stylesheet" href="assets/stylesheets/palette.f1a3b89f.min.css">
+
+
+
+ <meta name="theme-color" content="#4cae4f">
- <meta name="theme-color" content="#4caf50">
- <script src="assets/javascripts/modernizr.86422ebf.js"></script>
-
- <link href="https://fonts.gstatic.com" rel="preconnect" crossorigin>
+
+ <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Noto+Serif:300,400,400i,700%7CRoboto+Mono&display=fallback">
- <style>body,input{font-family:"Noto Serif","Helvetica Neue",Helvetica,Arial,sans-serif}code,kbd,pre{font-family:"Roboto Mono","Courier New",Courier,monospace}</style>
+ <style>:root{--md-text-font-family:"Noto Serif";--md-code-font-family:"Roboto Mono"}</style>
- <link rel="stylesheet" href="assets/fonts/material-icons.css">
<link rel="stylesheet" href="stylesheets/extra.css">
+
+
</head>
+
+
+
+
- <body dir="ltr" data-md-color-primary="green" data-md-color-accent="green">
+ <body dir="ltr" data-md-color-scheme="" data-md-color-primary="green" data-md-color-accent="green">
- <svg class="md-svg">
- <defs>
-
-
- </defs>
- </svg>
- <input class="md-toggle" data-md-toggle="drawer" type="checkbox" id="__drawer" autocomplete="off">
- <input class="md-toggle" data-md-toggle="search" type="checkbox" id="__search" autocomplete="off">
- <label class="md-overlay" data-md-component="overlay" for="__drawer"></label>
- <a href="#font-formats" tabindex="0" class="md-skip">
- Skip to content
- </a>
+ <script>function __prefix(e){return new URL(".",location).pathname+"."+e}function __get(e,t=localStorage){return JSON.parse(t.getItem(__prefix(e)))}</script>
+ <input class="md-toggle" data-md-toggle="drawer" type="checkbox" id="__drawer" autocomplete="off">
+ <input class="md-toggle" data-md-toggle="search" type="checkbox" id="__search" autocomplete="off">
+ <label class="md-overlay" for="__drawer"></label>
+ <div data-md-component="skip">
+
+
+ <a href="#font-formats" class="md-skip">
+ Skip to content
+ </a>
+
+ </div>
+ <div data-md-component="announce">
+
+ </div>
<header class="md-header" data-md-component="header">
- <nav class="md-header-nav md-grid">
- <div class="md-flex">
- <div class="md-flex__cell md-flex__cell--shrink">
- <a href="." title="FreeType-2.10.4 API Reference" aria-label="FreeType-2.10.4 API Reference" class="md-header-nav__button md-logo">
-
- <img alt="logo" src="images/favico.ico" width="24" height="24">
-
- </a>
- </div>
- <div class="md-flex__cell md-flex__cell--shrink">
- <label class="md-icon md-icon--menu md-header-nav__button" for="__drawer"></label>
- </div>
- <div class="md-flex__cell md-flex__cell--stretch">
- <div class="md-flex__ellipsis md-header-nav__title" data-md-component="title">
-
- <span class="md-header-nav__topic">
- FreeType-2.10.4 API Reference
- </span>
- <span class="md-header-nav__topic">
-
- Font Formats
-
- </span>
-
+ <nav class="md-header__inner md-grid" aria-label="Header">
+ <a href="index.html" title="FreeType-2.11.1 API Reference" class="md-header__button md-logo" aria-label="FreeType-2.11.1 API Reference" data-md-component="logo">
+
+ <img src="images/favico.ico" alt="logo">
+
+ </a>
+ <label class="md-header__button md-icon" for="__drawer">
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M3 6h18v2H3V6m0 5h18v2H3v-2m0 5h18v2H3v-2z"/></svg>
+ </label>
+ <div class="md-header__title" data-md-component="header-title">
+ <div class="md-header__ellipsis">
+ <div class="md-header__topic">
+ <span class="md-ellipsis">
+ FreeType-2.11.1 API Reference
+ </span>
+ </div>
+ <div class="md-header__topic" data-md-component="header-topic">
+ <span class="md-ellipsis">
+
+ Font Formats
+
+ </span>
</div>
</div>
- <div class="md-flex__cell md-flex__cell--shrink">
-
- <label class="md-icon md-icon--search md-header-nav__button" for="__search"></label>
-
+ </div>
+
+
+
+ <label class="md-header__button md-icon" for="__search">
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M9.5 3A6.5 6.5 0 0 1 16 9.5c0 1.61-.59 3.09-1.56 4.23l.27.27h.79l5 5-1.5 1.5-5-5v-.79l-.27-.27A6.516 6.516 0 0 1 9.5 16 6.5 6.5 0 0 1 3 9.5 6.5 6.5 0 0 1 9.5 3m0 2C7 5 5 7 5 9.5S7 14 9.5 14 14 12 14 9.5 12 5 9.5 5z"/></svg>
+ </label>
+
<div class="md-search" data-md-component="search" role="dialog">
<label class="md-search__overlay" for="__search"></label>
<div class="md-search__inner" role="search">
<form class="md-search__form" name="search">
- <input type="text" class="md-search__input" aria-label="search" name="query" placeholder="Search" autocapitalize="off" autocorrect="off" autocomplete="off" spellcheck="false" data-md-component="query" data-md-state="active">
- <label class="md-icon md-search__icon" for="__search"></label>
- <button type="reset" class="md-icon md-search__icon" data-md-component="reset" tabindex="-1">
- &#xE5CD;
+ <input type="text" class="md-search__input" name="query" aria-label="Search" placeholder="Search" autocapitalize="off" autocorrect="off" autocomplete="off" spellcheck="false" data-md-component="search-query" data-md-state="active" required>
+ <label class="md-search__icon md-icon" for="__search">
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M9.5 3A6.5 6.5 0 0 1 16 9.5c0 1.61-.59 3.09-1.56 4.23l.27.27h.79l5 5-1.5 1.5-5-5v-.79l-.27-.27A6.516 6.516 0 0 1 9.5 16 6.5 6.5 0 0 1 3 9.5 6.5 6.5 0 0 1 9.5 3m0 2C7 5 5 7 5 9.5S7 14 9.5 14 14 12 14 9.5 12 5 9.5 5z"/></svg>
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M20 11v2H8l5.5 5.5-1.42 1.42L4.16 12l7.92-7.92L13.5 5.5 8 11h12z"/></svg>
+ </label>
+ <button type="reset" class="md-search__icon md-icon" aria-label="Clear" tabindex="-1">
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z"/></svg>
</button>
</form>
<div class="md-search__output">
<div class="md-search__scrollwrap" data-md-scrollfix>
- <div class="md-search-result" data-md-component="result">
+ <div class="md-search-result" data-md-component="search-result">
<div class="md-search-result__meta">
- Type to start searching
+ Initializing search
</div>
<ol class="md-search-result__list"></ol>
</div>
@@ -147,33 +138,35 @@
</div>
</div>
</div>
-
- </div>
-
- </div>
+
+
</nav>
</header>
- <div class="md-container">
+ <div class="md-container" data-md-component="container">
-
+
- <main class="md-main" role="main">
- <div class="md-main__inner md-grid" data-md-component="container">
+ <main class="md-main" data-md-component="main">
+ <div class="md-main__inner md-grid">
- <div class="md-sidebar md-sidebar--primary" data-md-component="navigation">
+
+ <div class="md-sidebar md-sidebar--primary" data-md-component="sidebar" data-md-type="navigation" >
<div class="md-sidebar__scrollwrap">
<div class="md-sidebar__inner">
- <nav class="md-nav md-nav--primary" data-md-level="0">
- <label class="md-nav__title md-nav__title--site" for="__drawer">
- <a href="." title="FreeType-2.10.4 API Reference" class="md-nav__button md-logo">
-
- <img alt="logo" src="images/favico.ico" width="48" height="48">
+
+
+
+<nav class="md-nav md-nav--primary" aria-label="Navigation" data-md-level="0">
+ <label class="md-nav__title" for="__drawer">
+ <a href="index.html" title="FreeType-2.11.1 API Reference" class="md-nav__button md-logo" aria-label="FreeType-2.11.1 API Reference" data-md-component="logo">
+ <img src="images/favico.ico" alt="logo">
+
</a>
- FreeType-2.10.4 API Reference
+ FreeType-2.11.1 API Reference
</label>
<ul class="md-nav__list" data-md-scrollfix>
@@ -182,216 +175,246 @@
-
- <li class="md-nav__item">
- <a href="index.html" title="TOC" class="md-nav__link">
- TOC
- </a>
- </li>
+
+
+
+ <li class="md-nav__item">
+ <a href="index.html" class="md-nav__link">
+ TOC
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-index.html" title="Index" class="md-nav__link">
- Index
- </a>
- </li>
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-index.html" class="md-nav__link">
+ Index
+ </a>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-3" type="checkbox" id="nav-3">
+
+
+
- <label class="md-nav__link" for="nav-3">
- General Remarks
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-3">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_3" type="checkbox" id="__nav_3" >
+
+ <label class="md-nav__link" for="__nav_3">
General Remarks
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
+ <nav class="md-nav" aria-label="General Remarks" data-md-level="1">
+ <label class="md-nav__title" for="__nav_3">
+ <span class="md-nav__icon md-icon"></span>
+ General Remarks
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-header_inclusion.html" title="FreeType's header inclusion scheme" class="md-nav__link">
- FreeType's header inclusion scheme
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-preamble.html" class="md-nav__link">
+ Preamble
+ </a>
+ </li>
+
-
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-header_inclusion.html" class="md-nav__link">
+ FreeType's header inclusion scheme
+ </a>
+ </li>
+
- <li class="md-nav__item">
- <a href="ft2-user_allocation.html" title="User allocation" class="md-nav__link">
- User allocation
- </a>
- </li>
+
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-user_allocation.html" class="md-nav__link">
+ User allocation
+ </a>
+ </li>
+
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-4" type="checkbox" id="nav-4">
+
+
+
- <label class="md-nav__link" for="nav-4">
- Core API
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-4">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_4" type="checkbox" id="__nav_4" >
+
+ <label class="md-nav__link" for="__nav_4">
Core API
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
+ <nav class="md-nav" aria-label="Core API" data-md-level="1">
+ <label class="md-nav__title" for="__nav_4">
+ <span class="md-nav__icon md-icon"></span>
+ Core API
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-version.html" title="FreeType Version" class="md-nav__link">
- FreeType Version
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-version.html" class="md-nav__link">
+ FreeType Version
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-basic_types.html" title="Basic Data Types" class="md-nav__link">
- Basic Data Types
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-basic_types.html" class="md-nav__link">
+ Basic Data Types
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-base_interface.html" title="Base Interface" class="md-nav__link">
- Base Interface
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-base_interface.html" class="md-nav__link">
+ Base Interface
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-glyph_variants.html" title="Unicode Variation Sequences" class="md-nav__link">
- Unicode Variation Sequences
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-glyph_variants.html" class="md-nav__link">
+ Unicode Variation Sequences
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-color_management.html" class="md-nav__link">
+ Glyph Color Management
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-color_management.html" title="Glyph Color Management" class="md-nav__link">
- Glyph Color Management
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-layer_management.html" title="Glyph Layer Management" class="md-nav__link">
- Glyph Layer Management
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-layer_management.html" class="md-nav__link">
+ Glyph Layer Management
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-glyph_management.html" class="md-nav__link">
+ Glyph Management
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-glyph_management.html" title="Glyph Management" class="md-nav__link">
- Glyph Management
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-mac_specific.html" title="Mac Specific Interface" class="md-nav__link">
- Mac Specific Interface
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-mac_specific.html" class="md-nav__link">
+ Mac Specific Interface
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-sizes_management.html" class="md-nav__link">
+ Size Management
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-sizes_management.html" title="Size Management" class="md-nav__link">
- Size Management
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-header_file_macros.html" title="Header File Macros" class="md-nav__link">
- Header File Macros
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-header_file_macros.html" class="md-nav__link">
+ Header File Macros
+ </a>
+ </li>
+
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
@@ -399,149 +422,159 @@
-
-
- <li class="md-nav__item md-nav__item--active md-nav__item--nested">
+
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-5" type="checkbox" id="nav-5" checked>
+
+
- <label class="md-nav__link" for="nav-5">
- Format-Specific API
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-5">
+ <li class="md-nav__item md-nav__item--active md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_5" type="checkbox" id="__nav_5" checked>
+
+ <label class="md-nav__link" for="__nav_5">
Format-Specific API
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
-
+ <nav class="md-nav" aria-label="Format-Specific API" data-md-level="1">
+ <label class="md-nav__title" for="__nav_5">
+ <span class="md-nav__icon md-icon"></span>
+ Format-Specific API
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
-
-
-
- <li class="md-nav__item">
- <a href="ft2-multiple_masters.html" title="Multiple Masters" class="md-nav__link">
- Multiple Masters
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-multiple_masters.html" class="md-nav__link">
+ Multiple Masters
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-truetype_tables.html" class="md-nav__link">
+ TrueType Tables
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-truetype_tables.html" title="TrueType Tables" class="md-nav__link">
- TrueType Tables
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-type1_tables.html" title="Type 1 Tables" class="md-nav__link">
- Type 1 Tables
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-type1_tables.html" class="md-nav__link">
+ Type 1 Tables
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-sfnt_names.html" class="md-nav__link">
+ SFNT Names
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-sfnt_names.html" title="SFNT Names" class="md-nav__link">
- SFNT Names
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-bdf_fonts.html" title="BDF and PCF Files" class="md-nav__link">
- BDF and PCF Files
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-bdf_fonts.html" class="md-nav__link">
+ BDF and PCF Files
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-cid_fonts.html" class="md-nav__link">
+ CID Fonts
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-cid_fonts.html" title="CID Fonts" class="md-nav__link">
- CID Fonts
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-pfr_fonts.html" title="PFR Fonts" class="md-nav__link">
- PFR Fonts
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-pfr_fonts.html" class="md-nav__link">
+ PFR Fonts
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-winfnt_fonts.html" title="Window FNT Files" class="md-nav__link">
- Window FNT Files
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-winfnt_fonts.html" class="md-nav__link">
+ Window FNT Files
+ </a>
+ </li>
+
-
-
-
-
+
+
-
-
- <li class="md-nav__item md-nav__item--active">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="toc" type="checkbox" id="__toc">
+
+
+ <li class="md-nav__item md-nav__item--active">
-
-
- <label class="md-nav__link md-nav__link--active" for="__toc">
+ <input class="md-nav__toggle md-toggle" data-md-toggle="toc" type="checkbox" id="__toc">
+
+
+
+
+
+ <label class="md-nav__link md-nav__link--active" for="__toc">
+ Font Formats
+ <span class="md-nav__icon md-icon"></span>
+ </label>
+
+ <a href="ft2-font_formats.html" class="md-nav__link md-nav__link--active">
Font Formats
- </label>
-
- <a href="ft2-font_formats.html" title="Font Formats" class="md-nav__link md-nav__link--active">
- Font Formats
- </a>
-
+ </a>
-<nav class="md-nav md-nav--secondary">
+
+<nav class="md-nav md-nav--secondary" aria-label="Table of contents">
+
- <label class="md-nav__title" for="__toc">Table of contents</label>
- <ul class="md-nav__list" data-md-scrollfix>
+ <label class="md-nav__title" for="__toc">
+ <span class="md-nav__icon md-icon"></span>
+ Table of contents
+ </label>
+ <ul class="md-nav__list" data-md-component="toc" data-md-scrollfix>
<li class="md-nav__item">
<a href="#synopsis" class="md-nav__link">
@@ -557,476 +590,516 @@
</li>
-
-
-
-
</ul>
</nav>
-
- </li>
+
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-gasp_table.html" class="md-nav__link">
+ Gasp Table
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-gasp_table.html" title="Gasp Table" class="md-nav__link">
- Gasp Table
- </a>
- </li>
-
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-6" type="checkbox" id="nav-6">
+
+
+
- <label class="md-nav__link" for="nav-6">
- Controlling FreeType Modules
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-6">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_6" type="checkbox" id="__nav_6" >
+
+ <label class="md-nav__link" for="__nav_6">
Controlling FreeType Modules
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
-
-
+ <nav class="md-nav" aria-label="Controlling FreeType Modules" data-md-level="1">
+ <label class="md-nav__title" for="__nav_6">
+ <span class="md-nav__icon md-icon"></span>
+ Controlling FreeType Modules
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-auto_hinter.html" class="md-nav__link">
+ The auto-hinter
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-auto_hinter.html" title="The auto-hinter" class="md-nav__link">
- The auto-hinter
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-cff_driver.html" title="The CFF driver" class="md-nav__link">
- The CFF driver
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-cff_driver.html" class="md-nav__link">
+ The CFF driver
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-t1_cid_driver.html" title="The Type 1 and CID drivers" class="md-nav__link">
- The Type 1 and CID drivers
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-t1_cid_driver.html" class="md-nav__link">
+ The Type 1 and CID drivers
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-tt_driver.html" title="The TrueType driver" class="md-nav__link">
- The TrueType driver
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-tt_driver.html" class="md-nav__link">
+ The TrueType driver
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-pcf_driver.html" class="md-nav__link">
+ The PCF driver
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-pcf_driver.html" title="The PCF driver" class="md-nav__link">
- The PCF driver
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-properties.html" title="Driver properties" class="md-nav__link">
- Driver properties
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-properties.html" class="md-nav__link">
+ Driver properties
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-parameter_tags.html" class="md-nav__link">
+ Parameter Tags
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-parameter_tags.html" title="Parameter Tags" class="md-nav__link">
- Parameter Tags
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-lcd_rendering.html" title="Subpixel Rendering" class="md-nav__link">
- Subpixel Rendering
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-lcd_rendering.html" class="md-nav__link">
+ Subpixel Rendering
+ </a>
+ </li>
+
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-7" type="checkbox" id="nav-7">
+
+
+
- <label class="md-nav__link" for="nav-7">
- Cache Sub-System
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-7">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_7" type="checkbox" id="__nav_7" >
+
+ <label class="md-nav__link" for="__nav_7">
Cache Sub-System
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
+ <nav class="md-nav" aria-label="Cache Sub-System" data-md-level="1">
+ <label class="md-nav__title" for="__nav_7">
+ <span class="md-nav__icon md-icon"></span>
+ Cache Sub-System
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-cache_subsystem.html" title="Cache Sub-System" class="md-nav__link">
- Cache Sub-System
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-cache_subsystem.html" class="md-nav__link">
+ Cache Sub-System
+ </a>
+ </li>
+
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-8" type="checkbox" id="nav-8">
+
+
+
- <label class="md-nav__link" for="nav-8">
- Support API
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-8">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_8" type="checkbox" id="__nav_8" >
+
+ <label class="md-nav__link" for="__nav_8">
Support API
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
-
+ <nav class="md-nav" aria-label="Support API" data-md-level="1">
+ <label class="md-nav__title" for="__nav_8">
+ <span class="md-nav__icon md-icon"></span>
+ Support API
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
-
-
-
- <li class="md-nav__item">
- <a href="ft2-computations.html" title="Computations" class="md-nav__link">
- Computations
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-computations.html" class="md-nav__link">
+ Computations
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-list_processing.html" title="List Processing" class="md-nav__link">
- List Processing
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-list_processing.html" class="md-nav__link">
+ List Processing
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-outline_processing.html" class="md-nav__link">
+ Outline Processing
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-outline_processing.html" title="Outline Processing" class="md-nav__link">
- Outline Processing
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-quick_advance.html" title="Quick retrieval of advance values" class="md-nav__link">
- Quick retrieval of advance values
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-quick_advance.html" class="md-nav__link">
+ Quick retrieval of advance values
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-bitmap_handling.html" class="md-nav__link">
+ Bitmap Handling
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-bitmap_handling.html" title="Bitmap Handling" class="md-nav__link">
- Bitmap Handling
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-raster.html" title="Scanline Converter" class="md-nav__link">
- Scanline Converter
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-raster.html" class="md-nav__link">
+ Scanline Converter
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-glyph_stroker.html" title="Glyph Stroker" class="md-nav__link">
- Glyph Stroker
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-glyph_stroker.html" class="md-nav__link">
+ Glyph Stroker
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-system_interface.html" title="System Interface" class="md-nav__link">
- System Interface
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-system_interface.html" class="md-nav__link">
+ System Interface
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-module_management.html" class="md-nav__link">
+ Module Management
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-module_management.html" title="Module Management" class="md-nav__link">
- Module Management
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-gzip.html" title="GZIP Streams" class="md-nav__link">
- GZIP Streams
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-gzip.html" class="md-nav__link">
+ GZIP Streams
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-lzw.html" class="md-nav__link">
+ LZW Streams
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-lzw.html" title="LZW Streams" class="md-nav__link">
- LZW Streams
- </a>
- </li>
-
-
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-bzip2.html" class="md-nav__link">
+ BZIP2 Streams
+ </a>
+ </li>
+
- <li class="md-nav__item">
- <a href="ft2-bzip2.html" title="BZIP2 Streams" class="md-nav__link">
- BZIP2 Streams
- </a>
- </li>
+
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-debugging_apis.html" class="md-nav__link">
+ External Debugging APIs
+ </a>
+ </li>
+
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-9" type="checkbox" id="nav-9">
+
+
+
- <label class="md-nav__link" for="nav-9">
- Error Codes
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-9">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_9" type="checkbox" id="__nav_9" >
+
+ <label class="md-nav__link" for="__nav_9">
Error Codes
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
-
+ <nav class="md-nav" aria-label="Error Codes" data-md-level="1">
+ <label class="md-nav__title" for="__nav_9">
+ <span class="md-nav__icon md-icon"></span>
+ Error Codes
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
-
-
-
- <li class="md-nav__item">
- <a href="ft2-error_enumerations.html" title="Error Enumerations" class="md-nav__link">
- Error Enumerations
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-error_enumerations.html" class="md-nav__link">
+ Error Enumerations
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-error_code_values.html" class="md-nav__link">
+ Error Code Values
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-error_code_values.html" title="Error Code Values" class="md-nav__link">
- Error Code Values
- </a>
- </li>
-
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-10" type="checkbox" id="nav-10">
+
+
+
- <label class="md-nav__link" for="nav-10">
- Miscellaneous
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-10">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_10" type="checkbox" id="__nav_10" >
+
+ <label class="md-nav__link" for="__nav_10">
Miscellaneous
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
-
-
+ <nav class="md-nav" aria-label="Miscellaneous" data-md-level="1">
+ <label class="md-nav__title" for="__nav_10">
+ <span class="md-nav__icon md-icon"></span>
+ Miscellaneous
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-gx_validation.html" class="md-nav__link">
+ TrueTypeGX/AAT Validation
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-gx_validation.html" title="TrueTypeGX/AAT Validation" class="md-nav__link">
- TrueTypeGX/AAT Validation
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-incremental.html" title="Incremental Loading" class="md-nav__link">
- Incremental Loading
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-incremental.html" class="md-nav__link">
+ Incremental Loading
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-truetype_engine.html" class="md-nav__link">
+ The TrueType Engine
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-truetype_engine.html" title="The TrueType Engine" class="md-nav__link">
- The TrueType Engine
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-ot_validation.html" title="OpenType Validation" class="md-nav__link">
- OpenType Validation
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-ot_validation.html" class="md-nav__link">
+ OpenType Validation
+ </a>
+ </li>
+
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
</ul>
@@ -1036,18 +1109,23 @@
</div>
- <div class="md-sidebar md-sidebar--secondary" data-md-component="toc">
+
+ <div class="md-sidebar md-sidebar--secondary" data-md-component="sidebar" data-md-type="toc" >
<div class="md-sidebar__scrollwrap">
<div class="md-sidebar__inner">
-<nav class="md-nav md-nav--secondary">
+<nav class="md-nav md-nav--secondary" aria-label="Table of contents">
+
- <label class="md-nav__title" for="__toc">Table of contents</label>
- <ul class="md-nav__list" data-md-scrollfix>
+ <label class="md-nav__title" for="__toc">
+ <span class="md-nav__icon md-icon"></span>
+ Table of contents
+ </label>
+ <ul class="md-nav__list" data-md-component="toc" data-md-scrollfix>
<li class="md-nav__item">
<a href="#synopsis" class="md-nav__link">
@@ -1063,10 +1141,6 @@
</li>
-
-
-
-
</ul>
</nav>
@@ -1075,7 +1149,7 @@
</div>
- <div class="md-content">
+ <div class="md-content" data-md-component="content">
<article class="md-content__inner md-typeset">
@@ -1090,6 +1164,7 @@
<div class = "codehilite"><pre><code> FT_EXPORT( <span class="keyword">const</span> <span class="keyword">char</span>* )
<b>FT_Get_Font_Format</b>( <a href="ft2-base_interface.html#ft_face">FT_Face</a> face );
+
/* deprecated */
FT_EXPORT( <span class="keyword">const</span> <span class="keyword">char</span>* )
FT_Get_X11_Font_Format( <a href="ft2-base_interface.html#ft_face">FT_Face</a> face );
@@ -1098,7 +1173,6 @@
<p>Return a string describing the format of a given face. Possible values are &lsquo;TrueType&rsquo;, &lsquo;Type&nbsp;1&rsquo;, &lsquo;BDF&rsquo;, &lsquo;PCF&rsquo;, &lsquo;Type&nbsp;42&rsquo;, &lsquo;CID&nbsp;Type&nbsp;1&rsquo;, &lsquo;CFF&rsquo;, &lsquo;PFR&rsquo;, and &lsquo;Windows&nbsp;FNT&rsquo;.</p>
<p>The return value is suitable to be used as an X11 FONT_PROPERTY.</p>
<h4>input</h4>
-
<table class="fields">
<tr><td class="val" id="face">face</td><td class="desc">
<p>Input face handle.</p>
@@ -1113,9 +1187,6 @@
<p>A deprecated name for the same function is <code>FT_Get_X11_Font_Format</code>.</p>
<hr>
-
-
-
@@ -1125,59 +1196,60 @@
</article>
</div>
</div>
+
</main>
<footer class="md-footer">
- <div class="md-footer-nav">
- <nav class="md-footer-nav__inner md-grid">
+ <nav class="md-footer__inner md-grid" aria-label="Footer">
+
- <a href="ft2-winfnt_fonts.html" title="Window FNT Files" class="md-flex md-footer-nav__link md-footer-nav__link--prev" rel="prev">
- <div class="md-flex__cell md-flex__cell--shrink">
- <i class="md-icon md-icon--arrow-back md-footer-nav__button"></i>
- </div>
- <div class="md-flex__cell md-flex__cell--stretch md-footer-nav__title">
- <span class="md-flex__ellipsis">
- <span class="md-footer-nav__direction">
- Previous
- </span>
- Window FNT Files
+ <a href="ft2-winfnt_fonts.html" class="md-footer__link md-footer__link--prev" aria-label="Previous: Window FNT Files" rel="prev">
+ <div class="md-footer__button md-icon">
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M20 11v2H8l5.5 5.5-1.42 1.42L4.16 12l7.92-7.92L13.5 5.5 8 11h12z"/></svg>
+ </div>
+ <div class="md-footer__title">
+ <div class="md-ellipsis">
+ <span class="md-footer__direction">
+ Previous
</span>
+ Window FNT Files
</div>
- </a>
-
+ </div>
+ </a>
+
+
- <a href="ft2-gasp_table.html" title="Gasp Table" class="md-flex md-footer-nav__link md-footer-nav__link--next" rel="next">
- <div class="md-flex__cell md-flex__cell--stretch md-footer-nav__title">
- <span class="md-flex__ellipsis">
- <span class="md-footer-nav__direction">
- Next
- </span>
- Gasp Table
+ <a href="ft2-gasp_table.html" class="md-footer__link md-footer__link--next" aria-label="Next: Gasp Table" rel="next">
+ <div class="md-footer__title">
+ <div class="md-ellipsis">
+ <span class="md-footer__direction">
+ Next
</span>
+ Gasp Table
</div>
- <div class="md-flex__cell md-flex__cell--shrink">
- <i class="md-icon md-icon--arrow-forward md-footer-nav__button"></i>
- </div>
- </a>
-
- </nav>
- </div>
+ </div>
+ <div class="md-footer__button md-icon">
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M4 11v2h12l-5.5 5.5 1.42 1.42L19.84 12l-7.92-7.92L10.5 5.5 16 11H4z"/></svg>
+ </div>
+ </a>
+
+ </nav>
<div class="md-footer-meta md-typeset">
<div class="md-footer-meta__inner md-grid">
<div class="md-footer-copyright">
<div class="md-footer-copyright__highlight">
- Copyright 2020 <a href = "https://www.freetype.org/license.html">The FreeType Project</a>.
+ Copyright 2021 <a href = "https://www.freetype.org/license.html">The FreeType Project</a>.
</div>
- powered by
- <a href="https://www.mkdocs.org" target="_blank" rel="noopener">MkDocs</a>
- and
+ Made with
<a href="https://squidfunk.github.io/mkdocs-material/" target="_blank" rel="noopener">
- Material for MkDocs</a>
+ Material for MkDocs
+ </a>
+
</div>
</div>
@@ -1185,10 +1257,13 @@
</footer>
</div>
+ <div class="md-dialog" data-md-component="dialog">
+ <div class="md-dialog__inner md-typeset"></div>
+ </div>
+ <script id="__config" type="application/json">{"base": ".", "features": [], "translations": {"clipboard.copy": "Copy to clipboard", "clipboard.copied": "Copied to clipboard", "search.config.lang": "en", "search.config.pipeline": "trimmer, stopWordFilter", "search.config.separator": "[\\s\\-]+", "search.placeholder": "Search", "search.result.placeholder": "Type to start searching", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.term.missing": "Missing", "select.version.title": "Select version"}, "search": "assets/javascripts/workers/search.477d984a.min.js", "version": null}</script>
- <script src="assets/javascripts/application.c33a9706.js"></script>
-
- <script>app.initialize({version:"1.1",url:{base:"."}})</script>
+
+ <script src="assets/javascripts/bundle.82b56eb2.min.js"></script>
<script src="javascripts/extra.js"></script>
diff --git a/freetype/docs/reference/ft2-gasp_table.html b/freetype/docs/reference/ft2-gasp_table.html
index 3c246158..c8a29fea 100644
--- a/freetype/docs/reference/ft2-gasp_table.html
+++ b/freetype/docs/reference/ft2-gasp_table.html
@@ -1,145 +1,136 @@
-
-
-
<!doctype html>
<html lang="en" class="no-js">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
- <meta http-equiv="x-ua-compatible" content="ie=edge">
- <meta name="description" content="API Reference Documentation for FreeType-2.10.4">
+ <meta name="description" content="API Reference Documentation for FreeType-2.11.1">
<meta name="author" content="FreeType Contributors">
- <meta name="lang:clipboard.copy" content="Copy to clipboard">
-
- <meta name="lang:clipboard.copied" content="Copied to clipboard">
-
- <meta name="lang:search.language" content="en">
-
- <meta name="lang:search.pipeline.stopwords" content="True">
-
- <meta name="lang:search.pipeline.trimmer" content="True">
-
- <meta name="lang:search.result.none" content="No matching documents">
-
- <meta name="lang:search.result.one" content="1 matching document">
-
- <meta name="lang:search.result.other" content="# matching documents">
-
- <meta name="lang:search.tokenizer" content="[\s\-]+">
-
- <link rel="shortcut icon" href="images/favico.ico">
- <meta name="generator" content="mkdocs-1.1, mkdocs-material-4.6.3">
+ <link rel="icon" href="images/favico.ico">
+ <meta name="generator" content="mkdocs-1.2.1, mkdocs-material-7.1.9">
- <title>Gasp Table - FreeType-2.10.4 API Reference</title>
+ <title>Gasp Table - FreeType-2.11.1 API Reference</title>
- <link rel="stylesheet" href="assets/stylesheets/application.adb8469c.css">
-
- <link rel="stylesheet" href="assets/stylesheets/application-palette.a8b3c06d.css">
-
+ <link rel="stylesheet" href="assets/stylesheets/main.ca7ac06f.min.css">
+ <link rel="stylesheet" href="assets/stylesheets/palette.f1a3b89f.min.css">
+
+
+
+ <meta name="theme-color" content="#4cae4f">
- <meta name="theme-color" content="#4caf50">
- <script src="assets/javascripts/modernizr.86422ebf.js"></script>
-
- <link href="https://fonts.gstatic.com" rel="preconnect" crossorigin>
+
+ <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Noto+Serif:300,400,400i,700%7CRoboto+Mono&display=fallback">
- <style>body,input{font-family:"Noto Serif","Helvetica Neue",Helvetica,Arial,sans-serif}code,kbd,pre{font-family:"Roboto Mono","Courier New",Courier,monospace}</style>
+ <style>:root{--md-text-font-family:"Noto Serif";--md-code-font-family:"Roboto Mono"}</style>
- <link rel="stylesheet" href="assets/fonts/material-icons.css">
<link rel="stylesheet" href="stylesheets/extra.css">
+
+
</head>
+
+
+
+
- <body dir="ltr" data-md-color-primary="green" data-md-color-accent="green">
+ <body dir="ltr" data-md-color-scheme="" data-md-color-primary="green" data-md-color-accent="green">
- <svg class="md-svg">
- <defs>
-
-
- </defs>
- </svg>
- <input class="md-toggle" data-md-toggle="drawer" type="checkbox" id="__drawer" autocomplete="off">
- <input class="md-toggle" data-md-toggle="search" type="checkbox" id="__search" autocomplete="off">
- <label class="md-overlay" data-md-component="overlay" for="__drawer"></label>
- <a href="#gasp-table" tabindex="0" class="md-skip">
- Skip to content
- </a>
+ <script>function __prefix(e){return new URL(".",location).pathname+"."+e}function __get(e,t=localStorage){return JSON.parse(t.getItem(__prefix(e)))}</script>
+ <input class="md-toggle" data-md-toggle="drawer" type="checkbox" id="__drawer" autocomplete="off">
+ <input class="md-toggle" data-md-toggle="search" type="checkbox" id="__search" autocomplete="off">
+ <label class="md-overlay" for="__drawer"></label>
+ <div data-md-component="skip">
+
+
+ <a href="#gasp-table" class="md-skip">
+ Skip to content
+ </a>
+
+ </div>
+ <div data-md-component="announce">
+
+ </div>
<header class="md-header" data-md-component="header">
- <nav class="md-header-nav md-grid">
- <div class="md-flex">
- <div class="md-flex__cell md-flex__cell--shrink">
- <a href="." title="FreeType-2.10.4 API Reference" aria-label="FreeType-2.10.4 API Reference" class="md-header-nav__button md-logo">
-
- <img alt="logo" src="images/favico.ico" width="24" height="24">
-
- </a>
- </div>
- <div class="md-flex__cell md-flex__cell--shrink">
- <label class="md-icon md-icon--menu md-header-nav__button" for="__drawer"></label>
- </div>
- <div class="md-flex__cell md-flex__cell--stretch">
- <div class="md-flex__ellipsis md-header-nav__title" data-md-component="title">
-
- <span class="md-header-nav__topic">
- FreeType-2.10.4 API Reference
- </span>
- <span class="md-header-nav__topic">
-
- Gasp Table
-
- </span>
-
+ <nav class="md-header__inner md-grid" aria-label="Header">
+ <a href="index.html" title="FreeType-2.11.1 API Reference" class="md-header__button md-logo" aria-label="FreeType-2.11.1 API Reference" data-md-component="logo">
+
+ <img src="images/favico.ico" alt="logo">
+
+ </a>
+ <label class="md-header__button md-icon" for="__drawer">
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M3 6h18v2H3V6m0 5h18v2H3v-2m0 5h18v2H3v-2z"/></svg>
+ </label>
+ <div class="md-header__title" data-md-component="header-title">
+ <div class="md-header__ellipsis">
+ <div class="md-header__topic">
+ <span class="md-ellipsis">
+ FreeType-2.11.1 API Reference
+ </span>
+ </div>
+ <div class="md-header__topic" data-md-component="header-topic">
+ <span class="md-ellipsis">
+
+ Gasp Table
+
+ </span>
</div>
</div>
- <div class="md-flex__cell md-flex__cell--shrink">
-
- <label class="md-icon md-icon--search md-header-nav__button" for="__search"></label>
-
+ </div>
+
+
+
+ <label class="md-header__button md-icon" for="__search">
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M9.5 3A6.5 6.5 0 0 1 16 9.5c0 1.61-.59 3.09-1.56 4.23l.27.27h.79l5 5-1.5 1.5-5-5v-.79l-.27-.27A6.516 6.516 0 0 1 9.5 16 6.5 6.5 0 0 1 3 9.5 6.5 6.5 0 0 1 9.5 3m0 2C7 5 5 7 5 9.5S7 14 9.5 14 14 12 14 9.5 12 5 9.5 5z"/></svg>
+ </label>
+
<div class="md-search" data-md-component="search" role="dialog">
<label class="md-search__overlay" for="__search"></label>
<div class="md-search__inner" role="search">
<form class="md-search__form" name="search">
- <input type="text" class="md-search__input" aria-label="search" name="query" placeholder="Search" autocapitalize="off" autocorrect="off" autocomplete="off" spellcheck="false" data-md-component="query" data-md-state="active">
- <label class="md-icon md-search__icon" for="__search"></label>
- <button type="reset" class="md-icon md-search__icon" data-md-component="reset" tabindex="-1">
- &#xE5CD;
+ <input type="text" class="md-search__input" name="query" aria-label="Search" placeholder="Search" autocapitalize="off" autocorrect="off" autocomplete="off" spellcheck="false" data-md-component="search-query" data-md-state="active" required>
+ <label class="md-search__icon md-icon" for="__search">
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M9.5 3A6.5 6.5 0 0 1 16 9.5c0 1.61-.59 3.09-1.56 4.23l.27.27h.79l5 5-1.5 1.5-5-5v-.79l-.27-.27A6.516 6.516 0 0 1 9.5 16 6.5 6.5 0 0 1 3 9.5 6.5 6.5 0 0 1 9.5 3m0 2C7 5 5 7 5 9.5S7 14 9.5 14 14 12 14 9.5 12 5 9.5 5z"/></svg>
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M20 11v2H8l5.5 5.5-1.42 1.42L4.16 12l7.92-7.92L13.5 5.5 8 11h12z"/></svg>
+ </label>
+ <button type="reset" class="md-search__icon md-icon" aria-label="Clear" tabindex="-1">
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z"/></svg>
</button>
</form>
<div class="md-search__output">
<div class="md-search__scrollwrap" data-md-scrollfix>
- <div class="md-search-result" data-md-component="result">
+ <div class="md-search-result" data-md-component="search-result">
<div class="md-search-result__meta">
- Type to start searching
+ Initializing search
</div>
<ol class="md-search-result__list"></ol>
</div>
@@ -147,33 +138,35 @@
</div>
</div>
</div>
-
- </div>
-
- </div>
+
+
</nav>
</header>
- <div class="md-container">
+ <div class="md-container" data-md-component="container">
-
+
- <main class="md-main" role="main">
- <div class="md-main__inner md-grid" data-md-component="container">
+ <main class="md-main" data-md-component="main">
+ <div class="md-main__inner md-grid">
- <div class="md-sidebar md-sidebar--primary" data-md-component="navigation">
+
+ <div class="md-sidebar md-sidebar--primary" data-md-component="sidebar" data-md-type="navigation" >
<div class="md-sidebar__scrollwrap">
<div class="md-sidebar__inner">
- <nav class="md-nav md-nav--primary" data-md-level="0">
- <label class="md-nav__title md-nav__title--site" for="__drawer">
- <a href="." title="FreeType-2.10.4 API Reference" class="md-nav__button md-logo">
-
- <img alt="logo" src="images/favico.ico" width="48" height="48">
+
+
+
+<nav class="md-nav md-nav--primary" aria-label="Navigation" data-md-level="0">
+ <label class="md-nav__title" for="__drawer">
+ <a href="index.html" title="FreeType-2.11.1 API Reference" class="md-nav__button md-logo" aria-label="FreeType-2.11.1 API Reference" data-md-component="logo">
+ <img src="images/favico.ico" alt="logo">
+
</a>
- FreeType-2.10.4 API Reference
+ FreeType-2.11.1 API Reference
</label>
<ul class="md-nav__list" data-md-scrollfix>
@@ -182,216 +175,246 @@
-
- <li class="md-nav__item">
- <a href="index.html" title="TOC" class="md-nav__link">
- TOC
- </a>
- </li>
+
+
+
+ <li class="md-nav__item">
+ <a href="index.html" class="md-nav__link">
+ TOC
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-index.html" title="Index" class="md-nav__link">
- Index
- </a>
- </li>
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-index.html" class="md-nav__link">
+ Index
+ </a>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-3" type="checkbox" id="nav-3">
+
+
+
- <label class="md-nav__link" for="nav-3">
- General Remarks
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-3">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_3" type="checkbox" id="__nav_3" >
+
+ <label class="md-nav__link" for="__nav_3">
General Remarks
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
+ <nav class="md-nav" aria-label="General Remarks" data-md-level="1">
+ <label class="md-nav__title" for="__nav_3">
+ <span class="md-nav__icon md-icon"></span>
+ General Remarks
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-header_inclusion.html" title="FreeType's header inclusion scheme" class="md-nav__link">
- FreeType's header inclusion scheme
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-preamble.html" class="md-nav__link">
+ Preamble
+ </a>
+ </li>
+
-
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-header_inclusion.html" class="md-nav__link">
+ FreeType's header inclusion scheme
+ </a>
+ </li>
+
- <li class="md-nav__item">
- <a href="ft2-user_allocation.html" title="User allocation" class="md-nav__link">
- User allocation
- </a>
- </li>
+
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-user_allocation.html" class="md-nav__link">
+ User allocation
+ </a>
+ </li>
+
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-4" type="checkbox" id="nav-4">
+
+
+
- <label class="md-nav__link" for="nav-4">
- Core API
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-4">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_4" type="checkbox" id="__nav_4" >
+
+ <label class="md-nav__link" for="__nav_4">
Core API
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
+ <nav class="md-nav" aria-label="Core API" data-md-level="1">
+ <label class="md-nav__title" for="__nav_4">
+ <span class="md-nav__icon md-icon"></span>
+ Core API
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-version.html" title="FreeType Version" class="md-nav__link">
- FreeType Version
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-version.html" class="md-nav__link">
+ FreeType Version
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-basic_types.html" title="Basic Data Types" class="md-nav__link">
- Basic Data Types
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-basic_types.html" class="md-nav__link">
+ Basic Data Types
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-base_interface.html" title="Base Interface" class="md-nav__link">
- Base Interface
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-base_interface.html" class="md-nav__link">
+ Base Interface
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-glyph_variants.html" title="Unicode Variation Sequences" class="md-nav__link">
- Unicode Variation Sequences
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-glyph_variants.html" class="md-nav__link">
+ Unicode Variation Sequences
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-color_management.html" class="md-nav__link">
+ Glyph Color Management
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-color_management.html" title="Glyph Color Management" class="md-nav__link">
- Glyph Color Management
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-layer_management.html" title="Glyph Layer Management" class="md-nav__link">
- Glyph Layer Management
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-layer_management.html" class="md-nav__link">
+ Glyph Layer Management
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-glyph_management.html" class="md-nav__link">
+ Glyph Management
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-glyph_management.html" title="Glyph Management" class="md-nav__link">
- Glyph Management
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-mac_specific.html" title="Mac Specific Interface" class="md-nav__link">
- Mac Specific Interface
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-mac_specific.html" class="md-nav__link">
+ Mac Specific Interface
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-sizes_management.html" class="md-nav__link">
+ Size Management
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-sizes_management.html" title="Size Management" class="md-nav__link">
- Size Management
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-header_file_macros.html" title="Header File Macros" class="md-nav__link">
- Header File Macros
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-header_file_macros.html" class="md-nav__link">
+ Header File Macros
+ </a>
+ </li>
+
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
@@ -399,161 +422,171 @@
-
-
- <li class="md-nav__item md-nav__item--active md-nav__item--nested">
+
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-5" type="checkbox" id="nav-5" checked>
+
+
- <label class="md-nav__link" for="nav-5">
- Format-Specific API
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-5">
+ <li class="md-nav__item md-nav__item--active md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_5" type="checkbox" id="__nav_5" checked>
+
+ <label class="md-nav__link" for="__nav_5">
Format-Specific API
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
-
+ <nav class="md-nav" aria-label="Format-Specific API" data-md-level="1">
+ <label class="md-nav__title" for="__nav_5">
+ <span class="md-nav__icon md-icon"></span>
+ Format-Specific API
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
-
-
-
- <li class="md-nav__item">
- <a href="ft2-multiple_masters.html" title="Multiple Masters" class="md-nav__link">
- Multiple Masters
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-multiple_masters.html" class="md-nav__link">
+ Multiple Masters
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-truetype_tables.html" class="md-nav__link">
+ TrueType Tables
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-truetype_tables.html" title="TrueType Tables" class="md-nav__link">
- TrueType Tables
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-type1_tables.html" title="Type 1 Tables" class="md-nav__link">
- Type 1 Tables
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-type1_tables.html" class="md-nav__link">
+ Type 1 Tables
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-sfnt_names.html" class="md-nav__link">
+ SFNT Names
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-sfnt_names.html" title="SFNT Names" class="md-nav__link">
- SFNT Names
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-bdf_fonts.html" title="BDF and PCF Files" class="md-nav__link">
- BDF and PCF Files
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-bdf_fonts.html" class="md-nav__link">
+ BDF and PCF Files
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-cid_fonts.html" class="md-nav__link">
+ CID Fonts
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-cid_fonts.html" title="CID Fonts" class="md-nav__link">
- CID Fonts
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-pfr_fonts.html" title="PFR Fonts" class="md-nav__link">
- PFR Fonts
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-pfr_fonts.html" class="md-nav__link">
+ PFR Fonts
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-winfnt_fonts.html" title="Window FNT Files" class="md-nav__link">
- Window FNT Files
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-winfnt_fonts.html" class="md-nav__link">
+ Window FNT Files
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-font_formats.html" class="md-nav__link">
+ Font Formats
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-font_formats.html" title="Font Formats" class="md-nav__link">
- Font Formats
- </a>
- </li>
-
-
-
-
-
+
+
-
-
- <li class="md-nav__item md-nav__item--active">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="toc" type="checkbox" id="__toc">
+
+
+ <li class="md-nav__item md-nav__item--active">
-
-
- <label class="md-nav__link md-nav__link--active" for="__toc">
+ <input class="md-nav__toggle md-toggle" data-md-toggle="toc" type="checkbox" id="__toc">
+
+
+
+
+
+ <label class="md-nav__link md-nav__link--active" for="__toc">
+ Gasp Table
+ <span class="md-nav__icon md-icon"></span>
+ </label>
+
+ <a href="ft2-gasp_table.html" class="md-nav__link md-nav__link--active">
Gasp Table
- </label>
-
- <a href="ft2-gasp_table.html" title="Gasp Table" class="md-nav__link md-nav__link--active">
- Gasp Table
- </a>
-
+ </a>
-<nav class="md-nav md-nav--secondary">
+
+<nav class="md-nav md-nav--secondary" aria-label="Table of contents">
+
- <label class="md-nav__title" for="__toc">Table of contents</label>
- <ul class="md-nav__list" data-md-scrollfix>
+ <label class="md-nav__title" for="__toc">
+ <span class="md-nav__icon md-icon"></span>
+ Table of contents
+ </label>
+ <ul class="md-nav__list" data-md-component="toc" data-md-scrollfix>
<li class="md-nav__item">
<a href="#synopsis" class="md-nav__link">
@@ -576,464 +609,504 @@
</li>
-
-
-
-
</ul>
</nav>
-
- </li>
+
+ </li>
+
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-6" type="checkbox" id="nav-6">
+
+
+
- <label class="md-nav__link" for="nav-6">
- Controlling FreeType Modules
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-6">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_6" type="checkbox" id="__nav_6" >
+
+ <label class="md-nav__link" for="__nav_6">
Controlling FreeType Modules
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
-
-
+ <nav class="md-nav" aria-label="Controlling FreeType Modules" data-md-level="1">
+ <label class="md-nav__title" for="__nav_6">
+ <span class="md-nav__icon md-icon"></span>
+ Controlling FreeType Modules
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-auto_hinter.html" class="md-nav__link">
+ The auto-hinter
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-auto_hinter.html" title="The auto-hinter" class="md-nav__link">
- The auto-hinter
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-cff_driver.html" title="The CFF driver" class="md-nav__link">
- The CFF driver
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-cff_driver.html" class="md-nav__link">
+ The CFF driver
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-t1_cid_driver.html" title="The Type 1 and CID drivers" class="md-nav__link">
- The Type 1 and CID drivers
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-t1_cid_driver.html" class="md-nav__link">
+ The Type 1 and CID drivers
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-tt_driver.html" title="The TrueType driver" class="md-nav__link">
- The TrueType driver
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-tt_driver.html" class="md-nav__link">
+ The TrueType driver
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-pcf_driver.html" class="md-nav__link">
+ The PCF driver
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-pcf_driver.html" title="The PCF driver" class="md-nav__link">
- The PCF driver
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-properties.html" title="Driver properties" class="md-nav__link">
- Driver properties
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-properties.html" class="md-nav__link">
+ Driver properties
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-parameter_tags.html" class="md-nav__link">
+ Parameter Tags
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-parameter_tags.html" title="Parameter Tags" class="md-nav__link">
- Parameter Tags
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-lcd_rendering.html" title="Subpixel Rendering" class="md-nav__link">
- Subpixel Rendering
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-lcd_rendering.html" class="md-nav__link">
+ Subpixel Rendering
+ </a>
+ </li>
+
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-7" type="checkbox" id="nav-7">
+
+
+
- <label class="md-nav__link" for="nav-7">
- Cache Sub-System
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-7">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_7" type="checkbox" id="__nav_7" >
+
+ <label class="md-nav__link" for="__nav_7">
Cache Sub-System
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
+ <nav class="md-nav" aria-label="Cache Sub-System" data-md-level="1">
+ <label class="md-nav__title" for="__nav_7">
+ <span class="md-nav__icon md-icon"></span>
+ Cache Sub-System
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-cache_subsystem.html" title="Cache Sub-System" class="md-nav__link">
- Cache Sub-System
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-cache_subsystem.html" class="md-nav__link">
+ Cache Sub-System
+ </a>
+ </li>
+
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-8" type="checkbox" id="nav-8">
+
+
+
- <label class="md-nav__link" for="nav-8">
- Support API
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-8">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_8" type="checkbox" id="__nav_8" >
+
+ <label class="md-nav__link" for="__nav_8">
Support API
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
-
+ <nav class="md-nav" aria-label="Support API" data-md-level="1">
+ <label class="md-nav__title" for="__nav_8">
+ <span class="md-nav__icon md-icon"></span>
+ Support API
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
-
-
-
- <li class="md-nav__item">
- <a href="ft2-computations.html" title="Computations" class="md-nav__link">
- Computations
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-computations.html" class="md-nav__link">
+ Computations
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-list_processing.html" title="List Processing" class="md-nav__link">
- List Processing
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-list_processing.html" class="md-nav__link">
+ List Processing
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-outline_processing.html" class="md-nav__link">
+ Outline Processing
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-outline_processing.html" title="Outline Processing" class="md-nav__link">
- Outline Processing
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-quick_advance.html" title="Quick retrieval of advance values" class="md-nav__link">
- Quick retrieval of advance values
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-quick_advance.html" class="md-nav__link">
+ Quick retrieval of advance values
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-bitmap_handling.html" class="md-nav__link">
+ Bitmap Handling
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-bitmap_handling.html" title="Bitmap Handling" class="md-nav__link">
- Bitmap Handling
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-raster.html" title="Scanline Converter" class="md-nav__link">
- Scanline Converter
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-raster.html" class="md-nav__link">
+ Scanline Converter
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-glyph_stroker.html" title="Glyph Stroker" class="md-nav__link">
- Glyph Stroker
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-glyph_stroker.html" class="md-nav__link">
+ Glyph Stroker
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-system_interface.html" title="System Interface" class="md-nav__link">
- System Interface
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-system_interface.html" class="md-nav__link">
+ System Interface
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-module_management.html" class="md-nav__link">
+ Module Management
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-module_management.html" title="Module Management" class="md-nav__link">
- Module Management
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-gzip.html" title="GZIP Streams" class="md-nav__link">
- GZIP Streams
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-gzip.html" class="md-nav__link">
+ GZIP Streams
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-lzw.html" class="md-nav__link">
+ LZW Streams
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-lzw.html" title="LZW Streams" class="md-nav__link">
- LZW Streams
- </a>
- </li>
-
-
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-bzip2.html" class="md-nav__link">
+ BZIP2 Streams
+ </a>
+ </li>
+
- <li class="md-nav__item">
- <a href="ft2-bzip2.html" title="BZIP2 Streams" class="md-nav__link">
- BZIP2 Streams
- </a>
- </li>
+
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-debugging_apis.html" class="md-nav__link">
+ External Debugging APIs
+ </a>
+ </li>
+
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-9" type="checkbox" id="nav-9">
+
+
+
- <label class="md-nav__link" for="nav-9">
- Error Codes
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-9">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_9" type="checkbox" id="__nav_9" >
+
+ <label class="md-nav__link" for="__nav_9">
Error Codes
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
-
+ <nav class="md-nav" aria-label="Error Codes" data-md-level="1">
+ <label class="md-nav__title" for="__nav_9">
+ <span class="md-nav__icon md-icon"></span>
+ Error Codes
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
-
-
-
- <li class="md-nav__item">
- <a href="ft2-error_enumerations.html" title="Error Enumerations" class="md-nav__link">
- Error Enumerations
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-error_enumerations.html" class="md-nav__link">
+ Error Enumerations
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-error_code_values.html" class="md-nav__link">
+ Error Code Values
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-error_code_values.html" title="Error Code Values" class="md-nav__link">
- Error Code Values
- </a>
- </li>
-
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-10" type="checkbox" id="nav-10">
+
+
+
- <label class="md-nav__link" for="nav-10">
- Miscellaneous
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-10">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_10" type="checkbox" id="__nav_10" >
+
+ <label class="md-nav__link" for="__nav_10">
Miscellaneous
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
-
-
+ <nav class="md-nav" aria-label="Miscellaneous" data-md-level="1">
+ <label class="md-nav__title" for="__nav_10">
+ <span class="md-nav__icon md-icon"></span>
+ Miscellaneous
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-gx_validation.html" class="md-nav__link">
+ TrueTypeGX/AAT Validation
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-gx_validation.html" title="TrueTypeGX/AAT Validation" class="md-nav__link">
- TrueTypeGX/AAT Validation
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-incremental.html" title="Incremental Loading" class="md-nav__link">
- Incremental Loading
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-incremental.html" class="md-nav__link">
+ Incremental Loading
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-truetype_engine.html" class="md-nav__link">
+ The TrueType Engine
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-truetype_engine.html" title="The TrueType Engine" class="md-nav__link">
- The TrueType Engine
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-ot_validation.html" title="OpenType Validation" class="md-nav__link">
- OpenType Validation
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-ot_validation.html" class="md-nav__link">
+ OpenType Validation
+ </a>
+ </li>
+
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
</ul>
@@ -1043,18 +1116,23 @@
</div>
- <div class="md-sidebar md-sidebar--secondary" data-md-component="toc">
+
+ <div class="md-sidebar md-sidebar--secondary" data-md-component="sidebar" data-md-type="toc" >
<div class="md-sidebar__scrollwrap">
<div class="md-sidebar__inner">
-<nav class="md-nav md-nav--secondary">
+<nav class="md-nav md-nav--secondary" aria-label="Table of contents">
+
- <label class="md-nav__title" for="__toc">Table of contents</label>
- <ul class="md-nav__list" data-md-scrollfix>
+ <label class="md-nav__title" for="__toc">
+ <span class="md-nav__icon md-icon"></span>
+ Table of contents
+ </label>
+ <ul class="md-nav__list" data-md-component="toc" data-md-scrollfix>
<li class="md-nav__item">
<a href="#synopsis" class="md-nav__link">
@@ -1077,10 +1155,6 @@
</li>
-
-
-
-
</ul>
</nav>
@@ -1089,7 +1163,7 @@
</div>
- <div class="md-content">
+ <div class="md-content" data-md-component="content">
<article class="md-content__inner md-typeset">
@@ -1110,7 +1184,6 @@
<p>A list of values and/or bit-flags returned by the <code><a href="ft2-gasp_table.html#ft_get_gasp">FT_Get_Gasp</a></code> function.</p>
<h4>values</h4>
-
<table class="fields long">
<tr><td class="val" id="ft_gasp_no_table">FT_GASP_NO_TABLE</td><td class="desc">
<p>This special value means that there is no GASP table in this face. It is up to the client to decide what to do.</p>
@@ -1147,7 +1220,6 @@
<p>For a TrueType or OpenType font file, return the rasterizer behaviour flags from the font's &lsquo;gasp&rsquo; table corresponding to a given character pixel size.</p>
<h4>input</h4>
-
<table class="fields">
<tr><td class="val" id="face">face</td><td class="desc">
<p>The source face handle.</p>
@@ -1168,9 +1240,6 @@
<p>2.3.0</p>
<hr>
-
-
-
@@ -1180,59 +1249,60 @@
</article>
</div>
</div>
+
</main>
<footer class="md-footer">
- <div class="md-footer-nav">
- <nav class="md-footer-nav__inner md-grid">
+ <nav class="md-footer__inner md-grid" aria-label="Footer">
+
- <a href="ft2-font_formats.html" title="Font Formats" class="md-flex md-footer-nav__link md-footer-nav__link--prev" rel="prev">
- <div class="md-flex__cell md-flex__cell--shrink">
- <i class="md-icon md-icon--arrow-back md-footer-nav__button"></i>
- </div>
- <div class="md-flex__cell md-flex__cell--stretch md-footer-nav__title">
- <span class="md-flex__ellipsis">
- <span class="md-footer-nav__direction">
- Previous
- </span>
- Font Formats
+ <a href="ft2-font_formats.html" class="md-footer__link md-footer__link--prev" aria-label="Previous: Font Formats" rel="prev">
+ <div class="md-footer__button md-icon">
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M20 11v2H8l5.5 5.5-1.42 1.42L4.16 12l7.92-7.92L13.5 5.5 8 11h12z"/></svg>
+ </div>
+ <div class="md-footer__title">
+ <div class="md-ellipsis">
+ <span class="md-footer__direction">
+ Previous
</span>
+ Font Formats
</div>
- </a>
-
+ </div>
+ </a>
+
+
- <a href="ft2-auto_hinter.html" title="The auto-hinter" class="md-flex md-footer-nav__link md-footer-nav__link--next" rel="next">
- <div class="md-flex__cell md-flex__cell--stretch md-footer-nav__title">
- <span class="md-flex__ellipsis">
- <span class="md-footer-nav__direction">
- Next
- </span>
- The auto-hinter
+ <a href="ft2-auto_hinter.html" class="md-footer__link md-footer__link--next" aria-label="Next: The auto-hinter" rel="next">
+ <div class="md-footer__title">
+ <div class="md-ellipsis">
+ <span class="md-footer__direction">
+ Next
</span>
+ The auto-hinter
</div>
- <div class="md-flex__cell md-flex__cell--shrink">
- <i class="md-icon md-icon--arrow-forward md-footer-nav__button"></i>
- </div>
- </a>
-
- </nav>
- </div>
+ </div>
+ <div class="md-footer__button md-icon">
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M4 11v2h12l-5.5 5.5 1.42 1.42L19.84 12l-7.92-7.92L10.5 5.5 16 11H4z"/></svg>
+ </div>
+ </a>
+
+ </nav>
<div class="md-footer-meta md-typeset">
<div class="md-footer-meta__inner md-grid">
<div class="md-footer-copyright">
<div class="md-footer-copyright__highlight">
- Copyright 2020 <a href = "https://www.freetype.org/license.html">The FreeType Project</a>.
+ Copyright 2021 <a href = "https://www.freetype.org/license.html">The FreeType Project</a>.
</div>
- powered by
- <a href="https://www.mkdocs.org" target="_blank" rel="noopener">MkDocs</a>
- and
+ Made with
<a href="https://squidfunk.github.io/mkdocs-material/" target="_blank" rel="noopener">
- Material for MkDocs</a>
+ Material for MkDocs
+ </a>
+
</div>
</div>
@@ -1240,10 +1310,13 @@
</footer>
</div>
+ <div class="md-dialog" data-md-component="dialog">
+ <div class="md-dialog__inner md-typeset"></div>
+ </div>
+ <script id="__config" type="application/json">{"base": ".", "features": [], "translations": {"clipboard.copy": "Copy to clipboard", "clipboard.copied": "Copied to clipboard", "search.config.lang": "en", "search.config.pipeline": "trimmer, stopWordFilter", "search.config.separator": "[\\s\\-]+", "search.placeholder": "Search", "search.result.placeholder": "Type to start searching", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.term.missing": "Missing", "select.version.title": "Select version"}, "search": "assets/javascripts/workers/search.477d984a.min.js", "version": null}</script>
- <script src="assets/javascripts/application.c33a9706.js"></script>
-
- <script>app.initialize({version:"1.1",url:{base:"."}})</script>
+
+ <script src="assets/javascripts/bundle.82b56eb2.min.js"></script>
<script src="javascripts/extra.js"></script>
diff --git a/freetype/docs/reference/ft2-glyph_management.html b/freetype/docs/reference/ft2-glyph_management.html
index a0620c4d..ef68dd78 100644
--- a/freetype/docs/reference/ft2-glyph_management.html
+++ b/freetype/docs/reference/ft2-glyph_management.html
@@ -1,145 +1,136 @@
-
-
-
<!doctype html>
<html lang="en" class="no-js">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
- <meta http-equiv="x-ua-compatible" content="ie=edge">
- <meta name="description" content="API Reference Documentation for FreeType-2.10.4">
+ <meta name="description" content="API Reference Documentation for FreeType-2.11.1">
<meta name="author" content="FreeType Contributors">
- <meta name="lang:clipboard.copy" content="Copy to clipboard">
-
- <meta name="lang:clipboard.copied" content="Copied to clipboard">
-
- <meta name="lang:search.language" content="en">
-
- <meta name="lang:search.pipeline.stopwords" content="True">
-
- <meta name="lang:search.pipeline.trimmer" content="True">
-
- <meta name="lang:search.result.none" content="No matching documents">
-
- <meta name="lang:search.result.one" content="1 matching document">
-
- <meta name="lang:search.result.other" content="# matching documents">
-
- <meta name="lang:search.tokenizer" content="[\s\-]+">
-
- <link rel="shortcut icon" href="images/favico.ico">
- <meta name="generator" content="mkdocs-1.1, mkdocs-material-4.6.3">
+ <link rel="icon" href="images/favico.ico">
+ <meta name="generator" content="mkdocs-1.2.1, mkdocs-material-7.1.9">
- <title>Glyph Management - FreeType-2.10.4 API Reference</title>
+ <title>Glyph Management - FreeType-2.11.1 API Reference</title>
- <link rel="stylesheet" href="assets/stylesheets/application.adb8469c.css">
-
- <link rel="stylesheet" href="assets/stylesheets/application-palette.a8b3c06d.css">
-
+ <link rel="stylesheet" href="assets/stylesheets/main.ca7ac06f.min.css">
+ <link rel="stylesheet" href="assets/stylesheets/palette.f1a3b89f.min.css">
+
+
+
+ <meta name="theme-color" content="#4cae4f">
- <meta name="theme-color" content="#4caf50">
- <script src="assets/javascripts/modernizr.86422ebf.js"></script>
-
- <link href="https://fonts.gstatic.com" rel="preconnect" crossorigin>
+
+ <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Noto+Serif:300,400,400i,700%7CRoboto+Mono&display=fallback">
- <style>body,input{font-family:"Noto Serif","Helvetica Neue",Helvetica,Arial,sans-serif}code,kbd,pre{font-family:"Roboto Mono","Courier New",Courier,monospace}</style>
+ <style>:root{--md-text-font-family:"Noto Serif";--md-code-font-family:"Roboto Mono"}</style>
- <link rel="stylesheet" href="assets/fonts/material-icons.css">
<link rel="stylesheet" href="stylesheets/extra.css">
+
+
</head>
+
+
+
+
- <body dir="ltr" data-md-color-primary="green" data-md-color-accent="green">
+ <body dir="ltr" data-md-color-scheme="" data-md-color-primary="green" data-md-color-accent="green">
- <svg class="md-svg">
- <defs>
-
-
- </defs>
- </svg>
- <input class="md-toggle" data-md-toggle="drawer" type="checkbox" id="__drawer" autocomplete="off">
- <input class="md-toggle" data-md-toggle="search" type="checkbox" id="__search" autocomplete="off">
- <label class="md-overlay" data-md-component="overlay" for="__drawer"></label>
- <a href="#glyph-management" tabindex="0" class="md-skip">
- Skip to content
- </a>
+ <script>function __prefix(e){return new URL(".",location).pathname+"."+e}function __get(e,t=localStorage){return JSON.parse(t.getItem(__prefix(e)))}</script>
+ <input class="md-toggle" data-md-toggle="drawer" type="checkbox" id="__drawer" autocomplete="off">
+ <input class="md-toggle" data-md-toggle="search" type="checkbox" id="__search" autocomplete="off">
+ <label class="md-overlay" for="__drawer"></label>
+ <div data-md-component="skip">
+
+
+ <a href="#glyph-management" class="md-skip">
+ Skip to content
+ </a>
+
+ </div>
+ <div data-md-component="announce">
+
+ </div>
<header class="md-header" data-md-component="header">
- <nav class="md-header-nav md-grid">
- <div class="md-flex">
- <div class="md-flex__cell md-flex__cell--shrink">
- <a href="." title="FreeType-2.10.4 API Reference" aria-label="FreeType-2.10.4 API Reference" class="md-header-nav__button md-logo">
-
- <img alt="logo" src="images/favico.ico" width="24" height="24">
-
- </a>
- </div>
- <div class="md-flex__cell md-flex__cell--shrink">
- <label class="md-icon md-icon--menu md-header-nav__button" for="__drawer"></label>
- </div>
- <div class="md-flex__cell md-flex__cell--stretch">
- <div class="md-flex__ellipsis md-header-nav__title" data-md-component="title">
-
- <span class="md-header-nav__topic">
- FreeType-2.10.4 API Reference
- </span>
- <span class="md-header-nav__topic">
-
- Glyph Management
-
- </span>
-
+ <nav class="md-header__inner md-grid" aria-label="Header">
+ <a href="index.html" title="FreeType-2.11.1 API Reference" class="md-header__button md-logo" aria-label="FreeType-2.11.1 API Reference" data-md-component="logo">
+
+ <img src="images/favico.ico" alt="logo">
+
+ </a>
+ <label class="md-header__button md-icon" for="__drawer">
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M3 6h18v2H3V6m0 5h18v2H3v-2m0 5h18v2H3v-2z"/></svg>
+ </label>
+ <div class="md-header__title" data-md-component="header-title">
+ <div class="md-header__ellipsis">
+ <div class="md-header__topic">
+ <span class="md-ellipsis">
+ FreeType-2.11.1 API Reference
+ </span>
+ </div>
+ <div class="md-header__topic" data-md-component="header-topic">
+ <span class="md-ellipsis">
+
+ Glyph Management
+
+ </span>
</div>
</div>
- <div class="md-flex__cell md-flex__cell--shrink">
-
- <label class="md-icon md-icon--search md-header-nav__button" for="__search"></label>
-
+ </div>
+
+
+
+ <label class="md-header__button md-icon" for="__search">
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M9.5 3A6.5 6.5 0 0 1 16 9.5c0 1.61-.59 3.09-1.56 4.23l.27.27h.79l5 5-1.5 1.5-5-5v-.79l-.27-.27A6.516 6.516 0 0 1 9.5 16 6.5 6.5 0 0 1 3 9.5 6.5 6.5 0 0 1 9.5 3m0 2C7 5 5 7 5 9.5S7 14 9.5 14 14 12 14 9.5 12 5 9.5 5z"/></svg>
+ </label>
+
<div class="md-search" data-md-component="search" role="dialog">
<label class="md-search__overlay" for="__search"></label>
<div class="md-search__inner" role="search">
<form class="md-search__form" name="search">
- <input type="text" class="md-search__input" aria-label="search" name="query" placeholder="Search" autocapitalize="off" autocorrect="off" autocomplete="off" spellcheck="false" data-md-component="query" data-md-state="active">
- <label class="md-icon md-search__icon" for="__search"></label>
- <button type="reset" class="md-icon md-search__icon" data-md-component="reset" tabindex="-1">
- &#xE5CD;
+ <input type="text" class="md-search__input" name="query" aria-label="Search" placeholder="Search" autocapitalize="off" autocorrect="off" autocomplete="off" spellcheck="false" data-md-component="search-query" data-md-state="active" required>
+ <label class="md-search__icon md-icon" for="__search">
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M9.5 3A6.5 6.5 0 0 1 16 9.5c0 1.61-.59 3.09-1.56 4.23l.27.27h.79l5 5-1.5 1.5-5-5v-.79l-.27-.27A6.516 6.516 0 0 1 9.5 16 6.5 6.5 0 0 1 3 9.5 6.5 6.5 0 0 1 9.5 3m0 2C7 5 5 7 5 9.5S7 14 9.5 14 14 12 14 9.5 12 5 9.5 5z"/></svg>
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M20 11v2H8l5.5 5.5-1.42 1.42L4.16 12l7.92-7.92L13.5 5.5 8 11h12z"/></svg>
+ </label>
+ <button type="reset" class="md-search__icon md-icon" aria-label="Clear" tabindex="-1">
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z"/></svg>
</button>
</form>
<div class="md-search__output">
<div class="md-search__scrollwrap" data-md-scrollfix>
- <div class="md-search-result" data-md-component="result">
+ <div class="md-search-result" data-md-component="search-result">
<div class="md-search-result__meta">
- Type to start searching
+ Initializing search
</div>
<ol class="md-search-result__list"></ol>
</div>
@@ -147,33 +138,35 @@
</div>
</div>
</div>
-
- </div>
-
- </div>
+
+
</nav>
</header>
- <div class="md-container">
+ <div class="md-container" data-md-component="container">
-
+
- <main class="md-main" role="main">
- <div class="md-main__inner md-grid" data-md-component="container">
+ <main class="md-main" data-md-component="main">
+ <div class="md-main__inner md-grid">
- <div class="md-sidebar md-sidebar--primary" data-md-component="navigation">
+
+ <div class="md-sidebar md-sidebar--primary" data-md-component="sidebar" data-md-type="navigation" >
<div class="md-sidebar__scrollwrap">
<div class="md-sidebar__inner">
- <nav class="md-nav md-nav--primary" data-md-level="0">
- <label class="md-nav__title md-nav__title--site" for="__drawer">
- <a href="." title="FreeType-2.10.4 API Reference" class="md-nav__button md-logo">
-
- <img alt="logo" src="images/favico.ico" width="48" height="48">
+
+
+
+<nav class="md-nav md-nav--primary" aria-label="Navigation" data-md-level="0">
+ <label class="md-nav__title" for="__drawer">
+ <a href="index.html" title="FreeType-2.11.1 API Reference" class="md-nav__button md-logo" aria-label="FreeType-2.11.1 API Reference" data-md-component="logo">
+ <img src="images/favico.ico" alt="logo">
+
</a>
- FreeType-2.10.4 API Reference
+ FreeType-2.11.1 API Reference
</label>
<ul class="md-nav__list" data-md-scrollfix>
@@ -182,72 +175,96 @@
-
- <li class="md-nav__item">
- <a href="index.html" title="TOC" class="md-nav__link">
- TOC
- </a>
- </li>
+
+
+
+ <li class="md-nav__item">
+ <a href="index.html" class="md-nav__link">
+ TOC
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-index.html" title="Index" class="md-nav__link">
- Index
- </a>
- </li>
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-index.html" class="md-nav__link">
+ Index
+ </a>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-3" type="checkbox" id="nav-3">
+
+
+
- <label class="md-nav__link" for="nav-3">
- General Remarks
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-3">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_3" type="checkbox" id="__nav_3" >
+
+ <label class="md-nav__link" for="__nav_3">
General Remarks
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
-
-
+ <nav class="md-nav" aria-label="General Remarks" data-md-level="1">
+ <label class="md-nav__title" for="__nav_3">
+ <span class="md-nav__icon md-icon"></span>
+ General Remarks
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-preamble.html" class="md-nav__link">
+ Preamble
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-header_inclusion.html" title="FreeType's header inclusion scheme" class="md-nav__link">
- FreeType's header inclusion scheme
- </a>
- </li>
-
-
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-header_inclusion.html" class="md-nav__link">
+ FreeType's header inclusion scheme
+ </a>
+ </li>
+
- <li class="md-nav__item">
- <a href="ft2-user_allocation.html" title="User allocation" class="md-nav__link">
- User allocation
- </a>
- </li>
+
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-user_allocation.html" class="md-nav__link">
+ User allocation
+ </a>
+ </li>
+
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
@@ -255,125 +272,135 @@
-
-
- <li class="md-nav__item md-nav__item--active md-nav__item--nested">
+
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-4" type="checkbox" id="nav-4" checked>
+
+
- <label class="md-nav__link" for="nav-4">
- Core API
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-4">
+ <li class="md-nav__item md-nav__item--active md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_4" type="checkbox" id="__nav_4" checked>
+
+ <label class="md-nav__link" for="__nav_4">
Core API
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
-
-
+ <nav class="md-nav" aria-label="Core API" data-md-level="1">
+ <label class="md-nav__title" for="__nav_4">
+ <span class="md-nav__icon md-icon"></span>
+ Core API
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-version.html" class="md-nav__link">
+ FreeType Version
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-version.html" title="FreeType Version" class="md-nav__link">
- FreeType Version
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-basic_types.html" title="Basic Data Types" class="md-nav__link">
- Basic Data Types
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-basic_types.html" class="md-nav__link">
+ Basic Data Types
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-base_interface.html" title="Base Interface" class="md-nav__link">
- Base Interface
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-base_interface.html" class="md-nav__link">
+ Base Interface
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-glyph_variants.html" title="Unicode Variation Sequences" class="md-nav__link">
- Unicode Variation Sequences
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-glyph_variants.html" class="md-nav__link">
+ Unicode Variation Sequences
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-color_management.html" class="md-nav__link">
+ Glyph Color Management
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-color_management.html" title="Glyph Color Management" class="md-nav__link">
- Glyph Color Management
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-layer_management.html" title="Glyph Layer Management" class="md-nav__link">
- Glyph Layer Management
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-layer_management.html" class="md-nav__link">
+ Glyph Layer Management
+ </a>
+ </li>
+
-
-
-
-
+
+
-
-
- <li class="md-nav__item md-nav__item--active">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="toc" type="checkbox" id="__toc">
+
+
+ <li class="md-nav__item md-nav__item--active">
-
-
- <label class="md-nav__link md-nav__link--active" for="__toc">
+ <input class="md-nav__toggle md-toggle" data-md-toggle="toc" type="checkbox" id="__toc">
+
+
+
+
+
+ <label class="md-nav__link md-nav__link--active" for="__toc">
+ Glyph Management
+ <span class="md-nav__icon md-icon"></span>
+ </label>
+
+ <a href="ft2-glyph_management.html" class="md-nav__link md-nav__link--active">
Glyph Management
- </label>
-
- <a href="ft2-glyph_management.html" title="Glyph Management" class="md-nav__link md-nav__link--active">
- Glyph Management
- </a>
-
+ </a>
-<nav class="md-nav md-nav--secondary">
+
+<nav class="md-nav md-nav--secondary" aria-label="Table of contents">
+
- <label class="md-nav__title" for="__toc">Table of contents</label>
- <ul class="md-nav__list" data-md-scrollfix>
+ <label class="md-nav__title" for="__toc">
+ <span class="md-nav__icon md-icon"></span>
+ Table of contents
+ </label>
+ <ul class="md-nav__list" data-md-component="toc" data-md-scrollfix>
<li class="md-nav__item">
<a href="#synopsis" class="md-nav__link">
@@ -480,644 +507,690 @@
</li>
-
-
-
-
</ul>
</nav>
-
- </li>
+
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-mac_specific.html" class="md-nav__link">
+ Mac Specific Interface
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-mac_specific.html" title="Mac Specific Interface" class="md-nav__link">
- Mac Specific Interface
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-sizes_management.html" title="Size Management" class="md-nav__link">
- Size Management
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-sizes_management.html" class="md-nav__link">
+ Size Management
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-header_file_macros.html" title="Header File Macros" class="md-nav__link">
- Header File Macros
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-header_file_macros.html" class="md-nav__link">
+ Header File Macros
+ </a>
+ </li>
+
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-5" type="checkbox" id="nav-5">
+
+
+
- <label class="md-nav__link" for="nav-5">
- Format-Specific API
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-5">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_5" type="checkbox" id="__nav_5" >
+
+ <label class="md-nav__link" for="__nav_5">
Format-Specific API
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
+ <nav class="md-nav" aria-label="Format-Specific API" data-md-level="1">
+ <label class="md-nav__title" for="__nav_5">
+ <span class="md-nav__icon md-icon"></span>
+ Format-Specific API
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-multiple_masters.html" title="Multiple Masters" class="md-nav__link">
- Multiple Masters
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-multiple_masters.html" class="md-nav__link">
+ Multiple Masters
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-truetype_tables.html" class="md-nav__link">
+ TrueType Tables
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-truetype_tables.html" title="TrueType Tables" class="md-nav__link">
- TrueType Tables
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-type1_tables.html" title="Type 1 Tables" class="md-nav__link">
- Type 1 Tables
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-type1_tables.html" class="md-nav__link">
+ Type 1 Tables
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-sfnt_names.html" class="md-nav__link">
+ SFNT Names
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-sfnt_names.html" title="SFNT Names" class="md-nav__link">
- SFNT Names
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-bdf_fonts.html" title="BDF and PCF Files" class="md-nav__link">
- BDF and PCF Files
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-bdf_fonts.html" class="md-nav__link">
+ BDF and PCF Files
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-cid_fonts.html" class="md-nav__link">
+ CID Fonts
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-cid_fonts.html" title="CID Fonts" class="md-nav__link">
- CID Fonts
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-pfr_fonts.html" title="PFR Fonts" class="md-nav__link">
- PFR Fonts
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-pfr_fonts.html" class="md-nav__link">
+ PFR Fonts
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-winfnt_fonts.html" class="md-nav__link">
+ Window FNT Files
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-winfnt_fonts.html" title="Window FNT Files" class="md-nav__link">
- Window FNT Files
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-font_formats.html" title="Font Formats" class="md-nav__link">
- Font Formats
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-font_formats.html" class="md-nav__link">
+ Font Formats
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-gasp_table.html" class="md-nav__link">
+ Gasp Table
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-gasp_table.html" title="Gasp Table" class="md-nav__link">
- Gasp Table
- </a>
- </li>
-
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-6" type="checkbox" id="nav-6">
+
+
+
- <label class="md-nav__link" for="nav-6">
- Controlling FreeType Modules
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-6">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_6" type="checkbox" id="__nav_6" >
+
+ <label class="md-nav__link" for="__nav_6">
Controlling FreeType Modules
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
-
-
+ <nav class="md-nav" aria-label="Controlling FreeType Modules" data-md-level="1">
+ <label class="md-nav__title" for="__nav_6">
+ <span class="md-nav__icon md-icon"></span>
+ Controlling FreeType Modules
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-auto_hinter.html" class="md-nav__link">
+ The auto-hinter
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-auto_hinter.html" title="The auto-hinter" class="md-nav__link">
- The auto-hinter
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-cff_driver.html" title="The CFF driver" class="md-nav__link">
- The CFF driver
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-cff_driver.html" class="md-nav__link">
+ The CFF driver
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-t1_cid_driver.html" title="The Type 1 and CID drivers" class="md-nav__link">
- The Type 1 and CID drivers
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-t1_cid_driver.html" class="md-nav__link">
+ The Type 1 and CID drivers
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-tt_driver.html" title="The TrueType driver" class="md-nav__link">
- The TrueType driver
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-tt_driver.html" class="md-nav__link">
+ The TrueType driver
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-pcf_driver.html" title="The PCF driver" class="md-nav__link">
- The PCF driver
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-pcf_driver.html" class="md-nav__link">
+ The PCF driver
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-properties.html" class="md-nav__link">
+ Driver properties
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-properties.html" title="Driver properties" class="md-nav__link">
- Driver properties
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-parameter_tags.html" title="Parameter Tags" class="md-nav__link">
- Parameter Tags
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-parameter_tags.html" class="md-nav__link">
+ Parameter Tags
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-lcd_rendering.html" class="md-nav__link">
+ Subpixel Rendering
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-lcd_rendering.html" title="Subpixel Rendering" class="md-nav__link">
- Subpixel Rendering
- </a>
- </li>
-
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-7" type="checkbox" id="nav-7">
+
+
+
- <label class="md-nav__link" for="nav-7">
- Cache Sub-System
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-7">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_7" type="checkbox" id="__nav_7" >
+
+ <label class="md-nav__link" for="__nav_7">
Cache Sub-System
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
-
-
+ <nav class="md-nav" aria-label="Cache Sub-System" data-md-level="1">
+ <label class="md-nav__title" for="__nav_7">
+ <span class="md-nav__icon md-icon"></span>
+ Cache Sub-System
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-cache_subsystem.html" class="md-nav__link">
+ Cache Sub-System
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-cache_subsystem.html" title="Cache Sub-System" class="md-nav__link">
- Cache Sub-System
- </a>
- </li>
-
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-8" type="checkbox" id="nav-8">
+
+
+
- <label class="md-nav__link" for="nav-8">
- Support API
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-8">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_8" type="checkbox" id="__nav_8" >
+
+ <label class="md-nav__link" for="__nav_8">
Support API
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
-
-
+ <nav class="md-nav" aria-label="Support API" data-md-level="1">
+ <label class="md-nav__title" for="__nav_8">
+ <span class="md-nav__icon md-icon"></span>
+ Support API
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-computations.html" class="md-nav__link">
+ Computations
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-computations.html" title="Computations" class="md-nav__link">
- Computations
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-list_processing.html" title="List Processing" class="md-nav__link">
- List Processing
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-list_processing.html" class="md-nav__link">
+ List Processing
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-outline_processing.html" class="md-nav__link">
+ Outline Processing
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-outline_processing.html" title="Outline Processing" class="md-nav__link">
- Outline Processing
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-quick_advance.html" title="Quick retrieval of advance values" class="md-nav__link">
- Quick retrieval of advance values
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-quick_advance.html" class="md-nav__link">
+ Quick retrieval of advance values
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-bitmap_handling.html" class="md-nav__link">
+ Bitmap Handling
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-bitmap_handling.html" title="Bitmap Handling" class="md-nav__link">
- Bitmap Handling
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-raster.html" title="Scanline Converter" class="md-nav__link">
- Scanline Converter
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-raster.html" class="md-nav__link">
+ Scanline Converter
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-glyph_stroker.html" title="Glyph Stroker" class="md-nav__link">
- Glyph Stroker
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-glyph_stroker.html" class="md-nav__link">
+ Glyph Stroker
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-system_interface.html" title="System Interface" class="md-nav__link">
- System Interface
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-system_interface.html" class="md-nav__link">
+ System Interface
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-module_management.html" class="md-nav__link">
+ Module Management
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-module_management.html" title="Module Management" class="md-nav__link">
- Module Management
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-gzip.html" title="GZIP Streams" class="md-nav__link">
- GZIP Streams
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-gzip.html" class="md-nav__link">
+ GZIP Streams
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-lzw.html" title="LZW Streams" class="md-nav__link">
- LZW Streams
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-lzw.html" class="md-nav__link">
+ LZW Streams
+ </a>
+ </li>
+
-
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-bzip2.html" class="md-nav__link">
+ BZIP2 Streams
+ </a>
+ </li>
+
- <li class="md-nav__item">
- <a href="ft2-bzip2.html" title="BZIP2 Streams" class="md-nav__link">
- BZIP2 Streams
- </a>
- </li>
+
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-debugging_apis.html" class="md-nav__link">
+ External Debugging APIs
+ </a>
+ </li>
+
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-9" type="checkbox" id="nav-9">
+
+
+
- <label class="md-nav__link" for="nav-9">
- Error Codes
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-9">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_9" type="checkbox" id="__nav_9" >
+
+ <label class="md-nav__link" for="__nav_9">
Error Codes
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
+ <nav class="md-nav" aria-label="Error Codes" data-md-level="1">
+ <label class="md-nav__title" for="__nav_9">
+ <span class="md-nav__icon md-icon"></span>
+ Error Codes
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-error_enumerations.html" title="Error Enumerations" class="md-nav__link">
- Error Enumerations
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-error_enumerations.html" class="md-nav__link">
+ Error Enumerations
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-error_code_values.html" class="md-nav__link">
+ Error Code Values
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-error_code_values.html" title="Error Code Values" class="md-nav__link">
- Error Code Values
- </a>
- </li>
-
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-10" type="checkbox" id="nav-10">
+
+
+
- <label class="md-nav__link" for="nav-10">
- Miscellaneous
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-10">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_10" type="checkbox" id="__nav_10" >
+
+ <label class="md-nav__link" for="__nav_10">
Miscellaneous
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
-
-
+ <nav class="md-nav" aria-label="Miscellaneous" data-md-level="1">
+ <label class="md-nav__title" for="__nav_10">
+ <span class="md-nav__icon md-icon"></span>
+ Miscellaneous
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-gx_validation.html" class="md-nav__link">
+ TrueTypeGX/AAT Validation
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-gx_validation.html" title="TrueTypeGX/AAT Validation" class="md-nav__link">
- TrueTypeGX/AAT Validation
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-incremental.html" title="Incremental Loading" class="md-nav__link">
- Incremental Loading
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-incremental.html" class="md-nav__link">
+ Incremental Loading
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-truetype_engine.html" class="md-nav__link">
+ The TrueType Engine
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-truetype_engine.html" title="The TrueType Engine" class="md-nav__link">
- The TrueType Engine
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-ot_validation.html" title="OpenType Validation" class="md-nav__link">
- OpenType Validation
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-ot_validation.html" class="md-nav__link">
+ OpenType Validation
+ </a>
+ </li>
+
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
</ul>
@@ -1127,18 +1200,23 @@
</div>
- <div class="md-sidebar md-sidebar--secondary" data-md-component="toc">
+
+ <div class="md-sidebar md-sidebar--secondary" data-md-component="sidebar" data-md-type="toc" >
<div class="md-sidebar__scrollwrap">
<div class="md-sidebar__inner">
-<nav class="md-nav md-nav--secondary">
+<nav class="md-nav md-nav--secondary" aria-label="Table of contents">
+
- <label class="md-nav__title" for="__toc">Table of contents</label>
- <ul class="md-nav__list" data-md-scrollfix>
+ <label class="md-nav__title" for="__toc">
+ <span class="md-nav__icon md-icon"></span>
+ Table of contents
+ </label>
+ <ul class="md-nav__list" data-md-component="toc" data-md-scrollfix>
<li class="md-nav__item">
<a href="#synopsis" class="md-nav__link">
@@ -1245,10 +1323,6 @@
</li>
-
-
-
-
</ul>
</nav>
@@ -1257,7 +1331,7 @@
</div>
- <div class="md-content">
+ <div class="md-content" data-md-component="content">
<article class="md-content__inner md-typeset">
@@ -1292,7 +1366,6 @@
<p>The root glyph structure contains a given glyph image plus its advance width in 16.16 fixed-point format.</p>
<h4>fields</h4>
-
<table class="fields">
<tr><td class="val" id="library">library</td><td class="desc">
<p>A handle to the FreeType library object.</p>
@@ -1332,7 +1405,6 @@
<p>A structure used for bitmap glyph images. This really is a &lsquo;sub-class&rsquo; of <code><a href="ft2-glyph_management.html#ft_glyphrec">FT_GlyphRec</a></code>.</p>
<h4>fields</h4>
-
<table class="fields">
<tr><td class="val" id="root">root</td><td class="desc">
<p>The root <code><a href="ft2-glyph_management.html#ft_glyph">FT_Glyph</a></code> fields.</p>
@@ -1374,7 +1446,6 @@
<p>A structure used for outline (vectorial) glyph images. This really is a &lsquo;sub-class&rsquo; of <code><a href="ft2-glyph_management.html#ft_glyphrec">FT_GlyphRec</a></code>.</p>
<h4>fields</h4>
-
<table class="fields">
<tr><td class="val" id="root">root</td><td class="desc">
<p>The root <code><a href="ft2-glyph_management.html#ft_glyph">FT_Glyph</a></code> fields.</p>
@@ -1401,7 +1472,6 @@
<p>A function used to create a new empty glyph image. Note that the created <code><a href="ft2-glyph_management.html#ft_glyph">FT_Glyph</a></code> object must be released with <code><a href="ft2-glyph_management.html#ft_done_glyph">FT_Done_Glyph</a></code>.</p>
<h4>input</h4>
-
<table class="fields">
<tr><td class="val" id="library">library</td><td class="desc">
<p>A handle to the FreeType library object.</p>
@@ -1412,7 +1482,6 @@
</table>
<h4>output</h4>
-
<table class="fields">
<tr><td class="val" id="aglyph">aglyph</td><td class="desc">
<p>A handle to the glyph object.</p>
@@ -1436,7 +1505,6 @@
<p>A function used to extract a glyph image from a slot. Note that the created <code><a href="ft2-glyph_management.html#ft_glyph">FT_Glyph</a></code> object must be released with <code><a href="ft2-glyph_management.html#ft_done_glyph">FT_Done_Glyph</a></code>.</p>
<h4>input</h4>
-
<table class="fields">
<tr><td class="val" id="slot">slot</td><td class="desc">
<p>A handle to the source glyph slot.</p>
@@ -1444,7 +1512,6 @@
</table>
<h4>output</h4>
-
<table class="fields">
<tr><td class="val" id="aglyph">aglyph</td><td class="desc">
<p>A handle to the glyph object.</p>
@@ -1468,7 +1535,6 @@
<p>A function used to copy a glyph image. Note that the created <code><a href="ft2-glyph_management.html#ft_glyph">FT_Glyph</a></code> object must be released with <code><a href="ft2-glyph_management.html#ft_done_glyph">FT_Done_Glyph</a></code>.</p>
<h4>input</h4>
-
<table class="fields">
<tr><td class="val" id="source">source</td><td class="desc">
<p>A handle to the source glyph object.</p>
@@ -1476,7 +1542,6 @@
</table>
<h4>output</h4>
-
<table class="fields">
<tr><td class="val" id="target">target</td><td class="desc">
<p>A handle to the target glyph object. 0&nbsp;in case of error.</p>
@@ -1491,14 +1556,13 @@
<h2 id="ft_glyph_transform">FT_Glyph_Transform<a class="headerlink" href="#ft_glyph_transform" title="Permanent link">&para;</a></h2>
<p>Defined in FT_GLYPH_H (freetype/ftglyph.h).</p>
<div class = "codehilite"><pre><code> FT_EXPORT( <a href="ft2-basic_types.html#ft_error">FT_Error</a> )
- <b>FT_Glyph_Transform</b>( <a href="ft2-glyph_management.html#ft_glyph">FT_Glyph</a> glyph,
- <a href="ft2-basic_types.html#ft_matrix">FT_Matrix</a>* matrix,
- <a href="ft2-basic_types.html#ft_vector">FT_Vector</a>* delta );
+ <b>FT_Glyph_Transform</b>( <a href="ft2-glyph_management.html#ft_glyph">FT_Glyph</a> glyph,
+ <span class="keyword">const</span> <a href="ft2-basic_types.html#ft_matrix">FT_Matrix</a>* matrix,
+ <span class="keyword">const</span> <a href="ft2-basic_types.html#ft_vector">FT_Vector</a>* delta );
</code></pre></div>
<p>Transform a glyph image if its format is scalable.</p>
<h4>inout</h4>
-
<table class="fields">
<tr><td class="val" id="glyph">glyph</td><td class="desc">
<p>A handle to the target glyph object.</p>
@@ -1506,7 +1570,6 @@
</table>
<h4>input</h4>
-
<table class="fields">
<tr><td class="val" id="matrix">matrix</td><td class="desc">
<p>A pointer to a 2x2 matrix to apply.</p>
@@ -1548,7 +1611,6 @@
<p>The mode how the values of <code><a href="ft2-glyph_management.html#ft_glyph_get_cbox">FT_Glyph_Get_CBox</a></code> are returned.</p>
<h4>values</h4>
-
<table class="fields">
<tr><td class="val" id="ft_glyph_bbox_unscaled">FT_GLYPH_BBOX_UNSCALED</td><td class="desc">
<p>Return unscaled font units.</p>
@@ -1580,7 +1642,6 @@
<p>Return a glyph's &lsquo;control box&rsquo;. The control box encloses all the outline's points, including Bezier control points. Though it coincides with the exact bounding box for most glyphs, it can be slightly larger in some situations (like when rotating an outline that contains Bezier outside arcs).</p>
<p>Computing the control box is very fast, while getting the bounding box can take much more time as it needs to walk over all segments and arcs in the outline. To get the latter, you can use the &lsquo;ftbbox&rsquo; component, which is dedicated to this single task.</p>
<h4>input</h4>
-
<table class="fields">
<tr><td class="val" id="glyph">glyph</td><td class="desc">
<p>A handle to the source glyph object.</p>
@@ -1591,7 +1652,6 @@
</table>
<h4>output</h4>
-
<table class="fields">
<tr><td class="val" id="acbox">acbox</td><td class="desc">
<p>The glyph coordinate bounding box. Coordinates are expressed in 1/64th of pixels if it is grid-fitted.</p>
@@ -1620,15 +1680,14 @@
<h2 id="ft_glyph_to_bitmap">FT_Glyph_To_Bitmap<a class="headerlink" href="#ft_glyph_to_bitmap" title="Permanent link">&para;</a></h2>
<p>Defined in FT_GLYPH_H (freetype/ftglyph.h).</p>
<div class = "codehilite"><pre><code> FT_EXPORT( <a href="ft2-basic_types.html#ft_error">FT_Error</a> )
- <b>FT_Glyph_To_Bitmap</b>( <a href="ft2-glyph_management.html#ft_glyph">FT_Glyph</a>* the_glyph,
- <a href="ft2-base_interface.html#ft_render_mode">FT_Render_Mode</a> render_mode,
- <a href="ft2-basic_types.html#ft_vector">FT_Vector</a>* origin,
- <a href="ft2-basic_types.html#ft_bool">FT_Bool</a> destroy );
+ <b>FT_Glyph_To_Bitmap</b>( <a href="ft2-glyph_management.html#ft_glyph">FT_Glyph</a>* the_glyph,
+ <a href="ft2-base_interface.html#ft_render_mode">FT_Render_Mode</a> render_mode,
+ <span class="keyword">const</span> <a href="ft2-basic_types.html#ft_vector">FT_Vector</a>* origin,
+ <a href="ft2-basic_types.html#ft_bool">FT_Bool</a> destroy );
</code></pre></div>
<p>Convert a given glyph object to a bitmap glyph object.</p>
<h4>inout</h4>
-
<table class="fields">
<tr><td class="val" id="the_glyph">the_glyph</td><td class="desc">
<p>A pointer to a handle to the target glyph.</p>
@@ -1636,7 +1695,6 @@
</table>
<h4>input</h4>
-
<table class="fields">
<tr><td class="val" id="render_mode">render_mode</td><td class="desc">
<p>An enumeration that describes how the data is rendered.</p>
@@ -1728,7 +1786,6 @@
<p>Destroy a given glyph.</p>
<h4>input</h4>
-
<table class="fields">
<tr><td class="val" id="glyph">glyph</td><td class="desc">
<p>A handle to the target glyph object.</p>
@@ -1737,9 +1794,6 @@
<hr>
-
-
-
@@ -1749,59 +1803,60 @@
</article>
</div>
</div>
+
</main>
<footer class="md-footer">
- <div class="md-footer-nav">
- <nav class="md-footer-nav__inner md-grid">
+ <nav class="md-footer__inner md-grid" aria-label="Footer">
+
- <a href="ft2-layer_management.html" title="Glyph Layer Management" class="md-flex md-footer-nav__link md-footer-nav__link--prev" rel="prev">
- <div class="md-flex__cell md-flex__cell--shrink">
- <i class="md-icon md-icon--arrow-back md-footer-nav__button"></i>
- </div>
- <div class="md-flex__cell md-flex__cell--stretch md-footer-nav__title">
- <span class="md-flex__ellipsis">
- <span class="md-footer-nav__direction">
- Previous
- </span>
- Glyph Layer Management
+ <a href="ft2-layer_management.html" class="md-footer__link md-footer__link--prev" aria-label="Previous: Glyph Layer Management" rel="prev">
+ <div class="md-footer__button md-icon">
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M20 11v2H8l5.5 5.5-1.42 1.42L4.16 12l7.92-7.92L13.5 5.5 8 11h12z"/></svg>
+ </div>
+ <div class="md-footer__title">
+ <div class="md-ellipsis">
+ <span class="md-footer__direction">
+ Previous
</span>
+ Glyph Layer Management
</div>
- </a>
-
+ </div>
+ </a>
+
+
- <a href="ft2-mac_specific.html" title="Mac Specific Interface" class="md-flex md-footer-nav__link md-footer-nav__link--next" rel="next">
- <div class="md-flex__cell md-flex__cell--stretch md-footer-nav__title">
- <span class="md-flex__ellipsis">
- <span class="md-footer-nav__direction">
- Next
- </span>
- Mac Specific Interface
+ <a href="ft2-mac_specific.html" class="md-footer__link md-footer__link--next" aria-label="Next: Mac Specific Interface" rel="next">
+ <div class="md-footer__title">
+ <div class="md-ellipsis">
+ <span class="md-footer__direction">
+ Next
</span>
+ Mac Specific Interface
</div>
- <div class="md-flex__cell md-flex__cell--shrink">
- <i class="md-icon md-icon--arrow-forward md-footer-nav__button"></i>
- </div>
- </a>
-
- </nav>
- </div>
+ </div>
+ <div class="md-footer__button md-icon">
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M4 11v2h12l-5.5 5.5 1.42 1.42L19.84 12l-7.92-7.92L10.5 5.5 16 11H4z"/></svg>
+ </div>
+ </a>
+
+ </nav>
<div class="md-footer-meta md-typeset">
<div class="md-footer-meta__inner md-grid">
<div class="md-footer-copyright">
<div class="md-footer-copyright__highlight">
- Copyright 2020 <a href = "https://www.freetype.org/license.html">The FreeType Project</a>.
+ Copyright 2021 <a href = "https://www.freetype.org/license.html">The FreeType Project</a>.
</div>
- powered by
- <a href="https://www.mkdocs.org" target="_blank" rel="noopener">MkDocs</a>
- and
+ Made with
<a href="https://squidfunk.github.io/mkdocs-material/" target="_blank" rel="noopener">
- Material for MkDocs</a>
+ Material for MkDocs
+ </a>
+
</div>
</div>
@@ -1809,10 +1864,13 @@
</footer>
</div>
+ <div class="md-dialog" data-md-component="dialog">
+ <div class="md-dialog__inner md-typeset"></div>
+ </div>
+ <script id="__config" type="application/json">{"base": ".", "features": [], "translations": {"clipboard.copy": "Copy to clipboard", "clipboard.copied": "Copied to clipboard", "search.config.lang": "en", "search.config.pipeline": "trimmer, stopWordFilter", "search.config.separator": "[\\s\\-]+", "search.placeholder": "Search", "search.result.placeholder": "Type to start searching", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.term.missing": "Missing", "select.version.title": "Select version"}, "search": "assets/javascripts/workers/search.477d984a.min.js", "version": null}</script>
- <script src="assets/javascripts/application.c33a9706.js"></script>
-
- <script>app.initialize({version:"1.1",url:{base:"."}})</script>
+
+ <script src="assets/javascripts/bundle.82b56eb2.min.js"></script>
<script src="javascripts/extra.js"></script>
diff --git a/freetype/docs/reference/ft2-glyph_stroker.html b/freetype/docs/reference/ft2-glyph_stroker.html
index e797bb9e..1481b2dc 100644
--- a/freetype/docs/reference/ft2-glyph_stroker.html
+++ b/freetype/docs/reference/ft2-glyph_stroker.html
@@ -1,145 +1,136 @@
-
-
-
<!doctype html>
<html lang="en" class="no-js">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
- <meta http-equiv="x-ua-compatible" content="ie=edge">
- <meta name="description" content="API Reference Documentation for FreeType-2.10.4">
+ <meta name="description" content="API Reference Documentation for FreeType-2.11.1">
<meta name="author" content="FreeType Contributors">
- <meta name="lang:clipboard.copy" content="Copy to clipboard">
-
- <meta name="lang:clipboard.copied" content="Copied to clipboard">
-
- <meta name="lang:search.language" content="en">
-
- <meta name="lang:search.pipeline.stopwords" content="True">
-
- <meta name="lang:search.pipeline.trimmer" content="True">
-
- <meta name="lang:search.result.none" content="No matching documents">
-
- <meta name="lang:search.result.one" content="1 matching document">
-
- <meta name="lang:search.result.other" content="# matching documents">
-
- <meta name="lang:search.tokenizer" content="[\s\-]+">
-
- <link rel="shortcut icon" href="images/favico.ico">
- <meta name="generator" content="mkdocs-1.1, mkdocs-material-4.6.3">
+ <link rel="icon" href="images/favico.ico">
+ <meta name="generator" content="mkdocs-1.2.1, mkdocs-material-7.1.9">
- <title>Glyph Stroker - FreeType-2.10.4 API Reference</title>
+ <title>Glyph Stroker - FreeType-2.11.1 API Reference</title>
- <link rel="stylesheet" href="assets/stylesheets/application.adb8469c.css">
-
- <link rel="stylesheet" href="assets/stylesheets/application-palette.a8b3c06d.css">
-
+ <link rel="stylesheet" href="assets/stylesheets/main.ca7ac06f.min.css">
+ <link rel="stylesheet" href="assets/stylesheets/palette.f1a3b89f.min.css">
+
+
+
+ <meta name="theme-color" content="#4cae4f">
- <meta name="theme-color" content="#4caf50">
- <script src="assets/javascripts/modernizr.86422ebf.js"></script>
-
- <link href="https://fonts.gstatic.com" rel="preconnect" crossorigin>
+
+ <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Noto+Serif:300,400,400i,700%7CRoboto+Mono&display=fallback">
- <style>body,input{font-family:"Noto Serif","Helvetica Neue",Helvetica,Arial,sans-serif}code,kbd,pre{font-family:"Roboto Mono","Courier New",Courier,monospace}</style>
+ <style>:root{--md-text-font-family:"Noto Serif";--md-code-font-family:"Roboto Mono"}</style>
- <link rel="stylesheet" href="assets/fonts/material-icons.css">
<link rel="stylesheet" href="stylesheets/extra.css">
+
+
</head>
+
+
+
+
- <body dir="ltr" data-md-color-primary="green" data-md-color-accent="green">
+ <body dir="ltr" data-md-color-scheme="" data-md-color-primary="green" data-md-color-accent="green">
- <svg class="md-svg">
- <defs>
-
-
- </defs>
- </svg>
- <input class="md-toggle" data-md-toggle="drawer" type="checkbox" id="__drawer" autocomplete="off">
- <input class="md-toggle" data-md-toggle="search" type="checkbox" id="__search" autocomplete="off">
- <label class="md-overlay" data-md-component="overlay" for="__drawer"></label>
- <a href="#glyph-stroker" tabindex="0" class="md-skip">
- Skip to content
- </a>
+ <script>function __prefix(e){return new URL(".",location).pathname+"."+e}function __get(e,t=localStorage){return JSON.parse(t.getItem(__prefix(e)))}</script>
+ <input class="md-toggle" data-md-toggle="drawer" type="checkbox" id="__drawer" autocomplete="off">
+ <input class="md-toggle" data-md-toggle="search" type="checkbox" id="__search" autocomplete="off">
+ <label class="md-overlay" for="__drawer"></label>
+ <div data-md-component="skip">
+
+
+ <a href="#glyph-stroker" class="md-skip">
+ Skip to content
+ </a>
+
+ </div>
+ <div data-md-component="announce">
+
+ </div>
<header class="md-header" data-md-component="header">
- <nav class="md-header-nav md-grid">
- <div class="md-flex">
- <div class="md-flex__cell md-flex__cell--shrink">
- <a href="." title="FreeType-2.10.4 API Reference" aria-label="FreeType-2.10.4 API Reference" class="md-header-nav__button md-logo">
-
- <img alt="logo" src="images/favico.ico" width="24" height="24">
-
- </a>
- </div>
- <div class="md-flex__cell md-flex__cell--shrink">
- <label class="md-icon md-icon--menu md-header-nav__button" for="__drawer"></label>
- </div>
- <div class="md-flex__cell md-flex__cell--stretch">
- <div class="md-flex__ellipsis md-header-nav__title" data-md-component="title">
-
- <span class="md-header-nav__topic">
- FreeType-2.10.4 API Reference
- </span>
- <span class="md-header-nav__topic">
-
- Glyph Stroker
-
- </span>
-
+ <nav class="md-header__inner md-grid" aria-label="Header">
+ <a href="index.html" title="FreeType-2.11.1 API Reference" class="md-header__button md-logo" aria-label="FreeType-2.11.1 API Reference" data-md-component="logo">
+
+ <img src="images/favico.ico" alt="logo">
+
+ </a>
+ <label class="md-header__button md-icon" for="__drawer">
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M3 6h18v2H3V6m0 5h18v2H3v-2m0 5h18v2H3v-2z"/></svg>
+ </label>
+ <div class="md-header__title" data-md-component="header-title">
+ <div class="md-header__ellipsis">
+ <div class="md-header__topic">
+ <span class="md-ellipsis">
+ FreeType-2.11.1 API Reference
+ </span>
+ </div>
+ <div class="md-header__topic" data-md-component="header-topic">
+ <span class="md-ellipsis">
+
+ Glyph Stroker
+
+ </span>
</div>
</div>
- <div class="md-flex__cell md-flex__cell--shrink">
-
- <label class="md-icon md-icon--search md-header-nav__button" for="__search"></label>
-
+ </div>
+
+
+
+ <label class="md-header__button md-icon" for="__search">
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M9.5 3A6.5 6.5 0 0 1 16 9.5c0 1.61-.59 3.09-1.56 4.23l.27.27h.79l5 5-1.5 1.5-5-5v-.79l-.27-.27A6.516 6.516 0 0 1 9.5 16 6.5 6.5 0 0 1 3 9.5 6.5 6.5 0 0 1 9.5 3m0 2C7 5 5 7 5 9.5S7 14 9.5 14 14 12 14 9.5 12 5 9.5 5z"/></svg>
+ </label>
+
<div class="md-search" data-md-component="search" role="dialog">
<label class="md-search__overlay" for="__search"></label>
<div class="md-search__inner" role="search">
<form class="md-search__form" name="search">
- <input type="text" class="md-search__input" aria-label="search" name="query" placeholder="Search" autocapitalize="off" autocorrect="off" autocomplete="off" spellcheck="false" data-md-component="query" data-md-state="active">
- <label class="md-icon md-search__icon" for="__search"></label>
- <button type="reset" class="md-icon md-search__icon" data-md-component="reset" tabindex="-1">
- &#xE5CD;
+ <input type="text" class="md-search__input" name="query" aria-label="Search" placeholder="Search" autocapitalize="off" autocorrect="off" autocomplete="off" spellcheck="false" data-md-component="search-query" data-md-state="active" required>
+ <label class="md-search__icon md-icon" for="__search">
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M9.5 3A6.5 6.5 0 0 1 16 9.5c0 1.61-.59 3.09-1.56 4.23l.27.27h.79l5 5-1.5 1.5-5-5v-.79l-.27-.27A6.516 6.516 0 0 1 9.5 16 6.5 6.5 0 0 1 3 9.5 6.5 6.5 0 0 1 9.5 3m0 2C7 5 5 7 5 9.5S7 14 9.5 14 14 12 14 9.5 12 5 9.5 5z"/></svg>
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M20 11v2H8l5.5 5.5-1.42 1.42L4.16 12l7.92-7.92L13.5 5.5 8 11h12z"/></svg>
+ </label>
+ <button type="reset" class="md-search__icon md-icon" aria-label="Clear" tabindex="-1">
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z"/></svg>
</button>
</form>
<div class="md-search__output">
<div class="md-search__scrollwrap" data-md-scrollfix>
- <div class="md-search-result" data-md-component="result">
+ <div class="md-search-result" data-md-component="search-result">
<div class="md-search-result__meta">
- Type to start searching
+ Initializing search
</div>
<ol class="md-search-result__list"></ol>
</div>
@@ -147,33 +138,35 @@
</div>
</div>
</div>
-
- </div>
-
- </div>
+
+
</nav>
</header>
- <div class="md-container">
+ <div class="md-container" data-md-component="container">
-
+
- <main class="md-main" role="main">
- <div class="md-main__inner md-grid" data-md-component="container">
+ <main class="md-main" data-md-component="main">
+ <div class="md-main__inner md-grid">
- <div class="md-sidebar md-sidebar--primary" data-md-component="navigation">
+
+ <div class="md-sidebar md-sidebar--primary" data-md-component="sidebar" data-md-type="navigation" >
<div class="md-sidebar__scrollwrap">
<div class="md-sidebar__inner">
- <nav class="md-nav md-nav--primary" data-md-level="0">
- <label class="md-nav__title md-nav__title--site" for="__drawer">
- <a href="." title="FreeType-2.10.4 API Reference" class="md-nav__button md-logo">
-
- <img alt="logo" src="images/favico.ico" width="48" height="48">
+
+
+
+<nav class="md-nav md-nav--primary" aria-label="Navigation" data-md-level="0">
+ <label class="md-nav__title" for="__drawer">
+ <a href="index.html" title="FreeType-2.11.1 API Reference" class="md-nav__button md-logo" aria-label="FreeType-2.11.1 API Reference" data-md-component="logo">
+ <img src="images/favico.ico" alt="logo">
+
</a>
- FreeType-2.10.4 API Reference
+ FreeType-2.11.1 API Reference
</label>
<ul class="md-nav__list" data-md-scrollfix>
@@ -182,516 +175,564 @@
-
- <li class="md-nav__item">
- <a href="index.html" title="TOC" class="md-nav__link">
- TOC
- </a>
- </li>
+
+
+
+ <li class="md-nav__item">
+ <a href="index.html" class="md-nav__link">
+ TOC
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-index.html" title="Index" class="md-nav__link">
- Index
- </a>
- </li>
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-index.html" class="md-nav__link">
+ Index
+ </a>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-3" type="checkbox" id="nav-3">
+
+
+
- <label class="md-nav__link" for="nav-3">
- General Remarks
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-3">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_3" type="checkbox" id="__nav_3" >
+
+ <label class="md-nav__link" for="__nav_3">
General Remarks
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
-
-
+ <nav class="md-nav" aria-label="General Remarks" data-md-level="1">
+ <label class="md-nav__title" for="__nav_3">
+ <span class="md-nav__icon md-icon"></span>
+ General Remarks
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-preamble.html" class="md-nav__link">
+ Preamble
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-header_inclusion.html" title="FreeType's header inclusion scheme" class="md-nav__link">
- FreeType's header inclusion scheme
- </a>
- </li>
-
-
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-header_inclusion.html" class="md-nav__link">
+ FreeType's header inclusion scheme
+ </a>
+ </li>
+
- <li class="md-nav__item">
- <a href="ft2-user_allocation.html" title="User allocation" class="md-nav__link">
- User allocation
- </a>
- </li>
+
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-user_allocation.html" class="md-nav__link">
+ User allocation
+ </a>
+ </li>
+
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-4" type="checkbox" id="nav-4">
+
+
+
- <label class="md-nav__link" for="nav-4">
- Core API
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-4">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_4" type="checkbox" id="__nav_4" >
+
+ <label class="md-nav__link" for="__nav_4">
Core API
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
-
+ <nav class="md-nav" aria-label="Core API" data-md-level="1">
+ <label class="md-nav__title" for="__nav_4">
+ <span class="md-nav__icon md-icon"></span>
+ Core API
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
-
-
-
- <li class="md-nav__item">
- <a href="ft2-version.html" title="FreeType Version" class="md-nav__link">
- FreeType Version
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-version.html" class="md-nav__link">
+ FreeType Version
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-basic_types.html" title="Basic Data Types" class="md-nav__link">
- Basic Data Types
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-basic_types.html" class="md-nav__link">
+ Basic Data Types
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-base_interface.html" title="Base Interface" class="md-nav__link">
- Base Interface
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-base_interface.html" class="md-nav__link">
+ Base Interface
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-glyph_variants.html" class="md-nav__link">
+ Unicode Variation Sequences
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-glyph_variants.html" title="Unicode Variation Sequences" class="md-nav__link">
- Unicode Variation Sequences
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-color_management.html" title="Glyph Color Management" class="md-nav__link">
- Glyph Color Management
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-color_management.html" class="md-nav__link">
+ Glyph Color Management
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-layer_management.html" class="md-nav__link">
+ Glyph Layer Management
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-layer_management.html" title="Glyph Layer Management" class="md-nav__link">
- Glyph Layer Management
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-glyph_management.html" title="Glyph Management" class="md-nav__link">
- Glyph Management
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-glyph_management.html" class="md-nav__link">
+ Glyph Management
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-mac_specific.html" title="Mac Specific Interface" class="md-nav__link">
- Mac Specific Interface
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-mac_specific.html" class="md-nav__link">
+ Mac Specific Interface
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-sizes_management.html" title="Size Management" class="md-nav__link">
- Size Management
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-sizes_management.html" class="md-nav__link">
+ Size Management
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-header_file_macros.html" title="Header File Macros" class="md-nav__link">
- Header File Macros
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-header_file_macros.html" class="md-nav__link">
+ Header File Macros
+ </a>
+ </li>
+
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-5" type="checkbox" id="nav-5">
+
+
+
- <label class="md-nav__link" for="nav-5">
- Format-Specific API
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-5">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_5" type="checkbox" id="__nav_5" >
+
+ <label class="md-nav__link" for="__nav_5">
Format-Specific API
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
-
+ <nav class="md-nav" aria-label="Format-Specific API" data-md-level="1">
+ <label class="md-nav__title" for="__nav_5">
+ <span class="md-nav__icon md-icon"></span>
+ Format-Specific API
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
-
-
-
- <li class="md-nav__item">
- <a href="ft2-multiple_masters.html" title="Multiple Masters" class="md-nav__link">
- Multiple Masters
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-multiple_masters.html" class="md-nav__link">
+ Multiple Masters
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-truetype_tables.html" title="TrueType Tables" class="md-nav__link">
- TrueType Tables
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-truetype_tables.html" class="md-nav__link">
+ TrueType Tables
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-type1_tables.html" title="Type 1 Tables" class="md-nav__link">
- Type 1 Tables
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-type1_tables.html" class="md-nav__link">
+ Type 1 Tables
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-sfnt_names.html" title="SFNT Names" class="md-nav__link">
- SFNT Names
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-sfnt_names.html" class="md-nav__link">
+ SFNT Names
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-bdf_fonts.html" class="md-nav__link">
+ BDF and PCF Files
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-bdf_fonts.html" title="BDF and PCF Files" class="md-nav__link">
- BDF and PCF Files
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-cid_fonts.html" title="CID Fonts" class="md-nav__link">
- CID Fonts
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-cid_fonts.html" class="md-nav__link">
+ CID Fonts
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-pfr_fonts.html" class="md-nav__link">
+ PFR Fonts
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-pfr_fonts.html" title="PFR Fonts" class="md-nav__link">
- PFR Fonts
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-winfnt_fonts.html" title="Window FNT Files" class="md-nav__link">
- Window FNT Files
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-winfnt_fonts.html" class="md-nav__link">
+ Window FNT Files
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-font_formats.html" title="Font Formats" class="md-nav__link">
- Font Formats
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-font_formats.html" class="md-nav__link">
+ Font Formats
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-gasp_table.html" title="Gasp Table" class="md-nav__link">
- Gasp Table
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-gasp_table.html" class="md-nav__link">
+ Gasp Table
+ </a>
+ </li>
+
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-6" type="checkbox" id="nav-6">
+
+
+
- <label class="md-nav__link" for="nav-6">
- Controlling FreeType Modules
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-6">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_6" type="checkbox" id="__nav_6" >
+
+ <label class="md-nav__link" for="__nav_6">
Controlling FreeType Modules
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
-
-
+ <nav class="md-nav" aria-label="Controlling FreeType Modules" data-md-level="1">
+ <label class="md-nav__title" for="__nav_6">
+ <span class="md-nav__icon md-icon"></span>
+ Controlling FreeType Modules
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-auto_hinter.html" class="md-nav__link">
+ The auto-hinter
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-auto_hinter.html" title="The auto-hinter" class="md-nav__link">
- The auto-hinter
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-cff_driver.html" title="The CFF driver" class="md-nav__link">
- The CFF driver
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-cff_driver.html" class="md-nav__link">
+ The CFF driver
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-t1_cid_driver.html" class="md-nav__link">
+ The Type 1 and CID drivers
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-t1_cid_driver.html" title="The Type 1 and CID drivers" class="md-nav__link">
- The Type 1 and CID drivers
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-tt_driver.html" title="The TrueType driver" class="md-nav__link">
- The TrueType driver
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-tt_driver.html" class="md-nav__link">
+ The TrueType driver
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-pcf_driver.html" class="md-nav__link">
+ The PCF driver
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-pcf_driver.html" title="The PCF driver" class="md-nav__link">
- The PCF driver
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-properties.html" title="Driver properties" class="md-nav__link">
- Driver properties
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-properties.html" class="md-nav__link">
+ Driver properties
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-parameter_tags.html" title="Parameter Tags" class="md-nav__link">
- Parameter Tags
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-parameter_tags.html" class="md-nav__link">
+ Parameter Tags
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-lcd_rendering.html" title="Subpixel Rendering" class="md-nav__link">
- Subpixel Rendering
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-lcd_rendering.html" class="md-nav__link">
+ Subpixel Rendering
+ </a>
+ </li>
+
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-7" type="checkbox" id="nav-7">
+
+
+
- <label class="md-nav__link" for="nav-7">
- Cache Sub-System
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-7">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_7" type="checkbox" id="__nav_7" >
+
+ <label class="md-nav__link" for="__nav_7">
Cache Sub-System
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
-
-
+ <nav class="md-nav" aria-label="Cache Sub-System" data-md-level="1">
+ <label class="md-nav__title" for="__nav_7">
+ <span class="md-nav__icon md-icon"></span>
+ Cache Sub-System
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-cache_subsystem.html" class="md-nav__link">
+ Cache Sub-System
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-cache_subsystem.html" title="Cache Sub-System" class="md-nav__link">
- Cache Sub-System
- </a>
- </li>
-
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
@@ -699,125 +740,135 @@
-
-
- <li class="md-nav__item md-nav__item--active md-nav__item--nested">
+
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-8" type="checkbox" id="nav-8" checked>
+
+
- <label class="md-nav__link" for="nav-8">
- Support API
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-8">
+ <li class="md-nav__item md-nav__item--active md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_8" type="checkbox" id="__nav_8" checked>
+
+ <label class="md-nav__link" for="__nav_8">
Support API
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
-
-
+ <nav class="md-nav" aria-label="Support API" data-md-level="1">
+ <label class="md-nav__title" for="__nav_8">
+ <span class="md-nav__icon md-icon"></span>
+ Support API
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-computations.html" class="md-nav__link">
+ Computations
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-computations.html" title="Computations" class="md-nav__link">
- Computations
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-list_processing.html" title="List Processing" class="md-nav__link">
- List Processing
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-list_processing.html" class="md-nav__link">
+ List Processing
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-outline_processing.html" title="Outline Processing" class="md-nav__link">
- Outline Processing
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-outline_processing.html" class="md-nav__link">
+ Outline Processing
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-quick_advance.html" title="Quick retrieval of advance values" class="md-nav__link">
- Quick retrieval of advance values
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-quick_advance.html" class="md-nav__link">
+ Quick retrieval of advance values
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-bitmap_handling.html" title="Bitmap Handling" class="md-nav__link">
- Bitmap Handling
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-bitmap_handling.html" class="md-nav__link">
+ Bitmap Handling
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-raster.html" class="md-nav__link">
+ Scanline Converter
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-raster.html" title="Scanline Converter" class="md-nav__link">
- Scanline Converter
- </a>
- </li>
-
-
-
-
-
+
+
-
-
- <li class="md-nav__item md-nav__item--active">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="toc" type="checkbox" id="__toc">
+
+
+ <li class="md-nav__item md-nav__item--active">
-
-
- <label class="md-nav__link md-nav__link--active" for="__toc">
+ <input class="md-nav__toggle md-toggle" data-md-toggle="toc" type="checkbox" id="__toc">
+
+
+
+
+
+ <label class="md-nav__link md-nav__link--active" for="__toc">
+ Glyph Stroker
+ <span class="md-nav__icon md-icon"></span>
+ </label>
+
+ <a href="ft2-glyph_stroker.html" class="md-nav__link md-nav__link--active">
Glyph Stroker
- </label>
-
- <a href="ft2-glyph_stroker.html" title="Glyph Stroker" class="md-nav__link md-nav__link--active">
- Glyph Stroker
- </a>
-
+ </a>
-<nav class="md-nav md-nav--secondary">
+
+<nav class="md-nav md-nav--secondary" aria-label="Table of contents">
+
- <label class="md-nav__title" for="__toc">Table of contents</label>
- <ul class="md-nav__list" data-md-scrollfix>
+ <label class="md-nav__title" for="__toc">
+ <span class="md-nav__icon md-icon"></span>
+ Table of contents
+ </label>
+ <ul class="md-nav__list" data-md-component="toc" data-md-scrollfix>
<li class="md-nav__item">
<a href="#synopsis" class="md-nav__link">
@@ -980,200 +1031,222 @@
</li>
-
-
-
-
</ul>
</nav>
-
- </li>
+
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-system_interface.html" title="System Interface" class="md-nav__link">
- System Interface
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-system_interface.html" class="md-nav__link">
+ System Interface
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-module_management.html" class="md-nav__link">
+ Module Management
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-module_management.html" title="Module Management" class="md-nav__link">
- Module Management
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-gzip.html" title="GZIP Streams" class="md-nav__link">
- GZIP Streams
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-gzip.html" class="md-nav__link">
+ GZIP Streams
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-lzw.html" title="LZW Streams" class="md-nav__link">
- LZW Streams
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-lzw.html" class="md-nav__link">
+ LZW Streams
+ </a>
+ </li>
+
-
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-bzip2.html" class="md-nav__link">
+ BZIP2 Streams
+ </a>
+ </li>
+
- <li class="md-nav__item">
- <a href="ft2-bzip2.html" title="BZIP2 Streams" class="md-nav__link">
- BZIP2 Streams
- </a>
- </li>
+
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-debugging_apis.html" class="md-nav__link">
+ External Debugging APIs
+ </a>
+ </li>
+
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-9" type="checkbox" id="nav-9">
+
+
+
- <label class="md-nav__link" for="nav-9">
- Error Codes
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-9">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_9" type="checkbox" id="__nav_9" >
+
+ <label class="md-nav__link" for="__nav_9">
Error Codes
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
+ <nav class="md-nav" aria-label="Error Codes" data-md-level="1">
+ <label class="md-nav__title" for="__nav_9">
+ <span class="md-nav__icon md-icon"></span>
+ Error Codes
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-error_enumerations.html" title="Error Enumerations" class="md-nav__link">
- Error Enumerations
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-error_enumerations.html" class="md-nav__link">
+ Error Enumerations
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-error_code_values.html" class="md-nav__link">
+ Error Code Values
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-error_code_values.html" title="Error Code Values" class="md-nav__link">
- Error Code Values
- </a>
- </li>
-
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-10" type="checkbox" id="nav-10">
+
+
+
- <label class="md-nav__link" for="nav-10">
- Miscellaneous
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-10">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_10" type="checkbox" id="__nav_10" >
+
+ <label class="md-nav__link" for="__nav_10">
Miscellaneous
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
-
+ <nav class="md-nav" aria-label="Miscellaneous" data-md-level="1">
+ <label class="md-nav__title" for="__nav_10">
+ <span class="md-nav__icon md-icon"></span>
+ Miscellaneous
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
-
-
-
- <li class="md-nav__item">
- <a href="ft2-gx_validation.html" title="TrueTypeGX/AAT Validation" class="md-nav__link">
- TrueTypeGX/AAT Validation
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-gx_validation.html" class="md-nav__link">
+ TrueTypeGX/AAT Validation
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-incremental.html" title="Incremental Loading" class="md-nav__link">
- Incremental Loading
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-incremental.html" class="md-nav__link">
+ Incremental Loading
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-truetype_engine.html" title="The TrueType Engine" class="md-nav__link">
- The TrueType Engine
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-truetype_engine.html" class="md-nav__link">
+ The TrueType Engine
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-ot_validation.html" class="md-nav__link">
+ OpenType Validation
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-ot_validation.html" title="OpenType Validation" class="md-nav__link">
- OpenType Validation
- </a>
- </li>
-
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
</ul>
@@ -1183,18 +1256,23 @@
</div>
- <div class="md-sidebar md-sidebar--secondary" data-md-component="toc">
+
+ <div class="md-sidebar md-sidebar--secondary" data-md-component="sidebar" data-md-type="toc" >
<div class="md-sidebar__scrollwrap">
<div class="md-sidebar__inner">
-<nav class="md-nav md-nav--secondary">
+<nav class="md-nav md-nav--secondary" aria-label="Table of contents">
+
- <label class="md-nav__title" for="__toc">Table of contents</label>
- <ul class="md-nav__list" data-md-scrollfix>
+ <label class="md-nav__title" for="__toc">
+ <span class="md-nav__icon md-icon"></span>
+ Table of contents
+ </label>
+ <ul class="md-nav__list" data-md-component="toc" data-md-scrollfix>
<li class="md-nav__item">
<a href="#synopsis" class="md-nav__link">
@@ -1357,10 +1435,6 @@
</li>
-
-
-
-
</ul>
</nav>
@@ -1369,7 +1443,7 @@
</div>
- <div class="md-content">
+ <div class="md-content" data-md-component="content">
<article class="md-content__inner md-typeset">
@@ -1403,7 +1477,6 @@
<p>These values determine how two joining lines are rendered in a stroker.</p>
<h4>values</h4>
-
<table class="fields long">
<tr><td class="val" id="ft_stroker_linejoin_round">FT_STROKER_LINEJOIN_ROUND</td><td class="desc">
<p>Used to render rounded line joins. Circular arcs are used to join two lines smoothly.</p>
@@ -1437,7 +1510,6 @@
<p>These values determine how the end of opened sub-paths are rendered in a stroke.</p>
<h4>values</h4>
-
<table class="fields">
<tr><td class="val" id="ft_stroker_linecap_butt">FT_STROKER_LINECAP_BUTT</td><td class="desc">
<p>The end of lines is rendered as a full stop on the last point itself.</p>
@@ -1464,7 +1536,6 @@
<p>These values are used to select a given stroke border in <code><a href="ft2-glyph_stroker.html#ft_stroker_getbordercounts">FT_Stroker_GetBorderCounts</a></code> and <code><a href="ft2-glyph_stroker.html#ft_stroker_exportborder">FT_Stroker_ExportBorder</a></code>.</p>
<h4>values</h4>
-
<table class="fields">
<tr><td class="val" id="ft_stroker_border_left">FT_STROKER_BORDER_LEFT</td><td class="desc">
<p>Select the left border, relative to the drawing direction.</p>
@@ -1488,7 +1559,6 @@
<p>Retrieve the <code><a href="ft2-glyph_stroker.html#ft_strokerborder">FT_StrokerBorder</a></code> value corresponding to the &lsquo;inside&rsquo; borders of a given outline.</p>
<h4>input</h4>
-
<table class="fields">
<tr><td class="val" id="outline">outline</td><td class="desc">
<p>The source outline handle.</p>
@@ -1508,7 +1578,6 @@
<p>Retrieve the <code><a href="ft2-glyph_stroker.html#ft_strokerborder">FT_StrokerBorder</a></code> value corresponding to the &lsquo;outside&rsquo; borders of a given outline.</p>
<h4>input</h4>
-
<table class="fields">
<tr><td class="val" id="outline">outline</td><td class="desc">
<p>The source outline handle.</p>
@@ -1530,7 +1599,6 @@
<p>Stroke a given outline glyph object with a given stroker.</p>
<h4>inout</h4>
-
<table class="fields">
<tr><td class="val" id="pglyph">pglyph</td><td class="desc">
<p>Source glyph handle on input, new glyph handle on output.</p>
@@ -1538,7 +1606,6 @@
</table>
<h4>input</h4>
-
<table class="fields">
<tr><td class="val" id="stroker">stroker</td><td class="desc">
<p>A stroker handle.</p>
@@ -1568,7 +1635,6 @@
<p>Stroke a given outline glyph object with a given stroker, but only return either its inside or outside border.</p>
<h4>inout</h4>
-
<table class="fields">
<tr><td class="val" id="pglyph">pglyph</td><td class="desc">
<p>Source glyph handle on input, new glyph handle on output.</p>
@@ -1576,7 +1642,6 @@
</table>
<h4>input</h4>
-
<table class="fields">
<tr><td class="val" id="stroker">stroker</td><td class="desc">
<p>A stroker handle.</p>
@@ -1607,7 +1672,6 @@
<p>Create a new stroker object.</p>
<h4>input</h4>
-
<table class="fields">
<tr><td class="val" id="library">library</td><td class="desc">
<p>FreeType library handle.</p>
@@ -1615,7 +1679,6 @@
</table>
<h4>output</h4>
-
<table class="fields">
<tr><td class="val" id="astroker">astroker</td><td class="desc">
<p>A new stroker object handle. <code>NULL</code> in case of error.</p>
@@ -1639,7 +1702,6 @@
<p>Reset a stroker object's attributes.</p>
<h4>input</h4>
-
<table class="fields">
<tr><td class="val" id="stroker">stroker</td><td class="desc">
<p>The target stroker handle.</p>
@@ -1673,7 +1735,6 @@
<p>Reset a stroker object without changing its attributes. You should call this function before beginning a new series of calls to <code><a href="ft2-glyph_stroker.html#ft_stroker_beginsubpath">FT_Stroker_BeginSubPath</a></code> or <code><a href="ft2-glyph_stroker.html#ft_stroker_endsubpath">FT_Stroker_EndSubPath</a></code>.</p>
<h4>input</h4>
-
<table class="fields">
<tr><td class="val" id="stroker">stroker</td><td class="desc">
<p>The target stroker handle.</p>
@@ -1692,7 +1753,6 @@
<p>A convenience function used to parse a whole outline with the stroker. The resulting outline(s) can be retrieved later by functions like <code><a href="ft2-glyph_stroker.html#ft_stroker_getcounts">FT_Stroker_GetCounts</a></code> and <code><a href="ft2-glyph_stroker.html#ft_stroker_export">FT_Stroker_Export</a></code>.</p>
<h4>input</h4>
-
<table class="fields">
<tr><td class="val" id="stroker">stroker</td><td class="desc">
<p>The target stroker handle.</p>
@@ -1723,7 +1783,6 @@
<p>Destroy a stroker object.</p>
<h4>input</h4>
-
<table class="fields">
<tr><td class="val" id="stroker">stroker</td><td class="desc">
<p>A stroker handle. Can be <code>NULL</code>.</p>
@@ -1742,7 +1801,6 @@
<p>Start a new sub-path in the stroker.</p>
<h4>input</h4>
-
<table class="fields">
<tr><td class="val" id="stroker">stroker</td><td class="desc">
<p>The target stroker handle.</p>
@@ -1771,7 +1829,6 @@
<p>Close the current sub-path in the stroker.</p>
<h4>input</h4>
-
<table class="fields">
<tr><td class="val" id="stroker">stroker</td><td class="desc">
<p>The target stroker handle.</p>
@@ -1795,7 +1852,6 @@
<p>&lsquo;Draw&rsquo; a single line segment in the stroker's current sub-path, from the last position.</p>
<h4>input</h4>
-
<table class="fields">
<tr><td class="val" id="stroker">stroker</td><td class="desc">
<p>The target stroker handle.</p>
@@ -1823,7 +1879,6 @@
<p>&lsquo;Draw&rsquo; a single quadratic Bezier in the stroker's current sub-path, from the last position.</p>
<h4>input</h4>
-
<table class="fields">
<tr><td class="val" id="stroker">stroker</td><td class="desc">
<p>The target stroker handle.</p>
@@ -1855,7 +1910,6 @@
<p>&lsquo;Draw&rsquo; a single cubic Bezier in the stroker's current sub-path, from the last position.</p>
<h4>input</h4>
-
<table class="fields">
<tr><td class="val" id="stroker">stroker</td><td class="desc">
<p>The target stroker handle.</p>
@@ -1890,7 +1944,6 @@
<p>Call this function once you have finished parsing your paths with the stroker. It returns the number of points and contours necessary to export one of the &lsquo;border&rsquo; or &lsquo;stroke&rsquo; outlines generated by the stroker.</p>
<h4>input</h4>
-
<table class="fields">
<tr><td class="val" id="stroker">stroker</td><td class="desc">
<p>The target stroker handle.</p>
@@ -1901,7 +1954,6 @@
</table>
<h4>output</h4>
-
<table class="fields">
<tr><td class="val" id="anum_points">anum_points</td><td class="desc">
<p>The number of points.</p>
@@ -1932,7 +1984,6 @@
<p>Call this function after <code><a href="ft2-glyph_stroker.html#ft_stroker_getbordercounts">FT_Stroker_GetBorderCounts</a></code> to export the corresponding border to your own <code><a href="ft2-outline_processing.html#ft_outline">FT_Outline</a></code> structure.</p>
<p>Note that this function appends the border points and contours to your outline, but does not try to resize its arrays.</p>
<h4>input</h4>
-
<table class="fields">
<tr><td class="val" id="stroker">stroker</td><td class="desc">
<p>The target stroker handle.</p>
@@ -1963,7 +2014,6 @@
<p>Call this function once you have finished parsing your paths with the stroker. It returns the number of points and contours necessary to export all points/borders from the stroked outline/path.</p>
<h4>input</h4>
-
<table class="fields">
<tr><td class="val" id="stroker">stroker</td><td class="desc">
<p>The target stroker handle.</p>
@@ -1971,7 +2021,6 @@
</table>
<h4>output</h4>
-
<table class="fields">
<tr><td class="val" id="anum_points">anum_points</td><td class="desc">
<p>The number of points.</p>
@@ -1996,7 +2045,6 @@
<p>Call this function after <code><a href="ft2-glyph_stroker.html#ft_stroker_getbordercounts">FT_Stroker_GetBorderCounts</a></code> to export all borders to your own <code><a href="ft2-outline_processing.html#ft_outline">FT_Outline</a></code> structure.</p>
<p>Note that this function appends the border points and contours to your outline, but does not try to resize its arrays.</p>
<h4>input</h4>
-
<table class="fields">
<tr><td class="val" id="stroker">stroker</td><td class="desc">
<p>The target stroker handle.</p>
@@ -2008,9 +2056,6 @@
<hr>
-
-
-
@@ -2020,59 +2065,60 @@
</article>
</div>
</div>
+
</main>
<footer class="md-footer">
- <div class="md-footer-nav">
- <nav class="md-footer-nav__inner md-grid">
+ <nav class="md-footer__inner md-grid" aria-label="Footer">
+
- <a href="ft2-raster.html" title="Scanline Converter" class="md-flex md-footer-nav__link md-footer-nav__link--prev" rel="prev">
- <div class="md-flex__cell md-flex__cell--shrink">
- <i class="md-icon md-icon--arrow-back md-footer-nav__button"></i>
- </div>
- <div class="md-flex__cell md-flex__cell--stretch md-footer-nav__title">
- <span class="md-flex__ellipsis">
- <span class="md-footer-nav__direction">
- Previous
- </span>
- Scanline Converter
+ <a href="ft2-raster.html" class="md-footer__link md-footer__link--prev" aria-label="Previous: Scanline Converter" rel="prev">
+ <div class="md-footer__button md-icon">
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M20 11v2H8l5.5 5.5-1.42 1.42L4.16 12l7.92-7.92L13.5 5.5 8 11h12z"/></svg>
+ </div>
+ <div class="md-footer__title">
+ <div class="md-ellipsis">
+ <span class="md-footer__direction">
+ Previous
</span>
+ Scanline Converter
</div>
- </a>
-
+ </div>
+ </a>
+
+
- <a href="ft2-system_interface.html" title="System Interface" class="md-flex md-footer-nav__link md-footer-nav__link--next" rel="next">
- <div class="md-flex__cell md-flex__cell--stretch md-footer-nav__title">
- <span class="md-flex__ellipsis">
- <span class="md-footer-nav__direction">
- Next
- </span>
- System Interface
+ <a href="ft2-system_interface.html" class="md-footer__link md-footer__link--next" aria-label="Next: System Interface" rel="next">
+ <div class="md-footer__title">
+ <div class="md-ellipsis">
+ <span class="md-footer__direction">
+ Next
</span>
+ System Interface
</div>
- <div class="md-flex__cell md-flex__cell--shrink">
- <i class="md-icon md-icon--arrow-forward md-footer-nav__button"></i>
- </div>
- </a>
-
- </nav>
- </div>
+ </div>
+ <div class="md-footer__button md-icon">
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M4 11v2h12l-5.5 5.5 1.42 1.42L19.84 12l-7.92-7.92L10.5 5.5 16 11H4z"/></svg>
+ </div>
+ </a>
+
+ </nav>
<div class="md-footer-meta md-typeset">
<div class="md-footer-meta__inner md-grid">
<div class="md-footer-copyright">
<div class="md-footer-copyright__highlight">
- Copyright 2020 <a href = "https://www.freetype.org/license.html">The FreeType Project</a>.
+ Copyright 2021 <a href = "https://www.freetype.org/license.html">The FreeType Project</a>.
</div>
- powered by
- <a href="https://www.mkdocs.org" target="_blank" rel="noopener">MkDocs</a>
- and
+ Made with
<a href="https://squidfunk.github.io/mkdocs-material/" target="_blank" rel="noopener">
- Material for MkDocs</a>
+ Material for MkDocs
+ </a>
+
</div>
</div>
@@ -2080,10 +2126,13 @@
</footer>
</div>
+ <div class="md-dialog" data-md-component="dialog">
+ <div class="md-dialog__inner md-typeset"></div>
+ </div>
+ <script id="__config" type="application/json">{"base": ".", "features": [], "translations": {"clipboard.copy": "Copy to clipboard", "clipboard.copied": "Copied to clipboard", "search.config.lang": "en", "search.config.pipeline": "trimmer, stopWordFilter", "search.config.separator": "[\\s\\-]+", "search.placeholder": "Search", "search.result.placeholder": "Type to start searching", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.term.missing": "Missing", "select.version.title": "Select version"}, "search": "assets/javascripts/workers/search.477d984a.min.js", "version": null}</script>
- <script src="assets/javascripts/application.c33a9706.js"></script>
-
- <script>app.initialize({version:"1.1",url:{base:"."}})</script>
+
+ <script src="assets/javascripts/bundle.82b56eb2.min.js"></script>
<script src="javascripts/extra.js"></script>
diff --git a/freetype/docs/reference/ft2-glyph_variants.html b/freetype/docs/reference/ft2-glyph_variants.html
index 144fc2f3..887d7de1 100644
--- a/freetype/docs/reference/ft2-glyph_variants.html
+++ b/freetype/docs/reference/ft2-glyph_variants.html
@@ -1,145 +1,136 @@
-
-
-
<!doctype html>
<html lang="en" class="no-js">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
- <meta http-equiv="x-ua-compatible" content="ie=edge">
- <meta name="description" content="API Reference Documentation for FreeType-2.10.4">
+ <meta name="description" content="API Reference Documentation for FreeType-2.11.1">
<meta name="author" content="FreeType Contributors">
- <meta name="lang:clipboard.copy" content="Copy to clipboard">
-
- <meta name="lang:clipboard.copied" content="Copied to clipboard">
-
- <meta name="lang:search.language" content="en">
-
- <meta name="lang:search.pipeline.stopwords" content="True">
-
- <meta name="lang:search.pipeline.trimmer" content="True">
-
- <meta name="lang:search.result.none" content="No matching documents">
-
- <meta name="lang:search.result.one" content="1 matching document">
-
- <meta name="lang:search.result.other" content="# matching documents">
-
- <meta name="lang:search.tokenizer" content="[\s\-]+">
-
- <link rel="shortcut icon" href="images/favico.ico">
- <meta name="generator" content="mkdocs-1.1, mkdocs-material-4.6.3">
+ <link rel="icon" href="images/favico.ico">
+ <meta name="generator" content="mkdocs-1.2.1, mkdocs-material-7.1.9">
- <title>Unicode Variation Sequences - FreeType-2.10.4 API Reference</title>
+ <title>Unicode Variation Sequences - FreeType-2.11.1 API Reference</title>
- <link rel="stylesheet" href="assets/stylesheets/application.adb8469c.css">
-
- <link rel="stylesheet" href="assets/stylesheets/application-palette.a8b3c06d.css">
-
+ <link rel="stylesheet" href="assets/stylesheets/main.ca7ac06f.min.css">
+ <link rel="stylesheet" href="assets/stylesheets/palette.f1a3b89f.min.css">
+
+
+
+ <meta name="theme-color" content="#4cae4f">
- <meta name="theme-color" content="#4caf50">
- <script src="assets/javascripts/modernizr.86422ebf.js"></script>
-
- <link href="https://fonts.gstatic.com" rel="preconnect" crossorigin>
+
+ <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Noto+Serif:300,400,400i,700%7CRoboto+Mono&display=fallback">
- <style>body,input{font-family:"Noto Serif","Helvetica Neue",Helvetica,Arial,sans-serif}code,kbd,pre{font-family:"Roboto Mono","Courier New",Courier,monospace}</style>
+ <style>:root{--md-text-font-family:"Noto Serif";--md-code-font-family:"Roboto Mono"}</style>
- <link rel="stylesheet" href="assets/fonts/material-icons.css">
<link rel="stylesheet" href="stylesheets/extra.css">
+
+
</head>
+
+
+
+
- <body dir="ltr" data-md-color-primary="green" data-md-color-accent="green">
+ <body dir="ltr" data-md-color-scheme="" data-md-color-primary="green" data-md-color-accent="green">
- <svg class="md-svg">
- <defs>
-
-
- </defs>
- </svg>
- <input class="md-toggle" data-md-toggle="drawer" type="checkbox" id="__drawer" autocomplete="off">
- <input class="md-toggle" data-md-toggle="search" type="checkbox" id="__search" autocomplete="off">
- <label class="md-overlay" data-md-component="overlay" for="__drawer"></label>
- <a href="#unicode-variation-sequences" tabindex="0" class="md-skip">
- Skip to content
- </a>
+ <script>function __prefix(e){return new URL(".",location).pathname+"."+e}function __get(e,t=localStorage){return JSON.parse(t.getItem(__prefix(e)))}</script>
+ <input class="md-toggle" data-md-toggle="drawer" type="checkbox" id="__drawer" autocomplete="off">
+ <input class="md-toggle" data-md-toggle="search" type="checkbox" id="__search" autocomplete="off">
+ <label class="md-overlay" for="__drawer"></label>
+ <div data-md-component="skip">
+
+
+ <a href="#unicode-variation-sequences" class="md-skip">
+ Skip to content
+ </a>
+
+ </div>
+ <div data-md-component="announce">
+
+ </div>
<header class="md-header" data-md-component="header">
- <nav class="md-header-nav md-grid">
- <div class="md-flex">
- <div class="md-flex__cell md-flex__cell--shrink">
- <a href="." title="FreeType-2.10.4 API Reference" aria-label="FreeType-2.10.4 API Reference" class="md-header-nav__button md-logo">
-
- <img alt="logo" src="images/favico.ico" width="24" height="24">
-
- </a>
- </div>
- <div class="md-flex__cell md-flex__cell--shrink">
- <label class="md-icon md-icon--menu md-header-nav__button" for="__drawer"></label>
- </div>
- <div class="md-flex__cell md-flex__cell--stretch">
- <div class="md-flex__ellipsis md-header-nav__title" data-md-component="title">
-
- <span class="md-header-nav__topic">
- FreeType-2.10.4 API Reference
- </span>
- <span class="md-header-nav__topic">
-
- Unicode Variation Sequences
-
- </span>
-
+ <nav class="md-header__inner md-grid" aria-label="Header">
+ <a href="index.html" title="FreeType-2.11.1 API Reference" class="md-header__button md-logo" aria-label="FreeType-2.11.1 API Reference" data-md-component="logo">
+
+ <img src="images/favico.ico" alt="logo">
+
+ </a>
+ <label class="md-header__button md-icon" for="__drawer">
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M3 6h18v2H3V6m0 5h18v2H3v-2m0 5h18v2H3v-2z"/></svg>
+ </label>
+ <div class="md-header__title" data-md-component="header-title">
+ <div class="md-header__ellipsis">
+ <div class="md-header__topic">
+ <span class="md-ellipsis">
+ FreeType-2.11.1 API Reference
+ </span>
+ </div>
+ <div class="md-header__topic" data-md-component="header-topic">
+ <span class="md-ellipsis">
+
+ Unicode Variation Sequences
+
+ </span>
</div>
</div>
- <div class="md-flex__cell md-flex__cell--shrink">
-
- <label class="md-icon md-icon--search md-header-nav__button" for="__search"></label>
-
+ </div>
+
+
+
+ <label class="md-header__button md-icon" for="__search">
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M9.5 3A6.5 6.5 0 0 1 16 9.5c0 1.61-.59 3.09-1.56 4.23l.27.27h.79l5 5-1.5 1.5-5-5v-.79l-.27-.27A6.516 6.516 0 0 1 9.5 16 6.5 6.5 0 0 1 3 9.5 6.5 6.5 0 0 1 9.5 3m0 2C7 5 5 7 5 9.5S7 14 9.5 14 14 12 14 9.5 12 5 9.5 5z"/></svg>
+ </label>
+
<div class="md-search" data-md-component="search" role="dialog">
<label class="md-search__overlay" for="__search"></label>
<div class="md-search__inner" role="search">
<form class="md-search__form" name="search">
- <input type="text" class="md-search__input" aria-label="search" name="query" placeholder="Search" autocapitalize="off" autocorrect="off" autocomplete="off" spellcheck="false" data-md-component="query" data-md-state="active">
- <label class="md-icon md-search__icon" for="__search"></label>
- <button type="reset" class="md-icon md-search__icon" data-md-component="reset" tabindex="-1">
- &#xE5CD;
+ <input type="text" class="md-search__input" name="query" aria-label="Search" placeholder="Search" autocapitalize="off" autocorrect="off" autocomplete="off" spellcheck="false" data-md-component="search-query" data-md-state="active" required>
+ <label class="md-search__icon md-icon" for="__search">
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M9.5 3A6.5 6.5 0 0 1 16 9.5c0 1.61-.59 3.09-1.56 4.23l.27.27h.79l5 5-1.5 1.5-5-5v-.79l-.27-.27A6.516 6.516 0 0 1 9.5 16 6.5 6.5 0 0 1 3 9.5 6.5 6.5 0 0 1 9.5 3m0 2C7 5 5 7 5 9.5S7 14 9.5 14 14 12 14 9.5 12 5 9.5 5z"/></svg>
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M20 11v2H8l5.5 5.5-1.42 1.42L4.16 12l7.92-7.92L13.5 5.5 8 11h12z"/></svg>
+ </label>
+ <button type="reset" class="md-search__icon md-icon" aria-label="Clear" tabindex="-1">
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z"/></svg>
</button>
</form>
<div class="md-search__output">
<div class="md-search__scrollwrap" data-md-scrollfix>
- <div class="md-search-result" data-md-component="result">
+ <div class="md-search-result" data-md-component="search-result">
<div class="md-search-result__meta">
- Type to start searching
+ Initializing search
</div>
<ol class="md-search-result__list"></ol>
</div>
@@ -147,33 +138,35 @@
</div>
</div>
</div>
-
- </div>
-
- </div>
+
+
</nav>
</header>
- <div class="md-container">
+ <div class="md-container" data-md-component="container">
-
+
- <main class="md-main" role="main">
- <div class="md-main__inner md-grid" data-md-component="container">
+ <main class="md-main" data-md-component="main">
+ <div class="md-main__inner md-grid">
- <div class="md-sidebar md-sidebar--primary" data-md-component="navigation">
+
+ <div class="md-sidebar md-sidebar--primary" data-md-component="sidebar" data-md-type="navigation" >
<div class="md-sidebar__scrollwrap">
<div class="md-sidebar__inner">
- <nav class="md-nav md-nav--primary" data-md-level="0">
- <label class="md-nav__title md-nav__title--site" for="__drawer">
- <a href="." title="FreeType-2.10.4 API Reference" class="md-nav__button md-logo">
-
- <img alt="logo" src="images/favico.ico" width="48" height="48">
+
+
+
+<nav class="md-nav md-nav--primary" aria-label="Navigation" data-md-level="0">
+ <label class="md-nav__title" for="__drawer">
+ <a href="index.html" title="FreeType-2.11.1 API Reference" class="md-nav__button md-logo" aria-label="FreeType-2.11.1 API Reference" data-md-component="logo">
+ <img src="images/favico.ico" alt="logo">
+
</a>
- FreeType-2.10.4 API Reference
+ FreeType-2.11.1 API Reference
</label>
<ul class="md-nav__list" data-md-scrollfix>
@@ -182,72 +175,96 @@
-
- <li class="md-nav__item">
- <a href="index.html" title="TOC" class="md-nav__link">
- TOC
- </a>
- </li>
+
+
+
+ <li class="md-nav__item">
+ <a href="index.html" class="md-nav__link">
+ TOC
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-index.html" title="Index" class="md-nav__link">
- Index
- </a>
- </li>
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-index.html" class="md-nav__link">
+ Index
+ </a>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-3" type="checkbox" id="nav-3">
+
+
+
- <label class="md-nav__link" for="nav-3">
- General Remarks
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-3">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_3" type="checkbox" id="__nav_3" >
+
+ <label class="md-nav__link" for="__nav_3">
General Remarks
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
+ <nav class="md-nav" aria-label="General Remarks" data-md-level="1">
+ <label class="md-nav__title" for="__nav_3">
+ <span class="md-nav__icon md-icon"></span>
+ General Remarks
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-header_inclusion.html" title="FreeType's header inclusion scheme" class="md-nav__link">
- FreeType's header inclusion scheme
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-preamble.html" class="md-nav__link">
+ Preamble
+ </a>
+ </li>
+
-
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-header_inclusion.html" class="md-nav__link">
+ FreeType's header inclusion scheme
+ </a>
+ </li>
+
- <li class="md-nav__item">
- <a href="ft2-user_allocation.html" title="User allocation" class="md-nav__link">
- User allocation
- </a>
- </li>
+
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-user_allocation.html" class="md-nav__link">
+ User allocation
+ </a>
+ </li>
+
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
@@ -255,89 +272,99 @@
-
-
- <li class="md-nav__item md-nav__item--active md-nav__item--nested">
+
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-4" type="checkbox" id="nav-4" checked>
+
+
- <label class="md-nav__link" for="nav-4">
- Core API
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-4">
+ <li class="md-nav__item md-nav__item--active md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_4" type="checkbox" id="__nav_4" checked>
+
+ <label class="md-nav__link" for="__nav_4">
Core API
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
+ <nav class="md-nav" aria-label="Core API" data-md-level="1">
+ <label class="md-nav__title" for="__nav_4">
+ <span class="md-nav__icon md-icon"></span>
+ Core API
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-version.html" title="FreeType Version" class="md-nav__link">
- FreeType Version
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-version.html" class="md-nav__link">
+ FreeType Version
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-basic_types.html" title="Basic Data Types" class="md-nav__link">
- Basic Data Types
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-basic_types.html" class="md-nav__link">
+ Basic Data Types
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-base_interface.html" title="Base Interface" class="md-nav__link">
- Base Interface
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-base_interface.html" class="md-nav__link">
+ Base Interface
+ </a>
+ </li>
+
-
-
-
-
+
+
-
-
- <li class="md-nav__item md-nav__item--active">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="toc" type="checkbox" id="__toc">
+
+
+ <li class="md-nav__item md-nav__item--active">
-
-
- <label class="md-nav__link md-nav__link--active" for="__toc">
+ <input class="md-nav__toggle md-toggle" data-md-toggle="toc" type="checkbox" id="__toc">
+
+
+
+
+
+ <label class="md-nav__link md-nav__link--active" for="__toc">
+ Unicode Variation Sequences
+ <span class="md-nav__icon md-icon"></span>
+ </label>
+
+ <a href="ft2-glyph_variants.html" class="md-nav__link md-nav__link--active">
Unicode Variation Sequences
- </label>
-
- <a href="ft2-glyph_variants.html" title="Unicode Variation Sequences" class="md-nav__link md-nav__link--active">
- Unicode Variation Sequences
- </a>
-
+ </a>
-<nav class="md-nav md-nav--secondary">
+
+<nav class="md-nav md-nav--secondary" aria-label="Table of contents">
+
- <label class="md-nav__title" for="__toc">Table of contents</label>
- <ul class="md-nav__list" data-md-scrollfix>
+ <label class="md-nav__title" for="__toc">
+ <span class="md-nav__icon md-icon"></span>
+ Table of contents
+ </label>
+ <ul class="md-nav__list" data-md-component="toc" data-md-scrollfix>
<li class="md-nav__item">
<a href="#synopsis" class="md-nav__link">
@@ -381,680 +408,726 @@
</li>
-
-
-
-
</ul>
</nav>
-
- </li>
+
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-color_management.html" title="Glyph Color Management" class="md-nav__link">
- Glyph Color Management
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-color_management.html" class="md-nav__link">
+ Glyph Color Management
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-layer_management.html" class="md-nav__link">
+ Glyph Layer Management
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-layer_management.html" title="Glyph Layer Management" class="md-nav__link">
- Glyph Layer Management
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-glyph_management.html" title="Glyph Management" class="md-nav__link">
- Glyph Management
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-glyph_management.html" class="md-nav__link">
+ Glyph Management
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-mac_specific.html" title="Mac Specific Interface" class="md-nav__link">
- Mac Specific Interface
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-mac_specific.html" class="md-nav__link">
+ Mac Specific Interface
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-sizes_management.html" title="Size Management" class="md-nav__link">
- Size Management
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-sizes_management.html" class="md-nav__link">
+ Size Management
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-header_file_macros.html" class="md-nav__link">
+ Header File Macros
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-header_file_macros.html" title="Header File Macros" class="md-nav__link">
- Header File Macros
- </a>
- </li>
-
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-5" type="checkbox" id="nav-5">
+
+
+
- <label class="md-nav__link" for="nav-5">
- Format-Specific API
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-5">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_5" type="checkbox" id="__nav_5" >
+
+ <label class="md-nav__link" for="__nav_5">
Format-Specific API
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
-
-
+ <nav class="md-nav" aria-label="Format-Specific API" data-md-level="1">
+ <label class="md-nav__title" for="__nav_5">
+ <span class="md-nav__icon md-icon"></span>
+ Format-Specific API
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-multiple_masters.html" class="md-nav__link">
+ Multiple Masters
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-multiple_masters.html" title="Multiple Masters" class="md-nav__link">
- Multiple Masters
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-truetype_tables.html" title="TrueType Tables" class="md-nav__link">
- TrueType Tables
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-truetype_tables.html" class="md-nav__link">
+ TrueType Tables
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-type1_tables.html" class="md-nav__link">
+ Type 1 Tables
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-type1_tables.html" title="Type 1 Tables" class="md-nav__link">
- Type 1 Tables
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-sfnt_names.html" title="SFNT Names" class="md-nav__link">
- SFNT Names
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-sfnt_names.html" class="md-nav__link">
+ SFNT Names
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-bdf_fonts.html" class="md-nav__link">
+ BDF and PCF Files
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-bdf_fonts.html" title="BDF and PCF Files" class="md-nav__link">
- BDF and PCF Files
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-cid_fonts.html" title="CID Fonts" class="md-nav__link">
- CID Fonts
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-cid_fonts.html" class="md-nav__link">
+ CID Fonts
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-pfr_fonts.html" class="md-nav__link">
+ PFR Fonts
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-pfr_fonts.html" title="PFR Fonts" class="md-nav__link">
- PFR Fonts
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-winfnt_fonts.html" title="Window FNT Files" class="md-nav__link">
- Window FNT Files
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-winfnt_fonts.html" class="md-nav__link">
+ Window FNT Files
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-font_formats.html" class="md-nav__link">
+ Font Formats
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-font_formats.html" title="Font Formats" class="md-nav__link">
- Font Formats
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-gasp_table.html" title="Gasp Table" class="md-nav__link">
- Gasp Table
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-gasp_table.html" class="md-nav__link">
+ Gasp Table
+ </a>
+ </li>
+
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-6" type="checkbox" id="nav-6">
+
+
+
- <label class="md-nav__link" for="nav-6">
- Controlling FreeType Modules
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-6">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_6" type="checkbox" id="__nav_6" >
+
+ <label class="md-nav__link" for="__nav_6">
Controlling FreeType Modules
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
+ <nav class="md-nav" aria-label="Controlling FreeType Modules" data-md-level="1">
+ <label class="md-nav__title" for="__nav_6">
+ <span class="md-nav__icon md-icon"></span>
+ Controlling FreeType Modules
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-auto_hinter.html" title="The auto-hinter" class="md-nav__link">
- The auto-hinter
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-auto_hinter.html" class="md-nav__link">
+ The auto-hinter
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-cff_driver.html" class="md-nav__link">
+ The CFF driver
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-cff_driver.html" title="The CFF driver" class="md-nav__link">
- The CFF driver
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-t1_cid_driver.html" title="The Type 1 and CID drivers" class="md-nav__link">
- The Type 1 and CID drivers
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-t1_cid_driver.html" class="md-nav__link">
+ The Type 1 and CID drivers
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-tt_driver.html" class="md-nav__link">
+ The TrueType driver
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-tt_driver.html" title="The TrueType driver" class="md-nav__link">
- The TrueType driver
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-pcf_driver.html" title="The PCF driver" class="md-nav__link">
- The PCF driver
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-pcf_driver.html" class="md-nav__link">
+ The PCF driver
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-properties.html" class="md-nav__link">
+ Driver properties
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-properties.html" title="Driver properties" class="md-nav__link">
- Driver properties
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-parameter_tags.html" title="Parameter Tags" class="md-nav__link">
- Parameter Tags
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-parameter_tags.html" class="md-nav__link">
+ Parameter Tags
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-lcd_rendering.html" title="Subpixel Rendering" class="md-nav__link">
- Subpixel Rendering
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-lcd_rendering.html" class="md-nav__link">
+ Subpixel Rendering
+ </a>
+ </li>
+
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-7" type="checkbox" id="nav-7">
+
+
+
- <label class="md-nav__link" for="nav-7">
- Cache Sub-System
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-7">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_7" type="checkbox" id="__nav_7" >
+
+ <label class="md-nav__link" for="__nav_7">
Cache Sub-System
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
-
+ <nav class="md-nav" aria-label="Cache Sub-System" data-md-level="1">
+ <label class="md-nav__title" for="__nav_7">
+ <span class="md-nav__icon md-icon"></span>
+ Cache Sub-System
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
-
-
-
- <li class="md-nav__item">
- <a href="ft2-cache_subsystem.html" title="Cache Sub-System" class="md-nav__link">
- Cache Sub-System
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-cache_subsystem.html" class="md-nav__link">
+ Cache Sub-System
+ </a>
+ </li>
+
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-8" type="checkbox" id="nav-8">
+
+
+
- <label class="md-nav__link" for="nav-8">
- Support API
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-8">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_8" type="checkbox" id="__nav_8" >
+
+ <label class="md-nav__link" for="__nav_8">
Support API
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
-
+ <nav class="md-nav" aria-label="Support API" data-md-level="1">
+ <label class="md-nav__title" for="__nav_8">
+ <span class="md-nav__icon md-icon"></span>
+ Support API
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
-
-
-
- <li class="md-nav__item">
- <a href="ft2-computations.html" title="Computations" class="md-nav__link">
- Computations
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-computations.html" class="md-nav__link">
+ Computations
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-list_processing.html" title="List Processing" class="md-nav__link">
- List Processing
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-list_processing.html" class="md-nav__link">
+ List Processing
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-outline_processing.html" title="Outline Processing" class="md-nav__link">
- Outline Processing
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-outline_processing.html" class="md-nav__link">
+ Outline Processing
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-quick_advance.html" title="Quick retrieval of advance values" class="md-nav__link">
- Quick retrieval of advance values
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-quick_advance.html" class="md-nav__link">
+ Quick retrieval of advance values
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-bitmap_handling.html" title="Bitmap Handling" class="md-nav__link">
- Bitmap Handling
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-bitmap_handling.html" class="md-nav__link">
+ Bitmap Handling
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-raster.html" class="md-nav__link">
+ Scanline Converter
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-raster.html" title="Scanline Converter" class="md-nav__link">
- Scanline Converter
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-glyph_stroker.html" title="Glyph Stroker" class="md-nav__link">
- Glyph Stroker
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-glyph_stroker.html" class="md-nav__link">
+ Glyph Stroker
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-system_interface.html" class="md-nav__link">
+ System Interface
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-system_interface.html" title="System Interface" class="md-nav__link">
- System Interface
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-module_management.html" title="Module Management" class="md-nav__link">
- Module Management
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-module_management.html" class="md-nav__link">
+ Module Management
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-gzip.html" class="md-nav__link">
+ GZIP Streams
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-gzip.html" title="GZIP Streams" class="md-nav__link">
- GZIP Streams
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-lzw.html" title="LZW Streams" class="md-nav__link">
- LZW Streams
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-lzw.html" class="md-nav__link">
+ LZW Streams
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-bzip2.html" class="md-nav__link">
+ BZIP2 Streams
+ </a>
+ </li>
+
+
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-debugging_apis.html" class="md-nav__link">
+ External Debugging APIs
+ </a>
+ </li>
+
- <li class="md-nav__item">
- <a href="ft2-bzip2.html" title="BZIP2 Streams" class="md-nav__link">
- BZIP2 Streams
- </a>
- </li>
-
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-9" type="checkbox" id="nav-9">
+
+
+
- <label class="md-nav__link" for="nav-9">
- Error Codes
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-9">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_9" type="checkbox" id="__nav_9" >
+
+ <label class="md-nav__link" for="__nav_9">
Error Codes
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
-
+ <nav class="md-nav" aria-label="Error Codes" data-md-level="1">
+ <label class="md-nav__title" for="__nav_9">
+ <span class="md-nav__icon md-icon"></span>
+ Error Codes
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
-
-
-
- <li class="md-nav__item">
- <a href="ft2-error_enumerations.html" title="Error Enumerations" class="md-nav__link">
- Error Enumerations
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-error_enumerations.html" class="md-nav__link">
+ Error Enumerations
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-error_code_values.html" title="Error Code Values" class="md-nav__link">
- Error Code Values
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-error_code_values.html" class="md-nav__link">
+ Error Code Values
+ </a>
+ </li>
+
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-10" type="checkbox" id="nav-10">
+
+
+
- <label class="md-nav__link" for="nav-10">
- Miscellaneous
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-10">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_10" type="checkbox" id="__nav_10" >
+
+ <label class="md-nav__link" for="__nav_10">
Miscellaneous
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
-
+ <nav class="md-nav" aria-label="Miscellaneous" data-md-level="1">
+ <label class="md-nav__title" for="__nav_10">
+ <span class="md-nav__icon md-icon"></span>
+ Miscellaneous
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
-
-
-
- <li class="md-nav__item">
- <a href="ft2-gx_validation.html" title="TrueTypeGX/AAT Validation" class="md-nav__link">
- TrueTypeGX/AAT Validation
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-gx_validation.html" class="md-nav__link">
+ TrueTypeGX/AAT Validation
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-incremental.html" title="Incremental Loading" class="md-nav__link">
- Incremental Loading
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-incremental.html" class="md-nav__link">
+ Incremental Loading
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-truetype_engine.html" class="md-nav__link">
+ The TrueType Engine
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-truetype_engine.html" title="The TrueType Engine" class="md-nav__link">
- The TrueType Engine
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-ot_validation.html" title="OpenType Validation" class="md-nav__link">
- OpenType Validation
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-ot_validation.html" class="md-nav__link">
+ OpenType Validation
+ </a>
+ </li>
+
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
</ul>
@@ -1064,18 +1137,23 @@
</div>
- <div class="md-sidebar md-sidebar--secondary" data-md-component="toc">
+
+ <div class="md-sidebar md-sidebar--secondary" data-md-component="sidebar" data-md-type="toc" >
<div class="md-sidebar__scrollwrap">
<div class="md-sidebar__inner">
-<nav class="md-nav md-nav--secondary">
+<nav class="md-nav md-nav--secondary" aria-label="Table of contents">
+
- <label class="md-nav__title" for="__toc">Table of contents</label>
- <ul class="md-nav__list" data-md-scrollfix>
+ <label class="md-nav__title" for="__toc">
+ <span class="md-nav__icon md-icon"></span>
+ Table of contents
+ </label>
+ <ul class="md-nav__list" data-md-component="toc" data-md-scrollfix>
<li class="md-nav__item">
<a href="#synopsis" class="md-nav__link">
@@ -1119,10 +1197,6 @@
</li>
-
-
-
-
</ul>
</nav>
@@ -1131,7 +1205,7 @@
</div>
- <div class="md-content">
+ <div class="md-content" data-md-component="content">
<article class="md-content__inner md-typeset">
@@ -1158,7 +1232,6 @@
<p>Return the glyph index of a given character code as modified by the variation selector.</p>
<h4>input</h4>
-
<table class="fields">
<tr><td class="val" id="face">face</td><td class="desc">
<p>A handle to the source face object.</p>
@@ -1193,7 +1266,6 @@
<p>Check whether this variation of this Unicode character is the one to be found in the charmap.</p>
<h4>input</h4>
-
<table class="fields">
<tr><td class="val" id="face">face</td><td class="desc">
<p>A handle to the source face object.</p>
@@ -1225,7 +1297,6 @@
<p>Return a zero-terminated list of Unicode variation selectors found in the font.</p>
<h4>input</h4>
-
<table class="fields">
<tr><td class="val" id="face">face</td><td class="desc">
<p>A handle to the source face object.</p>
@@ -1252,7 +1323,6 @@
<p>Return a zero-terminated list of Unicode variation selectors found for the specified character code.</p>
<h4>input</h4>
-
<table class="fields">
<tr><td class="val" id="face">face</td><td class="desc">
<p>A handle to the source face object.</p>
@@ -1282,7 +1352,6 @@
<p>Return a zero-terminated list of Unicode character codes found for the specified variation selector.</p>
<h4>input</h4>
-
<table class="fields">
<tr><td class="val" id="face">face</td><td class="desc">
<p>A handle to the source face object.</p>
@@ -1303,9 +1372,6 @@
<p>2.3.6</p>
<hr>
-
-
-
@@ -1315,59 +1381,60 @@
</article>
</div>
</div>
+
</main>
<footer class="md-footer">
- <div class="md-footer-nav">
- <nav class="md-footer-nav__inner md-grid">
+ <nav class="md-footer__inner md-grid" aria-label="Footer">
+
- <a href="ft2-base_interface.html" title="Base Interface" class="md-flex md-footer-nav__link md-footer-nav__link--prev" rel="prev">
- <div class="md-flex__cell md-flex__cell--shrink">
- <i class="md-icon md-icon--arrow-back md-footer-nav__button"></i>
- </div>
- <div class="md-flex__cell md-flex__cell--stretch md-footer-nav__title">
- <span class="md-flex__ellipsis">
- <span class="md-footer-nav__direction">
- Previous
- </span>
- Base Interface
+ <a href="ft2-base_interface.html" class="md-footer__link md-footer__link--prev" aria-label="Previous: Base Interface" rel="prev">
+ <div class="md-footer__button md-icon">
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M20 11v2H8l5.5 5.5-1.42 1.42L4.16 12l7.92-7.92L13.5 5.5 8 11h12z"/></svg>
+ </div>
+ <div class="md-footer__title">
+ <div class="md-ellipsis">
+ <span class="md-footer__direction">
+ Previous
</span>
+ Base Interface
</div>
- </a>
-
+ </div>
+ </a>
+
+
- <a href="ft2-color_management.html" title="Glyph Color Management" class="md-flex md-footer-nav__link md-footer-nav__link--next" rel="next">
- <div class="md-flex__cell md-flex__cell--stretch md-footer-nav__title">
- <span class="md-flex__ellipsis">
- <span class="md-footer-nav__direction">
- Next
- </span>
- Glyph Color Management
+ <a href="ft2-color_management.html" class="md-footer__link md-footer__link--next" aria-label="Next: Glyph Color Management" rel="next">
+ <div class="md-footer__title">
+ <div class="md-ellipsis">
+ <span class="md-footer__direction">
+ Next
</span>
+ Glyph Color Management
</div>
- <div class="md-flex__cell md-flex__cell--shrink">
- <i class="md-icon md-icon--arrow-forward md-footer-nav__button"></i>
- </div>
- </a>
-
- </nav>
- </div>
+ </div>
+ <div class="md-footer__button md-icon">
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M4 11v2h12l-5.5 5.5 1.42 1.42L19.84 12l-7.92-7.92L10.5 5.5 16 11H4z"/></svg>
+ </div>
+ </a>
+
+ </nav>
<div class="md-footer-meta md-typeset">
<div class="md-footer-meta__inner md-grid">
<div class="md-footer-copyright">
<div class="md-footer-copyright__highlight">
- Copyright 2020 <a href = "https://www.freetype.org/license.html">The FreeType Project</a>.
+ Copyright 2021 <a href = "https://www.freetype.org/license.html">The FreeType Project</a>.
</div>
- powered by
- <a href="https://www.mkdocs.org" target="_blank" rel="noopener">MkDocs</a>
- and
+ Made with
<a href="https://squidfunk.github.io/mkdocs-material/" target="_blank" rel="noopener">
- Material for MkDocs</a>
+ Material for MkDocs
+ </a>
+
</div>
</div>
@@ -1375,10 +1442,13 @@
</footer>
</div>
+ <div class="md-dialog" data-md-component="dialog">
+ <div class="md-dialog__inner md-typeset"></div>
+ </div>
+ <script id="__config" type="application/json">{"base": ".", "features": [], "translations": {"clipboard.copy": "Copy to clipboard", "clipboard.copied": "Copied to clipboard", "search.config.lang": "en", "search.config.pipeline": "trimmer, stopWordFilter", "search.config.separator": "[\\s\\-]+", "search.placeholder": "Search", "search.result.placeholder": "Type to start searching", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.term.missing": "Missing", "select.version.title": "Select version"}, "search": "assets/javascripts/workers/search.477d984a.min.js", "version": null}</script>
- <script src="assets/javascripts/application.c33a9706.js"></script>
-
- <script>app.initialize({version:"1.1",url:{base:"."}})</script>
+
+ <script src="assets/javascripts/bundle.82b56eb2.min.js"></script>
<script src="javascripts/extra.js"></script>
diff --git a/freetype/docs/reference/ft2-gx_validation.html b/freetype/docs/reference/ft2-gx_validation.html
index 37e026f0..f3d6530a 100644
--- a/freetype/docs/reference/ft2-gx_validation.html
+++ b/freetype/docs/reference/ft2-gx_validation.html
@@ -1,145 +1,136 @@
-
-
-
<!doctype html>
<html lang="en" class="no-js">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
- <meta http-equiv="x-ua-compatible" content="ie=edge">
- <meta name="description" content="API Reference Documentation for FreeType-2.10.4">
+ <meta name="description" content="API Reference Documentation for FreeType-2.11.1">
<meta name="author" content="FreeType Contributors">
- <meta name="lang:clipboard.copy" content="Copy to clipboard">
-
- <meta name="lang:clipboard.copied" content="Copied to clipboard">
-
- <meta name="lang:search.language" content="en">
-
- <meta name="lang:search.pipeline.stopwords" content="True">
-
- <meta name="lang:search.pipeline.trimmer" content="True">
-
- <meta name="lang:search.result.none" content="No matching documents">
-
- <meta name="lang:search.result.one" content="1 matching document">
-
- <meta name="lang:search.result.other" content="# matching documents">
-
- <meta name="lang:search.tokenizer" content="[\s\-]+">
-
- <link rel="shortcut icon" href="images/favico.ico">
- <meta name="generator" content="mkdocs-1.1, mkdocs-material-4.6.3">
+ <link rel="icon" href="images/favico.ico">
+ <meta name="generator" content="mkdocs-1.2.1, mkdocs-material-7.1.9">
- <title>TrueTypeGX/AAT Validation - FreeType-2.10.4 API Reference</title>
+ <title>TrueTypeGX/AAT Validation - FreeType-2.11.1 API Reference</title>
- <link rel="stylesheet" href="assets/stylesheets/application.adb8469c.css">
-
- <link rel="stylesheet" href="assets/stylesheets/application-palette.a8b3c06d.css">
-
+ <link rel="stylesheet" href="assets/stylesheets/main.ca7ac06f.min.css">
+ <link rel="stylesheet" href="assets/stylesheets/palette.f1a3b89f.min.css">
+
+
+
+ <meta name="theme-color" content="#4cae4f">
- <meta name="theme-color" content="#4caf50">
- <script src="assets/javascripts/modernizr.86422ebf.js"></script>
-
- <link href="https://fonts.gstatic.com" rel="preconnect" crossorigin>
+
+ <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Noto+Serif:300,400,400i,700%7CRoboto+Mono&display=fallback">
- <style>body,input{font-family:"Noto Serif","Helvetica Neue",Helvetica,Arial,sans-serif}code,kbd,pre{font-family:"Roboto Mono","Courier New",Courier,monospace}</style>
+ <style>:root{--md-text-font-family:"Noto Serif";--md-code-font-family:"Roboto Mono"}</style>
- <link rel="stylesheet" href="assets/fonts/material-icons.css">
<link rel="stylesheet" href="stylesheets/extra.css">
+
+
</head>
+
+
+
+
- <body dir="ltr" data-md-color-primary="green" data-md-color-accent="green">
+ <body dir="ltr" data-md-color-scheme="" data-md-color-primary="green" data-md-color-accent="green">
- <svg class="md-svg">
- <defs>
-
-
- </defs>
- </svg>
- <input class="md-toggle" data-md-toggle="drawer" type="checkbox" id="__drawer" autocomplete="off">
- <input class="md-toggle" data-md-toggle="search" type="checkbox" id="__search" autocomplete="off">
- <label class="md-overlay" data-md-component="overlay" for="__drawer"></label>
- <a href="#truetypegxaat-validation" tabindex="0" class="md-skip">
- Skip to content
- </a>
+ <script>function __prefix(e){return new URL(".",location).pathname+"."+e}function __get(e,t=localStorage){return JSON.parse(t.getItem(__prefix(e)))}</script>
+ <input class="md-toggle" data-md-toggle="drawer" type="checkbox" id="__drawer" autocomplete="off">
+ <input class="md-toggle" data-md-toggle="search" type="checkbox" id="__search" autocomplete="off">
+ <label class="md-overlay" for="__drawer"></label>
+ <div data-md-component="skip">
+
+
+ <a href="#truetypegxaat-validation" class="md-skip">
+ Skip to content
+ </a>
+
+ </div>
+ <div data-md-component="announce">
+
+ </div>
<header class="md-header" data-md-component="header">
- <nav class="md-header-nav md-grid">
- <div class="md-flex">
- <div class="md-flex__cell md-flex__cell--shrink">
- <a href="." title="FreeType-2.10.4 API Reference" aria-label="FreeType-2.10.4 API Reference" class="md-header-nav__button md-logo">
-
- <img alt="logo" src="images/favico.ico" width="24" height="24">
-
- </a>
- </div>
- <div class="md-flex__cell md-flex__cell--shrink">
- <label class="md-icon md-icon--menu md-header-nav__button" for="__drawer"></label>
- </div>
- <div class="md-flex__cell md-flex__cell--stretch">
- <div class="md-flex__ellipsis md-header-nav__title" data-md-component="title">
-
- <span class="md-header-nav__topic">
- FreeType-2.10.4 API Reference
- </span>
- <span class="md-header-nav__topic">
-
- TrueTypeGX/AAT Validation
-
- </span>
-
+ <nav class="md-header__inner md-grid" aria-label="Header">
+ <a href="index.html" title="FreeType-2.11.1 API Reference" class="md-header__button md-logo" aria-label="FreeType-2.11.1 API Reference" data-md-component="logo">
+
+ <img src="images/favico.ico" alt="logo">
+
+ </a>
+ <label class="md-header__button md-icon" for="__drawer">
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M3 6h18v2H3V6m0 5h18v2H3v-2m0 5h18v2H3v-2z"/></svg>
+ </label>
+ <div class="md-header__title" data-md-component="header-title">
+ <div class="md-header__ellipsis">
+ <div class="md-header__topic">
+ <span class="md-ellipsis">
+ FreeType-2.11.1 API Reference
+ </span>
+ </div>
+ <div class="md-header__topic" data-md-component="header-topic">
+ <span class="md-ellipsis">
+
+ TrueTypeGX/AAT Validation
+
+ </span>
</div>
</div>
- <div class="md-flex__cell md-flex__cell--shrink">
-
- <label class="md-icon md-icon--search md-header-nav__button" for="__search"></label>
-
+ </div>
+
+
+
+ <label class="md-header__button md-icon" for="__search">
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M9.5 3A6.5 6.5 0 0 1 16 9.5c0 1.61-.59 3.09-1.56 4.23l.27.27h.79l5 5-1.5 1.5-5-5v-.79l-.27-.27A6.516 6.516 0 0 1 9.5 16 6.5 6.5 0 0 1 3 9.5 6.5 6.5 0 0 1 9.5 3m0 2C7 5 5 7 5 9.5S7 14 9.5 14 14 12 14 9.5 12 5 9.5 5z"/></svg>
+ </label>
+
<div class="md-search" data-md-component="search" role="dialog">
<label class="md-search__overlay" for="__search"></label>
<div class="md-search__inner" role="search">
<form class="md-search__form" name="search">
- <input type="text" class="md-search__input" aria-label="search" name="query" placeholder="Search" autocapitalize="off" autocorrect="off" autocomplete="off" spellcheck="false" data-md-component="query" data-md-state="active">
- <label class="md-icon md-search__icon" for="__search"></label>
- <button type="reset" class="md-icon md-search__icon" data-md-component="reset" tabindex="-1">
- &#xE5CD;
+ <input type="text" class="md-search__input" name="query" aria-label="Search" placeholder="Search" autocapitalize="off" autocorrect="off" autocomplete="off" spellcheck="false" data-md-component="search-query" data-md-state="active" required>
+ <label class="md-search__icon md-icon" for="__search">
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M9.5 3A6.5 6.5 0 0 1 16 9.5c0 1.61-.59 3.09-1.56 4.23l.27.27h.79l5 5-1.5 1.5-5-5v-.79l-.27-.27A6.516 6.516 0 0 1 9.5 16 6.5 6.5 0 0 1 3 9.5 6.5 6.5 0 0 1 9.5 3m0 2C7 5 5 7 5 9.5S7 14 9.5 14 14 12 14 9.5 12 5 9.5 5z"/></svg>
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M20 11v2H8l5.5 5.5-1.42 1.42L4.16 12l7.92-7.92L13.5 5.5 8 11h12z"/></svg>
+ </label>
+ <button type="reset" class="md-search__icon md-icon" aria-label="Clear" tabindex="-1">
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z"/></svg>
</button>
</form>
<div class="md-search__output">
<div class="md-search__scrollwrap" data-md-scrollfix>
- <div class="md-search-result" data-md-component="result">
+ <div class="md-search-result" data-md-component="search-result">
<div class="md-search-result__meta">
- Type to start searching
+ Initializing search
</div>
<ol class="md-search-result__list"></ol>
</div>
@@ -147,33 +138,35 @@
</div>
</div>
</div>
-
- </div>
-
- </div>
+
+
</nav>
</header>
- <div class="md-container">
+ <div class="md-container" data-md-component="container">
-
+
- <main class="md-main" role="main">
- <div class="md-main__inner md-grid" data-md-component="container">
+ <main class="md-main" data-md-component="main">
+ <div class="md-main__inner md-grid">
- <div class="md-sidebar md-sidebar--primary" data-md-component="navigation">
+
+ <div class="md-sidebar md-sidebar--primary" data-md-component="sidebar" data-md-type="navigation" >
<div class="md-sidebar__scrollwrap">
<div class="md-sidebar__inner">
- <nav class="md-nav md-nav--primary" data-md-level="0">
- <label class="md-nav__title md-nav__title--site" for="__drawer">
- <a href="." title="FreeType-2.10.4 API Reference" class="md-nav__button md-logo">
-
- <img alt="logo" src="images/favico.ico" width="48" height="48">
+
+
+
+<nav class="md-nav md-nav--primary" aria-label="Navigation" data-md-level="0">
+ <label class="md-nav__title" for="__drawer">
+ <a href="index.html" title="FreeType-2.11.1 API Reference" class="md-nav__button md-logo" aria-label="FreeType-2.11.1 API Reference" data-md-component="logo">
+ <img src="images/favico.ico" alt="logo">
+
</a>
- FreeType-2.10.4 API Reference
+ FreeType-2.11.1 API Reference
</label>
<ul class="md-nav__list" data-md-scrollfix>
@@ -182,732 +175,804 @@
-
- <li class="md-nav__item">
- <a href="index.html" title="TOC" class="md-nav__link">
- TOC
- </a>
- </li>
+
+
+
+ <li class="md-nav__item">
+ <a href="index.html" class="md-nav__link">
+ TOC
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-index.html" title="Index" class="md-nav__link">
- Index
- </a>
- </li>
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-index.html" class="md-nav__link">
+ Index
+ </a>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-3" type="checkbox" id="nav-3">
+
+
+
- <label class="md-nav__link" for="nav-3">
- General Remarks
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-3">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_3" type="checkbox" id="__nav_3" >
+
+ <label class="md-nav__link" for="__nav_3">
General Remarks
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
-
+ <nav class="md-nav" aria-label="General Remarks" data-md-level="1">
+ <label class="md-nav__title" for="__nav_3">
+ <span class="md-nav__icon md-icon"></span>
+ General Remarks
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
-
-
-
- <li class="md-nav__item">
- <a href="ft2-header_inclusion.html" title="FreeType's header inclusion scheme" class="md-nav__link">
- FreeType's header inclusion scheme
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-preamble.html" class="md-nav__link">
+ Preamble
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-header_inclusion.html" class="md-nav__link">
+ FreeType's header inclusion scheme
+ </a>
+ </li>
+
+
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-user_allocation.html" class="md-nav__link">
+ User allocation
+ </a>
+ </li>
+
- <li class="md-nav__item">
- <a href="ft2-user_allocation.html" title="User allocation" class="md-nav__link">
- User allocation
- </a>
- </li>
-
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-4" type="checkbox" id="nav-4">
+
+
+
- <label class="md-nav__link" for="nav-4">
- Core API
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-4">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_4" type="checkbox" id="__nav_4" >
+
+ <label class="md-nav__link" for="__nav_4">
Core API
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
-
+ <nav class="md-nav" aria-label="Core API" data-md-level="1">
+ <label class="md-nav__title" for="__nav_4">
+ <span class="md-nav__icon md-icon"></span>
+ Core API
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
-
-
-
- <li class="md-nav__item">
- <a href="ft2-version.html" title="FreeType Version" class="md-nav__link">
- FreeType Version
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-version.html" class="md-nav__link">
+ FreeType Version
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-basic_types.html" class="md-nav__link">
+ Basic Data Types
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-basic_types.html" title="Basic Data Types" class="md-nav__link">
- Basic Data Types
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-base_interface.html" title="Base Interface" class="md-nav__link">
- Base Interface
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-base_interface.html" class="md-nav__link">
+ Base Interface
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-glyph_variants.html" class="md-nav__link">
+ Unicode Variation Sequences
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-glyph_variants.html" title="Unicode Variation Sequences" class="md-nav__link">
- Unicode Variation Sequences
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-color_management.html" title="Glyph Color Management" class="md-nav__link">
- Glyph Color Management
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-color_management.html" class="md-nav__link">
+ Glyph Color Management
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-layer_management.html" class="md-nav__link">
+ Glyph Layer Management
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-layer_management.html" title="Glyph Layer Management" class="md-nav__link">
- Glyph Layer Management
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-glyph_management.html" title="Glyph Management" class="md-nav__link">
- Glyph Management
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-glyph_management.html" class="md-nav__link">
+ Glyph Management
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-mac_specific.html" title="Mac Specific Interface" class="md-nav__link">
- Mac Specific Interface
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-mac_specific.html" class="md-nav__link">
+ Mac Specific Interface
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-sizes_management.html" title="Size Management" class="md-nav__link">
- Size Management
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-sizes_management.html" class="md-nav__link">
+ Size Management
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-header_file_macros.html" class="md-nav__link">
+ Header File Macros
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-header_file_macros.html" title="Header File Macros" class="md-nav__link">
- Header File Macros
- </a>
- </li>
-
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-5" type="checkbox" id="nav-5">
+
+
+
- <label class="md-nav__link" for="nav-5">
- Format-Specific API
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-5">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_5" type="checkbox" id="__nav_5" >
+
+ <label class="md-nav__link" for="__nav_5">
Format-Specific API
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
-
-
+ <nav class="md-nav" aria-label="Format-Specific API" data-md-level="1">
+ <label class="md-nav__title" for="__nav_5">
+ <span class="md-nav__icon md-icon"></span>
+ Format-Specific API
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-multiple_masters.html" class="md-nav__link">
+ Multiple Masters
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-multiple_masters.html" title="Multiple Masters" class="md-nav__link">
- Multiple Masters
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-truetype_tables.html" title="TrueType Tables" class="md-nav__link">
- TrueType Tables
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-truetype_tables.html" class="md-nav__link">
+ TrueType Tables
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-type1_tables.html" class="md-nav__link">
+ Type 1 Tables
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-type1_tables.html" title="Type 1 Tables" class="md-nav__link">
- Type 1 Tables
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-sfnt_names.html" title="SFNT Names" class="md-nav__link">
- SFNT Names
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-sfnt_names.html" class="md-nav__link">
+ SFNT Names
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-bdf_fonts.html" class="md-nav__link">
+ BDF and PCF Files
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-bdf_fonts.html" title="BDF and PCF Files" class="md-nav__link">
- BDF and PCF Files
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-cid_fonts.html" title="CID Fonts" class="md-nav__link">
- CID Fonts
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-cid_fonts.html" class="md-nav__link">
+ CID Fonts
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-pfr_fonts.html" class="md-nav__link">
+ PFR Fonts
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-pfr_fonts.html" title="PFR Fonts" class="md-nav__link">
- PFR Fonts
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-winfnt_fonts.html" title="Window FNT Files" class="md-nav__link">
- Window FNT Files
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-winfnt_fonts.html" class="md-nav__link">
+ Window FNT Files
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-font_formats.html" class="md-nav__link">
+ Font Formats
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-font_formats.html" title="Font Formats" class="md-nav__link">
- Font Formats
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-gasp_table.html" title="Gasp Table" class="md-nav__link">
- Gasp Table
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-gasp_table.html" class="md-nav__link">
+ Gasp Table
+ </a>
+ </li>
+
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-6" type="checkbox" id="nav-6">
+
+
+
- <label class="md-nav__link" for="nav-6">
- Controlling FreeType Modules
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-6">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_6" type="checkbox" id="__nav_6" >
+
+ <label class="md-nav__link" for="__nav_6">
Controlling FreeType Modules
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
+ <nav class="md-nav" aria-label="Controlling FreeType Modules" data-md-level="1">
+ <label class="md-nav__title" for="__nav_6">
+ <span class="md-nav__icon md-icon"></span>
+ Controlling FreeType Modules
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-auto_hinter.html" title="The auto-hinter" class="md-nav__link">
- The auto-hinter
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-auto_hinter.html" class="md-nav__link">
+ The auto-hinter
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-cff_driver.html" class="md-nav__link">
+ The CFF driver
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-cff_driver.html" title="The CFF driver" class="md-nav__link">
- The CFF driver
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-t1_cid_driver.html" title="The Type 1 and CID drivers" class="md-nav__link">
- The Type 1 and CID drivers
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-t1_cid_driver.html" class="md-nav__link">
+ The Type 1 and CID drivers
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-tt_driver.html" class="md-nav__link">
+ The TrueType driver
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-tt_driver.html" title="The TrueType driver" class="md-nav__link">
- The TrueType driver
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-pcf_driver.html" title="The PCF driver" class="md-nav__link">
- The PCF driver
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-pcf_driver.html" class="md-nav__link">
+ The PCF driver
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-properties.html" class="md-nav__link">
+ Driver properties
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-properties.html" title="Driver properties" class="md-nav__link">
- Driver properties
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-parameter_tags.html" title="Parameter Tags" class="md-nav__link">
- Parameter Tags
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-parameter_tags.html" class="md-nav__link">
+ Parameter Tags
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-lcd_rendering.html" class="md-nav__link">
+ Subpixel Rendering
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-lcd_rendering.html" title="Subpixel Rendering" class="md-nav__link">
- Subpixel Rendering
- </a>
- </li>
-
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-7" type="checkbox" id="nav-7">
+
+
+
- <label class="md-nav__link" for="nav-7">
- Cache Sub-System
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-7">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_7" type="checkbox" id="__nav_7" >
+
+ <label class="md-nav__link" for="__nav_7">
Cache Sub-System
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
-
+ <nav class="md-nav" aria-label="Cache Sub-System" data-md-level="1">
+ <label class="md-nav__title" for="__nav_7">
+ <span class="md-nav__icon md-icon"></span>
+ Cache Sub-System
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
-
-
-
- <li class="md-nav__item">
- <a href="ft2-cache_subsystem.html" title="Cache Sub-System" class="md-nav__link">
- Cache Sub-System
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-cache_subsystem.html" class="md-nav__link">
+ Cache Sub-System
+ </a>
+ </li>
+
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-8" type="checkbox" id="nav-8">
+
+
+
- <label class="md-nav__link" for="nav-8">
- Support API
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-8">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_8" type="checkbox" id="__nav_8" >
+
+ <label class="md-nav__link" for="__nav_8">
Support API
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
-
-
+ <nav class="md-nav" aria-label="Support API" data-md-level="1">
+ <label class="md-nav__title" for="__nav_8">
+ <span class="md-nav__icon md-icon"></span>
+ Support API
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-computations.html" class="md-nav__link">
+ Computations
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-computations.html" title="Computations" class="md-nav__link">
- Computations
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-list_processing.html" title="List Processing" class="md-nav__link">
- List Processing
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-list_processing.html" class="md-nav__link">
+ List Processing
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-outline_processing.html" class="md-nav__link">
+ Outline Processing
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-outline_processing.html" title="Outline Processing" class="md-nav__link">
- Outline Processing
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-quick_advance.html" title="Quick retrieval of advance values" class="md-nav__link">
- Quick retrieval of advance values
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-quick_advance.html" class="md-nav__link">
+ Quick retrieval of advance values
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-bitmap_handling.html" class="md-nav__link">
+ Bitmap Handling
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-bitmap_handling.html" title="Bitmap Handling" class="md-nav__link">
- Bitmap Handling
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-raster.html" title="Scanline Converter" class="md-nav__link">
- Scanline Converter
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-raster.html" class="md-nav__link">
+ Scanline Converter
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-glyph_stroker.html" title="Glyph Stroker" class="md-nav__link">
- Glyph Stroker
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-glyph_stroker.html" class="md-nav__link">
+ Glyph Stroker
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-system_interface.html" title="System Interface" class="md-nav__link">
- System Interface
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-system_interface.html" class="md-nav__link">
+ System Interface
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-module_management.html" title="Module Management" class="md-nav__link">
- Module Management
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-module_management.html" class="md-nav__link">
+ Module Management
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-gzip.html" title="GZIP Streams" class="md-nav__link">
- GZIP Streams
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-gzip.html" class="md-nav__link">
+ GZIP Streams
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-lzw.html" title="LZW Streams" class="md-nav__link">
- LZW Streams
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-lzw.html" class="md-nav__link">
+ LZW Streams
+ </a>
+ </li>
+
-
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-bzip2.html" class="md-nav__link">
+ BZIP2 Streams
+ </a>
+ </li>
+
- <li class="md-nav__item">
- <a href="ft2-bzip2.html" title="BZIP2 Streams" class="md-nav__link">
- BZIP2 Streams
- </a>
- </li>
+
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-debugging_apis.html" class="md-nav__link">
+ External Debugging APIs
+ </a>
+ </li>
+
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-9" type="checkbox" id="nav-9">
+
+
+
- <label class="md-nav__link" for="nav-9">
- Error Codes
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-9">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_9" type="checkbox" id="__nav_9" >
+
+ <label class="md-nav__link" for="__nav_9">
Error Codes
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
-
+ <nav class="md-nav" aria-label="Error Codes" data-md-level="1">
+ <label class="md-nav__title" for="__nav_9">
+ <span class="md-nav__icon md-icon"></span>
+ Error Codes
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
-
-
-
- <li class="md-nav__item">
- <a href="ft2-error_enumerations.html" title="Error Enumerations" class="md-nav__link">
- Error Enumerations
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-error_enumerations.html" class="md-nav__link">
+ Error Enumerations
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-error_code_values.html" class="md-nav__link">
+ Error Code Values
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-error_code_values.html" title="Error Code Values" class="md-nav__link">
- Error Code Values
- </a>
- </li>
-
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
@@ -915,53 +980,63 @@
-
-
- <li class="md-nav__item md-nav__item--active md-nav__item--nested">
+
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-10" type="checkbox" id="nav-10" checked>
+
+
- <label class="md-nav__link" for="nav-10">
- Miscellaneous
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-10">
+ <li class="md-nav__item md-nav__item--active md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_10" type="checkbox" id="__nav_10" checked>
+
+ <label class="md-nav__link" for="__nav_10">
Miscellaneous
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
-
-
+ <nav class="md-nav" aria-label="Miscellaneous" data-md-level="1">
+ <label class="md-nav__title" for="__nav_10">
+ <span class="md-nav__icon md-icon"></span>
+ Miscellaneous
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
-
+
+
-
-
- <li class="md-nav__item md-nav__item--active">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="toc" type="checkbox" id="__toc">
+
+
+ <li class="md-nav__item md-nav__item--active">
-
-
- <label class="md-nav__link md-nav__link--active" for="__toc">
+ <input class="md-nav__toggle md-toggle" data-md-toggle="toc" type="checkbox" id="__toc">
+
+
+
+
+
+ <label class="md-nav__link md-nav__link--active" for="__toc">
+ TrueTypeGX/AAT Validation
+ <span class="md-nav__icon md-icon"></span>
+ </label>
+
+ <a href="ft2-gx_validation.html" class="md-nav__link md-nav__link--active">
TrueTypeGX/AAT Validation
- </label>
-
- <a href="ft2-gx_validation.html" title="TrueTypeGX/AAT Validation" class="md-nav__link md-nav__link--active">
- TrueTypeGX/AAT Validation
- </a>
-
+ </a>
-<nav class="md-nav md-nav--secondary">
+
+<nav class="md-nav md-nav--secondary" aria-label="Table of contents">
+
- <label class="md-nav__title" for="__toc">Table of contents</label>
- <ul class="md-nav__list" data-md-scrollfix>
+ <label class="md-nav__title" for="__toc">
+ <span class="md-nav__icon md-icon"></span>
+ Table of contents
+ </label>
+ <ul class="md-nav__list" data-md-component="toc" data-md-scrollfix>
<li class="md-nav__item">
<a href="#synopsis" class="md-nav__link">
@@ -1019,56 +1094,54 @@
</li>
-
-
-
-
</ul>
</nav>
-
- </li>
+
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-incremental.html" title="Incremental Loading" class="md-nav__link">
- Incremental Loading
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-incremental.html" class="md-nav__link">
+ Incremental Loading
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-truetype_engine.html" title="The TrueType Engine" class="md-nav__link">
- The TrueType Engine
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-truetype_engine.html" class="md-nav__link">
+ The TrueType Engine
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-ot_validation.html" class="md-nav__link">
+ OpenType Validation
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-ot_validation.html" title="OpenType Validation" class="md-nav__link">
- OpenType Validation
- </a>
- </li>
-
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
</ul>
@@ -1078,18 +1151,23 @@
</div>
- <div class="md-sidebar md-sidebar--secondary" data-md-component="toc">
+
+ <div class="md-sidebar md-sidebar--secondary" data-md-component="sidebar" data-md-type="toc" >
<div class="md-sidebar__scrollwrap">
<div class="md-sidebar__inner">
-<nav class="md-nav md-nav--secondary">
+<nav class="md-nav md-nav--secondary" aria-label="Table of contents">
+
- <label class="md-nav__title" for="__toc">Table of contents</label>
- <ul class="md-nav__list" data-md-scrollfix>
+ <label class="md-nav__title" for="__toc">
+ <span class="md-nav__icon md-icon"></span>
+ Table of contents
+ </label>
+ <ul class="md-nav__list" data-md-component="toc" data-md-scrollfix>
<li class="md-nav__item">
<a href="#synopsis" class="md-nav__link">
@@ -1147,10 +1225,6 @@
</li>
-
-
-
-
</ul>
</nav>
@@ -1159,7 +1233,7 @@
</div>
- <div class="md-content">
+ <div class="md-content" data-md-component="content">
<article class="md-content__inner md-typeset">
@@ -1180,7 +1254,6 @@
<p>Validate various TrueTypeGX tables to assure that all offsets and indices are valid. The idea is that a higher-level library that actually does the text layout can access those tables without error checking (which can be quite time consuming).</p>
<h4>input</h4>
-
<table class="fields">
<tr><td class="val" id="face">face</td><td class="desc">
<p>A handle to the input face.</p>
@@ -1194,7 +1267,6 @@
</table>
<h4>output</h4>
-
<table class="fields">
<tr><td class="val" id="tables">tables</td><td class="desc">
<p>The array where all validated sfnt tables are stored. The array itself must be allocated by a client.</p>
@@ -1219,7 +1291,6 @@
<p>Free the buffer allocated by TrueTypeGX validator.</p>
<h4>input</h4>
-
<table class="fields">
<tr><td class="val" id="face">face</td><td class="desc">
<p>A handle to the input face.</p>
@@ -1245,7 +1316,6 @@
<p>Validate classic (16-bit format) kern table to assure that the offsets and indices are valid. The idea is that a higher-level library that actually does the text layout can access those tables without error checking (which can be quite time consuming).</p>
<p>The &lsquo;kern&rsquo; table validator in <code><a href="ft2-gx_validation.html#ft_truetypegx_validate">FT_TrueTypeGX_Validate</a></code> deals with both the new 32-bit format and the classic 16-bit format, while FT_ClassicKern_Validate only supports the classic 16-bit format.</p>
<h4>input</h4>
-
<table class="fields">
<tr><td class="val" id="face">face</td><td class="desc">
<p>A handle to the input face.</p>
@@ -1256,7 +1326,6 @@
</table>
<h4>output</h4>
-
<table class="fields">
<tr><td class="val" id="ckern_table">ckern_table</td><td class="desc">
<p>A pointer to the kern table.</p>
@@ -1280,7 +1349,6 @@
<p>Free the buffer allocated by classic Kern validator.</p>
<h4>input</h4>
-
<table class="fields">
<tr><td class="val" id="face">face</td><td class="desc">
<p>A handle to the input face.</p>
@@ -1330,7 +1398,6 @@
<p>A list of bit-field constants used with <code><a href="ft2-gx_validation.html#ft_truetypegx_validate">FT_TrueTypeGX_Validate</a></code> to indicate which TrueTypeGX/AAT Type tables should be validated.</p>
<h4>values</h4>
-
<table class="fields">
<tr><td class="val" id="ft_validate_feat">FT_VALIDATE_feat</td><td class="desc">
<p>Validate &lsquo;feat&rsquo; table.</p>
@@ -1379,7 +1446,6 @@
<p>A list of bit-field constants used with <code><a href="ft2-gx_validation.html#ft_classickern_validate">FT_ClassicKern_Validate</a></code> to indicate the classic kern dialect or dialects. If the selected type doesn't fit, <code><a href="ft2-gx_validation.html#ft_classickern_validate">FT_ClassicKern_Validate</a></code> regards the table as invalid.</p>
<h4>values</h4>
-
<table class="fields">
<tr><td class="val" id="ft_validate_ms">FT_VALIDATE_MS</td><td class="desc">
<p>Handle the &lsquo;kern&rsquo; table as a classic Microsoft kern table.</p>
@@ -1394,9 +1460,6 @@
<hr>
-
-
-
@@ -1406,59 +1469,60 @@
</article>
</div>
</div>
+
</main>
<footer class="md-footer">
- <div class="md-footer-nav">
- <nav class="md-footer-nav__inner md-grid">
+ <nav class="md-footer__inner md-grid" aria-label="Footer">
+
- <a href="ft2-error_code_values.html" title="Error Code Values" class="md-flex md-footer-nav__link md-footer-nav__link--prev" rel="prev">
- <div class="md-flex__cell md-flex__cell--shrink">
- <i class="md-icon md-icon--arrow-back md-footer-nav__button"></i>
- </div>
- <div class="md-flex__cell md-flex__cell--stretch md-footer-nav__title">
- <span class="md-flex__ellipsis">
- <span class="md-footer-nav__direction">
- Previous
- </span>
- Error Code Values
+ <a href="ft2-error_code_values.html" class="md-footer__link md-footer__link--prev" aria-label="Previous: Error Code Values" rel="prev">
+ <div class="md-footer__button md-icon">
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M20 11v2H8l5.5 5.5-1.42 1.42L4.16 12l7.92-7.92L13.5 5.5 8 11h12z"/></svg>
+ </div>
+ <div class="md-footer__title">
+ <div class="md-ellipsis">
+ <span class="md-footer__direction">
+ Previous
</span>
+ Error Code Values
</div>
- </a>
-
+ </div>
+ </a>
+
+
- <a href="ft2-incremental.html" title="Incremental Loading" class="md-flex md-footer-nav__link md-footer-nav__link--next" rel="next">
- <div class="md-flex__cell md-flex__cell--stretch md-footer-nav__title">
- <span class="md-flex__ellipsis">
- <span class="md-footer-nav__direction">
- Next
- </span>
- Incremental Loading
+ <a href="ft2-incremental.html" class="md-footer__link md-footer__link--next" aria-label="Next: Incremental Loading" rel="next">
+ <div class="md-footer__title">
+ <div class="md-ellipsis">
+ <span class="md-footer__direction">
+ Next
</span>
+ Incremental Loading
</div>
- <div class="md-flex__cell md-flex__cell--shrink">
- <i class="md-icon md-icon--arrow-forward md-footer-nav__button"></i>
- </div>
- </a>
-
- </nav>
- </div>
+ </div>
+ <div class="md-footer__button md-icon">
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M4 11v2h12l-5.5 5.5 1.42 1.42L19.84 12l-7.92-7.92L10.5 5.5 16 11H4z"/></svg>
+ </div>
+ </a>
+
+ </nav>
<div class="md-footer-meta md-typeset">
<div class="md-footer-meta__inner md-grid">
<div class="md-footer-copyright">
<div class="md-footer-copyright__highlight">
- Copyright 2020 <a href = "https://www.freetype.org/license.html">The FreeType Project</a>.
+ Copyright 2021 <a href = "https://www.freetype.org/license.html">The FreeType Project</a>.
</div>
- powered by
- <a href="https://www.mkdocs.org" target="_blank" rel="noopener">MkDocs</a>
- and
+ Made with
<a href="https://squidfunk.github.io/mkdocs-material/" target="_blank" rel="noopener">
- Material for MkDocs</a>
+ Material for MkDocs
+ </a>
+
</div>
</div>
@@ -1466,10 +1530,13 @@
</footer>
</div>
+ <div class="md-dialog" data-md-component="dialog">
+ <div class="md-dialog__inner md-typeset"></div>
+ </div>
+ <script id="__config" type="application/json">{"base": ".", "features": [], "translations": {"clipboard.copy": "Copy to clipboard", "clipboard.copied": "Copied to clipboard", "search.config.lang": "en", "search.config.pipeline": "trimmer, stopWordFilter", "search.config.separator": "[\\s\\-]+", "search.placeholder": "Search", "search.result.placeholder": "Type to start searching", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.term.missing": "Missing", "select.version.title": "Select version"}, "search": "assets/javascripts/workers/search.477d984a.min.js", "version": null}</script>
- <script src="assets/javascripts/application.c33a9706.js"></script>
-
- <script>app.initialize({version:"1.1",url:{base:"."}})</script>
+
+ <script src="assets/javascripts/bundle.82b56eb2.min.js"></script>
<script src="javascripts/extra.js"></script>
diff --git a/freetype/docs/reference/ft2-gzip.html b/freetype/docs/reference/ft2-gzip.html
index d6f1f2ce..85d17bbe 100644
--- a/freetype/docs/reference/ft2-gzip.html
+++ b/freetype/docs/reference/ft2-gzip.html
@@ -1,145 +1,136 @@
-
-
-
<!doctype html>
<html lang="en" class="no-js">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
- <meta http-equiv="x-ua-compatible" content="ie=edge">
- <meta name="description" content="API Reference Documentation for FreeType-2.10.4">
+ <meta name="description" content="API Reference Documentation for FreeType-2.11.1">
<meta name="author" content="FreeType Contributors">
- <meta name="lang:clipboard.copy" content="Copy to clipboard">
-
- <meta name="lang:clipboard.copied" content="Copied to clipboard">
-
- <meta name="lang:search.language" content="en">
-
- <meta name="lang:search.pipeline.stopwords" content="True">
-
- <meta name="lang:search.pipeline.trimmer" content="True">
-
- <meta name="lang:search.result.none" content="No matching documents">
-
- <meta name="lang:search.result.one" content="1 matching document">
-
- <meta name="lang:search.result.other" content="# matching documents">
-
- <meta name="lang:search.tokenizer" content="[\s\-]+">
-
- <link rel="shortcut icon" href="images/favico.ico">
- <meta name="generator" content="mkdocs-1.1, mkdocs-material-4.6.3">
+ <link rel="icon" href="images/favico.ico">
+ <meta name="generator" content="mkdocs-1.2.1, mkdocs-material-7.1.9">
- <title>GZIP Streams - FreeType-2.10.4 API Reference</title>
+ <title>GZIP Streams - FreeType-2.11.1 API Reference</title>
- <link rel="stylesheet" href="assets/stylesheets/application.adb8469c.css">
-
- <link rel="stylesheet" href="assets/stylesheets/application-palette.a8b3c06d.css">
-
+ <link rel="stylesheet" href="assets/stylesheets/main.ca7ac06f.min.css">
+ <link rel="stylesheet" href="assets/stylesheets/palette.f1a3b89f.min.css">
+
+
+
+ <meta name="theme-color" content="#4cae4f">
- <meta name="theme-color" content="#4caf50">
- <script src="assets/javascripts/modernizr.86422ebf.js"></script>
-
- <link href="https://fonts.gstatic.com" rel="preconnect" crossorigin>
+
+ <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Noto+Serif:300,400,400i,700%7CRoboto+Mono&display=fallback">
- <style>body,input{font-family:"Noto Serif","Helvetica Neue",Helvetica,Arial,sans-serif}code,kbd,pre{font-family:"Roboto Mono","Courier New",Courier,monospace}</style>
+ <style>:root{--md-text-font-family:"Noto Serif";--md-code-font-family:"Roboto Mono"}</style>
- <link rel="stylesheet" href="assets/fonts/material-icons.css">
<link rel="stylesheet" href="stylesheets/extra.css">
+
+
</head>
+
+
+
+
- <body dir="ltr" data-md-color-primary="green" data-md-color-accent="green">
+ <body dir="ltr" data-md-color-scheme="" data-md-color-primary="green" data-md-color-accent="green">
- <svg class="md-svg">
- <defs>
-
-
- </defs>
- </svg>
- <input class="md-toggle" data-md-toggle="drawer" type="checkbox" id="__drawer" autocomplete="off">
- <input class="md-toggle" data-md-toggle="search" type="checkbox" id="__search" autocomplete="off">
- <label class="md-overlay" data-md-component="overlay" for="__drawer"></label>
- <a href="#gzip-streams" tabindex="0" class="md-skip">
- Skip to content
- </a>
+ <script>function __prefix(e){return new URL(".",location).pathname+"."+e}function __get(e,t=localStorage){return JSON.parse(t.getItem(__prefix(e)))}</script>
+ <input class="md-toggle" data-md-toggle="drawer" type="checkbox" id="__drawer" autocomplete="off">
+ <input class="md-toggle" data-md-toggle="search" type="checkbox" id="__search" autocomplete="off">
+ <label class="md-overlay" for="__drawer"></label>
+ <div data-md-component="skip">
+
+
+ <a href="#gzip-streams" class="md-skip">
+ Skip to content
+ </a>
+
+ </div>
+ <div data-md-component="announce">
+
+ </div>
<header class="md-header" data-md-component="header">
- <nav class="md-header-nav md-grid">
- <div class="md-flex">
- <div class="md-flex__cell md-flex__cell--shrink">
- <a href="." title="FreeType-2.10.4 API Reference" aria-label="FreeType-2.10.4 API Reference" class="md-header-nav__button md-logo">
-
- <img alt="logo" src="images/favico.ico" width="24" height="24">
-
- </a>
- </div>
- <div class="md-flex__cell md-flex__cell--shrink">
- <label class="md-icon md-icon--menu md-header-nav__button" for="__drawer"></label>
- </div>
- <div class="md-flex__cell md-flex__cell--stretch">
- <div class="md-flex__ellipsis md-header-nav__title" data-md-component="title">
-
- <span class="md-header-nav__topic">
- FreeType-2.10.4 API Reference
- </span>
- <span class="md-header-nav__topic">
-
- GZIP Streams
-
- </span>
-
+ <nav class="md-header__inner md-grid" aria-label="Header">
+ <a href="index.html" title="FreeType-2.11.1 API Reference" class="md-header__button md-logo" aria-label="FreeType-2.11.1 API Reference" data-md-component="logo">
+
+ <img src="images/favico.ico" alt="logo">
+
+ </a>
+ <label class="md-header__button md-icon" for="__drawer">
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M3 6h18v2H3V6m0 5h18v2H3v-2m0 5h18v2H3v-2z"/></svg>
+ </label>
+ <div class="md-header__title" data-md-component="header-title">
+ <div class="md-header__ellipsis">
+ <div class="md-header__topic">
+ <span class="md-ellipsis">
+ FreeType-2.11.1 API Reference
+ </span>
+ </div>
+ <div class="md-header__topic" data-md-component="header-topic">
+ <span class="md-ellipsis">
+
+ GZIP Streams
+
+ </span>
</div>
</div>
- <div class="md-flex__cell md-flex__cell--shrink">
-
- <label class="md-icon md-icon--search md-header-nav__button" for="__search"></label>
-
+ </div>
+
+
+
+ <label class="md-header__button md-icon" for="__search">
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M9.5 3A6.5 6.5 0 0 1 16 9.5c0 1.61-.59 3.09-1.56 4.23l.27.27h.79l5 5-1.5 1.5-5-5v-.79l-.27-.27A6.516 6.516 0 0 1 9.5 16 6.5 6.5 0 0 1 3 9.5 6.5 6.5 0 0 1 9.5 3m0 2C7 5 5 7 5 9.5S7 14 9.5 14 14 12 14 9.5 12 5 9.5 5z"/></svg>
+ </label>
+
<div class="md-search" data-md-component="search" role="dialog">
<label class="md-search__overlay" for="__search"></label>
<div class="md-search__inner" role="search">
<form class="md-search__form" name="search">
- <input type="text" class="md-search__input" aria-label="search" name="query" placeholder="Search" autocapitalize="off" autocorrect="off" autocomplete="off" spellcheck="false" data-md-component="query" data-md-state="active">
- <label class="md-icon md-search__icon" for="__search"></label>
- <button type="reset" class="md-icon md-search__icon" data-md-component="reset" tabindex="-1">
- &#xE5CD;
+ <input type="text" class="md-search__input" name="query" aria-label="Search" placeholder="Search" autocapitalize="off" autocorrect="off" autocomplete="off" spellcheck="false" data-md-component="search-query" data-md-state="active" required>
+ <label class="md-search__icon md-icon" for="__search">
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M9.5 3A6.5 6.5 0 0 1 16 9.5c0 1.61-.59 3.09-1.56 4.23l.27.27h.79l5 5-1.5 1.5-5-5v-.79l-.27-.27A6.516 6.516 0 0 1 9.5 16 6.5 6.5 0 0 1 3 9.5 6.5 6.5 0 0 1 9.5 3m0 2C7 5 5 7 5 9.5S7 14 9.5 14 14 12 14 9.5 12 5 9.5 5z"/></svg>
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M20 11v2H8l5.5 5.5-1.42 1.42L4.16 12l7.92-7.92L13.5 5.5 8 11h12z"/></svg>
+ </label>
+ <button type="reset" class="md-search__icon md-icon" aria-label="Clear" tabindex="-1">
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z"/></svg>
</button>
</form>
<div class="md-search__output">
<div class="md-search__scrollwrap" data-md-scrollfix>
- <div class="md-search-result" data-md-component="result">
+ <div class="md-search-result" data-md-component="search-result">
<div class="md-search-result__meta">
- Type to start searching
+ Initializing search
</div>
<ol class="md-search-result__list"></ol>
</div>
@@ -147,33 +138,35 @@
</div>
</div>
</div>
-
- </div>
-
- </div>
+
+
</nav>
</header>
- <div class="md-container">
+ <div class="md-container" data-md-component="container">
-
+
- <main class="md-main" role="main">
- <div class="md-main__inner md-grid" data-md-component="container">
+ <main class="md-main" data-md-component="main">
+ <div class="md-main__inner md-grid">
- <div class="md-sidebar md-sidebar--primary" data-md-component="navigation">
+
+ <div class="md-sidebar md-sidebar--primary" data-md-component="sidebar" data-md-type="navigation" >
<div class="md-sidebar__scrollwrap">
<div class="md-sidebar__inner">
- <nav class="md-nav md-nav--primary" data-md-level="0">
- <label class="md-nav__title md-nav__title--site" for="__drawer">
- <a href="." title="FreeType-2.10.4 API Reference" class="md-nav__button md-logo">
-
- <img alt="logo" src="images/favico.ico" width="48" height="48">
+
+
+
+<nav class="md-nav md-nav--primary" aria-label="Navigation" data-md-level="0">
+ <label class="md-nav__title" for="__drawer">
+ <a href="index.html" title="FreeType-2.11.1 API Reference" class="md-nav__button md-logo" aria-label="FreeType-2.11.1 API Reference" data-md-component="logo">
+ <img src="images/favico.ico" alt="logo">
+
</a>
- FreeType-2.10.4 API Reference
+ FreeType-2.11.1 API Reference
</label>
<ul class="md-nav__list" data-md-scrollfix>
@@ -182,516 +175,564 @@
-
- <li class="md-nav__item">
- <a href="index.html" title="TOC" class="md-nav__link">
- TOC
- </a>
- </li>
+
+
+
+ <li class="md-nav__item">
+ <a href="index.html" class="md-nav__link">
+ TOC
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-index.html" title="Index" class="md-nav__link">
- Index
- </a>
- </li>
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-index.html" class="md-nav__link">
+ Index
+ </a>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-3" type="checkbox" id="nav-3">
+
+
+
- <label class="md-nav__link" for="nav-3">
- General Remarks
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-3">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_3" type="checkbox" id="__nav_3" >
+
+ <label class="md-nav__link" for="__nav_3">
General Remarks
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
+ <nav class="md-nav" aria-label="General Remarks" data-md-level="1">
+ <label class="md-nav__title" for="__nav_3">
+ <span class="md-nav__icon md-icon"></span>
+ General Remarks
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-header_inclusion.html" title="FreeType's header inclusion scheme" class="md-nav__link">
- FreeType's header inclusion scheme
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-preamble.html" class="md-nav__link">
+ Preamble
+ </a>
+ </li>
+
-
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-header_inclusion.html" class="md-nav__link">
+ FreeType's header inclusion scheme
+ </a>
+ </li>
+
- <li class="md-nav__item">
- <a href="ft2-user_allocation.html" title="User allocation" class="md-nav__link">
- User allocation
- </a>
- </li>
+
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-user_allocation.html" class="md-nav__link">
+ User allocation
+ </a>
+ </li>
+
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-4" type="checkbox" id="nav-4">
+
+
+
- <label class="md-nav__link" for="nav-4">
- Core API
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-4">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_4" type="checkbox" id="__nav_4" >
+
+ <label class="md-nav__link" for="__nav_4">
Core API
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
+ <nav class="md-nav" aria-label="Core API" data-md-level="1">
+ <label class="md-nav__title" for="__nav_4">
+ <span class="md-nav__icon md-icon"></span>
+ Core API
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-version.html" title="FreeType Version" class="md-nav__link">
- FreeType Version
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-version.html" class="md-nav__link">
+ FreeType Version
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-basic_types.html" title="Basic Data Types" class="md-nav__link">
- Basic Data Types
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-basic_types.html" class="md-nav__link">
+ Basic Data Types
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-base_interface.html" title="Base Interface" class="md-nav__link">
- Base Interface
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-base_interface.html" class="md-nav__link">
+ Base Interface
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-glyph_variants.html" title="Unicode Variation Sequences" class="md-nav__link">
- Unicode Variation Sequences
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-glyph_variants.html" class="md-nav__link">
+ Unicode Variation Sequences
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-color_management.html" class="md-nav__link">
+ Glyph Color Management
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-color_management.html" title="Glyph Color Management" class="md-nav__link">
- Glyph Color Management
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-layer_management.html" title="Glyph Layer Management" class="md-nav__link">
- Glyph Layer Management
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-layer_management.html" class="md-nav__link">
+ Glyph Layer Management
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-glyph_management.html" class="md-nav__link">
+ Glyph Management
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-glyph_management.html" title="Glyph Management" class="md-nav__link">
- Glyph Management
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-mac_specific.html" title="Mac Specific Interface" class="md-nav__link">
- Mac Specific Interface
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-mac_specific.html" class="md-nav__link">
+ Mac Specific Interface
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-sizes_management.html" class="md-nav__link">
+ Size Management
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-sizes_management.html" title="Size Management" class="md-nav__link">
- Size Management
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-header_file_macros.html" title="Header File Macros" class="md-nav__link">
- Header File Macros
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-header_file_macros.html" class="md-nav__link">
+ Header File Macros
+ </a>
+ </li>
+
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-5" type="checkbox" id="nav-5">
+
+
+
- <label class="md-nav__link" for="nav-5">
- Format-Specific API
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-5">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_5" type="checkbox" id="__nav_5" >
+
+ <label class="md-nav__link" for="__nav_5">
Format-Specific API
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
-
+ <nav class="md-nav" aria-label="Format-Specific API" data-md-level="1">
+ <label class="md-nav__title" for="__nav_5">
+ <span class="md-nav__icon md-icon"></span>
+ Format-Specific API
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
-
-
-
- <li class="md-nav__item">
- <a href="ft2-multiple_masters.html" title="Multiple Masters" class="md-nav__link">
- Multiple Masters
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-multiple_masters.html" class="md-nav__link">
+ Multiple Masters
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-truetype_tables.html" class="md-nav__link">
+ TrueType Tables
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-truetype_tables.html" title="TrueType Tables" class="md-nav__link">
- TrueType Tables
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-type1_tables.html" title="Type 1 Tables" class="md-nav__link">
- Type 1 Tables
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-type1_tables.html" class="md-nav__link">
+ Type 1 Tables
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-sfnt_names.html" class="md-nav__link">
+ SFNT Names
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-sfnt_names.html" title="SFNT Names" class="md-nav__link">
- SFNT Names
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-bdf_fonts.html" title="BDF and PCF Files" class="md-nav__link">
- BDF and PCF Files
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-bdf_fonts.html" class="md-nav__link">
+ BDF and PCF Files
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-cid_fonts.html" class="md-nav__link">
+ CID Fonts
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-cid_fonts.html" title="CID Fonts" class="md-nav__link">
- CID Fonts
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-pfr_fonts.html" title="PFR Fonts" class="md-nav__link">
- PFR Fonts
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-pfr_fonts.html" class="md-nav__link">
+ PFR Fonts
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-winfnt_fonts.html" class="md-nav__link">
+ Window FNT Files
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-winfnt_fonts.html" title="Window FNT Files" class="md-nav__link">
- Window FNT Files
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-font_formats.html" title="Font Formats" class="md-nav__link">
- Font Formats
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-font_formats.html" class="md-nav__link">
+ Font Formats
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-gasp_table.html" class="md-nav__link">
+ Gasp Table
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-gasp_table.html" title="Gasp Table" class="md-nav__link">
- Gasp Table
- </a>
- </li>
-
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-6" type="checkbox" id="nav-6">
+
+
+
- <label class="md-nav__link" for="nav-6">
- Controlling FreeType Modules
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-6">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_6" type="checkbox" id="__nav_6" >
+
+ <label class="md-nav__link" for="__nav_6">
Controlling FreeType Modules
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
-
-
+ <nav class="md-nav" aria-label="Controlling FreeType Modules" data-md-level="1">
+ <label class="md-nav__title" for="__nav_6">
+ <span class="md-nav__icon md-icon"></span>
+ Controlling FreeType Modules
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-auto_hinter.html" class="md-nav__link">
+ The auto-hinter
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-auto_hinter.html" title="The auto-hinter" class="md-nav__link">
- The auto-hinter
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-cff_driver.html" title="The CFF driver" class="md-nav__link">
- The CFF driver
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-cff_driver.html" class="md-nav__link">
+ The CFF driver
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-t1_cid_driver.html" title="The Type 1 and CID drivers" class="md-nav__link">
- The Type 1 and CID drivers
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-t1_cid_driver.html" class="md-nav__link">
+ The Type 1 and CID drivers
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-tt_driver.html" title="The TrueType driver" class="md-nav__link">
- The TrueType driver
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-tt_driver.html" class="md-nav__link">
+ The TrueType driver
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-pcf_driver.html" class="md-nav__link">
+ The PCF driver
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-pcf_driver.html" title="The PCF driver" class="md-nav__link">
- The PCF driver
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-properties.html" title="Driver properties" class="md-nav__link">
- Driver properties
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-properties.html" class="md-nav__link">
+ Driver properties
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-parameter_tags.html" title="Parameter Tags" class="md-nav__link">
- Parameter Tags
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-parameter_tags.html" class="md-nav__link">
+ Parameter Tags
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-lcd_rendering.html" title="Subpixel Rendering" class="md-nav__link">
- Subpixel Rendering
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-lcd_rendering.html" class="md-nav__link">
+ Subpixel Rendering
+ </a>
+ </li>
+
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-7" type="checkbox" id="nav-7">
+
+
+
- <label class="md-nav__link" for="nav-7">
- Cache Sub-System
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-7">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_7" type="checkbox" id="__nav_7" >
+
+ <label class="md-nav__link" for="__nav_7">
Cache Sub-System
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
+ <nav class="md-nav" aria-label="Cache Sub-System" data-md-level="1">
+ <label class="md-nav__title" for="__nav_7">
+ <span class="md-nav__icon md-icon"></span>
+ Cache Sub-System
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-cache_subsystem.html" title="Cache Sub-System" class="md-nav__link">
- Cache Sub-System
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-cache_subsystem.html" class="md-nav__link">
+ Cache Sub-System
+ </a>
+ </li>
+
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
@@ -699,161 +740,171 @@
-
-
- <li class="md-nav__item md-nav__item--active md-nav__item--nested">
+
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-8" type="checkbox" id="nav-8" checked>
+
+
- <label class="md-nav__link" for="nav-8">
- Support API
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-8">
+ <li class="md-nav__item md-nav__item--active md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_8" type="checkbox" id="__nav_8" checked>
+
+ <label class="md-nav__link" for="__nav_8">
Support API
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
-
-
+ <nav class="md-nav" aria-label="Support API" data-md-level="1">
+ <label class="md-nav__title" for="__nav_8">
+ <span class="md-nav__icon md-icon"></span>
+ Support API
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-computations.html" class="md-nav__link">
+ Computations
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-computations.html" title="Computations" class="md-nav__link">
- Computations
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-list_processing.html" title="List Processing" class="md-nav__link">
- List Processing
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-list_processing.html" class="md-nav__link">
+ List Processing
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-outline_processing.html" title="Outline Processing" class="md-nav__link">
- Outline Processing
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-outline_processing.html" class="md-nav__link">
+ Outline Processing
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-quick_advance.html" title="Quick retrieval of advance values" class="md-nav__link">
- Quick retrieval of advance values
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-quick_advance.html" class="md-nav__link">
+ Quick retrieval of advance values
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-bitmap_handling.html" class="md-nav__link">
+ Bitmap Handling
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-bitmap_handling.html" title="Bitmap Handling" class="md-nav__link">
- Bitmap Handling
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-raster.html" title="Scanline Converter" class="md-nav__link">
- Scanline Converter
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-raster.html" class="md-nav__link">
+ Scanline Converter
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-glyph_stroker.html" class="md-nav__link">
+ Glyph Stroker
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-glyph_stroker.html" title="Glyph Stroker" class="md-nav__link">
- Glyph Stroker
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-system_interface.html" title="System Interface" class="md-nav__link">
- System Interface
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-system_interface.html" class="md-nav__link">
+ System Interface
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-module_management.html" title="Module Management" class="md-nav__link">
- Module Management
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-module_management.html" class="md-nav__link">
+ Module Management
+ </a>
+ </li>
+
-
-
-
-
+
+
-
-
- <li class="md-nav__item md-nav__item--active">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="toc" type="checkbox" id="__toc">
+
+
+ <li class="md-nav__item md-nav__item--active">
-
-
- <label class="md-nav__link md-nav__link--active" for="__toc">
+ <input class="md-nav__toggle md-toggle" data-md-toggle="toc" type="checkbox" id="__toc">
+
+
+
+
+
+ <label class="md-nav__link md-nav__link--active" for="__toc">
+ GZIP Streams
+ <span class="md-nav__icon md-icon"></span>
+ </label>
+
+ <a href="ft2-gzip.html" class="md-nav__link md-nav__link--active">
GZIP Streams
- </label>
-
- <a href="ft2-gzip.html" title="GZIP Streams" class="md-nav__link md-nav__link--active">
- GZIP Streams
- </a>
-
+ </a>
-<nav class="md-nav md-nav--secondary">
+
+<nav class="md-nav md-nav--secondary" aria-label="Table of contents">
+
- <label class="md-nav__title" for="__toc">Table of contents</label>
- <ul class="md-nav__list" data-md-scrollfix>
+ <label class="md-nav__title" for="__toc">
+ <span class="md-nav__icon md-icon"></span>
+ Table of contents
+ </label>
+ <ul class="md-nav__list" data-md-component="toc" data-md-scrollfix>
<li class="md-nav__item">
<a href="#synopsis" class="md-nav__link">
@@ -876,164 +927,186 @@
</li>
-
-
-
-
</ul>
</nav>
-
- </li>
+
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-lzw.html" title="LZW Streams" class="md-nav__link">
- LZW Streams
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-lzw.html" class="md-nav__link">
+ LZW Streams
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-bzip2.html" class="md-nav__link">
+ BZIP2 Streams
+ </a>
+ </li>
+
+
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-debugging_apis.html" class="md-nav__link">
+ External Debugging APIs
+ </a>
+ </li>
+
- <li class="md-nav__item">
- <a href="ft2-bzip2.html" title="BZIP2 Streams" class="md-nav__link">
- BZIP2 Streams
- </a>
- </li>
-
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-9" type="checkbox" id="nav-9">
+
+
+
- <label class="md-nav__link" for="nav-9">
- Error Codes
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-9">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_9" type="checkbox" id="__nav_9" >
+
+ <label class="md-nav__link" for="__nav_9">
Error Codes
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
-
+ <nav class="md-nav" aria-label="Error Codes" data-md-level="1">
+ <label class="md-nav__title" for="__nav_9">
+ <span class="md-nav__icon md-icon"></span>
+ Error Codes
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
-
-
-
- <li class="md-nav__item">
- <a href="ft2-error_enumerations.html" title="Error Enumerations" class="md-nav__link">
- Error Enumerations
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-error_enumerations.html" class="md-nav__link">
+ Error Enumerations
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-error_code_values.html" title="Error Code Values" class="md-nav__link">
- Error Code Values
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-error_code_values.html" class="md-nav__link">
+ Error Code Values
+ </a>
+ </li>
+
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-10" type="checkbox" id="nav-10">
+
+
+
- <label class="md-nav__link" for="nav-10">
- Miscellaneous
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-10">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_10" type="checkbox" id="__nav_10" >
+
+ <label class="md-nav__link" for="__nav_10">
Miscellaneous
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
-
+ <nav class="md-nav" aria-label="Miscellaneous" data-md-level="1">
+ <label class="md-nav__title" for="__nav_10">
+ <span class="md-nav__icon md-icon"></span>
+ Miscellaneous
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
-
-
-
- <li class="md-nav__item">
- <a href="ft2-gx_validation.html" title="TrueTypeGX/AAT Validation" class="md-nav__link">
- TrueTypeGX/AAT Validation
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-gx_validation.html" class="md-nav__link">
+ TrueTypeGX/AAT Validation
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-incremental.html" class="md-nav__link">
+ Incremental Loading
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-incremental.html" title="Incremental Loading" class="md-nav__link">
- Incremental Loading
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-truetype_engine.html" title="The TrueType Engine" class="md-nav__link">
- The TrueType Engine
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-truetype_engine.html" class="md-nav__link">
+ The TrueType Engine
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-ot_validation.html" class="md-nav__link">
+ OpenType Validation
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-ot_validation.html" title="OpenType Validation" class="md-nav__link">
- OpenType Validation
- </a>
- </li>
-
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
</ul>
@@ -1043,18 +1116,23 @@
</div>
- <div class="md-sidebar md-sidebar--secondary" data-md-component="toc">
+
+ <div class="md-sidebar md-sidebar--secondary" data-md-component="sidebar" data-md-type="toc" >
<div class="md-sidebar__scrollwrap">
<div class="md-sidebar__inner">
-<nav class="md-nav md-nav--secondary">
+<nav class="md-nav md-nav--secondary" aria-label="Table of contents">
+
- <label class="md-nav__title" for="__toc">Table of contents</label>
- <ul class="md-nav__list" data-md-scrollfix>
+ <label class="md-nav__title" for="__toc">
+ <span class="md-nav__icon md-icon"></span>
+ Table of contents
+ </label>
+ <ul class="md-nav__list" data-md-component="toc" data-md-scrollfix>
<li class="md-nav__item">
<a href="#synopsis" class="md-nav__link">
@@ -1077,10 +1155,6 @@
</li>
-
-
-
-
</ul>
</nav>
@@ -1089,7 +1163,7 @@
</div>
- <div class="md-content">
+ <div class="md-content" data-md-component="content">
<article class="md-content__inner md-typeset">
@@ -1110,7 +1184,6 @@
<p>Open a new stream to parse gzip-compressed font files. This is mainly used to support the compressed <code>*.pcf.gz</code> fonts that come with XFree86.</p>
<h4>input</h4>
-
<table class="fields">
<tr><td class="val" id="stream">stream</td><td class="desc">
<p>The target embedding stream.</p>
@@ -1142,7 +1215,6 @@
<p>Decompress a zipped input buffer into an output buffer. This function is modeled after zlib's <code>uncompress</code> function.</p>
<h4>input</h4>
-
<table class="fields">
<tr><td class="val" id="memory">memory</td><td class="desc">
<p>A FreeType memory handle.</p>
@@ -1156,7 +1228,6 @@
</table>
<h4>output</h4>
-
<table class="fields">
<tr><td class="val" id="output">output</td><td class="desc">
<p>The output buffer.</p>
@@ -1164,7 +1235,6 @@
</table>
<h4>inout</h4>
-
<table class="fields">
<tr><td class="val" id="output_len">output_len</td><td class="desc">
<p>Before calling the function, this is the total size of the output buffer, which must be large enough to hold the entire uncompressed data (so the size of the uncompressed data must be known in advance). After calling the function, <code>output_len</code> is the size of the used data in <code>output</code>.</p>
@@ -1182,9 +1252,6 @@
<p>2.5.1</p>
<hr>
-
-
-
@@ -1194,59 +1261,60 @@
</article>
</div>
</div>
+
</main>
<footer class="md-footer">
- <div class="md-footer-nav">
- <nav class="md-footer-nav__inner md-grid">
+ <nav class="md-footer__inner md-grid" aria-label="Footer">
+
- <a href="ft2-module_management.html" title="Module Management" class="md-flex md-footer-nav__link md-footer-nav__link--prev" rel="prev">
- <div class="md-flex__cell md-flex__cell--shrink">
- <i class="md-icon md-icon--arrow-back md-footer-nav__button"></i>
- </div>
- <div class="md-flex__cell md-flex__cell--stretch md-footer-nav__title">
- <span class="md-flex__ellipsis">
- <span class="md-footer-nav__direction">
- Previous
- </span>
- Module Management
+ <a href="ft2-module_management.html" class="md-footer__link md-footer__link--prev" aria-label="Previous: Module Management" rel="prev">
+ <div class="md-footer__button md-icon">
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M20 11v2H8l5.5 5.5-1.42 1.42L4.16 12l7.92-7.92L13.5 5.5 8 11h12z"/></svg>
+ </div>
+ <div class="md-footer__title">
+ <div class="md-ellipsis">
+ <span class="md-footer__direction">
+ Previous
</span>
+ Module Management
</div>
- </a>
-
+ </div>
+ </a>
+
+
- <a href="ft2-lzw.html" title="LZW Streams" class="md-flex md-footer-nav__link md-footer-nav__link--next" rel="next">
- <div class="md-flex__cell md-flex__cell--stretch md-footer-nav__title">
- <span class="md-flex__ellipsis">
- <span class="md-footer-nav__direction">
- Next
- </span>
- LZW Streams
+ <a href="ft2-lzw.html" class="md-footer__link md-footer__link--next" aria-label="Next: LZW Streams" rel="next">
+ <div class="md-footer__title">
+ <div class="md-ellipsis">
+ <span class="md-footer__direction">
+ Next
</span>
+ LZW Streams
</div>
- <div class="md-flex__cell md-flex__cell--shrink">
- <i class="md-icon md-icon--arrow-forward md-footer-nav__button"></i>
- </div>
- </a>
-
- </nav>
- </div>
+ </div>
+ <div class="md-footer__button md-icon">
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M4 11v2h12l-5.5 5.5 1.42 1.42L19.84 12l-7.92-7.92L10.5 5.5 16 11H4z"/></svg>
+ </div>
+ </a>
+
+ </nav>
<div class="md-footer-meta md-typeset">
<div class="md-footer-meta__inner md-grid">
<div class="md-footer-copyright">
<div class="md-footer-copyright__highlight">
- Copyright 2020 <a href = "https://www.freetype.org/license.html">The FreeType Project</a>.
+ Copyright 2021 <a href = "https://www.freetype.org/license.html">The FreeType Project</a>.
</div>
- powered by
- <a href="https://www.mkdocs.org" target="_blank" rel="noopener">MkDocs</a>
- and
+ Made with
<a href="https://squidfunk.github.io/mkdocs-material/" target="_blank" rel="noopener">
- Material for MkDocs</a>
+ Material for MkDocs
+ </a>
+
</div>
</div>
@@ -1254,10 +1322,13 @@
</footer>
</div>
+ <div class="md-dialog" data-md-component="dialog">
+ <div class="md-dialog__inner md-typeset"></div>
+ </div>
+ <script id="__config" type="application/json">{"base": ".", "features": [], "translations": {"clipboard.copy": "Copy to clipboard", "clipboard.copied": "Copied to clipboard", "search.config.lang": "en", "search.config.pipeline": "trimmer, stopWordFilter", "search.config.separator": "[\\s\\-]+", "search.placeholder": "Search", "search.result.placeholder": "Type to start searching", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.term.missing": "Missing", "select.version.title": "Select version"}, "search": "assets/javascripts/workers/search.477d984a.min.js", "version": null}</script>
- <script src="assets/javascripts/application.c33a9706.js"></script>
-
- <script>app.initialize({version:"1.1",url:{base:"."}})</script>
+
+ <script src="assets/javascripts/bundle.82b56eb2.min.js"></script>
<script src="javascripts/extra.js"></script>
diff --git a/freetype/docs/reference/ft2-header_file_macros.html b/freetype/docs/reference/ft2-header_file_macros.html
index f056cbed..75941abc 100644
--- a/freetype/docs/reference/ft2-header_file_macros.html
+++ b/freetype/docs/reference/ft2-header_file_macros.html
@@ -1,145 +1,136 @@
-
-
-
<!doctype html>
<html lang="en" class="no-js">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
- <meta http-equiv="x-ua-compatible" content="ie=edge">
- <meta name="description" content="API Reference Documentation for FreeType-2.10.4">
+ <meta name="description" content="API Reference Documentation for FreeType-2.11.1">
<meta name="author" content="FreeType Contributors">
- <meta name="lang:clipboard.copy" content="Copy to clipboard">
-
- <meta name="lang:clipboard.copied" content="Copied to clipboard">
-
- <meta name="lang:search.language" content="en">
-
- <meta name="lang:search.pipeline.stopwords" content="True">
-
- <meta name="lang:search.pipeline.trimmer" content="True">
-
- <meta name="lang:search.result.none" content="No matching documents">
-
- <meta name="lang:search.result.one" content="1 matching document">
-
- <meta name="lang:search.result.other" content="# matching documents">
-
- <meta name="lang:search.tokenizer" content="[\s\-]+">
-
- <link rel="shortcut icon" href="images/favico.ico">
- <meta name="generator" content="mkdocs-1.1, mkdocs-material-4.6.3">
+ <link rel="icon" href="images/favico.ico">
+ <meta name="generator" content="mkdocs-1.2.1, mkdocs-material-7.1.9">
- <title>Header File Macros - FreeType-2.10.4 API Reference</title>
+ <title>Header File Macros - FreeType-2.11.1 API Reference</title>
- <link rel="stylesheet" href="assets/stylesheets/application.adb8469c.css">
-
- <link rel="stylesheet" href="assets/stylesheets/application-palette.a8b3c06d.css">
-
+ <link rel="stylesheet" href="assets/stylesheets/main.ca7ac06f.min.css">
+ <link rel="stylesheet" href="assets/stylesheets/palette.f1a3b89f.min.css">
+
+
+
+ <meta name="theme-color" content="#4cae4f">
- <meta name="theme-color" content="#4caf50">
- <script src="assets/javascripts/modernizr.86422ebf.js"></script>
-
- <link href="https://fonts.gstatic.com" rel="preconnect" crossorigin>
+
+ <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Noto+Serif:300,400,400i,700%7CRoboto+Mono&display=fallback">
- <style>body,input{font-family:"Noto Serif","Helvetica Neue",Helvetica,Arial,sans-serif}code,kbd,pre{font-family:"Roboto Mono","Courier New",Courier,monospace}</style>
+ <style>:root{--md-text-font-family:"Noto Serif";--md-code-font-family:"Roboto Mono"}</style>
- <link rel="stylesheet" href="assets/fonts/material-icons.css">
<link rel="stylesheet" href="stylesheets/extra.css">
+
+
</head>
+
+
+
+
- <body dir="ltr" data-md-color-primary="green" data-md-color-accent="green">
+ <body dir="ltr" data-md-color-scheme="" data-md-color-primary="green" data-md-color-accent="green">
- <svg class="md-svg">
- <defs>
-
-
- </defs>
- </svg>
- <input class="md-toggle" data-md-toggle="drawer" type="checkbox" id="__drawer" autocomplete="off">
- <input class="md-toggle" data-md-toggle="search" type="checkbox" id="__search" autocomplete="off">
- <label class="md-overlay" data-md-component="overlay" for="__drawer"></label>
- <a href="#header-file-macros" tabindex="0" class="md-skip">
- Skip to content
- </a>
+ <script>function __prefix(e){return new URL(".",location).pathname+"."+e}function __get(e,t=localStorage){return JSON.parse(t.getItem(__prefix(e)))}</script>
+ <input class="md-toggle" data-md-toggle="drawer" type="checkbox" id="__drawer" autocomplete="off">
+ <input class="md-toggle" data-md-toggle="search" type="checkbox" id="__search" autocomplete="off">
+ <label class="md-overlay" for="__drawer"></label>
+ <div data-md-component="skip">
+
+
+ <a href="#header-file-macros" class="md-skip">
+ Skip to content
+ </a>
+
+ </div>
+ <div data-md-component="announce">
+
+ </div>
<header class="md-header" data-md-component="header">
- <nav class="md-header-nav md-grid">
- <div class="md-flex">
- <div class="md-flex__cell md-flex__cell--shrink">
- <a href="." title="FreeType-2.10.4 API Reference" aria-label="FreeType-2.10.4 API Reference" class="md-header-nav__button md-logo">
-
- <img alt="logo" src="images/favico.ico" width="24" height="24">
-
- </a>
- </div>
- <div class="md-flex__cell md-flex__cell--shrink">
- <label class="md-icon md-icon--menu md-header-nav__button" for="__drawer"></label>
- </div>
- <div class="md-flex__cell md-flex__cell--stretch">
- <div class="md-flex__ellipsis md-header-nav__title" data-md-component="title">
-
- <span class="md-header-nav__topic">
- FreeType-2.10.4 API Reference
- </span>
- <span class="md-header-nav__topic">
-
- Header File Macros
-
- </span>
-
+ <nav class="md-header__inner md-grid" aria-label="Header">
+ <a href="index.html" title="FreeType-2.11.1 API Reference" class="md-header__button md-logo" aria-label="FreeType-2.11.1 API Reference" data-md-component="logo">
+
+ <img src="images/favico.ico" alt="logo">
+
+ </a>
+ <label class="md-header__button md-icon" for="__drawer">
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M3 6h18v2H3V6m0 5h18v2H3v-2m0 5h18v2H3v-2z"/></svg>
+ </label>
+ <div class="md-header__title" data-md-component="header-title">
+ <div class="md-header__ellipsis">
+ <div class="md-header__topic">
+ <span class="md-ellipsis">
+ FreeType-2.11.1 API Reference
+ </span>
+ </div>
+ <div class="md-header__topic" data-md-component="header-topic">
+ <span class="md-ellipsis">
+
+ Header File Macros
+
+ </span>
</div>
</div>
- <div class="md-flex__cell md-flex__cell--shrink">
-
- <label class="md-icon md-icon--search md-header-nav__button" for="__search"></label>
-
+ </div>
+
+
+
+ <label class="md-header__button md-icon" for="__search">
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M9.5 3A6.5 6.5 0 0 1 16 9.5c0 1.61-.59 3.09-1.56 4.23l.27.27h.79l5 5-1.5 1.5-5-5v-.79l-.27-.27A6.516 6.516 0 0 1 9.5 16 6.5 6.5 0 0 1 3 9.5 6.5 6.5 0 0 1 9.5 3m0 2C7 5 5 7 5 9.5S7 14 9.5 14 14 12 14 9.5 12 5 9.5 5z"/></svg>
+ </label>
+
<div class="md-search" data-md-component="search" role="dialog">
<label class="md-search__overlay" for="__search"></label>
<div class="md-search__inner" role="search">
<form class="md-search__form" name="search">
- <input type="text" class="md-search__input" aria-label="search" name="query" placeholder="Search" autocapitalize="off" autocorrect="off" autocomplete="off" spellcheck="false" data-md-component="query" data-md-state="active">
- <label class="md-icon md-search__icon" for="__search"></label>
- <button type="reset" class="md-icon md-search__icon" data-md-component="reset" tabindex="-1">
- &#xE5CD;
+ <input type="text" class="md-search__input" name="query" aria-label="Search" placeholder="Search" autocapitalize="off" autocorrect="off" autocomplete="off" spellcheck="false" data-md-component="search-query" data-md-state="active" required>
+ <label class="md-search__icon md-icon" for="__search">
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M9.5 3A6.5 6.5 0 0 1 16 9.5c0 1.61-.59 3.09-1.56 4.23l.27.27h.79l5 5-1.5 1.5-5-5v-.79l-.27-.27A6.516 6.516 0 0 1 9.5 16 6.5 6.5 0 0 1 3 9.5 6.5 6.5 0 0 1 9.5 3m0 2C7 5 5 7 5 9.5S7 14 9.5 14 14 12 14 9.5 12 5 9.5 5z"/></svg>
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M20 11v2H8l5.5 5.5-1.42 1.42L4.16 12l7.92-7.92L13.5 5.5 8 11h12z"/></svg>
+ </label>
+ <button type="reset" class="md-search__icon md-icon" aria-label="Clear" tabindex="-1">
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z"/></svg>
</button>
</form>
<div class="md-search__output">
<div class="md-search__scrollwrap" data-md-scrollfix>
- <div class="md-search-result" data-md-component="result">
+ <div class="md-search-result" data-md-component="search-result">
<div class="md-search-result__meta">
- Type to start searching
+ Initializing search
</div>
<ol class="md-search-result__list"></ol>
</div>
@@ -147,33 +138,35 @@
</div>
</div>
</div>
-
- </div>
-
- </div>
+
+
</nav>
</header>
- <div class="md-container">
+ <div class="md-container" data-md-component="container">
-
+
- <main class="md-main" role="main">
- <div class="md-main__inner md-grid" data-md-component="container">
+ <main class="md-main" data-md-component="main">
+ <div class="md-main__inner md-grid">
- <div class="md-sidebar md-sidebar--primary" data-md-component="navigation">
+
+ <div class="md-sidebar md-sidebar--primary" data-md-component="sidebar" data-md-type="navigation" >
<div class="md-sidebar__scrollwrap">
<div class="md-sidebar__inner">
- <nav class="md-nav md-nav--primary" data-md-level="0">
- <label class="md-nav__title md-nav__title--site" for="__drawer">
- <a href="." title="FreeType-2.10.4 API Reference" class="md-nav__button md-logo">
-
- <img alt="logo" src="images/favico.ico" width="48" height="48">
+
+
+
+<nav class="md-nav md-nav--primary" aria-label="Navigation" data-md-level="0">
+ <label class="md-nav__title" for="__drawer">
+ <a href="index.html" title="FreeType-2.11.1 API Reference" class="md-nav__button md-logo" aria-label="FreeType-2.11.1 API Reference" data-md-component="logo">
+ <img src="images/favico.ico" alt="logo">
+
</a>
- FreeType-2.10.4 API Reference
+ FreeType-2.11.1 API Reference
</label>
<ul class="md-nav__list" data-md-scrollfix>
@@ -182,72 +175,96 @@
-
- <li class="md-nav__item">
- <a href="index.html" title="TOC" class="md-nav__link">
- TOC
- </a>
- </li>
+
+
+
+ <li class="md-nav__item">
+ <a href="index.html" class="md-nav__link">
+ TOC
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-index.html" title="Index" class="md-nav__link">
- Index
- </a>
- </li>
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-index.html" class="md-nav__link">
+ Index
+ </a>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-3" type="checkbox" id="nav-3">
+
+
+
- <label class="md-nav__link" for="nav-3">
- General Remarks
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-3">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_3" type="checkbox" id="__nav_3" >
+
+ <label class="md-nav__link" for="__nav_3">
General Remarks
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
+ <nav class="md-nav" aria-label="General Remarks" data-md-level="1">
+ <label class="md-nav__title" for="__nav_3">
+ <span class="md-nav__icon md-icon"></span>
+ General Remarks
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-header_inclusion.html" title="FreeType's header inclusion scheme" class="md-nav__link">
- FreeType's header inclusion scheme
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-preamble.html" class="md-nav__link">
+ Preamble
+ </a>
+ </li>
+
-
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-header_inclusion.html" class="md-nav__link">
+ FreeType's header inclusion scheme
+ </a>
+ </li>
+
- <li class="md-nav__item">
- <a href="ft2-user_allocation.html" title="User allocation" class="md-nav__link">
- User allocation
- </a>
- </li>
+
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-user_allocation.html" class="md-nav__link">
+ User allocation
+ </a>
+ </li>
+
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
@@ -255,161 +272,171 @@
-
-
- <li class="md-nav__item md-nav__item--active md-nav__item--nested">
+
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-4" type="checkbox" id="nav-4" checked>
+
+
- <label class="md-nav__link" for="nav-4">
- Core API
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-4">
+ <li class="md-nav__item md-nav__item--active md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_4" type="checkbox" id="__nav_4" checked>
+
+ <label class="md-nav__link" for="__nav_4">
Core API
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
-
-
+ <nav class="md-nav" aria-label="Core API" data-md-level="1">
+ <label class="md-nav__title" for="__nav_4">
+ <span class="md-nav__icon md-icon"></span>
+ Core API
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-version.html" class="md-nav__link">
+ FreeType Version
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-version.html" title="FreeType Version" class="md-nav__link">
- FreeType Version
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-basic_types.html" title="Basic Data Types" class="md-nav__link">
- Basic Data Types
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-basic_types.html" class="md-nav__link">
+ Basic Data Types
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-base_interface.html" class="md-nav__link">
+ Base Interface
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-base_interface.html" title="Base Interface" class="md-nav__link">
- Base Interface
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-glyph_variants.html" title="Unicode Variation Sequences" class="md-nav__link">
- Unicode Variation Sequences
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-glyph_variants.html" class="md-nav__link">
+ Unicode Variation Sequences
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-color_management.html" title="Glyph Color Management" class="md-nav__link">
- Glyph Color Management
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-color_management.html" class="md-nav__link">
+ Glyph Color Management
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-layer_management.html" title="Glyph Layer Management" class="md-nav__link">
- Glyph Layer Management
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-layer_management.html" class="md-nav__link">
+ Glyph Layer Management
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-glyph_management.html" title="Glyph Management" class="md-nav__link">
- Glyph Management
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-glyph_management.html" class="md-nav__link">
+ Glyph Management
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-mac_specific.html" title="Mac Specific Interface" class="md-nav__link">
- Mac Specific Interface
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-mac_specific.html" class="md-nav__link">
+ Mac Specific Interface
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-sizes_management.html" title="Size Management" class="md-nav__link">
- Size Management
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-sizes_management.html" class="md-nav__link">
+ Size Management
+ </a>
+ </li>
+
-
-
-
-
+
+
-
-
- <li class="md-nav__item md-nav__item--active">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="toc" type="checkbox" id="__toc">
+
+
+ <li class="md-nav__item md-nav__item--active">
-
-
- <label class="md-nav__link md-nav__link--active" for="__toc">
+ <input class="md-nav__toggle md-toggle" data-md-toggle="toc" type="checkbox" id="__toc">
+
+
+
+
+
+ <label class="md-nav__link md-nav__link--active" for="__toc">
+ Header File Macros
+ <span class="md-nav__icon md-icon"></span>
+ </label>
+
+ <a href="ft2-header_file_macros.html" class="md-nav__link md-nav__link--active">
Header File Macros
- </label>
-
- <a href="ft2-header_file_macros.html" title="Header File Macros" class="md-nav__link md-nav__link--active">
- Header File Macros
- </a>
-
+ </a>
-<nav class="md-nav md-nav--secondary">
+
+<nav class="md-nav md-nav--secondary" aria-label="Table of contents">
+
- <label class="md-nav__title" for="__toc">Table of contents</label>
- <ul class="md-nav__list" data-md-scrollfix>
+ <label class="md-nav__title" for="__toc">
+ <span class="md-nav__icon md-icon"></span>
+ Table of contents
+ </label>
+ <ul class="md-nav__list" data-md-component="toc" data-md-scrollfix>
<li class="md-nav__item">
<a href="#synopsis" class="md-nav__link">
@@ -761,608 +788,654 @@
</li>
-
-
-
-
</ul>
</nav>
-
- </li>
+
+ </li>
+
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-5" type="checkbox" id="nav-5">
+
+
+
- <label class="md-nav__link" for="nav-5">
- Format-Specific API
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-5">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_5" type="checkbox" id="__nav_5" >
+
+ <label class="md-nav__link" for="__nav_5">
Format-Specific API
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
-
+ <nav class="md-nav" aria-label="Format-Specific API" data-md-level="1">
+ <label class="md-nav__title" for="__nav_5">
+ <span class="md-nav__icon md-icon"></span>
+ Format-Specific API
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
-
-
-
- <li class="md-nav__item">
- <a href="ft2-multiple_masters.html" title="Multiple Masters" class="md-nav__link">
- Multiple Masters
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-multiple_masters.html" class="md-nav__link">
+ Multiple Masters
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-truetype_tables.html" title="TrueType Tables" class="md-nav__link">
- TrueType Tables
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-truetype_tables.html" class="md-nav__link">
+ TrueType Tables
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-type1_tables.html" title="Type 1 Tables" class="md-nav__link">
- Type 1 Tables
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-type1_tables.html" class="md-nav__link">
+ Type 1 Tables
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-sfnt_names.html" title="SFNT Names" class="md-nav__link">
- SFNT Names
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-sfnt_names.html" class="md-nav__link">
+ SFNT Names
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-bdf_fonts.html" title="BDF and PCF Files" class="md-nav__link">
- BDF and PCF Files
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-bdf_fonts.html" class="md-nav__link">
+ BDF and PCF Files
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-cid_fonts.html" class="md-nav__link">
+ CID Fonts
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-cid_fonts.html" title="CID Fonts" class="md-nav__link">
- CID Fonts
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-pfr_fonts.html" title="PFR Fonts" class="md-nav__link">
- PFR Fonts
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-pfr_fonts.html" class="md-nav__link">
+ PFR Fonts
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-winfnt_fonts.html" class="md-nav__link">
+ Window FNT Files
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-winfnt_fonts.html" title="Window FNT Files" class="md-nav__link">
- Window FNT Files
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-font_formats.html" title="Font Formats" class="md-nav__link">
- Font Formats
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-font_formats.html" class="md-nav__link">
+ Font Formats
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-gasp_table.html" title="Gasp Table" class="md-nav__link">
- Gasp Table
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-gasp_table.html" class="md-nav__link">
+ Gasp Table
+ </a>
+ </li>
+
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-6" type="checkbox" id="nav-6">
+
+
+
- <label class="md-nav__link" for="nav-6">
- Controlling FreeType Modules
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-6">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_6" type="checkbox" id="__nav_6" >
+
+ <label class="md-nav__link" for="__nav_6">
Controlling FreeType Modules
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
-
+ <nav class="md-nav" aria-label="Controlling FreeType Modules" data-md-level="1">
+ <label class="md-nav__title" for="__nav_6">
+ <span class="md-nav__icon md-icon"></span>
+ Controlling FreeType Modules
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
-
-
-
- <li class="md-nav__item">
- <a href="ft2-auto_hinter.html" title="The auto-hinter" class="md-nav__link">
- The auto-hinter
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-auto_hinter.html" class="md-nav__link">
+ The auto-hinter
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-cff_driver.html" title="The CFF driver" class="md-nav__link">
- The CFF driver
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-cff_driver.html" class="md-nav__link">
+ The CFF driver
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-t1_cid_driver.html" class="md-nav__link">
+ The Type 1 and CID drivers
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-t1_cid_driver.html" title="The Type 1 and CID drivers" class="md-nav__link">
- The Type 1 and CID drivers
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-tt_driver.html" title="The TrueType driver" class="md-nav__link">
- The TrueType driver
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-tt_driver.html" class="md-nav__link">
+ The TrueType driver
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-pcf_driver.html" title="The PCF driver" class="md-nav__link">
- The PCF driver
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-pcf_driver.html" class="md-nav__link">
+ The PCF driver
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-properties.html" title="Driver properties" class="md-nav__link">
- Driver properties
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-properties.html" class="md-nav__link">
+ Driver properties
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-parameter_tags.html" title="Parameter Tags" class="md-nav__link">
- Parameter Tags
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-parameter_tags.html" class="md-nav__link">
+ Parameter Tags
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-lcd_rendering.html" title="Subpixel Rendering" class="md-nav__link">
- Subpixel Rendering
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-lcd_rendering.html" class="md-nav__link">
+ Subpixel Rendering
+ </a>
+ </li>
+
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-7" type="checkbox" id="nav-7">
+
+
+
- <label class="md-nav__link" for="nav-7">
- Cache Sub-System
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-7">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_7" type="checkbox" id="__nav_7" >
+
+ <label class="md-nav__link" for="__nav_7">
Cache Sub-System
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
-
+ <nav class="md-nav" aria-label="Cache Sub-System" data-md-level="1">
+ <label class="md-nav__title" for="__nav_7">
+ <span class="md-nav__icon md-icon"></span>
+ Cache Sub-System
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
-
-
-
- <li class="md-nav__item">
- <a href="ft2-cache_subsystem.html" title="Cache Sub-System" class="md-nav__link">
- Cache Sub-System
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-cache_subsystem.html" class="md-nav__link">
+ Cache Sub-System
+ </a>
+ </li>
+
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-8" type="checkbox" id="nav-8">
+
+
+
- <label class="md-nav__link" for="nav-8">
- Support API
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-8">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_8" type="checkbox" id="__nav_8" >
+
+ <label class="md-nav__link" for="__nav_8">
Support API
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
-
-
+ <nav class="md-nav" aria-label="Support API" data-md-level="1">
+ <label class="md-nav__title" for="__nav_8">
+ <span class="md-nav__icon md-icon"></span>
+ Support API
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-computations.html" class="md-nav__link">
+ Computations
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-computations.html" title="Computations" class="md-nav__link">
- Computations
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-list_processing.html" title="List Processing" class="md-nav__link">
- List Processing
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-list_processing.html" class="md-nav__link">
+ List Processing
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-outline_processing.html" title="Outline Processing" class="md-nav__link">
- Outline Processing
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-outline_processing.html" class="md-nav__link">
+ Outline Processing
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-quick_advance.html" title="Quick retrieval of advance values" class="md-nav__link">
- Quick retrieval of advance values
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-quick_advance.html" class="md-nav__link">
+ Quick retrieval of advance values
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-bitmap_handling.html" title="Bitmap Handling" class="md-nav__link">
- Bitmap Handling
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-bitmap_handling.html" class="md-nav__link">
+ Bitmap Handling
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-raster.html" title="Scanline Converter" class="md-nav__link">
- Scanline Converter
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-raster.html" class="md-nav__link">
+ Scanline Converter
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-glyph_stroker.html" title="Glyph Stroker" class="md-nav__link">
- Glyph Stroker
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-glyph_stroker.html" class="md-nav__link">
+ Glyph Stroker
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-system_interface.html" class="md-nav__link">
+ System Interface
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-system_interface.html" title="System Interface" class="md-nav__link">
- System Interface
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-module_management.html" title="Module Management" class="md-nav__link">
- Module Management
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-module_management.html" class="md-nav__link">
+ Module Management
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-gzip.html" class="md-nav__link">
+ GZIP Streams
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-gzip.html" title="GZIP Streams" class="md-nav__link">
- GZIP Streams
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-lzw.html" title="LZW Streams" class="md-nav__link">
- LZW Streams
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-lzw.html" class="md-nav__link">
+ LZW Streams
+ </a>
+ </li>
+
-
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-bzip2.html" class="md-nav__link">
+ BZIP2 Streams
+ </a>
+ </li>
+
- <li class="md-nav__item">
- <a href="ft2-bzip2.html" title="BZIP2 Streams" class="md-nav__link">
- BZIP2 Streams
- </a>
- </li>
+
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-debugging_apis.html" class="md-nav__link">
+ External Debugging APIs
+ </a>
+ </li>
+
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-9" type="checkbox" id="nav-9">
+
+
+
- <label class="md-nav__link" for="nav-9">
- Error Codes
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-9">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_9" type="checkbox" id="__nav_9" >
+
+ <label class="md-nav__link" for="__nav_9">
Error Codes
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
-
-
+ <nav class="md-nav" aria-label="Error Codes" data-md-level="1">
+ <label class="md-nav__title" for="__nav_9">
+ <span class="md-nav__icon md-icon"></span>
+ Error Codes
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-error_enumerations.html" class="md-nav__link">
+ Error Enumerations
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-error_enumerations.html" title="Error Enumerations" class="md-nav__link">
- Error Enumerations
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-error_code_values.html" title="Error Code Values" class="md-nav__link">
- Error Code Values
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-error_code_values.html" class="md-nav__link">
+ Error Code Values
+ </a>
+ </li>
+
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-10" type="checkbox" id="nav-10">
+
+
+
- <label class="md-nav__link" for="nav-10">
- Miscellaneous
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-10">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_10" type="checkbox" id="__nav_10" >
+
+ <label class="md-nav__link" for="__nav_10">
Miscellaneous
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
+ <nav class="md-nav" aria-label="Miscellaneous" data-md-level="1">
+ <label class="md-nav__title" for="__nav_10">
+ <span class="md-nav__icon md-icon"></span>
+ Miscellaneous
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-gx_validation.html" title="TrueTypeGX/AAT Validation" class="md-nav__link">
- TrueTypeGX/AAT Validation
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-gx_validation.html" class="md-nav__link">
+ TrueTypeGX/AAT Validation
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-incremental.html" class="md-nav__link">
+ Incremental Loading
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-incremental.html" title="Incremental Loading" class="md-nav__link">
- Incremental Loading
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-truetype_engine.html" title="The TrueType Engine" class="md-nav__link">
- The TrueType Engine
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-truetype_engine.html" class="md-nav__link">
+ The TrueType Engine
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-ot_validation.html" title="OpenType Validation" class="md-nav__link">
- OpenType Validation
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-ot_validation.html" class="md-nav__link">
+ OpenType Validation
+ </a>
+ </li>
+
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
</ul>
@@ -1372,18 +1445,23 @@
</div>
- <div class="md-sidebar md-sidebar--secondary" data-md-component="toc">
+
+ <div class="md-sidebar md-sidebar--secondary" data-md-component="sidebar" data-md-type="toc" >
<div class="md-sidebar__scrollwrap">
<div class="md-sidebar__inner">
-<nav class="md-nav md-nav--secondary">
+<nav class="md-nav md-nav--secondary" aria-label="Table of contents">
+
- <label class="md-nav__title" for="__toc">Table of contents</label>
- <ul class="md-nav__list" data-md-scrollfix>
+ <label class="md-nav__title" for="__toc">
+ <span class="md-nav__icon md-icon"></span>
+ Table of contents
+ </label>
+ <ul class="md-nav__list" data-md-component="toc" data-md-scrollfix>
<li class="md-nav__item">
<a href="#synopsis" class="md-nav__link">
@@ -1735,10 +1813,6 @@
</li>
-
-
-
-
</ul>
</nav>
@@ -1747,7 +1821,7 @@
</div>
- <div class="md-content">
+ <div class="md-content" data-md-component="content">
<article class="md-content__inner md-typeset">
@@ -2131,9 +2205,6 @@
<p>A macro used in <code>#include</code> statements to name the file containing the FreeType&nbsp;2 API which handles the OpenType &lsquo;CPAL&rsquo; table.</p>
<hr>
-
-
-
@@ -2143,59 +2214,60 @@
</article>
</div>
</div>
+
</main>
<footer class="md-footer">
- <div class="md-footer-nav">
- <nav class="md-footer-nav__inner md-grid">
+ <nav class="md-footer__inner md-grid" aria-label="Footer">
+
- <a href="ft2-sizes_management.html" title="Size Management" class="md-flex md-footer-nav__link md-footer-nav__link--prev" rel="prev">
- <div class="md-flex__cell md-flex__cell--shrink">
- <i class="md-icon md-icon--arrow-back md-footer-nav__button"></i>
- </div>
- <div class="md-flex__cell md-flex__cell--stretch md-footer-nav__title">
- <span class="md-flex__ellipsis">
- <span class="md-footer-nav__direction">
- Previous
- </span>
- Size Management
+ <a href="ft2-sizes_management.html" class="md-footer__link md-footer__link--prev" aria-label="Previous: Size Management" rel="prev">
+ <div class="md-footer__button md-icon">
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M20 11v2H8l5.5 5.5-1.42 1.42L4.16 12l7.92-7.92L13.5 5.5 8 11h12z"/></svg>
+ </div>
+ <div class="md-footer__title">
+ <div class="md-ellipsis">
+ <span class="md-footer__direction">
+ Previous
</span>
+ Size Management
</div>
- </a>
-
+ </div>
+ </a>
+
+
- <a href="ft2-multiple_masters.html" title="Multiple Masters" class="md-flex md-footer-nav__link md-footer-nav__link--next" rel="next">
- <div class="md-flex__cell md-flex__cell--stretch md-footer-nav__title">
- <span class="md-flex__ellipsis">
- <span class="md-footer-nav__direction">
- Next
- </span>
- Multiple Masters
+ <a href="ft2-multiple_masters.html" class="md-footer__link md-footer__link--next" aria-label="Next: Multiple Masters" rel="next">
+ <div class="md-footer__title">
+ <div class="md-ellipsis">
+ <span class="md-footer__direction">
+ Next
</span>
+ Multiple Masters
</div>
- <div class="md-flex__cell md-flex__cell--shrink">
- <i class="md-icon md-icon--arrow-forward md-footer-nav__button"></i>
- </div>
- </a>
-
- </nav>
- </div>
+ </div>
+ <div class="md-footer__button md-icon">
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M4 11v2h12l-5.5 5.5 1.42 1.42L19.84 12l-7.92-7.92L10.5 5.5 16 11H4z"/></svg>
+ </div>
+ </a>
+
+ </nav>
<div class="md-footer-meta md-typeset">
<div class="md-footer-meta__inner md-grid">
<div class="md-footer-copyright">
<div class="md-footer-copyright__highlight">
- Copyright 2020 <a href = "https://www.freetype.org/license.html">The FreeType Project</a>.
+ Copyright 2021 <a href = "https://www.freetype.org/license.html">The FreeType Project</a>.
</div>
- powered by
- <a href="https://www.mkdocs.org" target="_blank" rel="noopener">MkDocs</a>
- and
+ Made with
<a href="https://squidfunk.github.io/mkdocs-material/" target="_blank" rel="noopener">
- Material for MkDocs</a>
+ Material for MkDocs
+ </a>
+
</div>
</div>
@@ -2203,10 +2275,13 @@
</footer>
</div>
+ <div class="md-dialog" data-md-component="dialog">
+ <div class="md-dialog__inner md-typeset"></div>
+ </div>
+ <script id="__config" type="application/json">{"base": ".", "features": [], "translations": {"clipboard.copy": "Copy to clipboard", "clipboard.copied": "Copied to clipboard", "search.config.lang": "en", "search.config.pipeline": "trimmer, stopWordFilter", "search.config.separator": "[\\s\\-]+", "search.placeholder": "Search", "search.result.placeholder": "Type to start searching", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.term.missing": "Missing", "select.version.title": "Select version"}, "search": "assets/javascripts/workers/search.477d984a.min.js", "version": null}</script>
- <script src="assets/javascripts/application.c33a9706.js"></script>
-
- <script>app.initialize({version:"1.1",url:{base:"."}})</script>
+
+ <script src="assets/javascripts/bundle.82b56eb2.min.js"></script>
<script src="javascripts/extra.js"></script>
diff --git a/freetype/docs/reference/ft2-header_inclusion.html b/freetype/docs/reference/ft2-header_inclusion.html
index af8ed04a..dc91b1f3 100644
--- a/freetype/docs/reference/ft2-header_inclusion.html
+++ b/freetype/docs/reference/ft2-header_inclusion.html
@@ -1,145 +1,136 @@
-
-
-
<!doctype html>
<html lang="en" class="no-js">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
- <meta http-equiv="x-ua-compatible" content="ie=edge">
- <meta name="description" content="API Reference Documentation for FreeType-2.10.4">
+ <meta name="description" content="API Reference Documentation for FreeType-2.11.1">
<meta name="author" content="FreeType Contributors">
- <meta name="lang:clipboard.copy" content="Copy to clipboard">
-
- <meta name="lang:clipboard.copied" content="Copied to clipboard">
-
- <meta name="lang:search.language" content="en">
-
- <meta name="lang:search.pipeline.stopwords" content="True">
-
- <meta name="lang:search.pipeline.trimmer" content="True">
-
- <meta name="lang:search.result.none" content="No matching documents">
-
- <meta name="lang:search.result.one" content="1 matching document">
-
- <meta name="lang:search.result.other" content="# matching documents">
-
- <meta name="lang:search.tokenizer" content="[\s\-]+">
-
- <link rel="shortcut icon" href="images/favico.ico">
- <meta name="generator" content="mkdocs-1.1, mkdocs-material-4.6.3">
+ <link rel="icon" href="images/favico.ico">
+ <meta name="generator" content="mkdocs-1.2.1, mkdocs-material-7.1.9">
- <title>FreeType's header inclusion scheme - FreeType-2.10.4 API Reference</title>
+ <title>FreeType's header inclusion scheme - FreeType-2.11.1 API Reference</title>
- <link rel="stylesheet" href="assets/stylesheets/application.adb8469c.css">
-
- <link rel="stylesheet" href="assets/stylesheets/application-palette.a8b3c06d.css">
-
+ <link rel="stylesheet" href="assets/stylesheets/main.ca7ac06f.min.css">
+ <link rel="stylesheet" href="assets/stylesheets/palette.f1a3b89f.min.css">
+
+
+
+ <meta name="theme-color" content="#4cae4f">
- <meta name="theme-color" content="#4caf50">
- <script src="assets/javascripts/modernizr.86422ebf.js"></script>
-
- <link href="https://fonts.gstatic.com" rel="preconnect" crossorigin>
+
+ <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Noto+Serif:300,400,400i,700%7CRoboto+Mono&display=fallback">
- <style>body,input{font-family:"Noto Serif","Helvetica Neue",Helvetica,Arial,sans-serif}code,kbd,pre{font-family:"Roboto Mono","Courier New",Courier,monospace}</style>
+ <style>:root{--md-text-font-family:"Noto Serif";--md-code-font-family:"Roboto Mono"}</style>
- <link rel="stylesheet" href="assets/fonts/material-icons.css">
<link rel="stylesheet" href="stylesheets/extra.css">
+
+
</head>
+
+
+
+
- <body dir="ltr" data-md-color-primary="green" data-md-color-accent="green">
+ <body dir="ltr" data-md-color-scheme="" data-md-color-primary="green" data-md-color-accent="green">
- <svg class="md-svg">
- <defs>
-
-
- </defs>
- </svg>
- <input class="md-toggle" data-md-toggle="drawer" type="checkbox" id="__drawer" autocomplete="off">
- <input class="md-toggle" data-md-toggle="search" type="checkbox" id="__search" autocomplete="off">
- <label class="md-overlay" data-md-component="overlay" for="__drawer"></label>
- <a href="#freetypes-header-inclusion-scheme" tabindex="0" class="md-skip">
- Skip to content
- </a>
+ <script>function __prefix(e){return new URL(".",location).pathname+"."+e}function __get(e,t=localStorage){return JSON.parse(t.getItem(__prefix(e)))}</script>
+ <input class="md-toggle" data-md-toggle="drawer" type="checkbox" id="__drawer" autocomplete="off">
+ <input class="md-toggle" data-md-toggle="search" type="checkbox" id="__search" autocomplete="off">
+ <label class="md-overlay" for="__drawer"></label>
+ <div data-md-component="skip">
+
+
+ <a href="#freetypes-header-inclusion-scheme" class="md-skip">
+ Skip to content
+ </a>
+
+ </div>
+ <div data-md-component="announce">
+
+ </div>
<header class="md-header" data-md-component="header">
- <nav class="md-header-nav md-grid">
- <div class="md-flex">
- <div class="md-flex__cell md-flex__cell--shrink">
- <a href="." title="FreeType-2.10.4 API Reference" aria-label="FreeType-2.10.4 API Reference" class="md-header-nav__button md-logo">
-
- <img alt="logo" src="images/favico.ico" width="24" height="24">
-
- </a>
- </div>
- <div class="md-flex__cell md-flex__cell--shrink">
- <label class="md-icon md-icon--menu md-header-nav__button" for="__drawer"></label>
- </div>
- <div class="md-flex__cell md-flex__cell--stretch">
- <div class="md-flex__ellipsis md-header-nav__title" data-md-component="title">
-
- <span class="md-header-nav__topic">
- FreeType-2.10.4 API Reference
- </span>
- <span class="md-header-nav__topic">
-
- FreeType's header inclusion scheme
-
- </span>
-
+ <nav class="md-header__inner md-grid" aria-label="Header">
+ <a href="index.html" title="FreeType-2.11.1 API Reference" class="md-header__button md-logo" aria-label="FreeType-2.11.1 API Reference" data-md-component="logo">
+
+ <img src="images/favico.ico" alt="logo">
+
+ </a>
+ <label class="md-header__button md-icon" for="__drawer">
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M3 6h18v2H3V6m0 5h18v2H3v-2m0 5h18v2H3v-2z"/></svg>
+ </label>
+ <div class="md-header__title" data-md-component="header-title">
+ <div class="md-header__ellipsis">
+ <div class="md-header__topic">
+ <span class="md-ellipsis">
+ FreeType-2.11.1 API Reference
+ </span>
+ </div>
+ <div class="md-header__topic" data-md-component="header-topic">
+ <span class="md-ellipsis">
+
+ FreeType's header inclusion scheme
+
+ </span>
</div>
</div>
- <div class="md-flex__cell md-flex__cell--shrink">
-
- <label class="md-icon md-icon--search md-header-nav__button" for="__search"></label>
-
+ </div>
+
+
+
+ <label class="md-header__button md-icon" for="__search">
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M9.5 3A6.5 6.5 0 0 1 16 9.5c0 1.61-.59 3.09-1.56 4.23l.27.27h.79l5 5-1.5 1.5-5-5v-.79l-.27-.27A6.516 6.516 0 0 1 9.5 16 6.5 6.5 0 0 1 3 9.5 6.5 6.5 0 0 1 9.5 3m0 2C7 5 5 7 5 9.5S7 14 9.5 14 14 12 14 9.5 12 5 9.5 5z"/></svg>
+ </label>
+
<div class="md-search" data-md-component="search" role="dialog">
<label class="md-search__overlay" for="__search"></label>
<div class="md-search__inner" role="search">
<form class="md-search__form" name="search">
- <input type="text" class="md-search__input" aria-label="search" name="query" placeholder="Search" autocapitalize="off" autocorrect="off" autocomplete="off" spellcheck="false" data-md-component="query" data-md-state="active">
- <label class="md-icon md-search__icon" for="__search"></label>
- <button type="reset" class="md-icon md-search__icon" data-md-component="reset" tabindex="-1">
- &#xE5CD;
+ <input type="text" class="md-search__input" name="query" aria-label="Search" placeholder="Search" autocapitalize="off" autocorrect="off" autocomplete="off" spellcheck="false" data-md-component="search-query" data-md-state="active" required>
+ <label class="md-search__icon md-icon" for="__search">
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M9.5 3A6.5 6.5 0 0 1 16 9.5c0 1.61-.59 3.09-1.56 4.23l.27.27h.79l5 5-1.5 1.5-5-5v-.79l-.27-.27A6.516 6.516 0 0 1 9.5 16 6.5 6.5 0 0 1 3 9.5 6.5 6.5 0 0 1 9.5 3m0 2C7 5 5 7 5 9.5S7 14 9.5 14 14 12 14 9.5 12 5 9.5 5z"/></svg>
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M20 11v2H8l5.5 5.5-1.42 1.42L4.16 12l7.92-7.92L13.5 5.5 8 11h12z"/></svg>
+ </label>
+ <button type="reset" class="md-search__icon md-icon" aria-label="Clear" tabindex="-1">
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z"/></svg>
</button>
</form>
<div class="md-search__output">
<div class="md-search__scrollwrap" data-md-scrollfix>
- <div class="md-search-result" data-md-component="result">
+ <div class="md-search-result" data-md-component="search-result">
<div class="md-search-result__meta">
- Type to start searching
+ Initializing search
</div>
<ol class="md-search-result__list"></ol>
</div>
@@ -147,33 +138,35 @@
</div>
</div>
</div>
-
- </div>
-
- </div>
+
+
</nav>
</header>
- <div class="md-container">
+ <div class="md-container" data-md-component="container">
-
+
- <main class="md-main" role="main">
- <div class="md-main__inner md-grid" data-md-component="container">
+ <main class="md-main" data-md-component="main">
+ <div class="md-main__inner md-grid">
- <div class="md-sidebar md-sidebar--primary" data-md-component="navigation">
+
+ <div class="md-sidebar md-sidebar--primary" data-md-component="sidebar" data-md-type="navigation" >
<div class="md-sidebar__scrollwrap">
<div class="md-sidebar__inner">
- <nav class="md-nav md-nav--primary" data-md-level="0">
- <label class="md-nav__title md-nav__title--site" for="__drawer">
- <a href="." title="FreeType-2.10.4 API Reference" class="md-nav__button md-logo">
-
- <img alt="logo" src="images/favico.ico" width="48" height="48">
+
+
+
+<nav class="md-nav md-nav--primary" aria-label="Navigation" data-md-level="0">
+ <label class="md-nav__title" for="__drawer">
+ <a href="index.html" title="FreeType-2.11.1 API Reference" class="md-nav__button md-logo" aria-label="FreeType-2.11.1 API Reference" data-md-component="logo">
+ <img src="images/favico.ico" alt="logo">
+
</a>
- FreeType-2.10.4 API Reference
+ FreeType-2.11.1 API Reference
</label>
<ul class="md-nav__list" data-md-scrollfix>
@@ -182,24 +175,30 @@
-
- <li class="md-nav__item">
- <a href="index.html" title="TOC" class="md-nav__link">
- TOC
- </a>
- </li>
+
+
+
+ <li class="md-nav__item">
+ <a href="index.html" class="md-nav__link">
+ TOC
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-index.html" title="Index" class="md-nav__link">
- Index
- </a>
- </li>
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-index.html" class="md-nav__link">
+ Index
+ </a>
+ </li>
+
@@ -207,53 +206,75 @@
-
-
- <li class="md-nav__item md-nav__item--active md-nav__item--nested">
+
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-3" type="checkbox" id="nav-3" checked>
+
+
- <label class="md-nav__link" for="nav-3">
- General Remarks
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-3">
+ <li class="md-nav__item md-nav__item--active md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_3" type="checkbox" id="__nav_3" checked>
+
+ <label class="md-nav__link" for="__nav_3">
General Remarks
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
+ <nav class="md-nav" aria-label="General Remarks" data-md-level="1">
+ <label class="md-nav__title" for="__nav_3">
+ <span class="md-nav__icon md-icon"></span>
+ General Remarks
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-preamble.html" class="md-nav__link">
+ Preamble
+ </a>
+ </li>
-
- <li class="md-nav__item md-nav__item--active">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="toc" type="checkbox" id="__toc">
+
+
+
+
+
+
+ <li class="md-nav__item md-nav__item--active">
-
-
- <label class="md-nav__link md-nav__link--active" for="__toc">
+ <input class="md-nav__toggle md-toggle" data-md-toggle="toc" type="checkbox" id="__toc">
+
+
+
+
+
+ <label class="md-nav__link md-nav__link--active" for="__toc">
+ FreeType's header inclusion scheme
+ <span class="md-nav__icon md-icon"></span>
+ </label>
+
+ <a href="ft2-header_inclusion.html" class="md-nav__link md-nav__link--active">
FreeType's header inclusion scheme
- </label>
-
- <a href="ft2-header_inclusion.html" title="FreeType's header inclusion scheme" class="md-nav__link md-nav__link--active">
- FreeType's header inclusion scheme
- </a>
-
+ </a>
-<nav class="md-nav md-nav--secondary">
+
+<nav class="md-nav md-nav--secondary" aria-label="Table of contents">
+
- <label class="md-nav__title" for="__toc">Table of contents</label>
- <ul class="md-nav__list" data-md-scrollfix>
+ <label class="md-nav__title" for="__toc">
+ <span class="md-nav__icon md-icon"></span>
+ Table of contents
+ </label>
+ <ul class="md-nav__list" data-md-component="toc" data-md-scrollfix>
<li class="md-nav__item">
<a href="#synopsis" class="md-nav__link">
@@ -262,764 +283,816 @@
</li>
-
-
-
-
</ul>
</nav>
-
- </li>
+
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-user_allocation.html" title="User allocation" class="md-nav__link">
- User allocation
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-user_allocation.html" class="md-nav__link">
+ User allocation
+ </a>
+ </li>
+
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-4" type="checkbox" id="nav-4">
+
+
+
- <label class="md-nav__link" for="nav-4">
- Core API
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-4">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_4" type="checkbox" id="__nav_4" >
+
+ <label class="md-nav__link" for="__nav_4">
Core API
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
+ <nav class="md-nav" aria-label="Core API" data-md-level="1">
+ <label class="md-nav__title" for="__nav_4">
+ <span class="md-nav__icon md-icon"></span>
+ Core API
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-version.html" title="FreeType Version" class="md-nav__link">
- FreeType Version
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-version.html" class="md-nav__link">
+ FreeType Version
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-basic_types.html" class="md-nav__link">
+ Basic Data Types
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-basic_types.html" title="Basic Data Types" class="md-nav__link">
- Basic Data Types
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-base_interface.html" title="Base Interface" class="md-nav__link">
- Base Interface
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-base_interface.html" class="md-nav__link">
+ Base Interface
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-glyph_variants.html" class="md-nav__link">
+ Unicode Variation Sequences
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-glyph_variants.html" title="Unicode Variation Sequences" class="md-nav__link">
- Unicode Variation Sequences
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-color_management.html" title="Glyph Color Management" class="md-nav__link">
- Glyph Color Management
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-color_management.html" class="md-nav__link">
+ Glyph Color Management
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-layer_management.html" title="Glyph Layer Management" class="md-nav__link">
- Glyph Layer Management
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-layer_management.html" class="md-nav__link">
+ Glyph Layer Management
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-glyph_management.html" title="Glyph Management" class="md-nav__link">
- Glyph Management
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-glyph_management.html" class="md-nav__link">
+ Glyph Management
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-mac_specific.html" class="md-nav__link">
+ Mac Specific Interface
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-mac_specific.html" title="Mac Specific Interface" class="md-nav__link">
- Mac Specific Interface
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-sizes_management.html" title="Size Management" class="md-nav__link">
- Size Management
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-sizes_management.html" class="md-nav__link">
+ Size Management
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-header_file_macros.html" title="Header File Macros" class="md-nav__link">
- Header File Macros
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-header_file_macros.html" class="md-nav__link">
+ Header File Macros
+ </a>
+ </li>
+
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-5" type="checkbox" id="nav-5">
+
+
+
- <label class="md-nav__link" for="nav-5">
- Format-Specific API
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-5">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_5" type="checkbox" id="__nav_5" >
+
+ <label class="md-nav__link" for="__nav_5">
Format-Specific API
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
-
+ <nav class="md-nav" aria-label="Format-Specific API" data-md-level="1">
+ <label class="md-nav__title" for="__nav_5">
+ <span class="md-nav__icon md-icon"></span>
+ Format-Specific API
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
-
-
-
- <li class="md-nav__item">
- <a href="ft2-multiple_masters.html" title="Multiple Masters" class="md-nav__link">
- Multiple Masters
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-multiple_masters.html" class="md-nav__link">
+ Multiple Masters
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-truetype_tables.html" title="TrueType Tables" class="md-nav__link">
- TrueType Tables
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-truetype_tables.html" class="md-nav__link">
+ TrueType Tables
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-type1_tables.html" title="Type 1 Tables" class="md-nav__link">
- Type 1 Tables
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-type1_tables.html" class="md-nav__link">
+ Type 1 Tables
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-sfnt_names.html" title="SFNT Names" class="md-nav__link">
- SFNT Names
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-sfnt_names.html" class="md-nav__link">
+ SFNT Names
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-bdf_fonts.html" title="BDF and PCF Files" class="md-nav__link">
- BDF and PCF Files
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-bdf_fonts.html" class="md-nav__link">
+ BDF and PCF Files
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-cid_fonts.html" class="md-nav__link">
+ CID Fonts
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-cid_fonts.html" title="CID Fonts" class="md-nav__link">
- CID Fonts
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-pfr_fonts.html" title="PFR Fonts" class="md-nav__link">
- PFR Fonts
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-pfr_fonts.html" class="md-nav__link">
+ PFR Fonts
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-winfnt_fonts.html" class="md-nav__link">
+ Window FNT Files
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-winfnt_fonts.html" title="Window FNT Files" class="md-nav__link">
- Window FNT Files
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-font_formats.html" title="Font Formats" class="md-nav__link">
- Font Formats
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-font_formats.html" class="md-nav__link">
+ Font Formats
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-gasp_table.html" title="Gasp Table" class="md-nav__link">
- Gasp Table
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-gasp_table.html" class="md-nav__link">
+ Gasp Table
+ </a>
+ </li>
+
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-6" type="checkbox" id="nav-6">
+
+
+
- <label class="md-nav__link" for="nav-6">
- Controlling FreeType Modules
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-6">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_6" type="checkbox" id="__nav_6" >
+
+ <label class="md-nav__link" for="__nav_6">
Controlling FreeType Modules
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
-
+ <nav class="md-nav" aria-label="Controlling FreeType Modules" data-md-level="1">
+ <label class="md-nav__title" for="__nav_6">
+ <span class="md-nav__icon md-icon"></span>
+ Controlling FreeType Modules
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
-
-
-
- <li class="md-nav__item">
- <a href="ft2-auto_hinter.html" title="The auto-hinter" class="md-nav__link">
- The auto-hinter
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-auto_hinter.html" class="md-nav__link">
+ The auto-hinter
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-cff_driver.html" title="The CFF driver" class="md-nav__link">
- The CFF driver
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-cff_driver.html" class="md-nav__link">
+ The CFF driver
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-t1_cid_driver.html" class="md-nav__link">
+ The Type 1 and CID drivers
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-t1_cid_driver.html" title="The Type 1 and CID drivers" class="md-nav__link">
- The Type 1 and CID drivers
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-tt_driver.html" title="The TrueType driver" class="md-nav__link">
- The TrueType driver
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-tt_driver.html" class="md-nav__link">
+ The TrueType driver
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-pcf_driver.html" title="The PCF driver" class="md-nav__link">
- The PCF driver
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-pcf_driver.html" class="md-nav__link">
+ The PCF driver
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-properties.html" title="Driver properties" class="md-nav__link">
- Driver properties
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-properties.html" class="md-nav__link">
+ Driver properties
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-parameter_tags.html" title="Parameter Tags" class="md-nav__link">
- Parameter Tags
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-parameter_tags.html" class="md-nav__link">
+ Parameter Tags
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-lcd_rendering.html" title="Subpixel Rendering" class="md-nav__link">
- Subpixel Rendering
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-lcd_rendering.html" class="md-nav__link">
+ Subpixel Rendering
+ </a>
+ </li>
+
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-7" type="checkbox" id="nav-7">
+
+
+
- <label class="md-nav__link" for="nav-7">
- Cache Sub-System
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-7">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_7" type="checkbox" id="__nav_7" >
+
+ <label class="md-nav__link" for="__nav_7">
Cache Sub-System
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
-
+ <nav class="md-nav" aria-label="Cache Sub-System" data-md-level="1">
+ <label class="md-nav__title" for="__nav_7">
+ <span class="md-nav__icon md-icon"></span>
+ Cache Sub-System
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
-
-
-
- <li class="md-nav__item">
- <a href="ft2-cache_subsystem.html" title="Cache Sub-System" class="md-nav__link">
- Cache Sub-System
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-cache_subsystem.html" class="md-nav__link">
+ Cache Sub-System
+ </a>
+ </li>
+
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-8" type="checkbox" id="nav-8">
+
+
+
- <label class="md-nav__link" for="nav-8">
- Support API
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-8">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_8" type="checkbox" id="__nav_8" >
+
+ <label class="md-nav__link" for="__nav_8">
Support API
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
-
-
+ <nav class="md-nav" aria-label="Support API" data-md-level="1">
+ <label class="md-nav__title" for="__nav_8">
+ <span class="md-nav__icon md-icon"></span>
+ Support API
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-computations.html" class="md-nav__link">
+ Computations
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-computations.html" title="Computations" class="md-nav__link">
- Computations
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-list_processing.html" title="List Processing" class="md-nav__link">
- List Processing
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-list_processing.html" class="md-nav__link">
+ List Processing
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-outline_processing.html" title="Outline Processing" class="md-nav__link">
- Outline Processing
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-outline_processing.html" class="md-nav__link">
+ Outline Processing
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-quick_advance.html" title="Quick retrieval of advance values" class="md-nav__link">
- Quick retrieval of advance values
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-quick_advance.html" class="md-nav__link">
+ Quick retrieval of advance values
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-bitmap_handling.html" title="Bitmap Handling" class="md-nav__link">
- Bitmap Handling
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-bitmap_handling.html" class="md-nav__link">
+ Bitmap Handling
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-raster.html" title="Scanline Converter" class="md-nav__link">
- Scanline Converter
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-raster.html" class="md-nav__link">
+ Scanline Converter
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-glyph_stroker.html" title="Glyph Stroker" class="md-nav__link">
- Glyph Stroker
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-glyph_stroker.html" class="md-nav__link">
+ Glyph Stroker
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-system_interface.html" class="md-nav__link">
+ System Interface
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-system_interface.html" title="System Interface" class="md-nav__link">
- System Interface
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-module_management.html" title="Module Management" class="md-nav__link">
- Module Management
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-module_management.html" class="md-nav__link">
+ Module Management
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-gzip.html" class="md-nav__link">
+ GZIP Streams
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-gzip.html" title="GZIP Streams" class="md-nav__link">
- GZIP Streams
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-lzw.html" title="LZW Streams" class="md-nav__link">
- LZW Streams
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-lzw.html" class="md-nav__link">
+ LZW Streams
+ </a>
+ </li>
+
-
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-bzip2.html" class="md-nav__link">
+ BZIP2 Streams
+ </a>
+ </li>
+
- <li class="md-nav__item">
- <a href="ft2-bzip2.html" title="BZIP2 Streams" class="md-nav__link">
- BZIP2 Streams
- </a>
- </li>
+
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-debugging_apis.html" class="md-nav__link">
+ External Debugging APIs
+ </a>
+ </li>
+
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-9" type="checkbox" id="nav-9">
+
+
+
- <label class="md-nav__link" for="nav-9">
- Error Codes
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-9">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_9" type="checkbox" id="__nav_9" >
+
+ <label class="md-nav__link" for="__nav_9">
Error Codes
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
-
-
+ <nav class="md-nav" aria-label="Error Codes" data-md-level="1">
+ <label class="md-nav__title" for="__nav_9">
+ <span class="md-nav__icon md-icon"></span>
+ Error Codes
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-error_enumerations.html" class="md-nav__link">
+ Error Enumerations
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-error_enumerations.html" title="Error Enumerations" class="md-nav__link">
- Error Enumerations
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-error_code_values.html" title="Error Code Values" class="md-nav__link">
- Error Code Values
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-error_code_values.html" class="md-nav__link">
+ Error Code Values
+ </a>
+ </li>
+
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-10" type="checkbox" id="nav-10">
+
+
+
- <label class="md-nav__link" for="nav-10">
- Miscellaneous
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-10">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_10" type="checkbox" id="__nav_10" >
+
+ <label class="md-nav__link" for="__nav_10">
Miscellaneous
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
+ <nav class="md-nav" aria-label="Miscellaneous" data-md-level="1">
+ <label class="md-nav__title" for="__nav_10">
+ <span class="md-nav__icon md-icon"></span>
+ Miscellaneous
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-gx_validation.html" title="TrueTypeGX/AAT Validation" class="md-nav__link">
- TrueTypeGX/AAT Validation
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-gx_validation.html" class="md-nav__link">
+ TrueTypeGX/AAT Validation
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-incremental.html" class="md-nav__link">
+ Incremental Loading
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-incremental.html" title="Incremental Loading" class="md-nav__link">
- Incremental Loading
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-truetype_engine.html" title="The TrueType Engine" class="md-nav__link">
- The TrueType Engine
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-truetype_engine.html" class="md-nav__link">
+ The TrueType Engine
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-ot_validation.html" title="OpenType Validation" class="md-nav__link">
- OpenType Validation
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-ot_validation.html" class="md-nav__link">
+ OpenType Validation
+ </a>
+ </li>
+
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
</ul>
@@ -1029,18 +1102,23 @@
</div>
- <div class="md-sidebar md-sidebar--secondary" data-md-component="toc">
+
+ <div class="md-sidebar md-sidebar--secondary" data-md-component="sidebar" data-md-type="toc" >
<div class="md-sidebar__scrollwrap">
<div class="md-sidebar__inner">
-<nav class="md-nav md-nav--secondary">
+<nav class="md-nav md-nav--secondary" aria-label="Table of contents">
+
- <label class="md-nav__title" for="__toc">Table of contents</label>
- <ul class="md-nav__list" data-md-scrollfix>
+ <label class="md-nav__title" for="__toc">
+ <span class="md-nav__icon md-icon"></span>
+ Table of contents
+ </label>
+ <ul class="md-nav__list" data-md-component="toc" data-md-scrollfix>
<li class="md-nav__item">
<a href="#synopsis" class="md-nav__link">
@@ -1049,10 +1127,6 @@
</li>
-
-
-
-
</ul>
</nav>
@@ -1061,7 +1135,7 @@
</div>
- <div class="md-content">
+ <div class="md-content" data-md-component="content">
<article class="md-content__inner md-typeset">
@@ -1077,9 +1151,6 @@
#include &lt;freetype/ftoutln.h&gt;
</code></pre></div></p>
-
-
-
@@ -1089,59 +1160,60 @@
</article>
</div>
</div>
+
</main>
<footer class="md-footer">
- <div class="md-footer-nav">
- <nav class="md-footer-nav__inner md-grid">
+ <nav class="md-footer__inner md-grid" aria-label="Footer">
+
- <a href="ft2-index.html" title="Index" class="md-flex md-footer-nav__link md-footer-nav__link--prev" rel="prev">
- <div class="md-flex__cell md-flex__cell--shrink">
- <i class="md-icon md-icon--arrow-back md-footer-nav__button"></i>
- </div>
- <div class="md-flex__cell md-flex__cell--stretch md-footer-nav__title">
- <span class="md-flex__ellipsis">
- <span class="md-footer-nav__direction">
- Previous
- </span>
- Index
+ <a href="ft2-preamble.html" class="md-footer__link md-footer__link--prev" aria-label="Previous: Preamble" rel="prev">
+ <div class="md-footer__button md-icon">
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M20 11v2H8l5.5 5.5-1.42 1.42L4.16 12l7.92-7.92L13.5 5.5 8 11h12z"/></svg>
+ </div>
+ <div class="md-footer__title">
+ <div class="md-ellipsis">
+ <span class="md-footer__direction">
+ Previous
</span>
+ Preamble
</div>
- </a>
-
+ </div>
+ </a>
+
+
- <a href="ft2-user_allocation.html" title="User allocation" class="md-flex md-footer-nav__link md-footer-nav__link--next" rel="next">
- <div class="md-flex__cell md-flex__cell--stretch md-footer-nav__title">
- <span class="md-flex__ellipsis">
- <span class="md-footer-nav__direction">
- Next
- </span>
- User allocation
+ <a href="ft2-user_allocation.html" class="md-footer__link md-footer__link--next" aria-label="Next: User allocation" rel="next">
+ <div class="md-footer__title">
+ <div class="md-ellipsis">
+ <span class="md-footer__direction">
+ Next
</span>
+ User allocation
</div>
- <div class="md-flex__cell md-flex__cell--shrink">
- <i class="md-icon md-icon--arrow-forward md-footer-nav__button"></i>
- </div>
- </a>
-
- </nav>
- </div>
+ </div>
+ <div class="md-footer__button md-icon">
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M4 11v2h12l-5.5 5.5 1.42 1.42L19.84 12l-7.92-7.92L10.5 5.5 16 11H4z"/></svg>
+ </div>
+ </a>
+
+ </nav>
<div class="md-footer-meta md-typeset">
<div class="md-footer-meta__inner md-grid">
<div class="md-footer-copyright">
<div class="md-footer-copyright__highlight">
- Copyright 2020 <a href = "https://www.freetype.org/license.html">The FreeType Project</a>.
+ Copyright 2021 <a href = "https://www.freetype.org/license.html">The FreeType Project</a>.
</div>
- powered by
- <a href="https://www.mkdocs.org" target="_blank" rel="noopener">MkDocs</a>
- and
+ Made with
<a href="https://squidfunk.github.io/mkdocs-material/" target="_blank" rel="noopener">
- Material for MkDocs</a>
+ Material for MkDocs
+ </a>
+
</div>
</div>
@@ -1149,10 +1221,13 @@
</footer>
</div>
+ <div class="md-dialog" data-md-component="dialog">
+ <div class="md-dialog__inner md-typeset"></div>
+ </div>
+ <script id="__config" type="application/json">{"base": ".", "features": [], "translations": {"clipboard.copy": "Copy to clipboard", "clipboard.copied": "Copied to clipboard", "search.config.lang": "en", "search.config.pipeline": "trimmer, stopWordFilter", "search.config.separator": "[\\s\\-]+", "search.placeholder": "Search", "search.result.placeholder": "Type to start searching", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.term.missing": "Missing", "select.version.title": "Select version"}, "search": "assets/javascripts/workers/search.477d984a.min.js", "version": null}</script>
- <script src="assets/javascripts/application.c33a9706.js"></script>
-
- <script>app.initialize({version:"1.1",url:{base:"."}})</script>
+
+ <script src="assets/javascripts/bundle.82b56eb2.min.js"></script>
<script src="javascripts/extra.js"></script>
diff --git a/freetype/docs/reference/ft2-incremental.html b/freetype/docs/reference/ft2-incremental.html
index c09851ba..67b4751a 100644
--- a/freetype/docs/reference/ft2-incremental.html
+++ b/freetype/docs/reference/ft2-incremental.html
@@ -1,145 +1,136 @@
-
-
-
<!doctype html>
<html lang="en" class="no-js">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
- <meta http-equiv="x-ua-compatible" content="ie=edge">
- <meta name="description" content="API Reference Documentation for FreeType-2.10.4">
+ <meta name="description" content="API Reference Documentation for FreeType-2.11.1">
<meta name="author" content="FreeType Contributors">
- <meta name="lang:clipboard.copy" content="Copy to clipboard">
-
- <meta name="lang:clipboard.copied" content="Copied to clipboard">
-
- <meta name="lang:search.language" content="en">
-
- <meta name="lang:search.pipeline.stopwords" content="True">
-
- <meta name="lang:search.pipeline.trimmer" content="True">
-
- <meta name="lang:search.result.none" content="No matching documents">
-
- <meta name="lang:search.result.one" content="1 matching document">
-
- <meta name="lang:search.result.other" content="# matching documents">
-
- <meta name="lang:search.tokenizer" content="[\s\-]+">
-
- <link rel="shortcut icon" href="images/favico.ico">
- <meta name="generator" content="mkdocs-1.1, mkdocs-material-4.6.3">
+ <link rel="icon" href="images/favico.ico">
+ <meta name="generator" content="mkdocs-1.2.1, mkdocs-material-7.1.9">
- <title>Incremental Loading - FreeType-2.10.4 API Reference</title>
+ <title>Incremental Loading - FreeType-2.11.1 API Reference</title>
- <link rel="stylesheet" href="assets/stylesheets/application.adb8469c.css">
-
- <link rel="stylesheet" href="assets/stylesheets/application-palette.a8b3c06d.css">
-
+ <link rel="stylesheet" href="assets/stylesheets/main.ca7ac06f.min.css">
+ <link rel="stylesheet" href="assets/stylesheets/palette.f1a3b89f.min.css">
+
+
+
+ <meta name="theme-color" content="#4cae4f">
- <meta name="theme-color" content="#4caf50">
- <script src="assets/javascripts/modernizr.86422ebf.js"></script>
-
- <link href="https://fonts.gstatic.com" rel="preconnect" crossorigin>
+
+ <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Noto+Serif:300,400,400i,700%7CRoboto+Mono&display=fallback">
- <style>body,input{font-family:"Noto Serif","Helvetica Neue",Helvetica,Arial,sans-serif}code,kbd,pre{font-family:"Roboto Mono","Courier New",Courier,monospace}</style>
+ <style>:root{--md-text-font-family:"Noto Serif";--md-code-font-family:"Roboto Mono"}</style>
- <link rel="stylesheet" href="assets/fonts/material-icons.css">
<link rel="stylesheet" href="stylesheets/extra.css">
+
+
</head>
+
+
+
+
- <body dir="ltr" data-md-color-primary="green" data-md-color-accent="green">
+ <body dir="ltr" data-md-color-scheme="" data-md-color-primary="green" data-md-color-accent="green">
- <svg class="md-svg">
- <defs>
-
-
- </defs>
- </svg>
- <input class="md-toggle" data-md-toggle="drawer" type="checkbox" id="__drawer" autocomplete="off">
- <input class="md-toggle" data-md-toggle="search" type="checkbox" id="__search" autocomplete="off">
- <label class="md-overlay" data-md-component="overlay" for="__drawer"></label>
- <a href="#incremental-loading" tabindex="0" class="md-skip">
- Skip to content
- </a>
+ <script>function __prefix(e){return new URL(".",location).pathname+"."+e}function __get(e,t=localStorage){return JSON.parse(t.getItem(__prefix(e)))}</script>
+ <input class="md-toggle" data-md-toggle="drawer" type="checkbox" id="__drawer" autocomplete="off">
+ <input class="md-toggle" data-md-toggle="search" type="checkbox" id="__search" autocomplete="off">
+ <label class="md-overlay" for="__drawer"></label>
+ <div data-md-component="skip">
+
+
+ <a href="#incremental-loading" class="md-skip">
+ Skip to content
+ </a>
+
+ </div>
+ <div data-md-component="announce">
+
+ </div>
<header class="md-header" data-md-component="header">
- <nav class="md-header-nav md-grid">
- <div class="md-flex">
- <div class="md-flex__cell md-flex__cell--shrink">
- <a href="." title="FreeType-2.10.4 API Reference" aria-label="FreeType-2.10.4 API Reference" class="md-header-nav__button md-logo">
-
- <img alt="logo" src="images/favico.ico" width="24" height="24">
-
- </a>
- </div>
- <div class="md-flex__cell md-flex__cell--shrink">
- <label class="md-icon md-icon--menu md-header-nav__button" for="__drawer"></label>
- </div>
- <div class="md-flex__cell md-flex__cell--stretch">
- <div class="md-flex__ellipsis md-header-nav__title" data-md-component="title">
-
- <span class="md-header-nav__topic">
- FreeType-2.10.4 API Reference
- </span>
- <span class="md-header-nav__topic">
-
- Incremental Loading
-
- </span>
-
+ <nav class="md-header__inner md-grid" aria-label="Header">
+ <a href="index.html" title="FreeType-2.11.1 API Reference" class="md-header__button md-logo" aria-label="FreeType-2.11.1 API Reference" data-md-component="logo">
+
+ <img src="images/favico.ico" alt="logo">
+
+ </a>
+ <label class="md-header__button md-icon" for="__drawer">
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M3 6h18v2H3V6m0 5h18v2H3v-2m0 5h18v2H3v-2z"/></svg>
+ </label>
+ <div class="md-header__title" data-md-component="header-title">
+ <div class="md-header__ellipsis">
+ <div class="md-header__topic">
+ <span class="md-ellipsis">
+ FreeType-2.11.1 API Reference
+ </span>
+ </div>
+ <div class="md-header__topic" data-md-component="header-topic">
+ <span class="md-ellipsis">
+
+ Incremental Loading
+
+ </span>
</div>
</div>
- <div class="md-flex__cell md-flex__cell--shrink">
-
- <label class="md-icon md-icon--search md-header-nav__button" for="__search"></label>
-
+ </div>
+
+
+
+ <label class="md-header__button md-icon" for="__search">
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M9.5 3A6.5 6.5 0 0 1 16 9.5c0 1.61-.59 3.09-1.56 4.23l.27.27h.79l5 5-1.5 1.5-5-5v-.79l-.27-.27A6.516 6.516 0 0 1 9.5 16 6.5 6.5 0 0 1 3 9.5 6.5 6.5 0 0 1 9.5 3m0 2C7 5 5 7 5 9.5S7 14 9.5 14 14 12 14 9.5 12 5 9.5 5z"/></svg>
+ </label>
+
<div class="md-search" data-md-component="search" role="dialog">
<label class="md-search__overlay" for="__search"></label>
<div class="md-search__inner" role="search">
<form class="md-search__form" name="search">
- <input type="text" class="md-search__input" aria-label="search" name="query" placeholder="Search" autocapitalize="off" autocorrect="off" autocomplete="off" spellcheck="false" data-md-component="query" data-md-state="active">
- <label class="md-icon md-search__icon" for="__search"></label>
- <button type="reset" class="md-icon md-search__icon" data-md-component="reset" tabindex="-1">
- &#xE5CD;
+ <input type="text" class="md-search__input" name="query" aria-label="Search" placeholder="Search" autocapitalize="off" autocorrect="off" autocomplete="off" spellcheck="false" data-md-component="search-query" data-md-state="active" required>
+ <label class="md-search__icon md-icon" for="__search">
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M9.5 3A6.5 6.5 0 0 1 16 9.5c0 1.61-.59 3.09-1.56 4.23l.27.27h.79l5 5-1.5 1.5-5-5v-.79l-.27-.27A6.516 6.516 0 0 1 9.5 16 6.5 6.5 0 0 1 3 9.5 6.5 6.5 0 0 1 9.5 3m0 2C7 5 5 7 5 9.5S7 14 9.5 14 14 12 14 9.5 12 5 9.5 5z"/></svg>
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M20 11v2H8l5.5 5.5-1.42 1.42L4.16 12l7.92-7.92L13.5 5.5 8 11h12z"/></svg>
+ </label>
+ <button type="reset" class="md-search__icon md-icon" aria-label="Clear" tabindex="-1">
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z"/></svg>
</button>
</form>
<div class="md-search__output">
<div class="md-search__scrollwrap" data-md-scrollfix>
- <div class="md-search-result" data-md-component="result">
+ <div class="md-search-result" data-md-component="search-result">
<div class="md-search-result__meta">
- Type to start searching
+ Initializing search
</div>
<ol class="md-search-result__list"></ol>
</div>
@@ -147,33 +138,35 @@
</div>
</div>
</div>
-
- </div>
-
- </div>
+
+
</nav>
</header>
- <div class="md-container">
+ <div class="md-container" data-md-component="container">
-
+
- <main class="md-main" role="main">
- <div class="md-main__inner md-grid" data-md-component="container">
+ <main class="md-main" data-md-component="main">
+ <div class="md-main__inner md-grid">
- <div class="md-sidebar md-sidebar--primary" data-md-component="navigation">
+
+ <div class="md-sidebar md-sidebar--primary" data-md-component="sidebar" data-md-type="navigation" >
<div class="md-sidebar__scrollwrap">
<div class="md-sidebar__inner">
- <nav class="md-nav md-nav--primary" data-md-level="0">
- <label class="md-nav__title md-nav__title--site" for="__drawer">
- <a href="." title="FreeType-2.10.4 API Reference" class="md-nav__button md-logo">
-
- <img alt="logo" src="images/favico.ico" width="48" height="48">
+
+
+
+<nav class="md-nav md-nav--primary" aria-label="Navigation" data-md-level="0">
+ <label class="md-nav__title" for="__drawer">
+ <a href="index.html" title="FreeType-2.11.1 API Reference" class="md-nav__button md-logo" aria-label="FreeType-2.11.1 API Reference" data-md-component="logo">
+ <img src="images/favico.ico" alt="logo">
+
</a>
- FreeType-2.10.4 API Reference
+ FreeType-2.11.1 API Reference
</label>
<ul class="md-nav__list" data-md-scrollfix>
@@ -182,732 +175,804 @@
-
- <li class="md-nav__item">
- <a href="index.html" title="TOC" class="md-nav__link">
- TOC
- </a>
- </li>
+
+
+
+ <li class="md-nav__item">
+ <a href="index.html" class="md-nav__link">
+ TOC
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-index.html" title="Index" class="md-nav__link">
- Index
- </a>
- </li>
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-index.html" class="md-nav__link">
+ Index
+ </a>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-3" type="checkbox" id="nav-3">
+
+
+
- <label class="md-nav__link" for="nav-3">
- General Remarks
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-3">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_3" type="checkbox" id="__nav_3" >
+
+ <label class="md-nav__link" for="__nav_3">
General Remarks
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
-
+ <nav class="md-nav" aria-label="General Remarks" data-md-level="1">
+ <label class="md-nav__title" for="__nav_3">
+ <span class="md-nav__icon md-icon"></span>
+ General Remarks
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
-
-
-
- <li class="md-nav__item">
- <a href="ft2-header_inclusion.html" title="FreeType's header inclusion scheme" class="md-nav__link">
- FreeType's header inclusion scheme
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-preamble.html" class="md-nav__link">
+ Preamble
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-header_inclusion.html" class="md-nav__link">
+ FreeType's header inclusion scheme
+ </a>
+ </li>
+
+
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-user_allocation.html" class="md-nav__link">
+ User allocation
+ </a>
+ </li>
+
- <li class="md-nav__item">
- <a href="ft2-user_allocation.html" title="User allocation" class="md-nav__link">
- User allocation
- </a>
- </li>
-
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-4" type="checkbox" id="nav-4">
+
+
+
- <label class="md-nav__link" for="nav-4">
- Core API
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-4">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_4" type="checkbox" id="__nav_4" >
+
+ <label class="md-nav__link" for="__nav_4">
Core API
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
-
+ <nav class="md-nav" aria-label="Core API" data-md-level="1">
+ <label class="md-nav__title" for="__nav_4">
+ <span class="md-nav__icon md-icon"></span>
+ Core API
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
-
-
-
- <li class="md-nav__item">
- <a href="ft2-version.html" title="FreeType Version" class="md-nav__link">
- FreeType Version
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-version.html" class="md-nav__link">
+ FreeType Version
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-basic_types.html" class="md-nav__link">
+ Basic Data Types
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-basic_types.html" title="Basic Data Types" class="md-nav__link">
- Basic Data Types
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-base_interface.html" title="Base Interface" class="md-nav__link">
- Base Interface
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-base_interface.html" class="md-nav__link">
+ Base Interface
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-glyph_variants.html" class="md-nav__link">
+ Unicode Variation Sequences
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-glyph_variants.html" title="Unicode Variation Sequences" class="md-nav__link">
- Unicode Variation Sequences
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-color_management.html" title="Glyph Color Management" class="md-nav__link">
- Glyph Color Management
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-color_management.html" class="md-nav__link">
+ Glyph Color Management
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-layer_management.html" class="md-nav__link">
+ Glyph Layer Management
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-layer_management.html" title="Glyph Layer Management" class="md-nav__link">
- Glyph Layer Management
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-glyph_management.html" title="Glyph Management" class="md-nav__link">
- Glyph Management
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-glyph_management.html" class="md-nav__link">
+ Glyph Management
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-mac_specific.html" title="Mac Specific Interface" class="md-nav__link">
- Mac Specific Interface
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-mac_specific.html" class="md-nav__link">
+ Mac Specific Interface
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-sizes_management.html" title="Size Management" class="md-nav__link">
- Size Management
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-sizes_management.html" class="md-nav__link">
+ Size Management
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-header_file_macros.html" class="md-nav__link">
+ Header File Macros
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-header_file_macros.html" title="Header File Macros" class="md-nav__link">
- Header File Macros
- </a>
- </li>
-
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-5" type="checkbox" id="nav-5">
+
+
+
- <label class="md-nav__link" for="nav-5">
- Format-Specific API
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-5">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_5" type="checkbox" id="__nav_5" >
+
+ <label class="md-nav__link" for="__nav_5">
Format-Specific API
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
-
-
+ <nav class="md-nav" aria-label="Format-Specific API" data-md-level="1">
+ <label class="md-nav__title" for="__nav_5">
+ <span class="md-nav__icon md-icon"></span>
+ Format-Specific API
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-multiple_masters.html" class="md-nav__link">
+ Multiple Masters
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-multiple_masters.html" title="Multiple Masters" class="md-nav__link">
- Multiple Masters
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-truetype_tables.html" title="TrueType Tables" class="md-nav__link">
- TrueType Tables
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-truetype_tables.html" class="md-nav__link">
+ TrueType Tables
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-type1_tables.html" title="Type 1 Tables" class="md-nav__link">
- Type 1 Tables
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-type1_tables.html" class="md-nav__link">
+ Type 1 Tables
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-sfnt_names.html" title="SFNT Names" class="md-nav__link">
- SFNT Names
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-sfnt_names.html" class="md-nav__link">
+ SFNT Names
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-bdf_fonts.html" title="BDF and PCF Files" class="md-nav__link">
- BDF and PCF Files
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-bdf_fonts.html" class="md-nav__link">
+ BDF and PCF Files
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-cid_fonts.html" title="CID Fonts" class="md-nav__link">
- CID Fonts
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-cid_fonts.html" class="md-nav__link">
+ CID Fonts
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-pfr_fonts.html" title="PFR Fonts" class="md-nav__link">
- PFR Fonts
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-pfr_fonts.html" class="md-nav__link">
+ PFR Fonts
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-winfnt_fonts.html" title="Window FNT Files" class="md-nav__link">
- Window FNT Files
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-winfnt_fonts.html" class="md-nav__link">
+ Window FNT Files
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-font_formats.html" title="Font Formats" class="md-nav__link">
- Font Formats
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-font_formats.html" class="md-nav__link">
+ Font Formats
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-gasp_table.html" title="Gasp Table" class="md-nav__link">
- Gasp Table
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-gasp_table.html" class="md-nav__link">
+ Gasp Table
+ </a>
+ </li>
+
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-6" type="checkbox" id="nav-6">
+
+
+
- <label class="md-nav__link" for="nav-6">
- Controlling FreeType Modules
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-6">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_6" type="checkbox" id="__nav_6" >
+
+ <label class="md-nav__link" for="__nav_6">
Controlling FreeType Modules
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
-
+ <nav class="md-nav" aria-label="Controlling FreeType Modules" data-md-level="1">
+ <label class="md-nav__title" for="__nav_6">
+ <span class="md-nav__icon md-icon"></span>
+ Controlling FreeType Modules
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
-
-
-
- <li class="md-nav__item">
- <a href="ft2-auto_hinter.html" title="The auto-hinter" class="md-nav__link">
- The auto-hinter
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-auto_hinter.html" class="md-nav__link">
+ The auto-hinter
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-cff_driver.html" title="The CFF driver" class="md-nav__link">
- The CFF driver
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-cff_driver.html" class="md-nav__link">
+ The CFF driver
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-t1_cid_driver.html" class="md-nav__link">
+ The Type 1 and CID drivers
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-t1_cid_driver.html" title="The Type 1 and CID drivers" class="md-nav__link">
- The Type 1 and CID drivers
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-tt_driver.html" title="The TrueType driver" class="md-nav__link">
- The TrueType driver
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-tt_driver.html" class="md-nav__link">
+ The TrueType driver
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-pcf_driver.html" title="The PCF driver" class="md-nav__link">
- The PCF driver
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-pcf_driver.html" class="md-nav__link">
+ The PCF driver
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-properties.html" title="Driver properties" class="md-nav__link">
- Driver properties
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-properties.html" class="md-nav__link">
+ Driver properties
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-parameter_tags.html" class="md-nav__link">
+ Parameter Tags
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-parameter_tags.html" title="Parameter Tags" class="md-nav__link">
- Parameter Tags
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-lcd_rendering.html" title="Subpixel Rendering" class="md-nav__link">
- Subpixel Rendering
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-lcd_rendering.html" class="md-nav__link">
+ Subpixel Rendering
+ </a>
+ </li>
+
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-7" type="checkbox" id="nav-7">
+
+
+
- <label class="md-nav__link" for="nav-7">
- Cache Sub-System
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-7">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_7" type="checkbox" id="__nav_7" >
+
+ <label class="md-nav__link" for="__nav_7">
Cache Sub-System
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
-
-
+ <nav class="md-nav" aria-label="Cache Sub-System" data-md-level="1">
+ <label class="md-nav__title" for="__nav_7">
+ <span class="md-nav__icon md-icon"></span>
+ Cache Sub-System
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-cache_subsystem.html" class="md-nav__link">
+ Cache Sub-System
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-cache_subsystem.html" title="Cache Sub-System" class="md-nav__link">
- Cache Sub-System
- </a>
- </li>
-
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-8" type="checkbox" id="nav-8">
+
+
+
- <label class="md-nav__link" for="nav-8">
- Support API
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-8">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_8" type="checkbox" id="__nav_8" >
+
+ <label class="md-nav__link" for="__nav_8">
Support API
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
-
+ <nav class="md-nav" aria-label="Support API" data-md-level="1">
+ <label class="md-nav__title" for="__nav_8">
+ <span class="md-nav__icon md-icon"></span>
+ Support API
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
-
-
-
- <li class="md-nav__item">
- <a href="ft2-computations.html" title="Computations" class="md-nav__link">
- Computations
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-computations.html" class="md-nav__link">
+ Computations
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-list_processing.html" title="List Processing" class="md-nav__link">
- List Processing
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-list_processing.html" class="md-nav__link">
+ List Processing
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-outline_processing.html" title="Outline Processing" class="md-nav__link">
- Outline Processing
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-outline_processing.html" class="md-nav__link">
+ Outline Processing
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-quick_advance.html" title="Quick retrieval of advance values" class="md-nav__link">
- Quick retrieval of advance values
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-quick_advance.html" class="md-nav__link">
+ Quick retrieval of advance values
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-bitmap_handling.html" title="Bitmap Handling" class="md-nav__link">
- Bitmap Handling
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-bitmap_handling.html" class="md-nav__link">
+ Bitmap Handling
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-raster.html" title="Scanline Converter" class="md-nav__link">
- Scanline Converter
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-raster.html" class="md-nav__link">
+ Scanline Converter
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-glyph_stroker.html" title="Glyph Stroker" class="md-nav__link">
- Glyph Stroker
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-glyph_stroker.html" class="md-nav__link">
+ Glyph Stroker
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-system_interface.html" class="md-nav__link">
+ System Interface
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-system_interface.html" title="System Interface" class="md-nav__link">
- System Interface
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-module_management.html" title="Module Management" class="md-nav__link">
- Module Management
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-module_management.html" class="md-nav__link">
+ Module Management
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-gzip.html" class="md-nav__link">
+ GZIP Streams
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-gzip.html" title="GZIP Streams" class="md-nav__link">
- GZIP Streams
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-lzw.html" title="LZW Streams" class="md-nav__link">
- LZW Streams
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-lzw.html" class="md-nav__link">
+ LZW Streams
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-bzip2.html" class="md-nav__link">
+ BZIP2 Streams
+ </a>
+ </li>
+
+
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-debugging_apis.html" class="md-nav__link">
+ External Debugging APIs
+ </a>
+ </li>
+
- <li class="md-nav__item">
- <a href="ft2-bzip2.html" title="BZIP2 Streams" class="md-nav__link">
- BZIP2 Streams
- </a>
- </li>
-
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-9" type="checkbox" id="nav-9">
+
+
+
- <label class="md-nav__link" for="nav-9">
- Error Codes
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-9">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_9" type="checkbox" id="__nav_9" >
+
+ <label class="md-nav__link" for="__nav_9">
Error Codes
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
+ <nav class="md-nav" aria-label="Error Codes" data-md-level="1">
+ <label class="md-nav__title" for="__nav_9">
+ <span class="md-nav__icon md-icon"></span>
+ Error Codes
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-error_enumerations.html" title="Error Enumerations" class="md-nav__link">
- Error Enumerations
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-error_enumerations.html" class="md-nav__link">
+ Error Enumerations
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-error_code_values.html" title="Error Code Values" class="md-nav__link">
- Error Code Values
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-error_code_values.html" class="md-nav__link">
+ Error Code Values
+ </a>
+ </li>
+
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
@@ -915,65 +980,75 @@
-
-
- <li class="md-nav__item md-nav__item--active md-nav__item--nested">
+
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-10" type="checkbox" id="nav-10" checked>
+
+
- <label class="md-nav__link" for="nav-10">
- Miscellaneous
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-10">
+ <li class="md-nav__item md-nav__item--active md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_10" type="checkbox" id="__nav_10" checked>
+
+ <label class="md-nav__link" for="__nav_10">
Miscellaneous
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
-
+ <nav class="md-nav" aria-label="Miscellaneous" data-md-level="1">
+ <label class="md-nav__title" for="__nav_10">
+ <span class="md-nav__icon md-icon"></span>
+ Miscellaneous
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
-
-
-
- <li class="md-nav__item">
- <a href="ft2-gx_validation.html" title="TrueTypeGX/AAT Validation" class="md-nav__link">
- TrueTypeGX/AAT Validation
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-gx_validation.html" class="md-nav__link">
+ TrueTypeGX/AAT Validation
+ </a>
+ </li>
+
-
-
-
-
+
+
-
-
- <li class="md-nav__item md-nav__item--active">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="toc" type="checkbox" id="__toc">
+
+
+ <li class="md-nav__item md-nav__item--active">
-
-
- <label class="md-nav__link md-nav__link--active" for="__toc">
+ <input class="md-nav__toggle md-toggle" data-md-toggle="toc" type="checkbox" id="__toc">
+
+
+
+
+
+ <label class="md-nav__link md-nav__link--active" for="__toc">
+ Incremental Loading
+ <span class="md-nav__icon md-icon"></span>
+ </label>
+
+ <a href="ft2-incremental.html" class="md-nav__link md-nav__link--active">
Incremental Loading
- </label>
-
- <a href="ft2-incremental.html" title="Incremental Loading" class="md-nav__link md-nav__link--active">
- Incremental Loading
- </a>
-
+ </a>
-<nav class="md-nav md-nav--secondary">
+
+<nav class="md-nav md-nav--secondary" aria-label="Table of contents">
+
- <label class="md-nav__title" for="__toc">Table of contents</label>
- <ul class="md-nav__list" data-md-scrollfix>
+ <label class="md-nav__title" for="__toc">
+ <span class="md-nav__icon md-icon"></span>
+ Table of contents
+ </label>
+ <ul class="md-nav__list" data-md-component="toc" data-md-scrollfix>
<li class="md-nav__item">
<a href="#synopsis" class="md-nav__link">
@@ -1045,44 +1120,42 @@
</li>
-
-
-
-
</ul>
</nav>
-
- </li>
+
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-truetype_engine.html" title="The TrueType Engine" class="md-nav__link">
- The TrueType Engine
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-truetype_engine.html" class="md-nav__link">
+ The TrueType Engine
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-ot_validation.html" title="OpenType Validation" class="md-nav__link">
- OpenType Validation
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-ot_validation.html" class="md-nav__link">
+ OpenType Validation
+ </a>
+ </li>
+
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
</ul>
@@ -1092,18 +1165,23 @@
</div>
- <div class="md-sidebar md-sidebar--secondary" data-md-component="toc">
+
+ <div class="md-sidebar md-sidebar--secondary" data-md-component="sidebar" data-md-type="toc" >
<div class="md-sidebar__scrollwrap">
<div class="md-sidebar__inner">
-<nav class="md-nav md-nav--secondary">
+<nav class="md-nav md-nav--secondary" aria-label="Table of contents">
+
- <label class="md-nav__title" for="__toc">Table of contents</label>
- <ul class="md-nav__list" data-md-scrollfix>
+ <label class="md-nav__title" for="__toc">
+ <span class="md-nav__icon md-icon"></span>
+ Table of contents
+ </label>
+ <ul class="md-nav__list" data-md-component="toc" data-md-scrollfix>
<li class="md-nav__item">
<a href="#synopsis" class="md-nav__link">
@@ -1175,10 +1253,6 @@
</li>
-
-
-
-
</ul>
</nav>
@@ -1187,7 +1261,7 @@
</div>
- <div class="md-content">
+ <div class="md-content" data-md-component="content">
<article class="md-content__inner md-typeset">
@@ -1225,7 +1299,6 @@
<p>A small structure used to contain the basic glyph metrics returned by the <code><a href="ft2-incremental.html#ft_incremental_getglyphmetricsfunc">FT_Incremental_GetGlyphMetricsFunc</a></code> method.</p>
<h4>fields</h4>
-
<table class="fields">
<tr><td class="val" id="bearing_x">bearing_x</td><td class="desc">
<p>Left bearing, in font units.</p>
@@ -1265,7 +1338,6 @@
<p>A function called by FreeType to access a given glyph's data bytes during <code><a href="ft2-base_interface.html#ft_load_glyph">FT_Load_Glyph</a></code> or <code><a href="ft2-base_interface.html#ft_load_char">FT_Load_Char</a></code> if incremental loading is enabled.</p>
<p>Note that the format of the glyph's data bytes depends on the font file format. For TrueType, it must correspond to the raw bytes within the &lsquo;glyf&rsquo; table. For PostScript formats, it must correspond to the <strong>unencrypted</strong> charstring bytes, without any <code>lenIV</code> header. It is undefined for any other format.</p>
<h4>input</h4>
-
<table class="fields">
<tr><td class="val" id="incremental">incremental</td><td class="desc">
<p>Handle to an opaque <code><a href="ft2-incremental.html#ft_incremental">FT_Incremental</a></code> handle provided by the client application.</p>
@@ -1276,7 +1348,6 @@
</table>
<h4>output</h4>
-
<table class="fields">
<tr><td class="val" id="adata">adata</td><td class="desc">
<p>A structure describing the returned glyph data bytes (which will be accessed as a read-only byte block).</p>
@@ -1301,7 +1372,6 @@
<p>A function used to release the glyph data bytes returned by a successful call to <code><a href="ft2-incremental.html#ft_incremental_getglyphdatafunc">FT_Incremental_GetGlyphDataFunc</a></code>.</p>
<h4>input</h4>
-
<table class="fields">
<tr><td class="val" id="incremental">incremental</td><td class="desc">
<p>A handle to an opaque <code><a href="ft2-incremental.html#ft_incremental">FT_Incremental</a></code> handle provided by the client application.</p>
@@ -1323,9 +1393,8 @@
<a href="ft2-incremental.html#ft_incremental_metricsrec">FT_Incremental_MetricsRec</a> *ametrics );
</code></pre></div>
-<p>A function used to retrieve the basic metrics of a given glyph index before accessing its data. This is necessary because, in certain formats like TrueType, the metrics are stored in a different place from the glyph images proper.</p>
+<p>A function used to retrieve the basic metrics of a given glyph index before accessing its data. This allows for handling font types such as PCL&nbsp;XL Format&nbsp;1, Class&nbsp;2 downloaded TrueType fonts, where the glyph metrics (<code>hmtx</code> and <code>vmtx</code> tables) are permitted to be omitted from the font, and the relevant metrics included in the header of the glyph outline data. Importantly, this is not intended to allow custom glyph metrics (for example, Postscript Metrics dictionaries), because that conflicts with the requirements of outline hinting. Such custom metrics must be handled separately, by the calling application.</p>
<h4>input</h4>
-
<table class="fields">
<tr><td class="val" id="incremental">incremental</td><td class="desc">
<p>A handle to an opaque <code><a href="ft2-incremental.html#ft_incremental">FT_Incremental</a></code> handle provided by the client application.</p>
@@ -1342,10 +1411,9 @@
</table>
<h4>output</h4>
-
<table class="fields">
<tr><td class="val" id="ametrics">ametrics</td><td class="desc">
-<p>The replacement glyph metrics in font units.</p>
+<p>The glyph metrics in font units.</p>
</td></tr>
</table>
@@ -1364,7 +1432,6 @@
<p>A table of functions for accessing fonts that load data incrementally. Used in <code><a href="ft2-incremental.html#ft_incremental_interfacerec">FT_Incremental_InterfaceRec</a></code>.</p>
<h4>fields</h4>
-
<table class="fields">
<tr><td class="val" id="get_glyph_data">get_glyph_data</td><td class="desc">
<p>The function to get glyph data. Must not be null.</p>
@@ -1373,7 +1440,7 @@
<p>The function to release glyph data. Must not be null.</p>
</td></tr>
<tr><td class="val" id="get_glyph_metrics">get_glyph_metrics</td><td class="desc">
-<p>The function to get glyph metrics. May be null if the font does not provide overriding glyph metrics.</p>
+<p>The function to get glyph metrics. May be null if the font does not require it.</p>
</td></tr>
</table>
@@ -1423,9 +1490,6 @@
<p>A pointer to an <code><a href="ft2-incremental.html#ft_incremental_interfacerec">FT_Incremental_InterfaceRec</a></code> structure.</p>
<hr>
-
-
-
@@ -1435,59 +1499,60 @@
</article>
</div>
</div>
+
</main>
<footer class="md-footer">
- <div class="md-footer-nav">
- <nav class="md-footer-nav__inner md-grid">
+ <nav class="md-footer__inner md-grid" aria-label="Footer">
+
- <a href="ft2-gx_validation.html" title="TrueTypeGX/AAT Validation" class="md-flex md-footer-nav__link md-footer-nav__link--prev" rel="prev">
- <div class="md-flex__cell md-flex__cell--shrink">
- <i class="md-icon md-icon--arrow-back md-footer-nav__button"></i>
- </div>
- <div class="md-flex__cell md-flex__cell--stretch md-footer-nav__title">
- <span class="md-flex__ellipsis">
- <span class="md-footer-nav__direction">
- Previous
- </span>
- TrueTypeGX/AAT Validation
+ <a href="ft2-gx_validation.html" class="md-footer__link md-footer__link--prev" aria-label="Previous: TrueTypeGX/AAT Validation" rel="prev">
+ <div class="md-footer__button md-icon">
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M20 11v2H8l5.5 5.5-1.42 1.42L4.16 12l7.92-7.92L13.5 5.5 8 11h12z"/></svg>
+ </div>
+ <div class="md-footer__title">
+ <div class="md-ellipsis">
+ <span class="md-footer__direction">
+ Previous
</span>
+ TrueTypeGX/AAT Validation
</div>
- </a>
-
+ </div>
+ </a>
+
+
- <a href="ft2-truetype_engine.html" title="The TrueType Engine" class="md-flex md-footer-nav__link md-footer-nav__link--next" rel="next">
- <div class="md-flex__cell md-flex__cell--stretch md-footer-nav__title">
- <span class="md-flex__ellipsis">
- <span class="md-footer-nav__direction">
- Next
- </span>
- The TrueType Engine
+ <a href="ft2-truetype_engine.html" class="md-footer__link md-footer__link--next" aria-label="Next: The TrueType Engine" rel="next">
+ <div class="md-footer__title">
+ <div class="md-ellipsis">
+ <span class="md-footer__direction">
+ Next
</span>
+ The TrueType Engine
</div>
- <div class="md-flex__cell md-flex__cell--shrink">
- <i class="md-icon md-icon--arrow-forward md-footer-nav__button"></i>
- </div>
- </a>
-
- </nav>
- </div>
+ </div>
+ <div class="md-footer__button md-icon">
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M4 11v2h12l-5.5 5.5 1.42 1.42L19.84 12l-7.92-7.92L10.5 5.5 16 11H4z"/></svg>
+ </div>
+ </a>
+
+ </nav>
<div class="md-footer-meta md-typeset">
<div class="md-footer-meta__inner md-grid">
<div class="md-footer-copyright">
<div class="md-footer-copyright__highlight">
- Copyright 2020 <a href = "https://www.freetype.org/license.html">The FreeType Project</a>.
+ Copyright 2021 <a href = "https://www.freetype.org/license.html">The FreeType Project</a>.
</div>
- powered by
- <a href="https://www.mkdocs.org" target="_blank" rel="noopener">MkDocs</a>
- and
+ Made with
<a href="https://squidfunk.github.io/mkdocs-material/" target="_blank" rel="noopener">
- Material for MkDocs</a>
+ Material for MkDocs
+ </a>
+
</div>
</div>
@@ -1495,10 +1560,13 @@
</footer>
</div>
+ <div class="md-dialog" data-md-component="dialog">
+ <div class="md-dialog__inner md-typeset"></div>
+ </div>
+ <script id="__config" type="application/json">{"base": ".", "features": [], "translations": {"clipboard.copy": "Copy to clipboard", "clipboard.copied": "Copied to clipboard", "search.config.lang": "en", "search.config.pipeline": "trimmer, stopWordFilter", "search.config.separator": "[\\s\\-]+", "search.placeholder": "Search", "search.result.placeholder": "Type to start searching", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.term.missing": "Missing", "select.version.title": "Select version"}, "search": "assets/javascripts/workers/search.477d984a.min.js", "version": null}</script>
- <script src="assets/javascripts/application.c33a9706.js"></script>
-
- <script>app.initialize({version:"1.1",url:{base:"."}})</script>
+
+ <script src="assets/javascripts/bundle.82b56eb2.min.js"></script>
<script src="javascripts/extra.js"></script>
diff --git a/freetype/docs/reference/ft2-index.html b/freetype/docs/reference/ft2-index.html
index 347eac1d..6994cd18 100644
--- a/freetype/docs/reference/ft2-index.html
+++ b/freetype/docs/reference/ft2-index.html
@@ -1,145 +1,136 @@
-
-
-
<!doctype html>
<html lang="en" class="no-js">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
- <meta http-equiv="x-ua-compatible" content="ie=edge">
- <meta name="description" content="API Reference Documentation for FreeType-2.10.4">
+ <meta name="description" content="API Reference Documentation for FreeType-2.11.1">
<meta name="author" content="FreeType Contributors">
- <meta name="lang:clipboard.copy" content="Copy to clipboard">
-
- <meta name="lang:clipboard.copied" content="Copied to clipboard">
-
- <meta name="lang:search.language" content="en">
-
- <meta name="lang:search.pipeline.stopwords" content="True">
-
- <meta name="lang:search.pipeline.trimmer" content="True">
-
- <meta name="lang:search.result.none" content="No matching documents">
-
- <meta name="lang:search.result.one" content="1 matching document">
-
- <meta name="lang:search.result.other" content="# matching documents">
-
- <meta name="lang:search.tokenizer" content="[\s\-]+">
-
- <link rel="shortcut icon" href="images/favico.ico">
- <meta name="generator" content="mkdocs-1.1, mkdocs-material-4.6.3">
+ <link rel="icon" href="images/favico.ico">
+ <meta name="generator" content="mkdocs-1.2.1, mkdocs-material-7.1.9">
- <title>Index - FreeType-2.10.4 API Reference</title>
+ <title>Index - FreeType-2.11.1 API Reference</title>
- <link rel="stylesheet" href="assets/stylesheets/application.adb8469c.css">
-
- <link rel="stylesheet" href="assets/stylesheets/application-palette.a8b3c06d.css">
-
+ <link rel="stylesheet" href="assets/stylesheets/main.ca7ac06f.min.css">
+ <link rel="stylesheet" href="assets/stylesheets/palette.f1a3b89f.min.css">
+
+
+
+ <meta name="theme-color" content="#4cae4f">
- <meta name="theme-color" content="#4caf50">
- <script src="assets/javascripts/modernizr.86422ebf.js"></script>
-
- <link href="https://fonts.gstatic.com" rel="preconnect" crossorigin>
+
+ <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Noto+Serif:300,400,400i,700%7CRoboto+Mono&display=fallback">
- <style>body,input{font-family:"Noto Serif","Helvetica Neue",Helvetica,Arial,sans-serif}code,kbd,pre{font-family:"Roboto Mono","Courier New",Courier,monospace}</style>
+ <style>:root{--md-text-font-family:"Noto Serif";--md-code-font-family:"Roboto Mono"}</style>
- <link rel="stylesheet" href="assets/fonts/material-icons.css">
<link rel="stylesheet" href="stylesheets/extra.css">
+
+
</head>
+
+
+
+
- <body dir="ltr" data-md-color-primary="green" data-md-color-accent="green">
+ <body dir="ltr" data-md-color-scheme="" data-md-color-primary="green" data-md-color-accent="green">
- <svg class="md-svg">
- <defs>
-
-
- </defs>
- </svg>
- <input class="md-toggle" data-md-toggle="drawer" type="checkbox" id="__drawer" autocomplete="off">
- <input class="md-toggle" data-md-toggle="search" type="checkbox" id="__search" autocomplete="off">
- <label class="md-overlay" data-md-component="overlay" for="__drawer"></label>
- <a href="#freetype-2104-api-reference" tabindex="0" class="md-skip">
- Skip to content
- </a>
+ <script>function __prefix(e){return new URL(".",location).pathname+"."+e}function __get(e,t=localStorage){return JSON.parse(t.getItem(__prefix(e)))}</script>
+ <input class="md-toggle" data-md-toggle="drawer" type="checkbox" id="__drawer" autocomplete="off">
+ <input class="md-toggle" data-md-toggle="search" type="checkbox" id="__search" autocomplete="off">
+ <label class="md-overlay" for="__drawer"></label>
+ <div data-md-component="skip">
+
+
+ <a href="#freetype-2111-api-reference" class="md-skip">
+ Skip to content
+ </a>
+
+ </div>
+ <div data-md-component="announce">
+
+ </div>
<header class="md-header" data-md-component="header">
- <nav class="md-header-nav md-grid">
- <div class="md-flex">
- <div class="md-flex__cell md-flex__cell--shrink">
- <a href="." title="FreeType-2.10.4 API Reference" aria-label="FreeType-2.10.4 API Reference" class="md-header-nav__button md-logo">
-
- <img alt="logo" src="images/favico.ico" width="24" height="24">
-
- </a>
- </div>
- <div class="md-flex__cell md-flex__cell--shrink">
- <label class="md-icon md-icon--menu md-header-nav__button" for="__drawer"></label>
- </div>
- <div class="md-flex__cell md-flex__cell--stretch">
- <div class="md-flex__ellipsis md-header-nav__title" data-md-component="title">
-
- <span class="md-header-nav__topic">
- FreeType-2.10.4 API Reference
- </span>
- <span class="md-header-nav__topic">
-
- Index
-
- </span>
-
+ <nav class="md-header__inner md-grid" aria-label="Header">
+ <a href="index.html" title="FreeType-2.11.1 API Reference" class="md-header__button md-logo" aria-label="FreeType-2.11.1 API Reference" data-md-component="logo">
+
+ <img src="images/favico.ico" alt="logo">
+
+ </a>
+ <label class="md-header__button md-icon" for="__drawer">
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M3 6h18v2H3V6m0 5h18v2H3v-2m0 5h18v2H3v-2z"/></svg>
+ </label>
+ <div class="md-header__title" data-md-component="header-title">
+ <div class="md-header__ellipsis">
+ <div class="md-header__topic">
+ <span class="md-ellipsis">
+ FreeType-2.11.1 API Reference
+ </span>
+ </div>
+ <div class="md-header__topic" data-md-component="header-topic">
+ <span class="md-ellipsis">
+
+ Index
+
+ </span>
</div>
</div>
- <div class="md-flex__cell md-flex__cell--shrink">
-
- <label class="md-icon md-icon--search md-header-nav__button" for="__search"></label>
-
+ </div>
+
+
+
+ <label class="md-header__button md-icon" for="__search">
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M9.5 3A6.5 6.5 0 0 1 16 9.5c0 1.61-.59 3.09-1.56 4.23l.27.27h.79l5 5-1.5 1.5-5-5v-.79l-.27-.27A6.516 6.516 0 0 1 9.5 16 6.5 6.5 0 0 1 3 9.5 6.5 6.5 0 0 1 9.5 3m0 2C7 5 5 7 5 9.5S7 14 9.5 14 14 12 14 9.5 12 5 9.5 5z"/></svg>
+ </label>
+
<div class="md-search" data-md-component="search" role="dialog">
<label class="md-search__overlay" for="__search"></label>
<div class="md-search__inner" role="search">
<form class="md-search__form" name="search">
- <input type="text" class="md-search__input" aria-label="search" name="query" placeholder="Search" autocapitalize="off" autocorrect="off" autocomplete="off" spellcheck="false" data-md-component="query" data-md-state="active">
- <label class="md-icon md-search__icon" for="__search"></label>
- <button type="reset" class="md-icon md-search__icon" data-md-component="reset" tabindex="-1">
- &#xE5CD;
+ <input type="text" class="md-search__input" name="query" aria-label="Search" placeholder="Search" autocapitalize="off" autocorrect="off" autocomplete="off" spellcheck="false" data-md-component="search-query" data-md-state="active" required>
+ <label class="md-search__icon md-icon" for="__search">
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M9.5 3A6.5 6.5 0 0 1 16 9.5c0 1.61-.59 3.09-1.56 4.23l.27.27h.79l5 5-1.5 1.5-5-5v-.79l-.27-.27A6.516 6.516 0 0 1 9.5 16 6.5 6.5 0 0 1 3 9.5 6.5 6.5 0 0 1 9.5 3m0 2C7 5 5 7 5 9.5S7 14 9.5 14 14 12 14 9.5 12 5 9.5 5z"/></svg>
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M20 11v2H8l5.5 5.5-1.42 1.42L4.16 12l7.92-7.92L13.5 5.5 8 11h12z"/></svg>
+ </label>
+ <button type="reset" class="md-search__icon md-icon" aria-label="Clear" tabindex="-1">
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z"/></svg>
</button>
</form>
<div class="md-search__output">
<div class="md-search__scrollwrap" data-md-scrollfix>
- <div class="md-search-result" data-md-component="result">
+ <div class="md-search-result" data-md-component="search-result">
<div class="md-search-result__meta">
- Type to start searching
+ Initializing search
</div>
<ol class="md-search-result__list"></ol>
</div>
@@ -147,33 +138,35 @@
</div>
</div>
</div>
-
- </div>
-
- </div>
+
+
</nav>
</header>
- <div class="md-container">
+ <div class="md-container" data-md-component="container">
-
+
- <main class="md-main" role="main">
- <div class="md-main__inner md-grid" data-md-component="container">
+ <main class="md-main" data-md-component="main">
+ <div class="md-main__inner md-grid">
- <div class="md-sidebar md-sidebar--primary" data-md-component="navigation">
+
+ <div class="md-sidebar md-sidebar--primary" data-md-component="sidebar" data-md-type="navigation" >
<div class="md-sidebar__scrollwrap">
<div class="md-sidebar__inner">
- <nav class="md-nav md-nav--primary" data-md-level="0">
- <label class="md-nav__title md-nav__title--site" for="__drawer">
- <a href="." title="FreeType-2.10.4 API Reference" class="md-nav__button md-logo">
-
- <img alt="logo" src="images/favico.ico" width="48" height="48">
+
+
+
+<nav class="md-nav md-nav--primary" aria-label="Navigation" data-md-level="0">
+ <label class="md-nav__title" for="__drawer">
+ <a href="index.html" title="FreeType-2.11.1 API Reference" class="md-nav__button md-logo" aria-label="FreeType-2.11.1 API Reference" data-md-component="logo">
+ <img src="images/favico.ico" alt="logo">
+
</a>
- FreeType-2.10.4 API Reference
+ FreeType-2.11.1 API Reference
</label>
<ul class="md-nav__list" data-md-scrollfix>
@@ -182,12 +175,15 @@
-
- <li class="md-nav__item">
- <a href="index.html" title="TOC" class="md-nav__link">
- TOC
- </a>
- </li>
+
+
+
+ <li class="md-nav__item">
+ <a href="index.html" class="md-nav__link">
+ TOC
+ </a>
+ </li>
+
@@ -195,32 +191,40 @@
-
-
- <li class="md-nav__item md-nav__item--active">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="toc" type="checkbox" id="__toc">
+
+
+
+ <li class="md-nav__item md-nav__item--active">
-
-
- <label class="md-nav__link md-nav__link--active" for="__toc">
+ <input class="md-nav__toggle md-toggle" data-md-toggle="toc" type="checkbox" id="__toc">
+
+
+
+
+
+ <label class="md-nav__link md-nav__link--active" for="__toc">
+ Index
+ <span class="md-nav__icon md-icon"></span>
+ </label>
+
+ <a href="ft2-index.html" class="md-nav__link md-nav__link--active">
Index
- </label>
-
- <a href="ft2-index.html" title="Index" class="md-nav__link md-nav__link--active">
- Index
- </a>
-
+ </a>
-<nav class="md-nav md-nav--secondary">
+
+<nav class="md-nav md-nav--secondary" aria-label="Table of contents">
+
- <label class="md-nav__title" for="__toc">Table of contents</label>
- <ul class="md-nav__list" data-md-scrollfix>
+ <label class="md-nav__title" for="__toc">
+ <span class="md-nav__icon md-icon"></span>
+ Table of contents
+ </label>
+ <ul class="md-nav__list" data-md-component="toc" data-md-scrollfix>
<li class="md-nav__item">
<a href="#b" class="md-nav__link">
@@ -306,795 +310,864 @@
</li>
-
-
-
-
</ul>
</nav>
-
- </li>
+
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-3" type="checkbox" id="nav-3">
+
+
+
- <label class="md-nav__link" for="nav-3">
- General Remarks
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-3">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_3" type="checkbox" id="__nav_3" >
+
+ <label class="md-nav__link" for="__nav_3">
General Remarks
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
-
-
+ <nav class="md-nav" aria-label="General Remarks" data-md-level="1">
+ <label class="md-nav__title" for="__nav_3">
+ <span class="md-nav__icon md-icon"></span>
+ General Remarks
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-preamble.html" class="md-nav__link">
+ Preamble
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-header_inclusion.html" title="FreeType's header inclusion scheme" class="md-nav__link">
- FreeType's header inclusion scheme
- </a>
- </li>
-
-
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-header_inclusion.html" class="md-nav__link">
+ FreeType's header inclusion scheme
+ </a>
+ </li>
+
- <li class="md-nav__item">
- <a href="ft2-user_allocation.html" title="User allocation" class="md-nav__link">
- User allocation
- </a>
- </li>
+
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-user_allocation.html" class="md-nav__link">
+ User allocation
+ </a>
+ </li>
+
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-4" type="checkbox" id="nav-4">
+
+
+
- <label class="md-nav__link" for="nav-4">
- Core API
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-4">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_4" type="checkbox" id="__nav_4" >
+
+ <label class="md-nav__link" for="__nav_4">
Core API
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
+ <nav class="md-nav" aria-label="Core API" data-md-level="1">
+ <label class="md-nav__title" for="__nav_4">
+ <span class="md-nav__icon md-icon"></span>
+ Core API
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-version.html" title="FreeType Version" class="md-nav__link">
- FreeType Version
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-version.html" class="md-nav__link">
+ FreeType Version
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-basic_types.html" class="md-nav__link">
+ Basic Data Types
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-basic_types.html" title="Basic Data Types" class="md-nav__link">
- Basic Data Types
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-base_interface.html" title="Base Interface" class="md-nav__link">
- Base Interface
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-base_interface.html" class="md-nav__link">
+ Base Interface
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-glyph_variants.html" class="md-nav__link">
+ Unicode Variation Sequences
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-glyph_variants.html" title="Unicode Variation Sequences" class="md-nav__link">
- Unicode Variation Sequences
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-color_management.html" title="Glyph Color Management" class="md-nav__link">
- Glyph Color Management
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-color_management.html" class="md-nav__link">
+ Glyph Color Management
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-layer_management.html" title="Glyph Layer Management" class="md-nav__link">
- Glyph Layer Management
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-layer_management.html" class="md-nav__link">
+ Glyph Layer Management
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-glyph_management.html" title="Glyph Management" class="md-nav__link">
- Glyph Management
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-glyph_management.html" class="md-nav__link">
+ Glyph Management
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-mac_specific.html" class="md-nav__link">
+ Mac Specific Interface
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-mac_specific.html" title="Mac Specific Interface" class="md-nav__link">
- Mac Specific Interface
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-sizes_management.html" title="Size Management" class="md-nav__link">
- Size Management
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-sizes_management.html" class="md-nav__link">
+ Size Management
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-header_file_macros.html" title="Header File Macros" class="md-nav__link">
- Header File Macros
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-header_file_macros.html" class="md-nav__link">
+ Header File Macros
+ </a>
+ </li>
+
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-5" type="checkbox" id="nav-5">
+
+
+
- <label class="md-nav__link" for="nav-5">
- Format-Specific API
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-5">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_5" type="checkbox" id="__nav_5" >
+
+ <label class="md-nav__link" for="__nav_5">
Format-Specific API
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
-
+ <nav class="md-nav" aria-label="Format-Specific API" data-md-level="1">
+ <label class="md-nav__title" for="__nav_5">
+ <span class="md-nav__icon md-icon"></span>
+ Format-Specific API
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
-
-
-
- <li class="md-nav__item">
- <a href="ft2-multiple_masters.html" title="Multiple Masters" class="md-nav__link">
- Multiple Masters
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-multiple_masters.html" class="md-nav__link">
+ Multiple Masters
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-truetype_tables.html" title="TrueType Tables" class="md-nav__link">
- TrueType Tables
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-truetype_tables.html" class="md-nav__link">
+ TrueType Tables
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-type1_tables.html" title="Type 1 Tables" class="md-nav__link">
- Type 1 Tables
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-type1_tables.html" class="md-nav__link">
+ Type 1 Tables
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-sfnt_names.html" title="SFNT Names" class="md-nav__link">
- SFNT Names
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-sfnt_names.html" class="md-nav__link">
+ SFNT Names
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-bdf_fonts.html" title="BDF and PCF Files" class="md-nav__link">
- BDF and PCF Files
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-bdf_fonts.html" class="md-nav__link">
+ BDF and PCF Files
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-cid_fonts.html" class="md-nav__link">
+ CID Fonts
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-cid_fonts.html" title="CID Fonts" class="md-nav__link">
- CID Fonts
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-pfr_fonts.html" title="PFR Fonts" class="md-nav__link">
- PFR Fonts
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-pfr_fonts.html" class="md-nav__link">
+ PFR Fonts
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-winfnt_fonts.html" class="md-nav__link">
+ Window FNT Files
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-winfnt_fonts.html" title="Window FNT Files" class="md-nav__link">
- Window FNT Files
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-font_formats.html" title="Font Formats" class="md-nav__link">
- Font Formats
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-font_formats.html" class="md-nav__link">
+ Font Formats
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-gasp_table.html" title="Gasp Table" class="md-nav__link">
- Gasp Table
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-gasp_table.html" class="md-nav__link">
+ Gasp Table
+ </a>
+ </li>
+
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-6" type="checkbox" id="nav-6">
+
+
+
- <label class="md-nav__link" for="nav-6">
- Controlling FreeType Modules
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-6">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_6" type="checkbox" id="__nav_6" >
+
+ <label class="md-nav__link" for="__nav_6">
Controlling FreeType Modules
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
-
+ <nav class="md-nav" aria-label="Controlling FreeType Modules" data-md-level="1">
+ <label class="md-nav__title" for="__nav_6">
+ <span class="md-nav__icon md-icon"></span>
+ Controlling FreeType Modules
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
-
-
-
- <li class="md-nav__item">
- <a href="ft2-auto_hinter.html" title="The auto-hinter" class="md-nav__link">
- The auto-hinter
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-auto_hinter.html" class="md-nav__link">
+ The auto-hinter
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-cff_driver.html" title="The CFF driver" class="md-nav__link">
- The CFF driver
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-cff_driver.html" class="md-nav__link">
+ The CFF driver
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-t1_cid_driver.html" class="md-nav__link">
+ The Type 1 and CID drivers
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-t1_cid_driver.html" title="The Type 1 and CID drivers" class="md-nav__link">
- The Type 1 and CID drivers
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-tt_driver.html" title="The TrueType driver" class="md-nav__link">
- The TrueType driver
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-tt_driver.html" class="md-nav__link">
+ The TrueType driver
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-pcf_driver.html" title="The PCF driver" class="md-nav__link">
- The PCF driver
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-pcf_driver.html" class="md-nav__link">
+ The PCF driver
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-properties.html" title="Driver properties" class="md-nav__link">
- Driver properties
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-properties.html" class="md-nav__link">
+ Driver properties
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-parameter_tags.html" title="Parameter Tags" class="md-nav__link">
- Parameter Tags
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-parameter_tags.html" class="md-nav__link">
+ Parameter Tags
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-lcd_rendering.html" title="Subpixel Rendering" class="md-nav__link">
- Subpixel Rendering
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-lcd_rendering.html" class="md-nav__link">
+ Subpixel Rendering
+ </a>
+ </li>
+
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-7" type="checkbox" id="nav-7">
+
+
+
- <label class="md-nav__link" for="nav-7">
- Cache Sub-System
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-7">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_7" type="checkbox" id="__nav_7" >
+
+ <label class="md-nav__link" for="__nav_7">
Cache Sub-System
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
-
+ <nav class="md-nav" aria-label="Cache Sub-System" data-md-level="1">
+ <label class="md-nav__title" for="__nav_7">
+ <span class="md-nav__icon md-icon"></span>
+ Cache Sub-System
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
-
-
-
- <li class="md-nav__item">
- <a href="ft2-cache_subsystem.html" title="Cache Sub-System" class="md-nav__link">
- Cache Sub-System
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-cache_subsystem.html" class="md-nav__link">
+ Cache Sub-System
+ </a>
+ </li>
+
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-8" type="checkbox" id="nav-8">
+
+
+
- <label class="md-nav__link" for="nav-8">
- Support API
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-8">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_8" type="checkbox" id="__nav_8" >
+
+ <label class="md-nav__link" for="__nav_8">
Support API
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
-
-
+ <nav class="md-nav" aria-label="Support API" data-md-level="1">
+ <label class="md-nav__title" for="__nav_8">
+ <span class="md-nav__icon md-icon"></span>
+ Support API
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-computations.html" class="md-nav__link">
+ Computations
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-computations.html" title="Computations" class="md-nav__link">
- Computations
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-list_processing.html" title="List Processing" class="md-nav__link">
- List Processing
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-list_processing.html" class="md-nav__link">
+ List Processing
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-outline_processing.html" title="Outline Processing" class="md-nav__link">
- Outline Processing
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-outline_processing.html" class="md-nav__link">
+ Outline Processing
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-quick_advance.html" title="Quick retrieval of advance values" class="md-nav__link">
- Quick retrieval of advance values
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-quick_advance.html" class="md-nav__link">
+ Quick retrieval of advance values
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-bitmap_handling.html" title="Bitmap Handling" class="md-nav__link">
- Bitmap Handling
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-bitmap_handling.html" class="md-nav__link">
+ Bitmap Handling
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-raster.html" title="Scanline Converter" class="md-nav__link">
- Scanline Converter
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-raster.html" class="md-nav__link">
+ Scanline Converter
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-glyph_stroker.html" title="Glyph Stroker" class="md-nav__link">
- Glyph Stroker
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-glyph_stroker.html" class="md-nav__link">
+ Glyph Stroker
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-system_interface.html" class="md-nav__link">
+ System Interface
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-system_interface.html" title="System Interface" class="md-nav__link">
- System Interface
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-module_management.html" title="Module Management" class="md-nav__link">
- Module Management
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-module_management.html" class="md-nav__link">
+ Module Management
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-gzip.html" class="md-nav__link">
+ GZIP Streams
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-gzip.html" title="GZIP Streams" class="md-nav__link">
- GZIP Streams
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-lzw.html" title="LZW Streams" class="md-nav__link">
- LZW Streams
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-lzw.html" class="md-nav__link">
+ LZW Streams
+ </a>
+ </li>
+
-
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-bzip2.html" class="md-nav__link">
+ BZIP2 Streams
+ </a>
+ </li>
+
- <li class="md-nav__item">
- <a href="ft2-bzip2.html" title="BZIP2 Streams" class="md-nav__link">
- BZIP2 Streams
- </a>
- </li>
+
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-debugging_apis.html" class="md-nav__link">
+ External Debugging APIs
+ </a>
+ </li>
+
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-9" type="checkbox" id="nav-9">
+
+
+
- <label class="md-nav__link" for="nav-9">
- Error Codes
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-9">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_9" type="checkbox" id="__nav_9" >
+
+ <label class="md-nav__link" for="__nav_9">
Error Codes
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
-
-
+ <nav class="md-nav" aria-label="Error Codes" data-md-level="1">
+ <label class="md-nav__title" for="__nav_9">
+ <span class="md-nav__icon md-icon"></span>
+ Error Codes
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-error_enumerations.html" class="md-nav__link">
+ Error Enumerations
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-error_enumerations.html" title="Error Enumerations" class="md-nav__link">
- Error Enumerations
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-error_code_values.html" title="Error Code Values" class="md-nav__link">
- Error Code Values
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-error_code_values.html" class="md-nav__link">
+ Error Code Values
+ </a>
+ </li>
+
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-10" type="checkbox" id="nav-10">
+
+
+
- <label class="md-nav__link" for="nav-10">
- Miscellaneous
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-10">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_10" type="checkbox" id="__nav_10" >
+
+ <label class="md-nav__link" for="__nav_10">
Miscellaneous
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
+ <nav class="md-nav" aria-label="Miscellaneous" data-md-level="1">
+ <label class="md-nav__title" for="__nav_10">
+ <span class="md-nav__icon md-icon"></span>
+ Miscellaneous
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-gx_validation.html" title="TrueTypeGX/AAT Validation" class="md-nav__link">
- TrueTypeGX/AAT Validation
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-gx_validation.html" class="md-nav__link">
+ TrueTypeGX/AAT Validation
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-incremental.html" class="md-nav__link">
+ Incremental Loading
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-incremental.html" title="Incremental Loading" class="md-nav__link">
- Incremental Loading
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-truetype_engine.html" title="The TrueType Engine" class="md-nav__link">
- The TrueType Engine
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-truetype_engine.html" class="md-nav__link">
+ The TrueType Engine
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-ot_validation.html" title="OpenType Validation" class="md-nav__link">
- OpenType Validation
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-ot_validation.html" class="md-nav__link">
+ OpenType Validation
+ </a>
+ </li>
+
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
</ul>
@@ -1104,18 +1177,23 @@
</div>
- <div class="md-sidebar md-sidebar--secondary" data-md-component="toc">
+
+ <div class="md-sidebar md-sidebar--secondary" data-md-component="sidebar" data-md-type="toc" >
<div class="md-sidebar__scrollwrap">
<div class="md-sidebar__inner">
-<nav class="md-nav md-nav--secondary">
+<nav class="md-nav md-nav--secondary" aria-label="Table of contents">
+
- <label class="md-nav__title" for="__toc">Table of contents</label>
- <ul class="md-nav__list" data-md-scrollfix>
+ <label class="md-nav__title" for="__toc">
+ <span class="md-nav__icon md-icon"></span>
+ Table of contents
+ </label>
+ <ul class="md-nav__list" data-md-component="toc" data-md-scrollfix>
<li class="md-nav__item">
<a href="#b" class="md-nav__link">
@@ -1201,10 +1279,6 @@
</li>
-
-
-
-
</ul>
</nav>
@@ -1213,14 +1287,14 @@
</div>
- <div class="md-content">
+ <div class="md-content" data-md-component="content">
<article class="md-content__inner md-typeset">
<p><a href="https://www.freetype.org">FreeType</a> &raquo; <a href="../">Docs</a> &raquo; Global Index</p>
<hr />
-<h1 id="freetype-2104-api-reference">FreeType-2.10.4 API Reference<a class="headerlink" href="#freetype-2104-api-reference" title="Permanent link">&para;</a></h1>
+<h1 id="freetype-2111-api-reference">FreeType-2.11.1 API Reference<a class="headerlink" href="#freetype-2111-api-reference" title="Permanent link">&para;</a></h1>
<h3 id="b">B<a class="headerlink" href="#b" title="Permanent link">&para;</a></h3>
<p><a href="ft2-bdf_fonts.html#bdf_property">BDF_Property</a><br />
<a href="ft2-bdf_fonts.html#bdf_propertytype">BDF_PROPERTY_TYPE_ATOM</a><br />
@@ -1250,6 +1324,7 @@
<a href="ft2-module_management.html#ft_add_module">FT_Add_Module</a><br />
<a href="ft2-quick_advance.html#ft_advance_flag_fast_only">FT_ADVANCE_FLAG_FAST_ONLY</a><br />
<a href="ft2-header_file_macros.html#ft_advances_h">FT_ADVANCES_H</a><br />
+<a href="ft2-layer_management.html#ft_affine23">FT_Affine23</a><br />
<a href="ft2-system_interface.html#ft_alloc_func">FT_Alloc_Func</a><br />
<a href="ft2-computations.html#ft_angle">FT_Angle</a><br />
<a href="ft2-computations.html#ft_angle_2pi">FT_ANGLE_2PI</a><br />
@@ -1293,13 +1368,24 @@
<a href="ft2-header_file_macros.html#ft_cid_h">FT_CID_H</a><br />
<a href="ft2-gx_validation.html#ft_classickern_free">FT_ClassicKern_Free</a><br />
<a href="ft2-gx_validation.html#ft_classickern_validate">FT_ClassicKern_Validate</a><br />
+<a href="ft2-layer_management.html#ft_clipbox">FT_ClipBox</a><br />
<a href="ft2-color_management.html#ft_color">FT_Color</a><br />
<a href="ft2-header_file_macros.html#ft_color_h">FT_COLOR_H</a><br />
+<a href="ft2-layer_management.html#ft_color_root_transform">FT_COLOR_INCLUDE_ROOT_TRANSFORM</a><br />
+<a href="ft2-layer_management.html#ft_color_root_transform">FT_COLOR_NO_ROOT_TRANSFORM</a><br />
+<a href="ft2-layer_management.html#ft_color_root_transform">FT_Color_Root_Transform</a><br />
+<a href="ft2-layer_management.html#ft_colorindex">FT_ColorIndex</a><br />
+<a href="ft2-layer_management.html#ft_colorline">FT_ColorLine</a><br />
+<a href="ft2-layer_management.html#ft_colorstop">FT_ColorStop</a><br />
+<a href="ft2-layer_management.html#ft_colorstopiterator">FT_ColorStopIterator</a><br />
+<a href="ft2-layer_management.html#ft_colr_paint">FT_COLR_Paint</a><br />
+<a href="ft2-layer_management.html#ft_composite_mode">FT_Composite_Mode</a><br />
<a href="ft2-header_file_macros.html#ft_config_config_h">FT_CONFIG_CONFIG_H</a><br />
<a href="ft2-header_file_macros.html#ft_config_modules_h">FT_CONFIG_MODULES_H</a><br />
<a href="ft2-header_file_macros.html#ft_config_options_h">FT_CONFIG_OPTIONS_H</a><br />
<a href="ft2-header_file_macros.html#ft_config_standard_library_h">FT_CONFIG_STANDARD_LIBRARY_H</a><br />
<a href="ft2-computations.html#ft_cos">FT_Cos</a><br />
+<a href="ft2-debugging_apis.html#ft_custom_log_handler">FT_Custom_Log_Handler</a><br />
<a href="ft2-basic_types.html#ft_data">FT_Data</a><br />
<a href="ft2-module_management.html#ft_debug_hook_xxx">FT_DEBUG_HOOK_TRUETYPE</a><br />
<a href="ft2-module_management.html#ft_debug_hook_xxx">FT_DEBUG_HOOK_XXX</a><br />
@@ -1342,6 +1428,7 @@
<a href="ft2-basic_types.html#ft_f2dot14">FT_F2Dot14</a><br />
<a href="ft2-base_interface.html#ft_face">FT_Face</a><br />
<a href="ft2-version.html#ft_face_checktruetypepatents">FT_Face_CheckTrueTypePatents</a><br />
+<a href="ft2-module_management.html#ft_face_driver_name">FT_FACE_DRIVER_NAME</a><br />
<a href="ft2-base_interface.html#ft_face_flag_xxx">FT_FACE_FLAG_CID_KEYED</a><br />
<a href="ft2-base_interface.html#ft_face_flag_xxx">FT_FACE_FLAG_COLOR</a><br />
<a href="ft2-base_interface.html#ft_face_flag_xxx">FT_FACE_FLAG_EXTERNAL_STREAM</a><br />
@@ -1401,7 +1488,10 @@
<a href="ft2-cid_fonts.html#ft_get_cid_registry_ordering_supplement">FT_Get_CID_Registry_Ordering_Supplement</a><br />
<a href="ft2-truetype_tables.html#ft_get_cmap_format">FT_Get_CMap_Format</a><br />
<a href="ft2-truetype_tables.html#ft_get_cmap_language_id">FT_Get_CMap_Language_ID</a><br />
+<a href="ft2-layer_management.html#ft_get_color_glyph_clipbox">FT_Get_Color_Glyph_ClipBox</a><br />
<a href="ft2-layer_management.html#ft_get_color_glyph_layer">FT_Get_Color_Glyph_Layer</a><br />
+<a href="ft2-layer_management.html#ft_get_color_glyph_paint">FT_Get_Color_Glyph_Paint</a><br />
+<a href="ft2-layer_management.html#ft_get_colorline_stops">FT_Get_Colorline_Stops</a><br />
<a href="ft2-base_interface.html#ft_get_first_char">FT_Get_First_Char</a><br />
<a href="ft2-font_formats.html#ft_get_font_format">FT_Get_Font_Format</a><br />
<a href="ft2-base_interface.html#ft_get_fstype_flags">FT_Get_FSType_Flags</a><br />
@@ -1416,6 +1506,8 @@
<a href="ft2-multiple_masters.html#ft_get_multi_master">FT_Get_Multi_Master</a><br />
<a href="ft2-base_interface.html#ft_get_name_index">FT_Get_Name_Index</a><br />
<a href="ft2-base_interface.html#ft_get_next_char">FT_Get_Next_Char</a><br />
+<a href="ft2-layer_management.html#ft_get_paint">FT_Get_Paint</a><br />
+<a href="ft2-layer_management.html#ft_get_paint_layers">FT_Get_Paint_Layers</a><br />
<a href="ft2-pfr_fonts.html#ft_get_pfr_advance">FT_Get_PFR_Advance</a><br />
<a href="ft2-pfr_fonts.html#ft_get_pfr_kerning">FT_Get_PFR_Kerning</a><br />
<a href="ft2-pfr_fonts.html#ft_get_pfr_metrics">FT_Get_PFR_Metrics</a><br />
@@ -1430,6 +1522,7 @@
<a href="ft2-truetype_tables.html#ft_get_sfnt_table">FT_Get_Sfnt_Table</a><br />
<a href="ft2-base_interface.html#ft_get_subglyph_info">FT_Get_SubGlyph_Info</a><br />
<a href="ft2-base_interface.html#ft_get_track_kerning">FT_Get_Track_Kerning</a><br />
+<a href="ft2-base_interface.html#ft_get_transform">FT_Get_Transform</a><br />
<a href="ft2-truetype_engine.html#ft_get_truetype_engine_type">FT_Get_TrueType_Engine_Type</a><br />
<a href="ft2-multiple_masters.html#ft_get_var_axis_flags">FT_Get_Var_Axis_Flags</a><br />
<a href="ft2-multiple_masters.html#ft_get_var_blend_coordinates">FT_Get_Var_Blend_Coordinates</a><br />
@@ -1594,6 +1687,7 @@
<a href="ft2-base_interface.html#ft_new_memory_face">FT_New_Memory_Face</a><br />
<a href="ft2-sizes_management.html#ft_new_size">FT_New_Size</a><br />
<a href="ft2-basic_types.html#ft_offset">FT_Offset</a><br />
+<a href="ft2-layer_management.html#ft_opaquepaint">FT_OpaquePaint</a><br />
<a href="ft2-base_interface.html#ft_open_args">FT_Open_Args</a><br />
<a href="ft2-base_interface.html#ft_open_xxx">FT_OPEN_DRIVER</a><br />
<a href="ft2-base_interface.html#ft_open_face">FT_Open_Face</a><br />
@@ -1648,6 +1742,21 @@
<a href="ft2-outline_processing.html#ft_outline_xxx">FT_OUTLINE_XXX</a><br />
<a href="ft2-glyph_management.html#ft_outlineglyph">FT_OutlineGlyph</a><br />
<a href="ft2-glyph_management.html#ft_outlineglyphrec">FT_OutlineGlyphRec</a><br />
+<a href="ft2-layer_management.html#ft_paintcolrglyph">FT_PaintColrGlyph</a><br />
+<a href="ft2-layer_management.html#ft_paintcolrlayers">FT_PaintColrLayers</a><br />
+<a href="ft2-layer_management.html#ft_paintcomposite">FT_PaintComposite</a><br />
+<a href="ft2-layer_management.html#ft_paintextend">FT_PaintExtend</a><br />
+<a href="ft2-layer_management.html#ft_paintformat">FT_PaintFormat</a><br />
+<a href="ft2-layer_management.html#ft_paintglyph">FT_PaintGlyph</a><br />
+<a href="ft2-layer_management.html#ft_paintlineargradient">FT_PaintLinearGradient</a><br />
+<a href="ft2-layer_management.html#ft_paintradialgradient">FT_PaintRadialGradient</a><br />
+<a href="ft2-layer_management.html#ft_paintrotate">FT_PaintRotate</a><br />
+<a href="ft2-layer_management.html#ft_paintscale">FT_PaintScale</a><br />
+<a href="ft2-layer_management.html#ft_paintskew">FT_PaintSkew</a><br />
+<a href="ft2-layer_management.html#ft_paintsolid">FT_PaintSolid</a><br />
+<a href="ft2-layer_management.html#ft_paintsweepgradient">FT_PaintSweepGradient</a><br />
+<a href="ft2-layer_management.html#ft_painttransform">FT_PaintTransform</a><br />
+<a href="ft2-layer_management.html#ft_painttranslate">FT_PaintTranslate</a><br />
<a href="ft2-color_management.html#ft_palette_data">FT_Palette_Data</a><br />
<a href="ft2-color_management.html#ft_palette_data_get">FT_Palette_Data_Get</a><br />
<a href="ft2-color_management.html#ft_palette_xxx">FT_PALETTE_FOR_DARK_BACKGROUND</a><br />
@@ -1689,6 +1798,7 @@
<a href="ft2-raster.html#ft_raster_flag_xxx">FT_RASTER_FLAG_CLIP</a><br />
<a href="ft2-raster.html#ft_raster_flag_xxx">FT_RASTER_FLAG_DEFAULT</a><br />
<a href="ft2-raster.html#ft_raster_flag_xxx">FT_RASTER_FLAG_DIRECT</a><br />
+<a href="ft2-raster.html#ft_raster_flag_xxx">FT_RASTER_FLAG_SDF</a><br />
<a href="ft2-raster.html#ft_raster_flag_xxx">FT_RASTER_FLAG_XXX</a><br />
<a href="ft2-raster.html#ft_raster_funcs">FT_Raster_Funcs</a><br />
<a href="ft2-raster.html#ft_raster_newfunc">FT_Raster_NewFunc</a><br />
@@ -1708,6 +1818,7 @@
<a href="ft2-base_interface.html#ft_render_mode">FT_RENDER_MODE_LIGHT</a><br />
<a href="ft2-base_interface.html#ft_render_mode">FT_RENDER_MODE_MONO</a><br />
<a href="ft2-base_interface.html#ft_render_mode">FT_RENDER_MODE_NORMAL</a><br />
+<a href="ft2-base_interface.html#ft_render_mode">FT_RENDER_MODE_SDF</a><br />
<a href="ft2-module_management.html#ft_renderer">FT_Renderer</a><br />
<a href="ft2-module_management.html#ft_renderer_class">FT_Renderer_Class</a><br />
<a href="ft2-base_interface.html#ft_request_size">FT_Request_Size</a><br />
@@ -1717,7 +1828,9 @@
<a href="ft2-base_interface.html#ft_set_char_size">FT_Set_Char_Size</a><br />
<a href="ft2-base_interface.html#ft_set_charmap">FT_Set_Charmap</a><br />
<a href="ft2-module_management.html#ft_set_debug_hook">FT_Set_Debug_Hook</a><br />
+<a href="ft2-debugging_apis.html#ft_set_default_log_handler">FT_Set_Default_Log_Handler</a><br />
<a href="ft2-module_management.html#ft_set_default_properties">FT_Set_Default_Properties</a><br />
+<a href="ft2-debugging_apis.html#ft_set_log_handler">FT_Set_Log_Handler</a><br />
<a href="ft2-multiple_masters.html#ft_set_mm_blend_coordinates">FT_Set_MM_Blend_Coordinates</a><br />
<a href="ft2-multiple_masters.html#ft_set_mm_design_coordinates">FT_Set_MM_Design_Coordinates</a><br />
<a href="ft2-multiple_masters.html#ft_set_mm_weightvector">FT_Set_MM_WeightVector</a><br />
@@ -1811,6 +1924,8 @@
<a href="ft2-header_file_macros.html#ft_system_h">FT_SYSTEM_H</a><br />
<a href="ft2-basic_types.html#ft_tag">FT_Tag</a><br />
<a href="ft2-computations.html#ft_tan">FT_Tan</a><br />
+<a href="ft2-debugging_apis.html#ft_trace_set_default_level">FT_Trace_Set_Default_Level</a><br />
+<a href="ft2-debugging_apis.html#ft_trace_set_level">FT_Trace_Set_Level</a><br />
<a href="ft2-header_file_macros.html#ft_trigonometry_h">FT_TRIGONOMETRY_H</a><br />
<a href="ft2-header_file_macros.html#ft_truetype_driver_h">FT_TRUETYPE_DRIVER_H</a><br />
<a href="ft2-truetype_engine.html#ft_truetypeenginetype">FT_TRUETYPE_ENGINE_TYPE_NONE</a><br />
@@ -2059,10 +2174,7 @@
<h3 id="w">W<a class="headerlink" href="#w" title="Permanent link">&para;</a></h3>
<p><a href="ft2-properties.html#warping">warping</a> </p>
<hr />
-<div class="timestamp">generated on Tue Oct 20 05:14:52 2020 UTC</div>
-
-
-
+<div class="timestamp">generated on Thu Dec 2 12:36:11 2021 UTC</div>
@@ -2073,59 +2185,60 @@
</article>
</div>
</div>
+
</main>
<footer class="md-footer">
- <div class="md-footer-nav">
- <nav class="md-footer-nav__inner md-grid">
+ <nav class="md-footer__inner md-grid" aria-label="Footer">
+
- <a href="index.html" title="TOC" class="md-flex md-footer-nav__link md-footer-nav__link--prev" rel="prev">
- <div class="md-flex__cell md-flex__cell--shrink">
- <i class="md-icon md-icon--arrow-back md-footer-nav__button"></i>
- </div>
- <div class="md-flex__cell md-flex__cell--stretch md-footer-nav__title">
- <span class="md-flex__ellipsis">
- <span class="md-footer-nav__direction">
- Previous
- </span>
- TOC
+ <a href="index.html" class="md-footer__link md-footer__link--prev" aria-label="Previous: TOC" rel="prev">
+ <div class="md-footer__button md-icon">
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M20 11v2H8l5.5 5.5-1.42 1.42L4.16 12l7.92-7.92L13.5 5.5 8 11h12z"/></svg>
+ </div>
+ <div class="md-footer__title">
+ <div class="md-ellipsis">
+ <span class="md-footer__direction">
+ Previous
</span>
+ TOC
</div>
- </a>
-
+ </div>
+ </a>
+
+
- <a href="ft2-header_inclusion.html" title="FreeType's header inclusion scheme" class="md-flex md-footer-nav__link md-footer-nav__link--next" rel="next">
- <div class="md-flex__cell md-flex__cell--stretch md-footer-nav__title">
- <span class="md-flex__ellipsis">
- <span class="md-footer-nav__direction">
- Next
- </span>
- FreeType's header inclusion scheme
+ <a href="ft2-preamble.html" class="md-footer__link md-footer__link--next" aria-label="Next: Preamble" rel="next">
+ <div class="md-footer__title">
+ <div class="md-ellipsis">
+ <span class="md-footer__direction">
+ Next
</span>
+ Preamble
</div>
- <div class="md-flex__cell md-flex__cell--shrink">
- <i class="md-icon md-icon--arrow-forward md-footer-nav__button"></i>
- </div>
- </a>
-
- </nav>
- </div>
+ </div>
+ <div class="md-footer__button md-icon">
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M4 11v2h12l-5.5 5.5 1.42 1.42L19.84 12l-7.92-7.92L10.5 5.5 16 11H4z"/></svg>
+ </div>
+ </a>
+
+ </nav>
<div class="md-footer-meta md-typeset">
<div class="md-footer-meta__inner md-grid">
<div class="md-footer-copyright">
<div class="md-footer-copyright__highlight">
- Copyright 2020 <a href = "https://www.freetype.org/license.html">The FreeType Project</a>.
+ Copyright 2021 <a href = "https://www.freetype.org/license.html">The FreeType Project</a>.
</div>
- powered by
- <a href="https://www.mkdocs.org" target="_blank" rel="noopener">MkDocs</a>
- and
+ Made with
<a href="https://squidfunk.github.io/mkdocs-material/" target="_blank" rel="noopener">
- Material for MkDocs</a>
+ Material for MkDocs
+ </a>
+
</div>
</div>
@@ -2133,10 +2246,13 @@
</footer>
</div>
+ <div class="md-dialog" data-md-component="dialog">
+ <div class="md-dialog__inner md-typeset"></div>
+ </div>
+ <script id="__config" type="application/json">{"base": ".", "features": [], "translations": {"clipboard.copy": "Copy to clipboard", "clipboard.copied": "Copied to clipboard", "search.config.lang": "en", "search.config.pipeline": "trimmer, stopWordFilter", "search.config.separator": "[\\s\\-]+", "search.placeholder": "Search", "search.result.placeholder": "Type to start searching", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.term.missing": "Missing", "select.version.title": "Select version"}, "search": "assets/javascripts/workers/search.477d984a.min.js", "version": null}</script>
- <script src="assets/javascripts/application.c33a9706.js"></script>
-
- <script>app.initialize({version:"1.1",url:{base:"."}})</script>
+
+ <script src="assets/javascripts/bundle.82b56eb2.min.js"></script>
<script src="javascripts/extra.js"></script>
diff --git a/freetype/docs/reference/ft2-layer_management.html b/freetype/docs/reference/ft2-layer_management.html
index 99933f4d..7fb91a8f 100644
--- a/freetype/docs/reference/ft2-layer_management.html
+++ b/freetype/docs/reference/ft2-layer_management.html
@@ -1,145 +1,136 @@
-
-
-
<!doctype html>
<html lang="en" class="no-js">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
- <meta http-equiv="x-ua-compatible" content="ie=edge">
- <meta name="description" content="API Reference Documentation for FreeType-2.10.4">
+ <meta name="description" content="API Reference Documentation for FreeType-2.11.1">
<meta name="author" content="FreeType Contributors">
- <meta name="lang:clipboard.copy" content="Copy to clipboard">
-
- <meta name="lang:clipboard.copied" content="Copied to clipboard">
-
- <meta name="lang:search.language" content="en">
-
- <meta name="lang:search.pipeline.stopwords" content="True">
-
- <meta name="lang:search.pipeline.trimmer" content="True">
-
- <meta name="lang:search.result.none" content="No matching documents">
-
- <meta name="lang:search.result.one" content="1 matching document">
-
- <meta name="lang:search.result.other" content="# matching documents">
-
- <meta name="lang:search.tokenizer" content="[\s\-]+">
-
- <link rel="shortcut icon" href="images/favico.ico">
- <meta name="generator" content="mkdocs-1.1, mkdocs-material-4.6.3">
+ <link rel="icon" href="images/favico.ico">
+ <meta name="generator" content="mkdocs-1.2.1, mkdocs-material-7.1.9">
- <title>Glyph Layer Management - FreeType-2.10.4 API Reference</title>
+ <title>Glyph Layer Management - FreeType-2.11.1 API Reference</title>
- <link rel="stylesheet" href="assets/stylesheets/application.adb8469c.css">
-
- <link rel="stylesheet" href="assets/stylesheets/application-palette.a8b3c06d.css">
-
+ <link rel="stylesheet" href="assets/stylesheets/main.ca7ac06f.min.css">
+ <link rel="stylesheet" href="assets/stylesheets/palette.f1a3b89f.min.css">
+
+
+
+ <meta name="theme-color" content="#4cae4f">
- <meta name="theme-color" content="#4caf50">
- <script src="assets/javascripts/modernizr.86422ebf.js"></script>
-
- <link href="https://fonts.gstatic.com" rel="preconnect" crossorigin>
+
+ <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Noto+Serif:300,400,400i,700%7CRoboto+Mono&display=fallback">
- <style>body,input{font-family:"Noto Serif","Helvetica Neue",Helvetica,Arial,sans-serif}code,kbd,pre{font-family:"Roboto Mono","Courier New",Courier,monospace}</style>
+ <style>:root{--md-text-font-family:"Noto Serif";--md-code-font-family:"Roboto Mono"}</style>
- <link rel="stylesheet" href="assets/fonts/material-icons.css">
<link rel="stylesheet" href="stylesheets/extra.css">
+
+
</head>
+
+
- <body dir="ltr" data-md-color-primary="green" data-md-color-accent="green">
+
+
+ <body dir="ltr" data-md-color-scheme="" data-md-color-primary="green" data-md-color-accent="green">
- <svg class="md-svg">
- <defs>
-
-
- </defs>
- </svg>
- <input class="md-toggle" data-md-toggle="drawer" type="checkbox" id="__drawer" autocomplete="off">
- <input class="md-toggle" data-md-toggle="search" type="checkbox" id="__search" autocomplete="off">
- <label class="md-overlay" data-md-component="overlay" for="__drawer"></label>
- <a href="#glyph-layer-management" tabindex="0" class="md-skip">
- Skip to content
- </a>
+ <script>function __prefix(e){return new URL(".",location).pathname+"."+e}function __get(e,t=localStorage){return JSON.parse(t.getItem(__prefix(e)))}</script>
+ <input class="md-toggle" data-md-toggle="drawer" type="checkbox" id="__drawer" autocomplete="off">
+ <input class="md-toggle" data-md-toggle="search" type="checkbox" id="__search" autocomplete="off">
+ <label class="md-overlay" for="__drawer"></label>
+ <div data-md-component="skip">
+
+
+ <a href="#glyph-layer-management" class="md-skip">
+ Skip to content
+ </a>
+
+ </div>
+ <div data-md-component="announce">
+
+ </div>
<header class="md-header" data-md-component="header">
- <nav class="md-header-nav md-grid">
- <div class="md-flex">
- <div class="md-flex__cell md-flex__cell--shrink">
- <a href="." title="FreeType-2.10.4 API Reference" aria-label="FreeType-2.10.4 API Reference" class="md-header-nav__button md-logo">
-
- <img alt="logo" src="images/favico.ico" width="24" height="24">
-
- </a>
- </div>
- <div class="md-flex__cell md-flex__cell--shrink">
- <label class="md-icon md-icon--menu md-header-nav__button" for="__drawer"></label>
- </div>
- <div class="md-flex__cell md-flex__cell--stretch">
- <div class="md-flex__ellipsis md-header-nav__title" data-md-component="title">
-
- <span class="md-header-nav__topic">
- FreeType-2.10.4 API Reference
- </span>
- <span class="md-header-nav__topic">
-
- Glyph Layer Management
-
- </span>
-
+ <nav class="md-header__inner md-grid" aria-label="Header">
+ <a href="index.html" title="FreeType-2.11.1 API Reference" class="md-header__button md-logo" aria-label="FreeType-2.11.1 API Reference" data-md-component="logo">
+
+ <img src="images/favico.ico" alt="logo">
+
+ </a>
+ <label class="md-header__button md-icon" for="__drawer">
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M3 6h18v2H3V6m0 5h18v2H3v-2m0 5h18v2H3v-2z"/></svg>
+ </label>
+ <div class="md-header__title" data-md-component="header-title">
+ <div class="md-header__ellipsis">
+ <div class="md-header__topic">
+ <span class="md-ellipsis">
+ FreeType-2.11.1 API Reference
+ </span>
+ </div>
+ <div class="md-header__topic" data-md-component="header-topic">
+ <span class="md-ellipsis">
+
+ Glyph Layer Management
+
+ </span>
</div>
</div>
- <div class="md-flex__cell md-flex__cell--shrink">
-
- <label class="md-icon md-icon--search md-header-nav__button" for="__search"></label>
-
+ </div>
+
+
+
+ <label class="md-header__button md-icon" for="__search">
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M9.5 3A6.5 6.5 0 0 1 16 9.5c0 1.61-.59 3.09-1.56 4.23l.27.27h.79l5 5-1.5 1.5-5-5v-.79l-.27-.27A6.516 6.516 0 0 1 9.5 16 6.5 6.5 0 0 1 3 9.5 6.5 6.5 0 0 1 9.5 3m0 2C7 5 5 7 5 9.5S7 14 9.5 14 14 12 14 9.5 12 5 9.5 5z"/></svg>
+ </label>
+
<div class="md-search" data-md-component="search" role="dialog">
<label class="md-search__overlay" for="__search"></label>
<div class="md-search__inner" role="search">
<form class="md-search__form" name="search">
- <input type="text" class="md-search__input" aria-label="search" name="query" placeholder="Search" autocapitalize="off" autocorrect="off" autocomplete="off" spellcheck="false" data-md-component="query" data-md-state="active">
- <label class="md-icon md-search__icon" for="__search"></label>
- <button type="reset" class="md-icon md-search__icon" data-md-component="reset" tabindex="-1">
- &#xE5CD;
+ <input type="text" class="md-search__input" name="query" aria-label="Search" placeholder="Search" autocapitalize="off" autocorrect="off" autocomplete="off" spellcheck="false" data-md-component="search-query" data-md-state="active" required>
+ <label class="md-search__icon md-icon" for="__search">
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M9.5 3A6.5 6.5 0 0 1 16 9.5c0 1.61-.59 3.09-1.56 4.23l.27.27h.79l5 5-1.5 1.5-5-5v-.79l-.27-.27A6.516 6.516 0 0 1 9.5 16 6.5 6.5 0 0 1 3 9.5 6.5 6.5 0 0 1 9.5 3m0 2C7 5 5 7 5 9.5S7 14 9.5 14 14 12 14 9.5 12 5 9.5 5z"/></svg>
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M20 11v2H8l5.5 5.5-1.42 1.42L4.16 12l7.92-7.92L13.5 5.5 8 11h12z"/></svg>
+ </label>
+ <button type="reset" class="md-search__icon md-icon" aria-label="Clear" tabindex="-1">
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z"/></svg>
</button>
</form>
<div class="md-search__output">
<div class="md-search__scrollwrap" data-md-scrollfix>
- <div class="md-search-result" data-md-component="result">
+ <div class="md-search-result" data-md-component="search-result">
<div class="md-search-result__meta">
- Type to start searching
+ Initializing search
</div>
<ol class="md-search-result__list"></ol>
</div>
@@ -147,33 +138,35 @@
</div>
</div>
</div>
-
- </div>
-
- </div>
+
+
</nav>
</header>
- <div class="md-container">
+ <div class="md-container" data-md-component="container">
-
+
- <main class="md-main" role="main">
- <div class="md-main__inner md-grid" data-md-component="container">
+ <main class="md-main" data-md-component="main">
+ <div class="md-main__inner md-grid">
- <div class="md-sidebar md-sidebar--primary" data-md-component="navigation">
+
+ <div class="md-sidebar md-sidebar--primary" data-md-component="sidebar" data-md-type="navigation" >
<div class="md-sidebar__scrollwrap">
<div class="md-sidebar__inner">
- <nav class="md-nav md-nav--primary" data-md-level="0">
- <label class="md-nav__title md-nav__title--site" for="__drawer">
- <a href="." title="FreeType-2.10.4 API Reference" class="md-nav__button md-logo">
-
- <img alt="logo" src="images/favico.ico" width="48" height="48">
+
+
+
+<nav class="md-nav md-nav--primary" aria-label="Navigation" data-md-level="0">
+ <label class="md-nav__title" for="__drawer">
+ <a href="index.html" title="FreeType-2.11.1 API Reference" class="md-nav__button md-logo" aria-label="FreeType-2.11.1 API Reference" data-md-component="logo">
+ <img src="images/favico.ico" alt="logo">
+
</a>
- FreeType-2.10.4 API Reference
+ FreeType-2.11.1 API Reference
</label>
<ul class="md-nav__list" data-md-scrollfix>
@@ -182,72 +175,96 @@
-
- <li class="md-nav__item">
- <a href="index.html" title="TOC" class="md-nav__link">
- TOC
- </a>
- </li>
+
+
+
+ <li class="md-nav__item">
+ <a href="index.html" class="md-nav__link">
+ TOC
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-index.html" title="Index" class="md-nav__link">
- Index
- </a>
- </li>
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-index.html" class="md-nav__link">
+ Index
+ </a>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-3" type="checkbox" id="nav-3">
+
+
+
- <label class="md-nav__link" for="nav-3">
- General Remarks
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-3">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_3" type="checkbox" id="__nav_3" >
+
+ <label class="md-nav__link" for="__nav_3">
General Remarks
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
-
-
+ <nav class="md-nav" aria-label="General Remarks" data-md-level="1">
+ <label class="md-nav__title" for="__nav_3">
+ <span class="md-nav__icon md-icon"></span>
+ General Remarks
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-preamble.html" class="md-nav__link">
+ Preamble
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-header_inclusion.html" title="FreeType's header inclusion scheme" class="md-nav__link">
- FreeType's header inclusion scheme
- </a>
- </li>
-
-
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-header_inclusion.html" class="md-nav__link">
+ FreeType's header inclusion scheme
+ </a>
+ </li>
+
- <li class="md-nav__item">
- <a href="ft2-user_allocation.html" title="User allocation" class="md-nav__link">
- User allocation
- </a>
- </li>
+
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-user_allocation.html" class="md-nav__link">
+ User allocation
+ </a>
+ </li>
+
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
@@ -255,113 +272,123 @@
-
-
- <li class="md-nav__item md-nav__item--active md-nav__item--nested">
+
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-4" type="checkbox" id="nav-4" checked>
+
+
- <label class="md-nav__link" for="nav-4">
- Core API
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-4">
+ <li class="md-nav__item md-nav__item--active md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_4" type="checkbox" id="__nav_4" checked>
+
+ <label class="md-nav__link" for="__nav_4">
Core API
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
-
+ <nav class="md-nav" aria-label="Core API" data-md-level="1">
+ <label class="md-nav__title" for="__nav_4">
+ <span class="md-nav__icon md-icon"></span>
+ Core API
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
-
-
-
- <li class="md-nav__item">
- <a href="ft2-version.html" title="FreeType Version" class="md-nav__link">
- FreeType Version
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-version.html" class="md-nav__link">
+ FreeType Version
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-basic_types.html" class="md-nav__link">
+ Basic Data Types
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-basic_types.html" title="Basic Data Types" class="md-nav__link">
- Basic Data Types
- </a>
- </li>
-
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-base_interface.html" class="md-nav__link">
+ Base Interface
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-base_interface.html" title="Base Interface" class="md-nav__link">
- Base Interface
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-glyph_variants.html" title="Unicode Variation Sequences" class="md-nav__link">
- Unicode Variation Sequences
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-glyph_variants.html" class="md-nav__link">
+ Unicode Variation Sequences
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-color_management.html" title="Glyph Color Management" class="md-nav__link">
- Glyph Color Management
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-color_management.html" class="md-nav__link">
+ Glyph Color Management
+ </a>
+ </li>
+
-
-
-
-
+
+
-
-
- <li class="md-nav__item md-nav__item--active">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="toc" type="checkbox" id="__toc">
+
+
+ <li class="md-nav__item md-nav__item--active">
-
-
- <label class="md-nav__link md-nav__link--active" for="__toc">
+ <input class="md-nav__toggle md-toggle" data-md-toggle="toc" type="checkbox" id="__toc">
+
+
+
+
+
+ <label class="md-nav__link md-nav__link--active" for="__toc">
+ Glyph Layer Management
+ <span class="md-nav__icon md-icon"></span>
+ </label>
+
+ <a href="ft2-layer_management.html" class="md-nav__link md-nav__link--active">
Glyph Layer Management
- </label>
-
- <a href="ft2-layer_management.html" title="Glyph Layer Management" class="md-nav__link md-nav__link--active">
- Glyph Layer Management
- </a>
-
+ </a>
-<nav class="md-nav md-nav--secondary">
+
+<nav class="md-nav md-nav--secondary" aria-label="Table of contents">
+
- <label class="md-nav__title" for="__toc">Table of contents</label>
- <ul class="md-nav__list" data-md-scrollfix>
+ <label class="md-nav__title" for="__toc">
+ <span class="md-nav__icon md-icon"></span>
+ Table of contents
+ </label>
+ <ul class="md-nav__list" data-md-component="toc" data-md-scrollfix>
<li class="md-nav__item">
<a href="#synopsis" class="md-nav__link">
@@ -384,656 +411,912 @@
</li>
+ <li class="md-nav__item">
+ <a href="#ft_paintformat" class="md-nav__link">
+ FT_PaintFormat
+ </a>
+
+</li>
+
+ <li class="md-nav__item">
+ <a href="#ft_colorstopiterator" class="md-nav__link">
+ FT_ColorStopIterator
+ </a>
+
+</li>
+
+ <li class="md-nav__item">
+ <a href="#ft_colorindex" class="md-nav__link">
+ FT_ColorIndex
+ </a>
+
+</li>
+
+ <li class="md-nav__item">
+ <a href="#ft_colorstop" class="md-nav__link">
+ FT_ColorStop
+ </a>
+
+</li>
+
+ <li class="md-nav__item">
+ <a href="#ft_paintextend" class="md-nav__link">
+ FT_PaintExtend
+ </a>
+
+</li>
+
+ <li class="md-nav__item">
+ <a href="#ft_colorline" class="md-nav__link">
+ FT_ColorLine
+ </a>
+
+</li>
+
+ <li class="md-nav__item">
+ <a href="#ft_affine23" class="md-nav__link">
+ FT_Affine23
+ </a>
+
+</li>
+
+ <li class="md-nav__item">
+ <a href="#ft_composite_mode" class="md-nav__link">
+ FT_Composite_Mode
+ </a>
+
+</li>
+
+ <li class="md-nav__item">
+ <a href="#ft_opaquepaint" class="md-nav__link">
+ FT_OpaquePaint
+ </a>
+
+</li>
+
+ <li class="md-nav__item">
+ <a href="#ft_paintcolrlayers" class="md-nav__link">
+ FT_PaintColrLayers
+ </a>
+
+</li>
+
+ <li class="md-nav__item">
+ <a href="#ft_paintsolid" class="md-nav__link">
+ FT_PaintSolid
+ </a>
+
+</li>
+
+ <li class="md-nav__item">
+ <a href="#ft_paintlineargradient" class="md-nav__link">
+ FT_PaintLinearGradient
+ </a>
+
+</li>
+
+ <li class="md-nav__item">
+ <a href="#ft_paintradialgradient" class="md-nav__link">
+ FT_PaintRadialGradient
+ </a>
+
+</li>
+
+ <li class="md-nav__item">
+ <a href="#ft_paintsweepgradient" class="md-nav__link">
+ FT_PaintSweepGradient
+ </a>
+
+</li>
+
+ <li class="md-nav__item">
+ <a href="#ft_paintglyph" class="md-nav__link">
+ FT_PaintGlyph
+ </a>
+
+</li>
+ <li class="md-nav__item">
+ <a href="#ft_paintcolrglyph" class="md-nav__link">
+ FT_PaintColrGlyph
+ </a>
+
+</li>
+
+ <li class="md-nav__item">
+ <a href="#ft_painttransform" class="md-nav__link">
+ FT_PaintTransform
+ </a>
+
+</li>
+ <li class="md-nav__item">
+ <a href="#ft_painttranslate" class="md-nav__link">
+ FT_PaintTranslate
+ </a>
+
+</li>
+ <li class="md-nav__item">
+ <a href="#ft_paintscale" class="md-nav__link">
+ FT_PaintScale
+ </a>
+
+</li>
+
+ <li class="md-nav__item">
+ <a href="#ft_paintrotate" class="md-nav__link">
+ FT_PaintRotate
+ </a>
+
+</li>
+
+ <li class="md-nav__item">
+ <a href="#ft_paintskew" class="md-nav__link">
+ FT_PaintSkew
+ </a>
+
+</li>
+
+ <li class="md-nav__item">
+ <a href="#ft_paintcomposite" class="md-nav__link">
+ FT_PaintComposite
+ </a>
+
+</li>
+
+ <li class="md-nav__item">
+ <a href="#ft_colr_paint" class="md-nav__link">
+ FT_COLR_Paint
+ </a>
+
+</li>
+
+ <li class="md-nav__item">
+ <a href="#ft_color_root_transform" class="md-nav__link">
+ FT_Color_Root_Transform
+ </a>
+
+</li>
+
+ <li class="md-nav__item">
+ <a href="#ft_clipbox" class="md-nav__link">
+ FT_ClipBox
+ </a>
+
+</li>
+
+ <li class="md-nav__item">
+ <a href="#ft_get_color_glyph_paint" class="md-nav__link">
+ FT_Get_Color_Glyph_Paint
+ </a>
+
+</li>
+
+ <li class="md-nav__item">
+ <a href="#ft_get_color_glyph_clipbox" class="md-nav__link">
+ FT_Get_Color_Glyph_ClipBox
+ </a>
+
+</li>
+
+ <li class="md-nav__item">
+ <a href="#ft_get_paint_layers" class="md-nav__link">
+ FT_Get_Paint_Layers
+ </a>
+
+</li>
+
+ <li class="md-nav__item">
+ <a href="#ft_get_colorline_stops" class="md-nav__link">
+ FT_Get_Colorline_Stops
+ </a>
+
+</li>
+
+ <li class="md-nav__item">
+ <a href="#ft_get_paint" class="md-nav__link">
+ FT_Get_Paint
+ </a>
+
+</li>
</ul>
</nav>
-
- </li>
+
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-glyph_management.html" class="md-nav__link">
+ Glyph Management
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-glyph_management.html" title="Glyph Management" class="md-nav__link">
- Glyph Management
- </a>
- </li>
-
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-mac_specific.html" class="md-nav__link">
+ Mac Specific Interface
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-mac_specific.html" title="Mac Specific Interface" class="md-nav__link">
- Mac Specific Interface
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-sizes_management.html" title="Size Management" class="md-nav__link">
- Size Management
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-sizes_management.html" class="md-nav__link">
+ Size Management
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-header_file_macros.html" title="Header File Macros" class="md-nav__link">
- Header File Macros
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-header_file_macros.html" class="md-nav__link">
+ Header File Macros
+ </a>
+ </li>
+
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-5" type="checkbox" id="nav-5">
+
+
+
- <label class="md-nav__link" for="nav-5">
- Format-Specific API
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-5">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_5" type="checkbox" id="__nav_5" >
+
+ <label class="md-nav__link" for="__nav_5">
Format-Specific API
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
-
-
+ <nav class="md-nav" aria-label="Format-Specific API" data-md-level="1">
+ <label class="md-nav__title" for="__nav_5">
+ <span class="md-nav__icon md-icon"></span>
+ Format-Specific API
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-multiple_masters.html" class="md-nav__link">
+ Multiple Masters
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-multiple_masters.html" title="Multiple Masters" class="md-nav__link">
- Multiple Masters
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-truetype_tables.html" title="TrueType Tables" class="md-nav__link">
- TrueType Tables
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-truetype_tables.html" class="md-nav__link">
+ TrueType Tables
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-type1_tables.html" title="Type 1 Tables" class="md-nav__link">
- Type 1 Tables
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-type1_tables.html" class="md-nav__link">
+ Type 1 Tables
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-sfnt_names.html" title="SFNT Names" class="md-nav__link">
- SFNT Names
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-sfnt_names.html" class="md-nav__link">
+ SFNT Names
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-bdf_fonts.html" title="BDF and PCF Files" class="md-nav__link">
- BDF and PCF Files
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-bdf_fonts.html" class="md-nav__link">
+ BDF and PCF Files
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-cid_fonts.html" class="md-nav__link">
+ CID Fonts
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-cid_fonts.html" title="CID Fonts" class="md-nav__link">
- CID Fonts
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-pfr_fonts.html" title="PFR Fonts" class="md-nav__link">
- PFR Fonts
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-pfr_fonts.html" class="md-nav__link">
+ PFR Fonts
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-winfnt_fonts.html" title="Window FNT Files" class="md-nav__link">
- Window FNT Files
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-winfnt_fonts.html" class="md-nav__link">
+ Window FNT Files
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-font_formats.html" title="Font Formats" class="md-nav__link">
- Font Formats
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-font_formats.html" class="md-nav__link">
+ Font Formats
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-gasp_table.html" title="Gasp Table" class="md-nav__link">
- Gasp Table
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-gasp_table.html" class="md-nav__link">
+ Gasp Table
+ </a>
+ </li>
+
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-6" type="checkbox" id="nav-6">
+
+
+
- <label class="md-nav__link" for="nav-6">
- Controlling FreeType Modules
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-6">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_6" type="checkbox" id="__nav_6" >
+
+ <label class="md-nav__link" for="__nav_6">
Controlling FreeType Modules
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
-
+ <nav class="md-nav" aria-label="Controlling FreeType Modules" data-md-level="1">
+ <label class="md-nav__title" for="__nav_6">
+ <span class="md-nav__icon md-icon"></span>
+ Controlling FreeType Modules
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
-
-
-
- <li class="md-nav__item">
- <a href="ft2-auto_hinter.html" title="The auto-hinter" class="md-nav__link">
- The auto-hinter
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-auto_hinter.html" class="md-nav__link">
+ The auto-hinter
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-cff_driver.html" title="The CFF driver" class="md-nav__link">
- The CFF driver
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-cff_driver.html" class="md-nav__link">
+ The CFF driver
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-t1_cid_driver.html" title="The Type 1 and CID drivers" class="md-nav__link">
- The Type 1 and CID drivers
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-t1_cid_driver.html" class="md-nav__link">
+ The Type 1 and CID drivers
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-tt_driver.html" title="The TrueType driver" class="md-nav__link">
- The TrueType driver
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-tt_driver.html" class="md-nav__link">
+ The TrueType driver
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-pcf_driver.html" class="md-nav__link">
+ The PCF driver
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-pcf_driver.html" title="The PCF driver" class="md-nav__link">
- The PCF driver
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-properties.html" title="Driver properties" class="md-nav__link">
- Driver properties
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-properties.html" class="md-nav__link">
+ Driver properties
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-parameter_tags.html" title="Parameter Tags" class="md-nav__link">
- Parameter Tags
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-parameter_tags.html" class="md-nav__link">
+ Parameter Tags
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-lcd_rendering.html" title="Subpixel Rendering" class="md-nav__link">
- Subpixel Rendering
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-lcd_rendering.html" class="md-nav__link">
+ Subpixel Rendering
+ </a>
+ </li>
+
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-7" type="checkbox" id="nav-7">
+
+
+
- <label class="md-nav__link" for="nav-7">
- Cache Sub-System
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-7">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_7" type="checkbox" id="__nav_7" >
+
+ <label class="md-nav__link" for="__nav_7">
Cache Sub-System
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
-
-
+ <nav class="md-nav" aria-label="Cache Sub-System" data-md-level="1">
+ <label class="md-nav__title" for="__nav_7">
+ <span class="md-nav__icon md-icon"></span>
+ Cache Sub-System
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-cache_subsystem.html" class="md-nav__link">
+ Cache Sub-System
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-cache_subsystem.html" title="Cache Sub-System" class="md-nav__link">
- Cache Sub-System
- </a>
- </li>
-
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-8" type="checkbox" id="nav-8">
+
+
+
- <label class="md-nav__link" for="nav-8">
- Support API
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-8">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_8" type="checkbox" id="__nav_8" >
+
+ <label class="md-nav__link" for="__nav_8">
Support API
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
-
+ <nav class="md-nav" aria-label="Support API" data-md-level="1">
+ <label class="md-nav__title" for="__nav_8">
+ <span class="md-nav__icon md-icon"></span>
+ Support API
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
-
-
-
- <li class="md-nav__item">
- <a href="ft2-computations.html" title="Computations" class="md-nav__link">
- Computations
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-computations.html" class="md-nav__link">
+ Computations
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-list_processing.html" title="List Processing" class="md-nav__link">
- List Processing
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-list_processing.html" class="md-nav__link">
+ List Processing
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-outline_processing.html" title="Outline Processing" class="md-nav__link">
- Outline Processing
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-outline_processing.html" class="md-nav__link">
+ Outline Processing
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-quick_advance.html" title="Quick retrieval of advance values" class="md-nav__link">
- Quick retrieval of advance values
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-quick_advance.html" class="md-nav__link">
+ Quick retrieval of advance values
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-bitmap_handling.html" class="md-nav__link">
+ Bitmap Handling
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-bitmap_handling.html" title="Bitmap Handling" class="md-nav__link">
- Bitmap Handling
- </a>
- </li>
-
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-raster.html" class="md-nav__link">
+ Scanline Converter
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-raster.html" title="Scanline Converter" class="md-nav__link">
- Scanline Converter
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-glyph_stroker.html" title="Glyph Stroker" class="md-nav__link">
- Glyph Stroker
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-glyph_stroker.html" class="md-nav__link">
+ Glyph Stroker
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-system_interface.html" title="System Interface" class="md-nav__link">
- System Interface
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-system_interface.html" class="md-nav__link">
+ System Interface
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-module_management.html" title="Module Management" class="md-nav__link">
- Module Management
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-module_management.html" class="md-nav__link">
+ Module Management
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-gzip.html" class="md-nav__link">
+ GZIP Streams
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-gzip.html" title="GZIP Streams" class="md-nav__link">
- GZIP Streams
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-lzw.html" title="LZW Streams" class="md-nav__link">
- LZW Streams
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-lzw.html" class="md-nav__link">
+ LZW Streams
+ </a>
+ </li>
+
-
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-bzip2.html" class="md-nav__link">
+ BZIP2 Streams
+ </a>
+ </li>
+
- <li class="md-nav__item">
- <a href="ft2-bzip2.html" title="BZIP2 Streams" class="md-nav__link">
- BZIP2 Streams
- </a>
- </li>
+
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-debugging_apis.html" class="md-nav__link">
+ External Debugging APIs
+ </a>
+ </li>
+
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-9" type="checkbox" id="nav-9">
+
+
+
- <label class="md-nav__link" for="nav-9">
- Error Codes
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-9">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_9" type="checkbox" id="__nav_9" >
+
+ <label class="md-nav__link" for="__nav_9">
Error Codes
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
-
-
+ <nav class="md-nav" aria-label="Error Codes" data-md-level="1">
+ <label class="md-nav__title" for="__nav_9">
+ <span class="md-nav__icon md-icon"></span>
+ Error Codes
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-error_enumerations.html" class="md-nav__link">
+ Error Enumerations
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-error_enumerations.html" title="Error Enumerations" class="md-nav__link">
- Error Enumerations
- </a>
- </li>
-
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-error_code_values.html" class="md-nav__link">
+ Error Code Values
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-error_code_values.html" title="Error Code Values" class="md-nav__link">
- Error Code Values
- </a>
- </li>
-
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-10" type="checkbox" id="nav-10">
+
+
+
- <label class="md-nav__link" for="nav-10">
- Miscellaneous
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-10">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_10" type="checkbox" id="__nav_10" >
+
+ <label class="md-nav__link" for="__nav_10">
Miscellaneous
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
-
+ <nav class="md-nav" aria-label="Miscellaneous" data-md-level="1">
+ <label class="md-nav__title" for="__nav_10">
+ <span class="md-nav__icon md-icon"></span>
+ Miscellaneous
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
-
-
-
- <li class="md-nav__item">
- <a href="ft2-gx_validation.html" title="TrueTypeGX/AAT Validation" class="md-nav__link">
- TrueTypeGX/AAT Validation
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-gx_validation.html" class="md-nav__link">
+ TrueTypeGX/AAT Validation
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-incremental.html" class="md-nav__link">
+ Incremental Loading
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-incremental.html" title="Incremental Loading" class="md-nav__link">
- Incremental Loading
- </a>
- </li>
-
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-truetype_engine.html" class="md-nav__link">
+ The TrueType Engine
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-truetype_engine.html" title="The TrueType Engine" class="md-nav__link">
- The TrueType Engine
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-ot_validation.html" title="OpenType Validation" class="md-nav__link">
- OpenType Validation
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-ot_validation.html" class="md-nav__link">
+ OpenType Validation
+ </a>
+ </li>
+
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
</ul>
@@ -1043,18 +1326,23 @@
</div>
- <div class="md-sidebar md-sidebar--secondary" data-md-component="toc">
+
+ <div class="md-sidebar md-sidebar--secondary" data-md-component="sidebar" data-md-type="toc" >
<div class="md-sidebar__scrollwrap">
<div class="md-sidebar__inner">
-<nav class="md-nav md-nav--secondary">
+<nav class="md-nav md-nav--secondary" aria-label="Table of contents">
+
- <label class="md-nav__title" for="__toc">Table of contents</label>
- <ul class="md-nav__list" data-md-scrollfix>
+ <label class="md-nav__title" for="__toc">
+ <span class="md-nav__icon md-icon"></span>
+ Table of contents
+ </label>
+ <ul class="md-nav__list" data-md-component="toc" data-md-scrollfix>
<li class="md-nav__item">
<a href="#synopsis" class="md-nav__link">
@@ -1077,9 +1365,215 @@
</li>
+ <li class="md-nav__item">
+ <a href="#ft_paintformat" class="md-nav__link">
+ FT_PaintFormat
+ </a>
+
+</li>
+
+ <li class="md-nav__item">
+ <a href="#ft_colorstopiterator" class="md-nav__link">
+ FT_ColorStopIterator
+ </a>
+
+</li>
+
+ <li class="md-nav__item">
+ <a href="#ft_colorindex" class="md-nav__link">
+ FT_ColorIndex
+ </a>
+
+</li>
+
+ <li class="md-nav__item">
+ <a href="#ft_colorstop" class="md-nav__link">
+ FT_ColorStop
+ </a>
+
+</li>
+
+ <li class="md-nav__item">
+ <a href="#ft_paintextend" class="md-nav__link">
+ FT_PaintExtend
+ </a>
+
+</li>
+
+ <li class="md-nav__item">
+ <a href="#ft_colorline" class="md-nav__link">
+ FT_ColorLine
+ </a>
+
+</li>
+
+ <li class="md-nav__item">
+ <a href="#ft_affine23" class="md-nav__link">
+ FT_Affine23
+ </a>
+
+</li>
+
+ <li class="md-nav__item">
+ <a href="#ft_composite_mode" class="md-nav__link">
+ FT_Composite_Mode
+ </a>
+
+</li>
+
+ <li class="md-nav__item">
+ <a href="#ft_opaquepaint" class="md-nav__link">
+ FT_OpaquePaint
+ </a>
+
+</li>
+
+ <li class="md-nav__item">
+ <a href="#ft_paintcolrlayers" class="md-nav__link">
+ FT_PaintColrLayers
+ </a>
+
+</li>
+
+ <li class="md-nav__item">
+ <a href="#ft_paintsolid" class="md-nav__link">
+ FT_PaintSolid
+ </a>
+
+</li>
+
+ <li class="md-nav__item">
+ <a href="#ft_paintlineargradient" class="md-nav__link">
+ FT_PaintLinearGradient
+ </a>
+
+</li>
+
+ <li class="md-nav__item">
+ <a href="#ft_paintradialgradient" class="md-nav__link">
+ FT_PaintRadialGradient
+ </a>
+
+</li>
+
+ <li class="md-nav__item">
+ <a href="#ft_paintsweepgradient" class="md-nav__link">
+ FT_PaintSweepGradient
+ </a>
+
+</li>
+
+ <li class="md-nav__item">
+ <a href="#ft_paintglyph" class="md-nav__link">
+ FT_PaintGlyph
+ </a>
+
+</li>
+
+ <li class="md-nav__item">
+ <a href="#ft_paintcolrglyph" class="md-nav__link">
+ FT_PaintColrGlyph
+ </a>
+
+</li>
+
+ <li class="md-nav__item">
+ <a href="#ft_painttransform" class="md-nav__link">
+ FT_PaintTransform
+ </a>
+
+</li>
+
+ <li class="md-nav__item">
+ <a href="#ft_painttranslate" class="md-nav__link">
+ FT_PaintTranslate
+ </a>
+
+</li>
+
+ <li class="md-nav__item">
+ <a href="#ft_paintscale" class="md-nav__link">
+ FT_PaintScale
+ </a>
+
+</li>
+
+ <li class="md-nav__item">
+ <a href="#ft_paintrotate" class="md-nav__link">
+ FT_PaintRotate
+ </a>
+
+</li>
+
+ <li class="md-nav__item">
+ <a href="#ft_paintskew" class="md-nav__link">
+ FT_PaintSkew
+ </a>
+
+</li>
+
+ <li class="md-nav__item">
+ <a href="#ft_paintcomposite" class="md-nav__link">
+ FT_PaintComposite
+ </a>
+
+</li>
+
+ <li class="md-nav__item">
+ <a href="#ft_colr_paint" class="md-nav__link">
+ FT_COLR_Paint
+ </a>
+
+</li>
+
+ <li class="md-nav__item">
+ <a href="#ft_color_root_transform" class="md-nav__link">
+ FT_Color_Root_Transform
+ </a>
+
+</li>
+
+ <li class="md-nav__item">
+ <a href="#ft_clipbox" class="md-nav__link">
+ FT_ClipBox
+ </a>
+
+</li>
+
+ <li class="md-nav__item">
+ <a href="#ft_get_color_glyph_paint" class="md-nav__link">
+ FT_Get_Color_Glyph_Paint
+ </a>
+
+</li>
+
+ <li class="md-nav__item">
+ <a href="#ft_get_color_glyph_clipbox" class="md-nav__link">
+ FT_Get_Color_Glyph_ClipBox
+ </a>
+
+</li>
+ <li class="md-nav__item">
+ <a href="#ft_get_paint_layers" class="md-nav__link">
+ FT_Get_Paint_Layers
+ </a>
+
+</li>
+ <li class="md-nav__item">
+ <a href="#ft_get_colorline_stops" class="md-nav__link">
+ FT_Get_Colorline_Stops
+ </a>
+
+</li>
+ <li class="md-nav__item">
+ <a href="#ft_get_paint" class="md-nav__link">
+ FT_Get_Paint
+ </a>
+
+</li>
</ul>
@@ -1089,7 +1583,7 @@
</div>
- <div class="md-content">
+ <div class="md-content" data-md-component="content">
<article class="md-content__inner md-typeset">
@@ -1100,7 +1594,7 @@
<h2 id="synopsis">Synopsis<a class="headerlink" href="#synopsis" title="Permanent link">&para;</a></h2>
<p>The functions described here allow access of colored glyph layer data in OpenType's &lsquo;COLR&rsquo; tables.</p>
<h2 id="ft_layeriterator">FT_LayerIterator<a class="headerlink" href="#ft_layeriterator" title="Permanent link">&para;</a></h2>
-<p>Defined in FT_FREETYPE_H (freetype/freetype.h).</p>
+<p>Defined in FT_COLOR_H (freetype/ftcolor.h).</p>
<div class = "codehilite"><pre><code> <span class="keyword">typedef</span> <span class="keyword">struct</span> FT_LayerIterator_
{
<a href="ft2-basic_types.html#ft_uint">FT_UInt</a> num_layers;
@@ -1112,7 +1606,6 @@
<p>This iterator object is needed for <code><a href="ft2-layer_management.html#ft_get_color_glyph_layer">FT_Get_Color_Glyph_Layer</a></code>.</p>
<h4>fields</h4>
-
<table class="fields">
<tr><td class="val" id="num_layers">num_layers</td><td class="desc">
<p>The number of glyph layers for the requested glyph index. Will be set by <code><a href="ft2-layer_management.html#ft_get_color_glyph_layer">FT_Get_Color_Glyph_Layer</a></code>.</p>
@@ -1128,7 +1621,7 @@
<hr>
<h2 id="ft_get_color_glyph_layer">FT_Get_Color_Glyph_Layer<a class="headerlink" href="#ft_get_color_glyph_layer" title="Permanent link">&para;</a></h2>
-<p>Defined in FT_FREETYPE_H (freetype/freetype.h).</p>
+<p>Defined in FT_COLOR_H (freetype/ftcolor.h).</p>
<div class = "codehilite"><pre><code> FT_EXPORT( <a href="ft2-basic_types.html#ft_bool">FT_Bool</a> )
<b>FT_Get_Color_Glyph_Layer</b>( <a href="ft2-base_interface.html#ft_face">FT_Face</a> face,
<a href="ft2-basic_types.html#ft_uint">FT_UInt</a> base_glyph,
@@ -1140,9 +1633,8 @@
<p>This is an interface to the &lsquo;COLR&rsquo; table in OpenType fonts to iteratively retrieve the colored glyph layers associated with the current glyph slot.</p>
<p><a href="https://docs.microsoft.com/en-us/typography/opentype/spec/colr">https://docs.microsoft.com/en-us/typography/opentype/spec/colr</a></p>
<p>The glyph layer data for a given glyph index, if present, provides an alternative, multi-color glyph representation: Instead of rendering the outline or bitmap with the given glyph index, glyphs with the indices and colors returned by this function are rendered layer by layer.</p>
-<p>The returned elements are ordered in the z&nbsp;direction from bottom to top; the 'n'th element should be rendered with the associated palette color and blended on top of the already rendered layers (elements 0, 1, ..., n-1).</p>
+<p>The returned elements are ordered in the z&nbsp;direction from bottom to top; the 'n'th element should be rendered with the associated palette color and blended on top of the already rendered layers (elements 0, 1, &hellip;, n-1).</p>
<h4>input</h4>
-
<table class="fields">
<tr><td class="val" id="face">face</td><td class="desc">
<p>A handle to the parent face object.</p>
@@ -1153,7 +1645,6 @@
</table>
<h4>inout</h4>
-
<table class="fields">
<tr><td class="val" id="iterator">iterator</td><td class="desc">
<p>An <code><a href="ft2-layer_management.html#ft_layeriterator">FT_LayerIterator</a></code> object. For the first call you should set <code>iterator-&gt;p</code> to <code>NULL</code>. For all following calls, simply use the same object again.</p>
@@ -1161,7 +1652,6 @@
</table>
<h4>output</h4>
-
<table class="fields">
<tr><td class="val" id="aglyph_index">aglyph_index</td><td class="desc">
<p>The glyph index of the current layer.</p>
@@ -1180,7 +1670,6 @@
<p>This function is necessary if you want to handle glyph layers by yourself. In particular, functions that operate with <code><a href="ft2-glyph_management.html#ft_glyphrec">FT_GlyphRec</a></code> objects (like <code><a href="ft2-glyph_management.html#ft_get_glyph">FT_Get_Glyph</a></code> or <code><a href="ft2-glyph_management.html#ft_glyph_to_bitmap">FT_Glyph_To_Bitmap</a></code>) don't have access to this information.</p>
<p>Note that <code><a href="ft2-base_interface.html#ft_render_glyph">FT_Render_Glyph</a></code> is able to handle colored glyph layers automatically if the <code><a href="ft2-base_interface.html#ft_load_xxx">FT_LOAD_COLOR</a></code> flag is passed to a previous call to <code><a href="ft2-base_interface.html#ft_load_glyph">FT_Load_Glyph</a></code>. [This is an experimental feature.]</p>
<h4>example</h4>
-
<div class="highlight"><pre><span></span><code> FT_Color* palette;
FT_LayerIterator iterator;
@@ -1223,11 +1712,979 @@
&amp;iterator ) );
}
</code></pre></div>
+<hr>
+
+<h2 id="ft_paintformat">FT_PaintFormat<a class="headerlink" href="#ft_paintformat" title="Permanent link">&para;</a></h2>
+<p>Defined in FT_COLOR_H (freetype/ftcolor.h).</p>
+<div class = "codehilite"><pre><code> <span class="keyword">typedef</span> <span class="keyword">enum</span> FT_PaintFormat_
+ {
+ FT_COLR_PAINTFORMAT_COLR_LAYERS = 1,
+ FT_COLR_PAINTFORMAT_SOLID = 2,
+ FT_COLR_PAINTFORMAT_LINEAR_GRADIENT = 4,
+ FT_COLR_PAINTFORMAT_RADIAL_GRADIENT = 6,
+ FT_COLR_PAINTFORMAT_SWEEP_GRADIENT = 8,
+ FT_COLR_PAINTFORMAT_GLYPH = 10,
+ FT_COLR_PAINTFORMAT_COLR_GLYPH = 11,
+ FT_COLR_PAINTFORMAT_TRANSFORM = 12,
+ FT_COLR_PAINTFORMAT_TRANSLATE = 14,
+ FT_COLR_PAINTFORMAT_SCALE = 16,
+ FT_COLR_PAINTFORMAT_ROTATE = 24,
+ FT_COLR_PAINTFORMAT_SKEW = 28,
+ FT_COLR_PAINTFORMAT_COMPOSITE = 32,
+ FT_COLR_PAINT_FORMAT_MAX = 33,
+ FT_COLR_PAINTFORMAT_UNSUPPORTED = 255
+
+ } <b>FT_PaintFormat</b>;
+</code></pre></div>
+
+<p>Enumeration describing the different paint format types of the v1 extensions to the &lsquo;COLR&rsquo; table, see &lsquo;<a href="https://github.com/googlefonts/colr-gradients-spec">https://github.com/googlefonts/colr-gradients-spec</a>&rsquo;.</p>
+<p>The enumeration values losely correspond with the format numbers of the specification: FreeType always returns a fully specified &lsquo;Paint&rsquo; structure for the &lsquo;Transform&rsquo;, &lsquo;Translate&rsquo;, &lsquo;Scale&rsquo;, &lsquo;Rotate&rsquo;, and &lsquo;Skew&rsquo; table types even though the specification has different formats depending on whether or not a center is specified, whether the scale is uniform in x and y&nbsp;direction or not, etc. Also, only non-variable format identifiers are listed in this enumeration; as soon as support for variable &lsquo;COLR&rsquo; v1 fonts is implemented, interpolation is performed dependent on axis coordinates, which are configured on the <code><a href="ft2-base_interface.html#ft_face">FT_Face</a></code> through <code><a href="ft2-multiple_masters.html#ft_set_var_design_coordinates">FT_Set_Var_Design_Coordinates</a></code>. This implies that always static, readily interpolated values are returned in the &lsquo;Paint&rsquo; structures.</p>
+<h4>since</h4>
+<p>2.11 &ndash; <strong>currently experimental only!</strong> There might be changes without retaining backward compatibility of both the API and ABI.</p>
+<hr>
+
+<h2 id="ft_colorstopiterator">FT_ColorStopIterator<a class="headerlink" href="#ft_colorstopiterator" title="Permanent link">&para;</a></h2>
+<p>Defined in FT_COLOR_H (freetype/ftcolor.h).</p>
+<div class = "codehilite"><pre><code> <span class="keyword">typedef</span> <span class="keyword">struct</span> FT_ColorStopIterator_
+ {
+ <a href="ft2-basic_types.html#ft_uint">FT_UInt</a> num_color_stops;
+ <a href="ft2-basic_types.html#ft_uint">FT_UInt</a> current_color_stop;
+
+ <a href="ft2-basic_types.html#ft_byte">FT_Byte</a>* p;
+
+ } <b>FT_ColorStopIterator</b>;
+</code></pre></div>
+
+<p>This iterator object is needed for <code><a href="ft2-layer_management.html#ft_get_colorline_stops">FT_Get_Colorline_Stops</a></code>. It keeps state while iterating over the stops of an <code><a href="ft2-layer_management.html#ft_colorline">FT_ColorLine</a></code>, representing the <code>ColorLine</code> struct of the v1 extensions to &lsquo;COLR&rsquo;, see &lsquo;<a href="https://github.com/googlefonts/colr-gradients-spec">https://github.com/googlefonts/colr-gradients-spec</a>&rsquo;.</p>
+<h4>fields</h4>
+<table class="fields">
+<tr><td class="val" id="num_color_stops">num_color_stops</td><td class="desc">
+<p>The number of color stops for the requested glyph index. Set by <code><a href="ft2-layer_management.html#ft_get_colorline_stops">FT_Get_Colorline_Stops</a></code>.</p>
+</td></tr>
+<tr><td class="val" id="current_color_stop">current_color_stop</td><td class="desc">
+<p>The current color stop. Set by <code><a href="ft2-layer_management.html#ft_get_colorline_stops">FT_Get_Colorline_Stops</a></code>.</p>
+</td></tr>
+<tr><td class="val" id="p">p</td><td class="desc">
+<p>An opaque pointer into &lsquo;COLR&rsquo; table data. The caller must set this to <code>NULL</code> before the first call of <code><a href="ft2-layer_management.html#ft_get_colorline_stops">FT_Get_Colorline_Stops</a></code>.</p>
+</td></tr>
+</table>
+
+<h4>since</h4>
+
+<p>2.11 &ndash; <strong>currently experimental only!</strong> There might be changes without retaining backward compatibility of both the API and ABI.</p>
+<hr>
+
+<h2 id="ft_colorindex">FT_ColorIndex<a class="headerlink" href="#ft_colorindex" title="Permanent link">&para;</a></h2>
+<p>Defined in FT_COLOR_H (freetype/ftcolor.h).</p>
+<div class = "codehilite"><pre><code> <span class="keyword">typedef</span> <span class="keyword">struct</span> FT_ColorIndex_
+ {
+ <a href="ft2-basic_types.html#ft_uint16">FT_UInt16</a> palette_index;
+ <a href="ft2-basic_types.html#ft_f2dot14">FT_F2Dot14</a> alpha;
+
+ } <b>FT_ColorIndex</b>;
+</code></pre></div>
+
+<p>A structure representing a <code>ColorIndex</code> value of the &lsquo;COLR&rsquo; v1 extensions, see &lsquo;<a href="https://github.com/googlefonts/colr-gradients-spec">https://github.com/googlefonts/colr-gradients-spec</a>&rsquo;.</p>
+<h4>fields</h4>
+<table class="fields">
+<tr><td class="val" id="palette_index">palette_index</td><td class="desc">
+<p>The palette index into a &lsquo;CPAL&rsquo; palette.</p>
+</td></tr>
+<tr><td class="val" id="alpha">alpha</td><td class="desc">
+<p>Alpha transparency value multiplied with the value from &lsquo;CPAL&rsquo;.</p>
+</td></tr>
+</table>
+
+<h4>since</h4>
+
+<p>2.11 &ndash; <strong>currently experimental only!</strong> There might be changes without retaining backward compatibility of both the API and ABI.</p>
+<hr>
+
+<h2 id="ft_colorstop">FT_ColorStop<a class="headerlink" href="#ft_colorstop" title="Permanent link">&para;</a></h2>
+<p>Defined in FT_COLOR_H (freetype/ftcolor.h).</p>
+<div class = "codehilite"><pre><code> <span class="keyword">typedef</span> <span class="keyword">struct</span> FT_ColorStop_
+ {
+ <a href="ft2-basic_types.html#ft_f2dot14">FT_F2Dot14</a> stop_offset;
+ <a href="ft2-layer_management.html#ft_colorindex">FT_ColorIndex</a> color;
+
+ } <b>FT_ColorStop</b>;
+</code></pre></div>
+
+<p>A structure representing a <code>ColorStop</code> value of the &lsquo;COLR&rsquo; v1 extensions, see &lsquo;<a href="https://github.com/googlefonts/colr-gradients-spec">https://github.com/googlefonts/colr-gradients-spec</a>&rsquo;.</p>
+<h4>fields</h4>
+<table class="fields">
+<tr><td class="val" id="stop_offset">stop_offset</td><td class="desc">
+<p>The stop offset between 0 and 1 along the gradient.</p>
+</td></tr>
+<tr><td class="val" id="color">color</td><td class="desc">
+<p>The color information for this stop, see <code><a href="ft2-layer_management.html#ft_colorindex">FT_ColorIndex</a></code>.</p>
+</td></tr>
+</table>
+
+<h4>since</h4>
+
+<p>2.11 &ndash; <strong>currently experimental only!</strong> There might be changes without retaining backward compatibility of both the API and ABI.</p>
+<hr>
+
+<h2 id="ft_paintextend">FT_PaintExtend<a class="headerlink" href="#ft_paintextend" title="Permanent link">&para;</a></h2>
+<p>Defined in FT_COLOR_H (freetype/ftcolor.h).</p>
+<div class = "codehilite"><pre><code> <span class="keyword">typedef</span> <span class="keyword">enum</span> FT_PaintExtend_
+ {
+ FT_COLR_PAINT_EXTEND_PAD = 0,
+ FT_COLR_PAINT_EXTEND_REPEAT = 1,
+ FT_COLR_PAINT_EXTEND_REFLECT = 2
+
+ } <b>FT_PaintExtend</b>;
+</code></pre></div>
+
+<p>An enumeration representing the &lsquo;Extend&rsquo; mode of the &lsquo;COLR&rsquo; v1 extensions, see &lsquo;<a href="https://github.com/googlefonts/colr-gradients-spec">https://github.com/googlefonts/colr-gradients-spec</a>&rsquo;. It describes how the gradient fill continues at the other boundaries.</p>
+<h4>since</h4>
+
+<p>2.11 &ndash; <strong>currently experimental only!</strong> There might be changes without retaining backward compatibility of both the API and ABI.</p>
+<hr>
+
+<h2 id="ft_colorline">FT_ColorLine<a class="headerlink" href="#ft_colorline" title="Permanent link">&para;</a></h2>
+<p>Defined in FT_COLOR_H (freetype/ftcolor.h).</p>
+<div class = "codehilite"><pre><code> <span class="keyword">typedef</span> <span class="keyword">struct</span> FT_ColorLine_
+ {
+ <a href="ft2-layer_management.html#ft_paintextend">FT_PaintExtend</a> extend;
+ <a href="ft2-layer_management.html#ft_colorstopiterator">FT_ColorStopIterator</a> color_stop_iterator;
+
+ } <b>FT_ColorLine</b>;
+</code></pre></div>
+
+<p>A structure representing a <code>ColorLine</code> value of the &lsquo;COLR&rsquo; v1 extensions, see &lsquo;<a href="https://github.com/googlefonts/colr-gradients-spec">https://github.com/googlefonts/colr-gradients-spec</a>&rsquo;. It describes a list of color stops along the defined gradient.</p>
+<h4>fields</h4>
+<table class="fields">
+<tr><td class="val" id="extend">extend</td><td class="desc">
+<p>The extend mode at the outer boundaries, see <code><a href="ft2-layer_management.html#ft_paintextend">FT_PaintExtend</a></code>.</p>
+</td></tr>
+<tr><td class="val" id="color_stop_iterator">color_stop_iterator</td><td class="desc">
+<p>The <code><a href="ft2-layer_management.html#ft_colorstopiterator">FT_ColorStopIterator</a></code> used to enumerate and retrieve the actual <code><a href="ft2-layer_management.html#ft_colorstop">FT_ColorStop</a></code>'s.</p>
+</td></tr>
+</table>
+
+<h4>since</h4>
+
+<p>2.11 &ndash; <strong>currently experimental only!</strong> There might be changes without retaining backward compatibility of both the API and ABI.</p>
+<hr>
+
+<h2 id="ft_affine23">FT_Affine23<a class="headerlink" href="#ft_affine23" title="Permanent link">&para;</a></h2>
+<p>Defined in FT_COLOR_H (freetype/ftcolor.h).</p>
+<div class = "codehilite"><pre><code> <span class="keyword">typedef</span> <span class="keyword">struct</span> FT_Affine_23_
+ {
+ <a href="ft2-basic_types.html#ft_fixed">FT_Fixed</a> xx, xy, dx;
+ <a href="ft2-basic_types.html#ft_fixed">FT_Fixed</a> yx, yy, dy;
+
+ } <b>FT_Affine23</b>;
+</code></pre></div>
+
+<p>A structure used to store a 2x3 matrix. Coefficients are in 16.16 fixed-point format. The computation performed is
+<div class="highlight"><pre><span></span><code> x&#39; = x*xx + y*xy + dx
+ y&#39; = x*yx + y*yy + dy
+</code></pre></div></p>
+<h4>fields</h4>
+<table class="fields">
+<tr><td class="val" id="xx">xx</td><td class="desc">
+<p>Matrix coefficient.</p>
+</td></tr>
+<tr><td class="val" id="xy">xy</td><td class="desc">
+<p>Matrix coefficient.</p>
+</td></tr>
+<tr><td class="val" id="dx">dx</td><td class="desc">
+<p>x translation.</p>
+</td></tr>
+<tr><td class="val" id="yx">yx</td><td class="desc">
+<p>Matrix coefficient.</p>
+</td></tr>
+<tr><td class="val" id="yy">yy</td><td class="desc">
+<p>Matrix coefficient.</p>
+</td></tr>
+<tr><td class="val" id="dy">dy</td><td class="desc">
+<p>y translation.</p>
+</td></tr>
+</table>
+
+<h4>since</h4>
+
+<p>2.11 &ndash; <strong>currently experimental only!</strong> There might be changes without retaining backward compatibility of both the API and ABI.</p>
+<hr>
+
+<h2 id="ft_composite_mode">FT_Composite_Mode<a class="headerlink" href="#ft_composite_mode" title="Permanent link">&para;</a></h2>
+<p>Defined in FT_COLOR_H (freetype/ftcolor.h).</p>
+<div class = "codehilite"><pre><code> <span class="keyword">typedef</span> <span class="keyword">enum</span> FT_Composite_Mode_
+ {
+ FT_COLR_COMPOSITE_CLEAR = 0,
+ FT_COLR_COMPOSITE_SRC = 1,
+ FT_COLR_COMPOSITE_DEST = 2,
+ FT_COLR_COMPOSITE_SRC_OVER = 3,
+ FT_COLR_COMPOSITE_DEST_OVER = 4,
+ FT_COLR_COMPOSITE_SRC_IN = 5,
+ FT_COLR_COMPOSITE_DEST_IN = 6,
+ FT_COLR_COMPOSITE_SRC_OUT = 7,
+ FT_COLR_COMPOSITE_DEST_OUT = 8,
+ FT_COLR_COMPOSITE_SRC_ATOP = 9,
+ FT_COLR_COMPOSITE_DEST_ATOP = 10,
+ FT_COLR_COMPOSITE_XOR = 11,
+ FT_COLR_COMPOSITE_PLUS = 12,
+ FT_COLR_COMPOSITE_SCREEN = 13,
+ FT_COLR_COMPOSITE_OVERLAY = 14,
+ FT_COLR_COMPOSITE_DARKEN = 15,
+ FT_COLR_COMPOSITE_LIGHTEN = 16,
+ FT_COLR_COMPOSITE_COLOR_DODGE = 17,
+ FT_COLR_COMPOSITE_COLOR_BURN = 18,
+ FT_COLR_COMPOSITE_HARD_LIGHT = 19,
+ FT_COLR_COMPOSITE_SOFT_LIGHT = 20,
+ FT_COLR_COMPOSITE_DIFFERENCE = 21,
+ FT_COLR_COMPOSITE_EXCLUSION = 22,
+ FT_COLR_COMPOSITE_MULTIPLY = 23,
+ FT_COLR_COMPOSITE_HSL_HUE = 24,
+ FT_COLR_COMPOSITE_HSL_SATURATION = 25,
+ FT_COLR_COMPOSITE_HSL_COLOR = 26,
+ FT_COLR_COMPOSITE_HSL_LUMINOSITY = 27,
+ FT_COLR_COMPOSITE_MAX = 28
+
+ } <b>FT_Composite_Mode</b>;
+</code></pre></div>
+
+<p>An enumeration listing the &lsquo;COLR&rsquo; v1 composite modes used in <code><a href="ft2-layer_management.html#ft_paintcomposite">FT_PaintComposite</a></code>. For more details on each paint mode, see &lsquo;<a href="https://www.w3.org/TR/compositing-1/#porterduffcompositingoperators">https://www.w3.org/TR/compositing-1/#porterduffcompositingoperators</a>&rsquo;.</p>
+<h4>since</h4>
+
+<p>2.11 &ndash; <strong>currently experimental only!</strong> There might be changes without retaining backward compatibility of both the API and ABI.</p>
+<hr>
+
+<h2 id="ft_opaquepaint">FT_OpaquePaint<a class="headerlink" href="#ft_opaquepaint" title="Permanent link">&para;</a></h2>
+<p>Defined in FT_COLOR_H (freetype/ftcolor.h).</p>
+<div class = "codehilite"><pre><code> <span class="keyword">typedef</span> <span class="keyword">struct</span> FT_Opaque_Paint_
+ {
+ <a href="ft2-basic_types.html#ft_byte">FT_Byte</a>* p;
+ <a href="ft2-basic_types.html#ft_bool">FT_Bool</a> insert_root_transform;
+ } <b>FT_OpaquePaint</b>;
+</code></pre></div>
+
+<p>A structure representing an offset to a <code>Paint</code> value stored in any of the paint tables of a &lsquo;COLR&rsquo; v1 font. Compare Offset&lt;24&gt; there. When &lsquo;COLR&rsquo; v1 paint tables represented by FreeType objects such as <code><a href="ft2-layer_management.html#ft_paintcolrlayers">FT_PaintColrLayers</a></code>, <code><a href="ft2-layer_management.html#ft_paintcomposite">FT_PaintComposite</a></code>, or <code><a href="ft2-layer_management.html#ft_painttransform">FT_PaintTransform</a></code> reference downstream nested paint tables, we do not immediately retrieve them but encapsulate their location in this type. Use <code><a href="ft2-layer_management.html#ft_get_paint">FT_Get_Paint</a></code> to retrieve the actual <code><a href="ft2-layer_management.html#ft_colr_paint">FT_COLR_Paint</a></code> object that describes the details of the respective paint table.</p>
+<h4>fields</h4>
+<table class="fields">
+<tr><td class="val" id="p">p</td><td class="desc">
+<p>An internal offset to a Paint table, needs to be set to NULL before passing this struct as an argument to <code><a href="ft2-layer_management.html#ft_get_paint">FT_Get_Paint</a></code>.</p>
+</td></tr>
+<tr><td class="val" id="insert_root_transform">insert_root_transform</td><td class="desc">
+<p>An internal boolean to track whether an initial root transform is to be provided. Do not set this value.</p>
+</td></tr>
+</table>
+
+<h4>since</h4>
+
+<p>2.11 &ndash; <strong>currently experimental only!</strong> There might be changes without retaining backward compatibility of both the API and ABI.</p>
+<hr>
+
+<h2 id="ft_paintcolrlayers">FT_PaintColrLayers<a class="headerlink" href="#ft_paintcolrlayers" title="Permanent link">&para;</a></h2>
+<p>Defined in FT_COLOR_H (freetype/ftcolor.h).</p>
+<div class = "codehilite"><pre><code> <span class="keyword">typedef</span> <span class="keyword">struct</span> FT_PaintColrLayers_
+ {
+ <a href="ft2-layer_management.html#ft_layeriterator">FT_LayerIterator</a> layer_iterator;
+
+ } <b>FT_PaintColrLayers</b>;
+</code></pre></div>
+
+<p>A structure representing a <code>PaintColrLayers</code> table of a &lsquo;COLR&rsquo; v1 font. This table describes a set of layers that are to be composited with composite mode <code>FT_COLR_COMPOSITE_SRC_OVER</code>. The return value of this function is an <code><a href="ft2-layer_management.html#ft_layeriterator">FT_LayerIterator</a></code> initialized so that it can be used with <code><a href="ft2-layer_management.html#ft_get_paint_layers">FT_Get_Paint_Layers</a></code> to retrieve the <code><a href="ft2-layer_management.html#ft_opaquepaint">FT_OpaquePaint</a></code> objects as references to each layer.</p>
+<h4>fields</h4>
+<table class="fields">
+<tr><td class="val" id="layer_iterator">layer_iterator</td><td class="desc">
+<p>The layer iterator that describes the layers of this paint.</p>
+</td></tr>
+</table>
+
+<h4>since</h4>
+
+<p>2.11 &ndash; <strong>currently experimental only!</strong> There might be changes without retaining backward compatibility of both the API and ABI.</p>
+<hr>
+
+<h2 id="ft_paintsolid">FT_PaintSolid<a class="headerlink" href="#ft_paintsolid" title="Permanent link">&para;</a></h2>
+<p>Defined in FT_COLOR_H (freetype/ftcolor.h).</p>
+<div class = "codehilite"><pre><code> <span class="keyword">typedef</span> <span class="keyword">struct</span> FT_PaintSolid_
+ {
+ <a href="ft2-layer_management.html#ft_colorindex">FT_ColorIndex</a> color;
+
+ } <b>FT_PaintSolid</b>;
+</code></pre></div>
+
+<p>A structure representing a <code>PaintSolid</code> value of the &lsquo;COLR&rsquo; v1 extensions, see &lsquo;<a href="https://github.com/googlefonts/colr-gradients-spec">https://github.com/googlefonts/colr-gradients-spec</a>&rsquo;. Using a <code>PaintSolid</code> value means that the glyph layer filled with this paint is solid-colored and does not contain a gradient.</p>
+<h4>fields</h4>
+<table class="fields">
+<tr><td class="val" id="color">color</td><td class="desc">
+<p>The color information for this solid paint, see <code><a href="ft2-layer_management.html#ft_colorindex">FT_ColorIndex</a></code>.</p>
+</td></tr>
+</table>
+
+<h4>since</h4>
+
+<p>2.11 &ndash; <strong>currently experimental only!</strong> There might be changes without retaining backward compatibility of both the API and ABI.</p>
+<hr>
+
+<h2 id="ft_paintlineargradient">FT_PaintLinearGradient<a class="headerlink" href="#ft_paintlineargradient" title="Permanent link">&para;</a></h2>
+<p>Defined in FT_COLOR_H (freetype/ftcolor.h).</p>
+<div class = "codehilite"><pre><code> <span class="keyword">typedef</span> <span class="keyword">struct</span> FT_PaintLinearGradient_
+ {
+ <a href="ft2-layer_management.html#ft_colorline">FT_ColorLine</a> colorline;
+
+ /* TODO: Potentially expose those as x0, y0 etc. */
+ <a href="ft2-basic_types.html#ft_vector">FT_Vector</a> p0;
+ <a href="ft2-basic_types.html#ft_vector">FT_Vector</a> p1;
+ <a href="ft2-basic_types.html#ft_vector">FT_Vector</a> p2;
+
+ } <b>FT_PaintLinearGradient</b>;
+</code></pre></div>
+
+<p>A structure representing a <code>PaintLinearGradient</code> value of the &lsquo;COLR&rsquo; v1 extensions, see &lsquo;<a href="https://github.com/googlefonts/colr-gradients-spec">https://github.com/googlefonts/colr-gradients-spec</a>&rsquo;. The glyph layer filled with this paint is drawn filled with a linear gradient.</p>
+<h4>fields</h4>
+<table class="fields">
+<tr><td class="val" id="colorline">colorline</td><td class="desc">
+<p>The <code><a href="ft2-layer_management.html#ft_colorline">FT_ColorLine</a></code> information for this paint, i.e., the list of color stops along the gradient.</p>
+</td></tr>
+<tr><td class="val" id="p0">p0</td><td class="desc">
+<p>The starting point of the gradient definition in font units represented as a 16.16 fixed-point <code>FT_Vector</code>.</p>
+</td></tr>
+<tr><td class="val" id="p1">p1</td><td class="desc">
+<p>The end point of the gradient definition in font units represented as a 16.16 fixed-point <code>FT_Vector</code>.</p>
+</td></tr>
+<tr><td class="val" id="p2">p2</td><td class="desc">
+<p>Optional point&nbsp;p2 to rotate the gradient in font units represented as a 16.16 fixed-point <code>FT_Vector</code>. Otherwise equal to&nbsp;p0.</p>
+</td></tr>
+</table>
+
+<h4>since</h4>
+
+<p>2.11 &ndash; <strong>currently experimental only!</strong> There might be changes without retaining backward compatibility of both the API and ABI.</p>
+<hr>
+
+<h2 id="ft_paintradialgradient">FT_PaintRadialGradient<a class="headerlink" href="#ft_paintradialgradient" title="Permanent link">&para;</a></h2>
+<p>Defined in FT_COLOR_H (freetype/ftcolor.h).</p>
+<div class = "codehilite"><pre><code> <span class="keyword">typedef</span> <span class="keyword">struct</span> FT_PaintRadialGradient_
+ {
+ <a href="ft2-layer_management.html#ft_colorline">FT_ColorLine</a> colorline;
+
+ <a href="ft2-basic_types.html#ft_vector">FT_Vector</a> c0;
+ <a href="ft2-basic_types.html#ft_pos">FT_Pos</a> r0;
+ <a href="ft2-basic_types.html#ft_vector">FT_Vector</a> c1;
+ <a href="ft2-basic_types.html#ft_pos">FT_Pos</a> r1;
+
+ } <b>FT_PaintRadialGradient</b>;
+</code></pre></div>
+
+<p>A structure representing a <code>PaintRadialGradient</code> value of the &lsquo;COLR&rsquo; v1 extensions, see &lsquo;<a href="https://github.com/googlefonts/colr-gradients-spec">https://github.com/googlefonts/colr-gradients-spec</a>&rsquo;. The glyph layer filled with this paint is drawn filled filled with a radial gradient.</p>
+<h4>fields</h4>
+<table class="fields">
+<tr><td class="val" id="colorline">colorline</td><td class="desc">
+<p>The <code><a href="ft2-layer_management.html#ft_colorline">FT_ColorLine</a></code> information for this paint, i.e., the list of color stops along the gradient.</p>
+</td></tr>
+<tr><td class="val" id="c0">c0</td><td class="desc">
+<p>The center of the starting point of the radial gradient in font units represented as a 16.16 fixed-point <code>FT_Vector</code>.</p>
+</td></tr>
+<tr><td class="val" id="r0">r0</td><td class="desc">
+<p>The radius of the starting circle of the radial gradient in font units represented as a 16.16 fixed-point value.</p>
+</td></tr>
+<tr><td class="val" id="c1">c1</td><td class="desc">
+<p>The center of the end point of the radial gradient in font units represented as a 16.16 fixed-point <code>FT_Vector</code>.</p>
+</td></tr>
+<tr><td class="val" id="r1">r1</td><td class="desc">
+<p>The radius of the end circle of the radial gradient in font units represented as a 16.16 fixed-point value.</p>
+</td></tr>
+</table>
+
+<h4>since</h4>
+
+<p>2.11 &ndash; <strong>currently experimental only!</strong> There might be changes without retaining backward compatibility of both the API and ABI.</p>
+<hr>
+
+<h2 id="ft_paintsweepgradient">FT_PaintSweepGradient<a class="headerlink" href="#ft_paintsweepgradient" title="Permanent link">&para;</a></h2>
+<p>Defined in FT_COLOR_H (freetype/ftcolor.h).</p>
+<div class = "codehilite"><pre><code> <span class="keyword">typedef</span> <span class="keyword">struct</span> FT_PaintSweepGradient_
+ {
+ <a href="ft2-layer_management.html#ft_colorline">FT_ColorLine</a> colorline;
+
+ <a href="ft2-basic_types.html#ft_vector">FT_Vector</a> center;
+ <a href="ft2-basic_types.html#ft_fixed">FT_Fixed</a> start_angle;
+ <a href="ft2-basic_types.html#ft_fixed">FT_Fixed</a> end_angle;
+
+ } <b>FT_PaintSweepGradient</b>;
+</code></pre></div>
+
+<p>A structure representing a <code>PaintSweepGradient</code> value of the &lsquo;COLR&rsquo; v1 extensions, see &lsquo;<a href="https://github.com/googlefonts/colr-gradients-spec">https://github.com/googlefonts/colr-gradients-spec</a>&rsquo;. The glyph layer filled with this paint is drawn filled with a sweep gradient from <code>start_angle</code> to <code>end_angle</code>.</p>
+<h4>fields</h4>
+<table class="fields">
+<tr><td class="val" id="colorline">colorline</td><td class="desc">
+<p>The <code><a href="ft2-layer_management.html#ft_colorline">FT_ColorLine</a></code> information for this paint, i.e., the list of color stops along the gradient.</p>
+</td></tr>
+<tr><td class="val" id="center">center</td><td class="desc">
+<p>The center of the sweep gradient in font units represented as a vector of 16.16 fixed-point values.</p>
+</td></tr>
+<tr><td class="val" id="start_angle">start_angle</td><td class="desc">
+<p>The start angle of the sweep gradient in 16.16 fixed-point format specifying degrees divided by 180.0 (as in the spec). Multiply by 180.0f to receive degrees value. Values are given counter-clockwise, starting from the (positive) y&nbsp;axis.</p>
+</td></tr>
+<tr><td class="val" id="end_angle">end_angle</td><td class="desc">
+<p>The end angle of the sweep gradient in 16.16 fixed-point format specifying degrees divided by 180.0 (as in the spec). Multiply by 180.0f to receive degrees value. Values are given counter-clockwise, starting from the (positive) y&nbsp;axis.</p>
+</td></tr>
+</table>
+
+<h4>since</h4>
+
+<p>2.11 &ndash; <strong>currently experimental only!</strong> There might be changes without retaining backward compatibility of both the API and ABI.</p>
+<hr>
+
+<h2 id="ft_paintglyph">FT_PaintGlyph<a class="headerlink" href="#ft_paintglyph" title="Permanent link">&para;</a></h2>
+<p>Defined in FT_COLOR_H (freetype/ftcolor.h).</p>
+<div class = "codehilite"><pre><code> <span class="keyword">typedef</span> <span class="keyword">struct</span> FT_PaintGlyph_
+ {
+ <a href="ft2-layer_management.html#ft_opaquepaint">FT_OpaquePaint</a> paint;
+ <a href="ft2-basic_types.html#ft_uint">FT_UInt</a> glyphID;
+
+ } <b>FT_PaintGlyph</b>;
+</code></pre></div>
+
+<p>A structure representing a &lsquo;COLR&rsquo; v1 <code>PaintGlyph</code> paint table.</p>
+<h4>fields</h4>
+<table class="fields">
+<tr><td class="val" id="paint">paint</td><td class="desc">
+<p>An opaque paint object pointing to a <code>Paint</code> table that serves as the fill for the glyph ID.</p>
+</td></tr>
+<tr><td class="val" id="glyphid">glyphID</td><td class="desc">
+<p>The glyph ID from the &lsquo;glyf&rsquo; table, which serves as the contour information that is filled with paint.</p>
+</td></tr>
+</table>
+
+<h4>since</h4>
+
+<p>2.11 &ndash; <strong>currently experimental only!</strong> There might be changes without retaining backward compatibility of both the API and ABI.</p>
+<hr>
+
+<h2 id="ft_paintcolrglyph">FT_PaintColrGlyph<a class="headerlink" href="#ft_paintcolrglyph" title="Permanent link">&para;</a></h2>
+<p>Defined in FT_COLOR_H (freetype/ftcolor.h).</p>
+<div class = "codehilite"><pre><code> <span class="keyword">typedef</span> <span class="keyword">struct</span> FT_PaintColrGlyph_
+ {
+ <a href="ft2-basic_types.html#ft_uint">FT_UInt</a> glyphID;
+
+ } <b>FT_PaintColrGlyph</b>;
+</code></pre></div>
+
+<p>A structure representing a &lsquo;COLR&rsquo; v1 <code>PaintColorGlyph</code> paint table.</p>
+<h4>fields</h4>
+<table class="fields">
+<tr><td class="val" id="glyphid">glyphID</td><td class="desc">
+<p>The glyph ID from the <code>BaseGlyphV1List</code> table that is drawn for this paint.</p>
+</td></tr>
+</table>
+
+<h4>since</h4>
+
+<p>2.11 &ndash; <strong>currently experimental only!</strong> There might be changes without retaining backward compatibility of both the API and ABI.</p>
+<hr>
+
+<h2 id="ft_painttransform">FT_PaintTransform<a class="headerlink" href="#ft_painttransform" title="Permanent link">&para;</a></h2>
+<p>Defined in FT_COLOR_H (freetype/ftcolor.h).</p>
+<div class = "codehilite"><pre><code> <span class="keyword">typedef</span> <span class="keyword">struct</span> FT_PaintTransform_
+ {
+ <a href="ft2-layer_management.html#ft_opaquepaint">FT_OpaquePaint</a> paint;
+ <a href="ft2-layer_management.html#ft_affine23">FT_Affine23</a> affine;
+
+ } <b>FT_PaintTransform</b>;
+</code></pre></div>
+
+<p>A structure representing a &lsquo;COLR&rsquo; v1 <code>PaintTransform</code> paint table.</p>
+<h4>fields</h4>
+<table class="fields">
+<tr><td class="val" id="paint">paint</td><td class="desc">
+<p>An opaque paint that is subject to being transformed.</p>
+</td></tr>
+<tr><td class="val" id="affine">affine</td><td class="desc">
+<p>A 2x3 transformation matrix in <code><a href="ft2-layer_management.html#ft_affine23">FT_Affine23</a></code> format containing 16.16 fixed-point values.</p>
+</td></tr>
+</table>
+
+<h4>since</h4>
+
+<p>2.11 &ndash; <strong>currently experimental only!</strong> There might be changes without retaining backward compatibility of both the API and ABI.</p>
+<hr>
+
+<h2 id="ft_painttranslate">FT_PaintTranslate<a class="headerlink" href="#ft_painttranslate" title="Permanent link">&para;</a></h2>
+<p>Defined in FT_COLOR_H (freetype/ftcolor.h).</p>
+<div class = "codehilite"><pre><code> <span class="keyword">typedef</span> <span class="keyword">struct</span> FT_PaintTranslate_
+ {
+ <a href="ft2-layer_management.html#ft_opaquepaint">FT_OpaquePaint</a> paint;
+
+ <a href="ft2-basic_types.html#ft_fixed">FT_Fixed</a> dx;
+ <a href="ft2-basic_types.html#ft_fixed">FT_Fixed</a> dy;
+
+ } <b>FT_PaintTranslate</b>;
+</code></pre></div>
+
+<p>A structure representing a &lsquo;COLR&rsquo; v1 <code>PaintTranslate</code> paint table. Used for translating downstream paints by a given x and y&nbsp;delta.</p>
+<h4>fields</h4>
+<table class="fields">
+<tr><td class="val" id="paint">paint</td><td class="desc">
+<p>An <code><a href="ft2-layer_management.html#ft_opaquepaint">FT_OpaquePaint</a></code> object referencing the paint that is to be rotated.</p>
+</td></tr>
+<tr><td class="val" id="dx">dx</td><td class="desc">
+<p>Translation in x&nbsp;direction in font units represented as a 16.16 fixed-point value.</p>
+</td></tr>
+<tr><td class="val" id="dy">dy</td><td class="desc">
+<p>Translation in y&nbsp;direction in font units represented as a 16.16 fixed-point value.</p>
+</td></tr>
+</table>
+
+<h4>since</h4>
+
+<p>2.11 &ndash; <strong>currently experimental only!</strong> There might be changes without retaining backward compatibility of both the API and ABI.</p>
+<hr>
+
+<h2 id="ft_paintscale">FT_PaintScale<a class="headerlink" href="#ft_paintscale" title="Permanent link">&para;</a></h2>
+<p>Defined in FT_COLOR_H (freetype/ftcolor.h).</p>
+<div class = "codehilite"><pre><code> <span class="keyword">typedef</span> <span class="keyword">struct</span> FT_PaintScale_
+ {
+ <a href="ft2-layer_management.html#ft_opaquepaint">FT_OpaquePaint</a> paint;
+
+ <a href="ft2-basic_types.html#ft_fixed">FT_Fixed</a> scale_x;
+ <a href="ft2-basic_types.html#ft_fixed">FT_Fixed</a> scale_y;
+
+ <a href="ft2-basic_types.html#ft_fixed">FT_Fixed</a> center_x;
+ <a href="ft2-basic_types.html#ft_fixed">FT_Fixed</a> center_y;
+
+ } <b>FT_PaintScale</b>;
+</code></pre></div>
+
+<p>A structure representing all of the &lsquo;COLR&rsquo; v1 &lsquo;PaintScale*&rsquo; paint tables. Used for scaling downstream paints by a given x and y&nbsp;scale, with a given center. This structure is used for all &lsquo;PaintScale*&rsquo; types that are part of specification; fields of this structure are filled accordingly. If there is a center, the center values are set, otherwise they are set to the zero coordinate. If the source font file has &lsquo;PaintScaleUniform*&rsquo; set, the scale values are set accordingly to the same value.</p>
+<h4>fields</h4>
+<table class="fields">
+<tr><td class="val" id="paint">paint</td><td class="desc">
+<p>An <code><a href="ft2-layer_management.html#ft_opaquepaint">FT_OpaquePaint</a></code> object referencing the paint that is to be scaled.</p>
+</td></tr>
+<tr><td class="val" id="scale_x">scale_x</td><td class="desc">
+<p>Scale factor in x&nbsp;direction represented as a 16.16 fixed-point value.</p>
+</td></tr>
+<tr><td class="val" id="scale_y">scale_y</td><td class="desc">
+<p>Scale factor in y&nbsp;direction represented as a 16.16 fixed-point value.</p>
+</td></tr>
+<tr><td class="val" id="center_x">center_x</td><td class="desc">
+<p>x&nbsp;coordinate of center point to scale from represented as a 16.16 fixed-point value.</p>
+</td></tr>
+<tr><td class="val" id="center_y">center_y</td><td class="desc">
+<p>y&nbsp;coordinate of center point to scale from represented as a 16.16 fixed-point value.</p>
+</td></tr>
+</table>
+
+<h4>since</h4>
+
+<p>2.11 &ndash; <strong>currently experimental only!</strong> There might be changes without retaining backward-compatibility of both the API and ABI.</p>
+<hr>
+
+<h2 id="ft_paintrotate">FT_PaintRotate<a class="headerlink" href="#ft_paintrotate" title="Permanent link">&para;</a></h2>
+<p>Defined in FT_COLOR_H (freetype/ftcolor.h).</p>
+<div class = "codehilite"><pre><code> <span class="keyword">typedef</span> <span class="keyword">struct</span> FT_PaintRotate_
+ {
+ <a href="ft2-layer_management.html#ft_opaquepaint">FT_OpaquePaint</a> paint;
+
+ <a href="ft2-basic_types.html#ft_fixed">FT_Fixed</a> angle;
+
+ <a href="ft2-basic_types.html#ft_fixed">FT_Fixed</a> center_x;
+ <a href="ft2-basic_types.html#ft_fixed">FT_Fixed</a> center_y;
+
+ } <b>FT_PaintRotate</b>;
+</code></pre></div>
+
+<p>A structure representing a &lsquo;COLR&rsquo; v1 <code>PaintRotate</code> paint table. Used for rotating downstream paints with a given center and angle.</p>
+<h4>fields</h4>
+<table class="fields">
+<tr><td class="val" id="paint">paint</td><td class="desc">
+<p>An <code><a href="ft2-layer_management.html#ft_opaquepaint">FT_OpaquePaint</a></code> object referencing the paint that is to be rotated.</p>
+</td></tr>
+<tr><td class="val" id="angle">angle</td><td class="desc">
+<p>The rotation angle that is to be applied in degrees divided by 180.0 (as in the spec) represented as a 16.16 fixed-point value. Multiply by 180.0f to receive degrees value.</p>
+</td></tr>
+<tr><td class="val" id="center_x">center_x</td><td class="desc">
+<p>The x&nbsp;coordinate of the pivot point of the rotation in font units) represented as a 16.16 fixed-point value.</p>
+</td></tr>
+<tr><td class="val" id="center_y">center_y</td><td class="desc">
+<p>The y&nbsp;coordinate of the pivot point of the rotation in font units represented as a 16.16 fixed-point value.</p>
+</td></tr>
+</table>
+
+<h4>since</h4>
+
+<p>2.11 &ndash; <strong>currently experimental only!</strong> There might be changes without retaining backward compatibility of both the API and ABI.</p>
+<hr>
+
+<h2 id="ft_paintskew">FT_PaintSkew<a class="headerlink" href="#ft_paintskew" title="Permanent link">&para;</a></h2>
+<p>Defined in FT_COLOR_H (freetype/ftcolor.h).</p>
+<div class = "codehilite"><pre><code> <span class="keyword">typedef</span> <span class="keyword">struct</span> FT_PaintSkew_
+ {
+ <a href="ft2-layer_management.html#ft_opaquepaint">FT_OpaquePaint</a> paint;
+
+ <a href="ft2-basic_types.html#ft_fixed">FT_Fixed</a> x_skew_angle;
+ <a href="ft2-basic_types.html#ft_fixed">FT_Fixed</a> y_skew_angle;
+
+ <a href="ft2-basic_types.html#ft_fixed">FT_Fixed</a> center_x;
+ <a href="ft2-basic_types.html#ft_fixed">FT_Fixed</a> center_y;
+
+ } <b>FT_PaintSkew</b>;
+</code></pre></div>
+
+<p>A structure representing a &lsquo;COLR&rsquo; v1 <code>PaintSkew</code> paint table. Used for skewing or shearing downstream paints by a given center and angle.</p>
+<h4>fields</h4>
+<table class="fields">
+<tr><td class="val" id="paint">paint</td><td class="desc">
+<p>An <code><a href="ft2-layer_management.html#ft_opaquepaint">FT_OpaquePaint</a></code> object referencing the paint that is to be skewed.</p>
+</td></tr>
+<tr><td class="val" id="x_skew_angle">x_skew_angle</td><td class="desc">
+<p>The skewing angle in x&nbsp;direction in degrees divided by 180.0 (as in the spec) represented as a 16.16 fixed-point value. Multiply by 180.0f to receive degrees.</p>
+</td></tr>
+<tr><td class="val" id="y_skew_angle">y_skew_angle</td><td class="desc">
+<p>The skewing angle in y&nbsp;direction in degrees divided by 180.0 (as in the spec) represented as a 16.16 fixed-point value. Multiply by 180.0f to receive degrees.</p>
+</td></tr>
+<tr><td class="val" id="center_x">center_x</td><td class="desc">
+<p>The x&nbsp;coordinate of the pivot point of the skew in font units represented as a 16.16 fixed-point value.</p>
+</td></tr>
+<tr><td class="val" id="center_y">center_y</td><td class="desc">
+<p>The y&nbsp;coordinate of the pivot point of the skew in font units represented as a 16.16 fixed-point value.</p>
+</td></tr>
+</table>
+
+<h4>since</h4>
+
+<p>2.11 &ndash; <strong>currently experimental only!</strong> There might be changes without retaining backward compatibility of both the API and ABI.</p>
+<hr>
+
+<h2 id="ft_paintcomposite">FT_PaintComposite<a class="headerlink" href="#ft_paintcomposite" title="Permanent link">&para;</a></h2>
+<p>Defined in FT_COLOR_H (freetype/ftcolor.h).</p>
+<div class = "codehilite"><pre><code> <span class="keyword">typedef</span> <span class="keyword">struct</span> FT_PaintComposite_
+ {
+ <a href="ft2-layer_management.html#ft_opaquepaint">FT_OpaquePaint</a> source_paint;
+ <a href="ft2-layer_management.html#ft_composite_mode">FT_Composite_Mode</a> composite_mode;
+ <a href="ft2-layer_management.html#ft_opaquepaint">FT_OpaquePaint</a> backdrop_paint;
+
+ } <b>FT_PaintComposite</b>;
+</code></pre></div>
+
+<p>A structure representing a &lsquo;COLR'v1 <code>PaintComposite</code> paint table. Used for compositing two paints in a 'COLR&rsquo; v1 directed acycling graph.</p>
+<h4>fields</h4>
+<table class="fields">
+<tr><td class="val" id="source_paint">source_paint</td><td class="desc">
+<p>An <code><a href="ft2-layer_management.html#ft_opaquepaint">FT_OpaquePaint</a></code> object referencing the source that is to be composited.</p>
+</td></tr>
+<tr><td class="val" id="composite_mode">composite_mode</td><td class="desc">
+<p>An <code><a href="ft2-layer_management.html#ft_composite_mode">FT_Composite_Mode</a></code> enum value determining the composition operation.</p>
+</td></tr>
+<tr><td class="val" id="backdrop_paint">backdrop_paint</td><td class="desc">
+<p>An <code><a href="ft2-layer_management.html#ft_opaquepaint">FT_OpaquePaint</a></code> object referencing the backdrop paint that <code>source_paint</code> is composited onto.</p>
+</td></tr>
+</table>
+
+<h4>since</h4>
+
+<p>2.11 &ndash; <strong>currently experimental only!</strong> There might be changes without retaining backward compatibility of both the API and ABI.</p>
+<hr>
+
+<h2 id="ft_colr_paint">FT_COLR_Paint<a class="headerlink" href="#ft_colr_paint" title="Permanent link">&para;</a></h2>
+<p>Defined in FT_COLOR_H (freetype/ftcolor.h).</p>
+<div class = "codehilite"><pre><code> <span class="keyword">typedef</span> <span class="keyword">struct</span> FT_COLR_Paint_
+ {
+ <a href="ft2-layer_management.html#ft_paintformat">FT_PaintFormat</a> format;
+
+ <span class="keyword">union</span>
+ {
+ <a href="ft2-layer_management.html#ft_paintcolrlayers">FT_PaintColrLayers</a> colr_layers;
+ <a href="ft2-layer_management.html#ft_paintglyph">FT_PaintGlyph</a> glyph;
+ <a href="ft2-layer_management.html#ft_paintsolid">FT_PaintSolid</a> solid;
+ <a href="ft2-layer_management.html#ft_paintlineargradient">FT_PaintLinearGradient</a> linear_gradient;
+ <a href="ft2-layer_management.html#ft_paintradialgradient">FT_PaintRadialGradient</a> radial_gradient;
+ <a href="ft2-layer_management.html#ft_paintsweepgradient">FT_PaintSweepGradient</a> sweep_gradient;
+ <a href="ft2-layer_management.html#ft_painttransform">FT_PaintTransform</a> transform;
+ <a href="ft2-layer_management.html#ft_painttranslate">FT_PaintTranslate</a> translate;
+ <a href="ft2-layer_management.html#ft_paintscale">FT_PaintScale</a> scale;
+ <a href="ft2-layer_management.html#ft_paintrotate">FT_PaintRotate</a> rotate;
+ <a href="ft2-layer_management.html#ft_paintskew">FT_PaintSkew</a> skew;
+ <a href="ft2-layer_management.html#ft_paintcomposite">FT_PaintComposite</a> composite;
+ <a href="ft2-layer_management.html#ft_paintcolrglyph">FT_PaintColrGlyph</a> colr_glyph;
+
+ } u;
+
+ } <b>FT_COLR_Paint</b>;
+</code></pre></div>
+
+<p>A union object representing format and details of a paint table of a &lsquo;COLR&rsquo; v1 font, see &lsquo;<a href="https://github.com/googlefonts/colr-gradients-spec">https://github.com/googlefonts/colr-gradients-spec</a>&rsquo;. Use <code><a href="ft2-layer_management.html#ft_get_paint">FT_Get_Paint</a></code> to retrieve a <code><a href="ft2-layer_management.html#ft_colr_paint">FT_COLR_Paint</a></code> for an <code><a href="ft2-layer_management.html#ft_opaquepaint">FT_OpaquePaint</a></code> object.</p>
+<h4>fields</h4>
+<table class="fields">
+<tr><td class="val" id="format">format</td><td class="desc">
+<p>The gradient format for this Paint structure.</p>
+</td></tr>
+<tr><td class="val" id="u">u</td><td class="desc">
+<p>Union of all paint table types:</p>
+<ul>
+<li><code><a href="ft2-layer_management.html#ft_paintcolrlayers">FT_PaintColrLayers</a></code> <em> <code><a href="ft2-layer_management.html#ft_paintglyph">FT_PaintGlyph</a></code> </em> <code><a href="ft2-layer_management.html#ft_paintsolid">FT_PaintSolid</a></code> <em> <code><a href="ft2-layer_management.html#ft_paintlineargradient">FT_PaintLinearGradient</a></code> </em> <code><a href="ft2-layer_management.html#ft_paintradialgradient">FT_PaintRadialGradient</a></code> <em> <code><a href="ft2-layer_management.html#ft_paintsweepgradient">FT_PaintSweepGradient</a></code> </em> <code><a href="ft2-layer_management.html#ft_painttransform">FT_PaintTransform</a></code> <em> <code><a href="ft2-layer_management.html#ft_painttranslate">FT_PaintTranslate</a></code> </em> <code><a href="ft2-layer_management.html#ft_paintrotate">FT_PaintRotate</a></code> <em> <code><a href="ft2-layer_management.html#ft_paintskew">FT_PaintSkew</a></code> </em> <code><a href="ft2-layer_management.html#ft_paintcomposite">FT_PaintComposite</a></code> * <code><a href="ft2-layer_management.html#ft_paintcolrglyph">FT_PaintColrGlyph</a></code></li>
+</ul>
+</td></tr>
+</table>
+
+<h4>since</h4>
+
+<p>2.11 &ndash; <strong>currently experimental only!</strong> There might be changes without retaining backward compatibility of both the API and ABI.</p>
+<hr>
+
+<h2 id="ft_color_root_transform">FT_Color_Root_Transform<a class="headerlink" href="#ft_color_root_transform" title="Permanent link">&para;</a></h2>
+<p>Defined in FT_COLOR_H (freetype/ftcolor.h).</p>
+<div class = "codehilite"><pre><code> <span class="keyword">typedef</span> <span class="keyword">enum</span> FT_Color_Root_Transform_
+ {
+ <a href="ft2-layer_management.html#ft_color_include_root_transform">FT_COLOR_INCLUDE_ROOT_TRANSFORM</a>,
+ <a href="ft2-layer_management.html#ft_color_no_root_transform">FT_COLOR_NO_ROOT_TRANSFORM</a>,
+
+ FT_COLOR_ROOT_TRANSFORM_MAX
+
+ } <b>FT_Color_Root_Transform</b>;
+</code></pre></div>
+
+<p>An enumeration to specify whether <code><a href="ft2-layer_management.html#ft_get_color_glyph_paint">FT_Get_Color_Glyph_Paint</a></code> is to return a root transform to configure the client's graphics context matrix.</p>
+<h4>values</h4>
+<table class="fields long">
+<tr><td class="val" id="ft_color_include_root_transform">FT_COLOR_INCLUDE_ROOT_TRANSFORM</td><td class="desc">
+<p>Do include the root transform as the initial <code><a href="ft2-layer_management.html#ft_colr_paint">FT_COLR_Paint</a></code> object.</p>
+</td></tr>
+<tr><td class="val" id="ft_color_no_root_transform">FT_COLOR_NO_ROOT_TRANSFORM</td><td class="desc">
+<p>Do not output an initial root transform.</p>
+</td></tr>
+</table>
+
+<h4>since</h4>
+
+<p>2.11 &ndash; <strong>currently experimental only!</strong> There might be changes without retaining backward compatibility of both the API and ABI.</p>
+<hr>
+
+<h2 id="ft_clipbox">FT_ClipBox<a class="headerlink" href="#ft_clipbox" title="Permanent link">&para;</a></h2>
+<p>Defined in FT_COLOR_H (freetype/ftcolor.h).</p>
+<div class = "codehilite"><pre><code> <span class="keyword">typedef</span> <span class="keyword">struct</span> FT_ClipBox_
+ {
+ <a href="ft2-basic_types.html#ft_vector">FT_Vector</a> bottom_left;
+ <a href="ft2-basic_types.html#ft_vector">FT_Vector</a> top_left;
+ <a href="ft2-basic_types.html#ft_vector">FT_Vector</a> top_right;
+ <a href="ft2-basic_types.html#ft_vector">FT_Vector</a> bottom_right;
+
+ } <b>FT_ClipBox</b>;
+</code></pre></div>
+
+<p>A structure representing a &lsquo;COLR&rsquo; v1 &lsquo;ClipBox&rsquo; table. &lsquo;COLR&rsquo; v1 glyphs may optionally define a clip box for aiding allocation or defining a maximum drawable region. Use <code><a href="ft2-layer_management.html#ft_get_color_glyph_clipbox">FT_Get_Color_Glyph_ClipBox</a></code> to retrieve it.</p>
+<h4>fields</h4>
+<table class="fields">
+<tr><td class="val" id="bottom_left">bottom_left</td><td class="desc">
+<p>The bottom left corner of the clip box as an <code><a href="ft2-basic_types.html#ft_vector">FT_Vector</a></code> with fixed-point coordinates in 26.6 format.</p>
+</td></tr>
+<tr><td class="val" id="top_left">top_left</td><td class="desc">
+<p>The top left corner of the clip box as an <code><a href="ft2-basic_types.html#ft_vector">FT_Vector</a></code> with fixed-point coordinates in 26.6 format.</p>
+</td></tr>
+<tr><td class="val" id="top_right">top_right</td><td class="desc">
+<p>The top right corner of the clip box as an <code><a href="ft2-basic_types.html#ft_vector">FT_Vector</a></code> with fixed-point coordinates in 26.6 format.</p>
+</td></tr>
+<tr><td class="val" id="bottom_right">bottom_right</td><td class="desc">
+<p>The bottom right corner of the clip box as an <code><a href="ft2-basic_types.html#ft_vector">FT_Vector</a></code> with fixed-point coordinates in 26.6 format.</p>
+</td></tr>
+</table>
+
+<h4>since</h4>
+
+<p>2.12 &ndash; <strong>currently experimental only!</strong> There might be changes without retaining backward compatibility of both the API and ABI.</p>
+<hr>
+
+<h2 id="ft_get_color_glyph_paint">FT_Get_Color_Glyph_Paint<a class="headerlink" href="#ft_get_color_glyph_paint" title="Permanent link">&para;</a></h2>
+<p>Defined in FT_COLOR_H (freetype/ftcolor.h).</p>
+<div class = "codehilite"><pre><code> FT_EXPORT( <a href="ft2-basic_types.html#ft_bool">FT_Bool</a> )
+ <b>FT_Get_Color_Glyph_Paint</b>( <a href="ft2-base_interface.html#ft_face">FT_Face</a> face,
+ <a href="ft2-basic_types.html#ft_uint">FT_UInt</a> base_glyph,
+ <a href="ft2-layer_management.html#ft_color_root_transform">FT_Color_Root_Transform</a> root_transform,
+ <a href="ft2-layer_management.html#ft_opaquepaint">FT_OpaquePaint</a>* paint );
+</code></pre></div>
+
+<p>This is the starting point and interface to color gradient information in a &lsquo;COLR&rsquo; v1 table in OpenType fonts to recursively retrieve the paint tables for the directed acyclic graph of a colored glyph, given a glyph ID.</p>
+<p><a href="https://github.com/googlefonts/colr-gradients-spec">https://github.com/googlefonts/colr-gradients-spec</a></p>
+<p>In a &lsquo;COLR&rsquo; v1 font, each color glyph defines a directed acyclic graph of nested paint tables, such as <code>PaintGlyph</code>, <code>PaintSolid</code>, <code>PaintLinearGradient</code>, <code>PaintRadialGradient</code>, and so on. Using this function and specifying a glyph ID, one retrieves the root paint table for this glyph ID.</p>
+<p>This function allows control whether an initial root transform is returned to configure scaling, transform, and translation correctly on the client's graphics context. The initial root transform is computed and returned according to the values configured for <code><a href="ft2-base_interface.html#ft_size">FT_Size</a></code> and <code><a href="ft2-base_interface.html#ft_set_transform">FT_Set_Transform</a></code> on the <code><a href="ft2-base_interface.html#ft_face">FT_Face</a></code> object, see below for details of the <code>root_transform</code> parameter. This has implications for a client &lsquo;COLR&rsquo; v1 implementation: When this function returns an initially computed root transform, at the time of executing the <code><a href="ft2-layer_management.html#ft_paintglyph">FT_PaintGlyph</a></code> operation, the contours should be retrieved using <code><a href="ft2-base_interface.html#ft_load_glyph">FT_Load_Glyph</a></code> at unscaled, untransformed size. This is because the root transform applied to the graphics context will take care of correct scaling.</p>
+<p>Alternatively, to allow hinting of contours, at the time of executing <code><a href="ft2-base_interface.html#ft_load_glyph">FT_Load_Glyph</a></code>, the current graphics context transformation matrix can be decomposed into a scaling matrix and a remainder, and <code><a href="ft2-base_interface.html#ft_load_glyph">FT_Load_Glyph</a></code> can be used to retrieve the contours at scaled size. Care must then be taken to blit or clip to the graphics context with taking this remainder transformation into account.</p>
+<h4>input</h4>
+<table class="fields">
+<tr><td class="val" id="face">face</td><td class="desc">
+<p>A handle to the parent face object.</p>
+</td></tr>
+<tr><td class="val" id="base_glyph">base_glyph</td><td class="desc">
+<p>The glyph index for which to retrieve the root paint table.</p>
+</td></tr>
+<tr><td class="val" id="root_transform">root_transform</td><td class="desc">
+<p>Specifies whether an initially computed root is returned by the <code><a href="ft2-layer_management.html#ft_painttransform">FT_PaintTransform</a></code> operation to account for the activated size (see <code><a href="ft2-sizes_management.html#ft_activate_size">FT_Activate_Size</a></code>) and the configured transform and translate (see <code><a href="ft2-base_interface.html#ft_set_transform">FT_Set_Transform</a></code>).</p>
+<p>This root transform is returned before nodes of the glyph graph of the font are returned. Subsequent <code><a href="ft2-layer_management.html#ft_colr_paint">FT_COLR_Paint</a></code> structures contain unscaled and untransformed values. The inserted root transform enables the client application to apply an initial transform to its graphics context. When executing subsequent FT_COLR_Paint operations, values from <code><a href="ft2-layer_management.html#ft_colr_paint">FT_COLR_Paint</a></code> operations will ultimately be correctly scaled because of the root transform applied to the graphics context. Use <code><a href="ft2-layer_management.html#ft_color_root_transform">FT_COLOR_INCLUDE_ROOT_TRANSFORM</a></code> to include the root transform, use <code><a href="ft2-layer_management.html#ft_color_root_transform">FT_COLOR_NO_ROOT_TRANSFORM</a></code> to not include it. The latter may be useful when traversing the &lsquo;COLR&rsquo; v1 glyph graph and reaching a <code><a href="ft2-layer_management.html#ft_paintcolrglyph">FT_PaintColrGlyph</a></code>. When recursing into <code><a href="ft2-layer_management.html#ft_paintcolrglyph">FT_PaintColrGlyph</a></code> and painting that inline, no additional root transform is needed as it has already been applied to the graphics context at the beginning of drawing this glyph.</p>
+</td></tr>
+</table>
+
+<h4>output</h4>
+<table class="fields">
+<tr><td class="val" id="paint">paint</td><td class="desc">
+<p>The <code><a href="ft2-layer_management.html#ft_opaquepaint">FT_OpaquePaint</a></code> object that references the actual paint table.</p>
+<p>The respective actual <code><a href="ft2-layer_management.html#ft_colr_paint">FT_COLR_Paint</a></code> object is retrieved via <code><a href="ft2-layer_management.html#ft_get_paint">FT_Get_Paint</a></code>.</p>
+</td></tr>
+</table>
+
+<h4>return</h4>
+
+<p>Value&nbsp;1 if everything is OK. If no color glyph is found, or the root paint could not be retrieved, value&nbsp;0 gets returned. In case of an error, value&nbsp;0 is returned also.</p>
+<h4>since</h4>
+
+<p>2.11 &ndash; <strong>currently experimental only!</strong> There might be changes without retaining backward compatibility of both the API and ABI.</p>
+<hr>
+
+<h2 id="ft_get_color_glyph_clipbox">FT_Get_Color_Glyph_ClipBox<a class="headerlink" href="#ft_get_color_glyph_clipbox" title="Permanent link">&para;</a></h2>
+<p>Defined in FT_COLOR_H (freetype/ftcolor.h).</p>
+<div class = "codehilite"><pre><code> FT_EXPORT( <a href="ft2-basic_types.html#ft_bool">FT_Bool</a> )
+ <b>FT_Get_Color_Glyph_ClipBox</b>( <a href="ft2-base_interface.html#ft_face">FT_Face</a> face,
+ <a href="ft2-basic_types.html#ft_uint">FT_UInt</a> base_glyph,
+ <a href="ft2-layer_management.html#ft_clipbox">FT_ClipBox</a>* clip_box );
+</code></pre></div>
+
+<p>Search for a &lsquo;COLR&rsquo; v1 clip box for the specified <code>base_glyph</code> and fill the <code>clip_box</code> parameter with the &lsquo;COLR&rsquo; v1 &lsquo;ClipBox&rsquo; information if one is found.</p>
+<h4>input</h4>
+<table class="fields">
+<tr><td class="val" id="face">face</td><td class="desc">
+<p>A handle to the parent face object.</p>
+</td></tr>
+<tr><td class="val" id="base_glyph">base_glyph</td><td class="desc">
+<p>The glyph index for which to retrieve the clip box.</p>
+</td></tr>
+</table>
+
+<h4>output</h4>
+<table class="fields">
+<tr><td class="val" id="clip_box">clip_box</td><td class="desc">
+<p>The clip box for the requested <code>base_glyph</code> if one is found. The clip box is computed taking scale and transformations configured on the <code><a href="ft2-base_interface.html#ft_face">FT_Face</a></code> into account. <code><a href="ft2-layer_management.html#ft_clipbox">FT_ClipBox</a></code> contains <code><a href="ft2-basic_types.html#ft_vector">FT_Vector</a></code> values in 26.6 format.</p>
+</td></tr>
+</table>
+
+<h4>return</h4>
+
+<p>Value&nbsp;1 if a clip box is found. If no clip box is found or an error occured, value&nbsp;0 is returned.</p>
+<h4>note</h4>
+
+<p>To retrieve the clip box in font units, reset scale to units-per-em and remove transforms configured using <code><a href="ft2-base_interface.html#ft_set_transform">FT_Set_Transform</a></code>.</p>
+<h4>since</h4>
+
+<p>2.12 &ndash; <strong>currently experimental only!</strong> There might be changes without retaining backward compatibility of both the API and ABI.</p>
+<hr>
+
+<h2 id="ft_get_paint_layers">FT_Get_Paint_Layers<a class="headerlink" href="#ft_get_paint_layers" title="Permanent link">&para;</a></h2>
+<p>Defined in FT_COLOR_H (freetype/ftcolor.h).</p>
+<div class = "codehilite"><pre><code> FT_EXPORT( <a href="ft2-basic_types.html#ft_bool">FT_Bool</a> )
+ <b>FT_Get_Paint_Layers</b>( <a href="ft2-base_interface.html#ft_face">FT_Face</a> face,
+ <a href="ft2-layer_management.html#ft_layeriterator">FT_LayerIterator</a>* iterator,
+ <a href="ft2-layer_management.html#ft_opaquepaint">FT_OpaquePaint</a>* paint );
+</code></pre></div>
+
+<p>Access the layers of a <code>PaintColrLayers</code> table.</p>
+<p>If the root paint of a color glyph, or a nested paint of a &lsquo;COLR&rsquo; glyph is a <code>PaintColrLayers</code> table, this function retrieves the layers of the <code>PaintColrLayers</code> table.</p>
+<p>The <code><a href="ft2-layer_management.html#ft_paintcolrlayers">FT_PaintColrLayers</a></code> object contains an <code><a href="ft2-layer_management.html#ft_layeriterator">FT_LayerIterator</a></code>, which is used here to iterate over the layers. Each layer is returned as an <code><a href="ft2-layer_management.html#ft_opaquepaint">FT_OpaquePaint</a></code> object, which then can be used with <code><a href="ft2-layer_management.html#ft_get_paint">FT_Get_Paint</a></code> to retrieve the actual paint object.</p>
+<h4>input</h4>
+<table class="fields">
+<tr><td class="val" id="face">face</td><td class="desc">
+<p>A handle to the parent face object.</p>
+</td></tr>
+</table>
+
+<h4>inout</h4>
+<table class="fields">
+<tr><td class="val" id="iterator">iterator</td><td class="desc">
+<p>The <code><a href="ft2-layer_management.html#ft_layeriterator">FT_LayerIterator</a></code> from an <code><a href="ft2-layer_management.html#ft_paintcolrlayers">FT_PaintColrLayers</a></code> object, for which the layers are to be retrieved. The internal state of the iterator is incremented after one call to this function for retrieving one layer.</p>
+</td></tr>
+</table>
+
+<h4>output</h4>
+<table class="fields">
+<tr><td class="val" id="paint">paint</td><td class="desc">
+<p>The <code><a href="ft2-layer_management.html#ft_opaquepaint">FT_OpaquePaint</a></code> object that references the actual paint table. The respective actual <code><a href="ft2-layer_management.html#ft_colr_paint">FT_COLR_Paint</a></code> object is retrieved via <code><a href="ft2-layer_management.html#ft_get_paint">FT_Get_Paint</a></code>.</p>
+</td></tr>
+</table>
+
+<h4>return</h4>
+
+<p>Value&nbsp;1 if everything is OK. Value&nbsp;0 gets returned when the paint object can not be retrieved or any other error occurs.</p>
+<h4>since</h4>
+
+<p>2.11 &ndash; <strong>currently experimental only!</strong> There might be changes without retaining backward compatibility of both the API and ABI.</p>
+<hr>
+
+<h2 id="ft_get_colorline_stops">FT_Get_Colorline_Stops<a class="headerlink" href="#ft_get_colorline_stops" title="Permanent link">&para;</a></h2>
+<p>Defined in FT_COLOR_H (freetype/ftcolor.h).</p>
+<div class = "codehilite"><pre><code> FT_EXPORT( <a href="ft2-basic_types.html#ft_bool">FT_Bool</a> )
+ <b>FT_Get_Colorline_Stops</b>( <a href="ft2-base_interface.html#ft_face">FT_Face</a> face,
+ <a href="ft2-layer_management.html#ft_colorstop">FT_ColorStop</a>* color_stop,
+ <a href="ft2-layer_management.html#ft_colorstopiterator">FT_ColorStopIterator</a>* iterator );
+</code></pre></div>
+
+<p>This is an interface to color gradient information in a &lsquo;COLR&rsquo; v1 table in OpenType fonts to iteratively retrieve the gradient and solid fill information for colored glyph layers for a specified glyph ID.</p>
+<p><a href="https://github.com/googlefonts/colr-gradients-spec">https://github.com/googlefonts/colr-gradients-spec</a></p>
+<h4>input</h4>
+<table class="fields">
+<tr><td class="val" id="face">face</td><td class="desc">
+<p>A handle to the parent face object.</p>
+</td></tr>
+</table>
+
+<h4>inout</h4>
+<table class="fields">
+<tr><td class="val" id="iterator">iterator</td><td class="desc">
+<p>The retrieved <code><a href="ft2-layer_management.html#ft_colorstopiterator">FT_ColorStopIterator</a></code>, configured on an <code><a href="ft2-layer_management.html#ft_colorline">FT_ColorLine</a></code>, which in turn got retrieved via paint information in <code><a href="ft2-layer_management.html#ft_paintlineargradient">FT_PaintLinearGradient</a></code> or <code><a href="ft2-layer_management.html#ft_paintradialgradient">FT_PaintRadialGradient</a></code>.</p>
+</td></tr>
+</table>
+
+<h4>output</h4>
+<table class="fields">
+<tr><td class="val" id="color_stop">color_stop</td><td class="desc">
+<p>Color index and alpha value for the retrieved color stop.</p>
+</td></tr>
+</table>
+
+<h4>return</h4>
+
+<p>Value&nbsp;1 if everything is OK. If there are no more color stops, value&nbsp;0 gets returned. In case of an error, value&nbsp;0 is returned also.</p>
+<h4>since</h4>
+
+<p>2.11 &ndash; <strong>currently experimental only!</strong> There might be changes without retaining backward compatibility of both the API and ABI.</p>
+<hr>
+
+<h2 id="ft_get_paint">FT_Get_Paint<a class="headerlink" href="#ft_get_paint" title="Permanent link">&para;</a></h2>
+<p>Defined in FT_COLOR_H (freetype/ftcolor.h).</p>
+<div class = "codehilite"><pre><code> FT_EXPORT( <a href="ft2-basic_types.html#ft_bool">FT_Bool</a> )
+ <b>FT_Get_Paint</b>( <a href="ft2-base_interface.html#ft_face">FT_Face</a> face,
+ <a href="ft2-layer_management.html#ft_opaquepaint">FT_OpaquePaint</a> opaque_paint,
+ <a href="ft2-layer_management.html#ft_colr_paint">FT_COLR_Paint</a>* paint );
+</code></pre></div>
+
+<p>Access the details of a paint using an <code><a href="ft2-layer_management.html#ft_opaquepaint">FT_OpaquePaint</a></code> opaque paint object, which internally stores the offset to the respective <code>Paint</code> object in the &lsquo;COLR&rsquo; table.</p>
+<h4>input</h4>
+<table class="fields">
+<tr><td class="val" id="face">face</td><td class="desc">
+<p>A handle to the parent face object.</p>
+</td></tr>
+<tr><td class="val" id="opaque_paint">opaque_paint</td><td class="desc">
+<p>The opaque paint object for which the underlying <code><a href="ft2-layer_management.html#ft_colr_paint">FT_COLR_Paint</a></code> data is to be retrieved.</p>
+</td></tr>
+</table>
+
+<h4>output</h4>
+<table class="fields">
+<tr><td class="val" id="paint">paint</td><td class="desc">
+<p>The specific <code><a href="ft2-layer_management.html#ft_colr_paint">FT_COLR_Paint</a></code> object containing information coming from one of the font's <code>Paint*</code> tables.</p>
+</td></tr>
+</table>
+
+<h4>return</h4>
+
+<p>Value&nbsp;1 if everything is OK. Value&nbsp;0 if no details can be found for this paint or any other error occured.</p>
+<h4>since</h4>
+
+<p>2.11 &ndash; <strong>currently experimental only!</strong> There might be changes without retaining backward compatibility of both the API and ABI.</p>
<hr>
-
-
-
@@ -1238,59 +2695,60 @@
</article>
</div>
</div>
+
</main>
<footer class="md-footer">
- <div class="md-footer-nav">
- <nav class="md-footer-nav__inner md-grid">
+ <nav class="md-footer__inner md-grid" aria-label="Footer">
+
- <a href="ft2-color_management.html" title="Glyph Color Management" class="md-flex md-footer-nav__link md-footer-nav__link--prev" rel="prev">
- <div class="md-flex__cell md-flex__cell--shrink">
- <i class="md-icon md-icon--arrow-back md-footer-nav__button"></i>
- </div>
- <div class="md-flex__cell md-flex__cell--stretch md-footer-nav__title">
- <span class="md-flex__ellipsis">
- <span class="md-footer-nav__direction">
- Previous
- </span>
- Glyph Color Management
+ <a href="ft2-color_management.html" class="md-footer__link md-footer__link--prev" aria-label="Previous: Glyph Color Management" rel="prev">
+ <div class="md-footer__button md-icon">
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M20 11v2H8l5.5 5.5-1.42 1.42L4.16 12l7.92-7.92L13.5 5.5 8 11h12z"/></svg>
+ </div>
+ <div class="md-footer__title">
+ <div class="md-ellipsis">
+ <span class="md-footer__direction">
+ Previous
</span>
+ Glyph Color Management
</div>
- </a>
-
+ </div>
+ </a>
+
+
- <a href="ft2-glyph_management.html" title="Glyph Management" class="md-flex md-footer-nav__link md-footer-nav__link--next" rel="next">
- <div class="md-flex__cell md-flex__cell--stretch md-footer-nav__title">
- <span class="md-flex__ellipsis">
- <span class="md-footer-nav__direction">
- Next
- </span>
- Glyph Management
+ <a href="ft2-glyph_management.html" class="md-footer__link md-footer__link--next" aria-label="Next: Glyph Management" rel="next">
+ <div class="md-footer__title">
+ <div class="md-ellipsis">
+ <span class="md-footer__direction">
+ Next
</span>
+ Glyph Management
</div>
- <div class="md-flex__cell md-flex__cell--shrink">
- <i class="md-icon md-icon--arrow-forward md-footer-nav__button"></i>
- </div>
- </a>
-
- </nav>
- </div>
+ </div>
+ <div class="md-footer__button md-icon">
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M4 11v2h12l-5.5 5.5 1.42 1.42L19.84 12l-7.92-7.92L10.5 5.5 16 11H4z"/></svg>
+ </div>
+ </a>
+
+ </nav>
<div class="md-footer-meta md-typeset">
<div class="md-footer-meta__inner md-grid">
<div class="md-footer-copyright">
<div class="md-footer-copyright__highlight">
- Copyright 2020 <a href = "https://www.freetype.org/license.html">The FreeType Project</a>.
+ Copyright 2021 <a href = "https://www.freetype.org/license.html">The FreeType Project</a>.
</div>
- powered by
- <a href="https://www.mkdocs.org" target="_blank" rel="noopener">MkDocs</a>
- and
+ Made with
<a href="https://squidfunk.github.io/mkdocs-material/" target="_blank" rel="noopener">
- Material for MkDocs</a>
+ Material for MkDocs
+ </a>
+
</div>
</div>
@@ -1298,10 +2756,13 @@
</footer>
</div>
+ <div class="md-dialog" data-md-component="dialog">
+ <div class="md-dialog__inner md-typeset"></div>
+ </div>
+ <script id="__config" type="application/json">{"base": ".", "features": [], "translations": {"clipboard.copy": "Copy to clipboard", "clipboard.copied": "Copied to clipboard", "search.config.lang": "en", "search.config.pipeline": "trimmer, stopWordFilter", "search.config.separator": "[\\s\\-]+", "search.placeholder": "Search", "search.result.placeholder": "Type to start searching", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.term.missing": "Missing", "select.version.title": "Select version"}, "search": "assets/javascripts/workers/search.477d984a.min.js", "version": null}</script>
- <script src="assets/javascripts/application.c33a9706.js"></script>
-
- <script>app.initialize({version:"1.1",url:{base:"."}})</script>
+
+ <script src="assets/javascripts/bundle.82b56eb2.min.js"></script>
<script src="javascripts/extra.js"></script>
diff --git a/freetype/docs/reference/ft2-lcd_rendering.html b/freetype/docs/reference/ft2-lcd_rendering.html
index 480dea91..399bdc05 100644
--- a/freetype/docs/reference/ft2-lcd_rendering.html
+++ b/freetype/docs/reference/ft2-lcd_rendering.html
@@ -1,145 +1,136 @@
-
-
-
<!doctype html>
<html lang="en" class="no-js">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
- <meta http-equiv="x-ua-compatible" content="ie=edge">
- <meta name="description" content="API Reference Documentation for FreeType-2.10.4">
+ <meta name="description" content="API Reference Documentation for FreeType-2.11.1">
<meta name="author" content="FreeType Contributors">
- <meta name="lang:clipboard.copy" content="Copy to clipboard">
-
- <meta name="lang:clipboard.copied" content="Copied to clipboard">
-
- <meta name="lang:search.language" content="en">
-
- <meta name="lang:search.pipeline.stopwords" content="True">
-
- <meta name="lang:search.pipeline.trimmer" content="True">
-
- <meta name="lang:search.result.none" content="No matching documents">
-
- <meta name="lang:search.result.one" content="1 matching document">
-
- <meta name="lang:search.result.other" content="# matching documents">
-
- <meta name="lang:search.tokenizer" content="[\s\-]+">
-
- <link rel="shortcut icon" href="images/favico.ico">
- <meta name="generator" content="mkdocs-1.1, mkdocs-material-4.6.3">
+ <link rel="icon" href="images/favico.ico">
+ <meta name="generator" content="mkdocs-1.2.1, mkdocs-material-7.1.9">
- <title>Subpixel Rendering - FreeType-2.10.4 API Reference</title>
+ <title>Subpixel Rendering - FreeType-2.11.1 API Reference</title>
- <link rel="stylesheet" href="assets/stylesheets/application.adb8469c.css">
-
- <link rel="stylesheet" href="assets/stylesheets/application-palette.a8b3c06d.css">
-
+ <link rel="stylesheet" href="assets/stylesheets/main.ca7ac06f.min.css">
+ <link rel="stylesheet" href="assets/stylesheets/palette.f1a3b89f.min.css">
+
+
+
+ <meta name="theme-color" content="#4cae4f">
- <meta name="theme-color" content="#4caf50">
- <script src="assets/javascripts/modernizr.86422ebf.js"></script>
-
- <link href="https://fonts.gstatic.com" rel="preconnect" crossorigin>
+
+ <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Noto+Serif:300,400,400i,700%7CRoboto+Mono&display=fallback">
- <style>body,input{font-family:"Noto Serif","Helvetica Neue",Helvetica,Arial,sans-serif}code,kbd,pre{font-family:"Roboto Mono","Courier New",Courier,monospace}</style>
+ <style>:root{--md-text-font-family:"Noto Serif";--md-code-font-family:"Roboto Mono"}</style>
- <link rel="stylesheet" href="assets/fonts/material-icons.css">
<link rel="stylesheet" href="stylesheets/extra.css">
+
+
</head>
+
+
+
+
- <body dir="ltr" data-md-color-primary="green" data-md-color-accent="green">
+ <body dir="ltr" data-md-color-scheme="" data-md-color-primary="green" data-md-color-accent="green">
- <svg class="md-svg">
- <defs>
-
-
- </defs>
- </svg>
- <input class="md-toggle" data-md-toggle="drawer" type="checkbox" id="__drawer" autocomplete="off">
- <input class="md-toggle" data-md-toggle="search" type="checkbox" id="__search" autocomplete="off">
- <label class="md-overlay" data-md-component="overlay" for="__drawer"></label>
- <a href="#subpixel-rendering" tabindex="0" class="md-skip">
- Skip to content
- </a>
+ <script>function __prefix(e){return new URL(".",location).pathname+"."+e}function __get(e,t=localStorage){return JSON.parse(t.getItem(__prefix(e)))}</script>
+ <input class="md-toggle" data-md-toggle="drawer" type="checkbox" id="__drawer" autocomplete="off">
+ <input class="md-toggle" data-md-toggle="search" type="checkbox" id="__search" autocomplete="off">
+ <label class="md-overlay" for="__drawer"></label>
+ <div data-md-component="skip">
+
+
+ <a href="#subpixel-rendering" class="md-skip">
+ Skip to content
+ </a>
+
+ </div>
+ <div data-md-component="announce">
+
+ </div>
<header class="md-header" data-md-component="header">
- <nav class="md-header-nav md-grid">
- <div class="md-flex">
- <div class="md-flex__cell md-flex__cell--shrink">
- <a href="." title="FreeType-2.10.4 API Reference" aria-label="FreeType-2.10.4 API Reference" class="md-header-nav__button md-logo">
-
- <img alt="logo" src="images/favico.ico" width="24" height="24">
-
- </a>
- </div>
- <div class="md-flex__cell md-flex__cell--shrink">
- <label class="md-icon md-icon--menu md-header-nav__button" for="__drawer"></label>
- </div>
- <div class="md-flex__cell md-flex__cell--stretch">
- <div class="md-flex__ellipsis md-header-nav__title" data-md-component="title">
-
- <span class="md-header-nav__topic">
- FreeType-2.10.4 API Reference
- </span>
- <span class="md-header-nav__topic">
-
- Subpixel Rendering
-
- </span>
-
+ <nav class="md-header__inner md-grid" aria-label="Header">
+ <a href="index.html" title="FreeType-2.11.1 API Reference" class="md-header__button md-logo" aria-label="FreeType-2.11.1 API Reference" data-md-component="logo">
+
+ <img src="images/favico.ico" alt="logo">
+
+ </a>
+ <label class="md-header__button md-icon" for="__drawer">
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M3 6h18v2H3V6m0 5h18v2H3v-2m0 5h18v2H3v-2z"/></svg>
+ </label>
+ <div class="md-header__title" data-md-component="header-title">
+ <div class="md-header__ellipsis">
+ <div class="md-header__topic">
+ <span class="md-ellipsis">
+ FreeType-2.11.1 API Reference
+ </span>
+ </div>
+ <div class="md-header__topic" data-md-component="header-topic">
+ <span class="md-ellipsis">
+
+ Subpixel Rendering
+
+ </span>
</div>
</div>
- <div class="md-flex__cell md-flex__cell--shrink">
-
- <label class="md-icon md-icon--search md-header-nav__button" for="__search"></label>
-
+ </div>
+
+
+
+ <label class="md-header__button md-icon" for="__search">
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M9.5 3A6.5 6.5 0 0 1 16 9.5c0 1.61-.59 3.09-1.56 4.23l.27.27h.79l5 5-1.5 1.5-5-5v-.79l-.27-.27A6.516 6.516 0 0 1 9.5 16 6.5 6.5 0 0 1 3 9.5 6.5 6.5 0 0 1 9.5 3m0 2C7 5 5 7 5 9.5S7 14 9.5 14 14 12 14 9.5 12 5 9.5 5z"/></svg>
+ </label>
+
<div class="md-search" data-md-component="search" role="dialog">
<label class="md-search__overlay" for="__search"></label>
<div class="md-search__inner" role="search">
<form class="md-search__form" name="search">
- <input type="text" class="md-search__input" aria-label="search" name="query" placeholder="Search" autocapitalize="off" autocorrect="off" autocomplete="off" spellcheck="false" data-md-component="query" data-md-state="active">
- <label class="md-icon md-search__icon" for="__search"></label>
- <button type="reset" class="md-icon md-search__icon" data-md-component="reset" tabindex="-1">
- &#xE5CD;
+ <input type="text" class="md-search__input" name="query" aria-label="Search" placeholder="Search" autocapitalize="off" autocorrect="off" autocomplete="off" spellcheck="false" data-md-component="search-query" data-md-state="active" required>
+ <label class="md-search__icon md-icon" for="__search">
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M9.5 3A6.5 6.5 0 0 1 16 9.5c0 1.61-.59 3.09-1.56 4.23l.27.27h.79l5 5-1.5 1.5-5-5v-.79l-.27-.27A6.516 6.516 0 0 1 9.5 16 6.5 6.5 0 0 1 3 9.5 6.5 6.5 0 0 1 9.5 3m0 2C7 5 5 7 5 9.5S7 14 9.5 14 14 12 14 9.5 12 5 9.5 5z"/></svg>
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M20 11v2H8l5.5 5.5-1.42 1.42L4.16 12l7.92-7.92L13.5 5.5 8 11h12z"/></svg>
+ </label>
+ <button type="reset" class="md-search__icon md-icon" aria-label="Clear" tabindex="-1">
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z"/></svg>
</button>
</form>
<div class="md-search__output">
<div class="md-search__scrollwrap" data-md-scrollfix>
- <div class="md-search-result" data-md-component="result">
+ <div class="md-search-result" data-md-component="search-result">
<div class="md-search-result__meta">
- Type to start searching
+ Initializing search
</div>
<ol class="md-search-result__list"></ol>
</div>
@@ -147,33 +138,35 @@
</div>
</div>
</div>
-
- </div>
-
- </div>
+
+
</nav>
</header>
- <div class="md-container">
+ <div class="md-container" data-md-component="container">
-
+
- <main class="md-main" role="main">
- <div class="md-main__inner md-grid" data-md-component="container">
+ <main class="md-main" data-md-component="main">
+ <div class="md-main__inner md-grid">
- <div class="md-sidebar md-sidebar--primary" data-md-component="navigation">
+
+ <div class="md-sidebar md-sidebar--primary" data-md-component="sidebar" data-md-type="navigation" >
<div class="md-sidebar__scrollwrap">
<div class="md-sidebar__inner">
- <nav class="md-nav md-nav--primary" data-md-level="0">
- <label class="md-nav__title md-nav__title--site" for="__drawer">
- <a href="." title="FreeType-2.10.4 API Reference" class="md-nav__button md-logo">
-
- <img alt="logo" src="images/favico.ico" width="48" height="48">
+
+
+
+<nav class="md-nav md-nav--primary" aria-label="Navigation" data-md-level="0">
+ <label class="md-nav__title" for="__drawer">
+ <a href="index.html" title="FreeType-2.11.1 API Reference" class="md-nav__button md-logo" aria-label="FreeType-2.11.1 API Reference" data-md-component="logo">
+ <img src="images/favico.ico" alt="logo">
+
</a>
- FreeType-2.10.4 API Reference
+ FreeType-2.11.1 API Reference
</label>
<ul class="md-nav__list" data-md-scrollfix>
@@ -182,360 +175,396 @@
-
- <li class="md-nav__item">
- <a href="index.html" title="TOC" class="md-nav__link">
- TOC
- </a>
- </li>
+
+
+
+ <li class="md-nav__item">
+ <a href="index.html" class="md-nav__link">
+ TOC
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-index.html" title="Index" class="md-nav__link">
- Index
- </a>
- </li>
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-index.html" class="md-nav__link">
+ Index
+ </a>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-3" type="checkbox" id="nav-3">
+
+
+
- <label class="md-nav__link" for="nav-3">
- General Remarks
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-3">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_3" type="checkbox" id="__nav_3" >
+
+ <label class="md-nav__link" for="__nav_3">
General Remarks
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
+ <nav class="md-nav" aria-label="General Remarks" data-md-level="1">
+ <label class="md-nav__title" for="__nav_3">
+ <span class="md-nav__icon md-icon"></span>
+ General Remarks
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-header_inclusion.html" title="FreeType's header inclusion scheme" class="md-nav__link">
- FreeType's header inclusion scheme
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-preamble.html" class="md-nav__link">
+ Preamble
+ </a>
+ </li>
+
-
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-header_inclusion.html" class="md-nav__link">
+ FreeType's header inclusion scheme
+ </a>
+ </li>
+
- <li class="md-nav__item">
- <a href="ft2-user_allocation.html" title="User allocation" class="md-nav__link">
- User allocation
- </a>
- </li>
+
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-user_allocation.html" class="md-nav__link">
+ User allocation
+ </a>
+ </li>
+
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-4" type="checkbox" id="nav-4">
+
+
+
- <label class="md-nav__link" for="nav-4">
- Core API
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-4">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_4" type="checkbox" id="__nav_4" >
+
+ <label class="md-nav__link" for="__nav_4">
Core API
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
+ <nav class="md-nav" aria-label="Core API" data-md-level="1">
+ <label class="md-nav__title" for="__nav_4">
+ <span class="md-nav__icon md-icon"></span>
+ Core API
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-version.html" title="FreeType Version" class="md-nav__link">
- FreeType Version
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-version.html" class="md-nav__link">
+ FreeType Version
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-basic_types.html" title="Basic Data Types" class="md-nav__link">
- Basic Data Types
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-basic_types.html" class="md-nav__link">
+ Basic Data Types
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-base_interface.html" title="Base Interface" class="md-nav__link">
- Base Interface
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-base_interface.html" class="md-nav__link">
+ Base Interface
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-glyph_variants.html" title="Unicode Variation Sequences" class="md-nav__link">
- Unicode Variation Sequences
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-glyph_variants.html" class="md-nav__link">
+ Unicode Variation Sequences
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-color_management.html" class="md-nav__link">
+ Glyph Color Management
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-color_management.html" title="Glyph Color Management" class="md-nav__link">
- Glyph Color Management
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-layer_management.html" title="Glyph Layer Management" class="md-nav__link">
- Glyph Layer Management
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-layer_management.html" class="md-nav__link">
+ Glyph Layer Management
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-glyph_management.html" class="md-nav__link">
+ Glyph Management
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-glyph_management.html" title="Glyph Management" class="md-nav__link">
- Glyph Management
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-mac_specific.html" title="Mac Specific Interface" class="md-nav__link">
- Mac Specific Interface
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-mac_specific.html" class="md-nav__link">
+ Mac Specific Interface
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-sizes_management.html" class="md-nav__link">
+ Size Management
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-sizes_management.html" title="Size Management" class="md-nav__link">
- Size Management
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-header_file_macros.html" title="Header File Macros" class="md-nav__link">
- Header File Macros
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-header_file_macros.html" class="md-nav__link">
+ Header File Macros
+ </a>
+ </li>
+
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-5" type="checkbox" id="nav-5">
+
+
+
- <label class="md-nav__link" for="nav-5">
- Format-Specific API
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-5">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_5" type="checkbox" id="__nav_5" >
+
+ <label class="md-nav__link" for="__nav_5">
Format-Specific API
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
-
+ <nav class="md-nav" aria-label="Format-Specific API" data-md-level="1">
+ <label class="md-nav__title" for="__nav_5">
+ <span class="md-nav__icon md-icon"></span>
+ Format-Specific API
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
-
-
-
- <li class="md-nav__item">
- <a href="ft2-multiple_masters.html" title="Multiple Masters" class="md-nav__link">
- Multiple Masters
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-multiple_masters.html" class="md-nav__link">
+ Multiple Masters
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-truetype_tables.html" class="md-nav__link">
+ TrueType Tables
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-truetype_tables.html" title="TrueType Tables" class="md-nav__link">
- TrueType Tables
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-type1_tables.html" title="Type 1 Tables" class="md-nav__link">
- Type 1 Tables
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-type1_tables.html" class="md-nav__link">
+ Type 1 Tables
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-sfnt_names.html" class="md-nav__link">
+ SFNT Names
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-sfnt_names.html" title="SFNT Names" class="md-nav__link">
- SFNT Names
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-bdf_fonts.html" title="BDF and PCF Files" class="md-nav__link">
- BDF and PCF Files
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-bdf_fonts.html" class="md-nav__link">
+ BDF and PCF Files
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-cid_fonts.html" class="md-nav__link">
+ CID Fonts
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-cid_fonts.html" title="CID Fonts" class="md-nav__link">
- CID Fonts
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-pfr_fonts.html" title="PFR Fonts" class="md-nav__link">
- PFR Fonts
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-pfr_fonts.html" class="md-nav__link">
+ PFR Fonts
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-winfnt_fonts.html" class="md-nav__link">
+ Window FNT Files
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-winfnt_fonts.html" title="Window FNT Files" class="md-nav__link">
- Window FNT Files
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-font_formats.html" title="Font Formats" class="md-nav__link">
- Font Formats
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-font_formats.html" class="md-nav__link">
+ Font Formats
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-gasp_table.html" class="md-nav__link">
+ Gasp Table
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-gasp_table.html" title="Gasp Table" class="md-nav__link">
- Gasp Table
- </a>
- </li>
-
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
@@ -543,137 +572,147 @@
-
-
- <li class="md-nav__item md-nav__item--active md-nav__item--nested">
+
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-6" type="checkbox" id="nav-6" checked>
+
+
- <label class="md-nav__link" for="nav-6">
- Controlling FreeType Modules
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-6">
+ <li class="md-nav__item md-nav__item--active md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_6" type="checkbox" id="__nav_6" checked>
+
+ <label class="md-nav__link" for="__nav_6">
Controlling FreeType Modules
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
-
-
+ <nav class="md-nav" aria-label="Controlling FreeType Modules" data-md-level="1">
+ <label class="md-nav__title" for="__nav_6">
+ <span class="md-nav__icon md-icon"></span>
+ Controlling FreeType Modules
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-auto_hinter.html" class="md-nav__link">
+ The auto-hinter
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-auto_hinter.html" title="The auto-hinter" class="md-nav__link">
- The auto-hinter
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-cff_driver.html" title="The CFF driver" class="md-nav__link">
- The CFF driver
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-cff_driver.html" class="md-nav__link">
+ The CFF driver
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-t1_cid_driver.html" title="The Type 1 and CID drivers" class="md-nav__link">
- The Type 1 and CID drivers
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-t1_cid_driver.html" class="md-nav__link">
+ The Type 1 and CID drivers
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-tt_driver.html" title="The TrueType driver" class="md-nav__link">
- The TrueType driver
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-tt_driver.html" class="md-nav__link">
+ The TrueType driver
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-pcf_driver.html" class="md-nav__link">
+ The PCF driver
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-pcf_driver.html" title="The PCF driver" class="md-nav__link">
- The PCF driver
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-properties.html" title="Driver properties" class="md-nav__link">
- Driver properties
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-properties.html" class="md-nav__link">
+ Driver properties
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-parameter_tags.html" title="Parameter Tags" class="md-nav__link">
- Parameter Tags
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-parameter_tags.html" class="md-nav__link">
+ Parameter Tags
+ </a>
+ </li>
+
-
-
-
-
+
+
-
-
- <li class="md-nav__item md-nav__item--active">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="toc" type="checkbox" id="__toc">
+
+
+ <li class="md-nav__item md-nav__item--active">
-
-
- <label class="md-nav__link md-nav__link--active" for="__toc">
+ <input class="md-nav__toggle md-toggle" data-md-toggle="toc" type="checkbox" id="__toc">
+
+
+
+
+
+ <label class="md-nav__link md-nav__link--active" for="__toc">
+ Subpixel Rendering
+ <span class="md-nav__icon md-icon"></span>
+ </label>
+
+ <a href="ft2-lcd_rendering.html" class="md-nav__link md-nav__link--active">
Subpixel Rendering
- </label>
-
- <a href="ft2-lcd_rendering.html" title="Subpixel Rendering" class="md-nav__link md-nav__link--active">
- Subpixel Rendering
- </a>
-
+ </a>
-<nav class="md-nav md-nav--secondary">
+
+<nav class="md-nav md-nav--secondary" aria-label="Table of contents">
+
- <label class="md-nav__title" for="__toc">Table of contents</label>
- <ul class="md-nav__list" data-md-scrollfix>
+ <label class="md-nav__title" for="__toc">
+ <span class="md-nav__icon md-icon"></span>
+ Table of contents
+ </label>
+ <ul class="md-nav__list" data-md-component="toc" data-md-scrollfix>
<li class="md-nav__item">
<a href="#synopsis" class="md-nav__link">
@@ -717,344 +756,378 @@
</li>
-
-
-
-
</ul>
</nav>
-
- </li>
+
+ </li>
+
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-7" type="checkbox" id="nav-7">
+
+
+
- <label class="md-nav__link" for="nav-7">
- Cache Sub-System
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-7">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_7" type="checkbox" id="__nav_7" >
+
+ <label class="md-nav__link" for="__nav_7">
Cache Sub-System
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
-
+ <nav class="md-nav" aria-label="Cache Sub-System" data-md-level="1">
+ <label class="md-nav__title" for="__nav_7">
+ <span class="md-nav__icon md-icon"></span>
+ Cache Sub-System
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
-
-
-
- <li class="md-nav__item">
- <a href="ft2-cache_subsystem.html" title="Cache Sub-System" class="md-nav__link">
- Cache Sub-System
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-cache_subsystem.html" class="md-nav__link">
+ Cache Sub-System
+ </a>
+ </li>
+
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-8" type="checkbox" id="nav-8">
+
+
+
- <label class="md-nav__link" for="nav-8">
- Support API
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-8">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_8" type="checkbox" id="__nav_8" >
+
+ <label class="md-nav__link" for="__nav_8">
Support API
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
-
+ <nav class="md-nav" aria-label="Support API" data-md-level="1">
+ <label class="md-nav__title" for="__nav_8">
+ <span class="md-nav__icon md-icon"></span>
+ Support API
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
-
-
-
- <li class="md-nav__item">
- <a href="ft2-computations.html" title="Computations" class="md-nav__link">
- Computations
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-computations.html" class="md-nav__link">
+ Computations
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-list_processing.html" title="List Processing" class="md-nav__link">
- List Processing
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-list_processing.html" class="md-nav__link">
+ List Processing
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-outline_processing.html" title="Outline Processing" class="md-nav__link">
- Outline Processing
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-outline_processing.html" class="md-nav__link">
+ Outline Processing
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-quick_advance.html" title="Quick retrieval of advance values" class="md-nav__link">
- Quick retrieval of advance values
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-quick_advance.html" class="md-nav__link">
+ Quick retrieval of advance values
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-bitmap_handling.html" title="Bitmap Handling" class="md-nav__link">
- Bitmap Handling
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-bitmap_handling.html" class="md-nav__link">
+ Bitmap Handling
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-raster.html" class="md-nav__link">
+ Scanline Converter
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-raster.html" title="Scanline Converter" class="md-nav__link">
- Scanline Converter
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-glyph_stroker.html" title="Glyph Stroker" class="md-nav__link">
- Glyph Stroker
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-glyph_stroker.html" class="md-nav__link">
+ Glyph Stroker
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-system_interface.html" class="md-nav__link">
+ System Interface
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-system_interface.html" title="System Interface" class="md-nav__link">
- System Interface
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-module_management.html" title="Module Management" class="md-nav__link">
- Module Management
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-module_management.html" class="md-nav__link">
+ Module Management
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-gzip.html" class="md-nav__link">
+ GZIP Streams
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-gzip.html" title="GZIP Streams" class="md-nav__link">
- GZIP Streams
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-lzw.html" title="LZW Streams" class="md-nav__link">
- LZW Streams
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-lzw.html" class="md-nav__link">
+ LZW Streams
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-bzip2.html" class="md-nav__link">
+ BZIP2 Streams
+ </a>
+ </li>
+
+
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-debugging_apis.html" class="md-nav__link">
+ External Debugging APIs
+ </a>
+ </li>
+
- <li class="md-nav__item">
- <a href="ft2-bzip2.html" title="BZIP2 Streams" class="md-nav__link">
- BZIP2 Streams
- </a>
- </li>
-
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-9" type="checkbox" id="nav-9">
+
+
+
- <label class="md-nav__link" for="nav-9">
- Error Codes
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-9">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_9" type="checkbox" id="__nav_9" >
+
+ <label class="md-nav__link" for="__nav_9">
Error Codes
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
-
+ <nav class="md-nav" aria-label="Error Codes" data-md-level="1">
+ <label class="md-nav__title" for="__nav_9">
+ <span class="md-nav__icon md-icon"></span>
+ Error Codes
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
-
-
-
- <li class="md-nav__item">
- <a href="ft2-error_enumerations.html" title="Error Enumerations" class="md-nav__link">
- Error Enumerations
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-error_enumerations.html" class="md-nav__link">
+ Error Enumerations
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-error_code_values.html" title="Error Code Values" class="md-nav__link">
- Error Code Values
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-error_code_values.html" class="md-nav__link">
+ Error Code Values
+ </a>
+ </li>
+
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-10" type="checkbox" id="nav-10">
+
+
+
- <label class="md-nav__link" for="nav-10">
- Miscellaneous
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-10">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_10" type="checkbox" id="__nav_10" >
+
+ <label class="md-nav__link" for="__nav_10">
Miscellaneous
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
-
+ <nav class="md-nav" aria-label="Miscellaneous" data-md-level="1">
+ <label class="md-nav__title" for="__nav_10">
+ <span class="md-nav__icon md-icon"></span>
+ Miscellaneous
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
-
-
-
- <li class="md-nav__item">
- <a href="ft2-gx_validation.html" title="TrueTypeGX/AAT Validation" class="md-nav__link">
- TrueTypeGX/AAT Validation
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-gx_validation.html" class="md-nav__link">
+ TrueTypeGX/AAT Validation
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-incremental.html" class="md-nav__link">
+ Incremental Loading
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-incremental.html" title="Incremental Loading" class="md-nav__link">
- Incremental Loading
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-truetype_engine.html" title="The TrueType Engine" class="md-nav__link">
- The TrueType Engine
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-truetype_engine.html" class="md-nav__link">
+ The TrueType Engine
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-ot_validation.html" class="md-nav__link">
+ OpenType Validation
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-ot_validation.html" title="OpenType Validation" class="md-nav__link">
- OpenType Validation
- </a>
- </li>
-
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
</ul>
@@ -1064,18 +1137,23 @@
</div>
- <div class="md-sidebar md-sidebar--secondary" data-md-component="toc">
+
+ <div class="md-sidebar md-sidebar--secondary" data-md-component="sidebar" data-md-type="toc" >
<div class="md-sidebar__scrollwrap">
<div class="md-sidebar__inner">
-<nav class="md-nav md-nav--secondary">
+<nav class="md-nav md-nav--secondary" aria-label="Table of contents">
+
- <label class="md-nav__title" for="__toc">Table of contents</label>
- <ul class="md-nav__list" data-md-scrollfix>
+ <label class="md-nav__title" for="__toc">
+ <span class="md-nav__icon md-icon"></span>
+ Table of contents
+ </label>
+ <ul class="md-nav__list" data-md-component="toc" data-md-scrollfix>
<li class="md-nav__item">
<a href="#synopsis" class="md-nav__link">
@@ -1119,10 +1197,6 @@
</li>
-
-
-
-
</ul>
</nav>
@@ -1131,7 +1205,7 @@
</div>
- <div class="md-content">
+ <div class="md-content" data-md-component="content">
<article class="md-content__inner md-typeset">
@@ -1141,8 +1215,7 @@
<h1 id="subpixel-rendering">Subpixel Rendering<a class="headerlink" href="#subpixel-rendering" title="Permanent link">&para;</a></h1>
<h2 id="synopsis">Synopsis<a class="headerlink" href="#synopsis" title="Permanent link">&para;</a></h2>
<p>FreeType provides two alternative subpixel rendering technologies. Should you define <code>FT_CONFIG_OPTION_SUBPIXEL_RENDERING</code> in your <code>ftoption.h</code> file, this enables ClearType-style rendering. Otherwise, Harmony LCD rendering is enabled. These technologies are controlled differently and API described below, although always available, performs its function when appropriate method is enabled and does nothing otherwise.</p>
-<p>ClearType-style LCD rendering exploits the color-striped structure of LCD pixels, increasing the available resolution in the direction of the stripe (usually horizontal RGB) by a factor of&nbsp;3. Using the subpixels coverages unfiltered can create severe color fringes especially when rendering thin features. Indeed, to produce black-on-white text, the nearby color subpixels must be dimmed equally.</p>
-<p>A good 5-tap FIR filter should be applied to subpixel coverages regardless of pixel boundaries and should have these properties:</p>
+<p>ClearType-style LCD rendering exploits the color-striped structure of LCD pixels, increasing the available resolution in the direction of the stripe (usually horizontal RGB) by a factor of&nbsp;3. Using the subpixel coverages unfiltered can create severe color fringes especially when rendering thin features. Indeed, to produce black-on-white text, the nearby color subpixels must be dimmed evenly. Therefore, an equalizing 5-tap FIR filter should be applied to subpixel coverages regardless of pixel boundaries and should have these properties:</p>
<ol>
<li>
<p>It should be symmetrical, like {&nbsp;a, b, c, b, a&nbsp;}, to avoid any shifts in appearance.</p>
@@ -1156,10 +1229,10 @@
</ol>
<p>Boxy 3-tap filter {0, &#8531;, &#8531;, &#8531;, 0} is sharper but is less forgiving of non-ideal gamma curves of a screen (and viewing angles), beveled filters are fuzzier but more tolerant.</p>
<p>Use the <code><a href="ft2-lcd_rendering.html#ft_library_setlcdfilter">FT_Library_SetLcdFilter</a></code> or <code><a href="ft2-lcd_rendering.html#ft_library_setlcdfilterweights">FT_Library_SetLcdFilterWeights</a></code> API to specify a low-pass filter, which is then applied to subpixel-rendered bitmaps generated through <code><a href="ft2-base_interface.html#ft_render_glyph">FT_Render_Glyph</a></code>.</p>
-<p>Harmony LCD rendering is suitable to panels with any regular subpixel structure, not just monitors with 3 color striped subpixels, as long as the color subpixels have fixed positions relative to the pixel center. In this case, each color channel is then rendered separately after shifting the outline opposite to the subpixel shift so that the coverage maps are aligned. This method is immune to color fringes because the shifts do not change integral coverage.</p>
+<p>Harmony LCD rendering is suitable to panels with any regular subpixel structure, not just monitors with 3 color striped subpixels, as long as the color subpixels have fixed positions relative to the pixel center. In this case, each color channel can be rendered separately after shifting the outline opposite to the subpixel shift so that the coverage maps are aligned. This method is immune to color fringes because the shifts do not change integral coverage.</p>
<p>The subpixel geometry must be specified by xy-coordinates for each subpixel. By convention they may come in the RGB order: {{-&#8531;, 0}, {0, 0}, {&#8531;, 0}} for standard RGB striped panel or {{-&#8537;, &frac14;}, {-&#8537;, -&frac14;}, {&#8531;, 0}} for a certain PenTile panel.</p>
<p>Use the <code><a href="ft2-lcd_rendering.html#ft_library_setlcdgeometry">FT_Library_SetLcdGeometry</a></code> API to specify subpixel positions. If one follows the RGB order convention, the same order applies to the resulting <code><a href="ft2-basic_types.html#ft_pixel_mode">FT_PIXEL_MODE_LCD</a></code> and <code><a href="ft2-basic_types.html#ft_pixel_mode">FT_PIXEL_MODE_LCD_V</a></code> bitmaps. Note, however, that the coordinate frame for the latter must be rotated clockwise. Harmony with default LCD geometry is equivalent to ClearType with light filter.</p>
-<p>As a result of ClearType filtering or Harmony rendering, the dimensions of LCD bitmaps can be either wider or taller than the dimensions of the corresponding outline with regard to the pixel grid. For example, for <code><a href="ft2-base_interface.html#ft_render_mode">FT_RENDER_MODE_LCD</a></code>, the filter adds 2&nbsp;subpixels to the left, and 2&nbsp;subpixels to the right. The bitmap offset values are adjusted accordingly, so clients shouldn't need to modify their layout and glyph positioning code when enabling the filter.</p>
+<p>As a result of ClearType filtering or Harmony shifts, the resulting dimensions of LCD bitmaps can be slightly wider or taller than the dimensions the original outline with regard to the pixel grid. For example, for <code><a href="ft2-base_interface.html#ft_render_mode">FT_RENDER_MODE_LCD</a></code>, the filter adds 2&nbsp;subpixels to the left, and 2&nbsp;subpixels to the right. The bitmap offset values are adjusted accordingly, so clients shouldn't need to modify their layout and glyph positioning code when enabling the filter.</p>
<p>The ClearType and Harmony rendering is applicable to glyph bitmaps rendered through <code><a href="ft2-base_interface.html#ft_render_glyph">FT_Render_Glyph</a></code>, <code><a href="ft2-base_interface.html#ft_load_glyph">FT_Load_Glyph</a></code>, <code><a href="ft2-base_interface.html#ft_load_char">FT_Load_Char</a></code>, and <code><a href="ft2-glyph_management.html#ft_glyph_to_bitmap">FT_Glyph_To_Bitmap</a></code>, when <code><a href="ft2-base_interface.html#ft_render_mode">FT_RENDER_MODE_LCD</a></code> or <code><a href="ft2-base_interface.html#ft_render_mode">FT_RENDER_MODE_LCD_V</a></code> is specified. This API does not control <code><a href="ft2-outline_processing.html#ft_outline_render">FT_Outline_Render</a></code> and <code><a href="ft2-outline_processing.html#ft_outline_get_bitmap">FT_Outline_Get_Bitmap</a></code>.</p>
<p>The described algorithms can completely remove color artefacts when combined with gamma-corrected alpha blending in linear space. Each of the 3&nbsp;alpha values (subpixels) must by independently used to blend one color channel. That is, red alpha blends the red channel of the text color with the red channel of the background pixel.</p>
<h2 id="ft_lcdfilter">FT_LcdFilter<a class="headerlink" href="#ft_lcdfilter" title="Permanent link">&para;</a></h2>
@@ -1179,7 +1252,6 @@
<p>A list of values to identify various types of LCD filters.</p>
<h4>values</h4>
-
<table class="fields">
<tr><td class="val" id="ft_lcd_filter_none">FT_LCD_FILTER_NONE</td><td class="desc">
<p>Do not perform filtering. When used with subpixel rendering, this results in sometimes severe color fringes.</p>
@@ -1212,7 +1284,6 @@
<p>This function is used to change filter applied to LCD decimated bitmaps, like the ones used when calling <code><a href="ft2-base_interface.html#ft_render_glyph">FT_Render_Glyph</a></code> with <code><a href="ft2-base_interface.html#ft_render_mode">FT_RENDER_MODE_LCD</a></code> or <code><a href="ft2-base_interface.html#ft_render_mode">FT_RENDER_MODE_LCD_V</a></code>.</p>
<h4>input</h4>
-
<table class="fields">
<tr><td class="val" id="library">library</td><td class="desc">
<p>A handle to the target library instance.</p>
@@ -1244,7 +1315,6 @@
<p>This function can be used to enable LCD filter with custom weights, instead of using presets in <code><a href="ft2-lcd_rendering.html#ft_library_setlcdfilter">FT_Library_SetLcdFilter</a></code>.</p>
<h4>input</h4>
-
<table class="fields">
<tr><td class="val" id="library">library</td><td class="desc">
<p>A handle to the target library instance.</p>
@@ -1288,7 +1358,6 @@
<p>This function can be used to modify default positions of color subpixels, which controls Harmony LCD rendering.</p>
<h4>input</h4>
-
<table class="fields">
<tr><td class="val" id="library">library</td><td class="desc">
<p>A handle to the target library instance.</p>
@@ -1324,9 +1393,6 @@
<p>2.10.0</p>
<hr>
-
-
-
@@ -1336,59 +1402,60 @@
</article>
</div>
</div>
+
</main>
<footer class="md-footer">
- <div class="md-footer-nav">
- <nav class="md-footer-nav__inner md-grid">
+ <nav class="md-footer__inner md-grid" aria-label="Footer">
+
- <a href="ft2-parameter_tags.html" title="Parameter Tags" class="md-flex md-footer-nav__link md-footer-nav__link--prev" rel="prev">
- <div class="md-flex__cell md-flex__cell--shrink">
- <i class="md-icon md-icon--arrow-back md-footer-nav__button"></i>
- </div>
- <div class="md-flex__cell md-flex__cell--stretch md-footer-nav__title">
- <span class="md-flex__ellipsis">
- <span class="md-footer-nav__direction">
- Previous
- </span>
- Parameter Tags
+ <a href="ft2-parameter_tags.html" class="md-footer__link md-footer__link--prev" aria-label="Previous: Parameter Tags" rel="prev">
+ <div class="md-footer__button md-icon">
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M20 11v2H8l5.5 5.5-1.42 1.42L4.16 12l7.92-7.92L13.5 5.5 8 11h12z"/></svg>
+ </div>
+ <div class="md-footer__title">
+ <div class="md-ellipsis">
+ <span class="md-footer__direction">
+ Previous
</span>
+ Parameter Tags
</div>
- </a>
-
+ </div>
+ </a>
+
+
- <a href="ft2-cache_subsystem.html" title="Cache Sub-System" class="md-flex md-footer-nav__link md-footer-nav__link--next" rel="next">
- <div class="md-flex__cell md-flex__cell--stretch md-footer-nav__title">
- <span class="md-flex__ellipsis">
- <span class="md-footer-nav__direction">
- Next
- </span>
- Cache Sub-System
+ <a href="ft2-cache_subsystem.html" class="md-footer__link md-footer__link--next" aria-label="Next: Cache Sub-System" rel="next">
+ <div class="md-footer__title">
+ <div class="md-ellipsis">
+ <span class="md-footer__direction">
+ Next
</span>
+ Cache Sub-System
</div>
- <div class="md-flex__cell md-flex__cell--shrink">
- <i class="md-icon md-icon--arrow-forward md-footer-nav__button"></i>
- </div>
- </a>
-
- </nav>
- </div>
+ </div>
+ <div class="md-footer__button md-icon">
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M4 11v2h12l-5.5 5.5 1.42 1.42L19.84 12l-7.92-7.92L10.5 5.5 16 11H4z"/></svg>
+ </div>
+ </a>
+
+ </nav>
<div class="md-footer-meta md-typeset">
<div class="md-footer-meta__inner md-grid">
<div class="md-footer-copyright">
<div class="md-footer-copyright__highlight">
- Copyright 2020 <a href = "https://www.freetype.org/license.html">The FreeType Project</a>.
+ Copyright 2021 <a href = "https://www.freetype.org/license.html">The FreeType Project</a>.
</div>
- powered by
- <a href="https://www.mkdocs.org" target="_blank" rel="noopener">MkDocs</a>
- and
+ Made with
<a href="https://squidfunk.github.io/mkdocs-material/" target="_blank" rel="noopener">
- Material for MkDocs</a>
+ Material for MkDocs
+ </a>
+
</div>
</div>
@@ -1396,10 +1463,13 @@
</footer>
</div>
+ <div class="md-dialog" data-md-component="dialog">
+ <div class="md-dialog__inner md-typeset"></div>
+ </div>
+ <script id="__config" type="application/json">{"base": ".", "features": [], "translations": {"clipboard.copy": "Copy to clipboard", "clipboard.copied": "Copied to clipboard", "search.config.lang": "en", "search.config.pipeline": "trimmer, stopWordFilter", "search.config.separator": "[\\s\\-]+", "search.placeholder": "Search", "search.result.placeholder": "Type to start searching", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.term.missing": "Missing", "select.version.title": "Select version"}, "search": "assets/javascripts/workers/search.477d984a.min.js", "version": null}</script>
- <script src="assets/javascripts/application.c33a9706.js"></script>
-
- <script>app.initialize({version:"1.1",url:{base:"."}})</script>
+
+ <script src="assets/javascripts/bundle.82b56eb2.min.js"></script>
<script src="javascripts/extra.js"></script>
diff --git a/freetype/docs/reference/ft2-list_processing.html b/freetype/docs/reference/ft2-list_processing.html
index a00dde36..a6b2a95e 100644
--- a/freetype/docs/reference/ft2-list_processing.html
+++ b/freetype/docs/reference/ft2-list_processing.html
@@ -1,145 +1,136 @@
-
-
-
<!doctype html>
<html lang="en" class="no-js">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
- <meta http-equiv="x-ua-compatible" content="ie=edge">
- <meta name="description" content="API Reference Documentation for FreeType-2.10.4">
+ <meta name="description" content="API Reference Documentation for FreeType-2.11.1">
<meta name="author" content="FreeType Contributors">
- <meta name="lang:clipboard.copy" content="Copy to clipboard">
-
- <meta name="lang:clipboard.copied" content="Copied to clipboard">
-
- <meta name="lang:search.language" content="en">
-
- <meta name="lang:search.pipeline.stopwords" content="True">
-
- <meta name="lang:search.pipeline.trimmer" content="True">
-
- <meta name="lang:search.result.none" content="No matching documents">
-
- <meta name="lang:search.result.one" content="1 matching document">
-
- <meta name="lang:search.result.other" content="# matching documents">
-
- <meta name="lang:search.tokenizer" content="[\s\-]+">
-
- <link rel="shortcut icon" href="images/favico.ico">
- <meta name="generator" content="mkdocs-1.1, mkdocs-material-4.6.3">
+ <link rel="icon" href="images/favico.ico">
+ <meta name="generator" content="mkdocs-1.2.1, mkdocs-material-7.1.9">
- <title>List Processing - FreeType-2.10.4 API Reference</title>
+ <title>List Processing - FreeType-2.11.1 API Reference</title>
- <link rel="stylesheet" href="assets/stylesheets/application.adb8469c.css">
-
- <link rel="stylesheet" href="assets/stylesheets/application-palette.a8b3c06d.css">
-
+ <link rel="stylesheet" href="assets/stylesheets/main.ca7ac06f.min.css">
+ <link rel="stylesheet" href="assets/stylesheets/palette.f1a3b89f.min.css">
+
+
+
+ <meta name="theme-color" content="#4cae4f">
- <meta name="theme-color" content="#4caf50">
- <script src="assets/javascripts/modernizr.86422ebf.js"></script>
-
- <link href="https://fonts.gstatic.com" rel="preconnect" crossorigin>
+
+ <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Noto+Serif:300,400,400i,700%7CRoboto+Mono&display=fallback">
- <style>body,input{font-family:"Noto Serif","Helvetica Neue",Helvetica,Arial,sans-serif}code,kbd,pre{font-family:"Roboto Mono","Courier New",Courier,monospace}</style>
+ <style>:root{--md-text-font-family:"Noto Serif";--md-code-font-family:"Roboto Mono"}</style>
- <link rel="stylesheet" href="assets/fonts/material-icons.css">
<link rel="stylesheet" href="stylesheets/extra.css">
+
+
</head>
+
+
+
+
- <body dir="ltr" data-md-color-primary="green" data-md-color-accent="green">
+ <body dir="ltr" data-md-color-scheme="" data-md-color-primary="green" data-md-color-accent="green">
- <svg class="md-svg">
- <defs>
-
-
- </defs>
- </svg>
- <input class="md-toggle" data-md-toggle="drawer" type="checkbox" id="__drawer" autocomplete="off">
- <input class="md-toggle" data-md-toggle="search" type="checkbox" id="__search" autocomplete="off">
- <label class="md-overlay" data-md-component="overlay" for="__drawer"></label>
- <a href="#list-processing" tabindex="0" class="md-skip">
- Skip to content
- </a>
+ <script>function __prefix(e){return new URL(".",location).pathname+"."+e}function __get(e,t=localStorage){return JSON.parse(t.getItem(__prefix(e)))}</script>
+ <input class="md-toggle" data-md-toggle="drawer" type="checkbox" id="__drawer" autocomplete="off">
+ <input class="md-toggle" data-md-toggle="search" type="checkbox" id="__search" autocomplete="off">
+ <label class="md-overlay" for="__drawer"></label>
+ <div data-md-component="skip">
+
+
+ <a href="#list-processing" class="md-skip">
+ Skip to content
+ </a>
+
+ </div>
+ <div data-md-component="announce">
+
+ </div>
<header class="md-header" data-md-component="header">
- <nav class="md-header-nav md-grid">
- <div class="md-flex">
- <div class="md-flex__cell md-flex__cell--shrink">
- <a href="." title="FreeType-2.10.4 API Reference" aria-label="FreeType-2.10.4 API Reference" class="md-header-nav__button md-logo">
-
- <img alt="logo" src="images/favico.ico" width="24" height="24">
-
- </a>
- </div>
- <div class="md-flex__cell md-flex__cell--shrink">
- <label class="md-icon md-icon--menu md-header-nav__button" for="__drawer"></label>
- </div>
- <div class="md-flex__cell md-flex__cell--stretch">
- <div class="md-flex__ellipsis md-header-nav__title" data-md-component="title">
-
- <span class="md-header-nav__topic">
- FreeType-2.10.4 API Reference
- </span>
- <span class="md-header-nav__topic">
-
- List Processing
-
- </span>
-
+ <nav class="md-header__inner md-grid" aria-label="Header">
+ <a href="index.html" title="FreeType-2.11.1 API Reference" class="md-header__button md-logo" aria-label="FreeType-2.11.1 API Reference" data-md-component="logo">
+
+ <img src="images/favico.ico" alt="logo">
+
+ </a>
+ <label class="md-header__button md-icon" for="__drawer">
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M3 6h18v2H3V6m0 5h18v2H3v-2m0 5h18v2H3v-2z"/></svg>
+ </label>
+ <div class="md-header__title" data-md-component="header-title">
+ <div class="md-header__ellipsis">
+ <div class="md-header__topic">
+ <span class="md-ellipsis">
+ FreeType-2.11.1 API Reference
+ </span>
+ </div>
+ <div class="md-header__topic" data-md-component="header-topic">
+ <span class="md-ellipsis">
+
+ List Processing
+
+ </span>
</div>
</div>
- <div class="md-flex__cell md-flex__cell--shrink">
-
- <label class="md-icon md-icon--search md-header-nav__button" for="__search"></label>
-
+ </div>
+
+
+
+ <label class="md-header__button md-icon" for="__search">
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M9.5 3A6.5 6.5 0 0 1 16 9.5c0 1.61-.59 3.09-1.56 4.23l.27.27h.79l5 5-1.5 1.5-5-5v-.79l-.27-.27A6.516 6.516 0 0 1 9.5 16 6.5 6.5 0 0 1 3 9.5 6.5 6.5 0 0 1 9.5 3m0 2C7 5 5 7 5 9.5S7 14 9.5 14 14 12 14 9.5 12 5 9.5 5z"/></svg>
+ </label>
+
<div class="md-search" data-md-component="search" role="dialog">
<label class="md-search__overlay" for="__search"></label>
<div class="md-search__inner" role="search">
<form class="md-search__form" name="search">
- <input type="text" class="md-search__input" aria-label="search" name="query" placeholder="Search" autocapitalize="off" autocorrect="off" autocomplete="off" spellcheck="false" data-md-component="query" data-md-state="active">
- <label class="md-icon md-search__icon" for="__search"></label>
- <button type="reset" class="md-icon md-search__icon" data-md-component="reset" tabindex="-1">
- &#xE5CD;
+ <input type="text" class="md-search__input" name="query" aria-label="Search" placeholder="Search" autocapitalize="off" autocorrect="off" autocomplete="off" spellcheck="false" data-md-component="search-query" data-md-state="active" required>
+ <label class="md-search__icon md-icon" for="__search">
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M9.5 3A6.5 6.5 0 0 1 16 9.5c0 1.61-.59 3.09-1.56 4.23l.27.27h.79l5 5-1.5 1.5-5-5v-.79l-.27-.27A6.516 6.516 0 0 1 9.5 16 6.5 6.5 0 0 1 3 9.5 6.5 6.5 0 0 1 9.5 3m0 2C7 5 5 7 5 9.5S7 14 9.5 14 14 12 14 9.5 12 5 9.5 5z"/></svg>
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M20 11v2H8l5.5 5.5-1.42 1.42L4.16 12l7.92-7.92L13.5 5.5 8 11h12z"/></svg>
+ </label>
+ <button type="reset" class="md-search__icon md-icon" aria-label="Clear" tabindex="-1">
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z"/></svg>
</button>
</form>
<div class="md-search__output">
<div class="md-search__scrollwrap" data-md-scrollfix>
- <div class="md-search-result" data-md-component="result">
+ <div class="md-search-result" data-md-component="search-result">
<div class="md-search-result__meta">
- Type to start searching
+ Initializing search
</div>
<ol class="md-search-result__list"></ol>
</div>
@@ -147,33 +138,35 @@
</div>
</div>
</div>
-
- </div>
-
- </div>
+
+
</nav>
</header>
- <div class="md-container">
+ <div class="md-container" data-md-component="container">
-
+
- <main class="md-main" role="main">
- <div class="md-main__inner md-grid" data-md-component="container">
+ <main class="md-main" data-md-component="main">
+ <div class="md-main__inner md-grid">
- <div class="md-sidebar md-sidebar--primary" data-md-component="navigation">
+
+ <div class="md-sidebar md-sidebar--primary" data-md-component="sidebar" data-md-type="navigation" >
<div class="md-sidebar__scrollwrap">
<div class="md-sidebar__inner">
- <nav class="md-nav md-nav--primary" data-md-level="0">
- <label class="md-nav__title md-nav__title--site" for="__drawer">
- <a href="." title="FreeType-2.10.4 API Reference" class="md-nav__button md-logo">
-
- <img alt="logo" src="images/favico.ico" width="48" height="48">
+
+
+
+<nav class="md-nav md-nav--primary" aria-label="Navigation" data-md-level="0">
+ <label class="md-nav__title" for="__drawer">
+ <a href="index.html" title="FreeType-2.11.1 API Reference" class="md-nav__button md-logo" aria-label="FreeType-2.11.1 API Reference" data-md-component="logo">
+ <img src="images/favico.ico" alt="logo">
+
</a>
- FreeType-2.10.4 API Reference
+ FreeType-2.11.1 API Reference
</label>
<ul class="md-nav__list" data-md-scrollfix>
@@ -182,516 +175,564 @@
-
- <li class="md-nav__item">
- <a href="index.html" title="TOC" class="md-nav__link">
- TOC
- </a>
- </li>
+
+
+
+ <li class="md-nav__item">
+ <a href="index.html" class="md-nav__link">
+ TOC
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-index.html" title="Index" class="md-nav__link">
- Index
- </a>
- </li>
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-index.html" class="md-nav__link">
+ Index
+ </a>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-3" type="checkbox" id="nav-3">
+
+
+
- <label class="md-nav__link" for="nav-3">
- General Remarks
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-3">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_3" type="checkbox" id="__nav_3" >
+
+ <label class="md-nav__link" for="__nav_3">
General Remarks
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
-
+ <nav class="md-nav" aria-label="General Remarks" data-md-level="1">
+ <label class="md-nav__title" for="__nav_3">
+ <span class="md-nav__icon md-icon"></span>
+ General Remarks
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
-
-
-
- <li class="md-nav__item">
- <a href="ft2-header_inclusion.html" title="FreeType's header inclusion scheme" class="md-nav__link">
- FreeType's header inclusion scheme
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-preamble.html" class="md-nav__link">
+ Preamble
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-header_inclusion.html" class="md-nav__link">
+ FreeType's header inclusion scheme
+ </a>
+ </li>
+
+
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-user_allocation.html" class="md-nav__link">
+ User allocation
+ </a>
+ </li>
+
- <li class="md-nav__item">
- <a href="ft2-user_allocation.html" title="User allocation" class="md-nav__link">
- User allocation
- </a>
- </li>
-
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-4" type="checkbox" id="nav-4">
+
+
+
- <label class="md-nav__link" for="nav-4">
- Core API
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-4">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_4" type="checkbox" id="__nav_4" >
+
+ <label class="md-nav__link" for="__nav_4">
Core API
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
-
+ <nav class="md-nav" aria-label="Core API" data-md-level="1">
+ <label class="md-nav__title" for="__nav_4">
+ <span class="md-nav__icon md-icon"></span>
+ Core API
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
-
-
-
- <li class="md-nav__item">
- <a href="ft2-version.html" title="FreeType Version" class="md-nav__link">
- FreeType Version
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-version.html" class="md-nav__link">
+ FreeType Version
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-basic_types.html" class="md-nav__link">
+ Basic Data Types
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-basic_types.html" title="Basic Data Types" class="md-nav__link">
- Basic Data Types
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-base_interface.html" title="Base Interface" class="md-nav__link">
- Base Interface
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-base_interface.html" class="md-nav__link">
+ Base Interface
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-glyph_variants.html" class="md-nav__link">
+ Unicode Variation Sequences
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-glyph_variants.html" title="Unicode Variation Sequences" class="md-nav__link">
- Unicode Variation Sequences
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-color_management.html" title="Glyph Color Management" class="md-nav__link">
- Glyph Color Management
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-color_management.html" class="md-nav__link">
+ Glyph Color Management
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-layer_management.html" title="Glyph Layer Management" class="md-nav__link">
- Glyph Layer Management
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-layer_management.html" class="md-nav__link">
+ Glyph Layer Management
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-glyph_management.html" title="Glyph Management" class="md-nav__link">
- Glyph Management
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-glyph_management.html" class="md-nav__link">
+ Glyph Management
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-mac_specific.html" class="md-nav__link">
+ Mac Specific Interface
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-mac_specific.html" title="Mac Specific Interface" class="md-nav__link">
- Mac Specific Interface
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-sizes_management.html" title="Size Management" class="md-nav__link">
- Size Management
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-sizes_management.html" class="md-nav__link">
+ Size Management
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-header_file_macros.html" title="Header File Macros" class="md-nav__link">
- Header File Macros
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-header_file_macros.html" class="md-nav__link">
+ Header File Macros
+ </a>
+ </li>
+
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-5" type="checkbox" id="nav-5">
+
+
+
- <label class="md-nav__link" for="nav-5">
- Format-Specific API
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-5">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_5" type="checkbox" id="__nav_5" >
+
+ <label class="md-nav__link" for="__nav_5">
Format-Specific API
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
-
+ <nav class="md-nav" aria-label="Format-Specific API" data-md-level="1">
+ <label class="md-nav__title" for="__nav_5">
+ <span class="md-nav__icon md-icon"></span>
+ Format-Specific API
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
-
-
-
- <li class="md-nav__item">
- <a href="ft2-multiple_masters.html" title="Multiple Masters" class="md-nav__link">
- Multiple Masters
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-multiple_masters.html" class="md-nav__link">
+ Multiple Masters
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-truetype_tables.html" title="TrueType Tables" class="md-nav__link">
- TrueType Tables
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-truetype_tables.html" class="md-nav__link">
+ TrueType Tables
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-type1_tables.html" title="Type 1 Tables" class="md-nav__link">
- Type 1 Tables
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-type1_tables.html" class="md-nav__link">
+ Type 1 Tables
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-sfnt_names.html" class="md-nav__link">
+ SFNT Names
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-sfnt_names.html" title="SFNT Names" class="md-nav__link">
- SFNT Names
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-bdf_fonts.html" title="BDF and PCF Files" class="md-nav__link">
- BDF and PCF Files
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-bdf_fonts.html" class="md-nav__link">
+ BDF and PCF Files
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-cid_fonts.html" title="CID Fonts" class="md-nav__link">
- CID Fonts
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-cid_fonts.html" class="md-nav__link">
+ CID Fonts
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-pfr_fonts.html" title="PFR Fonts" class="md-nav__link">
- PFR Fonts
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-pfr_fonts.html" class="md-nav__link">
+ PFR Fonts
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-winfnt_fonts.html" class="md-nav__link">
+ Window FNT Files
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-winfnt_fonts.html" title="Window FNT Files" class="md-nav__link">
- Window FNT Files
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-font_formats.html" title="Font Formats" class="md-nav__link">
- Font Formats
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-font_formats.html" class="md-nav__link">
+ Font Formats
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-gasp_table.html" title="Gasp Table" class="md-nav__link">
- Gasp Table
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-gasp_table.html" class="md-nav__link">
+ Gasp Table
+ </a>
+ </li>
+
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-6" type="checkbox" id="nav-6">
+
+
+
- <label class="md-nav__link" for="nav-6">
- Controlling FreeType Modules
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-6">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_6" type="checkbox" id="__nav_6" >
+
+ <label class="md-nav__link" for="__nav_6">
Controlling FreeType Modules
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
-
-
+ <nav class="md-nav" aria-label="Controlling FreeType Modules" data-md-level="1">
+ <label class="md-nav__title" for="__nav_6">
+ <span class="md-nav__icon md-icon"></span>
+ Controlling FreeType Modules
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-auto_hinter.html" class="md-nav__link">
+ The auto-hinter
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-auto_hinter.html" title="The auto-hinter" class="md-nav__link">
- The auto-hinter
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-cff_driver.html" title="The CFF driver" class="md-nav__link">
- The CFF driver
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-cff_driver.html" class="md-nav__link">
+ The CFF driver
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-t1_cid_driver.html" class="md-nav__link">
+ The Type 1 and CID drivers
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-t1_cid_driver.html" title="The Type 1 and CID drivers" class="md-nav__link">
- The Type 1 and CID drivers
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-tt_driver.html" title="The TrueType driver" class="md-nav__link">
- The TrueType driver
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-tt_driver.html" class="md-nav__link">
+ The TrueType driver
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-pcf_driver.html" class="md-nav__link">
+ The PCF driver
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-pcf_driver.html" title="The PCF driver" class="md-nav__link">
- The PCF driver
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-properties.html" title="Driver properties" class="md-nav__link">
- Driver properties
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-properties.html" class="md-nav__link">
+ Driver properties
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-parameter_tags.html" class="md-nav__link">
+ Parameter Tags
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-parameter_tags.html" title="Parameter Tags" class="md-nav__link">
- Parameter Tags
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-lcd_rendering.html" title="Subpixel Rendering" class="md-nav__link">
- Subpixel Rendering
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-lcd_rendering.html" class="md-nav__link">
+ Subpixel Rendering
+ </a>
+ </li>
+
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-7" type="checkbox" id="nav-7">
+
+
+
- <label class="md-nav__link" for="nav-7">
- Cache Sub-System
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-7">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_7" type="checkbox" id="__nav_7" >
+
+ <label class="md-nav__link" for="__nav_7">
Cache Sub-System
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
-
+ <nav class="md-nav" aria-label="Cache Sub-System" data-md-level="1">
+ <label class="md-nav__title" for="__nav_7">
+ <span class="md-nav__icon md-icon"></span>
+ Cache Sub-System
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
-
-
-
- <li class="md-nav__item">
- <a href="ft2-cache_subsystem.html" title="Cache Sub-System" class="md-nav__link">
- Cache Sub-System
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-cache_subsystem.html" class="md-nav__link">
+ Cache Sub-System
+ </a>
+ </li>
+
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
@@ -699,65 +740,75 @@
-
-
- <li class="md-nav__item md-nav__item--active md-nav__item--nested">
+
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-8" type="checkbox" id="nav-8" checked>
+
+
- <label class="md-nav__link" for="nav-8">
- Support API
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-8">
+ <li class="md-nav__item md-nav__item--active md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_8" type="checkbox" id="__nav_8" checked>
+
+ <label class="md-nav__link" for="__nav_8">
Support API
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
+ <nav class="md-nav" aria-label="Support API" data-md-level="1">
+ <label class="md-nav__title" for="__nav_8">
+ <span class="md-nav__icon md-icon"></span>
+ Support API
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-computations.html" title="Computations" class="md-nav__link">
- Computations
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-computations.html" class="md-nav__link">
+ Computations
+ </a>
+ </li>
+
-
-
-
-
+
+
-
-
- <li class="md-nav__item md-nav__item--active">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="toc" type="checkbox" id="__toc">
+
+
+ <li class="md-nav__item md-nav__item--active">
-
-
- <label class="md-nav__link md-nav__link--active" for="__toc">
+ <input class="md-nav__toggle md-toggle" data-md-toggle="toc" type="checkbox" id="__toc">
+
+
+
+
+
+ <label class="md-nav__link md-nav__link--active" for="__toc">
+ List Processing
+ <span class="md-nav__icon md-icon"></span>
+ </label>
+
+ <a href="ft2-list_processing.html" class="md-nav__link md-nav__link--active">
List Processing
- </label>
-
- <a href="ft2-list_processing.html" title="List Processing" class="md-nav__link md-nav__link--active">
- List Processing
- </a>
-
+ </a>
-<nav class="md-nav md-nav--secondary">
+
+<nav class="md-nav md-nav--secondary" aria-label="Table of contents">
+
- <label class="md-nav__title" for="__toc">Table of contents</label>
- <ul class="md-nav__list" data-md-scrollfix>
+ <label class="md-nav__title" for="__toc">
+ <span class="md-nav__icon md-icon"></span>
+ Table of contents
+ </label>
+ <ul class="md-nav__list" data-md-component="toc" data-md-scrollfix>
<li class="md-nav__item">
<a href="#synopsis" class="md-nav__link">
@@ -857,260 +908,282 @@
</li>
-
-
-
-
</ul>
</nav>
-
- </li>
+
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-outline_processing.html" class="md-nav__link">
+ Outline Processing
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-outline_processing.html" title="Outline Processing" class="md-nav__link">
- Outline Processing
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-quick_advance.html" title="Quick retrieval of advance values" class="md-nav__link">
- Quick retrieval of advance values
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-quick_advance.html" class="md-nav__link">
+ Quick retrieval of advance values
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-bitmap_handling.html" title="Bitmap Handling" class="md-nav__link">
- Bitmap Handling
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-bitmap_handling.html" class="md-nav__link">
+ Bitmap Handling
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-raster.html" title="Scanline Converter" class="md-nav__link">
- Scanline Converter
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-raster.html" class="md-nav__link">
+ Scanline Converter
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-glyph_stroker.html" title="Glyph Stroker" class="md-nav__link">
- Glyph Stroker
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-glyph_stroker.html" class="md-nav__link">
+ Glyph Stroker
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-system_interface.html" title="System Interface" class="md-nav__link">
- System Interface
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-system_interface.html" class="md-nav__link">
+ System Interface
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-module_management.html" title="Module Management" class="md-nav__link">
- Module Management
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-module_management.html" class="md-nav__link">
+ Module Management
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-gzip.html" title="GZIP Streams" class="md-nav__link">
- GZIP Streams
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-gzip.html" class="md-nav__link">
+ GZIP Streams
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-lzw.html" title="LZW Streams" class="md-nav__link">
- LZW Streams
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-lzw.html" class="md-nav__link">
+ LZW Streams
+ </a>
+ </li>
+
-
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-bzip2.html" class="md-nav__link">
+ BZIP2 Streams
+ </a>
+ </li>
+
- <li class="md-nav__item">
- <a href="ft2-bzip2.html" title="BZIP2 Streams" class="md-nav__link">
- BZIP2 Streams
- </a>
- </li>
+
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-debugging_apis.html" class="md-nav__link">
+ External Debugging APIs
+ </a>
+ </li>
+
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-9" type="checkbox" id="nav-9">
+
+
+
- <label class="md-nav__link" for="nav-9">
- Error Codes
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-9">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_9" type="checkbox" id="__nav_9" >
+
+ <label class="md-nav__link" for="__nav_9">
Error Codes
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
-
+ <nav class="md-nav" aria-label="Error Codes" data-md-level="1">
+ <label class="md-nav__title" for="__nav_9">
+ <span class="md-nav__icon md-icon"></span>
+ Error Codes
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
-
-
-
- <li class="md-nav__item">
- <a href="ft2-error_enumerations.html" title="Error Enumerations" class="md-nav__link">
- Error Enumerations
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-error_enumerations.html" class="md-nav__link">
+ Error Enumerations
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-error_code_values.html" title="Error Code Values" class="md-nav__link">
- Error Code Values
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-error_code_values.html" class="md-nav__link">
+ Error Code Values
+ </a>
+ </li>
+
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-10" type="checkbox" id="nav-10">
+
+
+
- <label class="md-nav__link" for="nav-10">
- Miscellaneous
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-10">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_10" type="checkbox" id="__nav_10" >
+
+ <label class="md-nav__link" for="__nav_10">
Miscellaneous
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
-
+ <nav class="md-nav" aria-label="Miscellaneous" data-md-level="1">
+ <label class="md-nav__title" for="__nav_10">
+ <span class="md-nav__icon md-icon"></span>
+ Miscellaneous
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
-
-
-
- <li class="md-nav__item">
- <a href="ft2-gx_validation.html" title="TrueTypeGX/AAT Validation" class="md-nav__link">
- TrueTypeGX/AAT Validation
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-gx_validation.html" class="md-nav__link">
+ TrueTypeGX/AAT Validation
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-incremental.html" title="Incremental Loading" class="md-nav__link">
- Incremental Loading
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-incremental.html" class="md-nav__link">
+ Incremental Loading
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-truetype_engine.html" class="md-nav__link">
+ The TrueType Engine
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-truetype_engine.html" title="The TrueType Engine" class="md-nav__link">
- The TrueType Engine
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-ot_validation.html" title="OpenType Validation" class="md-nav__link">
- OpenType Validation
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-ot_validation.html" class="md-nav__link">
+ OpenType Validation
+ </a>
+ </li>
+
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
</ul>
@@ -1120,18 +1193,23 @@
</div>
- <div class="md-sidebar md-sidebar--secondary" data-md-component="toc">
+
+ <div class="md-sidebar md-sidebar--secondary" data-md-component="sidebar" data-md-type="toc" >
<div class="md-sidebar__scrollwrap">
<div class="md-sidebar__inner">
-<nav class="md-nav md-nav--secondary">
+<nav class="md-nav md-nav--secondary" aria-label="Table of contents">
+
- <label class="md-nav__title" for="__toc">Table of contents</label>
- <ul class="md-nav__list" data-md-scrollfix>
+ <label class="md-nav__title" for="__toc">
+ <span class="md-nav__icon md-icon"></span>
+ Table of contents
+ </label>
+ <ul class="md-nav__list" data-md-component="toc" data-md-scrollfix>
<li class="md-nav__item">
<a href="#synopsis" class="md-nav__link">
@@ -1231,10 +1309,6 @@
</li>
-
-
-
-
</ul>
</nav>
@@ -1243,7 +1317,7 @@
</div>
- <div class="md-content">
+ <div class="md-content" data-md-component="content">
<article class="md-content__inner md-typeset">
@@ -1281,7 +1355,6 @@
<p>A structure used to hold a simple doubly-linked list. These are used in many parts of FreeType.</p>
<h4>fields</h4>
-
<table class="fields">
<tr><td class="val" id="head">head</td><td class="desc">
<p>The head (first element) of doubly-linked list.</p>
@@ -1306,7 +1379,6 @@
<p>A structure used to hold a single list element.</p>
<h4>fields</h4>
-
<table class="fields">
<tr><td class="val" id="prev">prev</td><td class="desc">
<p>The previous element in the list. <code>NULL</code> if first.</p>
@@ -1330,7 +1402,6 @@
<p>Append an element to the end of a list.</p>
<h4>inout</h4>
-
<table class="fields">
<tr><td class="val" id="list">list</td><td class="desc">
<p>A pointer to the parent list.</p>
@@ -1351,7 +1422,6 @@
<p>Insert an element at the head of a list.</p>
<h4>inout</h4>
-
<table class="fields">
<tr><td class="val" id="list">list</td><td class="desc">
<p>A pointer to parent list.</p>
@@ -1372,7 +1442,6 @@
<p>Find the list node for a given listed object.</p>
<h4>input</h4>
-
<table class="fields">
<tr><td class="val" id="list">list</td><td class="desc">
<p>A pointer to the parent list.</p>
@@ -1396,7 +1465,6 @@
<p>Remove a node from a list. This function doesn't check whether the node is in the list!</p>
<h4>input</h4>
-
<table class="fields">
<tr><td class="val" id="node">node</td><td class="desc">
<p>The node to remove.</p>
@@ -1404,7 +1472,6 @@
</table>
<h4>inout</h4>
-
<table class="fields">
<tr><td class="val" id="list">list</td><td class="desc">
<p>A pointer to the parent list.</p>
@@ -1422,7 +1489,6 @@
<p>Move a node to the head/top of a list. Used to maintain LRU lists.</p>
<h4>inout</h4>
-
<table class="fields">
<tr><td class="val" id="list">list</td><td class="desc">
<p>A pointer to the parent list.</p>
@@ -1444,7 +1510,6 @@
<p>Parse a list and calls a given iterator function on each element. Note that parsing is stopped as soon as one of the iterator calls returns a non-zero value.</p>
<h4>input</h4>
-
<table class="fields">
<tr><td class="val" id="list">list</td><td class="desc">
<p>A handle to the list.</p>
@@ -1471,7 +1536,6 @@
<p>An FT_List iterator function that is called during a list parse by <code><a href="ft2-list_processing.html#ft_list_iterate">FT_List_Iterate</a></code>.</p>
<h4>input</h4>
-
<table class="fields">
<tr><td class="val" id="node">node</td><td class="desc">
<p>The current iteration list node.</p>
@@ -1494,7 +1558,6 @@
<p>Destroy all elements in the list as well as the list itself.</p>
<h4>input</h4>
-
<table class="fields">
<tr><td class="val" id="list">list</td><td class="desc">
<p>A handle to the list.</p>
@@ -1525,7 +1588,6 @@
<p>An <code><a href="ft2-list_processing.html#ft_list">FT_List</a></code> iterator function that is called during a list finalization by <code><a href="ft2-list_processing.html#ft_list_finalize">FT_List_Finalize</a></code> to destroy all elements in a given list.</p>
<h4>input</h4>
-
<table class="fields">
<tr><td class="val" id="system">system</td><td class="desc">
<p>The current system object.</p>
@@ -1540,9 +1602,6 @@
<hr>
-
-
-
@@ -1552,59 +1611,60 @@
</article>
</div>
</div>
+
</main>
<footer class="md-footer">
- <div class="md-footer-nav">
- <nav class="md-footer-nav__inner md-grid">
+ <nav class="md-footer__inner md-grid" aria-label="Footer">
+
- <a href="ft2-computations.html" title="Computations" class="md-flex md-footer-nav__link md-footer-nav__link--prev" rel="prev">
- <div class="md-flex__cell md-flex__cell--shrink">
- <i class="md-icon md-icon--arrow-back md-footer-nav__button"></i>
- </div>
- <div class="md-flex__cell md-flex__cell--stretch md-footer-nav__title">
- <span class="md-flex__ellipsis">
- <span class="md-footer-nav__direction">
- Previous
- </span>
- Computations
+ <a href="ft2-computations.html" class="md-footer__link md-footer__link--prev" aria-label="Previous: Computations" rel="prev">
+ <div class="md-footer__button md-icon">
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M20 11v2H8l5.5 5.5-1.42 1.42L4.16 12l7.92-7.92L13.5 5.5 8 11h12z"/></svg>
+ </div>
+ <div class="md-footer__title">
+ <div class="md-ellipsis">
+ <span class="md-footer__direction">
+ Previous
</span>
+ Computations
</div>
- </a>
-
+ </div>
+ </a>
+
+
- <a href="ft2-outline_processing.html" title="Outline Processing" class="md-flex md-footer-nav__link md-footer-nav__link--next" rel="next">
- <div class="md-flex__cell md-flex__cell--stretch md-footer-nav__title">
- <span class="md-flex__ellipsis">
- <span class="md-footer-nav__direction">
- Next
- </span>
- Outline Processing
+ <a href="ft2-outline_processing.html" class="md-footer__link md-footer__link--next" aria-label="Next: Outline Processing" rel="next">
+ <div class="md-footer__title">
+ <div class="md-ellipsis">
+ <span class="md-footer__direction">
+ Next
</span>
+ Outline Processing
</div>
- <div class="md-flex__cell md-flex__cell--shrink">
- <i class="md-icon md-icon--arrow-forward md-footer-nav__button"></i>
- </div>
- </a>
-
- </nav>
- </div>
+ </div>
+ <div class="md-footer__button md-icon">
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M4 11v2h12l-5.5 5.5 1.42 1.42L19.84 12l-7.92-7.92L10.5 5.5 16 11H4z"/></svg>
+ </div>
+ </a>
+
+ </nav>
<div class="md-footer-meta md-typeset">
<div class="md-footer-meta__inner md-grid">
<div class="md-footer-copyright">
<div class="md-footer-copyright__highlight">
- Copyright 2020 <a href = "https://www.freetype.org/license.html">The FreeType Project</a>.
+ Copyright 2021 <a href = "https://www.freetype.org/license.html">The FreeType Project</a>.
</div>
- powered by
- <a href="https://www.mkdocs.org" target="_blank" rel="noopener">MkDocs</a>
- and
+ Made with
<a href="https://squidfunk.github.io/mkdocs-material/" target="_blank" rel="noopener">
- Material for MkDocs</a>
+ Material for MkDocs
+ </a>
+
</div>
</div>
@@ -1612,10 +1672,13 @@
</footer>
</div>
+ <div class="md-dialog" data-md-component="dialog">
+ <div class="md-dialog__inner md-typeset"></div>
+ </div>
+ <script id="__config" type="application/json">{"base": ".", "features": [], "translations": {"clipboard.copy": "Copy to clipboard", "clipboard.copied": "Copied to clipboard", "search.config.lang": "en", "search.config.pipeline": "trimmer, stopWordFilter", "search.config.separator": "[\\s\\-]+", "search.placeholder": "Search", "search.result.placeholder": "Type to start searching", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.term.missing": "Missing", "select.version.title": "Select version"}, "search": "assets/javascripts/workers/search.477d984a.min.js", "version": null}</script>
- <script src="assets/javascripts/application.c33a9706.js"></script>
-
- <script>app.initialize({version:"1.1",url:{base:"."}})</script>
+
+ <script src="assets/javascripts/bundle.82b56eb2.min.js"></script>
<script src="javascripts/extra.js"></script>
diff --git a/freetype/docs/reference/ft2-lzw.html b/freetype/docs/reference/ft2-lzw.html
index 03c9e649..b2698521 100644
--- a/freetype/docs/reference/ft2-lzw.html
+++ b/freetype/docs/reference/ft2-lzw.html
@@ -1,145 +1,136 @@
-
-
-
<!doctype html>
<html lang="en" class="no-js">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
- <meta http-equiv="x-ua-compatible" content="ie=edge">
- <meta name="description" content="API Reference Documentation for FreeType-2.10.4">
+ <meta name="description" content="API Reference Documentation for FreeType-2.11.1">
<meta name="author" content="FreeType Contributors">
- <meta name="lang:clipboard.copy" content="Copy to clipboard">
-
- <meta name="lang:clipboard.copied" content="Copied to clipboard">
-
- <meta name="lang:search.language" content="en">
-
- <meta name="lang:search.pipeline.stopwords" content="True">
-
- <meta name="lang:search.pipeline.trimmer" content="True">
-
- <meta name="lang:search.result.none" content="No matching documents">
-
- <meta name="lang:search.result.one" content="1 matching document">
-
- <meta name="lang:search.result.other" content="# matching documents">
-
- <meta name="lang:search.tokenizer" content="[\s\-]+">
-
- <link rel="shortcut icon" href="images/favico.ico">
- <meta name="generator" content="mkdocs-1.1, mkdocs-material-4.6.3">
+ <link rel="icon" href="images/favico.ico">
+ <meta name="generator" content="mkdocs-1.2.1, mkdocs-material-7.1.9">
- <title>LZW Streams - FreeType-2.10.4 API Reference</title>
+ <title>LZW Streams - FreeType-2.11.1 API Reference</title>
- <link rel="stylesheet" href="assets/stylesheets/application.adb8469c.css">
-
- <link rel="stylesheet" href="assets/stylesheets/application-palette.a8b3c06d.css">
-
+ <link rel="stylesheet" href="assets/stylesheets/main.ca7ac06f.min.css">
+ <link rel="stylesheet" href="assets/stylesheets/palette.f1a3b89f.min.css">
+
+
+
+ <meta name="theme-color" content="#4cae4f">
- <meta name="theme-color" content="#4caf50">
- <script src="assets/javascripts/modernizr.86422ebf.js"></script>
-
- <link href="https://fonts.gstatic.com" rel="preconnect" crossorigin>
+
+ <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Noto+Serif:300,400,400i,700%7CRoboto+Mono&display=fallback">
- <style>body,input{font-family:"Noto Serif","Helvetica Neue",Helvetica,Arial,sans-serif}code,kbd,pre{font-family:"Roboto Mono","Courier New",Courier,monospace}</style>
+ <style>:root{--md-text-font-family:"Noto Serif";--md-code-font-family:"Roboto Mono"}</style>
- <link rel="stylesheet" href="assets/fonts/material-icons.css">
<link rel="stylesheet" href="stylesheets/extra.css">
+
+
</head>
+
+
+
+
- <body dir="ltr" data-md-color-primary="green" data-md-color-accent="green">
+ <body dir="ltr" data-md-color-scheme="" data-md-color-primary="green" data-md-color-accent="green">
- <svg class="md-svg">
- <defs>
-
-
- </defs>
- </svg>
- <input class="md-toggle" data-md-toggle="drawer" type="checkbox" id="__drawer" autocomplete="off">
- <input class="md-toggle" data-md-toggle="search" type="checkbox" id="__search" autocomplete="off">
- <label class="md-overlay" data-md-component="overlay" for="__drawer"></label>
- <a href="#lzw-streams" tabindex="0" class="md-skip">
- Skip to content
- </a>
+ <script>function __prefix(e){return new URL(".",location).pathname+"."+e}function __get(e,t=localStorage){return JSON.parse(t.getItem(__prefix(e)))}</script>
+ <input class="md-toggle" data-md-toggle="drawer" type="checkbox" id="__drawer" autocomplete="off">
+ <input class="md-toggle" data-md-toggle="search" type="checkbox" id="__search" autocomplete="off">
+ <label class="md-overlay" for="__drawer"></label>
+ <div data-md-component="skip">
+
+
+ <a href="#lzw-streams" class="md-skip">
+ Skip to content
+ </a>
+
+ </div>
+ <div data-md-component="announce">
+
+ </div>
<header class="md-header" data-md-component="header">
- <nav class="md-header-nav md-grid">
- <div class="md-flex">
- <div class="md-flex__cell md-flex__cell--shrink">
- <a href="." title="FreeType-2.10.4 API Reference" aria-label="FreeType-2.10.4 API Reference" class="md-header-nav__button md-logo">
-
- <img alt="logo" src="images/favico.ico" width="24" height="24">
-
- </a>
- </div>
- <div class="md-flex__cell md-flex__cell--shrink">
- <label class="md-icon md-icon--menu md-header-nav__button" for="__drawer"></label>
- </div>
- <div class="md-flex__cell md-flex__cell--stretch">
- <div class="md-flex__ellipsis md-header-nav__title" data-md-component="title">
-
- <span class="md-header-nav__topic">
- FreeType-2.10.4 API Reference
- </span>
- <span class="md-header-nav__topic">
-
- LZW Streams
-
- </span>
-
+ <nav class="md-header__inner md-grid" aria-label="Header">
+ <a href="index.html" title="FreeType-2.11.1 API Reference" class="md-header__button md-logo" aria-label="FreeType-2.11.1 API Reference" data-md-component="logo">
+
+ <img src="images/favico.ico" alt="logo">
+
+ </a>
+ <label class="md-header__button md-icon" for="__drawer">
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M3 6h18v2H3V6m0 5h18v2H3v-2m0 5h18v2H3v-2z"/></svg>
+ </label>
+ <div class="md-header__title" data-md-component="header-title">
+ <div class="md-header__ellipsis">
+ <div class="md-header__topic">
+ <span class="md-ellipsis">
+ FreeType-2.11.1 API Reference
+ </span>
+ </div>
+ <div class="md-header__topic" data-md-component="header-topic">
+ <span class="md-ellipsis">
+
+ LZW Streams
+
+ </span>
</div>
</div>
- <div class="md-flex__cell md-flex__cell--shrink">
-
- <label class="md-icon md-icon--search md-header-nav__button" for="__search"></label>
-
+ </div>
+
+
+
+ <label class="md-header__button md-icon" for="__search">
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M9.5 3A6.5 6.5 0 0 1 16 9.5c0 1.61-.59 3.09-1.56 4.23l.27.27h.79l5 5-1.5 1.5-5-5v-.79l-.27-.27A6.516 6.516 0 0 1 9.5 16 6.5 6.5 0 0 1 3 9.5 6.5 6.5 0 0 1 9.5 3m0 2C7 5 5 7 5 9.5S7 14 9.5 14 14 12 14 9.5 12 5 9.5 5z"/></svg>
+ </label>
+
<div class="md-search" data-md-component="search" role="dialog">
<label class="md-search__overlay" for="__search"></label>
<div class="md-search__inner" role="search">
<form class="md-search__form" name="search">
- <input type="text" class="md-search__input" aria-label="search" name="query" placeholder="Search" autocapitalize="off" autocorrect="off" autocomplete="off" spellcheck="false" data-md-component="query" data-md-state="active">
- <label class="md-icon md-search__icon" for="__search"></label>
- <button type="reset" class="md-icon md-search__icon" data-md-component="reset" tabindex="-1">
- &#xE5CD;
+ <input type="text" class="md-search__input" name="query" aria-label="Search" placeholder="Search" autocapitalize="off" autocorrect="off" autocomplete="off" spellcheck="false" data-md-component="search-query" data-md-state="active" required>
+ <label class="md-search__icon md-icon" for="__search">
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M9.5 3A6.5 6.5 0 0 1 16 9.5c0 1.61-.59 3.09-1.56 4.23l.27.27h.79l5 5-1.5 1.5-5-5v-.79l-.27-.27A6.516 6.516 0 0 1 9.5 16 6.5 6.5 0 0 1 3 9.5 6.5 6.5 0 0 1 9.5 3m0 2C7 5 5 7 5 9.5S7 14 9.5 14 14 12 14 9.5 12 5 9.5 5z"/></svg>
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M20 11v2H8l5.5 5.5-1.42 1.42L4.16 12l7.92-7.92L13.5 5.5 8 11h12z"/></svg>
+ </label>
+ <button type="reset" class="md-search__icon md-icon" aria-label="Clear" tabindex="-1">
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z"/></svg>
</button>
</form>
<div class="md-search__output">
<div class="md-search__scrollwrap" data-md-scrollfix>
- <div class="md-search-result" data-md-component="result">
+ <div class="md-search-result" data-md-component="search-result">
<div class="md-search-result__meta">
- Type to start searching
+ Initializing search
</div>
<ol class="md-search-result__list"></ol>
</div>
@@ -147,33 +138,35 @@
</div>
</div>
</div>
-
- </div>
-
- </div>
+
+
</nav>
</header>
- <div class="md-container">
+ <div class="md-container" data-md-component="container">
-
+
- <main class="md-main" role="main">
- <div class="md-main__inner md-grid" data-md-component="container">
+ <main class="md-main" data-md-component="main">
+ <div class="md-main__inner md-grid">
- <div class="md-sidebar md-sidebar--primary" data-md-component="navigation">
+
+ <div class="md-sidebar md-sidebar--primary" data-md-component="sidebar" data-md-type="navigation" >
<div class="md-sidebar__scrollwrap">
<div class="md-sidebar__inner">
- <nav class="md-nav md-nav--primary" data-md-level="0">
- <label class="md-nav__title md-nav__title--site" for="__drawer">
- <a href="." title="FreeType-2.10.4 API Reference" class="md-nav__button md-logo">
-
- <img alt="logo" src="images/favico.ico" width="48" height="48">
+
+
+
+<nav class="md-nav md-nav--primary" aria-label="Navigation" data-md-level="0">
+ <label class="md-nav__title" for="__drawer">
+ <a href="index.html" title="FreeType-2.11.1 API Reference" class="md-nav__button md-logo" aria-label="FreeType-2.11.1 API Reference" data-md-component="logo">
+ <img src="images/favico.ico" alt="logo">
+
</a>
- FreeType-2.10.4 API Reference
+ FreeType-2.11.1 API Reference
</label>
<ul class="md-nav__list" data-md-scrollfix>
@@ -182,516 +175,564 @@
-
- <li class="md-nav__item">
- <a href="index.html" title="TOC" class="md-nav__link">
- TOC
- </a>
- </li>
+
+
+
+ <li class="md-nav__item">
+ <a href="index.html" class="md-nav__link">
+ TOC
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-index.html" title="Index" class="md-nav__link">
- Index
- </a>
- </li>
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-index.html" class="md-nav__link">
+ Index
+ </a>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-3" type="checkbox" id="nav-3">
+
+
+
- <label class="md-nav__link" for="nav-3">
- General Remarks
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-3">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_3" type="checkbox" id="__nav_3" >
+
+ <label class="md-nav__link" for="__nav_3">
General Remarks
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
+ <nav class="md-nav" aria-label="General Remarks" data-md-level="1">
+ <label class="md-nav__title" for="__nav_3">
+ <span class="md-nav__icon md-icon"></span>
+ General Remarks
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-header_inclusion.html" title="FreeType's header inclusion scheme" class="md-nav__link">
- FreeType's header inclusion scheme
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-preamble.html" class="md-nav__link">
+ Preamble
+ </a>
+ </li>
+
-
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-header_inclusion.html" class="md-nav__link">
+ FreeType's header inclusion scheme
+ </a>
+ </li>
+
- <li class="md-nav__item">
- <a href="ft2-user_allocation.html" title="User allocation" class="md-nav__link">
- User allocation
- </a>
- </li>
+
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-user_allocation.html" class="md-nav__link">
+ User allocation
+ </a>
+ </li>
+
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-4" type="checkbox" id="nav-4">
+
+
+
- <label class="md-nav__link" for="nav-4">
- Core API
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-4">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_4" type="checkbox" id="__nav_4" >
+
+ <label class="md-nav__link" for="__nav_4">
Core API
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
-
-
+ <nav class="md-nav" aria-label="Core API" data-md-level="1">
+ <label class="md-nav__title" for="__nav_4">
+ <span class="md-nav__icon md-icon"></span>
+ Core API
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-version.html" class="md-nav__link">
+ FreeType Version
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-version.html" title="FreeType Version" class="md-nav__link">
- FreeType Version
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-basic_types.html" title="Basic Data Types" class="md-nav__link">
- Basic Data Types
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-basic_types.html" class="md-nav__link">
+ Basic Data Types
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-base_interface.html" class="md-nav__link">
+ Base Interface
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-base_interface.html" title="Base Interface" class="md-nav__link">
- Base Interface
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-glyph_variants.html" title="Unicode Variation Sequences" class="md-nav__link">
- Unicode Variation Sequences
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-glyph_variants.html" class="md-nav__link">
+ Unicode Variation Sequences
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-color_management.html" title="Glyph Color Management" class="md-nav__link">
- Glyph Color Management
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-color_management.html" class="md-nav__link">
+ Glyph Color Management
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-layer_management.html" title="Glyph Layer Management" class="md-nav__link">
- Glyph Layer Management
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-layer_management.html" class="md-nav__link">
+ Glyph Layer Management
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-glyph_management.html" title="Glyph Management" class="md-nav__link">
- Glyph Management
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-glyph_management.html" class="md-nav__link">
+ Glyph Management
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-mac_specific.html" title="Mac Specific Interface" class="md-nav__link">
- Mac Specific Interface
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-mac_specific.html" class="md-nav__link">
+ Mac Specific Interface
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-sizes_management.html" title="Size Management" class="md-nav__link">
- Size Management
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-sizes_management.html" class="md-nav__link">
+ Size Management
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-header_file_macros.html" title="Header File Macros" class="md-nav__link">
- Header File Macros
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-header_file_macros.html" class="md-nav__link">
+ Header File Macros
+ </a>
+ </li>
+
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-5" type="checkbox" id="nav-5">
+
+
+
- <label class="md-nav__link" for="nav-5">
- Format-Specific API
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-5">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_5" type="checkbox" id="__nav_5" >
+
+ <label class="md-nav__link" for="__nav_5">
Format-Specific API
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
+ <nav class="md-nav" aria-label="Format-Specific API" data-md-level="1">
+ <label class="md-nav__title" for="__nav_5">
+ <span class="md-nav__icon md-icon"></span>
+ Format-Specific API
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-multiple_masters.html" title="Multiple Masters" class="md-nav__link">
- Multiple Masters
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-multiple_masters.html" class="md-nav__link">
+ Multiple Masters
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-truetype_tables.html" title="TrueType Tables" class="md-nav__link">
- TrueType Tables
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-truetype_tables.html" class="md-nav__link">
+ TrueType Tables
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-type1_tables.html" title="Type 1 Tables" class="md-nav__link">
- Type 1 Tables
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-type1_tables.html" class="md-nav__link">
+ Type 1 Tables
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-sfnt_names.html" title="SFNT Names" class="md-nav__link">
- SFNT Names
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-sfnt_names.html" class="md-nav__link">
+ SFNT Names
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-bdf_fonts.html" class="md-nav__link">
+ BDF and PCF Files
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-bdf_fonts.html" title="BDF and PCF Files" class="md-nav__link">
- BDF and PCF Files
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-cid_fonts.html" title="CID Fonts" class="md-nav__link">
- CID Fonts
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-cid_fonts.html" class="md-nav__link">
+ CID Fonts
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-pfr_fonts.html" class="md-nav__link">
+ PFR Fonts
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-pfr_fonts.html" title="PFR Fonts" class="md-nav__link">
- PFR Fonts
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-winfnt_fonts.html" title="Window FNT Files" class="md-nav__link">
- Window FNT Files
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-winfnt_fonts.html" class="md-nav__link">
+ Window FNT Files
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-font_formats.html" title="Font Formats" class="md-nav__link">
- Font Formats
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-font_formats.html" class="md-nav__link">
+ Font Formats
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-gasp_table.html" title="Gasp Table" class="md-nav__link">
- Gasp Table
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-gasp_table.html" class="md-nav__link">
+ Gasp Table
+ </a>
+ </li>
+
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-6" type="checkbox" id="nav-6">
+
+
+
- <label class="md-nav__link" for="nav-6">
- Controlling FreeType Modules
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-6">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_6" type="checkbox" id="__nav_6" >
+
+ <label class="md-nav__link" for="__nav_6">
Controlling FreeType Modules
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
+ <nav class="md-nav" aria-label="Controlling FreeType Modules" data-md-level="1">
+ <label class="md-nav__title" for="__nav_6">
+ <span class="md-nav__icon md-icon"></span>
+ Controlling FreeType Modules
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-auto_hinter.html" title="The auto-hinter" class="md-nav__link">
- The auto-hinter
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-auto_hinter.html" class="md-nav__link">
+ The auto-hinter
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-cff_driver.html" title="The CFF driver" class="md-nav__link">
- The CFF driver
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-cff_driver.html" class="md-nav__link">
+ The CFF driver
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-t1_cid_driver.html" title="The Type 1 and CID drivers" class="md-nav__link">
- The Type 1 and CID drivers
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-t1_cid_driver.html" class="md-nav__link">
+ The Type 1 and CID drivers
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-tt_driver.html" title="The TrueType driver" class="md-nav__link">
- The TrueType driver
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-tt_driver.html" class="md-nav__link">
+ The TrueType driver
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-pcf_driver.html" title="The PCF driver" class="md-nav__link">
- The PCF driver
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-pcf_driver.html" class="md-nav__link">
+ The PCF driver
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-properties.html" class="md-nav__link">
+ Driver properties
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-properties.html" title="Driver properties" class="md-nav__link">
- Driver properties
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-parameter_tags.html" title="Parameter Tags" class="md-nav__link">
- Parameter Tags
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-parameter_tags.html" class="md-nav__link">
+ Parameter Tags
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-lcd_rendering.html" title="Subpixel Rendering" class="md-nav__link">
- Subpixel Rendering
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-lcd_rendering.html" class="md-nav__link">
+ Subpixel Rendering
+ </a>
+ </li>
+
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-7" type="checkbox" id="nav-7">
+
+
+
- <label class="md-nav__link" for="nav-7">
- Cache Sub-System
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-7">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_7" type="checkbox" id="__nav_7" >
+
+ <label class="md-nav__link" for="__nav_7">
Cache Sub-System
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
-
+ <nav class="md-nav" aria-label="Cache Sub-System" data-md-level="1">
+ <label class="md-nav__title" for="__nav_7">
+ <span class="md-nav__icon md-icon"></span>
+ Cache Sub-System
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
-
-
-
- <li class="md-nav__item">
- <a href="ft2-cache_subsystem.html" title="Cache Sub-System" class="md-nav__link">
- Cache Sub-System
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-cache_subsystem.html" class="md-nav__link">
+ Cache Sub-System
+ </a>
+ </li>
+
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
@@ -699,173 +740,183 @@
-
-
- <li class="md-nav__item md-nav__item--active md-nav__item--nested">
+
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-8" type="checkbox" id="nav-8" checked>
+
+
- <label class="md-nav__link" for="nav-8">
- Support API
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-8">
+ <li class="md-nav__item md-nav__item--active md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_8" type="checkbox" id="__nav_8" checked>
+
+ <label class="md-nav__link" for="__nav_8">
Support API
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
+ <nav class="md-nav" aria-label="Support API" data-md-level="1">
+ <label class="md-nav__title" for="__nav_8">
+ <span class="md-nav__icon md-icon"></span>
+ Support API
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-computations.html" title="Computations" class="md-nav__link">
- Computations
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-computations.html" class="md-nav__link">
+ Computations
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-list_processing.html" title="List Processing" class="md-nav__link">
- List Processing
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-list_processing.html" class="md-nav__link">
+ List Processing
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-outline_processing.html" title="Outline Processing" class="md-nav__link">
- Outline Processing
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-outline_processing.html" class="md-nav__link">
+ Outline Processing
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-quick_advance.html" title="Quick retrieval of advance values" class="md-nav__link">
- Quick retrieval of advance values
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-quick_advance.html" class="md-nav__link">
+ Quick retrieval of advance values
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-bitmap_handling.html" title="Bitmap Handling" class="md-nav__link">
- Bitmap Handling
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-bitmap_handling.html" class="md-nav__link">
+ Bitmap Handling
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-raster.html" title="Scanline Converter" class="md-nav__link">
- Scanline Converter
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-raster.html" class="md-nav__link">
+ Scanline Converter
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-glyph_stroker.html" class="md-nav__link">
+ Glyph Stroker
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-glyph_stroker.html" title="Glyph Stroker" class="md-nav__link">
- Glyph Stroker
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-system_interface.html" title="System Interface" class="md-nav__link">
- System Interface
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-system_interface.html" class="md-nav__link">
+ System Interface
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-module_management.html" class="md-nav__link">
+ Module Management
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-module_management.html" title="Module Management" class="md-nav__link">
- Module Management
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-gzip.html" title="GZIP Streams" class="md-nav__link">
- GZIP Streams
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-gzip.html" class="md-nav__link">
+ GZIP Streams
+ </a>
+ </li>
+
-
-
-
-
+
+
-
-
- <li class="md-nav__item md-nav__item--active">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="toc" type="checkbox" id="__toc">
+
+
+ <li class="md-nav__item md-nav__item--active">
-
-
- <label class="md-nav__link md-nav__link--active" for="__toc">
+ <input class="md-nav__toggle md-toggle" data-md-toggle="toc" type="checkbox" id="__toc">
+
+
+
+
+
+ <label class="md-nav__link md-nav__link--active" for="__toc">
+ LZW Streams
+ <span class="md-nav__icon md-icon"></span>
+ </label>
+
+ <a href="ft2-lzw.html" class="md-nav__link md-nav__link--active">
LZW Streams
- </label>
-
- <a href="ft2-lzw.html" title="LZW Streams" class="md-nav__link md-nav__link--active">
- LZW Streams
- </a>
-
+ </a>
-<nav class="md-nav md-nav--secondary">
+
+<nav class="md-nav md-nav--secondary" aria-label="Table of contents">
+
- <label class="md-nav__title" for="__toc">Table of contents</label>
- <ul class="md-nav__list" data-md-scrollfix>
+ <label class="md-nav__title" for="__toc">
+ <span class="md-nav__icon md-icon"></span>
+ Table of contents
+ </label>
+ <ul class="md-nav__list" data-md-component="toc" data-md-scrollfix>
<li class="md-nav__item">
<a href="#synopsis" class="md-nav__link">
@@ -881,152 +932,174 @@
</li>
-
-
-
-
</ul>
</nav>
-
- </li>
+
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-bzip2.html" class="md-nav__link">
+ BZIP2 Streams
+ </a>
+ </li>
+
+
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-debugging_apis.html" class="md-nav__link">
+ External Debugging APIs
+ </a>
+ </li>
+
- <li class="md-nav__item">
- <a href="ft2-bzip2.html" title="BZIP2 Streams" class="md-nav__link">
- BZIP2 Streams
- </a>
- </li>
-
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-9" type="checkbox" id="nav-9">
+
+
+
- <label class="md-nav__link" for="nav-9">
- Error Codes
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-9">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_9" type="checkbox" id="__nav_9" >
+
+ <label class="md-nav__link" for="__nav_9">
Error Codes
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
+ <nav class="md-nav" aria-label="Error Codes" data-md-level="1">
+ <label class="md-nav__title" for="__nav_9">
+ <span class="md-nav__icon md-icon"></span>
+ Error Codes
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-error_enumerations.html" title="Error Enumerations" class="md-nav__link">
- Error Enumerations
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-error_enumerations.html" class="md-nav__link">
+ Error Enumerations
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-error_code_values.html" title="Error Code Values" class="md-nav__link">
- Error Code Values
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-error_code_values.html" class="md-nav__link">
+ Error Code Values
+ </a>
+ </li>
+
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-10" type="checkbox" id="nav-10">
+
+
+
- <label class="md-nav__link" for="nav-10">
- Miscellaneous
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-10">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_10" type="checkbox" id="__nav_10" >
+
+ <label class="md-nav__link" for="__nav_10">
Miscellaneous
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
-
+ <nav class="md-nav" aria-label="Miscellaneous" data-md-level="1">
+ <label class="md-nav__title" for="__nav_10">
+ <span class="md-nav__icon md-icon"></span>
+ Miscellaneous
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
-
-
-
- <li class="md-nav__item">
- <a href="ft2-gx_validation.html" title="TrueTypeGX/AAT Validation" class="md-nav__link">
- TrueTypeGX/AAT Validation
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-gx_validation.html" class="md-nav__link">
+ TrueTypeGX/AAT Validation
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-incremental.html" title="Incremental Loading" class="md-nav__link">
- Incremental Loading
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-incremental.html" class="md-nav__link">
+ Incremental Loading
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-truetype_engine.html" title="The TrueType Engine" class="md-nav__link">
- The TrueType Engine
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-truetype_engine.html" class="md-nav__link">
+ The TrueType Engine
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-ot_validation.html" class="md-nav__link">
+ OpenType Validation
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-ot_validation.html" title="OpenType Validation" class="md-nav__link">
- OpenType Validation
- </a>
- </li>
-
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
</ul>
@@ -1036,18 +1109,23 @@
</div>
- <div class="md-sidebar md-sidebar--secondary" data-md-component="toc">
+
+ <div class="md-sidebar md-sidebar--secondary" data-md-component="sidebar" data-md-type="toc" >
<div class="md-sidebar__scrollwrap">
<div class="md-sidebar__inner">
-<nav class="md-nav md-nav--secondary">
+<nav class="md-nav md-nav--secondary" aria-label="Table of contents">
+
- <label class="md-nav__title" for="__toc">Table of contents</label>
- <ul class="md-nav__list" data-md-scrollfix>
+ <label class="md-nav__title" for="__toc">
+ <span class="md-nav__icon md-icon"></span>
+ Table of contents
+ </label>
+ <ul class="md-nav__list" data-md-component="toc" data-md-scrollfix>
<li class="md-nav__item">
<a href="#synopsis" class="md-nav__link">
@@ -1063,10 +1141,6 @@
</li>
-
-
-
-
</ul>
</nav>
@@ -1075,7 +1149,7 @@
</div>
- <div class="md-content">
+ <div class="md-content" data-md-component="content">
<article class="md-content__inner md-typeset">
@@ -1096,7 +1170,6 @@
<p>Open a new stream to parse LZW-compressed font files. This is mainly used to support the compressed <code>*.pcf.Z</code> fonts that come with XFree86.</p>
<h4>input</h4>
-
<table class="fields">
<tr><td class="val" id="stream">stream</td><td class="desc">
<p>The target embedding stream.</p>
@@ -1116,9 +1189,6 @@
<p>This function may return <code>FT_Err_Unimplemented_Feature</code> if your build of FreeType was not compiled with LZW support.</p>
<hr>
-
-
-
@@ -1128,59 +1198,60 @@
</article>
</div>
</div>
+
</main>
<footer class="md-footer">
- <div class="md-footer-nav">
- <nav class="md-footer-nav__inner md-grid">
+ <nav class="md-footer__inner md-grid" aria-label="Footer">
+
- <a href="ft2-gzip.html" title="GZIP Streams" class="md-flex md-footer-nav__link md-footer-nav__link--prev" rel="prev">
- <div class="md-flex__cell md-flex__cell--shrink">
- <i class="md-icon md-icon--arrow-back md-footer-nav__button"></i>
- </div>
- <div class="md-flex__cell md-flex__cell--stretch md-footer-nav__title">
- <span class="md-flex__ellipsis">
- <span class="md-footer-nav__direction">
- Previous
- </span>
- GZIP Streams
+ <a href="ft2-gzip.html" class="md-footer__link md-footer__link--prev" aria-label="Previous: GZIP Streams" rel="prev">
+ <div class="md-footer__button md-icon">
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M20 11v2H8l5.5 5.5-1.42 1.42L4.16 12l7.92-7.92L13.5 5.5 8 11h12z"/></svg>
+ </div>
+ <div class="md-footer__title">
+ <div class="md-ellipsis">
+ <span class="md-footer__direction">
+ Previous
</span>
+ GZIP Streams
</div>
- </a>
-
+ </div>
+ </a>
+
+
- <a href="ft2-bzip2.html" title="BZIP2 Streams" class="md-flex md-footer-nav__link md-footer-nav__link--next" rel="next">
- <div class="md-flex__cell md-flex__cell--stretch md-footer-nav__title">
- <span class="md-flex__ellipsis">
- <span class="md-footer-nav__direction">
- Next
- </span>
- BZIP2 Streams
+ <a href="ft2-bzip2.html" class="md-footer__link md-footer__link--next" aria-label="Next: BZIP2 Streams" rel="next">
+ <div class="md-footer__title">
+ <div class="md-ellipsis">
+ <span class="md-footer__direction">
+ Next
</span>
+ BZIP2 Streams
</div>
- <div class="md-flex__cell md-flex__cell--shrink">
- <i class="md-icon md-icon--arrow-forward md-footer-nav__button"></i>
- </div>
- </a>
-
- </nav>
- </div>
+ </div>
+ <div class="md-footer__button md-icon">
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M4 11v2h12l-5.5 5.5 1.42 1.42L19.84 12l-7.92-7.92L10.5 5.5 16 11H4z"/></svg>
+ </div>
+ </a>
+
+ </nav>
<div class="md-footer-meta md-typeset">
<div class="md-footer-meta__inner md-grid">
<div class="md-footer-copyright">
<div class="md-footer-copyright__highlight">
- Copyright 2020 <a href = "https://www.freetype.org/license.html">The FreeType Project</a>.
+ Copyright 2021 <a href = "https://www.freetype.org/license.html">The FreeType Project</a>.
</div>
- powered by
- <a href="https://www.mkdocs.org" target="_blank" rel="noopener">MkDocs</a>
- and
+ Made with
<a href="https://squidfunk.github.io/mkdocs-material/" target="_blank" rel="noopener">
- Material for MkDocs</a>
+ Material for MkDocs
+ </a>
+
</div>
</div>
@@ -1188,10 +1259,13 @@
</footer>
</div>
+ <div class="md-dialog" data-md-component="dialog">
+ <div class="md-dialog__inner md-typeset"></div>
+ </div>
+ <script id="__config" type="application/json">{"base": ".", "features": [], "translations": {"clipboard.copy": "Copy to clipboard", "clipboard.copied": "Copied to clipboard", "search.config.lang": "en", "search.config.pipeline": "trimmer, stopWordFilter", "search.config.separator": "[\\s\\-]+", "search.placeholder": "Search", "search.result.placeholder": "Type to start searching", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.term.missing": "Missing", "select.version.title": "Select version"}, "search": "assets/javascripts/workers/search.477d984a.min.js", "version": null}</script>
- <script src="assets/javascripts/application.c33a9706.js"></script>
-
- <script>app.initialize({version:"1.1",url:{base:"."}})</script>
+
+ <script src="assets/javascripts/bundle.82b56eb2.min.js"></script>
<script src="javascripts/extra.js"></script>
diff --git a/freetype/docs/reference/ft2-mac_specific.html b/freetype/docs/reference/ft2-mac_specific.html
index 9f7031f6..c386c7ba 100644
--- a/freetype/docs/reference/ft2-mac_specific.html
+++ b/freetype/docs/reference/ft2-mac_specific.html
@@ -1,145 +1,136 @@
-
-
-
<!doctype html>
<html lang="en" class="no-js">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
- <meta http-equiv="x-ua-compatible" content="ie=edge">
- <meta name="description" content="API Reference Documentation for FreeType-2.10.4">
+ <meta name="description" content="API Reference Documentation for FreeType-2.11.1">
<meta name="author" content="FreeType Contributors">
- <meta name="lang:clipboard.copy" content="Copy to clipboard">
-
- <meta name="lang:clipboard.copied" content="Copied to clipboard">
-
- <meta name="lang:search.language" content="en">
-
- <meta name="lang:search.pipeline.stopwords" content="True">
-
- <meta name="lang:search.pipeline.trimmer" content="True">
-
- <meta name="lang:search.result.none" content="No matching documents">
-
- <meta name="lang:search.result.one" content="1 matching document">
-
- <meta name="lang:search.result.other" content="# matching documents">
-
- <meta name="lang:search.tokenizer" content="[\s\-]+">
-
- <link rel="shortcut icon" href="images/favico.ico">
- <meta name="generator" content="mkdocs-1.1, mkdocs-material-4.6.3">
+ <link rel="icon" href="images/favico.ico">
+ <meta name="generator" content="mkdocs-1.2.1, mkdocs-material-7.1.9">
- <title>Mac Specific Interface - FreeType-2.10.4 API Reference</title>
+ <title>Mac Specific Interface - FreeType-2.11.1 API Reference</title>
- <link rel="stylesheet" href="assets/stylesheets/application.adb8469c.css">
-
- <link rel="stylesheet" href="assets/stylesheets/application-palette.a8b3c06d.css">
-
+ <link rel="stylesheet" href="assets/stylesheets/main.ca7ac06f.min.css">
+ <link rel="stylesheet" href="assets/stylesheets/palette.f1a3b89f.min.css">
+
+
+
+ <meta name="theme-color" content="#4cae4f">
- <meta name="theme-color" content="#4caf50">
- <script src="assets/javascripts/modernizr.86422ebf.js"></script>
-
- <link href="https://fonts.gstatic.com" rel="preconnect" crossorigin>
+
+ <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Noto+Serif:300,400,400i,700%7CRoboto+Mono&display=fallback">
- <style>body,input{font-family:"Noto Serif","Helvetica Neue",Helvetica,Arial,sans-serif}code,kbd,pre{font-family:"Roboto Mono","Courier New",Courier,monospace}</style>
+ <style>:root{--md-text-font-family:"Noto Serif";--md-code-font-family:"Roboto Mono"}</style>
- <link rel="stylesheet" href="assets/fonts/material-icons.css">
<link rel="stylesheet" href="stylesheets/extra.css">
+
+
</head>
+
+
+
+
- <body dir="ltr" data-md-color-primary="green" data-md-color-accent="green">
+ <body dir="ltr" data-md-color-scheme="" data-md-color-primary="green" data-md-color-accent="green">
- <svg class="md-svg">
- <defs>
-
-
- </defs>
- </svg>
- <input class="md-toggle" data-md-toggle="drawer" type="checkbox" id="__drawer" autocomplete="off">
- <input class="md-toggle" data-md-toggle="search" type="checkbox" id="__search" autocomplete="off">
- <label class="md-overlay" data-md-component="overlay" for="__drawer"></label>
- <a href="#mac-specific-interface" tabindex="0" class="md-skip">
- Skip to content
- </a>
+ <script>function __prefix(e){return new URL(".",location).pathname+"."+e}function __get(e,t=localStorage){return JSON.parse(t.getItem(__prefix(e)))}</script>
+ <input class="md-toggle" data-md-toggle="drawer" type="checkbox" id="__drawer" autocomplete="off">
+ <input class="md-toggle" data-md-toggle="search" type="checkbox" id="__search" autocomplete="off">
+ <label class="md-overlay" for="__drawer"></label>
+ <div data-md-component="skip">
+
+
+ <a href="#mac-specific-interface" class="md-skip">
+ Skip to content
+ </a>
+
+ </div>
+ <div data-md-component="announce">
+
+ </div>
<header class="md-header" data-md-component="header">
- <nav class="md-header-nav md-grid">
- <div class="md-flex">
- <div class="md-flex__cell md-flex__cell--shrink">
- <a href="." title="FreeType-2.10.4 API Reference" aria-label="FreeType-2.10.4 API Reference" class="md-header-nav__button md-logo">
-
- <img alt="logo" src="images/favico.ico" width="24" height="24">
-
- </a>
- </div>
- <div class="md-flex__cell md-flex__cell--shrink">
- <label class="md-icon md-icon--menu md-header-nav__button" for="__drawer"></label>
- </div>
- <div class="md-flex__cell md-flex__cell--stretch">
- <div class="md-flex__ellipsis md-header-nav__title" data-md-component="title">
-
- <span class="md-header-nav__topic">
- FreeType-2.10.4 API Reference
- </span>
- <span class="md-header-nav__topic">
-
- Mac Specific Interface
-
- </span>
-
+ <nav class="md-header__inner md-grid" aria-label="Header">
+ <a href="index.html" title="FreeType-2.11.1 API Reference" class="md-header__button md-logo" aria-label="FreeType-2.11.1 API Reference" data-md-component="logo">
+
+ <img src="images/favico.ico" alt="logo">
+
+ </a>
+ <label class="md-header__button md-icon" for="__drawer">
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M3 6h18v2H3V6m0 5h18v2H3v-2m0 5h18v2H3v-2z"/></svg>
+ </label>
+ <div class="md-header__title" data-md-component="header-title">
+ <div class="md-header__ellipsis">
+ <div class="md-header__topic">
+ <span class="md-ellipsis">
+ FreeType-2.11.1 API Reference
+ </span>
+ </div>
+ <div class="md-header__topic" data-md-component="header-topic">
+ <span class="md-ellipsis">
+
+ Mac Specific Interface
+
+ </span>
</div>
</div>
- <div class="md-flex__cell md-flex__cell--shrink">
-
- <label class="md-icon md-icon--search md-header-nav__button" for="__search"></label>
-
+ </div>
+
+
+
+ <label class="md-header__button md-icon" for="__search">
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M9.5 3A6.5 6.5 0 0 1 16 9.5c0 1.61-.59 3.09-1.56 4.23l.27.27h.79l5 5-1.5 1.5-5-5v-.79l-.27-.27A6.516 6.516 0 0 1 9.5 16 6.5 6.5 0 0 1 3 9.5 6.5 6.5 0 0 1 9.5 3m0 2C7 5 5 7 5 9.5S7 14 9.5 14 14 12 14 9.5 12 5 9.5 5z"/></svg>
+ </label>
+
<div class="md-search" data-md-component="search" role="dialog">
<label class="md-search__overlay" for="__search"></label>
<div class="md-search__inner" role="search">
<form class="md-search__form" name="search">
- <input type="text" class="md-search__input" aria-label="search" name="query" placeholder="Search" autocapitalize="off" autocorrect="off" autocomplete="off" spellcheck="false" data-md-component="query" data-md-state="active">
- <label class="md-icon md-search__icon" for="__search"></label>
- <button type="reset" class="md-icon md-search__icon" data-md-component="reset" tabindex="-1">
- &#xE5CD;
+ <input type="text" class="md-search__input" name="query" aria-label="Search" placeholder="Search" autocapitalize="off" autocorrect="off" autocomplete="off" spellcheck="false" data-md-component="search-query" data-md-state="active" required>
+ <label class="md-search__icon md-icon" for="__search">
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M9.5 3A6.5 6.5 0 0 1 16 9.5c0 1.61-.59 3.09-1.56 4.23l.27.27h.79l5 5-1.5 1.5-5-5v-.79l-.27-.27A6.516 6.516 0 0 1 9.5 16 6.5 6.5 0 0 1 3 9.5 6.5 6.5 0 0 1 9.5 3m0 2C7 5 5 7 5 9.5S7 14 9.5 14 14 12 14 9.5 12 5 9.5 5z"/></svg>
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M20 11v2H8l5.5 5.5-1.42 1.42L4.16 12l7.92-7.92L13.5 5.5 8 11h12z"/></svg>
+ </label>
+ <button type="reset" class="md-search__icon md-icon" aria-label="Clear" tabindex="-1">
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z"/></svg>
</button>
</form>
<div class="md-search__output">
<div class="md-search__scrollwrap" data-md-scrollfix>
- <div class="md-search-result" data-md-component="result">
+ <div class="md-search-result" data-md-component="search-result">
<div class="md-search-result__meta">
- Type to start searching
+ Initializing search
</div>
<ol class="md-search-result__list"></ol>
</div>
@@ -147,33 +138,35 @@
</div>
</div>
</div>
-
- </div>
-
- </div>
+
+
</nav>
</header>
- <div class="md-container">
+ <div class="md-container" data-md-component="container">
-
+
- <main class="md-main" role="main">
- <div class="md-main__inner md-grid" data-md-component="container">
+ <main class="md-main" data-md-component="main">
+ <div class="md-main__inner md-grid">
- <div class="md-sidebar md-sidebar--primary" data-md-component="navigation">
+
+ <div class="md-sidebar md-sidebar--primary" data-md-component="sidebar" data-md-type="navigation" >
<div class="md-sidebar__scrollwrap">
<div class="md-sidebar__inner">
- <nav class="md-nav md-nav--primary" data-md-level="0">
- <label class="md-nav__title md-nav__title--site" for="__drawer">
- <a href="." title="FreeType-2.10.4 API Reference" class="md-nav__button md-logo">
-
- <img alt="logo" src="images/favico.ico" width="48" height="48">
+
+
+
+<nav class="md-nav md-nav--primary" aria-label="Navigation" data-md-level="0">
+ <label class="md-nav__title" for="__drawer">
+ <a href="index.html" title="FreeType-2.11.1 API Reference" class="md-nav__button md-logo" aria-label="FreeType-2.11.1 API Reference" data-md-component="logo">
+ <img src="images/favico.ico" alt="logo">
+
</a>
- FreeType-2.10.4 API Reference
+ FreeType-2.11.1 API Reference
</label>
<ul class="md-nav__list" data-md-scrollfix>
@@ -182,72 +175,96 @@
-
- <li class="md-nav__item">
- <a href="index.html" title="TOC" class="md-nav__link">
- TOC
- </a>
- </li>
+
+
+
+ <li class="md-nav__item">
+ <a href="index.html" class="md-nav__link">
+ TOC
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-index.html" title="Index" class="md-nav__link">
- Index
- </a>
- </li>
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-index.html" class="md-nav__link">
+ Index
+ </a>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-3" type="checkbox" id="nav-3">
+
+
+
- <label class="md-nav__link" for="nav-3">
- General Remarks
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-3">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_3" type="checkbox" id="__nav_3" >
+
+ <label class="md-nav__link" for="__nav_3">
General Remarks
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
-
-
+ <nav class="md-nav" aria-label="General Remarks" data-md-level="1">
+ <label class="md-nav__title" for="__nav_3">
+ <span class="md-nav__icon md-icon"></span>
+ General Remarks
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-preamble.html" class="md-nav__link">
+ Preamble
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-header_inclusion.html" title="FreeType's header inclusion scheme" class="md-nav__link">
- FreeType's header inclusion scheme
- </a>
- </li>
-
-
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-header_inclusion.html" class="md-nav__link">
+ FreeType's header inclusion scheme
+ </a>
+ </li>
+
- <li class="md-nav__item">
- <a href="ft2-user_allocation.html" title="User allocation" class="md-nav__link">
- User allocation
- </a>
- </li>
+
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-user_allocation.html" class="md-nav__link">
+ User allocation
+ </a>
+ </li>
+
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
@@ -255,137 +272,147 @@
-
-
- <li class="md-nav__item md-nav__item--active md-nav__item--nested">
+
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-4" type="checkbox" id="nav-4" checked>
+
+
- <label class="md-nav__link" for="nav-4">
- Core API
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-4">
+ <li class="md-nav__item md-nav__item--active md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_4" type="checkbox" id="__nav_4" checked>
+
+ <label class="md-nav__link" for="__nav_4">
Core API
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
-
-
+ <nav class="md-nav" aria-label="Core API" data-md-level="1">
+ <label class="md-nav__title" for="__nav_4">
+ <span class="md-nav__icon md-icon"></span>
+ Core API
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-version.html" class="md-nav__link">
+ FreeType Version
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-version.html" title="FreeType Version" class="md-nav__link">
- FreeType Version
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-basic_types.html" title="Basic Data Types" class="md-nav__link">
- Basic Data Types
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-basic_types.html" class="md-nav__link">
+ Basic Data Types
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-base_interface.html" title="Base Interface" class="md-nav__link">
- Base Interface
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-base_interface.html" class="md-nav__link">
+ Base Interface
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-glyph_variants.html" title="Unicode Variation Sequences" class="md-nav__link">
- Unicode Variation Sequences
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-glyph_variants.html" class="md-nav__link">
+ Unicode Variation Sequences
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-color_management.html" class="md-nav__link">
+ Glyph Color Management
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-color_management.html" title="Glyph Color Management" class="md-nav__link">
- Glyph Color Management
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-layer_management.html" title="Glyph Layer Management" class="md-nav__link">
- Glyph Layer Management
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-layer_management.html" class="md-nav__link">
+ Glyph Layer Management
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-glyph_management.html" title="Glyph Management" class="md-nav__link">
- Glyph Management
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-glyph_management.html" class="md-nav__link">
+ Glyph Management
+ </a>
+ </li>
+
-
-
-
-
+
+
-
-
- <li class="md-nav__item md-nav__item--active">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="toc" type="checkbox" id="__toc">
+
+
+ <li class="md-nav__item md-nav__item--active">
-
-
- <label class="md-nav__link md-nav__link--active" for="__toc">
+ <input class="md-nav__toggle md-toggle" data-md-toggle="toc" type="checkbox" id="__toc">
+
+
+
+
+
+ <label class="md-nav__link md-nav__link--active" for="__toc">
+ Mac Specific Interface
+ <span class="md-nav__icon md-icon"></span>
+ </label>
+
+ <a href="ft2-mac_specific.html" class="md-nav__link md-nav__link--active">
Mac Specific Interface
- </label>
-
- <a href="ft2-mac_specific.html" title="Mac Specific Interface" class="md-nav__link md-nav__link--active">
- Mac Specific Interface
- </a>
-
+ </a>
-<nav class="md-nav md-nav--secondary">
+
+<nav class="md-nav md-nav--secondary" aria-label="Table of contents">
+
- <label class="md-nav__title" for="__toc">Table of contents</label>
- <ul class="md-nav__list" data-md-scrollfix>
+ <label class="md-nav__title" for="__toc">
+ <span class="md-nav__icon md-icon"></span>
+ Table of contents
+ </label>
+ <ul class="md-nav__list" data-md-component="toc" data-md-scrollfix>
<li class="md-nav__item">
<a href="#synopsis" class="md-nav__link">
@@ -436,632 +463,678 @@
</li>
-
-
-
-
</ul>
</nav>
-
- </li>
+
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-sizes_management.html" title="Size Management" class="md-nav__link">
- Size Management
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-sizes_management.html" class="md-nav__link">
+ Size Management
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-header_file_macros.html" class="md-nav__link">
+ Header File Macros
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-header_file_macros.html" title="Header File Macros" class="md-nav__link">
- Header File Macros
- </a>
- </li>
-
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-5" type="checkbox" id="nav-5">
+
+
+
- <label class="md-nav__link" for="nav-5">
- Format-Specific API
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-5">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_5" type="checkbox" id="__nav_5" >
+
+ <label class="md-nav__link" for="__nav_5">
Format-Specific API
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
-
+ <nav class="md-nav" aria-label="Format-Specific API" data-md-level="1">
+ <label class="md-nav__title" for="__nav_5">
+ <span class="md-nav__icon md-icon"></span>
+ Format-Specific API
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
-
-
-
- <li class="md-nav__item">
- <a href="ft2-multiple_masters.html" title="Multiple Masters" class="md-nav__link">
- Multiple Masters
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-multiple_masters.html" class="md-nav__link">
+ Multiple Masters
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-truetype_tables.html" title="TrueType Tables" class="md-nav__link">
- TrueType Tables
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-truetype_tables.html" class="md-nav__link">
+ TrueType Tables
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-type1_tables.html" class="md-nav__link">
+ Type 1 Tables
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-type1_tables.html" title="Type 1 Tables" class="md-nav__link">
- Type 1 Tables
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-sfnt_names.html" title="SFNT Names" class="md-nav__link">
- SFNT Names
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-sfnt_names.html" class="md-nav__link">
+ SFNT Names
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-bdf_fonts.html" title="BDF and PCF Files" class="md-nav__link">
- BDF and PCF Files
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-bdf_fonts.html" class="md-nav__link">
+ BDF and PCF Files
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-cid_fonts.html" title="CID Fonts" class="md-nav__link">
- CID Fonts
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-cid_fonts.html" class="md-nav__link">
+ CID Fonts
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-pfr_fonts.html" title="PFR Fonts" class="md-nav__link">
- PFR Fonts
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-pfr_fonts.html" class="md-nav__link">
+ PFR Fonts
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-winfnt_fonts.html" title="Window FNT Files" class="md-nav__link">
- Window FNT Files
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-winfnt_fonts.html" class="md-nav__link">
+ Window FNT Files
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-font_formats.html" title="Font Formats" class="md-nav__link">
- Font Formats
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-font_formats.html" class="md-nav__link">
+ Font Formats
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-gasp_table.html" title="Gasp Table" class="md-nav__link">
- Gasp Table
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-gasp_table.html" class="md-nav__link">
+ Gasp Table
+ </a>
+ </li>
+
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-6" type="checkbox" id="nav-6">
+
+
+
- <label class="md-nav__link" for="nav-6">
- Controlling FreeType Modules
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-6">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_6" type="checkbox" id="__nav_6" >
+
+ <label class="md-nav__link" for="__nav_6">
Controlling FreeType Modules
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
-
+ <nav class="md-nav" aria-label="Controlling FreeType Modules" data-md-level="1">
+ <label class="md-nav__title" for="__nav_6">
+ <span class="md-nav__icon md-icon"></span>
+ Controlling FreeType Modules
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
-
-
-
- <li class="md-nav__item">
- <a href="ft2-auto_hinter.html" title="The auto-hinter" class="md-nav__link">
- The auto-hinter
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-auto_hinter.html" class="md-nav__link">
+ The auto-hinter
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-cff_driver.html" title="The CFF driver" class="md-nav__link">
- The CFF driver
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-cff_driver.html" class="md-nav__link">
+ The CFF driver
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-t1_cid_driver.html" class="md-nav__link">
+ The Type 1 and CID drivers
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-t1_cid_driver.html" title="The Type 1 and CID drivers" class="md-nav__link">
- The Type 1 and CID drivers
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-tt_driver.html" title="The TrueType driver" class="md-nav__link">
- The TrueType driver
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-tt_driver.html" class="md-nav__link">
+ The TrueType driver
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-pcf_driver.html" class="md-nav__link">
+ The PCF driver
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-pcf_driver.html" title="The PCF driver" class="md-nav__link">
- The PCF driver
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-properties.html" title="Driver properties" class="md-nav__link">
- Driver properties
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-properties.html" class="md-nav__link">
+ Driver properties
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-parameter_tags.html" title="Parameter Tags" class="md-nav__link">
- Parameter Tags
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-parameter_tags.html" class="md-nav__link">
+ Parameter Tags
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-lcd_rendering.html" title="Subpixel Rendering" class="md-nav__link">
- Subpixel Rendering
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-lcd_rendering.html" class="md-nav__link">
+ Subpixel Rendering
+ </a>
+ </li>
+
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-7" type="checkbox" id="nav-7">
+
+
+
- <label class="md-nav__link" for="nav-7">
- Cache Sub-System
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-7">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_7" type="checkbox" id="__nav_7" >
+
+ <label class="md-nav__link" for="__nav_7">
Cache Sub-System
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
-
+ <nav class="md-nav" aria-label="Cache Sub-System" data-md-level="1">
+ <label class="md-nav__title" for="__nav_7">
+ <span class="md-nav__icon md-icon"></span>
+ Cache Sub-System
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
-
-
-
- <li class="md-nav__item">
- <a href="ft2-cache_subsystem.html" title="Cache Sub-System" class="md-nav__link">
- Cache Sub-System
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-cache_subsystem.html" class="md-nav__link">
+ Cache Sub-System
+ </a>
+ </li>
+
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-8" type="checkbox" id="nav-8">
+
+
+
- <label class="md-nav__link" for="nav-8">
- Support API
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-8">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_8" type="checkbox" id="__nav_8" >
+
+ <label class="md-nav__link" for="__nav_8">
Support API
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
-
+ <nav class="md-nav" aria-label="Support API" data-md-level="1">
+ <label class="md-nav__title" for="__nav_8">
+ <span class="md-nav__icon md-icon"></span>
+ Support API
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
-
-
-
- <li class="md-nav__item">
- <a href="ft2-computations.html" title="Computations" class="md-nav__link">
- Computations
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-computations.html" class="md-nav__link">
+ Computations
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-list_processing.html" title="List Processing" class="md-nav__link">
- List Processing
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-list_processing.html" class="md-nav__link">
+ List Processing
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-outline_processing.html" title="Outline Processing" class="md-nav__link">
- Outline Processing
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-outline_processing.html" class="md-nav__link">
+ Outline Processing
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-quick_advance.html" title="Quick retrieval of advance values" class="md-nav__link">
- Quick retrieval of advance values
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-quick_advance.html" class="md-nav__link">
+ Quick retrieval of advance values
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-bitmap_handling.html" title="Bitmap Handling" class="md-nav__link">
- Bitmap Handling
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-bitmap_handling.html" class="md-nav__link">
+ Bitmap Handling
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-raster.html" title="Scanline Converter" class="md-nav__link">
- Scanline Converter
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-raster.html" class="md-nav__link">
+ Scanline Converter
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-glyph_stroker.html" class="md-nav__link">
+ Glyph Stroker
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-glyph_stroker.html" title="Glyph Stroker" class="md-nav__link">
- Glyph Stroker
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-system_interface.html" title="System Interface" class="md-nav__link">
- System Interface
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-system_interface.html" class="md-nav__link">
+ System Interface
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-module_management.html" title="Module Management" class="md-nav__link">
- Module Management
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-module_management.html" class="md-nav__link">
+ Module Management
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-gzip.html" title="GZIP Streams" class="md-nav__link">
- GZIP Streams
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-gzip.html" class="md-nav__link">
+ GZIP Streams
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-lzw.html" class="md-nav__link">
+ LZW Streams
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-lzw.html" title="LZW Streams" class="md-nav__link">
- LZW Streams
- </a>
- </li>
-
-
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-bzip2.html" class="md-nav__link">
+ BZIP2 Streams
+ </a>
+ </li>
+
- <li class="md-nav__item">
- <a href="ft2-bzip2.html" title="BZIP2 Streams" class="md-nav__link">
- BZIP2 Streams
- </a>
- </li>
+
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-debugging_apis.html" class="md-nav__link">
+ External Debugging APIs
+ </a>
+ </li>
+
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-9" type="checkbox" id="nav-9">
+
+
+
- <label class="md-nav__link" for="nav-9">
- Error Codes
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-9">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_9" type="checkbox" id="__nav_9" >
+
+ <label class="md-nav__link" for="__nav_9">
Error Codes
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
-
+ <nav class="md-nav" aria-label="Error Codes" data-md-level="1">
+ <label class="md-nav__title" for="__nav_9">
+ <span class="md-nav__icon md-icon"></span>
+ Error Codes
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
-
-
-
- <li class="md-nav__item">
- <a href="ft2-error_enumerations.html" title="Error Enumerations" class="md-nav__link">
- Error Enumerations
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-error_enumerations.html" class="md-nav__link">
+ Error Enumerations
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-error_code_values.html" title="Error Code Values" class="md-nav__link">
- Error Code Values
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-error_code_values.html" class="md-nav__link">
+ Error Code Values
+ </a>
+ </li>
+
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-10" type="checkbox" id="nav-10">
+
+
+
- <label class="md-nav__link" for="nav-10">
- Miscellaneous
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-10">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_10" type="checkbox" id="__nav_10" >
+
+ <label class="md-nav__link" for="__nav_10">
Miscellaneous
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
+ <nav class="md-nav" aria-label="Miscellaneous" data-md-level="1">
+ <label class="md-nav__title" for="__nav_10">
+ <span class="md-nav__icon md-icon"></span>
+ Miscellaneous
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-gx_validation.html" title="TrueTypeGX/AAT Validation" class="md-nav__link">
- TrueTypeGX/AAT Validation
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-gx_validation.html" class="md-nav__link">
+ TrueTypeGX/AAT Validation
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-incremental.html" class="md-nav__link">
+ Incremental Loading
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-incremental.html" title="Incremental Loading" class="md-nav__link">
- Incremental Loading
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-truetype_engine.html" title="The TrueType Engine" class="md-nav__link">
- The TrueType Engine
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-truetype_engine.html" class="md-nav__link">
+ The TrueType Engine
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-ot_validation.html" class="md-nav__link">
+ OpenType Validation
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-ot_validation.html" title="OpenType Validation" class="md-nav__link">
- OpenType Validation
- </a>
- </li>
-
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
</ul>
@@ -1071,18 +1144,23 @@
</div>
- <div class="md-sidebar md-sidebar--secondary" data-md-component="toc">
+
+ <div class="md-sidebar md-sidebar--secondary" data-md-component="sidebar" data-md-type="toc" >
<div class="md-sidebar__scrollwrap">
<div class="md-sidebar__inner">
-<nav class="md-nav md-nav--secondary">
+<nav class="md-nav md-nav--secondary" aria-label="Table of contents">
+
- <label class="md-nav__title" for="__toc">Table of contents</label>
- <ul class="md-nav__list" data-md-scrollfix>
+ <label class="md-nav__title" for="__toc">
+ <span class="md-nav__icon md-icon"></span>
+ Table of contents
+ </label>
+ <ul class="md-nav__list" data-md-component="toc" data-md-scrollfix>
<li class="md-nav__item">
<a href="#synopsis" class="md-nav__link">
@@ -1133,10 +1211,6 @@
</li>
-
-
-
-
</ul>
</nav>
@@ -1145,7 +1219,7 @@
</div>
- <div class="md-content">
+ <div class="md-content" data-md-component="content">
<article class="md-content__inner md-typeset">
@@ -1167,7 +1241,6 @@
<p>Create a new face object from a FOND resource.</p>
<h4>inout</h4>
-
<table class="fields">
<tr><td class="val" id="library">library</td><td class="desc">
<p>A handle to the library resource.</p>
@@ -1175,7 +1248,6 @@
</table>
<h4>input</h4>
-
<table class="fields">
<tr><td class="val" id="fond">fond</td><td class="desc">
<p>A FOND resource.</p>
@@ -1186,7 +1258,6 @@
</table>
<h4>output</h4>
-
<table class="fields">
<tr><td class="val" id="aface">aface</td><td class="desc">
<p>A handle to a new face object.</p>
@@ -1215,7 +1286,6 @@
<p>Return an FSSpec for the disk file containing the named font.</p>
<h4>input</h4>
-
<table class="fields">
<tr><td class="val" id="fontname">fontName</td><td class="desc">
<p>Mac OS name of the font (e.g., Times New Roman Bold).</p>
@@ -1223,7 +1293,6 @@
</table>
<h4>output</h4>
-
<table class="fields">
<tr><td class="val" id="pathspec">pathSpec</td><td class="desc">
<p>FSSpec to the file. For passing to <code><a href="ft2-mac_specific.html#ft_new_face_from_fsspec">FT_New_Face_From_FSSpec</a></code>.</p>
@@ -1249,7 +1318,6 @@
<p>Return an FSSpec for the disk file containing the named font.</p>
<h4>input</h4>
-
<table class="fields">
<tr><td class="val" id="fontname">fontName</td><td class="desc">
<p>Mac OS name of the font in ATS framework.</p>
@@ -1257,7 +1325,6 @@
</table>
<h4>output</h4>
-
<table class="fields">
<tr><td class="val" id="pathspec">pathSpec</td><td class="desc">
<p>FSSpec to the file. For passing to <code><a href="ft2-mac_specific.html#ft_new_face_from_fsspec">FT_New_Face_From_FSSpec</a></code>.</p>
@@ -1284,7 +1351,6 @@
<p>Return a pathname of the disk file and face index for given font name that is handled by ATS framework.</p>
<h4>input</h4>
-
<table class="fields">
<tr><td class="val" id="fontname">fontName</td><td class="desc">
<p>Mac OS name of the font in ATS framework.</p>
@@ -1292,7 +1358,6 @@
</table>
<h4>output</h4>
-
<table class="fields">
<tr><td class="val" id="path">path</td><td class="desc">
<p>Buffer to store pathname of the file. For passing to <code><a href="ft2-base_interface.html#ft_new_face">FT_New_Face</a></code>. The client must allocate this buffer before calling this function.</p>
@@ -1322,7 +1387,6 @@
<p>Create a new face object from a given resource and typeface index using an FSSpec to the font file.</p>
<h4>inout</h4>
-
<table class="fields">
<tr><td class="val" id="library">library</td><td class="desc">
<p>A handle to the library resource.</p>
@@ -1330,7 +1394,6 @@
</table>
<h4>input</h4>
-
<table class="fields">
<tr><td class="val" id="spec">spec</td><td class="desc">
<p>FSSpec to the font file.</p>
@@ -1341,7 +1404,6 @@
</table>
<h4>output</h4>
-
<table class="fields">
<tr><td class="val" id="aface">aface</td><td class="desc">
<p>A handle to a new face object.</p>
@@ -1368,7 +1430,6 @@
<p>Create a new face object from a given resource and typeface index using an FSRef to the font file.</p>
<h4>inout</h4>
-
<table class="fields">
<tr><td class="val" id="library">library</td><td class="desc">
<p>A handle to the library resource.</p>
@@ -1376,7 +1437,6 @@
</table>
<h4>input</h4>
-
<table class="fields">
<tr><td class="val" id="spec">spec</td><td class="desc">
<p>FSRef to the font file.</p>
@@ -1387,7 +1447,6 @@
</table>
<h4>output</h4>
-
<table class="fields">
<tr><td class="val" id="aface">aface</td><td class="desc">
<p>A handle to a new face object.</p>
@@ -1402,9 +1461,6 @@
<p><code><a href="ft2-mac_specific.html#ft_new_face_from_fsref">FT_New_Face_From_FSRef</a></code> is identical to <code><a href="ft2-base_interface.html#ft_new_face">FT_New_Face</a></code> except it accepts an FSRef instead of a path.</p>
<hr>
-
-
-
@@ -1414,59 +1470,60 @@
</article>
</div>
</div>
+
</main>
<footer class="md-footer">
- <div class="md-footer-nav">
- <nav class="md-footer-nav__inner md-grid">
+ <nav class="md-footer__inner md-grid" aria-label="Footer">
+
- <a href="ft2-glyph_management.html" title="Glyph Management" class="md-flex md-footer-nav__link md-footer-nav__link--prev" rel="prev">
- <div class="md-flex__cell md-flex__cell--shrink">
- <i class="md-icon md-icon--arrow-back md-footer-nav__button"></i>
- </div>
- <div class="md-flex__cell md-flex__cell--stretch md-footer-nav__title">
- <span class="md-flex__ellipsis">
- <span class="md-footer-nav__direction">
- Previous
- </span>
- Glyph Management
+ <a href="ft2-glyph_management.html" class="md-footer__link md-footer__link--prev" aria-label="Previous: Glyph Management" rel="prev">
+ <div class="md-footer__button md-icon">
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M20 11v2H8l5.5 5.5-1.42 1.42L4.16 12l7.92-7.92L13.5 5.5 8 11h12z"/></svg>
+ </div>
+ <div class="md-footer__title">
+ <div class="md-ellipsis">
+ <span class="md-footer__direction">
+ Previous
</span>
+ Glyph Management
</div>
- </a>
-
+ </div>
+ </a>
+
+
- <a href="ft2-sizes_management.html" title="Size Management" class="md-flex md-footer-nav__link md-footer-nav__link--next" rel="next">
- <div class="md-flex__cell md-flex__cell--stretch md-footer-nav__title">
- <span class="md-flex__ellipsis">
- <span class="md-footer-nav__direction">
- Next
- </span>
- Size Management
+ <a href="ft2-sizes_management.html" class="md-footer__link md-footer__link--next" aria-label="Next: Size Management" rel="next">
+ <div class="md-footer__title">
+ <div class="md-ellipsis">
+ <span class="md-footer__direction">
+ Next
</span>
+ Size Management
</div>
- <div class="md-flex__cell md-flex__cell--shrink">
- <i class="md-icon md-icon--arrow-forward md-footer-nav__button"></i>
- </div>
- </a>
-
- </nav>
- </div>
+ </div>
+ <div class="md-footer__button md-icon">
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M4 11v2h12l-5.5 5.5 1.42 1.42L19.84 12l-7.92-7.92L10.5 5.5 16 11H4z"/></svg>
+ </div>
+ </a>
+
+ </nav>
<div class="md-footer-meta md-typeset">
<div class="md-footer-meta__inner md-grid">
<div class="md-footer-copyright">
<div class="md-footer-copyright__highlight">
- Copyright 2020 <a href = "https://www.freetype.org/license.html">The FreeType Project</a>.
+ Copyright 2021 <a href = "https://www.freetype.org/license.html">The FreeType Project</a>.
</div>
- powered by
- <a href="https://www.mkdocs.org" target="_blank" rel="noopener">MkDocs</a>
- and
+ Made with
<a href="https://squidfunk.github.io/mkdocs-material/" target="_blank" rel="noopener">
- Material for MkDocs</a>
+ Material for MkDocs
+ </a>
+
</div>
</div>
@@ -1474,10 +1531,13 @@
</footer>
</div>
+ <div class="md-dialog" data-md-component="dialog">
+ <div class="md-dialog__inner md-typeset"></div>
+ </div>
+ <script id="__config" type="application/json">{"base": ".", "features": [], "translations": {"clipboard.copy": "Copy to clipboard", "clipboard.copied": "Copied to clipboard", "search.config.lang": "en", "search.config.pipeline": "trimmer, stopWordFilter", "search.config.separator": "[\\s\\-]+", "search.placeholder": "Search", "search.result.placeholder": "Type to start searching", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.term.missing": "Missing", "select.version.title": "Select version"}, "search": "assets/javascripts/workers/search.477d984a.min.js", "version": null}</script>
- <script src="assets/javascripts/application.c33a9706.js"></script>
-
- <script>app.initialize({version:"1.1",url:{base:"."}})</script>
+
+ <script src="assets/javascripts/bundle.82b56eb2.min.js"></script>
<script src="javascripts/extra.js"></script>
diff --git a/freetype/docs/reference/ft2-module_management.html b/freetype/docs/reference/ft2-module_management.html
index 8dd7322c..4bf7cbdf 100644
--- a/freetype/docs/reference/ft2-module_management.html
+++ b/freetype/docs/reference/ft2-module_management.html
@@ -1,145 +1,136 @@
-
-
-
<!doctype html>
<html lang="en" class="no-js">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
- <meta http-equiv="x-ua-compatible" content="ie=edge">
- <meta name="description" content="API Reference Documentation for FreeType-2.10.4">
+ <meta name="description" content="API Reference Documentation for FreeType-2.11.1">
<meta name="author" content="FreeType Contributors">
- <meta name="lang:clipboard.copy" content="Copy to clipboard">
-
- <meta name="lang:clipboard.copied" content="Copied to clipboard">
-
- <meta name="lang:search.language" content="en">
-
- <meta name="lang:search.pipeline.stopwords" content="True">
-
- <meta name="lang:search.pipeline.trimmer" content="True">
-
- <meta name="lang:search.result.none" content="No matching documents">
-
- <meta name="lang:search.result.one" content="1 matching document">
-
- <meta name="lang:search.result.other" content="# matching documents">
-
- <meta name="lang:search.tokenizer" content="[\s\-]+">
-
- <link rel="shortcut icon" href="images/favico.ico">
- <meta name="generator" content="mkdocs-1.1, mkdocs-material-4.6.3">
+ <link rel="icon" href="images/favico.ico">
+ <meta name="generator" content="mkdocs-1.2.1, mkdocs-material-7.1.9">
- <title>Module Management - FreeType-2.10.4 API Reference</title>
+ <title>Module Management - FreeType-2.11.1 API Reference</title>
- <link rel="stylesheet" href="assets/stylesheets/application.adb8469c.css">
-
- <link rel="stylesheet" href="assets/stylesheets/application-palette.a8b3c06d.css">
-
+ <link rel="stylesheet" href="assets/stylesheets/main.ca7ac06f.min.css">
+ <link rel="stylesheet" href="assets/stylesheets/palette.f1a3b89f.min.css">
+
+
+
+ <meta name="theme-color" content="#4cae4f">
- <meta name="theme-color" content="#4caf50">
- <script src="assets/javascripts/modernizr.86422ebf.js"></script>
-
- <link href="https://fonts.gstatic.com" rel="preconnect" crossorigin>
+
+ <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Noto+Serif:300,400,400i,700%7CRoboto+Mono&display=fallback">
- <style>body,input{font-family:"Noto Serif","Helvetica Neue",Helvetica,Arial,sans-serif}code,kbd,pre{font-family:"Roboto Mono","Courier New",Courier,monospace}</style>
+ <style>:root{--md-text-font-family:"Noto Serif";--md-code-font-family:"Roboto Mono"}</style>
- <link rel="stylesheet" href="assets/fonts/material-icons.css">
<link rel="stylesheet" href="stylesheets/extra.css">
+
+
</head>
+
- <body dir="ltr" data-md-color-primary="green" data-md-color-accent="green">
+
+
+
+ <body dir="ltr" data-md-color-scheme="" data-md-color-primary="green" data-md-color-accent="green">
- <svg class="md-svg">
- <defs>
-
-
- </defs>
- </svg>
- <input class="md-toggle" data-md-toggle="drawer" type="checkbox" id="__drawer" autocomplete="off">
- <input class="md-toggle" data-md-toggle="search" type="checkbox" id="__search" autocomplete="off">
- <label class="md-overlay" data-md-component="overlay" for="__drawer"></label>
- <a href="#module-management" tabindex="0" class="md-skip">
- Skip to content
- </a>
+ <script>function __prefix(e){return new URL(".",location).pathname+"."+e}function __get(e,t=localStorage){return JSON.parse(t.getItem(__prefix(e)))}</script>
+ <input class="md-toggle" data-md-toggle="drawer" type="checkbox" id="__drawer" autocomplete="off">
+ <input class="md-toggle" data-md-toggle="search" type="checkbox" id="__search" autocomplete="off">
+ <label class="md-overlay" for="__drawer"></label>
+ <div data-md-component="skip">
+
+
+ <a href="#module-management" class="md-skip">
+ Skip to content
+ </a>
+
+ </div>
+ <div data-md-component="announce">
+
+ </div>
<header class="md-header" data-md-component="header">
- <nav class="md-header-nav md-grid">
- <div class="md-flex">
- <div class="md-flex__cell md-flex__cell--shrink">
- <a href="." title="FreeType-2.10.4 API Reference" aria-label="FreeType-2.10.4 API Reference" class="md-header-nav__button md-logo">
-
- <img alt="logo" src="images/favico.ico" width="24" height="24">
-
- </a>
- </div>
- <div class="md-flex__cell md-flex__cell--shrink">
- <label class="md-icon md-icon--menu md-header-nav__button" for="__drawer"></label>
- </div>
- <div class="md-flex__cell md-flex__cell--stretch">
- <div class="md-flex__ellipsis md-header-nav__title" data-md-component="title">
-
- <span class="md-header-nav__topic">
- FreeType-2.10.4 API Reference
- </span>
- <span class="md-header-nav__topic">
-
- Module Management
-
- </span>
-
+ <nav class="md-header__inner md-grid" aria-label="Header">
+ <a href="index.html" title="FreeType-2.11.1 API Reference" class="md-header__button md-logo" aria-label="FreeType-2.11.1 API Reference" data-md-component="logo">
+
+ <img src="images/favico.ico" alt="logo">
+
+ </a>
+ <label class="md-header__button md-icon" for="__drawer">
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M3 6h18v2H3V6m0 5h18v2H3v-2m0 5h18v2H3v-2z"/></svg>
+ </label>
+ <div class="md-header__title" data-md-component="header-title">
+ <div class="md-header__ellipsis">
+ <div class="md-header__topic">
+ <span class="md-ellipsis">
+ FreeType-2.11.1 API Reference
+ </span>
+ </div>
+ <div class="md-header__topic" data-md-component="header-topic">
+ <span class="md-ellipsis">
+
+ Module Management
+
+ </span>
</div>
</div>
- <div class="md-flex__cell md-flex__cell--shrink">
-
- <label class="md-icon md-icon--search md-header-nav__button" for="__search"></label>
-
+ </div>
+
+
+
+ <label class="md-header__button md-icon" for="__search">
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M9.5 3A6.5 6.5 0 0 1 16 9.5c0 1.61-.59 3.09-1.56 4.23l.27.27h.79l5 5-1.5 1.5-5-5v-.79l-.27-.27A6.516 6.516 0 0 1 9.5 16 6.5 6.5 0 0 1 3 9.5 6.5 6.5 0 0 1 9.5 3m0 2C7 5 5 7 5 9.5S7 14 9.5 14 14 12 14 9.5 12 5 9.5 5z"/></svg>
+ </label>
+
<div class="md-search" data-md-component="search" role="dialog">
<label class="md-search__overlay" for="__search"></label>
<div class="md-search__inner" role="search">
<form class="md-search__form" name="search">
- <input type="text" class="md-search__input" aria-label="search" name="query" placeholder="Search" autocapitalize="off" autocorrect="off" autocomplete="off" spellcheck="false" data-md-component="query" data-md-state="active">
- <label class="md-icon md-search__icon" for="__search"></label>
- <button type="reset" class="md-icon md-search__icon" data-md-component="reset" tabindex="-1">
- &#xE5CD;
+ <input type="text" class="md-search__input" name="query" aria-label="Search" placeholder="Search" autocapitalize="off" autocorrect="off" autocomplete="off" spellcheck="false" data-md-component="search-query" data-md-state="active" required>
+ <label class="md-search__icon md-icon" for="__search">
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M9.5 3A6.5 6.5 0 0 1 16 9.5c0 1.61-.59 3.09-1.56 4.23l.27.27h.79l5 5-1.5 1.5-5-5v-.79l-.27-.27A6.516 6.516 0 0 1 9.5 16 6.5 6.5 0 0 1 3 9.5 6.5 6.5 0 0 1 9.5 3m0 2C7 5 5 7 5 9.5S7 14 9.5 14 14 12 14 9.5 12 5 9.5 5z"/></svg>
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M20 11v2H8l5.5 5.5-1.42 1.42L4.16 12l7.92-7.92L13.5 5.5 8 11h12z"/></svg>
+ </label>
+ <button type="reset" class="md-search__icon md-icon" aria-label="Clear" tabindex="-1">
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z"/></svg>
</button>
</form>
<div class="md-search__output">
<div class="md-search__scrollwrap" data-md-scrollfix>
- <div class="md-search-result" data-md-component="result">
+ <div class="md-search-result" data-md-component="search-result">
<div class="md-search-result__meta">
- Type to start searching
+ Initializing search
</div>
<ol class="md-search-result__list"></ol>
</div>
@@ -147,33 +138,35 @@
</div>
</div>
</div>
-
- </div>
-
- </div>
+
+
</nav>
</header>
- <div class="md-container">
+ <div class="md-container" data-md-component="container">
-
+
- <main class="md-main" role="main">
- <div class="md-main__inner md-grid" data-md-component="container">
+ <main class="md-main" data-md-component="main">
+ <div class="md-main__inner md-grid">
- <div class="md-sidebar md-sidebar--primary" data-md-component="navigation">
+
+ <div class="md-sidebar md-sidebar--primary" data-md-component="sidebar" data-md-type="navigation" >
<div class="md-sidebar__scrollwrap">
<div class="md-sidebar__inner">
- <nav class="md-nav md-nav--primary" data-md-level="0">
- <label class="md-nav__title md-nav__title--site" for="__drawer">
- <a href="." title="FreeType-2.10.4 API Reference" class="md-nav__button md-logo">
-
- <img alt="logo" src="images/favico.ico" width="48" height="48">
+
+
+
+<nav class="md-nav md-nav--primary" aria-label="Navigation" data-md-level="0">
+ <label class="md-nav__title" for="__drawer">
+ <a href="index.html" title="FreeType-2.11.1 API Reference" class="md-nav__button md-logo" aria-label="FreeType-2.11.1 API Reference" data-md-component="logo">
+ <img src="images/favico.ico" alt="logo">
+
</a>
- FreeType-2.10.4 API Reference
+ FreeType-2.11.1 API Reference
</label>
<ul class="md-nav__list" data-md-scrollfix>
@@ -182,516 +175,564 @@
-
- <li class="md-nav__item">
- <a href="index.html" title="TOC" class="md-nav__link">
- TOC
- </a>
- </li>
+
+
+
+ <li class="md-nav__item">
+ <a href="index.html" class="md-nav__link">
+ TOC
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-index.html" title="Index" class="md-nav__link">
- Index
- </a>
- </li>
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-index.html" class="md-nav__link">
+ Index
+ </a>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-3" type="checkbox" id="nav-3">
+
+
+
- <label class="md-nav__link" for="nav-3">
- General Remarks
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-3">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_3" type="checkbox" id="__nav_3" >
+
+ <label class="md-nav__link" for="__nav_3">
General Remarks
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
-
+ <nav class="md-nav" aria-label="General Remarks" data-md-level="1">
+ <label class="md-nav__title" for="__nav_3">
+ <span class="md-nav__icon md-icon"></span>
+ General Remarks
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
-
-
-
- <li class="md-nav__item">
- <a href="ft2-header_inclusion.html" title="FreeType's header inclusion scheme" class="md-nav__link">
- FreeType's header inclusion scheme
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-preamble.html" class="md-nav__link">
+ Preamble
+ </a>
+ </li>
+
-
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-header_inclusion.html" class="md-nav__link">
+ FreeType's header inclusion scheme
+ </a>
+ </li>
+
- <li class="md-nav__item">
- <a href="ft2-user_allocation.html" title="User allocation" class="md-nav__link">
- User allocation
- </a>
- </li>
+
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-user_allocation.html" class="md-nav__link">
+ User allocation
+ </a>
+ </li>
+
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-4" type="checkbox" id="nav-4">
+
+
+
- <label class="md-nav__link" for="nav-4">
- Core API
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-4">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_4" type="checkbox" id="__nav_4" >
+
+ <label class="md-nav__link" for="__nav_4">
Core API
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
-
-
+ <nav class="md-nav" aria-label="Core API" data-md-level="1">
+ <label class="md-nav__title" for="__nav_4">
+ <span class="md-nav__icon md-icon"></span>
+ Core API
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-version.html" class="md-nav__link">
+ FreeType Version
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-version.html" title="FreeType Version" class="md-nav__link">
- FreeType Version
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-basic_types.html" title="Basic Data Types" class="md-nav__link">
- Basic Data Types
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-basic_types.html" class="md-nav__link">
+ Basic Data Types
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-base_interface.html" title="Base Interface" class="md-nav__link">
- Base Interface
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-base_interface.html" class="md-nav__link">
+ Base Interface
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-glyph_variants.html" class="md-nav__link">
+ Unicode Variation Sequences
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-glyph_variants.html" title="Unicode Variation Sequences" class="md-nav__link">
- Unicode Variation Sequences
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-color_management.html" title="Glyph Color Management" class="md-nav__link">
- Glyph Color Management
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-color_management.html" class="md-nav__link">
+ Glyph Color Management
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-layer_management.html" title="Glyph Layer Management" class="md-nav__link">
- Glyph Layer Management
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-layer_management.html" class="md-nav__link">
+ Glyph Layer Management
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-glyph_management.html" title="Glyph Management" class="md-nav__link">
- Glyph Management
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-glyph_management.html" class="md-nav__link">
+ Glyph Management
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-mac_specific.html" title="Mac Specific Interface" class="md-nav__link">
- Mac Specific Interface
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-mac_specific.html" class="md-nav__link">
+ Mac Specific Interface
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-sizes_management.html" title="Size Management" class="md-nav__link">
- Size Management
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-sizes_management.html" class="md-nav__link">
+ Size Management
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-header_file_macros.html" title="Header File Macros" class="md-nav__link">
- Header File Macros
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-header_file_macros.html" class="md-nav__link">
+ Header File Macros
+ </a>
+ </li>
+
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-5" type="checkbox" id="nav-5">
+
+
+
- <label class="md-nav__link" for="nav-5">
- Format-Specific API
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-5">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_5" type="checkbox" id="__nav_5" >
+
+ <label class="md-nav__link" for="__nav_5">
Format-Specific API
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
-
-
+ <nav class="md-nav" aria-label="Format-Specific API" data-md-level="1">
+ <label class="md-nav__title" for="__nav_5">
+ <span class="md-nav__icon md-icon"></span>
+ Format-Specific API
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-multiple_masters.html" class="md-nav__link">
+ Multiple Masters
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-multiple_masters.html" title="Multiple Masters" class="md-nav__link">
- Multiple Masters
- </a>
- </li>
-
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-truetype_tables.html" class="md-nav__link">
+ TrueType Tables
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-truetype_tables.html" title="TrueType Tables" class="md-nav__link">
- TrueType Tables
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-type1_tables.html" title="Type 1 Tables" class="md-nav__link">
- Type 1 Tables
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-type1_tables.html" class="md-nav__link">
+ Type 1 Tables
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-sfnt_names.html" class="md-nav__link">
+ SFNT Names
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-sfnt_names.html" title="SFNT Names" class="md-nav__link">
- SFNT Names
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-bdf_fonts.html" title="BDF and PCF Files" class="md-nav__link">
- BDF and PCF Files
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-bdf_fonts.html" class="md-nav__link">
+ BDF and PCF Files
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-cid_fonts.html" title="CID Fonts" class="md-nav__link">
- CID Fonts
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-cid_fonts.html" class="md-nav__link">
+ CID Fonts
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-pfr_fonts.html" class="md-nav__link">
+ PFR Fonts
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-pfr_fonts.html" title="PFR Fonts" class="md-nav__link">
- PFR Fonts
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-winfnt_fonts.html" title="Window FNT Files" class="md-nav__link">
- Window FNT Files
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-winfnt_fonts.html" class="md-nav__link">
+ Window FNT Files
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-font_formats.html" title="Font Formats" class="md-nav__link">
- Font Formats
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-font_formats.html" class="md-nav__link">
+ Font Formats
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-gasp_table.html" title="Gasp Table" class="md-nav__link">
- Gasp Table
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-gasp_table.html" class="md-nav__link">
+ Gasp Table
+ </a>
+ </li>
+
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-6" type="checkbox" id="nav-6">
+
+
+
- <label class="md-nav__link" for="nav-6">
- Controlling FreeType Modules
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-6">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_6" type="checkbox" id="__nav_6" >
+
+ <label class="md-nav__link" for="__nav_6">
Controlling FreeType Modules
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
+ <nav class="md-nav" aria-label="Controlling FreeType Modules" data-md-level="1">
+ <label class="md-nav__title" for="__nav_6">
+ <span class="md-nav__icon md-icon"></span>
+ Controlling FreeType Modules
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-auto_hinter.html" title="The auto-hinter" class="md-nav__link">
- The auto-hinter
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-auto_hinter.html" class="md-nav__link">
+ The auto-hinter
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-cff_driver.html" class="md-nav__link">
+ The CFF driver
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-cff_driver.html" title="The CFF driver" class="md-nav__link">
- The CFF driver
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-t1_cid_driver.html" title="The Type 1 and CID drivers" class="md-nav__link">
- The Type 1 and CID drivers
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-t1_cid_driver.html" class="md-nav__link">
+ The Type 1 and CID drivers
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-tt_driver.html" class="md-nav__link">
+ The TrueType driver
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-tt_driver.html" title="The TrueType driver" class="md-nav__link">
- The TrueType driver
- </a>
- </li>
-
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-pcf_driver.html" class="md-nav__link">
+ The PCF driver
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-pcf_driver.html" title="The PCF driver" class="md-nav__link">
- The PCF driver
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-properties.html" title="Driver properties" class="md-nav__link">
- Driver properties
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-properties.html" class="md-nav__link">
+ Driver properties
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-parameter_tags.html" class="md-nav__link">
+ Parameter Tags
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-parameter_tags.html" title="Parameter Tags" class="md-nav__link">
- Parameter Tags
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-lcd_rendering.html" title="Subpixel Rendering" class="md-nav__link">
- Subpixel Rendering
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-lcd_rendering.html" class="md-nav__link">
+ Subpixel Rendering
+ </a>
+ </li>
+
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-7" type="checkbox" id="nav-7">
+
+
+
- <label class="md-nav__link" for="nav-7">
- Cache Sub-System
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-7">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_7" type="checkbox" id="__nav_7" >
+
+ <label class="md-nav__link" for="__nav_7">
Cache Sub-System
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
-
+ <nav class="md-nav" aria-label="Cache Sub-System" data-md-level="1">
+ <label class="md-nav__title" for="__nav_7">
+ <span class="md-nav__icon md-icon"></span>
+ Cache Sub-System
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
-
-
-
- <li class="md-nav__item">
- <a href="ft2-cache_subsystem.html" title="Cache Sub-System" class="md-nav__link">
- Cache Sub-System
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-cache_subsystem.html" class="md-nav__link">
+ Cache Sub-System
+ </a>
+ </li>
+
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
@@ -699,149 +740,159 @@
-
-
- <li class="md-nav__item md-nav__item--active md-nav__item--nested">
+
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-8" type="checkbox" id="nav-8" checked>
+
+
- <label class="md-nav__link" for="nav-8">
- Support API
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-8">
+ <li class="md-nav__item md-nav__item--active md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_8" type="checkbox" id="__nav_8" checked>
+
+ <label class="md-nav__link" for="__nav_8">
Support API
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
-
+ <nav class="md-nav" aria-label="Support API" data-md-level="1">
+ <label class="md-nav__title" for="__nav_8">
+ <span class="md-nav__icon md-icon"></span>
+ Support API
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
-
-
-
- <li class="md-nav__item">
- <a href="ft2-computations.html" title="Computations" class="md-nav__link">
- Computations
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-computations.html" class="md-nav__link">
+ Computations
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-list_processing.html" title="List Processing" class="md-nav__link">
- List Processing
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-list_processing.html" class="md-nav__link">
+ List Processing
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-outline_processing.html" title="Outline Processing" class="md-nav__link">
- Outline Processing
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-outline_processing.html" class="md-nav__link">
+ Outline Processing
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-quick_advance.html" title="Quick retrieval of advance values" class="md-nav__link">
- Quick retrieval of advance values
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-quick_advance.html" class="md-nav__link">
+ Quick retrieval of advance values
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-bitmap_handling.html" title="Bitmap Handling" class="md-nav__link">
- Bitmap Handling
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-bitmap_handling.html" class="md-nav__link">
+ Bitmap Handling
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-raster.html" title="Scanline Converter" class="md-nav__link">
- Scanline Converter
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-raster.html" class="md-nav__link">
+ Scanline Converter
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-glyph_stroker.html" class="md-nav__link">
+ Glyph Stroker
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-glyph_stroker.html" title="Glyph Stroker" class="md-nav__link">
- Glyph Stroker
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-system_interface.html" title="System Interface" class="md-nav__link">
- System Interface
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-system_interface.html" class="md-nav__link">
+ System Interface
+ </a>
+ </li>
+
-
-
-
-
+
+
-
-
- <li class="md-nav__item md-nav__item--active">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="toc" type="checkbox" id="__toc">
+
+
+ <li class="md-nav__item md-nav__item--active">
-
-
- <label class="md-nav__link md-nav__link--active" for="__toc">
+ <input class="md-nav__toggle md-toggle" data-md-toggle="toc" type="checkbox" id="__toc">
+
+
+
+
+
+ <label class="md-nav__link md-nav__link--active" for="__toc">
+ Module Management
+ <span class="md-nav__icon md-icon"></span>
+ </label>
+
+ <a href="ft2-module_management.html" class="md-nav__link md-nav__link--active">
Module Management
- </label>
-
- <a href="ft2-module_management.html" title="Module Management" class="md-nav__link md-nav__link--active">
- Module Management
- </a>
-
+ </a>
-<nav class="md-nav md-nav--secondary">
+
+<nav class="md-nav md-nav--secondary" aria-label="Table of contents">
+
- <label class="md-nav__title" for="__toc">Table of contents</label>
- <ul class="md-nav__list" data-md-scrollfix>
+ <label class="md-nav__title" for="__toc">
+ <span class="md-nav__icon md-icon"></span>
+ Table of contents
+ </label>
+ <ul class="md-nav__list" data-md-component="toc" data-md-scrollfix>
<li class="md-nav__item">
<a href="#synopsis" class="md-nav__link">
@@ -914,6 +965,13 @@
</li>
<li class="md-nav__item">
+ <a href="#ft_face_driver_name" class="md-nav__link">
+ FT_FACE_DRIVER_NAME
+ </a>
+
+</li>
+
+ <li class="md-nav__item">
<a href="#ft_property_set" class="md-nav__link">
FT_Property_Set
</a>
@@ -1011,176 +1069,198 @@
</li>
-
-
-
-
</ul>
</nav>
-
- </li>
+
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-gzip.html" title="GZIP Streams" class="md-nav__link">
- GZIP Streams
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-gzip.html" class="md-nav__link">
+ GZIP Streams
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-lzw.html" class="md-nav__link">
+ LZW Streams
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-lzw.html" title="LZW Streams" class="md-nav__link">
- LZW Streams
- </a>
- </li>
-
-
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-bzip2.html" class="md-nav__link">
+ BZIP2 Streams
+ </a>
+ </li>
+
- <li class="md-nav__item">
- <a href="ft2-bzip2.html" title="BZIP2 Streams" class="md-nav__link">
- BZIP2 Streams
- </a>
- </li>
+
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-debugging_apis.html" class="md-nav__link">
+ External Debugging APIs
+ </a>
+ </li>
+
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-9" type="checkbox" id="nav-9">
+
+
+
- <label class="md-nav__link" for="nav-9">
- Error Codes
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-9">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_9" type="checkbox" id="__nav_9" >
+
+ <label class="md-nav__link" for="__nav_9">
Error Codes
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
+ <nav class="md-nav" aria-label="Error Codes" data-md-level="1">
+ <label class="md-nav__title" for="__nav_9">
+ <span class="md-nav__icon md-icon"></span>
+ Error Codes
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-error_enumerations.html" title="Error Enumerations" class="md-nav__link">
- Error Enumerations
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-error_enumerations.html" class="md-nav__link">
+ Error Enumerations
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-error_code_values.html" class="md-nav__link">
+ Error Code Values
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-error_code_values.html" title="Error Code Values" class="md-nav__link">
- Error Code Values
- </a>
- </li>
-
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-10" type="checkbox" id="nav-10">
+
+
+
- <label class="md-nav__link" for="nav-10">
- Miscellaneous
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-10">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_10" type="checkbox" id="__nav_10" >
+
+ <label class="md-nav__link" for="__nav_10">
Miscellaneous
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
+ <nav class="md-nav" aria-label="Miscellaneous" data-md-level="1">
+ <label class="md-nav__title" for="__nav_10">
+ <span class="md-nav__icon md-icon"></span>
+ Miscellaneous
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-gx_validation.html" title="TrueTypeGX/AAT Validation" class="md-nav__link">
- TrueTypeGX/AAT Validation
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-gx_validation.html" class="md-nav__link">
+ TrueTypeGX/AAT Validation
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-incremental.html" class="md-nav__link">
+ Incremental Loading
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-incremental.html" title="Incremental Loading" class="md-nav__link">
- Incremental Loading
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-truetype_engine.html" title="The TrueType Engine" class="md-nav__link">
- The TrueType Engine
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-truetype_engine.html" class="md-nav__link">
+ The TrueType Engine
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-ot_validation.html" title="OpenType Validation" class="md-nav__link">
- OpenType Validation
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-ot_validation.html" class="md-nav__link">
+ OpenType Validation
+ </a>
+ </li>
+
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
</ul>
@@ -1190,18 +1270,23 @@
</div>
- <div class="md-sidebar md-sidebar--secondary" data-md-component="toc">
+
+ <div class="md-sidebar md-sidebar--secondary" data-md-component="sidebar" data-md-type="toc" >
<div class="md-sidebar__scrollwrap">
<div class="md-sidebar__inner">
-<nav class="md-nav md-nav--secondary">
+<nav class="md-nav md-nav--secondary" aria-label="Table of contents">
+
- <label class="md-nav__title" for="__toc">Table of contents</label>
- <ul class="md-nav__list" data-md-scrollfix>
+ <label class="md-nav__title" for="__toc">
+ <span class="md-nav__icon md-icon"></span>
+ Table of contents
+ </label>
+ <ul class="md-nav__list" data-md-component="toc" data-md-scrollfix>
<li class="md-nav__item">
<a href="#synopsis" class="md-nav__link">
@@ -1274,6 +1359,13 @@
</li>
<li class="md-nav__item">
+ <a href="#ft_face_driver_name" class="md-nav__link">
+ FT_FACE_DRIVER_NAME
+ </a>
+
+</li>
+
+ <li class="md-nav__item">
<a href="#ft_property_set" class="md-nav__link">
FT_Property_Set
</a>
@@ -1371,10 +1463,6 @@
</li>
-
-
-
-
</ul>
</nav>
@@ -1383,7 +1471,7 @@
</div>
- <div class="md-content">
+ <div class="md-content" data-md-component="content">
<article class="md-content__inner md-typeset">
@@ -1392,8 +1480,8 @@
<hr />
<h1 id="module-management">Module Management<a class="headerlink" href="#module-management" title="Permanent link">&para;</a></h1>
<h2 id="synopsis">Synopsis<a class="headerlink" href="#synopsis" title="Permanent link">&para;</a></h2>
-<p>The definitions below are used to manage modules within FreeType. Modules can be added, upgraded, and removed at runtime. Additionally, some module properties can be controlled also.</p>
-<p>Here is a list of possible values of the <code>module_name</code> field in the <code><a href="ft2-module_management.html#ft_module_class">FT_Module_Class</a></code> structure.
+<p>The definitions below are used to manage modules within FreeType. Internal and external modules can be added, upgraded, and removed at runtime. For example, an alternative renderer or proprietary font driver can be registered and prioritized. Additionally, some module properties can also be controlled.</p>
+<p>Here is a list of existing values of the <code>module_name</code> field in the <code><a href="ft2-module_management.html#ft_module_class">FT_Module_Class</a></code> structure.
<div class="highlight"><pre><span></span><code> autofitter
bdf
cff
@@ -1430,7 +1518,6 @@
<p>A function used to initialize (not create) a new module object.</p>
<h4>input</h4>
-
<table class="fields">
<tr><td class="val" id="module">module</td><td class="desc">
<p>The module to initialize.</p>
@@ -1447,7 +1534,6 @@
<p>A function used to finalize (not destroy) a given module object.</p>
<h4>input</h4>
-
<table class="fields">
<tr><td class="val" id="module">module</td><td class="desc">
<p>The module to finalize.</p>
@@ -1465,7 +1551,6 @@
<p>A function used to query a given module for a specific interface.</p>
<h4>input</h4>
-
<table class="fields">
<tr><td class="val" id="module">module</td><td class="desc">
<p>The module to be searched.</p>
@@ -1498,7 +1583,6 @@
<p>The module class descriptor. While being a public structure necessary for FreeType's module bookkeeping, most of the fields are essentially internal, not to be used directly by an application.</p>
<h4>fields</h4>
-
<table class="fields">
<tr><td class="val" id="module_flags">module_flags</td><td class="desc">
<p>Bit flags describing the module.</p>
@@ -1540,7 +1624,6 @@
<p>Add a new module to a given library instance.</p>
<h4>inout</h4>
-
<table class="fields">
<tr><td class="val" id="library">library</td><td class="desc">
<p>A handle to the library object.</p>
@@ -1548,7 +1631,6 @@
</table>
<h4>input</h4>
-
<table class="fields">
<tr><td class="val" id="clazz">clazz</td><td class="desc">
<p>A pointer to class descriptor for the module.</p>
@@ -1572,7 +1654,6 @@
<p>Find a module by its name.</p>
<h4>input</h4>
-
<table class="fields">
<tr><td class="val" id="library">library</td><td class="desc">
<p>A handle to the library object.</p>
@@ -1599,7 +1680,6 @@
<p>Remove a given module from a library instance.</p>
<h4>inout</h4>
-
<table class="fields">
<tr><td class="val" id="library">library</td><td class="desc">
<p>A handle to a library object.</p>
@@ -1607,7 +1687,6 @@
</table>
<h4>input</h4>
-
<table class="fields">
<tr><td class="val" id="module">module</td><td class="desc">
<p>A handle to a module object.</p>
@@ -1630,7 +1709,6 @@
<p>Add the set of default drivers to a given library object. This is only useful when you create a library object with <code><a href="ft2-module_management.html#ft_new_library">FT_New_Library</a></code> (usually to plug a custom memory manager).</p>
<h4>inout</h4>
-
<table class="fields">
<tr><td class="val" id="library">library</td><td class="desc">
<p>A handle to a new library object.</p>
@@ -1639,6 +1717,22 @@
<hr>
+<h2 id="ft_face_driver_name">FT_FACE_DRIVER_NAME<a class="headerlink" href="#ft_face_driver_name" title="Permanent link">&para;</a></h2>
+<p>Defined in FT_MODULE_H (freetype/ftmodapi.h).</p>
+<div class = "codehilite"><pre><code>#<span class="keyword">define</span> <b>FT_FACE_DRIVER_NAME</b>( face ) \
+ ( ( *FT_REINTERPRET_CAST( <a href="ft2-module_management.html#ft_module_class">FT_Module_Class</a>**, \
+ ( face )-&gt;driver ) )-&gt;module_name )
+</code></pre></div>
+
+<p>A macro that retrieves the name of a font driver from a face object.</p>
+<h4>note</h4>
+
+<p>The font driver name is a valid <code>module_name</code> for <code><a href="ft2-module_management.html#ft_property_set">FT_Property_Set</a></code> and <code><a href="ft2-module_management.html#ft_property_get">FT_Property_Get</a></code>. This is not the same as <code><a href="ft2-font_formats.html#ft_get_font_format">FT_Get_Font_Format</a></code>.</p>
+<h4>since</h4>
+
+<p>2.11</p>
+<hr>
+
<h2 id="ft_property_set">FT_Property_Set<a class="headerlink" href="#ft_property_set" title="Permanent link">&para;</a></h2>
<p>Defined in FT_MODULE_H (freetype/ftmodapi.h).</p>
<div class = "codehilite"><pre><code> FT_EXPORT( <a href="ft2-basic_types.html#ft_error">FT_Error</a> )
@@ -1650,7 +1744,6 @@
<p>Set a property for a given module.</p>
<h4>input</h4>
-
<table class="fields">
<tr><td class="val" id="library">library</td><td class="desc">
<p>A handle to the library the module is part of.</p>
@@ -1698,7 +1791,6 @@
<p>Get a module's property value.</p>
<h4>input</h4>
-
<table class="fields">
<tr><td class="val" id="library">library</td><td class="desc">
<p>A handle to the library the module is part of.</p>
@@ -1712,7 +1804,6 @@
</table>
<h4>inout</h4>
-
<table class="fields">
<tr><td class="val" id="value">value</td><td class="desc">
<p>A generic pointer to a variable or structure that gives the value of the property. The exact definition of <code>value</code> is dependent on the property; see section &lsquo;<a href="ft2-properties.html#properties">Driver properties</a>&rsquo;.</p>
@@ -1763,11 +1854,9 @@
</code></pre></div></p>
<p>Example:
<div class="highlight"><pre><span></span><code> FREETYPE_PROPERTIES=truetype:interpreter-version=35 \
- cff:no-stem-darkening=0 \
- autofitter:warping=1
+ cff:no-stem-darkening=0
</code></pre></div></p>
<h4>inout</h4>
-
<table class="fields">
<tr><td class="val" id="library">library</td><td class="desc">
<p>A handle to a new library object.</p>
@@ -1790,7 +1879,6 @@
<p>Normally, you would call this function (followed by a call to <code><a href="ft2-module_management.html#ft_add_default_modules">FT_Add_Default_Modules</a></code> or a series of calls to <code><a href="ft2-module_management.html#ft_add_module">FT_Add_Module</a></code>, and a call to <code><a href="ft2-module_management.html#ft_set_default_properties">FT_Set_Default_Properties</a></code>) instead of <code><a href="ft2-base_interface.html#ft_init_freetype">FT_Init_FreeType</a></code> to initialize the FreeType library.</p>
<p>Don't use <code><a href="ft2-base_interface.html#ft_done_freetype">FT_Done_FreeType</a></code> but <code><a href="ft2-module_management.html#ft_done_library">FT_Done_Library</a></code> to destroy a library instance.</p>
<h4>input</h4>
-
<table class="fields">
<tr><td class="val" id="memory">memory</td><td class="desc">
<p>A handle to the original memory object.</p>
@@ -1798,7 +1886,6 @@
</table>
<h4>output</h4>
-
<table class="fields">
<tr><td class="val" id="alibrary">alibrary</td><td class="desc">
<p>A pointer to handle of a new library object.</p>
@@ -1821,7 +1908,6 @@
<p>Discard a given library object. This closes all drivers and discards all resource objects.</p>
<h4>input</h4>
-
<table class="fields">
<tr><td class="val" id="library">library</td><td class="desc">
<p>A handle to the target library.</p>
@@ -1845,7 +1931,6 @@
<p>A counter gets initialized to&nbsp;1 at the time an <code><a href="ft2-base_interface.html#ft_library">FT_Library</a></code> structure is created. This function increments the counter. <code><a href="ft2-module_management.html#ft_done_library">FT_Done_Library</a></code> then only destroys a library if the counter is&nbsp;1, otherwise it simply decrements the counter.</p>
<p>This function helps in managing life-cycles of structures that reference <code><a href="ft2-base_interface.html#ft_library">FT_Library</a></code> objects.</p>
<h4>input</h4>
-
<table class="fields">
<tr><td class="val" id="library">library</td><td class="desc">
<p>A handle to a target library object.</p>
@@ -1888,7 +1973,6 @@
<p>The renderer module class descriptor.</p>
<h4>fields</h4>
-
<table class="fields">
<tr><td class="val" id="root">root</td><td class="desc">
<p>The root <code><a href="ft2-module_management.html#ft_module_class">FT_Module_Class</a></code> fields.</p>
@@ -1924,7 +2008,6 @@
<p>Retrieve the current renderer for a given glyph format.</p>
<h4>input</h4>
-
<table class="fields">
<tr><td class="val" id="library">library</td><td class="desc">
<p>A handle to the library object.</p>
@@ -1954,7 +2037,6 @@
<p>Set the current renderer to use, and set additional mode.</p>
<h4>inout</h4>
-
<table class="fields">
<tr><td class="val" id="library">library</td><td class="desc">
<p>A handle to the library object.</p>
@@ -1962,7 +2044,6 @@
</table>
<h4>input</h4>
-
<table class="fields">
<tr><td class="val" id="renderer">renderer</td><td class="desc">
<p>A handle to the renderer object.</p>
@@ -1997,7 +2078,6 @@
<p>While this is a public API function, an application needs access to FreeType's internal header files to do something useful.</p>
<p>Have a look at the source code of the <code>ttdebug</code> FreeType demo program for an example of its usage.</p>
<h4>inout</h4>
-
<table class="fields">
<tr><td class="val" id="library">library</td><td class="desc">
<p>A handle to the library object.</p>
@@ -2005,7 +2085,6 @@
</table>
<h4>input</h4>
-
<table class="fields">
<tr><td class="val" id="hook_index">hook_index</td><td class="desc">
<p>The index of the debug hook. You should use defined enumeration macros like <code><a href="ft2-module_management.html#ft_debug_hook_xxx">FT_DEBUG_HOOK_TRUETYPE</a></code>.</p>
@@ -2050,7 +2129,6 @@
<p>An example for such a main loop function is <code>TT_RunIns</code> (declared in FreeType's internal header file <code>src/truetype/ttinterp.h</code>).</p>
<p>Have a look at the source code of the <code>ttdebug</code> FreeType demo program for an example of a drop-in replacement.</p>
<h4>inout</h4>
-
<table class="fields">
<tr><td class="val" id="arg">arg</td><td class="desc">
<p>A typeless pointer, to be cast to the main loop function's data structure (which depends on the font module). For TrueType fonts it is bytecode interpreter's execution context, <code>TT_ExecContext</code>, which is declared in FreeType's internal header file <code>tttypes.h</code>.</p>
@@ -2066,7 +2144,6 @@
<p>A list of named debug hook indices.</p>
<h4>values</h4>
-
<table class="fields">
<tr><td class="val" id="ft_debug_hook_truetype">FT_DEBUG_HOOK_TRUETYPE</td><td class="desc">
<p>This hook index identifies the TrueType bytecode debugger.</p>
@@ -2075,9 +2152,6 @@
<hr>
-
-
-
@@ -2087,59 +2161,60 @@
</article>
</div>
</div>
+
</main>
<footer class="md-footer">
- <div class="md-footer-nav">
- <nav class="md-footer-nav__inner md-grid">
+ <nav class="md-footer__inner md-grid" aria-label="Footer">
+
- <a href="ft2-system_interface.html" title="System Interface" class="md-flex md-footer-nav__link md-footer-nav__link--prev" rel="prev">
- <div class="md-flex__cell md-flex__cell--shrink">
- <i class="md-icon md-icon--arrow-back md-footer-nav__button"></i>
- </div>
- <div class="md-flex__cell md-flex__cell--stretch md-footer-nav__title">
- <span class="md-flex__ellipsis">
- <span class="md-footer-nav__direction">
- Previous
- </span>
- System Interface
+ <a href="ft2-system_interface.html" class="md-footer__link md-footer__link--prev" aria-label="Previous: System Interface" rel="prev">
+ <div class="md-footer__button md-icon">
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M20 11v2H8l5.5 5.5-1.42 1.42L4.16 12l7.92-7.92L13.5 5.5 8 11h12z"/></svg>
+ </div>
+ <div class="md-footer__title">
+ <div class="md-ellipsis">
+ <span class="md-footer__direction">
+ Previous
</span>
+ System Interface
</div>
- </a>
-
+ </div>
+ </a>
+
+
- <a href="ft2-gzip.html" title="GZIP Streams" class="md-flex md-footer-nav__link md-footer-nav__link--next" rel="next">
- <div class="md-flex__cell md-flex__cell--stretch md-footer-nav__title">
- <span class="md-flex__ellipsis">
- <span class="md-footer-nav__direction">
- Next
- </span>
- GZIP Streams
+ <a href="ft2-gzip.html" class="md-footer__link md-footer__link--next" aria-label="Next: GZIP Streams" rel="next">
+ <div class="md-footer__title">
+ <div class="md-ellipsis">
+ <span class="md-footer__direction">
+ Next
</span>
+ GZIP Streams
</div>
- <div class="md-flex__cell md-flex__cell--shrink">
- <i class="md-icon md-icon--arrow-forward md-footer-nav__button"></i>
- </div>
- </a>
-
- </nav>
- </div>
+ </div>
+ <div class="md-footer__button md-icon">
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M4 11v2h12l-5.5 5.5 1.42 1.42L19.84 12l-7.92-7.92L10.5 5.5 16 11H4z"/></svg>
+ </div>
+ </a>
+
+ </nav>
<div class="md-footer-meta md-typeset">
<div class="md-footer-meta__inner md-grid">
<div class="md-footer-copyright">
<div class="md-footer-copyright__highlight">
- Copyright 2020 <a href = "https://www.freetype.org/license.html">The FreeType Project</a>.
+ Copyright 2021 <a href = "https://www.freetype.org/license.html">The FreeType Project</a>.
</div>
- powered by
- <a href="https://www.mkdocs.org" target="_blank" rel="noopener">MkDocs</a>
- and
+ Made with
<a href="https://squidfunk.github.io/mkdocs-material/" target="_blank" rel="noopener">
- Material for MkDocs</a>
+ Material for MkDocs
+ </a>
+
</div>
</div>
@@ -2147,10 +2222,13 @@
</footer>
</div>
+ <div class="md-dialog" data-md-component="dialog">
+ <div class="md-dialog__inner md-typeset"></div>
+ </div>
+ <script id="__config" type="application/json">{"base": ".", "features": [], "translations": {"clipboard.copy": "Copy to clipboard", "clipboard.copied": "Copied to clipboard", "search.config.lang": "en", "search.config.pipeline": "trimmer, stopWordFilter", "search.config.separator": "[\\s\\-]+", "search.placeholder": "Search", "search.result.placeholder": "Type to start searching", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.term.missing": "Missing", "select.version.title": "Select version"}, "search": "assets/javascripts/workers/search.477d984a.min.js", "version": null}</script>
- <script src="assets/javascripts/application.c33a9706.js"></script>
-
- <script>app.initialize({version:"1.1",url:{base:"."}})</script>
+
+ <script src="assets/javascripts/bundle.82b56eb2.min.js"></script>
<script src="javascripts/extra.js"></script>
diff --git a/freetype/docs/reference/ft2-multiple_masters.html b/freetype/docs/reference/ft2-multiple_masters.html
index f89cb09f..bac1a3e7 100644
--- a/freetype/docs/reference/ft2-multiple_masters.html
+++ b/freetype/docs/reference/ft2-multiple_masters.html
@@ -1,145 +1,136 @@
-
-
-
<!doctype html>
<html lang="en" class="no-js">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
- <meta http-equiv="x-ua-compatible" content="ie=edge">
- <meta name="description" content="API Reference Documentation for FreeType-2.10.4">
+ <meta name="description" content="API Reference Documentation for FreeType-2.11.1">
<meta name="author" content="FreeType Contributors">
- <meta name="lang:clipboard.copy" content="Copy to clipboard">
-
- <meta name="lang:clipboard.copied" content="Copied to clipboard">
-
- <meta name="lang:search.language" content="en">
-
- <meta name="lang:search.pipeline.stopwords" content="True">
-
- <meta name="lang:search.pipeline.trimmer" content="True">
-
- <meta name="lang:search.result.none" content="No matching documents">
-
- <meta name="lang:search.result.one" content="1 matching document">
-
- <meta name="lang:search.result.other" content="# matching documents">
-
- <meta name="lang:search.tokenizer" content="[\s\-]+">
-
- <link rel="shortcut icon" href="images/favico.ico">
- <meta name="generator" content="mkdocs-1.1, mkdocs-material-4.6.3">
+ <link rel="icon" href="images/favico.ico">
+ <meta name="generator" content="mkdocs-1.2.1, mkdocs-material-7.1.9">
- <title>Multiple Masters - FreeType-2.10.4 API Reference</title>
+ <title>Multiple Masters - FreeType-2.11.1 API Reference</title>
- <link rel="stylesheet" href="assets/stylesheets/application.adb8469c.css">
-
- <link rel="stylesheet" href="assets/stylesheets/application-palette.a8b3c06d.css">
-
+ <link rel="stylesheet" href="assets/stylesheets/main.ca7ac06f.min.css">
+ <link rel="stylesheet" href="assets/stylesheets/palette.f1a3b89f.min.css">
+
+
+
+ <meta name="theme-color" content="#4cae4f">
- <meta name="theme-color" content="#4caf50">
- <script src="assets/javascripts/modernizr.86422ebf.js"></script>
-
- <link href="https://fonts.gstatic.com" rel="preconnect" crossorigin>
+
+ <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Noto+Serif:300,400,400i,700%7CRoboto+Mono&display=fallback">
- <style>body,input{font-family:"Noto Serif","Helvetica Neue",Helvetica,Arial,sans-serif}code,kbd,pre{font-family:"Roboto Mono","Courier New",Courier,monospace}</style>
+ <style>:root{--md-text-font-family:"Noto Serif";--md-code-font-family:"Roboto Mono"}</style>
- <link rel="stylesheet" href="assets/fonts/material-icons.css">
<link rel="stylesheet" href="stylesheets/extra.css">
+
+
</head>
+
+
+
+
- <body dir="ltr" data-md-color-primary="green" data-md-color-accent="green">
+ <body dir="ltr" data-md-color-scheme="" data-md-color-primary="green" data-md-color-accent="green">
- <svg class="md-svg">
- <defs>
-
-
- </defs>
- </svg>
- <input class="md-toggle" data-md-toggle="drawer" type="checkbox" id="__drawer" autocomplete="off">
- <input class="md-toggle" data-md-toggle="search" type="checkbox" id="__search" autocomplete="off">
- <label class="md-overlay" data-md-component="overlay" for="__drawer"></label>
- <a href="#multiple-masters" tabindex="0" class="md-skip">
- Skip to content
- </a>
+ <script>function __prefix(e){return new URL(".",location).pathname+"."+e}function __get(e,t=localStorage){return JSON.parse(t.getItem(__prefix(e)))}</script>
+ <input class="md-toggle" data-md-toggle="drawer" type="checkbox" id="__drawer" autocomplete="off">
+ <input class="md-toggle" data-md-toggle="search" type="checkbox" id="__search" autocomplete="off">
+ <label class="md-overlay" for="__drawer"></label>
+ <div data-md-component="skip">
+
+
+ <a href="#multiple-masters" class="md-skip">
+ Skip to content
+ </a>
+
+ </div>
+ <div data-md-component="announce">
+
+ </div>
<header class="md-header" data-md-component="header">
- <nav class="md-header-nav md-grid">
- <div class="md-flex">
- <div class="md-flex__cell md-flex__cell--shrink">
- <a href="." title="FreeType-2.10.4 API Reference" aria-label="FreeType-2.10.4 API Reference" class="md-header-nav__button md-logo">
-
- <img alt="logo" src="images/favico.ico" width="24" height="24">
-
- </a>
- </div>
- <div class="md-flex__cell md-flex__cell--shrink">
- <label class="md-icon md-icon--menu md-header-nav__button" for="__drawer"></label>
- </div>
- <div class="md-flex__cell md-flex__cell--stretch">
- <div class="md-flex__ellipsis md-header-nav__title" data-md-component="title">
-
- <span class="md-header-nav__topic">
- FreeType-2.10.4 API Reference
- </span>
- <span class="md-header-nav__topic">
-
- Multiple Masters
-
- </span>
-
+ <nav class="md-header__inner md-grid" aria-label="Header">
+ <a href="index.html" title="FreeType-2.11.1 API Reference" class="md-header__button md-logo" aria-label="FreeType-2.11.1 API Reference" data-md-component="logo">
+
+ <img src="images/favico.ico" alt="logo">
+
+ </a>
+ <label class="md-header__button md-icon" for="__drawer">
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M3 6h18v2H3V6m0 5h18v2H3v-2m0 5h18v2H3v-2z"/></svg>
+ </label>
+ <div class="md-header__title" data-md-component="header-title">
+ <div class="md-header__ellipsis">
+ <div class="md-header__topic">
+ <span class="md-ellipsis">
+ FreeType-2.11.1 API Reference
+ </span>
+ </div>
+ <div class="md-header__topic" data-md-component="header-topic">
+ <span class="md-ellipsis">
+
+ Multiple Masters
+
+ </span>
</div>
</div>
- <div class="md-flex__cell md-flex__cell--shrink">
-
- <label class="md-icon md-icon--search md-header-nav__button" for="__search"></label>
-
+ </div>
+
+
+
+ <label class="md-header__button md-icon" for="__search">
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M9.5 3A6.5 6.5 0 0 1 16 9.5c0 1.61-.59 3.09-1.56 4.23l.27.27h.79l5 5-1.5 1.5-5-5v-.79l-.27-.27A6.516 6.516 0 0 1 9.5 16 6.5 6.5 0 0 1 3 9.5 6.5 6.5 0 0 1 9.5 3m0 2C7 5 5 7 5 9.5S7 14 9.5 14 14 12 14 9.5 12 5 9.5 5z"/></svg>
+ </label>
+
<div class="md-search" data-md-component="search" role="dialog">
<label class="md-search__overlay" for="__search"></label>
<div class="md-search__inner" role="search">
<form class="md-search__form" name="search">
- <input type="text" class="md-search__input" aria-label="search" name="query" placeholder="Search" autocapitalize="off" autocorrect="off" autocomplete="off" spellcheck="false" data-md-component="query" data-md-state="active">
- <label class="md-icon md-search__icon" for="__search"></label>
- <button type="reset" class="md-icon md-search__icon" data-md-component="reset" tabindex="-1">
- &#xE5CD;
+ <input type="text" class="md-search__input" name="query" aria-label="Search" placeholder="Search" autocapitalize="off" autocorrect="off" autocomplete="off" spellcheck="false" data-md-component="search-query" data-md-state="active" required>
+ <label class="md-search__icon md-icon" for="__search">
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M9.5 3A6.5 6.5 0 0 1 16 9.5c0 1.61-.59 3.09-1.56 4.23l.27.27h.79l5 5-1.5 1.5-5-5v-.79l-.27-.27A6.516 6.516 0 0 1 9.5 16 6.5 6.5 0 0 1 3 9.5 6.5 6.5 0 0 1 9.5 3m0 2C7 5 5 7 5 9.5S7 14 9.5 14 14 12 14 9.5 12 5 9.5 5z"/></svg>
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M20 11v2H8l5.5 5.5-1.42 1.42L4.16 12l7.92-7.92L13.5 5.5 8 11h12z"/></svg>
+ </label>
+ <button type="reset" class="md-search__icon md-icon" aria-label="Clear" tabindex="-1">
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z"/></svg>
</button>
</form>
<div class="md-search__output">
<div class="md-search__scrollwrap" data-md-scrollfix>
- <div class="md-search-result" data-md-component="result">
+ <div class="md-search-result" data-md-component="search-result">
<div class="md-search-result__meta">
- Type to start searching
+ Initializing search
</div>
<ol class="md-search-result__list"></ol>
</div>
@@ -147,33 +138,35 @@
</div>
</div>
</div>
-
- </div>
-
- </div>
+
+
</nav>
</header>
- <div class="md-container">
+ <div class="md-container" data-md-component="container">
-
+
- <main class="md-main" role="main">
- <div class="md-main__inner md-grid" data-md-component="container">
+ <main class="md-main" data-md-component="main">
+ <div class="md-main__inner md-grid">
- <div class="md-sidebar md-sidebar--primary" data-md-component="navigation">
+
+ <div class="md-sidebar md-sidebar--primary" data-md-component="sidebar" data-md-type="navigation" >
<div class="md-sidebar__scrollwrap">
<div class="md-sidebar__inner">
- <nav class="md-nav md-nav--primary" data-md-level="0">
- <label class="md-nav__title md-nav__title--site" for="__drawer">
- <a href="." title="FreeType-2.10.4 API Reference" class="md-nav__button md-logo">
-
- <img alt="logo" src="images/favico.ico" width="48" height="48">
+
+
+
+<nav class="md-nav md-nav--primary" aria-label="Navigation" data-md-level="0">
+ <label class="md-nav__title" for="__drawer">
+ <a href="index.html" title="FreeType-2.11.1 API Reference" class="md-nav__button md-logo" aria-label="FreeType-2.11.1 API Reference" data-md-component="logo">
+ <img src="images/favico.ico" alt="logo">
+
</a>
- FreeType-2.10.4 API Reference
+ FreeType-2.11.1 API Reference
</label>
<ul class="md-nav__list" data-md-scrollfix>
@@ -182,216 +175,246 @@
-
- <li class="md-nav__item">
- <a href="index.html" title="TOC" class="md-nav__link">
- TOC
- </a>
- </li>
+
+
+
+ <li class="md-nav__item">
+ <a href="index.html" class="md-nav__link">
+ TOC
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-index.html" title="Index" class="md-nav__link">
- Index
- </a>
- </li>
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-index.html" class="md-nav__link">
+ Index
+ </a>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-3" type="checkbox" id="nav-3">
+
+
+
- <label class="md-nav__link" for="nav-3">
- General Remarks
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-3">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_3" type="checkbox" id="__nav_3" >
+
+ <label class="md-nav__link" for="__nav_3">
General Remarks
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
-
-
+ <nav class="md-nav" aria-label="General Remarks" data-md-level="1">
+ <label class="md-nav__title" for="__nav_3">
+ <span class="md-nav__icon md-icon"></span>
+ General Remarks
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-preamble.html" class="md-nav__link">
+ Preamble
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-header_inclusion.html" title="FreeType's header inclusion scheme" class="md-nav__link">
- FreeType's header inclusion scheme
- </a>
- </li>
-
-
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-header_inclusion.html" class="md-nav__link">
+ FreeType's header inclusion scheme
+ </a>
+ </li>
+
- <li class="md-nav__item">
- <a href="ft2-user_allocation.html" title="User allocation" class="md-nav__link">
- User allocation
- </a>
- </li>
+
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-user_allocation.html" class="md-nav__link">
+ User allocation
+ </a>
+ </li>
+
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-4" type="checkbox" id="nav-4">
+
+
+
- <label class="md-nav__link" for="nav-4">
- Core API
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-4">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_4" type="checkbox" id="__nav_4" >
+
+ <label class="md-nav__link" for="__nav_4">
Core API
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
-
+ <nav class="md-nav" aria-label="Core API" data-md-level="1">
+ <label class="md-nav__title" for="__nav_4">
+ <span class="md-nav__icon md-icon"></span>
+ Core API
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
-
-
-
- <li class="md-nav__item">
- <a href="ft2-version.html" title="FreeType Version" class="md-nav__link">
- FreeType Version
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-version.html" class="md-nav__link">
+ FreeType Version
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-basic_types.html" title="Basic Data Types" class="md-nav__link">
- Basic Data Types
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-basic_types.html" class="md-nav__link">
+ Basic Data Types
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-base_interface.html" title="Base Interface" class="md-nav__link">
- Base Interface
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-base_interface.html" class="md-nav__link">
+ Base Interface
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-glyph_variants.html" class="md-nav__link">
+ Unicode Variation Sequences
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-glyph_variants.html" title="Unicode Variation Sequences" class="md-nav__link">
- Unicode Variation Sequences
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-color_management.html" title="Glyph Color Management" class="md-nav__link">
- Glyph Color Management
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-color_management.html" class="md-nav__link">
+ Glyph Color Management
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-layer_management.html" class="md-nav__link">
+ Glyph Layer Management
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-layer_management.html" title="Glyph Layer Management" class="md-nav__link">
- Glyph Layer Management
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-glyph_management.html" title="Glyph Management" class="md-nav__link">
- Glyph Management
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-glyph_management.html" class="md-nav__link">
+ Glyph Management
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-mac_specific.html" title="Mac Specific Interface" class="md-nav__link">
- Mac Specific Interface
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-mac_specific.html" class="md-nav__link">
+ Mac Specific Interface
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-sizes_management.html" title="Size Management" class="md-nav__link">
- Size Management
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-sizes_management.html" class="md-nav__link">
+ Size Management
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-header_file_macros.html" title="Header File Macros" class="md-nav__link">
- Header File Macros
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-header_file_macros.html" class="md-nav__link">
+ Header File Macros
+ </a>
+ </li>
+
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
@@ -399,53 +422,63 @@
-
-
- <li class="md-nav__item md-nav__item--active md-nav__item--nested">
+
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-5" type="checkbox" id="nav-5" checked>
+
+
- <label class="md-nav__link" for="nav-5">
- Format-Specific API
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-5">
+ <li class="md-nav__item md-nav__item--active md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_5" type="checkbox" id="__nav_5" checked>
+
+ <label class="md-nav__link" for="__nav_5">
Format-Specific API
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
-
+ <nav class="md-nav" aria-label="Format-Specific API" data-md-level="1">
+ <label class="md-nav__title" for="__nav_5">
+ <span class="md-nav__icon md-icon"></span>
+ Format-Specific API
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
-
-
+
+
-
-
- <li class="md-nav__item md-nav__item--active">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="toc" type="checkbox" id="__toc">
+
+
+ <li class="md-nav__item md-nav__item--active">
-
-
- <label class="md-nav__link md-nav__link--active" for="__toc">
+ <input class="md-nav__toggle md-toggle" data-md-toggle="toc" type="checkbox" id="__toc">
+
+
+
+
+
+ <label class="md-nav__link md-nav__link--active" for="__toc">
+ Multiple Masters
+ <span class="md-nav__icon md-icon"></span>
+ </label>
+
+ <a href="ft2-multiple_masters.html" class="md-nav__link md-nav__link--active">
Multiple Masters
- </label>
-
- <a href="ft2-multiple_masters.html" title="Multiple Masters" class="md-nav__link md-nav__link--active">
- Multiple Masters
- </a>
-
+ </a>
-<nav class="md-nav md-nav--secondary">
+
+<nav class="md-nav md-nav--secondary" aria-label="Table of contents">
+
- <label class="md-nav__title" for="__toc">Table of contents</label>
- <ul class="md-nav__list" data-md-scrollfix>
+ <label class="md-nav__title" for="__toc">
+ <span class="md-nav__icon md-icon"></span>
+ Table of contents
+ </label>
+ <ul class="md-nav__list" data-md-component="toc" data-md-scrollfix>
<li class="md-nav__item">
<a href="#synopsis" class="md-nav__link">
@@ -594,572 +627,612 @@
</li>
-
-
-
-
</ul>
</nav>
-
- </li>
+
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-truetype_tables.html" class="md-nav__link">
+ TrueType Tables
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-truetype_tables.html" title="TrueType Tables" class="md-nav__link">
- TrueType Tables
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-type1_tables.html" title="Type 1 Tables" class="md-nav__link">
- Type 1 Tables
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-type1_tables.html" class="md-nav__link">
+ Type 1 Tables
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-sfnt_names.html" class="md-nav__link">
+ SFNT Names
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-sfnt_names.html" title="SFNT Names" class="md-nav__link">
- SFNT Names
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-bdf_fonts.html" title="BDF and PCF Files" class="md-nav__link">
- BDF and PCF Files
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-bdf_fonts.html" class="md-nav__link">
+ BDF and PCF Files
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-cid_fonts.html" title="CID Fonts" class="md-nav__link">
- CID Fonts
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-cid_fonts.html" class="md-nav__link">
+ CID Fonts
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-pfr_fonts.html" title="PFR Fonts" class="md-nav__link">
- PFR Fonts
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-pfr_fonts.html" class="md-nav__link">
+ PFR Fonts
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-winfnt_fonts.html" title="Window FNT Files" class="md-nav__link">
- Window FNT Files
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-winfnt_fonts.html" class="md-nav__link">
+ Window FNT Files
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-font_formats.html" class="md-nav__link">
+ Font Formats
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-font_formats.html" title="Font Formats" class="md-nav__link">
- Font Formats
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-gasp_table.html" title="Gasp Table" class="md-nav__link">
- Gasp Table
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-gasp_table.html" class="md-nav__link">
+ Gasp Table
+ </a>
+ </li>
+
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-6" type="checkbox" id="nav-6">
+
+
+
- <label class="md-nav__link" for="nav-6">
- Controlling FreeType Modules
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-6">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_6" type="checkbox" id="__nav_6" >
+
+ <label class="md-nav__link" for="__nav_6">
Controlling FreeType Modules
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
-
+ <nav class="md-nav" aria-label="Controlling FreeType Modules" data-md-level="1">
+ <label class="md-nav__title" for="__nav_6">
+ <span class="md-nav__icon md-icon"></span>
+ Controlling FreeType Modules
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
-
-
-
- <li class="md-nav__item">
- <a href="ft2-auto_hinter.html" title="The auto-hinter" class="md-nav__link">
- The auto-hinter
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-auto_hinter.html" class="md-nav__link">
+ The auto-hinter
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-cff_driver.html" title="The CFF driver" class="md-nav__link">
- The CFF driver
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-cff_driver.html" class="md-nav__link">
+ The CFF driver
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-t1_cid_driver.html" class="md-nav__link">
+ The Type 1 and CID drivers
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-t1_cid_driver.html" title="The Type 1 and CID drivers" class="md-nav__link">
- The Type 1 and CID drivers
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-tt_driver.html" title="The TrueType driver" class="md-nav__link">
- The TrueType driver
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-tt_driver.html" class="md-nav__link">
+ The TrueType driver
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-pcf_driver.html" class="md-nav__link">
+ The PCF driver
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-pcf_driver.html" title="The PCF driver" class="md-nav__link">
- The PCF driver
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-properties.html" title="Driver properties" class="md-nav__link">
- Driver properties
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-properties.html" class="md-nav__link">
+ Driver properties
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-parameter_tags.html" title="Parameter Tags" class="md-nav__link">
- Parameter Tags
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-parameter_tags.html" class="md-nav__link">
+ Parameter Tags
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-lcd_rendering.html" title="Subpixel Rendering" class="md-nav__link">
- Subpixel Rendering
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-lcd_rendering.html" class="md-nav__link">
+ Subpixel Rendering
+ </a>
+ </li>
+
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-7" type="checkbox" id="nav-7">
+
+
+
- <label class="md-nav__link" for="nav-7">
- Cache Sub-System
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-7">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_7" type="checkbox" id="__nav_7" >
+
+ <label class="md-nav__link" for="__nav_7">
Cache Sub-System
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
-
-
+ <nav class="md-nav" aria-label="Cache Sub-System" data-md-level="1">
+ <label class="md-nav__title" for="__nav_7">
+ <span class="md-nav__icon md-icon"></span>
+ Cache Sub-System
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-cache_subsystem.html" class="md-nav__link">
+ Cache Sub-System
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-cache_subsystem.html" title="Cache Sub-System" class="md-nav__link">
- Cache Sub-System
- </a>
- </li>
-
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-8" type="checkbox" id="nav-8">
+
+
+
- <label class="md-nav__link" for="nav-8">
- Support API
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-8">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_8" type="checkbox" id="__nav_8" >
+
+ <label class="md-nav__link" for="__nav_8">
Support API
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
-
-
+ <nav class="md-nav" aria-label="Support API" data-md-level="1">
+ <label class="md-nav__title" for="__nav_8">
+ <span class="md-nav__icon md-icon"></span>
+ Support API
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-computations.html" class="md-nav__link">
+ Computations
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-computations.html" title="Computations" class="md-nav__link">
- Computations
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-list_processing.html" title="List Processing" class="md-nav__link">
- List Processing
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-list_processing.html" class="md-nav__link">
+ List Processing
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-outline_processing.html" title="Outline Processing" class="md-nav__link">
- Outline Processing
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-outline_processing.html" class="md-nav__link">
+ Outline Processing
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-quick_advance.html" title="Quick retrieval of advance values" class="md-nav__link">
- Quick retrieval of advance values
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-quick_advance.html" class="md-nav__link">
+ Quick retrieval of advance values
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-bitmap_handling.html" title="Bitmap Handling" class="md-nav__link">
- Bitmap Handling
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-bitmap_handling.html" class="md-nav__link">
+ Bitmap Handling
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-raster.html" class="md-nav__link">
+ Scanline Converter
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-raster.html" title="Scanline Converter" class="md-nav__link">
- Scanline Converter
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-glyph_stroker.html" title="Glyph Stroker" class="md-nav__link">
- Glyph Stroker
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-glyph_stroker.html" class="md-nav__link">
+ Glyph Stroker
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-system_interface.html" class="md-nav__link">
+ System Interface
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-system_interface.html" title="System Interface" class="md-nav__link">
- System Interface
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-module_management.html" title="Module Management" class="md-nav__link">
- Module Management
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-module_management.html" class="md-nav__link">
+ Module Management
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-gzip.html" title="GZIP Streams" class="md-nav__link">
- GZIP Streams
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-gzip.html" class="md-nav__link">
+ GZIP Streams
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-lzw.html" title="LZW Streams" class="md-nav__link">
- LZW Streams
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-lzw.html" class="md-nav__link">
+ LZW Streams
+ </a>
+ </li>
+
-
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-bzip2.html" class="md-nav__link">
+ BZIP2 Streams
+ </a>
+ </li>
+
- <li class="md-nav__item">
- <a href="ft2-bzip2.html" title="BZIP2 Streams" class="md-nav__link">
- BZIP2 Streams
- </a>
- </li>
+
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-debugging_apis.html" class="md-nav__link">
+ External Debugging APIs
+ </a>
+ </li>
+
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-9" type="checkbox" id="nav-9">
+
+
+
- <label class="md-nav__link" for="nav-9">
- Error Codes
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-9">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_9" type="checkbox" id="__nav_9" >
+
+ <label class="md-nav__link" for="__nav_9">
Error Codes
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
-
-
+ <nav class="md-nav" aria-label="Error Codes" data-md-level="1">
+ <label class="md-nav__title" for="__nav_9">
+ <span class="md-nav__icon md-icon"></span>
+ Error Codes
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-error_enumerations.html" class="md-nav__link">
+ Error Enumerations
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-error_enumerations.html" title="Error Enumerations" class="md-nav__link">
- Error Enumerations
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-error_code_values.html" title="Error Code Values" class="md-nav__link">
- Error Code Values
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-error_code_values.html" class="md-nav__link">
+ Error Code Values
+ </a>
+ </li>
+
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-10" type="checkbox" id="nav-10">
+
+
+
- <label class="md-nav__link" for="nav-10">
- Miscellaneous
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-10">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_10" type="checkbox" id="__nav_10" >
+
+ <label class="md-nav__link" for="__nav_10">
Miscellaneous
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
-
+ <nav class="md-nav" aria-label="Miscellaneous" data-md-level="1">
+ <label class="md-nav__title" for="__nav_10">
+ <span class="md-nav__icon md-icon"></span>
+ Miscellaneous
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
-
-
-
- <li class="md-nav__item">
- <a href="ft2-gx_validation.html" title="TrueTypeGX/AAT Validation" class="md-nav__link">
- TrueTypeGX/AAT Validation
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-gx_validation.html" class="md-nav__link">
+ TrueTypeGX/AAT Validation
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-incremental.html" title="Incremental Loading" class="md-nav__link">
- Incremental Loading
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-incremental.html" class="md-nav__link">
+ Incremental Loading
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-truetype_engine.html" class="md-nav__link">
+ The TrueType Engine
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-truetype_engine.html" title="The TrueType Engine" class="md-nav__link">
- The TrueType Engine
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-ot_validation.html" title="OpenType Validation" class="md-nav__link">
- OpenType Validation
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-ot_validation.html" class="md-nav__link">
+ OpenType Validation
+ </a>
+ </li>
+
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
</ul>
@@ -1169,18 +1242,23 @@
</div>
- <div class="md-sidebar md-sidebar--secondary" data-md-component="toc">
+
+ <div class="md-sidebar md-sidebar--secondary" data-md-component="sidebar" data-md-type="toc" >
<div class="md-sidebar__scrollwrap">
<div class="md-sidebar__inner">
-<nav class="md-nav md-nav--secondary">
+<nav class="md-nav md-nav--secondary" aria-label="Table of contents">
+
- <label class="md-nav__title" for="__toc">Table of contents</label>
- <ul class="md-nav__list" data-md-scrollfix>
+ <label class="md-nav__title" for="__toc">
+ <span class="md-nav__icon md-icon"></span>
+ Table of contents
+ </label>
+ <ul class="md-nav__list" data-md-component="toc" data-md-scrollfix>
<li class="md-nav__item">
<a href="#synopsis" class="md-nav__link">
@@ -1329,10 +1407,6 @@
</li>
-
-
-
-
</ul>
</nav>
@@ -1341,7 +1415,7 @@
</div>
- <div class="md-content">
+ <div class="md-content" data-md-component="content">
<article class="md-content__inner md-typeset">
@@ -1366,7 +1440,6 @@
<p>A structure to model a given axis in design space for Multiple Masters fonts.</p>
<p>This structure can't be used for TrueType GX or OpenType variation fonts.</p>
<h4>fields</h4>
-
<table class="fields">
<tr><td class="val" id="name">name</td><td class="desc">
<p>The axis's name.</p>
@@ -1395,7 +1468,6 @@
<p>A structure to model the axes and space of a Multiple Masters font.</p>
<p>This structure can't be used for TrueType GX or OpenType variation fonts.</p>
<h4>fields</h4>
-
<table class="fields">
<tr><td class="val" id="num_axis">num_axis</td><td class="desc">
<p>Number of axes. Cannot exceed&nbsp;4.</p>
@@ -1428,7 +1500,6 @@
<p>A structure to model a given axis in design space for Multiple Masters, TrueType GX, and OpenType variation fonts.</p>
<h4>fields</h4>
-
<table class="fields">
<tr><td class="val" id="name">name</td><td class="desc">
<p>The axis's name. Not always meaningful for TrueType GX or OpenType variation fonts.</p>
@@ -1469,7 +1540,6 @@
<p>A structure to model a named instance in a TrueType GX or OpenType variation font.</p>
<p>This structure can't be used for Adobe MM fonts.</p>
<h4>fields</h4>
-
<table class="fields">
<tr><td class="val" id="coords">coords</td><td class="desc">
<p>The design coordinates for this instance. This is an array with one entry for each axis.</p>
@@ -1500,7 +1570,6 @@
<p>A structure to model the axes and space of an Adobe MM, TrueType GX, or OpenType variation font.</p>
<p>Some fields are specific to one format and not to the others.</p>
<h4>fields</h4>
-
<table class="fields">
<tr><td class="val" id="num_axis">num_axis</td><td class="desc">
<p>The number of axes. The maximum value is&nbsp;4 for Adobe MM fonts; no limit in TrueType GX or OpenType variation fonts.</p>
@@ -1532,7 +1601,6 @@
<p>Retrieve a variation descriptor of a given Adobe MM font.</p>
<p>This function can't be used with TrueType GX or OpenType variation fonts.</p>
<h4>input</h4>
-
<table class="fields">
<tr><td class="val" id="face">face</td><td class="desc">
<p>A handle to the source face.</p>
@@ -1540,7 +1608,6 @@
</table>
<h4>output</h4>
-
<table class="fields">
<tr><td class="val" id="amaster">amaster</td><td class="desc">
<p>The Multiple Masters descriptor.</p>
@@ -1562,7 +1629,6 @@
<p>Retrieve a variation descriptor for a given font.</p>
<p>This function works with all supported variation formats.</p>
<h4>input</h4>
-
<table class="fields">
<tr><td class="val" id="face">face</td><td class="desc">
<p>A handle to the source face.</p>
@@ -1570,7 +1636,6 @@
</table>
<h4>output</h4>
-
<table class="fields">
<tr><td class="val" id="amaster">amaster</td><td class="desc">
<p>The variation descriptor. Allocates a data structure, which the user must deallocate with a call to <code><a href="ft2-multiple_masters.html#ft_done_mm_var">FT_Done_MM_Var</a></code> after use.</p>
@@ -1591,7 +1656,6 @@
<p>Free the memory allocated by <code><a href="ft2-multiple_masters.html#ft_get_mm_var">FT_Get_MM_Var</a></code>.</p>
<h4>input</h4>
-
<table class="fields">
<tr><td class="val" id="library">library</td><td class="desc">
<p>A handle of the face's parent library object that was used in the call to <code><a href="ft2-multiple_masters.html#ft_get_mm_var">FT_Get_MM_Var</a></code> to create <code>amaster</code>.</p>
@@ -1614,7 +1678,6 @@
<p>For Adobe MM fonts, choose an interpolated font design through design coordinates.</p>
<p>This function can't be used with TrueType GX or OpenType variation fonts.</p>
<h4>inout</h4>
-
<table class="fields">
<tr><td class="val" id="face">face</td><td class="desc">
<p>A handle to the source face.</p>
@@ -1622,7 +1685,6 @@
</table>
<h4>input</h4>
-
<table class="fields">
<tr><td class="val" id="num_coords">num_coords</td><td class="desc">
<p>The number of available design coordinates. If it is larger than the number of axes, ignore the excess values. If it is smaller than the number of axes, use default values for the remaining axes.</p>
@@ -1652,7 +1714,6 @@
<p>Choose an interpolated font design through design coordinates.</p>
<p>This function works with all supported variation formats.</p>
<h4>inout</h4>
-
<table class="fields">
<tr><td class="val" id="face">face</td><td class="desc">
<p>A handle to the source face.</p>
@@ -1660,7 +1721,6 @@
</table>
<h4>input</h4>
-
<table class="fields">
<tr><td class="val" id="num_coords">num_coords</td><td class="desc">
<p>The number of available design coordinates. If it is larger than the number of axes, ignore the excess values. If it is smaller than the number of axes, use default values for the remaining axes.</p>
@@ -1690,7 +1750,6 @@
<p>Get the design coordinates of the currently selected interpolated font.</p>
<p>This function works with all supported variation formats.</p>
<h4>input</h4>
-
<table class="fields">
<tr><td class="val" id="face">face</td><td class="desc">
<p>A handle to the source face.</p>
@@ -1701,7 +1760,6 @@
</table>
<h4>output</h4>
-
<table class="fields">
<tr><td class="val" id="coords">coords</td><td class="desc">
<p>The design coordinates array.</p>
@@ -1727,7 +1785,6 @@
<p>Choose an interpolated font design through normalized blend coordinates.</p>
<p>This function works with all supported variation formats.</p>
<h4>inout</h4>
-
<table class="fields">
<tr><td class="val" id="face">face</td><td class="desc">
<p>A handle to the source face.</p>
@@ -1735,7 +1792,6 @@
</table>
<h4>input</h4>
-
<table class="fields">
<tr><td class="val" id="num_coords">num_coords</td><td class="desc">
<p>The number of available design coordinates. If it is larger than the number of axes, ignore the excess values. If it is smaller than the number of axes, use default values for the remaining axes.</p>
@@ -1765,7 +1821,6 @@
<p>Get the normalized blend coordinates of the currently selected interpolated font.</p>
<p>This function works with all supported variation formats.</p>
<h4>input</h4>
-
<table class="fields">
<tr><td class="val" id="face">face</td><td class="desc">
<p>A handle to the source face.</p>
@@ -1776,7 +1831,6 @@
</table>
<h4>output</h4>
-
<table class="fields">
<tr><td class="val" id="coords">coords</td><td class="desc">
<p>The normalized blend coordinates array.</p>
@@ -1827,7 +1881,6 @@
<p>For Adobe MM fonts, choose an interpolated font design by directly setting the weight vector.</p>
<p>This function can't be used with TrueType GX or OpenType variation fonts.</p>
<h4>inout</h4>
-
<table class="fields">
<tr><td class="val" id="face">face</td><td class="desc">
<p>A handle to the source face.</p>
@@ -1835,7 +1888,6 @@
</table>
<h4>input</h4>
-
<table class="fields">
<tr><td class="val" id="len">len</td><td class="desc">
<p>The length of the weight vector array. If it is larger than the number of designs, the extra values are ignored. If it is less than the number of designs, the remaining values are set to zero.</p>
@@ -1869,7 +1921,6 @@
<p>For Adobe MM fonts, retrieve the current weight vector of the font.</p>
<p>This function can't be used with TrueType GX or OpenType variation fonts.</p>
<h4>inout</h4>
-
<table class="fields">
<tr><td class="val" id="face">face</td><td class="desc">
<p>A handle to the source face.</p>
@@ -1880,7 +1931,6 @@
</table>
<h4>output</h4>
-
<table class="fields">
<tr><td class="val" id="weightvector">weightvector</td><td class="desc">
<p>An array to be filled.</p>
@@ -1905,7 +1955,6 @@
<p>A list of bit flags used in the return value of <code><a href="ft2-multiple_masters.html#ft_get_var_axis_flags">FT_Get_Var_Axis_Flags</a></code>.</p>
<h4>values</h4>
-
<table class="fields">
<tr><td class="val" id="ft_var_axis_flag_hidden">FT_VAR_AXIS_FLAG_HIDDEN</td><td class="desc">
<p>The variation axis should not be exposed to user interfaces.</p>
@@ -1928,7 +1977,6 @@
<p>Get the &lsquo;flags&rsquo; field of an OpenType Variation Axis Record.</p>
<p>Not meaningful for Adobe MM fonts (<code>*flags</code> is always zero).</p>
<h4>input</h4>
-
<table class="fields">
<tr><td class="val" id="master">master</td><td class="desc">
<p>The variation descriptor.</p>
@@ -1939,7 +1987,6 @@
</table>
<h4>output</h4>
-
<table class="fields">
<tr><td class="val" id="flags">flags</td><td class="desc">
<p>The &lsquo;flags&rsquo; field. See <code><a href="ft2-multiple_masters.html#ft_var_axis_flag_xxx">FT_VAR_AXIS_FLAG_XXX</a></code> for possible values.</p>
@@ -1963,7 +2010,6 @@
<p>Set or change the current named instance.</p>
<h4>input</h4>
-
<table class="fields">
<tr><td class="val" id="face">face</td><td class="desc">
<p>A handle to the source face.</p>
@@ -1985,9 +2031,6 @@
<p>2.9</p>
<hr>
-
-
-
@@ -1997,59 +2040,60 @@
</article>
</div>
</div>
+
</main>
<footer class="md-footer">
- <div class="md-footer-nav">
- <nav class="md-footer-nav__inner md-grid">
+ <nav class="md-footer__inner md-grid" aria-label="Footer">
+
- <a href="ft2-header_file_macros.html" title="Header File Macros" class="md-flex md-footer-nav__link md-footer-nav__link--prev" rel="prev">
- <div class="md-flex__cell md-flex__cell--shrink">
- <i class="md-icon md-icon--arrow-back md-footer-nav__button"></i>
- </div>
- <div class="md-flex__cell md-flex__cell--stretch md-footer-nav__title">
- <span class="md-flex__ellipsis">
- <span class="md-footer-nav__direction">
- Previous
- </span>
- Header File Macros
+ <a href="ft2-header_file_macros.html" class="md-footer__link md-footer__link--prev" aria-label="Previous: Header File Macros" rel="prev">
+ <div class="md-footer__button md-icon">
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M20 11v2H8l5.5 5.5-1.42 1.42L4.16 12l7.92-7.92L13.5 5.5 8 11h12z"/></svg>
+ </div>
+ <div class="md-footer__title">
+ <div class="md-ellipsis">
+ <span class="md-footer__direction">
+ Previous
</span>
+ Header File Macros
</div>
- </a>
-
+ </div>
+ </a>
+
+
- <a href="ft2-truetype_tables.html" title="TrueType Tables" class="md-flex md-footer-nav__link md-footer-nav__link--next" rel="next">
- <div class="md-flex__cell md-flex__cell--stretch md-footer-nav__title">
- <span class="md-flex__ellipsis">
- <span class="md-footer-nav__direction">
- Next
- </span>
- TrueType Tables
+ <a href="ft2-truetype_tables.html" class="md-footer__link md-footer__link--next" aria-label="Next: TrueType Tables" rel="next">
+ <div class="md-footer__title">
+ <div class="md-ellipsis">
+ <span class="md-footer__direction">
+ Next
</span>
+ TrueType Tables
</div>
- <div class="md-flex__cell md-flex__cell--shrink">
- <i class="md-icon md-icon--arrow-forward md-footer-nav__button"></i>
- </div>
- </a>
-
- </nav>
- </div>
+ </div>
+ <div class="md-footer__button md-icon">
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M4 11v2h12l-5.5 5.5 1.42 1.42L19.84 12l-7.92-7.92L10.5 5.5 16 11H4z"/></svg>
+ </div>
+ </a>
+
+ </nav>
<div class="md-footer-meta md-typeset">
<div class="md-footer-meta__inner md-grid">
<div class="md-footer-copyright">
<div class="md-footer-copyright__highlight">
- Copyright 2020 <a href = "https://www.freetype.org/license.html">The FreeType Project</a>.
+ Copyright 2021 <a href = "https://www.freetype.org/license.html">The FreeType Project</a>.
</div>
- powered by
- <a href="https://www.mkdocs.org" target="_blank" rel="noopener">MkDocs</a>
- and
+ Made with
<a href="https://squidfunk.github.io/mkdocs-material/" target="_blank" rel="noopener">
- Material for MkDocs</a>
+ Material for MkDocs
+ </a>
+
</div>
</div>
@@ -2057,10 +2101,13 @@
</footer>
</div>
+ <div class="md-dialog" data-md-component="dialog">
+ <div class="md-dialog__inner md-typeset"></div>
+ </div>
+ <script id="__config" type="application/json">{"base": ".", "features": [], "translations": {"clipboard.copy": "Copy to clipboard", "clipboard.copied": "Copied to clipboard", "search.config.lang": "en", "search.config.pipeline": "trimmer, stopWordFilter", "search.config.separator": "[\\s\\-]+", "search.placeholder": "Search", "search.result.placeholder": "Type to start searching", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.term.missing": "Missing", "select.version.title": "Select version"}, "search": "assets/javascripts/workers/search.477d984a.min.js", "version": null}</script>
- <script src="assets/javascripts/application.c33a9706.js"></script>
-
- <script>app.initialize({version:"1.1",url:{base:"."}})</script>
+
+ <script src="assets/javascripts/bundle.82b56eb2.min.js"></script>
<script src="javascripts/extra.js"></script>
diff --git a/freetype/docs/reference/ft2-ot_validation.html b/freetype/docs/reference/ft2-ot_validation.html
index a3dca8fe..4e2a6893 100644
--- a/freetype/docs/reference/ft2-ot_validation.html
+++ b/freetype/docs/reference/ft2-ot_validation.html
@@ -1,145 +1,136 @@
-
-
-
<!doctype html>
<html lang="en" class="no-js">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
- <meta http-equiv="x-ua-compatible" content="ie=edge">
- <meta name="description" content="API Reference Documentation for FreeType-2.10.4">
+ <meta name="description" content="API Reference Documentation for FreeType-2.11.1">
<meta name="author" content="FreeType Contributors">
- <meta name="lang:clipboard.copy" content="Copy to clipboard">
-
- <meta name="lang:clipboard.copied" content="Copied to clipboard">
-
- <meta name="lang:search.language" content="en">
-
- <meta name="lang:search.pipeline.stopwords" content="True">
-
- <meta name="lang:search.pipeline.trimmer" content="True">
-
- <meta name="lang:search.result.none" content="No matching documents">
-
- <meta name="lang:search.result.one" content="1 matching document">
-
- <meta name="lang:search.result.other" content="# matching documents">
-
- <meta name="lang:search.tokenizer" content="[\s\-]+">
-
- <link rel="shortcut icon" href="images/favico.ico">
- <meta name="generator" content="mkdocs-1.1, mkdocs-material-4.6.3">
+ <link rel="icon" href="images/favico.ico">
+ <meta name="generator" content="mkdocs-1.2.1, mkdocs-material-7.1.9">
- <title>OpenType Validation - FreeType-2.10.4 API Reference</title>
+ <title>OpenType Validation - FreeType-2.11.1 API Reference</title>
- <link rel="stylesheet" href="assets/stylesheets/application.adb8469c.css">
-
- <link rel="stylesheet" href="assets/stylesheets/application-palette.a8b3c06d.css">
-
+ <link rel="stylesheet" href="assets/stylesheets/main.ca7ac06f.min.css">
+ <link rel="stylesheet" href="assets/stylesheets/palette.f1a3b89f.min.css">
+
+
+
+ <meta name="theme-color" content="#4cae4f">
- <meta name="theme-color" content="#4caf50">
- <script src="assets/javascripts/modernizr.86422ebf.js"></script>
-
- <link href="https://fonts.gstatic.com" rel="preconnect" crossorigin>
+
+ <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Noto+Serif:300,400,400i,700%7CRoboto+Mono&display=fallback">
- <style>body,input{font-family:"Noto Serif","Helvetica Neue",Helvetica,Arial,sans-serif}code,kbd,pre{font-family:"Roboto Mono","Courier New",Courier,monospace}</style>
+ <style>:root{--md-text-font-family:"Noto Serif";--md-code-font-family:"Roboto Mono"}</style>
- <link rel="stylesheet" href="assets/fonts/material-icons.css">
<link rel="stylesheet" href="stylesheets/extra.css">
+
+
</head>
+
+
+
+
- <body dir="ltr" data-md-color-primary="green" data-md-color-accent="green">
+ <body dir="ltr" data-md-color-scheme="" data-md-color-primary="green" data-md-color-accent="green">
- <svg class="md-svg">
- <defs>
-
-
- </defs>
- </svg>
- <input class="md-toggle" data-md-toggle="drawer" type="checkbox" id="__drawer" autocomplete="off">
- <input class="md-toggle" data-md-toggle="search" type="checkbox" id="__search" autocomplete="off">
- <label class="md-overlay" data-md-component="overlay" for="__drawer"></label>
- <a href="#opentype-validation" tabindex="0" class="md-skip">
- Skip to content
- </a>
+ <script>function __prefix(e){return new URL(".",location).pathname+"."+e}function __get(e,t=localStorage){return JSON.parse(t.getItem(__prefix(e)))}</script>
+ <input class="md-toggle" data-md-toggle="drawer" type="checkbox" id="__drawer" autocomplete="off">
+ <input class="md-toggle" data-md-toggle="search" type="checkbox" id="__search" autocomplete="off">
+ <label class="md-overlay" for="__drawer"></label>
+ <div data-md-component="skip">
+
+
+ <a href="#opentype-validation" class="md-skip">
+ Skip to content
+ </a>
+
+ </div>
+ <div data-md-component="announce">
+
+ </div>
<header class="md-header" data-md-component="header">
- <nav class="md-header-nav md-grid">
- <div class="md-flex">
- <div class="md-flex__cell md-flex__cell--shrink">
- <a href="." title="FreeType-2.10.4 API Reference" aria-label="FreeType-2.10.4 API Reference" class="md-header-nav__button md-logo">
-
- <img alt="logo" src="images/favico.ico" width="24" height="24">
-
- </a>
- </div>
- <div class="md-flex__cell md-flex__cell--shrink">
- <label class="md-icon md-icon--menu md-header-nav__button" for="__drawer"></label>
- </div>
- <div class="md-flex__cell md-flex__cell--stretch">
- <div class="md-flex__ellipsis md-header-nav__title" data-md-component="title">
-
- <span class="md-header-nav__topic">
- FreeType-2.10.4 API Reference
- </span>
- <span class="md-header-nav__topic">
-
- OpenType Validation
-
- </span>
-
+ <nav class="md-header__inner md-grid" aria-label="Header">
+ <a href="index.html" title="FreeType-2.11.1 API Reference" class="md-header__button md-logo" aria-label="FreeType-2.11.1 API Reference" data-md-component="logo">
+
+ <img src="images/favico.ico" alt="logo">
+
+ </a>
+ <label class="md-header__button md-icon" for="__drawer">
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M3 6h18v2H3V6m0 5h18v2H3v-2m0 5h18v2H3v-2z"/></svg>
+ </label>
+ <div class="md-header__title" data-md-component="header-title">
+ <div class="md-header__ellipsis">
+ <div class="md-header__topic">
+ <span class="md-ellipsis">
+ FreeType-2.11.1 API Reference
+ </span>
+ </div>
+ <div class="md-header__topic" data-md-component="header-topic">
+ <span class="md-ellipsis">
+
+ OpenType Validation
+
+ </span>
</div>
</div>
- <div class="md-flex__cell md-flex__cell--shrink">
-
- <label class="md-icon md-icon--search md-header-nav__button" for="__search"></label>
-
+ </div>
+
+
+
+ <label class="md-header__button md-icon" for="__search">
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M9.5 3A6.5 6.5 0 0 1 16 9.5c0 1.61-.59 3.09-1.56 4.23l.27.27h.79l5 5-1.5 1.5-5-5v-.79l-.27-.27A6.516 6.516 0 0 1 9.5 16 6.5 6.5 0 0 1 3 9.5 6.5 6.5 0 0 1 9.5 3m0 2C7 5 5 7 5 9.5S7 14 9.5 14 14 12 14 9.5 12 5 9.5 5z"/></svg>
+ </label>
+
<div class="md-search" data-md-component="search" role="dialog">
<label class="md-search__overlay" for="__search"></label>
<div class="md-search__inner" role="search">
<form class="md-search__form" name="search">
- <input type="text" class="md-search__input" aria-label="search" name="query" placeholder="Search" autocapitalize="off" autocorrect="off" autocomplete="off" spellcheck="false" data-md-component="query" data-md-state="active">
- <label class="md-icon md-search__icon" for="__search"></label>
- <button type="reset" class="md-icon md-search__icon" data-md-component="reset" tabindex="-1">
- &#xE5CD;
+ <input type="text" class="md-search__input" name="query" aria-label="Search" placeholder="Search" autocapitalize="off" autocorrect="off" autocomplete="off" spellcheck="false" data-md-component="search-query" data-md-state="active" required>
+ <label class="md-search__icon md-icon" for="__search">
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M9.5 3A6.5 6.5 0 0 1 16 9.5c0 1.61-.59 3.09-1.56 4.23l.27.27h.79l5 5-1.5 1.5-5-5v-.79l-.27-.27A6.516 6.516 0 0 1 9.5 16 6.5 6.5 0 0 1 3 9.5 6.5 6.5 0 0 1 9.5 3m0 2C7 5 5 7 5 9.5S7 14 9.5 14 14 12 14 9.5 12 5 9.5 5z"/></svg>
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M20 11v2H8l5.5 5.5-1.42 1.42L4.16 12l7.92-7.92L13.5 5.5 8 11h12z"/></svg>
+ </label>
+ <button type="reset" class="md-search__icon md-icon" aria-label="Clear" tabindex="-1">
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z"/></svg>
</button>
</form>
<div class="md-search__output">
<div class="md-search__scrollwrap" data-md-scrollfix>
- <div class="md-search-result" data-md-component="result">
+ <div class="md-search-result" data-md-component="search-result">
<div class="md-search-result__meta">
- Type to start searching
+ Initializing search
</div>
<ol class="md-search-result__list"></ol>
</div>
@@ -147,33 +138,35 @@
</div>
</div>
</div>
-
- </div>
-
- </div>
+
+
</nav>
</header>
- <div class="md-container">
+ <div class="md-container" data-md-component="container">
-
+
- <main class="md-main" role="main">
- <div class="md-main__inner md-grid" data-md-component="container">
+ <main class="md-main" data-md-component="main">
+ <div class="md-main__inner md-grid">
- <div class="md-sidebar md-sidebar--primary" data-md-component="navigation">
+
+ <div class="md-sidebar md-sidebar--primary" data-md-component="sidebar" data-md-type="navigation" >
<div class="md-sidebar__scrollwrap">
<div class="md-sidebar__inner">
- <nav class="md-nav md-nav--primary" data-md-level="0">
- <label class="md-nav__title md-nav__title--site" for="__drawer">
- <a href="." title="FreeType-2.10.4 API Reference" class="md-nav__button md-logo">
-
- <img alt="logo" src="images/favico.ico" width="48" height="48">
+
+
+
+<nav class="md-nav md-nav--primary" aria-label="Navigation" data-md-level="0">
+ <label class="md-nav__title" for="__drawer">
+ <a href="index.html" title="FreeType-2.11.1 API Reference" class="md-nav__button md-logo" aria-label="FreeType-2.11.1 API Reference" data-md-component="logo">
+ <img src="images/favico.ico" alt="logo">
+
</a>
- FreeType-2.10.4 API Reference
+ FreeType-2.11.1 API Reference
</label>
<ul class="md-nav__list" data-md-scrollfix>
@@ -182,732 +175,804 @@
-
- <li class="md-nav__item">
- <a href="index.html" title="TOC" class="md-nav__link">
- TOC
- </a>
- </li>
+
+
+
+ <li class="md-nav__item">
+ <a href="index.html" class="md-nav__link">
+ TOC
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-index.html" title="Index" class="md-nav__link">
- Index
- </a>
- </li>
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-index.html" class="md-nav__link">
+ Index
+ </a>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-3" type="checkbox" id="nav-3">
+
+
+
- <label class="md-nav__link" for="nav-3">
- General Remarks
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-3">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_3" type="checkbox" id="__nav_3" >
+
+ <label class="md-nav__link" for="__nav_3">
General Remarks
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
+ <nav class="md-nav" aria-label="General Remarks" data-md-level="1">
+ <label class="md-nav__title" for="__nav_3">
+ <span class="md-nav__icon md-icon"></span>
+ General Remarks
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-header_inclusion.html" title="FreeType's header inclusion scheme" class="md-nav__link">
- FreeType's header inclusion scheme
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-preamble.html" class="md-nav__link">
+ Preamble
+ </a>
+ </li>
+
-
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-header_inclusion.html" class="md-nav__link">
+ FreeType's header inclusion scheme
+ </a>
+ </li>
+
- <li class="md-nav__item">
- <a href="ft2-user_allocation.html" title="User allocation" class="md-nav__link">
- User allocation
- </a>
- </li>
+
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-user_allocation.html" class="md-nav__link">
+ User allocation
+ </a>
+ </li>
+
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-4" type="checkbox" id="nav-4">
+
+
+
- <label class="md-nav__link" for="nav-4">
- Core API
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-4">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_4" type="checkbox" id="__nav_4" >
+
+ <label class="md-nav__link" for="__nav_4">
Core API
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
-
-
+ <nav class="md-nav" aria-label="Core API" data-md-level="1">
+ <label class="md-nav__title" for="__nav_4">
+ <span class="md-nav__icon md-icon"></span>
+ Core API
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-version.html" class="md-nav__link">
+ FreeType Version
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-version.html" title="FreeType Version" class="md-nav__link">
- FreeType Version
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-basic_types.html" title="Basic Data Types" class="md-nav__link">
- Basic Data Types
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-basic_types.html" class="md-nav__link">
+ Basic Data Types
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-base_interface.html" class="md-nav__link">
+ Base Interface
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-base_interface.html" title="Base Interface" class="md-nav__link">
- Base Interface
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-glyph_variants.html" title="Unicode Variation Sequences" class="md-nav__link">
- Unicode Variation Sequences
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-glyph_variants.html" class="md-nav__link">
+ Unicode Variation Sequences
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-color_management.html" title="Glyph Color Management" class="md-nav__link">
- Glyph Color Management
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-color_management.html" class="md-nav__link">
+ Glyph Color Management
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-layer_management.html" title="Glyph Layer Management" class="md-nav__link">
- Glyph Layer Management
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-layer_management.html" class="md-nav__link">
+ Glyph Layer Management
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-glyph_management.html" title="Glyph Management" class="md-nav__link">
- Glyph Management
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-glyph_management.html" class="md-nav__link">
+ Glyph Management
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-mac_specific.html" title="Mac Specific Interface" class="md-nav__link">
- Mac Specific Interface
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-mac_specific.html" class="md-nav__link">
+ Mac Specific Interface
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-sizes_management.html" title="Size Management" class="md-nav__link">
- Size Management
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-sizes_management.html" class="md-nav__link">
+ Size Management
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-header_file_macros.html" class="md-nav__link">
+ Header File Macros
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-header_file_macros.html" title="Header File Macros" class="md-nav__link">
- Header File Macros
- </a>
- </li>
-
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-5" type="checkbox" id="nav-5">
+
+
+
- <label class="md-nav__link" for="nav-5">
- Format-Specific API
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-5">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_5" type="checkbox" id="__nav_5" >
+
+ <label class="md-nav__link" for="__nav_5">
Format-Specific API
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
-
-
+ <nav class="md-nav" aria-label="Format-Specific API" data-md-level="1">
+ <label class="md-nav__title" for="__nav_5">
+ <span class="md-nav__icon md-icon"></span>
+ Format-Specific API
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-multiple_masters.html" class="md-nav__link">
+ Multiple Masters
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-multiple_masters.html" title="Multiple Masters" class="md-nav__link">
- Multiple Masters
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-truetype_tables.html" title="TrueType Tables" class="md-nav__link">
- TrueType Tables
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-truetype_tables.html" class="md-nav__link">
+ TrueType Tables
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-type1_tables.html" class="md-nav__link">
+ Type 1 Tables
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-type1_tables.html" title="Type 1 Tables" class="md-nav__link">
- Type 1 Tables
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-sfnt_names.html" title="SFNT Names" class="md-nav__link">
- SFNT Names
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-sfnt_names.html" class="md-nav__link">
+ SFNT Names
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-bdf_fonts.html" title="BDF and PCF Files" class="md-nav__link">
- BDF and PCF Files
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-bdf_fonts.html" class="md-nav__link">
+ BDF and PCF Files
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-cid_fonts.html" title="CID Fonts" class="md-nav__link">
- CID Fonts
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-cid_fonts.html" class="md-nav__link">
+ CID Fonts
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-pfr_fonts.html" title="PFR Fonts" class="md-nav__link">
- PFR Fonts
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-pfr_fonts.html" class="md-nav__link">
+ PFR Fonts
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-winfnt_fonts.html" title="Window FNT Files" class="md-nav__link">
- Window FNT Files
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-winfnt_fonts.html" class="md-nav__link">
+ Window FNT Files
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-font_formats.html" title="Font Formats" class="md-nav__link">
- Font Formats
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-font_formats.html" class="md-nav__link">
+ Font Formats
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-gasp_table.html" class="md-nav__link">
+ Gasp Table
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-gasp_table.html" title="Gasp Table" class="md-nav__link">
- Gasp Table
- </a>
- </li>
-
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-6" type="checkbox" id="nav-6">
+
+
+
- <label class="md-nav__link" for="nav-6">
- Controlling FreeType Modules
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-6">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_6" type="checkbox" id="__nav_6" >
+
+ <label class="md-nav__link" for="__nav_6">
Controlling FreeType Modules
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
-
-
+ <nav class="md-nav" aria-label="Controlling FreeType Modules" data-md-level="1">
+ <label class="md-nav__title" for="__nav_6">
+ <span class="md-nav__icon md-icon"></span>
+ Controlling FreeType Modules
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-auto_hinter.html" class="md-nav__link">
+ The auto-hinter
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-auto_hinter.html" title="The auto-hinter" class="md-nav__link">
- The auto-hinter
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-cff_driver.html" title="The CFF driver" class="md-nav__link">
- The CFF driver
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-cff_driver.html" class="md-nav__link">
+ The CFF driver
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-t1_cid_driver.html" class="md-nav__link">
+ The Type 1 and CID drivers
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-t1_cid_driver.html" title="The Type 1 and CID drivers" class="md-nav__link">
- The Type 1 and CID drivers
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-tt_driver.html" title="The TrueType driver" class="md-nav__link">
- The TrueType driver
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-tt_driver.html" class="md-nav__link">
+ The TrueType driver
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-pcf_driver.html" class="md-nav__link">
+ The PCF driver
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-pcf_driver.html" title="The PCF driver" class="md-nav__link">
- The PCF driver
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-properties.html" title="Driver properties" class="md-nav__link">
- Driver properties
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-properties.html" class="md-nav__link">
+ Driver properties
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-parameter_tags.html" class="md-nav__link">
+ Parameter Tags
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-parameter_tags.html" title="Parameter Tags" class="md-nav__link">
- Parameter Tags
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-lcd_rendering.html" title="Subpixel Rendering" class="md-nav__link">
- Subpixel Rendering
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-lcd_rendering.html" class="md-nav__link">
+ Subpixel Rendering
+ </a>
+ </li>
+
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-7" type="checkbox" id="nav-7">
+
+
+
- <label class="md-nav__link" for="nav-7">
- Cache Sub-System
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-7">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_7" type="checkbox" id="__nav_7" >
+
+ <label class="md-nav__link" for="__nav_7">
Cache Sub-System
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
+ <nav class="md-nav" aria-label="Cache Sub-System" data-md-level="1">
+ <label class="md-nav__title" for="__nav_7">
+ <span class="md-nav__icon md-icon"></span>
+ Cache Sub-System
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-cache_subsystem.html" title="Cache Sub-System" class="md-nav__link">
- Cache Sub-System
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-cache_subsystem.html" class="md-nav__link">
+ Cache Sub-System
+ </a>
+ </li>
+
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-8" type="checkbox" id="nav-8">
+
+
+
- <label class="md-nav__link" for="nav-8">
- Support API
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-8">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_8" type="checkbox" id="__nav_8" >
+
+ <label class="md-nav__link" for="__nav_8">
Support API
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
-
+ <nav class="md-nav" aria-label="Support API" data-md-level="1">
+ <label class="md-nav__title" for="__nav_8">
+ <span class="md-nav__icon md-icon"></span>
+ Support API
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
-
-
-
- <li class="md-nav__item">
- <a href="ft2-computations.html" title="Computations" class="md-nav__link">
- Computations
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-computations.html" class="md-nav__link">
+ Computations
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-list_processing.html" title="List Processing" class="md-nav__link">
- List Processing
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-list_processing.html" class="md-nav__link">
+ List Processing
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-outline_processing.html" class="md-nav__link">
+ Outline Processing
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-outline_processing.html" title="Outline Processing" class="md-nav__link">
- Outline Processing
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-quick_advance.html" title="Quick retrieval of advance values" class="md-nav__link">
- Quick retrieval of advance values
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-quick_advance.html" class="md-nav__link">
+ Quick retrieval of advance values
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-bitmap_handling.html" class="md-nav__link">
+ Bitmap Handling
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-bitmap_handling.html" title="Bitmap Handling" class="md-nav__link">
- Bitmap Handling
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-raster.html" title="Scanline Converter" class="md-nav__link">
- Scanline Converter
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-raster.html" class="md-nav__link">
+ Scanline Converter
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-glyph_stroker.html" title="Glyph Stroker" class="md-nav__link">
- Glyph Stroker
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-glyph_stroker.html" class="md-nav__link">
+ Glyph Stroker
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-system_interface.html" title="System Interface" class="md-nav__link">
- System Interface
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-system_interface.html" class="md-nav__link">
+ System Interface
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-module_management.html" title="Module Management" class="md-nav__link">
- Module Management
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-module_management.html" class="md-nav__link">
+ Module Management
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-gzip.html" title="GZIP Streams" class="md-nav__link">
- GZIP Streams
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-gzip.html" class="md-nav__link">
+ GZIP Streams
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-lzw.html" title="LZW Streams" class="md-nav__link">
- LZW Streams
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-lzw.html" class="md-nav__link">
+ LZW Streams
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-bzip2.html" class="md-nav__link">
+ BZIP2 Streams
+ </a>
+ </li>
+
+
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-debugging_apis.html" class="md-nav__link">
+ External Debugging APIs
+ </a>
+ </li>
+
- <li class="md-nav__item">
- <a href="ft2-bzip2.html" title="BZIP2 Streams" class="md-nav__link">
- BZIP2 Streams
- </a>
- </li>
-
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-9" type="checkbox" id="nav-9">
+
+
+
- <label class="md-nav__link" for="nav-9">
- Error Codes
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-9">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_9" type="checkbox" id="__nav_9" >
+
+ <label class="md-nav__link" for="__nav_9">
Error Codes
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
+ <nav class="md-nav" aria-label="Error Codes" data-md-level="1">
+ <label class="md-nav__title" for="__nav_9">
+ <span class="md-nav__icon md-icon"></span>
+ Error Codes
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-error_enumerations.html" title="Error Enumerations" class="md-nav__link">
- Error Enumerations
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-error_enumerations.html" class="md-nav__link">
+ Error Enumerations
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-error_code_values.html" title="Error Code Values" class="md-nav__link">
- Error Code Values
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-error_code_values.html" class="md-nav__link">
+ Error Code Values
+ </a>
+ </li>
+
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
@@ -915,89 +980,99 @@
-
-
- <li class="md-nav__item md-nav__item--active md-nav__item--nested">
+
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-10" type="checkbox" id="nav-10" checked>
+
+
- <label class="md-nav__link" for="nav-10">
- Miscellaneous
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-10">
+ <li class="md-nav__item md-nav__item--active md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_10" type="checkbox" id="__nav_10" checked>
+
+ <label class="md-nav__link" for="__nav_10">
Miscellaneous
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
-
+ <nav class="md-nav" aria-label="Miscellaneous" data-md-level="1">
+ <label class="md-nav__title" for="__nav_10">
+ <span class="md-nav__icon md-icon"></span>
+ Miscellaneous
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
-
-
-
- <li class="md-nav__item">
- <a href="ft2-gx_validation.html" title="TrueTypeGX/AAT Validation" class="md-nav__link">
- TrueTypeGX/AAT Validation
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-gx_validation.html" class="md-nav__link">
+ TrueTypeGX/AAT Validation
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-incremental.html" title="Incremental Loading" class="md-nav__link">
- Incremental Loading
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-incremental.html" class="md-nav__link">
+ Incremental Loading
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-truetype_engine.html" title="The TrueType Engine" class="md-nav__link">
- The TrueType Engine
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-truetype_engine.html" class="md-nav__link">
+ The TrueType Engine
+ </a>
+ </li>
+
-
-
-
-
+
+
-
-
- <li class="md-nav__item md-nav__item--active">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="toc" type="checkbox" id="__toc">
+
+
+ <li class="md-nav__item md-nav__item--active">
-
-
- <label class="md-nav__link md-nav__link--active" for="__toc">
+ <input class="md-nav__toggle md-toggle" data-md-toggle="toc" type="checkbox" id="__toc">
+
+
+
+
+
+ <label class="md-nav__link md-nav__link--active" for="__toc">
+ OpenType Validation
+ <span class="md-nav__icon md-icon"></span>
+ </label>
+
+ <a href="ft2-ot_validation.html" class="md-nav__link md-nav__link--active">
OpenType Validation
- </label>
-
- <a href="ft2-ot_validation.html" title="OpenType Validation" class="md-nav__link md-nav__link--active">
- OpenType Validation
- </a>
-
+ </a>
-<nav class="md-nav md-nav--secondary">
+
+<nav class="md-nav md-nav--secondary" aria-label="Table of contents">
+
- <label class="md-nav__title" for="__toc">Table of contents</label>
- <ul class="md-nav__list" data-md-scrollfix>
+ <label class="md-nav__title" for="__toc">
+ <span class="md-nav__icon md-icon"></span>
+ Table of contents
+ </label>
+ <ul class="md-nav__list" data-md-component="toc" data-md-scrollfix>
<li class="md-nav__item">
<a href="#synopsis" class="md-nav__link">
@@ -1027,20 +1102,18 @@
</li>
-
-
-
-
</ul>
</nav>
-
- </li>
+
+ </li>
+
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
</ul>
@@ -1050,18 +1123,23 @@
</div>
- <div class="md-sidebar md-sidebar--secondary" data-md-component="toc">
+
+ <div class="md-sidebar md-sidebar--secondary" data-md-component="sidebar" data-md-type="toc" >
<div class="md-sidebar__scrollwrap">
<div class="md-sidebar__inner">
-<nav class="md-nav md-nav--secondary">
+<nav class="md-nav md-nav--secondary" aria-label="Table of contents">
+
- <label class="md-nav__title" for="__toc">Table of contents</label>
- <ul class="md-nav__list" data-md-scrollfix>
+ <label class="md-nav__title" for="__toc">
+ <span class="md-nav__icon md-icon"></span>
+ Table of contents
+ </label>
+ <ul class="md-nav__list" data-md-component="toc" data-md-scrollfix>
<li class="md-nav__item">
<a href="#synopsis" class="md-nav__link">
@@ -1091,10 +1169,6 @@
</li>
-
-
-
-
</ul>
</nav>
@@ -1103,7 +1177,7 @@
</div>
- <div class="md-content">
+ <div class="md-content" data-md-component="content">
<article class="md-content__inner md-typeset">
@@ -1127,7 +1201,6 @@
<p>Validate various OpenType tables to assure that all offsets and indices are valid. The idea is that a higher-level library that actually does the text layout can access those tables without error checking (which can be quite time consuming).</p>
<h4>input</h4>
-
<table class="fields">
<tr><td class="val" id="face">face</td><td class="desc">
<p>A handle to the input face.</p>
@@ -1138,7 +1211,6 @@
</table>
<h4>output</h4>
-
<table class="fields">
<tr><td class="val" id="base_table">BASE_table</td><td class="desc">
<p>A pointer to the BASE table.</p>
@@ -1175,7 +1247,6 @@
<p>Free the buffer allocated by OpenType validator.</p>
<h4>input</h4>
-
<table class="fields">
<tr><td class="val" id="face">face</td><td class="desc">
<p>A handle to the input face.</p>
@@ -1209,7 +1280,6 @@
<p>A list of bit-field constants used with <code><a href="ft2-ot_validation.html#ft_opentype_validate">FT_OpenType_Validate</a></code> to indicate which OpenType tables should be validated.</p>
<h4>values</h4>
-
<table class="fields">
<tr><td class="val" id="ft_validate_base">FT_VALIDATE_BASE</td><td class="desc">
<p>Validate BASE table.</p>
@@ -1236,9 +1306,6 @@
<hr>
-
-
-
@@ -1248,45 +1315,45 @@
</article>
</div>
</div>
+
</main>
<footer class="md-footer">
- <div class="md-footer-nav">
- <nav class="md-footer-nav__inner md-grid">
+ <nav class="md-footer__inner md-grid" aria-label="Footer">
+
- <a href="ft2-truetype_engine.html" title="The TrueType Engine" class="md-flex md-footer-nav__link md-footer-nav__link--prev" rel="prev">
- <div class="md-flex__cell md-flex__cell--shrink">
- <i class="md-icon md-icon--arrow-back md-footer-nav__button"></i>
- </div>
- <div class="md-flex__cell md-flex__cell--stretch md-footer-nav__title">
- <span class="md-flex__ellipsis">
- <span class="md-footer-nav__direction">
- Previous
- </span>
- The TrueType Engine
+ <a href="ft2-truetype_engine.html" class="md-footer__link md-footer__link--prev" aria-label="Previous: The TrueType Engine" rel="prev">
+ <div class="md-footer__button md-icon">
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M20 11v2H8l5.5 5.5-1.42 1.42L4.16 12l7.92-7.92L13.5 5.5 8 11h12z"/></svg>
+ </div>
+ <div class="md-footer__title">
+ <div class="md-ellipsis">
+ <span class="md-footer__direction">
+ Previous
</span>
+ The TrueType Engine
</div>
- </a>
-
-
- </nav>
- </div>
+ </div>
+ </a>
+
+
+ </nav>
<div class="md-footer-meta md-typeset">
<div class="md-footer-meta__inner md-grid">
<div class="md-footer-copyright">
<div class="md-footer-copyright__highlight">
- Copyright 2020 <a href = "https://www.freetype.org/license.html">The FreeType Project</a>.
+ Copyright 2021 <a href = "https://www.freetype.org/license.html">The FreeType Project</a>.
</div>
- powered by
- <a href="https://www.mkdocs.org" target="_blank" rel="noopener">MkDocs</a>
- and
+ Made with
<a href="https://squidfunk.github.io/mkdocs-material/" target="_blank" rel="noopener">
- Material for MkDocs</a>
+ Material for MkDocs
+ </a>
+
</div>
</div>
@@ -1294,10 +1361,13 @@
</footer>
</div>
+ <div class="md-dialog" data-md-component="dialog">
+ <div class="md-dialog__inner md-typeset"></div>
+ </div>
+ <script id="__config" type="application/json">{"base": ".", "features": [], "translations": {"clipboard.copy": "Copy to clipboard", "clipboard.copied": "Copied to clipboard", "search.config.lang": "en", "search.config.pipeline": "trimmer, stopWordFilter", "search.config.separator": "[\\s\\-]+", "search.placeholder": "Search", "search.result.placeholder": "Type to start searching", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.term.missing": "Missing", "select.version.title": "Select version"}, "search": "assets/javascripts/workers/search.477d984a.min.js", "version": null}</script>
- <script src="assets/javascripts/application.c33a9706.js"></script>
-
- <script>app.initialize({version:"1.1",url:{base:"."}})</script>
+
+ <script src="assets/javascripts/bundle.82b56eb2.min.js"></script>
<script src="javascripts/extra.js"></script>
diff --git a/freetype/docs/reference/ft2-outline_processing.html b/freetype/docs/reference/ft2-outline_processing.html
index c48861b3..a04a20da 100644
--- a/freetype/docs/reference/ft2-outline_processing.html
+++ b/freetype/docs/reference/ft2-outline_processing.html
@@ -1,145 +1,136 @@
-
-
-
<!doctype html>
<html lang="en" class="no-js">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
- <meta http-equiv="x-ua-compatible" content="ie=edge">
- <meta name="description" content="API Reference Documentation for FreeType-2.10.4">
+ <meta name="description" content="API Reference Documentation for FreeType-2.11.1">
<meta name="author" content="FreeType Contributors">
- <meta name="lang:clipboard.copy" content="Copy to clipboard">
-
- <meta name="lang:clipboard.copied" content="Copied to clipboard">
-
- <meta name="lang:search.language" content="en">
-
- <meta name="lang:search.pipeline.stopwords" content="True">
-
- <meta name="lang:search.pipeline.trimmer" content="True">
-
- <meta name="lang:search.result.none" content="No matching documents">
-
- <meta name="lang:search.result.one" content="1 matching document">
-
- <meta name="lang:search.result.other" content="# matching documents">
-
- <meta name="lang:search.tokenizer" content="[\s\-]+">
-
- <link rel="shortcut icon" href="images/favico.ico">
- <meta name="generator" content="mkdocs-1.1, mkdocs-material-4.6.3">
+ <link rel="icon" href="images/favico.ico">
+ <meta name="generator" content="mkdocs-1.2.1, mkdocs-material-7.1.9">
- <title>Outline Processing - FreeType-2.10.4 API Reference</title>
+ <title>Outline Processing - FreeType-2.11.1 API Reference</title>
- <link rel="stylesheet" href="assets/stylesheets/application.adb8469c.css">
-
- <link rel="stylesheet" href="assets/stylesheets/application-palette.a8b3c06d.css">
-
+ <link rel="stylesheet" href="assets/stylesheets/main.ca7ac06f.min.css">
+ <link rel="stylesheet" href="assets/stylesheets/palette.f1a3b89f.min.css">
+
+
+
+ <meta name="theme-color" content="#4cae4f">
- <meta name="theme-color" content="#4caf50">
- <script src="assets/javascripts/modernizr.86422ebf.js"></script>
-
- <link href="https://fonts.gstatic.com" rel="preconnect" crossorigin>
+
+ <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Noto+Serif:300,400,400i,700%7CRoboto+Mono&display=fallback">
- <style>body,input{font-family:"Noto Serif","Helvetica Neue",Helvetica,Arial,sans-serif}code,kbd,pre{font-family:"Roboto Mono","Courier New",Courier,monospace}</style>
+ <style>:root{--md-text-font-family:"Noto Serif";--md-code-font-family:"Roboto Mono"}</style>
- <link rel="stylesheet" href="assets/fonts/material-icons.css">
<link rel="stylesheet" href="stylesheets/extra.css">
+
+
</head>
+
- <body dir="ltr" data-md-color-primary="green" data-md-color-accent="green">
+
+
+
+ <body dir="ltr" data-md-color-scheme="" data-md-color-primary="green" data-md-color-accent="green">
- <svg class="md-svg">
- <defs>
-
-
- </defs>
- </svg>
- <input class="md-toggle" data-md-toggle="drawer" type="checkbox" id="__drawer" autocomplete="off">
- <input class="md-toggle" data-md-toggle="search" type="checkbox" id="__search" autocomplete="off">
- <label class="md-overlay" data-md-component="overlay" for="__drawer"></label>
- <a href="#outline-processing" tabindex="0" class="md-skip">
- Skip to content
- </a>
+ <script>function __prefix(e){return new URL(".",location).pathname+"."+e}function __get(e,t=localStorage){return JSON.parse(t.getItem(__prefix(e)))}</script>
+ <input class="md-toggle" data-md-toggle="drawer" type="checkbox" id="__drawer" autocomplete="off">
+ <input class="md-toggle" data-md-toggle="search" type="checkbox" id="__search" autocomplete="off">
+ <label class="md-overlay" for="__drawer"></label>
+ <div data-md-component="skip">
+
+
+ <a href="#outline-processing" class="md-skip">
+ Skip to content
+ </a>
+
+ </div>
+ <div data-md-component="announce">
+
+ </div>
<header class="md-header" data-md-component="header">
- <nav class="md-header-nav md-grid">
- <div class="md-flex">
- <div class="md-flex__cell md-flex__cell--shrink">
- <a href="." title="FreeType-2.10.4 API Reference" aria-label="FreeType-2.10.4 API Reference" class="md-header-nav__button md-logo">
-
- <img alt="logo" src="images/favico.ico" width="24" height="24">
-
- </a>
- </div>
- <div class="md-flex__cell md-flex__cell--shrink">
- <label class="md-icon md-icon--menu md-header-nav__button" for="__drawer"></label>
- </div>
- <div class="md-flex__cell md-flex__cell--stretch">
- <div class="md-flex__ellipsis md-header-nav__title" data-md-component="title">
-
- <span class="md-header-nav__topic">
- FreeType-2.10.4 API Reference
- </span>
- <span class="md-header-nav__topic">
-
- Outline Processing
-
- </span>
-
+ <nav class="md-header__inner md-grid" aria-label="Header">
+ <a href="index.html" title="FreeType-2.11.1 API Reference" class="md-header__button md-logo" aria-label="FreeType-2.11.1 API Reference" data-md-component="logo">
+
+ <img src="images/favico.ico" alt="logo">
+
+ </a>
+ <label class="md-header__button md-icon" for="__drawer">
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M3 6h18v2H3V6m0 5h18v2H3v-2m0 5h18v2H3v-2z"/></svg>
+ </label>
+ <div class="md-header__title" data-md-component="header-title">
+ <div class="md-header__ellipsis">
+ <div class="md-header__topic">
+ <span class="md-ellipsis">
+ FreeType-2.11.1 API Reference
+ </span>
+ </div>
+ <div class="md-header__topic" data-md-component="header-topic">
+ <span class="md-ellipsis">
+
+ Outline Processing
+
+ </span>
</div>
</div>
- <div class="md-flex__cell md-flex__cell--shrink">
-
- <label class="md-icon md-icon--search md-header-nav__button" for="__search"></label>
-
+ </div>
+
+
+
+ <label class="md-header__button md-icon" for="__search">
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M9.5 3A6.5 6.5 0 0 1 16 9.5c0 1.61-.59 3.09-1.56 4.23l.27.27h.79l5 5-1.5 1.5-5-5v-.79l-.27-.27A6.516 6.516 0 0 1 9.5 16 6.5 6.5 0 0 1 3 9.5 6.5 6.5 0 0 1 9.5 3m0 2C7 5 5 7 5 9.5S7 14 9.5 14 14 12 14 9.5 12 5 9.5 5z"/></svg>
+ </label>
+
<div class="md-search" data-md-component="search" role="dialog">
<label class="md-search__overlay" for="__search"></label>
<div class="md-search__inner" role="search">
<form class="md-search__form" name="search">
- <input type="text" class="md-search__input" aria-label="search" name="query" placeholder="Search" autocapitalize="off" autocorrect="off" autocomplete="off" spellcheck="false" data-md-component="query" data-md-state="active">
- <label class="md-icon md-search__icon" for="__search"></label>
- <button type="reset" class="md-icon md-search__icon" data-md-component="reset" tabindex="-1">
- &#xE5CD;
+ <input type="text" class="md-search__input" name="query" aria-label="Search" placeholder="Search" autocapitalize="off" autocorrect="off" autocomplete="off" spellcheck="false" data-md-component="search-query" data-md-state="active" required>
+ <label class="md-search__icon md-icon" for="__search">
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M9.5 3A6.5 6.5 0 0 1 16 9.5c0 1.61-.59 3.09-1.56 4.23l.27.27h.79l5 5-1.5 1.5-5-5v-.79l-.27-.27A6.516 6.516 0 0 1 9.5 16 6.5 6.5 0 0 1 3 9.5 6.5 6.5 0 0 1 9.5 3m0 2C7 5 5 7 5 9.5S7 14 9.5 14 14 12 14 9.5 12 5 9.5 5z"/></svg>
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M20 11v2H8l5.5 5.5-1.42 1.42L4.16 12l7.92-7.92L13.5 5.5 8 11h12z"/></svg>
+ </label>
+ <button type="reset" class="md-search__icon md-icon" aria-label="Clear" tabindex="-1">
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z"/></svg>
</button>
</form>
<div class="md-search__output">
<div class="md-search__scrollwrap" data-md-scrollfix>
- <div class="md-search-result" data-md-component="result">
+ <div class="md-search-result" data-md-component="search-result">
<div class="md-search-result__meta">
- Type to start searching
+ Initializing search
</div>
<ol class="md-search-result__list"></ol>
</div>
@@ -147,33 +138,35 @@
</div>
</div>
</div>
-
- </div>
-
- </div>
+
+
</nav>
</header>
- <div class="md-container">
+ <div class="md-container" data-md-component="container">
-
+
- <main class="md-main" role="main">
- <div class="md-main__inner md-grid" data-md-component="container">
+ <main class="md-main" data-md-component="main">
+ <div class="md-main__inner md-grid">
- <div class="md-sidebar md-sidebar--primary" data-md-component="navigation">
+
+ <div class="md-sidebar md-sidebar--primary" data-md-component="sidebar" data-md-type="navigation" >
<div class="md-sidebar__scrollwrap">
<div class="md-sidebar__inner">
- <nav class="md-nav md-nav--primary" data-md-level="0">
- <label class="md-nav__title md-nav__title--site" for="__drawer">
- <a href="." title="FreeType-2.10.4 API Reference" class="md-nav__button md-logo">
-
- <img alt="logo" src="images/favico.ico" width="48" height="48">
+
+
+
+<nav class="md-nav md-nav--primary" aria-label="Navigation" data-md-level="0">
+ <label class="md-nav__title" for="__drawer">
+ <a href="index.html" title="FreeType-2.11.1 API Reference" class="md-nav__button md-logo" aria-label="FreeType-2.11.1 API Reference" data-md-component="logo">
+ <img src="images/favico.ico" alt="logo">
+
</a>
- FreeType-2.10.4 API Reference
+ FreeType-2.11.1 API Reference
</label>
<ul class="md-nav__list" data-md-scrollfix>
@@ -182,516 +175,564 @@
-
- <li class="md-nav__item">
- <a href="index.html" title="TOC" class="md-nav__link">
- TOC
- </a>
- </li>
+
+
+
+ <li class="md-nav__item">
+ <a href="index.html" class="md-nav__link">
+ TOC
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-index.html" title="Index" class="md-nav__link">
- Index
- </a>
- </li>
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-index.html" class="md-nav__link">
+ Index
+ </a>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-3" type="checkbox" id="nav-3">
+
+
+
- <label class="md-nav__link" for="nav-3">
- General Remarks
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-3">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_3" type="checkbox" id="__nav_3" >
+
+ <label class="md-nav__link" for="__nav_3">
General Remarks
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
+ <nav class="md-nav" aria-label="General Remarks" data-md-level="1">
+ <label class="md-nav__title" for="__nav_3">
+ <span class="md-nav__icon md-icon"></span>
+ General Remarks
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-header_inclusion.html" title="FreeType's header inclusion scheme" class="md-nav__link">
- FreeType's header inclusion scheme
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-preamble.html" class="md-nav__link">
+ Preamble
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-header_inclusion.html" class="md-nav__link">
+ FreeType's header inclusion scheme
+ </a>
+ </li>
+
+
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-user_allocation.html" class="md-nav__link">
+ User allocation
+ </a>
+ </li>
+
- <li class="md-nav__item">
- <a href="ft2-user_allocation.html" title="User allocation" class="md-nav__link">
- User allocation
- </a>
- </li>
-
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-4" type="checkbox" id="nav-4">
+
+
+
- <label class="md-nav__link" for="nav-4">
- Core API
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-4">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_4" type="checkbox" id="__nav_4" >
+
+ <label class="md-nav__link" for="__nav_4">
Core API
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
-
+ <nav class="md-nav" aria-label="Core API" data-md-level="1">
+ <label class="md-nav__title" for="__nav_4">
+ <span class="md-nav__icon md-icon"></span>
+ Core API
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
-
-
-
- <li class="md-nav__item">
- <a href="ft2-version.html" title="FreeType Version" class="md-nav__link">
- FreeType Version
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-version.html" class="md-nav__link">
+ FreeType Version
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-basic_types.html" title="Basic Data Types" class="md-nav__link">
- Basic Data Types
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-basic_types.html" class="md-nav__link">
+ Basic Data Types
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-base_interface.html" class="md-nav__link">
+ Base Interface
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-base_interface.html" title="Base Interface" class="md-nav__link">
- Base Interface
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-glyph_variants.html" title="Unicode Variation Sequences" class="md-nav__link">
- Unicode Variation Sequences
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-glyph_variants.html" class="md-nav__link">
+ Unicode Variation Sequences
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-color_management.html" class="md-nav__link">
+ Glyph Color Management
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-color_management.html" title="Glyph Color Management" class="md-nav__link">
- Glyph Color Management
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-layer_management.html" title="Glyph Layer Management" class="md-nav__link">
- Glyph Layer Management
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-layer_management.html" class="md-nav__link">
+ Glyph Layer Management
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-glyph_management.html" title="Glyph Management" class="md-nav__link">
- Glyph Management
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-glyph_management.html" class="md-nav__link">
+ Glyph Management
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-mac_specific.html" class="md-nav__link">
+ Mac Specific Interface
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-mac_specific.html" title="Mac Specific Interface" class="md-nav__link">
- Mac Specific Interface
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-sizes_management.html" title="Size Management" class="md-nav__link">
- Size Management
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-sizes_management.html" class="md-nav__link">
+ Size Management
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-header_file_macros.html" title="Header File Macros" class="md-nav__link">
- Header File Macros
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-header_file_macros.html" class="md-nav__link">
+ Header File Macros
+ </a>
+ </li>
+
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-5" type="checkbox" id="nav-5">
+
+
+
- <label class="md-nav__link" for="nav-5">
- Format-Specific API
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-5">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_5" type="checkbox" id="__nav_5" >
+
+ <label class="md-nav__link" for="__nav_5">
Format-Specific API
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
+ <nav class="md-nav" aria-label="Format-Specific API" data-md-level="1">
+ <label class="md-nav__title" for="__nav_5">
+ <span class="md-nav__icon md-icon"></span>
+ Format-Specific API
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-multiple_masters.html" title="Multiple Masters" class="md-nav__link">
- Multiple Masters
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-multiple_masters.html" class="md-nav__link">
+ Multiple Masters
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-truetype_tables.html" class="md-nav__link">
+ TrueType Tables
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-truetype_tables.html" title="TrueType Tables" class="md-nav__link">
- TrueType Tables
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-type1_tables.html" title="Type 1 Tables" class="md-nav__link">
- Type 1 Tables
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-type1_tables.html" class="md-nav__link">
+ Type 1 Tables
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-sfnt_names.html" title="SFNT Names" class="md-nav__link">
- SFNT Names
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-sfnt_names.html" class="md-nav__link">
+ SFNT Names
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-bdf_fonts.html" title="BDF and PCF Files" class="md-nav__link">
- BDF and PCF Files
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-bdf_fonts.html" class="md-nav__link">
+ BDF and PCF Files
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-cid_fonts.html" title="CID Fonts" class="md-nav__link">
- CID Fonts
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-cid_fonts.html" class="md-nav__link">
+ CID Fonts
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-pfr_fonts.html" class="md-nav__link">
+ PFR Fonts
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-pfr_fonts.html" title="PFR Fonts" class="md-nav__link">
- PFR Fonts
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-winfnt_fonts.html" title="Window FNT Files" class="md-nav__link">
- Window FNT Files
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-winfnt_fonts.html" class="md-nav__link">
+ Window FNT Files
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-font_formats.html" class="md-nav__link">
+ Font Formats
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-font_formats.html" title="Font Formats" class="md-nav__link">
- Font Formats
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-gasp_table.html" title="Gasp Table" class="md-nav__link">
- Gasp Table
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-gasp_table.html" class="md-nav__link">
+ Gasp Table
+ </a>
+ </li>
+
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-6" type="checkbox" id="nav-6">
+
+
+
- <label class="md-nav__link" for="nav-6">
- Controlling FreeType Modules
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-6">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_6" type="checkbox" id="__nav_6" >
+
+ <label class="md-nav__link" for="__nav_6">
Controlling FreeType Modules
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
-
-
+ <nav class="md-nav" aria-label="Controlling FreeType Modules" data-md-level="1">
+ <label class="md-nav__title" for="__nav_6">
+ <span class="md-nav__icon md-icon"></span>
+ Controlling FreeType Modules
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-auto_hinter.html" class="md-nav__link">
+ The auto-hinter
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-auto_hinter.html" title="The auto-hinter" class="md-nav__link">
- The auto-hinter
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-cff_driver.html" title="The CFF driver" class="md-nav__link">
- The CFF driver
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-cff_driver.html" class="md-nav__link">
+ The CFF driver
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-t1_cid_driver.html" class="md-nav__link">
+ The Type 1 and CID drivers
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-t1_cid_driver.html" title="The Type 1 and CID drivers" class="md-nav__link">
- The Type 1 and CID drivers
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-tt_driver.html" title="The TrueType driver" class="md-nav__link">
- The TrueType driver
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-tt_driver.html" class="md-nav__link">
+ The TrueType driver
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-pcf_driver.html" title="The PCF driver" class="md-nav__link">
- The PCF driver
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-pcf_driver.html" class="md-nav__link">
+ The PCF driver
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-properties.html" class="md-nav__link">
+ Driver properties
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-properties.html" title="Driver properties" class="md-nav__link">
- Driver properties
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-parameter_tags.html" title="Parameter Tags" class="md-nav__link">
- Parameter Tags
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-parameter_tags.html" class="md-nav__link">
+ Parameter Tags
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-lcd_rendering.html" title="Subpixel Rendering" class="md-nav__link">
- Subpixel Rendering
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-lcd_rendering.html" class="md-nav__link">
+ Subpixel Rendering
+ </a>
+ </li>
+
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-7" type="checkbox" id="nav-7">
+
+
+
- <label class="md-nav__link" for="nav-7">
- Cache Sub-System
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-7">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_7" type="checkbox" id="__nav_7" >
+
+ <label class="md-nav__link" for="__nav_7">
Cache Sub-System
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
+ <nav class="md-nav" aria-label="Cache Sub-System" data-md-level="1">
+ <label class="md-nav__title" for="__nav_7">
+ <span class="md-nav__icon md-icon"></span>
+ Cache Sub-System
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-cache_subsystem.html" title="Cache Sub-System" class="md-nav__link">
- Cache Sub-System
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-cache_subsystem.html" class="md-nav__link">
+ Cache Sub-System
+ </a>
+ </li>
+
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
@@ -699,77 +740,87 @@
-
-
- <li class="md-nav__item md-nav__item--active md-nav__item--nested">
+
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-8" type="checkbox" id="nav-8" checked>
+
+
- <label class="md-nav__link" for="nav-8">
- Support API
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-8">
+ <li class="md-nav__item md-nav__item--active md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_8" type="checkbox" id="__nav_8" checked>
+
+ <label class="md-nav__link" for="__nav_8">
Support API
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
+ <nav class="md-nav" aria-label="Support API" data-md-level="1">
+ <label class="md-nav__title" for="__nav_8">
+ <span class="md-nav__icon md-icon"></span>
+ Support API
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-computations.html" title="Computations" class="md-nav__link">
- Computations
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-computations.html" class="md-nav__link">
+ Computations
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-list_processing.html" class="md-nav__link">
+ List Processing
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-list_processing.html" title="List Processing" class="md-nav__link">
- List Processing
- </a>
- </li>
-
-
-
-
-
+
+
-
-
- <li class="md-nav__item md-nav__item--active">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="toc" type="checkbox" id="__toc">
+
+
+ <li class="md-nav__item md-nav__item--active">
-
-
- <label class="md-nav__link md-nav__link--active" for="__toc">
+ <input class="md-nav__toggle md-toggle" data-md-toggle="toc" type="checkbox" id="__toc">
+
+
+
+
+
+ <label class="md-nav__link md-nav__link--active" for="__toc">
+ Outline Processing
+ <span class="md-nav__icon md-icon"></span>
+ </label>
+
+ <a href="ft2-outline_processing.html" class="md-nav__link md-nav__link--active">
Outline Processing
- </label>
-
- <a href="ft2-outline_processing.html" title="Outline Processing" class="md-nav__link md-nav__link--active">
- Outline Processing
- </a>
-
+ </a>
-<nav class="md-nav md-nav--secondary">
+
+<nav class="md-nav md-nav--secondary" aria-label="Table of contents">
+
- <label class="md-nav__title" for="__toc">Table of contents</label>
- <ul class="md-nav__list" data-md-scrollfix>
+ <label class="md-nav__title" for="__toc">
+ <span class="md-nav__icon md-icon"></span>
+ Table of contents
+ </label>
+ <ul class="md-nav__list" data-md-component="toc" data-md-scrollfix>
<li class="md-nav__item">
<a href="#synopsis" class="md-nav__link">
@@ -939,248 +990,270 @@
</li>
-
-
-
-
</ul>
</nav>
-
- </li>
+
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-quick_advance.html" class="md-nav__link">
+ Quick retrieval of advance values
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-quick_advance.html" title="Quick retrieval of advance values" class="md-nav__link">
- Quick retrieval of advance values
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-bitmap_handling.html" title="Bitmap Handling" class="md-nav__link">
- Bitmap Handling
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-bitmap_handling.html" class="md-nav__link">
+ Bitmap Handling
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-raster.html" class="md-nav__link">
+ Scanline Converter
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-raster.html" title="Scanline Converter" class="md-nav__link">
- Scanline Converter
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-glyph_stroker.html" title="Glyph Stroker" class="md-nav__link">
- Glyph Stroker
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-glyph_stroker.html" class="md-nav__link">
+ Glyph Stroker
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-system_interface.html" title="System Interface" class="md-nav__link">
- System Interface
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-system_interface.html" class="md-nav__link">
+ System Interface
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-module_management.html" title="Module Management" class="md-nav__link">
- Module Management
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-module_management.html" class="md-nav__link">
+ Module Management
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-gzip.html" title="GZIP Streams" class="md-nav__link">
- GZIP Streams
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-gzip.html" class="md-nav__link">
+ GZIP Streams
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-lzw.html" title="LZW Streams" class="md-nav__link">
- LZW Streams
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-lzw.html" class="md-nav__link">
+ LZW Streams
+ </a>
+ </li>
+
-
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-bzip2.html" class="md-nav__link">
+ BZIP2 Streams
+ </a>
+ </li>
+
- <li class="md-nav__item">
- <a href="ft2-bzip2.html" title="BZIP2 Streams" class="md-nav__link">
- BZIP2 Streams
- </a>
- </li>
+
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-debugging_apis.html" class="md-nav__link">
+ External Debugging APIs
+ </a>
+ </li>
+
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-9" type="checkbox" id="nav-9">
+
+
+
- <label class="md-nav__link" for="nav-9">
- Error Codes
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-9">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_9" type="checkbox" id="__nav_9" >
+
+ <label class="md-nav__link" for="__nav_9">
Error Codes
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
+ <nav class="md-nav" aria-label="Error Codes" data-md-level="1">
+ <label class="md-nav__title" for="__nav_9">
+ <span class="md-nav__icon md-icon"></span>
+ Error Codes
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-error_enumerations.html" title="Error Enumerations" class="md-nav__link">
- Error Enumerations
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-error_enumerations.html" class="md-nav__link">
+ Error Enumerations
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-error_code_values.html" class="md-nav__link">
+ Error Code Values
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-error_code_values.html" title="Error Code Values" class="md-nav__link">
- Error Code Values
- </a>
- </li>
-
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-10" type="checkbox" id="nav-10">
+
+
+
- <label class="md-nav__link" for="nav-10">
- Miscellaneous
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-10">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_10" type="checkbox" id="__nav_10" >
+
+ <label class="md-nav__link" for="__nav_10">
Miscellaneous
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
-
+ <nav class="md-nav" aria-label="Miscellaneous" data-md-level="1">
+ <label class="md-nav__title" for="__nav_10">
+ <span class="md-nav__icon md-icon"></span>
+ Miscellaneous
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
-
-
-
- <li class="md-nav__item">
- <a href="ft2-gx_validation.html" title="TrueTypeGX/AAT Validation" class="md-nav__link">
- TrueTypeGX/AAT Validation
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-gx_validation.html" class="md-nav__link">
+ TrueTypeGX/AAT Validation
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-incremental.html" title="Incremental Loading" class="md-nav__link">
- Incremental Loading
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-incremental.html" class="md-nav__link">
+ Incremental Loading
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-truetype_engine.html" title="The TrueType Engine" class="md-nav__link">
- The TrueType Engine
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-truetype_engine.html" class="md-nav__link">
+ The TrueType Engine
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-ot_validation.html" class="md-nav__link">
+ OpenType Validation
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-ot_validation.html" title="OpenType Validation" class="md-nav__link">
- OpenType Validation
- </a>
- </li>
-
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
</ul>
@@ -1190,18 +1263,23 @@
</div>
- <div class="md-sidebar md-sidebar--secondary" data-md-component="toc">
+
+ <div class="md-sidebar md-sidebar--secondary" data-md-component="sidebar" data-md-type="toc" >
<div class="md-sidebar__scrollwrap">
<div class="md-sidebar__inner">
-<nav class="md-nav md-nav--secondary">
+<nav class="md-nav md-nav--secondary" aria-label="Table of contents">
+
- <label class="md-nav__title" for="__toc">Table of contents</label>
- <ul class="md-nav__list" data-md-scrollfix>
+ <label class="md-nav__title" for="__toc">
+ <span class="md-nav__icon md-icon"></span>
+ Table of contents
+ </label>
+ <ul class="md-nav__list" data-md-component="toc" data-md-scrollfix>
<li class="md-nav__item">
<a href="#synopsis" class="md-nav__link">
@@ -1371,10 +1449,6 @@
</li>
-
-
-
-
</ul>
</nav>
@@ -1383,7 +1457,7 @@
</div>
- <div class="md-content">
+ <div class="md-content" data-md-component="content">
<article class="md-content__inner md-typeset">
@@ -1411,7 +1485,6 @@
<p>This structure is used to describe an outline to the scan-line converter.</p>
<h4>fields</h4>
-
<table class="fields">
<tr><td class="val" id="n_contours">n_contours</td><td class="desc">
<p>The number of contours in the outline.</p>
@@ -1453,7 +1526,6 @@
<p>Create a new outline of a given size.</p>
<h4>input</h4>
-
<table class="fields">
<tr><td class="val" id="library">library</td><td class="desc">
<p>A handle to the library object from where the outline is allocated. Note however that the new outline will <strong>not</strong> necessarily be <strong>freed</strong>, when destroying the library, by <code><a href="ft2-base_interface.html#ft_done_freetype">FT_Done_FreeType</a></code>.</p>
@@ -1467,7 +1539,6 @@
</table>
<h4>output</h4>
-
<table class="fields">
<tr><td class="val" id="anoutline">anoutline</td><td class="desc">
<p>A handle to the new outline.</p>
@@ -1491,7 +1562,6 @@
<p>Destroy an outline created with <code><a href="ft2-outline_processing.html#ft_outline_new">FT_Outline_New</a></code>.</p>
<h4>input</h4>
-
<table class="fields">
<tr><td class="val" id="library">library</td><td class="desc">
<p>A handle of the library object used to allocate the outline.</p>
@@ -1518,7 +1588,6 @@
<p>Copy an outline into another one. Both objects must have the same sizes (number of points &amp; number of contours) when this function is called.</p>
<h4>input</h4>
-
<table class="fields">
<tr><td class="val" id="source">source</td><td class="desc">
<p>A handle to the source outline.</p>
@@ -1526,7 +1595,6 @@
</table>
<h4>output</h4>
-
<table class="fields">
<tr><td class="val" id="target">target</td><td class="desc">
<p>A handle to the target outline.</p>
@@ -1548,7 +1616,6 @@
<p>Apply a simple translation to the points of an outline.</p>
<h4>inout</h4>
-
<table class="fields">
<tr><td class="val" id="outline">outline</td><td class="desc">
<p>A pointer to the target outline descriptor.</p>
@@ -1556,7 +1623,6 @@
</table>
<h4>input</h4>
-
<table class="fields">
<tr><td class="val" id="xoffset">xOffset</td><td class="desc">
<p>The horizontal offset.</p>
@@ -1577,7 +1643,6 @@
<p>Apply a simple 2x2 matrix to all of an outline's points. Useful for applying rotations, slanting, flipping, etc.</p>
<h4>inout</h4>
-
<table class="fields">
<tr><td class="val" id="outline">outline</td><td class="desc">
<p>A pointer to the target outline descriptor.</p>
@@ -1585,7 +1650,6 @@
</table>
<h4>input</h4>
-
<table class="fields">
<tr><td class="val" id="matrix">matrix</td><td class="desc">
<p>A pointer to the transformation matrix.</p>
@@ -1607,7 +1671,6 @@
<p>Embolden an outline. The new outline will be at most 4&nbsp;times <code>strength</code> pixels wider and higher. You may think of the left and bottom borders as unchanged.</p>
<p>Negative <code>strength</code> values to reduce the outline thickness are possible also.</p>
<h4>inout</h4>
-
<table class="fields">
<tr><td class="val" id="outline">outline</td><td class="desc">
<p>A handle to the target outline.</p>
@@ -1615,7 +1678,6 @@
</table>
<h4>input</h4>
-
<table class="fields">
<tr><td class="val" id="strength">strength</td><td class="desc">
<p>How strong the glyph is emboldened. Expressed in 26.6 pixel format.</p>
@@ -1631,13 +1693,11 @@
<p>If you need &lsquo;better&rsquo; metrics values you should call <code><a href="ft2-outline_processing.html#ft_outline_get_cbox">FT_Outline_Get_CBox</a></code> or <code><a href="ft2-outline_processing.html#ft_outline_get_bbox">FT_Outline_Get_BBox</a></code>.</p>
<p>To get meaningful results, font scaling values must be set with functions like <code><a href="ft2-base_interface.html#ft_set_char_size">FT_Set_Char_Size</a></code> before calling FT_Render_Glyph.</p>
<h4>example</h4>
-
<div class="highlight"><pre><span></span><code> FT_Load_Glyph( face, index, FT_LOAD_DEFAULT );
if ( face-&gt;glyph-&gt;format == FT_GLYPH_FORMAT_OUTLINE )
FT_Outline_Embolden( &amp;face-&gt;glyph-&gt;outline, strength );
</code></pre></div>
-
<hr>
<h2 id="ft_outline_emboldenxy">FT_Outline_EmboldenXY<a class="headerlink" href="#ft_outline_emboldenxy" title="Permanent link">&para;</a></h2>
@@ -1662,7 +1722,6 @@
<p>Reverse the drawing direction of an outline. This is used to ensure consistent fill conventions for mirrored glyphs.</p>
<h4>inout</h4>
-
<table class="fields">
<tr><td class="val" id="outline">outline</td><td class="desc">
<p>A pointer to the target outline descriptor.</p>
@@ -1683,7 +1742,6 @@
<p>Check the contents of an outline descriptor.</p>
<h4>input</h4>
-
<table class="fields">
<tr><td class="val" id="outline">outline</td><td class="desc">
<p>A handle to a source outline.</p>
@@ -1708,7 +1766,6 @@
<p>Return an outline's &lsquo;control box&rsquo;. The control box encloses all the outline's points, including Bezier control points. Though it coincides with the exact bounding box for most glyphs, it can be slightly larger in some situations (like when rotating an outline that contains Bezier outside arcs).</p>
<p>Computing the control box is very fast, while getting the bounding box can take much more time as it needs to walk over all segments and arcs in the outline. To get the latter, you can use the &lsquo;ftbbox&rsquo; component, which is dedicated to this single task.</p>
<h4>input</h4>
-
<table class="fields">
<tr><td class="val" id="outline">outline</td><td class="desc">
<p>A pointer to the source outline descriptor.</p>
@@ -1716,7 +1773,6 @@
</table>
<h4>output</h4>
-
<table class="fields">
<tr><td class="val" id="acbox">acbox</td><td class="desc">
<p>The outline's control box.</p>
@@ -1737,7 +1793,6 @@
<p>Compute the exact bounding box of an outline. This is slower than computing the control box. However, it uses an advanced algorithm that returns <em>very</em> quickly when the two boxes coincide. Otherwise, the outline Bezier arcs are traversed to extract their extrema.</p>
<h4>input</h4>
-
<table class="fields">
<tr><td class="val" id="outline">outline</td><td class="desc">
<p>A pointer to the source outline.</p>
@@ -1745,7 +1800,6 @@
</table>
<h4>output</h4>
-
<table class="fields">
<tr><td class="val" id="abbox">abbox</td><td class="desc">
<p>The outline's exact bounding box.</p>
@@ -1770,7 +1824,6 @@
<p>Render an outline within a bitmap. The outline's image is simply OR-ed to the target bitmap.</p>
<h4>input</h4>
-
<table class="fields">
<tr><td class="val" id="library">library</td><td class="desc">
<p>A handle to a FreeType library object.</p>
@@ -1781,7 +1834,6 @@
</table>
<h4>inout</h4>
-
<table class="fields">
<tr><td class="val" id="abitmap">abitmap</td><td class="desc">
<p>A pointer to the target bitmap descriptor.</p>
@@ -1808,7 +1860,6 @@
<p>Render an outline within a bitmap using the current scan-convert.</p>
<h4>input</h4>
-
<table class="fields">
<tr><td class="val" id="library">library</td><td class="desc">
<p>A handle to a FreeType library object.</p>
@@ -1819,7 +1870,6 @@
</table>
<h4>inout</h4>
-
<table class="fields">
<tr><td class="val" id="params">params</td><td class="desc">
<p>A pointer to an <code><a href="ft2-raster.html#ft_raster_params">FT_Raster_Params</a></code> structure used to describe the rendering operation.</p>
@@ -1844,7 +1894,6 @@
<p>Walk over an outline's structure to decompose it into individual segments and Bezier arcs. This function also emits &lsquo;move to&rsquo; operations to indicate the start of new contours in the outline.</p>
<h4>input</h4>
-
<table class="fields">
<tr><td class="val" id="outline">outline</td><td class="desc">
<p>A pointer to the source target.</p>
@@ -1855,7 +1904,6 @@
</table>
<h4>inout</h4>
-
<table class="fields">
<tr><td class="val" id="user">user</td><td class="desc">
<p>A typeless pointer that is passed to each emitter during the decomposition. It can be used to store the state during the decomposition.</p>
@@ -1888,7 +1936,6 @@
<p>A structure to hold various function pointers used during outline decomposition in order to emit segments, conic, and cubic Beziers.</p>
<h4>fields</h4>
-
<table class="fields">
<tr><td class="val" id="move_to">move_to</td><td class="desc">
<p>The &lsquo;move to&rsquo; emitter.</p>
@@ -1931,7 +1978,6 @@
<p>A function pointer type used to describe the signature of a &lsquo;move to&rsquo; function during outline walking/decomposition.</p>
<p>A &lsquo;move to&rsquo; is emitted to start a new contour in an outline.</p>
<h4>input</h4>
-
<table class="fields">
<tr><td class="val" id="to">to</td><td class="desc">
<p>A pointer to the target point of the &lsquo;move to&rsquo;.</p>
@@ -1958,7 +2004,6 @@
<p>A function pointer type used to describe the signature of a &lsquo;line to&rsquo; function during outline walking/decomposition.</p>
<p>A &lsquo;line to&rsquo; is emitted to indicate a segment in the outline.</p>
<h4>input</h4>
-
<table class="fields">
<tr><td class="val" id="to">to</td><td class="desc">
<p>A pointer to the target point of the &lsquo;line to&rsquo;.</p>
@@ -1986,7 +2031,6 @@
<p>A function pointer type used to describe the signature of a &lsquo;conic to&rsquo; function during outline walking or decomposition.</p>
<p>A &lsquo;conic to&rsquo; is emitted to indicate a second-order Bezier arc in the outline.</p>
<h4>input</h4>
-
<table class="fields">
<tr><td class="val" id="control">control</td><td class="desc">
<p>An intermediate control point between the last position and the new target in <code>to</code>.</p>
@@ -2018,7 +2062,6 @@
<p>A function pointer type used to describe the signature of a &lsquo;cubic to&rsquo; function during outline walking or decomposition.</p>
<p>A &lsquo;cubic to&rsquo; is emitted to indicate a third-order Bezier arc.</p>
<h4>input</h4>
-
<table class="fields">
<tr><td class="val" id="control1">control1</td><td class="desc">
<p>A pointer to the first Bezier control point.</p>
@@ -2055,7 +2098,6 @@
<p>A list of values used to describe an outline's contour orientation.</p>
<p>The TrueType and PostScript specifications use different conventions to determine whether outline contours should be filled or unfilled.</p>
<h4>values</h4>
-
<table class="fields">
<tr><td class="val" id="ft_orientation_truetype">FT_ORIENTATION_TRUETYPE</td><td class="desc">
<p>According to the TrueType specification, clockwise contours must be filled, and counter-clockwise ones must be unfilled.</p>
@@ -2085,7 +2127,6 @@
<p>This function analyzes a glyph outline and tries to compute its fill orientation (see <code><a href="ft2-outline_processing.html#ft_orientation">FT_Orientation</a></code>). This is done by integrating the total area covered by the outline. The positive integral corresponds to the clockwise orientation and <code><a href="ft2-outline_processing.html#ft_orientation">FT_ORIENTATION_POSTSCRIPT</a></code> is returned. The negative integral corresponds to the counter-clockwise orientation and <code><a href="ft2-outline_processing.html#ft_orientation">FT_ORIENTATION_TRUETYPE</a></code> is returned.</p>
<p>Note that this will return <code><a href="ft2-outline_processing.html#ft_orientation">FT_ORIENTATION_TRUETYPE</a></code> for empty outlines.</p>
<h4>input</h4>
-
<table class="fields">
<tr><td class="val" id="outline">outline</td><td class="desc">
<p>A handle to the source outline.</p>
@@ -2125,7 +2166,6 @@
<p>A list of bit-field constants used for the flags in an outline's <code>flags</code> field.</p>
<h4>values</h4>
-
<table class="fields long">
<tr><td class="val" id="ft_outline_none">FT_OUTLINE_NONE</td><td class="desc">
<p>Value&nbsp;0 is reserved.</p>
@@ -2166,9 +2206,6 @@
<p>Please refer to the description of the &lsquo;SCANTYPE&rsquo; instruction in the OpenType specification (in file <code>ttinst1.doc</code>) how simple drop-outs, smart drop-outs, and stubs are defined.</p>
<hr>
-
-
-
@@ -2178,59 +2215,60 @@
</article>
</div>
</div>
+
</main>
<footer class="md-footer">
- <div class="md-footer-nav">
- <nav class="md-footer-nav__inner md-grid">
+ <nav class="md-footer__inner md-grid" aria-label="Footer">
+
- <a href="ft2-list_processing.html" title="List Processing" class="md-flex md-footer-nav__link md-footer-nav__link--prev" rel="prev">
- <div class="md-flex__cell md-flex__cell--shrink">
- <i class="md-icon md-icon--arrow-back md-footer-nav__button"></i>
- </div>
- <div class="md-flex__cell md-flex__cell--stretch md-footer-nav__title">
- <span class="md-flex__ellipsis">
- <span class="md-footer-nav__direction">
- Previous
- </span>
- List Processing
+ <a href="ft2-list_processing.html" class="md-footer__link md-footer__link--prev" aria-label="Previous: List Processing" rel="prev">
+ <div class="md-footer__button md-icon">
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M20 11v2H8l5.5 5.5-1.42 1.42L4.16 12l7.92-7.92L13.5 5.5 8 11h12z"/></svg>
+ </div>
+ <div class="md-footer__title">
+ <div class="md-ellipsis">
+ <span class="md-footer__direction">
+ Previous
</span>
+ List Processing
</div>
- </a>
-
+ </div>
+ </a>
+
+
- <a href="ft2-quick_advance.html" title="Quick retrieval of advance values" class="md-flex md-footer-nav__link md-footer-nav__link--next" rel="next">
- <div class="md-flex__cell md-flex__cell--stretch md-footer-nav__title">
- <span class="md-flex__ellipsis">
- <span class="md-footer-nav__direction">
- Next
- </span>
- Quick retrieval of advance values
+ <a href="ft2-quick_advance.html" class="md-footer__link md-footer__link--next" aria-label="Next: Quick retrieval of advance values" rel="next">
+ <div class="md-footer__title">
+ <div class="md-ellipsis">
+ <span class="md-footer__direction">
+ Next
</span>
+ Quick retrieval of advance values
</div>
- <div class="md-flex__cell md-flex__cell--shrink">
- <i class="md-icon md-icon--arrow-forward md-footer-nav__button"></i>
- </div>
- </a>
-
- </nav>
- </div>
+ </div>
+ <div class="md-footer__button md-icon">
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M4 11v2h12l-5.5 5.5 1.42 1.42L19.84 12l-7.92-7.92L10.5 5.5 16 11H4z"/></svg>
+ </div>
+ </a>
+
+ </nav>
<div class="md-footer-meta md-typeset">
<div class="md-footer-meta__inner md-grid">
<div class="md-footer-copyright">
<div class="md-footer-copyright__highlight">
- Copyright 2020 <a href = "https://www.freetype.org/license.html">The FreeType Project</a>.
+ Copyright 2021 <a href = "https://www.freetype.org/license.html">The FreeType Project</a>.
</div>
- powered by
- <a href="https://www.mkdocs.org" target="_blank" rel="noopener">MkDocs</a>
- and
+ Made with
<a href="https://squidfunk.github.io/mkdocs-material/" target="_blank" rel="noopener">
- Material for MkDocs</a>
+ Material for MkDocs
+ </a>
+
</div>
</div>
@@ -2238,10 +2276,13 @@
</footer>
</div>
+ <div class="md-dialog" data-md-component="dialog">
+ <div class="md-dialog__inner md-typeset"></div>
+ </div>
+ <script id="__config" type="application/json">{"base": ".", "features": [], "translations": {"clipboard.copy": "Copy to clipboard", "clipboard.copied": "Copied to clipboard", "search.config.lang": "en", "search.config.pipeline": "trimmer, stopWordFilter", "search.config.separator": "[\\s\\-]+", "search.placeholder": "Search", "search.result.placeholder": "Type to start searching", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.term.missing": "Missing", "select.version.title": "Select version"}, "search": "assets/javascripts/workers/search.477d984a.min.js", "version": null}</script>
- <script src="assets/javascripts/application.c33a9706.js"></script>
-
- <script>app.initialize({version:"1.1",url:{base:"."}})</script>
+
+ <script src="assets/javascripts/bundle.82b56eb2.min.js"></script>
<script src="javascripts/extra.js"></script>
diff --git a/freetype/docs/reference/ft2-parameter_tags.html b/freetype/docs/reference/ft2-parameter_tags.html
index a7d050b5..940d8f28 100644
--- a/freetype/docs/reference/ft2-parameter_tags.html
+++ b/freetype/docs/reference/ft2-parameter_tags.html
@@ -1,145 +1,136 @@
-
-
-
<!doctype html>
<html lang="en" class="no-js">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
- <meta http-equiv="x-ua-compatible" content="ie=edge">
- <meta name="description" content="API Reference Documentation for FreeType-2.10.4">
+ <meta name="description" content="API Reference Documentation for FreeType-2.11.1">
<meta name="author" content="FreeType Contributors">
- <meta name="lang:clipboard.copy" content="Copy to clipboard">
-
- <meta name="lang:clipboard.copied" content="Copied to clipboard">
-
- <meta name="lang:search.language" content="en">
-
- <meta name="lang:search.pipeline.stopwords" content="True">
-
- <meta name="lang:search.pipeline.trimmer" content="True">
-
- <meta name="lang:search.result.none" content="No matching documents">
-
- <meta name="lang:search.result.one" content="1 matching document">
-
- <meta name="lang:search.result.other" content="# matching documents">
-
- <meta name="lang:search.tokenizer" content="[\s\-]+">
-
- <link rel="shortcut icon" href="images/favico.ico">
- <meta name="generator" content="mkdocs-1.1, mkdocs-material-4.6.3">
+ <link rel="icon" href="images/favico.ico">
+ <meta name="generator" content="mkdocs-1.2.1, mkdocs-material-7.1.9">
- <title>Parameter Tags - FreeType-2.10.4 API Reference</title>
+ <title>Parameter Tags - FreeType-2.11.1 API Reference</title>
- <link rel="stylesheet" href="assets/stylesheets/application.adb8469c.css">
-
- <link rel="stylesheet" href="assets/stylesheets/application-palette.a8b3c06d.css">
-
+ <link rel="stylesheet" href="assets/stylesheets/main.ca7ac06f.min.css">
+ <link rel="stylesheet" href="assets/stylesheets/palette.f1a3b89f.min.css">
+
+
+
+ <meta name="theme-color" content="#4cae4f">
- <meta name="theme-color" content="#4caf50">
- <script src="assets/javascripts/modernizr.86422ebf.js"></script>
-
- <link href="https://fonts.gstatic.com" rel="preconnect" crossorigin>
+
+ <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Noto+Serif:300,400,400i,700%7CRoboto+Mono&display=fallback">
- <style>body,input{font-family:"Noto Serif","Helvetica Neue",Helvetica,Arial,sans-serif}code,kbd,pre{font-family:"Roboto Mono","Courier New",Courier,monospace}</style>
+ <style>:root{--md-text-font-family:"Noto Serif";--md-code-font-family:"Roboto Mono"}</style>
- <link rel="stylesheet" href="assets/fonts/material-icons.css">
<link rel="stylesheet" href="stylesheets/extra.css">
+
+
</head>
+
+
+
+
- <body dir="ltr" data-md-color-primary="green" data-md-color-accent="green">
+ <body dir="ltr" data-md-color-scheme="" data-md-color-primary="green" data-md-color-accent="green">
- <svg class="md-svg">
- <defs>
-
-
- </defs>
- </svg>
- <input class="md-toggle" data-md-toggle="drawer" type="checkbox" id="__drawer" autocomplete="off">
- <input class="md-toggle" data-md-toggle="search" type="checkbox" id="__search" autocomplete="off">
- <label class="md-overlay" data-md-component="overlay" for="__drawer"></label>
- <a href="#parameter-tags" tabindex="0" class="md-skip">
- Skip to content
- </a>
+ <script>function __prefix(e){return new URL(".",location).pathname+"."+e}function __get(e,t=localStorage){return JSON.parse(t.getItem(__prefix(e)))}</script>
+ <input class="md-toggle" data-md-toggle="drawer" type="checkbox" id="__drawer" autocomplete="off">
+ <input class="md-toggle" data-md-toggle="search" type="checkbox" id="__search" autocomplete="off">
+ <label class="md-overlay" for="__drawer"></label>
+ <div data-md-component="skip">
+
+
+ <a href="#parameter-tags" class="md-skip">
+ Skip to content
+ </a>
+
+ </div>
+ <div data-md-component="announce">
+
+ </div>
<header class="md-header" data-md-component="header">
- <nav class="md-header-nav md-grid">
- <div class="md-flex">
- <div class="md-flex__cell md-flex__cell--shrink">
- <a href="." title="FreeType-2.10.4 API Reference" aria-label="FreeType-2.10.4 API Reference" class="md-header-nav__button md-logo">
-
- <img alt="logo" src="images/favico.ico" width="24" height="24">
-
- </a>
- </div>
- <div class="md-flex__cell md-flex__cell--shrink">
- <label class="md-icon md-icon--menu md-header-nav__button" for="__drawer"></label>
- </div>
- <div class="md-flex__cell md-flex__cell--stretch">
- <div class="md-flex__ellipsis md-header-nav__title" data-md-component="title">
-
- <span class="md-header-nav__topic">
- FreeType-2.10.4 API Reference
- </span>
- <span class="md-header-nav__topic">
-
- Parameter Tags
-
- </span>
-
+ <nav class="md-header__inner md-grid" aria-label="Header">
+ <a href="index.html" title="FreeType-2.11.1 API Reference" class="md-header__button md-logo" aria-label="FreeType-2.11.1 API Reference" data-md-component="logo">
+
+ <img src="images/favico.ico" alt="logo">
+
+ </a>
+ <label class="md-header__button md-icon" for="__drawer">
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M3 6h18v2H3V6m0 5h18v2H3v-2m0 5h18v2H3v-2z"/></svg>
+ </label>
+ <div class="md-header__title" data-md-component="header-title">
+ <div class="md-header__ellipsis">
+ <div class="md-header__topic">
+ <span class="md-ellipsis">
+ FreeType-2.11.1 API Reference
+ </span>
+ </div>
+ <div class="md-header__topic" data-md-component="header-topic">
+ <span class="md-ellipsis">
+
+ Parameter Tags
+
+ </span>
</div>
</div>
- <div class="md-flex__cell md-flex__cell--shrink">
-
- <label class="md-icon md-icon--search md-header-nav__button" for="__search"></label>
-
+ </div>
+
+
+
+ <label class="md-header__button md-icon" for="__search">
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M9.5 3A6.5 6.5 0 0 1 16 9.5c0 1.61-.59 3.09-1.56 4.23l.27.27h.79l5 5-1.5 1.5-5-5v-.79l-.27-.27A6.516 6.516 0 0 1 9.5 16 6.5 6.5 0 0 1 3 9.5 6.5 6.5 0 0 1 9.5 3m0 2C7 5 5 7 5 9.5S7 14 9.5 14 14 12 14 9.5 12 5 9.5 5z"/></svg>
+ </label>
+
<div class="md-search" data-md-component="search" role="dialog">
<label class="md-search__overlay" for="__search"></label>
<div class="md-search__inner" role="search">
<form class="md-search__form" name="search">
- <input type="text" class="md-search__input" aria-label="search" name="query" placeholder="Search" autocapitalize="off" autocorrect="off" autocomplete="off" spellcheck="false" data-md-component="query" data-md-state="active">
- <label class="md-icon md-search__icon" for="__search"></label>
- <button type="reset" class="md-icon md-search__icon" data-md-component="reset" tabindex="-1">
- &#xE5CD;
+ <input type="text" class="md-search__input" name="query" aria-label="Search" placeholder="Search" autocapitalize="off" autocorrect="off" autocomplete="off" spellcheck="false" data-md-component="search-query" data-md-state="active" required>
+ <label class="md-search__icon md-icon" for="__search">
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M9.5 3A6.5 6.5 0 0 1 16 9.5c0 1.61-.59 3.09-1.56 4.23l.27.27h.79l5 5-1.5 1.5-5-5v-.79l-.27-.27A6.516 6.516 0 0 1 9.5 16 6.5 6.5 0 0 1 3 9.5 6.5 6.5 0 0 1 9.5 3m0 2C7 5 5 7 5 9.5S7 14 9.5 14 14 12 14 9.5 12 5 9.5 5z"/></svg>
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M20 11v2H8l5.5 5.5-1.42 1.42L4.16 12l7.92-7.92L13.5 5.5 8 11h12z"/></svg>
+ </label>
+ <button type="reset" class="md-search__icon md-icon" aria-label="Clear" tabindex="-1">
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z"/></svg>
</button>
</form>
<div class="md-search__output">
<div class="md-search__scrollwrap" data-md-scrollfix>
- <div class="md-search-result" data-md-component="result">
+ <div class="md-search-result" data-md-component="search-result">
<div class="md-search-result__meta">
- Type to start searching
+ Initializing search
</div>
<ol class="md-search-result__list"></ol>
</div>
@@ -147,33 +138,35 @@
</div>
</div>
</div>
-
- </div>
-
- </div>
+
+
</nav>
</header>
- <div class="md-container">
+ <div class="md-container" data-md-component="container">
-
+
- <main class="md-main" role="main">
- <div class="md-main__inner md-grid" data-md-component="container">
+ <main class="md-main" data-md-component="main">
+ <div class="md-main__inner md-grid">
- <div class="md-sidebar md-sidebar--primary" data-md-component="navigation">
+
+ <div class="md-sidebar md-sidebar--primary" data-md-component="sidebar" data-md-type="navigation" >
<div class="md-sidebar__scrollwrap">
<div class="md-sidebar__inner">
- <nav class="md-nav md-nav--primary" data-md-level="0">
- <label class="md-nav__title md-nav__title--site" for="__drawer">
- <a href="." title="FreeType-2.10.4 API Reference" class="md-nav__button md-logo">
-
- <img alt="logo" src="images/favico.ico" width="48" height="48">
+
+
+
+<nav class="md-nav md-nav--primary" aria-label="Navigation" data-md-level="0">
+ <label class="md-nav__title" for="__drawer">
+ <a href="index.html" title="FreeType-2.11.1 API Reference" class="md-nav__button md-logo" aria-label="FreeType-2.11.1 API Reference" data-md-component="logo">
+ <img src="images/favico.ico" alt="logo">
+
</a>
- FreeType-2.10.4 API Reference
+ FreeType-2.11.1 API Reference
</label>
<ul class="md-nav__list" data-md-scrollfix>
@@ -182,360 +175,396 @@
-
- <li class="md-nav__item">
- <a href="index.html" title="TOC" class="md-nav__link">
- TOC
- </a>
- </li>
+
+
+
+ <li class="md-nav__item">
+ <a href="index.html" class="md-nav__link">
+ TOC
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-index.html" title="Index" class="md-nav__link">
- Index
- </a>
- </li>
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-index.html" class="md-nav__link">
+ Index
+ </a>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-3" type="checkbox" id="nav-3">
+
+
+
- <label class="md-nav__link" for="nav-3">
- General Remarks
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-3">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_3" type="checkbox" id="__nav_3" >
+
+ <label class="md-nav__link" for="__nav_3">
General Remarks
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
+ <nav class="md-nav" aria-label="General Remarks" data-md-level="1">
+ <label class="md-nav__title" for="__nav_3">
+ <span class="md-nav__icon md-icon"></span>
+ General Remarks
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-header_inclusion.html" title="FreeType's header inclusion scheme" class="md-nav__link">
- FreeType's header inclusion scheme
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-preamble.html" class="md-nav__link">
+ Preamble
+ </a>
+ </li>
+
-
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-header_inclusion.html" class="md-nav__link">
+ FreeType's header inclusion scheme
+ </a>
+ </li>
+
- <li class="md-nav__item">
- <a href="ft2-user_allocation.html" title="User allocation" class="md-nav__link">
- User allocation
- </a>
- </li>
+
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-user_allocation.html" class="md-nav__link">
+ User allocation
+ </a>
+ </li>
+
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-4" type="checkbox" id="nav-4">
+
+
+
- <label class="md-nav__link" for="nav-4">
- Core API
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-4">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_4" type="checkbox" id="__nav_4" >
+
+ <label class="md-nav__link" for="__nav_4">
Core API
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
+ <nav class="md-nav" aria-label="Core API" data-md-level="1">
+ <label class="md-nav__title" for="__nav_4">
+ <span class="md-nav__icon md-icon"></span>
+ Core API
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-version.html" title="FreeType Version" class="md-nav__link">
- FreeType Version
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-version.html" class="md-nav__link">
+ FreeType Version
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-basic_types.html" title="Basic Data Types" class="md-nav__link">
- Basic Data Types
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-basic_types.html" class="md-nav__link">
+ Basic Data Types
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-base_interface.html" title="Base Interface" class="md-nav__link">
- Base Interface
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-base_interface.html" class="md-nav__link">
+ Base Interface
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-glyph_variants.html" title="Unicode Variation Sequences" class="md-nav__link">
- Unicode Variation Sequences
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-glyph_variants.html" class="md-nav__link">
+ Unicode Variation Sequences
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-color_management.html" class="md-nav__link">
+ Glyph Color Management
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-color_management.html" title="Glyph Color Management" class="md-nav__link">
- Glyph Color Management
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-layer_management.html" title="Glyph Layer Management" class="md-nav__link">
- Glyph Layer Management
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-layer_management.html" class="md-nav__link">
+ Glyph Layer Management
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-glyph_management.html" class="md-nav__link">
+ Glyph Management
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-glyph_management.html" title="Glyph Management" class="md-nav__link">
- Glyph Management
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-mac_specific.html" title="Mac Specific Interface" class="md-nav__link">
- Mac Specific Interface
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-mac_specific.html" class="md-nav__link">
+ Mac Specific Interface
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-sizes_management.html" class="md-nav__link">
+ Size Management
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-sizes_management.html" title="Size Management" class="md-nav__link">
- Size Management
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-header_file_macros.html" title="Header File Macros" class="md-nav__link">
- Header File Macros
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-header_file_macros.html" class="md-nav__link">
+ Header File Macros
+ </a>
+ </li>
+
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-5" type="checkbox" id="nav-5">
+
+
+
- <label class="md-nav__link" for="nav-5">
- Format-Specific API
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-5">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_5" type="checkbox" id="__nav_5" >
+
+ <label class="md-nav__link" for="__nav_5">
Format-Specific API
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
-
+ <nav class="md-nav" aria-label="Format-Specific API" data-md-level="1">
+ <label class="md-nav__title" for="__nav_5">
+ <span class="md-nav__icon md-icon"></span>
+ Format-Specific API
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
-
-
-
- <li class="md-nav__item">
- <a href="ft2-multiple_masters.html" title="Multiple Masters" class="md-nav__link">
- Multiple Masters
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-multiple_masters.html" class="md-nav__link">
+ Multiple Masters
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-truetype_tables.html" class="md-nav__link">
+ TrueType Tables
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-truetype_tables.html" title="TrueType Tables" class="md-nav__link">
- TrueType Tables
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-type1_tables.html" title="Type 1 Tables" class="md-nav__link">
- Type 1 Tables
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-type1_tables.html" class="md-nav__link">
+ Type 1 Tables
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-sfnt_names.html" class="md-nav__link">
+ SFNT Names
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-sfnt_names.html" title="SFNT Names" class="md-nav__link">
- SFNT Names
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-bdf_fonts.html" title="BDF and PCF Files" class="md-nav__link">
- BDF and PCF Files
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-bdf_fonts.html" class="md-nav__link">
+ BDF and PCF Files
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-cid_fonts.html" class="md-nav__link">
+ CID Fonts
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-cid_fonts.html" title="CID Fonts" class="md-nav__link">
- CID Fonts
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-pfr_fonts.html" title="PFR Fonts" class="md-nav__link">
- PFR Fonts
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-pfr_fonts.html" class="md-nav__link">
+ PFR Fonts
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-winfnt_fonts.html" title="Window FNT Files" class="md-nav__link">
- Window FNT Files
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-winfnt_fonts.html" class="md-nav__link">
+ Window FNT Files
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-font_formats.html" class="md-nav__link">
+ Font Formats
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-font_formats.html" title="Font Formats" class="md-nav__link">
- Font Formats
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-gasp_table.html" title="Gasp Table" class="md-nav__link">
- Gasp Table
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-gasp_table.html" class="md-nav__link">
+ Gasp Table
+ </a>
+ </li>
+
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
@@ -543,125 +572,135 @@
-
-
- <li class="md-nav__item md-nav__item--active md-nav__item--nested">
+
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-6" type="checkbox" id="nav-6" checked>
+
+
- <label class="md-nav__link" for="nav-6">
- Controlling FreeType Modules
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-6">
+ <li class="md-nav__item md-nav__item--active md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_6" type="checkbox" id="__nav_6" checked>
+
+ <label class="md-nav__link" for="__nav_6">
Controlling FreeType Modules
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
-
+ <nav class="md-nav" aria-label="Controlling FreeType Modules" data-md-level="1">
+ <label class="md-nav__title" for="__nav_6">
+ <span class="md-nav__icon md-icon"></span>
+ Controlling FreeType Modules
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
-
-
-
- <li class="md-nav__item">
- <a href="ft2-auto_hinter.html" title="The auto-hinter" class="md-nav__link">
- The auto-hinter
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-auto_hinter.html" class="md-nav__link">
+ The auto-hinter
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-cff_driver.html" class="md-nav__link">
+ The CFF driver
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-cff_driver.html" title="The CFF driver" class="md-nav__link">
- The CFF driver
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-t1_cid_driver.html" title="The Type 1 and CID drivers" class="md-nav__link">
- The Type 1 and CID drivers
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-t1_cid_driver.html" class="md-nav__link">
+ The Type 1 and CID drivers
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-tt_driver.html" class="md-nav__link">
+ The TrueType driver
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-tt_driver.html" title="The TrueType driver" class="md-nav__link">
- The TrueType driver
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-pcf_driver.html" title="The PCF driver" class="md-nav__link">
- The PCF driver
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-pcf_driver.html" class="md-nav__link">
+ The PCF driver
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-properties.html" title="Driver properties" class="md-nav__link">
- Driver properties
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-properties.html" class="md-nav__link">
+ Driver properties
+ </a>
+ </li>
+
-
-
-
-
+
+
-
-
- <li class="md-nav__item md-nav__item--active">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="toc" type="checkbox" id="__toc">
+
+
+ <li class="md-nav__item md-nav__item--active">
-
-
- <label class="md-nav__link md-nav__link--active" for="__toc">
+ <input class="md-nav__toggle md-toggle" data-md-toggle="toc" type="checkbox" id="__toc">
+
+
+
+
+
+ <label class="md-nav__link md-nav__link--active" for="__toc">
+ Parameter Tags
+ <span class="md-nav__icon md-icon"></span>
+ </label>
+
+ <a href="ft2-parameter_tags.html" class="md-nav__link md-nav__link--active">
Parameter Tags
- </label>
-
- <a href="ft2-parameter_tags.html" title="Parameter Tags" class="md-nav__link md-nav__link--active">
- Parameter Tags
- </a>
-
+ </a>
-<nav class="md-nav md-nav--secondary">
+
+<nav class="md-nav md-nav--secondary" aria-label="Table of contents">
+
- <label class="md-nav__title" for="__toc">Table of contents</label>
- <ul class="md-nav__list" data-md-scrollfix>
+ <label class="md-nav__title" for="__toc">
+ <span class="md-nav__icon md-icon"></span>
+ Table of contents
+ </label>
+ <ul class="md-nav__list" data-md-component="toc" data-md-scrollfix>
<li class="md-nav__item">
<a href="#synopsis" class="md-nav__link">
@@ -719,356 +758,390 @@
</li>
-
-
-
-
</ul>
</nav>
-
- </li>
+
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-lcd_rendering.html" title="Subpixel Rendering" class="md-nav__link">
- Subpixel Rendering
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-lcd_rendering.html" class="md-nav__link">
+ Subpixel Rendering
+ </a>
+ </li>
+
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-7" type="checkbox" id="nav-7">
+
+
+
- <label class="md-nav__link" for="nav-7">
- Cache Sub-System
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-7">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_7" type="checkbox" id="__nav_7" >
+
+ <label class="md-nav__link" for="__nav_7">
Cache Sub-System
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
+ <nav class="md-nav" aria-label="Cache Sub-System" data-md-level="1">
+ <label class="md-nav__title" for="__nav_7">
+ <span class="md-nav__icon md-icon"></span>
+ Cache Sub-System
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-cache_subsystem.html" title="Cache Sub-System" class="md-nav__link">
- Cache Sub-System
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-cache_subsystem.html" class="md-nav__link">
+ Cache Sub-System
+ </a>
+ </li>
+
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-8" type="checkbox" id="nav-8">
+
+
+
- <label class="md-nav__link" for="nav-8">
- Support API
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-8">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_8" type="checkbox" id="__nav_8" >
+
+ <label class="md-nav__link" for="__nav_8">
Support API
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
-
+ <nav class="md-nav" aria-label="Support API" data-md-level="1">
+ <label class="md-nav__title" for="__nav_8">
+ <span class="md-nav__icon md-icon"></span>
+ Support API
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
-
-
-
- <li class="md-nav__item">
- <a href="ft2-computations.html" title="Computations" class="md-nav__link">
- Computations
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-computations.html" class="md-nav__link">
+ Computations
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-list_processing.html" title="List Processing" class="md-nav__link">
- List Processing
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-list_processing.html" class="md-nav__link">
+ List Processing
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-outline_processing.html" class="md-nav__link">
+ Outline Processing
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-outline_processing.html" title="Outline Processing" class="md-nav__link">
- Outline Processing
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-quick_advance.html" title="Quick retrieval of advance values" class="md-nav__link">
- Quick retrieval of advance values
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-quick_advance.html" class="md-nav__link">
+ Quick retrieval of advance values
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-bitmap_handling.html" class="md-nav__link">
+ Bitmap Handling
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-bitmap_handling.html" title="Bitmap Handling" class="md-nav__link">
- Bitmap Handling
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-raster.html" title="Scanline Converter" class="md-nav__link">
- Scanline Converter
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-raster.html" class="md-nav__link">
+ Scanline Converter
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-glyph_stroker.html" title="Glyph Stroker" class="md-nav__link">
- Glyph Stroker
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-glyph_stroker.html" class="md-nav__link">
+ Glyph Stroker
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-system_interface.html" title="System Interface" class="md-nav__link">
- System Interface
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-system_interface.html" class="md-nav__link">
+ System Interface
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-module_management.html" class="md-nav__link">
+ Module Management
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-module_management.html" title="Module Management" class="md-nav__link">
- Module Management
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-gzip.html" title="GZIP Streams" class="md-nav__link">
- GZIP Streams
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-gzip.html" class="md-nav__link">
+ GZIP Streams
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-lzw.html" class="md-nav__link">
+ LZW Streams
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-lzw.html" title="LZW Streams" class="md-nav__link">
- LZW Streams
- </a>
- </li>
-
-
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-bzip2.html" class="md-nav__link">
+ BZIP2 Streams
+ </a>
+ </li>
+
- <li class="md-nav__item">
- <a href="ft2-bzip2.html" title="BZIP2 Streams" class="md-nav__link">
- BZIP2 Streams
- </a>
- </li>
+
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-debugging_apis.html" class="md-nav__link">
+ External Debugging APIs
+ </a>
+ </li>
+
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-9" type="checkbox" id="nav-9">
+
+
+
- <label class="md-nav__link" for="nav-9">
- Error Codes
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-9">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_9" type="checkbox" id="__nav_9" >
+
+ <label class="md-nav__link" for="__nav_9">
Error Codes
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
-
+ <nav class="md-nav" aria-label="Error Codes" data-md-level="1">
+ <label class="md-nav__title" for="__nav_9">
+ <span class="md-nav__icon md-icon"></span>
+ Error Codes
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
-
-
-
- <li class="md-nav__item">
- <a href="ft2-error_enumerations.html" title="Error Enumerations" class="md-nav__link">
- Error Enumerations
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-error_enumerations.html" class="md-nav__link">
+ Error Enumerations
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-error_code_values.html" class="md-nav__link">
+ Error Code Values
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-error_code_values.html" title="Error Code Values" class="md-nav__link">
- Error Code Values
- </a>
- </li>
-
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-10" type="checkbox" id="nav-10">
+
+
+
- <label class="md-nav__link" for="nav-10">
- Miscellaneous
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-10">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_10" type="checkbox" id="__nav_10" >
+
+ <label class="md-nav__link" for="__nav_10">
Miscellaneous
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
-
-
+ <nav class="md-nav" aria-label="Miscellaneous" data-md-level="1">
+ <label class="md-nav__title" for="__nav_10">
+ <span class="md-nav__icon md-icon"></span>
+ Miscellaneous
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-gx_validation.html" class="md-nav__link">
+ TrueTypeGX/AAT Validation
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-gx_validation.html" title="TrueTypeGX/AAT Validation" class="md-nav__link">
- TrueTypeGX/AAT Validation
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-incremental.html" title="Incremental Loading" class="md-nav__link">
- Incremental Loading
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-incremental.html" class="md-nav__link">
+ Incremental Loading
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-truetype_engine.html" class="md-nav__link">
+ The TrueType Engine
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-truetype_engine.html" title="The TrueType Engine" class="md-nav__link">
- The TrueType Engine
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-ot_validation.html" title="OpenType Validation" class="md-nav__link">
- OpenType Validation
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-ot_validation.html" class="md-nav__link">
+ OpenType Validation
+ </a>
+ </li>
+
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
</ul>
@@ -1078,18 +1151,23 @@
</div>
- <div class="md-sidebar md-sidebar--secondary" data-md-component="toc">
+
+ <div class="md-sidebar md-sidebar--secondary" data-md-component="sidebar" data-md-type="toc" >
<div class="md-sidebar__scrollwrap">
<div class="md-sidebar__inner">
-<nav class="md-nav md-nav--secondary">
+<nav class="md-nav md-nav--secondary" aria-label="Table of contents">
+
- <label class="md-nav__title" for="__toc">Table of contents</label>
- <ul class="md-nav__list" data-md-scrollfix>
+ <label class="md-nav__title" for="__toc">
+ <span class="md-nav__icon md-icon"></span>
+ Table of contents
+ </label>
+ <ul class="md-nav__list" data-md-component="toc" data-md-scrollfix>
<li class="md-nav__item">
<a href="#synopsis" class="md-nav__link">
@@ -1147,10 +1225,6 @@
</li>
-
-
-
-
</ul>
</nav>
@@ -1159,7 +1233,7 @@
</div>
- <div class="md-content">
+ <div class="md-content" data-md-component="content">
<article class="md-content__inner md-typeset">
@@ -1173,6 +1247,7 @@
<div class = "codehilite"><pre><code>#<span class="keyword">define</span> <b>FT_PARAM_TAG_IGNORE_TYPOGRAPHIC_FAMILY</b> \
<a href="ft2-basic_types.html#ft_make_tag">FT_MAKE_TAG</a>( 'i', 'g', 'p', 'f' )
+
/* this constant is deprecated */
#<span class="keyword">define</span> FT_PARAM_TAG_IGNORE_PREFERRED_FAMILY \
<b>FT_PARAM_TAG_IGNORE_TYPOGRAPHIC_FAMILY</b>
@@ -1188,6 +1263,7 @@
<div class = "codehilite"><pre><code>#<span class="keyword">define</span> <b>FT_PARAM_TAG_IGNORE_TYPOGRAPHIC_SUBFAMILY</b> \
<a href="ft2-basic_types.html#ft_make_tag">FT_MAKE_TAG</a>( 'i', 'g', 'p', 's' )
+
/* this constant is deprecated */
#<span class="keyword">define</span> FT_PARAM_TAG_IGNORE_PREFERRED_SUBFAMILY \
<b>FT_PARAM_TAG_IGNORE_TYPOGRAPHIC_SUBFAMILY</b>
@@ -1250,9 +1326,6 @@
<p>Previously: A constant used as the tag of an <code><a href="ft2-base_interface.html#ft_parameter">FT_Parameter</a></code> structure to indicate that unpatented methods only should be used by the TrueType bytecode interpreter for a typeface opened by <code><a href="ft2-base_interface.html#ft_open_face">FT_Open_Face</a></code>.</p>
<hr>
-
-
-
@@ -1262,59 +1335,60 @@
</article>
</div>
</div>
+
</main>
<footer class="md-footer">
- <div class="md-footer-nav">
- <nav class="md-footer-nav__inner md-grid">
+ <nav class="md-footer__inner md-grid" aria-label="Footer">
+
- <a href="ft2-properties.html" title="Driver properties" class="md-flex md-footer-nav__link md-footer-nav__link--prev" rel="prev">
- <div class="md-flex__cell md-flex__cell--shrink">
- <i class="md-icon md-icon--arrow-back md-footer-nav__button"></i>
- </div>
- <div class="md-flex__cell md-flex__cell--stretch md-footer-nav__title">
- <span class="md-flex__ellipsis">
- <span class="md-footer-nav__direction">
- Previous
- </span>
- Driver properties
+ <a href="ft2-properties.html" class="md-footer__link md-footer__link--prev" aria-label="Previous: Driver properties" rel="prev">
+ <div class="md-footer__button md-icon">
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M20 11v2H8l5.5 5.5-1.42 1.42L4.16 12l7.92-7.92L13.5 5.5 8 11h12z"/></svg>
+ </div>
+ <div class="md-footer__title">
+ <div class="md-ellipsis">
+ <span class="md-footer__direction">
+ Previous
</span>
+ Driver properties
</div>
- </a>
-
+ </div>
+ </a>
+
+
- <a href="ft2-lcd_rendering.html" title="Subpixel Rendering" class="md-flex md-footer-nav__link md-footer-nav__link--next" rel="next">
- <div class="md-flex__cell md-flex__cell--stretch md-footer-nav__title">
- <span class="md-flex__ellipsis">
- <span class="md-footer-nav__direction">
- Next
- </span>
- Subpixel Rendering
+ <a href="ft2-lcd_rendering.html" class="md-footer__link md-footer__link--next" aria-label="Next: Subpixel Rendering" rel="next">
+ <div class="md-footer__title">
+ <div class="md-ellipsis">
+ <span class="md-footer__direction">
+ Next
</span>
+ Subpixel Rendering
</div>
- <div class="md-flex__cell md-flex__cell--shrink">
- <i class="md-icon md-icon--arrow-forward md-footer-nav__button"></i>
- </div>
- </a>
-
- </nav>
- </div>
+ </div>
+ <div class="md-footer__button md-icon">
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M4 11v2h12l-5.5 5.5 1.42 1.42L19.84 12l-7.92-7.92L10.5 5.5 16 11H4z"/></svg>
+ </div>
+ </a>
+
+ </nav>
<div class="md-footer-meta md-typeset">
<div class="md-footer-meta__inner md-grid">
<div class="md-footer-copyright">
<div class="md-footer-copyright__highlight">
- Copyright 2020 <a href = "https://www.freetype.org/license.html">The FreeType Project</a>.
+ Copyright 2021 <a href = "https://www.freetype.org/license.html">The FreeType Project</a>.
</div>
- powered by
- <a href="https://www.mkdocs.org" target="_blank" rel="noopener">MkDocs</a>
- and
+ Made with
<a href="https://squidfunk.github.io/mkdocs-material/" target="_blank" rel="noopener">
- Material for MkDocs</a>
+ Material for MkDocs
+ </a>
+
</div>
</div>
@@ -1322,10 +1396,13 @@
</footer>
</div>
+ <div class="md-dialog" data-md-component="dialog">
+ <div class="md-dialog__inner md-typeset"></div>
+ </div>
+ <script id="__config" type="application/json">{"base": ".", "features": [], "translations": {"clipboard.copy": "Copy to clipboard", "clipboard.copied": "Copied to clipboard", "search.config.lang": "en", "search.config.pipeline": "trimmer, stopWordFilter", "search.config.separator": "[\\s\\-]+", "search.placeholder": "Search", "search.result.placeholder": "Type to start searching", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.term.missing": "Missing", "select.version.title": "Select version"}, "search": "assets/javascripts/workers/search.477d984a.min.js", "version": null}</script>
- <script src="assets/javascripts/application.c33a9706.js"></script>
-
- <script>app.initialize({version:"1.1",url:{base:"."}})</script>
+
+ <script src="assets/javascripts/bundle.82b56eb2.min.js"></script>
<script src="javascripts/extra.js"></script>
diff --git a/freetype/docs/reference/ft2-pcf_driver.html b/freetype/docs/reference/ft2-pcf_driver.html
index dc6d71cb..4a208d17 100644
--- a/freetype/docs/reference/ft2-pcf_driver.html
+++ b/freetype/docs/reference/ft2-pcf_driver.html
@@ -1,145 +1,136 @@
-
-
-
<!doctype html>
<html lang="en" class="no-js">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
- <meta http-equiv="x-ua-compatible" content="ie=edge">
- <meta name="description" content="API Reference Documentation for FreeType-2.10.4">
+ <meta name="description" content="API Reference Documentation for FreeType-2.11.1">
<meta name="author" content="FreeType Contributors">
- <meta name="lang:clipboard.copy" content="Copy to clipboard">
-
- <meta name="lang:clipboard.copied" content="Copied to clipboard">
-
- <meta name="lang:search.language" content="en">
-
- <meta name="lang:search.pipeline.stopwords" content="True">
-
- <meta name="lang:search.pipeline.trimmer" content="True">
-
- <meta name="lang:search.result.none" content="No matching documents">
-
- <meta name="lang:search.result.one" content="1 matching document">
-
- <meta name="lang:search.result.other" content="# matching documents">
-
- <meta name="lang:search.tokenizer" content="[\s\-]+">
-
- <link rel="shortcut icon" href="images/favico.ico">
- <meta name="generator" content="mkdocs-1.1, mkdocs-material-4.6.3">
+ <link rel="icon" href="images/favico.ico">
+ <meta name="generator" content="mkdocs-1.2.1, mkdocs-material-7.1.9">
- <title>The PCF driver - FreeType-2.10.4 API Reference</title>
+ <title>The PCF driver - FreeType-2.11.1 API Reference</title>
- <link rel="stylesheet" href="assets/stylesheets/application.adb8469c.css">
-
- <link rel="stylesheet" href="assets/stylesheets/application-palette.a8b3c06d.css">
-
+ <link rel="stylesheet" href="assets/stylesheets/main.ca7ac06f.min.css">
+ <link rel="stylesheet" href="assets/stylesheets/palette.f1a3b89f.min.css">
+
+
+
+ <meta name="theme-color" content="#4cae4f">
- <meta name="theme-color" content="#4caf50">
- <script src="assets/javascripts/modernizr.86422ebf.js"></script>
-
- <link href="https://fonts.gstatic.com" rel="preconnect" crossorigin>
+
+ <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Noto+Serif:300,400,400i,700%7CRoboto+Mono&display=fallback">
- <style>body,input{font-family:"Noto Serif","Helvetica Neue",Helvetica,Arial,sans-serif}code,kbd,pre{font-family:"Roboto Mono","Courier New",Courier,monospace}</style>
+ <style>:root{--md-text-font-family:"Noto Serif";--md-code-font-family:"Roboto Mono"}</style>
- <link rel="stylesheet" href="assets/fonts/material-icons.css">
<link rel="stylesheet" href="stylesheets/extra.css">
+
+
</head>
+
+
+
+
- <body dir="ltr" data-md-color-primary="green" data-md-color-accent="green">
+ <body dir="ltr" data-md-color-scheme="" data-md-color-primary="green" data-md-color-accent="green">
- <svg class="md-svg">
- <defs>
-
-
- </defs>
- </svg>
- <input class="md-toggle" data-md-toggle="drawer" type="checkbox" id="__drawer" autocomplete="off">
- <input class="md-toggle" data-md-toggle="search" type="checkbox" id="__search" autocomplete="off">
- <label class="md-overlay" data-md-component="overlay" for="__drawer"></label>
- <a href="#the-pcf-driver" tabindex="0" class="md-skip">
- Skip to content
- </a>
+ <script>function __prefix(e){return new URL(".",location).pathname+"."+e}function __get(e,t=localStorage){return JSON.parse(t.getItem(__prefix(e)))}</script>
+ <input class="md-toggle" data-md-toggle="drawer" type="checkbox" id="__drawer" autocomplete="off">
+ <input class="md-toggle" data-md-toggle="search" type="checkbox" id="__search" autocomplete="off">
+ <label class="md-overlay" for="__drawer"></label>
+ <div data-md-component="skip">
+
+
+ <a href="#the-pcf-driver" class="md-skip">
+ Skip to content
+ </a>
+
+ </div>
+ <div data-md-component="announce">
+
+ </div>
<header class="md-header" data-md-component="header">
- <nav class="md-header-nav md-grid">
- <div class="md-flex">
- <div class="md-flex__cell md-flex__cell--shrink">
- <a href="." title="FreeType-2.10.4 API Reference" aria-label="FreeType-2.10.4 API Reference" class="md-header-nav__button md-logo">
-
- <img alt="logo" src="images/favico.ico" width="24" height="24">
-
- </a>
- </div>
- <div class="md-flex__cell md-flex__cell--shrink">
- <label class="md-icon md-icon--menu md-header-nav__button" for="__drawer"></label>
- </div>
- <div class="md-flex__cell md-flex__cell--stretch">
- <div class="md-flex__ellipsis md-header-nav__title" data-md-component="title">
-
- <span class="md-header-nav__topic">
- FreeType-2.10.4 API Reference
- </span>
- <span class="md-header-nav__topic">
-
- The PCF driver
-
- </span>
-
+ <nav class="md-header__inner md-grid" aria-label="Header">
+ <a href="index.html" title="FreeType-2.11.1 API Reference" class="md-header__button md-logo" aria-label="FreeType-2.11.1 API Reference" data-md-component="logo">
+
+ <img src="images/favico.ico" alt="logo">
+
+ </a>
+ <label class="md-header__button md-icon" for="__drawer">
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M3 6h18v2H3V6m0 5h18v2H3v-2m0 5h18v2H3v-2z"/></svg>
+ </label>
+ <div class="md-header__title" data-md-component="header-title">
+ <div class="md-header__ellipsis">
+ <div class="md-header__topic">
+ <span class="md-ellipsis">
+ FreeType-2.11.1 API Reference
+ </span>
+ </div>
+ <div class="md-header__topic" data-md-component="header-topic">
+ <span class="md-ellipsis">
+
+ The PCF driver
+
+ </span>
</div>
</div>
- <div class="md-flex__cell md-flex__cell--shrink">
-
- <label class="md-icon md-icon--search md-header-nav__button" for="__search"></label>
-
+ </div>
+
+
+
+ <label class="md-header__button md-icon" for="__search">
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M9.5 3A6.5 6.5 0 0 1 16 9.5c0 1.61-.59 3.09-1.56 4.23l.27.27h.79l5 5-1.5 1.5-5-5v-.79l-.27-.27A6.516 6.516 0 0 1 9.5 16 6.5 6.5 0 0 1 3 9.5 6.5 6.5 0 0 1 9.5 3m0 2C7 5 5 7 5 9.5S7 14 9.5 14 14 12 14 9.5 12 5 9.5 5z"/></svg>
+ </label>
+
<div class="md-search" data-md-component="search" role="dialog">
<label class="md-search__overlay" for="__search"></label>
<div class="md-search__inner" role="search">
<form class="md-search__form" name="search">
- <input type="text" class="md-search__input" aria-label="search" name="query" placeholder="Search" autocapitalize="off" autocorrect="off" autocomplete="off" spellcheck="false" data-md-component="query" data-md-state="active">
- <label class="md-icon md-search__icon" for="__search"></label>
- <button type="reset" class="md-icon md-search__icon" data-md-component="reset" tabindex="-1">
- &#xE5CD;
+ <input type="text" class="md-search__input" name="query" aria-label="Search" placeholder="Search" autocapitalize="off" autocorrect="off" autocomplete="off" spellcheck="false" data-md-component="search-query" data-md-state="active" required>
+ <label class="md-search__icon md-icon" for="__search">
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M9.5 3A6.5 6.5 0 0 1 16 9.5c0 1.61-.59 3.09-1.56 4.23l.27.27h.79l5 5-1.5 1.5-5-5v-.79l-.27-.27A6.516 6.516 0 0 1 9.5 16 6.5 6.5 0 0 1 3 9.5 6.5 6.5 0 0 1 9.5 3m0 2C7 5 5 7 5 9.5S7 14 9.5 14 14 12 14 9.5 12 5 9.5 5z"/></svg>
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M20 11v2H8l5.5 5.5-1.42 1.42L4.16 12l7.92-7.92L13.5 5.5 8 11h12z"/></svg>
+ </label>
+ <button type="reset" class="md-search__icon md-icon" aria-label="Clear" tabindex="-1">
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z"/></svg>
</button>
</form>
<div class="md-search__output">
<div class="md-search__scrollwrap" data-md-scrollfix>
- <div class="md-search-result" data-md-component="result">
+ <div class="md-search-result" data-md-component="search-result">
<div class="md-search-result__meta">
- Type to start searching
+ Initializing search
</div>
<ol class="md-search-result__list"></ol>
</div>
@@ -147,33 +138,35 @@
</div>
</div>
</div>
-
- </div>
-
- </div>
+
+
</nav>
</header>
- <div class="md-container">
+ <div class="md-container" data-md-component="container">
-
+
- <main class="md-main" role="main">
- <div class="md-main__inner md-grid" data-md-component="container">
+ <main class="md-main" data-md-component="main">
+ <div class="md-main__inner md-grid">
- <div class="md-sidebar md-sidebar--primary" data-md-component="navigation">
+
+ <div class="md-sidebar md-sidebar--primary" data-md-component="sidebar" data-md-type="navigation" >
<div class="md-sidebar__scrollwrap">
<div class="md-sidebar__inner">
- <nav class="md-nav md-nav--primary" data-md-level="0">
- <label class="md-nav__title md-nav__title--site" for="__drawer">
- <a href="." title="FreeType-2.10.4 API Reference" class="md-nav__button md-logo">
-
- <img alt="logo" src="images/favico.ico" width="48" height="48">
+
+
+
+<nav class="md-nav md-nav--primary" aria-label="Navigation" data-md-level="0">
+ <label class="md-nav__title" for="__drawer">
+ <a href="index.html" title="FreeType-2.11.1 API Reference" class="md-nav__button md-logo" aria-label="FreeType-2.11.1 API Reference" data-md-component="logo">
+ <img src="images/favico.ico" alt="logo">
+
</a>
- FreeType-2.10.4 API Reference
+ FreeType-2.11.1 API Reference
</label>
<ul class="md-nav__list" data-md-scrollfix>
@@ -182,360 +175,396 @@
-
- <li class="md-nav__item">
- <a href="index.html" title="TOC" class="md-nav__link">
- TOC
- </a>
- </li>
+
+
+
+ <li class="md-nav__item">
+ <a href="index.html" class="md-nav__link">
+ TOC
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-index.html" title="Index" class="md-nav__link">
- Index
- </a>
- </li>
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-index.html" class="md-nav__link">
+ Index
+ </a>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-3" type="checkbox" id="nav-3">
+
+
+
- <label class="md-nav__link" for="nav-3">
- General Remarks
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-3">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_3" type="checkbox" id="__nav_3" >
+
+ <label class="md-nav__link" for="__nav_3">
General Remarks
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
+ <nav class="md-nav" aria-label="General Remarks" data-md-level="1">
+ <label class="md-nav__title" for="__nav_3">
+ <span class="md-nav__icon md-icon"></span>
+ General Remarks
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-header_inclusion.html" title="FreeType's header inclusion scheme" class="md-nav__link">
- FreeType's header inclusion scheme
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-preamble.html" class="md-nav__link">
+ Preamble
+ </a>
+ </li>
+
-
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-header_inclusion.html" class="md-nav__link">
+ FreeType's header inclusion scheme
+ </a>
+ </li>
+
- <li class="md-nav__item">
- <a href="ft2-user_allocation.html" title="User allocation" class="md-nav__link">
- User allocation
- </a>
- </li>
+
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-user_allocation.html" class="md-nav__link">
+ User allocation
+ </a>
+ </li>
+
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-4" type="checkbox" id="nav-4">
+
+
+
- <label class="md-nav__link" for="nav-4">
- Core API
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-4">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_4" type="checkbox" id="__nav_4" >
+
+ <label class="md-nav__link" for="__nav_4">
Core API
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
-
-
+ <nav class="md-nav" aria-label="Core API" data-md-level="1">
+ <label class="md-nav__title" for="__nav_4">
+ <span class="md-nav__icon md-icon"></span>
+ Core API
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-version.html" class="md-nav__link">
+ FreeType Version
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-version.html" title="FreeType Version" class="md-nav__link">
- FreeType Version
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-basic_types.html" title="Basic Data Types" class="md-nav__link">
- Basic Data Types
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-basic_types.html" class="md-nav__link">
+ Basic Data Types
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-base_interface.html" class="md-nav__link">
+ Base Interface
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-base_interface.html" title="Base Interface" class="md-nav__link">
- Base Interface
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-glyph_variants.html" title="Unicode Variation Sequences" class="md-nav__link">
- Unicode Variation Sequences
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-glyph_variants.html" class="md-nav__link">
+ Unicode Variation Sequences
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-color_management.html" title="Glyph Color Management" class="md-nav__link">
- Glyph Color Management
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-color_management.html" class="md-nav__link">
+ Glyph Color Management
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-layer_management.html" title="Glyph Layer Management" class="md-nav__link">
- Glyph Layer Management
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-layer_management.html" class="md-nav__link">
+ Glyph Layer Management
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-glyph_management.html" title="Glyph Management" class="md-nav__link">
- Glyph Management
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-glyph_management.html" class="md-nav__link">
+ Glyph Management
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-mac_specific.html" title="Mac Specific Interface" class="md-nav__link">
- Mac Specific Interface
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-mac_specific.html" class="md-nav__link">
+ Mac Specific Interface
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-sizes_management.html" title="Size Management" class="md-nav__link">
- Size Management
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-sizes_management.html" class="md-nav__link">
+ Size Management
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-header_file_macros.html" title="Header File Macros" class="md-nav__link">
- Header File Macros
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-header_file_macros.html" class="md-nav__link">
+ Header File Macros
+ </a>
+ </li>
+
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-5" type="checkbox" id="nav-5">
+
+
+
- <label class="md-nav__link" for="nav-5">
- Format-Specific API
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-5">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_5" type="checkbox" id="__nav_5" >
+
+ <label class="md-nav__link" for="__nav_5">
Format-Specific API
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
+ <nav class="md-nav" aria-label="Format-Specific API" data-md-level="1">
+ <label class="md-nav__title" for="__nav_5">
+ <span class="md-nav__icon md-icon"></span>
+ Format-Specific API
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-multiple_masters.html" title="Multiple Masters" class="md-nav__link">
- Multiple Masters
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-multiple_masters.html" class="md-nav__link">
+ Multiple Masters
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-truetype_tables.html" title="TrueType Tables" class="md-nav__link">
- TrueType Tables
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-truetype_tables.html" class="md-nav__link">
+ TrueType Tables
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-type1_tables.html" title="Type 1 Tables" class="md-nav__link">
- Type 1 Tables
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-type1_tables.html" class="md-nav__link">
+ Type 1 Tables
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-sfnt_names.html" title="SFNT Names" class="md-nav__link">
- SFNT Names
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-sfnt_names.html" class="md-nav__link">
+ SFNT Names
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-bdf_fonts.html" class="md-nav__link">
+ BDF and PCF Files
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-bdf_fonts.html" title="BDF and PCF Files" class="md-nav__link">
- BDF and PCF Files
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-cid_fonts.html" title="CID Fonts" class="md-nav__link">
- CID Fonts
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-cid_fonts.html" class="md-nav__link">
+ CID Fonts
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-pfr_fonts.html" class="md-nav__link">
+ PFR Fonts
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-pfr_fonts.html" title="PFR Fonts" class="md-nav__link">
- PFR Fonts
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-winfnt_fonts.html" title="Window FNT Files" class="md-nav__link">
- Window FNT Files
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-winfnt_fonts.html" class="md-nav__link">
+ Window FNT Files
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-font_formats.html" title="Font Formats" class="md-nav__link">
- Font Formats
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-font_formats.html" class="md-nav__link">
+ Font Formats
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-gasp_table.html" title="Gasp Table" class="md-nav__link">
- Gasp Table
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-gasp_table.html" class="md-nav__link">
+ Gasp Table
+ </a>
+ </li>
+
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
@@ -543,101 +572,111 @@
-
-
- <li class="md-nav__item md-nav__item--active md-nav__item--nested">
+
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-6" type="checkbox" id="nav-6" checked>
+
+
- <label class="md-nav__link" for="nav-6">
- Controlling FreeType Modules
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-6">
+ <li class="md-nav__item md-nav__item--active md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_6" type="checkbox" id="__nav_6" checked>
+
+ <label class="md-nav__link" for="__nav_6">
Controlling FreeType Modules
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
+ <nav class="md-nav" aria-label="Controlling FreeType Modules" data-md-level="1">
+ <label class="md-nav__title" for="__nav_6">
+ <span class="md-nav__icon md-icon"></span>
+ Controlling FreeType Modules
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-auto_hinter.html" title="The auto-hinter" class="md-nav__link">
- The auto-hinter
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-auto_hinter.html" class="md-nav__link">
+ The auto-hinter
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-cff_driver.html" title="The CFF driver" class="md-nav__link">
- The CFF driver
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-cff_driver.html" class="md-nav__link">
+ The CFF driver
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-t1_cid_driver.html" title="The Type 1 and CID drivers" class="md-nav__link">
- The Type 1 and CID drivers
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-t1_cid_driver.html" class="md-nav__link">
+ The Type 1 and CID drivers
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-tt_driver.html" title="The TrueType driver" class="md-nav__link">
- The TrueType driver
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-tt_driver.html" class="md-nav__link">
+ The TrueType driver
+ </a>
+ </li>
+
-
-
-
-
+
+
-
-
- <li class="md-nav__item md-nav__item--active">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="toc" type="checkbox" id="__toc">
+
+
+ <li class="md-nav__item md-nav__item--active">
-
-
- <label class="md-nav__link md-nav__link--active" for="__toc">
+ <input class="md-nav__toggle md-toggle" data-md-toggle="toc" type="checkbox" id="__toc">
+
+
+
+
+
+ <label class="md-nav__link md-nav__link--active" for="__toc">
+ The PCF driver
+ <span class="md-nav__icon md-icon"></span>
+ </label>
+
+ <a href="ft2-pcf_driver.html" class="md-nav__link md-nav__link--active">
The PCF driver
- </label>
-
- <a href="ft2-pcf_driver.html" title="The PCF driver" class="md-nav__link md-nav__link--active">
- The PCF driver
- </a>
-
+ </a>
-<nav class="md-nav md-nav--secondary">
+
+<nav class="md-nav md-nav--secondary" aria-label="Table of contents">
+
- <label class="md-nav__title" for="__toc">Table of contents</label>
- <ul class="md-nav__list" data-md-scrollfix>
+ <label class="md-nav__title" for="__toc">
+ <span class="md-nav__icon md-icon"></span>
+ Table of contents
+ </label>
+ <ul class="md-nav__list" data-md-component="toc" data-md-scrollfix>
<li class="md-nav__item">
<a href="#synopsis" class="md-nav__link">
@@ -646,380 +685,414 @@
</li>
-
-
-
-
</ul>
</nav>
-
- </li>
+
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-properties.html" title="Driver properties" class="md-nav__link">
- Driver properties
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-properties.html" class="md-nav__link">
+ Driver properties
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-parameter_tags.html" title="Parameter Tags" class="md-nav__link">
- Parameter Tags
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-parameter_tags.html" class="md-nav__link">
+ Parameter Tags
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-lcd_rendering.html" title="Subpixel Rendering" class="md-nav__link">
- Subpixel Rendering
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-lcd_rendering.html" class="md-nav__link">
+ Subpixel Rendering
+ </a>
+ </li>
+
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-7" type="checkbox" id="nav-7">
+
+
+
- <label class="md-nav__link" for="nav-7">
- Cache Sub-System
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-7">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_7" type="checkbox" id="__nav_7" >
+
+ <label class="md-nav__link" for="__nav_7">
Cache Sub-System
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
-
+ <nav class="md-nav" aria-label="Cache Sub-System" data-md-level="1">
+ <label class="md-nav__title" for="__nav_7">
+ <span class="md-nav__icon md-icon"></span>
+ Cache Sub-System
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
-
-
-
- <li class="md-nav__item">
- <a href="ft2-cache_subsystem.html" title="Cache Sub-System" class="md-nav__link">
- Cache Sub-System
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-cache_subsystem.html" class="md-nav__link">
+ Cache Sub-System
+ </a>
+ </li>
+
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-8" type="checkbox" id="nav-8">
+
+
+
- <label class="md-nav__link" for="nav-8">
- Support API
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-8">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_8" type="checkbox" id="__nav_8" >
+
+ <label class="md-nav__link" for="__nav_8">
Support API
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
-
-
+ <nav class="md-nav" aria-label="Support API" data-md-level="1">
+ <label class="md-nav__title" for="__nav_8">
+ <span class="md-nav__icon md-icon"></span>
+ Support API
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-computations.html" class="md-nav__link">
+ Computations
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-computations.html" title="Computations" class="md-nav__link">
- Computations
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-list_processing.html" title="List Processing" class="md-nav__link">
- List Processing
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-list_processing.html" class="md-nav__link">
+ List Processing
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-outline_processing.html" title="Outline Processing" class="md-nav__link">
- Outline Processing
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-outline_processing.html" class="md-nav__link">
+ Outline Processing
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-quick_advance.html" title="Quick retrieval of advance values" class="md-nav__link">
- Quick retrieval of advance values
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-quick_advance.html" class="md-nav__link">
+ Quick retrieval of advance values
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-bitmap_handling.html" title="Bitmap Handling" class="md-nav__link">
- Bitmap Handling
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-bitmap_handling.html" class="md-nav__link">
+ Bitmap Handling
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-raster.html" title="Scanline Converter" class="md-nav__link">
- Scanline Converter
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-raster.html" class="md-nav__link">
+ Scanline Converter
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-glyph_stroker.html" title="Glyph Stroker" class="md-nav__link">
- Glyph Stroker
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-glyph_stroker.html" class="md-nav__link">
+ Glyph Stroker
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-system_interface.html" class="md-nav__link">
+ System Interface
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-system_interface.html" title="System Interface" class="md-nav__link">
- System Interface
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-module_management.html" title="Module Management" class="md-nav__link">
- Module Management
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-module_management.html" class="md-nav__link">
+ Module Management
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-gzip.html" class="md-nav__link">
+ GZIP Streams
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-gzip.html" title="GZIP Streams" class="md-nav__link">
- GZIP Streams
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-lzw.html" title="LZW Streams" class="md-nav__link">
- LZW Streams
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-lzw.html" class="md-nav__link">
+ LZW Streams
+ </a>
+ </li>
+
-
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-bzip2.html" class="md-nav__link">
+ BZIP2 Streams
+ </a>
+ </li>
+
- <li class="md-nav__item">
- <a href="ft2-bzip2.html" title="BZIP2 Streams" class="md-nav__link">
- BZIP2 Streams
- </a>
- </li>
+
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-debugging_apis.html" class="md-nav__link">
+ External Debugging APIs
+ </a>
+ </li>
+
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-9" type="checkbox" id="nav-9">
+
+
+
- <label class="md-nav__link" for="nav-9">
- Error Codes
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-9">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_9" type="checkbox" id="__nav_9" >
+
+ <label class="md-nav__link" for="__nav_9">
Error Codes
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
-
-
+ <nav class="md-nav" aria-label="Error Codes" data-md-level="1">
+ <label class="md-nav__title" for="__nav_9">
+ <span class="md-nav__icon md-icon"></span>
+ Error Codes
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-error_enumerations.html" class="md-nav__link">
+ Error Enumerations
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-error_enumerations.html" title="Error Enumerations" class="md-nav__link">
- Error Enumerations
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-error_code_values.html" title="Error Code Values" class="md-nav__link">
- Error Code Values
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-error_code_values.html" class="md-nav__link">
+ Error Code Values
+ </a>
+ </li>
+
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-10" type="checkbox" id="nav-10">
+
+
+
- <label class="md-nav__link" for="nav-10">
- Miscellaneous
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-10">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_10" type="checkbox" id="__nav_10" >
+
+ <label class="md-nav__link" for="__nav_10">
Miscellaneous
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
+ <nav class="md-nav" aria-label="Miscellaneous" data-md-level="1">
+ <label class="md-nav__title" for="__nav_10">
+ <span class="md-nav__icon md-icon"></span>
+ Miscellaneous
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-gx_validation.html" title="TrueTypeGX/AAT Validation" class="md-nav__link">
- TrueTypeGX/AAT Validation
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-gx_validation.html" class="md-nav__link">
+ TrueTypeGX/AAT Validation
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-incremental.html" class="md-nav__link">
+ Incremental Loading
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-incremental.html" title="Incremental Loading" class="md-nav__link">
- Incremental Loading
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-truetype_engine.html" title="The TrueType Engine" class="md-nav__link">
- The TrueType Engine
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-truetype_engine.html" class="md-nav__link">
+ The TrueType Engine
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-ot_validation.html" title="OpenType Validation" class="md-nav__link">
- OpenType Validation
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-ot_validation.html" class="md-nav__link">
+ OpenType Validation
+ </a>
+ </li>
+
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
</ul>
@@ -1029,18 +1102,23 @@
</div>
- <div class="md-sidebar md-sidebar--secondary" data-md-component="toc">
+
+ <div class="md-sidebar md-sidebar--secondary" data-md-component="sidebar" data-md-type="toc" >
<div class="md-sidebar__scrollwrap">
<div class="md-sidebar__inner">
-<nav class="md-nav md-nav--secondary">
+<nav class="md-nav md-nav--secondary" aria-label="Table of contents">
+
- <label class="md-nav__title" for="__toc">Table of contents</label>
- <ul class="md-nav__list" data-md-scrollfix>
+ <label class="md-nav__title" for="__toc">
+ <span class="md-nav__icon md-icon"></span>
+ Table of contents
+ </label>
+ <ul class="md-nav__list" data-md-component="toc" data-md-scrollfix>
<li class="md-nav__item">
<a href="#synopsis" class="md-nav__link">
@@ -1049,10 +1127,6 @@
</li>
-
-
-
-
</ul>
</nav>
@@ -1061,7 +1135,7 @@
</div>
- <div class="md-content">
+ <div class="md-content" data-md-component="content">
<article class="md-content__inner md-typeset">
@@ -1073,9 +1147,6 @@
<p>While FreeType's PCF driver doesn't expose API functions by itself, it is possible to control its behaviour with <code><a href="ft2-module_management.html#ft_property_set">FT_Property_Set</a></code> and <code><a href="ft2-module_management.html#ft_property_get">FT_Property_Get</a></code>. Right now, there is a single property <code><a href="ft2-properties.html#no-long-family-names">no-long-family-names</a></code> available if FreeType is compiled with PCF_CONFIG_OPTION_LONG_FAMILY_NAMES.</p>
<p>The PCF driver's module name is &lsquo;pcf&rsquo;.</p>
-
-
-
@@ -1085,59 +1156,60 @@
</article>
</div>
</div>
+
</main>
<footer class="md-footer">
- <div class="md-footer-nav">
- <nav class="md-footer-nav__inner md-grid">
+ <nav class="md-footer__inner md-grid" aria-label="Footer">
+
- <a href="ft2-tt_driver.html" title="The TrueType driver" class="md-flex md-footer-nav__link md-footer-nav__link--prev" rel="prev">
- <div class="md-flex__cell md-flex__cell--shrink">
- <i class="md-icon md-icon--arrow-back md-footer-nav__button"></i>
- </div>
- <div class="md-flex__cell md-flex__cell--stretch md-footer-nav__title">
- <span class="md-flex__ellipsis">
- <span class="md-footer-nav__direction">
- Previous
- </span>
- The TrueType driver
+ <a href="ft2-tt_driver.html" class="md-footer__link md-footer__link--prev" aria-label="Previous: The TrueType driver" rel="prev">
+ <div class="md-footer__button md-icon">
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M20 11v2H8l5.5 5.5-1.42 1.42L4.16 12l7.92-7.92L13.5 5.5 8 11h12z"/></svg>
+ </div>
+ <div class="md-footer__title">
+ <div class="md-ellipsis">
+ <span class="md-footer__direction">
+ Previous
</span>
+ The TrueType driver
</div>
- </a>
-
+ </div>
+ </a>
+
+
- <a href="ft2-properties.html" title="Driver properties" class="md-flex md-footer-nav__link md-footer-nav__link--next" rel="next">
- <div class="md-flex__cell md-flex__cell--stretch md-footer-nav__title">
- <span class="md-flex__ellipsis">
- <span class="md-footer-nav__direction">
- Next
- </span>
- Driver properties
+ <a href="ft2-properties.html" class="md-footer__link md-footer__link--next" aria-label="Next: Driver properties" rel="next">
+ <div class="md-footer__title">
+ <div class="md-ellipsis">
+ <span class="md-footer__direction">
+ Next
</span>
+ Driver properties
</div>
- <div class="md-flex__cell md-flex__cell--shrink">
- <i class="md-icon md-icon--arrow-forward md-footer-nav__button"></i>
- </div>
- </a>
-
- </nav>
- </div>
+ </div>
+ <div class="md-footer__button md-icon">
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M4 11v2h12l-5.5 5.5 1.42 1.42L19.84 12l-7.92-7.92L10.5 5.5 16 11H4z"/></svg>
+ </div>
+ </a>
+
+ </nav>
<div class="md-footer-meta md-typeset">
<div class="md-footer-meta__inner md-grid">
<div class="md-footer-copyright">
<div class="md-footer-copyright__highlight">
- Copyright 2020 <a href = "https://www.freetype.org/license.html">The FreeType Project</a>.
+ Copyright 2021 <a href = "https://www.freetype.org/license.html">The FreeType Project</a>.
</div>
- powered by
- <a href="https://www.mkdocs.org" target="_blank" rel="noopener">MkDocs</a>
- and
+ Made with
<a href="https://squidfunk.github.io/mkdocs-material/" target="_blank" rel="noopener">
- Material for MkDocs</a>
+ Material for MkDocs
+ </a>
+
</div>
</div>
@@ -1145,10 +1217,13 @@
</footer>
</div>
+ <div class="md-dialog" data-md-component="dialog">
+ <div class="md-dialog__inner md-typeset"></div>
+ </div>
+ <script id="__config" type="application/json">{"base": ".", "features": [], "translations": {"clipboard.copy": "Copy to clipboard", "clipboard.copied": "Copied to clipboard", "search.config.lang": "en", "search.config.pipeline": "trimmer, stopWordFilter", "search.config.separator": "[\\s\\-]+", "search.placeholder": "Search", "search.result.placeholder": "Type to start searching", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.term.missing": "Missing", "select.version.title": "Select version"}, "search": "assets/javascripts/workers/search.477d984a.min.js", "version": null}</script>
- <script src="assets/javascripts/application.c33a9706.js"></script>
-
- <script>app.initialize({version:"1.1",url:{base:"."}})</script>
+
+ <script src="assets/javascripts/bundle.82b56eb2.min.js"></script>
<script src="javascripts/extra.js"></script>
diff --git a/freetype/docs/reference/ft2-pfr_fonts.html b/freetype/docs/reference/ft2-pfr_fonts.html
index bd9d14c6..65d60dee 100644
--- a/freetype/docs/reference/ft2-pfr_fonts.html
+++ b/freetype/docs/reference/ft2-pfr_fonts.html
@@ -1,145 +1,136 @@
-
-
-
<!doctype html>
<html lang="en" class="no-js">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
- <meta http-equiv="x-ua-compatible" content="ie=edge">
- <meta name="description" content="API Reference Documentation for FreeType-2.10.4">
+ <meta name="description" content="API Reference Documentation for FreeType-2.11.1">
<meta name="author" content="FreeType Contributors">
- <meta name="lang:clipboard.copy" content="Copy to clipboard">
-
- <meta name="lang:clipboard.copied" content="Copied to clipboard">
-
- <meta name="lang:search.language" content="en">
-
- <meta name="lang:search.pipeline.stopwords" content="True">
-
- <meta name="lang:search.pipeline.trimmer" content="True">
-
- <meta name="lang:search.result.none" content="No matching documents">
-
- <meta name="lang:search.result.one" content="1 matching document">
-
- <meta name="lang:search.result.other" content="# matching documents">
-
- <meta name="lang:search.tokenizer" content="[\s\-]+">
-
- <link rel="shortcut icon" href="images/favico.ico">
- <meta name="generator" content="mkdocs-1.1, mkdocs-material-4.6.3">
+ <link rel="icon" href="images/favico.ico">
+ <meta name="generator" content="mkdocs-1.2.1, mkdocs-material-7.1.9">
- <title>PFR Fonts - FreeType-2.10.4 API Reference</title>
+ <title>PFR Fonts - FreeType-2.11.1 API Reference</title>
- <link rel="stylesheet" href="assets/stylesheets/application.adb8469c.css">
-
- <link rel="stylesheet" href="assets/stylesheets/application-palette.a8b3c06d.css">
-
+ <link rel="stylesheet" href="assets/stylesheets/main.ca7ac06f.min.css">
+ <link rel="stylesheet" href="assets/stylesheets/palette.f1a3b89f.min.css">
+
+
+
+ <meta name="theme-color" content="#4cae4f">
- <meta name="theme-color" content="#4caf50">
- <script src="assets/javascripts/modernizr.86422ebf.js"></script>
-
- <link href="https://fonts.gstatic.com" rel="preconnect" crossorigin>
+
+ <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Noto+Serif:300,400,400i,700%7CRoboto+Mono&display=fallback">
- <style>body,input{font-family:"Noto Serif","Helvetica Neue",Helvetica,Arial,sans-serif}code,kbd,pre{font-family:"Roboto Mono","Courier New",Courier,monospace}</style>
+ <style>:root{--md-text-font-family:"Noto Serif";--md-code-font-family:"Roboto Mono"}</style>
- <link rel="stylesheet" href="assets/fonts/material-icons.css">
<link rel="stylesheet" href="stylesheets/extra.css">
+
+
</head>
+
+
+
+
- <body dir="ltr" data-md-color-primary="green" data-md-color-accent="green">
+ <body dir="ltr" data-md-color-scheme="" data-md-color-primary="green" data-md-color-accent="green">
- <svg class="md-svg">
- <defs>
-
-
- </defs>
- </svg>
- <input class="md-toggle" data-md-toggle="drawer" type="checkbox" id="__drawer" autocomplete="off">
- <input class="md-toggle" data-md-toggle="search" type="checkbox" id="__search" autocomplete="off">
- <label class="md-overlay" data-md-component="overlay" for="__drawer"></label>
- <a href="#pfr-fonts" tabindex="0" class="md-skip">
- Skip to content
- </a>
+ <script>function __prefix(e){return new URL(".",location).pathname+"."+e}function __get(e,t=localStorage){return JSON.parse(t.getItem(__prefix(e)))}</script>
+ <input class="md-toggle" data-md-toggle="drawer" type="checkbox" id="__drawer" autocomplete="off">
+ <input class="md-toggle" data-md-toggle="search" type="checkbox" id="__search" autocomplete="off">
+ <label class="md-overlay" for="__drawer"></label>
+ <div data-md-component="skip">
+
+
+ <a href="#pfr-fonts" class="md-skip">
+ Skip to content
+ </a>
+
+ </div>
+ <div data-md-component="announce">
+
+ </div>
<header class="md-header" data-md-component="header">
- <nav class="md-header-nav md-grid">
- <div class="md-flex">
- <div class="md-flex__cell md-flex__cell--shrink">
- <a href="." title="FreeType-2.10.4 API Reference" aria-label="FreeType-2.10.4 API Reference" class="md-header-nav__button md-logo">
-
- <img alt="logo" src="images/favico.ico" width="24" height="24">
-
- </a>
- </div>
- <div class="md-flex__cell md-flex__cell--shrink">
- <label class="md-icon md-icon--menu md-header-nav__button" for="__drawer"></label>
- </div>
- <div class="md-flex__cell md-flex__cell--stretch">
- <div class="md-flex__ellipsis md-header-nav__title" data-md-component="title">
-
- <span class="md-header-nav__topic">
- FreeType-2.10.4 API Reference
- </span>
- <span class="md-header-nav__topic">
-
- PFR Fonts
-
- </span>
-
+ <nav class="md-header__inner md-grid" aria-label="Header">
+ <a href="index.html" title="FreeType-2.11.1 API Reference" class="md-header__button md-logo" aria-label="FreeType-2.11.1 API Reference" data-md-component="logo">
+
+ <img src="images/favico.ico" alt="logo">
+
+ </a>
+ <label class="md-header__button md-icon" for="__drawer">
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M3 6h18v2H3V6m0 5h18v2H3v-2m0 5h18v2H3v-2z"/></svg>
+ </label>
+ <div class="md-header__title" data-md-component="header-title">
+ <div class="md-header__ellipsis">
+ <div class="md-header__topic">
+ <span class="md-ellipsis">
+ FreeType-2.11.1 API Reference
+ </span>
+ </div>
+ <div class="md-header__topic" data-md-component="header-topic">
+ <span class="md-ellipsis">
+
+ PFR Fonts
+
+ </span>
</div>
</div>
- <div class="md-flex__cell md-flex__cell--shrink">
-
- <label class="md-icon md-icon--search md-header-nav__button" for="__search"></label>
-
+ </div>
+
+
+
+ <label class="md-header__button md-icon" for="__search">
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M9.5 3A6.5 6.5 0 0 1 16 9.5c0 1.61-.59 3.09-1.56 4.23l.27.27h.79l5 5-1.5 1.5-5-5v-.79l-.27-.27A6.516 6.516 0 0 1 9.5 16 6.5 6.5 0 0 1 3 9.5 6.5 6.5 0 0 1 9.5 3m0 2C7 5 5 7 5 9.5S7 14 9.5 14 14 12 14 9.5 12 5 9.5 5z"/></svg>
+ </label>
+
<div class="md-search" data-md-component="search" role="dialog">
<label class="md-search__overlay" for="__search"></label>
<div class="md-search__inner" role="search">
<form class="md-search__form" name="search">
- <input type="text" class="md-search__input" aria-label="search" name="query" placeholder="Search" autocapitalize="off" autocorrect="off" autocomplete="off" spellcheck="false" data-md-component="query" data-md-state="active">
- <label class="md-icon md-search__icon" for="__search"></label>
- <button type="reset" class="md-icon md-search__icon" data-md-component="reset" tabindex="-1">
- &#xE5CD;
+ <input type="text" class="md-search__input" name="query" aria-label="Search" placeholder="Search" autocapitalize="off" autocorrect="off" autocomplete="off" spellcheck="false" data-md-component="search-query" data-md-state="active" required>
+ <label class="md-search__icon md-icon" for="__search">
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M9.5 3A6.5 6.5 0 0 1 16 9.5c0 1.61-.59 3.09-1.56 4.23l.27.27h.79l5 5-1.5 1.5-5-5v-.79l-.27-.27A6.516 6.516 0 0 1 9.5 16 6.5 6.5 0 0 1 3 9.5 6.5 6.5 0 0 1 9.5 3m0 2C7 5 5 7 5 9.5S7 14 9.5 14 14 12 14 9.5 12 5 9.5 5z"/></svg>
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M20 11v2H8l5.5 5.5-1.42 1.42L4.16 12l7.92-7.92L13.5 5.5 8 11h12z"/></svg>
+ </label>
+ <button type="reset" class="md-search__icon md-icon" aria-label="Clear" tabindex="-1">
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z"/></svg>
</button>
</form>
<div class="md-search__output">
<div class="md-search__scrollwrap" data-md-scrollfix>
- <div class="md-search-result" data-md-component="result">
+ <div class="md-search-result" data-md-component="search-result">
<div class="md-search-result__meta">
- Type to start searching
+ Initializing search
</div>
<ol class="md-search-result__list"></ol>
</div>
@@ -147,33 +138,35 @@
</div>
</div>
</div>
-
- </div>
-
- </div>
+
+
</nav>
</header>
- <div class="md-container">
+ <div class="md-container" data-md-component="container">
-
+
- <main class="md-main" role="main">
- <div class="md-main__inner md-grid" data-md-component="container">
+ <main class="md-main" data-md-component="main">
+ <div class="md-main__inner md-grid">
- <div class="md-sidebar md-sidebar--primary" data-md-component="navigation">
+
+ <div class="md-sidebar md-sidebar--primary" data-md-component="sidebar" data-md-type="navigation" >
<div class="md-sidebar__scrollwrap">
<div class="md-sidebar__inner">
- <nav class="md-nav md-nav--primary" data-md-level="0">
- <label class="md-nav__title md-nav__title--site" for="__drawer">
- <a href="." title="FreeType-2.10.4 API Reference" class="md-nav__button md-logo">
-
- <img alt="logo" src="images/favico.ico" width="48" height="48">
+
+
+
+<nav class="md-nav md-nav--primary" aria-label="Navigation" data-md-level="0">
+ <label class="md-nav__title" for="__drawer">
+ <a href="index.html" title="FreeType-2.11.1 API Reference" class="md-nav__button md-logo" aria-label="FreeType-2.11.1 API Reference" data-md-component="logo">
+ <img src="images/favico.ico" alt="logo">
+
</a>
- FreeType-2.10.4 API Reference
+ FreeType-2.11.1 API Reference
</label>
<ul class="md-nav__list" data-md-scrollfix>
@@ -182,216 +175,246 @@
-
- <li class="md-nav__item">
- <a href="index.html" title="TOC" class="md-nav__link">
- TOC
- </a>
- </li>
+
+
+
+ <li class="md-nav__item">
+ <a href="index.html" class="md-nav__link">
+ TOC
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-index.html" title="Index" class="md-nav__link">
- Index
- </a>
- </li>
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-index.html" class="md-nav__link">
+ Index
+ </a>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-3" type="checkbox" id="nav-3">
+
+
+
- <label class="md-nav__link" for="nav-3">
- General Remarks
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-3">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_3" type="checkbox" id="__nav_3" >
+
+ <label class="md-nav__link" for="__nav_3">
General Remarks
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
-
+ <nav class="md-nav" aria-label="General Remarks" data-md-level="1">
+ <label class="md-nav__title" for="__nav_3">
+ <span class="md-nav__icon md-icon"></span>
+ General Remarks
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
-
-
-
- <li class="md-nav__item">
- <a href="ft2-header_inclusion.html" title="FreeType's header inclusion scheme" class="md-nav__link">
- FreeType's header inclusion scheme
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-preamble.html" class="md-nav__link">
+ Preamble
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-header_inclusion.html" class="md-nav__link">
+ FreeType's header inclusion scheme
+ </a>
+ </li>
+
+
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-user_allocation.html" class="md-nav__link">
+ User allocation
+ </a>
+ </li>
+
- <li class="md-nav__item">
- <a href="ft2-user_allocation.html" title="User allocation" class="md-nav__link">
- User allocation
- </a>
- </li>
-
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-4" type="checkbox" id="nav-4">
+
+
+
- <label class="md-nav__link" for="nav-4">
- Core API
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-4">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_4" type="checkbox" id="__nav_4" >
+
+ <label class="md-nav__link" for="__nav_4">
Core API
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
-
+ <nav class="md-nav" aria-label="Core API" data-md-level="1">
+ <label class="md-nav__title" for="__nav_4">
+ <span class="md-nav__icon md-icon"></span>
+ Core API
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
-
-
-
- <li class="md-nav__item">
- <a href="ft2-version.html" title="FreeType Version" class="md-nav__link">
- FreeType Version
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-version.html" class="md-nav__link">
+ FreeType Version
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-basic_types.html" class="md-nav__link">
+ Basic Data Types
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-basic_types.html" title="Basic Data Types" class="md-nav__link">
- Basic Data Types
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-base_interface.html" title="Base Interface" class="md-nav__link">
- Base Interface
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-base_interface.html" class="md-nav__link">
+ Base Interface
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-glyph_variants.html" class="md-nav__link">
+ Unicode Variation Sequences
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-glyph_variants.html" title="Unicode Variation Sequences" class="md-nav__link">
- Unicode Variation Sequences
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-color_management.html" title="Glyph Color Management" class="md-nav__link">
- Glyph Color Management
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-color_management.html" class="md-nav__link">
+ Glyph Color Management
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-layer_management.html" class="md-nav__link">
+ Glyph Layer Management
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-layer_management.html" title="Glyph Layer Management" class="md-nav__link">
- Glyph Layer Management
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-glyph_management.html" title="Glyph Management" class="md-nav__link">
- Glyph Management
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-glyph_management.html" class="md-nav__link">
+ Glyph Management
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-mac_specific.html" title="Mac Specific Interface" class="md-nav__link">
- Mac Specific Interface
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-mac_specific.html" class="md-nav__link">
+ Mac Specific Interface
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-sizes_management.html" title="Size Management" class="md-nav__link">
- Size Management
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-sizes_management.html" class="md-nav__link">
+ Size Management
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-header_file_macros.html" class="md-nav__link">
+ Header File Macros
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-header_file_macros.html" title="Header File Macros" class="md-nav__link">
- Header File Macros
- </a>
- </li>
-
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
@@ -399,125 +422,135 @@
-
-
- <li class="md-nav__item md-nav__item--active md-nav__item--nested">
+
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-5" type="checkbox" id="nav-5" checked>
+
+
- <label class="md-nav__link" for="nav-5">
- Format-Specific API
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-5">
+ <li class="md-nav__item md-nav__item--active md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_5" type="checkbox" id="__nav_5" checked>
+
+ <label class="md-nav__link" for="__nav_5">
Format-Specific API
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
-
-
+ <nav class="md-nav" aria-label="Format-Specific API" data-md-level="1">
+ <label class="md-nav__title" for="__nav_5">
+ <span class="md-nav__icon md-icon"></span>
+ Format-Specific API
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-multiple_masters.html" class="md-nav__link">
+ Multiple Masters
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-multiple_masters.html" title="Multiple Masters" class="md-nav__link">
- Multiple Masters
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-truetype_tables.html" title="TrueType Tables" class="md-nav__link">
- TrueType Tables
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-truetype_tables.html" class="md-nav__link">
+ TrueType Tables
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-type1_tables.html" title="Type 1 Tables" class="md-nav__link">
- Type 1 Tables
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-type1_tables.html" class="md-nav__link">
+ Type 1 Tables
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-sfnt_names.html" title="SFNT Names" class="md-nav__link">
- SFNT Names
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-sfnt_names.html" class="md-nav__link">
+ SFNT Names
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-bdf_fonts.html" title="BDF and PCF Files" class="md-nav__link">
- BDF and PCF Files
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-bdf_fonts.html" class="md-nav__link">
+ BDF and PCF Files
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-cid_fonts.html" title="CID Fonts" class="md-nav__link">
- CID Fonts
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-cid_fonts.html" class="md-nav__link">
+ CID Fonts
+ </a>
+ </li>
+
-
-
-
-
+
+
-
-
- <li class="md-nav__item md-nav__item--active">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="toc" type="checkbox" id="__toc">
+
+
+ <li class="md-nav__item md-nav__item--active">
-
-
- <label class="md-nav__link md-nav__link--active" for="__toc">
+ <input class="md-nav__toggle md-toggle" data-md-toggle="toc" type="checkbox" id="__toc">
+
+
+
+
+
+ <label class="md-nav__link md-nav__link--active" for="__toc">
+ PFR Fonts
+ <span class="md-nav__icon md-icon"></span>
+ </label>
+
+ <a href="ft2-pfr_fonts.html" class="md-nav__link md-nav__link--active">
PFR Fonts
- </label>
-
- <a href="ft2-pfr_fonts.html" title="PFR Fonts" class="md-nav__link md-nav__link--active">
- PFR Fonts
- </a>
-
+ </a>
-<nav class="md-nav md-nav--secondary">
+
+<nav class="md-nav md-nav--secondary" aria-label="Table of contents">
+
- <label class="md-nav__title" for="__toc">Table of contents</label>
- <ul class="md-nav__list" data-md-scrollfix>
+ <label class="md-nav__title" for="__toc">
+ <span class="md-nav__icon md-icon"></span>
+ Table of contents
+ </label>
+ <ul class="md-nav__list" data-md-component="toc" data-md-scrollfix>
<li class="md-nav__item">
<a href="#synopsis" class="md-nav__link">
@@ -547,500 +580,540 @@
</li>
-
-
-
-
</ul>
</nav>
-
- </li>
+
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-winfnt_fonts.html" title="Window FNT Files" class="md-nav__link">
- Window FNT Files
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-winfnt_fonts.html" class="md-nav__link">
+ Window FNT Files
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-font_formats.html" title="Font Formats" class="md-nav__link">
- Font Formats
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-font_formats.html" class="md-nav__link">
+ Font Formats
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-gasp_table.html" title="Gasp Table" class="md-nav__link">
- Gasp Table
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-gasp_table.html" class="md-nav__link">
+ Gasp Table
+ </a>
+ </li>
+
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-6" type="checkbox" id="nav-6">
+
+
+
- <label class="md-nav__link" for="nav-6">
- Controlling FreeType Modules
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-6">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_6" type="checkbox" id="__nav_6" >
+
+ <label class="md-nav__link" for="__nav_6">
Controlling FreeType Modules
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
-
+ <nav class="md-nav" aria-label="Controlling FreeType Modules" data-md-level="1">
+ <label class="md-nav__title" for="__nav_6">
+ <span class="md-nav__icon md-icon"></span>
+ Controlling FreeType Modules
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
-
-
-
- <li class="md-nav__item">
- <a href="ft2-auto_hinter.html" title="The auto-hinter" class="md-nav__link">
- The auto-hinter
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-auto_hinter.html" class="md-nav__link">
+ The auto-hinter
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-cff_driver.html" title="The CFF driver" class="md-nav__link">
- The CFF driver
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-cff_driver.html" class="md-nav__link">
+ The CFF driver
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-t1_cid_driver.html" title="The Type 1 and CID drivers" class="md-nav__link">
- The Type 1 and CID drivers
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-t1_cid_driver.html" class="md-nav__link">
+ The Type 1 and CID drivers
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-tt_driver.html" title="The TrueType driver" class="md-nav__link">
- The TrueType driver
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-tt_driver.html" class="md-nav__link">
+ The TrueType driver
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-pcf_driver.html" title="The PCF driver" class="md-nav__link">
- The PCF driver
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-pcf_driver.html" class="md-nav__link">
+ The PCF driver
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-properties.html" title="Driver properties" class="md-nav__link">
- Driver properties
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-properties.html" class="md-nav__link">
+ Driver properties
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-parameter_tags.html" title="Parameter Tags" class="md-nav__link">
- Parameter Tags
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-parameter_tags.html" class="md-nav__link">
+ Parameter Tags
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-lcd_rendering.html" class="md-nav__link">
+ Subpixel Rendering
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-lcd_rendering.html" title="Subpixel Rendering" class="md-nav__link">
- Subpixel Rendering
- </a>
- </li>
-
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-7" type="checkbox" id="nav-7">
+
+
+
- <label class="md-nav__link" for="nav-7">
- Cache Sub-System
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-7">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_7" type="checkbox" id="__nav_7" >
+
+ <label class="md-nav__link" for="__nav_7">
Cache Sub-System
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
-
-
+ <nav class="md-nav" aria-label="Cache Sub-System" data-md-level="1">
+ <label class="md-nav__title" for="__nav_7">
+ <span class="md-nav__icon md-icon"></span>
+ Cache Sub-System
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-cache_subsystem.html" class="md-nav__link">
+ Cache Sub-System
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-cache_subsystem.html" title="Cache Sub-System" class="md-nav__link">
- Cache Sub-System
- </a>
- </li>
-
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-8" type="checkbox" id="nav-8">
+
+
+
- <label class="md-nav__link" for="nav-8">
- Support API
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-8">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_8" type="checkbox" id="__nav_8" >
+
+ <label class="md-nav__link" for="__nav_8">
Support API
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
-
-
+ <nav class="md-nav" aria-label="Support API" data-md-level="1">
+ <label class="md-nav__title" for="__nav_8">
+ <span class="md-nav__icon md-icon"></span>
+ Support API
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-computations.html" class="md-nav__link">
+ Computations
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-computations.html" title="Computations" class="md-nav__link">
- Computations
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-list_processing.html" title="List Processing" class="md-nav__link">
- List Processing
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-list_processing.html" class="md-nav__link">
+ List Processing
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-outline_processing.html" class="md-nav__link">
+ Outline Processing
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-outline_processing.html" title="Outline Processing" class="md-nav__link">
- Outline Processing
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-quick_advance.html" title="Quick retrieval of advance values" class="md-nav__link">
- Quick retrieval of advance values
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-quick_advance.html" class="md-nav__link">
+ Quick retrieval of advance values
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-bitmap_handling.html" title="Bitmap Handling" class="md-nav__link">
- Bitmap Handling
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-bitmap_handling.html" class="md-nav__link">
+ Bitmap Handling
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-raster.html" title="Scanline Converter" class="md-nav__link">
- Scanline Converter
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-raster.html" class="md-nav__link">
+ Scanline Converter
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-glyph_stroker.html" title="Glyph Stroker" class="md-nav__link">
- Glyph Stroker
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-glyph_stroker.html" class="md-nav__link">
+ Glyph Stroker
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-system_interface.html" title="System Interface" class="md-nav__link">
- System Interface
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-system_interface.html" class="md-nav__link">
+ System Interface
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-module_management.html" title="Module Management" class="md-nav__link">
- Module Management
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-module_management.html" class="md-nav__link">
+ Module Management
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-gzip.html" title="GZIP Streams" class="md-nav__link">
- GZIP Streams
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-gzip.html" class="md-nav__link">
+ GZIP Streams
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-lzw.html" class="md-nav__link">
+ LZW Streams
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-lzw.html" title="LZW Streams" class="md-nav__link">
- LZW Streams
- </a>
- </li>
-
-
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-bzip2.html" class="md-nav__link">
+ BZIP2 Streams
+ </a>
+ </li>
+
- <li class="md-nav__item">
- <a href="ft2-bzip2.html" title="BZIP2 Streams" class="md-nav__link">
- BZIP2 Streams
- </a>
- </li>
+
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-debugging_apis.html" class="md-nav__link">
+ External Debugging APIs
+ </a>
+ </li>
+
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-9" type="checkbox" id="nav-9">
+
+
+
- <label class="md-nav__link" for="nav-9">
- Error Codes
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-9">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_9" type="checkbox" id="__nav_9" >
+
+ <label class="md-nav__link" for="__nav_9">
Error Codes
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
+ <nav class="md-nav" aria-label="Error Codes" data-md-level="1">
+ <label class="md-nav__title" for="__nav_9">
+ <span class="md-nav__icon md-icon"></span>
+ Error Codes
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-error_enumerations.html" title="Error Enumerations" class="md-nav__link">
- Error Enumerations
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-error_enumerations.html" class="md-nav__link">
+ Error Enumerations
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-error_code_values.html" class="md-nav__link">
+ Error Code Values
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-error_code_values.html" title="Error Code Values" class="md-nav__link">
- Error Code Values
- </a>
- </li>
-
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-10" type="checkbox" id="nav-10">
+
+
+
- <label class="md-nav__link" for="nav-10">
- Miscellaneous
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-10">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_10" type="checkbox" id="__nav_10" >
+
+ <label class="md-nav__link" for="__nav_10">
Miscellaneous
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
-
-
+ <nav class="md-nav" aria-label="Miscellaneous" data-md-level="1">
+ <label class="md-nav__title" for="__nav_10">
+ <span class="md-nav__icon md-icon"></span>
+ Miscellaneous
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-gx_validation.html" class="md-nav__link">
+ TrueTypeGX/AAT Validation
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-gx_validation.html" title="TrueTypeGX/AAT Validation" class="md-nav__link">
- TrueTypeGX/AAT Validation
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-incremental.html" title="Incremental Loading" class="md-nav__link">
- Incremental Loading
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-incremental.html" class="md-nav__link">
+ Incremental Loading
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-truetype_engine.html" title="The TrueType Engine" class="md-nav__link">
- The TrueType Engine
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-truetype_engine.html" class="md-nav__link">
+ The TrueType Engine
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-ot_validation.html" title="OpenType Validation" class="md-nav__link">
- OpenType Validation
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-ot_validation.html" class="md-nav__link">
+ OpenType Validation
+ </a>
+ </li>
+
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
</ul>
@@ -1050,18 +1123,23 @@
</div>
- <div class="md-sidebar md-sidebar--secondary" data-md-component="toc">
+
+ <div class="md-sidebar md-sidebar--secondary" data-md-component="sidebar" data-md-type="toc" >
<div class="md-sidebar__scrollwrap">
<div class="md-sidebar__inner">
-<nav class="md-nav md-nav--secondary">
+<nav class="md-nav md-nav--secondary" aria-label="Table of contents">
+
- <label class="md-nav__title" for="__toc">Table of contents</label>
- <ul class="md-nav__list" data-md-scrollfix>
+ <label class="md-nav__title" for="__toc">
+ <span class="md-nav__icon md-icon"></span>
+ Table of contents
+ </label>
+ <ul class="md-nav__list" data-md-component="toc" data-md-scrollfix>
<li class="md-nav__item">
<a href="#synopsis" class="md-nav__link">
@@ -1091,10 +1169,6 @@
</li>
-
-
-
-
</ul>
</nav>
@@ -1103,7 +1177,7 @@
</div>
- <div class="md-content">
+ <div class="md-content" data-md-component="content">
<article class="md-content__inner md-typeset">
@@ -1125,7 +1199,6 @@
<p>Return the outline and metrics resolutions of a given PFR face.</p>
<h4>input</h4>
-
<table class="fields">
<tr><td class="val" id="face">face</td><td class="desc">
<p>Handle to the input face. It can be a non-PFR face.</p>
@@ -1133,7 +1206,6 @@
</table>
<h4>output</h4>
-
<table class="fields">
<tr><td class="val" id="aoutline_resolution">aoutline_resolution</td><td class="desc">
<p>Outline resolution. This is equivalent to <code>face-&gt;units_per_EM</code> for non-PFR fonts. Optional (parameter can be <code>NULL</code>).</p>
@@ -1168,7 +1240,6 @@
<p>Return the kerning pair corresponding to two glyphs in a PFR face. The distance is expressed in metrics units, unlike the result of <code><a href="ft2-base_interface.html#ft_get_kerning">FT_Get_Kerning</a></code>.</p>
<h4>input</h4>
-
<table class="fields">
<tr><td class="val" id="face">face</td><td class="desc">
<p>A handle to the input face.</p>
@@ -1182,7 +1253,6 @@
</table>
<h4>output</h4>
-
<table class="fields">
<tr><td class="val" id="avector">avector</td><td class="desc">
<p>A kerning vector.</p>
@@ -1208,7 +1278,6 @@
<p>Return a given glyph advance, expressed in original metrics units, from a PFR font.</p>
<h4>input</h4>
-
<table class="fields">
<tr><td class="val" id="face">face</td><td class="desc">
<p>A handle to the input face.</p>
@@ -1219,7 +1288,6 @@
</table>
<h4>output</h4>
-
<table class="fields">
<tr><td class="val" id="aadvance">aadvance</td><td class="desc">
<p>The glyph advance in metrics units.</p>
@@ -1234,9 +1302,6 @@
<p>You can use the <code>x_scale</code> or <code>y_scale</code> results of <code><a href="ft2-pfr_fonts.html#ft_get_pfr_metrics">FT_Get_PFR_Metrics</a></code> to convert the advance to device subpixels (i.e., 1/64<sup>th</sup> of pixels).</p>
<hr>
-
-
-
@@ -1246,59 +1311,60 @@
</article>
</div>
</div>
+
</main>
<footer class="md-footer">
- <div class="md-footer-nav">
- <nav class="md-footer-nav__inner md-grid">
+ <nav class="md-footer__inner md-grid" aria-label="Footer">
+
- <a href="ft2-cid_fonts.html" title="CID Fonts" class="md-flex md-footer-nav__link md-footer-nav__link--prev" rel="prev">
- <div class="md-flex__cell md-flex__cell--shrink">
- <i class="md-icon md-icon--arrow-back md-footer-nav__button"></i>
- </div>
- <div class="md-flex__cell md-flex__cell--stretch md-footer-nav__title">
- <span class="md-flex__ellipsis">
- <span class="md-footer-nav__direction">
- Previous
- </span>
- CID Fonts
+ <a href="ft2-cid_fonts.html" class="md-footer__link md-footer__link--prev" aria-label="Previous: CID Fonts" rel="prev">
+ <div class="md-footer__button md-icon">
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M20 11v2H8l5.5 5.5-1.42 1.42L4.16 12l7.92-7.92L13.5 5.5 8 11h12z"/></svg>
+ </div>
+ <div class="md-footer__title">
+ <div class="md-ellipsis">
+ <span class="md-footer__direction">
+ Previous
</span>
+ CID Fonts
</div>
- </a>
-
+ </div>
+ </a>
+
+
- <a href="ft2-winfnt_fonts.html" title="Window FNT Files" class="md-flex md-footer-nav__link md-footer-nav__link--next" rel="next">
- <div class="md-flex__cell md-flex__cell--stretch md-footer-nav__title">
- <span class="md-flex__ellipsis">
- <span class="md-footer-nav__direction">
- Next
- </span>
- Window FNT Files
+ <a href="ft2-winfnt_fonts.html" class="md-footer__link md-footer__link--next" aria-label="Next: Window FNT Files" rel="next">
+ <div class="md-footer__title">
+ <div class="md-ellipsis">
+ <span class="md-footer__direction">
+ Next
</span>
+ Window FNT Files
</div>
- <div class="md-flex__cell md-flex__cell--shrink">
- <i class="md-icon md-icon--arrow-forward md-footer-nav__button"></i>
- </div>
- </a>
-
- </nav>
- </div>
+ </div>
+ <div class="md-footer__button md-icon">
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M4 11v2h12l-5.5 5.5 1.42 1.42L19.84 12l-7.92-7.92L10.5 5.5 16 11H4z"/></svg>
+ </div>
+ </a>
+
+ </nav>
<div class="md-footer-meta md-typeset">
<div class="md-footer-meta__inner md-grid">
<div class="md-footer-copyright">
<div class="md-footer-copyright__highlight">
- Copyright 2020 <a href = "https://www.freetype.org/license.html">The FreeType Project</a>.
+ Copyright 2021 <a href = "https://www.freetype.org/license.html">The FreeType Project</a>.
</div>
- powered by
- <a href="https://www.mkdocs.org" target="_blank" rel="noopener">MkDocs</a>
- and
+ Made with
<a href="https://squidfunk.github.io/mkdocs-material/" target="_blank" rel="noopener">
- Material for MkDocs</a>
+ Material for MkDocs
+ </a>
+
</div>
</div>
@@ -1306,10 +1372,13 @@
</footer>
</div>
+ <div class="md-dialog" data-md-component="dialog">
+ <div class="md-dialog__inner md-typeset"></div>
+ </div>
+ <script id="__config" type="application/json">{"base": ".", "features": [], "translations": {"clipboard.copy": "Copy to clipboard", "clipboard.copied": "Copied to clipboard", "search.config.lang": "en", "search.config.pipeline": "trimmer, stopWordFilter", "search.config.separator": "[\\s\\-]+", "search.placeholder": "Search", "search.result.placeholder": "Type to start searching", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.term.missing": "Missing", "select.version.title": "Select version"}, "search": "assets/javascripts/workers/search.477d984a.min.js", "version": null}</script>
- <script src="assets/javascripts/application.c33a9706.js"></script>
-
- <script>app.initialize({version:"1.1",url:{base:"."}})</script>
+
+ <script src="assets/javascripts/bundle.82b56eb2.min.js"></script>
<script src="javascripts/extra.js"></script>
diff --git a/freetype/docs/reference/ft2-preamble.html b/freetype/docs/reference/ft2-preamble.html
new file mode 100644
index 00000000..92d09bf1
--- /dev/null
+++ b/freetype/docs/reference/ft2-preamble.html
@@ -0,0 +1,1233 @@
+
+<!doctype html>
+<html lang="en" class="no-js">
+ <head>
+
+ <meta charset="utf-8">
+ <meta name="viewport" content="width=device-width,initial-scale=1">
+
+ <meta name="description" content="API Reference Documentation for FreeType-2.11.1">
+
+
+
+ <meta name="author" content="FreeType Contributors">
+
+
+ <link rel="icon" href="images/favico.ico">
+ <meta name="generator" content="mkdocs-1.2.1, mkdocs-material-7.1.9">
+
+
+
+ <title>Preamble - FreeType-2.11.1 API Reference</title>
+
+
+
+ <link rel="stylesheet" href="assets/stylesheets/main.ca7ac06f.min.css">
+
+
+ <link rel="stylesheet" href="assets/stylesheets/palette.f1a3b89f.min.css">
+
+
+
+ <meta name="theme-color" content="#4cae4f">
+
+
+
+
+
+
+
+ <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
+ <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Noto+Serif:300,400,400i,700%7CRoboto+Mono&display=fallback">
+ <style>:root{--md-text-font-family:"Noto Serif";--md-code-font-family:"Roboto Mono"}</style>
+
+
+
+
+ <link rel="stylesheet" href="stylesheets/extra.css">
+
+
+
+
+
+
+
+ </head>
+
+
+
+
+
+
+
+ <body dir="ltr" data-md-color-scheme="" data-md-color-primary="green" data-md-color-accent="green">
+
+
+ <script>function __prefix(e){return new URL(".",location).pathname+"."+e}function __get(e,t=localStorage){return JSON.parse(t.getItem(__prefix(e)))}</script>
+
+ <input class="md-toggle" data-md-toggle="drawer" type="checkbox" id="__drawer" autocomplete="off">
+ <input class="md-toggle" data-md-toggle="search" type="checkbox" id="__search" autocomplete="off">
+ <label class="md-overlay" for="__drawer"></label>
+ <div data-md-component="skip">
+
+
+ <a href="#preamble" class="md-skip">
+ Skip to content
+ </a>
+
+ </div>
+ <div data-md-component="announce">
+
+ </div>
+
+ <header class="md-header" data-md-component="header">
+ <nav class="md-header__inner md-grid" aria-label="Header">
+ <a href="index.html" title="FreeType-2.11.1 API Reference" class="md-header__button md-logo" aria-label="FreeType-2.11.1 API Reference" data-md-component="logo">
+
+ <img src="images/favico.ico" alt="logo">
+
+ </a>
+ <label class="md-header__button md-icon" for="__drawer">
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M3 6h18v2H3V6m0 5h18v2H3v-2m0 5h18v2H3v-2z"/></svg>
+ </label>
+ <div class="md-header__title" data-md-component="header-title">
+ <div class="md-header__ellipsis">
+ <div class="md-header__topic">
+ <span class="md-ellipsis">
+ FreeType-2.11.1 API Reference
+ </span>
+ </div>
+ <div class="md-header__topic" data-md-component="header-topic">
+ <span class="md-ellipsis">
+
+ Preamble
+
+ </span>
+ </div>
+ </div>
+ </div>
+
+
+
+ <label class="md-header__button md-icon" for="__search">
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M9.5 3A6.5 6.5 0 0 1 16 9.5c0 1.61-.59 3.09-1.56 4.23l.27.27h.79l5 5-1.5 1.5-5-5v-.79l-.27-.27A6.516 6.516 0 0 1 9.5 16 6.5 6.5 0 0 1 3 9.5 6.5 6.5 0 0 1 9.5 3m0 2C7 5 5 7 5 9.5S7 14 9.5 14 14 12 14 9.5 12 5 9.5 5z"/></svg>
+ </label>
+
+<div class="md-search" data-md-component="search" role="dialog">
+ <label class="md-search__overlay" for="__search"></label>
+ <div class="md-search__inner" role="search">
+ <form class="md-search__form" name="search">
+ <input type="text" class="md-search__input" name="query" aria-label="Search" placeholder="Search" autocapitalize="off" autocorrect="off" autocomplete="off" spellcheck="false" data-md-component="search-query" data-md-state="active" required>
+ <label class="md-search__icon md-icon" for="__search">
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M9.5 3A6.5 6.5 0 0 1 16 9.5c0 1.61-.59 3.09-1.56 4.23l.27.27h.79l5 5-1.5 1.5-5-5v-.79l-.27-.27A6.516 6.516 0 0 1 9.5 16 6.5 6.5 0 0 1 3 9.5 6.5 6.5 0 0 1 9.5 3m0 2C7 5 5 7 5 9.5S7 14 9.5 14 14 12 14 9.5 12 5 9.5 5z"/></svg>
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M20 11v2H8l5.5 5.5-1.42 1.42L4.16 12l7.92-7.92L13.5 5.5 8 11h12z"/></svg>
+ </label>
+ <button type="reset" class="md-search__icon md-icon" aria-label="Clear" tabindex="-1">
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z"/></svg>
+ </button>
+ </form>
+ <div class="md-search__output">
+ <div class="md-search__scrollwrap" data-md-scrollfix>
+ <div class="md-search-result" data-md-component="search-result">
+ <div class="md-search-result__meta">
+ Initializing search
+ </div>
+ <ol class="md-search-result__list"></ol>
+ </div>
+ </div>
+ </div>
+ </div>
+</div>
+
+
+ </nav>
+</header>
+
+ <div class="md-container" data-md-component="container">
+
+
+
+
+ <main class="md-main" data-md-component="main">
+ <div class="md-main__inner md-grid">
+
+
+
+ <div class="md-sidebar md-sidebar--primary" data-md-component="sidebar" data-md-type="navigation" >
+ <div class="md-sidebar__scrollwrap">
+ <div class="md-sidebar__inner">
+
+
+
+<nav class="md-nav md-nav--primary" aria-label="Navigation" data-md-level="0">
+ <label class="md-nav__title" for="__drawer">
+ <a href="index.html" title="FreeType-2.11.1 API Reference" class="md-nav__button md-logo" aria-label="FreeType-2.11.1 API Reference" data-md-component="logo">
+
+ <img src="images/favico.ico" alt="logo">
+
+ </a>
+ FreeType-2.11.1 API Reference
+ </label>
+
+ <ul class="md-nav__list" data-md-scrollfix>
+
+
+
+
+
+
+
+
+ <li class="md-nav__item">
+ <a href="index.html" class="md-nav__link">
+ TOC
+ </a>
+ </li>
+
+
+
+
+
+
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-index.html" class="md-nav__link">
+ Index
+ </a>
+ </li>
+
+
+
+
+
+
+
+
+
+
+
+
+
+ <li class="md-nav__item md-nav__item--active md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_3" type="checkbox" id="__nav_3" checked>
+
+ <label class="md-nav__link" for="__nav_3">
+ General Remarks
+ <span class="md-nav__icon md-icon"></span>
+ </label>
+ <nav class="md-nav" aria-label="General Remarks" data-md-level="1">
+ <label class="md-nav__title" for="__nav_3">
+ <span class="md-nav__icon md-icon"></span>
+ General Remarks
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
+
+
+
+
+
+
+
+ <li class="md-nav__item md-nav__item--active">
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="toc" type="checkbox" id="__toc">
+
+
+
+
+
+ <label class="md-nav__link md-nav__link--active" for="__toc">
+ Preamble
+ <span class="md-nav__icon md-icon"></span>
+ </label>
+
+ <a href="ft2-preamble.html" class="md-nav__link md-nav__link--active">
+ Preamble
+ </a>
+
+
+<nav class="md-nav md-nav--secondary" aria-label="Table of contents">
+
+
+
+
+
+
+ <label class="md-nav__title" for="__toc">
+ <span class="md-nav__icon md-icon"></span>
+ Table of contents
+ </label>
+ <ul class="md-nav__list" data-md-component="toc" data-md-scrollfix>
+
+ <li class="md-nav__item">
+ <a href="#synopsis" class="md-nav__link">
+ Synopsis
+ </a>
+
+</li>
+
+ </ul>
+
+</nav>
+
+ </li>
+
+
+
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-header_inclusion.html" class="md-nav__link">
+ FreeType's header inclusion scheme
+ </a>
+ </li>
+
+
+
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-user_allocation.html" class="md-nav__link">
+ User allocation
+ </a>
+ </li>
+
+
+
+ </ul>
+ </nav>
+ </li>
+
+
+
+
+
+
+
+
+
+
+
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_4" type="checkbox" id="__nav_4" >
+
+ <label class="md-nav__link" for="__nav_4">
+ Core API
+ <span class="md-nav__icon md-icon"></span>
+ </label>
+ <nav class="md-nav" aria-label="Core API" data-md-level="1">
+ <label class="md-nav__title" for="__nav_4">
+ <span class="md-nav__icon md-icon"></span>
+ Core API
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
+
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-version.html" class="md-nav__link">
+ FreeType Version
+ </a>
+ </li>
+
+
+
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-basic_types.html" class="md-nav__link">
+ Basic Data Types
+ </a>
+ </li>
+
+
+
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-base_interface.html" class="md-nav__link">
+ Base Interface
+ </a>
+ </li>
+
+
+
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-glyph_variants.html" class="md-nav__link">
+ Unicode Variation Sequences
+ </a>
+ </li>
+
+
+
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-color_management.html" class="md-nav__link">
+ Glyph Color Management
+ </a>
+ </li>
+
+
+
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-layer_management.html" class="md-nav__link">
+ Glyph Layer Management
+ </a>
+ </li>
+
+
+
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-glyph_management.html" class="md-nav__link">
+ Glyph Management
+ </a>
+ </li>
+
+
+
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-mac_specific.html" class="md-nav__link">
+ Mac Specific Interface
+ </a>
+ </li>
+
+
+
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-sizes_management.html" class="md-nav__link">
+ Size Management
+ </a>
+ </li>
+
+
+
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-header_file_macros.html" class="md-nav__link">
+ Header File Macros
+ </a>
+ </li>
+
+
+
+ </ul>
+ </nav>
+ </li>
+
+
+
+
+
+
+
+
+
+
+
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_5" type="checkbox" id="__nav_5" >
+
+ <label class="md-nav__link" for="__nav_5">
+ Format-Specific API
+ <span class="md-nav__icon md-icon"></span>
+ </label>
+ <nav class="md-nav" aria-label="Format-Specific API" data-md-level="1">
+ <label class="md-nav__title" for="__nav_5">
+ <span class="md-nav__icon md-icon"></span>
+ Format-Specific API
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
+
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-multiple_masters.html" class="md-nav__link">
+ Multiple Masters
+ </a>
+ </li>
+
+
+
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-truetype_tables.html" class="md-nav__link">
+ TrueType Tables
+ </a>
+ </li>
+
+
+
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-type1_tables.html" class="md-nav__link">
+ Type 1 Tables
+ </a>
+ </li>
+
+
+
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-sfnt_names.html" class="md-nav__link">
+ SFNT Names
+ </a>
+ </li>
+
+
+
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-bdf_fonts.html" class="md-nav__link">
+ BDF and PCF Files
+ </a>
+ </li>
+
+
+
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-cid_fonts.html" class="md-nav__link">
+ CID Fonts
+ </a>
+ </li>
+
+
+
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-pfr_fonts.html" class="md-nav__link">
+ PFR Fonts
+ </a>
+ </li>
+
+
+
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-winfnt_fonts.html" class="md-nav__link">
+ Window FNT Files
+ </a>
+ </li>
+
+
+
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-font_formats.html" class="md-nav__link">
+ Font Formats
+ </a>
+ </li>
+
+
+
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-gasp_table.html" class="md-nav__link">
+ Gasp Table
+ </a>
+ </li>
+
+
+
+ </ul>
+ </nav>
+ </li>
+
+
+
+
+
+
+
+
+
+
+
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_6" type="checkbox" id="__nav_6" >
+
+ <label class="md-nav__link" for="__nav_6">
+ Controlling FreeType Modules
+ <span class="md-nav__icon md-icon"></span>
+ </label>
+ <nav class="md-nav" aria-label="Controlling FreeType Modules" data-md-level="1">
+ <label class="md-nav__title" for="__nav_6">
+ <span class="md-nav__icon md-icon"></span>
+ Controlling FreeType Modules
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
+
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-auto_hinter.html" class="md-nav__link">
+ The auto-hinter
+ </a>
+ </li>
+
+
+
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-cff_driver.html" class="md-nav__link">
+ The CFF driver
+ </a>
+ </li>
+
+
+
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-t1_cid_driver.html" class="md-nav__link">
+ The Type 1 and CID drivers
+ </a>
+ </li>
+
+
+
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-tt_driver.html" class="md-nav__link">
+ The TrueType driver
+ </a>
+ </li>
+
+
+
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-pcf_driver.html" class="md-nav__link">
+ The PCF driver
+ </a>
+ </li>
+
+
+
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-properties.html" class="md-nav__link">
+ Driver properties
+ </a>
+ </li>
+
+
+
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-parameter_tags.html" class="md-nav__link">
+ Parameter Tags
+ </a>
+ </li>
+
+
+
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-lcd_rendering.html" class="md-nav__link">
+ Subpixel Rendering
+ </a>
+ </li>
+
+
+
+ </ul>
+ </nav>
+ </li>
+
+
+
+
+
+
+
+
+
+
+
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_7" type="checkbox" id="__nav_7" >
+
+ <label class="md-nav__link" for="__nav_7">
+ Cache Sub-System
+ <span class="md-nav__icon md-icon"></span>
+ </label>
+ <nav class="md-nav" aria-label="Cache Sub-System" data-md-level="1">
+ <label class="md-nav__title" for="__nav_7">
+ <span class="md-nav__icon md-icon"></span>
+ Cache Sub-System
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
+
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-cache_subsystem.html" class="md-nav__link">
+ Cache Sub-System
+ </a>
+ </li>
+
+
+
+ </ul>
+ </nav>
+ </li>
+
+
+
+
+
+
+
+
+
+
+
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_8" type="checkbox" id="__nav_8" >
+
+ <label class="md-nav__link" for="__nav_8">
+ Support API
+ <span class="md-nav__icon md-icon"></span>
+ </label>
+ <nav class="md-nav" aria-label="Support API" data-md-level="1">
+ <label class="md-nav__title" for="__nav_8">
+ <span class="md-nav__icon md-icon"></span>
+ Support API
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
+
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-computations.html" class="md-nav__link">
+ Computations
+ </a>
+ </li>
+
+
+
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-list_processing.html" class="md-nav__link">
+ List Processing
+ </a>
+ </li>
+
+
+
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-outline_processing.html" class="md-nav__link">
+ Outline Processing
+ </a>
+ </li>
+
+
+
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-quick_advance.html" class="md-nav__link">
+ Quick retrieval of advance values
+ </a>
+ </li>
+
+
+
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-bitmap_handling.html" class="md-nav__link">
+ Bitmap Handling
+ </a>
+ </li>
+
+
+
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-raster.html" class="md-nav__link">
+ Scanline Converter
+ </a>
+ </li>
+
+
+
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-glyph_stroker.html" class="md-nav__link">
+ Glyph Stroker
+ </a>
+ </li>
+
+
+
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-system_interface.html" class="md-nav__link">
+ System Interface
+ </a>
+ </li>
+
+
+
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-module_management.html" class="md-nav__link">
+ Module Management
+ </a>
+ </li>
+
+
+
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-gzip.html" class="md-nav__link">
+ GZIP Streams
+ </a>
+ </li>
+
+
+
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-lzw.html" class="md-nav__link">
+ LZW Streams
+ </a>
+ </li>
+
+
+
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-bzip2.html" class="md-nav__link">
+ BZIP2 Streams
+ </a>
+ </li>
+
+
+
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-debugging_apis.html" class="md-nav__link">
+ External Debugging APIs
+ </a>
+ </li>
+
+
+
+ </ul>
+ </nav>
+ </li>
+
+
+
+
+
+
+
+
+
+
+
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_9" type="checkbox" id="__nav_9" >
+
+ <label class="md-nav__link" for="__nav_9">
+ Error Codes
+ <span class="md-nav__icon md-icon"></span>
+ </label>
+ <nav class="md-nav" aria-label="Error Codes" data-md-level="1">
+ <label class="md-nav__title" for="__nav_9">
+ <span class="md-nav__icon md-icon"></span>
+ Error Codes
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
+
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-error_enumerations.html" class="md-nav__link">
+ Error Enumerations
+ </a>
+ </li>
+
+
+
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-error_code_values.html" class="md-nav__link">
+ Error Code Values
+ </a>
+ </li>
+
+
+
+ </ul>
+ </nav>
+ </li>
+
+
+
+
+
+
+
+
+
+
+
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_10" type="checkbox" id="__nav_10" >
+
+ <label class="md-nav__link" for="__nav_10">
+ Miscellaneous
+ <span class="md-nav__icon md-icon"></span>
+ </label>
+ <nav class="md-nav" aria-label="Miscellaneous" data-md-level="1">
+ <label class="md-nav__title" for="__nav_10">
+ <span class="md-nav__icon md-icon"></span>
+ Miscellaneous
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
+
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-gx_validation.html" class="md-nav__link">
+ TrueTypeGX/AAT Validation
+ </a>
+ </li>
+
+
+
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-incremental.html" class="md-nav__link">
+ Incremental Loading
+ </a>
+ </li>
+
+
+
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-truetype_engine.html" class="md-nav__link">
+ The TrueType Engine
+ </a>
+ </li>
+
+
+
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-ot_validation.html" class="md-nav__link">
+ OpenType Validation
+ </a>
+ </li>
+
+
+
+ </ul>
+ </nav>
+ </li>
+
+
+
+ </ul>
+</nav>
+ </div>
+ </div>
+ </div>
+
+
+
+ <div class="md-sidebar md-sidebar--secondary" data-md-component="sidebar" data-md-type="toc" >
+ <div class="md-sidebar__scrollwrap">
+ <div class="md-sidebar__inner">
+
+<nav class="md-nav md-nav--secondary" aria-label="Table of contents">
+
+
+
+
+
+
+ <label class="md-nav__title" for="__toc">
+ <span class="md-nav__icon md-icon"></span>
+ Table of contents
+ </label>
+ <ul class="md-nav__list" data-md-component="toc" data-md-scrollfix>
+
+ <li class="md-nav__item">
+ <a href="#synopsis" class="md-nav__link">
+ Synopsis
+ </a>
+
+</li>
+
+ </ul>
+
+</nav>
+ </div>
+ </div>
+ </div>
+
+
+ <div class="md-content" data-md-component="content">
+ <article class="md-content__inner md-typeset">
+
+
+
+ <p><a href="https://www.freetype.org">FreeType</a> &raquo; <a href="../">Docs</a> &raquo; <a href="index.html#general-remarks">General Remarks</a> &raquo; Preamble</p>
+<hr />
+<h1 id="preamble">Preamble<a class="headerlink" href="#preamble" title="Permanent link">&para;</a></h1>
+<h2 id="synopsis">Synopsis<a class="headerlink" href="#synopsis" title="Permanent link">&para;</a></h2>
+<p>FreeType is a library that provides access to glyphs in font files. It scales the glyph images and their metrics to a requested size, and it rasterizes the glyph images to produce pixel or subpixel alpha coverage bitmaps.</p>
+<p>Note that FreeType is <em>not</em> a text layout engine. You have to use higher-level libraries like HarfBuzz, Pango, or ICU for that.</p>
+<p>Note also that FreeType does <em>not</em> perform alpha blending or compositing the resulting bitmaps or pixmaps by itself. Use your favourite graphics library (for example, Cairo or Skia) to further process FreeType's output.</p>
+
+
+
+
+
+
+
+ </article>
+ </div>
+ </div>
+
+ </main>
+
+
+<footer class="md-footer">
+
+ <nav class="md-footer__inner md-grid" aria-label="Footer">
+
+
+ <a href="ft2-index.html" class="md-footer__link md-footer__link--prev" aria-label="Previous: Index" rel="prev">
+ <div class="md-footer__button md-icon">
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M20 11v2H8l5.5 5.5-1.42 1.42L4.16 12l7.92-7.92L13.5 5.5 8 11h12z"/></svg>
+ </div>
+ <div class="md-footer__title">
+ <div class="md-ellipsis">
+ <span class="md-footer__direction">
+ Previous
+ </span>
+ Index
+ </div>
+ </div>
+ </a>
+
+
+
+ <a href="ft2-header_inclusion.html" class="md-footer__link md-footer__link--next" aria-label="Next: FreeType&#39;s header inclusion scheme" rel="next">
+ <div class="md-footer__title">
+ <div class="md-ellipsis">
+ <span class="md-footer__direction">
+ Next
+ </span>
+ FreeType's header inclusion scheme
+ </div>
+ </div>
+ <div class="md-footer__button md-icon">
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M4 11v2h12l-5.5 5.5 1.42 1.42L19.84 12l-7.92-7.92L10.5 5.5 16 11H4z"/></svg>
+ </div>
+ </a>
+
+ </nav>
+
+ <div class="md-footer-meta md-typeset">
+ <div class="md-footer-meta__inner md-grid">
+ <div class="md-footer-copyright">
+
+ <div class="md-footer-copyright__highlight">
+ Copyright 2021 <a href = "https://www.freetype.org/license.html">The FreeType Project</a>.
+ </div>
+
+ Made with
+ <a href="https://squidfunk.github.io/mkdocs-material/" target="_blank" rel="noopener">
+ Material for MkDocs
+ </a>
+
+ </div>
+
+ </div>
+ </div>
+</footer>
+
+ </div>
+ <div class="md-dialog" data-md-component="dialog">
+ <div class="md-dialog__inner md-typeset"></div>
+ </div>
+ <script id="__config" type="application/json">{"base": ".", "features": [], "translations": {"clipboard.copy": "Copy to clipboard", "clipboard.copied": "Copied to clipboard", "search.config.lang": "en", "search.config.pipeline": "trimmer, stopWordFilter", "search.config.separator": "[\\s\\-]+", "search.placeholder": "Search", "search.result.placeholder": "Type to start searching", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.term.missing": "Missing", "select.version.title": "Select version"}, "search": "assets/javascripts/workers/search.477d984a.min.js", "version": null}</script>
+
+
+ <script src="assets/javascripts/bundle.82b56eb2.min.js"></script>
+
+ <script src="javascripts/extra.js"></script>
+
+
+ </body>
+</html> \ No newline at end of file
diff --git a/freetype/docs/reference/ft2-properties.html b/freetype/docs/reference/ft2-properties.html
index 99449520..f420a3f2 100644
--- a/freetype/docs/reference/ft2-properties.html
+++ b/freetype/docs/reference/ft2-properties.html
@@ -1,145 +1,136 @@
-
-
-
<!doctype html>
<html lang="en" class="no-js">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
- <meta http-equiv="x-ua-compatible" content="ie=edge">
- <meta name="description" content="API Reference Documentation for FreeType-2.10.4">
+ <meta name="description" content="API Reference Documentation for FreeType-2.11.1">
<meta name="author" content="FreeType Contributors">
- <meta name="lang:clipboard.copy" content="Copy to clipboard">
-
- <meta name="lang:clipboard.copied" content="Copied to clipboard">
-
- <meta name="lang:search.language" content="en">
-
- <meta name="lang:search.pipeline.stopwords" content="True">
-
- <meta name="lang:search.pipeline.trimmer" content="True">
-
- <meta name="lang:search.result.none" content="No matching documents">
-
- <meta name="lang:search.result.one" content="1 matching document">
-
- <meta name="lang:search.result.other" content="# matching documents">
-
- <meta name="lang:search.tokenizer" content="[\s\-]+">
-
- <link rel="shortcut icon" href="images/favico.ico">
- <meta name="generator" content="mkdocs-1.1, mkdocs-material-4.6.3">
+ <link rel="icon" href="images/favico.ico">
+ <meta name="generator" content="mkdocs-1.2.1, mkdocs-material-7.1.9">
- <title>Driver properties - FreeType-2.10.4 API Reference</title>
+ <title>Driver properties - FreeType-2.11.1 API Reference</title>
- <link rel="stylesheet" href="assets/stylesheets/application.adb8469c.css">
-
- <link rel="stylesheet" href="assets/stylesheets/application-palette.a8b3c06d.css">
-
+ <link rel="stylesheet" href="assets/stylesheets/main.ca7ac06f.min.css">
+ <link rel="stylesheet" href="assets/stylesheets/palette.f1a3b89f.min.css">
+
+
+
+ <meta name="theme-color" content="#4cae4f">
- <meta name="theme-color" content="#4caf50">
- <script src="assets/javascripts/modernizr.86422ebf.js"></script>
-
- <link href="https://fonts.gstatic.com" rel="preconnect" crossorigin>
+
+ <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Noto+Serif:300,400,400i,700%7CRoboto+Mono&display=fallback">
- <style>body,input{font-family:"Noto Serif","Helvetica Neue",Helvetica,Arial,sans-serif}code,kbd,pre{font-family:"Roboto Mono","Courier New",Courier,monospace}</style>
+ <style>:root{--md-text-font-family:"Noto Serif";--md-code-font-family:"Roboto Mono"}</style>
- <link rel="stylesheet" href="assets/fonts/material-icons.css">
<link rel="stylesheet" href="stylesheets/extra.css">
+
+
</head>
+
+
+
+
- <body dir="ltr" data-md-color-primary="green" data-md-color-accent="green">
+ <body dir="ltr" data-md-color-scheme="" data-md-color-primary="green" data-md-color-accent="green">
- <svg class="md-svg">
- <defs>
-
-
- </defs>
- </svg>
- <input class="md-toggle" data-md-toggle="drawer" type="checkbox" id="__drawer" autocomplete="off">
- <input class="md-toggle" data-md-toggle="search" type="checkbox" id="__search" autocomplete="off">
- <label class="md-overlay" data-md-component="overlay" for="__drawer"></label>
- <a href="#driver-properties" tabindex="0" class="md-skip">
- Skip to content
- </a>
+ <script>function __prefix(e){return new URL(".",location).pathname+"."+e}function __get(e,t=localStorage){return JSON.parse(t.getItem(__prefix(e)))}</script>
+ <input class="md-toggle" data-md-toggle="drawer" type="checkbox" id="__drawer" autocomplete="off">
+ <input class="md-toggle" data-md-toggle="search" type="checkbox" id="__search" autocomplete="off">
+ <label class="md-overlay" for="__drawer"></label>
+ <div data-md-component="skip">
+
+
+ <a href="#driver-properties" class="md-skip">
+ Skip to content
+ </a>
+
+ </div>
+ <div data-md-component="announce">
+
+ </div>
<header class="md-header" data-md-component="header">
- <nav class="md-header-nav md-grid">
- <div class="md-flex">
- <div class="md-flex__cell md-flex__cell--shrink">
- <a href="." title="FreeType-2.10.4 API Reference" aria-label="FreeType-2.10.4 API Reference" class="md-header-nav__button md-logo">
-
- <img alt="logo" src="images/favico.ico" width="24" height="24">
-
- </a>
- </div>
- <div class="md-flex__cell md-flex__cell--shrink">
- <label class="md-icon md-icon--menu md-header-nav__button" for="__drawer"></label>
- </div>
- <div class="md-flex__cell md-flex__cell--stretch">
- <div class="md-flex__ellipsis md-header-nav__title" data-md-component="title">
-
- <span class="md-header-nav__topic">
- FreeType-2.10.4 API Reference
- </span>
- <span class="md-header-nav__topic">
-
- Driver properties
-
- </span>
-
+ <nav class="md-header__inner md-grid" aria-label="Header">
+ <a href="index.html" title="FreeType-2.11.1 API Reference" class="md-header__button md-logo" aria-label="FreeType-2.11.1 API Reference" data-md-component="logo">
+
+ <img src="images/favico.ico" alt="logo">
+
+ </a>
+ <label class="md-header__button md-icon" for="__drawer">
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M3 6h18v2H3V6m0 5h18v2H3v-2m0 5h18v2H3v-2z"/></svg>
+ </label>
+ <div class="md-header__title" data-md-component="header-title">
+ <div class="md-header__ellipsis">
+ <div class="md-header__topic">
+ <span class="md-ellipsis">
+ FreeType-2.11.1 API Reference
+ </span>
+ </div>
+ <div class="md-header__topic" data-md-component="header-topic">
+ <span class="md-ellipsis">
+
+ Driver properties
+
+ </span>
</div>
</div>
- <div class="md-flex__cell md-flex__cell--shrink">
-
- <label class="md-icon md-icon--search md-header-nav__button" for="__search"></label>
-
+ </div>
+
+
+
+ <label class="md-header__button md-icon" for="__search">
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M9.5 3A6.5 6.5 0 0 1 16 9.5c0 1.61-.59 3.09-1.56 4.23l.27.27h.79l5 5-1.5 1.5-5-5v-.79l-.27-.27A6.516 6.516 0 0 1 9.5 16 6.5 6.5 0 0 1 3 9.5 6.5 6.5 0 0 1 9.5 3m0 2C7 5 5 7 5 9.5S7 14 9.5 14 14 12 14 9.5 12 5 9.5 5z"/></svg>
+ </label>
+
<div class="md-search" data-md-component="search" role="dialog">
<label class="md-search__overlay" for="__search"></label>
<div class="md-search__inner" role="search">
<form class="md-search__form" name="search">
- <input type="text" class="md-search__input" aria-label="search" name="query" placeholder="Search" autocapitalize="off" autocorrect="off" autocomplete="off" spellcheck="false" data-md-component="query" data-md-state="active">
- <label class="md-icon md-search__icon" for="__search"></label>
- <button type="reset" class="md-icon md-search__icon" data-md-component="reset" tabindex="-1">
- &#xE5CD;
+ <input type="text" class="md-search__input" name="query" aria-label="Search" placeholder="Search" autocapitalize="off" autocorrect="off" autocomplete="off" spellcheck="false" data-md-component="search-query" data-md-state="active" required>
+ <label class="md-search__icon md-icon" for="__search">
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M9.5 3A6.5 6.5 0 0 1 16 9.5c0 1.61-.59 3.09-1.56 4.23l.27.27h.79l5 5-1.5 1.5-5-5v-.79l-.27-.27A6.516 6.516 0 0 1 9.5 16 6.5 6.5 0 0 1 3 9.5 6.5 6.5 0 0 1 9.5 3m0 2C7 5 5 7 5 9.5S7 14 9.5 14 14 12 14 9.5 12 5 9.5 5z"/></svg>
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M20 11v2H8l5.5 5.5-1.42 1.42L4.16 12l7.92-7.92L13.5 5.5 8 11h12z"/></svg>
+ </label>
+ <button type="reset" class="md-search__icon md-icon" aria-label="Clear" tabindex="-1">
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z"/></svg>
</button>
</form>
<div class="md-search__output">
<div class="md-search__scrollwrap" data-md-scrollfix>
- <div class="md-search-result" data-md-component="result">
+ <div class="md-search-result" data-md-component="search-result">
<div class="md-search-result__meta">
- Type to start searching
+ Initializing search
</div>
<ol class="md-search-result__list"></ol>
</div>
@@ -147,33 +138,35 @@
</div>
</div>
</div>
-
- </div>
-
- </div>
+
+
</nav>
</header>
- <div class="md-container">
+ <div class="md-container" data-md-component="container">
-
+
- <main class="md-main" role="main">
- <div class="md-main__inner md-grid" data-md-component="container">
+ <main class="md-main" data-md-component="main">
+ <div class="md-main__inner md-grid">
- <div class="md-sidebar md-sidebar--primary" data-md-component="navigation">
+
+ <div class="md-sidebar md-sidebar--primary" data-md-component="sidebar" data-md-type="navigation" >
<div class="md-sidebar__scrollwrap">
<div class="md-sidebar__inner">
- <nav class="md-nav md-nav--primary" data-md-level="0">
- <label class="md-nav__title md-nav__title--site" for="__drawer">
- <a href="." title="FreeType-2.10.4 API Reference" class="md-nav__button md-logo">
-
- <img alt="logo" src="images/favico.ico" width="48" height="48">
+
+
+
+<nav class="md-nav md-nav--primary" aria-label="Navigation" data-md-level="0">
+ <label class="md-nav__title" for="__drawer">
+ <a href="index.html" title="FreeType-2.11.1 API Reference" class="md-nav__button md-logo" aria-label="FreeType-2.11.1 API Reference" data-md-component="logo">
+ <img src="images/favico.ico" alt="logo">
+
</a>
- FreeType-2.10.4 API Reference
+ FreeType-2.11.1 API Reference
</label>
<ul class="md-nav__list" data-md-scrollfix>
@@ -182,360 +175,396 @@
-
- <li class="md-nav__item">
- <a href="index.html" title="TOC" class="md-nav__link">
- TOC
- </a>
- </li>
+
+
+
+ <li class="md-nav__item">
+ <a href="index.html" class="md-nav__link">
+ TOC
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-index.html" title="Index" class="md-nav__link">
- Index
- </a>
- </li>
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-index.html" class="md-nav__link">
+ Index
+ </a>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-3" type="checkbox" id="nav-3">
+
+
+
- <label class="md-nav__link" for="nav-3">
- General Remarks
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-3">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_3" type="checkbox" id="__nav_3" >
+
+ <label class="md-nav__link" for="__nav_3">
General Remarks
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
-
-
+ <nav class="md-nav" aria-label="General Remarks" data-md-level="1">
+ <label class="md-nav__title" for="__nav_3">
+ <span class="md-nav__icon md-icon"></span>
+ General Remarks
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-preamble.html" class="md-nav__link">
+ Preamble
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-header_inclusion.html" title="FreeType's header inclusion scheme" class="md-nav__link">
- FreeType's header inclusion scheme
- </a>
- </li>
-
-
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-header_inclusion.html" class="md-nav__link">
+ FreeType's header inclusion scheme
+ </a>
+ </li>
+
- <li class="md-nav__item">
- <a href="ft2-user_allocation.html" title="User allocation" class="md-nav__link">
- User allocation
- </a>
- </li>
+
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-user_allocation.html" class="md-nav__link">
+ User allocation
+ </a>
+ </li>
+
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-4" type="checkbox" id="nav-4">
+
+
+
- <label class="md-nav__link" for="nav-4">
- Core API
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-4">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_4" type="checkbox" id="__nav_4" >
+
+ <label class="md-nav__link" for="__nav_4">
Core API
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
-
+ <nav class="md-nav" aria-label="Core API" data-md-level="1">
+ <label class="md-nav__title" for="__nav_4">
+ <span class="md-nav__icon md-icon"></span>
+ Core API
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
-
-
-
- <li class="md-nav__item">
- <a href="ft2-version.html" title="FreeType Version" class="md-nav__link">
- FreeType Version
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-version.html" class="md-nav__link">
+ FreeType Version
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-basic_types.html" title="Basic Data Types" class="md-nav__link">
- Basic Data Types
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-basic_types.html" class="md-nav__link">
+ Basic Data Types
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-base_interface.html" title="Base Interface" class="md-nav__link">
- Base Interface
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-base_interface.html" class="md-nav__link">
+ Base Interface
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-glyph_variants.html" class="md-nav__link">
+ Unicode Variation Sequences
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-glyph_variants.html" title="Unicode Variation Sequences" class="md-nav__link">
- Unicode Variation Sequences
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-color_management.html" title="Glyph Color Management" class="md-nav__link">
- Glyph Color Management
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-color_management.html" class="md-nav__link">
+ Glyph Color Management
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-layer_management.html" class="md-nav__link">
+ Glyph Layer Management
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-layer_management.html" title="Glyph Layer Management" class="md-nav__link">
- Glyph Layer Management
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-glyph_management.html" title="Glyph Management" class="md-nav__link">
- Glyph Management
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-glyph_management.html" class="md-nav__link">
+ Glyph Management
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-mac_specific.html" title="Mac Specific Interface" class="md-nav__link">
- Mac Specific Interface
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-mac_specific.html" class="md-nav__link">
+ Mac Specific Interface
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-sizes_management.html" title="Size Management" class="md-nav__link">
- Size Management
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-sizes_management.html" class="md-nav__link">
+ Size Management
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-header_file_macros.html" title="Header File Macros" class="md-nav__link">
- Header File Macros
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-header_file_macros.html" class="md-nav__link">
+ Header File Macros
+ </a>
+ </li>
+
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-5" type="checkbox" id="nav-5">
+
+
+
- <label class="md-nav__link" for="nav-5">
- Format-Specific API
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-5">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_5" type="checkbox" id="__nav_5" >
+
+ <label class="md-nav__link" for="__nav_5">
Format-Specific API
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
-
+ <nav class="md-nav" aria-label="Format-Specific API" data-md-level="1">
+ <label class="md-nav__title" for="__nav_5">
+ <span class="md-nav__icon md-icon"></span>
+ Format-Specific API
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
-
-
-
- <li class="md-nav__item">
- <a href="ft2-multiple_masters.html" title="Multiple Masters" class="md-nav__link">
- Multiple Masters
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-multiple_masters.html" class="md-nav__link">
+ Multiple Masters
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-truetype_tables.html" title="TrueType Tables" class="md-nav__link">
- TrueType Tables
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-truetype_tables.html" class="md-nav__link">
+ TrueType Tables
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-type1_tables.html" title="Type 1 Tables" class="md-nav__link">
- Type 1 Tables
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-type1_tables.html" class="md-nav__link">
+ Type 1 Tables
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-sfnt_names.html" title="SFNT Names" class="md-nav__link">
- SFNT Names
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-sfnt_names.html" class="md-nav__link">
+ SFNT Names
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-bdf_fonts.html" class="md-nav__link">
+ BDF and PCF Files
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-bdf_fonts.html" title="BDF and PCF Files" class="md-nav__link">
- BDF and PCF Files
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-cid_fonts.html" title="CID Fonts" class="md-nav__link">
- CID Fonts
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-cid_fonts.html" class="md-nav__link">
+ CID Fonts
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-pfr_fonts.html" class="md-nav__link">
+ PFR Fonts
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-pfr_fonts.html" title="PFR Fonts" class="md-nav__link">
- PFR Fonts
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-winfnt_fonts.html" title="Window FNT Files" class="md-nav__link">
- Window FNT Files
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-winfnt_fonts.html" class="md-nav__link">
+ Window FNT Files
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-font_formats.html" title="Font Formats" class="md-nav__link">
- Font Formats
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-font_formats.html" class="md-nav__link">
+ Font Formats
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-gasp_table.html" title="Gasp Table" class="md-nav__link">
- Gasp Table
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-gasp_table.html" class="md-nav__link">
+ Gasp Table
+ </a>
+ </li>
+
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
@@ -543,113 +572,123 @@
-
-
- <li class="md-nav__item md-nav__item--active md-nav__item--nested">
+
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-6" type="checkbox" id="nav-6" checked>
+
+
- <label class="md-nav__link" for="nav-6">
- Controlling FreeType Modules
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-6">
+ <li class="md-nav__item md-nav__item--active md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_6" type="checkbox" id="__nav_6" checked>
+
+ <label class="md-nav__link" for="__nav_6">
Controlling FreeType Modules
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
-
-
+ <nav class="md-nav" aria-label="Controlling FreeType Modules" data-md-level="1">
+ <label class="md-nav__title" for="__nav_6">
+ <span class="md-nav__icon md-icon"></span>
+ Controlling FreeType Modules
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-auto_hinter.html" class="md-nav__link">
+ The auto-hinter
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-auto_hinter.html" title="The auto-hinter" class="md-nav__link">
- The auto-hinter
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-cff_driver.html" title="The CFF driver" class="md-nav__link">
- The CFF driver
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-cff_driver.html" class="md-nav__link">
+ The CFF driver
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-t1_cid_driver.html" title="The Type 1 and CID drivers" class="md-nav__link">
- The Type 1 and CID drivers
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-t1_cid_driver.html" class="md-nav__link">
+ The Type 1 and CID drivers
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-tt_driver.html" title="The TrueType driver" class="md-nav__link">
- The TrueType driver
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-tt_driver.html" class="md-nav__link">
+ The TrueType driver
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-pcf_driver.html" title="The PCF driver" class="md-nav__link">
- The PCF driver
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-pcf_driver.html" class="md-nav__link">
+ The PCF driver
+ </a>
+ </li>
+
-
-
-
-
+
+
-
-
- <li class="md-nav__item md-nav__item--active">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="toc" type="checkbox" id="__toc">
+
+
+ <li class="md-nav__item md-nav__item--active">
-
-
- <label class="md-nav__link md-nav__link--active" for="__toc">
+ <input class="md-nav__toggle md-toggle" data-md-toggle="toc" type="checkbox" id="__toc">
+
+
+
+
+
+ <label class="md-nav__link md-nav__link--active" for="__toc">
+ Driver properties
+ <span class="md-nav__icon md-icon"></span>
+ </label>
+
+ <a href="ft2-properties.html" class="md-nav__link md-nav__link--active">
Driver properties
- </label>
-
- <a href="ft2-properties.html" title="Driver properties" class="md-nav__link md-nav__link--active">
- Driver properties
- </a>
-
+ </a>
-<nav class="md-nav md-nav--secondary">
+
+<nav class="md-nav md-nav--secondary" aria-label="Table of contents">
+
- <label class="md-nav__title" for="__toc">Table of contents</label>
- <ul class="md-nav__list" data-md-scrollfix>
+ <label class="md-nav__title" for="__toc">
+ <span class="md-nav__icon md-icon"></span>
+ Table of contents
+ </label>
+ <ul class="md-nav__list" data-md-component="toc" data-md-scrollfix>
<li class="md-nav__item">
<a href="#synopsis" class="md-nav__link">
@@ -770,368 +809,402 @@
</li>
-
-
-
-
</ul>
</nav>
-
- </li>
+
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-parameter_tags.html" title="Parameter Tags" class="md-nav__link">
- Parameter Tags
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-parameter_tags.html" class="md-nav__link">
+ Parameter Tags
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-lcd_rendering.html" title="Subpixel Rendering" class="md-nav__link">
- Subpixel Rendering
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-lcd_rendering.html" class="md-nav__link">
+ Subpixel Rendering
+ </a>
+ </li>
+
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-7" type="checkbox" id="nav-7">
+
+
+
- <label class="md-nav__link" for="nav-7">
- Cache Sub-System
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-7">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_7" type="checkbox" id="__nav_7" >
+
+ <label class="md-nav__link" for="__nav_7">
Cache Sub-System
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
-
-
+ <nav class="md-nav" aria-label="Cache Sub-System" data-md-level="1">
+ <label class="md-nav__title" for="__nav_7">
+ <span class="md-nav__icon md-icon"></span>
+ Cache Sub-System
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-cache_subsystem.html" class="md-nav__link">
+ Cache Sub-System
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-cache_subsystem.html" title="Cache Sub-System" class="md-nav__link">
- Cache Sub-System
- </a>
- </li>
-
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-8" type="checkbox" id="nav-8">
+
+
+
- <label class="md-nav__link" for="nav-8">
- Support API
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-8">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_8" type="checkbox" id="__nav_8" >
+
+ <label class="md-nav__link" for="__nav_8">
Support API
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
-
-
+ <nav class="md-nav" aria-label="Support API" data-md-level="1">
+ <label class="md-nav__title" for="__nav_8">
+ <span class="md-nav__icon md-icon"></span>
+ Support API
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-computations.html" class="md-nav__link">
+ Computations
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-computations.html" title="Computations" class="md-nav__link">
- Computations
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-list_processing.html" title="List Processing" class="md-nav__link">
- List Processing
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-list_processing.html" class="md-nav__link">
+ List Processing
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-outline_processing.html" title="Outline Processing" class="md-nav__link">
- Outline Processing
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-outline_processing.html" class="md-nav__link">
+ Outline Processing
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-quick_advance.html" title="Quick retrieval of advance values" class="md-nav__link">
- Quick retrieval of advance values
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-quick_advance.html" class="md-nav__link">
+ Quick retrieval of advance values
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-bitmap_handling.html" title="Bitmap Handling" class="md-nav__link">
- Bitmap Handling
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-bitmap_handling.html" class="md-nav__link">
+ Bitmap Handling
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-raster.html" class="md-nav__link">
+ Scanline Converter
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-raster.html" title="Scanline Converter" class="md-nav__link">
- Scanline Converter
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-glyph_stroker.html" title="Glyph Stroker" class="md-nav__link">
- Glyph Stroker
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-glyph_stroker.html" class="md-nav__link">
+ Glyph Stroker
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-system_interface.html" class="md-nav__link">
+ System Interface
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-system_interface.html" title="System Interface" class="md-nav__link">
- System Interface
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-module_management.html" title="Module Management" class="md-nav__link">
- Module Management
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-module_management.html" class="md-nav__link">
+ Module Management
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-gzip.html" title="GZIP Streams" class="md-nav__link">
- GZIP Streams
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-gzip.html" class="md-nav__link">
+ GZIP Streams
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-lzw.html" title="LZW Streams" class="md-nav__link">
- LZW Streams
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-lzw.html" class="md-nav__link">
+ LZW Streams
+ </a>
+ </li>
+
-
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-bzip2.html" class="md-nav__link">
+ BZIP2 Streams
+ </a>
+ </li>
+
- <li class="md-nav__item">
- <a href="ft2-bzip2.html" title="BZIP2 Streams" class="md-nav__link">
- BZIP2 Streams
- </a>
- </li>
+
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-debugging_apis.html" class="md-nav__link">
+ External Debugging APIs
+ </a>
+ </li>
+
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-9" type="checkbox" id="nav-9">
+
+
+
- <label class="md-nav__link" for="nav-9">
- Error Codes
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-9">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_9" type="checkbox" id="__nav_9" >
+
+ <label class="md-nav__link" for="__nav_9">
Error Codes
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
-
-
+ <nav class="md-nav" aria-label="Error Codes" data-md-level="1">
+ <label class="md-nav__title" for="__nav_9">
+ <span class="md-nav__icon md-icon"></span>
+ Error Codes
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-error_enumerations.html" class="md-nav__link">
+ Error Enumerations
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-error_enumerations.html" title="Error Enumerations" class="md-nav__link">
- Error Enumerations
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-error_code_values.html" title="Error Code Values" class="md-nav__link">
- Error Code Values
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-error_code_values.html" class="md-nav__link">
+ Error Code Values
+ </a>
+ </li>
+
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-10" type="checkbox" id="nav-10">
+
+
+
- <label class="md-nav__link" for="nav-10">
- Miscellaneous
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-10">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_10" type="checkbox" id="__nav_10" >
+
+ <label class="md-nav__link" for="__nav_10">
Miscellaneous
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
-
+ <nav class="md-nav" aria-label="Miscellaneous" data-md-level="1">
+ <label class="md-nav__title" for="__nav_10">
+ <span class="md-nav__icon md-icon"></span>
+ Miscellaneous
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
-
-
-
- <li class="md-nav__item">
- <a href="ft2-gx_validation.html" title="TrueTypeGX/AAT Validation" class="md-nav__link">
- TrueTypeGX/AAT Validation
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-gx_validation.html" class="md-nav__link">
+ TrueTypeGX/AAT Validation
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-incremental.html" title="Incremental Loading" class="md-nav__link">
- Incremental Loading
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-incremental.html" class="md-nav__link">
+ Incremental Loading
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-truetype_engine.html" class="md-nav__link">
+ The TrueType Engine
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-truetype_engine.html" title="The TrueType Engine" class="md-nav__link">
- The TrueType Engine
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-ot_validation.html" title="OpenType Validation" class="md-nav__link">
- OpenType Validation
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-ot_validation.html" class="md-nav__link">
+ OpenType Validation
+ </a>
+ </li>
+
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
</ul>
@@ -1141,18 +1214,23 @@
</div>
- <div class="md-sidebar md-sidebar--secondary" data-md-component="toc">
+
+ <div class="md-sidebar md-sidebar--secondary" data-md-component="sidebar" data-md-type="toc" >
<div class="md-sidebar__scrollwrap">
<div class="md-sidebar__inner">
-<nav class="md-nav md-nav--secondary">
+<nav class="md-nav md-nav--secondary" aria-label="Table of contents">
+
- <label class="md-nav__title" for="__toc">Table of contents</label>
- <ul class="md-nav__list" data-md-scrollfix>
+ <label class="md-nav__title" for="__toc">
+ <span class="md-nav__icon md-icon"></span>
+ Table of contents
+ </label>
+ <ul class="md-nav__list" data-md-component="toc" data-md-scrollfix>
<li class="md-nav__item">
<a href="#synopsis" class="md-nav__link">
@@ -1273,10 +1351,6 @@
</li>
-
-
-
-
</ul>
</nav>
@@ -1285,7 +1359,7 @@
</div>
- <div class="md-content">
+ <div class="md-content" data-md-component="content">
<article class="md-content__inner md-typeset">
@@ -1307,7 +1381,6 @@
<p>A list of constants used for the <code><a href="ft2-properties.html#hinting-engine">hinting-engine</a></code> property to select the hinting engine for CFF, Type&nbsp;1, and CID fonts.</p>
<h4>values</h4>
-
<table class="fields">
<tr><td class="val" id="ft_hinting_freetype">FT_HINTING_FREETYPE</td><td class="desc">
<p>Use the old FreeType hinting engine.</p>
@@ -1325,8 +1398,7 @@
<h2 id="hinting-engine">hinting-engine<a class="headerlink" href="#hinting-engine" title="Permanent link">&para;</a></h2>
<p>Thanks to Adobe, which contributed a new hinting (and parsing) engine, an application can select between &lsquo;freetype&rsquo; and &lsquo;adobe&rsquo; if compiled with <code>CFF_CONFIG_OPTION_OLD_ENGINE</code>. If this configuration macro isn't defined, &lsquo;hinting-engine&rsquo; does nothing.</p>
<p>The same holds for the Type&nbsp;1 and CID modules if compiled with <code>T1_CONFIG_OPTION_OLD_ENGINE</code>.</p>
-<p>For the &lsquo;cff&rsquo; module, the default engine is &lsquo;freetype&rsquo; if <code>CFF_CONFIG_OPTION_OLD_ENGINE</code> is defined, and &lsquo;adobe&rsquo; otherwise.</p>
-<p>For both the &lsquo;type1&rsquo; and &lsquo;t1cid&rsquo; modules, the default engine is &lsquo;freetype&rsquo; if <code>T1_CONFIG_OPTION_OLD_ENGINE</code> is defined, and &lsquo;adobe&rsquo; otherwise.</p>
+<p>For the &lsquo;cff&rsquo; module, the default engine is &lsquo;adobe&rsquo;. For both the &lsquo;type1&rsquo; and &lsquo;t1cid&rsquo; modules, the default engine is &lsquo;adobe&rsquo;, too.</p>
<h4>note</h4>
<p>This property can be used with <code><a href="ft2-module_management.html#ft_property_get">FT_Property_Get</a></code> also.</p>
@@ -1360,7 +1432,6 @@
<p>This property can be used with <code><a href="ft2-module_management.html#ft_property_get">FT_Property_Get</a></code> also.</p>
<p>This property can be set via the <code>FREETYPE_PROPERTIES</code> environment variable (using values 1 and 0 for &lsquo;on&rsquo; and &lsquo;off&rsquo;, respectively). It can also be set per face using <code><a href="ft2-base_interface.html#ft_face_properties">FT_Face_Properties</a></code> with <code><a href="ft2-parameter_tags.html#ft_param_tag_stem_darkening">FT_PARAM_TAG_STEM_DARKENING</a></code>.</p>
<h4>example</h4>
-
<div class="highlight"><pre><span></span><code> FT_Library library;
FT_Bool no_stem_darkening = TRUE;
@@ -1370,7 +1441,6 @@
FT_Property_Set( library, &quot;cff&quot;,
&quot;no-stem-darkening&quot;, &amp;no_stem_darkening );
</code></pre></div>
-
<h4>since</h4>
<p>2.4.12 (for &lsquo;cff&rsquo; module)</p>
@@ -1396,7 +1466,6 @@
type1:darkening-parameters=500,300,1000,200,1500,100,2000,0
</code></pre></div></p>
<h4>example</h4>
-
<div class="highlight"><pre><span></span><code> FT_Library library;
FT_Int darken_params[8] = { 500, 300, // x1, y1
1000, 200, // x2, y2
@@ -1409,7 +1478,6 @@
FT_Property_Set( library, &quot;type1&quot;,
&quot;darkening-parameters&quot;, darken_params );
</code></pre></div>
-
<h4>since</h4>
<p>2.5.1 (for &lsquo;cff&rsquo; module)</p>
@@ -1438,7 +1506,6 @@
<p>This property can be used with <code><a href="ft2-module_management.html#ft_property_get">FT_Property_Get</a></code> also.</p>
<p>This property can be set via the <code>FREETYPE_PROPERTIES</code> environment variable (using values 1 and 0 for &lsquo;on&rsquo; and &lsquo;off&rsquo;, respectively).</p>
<h4>example</h4>
-
<div class="highlight"><pre><span></span><code> FT_Library library;
FT_Bool no_long_family_names = TRUE;
@@ -1449,7 +1516,6 @@
&quot;no-long-family-names&quot;,
&amp;no_long_family_names );
</code></pre></div>
-
<h4>since</h4>
<p>2.8</p>
@@ -1465,7 +1531,6 @@
<p>A list of constants used for the <code><a href="ft2-properties.html#interpreter-version">interpreter-version</a></code> property to select the hinting engine for Truetype fonts.</p>
<p>The numeric value in the constant names represents the version number as returned by the &lsquo;GETINFO&rsquo; bytecode instruction.</p>
<h4>values</h4>
-
<table class="fields">
<tr><td class="val" id="tt_interpreter_version_35">TT_INTERPRETER_VERSION_35</td><td class="desc">
<p>Version&nbsp;35 corresponds to MS rasterizer v.1.7 as used e.g. in Windows&nbsp;98; only grayscale and B/W rasterizing is supported.</p>
@@ -1592,7 +1657,6 @@
<p><strong>Experimental only</strong></p>
<p>A list of constants used for the <code><a href="ft2-properties.html#glyph-to-script-map">glyph-to-script-map</a></code> property to specify the script submodule the auto-hinter should use for hinting a particular glyph.</p>
<h4>values</h4>
-
<table class="fields long">
<tr><td class="val" id="ft_autohinter_script_none">FT_AUTOHINTER_SCRIPT_NONE</td><td class="desc">
<p>Don't auto-hint this glyph.</p>
@@ -1712,7 +1776,6 @@
<p>This property can be used with <code><a href="ft2-module_management.html#ft_property_get">FT_Property_Get</a></code> also.</p>
<p>It's important to use the right timing for changing this value: The creation of the glyph-to-script map that eventually uses the fallback script value gets triggered either by setting or reading a face-specific property like <code><a href="ft2-properties.html#glyph-to-script-map">glyph-to-script-map</a></code>, or by auto-hinting any glyph from that face. In particular, if you have already created an <code><a href="ft2-base_interface.html#ft_face">FT_Face</a></code> structure but not loaded any glyph (using the auto-hinter), a change of the fallback script will affect this face.</p>
<h4>example</h4>
-
<div class="highlight"><pre><span></span><code> FT_Library library;
FT_UInt fallback_script = FT_AUTOHINTER_SCRIPT_NONE;
@@ -1722,7 +1785,6 @@
FT_Property_Set( library, &quot;autofitter&quot;,
&quot;fallback-script&quot;, &amp;fallback_script );
</code></pre></div>
-
<h4>since</h4>
<p>2.4.11</p>
@@ -1737,7 +1799,6 @@
<p>This property can be used with <code><a href="ft2-module_management.html#ft_property_get">FT_Property_Get</a></code> also.</p>
<p>It's important to use the right timing for changing this value: The creation of the glyph-to-script map that eventually uses the default script value gets triggered either by setting or reading a face-specific property like <code><a href="ft2-properties.html#glyph-to-script-map">glyph-to-script-map</a></code>, or by auto-hinting any glyph from that face. In particular, if you have already created an <code><a href="ft2-base_interface.html#ft_face">FT_Face</a></code> structure but not loaded any glyph (using the auto-hinter), a change of the default script will affect this face.</p>
<h4>example</h4>
-
<div class="highlight"><pre><span></span><code> FT_Library library;
FT_UInt default_script = FT_AUTOHINTER_SCRIPT_NONE;
@@ -1747,7 +1808,6 @@
FT_Property_Set( library, &quot;autofitter&quot;,
&quot;default-script&quot;, &amp;default_script );
</code></pre></div>
-
<h4>since</h4>
<p>2.5.3</p>
@@ -1760,7 +1820,6 @@
<p>This property can be used with <code><a href="ft2-module_management.html#ft_property_get">FT_Property_Get</a></code> also.</p>
<p>Set this value right after calling <code><a href="ft2-base_interface.html#ft_set_char_size">FT_Set_Char_Size</a></code>, but before loading any glyph (using the auto-hinter).</p>
<h4>example</h4>
-
<div class="highlight"><pre><span></span><code> FT_Library library;
FT_Face face;
FT_Prop_IncreaseXHeight prop;
@@ -1776,7 +1835,6 @@
FT_Property_Set( library, &quot;autofitter&quot;,
&quot;increase-x-height&quot;, &amp;prop );
</code></pre></div>
-
<h4>since</h4>
<p>2.4.11</p>
@@ -1796,35 +1854,14 @@
<hr>
<h2 id="warping">warping<a class="headerlink" href="#warping" title="Permanent link">&para;</a></h2>
-<p><strong>Experimental only</strong></p>
-<p>If FreeType gets compiled with option <code>AF_CONFIG_OPTION_USE_WARPER</code> to activate the warp hinting code in the auto-hinter, this property switches warping on and off.</p>
-<p>Warping only works in &lsquo;normal&rsquo; auto-hinting mode replacing it. The idea of the code is to slightly scale and shift a glyph along the non-hinted dimension (which is usually the horizontal axis) so that as much of its segments are aligned (more or less) to the grid. To find out a glyph's optimal scaling and shifting value, various parameter combinations are tried and scored.</p>
-<p>By default, warping is off.</p>
-<h4>note</h4>
-
-<p>This property can be used with <code><a href="ft2-module_management.html#ft_property_get">FT_Property_Get</a></code> also.</p>
-<p>This property can be set via the <code>FREETYPE_PROPERTIES</code> environment variable (using values 1 and 0 for &lsquo;on&rsquo; and &lsquo;off&rsquo;, respectively).</p>
-<p>The warping code can also change advance widths. Have a look at the <code>lsb_delta</code> and <code>rsb_delta</code> fields in the <code><a href="ft2-base_interface.html#ft_glyphslotrec">FT_GlyphSlotRec</a></code> structure for details on improving inter-glyph distances while rendering.</p>
-<p>Since warping is a global property of the auto-hinter it is best to change its value before rendering any face. Otherwise, you should reload all faces that get auto-hinted in &lsquo;normal&rsquo; hinting mode.</p>
-<h4>example</h4>
-
-<p>This example shows how to switch on warping (omitting the error handling).
-<div class="highlight"><pre><span></span><code> FT_Library library;
- FT_Bool warping = 1;
-
-
- FT_Init_FreeType( &amp;library );
-
- FT_Property_Set( library, &quot;autofitter&quot;, &quot;warping&quot;, &amp;warping );
-</code></pre></div></p>
+<p><strong>Obsolete</strong></p>
+<p>This property was always experimental and probably never worked correctly. It was entirely removed from the FreeType&nbsp;2 sources. This entry is only here for historical reference.</p>
+<p>Warping only worked in &lsquo;normal&rsquo; auto-hinting mode replacing it. The idea of the code was to slightly scale and shift a glyph along the non-hinted dimension (which is usually the horizontal axis) so that as much of its segments were aligned (more or less) to the grid. To find out a glyph's optimal scaling and shifting value, various parameter combinations were tried and scored.</p>
<h4>since</h4>
<p>2.6</p>
<hr>
-
-
-
@@ -1834,59 +1871,60 @@
</article>
</div>
</div>
+
</main>
<footer class="md-footer">
- <div class="md-footer-nav">
- <nav class="md-footer-nav__inner md-grid">
+ <nav class="md-footer__inner md-grid" aria-label="Footer">
+
- <a href="ft2-pcf_driver.html" title="The PCF driver" class="md-flex md-footer-nav__link md-footer-nav__link--prev" rel="prev">
- <div class="md-flex__cell md-flex__cell--shrink">
- <i class="md-icon md-icon--arrow-back md-footer-nav__button"></i>
- </div>
- <div class="md-flex__cell md-flex__cell--stretch md-footer-nav__title">
- <span class="md-flex__ellipsis">
- <span class="md-footer-nav__direction">
- Previous
- </span>
- The PCF driver
+ <a href="ft2-pcf_driver.html" class="md-footer__link md-footer__link--prev" aria-label="Previous: The PCF driver" rel="prev">
+ <div class="md-footer__button md-icon">
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M20 11v2H8l5.5 5.5-1.42 1.42L4.16 12l7.92-7.92L13.5 5.5 8 11h12z"/></svg>
+ </div>
+ <div class="md-footer__title">
+ <div class="md-ellipsis">
+ <span class="md-footer__direction">
+ Previous
</span>
+ The PCF driver
</div>
- </a>
-
+ </div>
+ </a>
+
+
- <a href="ft2-parameter_tags.html" title="Parameter Tags" class="md-flex md-footer-nav__link md-footer-nav__link--next" rel="next">
- <div class="md-flex__cell md-flex__cell--stretch md-footer-nav__title">
- <span class="md-flex__ellipsis">
- <span class="md-footer-nav__direction">
- Next
- </span>
- Parameter Tags
+ <a href="ft2-parameter_tags.html" class="md-footer__link md-footer__link--next" aria-label="Next: Parameter Tags" rel="next">
+ <div class="md-footer__title">
+ <div class="md-ellipsis">
+ <span class="md-footer__direction">
+ Next
</span>
+ Parameter Tags
</div>
- <div class="md-flex__cell md-flex__cell--shrink">
- <i class="md-icon md-icon--arrow-forward md-footer-nav__button"></i>
- </div>
- </a>
-
- </nav>
- </div>
+ </div>
+ <div class="md-footer__button md-icon">
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M4 11v2h12l-5.5 5.5 1.42 1.42L19.84 12l-7.92-7.92L10.5 5.5 16 11H4z"/></svg>
+ </div>
+ </a>
+
+ </nav>
<div class="md-footer-meta md-typeset">
<div class="md-footer-meta__inner md-grid">
<div class="md-footer-copyright">
<div class="md-footer-copyright__highlight">
- Copyright 2020 <a href = "https://www.freetype.org/license.html">The FreeType Project</a>.
+ Copyright 2021 <a href = "https://www.freetype.org/license.html">The FreeType Project</a>.
</div>
- powered by
- <a href="https://www.mkdocs.org" target="_blank" rel="noopener">MkDocs</a>
- and
+ Made with
<a href="https://squidfunk.github.io/mkdocs-material/" target="_blank" rel="noopener">
- Material for MkDocs</a>
+ Material for MkDocs
+ </a>
+
</div>
</div>
@@ -1894,10 +1932,13 @@
</footer>
</div>
+ <div class="md-dialog" data-md-component="dialog">
+ <div class="md-dialog__inner md-typeset"></div>
+ </div>
+ <script id="__config" type="application/json">{"base": ".", "features": [], "translations": {"clipboard.copy": "Copy to clipboard", "clipboard.copied": "Copied to clipboard", "search.config.lang": "en", "search.config.pipeline": "trimmer, stopWordFilter", "search.config.separator": "[\\s\\-]+", "search.placeholder": "Search", "search.result.placeholder": "Type to start searching", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.term.missing": "Missing", "select.version.title": "Select version"}, "search": "assets/javascripts/workers/search.477d984a.min.js", "version": null}</script>
- <script src="assets/javascripts/application.c33a9706.js"></script>
-
- <script>app.initialize({version:"1.1",url:{base:"."}})</script>
+
+ <script src="assets/javascripts/bundle.82b56eb2.min.js"></script>
<script src="javascripts/extra.js"></script>
diff --git a/freetype/docs/reference/ft2-quick_advance.html b/freetype/docs/reference/ft2-quick_advance.html
index 3fb8a56f..66b3207a 100644
--- a/freetype/docs/reference/ft2-quick_advance.html
+++ b/freetype/docs/reference/ft2-quick_advance.html
@@ -1,145 +1,136 @@
-
-
-
<!doctype html>
<html lang="en" class="no-js">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
- <meta http-equiv="x-ua-compatible" content="ie=edge">
- <meta name="description" content="API Reference Documentation for FreeType-2.10.4">
+ <meta name="description" content="API Reference Documentation for FreeType-2.11.1">
<meta name="author" content="FreeType Contributors">
- <meta name="lang:clipboard.copy" content="Copy to clipboard">
-
- <meta name="lang:clipboard.copied" content="Copied to clipboard">
-
- <meta name="lang:search.language" content="en">
-
- <meta name="lang:search.pipeline.stopwords" content="True">
-
- <meta name="lang:search.pipeline.trimmer" content="True">
-
- <meta name="lang:search.result.none" content="No matching documents">
-
- <meta name="lang:search.result.one" content="1 matching document">
-
- <meta name="lang:search.result.other" content="# matching documents">
-
- <meta name="lang:search.tokenizer" content="[\s\-]+">
-
- <link rel="shortcut icon" href="images/favico.ico">
- <meta name="generator" content="mkdocs-1.1, mkdocs-material-4.6.3">
+ <link rel="icon" href="images/favico.ico">
+ <meta name="generator" content="mkdocs-1.2.1, mkdocs-material-7.1.9">
- <title>Quick retrieval of advance values - FreeType-2.10.4 API Reference</title>
+ <title>Quick retrieval of advance values - FreeType-2.11.1 API Reference</title>
- <link rel="stylesheet" href="assets/stylesheets/application.adb8469c.css">
-
- <link rel="stylesheet" href="assets/stylesheets/application-palette.a8b3c06d.css">
-
+ <link rel="stylesheet" href="assets/stylesheets/main.ca7ac06f.min.css">
+ <link rel="stylesheet" href="assets/stylesheets/palette.f1a3b89f.min.css">
+
+
+
+ <meta name="theme-color" content="#4cae4f">
- <meta name="theme-color" content="#4caf50">
- <script src="assets/javascripts/modernizr.86422ebf.js"></script>
-
- <link href="https://fonts.gstatic.com" rel="preconnect" crossorigin>
+
+ <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Noto+Serif:300,400,400i,700%7CRoboto+Mono&display=fallback">
- <style>body,input{font-family:"Noto Serif","Helvetica Neue",Helvetica,Arial,sans-serif}code,kbd,pre{font-family:"Roboto Mono","Courier New",Courier,monospace}</style>
+ <style>:root{--md-text-font-family:"Noto Serif";--md-code-font-family:"Roboto Mono"}</style>
- <link rel="stylesheet" href="assets/fonts/material-icons.css">
<link rel="stylesheet" href="stylesheets/extra.css">
+
+
</head>
+
+
+
+
- <body dir="ltr" data-md-color-primary="green" data-md-color-accent="green">
+ <body dir="ltr" data-md-color-scheme="" data-md-color-primary="green" data-md-color-accent="green">
- <svg class="md-svg">
- <defs>
-
-
- </defs>
- </svg>
- <input class="md-toggle" data-md-toggle="drawer" type="checkbox" id="__drawer" autocomplete="off">
- <input class="md-toggle" data-md-toggle="search" type="checkbox" id="__search" autocomplete="off">
- <label class="md-overlay" data-md-component="overlay" for="__drawer"></label>
- <a href="#quick-retrieval-of-advance-values" tabindex="0" class="md-skip">
- Skip to content
- </a>
+ <script>function __prefix(e){return new URL(".",location).pathname+"."+e}function __get(e,t=localStorage){return JSON.parse(t.getItem(__prefix(e)))}</script>
+ <input class="md-toggle" data-md-toggle="drawer" type="checkbox" id="__drawer" autocomplete="off">
+ <input class="md-toggle" data-md-toggle="search" type="checkbox" id="__search" autocomplete="off">
+ <label class="md-overlay" for="__drawer"></label>
+ <div data-md-component="skip">
+
+
+ <a href="#quick-retrieval-of-advance-values" class="md-skip">
+ Skip to content
+ </a>
+
+ </div>
+ <div data-md-component="announce">
+
+ </div>
<header class="md-header" data-md-component="header">
- <nav class="md-header-nav md-grid">
- <div class="md-flex">
- <div class="md-flex__cell md-flex__cell--shrink">
- <a href="." title="FreeType-2.10.4 API Reference" aria-label="FreeType-2.10.4 API Reference" class="md-header-nav__button md-logo">
-
- <img alt="logo" src="images/favico.ico" width="24" height="24">
-
- </a>
- </div>
- <div class="md-flex__cell md-flex__cell--shrink">
- <label class="md-icon md-icon--menu md-header-nav__button" for="__drawer"></label>
- </div>
- <div class="md-flex__cell md-flex__cell--stretch">
- <div class="md-flex__ellipsis md-header-nav__title" data-md-component="title">
-
- <span class="md-header-nav__topic">
- FreeType-2.10.4 API Reference
- </span>
- <span class="md-header-nav__topic">
-
- Quick retrieval of advance values
-
- </span>
-
+ <nav class="md-header__inner md-grid" aria-label="Header">
+ <a href="index.html" title="FreeType-2.11.1 API Reference" class="md-header__button md-logo" aria-label="FreeType-2.11.1 API Reference" data-md-component="logo">
+
+ <img src="images/favico.ico" alt="logo">
+
+ </a>
+ <label class="md-header__button md-icon" for="__drawer">
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M3 6h18v2H3V6m0 5h18v2H3v-2m0 5h18v2H3v-2z"/></svg>
+ </label>
+ <div class="md-header__title" data-md-component="header-title">
+ <div class="md-header__ellipsis">
+ <div class="md-header__topic">
+ <span class="md-ellipsis">
+ FreeType-2.11.1 API Reference
+ </span>
+ </div>
+ <div class="md-header__topic" data-md-component="header-topic">
+ <span class="md-ellipsis">
+
+ Quick retrieval of advance values
+
+ </span>
</div>
</div>
- <div class="md-flex__cell md-flex__cell--shrink">
-
- <label class="md-icon md-icon--search md-header-nav__button" for="__search"></label>
-
+ </div>
+
+
+
+ <label class="md-header__button md-icon" for="__search">
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M9.5 3A6.5 6.5 0 0 1 16 9.5c0 1.61-.59 3.09-1.56 4.23l.27.27h.79l5 5-1.5 1.5-5-5v-.79l-.27-.27A6.516 6.516 0 0 1 9.5 16 6.5 6.5 0 0 1 3 9.5 6.5 6.5 0 0 1 9.5 3m0 2C7 5 5 7 5 9.5S7 14 9.5 14 14 12 14 9.5 12 5 9.5 5z"/></svg>
+ </label>
+
<div class="md-search" data-md-component="search" role="dialog">
<label class="md-search__overlay" for="__search"></label>
<div class="md-search__inner" role="search">
<form class="md-search__form" name="search">
- <input type="text" class="md-search__input" aria-label="search" name="query" placeholder="Search" autocapitalize="off" autocorrect="off" autocomplete="off" spellcheck="false" data-md-component="query" data-md-state="active">
- <label class="md-icon md-search__icon" for="__search"></label>
- <button type="reset" class="md-icon md-search__icon" data-md-component="reset" tabindex="-1">
- &#xE5CD;
+ <input type="text" class="md-search__input" name="query" aria-label="Search" placeholder="Search" autocapitalize="off" autocorrect="off" autocomplete="off" spellcheck="false" data-md-component="search-query" data-md-state="active" required>
+ <label class="md-search__icon md-icon" for="__search">
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M9.5 3A6.5 6.5 0 0 1 16 9.5c0 1.61-.59 3.09-1.56 4.23l.27.27h.79l5 5-1.5 1.5-5-5v-.79l-.27-.27A6.516 6.516 0 0 1 9.5 16 6.5 6.5 0 0 1 3 9.5 6.5 6.5 0 0 1 9.5 3m0 2C7 5 5 7 5 9.5S7 14 9.5 14 14 12 14 9.5 12 5 9.5 5z"/></svg>
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M20 11v2H8l5.5 5.5-1.42 1.42L4.16 12l7.92-7.92L13.5 5.5 8 11h12z"/></svg>
+ </label>
+ <button type="reset" class="md-search__icon md-icon" aria-label="Clear" tabindex="-1">
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z"/></svg>
</button>
</form>
<div class="md-search__output">
<div class="md-search__scrollwrap" data-md-scrollfix>
- <div class="md-search-result" data-md-component="result">
+ <div class="md-search-result" data-md-component="search-result">
<div class="md-search-result__meta">
- Type to start searching
+ Initializing search
</div>
<ol class="md-search-result__list"></ol>
</div>
@@ -147,33 +138,35 @@
</div>
</div>
</div>
-
- </div>
-
- </div>
+
+
</nav>
</header>
- <div class="md-container">
+ <div class="md-container" data-md-component="container">
-
+
- <main class="md-main" role="main">
- <div class="md-main__inner md-grid" data-md-component="container">
+ <main class="md-main" data-md-component="main">
+ <div class="md-main__inner md-grid">
- <div class="md-sidebar md-sidebar--primary" data-md-component="navigation">
+
+ <div class="md-sidebar md-sidebar--primary" data-md-component="sidebar" data-md-type="navigation" >
<div class="md-sidebar__scrollwrap">
<div class="md-sidebar__inner">
- <nav class="md-nav md-nav--primary" data-md-level="0">
- <label class="md-nav__title md-nav__title--site" for="__drawer">
- <a href="." title="FreeType-2.10.4 API Reference" class="md-nav__button md-logo">
-
- <img alt="logo" src="images/favico.ico" width="48" height="48">
+
+
+
+<nav class="md-nav md-nav--primary" aria-label="Navigation" data-md-level="0">
+ <label class="md-nav__title" for="__drawer">
+ <a href="index.html" title="FreeType-2.11.1 API Reference" class="md-nav__button md-logo" aria-label="FreeType-2.11.1 API Reference" data-md-component="logo">
+ <img src="images/favico.ico" alt="logo">
+
</a>
- FreeType-2.10.4 API Reference
+ FreeType-2.11.1 API Reference
</label>
<ul class="md-nav__list" data-md-scrollfix>
@@ -182,516 +175,564 @@
-
- <li class="md-nav__item">
- <a href="index.html" title="TOC" class="md-nav__link">
- TOC
- </a>
- </li>
+
+
+
+ <li class="md-nav__item">
+ <a href="index.html" class="md-nav__link">
+ TOC
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-index.html" title="Index" class="md-nav__link">
- Index
- </a>
- </li>
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-index.html" class="md-nav__link">
+ Index
+ </a>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-3" type="checkbox" id="nav-3">
+
+
+
- <label class="md-nav__link" for="nav-3">
- General Remarks
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-3">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_3" type="checkbox" id="__nav_3" >
+
+ <label class="md-nav__link" for="__nav_3">
General Remarks
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
+ <nav class="md-nav" aria-label="General Remarks" data-md-level="1">
+ <label class="md-nav__title" for="__nav_3">
+ <span class="md-nav__icon md-icon"></span>
+ General Remarks
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-header_inclusion.html" title="FreeType's header inclusion scheme" class="md-nav__link">
- FreeType's header inclusion scheme
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-preamble.html" class="md-nav__link">
+ Preamble
+ </a>
+ </li>
+
-
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-header_inclusion.html" class="md-nav__link">
+ FreeType's header inclusion scheme
+ </a>
+ </li>
+
- <li class="md-nav__item">
- <a href="ft2-user_allocation.html" title="User allocation" class="md-nav__link">
- User allocation
- </a>
- </li>
+
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-user_allocation.html" class="md-nav__link">
+ User allocation
+ </a>
+ </li>
+
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-4" type="checkbox" id="nav-4">
+
+
+
- <label class="md-nav__link" for="nav-4">
- Core API
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-4">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_4" type="checkbox" id="__nav_4" >
+
+ <label class="md-nav__link" for="__nav_4">
Core API
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
+ <nav class="md-nav" aria-label="Core API" data-md-level="1">
+ <label class="md-nav__title" for="__nav_4">
+ <span class="md-nav__icon md-icon"></span>
+ Core API
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-version.html" title="FreeType Version" class="md-nav__link">
- FreeType Version
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-version.html" class="md-nav__link">
+ FreeType Version
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-basic_types.html" title="Basic Data Types" class="md-nav__link">
- Basic Data Types
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-basic_types.html" class="md-nav__link">
+ Basic Data Types
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-base_interface.html" title="Base Interface" class="md-nav__link">
- Base Interface
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-base_interface.html" class="md-nav__link">
+ Base Interface
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-glyph_variants.html" title="Unicode Variation Sequences" class="md-nav__link">
- Unicode Variation Sequences
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-glyph_variants.html" class="md-nav__link">
+ Unicode Variation Sequences
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-color_management.html" class="md-nav__link">
+ Glyph Color Management
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-color_management.html" title="Glyph Color Management" class="md-nav__link">
- Glyph Color Management
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-layer_management.html" title="Glyph Layer Management" class="md-nav__link">
- Glyph Layer Management
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-layer_management.html" class="md-nav__link">
+ Glyph Layer Management
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-glyph_management.html" class="md-nav__link">
+ Glyph Management
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-glyph_management.html" title="Glyph Management" class="md-nav__link">
- Glyph Management
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-mac_specific.html" title="Mac Specific Interface" class="md-nav__link">
- Mac Specific Interface
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-mac_specific.html" class="md-nav__link">
+ Mac Specific Interface
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-sizes_management.html" class="md-nav__link">
+ Size Management
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-sizes_management.html" title="Size Management" class="md-nav__link">
- Size Management
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-header_file_macros.html" title="Header File Macros" class="md-nav__link">
- Header File Macros
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-header_file_macros.html" class="md-nav__link">
+ Header File Macros
+ </a>
+ </li>
+
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-5" type="checkbox" id="nav-5">
+
+
+
- <label class="md-nav__link" for="nav-5">
- Format-Specific API
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-5">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_5" type="checkbox" id="__nav_5" >
+
+ <label class="md-nav__link" for="__nav_5">
Format-Specific API
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
-
+ <nav class="md-nav" aria-label="Format-Specific API" data-md-level="1">
+ <label class="md-nav__title" for="__nav_5">
+ <span class="md-nav__icon md-icon"></span>
+ Format-Specific API
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
-
-
-
- <li class="md-nav__item">
- <a href="ft2-multiple_masters.html" title="Multiple Masters" class="md-nav__link">
- Multiple Masters
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-multiple_masters.html" class="md-nav__link">
+ Multiple Masters
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-truetype_tables.html" class="md-nav__link">
+ TrueType Tables
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-truetype_tables.html" title="TrueType Tables" class="md-nav__link">
- TrueType Tables
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-type1_tables.html" title="Type 1 Tables" class="md-nav__link">
- Type 1 Tables
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-type1_tables.html" class="md-nav__link">
+ Type 1 Tables
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-sfnt_names.html" class="md-nav__link">
+ SFNT Names
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-sfnt_names.html" title="SFNT Names" class="md-nav__link">
- SFNT Names
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-bdf_fonts.html" title="BDF and PCF Files" class="md-nav__link">
- BDF and PCF Files
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-bdf_fonts.html" class="md-nav__link">
+ BDF and PCF Files
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-cid_fonts.html" class="md-nav__link">
+ CID Fonts
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-cid_fonts.html" title="CID Fonts" class="md-nav__link">
- CID Fonts
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-pfr_fonts.html" title="PFR Fonts" class="md-nav__link">
- PFR Fonts
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-pfr_fonts.html" class="md-nav__link">
+ PFR Fonts
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-winfnt_fonts.html" class="md-nav__link">
+ Window FNT Files
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-winfnt_fonts.html" title="Window FNT Files" class="md-nav__link">
- Window FNT Files
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-font_formats.html" title="Font Formats" class="md-nav__link">
- Font Formats
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-font_formats.html" class="md-nav__link">
+ Font Formats
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-gasp_table.html" class="md-nav__link">
+ Gasp Table
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-gasp_table.html" title="Gasp Table" class="md-nav__link">
- Gasp Table
- </a>
- </li>
-
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-6" type="checkbox" id="nav-6">
+
+
+
- <label class="md-nav__link" for="nav-6">
- Controlling FreeType Modules
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-6">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_6" type="checkbox" id="__nav_6" >
+
+ <label class="md-nav__link" for="__nav_6">
Controlling FreeType Modules
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
-
-
+ <nav class="md-nav" aria-label="Controlling FreeType Modules" data-md-level="1">
+ <label class="md-nav__title" for="__nav_6">
+ <span class="md-nav__icon md-icon"></span>
+ Controlling FreeType Modules
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-auto_hinter.html" class="md-nav__link">
+ The auto-hinter
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-auto_hinter.html" title="The auto-hinter" class="md-nav__link">
- The auto-hinter
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-cff_driver.html" title="The CFF driver" class="md-nav__link">
- The CFF driver
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-cff_driver.html" class="md-nav__link">
+ The CFF driver
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-t1_cid_driver.html" title="The Type 1 and CID drivers" class="md-nav__link">
- The Type 1 and CID drivers
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-t1_cid_driver.html" class="md-nav__link">
+ The Type 1 and CID drivers
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-tt_driver.html" title="The TrueType driver" class="md-nav__link">
- The TrueType driver
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-tt_driver.html" class="md-nav__link">
+ The TrueType driver
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-pcf_driver.html" class="md-nav__link">
+ The PCF driver
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-pcf_driver.html" title="The PCF driver" class="md-nav__link">
- The PCF driver
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-properties.html" title="Driver properties" class="md-nav__link">
- Driver properties
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-properties.html" class="md-nav__link">
+ Driver properties
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-parameter_tags.html" title="Parameter Tags" class="md-nav__link">
- Parameter Tags
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-parameter_tags.html" class="md-nav__link">
+ Parameter Tags
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-lcd_rendering.html" title="Subpixel Rendering" class="md-nav__link">
- Subpixel Rendering
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-lcd_rendering.html" class="md-nav__link">
+ Subpixel Rendering
+ </a>
+ </li>
+
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-7" type="checkbox" id="nav-7">
+
+
+
- <label class="md-nav__link" for="nav-7">
- Cache Sub-System
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-7">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_7" type="checkbox" id="__nav_7" >
+
+ <label class="md-nav__link" for="__nav_7">
Cache Sub-System
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
+ <nav class="md-nav" aria-label="Cache Sub-System" data-md-level="1">
+ <label class="md-nav__title" for="__nav_7">
+ <span class="md-nav__icon md-icon"></span>
+ Cache Sub-System
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-cache_subsystem.html" title="Cache Sub-System" class="md-nav__link">
- Cache Sub-System
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-cache_subsystem.html" class="md-nav__link">
+ Cache Sub-System
+ </a>
+ </li>
+
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
@@ -699,89 +740,99 @@
-
-
- <li class="md-nav__item md-nav__item--active md-nav__item--nested">
+
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-8" type="checkbox" id="nav-8" checked>
+
+
- <label class="md-nav__link" for="nav-8">
- Support API
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-8">
+ <li class="md-nav__item md-nav__item--active md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_8" type="checkbox" id="__nav_8" checked>
+
+ <label class="md-nav__link" for="__nav_8">
Support API
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
-
-
+ <nav class="md-nav" aria-label="Support API" data-md-level="1">
+ <label class="md-nav__title" for="__nav_8">
+ <span class="md-nav__icon md-icon"></span>
+ Support API
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-computations.html" class="md-nav__link">
+ Computations
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-computations.html" title="Computations" class="md-nav__link">
- Computations
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-list_processing.html" title="List Processing" class="md-nav__link">
- List Processing
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-list_processing.html" class="md-nav__link">
+ List Processing
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-outline_processing.html" title="Outline Processing" class="md-nav__link">
- Outline Processing
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-outline_processing.html" class="md-nav__link">
+ Outline Processing
+ </a>
+ </li>
+
-
-
-
-
+
+
-
-
- <li class="md-nav__item md-nav__item--active">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="toc" type="checkbox" id="__toc">
+
+
+ <li class="md-nav__item md-nav__item--active">
-
-
- <label class="md-nav__link md-nav__link--active" for="__toc">
+ <input class="md-nav__toggle md-toggle" data-md-toggle="toc" type="checkbox" id="__toc">
+
+
+
+
+
+ <label class="md-nav__link md-nav__link--active" for="__toc">
+ Quick retrieval of advance values
+ <span class="md-nav__icon md-icon"></span>
+ </label>
+
+ <a href="ft2-quick_advance.html" class="md-nav__link md-nav__link--active">
Quick retrieval of advance values
- </label>
-
- <a href="ft2-quick_advance.html" title="Quick retrieval of advance values" class="md-nav__link md-nav__link--active">
- Quick retrieval of advance values
- </a>
-
+ </a>
-<nav class="md-nav md-nav--secondary">
+
+<nav class="md-nav md-nav--secondary" aria-label="Table of contents">
+
- <label class="md-nav__title" for="__toc">Table of contents</label>
- <ul class="md-nav__list" data-md-scrollfix>
+ <label class="md-nav__title" for="__toc">
+ <span class="md-nav__icon md-icon"></span>
+ Table of contents
+ </label>
+ <ul class="md-nav__list" data-md-component="toc" data-md-scrollfix>
<li class="md-nav__item">
<a href="#synopsis" class="md-nav__link">
@@ -811,236 +862,258 @@
</li>
-
-
-
-
</ul>
</nav>
-
- </li>
+
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-bitmap_handling.html" title="Bitmap Handling" class="md-nav__link">
- Bitmap Handling
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-bitmap_handling.html" class="md-nav__link">
+ Bitmap Handling
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-raster.html" class="md-nav__link">
+ Scanline Converter
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-raster.html" title="Scanline Converter" class="md-nav__link">
- Scanline Converter
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-glyph_stroker.html" title="Glyph Stroker" class="md-nav__link">
- Glyph Stroker
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-glyph_stroker.html" class="md-nav__link">
+ Glyph Stroker
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-system_interface.html" class="md-nav__link">
+ System Interface
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-system_interface.html" title="System Interface" class="md-nav__link">
- System Interface
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-module_management.html" title="Module Management" class="md-nav__link">
- Module Management
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-module_management.html" class="md-nav__link">
+ Module Management
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-gzip.html" class="md-nav__link">
+ GZIP Streams
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-gzip.html" title="GZIP Streams" class="md-nav__link">
- GZIP Streams
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-lzw.html" title="LZW Streams" class="md-nav__link">
- LZW Streams
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-lzw.html" class="md-nav__link">
+ LZW Streams
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-bzip2.html" class="md-nav__link">
+ BZIP2 Streams
+ </a>
+ </li>
+
+
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-debugging_apis.html" class="md-nav__link">
+ External Debugging APIs
+ </a>
+ </li>
+
- <li class="md-nav__item">
- <a href="ft2-bzip2.html" title="BZIP2 Streams" class="md-nav__link">
- BZIP2 Streams
- </a>
- </li>
-
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-9" type="checkbox" id="nav-9">
+
+
+
- <label class="md-nav__link" for="nav-9">
- Error Codes
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-9">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_9" type="checkbox" id="__nav_9" >
+
+ <label class="md-nav__link" for="__nav_9">
Error Codes
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
-
+ <nav class="md-nav" aria-label="Error Codes" data-md-level="1">
+ <label class="md-nav__title" for="__nav_9">
+ <span class="md-nav__icon md-icon"></span>
+ Error Codes
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
-
-
-
- <li class="md-nav__item">
- <a href="ft2-error_enumerations.html" title="Error Enumerations" class="md-nav__link">
- Error Enumerations
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-error_enumerations.html" class="md-nav__link">
+ Error Enumerations
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-error_code_values.html" title="Error Code Values" class="md-nav__link">
- Error Code Values
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-error_code_values.html" class="md-nav__link">
+ Error Code Values
+ </a>
+ </li>
+
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-10" type="checkbox" id="nav-10">
+
+
+
- <label class="md-nav__link" for="nav-10">
- Miscellaneous
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-10">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_10" type="checkbox" id="__nav_10" >
+
+ <label class="md-nav__link" for="__nav_10">
Miscellaneous
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
-
+ <nav class="md-nav" aria-label="Miscellaneous" data-md-level="1">
+ <label class="md-nav__title" for="__nav_10">
+ <span class="md-nav__icon md-icon"></span>
+ Miscellaneous
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
-
-
-
- <li class="md-nav__item">
- <a href="ft2-gx_validation.html" title="TrueTypeGX/AAT Validation" class="md-nav__link">
- TrueTypeGX/AAT Validation
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-gx_validation.html" class="md-nav__link">
+ TrueTypeGX/AAT Validation
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-incremental.html" class="md-nav__link">
+ Incremental Loading
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-incremental.html" title="Incremental Loading" class="md-nav__link">
- Incremental Loading
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-truetype_engine.html" title="The TrueType Engine" class="md-nav__link">
- The TrueType Engine
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-truetype_engine.html" class="md-nav__link">
+ The TrueType Engine
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-ot_validation.html" class="md-nav__link">
+ OpenType Validation
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-ot_validation.html" title="OpenType Validation" class="md-nav__link">
- OpenType Validation
- </a>
- </li>
-
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
</ul>
@@ -1050,18 +1123,23 @@
</div>
- <div class="md-sidebar md-sidebar--secondary" data-md-component="toc">
+
+ <div class="md-sidebar md-sidebar--secondary" data-md-component="sidebar" data-md-type="toc" >
<div class="md-sidebar__scrollwrap">
<div class="md-sidebar__inner">
-<nav class="md-nav md-nav--secondary">
+<nav class="md-nav md-nav--secondary" aria-label="Table of contents">
+
- <label class="md-nav__title" for="__toc">Table of contents</label>
- <ul class="md-nav__list" data-md-scrollfix>
+ <label class="md-nav__title" for="__toc">
+ <span class="md-nav__icon md-icon"></span>
+ Table of contents
+ </label>
+ <ul class="md-nav__list" data-md-component="toc" data-md-scrollfix>
<li class="md-nav__item">
<a href="#synopsis" class="md-nav__link">
@@ -1091,10 +1169,6 @@
</li>
-
-
-
-
</ul>
</nav>
@@ -1103,7 +1177,7 @@
</div>
- <div class="md-content">
+ <div class="md-content" data-md-component="content">
<article class="md-content__inner md-typeset">
@@ -1124,7 +1198,6 @@
<p>Retrieve the advance value of a given glyph outline in an <code><a href="ft2-base_interface.html#ft_face">FT_Face</a></code>.</p>
<h4>input</h4>
-
<table class="fields">
<tr><td class="val" id="face">face</td><td class="desc">
<p>The source <code><a href="ft2-base_interface.html#ft_face">FT_Face</a></code> handle.</p>
@@ -1138,7 +1211,6 @@
</table>
<h4>output</h4>
-
<table class="fields">
<tr><td class="val" id="padvance">padvance</td><td class="desc">
<p>The advance value. If scaling is performed (based on the value of <code>load_flags</code>), the advance value is in 16.16 format. Otherwise, it is in font units.</p>
@@ -1167,7 +1239,6 @@
<p>Retrieve the advance values of several glyph outlines in an <code><a href="ft2-base_interface.html#ft_face">FT_Face</a></code>.</p>
<h4>input</h4>
-
<table class="fields">
<tr><td class="val" id="face">face</td><td class="desc">
<p>The source <code><a href="ft2-base_interface.html#ft_face">FT_Face</a></code> handle.</p>
@@ -1184,7 +1255,6 @@
</table>
<h4>output</h4>
-
<table class="fields">
<tr><td class="val" id="padvance">padvance</td><td class="desc">
<p>The advance values. This array, to be provided by the caller, must contain at least <code>count</code> elements.</p>
@@ -1213,9 +1283,6 @@
<p>Normal and bytecode hinted modes that require loading, scaling, and hinting of the glyph outline, are extremely slow by comparison.</p>
<hr>
-
-
-
@@ -1225,59 +1292,60 @@
</article>
</div>
</div>
+
</main>
<footer class="md-footer">
- <div class="md-footer-nav">
- <nav class="md-footer-nav__inner md-grid">
+ <nav class="md-footer__inner md-grid" aria-label="Footer">
+
- <a href="ft2-outline_processing.html" title="Outline Processing" class="md-flex md-footer-nav__link md-footer-nav__link--prev" rel="prev">
- <div class="md-flex__cell md-flex__cell--shrink">
- <i class="md-icon md-icon--arrow-back md-footer-nav__button"></i>
- </div>
- <div class="md-flex__cell md-flex__cell--stretch md-footer-nav__title">
- <span class="md-flex__ellipsis">
- <span class="md-footer-nav__direction">
- Previous
- </span>
- Outline Processing
+ <a href="ft2-outline_processing.html" class="md-footer__link md-footer__link--prev" aria-label="Previous: Outline Processing" rel="prev">
+ <div class="md-footer__button md-icon">
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M20 11v2H8l5.5 5.5-1.42 1.42L4.16 12l7.92-7.92L13.5 5.5 8 11h12z"/></svg>
+ </div>
+ <div class="md-footer__title">
+ <div class="md-ellipsis">
+ <span class="md-footer__direction">
+ Previous
</span>
+ Outline Processing
</div>
- </a>
-
+ </div>
+ </a>
+
+
- <a href="ft2-bitmap_handling.html" title="Bitmap Handling" class="md-flex md-footer-nav__link md-footer-nav__link--next" rel="next">
- <div class="md-flex__cell md-flex__cell--stretch md-footer-nav__title">
- <span class="md-flex__ellipsis">
- <span class="md-footer-nav__direction">
- Next
- </span>
- Bitmap Handling
+ <a href="ft2-bitmap_handling.html" class="md-footer__link md-footer__link--next" aria-label="Next: Bitmap Handling" rel="next">
+ <div class="md-footer__title">
+ <div class="md-ellipsis">
+ <span class="md-footer__direction">
+ Next
</span>
+ Bitmap Handling
</div>
- <div class="md-flex__cell md-flex__cell--shrink">
- <i class="md-icon md-icon--arrow-forward md-footer-nav__button"></i>
- </div>
- </a>
-
- </nav>
- </div>
+ </div>
+ <div class="md-footer__button md-icon">
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M4 11v2h12l-5.5 5.5 1.42 1.42L19.84 12l-7.92-7.92L10.5 5.5 16 11H4z"/></svg>
+ </div>
+ </a>
+
+ </nav>
<div class="md-footer-meta md-typeset">
<div class="md-footer-meta__inner md-grid">
<div class="md-footer-copyright">
<div class="md-footer-copyright__highlight">
- Copyright 2020 <a href = "https://www.freetype.org/license.html">The FreeType Project</a>.
+ Copyright 2021 <a href = "https://www.freetype.org/license.html">The FreeType Project</a>.
</div>
- powered by
- <a href="https://www.mkdocs.org" target="_blank" rel="noopener">MkDocs</a>
- and
+ Made with
<a href="https://squidfunk.github.io/mkdocs-material/" target="_blank" rel="noopener">
- Material for MkDocs</a>
+ Material for MkDocs
+ </a>
+
</div>
</div>
@@ -1285,10 +1353,13 @@
</footer>
</div>
+ <div class="md-dialog" data-md-component="dialog">
+ <div class="md-dialog__inner md-typeset"></div>
+ </div>
+ <script id="__config" type="application/json">{"base": ".", "features": [], "translations": {"clipboard.copy": "Copy to clipboard", "clipboard.copied": "Copied to clipboard", "search.config.lang": "en", "search.config.pipeline": "trimmer, stopWordFilter", "search.config.separator": "[\\s\\-]+", "search.placeholder": "Search", "search.result.placeholder": "Type to start searching", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.term.missing": "Missing", "select.version.title": "Select version"}, "search": "assets/javascripts/workers/search.477d984a.min.js", "version": null}</script>
- <script src="assets/javascripts/application.c33a9706.js"></script>
-
- <script>app.initialize({version:"1.1",url:{base:"."}})</script>
+
+ <script src="assets/javascripts/bundle.82b56eb2.min.js"></script>
<script src="javascripts/extra.js"></script>
diff --git a/freetype/docs/reference/ft2-raster.html b/freetype/docs/reference/ft2-raster.html
index c9bf6a6d..be8095a9 100644
--- a/freetype/docs/reference/ft2-raster.html
+++ b/freetype/docs/reference/ft2-raster.html
@@ -1,145 +1,136 @@
-
-
-
<!doctype html>
<html lang="en" class="no-js">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
- <meta http-equiv="x-ua-compatible" content="ie=edge">
- <meta name="description" content="API Reference Documentation for FreeType-2.10.4">
+ <meta name="description" content="API Reference Documentation for FreeType-2.11.1">
<meta name="author" content="FreeType Contributors">
- <meta name="lang:clipboard.copy" content="Copy to clipboard">
-
- <meta name="lang:clipboard.copied" content="Copied to clipboard">
-
- <meta name="lang:search.language" content="en">
-
- <meta name="lang:search.pipeline.stopwords" content="True">
-
- <meta name="lang:search.pipeline.trimmer" content="True">
-
- <meta name="lang:search.result.none" content="No matching documents">
-
- <meta name="lang:search.result.one" content="1 matching document">
-
- <meta name="lang:search.result.other" content="# matching documents">
-
- <meta name="lang:search.tokenizer" content="[\s\-]+">
-
- <link rel="shortcut icon" href="images/favico.ico">
- <meta name="generator" content="mkdocs-1.1, mkdocs-material-4.6.3">
+ <link rel="icon" href="images/favico.ico">
+ <meta name="generator" content="mkdocs-1.2.1, mkdocs-material-7.1.9">
- <title>Scanline Converter - FreeType-2.10.4 API Reference</title>
+ <title>Scanline Converter - FreeType-2.11.1 API Reference</title>
- <link rel="stylesheet" href="assets/stylesheets/application.adb8469c.css">
-
- <link rel="stylesheet" href="assets/stylesheets/application-palette.a8b3c06d.css">
-
+ <link rel="stylesheet" href="assets/stylesheets/main.ca7ac06f.min.css">
+ <link rel="stylesheet" href="assets/stylesheets/palette.f1a3b89f.min.css">
+
+
+
+ <meta name="theme-color" content="#4cae4f">
- <meta name="theme-color" content="#4caf50">
- <script src="assets/javascripts/modernizr.86422ebf.js"></script>
-
- <link href="https://fonts.gstatic.com" rel="preconnect" crossorigin>
+
+ <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Noto+Serif:300,400,400i,700%7CRoboto+Mono&display=fallback">
- <style>body,input{font-family:"Noto Serif","Helvetica Neue",Helvetica,Arial,sans-serif}code,kbd,pre{font-family:"Roboto Mono","Courier New",Courier,monospace}</style>
+ <style>:root{--md-text-font-family:"Noto Serif";--md-code-font-family:"Roboto Mono"}</style>
- <link rel="stylesheet" href="assets/fonts/material-icons.css">
<link rel="stylesheet" href="stylesheets/extra.css">
+
+
</head>
+
- <body dir="ltr" data-md-color-primary="green" data-md-color-accent="green">
+
+
+
+ <body dir="ltr" data-md-color-scheme="" data-md-color-primary="green" data-md-color-accent="green">
- <svg class="md-svg">
- <defs>
-
-
- </defs>
- </svg>
- <input class="md-toggle" data-md-toggle="drawer" type="checkbox" id="__drawer" autocomplete="off">
- <input class="md-toggle" data-md-toggle="search" type="checkbox" id="__search" autocomplete="off">
- <label class="md-overlay" data-md-component="overlay" for="__drawer"></label>
- <a href="#scanline-converter" tabindex="0" class="md-skip">
- Skip to content
- </a>
+ <script>function __prefix(e){return new URL(".",location).pathname+"."+e}function __get(e,t=localStorage){return JSON.parse(t.getItem(__prefix(e)))}</script>
+ <input class="md-toggle" data-md-toggle="drawer" type="checkbox" id="__drawer" autocomplete="off">
+ <input class="md-toggle" data-md-toggle="search" type="checkbox" id="__search" autocomplete="off">
+ <label class="md-overlay" for="__drawer"></label>
+ <div data-md-component="skip">
+
+
+ <a href="#scanline-converter" class="md-skip">
+ Skip to content
+ </a>
+
+ </div>
+ <div data-md-component="announce">
+
+ </div>
<header class="md-header" data-md-component="header">
- <nav class="md-header-nav md-grid">
- <div class="md-flex">
- <div class="md-flex__cell md-flex__cell--shrink">
- <a href="." title="FreeType-2.10.4 API Reference" aria-label="FreeType-2.10.4 API Reference" class="md-header-nav__button md-logo">
-
- <img alt="logo" src="images/favico.ico" width="24" height="24">
-
- </a>
- </div>
- <div class="md-flex__cell md-flex__cell--shrink">
- <label class="md-icon md-icon--menu md-header-nav__button" for="__drawer"></label>
- </div>
- <div class="md-flex__cell md-flex__cell--stretch">
- <div class="md-flex__ellipsis md-header-nav__title" data-md-component="title">
-
- <span class="md-header-nav__topic">
- FreeType-2.10.4 API Reference
- </span>
- <span class="md-header-nav__topic">
-
- Scanline Converter
-
- </span>
-
+ <nav class="md-header__inner md-grid" aria-label="Header">
+ <a href="index.html" title="FreeType-2.11.1 API Reference" class="md-header__button md-logo" aria-label="FreeType-2.11.1 API Reference" data-md-component="logo">
+
+ <img src="images/favico.ico" alt="logo">
+
+ </a>
+ <label class="md-header__button md-icon" for="__drawer">
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M3 6h18v2H3V6m0 5h18v2H3v-2m0 5h18v2H3v-2z"/></svg>
+ </label>
+ <div class="md-header__title" data-md-component="header-title">
+ <div class="md-header__ellipsis">
+ <div class="md-header__topic">
+ <span class="md-ellipsis">
+ FreeType-2.11.1 API Reference
+ </span>
+ </div>
+ <div class="md-header__topic" data-md-component="header-topic">
+ <span class="md-ellipsis">
+
+ Scanline Converter
+
+ </span>
</div>
</div>
- <div class="md-flex__cell md-flex__cell--shrink">
-
- <label class="md-icon md-icon--search md-header-nav__button" for="__search"></label>
-
+ </div>
+
+
+
+ <label class="md-header__button md-icon" for="__search">
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M9.5 3A6.5 6.5 0 0 1 16 9.5c0 1.61-.59 3.09-1.56 4.23l.27.27h.79l5 5-1.5 1.5-5-5v-.79l-.27-.27A6.516 6.516 0 0 1 9.5 16 6.5 6.5 0 0 1 3 9.5 6.5 6.5 0 0 1 9.5 3m0 2C7 5 5 7 5 9.5S7 14 9.5 14 14 12 14 9.5 12 5 9.5 5z"/></svg>
+ </label>
+
<div class="md-search" data-md-component="search" role="dialog">
<label class="md-search__overlay" for="__search"></label>
<div class="md-search__inner" role="search">
<form class="md-search__form" name="search">
- <input type="text" class="md-search__input" aria-label="search" name="query" placeholder="Search" autocapitalize="off" autocorrect="off" autocomplete="off" spellcheck="false" data-md-component="query" data-md-state="active">
- <label class="md-icon md-search__icon" for="__search"></label>
- <button type="reset" class="md-icon md-search__icon" data-md-component="reset" tabindex="-1">
- &#xE5CD;
+ <input type="text" class="md-search__input" name="query" aria-label="Search" placeholder="Search" autocapitalize="off" autocorrect="off" autocomplete="off" spellcheck="false" data-md-component="search-query" data-md-state="active" required>
+ <label class="md-search__icon md-icon" for="__search">
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M9.5 3A6.5 6.5 0 0 1 16 9.5c0 1.61-.59 3.09-1.56 4.23l.27.27h.79l5 5-1.5 1.5-5-5v-.79l-.27-.27A6.516 6.516 0 0 1 9.5 16 6.5 6.5 0 0 1 3 9.5 6.5 6.5 0 0 1 9.5 3m0 2C7 5 5 7 5 9.5S7 14 9.5 14 14 12 14 9.5 12 5 9.5 5z"/></svg>
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M20 11v2H8l5.5 5.5-1.42 1.42L4.16 12l7.92-7.92L13.5 5.5 8 11h12z"/></svg>
+ </label>
+ <button type="reset" class="md-search__icon md-icon" aria-label="Clear" tabindex="-1">
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z"/></svg>
</button>
</form>
<div class="md-search__output">
<div class="md-search__scrollwrap" data-md-scrollfix>
- <div class="md-search-result" data-md-component="result">
+ <div class="md-search-result" data-md-component="search-result">
<div class="md-search-result__meta">
- Type to start searching
+ Initializing search
</div>
<ol class="md-search-result__list"></ol>
</div>
@@ -147,33 +138,35 @@
</div>
</div>
</div>
-
- </div>
-
- </div>
+
+
</nav>
</header>
- <div class="md-container">
+ <div class="md-container" data-md-component="container">
-
+
- <main class="md-main" role="main">
- <div class="md-main__inner md-grid" data-md-component="container">
+ <main class="md-main" data-md-component="main">
+ <div class="md-main__inner md-grid">
- <div class="md-sidebar md-sidebar--primary" data-md-component="navigation">
+
+ <div class="md-sidebar md-sidebar--primary" data-md-component="sidebar" data-md-type="navigation" >
<div class="md-sidebar__scrollwrap">
<div class="md-sidebar__inner">
- <nav class="md-nav md-nav--primary" data-md-level="0">
- <label class="md-nav__title md-nav__title--site" for="__drawer">
- <a href="." title="FreeType-2.10.4 API Reference" class="md-nav__button md-logo">
-
- <img alt="logo" src="images/favico.ico" width="48" height="48">
+
+
+
+<nav class="md-nav md-nav--primary" aria-label="Navigation" data-md-level="0">
+ <label class="md-nav__title" for="__drawer">
+ <a href="index.html" title="FreeType-2.11.1 API Reference" class="md-nav__button md-logo" aria-label="FreeType-2.11.1 API Reference" data-md-component="logo">
+ <img src="images/favico.ico" alt="logo">
+
</a>
- FreeType-2.10.4 API Reference
+ FreeType-2.11.1 API Reference
</label>
<ul class="md-nav__list" data-md-scrollfix>
@@ -182,516 +175,564 @@
-
- <li class="md-nav__item">
- <a href="index.html" title="TOC" class="md-nav__link">
- TOC
- </a>
- </li>
+
+
+
+ <li class="md-nav__item">
+ <a href="index.html" class="md-nav__link">
+ TOC
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-index.html" title="Index" class="md-nav__link">
- Index
- </a>
- </li>
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-index.html" class="md-nav__link">
+ Index
+ </a>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-3" type="checkbox" id="nav-3">
+
+
+
- <label class="md-nav__link" for="nav-3">
- General Remarks
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-3">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_3" type="checkbox" id="__nav_3" >
+
+ <label class="md-nav__link" for="__nav_3">
General Remarks
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
-
+ <nav class="md-nav" aria-label="General Remarks" data-md-level="1">
+ <label class="md-nav__title" for="__nav_3">
+ <span class="md-nav__icon md-icon"></span>
+ General Remarks
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
-
-
-
- <li class="md-nav__item">
- <a href="ft2-header_inclusion.html" title="FreeType's header inclusion scheme" class="md-nav__link">
- FreeType's header inclusion scheme
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-preamble.html" class="md-nav__link">
+ Preamble
+ </a>
+ </li>
+
-
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-header_inclusion.html" class="md-nav__link">
+ FreeType's header inclusion scheme
+ </a>
+ </li>
+
- <li class="md-nav__item">
- <a href="ft2-user_allocation.html" title="User allocation" class="md-nav__link">
- User allocation
- </a>
- </li>
+
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-user_allocation.html" class="md-nav__link">
+ User allocation
+ </a>
+ </li>
+
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-4" type="checkbox" id="nav-4">
+
+
+
- <label class="md-nav__link" for="nav-4">
- Core API
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-4">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_4" type="checkbox" id="__nav_4" >
+
+ <label class="md-nav__link" for="__nav_4">
Core API
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
-
+ <nav class="md-nav" aria-label="Core API" data-md-level="1">
+ <label class="md-nav__title" for="__nav_4">
+ <span class="md-nav__icon md-icon"></span>
+ Core API
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
-
-
-
- <li class="md-nav__item">
- <a href="ft2-version.html" title="FreeType Version" class="md-nav__link">
- FreeType Version
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-version.html" class="md-nav__link">
+ FreeType Version
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-basic_types.html" title="Basic Data Types" class="md-nav__link">
- Basic Data Types
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-basic_types.html" class="md-nav__link">
+ Basic Data Types
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-base_interface.html" class="md-nav__link">
+ Base Interface
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-base_interface.html" title="Base Interface" class="md-nav__link">
- Base Interface
- </a>
- </li>
-
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-glyph_variants.html" class="md-nav__link">
+ Unicode Variation Sequences
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-glyph_variants.html" title="Unicode Variation Sequences" class="md-nav__link">
- Unicode Variation Sequences
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-color_management.html" title="Glyph Color Management" class="md-nav__link">
- Glyph Color Management
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-color_management.html" class="md-nav__link">
+ Glyph Color Management
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-layer_management.html" title="Glyph Layer Management" class="md-nav__link">
- Glyph Layer Management
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-layer_management.html" class="md-nav__link">
+ Glyph Layer Management
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-glyph_management.html" class="md-nav__link">
+ Glyph Management
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-glyph_management.html" title="Glyph Management" class="md-nav__link">
- Glyph Management
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-mac_specific.html" title="Mac Specific Interface" class="md-nav__link">
- Mac Specific Interface
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-mac_specific.html" class="md-nav__link">
+ Mac Specific Interface
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-sizes_management.html" title="Size Management" class="md-nav__link">
- Size Management
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-sizes_management.html" class="md-nav__link">
+ Size Management
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-header_file_macros.html" class="md-nav__link">
+ Header File Macros
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-header_file_macros.html" title="Header File Macros" class="md-nav__link">
- Header File Macros
- </a>
- </li>
-
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-5" type="checkbox" id="nav-5">
+
+
+
- <label class="md-nav__link" for="nav-5">
- Format-Specific API
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-5">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_5" type="checkbox" id="__nav_5" >
+
+ <label class="md-nav__link" for="__nav_5">
Format-Specific API
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
+ <nav class="md-nav" aria-label="Format-Specific API" data-md-level="1">
+ <label class="md-nav__title" for="__nav_5">
+ <span class="md-nav__icon md-icon"></span>
+ Format-Specific API
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-multiple_masters.html" title="Multiple Masters" class="md-nav__link">
- Multiple Masters
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-multiple_masters.html" class="md-nav__link">
+ Multiple Masters
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-truetype_tables.html" title="TrueType Tables" class="md-nav__link">
- TrueType Tables
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-truetype_tables.html" class="md-nav__link">
+ TrueType Tables
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-type1_tables.html" class="md-nav__link">
+ Type 1 Tables
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-type1_tables.html" title="Type 1 Tables" class="md-nav__link">
- Type 1 Tables
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-sfnt_names.html" title="SFNT Names" class="md-nav__link">
- SFNT Names
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-sfnt_names.html" class="md-nav__link">
+ SFNT Names
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-bdf_fonts.html" title="BDF and PCF Files" class="md-nav__link">
- BDF and PCF Files
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-bdf_fonts.html" class="md-nav__link">
+ BDF and PCF Files
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-cid_fonts.html" class="md-nav__link">
+ CID Fonts
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-cid_fonts.html" title="CID Fonts" class="md-nav__link">
- CID Fonts
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-pfr_fonts.html" title="PFR Fonts" class="md-nav__link">
- PFR Fonts
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-pfr_fonts.html" class="md-nav__link">
+ PFR Fonts
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-winfnt_fonts.html" title="Window FNT Files" class="md-nav__link">
- Window FNT Files
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-winfnt_fonts.html" class="md-nav__link">
+ Window FNT Files
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-font_formats.html" class="md-nav__link">
+ Font Formats
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-font_formats.html" title="Font Formats" class="md-nav__link">
- Font Formats
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-gasp_table.html" title="Gasp Table" class="md-nav__link">
- Gasp Table
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-gasp_table.html" class="md-nav__link">
+ Gasp Table
+ </a>
+ </li>
+
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-6" type="checkbox" id="nav-6">
+
+
+
- <label class="md-nav__link" for="nav-6">
- Controlling FreeType Modules
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-6">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_6" type="checkbox" id="__nav_6" >
+
+ <label class="md-nav__link" for="__nav_6">
Controlling FreeType Modules
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
+ <nav class="md-nav" aria-label="Controlling FreeType Modules" data-md-level="1">
+ <label class="md-nav__title" for="__nav_6">
+ <span class="md-nav__icon md-icon"></span>
+ Controlling FreeType Modules
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-auto_hinter.html" title="The auto-hinter" class="md-nav__link">
- The auto-hinter
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-auto_hinter.html" class="md-nav__link">
+ The auto-hinter
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-cff_driver.html" class="md-nav__link">
+ The CFF driver
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-cff_driver.html" title="The CFF driver" class="md-nav__link">
- The CFF driver
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-t1_cid_driver.html" title="The Type 1 and CID drivers" class="md-nav__link">
- The Type 1 and CID drivers
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-t1_cid_driver.html" class="md-nav__link">
+ The Type 1 and CID drivers
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-tt_driver.html" class="md-nav__link">
+ The TrueType driver
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-tt_driver.html" title="The TrueType driver" class="md-nav__link">
- The TrueType driver
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-pcf_driver.html" title="The PCF driver" class="md-nav__link">
- The PCF driver
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-pcf_driver.html" class="md-nav__link">
+ The PCF driver
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-properties.html" title="Driver properties" class="md-nav__link">
- Driver properties
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-properties.html" class="md-nav__link">
+ Driver properties
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-parameter_tags.html" class="md-nav__link">
+ Parameter Tags
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-parameter_tags.html" title="Parameter Tags" class="md-nav__link">
- Parameter Tags
- </a>
- </li>
-
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-lcd_rendering.html" class="md-nav__link">
+ Subpixel Rendering
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-lcd_rendering.html" title="Subpixel Rendering" class="md-nav__link">
- Subpixel Rendering
- </a>
- </li>
-
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-7" type="checkbox" id="nav-7">
+
+
+
- <label class="md-nav__link" for="nav-7">
- Cache Sub-System
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-7">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_7" type="checkbox" id="__nav_7" >
+
+ <label class="md-nav__link" for="__nav_7">
Cache Sub-System
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
+ <nav class="md-nav" aria-label="Cache Sub-System" data-md-level="1">
+ <label class="md-nav__title" for="__nav_7">
+ <span class="md-nav__icon md-icon"></span>
+ Cache Sub-System
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-cache_subsystem.html" title="Cache Sub-System" class="md-nav__link">
- Cache Sub-System
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-cache_subsystem.html" class="md-nav__link">
+ Cache Sub-System
+ </a>
+ </li>
+
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
@@ -699,113 +740,123 @@
-
-
- <li class="md-nav__item md-nav__item--active md-nav__item--nested">
+
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-8" type="checkbox" id="nav-8" checked>
+
+
- <label class="md-nav__link" for="nav-8">
- Support API
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-8">
+ <li class="md-nav__item md-nav__item--active md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_8" type="checkbox" id="__nav_8" checked>
+
+ <label class="md-nav__link" for="__nav_8">
Support API
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
-
+ <nav class="md-nav" aria-label="Support API" data-md-level="1">
+ <label class="md-nav__title" for="__nav_8">
+ <span class="md-nav__icon md-icon"></span>
+ Support API
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
-
-
-
- <li class="md-nav__item">
- <a href="ft2-computations.html" title="Computations" class="md-nav__link">
- Computations
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-computations.html" class="md-nav__link">
+ Computations
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-list_processing.html" title="List Processing" class="md-nav__link">
- List Processing
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-list_processing.html" class="md-nav__link">
+ List Processing
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-outline_processing.html" class="md-nav__link">
+ Outline Processing
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-outline_processing.html" title="Outline Processing" class="md-nav__link">
- Outline Processing
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-quick_advance.html" title="Quick retrieval of advance values" class="md-nav__link">
- Quick retrieval of advance values
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-quick_advance.html" class="md-nav__link">
+ Quick retrieval of advance values
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-bitmap_handling.html" title="Bitmap Handling" class="md-nav__link">
- Bitmap Handling
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-bitmap_handling.html" class="md-nav__link">
+ Bitmap Handling
+ </a>
+ </li>
+
-
-
-
-
+
+
-
-
- <li class="md-nav__item md-nav__item--active">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="toc" type="checkbox" id="__toc">
+
+
+ <li class="md-nav__item md-nav__item--active">
-
-
- <label class="md-nav__link md-nav__link--active" for="__toc">
+ <input class="md-nav__toggle md-toggle" data-md-toggle="toc" type="checkbox" id="__toc">
+
+
+
+
+
+ <label class="md-nav__link md-nav__link--active" for="__toc">
+ Scanline Converter
+ <span class="md-nav__icon md-icon"></span>
+ </label>
+
+ <a href="ft2-raster.html" class="md-nav__link md-nav__link--active">
Scanline Converter
- </label>
-
- <a href="ft2-raster.html" title="Scanline Converter" class="md-nav__link md-nav__link--active">
- Scanline Converter
- </a>
-
+ </a>
-<nav class="md-nav md-nav--secondary">
+
+<nav class="md-nav md-nav--secondary" aria-label="Table of contents">
+
- <label class="md-nav__title" for="__toc">Table of contents</label>
- <ul class="md-nav__list" data-md-scrollfix>
+ <label class="md-nav__title" for="__toc">
+ <span class="md-nav__icon md-icon"></span>
+ Table of contents
+ </label>
+ <ul class="md-nav__list" data-md-component="toc" data-md-scrollfix>
<li class="md-nav__item">
<a href="#synopsis" class="md-nav__link">
@@ -815,13 +866,6 @@
</li>
<li class="md-nav__item">
- <a href="#ft_raster" class="md-nav__link">
- FT_Raster
- </a>
-
-</li>
-
- <li class="md-nav__item">
<a href="#ft_span" class="md-nav__link">
FT_Span
</a>
@@ -850,6 +894,13 @@
</li>
<li class="md-nav__item">
+ <a href="#ft_raster" class="md-nav__link">
+ FT_Raster
+ </a>
+
+</li>
+
+ <li class="md-nav__item">
<a href="#ft_raster_newfunc" class="md-nav__link">
FT_Raster_NewFunc
</a>
@@ -905,212 +956,234 @@
</li>
-
-
-
-
</ul>
</nav>
-
- </li>
+
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-glyph_stroker.html" title="Glyph Stroker" class="md-nav__link">
- Glyph Stroker
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-glyph_stroker.html" class="md-nav__link">
+ Glyph Stroker
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-system_interface.html" title="System Interface" class="md-nav__link">
- System Interface
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-system_interface.html" class="md-nav__link">
+ System Interface
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-module_management.html" class="md-nav__link">
+ Module Management
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-module_management.html" title="Module Management" class="md-nav__link">
- Module Management
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-gzip.html" title="GZIP Streams" class="md-nav__link">
- GZIP Streams
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-gzip.html" class="md-nav__link">
+ GZIP Streams
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-lzw.html" title="LZW Streams" class="md-nav__link">
- LZW Streams
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-lzw.html" class="md-nav__link">
+ LZW Streams
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-bzip2.html" class="md-nav__link">
+ BZIP2 Streams
+ </a>
+ </li>
+
+
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-debugging_apis.html" class="md-nav__link">
+ External Debugging APIs
+ </a>
+ </li>
+
- <li class="md-nav__item">
- <a href="ft2-bzip2.html" title="BZIP2 Streams" class="md-nav__link">
- BZIP2 Streams
- </a>
- </li>
-
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-9" type="checkbox" id="nav-9">
+
+
+
- <label class="md-nav__link" for="nav-9">
- Error Codes
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-9">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_9" type="checkbox" id="__nav_9" >
+
+ <label class="md-nav__link" for="__nav_9">
Error Codes
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
-
-
+ <nav class="md-nav" aria-label="Error Codes" data-md-level="1">
+ <label class="md-nav__title" for="__nav_9">
+ <span class="md-nav__icon md-icon"></span>
+ Error Codes
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-error_enumerations.html" class="md-nav__link">
+ Error Enumerations
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-error_enumerations.html" title="Error Enumerations" class="md-nav__link">
- Error Enumerations
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-error_code_values.html" title="Error Code Values" class="md-nav__link">
- Error Code Values
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-error_code_values.html" class="md-nav__link">
+ Error Code Values
+ </a>
+ </li>
+
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-10" type="checkbox" id="nav-10">
+
+
+
- <label class="md-nav__link" for="nav-10">
- Miscellaneous
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-10">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_10" type="checkbox" id="__nav_10" >
+
+ <label class="md-nav__link" for="__nav_10">
Miscellaneous
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
-
+ <nav class="md-nav" aria-label="Miscellaneous" data-md-level="1">
+ <label class="md-nav__title" for="__nav_10">
+ <span class="md-nav__icon md-icon"></span>
+ Miscellaneous
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
-
-
-
- <li class="md-nav__item">
- <a href="ft2-gx_validation.html" title="TrueTypeGX/AAT Validation" class="md-nav__link">
- TrueTypeGX/AAT Validation
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-gx_validation.html" class="md-nav__link">
+ TrueTypeGX/AAT Validation
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-incremental.html" title="Incremental Loading" class="md-nav__link">
- Incremental Loading
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-incremental.html" class="md-nav__link">
+ Incremental Loading
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-truetype_engine.html" title="The TrueType Engine" class="md-nav__link">
- The TrueType Engine
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-truetype_engine.html" class="md-nav__link">
+ The TrueType Engine
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-ot_validation.html" title="OpenType Validation" class="md-nav__link">
- OpenType Validation
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-ot_validation.html" class="md-nav__link">
+ OpenType Validation
+ </a>
+ </li>
+
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
</ul>
@@ -1120,18 +1193,23 @@
</div>
- <div class="md-sidebar md-sidebar--secondary" data-md-component="toc">
+
+ <div class="md-sidebar md-sidebar--secondary" data-md-component="sidebar" data-md-type="toc" >
<div class="md-sidebar__scrollwrap">
<div class="md-sidebar__inner">
-<nav class="md-nav md-nav--secondary">
+<nav class="md-nav md-nav--secondary" aria-label="Table of contents">
+
- <label class="md-nav__title" for="__toc">Table of contents</label>
- <ul class="md-nav__list" data-md-scrollfix>
+ <label class="md-nav__title" for="__toc">
+ <span class="md-nav__icon md-icon"></span>
+ Table of contents
+ </label>
+ <ul class="md-nav__list" data-md-component="toc" data-md-scrollfix>
<li class="md-nav__item">
<a href="#synopsis" class="md-nav__link">
@@ -1141,13 +1219,6 @@
</li>
<li class="md-nav__item">
- <a href="#ft_raster" class="md-nav__link">
- FT_Raster
- </a>
-
-</li>
-
- <li class="md-nav__item">
<a href="#ft_span" class="md-nav__link">
FT_Span
</a>
@@ -1176,6 +1247,13 @@
</li>
<li class="md-nav__item">
+ <a href="#ft_raster" class="md-nav__link">
+ FT_Raster
+ </a>
+
+</li>
+
+ <li class="md-nav__item">
<a href="#ft_raster_newfunc" class="md-nav__link">
FT_Raster_NewFunc
</a>
@@ -1231,10 +1309,6 @@
</li>
-
-
-
-
</ul>
</nav>
@@ -1243,7 +1317,7 @@
</div>
- <div class="md-content">
+ <div class="md-content" data-md-component="content">
<article class="md-content__inner md-typeset">
@@ -1252,15 +1326,10 @@
<hr />
<h1 id="scanline-converter">Scanline Converter<a class="headerlink" href="#scanline-converter" title="Permanent link">&para;</a></h1>
<h2 id="synopsis">Synopsis<a class="headerlink" href="#synopsis" title="Permanent link">&para;</a></h2>
-<p>This section contains technical definitions.</p>
-<h2 id="ft_raster">FT_Raster<a class="headerlink" href="#ft_raster" title="Permanent link">&para;</a></h2>
-<p>Defined in FT_IMAGE_H (freetype/ftimage.h).</p>
-<div class = "codehilite"><pre><code> <span class="keyword">typedef</span> <span class="keyword">struct</span> FT_RasterRec_* <b>FT_Raster</b>;
-</code></pre></div>
-
-<p>An opaque handle (pointer) to a raster object. Each object can be used independently to convert an outline into a bitmap or pixmap.</p>
-<hr>
-
+<p>A raster or a rasterizer is a scan converter in charge of producing a pixel coverage bitmap that can be used as an alpha channel when compositing a glyph with a background. FreeType comes with two rasterizers: bilevel <code>raster1</code> and anti-aliased <code>smooth</code> are two separate modules. They are usually called from the high-level <code><a href="ft2-base_interface.html#ft_load_glyph">FT_Load_Glyph</a></code> or <code><a href="ft2-base_interface.html#ft_render_glyph">FT_Render_Glyph</a></code> functions and produce the entire coverage bitmap at once, while staying largely invisible to users.</p>
+<p>Instead of working with complete coverage bitmaps, it is also possible to intercept consecutive pixel runs on the same scanline with the same coverage, called <em>spans</em>, and process them individually. Only the <code>smooth</code> rasterizer permits this when calling <code><a href="ft2-outline_processing.html#ft_outline_render">FT_Outline_Render</a></code> with <code><a href="ft2-raster.html#ft_raster_params">FT_Raster_Params</a></code> as described below.</p>
+<p>Working with either complete bitmaps or spans it is important to think of them as colorless coverage objects suitable as alpha channels to blend arbitrary colors with a background. For best results, it is recommended to use gamma correction, too.</p>
+<p>This section also describes the public API needed to set up alternative <code><a href="ft2-module_management.html#ft_renderer">FT_Renderer</a></code> modules.</p>
<h2 id="ft_span">FT_Span<a class="headerlink" href="#ft_span" title="Permanent link">&para;</a></h2>
<p>Defined in FT_IMAGE_H (freetype/ftimage.h).</p>
<div class = "codehilite"><pre><code> <span class="keyword">typedef</span> <span class="keyword">struct</span> FT_Span_
@@ -1272,9 +1341,8 @@
} <b>FT_Span</b>;
</code></pre></div>
-<p>A structure used to model a single span of gray pixels when rendering an anti-aliased bitmap.</p>
+<p>A structure to model a single span of consecutive pixels when rendering an anti-aliased bitmap.</p>
<h4>fields</h4>
-
<table class="fields">
<tr><td class="val" id="x">x</td><td class="desc">
<p>The span's horizontal start position.</p>
@@ -1290,7 +1358,7 @@
<h4>note</h4>
<p>This structure is used by the span drawing callback type named <code><a href="ft2-raster.html#ft_spanfunc">FT_SpanFunc</a></code> that takes the y&nbsp;coordinate of the span as a parameter.</p>
-<p>The coverage value is always between 0 and 255. If you want less gray values, the callback function has to reduce them.</p>
+<p>The anti-aliased rasterizer produces coverage values from 0 to 255, this is, from completely transparent to completely opaque.</p>
<hr>
<h2 id="ft_spanfunc">FT_SpanFunc<a class="headerlink" href="#ft_spanfunc" title="Permanent link">&para;</a></h2>
@@ -1304,9 +1372,8 @@
#<span class="keyword">define</span> FT_Raster_Span_Func <b>FT_SpanFunc</b>
</code></pre></div>
-<p>A function used as a call-back by the anti-aliased renderer in order to let client applications draw themselves the gray pixel spans on each scan line.</p>
+<p>A function used as a call-back by the anti-aliased renderer in order to let client applications draw themselves the pixel spans on each scan line.</p>
<h4>input</h4>
-
<table class="fields">
<tr><td class="val" id="y">y</td><td class="desc">
<p>The scanline's upward y&nbsp;coordinate.</p>
@@ -1324,8 +1391,8 @@
<h4>note</h4>
-<p>This callback allows client applications to directly render the gray spans of the anti-aliased bitmap to any kind of surfaces.</p>
-<p>This can be used to write anti-aliased outlines directly to a given background bitmap, and even perform translucency.</p>
+<p>This callback allows client applications to directly render the spans of the anti-aliased bitmap to any kind of surfaces.</p>
+<p>This can be used to write anti-aliased outlines directly to a given background bitmap using alpha compositing. It can also be used for oversampling and averaging.</p>
<hr>
<h2 id="ft_raster_params">FT_Raster_Params<a class="headerlink" href="#ft_raster_params" title="Permanent link">&para;</a></h2>
@@ -1347,7 +1414,6 @@
<p>A structure to hold the parameters used by a raster's render function, passed as an argument to <code><a href="ft2-outline_processing.html#ft_outline_render">FT_Outline_Render</a></code>.</p>
<h4>fields</h4>
-
<table class="fields">
<tr><td class="val" id="target">target</td><td class="desc">
<p>The target bitmap.</p>
@@ -1391,6 +1457,7 @@
#<span class="keyword">define</span> <a href="ft2-raster.html#ft_raster_flag_aa">FT_RASTER_FLAG_AA</a> 0x1
#<span class="keyword">define</span> <a href="ft2-raster.html#ft_raster_flag_direct">FT_RASTER_FLAG_DIRECT</a> 0x2
#<span class="keyword">define</span> <a href="ft2-raster.html#ft_raster_flag_clip">FT_RASTER_FLAG_CLIP</a> 0x4
+#<span class="keyword">define</span> <a href="ft2-raster.html#ft_raster_flag_sdf">FT_RASTER_FLAG_SDF</a> 0x8
/* these constants are deprecated; use the corresponding */
/* `<b>FT_RASTER_FLAG_XXX</b>` values instead */
@@ -1402,7 +1469,6 @@
<p>A list of bit flag constants as used in the <code>flags</code> field of a <code><a href="ft2-raster.html#ft_raster_params">FT_Raster_Params</a></code> structure.</p>
<h4>values</h4>
-
<table class="fields">
<tr><td class="val" id="ft_raster_flag_default">FT_RASTER_FLAG_DEFAULT</td><td class="desc">
<p>This value is 0.</p>
@@ -1417,10 +1483,24 @@
<tr><td class="val" id="ft_raster_flag_clip">FT_RASTER_FLAG_CLIP</td><td class="desc">
<p>This flag is only used in direct rendering mode. If set, the output will be clipped to a box specified in the <code>clip_box</code> field of the <code><a href="ft2-raster.html#ft_raster_params">FT_Raster_Params</a></code> structure. Otherwise, the <code>clip_box</code> is effectively set to the bounding box and all spans are generated.</p>
</td></tr>
+<tr><td class="val" id="ft_raster_flag_sdf">FT_RASTER_FLAG_SDF</td><td class="desc">
+<p>This flag is set to indicate that a signed distance field glyph image should be generated. This is only used while rendering with the <code><a href="ft2-base_interface.html#ft_render_mode">FT_RENDER_MODE_SDF</a></code> render mode.</p>
+</td></tr>
</table>
<hr>
+<h2 id="ft_raster">FT_Raster<a class="headerlink" href="#ft_raster" title="Permanent link">&para;</a></h2>
+<p>Defined in FT_IMAGE_H (freetype/ftimage.h).</p>
+<div class = "codehilite"><pre><code> <span class="keyword">typedef</span> <span class="keyword">struct</span> FT_RasterRec_* <b>FT_Raster</b>;
+</code></pre></div>
+
+<p>An opaque handle (pointer) to a raster object. Each object can be used independently to convert an outline into a bitmap or pixmap.</p>
+<h4>note</h4>
+
+<p>In FreeType 2, all rasters are now encapsulated within specific <code><a href="ft2-module_management.html#ft_renderer">FT_Renderer</a></code> modules and only used in their context.</p>
+<hr>
+
<h2 id="ft_raster_newfunc">FT_Raster_NewFunc<a class="headerlink" href="#ft_raster_newfunc" title="Permanent link">&para;</a></h2>
<p>Defined in FT_IMAGE_H (freetype/ftimage.h).</p>
<div class = "codehilite"><pre><code> <span class="keyword">typedef</span> <span class="keyword">int</span>
@@ -1432,7 +1512,6 @@
<p>A function used to create a new raster object.</p>
<h4>input</h4>
-
<table class="fields">
<tr><td class="val" id="memory">memory</td><td class="desc">
<p>A handle to the memory allocator.</p>
@@ -1440,7 +1519,6 @@
</table>
<h4>output</h4>
-
<table class="fields">
<tr><td class="val" id="raster">raster</td><td class="desc">
<p>A handle to the new raster object.</p>
@@ -1465,7 +1543,6 @@
<p>A function used to destroy a given raster object.</p>
<h4>input</h4>
-
<table class="fields">
<tr><td class="val" id="raster">raster</td><td class="desc">
<p>A handle to the raster object.</p>
@@ -1487,7 +1564,6 @@
<p>FreeType used to provide an area of memory called the &lsquo;render pool&rsquo; available to all registered rasterizers. This was not thread safe, however, and now FreeType never allocates this pool.</p>
<p>This function is called after a new raster object is created.</p>
<h4>input</h4>
-
<table class="fields">
<tr><td class="val" id="raster">raster</td><td class="desc">
<p>A handle to the new raster object.</p>
@@ -1517,7 +1593,6 @@
<p>This function is a generic facility to change modes or attributes in a given raster. This can be used for debugging purposes, or simply to allow implementation-specific &lsquo;features&rsquo; in a given raster module.</p>
<h4>input</h4>
-
<table class="fields">
<tr><td class="val" id="raster">raster</td><td class="desc">
<p>A handle to the new raster object.</p>
@@ -1543,7 +1618,6 @@
<p>Invoke a given raster to scan-convert a given glyph image into a target bitmap.</p>
<h4>input</h4>
-
<table class="fields">
<tr><td class="val" id="raster">raster</td><td class="desc">
<p>A handle to the raster object.</p>
@@ -1579,7 +1653,6 @@
<p>A structure used to describe a given raster class to the library.</p>
<h4>fields</h4>
-
<table class="fields">
<tr><td class="val" id="glyph_format">glyph_format</td><td class="desc">
<p>The supported glyph format for this raster.</p>
@@ -1622,9 +1695,6 @@
<p>Deprecated, unimplemented.</p>
<hr>
-
-
-
@@ -1634,59 +1704,60 @@
</article>
</div>
</div>
+
</main>
<footer class="md-footer">
- <div class="md-footer-nav">
- <nav class="md-footer-nav__inner md-grid">
+ <nav class="md-footer__inner md-grid" aria-label="Footer">
+
- <a href="ft2-bitmap_handling.html" title="Bitmap Handling" class="md-flex md-footer-nav__link md-footer-nav__link--prev" rel="prev">
- <div class="md-flex__cell md-flex__cell--shrink">
- <i class="md-icon md-icon--arrow-back md-footer-nav__button"></i>
- </div>
- <div class="md-flex__cell md-flex__cell--stretch md-footer-nav__title">
- <span class="md-flex__ellipsis">
- <span class="md-footer-nav__direction">
- Previous
- </span>
- Bitmap Handling
+ <a href="ft2-bitmap_handling.html" class="md-footer__link md-footer__link--prev" aria-label="Previous: Bitmap Handling" rel="prev">
+ <div class="md-footer__button md-icon">
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M20 11v2H8l5.5 5.5-1.42 1.42L4.16 12l7.92-7.92L13.5 5.5 8 11h12z"/></svg>
+ </div>
+ <div class="md-footer__title">
+ <div class="md-ellipsis">
+ <span class="md-footer__direction">
+ Previous
</span>
+ Bitmap Handling
</div>
- </a>
-
+ </div>
+ </a>
+
+
- <a href="ft2-glyph_stroker.html" title="Glyph Stroker" class="md-flex md-footer-nav__link md-footer-nav__link--next" rel="next">
- <div class="md-flex__cell md-flex__cell--stretch md-footer-nav__title">
- <span class="md-flex__ellipsis">
- <span class="md-footer-nav__direction">
- Next
- </span>
- Glyph Stroker
+ <a href="ft2-glyph_stroker.html" class="md-footer__link md-footer__link--next" aria-label="Next: Glyph Stroker" rel="next">
+ <div class="md-footer__title">
+ <div class="md-ellipsis">
+ <span class="md-footer__direction">
+ Next
</span>
+ Glyph Stroker
</div>
- <div class="md-flex__cell md-flex__cell--shrink">
- <i class="md-icon md-icon--arrow-forward md-footer-nav__button"></i>
- </div>
- </a>
-
- </nav>
- </div>
+ </div>
+ <div class="md-footer__button md-icon">
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M4 11v2h12l-5.5 5.5 1.42 1.42L19.84 12l-7.92-7.92L10.5 5.5 16 11H4z"/></svg>
+ </div>
+ </a>
+
+ </nav>
<div class="md-footer-meta md-typeset">
<div class="md-footer-meta__inner md-grid">
<div class="md-footer-copyright">
<div class="md-footer-copyright__highlight">
- Copyright 2020 <a href = "https://www.freetype.org/license.html">The FreeType Project</a>.
+ Copyright 2021 <a href = "https://www.freetype.org/license.html">The FreeType Project</a>.
</div>
- powered by
- <a href="https://www.mkdocs.org" target="_blank" rel="noopener">MkDocs</a>
- and
+ Made with
<a href="https://squidfunk.github.io/mkdocs-material/" target="_blank" rel="noopener">
- Material for MkDocs</a>
+ Material for MkDocs
+ </a>
+
</div>
</div>
@@ -1694,10 +1765,13 @@
</footer>
</div>
+ <div class="md-dialog" data-md-component="dialog">
+ <div class="md-dialog__inner md-typeset"></div>
+ </div>
+ <script id="__config" type="application/json">{"base": ".", "features": [], "translations": {"clipboard.copy": "Copy to clipboard", "clipboard.copied": "Copied to clipboard", "search.config.lang": "en", "search.config.pipeline": "trimmer, stopWordFilter", "search.config.separator": "[\\s\\-]+", "search.placeholder": "Search", "search.result.placeholder": "Type to start searching", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.term.missing": "Missing", "select.version.title": "Select version"}, "search": "assets/javascripts/workers/search.477d984a.min.js", "version": null}</script>
- <script src="assets/javascripts/application.c33a9706.js"></script>
-
- <script>app.initialize({version:"1.1",url:{base:"."}})</script>
+
+ <script src="assets/javascripts/bundle.82b56eb2.min.js"></script>
<script src="javascripts/extra.js"></script>
diff --git a/freetype/docs/reference/ft2-sfnt_names.html b/freetype/docs/reference/ft2-sfnt_names.html
index a87ca65c..37a2bca0 100644
--- a/freetype/docs/reference/ft2-sfnt_names.html
+++ b/freetype/docs/reference/ft2-sfnt_names.html
@@ -1,145 +1,136 @@
-
-
-
<!doctype html>
<html lang="en" class="no-js">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
- <meta http-equiv="x-ua-compatible" content="ie=edge">
- <meta name="description" content="API Reference Documentation for FreeType-2.10.4">
+ <meta name="description" content="API Reference Documentation for FreeType-2.11.1">
<meta name="author" content="FreeType Contributors">
- <meta name="lang:clipboard.copy" content="Copy to clipboard">
-
- <meta name="lang:clipboard.copied" content="Copied to clipboard">
-
- <meta name="lang:search.language" content="en">
-
- <meta name="lang:search.pipeline.stopwords" content="True">
-
- <meta name="lang:search.pipeline.trimmer" content="True">
-
- <meta name="lang:search.result.none" content="No matching documents">
-
- <meta name="lang:search.result.one" content="1 matching document">
-
- <meta name="lang:search.result.other" content="# matching documents">
-
- <meta name="lang:search.tokenizer" content="[\s\-]+">
-
- <link rel="shortcut icon" href="images/favico.ico">
- <meta name="generator" content="mkdocs-1.1, mkdocs-material-4.6.3">
+ <link rel="icon" href="images/favico.ico">
+ <meta name="generator" content="mkdocs-1.2.1, mkdocs-material-7.1.9">
- <title>SFNT Names - FreeType-2.10.4 API Reference</title>
+ <title>SFNT Names - FreeType-2.11.1 API Reference</title>
- <link rel="stylesheet" href="assets/stylesheets/application.adb8469c.css">
-
- <link rel="stylesheet" href="assets/stylesheets/application-palette.a8b3c06d.css">
-
+ <link rel="stylesheet" href="assets/stylesheets/main.ca7ac06f.min.css">
+ <link rel="stylesheet" href="assets/stylesheets/palette.f1a3b89f.min.css">
+
+
+
+ <meta name="theme-color" content="#4cae4f">
- <meta name="theme-color" content="#4caf50">
- <script src="assets/javascripts/modernizr.86422ebf.js"></script>
-
- <link href="https://fonts.gstatic.com" rel="preconnect" crossorigin>
+
+ <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Noto+Serif:300,400,400i,700%7CRoboto+Mono&display=fallback">
- <style>body,input{font-family:"Noto Serif","Helvetica Neue",Helvetica,Arial,sans-serif}code,kbd,pre{font-family:"Roboto Mono","Courier New",Courier,monospace}</style>
+ <style>:root{--md-text-font-family:"Noto Serif";--md-code-font-family:"Roboto Mono"}</style>
- <link rel="stylesheet" href="assets/fonts/material-icons.css">
<link rel="stylesheet" href="stylesheets/extra.css">
+
+
</head>
+
+
+
+
- <body dir="ltr" data-md-color-primary="green" data-md-color-accent="green">
+ <body dir="ltr" data-md-color-scheme="" data-md-color-primary="green" data-md-color-accent="green">
- <svg class="md-svg">
- <defs>
-
-
- </defs>
- </svg>
- <input class="md-toggle" data-md-toggle="drawer" type="checkbox" id="__drawer" autocomplete="off">
- <input class="md-toggle" data-md-toggle="search" type="checkbox" id="__search" autocomplete="off">
- <label class="md-overlay" data-md-component="overlay" for="__drawer"></label>
- <a href="#sfnt-names" tabindex="0" class="md-skip">
- Skip to content
- </a>
+ <script>function __prefix(e){return new URL(".",location).pathname+"."+e}function __get(e,t=localStorage){return JSON.parse(t.getItem(__prefix(e)))}</script>
+ <input class="md-toggle" data-md-toggle="drawer" type="checkbox" id="__drawer" autocomplete="off">
+ <input class="md-toggle" data-md-toggle="search" type="checkbox" id="__search" autocomplete="off">
+ <label class="md-overlay" for="__drawer"></label>
+ <div data-md-component="skip">
+
+
+ <a href="#sfnt-names" class="md-skip">
+ Skip to content
+ </a>
+
+ </div>
+ <div data-md-component="announce">
+
+ </div>
<header class="md-header" data-md-component="header">
- <nav class="md-header-nav md-grid">
- <div class="md-flex">
- <div class="md-flex__cell md-flex__cell--shrink">
- <a href="." title="FreeType-2.10.4 API Reference" aria-label="FreeType-2.10.4 API Reference" class="md-header-nav__button md-logo">
-
- <img alt="logo" src="images/favico.ico" width="24" height="24">
-
- </a>
- </div>
- <div class="md-flex__cell md-flex__cell--shrink">
- <label class="md-icon md-icon--menu md-header-nav__button" for="__drawer"></label>
- </div>
- <div class="md-flex__cell md-flex__cell--stretch">
- <div class="md-flex__ellipsis md-header-nav__title" data-md-component="title">
-
- <span class="md-header-nav__topic">
- FreeType-2.10.4 API Reference
- </span>
- <span class="md-header-nav__topic">
-
- SFNT Names
-
- </span>
-
+ <nav class="md-header__inner md-grid" aria-label="Header">
+ <a href="index.html" title="FreeType-2.11.1 API Reference" class="md-header__button md-logo" aria-label="FreeType-2.11.1 API Reference" data-md-component="logo">
+
+ <img src="images/favico.ico" alt="logo">
+
+ </a>
+ <label class="md-header__button md-icon" for="__drawer">
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M3 6h18v2H3V6m0 5h18v2H3v-2m0 5h18v2H3v-2z"/></svg>
+ </label>
+ <div class="md-header__title" data-md-component="header-title">
+ <div class="md-header__ellipsis">
+ <div class="md-header__topic">
+ <span class="md-ellipsis">
+ FreeType-2.11.1 API Reference
+ </span>
+ </div>
+ <div class="md-header__topic" data-md-component="header-topic">
+ <span class="md-ellipsis">
+
+ SFNT Names
+
+ </span>
</div>
</div>
- <div class="md-flex__cell md-flex__cell--shrink">
-
- <label class="md-icon md-icon--search md-header-nav__button" for="__search"></label>
-
+ </div>
+
+
+
+ <label class="md-header__button md-icon" for="__search">
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M9.5 3A6.5 6.5 0 0 1 16 9.5c0 1.61-.59 3.09-1.56 4.23l.27.27h.79l5 5-1.5 1.5-5-5v-.79l-.27-.27A6.516 6.516 0 0 1 9.5 16 6.5 6.5 0 0 1 3 9.5 6.5 6.5 0 0 1 9.5 3m0 2C7 5 5 7 5 9.5S7 14 9.5 14 14 12 14 9.5 12 5 9.5 5z"/></svg>
+ </label>
+
<div class="md-search" data-md-component="search" role="dialog">
<label class="md-search__overlay" for="__search"></label>
<div class="md-search__inner" role="search">
<form class="md-search__form" name="search">
- <input type="text" class="md-search__input" aria-label="search" name="query" placeholder="Search" autocapitalize="off" autocorrect="off" autocomplete="off" spellcheck="false" data-md-component="query" data-md-state="active">
- <label class="md-icon md-search__icon" for="__search"></label>
- <button type="reset" class="md-icon md-search__icon" data-md-component="reset" tabindex="-1">
- &#xE5CD;
+ <input type="text" class="md-search__input" name="query" aria-label="Search" placeholder="Search" autocapitalize="off" autocorrect="off" autocomplete="off" spellcheck="false" data-md-component="search-query" data-md-state="active" required>
+ <label class="md-search__icon md-icon" for="__search">
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M9.5 3A6.5 6.5 0 0 1 16 9.5c0 1.61-.59 3.09-1.56 4.23l.27.27h.79l5 5-1.5 1.5-5-5v-.79l-.27-.27A6.516 6.516 0 0 1 9.5 16 6.5 6.5 0 0 1 3 9.5 6.5 6.5 0 0 1 9.5 3m0 2C7 5 5 7 5 9.5S7 14 9.5 14 14 12 14 9.5 12 5 9.5 5z"/></svg>
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M20 11v2H8l5.5 5.5-1.42 1.42L4.16 12l7.92-7.92L13.5 5.5 8 11h12z"/></svg>
+ </label>
+ <button type="reset" class="md-search__icon md-icon" aria-label="Clear" tabindex="-1">
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z"/></svg>
</button>
</form>
<div class="md-search__output">
<div class="md-search__scrollwrap" data-md-scrollfix>
- <div class="md-search-result" data-md-component="result">
+ <div class="md-search-result" data-md-component="search-result">
<div class="md-search-result__meta">
- Type to start searching
+ Initializing search
</div>
<ol class="md-search-result__list"></ol>
</div>
@@ -147,33 +138,35 @@
</div>
</div>
</div>
-
- </div>
-
- </div>
+
+
</nav>
</header>
- <div class="md-container">
+ <div class="md-container" data-md-component="container">
-
+
- <main class="md-main" role="main">
- <div class="md-main__inner md-grid" data-md-component="container">
+ <main class="md-main" data-md-component="main">
+ <div class="md-main__inner md-grid">
- <div class="md-sidebar md-sidebar--primary" data-md-component="navigation">
+
+ <div class="md-sidebar md-sidebar--primary" data-md-component="sidebar" data-md-type="navigation" >
<div class="md-sidebar__scrollwrap">
<div class="md-sidebar__inner">
- <nav class="md-nav md-nav--primary" data-md-level="0">
- <label class="md-nav__title md-nav__title--site" for="__drawer">
- <a href="." title="FreeType-2.10.4 API Reference" class="md-nav__button md-logo">
-
- <img alt="logo" src="images/favico.ico" width="48" height="48">
+
+
+
+<nav class="md-nav md-nav--primary" aria-label="Navigation" data-md-level="0">
+ <label class="md-nav__title" for="__drawer">
+ <a href="index.html" title="FreeType-2.11.1 API Reference" class="md-nav__button md-logo" aria-label="FreeType-2.11.1 API Reference" data-md-component="logo">
+ <img src="images/favico.ico" alt="logo">
+
</a>
- FreeType-2.10.4 API Reference
+ FreeType-2.11.1 API Reference
</label>
<ul class="md-nav__list" data-md-scrollfix>
@@ -182,216 +175,246 @@
-
- <li class="md-nav__item">
- <a href="index.html" title="TOC" class="md-nav__link">
- TOC
- </a>
- </li>
+
+
+
+ <li class="md-nav__item">
+ <a href="index.html" class="md-nav__link">
+ TOC
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-index.html" title="Index" class="md-nav__link">
- Index
- </a>
- </li>
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-index.html" class="md-nav__link">
+ Index
+ </a>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-3" type="checkbox" id="nav-3">
+
+
+
- <label class="md-nav__link" for="nav-3">
- General Remarks
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-3">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_3" type="checkbox" id="__nav_3" >
+
+ <label class="md-nav__link" for="__nav_3">
General Remarks
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
-
+ <nav class="md-nav" aria-label="General Remarks" data-md-level="1">
+ <label class="md-nav__title" for="__nav_3">
+ <span class="md-nav__icon md-icon"></span>
+ General Remarks
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
-
-
-
- <li class="md-nav__item">
- <a href="ft2-header_inclusion.html" title="FreeType's header inclusion scheme" class="md-nav__link">
- FreeType's header inclusion scheme
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-preamble.html" class="md-nav__link">
+ Preamble
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-header_inclusion.html" class="md-nav__link">
+ FreeType's header inclusion scheme
+ </a>
+ </li>
+
+
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-user_allocation.html" class="md-nav__link">
+ User allocation
+ </a>
+ </li>
+
- <li class="md-nav__item">
- <a href="ft2-user_allocation.html" title="User allocation" class="md-nav__link">
- User allocation
- </a>
- </li>
-
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-4" type="checkbox" id="nav-4">
+
+
+
- <label class="md-nav__link" for="nav-4">
- Core API
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-4">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_4" type="checkbox" id="__nav_4" >
+
+ <label class="md-nav__link" for="__nav_4">
Core API
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
-
+ <nav class="md-nav" aria-label="Core API" data-md-level="1">
+ <label class="md-nav__title" for="__nav_4">
+ <span class="md-nav__icon md-icon"></span>
+ Core API
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
-
-
-
- <li class="md-nav__item">
- <a href="ft2-version.html" title="FreeType Version" class="md-nav__link">
- FreeType Version
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-version.html" class="md-nav__link">
+ FreeType Version
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-basic_types.html" class="md-nav__link">
+ Basic Data Types
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-basic_types.html" title="Basic Data Types" class="md-nav__link">
- Basic Data Types
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-base_interface.html" title="Base Interface" class="md-nav__link">
- Base Interface
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-base_interface.html" class="md-nav__link">
+ Base Interface
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-glyph_variants.html" class="md-nav__link">
+ Unicode Variation Sequences
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-glyph_variants.html" title="Unicode Variation Sequences" class="md-nav__link">
- Unicode Variation Sequences
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-color_management.html" title="Glyph Color Management" class="md-nav__link">
- Glyph Color Management
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-color_management.html" class="md-nav__link">
+ Glyph Color Management
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-layer_management.html" class="md-nav__link">
+ Glyph Layer Management
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-layer_management.html" title="Glyph Layer Management" class="md-nav__link">
- Glyph Layer Management
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-glyph_management.html" title="Glyph Management" class="md-nav__link">
- Glyph Management
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-glyph_management.html" class="md-nav__link">
+ Glyph Management
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-mac_specific.html" title="Mac Specific Interface" class="md-nav__link">
- Mac Specific Interface
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-mac_specific.html" class="md-nav__link">
+ Mac Specific Interface
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-sizes_management.html" title="Size Management" class="md-nav__link">
- Size Management
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-sizes_management.html" class="md-nav__link">
+ Size Management
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-header_file_macros.html" class="md-nav__link">
+ Header File Macros
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-header_file_macros.html" title="Header File Macros" class="md-nav__link">
- Header File Macros
- </a>
- </li>
-
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
@@ -399,89 +422,99 @@
-
-
- <li class="md-nav__item md-nav__item--active md-nav__item--nested">
+
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-5" type="checkbox" id="nav-5" checked>
+
+
- <label class="md-nav__link" for="nav-5">
- Format-Specific API
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-5">
+ <li class="md-nav__item md-nav__item--active md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_5" type="checkbox" id="__nav_5" checked>
+
+ <label class="md-nav__link" for="__nav_5">
Format-Specific API
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
-
-
+ <nav class="md-nav" aria-label="Format-Specific API" data-md-level="1">
+ <label class="md-nav__title" for="__nav_5">
+ <span class="md-nav__icon md-icon"></span>
+ Format-Specific API
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-multiple_masters.html" class="md-nav__link">
+ Multiple Masters
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-multiple_masters.html" title="Multiple Masters" class="md-nav__link">
- Multiple Masters
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-truetype_tables.html" title="TrueType Tables" class="md-nav__link">
- TrueType Tables
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-truetype_tables.html" class="md-nav__link">
+ TrueType Tables
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-type1_tables.html" title="Type 1 Tables" class="md-nav__link">
- Type 1 Tables
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-type1_tables.html" class="md-nav__link">
+ Type 1 Tables
+ </a>
+ </li>
+
-
-
-
-
+
+
-
-
- <li class="md-nav__item md-nav__item--active">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="toc" type="checkbox" id="__toc">
+
+
+ <li class="md-nav__item md-nav__item--active">
-
-
- <label class="md-nav__link md-nav__link--active" for="__toc">
+ <input class="md-nav__toggle md-toggle" data-md-toggle="toc" type="checkbox" id="__toc">
+
+
+
+
+
+ <label class="md-nav__link md-nav__link--active" for="__toc">
+ SFNT Names
+ <span class="md-nav__icon md-icon"></span>
+ </label>
+
+ <a href="ft2-sfnt_names.html" class="md-nav__link md-nav__link--active">
SFNT Names
- </label>
-
- <a href="ft2-sfnt_names.html" title="SFNT Names" class="md-nav__link md-nav__link--active">
- SFNT Names
- </a>
-
+ </a>
-<nav class="md-nav md-nav--secondary">
+
+<nav class="md-nav md-nav--secondary" aria-label="Table of contents">
+
- <label class="md-nav__title" for="__toc">Table of contents</label>
- <ul class="md-nav__list" data-md-scrollfix>
+ <label class="md-nav__title" for="__toc">
+ <span class="md-nav__icon md-icon"></span>
+ Table of contents
+ </label>
+ <ul class="md-nav__list" data-md-component="toc" data-md-scrollfix>
<li class="md-nav__item">
<a href="#synopsis" class="md-nav__link">
@@ -525,536 +558,576 @@
</li>
-
-
-
-
</ul>
</nav>
-
- </li>
+
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-bdf_fonts.html" title="BDF and PCF Files" class="md-nav__link">
- BDF and PCF Files
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-bdf_fonts.html" class="md-nav__link">
+ BDF and PCF Files
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-cid_fonts.html" class="md-nav__link">
+ CID Fonts
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-cid_fonts.html" title="CID Fonts" class="md-nav__link">
- CID Fonts
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-pfr_fonts.html" title="PFR Fonts" class="md-nav__link">
- PFR Fonts
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-pfr_fonts.html" class="md-nav__link">
+ PFR Fonts
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-winfnt_fonts.html" title="Window FNT Files" class="md-nav__link">
- Window FNT Files
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-winfnt_fonts.html" class="md-nav__link">
+ Window FNT Files
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-font_formats.html" title="Font Formats" class="md-nav__link">
- Font Formats
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-font_formats.html" class="md-nav__link">
+ Font Formats
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-gasp_table.html" title="Gasp Table" class="md-nav__link">
- Gasp Table
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-gasp_table.html" class="md-nav__link">
+ Gasp Table
+ </a>
+ </li>
+
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-6" type="checkbox" id="nav-6">
+
+
+
- <label class="md-nav__link" for="nav-6">
- Controlling FreeType Modules
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-6">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_6" type="checkbox" id="__nav_6" >
+
+ <label class="md-nav__link" for="__nav_6">
Controlling FreeType Modules
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
-
+ <nav class="md-nav" aria-label="Controlling FreeType Modules" data-md-level="1">
+ <label class="md-nav__title" for="__nav_6">
+ <span class="md-nav__icon md-icon"></span>
+ Controlling FreeType Modules
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
-
-
-
- <li class="md-nav__item">
- <a href="ft2-auto_hinter.html" title="The auto-hinter" class="md-nav__link">
- The auto-hinter
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-auto_hinter.html" class="md-nav__link">
+ The auto-hinter
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-cff_driver.html" title="The CFF driver" class="md-nav__link">
- The CFF driver
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-cff_driver.html" class="md-nav__link">
+ The CFF driver
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-t1_cid_driver.html" title="The Type 1 and CID drivers" class="md-nav__link">
- The Type 1 and CID drivers
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-t1_cid_driver.html" class="md-nav__link">
+ The Type 1 and CID drivers
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-tt_driver.html" title="The TrueType driver" class="md-nav__link">
- The TrueType driver
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-tt_driver.html" class="md-nav__link">
+ The TrueType driver
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-pcf_driver.html" title="The PCF driver" class="md-nav__link">
- The PCF driver
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-pcf_driver.html" class="md-nav__link">
+ The PCF driver
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-properties.html" title="Driver properties" class="md-nav__link">
- Driver properties
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-properties.html" class="md-nav__link">
+ Driver properties
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-parameter_tags.html" title="Parameter Tags" class="md-nav__link">
- Parameter Tags
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-parameter_tags.html" class="md-nav__link">
+ Parameter Tags
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-lcd_rendering.html" title="Subpixel Rendering" class="md-nav__link">
- Subpixel Rendering
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-lcd_rendering.html" class="md-nav__link">
+ Subpixel Rendering
+ </a>
+ </li>
+
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-7" type="checkbox" id="nav-7">
+
+
+
- <label class="md-nav__link" for="nav-7">
- Cache Sub-System
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-7">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_7" type="checkbox" id="__nav_7" >
+
+ <label class="md-nav__link" for="__nav_7">
Cache Sub-System
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
+ <nav class="md-nav" aria-label="Cache Sub-System" data-md-level="1">
+ <label class="md-nav__title" for="__nav_7">
+ <span class="md-nav__icon md-icon"></span>
+ Cache Sub-System
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-cache_subsystem.html" title="Cache Sub-System" class="md-nav__link">
- Cache Sub-System
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-cache_subsystem.html" class="md-nav__link">
+ Cache Sub-System
+ </a>
+ </li>
+
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-8" type="checkbox" id="nav-8">
+
+
+
- <label class="md-nav__link" for="nav-8">
- Support API
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-8">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_8" type="checkbox" id="__nav_8" >
+
+ <label class="md-nav__link" for="__nav_8">
Support API
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
+ <nav class="md-nav" aria-label="Support API" data-md-level="1">
+ <label class="md-nav__title" for="__nav_8">
+ <span class="md-nav__icon md-icon"></span>
+ Support API
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-computations.html" title="Computations" class="md-nav__link">
- Computations
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-computations.html" class="md-nav__link">
+ Computations
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-list_processing.html" class="md-nav__link">
+ List Processing
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-list_processing.html" title="List Processing" class="md-nav__link">
- List Processing
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-outline_processing.html" title="Outline Processing" class="md-nav__link">
- Outline Processing
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-outline_processing.html" class="md-nav__link">
+ Outline Processing
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-quick_advance.html" title="Quick retrieval of advance values" class="md-nav__link">
- Quick retrieval of advance values
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-quick_advance.html" class="md-nav__link">
+ Quick retrieval of advance values
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-bitmap_handling.html" class="md-nav__link">
+ Bitmap Handling
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-bitmap_handling.html" title="Bitmap Handling" class="md-nav__link">
- Bitmap Handling
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-raster.html" title="Scanline Converter" class="md-nav__link">
- Scanline Converter
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-raster.html" class="md-nav__link">
+ Scanline Converter
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-glyph_stroker.html" class="md-nav__link">
+ Glyph Stroker
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-glyph_stroker.html" title="Glyph Stroker" class="md-nav__link">
- Glyph Stroker
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-system_interface.html" title="System Interface" class="md-nav__link">
- System Interface
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-system_interface.html" class="md-nav__link">
+ System Interface
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-module_management.html" class="md-nav__link">
+ Module Management
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-module_management.html" title="Module Management" class="md-nav__link">
- Module Management
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-gzip.html" title="GZIP Streams" class="md-nav__link">
- GZIP Streams
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-gzip.html" class="md-nav__link">
+ GZIP Streams
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-lzw.html" title="LZW Streams" class="md-nav__link">
- LZW Streams
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-lzw.html" class="md-nav__link">
+ LZW Streams
+ </a>
+ </li>
+
-
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-bzip2.html" class="md-nav__link">
+ BZIP2 Streams
+ </a>
+ </li>
+
- <li class="md-nav__item">
- <a href="ft2-bzip2.html" title="BZIP2 Streams" class="md-nav__link">
- BZIP2 Streams
- </a>
- </li>
+
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-debugging_apis.html" class="md-nav__link">
+ External Debugging APIs
+ </a>
+ </li>
+
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-9" type="checkbox" id="nav-9">
+
+
+
- <label class="md-nav__link" for="nav-9">
- Error Codes
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-9">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_9" type="checkbox" id="__nav_9" >
+
+ <label class="md-nav__link" for="__nav_9">
Error Codes
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
-
+ <nav class="md-nav" aria-label="Error Codes" data-md-level="1">
+ <label class="md-nav__title" for="__nav_9">
+ <span class="md-nav__icon md-icon"></span>
+ Error Codes
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
-
-
-
- <li class="md-nav__item">
- <a href="ft2-error_enumerations.html" title="Error Enumerations" class="md-nav__link">
- Error Enumerations
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-error_enumerations.html" class="md-nav__link">
+ Error Enumerations
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-error_code_values.html" title="Error Code Values" class="md-nav__link">
- Error Code Values
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-error_code_values.html" class="md-nav__link">
+ Error Code Values
+ </a>
+ </li>
+
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-10" type="checkbox" id="nav-10">
+
+
+
- <label class="md-nav__link" for="nav-10">
- Miscellaneous
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-10">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_10" type="checkbox" id="__nav_10" >
+
+ <label class="md-nav__link" for="__nav_10">
Miscellaneous
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
+ <nav class="md-nav" aria-label="Miscellaneous" data-md-level="1">
+ <label class="md-nav__title" for="__nav_10">
+ <span class="md-nav__icon md-icon"></span>
+ Miscellaneous
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-gx_validation.html" title="TrueTypeGX/AAT Validation" class="md-nav__link">
- TrueTypeGX/AAT Validation
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-gx_validation.html" class="md-nav__link">
+ TrueTypeGX/AAT Validation
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-incremental.html" class="md-nav__link">
+ Incremental Loading
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-incremental.html" title="Incremental Loading" class="md-nav__link">
- Incremental Loading
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-truetype_engine.html" title="The TrueType Engine" class="md-nav__link">
- The TrueType Engine
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-truetype_engine.html" class="md-nav__link">
+ The TrueType Engine
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-ot_validation.html" title="OpenType Validation" class="md-nav__link">
- OpenType Validation
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-ot_validation.html" class="md-nav__link">
+ OpenType Validation
+ </a>
+ </li>
+
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
</ul>
@@ -1064,18 +1137,23 @@
</div>
- <div class="md-sidebar md-sidebar--secondary" data-md-component="toc">
+
+ <div class="md-sidebar md-sidebar--secondary" data-md-component="sidebar" data-md-type="toc" >
<div class="md-sidebar__scrollwrap">
<div class="md-sidebar__inner">
-<nav class="md-nav md-nav--secondary">
+<nav class="md-nav md-nav--secondary" aria-label="Table of contents">
+
- <label class="md-nav__title" for="__toc">Table of contents</label>
- <ul class="md-nav__list" data-md-scrollfix>
+ <label class="md-nav__title" for="__toc">
+ <span class="md-nav__icon md-icon"></span>
+ Table of contents
+ </label>
+ <ul class="md-nav__list" data-md-component="toc" data-md-scrollfix>
<li class="md-nav__item">
<a href="#synopsis" class="md-nav__link">
@@ -1119,10 +1197,6 @@
</li>
-
-
-
-
</ul>
</nav>
@@ -1131,7 +1205,7 @@
</div>
- <div class="md-content">
+ <div class="md-content" data-md-component="content">
<article class="md-content__inner md-typeset">
@@ -1160,7 +1234,6 @@
<p>A structure used to model an SFNT &lsquo;name&rsquo; table entry.</p>
<h4>fields</h4>
-
<table class="fields">
<tr><td class="val" id="platform_id">platform_id</td><td class="desc">
<p>The platform ID for <code>string</code>. See <code><a href="ft2-truetype_tables.html#tt_platform_xxx">TT_PLATFORM_XXX</a></code> for possible values.</p>
@@ -1196,7 +1269,6 @@
<p>Retrieve the number of name strings in the SFNT &lsquo;name&rsquo; table.</p>
<h4>input</h4>
-
<table class="fields">
<tr><td class="val" id="face">face</td><td class="desc">
<p>A handle to the source face.</p>
@@ -1221,7 +1293,6 @@
<p>Retrieve a string of the SFNT &lsquo;name&rsquo; table for a given index.</p>
<h4>input</h4>
-
<table class="fields">
<tr><td class="val" id="face">face</td><td class="desc">
<p>A handle to the source face.</p>
@@ -1232,7 +1303,6 @@
</table>
<h4>output</h4>
-
<table class="fields">
<tr><td class="val" id="aname">aname</td><td class="desc">
<p>The indexed <code><a href="ft2-sfnt_names.html#ft_sfntname">FT_SfntName</a></code> structure.</p>
@@ -1262,7 +1332,6 @@
<p>A structure to model a language tag entry from an SFNT &lsquo;name&rsquo; table.</p>
<h4>fields</h4>
-
<table class="fields">
<tr><td class="val" id="string">string</td><td class="desc">
<p>The language tag string, encoded in UTF-16BE (without trailing <code>NULL</code> bytes).</p>
@@ -1290,7 +1359,6 @@
<p>Retrieve the language tag associated with a language ID of an SFNT &lsquo;name&rsquo; table entry.</p>
<h4>input</h4>
-
<table class="fields">
<tr><td class="val" id="face">face</td><td class="desc">
<p>A handle to the source face.</p>
@@ -1301,7 +1369,6 @@
</table>
<h4>output</h4>
-
<table class="fields">
<tr><td class="val" id="alangtag">alangTag</td><td class="desc">
<p>The language tag associated with the &lsquo;name&rsquo; table entry's language ID.</p>
@@ -1321,9 +1388,6 @@
<p>2.8</p>
<hr>
-
-
-
@@ -1333,59 +1397,60 @@
</article>
</div>
</div>
+
</main>
<footer class="md-footer">
- <div class="md-footer-nav">
- <nav class="md-footer-nav__inner md-grid">
+ <nav class="md-footer__inner md-grid" aria-label="Footer">
+
- <a href="ft2-type1_tables.html" title="Type 1 Tables" class="md-flex md-footer-nav__link md-footer-nav__link--prev" rel="prev">
- <div class="md-flex__cell md-flex__cell--shrink">
- <i class="md-icon md-icon--arrow-back md-footer-nav__button"></i>
- </div>
- <div class="md-flex__cell md-flex__cell--stretch md-footer-nav__title">
- <span class="md-flex__ellipsis">
- <span class="md-footer-nav__direction">
- Previous
- </span>
- Type 1 Tables
+ <a href="ft2-type1_tables.html" class="md-footer__link md-footer__link--prev" aria-label="Previous: Type 1 Tables" rel="prev">
+ <div class="md-footer__button md-icon">
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M20 11v2H8l5.5 5.5-1.42 1.42L4.16 12l7.92-7.92L13.5 5.5 8 11h12z"/></svg>
+ </div>
+ <div class="md-footer__title">
+ <div class="md-ellipsis">
+ <span class="md-footer__direction">
+ Previous
</span>
+ Type 1 Tables
</div>
- </a>
-
+ </div>
+ </a>
+
+
- <a href="ft2-bdf_fonts.html" title="BDF and PCF Files" class="md-flex md-footer-nav__link md-footer-nav__link--next" rel="next">
- <div class="md-flex__cell md-flex__cell--stretch md-footer-nav__title">
- <span class="md-flex__ellipsis">
- <span class="md-footer-nav__direction">
- Next
- </span>
- BDF and PCF Files
+ <a href="ft2-bdf_fonts.html" class="md-footer__link md-footer__link--next" aria-label="Next: BDF and PCF Files" rel="next">
+ <div class="md-footer__title">
+ <div class="md-ellipsis">
+ <span class="md-footer__direction">
+ Next
</span>
+ BDF and PCF Files
</div>
- <div class="md-flex__cell md-flex__cell--shrink">
- <i class="md-icon md-icon--arrow-forward md-footer-nav__button"></i>
- </div>
- </a>
-
- </nav>
- </div>
+ </div>
+ <div class="md-footer__button md-icon">
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M4 11v2h12l-5.5 5.5 1.42 1.42L19.84 12l-7.92-7.92L10.5 5.5 16 11H4z"/></svg>
+ </div>
+ </a>
+
+ </nav>
<div class="md-footer-meta md-typeset">
<div class="md-footer-meta__inner md-grid">
<div class="md-footer-copyright">
<div class="md-footer-copyright__highlight">
- Copyright 2020 <a href = "https://www.freetype.org/license.html">The FreeType Project</a>.
+ Copyright 2021 <a href = "https://www.freetype.org/license.html">The FreeType Project</a>.
</div>
- powered by
- <a href="https://www.mkdocs.org" target="_blank" rel="noopener">MkDocs</a>
- and
+ Made with
<a href="https://squidfunk.github.io/mkdocs-material/" target="_blank" rel="noopener">
- Material for MkDocs</a>
+ Material for MkDocs
+ </a>
+
</div>
</div>
@@ -1393,10 +1458,13 @@
</footer>
</div>
+ <div class="md-dialog" data-md-component="dialog">
+ <div class="md-dialog__inner md-typeset"></div>
+ </div>
+ <script id="__config" type="application/json">{"base": ".", "features": [], "translations": {"clipboard.copy": "Copy to clipboard", "clipboard.copied": "Copied to clipboard", "search.config.lang": "en", "search.config.pipeline": "trimmer, stopWordFilter", "search.config.separator": "[\\s\\-]+", "search.placeholder": "Search", "search.result.placeholder": "Type to start searching", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.term.missing": "Missing", "select.version.title": "Select version"}, "search": "assets/javascripts/workers/search.477d984a.min.js", "version": null}</script>
- <script src="assets/javascripts/application.c33a9706.js"></script>
-
- <script>app.initialize({version:"1.1",url:{base:"."}})</script>
+
+ <script src="assets/javascripts/bundle.82b56eb2.min.js"></script>
<script src="javascripts/extra.js"></script>
diff --git a/freetype/docs/reference/ft2-sizes_management.html b/freetype/docs/reference/ft2-sizes_management.html
index 515e020b..bc59234c 100644
--- a/freetype/docs/reference/ft2-sizes_management.html
+++ b/freetype/docs/reference/ft2-sizes_management.html
@@ -1,145 +1,136 @@
-
-
-
<!doctype html>
<html lang="en" class="no-js">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
- <meta http-equiv="x-ua-compatible" content="ie=edge">
- <meta name="description" content="API Reference Documentation for FreeType-2.10.4">
+ <meta name="description" content="API Reference Documentation for FreeType-2.11.1">
<meta name="author" content="FreeType Contributors">
- <meta name="lang:clipboard.copy" content="Copy to clipboard">
-
- <meta name="lang:clipboard.copied" content="Copied to clipboard">
-
- <meta name="lang:search.language" content="en">
-
- <meta name="lang:search.pipeline.stopwords" content="True">
-
- <meta name="lang:search.pipeline.trimmer" content="True">
-
- <meta name="lang:search.result.none" content="No matching documents">
-
- <meta name="lang:search.result.one" content="1 matching document">
-
- <meta name="lang:search.result.other" content="# matching documents">
-
- <meta name="lang:search.tokenizer" content="[\s\-]+">
-
- <link rel="shortcut icon" href="images/favico.ico">
- <meta name="generator" content="mkdocs-1.1, mkdocs-material-4.6.3">
+ <link rel="icon" href="images/favico.ico">
+ <meta name="generator" content="mkdocs-1.2.1, mkdocs-material-7.1.9">
- <title>Size Management - FreeType-2.10.4 API Reference</title>
+ <title>Size Management - FreeType-2.11.1 API Reference</title>
- <link rel="stylesheet" href="assets/stylesheets/application.adb8469c.css">
-
- <link rel="stylesheet" href="assets/stylesheets/application-palette.a8b3c06d.css">
-
+ <link rel="stylesheet" href="assets/stylesheets/main.ca7ac06f.min.css">
+ <link rel="stylesheet" href="assets/stylesheets/palette.f1a3b89f.min.css">
+
+
+
+ <meta name="theme-color" content="#4cae4f">
- <meta name="theme-color" content="#4caf50">
- <script src="assets/javascripts/modernizr.86422ebf.js"></script>
-
- <link href="https://fonts.gstatic.com" rel="preconnect" crossorigin>
+
+ <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Noto+Serif:300,400,400i,700%7CRoboto+Mono&display=fallback">
- <style>body,input{font-family:"Noto Serif","Helvetica Neue",Helvetica,Arial,sans-serif}code,kbd,pre{font-family:"Roboto Mono","Courier New",Courier,monospace}</style>
+ <style>:root{--md-text-font-family:"Noto Serif";--md-code-font-family:"Roboto Mono"}</style>
- <link rel="stylesheet" href="assets/fonts/material-icons.css">
<link rel="stylesheet" href="stylesheets/extra.css">
+
+
</head>
+
+
+
+
- <body dir="ltr" data-md-color-primary="green" data-md-color-accent="green">
+ <body dir="ltr" data-md-color-scheme="" data-md-color-primary="green" data-md-color-accent="green">
- <svg class="md-svg">
- <defs>
-
-
- </defs>
- </svg>
- <input class="md-toggle" data-md-toggle="drawer" type="checkbox" id="__drawer" autocomplete="off">
- <input class="md-toggle" data-md-toggle="search" type="checkbox" id="__search" autocomplete="off">
- <label class="md-overlay" data-md-component="overlay" for="__drawer"></label>
- <a href="#size-management" tabindex="0" class="md-skip">
- Skip to content
- </a>
+ <script>function __prefix(e){return new URL(".",location).pathname+"."+e}function __get(e,t=localStorage){return JSON.parse(t.getItem(__prefix(e)))}</script>
+ <input class="md-toggle" data-md-toggle="drawer" type="checkbox" id="__drawer" autocomplete="off">
+ <input class="md-toggle" data-md-toggle="search" type="checkbox" id="__search" autocomplete="off">
+ <label class="md-overlay" for="__drawer"></label>
+ <div data-md-component="skip">
+
+
+ <a href="#size-management" class="md-skip">
+ Skip to content
+ </a>
+
+ </div>
+ <div data-md-component="announce">
+
+ </div>
<header class="md-header" data-md-component="header">
- <nav class="md-header-nav md-grid">
- <div class="md-flex">
- <div class="md-flex__cell md-flex__cell--shrink">
- <a href="." title="FreeType-2.10.4 API Reference" aria-label="FreeType-2.10.4 API Reference" class="md-header-nav__button md-logo">
-
- <img alt="logo" src="images/favico.ico" width="24" height="24">
-
- </a>
- </div>
- <div class="md-flex__cell md-flex__cell--shrink">
- <label class="md-icon md-icon--menu md-header-nav__button" for="__drawer"></label>
- </div>
- <div class="md-flex__cell md-flex__cell--stretch">
- <div class="md-flex__ellipsis md-header-nav__title" data-md-component="title">
-
- <span class="md-header-nav__topic">
- FreeType-2.10.4 API Reference
- </span>
- <span class="md-header-nav__topic">
-
- Size Management
-
- </span>
-
+ <nav class="md-header__inner md-grid" aria-label="Header">
+ <a href="index.html" title="FreeType-2.11.1 API Reference" class="md-header__button md-logo" aria-label="FreeType-2.11.1 API Reference" data-md-component="logo">
+
+ <img src="images/favico.ico" alt="logo">
+
+ </a>
+ <label class="md-header__button md-icon" for="__drawer">
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M3 6h18v2H3V6m0 5h18v2H3v-2m0 5h18v2H3v-2z"/></svg>
+ </label>
+ <div class="md-header__title" data-md-component="header-title">
+ <div class="md-header__ellipsis">
+ <div class="md-header__topic">
+ <span class="md-ellipsis">
+ FreeType-2.11.1 API Reference
+ </span>
+ </div>
+ <div class="md-header__topic" data-md-component="header-topic">
+ <span class="md-ellipsis">
+
+ Size Management
+
+ </span>
</div>
</div>
- <div class="md-flex__cell md-flex__cell--shrink">
-
- <label class="md-icon md-icon--search md-header-nav__button" for="__search"></label>
-
+ </div>
+
+
+
+ <label class="md-header__button md-icon" for="__search">
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M9.5 3A6.5 6.5 0 0 1 16 9.5c0 1.61-.59 3.09-1.56 4.23l.27.27h.79l5 5-1.5 1.5-5-5v-.79l-.27-.27A6.516 6.516 0 0 1 9.5 16 6.5 6.5 0 0 1 3 9.5 6.5 6.5 0 0 1 9.5 3m0 2C7 5 5 7 5 9.5S7 14 9.5 14 14 12 14 9.5 12 5 9.5 5z"/></svg>
+ </label>
+
<div class="md-search" data-md-component="search" role="dialog">
<label class="md-search__overlay" for="__search"></label>
<div class="md-search__inner" role="search">
<form class="md-search__form" name="search">
- <input type="text" class="md-search__input" aria-label="search" name="query" placeholder="Search" autocapitalize="off" autocorrect="off" autocomplete="off" spellcheck="false" data-md-component="query" data-md-state="active">
- <label class="md-icon md-search__icon" for="__search"></label>
- <button type="reset" class="md-icon md-search__icon" data-md-component="reset" tabindex="-1">
- &#xE5CD;
+ <input type="text" class="md-search__input" name="query" aria-label="Search" placeholder="Search" autocapitalize="off" autocorrect="off" autocomplete="off" spellcheck="false" data-md-component="search-query" data-md-state="active" required>
+ <label class="md-search__icon md-icon" for="__search">
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M9.5 3A6.5 6.5 0 0 1 16 9.5c0 1.61-.59 3.09-1.56 4.23l.27.27h.79l5 5-1.5 1.5-5-5v-.79l-.27-.27A6.516 6.516 0 0 1 9.5 16 6.5 6.5 0 0 1 3 9.5 6.5 6.5 0 0 1 9.5 3m0 2C7 5 5 7 5 9.5S7 14 9.5 14 14 12 14 9.5 12 5 9.5 5z"/></svg>
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M20 11v2H8l5.5 5.5-1.42 1.42L4.16 12l7.92-7.92L13.5 5.5 8 11h12z"/></svg>
+ </label>
+ <button type="reset" class="md-search__icon md-icon" aria-label="Clear" tabindex="-1">
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z"/></svg>
</button>
</form>
<div class="md-search__output">
<div class="md-search__scrollwrap" data-md-scrollfix>
- <div class="md-search-result" data-md-component="result">
+ <div class="md-search-result" data-md-component="search-result">
<div class="md-search-result__meta">
- Type to start searching
+ Initializing search
</div>
<ol class="md-search-result__list"></ol>
</div>
@@ -147,33 +138,35 @@
</div>
</div>
</div>
-
- </div>
-
- </div>
+
+
</nav>
</header>
- <div class="md-container">
+ <div class="md-container" data-md-component="container">
-
+
- <main class="md-main" role="main">
- <div class="md-main__inner md-grid" data-md-component="container">
+ <main class="md-main" data-md-component="main">
+ <div class="md-main__inner md-grid">
- <div class="md-sidebar md-sidebar--primary" data-md-component="navigation">
+
+ <div class="md-sidebar md-sidebar--primary" data-md-component="sidebar" data-md-type="navigation" >
<div class="md-sidebar__scrollwrap">
<div class="md-sidebar__inner">
- <nav class="md-nav md-nav--primary" data-md-level="0">
- <label class="md-nav__title md-nav__title--site" for="__drawer">
- <a href="." title="FreeType-2.10.4 API Reference" class="md-nav__button md-logo">
-
- <img alt="logo" src="images/favico.ico" width="48" height="48">
+
+
+
+<nav class="md-nav md-nav--primary" aria-label="Navigation" data-md-level="0">
+ <label class="md-nav__title" for="__drawer">
+ <a href="index.html" title="FreeType-2.11.1 API Reference" class="md-nav__button md-logo" aria-label="FreeType-2.11.1 API Reference" data-md-component="logo">
+ <img src="images/favico.ico" alt="logo">
+
</a>
- FreeType-2.10.4 API Reference
+ FreeType-2.11.1 API Reference
</label>
<ul class="md-nav__list" data-md-scrollfix>
@@ -182,72 +175,96 @@
-
- <li class="md-nav__item">
- <a href="index.html" title="TOC" class="md-nav__link">
- TOC
- </a>
- </li>
+
+
+
+ <li class="md-nav__item">
+ <a href="index.html" class="md-nav__link">
+ TOC
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-index.html" title="Index" class="md-nav__link">
- Index
- </a>
- </li>
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-index.html" class="md-nav__link">
+ Index
+ </a>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-3" type="checkbox" id="nav-3">
+
+
+
- <label class="md-nav__link" for="nav-3">
- General Remarks
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-3">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_3" type="checkbox" id="__nav_3" >
+
+ <label class="md-nav__link" for="__nav_3">
General Remarks
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
+ <nav class="md-nav" aria-label="General Remarks" data-md-level="1">
+ <label class="md-nav__title" for="__nav_3">
+ <span class="md-nav__icon md-icon"></span>
+ General Remarks
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-header_inclusion.html" title="FreeType's header inclusion scheme" class="md-nav__link">
- FreeType's header inclusion scheme
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-preamble.html" class="md-nav__link">
+ Preamble
+ </a>
+ </li>
+
-
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-header_inclusion.html" class="md-nav__link">
+ FreeType's header inclusion scheme
+ </a>
+ </li>
+
- <li class="md-nav__item">
- <a href="ft2-user_allocation.html" title="User allocation" class="md-nav__link">
- User allocation
- </a>
- </li>
+
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-user_allocation.html" class="md-nav__link">
+ User allocation
+ </a>
+ </li>
+
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
@@ -255,149 +272,159 @@
-
-
- <li class="md-nav__item md-nav__item--active md-nav__item--nested">
+
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-4" type="checkbox" id="nav-4" checked>
+
+
- <label class="md-nav__link" for="nav-4">
- Core API
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-4">
+ <li class="md-nav__item md-nav__item--active md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_4" type="checkbox" id="__nav_4" checked>
+
+ <label class="md-nav__link" for="__nav_4">
Core API
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
+ <nav class="md-nav" aria-label="Core API" data-md-level="1">
+ <label class="md-nav__title" for="__nav_4">
+ <span class="md-nav__icon md-icon"></span>
+ Core API
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-version.html" title="FreeType Version" class="md-nav__link">
- FreeType Version
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-version.html" class="md-nav__link">
+ FreeType Version
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-basic_types.html" title="Basic Data Types" class="md-nav__link">
- Basic Data Types
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-basic_types.html" class="md-nav__link">
+ Basic Data Types
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-base_interface.html" title="Base Interface" class="md-nav__link">
- Base Interface
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-base_interface.html" class="md-nav__link">
+ Base Interface
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-glyph_variants.html" title="Unicode Variation Sequences" class="md-nav__link">
- Unicode Variation Sequences
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-glyph_variants.html" class="md-nav__link">
+ Unicode Variation Sequences
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-color_management.html" class="md-nav__link">
+ Glyph Color Management
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-color_management.html" title="Glyph Color Management" class="md-nav__link">
- Glyph Color Management
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-layer_management.html" title="Glyph Layer Management" class="md-nav__link">
- Glyph Layer Management
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-layer_management.html" class="md-nav__link">
+ Glyph Layer Management
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-glyph_management.html" class="md-nav__link">
+ Glyph Management
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-glyph_management.html" title="Glyph Management" class="md-nav__link">
- Glyph Management
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-mac_specific.html" title="Mac Specific Interface" class="md-nav__link">
- Mac Specific Interface
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-mac_specific.html" class="md-nav__link">
+ Mac Specific Interface
+ </a>
+ </li>
+
-
-
-
-
+
+
-
-
- <li class="md-nav__item md-nav__item--active">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="toc" type="checkbox" id="__toc">
+
+
+ <li class="md-nav__item md-nav__item--active">
-
-
- <label class="md-nav__link md-nav__link--active" for="__toc">
+ <input class="md-nav__toggle md-toggle" data-md-toggle="toc" type="checkbox" id="__toc">
+
+
+
+
+
+ <label class="md-nav__link md-nav__link--active" for="__toc">
+ Size Management
+ <span class="md-nav__icon md-icon"></span>
+ </label>
+
+ <a href="ft2-sizes_management.html" class="md-nav__link md-nav__link--active">
Size Management
- </label>
-
- <a href="ft2-sizes_management.html" title="Size Management" class="md-nav__link md-nav__link--active">
- Size Management
- </a>
-
+ </a>
-<nav class="md-nav md-nav--secondary">
+
+<nav class="md-nav md-nav--secondary" aria-label="Table of contents">
+
- <label class="md-nav__title" for="__toc">Table of contents</label>
- <ul class="md-nav__list" data-md-scrollfix>
+ <label class="md-nav__title" for="__toc">
+ <span class="md-nav__icon md-icon"></span>
+ Table of contents
+ </label>
+ <ul class="md-nav__list" data-md-component="toc" data-md-scrollfix>
<li class="md-nav__item">
<a href="#synopsis" class="md-nav__link">
@@ -427,620 +454,666 @@
</li>
-
-
-
-
</ul>
</nav>
-
- </li>
+
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-header_file_macros.html" class="md-nav__link">
+ Header File Macros
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-header_file_macros.html" title="Header File Macros" class="md-nav__link">
- Header File Macros
- </a>
- </li>
-
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-5" type="checkbox" id="nav-5">
+
+
+
- <label class="md-nav__link" for="nav-5">
- Format-Specific API
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-5">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_5" type="checkbox" id="__nav_5" >
+
+ <label class="md-nav__link" for="__nav_5">
Format-Specific API
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
-
-
+ <nav class="md-nav" aria-label="Format-Specific API" data-md-level="1">
+ <label class="md-nav__title" for="__nav_5">
+ <span class="md-nav__icon md-icon"></span>
+ Format-Specific API
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-multiple_masters.html" class="md-nav__link">
+ Multiple Masters
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-multiple_masters.html" title="Multiple Masters" class="md-nav__link">
- Multiple Masters
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-truetype_tables.html" title="TrueType Tables" class="md-nav__link">
- TrueType Tables
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-truetype_tables.html" class="md-nav__link">
+ TrueType Tables
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-type1_tables.html" class="md-nav__link">
+ Type 1 Tables
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-type1_tables.html" title="Type 1 Tables" class="md-nav__link">
- Type 1 Tables
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-sfnt_names.html" title="SFNT Names" class="md-nav__link">
- SFNT Names
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-sfnt_names.html" class="md-nav__link">
+ SFNT Names
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-bdf_fonts.html" class="md-nav__link">
+ BDF and PCF Files
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-bdf_fonts.html" title="BDF and PCF Files" class="md-nav__link">
- BDF and PCF Files
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-cid_fonts.html" title="CID Fonts" class="md-nav__link">
- CID Fonts
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-cid_fonts.html" class="md-nav__link">
+ CID Fonts
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-pfr_fonts.html" class="md-nav__link">
+ PFR Fonts
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-pfr_fonts.html" title="PFR Fonts" class="md-nav__link">
- PFR Fonts
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-winfnt_fonts.html" title="Window FNT Files" class="md-nav__link">
- Window FNT Files
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-winfnt_fonts.html" class="md-nav__link">
+ Window FNT Files
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-font_formats.html" class="md-nav__link">
+ Font Formats
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-font_formats.html" title="Font Formats" class="md-nav__link">
- Font Formats
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-gasp_table.html" title="Gasp Table" class="md-nav__link">
- Gasp Table
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-gasp_table.html" class="md-nav__link">
+ Gasp Table
+ </a>
+ </li>
+
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-6" type="checkbox" id="nav-6">
+
+
+
- <label class="md-nav__link" for="nav-6">
- Controlling FreeType Modules
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-6">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_6" type="checkbox" id="__nav_6" >
+
+ <label class="md-nav__link" for="__nav_6">
Controlling FreeType Modules
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
+ <nav class="md-nav" aria-label="Controlling FreeType Modules" data-md-level="1">
+ <label class="md-nav__title" for="__nav_6">
+ <span class="md-nav__icon md-icon"></span>
+ Controlling FreeType Modules
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-auto_hinter.html" title="The auto-hinter" class="md-nav__link">
- The auto-hinter
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-auto_hinter.html" class="md-nav__link">
+ The auto-hinter
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-cff_driver.html" class="md-nav__link">
+ The CFF driver
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-cff_driver.html" title="The CFF driver" class="md-nav__link">
- The CFF driver
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-t1_cid_driver.html" title="The Type 1 and CID drivers" class="md-nav__link">
- The Type 1 and CID drivers
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-t1_cid_driver.html" class="md-nav__link">
+ The Type 1 and CID drivers
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-tt_driver.html" class="md-nav__link">
+ The TrueType driver
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-tt_driver.html" title="The TrueType driver" class="md-nav__link">
- The TrueType driver
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-pcf_driver.html" title="The PCF driver" class="md-nav__link">
- The PCF driver
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-pcf_driver.html" class="md-nav__link">
+ The PCF driver
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-properties.html" class="md-nav__link">
+ Driver properties
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-properties.html" title="Driver properties" class="md-nav__link">
- Driver properties
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-parameter_tags.html" title="Parameter Tags" class="md-nav__link">
- Parameter Tags
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-parameter_tags.html" class="md-nav__link">
+ Parameter Tags
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-lcd_rendering.html" title="Subpixel Rendering" class="md-nav__link">
- Subpixel Rendering
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-lcd_rendering.html" class="md-nav__link">
+ Subpixel Rendering
+ </a>
+ </li>
+
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-7" type="checkbox" id="nav-7">
+
+
+
- <label class="md-nav__link" for="nav-7">
- Cache Sub-System
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-7">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_7" type="checkbox" id="__nav_7" >
+
+ <label class="md-nav__link" for="__nav_7">
Cache Sub-System
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
-
+ <nav class="md-nav" aria-label="Cache Sub-System" data-md-level="1">
+ <label class="md-nav__title" for="__nav_7">
+ <span class="md-nav__icon md-icon"></span>
+ Cache Sub-System
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
-
-
-
- <li class="md-nav__item">
- <a href="ft2-cache_subsystem.html" title="Cache Sub-System" class="md-nav__link">
- Cache Sub-System
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-cache_subsystem.html" class="md-nav__link">
+ Cache Sub-System
+ </a>
+ </li>
+
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-8" type="checkbox" id="nav-8">
+
+
+
- <label class="md-nav__link" for="nav-8">
- Support API
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-8">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_8" type="checkbox" id="__nav_8" >
+
+ <label class="md-nav__link" for="__nav_8">
Support API
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
-
+ <nav class="md-nav" aria-label="Support API" data-md-level="1">
+ <label class="md-nav__title" for="__nav_8">
+ <span class="md-nav__icon md-icon"></span>
+ Support API
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
-
-
-
- <li class="md-nav__item">
- <a href="ft2-computations.html" title="Computations" class="md-nav__link">
- Computations
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-computations.html" class="md-nav__link">
+ Computations
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-list_processing.html" title="List Processing" class="md-nav__link">
- List Processing
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-list_processing.html" class="md-nav__link">
+ List Processing
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-outline_processing.html" title="Outline Processing" class="md-nav__link">
- Outline Processing
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-outline_processing.html" class="md-nav__link">
+ Outline Processing
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-quick_advance.html" title="Quick retrieval of advance values" class="md-nav__link">
- Quick retrieval of advance values
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-quick_advance.html" class="md-nav__link">
+ Quick retrieval of advance values
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-bitmap_handling.html" title="Bitmap Handling" class="md-nav__link">
- Bitmap Handling
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-bitmap_handling.html" class="md-nav__link">
+ Bitmap Handling
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-raster.html" class="md-nav__link">
+ Scanline Converter
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-raster.html" title="Scanline Converter" class="md-nav__link">
- Scanline Converter
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-glyph_stroker.html" title="Glyph Stroker" class="md-nav__link">
- Glyph Stroker
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-glyph_stroker.html" class="md-nav__link">
+ Glyph Stroker
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-system_interface.html" class="md-nav__link">
+ System Interface
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-system_interface.html" title="System Interface" class="md-nav__link">
- System Interface
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-module_management.html" title="Module Management" class="md-nav__link">
- Module Management
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-module_management.html" class="md-nav__link">
+ Module Management
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-gzip.html" class="md-nav__link">
+ GZIP Streams
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-gzip.html" title="GZIP Streams" class="md-nav__link">
- GZIP Streams
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-lzw.html" title="LZW Streams" class="md-nav__link">
- LZW Streams
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-lzw.html" class="md-nav__link">
+ LZW Streams
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-bzip2.html" class="md-nav__link">
+ BZIP2 Streams
+ </a>
+ </li>
+
+
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-debugging_apis.html" class="md-nav__link">
+ External Debugging APIs
+ </a>
+ </li>
+
- <li class="md-nav__item">
- <a href="ft2-bzip2.html" title="BZIP2 Streams" class="md-nav__link">
- BZIP2 Streams
- </a>
- </li>
-
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-9" type="checkbox" id="nav-9">
+
+
+
- <label class="md-nav__link" for="nav-9">
- Error Codes
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-9">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_9" type="checkbox" id="__nav_9" >
+
+ <label class="md-nav__link" for="__nav_9">
Error Codes
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
-
+ <nav class="md-nav" aria-label="Error Codes" data-md-level="1">
+ <label class="md-nav__title" for="__nav_9">
+ <span class="md-nav__icon md-icon"></span>
+ Error Codes
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
-
-
-
- <li class="md-nav__item">
- <a href="ft2-error_enumerations.html" title="Error Enumerations" class="md-nav__link">
- Error Enumerations
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-error_enumerations.html" class="md-nav__link">
+ Error Enumerations
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-error_code_values.html" title="Error Code Values" class="md-nav__link">
- Error Code Values
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-error_code_values.html" class="md-nav__link">
+ Error Code Values
+ </a>
+ </li>
+
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-10" type="checkbox" id="nav-10">
+
+
+
- <label class="md-nav__link" for="nav-10">
- Miscellaneous
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-10">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_10" type="checkbox" id="__nav_10" >
+
+ <label class="md-nav__link" for="__nav_10">
Miscellaneous
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
-
+ <nav class="md-nav" aria-label="Miscellaneous" data-md-level="1">
+ <label class="md-nav__title" for="__nav_10">
+ <span class="md-nav__icon md-icon"></span>
+ Miscellaneous
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
-
-
-
- <li class="md-nav__item">
- <a href="ft2-gx_validation.html" title="TrueTypeGX/AAT Validation" class="md-nav__link">
- TrueTypeGX/AAT Validation
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-gx_validation.html" class="md-nav__link">
+ TrueTypeGX/AAT Validation
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-incremental.html" class="md-nav__link">
+ Incremental Loading
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-incremental.html" title="Incremental Loading" class="md-nav__link">
- Incremental Loading
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-truetype_engine.html" title="The TrueType Engine" class="md-nav__link">
- The TrueType Engine
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-truetype_engine.html" class="md-nav__link">
+ The TrueType Engine
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-ot_validation.html" class="md-nav__link">
+ OpenType Validation
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-ot_validation.html" title="OpenType Validation" class="md-nav__link">
- OpenType Validation
- </a>
- </li>
-
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
</ul>
@@ -1050,18 +1123,23 @@
</div>
- <div class="md-sidebar md-sidebar--secondary" data-md-component="toc">
+
+ <div class="md-sidebar md-sidebar--secondary" data-md-component="sidebar" data-md-type="toc" >
<div class="md-sidebar__scrollwrap">
<div class="md-sidebar__inner">
-<nav class="md-nav md-nav--secondary">
+<nav class="md-nav md-nav--secondary" aria-label="Table of contents">
+
- <label class="md-nav__title" for="__toc">Table of contents</label>
- <ul class="md-nav__list" data-md-scrollfix>
+ <label class="md-nav__title" for="__toc">
+ <span class="md-nav__icon md-icon"></span>
+ Table of contents
+ </label>
+ <ul class="md-nav__list" data-md-component="toc" data-md-scrollfix>
<li class="md-nav__item">
<a href="#synopsis" class="md-nav__link">
@@ -1091,10 +1169,6 @@
</li>
-
-
-
-
</ul>
</nav>
@@ -1103,7 +1177,7 @@
</div>
- <div class="md-content">
+ <div class="md-content" data-md-component="content">
<article class="md-content__inner md-typeset">
@@ -1125,7 +1199,6 @@
<p>Create a new size object from a given face object.</p>
<h4>input</h4>
-
<table class="fields">
<tr><td class="val" id="face">face</td><td class="desc">
<p>A handle to a parent face object.</p>
@@ -1133,7 +1206,6 @@
</table>
<h4>output</h4>
-
<table class="fields">
<tr><td class="val" id="asize">asize</td><td class="desc">
<p>A handle to a new size object.</p>
@@ -1156,7 +1228,6 @@
<p>Discard a given size object. Note that <code><a href="ft2-base_interface.html#ft_done_face">FT_Done_Face</a></code> automatically discards all size objects allocated with <code><a href="ft2-sizes_management.html#ft_new_size">FT_New_Size</a></code>.</p>
<h4>input</h4>
-
<table class="fields">
<tr><td class="val" id="size">size</td><td class="desc">
<p>A handle to a target size object.</p>
@@ -1177,7 +1248,6 @@
<p>Even though it is possible to create several size objects for a given face (see <code><a href="ft2-sizes_management.html#ft_new_size">FT_New_Size</a></code> for details), functions like <code><a href="ft2-base_interface.html#ft_load_glyph">FT_Load_Glyph</a></code> or <code><a href="ft2-base_interface.html#ft_load_char">FT_Load_Char</a></code> only use the one that has been activated last to determine the &lsquo;current character pixel size&rsquo;.</p>
<p>This function can be used to &lsquo;activate&rsquo; a previously created size object.</p>
<h4>input</h4>
-
<table class="fields">
<tr><td class="val" id="size">size</td><td class="desc">
<p>A handle to a target size object.</p>
@@ -1192,9 +1262,6 @@
<p>If <code>face</code> is the size's parent face object, this function changes the value of <code>face-&gt;size</code> to the input size handle.</p>
<hr>
-
-
-
@@ -1204,59 +1271,60 @@
</article>
</div>
</div>
+
</main>
<footer class="md-footer">
- <div class="md-footer-nav">
- <nav class="md-footer-nav__inner md-grid">
+ <nav class="md-footer__inner md-grid" aria-label="Footer">
+
- <a href="ft2-mac_specific.html" title="Mac Specific Interface" class="md-flex md-footer-nav__link md-footer-nav__link--prev" rel="prev">
- <div class="md-flex__cell md-flex__cell--shrink">
- <i class="md-icon md-icon--arrow-back md-footer-nav__button"></i>
- </div>
- <div class="md-flex__cell md-flex__cell--stretch md-footer-nav__title">
- <span class="md-flex__ellipsis">
- <span class="md-footer-nav__direction">
- Previous
- </span>
- Mac Specific Interface
+ <a href="ft2-mac_specific.html" class="md-footer__link md-footer__link--prev" aria-label="Previous: Mac Specific Interface" rel="prev">
+ <div class="md-footer__button md-icon">
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M20 11v2H8l5.5 5.5-1.42 1.42L4.16 12l7.92-7.92L13.5 5.5 8 11h12z"/></svg>
+ </div>
+ <div class="md-footer__title">
+ <div class="md-ellipsis">
+ <span class="md-footer__direction">
+ Previous
</span>
+ Mac Specific Interface
</div>
- </a>
-
+ </div>
+ </a>
+
+
- <a href="ft2-header_file_macros.html" title="Header File Macros" class="md-flex md-footer-nav__link md-footer-nav__link--next" rel="next">
- <div class="md-flex__cell md-flex__cell--stretch md-footer-nav__title">
- <span class="md-flex__ellipsis">
- <span class="md-footer-nav__direction">
- Next
- </span>
- Header File Macros
+ <a href="ft2-header_file_macros.html" class="md-footer__link md-footer__link--next" aria-label="Next: Header File Macros" rel="next">
+ <div class="md-footer__title">
+ <div class="md-ellipsis">
+ <span class="md-footer__direction">
+ Next
</span>
+ Header File Macros
</div>
- <div class="md-flex__cell md-flex__cell--shrink">
- <i class="md-icon md-icon--arrow-forward md-footer-nav__button"></i>
- </div>
- </a>
-
- </nav>
- </div>
+ </div>
+ <div class="md-footer__button md-icon">
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M4 11v2h12l-5.5 5.5 1.42 1.42L19.84 12l-7.92-7.92L10.5 5.5 16 11H4z"/></svg>
+ </div>
+ </a>
+
+ </nav>
<div class="md-footer-meta md-typeset">
<div class="md-footer-meta__inner md-grid">
<div class="md-footer-copyright">
<div class="md-footer-copyright__highlight">
- Copyright 2020 <a href = "https://www.freetype.org/license.html">The FreeType Project</a>.
+ Copyright 2021 <a href = "https://www.freetype.org/license.html">The FreeType Project</a>.
</div>
- powered by
- <a href="https://www.mkdocs.org" target="_blank" rel="noopener">MkDocs</a>
- and
+ Made with
<a href="https://squidfunk.github.io/mkdocs-material/" target="_blank" rel="noopener">
- Material for MkDocs</a>
+ Material for MkDocs
+ </a>
+
</div>
</div>
@@ -1264,10 +1332,13 @@
</footer>
</div>
+ <div class="md-dialog" data-md-component="dialog">
+ <div class="md-dialog__inner md-typeset"></div>
+ </div>
+ <script id="__config" type="application/json">{"base": ".", "features": [], "translations": {"clipboard.copy": "Copy to clipboard", "clipboard.copied": "Copied to clipboard", "search.config.lang": "en", "search.config.pipeline": "trimmer, stopWordFilter", "search.config.separator": "[\\s\\-]+", "search.placeholder": "Search", "search.result.placeholder": "Type to start searching", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.term.missing": "Missing", "select.version.title": "Select version"}, "search": "assets/javascripts/workers/search.477d984a.min.js", "version": null}</script>
- <script src="assets/javascripts/application.c33a9706.js"></script>
-
- <script>app.initialize({version:"1.1",url:{base:"."}})</script>
+
+ <script src="assets/javascripts/bundle.82b56eb2.min.js"></script>
<script src="javascripts/extra.js"></script>
diff --git a/freetype/docs/reference/ft2-system_interface.html b/freetype/docs/reference/ft2-system_interface.html
index 27a4a0f3..c6d07495 100644
--- a/freetype/docs/reference/ft2-system_interface.html
+++ b/freetype/docs/reference/ft2-system_interface.html
@@ -1,145 +1,136 @@
-
-
-
<!doctype html>
<html lang="en" class="no-js">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
- <meta http-equiv="x-ua-compatible" content="ie=edge">
- <meta name="description" content="API Reference Documentation for FreeType-2.10.4">
+ <meta name="description" content="API Reference Documentation for FreeType-2.11.1">
<meta name="author" content="FreeType Contributors">
- <meta name="lang:clipboard.copy" content="Copy to clipboard">
-
- <meta name="lang:clipboard.copied" content="Copied to clipboard">
-
- <meta name="lang:search.language" content="en">
-
- <meta name="lang:search.pipeline.stopwords" content="True">
-
- <meta name="lang:search.pipeline.trimmer" content="True">
-
- <meta name="lang:search.result.none" content="No matching documents">
-
- <meta name="lang:search.result.one" content="1 matching document">
-
- <meta name="lang:search.result.other" content="# matching documents">
-
- <meta name="lang:search.tokenizer" content="[\s\-]+">
-
- <link rel="shortcut icon" href="images/favico.ico">
- <meta name="generator" content="mkdocs-1.1, mkdocs-material-4.6.3">
+ <link rel="icon" href="images/favico.ico">
+ <meta name="generator" content="mkdocs-1.2.1, mkdocs-material-7.1.9">
- <title>System Interface - FreeType-2.10.4 API Reference</title>
+ <title>System Interface - FreeType-2.11.1 API Reference</title>
- <link rel="stylesheet" href="assets/stylesheets/application.adb8469c.css">
-
- <link rel="stylesheet" href="assets/stylesheets/application-palette.a8b3c06d.css">
-
+ <link rel="stylesheet" href="assets/stylesheets/main.ca7ac06f.min.css">
+ <link rel="stylesheet" href="assets/stylesheets/palette.f1a3b89f.min.css">
+
+
+
+ <meta name="theme-color" content="#4cae4f">
- <meta name="theme-color" content="#4caf50">
- <script src="assets/javascripts/modernizr.86422ebf.js"></script>
-
- <link href="https://fonts.gstatic.com" rel="preconnect" crossorigin>
+
+ <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Noto+Serif:300,400,400i,700%7CRoboto+Mono&display=fallback">
- <style>body,input{font-family:"Noto Serif","Helvetica Neue",Helvetica,Arial,sans-serif}code,kbd,pre{font-family:"Roboto Mono","Courier New",Courier,monospace}</style>
+ <style>:root{--md-text-font-family:"Noto Serif";--md-code-font-family:"Roboto Mono"}</style>
- <link rel="stylesheet" href="assets/fonts/material-icons.css">
<link rel="stylesheet" href="stylesheets/extra.css">
+
+
</head>
+
+
+
+
- <body dir="ltr" data-md-color-primary="green" data-md-color-accent="green">
+ <body dir="ltr" data-md-color-scheme="" data-md-color-primary="green" data-md-color-accent="green">
- <svg class="md-svg">
- <defs>
-
-
- </defs>
- </svg>
- <input class="md-toggle" data-md-toggle="drawer" type="checkbox" id="__drawer" autocomplete="off">
- <input class="md-toggle" data-md-toggle="search" type="checkbox" id="__search" autocomplete="off">
- <label class="md-overlay" data-md-component="overlay" for="__drawer"></label>
- <a href="#system-interface" tabindex="0" class="md-skip">
- Skip to content
- </a>
+ <script>function __prefix(e){return new URL(".",location).pathname+"."+e}function __get(e,t=localStorage){return JSON.parse(t.getItem(__prefix(e)))}</script>
+ <input class="md-toggle" data-md-toggle="drawer" type="checkbox" id="__drawer" autocomplete="off">
+ <input class="md-toggle" data-md-toggle="search" type="checkbox" id="__search" autocomplete="off">
+ <label class="md-overlay" for="__drawer"></label>
+ <div data-md-component="skip">
+
+
+ <a href="#system-interface" class="md-skip">
+ Skip to content
+ </a>
+
+ </div>
+ <div data-md-component="announce">
+
+ </div>
<header class="md-header" data-md-component="header">
- <nav class="md-header-nav md-grid">
- <div class="md-flex">
- <div class="md-flex__cell md-flex__cell--shrink">
- <a href="." title="FreeType-2.10.4 API Reference" aria-label="FreeType-2.10.4 API Reference" class="md-header-nav__button md-logo">
-
- <img alt="logo" src="images/favico.ico" width="24" height="24">
-
- </a>
- </div>
- <div class="md-flex__cell md-flex__cell--shrink">
- <label class="md-icon md-icon--menu md-header-nav__button" for="__drawer"></label>
- </div>
- <div class="md-flex__cell md-flex__cell--stretch">
- <div class="md-flex__ellipsis md-header-nav__title" data-md-component="title">
-
- <span class="md-header-nav__topic">
- FreeType-2.10.4 API Reference
- </span>
- <span class="md-header-nav__topic">
-
- System Interface
-
- </span>
-
+ <nav class="md-header__inner md-grid" aria-label="Header">
+ <a href="index.html" title="FreeType-2.11.1 API Reference" class="md-header__button md-logo" aria-label="FreeType-2.11.1 API Reference" data-md-component="logo">
+
+ <img src="images/favico.ico" alt="logo">
+
+ </a>
+ <label class="md-header__button md-icon" for="__drawer">
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M3 6h18v2H3V6m0 5h18v2H3v-2m0 5h18v2H3v-2z"/></svg>
+ </label>
+ <div class="md-header__title" data-md-component="header-title">
+ <div class="md-header__ellipsis">
+ <div class="md-header__topic">
+ <span class="md-ellipsis">
+ FreeType-2.11.1 API Reference
+ </span>
+ </div>
+ <div class="md-header__topic" data-md-component="header-topic">
+ <span class="md-ellipsis">
+
+ System Interface
+
+ </span>
</div>
</div>
- <div class="md-flex__cell md-flex__cell--shrink">
-
- <label class="md-icon md-icon--search md-header-nav__button" for="__search"></label>
-
+ </div>
+
+
+
+ <label class="md-header__button md-icon" for="__search">
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M9.5 3A6.5 6.5 0 0 1 16 9.5c0 1.61-.59 3.09-1.56 4.23l.27.27h.79l5 5-1.5 1.5-5-5v-.79l-.27-.27A6.516 6.516 0 0 1 9.5 16 6.5 6.5 0 0 1 3 9.5 6.5 6.5 0 0 1 9.5 3m0 2C7 5 5 7 5 9.5S7 14 9.5 14 14 12 14 9.5 12 5 9.5 5z"/></svg>
+ </label>
+
<div class="md-search" data-md-component="search" role="dialog">
<label class="md-search__overlay" for="__search"></label>
<div class="md-search__inner" role="search">
<form class="md-search__form" name="search">
- <input type="text" class="md-search__input" aria-label="search" name="query" placeholder="Search" autocapitalize="off" autocorrect="off" autocomplete="off" spellcheck="false" data-md-component="query" data-md-state="active">
- <label class="md-icon md-search__icon" for="__search"></label>
- <button type="reset" class="md-icon md-search__icon" data-md-component="reset" tabindex="-1">
- &#xE5CD;
+ <input type="text" class="md-search__input" name="query" aria-label="Search" placeholder="Search" autocapitalize="off" autocorrect="off" autocomplete="off" spellcheck="false" data-md-component="search-query" data-md-state="active" required>
+ <label class="md-search__icon md-icon" for="__search">
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M9.5 3A6.5 6.5 0 0 1 16 9.5c0 1.61-.59 3.09-1.56 4.23l.27.27h.79l5 5-1.5 1.5-5-5v-.79l-.27-.27A6.516 6.516 0 0 1 9.5 16 6.5 6.5 0 0 1 3 9.5 6.5 6.5 0 0 1 9.5 3m0 2C7 5 5 7 5 9.5S7 14 9.5 14 14 12 14 9.5 12 5 9.5 5z"/></svg>
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M20 11v2H8l5.5 5.5-1.42 1.42L4.16 12l7.92-7.92L13.5 5.5 8 11h12z"/></svg>
+ </label>
+ <button type="reset" class="md-search__icon md-icon" aria-label="Clear" tabindex="-1">
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z"/></svg>
</button>
</form>
<div class="md-search__output">
<div class="md-search__scrollwrap" data-md-scrollfix>
- <div class="md-search-result" data-md-component="result">
+ <div class="md-search-result" data-md-component="search-result">
<div class="md-search-result__meta">
- Type to start searching
+ Initializing search
</div>
<ol class="md-search-result__list"></ol>
</div>
@@ -147,33 +138,35 @@
</div>
</div>
</div>
-
- </div>
-
- </div>
+
+
</nav>
</header>
- <div class="md-container">
+ <div class="md-container" data-md-component="container">
-
+
- <main class="md-main" role="main">
- <div class="md-main__inner md-grid" data-md-component="container">
+ <main class="md-main" data-md-component="main">
+ <div class="md-main__inner md-grid">
- <div class="md-sidebar md-sidebar--primary" data-md-component="navigation">
+
+ <div class="md-sidebar md-sidebar--primary" data-md-component="sidebar" data-md-type="navigation" >
<div class="md-sidebar__scrollwrap">
<div class="md-sidebar__inner">
- <nav class="md-nav md-nav--primary" data-md-level="0">
- <label class="md-nav__title md-nav__title--site" for="__drawer">
- <a href="." title="FreeType-2.10.4 API Reference" class="md-nav__button md-logo">
-
- <img alt="logo" src="images/favico.ico" width="48" height="48">
+
+
+
+<nav class="md-nav md-nav--primary" aria-label="Navigation" data-md-level="0">
+ <label class="md-nav__title" for="__drawer">
+ <a href="index.html" title="FreeType-2.11.1 API Reference" class="md-nav__button md-logo" aria-label="FreeType-2.11.1 API Reference" data-md-component="logo">
+ <img src="images/favico.ico" alt="logo">
+
</a>
- FreeType-2.10.4 API Reference
+ FreeType-2.11.1 API Reference
</label>
<ul class="md-nav__list" data-md-scrollfix>
@@ -182,516 +175,564 @@
-
- <li class="md-nav__item">
- <a href="index.html" title="TOC" class="md-nav__link">
- TOC
- </a>
- </li>
+
+
+
+ <li class="md-nav__item">
+ <a href="index.html" class="md-nav__link">
+ TOC
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-index.html" title="Index" class="md-nav__link">
- Index
- </a>
- </li>
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-index.html" class="md-nav__link">
+ Index
+ </a>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-3" type="checkbox" id="nav-3">
+
+
+
- <label class="md-nav__link" for="nav-3">
- General Remarks
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-3">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_3" type="checkbox" id="__nav_3" >
+
+ <label class="md-nav__link" for="__nav_3">
General Remarks
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
-
+ <nav class="md-nav" aria-label="General Remarks" data-md-level="1">
+ <label class="md-nav__title" for="__nav_3">
+ <span class="md-nav__icon md-icon"></span>
+ General Remarks
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
-
-
-
- <li class="md-nav__item">
- <a href="ft2-header_inclusion.html" title="FreeType's header inclusion scheme" class="md-nav__link">
- FreeType's header inclusion scheme
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-preamble.html" class="md-nav__link">
+ Preamble
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-header_inclusion.html" class="md-nav__link">
+ FreeType's header inclusion scheme
+ </a>
+ </li>
+
+
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-user_allocation.html" class="md-nav__link">
+ User allocation
+ </a>
+ </li>
+
- <li class="md-nav__item">
- <a href="ft2-user_allocation.html" title="User allocation" class="md-nav__link">
- User allocation
- </a>
- </li>
-
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-4" type="checkbox" id="nav-4">
+
+
+
- <label class="md-nav__link" for="nav-4">
- Core API
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-4">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_4" type="checkbox" id="__nav_4" >
+
+ <label class="md-nav__link" for="__nav_4">
Core API
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
-
+ <nav class="md-nav" aria-label="Core API" data-md-level="1">
+ <label class="md-nav__title" for="__nav_4">
+ <span class="md-nav__icon md-icon"></span>
+ Core API
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
-
-
-
- <li class="md-nav__item">
- <a href="ft2-version.html" title="FreeType Version" class="md-nav__link">
- FreeType Version
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-version.html" class="md-nav__link">
+ FreeType Version
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-basic_types.html" class="md-nav__link">
+ Basic Data Types
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-basic_types.html" title="Basic Data Types" class="md-nav__link">
- Basic Data Types
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-base_interface.html" title="Base Interface" class="md-nav__link">
- Base Interface
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-base_interface.html" class="md-nav__link">
+ Base Interface
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-glyph_variants.html" class="md-nav__link">
+ Unicode Variation Sequences
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-glyph_variants.html" title="Unicode Variation Sequences" class="md-nav__link">
- Unicode Variation Sequences
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-color_management.html" title="Glyph Color Management" class="md-nav__link">
- Glyph Color Management
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-color_management.html" class="md-nav__link">
+ Glyph Color Management
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-layer_management.html" class="md-nav__link">
+ Glyph Layer Management
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-layer_management.html" title="Glyph Layer Management" class="md-nav__link">
- Glyph Layer Management
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-glyph_management.html" title="Glyph Management" class="md-nav__link">
- Glyph Management
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-glyph_management.html" class="md-nav__link">
+ Glyph Management
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-mac_specific.html" title="Mac Specific Interface" class="md-nav__link">
- Mac Specific Interface
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-mac_specific.html" class="md-nav__link">
+ Mac Specific Interface
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-sizes_management.html" title="Size Management" class="md-nav__link">
- Size Management
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-sizes_management.html" class="md-nav__link">
+ Size Management
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-header_file_macros.html" class="md-nav__link">
+ Header File Macros
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-header_file_macros.html" title="Header File Macros" class="md-nav__link">
- Header File Macros
- </a>
- </li>
-
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-5" type="checkbox" id="nav-5">
+
+
+
- <label class="md-nav__link" for="nav-5">
- Format-Specific API
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-5">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_5" type="checkbox" id="__nav_5" >
+
+ <label class="md-nav__link" for="__nav_5">
Format-Specific API
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
-
-
+ <nav class="md-nav" aria-label="Format-Specific API" data-md-level="1">
+ <label class="md-nav__title" for="__nav_5">
+ <span class="md-nav__icon md-icon"></span>
+ Format-Specific API
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-multiple_masters.html" class="md-nav__link">
+ Multiple Masters
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-multiple_masters.html" title="Multiple Masters" class="md-nav__link">
- Multiple Masters
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-truetype_tables.html" title="TrueType Tables" class="md-nav__link">
- TrueType Tables
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-truetype_tables.html" class="md-nav__link">
+ TrueType Tables
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-type1_tables.html" title="Type 1 Tables" class="md-nav__link">
- Type 1 Tables
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-type1_tables.html" class="md-nav__link">
+ Type 1 Tables
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-sfnt_names.html" title="SFNT Names" class="md-nav__link">
- SFNT Names
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-sfnt_names.html" class="md-nav__link">
+ SFNT Names
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-bdf_fonts.html" title="BDF and PCF Files" class="md-nav__link">
- BDF and PCF Files
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-bdf_fonts.html" class="md-nav__link">
+ BDF and PCF Files
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-cid_fonts.html" title="CID Fonts" class="md-nav__link">
- CID Fonts
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-cid_fonts.html" class="md-nav__link">
+ CID Fonts
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-pfr_fonts.html" title="PFR Fonts" class="md-nav__link">
- PFR Fonts
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-pfr_fonts.html" class="md-nav__link">
+ PFR Fonts
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-winfnt_fonts.html" title="Window FNT Files" class="md-nav__link">
- Window FNT Files
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-winfnt_fonts.html" class="md-nav__link">
+ Window FNT Files
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-font_formats.html" title="Font Formats" class="md-nav__link">
- Font Formats
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-font_formats.html" class="md-nav__link">
+ Font Formats
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-gasp_table.html" title="Gasp Table" class="md-nav__link">
- Gasp Table
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-gasp_table.html" class="md-nav__link">
+ Gasp Table
+ </a>
+ </li>
+
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-6" type="checkbox" id="nav-6">
+
+
+
- <label class="md-nav__link" for="nav-6">
- Controlling FreeType Modules
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-6">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_6" type="checkbox" id="__nav_6" >
+
+ <label class="md-nav__link" for="__nav_6">
Controlling FreeType Modules
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
-
+ <nav class="md-nav" aria-label="Controlling FreeType Modules" data-md-level="1">
+ <label class="md-nav__title" for="__nav_6">
+ <span class="md-nav__icon md-icon"></span>
+ Controlling FreeType Modules
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
-
-
-
- <li class="md-nav__item">
- <a href="ft2-auto_hinter.html" title="The auto-hinter" class="md-nav__link">
- The auto-hinter
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-auto_hinter.html" class="md-nav__link">
+ The auto-hinter
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-cff_driver.html" title="The CFF driver" class="md-nav__link">
- The CFF driver
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-cff_driver.html" class="md-nav__link">
+ The CFF driver
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-t1_cid_driver.html" class="md-nav__link">
+ The Type 1 and CID drivers
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-t1_cid_driver.html" title="The Type 1 and CID drivers" class="md-nav__link">
- The Type 1 and CID drivers
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-tt_driver.html" title="The TrueType driver" class="md-nav__link">
- The TrueType driver
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-tt_driver.html" class="md-nav__link">
+ The TrueType driver
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-pcf_driver.html" title="The PCF driver" class="md-nav__link">
- The PCF driver
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-pcf_driver.html" class="md-nav__link">
+ The PCF driver
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-properties.html" title="Driver properties" class="md-nav__link">
- Driver properties
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-properties.html" class="md-nav__link">
+ Driver properties
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-parameter_tags.html" class="md-nav__link">
+ Parameter Tags
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-parameter_tags.html" title="Parameter Tags" class="md-nav__link">
- Parameter Tags
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-lcd_rendering.html" title="Subpixel Rendering" class="md-nav__link">
- Subpixel Rendering
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-lcd_rendering.html" class="md-nav__link">
+ Subpixel Rendering
+ </a>
+ </li>
+
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-7" type="checkbox" id="nav-7">
+
+
+
- <label class="md-nav__link" for="nav-7">
- Cache Sub-System
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-7">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_7" type="checkbox" id="__nav_7" >
+
+ <label class="md-nav__link" for="__nav_7">
Cache Sub-System
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
-
-
+ <nav class="md-nav" aria-label="Cache Sub-System" data-md-level="1">
+ <label class="md-nav__title" for="__nav_7">
+ <span class="md-nav__icon md-icon"></span>
+ Cache Sub-System
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-cache_subsystem.html" class="md-nav__link">
+ Cache Sub-System
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-cache_subsystem.html" title="Cache Sub-System" class="md-nav__link">
- Cache Sub-System
- </a>
- </li>
-
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
@@ -699,137 +740,147 @@
-
-
- <li class="md-nav__item md-nav__item--active md-nav__item--nested">
+
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-8" type="checkbox" id="nav-8" checked>
+
+
- <label class="md-nav__link" for="nav-8">
- Support API
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-8">
+ <li class="md-nav__item md-nav__item--active md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_8" type="checkbox" id="__nav_8" checked>
+
+ <label class="md-nav__link" for="__nav_8">
Support API
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
-
+ <nav class="md-nav" aria-label="Support API" data-md-level="1">
+ <label class="md-nav__title" for="__nav_8">
+ <span class="md-nav__icon md-icon"></span>
+ Support API
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
-
-
-
- <li class="md-nav__item">
- <a href="ft2-computations.html" title="Computations" class="md-nav__link">
- Computations
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-computations.html" class="md-nav__link">
+ Computations
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-list_processing.html" title="List Processing" class="md-nav__link">
- List Processing
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-list_processing.html" class="md-nav__link">
+ List Processing
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-outline_processing.html" title="Outline Processing" class="md-nav__link">
- Outline Processing
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-outline_processing.html" class="md-nav__link">
+ Outline Processing
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-quick_advance.html" title="Quick retrieval of advance values" class="md-nav__link">
- Quick retrieval of advance values
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-quick_advance.html" class="md-nav__link">
+ Quick retrieval of advance values
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-bitmap_handling.html" title="Bitmap Handling" class="md-nav__link">
- Bitmap Handling
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-bitmap_handling.html" class="md-nav__link">
+ Bitmap Handling
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-raster.html" title="Scanline Converter" class="md-nav__link">
- Scanline Converter
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-raster.html" class="md-nav__link">
+ Scanline Converter
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-glyph_stroker.html" title="Glyph Stroker" class="md-nav__link">
- Glyph Stroker
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-glyph_stroker.html" class="md-nav__link">
+ Glyph Stroker
+ </a>
+ </li>
+
-
-
-
-
+
+
-
-
- <li class="md-nav__item md-nav__item--active">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="toc" type="checkbox" id="__toc">
+
+
+ <li class="md-nav__item md-nav__item--active">
-
-
- <label class="md-nav__link md-nav__link--active" for="__toc">
+ <input class="md-nav__toggle md-toggle" data-md-toggle="toc" type="checkbox" id="__toc">
+
+
+
+
+
+ <label class="md-nav__link md-nav__link--active" for="__toc">
+ System Interface
+ <span class="md-nav__icon md-icon"></span>
+ </label>
+
+ <a href="ft2-system_interface.html" class="md-nav__link md-nav__link--active">
System Interface
- </label>
-
- <a href="ft2-system_interface.html" title="System Interface" class="md-nav__link md-nav__link--active">
- System Interface
- </a>
-
+ </a>
-<nav class="md-nav md-nav--secondary">
+
+<nav class="md-nav md-nav--secondary" aria-label="Table of contents">
+
- <label class="md-nav__title" for="__toc">Table of contents</label>
- <ul class="md-nav__list" data-md-scrollfix>
+ <label class="md-nav__title" for="__toc">
+ <span class="md-nav__icon md-icon"></span>
+ Table of contents
+ </label>
+ <ul class="md-nav__list" data-md-component="toc" data-md-scrollfix>
<li class="md-nav__item">
<a href="#synopsis" class="md-nav__link">
@@ -908,188 +959,210 @@
</li>
-
-
-
-
</ul>
</nav>
-
- </li>
+
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-module_management.html" class="md-nav__link">
+ Module Management
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-module_management.html" title="Module Management" class="md-nav__link">
- Module Management
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-gzip.html" title="GZIP Streams" class="md-nav__link">
- GZIP Streams
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-gzip.html" class="md-nav__link">
+ GZIP Streams
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-lzw.html" title="LZW Streams" class="md-nav__link">
- LZW Streams
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-lzw.html" class="md-nav__link">
+ LZW Streams
+ </a>
+ </li>
+
-
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-bzip2.html" class="md-nav__link">
+ BZIP2 Streams
+ </a>
+ </li>
+
- <li class="md-nav__item">
- <a href="ft2-bzip2.html" title="BZIP2 Streams" class="md-nav__link">
- BZIP2 Streams
- </a>
- </li>
+
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-debugging_apis.html" class="md-nav__link">
+ External Debugging APIs
+ </a>
+ </li>
+
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-9" type="checkbox" id="nav-9">
+
+
+
- <label class="md-nav__link" for="nav-9">
- Error Codes
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-9">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_9" type="checkbox" id="__nav_9" >
+
+ <label class="md-nav__link" for="__nav_9">
Error Codes
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
-
+ <nav class="md-nav" aria-label="Error Codes" data-md-level="1">
+ <label class="md-nav__title" for="__nav_9">
+ <span class="md-nav__icon md-icon"></span>
+ Error Codes
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
-
-
-
- <li class="md-nav__item">
- <a href="ft2-error_enumerations.html" title="Error Enumerations" class="md-nav__link">
- Error Enumerations
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-error_enumerations.html" class="md-nav__link">
+ Error Enumerations
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-error_code_values.html" title="Error Code Values" class="md-nav__link">
- Error Code Values
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-error_code_values.html" class="md-nav__link">
+ Error Code Values
+ </a>
+ </li>
+
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-10" type="checkbox" id="nav-10">
+
+
+
- <label class="md-nav__link" for="nav-10">
- Miscellaneous
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-10">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_10" type="checkbox" id="__nav_10" >
+
+ <label class="md-nav__link" for="__nav_10">
Miscellaneous
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
+ <nav class="md-nav" aria-label="Miscellaneous" data-md-level="1">
+ <label class="md-nav__title" for="__nav_10">
+ <span class="md-nav__icon md-icon"></span>
+ Miscellaneous
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-gx_validation.html" title="TrueTypeGX/AAT Validation" class="md-nav__link">
- TrueTypeGX/AAT Validation
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-gx_validation.html" class="md-nav__link">
+ TrueTypeGX/AAT Validation
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-incremental.html" class="md-nav__link">
+ Incremental Loading
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-incremental.html" title="Incremental Loading" class="md-nav__link">
- Incremental Loading
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-truetype_engine.html" title="The TrueType Engine" class="md-nav__link">
- The TrueType Engine
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-truetype_engine.html" class="md-nav__link">
+ The TrueType Engine
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-ot_validation.html" title="OpenType Validation" class="md-nav__link">
- OpenType Validation
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-ot_validation.html" class="md-nav__link">
+ OpenType Validation
+ </a>
+ </li>
+
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
</ul>
@@ -1099,18 +1172,23 @@
</div>
- <div class="md-sidebar md-sidebar--secondary" data-md-component="toc">
+
+ <div class="md-sidebar md-sidebar--secondary" data-md-component="sidebar" data-md-type="toc" >
<div class="md-sidebar__scrollwrap">
<div class="md-sidebar__inner">
-<nav class="md-nav md-nav--secondary">
+<nav class="md-nav md-nav--secondary" aria-label="Table of contents">
+
- <label class="md-nav__title" for="__toc">Table of contents</label>
- <ul class="md-nav__list" data-md-scrollfix>
+ <label class="md-nav__title" for="__toc">
+ <span class="md-nav__icon md-icon"></span>
+ Table of contents
+ </label>
+ <ul class="md-nav__list" data-md-component="toc" data-md-scrollfix>
<li class="md-nav__item">
<a href="#synopsis" class="md-nav__link">
@@ -1189,10 +1267,6 @@
</li>
-
-
-
-
</ul>
</nav>
@@ -1201,7 +1275,7 @@
</div>
- <div class="md-content">
+ <div class="md-content" data-md-component="content">
<article class="md-content__inner md-typeset">
@@ -1228,7 +1302,6 @@
<p>A function used to allocate <code>size</code> bytes from <code>memory</code>.</p>
<h4>input</h4>
-
<table class="fields">
<tr><td class="val" id="memory">memory</td><td class="desc">
<p>A handle to the source memory manager.</p>
@@ -1252,7 +1325,6 @@
<p>A function used to release a given block of memory.</p>
<h4>input</h4>
-
<table class="fields">
<tr><td class="val" id="memory">memory</td><td class="desc">
<p>A handle to the source memory manager.</p>
@@ -1275,7 +1347,6 @@
<p>A function used to re-allocate a given block of memory.</p>
<h4>input</h4>
-
<table class="fields">
<tr><td class="val" id="memory">memory</td><td class="desc">
<p>A handle to the source memory manager.</p>
@@ -1312,7 +1383,6 @@
<p>A structure used to describe a given memory manager to FreeType&nbsp;2.</p>
<h4>fields</h4>
-
<table class="fields">
<tr><td class="val" id="user">user</td><td class="desc">
<p>A generic typeless pointer for user data.</p>
@@ -1365,7 +1435,6 @@
<p>A function used to seek and read data from a given input stream.</p>
<h4>input</h4>
-
<table class="fields">
<tr><td class="val" id="stream">stream</td><td class="desc">
<p>A handle to the source stream.</p>
@@ -1397,7 +1466,6 @@
<p>A function used to close a given input stream.</p>
<h4>input</h4>
-
<table class="fields">
<tr><td class="val" id="stream">stream</td><td class="desc">
<p>A handle to the target stream.</p>
@@ -1428,7 +1496,6 @@
<p>A structure used to describe an input stream.</p>
<h4>input</h4>
-
<table class="fields">
<tr><td class="val" id="base">base</td><td class="desc">
<p>For memory-based streams, this is the address of the first stream byte in memory. This field should always be set to <code>NULL</code> for disk-based streams.</p>
@@ -1465,9 +1532,6 @@
<hr>
-
-
-
@@ -1477,59 +1541,60 @@
</article>
</div>
</div>
+
</main>
<footer class="md-footer">
- <div class="md-footer-nav">
- <nav class="md-footer-nav__inner md-grid">
+ <nav class="md-footer__inner md-grid" aria-label="Footer">
+
- <a href="ft2-glyph_stroker.html" title="Glyph Stroker" class="md-flex md-footer-nav__link md-footer-nav__link--prev" rel="prev">
- <div class="md-flex__cell md-flex__cell--shrink">
- <i class="md-icon md-icon--arrow-back md-footer-nav__button"></i>
- </div>
- <div class="md-flex__cell md-flex__cell--stretch md-footer-nav__title">
- <span class="md-flex__ellipsis">
- <span class="md-footer-nav__direction">
- Previous
- </span>
- Glyph Stroker
+ <a href="ft2-glyph_stroker.html" class="md-footer__link md-footer__link--prev" aria-label="Previous: Glyph Stroker" rel="prev">
+ <div class="md-footer__button md-icon">
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M20 11v2H8l5.5 5.5-1.42 1.42L4.16 12l7.92-7.92L13.5 5.5 8 11h12z"/></svg>
+ </div>
+ <div class="md-footer__title">
+ <div class="md-ellipsis">
+ <span class="md-footer__direction">
+ Previous
</span>
+ Glyph Stroker
</div>
- </a>
-
+ </div>
+ </a>
+
+
- <a href="ft2-module_management.html" title="Module Management" class="md-flex md-footer-nav__link md-footer-nav__link--next" rel="next">
- <div class="md-flex__cell md-flex__cell--stretch md-footer-nav__title">
- <span class="md-flex__ellipsis">
- <span class="md-footer-nav__direction">
- Next
- </span>
- Module Management
+ <a href="ft2-module_management.html" class="md-footer__link md-footer__link--next" aria-label="Next: Module Management" rel="next">
+ <div class="md-footer__title">
+ <div class="md-ellipsis">
+ <span class="md-footer__direction">
+ Next
</span>
+ Module Management
</div>
- <div class="md-flex__cell md-flex__cell--shrink">
- <i class="md-icon md-icon--arrow-forward md-footer-nav__button"></i>
- </div>
- </a>
-
- </nav>
- </div>
+ </div>
+ <div class="md-footer__button md-icon">
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M4 11v2h12l-5.5 5.5 1.42 1.42L19.84 12l-7.92-7.92L10.5 5.5 16 11H4z"/></svg>
+ </div>
+ </a>
+
+ </nav>
<div class="md-footer-meta md-typeset">
<div class="md-footer-meta__inner md-grid">
<div class="md-footer-copyright">
<div class="md-footer-copyright__highlight">
- Copyright 2020 <a href = "https://www.freetype.org/license.html">The FreeType Project</a>.
+ Copyright 2021 <a href = "https://www.freetype.org/license.html">The FreeType Project</a>.
</div>
- powered by
- <a href="https://www.mkdocs.org" target="_blank" rel="noopener">MkDocs</a>
- and
+ Made with
<a href="https://squidfunk.github.io/mkdocs-material/" target="_blank" rel="noopener">
- Material for MkDocs</a>
+ Material for MkDocs
+ </a>
+
</div>
</div>
@@ -1537,10 +1602,13 @@
</footer>
</div>
+ <div class="md-dialog" data-md-component="dialog">
+ <div class="md-dialog__inner md-typeset"></div>
+ </div>
+ <script id="__config" type="application/json">{"base": ".", "features": [], "translations": {"clipboard.copy": "Copy to clipboard", "clipboard.copied": "Copied to clipboard", "search.config.lang": "en", "search.config.pipeline": "trimmer, stopWordFilter", "search.config.separator": "[\\s\\-]+", "search.placeholder": "Search", "search.result.placeholder": "Type to start searching", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.term.missing": "Missing", "select.version.title": "Select version"}, "search": "assets/javascripts/workers/search.477d984a.min.js", "version": null}</script>
- <script src="assets/javascripts/application.c33a9706.js"></script>
-
- <script>app.initialize({version:"1.1",url:{base:"."}})</script>
+
+ <script src="assets/javascripts/bundle.82b56eb2.min.js"></script>
<script src="javascripts/extra.js"></script>
diff --git a/freetype/docs/reference/ft2-t1_cid_driver.html b/freetype/docs/reference/ft2-t1_cid_driver.html
index 37f2cf57..47857132 100644
--- a/freetype/docs/reference/ft2-t1_cid_driver.html
+++ b/freetype/docs/reference/ft2-t1_cid_driver.html
@@ -1,145 +1,136 @@
-
-
-
<!doctype html>
<html lang="en" class="no-js">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
- <meta http-equiv="x-ua-compatible" content="ie=edge">
- <meta name="description" content="API Reference Documentation for FreeType-2.10.4">
+ <meta name="description" content="API Reference Documentation for FreeType-2.11.1">
<meta name="author" content="FreeType Contributors">
- <meta name="lang:clipboard.copy" content="Copy to clipboard">
-
- <meta name="lang:clipboard.copied" content="Copied to clipboard">
-
- <meta name="lang:search.language" content="en">
-
- <meta name="lang:search.pipeline.stopwords" content="True">
-
- <meta name="lang:search.pipeline.trimmer" content="True">
-
- <meta name="lang:search.result.none" content="No matching documents">
-
- <meta name="lang:search.result.one" content="1 matching document">
-
- <meta name="lang:search.result.other" content="# matching documents">
-
- <meta name="lang:search.tokenizer" content="[\s\-]+">
-
- <link rel="shortcut icon" href="images/favico.ico">
- <meta name="generator" content="mkdocs-1.1, mkdocs-material-4.6.3">
+ <link rel="icon" href="images/favico.ico">
+ <meta name="generator" content="mkdocs-1.2.1, mkdocs-material-7.1.9">
- <title>The Type 1 and CID drivers - FreeType-2.10.4 API Reference</title>
+ <title>The Type 1 and CID drivers - FreeType-2.11.1 API Reference</title>
- <link rel="stylesheet" href="assets/stylesheets/application.adb8469c.css">
-
- <link rel="stylesheet" href="assets/stylesheets/application-palette.a8b3c06d.css">
-
+ <link rel="stylesheet" href="assets/stylesheets/main.ca7ac06f.min.css">
+ <link rel="stylesheet" href="assets/stylesheets/palette.f1a3b89f.min.css">
+
+
+
+ <meta name="theme-color" content="#4cae4f">
- <meta name="theme-color" content="#4caf50">
- <script src="assets/javascripts/modernizr.86422ebf.js"></script>
-
- <link href="https://fonts.gstatic.com" rel="preconnect" crossorigin>
+
+ <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Noto+Serif:300,400,400i,700%7CRoboto+Mono&display=fallback">
- <style>body,input{font-family:"Noto Serif","Helvetica Neue",Helvetica,Arial,sans-serif}code,kbd,pre{font-family:"Roboto Mono","Courier New",Courier,monospace}</style>
+ <style>:root{--md-text-font-family:"Noto Serif";--md-code-font-family:"Roboto Mono"}</style>
- <link rel="stylesheet" href="assets/fonts/material-icons.css">
<link rel="stylesheet" href="stylesheets/extra.css">
+
+
</head>
+
+
+
+
- <body dir="ltr" data-md-color-primary="green" data-md-color-accent="green">
+ <body dir="ltr" data-md-color-scheme="" data-md-color-primary="green" data-md-color-accent="green">
- <svg class="md-svg">
- <defs>
-
-
- </defs>
- </svg>
- <input class="md-toggle" data-md-toggle="drawer" type="checkbox" id="__drawer" autocomplete="off">
- <input class="md-toggle" data-md-toggle="search" type="checkbox" id="__search" autocomplete="off">
- <label class="md-overlay" data-md-component="overlay" for="__drawer"></label>
- <a href="#the-type-1-and-cid-drivers" tabindex="0" class="md-skip">
- Skip to content
- </a>
+ <script>function __prefix(e){return new URL(".",location).pathname+"."+e}function __get(e,t=localStorage){return JSON.parse(t.getItem(__prefix(e)))}</script>
+ <input class="md-toggle" data-md-toggle="drawer" type="checkbox" id="__drawer" autocomplete="off">
+ <input class="md-toggle" data-md-toggle="search" type="checkbox" id="__search" autocomplete="off">
+ <label class="md-overlay" for="__drawer"></label>
+ <div data-md-component="skip">
+
+
+ <a href="#the-type-1-and-cid-drivers" class="md-skip">
+ Skip to content
+ </a>
+
+ </div>
+ <div data-md-component="announce">
+
+ </div>
<header class="md-header" data-md-component="header">
- <nav class="md-header-nav md-grid">
- <div class="md-flex">
- <div class="md-flex__cell md-flex__cell--shrink">
- <a href="." title="FreeType-2.10.4 API Reference" aria-label="FreeType-2.10.4 API Reference" class="md-header-nav__button md-logo">
-
- <img alt="logo" src="images/favico.ico" width="24" height="24">
-
- </a>
- </div>
- <div class="md-flex__cell md-flex__cell--shrink">
- <label class="md-icon md-icon--menu md-header-nav__button" for="__drawer"></label>
- </div>
- <div class="md-flex__cell md-flex__cell--stretch">
- <div class="md-flex__ellipsis md-header-nav__title" data-md-component="title">
-
- <span class="md-header-nav__topic">
- FreeType-2.10.4 API Reference
- </span>
- <span class="md-header-nav__topic">
-
- The Type 1 and CID drivers
-
- </span>
-
+ <nav class="md-header__inner md-grid" aria-label="Header">
+ <a href="index.html" title="FreeType-2.11.1 API Reference" class="md-header__button md-logo" aria-label="FreeType-2.11.1 API Reference" data-md-component="logo">
+
+ <img src="images/favico.ico" alt="logo">
+
+ </a>
+ <label class="md-header__button md-icon" for="__drawer">
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M3 6h18v2H3V6m0 5h18v2H3v-2m0 5h18v2H3v-2z"/></svg>
+ </label>
+ <div class="md-header__title" data-md-component="header-title">
+ <div class="md-header__ellipsis">
+ <div class="md-header__topic">
+ <span class="md-ellipsis">
+ FreeType-2.11.1 API Reference
+ </span>
+ </div>
+ <div class="md-header__topic" data-md-component="header-topic">
+ <span class="md-ellipsis">
+
+ The Type 1 and CID drivers
+
+ </span>
</div>
</div>
- <div class="md-flex__cell md-flex__cell--shrink">
-
- <label class="md-icon md-icon--search md-header-nav__button" for="__search"></label>
-
+ </div>
+
+
+
+ <label class="md-header__button md-icon" for="__search">
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M9.5 3A6.5 6.5 0 0 1 16 9.5c0 1.61-.59 3.09-1.56 4.23l.27.27h.79l5 5-1.5 1.5-5-5v-.79l-.27-.27A6.516 6.516 0 0 1 9.5 16 6.5 6.5 0 0 1 3 9.5 6.5 6.5 0 0 1 9.5 3m0 2C7 5 5 7 5 9.5S7 14 9.5 14 14 12 14 9.5 12 5 9.5 5z"/></svg>
+ </label>
+
<div class="md-search" data-md-component="search" role="dialog">
<label class="md-search__overlay" for="__search"></label>
<div class="md-search__inner" role="search">
<form class="md-search__form" name="search">
- <input type="text" class="md-search__input" aria-label="search" name="query" placeholder="Search" autocapitalize="off" autocorrect="off" autocomplete="off" spellcheck="false" data-md-component="query" data-md-state="active">
- <label class="md-icon md-search__icon" for="__search"></label>
- <button type="reset" class="md-icon md-search__icon" data-md-component="reset" tabindex="-1">
- &#xE5CD;
+ <input type="text" class="md-search__input" name="query" aria-label="Search" placeholder="Search" autocapitalize="off" autocorrect="off" autocomplete="off" spellcheck="false" data-md-component="search-query" data-md-state="active" required>
+ <label class="md-search__icon md-icon" for="__search">
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M9.5 3A6.5 6.5 0 0 1 16 9.5c0 1.61-.59 3.09-1.56 4.23l.27.27h.79l5 5-1.5 1.5-5-5v-.79l-.27-.27A6.516 6.516 0 0 1 9.5 16 6.5 6.5 0 0 1 3 9.5 6.5 6.5 0 0 1 9.5 3m0 2C7 5 5 7 5 9.5S7 14 9.5 14 14 12 14 9.5 12 5 9.5 5z"/></svg>
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M20 11v2H8l5.5 5.5-1.42 1.42L4.16 12l7.92-7.92L13.5 5.5 8 11h12z"/></svg>
+ </label>
+ <button type="reset" class="md-search__icon md-icon" aria-label="Clear" tabindex="-1">
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z"/></svg>
</button>
</form>
<div class="md-search__output">
<div class="md-search__scrollwrap" data-md-scrollfix>
- <div class="md-search-result" data-md-component="result">
+ <div class="md-search-result" data-md-component="search-result">
<div class="md-search-result__meta">
- Type to start searching
+ Initializing search
</div>
<ol class="md-search-result__list"></ol>
</div>
@@ -147,33 +138,35 @@
</div>
</div>
</div>
-
- </div>
-
- </div>
+
+
</nav>
</header>
- <div class="md-container">
+ <div class="md-container" data-md-component="container">
-
+
- <main class="md-main" role="main">
- <div class="md-main__inner md-grid" data-md-component="container">
+ <main class="md-main" data-md-component="main">
+ <div class="md-main__inner md-grid">
- <div class="md-sidebar md-sidebar--primary" data-md-component="navigation">
+
+ <div class="md-sidebar md-sidebar--primary" data-md-component="sidebar" data-md-type="navigation" >
<div class="md-sidebar__scrollwrap">
<div class="md-sidebar__inner">
- <nav class="md-nav md-nav--primary" data-md-level="0">
- <label class="md-nav__title md-nav__title--site" for="__drawer">
- <a href="." title="FreeType-2.10.4 API Reference" class="md-nav__button md-logo">
-
- <img alt="logo" src="images/favico.ico" width="48" height="48">
+
+
+
+<nav class="md-nav md-nav--primary" aria-label="Navigation" data-md-level="0">
+ <label class="md-nav__title" for="__drawer">
+ <a href="index.html" title="FreeType-2.11.1 API Reference" class="md-nav__button md-logo" aria-label="FreeType-2.11.1 API Reference" data-md-component="logo">
+ <img src="images/favico.ico" alt="logo">
+
</a>
- FreeType-2.10.4 API Reference
+ FreeType-2.11.1 API Reference
</label>
<ul class="md-nav__list" data-md-scrollfix>
@@ -182,360 +175,396 @@
-
- <li class="md-nav__item">
- <a href="index.html" title="TOC" class="md-nav__link">
- TOC
- </a>
- </li>
+
+
+
+ <li class="md-nav__item">
+ <a href="index.html" class="md-nav__link">
+ TOC
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-index.html" title="Index" class="md-nav__link">
- Index
- </a>
- </li>
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-index.html" class="md-nav__link">
+ Index
+ </a>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-3" type="checkbox" id="nav-3">
+
+
+
- <label class="md-nav__link" for="nav-3">
- General Remarks
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-3">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_3" type="checkbox" id="__nav_3" >
+
+ <label class="md-nav__link" for="__nav_3">
General Remarks
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
+ <nav class="md-nav" aria-label="General Remarks" data-md-level="1">
+ <label class="md-nav__title" for="__nav_3">
+ <span class="md-nav__icon md-icon"></span>
+ General Remarks
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-header_inclusion.html" title="FreeType's header inclusion scheme" class="md-nav__link">
- FreeType's header inclusion scheme
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-preamble.html" class="md-nav__link">
+ Preamble
+ </a>
+ </li>
+
-
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-header_inclusion.html" class="md-nav__link">
+ FreeType's header inclusion scheme
+ </a>
+ </li>
+
- <li class="md-nav__item">
- <a href="ft2-user_allocation.html" title="User allocation" class="md-nav__link">
- User allocation
- </a>
- </li>
+
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-user_allocation.html" class="md-nav__link">
+ User allocation
+ </a>
+ </li>
+
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-4" type="checkbox" id="nav-4">
+
+
+
- <label class="md-nav__link" for="nav-4">
- Core API
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-4">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_4" type="checkbox" id="__nav_4" >
+
+ <label class="md-nav__link" for="__nav_4">
Core API
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
-
-
+ <nav class="md-nav" aria-label="Core API" data-md-level="1">
+ <label class="md-nav__title" for="__nav_4">
+ <span class="md-nav__icon md-icon"></span>
+ Core API
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-version.html" class="md-nav__link">
+ FreeType Version
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-version.html" title="FreeType Version" class="md-nav__link">
- FreeType Version
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-basic_types.html" title="Basic Data Types" class="md-nav__link">
- Basic Data Types
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-basic_types.html" class="md-nav__link">
+ Basic Data Types
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-base_interface.html" class="md-nav__link">
+ Base Interface
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-base_interface.html" title="Base Interface" class="md-nav__link">
- Base Interface
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-glyph_variants.html" title="Unicode Variation Sequences" class="md-nav__link">
- Unicode Variation Sequences
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-glyph_variants.html" class="md-nav__link">
+ Unicode Variation Sequences
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-color_management.html" title="Glyph Color Management" class="md-nav__link">
- Glyph Color Management
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-color_management.html" class="md-nav__link">
+ Glyph Color Management
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-layer_management.html" title="Glyph Layer Management" class="md-nav__link">
- Glyph Layer Management
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-layer_management.html" class="md-nav__link">
+ Glyph Layer Management
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-glyph_management.html" title="Glyph Management" class="md-nav__link">
- Glyph Management
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-glyph_management.html" class="md-nav__link">
+ Glyph Management
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-mac_specific.html" title="Mac Specific Interface" class="md-nav__link">
- Mac Specific Interface
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-mac_specific.html" class="md-nav__link">
+ Mac Specific Interface
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-sizes_management.html" title="Size Management" class="md-nav__link">
- Size Management
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-sizes_management.html" class="md-nav__link">
+ Size Management
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-header_file_macros.html" title="Header File Macros" class="md-nav__link">
- Header File Macros
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-header_file_macros.html" class="md-nav__link">
+ Header File Macros
+ </a>
+ </li>
+
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-5" type="checkbox" id="nav-5">
+
+
+
- <label class="md-nav__link" for="nav-5">
- Format-Specific API
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-5">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_5" type="checkbox" id="__nav_5" >
+
+ <label class="md-nav__link" for="__nav_5">
Format-Specific API
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
+ <nav class="md-nav" aria-label="Format-Specific API" data-md-level="1">
+ <label class="md-nav__title" for="__nav_5">
+ <span class="md-nav__icon md-icon"></span>
+ Format-Specific API
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-multiple_masters.html" title="Multiple Masters" class="md-nav__link">
- Multiple Masters
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-multiple_masters.html" class="md-nav__link">
+ Multiple Masters
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-truetype_tables.html" title="TrueType Tables" class="md-nav__link">
- TrueType Tables
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-truetype_tables.html" class="md-nav__link">
+ TrueType Tables
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-type1_tables.html" title="Type 1 Tables" class="md-nav__link">
- Type 1 Tables
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-type1_tables.html" class="md-nav__link">
+ Type 1 Tables
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-sfnt_names.html" title="SFNT Names" class="md-nav__link">
- SFNT Names
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-sfnt_names.html" class="md-nav__link">
+ SFNT Names
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-bdf_fonts.html" class="md-nav__link">
+ BDF and PCF Files
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-bdf_fonts.html" title="BDF and PCF Files" class="md-nav__link">
- BDF and PCF Files
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-cid_fonts.html" title="CID Fonts" class="md-nav__link">
- CID Fonts
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-cid_fonts.html" class="md-nav__link">
+ CID Fonts
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-pfr_fonts.html" class="md-nav__link">
+ PFR Fonts
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-pfr_fonts.html" title="PFR Fonts" class="md-nav__link">
- PFR Fonts
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-winfnt_fonts.html" title="Window FNT Files" class="md-nav__link">
- Window FNT Files
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-winfnt_fonts.html" class="md-nav__link">
+ Window FNT Files
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-font_formats.html" title="Font Formats" class="md-nav__link">
- Font Formats
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-font_formats.html" class="md-nav__link">
+ Font Formats
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-gasp_table.html" title="Gasp Table" class="md-nav__link">
- Gasp Table
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-gasp_table.html" class="md-nav__link">
+ Gasp Table
+ </a>
+ </li>
+
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
@@ -543,77 +572,87 @@
-
-
- <li class="md-nav__item md-nav__item--active md-nav__item--nested">
+
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-6" type="checkbox" id="nav-6" checked>
+
+
- <label class="md-nav__link" for="nav-6">
- Controlling FreeType Modules
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-6">
+ <li class="md-nav__item md-nav__item--active md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_6" type="checkbox" id="__nav_6" checked>
+
+ <label class="md-nav__link" for="__nav_6">
Controlling FreeType Modules
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
+ <nav class="md-nav" aria-label="Controlling FreeType Modules" data-md-level="1">
+ <label class="md-nav__title" for="__nav_6">
+ <span class="md-nav__icon md-icon"></span>
+ Controlling FreeType Modules
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-auto_hinter.html" title="The auto-hinter" class="md-nav__link">
- The auto-hinter
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-auto_hinter.html" class="md-nav__link">
+ The auto-hinter
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-cff_driver.html" title="The CFF driver" class="md-nav__link">
- The CFF driver
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-cff_driver.html" class="md-nav__link">
+ The CFF driver
+ </a>
+ </li>
+
-
-
-
-
+
+
-
-
- <li class="md-nav__item md-nav__item--active">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="toc" type="checkbox" id="__toc">
+
+
+ <li class="md-nav__item md-nav__item--active">
-
-
- <label class="md-nav__link md-nav__link--active" for="__toc">
+ <input class="md-nav__toggle md-toggle" data-md-toggle="toc" type="checkbox" id="__toc">
+
+
+
+
+
+ <label class="md-nav__link md-nav__link--active" for="__toc">
+ The Type 1 and CID drivers
+ <span class="md-nav__icon md-icon"></span>
+ </label>
+
+ <a href="ft2-t1_cid_driver.html" class="md-nav__link md-nav__link--active">
The Type 1 and CID drivers
- </label>
-
- <a href="ft2-t1_cid_driver.html" title="The Type 1 and CID drivers" class="md-nav__link md-nav__link--active">
- The Type 1 and CID drivers
- </a>
-
+ </a>
-<nav class="md-nav md-nav--secondary">
+
+<nav class="md-nav md-nav--secondary" aria-label="Table of contents">
+
- <label class="md-nav__title" for="__toc">Table of contents</label>
- <ul class="md-nav__list" data-md-scrollfix>
+ <label class="md-nav__title" for="__toc">
+ <span class="md-nav__icon md-icon"></span>
+ Table of contents
+ </label>
+ <ul class="md-nav__list" data-md-component="toc" data-md-scrollfix>
<li class="md-nav__item">
<a href="#synopsis" class="md-nav__link">
@@ -622,404 +661,438 @@
</li>
-
-
-
-
</ul>
</nav>
-
- </li>
+
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-tt_driver.html" title="The TrueType driver" class="md-nav__link">
- The TrueType driver
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-tt_driver.html" class="md-nav__link">
+ The TrueType driver
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-pcf_driver.html" title="The PCF driver" class="md-nav__link">
- The PCF driver
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-pcf_driver.html" class="md-nav__link">
+ The PCF driver
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-properties.html" title="Driver properties" class="md-nav__link">
- Driver properties
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-properties.html" class="md-nav__link">
+ Driver properties
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-parameter_tags.html" title="Parameter Tags" class="md-nav__link">
- Parameter Tags
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-parameter_tags.html" class="md-nav__link">
+ Parameter Tags
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-lcd_rendering.html" title="Subpixel Rendering" class="md-nav__link">
- Subpixel Rendering
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-lcd_rendering.html" class="md-nav__link">
+ Subpixel Rendering
+ </a>
+ </li>
+
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-7" type="checkbox" id="nav-7">
+
+
+
- <label class="md-nav__link" for="nav-7">
- Cache Sub-System
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-7">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_7" type="checkbox" id="__nav_7" >
+
+ <label class="md-nav__link" for="__nav_7">
Cache Sub-System
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
-
+ <nav class="md-nav" aria-label="Cache Sub-System" data-md-level="1">
+ <label class="md-nav__title" for="__nav_7">
+ <span class="md-nav__icon md-icon"></span>
+ Cache Sub-System
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
-
-
-
- <li class="md-nav__item">
- <a href="ft2-cache_subsystem.html" title="Cache Sub-System" class="md-nav__link">
- Cache Sub-System
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-cache_subsystem.html" class="md-nav__link">
+ Cache Sub-System
+ </a>
+ </li>
+
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-8" type="checkbox" id="nav-8">
+
+
+
- <label class="md-nav__link" for="nav-8">
- Support API
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-8">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_8" type="checkbox" id="__nav_8" >
+
+ <label class="md-nav__link" for="__nav_8">
Support API
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
-
-
+ <nav class="md-nav" aria-label="Support API" data-md-level="1">
+ <label class="md-nav__title" for="__nav_8">
+ <span class="md-nav__icon md-icon"></span>
+ Support API
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-computations.html" class="md-nav__link">
+ Computations
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-computations.html" title="Computations" class="md-nav__link">
- Computations
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-list_processing.html" title="List Processing" class="md-nav__link">
- List Processing
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-list_processing.html" class="md-nav__link">
+ List Processing
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-outline_processing.html" title="Outline Processing" class="md-nav__link">
- Outline Processing
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-outline_processing.html" class="md-nav__link">
+ Outline Processing
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-quick_advance.html" title="Quick retrieval of advance values" class="md-nav__link">
- Quick retrieval of advance values
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-quick_advance.html" class="md-nav__link">
+ Quick retrieval of advance values
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-bitmap_handling.html" title="Bitmap Handling" class="md-nav__link">
- Bitmap Handling
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-bitmap_handling.html" class="md-nav__link">
+ Bitmap Handling
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-raster.html" title="Scanline Converter" class="md-nav__link">
- Scanline Converter
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-raster.html" class="md-nav__link">
+ Scanline Converter
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-glyph_stroker.html" title="Glyph Stroker" class="md-nav__link">
- Glyph Stroker
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-glyph_stroker.html" class="md-nav__link">
+ Glyph Stroker
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-system_interface.html" class="md-nav__link">
+ System Interface
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-system_interface.html" title="System Interface" class="md-nav__link">
- System Interface
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-module_management.html" title="Module Management" class="md-nav__link">
- Module Management
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-module_management.html" class="md-nav__link">
+ Module Management
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-gzip.html" class="md-nav__link">
+ GZIP Streams
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-gzip.html" title="GZIP Streams" class="md-nav__link">
- GZIP Streams
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-lzw.html" title="LZW Streams" class="md-nav__link">
- LZW Streams
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-lzw.html" class="md-nav__link">
+ LZW Streams
+ </a>
+ </li>
+
-
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-bzip2.html" class="md-nav__link">
+ BZIP2 Streams
+ </a>
+ </li>
+
- <li class="md-nav__item">
- <a href="ft2-bzip2.html" title="BZIP2 Streams" class="md-nav__link">
- BZIP2 Streams
- </a>
- </li>
+
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-debugging_apis.html" class="md-nav__link">
+ External Debugging APIs
+ </a>
+ </li>
+
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-9" type="checkbox" id="nav-9">
+
+
+
- <label class="md-nav__link" for="nav-9">
- Error Codes
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-9">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_9" type="checkbox" id="__nav_9" >
+
+ <label class="md-nav__link" for="__nav_9">
Error Codes
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
-
-
+ <nav class="md-nav" aria-label="Error Codes" data-md-level="1">
+ <label class="md-nav__title" for="__nav_9">
+ <span class="md-nav__icon md-icon"></span>
+ Error Codes
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-error_enumerations.html" class="md-nav__link">
+ Error Enumerations
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-error_enumerations.html" title="Error Enumerations" class="md-nav__link">
- Error Enumerations
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-error_code_values.html" title="Error Code Values" class="md-nav__link">
- Error Code Values
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-error_code_values.html" class="md-nav__link">
+ Error Code Values
+ </a>
+ </li>
+
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-10" type="checkbox" id="nav-10">
+
+
+
- <label class="md-nav__link" for="nav-10">
- Miscellaneous
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-10">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_10" type="checkbox" id="__nav_10" >
+
+ <label class="md-nav__link" for="__nav_10">
Miscellaneous
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
+ <nav class="md-nav" aria-label="Miscellaneous" data-md-level="1">
+ <label class="md-nav__title" for="__nav_10">
+ <span class="md-nav__icon md-icon"></span>
+ Miscellaneous
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-gx_validation.html" title="TrueTypeGX/AAT Validation" class="md-nav__link">
- TrueTypeGX/AAT Validation
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-gx_validation.html" class="md-nav__link">
+ TrueTypeGX/AAT Validation
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-incremental.html" class="md-nav__link">
+ Incremental Loading
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-incremental.html" title="Incremental Loading" class="md-nav__link">
- Incremental Loading
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-truetype_engine.html" title="The TrueType Engine" class="md-nav__link">
- The TrueType Engine
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-truetype_engine.html" class="md-nav__link">
+ The TrueType Engine
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-ot_validation.html" title="OpenType Validation" class="md-nav__link">
- OpenType Validation
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-ot_validation.html" class="md-nav__link">
+ OpenType Validation
+ </a>
+ </li>
+
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
</ul>
@@ -1029,18 +1102,23 @@
</div>
- <div class="md-sidebar md-sidebar--secondary" data-md-component="toc">
+
+ <div class="md-sidebar md-sidebar--secondary" data-md-component="sidebar" data-md-type="toc" >
<div class="md-sidebar__scrollwrap">
<div class="md-sidebar__inner">
-<nav class="md-nav md-nav--secondary">
+<nav class="md-nav md-nav--secondary" aria-label="Table of contents">
+
- <label class="md-nav__title" for="__toc">Table of contents</label>
- <ul class="md-nav__list" data-md-scrollfix>
+ <label class="md-nav__title" for="__toc">
+ <span class="md-nav__icon md-icon"></span>
+ Table of contents
+ </label>
+ <ul class="md-nav__list" data-md-component="toc" data-md-scrollfix>
<li class="md-nav__item">
<a href="#synopsis" class="md-nav__link">
@@ -1049,10 +1127,6 @@
</li>
-
-
-
-
</ul>
</nav>
@@ -1061,7 +1135,7 @@
</div>
- <div class="md-content">
+ <div class="md-content" data-md-component="content">
<article class="md-content__inner md-typeset">
@@ -1076,9 +1150,6 @@
<p>Available properties are <code><a href="ft2-properties.html#hinting-engine">hinting-engine</a></code>, <code><a href="ft2-properties.html#no-stem-darkening">no-stem-darkening</a></code>, <code><a href="ft2-properties.html#darkening-parameters">darkening-parameters</a></code>, and <code><a href="ft2-properties.html#random-seed">random-seed</a></code>, as documented in the &lsquo;<a href="ft2-properties.html#properties">Driver properties</a>&rsquo; section.</p>
<p>Please see the &lsquo;<a href="ft2-cff_driver.html#cff_driver">The CFF driver</a>&rsquo; section for more details on the new hinting engine.</p>
-
-
-
@@ -1088,59 +1159,60 @@
</article>
</div>
</div>
+
</main>
<footer class="md-footer">
- <div class="md-footer-nav">
- <nav class="md-footer-nav__inner md-grid">
+ <nav class="md-footer__inner md-grid" aria-label="Footer">
+
- <a href="ft2-cff_driver.html" title="The CFF driver" class="md-flex md-footer-nav__link md-footer-nav__link--prev" rel="prev">
- <div class="md-flex__cell md-flex__cell--shrink">
- <i class="md-icon md-icon--arrow-back md-footer-nav__button"></i>
- </div>
- <div class="md-flex__cell md-flex__cell--stretch md-footer-nav__title">
- <span class="md-flex__ellipsis">
- <span class="md-footer-nav__direction">
- Previous
- </span>
- The CFF driver
+ <a href="ft2-cff_driver.html" class="md-footer__link md-footer__link--prev" aria-label="Previous: The CFF driver" rel="prev">
+ <div class="md-footer__button md-icon">
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M20 11v2H8l5.5 5.5-1.42 1.42L4.16 12l7.92-7.92L13.5 5.5 8 11h12z"/></svg>
+ </div>
+ <div class="md-footer__title">
+ <div class="md-ellipsis">
+ <span class="md-footer__direction">
+ Previous
</span>
+ The CFF driver
</div>
- </a>
-
+ </div>
+ </a>
+
+
- <a href="ft2-tt_driver.html" title="The TrueType driver" class="md-flex md-footer-nav__link md-footer-nav__link--next" rel="next">
- <div class="md-flex__cell md-flex__cell--stretch md-footer-nav__title">
- <span class="md-flex__ellipsis">
- <span class="md-footer-nav__direction">
- Next
- </span>
- The TrueType driver
+ <a href="ft2-tt_driver.html" class="md-footer__link md-footer__link--next" aria-label="Next: The TrueType driver" rel="next">
+ <div class="md-footer__title">
+ <div class="md-ellipsis">
+ <span class="md-footer__direction">
+ Next
</span>
+ The TrueType driver
</div>
- <div class="md-flex__cell md-flex__cell--shrink">
- <i class="md-icon md-icon--arrow-forward md-footer-nav__button"></i>
- </div>
- </a>
-
- </nav>
- </div>
+ </div>
+ <div class="md-footer__button md-icon">
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M4 11v2h12l-5.5 5.5 1.42 1.42L19.84 12l-7.92-7.92L10.5 5.5 16 11H4z"/></svg>
+ </div>
+ </a>
+
+ </nav>
<div class="md-footer-meta md-typeset">
<div class="md-footer-meta__inner md-grid">
<div class="md-footer-copyright">
<div class="md-footer-copyright__highlight">
- Copyright 2020 <a href = "https://www.freetype.org/license.html">The FreeType Project</a>.
+ Copyright 2021 <a href = "https://www.freetype.org/license.html">The FreeType Project</a>.
</div>
- powered by
- <a href="https://www.mkdocs.org" target="_blank" rel="noopener">MkDocs</a>
- and
+ Made with
<a href="https://squidfunk.github.io/mkdocs-material/" target="_blank" rel="noopener">
- Material for MkDocs</a>
+ Material for MkDocs
+ </a>
+
</div>
</div>
@@ -1148,10 +1220,13 @@
</footer>
</div>
+ <div class="md-dialog" data-md-component="dialog">
+ <div class="md-dialog__inner md-typeset"></div>
+ </div>
+ <script id="__config" type="application/json">{"base": ".", "features": [], "translations": {"clipboard.copy": "Copy to clipboard", "clipboard.copied": "Copied to clipboard", "search.config.lang": "en", "search.config.pipeline": "trimmer, stopWordFilter", "search.config.separator": "[\\s\\-]+", "search.placeholder": "Search", "search.result.placeholder": "Type to start searching", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.term.missing": "Missing", "select.version.title": "Select version"}, "search": "assets/javascripts/workers/search.477d984a.min.js", "version": null}</script>
- <script src="assets/javascripts/application.c33a9706.js"></script>
-
- <script>app.initialize({version:"1.1",url:{base:"."}})</script>
+
+ <script src="assets/javascripts/bundle.82b56eb2.min.js"></script>
<script src="javascripts/extra.js"></script>
diff --git a/freetype/docs/reference/ft2-truetype_engine.html b/freetype/docs/reference/ft2-truetype_engine.html
index e673e477..ad5ddaa8 100644
--- a/freetype/docs/reference/ft2-truetype_engine.html
+++ b/freetype/docs/reference/ft2-truetype_engine.html
@@ -1,145 +1,136 @@
-
-
-
<!doctype html>
<html lang="en" class="no-js">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
- <meta http-equiv="x-ua-compatible" content="ie=edge">
- <meta name="description" content="API Reference Documentation for FreeType-2.10.4">
+ <meta name="description" content="API Reference Documentation for FreeType-2.11.1">
<meta name="author" content="FreeType Contributors">
- <meta name="lang:clipboard.copy" content="Copy to clipboard">
-
- <meta name="lang:clipboard.copied" content="Copied to clipboard">
-
- <meta name="lang:search.language" content="en">
-
- <meta name="lang:search.pipeline.stopwords" content="True">
-
- <meta name="lang:search.pipeline.trimmer" content="True">
-
- <meta name="lang:search.result.none" content="No matching documents">
-
- <meta name="lang:search.result.one" content="1 matching document">
-
- <meta name="lang:search.result.other" content="# matching documents">
-
- <meta name="lang:search.tokenizer" content="[\s\-]+">
-
- <link rel="shortcut icon" href="images/favico.ico">
- <meta name="generator" content="mkdocs-1.1, mkdocs-material-4.6.3">
+ <link rel="icon" href="images/favico.ico">
+ <meta name="generator" content="mkdocs-1.2.1, mkdocs-material-7.1.9">
- <title>The TrueType Engine - FreeType-2.10.4 API Reference</title>
+ <title>The TrueType Engine - FreeType-2.11.1 API Reference</title>
- <link rel="stylesheet" href="assets/stylesheets/application.adb8469c.css">
-
- <link rel="stylesheet" href="assets/stylesheets/application-palette.a8b3c06d.css">
-
+ <link rel="stylesheet" href="assets/stylesheets/main.ca7ac06f.min.css">
+ <link rel="stylesheet" href="assets/stylesheets/palette.f1a3b89f.min.css">
+
+
+
+ <meta name="theme-color" content="#4cae4f">
- <meta name="theme-color" content="#4caf50">
- <script src="assets/javascripts/modernizr.86422ebf.js"></script>
-
- <link href="https://fonts.gstatic.com" rel="preconnect" crossorigin>
+
+ <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Noto+Serif:300,400,400i,700%7CRoboto+Mono&display=fallback">
- <style>body,input{font-family:"Noto Serif","Helvetica Neue",Helvetica,Arial,sans-serif}code,kbd,pre{font-family:"Roboto Mono","Courier New",Courier,monospace}</style>
+ <style>:root{--md-text-font-family:"Noto Serif";--md-code-font-family:"Roboto Mono"}</style>
- <link rel="stylesheet" href="assets/fonts/material-icons.css">
<link rel="stylesheet" href="stylesheets/extra.css">
+
+
</head>
+
+
+
+
- <body dir="ltr" data-md-color-primary="green" data-md-color-accent="green">
+ <body dir="ltr" data-md-color-scheme="" data-md-color-primary="green" data-md-color-accent="green">
- <svg class="md-svg">
- <defs>
-
-
- </defs>
- </svg>
- <input class="md-toggle" data-md-toggle="drawer" type="checkbox" id="__drawer" autocomplete="off">
- <input class="md-toggle" data-md-toggle="search" type="checkbox" id="__search" autocomplete="off">
- <label class="md-overlay" data-md-component="overlay" for="__drawer"></label>
- <a href="#the-truetype-engine" tabindex="0" class="md-skip">
- Skip to content
- </a>
+ <script>function __prefix(e){return new URL(".",location).pathname+"."+e}function __get(e,t=localStorage){return JSON.parse(t.getItem(__prefix(e)))}</script>
+ <input class="md-toggle" data-md-toggle="drawer" type="checkbox" id="__drawer" autocomplete="off">
+ <input class="md-toggle" data-md-toggle="search" type="checkbox" id="__search" autocomplete="off">
+ <label class="md-overlay" for="__drawer"></label>
+ <div data-md-component="skip">
+
+
+ <a href="#the-truetype-engine" class="md-skip">
+ Skip to content
+ </a>
+
+ </div>
+ <div data-md-component="announce">
+
+ </div>
<header class="md-header" data-md-component="header">
- <nav class="md-header-nav md-grid">
- <div class="md-flex">
- <div class="md-flex__cell md-flex__cell--shrink">
- <a href="." title="FreeType-2.10.4 API Reference" aria-label="FreeType-2.10.4 API Reference" class="md-header-nav__button md-logo">
-
- <img alt="logo" src="images/favico.ico" width="24" height="24">
-
- </a>
- </div>
- <div class="md-flex__cell md-flex__cell--shrink">
- <label class="md-icon md-icon--menu md-header-nav__button" for="__drawer"></label>
- </div>
- <div class="md-flex__cell md-flex__cell--stretch">
- <div class="md-flex__ellipsis md-header-nav__title" data-md-component="title">
-
- <span class="md-header-nav__topic">
- FreeType-2.10.4 API Reference
- </span>
- <span class="md-header-nav__topic">
-
- The TrueType Engine
-
- </span>
-
+ <nav class="md-header__inner md-grid" aria-label="Header">
+ <a href="index.html" title="FreeType-2.11.1 API Reference" class="md-header__button md-logo" aria-label="FreeType-2.11.1 API Reference" data-md-component="logo">
+
+ <img src="images/favico.ico" alt="logo">
+
+ </a>
+ <label class="md-header__button md-icon" for="__drawer">
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M3 6h18v2H3V6m0 5h18v2H3v-2m0 5h18v2H3v-2z"/></svg>
+ </label>
+ <div class="md-header__title" data-md-component="header-title">
+ <div class="md-header__ellipsis">
+ <div class="md-header__topic">
+ <span class="md-ellipsis">
+ FreeType-2.11.1 API Reference
+ </span>
+ </div>
+ <div class="md-header__topic" data-md-component="header-topic">
+ <span class="md-ellipsis">
+
+ The TrueType Engine
+
+ </span>
</div>
</div>
- <div class="md-flex__cell md-flex__cell--shrink">
-
- <label class="md-icon md-icon--search md-header-nav__button" for="__search"></label>
-
+ </div>
+
+
+
+ <label class="md-header__button md-icon" for="__search">
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M9.5 3A6.5 6.5 0 0 1 16 9.5c0 1.61-.59 3.09-1.56 4.23l.27.27h.79l5 5-1.5 1.5-5-5v-.79l-.27-.27A6.516 6.516 0 0 1 9.5 16 6.5 6.5 0 0 1 3 9.5 6.5 6.5 0 0 1 9.5 3m0 2C7 5 5 7 5 9.5S7 14 9.5 14 14 12 14 9.5 12 5 9.5 5z"/></svg>
+ </label>
+
<div class="md-search" data-md-component="search" role="dialog">
<label class="md-search__overlay" for="__search"></label>
<div class="md-search__inner" role="search">
<form class="md-search__form" name="search">
- <input type="text" class="md-search__input" aria-label="search" name="query" placeholder="Search" autocapitalize="off" autocorrect="off" autocomplete="off" spellcheck="false" data-md-component="query" data-md-state="active">
- <label class="md-icon md-search__icon" for="__search"></label>
- <button type="reset" class="md-icon md-search__icon" data-md-component="reset" tabindex="-1">
- &#xE5CD;
+ <input type="text" class="md-search__input" name="query" aria-label="Search" placeholder="Search" autocapitalize="off" autocorrect="off" autocomplete="off" spellcheck="false" data-md-component="search-query" data-md-state="active" required>
+ <label class="md-search__icon md-icon" for="__search">
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M9.5 3A6.5 6.5 0 0 1 16 9.5c0 1.61-.59 3.09-1.56 4.23l.27.27h.79l5 5-1.5 1.5-5-5v-.79l-.27-.27A6.516 6.516 0 0 1 9.5 16 6.5 6.5 0 0 1 3 9.5 6.5 6.5 0 0 1 9.5 3m0 2C7 5 5 7 5 9.5S7 14 9.5 14 14 12 14 9.5 12 5 9.5 5z"/></svg>
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M20 11v2H8l5.5 5.5-1.42 1.42L4.16 12l7.92-7.92L13.5 5.5 8 11h12z"/></svg>
+ </label>
+ <button type="reset" class="md-search__icon md-icon" aria-label="Clear" tabindex="-1">
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z"/></svg>
</button>
</form>
<div class="md-search__output">
<div class="md-search__scrollwrap" data-md-scrollfix>
- <div class="md-search-result" data-md-component="result">
+ <div class="md-search-result" data-md-component="search-result">
<div class="md-search-result__meta">
- Type to start searching
+ Initializing search
</div>
<ol class="md-search-result__list"></ol>
</div>
@@ -147,33 +138,35 @@
</div>
</div>
</div>
-
- </div>
-
- </div>
+
+
</nav>
</header>
- <div class="md-container">
+ <div class="md-container" data-md-component="container">
-
+
- <main class="md-main" role="main">
- <div class="md-main__inner md-grid" data-md-component="container">
+ <main class="md-main" data-md-component="main">
+ <div class="md-main__inner md-grid">
- <div class="md-sidebar md-sidebar--primary" data-md-component="navigation">
+
+ <div class="md-sidebar md-sidebar--primary" data-md-component="sidebar" data-md-type="navigation" >
<div class="md-sidebar__scrollwrap">
<div class="md-sidebar__inner">
- <nav class="md-nav md-nav--primary" data-md-level="0">
- <label class="md-nav__title md-nav__title--site" for="__drawer">
- <a href="." title="FreeType-2.10.4 API Reference" class="md-nav__button md-logo">
-
- <img alt="logo" src="images/favico.ico" width="48" height="48">
+
+
+
+<nav class="md-nav md-nav--primary" aria-label="Navigation" data-md-level="0">
+ <label class="md-nav__title" for="__drawer">
+ <a href="index.html" title="FreeType-2.11.1 API Reference" class="md-nav__button md-logo" aria-label="FreeType-2.11.1 API Reference" data-md-component="logo">
+ <img src="images/favico.ico" alt="logo">
+
</a>
- FreeType-2.10.4 API Reference
+ FreeType-2.11.1 API Reference
</label>
<ul class="md-nav__list" data-md-scrollfix>
@@ -182,732 +175,804 @@
-
- <li class="md-nav__item">
- <a href="index.html" title="TOC" class="md-nav__link">
- TOC
- </a>
- </li>
+
+
+
+ <li class="md-nav__item">
+ <a href="index.html" class="md-nav__link">
+ TOC
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-index.html" title="Index" class="md-nav__link">
- Index
- </a>
- </li>
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-index.html" class="md-nav__link">
+ Index
+ </a>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-3" type="checkbox" id="nav-3">
+
+
+
- <label class="md-nav__link" for="nav-3">
- General Remarks
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-3">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_3" type="checkbox" id="__nav_3" >
+
+ <label class="md-nav__link" for="__nav_3">
General Remarks
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
+ <nav class="md-nav" aria-label="General Remarks" data-md-level="1">
+ <label class="md-nav__title" for="__nav_3">
+ <span class="md-nav__icon md-icon"></span>
+ General Remarks
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-header_inclusion.html" title="FreeType's header inclusion scheme" class="md-nav__link">
- FreeType's header inclusion scheme
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-preamble.html" class="md-nav__link">
+ Preamble
+ </a>
+ </li>
+
-
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-header_inclusion.html" class="md-nav__link">
+ FreeType's header inclusion scheme
+ </a>
+ </li>
+
- <li class="md-nav__item">
- <a href="ft2-user_allocation.html" title="User allocation" class="md-nav__link">
- User allocation
- </a>
- </li>
+
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-user_allocation.html" class="md-nav__link">
+ User allocation
+ </a>
+ </li>
+
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-4" type="checkbox" id="nav-4">
+
+
+
- <label class="md-nav__link" for="nav-4">
- Core API
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-4">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_4" type="checkbox" id="__nav_4" >
+
+ <label class="md-nav__link" for="__nav_4">
Core API
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
+ <nav class="md-nav" aria-label="Core API" data-md-level="1">
+ <label class="md-nav__title" for="__nav_4">
+ <span class="md-nav__icon md-icon"></span>
+ Core API
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-version.html" title="FreeType Version" class="md-nav__link">
- FreeType Version
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-version.html" class="md-nav__link">
+ FreeType Version
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-basic_types.html" title="Basic Data Types" class="md-nav__link">
- Basic Data Types
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-basic_types.html" class="md-nav__link">
+ Basic Data Types
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-base_interface.html" title="Base Interface" class="md-nav__link">
- Base Interface
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-base_interface.html" class="md-nav__link">
+ Base Interface
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-glyph_variants.html" title="Unicode Variation Sequences" class="md-nav__link">
- Unicode Variation Sequences
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-glyph_variants.html" class="md-nav__link">
+ Unicode Variation Sequences
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-color_management.html" class="md-nav__link">
+ Glyph Color Management
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-color_management.html" title="Glyph Color Management" class="md-nav__link">
- Glyph Color Management
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-layer_management.html" title="Glyph Layer Management" class="md-nav__link">
- Glyph Layer Management
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-layer_management.html" class="md-nav__link">
+ Glyph Layer Management
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-glyph_management.html" class="md-nav__link">
+ Glyph Management
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-glyph_management.html" title="Glyph Management" class="md-nav__link">
- Glyph Management
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-mac_specific.html" title="Mac Specific Interface" class="md-nav__link">
- Mac Specific Interface
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-mac_specific.html" class="md-nav__link">
+ Mac Specific Interface
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-sizes_management.html" class="md-nav__link">
+ Size Management
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-sizes_management.html" title="Size Management" class="md-nav__link">
- Size Management
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-header_file_macros.html" title="Header File Macros" class="md-nav__link">
- Header File Macros
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-header_file_macros.html" class="md-nav__link">
+ Header File Macros
+ </a>
+ </li>
+
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-5" type="checkbox" id="nav-5">
+
+
+
- <label class="md-nav__link" for="nav-5">
- Format-Specific API
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-5">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_5" type="checkbox" id="__nav_5" >
+
+ <label class="md-nav__link" for="__nav_5">
Format-Specific API
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
-
+ <nav class="md-nav" aria-label="Format-Specific API" data-md-level="1">
+ <label class="md-nav__title" for="__nav_5">
+ <span class="md-nav__icon md-icon"></span>
+ Format-Specific API
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
-
-
-
- <li class="md-nav__item">
- <a href="ft2-multiple_masters.html" title="Multiple Masters" class="md-nav__link">
- Multiple Masters
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-multiple_masters.html" class="md-nav__link">
+ Multiple Masters
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-truetype_tables.html" class="md-nav__link">
+ TrueType Tables
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-truetype_tables.html" title="TrueType Tables" class="md-nav__link">
- TrueType Tables
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-type1_tables.html" title="Type 1 Tables" class="md-nav__link">
- Type 1 Tables
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-type1_tables.html" class="md-nav__link">
+ Type 1 Tables
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-sfnt_names.html" class="md-nav__link">
+ SFNT Names
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-sfnt_names.html" title="SFNT Names" class="md-nav__link">
- SFNT Names
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-bdf_fonts.html" title="BDF and PCF Files" class="md-nav__link">
- BDF and PCF Files
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-bdf_fonts.html" class="md-nav__link">
+ BDF and PCF Files
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-cid_fonts.html" class="md-nav__link">
+ CID Fonts
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-cid_fonts.html" title="CID Fonts" class="md-nav__link">
- CID Fonts
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-pfr_fonts.html" title="PFR Fonts" class="md-nav__link">
- PFR Fonts
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-pfr_fonts.html" class="md-nav__link">
+ PFR Fonts
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-winfnt_fonts.html" title="Window FNT Files" class="md-nav__link">
- Window FNT Files
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-winfnt_fonts.html" class="md-nav__link">
+ Window FNT Files
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-font_formats.html" class="md-nav__link">
+ Font Formats
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-font_formats.html" title="Font Formats" class="md-nav__link">
- Font Formats
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-gasp_table.html" title="Gasp Table" class="md-nav__link">
- Gasp Table
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-gasp_table.html" class="md-nav__link">
+ Gasp Table
+ </a>
+ </li>
+
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-6" type="checkbox" id="nav-6">
+
+
+
- <label class="md-nav__link" for="nav-6">
- Controlling FreeType Modules
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-6">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_6" type="checkbox" id="__nav_6" >
+
+ <label class="md-nav__link" for="__nav_6">
Controlling FreeType Modules
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
-
+ <nav class="md-nav" aria-label="Controlling FreeType Modules" data-md-level="1">
+ <label class="md-nav__title" for="__nav_6">
+ <span class="md-nav__icon md-icon"></span>
+ Controlling FreeType Modules
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
-
-
-
- <li class="md-nav__item">
- <a href="ft2-auto_hinter.html" title="The auto-hinter" class="md-nav__link">
- The auto-hinter
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-auto_hinter.html" class="md-nav__link">
+ The auto-hinter
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-cff_driver.html" class="md-nav__link">
+ The CFF driver
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-cff_driver.html" title="The CFF driver" class="md-nav__link">
- The CFF driver
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-t1_cid_driver.html" title="The Type 1 and CID drivers" class="md-nav__link">
- The Type 1 and CID drivers
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-t1_cid_driver.html" class="md-nav__link">
+ The Type 1 and CID drivers
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-tt_driver.html" class="md-nav__link">
+ The TrueType driver
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-tt_driver.html" title="The TrueType driver" class="md-nav__link">
- The TrueType driver
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-pcf_driver.html" title="The PCF driver" class="md-nav__link">
- The PCF driver
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-pcf_driver.html" class="md-nav__link">
+ The PCF driver
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-properties.html" title="Driver properties" class="md-nav__link">
- Driver properties
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-properties.html" class="md-nav__link">
+ Driver properties
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-parameter_tags.html" title="Parameter Tags" class="md-nav__link">
- Parameter Tags
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-parameter_tags.html" class="md-nav__link">
+ Parameter Tags
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-lcd_rendering.html" class="md-nav__link">
+ Subpixel Rendering
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-lcd_rendering.html" title="Subpixel Rendering" class="md-nav__link">
- Subpixel Rendering
- </a>
- </li>
-
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-7" type="checkbox" id="nav-7">
+
+
+
- <label class="md-nav__link" for="nav-7">
- Cache Sub-System
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-7">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_7" type="checkbox" id="__nav_7" >
+
+ <label class="md-nav__link" for="__nav_7">
Cache Sub-System
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
-
-
+ <nav class="md-nav" aria-label="Cache Sub-System" data-md-level="1">
+ <label class="md-nav__title" for="__nav_7">
+ <span class="md-nav__icon md-icon"></span>
+ Cache Sub-System
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-cache_subsystem.html" class="md-nav__link">
+ Cache Sub-System
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-cache_subsystem.html" title="Cache Sub-System" class="md-nav__link">
- Cache Sub-System
- </a>
- </li>
-
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-8" type="checkbox" id="nav-8">
+
+
+
- <label class="md-nav__link" for="nav-8">
- Support API
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-8">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_8" type="checkbox" id="__nav_8" >
+
+ <label class="md-nav__link" for="__nav_8">
Support API
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
-
+ <nav class="md-nav" aria-label="Support API" data-md-level="1">
+ <label class="md-nav__title" for="__nav_8">
+ <span class="md-nav__icon md-icon"></span>
+ Support API
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
-
-
-
- <li class="md-nav__item">
- <a href="ft2-computations.html" title="Computations" class="md-nav__link">
- Computations
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-computations.html" class="md-nav__link">
+ Computations
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-list_processing.html" class="md-nav__link">
+ List Processing
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-list_processing.html" title="List Processing" class="md-nav__link">
- List Processing
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-outline_processing.html" title="Outline Processing" class="md-nav__link">
- Outline Processing
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-outline_processing.html" class="md-nav__link">
+ Outline Processing
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-quick_advance.html" class="md-nav__link">
+ Quick retrieval of advance values
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-quick_advance.html" title="Quick retrieval of advance values" class="md-nav__link">
- Quick retrieval of advance values
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-bitmap_handling.html" title="Bitmap Handling" class="md-nav__link">
- Bitmap Handling
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-bitmap_handling.html" class="md-nav__link">
+ Bitmap Handling
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-raster.html" class="md-nav__link">
+ Scanline Converter
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-raster.html" title="Scanline Converter" class="md-nav__link">
- Scanline Converter
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-glyph_stroker.html" title="Glyph Stroker" class="md-nav__link">
- Glyph Stroker
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-glyph_stroker.html" class="md-nav__link">
+ Glyph Stroker
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-system_interface.html" class="md-nav__link">
+ System Interface
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-system_interface.html" title="System Interface" class="md-nav__link">
- System Interface
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-module_management.html" title="Module Management" class="md-nav__link">
- Module Management
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-module_management.html" class="md-nav__link">
+ Module Management
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-gzip.html" title="GZIP Streams" class="md-nav__link">
- GZIP Streams
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-gzip.html" class="md-nav__link">
+ GZIP Streams
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-lzw.html" title="LZW Streams" class="md-nav__link">
- LZW Streams
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-lzw.html" class="md-nav__link">
+ LZW Streams
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-bzip2.html" class="md-nav__link">
+ BZIP2 Streams
+ </a>
+ </li>
+
+
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-debugging_apis.html" class="md-nav__link">
+ External Debugging APIs
+ </a>
+ </li>
+
- <li class="md-nav__item">
- <a href="ft2-bzip2.html" title="BZIP2 Streams" class="md-nav__link">
- BZIP2 Streams
- </a>
- </li>
-
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-9" type="checkbox" id="nav-9">
+
+
+
- <label class="md-nav__link" for="nav-9">
- Error Codes
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-9">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_9" type="checkbox" id="__nav_9" >
+
+ <label class="md-nav__link" for="__nav_9">
Error Codes
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
-
+ <nav class="md-nav" aria-label="Error Codes" data-md-level="1">
+ <label class="md-nav__title" for="__nav_9">
+ <span class="md-nav__icon md-icon"></span>
+ Error Codes
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
-
-
-
- <li class="md-nav__item">
- <a href="ft2-error_enumerations.html" title="Error Enumerations" class="md-nav__link">
- Error Enumerations
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-error_enumerations.html" class="md-nav__link">
+ Error Enumerations
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-error_code_values.html" title="Error Code Values" class="md-nav__link">
- Error Code Values
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-error_code_values.html" class="md-nav__link">
+ Error Code Values
+ </a>
+ </li>
+
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
@@ -915,77 +980,87 @@
-
-
- <li class="md-nav__item md-nav__item--active md-nav__item--nested">
+
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-10" type="checkbox" id="nav-10" checked>
+
+
- <label class="md-nav__link" for="nav-10">
- Miscellaneous
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-10">
+ <li class="md-nav__item md-nav__item--active md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_10" type="checkbox" id="__nav_10" checked>
+
+ <label class="md-nav__link" for="__nav_10">
Miscellaneous
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
+ <nav class="md-nav" aria-label="Miscellaneous" data-md-level="1">
+ <label class="md-nav__title" for="__nav_10">
+ <span class="md-nav__icon md-icon"></span>
+ Miscellaneous
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-gx_validation.html" title="TrueTypeGX/AAT Validation" class="md-nav__link">
- TrueTypeGX/AAT Validation
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-gx_validation.html" class="md-nav__link">
+ TrueTypeGX/AAT Validation
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-incremental.html" class="md-nav__link">
+ Incremental Loading
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-incremental.html" title="Incremental Loading" class="md-nav__link">
- Incremental Loading
- </a>
- </li>
-
-
-
-
-
+
+
-
-
- <li class="md-nav__item md-nav__item--active">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="toc" type="checkbox" id="__toc">
+
+
+ <li class="md-nav__item md-nav__item--active">
-
-
- <label class="md-nav__link md-nav__link--active" for="__toc">
+ <input class="md-nav__toggle md-toggle" data-md-toggle="toc" type="checkbox" id="__toc">
+
+
+
+
+
+ <label class="md-nav__link md-nav__link--active" for="__toc">
+ The TrueType Engine
+ <span class="md-nav__icon md-icon"></span>
+ </label>
+
+ <a href="ft2-truetype_engine.html" class="md-nav__link md-nav__link--active">
The TrueType Engine
- </label>
-
- <a href="ft2-truetype_engine.html" title="The TrueType Engine" class="md-nav__link md-nav__link--active">
- The TrueType Engine
- </a>
-
+ </a>
-<nav class="md-nav md-nav--secondary">
+
+<nav class="md-nav md-nav--secondary" aria-label="Table of contents">
+
- <label class="md-nav__title" for="__toc">Table of contents</label>
- <ul class="md-nav__list" data-md-scrollfix>
+ <label class="md-nav__title" for="__toc">
+ <span class="md-nav__icon md-icon"></span>
+ Table of contents
+ </label>
+ <ul class="md-nav__list" data-md-component="toc" data-md-scrollfix>
<li class="md-nav__item">
<a href="#synopsis" class="md-nav__link">
@@ -1008,32 +1083,30 @@
</li>
-
-
-
-
</ul>
</nav>
-
- </li>
+
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-ot_validation.html" title="OpenType Validation" class="md-nav__link">
- OpenType Validation
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-ot_validation.html" class="md-nav__link">
+ OpenType Validation
+ </a>
+ </li>
+
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
</ul>
@@ -1043,18 +1116,23 @@
</div>
- <div class="md-sidebar md-sidebar--secondary" data-md-component="toc">
+
+ <div class="md-sidebar md-sidebar--secondary" data-md-component="sidebar" data-md-type="toc" >
<div class="md-sidebar__scrollwrap">
<div class="md-sidebar__inner">
-<nav class="md-nav md-nav--secondary">
+<nav class="md-nav md-nav--secondary" aria-label="Table of contents">
+
- <label class="md-nav__title" for="__toc">Table of contents</label>
- <ul class="md-nav__list" data-md-scrollfix>
+ <label class="md-nav__title" for="__toc">
+ <span class="md-nav__icon md-icon"></span>
+ Table of contents
+ </label>
+ <ul class="md-nav__list" data-md-component="toc" data-md-scrollfix>
<li class="md-nav__item">
<a href="#synopsis" class="md-nav__link">
@@ -1077,10 +1155,6 @@
</li>
-
-
-
-
</ul>
</nav>
@@ -1089,7 +1163,7 @@
</div>
- <div class="md-content">
+ <div class="md-content" data-md-component="content">
<article class="md-content__inner md-typeset">
@@ -1112,7 +1186,6 @@
<p>A list of values describing which kind of TrueType bytecode engine is implemented in a given FT_Library instance. It is used by the <code><a href="ft2-truetype_engine.html#ft_get_truetype_engine_type">FT_Get_TrueType_Engine_Type</a></code> function.</p>
<h4>values</h4>
-
<table class="fields long">
<tr><td class="val" id="ft_truetype_engine_type_none">FT_TRUETYPE_ENGINE_TYPE_NONE</td><td class="desc">
<p>The library doesn't implement any kind of bytecode interpreter.</p>
@@ -1138,7 +1211,6 @@
<p>Return an <code><a href="ft2-truetype_engine.html#ft_truetypeenginetype">FT_TrueTypeEngineType</a></code> value to indicate which level of the TrueType virtual machine a given library instance supports.</p>
<h4>input</h4>
-
<table class="fields">
<tr><td class="val" id="library">library</td><td class="desc">
<p>A library instance.</p>
@@ -1153,9 +1225,6 @@
<p>2.2</p>
<hr>
-
-
-
@@ -1165,59 +1234,60 @@
</article>
</div>
</div>
+
</main>
<footer class="md-footer">
- <div class="md-footer-nav">
- <nav class="md-footer-nav__inner md-grid">
+ <nav class="md-footer__inner md-grid" aria-label="Footer">
+
- <a href="ft2-incremental.html" title="Incremental Loading" class="md-flex md-footer-nav__link md-footer-nav__link--prev" rel="prev">
- <div class="md-flex__cell md-flex__cell--shrink">
- <i class="md-icon md-icon--arrow-back md-footer-nav__button"></i>
- </div>
- <div class="md-flex__cell md-flex__cell--stretch md-footer-nav__title">
- <span class="md-flex__ellipsis">
- <span class="md-footer-nav__direction">
- Previous
- </span>
- Incremental Loading
+ <a href="ft2-incremental.html" class="md-footer__link md-footer__link--prev" aria-label="Previous: Incremental Loading" rel="prev">
+ <div class="md-footer__button md-icon">
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M20 11v2H8l5.5 5.5-1.42 1.42L4.16 12l7.92-7.92L13.5 5.5 8 11h12z"/></svg>
+ </div>
+ <div class="md-footer__title">
+ <div class="md-ellipsis">
+ <span class="md-footer__direction">
+ Previous
</span>
+ Incremental Loading
</div>
- </a>
-
+ </div>
+ </a>
+
+
- <a href="ft2-ot_validation.html" title="OpenType Validation" class="md-flex md-footer-nav__link md-footer-nav__link--next" rel="next">
- <div class="md-flex__cell md-flex__cell--stretch md-footer-nav__title">
- <span class="md-flex__ellipsis">
- <span class="md-footer-nav__direction">
- Next
- </span>
- OpenType Validation
+ <a href="ft2-ot_validation.html" class="md-footer__link md-footer__link--next" aria-label="Next: OpenType Validation" rel="next">
+ <div class="md-footer__title">
+ <div class="md-ellipsis">
+ <span class="md-footer__direction">
+ Next
</span>
+ OpenType Validation
</div>
- <div class="md-flex__cell md-flex__cell--shrink">
- <i class="md-icon md-icon--arrow-forward md-footer-nav__button"></i>
- </div>
- </a>
-
- </nav>
- </div>
+ </div>
+ <div class="md-footer__button md-icon">
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M4 11v2h12l-5.5 5.5 1.42 1.42L19.84 12l-7.92-7.92L10.5 5.5 16 11H4z"/></svg>
+ </div>
+ </a>
+
+ </nav>
<div class="md-footer-meta md-typeset">
<div class="md-footer-meta__inner md-grid">
<div class="md-footer-copyright">
<div class="md-footer-copyright__highlight">
- Copyright 2020 <a href = "https://www.freetype.org/license.html">The FreeType Project</a>.
+ Copyright 2021 <a href = "https://www.freetype.org/license.html">The FreeType Project</a>.
</div>
- powered by
- <a href="https://www.mkdocs.org" target="_blank" rel="noopener">MkDocs</a>
- and
+ Made with
<a href="https://squidfunk.github.io/mkdocs-material/" target="_blank" rel="noopener">
- Material for MkDocs</a>
+ Material for MkDocs
+ </a>
+
</div>
</div>
@@ -1225,10 +1295,13 @@
</footer>
</div>
+ <div class="md-dialog" data-md-component="dialog">
+ <div class="md-dialog__inner md-typeset"></div>
+ </div>
+ <script id="__config" type="application/json">{"base": ".", "features": [], "translations": {"clipboard.copy": "Copy to clipboard", "clipboard.copied": "Copied to clipboard", "search.config.lang": "en", "search.config.pipeline": "trimmer, stopWordFilter", "search.config.separator": "[\\s\\-]+", "search.placeholder": "Search", "search.result.placeholder": "Type to start searching", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.term.missing": "Missing", "select.version.title": "Select version"}, "search": "assets/javascripts/workers/search.477d984a.min.js", "version": null}</script>
- <script src="assets/javascripts/application.c33a9706.js"></script>
-
- <script>app.initialize({version:"1.1",url:{base:"."}})</script>
+
+ <script src="assets/javascripts/bundle.82b56eb2.min.js"></script>
<script src="javascripts/extra.js"></script>
diff --git a/freetype/docs/reference/ft2-truetype_tables.html b/freetype/docs/reference/ft2-truetype_tables.html
index b6ee1d04..71c02f62 100644
--- a/freetype/docs/reference/ft2-truetype_tables.html
+++ b/freetype/docs/reference/ft2-truetype_tables.html
@@ -1,145 +1,136 @@
-
-
-
<!doctype html>
<html lang="en" class="no-js">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
- <meta http-equiv="x-ua-compatible" content="ie=edge">
- <meta name="description" content="API Reference Documentation for FreeType-2.10.4">
+ <meta name="description" content="API Reference Documentation for FreeType-2.11.1">
<meta name="author" content="FreeType Contributors">
- <meta name="lang:clipboard.copy" content="Copy to clipboard">
-
- <meta name="lang:clipboard.copied" content="Copied to clipboard">
-
- <meta name="lang:search.language" content="en">
-
- <meta name="lang:search.pipeline.stopwords" content="True">
-
- <meta name="lang:search.pipeline.trimmer" content="True">
-
- <meta name="lang:search.result.none" content="No matching documents">
-
- <meta name="lang:search.result.one" content="1 matching document">
-
- <meta name="lang:search.result.other" content="# matching documents">
-
- <meta name="lang:search.tokenizer" content="[\s\-]+">
-
- <link rel="shortcut icon" href="images/favico.ico">
- <meta name="generator" content="mkdocs-1.1, mkdocs-material-4.6.3">
+ <link rel="icon" href="images/favico.ico">
+ <meta name="generator" content="mkdocs-1.2.1, mkdocs-material-7.1.9">
- <title>TrueType Tables - FreeType-2.10.4 API Reference</title>
+ <title>TrueType Tables - FreeType-2.11.1 API Reference</title>
- <link rel="stylesheet" href="assets/stylesheets/application.adb8469c.css">
-
- <link rel="stylesheet" href="assets/stylesheets/application-palette.a8b3c06d.css">
-
+ <link rel="stylesheet" href="assets/stylesheets/main.ca7ac06f.min.css">
+ <link rel="stylesheet" href="assets/stylesheets/palette.f1a3b89f.min.css">
+
+
+
+ <meta name="theme-color" content="#4cae4f">
- <meta name="theme-color" content="#4caf50">
- <script src="assets/javascripts/modernizr.86422ebf.js"></script>
-
- <link href="https://fonts.gstatic.com" rel="preconnect" crossorigin>
+
+ <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Noto+Serif:300,400,400i,700%7CRoboto+Mono&display=fallback">
- <style>body,input{font-family:"Noto Serif","Helvetica Neue",Helvetica,Arial,sans-serif}code,kbd,pre{font-family:"Roboto Mono","Courier New",Courier,monospace}</style>
+ <style>:root{--md-text-font-family:"Noto Serif";--md-code-font-family:"Roboto Mono"}</style>
- <link rel="stylesheet" href="assets/fonts/material-icons.css">
<link rel="stylesheet" href="stylesheets/extra.css">
+
+
</head>
+
+
+
+
- <body dir="ltr" data-md-color-primary="green" data-md-color-accent="green">
+ <body dir="ltr" data-md-color-scheme="" data-md-color-primary="green" data-md-color-accent="green">
- <svg class="md-svg">
- <defs>
-
-
- </defs>
- </svg>
- <input class="md-toggle" data-md-toggle="drawer" type="checkbox" id="__drawer" autocomplete="off">
- <input class="md-toggle" data-md-toggle="search" type="checkbox" id="__search" autocomplete="off">
- <label class="md-overlay" data-md-component="overlay" for="__drawer"></label>
- <a href="#truetype-tables" tabindex="0" class="md-skip">
- Skip to content
- </a>
+ <script>function __prefix(e){return new URL(".",location).pathname+"."+e}function __get(e,t=localStorage){return JSON.parse(t.getItem(__prefix(e)))}</script>
+ <input class="md-toggle" data-md-toggle="drawer" type="checkbox" id="__drawer" autocomplete="off">
+ <input class="md-toggle" data-md-toggle="search" type="checkbox" id="__search" autocomplete="off">
+ <label class="md-overlay" for="__drawer"></label>
+ <div data-md-component="skip">
+
+
+ <a href="#truetype-tables" class="md-skip">
+ Skip to content
+ </a>
+
+ </div>
+ <div data-md-component="announce">
+
+ </div>
<header class="md-header" data-md-component="header">
- <nav class="md-header-nav md-grid">
- <div class="md-flex">
- <div class="md-flex__cell md-flex__cell--shrink">
- <a href="." title="FreeType-2.10.4 API Reference" aria-label="FreeType-2.10.4 API Reference" class="md-header-nav__button md-logo">
-
- <img alt="logo" src="images/favico.ico" width="24" height="24">
-
- </a>
- </div>
- <div class="md-flex__cell md-flex__cell--shrink">
- <label class="md-icon md-icon--menu md-header-nav__button" for="__drawer"></label>
- </div>
- <div class="md-flex__cell md-flex__cell--stretch">
- <div class="md-flex__ellipsis md-header-nav__title" data-md-component="title">
-
- <span class="md-header-nav__topic">
- FreeType-2.10.4 API Reference
- </span>
- <span class="md-header-nav__topic">
-
- TrueType Tables
-
- </span>
-
+ <nav class="md-header__inner md-grid" aria-label="Header">
+ <a href="index.html" title="FreeType-2.11.1 API Reference" class="md-header__button md-logo" aria-label="FreeType-2.11.1 API Reference" data-md-component="logo">
+
+ <img src="images/favico.ico" alt="logo">
+
+ </a>
+ <label class="md-header__button md-icon" for="__drawer">
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M3 6h18v2H3V6m0 5h18v2H3v-2m0 5h18v2H3v-2z"/></svg>
+ </label>
+ <div class="md-header__title" data-md-component="header-title">
+ <div class="md-header__ellipsis">
+ <div class="md-header__topic">
+ <span class="md-ellipsis">
+ FreeType-2.11.1 API Reference
+ </span>
+ </div>
+ <div class="md-header__topic" data-md-component="header-topic">
+ <span class="md-ellipsis">
+
+ TrueType Tables
+
+ </span>
</div>
</div>
- <div class="md-flex__cell md-flex__cell--shrink">
-
- <label class="md-icon md-icon--search md-header-nav__button" for="__search"></label>
-
+ </div>
+
+
+
+ <label class="md-header__button md-icon" for="__search">
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M9.5 3A6.5 6.5 0 0 1 16 9.5c0 1.61-.59 3.09-1.56 4.23l.27.27h.79l5 5-1.5 1.5-5-5v-.79l-.27-.27A6.516 6.516 0 0 1 9.5 16 6.5 6.5 0 0 1 3 9.5 6.5 6.5 0 0 1 9.5 3m0 2C7 5 5 7 5 9.5S7 14 9.5 14 14 12 14 9.5 12 5 9.5 5z"/></svg>
+ </label>
+
<div class="md-search" data-md-component="search" role="dialog">
<label class="md-search__overlay" for="__search"></label>
<div class="md-search__inner" role="search">
<form class="md-search__form" name="search">
- <input type="text" class="md-search__input" aria-label="search" name="query" placeholder="Search" autocapitalize="off" autocorrect="off" autocomplete="off" spellcheck="false" data-md-component="query" data-md-state="active">
- <label class="md-icon md-search__icon" for="__search"></label>
- <button type="reset" class="md-icon md-search__icon" data-md-component="reset" tabindex="-1">
- &#xE5CD;
+ <input type="text" class="md-search__input" name="query" aria-label="Search" placeholder="Search" autocapitalize="off" autocorrect="off" autocomplete="off" spellcheck="false" data-md-component="search-query" data-md-state="active" required>
+ <label class="md-search__icon md-icon" for="__search">
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M9.5 3A6.5 6.5 0 0 1 16 9.5c0 1.61-.59 3.09-1.56 4.23l.27.27h.79l5 5-1.5 1.5-5-5v-.79l-.27-.27A6.516 6.516 0 0 1 9.5 16 6.5 6.5 0 0 1 3 9.5 6.5 6.5 0 0 1 9.5 3m0 2C7 5 5 7 5 9.5S7 14 9.5 14 14 12 14 9.5 12 5 9.5 5z"/></svg>
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M20 11v2H8l5.5 5.5-1.42 1.42L4.16 12l7.92-7.92L13.5 5.5 8 11h12z"/></svg>
+ </label>
+ <button type="reset" class="md-search__icon md-icon" aria-label="Clear" tabindex="-1">
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z"/></svg>
</button>
</form>
<div class="md-search__output">
<div class="md-search__scrollwrap" data-md-scrollfix>
- <div class="md-search-result" data-md-component="result">
+ <div class="md-search-result" data-md-component="search-result">
<div class="md-search-result__meta">
- Type to start searching
+ Initializing search
</div>
<ol class="md-search-result__list"></ol>
</div>
@@ -147,33 +138,35 @@
</div>
</div>
</div>
-
- </div>
-
- </div>
+
+
</nav>
</header>
- <div class="md-container">
+ <div class="md-container" data-md-component="container">
-
+
- <main class="md-main" role="main">
- <div class="md-main__inner md-grid" data-md-component="container">
+ <main class="md-main" data-md-component="main">
+ <div class="md-main__inner md-grid">
- <div class="md-sidebar md-sidebar--primary" data-md-component="navigation">
+
+ <div class="md-sidebar md-sidebar--primary" data-md-component="sidebar" data-md-type="navigation" >
<div class="md-sidebar__scrollwrap">
<div class="md-sidebar__inner">
- <nav class="md-nav md-nav--primary" data-md-level="0">
- <label class="md-nav__title md-nav__title--site" for="__drawer">
- <a href="." title="FreeType-2.10.4 API Reference" class="md-nav__button md-logo">
-
- <img alt="logo" src="images/favico.ico" width="48" height="48">
+
+
+
+<nav class="md-nav md-nav--primary" aria-label="Navigation" data-md-level="0">
+ <label class="md-nav__title" for="__drawer">
+ <a href="index.html" title="FreeType-2.11.1 API Reference" class="md-nav__button md-logo" aria-label="FreeType-2.11.1 API Reference" data-md-component="logo">
+ <img src="images/favico.ico" alt="logo">
+
</a>
- FreeType-2.10.4 API Reference
+ FreeType-2.11.1 API Reference
</label>
<ul class="md-nav__list" data-md-scrollfix>
@@ -182,216 +175,246 @@
-
- <li class="md-nav__item">
- <a href="index.html" title="TOC" class="md-nav__link">
- TOC
- </a>
- </li>
+
+
+
+ <li class="md-nav__item">
+ <a href="index.html" class="md-nav__link">
+ TOC
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-index.html" title="Index" class="md-nav__link">
- Index
- </a>
- </li>
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-index.html" class="md-nav__link">
+ Index
+ </a>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-3" type="checkbox" id="nav-3">
+
+
+
- <label class="md-nav__link" for="nav-3">
- General Remarks
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-3">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_3" type="checkbox" id="__nav_3" >
+
+ <label class="md-nav__link" for="__nav_3">
General Remarks
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
-
-
+ <nav class="md-nav" aria-label="General Remarks" data-md-level="1">
+ <label class="md-nav__title" for="__nav_3">
+ <span class="md-nav__icon md-icon"></span>
+ General Remarks
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-preamble.html" class="md-nav__link">
+ Preamble
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-header_inclusion.html" title="FreeType's header inclusion scheme" class="md-nav__link">
- FreeType's header inclusion scheme
- </a>
- </li>
-
-
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-header_inclusion.html" class="md-nav__link">
+ FreeType's header inclusion scheme
+ </a>
+ </li>
+
- <li class="md-nav__item">
- <a href="ft2-user_allocation.html" title="User allocation" class="md-nav__link">
- User allocation
- </a>
- </li>
+
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-user_allocation.html" class="md-nav__link">
+ User allocation
+ </a>
+ </li>
+
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-4" type="checkbox" id="nav-4">
+
+
+
- <label class="md-nav__link" for="nav-4">
- Core API
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-4">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_4" type="checkbox" id="__nav_4" >
+
+ <label class="md-nav__link" for="__nav_4">
Core API
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
-
-
+ <nav class="md-nav" aria-label="Core API" data-md-level="1">
+ <label class="md-nav__title" for="__nav_4">
+ <span class="md-nav__icon md-icon"></span>
+ Core API
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-version.html" class="md-nav__link">
+ FreeType Version
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-version.html" title="FreeType Version" class="md-nav__link">
- FreeType Version
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-basic_types.html" title="Basic Data Types" class="md-nav__link">
- Basic Data Types
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-basic_types.html" class="md-nav__link">
+ Basic Data Types
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-base_interface.html" class="md-nav__link">
+ Base Interface
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-base_interface.html" title="Base Interface" class="md-nav__link">
- Base Interface
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-glyph_variants.html" title="Unicode Variation Sequences" class="md-nav__link">
- Unicode Variation Sequences
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-glyph_variants.html" class="md-nav__link">
+ Unicode Variation Sequences
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-color_management.html" title="Glyph Color Management" class="md-nav__link">
- Glyph Color Management
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-color_management.html" class="md-nav__link">
+ Glyph Color Management
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-layer_management.html" title="Glyph Layer Management" class="md-nav__link">
- Glyph Layer Management
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-layer_management.html" class="md-nav__link">
+ Glyph Layer Management
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-glyph_management.html" class="md-nav__link">
+ Glyph Management
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-glyph_management.html" title="Glyph Management" class="md-nav__link">
- Glyph Management
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-mac_specific.html" title="Mac Specific Interface" class="md-nav__link">
- Mac Specific Interface
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-mac_specific.html" class="md-nav__link">
+ Mac Specific Interface
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-sizes_management.html" title="Size Management" class="md-nav__link">
- Size Management
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-sizes_management.html" class="md-nav__link">
+ Size Management
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-header_file_macros.html" title="Header File Macros" class="md-nav__link">
- Header File Macros
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-header_file_macros.html" class="md-nav__link">
+ Header File Macros
+ </a>
+ </li>
+
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
@@ -399,65 +422,75 @@
-
-
- <li class="md-nav__item md-nav__item--active md-nav__item--nested">
+
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-5" type="checkbox" id="nav-5" checked>
+
+
- <label class="md-nav__link" for="nav-5">
- Format-Specific API
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-5">
+ <li class="md-nav__item md-nav__item--active md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_5" type="checkbox" id="__nav_5" checked>
+
+ <label class="md-nav__link" for="__nav_5">
Format-Specific API
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
-
-
+ <nav class="md-nav" aria-label="Format-Specific API" data-md-level="1">
+ <label class="md-nav__title" for="__nav_5">
+ <span class="md-nav__icon md-icon"></span>
+ Format-Specific API
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-multiple_masters.html" class="md-nav__link">
+ Multiple Masters
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-multiple_masters.html" title="Multiple Masters" class="md-nav__link">
- Multiple Masters
- </a>
- </li>
-
-
-
-
-
+
+
-
-
- <li class="md-nav__item md-nav__item--active">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="toc" type="checkbox" id="__toc">
+
+
+ <li class="md-nav__item md-nav__item--active">
-
-
- <label class="md-nav__link md-nav__link--active" for="__toc">
+ <input class="md-nav__toggle md-toggle" data-md-toggle="toc" type="checkbox" id="__toc">
+
+
+
+
+
+ <label class="md-nav__link md-nav__link--active" for="__toc">
+ TrueType Tables
+ <span class="md-nav__icon md-icon"></span>
+ </label>
+
+ <a href="ft2-truetype_tables.html" class="md-nav__link md-nav__link--active">
TrueType Tables
- </label>
-
- <a href="ft2-truetype_tables.html" title="TrueType Tables" class="md-nav__link md-nav__link--active">
- TrueType Tables
- </a>
-
+ </a>
-<nav class="md-nav md-nav--secondary">
+
+<nav class="md-nav md-nav--secondary" aria-label="Table of contents">
+
- <label class="md-nav__title" for="__toc">Table of contents</label>
- <ul class="md-nav__list" data-md-scrollfix>
+ <label class="md-nav__title" for="__toc">
+ <span class="md-nav__icon md-icon"></span>
+ Table of contents
+ </label>
+ <ul class="md-nav__list" data-md-component="toc" data-md-scrollfix>
<li class="md-nav__item">
<a href="#synopsis" class="md-nav__link">
@@ -634,560 +667,600 @@
</li>
-
-
-
-
</ul>
</nav>
-
- </li>
+
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-type1_tables.html" title="Type 1 Tables" class="md-nav__link">
- Type 1 Tables
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-type1_tables.html" class="md-nav__link">
+ Type 1 Tables
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-sfnt_names.html" title="SFNT Names" class="md-nav__link">
- SFNT Names
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-sfnt_names.html" class="md-nav__link">
+ SFNT Names
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-bdf_fonts.html" title="BDF and PCF Files" class="md-nav__link">
- BDF and PCF Files
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-bdf_fonts.html" class="md-nav__link">
+ BDF and PCF Files
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-cid_fonts.html" title="CID Fonts" class="md-nav__link">
- CID Fonts
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-cid_fonts.html" class="md-nav__link">
+ CID Fonts
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-pfr_fonts.html" class="md-nav__link">
+ PFR Fonts
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-pfr_fonts.html" title="PFR Fonts" class="md-nav__link">
- PFR Fonts
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-winfnt_fonts.html" title="Window FNT Files" class="md-nav__link">
- Window FNT Files
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-winfnt_fonts.html" class="md-nav__link">
+ Window FNT Files
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-font_formats.html" title="Font Formats" class="md-nav__link">
- Font Formats
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-font_formats.html" class="md-nav__link">
+ Font Formats
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-gasp_table.html" title="Gasp Table" class="md-nav__link">
- Gasp Table
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-gasp_table.html" class="md-nav__link">
+ Gasp Table
+ </a>
+ </li>
+
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-6" type="checkbox" id="nav-6">
+
+
+
- <label class="md-nav__link" for="nav-6">
- Controlling FreeType Modules
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-6">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_6" type="checkbox" id="__nav_6" >
+
+ <label class="md-nav__link" for="__nav_6">
Controlling FreeType Modules
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
+ <nav class="md-nav" aria-label="Controlling FreeType Modules" data-md-level="1">
+ <label class="md-nav__title" for="__nav_6">
+ <span class="md-nav__icon md-icon"></span>
+ Controlling FreeType Modules
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-auto_hinter.html" title="The auto-hinter" class="md-nav__link">
- The auto-hinter
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-auto_hinter.html" class="md-nav__link">
+ The auto-hinter
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-cff_driver.html" class="md-nav__link">
+ The CFF driver
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-cff_driver.html" title="The CFF driver" class="md-nav__link">
- The CFF driver
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-t1_cid_driver.html" title="The Type 1 and CID drivers" class="md-nav__link">
- The Type 1 and CID drivers
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-t1_cid_driver.html" class="md-nav__link">
+ The Type 1 and CID drivers
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-tt_driver.html" class="md-nav__link">
+ The TrueType driver
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-tt_driver.html" title="The TrueType driver" class="md-nav__link">
- The TrueType driver
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-pcf_driver.html" title="The PCF driver" class="md-nav__link">
- The PCF driver
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-pcf_driver.html" class="md-nav__link">
+ The PCF driver
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-properties.html" title="Driver properties" class="md-nav__link">
- Driver properties
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-properties.html" class="md-nav__link">
+ Driver properties
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-parameter_tags.html" title="Parameter Tags" class="md-nav__link">
- Parameter Tags
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-parameter_tags.html" class="md-nav__link">
+ Parameter Tags
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-lcd_rendering.html" title="Subpixel Rendering" class="md-nav__link">
- Subpixel Rendering
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-lcd_rendering.html" class="md-nav__link">
+ Subpixel Rendering
+ </a>
+ </li>
+
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-7" type="checkbox" id="nav-7">
+
+
+
- <label class="md-nav__link" for="nav-7">
- Cache Sub-System
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-7">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_7" type="checkbox" id="__nav_7" >
+
+ <label class="md-nav__link" for="__nav_7">
Cache Sub-System
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
+ <nav class="md-nav" aria-label="Cache Sub-System" data-md-level="1">
+ <label class="md-nav__title" for="__nav_7">
+ <span class="md-nav__icon md-icon"></span>
+ Cache Sub-System
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-cache_subsystem.html" title="Cache Sub-System" class="md-nav__link">
- Cache Sub-System
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-cache_subsystem.html" class="md-nav__link">
+ Cache Sub-System
+ </a>
+ </li>
+
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-8" type="checkbox" id="nav-8">
+
+
+
- <label class="md-nav__link" for="nav-8">
- Support API
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-8">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_8" type="checkbox" id="__nav_8" >
+
+ <label class="md-nav__link" for="__nav_8">
Support API
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
+ <nav class="md-nav" aria-label="Support API" data-md-level="1">
+ <label class="md-nav__title" for="__nav_8">
+ <span class="md-nav__icon md-icon"></span>
+ Support API
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-computations.html" title="Computations" class="md-nav__link">
- Computations
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-computations.html" class="md-nav__link">
+ Computations
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-list_processing.html" class="md-nav__link">
+ List Processing
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-list_processing.html" title="List Processing" class="md-nav__link">
- List Processing
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-outline_processing.html" title="Outline Processing" class="md-nav__link">
- Outline Processing
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-outline_processing.html" class="md-nav__link">
+ Outline Processing
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-quick_advance.html" title="Quick retrieval of advance values" class="md-nav__link">
- Quick retrieval of advance values
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-quick_advance.html" class="md-nav__link">
+ Quick retrieval of advance values
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-bitmap_handling.html" title="Bitmap Handling" class="md-nav__link">
- Bitmap Handling
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-bitmap_handling.html" class="md-nav__link">
+ Bitmap Handling
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-raster.html" class="md-nav__link">
+ Scanline Converter
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-raster.html" title="Scanline Converter" class="md-nav__link">
- Scanline Converter
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-glyph_stroker.html" title="Glyph Stroker" class="md-nav__link">
- Glyph Stroker
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-glyph_stroker.html" class="md-nav__link">
+ Glyph Stroker
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-system_interface.html" title="System Interface" class="md-nav__link">
- System Interface
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-system_interface.html" class="md-nav__link">
+ System Interface
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-module_management.html" title="Module Management" class="md-nav__link">
- Module Management
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-module_management.html" class="md-nav__link">
+ Module Management
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-gzip.html" class="md-nav__link">
+ GZIP Streams
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-gzip.html" title="GZIP Streams" class="md-nav__link">
- GZIP Streams
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-lzw.html" title="LZW Streams" class="md-nav__link">
- LZW Streams
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-lzw.html" class="md-nav__link">
+ LZW Streams
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-bzip2.html" class="md-nav__link">
+ BZIP2 Streams
+ </a>
+ </li>
+
+
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-debugging_apis.html" class="md-nav__link">
+ External Debugging APIs
+ </a>
+ </li>
+
- <li class="md-nav__item">
- <a href="ft2-bzip2.html" title="BZIP2 Streams" class="md-nav__link">
- BZIP2 Streams
- </a>
- </li>
-
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-9" type="checkbox" id="nav-9">
+
+
+
- <label class="md-nav__link" for="nav-9">
- Error Codes
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-9">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_9" type="checkbox" id="__nav_9" >
+
+ <label class="md-nav__link" for="__nav_9">
Error Codes
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
-
+ <nav class="md-nav" aria-label="Error Codes" data-md-level="1">
+ <label class="md-nav__title" for="__nav_9">
+ <span class="md-nav__icon md-icon"></span>
+ Error Codes
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
-
-
-
- <li class="md-nav__item">
- <a href="ft2-error_enumerations.html" title="Error Enumerations" class="md-nav__link">
- Error Enumerations
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-error_enumerations.html" class="md-nav__link">
+ Error Enumerations
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-error_code_values.html" title="Error Code Values" class="md-nav__link">
- Error Code Values
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-error_code_values.html" class="md-nav__link">
+ Error Code Values
+ </a>
+ </li>
+
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-10" type="checkbox" id="nav-10">
+
+
+
- <label class="md-nav__link" for="nav-10">
- Miscellaneous
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-10">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_10" type="checkbox" id="__nav_10" >
+
+ <label class="md-nav__link" for="__nav_10">
Miscellaneous
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
-
+ <nav class="md-nav" aria-label="Miscellaneous" data-md-level="1">
+ <label class="md-nav__title" for="__nav_10">
+ <span class="md-nav__icon md-icon"></span>
+ Miscellaneous
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
-
-
-
- <li class="md-nav__item">
- <a href="ft2-gx_validation.html" title="TrueTypeGX/AAT Validation" class="md-nav__link">
- TrueTypeGX/AAT Validation
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-gx_validation.html" class="md-nav__link">
+ TrueTypeGX/AAT Validation
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-incremental.html" title="Incremental Loading" class="md-nav__link">
- Incremental Loading
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-incremental.html" class="md-nav__link">
+ Incremental Loading
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-truetype_engine.html" title="The TrueType Engine" class="md-nav__link">
- The TrueType Engine
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-truetype_engine.html" class="md-nav__link">
+ The TrueType Engine
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-ot_validation.html" class="md-nav__link">
+ OpenType Validation
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-ot_validation.html" title="OpenType Validation" class="md-nav__link">
- OpenType Validation
- </a>
- </li>
-
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
</ul>
@@ -1197,18 +1270,23 @@
</div>
- <div class="md-sidebar md-sidebar--secondary" data-md-component="toc">
+
+ <div class="md-sidebar md-sidebar--secondary" data-md-component="sidebar" data-md-type="toc" >
<div class="md-sidebar__scrollwrap">
<div class="md-sidebar__inner">
-<nav class="md-nav md-nav--secondary">
+<nav class="md-nav md-nav--secondary" aria-label="Table of contents">
+
- <label class="md-nav__title" for="__toc">Table of contents</label>
- <ul class="md-nav__list" data-md-scrollfix>
+ <label class="md-nav__title" for="__toc">
+ <span class="md-nav__icon md-icon"></span>
+ Table of contents
+ </label>
+ <ul class="md-nav__list" data-md-component="toc" data-md-scrollfix>
<li class="md-nav__item">
<a href="#synopsis" class="md-nav__link">
@@ -1385,10 +1463,6 @@
</li>
-
-
-
-
</ul>
</nav>
@@ -1397,7 +1471,7 @@
</div>
- <div class="md-content">
+ <div class="md-content" data-md-component="content">
<article class="md-content__inner md-typeset">
@@ -1476,7 +1550,6 @@
<p>A structure to model a TrueType horizontal header, the &lsquo;hhea&rsquo; table, as well as the corresponding horizontal metrics table, &lsquo;hmtx&rsquo;.</p>
<h4>fields</h4>
-
<table class="fields">
<tr><td class="val" id="version">Version</td><td class="desc">
<p>The table version.</p>
@@ -1522,7 +1595,7 @@
<p>Always&nbsp;0.</p>
</td></tr>
<tr><td class="val" id="number_of_hmetrics">number_Of_HMetrics</td><td class="desc">
-<p>Number of HMetrics entries in the &lsquo;hmtx&rsquo; table -- this value can be smaller than the total number of glyphs in the font.</p>
+<p>Number of HMetrics entries in the &lsquo;hmtx&rsquo; table &ndash; this value can be smaller than the total number of glyphs in the font.</p>
</td></tr>
<tr><td class="val" id="long_metrics">long_metrics</td><td class="desc">
<p>A pointer into the &lsquo;hmtx&rsquo; table.</p>
@@ -1572,7 +1645,6 @@
<p>A structure used to model a TrueType vertical header, the &lsquo;vhea&rsquo; table, as well as the corresponding vertical metrics table, &lsquo;vmtx&rsquo;.</p>
<h4>fields</h4>
-
<table class="fields">
<tr><td class="val" id="version">Version</td><td class="desc">
<p>The table version.</p>
@@ -1618,7 +1690,7 @@
<p>Always&nbsp;0.</p>
</td></tr>
<tr><td class="val" id="number_of_vmetrics">number_Of_VMetrics</td><td class="desc">
-<p>Number of VMetrics entries in the &lsquo;vmtx&rsquo; table -- this value can be smaller than the total number of glyphs in the font.</p>
+<p>Number of VMetrics entries in the &lsquo;vmtx&rsquo; table &ndash; this value can be smaller than the total number of glyphs in the font.</p>
</td></tr>
<tr><td class="val" id="long_metrics">long_metrics</td><td class="desc">
<p>A pointer into the &lsquo;vmtx&rsquo; table.</p>
@@ -1778,7 +1850,6 @@
<p>The maximum profile (&lsquo;maxp&rsquo;) table contains many max values, which can be used to pre-allocate arrays for speeding up glyph loading and hinting.</p>
<h4>fields</h4>
-
<table class="fields">
<tr><td class="val" id="version">version</td><td class="desc">
<p>The version number.</p>
@@ -1861,7 +1932,6 @@
<p>An enumeration to specify indices of SFNT tables loaded and parsed by FreeType during initialization of an SFNT font. Used in the <code><a href="ft2-truetype_tables.html#ft_get_sfnt_table">FT_Get_Sfnt_Table</a></code> API function.</p>
<h4>values</h4>
-
<table class="fields">
<tr><td class="val" id="ft_sfnt_head">FT_SFNT_HEAD</td><td class="desc">
<p>To access the font's <code><a href="ft2-truetype_tables.html#tt_header">TT_Header</a></code> structure.</p>
@@ -1897,7 +1967,6 @@
<p>Return a pointer to a given SFNT table stored within a face.</p>
<h4>input</h4>
-
<table class="fields">
<tr><td class="val" id="face">face</td><td class="desc">
<p>A handle to the source.</p>
@@ -1938,7 +2007,6 @@
<p>Load any SFNT font table into client memory.</p>
<h4>input</h4>
-
<table class="fields">
<tr><td class="val" id="face">face</td><td class="desc">
<p>A handle to the source face.</p>
@@ -1952,7 +2020,6 @@
</table>
<h4>output</h4>
-
<table class="fields">
<tr><td class="val" id="buffer">buffer</td><td class="desc">
<p>The target buffer address. The client must ensure that the memory array is big enough to hold the data.</p>
@@ -1960,7 +2027,6 @@
</table>
<h4>inout</h4>
-
<table class="fields">
<tr><td class="val" id="length">length</td><td class="desc">
<p>If the <code>length</code> parameter is <code>NULL</code>, try to load the whole table. Return an error code if it fails.</p>
@@ -2001,7 +2067,6 @@
<p>Return information on an SFNT table.</p>
<h4>input</h4>
-
<table class="fields">
<tr><td class="val" id="face">face</td><td class="desc">
<p>A handle to the source face.</p>
@@ -2012,7 +2077,6 @@
</table>
<h4>inout</h4>
-
<table class="fields">
<tr><td class="val" id="tag">tag</td><td class="desc">
<p>The name tag of the SFNT table. If the value is <code>NULL</code>, <code>table_index</code> is ignored, and <code>length</code> returns the number of SFNT tables in the font.</p>
@@ -2020,7 +2084,6 @@
</table>
<h4>output</h4>
-
<table class="fields">
<tr><td class="val" id="length">length</td><td class="desc">
<p>The length of the SFNT table (or the number of SFNT tables, depending on <code>tag</code>).</p>
@@ -2043,7 +2106,6 @@
<p>Return cmap language ID as specified in the OpenType standard. Definitions of language ID values are in file <code><a href="ft2-header_file_macros.html#ft_truetype_ids_h">FT_TRUETYPE_IDS_H</a></code>.</p>
<h4>input</h4>
-
<table class="fields">
<tr><td class="val" id="charmap">charmap</td><td class="desc">
<p>The target charmap.</p>
@@ -2064,7 +2126,6 @@
<p>Return the format of an SFNT &lsquo;cmap&rsquo; table.</p>
<h4>input</h4>
-
<table class="fields">
<tr><td class="val" id="charmap">charmap</td><td class="desc">
<p>The target charmap.</p>
@@ -2097,7 +2158,6 @@
<p>A list of valid values for the <code>platform_id</code> identifier code in <code><a href="ft2-base_interface.html#ft_charmaprec">FT_CharMapRec</a></code> and <code><a href="ft2-sfnt_names.html#ft_sfntname">FT_SfntName</a></code> structures.</p>
<h4>values</h4>
-
<table class="fields">
<tr><td class="val" id="tt_platform_apple_unicode">TT_PLATFORM_APPLE_UNICODE</td><td class="desc">
<p>Used by Apple to indicate a Unicode character map and/or name entry. See <code><a href="ft2-truetype_tables.html#tt_apple_id_xxx">TT_APPLE_ID_XXX</a></code> for corresponding <code>encoding_id</code> values. Note that name entries in this format are coded as big-endian UCS-2 character codes <em>only</em>.</p>
@@ -2134,7 +2194,6 @@
<p>A list of valid values for the <code>encoding_id</code> for <code><a href="ft2-truetype_tables.html#tt_platform_xxx">TT_PLATFORM_APPLE_UNICODE</a></code> charmaps and name entries.</p>
<h4>values</h4>
-
<table class="fields long">
<tr><td class="val" id="tt_apple_id_default">TT_APPLE_ID_DEFAULT</td><td class="desc">
<p>Unicode version 1.0.</p>
@@ -2212,7 +2271,6 @@
<p>A list of valid values for the <code>encoding_id</code> for <code><a href="ft2-truetype_tables.html#tt_platform_xxx">TT_PLATFORM_ISO</a></code> charmaps and name entries.</p>
<p>Their use is now deprecated.</p>
<h4>values</h4>
-
<table class="fields">
<tr><td class="val" id="tt_iso_id_7bit_ascii">TT_ISO_ID_7BIT_ASCII</td><td class="desc">
<p>ASCII.</p>
@@ -2244,7 +2302,6 @@
<p>A list of valid values for the <code>encoding_id</code> for <code><a href="ft2-truetype_tables.html#tt_platform_xxx">TT_PLATFORM_MICROSOFT</a></code> charmaps and name entries.</p>
<h4>values</h4>
-
<table class="fields">
<tr><td class="val" id="tt_ms_id_symbol_cs">TT_MS_ID_SYMBOL_CS</td><td class="desc">
<p>Microsoft symbol encoding. See <code><a href="ft2-base_interface.html#ft_encoding">FT_ENCODING_MS_SYMBOL</a></code>.</p>
@@ -2284,7 +2341,6 @@
<p>A list of valid values for the <code>encoding_id</code> for <code><a href="ft2-truetype_tables.html#tt_platform_xxx">TT_PLATFORM_ADOBE</a></code> charmaps. This is a FreeType-specific extension!</p>
<h4>values</h4>
-
<table class="fields">
<tr><td class="val" id="tt_adobe_id_standard">TT_ADOBE_ID_STANDARD</td><td class="desc">
<p>Adobe standard encoding.</p>
@@ -2579,7 +2635,7 @@
#<span class="keyword">define</span> TT_MS_LANGID_MALAY_MALAYSIA 0x043E
#<span class="keyword">define</span> TT_MS_LANGID_MALAY_BRUNEI_DARUSSALAM 0x083E
#<span class="keyword">define</span> TT_MS_LANGID_KAZAKH_KAZAKHSTAN 0x043F
-#<span class="keyword">define</span> TT_MS_LANGID_KYRGYZ_KYRGYZSTAN /* Cyrillic*/ 0x0440
+#<span class="keyword">define</span> TT_MS_LANGID_KYRGYZ_KYRGYZSTAN /* Cyrillic */ 0x0440
#<span class="keyword">define</span> TT_MS_LANGID_KISWAHILI_KENYA 0x0441
#<span class="keyword">define</span> TT_MS_LANGID_TURKMEN_TURKMENISTAN 0x0442
#<span class="keyword">define</span> TT_MS_LANGID_UZBEK_UZBEKISTAN_LATIN 0x0443
@@ -3074,9 +3130,6 @@
<p>Possible bit mask values for the <code>ulUnicodeRangeX</code> fields in an SFNT &lsquo;OS/2&rsquo; table.</p>
<hr>
-
-
-
@@ -3086,59 +3139,60 @@
</article>
</div>
</div>
+
</main>
<footer class="md-footer">
- <div class="md-footer-nav">
- <nav class="md-footer-nav__inner md-grid">
+ <nav class="md-footer__inner md-grid" aria-label="Footer">
+
- <a href="ft2-multiple_masters.html" title="Multiple Masters" class="md-flex md-footer-nav__link md-footer-nav__link--prev" rel="prev">
- <div class="md-flex__cell md-flex__cell--shrink">
- <i class="md-icon md-icon--arrow-back md-footer-nav__button"></i>
- </div>
- <div class="md-flex__cell md-flex__cell--stretch md-footer-nav__title">
- <span class="md-flex__ellipsis">
- <span class="md-footer-nav__direction">
- Previous
- </span>
- Multiple Masters
+ <a href="ft2-multiple_masters.html" class="md-footer__link md-footer__link--prev" aria-label="Previous: Multiple Masters" rel="prev">
+ <div class="md-footer__button md-icon">
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M20 11v2H8l5.5 5.5-1.42 1.42L4.16 12l7.92-7.92L13.5 5.5 8 11h12z"/></svg>
+ </div>
+ <div class="md-footer__title">
+ <div class="md-ellipsis">
+ <span class="md-footer__direction">
+ Previous
</span>
+ Multiple Masters
</div>
- </a>
-
+ </div>
+ </a>
+
+
- <a href="ft2-type1_tables.html" title="Type 1 Tables" class="md-flex md-footer-nav__link md-footer-nav__link--next" rel="next">
- <div class="md-flex__cell md-flex__cell--stretch md-footer-nav__title">
- <span class="md-flex__ellipsis">
- <span class="md-footer-nav__direction">
- Next
- </span>
- Type 1 Tables
+ <a href="ft2-type1_tables.html" class="md-footer__link md-footer__link--next" aria-label="Next: Type 1 Tables" rel="next">
+ <div class="md-footer__title">
+ <div class="md-ellipsis">
+ <span class="md-footer__direction">
+ Next
</span>
+ Type 1 Tables
</div>
- <div class="md-flex__cell md-flex__cell--shrink">
- <i class="md-icon md-icon--arrow-forward md-footer-nav__button"></i>
- </div>
- </a>
-
- </nav>
- </div>
+ </div>
+ <div class="md-footer__button md-icon">
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M4 11v2h12l-5.5 5.5 1.42 1.42L19.84 12l-7.92-7.92L10.5 5.5 16 11H4z"/></svg>
+ </div>
+ </a>
+
+ </nav>
<div class="md-footer-meta md-typeset">
<div class="md-footer-meta__inner md-grid">
<div class="md-footer-copyright">
<div class="md-footer-copyright__highlight">
- Copyright 2020 <a href = "https://www.freetype.org/license.html">The FreeType Project</a>.
+ Copyright 2021 <a href = "https://www.freetype.org/license.html">The FreeType Project</a>.
</div>
- powered by
- <a href="https://www.mkdocs.org" target="_blank" rel="noopener">MkDocs</a>
- and
+ Made with
<a href="https://squidfunk.github.io/mkdocs-material/" target="_blank" rel="noopener">
- Material for MkDocs</a>
+ Material for MkDocs
+ </a>
+
</div>
</div>
@@ -3146,10 +3200,13 @@
</footer>
</div>
+ <div class="md-dialog" data-md-component="dialog">
+ <div class="md-dialog__inner md-typeset"></div>
+ </div>
+ <script id="__config" type="application/json">{"base": ".", "features": [], "translations": {"clipboard.copy": "Copy to clipboard", "clipboard.copied": "Copied to clipboard", "search.config.lang": "en", "search.config.pipeline": "trimmer, stopWordFilter", "search.config.separator": "[\\s\\-]+", "search.placeholder": "Search", "search.result.placeholder": "Type to start searching", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.term.missing": "Missing", "select.version.title": "Select version"}, "search": "assets/javascripts/workers/search.477d984a.min.js", "version": null}</script>
- <script src="assets/javascripts/application.c33a9706.js"></script>
-
- <script>app.initialize({version:"1.1",url:{base:"."}})</script>
+
+ <script src="assets/javascripts/bundle.82b56eb2.min.js"></script>
<script src="javascripts/extra.js"></script>
diff --git a/freetype/docs/reference/ft2-tt_driver.html b/freetype/docs/reference/ft2-tt_driver.html
index a5fe98a2..915bc432 100644
--- a/freetype/docs/reference/ft2-tt_driver.html
+++ b/freetype/docs/reference/ft2-tt_driver.html
@@ -1,145 +1,136 @@
-
-
-
<!doctype html>
<html lang="en" class="no-js">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
- <meta http-equiv="x-ua-compatible" content="ie=edge">
- <meta name="description" content="API Reference Documentation for FreeType-2.10.4">
+ <meta name="description" content="API Reference Documentation for FreeType-2.11.1">
<meta name="author" content="FreeType Contributors">
- <meta name="lang:clipboard.copy" content="Copy to clipboard">
-
- <meta name="lang:clipboard.copied" content="Copied to clipboard">
-
- <meta name="lang:search.language" content="en">
-
- <meta name="lang:search.pipeline.stopwords" content="True">
-
- <meta name="lang:search.pipeline.trimmer" content="True">
-
- <meta name="lang:search.result.none" content="No matching documents">
-
- <meta name="lang:search.result.one" content="1 matching document">
-
- <meta name="lang:search.result.other" content="# matching documents">
-
- <meta name="lang:search.tokenizer" content="[\s\-]+">
-
- <link rel="shortcut icon" href="images/favico.ico">
- <meta name="generator" content="mkdocs-1.1, mkdocs-material-4.6.3">
+ <link rel="icon" href="images/favico.ico">
+ <meta name="generator" content="mkdocs-1.2.1, mkdocs-material-7.1.9">
- <title>The TrueType driver - FreeType-2.10.4 API Reference</title>
+ <title>The TrueType driver - FreeType-2.11.1 API Reference</title>
- <link rel="stylesheet" href="assets/stylesheets/application.adb8469c.css">
-
- <link rel="stylesheet" href="assets/stylesheets/application-palette.a8b3c06d.css">
-
+ <link rel="stylesheet" href="assets/stylesheets/main.ca7ac06f.min.css">
+ <link rel="stylesheet" href="assets/stylesheets/palette.f1a3b89f.min.css">
+
+
+
+ <meta name="theme-color" content="#4cae4f">
- <meta name="theme-color" content="#4caf50">
- <script src="assets/javascripts/modernizr.86422ebf.js"></script>
-
- <link href="https://fonts.gstatic.com" rel="preconnect" crossorigin>
+
+ <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Noto+Serif:300,400,400i,700%7CRoboto+Mono&display=fallback">
- <style>body,input{font-family:"Noto Serif","Helvetica Neue",Helvetica,Arial,sans-serif}code,kbd,pre{font-family:"Roboto Mono","Courier New",Courier,monospace}</style>
+ <style>:root{--md-text-font-family:"Noto Serif";--md-code-font-family:"Roboto Mono"}</style>
- <link rel="stylesheet" href="assets/fonts/material-icons.css">
<link rel="stylesheet" href="stylesheets/extra.css">
+
+
</head>
+
+
+
+
- <body dir="ltr" data-md-color-primary="green" data-md-color-accent="green">
+ <body dir="ltr" data-md-color-scheme="" data-md-color-primary="green" data-md-color-accent="green">
- <svg class="md-svg">
- <defs>
-
-
- </defs>
- </svg>
- <input class="md-toggle" data-md-toggle="drawer" type="checkbox" id="__drawer" autocomplete="off">
- <input class="md-toggle" data-md-toggle="search" type="checkbox" id="__search" autocomplete="off">
- <label class="md-overlay" data-md-component="overlay" for="__drawer"></label>
- <a href="#the-truetype-driver" tabindex="0" class="md-skip">
- Skip to content
- </a>
+ <script>function __prefix(e){return new URL(".",location).pathname+"."+e}function __get(e,t=localStorage){return JSON.parse(t.getItem(__prefix(e)))}</script>
+ <input class="md-toggle" data-md-toggle="drawer" type="checkbox" id="__drawer" autocomplete="off">
+ <input class="md-toggle" data-md-toggle="search" type="checkbox" id="__search" autocomplete="off">
+ <label class="md-overlay" for="__drawer"></label>
+ <div data-md-component="skip">
+
+
+ <a href="#the-truetype-driver" class="md-skip">
+ Skip to content
+ </a>
+
+ </div>
+ <div data-md-component="announce">
+
+ </div>
<header class="md-header" data-md-component="header">
- <nav class="md-header-nav md-grid">
- <div class="md-flex">
- <div class="md-flex__cell md-flex__cell--shrink">
- <a href="." title="FreeType-2.10.4 API Reference" aria-label="FreeType-2.10.4 API Reference" class="md-header-nav__button md-logo">
-
- <img alt="logo" src="images/favico.ico" width="24" height="24">
-
- </a>
- </div>
- <div class="md-flex__cell md-flex__cell--shrink">
- <label class="md-icon md-icon--menu md-header-nav__button" for="__drawer"></label>
- </div>
- <div class="md-flex__cell md-flex__cell--stretch">
- <div class="md-flex__ellipsis md-header-nav__title" data-md-component="title">
-
- <span class="md-header-nav__topic">
- FreeType-2.10.4 API Reference
- </span>
- <span class="md-header-nav__topic">
-
- The TrueType driver
-
- </span>
-
+ <nav class="md-header__inner md-grid" aria-label="Header">
+ <a href="index.html" title="FreeType-2.11.1 API Reference" class="md-header__button md-logo" aria-label="FreeType-2.11.1 API Reference" data-md-component="logo">
+
+ <img src="images/favico.ico" alt="logo">
+
+ </a>
+ <label class="md-header__button md-icon" for="__drawer">
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M3 6h18v2H3V6m0 5h18v2H3v-2m0 5h18v2H3v-2z"/></svg>
+ </label>
+ <div class="md-header__title" data-md-component="header-title">
+ <div class="md-header__ellipsis">
+ <div class="md-header__topic">
+ <span class="md-ellipsis">
+ FreeType-2.11.1 API Reference
+ </span>
+ </div>
+ <div class="md-header__topic" data-md-component="header-topic">
+ <span class="md-ellipsis">
+
+ The TrueType driver
+
+ </span>
</div>
</div>
- <div class="md-flex__cell md-flex__cell--shrink">
-
- <label class="md-icon md-icon--search md-header-nav__button" for="__search"></label>
-
+ </div>
+
+
+
+ <label class="md-header__button md-icon" for="__search">
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M9.5 3A6.5 6.5 0 0 1 16 9.5c0 1.61-.59 3.09-1.56 4.23l.27.27h.79l5 5-1.5 1.5-5-5v-.79l-.27-.27A6.516 6.516 0 0 1 9.5 16 6.5 6.5 0 0 1 3 9.5 6.5 6.5 0 0 1 9.5 3m0 2C7 5 5 7 5 9.5S7 14 9.5 14 14 12 14 9.5 12 5 9.5 5z"/></svg>
+ </label>
+
<div class="md-search" data-md-component="search" role="dialog">
<label class="md-search__overlay" for="__search"></label>
<div class="md-search__inner" role="search">
<form class="md-search__form" name="search">
- <input type="text" class="md-search__input" aria-label="search" name="query" placeholder="Search" autocapitalize="off" autocorrect="off" autocomplete="off" spellcheck="false" data-md-component="query" data-md-state="active">
- <label class="md-icon md-search__icon" for="__search"></label>
- <button type="reset" class="md-icon md-search__icon" data-md-component="reset" tabindex="-1">
- &#xE5CD;
+ <input type="text" class="md-search__input" name="query" aria-label="Search" placeholder="Search" autocapitalize="off" autocorrect="off" autocomplete="off" spellcheck="false" data-md-component="search-query" data-md-state="active" required>
+ <label class="md-search__icon md-icon" for="__search">
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M9.5 3A6.5 6.5 0 0 1 16 9.5c0 1.61-.59 3.09-1.56 4.23l.27.27h.79l5 5-1.5 1.5-5-5v-.79l-.27-.27A6.516 6.516 0 0 1 9.5 16 6.5 6.5 0 0 1 3 9.5 6.5 6.5 0 0 1 9.5 3m0 2C7 5 5 7 5 9.5S7 14 9.5 14 14 12 14 9.5 12 5 9.5 5z"/></svg>
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M20 11v2H8l5.5 5.5-1.42 1.42L4.16 12l7.92-7.92L13.5 5.5 8 11h12z"/></svg>
+ </label>
+ <button type="reset" class="md-search__icon md-icon" aria-label="Clear" tabindex="-1">
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z"/></svg>
</button>
</form>
<div class="md-search__output">
<div class="md-search__scrollwrap" data-md-scrollfix>
- <div class="md-search-result" data-md-component="result">
+ <div class="md-search-result" data-md-component="search-result">
<div class="md-search-result__meta">
- Type to start searching
+ Initializing search
</div>
<ol class="md-search-result__list"></ol>
</div>
@@ -147,33 +138,35 @@
</div>
</div>
</div>
-
- </div>
-
- </div>
+
+
</nav>
</header>
- <div class="md-container">
+ <div class="md-container" data-md-component="container">
-
+
- <main class="md-main" role="main">
- <div class="md-main__inner md-grid" data-md-component="container">
+ <main class="md-main" data-md-component="main">
+ <div class="md-main__inner md-grid">
- <div class="md-sidebar md-sidebar--primary" data-md-component="navigation">
+
+ <div class="md-sidebar md-sidebar--primary" data-md-component="sidebar" data-md-type="navigation" >
<div class="md-sidebar__scrollwrap">
<div class="md-sidebar__inner">
- <nav class="md-nav md-nav--primary" data-md-level="0">
- <label class="md-nav__title md-nav__title--site" for="__drawer">
- <a href="." title="FreeType-2.10.4 API Reference" class="md-nav__button md-logo">
-
- <img alt="logo" src="images/favico.ico" width="48" height="48">
+
+
+
+<nav class="md-nav md-nav--primary" aria-label="Navigation" data-md-level="0">
+ <label class="md-nav__title" for="__drawer">
+ <a href="index.html" title="FreeType-2.11.1 API Reference" class="md-nav__button md-logo" aria-label="FreeType-2.11.1 API Reference" data-md-component="logo">
+ <img src="images/favico.ico" alt="logo">
+
</a>
- FreeType-2.10.4 API Reference
+ FreeType-2.11.1 API Reference
</label>
<ul class="md-nav__list" data-md-scrollfix>
@@ -182,360 +175,396 @@
-
- <li class="md-nav__item">
- <a href="index.html" title="TOC" class="md-nav__link">
- TOC
- </a>
- </li>
+
+
+
+ <li class="md-nav__item">
+ <a href="index.html" class="md-nav__link">
+ TOC
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-index.html" title="Index" class="md-nav__link">
- Index
- </a>
- </li>
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-index.html" class="md-nav__link">
+ Index
+ </a>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-3" type="checkbox" id="nav-3">
+
+
+
- <label class="md-nav__link" for="nav-3">
- General Remarks
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-3">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_3" type="checkbox" id="__nav_3" >
+
+ <label class="md-nav__link" for="__nav_3">
General Remarks
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
+ <nav class="md-nav" aria-label="General Remarks" data-md-level="1">
+ <label class="md-nav__title" for="__nav_3">
+ <span class="md-nav__icon md-icon"></span>
+ General Remarks
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-header_inclusion.html" title="FreeType's header inclusion scheme" class="md-nav__link">
- FreeType's header inclusion scheme
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-preamble.html" class="md-nav__link">
+ Preamble
+ </a>
+ </li>
+
-
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-header_inclusion.html" class="md-nav__link">
+ FreeType's header inclusion scheme
+ </a>
+ </li>
+
- <li class="md-nav__item">
- <a href="ft2-user_allocation.html" title="User allocation" class="md-nav__link">
- User allocation
- </a>
- </li>
+
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-user_allocation.html" class="md-nav__link">
+ User allocation
+ </a>
+ </li>
+
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-4" type="checkbox" id="nav-4">
+
+
+
- <label class="md-nav__link" for="nav-4">
- Core API
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-4">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_4" type="checkbox" id="__nav_4" >
+
+ <label class="md-nav__link" for="__nav_4">
Core API
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
-
-
+ <nav class="md-nav" aria-label="Core API" data-md-level="1">
+ <label class="md-nav__title" for="__nav_4">
+ <span class="md-nav__icon md-icon"></span>
+ Core API
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-version.html" class="md-nav__link">
+ FreeType Version
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-version.html" title="FreeType Version" class="md-nav__link">
- FreeType Version
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-basic_types.html" title="Basic Data Types" class="md-nav__link">
- Basic Data Types
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-basic_types.html" class="md-nav__link">
+ Basic Data Types
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-base_interface.html" class="md-nav__link">
+ Base Interface
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-base_interface.html" title="Base Interface" class="md-nav__link">
- Base Interface
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-glyph_variants.html" title="Unicode Variation Sequences" class="md-nav__link">
- Unicode Variation Sequences
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-glyph_variants.html" class="md-nav__link">
+ Unicode Variation Sequences
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-color_management.html" title="Glyph Color Management" class="md-nav__link">
- Glyph Color Management
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-color_management.html" class="md-nav__link">
+ Glyph Color Management
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-layer_management.html" title="Glyph Layer Management" class="md-nav__link">
- Glyph Layer Management
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-layer_management.html" class="md-nav__link">
+ Glyph Layer Management
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-glyph_management.html" title="Glyph Management" class="md-nav__link">
- Glyph Management
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-glyph_management.html" class="md-nav__link">
+ Glyph Management
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-mac_specific.html" title="Mac Specific Interface" class="md-nav__link">
- Mac Specific Interface
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-mac_specific.html" class="md-nav__link">
+ Mac Specific Interface
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-sizes_management.html" title="Size Management" class="md-nav__link">
- Size Management
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-sizes_management.html" class="md-nav__link">
+ Size Management
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-header_file_macros.html" title="Header File Macros" class="md-nav__link">
- Header File Macros
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-header_file_macros.html" class="md-nav__link">
+ Header File Macros
+ </a>
+ </li>
+
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-5" type="checkbox" id="nav-5">
+
+
+
- <label class="md-nav__link" for="nav-5">
- Format-Specific API
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-5">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_5" type="checkbox" id="__nav_5" >
+
+ <label class="md-nav__link" for="__nav_5">
Format-Specific API
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
+ <nav class="md-nav" aria-label="Format-Specific API" data-md-level="1">
+ <label class="md-nav__title" for="__nav_5">
+ <span class="md-nav__icon md-icon"></span>
+ Format-Specific API
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-multiple_masters.html" title="Multiple Masters" class="md-nav__link">
- Multiple Masters
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-multiple_masters.html" class="md-nav__link">
+ Multiple Masters
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-truetype_tables.html" title="TrueType Tables" class="md-nav__link">
- TrueType Tables
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-truetype_tables.html" class="md-nav__link">
+ TrueType Tables
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-type1_tables.html" title="Type 1 Tables" class="md-nav__link">
- Type 1 Tables
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-type1_tables.html" class="md-nav__link">
+ Type 1 Tables
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-sfnt_names.html" title="SFNT Names" class="md-nav__link">
- SFNT Names
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-sfnt_names.html" class="md-nav__link">
+ SFNT Names
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-bdf_fonts.html" class="md-nav__link">
+ BDF and PCF Files
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-bdf_fonts.html" title="BDF and PCF Files" class="md-nav__link">
- BDF and PCF Files
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-cid_fonts.html" title="CID Fonts" class="md-nav__link">
- CID Fonts
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-cid_fonts.html" class="md-nav__link">
+ CID Fonts
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-pfr_fonts.html" class="md-nav__link">
+ PFR Fonts
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-pfr_fonts.html" title="PFR Fonts" class="md-nav__link">
- PFR Fonts
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-winfnt_fonts.html" title="Window FNT Files" class="md-nav__link">
- Window FNT Files
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-winfnt_fonts.html" class="md-nav__link">
+ Window FNT Files
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-font_formats.html" title="Font Formats" class="md-nav__link">
- Font Formats
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-font_formats.html" class="md-nav__link">
+ Font Formats
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-gasp_table.html" title="Gasp Table" class="md-nav__link">
- Gasp Table
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-gasp_table.html" class="md-nav__link">
+ Gasp Table
+ </a>
+ </li>
+
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
@@ -543,89 +572,99 @@
-
-
- <li class="md-nav__item md-nav__item--active md-nav__item--nested">
+
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-6" type="checkbox" id="nav-6" checked>
+
+
- <label class="md-nav__link" for="nav-6">
- Controlling FreeType Modules
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-6">
+ <li class="md-nav__item md-nav__item--active md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_6" type="checkbox" id="__nav_6" checked>
+
+ <label class="md-nav__link" for="__nav_6">
Controlling FreeType Modules
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
+ <nav class="md-nav" aria-label="Controlling FreeType Modules" data-md-level="1">
+ <label class="md-nav__title" for="__nav_6">
+ <span class="md-nav__icon md-icon"></span>
+ Controlling FreeType Modules
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-auto_hinter.html" title="The auto-hinter" class="md-nav__link">
- The auto-hinter
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-auto_hinter.html" class="md-nav__link">
+ The auto-hinter
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-cff_driver.html" title="The CFF driver" class="md-nav__link">
- The CFF driver
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-cff_driver.html" class="md-nav__link">
+ The CFF driver
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-t1_cid_driver.html" title="The Type 1 and CID drivers" class="md-nav__link">
- The Type 1 and CID drivers
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-t1_cid_driver.html" class="md-nav__link">
+ The Type 1 and CID drivers
+ </a>
+ </li>
+
-
-
-
-
+
+
-
-
- <li class="md-nav__item md-nav__item--active">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="toc" type="checkbox" id="__toc">
+
+
+ <li class="md-nav__item md-nav__item--active">
-
-
- <label class="md-nav__link md-nav__link--active" for="__toc">
+ <input class="md-nav__toggle md-toggle" data-md-toggle="toc" type="checkbox" id="__toc">
+
+
+
+
+
+ <label class="md-nav__link md-nav__link--active" for="__toc">
+ The TrueType driver
+ <span class="md-nav__icon md-icon"></span>
+ </label>
+
+ <a href="ft2-tt_driver.html" class="md-nav__link md-nav__link--active">
The TrueType driver
- </label>
-
- <a href="ft2-tt_driver.html" title="The TrueType driver" class="md-nav__link md-nav__link--active">
- The TrueType driver
- </a>
-
+ </a>
-<nav class="md-nav md-nav--secondary">
+
+<nav class="md-nav md-nav--secondary" aria-label="Table of contents">
+
- <label class="md-nav__title" for="__toc">Table of contents</label>
- <ul class="md-nav__list" data-md-scrollfix>
+ <label class="md-nav__title" for="__toc">
+ <span class="md-nav__icon md-icon"></span>
+ Table of contents
+ </label>
+ <ul class="md-nav__list" data-md-component="toc" data-md-scrollfix>
<li class="md-nav__item">
<a href="#synopsis" class="md-nav__link">
@@ -634,392 +673,426 @@
</li>
-
-
-
-
</ul>
</nav>
-
- </li>
+
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-pcf_driver.html" title="The PCF driver" class="md-nav__link">
- The PCF driver
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-pcf_driver.html" class="md-nav__link">
+ The PCF driver
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-properties.html" title="Driver properties" class="md-nav__link">
- Driver properties
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-properties.html" class="md-nav__link">
+ Driver properties
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-parameter_tags.html" title="Parameter Tags" class="md-nav__link">
- Parameter Tags
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-parameter_tags.html" class="md-nav__link">
+ Parameter Tags
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-lcd_rendering.html" title="Subpixel Rendering" class="md-nav__link">
- Subpixel Rendering
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-lcd_rendering.html" class="md-nav__link">
+ Subpixel Rendering
+ </a>
+ </li>
+
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-7" type="checkbox" id="nav-7">
+
+
+
- <label class="md-nav__link" for="nav-7">
- Cache Sub-System
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-7">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_7" type="checkbox" id="__nav_7" >
+
+ <label class="md-nav__link" for="__nav_7">
Cache Sub-System
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
-
+ <nav class="md-nav" aria-label="Cache Sub-System" data-md-level="1">
+ <label class="md-nav__title" for="__nav_7">
+ <span class="md-nav__icon md-icon"></span>
+ Cache Sub-System
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
-
-
-
- <li class="md-nav__item">
- <a href="ft2-cache_subsystem.html" title="Cache Sub-System" class="md-nav__link">
- Cache Sub-System
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-cache_subsystem.html" class="md-nav__link">
+ Cache Sub-System
+ </a>
+ </li>
+
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-8" type="checkbox" id="nav-8">
+
+
+
- <label class="md-nav__link" for="nav-8">
- Support API
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-8">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_8" type="checkbox" id="__nav_8" >
+
+ <label class="md-nav__link" for="__nav_8">
Support API
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
-
-
+ <nav class="md-nav" aria-label="Support API" data-md-level="1">
+ <label class="md-nav__title" for="__nav_8">
+ <span class="md-nav__icon md-icon"></span>
+ Support API
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-computations.html" class="md-nav__link">
+ Computations
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-computations.html" title="Computations" class="md-nav__link">
- Computations
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-list_processing.html" title="List Processing" class="md-nav__link">
- List Processing
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-list_processing.html" class="md-nav__link">
+ List Processing
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-outline_processing.html" title="Outline Processing" class="md-nav__link">
- Outline Processing
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-outline_processing.html" class="md-nav__link">
+ Outline Processing
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-quick_advance.html" title="Quick retrieval of advance values" class="md-nav__link">
- Quick retrieval of advance values
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-quick_advance.html" class="md-nav__link">
+ Quick retrieval of advance values
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-bitmap_handling.html" title="Bitmap Handling" class="md-nav__link">
- Bitmap Handling
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-bitmap_handling.html" class="md-nav__link">
+ Bitmap Handling
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-raster.html" title="Scanline Converter" class="md-nav__link">
- Scanline Converter
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-raster.html" class="md-nav__link">
+ Scanline Converter
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-glyph_stroker.html" title="Glyph Stroker" class="md-nav__link">
- Glyph Stroker
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-glyph_stroker.html" class="md-nav__link">
+ Glyph Stroker
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-system_interface.html" class="md-nav__link">
+ System Interface
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-system_interface.html" title="System Interface" class="md-nav__link">
- System Interface
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-module_management.html" title="Module Management" class="md-nav__link">
- Module Management
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-module_management.html" class="md-nav__link">
+ Module Management
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-gzip.html" class="md-nav__link">
+ GZIP Streams
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-gzip.html" title="GZIP Streams" class="md-nav__link">
- GZIP Streams
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-lzw.html" title="LZW Streams" class="md-nav__link">
- LZW Streams
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-lzw.html" class="md-nav__link">
+ LZW Streams
+ </a>
+ </li>
+
-
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-bzip2.html" class="md-nav__link">
+ BZIP2 Streams
+ </a>
+ </li>
+
- <li class="md-nav__item">
- <a href="ft2-bzip2.html" title="BZIP2 Streams" class="md-nav__link">
- BZIP2 Streams
- </a>
- </li>
+
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-debugging_apis.html" class="md-nav__link">
+ External Debugging APIs
+ </a>
+ </li>
+
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-9" type="checkbox" id="nav-9">
+
+
+
- <label class="md-nav__link" for="nav-9">
- Error Codes
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-9">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_9" type="checkbox" id="__nav_9" >
+
+ <label class="md-nav__link" for="__nav_9">
Error Codes
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
-
-
+ <nav class="md-nav" aria-label="Error Codes" data-md-level="1">
+ <label class="md-nav__title" for="__nav_9">
+ <span class="md-nav__icon md-icon"></span>
+ Error Codes
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-error_enumerations.html" class="md-nav__link">
+ Error Enumerations
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-error_enumerations.html" title="Error Enumerations" class="md-nav__link">
- Error Enumerations
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-error_code_values.html" title="Error Code Values" class="md-nav__link">
- Error Code Values
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-error_code_values.html" class="md-nav__link">
+ Error Code Values
+ </a>
+ </li>
+
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-10" type="checkbox" id="nav-10">
+
+
+
- <label class="md-nav__link" for="nav-10">
- Miscellaneous
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-10">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_10" type="checkbox" id="__nav_10" >
+
+ <label class="md-nav__link" for="__nav_10">
Miscellaneous
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
+ <nav class="md-nav" aria-label="Miscellaneous" data-md-level="1">
+ <label class="md-nav__title" for="__nav_10">
+ <span class="md-nav__icon md-icon"></span>
+ Miscellaneous
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-gx_validation.html" title="TrueTypeGX/AAT Validation" class="md-nav__link">
- TrueTypeGX/AAT Validation
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-gx_validation.html" class="md-nav__link">
+ TrueTypeGX/AAT Validation
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-incremental.html" class="md-nav__link">
+ Incremental Loading
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-incremental.html" title="Incremental Loading" class="md-nav__link">
- Incremental Loading
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-truetype_engine.html" title="The TrueType Engine" class="md-nav__link">
- The TrueType Engine
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-truetype_engine.html" class="md-nav__link">
+ The TrueType Engine
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-ot_validation.html" title="OpenType Validation" class="md-nav__link">
- OpenType Validation
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-ot_validation.html" class="md-nav__link">
+ OpenType Validation
+ </a>
+ </li>
+
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
</ul>
@@ -1029,18 +1102,23 @@
</div>
- <div class="md-sidebar md-sidebar--secondary" data-md-component="toc">
+
+ <div class="md-sidebar md-sidebar--secondary" data-md-component="sidebar" data-md-type="toc" >
<div class="md-sidebar__scrollwrap">
<div class="md-sidebar__inner">
-<nav class="md-nav md-nav--secondary">
+<nav class="md-nav md-nav--secondary" aria-label="Table of contents">
+
- <label class="md-nav__title" for="__toc">Table of contents</label>
- <ul class="md-nav__list" data-md-scrollfix>
+ <label class="md-nav__title" for="__toc">
+ <span class="md-nav__icon md-icon"></span>
+ Table of contents
+ </label>
+ <ul class="md-nav__list" data-md-component="toc" data-md-scrollfix>
<li class="md-nav__item">
<a href="#synopsis" class="md-nav__link">
@@ -1049,10 +1127,6 @@
</li>
-
-
-
-
</ul>
</nav>
@@ -1061,7 +1135,7 @@
</div>
- <div class="md-content">
+ <div class="md-content" data-md-component="content">
<article class="md-content__inner md-typeset">
@@ -1089,9 +1163,6 @@
<p><em>Native ClearType Mode</em></p>
<p>(Not to be confused with &lsquo;natural widths&rsquo;.) This mode removes all the exceptions in the TrueType interpreter when running with ClearType. Any issues on widths would still apply, though.</p>
-
-
-
@@ -1101,59 +1172,60 @@
</article>
</div>
</div>
+
</main>
<footer class="md-footer">
- <div class="md-footer-nav">
- <nav class="md-footer-nav__inner md-grid">
+ <nav class="md-footer__inner md-grid" aria-label="Footer">
+
- <a href="ft2-t1_cid_driver.html" title="The Type 1 and CID drivers" class="md-flex md-footer-nav__link md-footer-nav__link--prev" rel="prev">
- <div class="md-flex__cell md-flex__cell--shrink">
- <i class="md-icon md-icon--arrow-back md-footer-nav__button"></i>
- </div>
- <div class="md-flex__cell md-flex__cell--stretch md-footer-nav__title">
- <span class="md-flex__ellipsis">
- <span class="md-footer-nav__direction">
- Previous
- </span>
- The Type 1 and CID drivers
+ <a href="ft2-t1_cid_driver.html" class="md-footer__link md-footer__link--prev" aria-label="Previous: The Type 1 and CID drivers" rel="prev">
+ <div class="md-footer__button md-icon">
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M20 11v2H8l5.5 5.5-1.42 1.42L4.16 12l7.92-7.92L13.5 5.5 8 11h12z"/></svg>
+ </div>
+ <div class="md-footer__title">
+ <div class="md-ellipsis">
+ <span class="md-footer__direction">
+ Previous
</span>
+ The Type 1 and CID drivers
</div>
- </a>
-
+ </div>
+ </a>
+
+
- <a href="ft2-pcf_driver.html" title="The PCF driver" class="md-flex md-footer-nav__link md-footer-nav__link--next" rel="next">
- <div class="md-flex__cell md-flex__cell--stretch md-footer-nav__title">
- <span class="md-flex__ellipsis">
- <span class="md-footer-nav__direction">
- Next
- </span>
- The PCF driver
+ <a href="ft2-pcf_driver.html" class="md-footer__link md-footer__link--next" aria-label="Next: The PCF driver" rel="next">
+ <div class="md-footer__title">
+ <div class="md-ellipsis">
+ <span class="md-footer__direction">
+ Next
</span>
+ The PCF driver
</div>
- <div class="md-flex__cell md-flex__cell--shrink">
- <i class="md-icon md-icon--arrow-forward md-footer-nav__button"></i>
- </div>
- </a>
-
- </nav>
- </div>
+ </div>
+ <div class="md-footer__button md-icon">
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M4 11v2h12l-5.5 5.5 1.42 1.42L19.84 12l-7.92-7.92L10.5 5.5 16 11H4z"/></svg>
+ </div>
+ </a>
+
+ </nav>
<div class="md-footer-meta md-typeset">
<div class="md-footer-meta__inner md-grid">
<div class="md-footer-copyright">
<div class="md-footer-copyright__highlight">
- Copyright 2020 <a href = "https://www.freetype.org/license.html">The FreeType Project</a>.
+ Copyright 2021 <a href = "https://www.freetype.org/license.html">The FreeType Project</a>.
</div>
- powered by
- <a href="https://www.mkdocs.org" target="_blank" rel="noopener">MkDocs</a>
- and
+ Made with
<a href="https://squidfunk.github.io/mkdocs-material/" target="_blank" rel="noopener">
- Material for MkDocs</a>
+ Material for MkDocs
+ </a>
+
</div>
</div>
@@ -1161,10 +1233,13 @@
</footer>
</div>
+ <div class="md-dialog" data-md-component="dialog">
+ <div class="md-dialog__inner md-typeset"></div>
+ </div>
+ <script id="__config" type="application/json">{"base": ".", "features": [], "translations": {"clipboard.copy": "Copy to clipboard", "clipboard.copied": "Copied to clipboard", "search.config.lang": "en", "search.config.pipeline": "trimmer, stopWordFilter", "search.config.separator": "[\\s\\-]+", "search.placeholder": "Search", "search.result.placeholder": "Type to start searching", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.term.missing": "Missing", "select.version.title": "Select version"}, "search": "assets/javascripts/workers/search.477d984a.min.js", "version": null}</script>
- <script src="assets/javascripts/application.c33a9706.js"></script>
-
- <script>app.initialize({version:"1.1",url:{base:"."}})</script>
+
+ <script src="assets/javascripts/bundle.82b56eb2.min.js"></script>
<script src="javascripts/extra.js"></script>
diff --git a/freetype/docs/reference/ft2-type1_tables.html b/freetype/docs/reference/ft2-type1_tables.html
index 675266f7..459ece99 100644
--- a/freetype/docs/reference/ft2-type1_tables.html
+++ b/freetype/docs/reference/ft2-type1_tables.html
@@ -1,145 +1,136 @@
-
-
-
<!doctype html>
<html lang="en" class="no-js">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
- <meta http-equiv="x-ua-compatible" content="ie=edge">
- <meta name="description" content="API Reference Documentation for FreeType-2.10.4">
+ <meta name="description" content="API Reference Documentation for FreeType-2.11.1">
<meta name="author" content="FreeType Contributors">
- <meta name="lang:clipboard.copy" content="Copy to clipboard">
-
- <meta name="lang:clipboard.copied" content="Copied to clipboard">
-
- <meta name="lang:search.language" content="en">
-
- <meta name="lang:search.pipeline.stopwords" content="True">
-
- <meta name="lang:search.pipeline.trimmer" content="True">
-
- <meta name="lang:search.result.none" content="No matching documents">
-
- <meta name="lang:search.result.one" content="1 matching document">
-
- <meta name="lang:search.result.other" content="# matching documents">
-
- <meta name="lang:search.tokenizer" content="[\s\-]+">
-
- <link rel="shortcut icon" href="images/favico.ico">
- <meta name="generator" content="mkdocs-1.1, mkdocs-material-4.6.3">
+ <link rel="icon" href="images/favico.ico">
+ <meta name="generator" content="mkdocs-1.2.1, mkdocs-material-7.1.9">
- <title>Type 1 Tables - FreeType-2.10.4 API Reference</title>
+ <title>Type 1 Tables - FreeType-2.11.1 API Reference</title>
- <link rel="stylesheet" href="assets/stylesheets/application.adb8469c.css">
-
- <link rel="stylesheet" href="assets/stylesheets/application-palette.a8b3c06d.css">
-
+ <link rel="stylesheet" href="assets/stylesheets/main.ca7ac06f.min.css">
+ <link rel="stylesheet" href="assets/stylesheets/palette.f1a3b89f.min.css">
+
+
+
+ <meta name="theme-color" content="#4cae4f">
- <meta name="theme-color" content="#4caf50">
- <script src="assets/javascripts/modernizr.86422ebf.js"></script>
-
- <link href="https://fonts.gstatic.com" rel="preconnect" crossorigin>
+
+ <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Noto+Serif:300,400,400i,700%7CRoboto+Mono&display=fallback">
- <style>body,input{font-family:"Noto Serif","Helvetica Neue",Helvetica,Arial,sans-serif}code,kbd,pre{font-family:"Roboto Mono","Courier New",Courier,monospace}</style>
+ <style>:root{--md-text-font-family:"Noto Serif";--md-code-font-family:"Roboto Mono"}</style>
- <link rel="stylesheet" href="assets/fonts/material-icons.css">
<link rel="stylesheet" href="stylesheets/extra.css">
+
+
</head>
+
+
+
+
- <body dir="ltr" data-md-color-primary="green" data-md-color-accent="green">
+ <body dir="ltr" data-md-color-scheme="" data-md-color-primary="green" data-md-color-accent="green">
- <svg class="md-svg">
- <defs>
-
-
- </defs>
- </svg>
- <input class="md-toggle" data-md-toggle="drawer" type="checkbox" id="__drawer" autocomplete="off">
- <input class="md-toggle" data-md-toggle="search" type="checkbox" id="__search" autocomplete="off">
- <label class="md-overlay" data-md-component="overlay" for="__drawer"></label>
- <a href="#type-1-tables" tabindex="0" class="md-skip">
- Skip to content
- </a>
+ <script>function __prefix(e){return new URL(".",location).pathname+"."+e}function __get(e,t=localStorage){return JSON.parse(t.getItem(__prefix(e)))}</script>
+ <input class="md-toggle" data-md-toggle="drawer" type="checkbox" id="__drawer" autocomplete="off">
+ <input class="md-toggle" data-md-toggle="search" type="checkbox" id="__search" autocomplete="off">
+ <label class="md-overlay" for="__drawer"></label>
+ <div data-md-component="skip">
+
+
+ <a href="#type-1-tables" class="md-skip">
+ Skip to content
+ </a>
+
+ </div>
+ <div data-md-component="announce">
+
+ </div>
<header class="md-header" data-md-component="header">
- <nav class="md-header-nav md-grid">
- <div class="md-flex">
- <div class="md-flex__cell md-flex__cell--shrink">
- <a href="." title="FreeType-2.10.4 API Reference" aria-label="FreeType-2.10.4 API Reference" class="md-header-nav__button md-logo">
-
- <img alt="logo" src="images/favico.ico" width="24" height="24">
-
- </a>
- </div>
- <div class="md-flex__cell md-flex__cell--shrink">
- <label class="md-icon md-icon--menu md-header-nav__button" for="__drawer"></label>
- </div>
- <div class="md-flex__cell md-flex__cell--stretch">
- <div class="md-flex__ellipsis md-header-nav__title" data-md-component="title">
-
- <span class="md-header-nav__topic">
- FreeType-2.10.4 API Reference
- </span>
- <span class="md-header-nav__topic">
-
- Type 1 Tables
-
- </span>
-
+ <nav class="md-header__inner md-grid" aria-label="Header">
+ <a href="index.html" title="FreeType-2.11.1 API Reference" class="md-header__button md-logo" aria-label="FreeType-2.11.1 API Reference" data-md-component="logo">
+
+ <img src="images/favico.ico" alt="logo">
+
+ </a>
+ <label class="md-header__button md-icon" for="__drawer">
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M3 6h18v2H3V6m0 5h18v2H3v-2m0 5h18v2H3v-2z"/></svg>
+ </label>
+ <div class="md-header__title" data-md-component="header-title">
+ <div class="md-header__ellipsis">
+ <div class="md-header__topic">
+ <span class="md-ellipsis">
+ FreeType-2.11.1 API Reference
+ </span>
+ </div>
+ <div class="md-header__topic" data-md-component="header-topic">
+ <span class="md-ellipsis">
+
+ Type 1 Tables
+
+ </span>
</div>
</div>
- <div class="md-flex__cell md-flex__cell--shrink">
-
- <label class="md-icon md-icon--search md-header-nav__button" for="__search"></label>
-
+ </div>
+
+
+
+ <label class="md-header__button md-icon" for="__search">
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M9.5 3A6.5 6.5 0 0 1 16 9.5c0 1.61-.59 3.09-1.56 4.23l.27.27h.79l5 5-1.5 1.5-5-5v-.79l-.27-.27A6.516 6.516 0 0 1 9.5 16 6.5 6.5 0 0 1 3 9.5 6.5 6.5 0 0 1 9.5 3m0 2C7 5 5 7 5 9.5S7 14 9.5 14 14 12 14 9.5 12 5 9.5 5z"/></svg>
+ </label>
+
<div class="md-search" data-md-component="search" role="dialog">
<label class="md-search__overlay" for="__search"></label>
<div class="md-search__inner" role="search">
<form class="md-search__form" name="search">
- <input type="text" class="md-search__input" aria-label="search" name="query" placeholder="Search" autocapitalize="off" autocorrect="off" autocomplete="off" spellcheck="false" data-md-component="query" data-md-state="active">
- <label class="md-icon md-search__icon" for="__search"></label>
- <button type="reset" class="md-icon md-search__icon" data-md-component="reset" tabindex="-1">
- &#xE5CD;
+ <input type="text" class="md-search__input" name="query" aria-label="Search" placeholder="Search" autocapitalize="off" autocorrect="off" autocomplete="off" spellcheck="false" data-md-component="search-query" data-md-state="active" required>
+ <label class="md-search__icon md-icon" for="__search">
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M9.5 3A6.5 6.5 0 0 1 16 9.5c0 1.61-.59 3.09-1.56 4.23l.27.27h.79l5 5-1.5 1.5-5-5v-.79l-.27-.27A6.516 6.516 0 0 1 9.5 16 6.5 6.5 0 0 1 3 9.5 6.5 6.5 0 0 1 9.5 3m0 2C7 5 5 7 5 9.5S7 14 9.5 14 14 12 14 9.5 12 5 9.5 5z"/></svg>
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M20 11v2H8l5.5 5.5-1.42 1.42L4.16 12l7.92-7.92L13.5 5.5 8 11h12z"/></svg>
+ </label>
+ <button type="reset" class="md-search__icon md-icon" aria-label="Clear" tabindex="-1">
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z"/></svg>
</button>
</form>
<div class="md-search__output">
<div class="md-search__scrollwrap" data-md-scrollfix>
- <div class="md-search-result" data-md-component="result">
+ <div class="md-search-result" data-md-component="search-result">
<div class="md-search-result__meta">
- Type to start searching
+ Initializing search
</div>
<ol class="md-search-result__list"></ol>
</div>
@@ -147,33 +138,35 @@
</div>
</div>
</div>
-
- </div>
-
- </div>
+
+
</nav>
</header>
- <div class="md-container">
+ <div class="md-container" data-md-component="container">
-
+
- <main class="md-main" role="main">
- <div class="md-main__inner md-grid" data-md-component="container">
+ <main class="md-main" data-md-component="main">
+ <div class="md-main__inner md-grid">
- <div class="md-sidebar md-sidebar--primary" data-md-component="navigation">
+
+ <div class="md-sidebar md-sidebar--primary" data-md-component="sidebar" data-md-type="navigation" >
<div class="md-sidebar__scrollwrap">
<div class="md-sidebar__inner">
- <nav class="md-nav md-nav--primary" data-md-level="0">
- <label class="md-nav__title md-nav__title--site" for="__drawer">
- <a href="." title="FreeType-2.10.4 API Reference" class="md-nav__button md-logo">
-
- <img alt="logo" src="images/favico.ico" width="48" height="48">
+
+
+
+<nav class="md-nav md-nav--primary" aria-label="Navigation" data-md-level="0">
+ <label class="md-nav__title" for="__drawer">
+ <a href="index.html" title="FreeType-2.11.1 API Reference" class="md-nav__button md-logo" aria-label="FreeType-2.11.1 API Reference" data-md-component="logo">
+ <img src="images/favico.ico" alt="logo">
+
</a>
- FreeType-2.10.4 API Reference
+ FreeType-2.11.1 API Reference
</label>
<ul class="md-nav__list" data-md-scrollfix>
@@ -182,216 +175,246 @@
-
- <li class="md-nav__item">
- <a href="index.html" title="TOC" class="md-nav__link">
- TOC
- </a>
- </li>
+
+
+
+ <li class="md-nav__item">
+ <a href="index.html" class="md-nav__link">
+ TOC
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-index.html" title="Index" class="md-nav__link">
- Index
- </a>
- </li>
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-index.html" class="md-nav__link">
+ Index
+ </a>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-3" type="checkbox" id="nav-3">
+
+
+
- <label class="md-nav__link" for="nav-3">
- General Remarks
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-3">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_3" type="checkbox" id="__nav_3" >
+
+ <label class="md-nav__link" for="__nav_3">
General Remarks
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
-
+ <nav class="md-nav" aria-label="General Remarks" data-md-level="1">
+ <label class="md-nav__title" for="__nav_3">
+ <span class="md-nav__icon md-icon"></span>
+ General Remarks
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
-
-
-
- <li class="md-nav__item">
- <a href="ft2-header_inclusion.html" title="FreeType's header inclusion scheme" class="md-nav__link">
- FreeType's header inclusion scheme
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-preamble.html" class="md-nav__link">
+ Preamble
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-header_inclusion.html" class="md-nav__link">
+ FreeType's header inclusion scheme
+ </a>
+ </li>
+
+
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-user_allocation.html" class="md-nav__link">
+ User allocation
+ </a>
+ </li>
+
- <li class="md-nav__item">
- <a href="ft2-user_allocation.html" title="User allocation" class="md-nav__link">
- User allocation
- </a>
- </li>
-
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-4" type="checkbox" id="nav-4">
+
+
+
- <label class="md-nav__link" for="nav-4">
- Core API
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-4">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_4" type="checkbox" id="__nav_4" >
+
+ <label class="md-nav__link" for="__nav_4">
Core API
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
-
+ <nav class="md-nav" aria-label="Core API" data-md-level="1">
+ <label class="md-nav__title" for="__nav_4">
+ <span class="md-nav__icon md-icon"></span>
+ Core API
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
-
-
-
- <li class="md-nav__item">
- <a href="ft2-version.html" title="FreeType Version" class="md-nav__link">
- FreeType Version
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-version.html" class="md-nav__link">
+ FreeType Version
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-basic_types.html" class="md-nav__link">
+ Basic Data Types
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-basic_types.html" title="Basic Data Types" class="md-nav__link">
- Basic Data Types
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-base_interface.html" title="Base Interface" class="md-nav__link">
- Base Interface
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-base_interface.html" class="md-nav__link">
+ Base Interface
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-glyph_variants.html" class="md-nav__link">
+ Unicode Variation Sequences
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-glyph_variants.html" title="Unicode Variation Sequences" class="md-nav__link">
- Unicode Variation Sequences
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-color_management.html" title="Glyph Color Management" class="md-nav__link">
- Glyph Color Management
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-color_management.html" class="md-nav__link">
+ Glyph Color Management
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-layer_management.html" title="Glyph Layer Management" class="md-nav__link">
- Glyph Layer Management
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-layer_management.html" class="md-nav__link">
+ Glyph Layer Management
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-glyph_management.html" title="Glyph Management" class="md-nav__link">
- Glyph Management
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-glyph_management.html" class="md-nav__link">
+ Glyph Management
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-mac_specific.html" class="md-nav__link">
+ Mac Specific Interface
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-mac_specific.html" title="Mac Specific Interface" class="md-nav__link">
- Mac Specific Interface
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-sizes_management.html" title="Size Management" class="md-nav__link">
- Size Management
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-sizes_management.html" class="md-nav__link">
+ Size Management
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-header_file_macros.html" title="Header File Macros" class="md-nav__link">
- Header File Macros
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-header_file_macros.html" class="md-nav__link">
+ Header File Macros
+ </a>
+ </li>
+
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
@@ -399,77 +422,87 @@
-
-
- <li class="md-nav__item md-nav__item--active md-nav__item--nested">
+
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-5" type="checkbox" id="nav-5" checked>
+
+
- <label class="md-nav__link" for="nav-5">
- Format-Specific API
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-5">
+ <li class="md-nav__item md-nav__item--active md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_5" type="checkbox" id="__nav_5" checked>
+
+ <label class="md-nav__link" for="__nav_5">
Format-Specific API
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
-
+ <nav class="md-nav" aria-label="Format-Specific API" data-md-level="1">
+ <label class="md-nav__title" for="__nav_5">
+ <span class="md-nav__icon md-icon"></span>
+ Format-Specific API
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
-
-
-
- <li class="md-nav__item">
- <a href="ft2-multiple_masters.html" title="Multiple Masters" class="md-nav__link">
- Multiple Masters
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-multiple_masters.html" class="md-nav__link">
+ Multiple Masters
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-truetype_tables.html" title="TrueType Tables" class="md-nav__link">
- TrueType Tables
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-truetype_tables.html" class="md-nav__link">
+ TrueType Tables
+ </a>
+ </li>
+
-
-
-
-
+
+
-
-
- <li class="md-nav__item md-nav__item--active">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="toc" type="checkbox" id="__toc">
+
+
+ <li class="md-nav__item md-nav__item--active">
-
-
- <label class="md-nav__link md-nav__link--active" for="__toc">
+ <input class="md-nav__toggle md-toggle" data-md-toggle="toc" type="checkbox" id="__toc">
+
+
+
+
+
+ <label class="md-nav__link md-nav__link--active" for="__toc">
+ Type 1 Tables
+ <span class="md-nav__icon md-icon"></span>
+ </label>
+
+ <a href="ft2-type1_tables.html" class="md-nav__link md-nav__link--active">
Type 1 Tables
- </label>
-
- <a href="ft2-type1_tables.html" title="Type 1 Tables" class="md-nav__link md-nav__link--active">
- Type 1 Tables
- </a>
-
+ </a>
-<nav class="md-nav md-nav--secondary">
+
+<nav class="md-nav md-nav--secondary" aria-label="Table of contents">
+
- <label class="md-nav__title" for="__toc">Table of contents</label>
- <ul class="md-nav__list" data-md-scrollfix>
+ <label class="md-nav__title" for="__toc">
+ <span class="md-nav__icon md-icon"></span>
+ Table of contents
+ </label>
+ <ul class="md-nav__list" data-md-component="toc" data-md-scrollfix>
<li class="md-nav__item">
<a href="#synopsis" class="md-nav__link">
@@ -611,548 +644,588 @@
</li>
-
-
-
-
</ul>
</nav>
-
- </li>
+
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-sfnt_names.html" title="SFNT Names" class="md-nav__link">
- SFNT Names
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-sfnt_names.html" class="md-nav__link">
+ SFNT Names
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-bdf_fonts.html" class="md-nav__link">
+ BDF and PCF Files
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-bdf_fonts.html" title="BDF and PCF Files" class="md-nav__link">
- BDF and PCF Files
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-cid_fonts.html" title="CID Fonts" class="md-nav__link">
- CID Fonts
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-cid_fonts.html" class="md-nav__link">
+ CID Fonts
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-pfr_fonts.html" class="md-nav__link">
+ PFR Fonts
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-pfr_fonts.html" title="PFR Fonts" class="md-nav__link">
- PFR Fonts
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-winfnt_fonts.html" title="Window FNT Files" class="md-nav__link">
- Window FNT Files
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-winfnt_fonts.html" class="md-nav__link">
+ Window FNT Files
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-font_formats.html" class="md-nav__link">
+ Font Formats
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-font_formats.html" title="Font Formats" class="md-nav__link">
- Font Formats
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-gasp_table.html" title="Gasp Table" class="md-nav__link">
- Gasp Table
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-gasp_table.html" class="md-nav__link">
+ Gasp Table
+ </a>
+ </li>
+
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-6" type="checkbox" id="nav-6">
+
+
+
- <label class="md-nav__link" for="nav-6">
- Controlling FreeType Modules
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-6">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_6" type="checkbox" id="__nav_6" >
+
+ <label class="md-nav__link" for="__nav_6">
Controlling FreeType Modules
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
-
+ <nav class="md-nav" aria-label="Controlling FreeType Modules" data-md-level="1">
+ <label class="md-nav__title" for="__nav_6">
+ <span class="md-nav__icon md-icon"></span>
+ Controlling FreeType Modules
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
-
-
-
- <li class="md-nav__item">
- <a href="ft2-auto_hinter.html" title="The auto-hinter" class="md-nav__link">
- The auto-hinter
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-auto_hinter.html" class="md-nav__link">
+ The auto-hinter
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-cff_driver.html" title="The CFF driver" class="md-nav__link">
- The CFF driver
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-cff_driver.html" class="md-nav__link">
+ The CFF driver
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-t1_cid_driver.html" title="The Type 1 and CID drivers" class="md-nav__link">
- The Type 1 and CID drivers
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-t1_cid_driver.html" class="md-nav__link">
+ The Type 1 and CID drivers
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-tt_driver.html" class="md-nav__link">
+ The TrueType driver
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-tt_driver.html" title="The TrueType driver" class="md-nav__link">
- The TrueType driver
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-pcf_driver.html" title="The PCF driver" class="md-nav__link">
- The PCF driver
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-pcf_driver.html" class="md-nav__link">
+ The PCF driver
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-properties.html" title="Driver properties" class="md-nav__link">
- Driver properties
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-properties.html" class="md-nav__link">
+ Driver properties
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-parameter_tags.html" title="Parameter Tags" class="md-nav__link">
- Parameter Tags
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-parameter_tags.html" class="md-nav__link">
+ Parameter Tags
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-lcd_rendering.html" class="md-nav__link">
+ Subpixel Rendering
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-lcd_rendering.html" title="Subpixel Rendering" class="md-nav__link">
- Subpixel Rendering
- </a>
- </li>
-
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-7" type="checkbox" id="nav-7">
+
+
+
- <label class="md-nav__link" for="nav-7">
- Cache Sub-System
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-7">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_7" type="checkbox" id="__nav_7" >
+
+ <label class="md-nav__link" for="__nav_7">
Cache Sub-System
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
-
-
+ <nav class="md-nav" aria-label="Cache Sub-System" data-md-level="1">
+ <label class="md-nav__title" for="__nav_7">
+ <span class="md-nav__icon md-icon"></span>
+ Cache Sub-System
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-cache_subsystem.html" class="md-nav__link">
+ Cache Sub-System
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-cache_subsystem.html" title="Cache Sub-System" class="md-nav__link">
- Cache Sub-System
- </a>
- </li>
-
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-8" type="checkbox" id="nav-8">
+
+
+
- <label class="md-nav__link" for="nav-8">
- Support API
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-8">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_8" type="checkbox" id="__nav_8" >
+
+ <label class="md-nav__link" for="__nav_8">
Support API
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
-
-
+ <nav class="md-nav" aria-label="Support API" data-md-level="1">
+ <label class="md-nav__title" for="__nav_8">
+ <span class="md-nav__icon md-icon"></span>
+ Support API
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-computations.html" class="md-nav__link">
+ Computations
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-computations.html" title="Computations" class="md-nav__link">
- Computations
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-list_processing.html" title="List Processing" class="md-nav__link">
- List Processing
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-list_processing.html" class="md-nav__link">
+ List Processing
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-outline_processing.html" title="Outline Processing" class="md-nav__link">
- Outline Processing
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-outline_processing.html" class="md-nav__link">
+ Outline Processing
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-quick_advance.html" title="Quick retrieval of advance values" class="md-nav__link">
- Quick retrieval of advance values
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-quick_advance.html" class="md-nav__link">
+ Quick retrieval of advance values
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-bitmap_handling.html" title="Bitmap Handling" class="md-nav__link">
- Bitmap Handling
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-bitmap_handling.html" class="md-nav__link">
+ Bitmap Handling
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-raster.html" title="Scanline Converter" class="md-nav__link">
- Scanline Converter
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-raster.html" class="md-nav__link">
+ Scanline Converter
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-glyph_stroker.html" title="Glyph Stroker" class="md-nav__link">
- Glyph Stroker
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-glyph_stroker.html" class="md-nav__link">
+ Glyph Stroker
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-system_interface.html" class="md-nav__link">
+ System Interface
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-system_interface.html" title="System Interface" class="md-nav__link">
- System Interface
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-module_management.html" title="Module Management" class="md-nav__link">
- Module Management
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-module_management.html" class="md-nav__link">
+ Module Management
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-gzip.html" title="GZIP Streams" class="md-nav__link">
- GZIP Streams
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-gzip.html" class="md-nav__link">
+ GZIP Streams
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-lzw.html" title="LZW Streams" class="md-nav__link">
- LZW Streams
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-lzw.html" class="md-nav__link">
+ LZW Streams
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-bzip2.html" class="md-nav__link">
+ BZIP2 Streams
+ </a>
+ </li>
+
+
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-debugging_apis.html" class="md-nav__link">
+ External Debugging APIs
+ </a>
+ </li>
+
- <li class="md-nav__item">
- <a href="ft2-bzip2.html" title="BZIP2 Streams" class="md-nav__link">
- BZIP2 Streams
- </a>
- </li>
-
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-9" type="checkbox" id="nav-9">
+
+
+
- <label class="md-nav__link" for="nav-9">
- Error Codes
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-9">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_9" type="checkbox" id="__nav_9" >
+
+ <label class="md-nav__link" for="__nav_9">
Error Codes
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
-
+ <nav class="md-nav" aria-label="Error Codes" data-md-level="1">
+ <label class="md-nav__title" for="__nav_9">
+ <span class="md-nav__icon md-icon"></span>
+ Error Codes
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
-
-
-
- <li class="md-nav__item">
- <a href="ft2-error_enumerations.html" title="Error Enumerations" class="md-nav__link">
- Error Enumerations
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-error_enumerations.html" class="md-nav__link">
+ Error Enumerations
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-error_code_values.html" title="Error Code Values" class="md-nav__link">
- Error Code Values
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-error_code_values.html" class="md-nav__link">
+ Error Code Values
+ </a>
+ </li>
+
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-10" type="checkbox" id="nav-10">
+
+
+
- <label class="md-nav__link" for="nav-10">
- Miscellaneous
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-10">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_10" type="checkbox" id="__nav_10" >
+
+ <label class="md-nav__link" for="__nav_10">
Miscellaneous
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
-
+ <nav class="md-nav" aria-label="Miscellaneous" data-md-level="1">
+ <label class="md-nav__title" for="__nav_10">
+ <span class="md-nav__icon md-icon"></span>
+ Miscellaneous
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
-
-
-
- <li class="md-nav__item">
- <a href="ft2-gx_validation.html" title="TrueTypeGX/AAT Validation" class="md-nav__link">
- TrueTypeGX/AAT Validation
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-gx_validation.html" class="md-nav__link">
+ TrueTypeGX/AAT Validation
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-incremental.html" title="Incremental Loading" class="md-nav__link">
- Incremental Loading
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-incremental.html" class="md-nav__link">
+ Incremental Loading
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-truetype_engine.html" title="The TrueType Engine" class="md-nav__link">
- The TrueType Engine
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-truetype_engine.html" class="md-nav__link">
+ The TrueType Engine
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-ot_validation.html" title="OpenType Validation" class="md-nav__link">
- OpenType Validation
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-ot_validation.html" class="md-nav__link">
+ OpenType Validation
+ </a>
+ </li>
+
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
</ul>
@@ -1162,18 +1235,23 @@
</div>
- <div class="md-sidebar md-sidebar--secondary" data-md-component="toc">
+
+ <div class="md-sidebar md-sidebar--secondary" data-md-component="sidebar" data-md-type="toc" >
<div class="md-sidebar__scrollwrap">
<div class="md-sidebar__inner">
-<nav class="md-nav md-nav--secondary">
+<nav class="md-nav md-nav--secondary" aria-label="Table of contents">
+
- <label class="md-nav__title" for="__toc">Table of contents</label>
- <ul class="md-nav__list" data-md-scrollfix>
+ <label class="md-nav__title" for="__toc">
+ <span class="md-nav__icon md-icon"></span>
+ Table of contents
+ </label>
+ <ul class="md-nav__list" data-md-component="toc" data-md-scrollfix>
<li class="md-nav__item">
<a href="#synopsis" class="md-nav__link">
@@ -1315,10 +1393,6 @@
</li>
-
-
-
-
</ul>
</nav>
@@ -1327,7 +1401,7 @@
</div>
- <div class="md-content">
+ <div class="md-content" data-md-component="content">
<article class="md-content__inner md-typeset">
@@ -1437,7 +1511,7 @@
<a href="ft2-basic_types.html#ft_uint">FT_UInt</a> num_subrs;
<a href="ft2-basic_types.html#ft_ulong">FT_ULong</a> subrmap_offset;
- <a href="ft2-basic_types.html#ft_int">FT_Int</a> sd_bytes;
+ <a href="ft2-basic_types.html#ft_uint">FT_UInt</a> sd_bytes;
} <b>CID_FaceDictRec</b>;
</code></pre></div>
@@ -1474,11 +1548,11 @@
<a href="ft2-basic_types.html#ft_ulong">FT_ULong</a> xuid[16];
<a href="ft2-basic_types.html#ft_ulong">FT_ULong</a> cidmap_offset;
- <a href="ft2-basic_types.html#ft_int">FT_Int</a> fd_bytes;
- <a href="ft2-basic_types.html#ft_int">FT_Int</a> gd_bytes;
+ <a href="ft2-basic_types.html#ft_uint">FT_UInt</a> fd_bytes;
+ <a href="ft2-basic_types.html#ft_uint">FT_UInt</a> gd_bytes;
<a href="ft2-basic_types.html#ft_ulong">FT_ULong</a> cid_count;
- <a href="ft2-basic_types.html#ft_int">FT_Int</a> num_dicts;
+ <a href="ft2-basic_types.html#ft_uint">FT_UInt</a> num_dicts;
<a href="ft2-type1_tables.html#cid_facedict">CID_FaceDict</a> font_dicts;
<a href="ft2-basic_types.html#ft_ulong">FT_ULong</a> data_offset;
@@ -1506,7 +1580,6 @@
<p>Return true if a given face provides reliable PostScript glyph names. This is similar to using the <code><a href="ft2-base_interface.html#ft_has_glyph_names">FT_HAS_GLYPH_NAMES</a></code> macro, except that certain fonts (mostly TrueType) contain incorrect glyph name tables.</p>
<p>When this function returns true, the caller is sure that the glyph names returned by <code><a href="ft2-base_interface.html#ft_get_glyph_name">FT_Get_Glyph_Name</a></code> are reliable.</p>
<h4>input</h4>
-
<table class="fields">
<tr><td class="val" id="face">face</td><td class="desc">
<p>face handle</p>
@@ -1527,7 +1600,6 @@
<p>Retrieve the <code><a href="ft2-type1_tables.html#ps_fontinforec">PS_FontInfoRec</a></code> structure corresponding to a given PostScript font.</p>
<h4>input</h4>
-
<table class="fields">
<tr><td class="val" id="face">face</td><td class="desc">
<p>PostScript face handle.</p>
@@ -1535,7 +1607,6 @@
</table>
<h4>output</h4>
-
<table class="fields">
<tr><td class="val" id="afont_info">afont_info</td><td class="desc">
<p>Output font info structure pointer.</p>
@@ -1560,7 +1631,6 @@
<p>Retrieve the <code><a href="ft2-type1_tables.html#ps_privaterec">PS_PrivateRec</a></code> structure corresponding to a given PostScript font.</p>
<h4>input</h4>
-
<table class="fields">
<tr><td class="val" id="face">face</td><td class="desc">
<p>PostScript face handle.</p>
@@ -1568,7 +1638,6 @@
</table>
<h4>output</h4>
-
<table class="fields">
<tr><td class="val" id="afont_private">afont_private</td><td class="desc">
<p>Output private dictionary structure pointer.</p>
@@ -1596,7 +1665,6 @@
<p>Retrieve the value for the supplied key from a PostScript font.</p>
<h4>input</h4>
-
<table class="fields">
<tr><td class="val" id="face">face</td><td class="desc">
<p>PostScript face handle.</p>
@@ -1616,7 +1684,6 @@
</table>
<h4>output</h4>
-
<table class="fields">
<tr><td class="val" id="value">value</td><td class="desc">
<p>The value matching the above key, if it exists.</p>
@@ -1688,7 +1755,6 @@
<p>A set of flags used to indicate which fields are present in a given blend dictionary (font info or private). Used to support Multiple Masters fonts.</p>
<h4>values</h4>
-
<table class="fields long">
<tr><td class="val" id="t1_blend_underline_position">T1_BLEND_UNDERLINE_POSITION</td><td class="desc">
@@ -1751,7 +1817,6 @@
<p>An enumeration describing the &lsquo;Encoding&rsquo; entry in a Type 1 dictionary.</p>
<h4>values</h4>
-
<table class="fields long">
<tr><td class="val" id="t1_encoding_type_none">T1_ENCODING_TYPE_NONE</td><td class="desc">
@@ -1838,7 +1903,6 @@
<p>An enumeration used in calls to <code><a href="ft2-type1_tables.html#ft_get_ps_font_value">FT_Get_PS_Font_Value</a></code> to identify the Type&nbsp;1 dictionary entry to retrieve.</p>
<h4>values</h4>
-
<table class="fields long">
<tr><td class="val" id="ps_dict_font_type">PS_DICT_FONT_TYPE</td><td class="desc">
@@ -2017,9 +2081,6 @@
<p>This type is equivalent to <code><a href="ft2-type1_tables.html#cid_faceinforec">CID_FaceInfoRec</a></code>. It is deprecated but kept to maintain source compatibility between various versions of FreeType.</p>
<hr>
-
-
-
@@ -2029,59 +2090,60 @@
</article>
</div>
</div>
+
</main>
<footer class="md-footer">
- <div class="md-footer-nav">
- <nav class="md-footer-nav__inner md-grid">
+ <nav class="md-footer__inner md-grid" aria-label="Footer">
+
- <a href="ft2-truetype_tables.html" title="TrueType Tables" class="md-flex md-footer-nav__link md-footer-nav__link--prev" rel="prev">
- <div class="md-flex__cell md-flex__cell--shrink">
- <i class="md-icon md-icon--arrow-back md-footer-nav__button"></i>
- </div>
- <div class="md-flex__cell md-flex__cell--stretch md-footer-nav__title">
- <span class="md-flex__ellipsis">
- <span class="md-footer-nav__direction">
- Previous
- </span>
- TrueType Tables
+ <a href="ft2-truetype_tables.html" class="md-footer__link md-footer__link--prev" aria-label="Previous: TrueType Tables" rel="prev">
+ <div class="md-footer__button md-icon">
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M20 11v2H8l5.5 5.5-1.42 1.42L4.16 12l7.92-7.92L13.5 5.5 8 11h12z"/></svg>
+ </div>
+ <div class="md-footer__title">
+ <div class="md-ellipsis">
+ <span class="md-footer__direction">
+ Previous
</span>
+ TrueType Tables
</div>
- </a>
-
+ </div>
+ </a>
+
+
- <a href="ft2-sfnt_names.html" title="SFNT Names" class="md-flex md-footer-nav__link md-footer-nav__link--next" rel="next">
- <div class="md-flex__cell md-flex__cell--stretch md-footer-nav__title">
- <span class="md-flex__ellipsis">
- <span class="md-footer-nav__direction">
- Next
- </span>
- SFNT Names
+ <a href="ft2-sfnt_names.html" class="md-footer__link md-footer__link--next" aria-label="Next: SFNT Names" rel="next">
+ <div class="md-footer__title">
+ <div class="md-ellipsis">
+ <span class="md-footer__direction">
+ Next
</span>
+ SFNT Names
</div>
- <div class="md-flex__cell md-flex__cell--shrink">
- <i class="md-icon md-icon--arrow-forward md-footer-nav__button"></i>
- </div>
- </a>
-
- </nav>
- </div>
+ </div>
+ <div class="md-footer__button md-icon">
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M4 11v2h12l-5.5 5.5 1.42 1.42L19.84 12l-7.92-7.92L10.5 5.5 16 11H4z"/></svg>
+ </div>
+ </a>
+
+ </nav>
<div class="md-footer-meta md-typeset">
<div class="md-footer-meta__inner md-grid">
<div class="md-footer-copyright">
<div class="md-footer-copyright__highlight">
- Copyright 2020 <a href = "https://www.freetype.org/license.html">The FreeType Project</a>.
+ Copyright 2021 <a href = "https://www.freetype.org/license.html">The FreeType Project</a>.
</div>
- powered by
- <a href="https://www.mkdocs.org" target="_blank" rel="noopener">MkDocs</a>
- and
+ Made with
<a href="https://squidfunk.github.io/mkdocs-material/" target="_blank" rel="noopener">
- Material for MkDocs</a>
+ Material for MkDocs
+ </a>
+
</div>
</div>
@@ -2089,10 +2151,13 @@
</footer>
</div>
+ <div class="md-dialog" data-md-component="dialog">
+ <div class="md-dialog__inner md-typeset"></div>
+ </div>
+ <script id="__config" type="application/json">{"base": ".", "features": [], "translations": {"clipboard.copy": "Copy to clipboard", "clipboard.copied": "Copied to clipboard", "search.config.lang": "en", "search.config.pipeline": "trimmer, stopWordFilter", "search.config.separator": "[\\s\\-]+", "search.placeholder": "Search", "search.result.placeholder": "Type to start searching", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.term.missing": "Missing", "select.version.title": "Select version"}, "search": "assets/javascripts/workers/search.477d984a.min.js", "version": null}</script>
- <script src="assets/javascripts/application.c33a9706.js"></script>
-
- <script>app.initialize({version:"1.1",url:{base:"."}})</script>
+
+ <script src="assets/javascripts/bundle.82b56eb2.min.js"></script>
<script src="javascripts/extra.js"></script>
diff --git a/freetype/docs/reference/ft2-user_allocation.html b/freetype/docs/reference/ft2-user_allocation.html
index 96427a4a..5c534f9d 100644
--- a/freetype/docs/reference/ft2-user_allocation.html
+++ b/freetype/docs/reference/ft2-user_allocation.html
@@ -1,145 +1,136 @@
-
-
-
<!doctype html>
<html lang="en" class="no-js">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
- <meta http-equiv="x-ua-compatible" content="ie=edge">
- <meta name="description" content="API Reference Documentation for FreeType-2.10.4">
+ <meta name="description" content="API Reference Documentation for FreeType-2.11.1">
<meta name="author" content="FreeType Contributors">
- <meta name="lang:clipboard.copy" content="Copy to clipboard">
-
- <meta name="lang:clipboard.copied" content="Copied to clipboard">
-
- <meta name="lang:search.language" content="en">
-
- <meta name="lang:search.pipeline.stopwords" content="True">
-
- <meta name="lang:search.pipeline.trimmer" content="True">
-
- <meta name="lang:search.result.none" content="No matching documents">
-
- <meta name="lang:search.result.one" content="1 matching document">
-
- <meta name="lang:search.result.other" content="# matching documents">
-
- <meta name="lang:search.tokenizer" content="[\s\-]+">
-
- <link rel="shortcut icon" href="images/favico.ico">
- <meta name="generator" content="mkdocs-1.1, mkdocs-material-4.6.3">
+ <link rel="icon" href="images/favico.ico">
+ <meta name="generator" content="mkdocs-1.2.1, mkdocs-material-7.1.9">
- <title>User allocation - FreeType-2.10.4 API Reference</title>
+ <title>User allocation - FreeType-2.11.1 API Reference</title>
- <link rel="stylesheet" href="assets/stylesheets/application.adb8469c.css">
-
- <link rel="stylesheet" href="assets/stylesheets/application-palette.a8b3c06d.css">
-
+ <link rel="stylesheet" href="assets/stylesheets/main.ca7ac06f.min.css">
+ <link rel="stylesheet" href="assets/stylesheets/palette.f1a3b89f.min.css">
+
+
+
+ <meta name="theme-color" content="#4cae4f">
- <meta name="theme-color" content="#4caf50">
- <script src="assets/javascripts/modernizr.86422ebf.js"></script>
-
- <link href="https://fonts.gstatic.com" rel="preconnect" crossorigin>
+
+ <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Noto+Serif:300,400,400i,700%7CRoboto+Mono&display=fallback">
- <style>body,input{font-family:"Noto Serif","Helvetica Neue",Helvetica,Arial,sans-serif}code,kbd,pre{font-family:"Roboto Mono","Courier New",Courier,monospace}</style>
+ <style>:root{--md-text-font-family:"Noto Serif";--md-code-font-family:"Roboto Mono"}</style>
- <link rel="stylesheet" href="assets/fonts/material-icons.css">
<link rel="stylesheet" href="stylesheets/extra.css">
+
+
</head>
+
+
+
+
- <body dir="ltr" data-md-color-primary="green" data-md-color-accent="green">
+ <body dir="ltr" data-md-color-scheme="" data-md-color-primary="green" data-md-color-accent="green">
- <svg class="md-svg">
- <defs>
-
-
- </defs>
- </svg>
- <input class="md-toggle" data-md-toggle="drawer" type="checkbox" id="__drawer" autocomplete="off">
- <input class="md-toggle" data-md-toggle="search" type="checkbox" id="__search" autocomplete="off">
- <label class="md-overlay" data-md-component="overlay" for="__drawer"></label>
- <a href="#user-allocation" tabindex="0" class="md-skip">
- Skip to content
- </a>
+ <script>function __prefix(e){return new URL(".",location).pathname+"."+e}function __get(e,t=localStorage){return JSON.parse(t.getItem(__prefix(e)))}</script>
+ <input class="md-toggle" data-md-toggle="drawer" type="checkbox" id="__drawer" autocomplete="off">
+ <input class="md-toggle" data-md-toggle="search" type="checkbox" id="__search" autocomplete="off">
+ <label class="md-overlay" for="__drawer"></label>
+ <div data-md-component="skip">
+
+
+ <a href="#user-allocation" class="md-skip">
+ Skip to content
+ </a>
+
+ </div>
+ <div data-md-component="announce">
+
+ </div>
<header class="md-header" data-md-component="header">
- <nav class="md-header-nav md-grid">
- <div class="md-flex">
- <div class="md-flex__cell md-flex__cell--shrink">
- <a href="." title="FreeType-2.10.4 API Reference" aria-label="FreeType-2.10.4 API Reference" class="md-header-nav__button md-logo">
-
- <img alt="logo" src="images/favico.ico" width="24" height="24">
-
- </a>
- </div>
- <div class="md-flex__cell md-flex__cell--shrink">
- <label class="md-icon md-icon--menu md-header-nav__button" for="__drawer"></label>
- </div>
- <div class="md-flex__cell md-flex__cell--stretch">
- <div class="md-flex__ellipsis md-header-nav__title" data-md-component="title">
-
- <span class="md-header-nav__topic">
- FreeType-2.10.4 API Reference
- </span>
- <span class="md-header-nav__topic">
-
- User allocation
-
- </span>
-
+ <nav class="md-header__inner md-grid" aria-label="Header">
+ <a href="index.html" title="FreeType-2.11.1 API Reference" class="md-header__button md-logo" aria-label="FreeType-2.11.1 API Reference" data-md-component="logo">
+
+ <img src="images/favico.ico" alt="logo">
+
+ </a>
+ <label class="md-header__button md-icon" for="__drawer">
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M3 6h18v2H3V6m0 5h18v2H3v-2m0 5h18v2H3v-2z"/></svg>
+ </label>
+ <div class="md-header__title" data-md-component="header-title">
+ <div class="md-header__ellipsis">
+ <div class="md-header__topic">
+ <span class="md-ellipsis">
+ FreeType-2.11.1 API Reference
+ </span>
+ </div>
+ <div class="md-header__topic" data-md-component="header-topic">
+ <span class="md-ellipsis">
+
+ User allocation
+
+ </span>
</div>
</div>
- <div class="md-flex__cell md-flex__cell--shrink">
-
- <label class="md-icon md-icon--search md-header-nav__button" for="__search"></label>
-
+ </div>
+
+
+
+ <label class="md-header__button md-icon" for="__search">
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M9.5 3A6.5 6.5 0 0 1 16 9.5c0 1.61-.59 3.09-1.56 4.23l.27.27h.79l5 5-1.5 1.5-5-5v-.79l-.27-.27A6.516 6.516 0 0 1 9.5 16 6.5 6.5 0 0 1 3 9.5 6.5 6.5 0 0 1 9.5 3m0 2C7 5 5 7 5 9.5S7 14 9.5 14 14 12 14 9.5 12 5 9.5 5z"/></svg>
+ </label>
+
<div class="md-search" data-md-component="search" role="dialog">
<label class="md-search__overlay" for="__search"></label>
<div class="md-search__inner" role="search">
<form class="md-search__form" name="search">
- <input type="text" class="md-search__input" aria-label="search" name="query" placeholder="Search" autocapitalize="off" autocorrect="off" autocomplete="off" spellcheck="false" data-md-component="query" data-md-state="active">
- <label class="md-icon md-search__icon" for="__search"></label>
- <button type="reset" class="md-icon md-search__icon" data-md-component="reset" tabindex="-1">
- &#xE5CD;
+ <input type="text" class="md-search__input" name="query" aria-label="Search" placeholder="Search" autocapitalize="off" autocorrect="off" autocomplete="off" spellcheck="false" data-md-component="search-query" data-md-state="active" required>
+ <label class="md-search__icon md-icon" for="__search">
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M9.5 3A6.5 6.5 0 0 1 16 9.5c0 1.61-.59 3.09-1.56 4.23l.27.27h.79l5 5-1.5 1.5-5-5v-.79l-.27-.27A6.516 6.516 0 0 1 9.5 16 6.5 6.5 0 0 1 3 9.5 6.5 6.5 0 0 1 9.5 3m0 2C7 5 5 7 5 9.5S7 14 9.5 14 14 12 14 9.5 12 5 9.5 5z"/></svg>
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M20 11v2H8l5.5 5.5-1.42 1.42L4.16 12l7.92-7.92L13.5 5.5 8 11h12z"/></svg>
+ </label>
+ <button type="reset" class="md-search__icon md-icon" aria-label="Clear" tabindex="-1">
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z"/></svg>
</button>
</form>
<div class="md-search__output">
<div class="md-search__scrollwrap" data-md-scrollfix>
- <div class="md-search-result" data-md-component="result">
+ <div class="md-search-result" data-md-component="search-result">
<div class="md-search-result__meta">
- Type to start searching
+ Initializing search
</div>
<ol class="md-search-result__list"></ol>
</div>
@@ -147,33 +138,35 @@
</div>
</div>
</div>
-
- </div>
-
- </div>
+
+
</nav>
</header>
- <div class="md-container">
+ <div class="md-container" data-md-component="container">
-
+
- <main class="md-main" role="main">
- <div class="md-main__inner md-grid" data-md-component="container">
+ <main class="md-main" data-md-component="main">
+ <div class="md-main__inner md-grid">
- <div class="md-sidebar md-sidebar--primary" data-md-component="navigation">
+
+ <div class="md-sidebar md-sidebar--primary" data-md-component="sidebar" data-md-type="navigation" >
<div class="md-sidebar__scrollwrap">
<div class="md-sidebar__inner">
- <nav class="md-nav md-nav--primary" data-md-level="0">
- <label class="md-nav__title md-nav__title--site" for="__drawer">
- <a href="." title="FreeType-2.10.4 API Reference" class="md-nav__button md-logo">
-
- <img alt="logo" src="images/favico.ico" width="48" height="48">
+
+
+
+<nav class="md-nav md-nav--primary" aria-label="Navigation" data-md-level="0">
+ <label class="md-nav__title" for="__drawer">
+ <a href="index.html" title="FreeType-2.11.1 API Reference" class="md-nav__button md-logo" aria-label="FreeType-2.11.1 API Reference" data-md-component="logo">
+ <img src="images/favico.ico" alt="logo">
+
</a>
- FreeType-2.10.4 API Reference
+ FreeType-2.11.1 API Reference
</label>
<ul class="md-nav__list" data-md-scrollfix>
@@ -182,24 +175,30 @@
-
- <li class="md-nav__item">
- <a href="index.html" title="TOC" class="md-nav__link">
- TOC
- </a>
- </li>
+
+
+
+ <li class="md-nav__item">
+ <a href="index.html" class="md-nav__link">
+ TOC
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-index.html" title="Index" class="md-nav__link">
- Index
- </a>
- </li>
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-index.html" class="md-nav__link">
+ Index
+ </a>
+ </li>
+
@@ -207,65 +206,87 @@
-
-
- <li class="md-nav__item md-nav__item--active md-nav__item--nested">
+
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-3" type="checkbox" id="nav-3" checked>
+
+
- <label class="md-nav__link" for="nav-3">
- General Remarks
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-3">
+ <li class="md-nav__item md-nav__item--active md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_3" type="checkbox" id="__nav_3" checked>
+
+ <label class="md-nav__link" for="__nav_3">
General Remarks
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
+ <nav class="md-nav" aria-label="General Remarks" data-md-level="1">
+ <label class="md-nav__title" for="__nav_3">
+ <span class="md-nav__icon md-icon"></span>
+ General Remarks
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-header_inclusion.html" title="FreeType's header inclusion scheme" class="md-nav__link">
- FreeType's header inclusion scheme
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-preamble.html" class="md-nav__link">
+ Preamble
+ </a>
+ </li>
+
-
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-header_inclusion.html" class="md-nav__link">
+ FreeType's header inclusion scheme
+ </a>
+ </li>
-
- <li class="md-nav__item md-nav__item--active">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="toc" type="checkbox" id="__toc">
+
+
+
+
+
+
+ <li class="md-nav__item md-nav__item--active">
-
-
- <label class="md-nav__link md-nav__link--active" for="__toc">
+ <input class="md-nav__toggle md-toggle" data-md-toggle="toc" type="checkbox" id="__toc">
+
+
+
+
+
+ <label class="md-nav__link md-nav__link--active" for="__toc">
+ User allocation
+ <span class="md-nav__icon md-icon"></span>
+ </label>
+
+ <a href="ft2-user_allocation.html" class="md-nav__link md-nav__link--active">
User allocation
- </label>
-
- <a href="ft2-user_allocation.html" title="User allocation" class="md-nav__link md-nav__link--active">
- User allocation
- </a>
-
+ </a>
-<nav class="md-nav md-nav--secondary">
+
+<nav class="md-nav md-nav--secondary" aria-label="Table of contents">
+
- <label class="md-nav__title" for="__toc">Table of contents</label>
- <ul class="md-nav__list" data-md-scrollfix>
+ <label class="md-nav__title" for="__toc">
+ <span class="md-nav__icon md-icon"></span>
+ Table of contents
+ </label>
+ <ul class="md-nav__list" data-md-component="toc" data-md-scrollfix>
<li class="md-nav__item">
<a href="#synopsis" class="md-nav__link">
@@ -274,752 +295,804 @@
</li>
-
-
-
-
</ul>
</nav>
-
- </li>
+
+ </li>
+
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-4" type="checkbox" id="nav-4">
+
+
+
- <label class="md-nav__link" for="nav-4">
- Core API
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-4">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_4" type="checkbox" id="__nav_4" >
+
+ <label class="md-nav__link" for="__nav_4">
Core API
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
+ <nav class="md-nav" aria-label="Core API" data-md-level="1">
+ <label class="md-nav__title" for="__nav_4">
+ <span class="md-nav__icon md-icon"></span>
+ Core API
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-version.html" title="FreeType Version" class="md-nav__link">
- FreeType Version
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-version.html" class="md-nav__link">
+ FreeType Version
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-basic_types.html" class="md-nav__link">
+ Basic Data Types
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-basic_types.html" title="Basic Data Types" class="md-nav__link">
- Basic Data Types
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-base_interface.html" title="Base Interface" class="md-nav__link">
- Base Interface
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-base_interface.html" class="md-nav__link">
+ Base Interface
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-glyph_variants.html" class="md-nav__link">
+ Unicode Variation Sequences
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-glyph_variants.html" title="Unicode Variation Sequences" class="md-nav__link">
- Unicode Variation Sequences
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-color_management.html" title="Glyph Color Management" class="md-nav__link">
- Glyph Color Management
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-color_management.html" class="md-nav__link">
+ Glyph Color Management
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-layer_management.html" title="Glyph Layer Management" class="md-nav__link">
- Glyph Layer Management
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-layer_management.html" class="md-nav__link">
+ Glyph Layer Management
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-glyph_management.html" title="Glyph Management" class="md-nav__link">
- Glyph Management
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-glyph_management.html" class="md-nav__link">
+ Glyph Management
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-mac_specific.html" class="md-nav__link">
+ Mac Specific Interface
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-mac_specific.html" title="Mac Specific Interface" class="md-nav__link">
- Mac Specific Interface
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-sizes_management.html" title="Size Management" class="md-nav__link">
- Size Management
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-sizes_management.html" class="md-nav__link">
+ Size Management
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-header_file_macros.html" title="Header File Macros" class="md-nav__link">
- Header File Macros
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-header_file_macros.html" class="md-nav__link">
+ Header File Macros
+ </a>
+ </li>
+
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-5" type="checkbox" id="nav-5">
+
+
+
- <label class="md-nav__link" for="nav-5">
- Format-Specific API
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-5">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_5" type="checkbox" id="__nav_5" >
+
+ <label class="md-nav__link" for="__nav_5">
Format-Specific API
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
-
+ <nav class="md-nav" aria-label="Format-Specific API" data-md-level="1">
+ <label class="md-nav__title" for="__nav_5">
+ <span class="md-nav__icon md-icon"></span>
+ Format-Specific API
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
-
-
-
- <li class="md-nav__item">
- <a href="ft2-multiple_masters.html" title="Multiple Masters" class="md-nav__link">
- Multiple Masters
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-multiple_masters.html" class="md-nav__link">
+ Multiple Masters
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-truetype_tables.html" title="TrueType Tables" class="md-nav__link">
- TrueType Tables
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-truetype_tables.html" class="md-nav__link">
+ TrueType Tables
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-type1_tables.html" title="Type 1 Tables" class="md-nav__link">
- Type 1 Tables
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-type1_tables.html" class="md-nav__link">
+ Type 1 Tables
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-sfnt_names.html" title="SFNT Names" class="md-nav__link">
- SFNT Names
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-sfnt_names.html" class="md-nav__link">
+ SFNT Names
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-bdf_fonts.html" title="BDF and PCF Files" class="md-nav__link">
- BDF and PCF Files
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-bdf_fonts.html" class="md-nav__link">
+ BDF and PCF Files
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-cid_fonts.html" class="md-nav__link">
+ CID Fonts
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-cid_fonts.html" title="CID Fonts" class="md-nav__link">
- CID Fonts
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-pfr_fonts.html" title="PFR Fonts" class="md-nav__link">
- PFR Fonts
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-pfr_fonts.html" class="md-nav__link">
+ PFR Fonts
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-winfnt_fonts.html" class="md-nav__link">
+ Window FNT Files
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-winfnt_fonts.html" title="Window FNT Files" class="md-nav__link">
- Window FNT Files
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-font_formats.html" title="Font Formats" class="md-nav__link">
- Font Formats
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-font_formats.html" class="md-nav__link">
+ Font Formats
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-gasp_table.html" title="Gasp Table" class="md-nav__link">
- Gasp Table
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-gasp_table.html" class="md-nav__link">
+ Gasp Table
+ </a>
+ </li>
+
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-6" type="checkbox" id="nav-6">
+
+
+
- <label class="md-nav__link" for="nav-6">
- Controlling FreeType Modules
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-6">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_6" type="checkbox" id="__nav_6" >
+
+ <label class="md-nav__link" for="__nav_6">
Controlling FreeType Modules
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
-
+ <nav class="md-nav" aria-label="Controlling FreeType Modules" data-md-level="1">
+ <label class="md-nav__title" for="__nav_6">
+ <span class="md-nav__icon md-icon"></span>
+ Controlling FreeType Modules
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
-
-
-
- <li class="md-nav__item">
- <a href="ft2-auto_hinter.html" title="The auto-hinter" class="md-nav__link">
- The auto-hinter
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-auto_hinter.html" class="md-nav__link">
+ The auto-hinter
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-cff_driver.html" title="The CFF driver" class="md-nav__link">
- The CFF driver
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-cff_driver.html" class="md-nav__link">
+ The CFF driver
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-t1_cid_driver.html" class="md-nav__link">
+ The Type 1 and CID drivers
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-t1_cid_driver.html" title="The Type 1 and CID drivers" class="md-nav__link">
- The Type 1 and CID drivers
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-tt_driver.html" title="The TrueType driver" class="md-nav__link">
- The TrueType driver
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-tt_driver.html" class="md-nav__link">
+ The TrueType driver
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-pcf_driver.html" title="The PCF driver" class="md-nav__link">
- The PCF driver
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-pcf_driver.html" class="md-nav__link">
+ The PCF driver
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-properties.html" title="Driver properties" class="md-nav__link">
- Driver properties
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-properties.html" class="md-nav__link">
+ Driver properties
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-parameter_tags.html" title="Parameter Tags" class="md-nav__link">
- Parameter Tags
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-parameter_tags.html" class="md-nav__link">
+ Parameter Tags
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-lcd_rendering.html" title="Subpixel Rendering" class="md-nav__link">
- Subpixel Rendering
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-lcd_rendering.html" class="md-nav__link">
+ Subpixel Rendering
+ </a>
+ </li>
+
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-7" type="checkbox" id="nav-7">
+
+
+
- <label class="md-nav__link" for="nav-7">
- Cache Sub-System
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-7">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_7" type="checkbox" id="__nav_7" >
+
+ <label class="md-nav__link" for="__nav_7">
Cache Sub-System
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
-
+ <nav class="md-nav" aria-label="Cache Sub-System" data-md-level="1">
+ <label class="md-nav__title" for="__nav_7">
+ <span class="md-nav__icon md-icon"></span>
+ Cache Sub-System
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
-
-
-
- <li class="md-nav__item">
- <a href="ft2-cache_subsystem.html" title="Cache Sub-System" class="md-nav__link">
- Cache Sub-System
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-cache_subsystem.html" class="md-nav__link">
+ Cache Sub-System
+ </a>
+ </li>
+
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-8" type="checkbox" id="nav-8">
+
+
+
- <label class="md-nav__link" for="nav-8">
- Support API
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-8">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_8" type="checkbox" id="__nav_8" >
+
+ <label class="md-nav__link" for="__nav_8">
Support API
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
-
-
+ <nav class="md-nav" aria-label="Support API" data-md-level="1">
+ <label class="md-nav__title" for="__nav_8">
+ <span class="md-nav__icon md-icon"></span>
+ Support API
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-computations.html" class="md-nav__link">
+ Computations
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-computations.html" title="Computations" class="md-nav__link">
- Computations
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-list_processing.html" title="List Processing" class="md-nav__link">
- List Processing
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-list_processing.html" class="md-nav__link">
+ List Processing
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-outline_processing.html" title="Outline Processing" class="md-nav__link">
- Outline Processing
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-outline_processing.html" class="md-nav__link">
+ Outline Processing
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-quick_advance.html" title="Quick retrieval of advance values" class="md-nav__link">
- Quick retrieval of advance values
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-quick_advance.html" class="md-nav__link">
+ Quick retrieval of advance values
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-bitmap_handling.html" title="Bitmap Handling" class="md-nav__link">
- Bitmap Handling
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-bitmap_handling.html" class="md-nav__link">
+ Bitmap Handling
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-raster.html" title="Scanline Converter" class="md-nav__link">
- Scanline Converter
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-raster.html" class="md-nav__link">
+ Scanline Converter
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-glyph_stroker.html" title="Glyph Stroker" class="md-nav__link">
- Glyph Stroker
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-glyph_stroker.html" class="md-nav__link">
+ Glyph Stroker
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-system_interface.html" class="md-nav__link">
+ System Interface
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-system_interface.html" title="System Interface" class="md-nav__link">
- System Interface
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-module_management.html" title="Module Management" class="md-nav__link">
- Module Management
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-module_management.html" class="md-nav__link">
+ Module Management
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-gzip.html" class="md-nav__link">
+ GZIP Streams
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-gzip.html" title="GZIP Streams" class="md-nav__link">
- GZIP Streams
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-lzw.html" title="LZW Streams" class="md-nav__link">
- LZW Streams
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-lzw.html" class="md-nav__link">
+ LZW Streams
+ </a>
+ </li>
+
-
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-bzip2.html" class="md-nav__link">
+ BZIP2 Streams
+ </a>
+ </li>
+
- <li class="md-nav__item">
- <a href="ft2-bzip2.html" title="BZIP2 Streams" class="md-nav__link">
- BZIP2 Streams
- </a>
- </li>
+
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-debugging_apis.html" class="md-nav__link">
+ External Debugging APIs
+ </a>
+ </li>
+
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-9" type="checkbox" id="nav-9">
+
+
+
- <label class="md-nav__link" for="nav-9">
- Error Codes
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-9">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_9" type="checkbox" id="__nav_9" >
+
+ <label class="md-nav__link" for="__nav_9">
Error Codes
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
-
-
+ <nav class="md-nav" aria-label="Error Codes" data-md-level="1">
+ <label class="md-nav__title" for="__nav_9">
+ <span class="md-nav__icon md-icon"></span>
+ Error Codes
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-error_enumerations.html" class="md-nav__link">
+ Error Enumerations
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-error_enumerations.html" title="Error Enumerations" class="md-nav__link">
- Error Enumerations
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-error_code_values.html" title="Error Code Values" class="md-nav__link">
- Error Code Values
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-error_code_values.html" class="md-nav__link">
+ Error Code Values
+ </a>
+ </li>
+
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-10" type="checkbox" id="nav-10">
+
+
+
- <label class="md-nav__link" for="nav-10">
- Miscellaneous
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-10">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_10" type="checkbox" id="__nav_10" >
+
+ <label class="md-nav__link" for="__nav_10">
Miscellaneous
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
+ <nav class="md-nav" aria-label="Miscellaneous" data-md-level="1">
+ <label class="md-nav__title" for="__nav_10">
+ <span class="md-nav__icon md-icon"></span>
+ Miscellaneous
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-gx_validation.html" title="TrueTypeGX/AAT Validation" class="md-nav__link">
- TrueTypeGX/AAT Validation
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-gx_validation.html" class="md-nav__link">
+ TrueTypeGX/AAT Validation
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-incremental.html" class="md-nav__link">
+ Incremental Loading
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-incremental.html" title="Incremental Loading" class="md-nav__link">
- Incremental Loading
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-truetype_engine.html" title="The TrueType Engine" class="md-nav__link">
- The TrueType Engine
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-truetype_engine.html" class="md-nav__link">
+ The TrueType Engine
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-ot_validation.html" title="OpenType Validation" class="md-nav__link">
- OpenType Validation
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-ot_validation.html" class="md-nav__link">
+ OpenType Validation
+ </a>
+ </li>
+
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
</ul>
@@ -1029,18 +1102,23 @@
</div>
- <div class="md-sidebar md-sidebar--secondary" data-md-component="toc">
+
+ <div class="md-sidebar md-sidebar--secondary" data-md-component="sidebar" data-md-type="toc" >
<div class="md-sidebar__scrollwrap">
<div class="md-sidebar__inner">
-<nav class="md-nav md-nav--secondary">
+<nav class="md-nav md-nav--secondary" aria-label="Table of contents">
+
- <label class="md-nav__title" for="__toc">Table of contents</label>
- <ul class="md-nav__list" data-md-scrollfix>
+ <label class="md-nav__title" for="__toc">
+ <span class="md-nav__icon md-icon"></span>
+ Table of contents
+ </label>
+ <ul class="md-nav__list" data-md-component="toc" data-md-scrollfix>
<li class="md-nav__item">
<a href="#synopsis" class="md-nav__link">
@@ -1049,10 +1127,6 @@
</li>
-
-
-
-
</ul>
</nav>
@@ -1061,7 +1135,7 @@
</div>
- <div class="md-content">
+ <div class="md-content" data-md-component="content">
<article class="md-content__inner md-typeset">
@@ -1072,9 +1146,6 @@
<h2 id="synopsis">Synopsis<a class="headerlink" href="#synopsis" title="Permanent link">&para;</a></h2>
<p>FreeType assumes that structures allocated by the user and passed as arguments are zeroed out except for the actual data. In other words, it is recommended to use <code>calloc</code> (or variants of it) instead of <code>malloc</code> for allocation.</p>
-
-
-
@@ -1084,59 +1155,60 @@
</article>
</div>
</div>
+
</main>
<footer class="md-footer">
- <div class="md-footer-nav">
- <nav class="md-footer-nav__inner md-grid">
+ <nav class="md-footer__inner md-grid" aria-label="Footer">
+
- <a href="ft2-header_inclusion.html" title="FreeType's header inclusion scheme" class="md-flex md-footer-nav__link md-footer-nav__link--prev" rel="prev">
- <div class="md-flex__cell md-flex__cell--shrink">
- <i class="md-icon md-icon--arrow-back md-footer-nav__button"></i>
- </div>
- <div class="md-flex__cell md-flex__cell--stretch md-footer-nav__title">
- <span class="md-flex__ellipsis">
- <span class="md-footer-nav__direction">
- Previous
- </span>
- FreeType's header inclusion scheme
+ <a href="ft2-header_inclusion.html" class="md-footer__link md-footer__link--prev" aria-label="Previous: FreeType&#39;s header inclusion scheme" rel="prev">
+ <div class="md-footer__button md-icon">
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M20 11v2H8l5.5 5.5-1.42 1.42L4.16 12l7.92-7.92L13.5 5.5 8 11h12z"/></svg>
+ </div>
+ <div class="md-footer__title">
+ <div class="md-ellipsis">
+ <span class="md-footer__direction">
+ Previous
</span>
+ FreeType's header inclusion scheme
</div>
- </a>
-
+ </div>
+ </a>
+
+
- <a href="ft2-version.html" title="FreeType Version" class="md-flex md-footer-nav__link md-footer-nav__link--next" rel="next">
- <div class="md-flex__cell md-flex__cell--stretch md-footer-nav__title">
- <span class="md-flex__ellipsis">
- <span class="md-footer-nav__direction">
- Next
- </span>
- FreeType Version
+ <a href="ft2-version.html" class="md-footer__link md-footer__link--next" aria-label="Next: FreeType Version" rel="next">
+ <div class="md-footer__title">
+ <div class="md-ellipsis">
+ <span class="md-footer__direction">
+ Next
</span>
+ FreeType Version
</div>
- <div class="md-flex__cell md-flex__cell--shrink">
- <i class="md-icon md-icon--arrow-forward md-footer-nav__button"></i>
- </div>
- </a>
-
- </nav>
- </div>
+ </div>
+ <div class="md-footer__button md-icon">
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M4 11v2h12l-5.5 5.5 1.42 1.42L19.84 12l-7.92-7.92L10.5 5.5 16 11H4z"/></svg>
+ </div>
+ </a>
+
+ </nav>
<div class="md-footer-meta md-typeset">
<div class="md-footer-meta__inner md-grid">
<div class="md-footer-copyright">
<div class="md-footer-copyright__highlight">
- Copyright 2020 <a href = "https://www.freetype.org/license.html">The FreeType Project</a>.
+ Copyright 2021 <a href = "https://www.freetype.org/license.html">The FreeType Project</a>.
</div>
- powered by
- <a href="https://www.mkdocs.org" target="_blank" rel="noopener">MkDocs</a>
- and
+ Made with
<a href="https://squidfunk.github.io/mkdocs-material/" target="_blank" rel="noopener">
- Material for MkDocs</a>
+ Material for MkDocs
+ </a>
+
</div>
</div>
@@ -1144,10 +1216,13 @@
</footer>
</div>
+ <div class="md-dialog" data-md-component="dialog">
+ <div class="md-dialog__inner md-typeset"></div>
+ </div>
+ <script id="__config" type="application/json">{"base": ".", "features": [], "translations": {"clipboard.copy": "Copy to clipboard", "clipboard.copied": "Copied to clipboard", "search.config.lang": "en", "search.config.pipeline": "trimmer, stopWordFilter", "search.config.separator": "[\\s\\-]+", "search.placeholder": "Search", "search.result.placeholder": "Type to start searching", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.term.missing": "Missing", "select.version.title": "Select version"}, "search": "assets/javascripts/workers/search.477d984a.min.js", "version": null}</script>
- <script src="assets/javascripts/application.c33a9706.js"></script>
-
- <script>app.initialize({version:"1.1",url:{base:"."}})</script>
+
+ <script src="assets/javascripts/bundle.82b56eb2.min.js"></script>
<script src="javascripts/extra.js"></script>
diff --git a/freetype/docs/reference/ft2-version.html b/freetype/docs/reference/ft2-version.html
index b0f3f5cd..5bd973c9 100644
--- a/freetype/docs/reference/ft2-version.html
+++ b/freetype/docs/reference/ft2-version.html
@@ -1,145 +1,136 @@
-
-
-
<!doctype html>
<html lang="en" class="no-js">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
- <meta http-equiv="x-ua-compatible" content="ie=edge">
- <meta name="description" content="API Reference Documentation for FreeType-2.10.4">
+ <meta name="description" content="API Reference Documentation for FreeType-2.11.1">
<meta name="author" content="FreeType Contributors">
- <meta name="lang:clipboard.copy" content="Copy to clipboard">
-
- <meta name="lang:clipboard.copied" content="Copied to clipboard">
-
- <meta name="lang:search.language" content="en">
-
- <meta name="lang:search.pipeline.stopwords" content="True">
-
- <meta name="lang:search.pipeline.trimmer" content="True">
-
- <meta name="lang:search.result.none" content="No matching documents">
-
- <meta name="lang:search.result.one" content="1 matching document">
-
- <meta name="lang:search.result.other" content="# matching documents">
-
- <meta name="lang:search.tokenizer" content="[\s\-]+">
-
- <link rel="shortcut icon" href="images/favico.ico">
- <meta name="generator" content="mkdocs-1.1, mkdocs-material-4.6.3">
+ <link rel="icon" href="images/favico.ico">
+ <meta name="generator" content="mkdocs-1.2.1, mkdocs-material-7.1.9">
- <title>FreeType Version - FreeType-2.10.4 API Reference</title>
+ <title>FreeType Version - FreeType-2.11.1 API Reference</title>
- <link rel="stylesheet" href="assets/stylesheets/application.adb8469c.css">
-
- <link rel="stylesheet" href="assets/stylesheets/application-palette.a8b3c06d.css">
-
+ <link rel="stylesheet" href="assets/stylesheets/main.ca7ac06f.min.css">
+ <link rel="stylesheet" href="assets/stylesheets/palette.f1a3b89f.min.css">
+
+
+
+ <meta name="theme-color" content="#4cae4f">
- <meta name="theme-color" content="#4caf50">
- <script src="assets/javascripts/modernizr.86422ebf.js"></script>
-
- <link href="https://fonts.gstatic.com" rel="preconnect" crossorigin>
+
+ <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Noto+Serif:300,400,400i,700%7CRoboto+Mono&display=fallback">
- <style>body,input{font-family:"Noto Serif","Helvetica Neue",Helvetica,Arial,sans-serif}code,kbd,pre{font-family:"Roboto Mono","Courier New",Courier,monospace}</style>
+ <style>:root{--md-text-font-family:"Noto Serif";--md-code-font-family:"Roboto Mono"}</style>
- <link rel="stylesheet" href="assets/fonts/material-icons.css">
<link rel="stylesheet" href="stylesheets/extra.css">
+
+
</head>
+
+
+
+
- <body dir="ltr" data-md-color-primary="green" data-md-color-accent="green">
+ <body dir="ltr" data-md-color-scheme="" data-md-color-primary="green" data-md-color-accent="green">
- <svg class="md-svg">
- <defs>
-
-
- </defs>
- </svg>
- <input class="md-toggle" data-md-toggle="drawer" type="checkbox" id="__drawer" autocomplete="off">
- <input class="md-toggle" data-md-toggle="search" type="checkbox" id="__search" autocomplete="off">
- <label class="md-overlay" data-md-component="overlay" for="__drawer"></label>
- <a href="#freetype-version" tabindex="0" class="md-skip">
- Skip to content
- </a>
+ <script>function __prefix(e){return new URL(".",location).pathname+"."+e}function __get(e,t=localStorage){return JSON.parse(t.getItem(__prefix(e)))}</script>
+ <input class="md-toggle" data-md-toggle="drawer" type="checkbox" id="__drawer" autocomplete="off">
+ <input class="md-toggle" data-md-toggle="search" type="checkbox" id="__search" autocomplete="off">
+ <label class="md-overlay" for="__drawer"></label>
+ <div data-md-component="skip">
+
+
+ <a href="#freetype-version" class="md-skip">
+ Skip to content
+ </a>
+
+ </div>
+ <div data-md-component="announce">
+
+ </div>
<header class="md-header" data-md-component="header">
- <nav class="md-header-nav md-grid">
- <div class="md-flex">
- <div class="md-flex__cell md-flex__cell--shrink">
- <a href="." title="FreeType-2.10.4 API Reference" aria-label="FreeType-2.10.4 API Reference" class="md-header-nav__button md-logo">
-
- <img alt="logo" src="images/favico.ico" width="24" height="24">
-
- </a>
- </div>
- <div class="md-flex__cell md-flex__cell--shrink">
- <label class="md-icon md-icon--menu md-header-nav__button" for="__drawer"></label>
- </div>
- <div class="md-flex__cell md-flex__cell--stretch">
- <div class="md-flex__ellipsis md-header-nav__title" data-md-component="title">
-
- <span class="md-header-nav__topic">
- FreeType-2.10.4 API Reference
- </span>
- <span class="md-header-nav__topic">
-
- FreeType Version
-
- </span>
-
+ <nav class="md-header__inner md-grid" aria-label="Header">
+ <a href="index.html" title="FreeType-2.11.1 API Reference" class="md-header__button md-logo" aria-label="FreeType-2.11.1 API Reference" data-md-component="logo">
+
+ <img src="images/favico.ico" alt="logo">
+
+ </a>
+ <label class="md-header__button md-icon" for="__drawer">
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M3 6h18v2H3V6m0 5h18v2H3v-2m0 5h18v2H3v-2z"/></svg>
+ </label>
+ <div class="md-header__title" data-md-component="header-title">
+ <div class="md-header__ellipsis">
+ <div class="md-header__topic">
+ <span class="md-ellipsis">
+ FreeType-2.11.1 API Reference
+ </span>
+ </div>
+ <div class="md-header__topic" data-md-component="header-topic">
+ <span class="md-ellipsis">
+
+ FreeType Version
+
+ </span>
</div>
</div>
- <div class="md-flex__cell md-flex__cell--shrink">
-
- <label class="md-icon md-icon--search md-header-nav__button" for="__search"></label>
-
+ </div>
+
+
+
+ <label class="md-header__button md-icon" for="__search">
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M9.5 3A6.5 6.5 0 0 1 16 9.5c0 1.61-.59 3.09-1.56 4.23l.27.27h.79l5 5-1.5 1.5-5-5v-.79l-.27-.27A6.516 6.516 0 0 1 9.5 16 6.5 6.5 0 0 1 3 9.5 6.5 6.5 0 0 1 9.5 3m0 2C7 5 5 7 5 9.5S7 14 9.5 14 14 12 14 9.5 12 5 9.5 5z"/></svg>
+ </label>
+
<div class="md-search" data-md-component="search" role="dialog">
<label class="md-search__overlay" for="__search"></label>
<div class="md-search__inner" role="search">
<form class="md-search__form" name="search">
- <input type="text" class="md-search__input" aria-label="search" name="query" placeholder="Search" autocapitalize="off" autocorrect="off" autocomplete="off" spellcheck="false" data-md-component="query" data-md-state="active">
- <label class="md-icon md-search__icon" for="__search"></label>
- <button type="reset" class="md-icon md-search__icon" data-md-component="reset" tabindex="-1">
- &#xE5CD;
+ <input type="text" class="md-search__input" name="query" aria-label="Search" placeholder="Search" autocapitalize="off" autocorrect="off" autocomplete="off" spellcheck="false" data-md-component="search-query" data-md-state="active" required>
+ <label class="md-search__icon md-icon" for="__search">
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M9.5 3A6.5 6.5 0 0 1 16 9.5c0 1.61-.59 3.09-1.56 4.23l.27.27h.79l5 5-1.5 1.5-5-5v-.79l-.27-.27A6.516 6.516 0 0 1 9.5 16 6.5 6.5 0 0 1 3 9.5 6.5 6.5 0 0 1 9.5 3m0 2C7 5 5 7 5 9.5S7 14 9.5 14 14 12 14 9.5 12 5 9.5 5z"/></svg>
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M20 11v2H8l5.5 5.5-1.42 1.42L4.16 12l7.92-7.92L13.5 5.5 8 11h12z"/></svg>
+ </label>
+ <button type="reset" class="md-search__icon md-icon" aria-label="Clear" tabindex="-1">
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z"/></svg>
</button>
</form>
<div class="md-search__output">
<div class="md-search__scrollwrap" data-md-scrollfix>
- <div class="md-search-result" data-md-component="result">
+ <div class="md-search-result" data-md-component="search-result">
<div class="md-search-result__meta">
- Type to start searching
+ Initializing search
</div>
<ol class="md-search-result__list"></ol>
</div>
@@ -147,33 +138,35 @@
</div>
</div>
</div>
-
- </div>
-
- </div>
+
+
</nav>
</header>
- <div class="md-container">
+ <div class="md-container" data-md-component="container">
-
+
- <main class="md-main" role="main">
- <div class="md-main__inner md-grid" data-md-component="container">
+ <main class="md-main" data-md-component="main">
+ <div class="md-main__inner md-grid">
- <div class="md-sidebar md-sidebar--primary" data-md-component="navigation">
+
+ <div class="md-sidebar md-sidebar--primary" data-md-component="sidebar" data-md-type="navigation" >
<div class="md-sidebar__scrollwrap">
<div class="md-sidebar__inner">
- <nav class="md-nav md-nav--primary" data-md-level="0">
- <label class="md-nav__title md-nav__title--site" for="__drawer">
- <a href="." title="FreeType-2.10.4 API Reference" class="md-nav__button md-logo">
-
- <img alt="logo" src="images/favico.ico" width="48" height="48">
+
+
+
+<nav class="md-nav md-nav--primary" aria-label="Navigation" data-md-level="0">
+ <label class="md-nav__title" for="__drawer">
+ <a href="index.html" title="FreeType-2.11.1 API Reference" class="md-nav__button md-logo" aria-label="FreeType-2.11.1 API Reference" data-md-component="logo">
+ <img src="images/favico.ico" alt="logo">
+
</a>
- FreeType-2.10.4 API Reference
+ FreeType-2.11.1 API Reference
</label>
<ul class="md-nav__list" data-md-scrollfix>
@@ -182,72 +175,96 @@
-
- <li class="md-nav__item">
- <a href="index.html" title="TOC" class="md-nav__link">
- TOC
- </a>
- </li>
+
+
+
+ <li class="md-nav__item">
+ <a href="index.html" class="md-nav__link">
+ TOC
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-index.html" title="Index" class="md-nav__link">
- Index
- </a>
- </li>
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-index.html" class="md-nav__link">
+ Index
+ </a>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-3" type="checkbox" id="nav-3">
+
+
+
- <label class="md-nav__link" for="nav-3">
- General Remarks
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-3">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_3" type="checkbox" id="__nav_3" >
+
+ <label class="md-nav__link" for="__nav_3">
General Remarks
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
+ <nav class="md-nav" aria-label="General Remarks" data-md-level="1">
+ <label class="md-nav__title" for="__nav_3">
+ <span class="md-nav__icon md-icon"></span>
+ General Remarks
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-header_inclusion.html" title="FreeType's header inclusion scheme" class="md-nav__link">
- FreeType's header inclusion scheme
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-preamble.html" class="md-nav__link">
+ Preamble
+ </a>
+ </li>
+
-
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-header_inclusion.html" class="md-nav__link">
+ FreeType's header inclusion scheme
+ </a>
+ </li>
+
- <li class="md-nav__item">
- <a href="ft2-user_allocation.html" title="User allocation" class="md-nav__link">
- User allocation
- </a>
- </li>
+
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-user_allocation.html" class="md-nav__link">
+ User allocation
+ </a>
+ </li>
+
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
@@ -255,53 +272,63 @@
-
-
- <li class="md-nav__item md-nav__item--active md-nav__item--nested">
+
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-4" type="checkbox" id="nav-4" checked>
+
+
- <label class="md-nav__link" for="nav-4">
- Core API
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-4">
+ <li class="md-nav__item md-nav__item--active md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_4" type="checkbox" id="__nav_4" checked>
+
+ <label class="md-nav__link" for="__nav_4">
Core API
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
+ <nav class="md-nav" aria-label="Core API" data-md-level="1">
+ <label class="md-nav__title" for="__nav_4">
+ <span class="md-nav__icon md-icon"></span>
+ Core API
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
-
-
-
+
+
-
-
- <li class="md-nav__item md-nav__item--active">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="toc" type="checkbox" id="__toc">
+
+
+ <li class="md-nav__item md-nav__item--active">
-
-
- <label class="md-nav__link md-nav__link--active" for="__toc">
+ <input class="md-nav__toggle md-toggle" data-md-toggle="toc" type="checkbox" id="__toc">
+
+
+
+
+
+ <label class="md-nav__link md-nav__link--active" for="__toc">
+ FreeType Version
+ <span class="md-nav__icon md-icon"></span>
+ </label>
+
+ <a href="ft2-version.html" class="md-nav__link md-nav__link--active">
FreeType Version
- </label>
-
- <a href="ft2-version.html" title="FreeType Version" class="md-nav__link md-nav__link--active">
- FreeType Version
- </a>
-
+ </a>
-<nav class="md-nav md-nav--secondary">
+
+<nav class="md-nav md-nav--secondary" aria-label="Table of contents">
+
- <label class="md-nav__title" for="__toc">Table of contents</label>
- <ul class="md-nav__list" data-md-scrollfix>
+ <label class="md-nav__title" for="__toc">
+ <span class="md-nav__icon md-icon"></span>
+ Table of contents
+ </label>
+ <ul class="md-nav__list" data-md-component="toc" data-md-scrollfix>
<li class="md-nav__item">
<a href="#synopsis" class="md-nav__link">
@@ -338,716 +365,762 @@
</li>
-
-
-
-
</ul>
</nav>
-
- </li>
+
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-basic_types.html" title="Basic Data Types" class="md-nav__link">
- Basic Data Types
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-basic_types.html" class="md-nav__link">
+ Basic Data Types
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-base_interface.html" title="Base Interface" class="md-nav__link">
- Base Interface
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-base_interface.html" class="md-nav__link">
+ Base Interface
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-glyph_variants.html" title="Unicode Variation Sequences" class="md-nav__link">
- Unicode Variation Sequences
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-glyph_variants.html" class="md-nav__link">
+ Unicode Variation Sequences
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-color_management.html" title="Glyph Color Management" class="md-nav__link">
- Glyph Color Management
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-color_management.html" class="md-nav__link">
+ Glyph Color Management
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-layer_management.html" class="md-nav__link">
+ Glyph Layer Management
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-layer_management.html" title="Glyph Layer Management" class="md-nav__link">
- Glyph Layer Management
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-glyph_management.html" title="Glyph Management" class="md-nav__link">
- Glyph Management
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-glyph_management.html" class="md-nav__link">
+ Glyph Management
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-mac_specific.html" title="Mac Specific Interface" class="md-nav__link">
- Mac Specific Interface
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-mac_specific.html" class="md-nav__link">
+ Mac Specific Interface
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-sizes_management.html" title="Size Management" class="md-nav__link">
- Size Management
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-sizes_management.html" class="md-nav__link">
+ Size Management
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-header_file_macros.html" class="md-nav__link">
+ Header File Macros
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-header_file_macros.html" title="Header File Macros" class="md-nav__link">
- Header File Macros
- </a>
- </li>
-
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-5" type="checkbox" id="nav-5">
+
+
+
- <label class="md-nav__link" for="nav-5">
- Format-Specific API
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-5">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_5" type="checkbox" id="__nav_5" >
+
+ <label class="md-nav__link" for="__nav_5">
Format-Specific API
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
-
-
+ <nav class="md-nav" aria-label="Format-Specific API" data-md-level="1">
+ <label class="md-nav__title" for="__nav_5">
+ <span class="md-nav__icon md-icon"></span>
+ Format-Specific API
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-multiple_masters.html" class="md-nav__link">
+ Multiple Masters
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-multiple_masters.html" title="Multiple Masters" class="md-nav__link">
- Multiple Masters
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-truetype_tables.html" title="TrueType Tables" class="md-nav__link">
- TrueType Tables
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-truetype_tables.html" class="md-nav__link">
+ TrueType Tables
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-type1_tables.html" class="md-nav__link">
+ Type 1 Tables
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-type1_tables.html" title="Type 1 Tables" class="md-nav__link">
- Type 1 Tables
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-sfnt_names.html" title="SFNT Names" class="md-nav__link">
- SFNT Names
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-sfnt_names.html" class="md-nav__link">
+ SFNT Names
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-bdf_fonts.html" class="md-nav__link">
+ BDF and PCF Files
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-bdf_fonts.html" title="BDF and PCF Files" class="md-nav__link">
- BDF and PCF Files
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-cid_fonts.html" title="CID Fonts" class="md-nav__link">
- CID Fonts
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-cid_fonts.html" class="md-nav__link">
+ CID Fonts
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-pfr_fonts.html" class="md-nav__link">
+ PFR Fonts
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-pfr_fonts.html" title="PFR Fonts" class="md-nav__link">
- PFR Fonts
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-winfnt_fonts.html" title="Window FNT Files" class="md-nav__link">
- Window FNT Files
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-winfnt_fonts.html" class="md-nav__link">
+ Window FNT Files
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-font_formats.html" class="md-nav__link">
+ Font Formats
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-font_formats.html" title="Font Formats" class="md-nav__link">
- Font Formats
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-gasp_table.html" title="Gasp Table" class="md-nav__link">
- Gasp Table
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-gasp_table.html" class="md-nav__link">
+ Gasp Table
+ </a>
+ </li>
+
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-6" type="checkbox" id="nav-6">
+
+
+
- <label class="md-nav__link" for="nav-6">
- Controlling FreeType Modules
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-6">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_6" type="checkbox" id="__nav_6" >
+
+ <label class="md-nav__link" for="__nav_6">
Controlling FreeType Modules
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
+ <nav class="md-nav" aria-label="Controlling FreeType Modules" data-md-level="1">
+ <label class="md-nav__title" for="__nav_6">
+ <span class="md-nav__icon md-icon"></span>
+ Controlling FreeType Modules
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-auto_hinter.html" title="The auto-hinter" class="md-nav__link">
- The auto-hinter
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-auto_hinter.html" class="md-nav__link">
+ The auto-hinter
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-cff_driver.html" class="md-nav__link">
+ The CFF driver
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-cff_driver.html" title="The CFF driver" class="md-nav__link">
- The CFF driver
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-t1_cid_driver.html" title="The Type 1 and CID drivers" class="md-nav__link">
- The Type 1 and CID drivers
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-t1_cid_driver.html" class="md-nav__link">
+ The Type 1 and CID drivers
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-tt_driver.html" class="md-nav__link">
+ The TrueType driver
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-tt_driver.html" title="The TrueType driver" class="md-nav__link">
- The TrueType driver
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-pcf_driver.html" title="The PCF driver" class="md-nav__link">
- The PCF driver
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-pcf_driver.html" class="md-nav__link">
+ The PCF driver
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-properties.html" class="md-nav__link">
+ Driver properties
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-properties.html" title="Driver properties" class="md-nav__link">
- Driver properties
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-parameter_tags.html" title="Parameter Tags" class="md-nav__link">
- Parameter Tags
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-parameter_tags.html" class="md-nav__link">
+ Parameter Tags
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-lcd_rendering.html" title="Subpixel Rendering" class="md-nav__link">
- Subpixel Rendering
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-lcd_rendering.html" class="md-nav__link">
+ Subpixel Rendering
+ </a>
+ </li>
+
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-7" type="checkbox" id="nav-7">
+
+
+
- <label class="md-nav__link" for="nav-7">
- Cache Sub-System
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-7">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_7" type="checkbox" id="__nav_7" >
+
+ <label class="md-nav__link" for="__nav_7">
Cache Sub-System
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
-
+ <nav class="md-nav" aria-label="Cache Sub-System" data-md-level="1">
+ <label class="md-nav__title" for="__nav_7">
+ <span class="md-nav__icon md-icon"></span>
+ Cache Sub-System
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
-
-
-
- <li class="md-nav__item">
- <a href="ft2-cache_subsystem.html" title="Cache Sub-System" class="md-nav__link">
- Cache Sub-System
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-cache_subsystem.html" class="md-nav__link">
+ Cache Sub-System
+ </a>
+ </li>
+
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-8" type="checkbox" id="nav-8">
+
+
+
- <label class="md-nav__link" for="nav-8">
- Support API
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-8">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_8" type="checkbox" id="__nav_8" >
+
+ <label class="md-nav__link" for="__nav_8">
Support API
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
-
+ <nav class="md-nav" aria-label="Support API" data-md-level="1">
+ <label class="md-nav__title" for="__nav_8">
+ <span class="md-nav__icon md-icon"></span>
+ Support API
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
-
-
-
- <li class="md-nav__item">
- <a href="ft2-computations.html" title="Computations" class="md-nav__link">
- Computations
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-computations.html" class="md-nav__link">
+ Computations
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-list_processing.html" title="List Processing" class="md-nav__link">
- List Processing
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-list_processing.html" class="md-nav__link">
+ List Processing
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-outline_processing.html" title="Outline Processing" class="md-nav__link">
- Outline Processing
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-outline_processing.html" class="md-nav__link">
+ Outline Processing
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-quick_advance.html" title="Quick retrieval of advance values" class="md-nav__link">
- Quick retrieval of advance values
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-quick_advance.html" class="md-nav__link">
+ Quick retrieval of advance values
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-bitmap_handling.html" title="Bitmap Handling" class="md-nav__link">
- Bitmap Handling
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-bitmap_handling.html" class="md-nav__link">
+ Bitmap Handling
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-raster.html" class="md-nav__link">
+ Scanline Converter
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-raster.html" title="Scanline Converter" class="md-nav__link">
- Scanline Converter
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-glyph_stroker.html" title="Glyph Stroker" class="md-nav__link">
- Glyph Stroker
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-glyph_stroker.html" class="md-nav__link">
+ Glyph Stroker
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-system_interface.html" class="md-nav__link">
+ System Interface
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-system_interface.html" title="System Interface" class="md-nav__link">
- System Interface
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-module_management.html" title="Module Management" class="md-nav__link">
- Module Management
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-module_management.html" class="md-nav__link">
+ Module Management
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-gzip.html" class="md-nav__link">
+ GZIP Streams
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-gzip.html" title="GZIP Streams" class="md-nav__link">
- GZIP Streams
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-lzw.html" title="LZW Streams" class="md-nav__link">
- LZW Streams
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-lzw.html" class="md-nav__link">
+ LZW Streams
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-bzip2.html" class="md-nav__link">
+ BZIP2 Streams
+ </a>
+ </li>
+
+
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-debugging_apis.html" class="md-nav__link">
+ External Debugging APIs
+ </a>
+ </li>
+
- <li class="md-nav__item">
- <a href="ft2-bzip2.html" title="BZIP2 Streams" class="md-nav__link">
- BZIP2 Streams
- </a>
- </li>
-
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-9" type="checkbox" id="nav-9">
+
+
+
- <label class="md-nav__link" for="nav-9">
- Error Codes
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-9">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_9" type="checkbox" id="__nav_9" >
+
+ <label class="md-nav__link" for="__nav_9">
Error Codes
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
-
+ <nav class="md-nav" aria-label="Error Codes" data-md-level="1">
+ <label class="md-nav__title" for="__nav_9">
+ <span class="md-nav__icon md-icon"></span>
+ Error Codes
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
-
-
-
- <li class="md-nav__item">
- <a href="ft2-error_enumerations.html" title="Error Enumerations" class="md-nav__link">
- Error Enumerations
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-error_enumerations.html" class="md-nav__link">
+ Error Enumerations
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-error_code_values.html" title="Error Code Values" class="md-nav__link">
- Error Code Values
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-error_code_values.html" class="md-nav__link">
+ Error Code Values
+ </a>
+ </li>
+
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-10" type="checkbox" id="nav-10">
+
+
+
- <label class="md-nav__link" for="nav-10">
- Miscellaneous
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-10">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_10" type="checkbox" id="__nav_10" >
+
+ <label class="md-nav__link" for="__nav_10">
Miscellaneous
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
-
+ <nav class="md-nav" aria-label="Miscellaneous" data-md-level="1">
+ <label class="md-nav__title" for="__nav_10">
+ <span class="md-nav__icon md-icon"></span>
+ Miscellaneous
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
-
-
-
- <li class="md-nav__item">
- <a href="ft2-gx_validation.html" title="TrueTypeGX/AAT Validation" class="md-nav__link">
- TrueTypeGX/AAT Validation
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-gx_validation.html" class="md-nav__link">
+ TrueTypeGX/AAT Validation
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-incremental.html" title="Incremental Loading" class="md-nav__link">
- Incremental Loading
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-incremental.html" class="md-nav__link">
+ Incremental Loading
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-truetype_engine.html" class="md-nav__link">
+ The TrueType Engine
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-truetype_engine.html" title="The TrueType Engine" class="md-nav__link">
- The TrueType Engine
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-ot_validation.html" title="OpenType Validation" class="md-nav__link">
- OpenType Validation
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-ot_validation.html" class="md-nav__link">
+ OpenType Validation
+ </a>
+ </li>
+
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
</ul>
@@ -1057,18 +1130,23 @@
</div>
- <div class="md-sidebar md-sidebar--secondary" data-md-component="toc">
+
+ <div class="md-sidebar md-sidebar--secondary" data-md-component="sidebar" data-md-type="toc" >
<div class="md-sidebar__scrollwrap">
<div class="md-sidebar__inner">
-<nav class="md-nav md-nav--secondary">
+<nav class="md-nav md-nav--secondary" aria-label="Table of contents">
+
- <label class="md-nav__title" for="__toc">Table of contents</label>
- <ul class="md-nav__list" data-md-scrollfix>
+ <label class="md-nav__title" for="__toc">
+ <span class="md-nav__icon md-icon"></span>
+ Table of contents
+ </label>
+ <ul class="md-nav__list" data-md-component="toc" data-md-scrollfix>
<li class="md-nav__item">
<a href="#synopsis" class="md-nav__link">
@@ -1105,10 +1183,6 @@
</li>
-
-
-
-
</ul>
</nav>
@@ -1117,7 +1191,7 @@
</div>
- <div class="md-content">
+ <div class="md-content" data-md-component="content">
<article class="md-content__inner md-typeset">
@@ -1138,7 +1212,6 @@
<p>Return the version of the FreeType library being used. This is useful when dynamically linking to the library, since one cannot use the macros <code><a href="ft2-version.html#freetype_xxx">FREETYPE_MAJOR</a></code>, <code><a href="ft2-version.html#freetype_xxx">FREETYPE_MINOR</a></code>, and <code><a href="ft2-version.html#freetype_xxx">FREETYPE_PATCH</a></code>.</p>
<h4>input</h4>
-
<table class="fields">
<tr><td class="val" id="library">library</td><td class="desc">
<p>A source library handle.</p>
@@ -1146,7 +1219,6 @@
</table>
<h4>output</h4>
-
<table class="fields">
<tr><td class="val" id="amajor">amajor</td><td class="desc">
<p>The major version number.</p>
@@ -1173,7 +1245,6 @@
<p>Deprecated, does nothing.</p>
<h4>input</h4>
-
<table class="fields">
<tr><td class="val" id="face">face</td><td class="desc">
<p>A face handle.</p>
@@ -1200,7 +1271,6 @@
<p>Deprecated, does nothing.</p>
<h4>input</h4>
-
<table class="fields">
<tr><td class="val" id="face">face</td><td class="desc">
<p>A face handle.</p>
@@ -1224,13 +1294,12 @@
<h2 id="freetype_xxx">FREETYPE_XXX<a class="headerlink" href="#freetype_xxx" title="Permanent link">&para;</a></h2>
<p>Defined in FT_FREETYPE_H (freetype/freetype.h).</p>
<div class = "codehilite"><pre><code>#<span class="keyword">define</span> <a href="ft2-version.html#freetype_major">FREETYPE_MAJOR</a> 2
-#<span class="keyword">define</span> <a href="ft2-version.html#freetype_minor">FREETYPE_MINOR</a> 10
-#<span class="keyword">define</span> <a href="ft2-version.html#freetype_patch">FREETYPE_PATCH</a> 4
+#<span class="keyword">define</span> <a href="ft2-version.html#freetype_minor">FREETYPE_MINOR</a> 11
+#<span class="keyword">define</span> <a href="ft2-version.html#freetype_patch">FREETYPE_PATCH</a> 1
</code></pre></div>
<p>These three macros identify the FreeType source code version. Use <code><a href="ft2-version.html#ft_library_version">FT_Library_Version</a></code> to access them at runtime.</p>
<h4>values</h4>
-
<table class="fields">
<tr><td class="val" id="freetype_major">FREETYPE_MAJOR</td><td class="desc">
<p>The major version number.</p>
@@ -1248,9 +1317,6 @@
<p>The version number of FreeType if built as a dynamic link library with the &lsquo;libtool&rsquo; package is <em>not</em> controlled by these three macros.</p>
<hr>
-
-
-
@@ -1260,59 +1326,60 @@
</article>
</div>
</div>
+
</main>
<footer class="md-footer">
- <div class="md-footer-nav">
- <nav class="md-footer-nav__inner md-grid">
+ <nav class="md-footer__inner md-grid" aria-label="Footer">
+
- <a href="ft2-user_allocation.html" title="User allocation" class="md-flex md-footer-nav__link md-footer-nav__link--prev" rel="prev">
- <div class="md-flex__cell md-flex__cell--shrink">
- <i class="md-icon md-icon--arrow-back md-footer-nav__button"></i>
- </div>
- <div class="md-flex__cell md-flex__cell--stretch md-footer-nav__title">
- <span class="md-flex__ellipsis">
- <span class="md-footer-nav__direction">
- Previous
- </span>
- User allocation
+ <a href="ft2-user_allocation.html" class="md-footer__link md-footer__link--prev" aria-label="Previous: User allocation" rel="prev">
+ <div class="md-footer__button md-icon">
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M20 11v2H8l5.5 5.5-1.42 1.42L4.16 12l7.92-7.92L13.5 5.5 8 11h12z"/></svg>
+ </div>
+ <div class="md-footer__title">
+ <div class="md-ellipsis">
+ <span class="md-footer__direction">
+ Previous
</span>
+ User allocation
</div>
- </a>
-
+ </div>
+ </a>
+
+
- <a href="ft2-basic_types.html" title="Basic Data Types" class="md-flex md-footer-nav__link md-footer-nav__link--next" rel="next">
- <div class="md-flex__cell md-flex__cell--stretch md-footer-nav__title">
- <span class="md-flex__ellipsis">
- <span class="md-footer-nav__direction">
- Next
- </span>
- Basic Data Types
+ <a href="ft2-basic_types.html" class="md-footer__link md-footer__link--next" aria-label="Next: Basic Data Types" rel="next">
+ <div class="md-footer__title">
+ <div class="md-ellipsis">
+ <span class="md-footer__direction">
+ Next
</span>
+ Basic Data Types
</div>
- <div class="md-flex__cell md-flex__cell--shrink">
- <i class="md-icon md-icon--arrow-forward md-footer-nav__button"></i>
- </div>
- </a>
-
- </nav>
- </div>
+ </div>
+ <div class="md-footer__button md-icon">
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M4 11v2h12l-5.5 5.5 1.42 1.42L19.84 12l-7.92-7.92L10.5 5.5 16 11H4z"/></svg>
+ </div>
+ </a>
+
+ </nav>
<div class="md-footer-meta md-typeset">
<div class="md-footer-meta__inner md-grid">
<div class="md-footer-copyright">
<div class="md-footer-copyright__highlight">
- Copyright 2020 <a href = "https://www.freetype.org/license.html">The FreeType Project</a>.
+ Copyright 2021 <a href = "https://www.freetype.org/license.html">The FreeType Project</a>.
</div>
- powered by
- <a href="https://www.mkdocs.org" target="_blank" rel="noopener">MkDocs</a>
- and
+ Made with
<a href="https://squidfunk.github.io/mkdocs-material/" target="_blank" rel="noopener">
- Material for MkDocs</a>
+ Material for MkDocs
+ </a>
+
</div>
</div>
@@ -1320,10 +1387,13 @@
</footer>
</div>
+ <div class="md-dialog" data-md-component="dialog">
+ <div class="md-dialog__inner md-typeset"></div>
+ </div>
+ <script id="__config" type="application/json">{"base": ".", "features": [], "translations": {"clipboard.copy": "Copy to clipboard", "clipboard.copied": "Copied to clipboard", "search.config.lang": "en", "search.config.pipeline": "trimmer, stopWordFilter", "search.config.separator": "[\\s\\-]+", "search.placeholder": "Search", "search.result.placeholder": "Type to start searching", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.term.missing": "Missing", "select.version.title": "Select version"}, "search": "assets/javascripts/workers/search.477d984a.min.js", "version": null}</script>
- <script src="assets/javascripts/application.c33a9706.js"></script>
-
- <script>app.initialize({version:"1.1",url:{base:"."}})</script>
+
+ <script src="assets/javascripts/bundle.82b56eb2.min.js"></script>
<script src="javascripts/extra.js"></script>
diff --git a/freetype/docs/reference/ft2-winfnt_fonts.html b/freetype/docs/reference/ft2-winfnt_fonts.html
index 31a060da..91b57f22 100644
--- a/freetype/docs/reference/ft2-winfnt_fonts.html
+++ b/freetype/docs/reference/ft2-winfnt_fonts.html
@@ -1,145 +1,136 @@
-
-
-
<!doctype html>
<html lang="en" class="no-js">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
- <meta http-equiv="x-ua-compatible" content="ie=edge">
- <meta name="description" content="API Reference Documentation for FreeType-2.10.4">
+ <meta name="description" content="API Reference Documentation for FreeType-2.11.1">
<meta name="author" content="FreeType Contributors">
- <meta name="lang:clipboard.copy" content="Copy to clipboard">
-
- <meta name="lang:clipboard.copied" content="Copied to clipboard">
-
- <meta name="lang:search.language" content="en">
-
- <meta name="lang:search.pipeline.stopwords" content="True">
-
- <meta name="lang:search.pipeline.trimmer" content="True">
-
- <meta name="lang:search.result.none" content="No matching documents">
-
- <meta name="lang:search.result.one" content="1 matching document">
-
- <meta name="lang:search.result.other" content="# matching documents">
-
- <meta name="lang:search.tokenizer" content="[\s\-]+">
-
- <link rel="shortcut icon" href="images/favico.ico">
- <meta name="generator" content="mkdocs-1.1, mkdocs-material-4.6.3">
+ <link rel="icon" href="images/favico.ico">
+ <meta name="generator" content="mkdocs-1.2.1, mkdocs-material-7.1.9">
- <title>Window FNT Files - FreeType-2.10.4 API Reference</title>
+ <title>Window FNT Files - FreeType-2.11.1 API Reference</title>
- <link rel="stylesheet" href="assets/stylesheets/application.adb8469c.css">
-
- <link rel="stylesheet" href="assets/stylesheets/application-palette.a8b3c06d.css">
-
+ <link rel="stylesheet" href="assets/stylesheets/main.ca7ac06f.min.css">
+ <link rel="stylesheet" href="assets/stylesheets/palette.f1a3b89f.min.css">
+
+
+
+ <meta name="theme-color" content="#4cae4f">
- <meta name="theme-color" content="#4caf50">
- <script src="assets/javascripts/modernizr.86422ebf.js"></script>
-
- <link href="https://fonts.gstatic.com" rel="preconnect" crossorigin>
+
+ <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Noto+Serif:300,400,400i,700%7CRoboto+Mono&display=fallback">
- <style>body,input{font-family:"Noto Serif","Helvetica Neue",Helvetica,Arial,sans-serif}code,kbd,pre{font-family:"Roboto Mono","Courier New",Courier,monospace}</style>
+ <style>:root{--md-text-font-family:"Noto Serif";--md-code-font-family:"Roboto Mono"}</style>
- <link rel="stylesheet" href="assets/fonts/material-icons.css">
<link rel="stylesheet" href="stylesheets/extra.css">
+
+
</head>
+
+
+
+
- <body dir="ltr" data-md-color-primary="green" data-md-color-accent="green">
+ <body dir="ltr" data-md-color-scheme="" data-md-color-primary="green" data-md-color-accent="green">
- <svg class="md-svg">
- <defs>
-
-
- </defs>
- </svg>
- <input class="md-toggle" data-md-toggle="drawer" type="checkbox" id="__drawer" autocomplete="off">
- <input class="md-toggle" data-md-toggle="search" type="checkbox" id="__search" autocomplete="off">
- <label class="md-overlay" data-md-component="overlay" for="__drawer"></label>
- <a href="#window-fnt-files" tabindex="0" class="md-skip">
- Skip to content
- </a>
+ <script>function __prefix(e){return new URL(".",location).pathname+"."+e}function __get(e,t=localStorage){return JSON.parse(t.getItem(__prefix(e)))}</script>
+ <input class="md-toggle" data-md-toggle="drawer" type="checkbox" id="__drawer" autocomplete="off">
+ <input class="md-toggle" data-md-toggle="search" type="checkbox" id="__search" autocomplete="off">
+ <label class="md-overlay" for="__drawer"></label>
+ <div data-md-component="skip">
+
+
+ <a href="#window-fnt-files" class="md-skip">
+ Skip to content
+ </a>
+
+ </div>
+ <div data-md-component="announce">
+
+ </div>
<header class="md-header" data-md-component="header">
- <nav class="md-header-nav md-grid">
- <div class="md-flex">
- <div class="md-flex__cell md-flex__cell--shrink">
- <a href="." title="FreeType-2.10.4 API Reference" aria-label="FreeType-2.10.4 API Reference" class="md-header-nav__button md-logo">
-
- <img alt="logo" src="images/favico.ico" width="24" height="24">
-
- </a>
- </div>
- <div class="md-flex__cell md-flex__cell--shrink">
- <label class="md-icon md-icon--menu md-header-nav__button" for="__drawer"></label>
- </div>
- <div class="md-flex__cell md-flex__cell--stretch">
- <div class="md-flex__ellipsis md-header-nav__title" data-md-component="title">
-
- <span class="md-header-nav__topic">
- FreeType-2.10.4 API Reference
- </span>
- <span class="md-header-nav__topic">
-
- Window FNT Files
-
- </span>
-
+ <nav class="md-header__inner md-grid" aria-label="Header">
+ <a href="index.html" title="FreeType-2.11.1 API Reference" class="md-header__button md-logo" aria-label="FreeType-2.11.1 API Reference" data-md-component="logo">
+
+ <img src="images/favico.ico" alt="logo">
+
+ </a>
+ <label class="md-header__button md-icon" for="__drawer">
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M3 6h18v2H3V6m0 5h18v2H3v-2m0 5h18v2H3v-2z"/></svg>
+ </label>
+ <div class="md-header__title" data-md-component="header-title">
+ <div class="md-header__ellipsis">
+ <div class="md-header__topic">
+ <span class="md-ellipsis">
+ FreeType-2.11.1 API Reference
+ </span>
+ </div>
+ <div class="md-header__topic" data-md-component="header-topic">
+ <span class="md-ellipsis">
+
+ Window FNT Files
+
+ </span>
</div>
</div>
- <div class="md-flex__cell md-flex__cell--shrink">
-
- <label class="md-icon md-icon--search md-header-nav__button" for="__search"></label>
-
+ </div>
+
+
+
+ <label class="md-header__button md-icon" for="__search">
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M9.5 3A6.5 6.5 0 0 1 16 9.5c0 1.61-.59 3.09-1.56 4.23l.27.27h.79l5 5-1.5 1.5-5-5v-.79l-.27-.27A6.516 6.516 0 0 1 9.5 16 6.5 6.5 0 0 1 3 9.5 6.5 6.5 0 0 1 9.5 3m0 2C7 5 5 7 5 9.5S7 14 9.5 14 14 12 14 9.5 12 5 9.5 5z"/></svg>
+ </label>
+
<div class="md-search" data-md-component="search" role="dialog">
<label class="md-search__overlay" for="__search"></label>
<div class="md-search__inner" role="search">
<form class="md-search__form" name="search">
- <input type="text" class="md-search__input" aria-label="search" name="query" placeholder="Search" autocapitalize="off" autocorrect="off" autocomplete="off" spellcheck="false" data-md-component="query" data-md-state="active">
- <label class="md-icon md-search__icon" for="__search"></label>
- <button type="reset" class="md-icon md-search__icon" data-md-component="reset" tabindex="-1">
- &#xE5CD;
+ <input type="text" class="md-search__input" name="query" aria-label="Search" placeholder="Search" autocapitalize="off" autocorrect="off" autocomplete="off" spellcheck="false" data-md-component="search-query" data-md-state="active" required>
+ <label class="md-search__icon md-icon" for="__search">
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M9.5 3A6.5 6.5 0 0 1 16 9.5c0 1.61-.59 3.09-1.56 4.23l.27.27h.79l5 5-1.5 1.5-5-5v-.79l-.27-.27A6.516 6.516 0 0 1 9.5 16 6.5 6.5 0 0 1 3 9.5 6.5 6.5 0 0 1 9.5 3m0 2C7 5 5 7 5 9.5S7 14 9.5 14 14 12 14 9.5 12 5 9.5 5z"/></svg>
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M20 11v2H8l5.5 5.5-1.42 1.42L4.16 12l7.92-7.92L13.5 5.5 8 11h12z"/></svg>
+ </label>
+ <button type="reset" class="md-search__icon md-icon" aria-label="Clear" tabindex="-1">
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z"/></svg>
</button>
</form>
<div class="md-search__output">
<div class="md-search__scrollwrap" data-md-scrollfix>
- <div class="md-search-result" data-md-component="result">
+ <div class="md-search-result" data-md-component="search-result">
<div class="md-search-result__meta">
- Type to start searching
+ Initializing search
</div>
<ol class="md-search-result__list"></ol>
</div>
@@ -147,33 +138,35 @@
</div>
</div>
</div>
-
- </div>
-
- </div>
+
+
</nav>
</header>
- <div class="md-container">
+ <div class="md-container" data-md-component="container">
-
+
- <main class="md-main" role="main">
- <div class="md-main__inner md-grid" data-md-component="container">
+ <main class="md-main" data-md-component="main">
+ <div class="md-main__inner md-grid">
- <div class="md-sidebar md-sidebar--primary" data-md-component="navigation">
+
+ <div class="md-sidebar md-sidebar--primary" data-md-component="sidebar" data-md-type="navigation" >
<div class="md-sidebar__scrollwrap">
<div class="md-sidebar__inner">
- <nav class="md-nav md-nav--primary" data-md-level="0">
- <label class="md-nav__title md-nav__title--site" for="__drawer">
- <a href="." title="FreeType-2.10.4 API Reference" class="md-nav__button md-logo">
-
- <img alt="logo" src="images/favico.ico" width="48" height="48">
+
+
+
+<nav class="md-nav md-nav--primary" aria-label="Navigation" data-md-level="0">
+ <label class="md-nav__title" for="__drawer">
+ <a href="index.html" title="FreeType-2.11.1 API Reference" class="md-nav__button md-logo" aria-label="FreeType-2.11.1 API Reference" data-md-component="logo">
+ <img src="images/favico.ico" alt="logo">
+
</a>
- FreeType-2.10.4 API Reference
+ FreeType-2.11.1 API Reference
</label>
<ul class="md-nav__list" data-md-scrollfix>
@@ -182,216 +175,246 @@
-
- <li class="md-nav__item">
- <a href="index.html" title="TOC" class="md-nav__link">
- TOC
- </a>
- </li>
+
+
+
+ <li class="md-nav__item">
+ <a href="index.html" class="md-nav__link">
+ TOC
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-index.html" title="Index" class="md-nav__link">
- Index
- </a>
- </li>
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-index.html" class="md-nav__link">
+ Index
+ </a>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-3" type="checkbox" id="nav-3">
+
+
+
- <label class="md-nav__link" for="nav-3">
- General Remarks
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-3">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_3" type="checkbox" id="__nav_3" >
+
+ <label class="md-nav__link" for="__nav_3">
General Remarks
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
+ <nav class="md-nav" aria-label="General Remarks" data-md-level="1">
+ <label class="md-nav__title" for="__nav_3">
+ <span class="md-nav__icon md-icon"></span>
+ General Remarks
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-header_inclusion.html" title="FreeType's header inclusion scheme" class="md-nav__link">
- FreeType's header inclusion scheme
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-preamble.html" class="md-nav__link">
+ Preamble
+ </a>
+ </li>
+
-
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-header_inclusion.html" class="md-nav__link">
+ FreeType's header inclusion scheme
+ </a>
+ </li>
+
- <li class="md-nav__item">
- <a href="ft2-user_allocation.html" title="User allocation" class="md-nav__link">
- User allocation
- </a>
- </li>
+
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-user_allocation.html" class="md-nav__link">
+ User allocation
+ </a>
+ </li>
+
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-4" type="checkbox" id="nav-4">
+
+
+
- <label class="md-nav__link" for="nav-4">
- Core API
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-4">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_4" type="checkbox" id="__nav_4" >
+
+ <label class="md-nav__link" for="__nav_4">
Core API
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
+ <nav class="md-nav" aria-label="Core API" data-md-level="1">
+ <label class="md-nav__title" for="__nav_4">
+ <span class="md-nav__icon md-icon"></span>
+ Core API
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-version.html" title="FreeType Version" class="md-nav__link">
- FreeType Version
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-version.html" class="md-nav__link">
+ FreeType Version
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-basic_types.html" title="Basic Data Types" class="md-nav__link">
- Basic Data Types
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-basic_types.html" class="md-nav__link">
+ Basic Data Types
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-base_interface.html" title="Base Interface" class="md-nav__link">
- Base Interface
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-base_interface.html" class="md-nav__link">
+ Base Interface
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-glyph_variants.html" title="Unicode Variation Sequences" class="md-nav__link">
- Unicode Variation Sequences
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-glyph_variants.html" class="md-nav__link">
+ Unicode Variation Sequences
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-color_management.html" class="md-nav__link">
+ Glyph Color Management
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-color_management.html" title="Glyph Color Management" class="md-nav__link">
- Glyph Color Management
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-layer_management.html" title="Glyph Layer Management" class="md-nav__link">
- Glyph Layer Management
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-layer_management.html" class="md-nav__link">
+ Glyph Layer Management
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-glyph_management.html" class="md-nav__link">
+ Glyph Management
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-glyph_management.html" title="Glyph Management" class="md-nav__link">
- Glyph Management
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-mac_specific.html" title="Mac Specific Interface" class="md-nav__link">
- Mac Specific Interface
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-mac_specific.html" class="md-nav__link">
+ Mac Specific Interface
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-sizes_management.html" class="md-nav__link">
+ Size Management
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-sizes_management.html" title="Size Management" class="md-nav__link">
- Size Management
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-header_file_macros.html" title="Header File Macros" class="md-nav__link">
- Header File Macros
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-header_file_macros.html" class="md-nav__link">
+ Header File Macros
+ </a>
+ </li>
+
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
@@ -399,137 +422,147 @@
-
-
- <li class="md-nav__item md-nav__item--active md-nav__item--nested">
+
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-5" type="checkbox" id="nav-5" checked>
+
+
- <label class="md-nav__link" for="nav-5">
- Format-Specific API
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-5">
+ <li class="md-nav__item md-nav__item--active md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_5" type="checkbox" id="__nav_5" checked>
+
+ <label class="md-nav__link" for="__nav_5">
Format-Specific API
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
-
+ <nav class="md-nav" aria-label="Format-Specific API" data-md-level="1">
+ <label class="md-nav__title" for="__nav_5">
+ <span class="md-nav__icon md-icon"></span>
+ Format-Specific API
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
-
-
-
- <li class="md-nav__item">
- <a href="ft2-multiple_masters.html" title="Multiple Masters" class="md-nav__link">
- Multiple Masters
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-multiple_masters.html" class="md-nav__link">
+ Multiple Masters
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-truetype_tables.html" class="md-nav__link">
+ TrueType Tables
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-truetype_tables.html" title="TrueType Tables" class="md-nav__link">
- TrueType Tables
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-type1_tables.html" title="Type 1 Tables" class="md-nav__link">
- Type 1 Tables
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-type1_tables.html" class="md-nav__link">
+ Type 1 Tables
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-sfnt_names.html" class="md-nav__link">
+ SFNT Names
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-sfnt_names.html" title="SFNT Names" class="md-nav__link">
- SFNT Names
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-bdf_fonts.html" title="BDF and PCF Files" class="md-nav__link">
- BDF and PCF Files
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-bdf_fonts.html" class="md-nav__link">
+ BDF and PCF Files
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-cid_fonts.html" class="md-nav__link">
+ CID Fonts
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-cid_fonts.html" title="CID Fonts" class="md-nav__link">
- CID Fonts
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-pfr_fonts.html" title="PFR Fonts" class="md-nav__link">
- PFR Fonts
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-pfr_fonts.html" class="md-nav__link">
+ PFR Fonts
+ </a>
+ </li>
+
-
-
-
-
+
+
-
-
- <li class="md-nav__item md-nav__item--active">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="toc" type="checkbox" id="__toc">
+
+
+ <li class="md-nav__item md-nav__item--active">
-
-
- <label class="md-nav__link md-nav__link--active" for="__toc">
+ <input class="md-nav__toggle md-toggle" data-md-toggle="toc" type="checkbox" id="__toc">
+
+
+
+
+
+ <label class="md-nav__link md-nav__link--active" for="__toc">
+ Window FNT Files
+ <span class="md-nav__icon md-icon"></span>
+ </label>
+
+ <a href="ft2-winfnt_fonts.html" class="md-nav__link md-nav__link--active">
Window FNT Files
- </label>
-
- <a href="ft2-winfnt_fonts.html" title="Window FNT Files" class="md-nav__link md-nav__link--active">
- Window FNT Files
- </a>
-
+ </a>
-<nav class="md-nav md-nav--secondary">
+
+<nav class="md-nav md-nav--secondary" aria-label="Table of contents">
+
- <label class="md-nav__title" for="__toc">Table of contents</label>
- <ul class="md-nav__list" data-md-scrollfix>
+ <label class="md-nav__title" for="__toc">
+ <span class="md-nav__icon md-icon"></span>
+ Table of contents
+ </label>
+ <ul class="md-nav__list" data-md-component="toc" data-md-scrollfix>
<li class="md-nav__item">
<a href="#synopsis" class="md-nav__link">
@@ -566,488 +599,528 @@
</li>
-
-
-
-
</ul>
</nav>
-
- </li>
+
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-font_formats.html" title="Font Formats" class="md-nav__link">
- Font Formats
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-font_formats.html" class="md-nav__link">
+ Font Formats
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-gasp_table.html" class="md-nav__link">
+ Gasp Table
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-gasp_table.html" title="Gasp Table" class="md-nav__link">
- Gasp Table
- </a>
- </li>
-
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-6" type="checkbox" id="nav-6">
+
+
+
- <label class="md-nav__link" for="nav-6">
- Controlling FreeType Modules
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-6">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_6" type="checkbox" id="__nav_6" >
+
+ <label class="md-nav__link" for="__nav_6">
Controlling FreeType Modules
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
-
-
+ <nav class="md-nav" aria-label="Controlling FreeType Modules" data-md-level="1">
+ <label class="md-nav__title" for="__nav_6">
+ <span class="md-nav__icon md-icon"></span>
+ Controlling FreeType Modules
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-auto_hinter.html" class="md-nav__link">
+ The auto-hinter
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-auto_hinter.html" title="The auto-hinter" class="md-nav__link">
- The auto-hinter
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-cff_driver.html" title="The CFF driver" class="md-nav__link">
- The CFF driver
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-cff_driver.html" class="md-nav__link">
+ The CFF driver
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-t1_cid_driver.html" title="The Type 1 and CID drivers" class="md-nav__link">
- The Type 1 and CID drivers
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-t1_cid_driver.html" class="md-nav__link">
+ The Type 1 and CID drivers
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-tt_driver.html" title="The TrueType driver" class="md-nav__link">
- The TrueType driver
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-tt_driver.html" class="md-nav__link">
+ The TrueType driver
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-pcf_driver.html" class="md-nav__link">
+ The PCF driver
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-pcf_driver.html" title="The PCF driver" class="md-nav__link">
- The PCF driver
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-properties.html" title="Driver properties" class="md-nav__link">
- Driver properties
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-properties.html" class="md-nav__link">
+ Driver properties
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-parameter_tags.html" class="md-nav__link">
+ Parameter Tags
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-parameter_tags.html" title="Parameter Tags" class="md-nav__link">
- Parameter Tags
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-lcd_rendering.html" title="Subpixel Rendering" class="md-nav__link">
- Subpixel Rendering
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-lcd_rendering.html" class="md-nav__link">
+ Subpixel Rendering
+ </a>
+ </li>
+
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-7" type="checkbox" id="nav-7">
+
+
+
- <label class="md-nav__link" for="nav-7">
- Cache Sub-System
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-7">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_7" type="checkbox" id="__nav_7" >
+
+ <label class="md-nav__link" for="__nav_7">
Cache Sub-System
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
+ <nav class="md-nav" aria-label="Cache Sub-System" data-md-level="1">
+ <label class="md-nav__title" for="__nav_7">
+ <span class="md-nav__icon md-icon"></span>
+ Cache Sub-System
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-cache_subsystem.html" title="Cache Sub-System" class="md-nav__link">
- Cache Sub-System
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-cache_subsystem.html" class="md-nav__link">
+ Cache Sub-System
+ </a>
+ </li>
+
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-8" type="checkbox" id="nav-8">
+
+
+
- <label class="md-nav__link" for="nav-8">
- Support API
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-8">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_8" type="checkbox" id="__nav_8" >
+
+ <label class="md-nav__link" for="__nav_8">
Support API
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
+ <nav class="md-nav" aria-label="Support API" data-md-level="1">
+ <label class="md-nav__title" for="__nav_8">
+ <span class="md-nav__icon md-icon"></span>
+ Support API
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-computations.html" title="Computations" class="md-nav__link">
- Computations
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-computations.html" class="md-nav__link">
+ Computations
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-list_processing.html" class="md-nav__link">
+ List Processing
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-list_processing.html" title="List Processing" class="md-nav__link">
- List Processing
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-outline_processing.html" title="Outline Processing" class="md-nav__link">
- Outline Processing
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-outline_processing.html" class="md-nav__link">
+ Outline Processing
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-quick_advance.html" class="md-nav__link">
+ Quick retrieval of advance values
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-quick_advance.html" title="Quick retrieval of advance values" class="md-nav__link">
- Quick retrieval of advance values
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-bitmap_handling.html" title="Bitmap Handling" class="md-nav__link">
- Bitmap Handling
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-bitmap_handling.html" class="md-nav__link">
+ Bitmap Handling
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-raster.html" title="Scanline Converter" class="md-nav__link">
- Scanline Converter
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-raster.html" class="md-nav__link">
+ Scanline Converter
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-glyph_stroker.html" class="md-nav__link">
+ Glyph Stroker
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-glyph_stroker.html" title="Glyph Stroker" class="md-nav__link">
- Glyph Stroker
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-system_interface.html" title="System Interface" class="md-nav__link">
- System Interface
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-system_interface.html" class="md-nav__link">
+ System Interface
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-module_management.html" title="Module Management" class="md-nav__link">
- Module Management
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-module_management.html" class="md-nav__link">
+ Module Management
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-gzip.html" title="GZIP Streams" class="md-nav__link">
- GZIP Streams
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-gzip.html" class="md-nav__link">
+ GZIP Streams
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-lzw.html" title="LZW Streams" class="md-nav__link">
- LZW Streams
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-lzw.html" class="md-nav__link">
+ LZW Streams
+ </a>
+ </li>
+
-
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-bzip2.html" class="md-nav__link">
+ BZIP2 Streams
+ </a>
+ </li>
+
- <li class="md-nav__item">
- <a href="ft2-bzip2.html" title="BZIP2 Streams" class="md-nav__link">
- BZIP2 Streams
- </a>
- </li>
+
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-debugging_apis.html" class="md-nav__link">
+ External Debugging APIs
+ </a>
+ </li>
+
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-9" type="checkbox" id="nav-9">
+
+
+
- <label class="md-nav__link" for="nav-9">
- Error Codes
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-9">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_9" type="checkbox" id="__nav_9" >
+
+ <label class="md-nav__link" for="__nav_9">
Error Codes
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
-
-
+ <nav class="md-nav" aria-label="Error Codes" data-md-level="1">
+ <label class="md-nav__title" for="__nav_9">
+ <span class="md-nav__icon md-icon"></span>
+ Error Codes
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-error_enumerations.html" class="md-nav__link">
+ Error Enumerations
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-error_enumerations.html" title="Error Enumerations" class="md-nav__link">
- Error Enumerations
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-error_code_values.html" title="Error Code Values" class="md-nav__link">
- Error Code Values
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-error_code_values.html" class="md-nav__link">
+ Error Code Values
+ </a>
+ </li>
+
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-10" type="checkbox" id="nav-10">
+
+
+
- <label class="md-nav__link" for="nav-10">
- Miscellaneous
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-10">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_10" type="checkbox" id="__nav_10" >
+
+ <label class="md-nav__link" for="__nav_10">
Miscellaneous
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
+ <nav class="md-nav" aria-label="Miscellaneous" data-md-level="1">
+ <label class="md-nav__title" for="__nav_10">
+ <span class="md-nav__icon md-icon"></span>
+ Miscellaneous
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-gx_validation.html" title="TrueTypeGX/AAT Validation" class="md-nav__link">
- TrueTypeGX/AAT Validation
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-gx_validation.html" class="md-nav__link">
+ TrueTypeGX/AAT Validation
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-incremental.html" title="Incremental Loading" class="md-nav__link">
- Incremental Loading
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-incremental.html" class="md-nav__link">
+ Incremental Loading
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-truetype_engine.html" title="The TrueType Engine" class="md-nav__link">
- The TrueType Engine
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-truetype_engine.html" class="md-nav__link">
+ The TrueType Engine
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-ot_validation.html" title="OpenType Validation" class="md-nav__link">
- OpenType Validation
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-ot_validation.html" class="md-nav__link">
+ OpenType Validation
+ </a>
+ </li>
+
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
</ul>
@@ -1057,18 +1130,23 @@
</div>
- <div class="md-sidebar md-sidebar--secondary" data-md-component="toc">
+
+ <div class="md-sidebar md-sidebar--secondary" data-md-component="sidebar" data-md-type="toc" >
<div class="md-sidebar__scrollwrap">
<div class="md-sidebar__inner">
-<nav class="md-nav md-nav--secondary">
+<nav class="md-nav md-nav--secondary" aria-label="Table of contents">
+
- <label class="md-nav__title" for="__toc">Table of contents</label>
- <ul class="md-nav__list" data-md-scrollfix>
+ <label class="md-nav__title" for="__toc">
+ <span class="md-nav__icon md-icon"></span>
+ Table of contents
+ </label>
+ <ul class="md-nav__list" data-md-component="toc" data-md-scrollfix>
<li class="md-nav__item">
<a href="#synopsis" class="md-nav__link">
@@ -1105,10 +1183,6 @@
</li>
-
-
-
-
</ul>
</nav>
@@ -1117,7 +1191,7 @@
</div>
- <div class="md-content">
+ <div class="md-content" data-md-component="content">
<article class="md-content__inner md-typeset">
@@ -1152,7 +1226,6 @@
<p>A list of valid values for the <code>charset</code> byte in <code><a href="ft2-winfnt_fonts.html#ft_winfnt_headerrec">FT_WinFNT_HeaderRec</a></code>. Exact mapping tables for the various &lsquo;cpXXXX&rsquo; encodings (except for &lsquo;cp1361&rsquo;) can be found at &lsquo;<a href="ftp://ftp.unicode.org/Public/">ftp://ftp.unicode.org/Public/</a>&rsquo; in the <code>MAPPINGS/VENDORS/MICSFT/WINDOWS</code> subdirectory. &lsquo;cp1361&rsquo; is roughly a superset of <code>MAPPINGS/OBSOLETE/EASTASIA/KSC/JOHAB.TXT</code>.</p>
<h4>values</h4>
-
<table class="fields">
<tr><td class="val" id="ft_winfnt_id_default">FT_WinFNT_ID_DEFAULT</td><td class="desc">
<p>This is used for font enumeration and font creation as a &lsquo;don't care&rsquo; value. Valid font files don't contain this value. When querying for information about the character set of the font that is currently selected into a specified device context, this return value (of the related Windows API) simply denotes failure.</p>
@@ -1285,7 +1358,6 @@
<p>Retrieve a Windows FNT font info header.</p>
<h4>input</h4>
-
<table class="fields">
<tr><td class="val" id="face">face</td><td class="desc">
<p>A handle to the input face.</p>
@@ -1293,7 +1365,6 @@
</table>
<h4>output</h4>
-
<table class="fields">
<tr><td class="val" id="aheader">aheader</td><td class="desc">
<p>The WinFNT header.</p>
@@ -1308,9 +1379,6 @@
<p>This function only works with Windows FNT faces, returning an error otherwise.</p>
<hr>
-
-
-
@@ -1320,59 +1388,60 @@
</article>
</div>
</div>
+
</main>
<footer class="md-footer">
- <div class="md-footer-nav">
- <nav class="md-footer-nav__inner md-grid">
+ <nav class="md-footer__inner md-grid" aria-label="Footer">
+
- <a href="ft2-pfr_fonts.html" title="PFR Fonts" class="md-flex md-footer-nav__link md-footer-nav__link--prev" rel="prev">
- <div class="md-flex__cell md-flex__cell--shrink">
- <i class="md-icon md-icon--arrow-back md-footer-nav__button"></i>
- </div>
- <div class="md-flex__cell md-flex__cell--stretch md-footer-nav__title">
- <span class="md-flex__ellipsis">
- <span class="md-footer-nav__direction">
- Previous
- </span>
- PFR Fonts
+ <a href="ft2-pfr_fonts.html" class="md-footer__link md-footer__link--prev" aria-label="Previous: PFR Fonts" rel="prev">
+ <div class="md-footer__button md-icon">
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M20 11v2H8l5.5 5.5-1.42 1.42L4.16 12l7.92-7.92L13.5 5.5 8 11h12z"/></svg>
+ </div>
+ <div class="md-footer__title">
+ <div class="md-ellipsis">
+ <span class="md-footer__direction">
+ Previous
</span>
+ PFR Fonts
</div>
- </a>
-
+ </div>
+ </a>
+
+
- <a href="ft2-font_formats.html" title="Font Formats" class="md-flex md-footer-nav__link md-footer-nav__link--next" rel="next">
- <div class="md-flex__cell md-flex__cell--stretch md-footer-nav__title">
- <span class="md-flex__ellipsis">
- <span class="md-footer-nav__direction">
- Next
- </span>
- Font Formats
+ <a href="ft2-font_formats.html" class="md-footer__link md-footer__link--next" aria-label="Next: Font Formats" rel="next">
+ <div class="md-footer__title">
+ <div class="md-ellipsis">
+ <span class="md-footer__direction">
+ Next
</span>
+ Font Formats
</div>
- <div class="md-flex__cell md-flex__cell--shrink">
- <i class="md-icon md-icon--arrow-forward md-footer-nav__button"></i>
- </div>
- </a>
-
- </nav>
- </div>
+ </div>
+ <div class="md-footer__button md-icon">
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M4 11v2h12l-5.5 5.5 1.42 1.42L19.84 12l-7.92-7.92L10.5 5.5 16 11H4z"/></svg>
+ </div>
+ </a>
+
+ </nav>
<div class="md-footer-meta md-typeset">
<div class="md-footer-meta__inner md-grid">
<div class="md-footer-copyright">
<div class="md-footer-copyright__highlight">
- Copyright 2020 <a href = "https://www.freetype.org/license.html">The FreeType Project</a>.
+ Copyright 2021 <a href = "https://www.freetype.org/license.html">The FreeType Project</a>.
</div>
- powered by
- <a href="https://www.mkdocs.org" target="_blank" rel="noopener">MkDocs</a>
- and
+ Made with
<a href="https://squidfunk.github.io/mkdocs-material/" target="_blank" rel="noopener">
- Material for MkDocs</a>
+ Material for MkDocs
+ </a>
+
</div>
</div>
@@ -1380,10 +1449,13 @@
</footer>
</div>
+ <div class="md-dialog" data-md-component="dialog">
+ <div class="md-dialog__inner md-typeset"></div>
+ </div>
+ <script id="__config" type="application/json">{"base": ".", "features": [], "translations": {"clipboard.copy": "Copy to clipboard", "clipboard.copied": "Copied to clipboard", "search.config.lang": "en", "search.config.pipeline": "trimmer, stopWordFilter", "search.config.separator": "[\\s\\-]+", "search.placeholder": "Search", "search.result.placeholder": "Type to start searching", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.term.missing": "Missing", "select.version.title": "Select version"}, "search": "assets/javascripts/workers/search.477d984a.min.js", "version": null}</script>
- <script src="assets/javascripts/application.c33a9706.js"></script>
-
- <script>app.initialize({version:"1.1",url:{base:"."}})</script>
+
+ <script src="assets/javascripts/bundle.82b56eb2.min.js"></script>
<script src="javascripts/extra.js"></script>
diff --git a/freetype/docs/reference/index.html b/freetype/docs/reference/index.html
index bd90633a..3d84b130 100644
--- a/freetype/docs/reference/index.html
+++ b/freetype/docs/reference/index.html
@@ -1,145 +1,136 @@
-
-
-
<!doctype html>
<html lang="en" class="no-js">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
- <meta http-equiv="x-ua-compatible" content="ie=edge">
- <meta name="description" content="API Reference Documentation for FreeType-2.10.4">
+ <meta name="description" content="API Reference Documentation for FreeType-2.11.1">
<meta name="author" content="FreeType Contributors">
- <meta name="lang:clipboard.copy" content="Copy to clipboard">
-
- <meta name="lang:clipboard.copied" content="Copied to clipboard">
-
- <meta name="lang:search.language" content="en">
-
- <meta name="lang:search.pipeline.stopwords" content="True">
-
- <meta name="lang:search.pipeline.trimmer" content="True">
-
- <meta name="lang:search.result.none" content="No matching documents">
-
- <meta name="lang:search.result.one" content="1 matching document">
-
- <meta name="lang:search.result.other" content="# matching documents">
-
- <meta name="lang:search.tokenizer" content="[\s\-]+">
-
- <link rel="shortcut icon" href="images/favico.ico">
- <meta name="generator" content="mkdocs-1.1, mkdocs-material-4.6.3">
+ <link rel="icon" href="images/favico.ico">
+ <meta name="generator" content="mkdocs-1.2.1, mkdocs-material-7.1.9">
- <title>TOC - FreeType-2.10.4 API Reference</title>
+ <title>FreeType-2.11.1 API Reference</title>
- <link rel="stylesheet" href="assets/stylesheets/application.adb8469c.css">
-
- <link rel="stylesheet" href="assets/stylesheets/application-palette.a8b3c06d.css">
-
+ <link rel="stylesheet" href="assets/stylesheets/main.ca7ac06f.min.css">
+ <link rel="stylesheet" href="assets/stylesheets/palette.f1a3b89f.min.css">
+
+
+
+ <meta name="theme-color" content="#4cae4f">
- <meta name="theme-color" content="#4caf50">
- <script src="assets/javascripts/modernizr.86422ebf.js"></script>
-
- <link href="https://fonts.gstatic.com" rel="preconnect" crossorigin>
+
+ <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Noto+Serif:300,400,400i,700%7CRoboto+Mono&display=fallback">
- <style>body,input{font-family:"Noto Serif","Helvetica Neue",Helvetica,Arial,sans-serif}code,kbd,pre{font-family:"Roboto Mono","Courier New",Courier,monospace}</style>
+ <style>:root{--md-text-font-family:"Noto Serif";--md-code-font-family:"Roboto Mono"}</style>
- <link rel="stylesheet" href="assets/fonts/material-icons.css">
<link rel="stylesheet" href="stylesheets/extra.css">
+
+
</head>
+
+
+
- <body dir="ltr" data-md-color-primary="green" data-md-color-accent="green">
+
+ <body dir="ltr" data-md-color-scheme="" data-md-color-primary="green" data-md-color-accent="green">
- <svg class="md-svg">
- <defs>
-
-
- </defs>
- </svg>
- <input class="md-toggle" data-md-toggle="drawer" type="checkbox" id="__drawer" autocomplete="off">
- <input class="md-toggle" data-md-toggle="search" type="checkbox" id="__search" autocomplete="off">
- <label class="md-overlay" data-md-component="overlay" for="__drawer"></label>
- <a href="#freetype-2104-api-reference" tabindex="0" class="md-skip">
- Skip to content
- </a>
+ <script>function __prefix(e){return new URL(".",location).pathname+"."+e}function __get(e,t=localStorage){return JSON.parse(t.getItem(__prefix(e)))}</script>
+ <input class="md-toggle" data-md-toggle="drawer" type="checkbox" id="__drawer" autocomplete="off">
+ <input class="md-toggle" data-md-toggle="search" type="checkbox" id="__search" autocomplete="off">
+ <label class="md-overlay" for="__drawer"></label>
+ <div data-md-component="skip">
+
+
+ <a href="#freetype-2111-api-reference" class="md-skip">
+ Skip to content
+ </a>
+
+ </div>
+ <div data-md-component="announce">
+
+ </div>
<header class="md-header" data-md-component="header">
- <nav class="md-header-nav md-grid">
- <div class="md-flex">
- <div class="md-flex__cell md-flex__cell--shrink">
- <a href="." title="FreeType-2.10.4 API Reference" aria-label="FreeType-2.10.4 API Reference" class="md-header-nav__button md-logo">
-
- <img alt="logo" src="images/favico.ico" width="24" height="24">
-
- </a>
- </div>
- <div class="md-flex__cell md-flex__cell--shrink">
- <label class="md-icon md-icon--menu md-header-nav__button" for="__drawer"></label>
- </div>
- <div class="md-flex__cell md-flex__cell--stretch">
- <div class="md-flex__ellipsis md-header-nav__title" data-md-component="title">
-
- <span class="md-header-nav__topic">
- FreeType-2.10.4 API Reference
- </span>
- <span class="md-header-nav__topic">
-
- TOC
-
- </span>
-
+ <nav class="md-header__inner md-grid" aria-label="Header">
+ <a href="index.html" title="FreeType-2.11.1 API Reference" class="md-header__button md-logo" aria-label="FreeType-2.11.1 API Reference" data-md-component="logo">
+
+ <img src="images/favico.ico" alt="logo">
+
+ </a>
+ <label class="md-header__button md-icon" for="__drawer">
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M3 6h18v2H3V6m0 5h18v2H3v-2m0 5h18v2H3v-2z"/></svg>
+ </label>
+ <div class="md-header__title" data-md-component="header-title">
+ <div class="md-header__ellipsis">
+ <div class="md-header__topic">
+ <span class="md-ellipsis">
+ FreeType-2.11.1 API Reference
+ </span>
+ </div>
+ <div class="md-header__topic" data-md-component="header-topic">
+ <span class="md-ellipsis">
+
+ TOC
+
+ </span>
</div>
</div>
- <div class="md-flex__cell md-flex__cell--shrink">
-
- <label class="md-icon md-icon--search md-header-nav__button" for="__search"></label>
-
+ </div>
+
+
+
+ <label class="md-header__button md-icon" for="__search">
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M9.5 3A6.5 6.5 0 0 1 16 9.5c0 1.61-.59 3.09-1.56 4.23l.27.27h.79l5 5-1.5 1.5-5-5v-.79l-.27-.27A6.516 6.516 0 0 1 9.5 16 6.5 6.5 0 0 1 3 9.5 6.5 6.5 0 0 1 9.5 3m0 2C7 5 5 7 5 9.5S7 14 9.5 14 14 12 14 9.5 12 5 9.5 5z"/></svg>
+ </label>
+
<div class="md-search" data-md-component="search" role="dialog">
<label class="md-search__overlay" for="__search"></label>
<div class="md-search__inner" role="search">
<form class="md-search__form" name="search">
- <input type="text" class="md-search__input" aria-label="search" name="query" placeholder="Search" autocapitalize="off" autocorrect="off" autocomplete="off" spellcheck="false" data-md-component="query" data-md-state="active">
- <label class="md-icon md-search__icon" for="__search"></label>
- <button type="reset" class="md-icon md-search__icon" data-md-component="reset" tabindex="-1">
- &#xE5CD;
+ <input type="text" class="md-search__input" name="query" aria-label="Search" placeholder="Search" autocapitalize="off" autocorrect="off" autocomplete="off" spellcheck="false" data-md-component="search-query" data-md-state="active" required>
+ <label class="md-search__icon md-icon" for="__search">
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M9.5 3A6.5 6.5 0 0 1 16 9.5c0 1.61-.59 3.09-1.56 4.23l.27.27h.79l5 5-1.5 1.5-5-5v-.79l-.27-.27A6.516 6.516 0 0 1 9.5 16 6.5 6.5 0 0 1 3 9.5 6.5 6.5 0 0 1 9.5 3m0 2C7 5 5 7 5 9.5S7 14 9.5 14 14 12 14 9.5 12 5 9.5 5z"/></svg>
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M20 11v2H8l5.5 5.5-1.42 1.42L4.16 12l7.92-7.92L13.5 5.5 8 11h12z"/></svg>
+ </label>
+ <button type="reset" class="md-search__icon md-icon" aria-label="Clear" tabindex="-1">
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z"/></svg>
</button>
</form>
<div class="md-search__output">
<div class="md-search__scrollwrap" data-md-scrollfix>
- <div class="md-search-result" data-md-component="result">
+ <div class="md-search-result" data-md-component="search-result">
<div class="md-search-result__meta">
- Type to start searching
+ Initializing search
</div>
<ol class="md-search-result__list"></ol>
</div>
@@ -147,33 +138,35 @@
</div>
</div>
</div>
-
- </div>
-
- </div>
+
+
</nav>
</header>
- <div class="md-container">
+ <div class="md-container" data-md-component="container">
-
+
- <main class="md-main" role="main">
- <div class="md-main__inner md-grid" data-md-component="container">
+ <main class="md-main" data-md-component="main">
+ <div class="md-main__inner md-grid">
- <div class="md-sidebar md-sidebar--primary" data-md-component="navigation">
+
+ <div class="md-sidebar md-sidebar--primary" data-md-component="sidebar" data-md-type="navigation" >
<div class="md-sidebar__scrollwrap">
<div class="md-sidebar__inner">
- <nav class="md-nav md-nav--primary" data-md-level="0">
- <label class="md-nav__title md-nav__title--site" for="__drawer">
- <a href="." title="FreeType-2.10.4 API Reference" class="md-nav__button md-logo">
-
- <img alt="logo" src="images/favico.ico" width="48" height="48">
+
+
+
+<nav class="md-nav md-nav--primary" aria-label="Navigation" data-md-level="0">
+ <label class="md-nav__title" for="__drawer">
+ <a href="index.html" title="FreeType-2.11.1 API Reference" class="md-nav__button md-logo" aria-label="FreeType-2.11.1 API Reference" data-md-component="logo">
+ <img src="images/favico.ico" alt="logo">
+
</a>
- FreeType-2.10.4 API Reference
+ FreeType-2.11.1 API Reference
</label>
<ul class="md-nav__list" data-md-scrollfix>
@@ -183,812 +176,891 @@
-
-
- <li class="md-nav__item md-nav__item--active">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="toc" type="checkbox" id="__toc">
+
+
+
+ <li class="md-nav__item md-nav__item--active">
-
-
- <a href="index.html" title="TOC" class="md-nav__link md-nav__link--active">
- TOC
- </a>
-
- </li>
+ <input class="md-nav__toggle md-toggle" data-md-toggle="toc" type="checkbox" id="__toc">
+
+
+
+
+
+ <a href="index.html" class="md-nav__link md-nav__link--active">
+ TOC
+ </a>
+
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-index.html" title="Index" class="md-nav__link">
- Index
- </a>
- </li>
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-index.html" class="md-nav__link">
+ Index
+ </a>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-3" type="checkbox" id="nav-3">
+
+
+
- <label class="md-nav__link" for="nav-3">
- General Remarks
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-3">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_3" type="checkbox" id="__nav_3" >
+
+ <label class="md-nav__link" for="__nav_3">
General Remarks
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
+ <nav class="md-nav" aria-label="General Remarks" data-md-level="1">
+ <label class="md-nav__title" for="__nav_3">
+ <span class="md-nav__icon md-icon"></span>
+ General Remarks
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-header_inclusion.html" title="FreeType's header inclusion scheme" class="md-nav__link">
- FreeType's header inclusion scheme
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-preamble.html" class="md-nav__link">
+ Preamble
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-header_inclusion.html" class="md-nav__link">
+ FreeType's header inclusion scheme
+ </a>
+ </li>
+
+
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-user_allocation.html" class="md-nav__link">
+ User allocation
+ </a>
+ </li>
+
- <li class="md-nav__item">
- <a href="ft2-user_allocation.html" title="User allocation" class="md-nav__link">
- User allocation
- </a>
- </li>
-
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-4" type="checkbox" id="nav-4">
+
+
+
- <label class="md-nav__link" for="nav-4">
- Core API
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-4">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_4" type="checkbox" id="__nav_4" >
+
+ <label class="md-nav__link" for="__nav_4">
Core API
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
-
-
+ <nav class="md-nav" aria-label="Core API" data-md-level="1">
+ <label class="md-nav__title" for="__nav_4">
+ <span class="md-nav__icon md-icon"></span>
+ Core API
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-version.html" class="md-nav__link">
+ FreeType Version
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-version.html" title="FreeType Version" class="md-nav__link">
- FreeType Version
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-basic_types.html" title="Basic Data Types" class="md-nav__link">
- Basic Data Types
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-basic_types.html" class="md-nav__link">
+ Basic Data Types
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-base_interface.html" class="md-nav__link">
+ Base Interface
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-base_interface.html" title="Base Interface" class="md-nav__link">
- Base Interface
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-glyph_variants.html" title="Unicode Variation Sequences" class="md-nav__link">
- Unicode Variation Sequences
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-glyph_variants.html" class="md-nav__link">
+ Unicode Variation Sequences
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-color_management.html" title="Glyph Color Management" class="md-nav__link">
- Glyph Color Management
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-color_management.html" class="md-nav__link">
+ Glyph Color Management
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-layer_management.html" class="md-nav__link">
+ Glyph Layer Management
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-layer_management.html" title="Glyph Layer Management" class="md-nav__link">
- Glyph Layer Management
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-glyph_management.html" title="Glyph Management" class="md-nav__link">
- Glyph Management
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-glyph_management.html" class="md-nav__link">
+ Glyph Management
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-mac_specific.html" class="md-nav__link">
+ Mac Specific Interface
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-mac_specific.html" title="Mac Specific Interface" class="md-nav__link">
- Mac Specific Interface
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-sizes_management.html" title="Size Management" class="md-nav__link">
- Size Management
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-sizes_management.html" class="md-nav__link">
+ Size Management
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-header_file_macros.html" title="Header File Macros" class="md-nav__link">
- Header File Macros
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-header_file_macros.html" class="md-nav__link">
+ Header File Macros
+ </a>
+ </li>
+
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-5" type="checkbox" id="nav-5">
+
+
+
- <label class="md-nav__link" for="nav-5">
- Format-Specific API
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-5">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_5" type="checkbox" id="__nav_5" >
+
+ <label class="md-nav__link" for="__nav_5">
Format-Specific API
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
-
+ <nav class="md-nav" aria-label="Format-Specific API" data-md-level="1">
+ <label class="md-nav__title" for="__nav_5">
+ <span class="md-nav__icon md-icon"></span>
+ Format-Specific API
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
-
-
-
- <li class="md-nav__item">
- <a href="ft2-multiple_masters.html" title="Multiple Masters" class="md-nav__link">
- Multiple Masters
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-multiple_masters.html" class="md-nav__link">
+ Multiple Masters
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-truetype_tables.html" class="md-nav__link">
+ TrueType Tables
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-truetype_tables.html" title="TrueType Tables" class="md-nav__link">
- TrueType Tables
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-type1_tables.html" title="Type 1 Tables" class="md-nav__link">
- Type 1 Tables
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-type1_tables.html" class="md-nav__link">
+ Type 1 Tables
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-sfnt_names.html" class="md-nav__link">
+ SFNT Names
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-sfnt_names.html" title="SFNT Names" class="md-nav__link">
- SFNT Names
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-bdf_fonts.html" title="BDF and PCF Files" class="md-nav__link">
- BDF and PCF Files
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-bdf_fonts.html" class="md-nav__link">
+ BDF and PCF Files
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-cid_fonts.html" title="CID Fonts" class="md-nav__link">
- CID Fonts
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-cid_fonts.html" class="md-nav__link">
+ CID Fonts
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-pfr_fonts.html" title="PFR Fonts" class="md-nav__link">
- PFR Fonts
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-pfr_fonts.html" class="md-nav__link">
+ PFR Fonts
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-winfnt_fonts.html" title="Window FNT Files" class="md-nav__link">
- Window FNT Files
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-winfnt_fonts.html" class="md-nav__link">
+ Window FNT Files
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-font_formats.html" title="Font Formats" class="md-nav__link">
- Font Formats
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-font_formats.html" class="md-nav__link">
+ Font Formats
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-gasp_table.html" title="Gasp Table" class="md-nav__link">
- Gasp Table
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-gasp_table.html" class="md-nav__link">
+ Gasp Table
+ </a>
+ </li>
+
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-6" type="checkbox" id="nav-6">
+
+
+
- <label class="md-nav__link" for="nav-6">
- Controlling FreeType Modules
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-6">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_6" type="checkbox" id="__nav_6" >
+
+ <label class="md-nav__link" for="__nav_6">
Controlling FreeType Modules
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
-
+ <nav class="md-nav" aria-label="Controlling FreeType Modules" data-md-level="1">
+ <label class="md-nav__title" for="__nav_6">
+ <span class="md-nav__icon md-icon"></span>
+ Controlling FreeType Modules
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
-
-
-
- <li class="md-nav__item">
- <a href="ft2-auto_hinter.html" title="The auto-hinter" class="md-nav__link">
- The auto-hinter
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-auto_hinter.html" class="md-nav__link">
+ The auto-hinter
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-cff_driver.html" title="The CFF driver" class="md-nav__link">
- The CFF driver
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-cff_driver.html" class="md-nav__link">
+ The CFF driver
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-t1_cid_driver.html" class="md-nav__link">
+ The Type 1 and CID drivers
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-t1_cid_driver.html" title="The Type 1 and CID drivers" class="md-nav__link">
- The Type 1 and CID drivers
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-tt_driver.html" title="The TrueType driver" class="md-nav__link">
- The TrueType driver
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-tt_driver.html" class="md-nav__link">
+ The TrueType driver
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-pcf_driver.html" class="md-nav__link">
+ The PCF driver
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-pcf_driver.html" title="The PCF driver" class="md-nav__link">
- The PCF driver
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-properties.html" title="Driver properties" class="md-nav__link">
- Driver properties
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-properties.html" class="md-nav__link">
+ Driver properties
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-parameter_tags.html" class="md-nav__link">
+ Parameter Tags
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-parameter_tags.html" title="Parameter Tags" class="md-nav__link">
- Parameter Tags
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-lcd_rendering.html" title="Subpixel Rendering" class="md-nav__link">
- Subpixel Rendering
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-lcd_rendering.html" class="md-nav__link">
+ Subpixel Rendering
+ </a>
+ </li>
+
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-7" type="checkbox" id="nav-7">
+
+
+
- <label class="md-nav__link" for="nav-7">
- Cache Sub-System
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-7">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_7" type="checkbox" id="__nav_7" >
+
+ <label class="md-nav__link" for="__nav_7">
Cache Sub-System
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
-
-
+ <nav class="md-nav" aria-label="Cache Sub-System" data-md-level="1">
+ <label class="md-nav__title" for="__nav_7">
+ <span class="md-nav__icon md-icon"></span>
+ Cache Sub-System
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-cache_subsystem.html" class="md-nav__link">
+ Cache Sub-System
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-cache_subsystem.html" title="Cache Sub-System" class="md-nav__link">
- Cache Sub-System
- </a>
- </li>
-
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-8" type="checkbox" id="nav-8">
+
+
+
- <label class="md-nav__link" for="nav-8">
- Support API
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-8">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_8" type="checkbox" id="__nav_8" >
+
+ <label class="md-nav__link" for="__nav_8">
Support API
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
-
+ <nav class="md-nav" aria-label="Support API" data-md-level="1">
+ <label class="md-nav__title" for="__nav_8">
+ <span class="md-nav__icon md-icon"></span>
+ Support API
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
-
-
-
- <li class="md-nav__item">
- <a href="ft2-computations.html" title="Computations" class="md-nav__link">
- Computations
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-computations.html" class="md-nav__link">
+ Computations
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-list_processing.html" title="List Processing" class="md-nav__link">
- List Processing
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-list_processing.html" class="md-nav__link">
+ List Processing
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-outline_processing.html" title="Outline Processing" class="md-nav__link">
- Outline Processing
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-outline_processing.html" class="md-nav__link">
+ Outline Processing
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-quick_advance.html" title="Quick retrieval of advance values" class="md-nav__link">
- Quick retrieval of advance values
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-quick_advance.html" class="md-nav__link">
+ Quick retrieval of advance values
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-bitmap_handling.html" title="Bitmap Handling" class="md-nav__link">
- Bitmap Handling
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-bitmap_handling.html" class="md-nav__link">
+ Bitmap Handling
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-raster.html" title="Scanline Converter" class="md-nav__link">
- Scanline Converter
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-raster.html" class="md-nav__link">
+ Scanline Converter
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-glyph_stroker.html" class="md-nav__link">
+ Glyph Stroker
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-glyph_stroker.html" title="Glyph Stroker" class="md-nav__link">
- Glyph Stroker
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-system_interface.html" title="System Interface" class="md-nav__link">
- System Interface
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-system_interface.html" class="md-nav__link">
+ System Interface
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-module_management.html" class="md-nav__link">
+ Module Management
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-module_management.html" title="Module Management" class="md-nav__link">
- Module Management
- </a>
- </li>
-
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-gzip.html" title="GZIP Streams" class="md-nav__link">
- GZIP Streams
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-gzip.html" class="md-nav__link">
+ GZIP Streams
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-lzw.html" class="md-nav__link">
+ LZW Streams
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-lzw.html" title="LZW Streams" class="md-nav__link">
- LZW Streams
- </a>
- </li>
-
-
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-bzip2.html" class="md-nav__link">
+ BZIP2 Streams
+ </a>
+ </li>
+
- <li class="md-nav__item">
- <a href="ft2-bzip2.html" title="BZIP2 Streams" class="md-nav__link">
- BZIP2 Streams
- </a>
- </li>
+
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-debugging_apis.html" class="md-nav__link">
+ External Debugging APIs
+ </a>
+ </li>
+
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-9" type="checkbox" id="nav-9">
+
+
+
- <label class="md-nav__link" for="nav-9">
- Error Codes
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-9">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_9" type="checkbox" id="__nav_9" >
+
+ <label class="md-nav__link" for="__nav_9">
Error Codes
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
+ <nav class="md-nav" aria-label="Error Codes" data-md-level="1">
+ <label class="md-nav__title" for="__nav_9">
+ <span class="md-nav__icon md-icon"></span>
+ Error Codes
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-error_enumerations.html" title="Error Enumerations" class="md-nav__link">
- Error Enumerations
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-error_enumerations.html" class="md-nav__link">
+ Error Enumerations
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-error_code_values.html" title="Error Code Values" class="md-nav__link">
- Error Code Values
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-error_code_values.html" class="md-nav__link">
+ Error Code Values
+ </a>
+ </li>
+
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
-
- <li class="md-nav__item md-nav__item--nested">
-
- <input class="md-toggle md-nav__toggle" data-md-toggle="nav-10" type="checkbox" id="nav-10">
+
+
+
- <label class="md-nav__link" for="nav-10">
- Miscellaneous
- </label>
- <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
- <label class="md-nav__title" for="nav-10">
+ <li class="md-nav__item md-nav__item--nested">
+
+
+ <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_10" type="checkbox" id="__nav_10" >
+
+ <label class="md-nav__link" for="__nav_10">
Miscellaneous
+ <span class="md-nav__icon md-icon"></span>
</label>
- <ul class="md-nav__list" data-md-scrollfix>
-
-
-
+ <nav class="md-nav" aria-label="Miscellaneous" data-md-level="1">
+ <label class="md-nav__title" for="__nav_10">
+ <span class="md-nav__icon md-icon"></span>
+ Miscellaneous
+ </label>
+ <ul class="md-nav__list" data-md-scrollfix>
-
-
-
- <li class="md-nav__item">
- <a href="ft2-gx_validation.html" title="TrueTypeGX/AAT Validation" class="md-nav__link">
- TrueTypeGX/AAT Validation
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-gx_validation.html" class="md-nav__link">
+ TrueTypeGX/AAT Validation
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-incremental.html" title="Incremental Loading" class="md-nav__link">
- Incremental Loading
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-incremental.html" class="md-nav__link">
+ Incremental Loading
+ </a>
+ </li>
+
-
-
-
-
-
- <li class="md-nav__item">
- <a href="ft2-truetype_engine.html" title="The TrueType Engine" class="md-nav__link">
- The TrueType Engine
- </a>
- </li>
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-truetype_engine.html" class="md-nav__link">
+ The TrueType Engine
+ </a>
+ </li>
+
-
-
-
+
+
+
+
+ <li class="md-nav__item">
+ <a href="ft2-ot_validation.html" class="md-nav__link">
+ OpenType Validation
+ </a>
+ </li>
+
-
- <li class="md-nav__item">
- <a href="ft2-ot_validation.html" title="OpenType Validation" class="md-nav__link">
- OpenType Validation
- </a>
- </li>
-
-
- </ul>
- </nav>
- </li>
+
+ </ul>
+ </nav>
+ </li>
+
</ul>
@@ -998,11 +1070,13 @@
</div>
- <div class="md-sidebar md-sidebar--secondary" data-md-component="toc">
+
+ <div class="md-sidebar md-sidebar--secondary" data-md-component="sidebar" data-md-type="toc" >
<div class="md-sidebar__scrollwrap">
<div class="md-sidebar__inner">
-<nav class="md-nav md-nav--secondary">
+<nav class="md-nav md-nav--secondary" aria-label="Table of contents">
+
@@ -1014,17 +1088,20 @@
</div>
- <div class="md-content">
+ <div class="md-content" data-md-component="content">
<article class="md-content__inner md-typeset">
<p><a href="https://www.freetype.org">FreeType</a> &raquo; <a href="../">Docs</a> &raquo; Table of Contents</p>
<hr />
-<h1 id="freetype-2104-api-reference">FreeType-2.10.4 API Reference<a class="headerlink" href="#freetype-2104-api-reference" title="Permanent link">&para;</a></h1>
+<h1 id="freetype-2111-api-reference">FreeType-2.11.1 API Reference<a class="headerlink" href="#freetype-2111-api-reference" title="Permanent link">&para;</a></h1>
<h1 id="table-of-contents">Table of Contents<a class="headerlink" href="#table-of-contents" title="Permanent link">&para;</a></h1>
<h2 id="general-remarks">General Remarks<a class="headerlink" href="#general-remarks" title="Permanent link">&para;</a></h2>
<table class="toc">
+<tr><td class="link"><a href="ft2-preamble.html">Preamble</a></td><td class="desc">
+<p>What FreeType is and isn't</p>
+</td></tr>
<tr><td class="link"><a href="ft2-header_inclusion.html">FreeType's header inclusion scheme</a></td><td class="desc">
<p>How client applications should include FreeType header files.</p>
</td></tr>
@@ -1032,7 +1109,6 @@
<p>How client applications should allocate FreeType data structures.</p>
</td></tr>
</table>
-
<h2 id="core-api">Core API<a class="headerlink" href="#core-api" title="Permanent link">&para;</a></h2>
<table class="toc">
<tr><td class="link"><a href="ft2-version.html">FreeType Version</a></td><td class="desc">
@@ -1066,7 +1142,6 @@
<p>Macro definitions used to <code>#include</code> specific header files.</p>
</td></tr>
</table>
-
<h2 id="format-specific-api">Format-Specific API<a class="headerlink" href="#format-specific-api" title="Permanent link">&para;</a></h2>
<table class="toc">
<tr><td class="link"><a href="ft2-multiple_masters.html">Multiple Masters</a></td><td class="desc">
@@ -1100,7 +1175,6 @@
<p>Retrieving TrueType &lsquo;gasp&rsquo; table entries.</p>
</td></tr>
</table>
-
<h2 id="controlling-freetype-modules">Controlling FreeType Modules<a class="headerlink" href="#controlling-freetype-modules" title="Permanent link">&para;</a></h2>
<table class="toc">
<tr><td class="link"><a href="ft2-auto_hinter.html">The auto-hinter</a></td><td class="desc">
@@ -1128,14 +1202,12 @@
<p>API to control subpixel rendering.</p>
</td></tr>
</table>
-
<h2 id="cache-sub-system">Cache Sub-System<a class="headerlink" href="#cache-sub-system" title="Permanent link">&para;</a></h2>
<table class="toc">
<tr><td class="link"><a href="ft2-cache_subsystem.html">Cache Sub-System</a></td><td class="desc">
<p>How to cache face, size, and glyph data with FreeType&nbsp;2.</p>
</td></tr>
</table>
-
<h2 id="support-api">Support API<a class="headerlink" href="#support-api" title="Permanent link">&para;</a></h2>
<table class="toc">
<tr><td class="link"><a href="ft2-computations.html">Computations</a></td><td class="desc">
@@ -1174,8 +1246,10 @@
<tr><td class="link"><a href="ft2-bzip2.html">BZIP2 Streams</a></td><td class="desc">
<p>Using bzip2-compressed font files.</p>
</td></tr>
+<tr><td class="link"><a href="ft2-debugging_apis.html">External Debugging APIs</a></td><td class="desc">
+<p>Public APIs to control the <code>FT_DEBUG_LOGGING</code> macro.</p>
+</td></tr>
</table>
-
<h2 id="error-codes">Error Codes<a class="headerlink" href="#error-codes" title="Permanent link">&para;</a></h2>
<table class="toc">
<tr><td class="link"><a href="ft2-error_enumerations.html">Error Enumerations</a></td><td class="desc">
@@ -1185,7 +1259,6 @@
<p>All possible error codes returned by FreeType functions.</p>
</td></tr>
</table>
-
<h2 id="miscellaneous">Miscellaneous<a class="headerlink" href="#miscellaneous" title="Permanent link">&para;</a></h2>
<table class="toc">
<tr><td class="link"><a href="ft2-gx_validation.html">TrueTypeGX/AAT Validation</a></td><td class="desc">
@@ -1201,13 +1274,9 @@
<p>An API to validate OpenType tables.</p>
</td></tr>
</table>
-
<h2 id="global-index"><a href="ft2-index.html">Global Index</a><a class="headerlink" href="#global-index" title="Permanent link">&para;</a></h2>
<hr />
-<div class="timestamp">generated on Tue Oct 20 05:14:52 2020 UTC</div>
-
-
-
+<div class="timestamp">generated on Thu Dec 2 12:36:11 2021 UTC</div>
@@ -1218,45 +1287,45 @@
</article>
</div>
</div>
+
</main>
<footer class="md-footer">
- <div class="md-footer-nav">
- <nav class="md-footer-nav__inner md-grid">
-
+ <nav class="md-footer__inner md-grid" aria-label="Footer">
+
+
- <a href="ft2-index.html" title="Index" class="md-flex md-footer-nav__link md-footer-nav__link--next" rel="next">
- <div class="md-flex__cell md-flex__cell--stretch md-footer-nav__title">
- <span class="md-flex__ellipsis">
- <span class="md-footer-nav__direction">
- Next
- </span>
- Index
+ <a href="ft2-index.html" class="md-footer__link md-footer__link--next" aria-label="Next: Index" rel="next">
+ <div class="md-footer__title">
+ <div class="md-ellipsis">
+ <span class="md-footer__direction">
+ Next
</span>
+ Index
</div>
- <div class="md-flex__cell md-flex__cell--shrink">
- <i class="md-icon md-icon--arrow-forward md-footer-nav__button"></i>
- </div>
- </a>
-
- </nav>
- </div>
+ </div>
+ <div class="md-footer__button md-icon">
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M4 11v2h12l-5.5 5.5 1.42 1.42L19.84 12l-7.92-7.92L10.5 5.5 16 11H4z"/></svg>
+ </div>
+ </a>
+
+ </nav>
<div class="md-footer-meta md-typeset">
<div class="md-footer-meta__inner md-grid">
<div class="md-footer-copyright">
<div class="md-footer-copyright__highlight">
- Copyright 2020 <a href = "https://www.freetype.org/license.html">The FreeType Project</a>.
+ Copyright 2021 <a href = "https://www.freetype.org/license.html">The FreeType Project</a>.
</div>
- powered by
- <a href="https://www.mkdocs.org" target="_blank" rel="noopener">MkDocs</a>
- and
+ Made with
<a href="https://squidfunk.github.io/mkdocs-material/" target="_blank" rel="noopener">
- Material for MkDocs</a>
+ Material for MkDocs
+ </a>
+
</div>
</div>
@@ -1264,10 +1333,13 @@
</footer>
</div>
+ <div class="md-dialog" data-md-component="dialog">
+ <div class="md-dialog__inner md-typeset"></div>
+ </div>
+ <script id="__config" type="application/json">{"base": ".", "features": [], "translations": {"clipboard.copy": "Copy to clipboard", "clipboard.copied": "Copied to clipboard", "search.config.lang": "en", "search.config.pipeline": "trimmer, stopWordFilter", "search.config.separator": "[\\s\\-]+", "search.placeholder": "Search", "search.result.placeholder": "Type to start searching", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.term.missing": "Missing", "select.version.title": "Select version"}, "search": "assets/javascripts/workers/search.477d984a.min.js", "version": null}</script>
- <script src="assets/javascripts/application.c33a9706.js"></script>
-
- <script>app.initialize({version:"1.1",url:{base:"."}})</script>
+
+ <script src="assets/javascripts/bundle.82b56eb2.min.js"></script>
<script src="javascripts/extra.js"></script>
diff --git a/freetype/docs/reference/search/search_index.json b/freetype/docs/reference/search/search_index.json
index 60c8c857..fb54b4e0 100644
--- a/freetype/docs/reference/search/search_index.json
+++ b/freetype/docs/reference/search/search_index.json
@@ -1 +1 @@
-{"config":{"lang":["en"],"prebuild_index":false,"separator":"[\\s\\-]+"},"docs":[{"location":"index.html","text":"FreeType \u00bb Docs \u00bb Table of Contents FreeType-2.10.4 API Reference \u00b6 Table of Contents \u00b6 General Remarks \u00b6 FreeType's header inclusion scheme How client applications should include FreeType header files. User allocation How client applications should allocate FreeType data structures. Core API \u00b6 FreeType Version Functions and macros related to FreeType versions. Basic Data Types The basic data types defined by the library. Base Interface The FreeType 2 base font interface. Unicode Variation Sequences The FreeType 2 interface to Unicode Variation Sequences (UVS), using the SFNT cmap format 14. Glyph Color Management Retrieving and manipulating OpenType's \u2018CPAL\u2019 table data. Glyph Layer Management Retrieving and manipulating OpenType's \u2018COLR\u2019 table data. Glyph Management Generic interface to manage individual glyph data. Mac Specific Interface Only available on the Macintosh. Size Management Managing multiple sizes per face. Header File Macros Macro definitions used to #include specific header files. Format-Specific API \u00b6 Multiple Masters How to manage Multiple Masters fonts. TrueType Tables TrueType-specific table types and functions. Type 1 Tables Type 1-specific font tables. SFNT Names Access the names embedded in TrueType and OpenType files. BDF and PCF Files BDF and PCF specific API. CID Fonts CID-keyed font-specific API. PFR Fonts PFR/TrueDoc-specific API. Window FNT Files Windows FNT-specific API. Font Formats Getting the font format. Gasp Table Retrieving TrueType \u2018gasp\u2019 table entries. Controlling FreeType Modules \u00b6 The auto-hinter Controlling the auto-hinting module. The CFF driver Controlling the CFF driver module. The Type 1 and CID drivers Controlling the Type 1 and CID driver modules. The TrueType driver Controlling the TrueType driver module. The PCF driver Controlling the PCF driver module. Driver properties Controlling driver modules. Parameter Tags Macros for driver property and font loading parameter tags. Subpixel Rendering API to control subpixel rendering. Cache Sub-System \u00b6 Cache Sub-System How to cache face, size, and glyph data with FreeType 2. Support API \u00b6 Computations Crunching fixed numbers and vectors. List Processing Simple management of lists. Outline Processing Functions to create, transform, and render vectorial glyph images. Quick retrieval of advance values Retrieve horizontal and vertical advance values without processing glyph outlines, if possible. Bitmap Handling Handling FT_Bitmap objects. Scanline Converter How vectorial outlines are converted into bitmaps and pixmaps. Glyph Stroker Generating bordered and stroked glyphs. System Interface How FreeType manages memory and i/o. Module Management How to add, upgrade, remove, and control modules from FreeType. GZIP Streams Using gzip-compressed font files. LZW Streams Using LZW-compressed font files. BZIP2 Streams Using bzip2-compressed font files. Error Codes \u00b6 Error Enumerations How to handle errors and error strings. Error Code Values All possible error codes returned by FreeType functions. Miscellaneous \u00b6 TrueTypeGX/AAT Validation An API to validate TrueTypeGX/AAT tables. Incremental Loading Custom Glyph Loading. The TrueType Engine TrueType bytecode support. OpenType Validation An API to validate OpenType tables. Global Index \u00b6 generated on Tue Oct 20 05:14:52 2020 UTC","title":"TOC"},{"location":"index.html#freetype-2104-api-reference","text":"","title":"FreeType-2.10.4 API Reference"},{"location":"index.html#table-of-contents","text":"","title":"Table of Contents"},{"location":"index.html#general-remarks","text":"FreeType's header inclusion scheme How client applications should include FreeType header files. User allocation How client applications should allocate FreeType data structures.","title":"General Remarks"},{"location":"index.html#core-api","text":"FreeType Version Functions and macros related to FreeType versions. Basic Data Types The basic data types defined by the library. Base Interface The FreeType 2 base font interface. Unicode Variation Sequences The FreeType 2 interface to Unicode Variation Sequences (UVS), using the SFNT cmap format 14. Glyph Color Management Retrieving and manipulating OpenType's \u2018CPAL\u2019 table data. Glyph Layer Management Retrieving and manipulating OpenType's \u2018COLR\u2019 table data. Glyph Management Generic interface to manage individual glyph data. Mac Specific Interface Only available on the Macintosh. Size Management Managing multiple sizes per face. Header File Macros Macro definitions used to #include specific header files.","title":"Core API"},{"location":"index.html#format-specific-api","text":"Multiple Masters How to manage Multiple Masters fonts. TrueType Tables TrueType-specific table types and functions. Type 1 Tables Type 1-specific font tables. SFNT Names Access the names embedded in TrueType and OpenType files. BDF and PCF Files BDF and PCF specific API. CID Fonts CID-keyed font-specific API. PFR Fonts PFR/TrueDoc-specific API. Window FNT Files Windows FNT-specific API. Font Formats Getting the font format. Gasp Table Retrieving TrueType \u2018gasp\u2019 table entries.","title":"Format-Specific API"},{"location":"index.html#controlling-freetype-modules","text":"The auto-hinter Controlling the auto-hinting module. The CFF driver Controlling the CFF driver module. The Type 1 and CID drivers Controlling the Type 1 and CID driver modules. The TrueType driver Controlling the TrueType driver module. The PCF driver Controlling the PCF driver module. Driver properties Controlling driver modules. Parameter Tags Macros for driver property and font loading parameter tags. Subpixel Rendering API to control subpixel rendering.","title":"Controlling FreeType Modules"},{"location":"index.html#cache-sub-system","text":"Cache Sub-System How to cache face, size, and glyph data with FreeType 2.","title":"Cache Sub-System"},{"location":"index.html#support-api","text":"Computations Crunching fixed numbers and vectors. List Processing Simple management of lists. Outline Processing Functions to create, transform, and render vectorial glyph images. Quick retrieval of advance values Retrieve horizontal and vertical advance values without processing glyph outlines, if possible. Bitmap Handling Handling FT_Bitmap objects. Scanline Converter How vectorial outlines are converted into bitmaps and pixmaps. Glyph Stroker Generating bordered and stroked glyphs. System Interface How FreeType manages memory and i/o. Module Management How to add, upgrade, remove, and control modules from FreeType. GZIP Streams Using gzip-compressed font files. LZW Streams Using LZW-compressed font files. BZIP2 Streams Using bzip2-compressed font files.","title":"Support API"},{"location":"index.html#error-codes","text":"Error Enumerations How to handle errors and error strings. Error Code Values All possible error codes returned by FreeType functions.","title":"Error Codes"},{"location":"index.html#miscellaneous","text":"TrueTypeGX/AAT Validation An API to validate TrueTypeGX/AAT tables. Incremental Loading Custom Glyph Loading. The TrueType Engine TrueType bytecode support. OpenType Validation An API to validate OpenType tables.","title":"Miscellaneous"},{"location":"index.html#global-index","text":"generated on Tue Oct 20 05:14:52 2020 UTC","title":"Global Index"},{"location":"ft2-auto_hinter.html","text":"FreeType \u00bb Docs \u00bb Controlling FreeType Modules \u00bb The auto-hinter The auto-hinter \u00b6 Synopsis \u00b6 While FreeType's auto-hinter doesn't expose API functions by itself, it is possible to control its behaviour with FT_Property_Set and FT_Property_Get . The following lists the available properties together with the necessary macros and structures. Note that the auto-hinter's module name is \u2018autofitter\u2019 for historical reasons. Available properties are increase-x-height , no-stem-darkening (experimental), darkening-parameters (experimental), warping (experimental), glyph-to-script-map (experimental), fallback-script (experimental), and default-script (experimental), as documented in the \u2018 Driver properties \u2019 section.","title":"The auto-hinter"},{"location":"ft2-auto_hinter.html#the-auto-hinter","text":"","title":"The auto-hinter"},{"location":"ft2-auto_hinter.html#synopsis","text":"While FreeType's auto-hinter doesn't expose API functions by itself, it is possible to control its behaviour with FT_Property_Set and FT_Property_Get . The following lists the available properties together with the necessary macros and structures. Note that the auto-hinter's module name is \u2018autofitter\u2019 for historical reasons. Available properties are increase-x-height , no-stem-darkening (experimental), darkening-parameters (experimental), warping (experimental), glyph-to-script-map (experimental), fallback-script (experimental), and default-script (experimental), as documented in the \u2018 Driver properties \u2019 section.","title":"Synopsis"},{"location":"ft2-base_interface.html","text":"FreeType \u00bb Docs \u00bb Core API \u00bb Base Interface Base Interface \u00b6 Synopsis \u00b6 This section describes the most important public high-level API functions of FreeType 2. FT_Library \u00b6 Defined in FT_FREETYPE_H (freetype/freetype.h). typedef struct FT_LibraryRec_ * FT_Library ; A handle to a FreeType library instance. Each \u2018library\u2019 is completely independent from the others; it is the \u2018root\u2019 of a set of objects like fonts, faces, sizes, etc. It also embeds a memory manager (see FT_Memory ), as well as a scan-line converter object (see FT_Raster ). [Since 2.5.6] In multi-threaded applications it is easiest to use one FT_Library object per thread. In case this is too cumbersome, a single FT_Library object across threads is possible also, as long as a mutex lock is used around FT_New_Face and FT_Done_Face . note Library objects are normally created by FT_Init_FreeType , and destroyed with FT_Done_FreeType . If you need reference-counting (cf. FT_Reference_Library ), use FT_New_Library and FT_Done_Library . FT_Face \u00b6 Defined in FT_FREETYPE_H (freetype/freetype.h). typedef struct FT_FaceRec_* FT_Face ; A handle to a typographic face object. A face object models a given typeface, in a given style. note A face object also owns a single FT_GlyphSlot object, as well as one or more FT_Size objects. Use FT_New_Face or FT_Open_Face to create a new face object from a given filepath or a custom input stream. Use FT_Done_Face to destroy it (along with its slot and sizes). An FT_Face object can only be safely used from one thread at a time. Similarly, creation and destruction of FT_Face with the same FT_Library object can only be done from one thread at a time. On the other hand, functions like FT_Load_Glyph and its siblings are thread-safe and do not need the lock to be held as long as the same FT_Face object is not used from multiple threads at the same time. also See FT_FaceRec for the publicly accessible fields of a given face object. FT_Size \u00b6 Defined in FT_FREETYPE_H (freetype/freetype.h). typedef struct FT_SizeRec_* FT_Size ; A handle to an object that models a face scaled to a given character size. note An FT_Face has one active FT_Size object that is used by functions like FT_Load_Glyph to determine the scaling transformation that in turn is used to load and hint glyphs and metrics. You can use FT_Set_Char_Size , FT_Set_Pixel_Sizes , FT_Request_Size or even FT_Select_Size to change the content (i.e., the scaling values) of the active FT_Size . You can use FT_New_Size to create additional size objects for a given FT_Face , but they won't be used by other functions until you activate it through FT_Activate_Size . Only one size can be activated at any given time per face. also See FT_SizeRec for the publicly accessible fields of a given size object. FT_GlyphSlot \u00b6 Defined in FT_FREETYPE_H (freetype/freetype.h). typedef struct FT_GlyphSlotRec_* FT_GlyphSlot ; A handle to a given \u2018glyph slot\u2019. A slot is a container that can hold any of the glyphs contained in its parent face. In other words, each time you call FT_Load_Glyph or FT_Load_Char , the slot's content is erased by the new glyph data, i.e., the glyph's metrics, its image (bitmap or outline), and other control information. also See FT_GlyphSlotRec for the publicly accessible glyph fields. FT_CharMap \u00b6 Defined in FT_FREETYPE_H (freetype/freetype.h). typedef struct FT_CharMapRec_* FT_CharMap ; A handle to a character map (usually abbreviated to \u2018charmap\u2019). A charmap is used to translate character codes in a given encoding into glyph indexes for its parent's face. Some font formats may provide several charmaps per font. Each face object owns zero or more charmaps, but only one of them can be \u2018active\u2019, providing the data used by FT_Get_Char_Index or FT_Load_Char . The list of available charmaps in a face is available through the face->num_charmaps and face->charmaps fields of FT_FaceRec . The currently active charmap is available as face->charmap . You should call FT_Set_Charmap to change it. note When a new face is created (either through FT_New_Face or FT_Open_Face ), the library looks for a Unicode charmap within the list and automatically activates it. If there is no Unicode charmap, FreeType doesn't set an \u2018active\u2019 charmap. also See FT_CharMapRec for the publicly accessible fields of a given character map. FT_Encoding \u00b6 Defined in FT_FREETYPE_H (freetype/freetype.h). typedef enum FT_Encoding_ { FT_ENC_TAG ( FT_ENCODING_NONE , 0, 0, 0, 0 ), FT_ENC_TAG ( FT_ENCODING_MS_SYMBOL , 's', 'y', 'm', 'b' ), FT_ENC_TAG ( FT_ENCODING_UNICODE , 'u', 'n', 'i', 'c' ), FT_ENC_TAG ( FT_ENCODING_SJIS , 's', 'j', 'i', 's' ), FT_ENC_TAG ( FT_ENCODING_PRC , 'g', 'b', ' ', ' ' ), FT_ENC_TAG ( FT_ENCODING_BIG5 , 'b', 'i', 'g', '5' ), FT_ENC_TAG ( FT_ENCODING_WANSUNG , 'w', 'a', 'n', 's' ), FT_ENC_TAG ( FT_ENCODING_JOHAB , 'j', 'o', 'h', 'a' ), /* for backward compatibility */ FT_ENCODING_GB2312 = FT_ENCODING_PRC , FT_ENCODING_MS_SJIS = FT_ENCODING_SJIS , FT_ENCODING_MS_GB2312 = FT_ENCODING_PRC , FT_ENCODING_MS_BIG5 = FT_ENCODING_BIG5 , FT_ENCODING_MS_WANSUNG = FT_ENCODING_WANSUNG , FT_ENCODING_MS_JOHAB = FT_ENCODING_JOHAB , FT_ENC_TAG ( FT_ENCODING_ADOBE_STANDARD , 'A', 'D', 'O', 'B' ), FT_ENC_TAG ( FT_ENCODING_ADOBE_EXPERT , 'A', 'D', 'B', 'E' ), FT_ENC_TAG ( FT_ENCODING_ADOBE_CUSTOM , 'A', 'D', 'B', 'C' ), FT_ENC_TAG ( FT_ENCODING_ADOBE_LATIN_1 , 'l', 'a', 't', '1' ), FT_ENC_TAG ( FT_ENCODING_OLD_LATIN_2 , 'l', 'a', 't', '2' ), FT_ENC_TAG ( FT_ENCODING_APPLE_ROMAN , 'a', 'r', 'm', 'n' ) } FT_Encoding ; /* these constants are deprecated; use the corresponding ` FT_Encoding ` */ /* values instead */ # define ft_encoding_none FT_ENCODING_NONE # define ft_encoding_unicode FT_ENCODING_UNICODE # define ft_encoding_symbol FT_ENCODING_MS_SYMBOL # define ft_encoding_latin_1 FT_ENCODING_ADOBE_LATIN_1 # define ft_encoding_latin_2 FT_ENCODING_OLD_LATIN_2 # define ft_encoding_sjis FT_ENCODING_SJIS # define ft_encoding_gb2312 FT_ENCODING_PRC # define ft_encoding_big5 FT_ENCODING_BIG5 # define ft_encoding_wansung FT_ENCODING_WANSUNG # define ft_encoding_johab FT_ENCODING_JOHAB # define ft_encoding_adobe_standard FT_ENCODING_ADOBE_STANDARD # define ft_encoding_adobe_expert FT_ENCODING_ADOBE_EXPERT # define ft_encoding_adobe_custom FT_ENCODING_ADOBE_CUSTOM # define ft_encoding_apple_roman FT_ENCODING_APPLE_ROMAN An enumeration to specify character sets supported by charmaps. Used in the FT_Select_Charmap API function. note Despite the name, this enumeration lists specific character repertories (i.e., charsets), and not text encoding methods (e.g., UTF-8, UTF-16, etc.). Other encodings might be defined in the future. values FT_ENCODING_NONE The encoding value 0 is reserved for all formats except BDF, PCF, and Windows FNT; see below for more information. FT_ENCODING_UNICODE The Unicode character set. This value covers all versions of the Unicode repertoire, including ASCII and Latin-1. Most fonts include a Unicode charmap, but not all of them. For example, if you want to access Unicode value U+1F028 (and the font contains it), use value 0x1F028 as the input value for FT_Get_Char_Index . FT_ENCODING_MS_SYMBOL Microsoft Symbol encoding, used to encode mathematical symbols and wingdings. For more information, see \u2018 https://www.microsoft.com/typography/otspec/recom.htm#non-standard-symbol-fonts \u2019, \u2018 http://www.kostis.net/charsets/symbol.htm \u2019, and \u2018 http://www.kostis.net/charsets/wingding.htm \u2019. This encoding uses character codes from the PUA (Private Unicode Area) in the range U+F020-U+F0FF. FT_ENCODING_SJIS Shift JIS encoding for Japanese. More info at \u2018 https://en.wikipedia.org/wiki/Shift_JIS \u2019. See note on multi-byte encodings below. FT_ENCODING_PRC Corresponds to encoding systems mainly for Simplified Chinese as used in People's Republic of China (PRC). The encoding layout is based on GB 2312 and its supersets GBK and GB 18030. FT_ENCODING_BIG5 Corresponds to an encoding system for Traditional Chinese as used in Taiwan and Hong Kong. FT_ENCODING_WANSUNG Corresponds to the Korean encoding system known as Extended Wansung (MS Windows code page 949). For more information see \u2018 https://www.unicode.org/Public/MAPPINGS/VENDORS/MICSFT/WindowsBestFit/bestfit949.txt \u2019. FT_ENCODING_JOHAB The Korean standard character set (KS C 5601-1992), which corresponds to MS Windows code page 1361. This character set includes all possible Hangul character combinations. FT_ENCODING_ADOBE_LATIN_1 Corresponds to a Latin-1 encoding as defined in a Type 1 PostScript font. It is limited to 256 character codes. FT_ENCODING_ADOBE_STANDARD Adobe Standard encoding, as found in Type 1, CFF, and OpenType/CFF fonts. It is limited to 256 character codes. FT_ENCODING_ADOBE_EXPERT Adobe Expert encoding, as found in Type 1, CFF, and OpenType/CFF fonts. It is limited to 256 character codes. FT_ENCODING_ADOBE_CUSTOM Corresponds to a custom encoding, as found in Type 1, CFF, and OpenType/CFF fonts. It is limited to 256 character codes. FT_ENCODING_APPLE_ROMAN Apple roman encoding. Many TrueType and OpenType fonts contain a charmap for this 8-bit encoding, since older versions of Mac OS are able to use it. FT_ENCODING_OLD_LATIN_2 This value is deprecated and was neither used nor reported by FreeType. Don't use or test for it. FT_ENCODING_MS_SJIS Same as FT_ENCODING_SJIS. Deprecated. FT_ENCODING_MS_GB2312 Same as FT_ENCODING_PRC. Deprecated. FT_ENCODING_MS_BIG5 Same as FT_ENCODING_BIG5. Deprecated. FT_ENCODING_MS_WANSUNG Same as FT_ENCODING_WANSUNG. Deprecated. FT_ENCODING_MS_JOHAB Same as FT_ENCODING_JOHAB. Deprecated. note By default, FreeType enables a Unicode charmap and tags it with FT_ENCODING_UNICODE when it is either provided or can be generated from PostScript glyph name dictionaries in the font file. All other encodings are considered legacy and tagged only if explicitly defined in the font file. Otherwise, FT_ENCODING_NONE is used. FT_ENCODING_NONE is set by the BDF and PCF drivers if the charmap is neither Unicode nor ISO-8859-1 (otherwise it is set to FT_ENCODING_UNICODE ). Use FT_Get_BDF_Charset_ID to find out which encoding is really present. If, for example, the cs_registry field is \u2018KOI8\u2019 and the cs_encoding field is \u2018R\u2019, the font is encoded in KOI8-R. FT_ENCODING_NONE is always set (with a single exception) by the winfonts driver. Use FT_Get_WinFNT_Header and examine the charset field of the FT_WinFNT_HeaderRec structure to find out which encoding is really present. For example, FT_WinFNT_ID_CP1251 (204) means Windows code page 1251 (for Russian). FT_ENCODING_NONE is set if platform_id is TT_PLATFORM_MACINTOSH and encoding_id is not TT_MAC_ID_ROMAN (otherwise it is set to FT_ENCODING_APPLE_ROMAN ). If platform_id is TT_PLATFORM_MACINTOSH , use the function FT_Get_CMap_Language_ID to query the Mac language ID that may be needed to be able to distinguish Apple encoding variants. See https://www.unicode.org/Public/MAPPINGS/VENDORS/APPLE/Readme.txt to get an idea how to do that. Basically, if the language ID is 0, don't use it, otherwise subtract 1 from the language ID. Then examine encoding_id . If, for example, encoding_id is TT_MAC_ID_ROMAN and the language ID (minus 1) is TT_MAC_LANGID_GREEK , it is the Greek encoding, not Roman. TT_MAC_ID_ARABIC with TT_MAC_LANGID_FARSI means the Farsi variant the Arabic encoding. FT_ENC_TAG \u00b6 Defined in FT_FREETYPE_H (freetype/freetype.h). # ifndef FT_ENC_TAG # define FT_ENC_TAG ( value, a, b, c, d ) \\ value = ( ( ( FT_UInt32 )(a) << 24 ) | \\ ( ( FT_UInt32 )(b) << 16 ) | \\ ( ( FT_UInt32 )(c) << 8 ) | \\ ( FT_UInt32 )(d) ) # endif /* FT_ENC_TAG */ This macro converts four-letter tags into an unsigned long. It is used to define \u2018encoding\u2019 identifiers (see FT_Encoding ). note Since many 16-bit compilers don't like 32-bit enumerations, you should redefine this macro in case of problems to something like this: #define FT_ENC_TAG( value, a, b, c, d ) value to get a simple enumeration without assigning special numbers. FT_FaceRec \u00b6 Defined in FT_FREETYPE_H (freetype/freetype.h). typedef struct FT_FaceRec_ { FT_Long num_faces; FT_Long face_index; FT_Long face_flags; FT_Long style_flags; FT_Long num_glyphs; FT_String * family_name; FT_String * style_name; FT_Int num_fixed_sizes; FT_Bitmap_Size * available_sizes; FT_Int num_charmaps; FT_CharMap * charmaps; FT_Generic generic; /*# The following member variables (down to `underline_thickness`) */ /*# are only relevant to scalable outlines; cf. @ FT_Bitmap_Size */ /*# for bitmap fonts. */ FT_BBox bbox; FT_UShort units_per_EM; FT_Short ascender; FT_Short descender; FT_Short height; FT_Short max_advance_width; FT_Short max_advance_height; FT_Short underline_position; FT_Short underline_thickness; FT_GlyphSlot glyph; FT_Size size; FT_CharMap charmap; /*@private begin */ FT_Driver driver; FT_Memory memory; FT_Stream stream; FT_ListRec sizes_list; FT_Generic autohint; /* face-specific auto-hinter data */ void * extensions; /* unused */ FT_Face_Internal internal; /*@private end */ } FT_FaceRec ; FreeType root face class structure. A face object models a typeface in a font file. fields num_faces The number of faces in the font file. Some font formats can have multiple faces in a single font file. face_index This field holds two different values. Bits 0-15 are the index of the face in the font file (starting with value 0). They are set to 0 if there is only one face in the font file. [Since 2.6.1] Bits 16-30 are relevant to GX and OpenType variation fonts only, holding the named instance index for the current face index (starting with value 1; value 0 indicates font access without a named instance). For non-variation fonts, bits 16-30 are ignored. If we have the third named instance of face 4, say, face_index is set to 0x00030004. Bit 31 is always zero (this is, face_index is always a positive value). [Since 2.9] Changing the design coordinates with FT_Set_Var_Design_Coordinates or FT_Set_Var_Blend_Coordinates does not influence the named instance index value (only FT_Set_Named_Instance does that). face_flags A set of bit flags that give important information about the face; see FT_FACE_FLAG_XXX for the details. style_flags The lower 16 bits contain a set of bit flags indicating the style of the face; see FT_STYLE_FLAG_XXX for the details. [Since 2.6.1] Bits 16-30 hold the number of named instances available for the current face if we have a GX or OpenType variation (sub)font. Bit 31 is always zero (this is, style_flags is always a positive value). Note that a variation font has always at least one named instance, namely the default instance. num_glyphs The number of glyphs in the face. If the face is scalable and has sbits (see num_fixed_sizes ), it is set to the number of outline glyphs. For CID-keyed fonts (not in an SFNT wrapper) this value gives the highest CID used in the font. family_name The face's family name. This is an ASCII string, usually in English, that describes the typeface's family (like \u2018Times New Roman\u2019, \u2018Bodoni\u2019, \u2018Garamond\u2019, etc). This is a least common denominator used to list fonts. Some formats (TrueType & OpenType) provide localized and Unicode versions of this string. Applications should use the format-specific interface to access them. Can be NULL (e.g., in fonts embedded in a PDF file). In case the font doesn't provide a specific family name entry, FreeType tries to synthesize one, deriving it from other name entries. style_name The face's style name. This is an ASCII string, usually in English, that describes the typeface's style (like \u2018Italic\u2019, \u2018Bold\u2019, \u2018Condensed\u2019, etc). Not all font formats provide a style name, so this field is optional, and can be set to NULL . As for family_name , some formats provide localized and Unicode versions of this string. Applications should use the format-specific interface to access them. num_fixed_sizes The number of bitmap strikes in the face. Even if the face is scalable, there might still be bitmap strikes, which are called \u2018sbits\u2019 in that case. available_sizes An array of FT_Bitmap_Size for all bitmap strikes in the face. It is set to NULL if there is no bitmap strike. Note that FreeType tries to sanitize the strike data since they are sometimes sloppy or incorrect, but this can easily fail. num_charmaps The number of charmaps in the face. charmaps An array of the charmaps of the face. generic A field reserved for client uses. See the FT_Generic type description. bbox The font bounding box. Coordinates are expressed in font units (see units_per_EM ). The box is large enough to contain any glyph from the font. Thus, bbox.yMax can be seen as the \u2018maximum ascender\u2019, and bbox.yMin as the \u2018minimum descender\u2019. Only relevant for scalable formats. Note that the bounding box might be off by (at least) one pixel for hinted fonts. See FT_Size_Metrics for further discussion. Note that the bounding box does not vary in OpenType variable fonts and should only be used in relation to the default instance. units_per_EM The number of font units per EM square for this face. This is typically 2048 for TrueType fonts, and 1000 for Type 1 fonts. Only relevant for scalable formats. ascender The typographic ascender of the face, expressed in font units. For font formats not having this information, it is set to bbox.yMax . Only relevant for scalable formats. descender The typographic descender of the face, expressed in font units. For font formats not having this information, it is set to bbox.yMin . Note that this field is negative for values below the baseline. Only relevant for scalable formats. height This value is the vertical distance between two consecutive baselines, expressed in font units. It is always positive. Only relevant for scalable formats. If you want the global glyph height, use ascender - descender . max_advance_width The maximum advance width, in font units, for all glyphs in this face. This can be used to make word wrapping computations faster. Only relevant for scalable formats. max_advance_height The maximum advance height, in font units, for all glyphs in this face. This is only relevant for vertical layouts, and is set to height for fonts that do not provide vertical metrics. Only relevant for scalable formats. underline_position The position, in font units, of the underline line for this face. It is the center of the underlining stem. Only relevant for scalable formats. underline_thickness The thickness, in font units, of the underline for this face. Only relevant for scalable formats. glyph The face's associated glyph slot(s). size The current active size for this face. charmap The current active charmap for this face. note Fields may be changed after a call to FT_Attach_File or FT_Attach_Stream . For an OpenType variation font, the values of the following fields can change after a call to FT_Set_Var_Design_Coordinates (and friends) if the font contains an \u2018MVAR\u2019 table: ascender , descender , height , underline_position , and underline_thickness . Especially for TrueType fonts see also the documentation for FT_Size_Metrics . FT_HAS_HORIZONTAL \u00b6 Defined in FT_FREETYPE_H (freetype/freetype.h). # define FT_HAS_HORIZONTAL ( face ) \\ ( !!( (face)->face_flags & FT_FACE_FLAG_HORIZONTAL ) ) A macro that returns true whenever a face object contains horizontal metrics (this is true for all font formats though). also FT_HAS_VERTICAL can be used to check for vertical metrics. FT_HAS_VERTICAL \u00b6 Defined in FT_FREETYPE_H (freetype/freetype.h). # define FT_HAS_VERTICAL ( face ) \\ ( !!( (face)->face_flags & FT_FACE_FLAG_VERTICAL ) ) A macro that returns true whenever a face object contains real vertical metrics (and not only synthesized ones). FT_HAS_KERNING \u00b6 Defined in FT_FREETYPE_H (freetype/freetype.h). # define FT_HAS_KERNING ( face ) \\ ( !!( (face)->face_flags & FT_FACE_FLAG_KERNING ) ) A macro that returns true whenever a face object contains kerning data that can be accessed with FT_Get_Kerning . FT_HAS_FIXED_SIZES \u00b6 Defined in FT_FREETYPE_H (freetype/freetype.h). # define FT_HAS_FIXED_SIZES ( face ) \\ ( !!( (face)->face_flags & FT_FACE_FLAG_FIXED_SIZES ) ) A macro that returns true whenever a face object contains some embedded bitmaps. See the available_sizes field of the FT_FaceRec structure. FT_HAS_GLYPH_NAMES \u00b6 Defined in FT_FREETYPE_H (freetype/freetype.h). # define FT_HAS_GLYPH_NAMES ( face ) \\ ( !!( (face)->face_flags & FT_FACE_FLAG_GLYPH_NAMES ) ) A macro that returns true whenever a face object contains some glyph names that can be accessed through FT_Get_Glyph_Name . FT_HAS_COLOR \u00b6 Defined in FT_FREETYPE_H (freetype/freetype.h). # define FT_HAS_COLOR ( face ) \\ ( !!( (face)->face_flags & FT_FACE_FLAG_COLOR ) ) A macro that returns true whenever a face object contains tables for color glyphs. since 2.5.1 FT_HAS_MULTIPLE_MASTERS \u00b6 Defined in FT_FREETYPE_H (freetype/freetype.h). # define FT_HAS_MULTIPLE_MASTERS ( face ) \\ ( !!( (face)->face_flags & FT_FACE_FLAG_MULTIPLE_MASTERS ) ) A macro that returns true whenever a face object contains some multiple masters. The functions provided by FT_MULTIPLE_MASTERS_H are then available to choose the exact design you want. FT_IS_SFNT \u00b6 Defined in FT_FREETYPE_H (freetype/freetype.h). # define FT_IS_SFNT ( face ) \\ ( !!( (face)->face_flags & FT_FACE_FLAG_SFNT ) ) A macro that returns true whenever a face object contains a font whose format is based on the SFNT storage scheme. This usually means: TrueType fonts, OpenType fonts, as well as SFNT-based embedded bitmap fonts. If this macro is true, all functions defined in FT_SFNT_NAMES_H and FT_TRUETYPE_TABLES_H are available. FT_IS_SCALABLE \u00b6 Defined in FT_FREETYPE_H (freetype/freetype.h). # define FT_IS_SCALABLE ( face ) \\ ( !!( (face)->face_flags & FT_FACE_FLAG_SCALABLE ) ) A macro that returns true whenever a face object contains a scalable font face (true for TrueType, Type 1, Type 42, CID, OpenType/CFF, and PFR font formats). FT_IS_FIXED_WIDTH \u00b6 Defined in FT_FREETYPE_H (freetype/freetype.h). # define FT_IS_FIXED_WIDTH ( face ) \\ ( !!( (face)->face_flags & FT_FACE_FLAG_FIXED_WIDTH ) ) A macro that returns true whenever a face object contains a font face that contains fixed-width (or \u2018monospace\u2019, \u2018fixed-pitch\u2019, etc.) glyphs. FT_IS_CID_KEYED \u00b6 Defined in FT_FREETYPE_H (freetype/freetype.h). # define FT_IS_CID_KEYED ( face ) \\ ( !!( (face)->face_flags & FT_FACE_FLAG_CID_KEYED ) ) A macro that returns true whenever a face object contains a CID-keyed font. See the discussion of FT_FACE_FLAG_CID_KEYED for more details. If this macro is true, all functions defined in FT_CID_H are available. FT_IS_TRICKY \u00b6 Defined in FT_FREETYPE_H (freetype/freetype.h). # define FT_IS_TRICKY ( face ) \\ ( !!( (face)->face_flags & FT_FACE_FLAG_TRICKY ) ) A macro that returns true whenever a face represents a \u2018tricky\u2019 font. See the discussion of FT_FACE_FLAG_TRICKY for more details. FT_IS_NAMED_INSTANCE \u00b6 Defined in FT_FREETYPE_H (freetype/freetype.h). # define FT_IS_NAMED_INSTANCE ( face ) \\ ( !!( (face)->face_index & 0x7FFF0000L ) ) A macro that returns true whenever a face object is a named instance of a GX or OpenType variation font. [Since 2.9] Changing the design coordinates with FT_Set_Var_Design_Coordinates or FT_Set_Var_Blend_Coordinates does not influence the return value of this macro (only FT_Set_Named_Instance does that). since 2.7 FT_IS_VARIATION \u00b6 Defined in FT_FREETYPE_H (freetype/freetype.h). # define FT_IS_VARIATION ( face ) \\ ( !!( (face)->face_flags & FT_FACE_FLAG_VARIATION ) ) A macro that returns true whenever a face object has been altered by FT_Set_MM_Design_Coordinates , FT_Set_Var_Design_Coordinates , or FT_Set_Var_Blend_Coordinates . since 2.9 FT_SizeRec \u00b6 Defined in FT_FREETYPE_H (freetype/freetype.h). typedef struct FT_SizeRec_ { FT_Face face; /* parent face object */ FT_Generic generic; /* generic pointer for client uses */ FT_Size_Metrics metrics; /* size metrics */ FT_Size_Internal internal; } FT_SizeRec ; FreeType root size class structure. A size object models a face object at a given size. fields face Handle to the parent face object. generic A typeless pointer, unused by the FreeType library or any of its drivers. It can be used by client applications to link their own data to each size object. metrics Metrics for this size object. This field is read-only. FT_Size_Metrics \u00b6 Defined in FT_FREETYPE_H (freetype/freetype.h). typedef struct FT_Size_Metrics_ { FT_UShort x_ppem; /* horizontal pixels per EM */ FT_UShort y_ppem; /* vertical pixels per EM */ FT_Fixed x_scale; /* scaling values used to convert font */ FT_Fixed y_scale; /* units to 26.6 fractional pixels */ FT_Pos ascender; /* ascender in 26.6 frac. pixels */ FT_Pos descender; /* descender in 26.6 frac. pixels */ FT_Pos height; /* text height in 26.6 frac. pixels */ FT_Pos max_advance; /* max horizontal advance, in 26.6 pixels */ } FT_Size_Metrics ; The size metrics structure gives the metrics of a size object. fields x_ppem The width of the scaled EM square in pixels, hence the term \u2018ppem\u2019 (pixels per EM). It is also referred to as \u2018nominal width\u2019. y_ppem The height of the scaled EM square in pixels, hence the term \u2018ppem\u2019 (pixels per EM). It is also referred to as \u2018nominal height\u2019. x_scale A 16.16 fractional scaling value to convert horizontal metrics from font units to 26.6 fractional pixels. Only relevant for scalable font formats. y_scale A 16.16 fractional scaling value to convert vertical metrics from font units to 26.6 fractional pixels. Only relevant for scalable font formats. ascender The ascender in 26.6 fractional pixels, rounded up to an integer value. See FT_FaceRec for the details. descender The descender in 26.6 fractional pixels, rounded down to an integer value. See FT_FaceRec for the details. height The height in 26.6 fractional pixels, rounded to an integer value. See FT_FaceRec for the details. max_advance The maximum advance width in 26.6 fractional pixels, rounded to an integer value. See FT_FaceRec for the details. note The scaling values, if relevant, are determined first during a size changing operation. The remaining fields are then set by the driver. For scalable formats, they are usually set to scaled values of the corresponding fields in FT_FaceRec . Some values like ascender or descender are rounded for historical reasons; more precise values (for outline fonts) can be derived by scaling the corresponding FT_FaceRec values manually, with code similar to the following. scaled_ascender = FT_MulFix( face->ascender, size_metrics->y_scale ); Note that due to glyph hinting and the selected rendering mode these values are usually not exact; consequently, they must be treated as unreliable with an error margin of at least one pixel! Indeed, the only way to get the exact metrics is to render all glyphs. As this would be a definite performance hit, it is up to client applications to perform such computations. The FT_Size_Metrics structure is valid for bitmap fonts also. TrueType fonts with native bytecode hinting All applications that handle TrueType fonts with native hinting must be aware that TTFs expect different rounding of vertical font dimensions. The application has to cater for this, especially if it wants to rely on a TTF's vertical data (for example, to properly align box characters vertically). Only the application knows in advance that it is going to use native hinting for TTFs! FreeType, on the other hand, selects the hinting mode not at the time of creating an FT_Size object but much later, namely while calling FT_Load_Glyph . Here is some pseudo code that illustrates a possible solution. font_format = FT_Get_Font_Format( face ); if ( !strcmp( font_format, \"TrueType\" ) && do_native_bytecode_hinting ) { ascender = ROUND( FT_MulFix( face->ascender, size_metrics->y_scale ) ); descender = ROUND( FT_MulFix( face->descender, size_metrics->y_scale ) ); } else { ascender = size_metrics->ascender; descender = size_metrics->descender; } height = size_metrics->height; max_advance = size_metrics->max_advance; FT_GlyphSlotRec \u00b6 Defined in FT_FREETYPE_H (freetype/freetype.h). typedef struct FT_GlyphSlotRec_ { FT_Library library; FT_Face face; FT_GlyphSlot next; FT_UInt glyph_index; /* new in 2.10; was reserved previously */ FT_Generic generic; FT_Glyph_Metrics metrics; FT_Fixed linearHoriAdvance; FT_Fixed linearVertAdvance; FT_Vector advance; FT_Glyph_Format format; FT_Bitmap bitmap; FT_Int bitmap_left; FT_Int bitmap_top; FT_Outline outline; FT_UInt num_subglyphs; FT_SubGlyph subglyphs; void * control_data; long control_len; FT_Pos lsb_delta; FT_Pos rsb_delta; void * other; FT_Slot_Internal internal; } FT_GlyphSlotRec ; FreeType root glyph slot class structure. A glyph slot is a container where individual glyphs can be loaded, be they in outline or bitmap format. fields library A handle to the FreeType library instance this slot belongs to. face A handle to the parent face object. next In some cases (like some font tools), several glyph slots per face object can be a good thing. As this is rare, the glyph slots are listed through a direct, single-linked list using its next field. glyph_index [Since 2.10] The glyph index passed as an argument to FT_Load_Glyph while initializing the glyph slot. generic A typeless pointer unused by the FreeType library or any of its drivers. It can be used by client applications to link their own data to each glyph slot object. metrics The metrics of the last loaded glyph in the slot. The returned values depend on the last load flags (see the FT_Load_Glyph API function) and can be expressed either in 26.6 fractional pixels or font units. Note that even when the glyph image is transformed, the metrics are not. linearHoriAdvance The advance width of the unhinted glyph. Its value is expressed in 16.16 fractional pixels, unless FT_LOAD_LINEAR_DESIGN is set when loading the glyph. This field can be important to perform correct WYSIWYG layout. Only relevant for outline glyphs. linearVertAdvance The advance height of the unhinted glyph. Its value is expressed in 16.16 fractional pixels, unless FT_LOAD_LINEAR_DESIGN is set when loading the glyph. This field can be important to perform correct WYSIWYG layout. Only relevant for outline glyphs. advance This shorthand is, depending on FT_LOAD_IGNORE_TRANSFORM , the transformed (hinted) advance width for the glyph, in 26.6 fractional pixel format. As specified with FT_LOAD_VERTICAL_LAYOUT , it uses either the horiAdvance or the vertAdvance value of metrics field. format This field indicates the format of the image contained in the glyph slot. Typically FT_GLYPH_FORMAT_BITMAP , FT_GLYPH_FORMAT_OUTLINE , or FT_GLYPH_FORMAT_COMPOSITE , but other values are possible. bitmap This field is used as a bitmap descriptor. Note that the address and content of the bitmap buffer can change between calls of FT_Load_Glyph and a few other functions. bitmap_left The bitmap's left bearing expressed in integer pixels. bitmap_top The bitmap's top bearing expressed in integer pixels. This is the distance from the baseline to the top-most glyph scanline, upwards y coordinates being positive . outline The outline descriptor for the current glyph image if its format is FT_GLYPH_FORMAT_OUTLINE . Once a glyph is loaded, outline can be transformed, distorted, emboldened, etc. However, it must not be freed. [Since 2.10.1] If FT_LOAD_NO_SCALE is set, outline coordinates of OpenType variation fonts for a selected instance are internally handled as 26.6 fractional font units but returned as (rounded) integers, as expected. To get unrounded font units, don't use FT_LOAD_NO_SCALE but load the glyph with FT_LOAD_NO_HINTING and scale it, using the font's units_per_EM value as the ppem. num_subglyphs The number of subglyphs in a composite glyph. This field is only valid for the composite glyph format that should normally only be loaded with the FT_LOAD_NO_RECURSE flag. subglyphs An array of subglyph descriptors for composite glyphs. There are num_subglyphs elements in there. Currently internal to FreeType. control_data Certain font drivers can also return the control data for a given glyph image (e.g. TrueType bytecode, Type 1 charstrings, etc.). This field is a pointer to such data; it is currently internal to FreeType. control_len This is the length in bytes of the control data. Currently internal to FreeType. other Reserved. lsb_delta The difference between hinted and unhinted left side bearing while auto-hinting is active. Zero otherwise. rsb_delta The difference between hinted and unhinted right side bearing while auto-hinting is active. Zero otherwise. note If FT_Load_Glyph is called with default flags (see FT_LOAD_DEFAULT ) the glyph image is loaded in the glyph slot in its native format (e.g., an outline glyph for TrueType and Type 1 formats). [Since 2.9] The prospective bitmap metrics are calculated according to FT_LOAD_TARGET_XXX and other flags even for the outline glyph, even if FT_LOAD_RENDER is not set. This image can later be converted into a bitmap by calling FT_Render_Glyph . This function searches the current renderer for the native image's format, then invokes it. The renderer is in charge of transforming the native image through the slot's face transformation fields, then converting it into a bitmap that is returned in slot->bitmap . Note that slot->bitmap_left and slot->bitmap_top are also used to specify the position of the bitmap relative to the current pen position (e.g., coordinates (0,0) on the baseline). Of course, slot->format is also changed to FT_GLYPH_FORMAT_BITMAP . Here is a small pseudo code fragment that shows how to use lsb_delta and rsb_delta to do fractional positioning of glyphs: FT_GlyphSlot slot = face->glyph; FT_Pos origin_x = 0; for all glyphs do <load glyph with `FT_Load_Glyph'> FT_Outline_Translate( slot->outline, origin_x & 63, 0 ); <save glyph image, or render glyph, or ...> <compute kern between current and next glyph and add it to `origin_x'> origin_x += slot->advance.x; origin_x += slot->lsb_delta - slot->rsb_delta; endfor Here is another small pseudo code fragment that shows how to use lsb_delta and rsb_delta to improve integer positioning of glyphs: FT_GlyphSlot slot = face->glyph; FT_Pos origin_x = 0; FT_Pos prev_rsb_delta = 0; for all glyphs do <compute kern between current and previous glyph and add it to `origin_x'> <load glyph with `FT_Load_Glyph'> if ( prev_rsb_delta - slot->lsb_delta > 32 ) origin_x -= 64; else if ( prev_rsb_delta - slot->lsb_delta < -31 ) origin_x += 64; prev_rsb_delta = slot->rsb_delta; <save glyph image, or render glyph, or ...> origin_x += slot->advance.x; endfor If you use strong auto-hinting, you must apply these delta values! Otherwise you will experience far too large inter-glyph spacing at small rendering sizes in most cases. Note that it doesn't harm to use the above code for other hinting modes also, since the delta values are zero then. FT_Glyph_Metrics \u00b6 Defined in FT_FREETYPE_H (freetype/freetype.h). typedef struct FT_Glyph_Metrics_ { FT_Pos width; FT_Pos height; FT_Pos horiBearingX; FT_Pos horiBearingY; FT_Pos horiAdvance; FT_Pos vertBearingX; FT_Pos vertBearingY; FT_Pos vertAdvance; } FT_Glyph_Metrics ; A structure to model the metrics of a single glyph. The values are expressed in 26.6 fractional pixel format; if the flag FT_LOAD_NO_SCALE has been used while loading the glyph, values are expressed in font units instead. fields width The glyph's width. height The glyph's height. horiBearingX Left side bearing for horizontal layout. horiBearingY Top side bearing for horizontal layout. horiAdvance Advance width for horizontal layout. vertBearingX Left side bearing for vertical layout. vertBearingY Top side bearing for vertical layout. Larger positive values mean further below the vertical glyph origin. vertAdvance Advance height for vertical layout. Positive values mean the glyph has a positive advance downward. note If not disabled with FT_LOAD_NO_HINTING , the values represent dimensions of the hinted glyph (in case hinting is applicable). Stroking a glyph with an outside border does not increase horiAdvance or vertAdvance ; you have to manually adjust these values to account for the added width and height. FreeType doesn't use the \u2018VORG\u2019 table data for CFF fonts because it doesn't have an interface to quickly retrieve the glyph height. The y coordinate of the vertical origin can be simply computed as vertBearingY + height after loading a glyph. FT_SubGlyph \u00b6 Defined in FT_FREETYPE_H (freetype/freetype.h). typedef struct FT_SubGlyphRec_* FT_SubGlyph ; The subglyph structure is an internal object used to describe subglyphs (for example, in the case of composites). note The subglyph implementation is not part of the high-level API, hence the forward structure declaration. You can however retrieve subglyph information with FT_Get_SubGlyph_Info . FT_Bitmap_Size \u00b6 Defined in FT_FREETYPE_H (freetype/freetype.h). typedef struct FT_Bitmap_Size_ { FT_Short height; FT_Short width; FT_Pos size; FT_Pos x_ppem; FT_Pos y_ppem; } FT_Bitmap_Size ; This structure models the metrics of a bitmap strike (i.e., a set of glyphs for a given point size and resolution) in a bitmap font. It is used for the available_sizes field of FT_Face . fields height The vertical distance, in pixels, between two consecutive baselines. It is always positive. width The average width, in pixels, of all glyphs in the strike. size The nominal size of the strike in 26.6 fractional points. This field is not very useful. x_ppem The horizontal ppem (nominal width) in 26.6 fractional pixels. y_ppem The vertical ppem (nominal height) in 26.6 fractional pixels. note Windows FNT: The nominal size given in a FNT font is not reliable. If the driver finds it incorrect, it sets size to some calculated values, and x_ppem and y_ppem to the pixel width and height given in the font, respectively. TrueType embedded bitmaps: size , width , and height values are not contained in the bitmap strike itself. They are computed from the global font parameters. FT_Init_FreeType \u00b6 Defined in FT_FREETYPE_H (freetype/freetype.h). FT_EXPORT( FT_Error ) FT_Init_FreeType ( FT_Library *alibrary ); Initialize a new FreeType library object. The set of modules that are registered by this function is determined at build time. output alibrary A handle to a new library object. return FreeType error code. 0 means success. note In case you want to provide your own memory allocating routines, use FT_New_Library instead, followed by a call to FT_Add_Default_Modules (or a series of calls to FT_Add_Module ) and FT_Set_Default_Properties . See the documentation of FT_Library and FT_Face for multi-threading issues. If you need reference-counting (cf. FT_Reference_Library ), use FT_New_Library and FT_Done_Library . If compilation option FT_CONFIG_OPTION_ENVIRONMENT_PROPERTIES is set, this function reads the FREETYPE_PROPERTIES environment variable to control driver properties. See section \u2018 Driver properties \u2019 for more. FT_Done_FreeType \u00b6 Defined in FT_FREETYPE_H (freetype/freetype.h). FT_EXPORT( FT_Error ) FT_Done_FreeType ( FT_Library library ); Destroy a given FreeType library object and all of its children, including resources, drivers, faces, sizes, etc. input library A handle to the target library object. return FreeType error code. 0 means success. FT_New_Face \u00b6 Defined in FT_FREETYPE_H (freetype/freetype.h). FT_EXPORT( FT_Error ) FT_New_Face ( FT_Library library, const char * filepathname, FT_Long face_index, FT_Face *aface ); Call FT_Open_Face to open a font by its pathname. inout library A handle to the library resource. input pathname A path to the font file. face_index See FT_Open_Face for a detailed description of this parameter. output aface A handle to a new face object. If face_index is greater than or equal to zero, it must be non- NULL . return FreeType error code. 0 means success. note Use FT_Done_Face to destroy the created FT_Face object (along with its slot and sizes). FT_Done_Face \u00b6 Defined in FT_FREETYPE_H (freetype/freetype.h). FT_EXPORT( FT_Error ) FT_Done_Face ( FT_Face face ); Discard a given face object, as well as all of its child slots and sizes. input face A handle to a target face object. return FreeType error code. 0 means success. note See the discussion of reference counters in the description of FT_Reference_Face . FT_Reference_Face \u00b6 Defined in FT_FREETYPE_H (freetype/freetype.h). FT_EXPORT( FT_Error ) FT_Reference_Face ( FT_Face face ); A counter gets initialized to 1 at the time an FT_Face structure is created. This function increments the counter. FT_Done_Face then only destroys a face if the counter is 1, otherwise it simply decrements the counter. This function helps in managing life-cycles of structures that reference FT_Face objects. input face A handle to a target face object. return FreeType error code. 0 means success. since 2.4.2 FT_New_Memory_Face \u00b6 Defined in FT_FREETYPE_H (freetype/freetype.h). FT_EXPORT( FT_Error ) FT_New_Memory_Face ( FT_Library library, const FT_Byte * file_base, FT_Long file_size, FT_Long face_index, FT_Face *aface ); Call FT_Open_Face to open a font that has been loaded into memory. inout library A handle to the library resource. input file_base A pointer to the beginning of the font data. file_size The size of the memory chunk used by the font data. face_index See FT_Open_Face for a detailed description of this parameter. output aface A handle to a new face object. If face_index is greater than or equal to zero, it must be non- NULL . return FreeType error code. 0 means success. note You must not deallocate the memory before calling FT_Done_Face . FT_Face_Properties \u00b6 Defined in FT_FREETYPE_H (freetype/freetype.h). FT_EXPORT( FT_Error ) FT_Face_Properties ( FT_Face face, FT_UInt num_properties, FT_Parameter * properties ); Set or override certain (library or module-wide) properties on a face-by-face basis. Useful for finer-grained control and avoiding locks on shared structures (threads can modify their own faces as they see fit). Contrary to FT_Property_Set , this function uses FT_Parameter so that you can pass multiple properties to the target face in one call. Note that only a subset of the available properties can be controlled. FT_PARAM_TAG_STEM_DARKENING (stem darkening, corresponding to the property no-stem-darkening provided by the \u2018autofit\u2019, \u2018cff\u2019, \u2018type1\u2019, and \u2018t1cid\u2019 modules; see no-stem-darkening ). FT_PARAM_TAG_LCD_FILTER_WEIGHTS (LCD filter weights, corresponding to function FT_Library_SetLcdFilterWeights ). FT_PARAM_TAG_RANDOM_SEED (seed value for the CFF, Type 1, and CID \u2018random\u2019 operator, corresponding to the random-seed property provided by the \u2018cff\u2019, \u2018type1\u2019, and \u2018t1cid\u2019 modules; see random-seed ). Pass NULL as data in FT_Parameter for a given tag to reset the option and use the library or module default again. input face A handle to the source face object. num_properties The number of properties that follow. properties A handle to an FT_Parameter array with num_properties elements. return FreeType error code. 0 means success. example Here is an example that sets three properties. You must define FT_CONFIG_OPTION_SUBPIXEL_RENDERING to make the LCD filter examples work. FT_Parameter property1; FT_Bool darken_stems = 1; FT_Parameter property2; FT_LcdFiveTapFilter custom_weight = { 0x11, 0x44, 0x56, 0x44, 0x11 }; FT_Parameter property3; FT_Int32 random_seed = 314159265; FT_Parameter properties[3] = { property1, property2, property3 }; property1.tag = FT_PARAM_TAG_STEM_DARKENING; property1.data = &darken_stems; property2.tag = FT_PARAM_TAG_LCD_FILTER_WEIGHTS; property2.data = custom_weight; property3.tag = FT_PARAM_TAG_RANDOM_SEED; property3.data = &random_seed; FT_Face_Properties( face, 3, properties ); The next example resets a single property to its default value. FT_Parameter property; property.tag = FT_PARAM_TAG_LCD_FILTER_WEIGHTS; property.data = NULL; FT_Face_Properties( face, 1, &property ); since 2.8 FT_Open_Face \u00b6 Defined in FT_FREETYPE_H (freetype/freetype.h). FT_EXPORT( FT_Error ) FT_Open_Face ( FT_Library library, const FT_Open_Args * args, FT_Long face_index, FT_Face *aface ); Create a face object from a given resource described by FT_Open_Args . inout library A handle to the library resource. input args A pointer to an FT_Open_Args structure that must be filled by the caller. face_index This field holds two different values. Bits 0-15 are the index of the face in the font file (starting with value 0). Set it to 0 if there is only one face in the font file. [Since 2.6.1] Bits 16-30 are relevant to GX and OpenType variation fonts only, specifying the named instance index for the current face index (starting with value 1; value 0 makes FreeType ignore named instances). For non-variation fonts, bits 16-30 are ignored. Assuming that you want to access the third named instance in face 4, face_index should be set to 0x00030004. If you want to access face 4 without variation handling, simply set face_index to value 4. FT_Open_Face and its siblings can be used to quickly check whether the font format of a given font resource is supported by FreeType. In general, if the face_index argument is negative, the function's return value is 0 if the font format is recognized, or non-zero otherwise. The function allocates a more or less empty face handle in *aface (if aface isn't NULL ); the only two useful fields in this special case are face->num_faces and face->style_flags . For any negative value of face_index , face->num_faces gives the number of faces within the font file. For the negative value \u2018-(N+1)\u2019 (with \u2018N\u2019 a non-negative 16-bit value), bits 16-30 in face->style_flags give the number of named instances in face \u2018N\u2019 if we have a variation font (or zero otherwise). After examination, the returned FT_Face structure should be deallocated with a call to FT_Done_Face . output aface A handle to a new face object. If face_index is greater than or equal to zero, it must be non- NULL . return FreeType error code. 0 means success. note Unlike FreeType 1.x, this function automatically creates a glyph slot for the face object that can be accessed directly through face->glyph . Each new face object created with this function also owns a default FT_Size object, accessible as face->size . One FT_Library instance can have multiple face objects, this is, FT_Open_Face and its siblings can be called multiple times using the same library argument. See the discussion of reference counters in the description of FT_Reference_Face . example To loop over all faces, use code similar to the following snippet (omitting the error handling). ... FT_Face face; FT_Long i, num_faces; error = FT_Open_Face( library, args, -1, &face ); if ( error ) { ... } num_faces = face->num_faces; FT_Done_Face( face ); for ( i = 0; i < num_faces; i++ ) { ... error = FT_Open_Face( library, args, i, &face ); ... FT_Done_Face( face ); ... } To loop over all valid values for face_index , use something similar to the following snippet, again without error handling. The code accesses all faces immediately (thus only a single call of FT_Open_Face within the do-loop), with and without named instances. ... FT_Face face; FT_Long num_faces = 0; FT_Long num_instances = 0; FT_Long face_idx = 0; FT_Long instance_idx = 0; do { FT_Long id = ( instance_idx << 16 ) + face_idx; error = FT_Open_Face( library, args, id, &face ); if ( error ) { ... } num_faces = face->num_faces; num_instances = face->style_flags >> 16; ... FT_Done_Face( face ); if ( instance_idx < num_instances ) instance_idx++; else { face_idx++; instance_idx = 0; } } while ( face_idx < num_faces ) FT_Open_Args \u00b6 Defined in FT_FREETYPE_H (freetype/freetype.h). typedef struct FT_Open_Args_ { FT_UInt flags; const FT_Byte * memory_base; FT_Long memory_size; FT_String * pathname; FT_Stream stream; FT_Module driver; FT_Int num_params; FT_Parameter * params; } FT_Open_Args ; A structure to indicate how to open a new font file or stream. A pointer to such a structure can be used as a parameter for the functions FT_Open_Face and FT_Attach_Stream . fields flags A set of bit flags indicating how to use the structure. memory_base The first byte of the file in memory. memory_size The size in bytes of the file in memory. pathname A pointer to an 8-bit file pathname. The pointer is not owned by FreeType. stream A handle to a source stream object. driver This field is exclusively used by FT_Open_Face ; it simply specifies the font driver to use for opening the face. If set to NULL , FreeType tries to load the face with each one of the drivers in its list. num_params The number of extra parameters. params Extra parameters passed to the font driver when opening a new face. note The stream type is determined by the contents of flags that are tested in the following order by FT_Open_Face : If the FT_OPEN_MEMORY bit is set, assume that this is a memory file of memory_size bytes, located at memory_address . The data are not copied, and the client is responsible for releasing and destroying them after the corresponding call to FT_Done_Face . Otherwise, if the FT_OPEN_STREAM bit is set, assume that a custom input stream stream is used. Otherwise, if the FT_OPEN_PATHNAME bit is set, assume that this is a normal file and use pathname to open it. If the FT_OPEN_DRIVER bit is set, FT_Open_Face only tries to open the file with the driver whose handler is in driver . If the FT_OPEN_PARAMS bit is set, the parameters given by num_params and params is used. They are ignored otherwise. Ideally, both the pathname and params fields should be tagged as \u2018const\u2019; this is missing for API backward compatibility. In other words, applications should treat them as read-only. FT_Parameter \u00b6 Defined in FT_FREETYPE_H (freetype/freetype.h). typedef struct FT_Parameter_ { FT_ULong tag; FT_Pointer data; } FT_Parameter ; A simple structure to pass more or less generic parameters to FT_Open_Face and FT_Face_Properties . fields tag A four-byte identification tag. data A pointer to the parameter data. note The ID and function of parameters are driver-specific. See section \u2018 Parameter Tags \u2019 for more information. FT_Attach_File \u00b6 Defined in FT_FREETYPE_H (freetype/freetype.h). FT_EXPORT( FT_Error ) FT_Attach_File ( FT_Face face, const char * filepathname ); Call FT_Attach_Stream to attach a file. inout face The target face object. input filepathname The pathname. return FreeType error code. 0 means success. FT_Attach_Stream \u00b6 Defined in FT_FREETYPE_H (freetype/freetype.h). FT_EXPORT( FT_Error ) FT_Attach_Stream ( FT_Face face, FT_Open_Args * parameters ); \u2018Attach\u2019 data to a face object. Normally, this is used to read additional information for the face object. For example, you can attach an AFM file that comes with a Type 1 font to get the kerning values and other metrics. inout face The target face object. input parameters A pointer to FT_Open_Args that must be filled by the caller. return FreeType error code. 0 means success. note The meaning of the \u2018attach\u2019 (i.e., what really happens when the new file is read) is not fixed by FreeType itself. It really depends on the font format (and thus the font driver). Client applications are expected to know what they are doing when invoking this function. Most drivers simply do not implement file or stream attachments. FT_Set_Char_Size \u00b6 Defined in FT_FREETYPE_H (freetype/freetype.h). FT_EXPORT( FT_Error ) FT_Set_Char_Size ( FT_Face face, FT_F26Dot6 char_width, FT_F26Dot6 char_height, FT_UInt horz_resolution, FT_UInt vert_resolution ); Call FT_Request_Size to request the nominal size (in points). inout face A handle to a target face object. input char_width The nominal width, in 26.6 fractional points. char_height The nominal height, in 26.6 fractional points. horz_resolution The horizontal resolution in dpi. vert_resolution The vertical resolution in dpi. return FreeType error code. 0 means success. note While this function allows fractional points as input values, the resulting ppem value for the given resolution is always rounded to the nearest integer. If either the character width or height is zero, it is set equal to the other value. If either the horizontal or vertical resolution is zero, it is set equal to the other value. A character width or height smaller than 1pt is set to 1pt; if both resolution values are zero, they are set to 72dpi. Don't use this function if you are using the FreeType cache API. FT_Set_Pixel_Sizes \u00b6 Defined in FT_FREETYPE_H (freetype/freetype.h). FT_EXPORT( FT_Error ) FT_Set_Pixel_Sizes ( FT_Face face, FT_UInt pixel_width, FT_UInt pixel_height ); Call FT_Request_Size to request the nominal size (in pixels). inout face A handle to the target face object. input pixel_width The nominal width, in pixels. pixel_height The nominal height, in pixels. return FreeType error code. 0 means success. note You should not rely on the resulting glyphs matching or being constrained to this pixel size. Refer to FT_Request_Size to understand how requested sizes relate to actual sizes. Don't use this function if you are using the FreeType cache API. FT_Request_Size \u00b6 Defined in FT_FREETYPE_H (freetype/freetype.h). FT_EXPORT( FT_Error ) FT_Request_Size ( FT_Face face, FT_Size_Request req ); Resize the scale of the active FT_Size object in a face. inout face A handle to a target face object. input req A pointer to a FT_Size_RequestRec . return FreeType error code. 0 means success. note Although drivers may select the bitmap strike matching the request, you should not rely on this if you intend to select a particular bitmap strike. Use FT_Select_Size instead in that case. The relation between the requested size and the resulting glyph size is dependent entirely on how the size is defined in the source face. The font designer chooses the final size of each glyph relative to this size. For more information refer to \u2018 https://www.freetype.org/freetype2/docs/glyphs/glyphs-2.html \u2019. Contrary to FT_Set_Char_Size , this function doesn't have special code to normalize zero-valued widths, heights, or resolutions (which lead to errors in most cases). Don't use this function if you are using the FreeType cache API. FT_Select_Size \u00b6 Defined in FT_FREETYPE_H (freetype/freetype.h). FT_EXPORT( FT_Error ) FT_Select_Size ( FT_Face face, FT_Int strike_index ); Select a bitmap strike. To be more precise, this function sets the scaling factors of the active FT_Size object in a face so that bitmaps from this particular strike are taken by FT_Load_Glyph and friends. inout face A handle to a target face object. input strike_index The index of the bitmap strike in the available_sizes field of FT_FaceRec structure. return FreeType error code. 0 means success. note For bitmaps embedded in outline fonts it is common that only a subset of the available glyphs at a given ppem value is available. FreeType silently uses outlines if there is no bitmap for a given glyph index. For GX and OpenType variation fonts, a bitmap strike makes sense only if the default instance is active (this is, no glyph variation takes place); otherwise, FreeType simply ignores bitmap strikes. The same is true for all named instances that are different from the default instance. Don't use this function if you are using the FreeType cache API. FT_Size_Request_Type \u00b6 Defined in FT_FREETYPE_H (freetype/freetype.h). typedef enum FT_Size_Request_Type_ { FT_SIZE_REQUEST_TYPE_NOMINAL , FT_SIZE_REQUEST_TYPE_REAL_DIM , FT_SIZE_REQUEST_TYPE_BBOX , FT_SIZE_REQUEST_TYPE_CELL , FT_SIZE_REQUEST_TYPE_SCALES , FT_SIZE_REQUEST_TYPE_MAX } FT_Size_Request_Type ; An enumeration type that lists the supported size request types, i.e., what input size (in font units) maps to the requested output size (in pixels, as computed from the arguments of FT_Size_Request ). values FT_SIZE_REQUEST_TYPE_NOMINAL The nominal size. The units_per_EM field of FT_FaceRec is used to determine both scaling values. This is the standard scaling found in most applications. In particular, use this size request type for TrueType fonts if they provide optical scaling or something similar. Note, however, that units_per_EM is a rather abstract value which bears no relation to the actual size of the glyphs in a font. FT_SIZE_REQUEST_TYPE_REAL_DIM The real dimension. The sum of the ascender and (minus of) the descender fields of FT_FaceRec is used to determine both scaling values. FT_SIZE_REQUEST_TYPE_BBOX The font bounding box. The width and height of the bbox field of FT_FaceRec are used to determine the horizontal and vertical scaling value, respectively. FT_SIZE_REQUEST_TYPE_CELL The max_advance_width field of FT_FaceRec is used to determine the horizontal scaling value; the vertical scaling value is determined the same way as FT_SIZE_REQUEST_TYPE_REAL_DIM does. Finally, both scaling values are set to the smaller one. This type is useful if you want to specify the font size for, say, a window of a given dimension and 80x24 cells. FT_SIZE_REQUEST_TYPE_SCALES Specify the scaling values directly. note The above descriptions only apply to scalable formats. For bitmap formats, the behaviour is up to the driver. See the note section of FT_Size_Metrics if you wonder how size requesting relates to scaling values. FT_Size_RequestRec \u00b6 Defined in FT_FREETYPE_H (freetype/freetype.h). typedef struct FT_Size_RequestRec_ { FT_Size_Request_Type type; FT_Long width; FT_Long height; FT_UInt horiResolution; FT_UInt vertResolution; } FT_Size_RequestRec ; A structure to model a size request. fields type See FT_Size_Request_Type . width The desired width, given as a 26.6 fractional point value (with 72pt = 1in). height The desired height, given as a 26.6 fractional point value (with 72pt = 1in). horiResolution The horizontal resolution (dpi, i.e., pixels per inch). If set to zero, width is treated as a 26.6 fractional pixel value, which gets internally rounded to an integer. vertResolution The vertical resolution (dpi, i.e., pixels per inch). If set to zero, height is treated as a 26.6 fractional pixel value, which gets internally rounded to an integer. note If width is zero, the horizontal scaling value is set equal to the vertical scaling value, and vice versa. If type is FT_SIZE_REQUEST_TYPE_SCALES , width and height are interpreted directly as 16.16 fractional scaling values, without any further modification, and both horiResolution and vertResolution are ignored. FT_Size_Request \u00b6 Defined in FT_FREETYPE_H (freetype/freetype.h). typedef struct FT_Size_RequestRec_ * FT_Size_Request ; A handle to a size request structure. FT_Set_Transform \u00b6 Defined in FT_FREETYPE_H (freetype/freetype.h). FT_EXPORT( void ) FT_Set_Transform ( FT_Face face, FT_Matrix * matrix, FT_Vector * delta ); Set the transformation that is applied to glyph images when they are loaded into a glyph slot through FT_Load_Glyph . inout face A handle to the source face object. input matrix A pointer to the transformation's 2x2 matrix. Use NULL for the identity matrix. delta A pointer to the translation vector. Use NULL for the null vector. note This function is provided as a convenience, but keep in mind that FT_Matrix coefficients are only 16.16 fixed point values, which can limit the accuracy of the results. Using floating-point computations to perform the transform directly in client code instead will always yield better numbers. The transformation is only applied to scalable image formats after the glyph has been loaded. It means that hinting is unaltered by the transformation and is performed on the character size given in the last call to FT_Set_Char_Size or FT_Set_Pixel_Sizes . Note that this also transforms the face.glyph.advance field, but not the values in face.glyph.metrics . FT_Load_Glyph \u00b6 Defined in FT_FREETYPE_H (freetype/freetype.h). FT_EXPORT( FT_Error ) FT_Load_Glyph ( FT_Face face, FT_UInt glyph_index, FT_Int32 load_flags ); Load a glyph into the glyph slot of a face object. inout face A handle to the target face object where the glyph is loaded. input glyph_index The index of the glyph in the font file. For CID-keyed fonts (either in PS or in CFF format) this argument specifies the CID value. load_flags A flag indicating what to load for this glyph. The FT_LOAD_XXX constants can be used to control the glyph loading process (e.g., whether the outline should be scaled, whether to load bitmaps or not, whether to hint the outline, etc). return FreeType error code. 0 means success. note The loaded glyph may be transformed. See FT_Set_Transform for the details. For subsetted CID-keyed fonts, FT_Err_Invalid_Argument is returned for invalid CID values (this is, for CID values that don't have a corresponding glyph in the font). See the discussion of the FT_FACE_FLAG_CID_KEYED flag for more details. If you receive FT_Err_Glyph_Too_Big , try getting the glyph outline at EM size, then scale it manually and fill it as a graphics operation. FT_Get_Char_Index \u00b6 Defined in FT_FREETYPE_H (freetype/freetype.h). FT_EXPORT( FT_UInt ) FT_Get_Char_Index ( FT_Face face, FT_ULong charcode ); Return the glyph index of a given character code. This function uses the currently selected charmap to do the mapping. input face A handle to the source face object. charcode The character code. return The glyph index. 0 means \u2018undefined character code\u2019. note If you use FreeType to manipulate the contents of font files directly, be aware that the glyph index returned by this function doesn't always correspond to the internal indices used within the file. This is done to ensure that value 0 always corresponds to the \u2018missing glyph\u2019. If the first glyph is not named \u2018.notdef\u2019, then for Type 1 and Type 42 fonts, \u2018.notdef\u2019 will be moved into the glyph ID 0 position, and whatever was there will be moved to the position \u2018.notdef\u2019 had. For Type 1 fonts, if there is no \u2018.notdef\u2019 glyph at all, then one will be created at index 0 and whatever was there will be moved to the last index -- Type 42 fonts are considered invalid under this condition. FT_Get_First_Char \u00b6 Defined in FT_FREETYPE_H (freetype/freetype.h). FT_EXPORT( FT_ULong ) FT_Get_First_Char ( FT_Face face, FT_UInt *agindex ); Return the first character code in the current charmap of a given face, together with its corresponding glyph index. input face A handle to the source face object. output agindex Glyph index of first character code. 0 if charmap is empty. return The charmap's first character code. note You should use this function together with FT_Get_Next_Char to parse all character codes available in a given charmap. The code should look like this: FT_ULong charcode; FT_UInt gindex; charcode = FT_Get_First_Char( face, &gindex ); while ( gindex != 0 ) { ... do something with (charcode,gindex) pair ... charcode = FT_Get_Next_Char( face, charcode, &gindex ); } Be aware that character codes can have values up to 0xFFFFFFFF; this might happen for non-Unicode or malformed cmaps. However, even with regular Unicode encoding, so-called \u2018last resort fonts\u2019 (using SFNT cmap format 13, see function FT_Get_CMap_Format ) normally have entries for all Unicode characters up to 0x1FFFFF, which can cause a lot of iterations. Note that *agindex is set to 0 if the charmap is empty. The result itself can be 0 in two cases: if the charmap is empty or if the value 0 is the first valid character code. FT_Get_Next_Char \u00b6 Defined in FT_FREETYPE_H (freetype/freetype.h). FT_EXPORT( FT_ULong ) FT_Get_Next_Char ( FT_Face face, FT_ULong char_code, FT_UInt *agindex ); Return the next character code in the current charmap of a given face following the value char_code , as well as the corresponding glyph index. input face A handle to the source face object. char_code The starting character code. output agindex Glyph index of next character code. 0 if charmap is empty. return The charmap's next character code. note You should use this function with FT_Get_First_Char to walk over all character codes available in a given charmap. See the note for that function for a simple code example. Note that *agindex is set to 0 when there are no more codes in the charmap. FT_Get_Name_Index \u00b6 Defined in FT_FREETYPE_H (freetype/freetype.h). FT_EXPORT( FT_UInt ) FT_Get_Name_Index ( FT_Face face, const FT_String * glyph_name ); Return the glyph index of a given glyph name. input face A handle to the source face object. glyph_name The glyph name. return The glyph index. 0 means \u2018undefined character code\u2019. FT_Load_Char \u00b6 Defined in FT_FREETYPE_H (freetype/freetype.h). FT_EXPORT( FT_Error ) FT_Load_Char ( FT_Face face, FT_ULong char_code, FT_Int32 load_flags ); Load a glyph into the glyph slot of a face object, accessed by its character code. inout face A handle to a target face object where the glyph is loaded. input char_code The glyph's character code, according to the current charmap used in the face. load_flags A flag indicating what to load for this glyph. The FT_LOAD_XXX constants can be used to control the glyph loading process (e.g., whether the outline should be scaled, whether to load bitmaps or not, whether to hint the outline, etc). return FreeType error code. 0 means success. note This function simply calls FT_Get_Char_Index and FT_Load_Glyph . Many fonts contain glyphs that can't be loaded by this function since its glyph indices are not listed in any of the font's charmaps. If no active cmap is set up (i.e., face->charmap is zero), the call to FT_Get_Char_Index is omitted, and the function behaves identically to FT_Load_Glyph . FT_LOAD_TARGET_MODE \u00b6 Defined in FT_FREETYPE_H (freetype/freetype.h). # define FT_LOAD_TARGET_MODE ( x ) ( ( FT_Render_Mode )( ( (x) >> 16 ) & 15 ) ) Return the FT_Render_Mode corresponding to a given FT_LOAD_TARGET_XXX value. FT_Render_Glyph \u00b6 Defined in FT_FREETYPE_H (freetype/freetype.h). FT_EXPORT( FT_Error ) FT_Render_Glyph ( FT_GlyphSlot slot, FT_Render_Mode render_mode ); Convert a given glyph image to a bitmap. It does so by inspecting the glyph image format, finding the relevant renderer, and invoking it. inout slot A handle to the glyph slot containing the image to convert. input render_mode The render mode used to render the glyph image into a bitmap. See FT_Render_Mode for a list of possible values. If FT_RENDER_MODE_NORMAL is used, a previous call of FT_Load_Glyph with flag FT_LOAD_COLOR makes FT_Render_Glyph provide a default blending of colored glyph layers associated with the current glyph slot (provided the font contains such layers) instead of rendering the glyph slot's outline. This is an experimental feature; see FT_LOAD_COLOR for more information. return FreeType error code. 0 means success. note To get meaningful results, font scaling values must be set with functions like FT_Set_Char_Size before calling FT_Render_Glyph . When FreeType outputs a bitmap of a glyph, it really outputs an alpha coverage map. If a pixel is completely covered by a filled-in outline, the bitmap contains 0xFF at that pixel, meaning that 0xFF/0xFF fraction of that pixel is covered, meaning the pixel is 100% black (or 0% bright). If a pixel is only 50% covered (value 0x80), the pixel is made 50% black (50% bright or a middle shade of grey). 0% covered means 0% black (100% bright or white). On high-DPI screens like on smartphones and tablets, the pixels are so small that their chance of being completely covered and therefore completely black are fairly good. On the low-DPI screens, however, the situation is different. The pixels are too large for most of the details of a glyph and shades of gray are the norm rather than the exception. This is relevant because all our screens have a second problem: they are not linear. 1 + 1 is not 2. Twice the value does not result in twice the brightness. When a pixel is only 50% covered, the coverage map says 50% black, and this translates to a pixel value of 128 when you use 8 bits per channel (0-255). However, this does not translate to 50% brightness for that pixel on our sRGB and gamma 2.2 screens. Due to their non-linearity, they dwell longer in the darks and only a pixel value of about 186 results in 50% brightness -- 128 ends up too dark on both bright and dark backgrounds. The net result is that dark text looks burnt-out, pixely and blotchy on bright background, bright text too frail on dark backgrounds, and colored text on colored background (for example, red on green) seems to have dark halos or \u2018dirt\u2019 around it. The situation is especially ugly for diagonal stems like in \u2018w\u2019 glyph shapes where the quality of FreeType's anti-aliasing depends on the correct display of grays. On high-DPI screens where smaller, fully black pixels reign supreme, this doesn't matter, but on our low-DPI screens with all the gray shades, it does. 0% and 100% brightness are the same things in linear and non-linear space, just all the shades in-between aren't. The blending function for placing text over a background is dst = alpha * src + (1 - alpha) * dst , which is known as the OVER operator. To correctly composite an antialiased pixel of a glyph onto a surface, take the foreground and background colors (e.g., in sRGB space) and apply gamma to get them in a linear space, use OVER to blend the two linear colors using the glyph pixel as the alpha value (remember, the glyph bitmap is an alpha coverage bitmap), and apply inverse gamma to the blended pixel and write it back to the image. Internal testing at Adobe found that a target inverse gamma of 1.8 for step 3 gives good results across a wide range of displays with an sRGB gamma curve or a similar one. This process can cost performance. There is an approximation that does not need to know about the background color; see https://bel.fi/alankila/lcd/ and https://bel.fi/alankila/lcd/alpcor.html for details. ATTENTION : Linear blending is even more important when dealing with subpixel-rendered glyphs to prevent color-fringing! A subpixel-rendered glyph must first be filtered with a filter that gives equal weight to the three color primaries and does not exceed a sum of 0x100, see section \u2018 Subpixel Rendering \u2019. Then the only difference to gray linear blending is that subpixel-rendered linear blending is done 3 times per pixel: red foreground subpixel to red background subpixel and so on for green and blue. FT_Render_Mode \u00b6 Defined in FT_FREETYPE_H (freetype/freetype.h). typedef enum FT_Render_Mode_ { FT_RENDER_MODE_NORMAL = 0, FT_RENDER_MODE_LIGHT , FT_RENDER_MODE_MONO , FT_RENDER_MODE_LCD , FT_RENDER_MODE_LCD_V , FT_RENDER_MODE_MAX } FT_Render_Mode ; /* these constants are deprecated; use the corresponding */ /* ` FT_Render_Mode ` values instead */ # define ft_render_mode_normal FT_RENDER_MODE_NORMAL # define ft_render_mode_mono FT_RENDER_MODE_MONO Render modes supported by FreeType 2. Each mode corresponds to a specific type of scanline conversion performed on the outline. For bitmap fonts and embedded bitmaps the bitmap->pixel_mode field in the FT_GlyphSlotRec structure gives the format of the returned bitmap. All modes except FT_RENDER_MODE_MONO use 256 levels of opacity, indicating pixel coverage. Use linear alpha blending and gamma correction to correctly render non-monochrome glyph bitmaps onto a surface; see FT_Render_Glyph . values FT_RENDER_MODE_NORMAL Default render mode; it corresponds to 8-bit anti-aliased bitmaps. FT_RENDER_MODE_LIGHT This is equivalent to FT_RENDER_MODE_NORMAL . It is only defined as a separate value because render modes are also used indirectly to define hinting algorithm selectors. See FT_LOAD_TARGET_XXX for details. FT_RENDER_MODE_MONO This mode corresponds to 1-bit bitmaps (with 2 levels of opacity). FT_RENDER_MODE_LCD This mode corresponds to horizontal RGB and BGR subpixel displays like LCD screens. It produces 8-bit bitmaps that are 3 times the width of the original glyph outline in pixels, and which use the FT_PIXEL_MODE_LCD mode. FT_RENDER_MODE_LCD_V This mode corresponds to vertical RGB and BGR subpixel displays (like PDA screens, rotated LCD displays, etc.). It produces 8-bit bitmaps that are 3 times the height of the original glyph outline in pixels and use the FT_PIXEL_MODE_LCD_V mode. note The selected render mode only affects vector glyphs of a font. Embedded bitmaps often have a different pixel mode like FT_PIXEL_MODE_MONO . You can use FT_Bitmap_Convert to transform them into 8-bit pixmaps. FT_Get_Kerning \u00b6 Defined in FT_FREETYPE_H (freetype/freetype.h). FT_EXPORT( FT_Error ) FT_Get_Kerning ( FT_Face face, FT_UInt left_glyph, FT_UInt right_glyph, FT_UInt kern_mode, FT_Vector *akerning ); Return the kerning vector between two glyphs of the same face. input face A handle to a source face object. left_glyph The index of the left glyph in the kern pair. right_glyph The index of the right glyph in the kern pair. kern_mode See FT_Kerning_Mode for more information. Determines the scale and dimension of the returned kerning vector. output akerning The kerning vector. This is either in font units, fractional pixels (26.6 format), or pixels for scalable formats, and in pixels for fixed-sizes formats. return FreeType error code. 0 means success. note Only horizontal layouts (left-to-right & right-to-left) are supported by this method. Other layouts, or more sophisticated kernings, are out of the scope of this API function -- they can be implemented through format-specific interfaces. Kerning for OpenType fonts implemented in a \u2018GPOS\u2019 table is not supported; use FT_HAS_KERNING to find out whether a font has data that can be extracted with FT_Get_Kerning . FT_Kerning_Mode \u00b6 Defined in FT_FREETYPE_H (freetype/freetype.h). typedef enum FT_Kerning_Mode_ { FT_KERNING_DEFAULT = 0, FT_KERNING_UNFITTED , FT_KERNING_UNSCALED } FT_Kerning_Mode ; /* these constants are deprecated; use the corresponding */ /* ` FT_Kerning_Mode ` values instead */ # define ft_kerning_default FT_KERNING_DEFAULT # define ft_kerning_unfitted FT_KERNING_UNFITTED # define ft_kerning_unscaled FT_KERNING_UNSCALED An enumeration to specify the format of kerning values returned by FT_Get_Kerning . values FT_KERNING_DEFAULT Return grid-fitted kerning distances in 26.6 fractional pixels. FT_KERNING_UNFITTED Return un-grid-fitted kerning distances in 26.6 fractional pixels. FT_KERNING_UNSCALED Return the kerning vector in original font units. note FT_KERNING_DEFAULT returns full pixel values; it also makes FreeType heuristically scale down kerning distances at small ppem values so that they don't become too big. Both FT_KERNING_DEFAULT and FT_KERNING_UNFITTED use the current horizontal scaling factor (as set e.g. with FT_Set_Char_Size ) to convert font units to pixels. FT_Get_Track_Kerning \u00b6 Defined in FT_FREETYPE_H (freetype/freetype.h). FT_EXPORT( FT_Error ) FT_Get_Track_Kerning ( FT_Face face, FT_Fixed point_size, FT_Int degree, FT_Fixed * akerning ); Return the track kerning for a given face object at a given size. input face A handle to a source face object. point_size The point size in 16.16 fractional points. degree The degree of tightness. Increasingly negative values represent tighter track kerning, while increasingly positive values represent looser track kerning. Value zero means no track kerning. output akerning The kerning in 16.16 fractional points, to be uniformly applied between all glyphs. return FreeType error code. 0 means success. note Currently, only the Type 1 font driver supports track kerning, using data from AFM files (if attached with FT_Attach_File or FT_Attach_Stream ). Only very few AFM files come with track kerning data; please refer to Adobe's AFM specification for more details. FT_Get_Glyph_Name \u00b6 Defined in FT_FREETYPE_H (freetype/freetype.h). FT_EXPORT( FT_Error ) FT_Get_Glyph_Name ( FT_Face face, FT_UInt glyph_index, FT_Pointer buffer, FT_UInt buffer_max ); Retrieve the ASCII name of a given glyph in a face. This only works for those faces where FT_HAS_GLYPH_NAMES (face) returns 1. input face A handle to a source face object. glyph_index The glyph index. buffer_max The maximum number of bytes available in the buffer. output buffer A pointer to a target buffer where the name is copied to. return FreeType error code. 0 means success. note An error is returned if the face doesn't provide glyph names or if the glyph index is invalid. In all cases of failure, the first byte of buffer is set to 0 to indicate an empty name. The glyph name is truncated to fit within the buffer if it is too long. The returned string is always zero-terminated. Be aware that FreeType reorders glyph indices internally so that glyph index 0 always corresponds to the \u2018missing glyph\u2019 (called \u2018.notdef\u2019). This function always returns an error if the config macro FT_CONFIG_OPTION_NO_GLYPH_NAMES is not defined in ftoption.h . FT_Get_Postscript_Name \u00b6 Defined in FT_FREETYPE_H (freetype/freetype.h). FT_EXPORT( const char * ) FT_Get_Postscript_Name ( FT_Face face ); Retrieve the ASCII PostScript name of a given face, if available. This only works with PostScript, TrueType, and OpenType fonts. input face A handle to the source face object. return A pointer to the face's PostScript name. NULL if unavailable. note The returned pointer is owned by the face and is destroyed with it. For variation fonts, this string changes if you select a different instance, and you have to call FT_Get_PostScript_Name again to retrieve it. FreeType follows Adobe TechNote #5902, \u2018Generating PostScript Names for Fonts Using OpenType Font Variations\u2019. https://download.macromedia.com/pub/developer/opentype/tech-notes/5902.AdobePSNameGeneration.html [Since 2.9] Special PostScript names for named instances are only returned if the named instance is set with FT_Set_Named_Instance (and the font has corresponding entries in its \u2018fvar\u2019 table). If FT_IS_VARIATION returns true, the algorithmically derived PostScript name is provided, not looking up special entries for named instances. FT_CharMapRec \u00b6 Defined in FT_FREETYPE_H (freetype/freetype.h). typedef struct FT_CharMapRec_ { FT_Face face; FT_Encoding encoding; FT_UShort platform_id; FT_UShort encoding_id; } FT_CharMapRec ; The base charmap structure. fields face A handle to the parent face object. encoding An FT_Encoding tag identifying the charmap. Use this with FT_Select_Charmap . platform_id An ID number describing the platform for the following encoding ID. This comes directly from the TrueType specification and gets emulated for other formats. encoding_id A platform-specific encoding number. This also comes from the TrueType specification and gets emulated similarly. FT_Select_Charmap \u00b6 Defined in FT_FREETYPE_H (freetype/freetype.h). FT_EXPORT( FT_Error ) FT_Select_Charmap ( FT_Face face, FT_Encoding encoding ); Select a given charmap by its encoding tag (as listed in freetype.h ). inout face A handle to the source face object. input encoding A handle to the selected encoding. return FreeType error code. 0 means success. note This function returns an error if no charmap in the face corresponds to the encoding queried here. Because many fonts contain more than a single cmap for Unicode encoding, this function has some special code to select the one that covers Unicode best (\u2018best\u2019 in the sense that a UCS-4 cmap is preferred to a UCS-2 cmap). It is thus preferable to FT_Set_Charmap in this case. FT_Set_Charmap \u00b6 Defined in FT_FREETYPE_H (freetype/freetype.h). FT_EXPORT( FT_Error ) FT_Set_Charmap ( FT_Face face, FT_CharMap charmap ); Select a given charmap for character code to glyph index mapping. inout face A handle to the source face object. input charmap A handle to the selected charmap. return FreeType error code. 0 means success. note This function returns an error if the charmap is not part of the face (i.e., if it is not listed in the face->charmaps table). It also fails if an OpenType type 14 charmap is selected (which doesn't map character codes to glyph indices at all). FT_Get_Charmap_Index \u00b6 Defined in FT_FREETYPE_H (freetype/freetype.h). FT_EXPORT( FT_Int ) FT_Get_Charmap_Index ( FT_CharMap charmap ); Retrieve index of a given charmap. input charmap A handle to a charmap. return The index into the array of character maps within the face to which charmap belongs. If an error occurs, -1 is returned. FT_Get_FSType_Flags \u00b6 Defined in FT_FREETYPE_H (freetype/freetype.h). FT_EXPORT( FT_UShort ) FT_Get_FSType_Flags ( FT_Face face ); Return the fsType flags for a font. input face A handle to the source face object. return The fsType flags, see FT_FSTYPE_XXX . note Use this function rather than directly reading the fs_type field in the PS_FontInfoRec structure, which is only guaranteed to return the correct results for Type 1 fonts. since 2.3.8 FT_Get_SubGlyph_Info \u00b6 Defined in FT_FREETYPE_H (freetype/freetype.h). FT_EXPORT( FT_Error ) FT_Get_SubGlyph_Info ( FT_GlyphSlot glyph, FT_UInt sub_index, FT_Int *p_index, FT_UInt *p_flags, FT_Int *p_arg1, FT_Int *p_arg2, FT_Matrix *p_transform ); Retrieve a description of a given subglyph. Only use it if glyph->format is FT_GLYPH_FORMAT_COMPOSITE ; an error is returned otherwise. input glyph The source glyph slot. sub_index The index of the subglyph. Must be less than glyph->num_subglyphs . output p_index The glyph index of the subglyph. p_flags The subglyph flags, see FT_SUBGLYPH_FLAG_XXX . p_arg1 The subglyph's first argument (if any). p_arg2 The subglyph's second argument (if any). p_transform The subglyph transformation (if any). return FreeType error code. 0 means success. note The values of *p_arg1 , *p_arg2 , and *p_transform must be interpreted depending on the flags returned in *p_flags . See the OpenType specification for details. https://docs.microsoft.com/en-us/typography/opentype/spec/glyf#composite-glyph-description FT_Face_Internal \u00b6 Defined in FT_FREETYPE_H (freetype/freetype.h). typedef struct FT_Face_InternalRec_* FT_Face_Internal ; An opaque handle to an FT_Face_InternalRec structure that models the private data of a given FT_Face object. This structure might change between releases of FreeType 2 and is not generally available to client applications. FT_Size_Internal \u00b6 Defined in FT_FREETYPE_H (freetype/freetype.h). typedef struct FT_Size_InternalRec_* FT_Size_Internal ; An opaque handle to an FT_Size_InternalRec structure, used to model private data of a given FT_Size object. FT_Slot_Internal \u00b6 Defined in FT_FREETYPE_H (freetype/freetype.h). typedef struct FT_Slot_InternalRec_* FT_Slot_Internal ; An opaque handle to an FT_Slot_InternalRec structure, used to model private data of a given FT_GlyphSlot object. FT_FACE_FLAG_XXX \u00b6 Defined in FT_FREETYPE_H (freetype/freetype.h). # define FT_FACE_FLAG_SCALABLE ( 1L << 0 ) # define FT_FACE_FLAG_FIXED_SIZES ( 1L << 1 ) # define FT_FACE_FLAG_FIXED_WIDTH ( 1L << 2 ) # define FT_FACE_FLAG_SFNT ( 1L << 3 ) # define FT_FACE_FLAG_HORIZONTAL ( 1L << 4 ) # define FT_FACE_FLAG_VERTICAL ( 1L << 5 ) # define FT_FACE_FLAG_KERNING ( 1L << 6 ) # define FT_FACE_FLAG_FAST_GLYPHS ( 1L << 7 ) # define FT_FACE_FLAG_MULTIPLE_MASTERS ( 1L << 8 ) # define FT_FACE_FLAG_GLYPH_NAMES ( 1L << 9 ) # define FT_FACE_FLAG_EXTERNAL_STREAM ( 1L << 10 ) # define FT_FACE_FLAG_HINTER ( 1L << 11 ) # define FT_FACE_FLAG_CID_KEYED ( 1L << 12 ) # define FT_FACE_FLAG_TRICKY ( 1L << 13 ) # define FT_FACE_FLAG_COLOR ( 1L << 14 ) # define FT_FACE_FLAG_VARIATION ( 1L << 15 ) A list of bit flags used in the face_flags field of the FT_FaceRec structure. They inform client applications of properties of the corresponding face. values FT_FACE_FLAG_SCALABLE The face contains outline glyphs. Note that a face can contain bitmap strikes also, i.e., a face can have both this flag and FT_FACE_FLAG_FIXED_SIZES set. FT_FACE_FLAG_FIXED_SIZES The face contains bitmap strikes. See also the num_fixed_sizes and available_sizes fields of FT_FaceRec . FT_FACE_FLAG_FIXED_WIDTH The face contains fixed-width characters (like Courier, Lucida, MonoType, etc.). FT_FACE_FLAG_SFNT The face uses the SFNT storage scheme. For now, this means TrueType and OpenType. FT_FACE_FLAG_HORIZONTAL The face contains horizontal glyph metrics. This should be set for all common formats. FT_FACE_FLAG_VERTICAL The face contains vertical glyph metrics. This is only available in some formats, not all of them. FT_FACE_FLAG_KERNING The face contains kerning information. If set, the kerning distance can be retrieved using the function FT_Get_Kerning . Otherwise the function always return the vector (0,0). Note that FreeType doesn't handle kerning data from the SFNT \u2018GPOS\u2019 table (as present in many OpenType fonts). FT_FACE_FLAG_FAST_GLYPHS THIS FLAG IS DEPRECATED. DO NOT USE OR TEST IT. FT_FACE_FLAG_MULTIPLE_MASTERS The face contains multiple masters and is capable of interpolating between them. Supported formats are Adobe MM, TrueType GX, and OpenType variation fonts. See section \u2018 Multiple Masters \u2019 for API details. FT_FACE_FLAG_GLYPH_NAMES The face contains glyph names, which can be retrieved using FT_Get_Glyph_Name . Note that some TrueType fonts contain broken glyph name tables. Use the function FT_Has_PS_Glyph_Names when needed. FT_FACE_FLAG_EXTERNAL_STREAM Used internally by FreeType to indicate that a face's stream was provided by the client application and should not be destroyed when FT_Done_Face is called. Don't read or test this flag. FT_FACE_FLAG_HINTER The font driver has a hinting machine of its own. For example, with TrueType fonts, it makes sense to use data from the SFNT \u2018gasp\u2019 table only if the native TrueType hinting engine (with the bytecode interpreter) is available and active. FT_FACE_FLAG_CID_KEYED The face is CID-keyed. In that case, the face is not accessed by glyph indices but by CID values. For subsetted CID-keyed fonts this has the consequence that not all index values are a valid argument to FT_Load_Glyph . Only the CID values for which corresponding glyphs in the subsetted font exist make FT_Load_Glyph return successfully; in all other cases you get an FT_Err_Invalid_Argument error. Note that CID-keyed fonts that are in an SFNT wrapper (this is, all OpenType/CFF fonts) don't have this flag set since the glyphs are accessed in the normal way (using contiguous indices); the \u2018CID-ness\u2019 isn't visible to the application. FT_FACE_FLAG_TRICKY The face is \u2018tricky\u2019, this is, it always needs the font format's native hinting engine to get a reasonable result. A typical example is the old Chinese font mingli.ttf (but not mingliu.ttc ) that uses TrueType bytecode instructions to move and scale all of its subglyphs. It is not possible to auto-hint such fonts using FT_LOAD_FORCE_AUTOHINT ; it will also ignore FT_LOAD_NO_HINTING . You have to set both FT_LOAD_NO_HINTING and FT_LOAD_NO_AUTOHINT to really disable hinting; however, you probably never want this except for demonstration purposes. Currently, there are about a dozen TrueType fonts in the list of tricky fonts; they are hard-coded in file ttobjs.c . FT_FACE_FLAG_COLOR [Since 2.5.1] The face has color glyph tables. See FT_LOAD_COLOR for more information. FT_FACE_FLAG_VARIATION [Since 2.9] Set if the current face (or named instance) has been altered with FT_Set_MM_Design_Coordinates , FT_Set_Var_Design_Coordinates , or FT_Set_Var_Blend_Coordinates . This flag is unset by a call to FT_Set_Named_Instance . FT_STYLE_FLAG_XXX \u00b6 Defined in FT_FREETYPE_H (freetype/freetype.h). # define FT_STYLE_FLAG_ITALIC ( 1 << 0 ) # define FT_STYLE_FLAG_BOLD ( 1 << 1 ) A list of bit flags to indicate the style of a given face. These are used in the style_flags field of FT_FaceRec . values FT_STYLE_FLAG_ITALIC The face style is italic or oblique. FT_STYLE_FLAG_BOLD The face is bold. note The style information as provided by FreeType is very basic. More details are beyond the scope and should be done on a higher level (for example, by analyzing various fields of the \u2018OS/2\u2019 table in SFNT based fonts). FT_OPEN_XXX \u00b6 Defined in FT_FREETYPE_H (freetype/freetype.h). # define FT_OPEN_MEMORY 0x1 # define FT_OPEN_STREAM 0x2 # define FT_OPEN_PATHNAME 0x4 # define FT_OPEN_DRIVER 0x8 # define FT_OPEN_PARAMS 0x10 /* these constants are deprecated; use the corresponding ` FT_OPEN_XXX ` */ /* values instead */ # define ft_open_memory FT_OPEN_MEMORY # define ft_open_stream FT_OPEN_STREAM # define ft_open_pathname FT_OPEN_PATHNAME # define ft_open_driver FT_OPEN_DRIVER # define ft_open_params FT_OPEN_PARAMS A list of bit field constants used within the flags field of the FT_Open_Args structure. values FT_OPEN_MEMORY This is a memory-based stream. FT_OPEN_STREAM Copy the stream from the stream field. FT_OPEN_PATHNAME Create a new input stream from a C path name. FT_OPEN_DRIVER Use the driver field. FT_OPEN_PARAMS Use the num_params and params fields. note The FT_OPEN_MEMORY , FT_OPEN_STREAM , and FT_OPEN_PATHNAME flags are mutually exclusive. FT_LOAD_XXX \u00b6 Defined in FT_FREETYPE_H (freetype/freetype.h). # define FT_LOAD_DEFAULT 0x0 # define FT_LOAD_NO_SCALE ( 1L << 0 ) # define FT_LOAD_NO_HINTING ( 1L << 1 ) # define FT_LOAD_RENDER ( 1L << 2 ) # define FT_LOAD_NO_BITMAP ( 1L << 3 ) # define FT_LOAD_VERTICAL_LAYOUT ( 1L << 4 ) # define FT_LOAD_FORCE_AUTOHINT ( 1L << 5 ) # define FT_LOAD_CROP_BITMAP ( 1L << 6 ) # define FT_LOAD_PEDANTIC ( 1L << 7 ) # define FT_LOAD_IGNORE_GLOBAL_ADVANCE_WIDTH ( 1L << 9 ) # define FT_LOAD_NO_RECURSE ( 1L << 10 ) # define FT_LOAD_IGNORE_TRANSFORM ( 1L << 11 ) # define FT_LOAD_MONOCHROME ( 1L << 12 ) # define FT_LOAD_LINEAR_DESIGN ( 1L << 13 ) # define FT_LOAD_NO_AUTOHINT ( 1L << 15 ) /* Bits 16-19 are used by `FT_LOAD_TARGET_` */ # define FT_LOAD_COLOR ( 1L << 20 ) # define FT_LOAD_COMPUTE_METRICS ( 1L << 21 ) # define FT_LOAD_BITMAP_METRICS_ONLY ( 1L << 22 ) A list of bit field constants for FT_Load_Glyph to indicate what kind of operations to perform during glyph loading. values FT_LOAD_DEFAULT Corresponding to 0, this value is used as the default glyph load operation. In this case, the following happens: FreeType looks for a bitmap for the glyph corresponding to the face's current size. If one is found, the function returns. The bitmap data can be accessed from the glyph slot (see note below). If no embedded bitmap is searched for or found, FreeType looks for a scalable outline. If one is found, it is loaded from the font file, scaled to device pixels, then \u2018hinted\u2019 to the pixel grid in order to optimize it. The outline data can be accessed from the glyph slot (see note below). Note that by default the glyph loader doesn't render outlines into bitmaps. The following flags are used to modify this default behaviour to more specific and useful cases. FT_LOAD_NO_SCALE Don't scale the loaded outline glyph but keep it in font units. This flag implies FT_LOAD_NO_HINTING and FT_LOAD_NO_BITMAP , and unsets FT_LOAD_RENDER . If the font is \u2018tricky\u2019 (see FT_FACE_FLAG_TRICKY for more), using FT_LOAD_NO_SCALE usually yields meaningless outlines because the subglyphs must be scaled and positioned with hinting instructions. This can be solved by loading the font without FT_LOAD_NO_SCALE and setting the character size to font->units_per_EM . FT_LOAD_NO_HINTING Disable hinting. This generally generates \u2018blurrier\u2019 bitmap glyphs when the glyph are rendered in any of the anti-aliased modes. See also the note below. This flag is implied by FT_LOAD_NO_SCALE . FT_LOAD_RENDER Call FT_Render_Glyph after the glyph is loaded. By default, the glyph is rendered in FT_RENDER_MODE_NORMAL mode. This can be overridden by FT_LOAD_TARGET_XXX or FT_LOAD_MONOCHROME . This flag is unset by FT_LOAD_NO_SCALE . FT_LOAD_NO_BITMAP Ignore bitmap strikes when loading. Bitmap-only fonts ignore this flag. FT_LOAD_NO_SCALE always sets this flag. FT_LOAD_VERTICAL_LAYOUT Load the glyph for vertical text layout. In particular, the advance value in the FT_GlyphSlotRec structure is set to the vertAdvance value of the metrics field. In case FT_HAS_VERTICAL doesn't return true, you shouldn't use this flag currently. Reason is that in this case vertical metrics get synthesized, and those values are not always consistent across various font formats. FT_LOAD_FORCE_AUTOHINT Prefer the auto-hinter over the font's native hinter. See also the note below. FT_LOAD_PEDANTIC Make the font driver perform pedantic verifications during glyph loading and hinting. This is mostly used to detect broken glyphs in fonts. By default, FreeType tries to handle broken fonts also. In particular, errors from the TrueType bytecode engine are not passed to the application if this flag is not set; this might result in partially hinted or distorted glyphs in case a glyph's bytecode is buggy. FT_LOAD_NO_RECURSE Don't load composite glyphs recursively. Instead, the font driver fills the num_subglyph and subglyphs values of the glyph slot; it also sets glyph->format to FT_GLYPH_FORMAT_COMPOSITE . The description of subglyphs can then be accessed with FT_Get_SubGlyph_Info . Don't use this flag for retrieving metrics information since some font drivers only return rudimentary data. This flag implies FT_LOAD_NO_SCALE and FT_LOAD_IGNORE_TRANSFORM . FT_LOAD_IGNORE_TRANSFORM Ignore the transform matrix set by FT_Set_Transform . FT_LOAD_MONOCHROME This flag is used with FT_LOAD_RENDER to indicate that you want to render an outline glyph to a 1-bit monochrome bitmap glyph, with 8 pixels packed into each byte of the bitmap data. Note that this has no effect on the hinting algorithm used. You should rather use FT_LOAD_TARGET_MONO so that the monochrome-optimized hinting algorithm is used. FT_LOAD_LINEAR_DESIGN Keep linearHoriAdvance and linearVertAdvance fields of FT_GlyphSlotRec in font units. See FT_GlyphSlotRec for details. FT_LOAD_NO_AUTOHINT Disable the auto-hinter. See also the note below. FT_LOAD_COLOR Load colored glyphs. There are slight differences depending on the font format. [Since 2.5] Load embedded color bitmap images. The resulting color bitmaps, if available, will have the FT_PIXEL_MODE_BGRA format, with pre-multiplied color channels. If the flag is not set and color bitmaps are found, they are converted to 256-level gray bitmaps, using the FT_PIXEL_MODE_GRAY format. [Since 2.10, experimental] If the glyph index contains an entry in the face's \u2018COLR\u2019 table with a \u2018CPAL\u2019 palette table (as defined in the OpenType specification), make FT_Render_Glyph provide a default blending of the color glyph layers associated with the glyph index, using the same bitmap format as embedded color bitmap images. This is mainly for convenience; for full control of color layers use FT_Get_Color_Glyph_Layer and FreeType's color functions like FT_Palette_Select instead of setting FT_LOAD_COLOR for rendering so that the client application can handle blending by itself. FT_LOAD_COMPUTE_METRICS [Since 2.6.1] Compute glyph metrics from the glyph data, without the use of bundled metrics tables (for example, the \u2018hdmx\u2019 table in TrueType fonts). This flag is mainly used by font validating or font editing applications, which need to ignore, verify, or edit those tables. Currently, this flag is only implemented for TrueType fonts. FT_LOAD_BITMAP_METRICS_ONLY [Since 2.7.1] Request loading of the metrics and bitmap image information of a (possibly embedded) bitmap glyph without allocating or copying the bitmap image data itself. No effect if the target glyph is not a bitmap image. This flag unsets FT_LOAD_RENDER . FT_LOAD_CROP_BITMAP Ignored. Deprecated. FT_LOAD_IGNORE_GLOBAL_ADVANCE_WIDTH Ignored. Deprecated. note By default, hinting is enabled and the font's native hinter (see FT_FACE_FLAG_HINTER ) is preferred over the auto-hinter. You can disable hinting by setting FT_LOAD_NO_HINTING or change the precedence by setting FT_LOAD_FORCE_AUTOHINT . You can also set FT_LOAD_NO_AUTOHINT in case you don't want the auto-hinter to be used at all. See the description of FT_FACE_FLAG_TRICKY for a special exception (affecting only a handful of Asian fonts). Besides deciding which hinter to use, you can also decide which hinting algorithm to use. See FT_LOAD_TARGET_XXX for details. Note that the auto-hinter needs a valid Unicode cmap (either a native one or synthesized by FreeType) for producing correct results. If a font provides an incorrect mapping (for example, assigning the character code U+005A, LATIN CAPITAL LETTER Z, to a glyph depicting a mathematical integral sign), the auto-hinter might produce useless results. FT_LOAD_TARGET_XXX \u00b6 Defined in FT_FREETYPE_H (freetype/freetype.h). # define FT_LOAD_TARGET_( x ) ( ( FT_Int32 )( (x) & 15 ) << 16 ) # define FT_LOAD_TARGET_NORMAL FT_LOAD_TARGET_( FT_RENDER_MODE_NORMAL ) # define FT_LOAD_TARGET_LIGHT FT_LOAD_TARGET_( FT_RENDER_MODE_LIGHT ) # define FT_LOAD_TARGET_MONO FT_LOAD_TARGET_( FT_RENDER_MODE_MONO ) # define FT_LOAD_TARGET_LCD FT_LOAD_TARGET_( FT_RENDER_MODE_LCD ) # define FT_LOAD_TARGET_LCD_V FT_LOAD_TARGET_( FT_RENDER_MODE_LCD_V ) A list of values to select a specific hinting algorithm for the hinter. You should OR one of these values to your load_flags when calling FT_Load_Glyph . Note that a font's native hinters may ignore the hinting algorithm you have specified (e.g., the TrueType bytecode interpreter). You can set FT_LOAD_FORCE_AUTOHINT to ensure that the auto-hinter is used. values FT_LOAD_TARGET_NORMAL The default hinting algorithm, optimized for standard gray-level rendering. For monochrome output, use FT_LOAD_TARGET_MONO instead. FT_LOAD_TARGET_LIGHT A lighter hinting algorithm for gray-level modes. Many generated glyphs are fuzzier but better resemble their original shape. This is achieved by snapping glyphs to the pixel grid only vertically (Y-axis), as is done by FreeType's new CFF engine or Microsoft's ClearType font renderer. This preserves inter-glyph spacing in horizontal text. The snapping is done either by the native font driver, if the driver itself and the font support it, or by the auto-hinter. Advance widths are rounded to integer values; however, using the lsb_delta and rsb_delta fields of FT_GlyphSlotRec , it is possible to get fractional advance widths for subpixel positioning (which is recommended to use). If configuration option AF_CONFIG_OPTION_TT_SIZE_METRICS is active, TrueType-like metrics are used to make this mode behave similarly as in unpatched FreeType versions between 2.4.6 and 2.7.1 (inclusive). FT_LOAD_TARGET_MONO Strong hinting algorithm that should only be used for monochrome output. The result is probably unpleasant if the glyph is rendered in non-monochrome modes. Note that for outline fonts only the TrueType font driver has proper monochrome hinting support, provided the TTFs contain hints for B/W rendering (which most fonts no longer provide). If these conditions are not met it is very likely that you get ugly results at smaller sizes. FT_LOAD_TARGET_LCD A variant of FT_LOAD_TARGET_LIGHT optimized for horizontally decimated LCD displays. FT_LOAD_TARGET_LCD_V A variant of FT_LOAD_TARGET_NORMAL optimized for vertically decimated LCD displays. note You should use only one of the FT_LOAD_TARGET_XXX values in your load_flags . They can't be ORed. If FT_LOAD_RENDER is also set, the glyph is rendered in the corresponding mode (i.e., the mode that matches the used algorithm best). An exception is FT_LOAD_TARGET_MONO since it implies FT_LOAD_MONOCHROME . You can use a hinting algorithm that doesn't correspond to the same rendering mode. As an example, it is possible to use the \u2018light\u2019 hinting algorithm and have the results rendered in horizontal LCD pixel mode, with code like FT_Load_Glyph( face, glyph_index, load_flags | FT_LOAD_TARGET_LIGHT ); FT_Render_Glyph( face->glyph, FT_RENDER_MODE_LCD ); In general, you should stick with one rendering mode. For example, switching between FT_LOAD_TARGET_NORMAL and FT_LOAD_TARGET_MONO enforces a lot of recomputation for TrueType fonts, which is slow. Another reason is caching: Selecting a different mode usually causes changes in both the outlines and the rasterized bitmaps; it is thus necessary to empty the cache after a mode switch to avoid false hits. FT_SUBGLYPH_FLAG_XXX \u00b6 Defined in FT_FREETYPE_H (freetype/freetype.h). # define FT_SUBGLYPH_FLAG_ARGS_ARE_WORDS 1 # define FT_SUBGLYPH_FLAG_ARGS_ARE_XY_VALUES 2 # define FT_SUBGLYPH_FLAG_ROUND_XY_TO_GRID 4 # define FT_SUBGLYPH_FLAG_SCALE 8 # define FT_SUBGLYPH_FLAG_XY_SCALE 0x40 # define FT_SUBGLYPH_FLAG_2X2 0x80 # define FT_SUBGLYPH_FLAG_USE_MY_METRICS 0x200 A list of constants describing subglyphs. Please refer to the \u2018glyf\u2019 table description in the OpenType specification for the meaning of the various flags (which get synthesized for non-OpenType subglyphs). https://docs.microsoft.com/en-us/typography/opentype/spec/glyf#composite-glyph-description values FT_SUBGLYPH_FLAG_ARGS_ARE_WORDS FT_SUBGLYPH_FLAG_ARGS_ARE_XY_VALUES FT_SUBGLYPH_FLAG_ROUND_XY_TO_GRID FT_SUBGLYPH_FLAG_SCALE FT_SUBGLYPH_FLAG_XY_SCALE FT_SUBGLYPH_FLAG_2X2 FT_SUBGLYPH_FLAG_USE_MY_METRICS FT_FSTYPE_XXX \u00b6 Defined in FT_FREETYPE_H (freetype/freetype.h). # define FT_FSTYPE_INSTALLABLE_EMBEDDING 0x0000 # define FT_FSTYPE_RESTRICTED_LICENSE_EMBEDDING 0x0002 # define FT_FSTYPE_PREVIEW_AND_PRINT_EMBEDDING 0x0004 # define FT_FSTYPE_EDITABLE_EMBEDDING 0x0008 # define FT_FSTYPE_NO_SUBSETTING 0x0100 # define FT_FSTYPE_BITMAP_EMBEDDING_ONLY 0x0200 A list of bit flags used in the fsType field of the OS/2 table in a TrueType or OpenType font and the FSType entry in a PostScript font. These bit flags are returned by FT_Get_FSType_Flags ; they inform client applications of embedding and subsetting restrictions associated with a font. See https://www.adobe.com/content/dam/Adobe/en/devnet/acrobat/pdfs/FontPolicies.pdf for more details. values FT_FSTYPE_INSTALLABLE_EMBEDDING Fonts with no fsType bit set may be embedded and permanently installed on the remote system by an application. FT_FSTYPE_RESTRICTED_LICENSE_EMBEDDING Fonts that have only this bit set must not be modified, embedded or exchanged in any manner without first obtaining permission of the font software copyright owner. FT_FSTYPE_PREVIEW_AND_PRINT_EMBEDDING The font may be embedded and temporarily loaded on the remote system. Documents containing Preview & Print fonts must be opened \u2018read-only\u2019; no edits can be applied to the document. FT_FSTYPE_EDITABLE_EMBEDDING The font may be embedded but must only be installed temporarily on other systems. In contrast to Preview & Print fonts, documents containing editable fonts may be opened for reading, editing is permitted, and changes may be saved. FT_FSTYPE_NO_SUBSETTING The font may not be subsetted prior to embedding. FT_FSTYPE_BITMAP_EMBEDDING_ONLY Only bitmaps contained in the font may be embedded; no outline data may be embedded. If there are no bitmaps available in the font, then the font is unembeddable. note The flags are ORed together, thus more than a single value can be returned. While the fsType flags can indicate that a font may be embedded, a license with the font vendor may be separately required to use the font in this way. FT_HAS_FAST_GLYPHS \u00b6 Defined in FT_FREETYPE_H (freetype/freetype.h). # define FT_HAS_FAST_GLYPHS ( face ) 0 Deprecated.","title":"Base Interface"},{"location":"ft2-base_interface.html#base-interface","text":"","title":"Base Interface"},{"location":"ft2-base_interface.html#synopsis","text":"This section describes the most important public high-level API functions of FreeType 2.","title":"Synopsis"},{"location":"ft2-base_interface.html#ft_library","text":"Defined in FT_FREETYPE_H (freetype/freetype.h). typedef struct FT_LibraryRec_ * FT_Library ; A handle to a FreeType library instance. Each \u2018library\u2019 is completely independent from the others; it is the \u2018root\u2019 of a set of objects like fonts, faces, sizes, etc. It also embeds a memory manager (see FT_Memory ), as well as a scan-line converter object (see FT_Raster ). [Since 2.5.6] In multi-threaded applications it is easiest to use one FT_Library object per thread. In case this is too cumbersome, a single FT_Library object across threads is possible also, as long as a mutex lock is used around FT_New_Face and FT_Done_Face .","title":"FT_Library"},{"location":"ft2-base_interface.html#ft_face","text":"Defined in FT_FREETYPE_H (freetype/freetype.h). typedef struct FT_FaceRec_* FT_Face ; A handle to a typographic face object. A face object models a given typeface, in a given style.","title":"FT_Face"},{"location":"ft2-base_interface.html#ft_size","text":"Defined in FT_FREETYPE_H (freetype/freetype.h). typedef struct FT_SizeRec_* FT_Size ; A handle to an object that models a face scaled to a given character size.","title":"FT_Size"},{"location":"ft2-base_interface.html#ft_glyphslot","text":"Defined in FT_FREETYPE_H (freetype/freetype.h). typedef struct FT_GlyphSlotRec_* FT_GlyphSlot ; A handle to a given \u2018glyph slot\u2019. A slot is a container that can hold any of the glyphs contained in its parent face. In other words, each time you call FT_Load_Glyph or FT_Load_Char , the slot's content is erased by the new glyph data, i.e., the glyph's metrics, its image (bitmap or outline), and other control information.","title":"FT_GlyphSlot"},{"location":"ft2-base_interface.html#ft_charmap","text":"Defined in FT_FREETYPE_H (freetype/freetype.h). typedef struct FT_CharMapRec_* FT_CharMap ; A handle to a character map (usually abbreviated to \u2018charmap\u2019). A charmap is used to translate character codes in a given encoding into glyph indexes for its parent's face. Some font formats may provide several charmaps per font. Each face object owns zero or more charmaps, but only one of them can be \u2018active\u2019, providing the data used by FT_Get_Char_Index or FT_Load_Char . The list of available charmaps in a face is available through the face->num_charmaps and face->charmaps fields of FT_FaceRec . The currently active charmap is available as face->charmap . You should call FT_Set_Charmap to change it.","title":"FT_CharMap"},{"location":"ft2-base_interface.html#ft_encoding","text":"Defined in FT_FREETYPE_H (freetype/freetype.h). typedef enum FT_Encoding_ { FT_ENC_TAG ( FT_ENCODING_NONE , 0, 0, 0, 0 ), FT_ENC_TAG ( FT_ENCODING_MS_SYMBOL , 's', 'y', 'm', 'b' ), FT_ENC_TAG ( FT_ENCODING_UNICODE , 'u', 'n', 'i', 'c' ), FT_ENC_TAG ( FT_ENCODING_SJIS , 's', 'j', 'i', 's' ), FT_ENC_TAG ( FT_ENCODING_PRC , 'g', 'b', ' ', ' ' ), FT_ENC_TAG ( FT_ENCODING_BIG5 , 'b', 'i', 'g', '5' ), FT_ENC_TAG ( FT_ENCODING_WANSUNG , 'w', 'a', 'n', 's' ), FT_ENC_TAG ( FT_ENCODING_JOHAB , 'j', 'o', 'h', 'a' ), /* for backward compatibility */ FT_ENCODING_GB2312 = FT_ENCODING_PRC , FT_ENCODING_MS_SJIS = FT_ENCODING_SJIS , FT_ENCODING_MS_GB2312 = FT_ENCODING_PRC , FT_ENCODING_MS_BIG5 = FT_ENCODING_BIG5 , FT_ENCODING_MS_WANSUNG = FT_ENCODING_WANSUNG , FT_ENCODING_MS_JOHAB = FT_ENCODING_JOHAB , FT_ENC_TAG ( FT_ENCODING_ADOBE_STANDARD , 'A', 'D', 'O', 'B' ), FT_ENC_TAG ( FT_ENCODING_ADOBE_EXPERT , 'A', 'D', 'B', 'E' ), FT_ENC_TAG ( FT_ENCODING_ADOBE_CUSTOM , 'A', 'D', 'B', 'C' ), FT_ENC_TAG ( FT_ENCODING_ADOBE_LATIN_1 , 'l', 'a', 't', '1' ), FT_ENC_TAG ( FT_ENCODING_OLD_LATIN_2 , 'l', 'a', 't', '2' ), FT_ENC_TAG ( FT_ENCODING_APPLE_ROMAN , 'a', 'r', 'm', 'n' ) } FT_Encoding ; /* these constants are deprecated; use the corresponding ` FT_Encoding ` */ /* values instead */ # define ft_encoding_none FT_ENCODING_NONE # define ft_encoding_unicode FT_ENCODING_UNICODE # define ft_encoding_symbol FT_ENCODING_MS_SYMBOL # define ft_encoding_latin_1 FT_ENCODING_ADOBE_LATIN_1 # define ft_encoding_latin_2 FT_ENCODING_OLD_LATIN_2 # define ft_encoding_sjis FT_ENCODING_SJIS # define ft_encoding_gb2312 FT_ENCODING_PRC # define ft_encoding_big5 FT_ENCODING_BIG5 # define ft_encoding_wansung FT_ENCODING_WANSUNG # define ft_encoding_johab FT_ENCODING_JOHAB # define ft_encoding_adobe_standard FT_ENCODING_ADOBE_STANDARD # define ft_encoding_adobe_expert FT_ENCODING_ADOBE_EXPERT # define ft_encoding_adobe_custom FT_ENCODING_ADOBE_CUSTOM # define ft_encoding_apple_roman FT_ENCODING_APPLE_ROMAN An enumeration to specify character sets supported by charmaps. Used in the FT_Select_Charmap API function.","title":"FT_Encoding"},{"location":"ft2-base_interface.html#ft_enc_tag","text":"Defined in FT_FREETYPE_H (freetype/freetype.h). # ifndef FT_ENC_TAG # define FT_ENC_TAG ( value, a, b, c, d ) \\ value = ( ( ( FT_UInt32 )(a) << 24 ) | \\ ( ( FT_UInt32 )(b) << 16 ) | \\ ( ( FT_UInt32 )(c) << 8 ) | \\ ( FT_UInt32 )(d) ) # endif /* FT_ENC_TAG */ This macro converts four-letter tags into an unsigned long. It is used to define \u2018encoding\u2019 identifiers (see FT_Encoding ).","title":"FT_ENC_TAG"},{"location":"ft2-base_interface.html#ft_facerec","text":"Defined in FT_FREETYPE_H (freetype/freetype.h). typedef struct FT_FaceRec_ { FT_Long num_faces; FT_Long face_index; FT_Long face_flags; FT_Long style_flags; FT_Long num_glyphs; FT_String * family_name; FT_String * style_name; FT_Int num_fixed_sizes; FT_Bitmap_Size * available_sizes; FT_Int num_charmaps; FT_CharMap * charmaps; FT_Generic generic; /*# The following member variables (down to `underline_thickness`) */ /*# are only relevant to scalable outlines; cf. @ FT_Bitmap_Size */ /*# for bitmap fonts. */ FT_BBox bbox; FT_UShort units_per_EM; FT_Short ascender; FT_Short descender; FT_Short height; FT_Short max_advance_width; FT_Short max_advance_height; FT_Short underline_position; FT_Short underline_thickness; FT_GlyphSlot glyph; FT_Size size; FT_CharMap charmap; /*@private begin */ FT_Driver driver; FT_Memory memory; FT_Stream stream; FT_ListRec sizes_list; FT_Generic autohint; /* face-specific auto-hinter data */ void * extensions; /* unused */ FT_Face_Internal internal; /*@private end */ } FT_FaceRec ; FreeType root face class structure. A face object models a typeface in a font file.","title":"FT_FaceRec"},{"location":"ft2-base_interface.html#ft_has_horizontal","text":"Defined in FT_FREETYPE_H (freetype/freetype.h). # define FT_HAS_HORIZONTAL ( face ) \\ ( !!( (face)->face_flags & FT_FACE_FLAG_HORIZONTAL ) ) A macro that returns true whenever a face object contains horizontal metrics (this is true for all font formats though).","title":"FT_HAS_HORIZONTAL"},{"location":"ft2-base_interface.html#ft_has_vertical","text":"Defined in FT_FREETYPE_H (freetype/freetype.h). # define FT_HAS_VERTICAL ( face ) \\ ( !!( (face)->face_flags & FT_FACE_FLAG_VERTICAL ) ) A macro that returns true whenever a face object contains real vertical metrics (and not only synthesized ones).","title":"FT_HAS_VERTICAL"},{"location":"ft2-base_interface.html#ft_has_kerning","text":"Defined in FT_FREETYPE_H (freetype/freetype.h). # define FT_HAS_KERNING ( face ) \\ ( !!( (face)->face_flags & FT_FACE_FLAG_KERNING ) ) A macro that returns true whenever a face object contains kerning data that can be accessed with FT_Get_Kerning .","title":"FT_HAS_KERNING"},{"location":"ft2-base_interface.html#ft_has_fixed_sizes","text":"Defined in FT_FREETYPE_H (freetype/freetype.h). # define FT_HAS_FIXED_SIZES ( face ) \\ ( !!( (face)->face_flags & FT_FACE_FLAG_FIXED_SIZES ) ) A macro that returns true whenever a face object contains some embedded bitmaps. See the available_sizes field of the FT_FaceRec structure.","title":"FT_HAS_FIXED_SIZES"},{"location":"ft2-base_interface.html#ft_has_glyph_names","text":"Defined in FT_FREETYPE_H (freetype/freetype.h). # define FT_HAS_GLYPH_NAMES ( face ) \\ ( !!( (face)->face_flags & FT_FACE_FLAG_GLYPH_NAMES ) ) A macro that returns true whenever a face object contains some glyph names that can be accessed through FT_Get_Glyph_Name .","title":"FT_HAS_GLYPH_NAMES"},{"location":"ft2-base_interface.html#ft_has_color","text":"Defined in FT_FREETYPE_H (freetype/freetype.h). # define FT_HAS_COLOR ( face ) \\ ( !!( (face)->face_flags & FT_FACE_FLAG_COLOR ) ) A macro that returns true whenever a face object contains tables for color glyphs.","title":"FT_HAS_COLOR"},{"location":"ft2-base_interface.html#ft_has_multiple_masters","text":"Defined in FT_FREETYPE_H (freetype/freetype.h). # define FT_HAS_MULTIPLE_MASTERS ( face ) \\ ( !!( (face)->face_flags & FT_FACE_FLAG_MULTIPLE_MASTERS ) ) A macro that returns true whenever a face object contains some multiple masters. The functions provided by FT_MULTIPLE_MASTERS_H are then available to choose the exact design you want.","title":"FT_HAS_MULTIPLE_MASTERS"},{"location":"ft2-base_interface.html#ft_is_sfnt","text":"Defined in FT_FREETYPE_H (freetype/freetype.h). # define FT_IS_SFNT ( face ) \\ ( !!( (face)->face_flags & FT_FACE_FLAG_SFNT ) ) A macro that returns true whenever a face object contains a font whose format is based on the SFNT storage scheme. This usually means: TrueType fonts, OpenType fonts, as well as SFNT-based embedded bitmap fonts. If this macro is true, all functions defined in FT_SFNT_NAMES_H and FT_TRUETYPE_TABLES_H are available.","title":"FT_IS_SFNT"},{"location":"ft2-base_interface.html#ft_is_scalable","text":"Defined in FT_FREETYPE_H (freetype/freetype.h). # define FT_IS_SCALABLE ( face ) \\ ( !!( (face)->face_flags & FT_FACE_FLAG_SCALABLE ) ) A macro that returns true whenever a face object contains a scalable font face (true for TrueType, Type 1, Type 42, CID, OpenType/CFF, and PFR font formats).","title":"FT_IS_SCALABLE"},{"location":"ft2-base_interface.html#ft_is_fixed_width","text":"Defined in FT_FREETYPE_H (freetype/freetype.h). # define FT_IS_FIXED_WIDTH ( face ) \\ ( !!( (face)->face_flags & FT_FACE_FLAG_FIXED_WIDTH ) ) A macro that returns true whenever a face object contains a font face that contains fixed-width (or \u2018monospace\u2019, \u2018fixed-pitch\u2019, etc.) glyphs.","title":"FT_IS_FIXED_WIDTH"},{"location":"ft2-base_interface.html#ft_is_cid_keyed","text":"Defined in FT_FREETYPE_H (freetype/freetype.h). # define FT_IS_CID_KEYED ( face ) \\ ( !!( (face)->face_flags & FT_FACE_FLAG_CID_KEYED ) ) A macro that returns true whenever a face object contains a CID-keyed font. See the discussion of FT_FACE_FLAG_CID_KEYED for more details. If this macro is true, all functions defined in FT_CID_H are available.","title":"FT_IS_CID_KEYED"},{"location":"ft2-base_interface.html#ft_is_tricky","text":"Defined in FT_FREETYPE_H (freetype/freetype.h). # define FT_IS_TRICKY ( face ) \\ ( !!( (face)->face_flags & FT_FACE_FLAG_TRICKY ) ) A macro that returns true whenever a face represents a \u2018tricky\u2019 font. See the discussion of FT_FACE_FLAG_TRICKY for more details.","title":"FT_IS_TRICKY"},{"location":"ft2-base_interface.html#ft_is_named_instance","text":"Defined in FT_FREETYPE_H (freetype/freetype.h). # define FT_IS_NAMED_INSTANCE ( face ) \\ ( !!( (face)->face_index & 0x7FFF0000L ) ) A macro that returns true whenever a face object is a named instance of a GX or OpenType variation font. [Since 2.9] Changing the design coordinates with FT_Set_Var_Design_Coordinates or FT_Set_Var_Blend_Coordinates does not influence the return value of this macro (only FT_Set_Named_Instance does that).","title":"FT_IS_NAMED_INSTANCE"},{"location":"ft2-base_interface.html#ft_is_variation","text":"Defined in FT_FREETYPE_H (freetype/freetype.h). # define FT_IS_VARIATION ( face ) \\ ( !!( (face)->face_flags & FT_FACE_FLAG_VARIATION ) ) A macro that returns true whenever a face object has been altered by FT_Set_MM_Design_Coordinates , FT_Set_Var_Design_Coordinates , or FT_Set_Var_Blend_Coordinates .","title":"FT_IS_VARIATION"},{"location":"ft2-base_interface.html#ft_sizerec","text":"Defined in FT_FREETYPE_H (freetype/freetype.h). typedef struct FT_SizeRec_ { FT_Face face; /* parent face object */ FT_Generic generic; /* generic pointer for client uses */ FT_Size_Metrics metrics; /* size metrics */ FT_Size_Internal internal; } FT_SizeRec ; FreeType root size class structure. A size object models a face object at a given size.","title":"FT_SizeRec"},{"location":"ft2-base_interface.html#ft_size_metrics","text":"Defined in FT_FREETYPE_H (freetype/freetype.h). typedef struct FT_Size_Metrics_ { FT_UShort x_ppem; /* horizontal pixels per EM */ FT_UShort y_ppem; /* vertical pixels per EM */ FT_Fixed x_scale; /* scaling values used to convert font */ FT_Fixed y_scale; /* units to 26.6 fractional pixels */ FT_Pos ascender; /* ascender in 26.6 frac. pixels */ FT_Pos descender; /* descender in 26.6 frac. pixels */ FT_Pos height; /* text height in 26.6 frac. pixels */ FT_Pos max_advance; /* max horizontal advance, in 26.6 pixels */ } FT_Size_Metrics ; The size metrics structure gives the metrics of a size object.","title":"FT_Size_Metrics"},{"location":"ft2-base_interface.html#ft_glyphslotrec","text":"Defined in FT_FREETYPE_H (freetype/freetype.h). typedef struct FT_GlyphSlotRec_ { FT_Library library; FT_Face face; FT_GlyphSlot next; FT_UInt glyph_index; /* new in 2.10; was reserved previously */ FT_Generic generic; FT_Glyph_Metrics metrics; FT_Fixed linearHoriAdvance; FT_Fixed linearVertAdvance; FT_Vector advance; FT_Glyph_Format format; FT_Bitmap bitmap; FT_Int bitmap_left; FT_Int bitmap_top; FT_Outline outline; FT_UInt num_subglyphs; FT_SubGlyph subglyphs; void * control_data; long control_len; FT_Pos lsb_delta; FT_Pos rsb_delta; void * other; FT_Slot_Internal internal; } FT_GlyphSlotRec ; FreeType root glyph slot class structure. A glyph slot is a container where individual glyphs can be loaded, be they in outline or bitmap format.","title":"FT_GlyphSlotRec"},{"location":"ft2-base_interface.html#ft_glyph_metrics","text":"Defined in FT_FREETYPE_H (freetype/freetype.h). typedef struct FT_Glyph_Metrics_ { FT_Pos width; FT_Pos height; FT_Pos horiBearingX; FT_Pos horiBearingY; FT_Pos horiAdvance; FT_Pos vertBearingX; FT_Pos vertBearingY; FT_Pos vertAdvance; } FT_Glyph_Metrics ; A structure to model the metrics of a single glyph. The values are expressed in 26.6 fractional pixel format; if the flag FT_LOAD_NO_SCALE has been used while loading the glyph, values are expressed in font units instead.","title":"FT_Glyph_Metrics"},{"location":"ft2-base_interface.html#ft_subglyph","text":"Defined in FT_FREETYPE_H (freetype/freetype.h). typedef struct FT_SubGlyphRec_* FT_SubGlyph ; The subglyph structure is an internal object used to describe subglyphs (for example, in the case of composites).","title":"FT_SubGlyph"},{"location":"ft2-base_interface.html#ft_bitmap_size","text":"Defined in FT_FREETYPE_H (freetype/freetype.h). typedef struct FT_Bitmap_Size_ { FT_Short height; FT_Short width; FT_Pos size; FT_Pos x_ppem; FT_Pos y_ppem; } FT_Bitmap_Size ; This structure models the metrics of a bitmap strike (i.e., a set of glyphs for a given point size and resolution) in a bitmap font. It is used for the available_sizes field of FT_Face .","title":"FT_Bitmap_Size"},{"location":"ft2-base_interface.html#ft_init_freetype","text":"Defined in FT_FREETYPE_H (freetype/freetype.h). FT_EXPORT( FT_Error ) FT_Init_FreeType ( FT_Library *alibrary ); Initialize a new FreeType library object. The set of modules that are registered by this function is determined at build time.","title":"FT_Init_FreeType"},{"location":"ft2-base_interface.html#ft_done_freetype","text":"Defined in FT_FREETYPE_H (freetype/freetype.h). FT_EXPORT( FT_Error ) FT_Done_FreeType ( FT_Library library ); Destroy a given FreeType library object and all of its children, including resources, drivers, faces, sizes, etc.","title":"FT_Done_FreeType"},{"location":"ft2-base_interface.html#ft_new_face","text":"Defined in FT_FREETYPE_H (freetype/freetype.h). FT_EXPORT( FT_Error ) FT_New_Face ( FT_Library library, const char * filepathname, FT_Long face_index, FT_Face *aface ); Call FT_Open_Face to open a font by its pathname.","title":"FT_New_Face"},{"location":"ft2-base_interface.html#ft_done_face","text":"Defined in FT_FREETYPE_H (freetype/freetype.h). FT_EXPORT( FT_Error ) FT_Done_Face ( FT_Face face ); Discard a given face object, as well as all of its child slots and sizes.","title":"FT_Done_Face"},{"location":"ft2-base_interface.html#ft_reference_face","text":"Defined in FT_FREETYPE_H (freetype/freetype.h). FT_EXPORT( FT_Error ) FT_Reference_Face ( FT_Face face ); A counter gets initialized to 1 at the time an FT_Face structure is created. This function increments the counter. FT_Done_Face then only destroys a face if the counter is 1, otherwise it simply decrements the counter. This function helps in managing life-cycles of structures that reference FT_Face objects.","title":"FT_Reference_Face"},{"location":"ft2-base_interface.html#ft_new_memory_face","text":"Defined in FT_FREETYPE_H (freetype/freetype.h). FT_EXPORT( FT_Error ) FT_New_Memory_Face ( FT_Library library, const FT_Byte * file_base, FT_Long file_size, FT_Long face_index, FT_Face *aface ); Call FT_Open_Face to open a font that has been loaded into memory.","title":"FT_New_Memory_Face"},{"location":"ft2-base_interface.html#ft_face_properties","text":"Defined in FT_FREETYPE_H (freetype/freetype.h). FT_EXPORT( FT_Error ) FT_Face_Properties ( FT_Face face, FT_UInt num_properties, FT_Parameter * properties ); Set or override certain (library or module-wide) properties on a face-by-face basis. Useful for finer-grained control and avoiding locks on shared structures (threads can modify their own faces as they see fit). Contrary to FT_Property_Set , this function uses FT_Parameter so that you can pass multiple properties to the target face in one call. Note that only a subset of the available properties can be controlled. FT_PARAM_TAG_STEM_DARKENING (stem darkening, corresponding to the property no-stem-darkening provided by the \u2018autofit\u2019, \u2018cff\u2019, \u2018type1\u2019, and \u2018t1cid\u2019 modules; see no-stem-darkening ). FT_PARAM_TAG_LCD_FILTER_WEIGHTS (LCD filter weights, corresponding to function FT_Library_SetLcdFilterWeights ). FT_PARAM_TAG_RANDOM_SEED (seed value for the CFF, Type 1, and CID \u2018random\u2019 operator, corresponding to the random-seed property provided by the \u2018cff\u2019, \u2018type1\u2019, and \u2018t1cid\u2019 modules; see random-seed ). Pass NULL as data in FT_Parameter for a given tag to reset the option and use the library or module default again.","title":"FT_Face_Properties"},{"location":"ft2-base_interface.html#ft_open_face","text":"Defined in FT_FREETYPE_H (freetype/freetype.h). FT_EXPORT( FT_Error ) FT_Open_Face ( FT_Library library, const FT_Open_Args * args, FT_Long face_index, FT_Face *aface ); Create a face object from a given resource described by FT_Open_Args .","title":"FT_Open_Face"},{"location":"ft2-base_interface.html#ft_open_args","text":"Defined in FT_FREETYPE_H (freetype/freetype.h). typedef struct FT_Open_Args_ { FT_UInt flags; const FT_Byte * memory_base; FT_Long memory_size; FT_String * pathname; FT_Stream stream; FT_Module driver; FT_Int num_params; FT_Parameter * params; } FT_Open_Args ; A structure to indicate how to open a new font file or stream. A pointer to such a structure can be used as a parameter for the functions FT_Open_Face and FT_Attach_Stream .","title":"FT_Open_Args"},{"location":"ft2-base_interface.html#ft_parameter","text":"Defined in FT_FREETYPE_H (freetype/freetype.h). typedef struct FT_Parameter_ { FT_ULong tag; FT_Pointer data; } FT_Parameter ; A simple structure to pass more or less generic parameters to FT_Open_Face and FT_Face_Properties .","title":"FT_Parameter"},{"location":"ft2-base_interface.html#ft_attach_file","text":"Defined in FT_FREETYPE_H (freetype/freetype.h). FT_EXPORT( FT_Error ) FT_Attach_File ( FT_Face face, const char * filepathname ); Call FT_Attach_Stream to attach a file.","title":"FT_Attach_File"},{"location":"ft2-base_interface.html#ft_attach_stream","text":"Defined in FT_FREETYPE_H (freetype/freetype.h). FT_EXPORT( FT_Error ) FT_Attach_Stream ( FT_Face face, FT_Open_Args * parameters ); \u2018Attach\u2019 data to a face object. Normally, this is used to read additional information for the face object. For example, you can attach an AFM file that comes with a Type 1 font to get the kerning values and other metrics.","title":"FT_Attach_Stream"},{"location":"ft2-base_interface.html#ft_set_char_size","text":"Defined in FT_FREETYPE_H (freetype/freetype.h). FT_EXPORT( FT_Error ) FT_Set_Char_Size ( FT_Face face, FT_F26Dot6 char_width, FT_F26Dot6 char_height, FT_UInt horz_resolution, FT_UInt vert_resolution ); Call FT_Request_Size to request the nominal size (in points).","title":"FT_Set_Char_Size"},{"location":"ft2-base_interface.html#ft_set_pixel_sizes","text":"Defined in FT_FREETYPE_H (freetype/freetype.h). FT_EXPORT( FT_Error ) FT_Set_Pixel_Sizes ( FT_Face face, FT_UInt pixel_width, FT_UInt pixel_height ); Call FT_Request_Size to request the nominal size (in pixels).","title":"FT_Set_Pixel_Sizes"},{"location":"ft2-base_interface.html#ft_request_size","text":"Defined in FT_FREETYPE_H (freetype/freetype.h). FT_EXPORT( FT_Error ) FT_Request_Size ( FT_Face face, FT_Size_Request req ); Resize the scale of the active FT_Size object in a face.","title":"FT_Request_Size"},{"location":"ft2-base_interface.html#ft_select_size","text":"Defined in FT_FREETYPE_H (freetype/freetype.h). FT_EXPORT( FT_Error ) FT_Select_Size ( FT_Face face, FT_Int strike_index ); Select a bitmap strike. To be more precise, this function sets the scaling factors of the active FT_Size object in a face so that bitmaps from this particular strike are taken by FT_Load_Glyph and friends.","title":"FT_Select_Size"},{"location":"ft2-base_interface.html#ft_size_request_type","text":"Defined in FT_FREETYPE_H (freetype/freetype.h). typedef enum FT_Size_Request_Type_ { FT_SIZE_REQUEST_TYPE_NOMINAL , FT_SIZE_REQUEST_TYPE_REAL_DIM , FT_SIZE_REQUEST_TYPE_BBOX , FT_SIZE_REQUEST_TYPE_CELL , FT_SIZE_REQUEST_TYPE_SCALES , FT_SIZE_REQUEST_TYPE_MAX } FT_Size_Request_Type ; An enumeration type that lists the supported size request types, i.e., what input size (in font units) maps to the requested output size (in pixels, as computed from the arguments of FT_Size_Request ).","title":"FT_Size_Request_Type"},{"location":"ft2-base_interface.html#ft_size_requestrec","text":"Defined in FT_FREETYPE_H (freetype/freetype.h). typedef struct FT_Size_RequestRec_ { FT_Size_Request_Type type; FT_Long width; FT_Long height; FT_UInt horiResolution; FT_UInt vertResolution; } FT_Size_RequestRec ; A structure to model a size request.","title":"FT_Size_RequestRec"},{"location":"ft2-base_interface.html#ft_size_request","text":"Defined in FT_FREETYPE_H (freetype/freetype.h). typedef struct FT_Size_RequestRec_ * FT_Size_Request ; A handle to a size request structure.","title":"FT_Size_Request"},{"location":"ft2-base_interface.html#ft_set_transform","text":"Defined in FT_FREETYPE_H (freetype/freetype.h). FT_EXPORT( void ) FT_Set_Transform ( FT_Face face, FT_Matrix * matrix, FT_Vector * delta ); Set the transformation that is applied to glyph images when they are loaded into a glyph slot through FT_Load_Glyph .","title":"FT_Set_Transform"},{"location":"ft2-base_interface.html#ft_load_glyph","text":"Defined in FT_FREETYPE_H (freetype/freetype.h). FT_EXPORT( FT_Error ) FT_Load_Glyph ( FT_Face face, FT_UInt glyph_index, FT_Int32 load_flags ); Load a glyph into the glyph slot of a face object.","title":"FT_Load_Glyph"},{"location":"ft2-base_interface.html#ft_get_char_index","text":"Defined in FT_FREETYPE_H (freetype/freetype.h). FT_EXPORT( FT_UInt ) FT_Get_Char_Index ( FT_Face face, FT_ULong charcode ); Return the glyph index of a given character code. This function uses the currently selected charmap to do the mapping.","title":"FT_Get_Char_Index"},{"location":"ft2-base_interface.html#ft_get_first_char","text":"Defined in FT_FREETYPE_H (freetype/freetype.h). FT_EXPORT( FT_ULong ) FT_Get_First_Char ( FT_Face face, FT_UInt *agindex ); Return the first character code in the current charmap of a given face, together with its corresponding glyph index.","title":"FT_Get_First_Char"},{"location":"ft2-base_interface.html#ft_get_next_char","text":"Defined in FT_FREETYPE_H (freetype/freetype.h). FT_EXPORT( FT_ULong ) FT_Get_Next_Char ( FT_Face face, FT_ULong char_code, FT_UInt *agindex ); Return the next character code in the current charmap of a given face following the value char_code , as well as the corresponding glyph index.","title":"FT_Get_Next_Char"},{"location":"ft2-base_interface.html#ft_get_name_index","text":"Defined in FT_FREETYPE_H (freetype/freetype.h). FT_EXPORT( FT_UInt ) FT_Get_Name_Index ( FT_Face face, const FT_String * glyph_name ); Return the glyph index of a given glyph name.","title":"FT_Get_Name_Index"},{"location":"ft2-base_interface.html#ft_load_char","text":"Defined in FT_FREETYPE_H (freetype/freetype.h). FT_EXPORT( FT_Error ) FT_Load_Char ( FT_Face face, FT_ULong char_code, FT_Int32 load_flags ); Load a glyph into the glyph slot of a face object, accessed by its character code.","title":"FT_Load_Char"},{"location":"ft2-base_interface.html#ft_load_target_mode","text":"Defined in FT_FREETYPE_H (freetype/freetype.h). # define FT_LOAD_TARGET_MODE ( x ) ( ( FT_Render_Mode )( ( (x) >> 16 ) & 15 ) ) Return the FT_Render_Mode corresponding to a given FT_LOAD_TARGET_XXX value.","title":"FT_LOAD_TARGET_MODE"},{"location":"ft2-base_interface.html#ft_render_glyph","text":"Defined in FT_FREETYPE_H (freetype/freetype.h). FT_EXPORT( FT_Error ) FT_Render_Glyph ( FT_GlyphSlot slot, FT_Render_Mode render_mode ); Convert a given glyph image to a bitmap. It does so by inspecting the glyph image format, finding the relevant renderer, and invoking it.","title":"FT_Render_Glyph"},{"location":"ft2-base_interface.html#ft_render_mode","text":"Defined in FT_FREETYPE_H (freetype/freetype.h). typedef enum FT_Render_Mode_ { FT_RENDER_MODE_NORMAL = 0, FT_RENDER_MODE_LIGHT , FT_RENDER_MODE_MONO , FT_RENDER_MODE_LCD , FT_RENDER_MODE_LCD_V , FT_RENDER_MODE_MAX } FT_Render_Mode ; /* these constants are deprecated; use the corresponding */ /* ` FT_Render_Mode ` values instead */ # define ft_render_mode_normal FT_RENDER_MODE_NORMAL # define ft_render_mode_mono FT_RENDER_MODE_MONO Render modes supported by FreeType 2. Each mode corresponds to a specific type of scanline conversion performed on the outline. For bitmap fonts and embedded bitmaps the bitmap->pixel_mode field in the FT_GlyphSlotRec structure gives the format of the returned bitmap. All modes except FT_RENDER_MODE_MONO use 256 levels of opacity, indicating pixel coverage. Use linear alpha blending and gamma correction to correctly render non-monochrome glyph bitmaps onto a surface; see FT_Render_Glyph .","title":"FT_Render_Mode"},{"location":"ft2-base_interface.html#ft_get_kerning","text":"Defined in FT_FREETYPE_H (freetype/freetype.h). FT_EXPORT( FT_Error ) FT_Get_Kerning ( FT_Face face, FT_UInt left_glyph, FT_UInt right_glyph, FT_UInt kern_mode, FT_Vector *akerning ); Return the kerning vector between two glyphs of the same face.","title":"FT_Get_Kerning"},{"location":"ft2-base_interface.html#ft_kerning_mode","text":"Defined in FT_FREETYPE_H (freetype/freetype.h). typedef enum FT_Kerning_Mode_ { FT_KERNING_DEFAULT = 0, FT_KERNING_UNFITTED , FT_KERNING_UNSCALED } FT_Kerning_Mode ; /* these constants are deprecated; use the corresponding */ /* ` FT_Kerning_Mode ` values instead */ # define ft_kerning_default FT_KERNING_DEFAULT # define ft_kerning_unfitted FT_KERNING_UNFITTED # define ft_kerning_unscaled FT_KERNING_UNSCALED An enumeration to specify the format of kerning values returned by FT_Get_Kerning .","title":"FT_Kerning_Mode"},{"location":"ft2-base_interface.html#ft_get_track_kerning","text":"Defined in FT_FREETYPE_H (freetype/freetype.h). FT_EXPORT( FT_Error ) FT_Get_Track_Kerning ( FT_Face face, FT_Fixed point_size, FT_Int degree, FT_Fixed * akerning ); Return the track kerning for a given face object at a given size.","title":"FT_Get_Track_Kerning"},{"location":"ft2-base_interface.html#ft_get_glyph_name","text":"Defined in FT_FREETYPE_H (freetype/freetype.h). FT_EXPORT( FT_Error ) FT_Get_Glyph_Name ( FT_Face face, FT_UInt glyph_index, FT_Pointer buffer, FT_UInt buffer_max ); Retrieve the ASCII name of a given glyph in a face. This only works for those faces where FT_HAS_GLYPH_NAMES (face) returns 1.","title":"FT_Get_Glyph_Name"},{"location":"ft2-base_interface.html#ft_get_postscript_name","text":"Defined in FT_FREETYPE_H (freetype/freetype.h). FT_EXPORT( const char * ) FT_Get_Postscript_Name ( FT_Face face ); Retrieve the ASCII PostScript name of a given face, if available. This only works with PostScript, TrueType, and OpenType fonts.","title":"FT_Get_Postscript_Name"},{"location":"ft2-base_interface.html#ft_charmaprec","text":"Defined in FT_FREETYPE_H (freetype/freetype.h). typedef struct FT_CharMapRec_ { FT_Face face; FT_Encoding encoding; FT_UShort platform_id; FT_UShort encoding_id; } FT_CharMapRec ; The base charmap structure.","title":"FT_CharMapRec"},{"location":"ft2-base_interface.html#ft_select_charmap","text":"Defined in FT_FREETYPE_H (freetype/freetype.h). FT_EXPORT( FT_Error ) FT_Select_Charmap ( FT_Face face, FT_Encoding encoding ); Select a given charmap by its encoding tag (as listed in freetype.h ).","title":"FT_Select_Charmap"},{"location":"ft2-base_interface.html#ft_set_charmap","text":"Defined in FT_FREETYPE_H (freetype/freetype.h). FT_EXPORT( FT_Error ) FT_Set_Charmap ( FT_Face face, FT_CharMap charmap ); Select a given charmap for character code to glyph index mapping.","title":"FT_Set_Charmap"},{"location":"ft2-base_interface.html#ft_get_charmap_index","text":"Defined in FT_FREETYPE_H (freetype/freetype.h). FT_EXPORT( FT_Int ) FT_Get_Charmap_Index ( FT_CharMap charmap ); Retrieve index of a given charmap.","title":"FT_Get_Charmap_Index"},{"location":"ft2-base_interface.html#ft_get_fstype_flags","text":"Defined in FT_FREETYPE_H (freetype/freetype.h). FT_EXPORT( FT_UShort ) FT_Get_FSType_Flags ( FT_Face face ); Return the fsType flags for a font.","title":"FT_Get_FSType_Flags"},{"location":"ft2-base_interface.html#ft_get_subglyph_info","text":"Defined in FT_FREETYPE_H (freetype/freetype.h). FT_EXPORT( FT_Error ) FT_Get_SubGlyph_Info ( FT_GlyphSlot glyph, FT_UInt sub_index, FT_Int *p_index, FT_UInt *p_flags, FT_Int *p_arg1, FT_Int *p_arg2, FT_Matrix *p_transform ); Retrieve a description of a given subglyph. Only use it if glyph->format is FT_GLYPH_FORMAT_COMPOSITE ; an error is returned otherwise.","title":"FT_Get_SubGlyph_Info"},{"location":"ft2-base_interface.html#ft_face_internal","text":"Defined in FT_FREETYPE_H (freetype/freetype.h). typedef struct FT_Face_InternalRec_* FT_Face_Internal ; An opaque handle to an FT_Face_InternalRec structure that models the private data of a given FT_Face object. This structure might change between releases of FreeType 2 and is not generally available to client applications.","title":"FT_Face_Internal"},{"location":"ft2-base_interface.html#ft_size_internal","text":"Defined in FT_FREETYPE_H (freetype/freetype.h). typedef struct FT_Size_InternalRec_* FT_Size_Internal ; An opaque handle to an FT_Size_InternalRec structure, used to model private data of a given FT_Size object.","title":"FT_Size_Internal"},{"location":"ft2-base_interface.html#ft_slot_internal","text":"Defined in FT_FREETYPE_H (freetype/freetype.h). typedef struct FT_Slot_InternalRec_* FT_Slot_Internal ; An opaque handle to an FT_Slot_InternalRec structure, used to model private data of a given FT_GlyphSlot object.","title":"FT_Slot_Internal"},{"location":"ft2-base_interface.html#ft_face_flag_xxx","text":"Defined in FT_FREETYPE_H (freetype/freetype.h). # define FT_FACE_FLAG_SCALABLE ( 1L << 0 ) # define FT_FACE_FLAG_FIXED_SIZES ( 1L << 1 ) # define FT_FACE_FLAG_FIXED_WIDTH ( 1L << 2 ) # define FT_FACE_FLAG_SFNT ( 1L << 3 ) # define FT_FACE_FLAG_HORIZONTAL ( 1L << 4 ) # define FT_FACE_FLAG_VERTICAL ( 1L << 5 ) # define FT_FACE_FLAG_KERNING ( 1L << 6 ) # define FT_FACE_FLAG_FAST_GLYPHS ( 1L << 7 ) # define FT_FACE_FLAG_MULTIPLE_MASTERS ( 1L << 8 ) # define FT_FACE_FLAG_GLYPH_NAMES ( 1L << 9 ) # define FT_FACE_FLAG_EXTERNAL_STREAM ( 1L << 10 ) # define FT_FACE_FLAG_HINTER ( 1L << 11 ) # define FT_FACE_FLAG_CID_KEYED ( 1L << 12 ) # define FT_FACE_FLAG_TRICKY ( 1L << 13 ) # define FT_FACE_FLAG_COLOR ( 1L << 14 ) # define FT_FACE_FLAG_VARIATION ( 1L << 15 ) A list of bit flags used in the face_flags field of the FT_FaceRec structure. They inform client applications of properties of the corresponding face.","title":"FT_FACE_FLAG_XXX"},{"location":"ft2-base_interface.html#ft_style_flag_xxx","text":"Defined in FT_FREETYPE_H (freetype/freetype.h). # define FT_STYLE_FLAG_ITALIC ( 1 << 0 ) # define FT_STYLE_FLAG_BOLD ( 1 << 1 ) A list of bit flags to indicate the style of a given face. These are used in the style_flags field of FT_FaceRec .","title":"FT_STYLE_FLAG_XXX"},{"location":"ft2-base_interface.html#ft_open_xxx","text":"Defined in FT_FREETYPE_H (freetype/freetype.h). # define FT_OPEN_MEMORY 0x1 # define FT_OPEN_STREAM 0x2 # define FT_OPEN_PATHNAME 0x4 # define FT_OPEN_DRIVER 0x8 # define FT_OPEN_PARAMS 0x10 /* these constants are deprecated; use the corresponding ` FT_OPEN_XXX ` */ /* values instead */ # define ft_open_memory FT_OPEN_MEMORY # define ft_open_stream FT_OPEN_STREAM # define ft_open_pathname FT_OPEN_PATHNAME # define ft_open_driver FT_OPEN_DRIVER # define ft_open_params FT_OPEN_PARAMS A list of bit field constants used within the flags field of the FT_Open_Args structure.","title":"FT_OPEN_XXX"},{"location":"ft2-base_interface.html#ft_load_xxx","text":"Defined in FT_FREETYPE_H (freetype/freetype.h). # define FT_LOAD_DEFAULT 0x0 # define FT_LOAD_NO_SCALE ( 1L << 0 ) # define FT_LOAD_NO_HINTING ( 1L << 1 ) # define FT_LOAD_RENDER ( 1L << 2 ) # define FT_LOAD_NO_BITMAP ( 1L << 3 ) # define FT_LOAD_VERTICAL_LAYOUT ( 1L << 4 ) # define FT_LOAD_FORCE_AUTOHINT ( 1L << 5 ) # define FT_LOAD_CROP_BITMAP ( 1L << 6 ) # define FT_LOAD_PEDANTIC ( 1L << 7 ) # define FT_LOAD_IGNORE_GLOBAL_ADVANCE_WIDTH ( 1L << 9 ) # define FT_LOAD_NO_RECURSE ( 1L << 10 ) # define FT_LOAD_IGNORE_TRANSFORM ( 1L << 11 ) # define FT_LOAD_MONOCHROME ( 1L << 12 ) # define FT_LOAD_LINEAR_DESIGN ( 1L << 13 ) # define FT_LOAD_NO_AUTOHINT ( 1L << 15 ) /* Bits 16-19 are used by `FT_LOAD_TARGET_` */ # define FT_LOAD_COLOR ( 1L << 20 ) # define FT_LOAD_COMPUTE_METRICS ( 1L << 21 ) # define FT_LOAD_BITMAP_METRICS_ONLY ( 1L << 22 ) A list of bit field constants for FT_Load_Glyph to indicate what kind of operations to perform during glyph loading.","title":"FT_LOAD_XXX"},{"location":"ft2-base_interface.html#ft_load_target_xxx","text":"Defined in FT_FREETYPE_H (freetype/freetype.h). # define FT_LOAD_TARGET_( x ) ( ( FT_Int32 )( (x) & 15 ) << 16 ) # define FT_LOAD_TARGET_NORMAL FT_LOAD_TARGET_( FT_RENDER_MODE_NORMAL ) # define FT_LOAD_TARGET_LIGHT FT_LOAD_TARGET_( FT_RENDER_MODE_LIGHT ) # define FT_LOAD_TARGET_MONO FT_LOAD_TARGET_( FT_RENDER_MODE_MONO ) # define FT_LOAD_TARGET_LCD FT_LOAD_TARGET_( FT_RENDER_MODE_LCD ) # define FT_LOAD_TARGET_LCD_V FT_LOAD_TARGET_( FT_RENDER_MODE_LCD_V ) A list of values to select a specific hinting algorithm for the hinter. You should OR one of these values to your load_flags when calling FT_Load_Glyph . Note that a font's native hinters may ignore the hinting algorithm you have specified (e.g., the TrueType bytecode interpreter). You can set FT_LOAD_FORCE_AUTOHINT to ensure that the auto-hinter is used.","title":"FT_LOAD_TARGET_XXX"},{"location":"ft2-base_interface.html#ft_subglyph_flag_xxx","text":"Defined in FT_FREETYPE_H (freetype/freetype.h). # define FT_SUBGLYPH_FLAG_ARGS_ARE_WORDS 1 # define FT_SUBGLYPH_FLAG_ARGS_ARE_XY_VALUES 2 # define FT_SUBGLYPH_FLAG_ROUND_XY_TO_GRID 4 # define FT_SUBGLYPH_FLAG_SCALE 8 # define FT_SUBGLYPH_FLAG_XY_SCALE 0x40 # define FT_SUBGLYPH_FLAG_2X2 0x80 # define FT_SUBGLYPH_FLAG_USE_MY_METRICS 0x200 A list of constants describing subglyphs. Please refer to the \u2018glyf\u2019 table description in the OpenType specification for the meaning of the various flags (which get synthesized for non-OpenType subglyphs). https://docs.microsoft.com/en-us/typography/opentype/spec/glyf#composite-glyph-description","title":"FT_SUBGLYPH_FLAG_XXX"},{"location":"ft2-base_interface.html#ft_fstype_xxx","text":"Defined in FT_FREETYPE_H (freetype/freetype.h). # define FT_FSTYPE_INSTALLABLE_EMBEDDING 0x0000 # define FT_FSTYPE_RESTRICTED_LICENSE_EMBEDDING 0x0002 # define FT_FSTYPE_PREVIEW_AND_PRINT_EMBEDDING 0x0004 # define FT_FSTYPE_EDITABLE_EMBEDDING 0x0008 # define FT_FSTYPE_NO_SUBSETTING 0x0100 # define FT_FSTYPE_BITMAP_EMBEDDING_ONLY 0x0200 A list of bit flags used in the fsType field of the OS/2 table in a TrueType or OpenType font and the FSType entry in a PostScript font. These bit flags are returned by FT_Get_FSType_Flags ; they inform client applications of embedding and subsetting restrictions associated with a font. See https://www.adobe.com/content/dam/Adobe/en/devnet/acrobat/pdfs/FontPolicies.pdf for more details.","title":"FT_FSTYPE_XXX"},{"location":"ft2-base_interface.html#ft_has_fast_glyphs","text":"Defined in FT_FREETYPE_H (freetype/freetype.h). # define FT_HAS_FAST_GLYPHS ( face ) 0 Deprecated.","title":"FT_HAS_FAST_GLYPHS"},{"location":"ft2-basic_types.html","text":"FreeType \u00bb Docs \u00bb Core API \u00bb Basic Data Types Basic Data Types \u00b6 Synopsis \u00b6 This section contains the basic data types defined by FreeType 2, ranging from simple scalar types to bitmap descriptors. More font-specific structures are defined in a different section. FT_Byte \u00b6 Defined in FT_TYPES_H (freetype/fttypes.h). typedef unsigned char FT_Byte ; A simple typedef for the unsigned char type. FT_Bytes \u00b6 Defined in FT_TYPES_H (freetype/fttypes.h). typedef const FT_Byte * FT_Bytes ; A typedef for constant memory areas. FT_Char \u00b6 Defined in FT_TYPES_H (freetype/fttypes.h). typedef signed char FT_Char ; A simple typedef for the signed char type. FT_Int \u00b6 Defined in FT_TYPES_H (freetype/fttypes.h). typedef signed int FT_Int ; A typedef for the int type. FT_UInt \u00b6 Defined in FT_TYPES_H (freetype/fttypes.h). typedef unsigned int FT_UInt ; A typedef for the unsigned int type. FT_Int16 \u00b6 typedef signed short FT_Int16 ; A typedef for a 16bit signed integer type. FT_UInt16 \u00b6 typedef unsigned short FT_UInt16 ; A typedef for a 16bit unsigned integer type. FT_Int32 \u00b6 typedef signed XXX FT_Int32 ; A typedef for a 32bit signed integer type. The size depends on the configuration. FT_UInt32 \u00b6 typedef unsigned XXX FT_UInt32 ; FT_Int64 \u00b6 typedef signed XXX FT_Int64 ; FT_UInt64 \u00b6 typedef unsigned XXX FT_UInt64 ; FT_Short \u00b6 Defined in FT_TYPES_H (freetype/fttypes.h). typedef signed short FT_Short ; A typedef for signed short. FT_UShort \u00b6 Defined in FT_TYPES_H (freetype/fttypes.h). typedef unsigned short FT_UShort ; A typedef for unsigned short. FT_Long \u00b6 Defined in FT_TYPES_H (freetype/fttypes.h). typedef signed long FT_Long ; A typedef for signed long. FT_ULong \u00b6 Defined in FT_TYPES_H (freetype/fttypes.h). typedef unsigned long FT_ULong ; A typedef for unsigned long. FT_Bool \u00b6 Defined in FT_TYPES_H (freetype/fttypes.h). typedef unsigned char FT_Bool ; A typedef of unsigned char, used for simple booleans. As usual, values 1 and 0 represent true and false, respectively. FT_Offset \u00b6 Defined in FT_TYPES_H (freetype/fttypes.h). typedef size_t FT_Offset ; This is equivalent to the ANSI C size_t type, i.e., the largest unsigned integer type used to express a file size or position, or a memory block size. FT_PtrDist \u00b6 Defined in FT_TYPES_H (freetype/fttypes.h). typedef ft_ptrdiff_t FT_PtrDist ; This is equivalent to the ANSI C ptrdiff_t type, i.e., the largest signed integer type used to express the distance between two pointers. FT_String \u00b6 Defined in FT_TYPES_H (freetype/fttypes.h). typedef char FT_String ; A simple typedef for the char type, usually used for strings. FT_Tag \u00b6 Defined in FT_TYPES_H (freetype/fttypes.h). typedef FT_UInt32 FT_Tag ; A typedef for 32-bit tags (as used in the SFNT format). FT_Error \u00b6 Defined in FT_TYPES_H (freetype/fttypes.h). typedef int FT_Error ; The FreeType error code type. A value of 0 is always interpreted as a successful operation. FT_Fixed \u00b6 Defined in FT_TYPES_H (freetype/fttypes.h). typedef signed long FT_Fixed ; This type is used to store 16.16 fixed-point values, like scaling values or matrix coefficients. FT_Pointer \u00b6 Defined in FT_TYPES_H (freetype/fttypes.h). typedef void * FT_Pointer ; A simple typedef for a typeless pointer. FT_Pos \u00b6 Defined in FT_IMAGE_H (freetype/ftimage.h). typedef signed long FT_Pos ; The type FT_Pos is used to store vectorial coordinates. Depending on the context, these can represent distances in integer font units, or 16.16, or 26.6 fixed-point pixel coordinates. FT_Vector \u00b6 Defined in FT_IMAGE_H (freetype/ftimage.h). typedef struct FT_Vector_ { FT_Pos x; FT_Pos y; } FT_Vector ; A simple structure used to store a 2D vector; coordinates are of the FT_Pos type. fields x The horizontal coordinate. y The vertical coordinate. FT_BBox \u00b6 Defined in FT_IMAGE_H (freetype/ftimage.h). typedef struct FT_BBox_ { FT_Pos xMin, yMin; FT_Pos xMax, yMax; } FT_BBox ; A structure used to hold an outline's bounding box, i.e., the coordinates of its extrema in the horizontal and vertical directions. fields xMin The horizontal minimum (left-most). yMin The vertical minimum (bottom-most). xMax The horizontal maximum (right-most). yMax The vertical maximum (top-most). note The bounding box is specified with the coordinates of the lower left and the upper right corner. In PostScript, those values are often called (llx,lly) and (urx,ury), respectively. If yMin is negative, this value gives the glyph's descender. Otherwise, the glyph doesn't descend below the baseline. Similarly, if ymax is positive, this value gives the glyph's ascender. xMin gives the horizontal distance from the glyph's origin to the left edge of the glyph's bounding box. If xMin is negative, the glyph extends to the left of the origin. FT_Matrix \u00b6 Defined in FT_TYPES_H (freetype/fttypes.h). typedef struct FT_Matrix_ { FT_Fixed xx, xy; FT_Fixed yx, yy; } FT_Matrix ; A simple structure used to store a 2x2 matrix. Coefficients are in 16.16 fixed-point format. The computation performed is: x' = x*xx + y*xy y' = x*yx + y*yy fields xx Matrix coefficient. xy Matrix coefficient. yx Matrix coefficient. yy Matrix coefficient. FT_FWord \u00b6 Defined in FT_TYPES_H (freetype/fttypes.h). typedef signed short FT_FWord ; /* distance in FUnits */ A signed 16-bit integer used to store a distance in original font units. FT_UFWord \u00b6 Defined in FT_TYPES_H (freetype/fttypes.h). typedef unsigned short FT_UFWord ; /* unsigned distance */ An unsigned 16-bit integer used to store a distance in original font units. FT_F2Dot14 \u00b6 Defined in FT_TYPES_H (freetype/fttypes.h). typedef signed short FT_F2Dot14 ; A signed 2.14 fixed-point type used for unit vectors. FT_UnitVector \u00b6 Defined in FT_TYPES_H (freetype/fttypes.h). typedef struct FT_UnitVector_ { FT_F2Dot14 x; FT_F2Dot14 y; } FT_UnitVector ; A simple structure used to store a 2D vector unit vector. Uses FT_F2Dot14 types. fields x Horizontal coordinate. y Vertical coordinate. FT_F26Dot6 \u00b6 Defined in FT_TYPES_H (freetype/fttypes.h). typedef signed long FT_F26Dot6 ; A signed 26.6 fixed-point type used for vectorial pixel coordinates. FT_Data \u00b6 Defined in FT_TYPES_H (freetype/fttypes.h). typedef struct FT_Data_ { const FT_Byte * pointer; FT_Int length; } FT_Data ; Read-only binary data represented as a pointer and a length. fields pointer The data. length The length of the data in bytes. FT_MAKE_TAG \u00b6 Defined in FT_TYPES_H (freetype/fttypes.h). # define FT_MAKE_TAG ( _x1, _x2, _x3, _x4 ) \\ ( FT_Tag ) \\ ( ( ( FT_ULong )_x1 << 24 ) | \\ ( ( FT_ULong )_x2 << 16 ) | \\ ( ( FT_ULong )_x3 << 8 ) | \\ ( FT_ULong )_x4 ) This macro converts four-letter tags that are used to label TrueType tables into an unsigned long, to be used within FreeType. note The produced values must be 32-bit integers. Don't redefine this macro. FT_Generic \u00b6 Defined in FT_TYPES_H (freetype/fttypes.h). typedef struct FT_Generic_ { void * data; FT_Generic_Finalizer finalizer; } FT_Generic ; Client applications often need to associate their own data to a variety of FreeType core objects. For example, a text layout API might want to associate a glyph cache to a given size object. Some FreeType object contains a generic field, of type FT_Generic , which usage is left to client applications and font servers. It can be used to store a pointer to client-specific data, as well as the address of a \u2018finalizer\u2019 function, which will be called by FreeType when the object is destroyed (for example, the previous client example would put the address of the glyph cache destructor in the finalizer field). fields data A typeless pointer to any client-specified data. This field is completely ignored by the FreeType library. finalizer A pointer to a \u2018generic finalizer\u2019 function, which will be called when the object is destroyed. If this field is set to NULL , no code will be called. FT_Generic_Finalizer \u00b6 Defined in FT_TYPES_H (freetype/fttypes.h). typedef void (* FT_Generic_Finalizer )( void * object ); Describe a function used to destroy the \u2018client\u2019 data of any FreeType object. See the description of the FT_Generic type for details of usage. input The address of the FreeType object that is under finalization. Its client data is accessed through its generic field. FT_Bitmap \u00b6 Defined in FT_IMAGE_H (freetype/ftimage.h). typedef struct FT_Bitmap_ { unsigned int rows; unsigned int width; int pitch; unsigned char * buffer; unsigned short num_grays; unsigned char pixel_mode; unsigned char palette_mode; void * palette; } FT_Bitmap ; A structure used to describe a bitmap or pixmap to the raster. Note that we now manage pixmaps of various depths through the pixel_mode field. fields rows The number of bitmap rows. width The number of pixels in bitmap row. pitch The pitch's absolute value is the number of bytes taken by one bitmap row, including padding. However, the pitch is positive when the bitmap has a \u2018down\u2019 flow, and negative when it has an \u2018up\u2019 flow. In all cases, the pitch is an offset to add to a bitmap pointer in order to go down one row. Note that \u2018padding\u2019 means the alignment of a bitmap to a byte border, and FreeType functions normally align to the smallest possible integer value. For the B/W rasterizer, pitch is always an even number. To change the pitch of a bitmap (say, to make it a multiple of 4), use FT_Bitmap_Convert . Alternatively, you might use callback functions to directly render to the application's surface; see the file example2.cpp in the tutorial for a demonstration. buffer A typeless pointer to the bitmap buffer. This value should be aligned on 32-bit boundaries in most cases. num_grays This field is only used with FT_PIXEL_MODE_GRAY ; it gives the number of gray levels used in the bitmap. pixel_mode The pixel mode, i.e., how pixel bits are stored. See FT_Pixel_Mode for possible values. palette_mode This field is intended for paletted pixel modes; it indicates how the palette is stored. Not used currently. palette A typeless pointer to the bitmap palette; this field is intended for paletted pixel modes. Not used currently. FT_Pixel_Mode \u00b6 Defined in FT_IMAGE_H (freetype/ftimage.h). typedef enum FT_Pixel_Mode_ { FT_PIXEL_MODE_NONE = 0, FT_PIXEL_MODE_MONO , FT_PIXEL_MODE_GRAY , FT_PIXEL_MODE_GRAY2 , FT_PIXEL_MODE_GRAY4 , FT_PIXEL_MODE_LCD , FT_PIXEL_MODE_LCD_V , FT_PIXEL_MODE_BGRA , FT_PIXEL_MODE_MAX /* do not remove */ } FT_Pixel_Mode ; /* these constants are deprecated; use the corresponding ` FT_Pixel_Mode ` */ /* values instead. */ # define ft_pixel_mode_none FT_PIXEL_MODE_NONE # define ft_pixel_mode_mono FT_PIXEL_MODE_MONO # define ft_pixel_mode_grays FT_PIXEL_MODE_GRAY # define ft_pixel_mode_pal2 FT_PIXEL_MODE_GRAY2 # define ft_pixel_mode_pal4 FT_PIXEL_MODE_GRAY4 An enumeration type used to describe the format of pixels in a given bitmap. Note that additional formats may be added in the future. values FT_PIXEL_MODE_NONE Value 0 is reserved. FT_PIXEL_MODE_MONO A monochrome bitmap, using 1 bit per pixel. Note that pixels are stored in most-significant order (MSB), which means that the left-most pixel in a byte has value 128. FT_PIXEL_MODE_GRAY An 8-bit bitmap, generally used to represent anti-aliased glyph images. Each pixel is stored in one byte. Note that the number of \u2018gray\u2019 levels is stored in the num_grays field of the FT_Bitmap structure (it generally is 256). FT_PIXEL_MODE_GRAY2 A 2-bit per pixel bitmap, used to represent embedded anti-aliased bitmaps in font files according to the OpenType specification. We haven't found a single font using this format, however. FT_PIXEL_MODE_GRAY4 A 4-bit per pixel bitmap, representing embedded anti-aliased bitmaps in font files according to the OpenType specification. We haven't found a single font using this format, however. FT_PIXEL_MODE_LCD An 8-bit bitmap, representing RGB or BGR decimated glyph images used for display on LCD displays; the bitmap is three times wider than the original glyph image. See also FT_RENDER_MODE_LCD . FT_PIXEL_MODE_LCD_V An 8-bit bitmap, representing RGB or BGR decimated glyph images used for display on rotated LCD displays; the bitmap is three times taller than the original glyph image. See also FT_RENDER_MODE_LCD_V . FT_PIXEL_MODE_BGRA [Since 2.5] An image with four 8-bit channels per pixel, representing a color image (such as emoticons) with alpha channel. For each pixel, the format is BGRA, which means, the blue channel comes first in memory. The color channels are pre-multiplied and in the sRGB colorspace. For example, full red at half-translucent opacity will be represented as \u201800,00,80,80\u2019, not \u201800,00,FF,80\u2019. See also FT_LOAD_COLOR . FT_Glyph_Format \u00b6 Defined in FT_IMAGE_H (freetype/ftimage.h). typedef enum FT_Glyph_Format_ { FT_IMAGE_TAG ( FT_GLYPH_FORMAT_NONE , 0, 0, 0, 0 ), FT_IMAGE_TAG ( FT_GLYPH_FORMAT_COMPOSITE , 'c', 'o', 'm', 'p' ), FT_IMAGE_TAG ( FT_GLYPH_FORMAT_BITMAP , 'b', 'i', 't', 's' ), FT_IMAGE_TAG ( FT_GLYPH_FORMAT_OUTLINE , 'o', 'u', 't', 'l' ), FT_IMAGE_TAG ( FT_GLYPH_FORMAT_PLOTTER , 'p', 'l', 'o', 't' ) } FT_Glyph_Format ; /* these constants are deprecated; use the corresponding */ /* ` FT_Glyph_Format ` values instead. */ # define ft_glyph_format_none FT_GLYPH_FORMAT_NONE # define ft_glyph_format_composite FT_GLYPH_FORMAT_COMPOSITE # define ft_glyph_format_bitmap FT_GLYPH_FORMAT_BITMAP # define ft_glyph_format_outline FT_GLYPH_FORMAT_OUTLINE # define ft_glyph_format_plotter FT_GLYPH_FORMAT_PLOTTER An enumeration type used to describe the format of a given glyph image. Note that this version of FreeType only supports two image formats, even though future font drivers will be able to register their own format. values FT_GLYPH_FORMAT_NONE The value 0 is reserved. FT_GLYPH_FORMAT_COMPOSITE The glyph image is a composite of several other images. This format is only used with FT_LOAD_NO_RECURSE , and is used to report compound glyphs (like accented characters). FT_GLYPH_FORMAT_BITMAP The glyph image is a bitmap, and can be described as an FT_Bitmap . You generally need to access the bitmap field of the FT_GlyphSlotRec structure to read it. FT_GLYPH_FORMAT_OUTLINE The glyph image is a vectorial outline made of line segments and Bezier arcs; it can be described as an FT_Outline ; you generally want to access the outline field of the FT_GlyphSlotRec structure to read it. FT_GLYPH_FORMAT_PLOTTER The glyph image is a vectorial path with no inside and outside contours. Some Type 1 fonts, like those in the Hershey family, contain glyphs in this format. These are described as FT_Outline , but FreeType isn't currently capable of rendering them correctly. FT_IMAGE_TAG \u00b6 Defined in FT_IMAGE_H (freetype/ftimage.h). # ifndef FT_IMAGE_TAG # define FT_IMAGE_TAG ( value, _x1, _x2, _x3, _x4 ) \\ value = ( ( ( unsigned long )_x1 << 24 ) | \\ ( ( unsigned long )_x2 << 16 ) | \\ ( ( unsigned long )_x3 << 8 ) | \\ ( unsigned long )_x4 ) # endif /* FT_IMAGE_TAG */ This macro converts four-letter tags to an unsigned long type. note Since many 16-bit compilers don't like 32-bit enumerations, you should redefine this macro in case of problems to something like this: #define FT_IMAGE_TAG( value, _x1, _x2, _x3, _x4 ) value to get a simple enumeration without assigning special numbers.","title":"Basic Data Types"},{"location":"ft2-basic_types.html#basic-data-types","text":"","title":"Basic Data Types"},{"location":"ft2-basic_types.html#synopsis","text":"This section contains the basic data types defined by FreeType 2, ranging from simple scalar types to bitmap descriptors. More font-specific structures are defined in a different section.","title":"Synopsis"},{"location":"ft2-basic_types.html#ft_byte","text":"Defined in FT_TYPES_H (freetype/fttypes.h). typedef unsigned char FT_Byte ; A simple typedef for the unsigned char type.","title":"FT_Byte"},{"location":"ft2-basic_types.html#ft_bytes","text":"Defined in FT_TYPES_H (freetype/fttypes.h). typedef const FT_Byte * FT_Bytes ; A typedef for constant memory areas.","title":"FT_Bytes"},{"location":"ft2-basic_types.html#ft_char","text":"Defined in FT_TYPES_H (freetype/fttypes.h). typedef signed char FT_Char ; A simple typedef for the signed char type.","title":"FT_Char"},{"location":"ft2-basic_types.html#ft_int","text":"Defined in FT_TYPES_H (freetype/fttypes.h). typedef signed int FT_Int ; A typedef for the int type.","title":"FT_Int"},{"location":"ft2-basic_types.html#ft_uint","text":"Defined in FT_TYPES_H (freetype/fttypes.h). typedef unsigned int FT_UInt ; A typedef for the unsigned int type.","title":"FT_UInt"},{"location":"ft2-basic_types.html#ft_int16","text":"typedef signed short FT_Int16 ; A typedef for a 16bit signed integer type.","title":"FT_Int16"},{"location":"ft2-basic_types.html#ft_uint16","text":"typedef unsigned short FT_UInt16 ; A typedef for a 16bit unsigned integer type.","title":"FT_UInt16"},{"location":"ft2-basic_types.html#ft_int32","text":"typedef signed XXX FT_Int32 ; A typedef for a 32bit signed integer type. The size depends on the configuration.","title":"FT_Int32"},{"location":"ft2-basic_types.html#ft_uint32","text":"typedef unsigned XXX FT_UInt32 ;","title":"FT_UInt32"},{"location":"ft2-basic_types.html#ft_int64","text":"typedef signed XXX FT_Int64 ;","title":"FT_Int64"},{"location":"ft2-basic_types.html#ft_uint64","text":"typedef unsigned XXX FT_UInt64 ;","title":"FT_UInt64"},{"location":"ft2-basic_types.html#ft_short","text":"Defined in FT_TYPES_H (freetype/fttypes.h). typedef signed short FT_Short ; A typedef for signed short.","title":"FT_Short"},{"location":"ft2-basic_types.html#ft_ushort","text":"Defined in FT_TYPES_H (freetype/fttypes.h). typedef unsigned short FT_UShort ; A typedef for unsigned short.","title":"FT_UShort"},{"location":"ft2-basic_types.html#ft_long","text":"Defined in FT_TYPES_H (freetype/fttypes.h). typedef signed long FT_Long ; A typedef for signed long.","title":"FT_Long"},{"location":"ft2-basic_types.html#ft_ulong","text":"Defined in FT_TYPES_H (freetype/fttypes.h). typedef unsigned long FT_ULong ; A typedef for unsigned long.","title":"FT_ULong"},{"location":"ft2-basic_types.html#ft_bool","text":"Defined in FT_TYPES_H (freetype/fttypes.h). typedef unsigned char FT_Bool ; A typedef of unsigned char, used for simple booleans. As usual, values 1 and 0 represent true and false, respectively.","title":"FT_Bool"},{"location":"ft2-basic_types.html#ft_offset","text":"Defined in FT_TYPES_H (freetype/fttypes.h). typedef size_t FT_Offset ; This is equivalent to the ANSI C size_t type, i.e., the largest unsigned integer type used to express a file size or position, or a memory block size.","title":"FT_Offset"},{"location":"ft2-basic_types.html#ft_ptrdist","text":"Defined in FT_TYPES_H (freetype/fttypes.h). typedef ft_ptrdiff_t FT_PtrDist ; This is equivalent to the ANSI C ptrdiff_t type, i.e., the largest signed integer type used to express the distance between two pointers.","title":"FT_PtrDist"},{"location":"ft2-basic_types.html#ft_string","text":"Defined in FT_TYPES_H (freetype/fttypes.h). typedef char FT_String ; A simple typedef for the char type, usually used for strings.","title":"FT_String"},{"location":"ft2-basic_types.html#ft_tag","text":"Defined in FT_TYPES_H (freetype/fttypes.h). typedef FT_UInt32 FT_Tag ; A typedef for 32-bit tags (as used in the SFNT format).","title":"FT_Tag"},{"location":"ft2-basic_types.html#ft_error","text":"Defined in FT_TYPES_H (freetype/fttypes.h). typedef int FT_Error ; The FreeType error code type. A value of 0 is always interpreted as a successful operation.","title":"FT_Error"},{"location":"ft2-basic_types.html#ft_fixed","text":"Defined in FT_TYPES_H (freetype/fttypes.h). typedef signed long FT_Fixed ; This type is used to store 16.16 fixed-point values, like scaling values or matrix coefficients.","title":"FT_Fixed"},{"location":"ft2-basic_types.html#ft_pointer","text":"Defined in FT_TYPES_H (freetype/fttypes.h). typedef void * FT_Pointer ; A simple typedef for a typeless pointer.","title":"FT_Pointer"},{"location":"ft2-basic_types.html#ft_pos","text":"Defined in FT_IMAGE_H (freetype/ftimage.h). typedef signed long FT_Pos ; The type FT_Pos is used to store vectorial coordinates. Depending on the context, these can represent distances in integer font units, or 16.16, or 26.6 fixed-point pixel coordinates.","title":"FT_Pos"},{"location":"ft2-basic_types.html#ft_vector","text":"Defined in FT_IMAGE_H (freetype/ftimage.h). typedef struct FT_Vector_ { FT_Pos x; FT_Pos y; } FT_Vector ; A simple structure used to store a 2D vector; coordinates are of the FT_Pos type.","title":"FT_Vector"},{"location":"ft2-basic_types.html#ft_bbox","text":"Defined in FT_IMAGE_H (freetype/ftimage.h). typedef struct FT_BBox_ { FT_Pos xMin, yMin; FT_Pos xMax, yMax; } FT_BBox ; A structure used to hold an outline's bounding box, i.e., the coordinates of its extrema in the horizontal and vertical directions.","title":"FT_BBox"},{"location":"ft2-basic_types.html#ft_matrix","text":"Defined in FT_TYPES_H (freetype/fttypes.h). typedef struct FT_Matrix_ { FT_Fixed xx, xy; FT_Fixed yx, yy; } FT_Matrix ; A simple structure used to store a 2x2 matrix. Coefficients are in 16.16 fixed-point format. The computation performed is: x' = x*xx + y*xy y' = x*yx + y*yy","title":"FT_Matrix"},{"location":"ft2-basic_types.html#ft_fword","text":"Defined in FT_TYPES_H (freetype/fttypes.h). typedef signed short FT_FWord ; /* distance in FUnits */ A signed 16-bit integer used to store a distance in original font units.","title":"FT_FWord"},{"location":"ft2-basic_types.html#ft_ufword","text":"Defined in FT_TYPES_H (freetype/fttypes.h). typedef unsigned short FT_UFWord ; /* unsigned distance */ An unsigned 16-bit integer used to store a distance in original font units.","title":"FT_UFWord"},{"location":"ft2-basic_types.html#ft_f2dot14","text":"Defined in FT_TYPES_H (freetype/fttypes.h). typedef signed short FT_F2Dot14 ; A signed 2.14 fixed-point type used for unit vectors.","title":"FT_F2Dot14"},{"location":"ft2-basic_types.html#ft_unitvector","text":"Defined in FT_TYPES_H (freetype/fttypes.h). typedef struct FT_UnitVector_ { FT_F2Dot14 x; FT_F2Dot14 y; } FT_UnitVector ; A simple structure used to store a 2D vector unit vector. Uses FT_F2Dot14 types.","title":"FT_UnitVector"},{"location":"ft2-basic_types.html#ft_f26dot6","text":"Defined in FT_TYPES_H (freetype/fttypes.h). typedef signed long FT_F26Dot6 ; A signed 26.6 fixed-point type used for vectorial pixel coordinates.","title":"FT_F26Dot6"},{"location":"ft2-basic_types.html#ft_data","text":"Defined in FT_TYPES_H (freetype/fttypes.h). typedef struct FT_Data_ { const FT_Byte * pointer; FT_Int length; } FT_Data ; Read-only binary data represented as a pointer and a length.","title":"FT_Data"},{"location":"ft2-basic_types.html#ft_make_tag","text":"Defined in FT_TYPES_H (freetype/fttypes.h). # define FT_MAKE_TAG ( _x1, _x2, _x3, _x4 ) \\ ( FT_Tag ) \\ ( ( ( FT_ULong )_x1 << 24 ) | \\ ( ( FT_ULong )_x2 << 16 ) | \\ ( ( FT_ULong )_x3 << 8 ) | \\ ( FT_ULong )_x4 ) This macro converts four-letter tags that are used to label TrueType tables into an unsigned long, to be used within FreeType.","title":"FT_MAKE_TAG"},{"location":"ft2-basic_types.html#ft_generic","text":"Defined in FT_TYPES_H (freetype/fttypes.h). typedef struct FT_Generic_ { void * data; FT_Generic_Finalizer finalizer; } FT_Generic ; Client applications often need to associate their own data to a variety of FreeType core objects. For example, a text layout API might want to associate a glyph cache to a given size object. Some FreeType object contains a generic field, of type FT_Generic , which usage is left to client applications and font servers. It can be used to store a pointer to client-specific data, as well as the address of a \u2018finalizer\u2019 function, which will be called by FreeType when the object is destroyed (for example, the previous client example would put the address of the glyph cache destructor in the finalizer field).","title":"FT_Generic"},{"location":"ft2-basic_types.html#ft_generic_finalizer","text":"Defined in FT_TYPES_H (freetype/fttypes.h). typedef void (* FT_Generic_Finalizer )( void * object ); Describe a function used to destroy the \u2018client\u2019 data of any FreeType object. See the description of the FT_Generic type for details of usage.","title":"FT_Generic_Finalizer"},{"location":"ft2-basic_types.html#ft_bitmap","text":"Defined in FT_IMAGE_H (freetype/ftimage.h). typedef struct FT_Bitmap_ { unsigned int rows; unsigned int width; int pitch; unsigned char * buffer; unsigned short num_grays; unsigned char pixel_mode; unsigned char palette_mode; void * palette; } FT_Bitmap ; A structure used to describe a bitmap or pixmap to the raster. Note that we now manage pixmaps of various depths through the pixel_mode field.","title":"FT_Bitmap"},{"location":"ft2-basic_types.html#ft_pixel_mode","text":"Defined in FT_IMAGE_H (freetype/ftimage.h). typedef enum FT_Pixel_Mode_ { FT_PIXEL_MODE_NONE = 0, FT_PIXEL_MODE_MONO , FT_PIXEL_MODE_GRAY , FT_PIXEL_MODE_GRAY2 , FT_PIXEL_MODE_GRAY4 , FT_PIXEL_MODE_LCD , FT_PIXEL_MODE_LCD_V , FT_PIXEL_MODE_BGRA , FT_PIXEL_MODE_MAX /* do not remove */ } FT_Pixel_Mode ; /* these constants are deprecated; use the corresponding ` FT_Pixel_Mode ` */ /* values instead. */ # define ft_pixel_mode_none FT_PIXEL_MODE_NONE # define ft_pixel_mode_mono FT_PIXEL_MODE_MONO # define ft_pixel_mode_grays FT_PIXEL_MODE_GRAY # define ft_pixel_mode_pal2 FT_PIXEL_MODE_GRAY2 # define ft_pixel_mode_pal4 FT_PIXEL_MODE_GRAY4 An enumeration type used to describe the format of pixels in a given bitmap. Note that additional formats may be added in the future.","title":"FT_Pixel_Mode"},{"location":"ft2-basic_types.html#ft_glyph_format","text":"Defined in FT_IMAGE_H (freetype/ftimage.h). typedef enum FT_Glyph_Format_ { FT_IMAGE_TAG ( FT_GLYPH_FORMAT_NONE , 0, 0, 0, 0 ), FT_IMAGE_TAG ( FT_GLYPH_FORMAT_COMPOSITE , 'c', 'o', 'm', 'p' ), FT_IMAGE_TAG ( FT_GLYPH_FORMAT_BITMAP , 'b', 'i', 't', 's' ), FT_IMAGE_TAG ( FT_GLYPH_FORMAT_OUTLINE , 'o', 'u', 't', 'l' ), FT_IMAGE_TAG ( FT_GLYPH_FORMAT_PLOTTER , 'p', 'l', 'o', 't' ) } FT_Glyph_Format ; /* these constants are deprecated; use the corresponding */ /* ` FT_Glyph_Format ` values instead. */ # define ft_glyph_format_none FT_GLYPH_FORMAT_NONE # define ft_glyph_format_composite FT_GLYPH_FORMAT_COMPOSITE # define ft_glyph_format_bitmap FT_GLYPH_FORMAT_BITMAP # define ft_glyph_format_outline FT_GLYPH_FORMAT_OUTLINE # define ft_glyph_format_plotter FT_GLYPH_FORMAT_PLOTTER An enumeration type used to describe the format of a given glyph image. Note that this version of FreeType only supports two image formats, even though future font drivers will be able to register their own format.","title":"FT_Glyph_Format"},{"location":"ft2-basic_types.html#ft_image_tag","text":"Defined in FT_IMAGE_H (freetype/ftimage.h). # ifndef FT_IMAGE_TAG # define FT_IMAGE_TAG ( value, _x1, _x2, _x3, _x4 ) \\ value = ( ( ( unsigned long )_x1 << 24 ) | \\ ( ( unsigned long )_x2 << 16 ) | \\ ( ( unsigned long )_x3 << 8 ) | \\ ( unsigned long )_x4 ) # endif /* FT_IMAGE_TAG */ This macro converts four-letter tags to an unsigned long type.","title":"FT_IMAGE_TAG"},{"location":"ft2-bdf_fonts.html","text":"FreeType \u00bb Docs \u00bb Format-Specific API \u00bb BDF and PCF Files BDF and PCF Files \u00b6 Synopsis \u00b6 This section contains the declaration of functions specific to BDF and PCF fonts. BDF_PropertyType \u00b6 Defined in FT_BDF_H (freetype/ftbdf.h). typedef enum BDF_PropertyType_ { BDF_PROPERTY_TYPE_NONE = 0, BDF_PROPERTY_TYPE_ATOM = 1, BDF_PROPERTY_TYPE_INTEGER = 2, BDF_PROPERTY_TYPE_CARDINAL = 3 } BDF_PropertyType ; A list of BDF property types. values BDF_PROPERTY_TYPE_NONE Value 0 is used to indicate a missing property. BDF_PROPERTY_TYPE_ATOM Property is a string atom. BDF_PROPERTY_TYPE_INTEGER Property is a 32-bit signed integer. BDF_PROPERTY_TYPE_CARDINAL Property is a 32-bit unsigned integer. BDF_Property \u00b6 Defined in FT_BDF_H (freetype/ftbdf.h). typedef struct BDF_PropertyRec_* BDF_Property ; A handle to a BDF_PropertyRec structure to model a given BDF/PCF property. BDF_PropertyRec \u00b6 Defined in FT_BDF_H (freetype/ftbdf.h). typedef struct BDF_PropertyRec_ { BDF_PropertyType type; union { const char * atom; FT_Int32 integer; FT_UInt32 cardinal; } u; } BDF_PropertyRec ; This structure models a given BDF/PCF property. fields type The property type. u.atom The atom string, if type is BDF_PROPERTY_TYPE_ATOM . May be NULL , indicating an empty string. u.integer A signed integer, if type is BDF_PROPERTY_TYPE_INTEGER . u.cardinal An unsigned integer, if type is BDF_PROPERTY_TYPE_CARDINAL . FT_Get_BDF_Charset_ID \u00b6 Defined in FT_BDF_H (freetype/ftbdf.h). FT_EXPORT( FT_Error ) FT_Get_BDF_Charset_ID ( FT_Face face, const char * *acharset_encoding, const char * *acharset_registry ); Retrieve a BDF font character set identity, according to the BDF specification. input face A handle to the input face. output acharset_encoding Charset encoding, as a C string, owned by the face. acharset_registry Charset registry, as a C string, owned by the face. return FreeType error code. 0 means success. note This function only works with BDF faces, returning an error otherwise. FT_Get_BDF_Property \u00b6 Defined in FT_BDF_H (freetype/ftbdf.h). FT_EXPORT( FT_Error ) FT_Get_BDF_Property ( FT_Face face, const char * prop_name, BDF_PropertyRec *aproperty ); Retrieve a BDF property from a BDF or PCF font file. input face A handle to the input face. name The property name. output aproperty The property. return FreeType error code. 0 means success. note This function works with BDF and PCF fonts. It returns an error otherwise. It also returns an error if the property is not in the font. A \u2018property\u2019 is a either key-value pair within the STARTPROPERTIES ... ENDPROPERTIES block of a BDF font or a key-value pair from the info->props array within a FontRec structure of a PCF font. Integer properties are always stored as \u2018signed\u2019 within PCF fonts; consequently, BDF_PROPERTY_TYPE_CARDINAL is a possible return value for BDF fonts only. In case of error, aproperty->type is always set to BDF_PROPERTY_TYPE_NONE .","title":"BDF and PCF Files"},{"location":"ft2-bdf_fonts.html#bdf-and-pcf-files","text":"","title":"BDF and PCF Files"},{"location":"ft2-bdf_fonts.html#synopsis","text":"This section contains the declaration of functions specific to BDF and PCF fonts.","title":"Synopsis"},{"location":"ft2-bdf_fonts.html#bdf_propertytype","text":"Defined in FT_BDF_H (freetype/ftbdf.h). typedef enum BDF_PropertyType_ { BDF_PROPERTY_TYPE_NONE = 0, BDF_PROPERTY_TYPE_ATOM = 1, BDF_PROPERTY_TYPE_INTEGER = 2, BDF_PROPERTY_TYPE_CARDINAL = 3 } BDF_PropertyType ; A list of BDF property types.","title":"BDF_PropertyType"},{"location":"ft2-bdf_fonts.html#bdf_property","text":"Defined in FT_BDF_H (freetype/ftbdf.h). typedef struct BDF_PropertyRec_* BDF_Property ; A handle to a BDF_PropertyRec structure to model a given BDF/PCF property.","title":"BDF_Property"},{"location":"ft2-bdf_fonts.html#bdf_propertyrec","text":"Defined in FT_BDF_H (freetype/ftbdf.h). typedef struct BDF_PropertyRec_ { BDF_PropertyType type; union { const char * atom; FT_Int32 integer; FT_UInt32 cardinal; } u; } BDF_PropertyRec ; This structure models a given BDF/PCF property.","title":"BDF_PropertyRec"},{"location":"ft2-bdf_fonts.html#ft_get_bdf_charset_id","text":"Defined in FT_BDF_H (freetype/ftbdf.h). FT_EXPORT( FT_Error ) FT_Get_BDF_Charset_ID ( FT_Face face, const char * *acharset_encoding, const char * *acharset_registry ); Retrieve a BDF font character set identity, according to the BDF specification.","title":"FT_Get_BDF_Charset_ID"},{"location":"ft2-bdf_fonts.html#ft_get_bdf_property","text":"Defined in FT_BDF_H (freetype/ftbdf.h). FT_EXPORT( FT_Error ) FT_Get_BDF_Property ( FT_Face face, const char * prop_name, BDF_PropertyRec *aproperty ); Retrieve a BDF property from a BDF or PCF font file.","title":"FT_Get_BDF_Property"},{"location":"ft2-bitmap_handling.html","text":"FreeType \u00bb Docs \u00bb Support API \u00bb Bitmap Handling Bitmap Handling \u00b6 Synopsis \u00b6 This section contains functions for handling FT_Bitmap objects, automatically adjusting the target's bitmap buffer size as needed. Note that none of the functions changes the bitmap's \u2018flow\u2019 (as indicated by the sign of the pitch field in FT_Bitmap ). To set the flow, assign an appropriate positive or negative value to the pitch field of the target FT_Bitmap object after calling FT_Bitmap_Init but before calling any of the other functions described here. FT_Bitmap_Init \u00b6 Defined in FT_BITMAP_H (freetype/ftbitmap.h). FT_EXPORT( void ) FT_Bitmap_Init ( FT_Bitmap *abitmap ); /* deprecated */ FT_EXPORT( void ) FT_Bitmap_New( FT_Bitmap *abitmap ); Initialize a pointer to an FT_Bitmap structure. inout abitmap A pointer to the bitmap structure. note A deprecated name for the same function is FT_Bitmap_New . FT_Bitmap_Copy \u00b6 Defined in FT_BITMAP_H (freetype/ftbitmap.h). FT_EXPORT( FT_Error ) FT_Bitmap_Copy ( FT_Library library, const FT_Bitmap *source, FT_Bitmap *target ); Copy a bitmap into another one. input library A handle to a library object. source A handle to the source bitmap. output target A handle to the target bitmap. return FreeType error code. 0 means success. note source->buffer and target->buffer must neither be equal nor overlap. FT_Bitmap_Embolden \u00b6 Defined in FT_BITMAP_H (freetype/ftbitmap.h). FT_EXPORT( FT_Error ) FT_Bitmap_Embolden ( FT_Library library, FT_Bitmap * bitmap, FT_Pos xStrength, FT_Pos yStrength ); Embolden a bitmap. The new bitmap will be about xStrength pixels wider and yStrength pixels higher. The left and bottom borders are kept unchanged. input library A handle to a library object. xStrength How strong the glyph is emboldened horizontally. Expressed in 26.6 pixel format. yStrength How strong the glyph is emboldened vertically. Expressed in 26.6 pixel format. inout bitmap A handle to the target bitmap. return FreeType error code. 0 means success. note The current implementation restricts xStrength to be less than or equal to 8 if bitmap is of pixel_mode FT_PIXEL_MODE_MONO . If you want to embolden the bitmap owned by a FT_GlyphSlotRec , you should call FT_GlyphSlot_Own_Bitmap on the slot first. Bitmaps in FT_PIXEL_MODE_GRAY2 and FT_PIXEL_MODE_GRAY @ format are converted to FT_PIXEL_MODE_GRAY format (i.e., 8bpp). FT_Bitmap_Convert \u00b6 Defined in FT_BITMAP_H (freetype/ftbitmap.h). FT_EXPORT( FT_Error ) FT_Bitmap_Convert ( FT_Library library, const FT_Bitmap *source, FT_Bitmap *target, FT_Int alignment ); Convert a bitmap object with depth 1bpp, 2bpp, 4bpp, 8bpp or 32bpp to a bitmap object with depth 8bpp, making the number of used bytes per line (a.k.a. the \u2018pitch\u2019) a multiple of alignment . input library A handle to a library object. source The source bitmap. alignment The pitch of the bitmap is a multiple of this argument. Common values are 1, 2, or 4. output target The target bitmap. return FreeType error code. 0 means success. note It is possible to call FT_Bitmap_Convert multiple times without calling FT_Bitmap_Done (the memory is simply reallocated). Use FT_Bitmap_Done to finally remove the bitmap object. The library argument is taken to have access to FreeType's memory handling functions. source->buffer and target->buffer must neither be equal nor overlap. FT_Bitmap_Blend \u00b6 Defined in FT_BITMAP_H (freetype/ftbitmap.h). FT_EXPORT( FT_Error ) FT_Bitmap_Blend ( FT_Library library, const FT_Bitmap * source, const FT_Vector source_offset, FT_Bitmap * target, FT_Vector *atarget_offset, FT_Color color ); Blend a bitmap onto another bitmap, using a given color. input library A handle to a library object. source The source bitmap, which can have any FT_Pixel_Mode format. source_offset The offset vector to the upper left corner of the source bitmap in 26.6 pixel format. It should represent an integer offset; the function will set the lowest six bits to zero to enforce that. color The color used to draw source onto target . inout target A handle to an FT_Bitmap object. It should be either initialized as empty with a call to FT_Bitmap_Init , or it should be of type FT_PIXEL_MODE_BGRA . atarget_offset The offset vector to the upper left corner of the target bitmap in 26.6 pixel format. It should represent an integer offset; the function will set the lowest six bits to zero to enforce that. return FreeType error code. 0 means success. note This function doesn't perform clipping. The bitmap in target gets allocated or reallocated as needed; the vector atarget_offset is updated accordingly. In case of allocation or reallocation, the bitmap's pitch is set to 4 * width . Both source and target must have the same bitmap flow (as indicated by the sign of the pitch field). source->buffer and target->buffer must neither be equal nor overlap. since 2.10 FT_GlyphSlot_Own_Bitmap \u00b6 Defined in FT_BITMAP_H (freetype/ftbitmap.h). FT_EXPORT( FT_Error ) FT_GlyphSlot_Own_Bitmap ( FT_GlyphSlot slot ); Make sure that a glyph slot owns slot->bitmap . input slot The glyph slot. return FreeType error code. 0 means success. note This function is to be used in combination with FT_Bitmap_Embolden . FT_Bitmap_Done \u00b6 Defined in FT_BITMAP_H (freetype/ftbitmap.h). FT_EXPORT( FT_Error ) FT_Bitmap_Done ( FT_Library library, FT_Bitmap *bitmap ); Destroy a bitmap object initialized with FT_Bitmap_Init . input library A handle to a library object. bitmap The bitmap object to be freed. return FreeType error code. 0 means success. note The library argument is taken to have access to FreeType's memory handling functions.","title":"Bitmap Handling"},{"location":"ft2-bitmap_handling.html#bitmap-handling","text":"","title":"Bitmap Handling"},{"location":"ft2-bitmap_handling.html#synopsis","text":"This section contains functions for handling FT_Bitmap objects, automatically adjusting the target's bitmap buffer size as needed. Note that none of the functions changes the bitmap's \u2018flow\u2019 (as indicated by the sign of the pitch field in FT_Bitmap ). To set the flow, assign an appropriate positive or negative value to the pitch field of the target FT_Bitmap object after calling FT_Bitmap_Init but before calling any of the other functions described here.","title":"Synopsis"},{"location":"ft2-bitmap_handling.html#ft_bitmap_init","text":"Defined in FT_BITMAP_H (freetype/ftbitmap.h). FT_EXPORT( void ) FT_Bitmap_Init ( FT_Bitmap *abitmap ); /* deprecated */ FT_EXPORT( void ) FT_Bitmap_New( FT_Bitmap *abitmap ); Initialize a pointer to an FT_Bitmap structure.","title":"FT_Bitmap_Init"},{"location":"ft2-bitmap_handling.html#ft_bitmap_copy","text":"Defined in FT_BITMAP_H (freetype/ftbitmap.h). FT_EXPORT( FT_Error ) FT_Bitmap_Copy ( FT_Library library, const FT_Bitmap *source, FT_Bitmap *target ); Copy a bitmap into another one.","title":"FT_Bitmap_Copy"},{"location":"ft2-bitmap_handling.html#ft_bitmap_embolden","text":"Defined in FT_BITMAP_H (freetype/ftbitmap.h). FT_EXPORT( FT_Error ) FT_Bitmap_Embolden ( FT_Library library, FT_Bitmap * bitmap, FT_Pos xStrength, FT_Pos yStrength ); Embolden a bitmap. The new bitmap will be about xStrength pixels wider and yStrength pixels higher. The left and bottom borders are kept unchanged.","title":"FT_Bitmap_Embolden"},{"location":"ft2-bitmap_handling.html#ft_bitmap_convert","text":"Defined in FT_BITMAP_H (freetype/ftbitmap.h). FT_EXPORT( FT_Error ) FT_Bitmap_Convert ( FT_Library library, const FT_Bitmap *source, FT_Bitmap *target, FT_Int alignment ); Convert a bitmap object with depth 1bpp, 2bpp, 4bpp, 8bpp or 32bpp to a bitmap object with depth 8bpp, making the number of used bytes per line (a.k.a. the \u2018pitch\u2019) a multiple of alignment .","title":"FT_Bitmap_Convert"},{"location":"ft2-bitmap_handling.html#ft_bitmap_blend","text":"Defined in FT_BITMAP_H (freetype/ftbitmap.h). FT_EXPORT( FT_Error ) FT_Bitmap_Blend ( FT_Library library, const FT_Bitmap * source, const FT_Vector source_offset, FT_Bitmap * target, FT_Vector *atarget_offset, FT_Color color ); Blend a bitmap onto another bitmap, using a given color.","title":"FT_Bitmap_Blend"},{"location":"ft2-bitmap_handling.html#ft_glyphslot_own_bitmap","text":"Defined in FT_BITMAP_H (freetype/ftbitmap.h). FT_EXPORT( FT_Error ) FT_GlyphSlot_Own_Bitmap ( FT_GlyphSlot slot ); Make sure that a glyph slot owns slot->bitmap .","title":"FT_GlyphSlot_Own_Bitmap"},{"location":"ft2-bitmap_handling.html#ft_bitmap_done","text":"Defined in FT_BITMAP_H (freetype/ftbitmap.h). FT_EXPORT( FT_Error ) FT_Bitmap_Done ( FT_Library library, FT_Bitmap *bitmap ); Destroy a bitmap object initialized with FT_Bitmap_Init .","title":"FT_Bitmap_Done"},{"location":"ft2-bzip2.html","text":"FreeType \u00bb Docs \u00bb Support API \u00bb BZIP2 Streams BZIP2 Streams \u00b6 Synopsis \u00b6 In certain builds of the library, bzip2 compression recognition is automatically handled when calling FT_New_Face or FT_Open_Face . This means that if no font driver is capable of handling the raw compressed file, the library will try to open a bzip2 compressed stream from it and re-open the face with it. The stream implementation is very basic and resets the decompression process each time seeking backwards is needed within the stream, which significantly undermines the performance. This section contains the declaration of Bzip2-specific functions. FT_Stream_OpenBzip2 \u00b6 Defined in FT_BZIP2_H (freetype/ftbzip2.h). FT_EXPORT( FT_Error ) FT_Stream_OpenBzip2 ( FT_Stream stream, FT_Stream source ); Open a new stream to parse bzip2-compressed font files. This is mainly used to support the compressed *.pcf.bz2 fonts that come with XFree86. input stream The target embedding stream. source The source stream. return FreeType error code. 0 means success. note The source stream must be opened before calling this function. Calling the internal function FT_Stream_Close on the new stream will not call FT_Stream_Close on the source stream. None of the stream objects will be released to the heap. This function may return FT_Err_Unimplemented_Feature if your build of FreeType was not compiled with bzip2 support.","title":"BZIP2 Streams"},{"location":"ft2-bzip2.html#bzip2-streams","text":"","title":"BZIP2 Streams"},{"location":"ft2-bzip2.html#synopsis","text":"In certain builds of the library, bzip2 compression recognition is automatically handled when calling FT_New_Face or FT_Open_Face . This means that if no font driver is capable of handling the raw compressed file, the library will try to open a bzip2 compressed stream from it and re-open the face with it. The stream implementation is very basic and resets the decompression process each time seeking backwards is needed within the stream, which significantly undermines the performance. This section contains the declaration of Bzip2-specific functions.","title":"Synopsis"},{"location":"ft2-bzip2.html#ft_stream_openbzip2","text":"Defined in FT_BZIP2_H (freetype/ftbzip2.h). FT_EXPORT( FT_Error ) FT_Stream_OpenBzip2 ( FT_Stream stream, FT_Stream source ); Open a new stream to parse bzip2-compressed font files. This is mainly used to support the compressed *.pcf.bz2 fonts that come with XFree86.","title":"FT_Stream_OpenBzip2"},{"location":"ft2-cache_subsystem.html","text":"FreeType \u00bb Docs \u00bb Cache Sub-System \u00bb Cache Sub-System Cache Sub-System \u00b6 Synopsis \u00b6 This section describes the FreeType 2 cache sub-system, which is used to limit the number of concurrently opened FT_Face and FT_Size objects, as well as caching information like character maps and glyph images while limiting their maximum memory usage. Note that all types and functions begin with the FTC_ prefix. The cache is highly portable and thus doesn't know anything about the fonts installed on your system, or how to access them. This implies the following scheme: First, available or installed font faces are uniquely identified by FTC_FaceID values, provided to the cache by the client. Note that the cache only stores and compares these values, and doesn't try to interpret them in any way. Second, the cache calls, only when needed, a client-provided function to convert an FTC_FaceID into a new FT_Face object. The latter is then completely managed by the cache, including its termination through FT_Done_Face . To monitor termination of face objects, the finalizer callback in the generic field of the FT_Face object can be used, which might also be used to store the FTC_FaceID of the face. Clients are free to map face IDs to anything else. The most simple usage is to associate them to a (pathname,face_index) pair that is used to call FT_New_Face . However, more complex schemes are also possible. Note that for the cache to work correctly, the face ID values must be persistent , which means that the contents they point to should not change at runtime, or that their value should not become invalid. If this is unavoidable (e.g., when a font is uninstalled at runtime), you should call FTC_Manager_RemoveFaceID as soon as possible, to let the cache get rid of any references to the old FTC_FaceID it may keep internally. Failure to do so will lead to incorrect behaviour or even crashes. To use the cache, start with calling FTC_Manager_New to create a new FTC_Manager object, which models a single cache instance. You can then look up FT_Face and FT_Size objects with FTC_Manager_LookupFace and FTC_Manager_LookupSize , respectively. If you want to use the charmap caching, call FTC_CMapCache_New , then later use FTC_CMapCache_Lookup to perform the equivalent of FT_Get_Char_Index , only much faster. If you want to use the FT_Glyph caching, call FTC_ImageCache , then later use FTC_ImageCache_Lookup to retrieve the corresponding FT_Glyph objects from the cache. If you need lots of small bitmaps, it is much more memory efficient to call FTC_SBitCache_New followed by FTC_SBitCache_Lookup . This returns FTC_SBitRec structures, which are used to store small bitmaps directly. (A small bitmap is one whose metrics and dimensions all fit into 8-bit integers). We hope to also provide a kerning cache in the near future. FTC_Manager \u00b6 Defined in FT_CACHE_H (freetype/ftcache.h). typedef struct FTC_ManagerRec_* FTC_Manager ; This object corresponds to one instance of the cache-subsystem. It is used to cache one or more FT_Face objects, along with corresponding FT_Size objects. The manager intentionally limits the total number of opened FT_Face and FT_Size objects to control memory usage. See the max_faces and max_sizes parameters of FTC_Manager_New . The manager is also used to cache \u2018nodes\u2019 of various types while limiting their total memory usage. All limitations are enforced by keeping lists of managed objects in most-recently-used order, and flushing old nodes to make room for new ones. FTC_FaceID \u00b6 Defined in FT_CACHE_H (freetype/ftcache.h). typedef FT_Pointer FTC_FaceID ; An opaque pointer type that is used to identity face objects. The contents of such objects is application-dependent. These pointers are typically used to point to a user-defined structure containing a font file path, and face index. note Never use NULL as a valid FTC_FaceID . Face IDs are passed by the client to the cache manager that calls, when needed, the FTC_Face_Requester to translate them into new FT_Face objects. If the content of a given face ID changes at runtime, or if the value becomes invalid (e.g., when uninstalling a font), you should immediately call FTC_Manager_RemoveFaceID before any other cache function. Failure to do so will result in incorrect behaviour or even memory leaks and crashes. FTC_Face_Requester \u00b6 Defined in FT_CACHE_H (freetype/ftcache.h). typedef FT_Error (* FTC_Face_Requester )( FTC_FaceID face_id, FT_Library library, FT_Pointer req_data, FT_Face * aface ); A callback function provided by client applications. It is used by the cache manager to translate a given FTC_FaceID into a new valid FT_Face object, on demand. input face_id The face ID to resolve. library A handle to a FreeType library object. req_data Application-provided request data (see note below). output aface A new FT_Face handle. return FreeType error code. 0 means success. note The third parameter req_data is the same as the one passed by the client when FTC_Manager_New is called. The face requester should not perform funny things on the returned face object, like creating a new FT_Size for it, or setting a transformation through FT_Set_Transform ! FTC_Manager_New \u00b6 Defined in FT_CACHE_H (freetype/ftcache.h). FT_EXPORT( FT_Error ) FTC_Manager_New ( FT_Library library, FT_UInt max_faces, FT_UInt max_sizes, FT_ULong max_bytes, FTC_Face_Requester requester, FT_Pointer req_data, FTC_Manager *amanager ); Create a new cache manager. input library The parent FreeType library handle to use. max_faces Maximum number of opened FT_Face objects managed by this cache instance. Use 0 for defaults. max_sizes Maximum number of opened FT_Size objects managed by this cache instance. Use 0 for defaults. max_bytes Maximum number of bytes to use for cached data nodes. Use 0 for defaults. Note that this value does not account for managed FT_Face and FT_Size objects. requester An application-provided callback used to translate face IDs into real FT_Face objects. req_data A generic pointer that is passed to the requester each time it is called (see FTC_Face_Requester ). output amanager A handle to a new manager object. 0 in case of failure. return FreeType error code. 0 means success. FTC_Manager_Reset \u00b6 Defined in FT_CACHE_H (freetype/ftcache.h). FT_EXPORT( void ) FTC_Manager_Reset ( FTC_Manager manager ); Empty a given cache manager. This simply gets rid of all the currently cached FT_Face and FT_Size objects within the manager. inout manager A handle to the manager. FTC_Manager_Done \u00b6 Defined in FT_CACHE_H (freetype/ftcache.h). FT_EXPORT( void ) FTC_Manager_Done ( FTC_Manager manager ); Destroy a given manager after emptying it. input manager A handle to the target cache manager object. FTC_Manager_LookupFace \u00b6 Defined in FT_CACHE_H (freetype/ftcache.h). FT_EXPORT( FT_Error ) FTC_Manager_LookupFace ( FTC_Manager manager, FTC_FaceID face_id, FT_Face *aface ); Retrieve the FT_Face object that corresponds to a given face ID through a cache manager. input manager A handle to the cache manager. face_id The ID of the face object. output aface A handle to the face object. return FreeType error code. 0 means success. note The returned FT_Face object is always owned by the manager. You should never try to discard it yourself. The FT_Face object doesn't necessarily have a current size object (i.e., face->size can be 0). If you need a specific \u2018font size\u2019, use FTC_Manager_LookupSize instead. Never change the face's transformation matrix (i.e., never call the FT_Set_Transform function) on a returned face! If you need to transform glyphs, do it yourself after glyph loading. When you perform a lookup, out-of-memory errors are detected within the lookup and force incremental flushes of the cache until enough memory is released for the lookup to succeed. If a lookup fails with FT_Err_Out_Of_Memory the cache has already been completely flushed, and still no memory was available for the operation. FTC_Manager_LookupSize \u00b6 Defined in FT_CACHE_H (freetype/ftcache.h). FT_EXPORT( FT_Error ) FTC_Manager_LookupSize ( FTC_Manager manager, FTC_Scaler scaler, FT_Size *asize ); Retrieve the FT_Size object that corresponds to a given FTC_ScalerRec pointer through a cache manager. input manager A handle to the cache manager. scaler A scaler handle. output asize A handle to the size object. return FreeType error code. 0 means success. note The returned FT_Size object is always owned by the manager. You should never try to discard it by yourself. You can access the parent FT_Face object simply as size->face if you need it. Note that this object is also owned by the manager. note When you perform a lookup, out-of-memory errors are detected within the lookup and force incremental flushes of the cache until enough memory is released for the lookup to succeed. If a lookup fails with FT_Err_Out_Of_Memory the cache has already been completely flushed, and still no memory is available for the operation. FTC_Manager_RemoveFaceID \u00b6 Defined in FT_CACHE_H (freetype/ftcache.h). FT_EXPORT( void ) FTC_Manager_RemoveFaceID ( FTC_Manager manager, FTC_FaceID face_id ); A special function used to indicate to the cache manager that a given FTC_FaceID is no longer valid, either because its content changed, or because it was deallocated or uninstalled. input manager The cache manager handle. face_id The FTC_FaceID to be removed. note This function flushes all nodes from the cache corresponding to this face_id , with the exception of nodes with a non-null reference count. Such nodes are however modified internally so as to never appear in later lookups with the same face_id value, and to be immediately destroyed when released by all their users. FTC_Node \u00b6 Defined in FT_CACHE_H (freetype/ftcache.h). typedef struct FTC_NodeRec_* FTC_Node ; An opaque handle to a cache node object. Each cache node is reference-counted. A node with a count of 0 might be flushed out of a full cache whenever a lookup request is performed. If you look up nodes, you have the ability to \u2018acquire\u2019 them, i.e., to increment their reference count. This will prevent the node from being flushed out of the cache until you explicitly \u2018release\u2019 it (see FTC_Node_Unref ). See also FTC_SBitCache_Lookup and FTC_ImageCache_Lookup . FTC_Node_Unref \u00b6 Defined in FT_CACHE_H (freetype/ftcache.h). FT_EXPORT( void ) FTC_Node_Unref ( FTC_Node node, FTC_Manager manager ); Decrement a cache node's internal reference count. When the count reaches 0, it is not destroyed but becomes eligible for subsequent cache flushes. input node The cache node handle. manager The cache manager handle. FTC_ImageCache \u00b6 Defined in FT_CACHE_H (freetype/ftcache.h). typedef struct FTC_ImageCacheRec_* FTC_ImageCache ; A handle to a glyph image cache object. They are designed to hold many distinct glyph images while not exceeding a certain memory threshold. FTC_ImageCache_New \u00b6 Defined in FT_CACHE_H (freetype/ftcache.h). FT_EXPORT( FT_Error ) FTC_ImageCache_New ( FTC_Manager manager, FTC_ImageCache *acache ); Create a new glyph image cache. input manager The parent manager for the image cache. output acache A handle to the new glyph image cache object. return FreeType error code. 0 means success. FTC_ImageCache_Lookup \u00b6 Defined in FT_CACHE_H (freetype/ftcache.h). FT_EXPORT( FT_Error ) FTC_ImageCache_Lookup ( FTC_ImageCache cache, FTC_ImageType type, FT_UInt gindex, FT_Glyph *aglyph, FTC_Node *anode ); Retrieve a given glyph image from a glyph image cache. input cache A handle to the source glyph image cache. type A pointer to a glyph image type descriptor. gindex The glyph index to retrieve. output aglyph The corresponding FT_Glyph object. 0 in case of failure. anode Used to return the address of the corresponding cache node after incrementing its reference count (see note below). return FreeType error code. 0 means success. note The returned glyph is owned and managed by the glyph image cache. Never try to transform or discard it manually! You can however create a copy with FT_Glyph_Copy and modify the new one. If anode is not NULL , it receives the address of the cache node containing the glyph image, after increasing its reference count. This ensures that the node (as well as the FT_Glyph ) will always be kept in the cache until you call FTC_Node_Unref to \u2018release\u2019 it. If anode is NULL , the cache node is left unchanged, which means that the FT_Glyph could be flushed out of the cache on the next call to one of the caching sub-system APIs. Don't assume that it is persistent! FTC_SBit \u00b6 Defined in FT_CACHE_H (freetype/ftcache.h). typedef struct FTC_SBitRec_* FTC_SBit ; A handle to a small bitmap descriptor. See the FTC_SBitRec structure for details. FTC_SBitCache \u00b6 Defined in FT_CACHE_H (freetype/ftcache.h). typedef struct FTC_SBitCacheRec_* FTC_SBitCache ; A handle to a small bitmap cache. These are special cache objects used to store small glyph bitmaps (and anti-aliased pixmaps) in a much more efficient way than the traditional glyph image cache implemented by FTC_ImageCache . FTC_SBitCache_New \u00b6 Defined in FT_CACHE_H (freetype/ftcache.h). FT_EXPORT( FT_Error ) FTC_SBitCache_New ( FTC_Manager manager, FTC_SBitCache *acache ); Create a new cache to store small glyph bitmaps. input manager A handle to the source cache manager. output acache A handle to the new sbit cache. NULL in case of error. return FreeType error code. 0 means success. FTC_SBitCache_Lookup \u00b6 Defined in FT_CACHE_H (freetype/ftcache.h). FT_EXPORT( FT_Error ) FTC_SBitCache_Lookup ( FTC_SBitCache cache, FTC_ImageType type, FT_UInt gindex, FTC_SBit *sbit, FTC_Node *anode ); Look up a given small glyph bitmap in a given sbit cache and \u2018lock\u2019 it to prevent its flushing from the cache until needed. input cache A handle to the source sbit cache. type A pointer to the glyph image type descriptor. gindex The glyph index. output sbit A handle to a small bitmap descriptor. anode Used to return the address of the corresponding cache node after incrementing its reference count (see note below). return FreeType error code. 0 means success. note The small bitmap descriptor and its bit buffer are owned by the cache and should never be freed by the application. They might as well disappear from memory on the next cache lookup, so don't treat them as persistent data. The descriptor's buffer field is set to 0 to indicate a missing glyph bitmap. If anode is not NULL , it receives the address of the cache node containing the bitmap, after increasing its reference count. This ensures that the node (as well as the image) will always be kept in the cache until you call FTC_Node_Unref to \u2018release\u2019 it. If anode is NULL , the cache node is left unchanged, which means that the bitmap could be flushed out of the cache on the next call to one of the caching sub-system APIs. Don't assume that it is persistent! FTC_CMapCache \u00b6 Defined in FT_CACHE_H (freetype/ftcache.h). typedef struct FTC_CMapCacheRec_* FTC_CMapCache ; An opaque handle used to model a charmap cache. This cache is to hold character codes -> glyph indices mappings. FTC_CMapCache_New \u00b6 Defined in FT_CACHE_H (freetype/ftcache.h). FT_EXPORT( FT_Error ) FTC_CMapCache_New ( FTC_Manager manager, FTC_CMapCache *acache ); Create a new charmap cache. input manager A handle to the cache manager. output acache A new cache handle. NULL in case of error. return FreeType error code. 0 means success. note Like all other caches, this one will be destroyed with the cache manager. FTC_CMapCache_Lookup \u00b6 Defined in FT_CACHE_H (freetype/ftcache.h). FT_EXPORT( FT_UInt ) FTC_CMapCache_Lookup ( FTC_CMapCache cache, FTC_FaceID face_id, FT_Int cmap_index, FT_UInt32 char_code ); Translate a character code into a glyph index, using the charmap cache. input cache A charmap cache handle. face_id The source face ID. cmap_index The index of the charmap in the source face. Any negative value means to use the cache FT_Face 's default charmap. char_code The character code (in the corresponding charmap). return Glyph index. 0 means \u2018no glyph\u2019. FTC_ScalerRec \u00b6 Defined in FT_CACHE_H (freetype/ftcache.h). typedef struct FTC_ScalerRec_ { FTC_FaceID face_id; FT_UInt width; FT_UInt height; FT_Int pixel; FT_UInt x_res; FT_UInt y_res; } FTC_ScalerRec ; A structure used to describe a given character size in either pixels or points to the cache manager. See FTC_Manager_LookupSize . fields face_id The source face ID. width The character width. height The character height. pixel A Boolean. If 1, the width and height fields are interpreted as integer pixel character sizes. Otherwise, they are expressed as 1/64th of points. x_res Only used when pixel is value 0 to indicate the horizontal resolution in dpi. y_res Only used when pixel is value 0 to indicate the vertical resolution in dpi. note This type is mainly used to retrieve FT_Size objects through the cache manager. FTC_Scaler \u00b6 Defined in FT_CACHE_H (freetype/ftcache.h). typedef struct FTC_ScalerRec_* FTC_Scaler ; A handle to an FTC_ScalerRec structure. FTC_ImageTypeRec \u00b6 Defined in FT_CACHE_H (freetype/ftcache.h). typedef struct FTC_ImageTypeRec_ { FTC_FaceID face_id; FT_UInt width; FT_UInt height; FT_Int32 flags; } FTC_ImageTypeRec ; A structure used to model the type of images in a glyph cache. fields face_id The face ID. width The width in pixels. height The height in pixels. flags The load flags, as in FT_Load_Glyph . FTC_ImageType \u00b6 Defined in FT_CACHE_H (freetype/ftcache.h). typedef struct FTC_ImageTypeRec_* FTC_ImageType ; A handle to an FTC_ImageTypeRec structure. FTC_ImageCache_LookupScaler \u00b6 Defined in FT_CACHE_H (freetype/ftcache.h). FT_EXPORT( FT_Error ) FTC_ImageCache_LookupScaler ( FTC_ImageCache cache, FTC_Scaler scaler, FT_ULong load_flags, FT_UInt gindex, FT_Glyph *aglyph, FTC_Node *anode ); A variant of FTC_ImageCache_Lookup that uses an FTC_ScalerRec to specify the face ID and its size. input cache A handle to the source glyph image cache. scaler A pointer to a scaler descriptor. load_flags The corresponding load flags. gindex The glyph index to retrieve. output aglyph The corresponding FT_Glyph object. 0 in case of failure. anode Used to return the address of the corresponding cache node after incrementing its reference count (see note below). return FreeType error code. 0 means success. note The returned glyph is owned and managed by the glyph image cache. Never try to transform or discard it manually! You can however create a copy with FT_Glyph_Copy and modify the new one. If anode is not NULL , it receives the address of the cache node containing the glyph image, after increasing its reference count. This ensures that the node (as well as the FT_Glyph ) will always be kept in the cache until you call FTC_Node_Unref to \u2018release\u2019 it. If anode is NULL , the cache node is left unchanged, which means that the FT_Glyph could be flushed out of the cache on the next call to one of the caching sub-system APIs. Don't assume that it is persistent! Calls to FT_Set_Char_Size and friends have no effect on cached glyphs; you should always use the FreeType cache API instead. FTC_SBitRec \u00b6 Defined in FT_CACHE_H (freetype/ftcache.h). typedef struct FTC_SBitRec_ { FT_Byte width; FT_Byte height; FT_Char left; FT_Char top; FT_Byte format; FT_Byte max_grays; FT_Short pitch; FT_Char xadvance; FT_Char yadvance; FT_Byte * buffer; } FTC_SBitRec ; A very compact structure used to describe a small glyph bitmap. fields width The bitmap width in pixels. height The bitmap height in pixels. left The horizontal distance from the pen position to the left bitmap border (a.k.a. \u2018left side bearing\u2019, or \u2018lsb\u2019). top The vertical distance from the pen position (on the baseline) to the upper bitmap border (a.k.a. \u2018top side bearing\u2019). The distance is positive for upwards y coordinates. format The format of the glyph bitmap (monochrome or gray). max_grays Maximum gray level value (in the range 1 to 255). pitch The number of bytes per bitmap line. May be positive or negative. xadvance The horizontal advance width in pixels. yadvance The vertical advance height in pixels. buffer A pointer to the bitmap pixels. FTC_SBitCache_LookupScaler \u00b6 Defined in FT_CACHE_H (freetype/ftcache.h). FT_EXPORT( FT_Error ) FTC_SBitCache_LookupScaler ( FTC_SBitCache cache, FTC_Scaler scaler, FT_ULong load_flags, FT_UInt gindex, FTC_SBit *sbit, FTC_Node *anode ); A variant of FTC_SBitCache_Lookup that uses an FTC_ScalerRec to specify the face ID and its size. input cache A handle to the source sbit cache. scaler A pointer to the scaler descriptor. load_flags The corresponding load flags. gindex The glyph index. output sbit A handle to a small bitmap descriptor. anode Used to return the address of the corresponding cache node after incrementing its reference count (see note below). return FreeType error code. 0 means success. note The small bitmap descriptor and its bit buffer are owned by the cache and should never be freed by the application. They might as well disappear from memory on the next cache lookup, so don't treat them as persistent data. The descriptor's buffer field is set to 0 to indicate a missing glyph bitmap. If anode is not NULL , it receives the address of the cache node containing the bitmap, after increasing its reference count. This ensures that the node (as well as the image) will always be kept in the cache until you call FTC_Node_Unref to \u2018release\u2019 it. If anode is NULL , the cache node is left unchanged, which means that the bitmap could be flushed out of the cache on the next call to one of the caching sub-system APIs. Don't assume that it is persistent!","title":"Cache Sub-System"},{"location":"ft2-cache_subsystem.html#cache-sub-system","text":"","title":"Cache Sub-System"},{"location":"ft2-cache_subsystem.html#synopsis","text":"This section describes the FreeType 2 cache sub-system, which is used to limit the number of concurrently opened FT_Face and FT_Size objects, as well as caching information like character maps and glyph images while limiting their maximum memory usage. Note that all types and functions begin with the FTC_ prefix. The cache is highly portable and thus doesn't know anything about the fonts installed on your system, or how to access them. This implies the following scheme: First, available or installed font faces are uniquely identified by FTC_FaceID values, provided to the cache by the client. Note that the cache only stores and compares these values, and doesn't try to interpret them in any way. Second, the cache calls, only when needed, a client-provided function to convert an FTC_FaceID into a new FT_Face object. The latter is then completely managed by the cache, including its termination through FT_Done_Face . To monitor termination of face objects, the finalizer callback in the generic field of the FT_Face object can be used, which might also be used to store the FTC_FaceID of the face. Clients are free to map face IDs to anything else. The most simple usage is to associate them to a (pathname,face_index) pair that is used to call FT_New_Face . However, more complex schemes are also possible. Note that for the cache to work correctly, the face ID values must be persistent , which means that the contents they point to should not change at runtime, or that their value should not become invalid. If this is unavoidable (e.g., when a font is uninstalled at runtime), you should call FTC_Manager_RemoveFaceID as soon as possible, to let the cache get rid of any references to the old FTC_FaceID it may keep internally. Failure to do so will lead to incorrect behaviour or even crashes. To use the cache, start with calling FTC_Manager_New to create a new FTC_Manager object, which models a single cache instance. You can then look up FT_Face and FT_Size objects with FTC_Manager_LookupFace and FTC_Manager_LookupSize , respectively. If you want to use the charmap caching, call FTC_CMapCache_New , then later use FTC_CMapCache_Lookup to perform the equivalent of FT_Get_Char_Index , only much faster. If you want to use the FT_Glyph caching, call FTC_ImageCache , then later use FTC_ImageCache_Lookup to retrieve the corresponding FT_Glyph objects from the cache. If you need lots of small bitmaps, it is much more memory efficient to call FTC_SBitCache_New followed by FTC_SBitCache_Lookup . This returns FTC_SBitRec structures, which are used to store small bitmaps directly. (A small bitmap is one whose metrics and dimensions all fit into 8-bit integers). We hope to also provide a kerning cache in the near future.","title":"Synopsis"},{"location":"ft2-cache_subsystem.html#ftc_manager","text":"Defined in FT_CACHE_H (freetype/ftcache.h). typedef struct FTC_ManagerRec_* FTC_Manager ; This object corresponds to one instance of the cache-subsystem. It is used to cache one or more FT_Face objects, along with corresponding FT_Size objects. The manager intentionally limits the total number of opened FT_Face and FT_Size objects to control memory usage. See the max_faces and max_sizes parameters of FTC_Manager_New . The manager is also used to cache \u2018nodes\u2019 of various types while limiting their total memory usage. All limitations are enforced by keeping lists of managed objects in most-recently-used order, and flushing old nodes to make room for new ones.","title":"FTC_Manager"},{"location":"ft2-cache_subsystem.html#ftc_faceid","text":"Defined in FT_CACHE_H (freetype/ftcache.h). typedef FT_Pointer FTC_FaceID ; An opaque pointer type that is used to identity face objects. The contents of such objects is application-dependent. These pointers are typically used to point to a user-defined structure containing a font file path, and face index.","title":"FTC_FaceID"},{"location":"ft2-cache_subsystem.html#ftc_face_requester","text":"Defined in FT_CACHE_H (freetype/ftcache.h). typedef FT_Error (* FTC_Face_Requester )( FTC_FaceID face_id, FT_Library library, FT_Pointer req_data, FT_Face * aface ); A callback function provided by client applications. It is used by the cache manager to translate a given FTC_FaceID into a new valid FT_Face object, on demand.","title":"FTC_Face_Requester"},{"location":"ft2-cache_subsystem.html#ftc_manager_new","text":"Defined in FT_CACHE_H (freetype/ftcache.h). FT_EXPORT( FT_Error ) FTC_Manager_New ( FT_Library library, FT_UInt max_faces, FT_UInt max_sizes, FT_ULong max_bytes, FTC_Face_Requester requester, FT_Pointer req_data, FTC_Manager *amanager ); Create a new cache manager.","title":"FTC_Manager_New"},{"location":"ft2-cache_subsystem.html#ftc_manager_reset","text":"Defined in FT_CACHE_H (freetype/ftcache.h). FT_EXPORT( void ) FTC_Manager_Reset ( FTC_Manager manager ); Empty a given cache manager. This simply gets rid of all the currently cached FT_Face and FT_Size objects within the manager.","title":"FTC_Manager_Reset"},{"location":"ft2-cache_subsystem.html#ftc_manager_done","text":"Defined in FT_CACHE_H (freetype/ftcache.h). FT_EXPORT( void ) FTC_Manager_Done ( FTC_Manager manager ); Destroy a given manager after emptying it.","title":"FTC_Manager_Done"},{"location":"ft2-cache_subsystem.html#ftc_manager_lookupface","text":"Defined in FT_CACHE_H (freetype/ftcache.h). FT_EXPORT( FT_Error ) FTC_Manager_LookupFace ( FTC_Manager manager, FTC_FaceID face_id, FT_Face *aface ); Retrieve the FT_Face object that corresponds to a given face ID through a cache manager.","title":"FTC_Manager_LookupFace"},{"location":"ft2-cache_subsystem.html#ftc_manager_lookupsize","text":"Defined in FT_CACHE_H (freetype/ftcache.h). FT_EXPORT( FT_Error ) FTC_Manager_LookupSize ( FTC_Manager manager, FTC_Scaler scaler, FT_Size *asize ); Retrieve the FT_Size object that corresponds to a given FTC_ScalerRec pointer through a cache manager.","title":"FTC_Manager_LookupSize"},{"location":"ft2-cache_subsystem.html#ftc_manager_removefaceid","text":"Defined in FT_CACHE_H (freetype/ftcache.h). FT_EXPORT( void ) FTC_Manager_RemoveFaceID ( FTC_Manager manager, FTC_FaceID face_id ); A special function used to indicate to the cache manager that a given FTC_FaceID is no longer valid, either because its content changed, or because it was deallocated or uninstalled.","title":"FTC_Manager_RemoveFaceID"},{"location":"ft2-cache_subsystem.html#ftc_node","text":"Defined in FT_CACHE_H (freetype/ftcache.h). typedef struct FTC_NodeRec_* FTC_Node ; An opaque handle to a cache node object. Each cache node is reference-counted. A node with a count of 0 might be flushed out of a full cache whenever a lookup request is performed. If you look up nodes, you have the ability to \u2018acquire\u2019 them, i.e., to increment their reference count. This will prevent the node from being flushed out of the cache until you explicitly \u2018release\u2019 it (see FTC_Node_Unref ). See also FTC_SBitCache_Lookup and FTC_ImageCache_Lookup .","title":"FTC_Node"},{"location":"ft2-cache_subsystem.html#ftc_node_unref","text":"Defined in FT_CACHE_H (freetype/ftcache.h). FT_EXPORT( void ) FTC_Node_Unref ( FTC_Node node, FTC_Manager manager ); Decrement a cache node's internal reference count. When the count reaches 0, it is not destroyed but becomes eligible for subsequent cache flushes.","title":"FTC_Node_Unref"},{"location":"ft2-cache_subsystem.html#ftc_imagecache","text":"Defined in FT_CACHE_H (freetype/ftcache.h). typedef struct FTC_ImageCacheRec_* FTC_ImageCache ; A handle to a glyph image cache object. They are designed to hold many distinct glyph images while not exceeding a certain memory threshold.","title":"FTC_ImageCache"},{"location":"ft2-cache_subsystem.html#ftc_imagecache_new","text":"Defined in FT_CACHE_H (freetype/ftcache.h). FT_EXPORT( FT_Error ) FTC_ImageCache_New ( FTC_Manager manager, FTC_ImageCache *acache ); Create a new glyph image cache.","title":"FTC_ImageCache_New"},{"location":"ft2-cache_subsystem.html#ftc_imagecache_lookup","text":"Defined in FT_CACHE_H (freetype/ftcache.h). FT_EXPORT( FT_Error ) FTC_ImageCache_Lookup ( FTC_ImageCache cache, FTC_ImageType type, FT_UInt gindex, FT_Glyph *aglyph, FTC_Node *anode ); Retrieve a given glyph image from a glyph image cache.","title":"FTC_ImageCache_Lookup"},{"location":"ft2-cache_subsystem.html#ftc_sbit","text":"Defined in FT_CACHE_H (freetype/ftcache.h). typedef struct FTC_SBitRec_* FTC_SBit ; A handle to a small bitmap descriptor. See the FTC_SBitRec structure for details.","title":"FTC_SBit"},{"location":"ft2-cache_subsystem.html#ftc_sbitcache","text":"Defined in FT_CACHE_H (freetype/ftcache.h). typedef struct FTC_SBitCacheRec_* FTC_SBitCache ; A handle to a small bitmap cache. These are special cache objects used to store small glyph bitmaps (and anti-aliased pixmaps) in a much more efficient way than the traditional glyph image cache implemented by FTC_ImageCache .","title":"FTC_SBitCache"},{"location":"ft2-cache_subsystem.html#ftc_sbitcache_new","text":"Defined in FT_CACHE_H (freetype/ftcache.h). FT_EXPORT( FT_Error ) FTC_SBitCache_New ( FTC_Manager manager, FTC_SBitCache *acache ); Create a new cache to store small glyph bitmaps.","title":"FTC_SBitCache_New"},{"location":"ft2-cache_subsystem.html#ftc_sbitcache_lookup","text":"Defined in FT_CACHE_H (freetype/ftcache.h). FT_EXPORT( FT_Error ) FTC_SBitCache_Lookup ( FTC_SBitCache cache, FTC_ImageType type, FT_UInt gindex, FTC_SBit *sbit, FTC_Node *anode ); Look up a given small glyph bitmap in a given sbit cache and \u2018lock\u2019 it to prevent its flushing from the cache until needed.","title":"FTC_SBitCache_Lookup"},{"location":"ft2-cache_subsystem.html#ftc_cmapcache","text":"Defined in FT_CACHE_H (freetype/ftcache.h). typedef struct FTC_CMapCacheRec_* FTC_CMapCache ; An opaque handle used to model a charmap cache. This cache is to hold character codes -> glyph indices mappings.","title":"FTC_CMapCache"},{"location":"ft2-cache_subsystem.html#ftc_cmapcache_new","text":"Defined in FT_CACHE_H (freetype/ftcache.h). FT_EXPORT( FT_Error ) FTC_CMapCache_New ( FTC_Manager manager, FTC_CMapCache *acache ); Create a new charmap cache.","title":"FTC_CMapCache_New"},{"location":"ft2-cache_subsystem.html#ftc_cmapcache_lookup","text":"Defined in FT_CACHE_H (freetype/ftcache.h). FT_EXPORT( FT_UInt ) FTC_CMapCache_Lookup ( FTC_CMapCache cache, FTC_FaceID face_id, FT_Int cmap_index, FT_UInt32 char_code ); Translate a character code into a glyph index, using the charmap cache.","title":"FTC_CMapCache_Lookup"},{"location":"ft2-cache_subsystem.html#ftc_scalerrec","text":"Defined in FT_CACHE_H (freetype/ftcache.h). typedef struct FTC_ScalerRec_ { FTC_FaceID face_id; FT_UInt width; FT_UInt height; FT_Int pixel; FT_UInt x_res; FT_UInt y_res; } FTC_ScalerRec ; A structure used to describe a given character size in either pixels or points to the cache manager. See FTC_Manager_LookupSize .","title":"FTC_ScalerRec"},{"location":"ft2-cache_subsystem.html#ftc_scaler","text":"Defined in FT_CACHE_H (freetype/ftcache.h). typedef struct FTC_ScalerRec_* FTC_Scaler ; A handle to an FTC_ScalerRec structure.","title":"FTC_Scaler"},{"location":"ft2-cache_subsystem.html#ftc_imagetyperec","text":"Defined in FT_CACHE_H (freetype/ftcache.h). typedef struct FTC_ImageTypeRec_ { FTC_FaceID face_id; FT_UInt width; FT_UInt height; FT_Int32 flags; } FTC_ImageTypeRec ; A structure used to model the type of images in a glyph cache.","title":"FTC_ImageTypeRec"},{"location":"ft2-cache_subsystem.html#ftc_imagetype","text":"Defined in FT_CACHE_H (freetype/ftcache.h). typedef struct FTC_ImageTypeRec_* FTC_ImageType ; A handle to an FTC_ImageTypeRec structure.","title":"FTC_ImageType"},{"location":"ft2-cache_subsystem.html#ftc_imagecache_lookupscaler","text":"Defined in FT_CACHE_H (freetype/ftcache.h). FT_EXPORT( FT_Error ) FTC_ImageCache_LookupScaler ( FTC_ImageCache cache, FTC_Scaler scaler, FT_ULong load_flags, FT_UInt gindex, FT_Glyph *aglyph, FTC_Node *anode ); A variant of FTC_ImageCache_Lookup that uses an FTC_ScalerRec to specify the face ID and its size.","title":"FTC_ImageCache_LookupScaler"},{"location":"ft2-cache_subsystem.html#ftc_sbitrec","text":"Defined in FT_CACHE_H (freetype/ftcache.h). typedef struct FTC_SBitRec_ { FT_Byte width; FT_Byte height; FT_Char left; FT_Char top; FT_Byte format; FT_Byte max_grays; FT_Short pitch; FT_Char xadvance; FT_Char yadvance; FT_Byte * buffer; } FTC_SBitRec ; A very compact structure used to describe a small glyph bitmap.","title":"FTC_SBitRec"},{"location":"ft2-cache_subsystem.html#ftc_sbitcache_lookupscaler","text":"Defined in FT_CACHE_H (freetype/ftcache.h). FT_EXPORT( FT_Error ) FTC_SBitCache_LookupScaler ( FTC_SBitCache cache, FTC_Scaler scaler, FT_ULong load_flags, FT_UInt gindex, FTC_SBit *sbit, FTC_Node *anode ); A variant of FTC_SBitCache_Lookup that uses an FTC_ScalerRec to specify the face ID and its size.","title":"FTC_SBitCache_LookupScaler"},{"location":"ft2-cff_driver.html","text":"FreeType \u00bb Docs \u00bb Controlling FreeType Modules \u00bb The CFF driver The CFF driver \u00b6 Synopsis \u00b6 While FreeType's CFF driver doesn't expose API functions by itself, it is possible to control its behaviour with FT_Property_Set and FT_Property_Get . The CFF driver's module name is \u2018cff\u2019. Available properties are hinting-engine , no-stem-darkening , darkening-parameters , and random-seed , as documented in the \u2018 Driver properties \u2019 section. Hinting and antialiasing principles of the new engine The rasterizer is positioning horizontal features (e.g., ascender height & x-height, or crossbars) on the pixel grid and minimizing the amount of antialiasing applied to them, while placing vertical features (vertical stems) on the pixel grid without hinting, thus representing the stem position and weight accurately. Sometimes the vertical stems may be only partially black. In this context, \u2018antialiasing\u2019 means that stems are not positioned exactly on pixel borders, causing a fuzzy appearance. There are two principles behind this approach. 1) No hinting in the horizontal direction: Unlike \u2018superhinted\u2019 TrueType, which changes glyph widths to accommodate regular inter-glyph spacing, Adobe's approach is \u2018faithful to the design\u2019 in representing both the glyph width and the inter-glyph spacing designed for the font. This makes the screen display as close as it can be to the result one would get with infinite resolution, while preserving what is considered the key characteristics of each glyph. Note that the distances between unhinted and grid-fitted positions at small sizes are comparable to kerning values and thus would be noticeable (and distracting) while reading if hinting were applied. One of the reasons to not hint horizontally is antialiasing for LCD screens: The pixel geometry of modern displays supplies three vertical subpixels as the eye moves horizontally across each visible pixel. On devices where we can be certain this characteristic is present a rasterizer can take advantage of the subpixels to add increments of weight. In Western writing systems this turns out to be the more critical direction anyway; the weights and spacing of vertical stems (see above) are central to Armenian, Cyrillic, Greek, and Latin type designs. Even when the rasterizer uses greyscale antialiasing instead of color (a necessary compromise when one doesn't know the screen characteristics), the unhinted vertical features preserve the design's weight and spacing much better than aliased type would. 2) Alignment in the vertical direction: Weights and spacing along the y axis are less critical; what is much more important is the visual alignment of related features (like cap-height and x-height). The sense of alignment for these is enhanced by the sharpness of grid-fit edges, while the cruder vertical resolution (full pixels instead of \u2153 pixels) is less of a problem. On the technical side, horizontal alignment zones for ascender, x-height, and other important height values (traditionally called \u2018blue zones\u2019) as defined in the font are positioned independently, each being rounded to the nearest pixel edge, taking care of overshoot suppression at small sizes, stem darkening, and scaling. Hstems (this is, hint values defined in the font to help align horizontal features) that fall within a blue zone are said to be \u2018captured\u2019 and are aligned to that zone. Uncaptured stems are moved in one of four ways, top edge up or down, bottom edge up or down. Unless there are conflicting hstems, the smallest movement is taken to minimize distortion.","title":"The CFF driver"},{"location":"ft2-cff_driver.html#the-cff-driver","text":"","title":"The CFF driver"},{"location":"ft2-cff_driver.html#synopsis","text":"While FreeType's CFF driver doesn't expose API functions by itself, it is possible to control its behaviour with FT_Property_Set and FT_Property_Get . The CFF driver's module name is \u2018cff\u2019. Available properties are hinting-engine , no-stem-darkening , darkening-parameters , and random-seed , as documented in the \u2018 Driver properties \u2019 section. Hinting and antialiasing principles of the new engine The rasterizer is positioning horizontal features (e.g., ascender height & x-height, or crossbars) on the pixel grid and minimizing the amount of antialiasing applied to them, while placing vertical features (vertical stems) on the pixel grid without hinting, thus representing the stem position and weight accurately. Sometimes the vertical stems may be only partially black. In this context, \u2018antialiasing\u2019 means that stems are not positioned exactly on pixel borders, causing a fuzzy appearance. There are two principles behind this approach. 1) No hinting in the horizontal direction: Unlike \u2018superhinted\u2019 TrueType, which changes glyph widths to accommodate regular inter-glyph spacing, Adobe's approach is \u2018faithful to the design\u2019 in representing both the glyph width and the inter-glyph spacing designed for the font. This makes the screen display as close as it can be to the result one would get with infinite resolution, while preserving what is considered the key characteristics of each glyph. Note that the distances between unhinted and grid-fitted positions at small sizes are comparable to kerning values and thus would be noticeable (and distracting) while reading if hinting were applied. One of the reasons to not hint horizontally is antialiasing for LCD screens: The pixel geometry of modern displays supplies three vertical subpixels as the eye moves horizontally across each visible pixel. On devices where we can be certain this characteristic is present a rasterizer can take advantage of the subpixels to add increments of weight. In Western writing systems this turns out to be the more critical direction anyway; the weights and spacing of vertical stems (see above) are central to Armenian, Cyrillic, Greek, and Latin type designs. Even when the rasterizer uses greyscale antialiasing instead of color (a necessary compromise when one doesn't know the screen characteristics), the unhinted vertical features preserve the design's weight and spacing much better than aliased type would. 2) Alignment in the vertical direction: Weights and spacing along the y axis are less critical; what is much more important is the visual alignment of related features (like cap-height and x-height). The sense of alignment for these is enhanced by the sharpness of grid-fit edges, while the cruder vertical resolution (full pixels instead of \u2153 pixels) is less of a problem. On the technical side, horizontal alignment zones for ascender, x-height, and other important height values (traditionally called \u2018blue zones\u2019) as defined in the font are positioned independently, each being rounded to the nearest pixel edge, taking care of overshoot suppression at small sizes, stem darkening, and scaling. Hstems (this is, hint values defined in the font to help align horizontal features) that fall within a blue zone are said to be \u2018captured\u2019 and are aligned to that zone. Uncaptured stems are moved in one of four ways, top edge up or down, bottom edge up or down. Unless there are conflicting hstems, the smallest movement is taken to minimize distortion.","title":"Synopsis"},{"location":"ft2-cid_fonts.html","text":"FreeType \u00bb Docs \u00bb Format-Specific API \u00bb CID Fonts CID Fonts \u00b6 Synopsis \u00b6 This section contains the declaration of CID-keyed font-specific functions. FT_Get_CID_Registry_Ordering_Supplement \u00b6 Defined in FT_CID_H (freetype/ftcid.h). FT_EXPORT( FT_Error ) FT_Get_CID_Registry_Ordering_Supplement ( FT_Face face, const char * *registry, const char * *ordering, FT_Int *supplement ); Retrieve the Registry/Ordering/Supplement triple (also known as the \"R/O/S\") from a CID-keyed font. input face A handle to the input face. output registry The registry, as a C string, owned by the face. ordering The ordering, as a C string, owned by the face. supplement The supplement. return FreeType error code. 0 means success. note This function only works with CID faces, returning an error otherwise. since 2.3.6 FT_Get_CID_Is_Internally_CID_Keyed \u00b6 Defined in FT_CID_H (freetype/ftcid.h). FT_EXPORT( FT_Error ) FT_Get_CID_Is_Internally_CID_Keyed ( FT_Face face, FT_Bool *is_cid ); Retrieve the type of the input face, CID keyed or not. In contrast to the FT_IS_CID_KEYED macro this function returns successfully also for CID-keyed fonts in an SFNT wrapper. input face A handle to the input face. output is_cid The type of the face as an FT_Bool . return FreeType error code. 0 means success. note This function only works with CID faces and OpenType fonts, returning an error otherwise. since 2.3.9 FT_Get_CID_From_Glyph_Index \u00b6 Defined in FT_CID_H (freetype/ftcid.h). FT_EXPORT( FT_Error ) FT_Get_CID_From_Glyph_Index ( FT_Face face, FT_UInt glyph_index, FT_UInt *cid ); Retrieve the CID of the input glyph index. input face A handle to the input face. glyph_index The input glyph index. output cid The CID as an FT_UInt . return FreeType error code. 0 means success. note This function only works with CID faces and OpenType fonts, returning an error otherwise. since 2.3.9","title":"CID Fonts"},{"location":"ft2-cid_fonts.html#cid-fonts","text":"","title":"CID Fonts"},{"location":"ft2-cid_fonts.html#synopsis","text":"This section contains the declaration of CID-keyed font-specific functions.","title":"Synopsis"},{"location":"ft2-cid_fonts.html#ft_get_cid_registry_ordering_supplement","text":"Defined in FT_CID_H (freetype/ftcid.h). FT_EXPORT( FT_Error ) FT_Get_CID_Registry_Ordering_Supplement ( FT_Face face, const char * *registry, const char * *ordering, FT_Int *supplement ); Retrieve the Registry/Ordering/Supplement triple (also known as the \"R/O/S\") from a CID-keyed font.","title":"FT_Get_CID_Registry_Ordering_Supplement"},{"location":"ft2-cid_fonts.html#ft_get_cid_is_internally_cid_keyed","text":"Defined in FT_CID_H (freetype/ftcid.h). FT_EXPORT( FT_Error ) FT_Get_CID_Is_Internally_CID_Keyed ( FT_Face face, FT_Bool *is_cid ); Retrieve the type of the input face, CID keyed or not. In contrast to the FT_IS_CID_KEYED macro this function returns successfully also for CID-keyed fonts in an SFNT wrapper.","title":"FT_Get_CID_Is_Internally_CID_Keyed"},{"location":"ft2-cid_fonts.html#ft_get_cid_from_glyph_index","text":"Defined in FT_CID_H (freetype/ftcid.h). FT_EXPORT( FT_Error ) FT_Get_CID_From_Glyph_Index ( FT_Face face, FT_UInt glyph_index, FT_UInt *cid ); Retrieve the CID of the input glyph index.","title":"FT_Get_CID_From_Glyph_Index"},{"location":"ft2-color_management.html","text":"FreeType \u00bb Docs \u00bb Core API \u00bb Glyph Color Management Glyph Color Management \u00b6 Synopsis \u00b6 The functions described here allow access and manipulation of color palette entries in OpenType's \u2018CPAL\u2019 tables. FT_Color \u00b6 Defined in FT_COLOR_H (freetype/ftcolor.h). typedef struct FT_Color_ { FT_Byte blue; FT_Byte green; FT_Byte red; FT_Byte alpha; } FT_Color ; This structure models a BGRA color value of a \u2018CPAL\u2019 palette entry. The used color space is sRGB; the colors are not pre-multiplied, and alpha values must be explicitly set. fields blue Blue value. green Green value. red Red value. alpha Alpha value, giving the red, green, and blue color's opacity. since 2.10 FT_PALETTE_XXX \u00b6 Defined in FT_COLOR_H (freetype/ftcolor.h). # define FT_PALETTE_FOR_LIGHT_BACKGROUND 0x01 # define FT_PALETTE_FOR_DARK_BACKGROUND 0x02 A list of bit field constants used in the palette_flags array of the FT_Palette_Data structure to indicate for which background a palette with a given index is usable. values FT_PALETTE_FOR_LIGHT_BACKGROUND The palette is appropriate to use when displaying the font on a light background such as white. FT_PALETTE_FOR_DARK_BACKGROUND The palette is appropriate to use when displaying the font on a dark background such as black. since 2.10 FT_Palette_Data \u00b6 Defined in FT_COLOR_H (freetype/ftcolor.h). typedef struct FT_Palette_Data_ { FT_UShort num_palettes; const FT_UShort * palette_name_ids; const FT_UShort * palette_flags; FT_UShort num_palette_entries; const FT_UShort * palette_entry_name_ids; } FT_Palette_Data ; This structure holds the data of the \u2018CPAL\u2019 table. fields num_palettes The number of palettes. palette_name_ids An optional read-only array of palette name IDs with num_palettes elements, corresponding to entries like \u2018dark\u2019 or \u2018light\u2019 in the font's \u2018name\u2019 table. An empty name ID in the \u2018CPAL\u2019 table gets represented as value 0xFFFF. NULL if the font's \u2018CPAL\u2019 table doesn't contain appropriate data. palette_flags An optional read-only array of palette flags with num_palettes elements. Possible values are an ORed combination of FT_PALETTE_FOR_LIGHT_BACKGROUND and FT_PALETTE_FOR_DARK_BACKGROUND . NULL if the font's \u2018CPAL\u2019 table doesn't contain appropriate data. num_palette_entries The number of entries in a single palette. All palettes have the same size. palette_entry_name_ids An optional read-only array of palette entry name IDs with num_palette_entries . In each palette, entries with the same index have the same function. For example, index 0 might correspond to string \u2018outline\u2019 in the font's \u2018name\u2019 table to indicate that this palette entry is used for outlines, index 1 might correspond to \u2018fill\u2019 to indicate the filling color palette entry, etc. An empty entry name ID in the \u2018CPAL\u2019 table gets represented as value 0xFFFF. NULL if the font's \u2018CPAL\u2019 table doesn't contain appropriate data. note Use function FT_Get_Sfnt_Name to map name IDs and entry name IDs to name strings. Use function FT_Palette_Select to get the colors associated with a palette entry. since 2.10 FT_Palette_Data_Get \u00b6 Defined in FT_COLOR_H (freetype/ftcolor.h). FT_EXPORT( FT_Error ) FT_Palette_Data_Get ( FT_Face face, FT_Palette_Data *apalette ); Retrieve the face's color palette data. input face The source face handle. output apalette A pointer to an FT_Palette_Data structure. return FreeType error code. 0 means success. note All arrays in the returned FT_Palette_Data structure are read-only. This function always returns an error if the config macro TT_CONFIG_OPTION_COLOR_LAYERS is not defined in ftoption.h . since 2.10 FT_Palette_Select \u00b6 Defined in FT_COLOR_H (freetype/ftcolor.h). FT_EXPORT( FT_Error ) FT_Palette_Select ( FT_Face face, FT_UShort palette_index, FT_Color * *apalette ); This function has two purposes. (1) It activates a palette for rendering color glyphs, and (2) it retrieves all (unmodified) color entries of this palette. This function returns a read-write array, which means that a calling application can modify the palette entries on demand. A corollary of (2) is that calling the function, then modifying some values, then calling the function again with the same arguments resets all color entries to the original \u2018CPAL\u2019 values; all user modifications are lost. input face The source face handle. palette_index The palette index. output apalette An array of color entries for a palette with index palette_index , having num_palette_entries elements (as found in the FT_Palette_Data structure). If apalette is set to NULL , no array gets returned (and no color entries can be modified). In case the font doesn't support color palettes, NULL is returned. return FreeType error code. 0 means success. note The array pointed to by apalette_entries is owned and managed by FreeType. This function always returns an error if the config macro TT_CONFIG_OPTION_COLOR_LAYERS is not defined in ftoption.h . since 2.10 FT_Palette_Set_Foreground_Color \u00b6 Defined in FT_COLOR_H (freetype/ftcolor.h). FT_EXPORT( FT_Error ) FT_Palette_Set_Foreground_Color ( FT_Face face, FT_Color foreground_color ); \u2018COLR\u2019 uses palette index 0xFFFF to indicate a \u2018text foreground color\u2019. This function sets this value. input face The source face handle. foreground_color An FT_Color structure to define the text foreground color. return FreeType error code. 0 means success. note If this function isn't called, the text foreground color is set to white opaque (BGRA value 0xFFFFFFFF) if FT_PALETTE_FOR_DARK_BACKGROUND is present for the current palette, and black opaque (BGRA value 0x000000FF) otherwise, including the case that no palette types are available in the \u2018CPAL\u2019 table. This function always returns an error if the config macro TT_CONFIG_OPTION_COLOR_LAYERS is not defined in ftoption.h . since 2.10","title":"Glyph Color Management"},{"location":"ft2-color_management.html#glyph-color-management","text":"","title":"Glyph Color Management"},{"location":"ft2-color_management.html#synopsis","text":"The functions described here allow access and manipulation of color palette entries in OpenType's \u2018CPAL\u2019 tables.","title":"Synopsis"},{"location":"ft2-color_management.html#ft_color","text":"Defined in FT_COLOR_H (freetype/ftcolor.h). typedef struct FT_Color_ { FT_Byte blue; FT_Byte green; FT_Byte red; FT_Byte alpha; } FT_Color ; This structure models a BGRA color value of a \u2018CPAL\u2019 palette entry. The used color space is sRGB; the colors are not pre-multiplied, and alpha values must be explicitly set.","title":"FT_Color"},{"location":"ft2-color_management.html#ft_palette_xxx","text":"Defined in FT_COLOR_H (freetype/ftcolor.h). # define FT_PALETTE_FOR_LIGHT_BACKGROUND 0x01 # define FT_PALETTE_FOR_DARK_BACKGROUND 0x02 A list of bit field constants used in the palette_flags array of the FT_Palette_Data structure to indicate for which background a palette with a given index is usable.","title":"FT_PALETTE_XXX"},{"location":"ft2-color_management.html#ft_palette_data","text":"Defined in FT_COLOR_H (freetype/ftcolor.h). typedef struct FT_Palette_Data_ { FT_UShort num_palettes; const FT_UShort * palette_name_ids; const FT_UShort * palette_flags; FT_UShort num_palette_entries; const FT_UShort * palette_entry_name_ids; } FT_Palette_Data ; This structure holds the data of the \u2018CPAL\u2019 table.","title":"FT_Palette_Data"},{"location":"ft2-color_management.html#ft_palette_data_get","text":"Defined in FT_COLOR_H (freetype/ftcolor.h). FT_EXPORT( FT_Error ) FT_Palette_Data_Get ( FT_Face face, FT_Palette_Data *apalette ); Retrieve the face's color palette data.","title":"FT_Palette_Data_Get"},{"location":"ft2-color_management.html#ft_palette_select","text":"Defined in FT_COLOR_H (freetype/ftcolor.h). FT_EXPORT( FT_Error ) FT_Palette_Select ( FT_Face face, FT_UShort palette_index, FT_Color * *apalette ); This function has two purposes. (1) It activates a palette for rendering color glyphs, and (2) it retrieves all (unmodified) color entries of this palette. This function returns a read-write array, which means that a calling application can modify the palette entries on demand. A corollary of (2) is that calling the function, then modifying some values, then calling the function again with the same arguments resets all color entries to the original \u2018CPAL\u2019 values; all user modifications are lost.","title":"FT_Palette_Select"},{"location":"ft2-color_management.html#ft_palette_set_foreground_color","text":"Defined in FT_COLOR_H (freetype/ftcolor.h). FT_EXPORT( FT_Error ) FT_Palette_Set_Foreground_Color ( FT_Face face, FT_Color foreground_color ); \u2018COLR\u2019 uses palette index 0xFFFF to indicate a \u2018text foreground color\u2019. This function sets this value.","title":"FT_Palette_Set_Foreground_Color"},{"location":"ft2-computations.html","text":"FreeType \u00bb Docs \u00bb Support API \u00bb Computations Computations \u00b6 Synopsis \u00b6 This section contains various functions used to perform computations on 16.16 fixed-float numbers or 2d vectors. Attention : Most arithmetic functions take FT_Long as arguments. For historical reasons, FreeType was designed under the assumption that FT_Long is a 32-bit integer; results can thus be undefined if the arguments don't fit into 32 bits. FT_MulDiv \u00b6 Defined in FT_FREETYPE_H (freetype/freetype.h). FT_EXPORT( FT_Long ) FT_MulDiv ( FT_Long a, FT_Long b, FT_Long c ); Compute (a*b)/c with maximum accuracy, using a 64-bit intermediate integer whenever necessary. This function isn't necessarily as fast as some processor-specific operations, but is at least completely portable. input a The first multiplier. b The second multiplier. c The divisor. return The result of (a*b)/c . This function never traps when trying to divide by zero; it simply returns \u2018MaxInt\u2019 or \u2018MinInt\u2019 depending on the signs of a and b . FT_MulFix \u00b6 Defined in FT_FREETYPE_H (freetype/freetype.h). FT_EXPORT( FT_Long ) FT_MulFix ( FT_Long a, FT_Long b ); Compute (a*b)/0x10000 with maximum accuracy. Its main use is to multiply a given value by a 16.16 fixed-point factor. input a The first multiplier. b The second multiplier. Use a 16.16 factor here whenever possible (see note below). return The result of (a*b)/0x10000 . note This function has been optimized for the case where the absolute value of a is less than 2048, and b is a 16.16 scaling factor. As this happens mainly when scaling from notional units to fractional pixels in FreeType, it resulted in noticeable speed improvements between versions 2.x and 1.x. As a conclusion, always try to place a 16.16 factor as the second argument of this function; this can make a great difference. FT_DivFix \u00b6 Defined in FT_FREETYPE_H (freetype/freetype.h). FT_EXPORT( FT_Long ) FT_DivFix ( FT_Long a, FT_Long b ); Compute (a*0x10000)/b with maximum accuracy. Its main use is to divide a given value by a 16.16 fixed-point factor. input a The numerator. b The denominator. Use a 16.16 factor here. return The result of (a*0x10000)/b . FT_RoundFix \u00b6 Defined in FT_FREETYPE_H (freetype/freetype.h). FT_EXPORT( FT_Fixed ) FT_RoundFix ( FT_Fixed a ); Round a 16.16 fixed number. input a The number to be rounded. return a rounded to the nearest 16.16 fixed integer, halfway cases away from zero. note The function uses wrap-around arithmetic. FT_CeilFix \u00b6 Defined in FT_FREETYPE_H (freetype/freetype.h). FT_EXPORT( FT_Fixed ) FT_CeilFix ( FT_Fixed a ); Compute the smallest following integer of a 16.16 fixed number. input a The number for which the ceiling function is to be computed. return a rounded towards plus infinity. note The function uses wrap-around arithmetic. FT_FloorFix \u00b6 Defined in FT_FREETYPE_H (freetype/freetype.h). FT_EXPORT( FT_Fixed ) FT_FloorFix ( FT_Fixed a ); Compute the largest previous integer of a 16.16 fixed number. input a The number for which the floor function is to be computed. return a rounded towards minus infinity. FT_Vector_Transform \u00b6 Defined in FT_FREETYPE_H (freetype/freetype.h). FT_EXPORT( void ) FT_Vector_Transform ( FT_Vector * vector, const FT_Matrix * matrix ); Transform a single vector through a 2x2 matrix. inout vector The target vector to transform. input matrix A pointer to the source 2x2 matrix. note The result is undefined if either vector or matrix is invalid. FT_Matrix_Multiply \u00b6 Defined in FT_GLYPH_H (freetype/ftglyph.h). FT_EXPORT( void ) FT_Matrix_Multiply ( const FT_Matrix * a, FT_Matrix * b ); Perform the matrix operation b = a*b . input a A pointer to matrix a . inout b A pointer to matrix b . note The result is undefined if either a or b is zero. Since the function uses wrap-around arithmetic, results become meaningless if the arguments are very large. FT_Matrix_Invert \u00b6 Defined in FT_GLYPH_H (freetype/ftglyph.h). FT_EXPORT( FT_Error ) FT_Matrix_Invert ( FT_Matrix * matrix ); Invert a 2x2 matrix. Return an error if it can't be inverted. inout matrix A pointer to the target matrix. Remains untouched in case of error. return FreeType error code. 0 means success. FT_Angle \u00b6 Defined in FT_TRIGONOMETRY_H (freetype/fttrigon.h). typedef FT_Fixed FT_Angle ; This type is used to model angle values in FreeType. Note that the angle is a 16.16 fixed-point value expressed in degrees. FT_ANGLE_PI \u00b6 Defined in FT_TRIGONOMETRY_H (freetype/fttrigon.h). # define FT_ANGLE_PI ( 180L << 16 ) The angle pi expressed in FT_Angle units. FT_ANGLE_2PI \u00b6 Defined in FT_TRIGONOMETRY_H (freetype/fttrigon.h). # define FT_ANGLE_2PI ( FT_ANGLE_PI * 2 ) The angle 2*pi expressed in FT_Angle units. FT_ANGLE_PI2 \u00b6 Defined in FT_TRIGONOMETRY_H (freetype/fttrigon.h). # define FT_ANGLE_PI2 ( FT_ANGLE_PI / 2 ) The angle pi/2 expressed in FT_Angle units. FT_ANGLE_PI4 \u00b6 Defined in FT_TRIGONOMETRY_H (freetype/fttrigon.h). # define FT_ANGLE_PI4 ( FT_ANGLE_PI / 4 ) The angle pi/4 expressed in FT_Angle units. FT_Sin \u00b6 Defined in FT_TRIGONOMETRY_H (freetype/fttrigon.h). FT_EXPORT( FT_Fixed ) FT_Sin ( FT_Angle angle ); Return the sinus of a given angle in fixed-point format. input angle The input angle. return The sinus value. note If you need both the sinus and cosinus for a given angle, use the function FT_Vector_Unit . FT_Cos \u00b6 Defined in FT_TRIGONOMETRY_H (freetype/fttrigon.h). FT_EXPORT( FT_Fixed ) FT_Cos ( FT_Angle angle ); Return the cosinus of a given angle in fixed-point format. input angle The input angle. return The cosinus value. note If you need both the sinus and cosinus for a given angle, use the function FT_Vector_Unit . FT_Tan \u00b6 Defined in FT_TRIGONOMETRY_H (freetype/fttrigon.h). FT_EXPORT( FT_Fixed ) FT_Tan ( FT_Angle angle ); Return the tangent of a given angle in fixed-point format. input angle The input angle. return The tangent value. FT_Atan2 \u00b6 Defined in FT_TRIGONOMETRY_H (freetype/fttrigon.h). FT_EXPORT( FT_Angle ) FT_Atan2 ( FT_Fixed x, FT_Fixed y ); Return the arc-tangent corresponding to a given vector (x,y) in the 2d plane. input x The horizontal vector coordinate. y The vertical vector coordinate. return The arc-tangent value (i.e. angle). FT_Angle_Diff \u00b6 Defined in FT_TRIGONOMETRY_H (freetype/fttrigon.h). FT_EXPORT( FT_Angle ) FT_Angle_Diff ( FT_Angle angle1, FT_Angle angle2 ); Return the difference between two angles. The result is always constrained to the ]-PI..PI] interval. input angle1 First angle. angle2 Second angle. return Constrained value of angle2-angle1 . FT_Vector_Unit \u00b6 Defined in FT_TRIGONOMETRY_H (freetype/fttrigon.h). FT_EXPORT( void ) FT_Vector_Unit ( FT_Vector * vec, FT_Angle angle ); Return the unit vector corresponding to a given angle. After the call, the value of vec.x will be cos(angle) , and the value of vec.y will be sin(angle) . This function is useful to retrieve both the sinus and cosinus of a given angle quickly. output vec The address of target vector. input angle The input angle. FT_Vector_Rotate \u00b6 Defined in FT_TRIGONOMETRY_H (freetype/fttrigon.h). FT_EXPORT( void ) FT_Vector_Rotate ( FT_Vector * vec, FT_Angle angle ); Rotate a vector by a given angle. inout vec The address of target vector. input angle The input angle. FT_Vector_Length \u00b6 Defined in FT_TRIGONOMETRY_H (freetype/fttrigon.h). FT_EXPORT( FT_Fixed ) FT_Vector_Length ( FT_Vector * vec ); Return the length of a given vector. input vec The address of target vector. return The vector length, expressed in the same units that the original vector coordinates. FT_Vector_Polarize \u00b6 Defined in FT_TRIGONOMETRY_H (freetype/fttrigon.h). FT_EXPORT( void ) FT_Vector_Polarize ( FT_Vector * vec, FT_Fixed *length, FT_Angle *angle ); Compute both the length and angle of a given vector. input vec The address of source vector. output length The vector length. angle The vector angle. FT_Vector_From_Polar \u00b6 Defined in FT_TRIGONOMETRY_H (freetype/fttrigon.h). FT_EXPORT( void ) FT_Vector_From_Polar ( FT_Vector * vec, FT_Fixed length, FT_Angle angle ); Compute vector coordinates from a length and angle. output vec The address of source vector. input length The vector length. angle The vector angle.","title":"Computations"},{"location":"ft2-computations.html#computations","text":"","title":"Computations"},{"location":"ft2-computations.html#synopsis","text":"This section contains various functions used to perform computations on 16.16 fixed-float numbers or 2d vectors. Attention : Most arithmetic functions take FT_Long as arguments. For historical reasons, FreeType was designed under the assumption that FT_Long is a 32-bit integer; results can thus be undefined if the arguments don't fit into 32 bits.","title":"Synopsis"},{"location":"ft2-computations.html#ft_muldiv","text":"Defined in FT_FREETYPE_H (freetype/freetype.h). FT_EXPORT( FT_Long ) FT_MulDiv ( FT_Long a, FT_Long b, FT_Long c ); Compute (a*b)/c with maximum accuracy, using a 64-bit intermediate integer whenever necessary. This function isn't necessarily as fast as some processor-specific operations, but is at least completely portable.","title":"FT_MulDiv"},{"location":"ft2-computations.html#ft_mulfix","text":"Defined in FT_FREETYPE_H (freetype/freetype.h). FT_EXPORT( FT_Long ) FT_MulFix ( FT_Long a, FT_Long b ); Compute (a*b)/0x10000 with maximum accuracy. Its main use is to multiply a given value by a 16.16 fixed-point factor.","title":"FT_MulFix"},{"location":"ft2-computations.html#ft_divfix","text":"Defined in FT_FREETYPE_H (freetype/freetype.h). FT_EXPORT( FT_Long ) FT_DivFix ( FT_Long a, FT_Long b ); Compute (a*0x10000)/b with maximum accuracy. Its main use is to divide a given value by a 16.16 fixed-point factor.","title":"FT_DivFix"},{"location":"ft2-computations.html#ft_roundfix","text":"Defined in FT_FREETYPE_H (freetype/freetype.h). FT_EXPORT( FT_Fixed ) FT_RoundFix ( FT_Fixed a ); Round a 16.16 fixed number.","title":"FT_RoundFix"},{"location":"ft2-computations.html#ft_ceilfix","text":"Defined in FT_FREETYPE_H (freetype/freetype.h). FT_EXPORT( FT_Fixed ) FT_CeilFix ( FT_Fixed a ); Compute the smallest following integer of a 16.16 fixed number.","title":"FT_CeilFix"},{"location":"ft2-computations.html#ft_floorfix","text":"Defined in FT_FREETYPE_H (freetype/freetype.h). FT_EXPORT( FT_Fixed ) FT_FloorFix ( FT_Fixed a ); Compute the largest previous integer of a 16.16 fixed number.","title":"FT_FloorFix"},{"location":"ft2-computations.html#ft_vector_transform","text":"Defined in FT_FREETYPE_H (freetype/freetype.h). FT_EXPORT( void ) FT_Vector_Transform ( FT_Vector * vector, const FT_Matrix * matrix ); Transform a single vector through a 2x2 matrix.","title":"FT_Vector_Transform"},{"location":"ft2-computations.html#ft_matrix_multiply","text":"Defined in FT_GLYPH_H (freetype/ftglyph.h). FT_EXPORT( void ) FT_Matrix_Multiply ( const FT_Matrix * a, FT_Matrix * b ); Perform the matrix operation b = a*b .","title":"FT_Matrix_Multiply"},{"location":"ft2-computations.html#ft_matrix_invert","text":"Defined in FT_GLYPH_H (freetype/ftglyph.h). FT_EXPORT( FT_Error ) FT_Matrix_Invert ( FT_Matrix * matrix ); Invert a 2x2 matrix. Return an error if it can't be inverted.","title":"FT_Matrix_Invert"},{"location":"ft2-computations.html#ft_angle","text":"Defined in FT_TRIGONOMETRY_H (freetype/fttrigon.h). typedef FT_Fixed FT_Angle ; This type is used to model angle values in FreeType. Note that the angle is a 16.16 fixed-point value expressed in degrees.","title":"FT_Angle"},{"location":"ft2-computations.html#ft_angle_pi","text":"Defined in FT_TRIGONOMETRY_H (freetype/fttrigon.h). # define FT_ANGLE_PI ( 180L << 16 ) The angle pi expressed in FT_Angle units.","title":"FT_ANGLE_PI"},{"location":"ft2-computations.html#ft_angle_2pi","text":"Defined in FT_TRIGONOMETRY_H (freetype/fttrigon.h). # define FT_ANGLE_2PI ( FT_ANGLE_PI * 2 ) The angle 2*pi expressed in FT_Angle units.","title":"FT_ANGLE_2PI"},{"location":"ft2-computations.html#ft_angle_pi2","text":"Defined in FT_TRIGONOMETRY_H (freetype/fttrigon.h). # define FT_ANGLE_PI2 ( FT_ANGLE_PI / 2 ) The angle pi/2 expressed in FT_Angle units.","title":"FT_ANGLE_PI2"},{"location":"ft2-computations.html#ft_angle_pi4","text":"Defined in FT_TRIGONOMETRY_H (freetype/fttrigon.h). # define FT_ANGLE_PI4 ( FT_ANGLE_PI / 4 ) The angle pi/4 expressed in FT_Angle units.","title":"FT_ANGLE_PI4"},{"location":"ft2-computations.html#ft_sin","text":"Defined in FT_TRIGONOMETRY_H (freetype/fttrigon.h). FT_EXPORT( FT_Fixed ) FT_Sin ( FT_Angle angle ); Return the sinus of a given angle in fixed-point format.","title":"FT_Sin"},{"location":"ft2-computations.html#ft_cos","text":"Defined in FT_TRIGONOMETRY_H (freetype/fttrigon.h). FT_EXPORT( FT_Fixed ) FT_Cos ( FT_Angle angle ); Return the cosinus of a given angle in fixed-point format.","title":"FT_Cos"},{"location":"ft2-computations.html#ft_tan","text":"Defined in FT_TRIGONOMETRY_H (freetype/fttrigon.h). FT_EXPORT( FT_Fixed ) FT_Tan ( FT_Angle angle ); Return the tangent of a given angle in fixed-point format.","title":"FT_Tan"},{"location":"ft2-computations.html#ft_atan2","text":"Defined in FT_TRIGONOMETRY_H (freetype/fttrigon.h). FT_EXPORT( FT_Angle ) FT_Atan2 ( FT_Fixed x, FT_Fixed y ); Return the arc-tangent corresponding to a given vector (x,y) in the 2d plane.","title":"FT_Atan2"},{"location":"ft2-computations.html#ft_angle_diff","text":"Defined in FT_TRIGONOMETRY_H (freetype/fttrigon.h). FT_EXPORT( FT_Angle ) FT_Angle_Diff ( FT_Angle angle1, FT_Angle angle2 ); Return the difference between two angles. The result is always constrained to the ]-PI..PI] interval.","title":"FT_Angle_Diff"},{"location":"ft2-computations.html#ft_vector_unit","text":"Defined in FT_TRIGONOMETRY_H (freetype/fttrigon.h). FT_EXPORT( void ) FT_Vector_Unit ( FT_Vector * vec, FT_Angle angle ); Return the unit vector corresponding to a given angle. After the call, the value of vec.x will be cos(angle) , and the value of vec.y will be sin(angle) . This function is useful to retrieve both the sinus and cosinus of a given angle quickly.","title":"FT_Vector_Unit"},{"location":"ft2-computations.html#ft_vector_rotate","text":"Defined in FT_TRIGONOMETRY_H (freetype/fttrigon.h). FT_EXPORT( void ) FT_Vector_Rotate ( FT_Vector * vec, FT_Angle angle ); Rotate a vector by a given angle.","title":"FT_Vector_Rotate"},{"location":"ft2-computations.html#ft_vector_length","text":"Defined in FT_TRIGONOMETRY_H (freetype/fttrigon.h). FT_EXPORT( FT_Fixed ) FT_Vector_Length ( FT_Vector * vec ); Return the length of a given vector.","title":"FT_Vector_Length"},{"location":"ft2-computations.html#ft_vector_polarize","text":"Defined in FT_TRIGONOMETRY_H (freetype/fttrigon.h). FT_EXPORT( void ) FT_Vector_Polarize ( FT_Vector * vec, FT_Fixed *length, FT_Angle *angle ); Compute both the length and angle of a given vector.","title":"FT_Vector_Polarize"},{"location":"ft2-computations.html#ft_vector_from_polar","text":"Defined in FT_TRIGONOMETRY_H (freetype/fttrigon.h). FT_EXPORT( void ) FT_Vector_From_Polar ( FT_Vector * vec, FT_Fixed length, FT_Angle angle ); Compute vector coordinates from a length and angle.","title":"FT_Vector_From_Polar"},{"location":"ft2-error_code_values.html","text":"FreeType \u00bb Docs \u00bb Error Codes \u00bb Error Code Values Error Code Values \u00b6 Synopsis \u00b6 The list below is taken verbatim from the file fterrdef.h (loaded automatically by including FT_FREETYPE_H ). The first argument of the FT_ERROR_DEF_ macro is the error label; by default, the prefix FT_Err_ gets added so that you get error names like FT_Err_Cannot_Open_Resource . The second argument is the error code, and the last argument an error string, which is not used by FreeType. Within your application you should only use error names and never its numeric values! The latter might (and actually do) change in forthcoming FreeType versions. Macro FT_NOERRORDEF_ defines FT_Err_Ok , which is always zero. See the \u2018Error Enumerations\u2019 subsection how to automatically generate a list of error strings. FT_Err_XXX \u00b6 /* generic errors */ FT_NOERRORDEF_( Ok, 0x00, \"no error\" ) FT_ERRORDEF_( Cannot_Open_Resource, 0x01, \"cannot open resource\" ) FT_ERRORDEF_( Unknown_File_Format, 0x02, \"unknown file format\" ) FT_ERRORDEF_( Invalid_File_Format, 0x03, \"broken file\" ) FT_ERRORDEF_( Invalid_Version, 0x04, \"invalid FreeType version\" ) FT_ERRORDEF_( Lower_Module_Version, 0x05, \"module version is too low\" ) FT_ERRORDEF_( Invalid_Argument, 0x06, \"invalid argument\" ) FT_ERRORDEF_( Unimplemented_Feature, 0x07, \"unimplemented feature\" ) FT_ERRORDEF_( Invalid_Table, 0x08, \"broken table\" ) FT_ERRORDEF_( Invalid_Offset, 0x09, \"broken offset within table\" ) FT_ERRORDEF_( Array_Too_Large, 0x0A, \"array allocation size too large\" ) FT_ERRORDEF_( Missing_Module, 0x0B, \"missing module\" ) FT_ERRORDEF_( Missing_Property, 0x0C, \"missing property\" ) /* glyph/character errors */ FT_ERRORDEF_( Invalid_Glyph_Index, 0x10, \"invalid glyph index\" ) FT_ERRORDEF_( Invalid_Character_Code, 0x11, \"invalid character code\" ) FT_ERRORDEF_( Invalid_Glyph_Format, 0x12, \"unsupported glyph image format\" ) FT_ERRORDEF_( Cannot_Render_Glyph, 0x13, \"cannot render this glyph format\" ) FT_ERRORDEF_( Invalid_Outline, 0x14, \"invalid outline\" ) FT_ERRORDEF_( Invalid_Composite, 0x15, \"invalid composite glyph\" ) FT_ERRORDEF_( Too_Many_Hints, 0x16, \"too many hints\" ) FT_ERRORDEF_( Invalid_Pixel_Size, 0x17, \"invalid pixel size\" ) /* handle errors */ FT_ERRORDEF_( Invalid_Handle, 0x20, \"invalid object handle\" ) FT_ERRORDEF_( Invalid_Library_Handle, 0x21, \"invalid library handle\" ) FT_ERRORDEF_( Invalid_Driver_Handle, 0x22, \"invalid module handle\" ) FT_ERRORDEF_( Invalid_Face_Handle, 0x23, \"invalid face handle\" ) FT_ERRORDEF_( Invalid_Size_Handle, 0x24, \"invalid size handle\" ) FT_ERRORDEF_( Invalid_Slot_Handle, 0x25, \"invalid glyph slot handle\" ) FT_ERRORDEF_( Invalid_CharMap_Handle, 0x26, \"invalid charmap handle\" ) FT_ERRORDEF_( Invalid_Cache_Handle, 0x27, \"invalid cache manager handle\" ) FT_ERRORDEF_( Invalid_Stream_Handle, 0x28, \"invalid stream handle\" ) /* driver errors */ FT_ERRORDEF_( Too_Many_Drivers, 0x30, \"too many modules\" ) FT_ERRORDEF_( Too_Many_Extensions, 0x31, \"too many extensions\" ) /* memory errors */ FT_ERRORDEF_( Out_Of_Memory, 0x40, \"out of memory\" ) FT_ERRORDEF_( Unlisted_Object, 0x41, \"unlisted object\" ) /* stream errors */ FT_ERRORDEF_( Cannot_Open_Stream, 0x51, \"cannot open stream\" ) FT_ERRORDEF_( Invalid_Stream_Seek, 0x52, \"invalid stream seek\" ) FT_ERRORDEF_( Invalid_Stream_Skip, 0x53, \"invalid stream skip\" ) FT_ERRORDEF_( Invalid_Stream_Read, 0x54, \"invalid stream read\" ) FT_ERRORDEF_( Invalid_Stream_Operation, 0x55, \"invalid stream operation\" ) FT_ERRORDEF_( Invalid_Frame_Operation, 0x56, \"invalid frame operation\" ) FT_ERRORDEF_( Nested_Frame_Access, 0x57, \"nested frame access\" ) FT_ERRORDEF_( Invalid_Frame_Read, 0x58, \"invalid frame read\" ) /* raster errors */ FT_ERRORDEF_( Raster_Uninitialized, 0x60, \"raster uninitialized\" ) FT_ERRORDEF_( Raster_Corrupted, 0x61, \"raster corrupted\" ) FT_ERRORDEF_( Raster_Overflow, 0x62, \"raster overflow\" ) FT_ERRORDEF_( Raster_Negative_Height, 0x63, \"negative height while rastering\" ) /* cache errors */ FT_ERRORDEF_( Too_Many_Caches, 0x70, \"too many registered caches\" ) /* TrueType and SFNT errors */ FT_ERRORDEF_( Invalid_Opcode, 0x80, \"invalid opcode\" ) FT_ERRORDEF_( Too_Few_Arguments, 0x81, \"too few arguments\" ) FT_ERRORDEF_( Stack_Overflow, 0x82, \"stack overflow\" ) FT_ERRORDEF_( Code_Overflow, 0x83, \"code overflow\" ) FT_ERRORDEF_( Bad_Argument, 0x84, \"bad argument\" ) FT_ERRORDEF_( Divide_By_Zero, 0x85, \"division by zero\" ) FT_ERRORDEF_( Invalid_Reference, 0x86, \"invalid reference\" ) FT_ERRORDEF_( Debug_OpCode, 0x87, \"found debug opcode\" ) FT_ERRORDEF_( ENDF_In_Exec_Stream, 0x88, \"found ENDF opcode in execution stream\" ) FT_ERRORDEF_( Nested_DEFS, 0x89, \"nested DEFS\" ) FT_ERRORDEF_( Invalid_CodeRange, 0x8A, \"invalid code range\" ) FT_ERRORDEF_( Execution_Too_Long, 0x8B, \"execution context too long \" ) FT_ERRORDEF_( Too_Many_Function_Defs, 0x8C, \"too many function definitions\" ) FT_ERRORDEF_( Too_Many_Instruction_Defs, 0x8D, \"too many instruction definitions\" ) FT_ERRORDEF_( Table_Missing, 0x8E, \"SFNT font table missing\" ) FT_ERRORDEF_( Horiz_Header_Missing, 0x8F, \"horizontal header (hhea) table missing\" ) FT_ERRORDEF_( Locations_Missing, 0x90, \"locations (loca) table missing\" ) FT_ERRORDEF_( Name_Table_Missing, 0x91, \"name table missing\" ) FT_ERRORDEF_( CMap_Table_Missing, 0x92, \"character map (cmap) table missing\" ) FT_ERRORDEF_( Hmtx_Table_Missing, 0x93, \"horizontal metrics (hmtx) table missing\" ) FT_ERRORDEF_( Post_Table_Missing, 0x94, \"PostScript (post) table missing\" ) FT_ERRORDEF_( Invalid_Horiz_Metrics, 0x95, \"invalid horizontal metrics\" ) FT_ERRORDEF_( Invalid_CharMap_Format, 0x96, \"invalid character map (cmap) format\" ) FT_ERRORDEF_( Invalid_PPem, 0x97, \"invalid ppem value\" ) FT_ERRORDEF_( Invalid_Vert_Metrics, 0x98, \"invalid vertical metrics\" ) FT_ERRORDEF_( Could_Not_Find_Context, 0x99, \"could not find context\" ) FT_ERRORDEF_( Invalid_Post_Table_Format, 0x9A, \"invalid PostScript (post) table format\" ) FT_ERRORDEF_( Invalid_Post_Table, 0x9B, \"invalid PostScript (post) table\" ) FT_ERRORDEF_( DEF_In_Glyf_Bytecode, 0x9C, \"found FDEF or IDEF opcode in glyf bytecode\" ) FT_ERRORDEF_( Missing_Bitmap, 0x9D, \"missing bitmap in strike\" ) /* CFF, CID, and Type 1 errors */ FT_ERRORDEF_( Syntax_Error, 0xA0, \"opcode syntax error\" ) FT_ERRORDEF_( Stack_Underflow, 0xA1, \"argument stack underflow\" ) FT_ERRORDEF_( Ignore, 0xA2, \"ignore\" ) FT_ERRORDEF_( No_Unicode_Glyph_Name, 0xA3, \"no Unicode glyph name found\" ) FT_ERRORDEF_( Glyph_Too_Big, 0xA4, \"glyph too big for hinting\" ) /* BDF errors */ FT_ERRORDEF_( Missing_Startfont_Field, 0xB0, \"`STARTFONT' field missing\" ) FT_ERRORDEF_( Missing_Font_Field, 0xB1, \"`FONT' field missing\" ) FT_ERRORDEF_( Missing_Size_Field, 0xB2, \"`SIZE' field missing\" ) FT_ERRORDEF_( Missing_Fontboundingbox_Field, 0xB3, \"`FONTBOUNDINGBOX' field missing\" ) FT_ERRORDEF_( Missing_Chars_Field, 0xB4, \"`CHARS' field missing\" ) FT_ERRORDEF_( Missing_Startchar_Field, 0xB5, \"`STARTCHAR' field missing\" ) FT_ERRORDEF_( Missing_Encoding_Field, 0xB6, \"`ENCODING' field missing\" ) FT_ERRORDEF_( Missing_Bbx_Field, 0xB7, \"`BBX' field missing\" ) FT_ERRORDEF_( Bbx_Too_Big, 0xB8, \"`BBX' too big\" ) FT_ERRORDEF_( Corrupted_Font_Header, 0xB9, \"Font header corrupted or missing fields\" ) FT_ERRORDEF_( Corrupted_Font_Glyphs, 0xBA, \"Font glyphs corrupted or missing fields\" )","title":"Error Code Values"},{"location":"ft2-error_code_values.html#error-code-values","text":"","title":"Error Code Values"},{"location":"ft2-error_code_values.html#synopsis","text":"The list below is taken verbatim from the file fterrdef.h (loaded automatically by including FT_FREETYPE_H ). The first argument of the FT_ERROR_DEF_ macro is the error label; by default, the prefix FT_Err_ gets added so that you get error names like FT_Err_Cannot_Open_Resource . The second argument is the error code, and the last argument an error string, which is not used by FreeType. Within your application you should only use error names and never its numeric values! The latter might (and actually do) change in forthcoming FreeType versions. Macro FT_NOERRORDEF_ defines FT_Err_Ok , which is always zero. See the \u2018Error Enumerations\u2019 subsection how to automatically generate a list of error strings.","title":"Synopsis"},{"location":"ft2-error_code_values.html#ft_err_xxx","text":"/* generic errors */ FT_NOERRORDEF_( Ok, 0x00, \"no error\" ) FT_ERRORDEF_( Cannot_Open_Resource, 0x01, \"cannot open resource\" ) FT_ERRORDEF_( Unknown_File_Format, 0x02, \"unknown file format\" ) FT_ERRORDEF_( Invalid_File_Format, 0x03, \"broken file\" ) FT_ERRORDEF_( Invalid_Version, 0x04, \"invalid FreeType version\" ) FT_ERRORDEF_( Lower_Module_Version, 0x05, \"module version is too low\" ) FT_ERRORDEF_( Invalid_Argument, 0x06, \"invalid argument\" ) FT_ERRORDEF_( Unimplemented_Feature, 0x07, \"unimplemented feature\" ) FT_ERRORDEF_( Invalid_Table, 0x08, \"broken table\" ) FT_ERRORDEF_( Invalid_Offset, 0x09, \"broken offset within table\" ) FT_ERRORDEF_( Array_Too_Large, 0x0A, \"array allocation size too large\" ) FT_ERRORDEF_( Missing_Module, 0x0B, \"missing module\" ) FT_ERRORDEF_( Missing_Property, 0x0C, \"missing property\" ) /* glyph/character errors */ FT_ERRORDEF_( Invalid_Glyph_Index, 0x10, \"invalid glyph index\" ) FT_ERRORDEF_( Invalid_Character_Code, 0x11, \"invalid character code\" ) FT_ERRORDEF_( Invalid_Glyph_Format, 0x12, \"unsupported glyph image format\" ) FT_ERRORDEF_( Cannot_Render_Glyph, 0x13, \"cannot render this glyph format\" ) FT_ERRORDEF_( Invalid_Outline, 0x14, \"invalid outline\" ) FT_ERRORDEF_( Invalid_Composite, 0x15, \"invalid composite glyph\" ) FT_ERRORDEF_( Too_Many_Hints, 0x16, \"too many hints\" ) FT_ERRORDEF_( Invalid_Pixel_Size, 0x17, \"invalid pixel size\" ) /* handle errors */ FT_ERRORDEF_( Invalid_Handle, 0x20, \"invalid object handle\" ) FT_ERRORDEF_( Invalid_Library_Handle, 0x21, \"invalid library handle\" ) FT_ERRORDEF_( Invalid_Driver_Handle, 0x22, \"invalid module handle\" ) FT_ERRORDEF_( Invalid_Face_Handle, 0x23, \"invalid face handle\" ) FT_ERRORDEF_( Invalid_Size_Handle, 0x24, \"invalid size handle\" ) FT_ERRORDEF_( Invalid_Slot_Handle, 0x25, \"invalid glyph slot handle\" ) FT_ERRORDEF_( Invalid_CharMap_Handle, 0x26, \"invalid charmap handle\" ) FT_ERRORDEF_( Invalid_Cache_Handle, 0x27, \"invalid cache manager handle\" ) FT_ERRORDEF_( Invalid_Stream_Handle, 0x28, \"invalid stream handle\" ) /* driver errors */ FT_ERRORDEF_( Too_Many_Drivers, 0x30, \"too many modules\" ) FT_ERRORDEF_( Too_Many_Extensions, 0x31, \"too many extensions\" ) /* memory errors */ FT_ERRORDEF_( Out_Of_Memory, 0x40, \"out of memory\" ) FT_ERRORDEF_( Unlisted_Object, 0x41, \"unlisted object\" ) /* stream errors */ FT_ERRORDEF_( Cannot_Open_Stream, 0x51, \"cannot open stream\" ) FT_ERRORDEF_( Invalid_Stream_Seek, 0x52, \"invalid stream seek\" ) FT_ERRORDEF_( Invalid_Stream_Skip, 0x53, \"invalid stream skip\" ) FT_ERRORDEF_( Invalid_Stream_Read, 0x54, \"invalid stream read\" ) FT_ERRORDEF_( Invalid_Stream_Operation, 0x55, \"invalid stream operation\" ) FT_ERRORDEF_( Invalid_Frame_Operation, 0x56, \"invalid frame operation\" ) FT_ERRORDEF_( Nested_Frame_Access, 0x57, \"nested frame access\" ) FT_ERRORDEF_( Invalid_Frame_Read, 0x58, \"invalid frame read\" ) /* raster errors */ FT_ERRORDEF_( Raster_Uninitialized, 0x60, \"raster uninitialized\" ) FT_ERRORDEF_( Raster_Corrupted, 0x61, \"raster corrupted\" ) FT_ERRORDEF_( Raster_Overflow, 0x62, \"raster overflow\" ) FT_ERRORDEF_( Raster_Negative_Height, 0x63, \"negative height while rastering\" ) /* cache errors */ FT_ERRORDEF_( Too_Many_Caches, 0x70, \"too many registered caches\" ) /* TrueType and SFNT errors */ FT_ERRORDEF_( Invalid_Opcode, 0x80, \"invalid opcode\" ) FT_ERRORDEF_( Too_Few_Arguments, 0x81, \"too few arguments\" ) FT_ERRORDEF_( Stack_Overflow, 0x82, \"stack overflow\" ) FT_ERRORDEF_( Code_Overflow, 0x83, \"code overflow\" ) FT_ERRORDEF_( Bad_Argument, 0x84, \"bad argument\" ) FT_ERRORDEF_( Divide_By_Zero, 0x85, \"division by zero\" ) FT_ERRORDEF_( Invalid_Reference, 0x86, \"invalid reference\" ) FT_ERRORDEF_( Debug_OpCode, 0x87, \"found debug opcode\" ) FT_ERRORDEF_( ENDF_In_Exec_Stream, 0x88, \"found ENDF opcode in execution stream\" ) FT_ERRORDEF_( Nested_DEFS, 0x89, \"nested DEFS\" ) FT_ERRORDEF_( Invalid_CodeRange, 0x8A, \"invalid code range\" ) FT_ERRORDEF_( Execution_Too_Long, 0x8B, \"execution context too long \" ) FT_ERRORDEF_( Too_Many_Function_Defs, 0x8C, \"too many function definitions\" ) FT_ERRORDEF_( Too_Many_Instruction_Defs, 0x8D, \"too many instruction definitions\" ) FT_ERRORDEF_( Table_Missing, 0x8E, \"SFNT font table missing\" ) FT_ERRORDEF_( Horiz_Header_Missing, 0x8F, \"horizontal header (hhea) table missing\" ) FT_ERRORDEF_( Locations_Missing, 0x90, \"locations (loca) table missing\" ) FT_ERRORDEF_( Name_Table_Missing, 0x91, \"name table missing\" ) FT_ERRORDEF_( CMap_Table_Missing, 0x92, \"character map (cmap) table missing\" ) FT_ERRORDEF_( Hmtx_Table_Missing, 0x93, \"horizontal metrics (hmtx) table missing\" ) FT_ERRORDEF_( Post_Table_Missing, 0x94, \"PostScript (post) table missing\" ) FT_ERRORDEF_( Invalid_Horiz_Metrics, 0x95, \"invalid horizontal metrics\" ) FT_ERRORDEF_( Invalid_CharMap_Format, 0x96, \"invalid character map (cmap) format\" ) FT_ERRORDEF_( Invalid_PPem, 0x97, \"invalid ppem value\" ) FT_ERRORDEF_( Invalid_Vert_Metrics, 0x98, \"invalid vertical metrics\" ) FT_ERRORDEF_( Could_Not_Find_Context, 0x99, \"could not find context\" ) FT_ERRORDEF_( Invalid_Post_Table_Format, 0x9A, \"invalid PostScript (post) table format\" ) FT_ERRORDEF_( Invalid_Post_Table, 0x9B, \"invalid PostScript (post) table\" ) FT_ERRORDEF_( DEF_In_Glyf_Bytecode, 0x9C, \"found FDEF or IDEF opcode in glyf bytecode\" ) FT_ERRORDEF_( Missing_Bitmap, 0x9D, \"missing bitmap in strike\" ) /* CFF, CID, and Type 1 errors */ FT_ERRORDEF_( Syntax_Error, 0xA0, \"opcode syntax error\" ) FT_ERRORDEF_( Stack_Underflow, 0xA1, \"argument stack underflow\" ) FT_ERRORDEF_( Ignore, 0xA2, \"ignore\" ) FT_ERRORDEF_( No_Unicode_Glyph_Name, 0xA3, \"no Unicode glyph name found\" ) FT_ERRORDEF_( Glyph_Too_Big, 0xA4, \"glyph too big for hinting\" ) /* BDF errors */ FT_ERRORDEF_( Missing_Startfont_Field, 0xB0, \"`STARTFONT' field missing\" ) FT_ERRORDEF_( Missing_Font_Field, 0xB1, \"`FONT' field missing\" ) FT_ERRORDEF_( Missing_Size_Field, 0xB2, \"`SIZE' field missing\" ) FT_ERRORDEF_( Missing_Fontboundingbox_Field, 0xB3, \"`FONTBOUNDINGBOX' field missing\" ) FT_ERRORDEF_( Missing_Chars_Field, 0xB4, \"`CHARS' field missing\" ) FT_ERRORDEF_( Missing_Startchar_Field, 0xB5, \"`STARTCHAR' field missing\" ) FT_ERRORDEF_( Missing_Encoding_Field, 0xB6, \"`ENCODING' field missing\" ) FT_ERRORDEF_( Missing_Bbx_Field, 0xB7, \"`BBX' field missing\" ) FT_ERRORDEF_( Bbx_Too_Big, 0xB8, \"`BBX' too big\" ) FT_ERRORDEF_( Corrupted_Font_Header, 0xB9, \"Font header corrupted or missing fields\" ) FT_ERRORDEF_( Corrupted_Font_Glyphs, 0xBA, \"Font glyphs corrupted or missing fields\" )","title":"FT_Err_XXX"},{"location":"ft2-error_enumerations.html","text":"FreeType \u00bb Docs \u00bb Error Codes \u00bb Error Enumerations Error Enumerations \u00b6 Synopsis \u00b6 The header file fterrors.h (which is automatically included by freetype.h defines the handling of FreeType's enumeration constants. It can also be used to generate error message strings with a small macro trick explained below. Error Formats The configuration macro FT_CONFIG_OPTION_USE_MODULE_ERRORS can be defined in ftoption.h in order to make the higher byte indicate the module where the error has happened (this is not compatible with standard builds of FreeType 2, however). See the file ftmoderr.h for more details. Error Message Strings Error definitions are set up with special macros that allow client applications to build a table of error message strings. The strings are not included in a normal build of FreeType 2 to save space (most client applications do not use them). To do so, you have to define the following macros before including this file. FT_ERROR_START_LIST This macro is called before anything else to define the start of the error list. It is followed by several FT_ERROR_DEF calls. FT_ERROR_DEF( e, v, s ) This macro is called to define one single error. \u2018e\u2019 is the error code identifier (e.g., Invalid_Argument ), \u2018v\u2019 is the error's numerical value, and \u2018s\u2019 is the corresponding error string. FT_ERROR_END_LIST This macro ends the list. Additionally, you have to undefine FTERRORS_H_ before #including this file. Here is a simple example. #undef FTERRORS_H_ #define FT_ERRORDEF( e, v, s ) { e, s }, #define FT_ERROR_START_LIST { #define FT_ERROR_END_LIST { 0, NULL } }; const struct { int err_code; const char* err_msg; } ft_errors[] = #include <freetype/fterrors.h> An alternative to using an array is a switch statement. #undef FTERRORS_H_ #define FT_ERROR_START_LIST switch ( error_code ) { #define FT_ERRORDEF( e, v, s ) case v: return s; #define FT_ERROR_END_LIST } If you use FT_CONFIG_OPTION_USE_MODULE_ERRORS , error_code should be replaced with FT_ERROR_BASE(error_code) in the last example. FT_Error_String \u00b6 Defined in FT_ERRORS_H (freetype/fterrors.h). FT_EXPORT( const char * ) FT_Error_String ( FT_Error error_code ); FT_END_HEADER # endif /* FT_ERR_PROTOS_DEFINED */ # endif /* FT_INCLUDE_ERR_PROTOS */ # endif /* !(FTERRORS_H_ && __FTERRORS_H__) */ /* END */ Retrieve the description of a valid FreeType error code. input error_code A valid FreeType error code. return A C string or NULL , if any error occurred. note FreeType has to be compiled with FT_CONFIG_OPTION_ERROR_STRINGS or FT_DEBUG_LEVEL_ERROR to get meaningful descriptions. \u2018error_string\u2019 will be NULL otherwise. Module identification will be ignored: strcmp ( FT_Error_String ( FT_Err_Unknown_File_Format ), FT_Error_String ( BDF_Err_Unknown_File_Format ) ) == 0 ;","title":"Error Enumerations"},{"location":"ft2-error_enumerations.html#error-enumerations","text":"","title":"Error Enumerations"},{"location":"ft2-error_enumerations.html#synopsis","text":"The header file fterrors.h (which is automatically included by freetype.h defines the handling of FreeType's enumeration constants. It can also be used to generate error message strings with a small macro trick explained below. Error Formats The configuration macro FT_CONFIG_OPTION_USE_MODULE_ERRORS can be defined in ftoption.h in order to make the higher byte indicate the module where the error has happened (this is not compatible with standard builds of FreeType 2, however). See the file ftmoderr.h for more details. Error Message Strings Error definitions are set up with special macros that allow client applications to build a table of error message strings. The strings are not included in a normal build of FreeType 2 to save space (most client applications do not use them). To do so, you have to define the following macros before including this file. FT_ERROR_START_LIST This macro is called before anything else to define the start of the error list. It is followed by several FT_ERROR_DEF calls. FT_ERROR_DEF( e, v, s ) This macro is called to define one single error. \u2018e\u2019 is the error code identifier (e.g., Invalid_Argument ), \u2018v\u2019 is the error's numerical value, and \u2018s\u2019 is the corresponding error string. FT_ERROR_END_LIST This macro ends the list. Additionally, you have to undefine FTERRORS_H_ before #including this file. Here is a simple example. #undef FTERRORS_H_ #define FT_ERRORDEF( e, v, s ) { e, s }, #define FT_ERROR_START_LIST { #define FT_ERROR_END_LIST { 0, NULL } }; const struct { int err_code; const char* err_msg; } ft_errors[] = #include <freetype/fterrors.h> An alternative to using an array is a switch statement. #undef FTERRORS_H_ #define FT_ERROR_START_LIST switch ( error_code ) { #define FT_ERRORDEF( e, v, s ) case v: return s; #define FT_ERROR_END_LIST } If you use FT_CONFIG_OPTION_USE_MODULE_ERRORS , error_code should be replaced with FT_ERROR_BASE(error_code) in the last example.","title":"Synopsis"},{"location":"ft2-error_enumerations.html#ft_error_string","text":"Defined in FT_ERRORS_H (freetype/fterrors.h). FT_EXPORT( const char * ) FT_Error_String ( FT_Error error_code ); FT_END_HEADER # endif /* FT_ERR_PROTOS_DEFINED */ # endif /* FT_INCLUDE_ERR_PROTOS */ # endif /* !(FTERRORS_H_ && __FTERRORS_H__) */ /* END */ Retrieve the description of a valid FreeType error code.","title":"FT_Error_String"},{"location":"ft2-font_formats.html","text":"FreeType \u00bb Docs \u00bb Format-Specific API \u00bb Font Formats Font Formats \u00b6 Synopsis \u00b6 The single function in this section can be used to get the font format. Note that this information is not needed normally; however, there are special cases (like in PDF devices) where it is important to differentiate, in spite of FreeType's uniform API. FT_Get_Font_Format \u00b6 Defined in FT_FONT_FORMATS_H (freetype/ftfntfmt.h). FT_EXPORT( const char * ) FT_Get_Font_Format ( FT_Face face ); /* deprecated */ FT_EXPORT( const char * ) FT_Get_X11_Font_Format( FT_Face face ); Return a string describing the format of a given face. Possible values are \u2018TrueType\u2019, \u2018Type 1\u2019, \u2018BDF\u2019, \u2018PCF\u2019, \u2018Type 42\u2019, \u2018CID Type 1\u2019, \u2018CFF\u2019, \u2018PFR\u2019, and \u2018Windows FNT\u2019. The return value is suitable to be used as an X11 FONT_PROPERTY. input face Input face handle. return Font format string. NULL in case of error. note A deprecated name for the same function is FT_Get_X11_Font_Format .","title":"Font Formats"},{"location":"ft2-font_formats.html#font-formats","text":"","title":"Font Formats"},{"location":"ft2-font_formats.html#synopsis","text":"The single function in this section can be used to get the font format. Note that this information is not needed normally; however, there are special cases (like in PDF devices) where it is important to differentiate, in spite of FreeType's uniform API.","title":"Synopsis"},{"location":"ft2-font_formats.html#ft_get_font_format","text":"Defined in FT_FONT_FORMATS_H (freetype/ftfntfmt.h). FT_EXPORT( const char * ) FT_Get_Font_Format ( FT_Face face ); /* deprecated */ FT_EXPORT( const char * ) FT_Get_X11_Font_Format( FT_Face face ); Return a string describing the format of a given face. Possible values are \u2018TrueType\u2019, \u2018Type 1\u2019, \u2018BDF\u2019, \u2018PCF\u2019, \u2018Type 42\u2019, \u2018CID Type 1\u2019, \u2018CFF\u2019, \u2018PFR\u2019, and \u2018Windows FNT\u2019. The return value is suitable to be used as an X11 FONT_PROPERTY.","title":"FT_Get_Font_Format"},{"location":"ft2-gasp_table.html","text":"FreeType \u00bb Docs \u00bb Format-Specific API \u00bb Gasp Table Gasp Table \u00b6 Synopsis \u00b6 The function FT_Get_Gasp can be used to query a TrueType or OpenType font for specific entries in its \u2018gasp\u2019 table, if any. This is mainly useful when implementing native TrueType hinting with the bytecode interpreter to duplicate the Windows text rendering results. FT_GASP_XXX \u00b6 Defined in FT_GASP_H (freetype/ftgasp.h). # define FT_GASP_NO_TABLE -1 # define FT_GASP_DO_GRIDFIT 0x01 # define FT_GASP_DO_GRAY 0x02 # define FT_GASP_SYMMETRIC_GRIDFIT 0x04 # define FT_GASP_SYMMETRIC_SMOOTHING 0x08 A list of values and/or bit-flags returned by the FT_Get_Gasp function. values FT_GASP_NO_TABLE This special value means that there is no GASP table in this face. It is up to the client to decide what to do. FT_GASP_DO_GRIDFIT Grid-fitting and hinting should be performed at the specified ppem. This really means TrueType bytecode interpretation. If this bit is not set, no hinting gets applied. FT_GASP_DO_GRAY Anti-aliased rendering should be performed at the specified ppem. If not set, do monochrome rendering. FT_GASP_SYMMETRIC_SMOOTHING If set, smoothing along multiple axes must be used with ClearType. FT_GASP_SYMMETRIC_GRIDFIT Grid-fitting must be used with ClearType's symmetric smoothing. note The bit-flags FT_GASP_DO_GRIDFIT and FT_GASP_DO_GRAY are to be used for standard font rasterization only. Independently of that, FT_GASP_SYMMETRIC_SMOOTHING and FT_GASP_SYMMETRIC_GRIDFIT are to be used if ClearType is enabled (and FT_GASP_DO_GRIDFIT and FT_GASP_DO_GRAY are consequently ignored). \u2018ClearType\u2019 is Microsoft's implementation of LCD rendering, partly protected by patents. since 2.3.0 FT_Get_Gasp \u00b6 Defined in FT_GASP_H (freetype/ftgasp.h). FT_EXPORT( FT_Int ) FT_Get_Gasp ( FT_Face face, FT_UInt ppem ); For a TrueType or OpenType font file, return the rasterizer behaviour flags from the font's \u2018gasp\u2019 table corresponding to a given character pixel size. input face The source face handle. ppem The vertical character pixel size. return Bit flags (see FT_GASP_XXX ), or FT_GASP_NO_TABLE if there is no \u2018gasp\u2019 table in the face. note If you want to use the MM functionality of OpenType variation fonts (i.e., using FT_Set_Var_Design_Coordinates and friends), call this function after setting an instance since the return values can change. since 2.3.0","title":"Gasp Table"},{"location":"ft2-gasp_table.html#gasp-table","text":"","title":"Gasp Table"},{"location":"ft2-gasp_table.html#synopsis","text":"The function FT_Get_Gasp can be used to query a TrueType or OpenType font for specific entries in its \u2018gasp\u2019 table, if any. This is mainly useful when implementing native TrueType hinting with the bytecode interpreter to duplicate the Windows text rendering results.","title":"Synopsis"},{"location":"ft2-gasp_table.html#ft_gasp_xxx","text":"Defined in FT_GASP_H (freetype/ftgasp.h). # define FT_GASP_NO_TABLE -1 # define FT_GASP_DO_GRIDFIT 0x01 # define FT_GASP_DO_GRAY 0x02 # define FT_GASP_SYMMETRIC_GRIDFIT 0x04 # define FT_GASP_SYMMETRIC_SMOOTHING 0x08 A list of values and/or bit-flags returned by the FT_Get_Gasp function.","title":"FT_GASP_XXX"},{"location":"ft2-gasp_table.html#ft_get_gasp","text":"Defined in FT_GASP_H (freetype/ftgasp.h). FT_EXPORT( FT_Int ) FT_Get_Gasp ( FT_Face face, FT_UInt ppem ); For a TrueType or OpenType font file, return the rasterizer behaviour flags from the font's \u2018gasp\u2019 table corresponding to a given character pixel size.","title":"FT_Get_Gasp"},{"location":"ft2-glyph_management.html","text":"FreeType \u00bb Docs \u00bb Core API \u00bb Glyph Management Glyph Management \u00b6 Synopsis \u00b6 This section contains definitions used to manage glyph data through generic FT_Glyph objects. Each of them can contain a bitmap, a vector outline, or even images in other formats. These objects are detached from FT_Face , contrary to FT_GlyphSlot . FT_Glyph \u00b6 Defined in FT_GLYPH_H (freetype/ftglyph.h). typedef struct FT_GlyphRec_* FT_Glyph ; Handle to an object used to model generic glyph images. It is a pointer to the FT_GlyphRec structure and can contain a glyph bitmap or pointer. note Glyph objects are not owned by the library. You must thus release them manually (through FT_Done_Glyph ) before calling FT_Done_FreeType . FT_GlyphRec \u00b6 Defined in FT_GLYPH_H (freetype/ftglyph.h). typedef struct FT_GlyphRec_ { FT_Library library; const FT_Glyph_Class* clazz; FT_Glyph_Format format; FT_Vector advance; } FT_GlyphRec ; The root glyph structure contains a given glyph image plus its advance width in 16.16 fixed-point format. fields library A handle to the FreeType library object. clazz A pointer to the glyph's class. Private. format The format of the glyph's image. advance A 16.16 vector that gives the glyph's advance width. FT_BitmapGlyph \u00b6 Defined in FT_GLYPH_H (freetype/ftglyph.h). typedef struct FT_BitmapGlyphRec_* FT_BitmapGlyph ; A handle to an object used to model a bitmap glyph image. This is a sub-class of FT_Glyph , and a pointer to FT_BitmapGlyphRec . FT_BitmapGlyphRec \u00b6 Defined in FT_GLYPH_H (freetype/ftglyph.h). typedef struct FT_BitmapGlyphRec_ { FT_GlyphRec root; FT_Int left; FT_Int top; FT_Bitmap bitmap; } FT_BitmapGlyphRec ; A structure used for bitmap glyph images. This really is a \u2018sub-class\u2019 of FT_GlyphRec . fields root The root FT_Glyph fields. left The left-side bearing, i.e., the horizontal distance from the current pen position to the left border of the glyph bitmap. top The top-side bearing, i.e., the vertical distance from the current pen position to the top border of the glyph bitmap. This distance is positive for upwards y! bitmap A descriptor for the bitmap. note You can typecast an FT_Glyph to FT_BitmapGlyph if you have glyph->format == FT_GLYPH_FORMAT_BITMAP . This lets you access the bitmap's contents easily. The corresponding pixel buffer is always owned by FT_BitmapGlyph and is thus created and destroyed with it. FT_OutlineGlyph \u00b6 Defined in FT_GLYPH_H (freetype/ftglyph.h). typedef struct FT_OutlineGlyphRec_* FT_OutlineGlyph ; A handle to an object used to model an outline glyph image. This is a sub-class of FT_Glyph , and a pointer to FT_OutlineGlyphRec . FT_OutlineGlyphRec \u00b6 Defined in FT_GLYPH_H (freetype/ftglyph.h). typedef struct FT_OutlineGlyphRec_ { FT_GlyphRec root; FT_Outline outline; } FT_OutlineGlyphRec ; A structure used for outline (vectorial) glyph images. This really is a \u2018sub-class\u2019 of FT_GlyphRec . fields root The root FT_Glyph fields. outline A descriptor for the outline. note You can typecast an FT_Glyph to FT_OutlineGlyph if you have glyph->format == FT_GLYPH_FORMAT_OUTLINE . This lets you access the outline's content easily. As the outline is extracted from a glyph slot, its coordinates are expressed normally in 26.6 pixels, unless the flag FT_LOAD_NO_SCALE was used in FT_Load_Glyph or FT_Load_Char . The outline's tables are always owned by the object and are destroyed with it. FT_New_Glyph \u00b6 Defined in FT_GLYPH_H (freetype/ftglyph.h). FT_EXPORT( FT_Error ) FT_New_Glyph ( FT_Library library, FT_Glyph_Format format, FT_Glyph *aglyph ); A function used to create a new empty glyph image. Note that the created FT_Glyph object must be released with FT_Done_Glyph . input library A handle to the FreeType library object. format The format of the glyph's image. output aglyph A handle to the glyph object. return FreeType error code. 0 means success. since 2.10 FT_Get_Glyph \u00b6 Defined in FT_GLYPH_H (freetype/ftglyph.h). FT_EXPORT( FT_Error ) FT_Get_Glyph ( FT_GlyphSlot slot, FT_Glyph *aglyph ); A function used to extract a glyph image from a slot. Note that the created FT_Glyph object must be released with FT_Done_Glyph . input slot A handle to the source glyph slot. output aglyph A handle to the glyph object. return FreeType error code. 0 means success. note Because *aglyph->advance.x and *aglyph->advance.y are 16.16 fixed-point numbers, slot->advance.x and slot->advance.y (which are in 26.6 fixed-point format) must be in the range ]-32768;32768[. FT_Glyph_Copy \u00b6 Defined in FT_GLYPH_H (freetype/ftglyph.h). FT_EXPORT( FT_Error ) FT_Glyph_Copy ( FT_Glyph source, FT_Glyph *target ); A function used to copy a glyph image. Note that the created FT_Glyph object must be released with FT_Done_Glyph . input source A handle to the source glyph object. output target A handle to the target glyph object. 0 in case of error. return FreeType error code. 0 means success. FT_Glyph_Transform \u00b6 Defined in FT_GLYPH_H (freetype/ftglyph.h). FT_EXPORT( FT_Error ) FT_Glyph_Transform ( FT_Glyph glyph, FT_Matrix * matrix, FT_Vector * delta ); Transform a glyph image if its format is scalable. inout glyph A handle to the target glyph object. input matrix A pointer to a 2x2 matrix to apply. delta A pointer to a 2d vector to apply. Coordinates are expressed in 1/64th of a pixel. return FreeType error code (if not 0, the glyph format is not scalable). note The 2x2 transformation matrix is also applied to the glyph's advance vector. FT_Glyph_BBox_Mode \u00b6 Defined in FT_GLYPH_H (freetype/ftglyph.h). typedef enum FT_Glyph_BBox_Mode_ { FT_GLYPH_BBOX_UNSCALED = 0, FT_GLYPH_BBOX_SUBPIXELS = 0, FT_GLYPH_BBOX_GRIDFIT = 1, FT_GLYPH_BBOX_TRUNCATE = 2, FT_GLYPH_BBOX_PIXELS = 3 } FT_Glyph_BBox_Mode ; /* these constants are deprecated; use the corresponding */ /* ` FT_Glyph_BBox_Mode ` values instead */ # define ft_glyph_bbox_unscaled FT_GLYPH_BBOX_UNSCALED # define ft_glyph_bbox_subpixels FT_GLYPH_BBOX_SUBPIXELS # define ft_glyph_bbox_gridfit FT_GLYPH_BBOX_GRIDFIT # define ft_glyph_bbox_truncate FT_GLYPH_BBOX_TRUNCATE # define ft_glyph_bbox_pixels FT_GLYPH_BBOX_PIXELS The mode how the values of FT_Glyph_Get_CBox are returned. values FT_GLYPH_BBOX_UNSCALED Return unscaled font units. FT_GLYPH_BBOX_SUBPIXELS Return unfitted 26.6 coordinates. FT_GLYPH_BBOX_GRIDFIT Return grid-fitted 26.6 coordinates. FT_GLYPH_BBOX_TRUNCATE Return coordinates in integer pixels. FT_GLYPH_BBOX_PIXELS Return grid-fitted pixel coordinates. FT_Glyph_Get_CBox \u00b6 Defined in FT_GLYPH_H (freetype/ftglyph.h). FT_EXPORT( void ) FT_Glyph_Get_CBox ( FT_Glyph glyph, FT_UInt bbox_mode, FT_BBox *acbox ); Return a glyph's \u2018control box\u2019. The control box encloses all the outline's points, including Bezier control points. Though it coincides with the exact bounding box for most glyphs, it can be slightly larger in some situations (like when rotating an outline that contains Bezier outside arcs). Computing the control box is very fast, while getting the bounding box can take much more time as it needs to walk over all segments and arcs in the outline. To get the latter, you can use the \u2018ftbbox\u2019 component, which is dedicated to this single task. input glyph A handle to the source glyph object. mode The mode that indicates how to interpret the returned bounding box values. output acbox The glyph coordinate bounding box. Coordinates are expressed in 1/64th of pixels if it is grid-fitted. note Coordinates are relative to the glyph origin, using the y upwards convention. If the glyph has been loaded with FT_LOAD_NO_SCALE , bbox_mode must be set to FT_GLYPH_BBOX_UNSCALED to get unscaled font units in 26.6 pixel format. The value FT_GLYPH_BBOX_SUBPIXELS is another name for this constant. If the font is tricky and the glyph has been loaded with FT_LOAD_NO_SCALE , the resulting CBox is meaningless. To get reasonable values for the CBox it is necessary to load the glyph at a large ppem value (so that the hinting instructions can properly shift and scale the subglyphs), then extracting the CBox, which can be eventually converted back to font units. Note that the maximum coordinates are exclusive, which means that one can compute the width and height of the glyph image (be it in integer or 26.6 pixels) as: width = bbox.xMax - bbox.xMin; height = bbox.yMax - bbox.yMin; Note also that for 26.6 coordinates, if bbox_mode is set to FT_GLYPH_BBOX_GRIDFIT , the coordinates will also be grid-fitted, which corresponds to: bbox.xMin = FLOOR(bbox.xMin); bbox.yMin = FLOOR(bbox.yMin); bbox.xMax = CEILING(bbox.xMax); bbox.yMax = CEILING(bbox.yMax); To get the bbox in pixel coordinates, set bbox_mode to FT_GLYPH_BBOX_TRUNCATE . To get the bbox in grid-fitted pixel coordinates, set bbox_mode to FT_GLYPH_BBOX_PIXELS . FT_Glyph_To_Bitmap \u00b6 Defined in FT_GLYPH_H (freetype/ftglyph.h). FT_EXPORT( FT_Error ) FT_Glyph_To_Bitmap ( FT_Glyph * the_glyph, FT_Render_Mode render_mode, FT_Vector * origin, FT_Bool destroy ); Convert a given glyph object to a bitmap glyph object. inout the_glyph A pointer to a handle to the target glyph. input render_mode An enumeration that describes how the data is rendered. origin A pointer to a vector used to translate the glyph image before rendering. Can be 0 (if no translation). The origin is expressed in 26.6 pixels. destroy A boolean that indicates that the original glyph image should be destroyed by this function. It is never destroyed in case of error. return FreeType error code. 0 means success. note This function does nothing if the glyph format isn't scalable. The glyph image is translated with the origin vector before rendering. The first parameter is a pointer to an FT_Glyph handle, that will be replaced by this function (with newly allocated data). Typically, you would use (omitting error handling): FT_Glyph glyph; FT_BitmapGlyph glyph_bitmap; // load glyph error = FT_Load_Char( face, glyph_index, FT_LOAD_DEFAULT ); // extract glyph image error = FT_Get_Glyph( face->glyph, &glyph ); // convert to a bitmap (default render mode + destroying old) if ( glyph->format != FT_GLYPH_FORMAT_BITMAP ) { error = FT_Glyph_To_Bitmap( &glyph, FT_RENDER_MODE_NORMAL, 0, 1 ); if ( error ) // `glyph' unchanged ... } // access bitmap content by typecasting glyph_bitmap = (FT_BitmapGlyph)glyph; // do funny stuff with it, like blitting/drawing ... // discard glyph image (bitmap or not) FT_Done_Glyph( glyph ); Here is another example, again without error handling: FT_Glyph glyphs[MAX_GLYPHS] ... for ( idx = 0; i < MAX_GLYPHS; i++ ) error = FT_Load_Glyph( face, idx, FT_LOAD_DEFAULT ) || FT_Get_Glyph ( face->glyph, &glyphs[idx] ); ... for ( idx = 0; i < MAX_GLYPHS; i++ ) { FT_Glyph bitmap = glyphs[idx]; ... // after this call, `bitmap' no longer points into // the `glyphs' array (and the old value isn't destroyed) FT_Glyph_To_Bitmap( &bitmap, FT_RENDER_MODE_MONO, 0, 0 ); ... FT_Done_Glyph( bitmap ); } ... for ( idx = 0; i < MAX_GLYPHS; i++ ) FT_Done_Glyph( glyphs[idx] ); FT_Done_Glyph \u00b6 Defined in FT_GLYPH_H (freetype/ftglyph.h). FT_EXPORT( void ) FT_Done_Glyph ( FT_Glyph glyph ); Destroy a given glyph. input glyph A handle to the target glyph object.","title":"Glyph Management"},{"location":"ft2-glyph_management.html#glyph-management","text":"","title":"Glyph Management"},{"location":"ft2-glyph_management.html#synopsis","text":"This section contains definitions used to manage glyph data through generic FT_Glyph objects. Each of them can contain a bitmap, a vector outline, or even images in other formats. These objects are detached from FT_Face , contrary to FT_GlyphSlot .","title":"Synopsis"},{"location":"ft2-glyph_management.html#ft_glyph","text":"Defined in FT_GLYPH_H (freetype/ftglyph.h). typedef struct FT_GlyphRec_* FT_Glyph ; Handle to an object used to model generic glyph images. It is a pointer to the FT_GlyphRec structure and can contain a glyph bitmap or pointer.","title":"FT_Glyph"},{"location":"ft2-glyph_management.html#ft_glyphrec","text":"Defined in FT_GLYPH_H (freetype/ftglyph.h). typedef struct FT_GlyphRec_ { FT_Library library; const FT_Glyph_Class* clazz; FT_Glyph_Format format; FT_Vector advance; } FT_GlyphRec ; The root glyph structure contains a given glyph image plus its advance width in 16.16 fixed-point format.","title":"FT_GlyphRec"},{"location":"ft2-glyph_management.html#ft_bitmapglyph","text":"Defined in FT_GLYPH_H (freetype/ftglyph.h). typedef struct FT_BitmapGlyphRec_* FT_BitmapGlyph ; A handle to an object used to model a bitmap glyph image. This is a sub-class of FT_Glyph , and a pointer to FT_BitmapGlyphRec .","title":"FT_BitmapGlyph"},{"location":"ft2-glyph_management.html#ft_bitmapglyphrec","text":"Defined in FT_GLYPH_H (freetype/ftglyph.h). typedef struct FT_BitmapGlyphRec_ { FT_GlyphRec root; FT_Int left; FT_Int top; FT_Bitmap bitmap; } FT_BitmapGlyphRec ; A structure used for bitmap glyph images. This really is a \u2018sub-class\u2019 of FT_GlyphRec .","title":"FT_BitmapGlyphRec"},{"location":"ft2-glyph_management.html#ft_outlineglyph","text":"Defined in FT_GLYPH_H (freetype/ftglyph.h). typedef struct FT_OutlineGlyphRec_* FT_OutlineGlyph ; A handle to an object used to model an outline glyph image. This is a sub-class of FT_Glyph , and a pointer to FT_OutlineGlyphRec .","title":"FT_OutlineGlyph"},{"location":"ft2-glyph_management.html#ft_outlineglyphrec","text":"Defined in FT_GLYPH_H (freetype/ftglyph.h). typedef struct FT_OutlineGlyphRec_ { FT_GlyphRec root; FT_Outline outline; } FT_OutlineGlyphRec ; A structure used for outline (vectorial) glyph images. This really is a \u2018sub-class\u2019 of FT_GlyphRec .","title":"FT_OutlineGlyphRec"},{"location":"ft2-glyph_management.html#ft_new_glyph","text":"Defined in FT_GLYPH_H (freetype/ftglyph.h). FT_EXPORT( FT_Error ) FT_New_Glyph ( FT_Library library, FT_Glyph_Format format, FT_Glyph *aglyph ); A function used to create a new empty glyph image. Note that the created FT_Glyph object must be released with FT_Done_Glyph .","title":"FT_New_Glyph"},{"location":"ft2-glyph_management.html#ft_get_glyph","text":"Defined in FT_GLYPH_H (freetype/ftglyph.h). FT_EXPORT( FT_Error ) FT_Get_Glyph ( FT_GlyphSlot slot, FT_Glyph *aglyph ); A function used to extract a glyph image from a slot. Note that the created FT_Glyph object must be released with FT_Done_Glyph .","title":"FT_Get_Glyph"},{"location":"ft2-glyph_management.html#ft_glyph_copy","text":"Defined in FT_GLYPH_H (freetype/ftglyph.h). FT_EXPORT( FT_Error ) FT_Glyph_Copy ( FT_Glyph source, FT_Glyph *target ); A function used to copy a glyph image. Note that the created FT_Glyph object must be released with FT_Done_Glyph .","title":"FT_Glyph_Copy"},{"location":"ft2-glyph_management.html#ft_glyph_transform","text":"Defined in FT_GLYPH_H (freetype/ftglyph.h). FT_EXPORT( FT_Error ) FT_Glyph_Transform ( FT_Glyph glyph, FT_Matrix * matrix, FT_Vector * delta ); Transform a glyph image if its format is scalable.","title":"FT_Glyph_Transform"},{"location":"ft2-glyph_management.html#ft_glyph_bbox_mode","text":"Defined in FT_GLYPH_H (freetype/ftglyph.h). typedef enum FT_Glyph_BBox_Mode_ { FT_GLYPH_BBOX_UNSCALED = 0, FT_GLYPH_BBOX_SUBPIXELS = 0, FT_GLYPH_BBOX_GRIDFIT = 1, FT_GLYPH_BBOX_TRUNCATE = 2, FT_GLYPH_BBOX_PIXELS = 3 } FT_Glyph_BBox_Mode ; /* these constants are deprecated; use the corresponding */ /* ` FT_Glyph_BBox_Mode ` values instead */ # define ft_glyph_bbox_unscaled FT_GLYPH_BBOX_UNSCALED # define ft_glyph_bbox_subpixels FT_GLYPH_BBOX_SUBPIXELS # define ft_glyph_bbox_gridfit FT_GLYPH_BBOX_GRIDFIT # define ft_glyph_bbox_truncate FT_GLYPH_BBOX_TRUNCATE # define ft_glyph_bbox_pixels FT_GLYPH_BBOX_PIXELS The mode how the values of FT_Glyph_Get_CBox are returned.","title":"FT_Glyph_BBox_Mode"},{"location":"ft2-glyph_management.html#ft_glyph_get_cbox","text":"Defined in FT_GLYPH_H (freetype/ftglyph.h). FT_EXPORT( void ) FT_Glyph_Get_CBox ( FT_Glyph glyph, FT_UInt bbox_mode, FT_BBox *acbox ); Return a glyph's \u2018control box\u2019. The control box encloses all the outline's points, including Bezier control points. Though it coincides with the exact bounding box for most glyphs, it can be slightly larger in some situations (like when rotating an outline that contains Bezier outside arcs). Computing the control box is very fast, while getting the bounding box can take much more time as it needs to walk over all segments and arcs in the outline. To get the latter, you can use the \u2018ftbbox\u2019 component, which is dedicated to this single task.","title":"FT_Glyph_Get_CBox"},{"location":"ft2-glyph_management.html#ft_glyph_to_bitmap","text":"Defined in FT_GLYPH_H (freetype/ftglyph.h). FT_EXPORT( FT_Error ) FT_Glyph_To_Bitmap ( FT_Glyph * the_glyph, FT_Render_Mode render_mode, FT_Vector * origin, FT_Bool destroy ); Convert a given glyph object to a bitmap glyph object.","title":"FT_Glyph_To_Bitmap"},{"location":"ft2-glyph_management.html#ft_done_glyph","text":"Defined in FT_GLYPH_H (freetype/ftglyph.h). FT_EXPORT( void ) FT_Done_Glyph ( FT_Glyph glyph ); Destroy a given glyph.","title":"FT_Done_Glyph"},{"location":"ft2-glyph_stroker.html","text":"FreeType \u00bb Docs \u00bb Support API \u00bb Glyph Stroker Glyph Stroker \u00b6 Synopsis \u00b6 This component generates stroked outlines of a given vectorial glyph. It also allows you to retrieve the \u2018outside\u2019 and/or the \u2018inside\u2019 borders of the stroke. This can be useful to generate \u2018bordered\u2019 glyph, i.e., glyphs displayed with a colored (and anti-aliased) border around their shape. FT_Stroker \u00b6 Defined in FT_STROKER_H (freetype/ftstroke.h). typedef struct FT_StrokerRec_* FT_Stroker ; Opaque handle to a path stroker object. FT_Stroker_LineJoin \u00b6 Defined in FT_STROKER_H (freetype/ftstroke.h). typedef enum FT_Stroker_LineJoin_ { FT_STROKER_LINEJOIN_ROUND = 0, FT_STROKER_LINEJOIN_BEVEL = 1, FT_STROKER_LINEJOIN_MITER_VARIABLE = 2, FT_STROKER_LINEJOIN_MITER = FT_STROKER_LINEJOIN_MITER_VARIABLE , FT_STROKER_LINEJOIN_MITER_FIXED = 3 } FT_Stroker_LineJoin ; These values determine how two joining lines are rendered in a stroker. values FT_STROKER_LINEJOIN_ROUND Used to render rounded line joins. Circular arcs are used to join two lines smoothly. FT_STROKER_LINEJOIN_BEVEL Used to render beveled line joins. The outer corner of the joined lines is filled by enclosing the triangular region of the corner with a straight line between the outer corners of each stroke. FT_STROKER_LINEJOIN_MITER_FIXED Used to render mitered line joins, with fixed bevels if the miter limit is exceeded. The outer edges of the strokes for the two segments are extended until they meet at an angle. A bevel join (see above) is used if the segments meet at too sharp an angle and the outer edges meet beyond a distance corresponding to the meter limit. This prevents long spikes being created. FT_STROKER_LINEJOIN_MITER_FIXED generates a miter line join as used in PostScript and PDF. FT_STROKER_LINEJOIN_MITER_VARIABLE FT_STROKER_LINEJOIN_MITER Used to render mitered line joins, with variable bevels if the miter limit is exceeded. The intersection of the strokes is clipped perpendicularly to the bisector, at a distance corresponding to the miter limit. This prevents long spikes being created. FT_STROKER_LINEJOIN_MITER_VARIABLE generates a mitered line join as used in XPS. FT_STROKER_LINEJOIN_MITER is an alias for FT_STROKER_LINEJOIN_MITER_VARIABLE , retained for backward compatibility. FT_Stroker_LineCap \u00b6 Defined in FT_STROKER_H (freetype/ftstroke.h). typedef enum FT_Stroker_LineCap_ { FT_STROKER_LINECAP_BUTT = 0, FT_STROKER_LINECAP_ROUND , FT_STROKER_LINECAP_SQUARE } FT_Stroker_LineCap ; These values determine how the end of opened sub-paths are rendered in a stroke. values FT_STROKER_LINECAP_BUTT The end of lines is rendered as a full stop on the last point itself. FT_STROKER_LINECAP_ROUND The end of lines is rendered as a half-circle around the last point. FT_STROKER_LINECAP_SQUARE The end of lines is rendered as a square around the last point. FT_StrokerBorder \u00b6 Defined in FT_STROKER_H (freetype/ftstroke.h). typedef enum FT_StrokerBorder_ { FT_STROKER_BORDER_LEFT = 0, FT_STROKER_BORDER_RIGHT } FT_StrokerBorder ; These values are used to select a given stroke border in FT_Stroker_GetBorderCounts and FT_Stroker_ExportBorder . values FT_STROKER_BORDER_LEFT Select the left border, relative to the drawing direction. FT_STROKER_BORDER_RIGHT Select the right border, relative to the drawing direction. note Applications are generally interested in the \u2018inside\u2019 and \u2018outside\u2019 borders. However, there is no direct mapping between these and the \u2018left\u2019 and \u2018right\u2019 ones, since this really depends on the glyph's drawing orientation, which varies between font formats. You can however use FT_Outline_GetInsideBorder and FT_Outline_GetOutsideBorder to get these. FT_Outline_GetInsideBorder \u00b6 Defined in FT_STROKER_H (freetype/ftstroke.h). FT_EXPORT( FT_StrokerBorder ) FT_Outline_GetInsideBorder ( FT_Outline * outline ); Retrieve the FT_StrokerBorder value corresponding to the \u2018inside\u2019 borders of a given outline. input outline The source outline handle. return The border index. FT_STROKER_BORDER_RIGHT for empty or invalid outlines. FT_Outline_GetOutsideBorder \u00b6 Defined in FT_STROKER_H (freetype/ftstroke.h). FT_EXPORT( FT_StrokerBorder ) FT_Outline_GetOutsideBorder ( FT_Outline * outline ); Retrieve the FT_StrokerBorder value corresponding to the \u2018outside\u2019 borders of a given outline. input outline The source outline handle. return The border index. FT_STROKER_BORDER_LEFT for empty or invalid outlines. FT_Glyph_Stroke \u00b6 Defined in FT_STROKER_H (freetype/ftstroke.h). FT_EXPORT( FT_Error ) FT_Glyph_Stroke ( FT_Glyph *pglyph, FT_Stroker stroker, FT_Bool destroy ); Stroke a given outline glyph object with a given stroker. inout pglyph Source glyph handle on input, new glyph handle on output. input stroker A stroker handle. destroy A Boolean. If 1, the source glyph object is destroyed on success. return FreeType error code. 0 means success. note The source glyph is untouched in case of error. Adding stroke may yield a significantly wider and taller glyph depending on how large of a radius was used to stroke the glyph. You may need to manually adjust horizontal and vertical advance amounts to account for this added size. FT_Glyph_StrokeBorder \u00b6 Defined in FT_STROKER_H (freetype/ftstroke.h). FT_EXPORT( FT_Error ) FT_Glyph_StrokeBorder ( FT_Glyph *pglyph, FT_Stroker stroker, FT_Bool inside, FT_Bool destroy ); Stroke a given outline glyph object with a given stroker, but only return either its inside or outside border. inout pglyph Source glyph handle on input, new glyph handle on output. input stroker A stroker handle. inside A Boolean. If 1, return the inside border, otherwise the outside border. destroy A Boolean. If 1, the source glyph object is destroyed on success. return FreeType error code. 0 means success. note The source glyph is untouched in case of error. Adding stroke may yield a significantly wider and taller glyph depending on how large of a radius was used to stroke the glyph. You may need to manually adjust horizontal and vertical advance amounts to account for this added size. FT_Stroker_New \u00b6 Defined in FT_STROKER_H (freetype/ftstroke.h). FT_EXPORT( FT_Error ) FT_Stroker_New ( FT_Library library, FT_Stroker *astroker ); Create a new stroker object. input library FreeType library handle. output astroker A new stroker object handle. NULL in case of error. return FreeType error code. 0 means success. FT_Stroker_Set \u00b6 Defined in FT_STROKER_H (freetype/ftstroke.h). FT_EXPORT( void ) FT_Stroker_Set ( FT_Stroker stroker, FT_Fixed radius, FT_Stroker_LineCap line_cap, FT_Stroker_LineJoin line_join, FT_Fixed miter_limit ); Reset a stroker object's attributes. input stroker The target stroker handle. radius The border radius. line_cap The line cap style. line_join The line join style. miter_limit The maximum reciprocal sine of half-angle at the miter join, expressed as 16.16 fixed point value. note The radius is expressed in the same units as the outline coordinates. The miter_limit multiplied by the radius gives the maximum size of a miter spike, at which it is clipped for FT_STROKER_LINEJOIN_MITER_VARIABLE or replaced with a bevel join for FT_STROKER_LINEJOIN_MITER_FIXED . This function calls FT_Stroker_Rewind automatically. FT_Stroker_Rewind \u00b6 Defined in FT_STROKER_H (freetype/ftstroke.h). FT_EXPORT( void ) FT_Stroker_Rewind ( FT_Stroker stroker ); Reset a stroker object without changing its attributes. You should call this function before beginning a new series of calls to FT_Stroker_BeginSubPath or FT_Stroker_EndSubPath . input stroker The target stroker handle. FT_Stroker_ParseOutline \u00b6 Defined in FT_STROKER_H (freetype/ftstroke.h). FT_EXPORT( FT_Error ) FT_Stroker_ParseOutline ( FT_Stroker stroker, FT_Outline * outline, FT_Bool opened ); A convenience function used to parse a whole outline with the stroker. The resulting outline(s) can be retrieved later by functions like FT_Stroker_GetCounts and FT_Stroker_Export . input stroker The target stroker handle. outline The source outline. opened A boolean. If 1, the outline is treated as an open path instead of a closed one. return FreeType error code. 0 means success. note If opened is 0 (the default), the outline is treated as a closed path, and the stroker generates two distinct \u2018border\u2019 outlines. If opened is 1, the outline is processed as an open path, and the stroker generates a single \u2018stroke\u2019 outline. This function calls FT_Stroker_Rewind automatically. FT_Stroker_Done \u00b6 Defined in FT_STROKER_H (freetype/ftstroke.h). FT_EXPORT( void ) FT_Stroker_Done ( FT_Stroker stroker ); Destroy a stroker object. input stroker A stroker handle. Can be NULL . FT_Stroker_BeginSubPath \u00b6 Defined in FT_STROKER_H (freetype/ftstroke.h). FT_EXPORT( FT_Error ) FT_Stroker_BeginSubPath ( FT_Stroker stroker, FT_Vector * to, FT_Bool open ); Start a new sub-path in the stroker. input stroker The target stroker handle. to A pointer to the start vector. open A boolean. If 1, the sub-path is treated as an open one. return FreeType error code. 0 means success. note This function is useful when you need to stroke a path that is not stored as an FT_Outline object. FT_Stroker_EndSubPath \u00b6 Defined in FT_STROKER_H (freetype/ftstroke.h). FT_EXPORT( FT_Error ) FT_Stroker_EndSubPath ( FT_Stroker stroker ); Close the current sub-path in the stroker. input stroker The target stroker handle. return FreeType error code. 0 means success. note You should call this function after FT_Stroker_BeginSubPath . If the subpath was not \u2018opened\u2019, this function \u2018draws\u2019 a single line segment to the start position when needed. FT_Stroker_LineTo \u00b6 Defined in FT_STROKER_H (freetype/ftstroke.h). FT_EXPORT( FT_Error ) FT_Stroker_LineTo ( FT_Stroker stroker, FT_Vector * to ); \u2018Draw\u2019 a single line segment in the stroker's current sub-path, from the last position. input stroker The target stroker handle. to A pointer to the destination point. return FreeType error code. 0 means success. note You should call this function between FT_Stroker_BeginSubPath and FT_Stroker_EndSubPath . FT_Stroker_ConicTo \u00b6 Defined in FT_STROKER_H (freetype/ftstroke.h). FT_EXPORT( FT_Error ) FT_Stroker_ConicTo ( FT_Stroker stroker, FT_Vector * control, FT_Vector * to ); \u2018Draw\u2019 a single quadratic Bezier in the stroker's current sub-path, from the last position. input stroker The target stroker handle. control A pointer to a Bezier control point. to A pointer to the destination point. return FreeType error code. 0 means success. note You should call this function between FT_Stroker_BeginSubPath and FT_Stroker_EndSubPath . FT_Stroker_CubicTo \u00b6 Defined in FT_STROKER_H (freetype/ftstroke.h). FT_EXPORT( FT_Error ) FT_Stroker_CubicTo ( FT_Stroker stroker, FT_Vector * control1, FT_Vector * control2, FT_Vector * to ); \u2018Draw\u2019 a single cubic Bezier in the stroker's current sub-path, from the last position. input stroker The target stroker handle. control1 A pointer to the first Bezier control point. control2 A pointer to second Bezier control point. to A pointer to the destination point. return FreeType error code. 0 means success. note You should call this function between FT_Stroker_BeginSubPath and FT_Stroker_EndSubPath . FT_Stroker_GetBorderCounts \u00b6 Defined in FT_STROKER_H (freetype/ftstroke.h). FT_EXPORT( FT_Error ) FT_Stroker_GetBorderCounts ( FT_Stroker stroker, FT_StrokerBorder border, FT_UInt *anum_points, FT_UInt *anum_contours ); Call this function once you have finished parsing your paths with the stroker. It returns the number of points and contours necessary to export one of the \u2018border\u2019 or \u2018stroke\u2019 outlines generated by the stroker. input stroker The target stroker handle. border The border index. output anum_points The number of points. anum_contours The number of contours. return FreeType error code. 0 means success. note When an outline, or a sub-path, is \u2018closed\u2019, the stroker generates two independent \u2018border\u2019 outlines, named \u2018left\u2019 and \u2018right\u2019. When the outline, or a sub-path, is \u2018opened\u2019, the stroker merges the \u2018border\u2019 outlines with caps. The \u2018left\u2019 border receives all points, while the \u2018right\u2019 border becomes empty. Use the function FT_Stroker_GetCounts instead if you want to retrieve the counts associated to both borders. FT_Stroker_ExportBorder \u00b6 Defined in FT_STROKER_H (freetype/ftstroke.h). FT_EXPORT( void ) FT_Stroker_ExportBorder ( FT_Stroker stroker, FT_StrokerBorder border, FT_Outline * outline ); Call this function after FT_Stroker_GetBorderCounts to export the corresponding border to your own FT_Outline structure. Note that this function appends the border points and contours to your outline, but does not try to resize its arrays. input stroker The target stroker handle. border The border index. outline The target outline handle. note Always call this function after FT_Stroker_GetBorderCounts to get sure that there is enough room in your FT_Outline object to receive all new data. When an outline, or a sub-path, is \u2018closed\u2019, the stroker generates two independent \u2018border\u2019 outlines, named \u2018left\u2019 and \u2018right\u2019. When the outline, or a sub-path, is \u2018opened\u2019, the stroker merges the \u2018border\u2019 outlines with caps. The \u2018left\u2019 border receives all points, while the \u2018right\u2019 border becomes empty. Use the function FT_Stroker_Export instead if you want to retrieve all borders at once. FT_Stroker_GetCounts \u00b6 Defined in FT_STROKER_H (freetype/ftstroke.h). FT_EXPORT( FT_Error ) FT_Stroker_GetCounts ( FT_Stroker stroker, FT_UInt *anum_points, FT_UInt *anum_contours ); Call this function once you have finished parsing your paths with the stroker. It returns the number of points and contours necessary to export all points/borders from the stroked outline/path. input stroker The target stroker handle. output anum_points The number of points. anum_contours The number of contours. return FreeType error code. 0 means success. FT_Stroker_Export \u00b6 Defined in FT_STROKER_H (freetype/ftstroke.h). FT_EXPORT( void ) FT_Stroker_Export ( FT_Stroker stroker, FT_Outline * outline ); Call this function after FT_Stroker_GetBorderCounts to export all borders to your own FT_Outline structure. Note that this function appends the border points and contours to your outline, but does not try to resize its arrays. input stroker The target stroker handle. outline The target outline handle.","title":"Glyph Stroker"},{"location":"ft2-glyph_stroker.html#glyph-stroker","text":"","title":"Glyph Stroker"},{"location":"ft2-glyph_stroker.html#synopsis","text":"This component generates stroked outlines of a given vectorial glyph. It also allows you to retrieve the \u2018outside\u2019 and/or the \u2018inside\u2019 borders of the stroke. This can be useful to generate \u2018bordered\u2019 glyph, i.e., glyphs displayed with a colored (and anti-aliased) border around their shape.","title":"Synopsis"},{"location":"ft2-glyph_stroker.html#ft_stroker","text":"Defined in FT_STROKER_H (freetype/ftstroke.h). typedef struct FT_StrokerRec_* FT_Stroker ; Opaque handle to a path stroker object.","title":"FT_Stroker"},{"location":"ft2-glyph_stroker.html#ft_stroker_linejoin","text":"Defined in FT_STROKER_H (freetype/ftstroke.h). typedef enum FT_Stroker_LineJoin_ { FT_STROKER_LINEJOIN_ROUND = 0, FT_STROKER_LINEJOIN_BEVEL = 1, FT_STROKER_LINEJOIN_MITER_VARIABLE = 2, FT_STROKER_LINEJOIN_MITER = FT_STROKER_LINEJOIN_MITER_VARIABLE , FT_STROKER_LINEJOIN_MITER_FIXED = 3 } FT_Stroker_LineJoin ; These values determine how two joining lines are rendered in a stroker.","title":"FT_Stroker_LineJoin"},{"location":"ft2-glyph_stroker.html#ft_stroker_linecap","text":"Defined in FT_STROKER_H (freetype/ftstroke.h). typedef enum FT_Stroker_LineCap_ { FT_STROKER_LINECAP_BUTT = 0, FT_STROKER_LINECAP_ROUND , FT_STROKER_LINECAP_SQUARE } FT_Stroker_LineCap ; These values determine how the end of opened sub-paths are rendered in a stroke.","title":"FT_Stroker_LineCap"},{"location":"ft2-glyph_stroker.html#ft_strokerborder","text":"Defined in FT_STROKER_H (freetype/ftstroke.h). typedef enum FT_StrokerBorder_ { FT_STROKER_BORDER_LEFT = 0, FT_STROKER_BORDER_RIGHT } FT_StrokerBorder ; These values are used to select a given stroke border in FT_Stroker_GetBorderCounts and FT_Stroker_ExportBorder .","title":"FT_StrokerBorder"},{"location":"ft2-glyph_stroker.html#ft_outline_getinsideborder","text":"Defined in FT_STROKER_H (freetype/ftstroke.h). FT_EXPORT( FT_StrokerBorder ) FT_Outline_GetInsideBorder ( FT_Outline * outline ); Retrieve the FT_StrokerBorder value corresponding to the \u2018inside\u2019 borders of a given outline.","title":"FT_Outline_GetInsideBorder"},{"location":"ft2-glyph_stroker.html#ft_outline_getoutsideborder","text":"Defined in FT_STROKER_H (freetype/ftstroke.h). FT_EXPORT( FT_StrokerBorder ) FT_Outline_GetOutsideBorder ( FT_Outline * outline ); Retrieve the FT_StrokerBorder value corresponding to the \u2018outside\u2019 borders of a given outline.","title":"FT_Outline_GetOutsideBorder"},{"location":"ft2-glyph_stroker.html#ft_glyph_stroke","text":"Defined in FT_STROKER_H (freetype/ftstroke.h). FT_EXPORT( FT_Error ) FT_Glyph_Stroke ( FT_Glyph *pglyph, FT_Stroker stroker, FT_Bool destroy ); Stroke a given outline glyph object with a given stroker.","title":"FT_Glyph_Stroke"},{"location":"ft2-glyph_stroker.html#ft_glyph_strokeborder","text":"Defined in FT_STROKER_H (freetype/ftstroke.h). FT_EXPORT( FT_Error ) FT_Glyph_StrokeBorder ( FT_Glyph *pglyph, FT_Stroker stroker, FT_Bool inside, FT_Bool destroy ); Stroke a given outline glyph object with a given stroker, but only return either its inside or outside border.","title":"FT_Glyph_StrokeBorder"},{"location":"ft2-glyph_stroker.html#ft_stroker_new","text":"Defined in FT_STROKER_H (freetype/ftstroke.h). FT_EXPORT( FT_Error ) FT_Stroker_New ( FT_Library library, FT_Stroker *astroker ); Create a new stroker object.","title":"FT_Stroker_New"},{"location":"ft2-glyph_stroker.html#ft_stroker_set","text":"Defined in FT_STROKER_H (freetype/ftstroke.h). FT_EXPORT( void ) FT_Stroker_Set ( FT_Stroker stroker, FT_Fixed radius, FT_Stroker_LineCap line_cap, FT_Stroker_LineJoin line_join, FT_Fixed miter_limit ); Reset a stroker object's attributes.","title":"FT_Stroker_Set"},{"location":"ft2-glyph_stroker.html#ft_stroker_rewind","text":"Defined in FT_STROKER_H (freetype/ftstroke.h). FT_EXPORT( void ) FT_Stroker_Rewind ( FT_Stroker stroker ); Reset a stroker object without changing its attributes. You should call this function before beginning a new series of calls to FT_Stroker_BeginSubPath or FT_Stroker_EndSubPath .","title":"FT_Stroker_Rewind"},{"location":"ft2-glyph_stroker.html#ft_stroker_parseoutline","text":"Defined in FT_STROKER_H (freetype/ftstroke.h). FT_EXPORT( FT_Error ) FT_Stroker_ParseOutline ( FT_Stroker stroker, FT_Outline * outline, FT_Bool opened ); A convenience function used to parse a whole outline with the stroker. The resulting outline(s) can be retrieved later by functions like FT_Stroker_GetCounts and FT_Stroker_Export .","title":"FT_Stroker_ParseOutline"},{"location":"ft2-glyph_stroker.html#ft_stroker_done","text":"Defined in FT_STROKER_H (freetype/ftstroke.h). FT_EXPORT( void ) FT_Stroker_Done ( FT_Stroker stroker ); Destroy a stroker object.","title":"FT_Stroker_Done"},{"location":"ft2-glyph_stroker.html#ft_stroker_beginsubpath","text":"Defined in FT_STROKER_H (freetype/ftstroke.h). FT_EXPORT( FT_Error ) FT_Stroker_BeginSubPath ( FT_Stroker stroker, FT_Vector * to, FT_Bool open ); Start a new sub-path in the stroker.","title":"FT_Stroker_BeginSubPath"},{"location":"ft2-glyph_stroker.html#ft_stroker_endsubpath","text":"Defined in FT_STROKER_H (freetype/ftstroke.h). FT_EXPORT( FT_Error ) FT_Stroker_EndSubPath ( FT_Stroker stroker ); Close the current sub-path in the stroker.","title":"FT_Stroker_EndSubPath"},{"location":"ft2-glyph_stroker.html#ft_stroker_lineto","text":"Defined in FT_STROKER_H (freetype/ftstroke.h). FT_EXPORT( FT_Error ) FT_Stroker_LineTo ( FT_Stroker stroker, FT_Vector * to ); \u2018Draw\u2019 a single line segment in the stroker's current sub-path, from the last position.","title":"FT_Stroker_LineTo"},{"location":"ft2-glyph_stroker.html#ft_stroker_conicto","text":"Defined in FT_STROKER_H (freetype/ftstroke.h). FT_EXPORT( FT_Error ) FT_Stroker_ConicTo ( FT_Stroker stroker, FT_Vector * control, FT_Vector * to ); \u2018Draw\u2019 a single quadratic Bezier in the stroker's current sub-path, from the last position.","title":"FT_Stroker_ConicTo"},{"location":"ft2-glyph_stroker.html#ft_stroker_cubicto","text":"Defined in FT_STROKER_H (freetype/ftstroke.h). FT_EXPORT( FT_Error ) FT_Stroker_CubicTo ( FT_Stroker stroker, FT_Vector * control1, FT_Vector * control2, FT_Vector * to ); \u2018Draw\u2019 a single cubic Bezier in the stroker's current sub-path, from the last position.","title":"FT_Stroker_CubicTo"},{"location":"ft2-glyph_stroker.html#ft_stroker_getbordercounts","text":"Defined in FT_STROKER_H (freetype/ftstroke.h). FT_EXPORT( FT_Error ) FT_Stroker_GetBorderCounts ( FT_Stroker stroker, FT_StrokerBorder border, FT_UInt *anum_points, FT_UInt *anum_contours ); Call this function once you have finished parsing your paths with the stroker. It returns the number of points and contours necessary to export one of the \u2018border\u2019 or \u2018stroke\u2019 outlines generated by the stroker.","title":"FT_Stroker_GetBorderCounts"},{"location":"ft2-glyph_stroker.html#ft_stroker_exportborder","text":"Defined in FT_STROKER_H (freetype/ftstroke.h). FT_EXPORT( void ) FT_Stroker_ExportBorder ( FT_Stroker stroker, FT_StrokerBorder border, FT_Outline * outline ); Call this function after FT_Stroker_GetBorderCounts to export the corresponding border to your own FT_Outline structure. Note that this function appends the border points and contours to your outline, but does not try to resize its arrays.","title":"FT_Stroker_ExportBorder"},{"location":"ft2-glyph_stroker.html#ft_stroker_getcounts","text":"Defined in FT_STROKER_H (freetype/ftstroke.h). FT_EXPORT( FT_Error ) FT_Stroker_GetCounts ( FT_Stroker stroker, FT_UInt *anum_points, FT_UInt *anum_contours ); Call this function once you have finished parsing your paths with the stroker. It returns the number of points and contours necessary to export all points/borders from the stroked outline/path.","title":"FT_Stroker_GetCounts"},{"location":"ft2-glyph_stroker.html#ft_stroker_export","text":"Defined in FT_STROKER_H (freetype/ftstroke.h). FT_EXPORT( void ) FT_Stroker_Export ( FT_Stroker stroker, FT_Outline * outline ); Call this function after FT_Stroker_GetBorderCounts to export all borders to your own FT_Outline structure. Note that this function appends the border points and contours to your outline, but does not try to resize its arrays.","title":"FT_Stroker_Export"},{"location":"ft2-glyph_variants.html","text":"FreeType \u00bb Docs \u00bb Core API \u00bb Unicode Variation Sequences Unicode Variation Sequences \u00b6 Synopsis \u00b6 Many characters, especially for CJK scripts, have variant forms. They are a sort of grey area somewhere between being totally irrelevant and semantically distinct; for this reason, the Unicode consortium decided to introduce Variation Sequences (VS), consisting of a Unicode base character and a variation selector instead of further extending the already huge number of characters. Unicode maintains two different sets, namely \u2018Standardized Variation Sequences\u2019 and registered \u2018Ideographic Variation Sequences\u2019 (IVS), collected in the \u2018Ideographic Variation Database\u2019 (IVD). https://unicode.org/Public/UCD/latest/ucd/StandardizedVariants.txt https://unicode.org/reports/tr37/ https://unicode.org/ivd/ To date (January 2017), the character with the most ideographic variations is U+9089, having 32 such IVS. Three Mongolian Variation Selectors have the values U+180B-U+180D; 256 generic Variation Selectors are encoded in the ranges U+FE00-U+FE0F and U+E0100-U+E01EF. IVS currently use Variation Selectors from the range U+E0100-U+E01EF only. A VS consists of the base character value followed by a single Variation Selector. For example, to get the first variation of U+9089, you have to write the character sequence U+9089 U+E0100 . Adobe and MS decided to support both standardized and ideographic VS with a new cmap subtable (format 14). It is an odd subtable because it is not a mapping of input code points to glyphs, but contains lists of all variations supported by the font. A variation may be either \u2018default\u2019 or \u2018non-default\u2019 for a given font. A default variation is the one you will get for that code point if you look it up in the standard Unicode cmap. A non-default variation is a different glyph. FT_Face_GetCharVariantIndex \u00b6 Defined in FT_FREETYPE_H (freetype/freetype.h). FT_EXPORT( FT_UInt ) FT_Face_GetCharVariantIndex ( FT_Face face, FT_ULong charcode, FT_ULong variantSelector ); Return the glyph index of a given character code as modified by the variation selector. input face A handle to the source face object. charcode The character code point in Unicode. variantSelector The Unicode code point of the variation selector. return The glyph index. 0 means either \u2018undefined character code\u2019, or \u2018undefined selector code\u2019, or \u2018no variation selector cmap subtable\u2019, or \u2018current CharMap is not Unicode\u2019. note If you use FreeType to manipulate the contents of font files directly, be aware that the glyph index returned by this function doesn't always correspond to the internal indices used within the file. This is done to ensure that value 0 always corresponds to the \u2018missing glyph\u2019. This function is only meaningful if a) the font has a variation selector cmap sub table, and b) the current charmap has a Unicode encoding. since 2.3.6 FT_Face_GetCharVariantIsDefault \u00b6 Defined in FT_FREETYPE_H (freetype/freetype.h). FT_EXPORT( FT_Int ) FT_Face_GetCharVariantIsDefault ( FT_Face face, FT_ULong charcode, FT_ULong variantSelector ); Check whether this variation of this Unicode character is the one to be found in the charmap. input face A handle to the source face object. charcode The character codepoint in Unicode. variantSelector The Unicode codepoint of the variation selector. return 1 if found in the standard (Unicode) cmap, 0 if found in the variation selector cmap, or -1 if it is not a variation. note This function is only meaningful if the font has a variation selector cmap subtable. since 2.3.6 FT_Face_GetVariantSelectors \u00b6 Defined in FT_FREETYPE_H (freetype/freetype.h). FT_EXPORT( FT_UInt32 * ) FT_Face_GetVariantSelectors ( FT_Face face ); Return a zero-terminated list of Unicode variation selectors found in the font. input face A handle to the source face object. return A pointer to an array of selector code points, or NULL if there is no valid variation selector cmap subtable. note The last item in the array is 0; the array is owned by the FT_Face object but can be overwritten or released on the next call to a FreeType function. since 2.3.6 FT_Face_GetVariantsOfChar \u00b6 Defined in FT_FREETYPE_H (freetype/freetype.h). FT_EXPORT( FT_UInt32 * ) FT_Face_GetVariantsOfChar ( FT_Face face, FT_ULong charcode ); Return a zero-terminated list of Unicode variation selectors found for the specified character code. input face A handle to the source face object. charcode The character codepoint in Unicode. return A pointer to an array of variation selector code points that are active for the given character, or NULL if the corresponding list is empty. note The last item in the array is 0; the array is owned by the FT_Face object but can be overwritten or released on the next call to a FreeType function. since 2.3.6 FT_Face_GetCharsOfVariant \u00b6 Defined in FT_FREETYPE_H (freetype/freetype.h). FT_EXPORT( FT_UInt32 * ) FT_Face_GetCharsOfVariant ( FT_Face face, FT_ULong variantSelector ); Return a zero-terminated list of Unicode character codes found for the specified variation selector. input face A handle to the source face object. variantSelector The variation selector code point in Unicode. return A list of all the code points that are specified by this selector (both default and non-default codes are returned) or NULL if there is no valid cmap or the variation selector is invalid. note The last item in the array is 0; the array is owned by the FT_Face object but can be overwritten or released on the next call to a FreeType function. since 2.3.6","title":"Unicode Variation Sequences"},{"location":"ft2-glyph_variants.html#unicode-variation-sequences","text":"","title":"Unicode Variation Sequences"},{"location":"ft2-glyph_variants.html#synopsis","text":"Many characters, especially for CJK scripts, have variant forms. They are a sort of grey area somewhere between being totally irrelevant and semantically distinct; for this reason, the Unicode consortium decided to introduce Variation Sequences (VS), consisting of a Unicode base character and a variation selector instead of further extending the already huge number of characters. Unicode maintains two different sets, namely \u2018Standardized Variation Sequences\u2019 and registered \u2018Ideographic Variation Sequences\u2019 (IVS), collected in the \u2018Ideographic Variation Database\u2019 (IVD). https://unicode.org/Public/UCD/latest/ucd/StandardizedVariants.txt https://unicode.org/reports/tr37/ https://unicode.org/ivd/ To date (January 2017), the character with the most ideographic variations is U+9089, having 32 such IVS. Three Mongolian Variation Selectors have the values U+180B-U+180D; 256 generic Variation Selectors are encoded in the ranges U+FE00-U+FE0F and U+E0100-U+E01EF. IVS currently use Variation Selectors from the range U+E0100-U+E01EF only. A VS consists of the base character value followed by a single Variation Selector. For example, to get the first variation of U+9089, you have to write the character sequence U+9089 U+E0100 . Adobe and MS decided to support both standardized and ideographic VS with a new cmap subtable (format 14). It is an odd subtable because it is not a mapping of input code points to glyphs, but contains lists of all variations supported by the font. A variation may be either \u2018default\u2019 or \u2018non-default\u2019 for a given font. A default variation is the one you will get for that code point if you look it up in the standard Unicode cmap. A non-default variation is a different glyph.","title":"Synopsis"},{"location":"ft2-glyph_variants.html#ft_face_getcharvariantindex","text":"Defined in FT_FREETYPE_H (freetype/freetype.h). FT_EXPORT( FT_UInt ) FT_Face_GetCharVariantIndex ( FT_Face face, FT_ULong charcode, FT_ULong variantSelector ); Return the glyph index of a given character code as modified by the variation selector.","title":"FT_Face_GetCharVariantIndex"},{"location":"ft2-glyph_variants.html#ft_face_getcharvariantisdefault","text":"Defined in FT_FREETYPE_H (freetype/freetype.h). FT_EXPORT( FT_Int ) FT_Face_GetCharVariantIsDefault ( FT_Face face, FT_ULong charcode, FT_ULong variantSelector ); Check whether this variation of this Unicode character is the one to be found in the charmap.","title":"FT_Face_GetCharVariantIsDefault"},{"location":"ft2-glyph_variants.html#ft_face_getvariantselectors","text":"Defined in FT_FREETYPE_H (freetype/freetype.h). FT_EXPORT( FT_UInt32 * ) FT_Face_GetVariantSelectors ( FT_Face face ); Return a zero-terminated list of Unicode variation selectors found in the font.","title":"FT_Face_GetVariantSelectors"},{"location":"ft2-glyph_variants.html#ft_face_getvariantsofchar","text":"Defined in FT_FREETYPE_H (freetype/freetype.h). FT_EXPORT( FT_UInt32 * ) FT_Face_GetVariantsOfChar ( FT_Face face, FT_ULong charcode ); Return a zero-terminated list of Unicode variation selectors found for the specified character code.","title":"FT_Face_GetVariantsOfChar"},{"location":"ft2-glyph_variants.html#ft_face_getcharsofvariant","text":"Defined in FT_FREETYPE_H (freetype/freetype.h). FT_EXPORT( FT_UInt32 * ) FT_Face_GetCharsOfVariant ( FT_Face face, FT_ULong variantSelector ); Return a zero-terminated list of Unicode character codes found for the specified variation selector.","title":"FT_Face_GetCharsOfVariant"},{"location":"ft2-gx_validation.html","text":"FreeType \u00bb Docs \u00bb Miscellaneous \u00bb TrueTypeGX/AAT Validation TrueTypeGX/AAT Validation \u00b6 Synopsis \u00b6 This section contains the declaration of functions to validate some TrueTypeGX tables (feat, mort, morx, bsln, just, kern, opbd, trak, prop, lcar). FT_TrueTypeGX_Validate \u00b6 Defined in FT_GX_VALIDATE_H (freetype/ftgxval.h). FT_EXPORT( FT_Error ) FT_TrueTypeGX_Validate ( FT_Face face, FT_UInt validation_flags, FT_Bytes tables[ FT_VALIDATE_GX_LENGTH ], FT_UInt table_length ); Validate various TrueTypeGX tables to assure that all offsets and indices are valid. The idea is that a higher-level library that actually does the text layout can access those tables without error checking (which can be quite time consuming). input face A handle to the input face. validation_flags A bit field that specifies the tables to be validated. See FT_VALIDATE_GXXXX for possible values. table_length The size of the tables array. Normally, FT_VALIDATE_GX_LENGTH should be passed. output tables The array where all validated sfnt tables are stored. The array itself must be allocated by a client. return FreeType error code. 0 means success. note This function only works with TrueTypeGX fonts, returning an error otherwise. After use, the application should deallocate the buffers pointed to by each tables element, by calling FT_TrueTypeGX_Free . A NULL value indicates that the table either doesn't exist in the font, the application hasn't asked for validation, or the validator doesn't have the ability to validate the sfnt table. FT_TrueTypeGX_Free \u00b6 Defined in FT_GX_VALIDATE_H (freetype/ftgxval.h). FT_EXPORT( void ) FT_TrueTypeGX_Free ( FT_Face face, FT_Bytes table ); Free the buffer allocated by TrueTypeGX validator. input face A handle to the input face. table The pointer to the buffer allocated by FT_TrueTypeGX_Validate . note This function must be used to free the buffer allocated by FT_TrueTypeGX_Validate only. FT_ClassicKern_Validate \u00b6 Defined in FT_GX_VALIDATE_H (freetype/ftgxval.h). FT_EXPORT( FT_Error ) FT_ClassicKern_Validate ( FT_Face face, FT_UInt validation_flags, FT_Bytes *ckern_table ); Validate classic (16-bit format) kern table to assure that the offsets and indices are valid. The idea is that a higher-level library that actually does the text layout can access those tables without error checking (which can be quite time consuming). The \u2018kern\u2019 table validator in FT_TrueTypeGX_Validate deals with both the new 32-bit format and the classic 16-bit format, while FT_ClassicKern_Validate only supports the classic 16-bit format. input face A handle to the input face. validation_flags A bit field that specifies the dialect to be validated. See FT_VALIDATE_CKERNXXX for possible values. output ckern_table A pointer to the kern table. return FreeType error code. 0 means success. note After use, the application should deallocate the buffers pointed to by ckern_table , by calling FT_ClassicKern_Free . A NULL value indicates that the table doesn't exist in the font. FT_ClassicKern_Free \u00b6 Defined in FT_GX_VALIDATE_H (freetype/ftgxval.h). FT_EXPORT( void ) FT_ClassicKern_Free ( FT_Face face, FT_Bytes table ); Free the buffer allocated by classic Kern validator. input face A handle to the input face. table The pointer to the buffer that is allocated by FT_ClassicKern_Validate . note This function must be used to free the buffer allocated by FT_ClassicKern_Validate only. FT_VALIDATE_GX_LENGTH \u00b6 Defined in FT_GX_VALIDATE_H (freetype/ftgxval.h). # define FT_VALIDATE_GX_LENGTH ( FT_VALIDATE_GX_LAST_INDEX + 1 ) The number of tables checked in this module. Use it as a parameter for the table-length argument of function FT_TrueTypeGX_Validate . FT_VALIDATE_GXXXX \u00b6 Defined in FT_GX_VALIDATE_H (freetype/ftgxval.h). # define FT_VALIDATE_feat FT_VALIDATE_GX_BITFIELD( feat ) # define FT_VALIDATE_mort FT_VALIDATE_GX_BITFIELD( mort ) # define FT_VALIDATE_morx FT_VALIDATE_GX_BITFIELD( morx ) # define FT_VALIDATE_bsln FT_VALIDATE_GX_BITFIELD( bsln ) # define FT_VALIDATE_just FT_VALIDATE_GX_BITFIELD( just ) # define FT_VALIDATE_kern FT_VALIDATE_GX_BITFIELD( kern ) # define FT_VALIDATE_opbd FT_VALIDATE_GX_BITFIELD( opbd ) # define FT_VALIDATE_trak FT_VALIDATE_GX_BITFIELD( trak ) # define FT_VALIDATE_prop FT_VALIDATE_GX_BITFIELD( prop ) # define FT_VALIDATE_lcar FT_VALIDATE_GX_BITFIELD( lcar ) # define FT_VALIDATE_GX ( FT_VALIDATE_feat | \\ FT_VALIDATE_mort | \\ FT_VALIDATE_morx | \\ FT_VALIDATE_bsln | \\ FT_VALIDATE_just | \\ FT_VALIDATE_kern | \\ FT_VALIDATE_opbd | \\ FT_VALIDATE_trak | \\ FT_VALIDATE_prop | \\ FT_VALIDATE_lcar ) A list of bit-field constants used with FT_TrueTypeGX_Validate to indicate which TrueTypeGX/AAT Type tables should be validated. values FT_VALIDATE_feat Validate \u2018feat\u2019 table. FT_VALIDATE_mort Validate \u2018mort\u2019 table. FT_VALIDATE_morx Validate \u2018morx\u2019 table. FT_VALIDATE_bsln Validate \u2018bsln\u2019 table. FT_VALIDATE_just Validate \u2018just\u2019 table. FT_VALIDATE_kern Validate \u2018kern\u2019 table. FT_VALIDATE_opbd Validate \u2018opbd\u2019 table. FT_VALIDATE_trak Validate \u2018trak\u2019 table. FT_VALIDATE_prop Validate \u2018prop\u2019 table. FT_VALIDATE_lcar Validate \u2018lcar\u2019 table. FT_VALIDATE_GX Validate all TrueTypeGX tables (feat, mort, morx, bsln, just, kern, opbd, trak, prop and lcar). FT_VALIDATE_CKERNXXX \u00b6 Defined in FT_GX_VALIDATE_H (freetype/ftgxval.h). # define FT_VALIDATE_MS ( FT_VALIDATE_GX_START << 0 ) # define FT_VALIDATE_APPLE ( FT_VALIDATE_GX_START << 1 ) # define FT_VALIDATE_CKERN ( FT_VALIDATE_MS | FT_VALIDATE_APPLE ) A list of bit-field constants used with FT_ClassicKern_Validate to indicate the classic kern dialect or dialects. If the selected type doesn't fit, FT_ClassicKern_Validate regards the table as invalid. values FT_VALIDATE_MS Handle the \u2018kern\u2019 table as a classic Microsoft kern table. FT_VALIDATE_APPLE Handle the \u2018kern\u2019 table as a classic Apple kern table. FT_VALIDATE_CKERN Handle the \u2018kern\u2019 as either classic Apple or Microsoft kern table.","title":"TrueTypeGX/AAT Validation"},{"location":"ft2-gx_validation.html#truetypegxaat-validation","text":"","title":"TrueTypeGX/AAT Validation"},{"location":"ft2-gx_validation.html#synopsis","text":"This section contains the declaration of functions to validate some TrueTypeGX tables (feat, mort, morx, bsln, just, kern, opbd, trak, prop, lcar).","title":"Synopsis"},{"location":"ft2-gx_validation.html#ft_truetypegx_validate","text":"Defined in FT_GX_VALIDATE_H (freetype/ftgxval.h). FT_EXPORT( FT_Error ) FT_TrueTypeGX_Validate ( FT_Face face, FT_UInt validation_flags, FT_Bytes tables[ FT_VALIDATE_GX_LENGTH ], FT_UInt table_length ); Validate various TrueTypeGX tables to assure that all offsets and indices are valid. The idea is that a higher-level library that actually does the text layout can access those tables without error checking (which can be quite time consuming).","title":"FT_TrueTypeGX_Validate"},{"location":"ft2-gx_validation.html#ft_truetypegx_free","text":"Defined in FT_GX_VALIDATE_H (freetype/ftgxval.h). FT_EXPORT( void ) FT_TrueTypeGX_Free ( FT_Face face, FT_Bytes table ); Free the buffer allocated by TrueTypeGX validator.","title":"FT_TrueTypeGX_Free"},{"location":"ft2-gx_validation.html#ft_classickern_validate","text":"Defined in FT_GX_VALIDATE_H (freetype/ftgxval.h). FT_EXPORT( FT_Error ) FT_ClassicKern_Validate ( FT_Face face, FT_UInt validation_flags, FT_Bytes *ckern_table ); Validate classic (16-bit format) kern table to assure that the offsets and indices are valid. The idea is that a higher-level library that actually does the text layout can access those tables without error checking (which can be quite time consuming). The \u2018kern\u2019 table validator in FT_TrueTypeGX_Validate deals with both the new 32-bit format and the classic 16-bit format, while FT_ClassicKern_Validate only supports the classic 16-bit format.","title":"FT_ClassicKern_Validate"},{"location":"ft2-gx_validation.html#ft_classickern_free","text":"Defined in FT_GX_VALIDATE_H (freetype/ftgxval.h). FT_EXPORT( void ) FT_ClassicKern_Free ( FT_Face face, FT_Bytes table ); Free the buffer allocated by classic Kern validator.","title":"FT_ClassicKern_Free"},{"location":"ft2-gx_validation.html#ft_validate_gx_length","text":"Defined in FT_GX_VALIDATE_H (freetype/ftgxval.h). # define FT_VALIDATE_GX_LENGTH ( FT_VALIDATE_GX_LAST_INDEX + 1 ) The number of tables checked in this module. Use it as a parameter for the table-length argument of function FT_TrueTypeGX_Validate .","title":"FT_VALIDATE_GX_LENGTH"},{"location":"ft2-gx_validation.html#ft_validate_gxxxx","text":"Defined in FT_GX_VALIDATE_H (freetype/ftgxval.h). # define FT_VALIDATE_feat FT_VALIDATE_GX_BITFIELD( feat ) # define FT_VALIDATE_mort FT_VALIDATE_GX_BITFIELD( mort ) # define FT_VALIDATE_morx FT_VALIDATE_GX_BITFIELD( morx ) # define FT_VALIDATE_bsln FT_VALIDATE_GX_BITFIELD( bsln ) # define FT_VALIDATE_just FT_VALIDATE_GX_BITFIELD( just ) # define FT_VALIDATE_kern FT_VALIDATE_GX_BITFIELD( kern ) # define FT_VALIDATE_opbd FT_VALIDATE_GX_BITFIELD( opbd ) # define FT_VALIDATE_trak FT_VALIDATE_GX_BITFIELD( trak ) # define FT_VALIDATE_prop FT_VALIDATE_GX_BITFIELD( prop ) # define FT_VALIDATE_lcar FT_VALIDATE_GX_BITFIELD( lcar ) # define FT_VALIDATE_GX ( FT_VALIDATE_feat | \\ FT_VALIDATE_mort | \\ FT_VALIDATE_morx | \\ FT_VALIDATE_bsln | \\ FT_VALIDATE_just | \\ FT_VALIDATE_kern | \\ FT_VALIDATE_opbd | \\ FT_VALIDATE_trak | \\ FT_VALIDATE_prop | \\ FT_VALIDATE_lcar ) A list of bit-field constants used with FT_TrueTypeGX_Validate to indicate which TrueTypeGX/AAT Type tables should be validated.","title":"FT_VALIDATE_GXXXX"},{"location":"ft2-gx_validation.html#ft_validate_ckernxxx","text":"Defined in FT_GX_VALIDATE_H (freetype/ftgxval.h). # define FT_VALIDATE_MS ( FT_VALIDATE_GX_START << 0 ) # define FT_VALIDATE_APPLE ( FT_VALIDATE_GX_START << 1 ) # define FT_VALIDATE_CKERN ( FT_VALIDATE_MS | FT_VALIDATE_APPLE ) A list of bit-field constants used with FT_ClassicKern_Validate to indicate the classic kern dialect or dialects. If the selected type doesn't fit, FT_ClassicKern_Validate regards the table as invalid.","title":"FT_VALIDATE_CKERNXXX"},{"location":"ft2-gzip.html","text":"FreeType \u00bb Docs \u00bb Support API \u00bb GZIP Streams GZIP Streams \u00b6 Synopsis \u00b6 In certain builds of the library, gzip compression recognition is automatically handled when calling FT_New_Face or FT_Open_Face . This means that if no font driver is capable of handling the raw compressed file, the library will try to open a gzipped stream from it and re-open the face with it. The stream implementation is very basic and resets the decompression process each time seeking backwards is needed within the stream, which significantly undermines the performance. This section contains the declaration of Gzip-specific functions. FT_Stream_OpenGzip \u00b6 Defined in FT_GZIP_H (freetype/ftgzip.h). FT_EXPORT( FT_Error ) FT_Stream_OpenGzip ( FT_Stream stream, FT_Stream source ); Open a new stream to parse gzip-compressed font files. This is mainly used to support the compressed *.pcf.gz fonts that come with XFree86. input stream The target embedding stream. source The source stream. return FreeType error code. 0 means success. note The source stream must be opened before calling this function. Calling the internal function FT_Stream_Close on the new stream will not call FT_Stream_Close on the source stream. None of the stream objects will be released to the heap. This function may return FT_Err_Unimplemented_Feature if your build of FreeType was not compiled with zlib support. FT_Gzip_Uncompress \u00b6 Defined in FT_GZIP_H (freetype/ftgzip.h). FT_EXPORT( FT_Error ) FT_Gzip_Uncompress ( FT_Memory memory, FT_Byte * output, FT_ULong * output_len, const FT_Byte * input, FT_ULong input_len ); Decompress a zipped input buffer into an output buffer. This function is modeled after zlib's uncompress function. input memory A FreeType memory handle. input The input buffer. input_len The length of the input buffer. output output The output buffer. inout output_len Before calling the function, this is the total size of the output buffer, which must be large enough to hold the entire uncompressed data (so the size of the uncompressed data must be known in advance). After calling the function, output_len is the size of the used data in output . return FreeType error code. 0 means success. note This function may return FT_Err_Unimplemented_Feature if your build of FreeType was not compiled with zlib support. since 2.5.1","title":"GZIP Streams"},{"location":"ft2-gzip.html#gzip-streams","text":"","title":"GZIP Streams"},{"location":"ft2-gzip.html#synopsis","text":"In certain builds of the library, gzip compression recognition is automatically handled when calling FT_New_Face or FT_Open_Face . This means that if no font driver is capable of handling the raw compressed file, the library will try to open a gzipped stream from it and re-open the face with it. The stream implementation is very basic and resets the decompression process each time seeking backwards is needed within the stream, which significantly undermines the performance. This section contains the declaration of Gzip-specific functions.","title":"Synopsis"},{"location":"ft2-gzip.html#ft_stream_opengzip","text":"Defined in FT_GZIP_H (freetype/ftgzip.h). FT_EXPORT( FT_Error ) FT_Stream_OpenGzip ( FT_Stream stream, FT_Stream source ); Open a new stream to parse gzip-compressed font files. This is mainly used to support the compressed *.pcf.gz fonts that come with XFree86.","title":"FT_Stream_OpenGzip"},{"location":"ft2-gzip.html#ft_gzip_uncompress","text":"Defined in FT_GZIP_H (freetype/ftgzip.h). FT_EXPORT( FT_Error ) FT_Gzip_Uncompress ( FT_Memory memory, FT_Byte * output, FT_ULong * output_len, const FT_Byte * input, FT_ULong input_len ); Decompress a zipped input buffer into an output buffer. This function is modeled after zlib's uncompress function.","title":"FT_Gzip_Uncompress"},{"location":"ft2-header_file_macros.html","text":"FreeType \u00bb Docs \u00bb Core API \u00bb Header File Macros Header File Macros \u00b6 Synopsis \u00b6 In addition to the normal scheme of including header files like #include <freetype/freetype.h> #include <freetype/ftmm.h> #include <freetype/ftglyph.h> it is possible to used named macros instead. They can be used directly in #include statements as in #include FT_FREETYPE_H #include FT_MULTIPLE_MASTERS_H #include FT_GLYPH_H These macros were introduced to overcome the infamous 8.3 naming rule required by DOS (and FT_MULTIPLE_MASTERS_H is a lot more meaningful than ftmm.h ). FT_CONFIG_CONFIG_H \u00b6 # ifndef FT_CONFIG_CONFIG_H # define FT_CONFIG_CONFIG_H <freetype/config/ftconfig.h> # endif A macro used in #include statements to name the file containing FreeType 2 configuration data. FT_CONFIG_STANDARD_LIBRARY_H \u00b6 # ifndef FT_CONFIG_STANDARD_LIBRARY_H # define FT_CONFIG_STANDARD_LIBRARY_H <freetype/config/ftstdlib.h> # endif A macro used in #include statements to name the file containing FreeType 2 interface to the standard C library functions. FT_CONFIG_OPTIONS_H \u00b6 # ifndef FT_CONFIG_OPTIONS_H # define FT_CONFIG_OPTIONS_H <freetype/config/ftoption.h> # endif A macro used in #include statements to name the file containing FreeType 2 project-specific configuration options. FT_CONFIG_MODULES_H \u00b6 # ifndef FT_CONFIG_MODULES_H # define FT_CONFIG_MODULES_H <freetype/config/ftmodule.h> # endif A macro used in #include statements to name the file containing the list of FreeType 2 modules that are statically linked to new library instances in FT_Init_FreeType . FT_FREETYPE_H \u00b6 # define FT_FREETYPE_H <freetype/freetype.h> A macro used in #include statements to name the file containing the base FreeType 2 API. FT_ERRORS_H \u00b6 # define FT_ERRORS_H <freetype/fterrors.h> A macro used in #include statements to name the file containing the list of FreeType 2 error codes (and messages). It is included by FT_FREETYPE_H . FT_MODULE_ERRORS_H \u00b6 # define FT_MODULE_ERRORS_H <freetype/ftmoderr.h> A macro used in #include statements to name the file containing the list of FreeType 2 module error offsets (and messages). FT_SYSTEM_H \u00b6 # define FT_SYSTEM_H <freetype/ftsystem.h> A macro used in #include statements to name the file containing the FreeType 2 interface to low-level operations (i.e., memory management and stream i/o). It is included by FT_FREETYPE_H . FT_IMAGE_H \u00b6 # define FT_IMAGE_H <freetype/ftimage.h> A macro used in #include statements to name the file containing type definitions related to glyph images (i.e., bitmaps, outlines, scan-converter parameters). It is included by FT_FREETYPE_H . FT_TYPES_H \u00b6 # define FT_TYPES_H <freetype/fttypes.h> A macro used in #include statements to name the file containing the basic data types defined by FreeType 2. It is included by FT_FREETYPE_H . FT_LIST_H \u00b6 # define FT_LIST_H <freetype/ftlist.h> A macro used in #include statements to name the file containing the list management API of FreeType 2. (Most applications will never need to include this file.) FT_OUTLINE_H \u00b6 # define FT_OUTLINE_H <freetype/ftoutln.h> A macro used in #include statements to name the file containing the scalable outline management API of FreeType 2. FT_SIZES_H \u00b6 # define FT_SIZES_H <freetype/ftsizes.h> A macro used in #include statements to name the file containing the API which manages multiple FT_Size objects per face. FT_MODULE_H \u00b6 # define FT_MODULE_H <freetype/ftmodapi.h> A macro used in #include statements to name the file containing the module management API of FreeType 2. FT_RENDER_H \u00b6 # define FT_RENDER_H <freetype/ftrender.h> A macro used in #include statements to name the file containing the renderer module management API of FreeType 2. FT_DRIVER_H \u00b6 # define FT_DRIVER_H <freetype/ftdriver.h> A macro used in #include statements to name the file containing structures and macros related to the driver modules. FT_AUTOHINTER_H \u00b6 # define FT_AUTOHINTER_H FT_DRIVER_H A macro used in #include statements to name the file containing structures and macros related to the auto-hinting module. Deprecated since version 2.9; use FT_DRIVER_H instead. FT_CFF_DRIVER_H \u00b6 # define FT_CFF_DRIVER_H FT_DRIVER_H A macro used in #include statements to name the file containing structures and macros related to the CFF driver module. Deprecated since version 2.9; use FT_DRIVER_H instead. FT_TRUETYPE_DRIVER_H \u00b6 # define FT_TRUETYPE_DRIVER_H FT_DRIVER_H A macro used in #include statements to name the file containing structures and macros related to the TrueType driver module. Deprecated since version 2.9; use FT_DRIVER_H instead. FT_PCF_DRIVER_H \u00b6 # define FT_PCF_DRIVER_H FT_DRIVER_H A macro used in #include statements to name the file containing structures and macros related to the PCF driver module. Deprecated since version 2.9; use FT_DRIVER_H instead. FT_TYPE1_TABLES_H \u00b6 # define FT_TYPE1_TABLES_H <freetype/t1tables.h> A macro used in #include statements to name the file containing the types and API specific to the Type 1 format. FT_TRUETYPE_IDS_H \u00b6 # define FT_TRUETYPE_IDS_H <freetype/ttnameid.h> A macro used in #include statements to name the file containing the enumeration values which identify name strings, languages, encodings, etc. This file really contains a large set of constant macro definitions, taken from the TrueType and OpenType specifications. FT_TRUETYPE_TABLES_H \u00b6 # define FT_TRUETYPE_TABLES_H <freetype/tttables.h> A macro used in #include statements to name the file containing the types and API specific to the TrueType (as well as OpenType) format. FT_TRUETYPE_TAGS_H \u00b6 # define FT_TRUETYPE_TAGS_H <freetype/tttags.h> A macro used in #include statements to name the file containing the definitions of TrueType four-byte \u2018tags\u2019 which identify blocks in SFNT-based font formats (i.e., TrueType and OpenType). FT_BDF_H \u00b6 # define FT_BDF_H <freetype/ftbdf.h> A macro used in #include statements to name the file containing the definitions of an API which accesses BDF-specific strings from a face. FT_CID_H \u00b6 # define FT_CID_H <freetype/ftcid.h> A macro used in #include statements to name the file containing the definitions of an API which access CID font information from a face. FT_GZIP_H \u00b6 # define FT_GZIP_H <freetype/ftgzip.h> A macro used in #include statements to name the file containing the definitions of an API which supports gzip-compressed files. FT_LZW_H \u00b6 # define FT_LZW_H <freetype/ftlzw.h> A macro used in #include statements to name the file containing the definitions of an API which supports LZW-compressed files. FT_BZIP2_H \u00b6 # define FT_BZIP2_H <freetype/ftbzip2.h> A macro used in #include statements to name the file containing the definitions of an API which supports bzip2-compressed files. FT_WINFONTS_H \u00b6 # define FT_WINFONTS_H <freetype/ftwinfnt.h> A macro used in #include statements to name the file containing the definitions of an API which supports Windows FNT files. FT_GLYPH_H \u00b6 # define FT_GLYPH_H <freetype/ftglyph.h> A macro used in #include statements to name the file containing the API of the optional glyph management component. FT_BITMAP_H \u00b6 # define FT_BITMAP_H <freetype/ftbitmap.h> A macro used in #include statements to name the file containing the API of the optional bitmap conversion component. FT_BBOX_H \u00b6 # define FT_BBOX_H <freetype/ftbbox.h> A macro used in #include statements to name the file containing the API of the optional exact bounding box computation routines. FT_CACHE_H \u00b6 # define FT_CACHE_H <freetype/ftcache.h> A macro used in #include statements to name the file containing the API of the optional FreeType 2 cache sub-system. FT_MAC_H \u00b6 # define FT_MAC_H <freetype/ftmac.h> A macro used in #include statements to name the file containing the Macintosh-specific FreeType 2 API. The latter is used to access fonts embedded in resource forks. This header file must be explicitly included by client applications compiled on the Mac (note that the base API still works though). FT_MULTIPLE_MASTERS_H \u00b6 # define FT_MULTIPLE_MASTERS_H <freetype/ftmm.h> A macro used in #include statements to name the file containing the optional multiple-masters management API of FreeType 2. FT_SFNT_NAMES_H \u00b6 # define FT_SFNT_NAMES_H <freetype/ftsnames.h> A macro used in #include statements to name the file containing the optional FreeType 2 API which accesses embedded \u2018name\u2019 strings in SFNT-based font formats (i.e., TrueType and OpenType). FT_OPENTYPE_VALIDATE_H \u00b6 # define FT_OPENTYPE_VALIDATE_H <freetype/ftotval.h> A macro used in #include statements to name the file containing the optional FreeType 2 API which validates OpenType tables (\u2018BASE\u2019, \u2018GDEF\u2019, \u2018GPOS\u2019, \u2018GSUB\u2019, \u2018JSTF\u2019). FT_GX_VALIDATE_H \u00b6 # define FT_GX_VALIDATE_H <freetype/ftgxval.h> A macro used in #include statements to name the file containing the optional FreeType 2 API which validates TrueTypeGX/AAT tables (\u2018feat\u2019, \u2018mort\u2019, \u2018morx\u2019, \u2018bsln\u2019, \u2018just\u2019, \u2018kern\u2019, \u2018opbd\u2019, \u2018trak\u2019, \u2018prop\u2019). FT_PFR_H \u00b6 # define FT_PFR_H <freetype/ftpfr.h> A macro used in #include statements to name the file containing the FreeType 2 API which accesses PFR-specific data. FT_STROKER_H \u00b6 # define FT_STROKER_H <freetype/ftstroke.h> A macro used in #include statements to name the file containing the FreeType 2 API which provides functions to stroke outline paths. FT_SYNTHESIS_H \u00b6 # define FT_SYNTHESIS_H <freetype/ftsynth.h> A macro used in #include statements to name the file containing the FreeType 2 API which performs artificial obliquing and emboldening. FT_FONT_FORMATS_H \u00b6 # define FT_FONT_FORMATS_H <freetype/ftfntfmt.h> /* deprecated */ # define FT_XFREE86_H FT_FONT_FORMATS_H A macro used in #include statements to name the file containing the FreeType 2 API which provides functions specific to font formats. FT_TRIGONOMETRY_H \u00b6 # define FT_TRIGONOMETRY_H <freetype/fttrigon.h> A macro used in #include statements to name the file containing the FreeType 2 API which performs trigonometric computations (e.g., cosines and arc tangents). FT_LCD_FILTER_H \u00b6 # define FT_LCD_FILTER_H <freetype/ftlcdfil.h> A macro used in #include statements to name the file containing the FreeType 2 API which performs color filtering for subpixel rendering. FT_INCREMENTAL_H \u00b6 # define FT_INCREMENTAL_H <freetype/ftincrem.h> A macro used in #include statements to name the file containing the FreeType 2 API which performs incremental glyph loading. FT_GASP_H \u00b6 # define FT_GASP_H <freetype/ftgasp.h> A macro used in #include statements to name the file containing the FreeType 2 API which returns entries from the TrueType GASP table. FT_ADVANCES_H \u00b6 # define FT_ADVANCES_H <freetype/ftadvanc.h> A macro used in #include statements to name the file containing the FreeType 2 API which returns individual and ranged glyph advances. FT_COLOR_H \u00b6 # define FT_COLOR_H <freetype/ftcolor.h> A macro used in #include statements to name the file containing the FreeType 2 API which handles the OpenType \u2018CPAL\u2019 table.","title":"Header File Macros"},{"location":"ft2-header_file_macros.html#header-file-macros","text":"","title":"Header File Macros"},{"location":"ft2-header_file_macros.html#synopsis","text":"In addition to the normal scheme of including header files like #include <freetype/freetype.h> #include <freetype/ftmm.h> #include <freetype/ftglyph.h> it is possible to used named macros instead. They can be used directly in #include statements as in #include FT_FREETYPE_H #include FT_MULTIPLE_MASTERS_H #include FT_GLYPH_H These macros were introduced to overcome the infamous 8.3 naming rule required by DOS (and FT_MULTIPLE_MASTERS_H is a lot more meaningful than ftmm.h ).","title":"Synopsis"},{"location":"ft2-header_file_macros.html#ft_config_config_h","text":"# ifndef FT_CONFIG_CONFIG_H # define FT_CONFIG_CONFIG_H <freetype/config/ftconfig.h> # endif A macro used in #include statements to name the file containing FreeType 2 configuration data.","title":"FT_CONFIG_CONFIG_H"},{"location":"ft2-header_file_macros.html#ft_config_standard_library_h","text":"# ifndef FT_CONFIG_STANDARD_LIBRARY_H # define FT_CONFIG_STANDARD_LIBRARY_H <freetype/config/ftstdlib.h> # endif A macro used in #include statements to name the file containing FreeType 2 interface to the standard C library functions.","title":"FT_CONFIG_STANDARD_LIBRARY_H"},{"location":"ft2-header_file_macros.html#ft_config_options_h","text":"# ifndef FT_CONFIG_OPTIONS_H # define FT_CONFIG_OPTIONS_H <freetype/config/ftoption.h> # endif A macro used in #include statements to name the file containing FreeType 2 project-specific configuration options.","title":"FT_CONFIG_OPTIONS_H"},{"location":"ft2-header_file_macros.html#ft_config_modules_h","text":"# ifndef FT_CONFIG_MODULES_H # define FT_CONFIG_MODULES_H <freetype/config/ftmodule.h> # endif A macro used in #include statements to name the file containing the list of FreeType 2 modules that are statically linked to new library instances in FT_Init_FreeType .","title":"FT_CONFIG_MODULES_H"},{"location":"ft2-header_file_macros.html#ft_freetype_h","text":"# define FT_FREETYPE_H <freetype/freetype.h> A macro used in #include statements to name the file containing the base FreeType 2 API.","title":"FT_FREETYPE_H"},{"location":"ft2-header_file_macros.html#ft_errors_h","text":"# define FT_ERRORS_H <freetype/fterrors.h> A macro used in #include statements to name the file containing the list of FreeType 2 error codes (and messages). It is included by FT_FREETYPE_H .","title":"FT_ERRORS_H"},{"location":"ft2-header_file_macros.html#ft_module_errors_h","text":"# define FT_MODULE_ERRORS_H <freetype/ftmoderr.h> A macro used in #include statements to name the file containing the list of FreeType 2 module error offsets (and messages).","title":"FT_MODULE_ERRORS_H"},{"location":"ft2-header_file_macros.html#ft_system_h","text":"# define FT_SYSTEM_H <freetype/ftsystem.h> A macro used in #include statements to name the file containing the FreeType 2 interface to low-level operations (i.e., memory management and stream i/o). It is included by FT_FREETYPE_H .","title":"FT_SYSTEM_H"},{"location":"ft2-header_file_macros.html#ft_image_h","text":"# define FT_IMAGE_H <freetype/ftimage.h> A macro used in #include statements to name the file containing type definitions related to glyph images (i.e., bitmaps, outlines, scan-converter parameters). It is included by FT_FREETYPE_H .","title":"FT_IMAGE_H"},{"location":"ft2-header_file_macros.html#ft_types_h","text":"# define FT_TYPES_H <freetype/fttypes.h> A macro used in #include statements to name the file containing the basic data types defined by FreeType 2. It is included by FT_FREETYPE_H .","title":"FT_TYPES_H"},{"location":"ft2-header_file_macros.html#ft_list_h","text":"# define FT_LIST_H <freetype/ftlist.h> A macro used in #include statements to name the file containing the list management API of FreeType 2. (Most applications will never need to include this file.)","title":"FT_LIST_H"},{"location":"ft2-header_file_macros.html#ft_outline_h","text":"# define FT_OUTLINE_H <freetype/ftoutln.h> A macro used in #include statements to name the file containing the scalable outline management API of FreeType 2.","title":"FT_OUTLINE_H"},{"location":"ft2-header_file_macros.html#ft_sizes_h","text":"# define FT_SIZES_H <freetype/ftsizes.h> A macro used in #include statements to name the file containing the API which manages multiple FT_Size objects per face.","title":"FT_SIZES_H"},{"location":"ft2-header_file_macros.html#ft_module_h","text":"# define FT_MODULE_H <freetype/ftmodapi.h> A macro used in #include statements to name the file containing the module management API of FreeType 2.","title":"FT_MODULE_H"},{"location":"ft2-header_file_macros.html#ft_render_h","text":"# define FT_RENDER_H <freetype/ftrender.h> A macro used in #include statements to name the file containing the renderer module management API of FreeType 2.","title":"FT_RENDER_H"},{"location":"ft2-header_file_macros.html#ft_driver_h","text":"# define FT_DRIVER_H <freetype/ftdriver.h> A macro used in #include statements to name the file containing structures and macros related to the driver modules.","title":"FT_DRIVER_H"},{"location":"ft2-header_file_macros.html#ft_autohinter_h","text":"# define FT_AUTOHINTER_H FT_DRIVER_H A macro used in #include statements to name the file containing structures and macros related to the auto-hinting module. Deprecated since version 2.9; use FT_DRIVER_H instead.","title":"FT_AUTOHINTER_H"},{"location":"ft2-header_file_macros.html#ft_cff_driver_h","text":"# define FT_CFF_DRIVER_H FT_DRIVER_H A macro used in #include statements to name the file containing structures and macros related to the CFF driver module. Deprecated since version 2.9; use FT_DRIVER_H instead.","title":"FT_CFF_DRIVER_H"},{"location":"ft2-header_file_macros.html#ft_truetype_driver_h","text":"# define FT_TRUETYPE_DRIVER_H FT_DRIVER_H A macro used in #include statements to name the file containing structures and macros related to the TrueType driver module. Deprecated since version 2.9; use FT_DRIVER_H instead.","title":"FT_TRUETYPE_DRIVER_H"},{"location":"ft2-header_file_macros.html#ft_pcf_driver_h","text":"# define FT_PCF_DRIVER_H FT_DRIVER_H A macro used in #include statements to name the file containing structures and macros related to the PCF driver module. Deprecated since version 2.9; use FT_DRIVER_H instead.","title":"FT_PCF_DRIVER_H"},{"location":"ft2-header_file_macros.html#ft_type1_tables_h","text":"# define FT_TYPE1_TABLES_H <freetype/t1tables.h> A macro used in #include statements to name the file containing the types and API specific to the Type 1 format.","title":"FT_TYPE1_TABLES_H"},{"location":"ft2-header_file_macros.html#ft_truetype_ids_h","text":"# define FT_TRUETYPE_IDS_H <freetype/ttnameid.h> A macro used in #include statements to name the file containing the enumeration values which identify name strings, languages, encodings, etc. This file really contains a large set of constant macro definitions, taken from the TrueType and OpenType specifications.","title":"FT_TRUETYPE_IDS_H"},{"location":"ft2-header_file_macros.html#ft_truetype_tables_h","text":"# define FT_TRUETYPE_TABLES_H <freetype/tttables.h> A macro used in #include statements to name the file containing the types and API specific to the TrueType (as well as OpenType) format.","title":"FT_TRUETYPE_TABLES_H"},{"location":"ft2-header_file_macros.html#ft_truetype_tags_h","text":"# define FT_TRUETYPE_TAGS_H <freetype/tttags.h> A macro used in #include statements to name the file containing the definitions of TrueType four-byte \u2018tags\u2019 which identify blocks in SFNT-based font formats (i.e., TrueType and OpenType).","title":"FT_TRUETYPE_TAGS_H"},{"location":"ft2-header_file_macros.html#ft_bdf_h","text":"# define FT_BDF_H <freetype/ftbdf.h> A macro used in #include statements to name the file containing the definitions of an API which accesses BDF-specific strings from a face.","title":"FT_BDF_H"},{"location":"ft2-header_file_macros.html#ft_cid_h","text":"# define FT_CID_H <freetype/ftcid.h> A macro used in #include statements to name the file containing the definitions of an API which access CID font information from a face.","title":"FT_CID_H"},{"location":"ft2-header_file_macros.html#ft_gzip_h","text":"# define FT_GZIP_H <freetype/ftgzip.h> A macro used in #include statements to name the file containing the definitions of an API which supports gzip-compressed files.","title":"FT_GZIP_H"},{"location":"ft2-header_file_macros.html#ft_lzw_h","text":"# define FT_LZW_H <freetype/ftlzw.h> A macro used in #include statements to name the file containing the definitions of an API which supports LZW-compressed files.","title":"FT_LZW_H"},{"location":"ft2-header_file_macros.html#ft_bzip2_h","text":"# define FT_BZIP2_H <freetype/ftbzip2.h> A macro used in #include statements to name the file containing the definitions of an API which supports bzip2-compressed files.","title":"FT_BZIP2_H"},{"location":"ft2-header_file_macros.html#ft_winfonts_h","text":"# define FT_WINFONTS_H <freetype/ftwinfnt.h> A macro used in #include statements to name the file containing the definitions of an API which supports Windows FNT files.","title":"FT_WINFONTS_H"},{"location":"ft2-header_file_macros.html#ft_glyph_h","text":"# define FT_GLYPH_H <freetype/ftglyph.h> A macro used in #include statements to name the file containing the API of the optional glyph management component.","title":"FT_GLYPH_H"},{"location":"ft2-header_file_macros.html#ft_bitmap_h","text":"# define FT_BITMAP_H <freetype/ftbitmap.h> A macro used in #include statements to name the file containing the API of the optional bitmap conversion component.","title":"FT_BITMAP_H"},{"location":"ft2-header_file_macros.html#ft_bbox_h","text":"# define FT_BBOX_H <freetype/ftbbox.h> A macro used in #include statements to name the file containing the API of the optional exact bounding box computation routines.","title":"FT_BBOX_H"},{"location":"ft2-header_file_macros.html#ft_cache_h","text":"# define FT_CACHE_H <freetype/ftcache.h> A macro used in #include statements to name the file containing the API of the optional FreeType 2 cache sub-system.","title":"FT_CACHE_H"},{"location":"ft2-header_file_macros.html#ft_mac_h","text":"# define FT_MAC_H <freetype/ftmac.h> A macro used in #include statements to name the file containing the Macintosh-specific FreeType 2 API. The latter is used to access fonts embedded in resource forks. This header file must be explicitly included by client applications compiled on the Mac (note that the base API still works though).","title":"FT_MAC_H"},{"location":"ft2-header_file_macros.html#ft_multiple_masters_h","text":"# define FT_MULTIPLE_MASTERS_H <freetype/ftmm.h> A macro used in #include statements to name the file containing the optional multiple-masters management API of FreeType 2.","title":"FT_MULTIPLE_MASTERS_H"},{"location":"ft2-header_file_macros.html#ft_sfnt_names_h","text":"# define FT_SFNT_NAMES_H <freetype/ftsnames.h> A macro used in #include statements to name the file containing the optional FreeType 2 API which accesses embedded \u2018name\u2019 strings in SFNT-based font formats (i.e., TrueType and OpenType).","title":"FT_SFNT_NAMES_H"},{"location":"ft2-header_file_macros.html#ft_opentype_validate_h","text":"# define FT_OPENTYPE_VALIDATE_H <freetype/ftotval.h> A macro used in #include statements to name the file containing the optional FreeType 2 API which validates OpenType tables (\u2018BASE\u2019, \u2018GDEF\u2019, \u2018GPOS\u2019, \u2018GSUB\u2019, \u2018JSTF\u2019).","title":"FT_OPENTYPE_VALIDATE_H"},{"location":"ft2-header_file_macros.html#ft_gx_validate_h","text":"# define FT_GX_VALIDATE_H <freetype/ftgxval.h> A macro used in #include statements to name the file containing the optional FreeType 2 API which validates TrueTypeGX/AAT tables (\u2018feat\u2019, \u2018mort\u2019, \u2018morx\u2019, \u2018bsln\u2019, \u2018just\u2019, \u2018kern\u2019, \u2018opbd\u2019, \u2018trak\u2019, \u2018prop\u2019).","title":"FT_GX_VALIDATE_H"},{"location":"ft2-header_file_macros.html#ft_pfr_h","text":"# define FT_PFR_H <freetype/ftpfr.h> A macro used in #include statements to name the file containing the FreeType 2 API which accesses PFR-specific data.","title":"FT_PFR_H"},{"location":"ft2-header_file_macros.html#ft_stroker_h","text":"# define FT_STROKER_H <freetype/ftstroke.h> A macro used in #include statements to name the file containing the FreeType 2 API which provides functions to stroke outline paths.","title":"FT_STROKER_H"},{"location":"ft2-header_file_macros.html#ft_synthesis_h","text":"# define FT_SYNTHESIS_H <freetype/ftsynth.h> A macro used in #include statements to name the file containing the FreeType 2 API which performs artificial obliquing and emboldening.","title":"FT_SYNTHESIS_H"},{"location":"ft2-header_file_macros.html#ft_font_formats_h","text":"# define FT_FONT_FORMATS_H <freetype/ftfntfmt.h> /* deprecated */ # define FT_XFREE86_H FT_FONT_FORMATS_H A macro used in #include statements to name the file containing the FreeType 2 API which provides functions specific to font formats.","title":"FT_FONT_FORMATS_H"},{"location":"ft2-header_file_macros.html#ft_trigonometry_h","text":"# define FT_TRIGONOMETRY_H <freetype/fttrigon.h> A macro used in #include statements to name the file containing the FreeType 2 API which performs trigonometric computations (e.g., cosines and arc tangents).","title":"FT_TRIGONOMETRY_H"},{"location":"ft2-header_file_macros.html#ft_lcd_filter_h","text":"# define FT_LCD_FILTER_H <freetype/ftlcdfil.h> A macro used in #include statements to name the file containing the FreeType 2 API which performs color filtering for subpixel rendering.","title":"FT_LCD_FILTER_H"},{"location":"ft2-header_file_macros.html#ft_incremental_h","text":"# define FT_INCREMENTAL_H <freetype/ftincrem.h> A macro used in #include statements to name the file containing the FreeType 2 API which performs incremental glyph loading.","title":"FT_INCREMENTAL_H"},{"location":"ft2-header_file_macros.html#ft_gasp_h","text":"# define FT_GASP_H <freetype/ftgasp.h> A macro used in #include statements to name the file containing the FreeType 2 API which returns entries from the TrueType GASP table.","title":"FT_GASP_H"},{"location":"ft2-header_file_macros.html#ft_advances_h","text":"# define FT_ADVANCES_H <freetype/ftadvanc.h> A macro used in #include statements to name the file containing the FreeType 2 API which returns individual and ranged glyph advances.","title":"FT_ADVANCES_H"},{"location":"ft2-header_file_macros.html#ft_color_h","text":"# define FT_COLOR_H <freetype/ftcolor.h> A macro used in #include statements to name the file containing the FreeType 2 API which handles the OpenType \u2018CPAL\u2019 table.","title":"FT_COLOR_H"},{"location":"ft2-header_inclusion.html","text":"FreeType \u00bb Docs \u00bb General Remarks \u00bb FreeType's header inclusion scheme FreeType's header inclusion scheme \u00b6 Synopsis \u00b6 To be as flexible as possible (and for historical reasons), you must load file ft2build.h first before other header files, for example #include <ft2build.h> #include <freetype/freetype.h> #include <freetype/ftoutln.h>","title":"FreeType's header inclusion scheme"},{"location":"ft2-header_inclusion.html#freetypes-header-inclusion-scheme","text":"","title":"FreeType's header inclusion scheme"},{"location":"ft2-header_inclusion.html#synopsis","text":"To be as flexible as possible (and for historical reasons), you must load file ft2build.h first before other header files, for example #include <ft2build.h> #include <freetype/freetype.h> #include <freetype/ftoutln.h>","title":"Synopsis"},{"location":"ft2-incremental.html","text":"FreeType \u00bb Docs \u00bb Miscellaneous \u00bb Incremental Loading Incremental Loading \u00b6 Synopsis \u00b6 This section contains various functions used to perform so-called \u2018incremental\u2019 glyph loading. This is a mode where all glyphs loaded from a given FT_Face are provided by the client application. Apart from that, all other tables are loaded normally from the font file. This mode is useful when FreeType is used within another engine, e.g., a PostScript Imaging Processor. To enable this mode, you must use FT_Open_Face , passing an FT_Parameter with the FT_PARAM_TAG_INCREMENTAL tag and an FT_Incremental_Interface value. See the comments for FT_Incremental_InterfaceRec for an example. FT_Incremental \u00b6 Defined in FT_INCREMENTAL_H (freetype/ftincrem.h). typedef struct FT_IncrementalRec_* FT_Incremental ; An opaque type describing a user-provided object used to implement \u2018incremental\u2019 glyph loading within FreeType. This is used to support embedded fonts in certain environments (e.g., PostScript interpreters), where the glyph data isn't in the font file, or must be overridden by different values. note It is up to client applications to create and implement FT_Incremental objects, as long as they provide implementations for the methods FT_Incremental_GetGlyphDataFunc , FT_Incremental_FreeGlyphDataFunc and FT_Incremental_GetGlyphMetricsFunc . See the description of FT_Incremental_InterfaceRec to understand how to use incremental objects with FreeType. FT_Incremental_MetricsRec \u00b6 Defined in FT_INCREMENTAL_H (freetype/ftincrem.h). typedef struct FT_Incremental_MetricsRec_ { FT_Long bearing_x; FT_Long bearing_y; FT_Long advance; FT_Long advance_v; /* since 2.3.12 */ } FT_Incremental_MetricsRec ; A small structure used to contain the basic glyph metrics returned by the FT_Incremental_GetGlyphMetricsFunc method. fields bearing_x Left bearing, in font units. bearing_y Top bearing, in font units. advance Horizontal component of glyph advance, in font units. advance_v Vertical component of glyph advance, in font units. note These correspond to horizontal or vertical metrics depending on the value of the vertical argument to the function FT_Incremental_GetGlyphMetricsFunc . FT_Incremental_Metrics \u00b6 Defined in FT_INCREMENTAL_H (freetype/ftincrem.h). typedef struct FT_Incremental_MetricsRec_* FT_Incremental_Metrics ; A handle to an FT_Incremental_MetricsRec structure. FT_Incremental_GetGlyphDataFunc \u00b6 Defined in FT_INCREMENTAL_H (freetype/ftincrem.h). typedef FT_Error (* FT_Incremental_GetGlyphDataFunc )( FT_Incremental incremental, FT_UInt glyph_index, FT_Data * adata ); A function called by FreeType to access a given glyph's data bytes during FT_Load_Glyph or FT_Load_Char if incremental loading is enabled. Note that the format of the glyph's data bytes depends on the font file format. For TrueType, it must correspond to the raw bytes within the \u2018glyf\u2019 table. For PostScript formats, it must correspond to the unencrypted charstring bytes, without any lenIV header. It is undefined for any other format. input incremental Handle to an opaque FT_Incremental handle provided by the client application. glyph_index Index of relevant glyph. output adata A structure describing the returned glyph data bytes (which will be accessed as a read-only byte block). return FreeType error code. 0 means success. note If this function returns successfully the method FT_Incremental_FreeGlyphDataFunc will be called later to release the data bytes. Nested calls to FT_Incremental_GetGlyphDataFunc can happen for compound glyphs. FT_Incremental_FreeGlyphDataFunc \u00b6 Defined in FT_INCREMENTAL_H (freetype/ftincrem.h). typedef void (* FT_Incremental_FreeGlyphDataFunc )( FT_Incremental incremental, FT_Data * data ); A function used to release the glyph data bytes returned by a successful call to FT_Incremental_GetGlyphDataFunc . input incremental A handle to an opaque FT_Incremental handle provided by the client application. data A structure describing the glyph data bytes (which will be accessed as a read-only byte block). FT_Incremental_GetGlyphMetricsFunc \u00b6 Defined in FT_INCREMENTAL_H (freetype/ftincrem.h). typedef FT_Error (* FT_Incremental_GetGlyphMetricsFunc ) ( FT_Incremental incremental, FT_UInt glyph_index, FT_Bool vertical, FT_Incremental_MetricsRec *ametrics ); A function used to retrieve the basic metrics of a given glyph index before accessing its data. This is necessary because, in certain formats like TrueType, the metrics are stored in a different place from the glyph images proper. input incremental A handle to an opaque FT_Incremental handle provided by the client application. glyph_index Index of relevant glyph. vertical If true, return vertical metrics. ametrics This parameter is used for both input and output. The original glyph metrics, if any, in font units. If metrics are not available all the values must be set to zero. output ametrics The replacement glyph metrics in font units. FT_Incremental_FuncsRec \u00b6 Defined in FT_INCREMENTAL_H (freetype/ftincrem.h). typedef struct FT_Incremental_FuncsRec_ { FT_Incremental_GetGlyphDataFunc get_glyph_data; FT_Incremental_FreeGlyphDataFunc free_glyph_data; FT_Incremental_GetGlyphMetricsFunc get_glyph_metrics; } FT_Incremental_FuncsRec ; A table of functions for accessing fonts that load data incrementally. Used in FT_Incremental_InterfaceRec . fields get_glyph_data The function to get glyph data. Must not be null. free_glyph_data The function to release glyph data. Must not be null. get_glyph_metrics The function to get glyph metrics. May be null if the font does not provide overriding glyph metrics. FT_Incremental_InterfaceRec \u00b6 Defined in FT_INCREMENTAL_H (freetype/ftincrem.h). typedef struct FT_Incremental_InterfaceRec_ { const FT_Incremental_FuncsRec * funcs; FT_Incremental object; } FT_Incremental_InterfaceRec ; A structure to be used with FT_Open_Face to indicate that the user wants to support incremental glyph loading. You should use it with FT_PARAM_TAG_INCREMENTAL as in the following example: FT_Incremental_InterfaceRec inc_int; FT_Parameter parameter; FT_Open_Args open_args; // set up incremental descriptor inc_int.funcs = my_funcs; inc_int.object = my_object; // set up optional parameter parameter.tag = FT_PARAM_TAG_INCREMENTAL; parameter.data = &inc_int; // set up FT_Open_Args structure open_args.flags = FT_OPEN_PATHNAME | FT_OPEN_PARAMS; open_args.pathname = my_font_pathname; open_args.num_params = 1; open_args.params = &parameter; // we use one optional argument // open the font error = FT_Open_Face( library, &open_args, index, &face ); ... FT_Incremental_Interface \u00b6 Defined in FT_INCREMENTAL_H (freetype/ftincrem.h). typedef FT_Incremental_InterfaceRec * FT_Incremental_Interface ; A pointer to an FT_Incremental_InterfaceRec structure.","title":"Incremental Loading"},{"location":"ft2-incremental.html#incremental-loading","text":"","title":"Incremental Loading"},{"location":"ft2-incremental.html#synopsis","text":"This section contains various functions used to perform so-called \u2018incremental\u2019 glyph loading. This is a mode where all glyphs loaded from a given FT_Face are provided by the client application. Apart from that, all other tables are loaded normally from the font file. This mode is useful when FreeType is used within another engine, e.g., a PostScript Imaging Processor. To enable this mode, you must use FT_Open_Face , passing an FT_Parameter with the FT_PARAM_TAG_INCREMENTAL tag and an FT_Incremental_Interface value. See the comments for FT_Incremental_InterfaceRec for an example.","title":"Synopsis"},{"location":"ft2-incremental.html#ft_incremental","text":"Defined in FT_INCREMENTAL_H (freetype/ftincrem.h). typedef struct FT_IncrementalRec_* FT_Incremental ; An opaque type describing a user-provided object used to implement \u2018incremental\u2019 glyph loading within FreeType. This is used to support embedded fonts in certain environments (e.g., PostScript interpreters), where the glyph data isn't in the font file, or must be overridden by different values.","title":"FT_Incremental"},{"location":"ft2-incremental.html#ft_incremental_metricsrec","text":"Defined in FT_INCREMENTAL_H (freetype/ftincrem.h). typedef struct FT_Incremental_MetricsRec_ { FT_Long bearing_x; FT_Long bearing_y; FT_Long advance; FT_Long advance_v; /* since 2.3.12 */ } FT_Incremental_MetricsRec ; A small structure used to contain the basic glyph metrics returned by the FT_Incremental_GetGlyphMetricsFunc method.","title":"FT_Incremental_MetricsRec"},{"location":"ft2-incremental.html#ft_incremental_metrics","text":"Defined in FT_INCREMENTAL_H (freetype/ftincrem.h). typedef struct FT_Incremental_MetricsRec_* FT_Incremental_Metrics ; A handle to an FT_Incremental_MetricsRec structure.","title":"FT_Incremental_Metrics"},{"location":"ft2-incremental.html#ft_incremental_getglyphdatafunc","text":"Defined in FT_INCREMENTAL_H (freetype/ftincrem.h). typedef FT_Error (* FT_Incremental_GetGlyphDataFunc )( FT_Incremental incremental, FT_UInt glyph_index, FT_Data * adata ); A function called by FreeType to access a given glyph's data bytes during FT_Load_Glyph or FT_Load_Char if incremental loading is enabled. Note that the format of the glyph's data bytes depends on the font file format. For TrueType, it must correspond to the raw bytes within the \u2018glyf\u2019 table. For PostScript formats, it must correspond to the unencrypted charstring bytes, without any lenIV header. It is undefined for any other format.","title":"FT_Incremental_GetGlyphDataFunc"},{"location":"ft2-incremental.html#ft_incremental_freeglyphdatafunc","text":"Defined in FT_INCREMENTAL_H (freetype/ftincrem.h). typedef void (* FT_Incremental_FreeGlyphDataFunc )( FT_Incremental incremental, FT_Data * data ); A function used to release the glyph data bytes returned by a successful call to FT_Incremental_GetGlyphDataFunc .","title":"FT_Incremental_FreeGlyphDataFunc"},{"location":"ft2-incremental.html#ft_incremental_getglyphmetricsfunc","text":"Defined in FT_INCREMENTAL_H (freetype/ftincrem.h). typedef FT_Error (* FT_Incremental_GetGlyphMetricsFunc ) ( FT_Incremental incremental, FT_UInt glyph_index, FT_Bool vertical, FT_Incremental_MetricsRec *ametrics ); A function used to retrieve the basic metrics of a given glyph index before accessing its data. This is necessary because, in certain formats like TrueType, the metrics are stored in a different place from the glyph images proper.","title":"FT_Incremental_GetGlyphMetricsFunc"},{"location":"ft2-incremental.html#ft_incremental_funcsrec","text":"Defined in FT_INCREMENTAL_H (freetype/ftincrem.h). typedef struct FT_Incremental_FuncsRec_ { FT_Incremental_GetGlyphDataFunc get_glyph_data; FT_Incremental_FreeGlyphDataFunc free_glyph_data; FT_Incremental_GetGlyphMetricsFunc get_glyph_metrics; } FT_Incremental_FuncsRec ; A table of functions for accessing fonts that load data incrementally. Used in FT_Incremental_InterfaceRec .","title":"FT_Incremental_FuncsRec"},{"location":"ft2-incremental.html#ft_incremental_interfacerec","text":"Defined in FT_INCREMENTAL_H (freetype/ftincrem.h). typedef struct FT_Incremental_InterfaceRec_ { const FT_Incremental_FuncsRec * funcs; FT_Incremental object; } FT_Incremental_InterfaceRec ; A structure to be used with FT_Open_Face to indicate that the user wants to support incremental glyph loading. You should use it with FT_PARAM_TAG_INCREMENTAL as in the following example: FT_Incremental_InterfaceRec inc_int; FT_Parameter parameter; FT_Open_Args open_args; // set up incremental descriptor inc_int.funcs = my_funcs; inc_int.object = my_object; // set up optional parameter parameter.tag = FT_PARAM_TAG_INCREMENTAL; parameter.data = &inc_int; // set up FT_Open_Args structure open_args.flags = FT_OPEN_PATHNAME | FT_OPEN_PARAMS; open_args.pathname = my_font_pathname; open_args.num_params = 1; open_args.params = &parameter; // we use one optional argument // open the font error = FT_Open_Face( library, &open_args, index, &face ); ...","title":"FT_Incremental_InterfaceRec"},{"location":"ft2-incremental.html#ft_incremental_interface","text":"Defined in FT_INCREMENTAL_H (freetype/ftincrem.h). typedef FT_Incremental_InterfaceRec * FT_Incremental_Interface ; A pointer to an FT_Incremental_InterfaceRec structure.","title":"FT_Incremental_Interface"},{"location":"ft2-index.html","text":"FreeType \u00bb Docs \u00bb Global Index FreeType-2.10.4 API Reference \u00b6 B \u00b6 BDF_Property BDF_PROPERTY_TYPE_ATOM BDF_PROPERTY_TYPE_CARDINAL BDF_PROPERTY_TYPE_INTEGER BDF_PROPERTY_TYPE_NONE BDF_PropertyRec BDF_PropertyType C \u00b6 CID_FaceDict CID_FaceDictRec CID_FaceInfo CID_FaceInfoRec CID_FontDict CID_Info D \u00b6 darkening-parameters default-script F \u00b6 fallback-script FREETYPE_MAJOR FREETYPE_MINOR FREETYPE_PATCH FREETYPE_XXX FT_Activate_Size FT_Add_Default_Modules FT_Add_Module FT_ADVANCE_FLAG_FAST_ONLY FT_ADVANCES_H FT_Alloc_Func FT_Angle FT_ANGLE_2PI FT_Angle_Diff FT_ANGLE_PI FT_ANGLE_PI2 FT_ANGLE_PI4 FT_Atan2 FT_Attach_File FT_Attach_Stream FT_AUTOHINTER_H FT_AUTOHINTER_SCRIPT_CJK FT_AUTOHINTER_SCRIPT_INDIC FT_AUTOHINTER_SCRIPT_LATIN FT_AUTOHINTER_SCRIPT_NONE FT_AUTOHINTER_SCRIPT_XXX FT_BBox FT_BBOX_H FT_BDF_H FT_Bitmap FT_Bitmap_Blend FT_Bitmap_Convert FT_Bitmap_Copy FT_Bitmap_Done FT_Bitmap_Embolden FT_BITMAP_H FT_Bitmap_Init FT_Bitmap_Size FT_BitmapGlyph FT_BitmapGlyphRec FT_Bool FT_Byte FT_Bytes FT_BZIP2_H FT_CACHE_H FT_CeilFix FT_CFF_DRIVER_H FT_Char FT_CharMap FT_CharMapRec FT_CID_H FT_ClassicKern_Free FT_ClassicKern_Validate FT_Color FT_COLOR_H FT_CONFIG_CONFIG_H FT_CONFIG_MODULES_H FT_CONFIG_OPTIONS_H FT_CONFIG_STANDARD_LIBRARY_H FT_Cos FT_Data FT_DEBUG_HOOK_TRUETYPE FT_DEBUG_HOOK_XXX FT_DebugHook_Func FT_DivFix FT_Done_Face FT_Done_FreeType FT_Done_Glyph FT_Done_Library FT_Done_MM_Var FT_Done_Size FT_Driver FT_DRIVER_H FT_ENC_TAG FT_Encoding FT_ENCODING_ADOBE_CUSTOM FT_ENCODING_ADOBE_EXPERT FT_ENCODING_ADOBE_LATIN_1 FT_ENCODING_ADOBE_STANDARD FT_ENCODING_APPLE_ROMAN FT_ENCODING_BIG5 FT_ENCODING_JOHAB FT_ENCODING_MS_BIG5 FT_ENCODING_MS_GB2312 FT_ENCODING_MS_JOHAB FT_ENCODING_MS_SJIS FT_ENCODING_MS_SYMBOL FT_ENCODING_MS_WANSUNG FT_ENCODING_NONE FT_ENCODING_OLD_LATIN_2 FT_ENCODING_PRC FT_ENCODING_SJIS FT_ENCODING_UNICODE FT_ENCODING_WANSUNG FT_Err_XXX FT_Error FT_Error_String FT_ERRORS_H FT_F26Dot6 FT_F2Dot14 FT_Face FT_Face_CheckTrueTypePatents FT_FACE_FLAG_CID_KEYED FT_FACE_FLAG_COLOR FT_FACE_FLAG_EXTERNAL_STREAM FT_FACE_FLAG_FAST_GLYPHS FT_FACE_FLAG_FIXED_SIZES FT_FACE_FLAG_FIXED_WIDTH FT_FACE_FLAG_GLYPH_NAMES FT_FACE_FLAG_HINTER FT_FACE_FLAG_HORIZONTAL FT_FACE_FLAG_KERNING FT_FACE_FLAG_MULTIPLE_MASTERS FT_FACE_FLAG_SCALABLE FT_FACE_FLAG_SFNT FT_FACE_FLAG_TRICKY FT_FACE_FLAG_VARIATION FT_FACE_FLAG_VERTICAL FT_FACE_FLAG_XXX FT_Face_GetCharsOfVariant FT_Face_GetCharVariantIndex FT_Face_GetCharVariantIsDefault FT_Face_GetVariantSelectors FT_Face_GetVariantsOfChar FT_Face_Internal FT_Face_Properties FT_Face_SetUnpatentedHinting FT_FaceRec FT_Fixed FT_FloorFix FT_FONT_FORMATS_H FT_Free_Func FT_FREETYPE_H FT_FSTYPE_BITMAP_EMBEDDING_ONLY FT_FSTYPE_EDITABLE_EMBEDDING FT_FSTYPE_INSTALLABLE_EMBEDDING FT_FSTYPE_NO_SUBSETTING FT_FSTYPE_PREVIEW_AND_PRINT_EMBEDDING FT_FSTYPE_RESTRICTED_LICENSE_EMBEDDING FT_FSTYPE_XXX FT_FWord FT_GASP_DO_GRAY FT_GASP_DO_GRIDFIT FT_GASP_H FT_GASP_NO_TABLE FT_GASP_SYMMETRIC_GRIDFIT FT_GASP_SYMMETRIC_SMOOTHING FT_GASP_XXX FT_Generic FT_Generic_Finalizer FT_Get_Advance FT_Get_Advances FT_Get_BDF_Charset_ID FT_Get_BDF_Property FT_Get_Char_Index FT_Get_Charmap_Index FT_Get_CID_From_Glyph_Index FT_Get_CID_Is_Internally_CID_Keyed FT_Get_CID_Registry_Ordering_Supplement FT_Get_CMap_Format FT_Get_CMap_Language_ID FT_Get_Color_Glyph_Layer FT_Get_First_Char FT_Get_Font_Format FT_Get_FSType_Flags FT_Get_Gasp FT_Get_Glyph FT_Get_Glyph_Name FT_Get_Kerning FT_Get_MM_Blend_Coordinates FT_Get_MM_Var FT_Get_MM_WeightVector FT_Get_Module FT_Get_Multi_Master FT_Get_Name_Index FT_Get_Next_Char FT_Get_PFR_Advance FT_Get_PFR_Kerning FT_Get_PFR_Metrics FT_Get_Postscript_Name FT_Get_PS_Font_Info FT_Get_PS_Font_Private FT_Get_PS_Font_Value FT_Get_Renderer FT_Get_Sfnt_LangTag FT_Get_Sfnt_Name FT_Get_Sfnt_Name_Count FT_Get_Sfnt_Table FT_Get_SubGlyph_Info FT_Get_Track_Kerning FT_Get_TrueType_Engine_Type FT_Get_Var_Axis_Flags FT_Get_Var_Blend_Coordinates FT_Get_Var_Design_Coordinates FT_Get_WinFNT_Header FT_GetFile_From_Mac_ATS_Name FT_GetFile_From_Mac_Name FT_GetFilePath_From_Mac_ATS_Name FT_Glyph FT_GLYPH_BBOX_GRIDFIT FT_Glyph_BBox_Mode FT_GLYPH_BBOX_PIXELS FT_GLYPH_BBOX_SUBPIXELS FT_GLYPH_BBOX_TRUNCATE FT_GLYPH_BBOX_UNSCALED FT_Glyph_Copy FT_Glyph_Format FT_GLYPH_FORMAT_BITMAP FT_GLYPH_FORMAT_COMPOSITE FT_GLYPH_FORMAT_NONE FT_GLYPH_FORMAT_OUTLINE FT_GLYPH_FORMAT_PLOTTER FT_Glyph_Get_CBox FT_GLYPH_H FT_Glyph_Metrics FT_Glyph_Stroke FT_Glyph_StrokeBorder FT_Glyph_To_Bitmap FT_Glyph_Transform FT_GlyphRec FT_GlyphSlot FT_GlyphSlot_Own_Bitmap FT_GlyphSlotRec FT_GX_VALIDATE_H FT_GZIP_H FT_Gzip_Uncompress FT_HAS_COLOR FT_HAS_FAST_GLYPHS FT_HAS_FIXED_SIZES FT_HAS_GLYPH_NAMES FT_HAS_HORIZONTAL FT_HAS_KERNING FT_HAS_MULTIPLE_MASTERS FT_Has_PS_Glyph_Names FT_HAS_VERTICAL FT_HINTING_ADOBE FT_HINTING_FREETYPE FT_HINTING_XXX FT_IMAGE_H FT_IMAGE_TAG FT_Incremental FT_Incremental_FreeGlyphDataFunc FT_Incremental_FuncsRec FT_Incremental_GetGlyphDataFunc FT_Incremental_GetGlyphMetricsFunc FT_INCREMENTAL_H FT_Incremental_Interface FT_Incremental_InterfaceRec FT_Incremental_Metrics FT_Incremental_MetricsRec FT_Init_FreeType FT_Int FT_Int16 FT_Int32 FT_Int64 FT_IS_CID_KEYED FT_IS_FIXED_WIDTH FT_IS_NAMED_INSTANCE FT_IS_SCALABLE FT_IS_SFNT FT_IS_TRICKY FT_IS_VARIATION FT_KERNING_DEFAULT FT_Kerning_Mode FT_KERNING_UNFITTED FT_KERNING_UNSCALED FT_LayerIterator FT_LCD_FILTER_DEFAULT FT_LCD_FILTER_H FT_LCD_FILTER_LEGACY FT_LCD_FILTER_LEGACY1 FT_LCD_FILTER_LIGHT FT_LCD_FILTER_NONE FT_LcdFilter FT_LcdFiveTapFilter FT_Library FT_Library_SetLcdFilter FT_Library_SetLcdFilterWeights FT_Library_SetLcdGeometry FT_Library_Version FT_List FT_List_Add FT_List_Destructor FT_List_Finalize FT_List_Find FT_LIST_H FT_List_Insert FT_List_Iterate FT_List_Iterator FT_List_Remove FT_List_Up FT_ListNode FT_ListNodeRec FT_ListRec FT_LOAD_BITMAP_METRICS_ONLY FT_Load_Char FT_LOAD_COLOR FT_LOAD_COMPUTE_METRICS FT_LOAD_CROP_BITMAP FT_LOAD_DEFAULT FT_LOAD_FORCE_AUTOHINT FT_Load_Glyph FT_LOAD_IGNORE_GLOBAL_ADVANCE_WIDTH FT_LOAD_IGNORE_TRANSFORM FT_LOAD_LINEAR_DESIGN FT_LOAD_MONOCHROME FT_LOAD_NO_AUTOHINT FT_LOAD_NO_BITMAP FT_LOAD_NO_HINTING FT_LOAD_NO_RECURSE FT_LOAD_NO_SCALE FT_LOAD_PEDANTIC FT_LOAD_RENDER FT_Load_Sfnt_Table FT_LOAD_TARGET_LCD FT_LOAD_TARGET_LCD_V FT_LOAD_TARGET_LIGHT FT_LOAD_TARGET_MODE FT_LOAD_TARGET_MONO FT_LOAD_TARGET_NORMAL FT_LOAD_TARGET_XXX FT_LOAD_VERTICAL_LAYOUT FT_LOAD_XXX FT_Long FT_LZW_H FT_MAC_H FT_MAKE_TAG FT_Matrix FT_Matrix_Invert FT_Matrix_Multiply FT_Memory FT_MemoryRec FT_MM_Axis FT_MM_Var FT_Module FT_Module_Class FT_Module_Constructor FT_Module_Destructor FT_MODULE_ERRORS_H FT_MODULE_H FT_Module_Requester FT_MulDiv FT_MulFix FT_Multi_Master FT_MULTIPLE_MASTERS_H FT_New_Face FT_New_Face_From_FOND FT_New_Face_From_FSRef FT_New_Face_From_FSSpec FT_New_Glyph FT_New_Library FT_New_Memory_Face FT_New_Size FT_Offset FT_Open_Args FT_OPEN_DRIVER FT_Open_Face FT_OPEN_MEMORY FT_OPEN_PARAMS FT_OPEN_PATHNAME FT_OPEN_STREAM FT_OPEN_XXX FT_OpenType_Free FT_OpenType_Validate FT_OPENTYPE_VALIDATE_H FT_Orientation FT_ORIENTATION_FILL_LEFT FT_ORIENTATION_FILL_RIGHT FT_ORIENTATION_NONE FT_ORIENTATION_POSTSCRIPT FT_ORIENTATION_TRUETYPE FT_Outline FT_Outline_Check FT_Outline_ConicToFunc FT_Outline_Copy FT_Outline_CubicToFunc FT_Outline_Decompose FT_Outline_Done FT_Outline_Embolden FT_Outline_EmboldenXY FT_OUTLINE_EVEN_ODD_FILL FT_Outline_Funcs FT_Outline_Get_BBox FT_Outline_Get_Bitmap FT_Outline_Get_CBox FT_Outline_Get_Orientation FT_Outline_GetInsideBorder FT_Outline_GetOutsideBorder FT_OUTLINE_H FT_OUTLINE_HIGH_PRECISION FT_OUTLINE_IGNORE_DROPOUTS FT_OUTLINE_INCLUDE_STUBS FT_Outline_LineToFunc FT_Outline_MoveToFunc FT_Outline_New FT_OUTLINE_NONE FT_OUTLINE_OVERLAP FT_OUTLINE_OWNER FT_Outline_Render FT_Outline_Reverse FT_OUTLINE_REVERSE_FILL FT_OUTLINE_SINGLE_PASS FT_OUTLINE_SMART_DROPOUTS FT_Outline_Transform FT_Outline_Translate FT_OUTLINE_XXX FT_OutlineGlyph FT_OutlineGlyphRec FT_Palette_Data FT_Palette_Data_Get FT_PALETTE_FOR_DARK_BACKGROUND FT_PALETTE_FOR_LIGHT_BACKGROUND FT_Palette_Select FT_Palette_Set_Foreground_Color FT_PALETTE_XXX FT_PARAM_TAG_IGNORE_TYPOGRAPHIC_FAMILY FT_PARAM_TAG_IGNORE_TYPOGRAPHIC_SUBFAMILY FT_PARAM_TAG_INCREMENTAL FT_PARAM_TAG_LCD_FILTER_WEIGHTS FT_PARAM_TAG_RANDOM_SEED FT_PARAM_TAG_STEM_DARKENING FT_PARAM_TAG_UNPATENTED_HINTING FT_Parameter FT_PCF_DRIVER_H FT_PFR_H FT_Pixel_Mode FT_PIXEL_MODE_BGRA FT_PIXEL_MODE_GRAY FT_PIXEL_MODE_GRAY2 FT_PIXEL_MODE_GRAY4 FT_PIXEL_MODE_LCD FT_PIXEL_MODE_LCD_V FT_PIXEL_MODE_MONO FT_PIXEL_MODE_NONE FT_Pointer FT_Pos FT_Prop_GlyphToScriptMap FT_Prop_IncreaseXHeight FT_Property_Get FT_Property_Set FT_PtrDist FT_Raster FT_Raster_BitSet_Func FT_Raster_BitTest_Func FT_Raster_DoneFunc FT_RASTER_FLAG_AA FT_RASTER_FLAG_CLIP FT_RASTER_FLAG_DEFAULT FT_RASTER_FLAG_DIRECT FT_RASTER_FLAG_XXX FT_Raster_Funcs FT_Raster_NewFunc FT_Raster_Params FT_Raster_RenderFunc FT_Raster_ResetFunc FT_Raster_SetModeFunc FT_Realloc_Func FT_Reference_Face FT_Reference_Library FT_Remove_Module FT_Render_Glyph FT_RENDER_H FT_Render_Mode FT_RENDER_MODE_LCD FT_RENDER_MODE_LCD_V FT_RENDER_MODE_LIGHT FT_RENDER_MODE_MONO FT_RENDER_MODE_NORMAL FT_Renderer FT_Renderer_Class FT_Request_Size FT_RoundFix FT_Select_Charmap FT_Select_Size FT_Set_Char_Size FT_Set_Charmap FT_Set_Debug_Hook FT_Set_Default_Properties FT_Set_MM_Blend_Coordinates FT_Set_MM_Design_Coordinates FT_Set_MM_WeightVector FT_Set_Named_Instance FT_Set_Pixel_Sizes FT_Set_Renderer FT_Set_Transform FT_Set_Var_Blend_Coordinates FT_Set_Var_Design_Coordinates FT_SFNT_HEAD FT_SFNT_HHEA FT_SFNT_MAXP FT_SFNT_NAMES_H FT_SFNT_OS2 FT_SFNT_PCLT FT_SFNT_POST FT_Sfnt_Table_Info FT_Sfnt_Tag FT_SFNT_VHEA FT_SfntLangTag FT_SfntName FT_Short FT_Sin FT_Size FT_Size_Internal FT_Size_Metrics FT_Size_Request FT_Size_Request_Type FT_SIZE_REQUEST_TYPE_BBOX FT_SIZE_REQUEST_TYPE_CELL FT_SIZE_REQUEST_TYPE_NOMINAL FT_SIZE_REQUEST_TYPE_REAL_DIM FT_SIZE_REQUEST_TYPE_SCALES FT_Size_RequestRec FT_SizeRec FT_SIZES_H FT_Slot_Internal FT_Span FT_SpanFunc FT_Stream FT_Stream_CloseFunc FT_Stream_IoFunc FT_Stream_OpenBzip2 FT_Stream_OpenGzip FT_Stream_OpenLZW FT_StreamDesc FT_StreamRec FT_String FT_Stroker FT_Stroker_BeginSubPath FT_STROKER_BORDER_LEFT FT_STROKER_BORDER_RIGHT FT_Stroker_ConicTo FT_Stroker_CubicTo FT_Stroker_Done FT_Stroker_EndSubPath FT_Stroker_Export FT_Stroker_ExportBorder FT_Stroker_GetBorderCounts FT_Stroker_GetCounts FT_STROKER_H FT_Stroker_LineCap FT_STROKER_LINECAP_BUTT FT_STROKER_LINECAP_ROUND FT_STROKER_LINECAP_SQUARE FT_Stroker_LineJoin FT_STROKER_LINEJOIN_BEVEL FT_STROKER_LINEJOIN_MITER FT_STROKER_LINEJOIN_MITER_FIXED FT_STROKER_LINEJOIN_MITER_VARIABLE FT_STROKER_LINEJOIN_ROUND FT_Stroker_LineTo FT_Stroker_New FT_Stroker_ParseOutline FT_Stroker_Rewind FT_Stroker_Set FT_StrokerBorder FT_STYLE_FLAG_BOLD FT_STYLE_FLAG_ITALIC FT_STYLE_FLAG_XXX FT_SubGlyph FT_SUBGLYPH_FLAG_2X2 FT_SUBGLYPH_FLAG_ARGS_ARE_WORDS FT_SUBGLYPH_FLAG_ARGS_ARE_XY_VALUES FT_SUBGLYPH_FLAG_ROUND_XY_TO_GRID FT_SUBGLYPH_FLAG_SCALE FT_SUBGLYPH_FLAG_USE_MY_METRICS FT_SUBGLYPH_FLAG_XXX FT_SUBGLYPH_FLAG_XY_SCALE FT_SYNTHESIS_H FT_SYSTEM_H FT_Tag FT_Tan FT_TRIGONOMETRY_H FT_TRUETYPE_DRIVER_H FT_TRUETYPE_ENGINE_TYPE_NONE FT_TRUETYPE_ENGINE_TYPE_PATENTED FT_TRUETYPE_ENGINE_TYPE_UNPATENTED FT_TRUETYPE_IDS_H FT_TRUETYPE_TABLES_H FT_TRUETYPE_TAGS_H FT_TrueTypeEngineType FT_TrueTypeGX_Free FT_TrueTypeGX_Validate FT_TYPE1_TABLES_H FT_TYPES_H FT_UFWord FT_UInt FT_UInt16 FT_UInt32 FT_UInt64 FT_ULong FT_UnitVector FT_UShort FT_VALIDATE_APPLE FT_VALIDATE_BASE FT_VALIDATE_bsln FT_VALIDATE_CKERN FT_VALIDATE_CKERNXXX FT_VALIDATE_feat FT_VALIDATE_GDEF FT_VALIDATE_GPOS FT_VALIDATE_GSUB FT_VALIDATE_GX FT_VALIDATE_GX_LENGTH FT_VALIDATE_GXXXX FT_VALIDATE_JSTF FT_VALIDATE_just FT_VALIDATE_kern FT_VALIDATE_lcar FT_VALIDATE_MATH FT_VALIDATE_mort FT_VALIDATE_morx FT_VALIDATE_MS FT_VALIDATE_opbd FT_VALIDATE_OT FT_VALIDATE_OTXXX FT_VALIDATE_prop FT_VALIDATE_trak FT_Var_Axis FT_VAR_AXIS_FLAG_HIDDEN FT_VAR_AXIS_FLAG_XXX FT_Var_Named_Style FT_Vector FT_Vector_From_Polar FT_Vector_Length FT_Vector_Polarize FT_Vector_Rotate FT_Vector_Transform FT_Vector_Unit FT_WinFNT_Header FT_WinFNT_HeaderRec FT_WinFNT_ID_CP1250 FT_WinFNT_ID_CP1251 FT_WinFNT_ID_CP1252 FT_WinFNT_ID_CP1253 FT_WinFNT_ID_CP1254 FT_WinFNT_ID_CP1255 FT_WinFNT_ID_CP1256 FT_WinFNT_ID_CP1257 FT_WinFNT_ID_CP1258 FT_WinFNT_ID_CP1361 FT_WinFNT_ID_CP874 FT_WinFNT_ID_CP932 FT_WinFNT_ID_CP936 FT_WinFNT_ID_CP949 FT_WinFNT_ID_CP950 FT_WinFNT_ID_DEFAULT FT_WinFNT_ID_MAC FT_WinFNT_ID_OEM FT_WinFNT_ID_SYMBOL FT_WinFNT_ID_XXX FT_WINFONTS_H FTC_CMapCache FTC_CMapCache_Lookup FTC_CMapCache_New FTC_Face_Requester FTC_FaceID FTC_ImageCache FTC_ImageCache_Lookup FTC_ImageCache_LookupScaler FTC_ImageCache_New FTC_ImageType FTC_ImageTypeRec FTC_Manager FTC_Manager_Done FTC_Manager_LookupFace FTC_Manager_LookupSize FTC_Manager_New FTC_Manager_RemoveFaceID FTC_Manager_Reset FTC_Node FTC_Node_Unref FTC_SBit FTC_SBitCache FTC_SBitCache_Lookup FTC_SBitCache_LookupScaler FTC_SBitCache_New FTC_SBitRec FTC_Scaler FTC_ScalerRec G \u00b6 glyph-to-script-map H \u00b6 hinting-engine I \u00b6 increase-x-height interpreter-version N \u00b6 no-long-family-names no-stem-darkening P \u00b6 PS_DICT_BLUE_FUZZ PS_DICT_BLUE_SCALE PS_DICT_BLUE_SHIFT PS_DICT_BLUE_VALUE PS_DICT_CHAR_STRING PS_DICT_CHAR_STRING_KEY PS_DICT_ENCODING_ENTRY PS_DICT_ENCODING_TYPE PS_DICT_FAMILY_BLUE PS_DICT_FAMILY_NAME PS_DICT_FAMILY_OTHER_BLUE PS_DICT_FONT_BBOX PS_DICT_FONT_MATRIX PS_DICT_FONT_NAME PS_DICT_FONT_TYPE PS_DICT_FORCE_BOLD PS_DICT_FS_TYPE PS_DICT_FULL_NAME PS_DICT_IS_FIXED_PITCH PS_DICT_ITALIC_ANGLE PS_Dict_Keys PS_DICT_LANGUAGE_GROUP PS_DICT_LEN_IV PS_DICT_MIN_FEATURE PS_DICT_NOTICE PS_DICT_NUM_BLUE_VALUES PS_DICT_NUM_CHAR_STRINGS PS_DICT_NUM_FAMILY_BLUES PS_DICT_NUM_FAMILY_OTHER_BLUES PS_DICT_NUM_OTHER_BLUES PS_DICT_NUM_STEM_SNAP_H PS_DICT_NUM_STEM_SNAP_V PS_DICT_NUM_SUBRS PS_DICT_OTHER_BLUE PS_DICT_PAINT_TYPE PS_DICT_PASSWORD PS_DICT_RND_STEM_UP PS_DICT_STD_HW PS_DICT_STD_VW PS_DICT_STEM_SNAP_H PS_DICT_STEM_SNAP_V PS_DICT_SUBR PS_DICT_UNDERLINE_POSITION PS_DICT_UNDERLINE_THICKNESS PS_DICT_UNIQUE_ID PS_DICT_VERSION PS_DICT_WEIGHT PS_FontInfo PS_FontInfoRec PS_Private PS_PrivateRec R \u00b6 random-seed T \u00b6 T1_BLEND_BLUE_SCALE T1_BLEND_BLUE_SHIFT T1_BLEND_BLUE_VALUES T1_BLEND_FAMILY_BLUES T1_BLEND_FAMILY_OTHER_BLUES T1_Blend_Flags T1_BLEND_FORCE_BOLD T1_BLEND_ITALIC_ANGLE T1_BLEND_OTHER_BLUES T1_BLEND_STANDARD_HEIGHT T1_BLEND_STANDARD_WIDTH T1_BLEND_STEM_SNAP_HEIGHTS T1_BLEND_STEM_SNAP_WIDTHS T1_BLEND_UNDERLINE_POSITION T1_BLEND_UNDERLINE_THICKNESS T1_ENCODING_TYPE_ARRAY T1_ENCODING_TYPE_EXPERT T1_ENCODING_TYPE_ISOLATIN1 T1_ENCODING_TYPE_NONE T1_ENCODING_TYPE_STANDARD T1_EncodingType T1_FontInfo T1_Private TT_ADOBE_ID_CUSTOM TT_ADOBE_ID_EXPERT TT_ADOBE_ID_LATIN_1 TT_ADOBE_ID_STANDARD TT_ADOBE_ID_XXX TT_APPLE_ID_DEFAULT TT_APPLE_ID_FULL_UNICODE TT_APPLE_ID_ISO_10646 TT_APPLE_ID_UNICODE_1_1 TT_APPLE_ID_UNICODE_2_0 TT_APPLE_ID_UNICODE_32 TT_APPLE_ID_VARIANT_SELECTOR TT_APPLE_ID_XXX TT_Header TT_HoriHeader TT_INTERPRETER_VERSION_35 TT_INTERPRETER_VERSION_38 TT_INTERPRETER_VERSION_40 TT_INTERPRETER_VERSION_XXX TT_ISO_ID_10646 TT_ISO_ID_7BIT_ASCII TT_ISO_ID_8859_1 TT_ISO_ID_XXX TT_MAC_ID_XXX TT_MAC_LANGID_XXX TT_MaxProfile TT_MS_ID_BIG_5 TT_MS_ID_JOHAB TT_MS_ID_PRC TT_MS_ID_SJIS TT_MS_ID_SYMBOL_CS TT_MS_ID_UCS_4 TT_MS_ID_UNICODE_CS TT_MS_ID_WANSUNG TT_MS_ID_XXX TT_MS_LANGID_XXX TT_NAME_ID_XXX TT_OS2 TT_PCLT TT_PLATFORM_ADOBE TT_PLATFORM_APPLE_UNICODE TT_PLATFORM_CUSTOM TT_PLATFORM_ISO TT_PLATFORM_MACINTOSH TT_PLATFORM_MICROSOFT TT_PLATFORM_XXX TT_Postscript TT_UCR_XXX TT_VertHeader W \u00b6 warping generated on Tue Oct 20 05:14:52 2020 UTC","title":"Index"},{"location":"ft2-index.html#freetype-2104-api-reference","text":"","title":"FreeType-2.10.4 API Reference"},{"location":"ft2-index.html#b","text":"BDF_Property BDF_PROPERTY_TYPE_ATOM BDF_PROPERTY_TYPE_CARDINAL BDF_PROPERTY_TYPE_INTEGER BDF_PROPERTY_TYPE_NONE BDF_PropertyRec BDF_PropertyType","title":"B"},{"location":"ft2-index.html#c","text":"CID_FaceDict CID_FaceDictRec CID_FaceInfo CID_FaceInfoRec CID_FontDict CID_Info","title":"C"},{"location":"ft2-index.html#d","text":"darkening-parameters default-script","title":"D"},{"location":"ft2-index.html#f","text":"fallback-script FREETYPE_MAJOR FREETYPE_MINOR FREETYPE_PATCH FREETYPE_XXX FT_Activate_Size FT_Add_Default_Modules FT_Add_Module FT_ADVANCE_FLAG_FAST_ONLY FT_ADVANCES_H FT_Alloc_Func FT_Angle FT_ANGLE_2PI FT_Angle_Diff FT_ANGLE_PI FT_ANGLE_PI2 FT_ANGLE_PI4 FT_Atan2 FT_Attach_File FT_Attach_Stream FT_AUTOHINTER_H FT_AUTOHINTER_SCRIPT_CJK FT_AUTOHINTER_SCRIPT_INDIC FT_AUTOHINTER_SCRIPT_LATIN FT_AUTOHINTER_SCRIPT_NONE FT_AUTOHINTER_SCRIPT_XXX FT_BBox FT_BBOX_H FT_BDF_H FT_Bitmap FT_Bitmap_Blend FT_Bitmap_Convert FT_Bitmap_Copy FT_Bitmap_Done FT_Bitmap_Embolden FT_BITMAP_H FT_Bitmap_Init FT_Bitmap_Size FT_BitmapGlyph FT_BitmapGlyphRec FT_Bool FT_Byte FT_Bytes FT_BZIP2_H FT_CACHE_H FT_CeilFix FT_CFF_DRIVER_H FT_Char FT_CharMap FT_CharMapRec FT_CID_H FT_ClassicKern_Free FT_ClassicKern_Validate FT_Color FT_COLOR_H FT_CONFIG_CONFIG_H FT_CONFIG_MODULES_H FT_CONFIG_OPTIONS_H FT_CONFIG_STANDARD_LIBRARY_H FT_Cos FT_Data FT_DEBUG_HOOK_TRUETYPE FT_DEBUG_HOOK_XXX FT_DebugHook_Func FT_DivFix FT_Done_Face FT_Done_FreeType FT_Done_Glyph FT_Done_Library FT_Done_MM_Var FT_Done_Size FT_Driver FT_DRIVER_H FT_ENC_TAG FT_Encoding FT_ENCODING_ADOBE_CUSTOM FT_ENCODING_ADOBE_EXPERT FT_ENCODING_ADOBE_LATIN_1 FT_ENCODING_ADOBE_STANDARD FT_ENCODING_APPLE_ROMAN FT_ENCODING_BIG5 FT_ENCODING_JOHAB FT_ENCODING_MS_BIG5 FT_ENCODING_MS_GB2312 FT_ENCODING_MS_JOHAB FT_ENCODING_MS_SJIS FT_ENCODING_MS_SYMBOL FT_ENCODING_MS_WANSUNG FT_ENCODING_NONE FT_ENCODING_OLD_LATIN_2 FT_ENCODING_PRC FT_ENCODING_SJIS FT_ENCODING_UNICODE FT_ENCODING_WANSUNG FT_Err_XXX FT_Error FT_Error_String FT_ERRORS_H FT_F26Dot6 FT_F2Dot14 FT_Face FT_Face_CheckTrueTypePatents FT_FACE_FLAG_CID_KEYED FT_FACE_FLAG_COLOR FT_FACE_FLAG_EXTERNAL_STREAM FT_FACE_FLAG_FAST_GLYPHS FT_FACE_FLAG_FIXED_SIZES FT_FACE_FLAG_FIXED_WIDTH FT_FACE_FLAG_GLYPH_NAMES FT_FACE_FLAG_HINTER FT_FACE_FLAG_HORIZONTAL FT_FACE_FLAG_KERNING FT_FACE_FLAG_MULTIPLE_MASTERS FT_FACE_FLAG_SCALABLE FT_FACE_FLAG_SFNT FT_FACE_FLAG_TRICKY FT_FACE_FLAG_VARIATION FT_FACE_FLAG_VERTICAL FT_FACE_FLAG_XXX FT_Face_GetCharsOfVariant FT_Face_GetCharVariantIndex FT_Face_GetCharVariantIsDefault FT_Face_GetVariantSelectors FT_Face_GetVariantsOfChar FT_Face_Internal FT_Face_Properties FT_Face_SetUnpatentedHinting FT_FaceRec FT_Fixed FT_FloorFix FT_FONT_FORMATS_H FT_Free_Func FT_FREETYPE_H FT_FSTYPE_BITMAP_EMBEDDING_ONLY FT_FSTYPE_EDITABLE_EMBEDDING FT_FSTYPE_INSTALLABLE_EMBEDDING FT_FSTYPE_NO_SUBSETTING FT_FSTYPE_PREVIEW_AND_PRINT_EMBEDDING FT_FSTYPE_RESTRICTED_LICENSE_EMBEDDING FT_FSTYPE_XXX FT_FWord FT_GASP_DO_GRAY FT_GASP_DO_GRIDFIT FT_GASP_H FT_GASP_NO_TABLE FT_GASP_SYMMETRIC_GRIDFIT FT_GASP_SYMMETRIC_SMOOTHING FT_GASP_XXX FT_Generic FT_Generic_Finalizer FT_Get_Advance FT_Get_Advances FT_Get_BDF_Charset_ID FT_Get_BDF_Property FT_Get_Char_Index FT_Get_Charmap_Index FT_Get_CID_From_Glyph_Index FT_Get_CID_Is_Internally_CID_Keyed FT_Get_CID_Registry_Ordering_Supplement FT_Get_CMap_Format FT_Get_CMap_Language_ID FT_Get_Color_Glyph_Layer FT_Get_First_Char FT_Get_Font_Format FT_Get_FSType_Flags FT_Get_Gasp FT_Get_Glyph FT_Get_Glyph_Name FT_Get_Kerning FT_Get_MM_Blend_Coordinates FT_Get_MM_Var FT_Get_MM_WeightVector FT_Get_Module FT_Get_Multi_Master FT_Get_Name_Index FT_Get_Next_Char FT_Get_PFR_Advance FT_Get_PFR_Kerning FT_Get_PFR_Metrics FT_Get_Postscript_Name FT_Get_PS_Font_Info FT_Get_PS_Font_Private FT_Get_PS_Font_Value FT_Get_Renderer FT_Get_Sfnt_LangTag FT_Get_Sfnt_Name FT_Get_Sfnt_Name_Count FT_Get_Sfnt_Table FT_Get_SubGlyph_Info FT_Get_Track_Kerning FT_Get_TrueType_Engine_Type FT_Get_Var_Axis_Flags FT_Get_Var_Blend_Coordinates FT_Get_Var_Design_Coordinates FT_Get_WinFNT_Header FT_GetFile_From_Mac_ATS_Name FT_GetFile_From_Mac_Name FT_GetFilePath_From_Mac_ATS_Name FT_Glyph FT_GLYPH_BBOX_GRIDFIT FT_Glyph_BBox_Mode FT_GLYPH_BBOX_PIXELS FT_GLYPH_BBOX_SUBPIXELS FT_GLYPH_BBOX_TRUNCATE FT_GLYPH_BBOX_UNSCALED FT_Glyph_Copy FT_Glyph_Format FT_GLYPH_FORMAT_BITMAP FT_GLYPH_FORMAT_COMPOSITE FT_GLYPH_FORMAT_NONE FT_GLYPH_FORMAT_OUTLINE FT_GLYPH_FORMAT_PLOTTER FT_Glyph_Get_CBox FT_GLYPH_H FT_Glyph_Metrics FT_Glyph_Stroke FT_Glyph_StrokeBorder FT_Glyph_To_Bitmap FT_Glyph_Transform FT_GlyphRec FT_GlyphSlot FT_GlyphSlot_Own_Bitmap FT_GlyphSlotRec FT_GX_VALIDATE_H FT_GZIP_H FT_Gzip_Uncompress FT_HAS_COLOR FT_HAS_FAST_GLYPHS FT_HAS_FIXED_SIZES FT_HAS_GLYPH_NAMES FT_HAS_HORIZONTAL FT_HAS_KERNING FT_HAS_MULTIPLE_MASTERS FT_Has_PS_Glyph_Names FT_HAS_VERTICAL FT_HINTING_ADOBE FT_HINTING_FREETYPE FT_HINTING_XXX FT_IMAGE_H FT_IMAGE_TAG FT_Incremental FT_Incremental_FreeGlyphDataFunc FT_Incremental_FuncsRec FT_Incremental_GetGlyphDataFunc FT_Incremental_GetGlyphMetricsFunc FT_INCREMENTAL_H FT_Incremental_Interface FT_Incremental_InterfaceRec FT_Incremental_Metrics FT_Incremental_MetricsRec FT_Init_FreeType FT_Int FT_Int16 FT_Int32 FT_Int64 FT_IS_CID_KEYED FT_IS_FIXED_WIDTH FT_IS_NAMED_INSTANCE FT_IS_SCALABLE FT_IS_SFNT FT_IS_TRICKY FT_IS_VARIATION FT_KERNING_DEFAULT FT_Kerning_Mode FT_KERNING_UNFITTED FT_KERNING_UNSCALED FT_LayerIterator FT_LCD_FILTER_DEFAULT FT_LCD_FILTER_H FT_LCD_FILTER_LEGACY FT_LCD_FILTER_LEGACY1 FT_LCD_FILTER_LIGHT FT_LCD_FILTER_NONE FT_LcdFilter FT_LcdFiveTapFilter FT_Library FT_Library_SetLcdFilter FT_Library_SetLcdFilterWeights FT_Library_SetLcdGeometry FT_Library_Version FT_List FT_List_Add FT_List_Destructor FT_List_Finalize FT_List_Find FT_LIST_H FT_List_Insert FT_List_Iterate FT_List_Iterator FT_List_Remove FT_List_Up FT_ListNode FT_ListNodeRec FT_ListRec FT_LOAD_BITMAP_METRICS_ONLY FT_Load_Char FT_LOAD_COLOR FT_LOAD_COMPUTE_METRICS FT_LOAD_CROP_BITMAP FT_LOAD_DEFAULT FT_LOAD_FORCE_AUTOHINT FT_Load_Glyph FT_LOAD_IGNORE_GLOBAL_ADVANCE_WIDTH FT_LOAD_IGNORE_TRANSFORM FT_LOAD_LINEAR_DESIGN FT_LOAD_MONOCHROME FT_LOAD_NO_AUTOHINT FT_LOAD_NO_BITMAP FT_LOAD_NO_HINTING FT_LOAD_NO_RECURSE FT_LOAD_NO_SCALE FT_LOAD_PEDANTIC FT_LOAD_RENDER FT_Load_Sfnt_Table FT_LOAD_TARGET_LCD FT_LOAD_TARGET_LCD_V FT_LOAD_TARGET_LIGHT FT_LOAD_TARGET_MODE FT_LOAD_TARGET_MONO FT_LOAD_TARGET_NORMAL FT_LOAD_TARGET_XXX FT_LOAD_VERTICAL_LAYOUT FT_LOAD_XXX FT_Long FT_LZW_H FT_MAC_H FT_MAKE_TAG FT_Matrix FT_Matrix_Invert FT_Matrix_Multiply FT_Memory FT_MemoryRec FT_MM_Axis FT_MM_Var FT_Module FT_Module_Class FT_Module_Constructor FT_Module_Destructor FT_MODULE_ERRORS_H FT_MODULE_H FT_Module_Requester FT_MulDiv FT_MulFix FT_Multi_Master FT_MULTIPLE_MASTERS_H FT_New_Face FT_New_Face_From_FOND FT_New_Face_From_FSRef FT_New_Face_From_FSSpec FT_New_Glyph FT_New_Library FT_New_Memory_Face FT_New_Size FT_Offset FT_Open_Args FT_OPEN_DRIVER FT_Open_Face FT_OPEN_MEMORY FT_OPEN_PARAMS FT_OPEN_PATHNAME FT_OPEN_STREAM FT_OPEN_XXX FT_OpenType_Free FT_OpenType_Validate FT_OPENTYPE_VALIDATE_H FT_Orientation FT_ORIENTATION_FILL_LEFT FT_ORIENTATION_FILL_RIGHT FT_ORIENTATION_NONE FT_ORIENTATION_POSTSCRIPT FT_ORIENTATION_TRUETYPE FT_Outline FT_Outline_Check FT_Outline_ConicToFunc FT_Outline_Copy FT_Outline_CubicToFunc FT_Outline_Decompose FT_Outline_Done FT_Outline_Embolden FT_Outline_EmboldenXY FT_OUTLINE_EVEN_ODD_FILL FT_Outline_Funcs FT_Outline_Get_BBox FT_Outline_Get_Bitmap FT_Outline_Get_CBox FT_Outline_Get_Orientation FT_Outline_GetInsideBorder FT_Outline_GetOutsideBorder FT_OUTLINE_H FT_OUTLINE_HIGH_PRECISION FT_OUTLINE_IGNORE_DROPOUTS FT_OUTLINE_INCLUDE_STUBS FT_Outline_LineToFunc FT_Outline_MoveToFunc FT_Outline_New FT_OUTLINE_NONE FT_OUTLINE_OVERLAP FT_OUTLINE_OWNER FT_Outline_Render FT_Outline_Reverse FT_OUTLINE_REVERSE_FILL FT_OUTLINE_SINGLE_PASS FT_OUTLINE_SMART_DROPOUTS FT_Outline_Transform FT_Outline_Translate FT_OUTLINE_XXX FT_OutlineGlyph FT_OutlineGlyphRec FT_Palette_Data FT_Palette_Data_Get FT_PALETTE_FOR_DARK_BACKGROUND FT_PALETTE_FOR_LIGHT_BACKGROUND FT_Palette_Select FT_Palette_Set_Foreground_Color FT_PALETTE_XXX FT_PARAM_TAG_IGNORE_TYPOGRAPHIC_FAMILY FT_PARAM_TAG_IGNORE_TYPOGRAPHIC_SUBFAMILY FT_PARAM_TAG_INCREMENTAL FT_PARAM_TAG_LCD_FILTER_WEIGHTS FT_PARAM_TAG_RANDOM_SEED FT_PARAM_TAG_STEM_DARKENING FT_PARAM_TAG_UNPATENTED_HINTING FT_Parameter FT_PCF_DRIVER_H FT_PFR_H FT_Pixel_Mode FT_PIXEL_MODE_BGRA FT_PIXEL_MODE_GRAY FT_PIXEL_MODE_GRAY2 FT_PIXEL_MODE_GRAY4 FT_PIXEL_MODE_LCD FT_PIXEL_MODE_LCD_V FT_PIXEL_MODE_MONO FT_PIXEL_MODE_NONE FT_Pointer FT_Pos FT_Prop_GlyphToScriptMap FT_Prop_IncreaseXHeight FT_Property_Get FT_Property_Set FT_PtrDist FT_Raster FT_Raster_BitSet_Func FT_Raster_BitTest_Func FT_Raster_DoneFunc FT_RASTER_FLAG_AA FT_RASTER_FLAG_CLIP FT_RASTER_FLAG_DEFAULT FT_RASTER_FLAG_DIRECT FT_RASTER_FLAG_XXX FT_Raster_Funcs FT_Raster_NewFunc FT_Raster_Params FT_Raster_RenderFunc FT_Raster_ResetFunc FT_Raster_SetModeFunc FT_Realloc_Func FT_Reference_Face FT_Reference_Library FT_Remove_Module FT_Render_Glyph FT_RENDER_H FT_Render_Mode FT_RENDER_MODE_LCD FT_RENDER_MODE_LCD_V FT_RENDER_MODE_LIGHT FT_RENDER_MODE_MONO FT_RENDER_MODE_NORMAL FT_Renderer FT_Renderer_Class FT_Request_Size FT_RoundFix FT_Select_Charmap FT_Select_Size FT_Set_Char_Size FT_Set_Charmap FT_Set_Debug_Hook FT_Set_Default_Properties FT_Set_MM_Blend_Coordinates FT_Set_MM_Design_Coordinates FT_Set_MM_WeightVector FT_Set_Named_Instance FT_Set_Pixel_Sizes FT_Set_Renderer FT_Set_Transform FT_Set_Var_Blend_Coordinates FT_Set_Var_Design_Coordinates FT_SFNT_HEAD FT_SFNT_HHEA FT_SFNT_MAXP FT_SFNT_NAMES_H FT_SFNT_OS2 FT_SFNT_PCLT FT_SFNT_POST FT_Sfnt_Table_Info FT_Sfnt_Tag FT_SFNT_VHEA FT_SfntLangTag FT_SfntName FT_Short FT_Sin FT_Size FT_Size_Internal FT_Size_Metrics FT_Size_Request FT_Size_Request_Type FT_SIZE_REQUEST_TYPE_BBOX FT_SIZE_REQUEST_TYPE_CELL FT_SIZE_REQUEST_TYPE_NOMINAL FT_SIZE_REQUEST_TYPE_REAL_DIM FT_SIZE_REQUEST_TYPE_SCALES FT_Size_RequestRec FT_SizeRec FT_SIZES_H FT_Slot_Internal FT_Span FT_SpanFunc FT_Stream FT_Stream_CloseFunc FT_Stream_IoFunc FT_Stream_OpenBzip2 FT_Stream_OpenGzip FT_Stream_OpenLZW FT_StreamDesc FT_StreamRec FT_String FT_Stroker FT_Stroker_BeginSubPath FT_STROKER_BORDER_LEFT FT_STROKER_BORDER_RIGHT FT_Stroker_ConicTo FT_Stroker_CubicTo FT_Stroker_Done FT_Stroker_EndSubPath FT_Stroker_Export FT_Stroker_ExportBorder FT_Stroker_GetBorderCounts FT_Stroker_GetCounts FT_STROKER_H FT_Stroker_LineCap FT_STROKER_LINECAP_BUTT FT_STROKER_LINECAP_ROUND FT_STROKER_LINECAP_SQUARE FT_Stroker_LineJoin FT_STROKER_LINEJOIN_BEVEL FT_STROKER_LINEJOIN_MITER FT_STROKER_LINEJOIN_MITER_FIXED FT_STROKER_LINEJOIN_MITER_VARIABLE FT_STROKER_LINEJOIN_ROUND FT_Stroker_LineTo FT_Stroker_New FT_Stroker_ParseOutline FT_Stroker_Rewind FT_Stroker_Set FT_StrokerBorder FT_STYLE_FLAG_BOLD FT_STYLE_FLAG_ITALIC FT_STYLE_FLAG_XXX FT_SubGlyph FT_SUBGLYPH_FLAG_2X2 FT_SUBGLYPH_FLAG_ARGS_ARE_WORDS FT_SUBGLYPH_FLAG_ARGS_ARE_XY_VALUES FT_SUBGLYPH_FLAG_ROUND_XY_TO_GRID FT_SUBGLYPH_FLAG_SCALE FT_SUBGLYPH_FLAG_USE_MY_METRICS FT_SUBGLYPH_FLAG_XXX FT_SUBGLYPH_FLAG_XY_SCALE FT_SYNTHESIS_H FT_SYSTEM_H FT_Tag FT_Tan FT_TRIGONOMETRY_H FT_TRUETYPE_DRIVER_H FT_TRUETYPE_ENGINE_TYPE_NONE FT_TRUETYPE_ENGINE_TYPE_PATENTED FT_TRUETYPE_ENGINE_TYPE_UNPATENTED FT_TRUETYPE_IDS_H FT_TRUETYPE_TABLES_H FT_TRUETYPE_TAGS_H FT_TrueTypeEngineType FT_TrueTypeGX_Free FT_TrueTypeGX_Validate FT_TYPE1_TABLES_H FT_TYPES_H FT_UFWord FT_UInt FT_UInt16 FT_UInt32 FT_UInt64 FT_ULong FT_UnitVector FT_UShort FT_VALIDATE_APPLE FT_VALIDATE_BASE FT_VALIDATE_bsln FT_VALIDATE_CKERN FT_VALIDATE_CKERNXXX FT_VALIDATE_feat FT_VALIDATE_GDEF FT_VALIDATE_GPOS FT_VALIDATE_GSUB FT_VALIDATE_GX FT_VALIDATE_GX_LENGTH FT_VALIDATE_GXXXX FT_VALIDATE_JSTF FT_VALIDATE_just FT_VALIDATE_kern FT_VALIDATE_lcar FT_VALIDATE_MATH FT_VALIDATE_mort FT_VALIDATE_morx FT_VALIDATE_MS FT_VALIDATE_opbd FT_VALIDATE_OT FT_VALIDATE_OTXXX FT_VALIDATE_prop FT_VALIDATE_trak FT_Var_Axis FT_VAR_AXIS_FLAG_HIDDEN FT_VAR_AXIS_FLAG_XXX FT_Var_Named_Style FT_Vector FT_Vector_From_Polar FT_Vector_Length FT_Vector_Polarize FT_Vector_Rotate FT_Vector_Transform FT_Vector_Unit FT_WinFNT_Header FT_WinFNT_HeaderRec FT_WinFNT_ID_CP1250 FT_WinFNT_ID_CP1251 FT_WinFNT_ID_CP1252 FT_WinFNT_ID_CP1253 FT_WinFNT_ID_CP1254 FT_WinFNT_ID_CP1255 FT_WinFNT_ID_CP1256 FT_WinFNT_ID_CP1257 FT_WinFNT_ID_CP1258 FT_WinFNT_ID_CP1361 FT_WinFNT_ID_CP874 FT_WinFNT_ID_CP932 FT_WinFNT_ID_CP936 FT_WinFNT_ID_CP949 FT_WinFNT_ID_CP950 FT_WinFNT_ID_DEFAULT FT_WinFNT_ID_MAC FT_WinFNT_ID_OEM FT_WinFNT_ID_SYMBOL FT_WinFNT_ID_XXX FT_WINFONTS_H FTC_CMapCache FTC_CMapCache_Lookup FTC_CMapCache_New FTC_Face_Requester FTC_FaceID FTC_ImageCache FTC_ImageCache_Lookup FTC_ImageCache_LookupScaler FTC_ImageCache_New FTC_ImageType FTC_ImageTypeRec FTC_Manager FTC_Manager_Done FTC_Manager_LookupFace FTC_Manager_LookupSize FTC_Manager_New FTC_Manager_RemoveFaceID FTC_Manager_Reset FTC_Node FTC_Node_Unref FTC_SBit FTC_SBitCache FTC_SBitCache_Lookup FTC_SBitCache_LookupScaler FTC_SBitCache_New FTC_SBitRec FTC_Scaler FTC_ScalerRec","title":"F"},{"location":"ft2-index.html#g","text":"glyph-to-script-map","title":"G"},{"location":"ft2-index.html#h","text":"hinting-engine","title":"H"},{"location":"ft2-index.html#i","text":"increase-x-height interpreter-version","title":"I"},{"location":"ft2-index.html#n","text":"no-long-family-names no-stem-darkening","title":"N"},{"location":"ft2-index.html#p","text":"PS_DICT_BLUE_FUZZ PS_DICT_BLUE_SCALE PS_DICT_BLUE_SHIFT PS_DICT_BLUE_VALUE PS_DICT_CHAR_STRING PS_DICT_CHAR_STRING_KEY PS_DICT_ENCODING_ENTRY PS_DICT_ENCODING_TYPE PS_DICT_FAMILY_BLUE PS_DICT_FAMILY_NAME PS_DICT_FAMILY_OTHER_BLUE PS_DICT_FONT_BBOX PS_DICT_FONT_MATRIX PS_DICT_FONT_NAME PS_DICT_FONT_TYPE PS_DICT_FORCE_BOLD PS_DICT_FS_TYPE PS_DICT_FULL_NAME PS_DICT_IS_FIXED_PITCH PS_DICT_ITALIC_ANGLE PS_Dict_Keys PS_DICT_LANGUAGE_GROUP PS_DICT_LEN_IV PS_DICT_MIN_FEATURE PS_DICT_NOTICE PS_DICT_NUM_BLUE_VALUES PS_DICT_NUM_CHAR_STRINGS PS_DICT_NUM_FAMILY_BLUES PS_DICT_NUM_FAMILY_OTHER_BLUES PS_DICT_NUM_OTHER_BLUES PS_DICT_NUM_STEM_SNAP_H PS_DICT_NUM_STEM_SNAP_V PS_DICT_NUM_SUBRS PS_DICT_OTHER_BLUE PS_DICT_PAINT_TYPE PS_DICT_PASSWORD PS_DICT_RND_STEM_UP PS_DICT_STD_HW PS_DICT_STD_VW PS_DICT_STEM_SNAP_H PS_DICT_STEM_SNAP_V PS_DICT_SUBR PS_DICT_UNDERLINE_POSITION PS_DICT_UNDERLINE_THICKNESS PS_DICT_UNIQUE_ID PS_DICT_VERSION PS_DICT_WEIGHT PS_FontInfo PS_FontInfoRec PS_Private PS_PrivateRec","title":"P"},{"location":"ft2-index.html#r","text":"random-seed","title":"R"},{"location":"ft2-index.html#t","text":"T1_BLEND_BLUE_SCALE T1_BLEND_BLUE_SHIFT T1_BLEND_BLUE_VALUES T1_BLEND_FAMILY_BLUES T1_BLEND_FAMILY_OTHER_BLUES T1_Blend_Flags T1_BLEND_FORCE_BOLD T1_BLEND_ITALIC_ANGLE T1_BLEND_OTHER_BLUES T1_BLEND_STANDARD_HEIGHT T1_BLEND_STANDARD_WIDTH T1_BLEND_STEM_SNAP_HEIGHTS T1_BLEND_STEM_SNAP_WIDTHS T1_BLEND_UNDERLINE_POSITION T1_BLEND_UNDERLINE_THICKNESS T1_ENCODING_TYPE_ARRAY T1_ENCODING_TYPE_EXPERT T1_ENCODING_TYPE_ISOLATIN1 T1_ENCODING_TYPE_NONE T1_ENCODING_TYPE_STANDARD T1_EncodingType T1_FontInfo T1_Private TT_ADOBE_ID_CUSTOM TT_ADOBE_ID_EXPERT TT_ADOBE_ID_LATIN_1 TT_ADOBE_ID_STANDARD TT_ADOBE_ID_XXX TT_APPLE_ID_DEFAULT TT_APPLE_ID_FULL_UNICODE TT_APPLE_ID_ISO_10646 TT_APPLE_ID_UNICODE_1_1 TT_APPLE_ID_UNICODE_2_0 TT_APPLE_ID_UNICODE_32 TT_APPLE_ID_VARIANT_SELECTOR TT_APPLE_ID_XXX TT_Header TT_HoriHeader TT_INTERPRETER_VERSION_35 TT_INTERPRETER_VERSION_38 TT_INTERPRETER_VERSION_40 TT_INTERPRETER_VERSION_XXX TT_ISO_ID_10646 TT_ISO_ID_7BIT_ASCII TT_ISO_ID_8859_1 TT_ISO_ID_XXX TT_MAC_ID_XXX TT_MAC_LANGID_XXX TT_MaxProfile TT_MS_ID_BIG_5 TT_MS_ID_JOHAB TT_MS_ID_PRC TT_MS_ID_SJIS TT_MS_ID_SYMBOL_CS TT_MS_ID_UCS_4 TT_MS_ID_UNICODE_CS TT_MS_ID_WANSUNG TT_MS_ID_XXX TT_MS_LANGID_XXX TT_NAME_ID_XXX TT_OS2 TT_PCLT TT_PLATFORM_ADOBE TT_PLATFORM_APPLE_UNICODE TT_PLATFORM_CUSTOM TT_PLATFORM_ISO TT_PLATFORM_MACINTOSH TT_PLATFORM_MICROSOFT TT_PLATFORM_XXX TT_Postscript TT_UCR_XXX TT_VertHeader","title":"T"},{"location":"ft2-index.html#w","text":"warping generated on Tue Oct 20 05:14:52 2020 UTC","title":"W"},{"location":"ft2-layer_management.html","text":"FreeType \u00bb Docs \u00bb Core API \u00bb Glyph Layer Management Glyph Layer Management \u00b6 Synopsis \u00b6 The functions described here allow access of colored glyph layer data in OpenType's \u2018COLR\u2019 tables. FT_LayerIterator \u00b6 Defined in FT_FREETYPE_H (freetype/freetype.h). typedef struct FT_LayerIterator_ { FT_UInt num_layers; FT_UInt layer; FT_Byte * p; } FT_LayerIterator ; This iterator object is needed for FT_Get_Color_Glyph_Layer . fields num_layers The number of glyph layers for the requested glyph index. Will be set by FT_Get_Color_Glyph_Layer . layer The current layer. Will be set by FT_Get_Color_Glyph_Layer . p An opaque pointer into \u2018COLR\u2019 table data. The caller must set this to NULL before the first call of FT_Get_Color_Glyph_Layer . FT_Get_Color_Glyph_Layer \u00b6 Defined in FT_FREETYPE_H (freetype/freetype.h). FT_EXPORT( FT_Bool ) FT_Get_Color_Glyph_Layer ( FT_Face face, FT_UInt base_glyph, FT_UInt *aglyph_index, FT_UInt *acolor_index, FT_LayerIterator * iterator ); This is an interface to the \u2018COLR\u2019 table in OpenType fonts to iteratively retrieve the colored glyph layers associated with the current glyph slot. https://docs.microsoft.com/en-us/typography/opentype/spec/colr The glyph layer data for a given glyph index, if present, provides an alternative, multi-color glyph representation: Instead of rendering the outline or bitmap with the given glyph index, glyphs with the indices and colors returned by this function are rendered layer by layer. The returned elements are ordered in the z direction from bottom to top; the 'n'th element should be rendered with the associated palette color and blended on top of the already rendered layers (elements 0, 1, ..., n-1). input face A handle to the parent face object. base_glyph The glyph index the colored glyph layers are associated with. inout iterator An FT_LayerIterator object. For the first call you should set iterator->p to NULL . For all following calls, simply use the same object again. output aglyph_index The glyph index of the current layer. acolor_index The color index into the font face's color palette of the current layer. The value 0xFFFF is special; it doesn't reference a palette entry but indicates that the text foreground color should be used instead (to be set up by the application outside of FreeType). The color palette can be retrieved with FT_Palette_Select . return Value 1 if everything is OK. If there are no more layers (or if there are no layers at all), value 0 gets returned. In case of an error, value 0 is returned also. note This function is necessary if you want to handle glyph layers by yourself. In particular, functions that operate with FT_GlyphRec objects (like FT_Get_Glyph or FT_Glyph_To_Bitmap ) don't have access to this information. Note that FT_Render_Glyph is able to handle colored glyph layers automatically if the FT_LOAD_COLOR flag is passed to a previous call to FT_Load_Glyph . [This is an experimental feature.] example FT_Color* palette; FT_LayerIterator iterator; FT_Bool have_layers; FT_UInt layer_glyph_index; FT_UInt layer_color_index; error = FT_Palette_Select( face, palette_index, &palette ); if ( error ) palette = NULL; iterator.p = NULL; have_layers = FT_Get_Color_Glyph_Layer( face, glyph_index, &layer_glyph_index, &layer_color_index, &iterator ); if ( palette && have_layers ) { do { FT_Color layer_color; if ( layer_color_index == 0xFFFF ) layer_color = text_foreground_color; else layer_color = palette[layer_color_index]; // Load and render glyph `layer_glyph_index', then // blend resulting pixmap (using color `layer_color') // with previously created pixmaps. } while ( FT_Get_Color_Glyph_Layer( face, glyph_index, &layer_glyph_index, &layer_color_index, &iterator ) ); }","title":"Glyph Layer Management"},{"location":"ft2-layer_management.html#glyph-layer-management","text":"","title":"Glyph Layer Management"},{"location":"ft2-layer_management.html#synopsis","text":"The functions described here allow access of colored glyph layer data in OpenType's \u2018COLR\u2019 tables.","title":"Synopsis"},{"location":"ft2-layer_management.html#ft_layeriterator","text":"Defined in FT_FREETYPE_H (freetype/freetype.h). typedef struct FT_LayerIterator_ { FT_UInt num_layers; FT_UInt layer; FT_Byte * p; } FT_LayerIterator ; This iterator object is needed for FT_Get_Color_Glyph_Layer .","title":"FT_LayerIterator"},{"location":"ft2-layer_management.html#ft_get_color_glyph_layer","text":"Defined in FT_FREETYPE_H (freetype/freetype.h). FT_EXPORT( FT_Bool ) FT_Get_Color_Glyph_Layer ( FT_Face face, FT_UInt base_glyph, FT_UInt *aglyph_index, FT_UInt *acolor_index, FT_LayerIterator * iterator ); This is an interface to the \u2018COLR\u2019 table in OpenType fonts to iteratively retrieve the colored glyph layers associated with the current glyph slot. https://docs.microsoft.com/en-us/typography/opentype/spec/colr The glyph layer data for a given glyph index, if present, provides an alternative, multi-color glyph representation: Instead of rendering the outline or bitmap with the given glyph index, glyphs with the indices and colors returned by this function are rendered layer by layer. The returned elements are ordered in the z direction from bottom to top; the 'n'th element should be rendered with the associated palette color and blended on top of the already rendered layers (elements 0, 1, ..., n-1).","title":"FT_Get_Color_Glyph_Layer"},{"location":"ft2-lcd_rendering.html","text":"FreeType \u00bb Docs \u00bb Controlling FreeType Modules \u00bb Subpixel Rendering Subpixel Rendering \u00b6 Synopsis \u00b6 FreeType provides two alternative subpixel rendering technologies. Should you define FT_CONFIG_OPTION_SUBPIXEL_RENDERING in your ftoption.h file, this enables ClearType-style rendering. Otherwise, Harmony LCD rendering is enabled. These technologies are controlled differently and API described below, although always available, performs its function when appropriate method is enabled and does nothing otherwise. ClearType-style LCD rendering exploits the color-striped structure of LCD pixels, increasing the available resolution in the direction of the stripe (usually horizontal RGB) by a factor of 3. Using the subpixels coverages unfiltered can create severe color fringes especially when rendering thin features. Indeed, to produce black-on-white text, the nearby color subpixels must be dimmed equally. A good 5-tap FIR filter should be applied to subpixel coverages regardless of pixel boundaries and should have these properties: It should be symmetrical, like { a, b, c, b, a }, to avoid any shifts in appearance. It should be color-balanced, meaning a + b = c, to reduce color fringes by distributing the computed coverage for one subpixel to all subpixels equally. It should be normalized, meaning 2a + 2b + c = 1.0 to maintain overall brightness. Boxy 3-tap filter {0, \u2153, \u2153, \u2153, 0} is sharper but is less forgiving of non-ideal gamma curves of a screen (and viewing angles), beveled filters are fuzzier but more tolerant. Use the FT_Library_SetLcdFilter or FT_Library_SetLcdFilterWeights API to specify a low-pass filter, which is then applied to subpixel-rendered bitmaps generated through FT_Render_Glyph . Harmony LCD rendering is suitable to panels with any regular subpixel structure, not just monitors with 3 color striped subpixels, as long as the color subpixels have fixed positions relative to the pixel center. In this case, each color channel is then rendered separately after shifting the outline opposite to the subpixel shift so that the coverage maps are aligned. This method is immune to color fringes because the shifts do not change integral coverage. The subpixel geometry must be specified by xy-coordinates for each subpixel. By convention they may come in the RGB order: {{-\u2153, 0}, {0, 0}, {\u2153, 0}} for standard RGB striped panel or {{-\u2159, \u00bc}, {-\u2159, -\u00bc}, {\u2153, 0}} for a certain PenTile panel. Use the FT_Library_SetLcdGeometry API to specify subpixel positions. If one follows the RGB order convention, the same order applies to the resulting FT_PIXEL_MODE_LCD and FT_PIXEL_MODE_LCD_V bitmaps. Note, however, that the coordinate frame for the latter must be rotated clockwise. Harmony with default LCD geometry is equivalent to ClearType with light filter. As a result of ClearType filtering or Harmony rendering, the dimensions of LCD bitmaps can be either wider or taller than the dimensions of the corresponding outline with regard to the pixel grid. For example, for FT_RENDER_MODE_LCD , the filter adds 2 subpixels to the left, and 2 subpixels to the right. The bitmap offset values are adjusted accordingly, so clients shouldn't need to modify their layout and glyph positioning code when enabling the filter. The ClearType and Harmony rendering is applicable to glyph bitmaps rendered through FT_Render_Glyph , FT_Load_Glyph , FT_Load_Char , and FT_Glyph_To_Bitmap , when FT_RENDER_MODE_LCD or FT_RENDER_MODE_LCD_V is specified. This API does not control FT_Outline_Render and FT_Outline_Get_Bitmap . The described algorithms can completely remove color artefacts when combined with gamma-corrected alpha blending in linear space. Each of the 3 alpha values (subpixels) must by independently used to blend one color channel. That is, red alpha blends the red channel of the text color with the red channel of the background pixel. FT_LcdFilter \u00b6 Defined in FT_LCD_FILTER_H (freetype/ftlcdfil.h). typedef enum FT_LcdFilter_ { FT_LCD_FILTER_NONE = 0, FT_LCD_FILTER_DEFAULT = 1, FT_LCD_FILTER_LIGHT = 2, FT_LCD_FILTER_LEGACY1 = 3, FT_LCD_FILTER_LEGACY = 16, FT_LCD_FILTER_MAX /* do not remove */ } FT_LcdFilter ; A list of values to identify various types of LCD filters. values FT_LCD_FILTER_NONE Do not perform filtering. When used with subpixel rendering, this results in sometimes severe color fringes. FT_LCD_FILTER_DEFAULT This is a beveled, normalized, and color-balanced five-tap filter with weights of [0x08 0x4D 0x56 0x4D 0x08] in 1/256th units. FT_LCD_FILTER_LIGHT this is a boxy, normalized, and color-balanced three-tap filter with weights of [0x00 0x55 0x56 0x55 0x00] in 1/256th units. FT_LCD_FILTER_LEGACY FT_LCD_FILTER_LEGACY1 This filter corresponds to the original libXft color filter. It provides high contrast output but can exhibit really bad color fringes if glyphs are not extremely well hinted to the pixel grid. This filter is only provided for comparison purposes, and might be disabled or stay unsupported in the future. The second value is provided for compatibility with FontConfig, which historically used different enumeration, sometimes incorrectly forwarded to FreeType. since 2.3.0 ( FT_LCD_FILTER_LEGACY1 since 2.6.2) FT_Library_SetLcdFilter \u00b6 Defined in FT_LCD_FILTER_H (freetype/ftlcdfil.h). FT_EXPORT( FT_Error ) FT_Library_SetLcdFilter ( FT_Library library, FT_LcdFilter filter ); This function is used to change filter applied to LCD decimated bitmaps, like the ones used when calling FT_Render_Glyph with FT_RENDER_MODE_LCD or FT_RENDER_MODE_LCD_V . input library A handle to the target library instance. filter The filter type. You can use FT_LCD_FILTER_NONE here to disable this feature, or FT_LCD_FILTER_DEFAULT to use a default filter that should work well on most LCD screens. return FreeType error code. 0 means success. note Since 2.10.3 the LCD filtering is enabled with FT_LCD_FILTER_DEFAULT . It is no longer necessary to call this function explicitly except to choose a different filter or disable filtering altogether with FT_LCD_FILTER_NONE . This function does nothing but returns FT_Err_Unimplemented_Feature if the configuration macro FT_CONFIG_OPTION_SUBPIXEL_RENDERING is not defined in your build of the library. since 2.3.0 FT_Library_SetLcdFilterWeights \u00b6 Defined in FT_LCD_FILTER_H (freetype/ftlcdfil.h). FT_EXPORT( FT_Error ) FT_Library_SetLcdFilterWeights ( FT_Library library, unsigned char *weights ); This function can be used to enable LCD filter with custom weights, instead of using presets in FT_Library_SetLcdFilter . input library A handle to the target library instance. weights A pointer to an array; the function copies the first five bytes and uses them to specify the filter weights in 1/256th units. return FreeType error code. 0 means success. note This function does nothing but returns FT_Err_Unimplemented_Feature if the configuration macro FT_CONFIG_OPTION_SUBPIXEL_RENDERING is not defined in your build of the library. LCD filter weights can also be set per face using FT_Face_Properties with FT_PARAM_TAG_LCD_FILTER_WEIGHTS . since 2.4.0 FT_LcdFiveTapFilter \u00b6 Defined in FT_LCD_FILTER_H (freetype/ftlcdfil.h). # define FT_LCD_FILTER_FIVE_TAPS 5 typedef FT_Byte FT_LcdFiveTapFilter [FT_LCD_FILTER_FIVE_TAPS]; A typedef for passing the five LCD filter weights to FT_Face_Properties within an FT_Parameter structure. since 2.8 FT_Library_SetLcdGeometry \u00b6 Defined in FT_LCD_FILTER_H (freetype/ftlcdfil.h). FT_EXPORT( FT_Error ) FT_Library_SetLcdGeometry ( FT_Library library, FT_Vector sub[3] ); This function can be used to modify default positions of color subpixels, which controls Harmony LCD rendering. input library A handle to the target library instance. sub A pointer to an array of 3 vectors in 26.6 fractional pixel format; the function modifies the default values, see the note below. return FreeType error code. 0 means success. note Subpixel geometry examples: {{-21, 0}, {0, 0}, {21, 0}} is the default, corresponding to 3 color stripes shifted by a third of a pixel. This could be an RGB panel. {{21, 0}, {0, 0}, {-21, 0}} looks the same as the default but can specify a BGR panel instead, while keeping the bitmap in the same RGB888 format. {{0, 21}, {0, 0}, {0, -21}} is the vertical RGB, but the bitmap stays RGB888 as a result. {{-11, 16}, {-11, -16}, {22, 0}} is a certain PenTile arrangement. This function does nothing and returns FT_Err_Unimplemented_Feature in the context of ClearType-style subpixel rendering when FT_CONFIG_OPTION_SUBPIXEL_RENDERING is defined in your build of the library. since 2.10.0","title":"Subpixel Rendering"},{"location":"ft2-lcd_rendering.html#subpixel-rendering","text":"","title":"Subpixel Rendering"},{"location":"ft2-lcd_rendering.html#synopsis","text":"FreeType provides two alternative subpixel rendering technologies. Should you define FT_CONFIG_OPTION_SUBPIXEL_RENDERING in your ftoption.h file, this enables ClearType-style rendering. Otherwise, Harmony LCD rendering is enabled. These technologies are controlled differently and API described below, although always available, performs its function when appropriate method is enabled and does nothing otherwise. ClearType-style LCD rendering exploits the color-striped structure of LCD pixels, increasing the available resolution in the direction of the stripe (usually horizontal RGB) by a factor of 3. Using the subpixels coverages unfiltered can create severe color fringes especially when rendering thin features. Indeed, to produce black-on-white text, the nearby color subpixels must be dimmed equally. A good 5-tap FIR filter should be applied to subpixel coverages regardless of pixel boundaries and should have these properties: It should be symmetrical, like { a, b, c, b, a }, to avoid any shifts in appearance. It should be color-balanced, meaning a + b = c, to reduce color fringes by distributing the computed coverage for one subpixel to all subpixels equally. It should be normalized, meaning 2a + 2b + c = 1.0 to maintain overall brightness. Boxy 3-tap filter {0, \u2153, \u2153, \u2153, 0} is sharper but is less forgiving of non-ideal gamma curves of a screen (and viewing angles), beveled filters are fuzzier but more tolerant. Use the FT_Library_SetLcdFilter or FT_Library_SetLcdFilterWeights API to specify a low-pass filter, which is then applied to subpixel-rendered bitmaps generated through FT_Render_Glyph . Harmony LCD rendering is suitable to panels with any regular subpixel structure, not just monitors with 3 color striped subpixels, as long as the color subpixels have fixed positions relative to the pixel center. In this case, each color channel is then rendered separately after shifting the outline opposite to the subpixel shift so that the coverage maps are aligned. This method is immune to color fringes because the shifts do not change integral coverage. The subpixel geometry must be specified by xy-coordinates for each subpixel. By convention they may come in the RGB order: {{-\u2153, 0}, {0, 0}, {\u2153, 0}} for standard RGB striped panel or {{-\u2159, \u00bc}, {-\u2159, -\u00bc}, {\u2153, 0}} for a certain PenTile panel. Use the FT_Library_SetLcdGeometry API to specify subpixel positions. If one follows the RGB order convention, the same order applies to the resulting FT_PIXEL_MODE_LCD and FT_PIXEL_MODE_LCD_V bitmaps. Note, however, that the coordinate frame for the latter must be rotated clockwise. Harmony with default LCD geometry is equivalent to ClearType with light filter. As a result of ClearType filtering or Harmony rendering, the dimensions of LCD bitmaps can be either wider or taller than the dimensions of the corresponding outline with regard to the pixel grid. For example, for FT_RENDER_MODE_LCD , the filter adds 2 subpixels to the left, and 2 subpixels to the right. The bitmap offset values are adjusted accordingly, so clients shouldn't need to modify their layout and glyph positioning code when enabling the filter. The ClearType and Harmony rendering is applicable to glyph bitmaps rendered through FT_Render_Glyph , FT_Load_Glyph , FT_Load_Char , and FT_Glyph_To_Bitmap , when FT_RENDER_MODE_LCD or FT_RENDER_MODE_LCD_V is specified. This API does not control FT_Outline_Render and FT_Outline_Get_Bitmap . The described algorithms can completely remove color artefacts when combined with gamma-corrected alpha blending in linear space. Each of the 3 alpha values (subpixels) must by independently used to blend one color channel. That is, red alpha blends the red channel of the text color with the red channel of the background pixel.","title":"Synopsis"},{"location":"ft2-lcd_rendering.html#ft_lcdfilter","text":"Defined in FT_LCD_FILTER_H (freetype/ftlcdfil.h). typedef enum FT_LcdFilter_ { FT_LCD_FILTER_NONE = 0, FT_LCD_FILTER_DEFAULT = 1, FT_LCD_FILTER_LIGHT = 2, FT_LCD_FILTER_LEGACY1 = 3, FT_LCD_FILTER_LEGACY = 16, FT_LCD_FILTER_MAX /* do not remove */ } FT_LcdFilter ; A list of values to identify various types of LCD filters.","title":"FT_LcdFilter"},{"location":"ft2-lcd_rendering.html#ft_library_setlcdfilter","text":"Defined in FT_LCD_FILTER_H (freetype/ftlcdfil.h). FT_EXPORT( FT_Error ) FT_Library_SetLcdFilter ( FT_Library library, FT_LcdFilter filter ); This function is used to change filter applied to LCD decimated bitmaps, like the ones used when calling FT_Render_Glyph with FT_RENDER_MODE_LCD or FT_RENDER_MODE_LCD_V .","title":"FT_Library_SetLcdFilter"},{"location":"ft2-lcd_rendering.html#ft_library_setlcdfilterweights","text":"Defined in FT_LCD_FILTER_H (freetype/ftlcdfil.h). FT_EXPORT( FT_Error ) FT_Library_SetLcdFilterWeights ( FT_Library library, unsigned char *weights ); This function can be used to enable LCD filter with custom weights, instead of using presets in FT_Library_SetLcdFilter .","title":"FT_Library_SetLcdFilterWeights"},{"location":"ft2-lcd_rendering.html#ft_lcdfivetapfilter","text":"Defined in FT_LCD_FILTER_H (freetype/ftlcdfil.h). # define FT_LCD_FILTER_FIVE_TAPS 5 typedef FT_Byte FT_LcdFiveTapFilter [FT_LCD_FILTER_FIVE_TAPS]; A typedef for passing the five LCD filter weights to FT_Face_Properties within an FT_Parameter structure.","title":"FT_LcdFiveTapFilter"},{"location":"ft2-lcd_rendering.html#ft_library_setlcdgeometry","text":"Defined in FT_LCD_FILTER_H (freetype/ftlcdfil.h). FT_EXPORT( FT_Error ) FT_Library_SetLcdGeometry ( FT_Library library, FT_Vector sub[3] ); This function can be used to modify default positions of color subpixels, which controls Harmony LCD rendering.","title":"FT_Library_SetLcdGeometry"},{"location":"ft2-list_processing.html","text":"FreeType \u00bb Docs \u00bb Support API \u00bb List Processing List Processing \u00b6 Synopsis \u00b6 This section contains various definitions related to list processing using doubly-linked nodes. FT_List \u00b6 Defined in FT_TYPES_H (freetype/fttypes.h). typedef struct FT_ListRec_* FT_List ; A handle to a list record (see FT_ListRec ). FT_ListNode \u00b6 Defined in FT_TYPES_H (freetype/fttypes.h). typedef struct FT_ListNodeRec_* FT_ListNode ; Many elements and objects in FreeType are listed through an FT_List record (see FT_ListRec ). As its name suggests, an FT_ListNode is a handle to a single list element. FT_ListRec \u00b6 Defined in FT_TYPES_H (freetype/fttypes.h). typedef struct FT_ListRec_ { FT_ListNode head; FT_ListNode tail; } FT_ListRec ; A structure used to hold a simple doubly-linked list. These are used in many parts of FreeType. fields head The head (first element) of doubly-linked list. tail The tail (last element) of doubly-linked list. FT_ListNodeRec \u00b6 Defined in FT_TYPES_H (freetype/fttypes.h). typedef struct FT_ListNodeRec_ { FT_ListNode prev; FT_ListNode next; void * data; } FT_ListNodeRec ; A structure used to hold a single list element. fields prev The previous element in the list. NULL if first. next The next element in the list. NULL if last. data A typeless pointer to the listed object. FT_List_Add \u00b6 Defined in FT_LIST_H (freetype/ftlist.h). FT_EXPORT( void ) FT_List_Add ( FT_List list, FT_ListNode node ); Append an element to the end of a list. inout list A pointer to the parent list. node The node to append. FT_List_Insert \u00b6 Defined in FT_LIST_H (freetype/ftlist.h). FT_EXPORT( void ) FT_List_Insert ( FT_List list, FT_ListNode node ); Insert an element at the head of a list. inout list A pointer to parent list. node The node to insert. FT_List_Find \u00b6 Defined in FT_LIST_H (freetype/ftlist.h). FT_EXPORT( FT_ListNode ) FT_List_Find ( FT_List list, void * data ); Find the list node for a given listed object. input list A pointer to the parent list. data The address of the listed object. return List node. NULL if it wasn't found. FT_List_Remove \u00b6 Defined in FT_LIST_H (freetype/ftlist.h). FT_EXPORT( void ) FT_List_Remove ( FT_List list, FT_ListNode node ); Remove a node from a list. This function doesn't check whether the node is in the list! input node The node to remove. inout list A pointer to the parent list. FT_List_Up \u00b6 Defined in FT_LIST_H (freetype/ftlist.h). FT_EXPORT( void ) FT_List_Up ( FT_List list, FT_ListNode node ); Move a node to the head/top of a list. Used to maintain LRU lists. inout list A pointer to the parent list. node The node to move. FT_List_Iterate \u00b6 Defined in FT_LIST_H (freetype/ftlist.h). FT_EXPORT( FT_Error ) FT_List_Iterate ( FT_List list, FT_List_Iterator iterator, void * user ); Parse a list and calls a given iterator function on each element. Note that parsing is stopped as soon as one of the iterator calls returns a non-zero value. input list A handle to the list. iterator An iterator function, called on each node of the list. user A user-supplied field that is passed as the second argument to the iterator. return The result (a FreeType error code) of the last iterator call. FT_List_Iterator \u00b6 Defined in FT_LIST_H (freetype/ftlist.h). typedef FT_Error (* FT_List_Iterator )( FT_ListNode node, void * user ); An FT_List iterator function that is called during a list parse by FT_List_Iterate . input node The current iteration list node. user A typeless pointer passed to FT_List_Iterate . Can be used to point to the iteration's state. FT_List_Finalize \u00b6 Defined in FT_LIST_H (freetype/ftlist.h). FT_EXPORT( void ) FT_List_Finalize ( FT_List list, FT_List_Destructor destroy, FT_Memory memory, void * user ); Destroy all elements in the list as well as the list itself. input list A handle to the list. destroy A list destructor that will be applied to each element of the list. Set this to NULL if not needed. memory The current memory object that handles deallocation. user A user-supplied field that is passed as the last argument to the destructor. note This function expects that all nodes added by FT_List_Add or FT_List_Insert have been dynamically allocated. FT_List_Destructor \u00b6 Defined in FT_LIST_H (freetype/ftlist.h). typedef void (* FT_List_Destructor )( FT_Memory memory, void * data, void * user ); An FT_List iterator function that is called during a list finalization by FT_List_Finalize to destroy all elements in a given list. input system The current system object. data The current object to destroy. user A typeless pointer passed to FT_List_Iterate . It can be used to point to the iteration's state.","title":"List Processing"},{"location":"ft2-list_processing.html#list-processing","text":"","title":"List Processing"},{"location":"ft2-list_processing.html#synopsis","text":"This section contains various definitions related to list processing using doubly-linked nodes.","title":"Synopsis"},{"location":"ft2-list_processing.html#ft_list","text":"Defined in FT_TYPES_H (freetype/fttypes.h). typedef struct FT_ListRec_* FT_List ; A handle to a list record (see FT_ListRec ).","title":"FT_List"},{"location":"ft2-list_processing.html#ft_listnode","text":"Defined in FT_TYPES_H (freetype/fttypes.h). typedef struct FT_ListNodeRec_* FT_ListNode ; Many elements and objects in FreeType are listed through an FT_List record (see FT_ListRec ). As its name suggests, an FT_ListNode is a handle to a single list element.","title":"FT_ListNode"},{"location":"ft2-list_processing.html#ft_listrec","text":"Defined in FT_TYPES_H (freetype/fttypes.h). typedef struct FT_ListRec_ { FT_ListNode head; FT_ListNode tail; } FT_ListRec ; A structure used to hold a simple doubly-linked list. These are used in many parts of FreeType.","title":"FT_ListRec"},{"location":"ft2-list_processing.html#ft_listnoderec","text":"Defined in FT_TYPES_H (freetype/fttypes.h). typedef struct FT_ListNodeRec_ { FT_ListNode prev; FT_ListNode next; void * data; } FT_ListNodeRec ; A structure used to hold a single list element.","title":"FT_ListNodeRec"},{"location":"ft2-list_processing.html#ft_list_add","text":"Defined in FT_LIST_H (freetype/ftlist.h). FT_EXPORT( void ) FT_List_Add ( FT_List list, FT_ListNode node ); Append an element to the end of a list.","title":"FT_List_Add"},{"location":"ft2-list_processing.html#ft_list_insert","text":"Defined in FT_LIST_H (freetype/ftlist.h). FT_EXPORT( void ) FT_List_Insert ( FT_List list, FT_ListNode node ); Insert an element at the head of a list.","title":"FT_List_Insert"},{"location":"ft2-list_processing.html#ft_list_find","text":"Defined in FT_LIST_H (freetype/ftlist.h). FT_EXPORT( FT_ListNode ) FT_List_Find ( FT_List list, void * data ); Find the list node for a given listed object.","title":"FT_List_Find"},{"location":"ft2-list_processing.html#ft_list_remove","text":"Defined in FT_LIST_H (freetype/ftlist.h). FT_EXPORT( void ) FT_List_Remove ( FT_List list, FT_ListNode node ); Remove a node from a list. This function doesn't check whether the node is in the list!","title":"FT_List_Remove"},{"location":"ft2-list_processing.html#ft_list_up","text":"Defined in FT_LIST_H (freetype/ftlist.h). FT_EXPORT( void ) FT_List_Up ( FT_List list, FT_ListNode node ); Move a node to the head/top of a list. Used to maintain LRU lists.","title":"FT_List_Up"},{"location":"ft2-list_processing.html#ft_list_iterate","text":"Defined in FT_LIST_H (freetype/ftlist.h). FT_EXPORT( FT_Error ) FT_List_Iterate ( FT_List list, FT_List_Iterator iterator, void * user ); Parse a list and calls a given iterator function on each element. Note that parsing is stopped as soon as one of the iterator calls returns a non-zero value.","title":"FT_List_Iterate"},{"location":"ft2-list_processing.html#ft_list_iterator","text":"Defined in FT_LIST_H (freetype/ftlist.h). typedef FT_Error (* FT_List_Iterator )( FT_ListNode node, void * user ); An FT_List iterator function that is called during a list parse by FT_List_Iterate .","title":"FT_List_Iterator"},{"location":"ft2-list_processing.html#ft_list_finalize","text":"Defined in FT_LIST_H (freetype/ftlist.h). FT_EXPORT( void ) FT_List_Finalize ( FT_List list, FT_List_Destructor destroy, FT_Memory memory, void * user ); Destroy all elements in the list as well as the list itself.","title":"FT_List_Finalize"},{"location":"ft2-list_processing.html#ft_list_destructor","text":"Defined in FT_LIST_H (freetype/ftlist.h). typedef void (* FT_List_Destructor )( FT_Memory memory, void * data, void * user ); An FT_List iterator function that is called during a list finalization by FT_List_Finalize to destroy all elements in a given list.","title":"FT_List_Destructor"},{"location":"ft2-lzw.html","text":"FreeType \u00bb Docs \u00bb Support API \u00bb LZW Streams LZW Streams \u00b6 Synopsis \u00b6 In certain builds of the library, LZW compression recognition is automatically handled when calling FT_New_Face or FT_Open_Face . This means that if no font driver is capable of handling the raw compressed file, the library will try to open a LZW stream from it and re-open the face with it. The stream implementation is very basic and resets the decompression process each time seeking backwards is needed within the stream, which significantly undermines the performance. This section contains the declaration of LZW-specific functions. FT_Stream_OpenLZW \u00b6 Defined in FT_LZW_H (freetype/ftlzw.h). FT_EXPORT( FT_Error ) FT_Stream_OpenLZW ( FT_Stream stream, FT_Stream source ); Open a new stream to parse LZW-compressed font files. This is mainly used to support the compressed *.pcf.Z fonts that come with XFree86. input stream The target embedding stream. source The source stream. return FreeType error code. 0 means success. note The source stream must be opened before calling this function. Calling the internal function FT_Stream_Close on the new stream will not call FT_Stream_Close on the source stream. None of the stream objects will be released to the heap. This function may return FT_Err_Unimplemented_Feature if your build of FreeType was not compiled with LZW support.","title":"LZW Streams"},{"location":"ft2-lzw.html#lzw-streams","text":"","title":"LZW Streams"},{"location":"ft2-lzw.html#synopsis","text":"In certain builds of the library, LZW compression recognition is automatically handled when calling FT_New_Face or FT_Open_Face . This means that if no font driver is capable of handling the raw compressed file, the library will try to open a LZW stream from it and re-open the face with it. The stream implementation is very basic and resets the decompression process each time seeking backwards is needed within the stream, which significantly undermines the performance. This section contains the declaration of LZW-specific functions.","title":"Synopsis"},{"location":"ft2-lzw.html#ft_stream_openlzw","text":"Defined in FT_LZW_H (freetype/ftlzw.h). FT_EXPORT( FT_Error ) FT_Stream_OpenLZW ( FT_Stream stream, FT_Stream source ); Open a new stream to parse LZW-compressed font files. This is mainly used to support the compressed *.pcf.Z fonts that come with XFree86.","title":"FT_Stream_OpenLZW"},{"location":"ft2-mac_specific.html","text":"FreeType \u00bb Docs \u00bb Core API \u00bb Mac Specific Interface Mac Specific Interface \u00b6 Synopsis \u00b6 The following definitions are only available if FreeType is compiled on a Macintosh. FT_New_Face_From_FOND \u00b6 Defined in FT_MAC_H (freetype/ftmac.h). FT_EXPORT( FT_Error ) FT_New_Face_From_FOND ( FT_Library library, Handle fond, FT_Long face_index, FT_Face *aface ) FT_DEPRECATED_ATTRIBUTE; Create a new face object from a FOND resource. inout library A handle to the library resource. input fond A FOND resource. face_index Only supported for the -1 \u2018sanity check\u2019 special case. output aface A handle to a new face object. return FreeType error code. 0 means success. example This function can be used to create FT_Face objects from fonts that are installed in the system as follows. fond = GetResource( 'FOND', fontName ); error = FT_New_Face_From_FOND( library, fond, 0, &face ); FT_GetFile_From_Mac_Name \u00b6 Defined in FT_MAC_H (freetype/ftmac.h). FT_EXPORT( FT_Error ) FT_GetFile_From_Mac_Name ( const char * fontName, FSSpec* pathSpec, FT_Long * face_index ) FT_DEPRECATED_ATTRIBUTE; Return an FSSpec for the disk file containing the named font. input fontName Mac OS name of the font (e.g., Times New Roman Bold). output pathSpec FSSpec to the file. For passing to FT_New_Face_From_FSSpec . face_index Index of the face. For passing to FT_New_Face_From_FSSpec . return FreeType error code. 0 means success. FT_GetFile_From_Mac_ATS_Name \u00b6 Defined in FT_MAC_H (freetype/ftmac.h). FT_EXPORT( FT_Error ) FT_GetFile_From_Mac_ATS_Name ( const char * fontName, FSSpec* pathSpec, FT_Long * face_index ) FT_DEPRECATED_ATTRIBUTE; Return an FSSpec for the disk file containing the named font. input fontName Mac OS name of the font in ATS framework. output pathSpec FSSpec to the file. For passing to FT_New_Face_From_FSSpec . face_index Index of the face. For passing to FT_New_Face_From_FSSpec . return FreeType error code. 0 means success. FT_GetFilePath_From_Mac_ATS_Name \u00b6 Defined in FT_MAC_H (freetype/ftmac.h). FT_EXPORT( FT_Error ) FT_GetFilePath_From_Mac_ATS_Name ( const char * fontName, UInt8* path, UInt32 maxPathSize, FT_Long * face_index ) FT_DEPRECATED_ATTRIBUTE; Return a pathname of the disk file and face index for given font name that is handled by ATS framework. input fontName Mac OS name of the font in ATS framework. output path Buffer to store pathname of the file. For passing to FT_New_Face . The client must allocate this buffer before calling this function. maxPathSize Lengths of the buffer path that client allocated. face_index Index of the face. For passing to FT_New_Face . return FreeType error code. 0 means success. FT_New_Face_From_FSSpec \u00b6 Defined in FT_MAC_H (freetype/ftmac.h). FT_EXPORT( FT_Error ) FT_New_Face_From_FSSpec ( FT_Library library, const FSSpec *spec, FT_Long face_index, FT_Face *aface ) FT_DEPRECATED_ATTRIBUTE; Create a new face object from a given resource and typeface index using an FSSpec to the font file. inout library A handle to the library resource. input spec FSSpec to the font file. face_index The index of the face within the resource. The first face has index 0. output aface A handle to a new face object. return FreeType error code. 0 means success. note FT_New_Face_From_FSSpec is identical to FT_New_Face except it accepts an FSSpec instead of a path. FT_New_Face_From_FSRef \u00b6 Defined in FT_MAC_H (freetype/ftmac.h). FT_EXPORT( FT_Error ) FT_New_Face_From_FSRef ( FT_Library library, const FSRef *ref, FT_Long face_index, FT_Face *aface ) FT_DEPRECATED_ATTRIBUTE; Create a new face object from a given resource and typeface index using an FSRef to the font file. inout library A handle to the library resource. input spec FSRef to the font file. face_index The index of the face within the resource. The first face has index 0. output aface A handle to a new face object. return FreeType error code. 0 means success. note FT_New_Face_From_FSRef is identical to FT_New_Face except it accepts an FSRef instead of a path.","title":"Mac Specific Interface"},{"location":"ft2-mac_specific.html#mac-specific-interface","text":"","title":"Mac Specific Interface"},{"location":"ft2-mac_specific.html#synopsis","text":"The following definitions are only available if FreeType is compiled on a Macintosh.","title":"Synopsis"},{"location":"ft2-mac_specific.html#ft_new_face_from_fond","text":"Defined in FT_MAC_H (freetype/ftmac.h). FT_EXPORT( FT_Error ) FT_New_Face_From_FOND ( FT_Library library, Handle fond, FT_Long face_index, FT_Face *aface ) FT_DEPRECATED_ATTRIBUTE; Create a new face object from a FOND resource.","title":"FT_New_Face_From_FOND"},{"location":"ft2-mac_specific.html#ft_getfile_from_mac_name","text":"Defined in FT_MAC_H (freetype/ftmac.h). FT_EXPORT( FT_Error ) FT_GetFile_From_Mac_Name ( const char * fontName, FSSpec* pathSpec, FT_Long * face_index ) FT_DEPRECATED_ATTRIBUTE; Return an FSSpec for the disk file containing the named font.","title":"FT_GetFile_From_Mac_Name"},{"location":"ft2-mac_specific.html#ft_getfile_from_mac_ats_name","text":"Defined in FT_MAC_H (freetype/ftmac.h). FT_EXPORT( FT_Error ) FT_GetFile_From_Mac_ATS_Name ( const char * fontName, FSSpec* pathSpec, FT_Long * face_index ) FT_DEPRECATED_ATTRIBUTE; Return an FSSpec for the disk file containing the named font.","title":"FT_GetFile_From_Mac_ATS_Name"},{"location":"ft2-mac_specific.html#ft_getfilepath_from_mac_ats_name","text":"Defined in FT_MAC_H (freetype/ftmac.h). FT_EXPORT( FT_Error ) FT_GetFilePath_From_Mac_ATS_Name ( const char * fontName, UInt8* path, UInt32 maxPathSize, FT_Long * face_index ) FT_DEPRECATED_ATTRIBUTE; Return a pathname of the disk file and face index for given font name that is handled by ATS framework.","title":"FT_GetFilePath_From_Mac_ATS_Name"},{"location":"ft2-mac_specific.html#ft_new_face_from_fsspec","text":"Defined in FT_MAC_H (freetype/ftmac.h). FT_EXPORT( FT_Error ) FT_New_Face_From_FSSpec ( FT_Library library, const FSSpec *spec, FT_Long face_index, FT_Face *aface ) FT_DEPRECATED_ATTRIBUTE; Create a new face object from a given resource and typeface index using an FSSpec to the font file.","title":"FT_New_Face_From_FSSpec"},{"location":"ft2-mac_specific.html#ft_new_face_from_fsref","text":"Defined in FT_MAC_H (freetype/ftmac.h). FT_EXPORT( FT_Error ) FT_New_Face_From_FSRef ( FT_Library library, const FSRef *ref, FT_Long face_index, FT_Face *aface ) FT_DEPRECATED_ATTRIBUTE; Create a new face object from a given resource and typeface index using an FSRef to the font file.","title":"FT_New_Face_From_FSRef"},{"location":"ft2-module_management.html","text":"FreeType \u00bb Docs \u00bb Support API \u00bb Module Management Module Management \u00b6 Synopsis \u00b6 The definitions below are used to manage modules within FreeType. Modules can be added, upgraded, and removed at runtime. Additionally, some module properties can be controlled also. Here is a list of possible values of the module_name field in the FT_Module_Class structure. autofitter bdf cff gxvalid otvalid pcf pfr psaux pshinter psnames raster1 sfnt smooth truetype type1 type42 t1cid winfonts Note that the FreeType Cache sub-system is not a FreeType module. FT_Module \u00b6 Defined in FT_FREETYPE_H (freetype/freetype.h). typedef struct FT_ModuleRec_* FT_Module ; A handle to a given FreeType module object. A module can be a font driver, a renderer, or anything else that provides services to the former. FT_Module_Constructor \u00b6 Defined in FT_MODULE_H (freetype/ftmodapi.h). typedef FT_Error (* FT_Module_Constructor )( FT_Module module ); A function used to initialize (not create) a new module object. input module The module to initialize. FT_Module_Destructor \u00b6 Defined in FT_MODULE_H (freetype/ftmodapi.h). typedef void (* FT_Module_Destructor )( FT_Module module ); A function used to finalize (not destroy) a given module object. input module The module to finalize. FT_Module_Requester \u00b6 Defined in FT_MODULE_H (freetype/ftmodapi.h). typedef FT_Module_Interface (* FT_Module_Requester )( FT_Module module, const char * name ); A function used to query a given module for a specific interface. input module The module to be searched. name The name of the interface in the module. FT_Module_Class \u00b6 Defined in FT_MODULE_H (freetype/ftmodapi.h). typedef struct FT_Module_Class_ { FT_ULong module_flags; FT_Long module_size; const FT_String * module_name; FT_Fixed module_version; FT_Fixed module_requires; const void * module_interface; FT_Module_Constructor module_init; FT_Module_Destructor module_done; FT_Module_Requester get_interface; } FT_Module_Class ; The module class descriptor. While being a public structure necessary for FreeType's module bookkeeping, most of the fields are essentially internal, not to be used directly by an application. fields module_flags Bit flags describing the module. module_size The size of one module object/instance in bytes. module_name The name of the module. module_version The version, as a 16.16 fixed number (major.minor). module_requires The version of FreeType this module requires, as a 16.16 fixed number (major.minor). Starts at version 2.0, i.e., 0x20000. module_interface A typeless pointer to a structure (which varies between different modules) that holds the module's interface functions. This is essentially what get_interface returns. module_init The initializing function. module_done The finalizing function. get_interface The interface requesting function. FT_Add_Module \u00b6 Defined in FT_MODULE_H (freetype/ftmodapi.h). FT_EXPORT( FT_Error ) FT_Add_Module ( FT_Library library, const FT_Module_Class * clazz ); Add a new module to a given library instance. inout library A handle to the library object. input clazz A pointer to class descriptor for the module. return FreeType error code. 0 means success. note An error will be returned if a module already exists by that name, or if the module requires a version of FreeType that is too great. FT_Get_Module \u00b6 Defined in FT_MODULE_H (freetype/ftmodapi.h). FT_EXPORT( FT_Module ) FT_Get_Module ( FT_Library library, const char * module_name ); Find a module by its name. input library A handle to the library object. module_name The module's name (as an ASCII string). return A module handle. 0 if none was found. note FreeType's internal modules aren't documented very well, and you should look up the source code for details. FT_Remove_Module \u00b6 Defined in FT_MODULE_H (freetype/ftmodapi.h). FT_EXPORT( FT_Error ) FT_Remove_Module ( FT_Library library, FT_Module module ); Remove a given module from a library instance. inout library A handle to a library object. input module A handle to a module object. return FreeType error code. 0 means success. note The module object is destroyed by the function in case of success. FT_Add_Default_Modules \u00b6 Defined in FT_MODULE_H (freetype/ftmodapi.h). FT_EXPORT( void ) FT_Add_Default_Modules ( FT_Library library ); Add the set of default drivers to a given library object. This is only useful when you create a library object with FT_New_Library (usually to plug a custom memory manager). inout library A handle to a new library object. FT_Property_Set \u00b6 Defined in FT_MODULE_H (freetype/ftmodapi.h). FT_EXPORT( FT_Error ) FT_Property_Set ( FT_Library library, const FT_String * module_name, const FT_String * property_name, const void * value ); Set a property for a given module. input library A handle to the library the module is part of. module_name The module name. property_name The property name. Properties are described in section \u2018 Driver properties \u2019. Note that only a few modules have properties. value A generic pointer to a variable or structure that gives the new value of the property. The exact definition of value is dependent on the property; see section \u2018 Driver properties \u2019. return FreeType error code. 0 means success. note If module_name isn't a valid module name, or property_name doesn't specify a valid property, or if value doesn't represent a valid value for the given property, an error is returned. The following example sets property \u2018bar\u2019 (a simple integer) in module \u2018foo\u2019 to value 1. FT_UInt bar; bar = 1; FT_Property_Set( library, \"foo\", \"bar\", &bar ); Note that the FreeType Cache sub-system doesn't recognize module property changes. To avoid glyph lookup confusion within the cache you should call FTC_Manager_Reset to completely flush the cache if a module property gets changed after FTC_Manager_New has been called. It is not possible to set properties of the FreeType Cache sub-system itself with FT_Property_Set; use ?FTC_Property_Set? instead. since 2.4.11 FT_Property_Get \u00b6 Defined in FT_MODULE_H (freetype/ftmodapi.h). FT_EXPORT( FT_Error ) FT_Property_Get ( FT_Library library, const FT_String * module_name, const FT_String * property_name, void * value ); Get a module's property value. input library A handle to the library the module is part of. module_name The module name. property_name The property name. Properties are described in section \u2018 Driver properties \u2019. inout value A generic pointer to a variable or structure that gives the value of the property. The exact definition of value is dependent on the property; see section \u2018 Driver properties \u2019. return FreeType error code. 0 means success. note If module_name isn't a valid module name, or property_name doesn't specify a valid property, or if value doesn't represent a valid value for the given property, an error is returned. The following example gets property \u2018baz\u2019 (a range) in module \u2018foo\u2019. typedef range_ { FT_Int32 min; FT_Int32 max; } range; range baz; FT_Property_Get( library, \"foo\", \"baz\", &baz ); It is not possible to retrieve properties of the FreeType Cache sub-system with FT_Property_Get; use ?FTC_Property_Get? instead. since 2.4.11 FT_Set_Default_Properties \u00b6 Defined in FT_MODULE_H (freetype/ftmodapi.h). FT_EXPORT( void ) FT_Set_Default_Properties ( FT_Library library ); If compilation option FT_CONFIG_OPTION_ENVIRONMENT_PROPERTIES is set, this function reads the FREETYPE_PROPERTIES environment variable to control driver properties. See section \u2018 Driver properties \u2019 for more. If the compilation option is not set, this function does nothing. FREETYPE_PROPERTIES has the following syntax form (broken here into multiple lines for better readability). <optional whitespace> <module-name1> ':' <property-name1> '=' <property-value1> <whitespace> <module-name2> ':' <property-name2> '=' <property-value2> ... Example: FREETYPE_PROPERTIES=truetype:interpreter-version=35 \\ cff:no-stem-darkening=0 \\ autofitter:warping=1 inout library A handle to a new library object. since 2.8 FT_New_Library \u00b6 Defined in FT_MODULE_H (freetype/ftmodapi.h). FT_EXPORT( FT_Error ) FT_New_Library ( FT_Memory memory, FT_Library *alibrary ); This function is used to create a new FreeType library instance from a given memory object. It is thus possible to use libraries with distinct memory allocators within the same program. Note, however, that the used FT_Memory structure is expected to remain valid for the life of the FT_Library object. Normally, you would call this function (followed by a call to FT_Add_Default_Modules or a series of calls to FT_Add_Module , and a call to FT_Set_Default_Properties ) instead of FT_Init_FreeType to initialize the FreeType library. Don't use FT_Done_FreeType but FT_Done_Library to destroy a library instance. input memory A handle to the original memory object. output alibrary A pointer to handle of a new library object. return FreeType error code. 0 means success. note See the discussion of reference counters in the description of FT_Reference_Library . FT_Done_Library \u00b6 Defined in FT_MODULE_H (freetype/ftmodapi.h). FT_EXPORT( FT_Error ) FT_Done_Library ( FT_Library library ); Discard a given library object. This closes all drivers and discards all resource objects. input library A handle to the target library. return FreeType error code. 0 means success. note See the discussion of reference counters in the description of FT_Reference_Library . FT_Reference_Library \u00b6 Defined in FT_MODULE_H (freetype/ftmodapi.h). FT_EXPORT( FT_Error ) FT_Reference_Library ( FT_Library library ); A counter gets initialized to 1 at the time an FT_Library structure is created. This function increments the counter. FT_Done_Library then only destroys a library if the counter is 1, otherwise it simply decrements the counter. This function helps in managing life-cycles of structures that reference FT_Library objects. input library A handle to a target library object. return FreeType error code. 0 means success. since 2.4.2 FT_Renderer \u00b6 Defined in FT_FREETYPE_H (freetype/freetype.h). typedef struct FT_RendererRec_* FT_Renderer ; A handle to a given FreeType renderer. A renderer is a module in charge of converting a glyph's outline image to a bitmap. It supports a single glyph image format, and one or more target surface depths. FT_Renderer_Class \u00b6 Defined in FT_RENDER_H (freetype/ftrender.h). typedef struct FT_Renderer_Class_ { FT_Module_Class root; FT_Glyph_Format glyph_format; FT_Renderer_RenderFunc render_glyph; FT_Renderer_TransformFunc transform_glyph; FT_Renderer_GetCBoxFunc get_glyph_cbox; FT_Renderer_SetModeFunc set_mode; FT_Raster_Funcs * raster_class; } FT_Renderer_Class ; The renderer module class descriptor. fields root The root FT_Module_Class fields. glyph_format The glyph image format this renderer handles. render_glyph A method used to render the image that is in a given glyph slot into a bitmap. transform_glyph A method used to transform the image that is in a given glyph slot. get_glyph_cbox A method used to access the glyph's cbox. set_mode A method used to pass additional parameters. raster_class For FT_GLYPH_FORMAT_OUTLINE renderers only. This is a pointer to its raster's class. FT_Get_Renderer \u00b6 Defined in FT_RENDER_H (freetype/ftrender.h). FT_EXPORT( FT_Renderer ) FT_Get_Renderer ( FT_Library library, FT_Glyph_Format format ); Retrieve the current renderer for a given glyph format. input library A handle to the library object. format The glyph format. return A renderer handle. 0 if none found. note An error will be returned if a module already exists by that name, or if the module requires a version of FreeType that is too great. To add a new renderer, simply use FT_Add_Module . To retrieve a renderer by its name, use FT_Get_Module . FT_Set_Renderer \u00b6 Defined in FT_RENDER_H (freetype/ftrender.h). FT_EXPORT( FT_Error ) FT_Set_Renderer ( FT_Library library, FT_Renderer renderer, FT_UInt num_params, FT_Parameter * parameters ); Set the current renderer to use, and set additional mode. inout library A handle to the library object. input renderer A handle to the renderer object. num_params The number of additional parameters. parameters Additional parameters. return FreeType error code. 0 means success. note In case of success, the renderer will be used to convert glyph images in the renderer's known format into bitmaps. This doesn't change the current renderer for other formats. Currently, no FreeType renderer module uses parameters ; you should thus always pass NULL as the value. FT_Set_Debug_Hook \u00b6 Defined in FT_MODULE_H (freetype/ftmodapi.h). FT_EXPORT( void ) FT_Set_Debug_Hook ( FT_Library library, FT_UInt hook_index, FT_DebugHook_Func debug_hook ); Set a debug hook function for debugging the interpreter of a font format. While this is a public API function, an application needs access to FreeType's internal header files to do something useful. Have a look at the source code of the ttdebug FreeType demo program for an example of its usage. inout library A handle to the library object. input hook_index The index of the debug hook. You should use defined enumeration macros like FT_DEBUG_HOOK_TRUETYPE . debug_hook The function used to debug the interpreter. note Currently, four debug hook slots are available, but only one (for the TrueType interpreter) is defined. FT_Driver \u00b6 Defined in FT_FREETYPE_H (freetype/freetype.h). typedef struct FT_DriverRec_* FT_Driver ; A handle to a given FreeType font driver object. A font driver is a module capable of creating faces from font files. FT_DebugHook_Func \u00b6 Defined in FT_MODULE_H (freetype/ftmodapi.h). typedef FT_Error (* FT_DebugHook_Func )( void * arg ); A drop-in replacement (or rather a wrapper) for the bytecode or charstring interpreter's main loop function. Its job is essentially to activate debug mode to enforce single-stepping, to call the main loop function to interpret the next opcode, and to show the changed context to the user. An example for such a main loop function is TT_RunIns (declared in FreeType's internal header file src/truetype/ttinterp.h ). Have a look at the source code of the ttdebug FreeType demo program for an example of a drop-in replacement. inout arg A typeless pointer, to be cast to the main loop function's data structure (which depends on the font module). For TrueType fonts it is bytecode interpreter's execution context, TT_ExecContext , which is declared in FreeType's internal header file tttypes.h . FT_DEBUG_HOOK_XXX \u00b6 Defined in FT_MODULE_H (freetype/ftmodapi.h). # define FT_DEBUG_HOOK_TRUETYPE 0 A list of named debug hook indices. values FT_DEBUG_HOOK_TRUETYPE This hook index identifies the TrueType bytecode debugger.","title":"Module Management"},{"location":"ft2-module_management.html#module-management","text":"","title":"Module Management"},{"location":"ft2-module_management.html#synopsis","text":"The definitions below are used to manage modules within FreeType. Modules can be added, upgraded, and removed at runtime. Additionally, some module properties can be controlled also. Here is a list of possible values of the module_name field in the FT_Module_Class structure. autofitter bdf cff gxvalid otvalid pcf pfr psaux pshinter psnames raster1 sfnt smooth truetype type1 type42 t1cid winfonts Note that the FreeType Cache sub-system is not a FreeType module.","title":"Synopsis"},{"location":"ft2-module_management.html#ft_module","text":"Defined in FT_FREETYPE_H (freetype/freetype.h). typedef struct FT_ModuleRec_* FT_Module ; A handle to a given FreeType module object. A module can be a font driver, a renderer, or anything else that provides services to the former.","title":"FT_Module"},{"location":"ft2-module_management.html#ft_module_constructor","text":"Defined in FT_MODULE_H (freetype/ftmodapi.h). typedef FT_Error (* FT_Module_Constructor )( FT_Module module ); A function used to initialize (not create) a new module object.","title":"FT_Module_Constructor"},{"location":"ft2-module_management.html#ft_module_destructor","text":"Defined in FT_MODULE_H (freetype/ftmodapi.h). typedef void (* FT_Module_Destructor )( FT_Module module ); A function used to finalize (not destroy) a given module object.","title":"FT_Module_Destructor"},{"location":"ft2-module_management.html#ft_module_requester","text":"Defined in FT_MODULE_H (freetype/ftmodapi.h). typedef FT_Module_Interface (* FT_Module_Requester )( FT_Module module, const char * name ); A function used to query a given module for a specific interface.","title":"FT_Module_Requester"},{"location":"ft2-module_management.html#ft_module_class","text":"Defined in FT_MODULE_H (freetype/ftmodapi.h). typedef struct FT_Module_Class_ { FT_ULong module_flags; FT_Long module_size; const FT_String * module_name; FT_Fixed module_version; FT_Fixed module_requires; const void * module_interface; FT_Module_Constructor module_init; FT_Module_Destructor module_done; FT_Module_Requester get_interface; } FT_Module_Class ; The module class descriptor. While being a public structure necessary for FreeType's module bookkeeping, most of the fields are essentially internal, not to be used directly by an application.","title":"FT_Module_Class"},{"location":"ft2-module_management.html#ft_add_module","text":"Defined in FT_MODULE_H (freetype/ftmodapi.h). FT_EXPORT( FT_Error ) FT_Add_Module ( FT_Library library, const FT_Module_Class * clazz ); Add a new module to a given library instance.","title":"FT_Add_Module"},{"location":"ft2-module_management.html#ft_get_module","text":"Defined in FT_MODULE_H (freetype/ftmodapi.h). FT_EXPORT( FT_Module ) FT_Get_Module ( FT_Library library, const char * module_name ); Find a module by its name.","title":"FT_Get_Module"},{"location":"ft2-module_management.html#ft_remove_module","text":"Defined in FT_MODULE_H (freetype/ftmodapi.h). FT_EXPORT( FT_Error ) FT_Remove_Module ( FT_Library library, FT_Module module ); Remove a given module from a library instance.","title":"FT_Remove_Module"},{"location":"ft2-module_management.html#ft_add_default_modules","text":"Defined in FT_MODULE_H (freetype/ftmodapi.h). FT_EXPORT( void ) FT_Add_Default_Modules ( FT_Library library ); Add the set of default drivers to a given library object. This is only useful when you create a library object with FT_New_Library (usually to plug a custom memory manager).","title":"FT_Add_Default_Modules"},{"location":"ft2-module_management.html#ft_property_set","text":"Defined in FT_MODULE_H (freetype/ftmodapi.h). FT_EXPORT( FT_Error ) FT_Property_Set ( FT_Library library, const FT_String * module_name, const FT_String * property_name, const void * value ); Set a property for a given module.","title":"FT_Property_Set"},{"location":"ft2-module_management.html#ft_property_get","text":"Defined in FT_MODULE_H (freetype/ftmodapi.h). FT_EXPORT( FT_Error ) FT_Property_Get ( FT_Library library, const FT_String * module_name, const FT_String * property_name, void * value ); Get a module's property value.","title":"FT_Property_Get"},{"location":"ft2-module_management.html#ft_set_default_properties","text":"Defined in FT_MODULE_H (freetype/ftmodapi.h). FT_EXPORT( void ) FT_Set_Default_Properties ( FT_Library library ); If compilation option FT_CONFIG_OPTION_ENVIRONMENT_PROPERTIES is set, this function reads the FREETYPE_PROPERTIES environment variable to control driver properties. See section \u2018 Driver properties \u2019 for more. If the compilation option is not set, this function does nothing. FREETYPE_PROPERTIES has the following syntax form (broken here into multiple lines for better readability). <optional whitespace> <module-name1> ':' <property-name1> '=' <property-value1> <whitespace> <module-name2> ':' <property-name2> '=' <property-value2> ... Example: FREETYPE_PROPERTIES=truetype:interpreter-version=35 \\ cff:no-stem-darkening=0 \\ autofitter:warping=1","title":"FT_Set_Default_Properties"},{"location":"ft2-module_management.html#ft_new_library","text":"Defined in FT_MODULE_H (freetype/ftmodapi.h). FT_EXPORT( FT_Error ) FT_New_Library ( FT_Memory memory, FT_Library *alibrary ); This function is used to create a new FreeType library instance from a given memory object. It is thus possible to use libraries with distinct memory allocators within the same program. Note, however, that the used FT_Memory structure is expected to remain valid for the life of the FT_Library object. Normally, you would call this function (followed by a call to FT_Add_Default_Modules or a series of calls to FT_Add_Module , and a call to FT_Set_Default_Properties ) instead of FT_Init_FreeType to initialize the FreeType library. Don't use FT_Done_FreeType but FT_Done_Library to destroy a library instance.","title":"FT_New_Library"},{"location":"ft2-module_management.html#ft_done_library","text":"Defined in FT_MODULE_H (freetype/ftmodapi.h). FT_EXPORT( FT_Error ) FT_Done_Library ( FT_Library library ); Discard a given library object. This closes all drivers and discards all resource objects.","title":"FT_Done_Library"},{"location":"ft2-module_management.html#ft_reference_library","text":"Defined in FT_MODULE_H (freetype/ftmodapi.h). FT_EXPORT( FT_Error ) FT_Reference_Library ( FT_Library library ); A counter gets initialized to 1 at the time an FT_Library structure is created. This function increments the counter. FT_Done_Library then only destroys a library if the counter is 1, otherwise it simply decrements the counter. This function helps in managing life-cycles of structures that reference FT_Library objects.","title":"FT_Reference_Library"},{"location":"ft2-module_management.html#ft_renderer","text":"Defined in FT_FREETYPE_H (freetype/freetype.h). typedef struct FT_RendererRec_* FT_Renderer ; A handle to a given FreeType renderer. A renderer is a module in charge of converting a glyph's outline image to a bitmap. It supports a single glyph image format, and one or more target surface depths.","title":"FT_Renderer"},{"location":"ft2-module_management.html#ft_renderer_class","text":"Defined in FT_RENDER_H (freetype/ftrender.h). typedef struct FT_Renderer_Class_ { FT_Module_Class root; FT_Glyph_Format glyph_format; FT_Renderer_RenderFunc render_glyph; FT_Renderer_TransformFunc transform_glyph; FT_Renderer_GetCBoxFunc get_glyph_cbox; FT_Renderer_SetModeFunc set_mode; FT_Raster_Funcs * raster_class; } FT_Renderer_Class ; The renderer module class descriptor.","title":"FT_Renderer_Class"},{"location":"ft2-module_management.html#ft_get_renderer","text":"Defined in FT_RENDER_H (freetype/ftrender.h). FT_EXPORT( FT_Renderer ) FT_Get_Renderer ( FT_Library library, FT_Glyph_Format format ); Retrieve the current renderer for a given glyph format.","title":"FT_Get_Renderer"},{"location":"ft2-module_management.html#ft_set_renderer","text":"Defined in FT_RENDER_H (freetype/ftrender.h). FT_EXPORT( FT_Error ) FT_Set_Renderer ( FT_Library library, FT_Renderer renderer, FT_UInt num_params, FT_Parameter * parameters ); Set the current renderer to use, and set additional mode.","title":"FT_Set_Renderer"},{"location":"ft2-module_management.html#ft_set_debug_hook","text":"Defined in FT_MODULE_H (freetype/ftmodapi.h). FT_EXPORT( void ) FT_Set_Debug_Hook ( FT_Library library, FT_UInt hook_index, FT_DebugHook_Func debug_hook ); Set a debug hook function for debugging the interpreter of a font format. While this is a public API function, an application needs access to FreeType's internal header files to do something useful. Have a look at the source code of the ttdebug FreeType demo program for an example of its usage.","title":"FT_Set_Debug_Hook"},{"location":"ft2-module_management.html#ft_driver","text":"Defined in FT_FREETYPE_H (freetype/freetype.h). typedef struct FT_DriverRec_* FT_Driver ; A handle to a given FreeType font driver object. A font driver is a module capable of creating faces from font files.","title":"FT_Driver"},{"location":"ft2-module_management.html#ft_debughook_func","text":"Defined in FT_MODULE_H (freetype/ftmodapi.h). typedef FT_Error (* FT_DebugHook_Func )( void * arg ); A drop-in replacement (or rather a wrapper) for the bytecode or charstring interpreter's main loop function. Its job is essentially to activate debug mode to enforce single-stepping, to call the main loop function to interpret the next opcode, and to show the changed context to the user. An example for such a main loop function is TT_RunIns (declared in FreeType's internal header file src/truetype/ttinterp.h ). Have a look at the source code of the ttdebug FreeType demo program for an example of a drop-in replacement.","title":"FT_DebugHook_Func"},{"location":"ft2-module_management.html#ft_debug_hook_xxx","text":"Defined in FT_MODULE_H (freetype/ftmodapi.h). # define FT_DEBUG_HOOK_TRUETYPE 0 A list of named debug hook indices.","title":"FT_DEBUG_HOOK_XXX"},{"location":"ft2-multiple_masters.html","text":"FreeType \u00bb Docs \u00bb Format-Specific API \u00bb Multiple Masters Multiple Masters \u00b6 Synopsis \u00b6 The following types and functions are used to manage Multiple Master fonts, i.e., the selection of specific design instances by setting design axis coordinates. Besides Adobe MM fonts, the interface supports Apple's TrueType GX and OpenType variation fonts. Some of the routines only work with Adobe MM fonts, others will work with all three types. They are similar enough that a consistent interface makes sense. FT_MM_Axis \u00b6 Defined in FT_MULTIPLE_MASTERS_H (freetype/ftmm.h). typedef struct FT_MM_Axis_ { FT_String * name; FT_Long minimum; FT_Long maximum; } FT_MM_Axis ; A structure to model a given axis in design space for Multiple Masters fonts. This structure can't be used for TrueType GX or OpenType variation fonts. fields name The axis's name. minimum The axis's minimum design coordinate. maximum The axis's maximum design coordinate. FT_Multi_Master \u00b6 Defined in FT_MULTIPLE_MASTERS_H (freetype/ftmm.h). typedef struct FT_Multi_Master_ { FT_UInt num_axis; FT_UInt num_designs; FT_MM_Axis axis[T1_MAX_MM_AXIS]; } FT_Multi_Master ; A structure to model the axes and space of a Multiple Masters font. This structure can't be used for TrueType GX or OpenType variation fonts. fields num_axis Number of axes. Cannot exceed 4. num_designs Number of designs; should be normally 2^num_axis even though the Type 1 specification strangely allows for intermediate designs to be present. This number cannot exceed 16. axis A table of axis descriptors. FT_Var_Axis \u00b6 Defined in FT_MULTIPLE_MASTERS_H (freetype/ftmm.h). typedef struct FT_Var_Axis_ { FT_String * name; FT_Fixed minimum; FT_Fixed def; FT_Fixed maximum; FT_ULong tag; FT_UInt strid; } FT_Var_Axis ; A structure to model a given axis in design space for Multiple Masters, TrueType GX, and OpenType variation fonts. fields name The axis's name. Not always meaningful for TrueType GX or OpenType variation fonts. minimum The axis's minimum design coordinate. def The axis's default design coordinate. FreeType computes meaningful default values for Adobe MM fonts. maximum The axis's maximum design coordinate. tag The axis's tag (the equivalent to \u2018name\u2019 for TrueType GX and OpenType variation fonts). FreeType provides default values for Adobe MM fonts if possible. strid The axis name entry in the font's \u2018name\u2019 table. This is another (and often better) version of the \u2018name\u2019 field for TrueType GX or OpenType variation fonts. Not meaningful for Adobe MM fonts. note The fields minimum , def , and maximum are 16.16 fractional values for TrueType GX and OpenType variation fonts. For Adobe MM fonts, the values are integers. FT_Var_Named_Style \u00b6 Defined in FT_MULTIPLE_MASTERS_H (freetype/ftmm.h). typedef struct FT_Var_Named_Style_ { FT_Fixed * coords; FT_UInt strid; FT_UInt psid; /* since 2.7.1 */ } FT_Var_Named_Style ; A structure to model a named instance in a TrueType GX or OpenType variation font. This structure can't be used for Adobe MM fonts. fields coords The design coordinates for this instance. This is an array with one entry for each axis. strid The entry in \u2018name\u2019 table identifying this instance. psid The entry in \u2018name\u2019 table identifying a PostScript name for this instance. Value 0xFFFF indicates a missing entry. FT_MM_Var \u00b6 Defined in FT_MULTIPLE_MASTERS_H (freetype/ftmm.h). typedef struct FT_MM_Var_ { FT_UInt num_axis; FT_UInt num_designs; FT_UInt num_namedstyles; FT_Var_Axis * axis; FT_Var_Named_Style * namedstyle; } FT_MM_Var ; A structure to model the axes and space of an Adobe MM, TrueType GX, or OpenType variation font. Some fields are specific to one format and not to the others. fields num_axis The number of axes. The maximum value is 4 for Adobe MM fonts; no limit in TrueType GX or OpenType variation fonts. num_designs The number of designs; should be normally 2^num_axis for Adobe MM fonts. Not meaningful for TrueType GX or OpenType variation fonts (where every glyph could have a different number of designs). num_namedstyles The number of named styles; a \u2018named style\u2019 is a tuple of design coordinates that has a string ID (in the \u2018name\u2019 table) associated with it. The font can tell the user that, for example, [Weight=1.5,Width=1.1] is \u2018Bold\u2019. Another name for \u2018named style\u2019 is \u2018named instance\u2019. For Adobe Multiple Masters fonts, this value is always zero because the format does not support named styles. axis An axis descriptor table. TrueType GX and OpenType variation fonts contain slightly more data than Adobe MM fonts. Memory management of this pointer is done internally by FreeType. namedstyle A named style (instance) table. Only meaningful for TrueType GX and OpenType variation fonts. Memory management of this pointer is done internally by FreeType. FT_Get_Multi_Master \u00b6 Defined in FT_MULTIPLE_MASTERS_H (freetype/ftmm.h). FT_EXPORT( FT_Error ) FT_Get_Multi_Master ( FT_Face face, FT_Multi_Master *amaster ); Retrieve a variation descriptor of a given Adobe MM font. This function can't be used with TrueType GX or OpenType variation fonts. input face A handle to the source face. output amaster The Multiple Masters descriptor. return FreeType error code. 0 means success. FT_Get_MM_Var \u00b6 Defined in FT_MULTIPLE_MASTERS_H (freetype/ftmm.h). FT_EXPORT( FT_Error ) FT_Get_MM_Var ( FT_Face face, FT_MM_Var * *amaster ); Retrieve a variation descriptor for a given font. This function works with all supported variation formats. input face A handle to the source face. output amaster The variation descriptor. Allocates a data structure, which the user must deallocate with a call to FT_Done_MM_Var after use. return FreeType error code. 0 means success. FT_Done_MM_Var \u00b6 Defined in FT_MULTIPLE_MASTERS_H (freetype/ftmm.h). FT_EXPORT( FT_Error ) FT_Done_MM_Var ( FT_Library library, FT_MM_Var *amaster ); Free the memory allocated by FT_Get_MM_Var . input library A handle of the face's parent library object that was used in the call to FT_Get_MM_Var to create amaster . return FreeType error code. 0 means success. FT_Set_MM_Design_Coordinates \u00b6 Defined in FT_MULTIPLE_MASTERS_H (freetype/ftmm.h). FT_EXPORT( FT_Error ) FT_Set_MM_Design_Coordinates ( FT_Face face, FT_UInt num_coords, FT_Long * coords ); For Adobe MM fonts, choose an interpolated font design through design coordinates. This function can't be used with TrueType GX or OpenType variation fonts. inout face A handle to the source face. input num_coords The number of available design coordinates. If it is larger than the number of axes, ignore the excess values. If it is smaller than the number of axes, use default values for the remaining axes. coords An array of design coordinates. return FreeType error code. 0 means success. note [Since 2.8.1] To reset all axes to the default values, call the function with num_coords set to zero and coords set to NULL . [Since 2.9] If num_coords is larger than zero, this function sets the FT_FACE_FLAG_VARIATION bit in FT_Face 's face_flags field (i.e., FT_IS_VARIATION will return true). If num_coords is zero, this bit flag gets unset. FT_Set_Var_Design_Coordinates \u00b6 Defined in FT_MULTIPLE_MASTERS_H (freetype/ftmm.h). FT_EXPORT( FT_Error ) FT_Set_Var_Design_Coordinates ( FT_Face face, FT_UInt num_coords, FT_Fixed * coords ); Choose an interpolated font design through design coordinates. This function works with all supported variation formats. inout face A handle to the source face. input num_coords The number of available design coordinates. If it is larger than the number of axes, ignore the excess values. If it is smaller than the number of axes, use default values for the remaining axes. coords An array of design coordinates. return FreeType error code. 0 means success. note [Since 2.8.1] To reset all axes to the default values, call the function with num_coords set to zero and coords set to NULL . [Since 2.9] \u2018Default values\u2019 means the currently selected named instance (or the base font if no named instance is selected). [Since 2.9] If num_coords is larger than zero, this function sets the FT_FACE_FLAG_VARIATION bit in FT_Face 's face_flags field (i.e., FT_IS_VARIATION will return true). If num_coords is zero, this bit flag gets unset. FT_Get_Var_Design_Coordinates \u00b6 Defined in FT_MULTIPLE_MASTERS_H (freetype/ftmm.h). FT_EXPORT( FT_Error ) FT_Get_Var_Design_Coordinates ( FT_Face face, FT_UInt num_coords, FT_Fixed * coords ); Get the design coordinates of the currently selected interpolated font. This function works with all supported variation formats. input face A handle to the source face. num_coords The number of design coordinates to retrieve. If it is larger than the number of axes, set the excess values to 0. output coords The design coordinates array. return FreeType error code. 0 means success. since 2.7.1 FT_Set_MM_Blend_Coordinates \u00b6 Defined in FT_MULTIPLE_MASTERS_H (freetype/ftmm.h). FT_EXPORT( FT_Error ) FT_Set_MM_Blend_Coordinates ( FT_Face face, FT_UInt num_coords, FT_Fixed * coords ); Choose an interpolated font design through normalized blend coordinates. This function works with all supported variation formats. inout face A handle to the source face. input num_coords The number of available design coordinates. If it is larger than the number of axes, ignore the excess values. If it is smaller than the number of axes, use default values for the remaining axes. coords The design coordinates array (each element must be between 0 and 1.0 for Adobe MM fonts, and between -1.0 and 1.0 for TrueType GX and OpenType variation fonts). return FreeType error code. 0 means success. note [Since 2.8.1] To reset all axes to the default values, call the function with num_coords set to zero and coords set to NULL . [Since 2.9] \u2018Default values\u2019 means the currently selected named instance (or the base font if no named instance is selected). [Since 2.9] If num_coords is larger than zero, this function sets the FT_FACE_FLAG_VARIATION bit in FT_Face 's face_flags field (i.e., FT_IS_VARIATION will return true). If num_coords is zero, this bit flag gets unset. FT_Get_MM_Blend_Coordinates \u00b6 Defined in FT_MULTIPLE_MASTERS_H (freetype/ftmm.h). FT_EXPORT( FT_Error ) FT_Get_MM_Blend_Coordinates ( FT_Face face, FT_UInt num_coords, FT_Fixed * coords ); Get the normalized blend coordinates of the currently selected interpolated font. This function works with all supported variation formats. input face A handle to the source face. num_coords The number of normalized blend coordinates to retrieve. If it is larger than the number of axes, set the excess values to 0.5 for Adobe MM fonts, and to 0 for TrueType GX and OpenType variation fonts. output coords The normalized blend coordinates array. return FreeType error code. 0 means success. since 2.7.1 FT_Set_Var_Blend_Coordinates \u00b6 Defined in FT_MULTIPLE_MASTERS_H (freetype/ftmm.h). FT_EXPORT( FT_Error ) FT_Set_Var_Blend_Coordinates ( FT_Face face, FT_UInt num_coords, FT_Fixed * coords ); This is another name of FT_Set_MM_Blend_Coordinates . FT_Get_Var_Blend_Coordinates \u00b6 Defined in FT_MULTIPLE_MASTERS_H (freetype/ftmm.h). FT_EXPORT( FT_Error ) FT_Get_Var_Blend_Coordinates ( FT_Face face, FT_UInt num_coords, FT_Fixed * coords ); This is another name of FT_Get_MM_Blend_Coordinates . since 2.7.1 FT_Set_MM_WeightVector \u00b6 Defined in FT_MULTIPLE_MASTERS_H (freetype/ftmm.h). FT_EXPORT( FT_Error ) FT_Set_MM_WeightVector ( FT_Face face, FT_UInt len, FT_Fixed * weightvector ); For Adobe MM fonts, choose an interpolated font design by directly setting the weight vector. This function can't be used with TrueType GX or OpenType variation fonts. inout face A handle to the source face. input len The length of the weight vector array. If it is larger than the number of designs, the extra values are ignored. If it is less than the number of designs, the remaining values are set to zero. weightvector An array representing the weight vector. return FreeType error code. 0 means success. note Adobe Multiple Master fonts limit the number of designs, and thus the length of the weight vector to 16. If len is zero and weightvector is NULL , the weight vector array is reset to the default values. The Adobe documentation also states that the values in the WeightVector array must total 1.0 \u00b1 0.001. In practice this does not seem to be enforced, so is not enforced here, either. since 2.10 FT_Get_MM_WeightVector \u00b6 Defined in FT_MULTIPLE_MASTERS_H (freetype/ftmm.h). FT_EXPORT( FT_Error ) FT_Get_MM_WeightVector ( FT_Face face, FT_UInt * len, FT_Fixed * weightvector ); For Adobe MM fonts, retrieve the current weight vector of the font. This function can't be used with TrueType GX or OpenType variation fonts. inout face A handle to the source face. len A pointer to the size of the array to be filled. If the size of the array is less than the number of designs, FT_Err_Invalid_Argument is returned, and len is set to the required size (the number of designs). If the size of the array is greater than the number of designs, the remaining entries are set to 0. On successful completion, len is set to the number of designs (i.e., the number of values written to the array). output weightvector An array to be filled. return FreeType error code. 0 means success. note Adobe Multiple Master fonts limit the number of designs, and thus the length of the WeightVector to 16. since 2.10 FT_VAR_AXIS_FLAG_XXX \u00b6 Defined in FT_MULTIPLE_MASTERS_H (freetype/ftmm.h). # define FT_VAR_AXIS_FLAG_HIDDEN 1 A list of bit flags used in the return value of FT_Get_Var_Axis_Flags . values FT_VAR_AXIS_FLAG_HIDDEN The variation axis should not be exposed to user interfaces. since 2.8.1 FT_Get_Var_Axis_Flags \u00b6 Defined in FT_MULTIPLE_MASTERS_H (freetype/ftmm.h). FT_EXPORT( FT_Error ) FT_Get_Var_Axis_Flags ( FT_MM_Var * master, FT_UInt axis_index, FT_UInt * flags ); Get the \u2018flags\u2019 field of an OpenType Variation Axis Record. Not meaningful for Adobe MM fonts ( *flags is always zero). input master The variation descriptor. axis_index The index of the requested variation axis. output flags The \u2018flags\u2019 field. See FT_VAR_AXIS_FLAG_XXX for possible values. return FreeType error code. 0 means success. since 2.8.1 FT_Set_Named_Instance \u00b6 Defined in FT_MULTIPLE_MASTERS_H (freetype/ftmm.h). FT_EXPORT( FT_Error ) FT_Set_Named_Instance ( FT_Face face, FT_UInt instance_index ); Set or change the current named instance. input face A handle to the source face. instance_index The index of the requested instance, starting with value 1. If set to value 0, FreeType switches to font access without a named instance. return FreeType error code. 0 means success. note The function uses the value of instance_index to set bits 16-30 of the face's face_index field. It also resets any variation applied to the font, and the FT_FACE_FLAG_VARIATION bit of the face's face_flags field gets reset to zero (i.e., FT_IS_VARIATION will return false). For Adobe MM fonts (which don't have named instances) this function simply resets the current face to the default instance. since 2.9","title":"Multiple Masters"},{"location":"ft2-multiple_masters.html#multiple-masters","text":"","title":"Multiple Masters"},{"location":"ft2-multiple_masters.html#synopsis","text":"The following types and functions are used to manage Multiple Master fonts, i.e., the selection of specific design instances by setting design axis coordinates. Besides Adobe MM fonts, the interface supports Apple's TrueType GX and OpenType variation fonts. Some of the routines only work with Adobe MM fonts, others will work with all three types. They are similar enough that a consistent interface makes sense.","title":"Synopsis"},{"location":"ft2-multiple_masters.html#ft_mm_axis","text":"Defined in FT_MULTIPLE_MASTERS_H (freetype/ftmm.h). typedef struct FT_MM_Axis_ { FT_String * name; FT_Long minimum; FT_Long maximum; } FT_MM_Axis ; A structure to model a given axis in design space for Multiple Masters fonts. This structure can't be used for TrueType GX or OpenType variation fonts.","title":"FT_MM_Axis"},{"location":"ft2-multiple_masters.html#ft_multi_master","text":"Defined in FT_MULTIPLE_MASTERS_H (freetype/ftmm.h). typedef struct FT_Multi_Master_ { FT_UInt num_axis; FT_UInt num_designs; FT_MM_Axis axis[T1_MAX_MM_AXIS]; } FT_Multi_Master ; A structure to model the axes and space of a Multiple Masters font. This structure can't be used for TrueType GX or OpenType variation fonts.","title":"FT_Multi_Master"},{"location":"ft2-multiple_masters.html#ft_var_axis","text":"Defined in FT_MULTIPLE_MASTERS_H (freetype/ftmm.h). typedef struct FT_Var_Axis_ { FT_String * name; FT_Fixed minimum; FT_Fixed def; FT_Fixed maximum; FT_ULong tag; FT_UInt strid; } FT_Var_Axis ; A structure to model a given axis in design space for Multiple Masters, TrueType GX, and OpenType variation fonts.","title":"FT_Var_Axis"},{"location":"ft2-multiple_masters.html#ft_var_named_style","text":"Defined in FT_MULTIPLE_MASTERS_H (freetype/ftmm.h). typedef struct FT_Var_Named_Style_ { FT_Fixed * coords; FT_UInt strid; FT_UInt psid; /* since 2.7.1 */ } FT_Var_Named_Style ; A structure to model a named instance in a TrueType GX or OpenType variation font. This structure can't be used for Adobe MM fonts.","title":"FT_Var_Named_Style"},{"location":"ft2-multiple_masters.html#ft_mm_var","text":"Defined in FT_MULTIPLE_MASTERS_H (freetype/ftmm.h). typedef struct FT_MM_Var_ { FT_UInt num_axis; FT_UInt num_designs; FT_UInt num_namedstyles; FT_Var_Axis * axis; FT_Var_Named_Style * namedstyle; } FT_MM_Var ; A structure to model the axes and space of an Adobe MM, TrueType GX, or OpenType variation font. Some fields are specific to one format and not to the others.","title":"FT_MM_Var"},{"location":"ft2-multiple_masters.html#ft_get_multi_master","text":"Defined in FT_MULTIPLE_MASTERS_H (freetype/ftmm.h). FT_EXPORT( FT_Error ) FT_Get_Multi_Master ( FT_Face face, FT_Multi_Master *amaster ); Retrieve a variation descriptor of a given Adobe MM font. This function can't be used with TrueType GX or OpenType variation fonts.","title":"FT_Get_Multi_Master"},{"location":"ft2-multiple_masters.html#ft_get_mm_var","text":"Defined in FT_MULTIPLE_MASTERS_H (freetype/ftmm.h). FT_EXPORT( FT_Error ) FT_Get_MM_Var ( FT_Face face, FT_MM_Var * *amaster ); Retrieve a variation descriptor for a given font. This function works with all supported variation formats.","title":"FT_Get_MM_Var"},{"location":"ft2-multiple_masters.html#ft_done_mm_var","text":"Defined in FT_MULTIPLE_MASTERS_H (freetype/ftmm.h). FT_EXPORT( FT_Error ) FT_Done_MM_Var ( FT_Library library, FT_MM_Var *amaster ); Free the memory allocated by FT_Get_MM_Var .","title":"FT_Done_MM_Var"},{"location":"ft2-multiple_masters.html#ft_set_mm_design_coordinates","text":"Defined in FT_MULTIPLE_MASTERS_H (freetype/ftmm.h). FT_EXPORT( FT_Error ) FT_Set_MM_Design_Coordinates ( FT_Face face, FT_UInt num_coords, FT_Long * coords ); For Adobe MM fonts, choose an interpolated font design through design coordinates. This function can't be used with TrueType GX or OpenType variation fonts.","title":"FT_Set_MM_Design_Coordinates"},{"location":"ft2-multiple_masters.html#ft_set_var_design_coordinates","text":"Defined in FT_MULTIPLE_MASTERS_H (freetype/ftmm.h). FT_EXPORT( FT_Error ) FT_Set_Var_Design_Coordinates ( FT_Face face, FT_UInt num_coords, FT_Fixed * coords ); Choose an interpolated font design through design coordinates. This function works with all supported variation formats.","title":"FT_Set_Var_Design_Coordinates"},{"location":"ft2-multiple_masters.html#ft_get_var_design_coordinates","text":"Defined in FT_MULTIPLE_MASTERS_H (freetype/ftmm.h). FT_EXPORT( FT_Error ) FT_Get_Var_Design_Coordinates ( FT_Face face, FT_UInt num_coords, FT_Fixed * coords ); Get the design coordinates of the currently selected interpolated font. This function works with all supported variation formats.","title":"FT_Get_Var_Design_Coordinates"},{"location":"ft2-multiple_masters.html#ft_set_mm_blend_coordinates","text":"Defined in FT_MULTIPLE_MASTERS_H (freetype/ftmm.h). FT_EXPORT( FT_Error ) FT_Set_MM_Blend_Coordinates ( FT_Face face, FT_UInt num_coords, FT_Fixed * coords ); Choose an interpolated font design through normalized blend coordinates. This function works with all supported variation formats.","title":"FT_Set_MM_Blend_Coordinates"},{"location":"ft2-multiple_masters.html#ft_get_mm_blend_coordinates","text":"Defined in FT_MULTIPLE_MASTERS_H (freetype/ftmm.h). FT_EXPORT( FT_Error ) FT_Get_MM_Blend_Coordinates ( FT_Face face, FT_UInt num_coords, FT_Fixed * coords ); Get the normalized blend coordinates of the currently selected interpolated font. This function works with all supported variation formats.","title":"FT_Get_MM_Blend_Coordinates"},{"location":"ft2-multiple_masters.html#ft_set_var_blend_coordinates","text":"Defined in FT_MULTIPLE_MASTERS_H (freetype/ftmm.h). FT_EXPORT( FT_Error ) FT_Set_Var_Blend_Coordinates ( FT_Face face, FT_UInt num_coords, FT_Fixed * coords ); This is another name of FT_Set_MM_Blend_Coordinates .","title":"FT_Set_Var_Blend_Coordinates"},{"location":"ft2-multiple_masters.html#ft_get_var_blend_coordinates","text":"Defined in FT_MULTIPLE_MASTERS_H (freetype/ftmm.h). FT_EXPORT( FT_Error ) FT_Get_Var_Blend_Coordinates ( FT_Face face, FT_UInt num_coords, FT_Fixed * coords ); This is another name of FT_Get_MM_Blend_Coordinates .","title":"FT_Get_Var_Blend_Coordinates"},{"location":"ft2-multiple_masters.html#ft_set_mm_weightvector","text":"Defined in FT_MULTIPLE_MASTERS_H (freetype/ftmm.h). FT_EXPORT( FT_Error ) FT_Set_MM_WeightVector ( FT_Face face, FT_UInt len, FT_Fixed * weightvector ); For Adobe MM fonts, choose an interpolated font design by directly setting the weight vector. This function can't be used with TrueType GX or OpenType variation fonts.","title":"FT_Set_MM_WeightVector"},{"location":"ft2-multiple_masters.html#ft_get_mm_weightvector","text":"Defined in FT_MULTIPLE_MASTERS_H (freetype/ftmm.h). FT_EXPORT( FT_Error ) FT_Get_MM_WeightVector ( FT_Face face, FT_UInt * len, FT_Fixed * weightvector ); For Adobe MM fonts, retrieve the current weight vector of the font. This function can't be used with TrueType GX or OpenType variation fonts.","title":"FT_Get_MM_WeightVector"},{"location":"ft2-multiple_masters.html#ft_var_axis_flag_xxx","text":"Defined in FT_MULTIPLE_MASTERS_H (freetype/ftmm.h). # define FT_VAR_AXIS_FLAG_HIDDEN 1 A list of bit flags used in the return value of FT_Get_Var_Axis_Flags .","title":"FT_VAR_AXIS_FLAG_XXX"},{"location":"ft2-multiple_masters.html#ft_get_var_axis_flags","text":"Defined in FT_MULTIPLE_MASTERS_H (freetype/ftmm.h). FT_EXPORT( FT_Error ) FT_Get_Var_Axis_Flags ( FT_MM_Var * master, FT_UInt axis_index, FT_UInt * flags ); Get the \u2018flags\u2019 field of an OpenType Variation Axis Record. Not meaningful for Adobe MM fonts ( *flags is always zero).","title":"FT_Get_Var_Axis_Flags"},{"location":"ft2-multiple_masters.html#ft_set_named_instance","text":"Defined in FT_MULTIPLE_MASTERS_H (freetype/ftmm.h). FT_EXPORT( FT_Error ) FT_Set_Named_Instance ( FT_Face face, FT_UInt instance_index ); Set or change the current named instance.","title":"FT_Set_Named_Instance"},{"location":"ft2-ot_validation.html","text":"FreeType \u00bb Docs \u00bb Miscellaneous \u00bb OpenType Validation OpenType Validation \u00b6 Synopsis \u00b6 This section contains the declaration of functions to validate some OpenType tables (BASE, GDEF, GPOS, GSUB, JSTF, MATH). FT_OpenType_Validate \u00b6 Defined in FT_OPENTYPE_VALIDATE_H (freetype/ftotval.h). FT_EXPORT( FT_Error ) FT_OpenType_Validate ( FT_Face face, FT_UInt validation_flags, FT_Bytes *BASE_table, FT_Bytes *GDEF_table, FT_Bytes *GPOS_table, FT_Bytes *GSUB_table, FT_Bytes *JSTF_table ); Validate various OpenType tables to assure that all offsets and indices are valid. The idea is that a higher-level library that actually does the text layout can access those tables without error checking (which can be quite time consuming). input face A handle to the input face. validation_flags A bit field that specifies the tables to be validated. See FT_VALIDATE_OTXXX for possible values. output BASE_table A pointer to the BASE table. GDEF_table A pointer to the GDEF table. GPOS_table A pointer to the GPOS table. GSUB_table A pointer to the GSUB table. JSTF_table A pointer to the JSTF table. return FreeType error code. 0 means success. note This function only works with OpenType fonts, returning an error otherwise. After use, the application should deallocate the five tables with FT_OpenType_Free . A NULL value indicates that the table either doesn't exist in the font, or the application hasn't asked for validation. FT_OpenType_Free \u00b6 Defined in FT_OPENTYPE_VALIDATE_H (freetype/ftotval.h). FT_EXPORT( void ) FT_OpenType_Free ( FT_Face face, FT_Bytes table ); Free the buffer allocated by OpenType validator. input face A handle to the input face. table The pointer to the buffer that is allocated by FT_OpenType_Validate . note This function must be used to free the buffer allocated by FT_OpenType_Validate only. FT_VALIDATE_OTXXX \u00b6 Defined in FT_OPENTYPE_VALIDATE_H (freetype/ftotval.h). # define FT_VALIDATE_BASE 0x0100 # define FT_VALIDATE_GDEF 0x0200 # define FT_VALIDATE_GPOS 0x0400 # define FT_VALIDATE_GSUB 0x0800 # define FT_VALIDATE_JSTF 0x1000 # define FT_VALIDATE_MATH 0x2000 # define FT_VALIDATE_OT ( FT_VALIDATE_BASE | \\ FT_VALIDATE_GDEF | \\ FT_VALIDATE_GPOS | \\ FT_VALIDATE_GSUB | \\ FT_VALIDATE_JSTF | \\ FT_VALIDATE_MATH ) A list of bit-field constants used with FT_OpenType_Validate to indicate which OpenType tables should be validated. values FT_VALIDATE_BASE Validate BASE table. FT_VALIDATE_GDEF Validate GDEF table. FT_VALIDATE_GPOS Validate GPOS table. FT_VALIDATE_GSUB Validate GSUB table. FT_VALIDATE_JSTF Validate JSTF table. FT_VALIDATE_MATH Validate MATH table. FT_VALIDATE_OT Validate all OpenType tables (BASE, GDEF, GPOS, GSUB, JSTF, MATH).","title":"OpenType Validation"},{"location":"ft2-ot_validation.html#opentype-validation","text":"","title":"OpenType Validation"},{"location":"ft2-ot_validation.html#synopsis","text":"This section contains the declaration of functions to validate some OpenType tables (BASE, GDEF, GPOS, GSUB, JSTF, MATH).","title":"Synopsis"},{"location":"ft2-ot_validation.html#ft_opentype_validate","text":"Defined in FT_OPENTYPE_VALIDATE_H (freetype/ftotval.h). FT_EXPORT( FT_Error ) FT_OpenType_Validate ( FT_Face face, FT_UInt validation_flags, FT_Bytes *BASE_table, FT_Bytes *GDEF_table, FT_Bytes *GPOS_table, FT_Bytes *GSUB_table, FT_Bytes *JSTF_table ); Validate various OpenType tables to assure that all offsets and indices are valid. The idea is that a higher-level library that actually does the text layout can access those tables without error checking (which can be quite time consuming).","title":"FT_OpenType_Validate"},{"location":"ft2-ot_validation.html#ft_opentype_free","text":"Defined in FT_OPENTYPE_VALIDATE_H (freetype/ftotval.h). FT_EXPORT( void ) FT_OpenType_Free ( FT_Face face, FT_Bytes table ); Free the buffer allocated by OpenType validator.","title":"FT_OpenType_Free"},{"location":"ft2-ot_validation.html#ft_validate_otxxx","text":"Defined in FT_OPENTYPE_VALIDATE_H (freetype/ftotval.h). # define FT_VALIDATE_BASE 0x0100 # define FT_VALIDATE_GDEF 0x0200 # define FT_VALIDATE_GPOS 0x0400 # define FT_VALIDATE_GSUB 0x0800 # define FT_VALIDATE_JSTF 0x1000 # define FT_VALIDATE_MATH 0x2000 # define FT_VALIDATE_OT ( FT_VALIDATE_BASE | \\ FT_VALIDATE_GDEF | \\ FT_VALIDATE_GPOS | \\ FT_VALIDATE_GSUB | \\ FT_VALIDATE_JSTF | \\ FT_VALIDATE_MATH ) A list of bit-field constants used with FT_OpenType_Validate to indicate which OpenType tables should be validated.","title":"FT_VALIDATE_OTXXX"},{"location":"ft2-outline_processing.html","text":"FreeType \u00bb Docs \u00bb Support API \u00bb Outline Processing Outline Processing \u00b6 Synopsis \u00b6 This section contains routines used to create and destroy scalable glyph images known as \u2018outlines\u2019. These can also be measured, transformed, and converted into bitmaps and pixmaps. FT_Outline \u00b6 Defined in FT_IMAGE_H (freetype/ftimage.h). typedef struct FT_Outline_ { short n_contours; /* number of contours in glyph */ short n_points; /* number of points in the glyph */ FT_Vector * points; /* the outline's points */ char * tags; /* the points flags */ short * contours; /* the contour end points */ int flags; /* outline masks */ } FT_Outline ; This structure is used to describe an outline to the scan-line converter. fields n_contours The number of contours in the outline. n_points The number of points in the outline. points A pointer to an array of n_points FT_Vector elements, giving the outline's point coordinates. tags A pointer to an array of n_points chars, giving each outline point's type. If bit 0 is unset, the point is \u2018off\u2019 the curve, i.e., a Bezier control point, while it is \u2018on\u2019 if set. Bit 1 is meaningful for \u2018off\u2019 points only. If set, it indicates a third-order Bezier arc control point; and a second-order control point if unset. If bit 2 is set, bits 5-7 contain the drop-out mode (as defined in the OpenType specification; the value is the same as the argument to the \u2018SCANMODE\u2019 instruction). Bits 3 and 4 are reserved for internal purposes. contours An array of n_contours shorts, giving the end point of each contour within the outline. For example, the first contour is defined by the points \u20180\u2019 to contours[0] , the second one is defined by the points contours[0]+1 to contours[1] , etc. flags A set of bit flags used to characterize the outline and give hints to the scan-converter and hinter on how to convert/grid-fit it. See FT_OUTLINE_XXX . note The B/W rasterizer only checks bit 2 in the tags array for the first point of each contour. The drop-out mode as given with FT_OUTLINE_IGNORE_DROPOUTS , FT_OUTLINE_SMART_DROPOUTS , and FT_OUTLINE_INCLUDE_STUBS in flags is then overridden. FT_Outline_New \u00b6 Defined in FT_OUTLINE_H (freetype/ftoutln.h). FT_EXPORT( FT_Error ) FT_Outline_New ( FT_Library library, FT_UInt numPoints, FT_Int numContours, FT_Outline *anoutline ); Create a new outline of a given size. input library A handle to the library object from where the outline is allocated. Note however that the new outline will not necessarily be freed , when destroying the library, by FT_Done_FreeType . numPoints The maximum number of points within the outline. Must be smaller than or equal to 0xFFFF (65535). numContours The maximum number of contours within the outline. This value must be in the range 0 to numPoints . output anoutline A handle to the new outline. return FreeType error code. 0 means success. note The reason why this function takes a library parameter is simply to use the library's memory allocator. FT_Outline_Done \u00b6 Defined in FT_OUTLINE_H (freetype/ftoutln.h). FT_EXPORT( FT_Error ) FT_Outline_Done ( FT_Library library, FT_Outline * outline ); Destroy an outline created with FT_Outline_New . input library A handle of the library object used to allocate the outline. outline A pointer to the outline object to be discarded. return FreeType error code. 0 means success. note If the outline's \u2018owner\u2019 field is not set, only the outline descriptor will be released. FT_Outline_Copy \u00b6 Defined in FT_OUTLINE_H (freetype/ftoutln.h). FT_EXPORT( FT_Error ) FT_Outline_Copy ( const FT_Outline * source, FT_Outline *target ); Copy an outline into another one. Both objects must have the same sizes (number of points & number of contours) when this function is called. input source A handle to the source outline. output target A handle to the target outline. return FreeType error code. 0 means success. FT_Outline_Translate \u00b6 Defined in FT_OUTLINE_H (freetype/ftoutln.h). FT_EXPORT( void ) FT_Outline_Translate ( const FT_Outline * outline, FT_Pos xOffset, FT_Pos yOffset ); Apply a simple translation to the points of an outline. inout outline A pointer to the target outline descriptor. input xOffset The horizontal offset. yOffset The vertical offset. FT_Outline_Transform \u00b6 Defined in FT_OUTLINE_H (freetype/ftoutln.h). FT_EXPORT( void ) FT_Outline_Transform ( const FT_Outline * outline, const FT_Matrix * matrix ); Apply a simple 2x2 matrix to all of an outline's points. Useful for applying rotations, slanting, flipping, etc. inout outline A pointer to the target outline descriptor. input matrix A pointer to the transformation matrix. note You can use FT_Outline_Translate if you need to translate the outline's points. FT_Outline_Embolden \u00b6 Defined in FT_OUTLINE_H (freetype/ftoutln.h). FT_EXPORT( FT_Error ) FT_Outline_Embolden ( FT_Outline * outline, FT_Pos strength ); Embolden an outline. The new outline will be at most 4 times strength pixels wider and higher. You may think of the left and bottom borders as unchanged. Negative strength values to reduce the outline thickness are possible also. inout outline A handle to the target outline. input strength How strong the glyph is emboldened. Expressed in 26.6 pixel format. return FreeType error code. 0 means success. note The used algorithm to increase or decrease the thickness of the glyph doesn't change the number of points; this means that certain situations like acute angles or intersections are sometimes handled incorrectly. If you need \u2018better\u2019 metrics values you should call FT_Outline_Get_CBox or FT_Outline_Get_BBox . To get meaningful results, font scaling values must be set with functions like FT_Set_Char_Size before calling FT_Render_Glyph. example FT_Load_Glyph( face, index, FT_LOAD_DEFAULT ); if ( face->glyph->format == FT_GLYPH_FORMAT_OUTLINE ) FT_Outline_Embolden( &face->glyph->outline, strength ); FT_Outline_EmboldenXY \u00b6 Defined in FT_OUTLINE_H (freetype/ftoutln.h). FT_EXPORT( FT_Error ) FT_Outline_EmboldenXY ( FT_Outline * outline, FT_Pos xstrength, FT_Pos ystrength ); Embolden an outline. The new outline will be xstrength pixels wider and ystrength pixels higher. Otherwise, it is similar to FT_Outline_Embolden , which uses the same strength in both directions. since 2.4.10 FT_Outline_Reverse \u00b6 Defined in FT_OUTLINE_H (freetype/ftoutln.h). FT_EXPORT( void ) FT_Outline_Reverse ( FT_Outline * outline ); Reverse the drawing direction of an outline. This is used to ensure consistent fill conventions for mirrored glyphs. inout outline A pointer to the target outline descriptor. note This function toggles the bit flag FT_OUTLINE_REVERSE_FILL in the outline's flags field. It shouldn't be used by a normal client application, unless it knows what it is doing. FT_Outline_Check \u00b6 Defined in FT_OUTLINE_H (freetype/ftoutln.h). FT_EXPORT( FT_Error ) FT_Outline_Check ( FT_Outline * outline ); Check the contents of an outline descriptor. input outline A handle to a source outline. return FreeType error code. 0 means success. note An empty outline, or an outline with a single point only is also valid. FT_Outline_Get_CBox \u00b6 Defined in FT_OUTLINE_H (freetype/ftoutln.h). FT_EXPORT( void ) FT_Outline_Get_CBox ( const FT_Outline * outline, FT_BBox *acbox ); Return an outline's \u2018control box\u2019. The control box encloses all the outline's points, including Bezier control points. Though it coincides with the exact bounding box for most glyphs, it can be slightly larger in some situations (like when rotating an outline that contains Bezier outside arcs). Computing the control box is very fast, while getting the bounding box can take much more time as it needs to walk over all segments and arcs in the outline. To get the latter, you can use the \u2018ftbbox\u2019 component, which is dedicated to this single task. input outline A pointer to the source outline descriptor. output acbox The outline's control box. note See FT_Glyph_Get_CBox for a discussion of tricky fonts. FT_Outline_Get_BBox \u00b6 Defined in FT_BBOX_H (freetype/ftbbox.h). FT_EXPORT( FT_Error ) FT_Outline_Get_BBox ( FT_Outline * outline, FT_BBox *abbox ); Compute the exact bounding box of an outline. This is slower than computing the control box. However, it uses an advanced algorithm that returns very quickly when the two boxes coincide. Otherwise, the outline Bezier arcs are traversed to extract their extrema. input outline A pointer to the source outline. output abbox The outline's exact bounding box. return FreeType error code. 0 means success. note If the font is tricky and the glyph has been loaded with FT_LOAD_NO_SCALE , the resulting BBox is meaningless. To get reasonable values for the BBox it is necessary to load the glyph at a large ppem value (so that the hinting instructions can properly shift and scale the subglyphs), then extracting the BBox, which can be eventually converted back to font units. FT_Outline_Get_Bitmap \u00b6 Defined in FT_OUTLINE_H (freetype/ftoutln.h). FT_EXPORT( FT_Error ) FT_Outline_Get_Bitmap ( FT_Library library, FT_Outline * outline, const FT_Bitmap *abitmap ); Render an outline within a bitmap. The outline's image is simply OR-ed to the target bitmap. input library A handle to a FreeType library object. outline A pointer to the source outline descriptor. inout abitmap A pointer to the target bitmap descriptor. return FreeType error code. 0 means success. note This function does not create the bitmap, it only renders an outline image within the one you pass to it! Consequently, the various fields in abitmap should be set accordingly. It will use the raster corresponding to the default glyph format. The value of the num_grays field in abitmap is ignored. If you select the gray-level rasterizer, and you want less than 256 gray levels, you have to use FT_Outline_Render directly. FT_Outline_Render \u00b6 Defined in FT_OUTLINE_H (freetype/ftoutln.h). FT_EXPORT( FT_Error ) FT_Outline_Render ( FT_Library library, FT_Outline * outline, FT_Raster_Params * params ); Render an outline within a bitmap using the current scan-convert. input library A handle to a FreeType library object. outline A pointer to the source outline descriptor. inout params A pointer to an FT_Raster_Params structure used to describe the rendering operation. return FreeType error code. 0 means success. note This advanced function uses FT_Raster_Params as an argument. The field params.source will be set to outline before the scan converter is called, which means that the value you give to it is actually ignored. Either params.target must point to preallocated bitmap, or FT_RASTER_FLAG_DIRECT must be set in params.flags allowing FreeType rasterizer to be used for direct composition, translucency, etc. See FT_Raster_Params for more details. FT_Outline_Decompose \u00b6 Defined in FT_OUTLINE_H (freetype/ftoutln.h). FT_EXPORT( FT_Error ) FT_Outline_Decompose ( FT_Outline * outline, const FT_Outline_Funcs * func_interface, void * user ); Walk over an outline's structure to decompose it into individual segments and Bezier arcs. This function also emits \u2018move to\u2019 operations to indicate the start of new contours in the outline. input outline A pointer to the source target. func_interface A table of \u2018emitters\u2019, i.e., function pointers called during decomposition to indicate path operations. inout user A typeless pointer that is passed to each emitter during the decomposition. It can be used to store the state during the decomposition. return FreeType error code. 0 means success. note A contour that contains a single point only is represented by a \u2018move to\u2019 operation followed by \u2018line to\u2019 to the same point. In most cases, it is best to filter this out before using the outline for stroking purposes (otherwise it would result in a visible dot when round caps are used). Similarly, the function returns success for an empty outline also (doing nothing, this is, not calling any emitter); if necessary, you should filter this out, too. FT_Outline_Funcs \u00b6 Defined in FT_IMAGE_H (freetype/ftimage.h). typedef struct FT_Outline_Funcs_ { FT_Outline_MoveToFunc move_to; FT_Outline_LineToFunc line_to; FT_Outline_ConicToFunc conic_to; FT_Outline_CubicToFunc cubic_to; int shift; FT_Pos delta; } FT_Outline_Funcs ; A structure to hold various function pointers used during outline decomposition in order to emit segments, conic, and cubic Beziers. fields move_to The \u2018move to\u2019 emitter. line_to The segment emitter. conic_to The second-order Bezier arc emitter. cubic_to The third-order Bezier arc emitter. shift The shift that is applied to coordinates before they are sent to the emitter. delta The delta that is applied to coordinates before they are sent to the emitter, but after the shift. note The point coordinates sent to the emitters are the transformed version of the original coordinates (this is important for high accuracy during scan-conversion). The transformation is simple: x' = (x << shift) - delta y' = (y << shift) - delta Set the values of shift and delta to 0 to get the original point coordinates. FT_Outline_MoveToFunc \u00b6 Defined in FT_IMAGE_H (freetype/ftimage.h). typedef int (* FT_Outline_MoveToFunc )( const FT_Vector * to, void * user ); # define FT_Outline_MoveTo_Func FT_Outline_MoveToFunc A function pointer type used to describe the signature of a \u2018move to\u2019 function during outline walking/decomposition. A \u2018move to\u2019 is emitted to start a new contour in an outline. input to A pointer to the target point of the \u2018move to\u2019. user A typeless pointer, which is passed from the caller of the decomposition function. return Error code. 0 means success. FT_Outline_LineToFunc \u00b6 Defined in FT_IMAGE_H (freetype/ftimage.h). typedef int (* FT_Outline_LineToFunc )( const FT_Vector * to, void * user ); # define FT_Outline_LineTo_Func FT_Outline_LineToFunc A function pointer type used to describe the signature of a \u2018line to\u2019 function during outline walking/decomposition. A \u2018line to\u2019 is emitted to indicate a segment in the outline. input to A pointer to the target point of the \u2018line to\u2019. user A typeless pointer, which is passed from the caller of the decomposition function. return Error code. 0 means success. FT_Outline_ConicToFunc \u00b6 Defined in FT_IMAGE_H (freetype/ftimage.h). typedef int (* FT_Outline_ConicToFunc )( const FT_Vector * control, const FT_Vector * to, void * user ); # define FT_Outline_ConicTo_Func FT_Outline_ConicToFunc A function pointer type used to describe the signature of a \u2018conic to\u2019 function during outline walking or decomposition. A \u2018conic to\u2019 is emitted to indicate a second-order Bezier arc in the outline. input control An intermediate control point between the last position and the new target in to . to A pointer to the target end point of the conic arc. user A typeless pointer, which is passed from the caller of the decomposition function. return Error code. 0 means success. FT_Outline_CubicToFunc \u00b6 Defined in FT_IMAGE_H (freetype/ftimage.h). typedef int (* FT_Outline_CubicToFunc )( const FT_Vector * control1, const FT_Vector * control2, const FT_Vector * to, void * user ); # define FT_Outline_CubicTo_Func FT_Outline_CubicToFunc A function pointer type used to describe the signature of a \u2018cubic to\u2019 function during outline walking or decomposition. A \u2018cubic to\u2019 is emitted to indicate a third-order Bezier arc. input control1 A pointer to the first Bezier control point. control2 A pointer to the second Bezier control point. to A pointer to the target end point. user A typeless pointer, which is passed from the caller of the decomposition function. return Error code. 0 means success. FT_Orientation \u00b6 Defined in FT_OUTLINE_H (freetype/ftoutln.h). typedef enum FT_Orientation_ { FT_ORIENTATION_TRUETYPE = 0, FT_ORIENTATION_POSTSCRIPT = 1, FT_ORIENTATION_FILL_RIGHT = FT_ORIENTATION_TRUETYPE , FT_ORIENTATION_FILL_LEFT = FT_ORIENTATION_POSTSCRIPT , FT_ORIENTATION_NONE } FT_Orientation ; A list of values used to describe an outline's contour orientation. The TrueType and PostScript specifications use different conventions to determine whether outline contours should be filled or unfilled. values FT_ORIENTATION_TRUETYPE According to the TrueType specification, clockwise contours must be filled, and counter-clockwise ones must be unfilled. FT_ORIENTATION_POSTSCRIPT According to the PostScript specification, counter-clockwise contours must be filled, and clockwise ones must be unfilled. FT_ORIENTATION_FILL_RIGHT This is identical to FT_ORIENTATION_TRUETYPE , but is used to remember that in TrueType, everything that is to the right of the drawing direction of a contour must be filled. FT_ORIENTATION_FILL_LEFT This is identical to FT_ORIENTATION_POSTSCRIPT , but is used to remember that in PostScript, everything that is to the left of the drawing direction of a contour must be filled. FT_ORIENTATION_NONE The orientation cannot be determined. That is, different parts of the glyph have different orientation. FT_Outline_Get_Orientation \u00b6 Defined in FT_OUTLINE_H (freetype/ftoutln.h). FT_EXPORT( FT_Orientation ) FT_Outline_Get_Orientation ( FT_Outline * outline ); This function analyzes a glyph outline and tries to compute its fill orientation (see FT_Orientation ). This is done by integrating the total area covered by the outline. The positive integral corresponds to the clockwise orientation and FT_ORIENTATION_POSTSCRIPT is returned. The negative integral corresponds to the counter-clockwise orientation and FT_ORIENTATION_TRUETYPE is returned. Note that this will return FT_ORIENTATION_TRUETYPE for empty outlines. input outline A handle to the source outline. return The orientation. FT_OUTLINE_XXX \u00b6 Defined in FT_IMAGE_H (freetype/ftimage.h). # define FT_OUTLINE_NONE 0x0 # define FT_OUTLINE_OWNER 0x1 # define FT_OUTLINE_EVEN_ODD_FILL 0x2 # define FT_OUTLINE_REVERSE_FILL 0x4 # define FT_OUTLINE_IGNORE_DROPOUTS 0x8 # define FT_OUTLINE_SMART_DROPOUTS 0x10 # define FT_OUTLINE_INCLUDE_STUBS 0x20 # define FT_OUTLINE_OVERLAP 0x40 # define FT_OUTLINE_HIGH_PRECISION 0x100 # define FT_OUTLINE_SINGLE_PASS 0x200 /* these constants are deprecated; use the corresponding */ /* ` FT_OUTLINE_XXX ` values instead */ # define ft_outline_none FT_OUTLINE_NONE # define ft_outline_owner FT_OUTLINE_OWNER # define ft_outline_even_odd_fill FT_OUTLINE_EVEN_ODD_FILL # define ft_outline_reverse_fill FT_OUTLINE_REVERSE_FILL # define ft_outline_ignore_dropouts FT_OUTLINE_IGNORE_DROPOUTS # define ft_outline_high_precision FT_OUTLINE_HIGH_PRECISION # define ft_outline_single_pass FT_OUTLINE_SINGLE_PASS A list of bit-field constants used for the flags in an outline's flags field. values FT_OUTLINE_NONE Value 0 is reserved. FT_OUTLINE_OWNER If set, this flag indicates that the outline's field arrays (i.e., points , flags , and contours ) are \u2018owned\u2019 by the outline object, and should thus be freed when it is destroyed. FT_OUTLINE_EVEN_ODD_FILL By default, outlines are filled using the non-zero winding rule. If set to 1, the outline will be filled using the even-odd fill rule (only works with the smooth rasterizer). FT_OUTLINE_REVERSE_FILL By default, outside contours of an outline are oriented in clock-wise direction, as defined in the TrueType specification. This flag is set if the outline uses the opposite direction (typically for Type 1 fonts). This flag is ignored by the scan converter. FT_OUTLINE_IGNORE_DROPOUTS By default, the scan converter will try to detect drop-outs in an outline and correct the glyph bitmap to ensure consistent shape continuity. If set, this flag hints the scan-line converter to ignore such cases. See below for more information. FT_OUTLINE_SMART_DROPOUTS Select smart dropout control. If unset, use simple dropout control. Ignored if FT_OUTLINE_IGNORE_DROPOUTS is set. See below for more information. FT_OUTLINE_INCLUDE_STUBS If set, turn pixels on for \u2018stubs\u2019, otherwise exclude them. Ignored if FT_OUTLINE_IGNORE_DROPOUTS is set. See below for more information. FT_OUTLINE_OVERLAP This flag indicates that this outline contains overlapping contrours and the anti-aliased renderer should perform oversampling to mitigate possible artifacts. This flag should not be set for well designed glyphs without overlaps because it quadruples the rendering time. FT_OUTLINE_HIGH_PRECISION This flag indicates that the scan-line converter should try to convert this outline to bitmaps with the highest possible quality. It is typically set for small character sizes. Note that this is only a hint that might be completely ignored by a given scan-converter. FT_OUTLINE_SINGLE_PASS This flag is set to force a given scan-converter to only use a single pass over the outline to render a bitmap glyph image. Normally, it is set for very large character sizes. It is only a hint that might be completely ignored by a given scan-converter. note The flags FT_OUTLINE_IGNORE_DROPOUTS , FT_OUTLINE_SMART_DROPOUTS , and FT_OUTLINE_INCLUDE_STUBS are ignored by the smooth rasterizer. There exists a second mechanism to pass the drop-out mode to the B/W rasterizer; see the tags field in FT_Outline . Please refer to the description of the \u2018SCANTYPE\u2019 instruction in the OpenType specification (in file ttinst1.doc ) how simple drop-outs, smart drop-outs, and stubs are defined.","title":"Outline Processing"},{"location":"ft2-outline_processing.html#outline-processing","text":"","title":"Outline Processing"},{"location":"ft2-outline_processing.html#synopsis","text":"This section contains routines used to create and destroy scalable glyph images known as \u2018outlines\u2019. These can also be measured, transformed, and converted into bitmaps and pixmaps.","title":"Synopsis"},{"location":"ft2-outline_processing.html#ft_outline","text":"Defined in FT_IMAGE_H (freetype/ftimage.h). typedef struct FT_Outline_ { short n_contours; /* number of contours in glyph */ short n_points; /* number of points in the glyph */ FT_Vector * points; /* the outline's points */ char * tags; /* the points flags */ short * contours; /* the contour end points */ int flags; /* outline masks */ } FT_Outline ; This structure is used to describe an outline to the scan-line converter.","title":"FT_Outline"},{"location":"ft2-outline_processing.html#ft_outline_new","text":"Defined in FT_OUTLINE_H (freetype/ftoutln.h). FT_EXPORT( FT_Error ) FT_Outline_New ( FT_Library library, FT_UInt numPoints, FT_Int numContours, FT_Outline *anoutline ); Create a new outline of a given size.","title":"FT_Outline_New"},{"location":"ft2-outline_processing.html#ft_outline_done","text":"Defined in FT_OUTLINE_H (freetype/ftoutln.h). FT_EXPORT( FT_Error ) FT_Outline_Done ( FT_Library library, FT_Outline * outline ); Destroy an outline created with FT_Outline_New .","title":"FT_Outline_Done"},{"location":"ft2-outline_processing.html#ft_outline_copy","text":"Defined in FT_OUTLINE_H (freetype/ftoutln.h). FT_EXPORT( FT_Error ) FT_Outline_Copy ( const FT_Outline * source, FT_Outline *target ); Copy an outline into another one. Both objects must have the same sizes (number of points & number of contours) when this function is called.","title":"FT_Outline_Copy"},{"location":"ft2-outline_processing.html#ft_outline_translate","text":"Defined in FT_OUTLINE_H (freetype/ftoutln.h). FT_EXPORT( void ) FT_Outline_Translate ( const FT_Outline * outline, FT_Pos xOffset, FT_Pos yOffset ); Apply a simple translation to the points of an outline.","title":"FT_Outline_Translate"},{"location":"ft2-outline_processing.html#ft_outline_transform","text":"Defined in FT_OUTLINE_H (freetype/ftoutln.h). FT_EXPORT( void ) FT_Outline_Transform ( const FT_Outline * outline, const FT_Matrix * matrix ); Apply a simple 2x2 matrix to all of an outline's points. Useful for applying rotations, slanting, flipping, etc.","title":"FT_Outline_Transform"},{"location":"ft2-outline_processing.html#ft_outline_embolden","text":"Defined in FT_OUTLINE_H (freetype/ftoutln.h). FT_EXPORT( FT_Error ) FT_Outline_Embolden ( FT_Outline * outline, FT_Pos strength ); Embolden an outline. The new outline will be at most 4 times strength pixels wider and higher. You may think of the left and bottom borders as unchanged. Negative strength values to reduce the outline thickness are possible also.","title":"FT_Outline_Embolden"},{"location":"ft2-outline_processing.html#ft_outline_emboldenxy","text":"Defined in FT_OUTLINE_H (freetype/ftoutln.h). FT_EXPORT( FT_Error ) FT_Outline_EmboldenXY ( FT_Outline * outline, FT_Pos xstrength, FT_Pos ystrength ); Embolden an outline. The new outline will be xstrength pixels wider and ystrength pixels higher. Otherwise, it is similar to FT_Outline_Embolden , which uses the same strength in both directions.","title":"FT_Outline_EmboldenXY"},{"location":"ft2-outline_processing.html#ft_outline_reverse","text":"Defined in FT_OUTLINE_H (freetype/ftoutln.h). FT_EXPORT( void ) FT_Outline_Reverse ( FT_Outline * outline ); Reverse the drawing direction of an outline. This is used to ensure consistent fill conventions for mirrored glyphs.","title":"FT_Outline_Reverse"},{"location":"ft2-outline_processing.html#ft_outline_check","text":"Defined in FT_OUTLINE_H (freetype/ftoutln.h). FT_EXPORT( FT_Error ) FT_Outline_Check ( FT_Outline * outline ); Check the contents of an outline descriptor.","title":"FT_Outline_Check"},{"location":"ft2-outline_processing.html#ft_outline_get_cbox","text":"Defined in FT_OUTLINE_H (freetype/ftoutln.h). FT_EXPORT( void ) FT_Outline_Get_CBox ( const FT_Outline * outline, FT_BBox *acbox ); Return an outline's \u2018control box\u2019. The control box encloses all the outline's points, including Bezier control points. Though it coincides with the exact bounding box for most glyphs, it can be slightly larger in some situations (like when rotating an outline that contains Bezier outside arcs). Computing the control box is very fast, while getting the bounding box can take much more time as it needs to walk over all segments and arcs in the outline. To get the latter, you can use the \u2018ftbbox\u2019 component, which is dedicated to this single task.","title":"FT_Outline_Get_CBox"},{"location":"ft2-outline_processing.html#ft_outline_get_bbox","text":"Defined in FT_BBOX_H (freetype/ftbbox.h). FT_EXPORT( FT_Error ) FT_Outline_Get_BBox ( FT_Outline * outline, FT_BBox *abbox ); Compute the exact bounding box of an outline. This is slower than computing the control box. However, it uses an advanced algorithm that returns very quickly when the two boxes coincide. Otherwise, the outline Bezier arcs are traversed to extract their extrema.","title":"FT_Outline_Get_BBox"},{"location":"ft2-outline_processing.html#ft_outline_get_bitmap","text":"Defined in FT_OUTLINE_H (freetype/ftoutln.h). FT_EXPORT( FT_Error ) FT_Outline_Get_Bitmap ( FT_Library library, FT_Outline * outline, const FT_Bitmap *abitmap ); Render an outline within a bitmap. The outline's image is simply OR-ed to the target bitmap.","title":"FT_Outline_Get_Bitmap"},{"location":"ft2-outline_processing.html#ft_outline_render","text":"Defined in FT_OUTLINE_H (freetype/ftoutln.h). FT_EXPORT( FT_Error ) FT_Outline_Render ( FT_Library library, FT_Outline * outline, FT_Raster_Params * params ); Render an outline within a bitmap using the current scan-convert.","title":"FT_Outline_Render"},{"location":"ft2-outline_processing.html#ft_outline_decompose","text":"Defined in FT_OUTLINE_H (freetype/ftoutln.h). FT_EXPORT( FT_Error ) FT_Outline_Decompose ( FT_Outline * outline, const FT_Outline_Funcs * func_interface, void * user ); Walk over an outline's structure to decompose it into individual segments and Bezier arcs. This function also emits \u2018move to\u2019 operations to indicate the start of new contours in the outline.","title":"FT_Outline_Decompose"},{"location":"ft2-outline_processing.html#ft_outline_funcs","text":"Defined in FT_IMAGE_H (freetype/ftimage.h). typedef struct FT_Outline_Funcs_ { FT_Outline_MoveToFunc move_to; FT_Outline_LineToFunc line_to; FT_Outline_ConicToFunc conic_to; FT_Outline_CubicToFunc cubic_to; int shift; FT_Pos delta; } FT_Outline_Funcs ; A structure to hold various function pointers used during outline decomposition in order to emit segments, conic, and cubic Beziers.","title":"FT_Outline_Funcs"},{"location":"ft2-outline_processing.html#ft_outline_movetofunc","text":"Defined in FT_IMAGE_H (freetype/ftimage.h). typedef int (* FT_Outline_MoveToFunc )( const FT_Vector * to, void * user ); # define FT_Outline_MoveTo_Func FT_Outline_MoveToFunc A function pointer type used to describe the signature of a \u2018move to\u2019 function during outline walking/decomposition. A \u2018move to\u2019 is emitted to start a new contour in an outline.","title":"FT_Outline_MoveToFunc"},{"location":"ft2-outline_processing.html#ft_outline_linetofunc","text":"Defined in FT_IMAGE_H (freetype/ftimage.h). typedef int (* FT_Outline_LineToFunc )( const FT_Vector * to, void * user ); # define FT_Outline_LineTo_Func FT_Outline_LineToFunc A function pointer type used to describe the signature of a \u2018line to\u2019 function during outline walking/decomposition. A \u2018line to\u2019 is emitted to indicate a segment in the outline.","title":"FT_Outline_LineToFunc"},{"location":"ft2-outline_processing.html#ft_outline_conictofunc","text":"Defined in FT_IMAGE_H (freetype/ftimage.h). typedef int (* FT_Outline_ConicToFunc )( const FT_Vector * control, const FT_Vector * to, void * user ); # define FT_Outline_ConicTo_Func FT_Outline_ConicToFunc A function pointer type used to describe the signature of a \u2018conic to\u2019 function during outline walking or decomposition. A \u2018conic to\u2019 is emitted to indicate a second-order Bezier arc in the outline.","title":"FT_Outline_ConicToFunc"},{"location":"ft2-outline_processing.html#ft_outline_cubictofunc","text":"Defined in FT_IMAGE_H (freetype/ftimage.h). typedef int (* FT_Outline_CubicToFunc )( const FT_Vector * control1, const FT_Vector * control2, const FT_Vector * to, void * user ); # define FT_Outline_CubicTo_Func FT_Outline_CubicToFunc A function pointer type used to describe the signature of a \u2018cubic to\u2019 function during outline walking or decomposition. A \u2018cubic to\u2019 is emitted to indicate a third-order Bezier arc.","title":"FT_Outline_CubicToFunc"},{"location":"ft2-outline_processing.html#ft_orientation","text":"Defined in FT_OUTLINE_H (freetype/ftoutln.h). typedef enum FT_Orientation_ { FT_ORIENTATION_TRUETYPE = 0, FT_ORIENTATION_POSTSCRIPT = 1, FT_ORIENTATION_FILL_RIGHT = FT_ORIENTATION_TRUETYPE , FT_ORIENTATION_FILL_LEFT = FT_ORIENTATION_POSTSCRIPT , FT_ORIENTATION_NONE } FT_Orientation ; A list of values used to describe an outline's contour orientation. The TrueType and PostScript specifications use different conventions to determine whether outline contours should be filled or unfilled.","title":"FT_Orientation"},{"location":"ft2-outline_processing.html#ft_outline_get_orientation","text":"Defined in FT_OUTLINE_H (freetype/ftoutln.h). FT_EXPORT( FT_Orientation ) FT_Outline_Get_Orientation ( FT_Outline * outline ); This function analyzes a glyph outline and tries to compute its fill orientation (see FT_Orientation ). This is done by integrating the total area covered by the outline. The positive integral corresponds to the clockwise orientation and FT_ORIENTATION_POSTSCRIPT is returned. The negative integral corresponds to the counter-clockwise orientation and FT_ORIENTATION_TRUETYPE is returned. Note that this will return FT_ORIENTATION_TRUETYPE for empty outlines.","title":"FT_Outline_Get_Orientation"},{"location":"ft2-outline_processing.html#ft_outline_xxx","text":"Defined in FT_IMAGE_H (freetype/ftimage.h). # define FT_OUTLINE_NONE 0x0 # define FT_OUTLINE_OWNER 0x1 # define FT_OUTLINE_EVEN_ODD_FILL 0x2 # define FT_OUTLINE_REVERSE_FILL 0x4 # define FT_OUTLINE_IGNORE_DROPOUTS 0x8 # define FT_OUTLINE_SMART_DROPOUTS 0x10 # define FT_OUTLINE_INCLUDE_STUBS 0x20 # define FT_OUTLINE_OVERLAP 0x40 # define FT_OUTLINE_HIGH_PRECISION 0x100 # define FT_OUTLINE_SINGLE_PASS 0x200 /* these constants are deprecated; use the corresponding */ /* ` FT_OUTLINE_XXX ` values instead */ # define ft_outline_none FT_OUTLINE_NONE # define ft_outline_owner FT_OUTLINE_OWNER # define ft_outline_even_odd_fill FT_OUTLINE_EVEN_ODD_FILL # define ft_outline_reverse_fill FT_OUTLINE_REVERSE_FILL # define ft_outline_ignore_dropouts FT_OUTLINE_IGNORE_DROPOUTS # define ft_outline_high_precision FT_OUTLINE_HIGH_PRECISION # define ft_outline_single_pass FT_OUTLINE_SINGLE_PASS A list of bit-field constants used for the flags in an outline's flags field.","title":"FT_OUTLINE_XXX"},{"location":"ft2-parameter_tags.html","text":"FreeType \u00bb Docs \u00bb Controlling FreeType Modules \u00bb Parameter Tags Parameter Tags \u00b6 Synopsis \u00b6 This section contains macros for the FT_Parameter structure that are used with various functions to activate some special functionality or different behaviour of various components of FreeType. FT_PARAM_TAG_IGNORE_TYPOGRAPHIC_FAMILY \u00b6 # define FT_PARAM_TAG_IGNORE_TYPOGRAPHIC_FAMILY \\ FT_MAKE_TAG ( 'i', 'g', 'p', 'f' ) /* this constant is deprecated */ # define FT_PARAM_TAG_IGNORE_PREFERRED_FAMILY \\ FT_PARAM_TAG_IGNORE_TYPOGRAPHIC_FAMILY A tag for FT_Parameter to make FT_Open_Face ignore typographic family names in the \u2018name\u2019 table (introduced in OpenType version 1.4). Use this for backward compatibility with legacy systems that have a four-faces-per-family restriction. since 2.8 FT_PARAM_TAG_IGNORE_TYPOGRAPHIC_SUBFAMILY \u00b6 # define FT_PARAM_TAG_IGNORE_TYPOGRAPHIC_SUBFAMILY \\ FT_MAKE_TAG ( 'i', 'g', 'p', 's' ) /* this constant is deprecated */ # define FT_PARAM_TAG_IGNORE_PREFERRED_SUBFAMILY \\ FT_PARAM_TAG_IGNORE_TYPOGRAPHIC_SUBFAMILY A tag for FT_Parameter to make FT_Open_Face ignore typographic subfamily names in the \u2018name\u2019 table (introduced in OpenType version 1.4). Use this for backward compatibility with legacy systems that have a four-faces-per-family restriction. since 2.8 FT_PARAM_TAG_INCREMENTAL \u00b6 # define FT_PARAM_TAG_INCREMENTAL \\ FT_MAKE_TAG ( 'i', 'n', 'c', 'r' ) An FT_Parameter tag to be used with FT_Open_Face to indicate incremental glyph loading. FT_PARAM_TAG_LCD_FILTER_WEIGHTS \u00b6 # define FT_PARAM_TAG_LCD_FILTER_WEIGHTS \\ FT_MAKE_TAG ( 'l', 'c', 'd', 'f' ) An FT_Parameter tag to be used with FT_Face_Properties . The corresponding argument specifies the five LCD filter weights for a given face (if using FT_LOAD_TARGET_LCD , for example), overriding the global default values or the values set up with FT_Library_SetLcdFilterWeights . since 2.8 FT_PARAM_TAG_RANDOM_SEED \u00b6 # define FT_PARAM_TAG_RANDOM_SEED \\ FT_MAKE_TAG ( 's', 'e', 'e', 'd' ) An FT_Parameter tag to be used with FT_Face_Properties . The corresponding 32bit signed integer argument overrides the font driver's random seed value with a face-specific one; see random-seed . since 2.8 FT_PARAM_TAG_STEM_DARKENING \u00b6 # define FT_PARAM_TAG_STEM_DARKENING \\ FT_MAKE_TAG ( 'd', 'a', 'r', 'k' ) An FT_Parameter tag to be used with FT_Face_Properties . The corresponding Boolean argument specifies whether to apply stem darkening, overriding the global default values or the values set up with FT_Property_Set (see no-stem-darkening ). This is a passive setting that only takes effect if the font driver or autohinter honors it, which the CFF, Type 1, and CID drivers always do, but the autohinter only in \u2018light\u2019 hinting mode (as of version 2.9). since 2.8 FT_PARAM_TAG_UNPATENTED_HINTING \u00b6 # define FT_PARAM_TAG_UNPATENTED_HINTING \\ FT_MAKE_TAG ( 'u', 'n', 'p', 'a' ) Deprecated, no effect. Previously: A constant used as the tag of an FT_Parameter structure to indicate that unpatented methods only should be used by the TrueType bytecode interpreter for a typeface opened by FT_Open_Face .","title":"Parameter Tags"},{"location":"ft2-parameter_tags.html#parameter-tags","text":"","title":"Parameter Tags"},{"location":"ft2-parameter_tags.html#synopsis","text":"This section contains macros for the FT_Parameter structure that are used with various functions to activate some special functionality or different behaviour of various components of FreeType.","title":"Synopsis"},{"location":"ft2-parameter_tags.html#ft_param_tag_ignore_typographic_family","text":"# define FT_PARAM_TAG_IGNORE_TYPOGRAPHIC_FAMILY \\ FT_MAKE_TAG ( 'i', 'g', 'p', 'f' ) /* this constant is deprecated */ # define FT_PARAM_TAG_IGNORE_PREFERRED_FAMILY \\ FT_PARAM_TAG_IGNORE_TYPOGRAPHIC_FAMILY A tag for FT_Parameter to make FT_Open_Face ignore typographic family names in the \u2018name\u2019 table (introduced in OpenType version 1.4). Use this for backward compatibility with legacy systems that have a four-faces-per-family restriction.","title":"FT_PARAM_TAG_IGNORE_TYPOGRAPHIC_FAMILY"},{"location":"ft2-parameter_tags.html#ft_param_tag_ignore_typographic_subfamily","text":"# define FT_PARAM_TAG_IGNORE_TYPOGRAPHIC_SUBFAMILY \\ FT_MAKE_TAG ( 'i', 'g', 'p', 's' ) /* this constant is deprecated */ # define FT_PARAM_TAG_IGNORE_PREFERRED_SUBFAMILY \\ FT_PARAM_TAG_IGNORE_TYPOGRAPHIC_SUBFAMILY A tag for FT_Parameter to make FT_Open_Face ignore typographic subfamily names in the \u2018name\u2019 table (introduced in OpenType version 1.4). Use this for backward compatibility with legacy systems that have a four-faces-per-family restriction.","title":"FT_PARAM_TAG_IGNORE_TYPOGRAPHIC_SUBFAMILY"},{"location":"ft2-parameter_tags.html#ft_param_tag_incremental","text":"# define FT_PARAM_TAG_INCREMENTAL \\ FT_MAKE_TAG ( 'i', 'n', 'c', 'r' ) An FT_Parameter tag to be used with FT_Open_Face to indicate incremental glyph loading.","title":"FT_PARAM_TAG_INCREMENTAL"},{"location":"ft2-parameter_tags.html#ft_param_tag_lcd_filter_weights","text":"# define FT_PARAM_TAG_LCD_FILTER_WEIGHTS \\ FT_MAKE_TAG ( 'l', 'c', 'd', 'f' ) An FT_Parameter tag to be used with FT_Face_Properties . The corresponding argument specifies the five LCD filter weights for a given face (if using FT_LOAD_TARGET_LCD , for example), overriding the global default values or the values set up with FT_Library_SetLcdFilterWeights .","title":"FT_PARAM_TAG_LCD_FILTER_WEIGHTS"},{"location":"ft2-parameter_tags.html#ft_param_tag_random_seed","text":"# define FT_PARAM_TAG_RANDOM_SEED \\ FT_MAKE_TAG ( 's', 'e', 'e', 'd' ) An FT_Parameter tag to be used with FT_Face_Properties . The corresponding 32bit signed integer argument overrides the font driver's random seed value with a face-specific one; see random-seed .","title":"FT_PARAM_TAG_RANDOM_SEED"},{"location":"ft2-parameter_tags.html#ft_param_tag_stem_darkening","text":"# define FT_PARAM_TAG_STEM_DARKENING \\ FT_MAKE_TAG ( 'd', 'a', 'r', 'k' ) An FT_Parameter tag to be used with FT_Face_Properties . The corresponding Boolean argument specifies whether to apply stem darkening, overriding the global default values or the values set up with FT_Property_Set (see no-stem-darkening ). This is a passive setting that only takes effect if the font driver or autohinter honors it, which the CFF, Type 1, and CID drivers always do, but the autohinter only in \u2018light\u2019 hinting mode (as of version 2.9).","title":"FT_PARAM_TAG_STEM_DARKENING"},{"location":"ft2-parameter_tags.html#ft_param_tag_unpatented_hinting","text":"# define FT_PARAM_TAG_UNPATENTED_HINTING \\ FT_MAKE_TAG ( 'u', 'n', 'p', 'a' ) Deprecated, no effect. Previously: A constant used as the tag of an FT_Parameter structure to indicate that unpatented methods only should be used by the TrueType bytecode interpreter for a typeface opened by FT_Open_Face .","title":"FT_PARAM_TAG_UNPATENTED_HINTING"},{"location":"ft2-pcf_driver.html","text":"FreeType \u00bb Docs \u00bb Controlling FreeType Modules \u00bb The PCF driver The PCF driver \u00b6 Synopsis \u00b6 While FreeType's PCF driver doesn't expose API functions by itself, it is possible to control its behaviour with FT_Property_Set and FT_Property_Get . Right now, there is a single property no-long-family-names available if FreeType is compiled with PCF_CONFIG_OPTION_LONG_FAMILY_NAMES. The PCF driver's module name is \u2018pcf\u2019.","title":"The PCF driver"},{"location":"ft2-pcf_driver.html#the-pcf-driver","text":"","title":"The PCF driver"},{"location":"ft2-pcf_driver.html#synopsis","text":"While FreeType's PCF driver doesn't expose API functions by itself, it is possible to control its behaviour with FT_Property_Set and FT_Property_Get . Right now, there is a single property no-long-family-names available if FreeType is compiled with PCF_CONFIG_OPTION_LONG_FAMILY_NAMES. The PCF driver's module name is \u2018pcf\u2019.","title":"Synopsis"},{"location":"ft2-pfr_fonts.html","text":"FreeType \u00bb Docs \u00bb Format-Specific API \u00bb PFR Fonts PFR Fonts \u00b6 Synopsis \u00b6 This section contains the declaration of PFR-specific functions. FT_Get_PFR_Metrics \u00b6 Defined in FT_PFR_H (freetype/ftpfr.h). FT_EXPORT( FT_Error ) FT_Get_PFR_Metrics ( FT_Face face, FT_UInt *aoutline_resolution, FT_UInt *ametrics_resolution, FT_Fixed *ametrics_x_scale, FT_Fixed *ametrics_y_scale ); Return the outline and metrics resolutions of a given PFR face. input face Handle to the input face. It can be a non-PFR face. output aoutline_resolution Outline resolution. This is equivalent to face->units_per_EM for non-PFR fonts. Optional (parameter can be NULL ). ametrics_resolution Metrics resolution. This is equivalent to outline_resolution for non-PFR fonts. Optional (parameter can be NULL ). ametrics_x_scale A 16.16 fixed-point number used to scale distance expressed in metrics units to device subpixels. This is equivalent to face->size->x_scale , but for metrics only. Optional (parameter can be NULL ). ametrics_y_scale Same as ametrics_x_scale but for the vertical direction. optional (parameter can be NULL ). return FreeType error code. 0 means success. note If the input face is not a PFR, this function will return an error. However, in all cases, it will return valid values. FT_Get_PFR_Kerning \u00b6 Defined in FT_PFR_H (freetype/ftpfr.h). FT_EXPORT( FT_Error ) FT_Get_PFR_Kerning ( FT_Face face, FT_UInt left, FT_UInt right, FT_Vector *avector ); Return the kerning pair corresponding to two glyphs in a PFR face. The distance is expressed in metrics units, unlike the result of FT_Get_Kerning . input face A handle to the input face. left Index of the left glyph. right Index of the right glyph. output avector A kerning vector. return FreeType error code. 0 means success. note This function always return distances in original PFR metrics units. This is unlike FT_Get_Kerning with the FT_KERNING_UNSCALED mode, which always returns distances converted to outline units. You can use the value of the x_scale and y_scale parameters returned by FT_Get_PFR_Metrics to scale these to device subpixels. FT_Get_PFR_Advance \u00b6 Defined in FT_PFR_H (freetype/ftpfr.h). FT_EXPORT( FT_Error ) FT_Get_PFR_Advance ( FT_Face face, FT_UInt gindex, FT_Pos *aadvance ); Return a given glyph advance, expressed in original metrics units, from a PFR font. input face A handle to the input face. gindex The glyph index. output aadvance The glyph advance in metrics units. return FreeType error code. 0 means success. note You can use the x_scale or y_scale results of FT_Get_PFR_Metrics to convert the advance to device subpixels (i.e., 1/64 th of pixels).","title":"PFR Fonts"},{"location":"ft2-pfr_fonts.html#pfr-fonts","text":"","title":"PFR Fonts"},{"location":"ft2-pfr_fonts.html#synopsis","text":"This section contains the declaration of PFR-specific functions.","title":"Synopsis"},{"location":"ft2-pfr_fonts.html#ft_get_pfr_metrics","text":"Defined in FT_PFR_H (freetype/ftpfr.h). FT_EXPORT( FT_Error ) FT_Get_PFR_Metrics ( FT_Face face, FT_UInt *aoutline_resolution, FT_UInt *ametrics_resolution, FT_Fixed *ametrics_x_scale, FT_Fixed *ametrics_y_scale ); Return the outline and metrics resolutions of a given PFR face.","title":"FT_Get_PFR_Metrics"},{"location":"ft2-pfr_fonts.html#ft_get_pfr_kerning","text":"Defined in FT_PFR_H (freetype/ftpfr.h). FT_EXPORT( FT_Error ) FT_Get_PFR_Kerning ( FT_Face face, FT_UInt left, FT_UInt right, FT_Vector *avector ); Return the kerning pair corresponding to two glyphs in a PFR face. The distance is expressed in metrics units, unlike the result of FT_Get_Kerning .","title":"FT_Get_PFR_Kerning"},{"location":"ft2-pfr_fonts.html#ft_get_pfr_advance","text":"Defined in FT_PFR_H (freetype/ftpfr.h). FT_EXPORT( FT_Error ) FT_Get_PFR_Advance ( FT_Face face, FT_UInt gindex, FT_Pos *aadvance ); Return a given glyph advance, expressed in original metrics units, from a PFR font.","title":"FT_Get_PFR_Advance"},{"location":"ft2-properties.html","text":"FreeType \u00bb Docs \u00bb Controlling FreeType Modules \u00bb Driver properties Driver properties \u00b6 Synopsis \u00b6 Driver modules can be controlled by setting and unsetting properties, using the functions FT_Property_Set and FT_Property_Get . This section documents the available properties, together with auxiliary macros and structures. FT_HINTING_XXX \u00b6 Defined in FT_DRIVER_H (freetype/ftdriver.h). # define FT_HINTING_FREETYPE 0 # define FT_HINTING_ADOBE 1 /* these constants (introduced in 2.4.12) are deprecated */ # define FT_CFF_HINTING_FREETYPE FT_HINTING_FREETYPE # define FT_CFF_HINTING_ADOBE FT_HINTING_ADOBE A list of constants used for the hinting-engine property to select the hinting engine for CFF, Type 1, and CID fonts. values FT_HINTING_FREETYPE Use the old FreeType hinting engine. FT_HINTING_ADOBE Use the hinting engine contributed by Adobe. since 2.9 hinting-engine \u00b6 Thanks to Adobe, which contributed a new hinting (and parsing) engine, an application can select between \u2018freetype\u2019 and \u2018adobe\u2019 if compiled with CFF_CONFIG_OPTION_OLD_ENGINE . If this configuration macro isn't defined, \u2018hinting-engine\u2019 does nothing. The same holds for the Type 1 and CID modules if compiled with T1_CONFIG_OPTION_OLD_ENGINE . For the \u2018cff\u2019 module, the default engine is \u2018freetype\u2019 if CFF_CONFIG_OPTION_OLD_ENGINE is defined, and \u2018adobe\u2019 otherwise. For both the \u2018type1\u2019 and \u2018t1cid\u2019 modules, the default engine is \u2018freetype\u2019 if T1_CONFIG_OPTION_OLD_ENGINE is defined, and \u2018adobe\u2019 otherwise. note This property can be used with FT_Property_Get also. This property can be set via the FREETYPE_PROPERTIES environment variable (using values \u2018adobe\u2019 or \u2018freetype\u2019). example The following example code demonstrates how to select Adobe's hinting engine for the \u2018cff\u2019 module (omitting the error handling). FT_Library library; FT_UInt hinting_engine = FT_HINTING_ADOBE; FT_Init_FreeType( &library ); FT_Property_Set( library, \"cff\", \"hinting-engine\", &hinting_engine ); since 2.4.12 (for \u2018cff\u2019 module) 2.9 (for \u2018type1\u2019 and \u2018t1cid\u2019 modules) no-stem-darkening \u00b6 All glyphs that pass through the auto-hinter will be emboldened unless this property is set to TRUE. The same is true for the CFF, Type 1, and CID font modules if the \u2018Adobe\u2019 engine is selected (which is the default). Stem darkening emboldens glyphs at smaller sizes to make them more readable on common low-DPI screens when using linear alpha blending and gamma correction, see FT_Render_Glyph . When not using linear alpha blending and gamma correction, glyphs will appear heavy and fuzzy! Gamma correction essentially lightens fonts since shades of grey are shifted to higher pixel values (= higher brightness) to match the original intention to the reality of our screens. The side-effect is that glyphs \u2018thin out\u2019. Mac OS X and Adobe's proprietary font rendering library implement a counter-measure: stem darkening at smaller sizes where shades of gray dominate. By emboldening a glyph slightly in relation to its pixel size, individual pixels get higher coverage of filled-in outlines and are therefore \u2018blacker\u2019. This counteracts the \u2018thinning out\u2019 of glyphs, making text remain readable at smaller sizes. For the auto-hinter, stem-darkening is experimental currently and thus switched off by default (this is, no-stem-darkening is set to TRUE by default). Total consistency with the CFF driver is not achieved right now because the emboldening method differs and glyphs must be scaled down on the Y-axis to keep outline points inside their precomputed blue zones. The smaller the size (especially 9ppem and down), the higher the loss of emboldening versus the CFF driver. Note that stem darkening is never applied if FT_LOAD_NO_SCALE is set. note This property can be used with FT_Property_Get also. This property can be set via the FREETYPE_PROPERTIES environment variable (using values 1 and 0 for \u2018on\u2019 and \u2018off\u2019, respectively). It can also be set per face using FT_Face_Properties with FT_PARAM_TAG_STEM_DARKENING . example FT_Library library; FT_Bool no_stem_darkening = TRUE; FT_Init_FreeType( &library ); FT_Property_Set( library, \"cff\", \"no-stem-darkening\", &no_stem_darkening ); since 2.4.12 (for \u2018cff\u2019 module) 2.6.2 (for \u2018autofitter\u2019 module) 2.9 (for \u2018type1\u2019 and \u2018t1cid\u2019 modules) darkening-parameters \u00b6 By default, the Adobe hinting engine, as used by the CFF, Type 1, and CID font drivers, darkens stems as follows (if the no-stem-darkening property isn't set): stem width <= 0.5px: darkening amount = 0.4px stem width = 1px: darkening amount = 0.275px stem width = 1.667px: darkening amount = 0.275px stem width >= 2.333px: darkening amount = 0px and piecewise linear in-between. At configuration time, these four control points can be set with the macro CFF_CONFIG_OPTION_DARKENING_PARAMETERS ; the CFF, Type 1, and CID drivers share these values. At runtime, the control points can be changed using the darkening-parameters property (see the example below that demonstrates this for the Type 1 driver). The x values give the stem width, and the y values the darkening amount. The unit is 1000 th of pixels. All coordinate values must be positive; the x values must be monotonically increasing; the y values must be monotonically decreasing and smaller than or equal to 500 (corresponding to half a pixel); the slope of each linear piece must be shallower than -1 (e.g., -.4). The auto-hinter provides this property, too, as an experimental feature. See no-stem-darkening for more. note This property can be used with FT_Property_Get also. This property can be set via the FREETYPE_PROPERTIES environment variable, using eight comma-separated integers without spaces. Here the above example, using \\ to break the line for readability. FREETYPE_PROPERTIES=\\ type1:darkening-parameters=500,300,1000,200,1500,100,2000,0 example FT_Library library; FT_Int darken_params[8] = { 500, 300, // x1, y1 1000, 200, // x2, y2 1500, 100, // x3, y3 2000, 0 }; // x4, y4 FT_Init_FreeType( &library ); FT_Property_Set( library, \"type1\", \"darkening-parameters\", darken_params ); since 2.5.1 (for \u2018cff\u2019 module) 2.6.2 (for \u2018autofitter\u2019 module) 2.9 (for \u2018type1\u2019 and \u2018t1cid\u2019 modules) random-seed \u00b6 By default, the seed value for the CFF \u2018random\u2019 operator and the similar \u20180 28 callothersubr pop\u2019 command for the Type 1 and CID drivers is set to a random value. However, mainly for debugging purposes, it is often necessary to use a known value as a seed so that the pseudo-random number sequences generated by \u2018random\u2019 are repeatable. The random-seed property does that. Its argument is a signed 32bit integer; if the value is zero or negative, the seed given by the intitialRandomSeed private DICT operator in a CFF file gets used (or a default value if there is no such operator). If the value is positive, use it instead of initialRandomSeed , which is consequently ignored. note This property can be set via the FREETYPE_PROPERTIES environment variable. It can also be set per face using FT_Face_Properties with FT_PARAM_TAG_RANDOM_SEED . since 2.8 (for \u2018cff\u2019 module) 2.9 (for \u2018type1\u2019 and \u2018t1cid\u2019 modules) no-long-family-names \u00b6 If PCF_CONFIG_OPTION_LONG_FAMILY_NAMES is active while compiling FreeType, the PCF driver constructs long family names. There are many PCF fonts just called \u2018Fixed\u2019 which look completely different, and which have nothing to do with each other. When selecting \u2018Fixed\u2019 in KDE or Gnome one gets results that appear rather random, the style changes often if one changes the size and one cannot select some fonts at all. The improve this situation, the PCF module prepends the foundry name (plus a space) to the family name. It also checks whether there are \u2018wide\u2019 characters; all put together, family names like \u2018Sony Fixed\u2019 or \u2018Misc Fixed Wide\u2019 are constructed. If no-long-family-names is set, this feature gets switched off. note This property can be used with FT_Property_Get also. This property can be set via the FREETYPE_PROPERTIES environment variable (using values 1 and 0 for \u2018on\u2019 and \u2018off\u2019, respectively). example FT_Library library; FT_Bool no_long_family_names = TRUE; FT_Init_FreeType( &library ); FT_Property_Set( library, \"pcf\", \"no-long-family-names\", &no_long_family_names ); since 2.8 TT_INTERPRETER_VERSION_XXX \u00b6 Defined in FT_DRIVER_H (freetype/ftdriver.h). # define TT_INTERPRETER_VERSION_35 35 # define TT_INTERPRETER_VERSION_38 38 # define TT_INTERPRETER_VERSION_40 40 A list of constants used for the interpreter-version property to select the hinting engine for Truetype fonts. The numeric value in the constant names represents the version number as returned by the \u2018GETINFO\u2019 bytecode instruction. values TT_INTERPRETER_VERSION_35 Version 35 corresponds to MS rasterizer v.1.7 as used e.g. in Windows 98; only grayscale and B/W rasterizing is supported. TT_INTERPRETER_VERSION_38 Version 38 corresponds to MS rasterizer v.1.9; it is roughly equivalent to the hinting provided by DirectWrite ClearType (as can be found, for example, in the Internet Explorer 9 running on Windows 7). It is used in FreeType to select the \u2018Infinality\u2019 subpixel hinting code. The code may be removed in a future version. TT_INTERPRETER_VERSION_40 Version 40 corresponds to MS rasterizer v.2.1; it is roughly equivalent to the hinting provided by DirectWrite ClearType (as can be found, for example, in Microsoft's Edge Browser on Windows 10). It is used in FreeType to select the \u2018minimal\u2019 subpixel hinting code, a stripped-down and higher performance version of the \u2018Infinality\u2019 code. note This property controls the behaviour of the bytecode interpreter and thus how outlines get hinted. It does not control how glyph get rasterized! In particular, it does not control subpixel color filtering. If FreeType has not been compiled with the configuration option TT_CONFIG_OPTION_SUBPIXEL_HINTING , selecting version 38 or 40 causes an FT_Err_Unimplemented_Feature error. Depending on the graphics framework, Microsoft uses different bytecode and rendering engines. As a consequence, the version numbers returned by a call to the \u2018GETINFO\u2019 bytecode instruction are more convoluted than desired. Here are two tables that try to shed some light on the possible values for the MS rasterizer engine, together with the additional features introduced by it. GETINFO framework version feature ------------------------------------------------------------------- 3 GDI (Win 3.1), v1.0 16-bit, first version TrueImage 33 GDI (Win NT 3.1), v1.5 32-bit HP Laserjet 34 GDI (Win 95) v1.6 font smoothing, new SCANTYPE opcode 35 GDI (Win 98/2000) v1.7 (UN)SCALED_COMPONENT_OFFSET bits in composite glyphs 36 MGDI (Win CE 2) v1.6+ classic ClearType 37 GDI (XP and later), v1.8 ClearType GDI+ old (before Vista) 38 GDI+ old (Vista, Win 7), v1.9 subpixel ClearType, WPF Y-direction ClearType, additional error checking 39 DWrite (before Win 8) v2.0 subpixel ClearType flags in GETINFO opcode, bug fixes 40 GDI+ (after Win 7), v2.1 Y-direction ClearType flag DWrite (Win 8) in GETINFO opcode, Gray ClearType The \u2018version\u2019 field gives a rough orientation only, since some applications provided certain features much earlier (as an example, Microsoft Reader used subpixel and Y-direction ClearType already in Windows 2000). Similarly, updates to a given framework might include improved hinting support. version sampling rendering comment x y x y -------------------------------------------------------------- v1.0 normal normal B/W B/W bi-level v1.6 high high gray gray grayscale v1.8 high normal color-filter B/W (GDI) ClearType v1.9 high high color-filter gray Color ClearType v2.1 high normal gray B/W Gray ClearType v2.1 high high gray gray Gray ClearType Color and Gray ClearType are the two available variants of \u2018Y-direction ClearType\u2019, meaning grayscale rasterization along the Y-direction; the name used in the TrueType specification for this feature is \u2018symmetric smoothing\u2019. \u2018Classic ClearType\u2019 is the original algorithm used before introducing a modified version in Win XP. Another name for v1.6's grayscale rendering is \u2018font smoothing\u2019, and \u2018Color ClearType\u2019 is sometimes also called \u2018DWrite ClearType\u2019. To differentiate between today's Color ClearType and the earlier ClearType variant with B/W rendering along the vertical axis, the latter is sometimes called \u2018GDI ClearType\u2019. \u2018Normal\u2019 and \u2018high\u2019 sampling describe the (virtual) resolution to access the rasterized outline after the hinting process. \u2018Normal\u2019 means 1 sample per grid line (i.e., B/W). In the current Microsoft implementation, \u2018high\u2019 means an extra virtual resolution of 16x16 (or 16x1) grid lines per pixel for bytecode instructions like \u2018MIRP\u2019. After hinting, these 16 grid lines are mapped to 6x5 (or 6x1) grid lines for color filtering if Color ClearType is activated. Note that \u2018Gray ClearType\u2019 is essentially the same as v1.6's grayscale rendering. However, the GETINFO instruction handles it differently: v1.6 returns bit 12 (hinting for grayscale), while v2.1 returns bits 13 (hinting for ClearType), 18 (symmetrical smoothing), and 19 (Gray ClearType). Also, this mode respects bits 2 and 3 for the version 1 gasp table exclusively (like Color ClearType), while v1.6 only respects the values of version 0 (bits 0 and 1). Keep in mind that the features of the above interpreter versions might not map exactly to FreeType features or behavior because it is a fundamentally different library with different internals. interpreter-version \u00b6 Currently, three versions are available, two representing the bytecode interpreter with subpixel hinting support (old \u2018Infinality\u2019 code and new stripped-down and higher performance \u2018minimal\u2019 code) and one without, respectively. The default is subpixel support if TT_CONFIG_OPTION_SUBPIXEL_HINTING is defined, and no subpixel support otherwise (since it isn't available then). If subpixel hinting is on, many TrueType bytecode instructions behave differently compared to B/W or grayscale rendering (except if \u2018native ClearType\u2019 is selected by the font). Microsoft's main idea is to render at a much increased horizontal resolution, then sampling down the created output to subpixel precision. However, many older fonts are not suited to this and must be specially taken care of by applying (hardcoded) tweaks in Microsoft's interpreter. Details on subpixel hinting and some of the necessary tweaks can be found in Greg Hitchcock's whitepaper at \u2018 https://www.microsoft.com/typography/cleartype/truetypecleartype.aspx \u2019. Note that FreeType currently doesn't really \u2018subpixel hint\u2019 (6x1, 6x2, or 6x5 supersampling) like discussed in the paper. Depending on the chosen interpreter, it simply ignores instructions on vertical stems to arrive at very similar results. note This property can be used with FT_Property_Get also. This property can be set via the FREETYPE_PROPERTIES environment variable (using values \u201835\u2019, \u201838\u2019, or \u201840\u2019). example The following example code demonstrates how to deactivate subpixel hinting (omitting the error handling). FT_Library library; FT_Face face; FT_UInt interpreter_version = TT_INTERPRETER_VERSION_35; FT_Init_FreeType( &library ); FT_Property_Set( library, \"truetype\", \"interpreter-version\", &interpreter_version ); since 2.5 glyph-to-script-map \u00b6 Experimental only The auto-hinter provides various script modules to hint glyphs. Examples of supported scripts are Latin or CJK. Before a glyph is auto-hinted, the Unicode character map of the font gets examined, and the script is then determined based on Unicode character ranges, see below. OpenType fonts, however, often provide much more glyphs than character codes (small caps, superscripts, ligatures, swashes, etc.), to be controlled by so-called \u2018features\u2019. Handling OpenType features can be quite complicated and thus needs a separate library on top of FreeType. The mapping between glyph indices and scripts (in the auto-hinter sense, see the FT_AUTOHINTER_SCRIPT_XXX values) is stored as an array with num_glyphs elements, as found in the font's FT_Face structure. The glyph-to-script-map property returns a pointer to this array, which can be modified as needed. Note that the modification should happen before the first glyph gets processed by the auto-hinter so that the global analysis of the font shapes actually uses the modified mapping. example The following example code demonstrates how to access it (omitting the error handling). FT_Library library; FT_Face face; FT_Prop_GlyphToScriptMap prop; FT_Init_FreeType( &library ); FT_New_Face( library, \"foo.ttf\", 0, &face ); prop.face = face; FT_Property_Get( library, \"autofitter\", \"glyph-to-script-map\", &prop ); // adjust `prop.map' as needed right here FT_Load_Glyph( face, ..., FT_LOAD_FORCE_AUTOHINT ); since 2.4.11 FT_AUTOHINTER_SCRIPT_XXX \u00b6 Defined in FT_DRIVER_H (freetype/ftdriver.h). # define FT_AUTOHINTER_SCRIPT_NONE 0 # define FT_AUTOHINTER_SCRIPT_LATIN 1 # define FT_AUTOHINTER_SCRIPT_CJK 2 # define FT_AUTOHINTER_SCRIPT_INDIC 3 Experimental only A list of constants used for the glyph-to-script-map property to specify the script submodule the auto-hinter should use for hinting a particular glyph. values FT_AUTOHINTER_SCRIPT_NONE Don't auto-hint this glyph. FT_AUTOHINTER_SCRIPT_LATIN Apply the latin auto-hinter. For the auto-hinter, \u2018latin\u2019 is a very broad term, including Cyrillic and Greek also since characters from those scripts share the same design constraints. By default, characters from the following Unicode ranges are assigned to this submodule. U+0020 - U+007F // Basic Latin (no control characters) U+00A0 - U+00FF // Latin-1 Supplement (no control characters) U+0100 - U+017F // Latin Extended-A U+0180 - U+024F // Latin Extended-B U+0250 - U+02AF // IPA Extensions U+02B0 - U+02FF // Spacing Modifier Letters U+0300 - U+036F // Combining Diacritical Marks U+0370 - U+03FF // Greek and Coptic U+0400 - U+04FF // Cyrillic U+0500 - U+052F // Cyrillic Supplement U+1D00 - U+1D7F // Phonetic Extensions U+1D80 - U+1DBF // Phonetic Extensions Supplement U+1DC0 - U+1DFF // Combining Diacritical Marks Supplement U+1E00 - U+1EFF // Latin Extended Additional U+1F00 - U+1FFF // Greek Extended U+2000 - U+206F // General Punctuation U+2070 - U+209F // Superscripts and Subscripts U+20A0 - U+20CF // Currency Symbols U+2150 - U+218F // Number Forms U+2460 - U+24FF // Enclosed Alphanumerics U+2C60 - U+2C7F // Latin Extended-C U+2DE0 - U+2DFF // Cyrillic Extended-A U+2E00 - U+2E7F // Supplemental Punctuation U+A640 - U+A69F // Cyrillic Extended-B U+A720 - U+A7FF // Latin Extended-D U+FB00 - U+FB06 // Alphab. Present. Forms (Latin Ligatures) U+1D400 - U+1D7FF // Mathematical Alphanumeric Symbols U+1F100 - U+1F1FF // Enclosed Alphanumeric Supplement FT_AUTOHINTER_SCRIPT_CJK Apply the CJK auto-hinter, covering Chinese, Japanese, Korean, old Vietnamese, and some other scripts. By default, characters from the following Unicode ranges are assigned to this submodule. U+1100 - U+11FF // Hangul Jamo U+2E80 - U+2EFF // CJK Radicals Supplement U+2F00 - U+2FDF // Kangxi Radicals U+2FF0 - U+2FFF // Ideographic Description Characters U+3000 - U+303F // CJK Symbols and Punctuation U+3040 - U+309F // Hiragana U+30A0 - U+30FF // Katakana U+3100 - U+312F // Bopomofo U+3130 - U+318F // Hangul Compatibility Jamo U+3190 - U+319F // Kanbun U+31A0 - U+31BF // Bopomofo Extended U+31C0 - U+31EF // CJK Strokes U+31F0 - U+31FF // Katakana Phonetic Extensions U+3200 - U+32FF // Enclosed CJK Letters and Months U+3300 - U+33FF // CJK Compatibility U+3400 - U+4DBF // CJK Unified Ideographs Extension A U+4DC0 - U+4DFF // Yijing Hexagram Symbols U+4E00 - U+9FFF // CJK Unified Ideographs U+A960 - U+A97F // Hangul Jamo Extended-A U+AC00 - U+D7AF // Hangul Syllables U+D7B0 - U+D7FF // Hangul Jamo Extended-B U+F900 - U+FAFF // CJK Compatibility Ideographs U+FE10 - U+FE1F // Vertical forms U+FE30 - U+FE4F // CJK Compatibility Forms U+FF00 - U+FFEF // Halfwidth and Fullwidth Forms U+1B000 - U+1B0FF // Kana Supplement U+1D300 - U+1D35F // Tai Xuan Hing Symbols U+1F200 - U+1F2FF // Enclosed Ideographic Supplement U+20000 - U+2A6DF // CJK Unified Ideographs Extension B U+2A700 - U+2B73F // CJK Unified Ideographs Extension C U+2B740 - U+2B81F // CJK Unified Ideographs Extension D U+2F800 - U+2FA1F // CJK Compatibility Ideographs Supplement FT_AUTOHINTER_SCRIPT_INDIC Apply the indic auto-hinter, covering all major scripts from the Indian sub-continent and some other related scripts like Thai, Lao, or Tibetan. By default, characters from the following Unicode ranges are assigned to this submodule. U+0900 - U+0DFF // Indic Range U+0F00 - U+0FFF // Tibetan U+1900 - U+194F // Limbu U+1B80 - U+1BBF // Sundanese U+A800 - U+A82F // Syloti Nagri U+ABC0 - U+ABFF // Meetei Mayek U+11800 - U+118DF // Sharada Note that currently Indic support is rudimentary only, missing blue zone support. since 2.4.11 FT_Prop_GlyphToScriptMap \u00b6 Defined in FT_DRIVER_H (freetype/ftdriver.h). typedef struct FT_Prop_GlyphToScriptMap_ { FT_Face face; FT_UShort * map; } FT_Prop_GlyphToScriptMap ; Experimental only The data exchange structure for the glyph-to-script-map property. since 2.4.11 fallback-script \u00b6 Experimental only If no auto-hinter script module can be assigned to a glyph, a fallback script gets assigned to it (see also the glyph-to-script-map property). By default, this is FT_AUTOHINTER_SCRIPT_CJK . Using the fallback-script property, this fallback value can be changed. note This property can be used with FT_Property_Get also. It's important to use the right timing for changing this value: The creation of the glyph-to-script map that eventually uses the fallback script value gets triggered either by setting or reading a face-specific property like glyph-to-script-map , or by auto-hinting any glyph from that face. In particular, if you have already created an FT_Face structure but not loaded any glyph (using the auto-hinter), a change of the fallback script will affect this face. example FT_Library library; FT_UInt fallback_script = FT_AUTOHINTER_SCRIPT_NONE; FT_Init_FreeType( &library ); FT_Property_Set( library, \"autofitter\", \"fallback-script\", &fallback_script ); since 2.4.11 default-script \u00b6 Experimental only If FreeType gets compiled with FT_CONFIG_OPTION_USE_HARFBUZZ to make the HarfBuzz library access OpenType features for getting better glyph coverages, this property sets the (auto-fitter) script to be used for the default (OpenType) script data of a font's GSUB table. Features for the default script are intended for all scripts not explicitly handled in GSUB; an example is a \u2018dlig\u2019 feature, containing the combination of the characters \u2018T\u2019, \u2018E\u2019, and \u2018L\u2019 to form a \u2018TEL\u2019 ligature. By default, this is FT_AUTOHINTER_SCRIPT_LATIN . Using the default-script property, this default value can be changed. note This property can be used with FT_Property_Get also. It's important to use the right timing for changing this value: The creation of the glyph-to-script map that eventually uses the default script value gets triggered either by setting or reading a face-specific property like glyph-to-script-map , or by auto-hinting any glyph from that face. In particular, if you have already created an FT_Face structure but not loaded any glyph (using the auto-hinter), a change of the default script will affect this face. example FT_Library library; FT_UInt default_script = FT_AUTOHINTER_SCRIPT_NONE; FT_Init_FreeType( &library ); FT_Property_Set( library, \"autofitter\", \"default-script\", &default_script ); since 2.5.3 increase-x-height \u00b6 For ppem values in the range 6 <= ppem <= increase-x-height , round up the font's x height much more often than normally. If the value is set to 0, which is the default, this feature is switched off. Use this property to improve the legibility of small font sizes if necessary. note This property can be used with FT_Property_Get also. Set this value right after calling FT_Set_Char_Size , but before loading any glyph (using the auto-hinter). example FT_Library library; FT_Face face; FT_Prop_IncreaseXHeight prop; FT_Init_FreeType( &library ); FT_New_Face( library, \"foo.ttf\", 0, &face ); FT_Set_Char_Size( face, 10 * 64, 0, 72, 0 ); prop.face = face; prop.limit = 14; FT_Property_Set( library, \"autofitter\", \"increase-x-height\", &prop ); since 2.4.11 FT_Prop_IncreaseXHeight \u00b6 Defined in FT_DRIVER_H (freetype/ftdriver.h). typedef struct FT_Prop_IncreaseXHeight_ { FT_Face face; FT_UInt limit; } FT_Prop_IncreaseXHeight ; The data exchange structure for the increase-x-height property. warping \u00b6 Experimental only If FreeType gets compiled with option AF_CONFIG_OPTION_USE_WARPER to activate the warp hinting code in the auto-hinter, this property switches warping on and off. Warping only works in \u2018normal\u2019 auto-hinting mode replacing it. The idea of the code is to slightly scale and shift a glyph along the non-hinted dimension (which is usually the horizontal axis) so that as much of its segments are aligned (more or less) to the grid. To find out a glyph's optimal scaling and shifting value, various parameter combinations are tried and scored. By default, warping is off. note This property can be used with FT_Property_Get also. This property can be set via the FREETYPE_PROPERTIES environment variable (using values 1 and 0 for \u2018on\u2019 and \u2018off\u2019, respectively). The warping code can also change advance widths. Have a look at the lsb_delta and rsb_delta fields in the FT_GlyphSlotRec structure for details on improving inter-glyph distances while rendering. Since warping is a global property of the auto-hinter it is best to change its value before rendering any face. Otherwise, you should reload all faces that get auto-hinted in \u2018normal\u2019 hinting mode. example This example shows how to switch on warping (omitting the error handling). FT_Library library; FT_Bool warping = 1; FT_Init_FreeType( &library ); FT_Property_Set( library, \"autofitter\", \"warping\", &warping ); since 2.6","title":"Driver properties"},{"location":"ft2-properties.html#driver-properties","text":"","title":"Driver properties"},{"location":"ft2-properties.html#synopsis","text":"Driver modules can be controlled by setting and unsetting properties, using the functions FT_Property_Set and FT_Property_Get . This section documents the available properties, together with auxiliary macros and structures.","title":"Synopsis"},{"location":"ft2-properties.html#ft_hinting_xxx","text":"Defined in FT_DRIVER_H (freetype/ftdriver.h). # define FT_HINTING_FREETYPE 0 # define FT_HINTING_ADOBE 1 /* these constants (introduced in 2.4.12) are deprecated */ # define FT_CFF_HINTING_FREETYPE FT_HINTING_FREETYPE # define FT_CFF_HINTING_ADOBE FT_HINTING_ADOBE A list of constants used for the hinting-engine property to select the hinting engine for CFF, Type 1, and CID fonts.","title":"FT_HINTING_XXX"},{"location":"ft2-properties.html#hinting-engine","text":"Thanks to Adobe, which contributed a new hinting (and parsing) engine, an application can select between \u2018freetype\u2019 and \u2018adobe\u2019 if compiled with CFF_CONFIG_OPTION_OLD_ENGINE . If this configuration macro isn't defined, \u2018hinting-engine\u2019 does nothing. The same holds for the Type 1 and CID modules if compiled with T1_CONFIG_OPTION_OLD_ENGINE . For the \u2018cff\u2019 module, the default engine is \u2018freetype\u2019 if CFF_CONFIG_OPTION_OLD_ENGINE is defined, and \u2018adobe\u2019 otherwise. For both the \u2018type1\u2019 and \u2018t1cid\u2019 modules, the default engine is \u2018freetype\u2019 if T1_CONFIG_OPTION_OLD_ENGINE is defined, and \u2018adobe\u2019 otherwise.","title":"hinting-engine"},{"location":"ft2-properties.html#no-stem-darkening","text":"All glyphs that pass through the auto-hinter will be emboldened unless this property is set to TRUE. The same is true for the CFF, Type 1, and CID font modules if the \u2018Adobe\u2019 engine is selected (which is the default). Stem darkening emboldens glyphs at smaller sizes to make them more readable on common low-DPI screens when using linear alpha blending and gamma correction, see FT_Render_Glyph . When not using linear alpha blending and gamma correction, glyphs will appear heavy and fuzzy! Gamma correction essentially lightens fonts since shades of grey are shifted to higher pixel values (= higher brightness) to match the original intention to the reality of our screens. The side-effect is that glyphs \u2018thin out\u2019. Mac OS X and Adobe's proprietary font rendering library implement a counter-measure: stem darkening at smaller sizes where shades of gray dominate. By emboldening a glyph slightly in relation to its pixel size, individual pixels get higher coverage of filled-in outlines and are therefore \u2018blacker\u2019. This counteracts the \u2018thinning out\u2019 of glyphs, making text remain readable at smaller sizes. For the auto-hinter, stem-darkening is experimental currently and thus switched off by default (this is, no-stem-darkening is set to TRUE by default). Total consistency with the CFF driver is not achieved right now because the emboldening method differs and glyphs must be scaled down on the Y-axis to keep outline points inside their precomputed blue zones. The smaller the size (especially 9ppem and down), the higher the loss of emboldening versus the CFF driver. Note that stem darkening is never applied if FT_LOAD_NO_SCALE is set.","title":"no-stem-darkening"},{"location":"ft2-properties.html#darkening-parameters","text":"By default, the Adobe hinting engine, as used by the CFF, Type 1, and CID font drivers, darkens stems as follows (if the no-stem-darkening property isn't set): stem width <= 0.5px: darkening amount = 0.4px stem width = 1px: darkening amount = 0.275px stem width = 1.667px: darkening amount = 0.275px stem width >= 2.333px: darkening amount = 0px and piecewise linear in-between. At configuration time, these four control points can be set with the macro CFF_CONFIG_OPTION_DARKENING_PARAMETERS ; the CFF, Type 1, and CID drivers share these values. At runtime, the control points can be changed using the darkening-parameters property (see the example below that demonstrates this for the Type 1 driver). The x values give the stem width, and the y values the darkening amount. The unit is 1000 th of pixels. All coordinate values must be positive; the x values must be monotonically increasing; the y values must be monotonically decreasing and smaller than or equal to 500 (corresponding to half a pixel); the slope of each linear piece must be shallower than -1 (e.g., -.4). The auto-hinter provides this property, too, as an experimental feature. See no-stem-darkening for more.","title":"darkening-parameters"},{"location":"ft2-properties.html#random-seed","text":"By default, the seed value for the CFF \u2018random\u2019 operator and the similar \u20180 28 callothersubr pop\u2019 command for the Type 1 and CID drivers is set to a random value. However, mainly for debugging purposes, it is often necessary to use a known value as a seed so that the pseudo-random number sequences generated by \u2018random\u2019 are repeatable. The random-seed property does that. Its argument is a signed 32bit integer; if the value is zero or negative, the seed given by the intitialRandomSeed private DICT operator in a CFF file gets used (or a default value if there is no such operator). If the value is positive, use it instead of initialRandomSeed , which is consequently ignored.","title":"random-seed"},{"location":"ft2-properties.html#no-long-family-names","text":"If PCF_CONFIG_OPTION_LONG_FAMILY_NAMES is active while compiling FreeType, the PCF driver constructs long family names. There are many PCF fonts just called \u2018Fixed\u2019 which look completely different, and which have nothing to do with each other. When selecting \u2018Fixed\u2019 in KDE or Gnome one gets results that appear rather random, the style changes often if one changes the size and one cannot select some fonts at all. The improve this situation, the PCF module prepends the foundry name (plus a space) to the family name. It also checks whether there are \u2018wide\u2019 characters; all put together, family names like \u2018Sony Fixed\u2019 or \u2018Misc Fixed Wide\u2019 are constructed. If no-long-family-names is set, this feature gets switched off.","title":"no-long-family-names"},{"location":"ft2-properties.html#tt_interpreter_version_xxx","text":"Defined in FT_DRIVER_H (freetype/ftdriver.h). # define TT_INTERPRETER_VERSION_35 35 # define TT_INTERPRETER_VERSION_38 38 # define TT_INTERPRETER_VERSION_40 40 A list of constants used for the interpreter-version property to select the hinting engine for Truetype fonts. The numeric value in the constant names represents the version number as returned by the \u2018GETINFO\u2019 bytecode instruction.","title":"TT_INTERPRETER_VERSION_XXX"},{"location":"ft2-properties.html#interpreter-version","text":"Currently, three versions are available, two representing the bytecode interpreter with subpixel hinting support (old \u2018Infinality\u2019 code and new stripped-down and higher performance \u2018minimal\u2019 code) and one without, respectively. The default is subpixel support if TT_CONFIG_OPTION_SUBPIXEL_HINTING is defined, and no subpixel support otherwise (since it isn't available then). If subpixel hinting is on, many TrueType bytecode instructions behave differently compared to B/W or grayscale rendering (except if \u2018native ClearType\u2019 is selected by the font). Microsoft's main idea is to render at a much increased horizontal resolution, then sampling down the created output to subpixel precision. However, many older fonts are not suited to this and must be specially taken care of by applying (hardcoded) tweaks in Microsoft's interpreter. Details on subpixel hinting and some of the necessary tweaks can be found in Greg Hitchcock's whitepaper at \u2018 https://www.microsoft.com/typography/cleartype/truetypecleartype.aspx \u2019. Note that FreeType currently doesn't really \u2018subpixel hint\u2019 (6x1, 6x2, or 6x5 supersampling) like discussed in the paper. Depending on the chosen interpreter, it simply ignores instructions on vertical stems to arrive at very similar results.","title":"interpreter-version"},{"location":"ft2-properties.html#glyph-to-script-map","text":"Experimental only The auto-hinter provides various script modules to hint glyphs. Examples of supported scripts are Latin or CJK. Before a glyph is auto-hinted, the Unicode character map of the font gets examined, and the script is then determined based on Unicode character ranges, see below. OpenType fonts, however, often provide much more glyphs than character codes (small caps, superscripts, ligatures, swashes, etc.), to be controlled by so-called \u2018features\u2019. Handling OpenType features can be quite complicated and thus needs a separate library on top of FreeType. The mapping between glyph indices and scripts (in the auto-hinter sense, see the FT_AUTOHINTER_SCRIPT_XXX values) is stored as an array with num_glyphs elements, as found in the font's FT_Face structure. The glyph-to-script-map property returns a pointer to this array, which can be modified as needed. Note that the modification should happen before the first glyph gets processed by the auto-hinter so that the global analysis of the font shapes actually uses the modified mapping.","title":"glyph-to-script-map"},{"location":"ft2-properties.html#ft_autohinter_script_xxx","text":"Defined in FT_DRIVER_H (freetype/ftdriver.h). # define FT_AUTOHINTER_SCRIPT_NONE 0 # define FT_AUTOHINTER_SCRIPT_LATIN 1 # define FT_AUTOHINTER_SCRIPT_CJK 2 # define FT_AUTOHINTER_SCRIPT_INDIC 3 Experimental only A list of constants used for the glyph-to-script-map property to specify the script submodule the auto-hinter should use for hinting a particular glyph.","title":"FT_AUTOHINTER_SCRIPT_XXX"},{"location":"ft2-properties.html#ft_prop_glyphtoscriptmap","text":"Defined in FT_DRIVER_H (freetype/ftdriver.h). typedef struct FT_Prop_GlyphToScriptMap_ { FT_Face face; FT_UShort * map; } FT_Prop_GlyphToScriptMap ; Experimental only The data exchange structure for the glyph-to-script-map property.","title":"FT_Prop_GlyphToScriptMap"},{"location":"ft2-properties.html#fallback-script","text":"Experimental only If no auto-hinter script module can be assigned to a glyph, a fallback script gets assigned to it (see also the glyph-to-script-map property). By default, this is FT_AUTOHINTER_SCRIPT_CJK . Using the fallback-script property, this fallback value can be changed.","title":"fallback-script"},{"location":"ft2-properties.html#default-script","text":"Experimental only If FreeType gets compiled with FT_CONFIG_OPTION_USE_HARFBUZZ to make the HarfBuzz library access OpenType features for getting better glyph coverages, this property sets the (auto-fitter) script to be used for the default (OpenType) script data of a font's GSUB table. Features for the default script are intended for all scripts not explicitly handled in GSUB; an example is a \u2018dlig\u2019 feature, containing the combination of the characters \u2018T\u2019, \u2018E\u2019, and \u2018L\u2019 to form a \u2018TEL\u2019 ligature. By default, this is FT_AUTOHINTER_SCRIPT_LATIN . Using the default-script property, this default value can be changed.","title":"default-script"},{"location":"ft2-properties.html#increase-x-height","text":"For ppem values in the range 6 <= ppem <= increase-x-height , round up the font's x height much more often than normally. If the value is set to 0, which is the default, this feature is switched off. Use this property to improve the legibility of small font sizes if necessary.","title":"increase-x-height"},{"location":"ft2-properties.html#ft_prop_increasexheight","text":"Defined in FT_DRIVER_H (freetype/ftdriver.h). typedef struct FT_Prop_IncreaseXHeight_ { FT_Face face; FT_UInt limit; } FT_Prop_IncreaseXHeight ; The data exchange structure for the increase-x-height property.","title":"FT_Prop_IncreaseXHeight"},{"location":"ft2-properties.html#warping","text":"Experimental only If FreeType gets compiled with option AF_CONFIG_OPTION_USE_WARPER to activate the warp hinting code in the auto-hinter, this property switches warping on and off. Warping only works in \u2018normal\u2019 auto-hinting mode replacing it. The idea of the code is to slightly scale and shift a glyph along the non-hinted dimension (which is usually the horizontal axis) so that as much of its segments are aligned (more or less) to the grid. To find out a glyph's optimal scaling and shifting value, various parameter combinations are tried and scored. By default, warping is off.","title":"warping"},{"location":"ft2-quick_advance.html","text":"FreeType \u00bb Docs \u00bb Support API \u00bb Quick retrieval of advance values Quick retrieval of advance values \u00b6 Synopsis \u00b6 This section contains functions to quickly extract advance values without handling glyph outlines, if possible. FT_Get_Advance \u00b6 Defined in FT_ADVANCES_H (freetype/ftadvanc.h). FT_EXPORT( FT_Error ) FT_Get_Advance ( FT_Face face, FT_UInt gindex, FT_Int32 load_flags, FT_Fixed *padvance ); Retrieve the advance value of a given glyph outline in an FT_Face . input face The source FT_Face handle. gindex The glyph index. load_flags A set of bit flags similar to those used when calling FT_Load_Glyph , used to determine what kind of advances you need. output padvance The advance value. If scaling is performed (based on the value of load_flags ), the advance value is in 16.16 format. Otherwise, it is in font units. If FT_LOAD_VERTICAL_LAYOUT is set, this is the vertical advance corresponding to a vertical layout. Otherwise, it is the horizontal advance in a horizontal layout. return FreeType error code. 0 means success. note This function may fail if you use FT_ADVANCE_FLAG_FAST_ONLY and if the corresponding font backend doesn't have a quick way to retrieve the advances. A scaled advance is returned in 16.16 format but isn't transformed by the affine transformation specified by FT_Set_Transform . FT_Get_Advances \u00b6 Defined in FT_ADVANCES_H (freetype/ftadvanc.h). FT_EXPORT( FT_Error ) FT_Get_Advances ( FT_Face face, FT_UInt start, FT_UInt count, FT_Int32 load_flags, FT_Fixed *padvances ); Retrieve the advance values of several glyph outlines in an FT_Face . input face The source FT_Face handle. start The first glyph index. count The number of advance values you want to retrieve. load_flags A set of bit flags similar to those used when calling FT_Load_Glyph . output padvance The advance values. This array, to be provided by the caller, must contain at least count elements. If scaling is performed (based on the value of load_flags ), the advance values are in 16.16 format. Otherwise, they are in font units. If FT_LOAD_VERTICAL_LAYOUT is set, these are the vertical advances corresponding to a vertical layout. Otherwise, they are the horizontal advances in a horizontal layout. return FreeType error code. 0 means success. note This function may fail if you use FT_ADVANCE_FLAG_FAST_ONLY and if the corresponding font backend doesn't have a quick way to retrieve the advances. Scaled advances are returned in 16.16 format but aren't transformed by the affine transformation specified by FT_Set_Transform . FT_ADVANCE_FLAG_FAST_ONLY \u00b6 Defined in FT_ADVANCES_H (freetype/ftadvanc.h). # define FT_ADVANCE_FLAG_FAST_ONLY 0x20000000L A bit-flag to be OR-ed with the flags parameter of the FT_Get_Advance and FT_Get_Advances functions. If set, it indicates that you want these functions to fail if the corresponding hinting mode or font driver doesn't allow for very quick advance computation. Typically, glyphs that are either unscaled, unhinted, bitmapped, or light-hinted can have their advance width computed very quickly. Normal and bytecode hinted modes that require loading, scaling, and hinting of the glyph outline, are extremely slow by comparison.","title":"Quick retrieval of advance values"},{"location":"ft2-quick_advance.html#quick-retrieval-of-advance-values","text":"","title":"Quick retrieval of advance values"},{"location":"ft2-quick_advance.html#synopsis","text":"This section contains functions to quickly extract advance values without handling glyph outlines, if possible.","title":"Synopsis"},{"location":"ft2-quick_advance.html#ft_get_advance","text":"Defined in FT_ADVANCES_H (freetype/ftadvanc.h). FT_EXPORT( FT_Error ) FT_Get_Advance ( FT_Face face, FT_UInt gindex, FT_Int32 load_flags, FT_Fixed *padvance ); Retrieve the advance value of a given glyph outline in an FT_Face .","title":"FT_Get_Advance"},{"location":"ft2-quick_advance.html#ft_get_advances","text":"Defined in FT_ADVANCES_H (freetype/ftadvanc.h). FT_EXPORT( FT_Error ) FT_Get_Advances ( FT_Face face, FT_UInt start, FT_UInt count, FT_Int32 load_flags, FT_Fixed *padvances ); Retrieve the advance values of several glyph outlines in an FT_Face .","title":"FT_Get_Advances"},{"location":"ft2-quick_advance.html#ft_advance_flag_fast_only","text":"Defined in FT_ADVANCES_H (freetype/ftadvanc.h). # define FT_ADVANCE_FLAG_FAST_ONLY 0x20000000L A bit-flag to be OR-ed with the flags parameter of the FT_Get_Advance and FT_Get_Advances functions. If set, it indicates that you want these functions to fail if the corresponding hinting mode or font driver doesn't allow for very quick advance computation. Typically, glyphs that are either unscaled, unhinted, bitmapped, or light-hinted can have their advance width computed very quickly. Normal and bytecode hinted modes that require loading, scaling, and hinting of the glyph outline, are extremely slow by comparison.","title":"FT_ADVANCE_FLAG_FAST_ONLY"},{"location":"ft2-raster.html","text":"FreeType \u00bb Docs \u00bb Support API \u00bb Scanline Converter Scanline Converter \u00b6 Synopsis \u00b6 This section contains technical definitions. FT_Raster \u00b6 Defined in FT_IMAGE_H (freetype/ftimage.h). typedef struct FT_RasterRec_* FT_Raster ; An opaque handle (pointer) to a raster object. Each object can be used independently to convert an outline into a bitmap or pixmap. FT_Span \u00b6 Defined in FT_IMAGE_H (freetype/ftimage.h). typedef struct FT_Span_ { short x; unsigned short len; unsigned char coverage; } FT_Span ; A structure used to model a single span of gray pixels when rendering an anti-aliased bitmap. fields x The span's horizontal start position. len The span's length in pixels. coverage The span color/coverage, ranging from 0 (background) to 255 (foreground). note This structure is used by the span drawing callback type named FT_SpanFunc that takes the y coordinate of the span as a parameter. The coverage value is always between 0 and 255. If you want less gray values, the callback function has to reduce them. FT_SpanFunc \u00b6 Defined in FT_IMAGE_H (freetype/ftimage.h). typedef void (* FT_SpanFunc )( int y, int count, const FT_Span * spans, void * user ); # define FT_Raster_Span_Func FT_SpanFunc A function used as a call-back by the anti-aliased renderer in order to let client applications draw themselves the gray pixel spans on each scan line. input y The scanline's upward y coordinate. count The number of spans to draw on this scanline. spans A table of count spans to draw on the scanline. user User-supplied data that is passed to the callback. note This callback allows client applications to directly render the gray spans of the anti-aliased bitmap to any kind of surfaces. This can be used to write anti-aliased outlines directly to a given background bitmap, and even perform translucency. FT_Raster_Params \u00b6 Defined in FT_IMAGE_H (freetype/ftimage.h). typedef struct FT_Raster_Params_ { const FT_Bitmap * target; const void * source; int flags; FT_SpanFunc gray_spans; FT_SpanFunc black_spans; /* unused */ FT_Raster_BitTest_Func bit_test; /* unused */ FT_Raster_BitSet_Func bit_set; /* unused */ void * user; FT_BBox clip_box; } FT_Raster_Params ; A structure to hold the parameters used by a raster's render function, passed as an argument to FT_Outline_Render . fields target The target bitmap. source A pointer to the source glyph image (e.g., an FT_Outline ). flags The rendering flags. gray_spans The gray span drawing callback. black_spans Unused. bit_test Unused. bit_set Unused. user User-supplied data that is passed to each drawing callback. clip_box An optional span clipping box expressed in integer pixels (not in 26.6 fixed-point units). note The FT_RASTER_FLAG_AA bit flag must be set in the flags to generate an anti-aliased glyph bitmap, otherwise a monochrome bitmap is generated. The target should have appropriate pixel mode and its dimensions define the clipping region. If both FT_RASTER_FLAG_AA and FT_RASTER_FLAG_DIRECT bit flags are set in flags , the raster calls an FT_SpanFunc callback gray_spans with user data as an argument ignoring target . This allows direct composition over a pre-existing user surface to perform the span drawing and composition. To optionally clip the spans, set the FT_RASTER_FLAG_CLIP flag and clip_box . The monochrome raster does not support the direct mode. The gray-level rasterizer always uses 256 gray levels. If you want fewer gray levels, you have to use FT_RASTER_FLAG_DIRECT and reduce the levels in the callback function. FT_RASTER_FLAG_XXX \u00b6 Defined in FT_IMAGE_H (freetype/ftimage.h). # define FT_RASTER_FLAG_DEFAULT 0x0 # define FT_RASTER_FLAG_AA 0x1 # define FT_RASTER_FLAG_DIRECT 0x2 # define FT_RASTER_FLAG_CLIP 0x4 /* these constants are deprecated; use the corresponding */ /* ` FT_RASTER_FLAG_XXX ` values instead */ # define ft_raster_flag_default FT_RASTER_FLAG_DEFAULT # define ft_raster_flag_aa FT_RASTER_FLAG_AA # define ft_raster_flag_direct FT_RASTER_FLAG_DIRECT # define ft_raster_flag_clip FT_RASTER_FLAG_CLIP A list of bit flag constants as used in the flags field of a FT_Raster_Params structure. values FT_RASTER_FLAG_DEFAULT This value is 0. FT_RASTER_FLAG_AA This flag is set to indicate that an anti-aliased glyph image should be generated. Otherwise, it will be monochrome (1-bit). FT_RASTER_FLAG_DIRECT This flag is set to indicate direct rendering. In this mode, client applications must provide their own span callback. This lets them directly draw or compose over an existing bitmap. If this bit is not set, the target pixmap's buffer must be zeroed before rendering and the output will be clipped to its size. Direct rendering is only possible with anti-aliased glyphs. FT_RASTER_FLAG_CLIP This flag is only used in direct rendering mode. If set, the output will be clipped to a box specified in the clip_box field of the FT_Raster_Params structure. Otherwise, the clip_box is effectively set to the bounding box and all spans are generated. FT_Raster_NewFunc \u00b6 Defined in FT_IMAGE_H (freetype/ftimage.h). typedef int (* FT_Raster_NewFunc )( void * memory, FT_Raster * raster ); # define FT_Raster_New_Func FT_Raster_NewFunc A function used to create a new raster object. input memory A handle to the memory allocator. output raster A handle to the new raster object. return Error code. 0 means success. note The memory parameter is a typeless pointer in order to avoid un-wanted dependencies on the rest of the FreeType code. In practice, it is an FT_Memory object, i.e., a handle to the standard FreeType memory allocator. However, this field can be completely ignored by a given raster implementation. FT_Raster_DoneFunc \u00b6 Defined in FT_IMAGE_H (freetype/ftimage.h). typedef void (* FT_Raster_DoneFunc )( FT_Raster raster ); # define FT_Raster_Done_Func FT_Raster_DoneFunc A function used to destroy a given raster object. input raster A handle to the raster object. FT_Raster_ResetFunc \u00b6 Defined in FT_IMAGE_H (freetype/ftimage.h). typedef void (* FT_Raster_ResetFunc )( FT_Raster raster, unsigned char * pool_base, unsigned long pool_size ); # define FT_Raster_Reset_Func FT_Raster_ResetFunc FreeType used to provide an area of memory called the \u2018render pool\u2019 available to all registered rasterizers. This was not thread safe, however, and now FreeType never allocates this pool. This function is called after a new raster object is created. input raster A handle to the new raster object. pool_base Previously, the address in memory of the render pool. Set this to NULL . pool_size Previously, the size in bytes of the render pool. Set this to 0. note Rasterizers should rely on dynamic or stack allocation if they want to (a handle to the memory allocator is passed to the rasterizer constructor). FT_Raster_SetModeFunc \u00b6 Defined in FT_IMAGE_H (freetype/ftimage.h). typedef int (* FT_Raster_SetModeFunc )( FT_Raster raster, unsigned long mode, void * args ); # define FT_Raster_Set_Mode_Func FT_Raster_SetModeFunc This function is a generic facility to change modes or attributes in a given raster. This can be used for debugging purposes, or simply to allow implementation-specific \u2018features\u2019 in a given raster module. input raster A handle to the new raster object. mode A 4-byte tag used to name the mode or property. args A pointer to the new mode/property to use. FT_Raster_RenderFunc \u00b6 Defined in FT_IMAGE_H (freetype/ftimage.h). typedef int (* FT_Raster_RenderFunc )( FT_Raster raster, const FT_Raster_Params * params ); # define FT_Raster_Render_Func FT_Raster_RenderFunc Invoke a given raster to scan-convert a given glyph image into a target bitmap. input raster A handle to the raster object. params A pointer to an FT_Raster_Params structure used to store the rendering parameters. return Error code. 0 means success. note The exact format of the source image depends on the raster's glyph format defined in its FT_Raster_Funcs structure. It can be an FT_Outline or anything else in order to support a large array of glyph formats. Note also that the render function can fail and return a FT_Err_Unimplemented_Feature error code if the raster used does not support direct composition. FT_Raster_Funcs \u00b6 Defined in FT_IMAGE_H (freetype/ftimage.h). typedef struct FT_Raster_Funcs_ { FT_Glyph_Format glyph_format; FT_Raster_NewFunc raster_new; FT_Raster_ResetFunc raster_reset; FT_Raster_SetModeFunc raster_set_mode; FT_Raster_RenderFunc raster_render; FT_Raster_DoneFunc raster_done; } FT_Raster_Funcs ; A structure used to describe a given raster class to the library. fields glyph_format The supported glyph format for this raster. raster_new The raster constructor. raster_reset Used to reset the render pool within the raster. raster_render A function to render a glyph into a given bitmap. raster_done The raster destructor. FT_Raster_BitTest_Func \u00b6 Defined in FT_IMAGE_H (freetype/ftimage.h). typedef int (* FT_Raster_BitTest_Func )( int y, int x, void * user ); Deprecated, unimplemented. FT_Raster_BitSet_Func \u00b6 Defined in FT_IMAGE_H (freetype/ftimage.h). typedef void (* FT_Raster_BitSet_Func )( int y, int x, void * user ); Deprecated, unimplemented.","title":"Scanline Converter"},{"location":"ft2-raster.html#scanline-converter","text":"","title":"Scanline Converter"},{"location":"ft2-raster.html#synopsis","text":"This section contains technical definitions.","title":"Synopsis"},{"location":"ft2-raster.html#ft_raster","text":"Defined in FT_IMAGE_H (freetype/ftimage.h). typedef struct FT_RasterRec_* FT_Raster ; An opaque handle (pointer) to a raster object. Each object can be used independently to convert an outline into a bitmap or pixmap.","title":"FT_Raster"},{"location":"ft2-raster.html#ft_span","text":"Defined in FT_IMAGE_H (freetype/ftimage.h). typedef struct FT_Span_ { short x; unsigned short len; unsigned char coverage; } FT_Span ; A structure used to model a single span of gray pixels when rendering an anti-aliased bitmap.","title":"FT_Span"},{"location":"ft2-raster.html#ft_spanfunc","text":"Defined in FT_IMAGE_H (freetype/ftimage.h). typedef void (* FT_SpanFunc )( int y, int count, const FT_Span * spans, void * user ); # define FT_Raster_Span_Func FT_SpanFunc A function used as a call-back by the anti-aliased renderer in order to let client applications draw themselves the gray pixel spans on each scan line.","title":"FT_SpanFunc"},{"location":"ft2-raster.html#ft_raster_params","text":"Defined in FT_IMAGE_H (freetype/ftimage.h). typedef struct FT_Raster_Params_ { const FT_Bitmap * target; const void * source; int flags; FT_SpanFunc gray_spans; FT_SpanFunc black_spans; /* unused */ FT_Raster_BitTest_Func bit_test; /* unused */ FT_Raster_BitSet_Func bit_set; /* unused */ void * user; FT_BBox clip_box; } FT_Raster_Params ; A structure to hold the parameters used by a raster's render function, passed as an argument to FT_Outline_Render .","title":"FT_Raster_Params"},{"location":"ft2-raster.html#ft_raster_flag_xxx","text":"Defined in FT_IMAGE_H (freetype/ftimage.h). # define FT_RASTER_FLAG_DEFAULT 0x0 # define FT_RASTER_FLAG_AA 0x1 # define FT_RASTER_FLAG_DIRECT 0x2 # define FT_RASTER_FLAG_CLIP 0x4 /* these constants are deprecated; use the corresponding */ /* ` FT_RASTER_FLAG_XXX ` values instead */ # define ft_raster_flag_default FT_RASTER_FLAG_DEFAULT # define ft_raster_flag_aa FT_RASTER_FLAG_AA # define ft_raster_flag_direct FT_RASTER_FLAG_DIRECT # define ft_raster_flag_clip FT_RASTER_FLAG_CLIP A list of bit flag constants as used in the flags field of a FT_Raster_Params structure.","title":"FT_RASTER_FLAG_XXX"},{"location":"ft2-raster.html#ft_raster_newfunc","text":"Defined in FT_IMAGE_H (freetype/ftimage.h). typedef int (* FT_Raster_NewFunc )( void * memory, FT_Raster * raster ); # define FT_Raster_New_Func FT_Raster_NewFunc A function used to create a new raster object.","title":"FT_Raster_NewFunc"},{"location":"ft2-raster.html#ft_raster_donefunc","text":"Defined in FT_IMAGE_H (freetype/ftimage.h). typedef void (* FT_Raster_DoneFunc )( FT_Raster raster ); # define FT_Raster_Done_Func FT_Raster_DoneFunc A function used to destroy a given raster object.","title":"FT_Raster_DoneFunc"},{"location":"ft2-raster.html#ft_raster_resetfunc","text":"Defined in FT_IMAGE_H (freetype/ftimage.h). typedef void (* FT_Raster_ResetFunc )( FT_Raster raster, unsigned char * pool_base, unsigned long pool_size ); # define FT_Raster_Reset_Func FT_Raster_ResetFunc FreeType used to provide an area of memory called the \u2018render pool\u2019 available to all registered rasterizers. This was not thread safe, however, and now FreeType never allocates this pool. This function is called after a new raster object is created.","title":"FT_Raster_ResetFunc"},{"location":"ft2-raster.html#ft_raster_setmodefunc","text":"Defined in FT_IMAGE_H (freetype/ftimage.h). typedef int (* FT_Raster_SetModeFunc )( FT_Raster raster, unsigned long mode, void * args ); # define FT_Raster_Set_Mode_Func FT_Raster_SetModeFunc This function is a generic facility to change modes or attributes in a given raster. This can be used for debugging purposes, or simply to allow implementation-specific \u2018features\u2019 in a given raster module.","title":"FT_Raster_SetModeFunc"},{"location":"ft2-raster.html#ft_raster_renderfunc","text":"Defined in FT_IMAGE_H (freetype/ftimage.h). typedef int (* FT_Raster_RenderFunc )( FT_Raster raster, const FT_Raster_Params * params ); # define FT_Raster_Render_Func FT_Raster_RenderFunc Invoke a given raster to scan-convert a given glyph image into a target bitmap.","title":"FT_Raster_RenderFunc"},{"location":"ft2-raster.html#ft_raster_funcs","text":"Defined in FT_IMAGE_H (freetype/ftimage.h). typedef struct FT_Raster_Funcs_ { FT_Glyph_Format glyph_format; FT_Raster_NewFunc raster_new; FT_Raster_ResetFunc raster_reset; FT_Raster_SetModeFunc raster_set_mode; FT_Raster_RenderFunc raster_render; FT_Raster_DoneFunc raster_done; } FT_Raster_Funcs ; A structure used to describe a given raster class to the library.","title":"FT_Raster_Funcs"},{"location":"ft2-raster.html#ft_raster_bittest_func","text":"Defined in FT_IMAGE_H (freetype/ftimage.h). typedef int (* FT_Raster_BitTest_Func )( int y, int x, void * user ); Deprecated, unimplemented.","title":"FT_Raster_BitTest_Func"},{"location":"ft2-raster.html#ft_raster_bitset_func","text":"Defined in FT_IMAGE_H (freetype/ftimage.h). typedef void (* FT_Raster_BitSet_Func )( int y, int x, void * user ); Deprecated, unimplemented.","title":"FT_Raster_BitSet_Func"},{"location":"ft2-sfnt_names.html","text":"FreeType \u00bb Docs \u00bb Format-Specific API \u00bb SFNT Names SFNT Names \u00b6 Synopsis \u00b6 The TrueType and OpenType specifications allow the inclusion of a special names table (\u2018name\u2019) in font files. This table contains textual (and internationalized) information regarding the font, like family name, copyright, version, etc. The definitions below are used to access them if available. Note that this has nothing to do with glyph names! FT_SfntName \u00b6 Defined in FT_SFNT_NAMES_H (freetype/ftsnames.h). typedef struct FT_SfntName_ { FT_UShort platform_id; FT_UShort encoding_id; FT_UShort language_id; FT_UShort name_id; FT_Byte * string; /* this string is *not* null-terminated! */ FT_UInt string_len; /* in bytes */ } FT_SfntName ; A structure used to model an SFNT \u2018name\u2019 table entry. fields platform_id The platform ID for string . See TT_PLATFORM_XXX for possible values. encoding_id The encoding ID for string . See TT_APPLE_ID_XXX , TT_MAC_ID_XXX , TT_ISO_ID_XXX , TT_MS_ID_XXX , and TT_ADOBE_ID_XXX for possible values. language_id The language ID for string . See TT_MAC_LANGID_XXX and TT_MS_LANGID_XXX for possible values. Registered OpenType values for language_id are always smaller than 0x8000; values equal or larger than 0x8000 usually indicate a language tag string (introduced in OpenType version 1.6). Use function FT_Get_Sfnt_LangTag with language_id as its argument to retrieve the associated language tag. name_id An identifier for string . See TT_NAME_ID_XXX for possible values. string The \u2018name\u2019 string. Note that its format differs depending on the (platform,encoding) pair, being either a string of bytes (without a terminating NULL byte) or containing UTF-16BE entities. string_len The length of string in bytes. note Please refer to the TrueType or OpenType specification for more details. FT_Get_Sfnt_Name_Count \u00b6 Defined in FT_SFNT_NAMES_H (freetype/ftsnames.h). FT_EXPORT( FT_UInt ) FT_Get_Sfnt_Name_Count ( FT_Face face ); Retrieve the number of name strings in the SFNT \u2018name\u2019 table. input face A handle to the source face. return The number of strings in the \u2018name\u2019 table. note This function always returns an error if the config macro TT_CONFIG_OPTION_SFNT_NAMES is not defined in ftoption.h . FT_Get_Sfnt_Name \u00b6 Defined in FT_SFNT_NAMES_H (freetype/ftsnames.h). FT_EXPORT( FT_Error ) FT_Get_Sfnt_Name ( FT_Face face, FT_UInt idx, FT_SfntName *aname ); Retrieve a string of the SFNT \u2018name\u2019 table for a given index. input face A handle to the source face. idx The index of the \u2018name\u2019 string. output aname The indexed FT_SfntName structure. return FreeType error code. 0 means success. note The string array returned in the aname structure is not null-terminated. Note that you don't have to deallocate string by yourself; FreeType takes care of it if you call FT_Done_Face . Use FT_Get_Sfnt_Name_Count to get the total number of available \u2018name\u2019 table entries, then do a loop until you get the right platform, encoding, and name ID. \u2018name\u2019 table format 1 entries can use language tags also, see FT_Get_Sfnt_LangTag . This function always returns an error if the config macro TT_CONFIG_OPTION_SFNT_NAMES is not defined in ftoption.h . FT_SfntLangTag \u00b6 Defined in FT_SFNT_NAMES_H (freetype/ftsnames.h). typedef struct FT_SfntLangTag_ { FT_Byte * string; /* this string is *not* null-terminated! */ FT_UInt string_len; /* in bytes */ } FT_SfntLangTag ; A structure to model a language tag entry from an SFNT \u2018name\u2019 table. fields string The language tag string, encoded in UTF-16BE (without trailing NULL bytes). string_len The length of string in bytes . note Please refer to the TrueType or OpenType specification for more details. since 2.8 FT_Get_Sfnt_LangTag \u00b6 Defined in FT_SFNT_NAMES_H (freetype/ftsnames.h). FT_EXPORT( FT_Error ) FT_Get_Sfnt_LangTag ( FT_Face face, FT_UInt langID, FT_SfntLangTag *alangTag ); Retrieve the language tag associated with a language ID of an SFNT \u2018name\u2019 table entry. input face A handle to the source face. langID The language ID, as returned by FT_Get_Sfnt_Name . This is always a value larger than 0x8000. output alangTag The language tag associated with the \u2018name\u2019 table entry's language ID. return FreeType error code. 0 means success. note The string array returned in the alangTag structure is not null-terminated. Note that you don't have to deallocate string by yourself; FreeType takes care of it if you call FT_Done_Face . Only \u2018name\u2019 table format 1 supports language tags. For format 0 tables, this function always returns FT_Err_Invalid_Table. For invalid format 1 language ID values, FT_Err_Invalid_Argument is returned. This function always returns an error if the config macro TT_CONFIG_OPTION_SFNT_NAMES is not defined in ftoption.h . since 2.8","title":"SFNT Names"},{"location":"ft2-sfnt_names.html#sfnt-names","text":"","title":"SFNT Names"},{"location":"ft2-sfnt_names.html#synopsis","text":"The TrueType and OpenType specifications allow the inclusion of a special names table (\u2018name\u2019) in font files. This table contains textual (and internationalized) information regarding the font, like family name, copyright, version, etc. The definitions below are used to access them if available. Note that this has nothing to do with glyph names!","title":"Synopsis"},{"location":"ft2-sfnt_names.html#ft_sfntname","text":"Defined in FT_SFNT_NAMES_H (freetype/ftsnames.h). typedef struct FT_SfntName_ { FT_UShort platform_id; FT_UShort encoding_id; FT_UShort language_id; FT_UShort name_id; FT_Byte * string; /* this string is *not* null-terminated! */ FT_UInt string_len; /* in bytes */ } FT_SfntName ; A structure used to model an SFNT \u2018name\u2019 table entry.","title":"FT_SfntName"},{"location":"ft2-sfnt_names.html#ft_get_sfnt_name_count","text":"Defined in FT_SFNT_NAMES_H (freetype/ftsnames.h). FT_EXPORT( FT_UInt ) FT_Get_Sfnt_Name_Count ( FT_Face face ); Retrieve the number of name strings in the SFNT \u2018name\u2019 table.","title":"FT_Get_Sfnt_Name_Count"},{"location":"ft2-sfnt_names.html#ft_get_sfnt_name","text":"Defined in FT_SFNT_NAMES_H (freetype/ftsnames.h). FT_EXPORT( FT_Error ) FT_Get_Sfnt_Name ( FT_Face face, FT_UInt idx, FT_SfntName *aname ); Retrieve a string of the SFNT \u2018name\u2019 table for a given index.","title":"FT_Get_Sfnt_Name"},{"location":"ft2-sfnt_names.html#ft_sfntlangtag","text":"Defined in FT_SFNT_NAMES_H (freetype/ftsnames.h). typedef struct FT_SfntLangTag_ { FT_Byte * string; /* this string is *not* null-terminated! */ FT_UInt string_len; /* in bytes */ } FT_SfntLangTag ; A structure to model a language tag entry from an SFNT \u2018name\u2019 table.","title":"FT_SfntLangTag"},{"location":"ft2-sfnt_names.html#ft_get_sfnt_langtag","text":"Defined in FT_SFNT_NAMES_H (freetype/ftsnames.h). FT_EXPORT( FT_Error ) FT_Get_Sfnt_LangTag ( FT_Face face, FT_UInt langID, FT_SfntLangTag *alangTag ); Retrieve the language tag associated with a language ID of an SFNT \u2018name\u2019 table entry.","title":"FT_Get_Sfnt_LangTag"},{"location":"ft2-sizes_management.html","text":"FreeType \u00bb Docs \u00bb Core API \u00bb Size Management Size Management \u00b6 Synopsis \u00b6 When creating a new face object (e.g., with FT_New_Face ), an FT_Size object is automatically created and used to store all pixel-size dependent information, available in the face->size field. It is however possible to create more sizes for a given face, mostly in order to manage several character pixel sizes of the same font family and style. See FT_New_Size and FT_Done_Size . Note that FT_Set_Pixel_Sizes and FT_Set_Char_Size only modify the contents of the current \u2018active\u2019 size; you thus need to use FT_Activate_Size to change it. 99% of applications won't need the functions provided here, especially if they use the caching sub-system, so be cautious when using these. FT_New_Size \u00b6 Defined in FT_SIZES_H (freetype/ftsizes.h). FT_EXPORT( FT_Error ) FT_New_Size ( FT_Face face, FT_Size * size ); Create a new size object from a given face object. input face A handle to a parent face object. output asize A handle to a new size object. return FreeType error code. 0 means success. note You need to call FT_Activate_Size in order to select the new size for upcoming calls to FT_Set_Pixel_Sizes , FT_Set_Char_Size , FT_Load_Glyph , FT_Load_Char , etc. FT_Done_Size \u00b6 Defined in FT_SIZES_H (freetype/ftsizes.h). FT_EXPORT( FT_Error ) FT_Done_Size ( FT_Size size ); Discard a given size object. Note that FT_Done_Face automatically discards all size objects allocated with FT_New_Size . input size A handle to a target size object. return FreeType error code. 0 means success. FT_Activate_Size \u00b6 Defined in FT_SIZES_H (freetype/ftsizes.h). FT_EXPORT( FT_Error ) FT_Activate_Size ( FT_Size size ); Even though it is possible to create several size objects for a given face (see FT_New_Size for details), functions like FT_Load_Glyph or FT_Load_Char only use the one that has been activated last to determine the \u2018current character pixel size\u2019. This function can be used to \u2018activate\u2019 a previously created size object. input size A handle to a target size object. return FreeType error code. 0 means success. note If face is the size's parent face object, this function changes the value of face->size to the input size handle.","title":"Size Management"},{"location":"ft2-sizes_management.html#size-management","text":"","title":"Size Management"},{"location":"ft2-sizes_management.html#synopsis","text":"When creating a new face object (e.g., with FT_New_Face ), an FT_Size object is automatically created and used to store all pixel-size dependent information, available in the face->size field. It is however possible to create more sizes for a given face, mostly in order to manage several character pixel sizes of the same font family and style. See FT_New_Size and FT_Done_Size . Note that FT_Set_Pixel_Sizes and FT_Set_Char_Size only modify the contents of the current \u2018active\u2019 size; you thus need to use FT_Activate_Size to change it. 99% of applications won't need the functions provided here, especially if they use the caching sub-system, so be cautious when using these.","title":"Synopsis"},{"location":"ft2-sizes_management.html#ft_new_size","text":"Defined in FT_SIZES_H (freetype/ftsizes.h). FT_EXPORT( FT_Error ) FT_New_Size ( FT_Face face, FT_Size * size ); Create a new size object from a given face object.","title":"FT_New_Size"},{"location":"ft2-sizes_management.html#ft_done_size","text":"Defined in FT_SIZES_H (freetype/ftsizes.h). FT_EXPORT( FT_Error ) FT_Done_Size ( FT_Size size ); Discard a given size object. Note that FT_Done_Face automatically discards all size objects allocated with FT_New_Size .","title":"FT_Done_Size"},{"location":"ft2-sizes_management.html#ft_activate_size","text":"Defined in FT_SIZES_H (freetype/ftsizes.h). FT_EXPORT( FT_Error ) FT_Activate_Size ( FT_Size size ); Even though it is possible to create several size objects for a given face (see FT_New_Size for details), functions like FT_Load_Glyph or FT_Load_Char only use the one that has been activated last to determine the \u2018current character pixel size\u2019. This function can be used to \u2018activate\u2019 a previously created size object.","title":"FT_Activate_Size"},{"location":"ft2-system_interface.html","text":"FreeType \u00bb Docs \u00bb Support API \u00bb System Interface System Interface \u00b6 Synopsis \u00b6 This section contains various definitions related to memory management and i/o access. You need to understand this information if you want to use a custom memory manager or you own i/o streams. FT_Memory \u00b6 Defined in FT_SYSTEM_H (freetype/ftsystem.h). typedef struct FT_MemoryRec_* FT_Memory ; A handle to a given memory manager object, defined with an FT_MemoryRec structure. FT_Alloc_Func \u00b6 Defined in FT_SYSTEM_H (freetype/ftsystem.h). typedef void * (* FT_Alloc_Func )( FT_Memory memory, long size ); A function used to allocate size bytes from memory . input memory A handle to the source memory manager. size The size in bytes to allocate. return Address of new memory block. 0 in case of failure. FT_Free_Func \u00b6 Defined in FT_SYSTEM_H (freetype/ftsystem.h). typedef void (* FT_Free_Func )( FT_Memory memory, void * block ); A function used to release a given block of memory. input memory A handle to the source memory manager. block The address of the target memory block. FT_Realloc_Func \u00b6 Defined in FT_SYSTEM_H (freetype/ftsystem.h). typedef void * (* FT_Realloc_Func )( FT_Memory memory, long cur_size, long new_size, void * block ); A function used to re-allocate a given block of memory. input memory A handle to the source memory manager. cur_size The block's current size in bytes. new_size The block's requested new size. block The block's current address. return New block address. 0 in case of memory shortage. note In case of error, the old block must still be available. FT_MemoryRec \u00b6 Defined in FT_SYSTEM_H (freetype/ftsystem.h). struct FT_MemoryRec_ { void * user; FT_Alloc_Func alloc; FT_Free_Func free; FT_Realloc_Func realloc; }; A structure used to describe a given memory manager to FreeType 2. fields user A generic typeless pointer for user data. alloc A pointer type to an allocation function. free A pointer type to an memory freeing function. realloc A pointer type to a reallocation function. FT_Stream \u00b6 Defined in FT_SYSTEM_H (freetype/ftsystem.h). typedef struct FT_StreamRec_* FT_Stream ; A handle to an input stream. also See FT_StreamRec for the publicly accessible fields of a given stream object. FT_StreamDesc \u00b6 Defined in FT_SYSTEM_H (freetype/ftsystem.h). typedef union FT_StreamDesc_ { long value; void * pointer; } FT_StreamDesc ; A union type used to store either a long or a pointer. This is used to store a file descriptor or a FILE* in an input stream. FT_Stream_IoFunc \u00b6 Defined in FT_SYSTEM_H (freetype/ftsystem.h). typedef unsigned long (* FT_Stream_IoFunc )( FT_Stream stream, unsigned long offset, unsigned char * buffer, unsigned long count ); A function used to seek and read data from a given input stream. input stream A handle to the source stream. offset The offset of read in stream (always from start). buffer The address of the read buffer. count The number of bytes to read from the stream. return The number of bytes effectively read by the stream. note This function might be called to perform a seek or skip operation with a count of 0. A non-zero return value then indicates an error. FT_Stream_CloseFunc \u00b6 Defined in FT_SYSTEM_H (freetype/ftsystem.h). typedef void (* FT_Stream_CloseFunc )( FT_Stream stream ); A function used to close a given input stream. input stream A handle to the target stream. FT_StreamRec \u00b6 Defined in FT_SYSTEM_H (freetype/ftsystem.h). typedef struct FT_StreamRec_ { unsigned char * base; unsigned long size; unsigned long pos; FT_StreamDesc descriptor; FT_StreamDesc pathname; FT_Stream_IoFunc read; FT_Stream_CloseFunc close; FT_Memory memory; unsigned char * cursor; unsigned char * limit; } FT_StreamRec ; A structure used to describe an input stream. input base For memory-based streams, this is the address of the first stream byte in memory. This field should always be set to NULL for disk-based streams. size The stream size in bytes. In case of compressed streams where the size is unknown before actually doing the decompression, the value is set to 0x7FFFFFFF. (Note that this size value can occur for normal streams also; it is thus just a hint.) pos The current position within the stream. descriptor This field is a union that can hold an integer or a pointer. It is used by stream implementations to store file descriptors or FILE* pointers. pathname This field is completely ignored by FreeType. However, it is often useful during debugging to use it to store the stream's filename (where available). read The stream's input function. close The stream's close function. memory The memory manager to use to preload frames. This is set internally by FreeType and shouldn't be touched by stream implementations. cursor This field is set and used internally by FreeType when parsing frames. In particular, the FT_GET_XXX macros use this instead of the pos field. limit This field is set and used internally by FreeType when parsing frames.","title":"System Interface"},{"location":"ft2-system_interface.html#system-interface","text":"","title":"System Interface"},{"location":"ft2-system_interface.html#synopsis","text":"This section contains various definitions related to memory management and i/o access. You need to understand this information if you want to use a custom memory manager or you own i/o streams.","title":"Synopsis"},{"location":"ft2-system_interface.html#ft_memory","text":"Defined in FT_SYSTEM_H (freetype/ftsystem.h). typedef struct FT_MemoryRec_* FT_Memory ; A handle to a given memory manager object, defined with an FT_MemoryRec structure.","title":"FT_Memory"},{"location":"ft2-system_interface.html#ft_alloc_func","text":"Defined in FT_SYSTEM_H (freetype/ftsystem.h). typedef void * (* FT_Alloc_Func )( FT_Memory memory, long size ); A function used to allocate size bytes from memory .","title":"FT_Alloc_Func"},{"location":"ft2-system_interface.html#ft_free_func","text":"Defined in FT_SYSTEM_H (freetype/ftsystem.h). typedef void (* FT_Free_Func )( FT_Memory memory, void * block ); A function used to release a given block of memory.","title":"FT_Free_Func"},{"location":"ft2-system_interface.html#ft_realloc_func","text":"Defined in FT_SYSTEM_H (freetype/ftsystem.h). typedef void * (* FT_Realloc_Func )( FT_Memory memory, long cur_size, long new_size, void * block ); A function used to re-allocate a given block of memory.","title":"FT_Realloc_Func"},{"location":"ft2-system_interface.html#ft_memoryrec","text":"Defined in FT_SYSTEM_H (freetype/ftsystem.h). struct FT_MemoryRec_ { void * user; FT_Alloc_Func alloc; FT_Free_Func free; FT_Realloc_Func realloc; }; A structure used to describe a given memory manager to FreeType 2.","title":"FT_MemoryRec"},{"location":"ft2-system_interface.html#ft_stream","text":"Defined in FT_SYSTEM_H (freetype/ftsystem.h). typedef struct FT_StreamRec_* FT_Stream ; A handle to an input stream.","title":"FT_Stream"},{"location":"ft2-system_interface.html#ft_streamdesc","text":"Defined in FT_SYSTEM_H (freetype/ftsystem.h). typedef union FT_StreamDesc_ { long value; void * pointer; } FT_StreamDesc ; A union type used to store either a long or a pointer. This is used to store a file descriptor or a FILE* in an input stream.","title":"FT_StreamDesc"},{"location":"ft2-system_interface.html#ft_stream_iofunc","text":"Defined in FT_SYSTEM_H (freetype/ftsystem.h). typedef unsigned long (* FT_Stream_IoFunc )( FT_Stream stream, unsigned long offset, unsigned char * buffer, unsigned long count ); A function used to seek and read data from a given input stream.","title":"FT_Stream_IoFunc"},{"location":"ft2-system_interface.html#ft_stream_closefunc","text":"Defined in FT_SYSTEM_H (freetype/ftsystem.h). typedef void (* FT_Stream_CloseFunc )( FT_Stream stream ); A function used to close a given input stream.","title":"FT_Stream_CloseFunc"},{"location":"ft2-system_interface.html#ft_streamrec","text":"Defined in FT_SYSTEM_H (freetype/ftsystem.h). typedef struct FT_StreamRec_ { unsigned char * base; unsigned long size; unsigned long pos; FT_StreamDesc descriptor; FT_StreamDesc pathname; FT_Stream_IoFunc read; FT_Stream_CloseFunc close; FT_Memory memory; unsigned char * cursor; unsigned char * limit; } FT_StreamRec ; A structure used to describe an input stream.","title":"FT_StreamRec"},{"location":"ft2-t1_cid_driver.html","text":"FreeType \u00bb Docs \u00bb Controlling FreeType Modules \u00bb The Type 1 and CID drivers The Type 1 and CID drivers \u00b6 Synopsis \u00b6 It is possible to control the behaviour of FreeType's Type 1 and Type 1 CID drivers with FT_Property_Set and FT_Property_Get . Behind the scenes, both drivers use the Adobe CFF engine for hinting; however, the used properties must be specified separately. The Type 1 driver's module name is \u2018type1\u2019; the CID driver's module name is \u2018t1cid\u2019. Available properties are hinting-engine , no-stem-darkening , darkening-parameters , and random-seed , as documented in the \u2018 Driver properties \u2019 section. Please see the \u2018 The CFF driver \u2019 section for more details on the new hinting engine.","title":"The Type 1 and CID drivers"},{"location":"ft2-t1_cid_driver.html#the-type-1-and-cid-drivers","text":"","title":"The Type 1 and CID drivers"},{"location":"ft2-t1_cid_driver.html#synopsis","text":"It is possible to control the behaviour of FreeType's Type 1 and Type 1 CID drivers with FT_Property_Set and FT_Property_Get . Behind the scenes, both drivers use the Adobe CFF engine for hinting; however, the used properties must be specified separately. The Type 1 driver's module name is \u2018type1\u2019; the CID driver's module name is \u2018t1cid\u2019. Available properties are hinting-engine , no-stem-darkening , darkening-parameters , and random-seed , as documented in the \u2018 Driver properties \u2019 section. Please see the \u2018 The CFF driver \u2019 section for more details on the new hinting engine.","title":"Synopsis"},{"location":"ft2-truetype_engine.html","text":"FreeType \u00bb Docs \u00bb Miscellaneous \u00bb The TrueType Engine The TrueType Engine \u00b6 Synopsis \u00b6 This section contains a function used to query the level of TrueType bytecode support compiled in this version of the library. FT_TrueTypeEngineType \u00b6 Defined in FT_MODULE_H (freetype/ftmodapi.h). typedef enum FT_TrueTypeEngineType_ { FT_TRUETYPE_ENGINE_TYPE_NONE = 0, FT_TRUETYPE_ENGINE_TYPE_UNPATENTED , FT_TRUETYPE_ENGINE_TYPE_PATENTED } FT_TrueTypeEngineType ; A list of values describing which kind of TrueType bytecode engine is implemented in a given FT_Library instance. It is used by the FT_Get_TrueType_Engine_Type function. values FT_TRUETYPE_ENGINE_TYPE_NONE The library doesn't implement any kind of bytecode interpreter. FT_TRUETYPE_ENGINE_TYPE_UNPATENTED Deprecated and removed. FT_TRUETYPE_ENGINE_TYPE_PATENTED The library implements a bytecode interpreter that covers the full instruction set of the TrueType virtual machine (this was governed by patents until May 2010, hence the name). since 2.2 FT_Get_TrueType_Engine_Type \u00b6 Defined in FT_MODULE_H (freetype/ftmodapi.h). FT_EXPORT( FT_TrueTypeEngineType ) FT_Get_TrueType_Engine_Type ( FT_Library library ); Return an FT_TrueTypeEngineType value to indicate which level of the TrueType virtual machine a given library instance supports. input library A library instance. return A value indicating which level is supported. since 2.2","title":"The TrueType Engine"},{"location":"ft2-truetype_engine.html#the-truetype-engine","text":"","title":"The TrueType Engine"},{"location":"ft2-truetype_engine.html#synopsis","text":"This section contains a function used to query the level of TrueType bytecode support compiled in this version of the library.","title":"Synopsis"},{"location":"ft2-truetype_engine.html#ft_truetypeenginetype","text":"Defined in FT_MODULE_H (freetype/ftmodapi.h). typedef enum FT_TrueTypeEngineType_ { FT_TRUETYPE_ENGINE_TYPE_NONE = 0, FT_TRUETYPE_ENGINE_TYPE_UNPATENTED , FT_TRUETYPE_ENGINE_TYPE_PATENTED } FT_TrueTypeEngineType ; A list of values describing which kind of TrueType bytecode engine is implemented in a given FT_Library instance. It is used by the FT_Get_TrueType_Engine_Type function.","title":"FT_TrueTypeEngineType"},{"location":"ft2-truetype_engine.html#ft_get_truetype_engine_type","text":"Defined in FT_MODULE_H (freetype/ftmodapi.h). FT_EXPORT( FT_TrueTypeEngineType ) FT_Get_TrueType_Engine_Type ( FT_Library library ); Return an FT_TrueTypeEngineType value to indicate which level of the TrueType virtual machine a given library instance supports.","title":"FT_Get_TrueType_Engine_Type"},{"location":"ft2-truetype_tables.html","text":"FreeType \u00bb Docs \u00bb Format-Specific API \u00bb TrueType Tables TrueType Tables \u00b6 Synopsis \u00b6 This section contains definitions of some basic tables specific to TrueType and OpenType as well as some routines used to access and process them. TT_Header \u00b6 Defined in FT_TRUETYPE_TABLES_H (freetype/tttables.h). typedef struct TT_Header_ { FT_Fixed Table_Version; FT_Fixed Font_Revision; FT_Long CheckSum_Adjust; FT_Long Magic_Number; FT_UShort Flags; FT_UShort Units_Per_EM; FT_ULong Created [2]; FT_ULong Modified[2]; FT_Short xMin; FT_Short yMin; FT_Short xMax; FT_Short yMax; FT_UShort Mac_Style; FT_UShort Lowest_Rec_PPEM; FT_Short Font_Direction; FT_Short Index_To_Loc_Format; FT_Short Glyph_Data_Format; } TT_Header ; A structure to model a TrueType font header table. All fields follow the OpenType specification. The 64-bit timestamps are stored in two-element arrays Created and Modified , first the upper then the lower 32 bits. TT_HoriHeader \u00b6 Defined in FT_TRUETYPE_TABLES_H (freetype/tttables.h). typedef struct TT_HoriHeader_ { FT_Fixed Version; FT_Short Ascender; FT_Short Descender; FT_Short Line_Gap; FT_UShort advance_Width_Max; /* advance width maximum */ FT_Short min_Left_Side_Bearing; /* minimum left-sb */ FT_Short min_Right_Side_Bearing; /* minimum right-sb */ FT_Short xMax_Extent; /* xmax extents */ FT_Short caret_Slope_Rise; FT_Short caret_Slope_Run; FT_Short caret_Offset; FT_Short Reserved[4]; FT_Short metric_Data_Format; FT_UShort number_Of_HMetrics; /* The following fields are not defined by the OpenType specification */ /* but they are used to connect the metrics header to the relevant */ /* 'hmtx' table. */ void * long_metrics; void * short_metrics; } TT_HoriHeader ; A structure to model a TrueType horizontal header, the \u2018hhea\u2019 table, as well as the corresponding horizontal metrics table, \u2018hmtx\u2019. fields Version The table version. Ascender The font's ascender, i.e., the distance from the baseline to the top-most of all glyph points found in the font. This value is invalid in many fonts, as it is usually set by the font designer, and often reflects only a portion of the glyphs found in the font (maybe ASCII). You should use the sTypoAscender field of the \u2018OS/2\u2019 table instead if you want the correct one. Descender The font's descender, i.e., the distance from the baseline to the bottom-most of all glyph points found in the font. It is negative. This value is invalid in many fonts, as it is usually set by the font designer, and often reflects only a portion of the glyphs found in the font (maybe ASCII). You should use the sTypoDescender field of the \u2018OS/2\u2019 table instead if you want the correct one. Line_Gap The font's line gap, i.e., the distance to add to the ascender and descender to get the BTB, i.e., the baseline-to-baseline distance for the font. advance_Width_Max This field is the maximum of all advance widths found in the font. It can be used to compute the maximum width of an arbitrary string of text. min_Left_Side_Bearing The minimum left side bearing of all glyphs within the font. min_Right_Side_Bearing The minimum right side bearing of all glyphs within the font. xMax_Extent The maximum horizontal extent (i.e., the \u2018width\u2019 of a glyph's bounding box) for all glyphs in the font. caret_Slope_Rise The rise coefficient of the cursor's slope of the cursor (slope=rise/run). caret_Slope_Run The run coefficient of the cursor's slope. caret_Offset The cursor's offset for slanted fonts. Reserved 8 reserved bytes. metric_Data_Format Always 0. number_Of_HMetrics Number of HMetrics entries in the \u2018hmtx\u2019 table -- this value can be smaller than the total number of glyphs in the font. long_metrics A pointer into the \u2018hmtx\u2019 table. short_metrics A pointer into the \u2018hmtx\u2019 table. note For an OpenType variation font, the values of the following fields can change after a call to FT_Set_Var_Design_Coordinates (and friends) if the font contains an \u2018MVAR\u2019 table: caret_Slope_Rise , caret_Slope_Run , and caret_Offset . TT_VertHeader \u00b6 Defined in FT_TRUETYPE_TABLES_H (freetype/tttables.h). typedef struct TT_VertHeader_ { FT_Fixed Version; FT_Short Ascender; FT_Short Descender; FT_Short Line_Gap; FT_UShort advance_Height_Max; /* advance height maximum */ FT_Short min_Top_Side_Bearing; /* minimum top-sb */ FT_Short min_Bottom_Side_Bearing; /* minimum bottom-sb */ FT_Short yMax_Extent; /* ymax extents */ FT_Short caret_Slope_Rise; FT_Short caret_Slope_Run; FT_Short caret_Offset; FT_Short Reserved[4]; FT_Short metric_Data_Format; FT_UShort number_Of_VMetrics; /* The following fields are not defined by the OpenType specification */ /* but they are used to connect the metrics header to the relevant */ /* 'vmtx' table. */ void * long_metrics; void * short_metrics; } TT_VertHeader ; A structure used to model a TrueType vertical header, the \u2018vhea\u2019 table, as well as the corresponding vertical metrics table, \u2018vmtx\u2019. fields Version The table version. Ascender The font's ascender, i.e., the distance from the baseline to the top-most of all glyph points found in the font. This value is invalid in many fonts, as it is usually set by the font designer, and often reflects only a portion of the glyphs found in the font (maybe ASCII). You should use the sTypoAscender field of the \u2018OS/2\u2019 table instead if you want the correct one. Descender The font's descender, i.e., the distance from the baseline to the bottom-most of all glyph points found in the font. It is negative. This value is invalid in many fonts, as it is usually set by the font designer, and often reflects only a portion of the glyphs found in the font (maybe ASCII). You should use the sTypoDescender field of the \u2018OS/2\u2019 table instead if you want the correct one. Line_Gap The font's line gap, i.e., the distance to add to the ascender and descender to get the BTB, i.e., the baseline-to-baseline distance for the font. advance_Height_Max This field is the maximum of all advance heights found in the font. It can be used to compute the maximum height of an arbitrary string of text. min_Top_Side_Bearing The minimum top side bearing of all glyphs within the font. min_Bottom_Side_Bearing The minimum bottom side bearing of all glyphs within the font. yMax_Extent The maximum vertical extent (i.e., the \u2018height\u2019 of a glyph's bounding box) for all glyphs in the font. caret_Slope_Rise The rise coefficient of the cursor's slope of the cursor (slope=rise/run). caret_Slope_Run The run coefficient of the cursor's slope. caret_Offset The cursor's offset for slanted fonts. Reserved 8 reserved bytes. metric_Data_Format Always 0. number_Of_VMetrics Number of VMetrics entries in the \u2018vmtx\u2019 table -- this value can be smaller than the total number of glyphs in the font. long_metrics A pointer into the \u2018vmtx\u2019 table. short_metrics A pointer into the \u2018vmtx\u2019 table. note For an OpenType variation font, the values of the following fields can change after a call to FT_Set_Var_Design_Coordinates (and friends) if the font contains an \u2018MVAR\u2019 table: Ascender , Descender , Line_Gap , caret_Slope_Rise , caret_Slope_Run , and caret_Offset . TT_OS2 \u00b6 Defined in FT_TRUETYPE_TABLES_H (freetype/tttables.h). typedef struct TT_OS2_ { FT_UShort version; /* 0x0001 - more or 0xFFFF */ FT_Short xAvgCharWidth; FT_UShort usWeightClass; FT_UShort usWidthClass; FT_UShort fsType; FT_Short ySubscriptXSize; FT_Short ySubscriptYSize; FT_Short ySubscriptXOffset; FT_Short ySubscriptYOffset; FT_Short ySuperscriptXSize; FT_Short ySuperscriptYSize; FT_Short ySuperscriptXOffset; FT_Short ySuperscriptYOffset; FT_Short yStrikeoutSize; FT_Short yStrikeoutPosition; FT_Short sFamilyClass; FT_Byte panose[10]; FT_ULong ulUnicodeRange1; /* Bits 0-31 */ FT_ULong ulUnicodeRange2; /* Bits 32-63 */ FT_ULong ulUnicodeRange3; /* Bits 64-95 */ FT_ULong ulUnicodeRange4; /* Bits 96-127 */ FT_Char achVendID[4]; FT_UShort fsSelection; FT_UShort usFirstCharIndex; FT_UShort usLastCharIndex; FT_Short sTypoAscender; FT_Short sTypoDescender; FT_Short sTypoLineGap; FT_UShort usWinAscent; FT_UShort usWinDescent; /* only version 1 and higher: */ FT_ULong ulCodePageRange1; /* Bits 0-31 */ FT_ULong ulCodePageRange2; /* Bits 32-63 */ /* only version 2 and higher: */ FT_Short sxHeight; FT_Short sCapHeight; FT_UShort usDefaultChar; FT_UShort usBreakChar; FT_UShort usMaxContext; /* only version 5 and higher: */ FT_UShort usLowerOpticalPointSize; /* in twips (1/20th points) */ FT_UShort usUpperOpticalPointSize; /* in twips (1/20th points) */ } TT_OS2 ; A structure to model a TrueType \u2018OS/2\u2019 table. All fields comply to the OpenType specification. Note that we now support old Mac fonts that do not include an \u2018OS/2\u2019 table. In this case, the version field is always set to 0xFFFF. note For an OpenType variation font, the values of the following fields can change after a call to FT_Set_Var_Design_Coordinates (and friends) if the font contains an \u2018MVAR\u2019 table: sCapHeight , sTypoAscender , sTypoDescender , sTypoLineGap , sxHeight , usWinAscent , usWinDescent , yStrikeoutPosition , yStrikeoutSize , ySubscriptXOffset , ySubScriptXSize , ySubscriptYOffset , ySubscriptYSize , ySuperscriptXOffset , ySuperscriptXSize , ySuperscriptYOffset , and ySuperscriptYSize . Possible values for bits in the ulUnicodeRangeX fields are given by the TT_UCR_XXX macros. TT_Postscript \u00b6 Defined in FT_TRUETYPE_TABLES_H (freetype/tttables.h). typedef struct TT_Postscript_ { FT_Fixed FormatType; FT_Fixed italicAngle; FT_Short underlinePosition; FT_Short underlineThickness; FT_ULong isFixedPitch; FT_ULong minMemType42; FT_ULong maxMemType42; FT_ULong minMemType1; FT_ULong maxMemType1; /* Glyph names follow in the 'post' table, but we don't */ /* load them by default. */ } TT_Postscript ; A structure to model a TrueType \u2018post\u2019 table. All fields comply to the OpenType specification. This structure does not reference a font's PostScript glyph names; use FT_Get_Glyph_Name to retrieve them. note For an OpenType variation font, the values of the following fields can change after a call to FT_Set_Var_Design_Coordinates (and friends) if the font contains an \u2018MVAR\u2019 table: underlinePosition and underlineThickness . TT_PCLT \u00b6 Defined in FT_TRUETYPE_TABLES_H (freetype/tttables.h). typedef struct TT_PCLT_ { FT_Fixed Version; FT_ULong FontNumber; FT_UShort Pitch; FT_UShort xHeight; FT_UShort Style; FT_UShort TypeFamily; FT_UShort CapHeight; FT_UShort SymbolSet; FT_Char TypeFace[16]; FT_Char CharacterComplement[8]; FT_Char FileName[6]; FT_Char StrokeWeight; FT_Char WidthType; FT_Byte SerifStyle; FT_Byte Reserved; } TT_PCLT ; A structure to model a TrueType \u2018PCLT\u2019 table. All fields comply to the OpenType specification. TT_MaxProfile \u00b6 Defined in FT_TRUETYPE_TABLES_H (freetype/tttables.h). typedef struct TT_MaxProfile_ { FT_Fixed version; FT_UShort numGlyphs; FT_UShort maxPoints; FT_UShort maxContours; FT_UShort maxCompositePoints; FT_UShort maxCompositeContours; FT_UShort maxZones; FT_UShort maxTwilightPoints; FT_UShort maxStorage; FT_UShort maxFunctionDefs; FT_UShort maxInstructionDefs; FT_UShort maxStackElements; FT_UShort maxSizeOfInstructions; FT_UShort maxComponentElements; FT_UShort maxComponentDepth; } TT_MaxProfile ; The maximum profile (\u2018maxp\u2019) table contains many max values, which can be used to pre-allocate arrays for speeding up glyph loading and hinting. fields version The version number. numGlyphs The number of glyphs in this TrueType font. maxPoints The maximum number of points in a non-composite TrueType glyph. See also maxCompositePoints . maxContours The maximum number of contours in a non-composite TrueType glyph. See also maxCompositeContours . maxCompositePoints The maximum number of points in a composite TrueType glyph. See also maxPoints . maxCompositeContours The maximum number of contours in a composite TrueType glyph. See also maxContours . maxZones The maximum number of zones used for glyph hinting. maxTwilightPoints The maximum number of points in the twilight zone used for glyph hinting. maxStorage The maximum number of elements in the storage area used for glyph hinting. maxFunctionDefs The maximum number of function definitions in the TrueType bytecode for this font. maxInstructionDefs The maximum number of instruction definitions in the TrueType bytecode for this font. maxStackElements The maximum number of stack elements used during bytecode interpretation. maxSizeOfInstructions The maximum number of TrueType opcodes used for glyph hinting. maxComponentElements The maximum number of simple (i.e., non-composite) glyphs in a composite glyph. maxComponentDepth The maximum nesting depth of composite glyphs. note This structure is only used during font loading. FT_Sfnt_Tag \u00b6 Defined in FT_TRUETYPE_TABLES_H (freetype/tttables.h). typedef enum FT_Sfnt_Tag_ { FT_SFNT_HEAD , FT_SFNT_MAXP , FT_SFNT_OS2 , FT_SFNT_HHEA , FT_SFNT_VHEA , FT_SFNT_POST , FT_SFNT_PCLT , FT_SFNT_MAX } FT_Sfnt_Tag ; /* these constants are deprecated; use the corresponding ` FT_Sfnt_Tag ` */ /* values instead */ # define ft_sfnt_head FT_SFNT_HEAD # define ft_sfnt_maxp FT_SFNT_MAXP # define ft_sfnt_os2 FT_SFNT_OS2 # define ft_sfnt_hhea FT_SFNT_HHEA # define ft_sfnt_vhea FT_SFNT_VHEA # define ft_sfnt_post FT_SFNT_POST # define ft_sfnt_pclt FT_SFNT_PCLT An enumeration to specify indices of SFNT tables loaded and parsed by FreeType during initialization of an SFNT font. Used in the FT_Get_Sfnt_Table API function. values FT_SFNT_HEAD To access the font's TT_Header structure. FT_SFNT_MAXP To access the font's TT_MaxProfile structure. FT_SFNT_OS2 To access the font's TT_OS2 structure. FT_SFNT_HHEA To access the font's TT_HoriHeader structure. FT_SFNT_VHEA To access the font's TT_VertHeader structure. FT_SFNT_POST To access the font's TT_Postscript structure. FT_SFNT_PCLT To access the font's TT_PCLT structure. FT_Get_Sfnt_Table \u00b6 Defined in FT_TRUETYPE_TABLES_H (freetype/tttables.h). FT_EXPORT( void * ) FT_Get_Sfnt_Table ( FT_Face face, FT_Sfnt_Tag tag ); Return a pointer to a given SFNT table stored within a face. input face A handle to the source. tag The index of the SFNT table. return A type-less pointer to the table. This will be NULL in case of error, or if the corresponding table was not found OR loaded from the file. Use a typecast according to tag to access the structure elements. note The table is owned by the face object and disappears with it. This function is only useful to access SFNT tables that are loaded by the sfnt, truetype, and opentype drivers. See FT_Sfnt_Tag for a list. example Here is an example demonstrating access to the \u2018vhea\u2019 table. TT_VertHeader* vert_header; vert_header = (TT_VertHeader*)FT_Get_Sfnt_Table( face, FT_SFNT_VHEA ); FT_Load_Sfnt_Table \u00b6 Defined in FT_TRUETYPE_TABLES_H (freetype/tttables.h). FT_EXPORT( FT_Error ) FT_Load_Sfnt_Table ( FT_Face face, FT_ULong tag, FT_Long offset, FT_Byte * buffer, FT_ULong * length ); Load any SFNT font table into client memory. input face A handle to the source face. tag The four-byte tag of the table to load. Use value 0 if you want to access the whole font file. Otherwise, you can use one of the definitions found in the FT_TRUETYPE_TAGS_H file, or forge a new one with FT_MAKE_TAG . offset The starting offset in the table (or file if tag == 0). output buffer The target buffer address. The client must ensure that the memory array is big enough to hold the data. inout length If the length parameter is NULL , try to load the whole table. Return an error code if it fails. Else, if *length is 0, exit immediately while returning the table's (or file) full size in it. Else the number of bytes to read from the table or file, from the starting offset. return FreeType error code. 0 means success. note If you need to determine the table's length you should first call this function with *length set to 0, as in the following example: FT_ULong length = 0; error = FT_Load_Sfnt_Table( face, tag, 0, NULL, &length ); if ( error ) { ... table does not exist ... } buffer = malloc( length ); if ( buffer == NULL ) { ... not enough memory ... } error = FT_Load_Sfnt_Table( face, tag, 0, buffer, &length ); if ( error ) { ... could not load table ... } Note that structures like TT_Header or TT_OS2 can't be used with this function; they are limited to FT_Get_Sfnt_Table . Reason is that those structures depend on the processor architecture, with varying size (e.g. 32bit vs. 64bit) or order (big endian vs. little endian). FT_Sfnt_Table_Info \u00b6 Defined in FT_TRUETYPE_TABLES_H (freetype/tttables.h). FT_EXPORT( FT_Error ) FT_Sfnt_Table_Info ( FT_Face face, FT_UInt table_index, FT_ULong *tag, FT_ULong *length ); Return information on an SFNT table. input face A handle to the source face. table_index The index of an SFNT table. The function returns FT_Err_Table_Missing for an invalid value. inout tag The name tag of the SFNT table. If the value is NULL , table_index is ignored, and length returns the number of SFNT tables in the font. output length The length of the SFNT table (or the number of SFNT tables, depending on tag ). return FreeType error code. 0 means success. note While parsing fonts, FreeType handles SFNT tables with length zero as missing. FT_Get_CMap_Language_ID \u00b6 Defined in FT_TRUETYPE_TABLES_H (freetype/tttables.h). FT_EXPORT( FT_ULong ) FT_Get_CMap_Language_ID ( FT_CharMap charmap ); Return cmap language ID as specified in the OpenType standard. Definitions of language ID values are in file FT_TRUETYPE_IDS_H . input charmap The target charmap. return The language ID of charmap . If charmap doesn't belong to an SFNT face, just return 0 as the default value. For a format 14 cmap (to access Unicode IVS), the return value is 0xFFFFFFFF. FT_Get_CMap_Format \u00b6 Defined in FT_TRUETYPE_TABLES_H (freetype/tttables.h). FT_EXPORT( FT_Long ) FT_Get_CMap_Format ( FT_CharMap charmap ); Return the format of an SFNT \u2018cmap\u2019 table. input charmap The target charmap. return The format of charmap . If charmap doesn't belong to an SFNT face, return -1. FT_PARAM_TAG_UNPATENTED_HINTING \u00b6 # define FT_PARAM_TAG_UNPATENTED_HINTING \\ FT_MAKE_TAG ( 'u', 'n', 'p', 'a' ) Deprecated, no effect. Previously: A constant used as the tag of an FT_Parameter structure to indicate that unpatented methods only should be used by the TrueType bytecode interpreter for a typeface opened by FT_Open_Face . TT_PLATFORM_XXX \u00b6 Defined in FT_TRUETYPE_IDS_H (freetype/ttnameid.h). # define TT_PLATFORM_APPLE_UNICODE 0 # define TT_PLATFORM_MACINTOSH 1 # define TT_PLATFORM_ISO 2 /* deprecated */ # define TT_PLATFORM_MICROSOFT 3 # define TT_PLATFORM_CUSTOM 4 # define TT_PLATFORM_ADOBE 7 /* artificial */ A list of valid values for the platform_id identifier code in FT_CharMapRec and FT_SfntName structures. values TT_PLATFORM_APPLE_UNICODE Used by Apple to indicate a Unicode character map and/or name entry. See TT_APPLE_ID_XXX for corresponding encoding_id values. Note that name entries in this format are coded as big-endian UCS-2 character codes only . TT_PLATFORM_MACINTOSH Used by Apple to indicate a MacOS-specific charmap and/or name entry. See TT_MAC_ID_XXX for corresponding encoding_id values. Note that most TrueType fonts contain an Apple roman charmap to be usable on MacOS systems (even if they contain a Microsoft charmap as well). TT_PLATFORM_ISO This value was used to specify ISO/IEC 10646 charmaps. It is however now deprecated. See TT_ISO_ID_XXX for a list of corresponding encoding_id values. TT_PLATFORM_MICROSOFT Used by Microsoft to indicate Windows-specific charmaps. See TT_MS_ID_XXX for a list of corresponding encoding_id values. Note that most fonts contain a Unicode charmap using ( TT_PLATFORM_MICROSOFT , TT_MS_ID_UNICODE_CS ). TT_PLATFORM_CUSTOM Used to indicate application-specific charmaps. TT_PLATFORM_ADOBE This value isn't part of any font format specification, but is used by FreeType to report Adobe-specific charmaps in an FT_CharMapRec structure. See TT_ADOBE_ID_XXX . TT_APPLE_ID_XXX \u00b6 Defined in FT_TRUETYPE_IDS_H (freetype/ttnameid.h). # define TT_APPLE_ID_DEFAULT 0 /* Unicode 1.0 */ # define TT_APPLE_ID_UNICODE_1_1 1 /* specify Hangul at U+34xx */ # define TT_APPLE_ID_ISO_10646 2 /* deprecated */ # define TT_APPLE_ID_UNICODE_2_0 3 /* or later */ # define TT_APPLE_ID_UNICODE_32 4 /* 2.0 or later, full repertoire */ # define TT_APPLE_ID_VARIANT_SELECTOR 5 /* variation selector data */ # define TT_APPLE_ID_FULL_UNICODE 6 /* used with type 13 cmaps */ A list of valid values for the encoding_id for TT_PLATFORM_APPLE_UNICODE charmaps and name entries. values TT_APPLE_ID_DEFAULT Unicode version 1.0. TT_APPLE_ID_UNICODE_1_1 Unicode 1.1; specifies Hangul characters starting at U+34xx. TT_APPLE_ID_ISO_10646 Deprecated (identical to preceding). TT_APPLE_ID_UNICODE_2_0 Unicode 2.0 and beyond (UTF-16 BMP only). TT_APPLE_ID_UNICODE_32 Unicode 3.1 and beyond, using UTF-32. TT_APPLE_ID_VARIANT_SELECTOR From Adobe, not Apple. Not a normal cmap. Specifies variations on a real cmap. TT_APPLE_ID_FULL_UNICODE Used for fallback fonts that provide complete Unicode coverage with a type 13 cmap. TT_MAC_ID_XXX \u00b6 Defined in FT_TRUETYPE_IDS_H (freetype/ttnameid.h). # define TT_MAC_ID_ROMAN 0 # define TT_MAC_ID_JAPANESE 1 # define TT_MAC_ID_TRADITIONAL_CHINESE 2 # define TT_MAC_ID_KOREAN 3 # define TT_MAC_ID_ARABIC 4 # define TT_MAC_ID_HEBREW 5 # define TT_MAC_ID_GREEK 6 # define TT_MAC_ID_RUSSIAN 7 # define TT_MAC_ID_RSYMBOL 8 # define TT_MAC_ID_DEVANAGARI 9 # define TT_MAC_ID_GURMUKHI 10 # define TT_MAC_ID_GUJARATI 11 # define TT_MAC_ID_ORIYA 12 # define TT_MAC_ID_BENGALI 13 # define TT_MAC_ID_TAMIL 14 # define TT_MAC_ID_TELUGU 15 # define TT_MAC_ID_KANNADA 16 # define TT_MAC_ID_MALAYALAM 17 # define TT_MAC_ID_SINHALESE 18 # define TT_MAC_ID_BURMESE 19 # define TT_MAC_ID_KHMER 20 # define TT_MAC_ID_THAI 21 # define TT_MAC_ID_LAOTIAN 22 # define TT_MAC_ID_GEORGIAN 23 # define TT_MAC_ID_ARMENIAN 24 # define TT_MAC_ID_MALDIVIAN 25 # define TT_MAC_ID_SIMPLIFIED_CHINESE 25 # define TT_MAC_ID_TIBETAN 26 # define TT_MAC_ID_MONGOLIAN 27 # define TT_MAC_ID_GEEZ 28 # define TT_MAC_ID_SLAVIC 29 # define TT_MAC_ID_VIETNAMESE 30 # define TT_MAC_ID_SINDHI 31 # define TT_MAC_ID_UNINTERP 32 A list of valid values for the encoding_id for TT_PLATFORM_MACINTOSH charmaps and name entries. TT_ISO_ID_XXX \u00b6 Defined in FT_TRUETYPE_IDS_H (freetype/ttnameid.h). # define TT_ISO_ID_7BIT_ASCII 0 # define TT_ISO_ID_10646 1 # define TT_ISO_ID_8859_1 2 A list of valid values for the encoding_id for TT_PLATFORM_ISO charmaps and name entries. Their use is now deprecated. values TT_ISO_ID_7BIT_ASCII ASCII. TT_ISO_ID_10646 ISO/10646. TT_ISO_ID_8859_1 Also known as Latin-1. TT_MS_ID_XXX \u00b6 Defined in FT_TRUETYPE_IDS_H (freetype/ttnameid.h). # define TT_MS_ID_SYMBOL_CS 0 # define TT_MS_ID_UNICODE_CS 1 # define TT_MS_ID_SJIS 2 # define TT_MS_ID_PRC 3 # define TT_MS_ID_BIG_5 4 # define TT_MS_ID_WANSUNG 5 # define TT_MS_ID_JOHAB 6 # define TT_MS_ID_UCS_4 10 /* this value is deprecated */ # define TT_MS_ID_GB2312 TT_MS_ID_PRC A list of valid values for the encoding_id for TT_PLATFORM_MICROSOFT charmaps and name entries. values TT_MS_ID_SYMBOL_CS Microsoft symbol encoding. See FT_ENCODING_MS_SYMBOL . TT_MS_ID_UNICODE_CS Microsoft WGL4 charmap, matching Unicode. See FT_ENCODING_UNICODE . TT_MS_ID_SJIS Shift JIS Japanese encoding. See FT_ENCODING_SJIS . TT_MS_ID_PRC Chinese encodings as used in the People's Republic of China (PRC). This means the encodings GB 2312 and its supersets GBK and GB 18030. See FT_ENCODING_PRC . TT_MS_ID_BIG_5 Traditional Chinese as used in Taiwan and Hong Kong. See FT_ENCODING_BIG5 . TT_MS_ID_WANSUNG Korean Extended Wansung encoding. See FT_ENCODING_WANSUNG . TT_MS_ID_JOHAB Korean Johab encoding. See FT_ENCODING_JOHAB . TT_MS_ID_UCS_4 UCS-4 or UTF-32 charmaps. This has been added to the OpenType specification version 1.4 (mid-2001). TT_ADOBE_ID_XXX \u00b6 Defined in FT_TRUETYPE_IDS_H (freetype/ttnameid.h). # define TT_ADOBE_ID_STANDARD 0 # define TT_ADOBE_ID_EXPERT 1 # define TT_ADOBE_ID_CUSTOM 2 # define TT_ADOBE_ID_LATIN_1 3 A list of valid values for the encoding_id for TT_PLATFORM_ADOBE charmaps. This is a FreeType-specific extension! values TT_ADOBE_ID_STANDARD Adobe standard encoding. TT_ADOBE_ID_EXPERT Adobe expert encoding. TT_ADOBE_ID_CUSTOM Adobe custom encoding. TT_ADOBE_ID_LATIN_1 Adobe Latin 1 encoding. TT_MAC_LANGID_XXX \u00b6 Defined in FT_TRUETYPE_IDS_H (freetype/ttnameid.h). # define TT_MAC_LANGID_ENGLISH 0 # define TT_MAC_LANGID_FRENCH 1 # define TT_MAC_LANGID_GERMAN 2 # define TT_MAC_LANGID_ITALIAN 3 # define TT_MAC_LANGID_DUTCH 4 # define TT_MAC_LANGID_SWEDISH 5 # define TT_MAC_LANGID_SPANISH 6 # define TT_MAC_LANGID_DANISH 7 # define TT_MAC_LANGID_PORTUGUESE 8 # define TT_MAC_LANGID_NORWEGIAN 9 # define TT_MAC_LANGID_HEBREW 10 # define TT_MAC_LANGID_JAPANESE 11 # define TT_MAC_LANGID_ARABIC 12 # define TT_MAC_LANGID_FINNISH 13 # define TT_MAC_LANGID_GREEK 14 # define TT_MAC_LANGID_ICELANDIC 15 # define TT_MAC_LANGID_MALTESE 16 # define TT_MAC_LANGID_TURKISH 17 # define TT_MAC_LANGID_CROATIAN 18 # define TT_MAC_LANGID_CHINESE_TRADITIONAL 19 # define TT_MAC_LANGID_URDU 20 # define TT_MAC_LANGID_HINDI 21 # define TT_MAC_LANGID_THAI 22 # define TT_MAC_LANGID_KOREAN 23 # define TT_MAC_LANGID_LITHUANIAN 24 # define TT_MAC_LANGID_POLISH 25 # define TT_MAC_LANGID_HUNGARIAN 26 # define TT_MAC_LANGID_ESTONIAN 27 # define TT_MAC_LANGID_LETTISH 28 # define TT_MAC_LANGID_SAAMISK 29 # define TT_MAC_LANGID_FAEROESE 30 # define TT_MAC_LANGID_FARSI 31 # define TT_MAC_LANGID_RUSSIAN 32 # define TT_MAC_LANGID_CHINESE_SIMPLIFIED 33 # define TT_MAC_LANGID_FLEMISH 34 # define TT_MAC_LANGID_IRISH 35 # define TT_MAC_LANGID_ALBANIAN 36 # define TT_MAC_LANGID_ROMANIAN 37 # define TT_MAC_LANGID_CZECH 38 # define TT_MAC_LANGID_SLOVAK 39 # define TT_MAC_LANGID_SLOVENIAN 40 # define TT_MAC_LANGID_YIDDISH 41 # define TT_MAC_LANGID_SERBIAN 42 # define TT_MAC_LANGID_MACEDONIAN 43 # define TT_MAC_LANGID_BULGARIAN 44 # define TT_MAC_LANGID_UKRAINIAN 45 # define TT_MAC_LANGID_BYELORUSSIAN 46 # define TT_MAC_LANGID_UZBEK 47 # define TT_MAC_LANGID_KAZAKH 48 # define TT_MAC_LANGID_AZERBAIJANI 49 # define TT_MAC_LANGID_AZERBAIJANI_CYRILLIC_SCRIPT 49 # define TT_MAC_LANGID_AZERBAIJANI_ARABIC_SCRIPT 50 # define TT_MAC_LANGID_ARMENIAN 51 # define TT_MAC_LANGID_GEORGIAN 52 # define TT_MAC_LANGID_MOLDAVIAN 53 # define TT_MAC_LANGID_KIRGHIZ 54 # define TT_MAC_LANGID_TAJIKI 55 # define TT_MAC_LANGID_TURKMEN 56 # define TT_MAC_LANGID_MONGOLIAN 57 # define TT_MAC_LANGID_MONGOLIAN_MONGOLIAN_SCRIPT 57 # define TT_MAC_LANGID_MONGOLIAN_CYRILLIC_SCRIPT 58 # define TT_MAC_LANGID_PASHTO 59 # define TT_MAC_LANGID_KURDISH 60 # define TT_MAC_LANGID_KASHMIRI 61 # define TT_MAC_LANGID_SINDHI 62 # define TT_MAC_LANGID_TIBETAN 63 # define TT_MAC_LANGID_NEPALI 64 # define TT_MAC_LANGID_SANSKRIT 65 # define TT_MAC_LANGID_MARATHI 66 # define TT_MAC_LANGID_BENGALI 67 # define TT_MAC_LANGID_ASSAMESE 68 # define TT_MAC_LANGID_GUJARATI 69 # define TT_MAC_LANGID_PUNJABI 70 # define TT_MAC_LANGID_ORIYA 71 # define TT_MAC_LANGID_MALAYALAM 72 # define TT_MAC_LANGID_KANNADA 73 # define TT_MAC_LANGID_TAMIL 74 # define TT_MAC_LANGID_TELUGU 75 # define TT_MAC_LANGID_SINHALESE 76 # define TT_MAC_LANGID_BURMESE 77 # define TT_MAC_LANGID_KHMER 78 # define TT_MAC_LANGID_LAO 79 # define TT_MAC_LANGID_VIETNAMESE 80 # define TT_MAC_LANGID_INDONESIAN 81 # define TT_MAC_LANGID_TAGALOG 82 # define TT_MAC_LANGID_MALAY_ROMAN_SCRIPT 83 # define TT_MAC_LANGID_MALAY_ARABIC_SCRIPT 84 # define TT_MAC_LANGID_AMHARIC 85 # define TT_MAC_LANGID_TIGRINYA 86 # define TT_MAC_LANGID_GALLA 87 # define TT_MAC_LANGID_SOMALI 88 # define TT_MAC_LANGID_SWAHILI 89 # define TT_MAC_LANGID_RUANDA 90 # define TT_MAC_LANGID_RUNDI 91 # define TT_MAC_LANGID_CHEWA 92 # define TT_MAC_LANGID_MALAGASY 93 # define TT_MAC_LANGID_ESPERANTO 94 # define TT_MAC_LANGID_WELSH 128 # define TT_MAC_LANGID_BASQUE 129 # define TT_MAC_LANGID_CATALAN 130 # define TT_MAC_LANGID_LATIN 131 # define TT_MAC_LANGID_QUECHUA 132 # define TT_MAC_LANGID_GUARANI 133 # define TT_MAC_LANGID_AYMARA 134 # define TT_MAC_LANGID_TATAR 135 # define TT_MAC_LANGID_UIGHUR 136 # define TT_MAC_LANGID_DZONGKHA 137 # define TT_MAC_LANGID_JAVANESE 138 # define TT_MAC_LANGID_SUNDANESE 139 /* The following codes are new as of 2000-03-10 */ # define TT_MAC_LANGID_GALICIAN 140 # define TT_MAC_LANGID_AFRIKAANS 141 # define TT_MAC_LANGID_BRETON 142 # define TT_MAC_LANGID_INUKTITUT 143 # define TT_MAC_LANGID_SCOTTISH_GAELIC 144 # define TT_MAC_LANGID_MANX_GAELIC 145 # define TT_MAC_LANGID_IRISH_GAELIC 146 # define TT_MAC_LANGID_TONGAN 147 # define TT_MAC_LANGID_GREEK_POLYTONIC 148 # define TT_MAC_LANGID_GREELANDIC 149 # define TT_MAC_LANGID_AZERBAIJANI_ROMAN_SCRIPT 150 Possible values of the language identifier field in the name records of the SFNT \u2018name\u2019 table if the \u2018platform\u2019 identifier code is TT_PLATFORM_MACINTOSH . These values are also used as return values for function FT_Get_CMap_Language_ID . The canonical source for Apple's IDs is https://developer.apple.com/fonts/TrueType-Reference-Manual/RM06/Chap6name.html TT_MS_LANGID_XXX \u00b6 Defined in FT_TRUETYPE_IDS_H (freetype/ttnameid.h). # define TT_MS_LANGID_ARABIC_SAUDI_ARABIA 0x0401 # define TT_MS_LANGID_ARABIC_IRAQ 0x0801 # define TT_MS_LANGID_ARABIC_EGYPT 0x0C01 # define TT_MS_LANGID_ARABIC_LIBYA 0x1001 # define TT_MS_LANGID_ARABIC_ALGERIA 0x1401 # define TT_MS_LANGID_ARABIC_MOROCCO 0x1801 # define TT_MS_LANGID_ARABIC_TUNISIA 0x1C01 # define TT_MS_LANGID_ARABIC_OMAN 0x2001 # define TT_MS_LANGID_ARABIC_YEMEN 0x2401 # define TT_MS_LANGID_ARABIC_SYRIA 0x2801 # define TT_MS_LANGID_ARABIC_JORDAN 0x2C01 # define TT_MS_LANGID_ARABIC_LEBANON 0x3001 # define TT_MS_LANGID_ARABIC_KUWAIT 0x3401 # define TT_MS_LANGID_ARABIC_UAE 0x3801 # define TT_MS_LANGID_ARABIC_BAHRAIN 0x3C01 # define TT_MS_LANGID_ARABIC_QATAR 0x4001 # define TT_MS_LANGID_BULGARIAN_BULGARIA 0x0402 # define TT_MS_LANGID_CATALAN_CATALAN 0x0403 # define TT_MS_LANGID_CHINESE_TAIWAN 0x0404 # define TT_MS_LANGID_CHINESE_PRC 0x0804 # define TT_MS_LANGID_CHINESE_HONG_KONG 0x0C04 # define TT_MS_LANGID_CHINESE_SINGAPORE 0x1004 # define TT_MS_LANGID_CHINESE_MACAO 0x1404 # define TT_MS_LANGID_CZECH_CZECH_REPUBLIC 0x0405 # define TT_MS_LANGID_DANISH_DENMARK 0x0406 # define TT_MS_LANGID_GERMAN_GERMANY 0x0407 # define TT_MS_LANGID_GERMAN_SWITZERLAND 0x0807 # define TT_MS_LANGID_GERMAN_AUSTRIA 0x0C07 # define TT_MS_LANGID_GERMAN_LUXEMBOURG 0x1007 # define TT_MS_LANGID_GERMAN_LIECHTENSTEIN 0x1407 # define TT_MS_LANGID_GREEK_GREECE 0x0408 # define TT_MS_LANGID_ENGLISH_UNITED_STATES 0x0409 # define TT_MS_LANGID_ENGLISH_UNITED_KINGDOM 0x0809 # define TT_MS_LANGID_ENGLISH_AUSTRALIA 0x0C09 # define TT_MS_LANGID_ENGLISH_CANADA 0x1009 # define TT_MS_LANGID_ENGLISH_NEW_ZEALAND 0x1409 # define TT_MS_LANGID_ENGLISH_IRELAND 0x1809 # define TT_MS_LANGID_ENGLISH_SOUTH_AFRICA 0x1C09 # define TT_MS_LANGID_ENGLISH_JAMAICA 0x2009 # define TT_MS_LANGID_ENGLISH_CARIBBEAN 0x2409 # define TT_MS_LANGID_ENGLISH_BELIZE 0x2809 # define TT_MS_LANGID_ENGLISH_TRINIDAD 0x2C09 # define TT_MS_LANGID_ENGLISH_ZIMBABWE 0x3009 # define TT_MS_LANGID_ENGLISH_PHILIPPINES 0x3409 # define TT_MS_LANGID_ENGLISH_INDIA 0x4009 # define TT_MS_LANGID_ENGLISH_MALAYSIA 0x4409 # define TT_MS_LANGID_ENGLISH_SINGAPORE 0x4809 # define TT_MS_LANGID_SPANISH_SPAIN_TRADITIONAL_SORT 0x040A # define TT_MS_LANGID_SPANISH_MEXICO 0x080A # define TT_MS_LANGID_SPANISH_SPAIN_MODERN_SORT 0x0C0A # define TT_MS_LANGID_SPANISH_GUATEMALA 0x100A # define TT_MS_LANGID_SPANISH_COSTA_RICA 0x140A # define TT_MS_LANGID_SPANISH_PANAMA 0x180A # define TT_MS_LANGID_SPANISH_DOMINICAN_REPUBLIC 0x1C0A # define TT_MS_LANGID_SPANISH_VENEZUELA 0x200A # define TT_MS_LANGID_SPANISH_COLOMBIA 0x240A # define TT_MS_LANGID_SPANISH_PERU 0x280A # define TT_MS_LANGID_SPANISH_ARGENTINA 0x2C0A # define TT_MS_LANGID_SPANISH_ECUADOR 0x300A # define TT_MS_LANGID_SPANISH_CHILE 0x340A # define TT_MS_LANGID_SPANISH_URUGUAY 0x380A # define TT_MS_LANGID_SPANISH_PARAGUAY 0x3C0A # define TT_MS_LANGID_SPANISH_BOLIVIA 0x400A # define TT_MS_LANGID_SPANISH_EL_SALVADOR 0x440A # define TT_MS_LANGID_SPANISH_HONDURAS 0x480A # define TT_MS_LANGID_SPANISH_NICARAGUA 0x4C0A # define TT_MS_LANGID_SPANISH_PUERTO_RICO 0x500A # define TT_MS_LANGID_SPANISH_UNITED_STATES 0x540A # define TT_MS_LANGID_FINNISH_FINLAND 0x040B # define TT_MS_LANGID_FRENCH_FRANCE 0x040C # define TT_MS_LANGID_FRENCH_BELGIUM 0x080C # define TT_MS_LANGID_FRENCH_CANADA 0x0C0C # define TT_MS_LANGID_FRENCH_SWITZERLAND 0x100C # define TT_MS_LANGID_FRENCH_LUXEMBOURG 0x140C # define TT_MS_LANGID_FRENCH_MONACO 0x180C # define TT_MS_LANGID_HEBREW_ISRAEL 0x040D # define TT_MS_LANGID_HUNGARIAN_HUNGARY 0x040E # define TT_MS_LANGID_ICELANDIC_ICELAND 0x040F # define TT_MS_LANGID_ITALIAN_ITALY 0x0410 # define TT_MS_LANGID_ITALIAN_SWITZERLAND 0x0810 # define TT_MS_LANGID_JAPANESE_JAPAN 0x0411 # define TT_MS_LANGID_KOREAN_KOREA 0x0412 # define TT_MS_LANGID_DUTCH_NETHERLANDS 0x0413 # define TT_MS_LANGID_DUTCH_BELGIUM 0x0813 # define TT_MS_LANGID_NORWEGIAN_NORWAY_BOKMAL 0x0414 # define TT_MS_LANGID_NORWEGIAN_NORWAY_NYNORSK 0x0814 # define TT_MS_LANGID_POLISH_POLAND 0x0415 # define TT_MS_LANGID_PORTUGUESE_BRAZIL 0x0416 # define TT_MS_LANGID_PORTUGUESE_PORTUGAL 0x0816 # define TT_MS_LANGID_ROMANSH_SWITZERLAND 0x0417 # define TT_MS_LANGID_ROMANIAN_ROMANIA 0x0418 # define TT_MS_LANGID_RUSSIAN_RUSSIA 0x0419 # define TT_MS_LANGID_CROATIAN_CROATIA 0x041A # define TT_MS_LANGID_SERBIAN_SERBIA_LATIN 0x081A # define TT_MS_LANGID_SERBIAN_SERBIA_CYRILLIC 0x0C1A # define TT_MS_LANGID_CROATIAN_BOSNIA_HERZEGOVINA 0x101A # define TT_MS_LANGID_BOSNIAN_BOSNIA_HERZEGOVINA 0x141A # define TT_MS_LANGID_SERBIAN_BOSNIA_HERZ_LATIN 0x181A # define TT_MS_LANGID_SERBIAN_BOSNIA_HERZ_CYRILLIC 0x1C1A # define TT_MS_LANGID_BOSNIAN_BOSNIA_HERZ_CYRILLIC 0x201A # define TT_MS_LANGID_SLOVAK_SLOVAKIA 0x041B # define TT_MS_LANGID_ALBANIAN_ALBANIA 0x041C # define TT_MS_LANGID_SWEDISH_SWEDEN 0x041D # define TT_MS_LANGID_SWEDISH_FINLAND 0x081D # define TT_MS_LANGID_THAI_THAILAND 0x041E # define TT_MS_LANGID_TURKISH_TURKEY 0x041F # define TT_MS_LANGID_URDU_PAKISTAN 0x0420 # define TT_MS_LANGID_INDONESIAN_INDONESIA 0x0421 # define TT_MS_LANGID_UKRAINIAN_UKRAINE 0x0422 # define TT_MS_LANGID_BELARUSIAN_BELARUS 0x0423 # define TT_MS_LANGID_SLOVENIAN_SLOVENIA 0x0424 # define TT_MS_LANGID_ESTONIAN_ESTONIA 0x0425 # define TT_MS_LANGID_LATVIAN_LATVIA 0x0426 # define TT_MS_LANGID_LITHUANIAN_LITHUANIA 0x0427 # define TT_MS_LANGID_TAJIK_TAJIKISTAN 0x0428 # define TT_MS_LANGID_VIETNAMESE_VIET_NAM 0x042A # define TT_MS_LANGID_ARMENIAN_ARMENIA 0x042B # define TT_MS_LANGID_AZERI_AZERBAIJAN_LATIN 0x042C # define TT_MS_LANGID_AZERI_AZERBAIJAN_CYRILLIC 0x082C # define TT_MS_LANGID_BASQUE_BASQUE 0x042D # define TT_MS_LANGID_UPPER_SORBIAN_GERMANY 0x042E # define TT_MS_LANGID_LOWER_SORBIAN_GERMANY 0x082E # define TT_MS_LANGID_MACEDONIAN_MACEDONIA 0x042F # define TT_MS_LANGID_SETSWANA_SOUTH_AFRICA 0x0432 # define TT_MS_LANGID_ISIXHOSA_SOUTH_AFRICA 0x0434 # define TT_MS_LANGID_ISIZULU_SOUTH_AFRICA 0x0435 # define TT_MS_LANGID_AFRIKAANS_SOUTH_AFRICA 0x0436 # define TT_MS_LANGID_GEORGIAN_GEORGIA 0x0437 # define TT_MS_LANGID_FAEROESE_FAEROE_ISLANDS 0x0438 # define TT_MS_LANGID_HINDI_INDIA 0x0439 # define TT_MS_LANGID_MALTESE_MALTA 0x043A # define TT_MS_LANGID_SAMI_NORTHERN_NORWAY 0x043B # define TT_MS_LANGID_SAMI_NORTHERN_SWEDEN 0x083B # define TT_MS_LANGID_SAMI_NORTHERN_FINLAND 0x0C3B # define TT_MS_LANGID_SAMI_LULE_NORWAY 0x103B # define TT_MS_LANGID_SAMI_LULE_SWEDEN 0x143B # define TT_MS_LANGID_SAMI_SOUTHERN_NORWAY 0x183B # define TT_MS_LANGID_SAMI_SOUTHERN_SWEDEN 0x1C3B # define TT_MS_LANGID_SAMI_SKOLT_FINLAND 0x203B # define TT_MS_LANGID_SAMI_INARI_FINLAND 0x243B # define TT_MS_LANGID_IRISH_IRELAND 0x083C # define TT_MS_LANGID_MALAY_MALAYSIA 0x043E # define TT_MS_LANGID_MALAY_BRUNEI_DARUSSALAM 0x083E # define TT_MS_LANGID_KAZAKH_KAZAKHSTAN 0x043F # define TT_MS_LANGID_KYRGYZ_KYRGYZSTAN /* Cyrillic*/ 0x0440 # define TT_MS_LANGID_KISWAHILI_KENYA 0x0441 # define TT_MS_LANGID_TURKMEN_TURKMENISTAN 0x0442 # define TT_MS_LANGID_UZBEK_UZBEKISTAN_LATIN 0x0443 # define TT_MS_LANGID_UZBEK_UZBEKISTAN_CYRILLIC 0x0843 # define TT_MS_LANGID_TATAR_RUSSIA 0x0444 # define TT_MS_LANGID_BENGALI_INDIA 0x0445 # define TT_MS_LANGID_BENGALI_BANGLADESH 0x0845 # define TT_MS_LANGID_PUNJABI_INDIA 0x0446 # define TT_MS_LANGID_GUJARATI_INDIA 0x0447 # define TT_MS_LANGID_ODIA_INDIA 0x0448 # define TT_MS_LANGID_TAMIL_INDIA 0x0449 # define TT_MS_LANGID_TELUGU_INDIA 0x044A # define TT_MS_LANGID_KANNADA_INDIA 0x044B # define TT_MS_LANGID_MALAYALAM_INDIA 0x044C # define TT_MS_LANGID_ASSAMESE_INDIA 0x044D # define TT_MS_LANGID_MARATHI_INDIA 0x044E # define TT_MS_LANGID_SANSKRIT_INDIA 0x044F # define TT_MS_LANGID_MONGOLIAN_MONGOLIA /* Cyrillic */ 0x0450 # define TT_MS_LANGID_MONGOLIAN_PRC 0x0850 # define TT_MS_LANGID_TIBETAN_PRC 0x0451 # define TT_MS_LANGID_WELSH_UNITED_KINGDOM 0x0452 # define TT_MS_LANGID_KHMER_CAMBODIA 0x0453 # define TT_MS_LANGID_LAO_LAOS 0x0454 # define TT_MS_LANGID_GALICIAN_GALICIAN 0x0456 # define TT_MS_LANGID_KONKANI_INDIA 0x0457 # define TT_MS_LANGID_SYRIAC_SYRIA 0x045A # define TT_MS_LANGID_SINHALA_SRI_LANKA 0x045B # define TT_MS_LANGID_INUKTITUT_CANADA 0x045D # define TT_MS_LANGID_INUKTITUT_CANADA_LATIN 0x085D # define TT_MS_LANGID_AMHARIC_ETHIOPIA 0x045E # define TT_MS_LANGID_TAMAZIGHT_ALGERIA 0x085F # define TT_MS_LANGID_NEPALI_NEPAL 0x0461 # define TT_MS_LANGID_FRISIAN_NETHERLANDS 0x0462 # define TT_MS_LANGID_PASHTO_AFGHANISTAN 0x0463 # define TT_MS_LANGID_FILIPINO_PHILIPPINES 0x0464 # define TT_MS_LANGID_DHIVEHI_MALDIVES 0x0465 # define TT_MS_LANGID_HAUSA_NIGERIA 0x0468 # define TT_MS_LANGID_YORUBA_NIGERIA 0x046A # define TT_MS_LANGID_QUECHUA_BOLIVIA 0x046B # define TT_MS_LANGID_QUECHUA_ECUADOR 0x086B # define TT_MS_LANGID_QUECHUA_PERU 0x0C6B # define TT_MS_LANGID_SESOTHO_SA_LEBOA_SOUTH_AFRICA 0x046C # define TT_MS_LANGID_BASHKIR_RUSSIA 0x046D # define TT_MS_LANGID_LUXEMBOURGISH_LUXEMBOURG 0x046E # define TT_MS_LANGID_GREENLANDIC_GREENLAND 0x046F # define TT_MS_LANGID_IGBO_NIGERIA 0x0470 # define TT_MS_LANGID_YI_PRC 0x0478 # define TT_MS_LANGID_MAPUDUNGUN_CHILE 0x047A # define TT_MS_LANGID_MOHAWK_MOHAWK 0x047C # define TT_MS_LANGID_BRETON_FRANCE 0x047E # define TT_MS_LANGID_UIGHUR_PRC 0x0480 # define TT_MS_LANGID_MAORI_NEW_ZEALAND 0x0481 # define TT_MS_LANGID_OCCITAN_FRANCE 0x0482 # define TT_MS_LANGID_CORSICAN_FRANCE 0x0483 # define TT_MS_LANGID_ALSATIAN_FRANCE 0x0484 # define TT_MS_LANGID_YAKUT_RUSSIA 0x0485 # define TT_MS_LANGID_KICHE_GUATEMALA 0x0486 # define TT_MS_LANGID_KINYARWANDA_RWANDA 0x0487 # define TT_MS_LANGID_WOLOF_SENEGAL 0x0488 # define TT_MS_LANGID_DARI_AFGHANISTAN 0x048C Possible values of the language identifier field in the name records of the SFNT \u2018name\u2019 table if the \u2018platform\u2019 identifier code is TT_PLATFORM_MICROSOFT . These values are also used as return values for function FT_Get_CMap_Language_ID . The canonical source for Microsoft's IDs is https://docs.microsoft.com/en-us/windows/desktop/Intl/language-identifier-constants-and-strings , however, we only provide macros for language identifiers present in the OpenType specification: Microsoft has abandoned the concept of LCIDs (language code identifiers), and format 1 of the \u2018name\u2019 table provides a better mechanism for languages not covered here. More legacy values not listed in the reference can be found in the FT_TRUETYPE_IDS_H header file. TT_NAME_ID_XXX \u00b6 Defined in FT_TRUETYPE_IDS_H (freetype/ttnameid.h). # define TT_NAME_ID_COPYRIGHT 0 # define TT_NAME_ID_FONT_FAMILY 1 # define TT_NAME_ID_FONT_SUBFAMILY 2 # define TT_NAME_ID_UNIQUE_ID 3 # define TT_NAME_ID_FULL_NAME 4 # define TT_NAME_ID_VERSION_STRING 5 # define TT_NAME_ID_PS_NAME 6 # define TT_NAME_ID_TRADEMARK 7 /* the following values are from the OpenType spec */ # define TT_NAME_ID_MANUFACTURER 8 # define TT_NAME_ID_DESIGNER 9 # define TT_NAME_ID_DESCRIPTION 10 # define TT_NAME_ID_VENDOR_URL 11 # define TT_NAME_ID_DESIGNER_URL 12 # define TT_NAME_ID_LICENSE 13 # define TT_NAME_ID_LICENSE_URL 14 /* number 15 is reserved */ # define TT_NAME_ID_TYPOGRAPHIC_FAMILY 16 # define TT_NAME_ID_TYPOGRAPHIC_SUBFAMILY 17 # define TT_NAME_ID_MAC_FULL_NAME 18 /* The following code is new as of 2000-01-21 */ # define TT_NAME_ID_SAMPLE_TEXT 19 /* This is new in OpenType 1.3 */ # define TT_NAME_ID_CID_FINDFONT_NAME 20 /* This is new in OpenType 1.5 */ # define TT_NAME_ID_WWS_FAMILY 21 # define TT_NAME_ID_WWS_SUBFAMILY 22 /* This is new in OpenType 1.7 */ # define TT_NAME_ID_LIGHT_BACKGROUND 23 # define TT_NAME_ID_DARK_BACKGROUND 24 /* This is new in OpenType 1.8 */ # define TT_NAME_ID_VARIATIONS_PREFIX 25 /* these two values are deprecated */ # define TT_NAME_ID_PREFERRED_FAMILY TT_NAME_ID_TYPOGRAPHIC_FAMILY # define TT_NAME_ID_PREFERRED_SUBFAMILY TT_NAME_ID_TYPOGRAPHIC_SUBFAMILY Possible values of the \u2018name\u2019 identifier field in the name records of an SFNT \u2018name\u2019 table. These values are platform independent. TT_UCR_XXX \u00b6 Defined in FT_TRUETYPE_IDS_H (freetype/ttnameid.h). /* ulUnicodeRange1 */ /* --------------- */ /* Bit 0 Basic Latin */ # define TT_UCR_BASIC_LATIN (1L << 0) /* U+0020-U+007E */ /* Bit 1 C1 Controls and Latin-1 Supplement */ # define TT_UCR_LATIN1_SUPPLEMENT (1L << 1) /* U+0080-U+00FF */ /* Bit 2 Latin Extended-A */ # define TT_UCR_LATIN_EXTENDED_A (1L << 2) /* U+0100-U+017F */ /* Bit 3 Latin Extended-B */ # define TT_UCR_LATIN_EXTENDED_B (1L << 3) /* U+0180-U+024F */ /* Bit 4 IPA Extensions */ /* Phonetic Extensions */ /* Phonetic Extensions Supplement */ # define TT_UCR_IPA_EXTENSIONS (1L << 4) /* U+0250-U+02AF */ /* U+1D00-U+1D7F */ /* U+1D80-U+1DBF */ /* Bit 5 Spacing Modifier Letters */ /* Modifier Tone Letters */ # define TT_UCR_SPACING_MODIFIER (1L << 5) /* U+02B0-U+02FF */ /* U+A700-U+A71F */ /* Bit 6 Combining Diacritical Marks */ /* Combining Diacritical Marks Supplement */ # define TT_UCR_COMBINING_DIACRITICAL_MARKS (1L << 6) /* U+0300-U+036F */ /* U+1DC0-U+1DFF */ /* Bit 7 Greek and Coptic */ # define TT_UCR_GREEK (1L << 7) /* U+0370-U+03FF */ /* Bit 8 Coptic */ # define TT_UCR_COPTIC (1L << 8) /* U+2C80-U+2CFF */ /* Bit 9 Cyrillic */ /* Cyrillic Supplement */ /* Cyrillic Extended-A */ /* Cyrillic Extended-B */ # define TT_UCR_CYRILLIC (1L << 9) /* U+0400-U+04FF */ /* U+0500-U+052F */ /* U+2DE0-U+2DFF */ /* U+A640-U+A69F */ /* Bit 10 Armenian */ # define TT_UCR_ARMENIAN (1L << 10) /* U+0530-U+058F */ /* Bit 11 Hebrew */ # define TT_UCR_HEBREW (1L << 11) /* U+0590-U+05FF */ /* Bit 12 Vai */ # define TT_UCR_VAI (1L << 12) /* U+A500-U+A63F */ /* Bit 13 Arabic */ /* Arabic Supplement */ # define TT_UCR_ARABIC (1L << 13) /* U+0600-U+06FF */ /* U+0750-U+077F */ /* Bit 14 NKo */ # define TT_UCR_NKO (1L << 14) /* U+07C0-U+07FF */ /* Bit 15 Devanagari */ # define TT_UCR_DEVANAGARI (1L << 15) /* U+0900-U+097F */ /* Bit 16 Bengali */ # define TT_UCR_BENGALI (1L << 16) /* U+0980-U+09FF */ /* Bit 17 Gurmukhi */ # define TT_UCR_GURMUKHI (1L << 17) /* U+0A00-U+0A7F */ /* Bit 18 Gujarati */ # define TT_UCR_GUJARATI (1L << 18) /* U+0A80-U+0AFF */ /* Bit 19 Oriya */ # define TT_UCR_ORIYA (1L << 19) /* U+0B00-U+0B7F */ /* Bit 20 Tamil */ # define TT_UCR_TAMIL (1L << 20) /* U+0B80-U+0BFF */ /* Bit 21 Telugu */ # define TT_UCR_TELUGU (1L << 21) /* U+0C00-U+0C7F */ /* Bit 22 Kannada */ # define TT_UCR_KANNADA (1L << 22) /* U+0C80-U+0CFF */ /* Bit 23 Malayalam */ # define TT_UCR_MALAYALAM (1L << 23) /* U+0D00-U+0D7F */ /* Bit 24 Thai */ # define TT_UCR_THAI (1L << 24) /* U+0E00-U+0E7F */ /* Bit 25 Lao */ # define TT_UCR_LAO (1L << 25) /* U+0E80-U+0EFF */ /* Bit 26 Georgian */ /* Georgian Supplement */ # define TT_UCR_GEORGIAN (1L << 26) /* U+10A0-U+10FF */ /* U+2D00-U+2D2F */ /* Bit 27 Balinese */ # define TT_UCR_BALINESE (1L << 27) /* U+1B00-U+1B7F */ /* Bit 28 Hangul Jamo */ # define TT_UCR_HANGUL_JAMO (1L << 28) /* U+1100-U+11FF */ /* Bit 29 Latin Extended Additional */ /* Latin Extended-C */ /* Latin Extended-D */ # define TT_UCR_LATIN_EXTENDED_ADDITIONAL (1L << 29) /* U+1E00-U+1EFF */ /* U+2C60-U+2C7F */ /* U+A720-U+A7FF */ /* Bit 30 Greek Extended */ # define TT_UCR_GREEK_EXTENDED (1L << 30) /* U+1F00-U+1FFF */ /* Bit 31 General Punctuation */ /* Supplemental Punctuation */ # define TT_UCR_GENERAL_PUNCTUATION (1L << 31) /* U+2000-U+206F */ /* U+2E00-U+2E7F */ /* ulUnicodeRange2 */ /* --------------- */ /* Bit 32 Superscripts And Subscripts */ # define TT_UCR_SUPERSCRIPTS_SUBSCRIPTS (1L << 0) /* U+2070-U+209F */ /* Bit 33 Currency Symbols */ # define TT_UCR_CURRENCY_SYMBOLS (1L << 1) /* U+20A0-U+20CF */ /* Bit 34 Combining Diacritical Marks For Symbols */ # define TT_UCR_COMBINING_DIACRITICAL_MARKS_SYMB \\ (1L << 2) /* U+20D0-U+20FF */ /* Bit 35 Letterlike Symbols */ # define TT_UCR_LETTERLIKE_SYMBOLS (1L << 3) /* U+2100-U+214F */ /* Bit 36 Number Forms */ # define TT_UCR_NUMBER_FORMS (1L << 4) /* U+2150-U+218F */ /* Bit 37 Arrows */ /* Supplemental Arrows-A */ /* Supplemental Arrows-B */ /* Miscellaneous Symbols and Arrows */ # define TT_UCR_ARROWS (1L << 5) /* U+2190-U+21FF */ /* U+27F0-U+27FF */ /* U+2900-U+297F */ /* U+2B00-U+2BFF */ /* Bit 38 Mathematical Operators */ /* Supplemental Mathematical Operators */ /* Miscellaneous Mathematical Symbols-A */ /* Miscellaneous Mathematical Symbols-B */ # define TT_UCR_MATHEMATICAL_OPERATORS (1L << 6) /* U+2200-U+22FF */ /* U+2A00-U+2AFF */ /* U+27C0-U+27EF */ /* U+2980-U+29FF */ /* Bit 39 Miscellaneous Technical */ # define TT_UCR_MISCELLANEOUS_TECHNICAL (1L << 7) /* U+2300-U+23FF */ /* Bit 40 Control Pictures */ # define TT_UCR_CONTROL_PICTURES (1L << 8) /* U+2400-U+243F */ /* Bit 41 Optical Character Recognition */ # define TT_UCR_OCR (1L << 9) /* U+2440-U+245F */ /* Bit 42 Enclosed Alphanumerics */ # define TT_UCR_ENCLOSED_ALPHANUMERICS (1L << 10) /* U+2460-U+24FF */ /* Bit 43 Box Drawing */ # define TT_UCR_BOX_DRAWING (1L << 11) /* U+2500-U+257F */ /* Bit 44 Block Elements */ # define TT_UCR_BLOCK_ELEMENTS (1L << 12) /* U+2580-U+259F */ /* Bit 45 Geometric Shapes */ # define TT_UCR_GEOMETRIC_SHAPES (1L << 13) /* U+25A0-U+25FF */ /* Bit 46 Miscellaneous Symbols */ # define TT_UCR_MISCELLANEOUS_SYMBOLS (1L << 14) /* U+2600-U+26FF */ /* Bit 47 Dingbats */ # define TT_UCR_DINGBATS (1L << 15) /* U+2700-U+27BF */ /* Bit 48 CJK Symbols and Punctuation */ # define TT_UCR_CJK_SYMBOLS (1L << 16) /* U+3000-U+303F */ /* Bit 49 Hiragana */ # define TT_UCR_HIRAGANA (1L << 17) /* U+3040-U+309F */ /* Bit 50 Katakana */ /* Katakana Phonetic Extensions */ # define TT_UCR_KATAKANA (1L << 18) /* U+30A0-U+30FF */ /* U+31F0-U+31FF */ /* Bit 51 Bopomofo */ /* Bopomofo Extended */ # define TT_UCR_BOPOMOFO (1L << 19) /* U+3100-U+312F */ /* U+31A0-U+31BF */ /* Bit 52 Hangul Compatibility Jamo */ # define TT_UCR_HANGUL_COMPATIBILITY_JAMO (1L << 20) /* U+3130-U+318F */ /* Bit 53 Phags-Pa */ # define TT_UCR_CJK_MISC (1L << 21) /* U+A840-U+A87F */ # define TT_UCR_KANBUN TT_UCR_CJK_MISC /* deprecated */ # define TT_UCR_PHAGSPA /* Bit 54 Enclosed CJK Letters and Months */ # define TT_UCR_ENCLOSED_CJK_LETTERS_MONTHS (1L << 22) /* U+3200-U+32FF */ /* Bit 55 CJK Compatibility */ # define TT_UCR_CJK_COMPATIBILITY (1L << 23) /* U+3300-U+33FF */ /* Bit 56 Hangul Syllables */ # define TT_UCR_HANGUL (1L << 24) /* U+AC00-U+D7A3 */ /* Bit 57 High Surrogates */ /* High Private Use Surrogates */ /* Low Surrogates */ /* According to OpenType specs v.1.3+, */ /* setting bit 57 implies that there is */ /* at least one codepoint beyond the */ /* Basic Multilingual Plane that is */ /* supported by this font. So it really */ /* means >= U+10000. */ # define TT_UCR_SURROGATES (1L << 25) /* U+D800-U+DB7F */ /* U+DB80-U+DBFF */ /* U+DC00-U+DFFF */ # define TT_UCR_NON_PLANE_0 TT_UCR_SURROGATES /* Bit 58 Phoenician */ # define TT_UCR_PHOENICIAN (1L << 26) /*U+10900-U+1091F*/ /* Bit 59 CJK Unified Ideographs */ /* CJK Radicals Supplement */ /* Kangxi Radicals */ /* Ideographic Description Characters */ /* CJK Unified Ideographs Extension A */ /* CJK Unified Ideographs Extension B */ /* Kanbun */ # define TT_UCR_CJK_UNIFIED_IDEOGRAPHS (1L << 27) /* U+4E00-U+9FFF */ /* U+2E80-U+2EFF */ /* U+2F00-U+2FDF */ /* U+2FF0-U+2FFF */ /* U+3400-U+4DB5 */ /*U+20000-U+2A6DF*/ /* U+3190-U+319F */ /* Bit 60 Private Use */ # define TT_UCR_PRIVATE_USE (1L << 28) /* U+E000-U+F8FF */ /* Bit 61 CJK Strokes */ /* CJK Compatibility Ideographs */ /* CJK Compatibility Ideographs Supplement */ # define TT_UCR_CJK_COMPATIBILITY_IDEOGRAPHS (1L << 29) /* U+31C0-U+31EF */ /* U+F900-U+FAFF */ /*U+2F800-U+2FA1F*/ /* Bit 62 Alphabetic Presentation Forms */ # define TT_UCR_ALPHABETIC_PRESENTATION_FORMS (1L << 30) /* U+FB00-U+FB4F */ /* Bit 63 Arabic Presentation Forms-A */ # define TT_UCR_ARABIC_PRESENTATION_FORMS_A (1L << 31) /* U+FB50-U+FDFF */ /* ulUnicodeRange3 */ /* --------------- */ /* Bit 64 Combining Half Marks */ # define TT_UCR_COMBINING_HALF_MARKS (1L << 0) /* U+FE20-U+FE2F */ /* Bit 65 Vertical forms */ /* CJK Compatibility Forms */ # define TT_UCR_CJK_COMPATIBILITY_FORMS (1L << 1) /* U+FE10-U+FE1F */ /* U+FE30-U+FE4F */ /* Bit 66 Small Form Variants */ # define TT_UCR_SMALL_FORM_VARIANTS (1L << 2) /* U+FE50-U+FE6F */ /* Bit 67 Arabic Presentation Forms-B */ # define TT_UCR_ARABIC_PRESENTATION_FORMS_B (1L << 3) /* U+FE70-U+FEFE */ /* Bit 68 Halfwidth and Fullwidth Forms */ # define TT_UCR_HALFWIDTH_FULLWIDTH_FORMS (1L << 4) /* U+FF00-U+FFEF */ /* Bit 69 Specials */ # define TT_UCR_SPECIALS (1L << 5) /* U+FFF0-U+FFFD */ /* Bit 70 Tibetan */ # define TT_UCR_TIBETAN (1L << 6) /* U+0F00-U+0FFF */ /* Bit 71 Syriac */ # define TT_UCR_SYRIAC (1L << 7) /* U+0700-U+074F */ /* Bit 72 Thaana */ # define TT_UCR_THAANA (1L << 8) /* U+0780-U+07BF */ /* Bit 73 Sinhala */ # define TT_UCR_SINHALA (1L << 9) /* U+0D80-U+0DFF */ /* Bit 74 Myanmar */ # define TT_UCR_MYANMAR (1L << 10) /* U+1000-U+109F */ /* Bit 75 Ethiopic */ /* Ethiopic Supplement */ /* Ethiopic Extended */ # define TT_UCR_ETHIOPIC (1L << 11) /* U+1200-U+137F */ /* U+1380-U+139F */ /* U+2D80-U+2DDF */ /* Bit 76 Cherokee */ # define TT_UCR_CHEROKEE (1L << 12) /* U+13A0-U+13FF */ /* Bit 77 Unified Canadian Aboriginal Syllabics */ # define TT_UCR_CANADIAN_ABORIGINAL_SYLLABICS (1L << 13) /* U+1400-U+167F */ /* Bit 78 Ogham */ # define TT_UCR_OGHAM (1L << 14) /* U+1680-U+169F */ /* Bit 79 Runic */ # define TT_UCR_RUNIC (1L << 15) /* U+16A0-U+16FF */ /* Bit 80 Khmer */ /* Khmer Symbols */ # define TT_UCR_KHMER (1L << 16) /* U+1780-U+17FF */ /* U+19E0-U+19FF */ /* Bit 81 Mongolian */ # define TT_UCR_MONGOLIAN (1L << 17) /* U+1800-U+18AF */ /* Bit 82 Braille Patterns */ # define TT_UCR_BRAILLE (1L << 18) /* U+2800-U+28FF */ /* Bit 83 Yi Syllables */ /* Yi Radicals */ # define TT_UCR_YI (1L << 19) /* U+A000-U+A48F */ /* U+A490-U+A4CF */ /* Bit 84 Tagalog */ /* Hanunoo */ /* Buhid */ /* Tagbanwa */ # define TT_UCR_PHILIPPINE (1L << 20) /* U+1700-U+171F */ /* U+1720-U+173F */ /* U+1740-U+175F */ /* U+1760-U+177F */ /* Bit 85 Old Italic */ # define TT_UCR_OLD_ITALIC (1L << 21) /*U+10300-U+1032F*/ /* Bit 86 Gothic */ # define TT_UCR_GOTHIC (1L << 22) /*U+10330-U+1034F*/ /* Bit 87 Deseret */ # define TT_UCR_DESERET (1L << 23) /*U+10400-U+1044F*/ /* Bit 88 Byzantine Musical Symbols */ /* Musical Symbols */ /* Ancient Greek Musical Notation */ # define TT_UCR_MUSICAL_SYMBOLS (1L << 24) /*U+1D000-U+1D0FF*/ /*U+1D100-U+1D1FF*/ /*U+1D200-U+1D24F*/ /* Bit 89 Mathematical Alphanumeric Symbols */ # define TT_UCR_MATH_ALPHANUMERIC_SYMBOLS (1L << 25) /*U+1D400-U+1D7FF*/ /* Bit 90 Private Use (plane 15) */ /* Private Use (plane 16) */ # define TT_UCR_PRIVATE_USE_SUPPLEMENTARY (1L << 26) /*U+F0000-U+FFFFD*/ /*U+100000-U+10FFFD*/ /* Bit 91 Variation Selectors */ /* Variation Selectors Supplement */ # define TT_UCR_VARIATION_SELECTORS (1L << 27) /* U+FE00-U+FE0F */ /*U+E0100-U+E01EF*/ /* Bit 92 Tags */ # define TT_UCR_TAGS (1L << 28) /*U+E0000-U+E007F*/ /* Bit 93 Limbu */ # define TT_UCR_LIMBU (1L << 29) /* U+1900-U+194F */ /* Bit 94 Tai Le */ # define TT_UCR_TAI_LE (1L << 30) /* U+1950-U+197F */ /* Bit 95 New Tai Lue */ # define TT_UCR_NEW_TAI_LUE (1L << 31) /* U+1980-U+19DF */ /* ulUnicodeRange4 */ /* --------------- */ /* Bit 96 Buginese */ # define TT_UCR_BUGINESE (1L << 0) /* U+1A00-U+1A1F */ /* Bit 97 Glagolitic */ # define TT_UCR_GLAGOLITIC (1L << 1) /* U+2C00-U+2C5F */ /* Bit 98 Tifinagh */ # define TT_UCR_TIFINAGH (1L << 2) /* U+2D30-U+2D7F */ /* Bit 99 Yijing Hexagram Symbols */ # define TT_UCR_YIJING (1L << 3) /* U+4DC0-U+4DFF */ /* Bit 100 Syloti Nagri */ # define TT_UCR_SYLOTI_NAGRI (1L << 4) /* U+A800-U+A82F */ /* Bit 101 Linear B Syllabary */ /* Linear B Ideograms */ /* Aegean Numbers */ # define TT_UCR_LINEAR_B (1L << 5) /*U+10000-U+1007F*/ /*U+10080-U+100FF*/ /*U+10100-U+1013F*/ /* Bit 102 Ancient Greek Numbers */ # define TT_UCR_ANCIENT_GREEK_NUMBERS (1L << 6) /*U+10140-U+1018F*/ /* Bit 103 Ugaritic */ # define TT_UCR_UGARITIC (1L << 7) /*U+10380-U+1039F*/ /* Bit 104 Old Persian */ # define TT_UCR_OLD_PERSIAN (1L << 8) /*U+103A0-U+103DF*/ /* Bit 105 Shavian */ # define TT_UCR_SHAVIAN (1L << 9) /*U+10450-U+1047F*/ /* Bit 106 Osmanya */ # define TT_UCR_OSMANYA (1L << 10) /*U+10480-U+104AF*/ /* Bit 107 Cypriot Syllabary */ # define TT_UCR_CYPRIOT_SYLLABARY (1L << 11) /*U+10800-U+1083F*/ /* Bit 108 Kharoshthi */ # define TT_UCR_KHAROSHTHI (1L << 12) /*U+10A00-U+10A5F*/ /* Bit 109 Tai Xuan Jing Symbols */ # define TT_UCR_TAI_XUAN_JING (1L << 13) /*U+1D300-U+1D35F*/ /* Bit 110 Cuneiform */ /* Cuneiform Numbers and Punctuation */ # define TT_UCR_CUNEIFORM (1L << 14) /*U+12000-U+123FF*/ /*U+12400-U+1247F*/ /* Bit 111 Counting Rod Numerals */ # define TT_UCR_COUNTING_ROD_NUMERALS (1L << 15) /*U+1D360-U+1D37F*/ /* Bit 112 Sundanese */ # define TT_UCR_SUNDANESE (1L << 16) /* U+1B80-U+1BBF */ /* Bit 113 Lepcha */ # define TT_UCR_LEPCHA (1L << 17) /* U+1C00-U+1C4F */ /* Bit 114 Ol Chiki */ # define TT_UCR_OL_CHIKI (1L << 18) /* U+1C50-U+1C7F */ /* Bit 115 Saurashtra */ # define TT_UCR_SAURASHTRA (1L << 19) /* U+A880-U+A8DF */ /* Bit 116 Kayah Li */ # define TT_UCR_KAYAH_LI (1L << 20) /* U+A900-U+A92F */ /* Bit 117 Rejang */ # define TT_UCR_REJANG (1L << 21) /* U+A930-U+A95F */ /* Bit 118 Cham */ # define TT_UCR_CHAM (1L << 22) /* U+AA00-U+AA5F */ /* Bit 119 Ancient Symbols */ # define TT_UCR_ANCIENT_SYMBOLS (1L << 23) /*U+10190-U+101CF*/ /* Bit 120 Phaistos Disc */ # define TT_UCR_PHAISTOS_DISC (1L << 24) /*U+101D0-U+101FF*/ /* Bit 121 Carian */ /* Lycian */ /* Lydian */ # define TT_UCR_OLD_ANATOLIAN (1L << 25) /*U+102A0-U+102DF*/ /*U+10280-U+1029F*/ /*U+10920-U+1093F*/ /* Bit 122 Domino Tiles */ /* Mahjong Tiles */ # define TT_UCR_GAME_TILES (1L << 26) /*U+1F030-U+1F09F*/ /*U+1F000-U+1F02F*/ /* Bit 123-127 Reserved for process-internal usage */ Possible bit mask values for the ulUnicodeRangeX fields in an SFNT \u2018OS/2\u2019 table.","title":"TrueType Tables"},{"location":"ft2-truetype_tables.html#truetype-tables","text":"","title":"TrueType Tables"},{"location":"ft2-truetype_tables.html#synopsis","text":"This section contains definitions of some basic tables specific to TrueType and OpenType as well as some routines used to access and process them.","title":"Synopsis"},{"location":"ft2-truetype_tables.html#tt_header","text":"Defined in FT_TRUETYPE_TABLES_H (freetype/tttables.h). typedef struct TT_Header_ { FT_Fixed Table_Version; FT_Fixed Font_Revision; FT_Long CheckSum_Adjust; FT_Long Magic_Number; FT_UShort Flags; FT_UShort Units_Per_EM; FT_ULong Created [2]; FT_ULong Modified[2]; FT_Short xMin; FT_Short yMin; FT_Short xMax; FT_Short yMax; FT_UShort Mac_Style; FT_UShort Lowest_Rec_PPEM; FT_Short Font_Direction; FT_Short Index_To_Loc_Format; FT_Short Glyph_Data_Format; } TT_Header ; A structure to model a TrueType font header table. All fields follow the OpenType specification. The 64-bit timestamps are stored in two-element arrays Created and Modified , first the upper then the lower 32 bits.","title":"TT_Header"},{"location":"ft2-truetype_tables.html#tt_horiheader","text":"Defined in FT_TRUETYPE_TABLES_H (freetype/tttables.h). typedef struct TT_HoriHeader_ { FT_Fixed Version; FT_Short Ascender; FT_Short Descender; FT_Short Line_Gap; FT_UShort advance_Width_Max; /* advance width maximum */ FT_Short min_Left_Side_Bearing; /* minimum left-sb */ FT_Short min_Right_Side_Bearing; /* minimum right-sb */ FT_Short xMax_Extent; /* xmax extents */ FT_Short caret_Slope_Rise; FT_Short caret_Slope_Run; FT_Short caret_Offset; FT_Short Reserved[4]; FT_Short metric_Data_Format; FT_UShort number_Of_HMetrics; /* The following fields are not defined by the OpenType specification */ /* but they are used to connect the metrics header to the relevant */ /* 'hmtx' table. */ void * long_metrics; void * short_metrics; } TT_HoriHeader ; A structure to model a TrueType horizontal header, the \u2018hhea\u2019 table, as well as the corresponding horizontal metrics table, \u2018hmtx\u2019.","title":"TT_HoriHeader"},{"location":"ft2-truetype_tables.html#tt_vertheader","text":"Defined in FT_TRUETYPE_TABLES_H (freetype/tttables.h). typedef struct TT_VertHeader_ { FT_Fixed Version; FT_Short Ascender; FT_Short Descender; FT_Short Line_Gap; FT_UShort advance_Height_Max; /* advance height maximum */ FT_Short min_Top_Side_Bearing; /* minimum top-sb */ FT_Short min_Bottom_Side_Bearing; /* minimum bottom-sb */ FT_Short yMax_Extent; /* ymax extents */ FT_Short caret_Slope_Rise; FT_Short caret_Slope_Run; FT_Short caret_Offset; FT_Short Reserved[4]; FT_Short metric_Data_Format; FT_UShort number_Of_VMetrics; /* The following fields are not defined by the OpenType specification */ /* but they are used to connect the metrics header to the relevant */ /* 'vmtx' table. */ void * long_metrics; void * short_metrics; } TT_VertHeader ; A structure used to model a TrueType vertical header, the \u2018vhea\u2019 table, as well as the corresponding vertical metrics table, \u2018vmtx\u2019.","title":"TT_VertHeader"},{"location":"ft2-truetype_tables.html#tt_os2","text":"Defined in FT_TRUETYPE_TABLES_H (freetype/tttables.h). typedef struct TT_OS2_ { FT_UShort version; /* 0x0001 - more or 0xFFFF */ FT_Short xAvgCharWidth; FT_UShort usWeightClass; FT_UShort usWidthClass; FT_UShort fsType; FT_Short ySubscriptXSize; FT_Short ySubscriptYSize; FT_Short ySubscriptXOffset; FT_Short ySubscriptYOffset; FT_Short ySuperscriptXSize; FT_Short ySuperscriptYSize; FT_Short ySuperscriptXOffset; FT_Short ySuperscriptYOffset; FT_Short yStrikeoutSize; FT_Short yStrikeoutPosition; FT_Short sFamilyClass; FT_Byte panose[10]; FT_ULong ulUnicodeRange1; /* Bits 0-31 */ FT_ULong ulUnicodeRange2; /* Bits 32-63 */ FT_ULong ulUnicodeRange3; /* Bits 64-95 */ FT_ULong ulUnicodeRange4; /* Bits 96-127 */ FT_Char achVendID[4]; FT_UShort fsSelection; FT_UShort usFirstCharIndex; FT_UShort usLastCharIndex; FT_Short sTypoAscender; FT_Short sTypoDescender; FT_Short sTypoLineGap; FT_UShort usWinAscent; FT_UShort usWinDescent; /* only version 1 and higher: */ FT_ULong ulCodePageRange1; /* Bits 0-31 */ FT_ULong ulCodePageRange2; /* Bits 32-63 */ /* only version 2 and higher: */ FT_Short sxHeight; FT_Short sCapHeight; FT_UShort usDefaultChar; FT_UShort usBreakChar; FT_UShort usMaxContext; /* only version 5 and higher: */ FT_UShort usLowerOpticalPointSize; /* in twips (1/20th points) */ FT_UShort usUpperOpticalPointSize; /* in twips (1/20th points) */ } TT_OS2 ; A structure to model a TrueType \u2018OS/2\u2019 table. All fields comply to the OpenType specification. Note that we now support old Mac fonts that do not include an \u2018OS/2\u2019 table. In this case, the version field is always set to 0xFFFF.","title":"TT_OS2"},{"location":"ft2-truetype_tables.html#tt_postscript","text":"Defined in FT_TRUETYPE_TABLES_H (freetype/tttables.h). typedef struct TT_Postscript_ { FT_Fixed FormatType; FT_Fixed italicAngle; FT_Short underlinePosition; FT_Short underlineThickness; FT_ULong isFixedPitch; FT_ULong minMemType42; FT_ULong maxMemType42; FT_ULong minMemType1; FT_ULong maxMemType1; /* Glyph names follow in the 'post' table, but we don't */ /* load them by default. */ } TT_Postscript ; A structure to model a TrueType \u2018post\u2019 table. All fields comply to the OpenType specification. This structure does not reference a font's PostScript glyph names; use FT_Get_Glyph_Name to retrieve them.","title":"TT_Postscript"},{"location":"ft2-truetype_tables.html#tt_pclt","text":"Defined in FT_TRUETYPE_TABLES_H (freetype/tttables.h). typedef struct TT_PCLT_ { FT_Fixed Version; FT_ULong FontNumber; FT_UShort Pitch; FT_UShort xHeight; FT_UShort Style; FT_UShort TypeFamily; FT_UShort CapHeight; FT_UShort SymbolSet; FT_Char TypeFace[16]; FT_Char CharacterComplement[8]; FT_Char FileName[6]; FT_Char StrokeWeight; FT_Char WidthType; FT_Byte SerifStyle; FT_Byte Reserved; } TT_PCLT ; A structure to model a TrueType \u2018PCLT\u2019 table. All fields comply to the OpenType specification.","title":"TT_PCLT"},{"location":"ft2-truetype_tables.html#tt_maxprofile","text":"Defined in FT_TRUETYPE_TABLES_H (freetype/tttables.h). typedef struct TT_MaxProfile_ { FT_Fixed version; FT_UShort numGlyphs; FT_UShort maxPoints; FT_UShort maxContours; FT_UShort maxCompositePoints; FT_UShort maxCompositeContours; FT_UShort maxZones; FT_UShort maxTwilightPoints; FT_UShort maxStorage; FT_UShort maxFunctionDefs; FT_UShort maxInstructionDefs; FT_UShort maxStackElements; FT_UShort maxSizeOfInstructions; FT_UShort maxComponentElements; FT_UShort maxComponentDepth; } TT_MaxProfile ; The maximum profile (\u2018maxp\u2019) table contains many max values, which can be used to pre-allocate arrays for speeding up glyph loading and hinting.","title":"TT_MaxProfile"},{"location":"ft2-truetype_tables.html#ft_sfnt_tag","text":"Defined in FT_TRUETYPE_TABLES_H (freetype/tttables.h). typedef enum FT_Sfnt_Tag_ { FT_SFNT_HEAD , FT_SFNT_MAXP , FT_SFNT_OS2 , FT_SFNT_HHEA , FT_SFNT_VHEA , FT_SFNT_POST , FT_SFNT_PCLT , FT_SFNT_MAX } FT_Sfnt_Tag ; /* these constants are deprecated; use the corresponding ` FT_Sfnt_Tag ` */ /* values instead */ # define ft_sfnt_head FT_SFNT_HEAD # define ft_sfnt_maxp FT_SFNT_MAXP # define ft_sfnt_os2 FT_SFNT_OS2 # define ft_sfnt_hhea FT_SFNT_HHEA # define ft_sfnt_vhea FT_SFNT_VHEA # define ft_sfnt_post FT_SFNT_POST # define ft_sfnt_pclt FT_SFNT_PCLT An enumeration to specify indices of SFNT tables loaded and parsed by FreeType during initialization of an SFNT font. Used in the FT_Get_Sfnt_Table API function.","title":"FT_Sfnt_Tag"},{"location":"ft2-truetype_tables.html#ft_get_sfnt_table","text":"Defined in FT_TRUETYPE_TABLES_H (freetype/tttables.h). FT_EXPORT( void * ) FT_Get_Sfnt_Table ( FT_Face face, FT_Sfnt_Tag tag ); Return a pointer to a given SFNT table stored within a face.","title":"FT_Get_Sfnt_Table"},{"location":"ft2-truetype_tables.html#ft_load_sfnt_table","text":"Defined in FT_TRUETYPE_TABLES_H (freetype/tttables.h). FT_EXPORT( FT_Error ) FT_Load_Sfnt_Table ( FT_Face face, FT_ULong tag, FT_Long offset, FT_Byte * buffer, FT_ULong * length ); Load any SFNT font table into client memory.","title":"FT_Load_Sfnt_Table"},{"location":"ft2-truetype_tables.html#ft_sfnt_table_info","text":"Defined in FT_TRUETYPE_TABLES_H (freetype/tttables.h). FT_EXPORT( FT_Error ) FT_Sfnt_Table_Info ( FT_Face face, FT_UInt table_index, FT_ULong *tag, FT_ULong *length ); Return information on an SFNT table.","title":"FT_Sfnt_Table_Info"},{"location":"ft2-truetype_tables.html#ft_get_cmap_language_id","text":"Defined in FT_TRUETYPE_TABLES_H (freetype/tttables.h). FT_EXPORT( FT_ULong ) FT_Get_CMap_Language_ID ( FT_CharMap charmap ); Return cmap language ID as specified in the OpenType standard. Definitions of language ID values are in file FT_TRUETYPE_IDS_H .","title":"FT_Get_CMap_Language_ID"},{"location":"ft2-truetype_tables.html#ft_get_cmap_format","text":"Defined in FT_TRUETYPE_TABLES_H (freetype/tttables.h). FT_EXPORT( FT_Long ) FT_Get_CMap_Format ( FT_CharMap charmap ); Return the format of an SFNT \u2018cmap\u2019 table.","title":"FT_Get_CMap_Format"},{"location":"ft2-truetype_tables.html#ft_param_tag_unpatented_hinting","text":"# define FT_PARAM_TAG_UNPATENTED_HINTING \\ FT_MAKE_TAG ( 'u', 'n', 'p', 'a' ) Deprecated, no effect. Previously: A constant used as the tag of an FT_Parameter structure to indicate that unpatented methods only should be used by the TrueType bytecode interpreter for a typeface opened by FT_Open_Face .","title":"FT_PARAM_TAG_UNPATENTED_HINTING"},{"location":"ft2-truetype_tables.html#tt_platform_xxx","text":"Defined in FT_TRUETYPE_IDS_H (freetype/ttnameid.h). # define TT_PLATFORM_APPLE_UNICODE 0 # define TT_PLATFORM_MACINTOSH 1 # define TT_PLATFORM_ISO 2 /* deprecated */ # define TT_PLATFORM_MICROSOFT 3 # define TT_PLATFORM_CUSTOM 4 # define TT_PLATFORM_ADOBE 7 /* artificial */ A list of valid values for the platform_id identifier code in FT_CharMapRec and FT_SfntName structures.","title":"TT_PLATFORM_XXX"},{"location":"ft2-truetype_tables.html#tt_apple_id_xxx","text":"Defined in FT_TRUETYPE_IDS_H (freetype/ttnameid.h). # define TT_APPLE_ID_DEFAULT 0 /* Unicode 1.0 */ # define TT_APPLE_ID_UNICODE_1_1 1 /* specify Hangul at U+34xx */ # define TT_APPLE_ID_ISO_10646 2 /* deprecated */ # define TT_APPLE_ID_UNICODE_2_0 3 /* or later */ # define TT_APPLE_ID_UNICODE_32 4 /* 2.0 or later, full repertoire */ # define TT_APPLE_ID_VARIANT_SELECTOR 5 /* variation selector data */ # define TT_APPLE_ID_FULL_UNICODE 6 /* used with type 13 cmaps */ A list of valid values for the encoding_id for TT_PLATFORM_APPLE_UNICODE charmaps and name entries.","title":"TT_APPLE_ID_XXX"},{"location":"ft2-truetype_tables.html#tt_mac_id_xxx","text":"Defined in FT_TRUETYPE_IDS_H (freetype/ttnameid.h). # define TT_MAC_ID_ROMAN 0 # define TT_MAC_ID_JAPANESE 1 # define TT_MAC_ID_TRADITIONAL_CHINESE 2 # define TT_MAC_ID_KOREAN 3 # define TT_MAC_ID_ARABIC 4 # define TT_MAC_ID_HEBREW 5 # define TT_MAC_ID_GREEK 6 # define TT_MAC_ID_RUSSIAN 7 # define TT_MAC_ID_RSYMBOL 8 # define TT_MAC_ID_DEVANAGARI 9 # define TT_MAC_ID_GURMUKHI 10 # define TT_MAC_ID_GUJARATI 11 # define TT_MAC_ID_ORIYA 12 # define TT_MAC_ID_BENGALI 13 # define TT_MAC_ID_TAMIL 14 # define TT_MAC_ID_TELUGU 15 # define TT_MAC_ID_KANNADA 16 # define TT_MAC_ID_MALAYALAM 17 # define TT_MAC_ID_SINHALESE 18 # define TT_MAC_ID_BURMESE 19 # define TT_MAC_ID_KHMER 20 # define TT_MAC_ID_THAI 21 # define TT_MAC_ID_LAOTIAN 22 # define TT_MAC_ID_GEORGIAN 23 # define TT_MAC_ID_ARMENIAN 24 # define TT_MAC_ID_MALDIVIAN 25 # define TT_MAC_ID_SIMPLIFIED_CHINESE 25 # define TT_MAC_ID_TIBETAN 26 # define TT_MAC_ID_MONGOLIAN 27 # define TT_MAC_ID_GEEZ 28 # define TT_MAC_ID_SLAVIC 29 # define TT_MAC_ID_VIETNAMESE 30 # define TT_MAC_ID_SINDHI 31 # define TT_MAC_ID_UNINTERP 32 A list of valid values for the encoding_id for TT_PLATFORM_MACINTOSH charmaps and name entries.","title":"TT_MAC_ID_XXX"},{"location":"ft2-truetype_tables.html#tt_iso_id_xxx","text":"Defined in FT_TRUETYPE_IDS_H (freetype/ttnameid.h). # define TT_ISO_ID_7BIT_ASCII 0 # define TT_ISO_ID_10646 1 # define TT_ISO_ID_8859_1 2 A list of valid values for the encoding_id for TT_PLATFORM_ISO charmaps and name entries. Their use is now deprecated.","title":"TT_ISO_ID_XXX"},{"location":"ft2-truetype_tables.html#tt_ms_id_xxx","text":"Defined in FT_TRUETYPE_IDS_H (freetype/ttnameid.h). # define TT_MS_ID_SYMBOL_CS 0 # define TT_MS_ID_UNICODE_CS 1 # define TT_MS_ID_SJIS 2 # define TT_MS_ID_PRC 3 # define TT_MS_ID_BIG_5 4 # define TT_MS_ID_WANSUNG 5 # define TT_MS_ID_JOHAB 6 # define TT_MS_ID_UCS_4 10 /* this value is deprecated */ # define TT_MS_ID_GB2312 TT_MS_ID_PRC A list of valid values for the encoding_id for TT_PLATFORM_MICROSOFT charmaps and name entries.","title":"TT_MS_ID_XXX"},{"location":"ft2-truetype_tables.html#tt_adobe_id_xxx","text":"Defined in FT_TRUETYPE_IDS_H (freetype/ttnameid.h). # define TT_ADOBE_ID_STANDARD 0 # define TT_ADOBE_ID_EXPERT 1 # define TT_ADOBE_ID_CUSTOM 2 # define TT_ADOBE_ID_LATIN_1 3 A list of valid values for the encoding_id for TT_PLATFORM_ADOBE charmaps. This is a FreeType-specific extension!","title":"TT_ADOBE_ID_XXX"},{"location":"ft2-truetype_tables.html#tt_mac_langid_xxx","text":"Defined in FT_TRUETYPE_IDS_H (freetype/ttnameid.h). # define TT_MAC_LANGID_ENGLISH 0 # define TT_MAC_LANGID_FRENCH 1 # define TT_MAC_LANGID_GERMAN 2 # define TT_MAC_LANGID_ITALIAN 3 # define TT_MAC_LANGID_DUTCH 4 # define TT_MAC_LANGID_SWEDISH 5 # define TT_MAC_LANGID_SPANISH 6 # define TT_MAC_LANGID_DANISH 7 # define TT_MAC_LANGID_PORTUGUESE 8 # define TT_MAC_LANGID_NORWEGIAN 9 # define TT_MAC_LANGID_HEBREW 10 # define TT_MAC_LANGID_JAPANESE 11 # define TT_MAC_LANGID_ARABIC 12 # define TT_MAC_LANGID_FINNISH 13 # define TT_MAC_LANGID_GREEK 14 # define TT_MAC_LANGID_ICELANDIC 15 # define TT_MAC_LANGID_MALTESE 16 # define TT_MAC_LANGID_TURKISH 17 # define TT_MAC_LANGID_CROATIAN 18 # define TT_MAC_LANGID_CHINESE_TRADITIONAL 19 # define TT_MAC_LANGID_URDU 20 # define TT_MAC_LANGID_HINDI 21 # define TT_MAC_LANGID_THAI 22 # define TT_MAC_LANGID_KOREAN 23 # define TT_MAC_LANGID_LITHUANIAN 24 # define TT_MAC_LANGID_POLISH 25 # define TT_MAC_LANGID_HUNGARIAN 26 # define TT_MAC_LANGID_ESTONIAN 27 # define TT_MAC_LANGID_LETTISH 28 # define TT_MAC_LANGID_SAAMISK 29 # define TT_MAC_LANGID_FAEROESE 30 # define TT_MAC_LANGID_FARSI 31 # define TT_MAC_LANGID_RUSSIAN 32 # define TT_MAC_LANGID_CHINESE_SIMPLIFIED 33 # define TT_MAC_LANGID_FLEMISH 34 # define TT_MAC_LANGID_IRISH 35 # define TT_MAC_LANGID_ALBANIAN 36 # define TT_MAC_LANGID_ROMANIAN 37 # define TT_MAC_LANGID_CZECH 38 # define TT_MAC_LANGID_SLOVAK 39 # define TT_MAC_LANGID_SLOVENIAN 40 # define TT_MAC_LANGID_YIDDISH 41 # define TT_MAC_LANGID_SERBIAN 42 # define TT_MAC_LANGID_MACEDONIAN 43 # define TT_MAC_LANGID_BULGARIAN 44 # define TT_MAC_LANGID_UKRAINIAN 45 # define TT_MAC_LANGID_BYELORUSSIAN 46 # define TT_MAC_LANGID_UZBEK 47 # define TT_MAC_LANGID_KAZAKH 48 # define TT_MAC_LANGID_AZERBAIJANI 49 # define TT_MAC_LANGID_AZERBAIJANI_CYRILLIC_SCRIPT 49 # define TT_MAC_LANGID_AZERBAIJANI_ARABIC_SCRIPT 50 # define TT_MAC_LANGID_ARMENIAN 51 # define TT_MAC_LANGID_GEORGIAN 52 # define TT_MAC_LANGID_MOLDAVIAN 53 # define TT_MAC_LANGID_KIRGHIZ 54 # define TT_MAC_LANGID_TAJIKI 55 # define TT_MAC_LANGID_TURKMEN 56 # define TT_MAC_LANGID_MONGOLIAN 57 # define TT_MAC_LANGID_MONGOLIAN_MONGOLIAN_SCRIPT 57 # define TT_MAC_LANGID_MONGOLIAN_CYRILLIC_SCRIPT 58 # define TT_MAC_LANGID_PASHTO 59 # define TT_MAC_LANGID_KURDISH 60 # define TT_MAC_LANGID_KASHMIRI 61 # define TT_MAC_LANGID_SINDHI 62 # define TT_MAC_LANGID_TIBETAN 63 # define TT_MAC_LANGID_NEPALI 64 # define TT_MAC_LANGID_SANSKRIT 65 # define TT_MAC_LANGID_MARATHI 66 # define TT_MAC_LANGID_BENGALI 67 # define TT_MAC_LANGID_ASSAMESE 68 # define TT_MAC_LANGID_GUJARATI 69 # define TT_MAC_LANGID_PUNJABI 70 # define TT_MAC_LANGID_ORIYA 71 # define TT_MAC_LANGID_MALAYALAM 72 # define TT_MAC_LANGID_KANNADA 73 # define TT_MAC_LANGID_TAMIL 74 # define TT_MAC_LANGID_TELUGU 75 # define TT_MAC_LANGID_SINHALESE 76 # define TT_MAC_LANGID_BURMESE 77 # define TT_MAC_LANGID_KHMER 78 # define TT_MAC_LANGID_LAO 79 # define TT_MAC_LANGID_VIETNAMESE 80 # define TT_MAC_LANGID_INDONESIAN 81 # define TT_MAC_LANGID_TAGALOG 82 # define TT_MAC_LANGID_MALAY_ROMAN_SCRIPT 83 # define TT_MAC_LANGID_MALAY_ARABIC_SCRIPT 84 # define TT_MAC_LANGID_AMHARIC 85 # define TT_MAC_LANGID_TIGRINYA 86 # define TT_MAC_LANGID_GALLA 87 # define TT_MAC_LANGID_SOMALI 88 # define TT_MAC_LANGID_SWAHILI 89 # define TT_MAC_LANGID_RUANDA 90 # define TT_MAC_LANGID_RUNDI 91 # define TT_MAC_LANGID_CHEWA 92 # define TT_MAC_LANGID_MALAGASY 93 # define TT_MAC_LANGID_ESPERANTO 94 # define TT_MAC_LANGID_WELSH 128 # define TT_MAC_LANGID_BASQUE 129 # define TT_MAC_LANGID_CATALAN 130 # define TT_MAC_LANGID_LATIN 131 # define TT_MAC_LANGID_QUECHUA 132 # define TT_MAC_LANGID_GUARANI 133 # define TT_MAC_LANGID_AYMARA 134 # define TT_MAC_LANGID_TATAR 135 # define TT_MAC_LANGID_UIGHUR 136 # define TT_MAC_LANGID_DZONGKHA 137 # define TT_MAC_LANGID_JAVANESE 138 # define TT_MAC_LANGID_SUNDANESE 139 /* The following codes are new as of 2000-03-10 */ # define TT_MAC_LANGID_GALICIAN 140 # define TT_MAC_LANGID_AFRIKAANS 141 # define TT_MAC_LANGID_BRETON 142 # define TT_MAC_LANGID_INUKTITUT 143 # define TT_MAC_LANGID_SCOTTISH_GAELIC 144 # define TT_MAC_LANGID_MANX_GAELIC 145 # define TT_MAC_LANGID_IRISH_GAELIC 146 # define TT_MAC_LANGID_TONGAN 147 # define TT_MAC_LANGID_GREEK_POLYTONIC 148 # define TT_MAC_LANGID_GREELANDIC 149 # define TT_MAC_LANGID_AZERBAIJANI_ROMAN_SCRIPT 150 Possible values of the language identifier field in the name records of the SFNT \u2018name\u2019 table if the \u2018platform\u2019 identifier code is TT_PLATFORM_MACINTOSH . These values are also used as return values for function FT_Get_CMap_Language_ID . The canonical source for Apple's IDs is https://developer.apple.com/fonts/TrueType-Reference-Manual/RM06/Chap6name.html","title":"TT_MAC_LANGID_XXX"},{"location":"ft2-truetype_tables.html#tt_ms_langid_xxx","text":"Defined in FT_TRUETYPE_IDS_H (freetype/ttnameid.h). # define TT_MS_LANGID_ARABIC_SAUDI_ARABIA 0x0401 # define TT_MS_LANGID_ARABIC_IRAQ 0x0801 # define TT_MS_LANGID_ARABIC_EGYPT 0x0C01 # define TT_MS_LANGID_ARABIC_LIBYA 0x1001 # define TT_MS_LANGID_ARABIC_ALGERIA 0x1401 # define TT_MS_LANGID_ARABIC_MOROCCO 0x1801 # define TT_MS_LANGID_ARABIC_TUNISIA 0x1C01 # define TT_MS_LANGID_ARABIC_OMAN 0x2001 # define TT_MS_LANGID_ARABIC_YEMEN 0x2401 # define TT_MS_LANGID_ARABIC_SYRIA 0x2801 # define TT_MS_LANGID_ARABIC_JORDAN 0x2C01 # define TT_MS_LANGID_ARABIC_LEBANON 0x3001 # define TT_MS_LANGID_ARABIC_KUWAIT 0x3401 # define TT_MS_LANGID_ARABIC_UAE 0x3801 # define TT_MS_LANGID_ARABIC_BAHRAIN 0x3C01 # define TT_MS_LANGID_ARABIC_QATAR 0x4001 # define TT_MS_LANGID_BULGARIAN_BULGARIA 0x0402 # define TT_MS_LANGID_CATALAN_CATALAN 0x0403 # define TT_MS_LANGID_CHINESE_TAIWAN 0x0404 # define TT_MS_LANGID_CHINESE_PRC 0x0804 # define TT_MS_LANGID_CHINESE_HONG_KONG 0x0C04 # define TT_MS_LANGID_CHINESE_SINGAPORE 0x1004 # define TT_MS_LANGID_CHINESE_MACAO 0x1404 # define TT_MS_LANGID_CZECH_CZECH_REPUBLIC 0x0405 # define TT_MS_LANGID_DANISH_DENMARK 0x0406 # define TT_MS_LANGID_GERMAN_GERMANY 0x0407 # define TT_MS_LANGID_GERMAN_SWITZERLAND 0x0807 # define TT_MS_LANGID_GERMAN_AUSTRIA 0x0C07 # define TT_MS_LANGID_GERMAN_LUXEMBOURG 0x1007 # define TT_MS_LANGID_GERMAN_LIECHTENSTEIN 0x1407 # define TT_MS_LANGID_GREEK_GREECE 0x0408 # define TT_MS_LANGID_ENGLISH_UNITED_STATES 0x0409 # define TT_MS_LANGID_ENGLISH_UNITED_KINGDOM 0x0809 # define TT_MS_LANGID_ENGLISH_AUSTRALIA 0x0C09 # define TT_MS_LANGID_ENGLISH_CANADA 0x1009 # define TT_MS_LANGID_ENGLISH_NEW_ZEALAND 0x1409 # define TT_MS_LANGID_ENGLISH_IRELAND 0x1809 # define TT_MS_LANGID_ENGLISH_SOUTH_AFRICA 0x1C09 # define TT_MS_LANGID_ENGLISH_JAMAICA 0x2009 # define TT_MS_LANGID_ENGLISH_CARIBBEAN 0x2409 # define TT_MS_LANGID_ENGLISH_BELIZE 0x2809 # define TT_MS_LANGID_ENGLISH_TRINIDAD 0x2C09 # define TT_MS_LANGID_ENGLISH_ZIMBABWE 0x3009 # define TT_MS_LANGID_ENGLISH_PHILIPPINES 0x3409 # define TT_MS_LANGID_ENGLISH_INDIA 0x4009 # define TT_MS_LANGID_ENGLISH_MALAYSIA 0x4409 # define TT_MS_LANGID_ENGLISH_SINGAPORE 0x4809 # define TT_MS_LANGID_SPANISH_SPAIN_TRADITIONAL_SORT 0x040A # define TT_MS_LANGID_SPANISH_MEXICO 0x080A # define TT_MS_LANGID_SPANISH_SPAIN_MODERN_SORT 0x0C0A # define TT_MS_LANGID_SPANISH_GUATEMALA 0x100A # define TT_MS_LANGID_SPANISH_COSTA_RICA 0x140A # define TT_MS_LANGID_SPANISH_PANAMA 0x180A # define TT_MS_LANGID_SPANISH_DOMINICAN_REPUBLIC 0x1C0A # define TT_MS_LANGID_SPANISH_VENEZUELA 0x200A # define TT_MS_LANGID_SPANISH_COLOMBIA 0x240A # define TT_MS_LANGID_SPANISH_PERU 0x280A # define TT_MS_LANGID_SPANISH_ARGENTINA 0x2C0A # define TT_MS_LANGID_SPANISH_ECUADOR 0x300A # define TT_MS_LANGID_SPANISH_CHILE 0x340A # define TT_MS_LANGID_SPANISH_URUGUAY 0x380A # define TT_MS_LANGID_SPANISH_PARAGUAY 0x3C0A # define TT_MS_LANGID_SPANISH_BOLIVIA 0x400A # define TT_MS_LANGID_SPANISH_EL_SALVADOR 0x440A # define TT_MS_LANGID_SPANISH_HONDURAS 0x480A # define TT_MS_LANGID_SPANISH_NICARAGUA 0x4C0A # define TT_MS_LANGID_SPANISH_PUERTO_RICO 0x500A # define TT_MS_LANGID_SPANISH_UNITED_STATES 0x540A # define TT_MS_LANGID_FINNISH_FINLAND 0x040B # define TT_MS_LANGID_FRENCH_FRANCE 0x040C # define TT_MS_LANGID_FRENCH_BELGIUM 0x080C # define TT_MS_LANGID_FRENCH_CANADA 0x0C0C # define TT_MS_LANGID_FRENCH_SWITZERLAND 0x100C # define TT_MS_LANGID_FRENCH_LUXEMBOURG 0x140C # define TT_MS_LANGID_FRENCH_MONACO 0x180C # define TT_MS_LANGID_HEBREW_ISRAEL 0x040D # define TT_MS_LANGID_HUNGARIAN_HUNGARY 0x040E # define TT_MS_LANGID_ICELANDIC_ICELAND 0x040F # define TT_MS_LANGID_ITALIAN_ITALY 0x0410 # define TT_MS_LANGID_ITALIAN_SWITZERLAND 0x0810 # define TT_MS_LANGID_JAPANESE_JAPAN 0x0411 # define TT_MS_LANGID_KOREAN_KOREA 0x0412 # define TT_MS_LANGID_DUTCH_NETHERLANDS 0x0413 # define TT_MS_LANGID_DUTCH_BELGIUM 0x0813 # define TT_MS_LANGID_NORWEGIAN_NORWAY_BOKMAL 0x0414 # define TT_MS_LANGID_NORWEGIAN_NORWAY_NYNORSK 0x0814 # define TT_MS_LANGID_POLISH_POLAND 0x0415 # define TT_MS_LANGID_PORTUGUESE_BRAZIL 0x0416 # define TT_MS_LANGID_PORTUGUESE_PORTUGAL 0x0816 # define TT_MS_LANGID_ROMANSH_SWITZERLAND 0x0417 # define TT_MS_LANGID_ROMANIAN_ROMANIA 0x0418 # define TT_MS_LANGID_RUSSIAN_RUSSIA 0x0419 # define TT_MS_LANGID_CROATIAN_CROATIA 0x041A # define TT_MS_LANGID_SERBIAN_SERBIA_LATIN 0x081A # define TT_MS_LANGID_SERBIAN_SERBIA_CYRILLIC 0x0C1A # define TT_MS_LANGID_CROATIAN_BOSNIA_HERZEGOVINA 0x101A # define TT_MS_LANGID_BOSNIAN_BOSNIA_HERZEGOVINA 0x141A # define TT_MS_LANGID_SERBIAN_BOSNIA_HERZ_LATIN 0x181A # define TT_MS_LANGID_SERBIAN_BOSNIA_HERZ_CYRILLIC 0x1C1A # define TT_MS_LANGID_BOSNIAN_BOSNIA_HERZ_CYRILLIC 0x201A # define TT_MS_LANGID_SLOVAK_SLOVAKIA 0x041B # define TT_MS_LANGID_ALBANIAN_ALBANIA 0x041C # define TT_MS_LANGID_SWEDISH_SWEDEN 0x041D # define TT_MS_LANGID_SWEDISH_FINLAND 0x081D # define TT_MS_LANGID_THAI_THAILAND 0x041E # define TT_MS_LANGID_TURKISH_TURKEY 0x041F # define TT_MS_LANGID_URDU_PAKISTAN 0x0420 # define TT_MS_LANGID_INDONESIAN_INDONESIA 0x0421 # define TT_MS_LANGID_UKRAINIAN_UKRAINE 0x0422 # define TT_MS_LANGID_BELARUSIAN_BELARUS 0x0423 # define TT_MS_LANGID_SLOVENIAN_SLOVENIA 0x0424 # define TT_MS_LANGID_ESTONIAN_ESTONIA 0x0425 # define TT_MS_LANGID_LATVIAN_LATVIA 0x0426 # define TT_MS_LANGID_LITHUANIAN_LITHUANIA 0x0427 # define TT_MS_LANGID_TAJIK_TAJIKISTAN 0x0428 # define TT_MS_LANGID_VIETNAMESE_VIET_NAM 0x042A # define TT_MS_LANGID_ARMENIAN_ARMENIA 0x042B # define TT_MS_LANGID_AZERI_AZERBAIJAN_LATIN 0x042C # define TT_MS_LANGID_AZERI_AZERBAIJAN_CYRILLIC 0x082C # define TT_MS_LANGID_BASQUE_BASQUE 0x042D # define TT_MS_LANGID_UPPER_SORBIAN_GERMANY 0x042E # define TT_MS_LANGID_LOWER_SORBIAN_GERMANY 0x082E # define TT_MS_LANGID_MACEDONIAN_MACEDONIA 0x042F # define TT_MS_LANGID_SETSWANA_SOUTH_AFRICA 0x0432 # define TT_MS_LANGID_ISIXHOSA_SOUTH_AFRICA 0x0434 # define TT_MS_LANGID_ISIZULU_SOUTH_AFRICA 0x0435 # define TT_MS_LANGID_AFRIKAANS_SOUTH_AFRICA 0x0436 # define TT_MS_LANGID_GEORGIAN_GEORGIA 0x0437 # define TT_MS_LANGID_FAEROESE_FAEROE_ISLANDS 0x0438 # define TT_MS_LANGID_HINDI_INDIA 0x0439 # define TT_MS_LANGID_MALTESE_MALTA 0x043A # define TT_MS_LANGID_SAMI_NORTHERN_NORWAY 0x043B # define TT_MS_LANGID_SAMI_NORTHERN_SWEDEN 0x083B # define TT_MS_LANGID_SAMI_NORTHERN_FINLAND 0x0C3B # define TT_MS_LANGID_SAMI_LULE_NORWAY 0x103B # define TT_MS_LANGID_SAMI_LULE_SWEDEN 0x143B # define TT_MS_LANGID_SAMI_SOUTHERN_NORWAY 0x183B # define TT_MS_LANGID_SAMI_SOUTHERN_SWEDEN 0x1C3B # define TT_MS_LANGID_SAMI_SKOLT_FINLAND 0x203B # define TT_MS_LANGID_SAMI_INARI_FINLAND 0x243B # define TT_MS_LANGID_IRISH_IRELAND 0x083C # define TT_MS_LANGID_MALAY_MALAYSIA 0x043E # define TT_MS_LANGID_MALAY_BRUNEI_DARUSSALAM 0x083E # define TT_MS_LANGID_KAZAKH_KAZAKHSTAN 0x043F # define TT_MS_LANGID_KYRGYZ_KYRGYZSTAN /* Cyrillic*/ 0x0440 # define TT_MS_LANGID_KISWAHILI_KENYA 0x0441 # define TT_MS_LANGID_TURKMEN_TURKMENISTAN 0x0442 # define TT_MS_LANGID_UZBEK_UZBEKISTAN_LATIN 0x0443 # define TT_MS_LANGID_UZBEK_UZBEKISTAN_CYRILLIC 0x0843 # define TT_MS_LANGID_TATAR_RUSSIA 0x0444 # define TT_MS_LANGID_BENGALI_INDIA 0x0445 # define TT_MS_LANGID_BENGALI_BANGLADESH 0x0845 # define TT_MS_LANGID_PUNJABI_INDIA 0x0446 # define TT_MS_LANGID_GUJARATI_INDIA 0x0447 # define TT_MS_LANGID_ODIA_INDIA 0x0448 # define TT_MS_LANGID_TAMIL_INDIA 0x0449 # define TT_MS_LANGID_TELUGU_INDIA 0x044A # define TT_MS_LANGID_KANNADA_INDIA 0x044B # define TT_MS_LANGID_MALAYALAM_INDIA 0x044C # define TT_MS_LANGID_ASSAMESE_INDIA 0x044D # define TT_MS_LANGID_MARATHI_INDIA 0x044E # define TT_MS_LANGID_SANSKRIT_INDIA 0x044F # define TT_MS_LANGID_MONGOLIAN_MONGOLIA /* Cyrillic */ 0x0450 # define TT_MS_LANGID_MONGOLIAN_PRC 0x0850 # define TT_MS_LANGID_TIBETAN_PRC 0x0451 # define TT_MS_LANGID_WELSH_UNITED_KINGDOM 0x0452 # define TT_MS_LANGID_KHMER_CAMBODIA 0x0453 # define TT_MS_LANGID_LAO_LAOS 0x0454 # define TT_MS_LANGID_GALICIAN_GALICIAN 0x0456 # define TT_MS_LANGID_KONKANI_INDIA 0x0457 # define TT_MS_LANGID_SYRIAC_SYRIA 0x045A # define TT_MS_LANGID_SINHALA_SRI_LANKA 0x045B # define TT_MS_LANGID_INUKTITUT_CANADA 0x045D # define TT_MS_LANGID_INUKTITUT_CANADA_LATIN 0x085D # define TT_MS_LANGID_AMHARIC_ETHIOPIA 0x045E # define TT_MS_LANGID_TAMAZIGHT_ALGERIA 0x085F # define TT_MS_LANGID_NEPALI_NEPAL 0x0461 # define TT_MS_LANGID_FRISIAN_NETHERLANDS 0x0462 # define TT_MS_LANGID_PASHTO_AFGHANISTAN 0x0463 # define TT_MS_LANGID_FILIPINO_PHILIPPINES 0x0464 # define TT_MS_LANGID_DHIVEHI_MALDIVES 0x0465 # define TT_MS_LANGID_HAUSA_NIGERIA 0x0468 # define TT_MS_LANGID_YORUBA_NIGERIA 0x046A # define TT_MS_LANGID_QUECHUA_BOLIVIA 0x046B # define TT_MS_LANGID_QUECHUA_ECUADOR 0x086B # define TT_MS_LANGID_QUECHUA_PERU 0x0C6B # define TT_MS_LANGID_SESOTHO_SA_LEBOA_SOUTH_AFRICA 0x046C # define TT_MS_LANGID_BASHKIR_RUSSIA 0x046D # define TT_MS_LANGID_LUXEMBOURGISH_LUXEMBOURG 0x046E # define TT_MS_LANGID_GREENLANDIC_GREENLAND 0x046F # define TT_MS_LANGID_IGBO_NIGERIA 0x0470 # define TT_MS_LANGID_YI_PRC 0x0478 # define TT_MS_LANGID_MAPUDUNGUN_CHILE 0x047A # define TT_MS_LANGID_MOHAWK_MOHAWK 0x047C # define TT_MS_LANGID_BRETON_FRANCE 0x047E # define TT_MS_LANGID_UIGHUR_PRC 0x0480 # define TT_MS_LANGID_MAORI_NEW_ZEALAND 0x0481 # define TT_MS_LANGID_OCCITAN_FRANCE 0x0482 # define TT_MS_LANGID_CORSICAN_FRANCE 0x0483 # define TT_MS_LANGID_ALSATIAN_FRANCE 0x0484 # define TT_MS_LANGID_YAKUT_RUSSIA 0x0485 # define TT_MS_LANGID_KICHE_GUATEMALA 0x0486 # define TT_MS_LANGID_KINYARWANDA_RWANDA 0x0487 # define TT_MS_LANGID_WOLOF_SENEGAL 0x0488 # define TT_MS_LANGID_DARI_AFGHANISTAN 0x048C Possible values of the language identifier field in the name records of the SFNT \u2018name\u2019 table if the \u2018platform\u2019 identifier code is TT_PLATFORM_MICROSOFT . These values are also used as return values for function FT_Get_CMap_Language_ID . The canonical source for Microsoft's IDs is https://docs.microsoft.com/en-us/windows/desktop/Intl/language-identifier-constants-and-strings , however, we only provide macros for language identifiers present in the OpenType specification: Microsoft has abandoned the concept of LCIDs (language code identifiers), and format 1 of the \u2018name\u2019 table provides a better mechanism for languages not covered here. More legacy values not listed in the reference can be found in the FT_TRUETYPE_IDS_H header file.","title":"TT_MS_LANGID_XXX"},{"location":"ft2-truetype_tables.html#tt_name_id_xxx","text":"Defined in FT_TRUETYPE_IDS_H (freetype/ttnameid.h). # define TT_NAME_ID_COPYRIGHT 0 # define TT_NAME_ID_FONT_FAMILY 1 # define TT_NAME_ID_FONT_SUBFAMILY 2 # define TT_NAME_ID_UNIQUE_ID 3 # define TT_NAME_ID_FULL_NAME 4 # define TT_NAME_ID_VERSION_STRING 5 # define TT_NAME_ID_PS_NAME 6 # define TT_NAME_ID_TRADEMARK 7 /* the following values are from the OpenType spec */ # define TT_NAME_ID_MANUFACTURER 8 # define TT_NAME_ID_DESIGNER 9 # define TT_NAME_ID_DESCRIPTION 10 # define TT_NAME_ID_VENDOR_URL 11 # define TT_NAME_ID_DESIGNER_URL 12 # define TT_NAME_ID_LICENSE 13 # define TT_NAME_ID_LICENSE_URL 14 /* number 15 is reserved */ # define TT_NAME_ID_TYPOGRAPHIC_FAMILY 16 # define TT_NAME_ID_TYPOGRAPHIC_SUBFAMILY 17 # define TT_NAME_ID_MAC_FULL_NAME 18 /* The following code is new as of 2000-01-21 */ # define TT_NAME_ID_SAMPLE_TEXT 19 /* This is new in OpenType 1.3 */ # define TT_NAME_ID_CID_FINDFONT_NAME 20 /* This is new in OpenType 1.5 */ # define TT_NAME_ID_WWS_FAMILY 21 # define TT_NAME_ID_WWS_SUBFAMILY 22 /* This is new in OpenType 1.7 */ # define TT_NAME_ID_LIGHT_BACKGROUND 23 # define TT_NAME_ID_DARK_BACKGROUND 24 /* This is new in OpenType 1.8 */ # define TT_NAME_ID_VARIATIONS_PREFIX 25 /* these two values are deprecated */ # define TT_NAME_ID_PREFERRED_FAMILY TT_NAME_ID_TYPOGRAPHIC_FAMILY # define TT_NAME_ID_PREFERRED_SUBFAMILY TT_NAME_ID_TYPOGRAPHIC_SUBFAMILY Possible values of the \u2018name\u2019 identifier field in the name records of an SFNT \u2018name\u2019 table. These values are platform independent.","title":"TT_NAME_ID_XXX"},{"location":"ft2-truetype_tables.html#tt_ucr_xxx","text":"Defined in FT_TRUETYPE_IDS_H (freetype/ttnameid.h). /* ulUnicodeRange1 */ /* --------------- */ /* Bit 0 Basic Latin */ # define TT_UCR_BASIC_LATIN (1L << 0) /* U+0020-U+007E */ /* Bit 1 C1 Controls and Latin-1 Supplement */ # define TT_UCR_LATIN1_SUPPLEMENT (1L << 1) /* U+0080-U+00FF */ /* Bit 2 Latin Extended-A */ # define TT_UCR_LATIN_EXTENDED_A (1L << 2) /* U+0100-U+017F */ /* Bit 3 Latin Extended-B */ # define TT_UCR_LATIN_EXTENDED_B (1L << 3) /* U+0180-U+024F */ /* Bit 4 IPA Extensions */ /* Phonetic Extensions */ /* Phonetic Extensions Supplement */ # define TT_UCR_IPA_EXTENSIONS (1L << 4) /* U+0250-U+02AF */ /* U+1D00-U+1D7F */ /* U+1D80-U+1DBF */ /* Bit 5 Spacing Modifier Letters */ /* Modifier Tone Letters */ # define TT_UCR_SPACING_MODIFIER (1L << 5) /* U+02B0-U+02FF */ /* U+A700-U+A71F */ /* Bit 6 Combining Diacritical Marks */ /* Combining Diacritical Marks Supplement */ # define TT_UCR_COMBINING_DIACRITICAL_MARKS (1L << 6) /* U+0300-U+036F */ /* U+1DC0-U+1DFF */ /* Bit 7 Greek and Coptic */ # define TT_UCR_GREEK (1L << 7) /* U+0370-U+03FF */ /* Bit 8 Coptic */ # define TT_UCR_COPTIC (1L << 8) /* U+2C80-U+2CFF */ /* Bit 9 Cyrillic */ /* Cyrillic Supplement */ /* Cyrillic Extended-A */ /* Cyrillic Extended-B */ # define TT_UCR_CYRILLIC (1L << 9) /* U+0400-U+04FF */ /* U+0500-U+052F */ /* U+2DE0-U+2DFF */ /* U+A640-U+A69F */ /* Bit 10 Armenian */ # define TT_UCR_ARMENIAN (1L << 10) /* U+0530-U+058F */ /* Bit 11 Hebrew */ # define TT_UCR_HEBREW (1L << 11) /* U+0590-U+05FF */ /* Bit 12 Vai */ # define TT_UCR_VAI (1L << 12) /* U+A500-U+A63F */ /* Bit 13 Arabic */ /* Arabic Supplement */ # define TT_UCR_ARABIC (1L << 13) /* U+0600-U+06FF */ /* U+0750-U+077F */ /* Bit 14 NKo */ # define TT_UCR_NKO (1L << 14) /* U+07C0-U+07FF */ /* Bit 15 Devanagari */ # define TT_UCR_DEVANAGARI (1L << 15) /* U+0900-U+097F */ /* Bit 16 Bengali */ # define TT_UCR_BENGALI (1L << 16) /* U+0980-U+09FF */ /* Bit 17 Gurmukhi */ # define TT_UCR_GURMUKHI (1L << 17) /* U+0A00-U+0A7F */ /* Bit 18 Gujarati */ # define TT_UCR_GUJARATI (1L << 18) /* U+0A80-U+0AFF */ /* Bit 19 Oriya */ # define TT_UCR_ORIYA (1L << 19) /* U+0B00-U+0B7F */ /* Bit 20 Tamil */ # define TT_UCR_TAMIL (1L << 20) /* U+0B80-U+0BFF */ /* Bit 21 Telugu */ # define TT_UCR_TELUGU (1L << 21) /* U+0C00-U+0C7F */ /* Bit 22 Kannada */ # define TT_UCR_KANNADA (1L << 22) /* U+0C80-U+0CFF */ /* Bit 23 Malayalam */ # define TT_UCR_MALAYALAM (1L << 23) /* U+0D00-U+0D7F */ /* Bit 24 Thai */ # define TT_UCR_THAI (1L << 24) /* U+0E00-U+0E7F */ /* Bit 25 Lao */ # define TT_UCR_LAO (1L << 25) /* U+0E80-U+0EFF */ /* Bit 26 Georgian */ /* Georgian Supplement */ # define TT_UCR_GEORGIAN (1L << 26) /* U+10A0-U+10FF */ /* U+2D00-U+2D2F */ /* Bit 27 Balinese */ # define TT_UCR_BALINESE (1L << 27) /* U+1B00-U+1B7F */ /* Bit 28 Hangul Jamo */ # define TT_UCR_HANGUL_JAMO (1L << 28) /* U+1100-U+11FF */ /* Bit 29 Latin Extended Additional */ /* Latin Extended-C */ /* Latin Extended-D */ # define TT_UCR_LATIN_EXTENDED_ADDITIONAL (1L << 29) /* U+1E00-U+1EFF */ /* U+2C60-U+2C7F */ /* U+A720-U+A7FF */ /* Bit 30 Greek Extended */ # define TT_UCR_GREEK_EXTENDED (1L << 30) /* U+1F00-U+1FFF */ /* Bit 31 General Punctuation */ /* Supplemental Punctuation */ # define TT_UCR_GENERAL_PUNCTUATION (1L << 31) /* U+2000-U+206F */ /* U+2E00-U+2E7F */ /* ulUnicodeRange2 */ /* --------------- */ /* Bit 32 Superscripts And Subscripts */ # define TT_UCR_SUPERSCRIPTS_SUBSCRIPTS (1L << 0) /* U+2070-U+209F */ /* Bit 33 Currency Symbols */ # define TT_UCR_CURRENCY_SYMBOLS (1L << 1) /* U+20A0-U+20CF */ /* Bit 34 Combining Diacritical Marks For Symbols */ # define TT_UCR_COMBINING_DIACRITICAL_MARKS_SYMB \\ (1L << 2) /* U+20D0-U+20FF */ /* Bit 35 Letterlike Symbols */ # define TT_UCR_LETTERLIKE_SYMBOLS (1L << 3) /* U+2100-U+214F */ /* Bit 36 Number Forms */ # define TT_UCR_NUMBER_FORMS (1L << 4) /* U+2150-U+218F */ /* Bit 37 Arrows */ /* Supplemental Arrows-A */ /* Supplemental Arrows-B */ /* Miscellaneous Symbols and Arrows */ # define TT_UCR_ARROWS (1L << 5) /* U+2190-U+21FF */ /* U+27F0-U+27FF */ /* U+2900-U+297F */ /* U+2B00-U+2BFF */ /* Bit 38 Mathematical Operators */ /* Supplemental Mathematical Operators */ /* Miscellaneous Mathematical Symbols-A */ /* Miscellaneous Mathematical Symbols-B */ # define TT_UCR_MATHEMATICAL_OPERATORS (1L << 6) /* U+2200-U+22FF */ /* U+2A00-U+2AFF */ /* U+27C0-U+27EF */ /* U+2980-U+29FF */ /* Bit 39 Miscellaneous Technical */ # define TT_UCR_MISCELLANEOUS_TECHNICAL (1L << 7) /* U+2300-U+23FF */ /* Bit 40 Control Pictures */ # define TT_UCR_CONTROL_PICTURES (1L << 8) /* U+2400-U+243F */ /* Bit 41 Optical Character Recognition */ # define TT_UCR_OCR (1L << 9) /* U+2440-U+245F */ /* Bit 42 Enclosed Alphanumerics */ # define TT_UCR_ENCLOSED_ALPHANUMERICS (1L << 10) /* U+2460-U+24FF */ /* Bit 43 Box Drawing */ # define TT_UCR_BOX_DRAWING (1L << 11) /* U+2500-U+257F */ /* Bit 44 Block Elements */ # define TT_UCR_BLOCK_ELEMENTS (1L << 12) /* U+2580-U+259F */ /* Bit 45 Geometric Shapes */ # define TT_UCR_GEOMETRIC_SHAPES (1L << 13) /* U+25A0-U+25FF */ /* Bit 46 Miscellaneous Symbols */ # define TT_UCR_MISCELLANEOUS_SYMBOLS (1L << 14) /* U+2600-U+26FF */ /* Bit 47 Dingbats */ # define TT_UCR_DINGBATS (1L << 15) /* U+2700-U+27BF */ /* Bit 48 CJK Symbols and Punctuation */ # define TT_UCR_CJK_SYMBOLS (1L << 16) /* U+3000-U+303F */ /* Bit 49 Hiragana */ # define TT_UCR_HIRAGANA (1L << 17) /* U+3040-U+309F */ /* Bit 50 Katakana */ /* Katakana Phonetic Extensions */ # define TT_UCR_KATAKANA (1L << 18) /* U+30A0-U+30FF */ /* U+31F0-U+31FF */ /* Bit 51 Bopomofo */ /* Bopomofo Extended */ # define TT_UCR_BOPOMOFO (1L << 19) /* U+3100-U+312F */ /* U+31A0-U+31BF */ /* Bit 52 Hangul Compatibility Jamo */ # define TT_UCR_HANGUL_COMPATIBILITY_JAMO (1L << 20) /* U+3130-U+318F */ /* Bit 53 Phags-Pa */ # define TT_UCR_CJK_MISC (1L << 21) /* U+A840-U+A87F */ # define TT_UCR_KANBUN TT_UCR_CJK_MISC /* deprecated */ # define TT_UCR_PHAGSPA /* Bit 54 Enclosed CJK Letters and Months */ # define TT_UCR_ENCLOSED_CJK_LETTERS_MONTHS (1L << 22) /* U+3200-U+32FF */ /* Bit 55 CJK Compatibility */ # define TT_UCR_CJK_COMPATIBILITY (1L << 23) /* U+3300-U+33FF */ /* Bit 56 Hangul Syllables */ # define TT_UCR_HANGUL (1L << 24) /* U+AC00-U+D7A3 */ /* Bit 57 High Surrogates */ /* High Private Use Surrogates */ /* Low Surrogates */ /* According to OpenType specs v.1.3+, */ /* setting bit 57 implies that there is */ /* at least one codepoint beyond the */ /* Basic Multilingual Plane that is */ /* supported by this font. So it really */ /* means >= U+10000. */ # define TT_UCR_SURROGATES (1L << 25) /* U+D800-U+DB7F */ /* U+DB80-U+DBFF */ /* U+DC00-U+DFFF */ # define TT_UCR_NON_PLANE_0 TT_UCR_SURROGATES /* Bit 58 Phoenician */ # define TT_UCR_PHOENICIAN (1L << 26) /*U+10900-U+1091F*/ /* Bit 59 CJK Unified Ideographs */ /* CJK Radicals Supplement */ /* Kangxi Radicals */ /* Ideographic Description Characters */ /* CJK Unified Ideographs Extension A */ /* CJK Unified Ideographs Extension B */ /* Kanbun */ # define TT_UCR_CJK_UNIFIED_IDEOGRAPHS (1L << 27) /* U+4E00-U+9FFF */ /* U+2E80-U+2EFF */ /* U+2F00-U+2FDF */ /* U+2FF0-U+2FFF */ /* U+3400-U+4DB5 */ /*U+20000-U+2A6DF*/ /* U+3190-U+319F */ /* Bit 60 Private Use */ # define TT_UCR_PRIVATE_USE (1L << 28) /* U+E000-U+F8FF */ /* Bit 61 CJK Strokes */ /* CJK Compatibility Ideographs */ /* CJK Compatibility Ideographs Supplement */ # define TT_UCR_CJK_COMPATIBILITY_IDEOGRAPHS (1L << 29) /* U+31C0-U+31EF */ /* U+F900-U+FAFF */ /*U+2F800-U+2FA1F*/ /* Bit 62 Alphabetic Presentation Forms */ # define TT_UCR_ALPHABETIC_PRESENTATION_FORMS (1L << 30) /* U+FB00-U+FB4F */ /* Bit 63 Arabic Presentation Forms-A */ # define TT_UCR_ARABIC_PRESENTATION_FORMS_A (1L << 31) /* U+FB50-U+FDFF */ /* ulUnicodeRange3 */ /* --------------- */ /* Bit 64 Combining Half Marks */ # define TT_UCR_COMBINING_HALF_MARKS (1L << 0) /* U+FE20-U+FE2F */ /* Bit 65 Vertical forms */ /* CJK Compatibility Forms */ # define TT_UCR_CJK_COMPATIBILITY_FORMS (1L << 1) /* U+FE10-U+FE1F */ /* U+FE30-U+FE4F */ /* Bit 66 Small Form Variants */ # define TT_UCR_SMALL_FORM_VARIANTS (1L << 2) /* U+FE50-U+FE6F */ /* Bit 67 Arabic Presentation Forms-B */ # define TT_UCR_ARABIC_PRESENTATION_FORMS_B (1L << 3) /* U+FE70-U+FEFE */ /* Bit 68 Halfwidth and Fullwidth Forms */ # define TT_UCR_HALFWIDTH_FULLWIDTH_FORMS (1L << 4) /* U+FF00-U+FFEF */ /* Bit 69 Specials */ # define TT_UCR_SPECIALS (1L << 5) /* U+FFF0-U+FFFD */ /* Bit 70 Tibetan */ # define TT_UCR_TIBETAN (1L << 6) /* U+0F00-U+0FFF */ /* Bit 71 Syriac */ # define TT_UCR_SYRIAC (1L << 7) /* U+0700-U+074F */ /* Bit 72 Thaana */ # define TT_UCR_THAANA (1L << 8) /* U+0780-U+07BF */ /* Bit 73 Sinhala */ # define TT_UCR_SINHALA (1L << 9) /* U+0D80-U+0DFF */ /* Bit 74 Myanmar */ # define TT_UCR_MYANMAR (1L << 10) /* U+1000-U+109F */ /* Bit 75 Ethiopic */ /* Ethiopic Supplement */ /* Ethiopic Extended */ # define TT_UCR_ETHIOPIC (1L << 11) /* U+1200-U+137F */ /* U+1380-U+139F */ /* U+2D80-U+2DDF */ /* Bit 76 Cherokee */ # define TT_UCR_CHEROKEE (1L << 12) /* U+13A0-U+13FF */ /* Bit 77 Unified Canadian Aboriginal Syllabics */ # define TT_UCR_CANADIAN_ABORIGINAL_SYLLABICS (1L << 13) /* U+1400-U+167F */ /* Bit 78 Ogham */ # define TT_UCR_OGHAM (1L << 14) /* U+1680-U+169F */ /* Bit 79 Runic */ # define TT_UCR_RUNIC (1L << 15) /* U+16A0-U+16FF */ /* Bit 80 Khmer */ /* Khmer Symbols */ # define TT_UCR_KHMER (1L << 16) /* U+1780-U+17FF */ /* U+19E0-U+19FF */ /* Bit 81 Mongolian */ # define TT_UCR_MONGOLIAN (1L << 17) /* U+1800-U+18AF */ /* Bit 82 Braille Patterns */ # define TT_UCR_BRAILLE (1L << 18) /* U+2800-U+28FF */ /* Bit 83 Yi Syllables */ /* Yi Radicals */ # define TT_UCR_YI (1L << 19) /* U+A000-U+A48F */ /* U+A490-U+A4CF */ /* Bit 84 Tagalog */ /* Hanunoo */ /* Buhid */ /* Tagbanwa */ # define TT_UCR_PHILIPPINE (1L << 20) /* U+1700-U+171F */ /* U+1720-U+173F */ /* U+1740-U+175F */ /* U+1760-U+177F */ /* Bit 85 Old Italic */ # define TT_UCR_OLD_ITALIC (1L << 21) /*U+10300-U+1032F*/ /* Bit 86 Gothic */ # define TT_UCR_GOTHIC (1L << 22) /*U+10330-U+1034F*/ /* Bit 87 Deseret */ # define TT_UCR_DESERET (1L << 23) /*U+10400-U+1044F*/ /* Bit 88 Byzantine Musical Symbols */ /* Musical Symbols */ /* Ancient Greek Musical Notation */ # define TT_UCR_MUSICAL_SYMBOLS (1L << 24) /*U+1D000-U+1D0FF*/ /*U+1D100-U+1D1FF*/ /*U+1D200-U+1D24F*/ /* Bit 89 Mathematical Alphanumeric Symbols */ # define TT_UCR_MATH_ALPHANUMERIC_SYMBOLS (1L << 25) /*U+1D400-U+1D7FF*/ /* Bit 90 Private Use (plane 15) */ /* Private Use (plane 16) */ # define TT_UCR_PRIVATE_USE_SUPPLEMENTARY (1L << 26) /*U+F0000-U+FFFFD*/ /*U+100000-U+10FFFD*/ /* Bit 91 Variation Selectors */ /* Variation Selectors Supplement */ # define TT_UCR_VARIATION_SELECTORS (1L << 27) /* U+FE00-U+FE0F */ /*U+E0100-U+E01EF*/ /* Bit 92 Tags */ # define TT_UCR_TAGS (1L << 28) /*U+E0000-U+E007F*/ /* Bit 93 Limbu */ # define TT_UCR_LIMBU (1L << 29) /* U+1900-U+194F */ /* Bit 94 Tai Le */ # define TT_UCR_TAI_LE (1L << 30) /* U+1950-U+197F */ /* Bit 95 New Tai Lue */ # define TT_UCR_NEW_TAI_LUE (1L << 31) /* U+1980-U+19DF */ /* ulUnicodeRange4 */ /* --------------- */ /* Bit 96 Buginese */ # define TT_UCR_BUGINESE (1L << 0) /* U+1A00-U+1A1F */ /* Bit 97 Glagolitic */ # define TT_UCR_GLAGOLITIC (1L << 1) /* U+2C00-U+2C5F */ /* Bit 98 Tifinagh */ # define TT_UCR_TIFINAGH (1L << 2) /* U+2D30-U+2D7F */ /* Bit 99 Yijing Hexagram Symbols */ # define TT_UCR_YIJING (1L << 3) /* U+4DC0-U+4DFF */ /* Bit 100 Syloti Nagri */ # define TT_UCR_SYLOTI_NAGRI (1L << 4) /* U+A800-U+A82F */ /* Bit 101 Linear B Syllabary */ /* Linear B Ideograms */ /* Aegean Numbers */ # define TT_UCR_LINEAR_B (1L << 5) /*U+10000-U+1007F*/ /*U+10080-U+100FF*/ /*U+10100-U+1013F*/ /* Bit 102 Ancient Greek Numbers */ # define TT_UCR_ANCIENT_GREEK_NUMBERS (1L << 6) /*U+10140-U+1018F*/ /* Bit 103 Ugaritic */ # define TT_UCR_UGARITIC (1L << 7) /*U+10380-U+1039F*/ /* Bit 104 Old Persian */ # define TT_UCR_OLD_PERSIAN (1L << 8) /*U+103A0-U+103DF*/ /* Bit 105 Shavian */ # define TT_UCR_SHAVIAN (1L << 9) /*U+10450-U+1047F*/ /* Bit 106 Osmanya */ # define TT_UCR_OSMANYA (1L << 10) /*U+10480-U+104AF*/ /* Bit 107 Cypriot Syllabary */ # define TT_UCR_CYPRIOT_SYLLABARY (1L << 11) /*U+10800-U+1083F*/ /* Bit 108 Kharoshthi */ # define TT_UCR_KHAROSHTHI (1L << 12) /*U+10A00-U+10A5F*/ /* Bit 109 Tai Xuan Jing Symbols */ # define TT_UCR_TAI_XUAN_JING (1L << 13) /*U+1D300-U+1D35F*/ /* Bit 110 Cuneiform */ /* Cuneiform Numbers and Punctuation */ # define TT_UCR_CUNEIFORM (1L << 14) /*U+12000-U+123FF*/ /*U+12400-U+1247F*/ /* Bit 111 Counting Rod Numerals */ # define TT_UCR_COUNTING_ROD_NUMERALS (1L << 15) /*U+1D360-U+1D37F*/ /* Bit 112 Sundanese */ # define TT_UCR_SUNDANESE (1L << 16) /* U+1B80-U+1BBF */ /* Bit 113 Lepcha */ # define TT_UCR_LEPCHA (1L << 17) /* U+1C00-U+1C4F */ /* Bit 114 Ol Chiki */ # define TT_UCR_OL_CHIKI (1L << 18) /* U+1C50-U+1C7F */ /* Bit 115 Saurashtra */ # define TT_UCR_SAURASHTRA (1L << 19) /* U+A880-U+A8DF */ /* Bit 116 Kayah Li */ # define TT_UCR_KAYAH_LI (1L << 20) /* U+A900-U+A92F */ /* Bit 117 Rejang */ # define TT_UCR_REJANG (1L << 21) /* U+A930-U+A95F */ /* Bit 118 Cham */ # define TT_UCR_CHAM (1L << 22) /* U+AA00-U+AA5F */ /* Bit 119 Ancient Symbols */ # define TT_UCR_ANCIENT_SYMBOLS (1L << 23) /*U+10190-U+101CF*/ /* Bit 120 Phaistos Disc */ # define TT_UCR_PHAISTOS_DISC (1L << 24) /*U+101D0-U+101FF*/ /* Bit 121 Carian */ /* Lycian */ /* Lydian */ # define TT_UCR_OLD_ANATOLIAN (1L << 25) /*U+102A0-U+102DF*/ /*U+10280-U+1029F*/ /*U+10920-U+1093F*/ /* Bit 122 Domino Tiles */ /* Mahjong Tiles */ # define TT_UCR_GAME_TILES (1L << 26) /*U+1F030-U+1F09F*/ /*U+1F000-U+1F02F*/ /* Bit 123-127 Reserved for process-internal usage */ Possible bit mask values for the ulUnicodeRangeX fields in an SFNT \u2018OS/2\u2019 table.","title":"TT_UCR_XXX"},{"location":"ft2-tt_driver.html","text":"FreeType \u00bb Docs \u00bb Controlling FreeType Modules \u00bb The TrueType driver The TrueType driver \u00b6 Synopsis \u00b6 While FreeType's TrueType driver doesn't expose API functions by itself, it is possible to control its behaviour with FT_Property_Set and FT_Property_Get . The following lists the available properties together with the necessary macros and structures. The TrueType driver's module name is \u2018truetype\u2019. A single property interpreter-version is available, as documented in the \u2018 Driver properties \u2019 section. We start with a list of definitions, kindly provided by Greg Hitchcock. Bi-Level Rendering Monochromatic rendering, exclusively used in the early days of TrueType by both Apple and Microsoft. Microsoft's GDI interface supported hinting of the right-side bearing point, such that the advance width could be non-linear. Most often this was done to achieve some level of glyph symmetry. To enable reasonable performance (e.g., not having to run hinting on all glyphs just to get the widths) there was a bit in the head table indicating if the side bearing was hinted, and additional tables, \u2018hdmx\u2019 and \u2018LTSH\u2019, to cache hinting widths across multiple sizes and device aspect ratios. Font Smoothing Microsoft's GDI implementation of anti-aliasing. Not traditional anti-aliasing as the outlines were hinted before the sampling. The widths matched the bi-level rendering. ClearType Rendering Technique that uses physical subpixels to improve rendering on LCD (and other) displays. Because of the higher resolution, many methods of improving symmetry in glyphs through hinting the right-side bearing were no longer necessary. This lead to what GDI calls \u2018natural widths\u2019 ClearType, see http://rastertragedy.com/RTRCh4.htm#Sec21 . Since hinting has extra resolution, most non-linearity went away, but it is still possible for hints to change the advance widths in this mode. ClearType Compatible Widths One of the earliest challenges with ClearType was allowing the implementation in GDI to be selected without requiring all UI and documents to reflow. To address this, a compatible method of rendering ClearType was added where the font hints are executed once to determine the width in bi-level rendering, and then re-run in ClearType, with the difference in widths being absorbed in the font hints for ClearType (mostly in the white space of hints); see http://rastertragedy.com/RTRCh4.htm#Sec20 . Somewhat by definition, compatible width ClearType allows for non-linear widths, but only when the bi-level version has non-linear widths. ClearType Subpixel Positioning One of the nice benefits of ClearType is the ability to more crisply display fractional widths; unfortunately, the GDI model of integer bitmaps did not support this. However, the WPF and Direct Write frameworks do support fractional widths. DWrite calls this \u2018natural mode\u2019, not to be confused with GDI's \u2018natural widths\u2019. Subpixel positioning, in the current implementation of Direct Write, unfortunately does not support hinted advance widths, see http://rastertragedy.com/RTRCh4.htm#Sec22 . Note that the TrueType interpreter fully allows the advance width to be adjusted in this mode, just the DWrite client will ignore those changes. ClearType Backward Compatibility This is a set of exceptions made in the TrueType interpreter to minimize hinting techniques that were problematic with the extra resolution of ClearType; see http://rastertragedy.com/RTRCh4.htm#Sec1 and https://www.microsoft.com/typography/cleartype/truetypecleartype.aspx . This technique is not to be confused with ClearType compatible widths. ClearType backward compatibility has no direct impact on changing advance widths, but there might be an indirect impact on disabling some deltas. This could be worked around in backward compatibility mode. Native ClearType Mode (Not to be confused with \u2018natural widths\u2019.) This mode removes all the exceptions in the TrueType interpreter when running with ClearType. Any issues on widths would still apply, though.","title":"The TrueType driver"},{"location":"ft2-tt_driver.html#the-truetype-driver","text":"","title":"The TrueType driver"},{"location":"ft2-tt_driver.html#synopsis","text":"While FreeType's TrueType driver doesn't expose API functions by itself, it is possible to control its behaviour with FT_Property_Set and FT_Property_Get . The following lists the available properties together with the necessary macros and structures. The TrueType driver's module name is \u2018truetype\u2019. A single property interpreter-version is available, as documented in the \u2018 Driver properties \u2019 section. We start with a list of definitions, kindly provided by Greg Hitchcock. Bi-Level Rendering Monochromatic rendering, exclusively used in the early days of TrueType by both Apple and Microsoft. Microsoft's GDI interface supported hinting of the right-side bearing point, such that the advance width could be non-linear. Most often this was done to achieve some level of glyph symmetry. To enable reasonable performance (e.g., not having to run hinting on all glyphs just to get the widths) there was a bit in the head table indicating if the side bearing was hinted, and additional tables, \u2018hdmx\u2019 and \u2018LTSH\u2019, to cache hinting widths across multiple sizes and device aspect ratios. Font Smoothing Microsoft's GDI implementation of anti-aliasing. Not traditional anti-aliasing as the outlines were hinted before the sampling. The widths matched the bi-level rendering. ClearType Rendering Technique that uses physical subpixels to improve rendering on LCD (and other) displays. Because of the higher resolution, many methods of improving symmetry in glyphs through hinting the right-side bearing were no longer necessary. This lead to what GDI calls \u2018natural widths\u2019 ClearType, see http://rastertragedy.com/RTRCh4.htm#Sec21 . Since hinting has extra resolution, most non-linearity went away, but it is still possible for hints to change the advance widths in this mode. ClearType Compatible Widths One of the earliest challenges with ClearType was allowing the implementation in GDI to be selected without requiring all UI and documents to reflow. To address this, a compatible method of rendering ClearType was added where the font hints are executed once to determine the width in bi-level rendering, and then re-run in ClearType, with the difference in widths being absorbed in the font hints for ClearType (mostly in the white space of hints); see http://rastertragedy.com/RTRCh4.htm#Sec20 . Somewhat by definition, compatible width ClearType allows for non-linear widths, but only when the bi-level version has non-linear widths. ClearType Subpixel Positioning One of the nice benefits of ClearType is the ability to more crisply display fractional widths; unfortunately, the GDI model of integer bitmaps did not support this. However, the WPF and Direct Write frameworks do support fractional widths. DWrite calls this \u2018natural mode\u2019, not to be confused with GDI's \u2018natural widths\u2019. Subpixel positioning, in the current implementation of Direct Write, unfortunately does not support hinted advance widths, see http://rastertragedy.com/RTRCh4.htm#Sec22 . Note that the TrueType interpreter fully allows the advance width to be adjusted in this mode, just the DWrite client will ignore those changes. ClearType Backward Compatibility This is a set of exceptions made in the TrueType interpreter to minimize hinting techniques that were problematic with the extra resolution of ClearType; see http://rastertragedy.com/RTRCh4.htm#Sec1 and https://www.microsoft.com/typography/cleartype/truetypecleartype.aspx . This technique is not to be confused with ClearType compatible widths. ClearType backward compatibility has no direct impact on changing advance widths, but there might be an indirect impact on disabling some deltas. This could be worked around in backward compatibility mode. Native ClearType Mode (Not to be confused with \u2018natural widths\u2019.) This mode removes all the exceptions in the TrueType interpreter when running with ClearType. Any issues on widths would still apply, though.","title":"Synopsis"},{"location":"ft2-type1_tables.html","text":"FreeType \u00bb Docs \u00bb Format-Specific API \u00bb Type 1 Tables Type 1 Tables \u00b6 Synopsis \u00b6 This section contains the definition of Type 1-specific tables, including structures related to other PostScript font formats. PS_FontInfoRec \u00b6 Defined in FT_TYPE1_TABLES_H (freetype/t1tables.h). typedef struct PS_FontInfoRec_ { FT_String * version; FT_String * notice; FT_String * full_name; FT_String * family_name; FT_String * weight; FT_Long italic_angle; FT_Bool is_fixed_pitch; FT_Short underline_position; FT_UShort underline_thickness; } PS_FontInfoRec ; A structure used to model a Type 1 or Type 2 FontInfo dictionary. Note that for Multiple Master fonts, each instance has its own FontInfo dictionary. PS_FontInfo \u00b6 Defined in FT_TYPE1_TABLES_H (freetype/t1tables.h). typedef struct PS_FontInfoRec_* PS_FontInfo ; A handle to a PS_FontInfoRec structure. PS_PrivateRec \u00b6 Defined in FT_TYPE1_TABLES_H (freetype/t1tables.h). typedef struct PS_PrivateRec_ { FT_Int unique_id; FT_Int lenIV; FT_Byte num_blue_values; FT_Byte num_other_blues; FT_Byte num_family_blues; FT_Byte num_family_other_blues; FT_Short blue_values[14]; FT_Short other_blues[10]; FT_Short family_blues [14]; FT_Short family_other_blues[10]; FT_Fixed blue_scale; FT_Int blue_shift; FT_Int blue_fuzz; FT_UShort standard_width[1]; FT_UShort standard_height[1]; FT_Byte num_snap_widths; FT_Byte num_snap_heights; FT_Bool force_bold; FT_Bool round_stem_up; FT_Short snap_widths [13]; /* including std width */ FT_Short snap_heights[13]; /* including std height */ FT_Fixed expansion_factor; FT_Long language_group; FT_Long password; FT_Short min_feature[2]; } PS_PrivateRec ; A structure used to model a Type 1 or Type 2 private dictionary. Note that for Multiple Master fonts, each instance has its own Private dictionary. PS_Private \u00b6 Defined in FT_TYPE1_TABLES_H (freetype/t1tables.h). typedef struct PS_PrivateRec_* PS_Private ; A handle to a PS_PrivateRec structure. CID_FaceDictRec \u00b6 Defined in FT_TYPE1_TABLES_H (freetype/t1tables.h). typedef struct CID_FaceDictRec_ { PS_PrivateRec private_dict; FT_UInt len_buildchar; FT_Fixed forcebold_threshold; FT_Pos stroke_width; FT_Fixed expansion_factor; /* this is a duplicate of */ /* `private_dict->expansion_factor' */ FT_Byte paint_type; FT_Byte font_type; FT_Matrix font_matrix; FT_Vector font_offset; FT_UInt num_subrs; FT_ULong subrmap_offset; FT_Int sd_bytes; } CID_FaceDictRec ; A structure used to represent data in a CID top-level dictionary. In most cases, they are part of the font's \u2018/FDArray\u2019 array. Within a CID font file, such (internal) subfont dictionaries are enclosed by \u2018%ADOBeginFontDict\u2019 and \u2018%ADOEndFontDict\u2019 comments. Note that CID_FaceDictRec misses a field for the \u2018/FontName\u2019 keyword, specifying the subfont's name (the top-level font name is given by the \u2018/CIDFontName\u2019 keyword). This is an oversight, but it doesn't limit the \u2018cid\u2019 font module's functionality because FreeType neither needs this entry nor gives access to CID subfonts. CID_FaceDict \u00b6 Defined in FT_TYPE1_TABLES_H (freetype/t1tables.h). typedef struct CID_FaceDictRec_* CID_FaceDict ; A handle to a CID_FaceDictRec structure. CID_FaceInfoRec \u00b6 Defined in FT_TYPE1_TABLES_H (freetype/t1tables.h). typedef struct CID_FaceInfoRec_ { FT_String * cid_font_name; FT_Fixed cid_version; FT_Int cid_font_type; FT_String * registry; FT_String * ordering; FT_Int supplement; PS_FontInfoRec font_info; FT_BBox font_bbox; FT_ULong uid_base; FT_Int num_xuid; FT_ULong xuid[16]; FT_ULong cidmap_offset; FT_Int fd_bytes; FT_Int gd_bytes; FT_ULong cid_count; FT_Int num_dicts; CID_FaceDict font_dicts; FT_ULong data_offset; } CID_FaceInfoRec ; A structure used to represent CID Face information. CID_FaceInfo \u00b6 Defined in FT_TYPE1_TABLES_H (freetype/t1tables.h). typedef struct CID_FaceInfoRec_* CID_FaceInfo ; A handle to a CID_FaceInfoRec structure. FT_Has_PS_Glyph_Names \u00b6 Defined in FT_TYPE1_TABLES_H (freetype/t1tables.h). FT_EXPORT( FT_Int ) FT_Has_PS_Glyph_Names ( FT_Face face ); Return true if a given face provides reliable PostScript glyph names. This is similar to using the FT_HAS_GLYPH_NAMES macro, except that certain fonts (mostly TrueType) contain incorrect glyph name tables. When this function returns true, the caller is sure that the glyph names returned by FT_Get_Glyph_Name are reliable. input face face handle return Boolean. True if glyph names are reliable. FT_Get_PS_Font_Info \u00b6 Defined in FT_TYPE1_TABLES_H (freetype/t1tables.h). FT_EXPORT( FT_Error ) FT_Get_PS_Font_Info ( FT_Face face, PS_FontInfo afont_info ); Retrieve the PS_FontInfoRec structure corresponding to a given PostScript font. input face PostScript face handle. output afont_info Output font info structure pointer. return FreeType error code. 0 means success. note String pointers within the PS_FontInfoRec structure are owned by the face and don't need to be freed by the caller. Missing entries in the font's FontInfo dictionary are represented by NULL pointers. If the font's format is not PostScript-based, this function will return the FT_Err_Invalid_Argument error code. FT_Get_PS_Font_Private \u00b6 Defined in FT_TYPE1_TABLES_H (freetype/t1tables.h). FT_EXPORT( FT_Error ) FT_Get_PS_Font_Private ( FT_Face face, PS_Private afont_private ); Retrieve the PS_PrivateRec structure corresponding to a given PostScript font. input face PostScript face handle. output afont_private Output private dictionary structure pointer. return FreeType error code. 0 means success. note The string pointers within the PS_PrivateRec structure are owned by the face and don't need to be freed by the caller. If the font's format is not PostScript-based, this function returns the FT_Err_Invalid_Argument error code. FT_Get_PS_Font_Value \u00b6 Defined in FT_TYPE1_TABLES_H (freetype/t1tables.h). FT_EXPORT( FT_Long ) FT_Get_PS_Font_Value ( FT_Face face, PS_Dict_Keys key, FT_UInt idx, void *value, FT_Long value_len ); Retrieve the value for the supplied key from a PostScript font. input face PostScript face handle. key An enumeration value representing the dictionary key to retrieve. idx For array values, this specifies the index to be returned. value A pointer to memory into which to write the value. valen_len The size, in bytes, of the memory supplied for the value. output value The value matching the above key, if it exists. return The amount of memory (in bytes) required to hold the requested value (if it exists, -1 otherwise). note The values returned are not pointers into the internal structures of the face, but are \u2018fresh\u2019 copies, so that the memory containing them belongs to the calling application. This also enforces the \u2018read-only\u2019 nature of these values, i.e., this function cannot be used to manipulate the face. value is a void pointer because the values returned can be of various types. If either value is NULL or value_len is too small, just the required memory size for the requested entry is returned. The idx parameter is used, not only to retrieve elements of, for example, the FontMatrix or FontBBox, but also to retrieve name keys from the CharStrings dictionary, and the charstrings themselves. It is ignored for atomic values. PS_DICT_BLUE_SCALE returns a value that is scaled up by 1000. To get the value as in the font stream, you need to divide by 65536000.0 (to remove the FT_Fixed scale, and the x1000 scale). IMPORTANT: Only key/value pairs read by the FreeType interpreter can be retrieved. So, for example, PostScript procedures such as NP, ND, and RD are not available. Arbitrary keys are, obviously, not be available either. If the font's format is not PostScript-based, this function returns the FT_Err_Invalid_Argument error code. since 2.4.8 T1_Blend_Flags \u00b6 Defined in FT_TYPE1_TABLES_H (freetype/t1tables.h). typedef enum T1_Blend_Flags_ { /* required fields in a FontInfo blend dictionary */ T1_BLEND_UNDERLINE_POSITION = 0, T1_BLEND_UNDERLINE_THICKNESS , T1_BLEND_ITALIC_ANGLE , /* required fields in a Private blend dictionary */ T1_BLEND_BLUE_VALUES , T1_BLEND_OTHER_BLUES , T1_BLEND_STANDARD_WIDTH , T1_BLEND_STANDARD_HEIGHT , T1_BLEND_STEM_SNAP_WIDTHS , T1_BLEND_STEM_SNAP_HEIGHTS , T1_BLEND_BLUE_SCALE , T1_BLEND_BLUE_SHIFT , T1_BLEND_FAMILY_BLUES , T1_BLEND_FAMILY_OTHER_BLUES , T1_BLEND_FORCE_BOLD , T1_BLEND_MAX /* do not remove */ } T1_Blend_Flags ; /* these constants are deprecated; use the corresponding */ /* ` T1_Blend_Flags ` values instead */ # define t1_blend_underline_position T1_BLEND_UNDERLINE_POSITION # define t1_blend_underline_thickness T1_BLEND_UNDERLINE_THICKNESS # define t1_blend_italic_angle T1_BLEND_ITALIC_ANGLE # define t1_blend_blue_values T1_BLEND_BLUE_VALUES # define t1_blend_other_blues T1_BLEND_OTHER_BLUES # define t1_blend_standard_widths T1_BLEND_STANDARD_WIDTH # define t1_blend_standard_height T1_BLEND_STANDARD_HEIGHT # define t1_blend_stem_snap_widths T1_BLEND_STEM_SNAP_WIDTHS # define t1_blend_stem_snap_heights T1_BLEND_STEM_SNAP_HEIGHTS # define t1_blend_blue_scale T1_BLEND_BLUE_SCALE # define t1_blend_blue_shift T1_BLEND_BLUE_SHIFT # define t1_blend_family_blues T1_BLEND_FAMILY_BLUES # define t1_blend_family_other_blues T1_BLEND_FAMILY_OTHER_BLUES # define t1_blend_force_bold T1_BLEND_FORCE_BOLD # define t1_blend_max T1_BLEND_MAX A set of flags used to indicate which fields are present in a given blend dictionary (font info or private). Used to support Multiple Masters fonts. values T1_BLEND_UNDERLINE_POSITION T1_BLEND_UNDERLINE_THICKNESS T1_BLEND_ITALIC_ANGLE T1_BLEND_BLUE_VALUES T1_BLEND_OTHER_BLUES T1_BLEND_STANDARD_WIDTH T1_BLEND_STANDARD_HEIGHT T1_BLEND_STEM_SNAP_WIDTHS T1_BLEND_STEM_SNAP_HEIGHTS T1_BLEND_BLUE_SCALE T1_BLEND_BLUE_SHIFT T1_BLEND_FAMILY_BLUES T1_BLEND_FAMILY_OTHER_BLUES T1_BLEND_FORCE_BOLD T1_EncodingType \u00b6 Defined in FT_TYPE1_TABLES_H (freetype/t1tables.h). typedef enum T1_EncodingType_ { T1_ENCODING_TYPE_NONE = 0, T1_ENCODING_TYPE_ARRAY , T1_ENCODING_TYPE_STANDARD , T1_ENCODING_TYPE_ISOLATIN1 , T1_ENCODING_TYPE_EXPERT } T1_EncodingType ; An enumeration describing the \u2018Encoding\u2019 entry in a Type 1 dictionary. values T1_ENCODING_TYPE_NONE T1_ENCODING_TYPE_ARRAY T1_ENCODING_TYPE_STANDARD T1_ENCODING_TYPE_ISOLATIN1 T1_ENCODING_TYPE_EXPERT since 2.4.8 PS_Dict_Keys \u00b6 Defined in FT_TYPE1_TABLES_H (freetype/t1tables.h). typedef enum PS_Dict_Keys_ { /* conventionally in the font dictionary */ PS_DICT_FONT_TYPE , /* FT_Byte */ PS_DICT_FONT_MATRIX , /* FT_Fixed */ PS_DICT_FONT_BBOX , /* FT_Fixed */ PS_DICT_PAINT_TYPE , /* FT_Byte */ PS_DICT_FONT_NAME , /* FT_String * */ PS_DICT_UNIQUE_ID , /* FT_Int */ PS_DICT_NUM_CHAR_STRINGS , /* FT_Int */ PS_DICT_CHAR_STRING_KEY , /* FT_String * */ PS_DICT_CHAR_STRING , /* FT_String * */ PS_DICT_ENCODING_TYPE , /* T1_EncodingType */ PS_DICT_ENCODING_ENTRY , /* FT_String * */ /* conventionally in the font Private dictionary */ PS_DICT_NUM_SUBRS , /* FT_Int */ PS_DICT_SUBR , /* FT_String * */ PS_DICT_STD_HW , /* FT_UShort */ PS_DICT_STD_VW , /* FT_UShort */ PS_DICT_NUM_BLUE_VALUES , /* FT_Byte */ PS_DICT_BLUE_VALUE , /* FT_Short */ PS_DICT_BLUE_FUZZ , /* FT_Int */ PS_DICT_NUM_OTHER_BLUES , /* FT_Byte */ PS_DICT_OTHER_BLUE , /* FT_Short */ PS_DICT_NUM_FAMILY_BLUES , /* FT_Byte */ PS_DICT_FAMILY_BLUE , /* FT_Short */ PS_DICT_NUM_FAMILY_OTHER_BLUES , /* FT_Byte */ PS_DICT_FAMILY_OTHER_BLUE , /* FT_Short */ PS_DICT_BLUE_SCALE , /* FT_Fixed */ PS_DICT_BLUE_SHIFT , /* FT_Int */ PS_DICT_NUM_STEM_SNAP_H , /* FT_Byte */ PS_DICT_STEM_SNAP_H , /* FT_Short */ PS_DICT_NUM_STEM_SNAP_V , /* FT_Byte */ PS_DICT_STEM_SNAP_V , /* FT_Short */ PS_DICT_FORCE_BOLD , /* FT_Bool */ PS_DICT_RND_STEM_UP , /* FT_Bool */ PS_DICT_MIN_FEATURE , /* FT_Short */ PS_DICT_LEN_IV , /* FT_Int */ PS_DICT_PASSWORD , /* FT_Long */ PS_DICT_LANGUAGE_GROUP , /* FT_Long */ /* conventionally in the font FontInfo dictionary */ PS_DICT_VERSION , /* FT_String * */ PS_DICT_NOTICE , /* FT_String * */ PS_DICT_FULL_NAME , /* FT_String * */ PS_DICT_FAMILY_NAME , /* FT_String * */ PS_DICT_WEIGHT , /* FT_String * */ PS_DICT_IS_FIXED_PITCH , /* FT_Bool */ PS_DICT_UNDERLINE_POSITION , /* FT_Short */ PS_DICT_UNDERLINE_THICKNESS , /* FT_UShort */ PS_DICT_FS_TYPE , /* FT_UShort */ PS_DICT_ITALIC_ANGLE , /* FT_Long */ PS_DICT_MAX = PS_DICT_ITALIC_ANGLE } PS_Dict_Keys ; An enumeration used in calls to FT_Get_PS_Font_Value to identify the Type 1 dictionary entry to retrieve. values PS_DICT_FONT_TYPE PS_DICT_FONT_MATRIX PS_DICT_FONT_BBOX PS_DICT_PAINT_TYPE PS_DICT_FONT_NAME PS_DICT_UNIQUE_ID PS_DICT_NUM_CHAR_STRINGS PS_DICT_CHAR_STRING_KEY PS_DICT_CHAR_STRING PS_DICT_ENCODING_TYPE PS_DICT_ENCODING_ENTRY PS_DICT_NUM_SUBRS PS_DICT_SUBR PS_DICT_STD_HW PS_DICT_STD_VW PS_DICT_NUM_BLUE_VALUES PS_DICT_BLUE_VALUE PS_DICT_BLUE_FUZZ PS_DICT_NUM_OTHER_BLUES PS_DICT_OTHER_BLUE PS_DICT_NUM_FAMILY_BLUES PS_DICT_FAMILY_BLUE PS_DICT_NUM_FAMILY_OTHER_BLUES PS_DICT_FAMILY_OTHER_BLUE PS_DICT_BLUE_SCALE PS_DICT_BLUE_SHIFT PS_DICT_NUM_STEM_SNAP_H PS_DICT_STEM_SNAP_H PS_DICT_NUM_STEM_SNAP_V PS_DICT_STEM_SNAP_V PS_DICT_FORCE_BOLD PS_DICT_RND_STEM_UP PS_DICT_MIN_FEATURE PS_DICT_LEN_IV PS_DICT_PASSWORD PS_DICT_LANGUAGE_GROUP PS_DICT_VERSION PS_DICT_NOTICE PS_DICT_FULL_NAME PS_DICT_FAMILY_NAME PS_DICT_WEIGHT PS_DICT_IS_FIXED_PITCH PS_DICT_UNDERLINE_POSITION PS_DICT_UNDERLINE_THICKNESS PS_DICT_FS_TYPE PS_DICT_ITALIC_ANGLE since 2.4.8 T1_FontInfo \u00b6 Defined in FT_TYPE1_TABLES_H (freetype/t1tables.h). typedef PS_FontInfoRec T1_FontInfo ; This type is equivalent to PS_FontInfoRec . It is deprecated but kept to maintain source compatibility between various versions of FreeType. T1_Private \u00b6 Defined in FT_TYPE1_TABLES_H (freetype/t1tables.h). typedef PS_PrivateRec T1_Private ; This type is equivalent to PS_PrivateRec . It is deprecated but kept to maintain source compatibility between various versions of FreeType. CID_FontDict \u00b6 Defined in FT_TYPE1_TABLES_H (freetype/t1tables.h). typedef CID_FaceDictRec CID_FontDict ; This type is equivalent to CID_FaceDictRec . It is deprecated but kept to maintain source compatibility between various versions of FreeType. CID_Info \u00b6 Defined in FT_TYPE1_TABLES_H (freetype/t1tables.h). typedef CID_FaceInfoRec CID_Info ; This type is equivalent to CID_FaceInfoRec . It is deprecated but kept to maintain source compatibility between various versions of FreeType.","title":"Type 1 Tables"},{"location":"ft2-type1_tables.html#type-1-tables","text":"","title":"Type 1 Tables"},{"location":"ft2-type1_tables.html#synopsis","text":"This section contains the definition of Type 1-specific tables, including structures related to other PostScript font formats.","title":"Synopsis"},{"location":"ft2-type1_tables.html#ps_fontinforec","text":"Defined in FT_TYPE1_TABLES_H (freetype/t1tables.h). typedef struct PS_FontInfoRec_ { FT_String * version; FT_String * notice; FT_String * full_name; FT_String * family_name; FT_String * weight; FT_Long italic_angle; FT_Bool is_fixed_pitch; FT_Short underline_position; FT_UShort underline_thickness; } PS_FontInfoRec ; A structure used to model a Type 1 or Type 2 FontInfo dictionary. Note that for Multiple Master fonts, each instance has its own FontInfo dictionary.","title":"PS_FontInfoRec"},{"location":"ft2-type1_tables.html#ps_fontinfo","text":"Defined in FT_TYPE1_TABLES_H (freetype/t1tables.h). typedef struct PS_FontInfoRec_* PS_FontInfo ; A handle to a PS_FontInfoRec structure.","title":"PS_FontInfo"},{"location":"ft2-type1_tables.html#ps_privaterec","text":"Defined in FT_TYPE1_TABLES_H (freetype/t1tables.h). typedef struct PS_PrivateRec_ { FT_Int unique_id; FT_Int lenIV; FT_Byte num_blue_values; FT_Byte num_other_blues; FT_Byte num_family_blues; FT_Byte num_family_other_blues; FT_Short blue_values[14]; FT_Short other_blues[10]; FT_Short family_blues [14]; FT_Short family_other_blues[10]; FT_Fixed blue_scale; FT_Int blue_shift; FT_Int blue_fuzz; FT_UShort standard_width[1]; FT_UShort standard_height[1]; FT_Byte num_snap_widths; FT_Byte num_snap_heights; FT_Bool force_bold; FT_Bool round_stem_up; FT_Short snap_widths [13]; /* including std width */ FT_Short snap_heights[13]; /* including std height */ FT_Fixed expansion_factor; FT_Long language_group; FT_Long password; FT_Short min_feature[2]; } PS_PrivateRec ; A structure used to model a Type 1 or Type 2 private dictionary. Note that for Multiple Master fonts, each instance has its own Private dictionary.","title":"PS_PrivateRec"},{"location":"ft2-type1_tables.html#ps_private","text":"Defined in FT_TYPE1_TABLES_H (freetype/t1tables.h). typedef struct PS_PrivateRec_* PS_Private ; A handle to a PS_PrivateRec structure.","title":"PS_Private"},{"location":"ft2-type1_tables.html#cid_facedictrec","text":"Defined in FT_TYPE1_TABLES_H (freetype/t1tables.h). typedef struct CID_FaceDictRec_ { PS_PrivateRec private_dict; FT_UInt len_buildchar; FT_Fixed forcebold_threshold; FT_Pos stroke_width; FT_Fixed expansion_factor; /* this is a duplicate of */ /* `private_dict->expansion_factor' */ FT_Byte paint_type; FT_Byte font_type; FT_Matrix font_matrix; FT_Vector font_offset; FT_UInt num_subrs; FT_ULong subrmap_offset; FT_Int sd_bytes; } CID_FaceDictRec ; A structure used to represent data in a CID top-level dictionary. In most cases, they are part of the font's \u2018/FDArray\u2019 array. Within a CID font file, such (internal) subfont dictionaries are enclosed by \u2018%ADOBeginFontDict\u2019 and \u2018%ADOEndFontDict\u2019 comments. Note that CID_FaceDictRec misses a field for the \u2018/FontName\u2019 keyword, specifying the subfont's name (the top-level font name is given by the \u2018/CIDFontName\u2019 keyword). This is an oversight, but it doesn't limit the \u2018cid\u2019 font module's functionality because FreeType neither needs this entry nor gives access to CID subfonts.","title":"CID_FaceDictRec"},{"location":"ft2-type1_tables.html#cid_facedict","text":"Defined in FT_TYPE1_TABLES_H (freetype/t1tables.h). typedef struct CID_FaceDictRec_* CID_FaceDict ; A handle to a CID_FaceDictRec structure.","title":"CID_FaceDict"},{"location":"ft2-type1_tables.html#cid_faceinforec","text":"Defined in FT_TYPE1_TABLES_H (freetype/t1tables.h). typedef struct CID_FaceInfoRec_ { FT_String * cid_font_name; FT_Fixed cid_version; FT_Int cid_font_type; FT_String * registry; FT_String * ordering; FT_Int supplement; PS_FontInfoRec font_info; FT_BBox font_bbox; FT_ULong uid_base; FT_Int num_xuid; FT_ULong xuid[16]; FT_ULong cidmap_offset; FT_Int fd_bytes; FT_Int gd_bytes; FT_ULong cid_count; FT_Int num_dicts; CID_FaceDict font_dicts; FT_ULong data_offset; } CID_FaceInfoRec ; A structure used to represent CID Face information.","title":"CID_FaceInfoRec"},{"location":"ft2-type1_tables.html#cid_faceinfo","text":"Defined in FT_TYPE1_TABLES_H (freetype/t1tables.h). typedef struct CID_FaceInfoRec_* CID_FaceInfo ; A handle to a CID_FaceInfoRec structure.","title":"CID_FaceInfo"},{"location":"ft2-type1_tables.html#ft_has_ps_glyph_names","text":"Defined in FT_TYPE1_TABLES_H (freetype/t1tables.h). FT_EXPORT( FT_Int ) FT_Has_PS_Glyph_Names ( FT_Face face ); Return true if a given face provides reliable PostScript glyph names. This is similar to using the FT_HAS_GLYPH_NAMES macro, except that certain fonts (mostly TrueType) contain incorrect glyph name tables. When this function returns true, the caller is sure that the glyph names returned by FT_Get_Glyph_Name are reliable.","title":"FT_Has_PS_Glyph_Names"},{"location":"ft2-type1_tables.html#ft_get_ps_font_info","text":"Defined in FT_TYPE1_TABLES_H (freetype/t1tables.h). FT_EXPORT( FT_Error ) FT_Get_PS_Font_Info ( FT_Face face, PS_FontInfo afont_info ); Retrieve the PS_FontInfoRec structure corresponding to a given PostScript font.","title":"FT_Get_PS_Font_Info"},{"location":"ft2-type1_tables.html#ft_get_ps_font_private","text":"Defined in FT_TYPE1_TABLES_H (freetype/t1tables.h). FT_EXPORT( FT_Error ) FT_Get_PS_Font_Private ( FT_Face face, PS_Private afont_private ); Retrieve the PS_PrivateRec structure corresponding to a given PostScript font.","title":"FT_Get_PS_Font_Private"},{"location":"ft2-type1_tables.html#ft_get_ps_font_value","text":"Defined in FT_TYPE1_TABLES_H (freetype/t1tables.h). FT_EXPORT( FT_Long ) FT_Get_PS_Font_Value ( FT_Face face, PS_Dict_Keys key, FT_UInt idx, void *value, FT_Long value_len ); Retrieve the value for the supplied key from a PostScript font.","title":"FT_Get_PS_Font_Value"},{"location":"ft2-type1_tables.html#t1_blend_flags","text":"Defined in FT_TYPE1_TABLES_H (freetype/t1tables.h). typedef enum T1_Blend_Flags_ { /* required fields in a FontInfo blend dictionary */ T1_BLEND_UNDERLINE_POSITION = 0, T1_BLEND_UNDERLINE_THICKNESS , T1_BLEND_ITALIC_ANGLE , /* required fields in a Private blend dictionary */ T1_BLEND_BLUE_VALUES , T1_BLEND_OTHER_BLUES , T1_BLEND_STANDARD_WIDTH , T1_BLEND_STANDARD_HEIGHT , T1_BLEND_STEM_SNAP_WIDTHS , T1_BLEND_STEM_SNAP_HEIGHTS , T1_BLEND_BLUE_SCALE , T1_BLEND_BLUE_SHIFT , T1_BLEND_FAMILY_BLUES , T1_BLEND_FAMILY_OTHER_BLUES , T1_BLEND_FORCE_BOLD , T1_BLEND_MAX /* do not remove */ } T1_Blend_Flags ; /* these constants are deprecated; use the corresponding */ /* ` T1_Blend_Flags ` values instead */ # define t1_blend_underline_position T1_BLEND_UNDERLINE_POSITION # define t1_blend_underline_thickness T1_BLEND_UNDERLINE_THICKNESS # define t1_blend_italic_angle T1_BLEND_ITALIC_ANGLE # define t1_blend_blue_values T1_BLEND_BLUE_VALUES # define t1_blend_other_blues T1_BLEND_OTHER_BLUES # define t1_blend_standard_widths T1_BLEND_STANDARD_WIDTH # define t1_blend_standard_height T1_BLEND_STANDARD_HEIGHT # define t1_blend_stem_snap_widths T1_BLEND_STEM_SNAP_WIDTHS # define t1_blend_stem_snap_heights T1_BLEND_STEM_SNAP_HEIGHTS # define t1_blend_blue_scale T1_BLEND_BLUE_SCALE # define t1_blend_blue_shift T1_BLEND_BLUE_SHIFT # define t1_blend_family_blues T1_BLEND_FAMILY_BLUES # define t1_blend_family_other_blues T1_BLEND_FAMILY_OTHER_BLUES # define t1_blend_force_bold T1_BLEND_FORCE_BOLD # define t1_blend_max T1_BLEND_MAX A set of flags used to indicate which fields are present in a given blend dictionary (font info or private). Used to support Multiple Masters fonts.","title":"T1_Blend_Flags"},{"location":"ft2-type1_tables.html#t1_encodingtype","text":"Defined in FT_TYPE1_TABLES_H (freetype/t1tables.h). typedef enum T1_EncodingType_ { T1_ENCODING_TYPE_NONE = 0, T1_ENCODING_TYPE_ARRAY , T1_ENCODING_TYPE_STANDARD , T1_ENCODING_TYPE_ISOLATIN1 , T1_ENCODING_TYPE_EXPERT } T1_EncodingType ; An enumeration describing the \u2018Encoding\u2019 entry in a Type 1 dictionary.","title":"T1_EncodingType"},{"location":"ft2-type1_tables.html#ps_dict_keys","text":"Defined in FT_TYPE1_TABLES_H (freetype/t1tables.h). typedef enum PS_Dict_Keys_ { /* conventionally in the font dictionary */ PS_DICT_FONT_TYPE , /* FT_Byte */ PS_DICT_FONT_MATRIX , /* FT_Fixed */ PS_DICT_FONT_BBOX , /* FT_Fixed */ PS_DICT_PAINT_TYPE , /* FT_Byte */ PS_DICT_FONT_NAME , /* FT_String * */ PS_DICT_UNIQUE_ID , /* FT_Int */ PS_DICT_NUM_CHAR_STRINGS , /* FT_Int */ PS_DICT_CHAR_STRING_KEY , /* FT_String * */ PS_DICT_CHAR_STRING , /* FT_String * */ PS_DICT_ENCODING_TYPE , /* T1_EncodingType */ PS_DICT_ENCODING_ENTRY , /* FT_String * */ /* conventionally in the font Private dictionary */ PS_DICT_NUM_SUBRS , /* FT_Int */ PS_DICT_SUBR , /* FT_String * */ PS_DICT_STD_HW , /* FT_UShort */ PS_DICT_STD_VW , /* FT_UShort */ PS_DICT_NUM_BLUE_VALUES , /* FT_Byte */ PS_DICT_BLUE_VALUE , /* FT_Short */ PS_DICT_BLUE_FUZZ , /* FT_Int */ PS_DICT_NUM_OTHER_BLUES , /* FT_Byte */ PS_DICT_OTHER_BLUE , /* FT_Short */ PS_DICT_NUM_FAMILY_BLUES , /* FT_Byte */ PS_DICT_FAMILY_BLUE , /* FT_Short */ PS_DICT_NUM_FAMILY_OTHER_BLUES , /* FT_Byte */ PS_DICT_FAMILY_OTHER_BLUE , /* FT_Short */ PS_DICT_BLUE_SCALE , /* FT_Fixed */ PS_DICT_BLUE_SHIFT , /* FT_Int */ PS_DICT_NUM_STEM_SNAP_H , /* FT_Byte */ PS_DICT_STEM_SNAP_H , /* FT_Short */ PS_DICT_NUM_STEM_SNAP_V , /* FT_Byte */ PS_DICT_STEM_SNAP_V , /* FT_Short */ PS_DICT_FORCE_BOLD , /* FT_Bool */ PS_DICT_RND_STEM_UP , /* FT_Bool */ PS_DICT_MIN_FEATURE , /* FT_Short */ PS_DICT_LEN_IV , /* FT_Int */ PS_DICT_PASSWORD , /* FT_Long */ PS_DICT_LANGUAGE_GROUP , /* FT_Long */ /* conventionally in the font FontInfo dictionary */ PS_DICT_VERSION , /* FT_String * */ PS_DICT_NOTICE , /* FT_String * */ PS_DICT_FULL_NAME , /* FT_String * */ PS_DICT_FAMILY_NAME , /* FT_String * */ PS_DICT_WEIGHT , /* FT_String * */ PS_DICT_IS_FIXED_PITCH , /* FT_Bool */ PS_DICT_UNDERLINE_POSITION , /* FT_Short */ PS_DICT_UNDERLINE_THICKNESS , /* FT_UShort */ PS_DICT_FS_TYPE , /* FT_UShort */ PS_DICT_ITALIC_ANGLE , /* FT_Long */ PS_DICT_MAX = PS_DICT_ITALIC_ANGLE } PS_Dict_Keys ; An enumeration used in calls to FT_Get_PS_Font_Value to identify the Type 1 dictionary entry to retrieve.","title":"PS_Dict_Keys"},{"location":"ft2-type1_tables.html#t1_fontinfo","text":"Defined in FT_TYPE1_TABLES_H (freetype/t1tables.h). typedef PS_FontInfoRec T1_FontInfo ; This type is equivalent to PS_FontInfoRec . It is deprecated but kept to maintain source compatibility between various versions of FreeType.","title":"T1_FontInfo"},{"location":"ft2-type1_tables.html#t1_private","text":"Defined in FT_TYPE1_TABLES_H (freetype/t1tables.h). typedef PS_PrivateRec T1_Private ; This type is equivalent to PS_PrivateRec . It is deprecated but kept to maintain source compatibility between various versions of FreeType.","title":"T1_Private"},{"location":"ft2-type1_tables.html#cid_fontdict","text":"Defined in FT_TYPE1_TABLES_H (freetype/t1tables.h). typedef CID_FaceDictRec CID_FontDict ; This type is equivalent to CID_FaceDictRec . It is deprecated but kept to maintain source compatibility between various versions of FreeType.","title":"CID_FontDict"},{"location":"ft2-type1_tables.html#cid_info","text":"Defined in FT_TYPE1_TABLES_H (freetype/t1tables.h). typedef CID_FaceInfoRec CID_Info ; This type is equivalent to CID_FaceInfoRec . It is deprecated but kept to maintain source compatibility between various versions of FreeType.","title":"CID_Info"},{"location":"ft2-user_allocation.html","text":"FreeType \u00bb Docs \u00bb General Remarks \u00bb User allocation User allocation \u00b6 Synopsis \u00b6 FreeType assumes that structures allocated by the user and passed as arguments are zeroed out except for the actual data. In other words, it is recommended to use calloc (or variants of it) instead of malloc for allocation.","title":"User allocation"},{"location":"ft2-user_allocation.html#user-allocation","text":"","title":"User allocation"},{"location":"ft2-user_allocation.html#synopsis","text":"FreeType assumes that structures allocated by the user and passed as arguments are zeroed out except for the actual data. In other words, it is recommended to use calloc (or variants of it) instead of malloc for allocation.","title":"Synopsis"},{"location":"ft2-version.html","text":"FreeType \u00bb Docs \u00bb Core API \u00bb FreeType Version FreeType Version \u00b6 Synopsis \u00b6 Note that those functions and macros are of limited use because even a new release of FreeType with only documentation changes increases the version number. FT_Library_Version \u00b6 Defined in FT_FREETYPE_H (freetype/freetype.h). FT_EXPORT( void ) FT_Library_Version ( FT_Library library, FT_Int *amajor, FT_Int *aminor, FT_Int *apatch ); Return the version of the FreeType library being used. This is useful when dynamically linking to the library, since one cannot use the macros FREETYPE_MAJOR , FREETYPE_MINOR , and FREETYPE_PATCH . input library A source library handle. output amajor The major version number. aminor The minor version number. apatch The patch version number. note The reason why this function takes a library argument is because certain programs implement library initialization in a custom way that doesn't use FT_Init_FreeType . In such cases, the library version might not be available before the library object has been created. FT_Face_CheckTrueTypePatents \u00b6 Defined in FT_FREETYPE_H (freetype/freetype.h). FT_EXPORT( FT_Bool ) FT_Face_CheckTrueTypePatents ( FT_Face face ); Deprecated, does nothing. input face A face handle. return Always returns false. note Since May 2010, TrueType hinting is no longer patented. since 2.3.5 FT_Face_SetUnpatentedHinting \u00b6 Defined in FT_FREETYPE_H (freetype/freetype.h). FT_EXPORT( FT_Bool ) FT_Face_SetUnpatentedHinting ( FT_Face face, FT_Bool value ); Deprecated, does nothing. input face A face handle. value New boolean setting. return Always returns false. note Since May 2010, TrueType hinting is no longer patented. since 2.3.5 FREETYPE_XXX \u00b6 Defined in FT_FREETYPE_H (freetype/freetype.h). # define FREETYPE_MAJOR 2 # define FREETYPE_MINOR 10 # define FREETYPE_PATCH 4 These three macros identify the FreeType source code version. Use FT_Library_Version to access them at runtime. values FREETYPE_MAJOR The major version number. FREETYPE_MINOR The minor version number. FREETYPE_PATCH The patch level. note The version number of FreeType if built as a dynamic link library with the \u2018libtool\u2019 package is not controlled by these three macros.","title":"FreeType Version"},{"location":"ft2-version.html#freetype-version","text":"","title":"FreeType Version"},{"location":"ft2-version.html#synopsis","text":"Note that those functions and macros are of limited use because even a new release of FreeType with only documentation changes increases the version number.","title":"Synopsis"},{"location":"ft2-version.html#ft_library_version","text":"Defined in FT_FREETYPE_H (freetype/freetype.h). FT_EXPORT( void ) FT_Library_Version ( FT_Library library, FT_Int *amajor, FT_Int *aminor, FT_Int *apatch ); Return the version of the FreeType library being used. This is useful when dynamically linking to the library, since one cannot use the macros FREETYPE_MAJOR , FREETYPE_MINOR , and FREETYPE_PATCH .","title":"FT_Library_Version"},{"location":"ft2-version.html#ft_face_checktruetypepatents","text":"Defined in FT_FREETYPE_H (freetype/freetype.h). FT_EXPORT( FT_Bool ) FT_Face_CheckTrueTypePatents ( FT_Face face ); Deprecated, does nothing.","title":"FT_Face_CheckTrueTypePatents"},{"location":"ft2-version.html#ft_face_setunpatentedhinting","text":"Defined in FT_FREETYPE_H (freetype/freetype.h). FT_EXPORT( FT_Bool ) FT_Face_SetUnpatentedHinting ( FT_Face face, FT_Bool value ); Deprecated, does nothing.","title":"FT_Face_SetUnpatentedHinting"},{"location":"ft2-version.html#freetype_xxx","text":"Defined in FT_FREETYPE_H (freetype/freetype.h). # define FREETYPE_MAJOR 2 # define FREETYPE_MINOR 10 # define FREETYPE_PATCH 4 These three macros identify the FreeType source code version. Use FT_Library_Version to access them at runtime.","title":"FREETYPE_XXX"},{"location":"ft2-winfnt_fonts.html","text":"FreeType \u00bb Docs \u00bb Format-Specific API \u00bb Window FNT Files Window FNT Files \u00b6 Synopsis \u00b6 This section contains the declaration of Windows FNT-specific functions. FT_WinFNT_ID_XXX \u00b6 Defined in FT_WINFONTS_H (freetype/ftwinfnt.h). # define FT_WinFNT_ID_CP1252 0 # define FT_WinFNT_ID_DEFAULT 1 # define FT_WinFNT_ID_SYMBOL 2 # define FT_WinFNT_ID_MAC 77 # define FT_WinFNT_ID_CP932 128 # define FT_WinFNT_ID_CP949 129 # define FT_WinFNT_ID_CP1361 130 # define FT_WinFNT_ID_CP936 134 # define FT_WinFNT_ID_CP950 136 # define FT_WinFNT_ID_CP1253 161 # define FT_WinFNT_ID_CP1254 162 # define FT_WinFNT_ID_CP1258 163 # define FT_WinFNT_ID_CP1255 177 # define FT_WinFNT_ID_CP1256 178 # define FT_WinFNT_ID_CP1257 186 # define FT_WinFNT_ID_CP1251 204 # define FT_WinFNT_ID_CP874 222 # define FT_WinFNT_ID_CP1250 238 # define FT_WinFNT_ID_OEM 255 A list of valid values for the charset byte in FT_WinFNT_HeaderRec . Exact mapping tables for the various \u2018cpXXXX\u2019 encodings (except for \u2018cp1361\u2019) can be found at \u2018 ftp://ftp.unicode.org/Public/ \u2019 in the MAPPINGS/VENDORS/MICSFT/WINDOWS subdirectory. \u2018cp1361\u2019 is roughly a superset of MAPPINGS/OBSOLETE/EASTASIA/KSC/JOHAB.TXT . values FT_WinFNT_ID_DEFAULT This is used for font enumeration and font creation as a \u2018don't care\u2019 value. Valid font files don't contain this value. When querying for information about the character set of the font that is currently selected into a specified device context, this return value (of the related Windows API) simply denotes failure. FT_WinFNT_ID_SYMBOL There is no known mapping table available. FT_WinFNT_ID_MAC Mac Roman encoding. FT_WinFNT_ID_OEM From Michael Poettgen <michael@poettgen.de>: The \u2018Windows Font Mapping\u2019 article says that FT_WinFNT_ID_OEM is used for the charset of vector fonts, like modern.fon , roman.fon , and script.fon on Windows. The \u2018CreateFont\u2019 documentation says: The FT_WinFNT_ID_OEM value specifies a character set that is operating-system dependent. The \u2018IFIMETRICS\u2019 documentation from the \u2018Windows Driver Development Kit\u2019 says: This font supports an OEM-specific character set. The OEM character set is system dependent. In general OEM, as opposed to ANSI (i.e., \u2018cp1252\u2019), denotes the second default codepage that most international versions of Windows have. It is one of the OEM codepages from https://docs.microsoft.com/en-us/windows/desktop/intl/code-page-identifiers , and is used for the \u2018DOS boxes\u2019, to support legacy applications. A German Windows version for example usually uses ANSI codepage 1252 and OEM codepage 850. FT_WinFNT_ID_CP874 A superset of Thai TIS 620 and ISO 8859-11. FT_WinFNT_ID_CP932 A superset of Japanese Shift-JIS (with minor deviations). FT_WinFNT_ID_CP936 A superset of simplified Chinese GB 2312-1980 (with different ordering and minor deviations). FT_WinFNT_ID_CP949 A superset of Korean Hangul KS C 5601-1987 (with different ordering and minor deviations). FT_WinFNT_ID_CP950 A superset of traditional Chinese Big 5 ETen (with different ordering and minor deviations). FT_WinFNT_ID_CP1250 A superset of East European ISO 8859-2 (with slightly different ordering). FT_WinFNT_ID_CP1251 A superset of Russian ISO 8859-5 (with different ordering). FT_WinFNT_ID_CP1252 ANSI encoding. A superset of ISO 8859-1. FT_WinFNT_ID_CP1253 A superset of Greek ISO 8859-7 (with minor modifications). FT_WinFNT_ID_CP1254 A superset of Turkish ISO 8859-9. FT_WinFNT_ID_CP1255 A superset of Hebrew ISO 8859-8 (with some modifications). FT_WinFNT_ID_CP1256 A superset of Arabic ISO 8859-6 (with different ordering). FT_WinFNT_ID_CP1257 A superset of Baltic ISO 8859-13 (with some deviations). FT_WinFNT_ID_CP1258 For Vietnamese. This encoding doesn't cover all necessary characters. FT_WinFNT_ID_CP1361 Korean (Johab). FT_WinFNT_HeaderRec \u00b6 Defined in FT_WINFONTS_H (freetype/ftwinfnt.h). typedef struct FT_WinFNT_HeaderRec_ { FT_UShort version; FT_ULong file_size; FT_Byte copyright[60]; FT_UShort file_type; FT_UShort nominal_point_size; FT_UShort vertical_resolution; FT_UShort horizontal_resolution; FT_UShort ascent; FT_UShort internal_leading; FT_UShort external_leading; FT_Byte italic; FT_Byte underline; FT_Byte strike_out; FT_UShort weight; FT_Byte charset; FT_UShort pixel_width; FT_UShort pixel_height; FT_Byte pitch_and_family; FT_UShort avg_width; FT_UShort max_width; FT_Byte first_char; FT_Byte last_char; FT_Byte default_char; FT_Byte break_char; FT_UShort bytes_per_row; FT_ULong device_offset; FT_ULong face_name_offset; FT_ULong bits_pointer; FT_ULong bits_offset; FT_Byte reserved; FT_ULong flags; FT_UShort A_space; FT_UShort B_space; FT_UShort C_space; FT_UShort color_table_offset; FT_ULong reserved1[4]; } FT_WinFNT_HeaderRec ; Windows FNT Header info. FT_WinFNT_Header \u00b6 Defined in FT_WINFONTS_H (freetype/ftwinfnt.h). typedef struct FT_WinFNT_HeaderRec_* FT_WinFNT_Header ; A handle to an FT_WinFNT_HeaderRec structure. FT_Get_WinFNT_Header \u00b6 Defined in FT_WINFONTS_H (freetype/ftwinfnt.h). FT_EXPORT( FT_Error ) FT_Get_WinFNT_Header ( FT_Face face, FT_WinFNT_HeaderRec *aheader ); Retrieve a Windows FNT font info header. input face A handle to the input face. output aheader The WinFNT header. return FreeType error code. 0 means success. note This function only works with Windows FNT faces, returning an error otherwise.","title":"Window FNT Files"},{"location":"ft2-winfnt_fonts.html#window-fnt-files","text":"","title":"Window FNT Files"},{"location":"ft2-winfnt_fonts.html#synopsis","text":"This section contains the declaration of Windows FNT-specific functions.","title":"Synopsis"},{"location":"ft2-winfnt_fonts.html#ft_winfnt_id_xxx","text":"Defined in FT_WINFONTS_H (freetype/ftwinfnt.h). # define FT_WinFNT_ID_CP1252 0 # define FT_WinFNT_ID_DEFAULT 1 # define FT_WinFNT_ID_SYMBOL 2 # define FT_WinFNT_ID_MAC 77 # define FT_WinFNT_ID_CP932 128 # define FT_WinFNT_ID_CP949 129 # define FT_WinFNT_ID_CP1361 130 # define FT_WinFNT_ID_CP936 134 # define FT_WinFNT_ID_CP950 136 # define FT_WinFNT_ID_CP1253 161 # define FT_WinFNT_ID_CP1254 162 # define FT_WinFNT_ID_CP1258 163 # define FT_WinFNT_ID_CP1255 177 # define FT_WinFNT_ID_CP1256 178 # define FT_WinFNT_ID_CP1257 186 # define FT_WinFNT_ID_CP1251 204 # define FT_WinFNT_ID_CP874 222 # define FT_WinFNT_ID_CP1250 238 # define FT_WinFNT_ID_OEM 255 A list of valid values for the charset byte in FT_WinFNT_HeaderRec . Exact mapping tables for the various \u2018cpXXXX\u2019 encodings (except for \u2018cp1361\u2019) can be found at \u2018 ftp://ftp.unicode.org/Public/ \u2019 in the MAPPINGS/VENDORS/MICSFT/WINDOWS subdirectory. \u2018cp1361\u2019 is roughly a superset of MAPPINGS/OBSOLETE/EASTASIA/KSC/JOHAB.TXT .","title":"FT_WinFNT_ID_XXX"},{"location":"ft2-winfnt_fonts.html#ft_winfnt_headerrec","text":"Defined in FT_WINFONTS_H (freetype/ftwinfnt.h). typedef struct FT_WinFNT_HeaderRec_ { FT_UShort version; FT_ULong file_size; FT_Byte copyright[60]; FT_UShort file_type; FT_UShort nominal_point_size; FT_UShort vertical_resolution; FT_UShort horizontal_resolution; FT_UShort ascent; FT_UShort internal_leading; FT_UShort external_leading; FT_Byte italic; FT_Byte underline; FT_Byte strike_out; FT_UShort weight; FT_Byte charset; FT_UShort pixel_width; FT_UShort pixel_height; FT_Byte pitch_and_family; FT_UShort avg_width; FT_UShort max_width; FT_Byte first_char; FT_Byte last_char; FT_Byte default_char; FT_Byte break_char; FT_UShort bytes_per_row; FT_ULong device_offset; FT_ULong face_name_offset; FT_ULong bits_pointer; FT_ULong bits_offset; FT_Byte reserved; FT_ULong flags; FT_UShort A_space; FT_UShort B_space; FT_UShort C_space; FT_UShort color_table_offset; FT_ULong reserved1[4]; } FT_WinFNT_HeaderRec ; Windows FNT Header info.","title":"FT_WinFNT_HeaderRec"},{"location":"ft2-winfnt_fonts.html#ft_winfnt_header","text":"Defined in FT_WINFONTS_H (freetype/ftwinfnt.h). typedef struct FT_WinFNT_HeaderRec_* FT_WinFNT_Header ; A handle to an FT_WinFNT_HeaderRec structure.","title":"FT_WinFNT_Header"},{"location":"ft2-winfnt_fonts.html#ft_get_winfnt_header","text":"Defined in FT_WINFONTS_H (freetype/ftwinfnt.h). FT_EXPORT( FT_Error ) FT_Get_WinFNT_Header ( FT_Face face, FT_WinFNT_HeaderRec *aheader ); Retrieve a Windows FNT font info header.","title":"FT_Get_WinFNT_Header"}]} \ No newline at end of file
+{"config":{"indexing":"full","lang":["en"],"min_search_length":3,"prebuild_index":false,"separator":"[\\s\\-]+"},"docs":[{"location":"index.html","text":"FreeType \u00bb Docs \u00bb Table of Contents FreeType-2.11.1 API Reference \u00b6 Table of Contents \u00b6 General Remarks \u00b6 Preamble What FreeType is and isn't FreeType's header inclusion scheme How client applications should include FreeType header files. User allocation How client applications should allocate FreeType data structures. Core API \u00b6 FreeType Version Functions and macros related to FreeType versions. Basic Data Types The basic data types defined by the library. Base Interface The FreeType 2 base font interface. Unicode Variation Sequences The FreeType 2 interface to Unicode Variation Sequences (UVS), using the SFNT cmap format 14. Glyph Color Management Retrieving and manipulating OpenType's \u2018CPAL\u2019 table data. Glyph Layer Management Retrieving and manipulating OpenType's \u2018COLR\u2019 table data. Glyph Management Generic interface to manage individual glyph data. Mac Specific Interface Only available on the Macintosh. Size Management Managing multiple sizes per face. Header File Macros Macro definitions used to #include specific header files. Format-Specific API \u00b6 Multiple Masters How to manage Multiple Masters fonts. TrueType Tables TrueType-specific table types and functions. Type 1 Tables Type 1-specific font tables. SFNT Names Access the names embedded in TrueType and OpenType files. BDF and PCF Files BDF and PCF specific API. CID Fonts CID-keyed font-specific API. PFR Fonts PFR/TrueDoc-specific API. Window FNT Files Windows FNT-specific API. Font Formats Getting the font format. Gasp Table Retrieving TrueType \u2018gasp\u2019 table entries. Controlling FreeType Modules \u00b6 The auto-hinter Controlling the auto-hinting module. The CFF driver Controlling the CFF driver module. The Type 1 and CID drivers Controlling the Type 1 and CID driver modules. The TrueType driver Controlling the TrueType driver module. The PCF driver Controlling the PCF driver module. Driver properties Controlling driver modules. Parameter Tags Macros for driver property and font loading parameter tags. Subpixel Rendering API to control subpixel rendering. Cache Sub-System \u00b6 Cache Sub-System How to cache face, size, and glyph data with FreeType 2. Support API \u00b6 Computations Crunching fixed numbers and vectors. List Processing Simple management of lists. Outline Processing Functions to create, transform, and render vectorial glyph images. Quick retrieval of advance values Retrieve horizontal and vertical advance values without processing glyph outlines, if possible. Bitmap Handling Handling FT_Bitmap objects. Scanline Converter How vectorial outlines are converted into bitmaps and pixmaps. Glyph Stroker Generating bordered and stroked glyphs. System Interface How FreeType manages memory and i/o. Module Management How to add, upgrade, remove, and control modules from FreeType. GZIP Streams Using gzip-compressed font files. LZW Streams Using LZW-compressed font files. BZIP2 Streams Using bzip2-compressed font files. External Debugging APIs Public APIs to control the FT_DEBUG_LOGGING macro. Error Codes \u00b6 Error Enumerations How to handle errors and error strings. Error Code Values All possible error codes returned by FreeType functions. Miscellaneous \u00b6 TrueTypeGX/AAT Validation An API to validate TrueTypeGX/AAT tables. Incremental Loading Custom Glyph Loading. The TrueType Engine TrueType bytecode support. OpenType Validation An API to validate OpenType tables. Global Index \u00b6 generated on Thu Dec 2 12:36:11 2021 UTC","title":"TOC"},{"location":"index.html#freetype-2111-api-reference","text":"","title":"FreeType-2.11.1 API Reference"},{"location":"index.html#table-of-contents","text":"","title":"Table of Contents"},{"location":"index.html#general-remarks","text":"Preamble What FreeType is and isn't FreeType's header inclusion scheme How client applications should include FreeType header files. User allocation How client applications should allocate FreeType data structures.","title":"General Remarks"},{"location":"index.html#core-api","text":"FreeType Version Functions and macros related to FreeType versions. Basic Data Types The basic data types defined by the library. Base Interface The FreeType 2 base font interface. Unicode Variation Sequences The FreeType 2 interface to Unicode Variation Sequences (UVS), using the SFNT cmap format 14. Glyph Color Management Retrieving and manipulating OpenType's \u2018CPAL\u2019 table data. Glyph Layer Management Retrieving and manipulating OpenType's \u2018COLR\u2019 table data. Glyph Management Generic interface to manage individual glyph data. Mac Specific Interface Only available on the Macintosh. Size Management Managing multiple sizes per face. Header File Macros Macro definitions used to #include specific header files.","title":"Core API"},{"location":"index.html#format-specific-api","text":"Multiple Masters How to manage Multiple Masters fonts. TrueType Tables TrueType-specific table types and functions. Type 1 Tables Type 1-specific font tables. SFNT Names Access the names embedded in TrueType and OpenType files. BDF and PCF Files BDF and PCF specific API. CID Fonts CID-keyed font-specific API. PFR Fonts PFR/TrueDoc-specific API. Window FNT Files Windows FNT-specific API. Font Formats Getting the font format. Gasp Table Retrieving TrueType \u2018gasp\u2019 table entries.","title":"Format-Specific API"},{"location":"index.html#controlling-freetype-modules","text":"The auto-hinter Controlling the auto-hinting module. The CFF driver Controlling the CFF driver module. The Type 1 and CID drivers Controlling the Type 1 and CID driver modules. The TrueType driver Controlling the TrueType driver module. The PCF driver Controlling the PCF driver module. Driver properties Controlling driver modules. Parameter Tags Macros for driver property and font loading parameter tags. Subpixel Rendering API to control subpixel rendering.","title":"Controlling FreeType Modules"},{"location":"index.html#cache-sub-system","text":"Cache Sub-System How to cache face, size, and glyph data with FreeType 2.","title":"Cache Sub-System"},{"location":"index.html#support-api","text":"Computations Crunching fixed numbers and vectors. List Processing Simple management of lists. Outline Processing Functions to create, transform, and render vectorial glyph images. Quick retrieval of advance values Retrieve horizontal and vertical advance values without processing glyph outlines, if possible. Bitmap Handling Handling FT_Bitmap objects. Scanline Converter How vectorial outlines are converted into bitmaps and pixmaps. Glyph Stroker Generating bordered and stroked glyphs. System Interface How FreeType manages memory and i/o. Module Management How to add, upgrade, remove, and control modules from FreeType. GZIP Streams Using gzip-compressed font files. LZW Streams Using LZW-compressed font files. BZIP2 Streams Using bzip2-compressed font files. External Debugging APIs Public APIs to control the FT_DEBUG_LOGGING macro.","title":"Support API"},{"location":"index.html#error-codes","text":"Error Enumerations How to handle errors and error strings. Error Code Values All possible error codes returned by FreeType functions.","title":"Error Codes"},{"location":"index.html#miscellaneous","text":"TrueTypeGX/AAT Validation An API to validate TrueTypeGX/AAT tables. Incremental Loading Custom Glyph Loading. The TrueType Engine TrueType bytecode support. OpenType Validation An API to validate OpenType tables.","title":"Miscellaneous"},{"location":"index.html#global-index","text":"generated on Thu Dec 2 12:36:11 2021 UTC","title":"Global Index"},{"location":"ft2-auto_hinter.html","text":"FreeType \u00bb Docs \u00bb Controlling FreeType Modules \u00bb The auto-hinter The auto-hinter \u00b6 Synopsis \u00b6 While FreeType's auto-hinter doesn't expose API functions by itself, it is possible to control its behaviour with FT_Property_Set and FT_Property_Get . The following lists the available properties together with the necessary macros and structures. Note that the auto-hinter's module name is \u2018autofitter\u2019 for historical reasons. Available properties are increase-x-height , no-stem-darkening (experimental), darkening-parameters (experimental), glyph-to-script-map (experimental), fallback-script (experimental), and default-script (experimental), as documented in the \u2018 Driver properties \u2019 section.","title":"The auto-hinter"},{"location":"ft2-auto_hinter.html#the-auto-hinter","text":"","title":"The auto-hinter"},{"location":"ft2-auto_hinter.html#synopsis","text":"While FreeType's auto-hinter doesn't expose API functions by itself, it is possible to control its behaviour with FT_Property_Set and FT_Property_Get . The following lists the available properties together with the necessary macros and structures. Note that the auto-hinter's module name is \u2018autofitter\u2019 for historical reasons. Available properties are increase-x-height , no-stem-darkening (experimental), darkening-parameters (experimental), glyph-to-script-map (experimental), fallback-script (experimental), and default-script (experimental), as documented in the \u2018 Driver properties \u2019 section.","title":"Synopsis"},{"location":"ft2-base_interface.html","text":"FreeType \u00bb Docs \u00bb Core API \u00bb Base Interface Base Interface \u00b6 Synopsis \u00b6 This section describes the most important public high-level API functions of FreeType 2. FT_Library \u00b6 Defined in FT_FREETYPE_H (freetype/freetype.h). typedef struct FT_LibraryRec_ * FT_Library ; A handle to a FreeType library instance. Each \u2018library\u2019 is completely independent from the others; it is the \u2018root\u2019 of a set of objects like fonts, faces, sizes, etc. It also embeds a memory manager (see FT_Memory ), as well as a scan-line converter object (see FT_Raster ). [Since 2.5.6] In multi-threaded applications it is easiest to use one FT_Library object per thread. In case this is too cumbersome, a single FT_Library object across threads is possible also, as long as a mutex lock is used around FT_New_Face and FT_Done_Face . note Library objects are normally created by FT_Init_FreeType , and destroyed with FT_Done_FreeType . If you need reference-counting (cf. FT_Reference_Library ), use FT_New_Library and FT_Done_Library . FT_Face \u00b6 Defined in FT_FREETYPE_H (freetype/freetype.h). typedef struct FT_FaceRec_* FT_Face ; A handle to a typographic face object. A face object models a given typeface, in a given style. note A face object also owns a single FT_GlyphSlot object, as well as one or more FT_Size objects. Use FT_New_Face or FT_Open_Face to create a new face object from a given filepath or a custom input stream. Use FT_Done_Face to destroy it (along with its slot and sizes). An FT_Face object can only be safely used from one thread at a time. Similarly, creation and destruction of FT_Face with the same FT_Library object can only be done from one thread at a time. On the other hand, functions like FT_Load_Glyph and its siblings are thread-safe and do not need the lock to be held as long as the same FT_Face object is not used from multiple threads at the same time. also See FT_FaceRec for the publicly accessible fields of a given face object. FT_Size \u00b6 Defined in FT_FREETYPE_H (freetype/freetype.h). typedef struct FT_SizeRec_* FT_Size ; A handle to an object that models a face scaled to a given character size. note An FT_Face has one active FT_Size object that is used by functions like FT_Load_Glyph to determine the scaling transformation that in turn is used to load and hint glyphs and metrics. You can use FT_Set_Char_Size , FT_Set_Pixel_Sizes , FT_Request_Size or even FT_Select_Size to change the content (i.e., the scaling values) of the active FT_Size . You can use FT_New_Size to create additional size objects for a given FT_Face , but they won't be used by other functions until you activate it through FT_Activate_Size . Only one size can be activated at any given time per face. also See FT_SizeRec for the publicly accessible fields of a given size object. FT_GlyphSlot \u00b6 Defined in FT_FREETYPE_H (freetype/freetype.h). typedef struct FT_GlyphSlotRec_* FT_GlyphSlot ; A handle to a given \u2018glyph slot\u2019. A slot is a container that can hold any of the glyphs contained in its parent face. In other words, each time you call FT_Load_Glyph or FT_Load_Char , the slot's content is erased by the new glyph data, i.e., the glyph's metrics, its image (bitmap or outline), and other control information. also See FT_GlyphSlotRec for the publicly accessible glyph fields. FT_CharMap \u00b6 Defined in FT_FREETYPE_H (freetype/freetype.h). typedef struct FT_CharMapRec_* FT_CharMap ; A handle to a character map (usually abbreviated to \u2018charmap\u2019). A charmap is used to translate character codes in a given encoding into glyph indexes for its parent's face. Some font formats may provide several charmaps per font. Each face object owns zero or more charmaps, but only one of them can be \u2018active\u2019, providing the data used by FT_Get_Char_Index or FT_Load_Char . The list of available charmaps in a face is available through the face->num_charmaps and face->charmaps fields of FT_FaceRec . The currently active charmap is available as face->charmap . You should call FT_Set_Charmap to change it. note When a new face is created (either through FT_New_Face or FT_Open_Face ), the library looks for a Unicode charmap within the list and automatically activates it. If there is no Unicode charmap, FreeType doesn't set an \u2018active\u2019 charmap. also See FT_CharMapRec for the publicly accessible fields of a given character map. FT_Encoding \u00b6 Defined in FT_FREETYPE_H (freetype/freetype.h). typedef enum FT_Encoding_ { FT_ENC_TAG ( FT_ENCODING_NONE , 0, 0, 0, 0 ), FT_ENC_TAG ( FT_ENCODING_MS_SYMBOL , 's', 'y', 'm', 'b' ), FT_ENC_TAG ( FT_ENCODING_UNICODE , 'u', 'n', 'i', 'c' ), FT_ENC_TAG ( FT_ENCODING_SJIS , 's', 'j', 'i', 's' ), FT_ENC_TAG ( FT_ENCODING_PRC , 'g', 'b', ' ', ' ' ), FT_ENC_TAG ( FT_ENCODING_BIG5 , 'b', 'i', 'g', '5' ), FT_ENC_TAG ( FT_ENCODING_WANSUNG , 'w', 'a', 'n', 's' ), FT_ENC_TAG ( FT_ENCODING_JOHAB , 'j', 'o', 'h', 'a' ), /* for backward compatibility */ FT_ENCODING_GB2312 = FT_ENCODING_PRC , FT_ENCODING_MS_SJIS = FT_ENCODING_SJIS , FT_ENCODING_MS_GB2312 = FT_ENCODING_PRC , FT_ENCODING_MS_BIG5 = FT_ENCODING_BIG5 , FT_ENCODING_MS_WANSUNG = FT_ENCODING_WANSUNG , FT_ENCODING_MS_JOHAB = FT_ENCODING_JOHAB , FT_ENC_TAG ( FT_ENCODING_ADOBE_STANDARD , 'A', 'D', 'O', 'B' ), FT_ENC_TAG ( FT_ENCODING_ADOBE_EXPERT , 'A', 'D', 'B', 'E' ), FT_ENC_TAG ( FT_ENCODING_ADOBE_CUSTOM , 'A', 'D', 'B', 'C' ), FT_ENC_TAG ( FT_ENCODING_ADOBE_LATIN_1 , 'l', 'a', 't', '1' ), FT_ENC_TAG ( FT_ENCODING_OLD_LATIN_2 , 'l', 'a', 't', '2' ), FT_ENC_TAG ( FT_ENCODING_APPLE_ROMAN , 'a', 'r', 'm', 'n' ) } FT_Encoding ; /* these constants are deprecated; use the corresponding ` FT_Encoding ` */ /* values instead */ # define ft_encoding_none FT_ENCODING_NONE # define ft_encoding_unicode FT_ENCODING_UNICODE # define ft_encoding_symbol FT_ENCODING_MS_SYMBOL # define ft_encoding_latin_1 FT_ENCODING_ADOBE_LATIN_1 # define ft_encoding_latin_2 FT_ENCODING_OLD_LATIN_2 # define ft_encoding_sjis FT_ENCODING_SJIS # define ft_encoding_gb2312 FT_ENCODING_PRC # define ft_encoding_big5 FT_ENCODING_BIG5 # define ft_encoding_wansung FT_ENCODING_WANSUNG # define ft_encoding_johab FT_ENCODING_JOHAB # define ft_encoding_adobe_standard FT_ENCODING_ADOBE_STANDARD # define ft_encoding_adobe_expert FT_ENCODING_ADOBE_EXPERT # define ft_encoding_adobe_custom FT_ENCODING_ADOBE_CUSTOM # define ft_encoding_apple_roman FT_ENCODING_APPLE_ROMAN An enumeration to specify character sets supported by charmaps. Used in the FT_Select_Charmap API function. note Despite the name, this enumeration lists specific character repertories (i.e., charsets), and not text encoding methods (e.g., UTF-8, UTF-16, etc.). Other encodings might be defined in the future. values FT_ENCODING_NONE The encoding value 0 is reserved for all formats except BDF, PCF, and Windows FNT; see below for more information. FT_ENCODING_UNICODE The Unicode character set. This value covers all versions of the Unicode repertoire, including ASCII and Latin-1. Most fonts include a Unicode charmap, but not all of them. For example, if you want to access Unicode value U+1F028 (and the font contains it), use value 0x1F028 as the input value for FT_Get_Char_Index . FT_ENCODING_MS_SYMBOL Microsoft Symbol encoding, used to encode mathematical symbols and wingdings. For more information, see \u2018 https://www.microsoft.com/typography/otspec/recom.htm#non-standard-symbol-fonts \u2019, \u2018 http://www.kostis.net/charsets/symbol.htm \u2019, and \u2018 http://www.kostis.net/charsets/wingding.htm \u2019. This encoding uses character codes from the PUA (Private Unicode Area) in the range U+F020-U+F0FF. FT_ENCODING_SJIS Shift JIS encoding for Japanese. More info at \u2018 https://en.wikipedia.org/wiki/Shift_JIS \u2019. See note on multi-byte encodings below. FT_ENCODING_PRC Corresponds to encoding systems mainly for Simplified Chinese as used in People's Republic of China (PRC). The encoding layout is based on GB 2312 and its supersets GBK and GB 18030. FT_ENCODING_BIG5 Corresponds to an encoding system for Traditional Chinese as used in Taiwan and Hong Kong. FT_ENCODING_WANSUNG Corresponds to the Korean encoding system known as Extended Wansung (MS Windows code page 949). For more information see \u2018 https://www.unicode.org/Public/MAPPINGS/VENDORS/MICSFT/WindowsBestFit/bestfit949.txt \u2019. FT_ENCODING_JOHAB The Korean standard character set (KS C 5601-1992), which corresponds to MS Windows code page 1361. This character set includes all possible Hangul character combinations. FT_ENCODING_ADOBE_LATIN_1 Corresponds to a Latin-1 encoding as defined in a Type 1 PostScript font. It is limited to 256 character codes. FT_ENCODING_ADOBE_STANDARD Adobe Standard encoding, as found in Type 1, CFF, and OpenType/CFF fonts. It is limited to 256 character codes. FT_ENCODING_ADOBE_EXPERT Adobe Expert encoding, as found in Type 1, CFF, and OpenType/CFF fonts. It is limited to 256 character codes. FT_ENCODING_ADOBE_CUSTOM Corresponds to a custom encoding, as found in Type 1, CFF, and OpenType/CFF fonts. It is limited to 256 character codes. FT_ENCODING_APPLE_ROMAN Apple roman encoding. Many TrueType and OpenType fonts contain a charmap for this 8-bit encoding, since older versions of Mac OS are able to use it. FT_ENCODING_OLD_LATIN_2 This value is deprecated and was neither used nor reported by FreeType. Don't use or test for it. FT_ENCODING_MS_SJIS Same as FT_ENCODING_SJIS. Deprecated. FT_ENCODING_MS_GB2312 Same as FT_ENCODING_PRC. Deprecated. FT_ENCODING_MS_BIG5 Same as FT_ENCODING_BIG5. Deprecated. FT_ENCODING_MS_WANSUNG Same as FT_ENCODING_WANSUNG. Deprecated. FT_ENCODING_MS_JOHAB Same as FT_ENCODING_JOHAB. Deprecated. note When loading a font, FreeType makes a Unicode charmap active if possible (either if the font provides such a charmap, or if FreeType can synthesize one from PostScript glyph name dictionaries; in either case, the charmap is tagged with FT_ENCODING_UNICODE ). If such a charmap is synthesized, it is placed at the first position of the charmap array. All other encodings are considered legacy and tagged only if explicitly defined in the font file. Otherwise, FT_ENCODING_NONE is used. FT_ENCODING_NONE is set by the BDF and PCF drivers if the charmap is neither Unicode nor ISO-8859-1 (otherwise it is set to FT_ENCODING_UNICODE ). Use FT_Get_BDF_Charset_ID to find out which encoding is really present. If, for example, the cs_registry field is \u2018KOI8\u2019 and the cs_encoding field is \u2018R\u2019, the font is encoded in KOI8-R. FT_ENCODING_NONE is always set (with a single exception) by the winfonts driver. Use FT_Get_WinFNT_Header and examine the charset field of the FT_WinFNT_HeaderRec structure to find out which encoding is really present. For example, FT_WinFNT_ID_CP1251 (204) means Windows code page 1251 (for Russian). FT_ENCODING_NONE is set if platform_id is TT_PLATFORM_MACINTOSH and encoding_id is not TT_MAC_ID_ROMAN (otherwise it is set to FT_ENCODING_APPLE_ROMAN ). If platform_id is TT_PLATFORM_MACINTOSH , use the function FT_Get_CMap_Language_ID to query the Mac language ID that may be needed to be able to distinguish Apple encoding variants. See https://www.unicode.org/Public/MAPPINGS/VENDORS/APPLE/Readme.txt to get an idea how to do that. Basically, if the language ID is 0, don't use it, otherwise subtract 1 from the language ID. Then examine encoding_id . If, for example, encoding_id is TT_MAC_ID_ROMAN and the language ID (minus 1) is TT_MAC_LANGID_GREEK , it is the Greek encoding, not Roman. TT_MAC_ID_ARABIC with TT_MAC_LANGID_FARSI means the Farsi variant the Arabic encoding. FT_ENC_TAG \u00b6 Defined in FT_FREETYPE_H (freetype/freetype.h). # ifndef FT_ENC_TAG # define FT_ENC_TAG ( value, a, b, c, d ) \\ value = ( ( FT_STATIC_BYTE_CAST( FT_UInt32 , a ) << 24 ) | \\ ( FT_STATIC_BYTE_CAST( FT_UInt32 , b ) << 16 ) | \\ ( FT_STATIC_BYTE_CAST( FT_UInt32 , c ) << 8 ) | \\ FT_STATIC_BYTE_CAST( FT_UInt32 , d ) ) # endif /* FT_ENC_TAG */ This macro converts four-letter tags into an unsigned long. It is used to define \u2018encoding\u2019 identifiers (see FT_Encoding ). note Since many 16-bit compilers don't like 32-bit enumerations, you should redefine this macro in case of problems to something like this: #define FT_ENC_TAG( value, a, b, c, d ) value to get a simple enumeration without assigning special numbers. FT_FaceRec \u00b6 Defined in FT_FREETYPE_H (freetype/freetype.h). typedef struct FT_FaceRec_ { FT_Long num_faces; FT_Long face_index; FT_Long face_flags; FT_Long style_flags; FT_Long num_glyphs; FT_String * family_name; FT_String * style_name; FT_Int num_fixed_sizes; FT_Bitmap_Size * available_sizes; FT_Int num_charmaps; FT_CharMap * charmaps; FT_Generic generic; /*# The following member variables (down to `underline_thickness`) */ /*# are only relevant to scalable outlines; cf. @ FT_Bitmap_Size */ /*# for bitmap fonts. */ FT_BBox bbox; FT_UShort units_per_EM; FT_Short ascender; FT_Short descender; FT_Short height; FT_Short max_advance_width; FT_Short max_advance_height; FT_Short underline_position; FT_Short underline_thickness; FT_GlyphSlot glyph; FT_Size size; FT_CharMap charmap; /*@private begin */ FT_Driver driver; FT_Memory memory; FT_Stream stream; FT_ListRec sizes_list; FT_Generic autohint; /* face-specific auto-hinter data */ void * extensions; /* unused */ FT_Face_Internal internal; /*@private end */ } FT_FaceRec ; FreeType root face class structure. A face object models a typeface in a font file. fields num_faces The number of faces in the font file. Some font formats can have multiple faces in a single font file. face_index This field holds two different values. Bits 0-15 are the index of the face in the font file (starting with value 0). They are set to 0 if there is only one face in the font file. [Since 2.6.1] Bits 16-30 are relevant to GX and OpenType variation fonts only, holding the named instance index for the current face index (starting with value 1; value 0 indicates font access without a named instance). For non-variation fonts, bits 16-30 are ignored. If we have the third named instance of face 4, say, face_index is set to 0x00030004. Bit 31 is always zero (this is, face_index is always a positive value). [Since 2.9] Changing the design coordinates with FT_Set_Var_Design_Coordinates or FT_Set_Var_Blend_Coordinates does not influence the named instance index value (only FT_Set_Named_Instance does that). face_flags A set of bit flags that give important information about the face; see FT_FACE_FLAG_XXX for the details. style_flags The lower 16 bits contain a set of bit flags indicating the style of the face; see FT_STYLE_FLAG_XXX for the details. [Since 2.6.1] Bits 16-30 hold the number of named instances available for the current face if we have a GX or OpenType variation (sub)font. Bit 31 is always zero (this is, style_flags is always a positive value). Note that a variation font has always at least one named instance, namely the default instance. num_glyphs The number of glyphs in the face. If the face is scalable and has sbits (see num_fixed_sizes ), it is set to the number of outline glyphs. For CID-keyed fonts (not in an SFNT wrapper) this value gives the highest CID used in the font. family_name The face's family name. This is an ASCII string, usually in English, that describes the typeface's family (like \u2018Times New Roman\u2019, \u2018Bodoni\u2019, \u2018Garamond\u2019, etc). This is a least common denominator used to list fonts. Some formats (TrueType & OpenType) provide localized and Unicode versions of this string. Applications should use the format-specific interface to access them. Can be NULL (e.g., in fonts embedded in a PDF file). In case the font doesn't provide a specific family name entry, FreeType tries to synthesize one, deriving it from other name entries. style_name The face's style name. This is an ASCII string, usually in English, that describes the typeface's style (like \u2018Italic\u2019, \u2018Bold\u2019, \u2018Condensed\u2019, etc). Not all font formats provide a style name, so this field is optional, and can be set to NULL . As for family_name , some formats provide localized and Unicode versions of this string. Applications should use the format-specific interface to access them. num_fixed_sizes The number of bitmap strikes in the face. Even if the face is scalable, there might still be bitmap strikes, which are called \u2018sbits\u2019 in that case. available_sizes An array of FT_Bitmap_Size for all bitmap strikes in the face. It is set to NULL if there is no bitmap strike. Note that FreeType tries to sanitize the strike data since they are sometimes sloppy or incorrect, but this can easily fail. num_charmaps The number of charmaps in the face. charmaps An array of the charmaps of the face. generic A field reserved for client uses. See the FT_Generic type description. bbox The font bounding box. Coordinates are expressed in font units (see units_per_EM ). The box is large enough to contain any glyph from the font. Thus, bbox.yMax can be seen as the \u2018maximum ascender\u2019, and bbox.yMin as the \u2018minimum descender\u2019. Only relevant for scalable formats. Note that the bounding box might be off by (at least) one pixel for hinted fonts. See FT_Size_Metrics for further discussion. Note that the bounding box does not vary in OpenType variable fonts and should only be used in relation to the default instance. units_per_EM The number of font units per EM square for this face. This is typically 2048 for TrueType fonts, and 1000 for Type 1 fonts. Only relevant for scalable formats. ascender The typographic ascender of the face, expressed in font units. For font formats not having this information, it is set to bbox.yMax . Only relevant for scalable formats. descender The typographic descender of the face, expressed in font units. For font formats not having this information, it is set to bbox.yMin . Note that this field is negative for values below the baseline. Only relevant for scalable formats. height This value is the vertical distance between two consecutive baselines, expressed in font units. It is always positive. Only relevant for scalable formats. If you want the global glyph height, use ascender - descender . max_advance_width The maximum advance width, in font units, for all glyphs in this face. This can be used to make word wrapping computations faster. Only relevant for scalable formats. max_advance_height The maximum advance height, in font units, for all glyphs in this face. This is only relevant for vertical layouts, and is set to height for fonts that do not provide vertical metrics. Only relevant for scalable formats. underline_position The position, in font units, of the underline line for this face. It is the center of the underlining stem. Only relevant for scalable formats. underline_thickness The thickness, in font units, of the underline for this face. Only relevant for scalable formats. glyph The face's associated glyph slot(s). size The current active size for this face. charmap The current active charmap for this face. note Fields may be changed after a call to FT_Attach_File or FT_Attach_Stream . For an OpenType variation font, the values of the following fields can change after a call to FT_Set_Var_Design_Coordinates (and friends) if the font contains an \u2018MVAR\u2019 table: ascender , descender , height , underline_position , and underline_thickness . Especially for TrueType fonts see also the documentation for FT_Size_Metrics . FT_HAS_HORIZONTAL \u00b6 Defined in FT_FREETYPE_H (freetype/freetype.h). # define FT_HAS_HORIZONTAL ( face ) \\ ( !!( (face)->face_flags & FT_FACE_FLAG_HORIZONTAL ) ) A macro that returns true whenever a face object contains horizontal metrics (this is true for all font formats though). also FT_HAS_VERTICAL can be used to check for vertical metrics. FT_HAS_VERTICAL \u00b6 Defined in FT_FREETYPE_H (freetype/freetype.h). # define FT_HAS_VERTICAL ( face ) \\ ( !!( (face)->face_flags & FT_FACE_FLAG_VERTICAL ) ) A macro that returns true whenever a face object contains real vertical metrics (and not only synthesized ones). FT_HAS_KERNING \u00b6 Defined in FT_FREETYPE_H (freetype/freetype.h). # define FT_HAS_KERNING ( face ) \\ ( !!( (face)->face_flags & FT_FACE_FLAG_KERNING ) ) A macro that returns true whenever a face object contains kerning data that can be accessed with FT_Get_Kerning . FT_HAS_FIXED_SIZES \u00b6 Defined in FT_FREETYPE_H (freetype/freetype.h). # define FT_HAS_FIXED_SIZES ( face ) \\ ( !!( (face)->face_flags & FT_FACE_FLAG_FIXED_SIZES ) ) A macro that returns true whenever a face object contains some embedded bitmaps. See the available_sizes field of the FT_FaceRec structure. FT_HAS_GLYPH_NAMES \u00b6 Defined in FT_FREETYPE_H (freetype/freetype.h). # define FT_HAS_GLYPH_NAMES ( face ) \\ ( !!( (face)->face_flags & FT_FACE_FLAG_GLYPH_NAMES ) ) A macro that returns true whenever a face object contains some glyph names that can be accessed through FT_Get_Glyph_Name . FT_HAS_COLOR \u00b6 Defined in FT_FREETYPE_H (freetype/freetype.h). # define FT_HAS_COLOR ( face ) \\ ( !!( (face)->face_flags & FT_FACE_FLAG_COLOR ) ) A macro that returns true whenever a face object contains tables for color glyphs. since 2.5.1 FT_HAS_MULTIPLE_MASTERS \u00b6 Defined in FT_FREETYPE_H (freetype/freetype.h). # define FT_HAS_MULTIPLE_MASTERS ( face ) \\ ( !!( (face)->face_flags & FT_FACE_FLAG_MULTIPLE_MASTERS ) ) A macro that returns true whenever a face object contains some multiple masters. The functions provided by FT_MULTIPLE_MASTERS_H are then available to choose the exact design you want. FT_IS_SFNT \u00b6 Defined in FT_FREETYPE_H (freetype/freetype.h). # define FT_IS_SFNT ( face ) \\ ( !!( (face)->face_flags & FT_FACE_FLAG_SFNT ) ) A macro that returns true whenever a face object contains a font whose format is based on the SFNT storage scheme. This usually means: TrueType fonts, OpenType fonts, as well as SFNT-based embedded bitmap fonts. If this macro is true, all functions defined in FT_SFNT_NAMES_H and FT_TRUETYPE_TABLES_H are available. FT_IS_SCALABLE \u00b6 Defined in FT_FREETYPE_H (freetype/freetype.h). # define FT_IS_SCALABLE ( face ) \\ ( !!( (face)->face_flags & FT_FACE_FLAG_SCALABLE ) ) A macro that returns true whenever a face object contains a scalable font face (true for TrueType, Type 1, Type 42, CID, OpenType/CFF, and PFR font formats). FT_IS_FIXED_WIDTH \u00b6 Defined in FT_FREETYPE_H (freetype/freetype.h). # define FT_IS_FIXED_WIDTH ( face ) \\ ( !!( (face)->face_flags & FT_FACE_FLAG_FIXED_WIDTH ) ) A macro that returns true whenever a face object contains a font face that contains fixed-width (or \u2018monospace\u2019, \u2018fixed-pitch\u2019, etc.) glyphs. FT_IS_CID_KEYED \u00b6 Defined in FT_FREETYPE_H (freetype/freetype.h). # define FT_IS_CID_KEYED ( face ) \\ ( !!( (face)->face_flags & FT_FACE_FLAG_CID_KEYED ) ) A macro that returns true whenever a face object contains a CID-keyed font. See the discussion of FT_FACE_FLAG_CID_KEYED for more details. If this macro is true, all functions defined in FT_CID_H are available. FT_IS_TRICKY \u00b6 Defined in FT_FREETYPE_H (freetype/freetype.h). # define FT_IS_TRICKY ( face ) \\ ( !!( (face)->face_flags & FT_FACE_FLAG_TRICKY ) ) A macro that returns true whenever a face represents a \u2018tricky\u2019 font. See the discussion of FT_FACE_FLAG_TRICKY for more details. FT_IS_NAMED_INSTANCE \u00b6 Defined in FT_FREETYPE_H (freetype/freetype.h). # define FT_IS_NAMED_INSTANCE ( face ) \\ ( !!( (face)->face_index & 0x7FFF0000L ) ) A macro that returns true whenever a face object is a named instance of a GX or OpenType variation font. [Since 2.9] Changing the design coordinates with FT_Set_Var_Design_Coordinates or FT_Set_Var_Blend_Coordinates does not influence the return value of this macro (only FT_Set_Named_Instance does that). since 2.7 FT_IS_VARIATION \u00b6 Defined in FT_FREETYPE_H (freetype/freetype.h). # define FT_IS_VARIATION ( face ) \\ ( !!( (face)->face_flags & FT_FACE_FLAG_VARIATION ) ) A macro that returns true whenever a face object has been altered by FT_Set_MM_Design_Coordinates , FT_Set_Var_Design_Coordinates , or FT_Set_Var_Blend_Coordinates . since 2.9 FT_SizeRec \u00b6 Defined in FT_FREETYPE_H (freetype/freetype.h). typedef struct FT_SizeRec_ { FT_Face face; /* parent face object */ FT_Generic generic; /* generic pointer for client uses */ FT_Size_Metrics metrics; /* size metrics */ FT_Size_Internal internal; } FT_SizeRec ; FreeType root size class structure. A size object models a face object at a given size. fields face Handle to the parent face object. generic A typeless pointer, unused by the FreeType library or any of its drivers. It can be used by client applications to link their own data to each size object. metrics Metrics for this size object. This field is read-only. FT_Size_Metrics \u00b6 Defined in FT_FREETYPE_H (freetype/freetype.h). typedef struct FT_Size_Metrics_ { FT_UShort x_ppem; /* horizontal pixels per EM */ FT_UShort y_ppem; /* vertical pixels per EM */ FT_Fixed x_scale; /* scaling values used to convert font */ FT_Fixed y_scale; /* units to 26.6 fractional pixels */ FT_Pos ascender; /* ascender in 26.6 frac. pixels */ FT_Pos descender; /* descender in 26.6 frac. pixels */ FT_Pos height; /* text height in 26.6 frac. pixels */ FT_Pos max_advance; /* max horizontal advance, in 26.6 pixels */ } FT_Size_Metrics ; The size metrics structure gives the metrics of a size object. fields x_ppem The width of the scaled EM square in pixels, hence the term \u2018ppem\u2019 (pixels per EM). It is also referred to as \u2018nominal width\u2019. y_ppem The height of the scaled EM square in pixels, hence the term \u2018ppem\u2019 (pixels per EM). It is also referred to as \u2018nominal height\u2019. x_scale A 16.16 fractional scaling value to convert horizontal metrics from font units to 26.6 fractional pixels. Only relevant for scalable font formats. y_scale A 16.16 fractional scaling value to convert vertical metrics from font units to 26.6 fractional pixels. Only relevant for scalable font formats. ascender The ascender in 26.6 fractional pixels, rounded up to an integer value. See FT_FaceRec for the details. descender The descender in 26.6 fractional pixels, rounded down to an integer value. See FT_FaceRec for the details. height The height in 26.6 fractional pixels, rounded to an integer value. See FT_FaceRec for the details. max_advance The maximum advance width in 26.6 fractional pixels, rounded to an integer value. See FT_FaceRec for the details. note The scaling values, if relevant, are determined first during a size changing operation. The remaining fields are then set by the driver. For scalable formats, they are usually set to scaled values of the corresponding fields in FT_FaceRec . Some values like ascender or descender are rounded for historical reasons; more precise values (for outline fonts) can be derived by scaling the corresponding FT_FaceRec values manually, with code similar to the following. scaled_ascender = FT_MulFix( face->ascender, size_metrics->y_scale ); Note that due to glyph hinting and the selected rendering mode these values are usually not exact; consequently, they must be treated as unreliable with an error margin of at least one pixel! Indeed, the only way to get the exact metrics is to render all glyphs. As this would be a definite performance hit, it is up to client applications to perform such computations. The FT_Size_Metrics structure is valid for bitmap fonts also. TrueType fonts with native bytecode hinting All applications that handle TrueType fonts with native hinting must be aware that TTFs expect different rounding of vertical font dimensions. The application has to cater for this, especially if it wants to rely on a TTF's vertical data (for example, to properly align box characters vertically). Only the application knows in advance that it is going to use native hinting for TTFs! FreeType, on the other hand, selects the hinting mode not at the time of creating an FT_Size object but much later, namely while calling FT_Load_Glyph . Here is some pseudo code that illustrates a possible solution. font_format = FT_Get_Font_Format( face ); if ( !strcmp( font_format, \"TrueType\" ) && do_native_bytecode_hinting ) { ascender = ROUND( FT_MulFix( face->ascender, size_metrics->y_scale ) ); descender = ROUND( FT_MulFix( face->descender, size_metrics->y_scale ) ); } else { ascender = size_metrics->ascender; descender = size_metrics->descender; } height = size_metrics->height; max_advance = size_metrics->max_advance; FT_GlyphSlotRec \u00b6 Defined in FT_FREETYPE_H (freetype/freetype.h). typedef struct FT_GlyphSlotRec_ { FT_Library library; FT_Face face; FT_GlyphSlot next; FT_UInt glyph_index; /* new in 2.10; was reserved previously */ FT_Generic generic; FT_Glyph_Metrics metrics; FT_Fixed linearHoriAdvance; FT_Fixed linearVertAdvance; FT_Vector advance; FT_Glyph_Format format; FT_Bitmap bitmap; FT_Int bitmap_left; FT_Int bitmap_top; FT_Outline outline; FT_UInt num_subglyphs; FT_SubGlyph subglyphs; void * control_data; long control_len; FT_Pos lsb_delta; FT_Pos rsb_delta; void * other; FT_Slot_Internal internal; } FT_GlyphSlotRec ; FreeType root glyph slot class structure. A glyph slot is a container where individual glyphs can be loaded, be they in outline or bitmap format. fields library A handle to the FreeType library instance this slot belongs to. face A handle to the parent face object. next In some cases (like some font tools), several glyph slots per face object can be a good thing. As this is rare, the glyph slots are listed through a direct, single-linked list using its next field. glyph_index [Since 2.10] The glyph index passed as an argument to FT_Load_Glyph while initializing the glyph slot. generic A typeless pointer unused by the FreeType library or any of its drivers. It can be used by client applications to link their own data to each glyph slot object. metrics The metrics of the last loaded glyph in the slot. The returned values depend on the last load flags (see the FT_Load_Glyph API function) and can be expressed either in 26.6 fractional pixels or font units. Note that even when the glyph image is transformed, the metrics are not. linearHoriAdvance The advance width of the unhinted glyph. Its value is expressed in 16.16 fractional pixels, unless FT_LOAD_LINEAR_DESIGN is set when loading the glyph. This field can be important to perform correct WYSIWYG layout. Only relevant for outline glyphs. linearVertAdvance The advance height of the unhinted glyph. Its value is expressed in 16.16 fractional pixels, unless FT_LOAD_LINEAR_DESIGN is set when loading the glyph. This field can be important to perform correct WYSIWYG layout. Only relevant for outline glyphs. advance This shorthand is, depending on FT_LOAD_IGNORE_TRANSFORM , the transformed (hinted) advance width for the glyph, in 26.6 fractional pixel format. As specified with FT_LOAD_VERTICAL_LAYOUT , it uses either the horiAdvance or the vertAdvance value of metrics field. format This field indicates the format of the image contained in the glyph slot. Typically FT_GLYPH_FORMAT_BITMAP , FT_GLYPH_FORMAT_OUTLINE , or FT_GLYPH_FORMAT_COMPOSITE , but other values are possible. bitmap This field is used as a bitmap descriptor. Note that the address and content of the bitmap buffer can change between calls of FT_Load_Glyph and a few other functions. bitmap_left The bitmap's left bearing expressed in integer pixels. bitmap_top The bitmap's top bearing expressed in integer pixels. This is the distance from the baseline to the top-most glyph scanline, upwards y coordinates being positive . outline The outline descriptor for the current glyph image if its format is FT_GLYPH_FORMAT_OUTLINE . Once a glyph is loaded, outline can be transformed, distorted, emboldened, etc. However, it must not be freed. [Since 2.10.1] If FT_LOAD_NO_SCALE is set, outline coordinates of OpenType variation fonts for a selected instance are internally handled as 26.6 fractional font units but returned as (rounded) integers, as expected. To get unrounded font units, don't use FT_LOAD_NO_SCALE but load the glyph with FT_LOAD_NO_HINTING and scale it, using the font's units_per_EM value as the ppem. num_subglyphs The number of subglyphs in a composite glyph. This field is only valid for the composite glyph format that should normally only be loaded with the FT_LOAD_NO_RECURSE flag. subglyphs An array of subglyph descriptors for composite glyphs. There are num_subglyphs elements in there. Currently internal to FreeType. control_data Certain font drivers can also return the control data for a given glyph image (e.g. TrueType bytecode, Type 1 charstrings, etc.). This field is a pointer to such data; it is currently internal to FreeType. control_len This is the length in bytes of the control data. Currently internal to FreeType. other Reserved. lsb_delta The difference between hinted and unhinted left side bearing while auto-hinting is active. Zero otherwise. rsb_delta The difference between hinted and unhinted right side bearing while auto-hinting is active. Zero otherwise. note If FT_Load_Glyph is called with default flags (see FT_LOAD_DEFAULT ) the glyph image is loaded in the glyph slot in its native format (e.g., an outline glyph for TrueType and Type 1 formats). [Since 2.9] The prospective bitmap metrics are calculated according to FT_LOAD_TARGET_XXX and other flags even for the outline glyph, even if FT_LOAD_RENDER is not set. This image can later be converted into a bitmap by calling FT_Render_Glyph . This function searches the current renderer for the native image's format, then invokes it. The renderer is in charge of transforming the native image through the slot's face transformation fields, then converting it into a bitmap that is returned in slot->bitmap . Note that slot->bitmap_left and slot->bitmap_top are also used to specify the position of the bitmap relative to the current pen position (e.g., coordinates (0,0) on the baseline). Of course, slot->format is also changed to FT_GLYPH_FORMAT_BITMAP . Here is a small pseudo code fragment that shows how to use lsb_delta and rsb_delta to do fractional positioning of glyphs: FT_GlyphSlot slot = face->glyph; FT_Pos origin_x = 0; for all glyphs do <load glyph with `FT_Load_Glyph'> FT_Outline_Translate( slot->outline, origin_x & 63, 0 ); <save glyph image, or render glyph, or ...> <compute kern between current and next glyph and add it to `origin_x'> origin_x += slot->advance.x; origin_x += slot->lsb_delta - slot->rsb_delta; endfor Here is another small pseudo code fragment that shows how to use lsb_delta and rsb_delta to improve integer positioning of glyphs: FT_GlyphSlot slot = face->glyph; FT_Pos origin_x = 0; FT_Pos prev_rsb_delta = 0; for all glyphs do <compute kern between current and previous glyph and add it to `origin_x'> <load glyph with `FT_Load_Glyph'> if ( prev_rsb_delta - slot->lsb_delta > 32 ) origin_x -= 64; else if ( prev_rsb_delta - slot->lsb_delta < -31 ) origin_x += 64; prev_rsb_delta = slot->rsb_delta; <save glyph image, or render glyph, or ...> origin_x += slot->advance.x; endfor If you use strong auto-hinting, you must apply these delta values! Otherwise you will experience far too large inter-glyph spacing at small rendering sizes in most cases. Note that it doesn't harm to use the above code for other hinting modes also, since the delta values are zero then. FT_Glyph_Metrics \u00b6 Defined in FT_FREETYPE_H (freetype/freetype.h). typedef struct FT_Glyph_Metrics_ { FT_Pos width; FT_Pos height; FT_Pos horiBearingX; FT_Pos horiBearingY; FT_Pos horiAdvance; FT_Pos vertBearingX; FT_Pos vertBearingY; FT_Pos vertAdvance; } FT_Glyph_Metrics ; A structure to model the metrics of a single glyph. The values are expressed in 26.6 fractional pixel format; if the flag FT_LOAD_NO_SCALE has been used while loading the glyph, values are expressed in font units instead. fields width The glyph's width. height The glyph's height. horiBearingX Left side bearing for horizontal layout. horiBearingY Top side bearing for horizontal layout. horiAdvance Advance width for horizontal layout. vertBearingX Left side bearing for vertical layout. vertBearingY Top side bearing for vertical layout. Larger positive values mean further below the vertical glyph origin. vertAdvance Advance height for vertical layout. Positive values mean the glyph has a positive advance downward. note If not disabled with FT_LOAD_NO_HINTING , the values represent dimensions of the hinted glyph (in case hinting is applicable). Stroking a glyph with an outside border does not increase horiAdvance or vertAdvance ; you have to manually adjust these values to account for the added width and height. FreeType doesn't use the \u2018VORG\u2019 table data for CFF fonts because it doesn't have an interface to quickly retrieve the glyph height. The y coordinate of the vertical origin can be simply computed as vertBearingY + height after loading a glyph. FT_SubGlyph \u00b6 Defined in FT_FREETYPE_H (freetype/freetype.h). typedef struct FT_SubGlyphRec_* FT_SubGlyph ; The subglyph structure is an internal object used to describe subglyphs (for example, in the case of composites). note The subglyph implementation is not part of the high-level API, hence the forward structure declaration. You can however retrieve subglyph information with FT_Get_SubGlyph_Info . FT_Bitmap_Size \u00b6 Defined in FT_FREETYPE_H (freetype/freetype.h). typedef struct FT_Bitmap_Size_ { FT_Short height; FT_Short width; FT_Pos size; FT_Pos x_ppem; FT_Pos y_ppem; } FT_Bitmap_Size ; This structure models the metrics of a bitmap strike (i.e., a set of glyphs for a given point size and resolution) in a bitmap font. It is used for the available_sizes field of FT_Face . fields height The vertical distance, in pixels, between two consecutive baselines. It is always positive. width The average width, in pixels, of all glyphs in the strike. size The nominal size of the strike in 26.6 fractional points. This field is not very useful. x_ppem The horizontal ppem (nominal width) in 26.6 fractional pixels. y_ppem The vertical ppem (nominal height) in 26.6 fractional pixels. note Windows FNT: The nominal size given in a FNT font is not reliable. If the driver finds it incorrect, it sets size to some calculated values, and x_ppem and y_ppem to the pixel width and height given in the font, respectively. TrueType embedded bitmaps: size , width , and height values are not contained in the bitmap strike itself. They are computed from the global font parameters. FT_Init_FreeType \u00b6 Defined in FT_FREETYPE_H (freetype/freetype.h). FT_EXPORT( FT_Error ) FT_Init_FreeType ( FT_Library *alibrary ); Initialize a new FreeType library object. The set of modules that are registered by this function is determined at build time. output alibrary A handle to a new library object. return FreeType error code. 0 means success. note In case you want to provide your own memory allocating routines, use FT_New_Library instead, followed by a call to FT_Add_Default_Modules (or a series of calls to FT_Add_Module ) and FT_Set_Default_Properties . See the documentation of FT_Library and FT_Face for multi-threading issues. If you need reference-counting (cf. FT_Reference_Library ), use FT_New_Library and FT_Done_Library . If compilation option FT_CONFIG_OPTION_ENVIRONMENT_PROPERTIES is set, this function reads the FREETYPE_PROPERTIES environment variable to control driver properties. See section \u2018 Driver properties \u2019 for more. FT_Done_FreeType \u00b6 Defined in FT_FREETYPE_H (freetype/freetype.h). FT_EXPORT( FT_Error ) FT_Done_FreeType ( FT_Library library ); Destroy a given FreeType library object and all of its children, including resources, drivers, faces, sizes, etc. input library A handle to the target library object. return FreeType error code. 0 means success. FT_New_Face \u00b6 Defined in FT_FREETYPE_H (freetype/freetype.h). FT_EXPORT( FT_Error ) FT_New_Face ( FT_Library library, const char * filepathname, FT_Long face_index, FT_Face *aface ); Call FT_Open_Face to open a font by its pathname. inout library A handle to the library resource. input pathname A path to the font file. face_index See FT_Open_Face for a detailed description of this parameter. output aface A handle to a new face object. If face_index is greater than or equal to zero, it must be non- NULL . return FreeType error code. 0 means success. note The pathname string should be recognizable as such by a standard fopen call on your system; in particular, this means that pathname must not contain null bytes. If that is not sufficient to address all file name possibilities (for example, to handle wide character file names on Windows in UTF-16 encoding) you might use FT_Open_Face to pass a memory array or a stream object instead. Use FT_Done_Face to destroy the created FT_Face object (along with its slot and sizes). FT_Done_Face \u00b6 Defined in FT_FREETYPE_H (freetype/freetype.h). FT_EXPORT( FT_Error ) FT_Done_Face ( FT_Face face ); Discard a given face object, as well as all of its child slots and sizes. input face A handle to a target face object. return FreeType error code. 0 means success. note See the discussion of reference counters in the description of FT_Reference_Face . FT_Reference_Face \u00b6 Defined in FT_FREETYPE_H (freetype/freetype.h). FT_EXPORT( FT_Error ) FT_Reference_Face ( FT_Face face ); A counter gets initialized to 1 at the time an FT_Face structure is created. This function increments the counter. FT_Done_Face then only destroys a face if the counter is 1, otherwise it simply decrements the counter. This function helps in managing life-cycles of structures that reference FT_Face objects. input face A handle to a target face object. return FreeType error code. 0 means success. since 2.4.2 FT_New_Memory_Face \u00b6 Defined in FT_FREETYPE_H (freetype/freetype.h). FT_EXPORT( FT_Error ) FT_New_Memory_Face ( FT_Library library, const FT_Byte * file_base, FT_Long file_size, FT_Long face_index, FT_Face *aface ); Call FT_Open_Face to open a font that has been loaded into memory. inout library A handle to the library resource. input file_base A pointer to the beginning of the font data. file_size The size of the memory chunk used by the font data. face_index See FT_Open_Face for a detailed description of this parameter. output aface A handle to a new face object. If face_index is greater than or equal to zero, it must be non- NULL . return FreeType error code. 0 means success. note You must not deallocate the memory before calling FT_Done_Face . FT_Face_Properties \u00b6 Defined in FT_FREETYPE_H (freetype/freetype.h). FT_EXPORT( FT_Error ) FT_Face_Properties ( FT_Face face, FT_UInt num_properties, FT_Parameter * properties ); Set or override certain (library or module-wide) properties on a face-by-face basis. Useful for finer-grained control and avoiding locks on shared structures (threads can modify their own faces as they see fit). Contrary to FT_Property_Set , this function uses FT_Parameter so that you can pass multiple properties to the target face in one call. Note that only a subset of the available properties can be controlled. FT_PARAM_TAG_STEM_DARKENING (stem darkening, corresponding to the property no-stem-darkening provided by the \u2018autofit\u2019, \u2018cff\u2019, \u2018type1\u2019, and \u2018t1cid\u2019 modules; see no-stem-darkening ). FT_PARAM_TAG_LCD_FILTER_WEIGHTS (LCD filter weights, corresponding to function FT_Library_SetLcdFilterWeights ). FT_PARAM_TAG_RANDOM_SEED (seed value for the CFF, Type 1, and CID \u2018random\u2019 operator, corresponding to the random-seed property provided by the \u2018cff\u2019, \u2018type1\u2019, and \u2018t1cid\u2019 modules; see random-seed ). Pass NULL as data in FT_Parameter for a given tag to reset the option and use the library or module default again. input face A handle to the source face object. num_properties The number of properties that follow. properties A handle to an FT_Parameter array with num_properties elements. return FreeType error code. 0 means success. example Here is an example that sets three properties. You must define FT_CONFIG_OPTION_SUBPIXEL_RENDERING to make the LCD filter examples work. FT_Parameter property1; FT_Bool darken_stems = 1; FT_Parameter property2; FT_LcdFiveTapFilter custom_weight = { 0x11, 0x44, 0x56, 0x44, 0x11 }; FT_Parameter property3; FT_Int32 random_seed = 314159265; FT_Parameter properties[3] = { property1, property2, property3 }; property1.tag = FT_PARAM_TAG_STEM_DARKENING; property1.data = &darken_stems; property2.tag = FT_PARAM_TAG_LCD_FILTER_WEIGHTS; property2.data = custom_weight; property3.tag = FT_PARAM_TAG_RANDOM_SEED; property3.data = &random_seed; FT_Face_Properties( face, 3, properties ); The next example resets a single property to its default value. FT_Parameter property; property.tag = FT_PARAM_TAG_LCD_FILTER_WEIGHTS; property.data = NULL; FT_Face_Properties( face, 1, &property ); since 2.8 FT_Open_Face \u00b6 Defined in FT_FREETYPE_H (freetype/freetype.h). FT_EXPORT( FT_Error ) FT_Open_Face ( FT_Library library, const FT_Open_Args * args, FT_Long face_index, FT_Face *aface ); Create a face object from a given resource described by FT_Open_Args . inout library A handle to the library resource. input args A pointer to an FT_Open_Args structure that must be filled by the caller. face_index This field holds two different values. Bits 0-15 are the index of the face in the font file (starting with value 0). Set it to 0 if there is only one face in the font file. [Since 2.6.1] Bits 16-30 are relevant to GX and OpenType variation fonts only, specifying the named instance index for the current face index (starting with value 1; value 0 makes FreeType ignore named instances). For non-variation fonts, bits 16-30 are ignored. Assuming that you want to access the third named instance in face 4, face_index should be set to 0x00030004. If you want to access face 4 without variation handling, simply set face_index to value 4. FT_Open_Face and its siblings can be used to quickly check whether the font format of a given font resource is supported by FreeType. In general, if the face_index argument is negative, the function's return value is 0 if the font format is recognized, or non-zero otherwise. The function allocates a more or less empty face handle in *aface (if aface isn't NULL ); the only two useful fields in this special case are face->num_faces and face->style_flags . For any negative value of face_index , face->num_faces gives the number of faces within the font file. For the negative value \u2018-(N+1)\u2019 (with \u2018N\u2019 a non-negative 16-bit value), bits 16-30 in face->style_flags give the number of named instances in face \u2018N\u2019 if we have a variation font (or zero otherwise). After examination, the returned FT_Face structure should be deallocated with a call to FT_Done_Face . output aface A handle to a new face object. If face_index is greater than or equal to zero, it must be non- NULL . return FreeType error code. 0 means success. note Unlike FreeType 1.x, this function automatically creates a glyph slot for the face object that can be accessed directly through face->glyph . Each new face object created with this function also owns a default FT_Size object, accessible as face->size . One FT_Library instance can have multiple face objects, this is, FT_Open_Face and its siblings can be called multiple times using the same library argument. See the discussion of reference counters in the description of FT_Reference_Face . If FT_OPEN_STREAM is set in args->flags , the stream in args->stream is automatically closed before this function returns any error (including FT_Err_Invalid_Argument ). example To loop over all faces, use code similar to the following snippet (omitting the error handling). ... FT_Face face; FT_Long i, num_faces; error = FT_Open_Face( library, args, -1, &face ); if ( error ) { ... } num_faces = face->num_faces; FT_Done_Face( face ); for ( i = 0; i < num_faces; i++ ) { ... error = FT_Open_Face( library, args, i, &face ); ... FT_Done_Face( face ); ... } To loop over all valid values for face_index , use something similar to the following snippet, again without error handling. The code accesses all faces immediately (thus only a single call of FT_Open_Face within the do-loop), with and without named instances. ... FT_Face face; FT_Long num_faces = 0; FT_Long num_instances = 0; FT_Long face_idx = 0; FT_Long instance_idx = 0; do { FT_Long id = ( instance_idx << 16 ) + face_idx; error = FT_Open_Face( library, args, id, &face ); if ( error ) { ... } num_faces = face->num_faces; num_instances = face->style_flags >> 16; ... FT_Done_Face( face ); if ( instance_idx < num_instances ) instance_idx++; else { face_idx++; instance_idx = 0; } } while ( face_idx < num_faces ) FT_Open_Args \u00b6 Defined in FT_FREETYPE_H (freetype/freetype.h). typedef struct FT_Open_Args_ { FT_UInt flags; const FT_Byte * memory_base; FT_Long memory_size; FT_String * pathname; FT_Stream stream; FT_Module driver; FT_Int num_params; FT_Parameter * params; } FT_Open_Args ; A structure to indicate how to open a new font file or stream. A pointer to such a structure can be used as a parameter for the functions FT_Open_Face and FT_Attach_Stream . fields flags A set of bit flags indicating how to use the structure. memory_base The first byte of the file in memory. memory_size The size in bytes of the file in memory. pathname A pointer to an 8-bit file pathname, which must be a C string (i.e., no null bytes except at the very end). The pointer is not owned by FreeType. stream A handle to a source stream object. driver This field is exclusively used by FT_Open_Face ; it simply specifies the font driver to use for opening the face. If set to NULL , FreeType tries to load the face with each one of the drivers in its list. num_params The number of extra parameters. params Extra parameters passed to the font driver when opening a new face. note The stream type is determined by the contents of flags : If the FT_OPEN_MEMORY bit is set, assume that this is a memory file of memory_size bytes, located at memory_address . The data are not copied, and the client is responsible for releasing and destroying them after the corresponding call to FT_Done_Face . Otherwise, if the FT_OPEN_STREAM bit is set, assume that a custom input stream stream is used. Otherwise, if the FT_OPEN_PATHNAME bit is set, assume that this is a normal file and use pathname to open it. If none of the above bits are set or if multiple are set at the same time, the flags are invalid and FT_Open_Face fails. If the FT_OPEN_DRIVER bit is set, FT_Open_Face only tries to open the file with the driver whose handler is in driver . If the FT_OPEN_PARAMS bit is set, the parameters given by num_params and params is used. They are ignored otherwise. Ideally, both the pathname and params fields should be tagged as \u2018const\u2019; this is missing for API backward compatibility. In other words, applications should treat them as read-only. FT_Parameter \u00b6 Defined in FT_FREETYPE_H (freetype/freetype.h). typedef struct FT_Parameter_ { FT_ULong tag; FT_Pointer data; } FT_Parameter ; A simple structure to pass more or less generic parameters to FT_Open_Face and FT_Face_Properties . fields tag A four-byte identification tag. data A pointer to the parameter data. note The ID and function of parameters are driver-specific. See section \u2018 Parameter Tags \u2019 for more information. FT_Attach_File \u00b6 Defined in FT_FREETYPE_H (freetype/freetype.h). FT_EXPORT( FT_Error ) FT_Attach_File ( FT_Face face, const char * filepathname ); Call FT_Attach_Stream to attach a file. inout face The target face object. input filepathname The pathname. return FreeType error code. 0 means success. FT_Attach_Stream \u00b6 Defined in FT_FREETYPE_H (freetype/freetype.h). FT_EXPORT( FT_Error ) FT_Attach_Stream ( FT_Face face, FT_Open_Args * parameters ); \u2018Attach\u2019 data to a face object. Normally, this is used to read additional information for the face object. For example, you can attach an AFM file that comes with a Type 1 font to get the kerning values and other metrics. inout face The target face object. input parameters A pointer to FT_Open_Args that must be filled by the caller. return FreeType error code. 0 means success. note The meaning of the \u2018attach\u2019 (i.e., what really happens when the new file is read) is not fixed by FreeType itself. It really depends on the font format (and thus the font driver). Client applications are expected to know what they are doing when invoking this function. Most drivers simply do not implement file or stream attachments. FT_Set_Char_Size \u00b6 Defined in FT_FREETYPE_H (freetype/freetype.h). FT_EXPORT( FT_Error ) FT_Set_Char_Size ( FT_Face face, FT_F26Dot6 char_width, FT_F26Dot6 char_height, FT_UInt horz_resolution, FT_UInt vert_resolution ); Call FT_Request_Size to request the nominal size (in points). inout face A handle to a target face object. input char_width The nominal width, in 26.6 fractional points. char_height The nominal height, in 26.6 fractional points. horz_resolution The horizontal resolution in dpi. vert_resolution The vertical resolution in dpi. return FreeType error code. 0 means success. note While this function allows fractional points as input values, the resulting ppem value for the given resolution is always rounded to the nearest integer. If either the character width or height is zero, it is set equal to the other value. If either the horizontal or vertical resolution is zero, it is set equal to the other value. A character width or height smaller than 1pt is set to 1pt; if both resolution values are zero, they are set to 72dpi. Don't use this function if you are using the FreeType cache API. FT_Set_Pixel_Sizes \u00b6 Defined in FT_FREETYPE_H (freetype/freetype.h). FT_EXPORT( FT_Error ) FT_Set_Pixel_Sizes ( FT_Face face, FT_UInt pixel_width, FT_UInt pixel_height ); Call FT_Request_Size to request the nominal size (in pixels). inout face A handle to the target face object. input pixel_width The nominal width, in pixels. pixel_height The nominal height, in pixels. return FreeType error code. 0 means success. note You should not rely on the resulting glyphs matching or being constrained to this pixel size. Refer to FT_Request_Size to understand how requested sizes relate to actual sizes. Don't use this function if you are using the FreeType cache API. FT_Request_Size \u00b6 Defined in FT_FREETYPE_H (freetype/freetype.h). FT_EXPORT( FT_Error ) FT_Request_Size ( FT_Face face, FT_Size_Request req ); Resize the scale of the active FT_Size object in a face. inout face A handle to a target face object. input req A pointer to a FT_Size_RequestRec . return FreeType error code. 0 means success. note Although drivers may select the bitmap strike matching the request, you should not rely on this if you intend to select a particular bitmap strike. Use FT_Select_Size instead in that case. The relation between the requested size and the resulting glyph size is dependent entirely on how the size is defined in the source face. The font designer chooses the final size of each glyph relative to this size. For more information refer to \u2018 https://www.freetype.org/freetype2/docs/glyphs/glyphs-2.html \u2019. Contrary to FT_Set_Char_Size , this function doesn't have special code to normalize zero-valued widths, heights, or resolutions (which lead to errors in most cases). Don't use this function if you are using the FreeType cache API. FT_Select_Size \u00b6 Defined in FT_FREETYPE_H (freetype/freetype.h). FT_EXPORT( FT_Error ) FT_Select_Size ( FT_Face face, FT_Int strike_index ); Select a bitmap strike. To be more precise, this function sets the scaling factors of the active FT_Size object in a face so that bitmaps from this particular strike are taken by FT_Load_Glyph and friends. inout face A handle to a target face object. input strike_index The index of the bitmap strike in the available_sizes field of FT_FaceRec structure. return FreeType error code. 0 means success. note For bitmaps embedded in outline fonts it is common that only a subset of the available glyphs at a given ppem value is available. FreeType silently uses outlines if there is no bitmap for a given glyph index. For GX and OpenType variation fonts, a bitmap strike makes sense only if the default instance is active (this is, no glyph variation takes place); otherwise, FreeType simply ignores bitmap strikes. The same is true for all named instances that are different from the default instance. Don't use this function if you are using the FreeType cache API. FT_Size_Request_Type \u00b6 Defined in FT_FREETYPE_H (freetype/freetype.h). typedef enum FT_Size_Request_Type_ { FT_SIZE_REQUEST_TYPE_NOMINAL , FT_SIZE_REQUEST_TYPE_REAL_DIM , FT_SIZE_REQUEST_TYPE_BBOX , FT_SIZE_REQUEST_TYPE_CELL , FT_SIZE_REQUEST_TYPE_SCALES , FT_SIZE_REQUEST_TYPE_MAX } FT_Size_Request_Type ; An enumeration type that lists the supported size request types, i.e., what input size (in font units) maps to the requested output size (in pixels, as computed from the arguments of FT_Size_Request ). values FT_SIZE_REQUEST_TYPE_NOMINAL The nominal size. The units_per_EM field of FT_FaceRec is used to determine both scaling values. This is the standard scaling found in most applications. In particular, use this size request type for TrueType fonts if they provide optical scaling or something similar. Note, however, that units_per_EM is a rather abstract value which bears no relation to the actual size of the glyphs in a font. FT_SIZE_REQUEST_TYPE_REAL_DIM The real dimension. The sum of the ascender and (minus of) the descender fields of FT_FaceRec is used to determine both scaling values. FT_SIZE_REQUEST_TYPE_BBOX The font bounding box. The width and height of the bbox field of FT_FaceRec are used to determine the horizontal and vertical scaling value, respectively. FT_SIZE_REQUEST_TYPE_CELL The max_advance_width field of FT_FaceRec is used to determine the horizontal scaling value; the vertical scaling value is determined the same way as FT_SIZE_REQUEST_TYPE_REAL_DIM does. Finally, both scaling values are set to the smaller one. This type is useful if you want to specify the font size for, say, a window of a given dimension and 80x24 cells. FT_SIZE_REQUEST_TYPE_SCALES Specify the scaling values directly. note The above descriptions only apply to scalable formats. For bitmap formats, the behaviour is up to the driver. See the note section of FT_Size_Metrics if you wonder how size requesting relates to scaling values. FT_Size_RequestRec \u00b6 Defined in FT_FREETYPE_H (freetype/freetype.h). typedef struct FT_Size_RequestRec_ { FT_Size_Request_Type type; FT_Long width; FT_Long height; FT_UInt horiResolution; FT_UInt vertResolution; } FT_Size_RequestRec ; A structure to model a size request. fields type See FT_Size_Request_Type . width The desired width, given as a 26.6 fractional point value (with 72pt = 1in). height The desired height, given as a 26.6 fractional point value (with 72pt = 1in). horiResolution The horizontal resolution (dpi, i.e., pixels per inch). If set to zero, width is treated as a 26.6 fractional pixel value, which gets internally rounded to an integer. vertResolution The vertical resolution (dpi, i.e., pixels per inch). If set to zero, height is treated as a 26.6 fractional pixel value, which gets internally rounded to an integer. note If width is zero, the horizontal scaling value is set equal to the vertical scaling value, and vice versa. If type is FT_SIZE_REQUEST_TYPE_SCALES , width and height are interpreted directly as 16.16 fractional scaling values, without any further modification, and both horiResolution and vertResolution are ignored. FT_Size_Request \u00b6 Defined in FT_FREETYPE_H (freetype/freetype.h). typedef struct FT_Size_RequestRec_ * FT_Size_Request ; A handle to a size request structure. FT_Set_Transform \u00b6 Defined in FT_FREETYPE_H (freetype/freetype.h). FT_EXPORT( void ) FT_Set_Transform ( FT_Face face, FT_Matrix * matrix, FT_Vector * delta ); Set the transformation that is applied to glyph images when they are loaded into a glyph slot through FT_Load_Glyph . inout face A handle to the source face object. input matrix A pointer to the transformation's 2x2 matrix. Use NULL for the identity matrix. delta A pointer to the translation vector. Use NULL for the null vector. note This function is provided as a convenience, but keep in mind that FT_Matrix coefficients are only 16.16 fixed-point values, which can limit the accuracy of the results. Using floating-point computations to perform the transform directly in client code instead will always yield better numbers. The transformation is only applied to scalable image formats after the glyph has been loaded. It means that hinting is unaltered by the transformation and is performed on the character size given in the last call to FT_Set_Char_Size or FT_Set_Pixel_Sizes . Note that this also transforms the face.glyph.advance field, but not the values in face.glyph.metrics . FT_Get_Transform \u00b6 Defined in FT_FREETYPE_H (freetype/freetype.h). FT_EXPORT( void ) FT_Get_Transform ( FT_Face face, FT_Matrix * matrix, FT_Vector * delta ); Return the transformation that is applied to glyph images when they are loaded into a glyph slot through FT_Load_Glyph . See FT_Set_Transform for more details. input face A handle to the source face object. output matrix A pointer to a transformation's 2x2 matrix. Set this to NULL if you are not interested in the value. delta A pointer a translation vector. Set this to NULL if you are not interested in the value. since 2.11 FT_Load_Glyph \u00b6 Defined in FT_FREETYPE_H (freetype/freetype.h). FT_EXPORT( FT_Error ) FT_Load_Glyph ( FT_Face face, FT_UInt glyph_index, FT_Int32 load_flags ); Load a glyph into the glyph slot of a face object. inout face A handle to the target face object where the glyph is loaded. input glyph_index The index of the glyph in the font file. For CID-keyed fonts (either in PS or in CFF format) this argument specifies the CID value. load_flags A flag indicating what to load for this glyph. The FT_LOAD_XXX constants can be used to control the glyph loading process (e.g., whether the outline should be scaled, whether to load bitmaps or not, whether to hint the outline, etc). return FreeType error code. 0 means success. note The loaded glyph may be transformed. See FT_Set_Transform for the details. For subsetted CID-keyed fonts, FT_Err_Invalid_Argument is returned for invalid CID values (this is, for CID values that don't have a corresponding glyph in the font). See the discussion of the FT_FACE_FLAG_CID_KEYED flag for more details. If you receive FT_Err_Glyph_Too_Big , try getting the glyph outline at EM size, then scale it manually and fill it as a graphics operation. FT_Get_Char_Index \u00b6 Defined in FT_FREETYPE_H (freetype/freetype.h). FT_EXPORT( FT_UInt ) FT_Get_Char_Index ( FT_Face face, FT_ULong charcode ); Return the glyph index of a given character code. This function uses the currently selected charmap to do the mapping. input face A handle to the source face object. charcode The character code. return The glyph index. 0 means \u2018undefined character code\u2019. note If you use FreeType to manipulate the contents of font files directly, be aware that the glyph index returned by this function doesn't always correspond to the internal indices used within the file. This is done to ensure that value 0 always corresponds to the \u2018missing glyph\u2019. If the first glyph is not named \u2018.notdef\u2019, then for Type 1 and Type 42 fonts, \u2018.notdef\u2019 will be moved into the glyph ID 0 position, and whatever was there will be moved to the position \u2018.notdef\u2019 had. For Type 1 fonts, if there is no \u2018.notdef\u2019 glyph at all, then one will be created at index 0 and whatever was there will be moved to the last index \u2013 Type 42 fonts are considered invalid under this condition. FT_Get_First_Char \u00b6 Defined in FT_FREETYPE_H (freetype/freetype.h). FT_EXPORT( FT_ULong ) FT_Get_First_Char ( FT_Face face, FT_UInt *agindex ); Return the first character code in the current charmap of a given face, together with its corresponding glyph index. input face A handle to the source face object. output agindex Glyph index of first character code. 0 if charmap is empty. return The charmap's first character code. note You should use this function together with FT_Get_Next_Char to parse all character codes available in a given charmap. The code should look like this: FT_ULong charcode; FT_UInt gindex; charcode = FT_Get_First_Char( face, &gindex ); while ( gindex != 0 ) { ... do something with (charcode,gindex) pair ... charcode = FT_Get_Next_Char( face, charcode, &gindex ); } Be aware that character codes can have values up to 0xFFFFFFFF; this might happen for non-Unicode or malformed cmaps. However, even with regular Unicode encoding, so-called \u2018last resort fonts\u2019 (using SFNT cmap format 13, see function FT_Get_CMap_Format ) normally have entries for all Unicode characters up to 0x1FFFFF, which can cause a lot of iterations. Note that *agindex is set to 0 if the charmap is empty. The result itself can be 0 in two cases: if the charmap is empty or if the value 0 is the first valid character code. FT_Get_Next_Char \u00b6 Defined in FT_FREETYPE_H (freetype/freetype.h). FT_EXPORT( FT_ULong ) FT_Get_Next_Char ( FT_Face face, FT_ULong char_code, FT_UInt *agindex ); Return the next character code in the current charmap of a given face following the value char_code , as well as the corresponding glyph index. input face A handle to the source face object. char_code The starting character code. output agindex Glyph index of next character code. 0 if charmap is empty. return The charmap's next character code. note You should use this function with FT_Get_First_Char to walk over all character codes available in a given charmap. See the note for that function for a simple code example. Note that *agindex is set to 0 when there are no more codes in the charmap. FT_Get_Name_Index \u00b6 Defined in FT_FREETYPE_H (freetype/freetype.h). FT_EXPORT( FT_UInt ) FT_Get_Name_Index ( FT_Face face, const FT_String * glyph_name ); Return the glyph index of a given glyph name. input face A handle to the source face object. glyph_name The glyph name. return The glyph index. 0 means \u2018undefined character code\u2019. FT_Load_Char \u00b6 Defined in FT_FREETYPE_H (freetype/freetype.h). FT_EXPORT( FT_Error ) FT_Load_Char ( FT_Face face, FT_ULong char_code, FT_Int32 load_flags ); Load a glyph into the glyph slot of a face object, accessed by its character code. inout face A handle to a target face object where the glyph is loaded. input char_code The glyph's character code, according to the current charmap used in the face. load_flags A flag indicating what to load for this glyph. The FT_LOAD_XXX constants can be used to control the glyph loading process (e.g., whether the outline should be scaled, whether to load bitmaps or not, whether to hint the outline, etc). return FreeType error code. 0 means success. note This function simply calls FT_Get_Char_Index and FT_Load_Glyph . Many fonts contain glyphs that can't be loaded by this function since its glyph indices are not listed in any of the font's charmaps. If no active cmap is set up (i.e., face->charmap is zero), the call to FT_Get_Char_Index is omitted, and the function behaves identically to FT_Load_Glyph . FT_LOAD_TARGET_MODE \u00b6 Defined in FT_FREETYPE_H (freetype/freetype.h). # define FT_LOAD_TARGET_MODE ( x ) \\ FT_STATIC_CAST( FT_Render_Mode , ( (x) >> 16 ) & 15 ) Return the FT_Render_Mode corresponding to a given FT_LOAD_TARGET_XXX value. FT_Render_Glyph \u00b6 Defined in FT_FREETYPE_H (freetype/freetype.h). FT_EXPORT( FT_Error ) FT_Render_Glyph ( FT_GlyphSlot slot, FT_Render_Mode render_mode ); Convert a given glyph image to a bitmap. It does so by inspecting the glyph image format, finding the relevant renderer, and invoking it. inout slot A handle to the glyph slot containing the image to convert. input render_mode The render mode used to render the glyph image into a bitmap. See FT_Render_Mode for a list of possible values. If FT_RENDER_MODE_NORMAL is used, a previous call of FT_Load_Glyph with flag FT_LOAD_COLOR makes FT_Render_Glyph provide a default blending of colored glyph layers associated with the current glyph slot (provided the font contains such layers) instead of rendering the glyph slot's outline. This is an experimental feature; see FT_LOAD_COLOR for more information. return FreeType error code. 0 means success. note To get meaningful results, font scaling values must be set with functions like FT_Set_Char_Size before calling FT_Render_Glyph . When FreeType outputs a bitmap of a glyph, it really outputs an alpha coverage map. If a pixel is completely covered by a filled-in outline, the bitmap contains 0xFF at that pixel, meaning that 0xFF/0xFF fraction of that pixel is covered, meaning the pixel is 100% black (or 0% bright). If a pixel is only 50% covered (value 0x80), the pixel is made 50% black (50% bright or a middle shade of grey). 0% covered means 0% black (100% bright or white). On high-DPI screens like on smartphones and tablets, the pixels are so small that their chance of being completely covered and therefore completely black are fairly good. On the low-DPI screens, however, the situation is different. The pixels are too large for most of the details of a glyph and shades of gray are the norm rather than the exception. This is relevant because all our screens have a second problem: they are not linear. 1 + 1 is not 2. Twice the value does not result in twice the brightness. When a pixel is only 50% covered, the coverage map says 50% black, and this translates to a pixel value of 128 when you use 8 bits per channel (0-255). However, this does not translate to 50% brightness for that pixel on our sRGB and gamma 2.2 screens. Due to their non-linearity, they dwell longer in the darks and only a pixel value of about 186 results in 50% brightness \u2013 128 ends up too dark on both bright and dark backgrounds. The net result is that dark text looks burnt-out, pixely and blotchy on bright background, bright text too frail on dark backgrounds, and colored text on colored background (for example, red on green) seems to have dark halos or \u2018dirt\u2019 around it. The situation is especially ugly for diagonal stems like in \u2018w\u2019 glyph shapes where the quality of FreeType's anti-aliasing depends on the correct display of grays. On high-DPI screens where smaller, fully black pixels reign supreme, this doesn't matter, but on our low-DPI screens with all the gray shades, it does. 0% and 100% brightness are the same things in linear and non-linear space, just all the shades in-between aren't. The blending function for placing text over a background is dst = alpha * src + (1 - alpha) * dst , which is known as the OVER operator. To correctly composite an anti-aliased pixel of a glyph onto a surface, take the foreground and background colors (e.g., in sRGB space) and apply gamma to get them in a linear space, use OVER to blend the two linear colors using the glyph pixel as the alpha value (remember, the glyph bitmap is an alpha coverage bitmap), and apply inverse gamma to the blended pixel and write it back to the image. Internal testing at Adobe found that a target inverse gamma of 1.8 for step 3 gives good results across a wide range of displays with an sRGB gamma curve or a similar one. This process can cost performance. There is an approximation that does not need to know about the background color; see https://bel.fi/alankila/lcd/ and https://bel.fi/alankila/lcd/alpcor.html for details. ATTENTION : Linear blending is even more important when dealing with subpixel-rendered glyphs to prevent color-fringing! A subpixel-rendered glyph must first be filtered with a filter that gives equal weight to the three color primaries and does not exceed a sum of 0x100, see section \u2018 Subpixel Rendering \u2019. Then the only difference to gray linear blending is that subpixel-rendered linear blending is done 3 times per pixel: red foreground subpixel to red background subpixel and so on for green and blue. FT_Render_Mode \u00b6 Defined in FT_FREETYPE_H (freetype/freetype.h). typedef enum FT_Render_Mode_ { FT_RENDER_MODE_NORMAL = 0, FT_RENDER_MODE_LIGHT , FT_RENDER_MODE_MONO , FT_RENDER_MODE_LCD , FT_RENDER_MODE_LCD_V , FT_RENDER_MODE_SDF , FT_RENDER_MODE_MAX } FT_Render_Mode ; /* these constants are deprecated; use the corresponding */ /* ` FT_Render_Mode ` values instead */ # define ft_render_mode_normal FT_RENDER_MODE_NORMAL # define ft_render_mode_mono FT_RENDER_MODE_MONO Render modes supported by FreeType 2. Each mode corresponds to a specific type of scanline conversion performed on the outline. For bitmap fonts and embedded bitmaps the bitmap->pixel_mode field in the FT_GlyphSlotRec structure gives the format of the returned bitmap. All modes except FT_RENDER_MODE_MONO use 256 levels of opacity, indicating pixel coverage. Use linear alpha blending and gamma correction to correctly render non-monochrome glyph bitmaps onto a surface; see FT_Render_Glyph . The FT_RENDER_MODE_SDF is a special render mode that uses up to 256 distance values, indicating the signed distance from the grid position to the nearest outline. values FT_RENDER_MODE_NORMAL Default render mode; it corresponds to 8-bit anti-aliased bitmaps. FT_RENDER_MODE_LIGHT This is equivalent to FT_RENDER_MODE_NORMAL . It is only defined as a separate value because render modes are also used indirectly to define hinting algorithm selectors. See FT_LOAD_TARGET_XXX for details. FT_RENDER_MODE_MONO This mode corresponds to 1-bit bitmaps (with 2 levels of opacity). FT_RENDER_MODE_LCD This mode corresponds to horizontal RGB and BGR subpixel displays like LCD screens. It produces 8-bit bitmaps that are 3 times the width of the original glyph outline in pixels, and which use the FT_PIXEL_MODE_LCD mode. FT_RENDER_MODE_LCD_V This mode corresponds to vertical RGB and BGR subpixel displays (like PDA screens, rotated LCD displays, etc.). It produces 8-bit bitmaps that are 3 times the height of the original glyph outline in pixels and use the FT_PIXEL_MODE_LCD_V mode. FT_RENDER_MODE_SDF This mode corresponds to 8-bit, single-channel signed distance field (SDF) bitmaps. Each pixel in the SDF grid is the value from the pixel's position to the nearest glyph's outline. The distances are calculated from the center of the pixel and are positive if they are filled by the outline (i.e., inside the outline) and negative otherwise. Check the note below on how to convert the output values to usable data. note The selected render mode only affects vector glyphs of a font. Embedded bitmaps often have a different pixel mode like FT_PIXEL_MODE_MONO . You can use FT_Bitmap_Convert to transform them into 8-bit pixmaps. For FT_RENDER_MODE_SDF the output bitmap buffer contains normalized distances that are packed into unsigned 8-bit values. To get pixel values in floating point representation use the following pseudo-C code for the conversion. // Load glyph and render using FT_RENDER_MODE_SDF, // then use the output buffer as follows. ... FT_Byte buffer = glyph->bitmap->buffer; for pixel in buffer { // `sd` is the signed distance and `spread` is the current spread; // the default spread is 2 and can be changed. float sd = (float)pixel - 128.0f; // Convert to pixel values. sd = ( sd / 128.0f ) * spread; // Store `sd` in a buffer or use as required. } FT_Get_Kerning \u00b6 Defined in FT_FREETYPE_H (freetype/freetype.h). FT_EXPORT( FT_Error ) FT_Get_Kerning ( FT_Face face, FT_UInt left_glyph, FT_UInt right_glyph, FT_UInt kern_mode, FT_Vector *akerning ); Return the kerning vector between two glyphs of the same face. input face A handle to a source face object. left_glyph The index of the left glyph in the kern pair. right_glyph The index of the right glyph in the kern pair. kern_mode See FT_Kerning_Mode for more information. Determines the scale and dimension of the returned kerning vector. output akerning The kerning vector. This is either in font units, fractional pixels (26.6 format), or pixels for scalable formats, and in pixels for fixed-sizes formats. return FreeType error code. 0 means success. note Only horizontal layouts (left-to-right & right-to-left) are supported by this method. Other layouts, or more sophisticated kernings, are out of the scope of this API function \u2013 they can be implemented through format-specific interfaces. Kerning for OpenType fonts implemented in a \u2018GPOS\u2019 table is not supported; use FT_HAS_KERNING to find out whether a font has data that can be extracted with FT_Get_Kerning . FT_Kerning_Mode \u00b6 Defined in FT_FREETYPE_H (freetype/freetype.h). typedef enum FT_Kerning_Mode_ { FT_KERNING_DEFAULT = 0, FT_KERNING_UNFITTED , FT_KERNING_UNSCALED } FT_Kerning_Mode ; /* these constants are deprecated; use the corresponding */ /* ` FT_Kerning_Mode ` values instead */ # define ft_kerning_default FT_KERNING_DEFAULT # define ft_kerning_unfitted FT_KERNING_UNFITTED # define ft_kerning_unscaled FT_KERNING_UNSCALED An enumeration to specify the format of kerning values returned by FT_Get_Kerning . values FT_KERNING_DEFAULT Return grid-fitted kerning distances in 26.6 fractional pixels. FT_KERNING_UNFITTED Return un-grid-fitted kerning distances in 26.6 fractional pixels. FT_KERNING_UNSCALED Return the kerning vector in original font units. note FT_KERNING_DEFAULT returns full pixel values; it also makes FreeType heuristically scale down kerning distances at small ppem values so that they don't become too big. Both FT_KERNING_DEFAULT and FT_KERNING_UNFITTED use the current horizontal scaling factor (as set e.g. with FT_Set_Char_Size ) to convert font units to pixels. FT_Get_Track_Kerning \u00b6 Defined in FT_FREETYPE_H (freetype/freetype.h). FT_EXPORT( FT_Error ) FT_Get_Track_Kerning ( FT_Face face, FT_Fixed point_size, FT_Int degree, FT_Fixed * akerning ); Return the track kerning for a given face object at a given size. input face A handle to a source face object. point_size The point size in 16.16 fractional points. degree The degree of tightness. Increasingly negative values represent tighter track kerning, while increasingly positive values represent looser track kerning. Value zero means no track kerning. output akerning The kerning in 16.16 fractional points, to be uniformly applied between all glyphs. return FreeType error code. 0 means success. note Currently, only the Type 1 font driver supports track kerning, using data from AFM files (if attached with FT_Attach_File or FT_Attach_Stream ). Only very few AFM files come with track kerning data; please refer to Adobe's AFM specification for more details. FT_Get_Glyph_Name \u00b6 Defined in FT_FREETYPE_H (freetype/freetype.h). FT_EXPORT( FT_Error ) FT_Get_Glyph_Name ( FT_Face face, FT_UInt glyph_index, FT_Pointer buffer, FT_UInt buffer_max ); Retrieve the ASCII name of a given glyph in a face. This only works for those faces where FT_HAS_GLYPH_NAMES (face) returns 1. input face A handle to a source face object. glyph_index The glyph index. buffer_max The maximum number of bytes available in the buffer. output buffer A pointer to a target buffer where the name is copied to. return FreeType error code. 0 means success. note An error is returned if the face doesn't provide glyph names or if the glyph index is invalid. In all cases of failure, the first byte of buffer is set to 0 to indicate an empty name. The glyph name is truncated to fit within the buffer if it is too long. The returned string is always zero-terminated. Be aware that FreeType reorders glyph indices internally so that glyph index 0 always corresponds to the \u2018missing glyph\u2019 (called \u2018.notdef\u2019). This function always returns an error if the config macro FT_CONFIG_OPTION_NO_GLYPH_NAMES is not defined in ftoption.h . FT_Get_Postscript_Name \u00b6 Defined in FT_FREETYPE_H (freetype/freetype.h). FT_EXPORT( const char * ) FT_Get_Postscript_Name ( FT_Face face ); Retrieve the ASCII PostScript name of a given face, if available. This only works with PostScript, TrueType, and OpenType fonts. input face A handle to the source face object. return A pointer to the face's PostScript name. NULL if unavailable. note The returned pointer is owned by the face and is destroyed with it. For variation fonts, this string changes if you select a different instance, and you have to call FT_Get_PostScript_Name again to retrieve it. FreeType follows Adobe TechNote #5902, \u2018Generating PostScript Names for Fonts Using OpenType Font Variations\u2019. https://download.macromedia.com/pub/developer/opentype/tech-notes/5902.AdobePSNameGeneration.html [Since 2.9] Special PostScript names for named instances are only returned if the named instance is set with FT_Set_Named_Instance (and the font has corresponding entries in its \u2018fvar\u2019 table). If FT_IS_VARIATION returns true, the algorithmically derived PostScript name is provided, not looking up special entries for named instances. FT_CharMapRec \u00b6 Defined in FT_FREETYPE_H (freetype/freetype.h). typedef struct FT_CharMapRec_ { FT_Face face; FT_Encoding encoding; FT_UShort platform_id; FT_UShort encoding_id; } FT_CharMapRec ; The base charmap structure. fields face A handle to the parent face object. encoding An FT_Encoding tag identifying the charmap. Use this with FT_Select_Charmap . platform_id An ID number describing the platform for the following encoding ID. This comes directly from the TrueType specification and gets emulated for other formats. encoding_id A platform-specific encoding number. This also comes from the TrueType specification and gets emulated similarly. FT_Select_Charmap \u00b6 Defined in FT_FREETYPE_H (freetype/freetype.h). FT_EXPORT( FT_Error ) FT_Select_Charmap ( FT_Face face, FT_Encoding encoding ); Select a given charmap by its encoding tag (as listed in freetype.h ). inout face A handle to the source face object. input encoding A handle to the selected encoding. return FreeType error code. 0 means success. note This function returns an error if no charmap in the face corresponds to the encoding queried here. Because many fonts contain more than a single cmap for Unicode encoding, this function has some special code to select the one that covers Unicode best (\u2018best\u2019 in the sense that a UCS-4 cmap is preferred to a UCS-2 cmap). It is thus preferable to FT_Set_Charmap in this case. FT_Set_Charmap \u00b6 Defined in FT_FREETYPE_H (freetype/freetype.h). FT_EXPORT( FT_Error ) FT_Set_Charmap ( FT_Face face, FT_CharMap charmap ); Select a given charmap for character code to glyph index mapping. inout face A handle to the source face object. input charmap A handle to the selected charmap. return FreeType error code. 0 means success. note This function returns an error if the charmap is not part of the face (i.e., if it is not listed in the face->charmaps table). It also fails if an OpenType type 14 charmap is selected (which doesn't map character codes to glyph indices at all). FT_Get_Charmap_Index \u00b6 Defined in FT_FREETYPE_H (freetype/freetype.h). FT_EXPORT( FT_Int ) FT_Get_Charmap_Index ( FT_CharMap charmap ); Retrieve index of a given charmap. input charmap A handle to a charmap. return The index into the array of character maps within the face to which charmap belongs. If an error occurs, -1 is returned. FT_Get_FSType_Flags \u00b6 Defined in FT_FREETYPE_H (freetype/freetype.h). FT_EXPORT( FT_UShort ) FT_Get_FSType_Flags ( FT_Face face ); Return the fsType flags for a font. input face A handle to the source face object. return The fsType flags, see FT_FSTYPE_XXX . note Use this function rather than directly reading the fs_type field in the PS_FontInfoRec structure, which is only guaranteed to return the correct results for Type 1 fonts. since 2.3.8 FT_Get_SubGlyph_Info \u00b6 Defined in FT_FREETYPE_H (freetype/freetype.h). FT_EXPORT( FT_Error ) FT_Get_SubGlyph_Info ( FT_GlyphSlot glyph, FT_UInt sub_index, FT_Int *p_index, FT_UInt *p_flags, FT_Int *p_arg1, FT_Int *p_arg2, FT_Matrix *p_transform ); Retrieve a description of a given subglyph. Only use it if glyph->format is FT_GLYPH_FORMAT_COMPOSITE ; an error is returned otherwise. input glyph The source glyph slot. sub_index The index of the subglyph. Must be less than glyph->num_subglyphs . output p_index The glyph index of the subglyph. p_flags The subglyph flags, see FT_SUBGLYPH_FLAG_XXX . p_arg1 The subglyph's first argument (if any). p_arg2 The subglyph's second argument (if any). p_transform The subglyph transformation (if any). return FreeType error code. 0 means success. note The values of *p_arg1 , *p_arg2 , and *p_transform must be interpreted depending on the flags returned in *p_flags . See the OpenType specification for details. https://docs.microsoft.com/en-us/typography/opentype/spec/glyf#composite-glyph-description FT_Face_Internal \u00b6 Defined in FT_FREETYPE_H (freetype/freetype.h). typedef struct FT_Face_InternalRec_* FT_Face_Internal ; An opaque handle to an FT_Face_InternalRec structure that models the private data of a given FT_Face object. This structure might change between releases of FreeType 2 and is not generally available to client applications. FT_Size_Internal \u00b6 Defined in FT_FREETYPE_H (freetype/freetype.h). typedef struct FT_Size_InternalRec_* FT_Size_Internal ; An opaque handle to an FT_Size_InternalRec structure, used to model private data of a given FT_Size object. FT_Slot_Internal \u00b6 Defined in FT_FREETYPE_H (freetype/freetype.h). typedef struct FT_Slot_InternalRec_* FT_Slot_Internal ; An opaque handle to an FT_Slot_InternalRec structure, used to model private data of a given FT_GlyphSlot object. FT_FACE_FLAG_XXX \u00b6 Defined in FT_FREETYPE_H (freetype/freetype.h). # define FT_FACE_FLAG_SCALABLE ( 1L << 0 ) # define FT_FACE_FLAG_FIXED_SIZES ( 1L << 1 ) # define FT_FACE_FLAG_FIXED_WIDTH ( 1L << 2 ) # define FT_FACE_FLAG_SFNT ( 1L << 3 ) # define FT_FACE_FLAG_HORIZONTAL ( 1L << 4 ) # define FT_FACE_FLAG_VERTICAL ( 1L << 5 ) # define FT_FACE_FLAG_KERNING ( 1L << 6 ) # define FT_FACE_FLAG_FAST_GLYPHS ( 1L << 7 ) # define FT_FACE_FLAG_MULTIPLE_MASTERS ( 1L << 8 ) # define FT_FACE_FLAG_GLYPH_NAMES ( 1L << 9 ) # define FT_FACE_FLAG_EXTERNAL_STREAM ( 1L << 10 ) # define FT_FACE_FLAG_HINTER ( 1L << 11 ) # define FT_FACE_FLAG_CID_KEYED ( 1L << 12 ) # define FT_FACE_FLAG_TRICKY ( 1L << 13 ) # define FT_FACE_FLAG_COLOR ( 1L << 14 ) # define FT_FACE_FLAG_VARIATION ( 1L << 15 ) A list of bit flags used in the face_flags field of the FT_FaceRec structure. They inform client applications of properties of the corresponding face. values FT_FACE_FLAG_SCALABLE The face contains outline glyphs. Note that a face can contain bitmap strikes also, i.e., a face can have both this flag and FT_FACE_FLAG_FIXED_SIZES set. FT_FACE_FLAG_FIXED_SIZES The face contains bitmap strikes. See also the num_fixed_sizes and available_sizes fields of FT_FaceRec . FT_FACE_FLAG_FIXED_WIDTH The face contains fixed-width characters (like Courier, Lucida, MonoType, etc.). FT_FACE_FLAG_SFNT The face uses the SFNT storage scheme. For now, this means TrueType and OpenType. FT_FACE_FLAG_HORIZONTAL The face contains horizontal glyph metrics. This should be set for all common formats. FT_FACE_FLAG_VERTICAL The face contains vertical glyph metrics. This is only available in some formats, not all of them. FT_FACE_FLAG_KERNING The face contains kerning information. If set, the kerning distance can be retrieved using the function FT_Get_Kerning . Otherwise the function always return the vector (0,0). Note that FreeType doesn't handle kerning data from the SFNT \u2018GPOS\u2019 table (as present in many OpenType fonts). FT_FACE_FLAG_FAST_GLYPHS THIS FLAG IS DEPRECATED. DO NOT USE OR TEST IT. FT_FACE_FLAG_MULTIPLE_MASTERS The face contains multiple masters and is capable of interpolating between them. Supported formats are Adobe MM, TrueType GX, and OpenType variation fonts. See section \u2018 Multiple Masters \u2019 for API details. FT_FACE_FLAG_GLYPH_NAMES The face contains glyph names, which can be retrieved using FT_Get_Glyph_Name . Note that some TrueType fonts contain broken glyph name tables. Use the function FT_Has_PS_Glyph_Names when needed. FT_FACE_FLAG_EXTERNAL_STREAM Used internally by FreeType to indicate that a face's stream was provided by the client application and should not be destroyed when FT_Done_Face is called. Don't read or test this flag. FT_FACE_FLAG_HINTER The font driver has a hinting machine of its own. For example, with TrueType fonts, it makes sense to use data from the SFNT \u2018gasp\u2019 table only if the native TrueType hinting engine (with the bytecode interpreter) is available and active. FT_FACE_FLAG_CID_KEYED The face is CID-keyed. In that case, the face is not accessed by glyph indices but by CID values. For subsetted CID-keyed fonts this has the consequence that not all index values are a valid argument to FT_Load_Glyph . Only the CID values for which corresponding glyphs in the subsetted font exist make FT_Load_Glyph return successfully; in all other cases you get an FT_Err_Invalid_Argument error. Note that CID-keyed fonts that are in an SFNT wrapper (this is, all OpenType/CFF fonts) don't have this flag set since the glyphs are accessed in the normal way (using contiguous indices); the \u2018CID-ness\u2019 isn't visible to the application. FT_FACE_FLAG_TRICKY The face is \u2018tricky\u2019, this is, it always needs the font format's native hinting engine to get a reasonable result. A typical example is the old Chinese font mingli.ttf (but not mingliu.ttc ) that uses TrueType bytecode instructions to move and scale all of its subglyphs. It is not possible to auto-hint such fonts using FT_LOAD_FORCE_AUTOHINT ; it will also ignore FT_LOAD_NO_HINTING . You have to set both FT_LOAD_NO_HINTING and FT_LOAD_NO_AUTOHINT to really disable hinting; however, you probably never want this except for demonstration purposes. Currently, there are about a dozen TrueType fonts in the list of tricky fonts; they are hard-coded in file ttobjs.c . FT_FACE_FLAG_COLOR [Since 2.5.1] The face has color glyph tables. See FT_LOAD_COLOR for more information. FT_FACE_FLAG_VARIATION [Since 2.9] Set if the current face (or named instance) has been altered with FT_Set_MM_Design_Coordinates , FT_Set_Var_Design_Coordinates , or FT_Set_Var_Blend_Coordinates . This flag is unset by a call to FT_Set_Named_Instance . FT_STYLE_FLAG_XXX \u00b6 Defined in FT_FREETYPE_H (freetype/freetype.h). # define FT_STYLE_FLAG_ITALIC ( 1 << 0 ) # define FT_STYLE_FLAG_BOLD ( 1 << 1 ) A list of bit flags to indicate the style of a given face. These are used in the style_flags field of FT_FaceRec . values FT_STYLE_FLAG_ITALIC The face style is italic or oblique. FT_STYLE_FLAG_BOLD The face is bold. note The style information as provided by FreeType is very basic. More details are beyond the scope and should be done on a higher level (for example, by analyzing various fields of the \u2018OS/2\u2019 table in SFNT based fonts). FT_OPEN_XXX \u00b6 Defined in FT_FREETYPE_H (freetype/freetype.h). # define FT_OPEN_MEMORY 0x1 # define FT_OPEN_STREAM 0x2 # define FT_OPEN_PATHNAME 0x4 # define FT_OPEN_DRIVER 0x8 # define FT_OPEN_PARAMS 0x10 /* these constants are deprecated; use the corresponding ` FT_OPEN_XXX ` */ /* values instead */ # define ft_open_memory FT_OPEN_MEMORY # define ft_open_stream FT_OPEN_STREAM # define ft_open_pathname FT_OPEN_PATHNAME # define ft_open_driver FT_OPEN_DRIVER # define ft_open_params FT_OPEN_PARAMS A list of bit field constants used within the flags field of the FT_Open_Args structure. values FT_OPEN_MEMORY This is a memory-based stream. FT_OPEN_STREAM Copy the stream from the stream field. FT_OPEN_PATHNAME Create a new input stream from a C path name. FT_OPEN_DRIVER Use the driver field. FT_OPEN_PARAMS Use the num_params and params fields. note The FT_OPEN_MEMORY , FT_OPEN_STREAM , and FT_OPEN_PATHNAME flags are mutually exclusive. FT_LOAD_XXX \u00b6 Defined in FT_FREETYPE_H (freetype/freetype.h). # define FT_LOAD_DEFAULT 0x0 # define FT_LOAD_NO_SCALE ( 1L << 0 ) # define FT_LOAD_NO_HINTING ( 1L << 1 ) # define FT_LOAD_RENDER ( 1L << 2 ) # define FT_LOAD_NO_BITMAP ( 1L << 3 ) # define FT_LOAD_VERTICAL_LAYOUT ( 1L << 4 ) # define FT_LOAD_FORCE_AUTOHINT ( 1L << 5 ) # define FT_LOAD_CROP_BITMAP ( 1L << 6 ) # define FT_LOAD_PEDANTIC ( 1L << 7 ) # define FT_LOAD_IGNORE_GLOBAL_ADVANCE_WIDTH ( 1L << 9 ) # define FT_LOAD_NO_RECURSE ( 1L << 10 ) # define FT_LOAD_IGNORE_TRANSFORM ( 1L << 11 ) # define FT_LOAD_MONOCHROME ( 1L << 12 ) # define FT_LOAD_LINEAR_DESIGN ( 1L << 13 ) # define FT_LOAD_NO_AUTOHINT ( 1L << 15 ) /* Bits 16-19 are used by `FT_LOAD_TARGET_` */ # define FT_LOAD_COLOR ( 1L << 20 ) # define FT_LOAD_COMPUTE_METRICS ( 1L << 21 ) # define FT_LOAD_BITMAP_METRICS_ONLY ( 1L << 22 ) A list of bit field constants for FT_Load_Glyph to indicate what kind of operations to perform during glyph loading. values FT_LOAD_DEFAULT Corresponding to 0, this value is used as the default glyph load operation. In this case, the following happens: FreeType looks for a bitmap for the glyph corresponding to the face's current size. If one is found, the function returns. The bitmap data can be accessed from the glyph slot (see note below). If no embedded bitmap is searched for or found, FreeType looks for a scalable outline. If one is found, it is loaded from the font file, scaled to device pixels, then \u2018hinted\u2019 to the pixel grid in order to optimize it. The outline data can be accessed from the glyph slot (see note below). Note that by default the glyph loader doesn't render outlines into bitmaps. The following flags are used to modify this default behaviour to more specific and useful cases. FT_LOAD_NO_SCALE Don't scale the loaded outline glyph but keep it in font units. This flag implies FT_LOAD_NO_HINTING and FT_LOAD_NO_BITMAP , and unsets FT_LOAD_RENDER . If the font is \u2018tricky\u2019 (see FT_FACE_FLAG_TRICKY for more), using FT_LOAD_NO_SCALE usually yields meaningless outlines because the subglyphs must be scaled and positioned with hinting instructions. This can be solved by loading the font without FT_LOAD_NO_SCALE and setting the character size to font->units_per_EM . FT_LOAD_NO_HINTING Disable hinting. This generally generates \u2018blurrier\u2019 bitmap glyphs when the glyph are rendered in any of the anti-aliased modes. See also the note below. This flag is implied by FT_LOAD_NO_SCALE . FT_LOAD_RENDER Call FT_Render_Glyph after the glyph is loaded. By default, the glyph is rendered in FT_RENDER_MODE_NORMAL mode. This can be overridden by FT_LOAD_TARGET_XXX or FT_LOAD_MONOCHROME . This flag is unset by FT_LOAD_NO_SCALE . FT_LOAD_NO_BITMAP Ignore bitmap strikes when loading. Bitmap-only fonts ignore this flag. FT_LOAD_NO_SCALE always sets this flag. FT_LOAD_VERTICAL_LAYOUT Load the glyph for vertical text layout. In particular, the advance value in the FT_GlyphSlotRec structure is set to the vertAdvance value of the metrics field. In case FT_HAS_VERTICAL doesn't return true, you shouldn't use this flag currently. Reason is that in this case vertical metrics get synthesized, and those values are not always consistent across various font formats. FT_LOAD_FORCE_AUTOHINT Prefer the auto-hinter over the font's native hinter. See also the note below. FT_LOAD_PEDANTIC Make the font driver perform pedantic verifications during glyph loading and hinting. This is mostly used to detect broken glyphs in fonts. By default, FreeType tries to handle broken fonts also. In particular, errors from the TrueType bytecode engine are not passed to the application if this flag is not set; this might result in partially hinted or distorted glyphs in case a glyph's bytecode is buggy. FT_LOAD_NO_RECURSE Don't load composite glyphs recursively. Instead, the font driver fills the num_subglyph and subglyphs values of the glyph slot; it also sets glyph->format to FT_GLYPH_FORMAT_COMPOSITE . The description of subglyphs can then be accessed with FT_Get_SubGlyph_Info . Don't use this flag for retrieving metrics information since some font drivers only return rudimentary data. This flag implies FT_LOAD_NO_SCALE and FT_LOAD_IGNORE_TRANSFORM . FT_LOAD_IGNORE_TRANSFORM Ignore the transform matrix set by FT_Set_Transform . FT_LOAD_MONOCHROME This flag is used with FT_LOAD_RENDER to indicate that you want to render an outline glyph to a 1-bit monochrome bitmap glyph, with 8 pixels packed into each byte of the bitmap data. Note that this has no effect on the hinting algorithm used. You should rather use FT_LOAD_TARGET_MONO so that the monochrome-optimized hinting algorithm is used. FT_LOAD_LINEAR_DESIGN Keep linearHoriAdvance and linearVertAdvance fields of FT_GlyphSlotRec in font units. See FT_GlyphSlotRec for details. FT_LOAD_NO_AUTOHINT Disable the auto-hinter. See also the note below. FT_LOAD_COLOR Load colored glyphs. There are slight differences depending on the font format. [Since 2.5] Load embedded color bitmap images. The resulting color bitmaps, if available, will have the FT_PIXEL_MODE_BGRA format, with pre-multiplied color channels. If the flag is not set and color bitmaps are found, they are converted to 256-level gray bitmaps, using the FT_PIXEL_MODE_GRAY format. [Since 2.10, experimental] If the glyph index contains an entry in the face's \u2018COLR\u2019 table with a \u2018CPAL\u2019 palette table (as defined in the OpenType specification), make FT_Render_Glyph provide a default blending of the color glyph layers associated with the glyph index, using the same bitmap format as embedded color bitmap images. This is mainly for convenience; for full control of color layers use FT_Get_Color_Glyph_Layer and FreeType's color functions like FT_Palette_Select instead of setting FT_LOAD_COLOR for rendering so that the client application can handle blending by itself. FT_LOAD_COMPUTE_METRICS [Since 2.6.1] Compute glyph metrics from the glyph data, without the use of bundled metrics tables (for example, the \u2018hdmx\u2019 table in TrueType fonts). This flag is mainly used by font validating or font editing applications, which need to ignore, verify, or edit those tables. Currently, this flag is only implemented for TrueType fonts. FT_LOAD_BITMAP_METRICS_ONLY [Since 2.7.1] Request loading of the metrics and bitmap image information of a (possibly embedded) bitmap glyph without allocating or copying the bitmap image data itself. No effect if the target glyph is not a bitmap image. This flag unsets FT_LOAD_RENDER . FT_LOAD_CROP_BITMAP Ignored. Deprecated. FT_LOAD_IGNORE_GLOBAL_ADVANCE_WIDTH Ignored. Deprecated. note By default, hinting is enabled and the font's native hinter (see FT_FACE_FLAG_HINTER ) is preferred over the auto-hinter. You can disable hinting by setting FT_LOAD_NO_HINTING or change the precedence by setting FT_LOAD_FORCE_AUTOHINT . You can also set FT_LOAD_NO_AUTOHINT in case you don't want the auto-hinter to be used at all. See the description of FT_FACE_FLAG_TRICKY for a special exception (affecting only a handful of Asian fonts). Besides deciding which hinter to use, you can also decide which hinting algorithm to use. See FT_LOAD_TARGET_XXX for details. Note that the auto-hinter needs a valid Unicode cmap (either a native one or synthesized by FreeType) for producing correct results. If a font provides an incorrect mapping (for example, assigning the character code U+005A, LATIN CAPITAL LETTER Z, to a glyph depicting a mathematical integral sign), the auto-hinter might produce useless results. FT_LOAD_TARGET_XXX \u00b6 Defined in FT_FREETYPE_H (freetype/freetype.h). # define FT_LOAD_TARGET_( x ) ( FT_STATIC_CAST( FT_Int32 , (x) & 15 ) << 16 ) # define FT_LOAD_TARGET_NORMAL FT_LOAD_TARGET_( FT_RENDER_MODE_NORMAL ) # define FT_LOAD_TARGET_LIGHT FT_LOAD_TARGET_( FT_RENDER_MODE_LIGHT ) # define FT_LOAD_TARGET_MONO FT_LOAD_TARGET_( FT_RENDER_MODE_MONO ) # define FT_LOAD_TARGET_LCD FT_LOAD_TARGET_( FT_RENDER_MODE_LCD ) # define FT_LOAD_TARGET_LCD_V FT_LOAD_TARGET_( FT_RENDER_MODE_LCD_V ) A list of values to select a specific hinting algorithm for the hinter. You should OR one of these values to your load_flags when calling FT_Load_Glyph . Note that a font's native hinters may ignore the hinting algorithm you have specified (e.g., the TrueType bytecode interpreter). You can set FT_LOAD_FORCE_AUTOHINT to ensure that the auto-hinter is used. values FT_LOAD_TARGET_NORMAL The default hinting algorithm, optimized for standard gray-level rendering. For monochrome output, use FT_LOAD_TARGET_MONO instead. FT_LOAD_TARGET_LIGHT A lighter hinting algorithm for gray-level modes. Many generated glyphs are fuzzier but better resemble their original shape. This is achieved by snapping glyphs to the pixel grid only vertically (Y-axis), as is done by FreeType's new CFF engine or Microsoft's ClearType font renderer. This preserves inter-glyph spacing in horizontal text. The snapping is done either by the native font driver, if the driver itself and the font support it, or by the auto-hinter. Advance widths are rounded to integer values; however, using the lsb_delta and rsb_delta fields of FT_GlyphSlotRec , it is possible to get fractional advance widths for subpixel positioning (which is recommended to use). If configuration option AF_CONFIG_OPTION_TT_SIZE_METRICS is active, TrueType-like metrics are used to make this mode behave similarly as in unpatched FreeType versions between 2.4.6 and 2.7.1 (inclusive). FT_LOAD_TARGET_MONO Strong hinting algorithm that should only be used for monochrome output. The result is probably unpleasant if the glyph is rendered in non-monochrome modes. Note that for outline fonts only the TrueType font driver has proper monochrome hinting support, provided the TTFs contain hints for B/W rendering (which most fonts no longer provide). If these conditions are not met it is very likely that you get ugly results at smaller sizes. FT_LOAD_TARGET_LCD A variant of FT_LOAD_TARGET_LIGHT optimized for horizontally decimated LCD displays. FT_LOAD_TARGET_LCD_V A variant of FT_LOAD_TARGET_NORMAL optimized for vertically decimated LCD displays. note You should use only one of the FT_LOAD_TARGET_XXX values in your load_flags . They can't be ORed. If FT_LOAD_RENDER is also set, the glyph is rendered in the corresponding mode (i.e., the mode that matches the used algorithm best). An exception is FT_LOAD_TARGET_MONO since it implies FT_LOAD_MONOCHROME . You can use a hinting algorithm that doesn't correspond to the same rendering mode. As an example, it is possible to use the \u2018light\u2019 hinting algorithm and have the results rendered in horizontal LCD pixel mode, with code like FT_Load_Glyph( face, glyph_index, load_flags | FT_LOAD_TARGET_LIGHT ); FT_Render_Glyph( face->glyph, FT_RENDER_MODE_LCD ); In general, you should stick with one rendering mode. For example, switching between FT_LOAD_TARGET_NORMAL and FT_LOAD_TARGET_MONO enforces a lot of recomputation for TrueType fonts, which is slow. Another reason is caching: Selecting a different mode usually causes changes in both the outlines and the rasterized bitmaps; it is thus necessary to empty the cache after a mode switch to avoid false hits. FT_SUBGLYPH_FLAG_XXX \u00b6 Defined in FT_FREETYPE_H (freetype/freetype.h). # define FT_SUBGLYPH_FLAG_ARGS_ARE_WORDS 1 # define FT_SUBGLYPH_FLAG_ARGS_ARE_XY_VALUES 2 # define FT_SUBGLYPH_FLAG_ROUND_XY_TO_GRID 4 # define FT_SUBGLYPH_FLAG_SCALE 8 # define FT_SUBGLYPH_FLAG_XY_SCALE 0x40 # define FT_SUBGLYPH_FLAG_2X2 0x80 # define FT_SUBGLYPH_FLAG_USE_MY_METRICS 0x200 A list of constants describing subglyphs. Please refer to the \u2018glyf\u2019 table description in the OpenType specification for the meaning of the various flags (which get synthesized for non-OpenType subglyphs). https://docs.microsoft.com/en-us/typography/opentype/spec/glyf#composite-glyph-description values FT_SUBGLYPH_FLAG_ARGS_ARE_WORDS FT_SUBGLYPH_FLAG_ARGS_ARE_XY_VALUES FT_SUBGLYPH_FLAG_ROUND_XY_TO_GRID FT_SUBGLYPH_FLAG_SCALE FT_SUBGLYPH_FLAG_XY_SCALE FT_SUBGLYPH_FLAG_2X2 FT_SUBGLYPH_FLAG_USE_MY_METRICS FT_FSTYPE_XXX \u00b6 Defined in FT_FREETYPE_H (freetype/freetype.h). # define FT_FSTYPE_INSTALLABLE_EMBEDDING 0x0000 # define FT_FSTYPE_RESTRICTED_LICENSE_EMBEDDING 0x0002 # define FT_FSTYPE_PREVIEW_AND_PRINT_EMBEDDING 0x0004 # define FT_FSTYPE_EDITABLE_EMBEDDING 0x0008 # define FT_FSTYPE_NO_SUBSETTING 0x0100 # define FT_FSTYPE_BITMAP_EMBEDDING_ONLY 0x0200 A list of bit flags used in the fsType field of the OS/2 table in a TrueType or OpenType font and the FSType entry in a PostScript font. These bit flags are returned by FT_Get_FSType_Flags ; they inform client applications of embedding and subsetting restrictions associated with a font. See https://www.adobe.com/content/dam/Adobe/en/devnet/acrobat/pdfs/FontPolicies.pdf for more details. values FT_FSTYPE_INSTALLABLE_EMBEDDING Fonts with no fsType bit set may be embedded and permanently installed on the remote system by an application. FT_FSTYPE_RESTRICTED_LICENSE_EMBEDDING Fonts that have only this bit set must not be modified, embedded or exchanged in any manner without first obtaining permission of the font software copyright owner. FT_FSTYPE_PREVIEW_AND_PRINT_EMBEDDING The font may be embedded and temporarily loaded on the remote system. Documents containing Preview & Print fonts must be opened \u2018read-only\u2019; no edits can be applied to the document. FT_FSTYPE_EDITABLE_EMBEDDING The font may be embedded but must only be installed temporarily on other systems. In contrast to Preview & Print fonts, documents containing editable fonts may be opened for reading, editing is permitted, and changes may be saved. FT_FSTYPE_NO_SUBSETTING The font may not be subsetted prior to embedding. FT_FSTYPE_BITMAP_EMBEDDING_ONLY Only bitmaps contained in the font may be embedded; no outline data may be embedded. If there are no bitmaps available in the font, then the font is unembeddable. note The flags are ORed together, thus more than a single value can be returned. While the fsType flags can indicate that a font may be embedded, a license with the font vendor may be separately required to use the font in this way. FT_HAS_FAST_GLYPHS \u00b6 Defined in FT_FREETYPE_H (freetype/freetype.h). # define FT_HAS_FAST_GLYPHS ( face ) 0 Deprecated.","title":"Base Interface"},{"location":"ft2-base_interface.html#base-interface","text":"","title":"Base Interface"},{"location":"ft2-base_interface.html#synopsis","text":"This section describes the most important public high-level API functions of FreeType 2.","title":"Synopsis"},{"location":"ft2-base_interface.html#ft_library","text":"Defined in FT_FREETYPE_H (freetype/freetype.h). typedef struct FT_LibraryRec_ * FT_Library ; A handle to a FreeType library instance. Each \u2018library\u2019 is completely independent from the others; it is the \u2018root\u2019 of a set of objects like fonts, faces, sizes, etc. It also embeds a memory manager (see FT_Memory ), as well as a scan-line converter object (see FT_Raster ). [Since 2.5.6] In multi-threaded applications it is easiest to use one FT_Library object per thread. In case this is too cumbersome, a single FT_Library object across threads is possible also, as long as a mutex lock is used around FT_New_Face and FT_Done_Face .","title":"FT_Library"},{"location":"ft2-base_interface.html#ft_face","text":"Defined in FT_FREETYPE_H (freetype/freetype.h). typedef struct FT_FaceRec_* FT_Face ; A handle to a typographic face object. A face object models a given typeface, in a given style.","title":"FT_Face"},{"location":"ft2-base_interface.html#ft_size","text":"Defined in FT_FREETYPE_H (freetype/freetype.h). typedef struct FT_SizeRec_* FT_Size ; A handle to an object that models a face scaled to a given character size.","title":"FT_Size"},{"location":"ft2-base_interface.html#ft_glyphslot","text":"Defined in FT_FREETYPE_H (freetype/freetype.h). typedef struct FT_GlyphSlotRec_* FT_GlyphSlot ; A handle to a given \u2018glyph slot\u2019. A slot is a container that can hold any of the glyphs contained in its parent face. In other words, each time you call FT_Load_Glyph or FT_Load_Char , the slot's content is erased by the new glyph data, i.e., the glyph's metrics, its image (bitmap or outline), and other control information.","title":"FT_GlyphSlot"},{"location":"ft2-base_interface.html#ft_charmap","text":"Defined in FT_FREETYPE_H (freetype/freetype.h). typedef struct FT_CharMapRec_* FT_CharMap ; A handle to a character map (usually abbreviated to \u2018charmap\u2019). A charmap is used to translate character codes in a given encoding into glyph indexes for its parent's face. Some font formats may provide several charmaps per font. Each face object owns zero or more charmaps, but only one of them can be \u2018active\u2019, providing the data used by FT_Get_Char_Index or FT_Load_Char . The list of available charmaps in a face is available through the face->num_charmaps and face->charmaps fields of FT_FaceRec . The currently active charmap is available as face->charmap . You should call FT_Set_Charmap to change it.","title":"FT_CharMap"},{"location":"ft2-base_interface.html#ft_encoding","text":"Defined in FT_FREETYPE_H (freetype/freetype.h). typedef enum FT_Encoding_ { FT_ENC_TAG ( FT_ENCODING_NONE , 0, 0, 0, 0 ), FT_ENC_TAG ( FT_ENCODING_MS_SYMBOL , 's', 'y', 'm', 'b' ), FT_ENC_TAG ( FT_ENCODING_UNICODE , 'u', 'n', 'i', 'c' ), FT_ENC_TAG ( FT_ENCODING_SJIS , 's', 'j', 'i', 's' ), FT_ENC_TAG ( FT_ENCODING_PRC , 'g', 'b', ' ', ' ' ), FT_ENC_TAG ( FT_ENCODING_BIG5 , 'b', 'i', 'g', '5' ), FT_ENC_TAG ( FT_ENCODING_WANSUNG , 'w', 'a', 'n', 's' ), FT_ENC_TAG ( FT_ENCODING_JOHAB , 'j', 'o', 'h', 'a' ), /* for backward compatibility */ FT_ENCODING_GB2312 = FT_ENCODING_PRC , FT_ENCODING_MS_SJIS = FT_ENCODING_SJIS , FT_ENCODING_MS_GB2312 = FT_ENCODING_PRC , FT_ENCODING_MS_BIG5 = FT_ENCODING_BIG5 , FT_ENCODING_MS_WANSUNG = FT_ENCODING_WANSUNG , FT_ENCODING_MS_JOHAB = FT_ENCODING_JOHAB , FT_ENC_TAG ( FT_ENCODING_ADOBE_STANDARD , 'A', 'D', 'O', 'B' ), FT_ENC_TAG ( FT_ENCODING_ADOBE_EXPERT , 'A', 'D', 'B', 'E' ), FT_ENC_TAG ( FT_ENCODING_ADOBE_CUSTOM , 'A', 'D', 'B', 'C' ), FT_ENC_TAG ( FT_ENCODING_ADOBE_LATIN_1 , 'l', 'a', 't', '1' ), FT_ENC_TAG ( FT_ENCODING_OLD_LATIN_2 , 'l', 'a', 't', '2' ), FT_ENC_TAG ( FT_ENCODING_APPLE_ROMAN , 'a', 'r', 'm', 'n' ) } FT_Encoding ; /* these constants are deprecated; use the corresponding ` FT_Encoding ` */ /* values instead */ # define ft_encoding_none FT_ENCODING_NONE # define ft_encoding_unicode FT_ENCODING_UNICODE # define ft_encoding_symbol FT_ENCODING_MS_SYMBOL # define ft_encoding_latin_1 FT_ENCODING_ADOBE_LATIN_1 # define ft_encoding_latin_2 FT_ENCODING_OLD_LATIN_2 # define ft_encoding_sjis FT_ENCODING_SJIS # define ft_encoding_gb2312 FT_ENCODING_PRC # define ft_encoding_big5 FT_ENCODING_BIG5 # define ft_encoding_wansung FT_ENCODING_WANSUNG # define ft_encoding_johab FT_ENCODING_JOHAB # define ft_encoding_adobe_standard FT_ENCODING_ADOBE_STANDARD # define ft_encoding_adobe_expert FT_ENCODING_ADOBE_EXPERT # define ft_encoding_adobe_custom FT_ENCODING_ADOBE_CUSTOM # define ft_encoding_apple_roman FT_ENCODING_APPLE_ROMAN An enumeration to specify character sets supported by charmaps. Used in the FT_Select_Charmap API function.","title":"FT_Encoding"},{"location":"ft2-base_interface.html#ft_enc_tag","text":"Defined in FT_FREETYPE_H (freetype/freetype.h). # ifndef FT_ENC_TAG # define FT_ENC_TAG ( value, a, b, c, d ) \\ value = ( ( FT_STATIC_BYTE_CAST( FT_UInt32 , a ) << 24 ) | \\ ( FT_STATIC_BYTE_CAST( FT_UInt32 , b ) << 16 ) | \\ ( FT_STATIC_BYTE_CAST( FT_UInt32 , c ) << 8 ) | \\ FT_STATIC_BYTE_CAST( FT_UInt32 , d ) ) # endif /* FT_ENC_TAG */ This macro converts four-letter tags into an unsigned long. It is used to define \u2018encoding\u2019 identifiers (see FT_Encoding ).","title":"FT_ENC_TAG"},{"location":"ft2-base_interface.html#ft_facerec","text":"Defined in FT_FREETYPE_H (freetype/freetype.h). typedef struct FT_FaceRec_ { FT_Long num_faces; FT_Long face_index; FT_Long face_flags; FT_Long style_flags; FT_Long num_glyphs; FT_String * family_name; FT_String * style_name; FT_Int num_fixed_sizes; FT_Bitmap_Size * available_sizes; FT_Int num_charmaps; FT_CharMap * charmaps; FT_Generic generic; /*# The following member variables (down to `underline_thickness`) */ /*# are only relevant to scalable outlines; cf. @ FT_Bitmap_Size */ /*# for bitmap fonts. */ FT_BBox bbox; FT_UShort units_per_EM; FT_Short ascender; FT_Short descender; FT_Short height; FT_Short max_advance_width; FT_Short max_advance_height; FT_Short underline_position; FT_Short underline_thickness; FT_GlyphSlot glyph; FT_Size size; FT_CharMap charmap; /*@private begin */ FT_Driver driver; FT_Memory memory; FT_Stream stream; FT_ListRec sizes_list; FT_Generic autohint; /* face-specific auto-hinter data */ void * extensions; /* unused */ FT_Face_Internal internal; /*@private end */ } FT_FaceRec ; FreeType root face class structure. A face object models a typeface in a font file.","title":"FT_FaceRec"},{"location":"ft2-base_interface.html#ft_has_horizontal","text":"Defined in FT_FREETYPE_H (freetype/freetype.h). # define FT_HAS_HORIZONTAL ( face ) \\ ( !!( (face)->face_flags & FT_FACE_FLAG_HORIZONTAL ) ) A macro that returns true whenever a face object contains horizontal metrics (this is true for all font formats though).","title":"FT_HAS_HORIZONTAL"},{"location":"ft2-base_interface.html#ft_has_vertical","text":"Defined in FT_FREETYPE_H (freetype/freetype.h). # define FT_HAS_VERTICAL ( face ) \\ ( !!( (face)->face_flags & FT_FACE_FLAG_VERTICAL ) ) A macro that returns true whenever a face object contains real vertical metrics (and not only synthesized ones).","title":"FT_HAS_VERTICAL"},{"location":"ft2-base_interface.html#ft_has_kerning","text":"Defined in FT_FREETYPE_H (freetype/freetype.h). # define FT_HAS_KERNING ( face ) \\ ( !!( (face)->face_flags & FT_FACE_FLAG_KERNING ) ) A macro that returns true whenever a face object contains kerning data that can be accessed with FT_Get_Kerning .","title":"FT_HAS_KERNING"},{"location":"ft2-base_interface.html#ft_has_fixed_sizes","text":"Defined in FT_FREETYPE_H (freetype/freetype.h). # define FT_HAS_FIXED_SIZES ( face ) \\ ( !!( (face)->face_flags & FT_FACE_FLAG_FIXED_SIZES ) ) A macro that returns true whenever a face object contains some embedded bitmaps. See the available_sizes field of the FT_FaceRec structure.","title":"FT_HAS_FIXED_SIZES"},{"location":"ft2-base_interface.html#ft_has_glyph_names","text":"Defined in FT_FREETYPE_H (freetype/freetype.h). # define FT_HAS_GLYPH_NAMES ( face ) \\ ( !!( (face)->face_flags & FT_FACE_FLAG_GLYPH_NAMES ) ) A macro that returns true whenever a face object contains some glyph names that can be accessed through FT_Get_Glyph_Name .","title":"FT_HAS_GLYPH_NAMES"},{"location":"ft2-base_interface.html#ft_has_color","text":"Defined in FT_FREETYPE_H (freetype/freetype.h). # define FT_HAS_COLOR ( face ) \\ ( !!( (face)->face_flags & FT_FACE_FLAG_COLOR ) ) A macro that returns true whenever a face object contains tables for color glyphs.","title":"FT_HAS_COLOR"},{"location":"ft2-base_interface.html#ft_has_multiple_masters","text":"Defined in FT_FREETYPE_H (freetype/freetype.h). # define FT_HAS_MULTIPLE_MASTERS ( face ) \\ ( !!( (face)->face_flags & FT_FACE_FLAG_MULTIPLE_MASTERS ) ) A macro that returns true whenever a face object contains some multiple masters. The functions provided by FT_MULTIPLE_MASTERS_H are then available to choose the exact design you want.","title":"FT_HAS_MULTIPLE_MASTERS"},{"location":"ft2-base_interface.html#ft_is_sfnt","text":"Defined in FT_FREETYPE_H (freetype/freetype.h). # define FT_IS_SFNT ( face ) \\ ( !!( (face)->face_flags & FT_FACE_FLAG_SFNT ) ) A macro that returns true whenever a face object contains a font whose format is based on the SFNT storage scheme. This usually means: TrueType fonts, OpenType fonts, as well as SFNT-based embedded bitmap fonts. If this macro is true, all functions defined in FT_SFNT_NAMES_H and FT_TRUETYPE_TABLES_H are available.","title":"FT_IS_SFNT"},{"location":"ft2-base_interface.html#ft_is_scalable","text":"Defined in FT_FREETYPE_H (freetype/freetype.h). # define FT_IS_SCALABLE ( face ) \\ ( !!( (face)->face_flags & FT_FACE_FLAG_SCALABLE ) ) A macro that returns true whenever a face object contains a scalable font face (true for TrueType, Type 1, Type 42, CID, OpenType/CFF, and PFR font formats).","title":"FT_IS_SCALABLE"},{"location":"ft2-base_interface.html#ft_is_fixed_width","text":"Defined in FT_FREETYPE_H (freetype/freetype.h). # define FT_IS_FIXED_WIDTH ( face ) \\ ( !!( (face)->face_flags & FT_FACE_FLAG_FIXED_WIDTH ) ) A macro that returns true whenever a face object contains a font face that contains fixed-width (or \u2018monospace\u2019, \u2018fixed-pitch\u2019, etc.) glyphs.","title":"FT_IS_FIXED_WIDTH"},{"location":"ft2-base_interface.html#ft_is_cid_keyed","text":"Defined in FT_FREETYPE_H (freetype/freetype.h). # define FT_IS_CID_KEYED ( face ) \\ ( !!( (face)->face_flags & FT_FACE_FLAG_CID_KEYED ) ) A macro that returns true whenever a face object contains a CID-keyed font. See the discussion of FT_FACE_FLAG_CID_KEYED for more details. If this macro is true, all functions defined in FT_CID_H are available.","title":"FT_IS_CID_KEYED"},{"location":"ft2-base_interface.html#ft_is_tricky","text":"Defined in FT_FREETYPE_H (freetype/freetype.h). # define FT_IS_TRICKY ( face ) \\ ( !!( (face)->face_flags & FT_FACE_FLAG_TRICKY ) ) A macro that returns true whenever a face represents a \u2018tricky\u2019 font. See the discussion of FT_FACE_FLAG_TRICKY for more details.","title":"FT_IS_TRICKY"},{"location":"ft2-base_interface.html#ft_is_named_instance","text":"Defined in FT_FREETYPE_H (freetype/freetype.h). # define FT_IS_NAMED_INSTANCE ( face ) \\ ( !!( (face)->face_index & 0x7FFF0000L ) ) A macro that returns true whenever a face object is a named instance of a GX or OpenType variation font. [Since 2.9] Changing the design coordinates with FT_Set_Var_Design_Coordinates or FT_Set_Var_Blend_Coordinates does not influence the return value of this macro (only FT_Set_Named_Instance does that).","title":"FT_IS_NAMED_INSTANCE"},{"location":"ft2-base_interface.html#ft_is_variation","text":"Defined in FT_FREETYPE_H (freetype/freetype.h). # define FT_IS_VARIATION ( face ) \\ ( !!( (face)->face_flags & FT_FACE_FLAG_VARIATION ) ) A macro that returns true whenever a face object has been altered by FT_Set_MM_Design_Coordinates , FT_Set_Var_Design_Coordinates , or FT_Set_Var_Blend_Coordinates .","title":"FT_IS_VARIATION"},{"location":"ft2-base_interface.html#ft_sizerec","text":"Defined in FT_FREETYPE_H (freetype/freetype.h). typedef struct FT_SizeRec_ { FT_Face face; /* parent face object */ FT_Generic generic; /* generic pointer for client uses */ FT_Size_Metrics metrics; /* size metrics */ FT_Size_Internal internal; } FT_SizeRec ; FreeType root size class structure. A size object models a face object at a given size.","title":"FT_SizeRec"},{"location":"ft2-base_interface.html#ft_size_metrics","text":"Defined in FT_FREETYPE_H (freetype/freetype.h). typedef struct FT_Size_Metrics_ { FT_UShort x_ppem; /* horizontal pixels per EM */ FT_UShort y_ppem; /* vertical pixels per EM */ FT_Fixed x_scale; /* scaling values used to convert font */ FT_Fixed y_scale; /* units to 26.6 fractional pixels */ FT_Pos ascender; /* ascender in 26.6 frac. pixels */ FT_Pos descender; /* descender in 26.6 frac. pixels */ FT_Pos height; /* text height in 26.6 frac. pixels */ FT_Pos max_advance; /* max horizontal advance, in 26.6 pixels */ } FT_Size_Metrics ; The size metrics structure gives the metrics of a size object.","title":"FT_Size_Metrics"},{"location":"ft2-base_interface.html#ft_glyphslotrec","text":"Defined in FT_FREETYPE_H (freetype/freetype.h). typedef struct FT_GlyphSlotRec_ { FT_Library library; FT_Face face; FT_GlyphSlot next; FT_UInt glyph_index; /* new in 2.10; was reserved previously */ FT_Generic generic; FT_Glyph_Metrics metrics; FT_Fixed linearHoriAdvance; FT_Fixed linearVertAdvance; FT_Vector advance; FT_Glyph_Format format; FT_Bitmap bitmap; FT_Int bitmap_left; FT_Int bitmap_top; FT_Outline outline; FT_UInt num_subglyphs; FT_SubGlyph subglyphs; void * control_data; long control_len; FT_Pos lsb_delta; FT_Pos rsb_delta; void * other; FT_Slot_Internal internal; } FT_GlyphSlotRec ; FreeType root glyph slot class structure. A glyph slot is a container where individual glyphs can be loaded, be they in outline or bitmap format.","title":"FT_GlyphSlotRec"},{"location":"ft2-base_interface.html#ft_glyph_metrics","text":"Defined in FT_FREETYPE_H (freetype/freetype.h). typedef struct FT_Glyph_Metrics_ { FT_Pos width; FT_Pos height; FT_Pos horiBearingX; FT_Pos horiBearingY; FT_Pos horiAdvance; FT_Pos vertBearingX; FT_Pos vertBearingY; FT_Pos vertAdvance; } FT_Glyph_Metrics ; A structure to model the metrics of a single glyph. The values are expressed in 26.6 fractional pixel format; if the flag FT_LOAD_NO_SCALE has been used while loading the glyph, values are expressed in font units instead.","title":"FT_Glyph_Metrics"},{"location":"ft2-base_interface.html#ft_subglyph","text":"Defined in FT_FREETYPE_H (freetype/freetype.h). typedef struct FT_SubGlyphRec_* FT_SubGlyph ; The subglyph structure is an internal object used to describe subglyphs (for example, in the case of composites).","title":"FT_SubGlyph"},{"location":"ft2-base_interface.html#ft_bitmap_size","text":"Defined in FT_FREETYPE_H (freetype/freetype.h). typedef struct FT_Bitmap_Size_ { FT_Short height; FT_Short width; FT_Pos size; FT_Pos x_ppem; FT_Pos y_ppem; } FT_Bitmap_Size ; This structure models the metrics of a bitmap strike (i.e., a set of glyphs for a given point size and resolution) in a bitmap font. It is used for the available_sizes field of FT_Face .","title":"FT_Bitmap_Size"},{"location":"ft2-base_interface.html#ft_init_freetype","text":"Defined in FT_FREETYPE_H (freetype/freetype.h). FT_EXPORT( FT_Error ) FT_Init_FreeType ( FT_Library *alibrary ); Initialize a new FreeType library object. The set of modules that are registered by this function is determined at build time.","title":"FT_Init_FreeType"},{"location":"ft2-base_interface.html#ft_done_freetype","text":"Defined in FT_FREETYPE_H (freetype/freetype.h). FT_EXPORT( FT_Error ) FT_Done_FreeType ( FT_Library library ); Destroy a given FreeType library object and all of its children, including resources, drivers, faces, sizes, etc.","title":"FT_Done_FreeType"},{"location":"ft2-base_interface.html#ft_new_face","text":"Defined in FT_FREETYPE_H (freetype/freetype.h). FT_EXPORT( FT_Error ) FT_New_Face ( FT_Library library, const char * filepathname, FT_Long face_index, FT_Face *aface ); Call FT_Open_Face to open a font by its pathname.","title":"FT_New_Face"},{"location":"ft2-base_interface.html#ft_done_face","text":"Defined in FT_FREETYPE_H (freetype/freetype.h). FT_EXPORT( FT_Error ) FT_Done_Face ( FT_Face face ); Discard a given face object, as well as all of its child slots and sizes.","title":"FT_Done_Face"},{"location":"ft2-base_interface.html#ft_reference_face","text":"Defined in FT_FREETYPE_H (freetype/freetype.h). FT_EXPORT( FT_Error ) FT_Reference_Face ( FT_Face face ); A counter gets initialized to 1 at the time an FT_Face structure is created. This function increments the counter. FT_Done_Face then only destroys a face if the counter is 1, otherwise it simply decrements the counter. This function helps in managing life-cycles of structures that reference FT_Face objects.","title":"FT_Reference_Face"},{"location":"ft2-base_interface.html#ft_new_memory_face","text":"Defined in FT_FREETYPE_H (freetype/freetype.h). FT_EXPORT( FT_Error ) FT_New_Memory_Face ( FT_Library library, const FT_Byte * file_base, FT_Long file_size, FT_Long face_index, FT_Face *aface ); Call FT_Open_Face to open a font that has been loaded into memory.","title":"FT_New_Memory_Face"},{"location":"ft2-base_interface.html#ft_face_properties","text":"Defined in FT_FREETYPE_H (freetype/freetype.h). FT_EXPORT( FT_Error ) FT_Face_Properties ( FT_Face face, FT_UInt num_properties, FT_Parameter * properties ); Set or override certain (library or module-wide) properties on a face-by-face basis. Useful for finer-grained control and avoiding locks on shared structures (threads can modify their own faces as they see fit). Contrary to FT_Property_Set , this function uses FT_Parameter so that you can pass multiple properties to the target face in one call. Note that only a subset of the available properties can be controlled. FT_PARAM_TAG_STEM_DARKENING (stem darkening, corresponding to the property no-stem-darkening provided by the \u2018autofit\u2019, \u2018cff\u2019, \u2018type1\u2019, and \u2018t1cid\u2019 modules; see no-stem-darkening ). FT_PARAM_TAG_LCD_FILTER_WEIGHTS (LCD filter weights, corresponding to function FT_Library_SetLcdFilterWeights ). FT_PARAM_TAG_RANDOM_SEED (seed value for the CFF, Type 1, and CID \u2018random\u2019 operator, corresponding to the random-seed property provided by the \u2018cff\u2019, \u2018type1\u2019, and \u2018t1cid\u2019 modules; see random-seed ). Pass NULL as data in FT_Parameter for a given tag to reset the option and use the library or module default again.","title":"FT_Face_Properties"},{"location":"ft2-base_interface.html#ft_open_face","text":"Defined in FT_FREETYPE_H (freetype/freetype.h). FT_EXPORT( FT_Error ) FT_Open_Face ( FT_Library library, const FT_Open_Args * args, FT_Long face_index, FT_Face *aface ); Create a face object from a given resource described by FT_Open_Args .","title":"FT_Open_Face"},{"location":"ft2-base_interface.html#ft_open_args","text":"Defined in FT_FREETYPE_H (freetype/freetype.h). typedef struct FT_Open_Args_ { FT_UInt flags; const FT_Byte * memory_base; FT_Long memory_size; FT_String * pathname; FT_Stream stream; FT_Module driver; FT_Int num_params; FT_Parameter * params; } FT_Open_Args ; A structure to indicate how to open a new font file or stream. A pointer to such a structure can be used as a parameter for the functions FT_Open_Face and FT_Attach_Stream .","title":"FT_Open_Args"},{"location":"ft2-base_interface.html#ft_parameter","text":"Defined in FT_FREETYPE_H (freetype/freetype.h). typedef struct FT_Parameter_ { FT_ULong tag; FT_Pointer data; } FT_Parameter ; A simple structure to pass more or less generic parameters to FT_Open_Face and FT_Face_Properties .","title":"FT_Parameter"},{"location":"ft2-base_interface.html#ft_attach_file","text":"Defined in FT_FREETYPE_H (freetype/freetype.h). FT_EXPORT( FT_Error ) FT_Attach_File ( FT_Face face, const char * filepathname ); Call FT_Attach_Stream to attach a file.","title":"FT_Attach_File"},{"location":"ft2-base_interface.html#ft_attach_stream","text":"Defined in FT_FREETYPE_H (freetype/freetype.h). FT_EXPORT( FT_Error ) FT_Attach_Stream ( FT_Face face, FT_Open_Args * parameters ); \u2018Attach\u2019 data to a face object. Normally, this is used to read additional information for the face object. For example, you can attach an AFM file that comes with a Type 1 font to get the kerning values and other metrics.","title":"FT_Attach_Stream"},{"location":"ft2-base_interface.html#ft_set_char_size","text":"Defined in FT_FREETYPE_H (freetype/freetype.h). FT_EXPORT( FT_Error ) FT_Set_Char_Size ( FT_Face face, FT_F26Dot6 char_width, FT_F26Dot6 char_height, FT_UInt horz_resolution, FT_UInt vert_resolution ); Call FT_Request_Size to request the nominal size (in points).","title":"FT_Set_Char_Size"},{"location":"ft2-base_interface.html#ft_set_pixel_sizes","text":"Defined in FT_FREETYPE_H (freetype/freetype.h). FT_EXPORT( FT_Error ) FT_Set_Pixel_Sizes ( FT_Face face, FT_UInt pixel_width, FT_UInt pixel_height ); Call FT_Request_Size to request the nominal size (in pixels).","title":"FT_Set_Pixel_Sizes"},{"location":"ft2-base_interface.html#ft_request_size","text":"Defined in FT_FREETYPE_H (freetype/freetype.h). FT_EXPORT( FT_Error ) FT_Request_Size ( FT_Face face, FT_Size_Request req ); Resize the scale of the active FT_Size object in a face.","title":"FT_Request_Size"},{"location":"ft2-base_interface.html#ft_select_size","text":"Defined in FT_FREETYPE_H (freetype/freetype.h). FT_EXPORT( FT_Error ) FT_Select_Size ( FT_Face face, FT_Int strike_index ); Select a bitmap strike. To be more precise, this function sets the scaling factors of the active FT_Size object in a face so that bitmaps from this particular strike are taken by FT_Load_Glyph and friends.","title":"FT_Select_Size"},{"location":"ft2-base_interface.html#ft_size_request_type","text":"Defined in FT_FREETYPE_H (freetype/freetype.h). typedef enum FT_Size_Request_Type_ { FT_SIZE_REQUEST_TYPE_NOMINAL , FT_SIZE_REQUEST_TYPE_REAL_DIM , FT_SIZE_REQUEST_TYPE_BBOX , FT_SIZE_REQUEST_TYPE_CELL , FT_SIZE_REQUEST_TYPE_SCALES , FT_SIZE_REQUEST_TYPE_MAX } FT_Size_Request_Type ; An enumeration type that lists the supported size request types, i.e., what input size (in font units) maps to the requested output size (in pixels, as computed from the arguments of FT_Size_Request ).","title":"FT_Size_Request_Type"},{"location":"ft2-base_interface.html#ft_size_requestrec","text":"Defined in FT_FREETYPE_H (freetype/freetype.h). typedef struct FT_Size_RequestRec_ { FT_Size_Request_Type type; FT_Long width; FT_Long height; FT_UInt horiResolution; FT_UInt vertResolution; } FT_Size_RequestRec ; A structure to model a size request.","title":"FT_Size_RequestRec"},{"location":"ft2-base_interface.html#ft_size_request","text":"Defined in FT_FREETYPE_H (freetype/freetype.h). typedef struct FT_Size_RequestRec_ * FT_Size_Request ; A handle to a size request structure.","title":"FT_Size_Request"},{"location":"ft2-base_interface.html#ft_set_transform","text":"Defined in FT_FREETYPE_H (freetype/freetype.h). FT_EXPORT( void ) FT_Set_Transform ( FT_Face face, FT_Matrix * matrix, FT_Vector * delta ); Set the transformation that is applied to glyph images when they are loaded into a glyph slot through FT_Load_Glyph .","title":"FT_Set_Transform"},{"location":"ft2-base_interface.html#ft_get_transform","text":"Defined in FT_FREETYPE_H (freetype/freetype.h). FT_EXPORT( void ) FT_Get_Transform ( FT_Face face, FT_Matrix * matrix, FT_Vector * delta ); Return the transformation that is applied to glyph images when they are loaded into a glyph slot through FT_Load_Glyph . See FT_Set_Transform for more details.","title":"FT_Get_Transform"},{"location":"ft2-base_interface.html#ft_load_glyph","text":"Defined in FT_FREETYPE_H (freetype/freetype.h). FT_EXPORT( FT_Error ) FT_Load_Glyph ( FT_Face face, FT_UInt glyph_index, FT_Int32 load_flags ); Load a glyph into the glyph slot of a face object.","title":"FT_Load_Glyph"},{"location":"ft2-base_interface.html#ft_get_char_index","text":"Defined in FT_FREETYPE_H (freetype/freetype.h). FT_EXPORT( FT_UInt ) FT_Get_Char_Index ( FT_Face face, FT_ULong charcode ); Return the glyph index of a given character code. This function uses the currently selected charmap to do the mapping.","title":"FT_Get_Char_Index"},{"location":"ft2-base_interface.html#ft_get_first_char","text":"Defined in FT_FREETYPE_H (freetype/freetype.h). FT_EXPORT( FT_ULong ) FT_Get_First_Char ( FT_Face face, FT_UInt *agindex ); Return the first character code in the current charmap of a given face, together with its corresponding glyph index.","title":"FT_Get_First_Char"},{"location":"ft2-base_interface.html#ft_get_next_char","text":"Defined in FT_FREETYPE_H (freetype/freetype.h). FT_EXPORT( FT_ULong ) FT_Get_Next_Char ( FT_Face face, FT_ULong char_code, FT_UInt *agindex ); Return the next character code in the current charmap of a given face following the value char_code , as well as the corresponding glyph index.","title":"FT_Get_Next_Char"},{"location":"ft2-base_interface.html#ft_get_name_index","text":"Defined in FT_FREETYPE_H (freetype/freetype.h). FT_EXPORT( FT_UInt ) FT_Get_Name_Index ( FT_Face face, const FT_String * glyph_name ); Return the glyph index of a given glyph name.","title":"FT_Get_Name_Index"},{"location":"ft2-base_interface.html#ft_load_char","text":"Defined in FT_FREETYPE_H (freetype/freetype.h). FT_EXPORT( FT_Error ) FT_Load_Char ( FT_Face face, FT_ULong char_code, FT_Int32 load_flags ); Load a glyph into the glyph slot of a face object, accessed by its character code.","title":"FT_Load_Char"},{"location":"ft2-base_interface.html#ft_load_target_mode","text":"Defined in FT_FREETYPE_H (freetype/freetype.h). # define FT_LOAD_TARGET_MODE ( x ) \\ FT_STATIC_CAST( FT_Render_Mode , ( (x) >> 16 ) & 15 ) Return the FT_Render_Mode corresponding to a given FT_LOAD_TARGET_XXX value.","title":"FT_LOAD_TARGET_MODE"},{"location":"ft2-base_interface.html#ft_render_glyph","text":"Defined in FT_FREETYPE_H (freetype/freetype.h). FT_EXPORT( FT_Error ) FT_Render_Glyph ( FT_GlyphSlot slot, FT_Render_Mode render_mode ); Convert a given glyph image to a bitmap. It does so by inspecting the glyph image format, finding the relevant renderer, and invoking it.","title":"FT_Render_Glyph"},{"location":"ft2-base_interface.html#ft_render_mode","text":"Defined in FT_FREETYPE_H (freetype/freetype.h). typedef enum FT_Render_Mode_ { FT_RENDER_MODE_NORMAL = 0, FT_RENDER_MODE_LIGHT , FT_RENDER_MODE_MONO , FT_RENDER_MODE_LCD , FT_RENDER_MODE_LCD_V , FT_RENDER_MODE_SDF , FT_RENDER_MODE_MAX } FT_Render_Mode ; /* these constants are deprecated; use the corresponding */ /* ` FT_Render_Mode ` values instead */ # define ft_render_mode_normal FT_RENDER_MODE_NORMAL # define ft_render_mode_mono FT_RENDER_MODE_MONO Render modes supported by FreeType 2. Each mode corresponds to a specific type of scanline conversion performed on the outline. For bitmap fonts and embedded bitmaps the bitmap->pixel_mode field in the FT_GlyphSlotRec structure gives the format of the returned bitmap. All modes except FT_RENDER_MODE_MONO use 256 levels of opacity, indicating pixel coverage. Use linear alpha blending and gamma correction to correctly render non-monochrome glyph bitmaps onto a surface; see FT_Render_Glyph . The FT_RENDER_MODE_SDF is a special render mode that uses up to 256 distance values, indicating the signed distance from the grid position to the nearest outline.","title":"FT_Render_Mode"},{"location":"ft2-base_interface.html#ft_get_kerning","text":"Defined in FT_FREETYPE_H (freetype/freetype.h). FT_EXPORT( FT_Error ) FT_Get_Kerning ( FT_Face face, FT_UInt left_glyph, FT_UInt right_glyph, FT_UInt kern_mode, FT_Vector *akerning ); Return the kerning vector between two glyphs of the same face.","title":"FT_Get_Kerning"},{"location":"ft2-base_interface.html#ft_kerning_mode","text":"Defined in FT_FREETYPE_H (freetype/freetype.h). typedef enum FT_Kerning_Mode_ { FT_KERNING_DEFAULT = 0, FT_KERNING_UNFITTED , FT_KERNING_UNSCALED } FT_Kerning_Mode ; /* these constants are deprecated; use the corresponding */ /* ` FT_Kerning_Mode ` values instead */ # define ft_kerning_default FT_KERNING_DEFAULT # define ft_kerning_unfitted FT_KERNING_UNFITTED # define ft_kerning_unscaled FT_KERNING_UNSCALED An enumeration to specify the format of kerning values returned by FT_Get_Kerning .","title":"FT_Kerning_Mode"},{"location":"ft2-base_interface.html#ft_get_track_kerning","text":"Defined in FT_FREETYPE_H (freetype/freetype.h). FT_EXPORT( FT_Error ) FT_Get_Track_Kerning ( FT_Face face, FT_Fixed point_size, FT_Int degree, FT_Fixed * akerning ); Return the track kerning for a given face object at a given size.","title":"FT_Get_Track_Kerning"},{"location":"ft2-base_interface.html#ft_get_glyph_name","text":"Defined in FT_FREETYPE_H (freetype/freetype.h). FT_EXPORT( FT_Error ) FT_Get_Glyph_Name ( FT_Face face, FT_UInt glyph_index, FT_Pointer buffer, FT_UInt buffer_max ); Retrieve the ASCII name of a given glyph in a face. This only works for those faces where FT_HAS_GLYPH_NAMES (face) returns 1.","title":"FT_Get_Glyph_Name"},{"location":"ft2-base_interface.html#ft_get_postscript_name","text":"Defined in FT_FREETYPE_H (freetype/freetype.h). FT_EXPORT( const char * ) FT_Get_Postscript_Name ( FT_Face face ); Retrieve the ASCII PostScript name of a given face, if available. This only works with PostScript, TrueType, and OpenType fonts.","title":"FT_Get_Postscript_Name"},{"location":"ft2-base_interface.html#ft_charmaprec","text":"Defined in FT_FREETYPE_H (freetype/freetype.h). typedef struct FT_CharMapRec_ { FT_Face face; FT_Encoding encoding; FT_UShort platform_id; FT_UShort encoding_id; } FT_CharMapRec ; The base charmap structure.","title":"FT_CharMapRec"},{"location":"ft2-base_interface.html#ft_select_charmap","text":"Defined in FT_FREETYPE_H (freetype/freetype.h). FT_EXPORT( FT_Error ) FT_Select_Charmap ( FT_Face face, FT_Encoding encoding ); Select a given charmap by its encoding tag (as listed in freetype.h ).","title":"FT_Select_Charmap"},{"location":"ft2-base_interface.html#ft_set_charmap","text":"Defined in FT_FREETYPE_H (freetype/freetype.h). FT_EXPORT( FT_Error ) FT_Set_Charmap ( FT_Face face, FT_CharMap charmap ); Select a given charmap for character code to glyph index mapping.","title":"FT_Set_Charmap"},{"location":"ft2-base_interface.html#ft_get_charmap_index","text":"Defined in FT_FREETYPE_H (freetype/freetype.h). FT_EXPORT( FT_Int ) FT_Get_Charmap_Index ( FT_CharMap charmap ); Retrieve index of a given charmap.","title":"FT_Get_Charmap_Index"},{"location":"ft2-base_interface.html#ft_get_fstype_flags","text":"Defined in FT_FREETYPE_H (freetype/freetype.h). FT_EXPORT( FT_UShort ) FT_Get_FSType_Flags ( FT_Face face ); Return the fsType flags for a font.","title":"FT_Get_FSType_Flags"},{"location":"ft2-base_interface.html#ft_get_subglyph_info","text":"Defined in FT_FREETYPE_H (freetype/freetype.h). FT_EXPORT( FT_Error ) FT_Get_SubGlyph_Info ( FT_GlyphSlot glyph, FT_UInt sub_index, FT_Int *p_index, FT_UInt *p_flags, FT_Int *p_arg1, FT_Int *p_arg2, FT_Matrix *p_transform ); Retrieve a description of a given subglyph. Only use it if glyph->format is FT_GLYPH_FORMAT_COMPOSITE ; an error is returned otherwise.","title":"FT_Get_SubGlyph_Info"},{"location":"ft2-base_interface.html#ft_face_internal","text":"Defined in FT_FREETYPE_H (freetype/freetype.h). typedef struct FT_Face_InternalRec_* FT_Face_Internal ; An opaque handle to an FT_Face_InternalRec structure that models the private data of a given FT_Face object. This structure might change between releases of FreeType 2 and is not generally available to client applications.","title":"FT_Face_Internal"},{"location":"ft2-base_interface.html#ft_size_internal","text":"Defined in FT_FREETYPE_H (freetype/freetype.h). typedef struct FT_Size_InternalRec_* FT_Size_Internal ; An opaque handle to an FT_Size_InternalRec structure, used to model private data of a given FT_Size object.","title":"FT_Size_Internal"},{"location":"ft2-base_interface.html#ft_slot_internal","text":"Defined in FT_FREETYPE_H (freetype/freetype.h). typedef struct FT_Slot_InternalRec_* FT_Slot_Internal ; An opaque handle to an FT_Slot_InternalRec structure, used to model private data of a given FT_GlyphSlot object.","title":"FT_Slot_Internal"},{"location":"ft2-base_interface.html#ft_face_flag_xxx","text":"Defined in FT_FREETYPE_H (freetype/freetype.h). # define FT_FACE_FLAG_SCALABLE ( 1L << 0 ) # define FT_FACE_FLAG_FIXED_SIZES ( 1L << 1 ) # define FT_FACE_FLAG_FIXED_WIDTH ( 1L << 2 ) # define FT_FACE_FLAG_SFNT ( 1L << 3 ) # define FT_FACE_FLAG_HORIZONTAL ( 1L << 4 ) # define FT_FACE_FLAG_VERTICAL ( 1L << 5 ) # define FT_FACE_FLAG_KERNING ( 1L << 6 ) # define FT_FACE_FLAG_FAST_GLYPHS ( 1L << 7 ) # define FT_FACE_FLAG_MULTIPLE_MASTERS ( 1L << 8 ) # define FT_FACE_FLAG_GLYPH_NAMES ( 1L << 9 ) # define FT_FACE_FLAG_EXTERNAL_STREAM ( 1L << 10 ) # define FT_FACE_FLAG_HINTER ( 1L << 11 ) # define FT_FACE_FLAG_CID_KEYED ( 1L << 12 ) # define FT_FACE_FLAG_TRICKY ( 1L << 13 ) # define FT_FACE_FLAG_COLOR ( 1L << 14 ) # define FT_FACE_FLAG_VARIATION ( 1L << 15 ) A list of bit flags used in the face_flags field of the FT_FaceRec structure. They inform client applications of properties of the corresponding face.","title":"FT_FACE_FLAG_XXX"},{"location":"ft2-base_interface.html#ft_style_flag_xxx","text":"Defined in FT_FREETYPE_H (freetype/freetype.h). # define FT_STYLE_FLAG_ITALIC ( 1 << 0 ) # define FT_STYLE_FLAG_BOLD ( 1 << 1 ) A list of bit flags to indicate the style of a given face. These are used in the style_flags field of FT_FaceRec .","title":"FT_STYLE_FLAG_XXX"},{"location":"ft2-base_interface.html#ft_open_xxx","text":"Defined in FT_FREETYPE_H (freetype/freetype.h). # define FT_OPEN_MEMORY 0x1 # define FT_OPEN_STREAM 0x2 # define FT_OPEN_PATHNAME 0x4 # define FT_OPEN_DRIVER 0x8 # define FT_OPEN_PARAMS 0x10 /* these constants are deprecated; use the corresponding ` FT_OPEN_XXX ` */ /* values instead */ # define ft_open_memory FT_OPEN_MEMORY # define ft_open_stream FT_OPEN_STREAM # define ft_open_pathname FT_OPEN_PATHNAME # define ft_open_driver FT_OPEN_DRIVER # define ft_open_params FT_OPEN_PARAMS A list of bit field constants used within the flags field of the FT_Open_Args structure.","title":"FT_OPEN_XXX"},{"location":"ft2-base_interface.html#ft_load_xxx","text":"Defined in FT_FREETYPE_H (freetype/freetype.h). # define FT_LOAD_DEFAULT 0x0 # define FT_LOAD_NO_SCALE ( 1L << 0 ) # define FT_LOAD_NO_HINTING ( 1L << 1 ) # define FT_LOAD_RENDER ( 1L << 2 ) # define FT_LOAD_NO_BITMAP ( 1L << 3 ) # define FT_LOAD_VERTICAL_LAYOUT ( 1L << 4 ) # define FT_LOAD_FORCE_AUTOHINT ( 1L << 5 ) # define FT_LOAD_CROP_BITMAP ( 1L << 6 ) # define FT_LOAD_PEDANTIC ( 1L << 7 ) # define FT_LOAD_IGNORE_GLOBAL_ADVANCE_WIDTH ( 1L << 9 ) # define FT_LOAD_NO_RECURSE ( 1L << 10 ) # define FT_LOAD_IGNORE_TRANSFORM ( 1L << 11 ) # define FT_LOAD_MONOCHROME ( 1L << 12 ) # define FT_LOAD_LINEAR_DESIGN ( 1L << 13 ) # define FT_LOAD_NO_AUTOHINT ( 1L << 15 ) /* Bits 16-19 are used by `FT_LOAD_TARGET_` */ # define FT_LOAD_COLOR ( 1L << 20 ) # define FT_LOAD_COMPUTE_METRICS ( 1L << 21 ) # define FT_LOAD_BITMAP_METRICS_ONLY ( 1L << 22 ) A list of bit field constants for FT_Load_Glyph to indicate what kind of operations to perform during glyph loading.","title":"FT_LOAD_XXX"},{"location":"ft2-base_interface.html#ft_load_target_xxx","text":"Defined in FT_FREETYPE_H (freetype/freetype.h). # define FT_LOAD_TARGET_( x ) ( FT_STATIC_CAST( FT_Int32 , (x) & 15 ) << 16 ) # define FT_LOAD_TARGET_NORMAL FT_LOAD_TARGET_( FT_RENDER_MODE_NORMAL ) # define FT_LOAD_TARGET_LIGHT FT_LOAD_TARGET_( FT_RENDER_MODE_LIGHT ) # define FT_LOAD_TARGET_MONO FT_LOAD_TARGET_( FT_RENDER_MODE_MONO ) # define FT_LOAD_TARGET_LCD FT_LOAD_TARGET_( FT_RENDER_MODE_LCD ) # define FT_LOAD_TARGET_LCD_V FT_LOAD_TARGET_( FT_RENDER_MODE_LCD_V ) A list of values to select a specific hinting algorithm for the hinter. You should OR one of these values to your load_flags when calling FT_Load_Glyph . Note that a font's native hinters may ignore the hinting algorithm you have specified (e.g., the TrueType bytecode interpreter). You can set FT_LOAD_FORCE_AUTOHINT to ensure that the auto-hinter is used.","title":"FT_LOAD_TARGET_XXX"},{"location":"ft2-base_interface.html#ft_subglyph_flag_xxx","text":"Defined in FT_FREETYPE_H (freetype/freetype.h). # define FT_SUBGLYPH_FLAG_ARGS_ARE_WORDS 1 # define FT_SUBGLYPH_FLAG_ARGS_ARE_XY_VALUES 2 # define FT_SUBGLYPH_FLAG_ROUND_XY_TO_GRID 4 # define FT_SUBGLYPH_FLAG_SCALE 8 # define FT_SUBGLYPH_FLAG_XY_SCALE 0x40 # define FT_SUBGLYPH_FLAG_2X2 0x80 # define FT_SUBGLYPH_FLAG_USE_MY_METRICS 0x200 A list of constants describing subglyphs. Please refer to the \u2018glyf\u2019 table description in the OpenType specification for the meaning of the various flags (which get synthesized for non-OpenType subglyphs). https://docs.microsoft.com/en-us/typography/opentype/spec/glyf#composite-glyph-description","title":"FT_SUBGLYPH_FLAG_XXX"},{"location":"ft2-base_interface.html#ft_fstype_xxx","text":"Defined in FT_FREETYPE_H (freetype/freetype.h). # define FT_FSTYPE_INSTALLABLE_EMBEDDING 0x0000 # define FT_FSTYPE_RESTRICTED_LICENSE_EMBEDDING 0x0002 # define FT_FSTYPE_PREVIEW_AND_PRINT_EMBEDDING 0x0004 # define FT_FSTYPE_EDITABLE_EMBEDDING 0x0008 # define FT_FSTYPE_NO_SUBSETTING 0x0100 # define FT_FSTYPE_BITMAP_EMBEDDING_ONLY 0x0200 A list of bit flags used in the fsType field of the OS/2 table in a TrueType or OpenType font and the FSType entry in a PostScript font. These bit flags are returned by FT_Get_FSType_Flags ; they inform client applications of embedding and subsetting restrictions associated with a font. See https://www.adobe.com/content/dam/Adobe/en/devnet/acrobat/pdfs/FontPolicies.pdf for more details.","title":"FT_FSTYPE_XXX"},{"location":"ft2-base_interface.html#ft_has_fast_glyphs","text":"Defined in FT_FREETYPE_H (freetype/freetype.h). # define FT_HAS_FAST_GLYPHS ( face ) 0 Deprecated.","title":"FT_HAS_FAST_GLYPHS"},{"location":"ft2-basic_types.html","text":"FreeType \u00bb Docs \u00bb Core API \u00bb Basic Data Types Basic Data Types \u00b6 Synopsis \u00b6 This section contains the basic data types defined by FreeType 2, ranging from simple scalar types to bitmap descriptors. More font-specific structures are defined in a different section. FT_Byte \u00b6 Defined in FT_TYPES_H (freetype/fttypes.h). typedef unsigned char FT_Byte ; A simple typedef for the unsigned char type. FT_Bytes \u00b6 Defined in FT_TYPES_H (freetype/fttypes.h). typedef const FT_Byte * FT_Bytes ; A typedef for constant memory areas. FT_Char \u00b6 Defined in FT_TYPES_H (freetype/fttypes.h). typedef signed char FT_Char ; A simple typedef for the signed char type. FT_Int \u00b6 Defined in FT_TYPES_H (freetype/fttypes.h). typedef signed int FT_Int ; A typedef for the int type. FT_UInt \u00b6 Defined in FT_TYPES_H (freetype/fttypes.h). typedef unsigned int FT_UInt ; A typedef for the unsigned int type. FT_Int16 \u00b6 typedef signed short FT_Int16 ; A typedef for a 16bit signed integer type. FT_UInt16 \u00b6 typedef unsigned short FT_UInt16 ; A typedef for a 16bit unsigned integer type. FT_Int32 \u00b6 typedef signed XXX FT_Int32 ; A typedef for a 32bit signed integer type. The size depends on the configuration. FT_UInt32 \u00b6 typedef unsigned XXX FT_UInt32 ; FT_Int64 \u00b6 typedef signed XXX FT_Int64 ; FT_UInt64 \u00b6 typedef unsigned XXX FT_UInt64 ; FT_Short \u00b6 Defined in FT_TYPES_H (freetype/fttypes.h). typedef signed short FT_Short ; A typedef for signed short. FT_UShort \u00b6 Defined in FT_TYPES_H (freetype/fttypes.h). typedef unsigned short FT_UShort ; A typedef for unsigned short. FT_Long \u00b6 Defined in FT_TYPES_H (freetype/fttypes.h). typedef signed long FT_Long ; A typedef for signed long. FT_ULong \u00b6 Defined in FT_TYPES_H (freetype/fttypes.h). typedef unsigned long FT_ULong ; A typedef for unsigned long. FT_Bool \u00b6 Defined in FT_TYPES_H (freetype/fttypes.h). typedef unsigned char FT_Bool ; A typedef of unsigned char, used for simple booleans. As usual, values 1 and 0 represent true and false, respectively. FT_Offset \u00b6 Defined in FT_TYPES_H (freetype/fttypes.h). typedef size_t FT_Offset ; This is equivalent to the ANSI C size_t type, i.e., the largest unsigned integer type used to express a file size or position, or a memory block size. FT_PtrDist \u00b6 Defined in FT_TYPES_H (freetype/fttypes.h). typedef ft_ptrdiff_t FT_PtrDist ; This is equivalent to the ANSI C ptrdiff_t type, i.e., the largest signed integer type used to express the distance between two pointers. FT_String \u00b6 Defined in FT_TYPES_H (freetype/fttypes.h). typedef char FT_String ; A simple typedef for the char type, usually used for strings. FT_Tag \u00b6 Defined in FT_TYPES_H (freetype/fttypes.h). typedef FT_UInt32 FT_Tag ; A typedef for 32-bit tags (as used in the SFNT format). FT_Error \u00b6 Defined in FT_TYPES_H (freetype/fttypes.h). typedef int FT_Error ; The FreeType error code type. A value of 0 is always interpreted as a successful operation. FT_Fixed \u00b6 Defined in FT_TYPES_H (freetype/fttypes.h). typedef signed long FT_Fixed ; This type is used to store 16.16 fixed-point values, like scaling values or matrix coefficients. FT_Pointer \u00b6 Defined in FT_TYPES_H (freetype/fttypes.h). typedef void * FT_Pointer ; A simple typedef for a typeless pointer. FT_Pos \u00b6 Defined in FT_IMAGE_H (freetype/ftimage.h). typedef signed long FT_Pos ; The type FT_Pos is used to store vectorial coordinates. Depending on the context, these can represent distances in integer font units, or 16.16, or 26.6 fixed-point pixel coordinates. FT_Vector \u00b6 Defined in FT_IMAGE_H (freetype/ftimage.h). typedef struct FT_Vector_ { FT_Pos x; FT_Pos y; } FT_Vector ; A simple structure used to store a 2D vector; coordinates are of the FT_Pos type. fields x The horizontal coordinate. y The vertical coordinate. FT_BBox \u00b6 Defined in FT_IMAGE_H (freetype/ftimage.h). typedef struct FT_BBox_ { FT_Pos xMin, yMin; FT_Pos xMax, yMax; } FT_BBox ; A structure used to hold an outline's bounding box, i.e., the coordinates of its extrema in the horizontal and vertical directions. fields xMin The horizontal minimum (left-most). yMin The vertical minimum (bottom-most). xMax The horizontal maximum (right-most). yMax The vertical maximum (top-most). note The bounding box is specified with the coordinates of the lower left and the upper right corner. In PostScript, those values are often called (llx,lly) and (urx,ury), respectively. If yMin is negative, this value gives the glyph's descender. Otherwise, the glyph doesn't descend below the baseline. Similarly, if ymax is positive, this value gives the glyph's ascender. xMin gives the horizontal distance from the glyph's origin to the left edge of the glyph's bounding box. If xMin is negative, the glyph extends to the left of the origin. FT_Matrix \u00b6 Defined in FT_TYPES_H (freetype/fttypes.h). typedef struct FT_Matrix_ { FT_Fixed xx, xy; FT_Fixed yx, yy; } FT_Matrix ; A simple structure used to store a 2x2 matrix. Coefficients are in 16.16 fixed-point format. The computation performed is: x' = x*xx + y*xy y' = x*yx + y*yy fields xx Matrix coefficient. xy Matrix coefficient. yx Matrix coefficient. yy Matrix coefficient. FT_FWord \u00b6 Defined in FT_TYPES_H (freetype/fttypes.h). typedef signed short FT_FWord ; /* distance in FUnits */ A signed 16-bit integer used to store a distance in original font units. FT_UFWord \u00b6 Defined in FT_TYPES_H (freetype/fttypes.h). typedef unsigned short FT_UFWord ; /* unsigned distance */ An unsigned 16-bit integer used to store a distance in original font units. FT_F2Dot14 \u00b6 Defined in FT_TYPES_H (freetype/fttypes.h). typedef signed short FT_F2Dot14 ; A signed 2.14 fixed-point type used for unit vectors. FT_UnitVector \u00b6 Defined in FT_TYPES_H (freetype/fttypes.h). typedef struct FT_UnitVector_ { FT_F2Dot14 x; FT_F2Dot14 y; } FT_UnitVector ; A simple structure used to store a 2D vector unit vector. Uses FT_F2Dot14 types. fields x Horizontal coordinate. y Vertical coordinate. FT_F26Dot6 \u00b6 Defined in FT_TYPES_H (freetype/fttypes.h). typedef signed long FT_F26Dot6 ; A signed 26.6 fixed-point type used for vectorial pixel coordinates. FT_Data \u00b6 Defined in FT_TYPES_H (freetype/fttypes.h). typedef struct FT_Data_ { const FT_Byte * pointer; FT_UInt length; } FT_Data ; Read-only binary data represented as a pointer and a length. fields pointer The data. length The length of the data in bytes. FT_MAKE_TAG \u00b6 Defined in FT_TYPES_H (freetype/fttypes.h). # define FT_MAKE_TAG ( _x1, _x2, _x3, _x4 ) \\ ( ( FT_STATIC_BYTE_CAST( FT_Tag , _x1 ) << 24 ) | \\ ( FT_STATIC_BYTE_CAST( FT_Tag , _x2 ) << 16 ) | \\ ( FT_STATIC_BYTE_CAST( FT_Tag , _x3 ) << 8 ) | \\ FT_STATIC_BYTE_CAST( FT_Tag , _x4 ) ) This macro converts four-letter tags that are used to label TrueType tables into an FT_Tag type, to be used within FreeType. note The produced values must be 32-bit integers. Don't redefine this macro. FT_Generic \u00b6 Defined in FT_TYPES_H (freetype/fttypes.h). typedef struct FT_Generic_ { void * data; FT_Generic_Finalizer finalizer; } FT_Generic ; Client applications often need to associate their own data to a variety of FreeType core objects. For example, a text layout API might want to associate a glyph cache to a given size object. Some FreeType object contains a generic field, of type FT_Generic , which usage is left to client applications and font servers. It can be used to store a pointer to client-specific data, as well as the address of a \u2018finalizer\u2019 function, which will be called by FreeType when the object is destroyed (for example, the previous client example would put the address of the glyph cache destructor in the finalizer field). fields data A typeless pointer to any client-specified data. This field is completely ignored by the FreeType library. finalizer A pointer to a \u2018generic finalizer\u2019 function, which will be called when the object is destroyed. If this field is set to NULL , no code will be called. FT_Generic_Finalizer \u00b6 Defined in FT_TYPES_H (freetype/fttypes.h). typedef void (* FT_Generic_Finalizer )( void * object ); Describe a function used to destroy the \u2018client\u2019 data of any FreeType object. See the description of the FT_Generic type for details of usage. input The address of the FreeType object that is under finalization. Its client data is accessed through its generic field. FT_Bitmap \u00b6 Defined in FT_IMAGE_H (freetype/ftimage.h). typedef struct FT_Bitmap_ { unsigned int rows; unsigned int width; int pitch; unsigned char * buffer; unsigned short num_grays; unsigned char pixel_mode; unsigned char palette_mode; void * palette; } FT_Bitmap ; A structure used to describe a bitmap or pixmap to the raster. Note that we now manage pixmaps of various depths through the pixel_mode field. fields rows The number of bitmap rows. width The number of pixels in bitmap row. pitch The pitch's absolute value is the number of bytes taken by one bitmap row, including padding. However, the pitch is positive when the bitmap has a \u2018down\u2019 flow, and negative when it has an \u2018up\u2019 flow. In all cases, the pitch is an offset to add to a bitmap pointer in order to go down one row. Note that \u2018padding\u2019 means the alignment of a bitmap to a byte border, and FreeType functions normally align to the smallest possible integer value. For the B/W rasterizer, pitch is always an even number. To change the pitch of a bitmap (say, to make it a multiple of 4), use FT_Bitmap_Convert . Alternatively, you might use callback functions to directly render to the application's surface; see the file example2.cpp in the tutorial for a demonstration. buffer A typeless pointer to the bitmap buffer. This value should be aligned on 32-bit boundaries in most cases. num_grays This field is only used with FT_PIXEL_MODE_GRAY ; it gives the number of gray levels used in the bitmap. pixel_mode The pixel mode, i.e., how pixel bits are stored. See FT_Pixel_Mode for possible values. palette_mode This field is intended for paletted pixel modes; it indicates how the palette is stored. Not used currently. palette A typeless pointer to the bitmap palette; this field is intended for paletted pixel modes. Not used currently. FT_Pixel_Mode \u00b6 Defined in FT_IMAGE_H (freetype/ftimage.h). typedef enum FT_Pixel_Mode_ { FT_PIXEL_MODE_NONE = 0, FT_PIXEL_MODE_MONO , FT_PIXEL_MODE_GRAY , FT_PIXEL_MODE_GRAY2 , FT_PIXEL_MODE_GRAY4 , FT_PIXEL_MODE_LCD , FT_PIXEL_MODE_LCD_V , FT_PIXEL_MODE_BGRA , FT_PIXEL_MODE_MAX /* do not remove */ } FT_Pixel_Mode ; /* these constants are deprecated; use the corresponding ` FT_Pixel_Mode ` */ /* values instead. */ # define ft_pixel_mode_none FT_PIXEL_MODE_NONE # define ft_pixel_mode_mono FT_PIXEL_MODE_MONO # define ft_pixel_mode_grays FT_PIXEL_MODE_GRAY # define ft_pixel_mode_pal2 FT_PIXEL_MODE_GRAY2 # define ft_pixel_mode_pal4 FT_PIXEL_MODE_GRAY4 An enumeration type used to describe the format of pixels in a given bitmap. Note that additional formats may be added in the future. values FT_PIXEL_MODE_NONE Value 0 is reserved. FT_PIXEL_MODE_MONO A monochrome bitmap, using 1 bit per pixel. Note that pixels are stored in most-significant order (MSB), which means that the left-most pixel in a byte has value 128. FT_PIXEL_MODE_GRAY An 8-bit bitmap, generally used to represent anti-aliased glyph images. Each pixel is stored in one byte. Note that the number of \u2018gray\u2019 levels is stored in the num_grays field of the FT_Bitmap structure (it generally is 256). FT_PIXEL_MODE_GRAY2 A 2-bit per pixel bitmap, used to represent embedded anti-aliased bitmaps in font files according to the OpenType specification. We haven't found a single font using this format, however. FT_PIXEL_MODE_GRAY4 A 4-bit per pixel bitmap, representing embedded anti-aliased bitmaps in font files according to the OpenType specification. We haven't found a single font using this format, however. FT_PIXEL_MODE_LCD An 8-bit bitmap, representing RGB or BGR decimated glyph images used for display on LCD displays; the bitmap is three times wider than the original glyph image. See also FT_RENDER_MODE_LCD . FT_PIXEL_MODE_LCD_V An 8-bit bitmap, representing RGB or BGR decimated glyph images used for display on rotated LCD displays; the bitmap is three times taller than the original glyph image. See also FT_RENDER_MODE_LCD_V . FT_PIXEL_MODE_BGRA [Since 2.5] An image with four 8-bit channels per pixel, representing a color image (such as emoticons) with alpha channel. For each pixel, the format is BGRA, which means, the blue channel comes first in memory. The color channels are pre-multiplied and in the sRGB colorspace. For example, full red at half-translucent opacity will be represented as \u201800,00,80,80\u2019, not \u201800,00,FF,80\u2019. See also FT_LOAD_COLOR . FT_Glyph_Format \u00b6 Defined in FT_IMAGE_H (freetype/ftimage.h). typedef enum FT_Glyph_Format_ { FT_IMAGE_TAG ( FT_GLYPH_FORMAT_NONE , 0, 0, 0, 0 ), FT_IMAGE_TAG ( FT_GLYPH_FORMAT_COMPOSITE , 'c', 'o', 'm', 'p' ), FT_IMAGE_TAG ( FT_GLYPH_FORMAT_BITMAP , 'b', 'i', 't', 's' ), FT_IMAGE_TAG ( FT_GLYPH_FORMAT_OUTLINE , 'o', 'u', 't', 'l' ), FT_IMAGE_TAG ( FT_GLYPH_FORMAT_PLOTTER , 'p', 'l', 'o', 't' ) } FT_Glyph_Format ; /* these constants are deprecated; use the corresponding */ /* ` FT_Glyph_Format ` values instead. */ # define ft_glyph_format_none FT_GLYPH_FORMAT_NONE # define ft_glyph_format_composite FT_GLYPH_FORMAT_COMPOSITE # define ft_glyph_format_bitmap FT_GLYPH_FORMAT_BITMAP # define ft_glyph_format_outline FT_GLYPH_FORMAT_OUTLINE # define ft_glyph_format_plotter FT_GLYPH_FORMAT_PLOTTER An enumeration type used to describe the format of a given glyph image. Note that this version of FreeType only supports two image formats, even though future font drivers will be able to register their own format. values FT_GLYPH_FORMAT_NONE The value 0 is reserved. FT_GLYPH_FORMAT_COMPOSITE The glyph image is a composite of several other images. This format is only used with FT_LOAD_NO_RECURSE , and is used to report compound glyphs (like accented characters). FT_GLYPH_FORMAT_BITMAP The glyph image is a bitmap, and can be described as an FT_Bitmap . You generally need to access the bitmap field of the FT_GlyphSlotRec structure to read it. FT_GLYPH_FORMAT_OUTLINE The glyph image is a vectorial outline made of line segments and Bezier arcs; it can be described as an FT_Outline ; you generally want to access the outline field of the FT_GlyphSlotRec structure to read it. FT_GLYPH_FORMAT_PLOTTER The glyph image is a vectorial path with no inside and outside contours. Some Type 1 fonts, like those in the Hershey family, contain glyphs in this format. These are described as FT_Outline , but FreeType isn't currently capable of rendering them correctly. FT_IMAGE_TAG \u00b6 Defined in FT_IMAGE_H (freetype/ftimage.h). # ifndef FT_IMAGE_TAG # define FT_IMAGE_TAG ( value, _x1, _x2, _x3, _x4 ) \\ value = ( ( FT_STATIC_BYTE_CAST( unsigned long , _x1 ) << 24 ) | \\ ( FT_STATIC_BYTE_CAST( unsigned long , _x2 ) << 16 ) | \\ ( FT_STATIC_BYTE_CAST( unsigned long , _x3 ) << 8 ) | \\ FT_STATIC_BYTE_CAST( unsigned long , _x4 ) ) # endif /* FT_IMAGE_TAG */ This macro converts four-letter tags to an unsigned long type. note Since many 16-bit compilers don't like 32-bit enumerations, you should redefine this macro in case of problems to something like this: #define FT_IMAGE_TAG( value, _x1, _x2, _x3, _x4 ) value to get a simple enumeration without assigning special numbers.","title":"Basic Data Types"},{"location":"ft2-basic_types.html#basic-data-types","text":"","title":"Basic Data Types"},{"location":"ft2-basic_types.html#synopsis","text":"This section contains the basic data types defined by FreeType 2, ranging from simple scalar types to bitmap descriptors. More font-specific structures are defined in a different section.","title":"Synopsis"},{"location":"ft2-basic_types.html#ft_byte","text":"Defined in FT_TYPES_H (freetype/fttypes.h). typedef unsigned char FT_Byte ; A simple typedef for the unsigned char type.","title":"FT_Byte"},{"location":"ft2-basic_types.html#ft_bytes","text":"Defined in FT_TYPES_H (freetype/fttypes.h). typedef const FT_Byte * FT_Bytes ; A typedef for constant memory areas.","title":"FT_Bytes"},{"location":"ft2-basic_types.html#ft_char","text":"Defined in FT_TYPES_H (freetype/fttypes.h). typedef signed char FT_Char ; A simple typedef for the signed char type.","title":"FT_Char"},{"location":"ft2-basic_types.html#ft_int","text":"Defined in FT_TYPES_H (freetype/fttypes.h). typedef signed int FT_Int ; A typedef for the int type.","title":"FT_Int"},{"location":"ft2-basic_types.html#ft_uint","text":"Defined in FT_TYPES_H (freetype/fttypes.h). typedef unsigned int FT_UInt ; A typedef for the unsigned int type.","title":"FT_UInt"},{"location":"ft2-basic_types.html#ft_int16","text":"typedef signed short FT_Int16 ; A typedef for a 16bit signed integer type.","title":"FT_Int16"},{"location":"ft2-basic_types.html#ft_uint16","text":"typedef unsigned short FT_UInt16 ; A typedef for a 16bit unsigned integer type.","title":"FT_UInt16"},{"location":"ft2-basic_types.html#ft_int32","text":"typedef signed XXX FT_Int32 ; A typedef for a 32bit signed integer type. The size depends on the configuration.","title":"FT_Int32"},{"location":"ft2-basic_types.html#ft_uint32","text":"typedef unsigned XXX FT_UInt32 ;","title":"FT_UInt32"},{"location":"ft2-basic_types.html#ft_int64","text":"typedef signed XXX FT_Int64 ;","title":"FT_Int64"},{"location":"ft2-basic_types.html#ft_uint64","text":"typedef unsigned XXX FT_UInt64 ;","title":"FT_UInt64"},{"location":"ft2-basic_types.html#ft_short","text":"Defined in FT_TYPES_H (freetype/fttypes.h). typedef signed short FT_Short ; A typedef for signed short.","title":"FT_Short"},{"location":"ft2-basic_types.html#ft_ushort","text":"Defined in FT_TYPES_H (freetype/fttypes.h). typedef unsigned short FT_UShort ; A typedef for unsigned short.","title":"FT_UShort"},{"location":"ft2-basic_types.html#ft_long","text":"Defined in FT_TYPES_H (freetype/fttypes.h). typedef signed long FT_Long ; A typedef for signed long.","title":"FT_Long"},{"location":"ft2-basic_types.html#ft_ulong","text":"Defined in FT_TYPES_H (freetype/fttypes.h). typedef unsigned long FT_ULong ; A typedef for unsigned long.","title":"FT_ULong"},{"location":"ft2-basic_types.html#ft_bool","text":"Defined in FT_TYPES_H (freetype/fttypes.h). typedef unsigned char FT_Bool ; A typedef of unsigned char, used for simple booleans. As usual, values 1 and 0 represent true and false, respectively.","title":"FT_Bool"},{"location":"ft2-basic_types.html#ft_offset","text":"Defined in FT_TYPES_H (freetype/fttypes.h). typedef size_t FT_Offset ; This is equivalent to the ANSI C size_t type, i.e., the largest unsigned integer type used to express a file size or position, or a memory block size.","title":"FT_Offset"},{"location":"ft2-basic_types.html#ft_ptrdist","text":"Defined in FT_TYPES_H (freetype/fttypes.h). typedef ft_ptrdiff_t FT_PtrDist ; This is equivalent to the ANSI C ptrdiff_t type, i.e., the largest signed integer type used to express the distance between two pointers.","title":"FT_PtrDist"},{"location":"ft2-basic_types.html#ft_string","text":"Defined in FT_TYPES_H (freetype/fttypes.h). typedef char FT_String ; A simple typedef for the char type, usually used for strings.","title":"FT_String"},{"location":"ft2-basic_types.html#ft_tag","text":"Defined in FT_TYPES_H (freetype/fttypes.h). typedef FT_UInt32 FT_Tag ; A typedef for 32-bit tags (as used in the SFNT format).","title":"FT_Tag"},{"location":"ft2-basic_types.html#ft_error","text":"Defined in FT_TYPES_H (freetype/fttypes.h). typedef int FT_Error ; The FreeType error code type. A value of 0 is always interpreted as a successful operation.","title":"FT_Error"},{"location":"ft2-basic_types.html#ft_fixed","text":"Defined in FT_TYPES_H (freetype/fttypes.h). typedef signed long FT_Fixed ; This type is used to store 16.16 fixed-point values, like scaling values or matrix coefficients.","title":"FT_Fixed"},{"location":"ft2-basic_types.html#ft_pointer","text":"Defined in FT_TYPES_H (freetype/fttypes.h). typedef void * FT_Pointer ; A simple typedef for a typeless pointer.","title":"FT_Pointer"},{"location":"ft2-basic_types.html#ft_pos","text":"Defined in FT_IMAGE_H (freetype/ftimage.h). typedef signed long FT_Pos ; The type FT_Pos is used to store vectorial coordinates. Depending on the context, these can represent distances in integer font units, or 16.16, or 26.6 fixed-point pixel coordinates.","title":"FT_Pos"},{"location":"ft2-basic_types.html#ft_vector","text":"Defined in FT_IMAGE_H (freetype/ftimage.h). typedef struct FT_Vector_ { FT_Pos x; FT_Pos y; } FT_Vector ; A simple structure used to store a 2D vector; coordinates are of the FT_Pos type.","title":"FT_Vector"},{"location":"ft2-basic_types.html#ft_bbox","text":"Defined in FT_IMAGE_H (freetype/ftimage.h). typedef struct FT_BBox_ { FT_Pos xMin, yMin; FT_Pos xMax, yMax; } FT_BBox ; A structure used to hold an outline's bounding box, i.e., the coordinates of its extrema in the horizontal and vertical directions.","title":"FT_BBox"},{"location":"ft2-basic_types.html#ft_matrix","text":"Defined in FT_TYPES_H (freetype/fttypes.h). typedef struct FT_Matrix_ { FT_Fixed xx, xy; FT_Fixed yx, yy; } FT_Matrix ; A simple structure used to store a 2x2 matrix. Coefficients are in 16.16 fixed-point format. The computation performed is: x' = x*xx + y*xy y' = x*yx + y*yy","title":"FT_Matrix"},{"location":"ft2-basic_types.html#ft_fword","text":"Defined in FT_TYPES_H (freetype/fttypes.h). typedef signed short FT_FWord ; /* distance in FUnits */ A signed 16-bit integer used to store a distance in original font units.","title":"FT_FWord"},{"location":"ft2-basic_types.html#ft_ufword","text":"Defined in FT_TYPES_H (freetype/fttypes.h). typedef unsigned short FT_UFWord ; /* unsigned distance */ An unsigned 16-bit integer used to store a distance in original font units.","title":"FT_UFWord"},{"location":"ft2-basic_types.html#ft_f2dot14","text":"Defined in FT_TYPES_H (freetype/fttypes.h). typedef signed short FT_F2Dot14 ; A signed 2.14 fixed-point type used for unit vectors.","title":"FT_F2Dot14"},{"location":"ft2-basic_types.html#ft_unitvector","text":"Defined in FT_TYPES_H (freetype/fttypes.h). typedef struct FT_UnitVector_ { FT_F2Dot14 x; FT_F2Dot14 y; } FT_UnitVector ; A simple structure used to store a 2D vector unit vector. Uses FT_F2Dot14 types.","title":"FT_UnitVector"},{"location":"ft2-basic_types.html#ft_f26dot6","text":"Defined in FT_TYPES_H (freetype/fttypes.h). typedef signed long FT_F26Dot6 ; A signed 26.6 fixed-point type used for vectorial pixel coordinates.","title":"FT_F26Dot6"},{"location":"ft2-basic_types.html#ft_data","text":"Defined in FT_TYPES_H (freetype/fttypes.h). typedef struct FT_Data_ { const FT_Byte * pointer; FT_UInt length; } FT_Data ; Read-only binary data represented as a pointer and a length.","title":"FT_Data"},{"location":"ft2-basic_types.html#ft_make_tag","text":"Defined in FT_TYPES_H (freetype/fttypes.h). # define FT_MAKE_TAG ( _x1, _x2, _x3, _x4 ) \\ ( ( FT_STATIC_BYTE_CAST( FT_Tag , _x1 ) << 24 ) | \\ ( FT_STATIC_BYTE_CAST( FT_Tag , _x2 ) << 16 ) | \\ ( FT_STATIC_BYTE_CAST( FT_Tag , _x3 ) << 8 ) | \\ FT_STATIC_BYTE_CAST( FT_Tag , _x4 ) ) This macro converts four-letter tags that are used to label TrueType tables into an FT_Tag type, to be used within FreeType.","title":"FT_MAKE_TAG"},{"location":"ft2-basic_types.html#ft_generic","text":"Defined in FT_TYPES_H (freetype/fttypes.h). typedef struct FT_Generic_ { void * data; FT_Generic_Finalizer finalizer; } FT_Generic ; Client applications often need to associate their own data to a variety of FreeType core objects. For example, a text layout API might want to associate a glyph cache to a given size object. Some FreeType object contains a generic field, of type FT_Generic , which usage is left to client applications and font servers. It can be used to store a pointer to client-specific data, as well as the address of a \u2018finalizer\u2019 function, which will be called by FreeType when the object is destroyed (for example, the previous client example would put the address of the glyph cache destructor in the finalizer field).","title":"FT_Generic"},{"location":"ft2-basic_types.html#ft_generic_finalizer","text":"Defined in FT_TYPES_H (freetype/fttypes.h). typedef void (* FT_Generic_Finalizer )( void * object ); Describe a function used to destroy the \u2018client\u2019 data of any FreeType object. See the description of the FT_Generic type for details of usage.","title":"FT_Generic_Finalizer"},{"location":"ft2-basic_types.html#ft_bitmap","text":"Defined in FT_IMAGE_H (freetype/ftimage.h). typedef struct FT_Bitmap_ { unsigned int rows; unsigned int width; int pitch; unsigned char * buffer; unsigned short num_grays; unsigned char pixel_mode; unsigned char palette_mode; void * palette; } FT_Bitmap ; A structure used to describe a bitmap or pixmap to the raster. Note that we now manage pixmaps of various depths through the pixel_mode field.","title":"FT_Bitmap"},{"location":"ft2-basic_types.html#ft_pixel_mode","text":"Defined in FT_IMAGE_H (freetype/ftimage.h). typedef enum FT_Pixel_Mode_ { FT_PIXEL_MODE_NONE = 0, FT_PIXEL_MODE_MONO , FT_PIXEL_MODE_GRAY , FT_PIXEL_MODE_GRAY2 , FT_PIXEL_MODE_GRAY4 , FT_PIXEL_MODE_LCD , FT_PIXEL_MODE_LCD_V , FT_PIXEL_MODE_BGRA , FT_PIXEL_MODE_MAX /* do not remove */ } FT_Pixel_Mode ; /* these constants are deprecated; use the corresponding ` FT_Pixel_Mode ` */ /* values instead. */ # define ft_pixel_mode_none FT_PIXEL_MODE_NONE # define ft_pixel_mode_mono FT_PIXEL_MODE_MONO # define ft_pixel_mode_grays FT_PIXEL_MODE_GRAY # define ft_pixel_mode_pal2 FT_PIXEL_MODE_GRAY2 # define ft_pixel_mode_pal4 FT_PIXEL_MODE_GRAY4 An enumeration type used to describe the format of pixels in a given bitmap. Note that additional formats may be added in the future.","title":"FT_Pixel_Mode"},{"location":"ft2-basic_types.html#ft_glyph_format","text":"Defined in FT_IMAGE_H (freetype/ftimage.h). typedef enum FT_Glyph_Format_ { FT_IMAGE_TAG ( FT_GLYPH_FORMAT_NONE , 0, 0, 0, 0 ), FT_IMAGE_TAG ( FT_GLYPH_FORMAT_COMPOSITE , 'c', 'o', 'm', 'p' ), FT_IMAGE_TAG ( FT_GLYPH_FORMAT_BITMAP , 'b', 'i', 't', 's' ), FT_IMAGE_TAG ( FT_GLYPH_FORMAT_OUTLINE , 'o', 'u', 't', 'l' ), FT_IMAGE_TAG ( FT_GLYPH_FORMAT_PLOTTER , 'p', 'l', 'o', 't' ) } FT_Glyph_Format ; /* these constants are deprecated; use the corresponding */ /* ` FT_Glyph_Format ` values instead. */ # define ft_glyph_format_none FT_GLYPH_FORMAT_NONE # define ft_glyph_format_composite FT_GLYPH_FORMAT_COMPOSITE # define ft_glyph_format_bitmap FT_GLYPH_FORMAT_BITMAP # define ft_glyph_format_outline FT_GLYPH_FORMAT_OUTLINE # define ft_glyph_format_plotter FT_GLYPH_FORMAT_PLOTTER An enumeration type used to describe the format of a given glyph image. Note that this version of FreeType only supports two image formats, even though future font drivers will be able to register their own format.","title":"FT_Glyph_Format"},{"location":"ft2-basic_types.html#ft_image_tag","text":"Defined in FT_IMAGE_H (freetype/ftimage.h). # ifndef FT_IMAGE_TAG # define FT_IMAGE_TAG ( value, _x1, _x2, _x3, _x4 ) \\ value = ( ( FT_STATIC_BYTE_CAST( unsigned long , _x1 ) << 24 ) | \\ ( FT_STATIC_BYTE_CAST( unsigned long , _x2 ) << 16 ) | \\ ( FT_STATIC_BYTE_CAST( unsigned long , _x3 ) << 8 ) | \\ FT_STATIC_BYTE_CAST( unsigned long , _x4 ) ) # endif /* FT_IMAGE_TAG */ This macro converts four-letter tags to an unsigned long type.","title":"FT_IMAGE_TAG"},{"location":"ft2-bdf_fonts.html","text":"FreeType \u00bb Docs \u00bb Format-Specific API \u00bb BDF and PCF Files BDF and PCF Files \u00b6 Synopsis \u00b6 This section contains the declaration of functions specific to BDF and PCF fonts. BDF_PropertyType \u00b6 Defined in FT_BDF_H (freetype/ftbdf.h). typedef enum BDF_PropertyType_ { BDF_PROPERTY_TYPE_NONE = 0, BDF_PROPERTY_TYPE_ATOM = 1, BDF_PROPERTY_TYPE_INTEGER = 2, BDF_PROPERTY_TYPE_CARDINAL = 3 } BDF_PropertyType ; A list of BDF property types. values BDF_PROPERTY_TYPE_NONE Value 0 is used to indicate a missing property. BDF_PROPERTY_TYPE_ATOM Property is a string atom. BDF_PROPERTY_TYPE_INTEGER Property is a 32-bit signed integer. BDF_PROPERTY_TYPE_CARDINAL Property is a 32-bit unsigned integer. BDF_Property \u00b6 Defined in FT_BDF_H (freetype/ftbdf.h). typedef struct BDF_PropertyRec_* BDF_Property ; A handle to a BDF_PropertyRec structure to model a given BDF/PCF property. BDF_PropertyRec \u00b6 Defined in FT_BDF_H (freetype/ftbdf.h). typedef struct BDF_PropertyRec_ { BDF_PropertyType type; union { const char * atom; FT_Int32 integer; FT_UInt32 cardinal; } u; } BDF_PropertyRec ; This structure models a given BDF/PCF property. fields type The property type. u.atom The atom string, if type is BDF_PROPERTY_TYPE_ATOM . May be NULL , indicating an empty string. u.integer A signed integer, if type is BDF_PROPERTY_TYPE_INTEGER . u.cardinal An unsigned integer, if type is BDF_PROPERTY_TYPE_CARDINAL . FT_Get_BDF_Charset_ID \u00b6 Defined in FT_BDF_H (freetype/ftbdf.h). FT_EXPORT( FT_Error ) FT_Get_BDF_Charset_ID ( FT_Face face, const char * *acharset_encoding, const char * *acharset_registry ); Retrieve a BDF font character set identity, according to the BDF specification. input face A handle to the input face. output acharset_encoding Charset encoding, as a C string, owned by the face. acharset_registry Charset registry, as a C string, owned by the face. return FreeType error code. 0 means success. note This function only works with BDF faces, returning an error otherwise. FT_Get_BDF_Property \u00b6 Defined in FT_BDF_H (freetype/ftbdf.h). FT_EXPORT( FT_Error ) FT_Get_BDF_Property ( FT_Face face, const char * prop_name, BDF_PropertyRec *aproperty ); Retrieve a BDF property from a BDF or PCF font file. input face A handle to the input face. name The property name. output aproperty The property. return FreeType error code. 0 means success. note This function works with BDF and PCF fonts. It returns an error otherwise. It also returns an error if the property is not in the font. A \u2018property\u2019 is a either key-value pair within the STARTPROPERTIES \u2026 ENDPROPERTIES block of a BDF font or a key-value pair from the info->props array within a FontRec structure of a PCF font. Integer properties are always stored as \u2018signed\u2019 within PCF fonts; consequently, BDF_PROPERTY_TYPE_CARDINAL is a possible return value for BDF fonts only. In case of error, aproperty->type is always set to BDF_PROPERTY_TYPE_NONE .","title":"BDF and PCF Files"},{"location":"ft2-bdf_fonts.html#bdf-and-pcf-files","text":"","title":"BDF and PCF Files"},{"location":"ft2-bdf_fonts.html#synopsis","text":"This section contains the declaration of functions specific to BDF and PCF fonts.","title":"Synopsis"},{"location":"ft2-bdf_fonts.html#bdf_propertytype","text":"Defined in FT_BDF_H (freetype/ftbdf.h). typedef enum BDF_PropertyType_ { BDF_PROPERTY_TYPE_NONE = 0, BDF_PROPERTY_TYPE_ATOM = 1, BDF_PROPERTY_TYPE_INTEGER = 2, BDF_PROPERTY_TYPE_CARDINAL = 3 } BDF_PropertyType ; A list of BDF property types.","title":"BDF_PropertyType"},{"location":"ft2-bdf_fonts.html#bdf_property","text":"Defined in FT_BDF_H (freetype/ftbdf.h). typedef struct BDF_PropertyRec_* BDF_Property ; A handle to a BDF_PropertyRec structure to model a given BDF/PCF property.","title":"BDF_Property"},{"location":"ft2-bdf_fonts.html#bdf_propertyrec","text":"Defined in FT_BDF_H (freetype/ftbdf.h). typedef struct BDF_PropertyRec_ { BDF_PropertyType type; union { const char * atom; FT_Int32 integer; FT_UInt32 cardinal; } u; } BDF_PropertyRec ; This structure models a given BDF/PCF property.","title":"BDF_PropertyRec"},{"location":"ft2-bdf_fonts.html#ft_get_bdf_charset_id","text":"Defined in FT_BDF_H (freetype/ftbdf.h). FT_EXPORT( FT_Error ) FT_Get_BDF_Charset_ID ( FT_Face face, const char * *acharset_encoding, const char * *acharset_registry ); Retrieve a BDF font character set identity, according to the BDF specification.","title":"FT_Get_BDF_Charset_ID"},{"location":"ft2-bdf_fonts.html#ft_get_bdf_property","text":"Defined in FT_BDF_H (freetype/ftbdf.h). FT_EXPORT( FT_Error ) FT_Get_BDF_Property ( FT_Face face, const char * prop_name, BDF_PropertyRec *aproperty ); Retrieve a BDF property from a BDF or PCF font file.","title":"FT_Get_BDF_Property"},{"location":"ft2-bitmap_handling.html","text":"FreeType \u00bb Docs \u00bb Support API \u00bb Bitmap Handling Bitmap Handling \u00b6 Synopsis \u00b6 This section contains functions for handling FT_Bitmap objects, automatically adjusting the target's bitmap buffer size as needed. Note that none of the functions changes the bitmap's \u2018flow\u2019 (as indicated by the sign of the pitch field in FT_Bitmap ). To set the flow, assign an appropriate positive or negative value to the pitch field of the target FT_Bitmap object after calling FT_Bitmap_Init but before calling any of the other functions described here. FT_Bitmap_Init \u00b6 Defined in FT_BITMAP_H (freetype/ftbitmap.h). FT_EXPORT( void ) FT_Bitmap_Init ( FT_Bitmap *abitmap ); /* deprecated */ FT_EXPORT( void ) FT_Bitmap_New( FT_Bitmap *abitmap ); Initialize a pointer to an FT_Bitmap structure. inout abitmap A pointer to the bitmap structure. note A deprecated name for the same function is FT_Bitmap_New . FT_Bitmap_Copy \u00b6 Defined in FT_BITMAP_H (freetype/ftbitmap.h). FT_EXPORT( FT_Error ) FT_Bitmap_Copy ( FT_Library library, const FT_Bitmap *source, FT_Bitmap *target ); Copy a bitmap into another one. input library A handle to a library object. source A handle to the source bitmap. output target A handle to the target bitmap. return FreeType error code. 0 means success. note source->buffer and target->buffer must neither be equal nor overlap. FT_Bitmap_Embolden \u00b6 Defined in FT_BITMAP_H (freetype/ftbitmap.h). FT_EXPORT( FT_Error ) FT_Bitmap_Embolden ( FT_Library library, FT_Bitmap * bitmap, FT_Pos xStrength, FT_Pos yStrength ); Embolden a bitmap. The new bitmap will be about xStrength pixels wider and yStrength pixels higher. The left and bottom borders are kept unchanged. input library A handle to a library object. xStrength How strong the glyph is emboldened horizontally. Expressed in 26.6 pixel format. yStrength How strong the glyph is emboldened vertically. Expressed in 26.6 pixel format. inout bitmap A handle to the target bitmap. return FreeType error code. 0 means success. note The current implementation restricts xStrength to be less than or equal to 8 if bitmap is of pixel_mode FT_PIXEL_MODE_MONO . If you want to embolden the bitmap owned by a FT_GlyphSlotRec , you should call FT_GlyphSlot_Own_Bitmap on the slot first. Bitmaps in FT_PIXEL_MODE_GRAY2 and FT_PIXEL_MODE_GRAY @ format are converted to FT_PIXEL_MODE_GRAY format (i.e., 8bpp). FT_Bitmap_Convert \u00b6 Defined in FT_BITMAP_H (freetype/ftbitmap.h). FT_EXPORT( FT_Error ) FT_Bitmap_Convert ( FT_Library library, const FT_Bitmap *source, FT_Bitmap *target, FT_Int alignment ); Convert a bitmap object with depth 1bpp, 2bpp, 4bpp, 8bpp or 32bpp to a bitmap object with depth 8bpp, making the number of used bytes per line (a.k.a. the \u2018pitch\u2019) a multiple of alignment . input library A handle to a library object. source The source bitmap. alignment The pitch of the bitmap is a multiple of this argument. Common values are 1, 2, or 4. output target The target bitmap. return FreeType error code. 0 means success. note It is possible to call FT_Bitmap_Convert multiple times without calling FT_Bitmap_Done (the memory is simply reallocated). Use FT_Bitmap_Done to finally remove the bitmap object. The library argument is taken to have access to FreeType's memory handling functions. source->buffer and target->buffer must neither be equal nor overlap. FT_Bitmap_Blend \u00b6 Defined in FT_BITMAP_H (freetype/ftbitmap.h). FT_EXPORT( FT_Error ) FT_Bitmap_Blend ( FT_Library library, const FT_Bitmap * source, const FT_Vector source_offset, FT_Bitmap * target, FT_Vector *atarget_offset, FT_Color color ); Blend a bitmap onto another bitmap, using a given color. input library A handle to a library object. source The source bitmap, which can have any FT_Pixel_Mode format. source_offset The offset vector to the upper left corner of the source bitmap in 26.6 pixel format. It should represent an integer offset; the function will set the lowest six bits to zero to enforce that. color The color used to draw source onto target . inout target A handle to an FT_Bitmap object. It should be either initialized as empty with a call to FT_Bitmap_Init , or it should be of type FT_PIXEL_MODE_BGRA . atarget_offset The offset vector to the upper left corner of the target bitmap in 26.6 pixel format. It should represent an integer offset; the function will set the lowest six bits to zero to enforce that. return FreeType error code. 0 means success. note This function doesn't perform clipping. The bitmap in target gets allocated or reallocated as needed; the vector atarget_offset is updated accordingly. In case of allocation or reallocation, the bitmap's pitch is set to 4 * width . Both source and target must have the same bitmap flow (as indicated by the sign of the pitch field). source->buffer and target->buffer must neither be equal nor overlap. since 2.10 FT_GlyphSlot_Own_Bitmap \u00b6 Defined in FT_BITMAP_H (freetype/ftbitmap.h). FT_EXPORT( FT_Error ) FT_GlyphSlot_Own_Bitmap ( FT_GlyphSlot slot ); Make sure that a glyph slot owns slot->bitmap . input slot The glyph slot. return FreeType error code. 0 means success. note This function is to be used in combination with FT_Bitmap_Embolden . FT_Bitmap_Done \u00b6 Defined in FT_BITMAP_H (freetype/ftbitmap.h). FT_EXPORT( FT_Error ) FT_Bitmap_Done ( FT_Library library, FT_Bitmap *bitmap ); Destroy a bitmap object initialized with FT_Bitmap_Init . input library A handle to a library object. bitmap The bitmap object to be freed. return FreeType error code. 0 means success. note The library argument is taken to have access to FreeType's memory handling functions.","title":"Bitmap Handling"},{"location":"ft2-bitmap_handling.html#bitmap-handling","text":"","title":"Bitmap Handling"},{"location":"ft2-bitmap_handling.html#synopsis","text":"This section contains functions for handling FT_Bitmap objects, automatically adjusting the target's bitmap buffer size as needed. Note that none of the functions changes the bitmap's \u2018flow\u2019 (as indicated by the sign of the pitch field in FT_Bitmap ). To set the flow, assign an appropriate positive or negative value to the pitch field of the target FT_Bitmap object after calling FT_Bitmap_Init but before calling any of the other functions described here.","title":"Synopsis"},{"location":"ft2-bitmap_handling.html#ft_bitmap_init","text":"Defined in FT_BITMAP_H (freetype/ftbitmap.h). FT_EXPORT( void ) FT_Bitmap_Init ( FT_Bitmap *abitmap ); /* deprecated */ FT_EXPORT( void ) FT_Bitmap_New( FT_Bitmap *abitmap ); Initialize a pointer to an FT_Bitmap structure.","title":"FT_Bitmap_Init"},{"location":"ft2-bitmap_handling.html#ft_bitmap_copy","text":"Defined in FT_BITMAP_H (freetype/ftbitmap.h). FT_EXPORT( FT_Error ) FT_Bitmap_Copy ( FT_Library library, const FT_Bitmap *source, FT_Bitmap *target ); Copy a bitmap into another one.","title":"FT_Bitmap_Copy"},{"location":"ft2-bitmap_handling.html#ft_bitmap_embolden","text":"Defined in FT_BITMAP_H (freetype/ftbitmap.h). FT_EXPORT( FT_Error ) FT_Bitmap_Embolden ( FT_Library library, FT_Bitmap * bitmap, FT_Pos xStrength, FT_Pos yStrength ); Embolden a bitmap. The new bitmap will be about xStrength pixels wider and yStrength pixels higher. The left and bottom borders are kept unchanged.","title":"FT_Bitmap_Embolden"},{"location":"ft2-bitmap_handling.html#ft_bitmap_convert","text":"Defined in FT_BITMAP_H (freetype/ftbitmap.h). FT_EXPORT( FT_Error ) FT_Bitmap_Convert ( FT_Library library, const FT_Bitmap *source, FT_Bitmap *target, FT_Int alignment ); Convert a bitmap object with depth 1bpp, 2bpp, 4bpp, 8bpp or 32bpp to a bitmap object with depth 8bpp, making the number of used bytes per line (a.k.a. the \u2018pitch\u2019) a multiple of alignment .","title":"FT_Bitmap_Convert"},{"location":"ft2-bitmap_handling.html#ft_bitmap_blend","text":"Defined in FT_BITMAP_H (freetype/ftbitmap.h). FT_EXPORT( FT_Error ) FT_Bitmap_Blend ( FT_Library library, const FT_Bitmap * source, const FT_Vector source_offset, FT_Bitmap * target, FT_Vector *atarget_offset, FT_Color color ); Blend a bitmap onto another bitmap, using a given color.","title":"FT_Bitmap_Blend"},{"location":"ft2-bitmap_handling.html#ft_glyphslot_own_bitmap","text":"Defined in FT_BITMAP_H (freetype/ftbitmap.h). FT_EXPORT( FT_Error ) FT_GlyphSlot_Own_Bitmap ( FT_GlyphSlot slot ); Make sure that a glyph slot owns slot->bitmap .","title":"FT_GlyphSlot_Own_Bitmap"},{"location":"ft2-bitmap_handling.html#ft_bitmap_done","text":"Defined in FT_BITMAP_H (freetype/ftbitmap.h). FT_EXPORT( FT_Error ) FT_Bitmap_Done ( FT_Library library, FT_Bitmap *bitmap ); Destroy a bitmap object initialized with FT_Bitmap_Init .","title":"FT_Bitmap_Done"},{"location":"ft2-bzip2.html","text":"FreeType \u00bb Docs \u00bb Support API \u00bb BZIP2 Streams BZIP2 Streams \u00b6 Synopsis \u00b6 In certain builds of the library, bzip2 compression recognition is automatically handled when calling FT_New_Face or FT_Open_Face . This means that if no font driver is capable of handling the raw compressed file, the library will try to open a bzip2 compressed stream from it and re-open the face with it. The stream implementation is very basic and resets the decompression process each time seeking backwards is needed within the stream, which significantly undermines the performance. This section contains the declaration of Bzip2-specific functions. FT_Stream_OpenBzip2 \u00b6 Defined in FT_BZIP2_H (freetype/ftbzip2.h). FT_EXPORT( FT_Error ) FT_Stream_OpenBzip2 ( FT_Stream stream, FT_Stream source ); Open a new stream to parse bzip2-compressed font files. This is mainly used to support the compressed *.pcf.bz2 fonts that come with XFree86. input stream The target embedding stream. source The source stream. return FreeType error code. 0 means success. note The source stream must be opened before calling this function. Calling the internal function FT_Stream_Close on the new stream will not call FT_Stream_Close on the source stream. None of the stream objects will be released to the heap. This function may return FT_Err_Unimplemented_Feature if your build of FreeType was not compiled with bzip2 support.","title":"BZIP2 Streams"},{"location":"ft2-bzip2.html#bzip2-streams","text":"","title":"BZIP2 Streams"},{"location":"ft2-bzip2.html#synopsis","text":"In certain builds of the library, bzip2 compression recognition is automatically handled when calling FT_New_Face or FT_Open_Face . This means that if no font driver is capable of handling the raw compressed file, the library will try to open a bzip2 compressed stream from it and re-open the face with it. The stream implementation is very basic and resets the decompression process each time seeking backwards is needed within the stream, which significantly undermines the performance. This section contains the declaration of Bzip2-specific functions.","title":"Synopsis"},{"location":"ft2-bzip2.html#ft_stream_openbzip2","text":"Defined in FT_BZIP2_H (freetype/ftbzip2.h). FT_EXPORT( FT_Error ) FT_Stream_OpenBzip2 ( FT_Stream stream, FT_Stream source ); Open a new stream to parse bzip2-compressed font files. This is mainly used to support the compressed *.pcf.bz2 fonts that come with XFree86.","title":"FT_Stream_OpenBzip2"},{"location":"ft2-cache_subsystem.html","text":"FreeType \u00bb Docs \u00bb Cache Sub-System \u00bb Cache Sub-System Cache Sub-System \u00b6 Synopsis \u00b6 This section describes the FreeType 2 cache sub-system, which is used to limit the number of concurrently opened FT_Face and FT_Size objects, as well as caching information like character maps and glyph images while limiting their maximum memory usage. Note that all types and functions begin with the FTC_ prefix. The cache is highly portable and thus doesn't know anything about the fonts installed on your system, or how to access them. This implies the following scheme: First, available or installed font faces are uniquely identified by FTC_FaceID values, provided to the cache by the client. Note that the cache only stores and compares these values, and doesn't try to interpret them in any way. Second, the cache calls, only when needed, a client-provided function to convert an FTC_FaceID into a new FT_Face object. The latter is then completely managed by the cache, including its termination through FT_Done_Face . To monitor termination of face objects, the finalizer callback in the generic field of the FT_Face object can be used, which might also be used to store the FTC_FaceID of the face. Clients are free to map face IDs to anything else. The most simple usage is to associate them to a (pathname,face_index) pair that is used to call FT_New_Face . However, more complex schemes are also possible. Note that for the cache to work correctly, the face ID values must be persistent , which means that the contents they point to should not change at runtime, or that their value should not become invalid. If this is unavoidable (e.g., when a font is uninstalled at runtime), you should call FTC_Manager_RemoveFaceID as soon as possible, to let the cache get rid of any references to the old FTC_FaceID it may keep internally. Failure to do so will lead to incorrect behaviour or even crashes. To use the cache, start with calling FTC_Manager_New to create a new FTC_Manager object, which models a single cache instance. You can then look up FT_Face and FT_Size objects with FTC_Manager_LookupFace and FTC_Manager_LookupSize , respectively. If you want to use the charmap caching, call FTC_CMapCache_New , then later use FTC_CMapCache_Lookup to perform the equivalent of FT_Get_Char_Index , only much faster. If you want to use the FT_Glyph caching, call FTC_ImageCache_New , then later use FTC_ImageCache_Lookup to retrieve the corresponding FT_Glyph objects from the cache. If you need lots of small bitmaps, it is much more memory efficient to call FTC_SBitCache_New followed by FTC_SBitCache_Lookup . This returns FTC_SBitRec structures, which are used to store small bitmaps directly. (A small bitmap is one whose metrics and dimensions all fit into 8-bit integers). We hope to also provide a kerning cache in the near future. FTC_Manager \u00b6 Defined in FT_CACHE_H (freetype/ftcache.h). typedef struct FTC_ManagerRec_* FTC_Manager ; This object corresponds to one instance of the cache-subsystem. It is used to cache one or more FT_Face objects, along with corresponding FT_Size objects. The manager intentionally limits the total number of opened FT_Face and FT_Size objects to control memory usage. See the max_faces and max_sizes parameters of FTC_Manager_New . The manager is also used to cache \u2018nodes\u2019 of various types while limiting their total memory usage. All limitations are enforced by keeping lists of managed objects in most-recently-used order, and flushing old nodes to make room for new ones. FTC_FaceID \u00b6 Defined in FT_CACHE_H (freetype/ftcache.h). typedef FT_Pointer FTC_FaceID ; An opaque pointer type that is used to identity face objects. The contents of such objects is application-dependent. These pointers are typically used to point to a user-defined structure containing a font file path, and face index. note Never use NULL as a valid FTC_FaceID . Face IDs are passed by the client to the cache manager that calls, when needed, the FTC_Face_Requester to translate them into new FT_Face objects. If the content of a given face ID changes at runtime, or if the value becomes invalid (e.g., when uninstalling a font), you should immediately call FTC_Manager_RemoveFaceID before any other cache function. Failure to do so will result in incorrect behaviour or even memory leaks and crashes. FTC_Face_Requester \u00b6 Defined in FT_CACHE_H (freetype/ftcache.h). typedef FT_Error (* FTC_Face_Requester )( FTC_FaceID face_id, FT_Library library, FT_Pointer req_data, FT_Face * aface ); A callback function provided by client applications. It is used by the cache manager to translate a given FTC_FaceID into a new valid FT_Face object, on demand. input face_id The face ID to resolve. library A handle to a FreeType library object. req_data Application-provided request data (see note below). output aface A new FT_Face handle. return FreeType error code. 0 means success. note The third parameter req_data is the same as the one passed by the client when FTC_Manager_New is called. The face requester should not perform funny things on the returned face object, like creating a new FT_Size for it, or setting a transformation through FT_Set_Transform ! FTC_Manager_New \u00b6 Defined in FT_CACHE_H (freetype/ftcache.h). FT_EXPORT( FT_Error ) FTC_Manager_New ( FT_Library library, FT_UInt max_faces, FT_UInt max_sizes, FT_ULong max_bytes, FTC_Face_Requester requester, FT_Pointer req_data, FTC_Manager *amanager ); Create a new cache manager. input library The parent FreeType library handle to use. max_faces Maximum number of opened FT_Face objects managed by this cache instance. Use 0 for defaults. max_sizes Maximum number of opened FT_Size objects managed by this cache instance. Use 0 for defaults. max_bytes Maximum number of bytes to use for cached data nodes. Use 0 for defaults. Note that this value does not account for managed FT_Face and FT_Size objects. requester An application-provided callback used to translate face IDs into real FT_Face objects. req_data A generic pointer that is passed to the requester each time it is called (see FTC_Face_Requester ). output amanager A handle to a new manager object. 0 in case of failure. return FreeType error code. 0 means success. FTC_Manager_Reset \u00b6 Defined in FT_CACHE_H (freetype/ftcache.h). FT_EXPORT( void ) FTC_Manager_Reset ( FTC_Manager manager ); Empty a given cache manager. This simply gets rid of all the currently cached FT_Face and FT_Size objects within the manager. inout manager A handle to the manager. FTC_Manager_Done \u00b6 Defined in FT_CACHE_H (freetype/ftcache.h). FT_EXPORT( void ) FTC_Manager_Done ( FTC_Manager manager ); Destroy a given manager after emptying it. input manager A handle to the target cache manager object. FTC_Manager_LookupFace \u00b6 Defined in FT_CACHE_H (freetype/ftcache.h). FT_EXPORT( FT_Error ) FTC_Manager_LookupFace ( FTC_Manager manager, FTC_FaceID face_id, FT_Face *aface ); Retrieve the FT_Face object that corresponds to a given face ID through a cache manager. input manager A handle to the cache manager. face_id The ID of the face object. output aface A handle to the face object. return FreeType error code. 0 means success. note The returned FT_Face object is always owned by the manager. You should never try to discard it yourself. The FT_Face object doesn't necessarily have a current size object (i.e., face->size can be 0). If you need a specific \u2018font size\u2019, use FTC_Manager_LookupSize instead. Never change the face's transformation matrix (i.e., never call the FT_Set_Transform function) on a returned face! If you need to transform glyphs, do it yourself after glyph loading. When you perform a lookup, out-of-memory errors are detected within the lookup and force incremental flushes of the cache until enough memory is released for the lookup to succeed. If a lookup fails with FT_Err_Out_Of_Memory the cache has already been completely flushed, and still no memory was available for the operation. FTC_Manager_LookupSize \u00b6 Defined in FT_CACHE_H (freetype/ftcache.h). FT_EXPORT( FT_Error ) FTC_Manager_LookupSize ( FTC_Manager manager, FTC_Scaler scaler, FT_Size *asize ); Retrieve the FT_Size object that corresponds to a given FTC_ScalerRec pointer through a cache manager. input manager A handle to the cache manager. scaler A scaler handle. output asize A handle to the size object. return FreeType error code. 0 means success. note The returned FT_Size object is always owned by the manager. You should never try to discard it by yourself. You can access the parent FT_Face object simply as size->face if you need it. Note that this object is also owned by the manager. note When you perform a lookup, out-of-memory errors are detected within the lookup and force incremental flushes of the cache until enough memory is released for the lookup to succeed. If a lookup fails with FT_Err_Out_Of_Memory the cache has already been completely flushed, and still no memory is available for the operation. FTC_Manager_RemoveFaceID \u00b6 Defined in FT_CACHE_H (freetype/ftcache.h). FT_EXPORT( void ) FTC_Manager_RemoveFaceID ( FTC_Manager manager, FTC_FaceID face_id ); A special function used to indicate to the cache manager that a given FTC_FaceID is no longer valid, either because its content changed, or because it was deallocated or uninstalled. input manager The cache manager handle. face_id The FTC_FaceID to be removed. note This function flushes all nodes from the cache corresponding to this face_id , with the exception of nodes with a non-null reference count. Such nodes are however modified internally so as to never appear in later lookups with the same face_id value, and to be immediately destroyed when released by all their users. FTC_Node \u00b6 Defined in FT_CACHE_H (freetype/ftcache.h). typedef struct FTC_NodeRec_* FTC_Node ; An opaque handle to a cache node object. Each cache node is reference-counted. A node with a count of 0 might be flushed out of a full cache whenever a lookup request is performed. If you look up nodes, you have the ability to \u2018acquire\u2019 them, i.e., to increment their reference count. This will prevent the node from being flushed out of the cache until you explicitly \u2018release\u2019 it (see FTC_Node_Unref ). See also FTC_SBitCache_Lookup and FTC_ImageCache_Lookup . FTC_Node_Unref \u00b6 Defined in FT_CACHE_H (freetype/ftcache.h). FT_EXPORT( void ) FTC_Node_Unref ( FTC_Node node, FTC_Manager manager ); Decrement a cache node's internal reference count. When the count reaches 0, it is not destroyed but becomes eligible for subsequent cache flushes. input node The cache node handle. manager The cache manager handle. FTC_ImageCache \u00b6 Defined in FT_CACHE_H (freetype/ftcache.h). typedef struct FTC_ImageCacheRec_* FTC_ImageCache ; A handle to a glyph image cache object. They are designed to hold many distinct glyph images while not exceeding a certain memory threshold. FTC_ImageCache_New \u00b6 Defined in FT_CACHE_H (freetype/ftcache.h). FT_EXPORT( FT_Error ) FTC_ImageCache_New ( FTC_Manager manager, FTC_ImageCache *acache ); Create a new glyph image cache. input manager The parent manager for the image cache. output acache A handle to the new glyph image cache object. return FreeType error code. 0 means success. FTC_ImageCache_Lookup \u00b6 Defined in FT_CACHE_H (freetype/ftcache.h). FT_EXPORT( FT_Error ) FTC_ImageCache_Lookup ( FTC_ImageCache cache, FTC_ImageType type, FT_UInt gindex, FT_Glyph *aglyph, FTC_Node *anode ); Retrieve a given glyph image from a glyph image cache. input cache A handle to the source glyph image cache. type A pointer to a glyph image type descriptor. gindex The glyph index to retrieve. output aglyph The corresponding FT_Glyph object. 0 in case of failure. anode Used to return the address of the corresponding cache node after incrementing its reference count (see note below). return FreeType error code. 0 means success. note The returned glyph is owned and managed by the glyph image cache. Never try to transform or discard it manually! You can however create a copy with FT_Glyph_Copy and modify the new one. If anode is not NULL , it receives the address of the cache node containing the glyph image, after increasing its reference count. This ensures that the node (as well as the FT_Glyph ) will always be kept in the cache until you call FTC_Node_Unref to \u2018release\u2019 it. If anode is NULL , the cache node is left unchanged, which means that the FT_Glyph could be flushed out of the cache on the next call to one of the caching sub-system APIs. Don't assume that it is persistent! FTC_SBit \u00b6 Defined in FT_CACHE_H (freetype/ftcache.h). typedef struct FTC_SBitRec_* FTC_SBit ; A handle to a small bitmap descriptor. See the FTC_SBitRec structure for details. FTC_SBitCache \u00b6 Defined in FT_CACHE_H (freetype/ftcache.h). typedef struct FTC_SBitCacheRec_* FTC_SBitCache ; A handle to a small bitmap cache. These are special cache objects used to store small glyph bitmaps (and anti-aliased pixmaps) in a much more efficient way than the traditional glyph image cache implemented by FTC_ImageCache . FTC_SBitCache_New \u00b6 Defined in FT_CACHE_H (freetype/ftcache.h). FT_EXPORT( FT_Error ) FTC_SBitCache_New ( FTC_Manager manager, FTC_SBitCache *acache ); Create a new cache to store small glyph bitmaps. input manager A handle to the source cache manager. output acache A handle to the new sbit cache. NULL in case of error. return FreeType error code. 0 means success. FTC_SBitCache_Lookup \u00b6 Defined in FT_CACHE_H (freetype/ftcache.h). FT_EXPORT( FT_Error ) FTC_SBitCache_Lookup ( FTC_SBitCache cache, FTC_ImageType type, FT_UInt gindex, FTC_SBit *sbit, FTC_Node *anode ); Look up a given small glyph bitmap in a given sbit cache and \u2018lock\u2019 it to prevent its flushing from the cache until needed. input cache A handle to the source sbit cache. type A pointer to the glyph image type descriptor. gindex The glyph index. output sbit A handle to a small bitmap descriptor. anode Used to return the address of the corresponding cache node after incrementing its reference count (see note below). return FreeType error code. 0 means success. note The small bitmap descriptor and its bit buffer are owned by the cache and should never be freed by the application. They might as well disappear from memory on the next cache lookup, so don't treat them as persistent data. The descriptor's buffer field is set to 0 to indicate a missing glyph bitmap. If anode is not NULL , it receives the address of the cache node containing the bitmap, after increasing its reference count. This ensures that the node (as well as the image) will always be kept in the cache until you call FTC_Node_Unref to \u2018release\u2019 it. If anode is NULL , the cache node is left unchanged, which means that the bitmap could be flushed out of the cache on the next call to one of the caching sub-system APIs. Don't assume that it is persistent! FTC_CMapCache \u00b6 Defined in FT_CACHE_H (freetype/ftcache.h). typedef struct FTC_CMapCacheRec_* FTC_CMapCache ; An opaque handle used to model a charmap cache. This cache is to hold character codes -> glyph indices mappings. FTC_CMapCache_New \u00b6 Defined in FT_CACHE_H (freetype/ftcache.h). FT_EXPORT( FT_Error ) FTC_CMapCache_New ( FTC_Manager manager, FTC_CMapCache *acache ); Create a new charmap cache. input manager A handle to the cache manager. output acache A new cache handle. NULL in case of error. return FreeType error code. 0 means success. note Like all other caches, this one will be destroyed with the cache manager. FTC_CMapCache_Lookup \u00b6 Defined in FT_CACHE_H (freetype/ftcache.h). FT_EXPORT( FT_UInt ) FTC_CMapCache_Lookup ( FTC_CMapCache cache, FTC_FaceID face_id, FT_Int cmap_index, FT_UInt32 char_code ); Translate a character code into a glyph index, using the charmap cache. input cache A charmap cache handle. face_id The source face ID. cmap_index The index of the charmap in the source face. Any negative value means to use the cache FT_Face 's default charmap. char_code The character code (in the corresponding charmap). return Glyph index. 0 means \u2018no glyph\u2019. FTC_ScalerRec \u00b6 Defined in FT_CACHE_H (freetype/ftcache.h). typedef struct FTC_ScalerRec_ { FTC_FaceID face_id; FT_UInt width; FT_UInt height; FT_Int pixel; FT_UInt x_res; FT_UInt y_res; } FTC_ScalerRec ; A structure used to describe a given character size in either pixels or points to the cache manager. See FTC_Manager_LookupSize . fields face_id The source face ID. width The character width. height The character height. pixel A Boolean. If 1, the width and height fields are interpreted as integer pixel character sizes. Otherwise, they are expressed as 1/64th of points. x_res Only used when pixel is value 0 to indicate the horizontal resolution in dpi. y_res Only used when pixel is value 0 to indicate the vertical resolution in dpi. note This type is mainly used to retrieve FT_Size objects through the cache manager. FTC_Scaler \u00b6 Defined in FT_CACHE_H (freetype/ftcache.h). typedef struct FTC_ScalerRec_* FTC_Scaler ; A handle to an FTC_ScalerRec structure. FTC_ImageTypeRec \u00b6 Defined in FT_CACHE_H (freetype/ftcache.h). typedef struct FTC_ImageTypeRec_ { FTC_FaceID face_id; FT_UInt width; FT_UInt height; FT_Int32 flags; } FTC_ImageTypeRec ; A structure used to model the type of images in a glyph cache. fields face_id The face ID. width The width in pixels. height The height in pixels. flags The load flags, as in FT_Load_Glyph . FTC_ImageType \u00b6 Defined in FT_CACHE_H (freetype/ftcache.h). typedef struct FTC_ImageTypeRec_* FTC_ImageType ; A handle to an FTC_ImageTypeRec structure. FTC_ImageCache_LookupScaler \u00b6 Defined in FT_CACHE_H (freetype/ftcache.h). FT_EXPORT( FT_Error ) FTC_ImageCache_LookupScaler ( FTC_ImageCache cache, FTC_Scaler scaler, FT_ULong load_flags, FT_UInt gindex, FT_Glyph *aglyph, FTC_Node *anode ); A variant of FTC_ImageCache_Lookup that uses an FTC_ScalerRec to specify the face ID and its size. input cache A handle to the source glyph image cache. scaler A pointer to a scaler descriptor. load_flags The corresponding load flags. gindex The glyph index to retrieve. output aglyph The corresponding FT_Glyph object. 0 in case of failure. anode Used to return the address of the corresponding cache node after incrementing its reference count (see note below). return FreeType error code. 0 means success. note The returned glyph is owned and managed by the glyph image cache. Never try to transform or discard it manually! You can however create a copy with FT_Glyph_Copy and modify the new one. If anode is not NULL , it receives the address of the cache node containing the glyph image, after increasing its reference count. This ensures that the node (as well as the FT_Glyph ) will always be kept in the cache until you call FTC_Node_Unref to \u2018release\u2019 it. If anode is NULL , the cache node is left unchanged, which means that the FT_Glyph could be flushed out of the cache on the next call to one of the caching sub-system APIs. Don't assume that it is persistent! Calls to FT_Set_Char_Size and friends have no effect on cached glyphs; you should always use the FreeType cache API instead. FTC_SBitRec \u00b6 Defined in FT_CACHE_H (freetype/ftcache.h). typedef struct FTC_SBitRec_ { FT_Byte width; FT_Byte height; FT_Char left; FT_Char top; FT_Byte format; FT_Byte max_grays; FT_Short pitch; FT_Char xadvance; FT_Char yadvance; FT_Byte * buffer; } FTC_SBitRec ; A very compact structure used to describe a small glyph bitmap. fields width The bitmap width in pixels. height The bitmap height in pixels. left The horizontal distance from the pen position to the left bitmap border (a.k.a. \u2018left side bearing\u2019, or \u2018lsb\u2019). top The vertical distance from the pen position (on the baseline) to the upper bitmap border (a.k.a. \u2018top side bearing\u2019). The distance is positive for upwards y coordinates. format The format of the glyph bitmap (monochrome or gray). max_grays Maximum gray level value (in the range 1 to 255). pitch The number of bytes per bitmap line. May be positive or negative. xadvance The horizontal advance width in pixels. yadvance The vertical advance height in pixels. buffer A pointer to the bitmap pixels. FTC_SBitCache_LookupScaler \u00b6 Defined in FT_CACHE_H (freetype/ftcache.h). FT_EXPORT( FT_Error ) FTC_SBitCache_LookupScaler ( FTC_SBitCache cache, FTC_Scaler scaler, FT_ULong load_flags, FT_UInt gindex, FTC_SBit *sbit, FTC_Node *anode ); A variant of FTC_SBitCache_Lookup that uses an FTC_ScalerRec to specify the face ID and its size. input cache A handle to the source sbit cache. scaler A pointer to the scaler descriptor. load_flags The corresponding load flags. gindex The glyph index. output sbit A handle to a small bitmap descriptor. anode Used to return the address of the corresponding cache node after incrementing its reference count (see note below). return FreeType error code. 0 means success. note The small bitmap descriptor and its bit buffer are owned by the cache and should never be freed by the application. They might as well disappear from memory on the next cache lookup, so don't treat them as persistent data. The descriptor's buffer field is set to 0 to indicate a missing glyph bitmap. If anode is not NULL , it receives the address of the cache node containing the bitmap, after increasing its reference count. This ensures that the node (as well as the image) will always be kept in the cache until you call FTC_Node_Unref to \u2018release\u2019 it. If anode is NULL , the cache node is left unchanged, which means that the bitmap could be flushed out of the cache on the next call to one of the caching sub-system APIs. Don't assume that it is persistent!","title":"Cache Sub-System"},{"location":"ft2-cache_subsystem.html#cache-sub-system","text":"","title":"Cache Sub-System"},{"location":"ft2-cache_subsystem.html#synopsis","text":"This section describes the FreeType 2 cache sub-system, which is used to limit the number of concurrently opened FT_Face and FT_Size objects, as well as caching information like character maps and glyph images while limiting their maximum memory usage. Note that all types and functions begin with the FTC_ prefix. The cache is highly portable and thus doesn't know anything about the fonts installed on your system, or how to access them. This implies the following scheme: First, available or installed font faces are uniquely identified by FTC_FaceID values, provided to the cache by the client. Note that the cache only stores and compares these values, and doesn't try to interpret them in any way. Second, the cache calls, only when needed, a client-provided function to convert an FTC_FaceID into a new FT_Face object. The latter is then completely managed by the cache, including its termination through FT_Done_Face . To monitor termination of face objects, the finalizer callback in the generic field of the FT_Face object can be used, which might also be used to store the FTC_FaceID of the face. Clients are free to map face IDs to anything else. The most simple usage is to associate them to a (pathname,face_index) pair that is used to call FT_New_Face . However, more complex schemes are also possible. Note that for the cache to work correctly, the face ID values must be persistent , which means that the contents they point to should not change at runtime, or that their value should not become invalid. If this is unavoidable (e.g., when a font is uninstalled at runtime), you should call FTC_Manager_RemoveFaceID as soon as possible, to let the cache get rid of any references to the old FTC_FaceID it may keep internally. Failure to do so will lead to incorrect behaviour or even crashes. To use the cache, start with calling FTC_Manager_New to create a new FTC_Manager object, which models a single cache instance. You can then look up FT_Face and FT_Size objects with FTC_Manager_LookupFace and FTC_Manager_LookupSize , respectively. If you want to use the charmap caching, call FTC_CMapCache_New , then later use FTC_CMapCache_Lookup to perform the equivalent of FT_Get_Char_Index , only much faster. If you want to use the FT_Glyph caching, call FTC_ImageCache_New , then later use FTC_ImageCache_Lookup to retrieve the corresponding FT_Glyph objects from the cache. If you need lots of small bitmaps, it is much more memory efficient to call FTC_SBitCache_New followed by FTC_SBitCache_Lookup . This returns FTC_SBitRec structures, which are used to store small bitmaps directly. (A small bitmap is one whose metrics and dimensions all fit into 8-bit integers). We hope to also provide a kerning cache in the near future.","title":"Synopsis"},{"location":"ft2-cache_subsystem.html#ftc_manager","text":"Defined in FT_CACHE_H (freetype/ftcache.h). typedef struct FTC_ManagerRec_* FTC_Manager ; This object corresponds to one instance of the cache-subsystem. It is used to cache one or more FT_Face objects, along with corresponding FT_Size objects. The manager intentionally limits the total number of opened FT_Face and FT_Size objects to control memory usage. See the max_faces and max_sizes parameters of FTC_Manager_New . The manager is also used to cache \u2018nodes\u2019 of various types while limiting their total memory usage. All limitations are enforced by keeping lists of managed objects in most-recently-used order, and flushing old nodes to make room for new ones.","title":"FTC_Manager"},{"location":"ft2-cache_subsystem.html#ftc_faceid","text":"Defined in FT_CACHE_H (freetype/ftcache.h). typedef FT_Pointer FTC_FaceID ; An opaque pointer type that is used to identity face objects. The contents of such objects is application-dependent. These pointers are typically used to point to a user-defined structure containing a font file path, and face index.","title":"FTC_FaceID"},{"location":"ft2-cache_subsystem.html#ftc_face_requester","text":"Defined in FT_CACHE_H (freetype/ftcache.h). typedef FT_Error (* FTC_Face_Requester )( FTC_FaceID face_id, FT_Library library, FT_Pointer req_data, FT_Face * aface ); A callback function provided by client applications. It is used by the cache manager to translate a given FTC_FaceID into a new valid FT_Face object, on demand.","title":"FTC_Face_Requester"},{"location":"ft2-cache_subsystem.html#ftc_manager_new","text":"Defined in FT_CACHE_H (freetype/ftcache.h). FT_EXPORT( FT_Error ) FTC_Manager_New ( FT_Library library, FT_UInt max_faces, FT_UInt max_sizes, FT_ULong max_bytes, FTC_Face_Requester requester, FT_Pointer req_data, FTC_Manager *amanager ); Create a new cache manager.","title":"FTC_Manager_New"},{"location":"ft2-cache_subsystem.html#ftc_manager_reset","text":"Defined in FT_CACHE_H (freetype/ftcache.h). FT_EXPORT( void ) FTC_Manager_Reset ( FTC_Manager manager ); Empty a given cache manager. This simply gets rid of all the currently cached FT_Face and FT_Size objects within the manager.","title":"FTC_Manager_Reset"},{"location":"ft2-cache_subsystem.html#ftc_manager_done","text":"Defined in FT_CACHE_H (freetype/ftcache.h). FT_EXPORT( void ) FTC_Manager_Done ( FTC_Manager manager ); Destroy a given manager after emptying it.","title":"FTC_Manager_Done"},{"location":"ft2-cache_subsystem.html#ftc_manager_lookupface","text":"Defined in FT_CACHE_H (freetype/ftcache.h). FT_EXPORT( FT_Error ) FTC_Manager_LookupFace ( FTC_Manager manager, FTC_FaceID face_id, FT_Face *aface ); Retrieve the FT_Face object that corresponds to a given face ID through a cache manager.","title":"FTC_Manager_LookupFace"},{"location":"ft2-cache_subsystem.html#ftc_manager_lookupsize","text":"Defined in FT_CACHE_H (freetype/ftcache.h). FT_EXPORT( FT_Error ) FTC_Manager_LookupSize ( FTC_Manager manager, FTC_Scaler scaler, FT_Size *asize ); Retrieve the FT_Size object that corresponds to a given FTC_ScalerRec pointer through a cache manager.","title":"FTC_Manager_LookupSize"},{"location":"ft2-cache_subsystem.html#ftc_manager_removefaceid","text":"Defined in FT_CACHE_H (freetype/ftcache.h). FT_EXPORT( void ) FTC_Manager_RemoveFaceID ( FTC_Manager manager, FTC_FaceID face_id ); A special function used to indicate to the cache manager that a given FTC_FaceID is no longer valid, either because its content changed, or because it was deallocated or uninstalled.","title":"FTC_Manager_RemoveFaceID"},{"location":"ft2-cache_subsystem.html#ftc_node","text":"Defined in FT_CACHE_H (freetype/ftcache.h). typedef struct FTC_NodeRec_* FTC_Node ; An opaque handle to a cache node object. Each cache node is reference-counted. A node with a count of 0 might be flushed out of a full cache whenever a lookup request is performed. If you look up nodes, you have the ability to \u2018acquire\u2019 them, i.e., to increment their reference count. This will prevent the node from being flushed out of the cache until you explicitly \u2018release\u2019 it (see FTC_Node_Unref ). See also FTC_SBitCache_Lookup and FTC_ImageCache_Lookup .","title":"FTC_Node"},{"location":"ft2-cache_subsystem.html#ftc_node_unref","text":"Defined in FT_CACHE_H (freetype/ftcache.h). FT_EXPORT( void ) FTC_Node_Unref ( FTC_Node node, FTC_Manager manager ); Decrement a cache node's internal reference count. When the count reaches 0, it is not destroyed but becomes eligible for subsequent cache flushes.","title":"FTC_Node_Unref"},{"location":"ft2-cache_subsystem.html#ftc_imagecache","text":"Defined in FT_CACHE_H (freetype/ftcache.h). typedef struct FTC_ImageCacheRec_* FTC_ImageCache ; A handle to a glyph image cache object. They are designed to hold many distinct glyph images while not exceeding a certain memory threshold.","title":"FTC_ImageCache"},{"location":"ft2-cache_subsystem.html#ftc_imagecache_new","text":"Defined in FT_CACHE_H (freetype/ftcache.h). FT_EXPORT( FT_Error ) FTC_ImageCache_New ( FTC_Manager manager, FTC_ImageCache *acache ); Create a new glyph image cache.","title":"FTC_ImageCache_New"},{"location":"ft2-cache_subsystem.html#ftc_imagecache_lookup","text":"Defined in FT_CACHE_H (freetype/ftcache.h). FT_EXPORT( FT_Error ) FTC_ImageCache_Lookup ( FTC_ImageCache cache, FTC_ImageType type, FT_UInt gindex, FT_Glyph *aglyph, FTC_Node *anode ); Retrieve a given glyph image from a glyph image cache.","title":"FTC_ImageCache_Lookup"},{"location":"ft2-cache_subsystem.html#ftc_sbit","text":"Defined in FT_CACHE_H (freetype/ftcache.h). typedef struct FTC_SBitRec_* FTC_SBit ; A handle to a small bitmap descriptor. See the FTC_SBitRec structure for details.","title":"FTC_SBit"},{"location":"ft2-cache_subsystem.html#ftc_sbitcache","text":"Defined in FT_CACHE_H (freetype/ftcache.h). typedef struct FTC_SBitCacheRec_* FTC_SBitCache ; A handle to a small bitmap cache. These are special cache objects used to store small glyph bitmaps (and anti-aliased pixmaps) in a much more efficient way than the traditional glyph image cache implemented by FTC_ImageCache .","title":"FTC_SBitCache"},{"location":"ft2-cache_subsystem.html#ftc_sbitcache_new","text":"Defined in FT_CACHE_H (freetype/ftcache.h). FT_EXPORT( FT_Error ) FTC_SBitCache_New ( FTC_Manager manager, FTC_SBitCache *acache ); Create a new cache to store small glyph bitmaps.","title":"FTC_SBitCache_New"},{"location":"ft2-cache_subsystem.html#ftc_sbitcache_lookup","text":"Defined in FT_CACHE_H (freetype/ftcache.h). FT_EXPORT( FT_Error ) FTC_SBitCache_Lookup ( FTC_SBitCache cache, FTC_ImageType type, FT_UInt gindex, FTC_SBit *sbit, FTC_Node *anode ); Look up a given small glyph bitmap in a given sbit cache and \u2018lock\u2019 it to prevent its flushing from the cache until needed.","title":"FTC_SBitCache_Lookup"},{"location":"ft2-cache_subsystem.html#ftc_cmapcache","text":"Defined in FT_CACHE_H (freetype/ftcache.h). typedef struct FTC_CMapCacheRec_* FTC_CMapCache ; An opaque handle used to model a charmap cache. This cache is to hold character codes -> glyph indices mappings.","title":"FTC_CMapCache"},{"location":"ft2-cache_subsystem.html#ftc_cmapcache_new","text":"Defined in FT_CACHE_H (freetype/ftcache.h). FT_EXPORT( FT_Error ) FTC_CMapCache_New ( FTC_Manager manager, FTC_CMapCache *acache ); Create a new charmap cache.","title":"FTC_CMapCache_New"},{"location":"ft2-cache_subsystem.html#ftc_cmapcache_lookup","text":"Defined in FT_CACHE_H (freetype/ftcache.h). FT_EXPORT( FT_UInt ) FTC_CMapCache_Lookup ( FTC_CMapCache cache, FTC_FaceID face_id, FT_Int cmap_index, FT_UInt32 char_code ); Translate a character code into a glyph index, using the charmap cache.","title":"FTC_CMapCache_Lookup"},{"location":"ft2-cache_subsystem.html#ftc_scalerrec","text":"Defined in FT_CACHE_H (freetype/ftcache.h). typedef struct FTC_ScalerRec_ { FTC_FaceID face_id; FT_UInt width; FT_UInt height; FT_Int pixel; FT_UInt x_res; FT_UInt y_res; } FTC_ScalerRec ; A structure used to describe a given character size in either pixels or points to the cache manager. See FTC_Manager_LookupSize .","title":"FTC_ScalerRec"},{"location":"ft2-cache_subsystem.html#ftc_scaler","text":"Defined in FT_CACHE_H (freetype/ftcache.h). typedef struct FTC_ScalerRec_* FTC_Scaler ; A handle to an FTC_ScalerRec structure.","title":"FTC_Scaler"},{"location":"ft2-cache_subsystem.html#ftc_imagetyperec","text":"Defined in FT_CACHE_H (freetype/ftcache.h). typedef struct FTC_ImageTypeRec_ { FTC_FaceID face_id; FT_UInt width; FT_UInt height; FT_Int32 flags; } FTC_ImageTypeRec ; A structure used to model the type of images in a glyph cache.","title":"FTC_ImageTypeRec"},{"location":"ft2-cache_subsystem.html#ftc_imagetype","text":"Defined in FT_CACHE_H (freetype/ftcache.h). typedef struct FTC_ImageTypeRec_* FTC_ImageType ; A handle to an FTC_ImageTypeRec structure.","title":"FTC_ImageType"},{"location":"ft2-cache_subsystem.html#ftc_imagecache_lookupscaler","text":"Defined in FT_CACHE_H (freetype/ftcache.h). FT_EXPORT( FT_Error ) FTC_ImageCache_LookupScaler ( FTC_ImageCache cache, FTC_Scaler scaler, FT_ULong load_flags, FT_UInt gindex, FT_Glyph *aglyph, FTC_Node *anode ); A variant of FTC_ImageCache_Lookup that uses an FTC_ScalerRec to specify the face ID and its size.","title":"FTC_ImageCache_LookupScaler"},{"location":"ft2-cache_subsystem.html#ftc_sbitrec","text":"Defined in FT_CACHE_H (freetype/ftcache.h). typedef struct FTC_SBitRec_ { FT_Byte width; FT_Byte height; FT_Char left; FT_Char top; FT_Byte format; FT_Byte max_grays; FT_Short pitch; FT_Char xadvance; FT_Char yadvance; FT_Byte * buffer; } FTC_SBitRec ; A very compact structure used to describe a small glyph bitmap.","title":"FTC_SBitRec"},{"location":"ft2-cache_subsystem.html#ftc_sbitcache_lookupscaler","text":"Defined in FT_CACHE_H (freetype/ftcache.h). FT_EXPORT( FT_Error ) FTC_SBitCache_LookupScaler ( FTC_SBitCache cache, FTC_Scaler scaler, FT_ULong load_flags, FT_UInt gindex, FTC_SBit *sbit, FTC_Node *anode ); A variant of FTC_SBitCache_Lookup that uses an FTC_ScalerRec to specify the face ID and its size.","title":"FTC_SBitCache_LookupScaler"},{"location":"ft2-cff_driver.html","text":"FreeType \u00bb Docs \u00bb Controlling FreeType Modules \u00bb The CFF driver The CFF driver \u00b6 Synopsis \u00b6 While FreeType's CFF driver doesn't expose API functions by itself, it is possible to control its behaviour with FT_Property_Set and FT_Property_Get . The CFF driver's module name is \u2018cff\u2019. Available properties are hinting-engine , no-stem-darkening , darkening-parameters , and random-seed , as documented in the \u2018 Driver properties \u2019 section. Hinting and anti-aliasing principles of the new engine The rasterizer is positioning horizontal features (e.g., ascender height & x-height, or crossbars) on the pixel grid and minimizing the amount of anti-aliasing applied to them, while placing vertical features (vertical stems) on the pixel grid without hinting, thus representing the stem position and weight accurately. Sometimes the vertical stems may be only partially black. In this context, \u2018anti-aliasing\u2019 means that stems are not positioned exactly on pixel borders, causing a fuzzy appearance. There are two principles behind this approach. 1) No hinting in the horizontal direction: Unlike \u2018superhinted\u2019 TrueType, which changes glyph widths to accommodate regular inter-glyph spacing, Adobe's approach is \u2018faithful to the design\u2019 in representing both the glyph width and the inter-glyph spacing designed for the font. This makes the screen display as close as it can be to the result one would get with infinite resolution, while preserving what is considered the key characteristics of each glyph. Note that the distances between unhinted and grid-fitted positions at small sizes are comparable to kerning values and thus would be noticeable (and distracting) while reading if hinting were applied. One of the reasons to not hint horizontally is anti-aliasing for LCD screens: The pixel geometry of modern displays supplies three vertical subpixels as the eye moves horizontally across each visible pixel. On devices where we can be certain this characteristic is present a rasterizer can take advantage of the subpixels to add increments of weight. In Western writing systems this turns out to be the more critical direction anyway; the weights and spacing of vertical stems (see above) are central to Armenian, Cyrillic, Greek, and Latin type designs. Even when the rasterizer uses greyscale anti-aliasing instead of color (a necessary compromise when one doesn't know the screen characteristics), the unhinted vertical features preserve the design's weight and spacing much better than aliased type would. 2) Alignment in the vertical direction: Weights and spacing along the y axis are less critical; what is much more important is the visual alignment of related features (like cap-height and x-height). The sense of alignment for these is enhanced by the sharpness of grid-fit edges, while the cruder vertical resolution (full pixels instead of \u2153 pixels) is less of a problem. On the technical side, horizontal alignment zones for ascender, x-height, and other important height values (traditionally called \u2018blue zones\u2019) as defined in the font are positioned independently, each being rounded to the nearest pixel edge, taking care of overshoot suppression at small sizes, stem darkening, and scaling. Hstems (this is, hint values defined in the font to help align horizontal features) that fall within a blue zone are said to be \u2018captured\u2019 and are aligned to that zone. Uncaptured stems are moved in one of four ways, top edge up or down, bottom edge up or down. Unless there are conflicting hstems, the smallest movement is taken to minimize distortion.","title":"The CFF driver"},{"location":"ft2-cff_driver.html#the-cff-driver","text":"","title":"The CFF driver"},{"location":"ft2-cff_driver.html#synopsis","text":"While FreeType's CFF driver doesn't expose API functions by itself, it is possible to control its behaviour with FT_Property_Set and FT_Property_Get . The CFF driver's module name is \u2018cff\u2019. Available properties are hinting-engine , no-stem-darkening , darkening-parameters , and random-seed , as documented in the \u2018 Driver properties \u2019 section. Hinting and anti-aliasing principles of the new engine The rasterizer is positioning horizontal features (e.g., ascender height & x-height, or crossbars) on the pixel grid and minimizing the amount of anti-aliasing applied to them, while placing vertical features (vertical stems) on the pixel grid without hinting, thus representing the stem position and weight accurately. Sometimes the vertical stems may be only partially black. In this context, \u2018anti-aliasing\u2019 means that stems are not positioned exactly on pixel borders, causing a fuzzy appearance. There are two principles behind this approach. 1) No hinting in the horizontal direction: Unlike \u2018superhinted\u2019 TrueType, which changes glyph widths to accommodate regular inter-glyph spacing, Adobe's approach is \u2018faithful to the design\u2019 in representing both the glyph width and the inter-glyph spacing designed for the font. This makes the screen display as close as it can be to the result one would get with infinite resolution, while preserving what is considered the key characteristics of each glyph. Note that the distances between unhinted and grid-fitted positions at small sizes are comparable to kerning values and thus would be noticeable (and distracting) while reading if hinting were applied. One of the reasons to not hint horizontally is anti-aliasing for LCD screens: The pixel geometry of modern displays supplies three vertical subpixels as the eye moves horizontally across each visible pixel. On devices where we can be certain this characteristic is present a rasterizer can take advantage of the subpixels to add increments of weight. In Western writing systems this turns out to be the more critical direction anyway; the weights and spacing of vertical stems (see above) are central to Armenian, Cyrillic, Greek, and Latin type designs. Even when the rasterizer uses greyscale anti-aliasing instead of color (a necessary compromise when one doesn't know the screen characteristics), the unhinted vertical features preserve the design's weight and spacing much better than aliased type would. 2) Alignment in the vertical direction: Weights and spacing along the y axis are less critical; what is much more important is the visual alignment of related features (like cap-height and x-height). The sense of alignment for these is enhanced by the sharpness of grid-fit edges, while the cruder vertical resolution (full pixels instead of \u2153 pixels) is less of a problem. On the technical side, horizontal alignment zones for ascender, x-height, and other important height values (traditionally called \u2018blue zones\u2019) as defined in the font are positioned independently, each being rounded to the nearest pixel edge, taking care of overshoot suppression at small sizes, stem darkening, and scaling. Hstems (this is, hint values defined in the font to help align horizontal features) that fall within a blue zone are said to be \u2018captured\u2019 and are aligned to that zone. Uncaptured stems are moved in one of four ways, top edge up or down, bottom edge up or down. Unless there are conflicting hstems, the smallest movement is taken to minimize distortion.","title":"Synopsis"},{"location":"ft2-cid_fonts.html","text":"FreeType \u00bb Docs \u00bb Format-Specific API \u00bb CID Fonts CID Fonts \u00b6 Synopsis \u00b6 This section contains the declaration of CID-keyed font-specific functions. FT_Get_CID_Registry_Ordering_Supplement \u00b6 Defined in FT_CID_H (freetype/ftcid.h). FT_EXPORT( FT_Error ) FT_Get_CID_Registry_Ordering_Supplement ( FT_Face face, const char * *registry, const char * *ordering, FT_Int *supplement ); Retrieve the Registry/Ordering/Supplement triple (also known as the \"R/O/S\") from a CID-keyed font. input face A handle to the input face. output registry The registry, as a C string, owned by the face. ordering The ordering, as a C string, owned by the face. supplement The supplement. return FreeType error code. 0 means success. note This function only works with CID faces, returning an error otherwise. since 2.3.6 FT_Get_CID_Is_Internally_CID_Keyed \u00b6 Defined in FT_CID_H (freetype/ftcid.h). FT_EXPORT( FT_Error ) FT_Get_CID_Is_Internally_CID_Keyed ( FT_Face face, FT_Bool *is_cid ); Retrieve the type of the input face, CID keyed or not. In contrast to the FT_IS_CID_KEYED macro this function returns successfully also for CID-keyed fonts in an SFNT wrapper. input face A handle to the input face. output is_cid The type of the face as an FT_Bool . return FreeType error code. 0 means success. note This function only works with CID faces and OpenType fonts, returning an error otherwise. since 2.3.9 FT_Get_CID_From_Glyph_Index \u00b6 Defined in FT_CID_H (freetype/ftcid.h). FT_EXPORT( FT_Error ) FT_Get_CID_From_Glyph_Index ( FT_Face face, FT_UInt glyph_index, FT_UInt *cid ); Retrieve the CID of the input glyph index. input face A handle to the input face. glyph_index The input glyph index. output cid The CID as an FT_UInt . return FreeType error code. 0 means success. note This function only works with CID faces and OpenType fonts, returning an error otherwise. since 2.3.9","title":"CID Fonts"},{"location":"ft2-cid_fonts.html#cid-fonts","text":"","title":"CID Fonts"},{"location":"ft2-cid_fonts.html#synopsis","text":"This section contains the declaration of CID-keyed font-specific functions.","title":"Synopsis"},{"location":"ft2-cid_fonts.html#ft_get_cid_registry_ordering_supplement","text":"Defined in FT_CID_H (freetype/ftcid.h). FT_EXPORT( FT_Error ) FT_Get_CID_Registry_Ordering_Supplement ( FT_Face face, const char * *registry, const char * *ordering, FT_Int *supplement ); Retrieve the Registry/Ordering/Supplement triple (also known as the \"R/O/S\") from a CID-keyed font.","title":"FT_Get_CID_Registry_Ordering_Supplement"},{"location":"ft2-cid_fonts.html#ft_get_cid_is_internally_cid_keyed","text":"Defined in FT_CID_H (freetype/ftcid.h). FT_EXPORT( FT_Error ) FT_Get_CID_Is_Internally_CID_Keyed ( FT_Face face, FT_Bool *is_cid ); Retrieve the type of the input face, CID keyed or not. In contrast to the FT_IS_CID_KEYED macro this function returns successfully also for CID-keyed fonts in an SFNT wrapper.","title":"FT_Get_CID_Is_Internally_CID_Keyed"},{"location":"ft2-cid_fonts.html#ft_get_cid_from_glyph_index","text":"Defined in FT_CID_H (freetype/ftcid.h). FT_EXPORT( FT_Error ) FT_Get_CID_From_Glyph_Index ( FT_Face face, FT_UInt glyph_index, FT_UInt *cid ); Retrieve the CID of the input glyph index.","title":"FT_Get_CID_From_Glyph_Index"},{"location":"ft2-color_management.html","text":"FreeType \u00bb Docs \u00bb Core API \u00bb Glyph Color Management Glyph Color Management \u00b6 Synopsis \u00b6 The functions described here allow access and manipulation of color palette entries in OpenType's \u2018CPAL\u2019 tables. FT_Color \u00b6 Defined in FT_COLOR_H (freetype/ftcolor.h). typedef struct FT_Color_ { FT_Byte blue; FT_Byte green; FT_Byte red; FT_Byte alpha; } FT_Color ; This structure models a BGRA color value of a \u2018CPAL\u2019 palette entry. The used color space is sRGB; the colors are not pre-multiplied, and alpha values must be explicitly set. fields blue Blue value. green Green value. red Red value. alpha Alpha value, giving the red, green, and blue color's opacity. since 2.10 FT_PALETTE_XXX \u00b6 Defined in FT_COLOR_H (freetype/ftcolor.h). # define FT_PALETTE_FOR_LIGHT_BACKGROUND 0x01 # define FT_PALETTE_FOR_DARK_BACKGROUND 0x02 A list of bit field constants used in the palette_flags array of the FT_Palette_Data structure to indicate for which background a palette with a given index is usable. values FT_PALETTE_FOR_LIGHT_BACKGROUND The palette is appropriate to use when displaying the font on a light background such as white. FT_PALETTE_FOR_DARK_BACKGROUND The palette is appropriate to use when displaying the font on a dark background such as black. since 2.10 FT_Palette_Data \u00b6 Defined in FT_COLOR_H (freetype/ftcolor.h). typedef struct FT_Palette_Data_ { FT_UShort num_palettes; const FT_UShort * palette_name_ids; const FT_UShort * palette_flags; FT_UShort num_palette_entries; const FT_UShort * palette_entry_name_ids; } FT_Palette_Data ; This structure holds the data of the \u2018CPAL\u2019 table. fields num_palettes The number of palettes. palette_name_ids An optional read-only array of palette name IDs with num_palettes elements, corresponding to entries like \u2018dark\u2019 or \u2018light\u2019 in the font's \u2018name\u2019 table. An empty name ID in the \u2018CPAL\u2019 table gets represented as value 0xFFFF. NULL if the font's \u2018CPAL\u2019 table doesn't contain appropriate data. palette_flags An optional read-only array of palette flags with num_palettes elements. Possible values are an ORed combination of FT_PALETTE_FOR_LIGHT_BACKGROUND and FT_PALETTE_FOR_DARK_BACKGROUND . NULL if the font's \u2018CPAL\u2019 table doesn't contain appropriate data. num_palette_entries The number of entries in a single palette. All palettes have the same size. palette_entry_name_ids An optional read-only array of palette entry name IDs with num_palette_entries . In each palette, entries with the same index have the same function. For example, index 0 might correspond to string \u2018outline\u2019 in the font's \u2018name\u2019 table to indicate that this palette entry is used for outlines, index 1 might correspond to \u2018fill\u2019 to indicate the filling color palette entry, etc. An empty entry name ID in the \u2018CPAL\u2019 table gets represented as value 0xFFFF. NULL if the font's \u2018CPAL\u2019 table doesn't contain appropriate data. note Use function FT_Get_Sfnt_Name to map name IDs and entry name IDs to name strings. Use function FT_Palette_Select to get the colors associated with a palette entry. since 2.10 FT_Palette_Data_Get \u00b6 Defined in FT_COLOR_H (freetype/ftcolor.h). FT_EXPORT( FT_Error ) FT_Palette_Data_Get ( FT_Face face, FT_Palette_Data *apalette ); Retrieve the face's color palette data. input face The source face handle. output apalette A pointer to an FT_Palette_Data structure. return FreeType error code. 0 means success. note All arrays in the returned FT_Palette_Data structure are read-only. This function always returns an error if the config macro TT_CONFIG_OPTION_COLOR_LAYERS is not defined in ftoption.h . since 2.10 FT_Palette_Select \u00b6 Defined in FT_COLOR_H (freetype/ftcolor.h). FT_EXPORT( FT_Error ) FT_Palette_Select ( FT_Face face, FT_UShort palette_index, FT_Color * *apalette ); This function has two purposes. (1) It activates a palette for rendering color glyphs, and (2) it retrieves all (unmodified) color entries of this palette. This function returns a read-write array, which means that a calling application can modify the palette entries on demand. A corollary of (2) is that calling the function, then modifying some values, then calling the function again with the same arguments resets all color entries to the original \u2018CPAL\u2019 values; all user modifications are lost. input face The source face handle. palette_index The palette index. output apalette An array of color entries for a palette with index palette_index , having num_palette_entries elements (as found in the FT_Palette_Data structure). If apalette is set to NULL , no array gets returned (and no color entries can be modified). In case the font doesn't support color palettes, NULL is returned. return FreeType error code. 0 means success. note The array pointed to by apalette_entries is owned and managed by FreeType. This function always returns an error if the config macro TT_CONFIG_OPTION_COLOR_LAYERS is not defined in ftoption.h . since 2.10 FT_Palette_Set_Foreground_Color \u00b6 Defined in FT_COLOR_H (freetype/ftcolor.h). FT_EXPORT( FT_Error ) FT_Palette_Set_Foreground_Color ( FT_Face face, FT_Color foreground_color ); \u2018COLR\u2019 uses palette index 0xFFFF to indicate a \u2018text foreground color\u2019. This function sets this value. input face The source face handle. foreground_color An FT_Color structure to define the text foreground color. return FreeType error code. 0 means success. note If this function isn't called, the text foreground color is set to white opaque (BGRA value 0xFFFFFFFF) if FT_PALETTE_FOR_DARK_BACKGROUND is present for the current palette, and black opaque (BGRA value 0x000000FF) otherwise, including the case that no palette types are available in the \u2018CPAL\u2019 table. This function always returns an error if the config macro TT_CONFIG_OPTION_COLOR_LAYERS is not defined in ftoption.h . since 2.10","title":"Glyph Color Management"},{"location":"ft2-color_management.html#glyph-color-management","text":"","title":"Glyph Color Management"},{"location":"ft2-color_management.html#synopsis","text":"The functions described here allow access and manipulation of color palette entries in OpenType's \u2018CPAL\u2019 tables.","title":"Synopsis"},{"location":"ft2-color_management.html#ft_color","text":"Defined in FT_COLOR_H (freetype/ftcolor.h). typedef struct FT_Color_ { FT_Byte blue; FT_Byte green; FT_Byte red; FT_Byte alpha; } FT_Color ; This structure models a BGRA color value of a \u2018CPAL\u2019 palette entry. The used color space is sRGB; the colors are not pre-multiplied, and alpha values must be explicitly set.","title":"FT_Color"},{"location":"ft2-color_management.html#ft_palette_xxx","text":"Defined in FT_COLOR_H (freetype/ftcolor.h). # define FT_PALETTE_FOR_LIGHT_BACKGROUND 0x01 # define FT_PALETTE_FOR_DARK_BACKGROUND 0x02 A list of bit field constants used in the palette_flags array of the FT_Palette_Data structure to indicate for which background a palette with a given index is usable.","title":"FT_PALETTE_XXX"},{"location":"ft2-color_management.html#ft_palette_data","text":"Defined in FT_COLOR_H (freetype/ftcolor.h). typedef struct FT_Palette_Data_ { FT_UShort num_palettes; const FT_UShort * palette_name_ids; const FT_UShort * palette_flags; FT_UShort num_palette_entries; const FT_UShort * palette_entry_name_ids; } FT_Palette_Data ; This structure holds the data of the \u2018CPAL\u2019 table.","title":"FT_Palette_Data"},{"location":"ft2-color_management.html#ft_palette_data_get","text":"Defined in FT_COLOR_H (freetype/ftcolor.h). FT_EXPORT( FT_Error ) FT_Palette_Data_Get ( FT_Face face, FT_Palette_Data *apalette ); Retrieve the face's color palette data.","title":"FT_Palette_Data_Get"},{"location":"ft2-color_management.html#ft_palette_select","text":"Defined in FT_COLOR_H (freetype/ftcolor.h). FT_EXPORT( FT_Error ) FT_Palette_Select ( FT_Face face, FT_UShort palette_index, FT_Color * *apalette ); This function has two purposes. (1) It activates a palette for rendering color glyphs, and (2) it retrieves all (unmodified) color entries of this palette. This function returns a read-write array, which means that a calling application can modify the palette entries on demand. A corollary of (2) is that calling the function, then modifying some values, then calling the function again with the same arguments resets all color entries to the original \u2018CPAL\u2019 values; all user modifications are lost.","title":"FT_Palette_Select"},{"location":"ft2-color_management.html#ft_palette_set_foreground_color","text":"Defined in FT_COLOR_H (freetype/ftcolor.h). FT_EXPORT( FT_Error ) FT_Palette_Set_Foreground_Color ( FT_Face face, FT_Color foreground_color ); \u2018COLR\u2019 uses palette index 0xFFFF to indicate a \u2018text foreground color\u2019. This function sets this value.","title":"FT_Palette_Set_Foreground_Color"},{"location":"ft2-computations.html","text":"FreeType \u00bb Docs \u00bb Support API \u00bb Computations Computations \u00b6 Synopsis \u00b6 This section contains various functions used to perform computations on 16.16 fixed-float numbers or 2d vectors. Attention : Most arithmetic functions take FT_Long as arguments. For historical reasons, FreeType was designed under the assumption that FT_Long is a 32-bit integer; results can thus be undefined if the arguments don't fit into 32 bits. FT_MulDiv \u00b6 Defined in FT_FREETYPE_H (freetype/freetype.h). FT_EXPORT( FT_Long ) FT_MulDiv ( FT_Long a, FT_Long b, FT_Long c ); Compute (a*b)/c with maximum accuracy, using a 64-bit intermediate integer whenever necessary. This function isn't necessarily as fast as some processor-specific operations, but is at least completely portable. input a The first multiplier. b The second multiplier. c The divisor. return The result of (a*b)/c . This function never traps when trying to divide by zero; it simply returns \u2018MaxInt\u2019 or \u2018MinInt\u2019 depending on the signs of a and b . FT_MulFix \u00b6 Defined in FT_FREETYPE_H (freetype/freetype.h). FT_EXPORT( FT_Long ) FT_MulFix ( FT_Long a, FT_Long b ); Compute (a*b)/0x10000 with maximum accuracy. Its main use is to multiply a given value by a 16.16 fixed-point factor. input a The first multiplier. b The second multiplier. Use a 16.16 factor here whenever possible (see note below). return The result of (a*b)/0x10000 . note This function has been optimized for the case where the absolute value of a is less than 2048, and b is a 16.16 scaling factor. As this happens mainly when scaling from notional units to fractional pixels in FreeType, it resulted in noticeable speed improvements between versions 2.x and 1.x. As a conclusion, always try to place a 16.16 factor as the second argument of this function; this can make a great difference. FT_DivFix \u00b6 Defined in FT_FREETYPE_H (freetype/freetype.h). FT_EXPORT( FT_Long ) FT_DivFix ( FT_Long a, FT_Long b ); Compute (a*0x10000)/b with maximum accuracy. Its main use is to divide a given value by a 16.16 fixed-point factor. input a The numerator. b The denominator. Use a 16.16 factor here. return The result of (a*0x10000)/b . FT_RoundFix \u00b6 Defined in FT_FREETYPE_H (freetype/freetype.h). FT_EXPORT( FT_Fixed ) FT_RoundFix ( FT_Fixed a ); Round a 16.16 fixed number. input a The number to be rounded. return a rounded to the nearest 16.16 fixed integer, halfway cases away from zero. note The function uses wrap-around arithmetic. FT_CeilFix \u00b6 Defined in FT_FREETYPE_H (freetype/freetype.h). FT_EXPORT( FT_Fixed ) FT_CeilFix ( FT_Fixed a ); Compute the smallest following integer of a 16.16 fixed number. input a The number for which the ceiling function is to be computed. return a rounded towards plus infinity. note The function uses wrap-around arithmetic. FT_FloorFix \u00b6 Defined in FT_FREETYPE_H (freetype/freetype.h). FT_EXPORT( FT_Fixed ) FT_FloorFix ( FT_Fixed a ); Compute the largest previous integer of a 16.16 fixed number. input a The number for which the floor function is to be computed. return a rounded towards minus infinity. FT_Vector_Transform \u00b6 Defined in FT_FREETYPE_H (freetype/freetype.h). FT_EXPORT( void ) FT_Vector_Transform ( FT_Vector * vector, const FT_Matrix * matrix ); Transform a single vector through a 2x2 matrix. inout vector The target vector to transform. input matrix A pointer to the source 2x2 matrix. note The result is undefined if either vector or matrix is invalid. FT_Matrix_Multiply \u00b6 Defined in FT_GLYPH_H (freetype/ftglyph.h). FT_EXPORT( void ) FT_Matrix_Multiply ( const FT_Matrix * a, FT_Matrix * b ); Perform the matrix operation b = a*b . input a A pointer to matrix a . inout b A pointer to matrix b . note The result is undefined if either a or b is zero. Since the function uses wrap-around arithmetic, results become meaningless if the arguments are very large. FT_Matrix_Invert \u00b6 Defined in FT_GLYPH_H (freetype/ftglyph.h). FT_EXPORT( FT_Error ) FT_Matrix_Invert ( FT_Matrix * matrix ); Invert a 2x2 matrix. Return an error if it can't be inverted. inout matrix A pointer to the target matrix. Remains untouched in case of error. return FreeType error code. 0 means success. FT_Angle \u00b6 Defined in FT_TRIGONOMETRY_H (freetype/fttrigon.h). typedef FT_Fixed FT_Angle ; This type is used to model angle values in FreeType. Note that the angle is a 16.16 fixed-point value expressed in degrees. FT_ANGLE_PI \u00b6 Defined in FT_TRIGONOMETRY_H (freetype/fttrigon.h). # define FT_ANGLE_PI ( 180L << 16 ) The angle pi expressed in FT_Angle units. FT_ANGLE_2PI \u00b6 Defined in FT_TRIGONOMETRY_H (freetype/fttrigon.h). # define FT_ANGLE_2PI ( FT_ANGLE_PI * 2 ) The angle 2*pi expressed in FT_Angle units. FT_ANGLE_PI2 \u00b6 Defined in FT_TRIGONOMETRY_H (freetype/fttrigon.h). # define FT_ANGLE_PI2 ( FT_ANGLE_PI / 2 ) The angle pi/2 expressed in FT_Angle units. FT_ANGLE_PI4 \u00b6 Defined in FT_TRIGONOMETRY_H (freetype/fttrigon.h). # define FT_ANGLE_PI4 ( FT_ANGLE_PI / 4 ) The angle pi/4 expressed in FT_Angle units. FT_Sin \u00b6 Defined in FT_TRIGONOMETRY_H (freetype/fttrigon.h). FT_EXPORT( FT_Fixed ) FT_Sin ( FT_Angle angle ); Return the sinus of a given angle in fixed-point format. input angle The input angle. return The sinus value. note If you need both the sinus and cosinus for a given angle, use the function FT_Vector_Unit . FT_Cos \u00b6 Defined in FT_TRIGONOMETRY_H (freetype/fttrigon.h). FT_EXPORT( FT_Fixed ) FT_Cos ( FT_Angle angle ); Return the cosinus of a given angle in fixed-point format. input angle The input angle. return The cosinus value. note If you need both the sinus and cosinus for a given angle, use the function FT_Vector_Unit . FT_Tan \u00b6 Defined in FT_TRIGONOMETRY_H (freetype/fttrigon.h). FT_EXPORT( FT_Fixed ) FT_Tan ( FT_Angle angle ); Return the tangent of a given angle in fixed-point format. input angle The input angle. return The tangent value. FT_Atan2 \u00b6 Defined in FT_TRIGONOMETRY_H (freetype/fttrigon.h). FT_EXPORT( FT_Angle ) FT_Atan2 ( FT_Fixed x, FT_Fixed y ); Return the arc-tangent corresponding to a given vector (x,y) in the 2d plane. input x The horizontal vector coordinate. y The vertical vector coordinate. return The arc-tangent value (i.e. angle). FT_Angle_Diff \u00b6 Defined in FT_TRIGONOMETRY_H (freetype/fttrigon.h). FT_EXPORT( FT_Angle ) FT_Angle_Diff ( FT_Angle angle1, FT_Angle angle2 ); Return the difference between two angles. The result is always constrained to the ]-PI..PI] interval. input angle1 First angle. angle2 Second angle. return Constrained value of angle2-angle1 . FT_Vector_Unit \u00b6 Defined in FT_TRIGONOMETRY_H (freetype/fttrigon.h). FT_EXPORT( void ) FT_Vector_Unit ( FT_Vector * vec, FT_Angle angle ); Return the unit vector corresponding to a given angle. After the call, the value of vec.x will be cos(angle) , and the value of vec.y will be sin(angle) . This function is useful to retrieve both the sinus and cosinus of a given angle quickly. output vec The address of target vector. input angle The input angle. FT_Vector_Rotate \u00b6 Defined in FT_TRIGONOMETRY_H (freetype/fttrigon.h). FT_EXPORT( void ) FT_Vector_Rotate ( FT_Vector * vec, FT_Angle angle ); Rotate a vector by a given angle. inout vec The address of target vector. input angle The input angle. FT_Vector_Length \u00b6 Defined in FT_TRIGONOMETRY_H (freetype/fttrigon.h). FT_EXPORT( FT_Fixed ) FT_Vector_Length ( FT_Vector * vec ); Return the length of a given vector. input vec The address of target vector. return The vector length, expressed in the same units that the original vector coordinates. FT_Vector_Polarize \u00b6 Defined in FT_TRIGONOMETRY_H (freetype/fttrigon.h). FT_EXPORT( void ) FT_Vector_Polarize ( FT_Vector * vec, FT_Fixed *length, FT_Angle *angle ); Compute both the length and angle of a given vector. input vec The address of source vector. output length The vector length. angle The vector angle. FT_Vector_From_Polar \u00b6 Defined in FT_TRIGONOMETRY_H (freetype/fttrigon.h). FT_EXPORT( void ) FT_Vector_From_Polar ( FT_Vector * vec, FT_Fixed length, FT_Angle angle ); Compute vector coordinates from a length and angle. output vec The address of source vector. input length The vector length. angle The vector angle.","title":"Computations"},{"location":"ft2-computations.html#computations","text":"","title":"Computations"},{"location":"ft2-computations.html#synopsis","text":"This section contains various functions used to perform computations on 16.16 fixed-float numbers or 2d vectors. Attention : Most arithmetic functions take FT_Long as arguments. For historical reasons, FreeType was designed under the assumption that FT_Long is a 32-bit integer; results can thus be undefined if the arguments don't fit into 32 bits.","title":"Synopsis"},{"location":"ft2-computations.html#ft_muldiv","text":"Defined in FT_FREETYPE_H (freetype/freetype.h). FT_EXPORT( FT_Long ) FT_MulDiv ( FT_Long a, FT_Long b, FT_Long c ); Compute (a*b)/c with maximum accuracy, using a 64-bit intermediate integer whenever necessary. This function isn't necessarily as fast as some processor-specific operations, but is at least completely portable.","title":"FT_MulDiv"},{"location":"ft2-computations.html#ft_mulfix","text":"Defined in FT_FREETYPE_H (freetype/freetype.h). FT_EXPORT( FT_Long ) FT_MulFix ( FT_Long a, FT_Long b ); Compute (a*b)/0x10000 with maximum accuracy. Its main use is to multiply a given value by a 16.16 fixed-point factor.","title":"FT_MulFix"},{"location":"ft2-computations.html#ft_divfix","text":"Defined in FT_FREETYPE_H (freetype/freetype.h). FT_EXPORT( FT_Long ) FT_DivFix ( FT_Long a, FT_Long b ); Compute (a*0x10000)/b with maximum accuracy. Its main use is to divide a given value by a 16.16 fixed-point factor.","title":"FT_DivFix"},{"location":"ft2-computations.html#ft_roundfix","text":"Defined in FT_FREETYPE_H (freetype/freetype.h). FT_EXPORT( FT_Fixed ) FT_RoundFix ( FT_Fixed a ); Round a 16.16 fixed number.","title":"FT_RoundFix"},{"location":"ft2-computations.html#ft_ceilfix","text":"Defined in FT_FREETYPE_H (freetype/freetype.h). FT_EXPORT( FT_Fixed ) FT_CeilFix ( FT_Fixed a ); Compute the smallest following integer of a 16.16 fixed number.","title":"FT_CeilFix"},{"location":"ft2-computations.html#ft_floorfix","text":"Defined in FT_FREETYPE_H (freetype/freetype.h). FT_EXPORT( FT_Fixed ) FT_FloorFix ( FT_Fixed a ); Compute the largest previous integer of a 16.16 fixed number.","title":"FT_FloorFix"},{"location":"ft2-computations.html#ft_vector_transform","text":"Defined in FT_FREETYPE_H (freetype/freetype.h). FT_EXPORT( void ) FT_Vector_Transform ( FT_Vector * vector, const FT_Matrix * matrix ); Transform a single vector through a 2x2 matrix.","title":"FT_Vector_Transform"},{"location":"ft2-computations.html#ft_matrix_multiply","text":"Defined in FT_GLYPH_H (freetype/ftglyph.h). FT_EXPORT( void ) FT_Matrix_Multiply ( const FT_Matrix * a, FT_Matrix * b ); Perform the matrix operation b = a*b .","title":"FT_Matrix_Multiply"},{"location":"ft2-computations.html#ft_matrix_invert","text":"Defined in FT_GLYPH_H (freetype/ftglyph.h). FT_EXPORT( FT_Error ) FT_Matrix_Invert ( FT_Matrix * matrix ); Invert a 2x2 matrix. Return an error if it can't be inverted.","title":"FT_Matrix_Invert"},{"location":"ft2-computations.html#ft_angle","text":"Defined in FT_TRIGONOMETRY_H (freetype/fttrigon.h). typedef FT_Fixed FT_Angle ; This type is used to model angle values in FreeType. Note that the angle is a 16.16 fixed-point value expressed in degrees.","title":"FT_Angle"},{"location":"ft2-computations.html#ft_angle_pi","text":"Defined in FT_TRIGONOMETRY_H (freetype/fttrigon.h). # define FT_ANGLE_PI ( 180L << 16 ) The angle pi expressed in FT_Angle units.","title":"FT_ANGLE_PI"},{"location":"ft2-computations.html#ft_angle_2pi","text":"Defined in FT_TRIGONOMETRY_H (freetype/fttrigon.h). # define FT_ANGLE_2PI ( FT_ANGLE_PI * 2 ) The angle 2*pi expressed in FT_Angle units.","title":"FT_ANGLE_2PI"},{"location":"ft2-computations.html#ft_angle_pi2","text":"Defined in FT_TRIGONOMETRY_H (freetype/fttrigon.h). # define FT_ANGLE_PI2 ( FT_ANGLE_PI / 2 ) The angle pi/2 expressed in FT_Angle units.","title":"FT_ANGLE_PI2"},{"location":"ft2-computations.html#ft_angle_pi4","text":"Defined in FT_TRIGONOMETRY_H (freetype/fttrigon.h). # define FT_ANGLE_PI4 ( FT_ANGLE_PI / 4 ) The angle pi/4 expressed in FT_Angle units.","title":"FT_ANGLE_PI4"},{"location":"ft2-computations.html#ft_sin","text":"Defined in FT_TRIGONOMETRY_H (freetype/fttrigon.h). FT_EXPORT( FT_Fixed ) FT_Sin ( FT_Angle angle ); Return the sinus of a given angle in fixed-point format.","title":"FT_Sin"},{"location":"ft2-computations.html#ft_cos","text":"Defined in FT_TRIGONOMETRY_H (freetype/fttrigon.h). FT_EXPORT( FT_Fixed ) FT_Cos ( FT_Angle angle ); Return the cosinus of a given angle in fixed-point format.","title":"FT_Cos"},{"location":"ft2-computations.html#ft_tan","text":"Defined in FT_TRIGONOMETRY_H (freetype/fttrigon.h). FT_EXPORT( FT_Fixed ) FT_Tan ( FT_Angle angle ); Return the tangent of a given angle in fixed-point format.","title":"FT_Tan"},{"location":"ft2-computations.html#ft_atan2","text":"Defined in FT_TRIGONOMETRY_H (freetype/fttrigon.h). FT_EXPORT( FT_Angle ) FT_Atan2 ( FT_Fixed x, FT_Fixed y ); Return the arc-tangent corresponding to a given vector (x,y) in the 2d plane.","title":"FT_Atan2"},{"location":"ft2-computations.html#ft_angle_diff","text":"Defined in FT_TRIGONOMETRY_H (freetype/fttrigon.h). FT_EXPORT( FT_Angle ) FT_Angle_Diff ( FT_Angle angle1, FT_Angle angle2 ); Return the difference between two angles. The result is always constrained to the ]-PI..PI] interval.","title":"FT_Angle_Diff"},{"location":"ft2-computations.html#ft_vector_unit","text":"Defined in FT_TRIGONOMETRY_H (freetype/fttrigon.h). FT_EXPORT( void ) FT_Vector_Unit ( FT_Vector * vec, FT_Angle angle ); Return the unit vector corresponding to a given angle. After the call, the value of vec.x will be cos(angle) , and the value of vec.y will be sin(angle) . This function is useful to retrieve both the sinus and cosinus of a given angle quickly.","title":"FT_Vector_Unit"},{"location":"ft2-computations.html#ft_vector_rotate","text":"Defined in FT_TRIGONOMETRY_H (freetype/fttrigon.h). FT_EXPORT( void ) FT_Vector_Rotate ( FT_Vector * vec, FT_Angle angle ); Rotate a vector by a given angle.","title":"FT_Vector_Rotate"},{"location":"ft2-computations.html#ft_vector_length","text":"Defined in FT_TRIGONOMETRY_H (freetype/fttrigon.h). FT_EXPORT( FT_Fixed ) FT_Vector_Length ( FT_Vector * vec ); Return the length of a given vector.","title":"FT_Vector_Length"},{"location":"ft2-computations.html#ft_vector_polarize","text":"Defined in FT_TRIGONOMETRY_H (freetype/fttrigon.h). FT_EXPORT( void ) FT_Vector_Polarize ( FT_Vector * vec, FT_Fixed *length, FT_Angle *angle ); Compute both the length and angle of a given vector.","title":"FT_Vector_Polarize"},{"location":"ft2-computations.html#ft_vector_from_polar","text":"Defined in FT_TRIGONOMETRY_H (freetype/fttrigon.h). FT_EXPORT( void ) FT_Vector_From_Polar ( FT_Vector * vec, FT_Fixed length, FT_Angle angle ); Compute vector coordinates from a length and angle.","title":"FT_Vector_From_Polar"},{"location":"ft2-debugging_apis.html","text":"FreeType \u00bb Docs \u00bb Support API \u00bb External Debugging APIs External Debugging APIs \u00b6 Synopsis \u00b6 This section contains the declarations of public functions that enables fine control of what the FT_DEBUG_LOGGING macro outputs. FT_Trace_Set_Level \u00b6 FT_EXPORT( void ) FT_Trace_Set_Level ( const char * tracing_level ); Change the levels of tracing components of FreeType at run time. input tracing_level New tracing value. example The following call makes FreeType trace everything but the \u2018memory\u2019 component. FT_Trace_Set_Level( \"any:7 memory:0 ); note This function does nothing if compilation option FT_DEBUG_LOGGING isn't set. since 2.11 FT_Trace_Set_Default_Level \u00b6 FT_EXPORT( void ) FT_Trace_Set_Default_Level ( void ); Reset tracing value of FreeType's components to the default value (i.e., to the value of the FT2_DEBUG environment value or to NULL if FT2_DEBUG is not set). note This function does nothing if compilation option FT_DEBUG_LOGGING isn't set. since 2.11 FT_Custom_Log_Handler \u00b6 typedef void (* FT_Custom_Log_Handler )( const char * ft_component, const char * fmt, va_list args ); A function typedef that is used to handle the logging of tracing and debug messages on a file system. input ft_component The name of FT_COMPONENT from which the current debug or error message is produced. fmt Actual debug or tracing message. args Arguments of debug or tracing messages. since 2.11 FT_Set_Log_Handler \u00b6 FT_EXPORT( void ) FT_Set_Log_Handler ( FT_Custom_Log_Handler handler ); A function to set a custom log handler. input handler New logging function. note This function does nothing if compilation option FT_DEBUG_LOGGING isn't set. since 2.11 FT_Set_Default_Log_Handler \u00b6 FT_EXPORT( void ) FT_Set_Default_Log_Handler ( void ); A function to undo the effect of FT_Set_Log_Handler , resetting the log handler to FreeType's built-in version. note This function does nothing if compilation option FT_DEBUG_LOGGING isn't set. since 2.11","title":"External Debugging APIs"},{"location":"ft2-debugging_apis.html#external-debugging-apis","text":"","title":"External Debugging APIs"},{"location":"ft2-debugging_apis.html#synopsis","text":"This section contains the declarations of public functions that enables fine control of what the FT_DEBUG_LOGGING macro outputs.","title":"Synopsis"},{"location":"ft2-debugging_apis.html#ft_trace_set_level","text":"FT_EXPORT( void ) FT_Trace_Set_Level ( const char * tracing_level ); Change the levels of tracing components of FreeType at run time.","title":"FT_Trace_Set_Level"},{"location":"ft2-debugging_apis.html#ft_trace_set_default_level","text":"FT_EXPORT( void ) FT_Trace_Set_Default_Level ( void ); Reset tracing value of FreeType's components to the default value (i.e., to the value of the FT2_DEBUG environment value or to NULL if FT2_DEBUG is not set).","title":"FT_Trace_Set_Default_Level"},{"location":"ft2-debugging_apis.html#ft_custom_log_handler","text":"typedef void (* FT_Custom_Log_Handler )( const char * ft_component, const char * fmt, va_list args ); A function typedef that is used to handle the logging of tracing and debug messages on a file system.","title":"FT_Custom_Log_Handler"},{"location":"ft2-debugging_apis.html#ft_set_log_handler","text":"FT_EXPORT( void ) FT_Set_Log_Handler ( FT_Custom_Log_Handler handler ); A function to set a custom log handler.","title":"FT_Set_Log_Handler"},{"location":"ft2-debugging_apis.html#ft_set_default_log_handler","text":"FT_EXPORT( void ) FT_Set_Default_Log_Handler ( void ); A function to undo the effect of FT_Set_Log_Handler , resetting the log handler to FreeType's built-in version.","title":"FT_Set_Default_Log_Handler"},{"location":"ft2-error_code_values.html","text":"FreeType \u00bb Docs \u00bb Error Codes \u00bb Error Code Values Error Code Values \u00b6 Synopsis \u00b6 The list below is taken verbatim from the file fterrdef.h (loaded automatically by including FT_FREETYPE_H ). The first argument of the FT_ERROR_DEF_ macro is the error label; by default, the prefix FT_Err_ gets added so that you get error names like FT_Err_Cannot_Open_Resource . The second argument is the error code, and the last argument an error string, which is not used by FreeType. Within your application you should only use error names and never its numeric values! The latter might (and actually do) change in forthcoming FreeType versions. Macro FT_NOERRORDEF_ defines FT_Err_Ok , which is always zero. See the \u2018Error Enumerations\u2019 subsection how to automatically generate a list of error strings. FT_Err_XXX \u00b6 /* generic errors */ FT_NOERRORDEF_( Ok, 0x00, \"no error\" ) FT_ERRORDEF_( Cannot_Open_Resource, 0x01, \"cannot open resource\" ) FT_ERRORDEF_( Unknown_File_Format, 0x02, \"unknown file format\" ) FT_ERRORDEF_( Invalid_File_Format, 0x03, \"broken file\" ) FT_ERRORDEF_( Invalid_Version, 0x04, \"invalid FreeType version\" ) FT_ERRORDEF_( Lower_Module_Version, 0x05, \"module version is too low\" ) FT_ERRORDEF_( Invalid_Argument, 0x06, \"invalid argument\" ) FT_ERRORDEF_( Unimplemented_Feature, 0x07, \"unimplemented feature\" ) FT_ERRORDEF_( Invalid_Table, 0x08, \"broken table\" ) FT_ERRORDEF_( Invalid_Offset, 0x09, \"broken offset within table\" ) FT_ERRORDEF_( Array_Too_Large, 0x0A, \"array allocation size too large\" ) FT_ERRORDEF_( Missing_Module, 0x0B, \"missing module\" ) FT_ERRORDEF_( Missing_Property, 0x0C, \"missing property\" ) /* glyph/character errors */ FT_ERRORDEF_( Invalid_Glyph_Index, 0x10, \"invalid glyph index\" ) FT_ERRORDEF_( Invalid_Character_Code, 0x11, \"invalid character code\" ) FT_ERRORDEF_( Invalid_Glyph_Format, 0x12, \"unsupported glyph image format\" ) FT_ERRORDEF_( Cannot_Render_Glyph, 0x13, \"cannot render this glyph format\" ) FT_ERRORDEF_( Invalid_Outline, 0x14, \"invalid outline\" ) FT_ERRORDEF_( Invalid_Composite, 0x15, \"invalid composite glyph\" ) FT_ERRORDEF_( Too_Many_Hints, 0x16, \"too many hints\" ) FT_ERRORDEF_( Invalid_Pixel_Size, 0x17, \"invalid pixel size\" ) /* handle errors */ FT_ERRORDEF_( Invalid_Handle, 0x20, \"invalid object handle\" ) FT_ERRORDEF_( Invalid_Library_Handle, 0x21, \"invalid library handle\" ) FT_ERRORDEF_( Invalid_Driver_Handle, 0x22, \"invalid module handle\" ) FT_ERRORDEF_( Invalid_Face_Handle, 0x23, \"invalid face handle\" ) FT_ERRORDEF_( Invalid_Size_Handle, 0x24, \"invalid size handle\" ) FT_ERRORDEF_( Invalid_Slot_Handle, 0x25, \"invalid glyph slot handle\" ) FT_ERRORDEF_( Invalid_CharMap_Handle, 0x26, \"invalid charmap handle\" ) FT_ERRORDEF_( Invalid_Cache_Handle, 0x27, \"invalid cache manager handle\" ) FT_ERRORDEF_( Invalid_Stream_Handle, 0x28, \"invalid stream handle\" ) /* driver errors */ FT_ERRORDEF_( Too_Many_Drivers, 0x30, \"too many modules\" ) FT_ERRORDEF_( Too_Many_Extensions, 0x31, \"too many extensions\" ) /* memory errors */ FT_ERRORDEF_( Out_Of_Memory, 0x40, \"out of memory\" ) FT_ERRORDEF_( Unlisted_Object, 0x41, \"unlisted object\" ) /* stream errors */ FT_ERRORDEF_( Cannot_Open_Stream, 0x51, \"cannot open stream\" ) FT_ERRORDEF_( Invalid_Stream_Seek, 0x52, \"invalid stream seek\" ) FT_ERRORDEF_( Invalid_Stream_Skip, 0x53, \"invalid stream skip\" ) FT_ERRORDEF_( Invalid_Stream_Read, 0x54, \"invalid stream read\" ) FT_ERRORDEF_( Invalid_Stream_Operation, 0x55, \"invalid stream operation\" ) FT_ERRORDEF_( Invalid_Frame_Operation, 0x56, \"invalid frame operation\" ) FT_ERRORDEF_( Nested_Frame_Access, 0x57, \"nested frame access\" ) FT_ERRORDEF_( Invalid_Frame_Read, 0x58, \"invalid frame read\" ) /* raster errors */ FT_ERRORDEF_( Raster_Uninitialized, 0x60, \"raster uninitialized\" ) FT_ERRORDEF_( Raster_Corrupted, 0x61, \"raster corrupted\" ) FT_ERRORDEF_( Raster_Overflow, 0x62, \"raster overflow\" ) FT_ERRORDEF_( Raster_Negative_Height, 0x63, \"negative height while rastering\" ) /* cache errors */ FT_ERRORDEF_( Too_Many_Caches, 0x70, \"too many registered caches\" ) /* TrueType and SFNT errors */ FT_ERRORDEF_( Invalid_Opcode, 0x80, \"invalid opcode\" ) FT_ERRORDEF_( Too_Few_Arguments, 0x81, \"too few arguments\" ) FT_ERRORDEF_( Stack_Overflow, 0x82, \"stack overflow\" ) FT_ERRORDEF_( Code_Overflow, 0x83, \"code overflow\" ) FT_ERRORDEF_( Bad_Argument, 0x84, \"bad argument\" ) FT_ERRORDEF_( Divide_By_Zero, 0x85, \"division by zero\" ) FT_ERRORDEF_( Invalid_Reference, 0x86, \"invalid reference\" ) FT_ERRORDEF_( Debug_OpCode, 0x87, \"found debug opcode\" ) FT_ERRORDEF_( ENDF_In_Exec_Stream, 0x88, \"found ENDF opcode in execution stream\" ) FT_ERRORDEF_( Nested_DEFS, 0x89, \"nested DEFS\" ) FT_ERRORDEF_( Invalid_CodeRange, 0x8A, \"invalid code range\" ) FT_ERRORDEF_( Execution_Too_Long, 0x8B, \"execution context too long \" ) FT_ERRORDEF_( Too_Many_Function_Defs, 0x8C, \"too many function definitions\" ) FT_ERRORDEF_( Too_Many_Instruction_Defs, 0x8D, \"too many instruction definitions\" ) FT_ERRORDEF_( Table_Missing, 0x8E, \"SFNT font table missing\" ) FT_ERRORDEF_( Horiz_Header_Missing, 0x8F, \"horizontal header (hhea) table missing\" ) FT_ERRORDEF_( Locations_Missing, 0x90, \"locations (loca) table missing\" ) FT_ERRORDEF_( Name_Table_Missing, 0x91, \"name table missing\" ) FT_ERRORDEF_( CMap_Table_Missing, 0x92, \"character map (cmap) table missing\" ) FT_ERRORDEF_( Hmtx_Table_Missing, 0x93, \"horizontal metrics (hmtx) table missing\" ) FT_ERRORDEF_( Post_Table_Missing, 0x94, \"PostScript (post) table missing\" ) FT_ERRORDEF_( Invalid_Horiz_Metrics, 0x95, \"invalid horizontal metrics\" ) FT_ERRORDEF_( Invalid_CharMap_Format, 0x96, \"invalid character map (cmap) format\" ) FT_ERRORDEF_( Invalid_PPem, 0x97, \"invalid ppem value\" ) FT_ERRORDEF_( Invalid_Vert_Metrics, 0x98, \"invalid vertical metrics\" ) FT_ERRORDEF_( Could_Not_Find_Context, 0x99, \"could not find context\" ) FT_ERRORDEF_( Invalid_Post_Table_Format, 0x9A, \"invalid PostScript (post) table format\" ) FT_ERRORDEF_( Invalid_Post_Table, 0x9B, \"invalid PostScript (post) table\" ) FT_ERRORDEF_( DEF_In_Glyf_Bytecode, 0x9C, \"found FDEF or IDEF opcode in glyf bytecode\" ) FT_ERRORDEF_( Missing_Bitmap, 0x9D, \"missing bitmap in strike\" ) /* CFF, CID, and Type 1 errors */ FT_ERRORDEF_( Syntax_Error, 0xA0, \"opcode syntax error\" ) FT_ERRORDEF_( Stack_Underflow, 0xA1, \"argument stack underflow\" ) FT_ERRORDEF_( Ignore, 0xA2, \"ignore\" ) FT_ERRORDEF_( No_Unicode_Glyph_Name, 0xA3, \"no Unicode glyph name found\" ) FT_ERRORDEF_( Glyph_Too_Big, 0xA4, \"glyph too big for hinting\" ) /* BDF errors */ FT_ERRORDEF_( Missing_Startfont_Field, 0xB0, \"`STARTFONT' field missing\" ) FT_ERRORDEF_( Missing_Font_Field, 0xB1, \"`FONT' field missing\" ) FT_ERRORDEF_( Missing_Size_Field, 0xB2, \"`SIZE' field missing\" ) FT_ERRORDEF_( Missing_Fontboundingbox_Field, 0xB3, \"`FONTBOUNDINGBOX' field missing\" ) FT_ERRORDEF_( Missing_Chars_Field, 0xB4, \"`CHARS' field missing\" ) FT_ERRORDEF_( Missing_Startchar_Field, 0xB5, \"`STARTCHAR' field missing\" ) FT_ERRORDEF_( Missing_Encoding_Field, 0xB6, \"`ENCODING' field missing\" ) FT_ERRORDEF_( Missing_Bbx_Field, 0xB7, \"`BBX' field missing\" ) FT_ERRORDEF_( Bbx_Too_Big, 0xB8, \"`BBX' too big\" ) FT_ERRORDEF_( Corrupted_Font_Header, 0xB9, \"Font header corrupted or missing fields\" ) FT_ERRORDEF_( Corrupted_Font_Glyphs, 0xBA, \"Font glyphs corrupted or missing fields\" )","title":"Error Code Values"},{"location":"ft2-error_code_values.html#error-code-values","text":"","title":"Error Code Values"},{"location":"ft2-error_code_values.html#synopsis","text":"The list below is taken verbatim from the file fterrdef.h (loaded automatically by including FT_FREETYPE_H ). The first argument of the FT_ERROR_DEF_ macro is the error label; by default, the prefix FT_Err_ gets added so that you get error names like FT_Err_Cannot_Open_Resource . The second argument is the error code, and the last argument an error string, which is not used by FreeType. Within your application you should only use error names and never its numeric values! The latter might (and actually do) change in forthcoming FreeType versions. Macro FT_NOERRORDEF_ defines FT_Err_Ok , which is always zero. See the \u2018Error Enumerations\u2019 subsection how to automatically generate a list of error strings.","title":"Synopsis"},{"location":"ft2-error_code_values.html#ft_err_xxx","text":"/* generic errors */ FT_NOERRORDEF_( Ok, 0x00, \"no error\" ) FT_ERRORDEF_( Cannot_Open_Resource, 0x01, \"cannot open resource\" ) FT_ERRORDEF_( Unknown_File_Format, 0x02, \"unknown file format\" ) FT_ERRORDEF_( Invalid_File_Format, 0x03, \"broken file\" ) FT_ERRORDEF_( Invalid_Version, 0x04, \"invalid FreeType version\" ) FT_ERRORDEF_( Lower_Module_Version, 0x05, \"module version is too low\" ) FT_ERRORDEF_( Invalid_Argument, 0x06, \"invalid argument\" ) FT_ERRORDEF_( Unimplemented_Feature, 0x07, \"unimplemented feature\" ) FT_ERRORDEF_( Invalid_Table, 0x08, \"broken table\" ) FT_ERRORDEF_( Invalid_Offset, 0x09, \"broken offset within table\" ) FT_ERRORDEF_( Array_Too_Large, 0x0A, \"array allocation size too large\" ) FT_ERRORDEF_( Missing_Module, 0x0B, \"missing module\" ) FT_ERRORDEF_( Missing_Property, 0x0C, \"missing property\" ) /* glyph/character errors */ FT_ERRORDEF_( Invalid_Glyph_Index, 0x10, \"invalid glyph index\" ) FT_ERRORDEF_( Invalid_Character_Code, 0x11, \"invalid character code\" ) FT_ERRORDEF_( Invalid_Glyph_Format, 0x12, \"unsupported glyph image format\" ) FT_ERRORDEF_( Cannot_Render_Glyph, 0x13, \"cannot render this glyph format\" ) FT_ERRORDEF_( Invalid_Outline, 0x14, \"invalid outline\" ) FT_ERRORDEF_( Invalid_Composite, 0x15, \"invalid composite glyph\" ) FT_ERRORDEF_( Too_Many_Hints, 0x16, \"too many hints\" ) FT_ERRORDEF_( Invalid_Pixel_Size, 0x17, \"invalid pixel size\" ) /* handle errors */ FT_ERRORDEF_( Invalid_Handle, 0x20, \"invalid object handle\" ) FT_ERRORDEF_( Invalid_Library_Handle, 0x21, \"invalid library handle\" ) FT_ERRORDEF_( Invalid_Driver_Handle, 0x22, \"invalid module handle\" ) FT_ERRORDEF_( Invalid_Face_Handle, 0x23, \"invalid face handle\" ) FT_ERRORDEF_( Invalid_Size_Handle, 0x24, \"invalid size handle\" ) FT_ERRORDEF_( Invalid_Slot_Handle, 0x25, \"invalid glyph slot handle\" ) FT_ERRORDEF_( Invalid_CharMap_Handle, 0x26, \"invalid charmap handle\" ) FT_ERRORDEF_( Invalid_Cache_Handle, 0x27, \"invalid cache manager handle\" ) FT_ERRORDEF_( Invalid_Stream_Handle, 0x28, \"invalid stream handle\" ) /* driver errors */ FT_ERRORDEF_( Too_Many_Drivers, 0x30, \"too many modules\" ) FT_ERRORDEF_( Too_Many_Extensions, 0x31, \"too many extensions\" ) /* memory errors */ FT_ERRORDEF_( Out_Of_Memory, 0x40, \"out of memory\" ) FT_ERRORDEF_( Unlisted_Object, 0x41, \"unlisted object\" ) /* stream errors */ FT_ERRORDEF_( Cannot_Open_Stream, 0x51, \"cannot open stream\" ) FT_ERRORDEF_( Invalid_Stream_Seek, 0x52, \"invalid stream seek\" ) FT_ERRORDEF_( Invalid_Stream_Skip, 0x53, \"invalid stream skip\" ) FT_ERRORDEF_( Invalid_Stream_Read, 0x54, \"invalid stream read\" ) FT_ERRORDEF_( Invalid_Stream_Operation, 0x55, \"invalid stream operation\" ) FT_ERRORDEF_( Invalid_Frame_Operation, 0x56, \"invalid frame operation\" ) FT_ERRORDEF_( Nested_Frame_Access, 0x57, \"nested frame access\" ) FT_ERRORDEF_( Invalid_Frame_Read, 0x58, \"invalid frame read\" ) /* raster errors */ FT_ERRORDEF_( Raster_Uninitialized, 0x60, \"raster uninitialized\" ) FT_ERRORDEF_( Raster_Corrupted, 0x61, \"raster corrupted\" ) FT_ERRORDEF_( Raster_Overflow, 0x62, \"raster overflow\" ) FT_ERRORDEF_( Raster_Negative_Height, 0x63, \"negative height while rastering\" ) /* cache errors */ FT_ERRORDEF_( Too_Many_Caches, 0x70, \"too many registered caches\" ) /* TrueType and SFNT errors */ FT_ERRORDEF_( Invalid_Opcode, 0x80, \"invalid opcode\" ) FT_ERRORDEF_( Too_Few_Arguments, 0x81, \"too few arguments\" ) FT_ERRORDEF_( Stack_Overflow, 0x82, \"stack overflow\" ) FT_ERRORDEF_( Code_Overflow, 0x83, \"code overflow\" ) FT_ERRORDEF_( Bad_Argument, 0x84, \"bad argument\" ) FT_ERRORDEF_( Divide_By_Zero, 0x85, \"division by zero\" ) FT_ERRORDEF_( Invalid_Reference, 0x86, \"invalid reference\" ) FT_ERRORDEF_( Debug_OpCode, 0x87, \"found debug opcode\" ) FT_ERRORDEF_( ENDF_In_Exec_Stream, 0x88, \"found ENDF opcode in execution stream\" ) FT_ERRORDEF_( Nested_DEFS, 0x89, \"nested DEFS\" ) FT_ERRORDEF_( Invalid_CodeRange, 0x8A, \"invalid code range\" ) FT_ERRORDEF_( Execution_Too_Long, 0x8B, \"execution context too long \" ) FT_ERRORDEF_( Too_Many_Function_Defs, 0x8C, \"too many function definitions\" ) FT_ERRORDEF_( Too_Many_Instruction_Defs, 0x8D, \"too many instruction definitions\" ) FT_ERRORDEF_( Table_Missing, 0x8E, \"SFNT font table missing\" ) FT_ERRORDEF_( Horiz_Header_Missing, 0x8F, \"horizontal header (hhea) table missing\" ) FT_ERRORDEF_( Locations_Missing, 0x90, \"locations (loca) table missing\" ) FT_ERRORDEF_( Name_Table_Missing, 0x91, \"name table missing\" ) FT_ERRORDEF_( CMap_Table_Missing, 0x92, \"character map (cmap) table missing\" ) FT_ERRORDEF_( Hmtx_Table_Missing, 0x93, \"horizontal metrics (hmtx) table missing\" ) FT_ERRORDEF_( Post_Table_Missing, 0x94, \"PostScript (post) table missing\" ) FT_ERRORDEF_( Invalid_Horiz_Metrics, 0x95, \"invalid horizontal metrics\" ) FT_ERRORDEF_( Invalid_CharMap_Format, 0x96, \"invalid character map (cmap) format\" ) FT_ERRORDEF_( Invalid_PPem, 0x97, \"invalid ppem value\" ) FT_ERRORDEF_( Invalid_Vert_Metrics, 0x98, \"invalid vertical metrics\" ) FT_ERRORDEF_( Could_Not_Find_Context, 0x99, \"could not find context\" ) FT_ERRORDEF_( Invalid_Post_Table_Format, 0x9A, \"invalid PostScript (post) table format\" ) FT_ERRORDEF_( Invalid_Post_Table, 0x9B, \"invalid PostScript (post) table\" ) FT_ERRORDEF_( DEF_In_Glyf_Bytecode, 0x9C, \"found FDEF or IDEF opcode in glyf bytecode\" ) FT_ERRORDEF_( Missing_Bitmap, 0x9D, \"missing bitmap in strike\" ) /* CFF, CID, and Type 1 errors */ FT_ERRORDEF_( Syntax_Error, 0xA0, \"opcode syntax error\" ) FT_ERRORDEF_( Stack_Underflow, 0xA1, \"argument stack underflow\" ) FT_ERRORDEF_( Ignore, 0xA2, \"ignore\" ) FT_ERRORDEF_( No_Unicode_Glyph_Name, 0xA3, \"no Unicode glyph name found\" ) FT_ERRORDEF_( Glyph_Too_Big, 0xA4, \"glyph too big for hinting\" ) /* BDF errors */ FT_ERRORDEF_( Missing_Startfont_Field, 0xB0, \"`STARTFONT' field missing\" ) FT_ERRORDEF_( Missing_Font_Field, 0xB1, \"`FONT' field missing\" ) FT_ERRORDEF_( Missing_Size_Field, 0xB2, \"`SIZE' field missing\" ) FT_ERRORDEF_( Missing_Fontboundingbox_Field, 0xB3, \"`FONTBOUNDINGBOX' field missing\" ) FT_ERRORDEF_( Missing_Chars_Field, 0xB4, \"`CHARS' field missing\" ) FT_ERRORDEF_( Missing_Startchar_Field, 0xB5, \"`STARTCHAR' field missing\" ) FT_ERRORDEF_( Missing_Encoding_Field, 0xB6, \"`ENCODING' field missing\" ) FT_ERRORDEF_( Missing_Bbx_Field, 0xB7, \"`BBX' field missing\" ) FT_ERRORDEF_( Bbx_Too_Big, 0xB8, \"`BBX' too big\" ) FT_ERRORDEF_( Corrupted_Font_Header, 0xB9, \"Font header corrupted or missing fields\" ) FT_ERRORDEF_( Corrupted_Font_Glyphs, 0xBA, \"Font glyphs corrupted or missing fields\" )","title":"FT_Err_XXX"},{"location":"ft2-error_enumerations.html","text":"FreeType \u00bb Docs \u00bb Error Codes \u00bb Error Enumerations Error Enumerations \u00b6 Synopsis \u00b6 The header file fterrors.h (which is automatically included by freetype.h defines the handling of FreeType's enumeration constants. It can also be used to generate error message strings with a small macro trick explained below. Error Formats The configuration macro FT_CONFIG_OPTION_USE_MODULE_ERRORS can be defined in ftoption.h in order to make the higher byte indicate the module where the error has happened (this is not compatible with standard builds of FreeType 2, however). See the file ftmoderr.h for more details. Error Message Strings Error definitions are set up with special macros that allow client applications to build a table of error message strings. The strings are not included in a normal build of FreeType 2 to save space (most client applications do not use them). To do so, you have to define the following macros before including this file. FT_ERROR_START_LIST This macro is called before anything else to define the start of the error list. It is followed by several FT_ERROR_DEF calls. FT_ERROR_DEF( e, v, s ) This macro is called to define one single error. \u2018e\u2019 is the error code identifier (e.g., Invalid_Argument ), \u2018v\u2019 is the error's numerical value, and \u2018s\u2019 is the corresponding error string. FT_ERROR_END_LIST This macro ends the list. Additionally, you have to undefine FTERRORS_H_ before #including this file. Here is a simple example. #undef FTERRORS_H_ #define FT_ERRORDEF( e, v, s ) { e, s }, #define FT_ERROR_START_LIST { #define FT_ERROR_END_LIST { 0, NULL } }; const struct { int err_code; const char* err_msg; } ft_errors[] = #include <freetype/fterrors.h> An alternative to using an array is a switch statement. #undef FTERRORS_H_ #define FT_ERROR_START_LIST switch ( error_code ) { #define FT_ERRORDEF( e, v, s ) case v: return s; #define FT_ERROR_END_LIST } If you use FT_CONFIG_OPTION_USE_MODULE_ERRORS , error_code should be replaced with FT_ERROR_BASE(error_code) in the last example. FT_Error_String \u00b6 Defined in FT_ERRORS_H (freetype/fterrors.h). FT_EXPORT( const char * ) FT_Error_String ( FT_Error error_code ); Retrieve the description of a valid FreeType error code. input error_code A valid FreeType error code. return A C string or NULL , if any error occurred. note FreeType has to be compiled with FT_CONFIG_OPTION_ERROR_STRINGS or FT_DEBUG_LEVEL_ERROR to get meaningful descriptions. \u2018error_string\u2019 will be NULL otherwise. Module identification will be ignored: strcmp ( FT_Error_String ( FT_Err_Unknown_File_Format ), FT_Error_String ( BDF_Err_Unknown_File_Format ) ) == 0 ;","title":"Error Enumerations"},{"location":"ft2-error_enumerations.html#error-enumerations","text":"","title":"Error Enumerations"},{"location":"ft2-error_enumerations.html#synopsis","text":"The header file fterrors.h (which is automatically included by freetype.h defines the handling of FreeType's enumeration constants. It can also be used to generate error message strings with a small macro trick explained below. Error Formats The configuration macro FT_CONFIG_OPTION_USE_MODULE_ERRORS can be defined in ftoption.h in order to make the higher byte indicate the module where the error has happened (this is not compatible with standard builds of FreeType 2, however). See the file ftmoderr.h for more details. Error Message Strings Error definitions are set up with special macros that allow client applications to build a table of error message strings. The strings are not included in a normal build of FreeType 2 to save space (most client applications do not use them). To do so, you have to define the following macros before including this file. FT_ERROR_START_LIST This macro is called before anything else to define the start of the error list. It is followed by several FT_ERROR_DEF calls. FT_ERROR_DEF( e, v, s ) This macro is called to define one single error. \u2018e\u2019 is the error code identifier (e.g., Invalid_Argument ), \u2018v\u2019 is the error's numerical value, and \u2018s\u2019 is the corresponding error string. FT_ERROR_END_LIST This macro ends the list. Additionally, you have to undefine FTERRORS_H_ before #including this file. Here is a simple example. #undef FTERRORS_H_ #define FT_ERRORDEF( e, v, s ) { e, s }, #define FT_ERROR_START_LIST { #define FT_ERROR_END_LIST { 0, NULL } }; const struct { int err_code; const char* err_msg; } ft_errors[] = #include <freetype/fterrors.h> An alternative to using an array is a switch statement. #undef FTERRORS_H_ #define FT_ERROR_START_LIST switch ( error_code ) { #define FT_ERRORDEF( e, v, s ) case v: return s; #define FT_ERROR_END_LIST } If you use FT_CONFIG_OPTION_USE_MODULE_ERRORS , error_code should be replaced with FT_ERROR_BASE(error_code) in the last example.","title":"Synopsis"},{"location":"ft2-error_enumerations.html#ft_error_string","text":"Defined in FT_ERRORS_H (freetype/fterrors.h). FT_EXPORT( const char * ) FT_Error_String ( FT_Error error_code ); Retrieve the description of a valid FreeType error code.","title":"FT_Error_String"},{"location":"ft2-font_formats.html","text":"FreeType \u00bb Docs \u00bb Format-Specific API \u00bb Font Formats Font Formats \u00b6 Synopsis \u00b6 The single function in this section can be used to get the font format. Note that this information is not needed normally; however, there are special cases (like in PDF devices) where it is important to differentiate, in spite of FreeType's uniform API. FT_Get_Font_Format \u00b6 Defined in FT_FONT_FORMATS_H (freetype/ftfntfmt.h). FT_EXPORT( const char * ) FT_Get_Font_Format ( FT_Face face ); /* deprecated */ FT_EXPORT( const char * ) FT_Get_X11_Font_Format( FT_Face face ); Return a string describing the format of a given face. Possible values are \u2018TrueType\u2019, \u2018Type 1\u2019, \u2018BDF\u2019, \u2018PCF\u2019, \u2018Type 42\u2019, \u2018CID Type 1\u2019, \u2018CFF\u2019, \u2018PFR\u2019, and \u2018Windows FNT\u2019. The return value is suitable to be used as an X11 FONT_PROPERTY. input face Input face handle. return Font format string. NULL in case of error. note A deprecated name for the same function is FT_Get_X11_Font_Format .","title":"Font Formats"},{"location":"ft2-font_formats.html#font-formats","text":"","title":"Font Formats"},{"location":"ft2-font_formats.html#synopsis","text":"The single function in this section can be used to get the font format. Note that this information is not needed normally; however, there are special cases (like in PDF devices) where it is important to differentiate, in spite of FreeType's uniform API.","title":"Synopsis"},{"location":"ft2-font_formats.html#ft_get_font_format","text":"Defined in FT_FONT_FORMATS_H (freetype/ftfntfmt.h). FT_EXPORT( const char * ) FT_Get_Font_Format ( FT_Face face ); /* deprecated */ FT_EXPORT( const char * ) FT_Get_X11_Font_Format( FT_Face face ); Return a string describing the format of a given face. Possible values are \u2018TrueType\u2019, \u2018Type 1\u2019, \u2018BDF\u2019, \u2018PCF\u2019, \u2018Type 42\u2019, \u2018CID Type 1\u2019, \u2018CFF\u2019, \u2018PFR\u2019, and \u2018Windows FNT\u2019. The return value is suitable to be used as an X11 FONT_PROPERTY.","title":"FT_Get_Font_Format"},{"location":"ft2-gasp_table.html","text":"FreeType \u00bb Docs \u00bb Format-Specific API \u00bb Gasp Table Gasp Table \u00b6 Synopsis \u00b6 The function FT_Get_Gasp can be used to query a TrueType or OpenType font for specific entries in its \u2018gasp\u2019 table, if any. This is mainly useful when implementing native TrueType hinting with the bytecode interpreter to duplicate the Windows text rendering results. FT_GASP_XXX \u00b6 Defined in FT_GASP_H (freetype/ftgasp.h). # define FT_GASP_NO_TABLE -1 # define FT_GASP_DO_GRIDFIT 0x01 # define FT_GASP_DO_GRAY 0x02 # define FT_GASP_SYMMETRIC_GRIDFIT 0x04 # define FT_GASP_SYMMETRIC_SMOOTHING 0x08 A list of values and/or bit-flags returned by the FT_Get_Gasp function. values FT_GASP_NO_TABLE This special value means that there is no GASP table in this face. It is up to the client to decide what to do. FT_GASP_DO_GRIDFIT Grid-fitting and hinting should be performed at the specified ppem. This really means TrueType bytecode interpretation. If this bit is not set, no hinting gets applied. FT_GASP_DO_GRAY Anti-aliased rendering should be performed at the specified ppem. If not set, do monochrome rendering. FT_GASP_SYMMETRIC_SMOOTHING If set, smoothing along multiple axes must be used with ClearType. FT_GASP_SYMMETRIC_GRIDFIT Grid-fitting must be used with ClearType's symmetric smoothing. note The bit-flags FT_GASP_DO_GRIDFIT and FT_GASP_DO_GRAY are to be used for standard font rasterization only. Independently of that, FT_GASP_SYMMETRIC_SMOOTHING and FT_GASP_SYMMETRIC_GRIDFIT are to be used if ClearType is enabled (and FT_GASP_DO_GRIDFIT and FT_GASP_DO_GRAY are consequently ignored). \u2018ClearType\u2019 is Microsoft's implementation of LCD rendering, partly protected by patents. since 2.3.0 FT_Get_Gasp \u00b6 Defined in FT_GASP_H (freetype/ftgasp.h). FT_EXPORT( FT_Int ) FT_Get_Gasp ( FT_Face face, FT_UInt ppem ); For a TrueType or OpenType font file, return the rasterizer behaviour flags from the font's \u2018gasp\u2019 table corresponding to a given character pixel size. input face The source face handle. ppem The vertical character pixel size. return Bit flags (see FT_GASP_XXX ), or FT_GASP_NO_TABLE if there is no \u2018gasp\u2019 table in the face. note If you want to use the MM functionality of OpenType variation fonts (i.e., using FT_Set_Var_Design_Coordinates and friends), call this function after setting an instance since the return values can change. since 2.3.0","title":"Gasp Table"},{"location":"ft2-gasp_table.html#gasp-table","text":"","title":"Gasp Table"},{"location":"ft2-gasp_table.html#synopsis","text":"The function FT_Get_Gasp can be used to query a TrueType or OpenType font for specific entries in its \u2018gasp\u2019 table, if any. This is mainly useful when implementing native TrueType hinting with the bytecode interpreter to duplicate the Windows text rendering results.","title":"Synopsis"},{"location":"ft2-gasp_table.html#ft_gasp_xxx","text":"Defined in FT_GASP_H (freetype/ftgasp.h). # define FT_GASP_NO_TABLE -1 # define FT_GASP_DO_GRIDFIT 0x01 # define FT_GASP_DO_GRAY 0x02 # define FT_GASP_SYMMETRIC_GRIDFIT 0x04 # define FT_GASP_SYMMETRIC_SMOOTHING 0x08 A list of values and/or bit-flags returned by the FT_Get_Gasp function.","title":"FT_GASP_XXX"},{"location":"ft2-gasp_table.html#ft_get_gasp","text":"Defined in FT_GASP_H (freetype/ftgasp.h). FT_EXPORT( FT_Int ) FT_Get_Gasp ( FT_Face face, FT_UInt ppem ); For a TrueType or OpenType font file, return the rasterizer behaviour flags from the font's \u2018gasp\u2019 table corresponding to a given character pixel size.","title":"FT_Get_Gasp"},{"location":"ft2-glyph_management.html","text":"FreeType \u00bb Docs \u00bb Core API \u00bb Glyph Management Glyph Management \u00b6 Synopsis \u00b6 This section contains definitions used to manage glyph data through generic FT_Glyph objects. Each of them can contain a bitmap, a vector outline, or even images in other formats. These objects are detached from FT_Face , contrary to FT_GlyphSlot . FT_Glyph \u00b6 Defined in FT_GLYPH_H (freetype/ftglyph.h). typedef struct FT_GlyphRec_* FT_Glyph ; Handle to an object used to model generic glyph images. It is a pointer to the FT_GlyphRec structure and can contain a glyph bitmap or pointer. note Glyph objects are not owned by the library. You must thus release them manually (through FT_Done_Glyph ) before calling FT_Done_FreeType . FT_GlyphRec \u00b6 Defined in FT_GLYPH_H (freetype/ftglyph.h). typedef struct FT_GlyphRec_ { FT_Library library; const FT_Glyph_Class* clazz; FT_Glyph_Format format; FT_Vector advance; } FT_GlyphRec ; The root glyph structure contains a given glyph image plus its advance width in 16.16 fixed-point format. fields library A handle to the FreeType library object. clazz A pointer to the glyph's class. Private. format The format of the glyph's image. advance A 16.16 vector that gives the glyph's advance width. FT_BitmapGlyph \u00b6 Defined in FT_GLYPH_H (freetype/ftglyph.h). typedef struct FT_BitmapGlyphRec_* FT_BitmapGlyph ; A handle to an object used to model a bitmap glyph image. This is a sub-class of FT_Glyph , and a pointer to FT_BitmapGlyphRec . FT_BitmapGlyphRec \u00b6 Defined in FT_GLYPH_H (freetype/ftglyph.h). typedef struct FT_BitmapGlyphRec_ { FT_GlyphRec root; FT_Int left; FT_Int top; FT_Bitmap bitmap; } FT_BitmapGlyphRec ; A structure used for bitmap glyph images. This really is a \u2018sub-class\u2019 of FT_GlyphRec . fields root The root FT_Glyph fields. left The left-side bearing, i.e., the horizontal distance from the current pen position to the left border of the glyph bitmap. top The top-side bearing, i.e., the vertical distance from the current pen position to the top border of the glyph bitmap. This distance is positive for upwards y! bitmap A descriptor for the bitmap. note You can typecast an FT_Glyph to FT_BitmapGlyph if you have glyph->format == FT_GLYPH_FORMAT_BITMAP . This lets you access the bitmap's contents easily. The corresponding pixel buffer is always owned by FT_BitmapGlyph and is thus created and destroyed with it. FT_OutlineGlyph \u00b6 Defined in FT_GLYPH_H (freetype/ftglyph.h). typedef struct FT_OutlineGlyphRec_* FT_OutlineGlyph ; A handle to an object used to model an outline glyph image. This is a sub-class of FT_Glyph , and a pointer to FT_OutlineGlyphRec . FT_OutlineGlyphRec \u00b6 Defined in FT_GLYPH_H (freetype/ftglyph.h). typedef struct FT_OutlineGlyphRec_ { FT_GlyphRec root; FT_Outline outline; } FT_OutlineGlyphRec ; A structure used for outline (vectorial) glyph images. This really is a \u2018sub-class\u2019 of FT_GlyphRec . fields root The root FT_Glyph fields. outline A descriptor for the outline. note You can typecast an FT_Glyph to FT_OutlineGlyph if you have glyph->format == FT_GLYPH_FORMAT_OUTLINE . This lets you access the outline's content easily. As the outline is extracted from a glyph slot, its coordinates are expressed normally in 26.6 pixels, unless the flag FT_LOAD_NO_SCALE was used in FT_Load_Glyph or FT_Load_Char . The outline's tables are always owned by the object and are destroyed with it. FT_New_Glyph \u00b6 Defined in FT_GLYPH_H (freetype/ftglyph.h). FT_EXPORT( FT_Error ) FT_New_Glyph ( FT_Library library, FT_Glyph_Format format, FT_Glyph *aglyph ); A function used to create a new empty glyph image. Note that the created FT_Glyph object must be released with FT_Done_Glyph . input library A handle to the FreeType library object. format The format of the glyph's image. output aglyph A handle to the glyph object. return FreeType error code. 0 means success. since 2.10 FT_Get_Glyph \u00b6 Defined in FT_GLYPH_H (freetype/ftglyph.h). FT_EXPORT( FT_Error ) FT_Get_Glyph ( FT_GlyphSlot slot, FT_Glyph *aglyph ); A function used to extract a glyph image from a slot. Note that the created FT_Glyph object must be released with FT_Done_Glyph . input slot A handle to the source glyph slot. output aglyph A handle to the glyph object. return FreeType error code. 0 means success. note Because *aglyph->advance.x and *aglyph->advance.y are 16.16 fixed-point numbers, slot->advance.x and slot->advance.y (which are in 26.6 fixed-point format) must be in the range ]-32768;32768[. FT_Glyph_Copy \u00b6 Defined in FT_GLYPH_H (freetype/ftglyph.h). FT_EXPORT( FT_Error ) FT_Glyph_Copy ( FT_Glyph source, FT_Glyph *target ); A function used to copy a glyph image. Note that the created FT_Glyph object must be released with FT_Done_Glyph . input source A handle to the source glyph object. output target A handle to the target glyph object. 0 in case of error. return FreeType error code. 0 means success. FT_Glyph_Transform \u00b6 Defined in FT_GLYPH_H (freetype/ftglyph.h). FT_EXPORT( FT_Error ) FT_Glyph_Transform ( FT_Glyph glyph, const FT_Matrix * matrix, const FT_Vector * delta ); Transform a glyph image if its format is scalable. inout glyph A handle to the target glyph object. input matrix A pointer to a 2x2 matrix to apply. delta A pointer to a 2d vector to apply. Coordinates are expressed in 1/64th of a pixel. return FreeType error code (if not 0, the glyph format is not scalable). note The 2x2 transformation matrix is also applied to the glyph's advance vector. FT_Glyph_BBox_Mode \u00b6 Defined in FT_GLYPH_H (freetype/ftglyph.h). typedef enum FT_Glyph_BBox_Mode_ { FT_GLYPH_BBOX_UNSCALED = 0, FT_GLYPH_BBOX_SUBPIXELS = 0, FT_GLYPH_BBOX_GRIDFIT = 1, FT_GLYPH_BBOX_TRUNCATE = 2, FT_GLYPH_BBOX_PIXELS = 3 } FT_Glyph_BBox_Mode ; /* these constants are deprecated; use the corresponding */ /* ` FT_Glyph_BBox_Mode ` values instead */ # define ft_glyph_bbox_unscaled FT_GLYPH_BBOX_UNSCALED # define ft_glyph_bbox_subpixels FT_GLYPH_BBOX_SUBPIXELS # define ft_glyph_bbox_gridfit FT_GLYPH_BBOX_GRIDFIT # define ft_glyph_bbox_truncate FT_GLYPH_BBOX_TRUNCATE # define ft_glyph_bbox_pixels FT_GLYPH_BBOX_PIXELS The mode how the values of FT_Glyph_Get_CBox are returned. values FT_GLYPH_BBOX_UNSCALED Return unscaled font units. FT_GLYPH_BBOX_SUBPIXELS Return unfitted 26.6 coordinates. FT_GLYPH_BBOX_GRIDFIT Return grid-fitted 26.6 coordinates. FT_GLYPH_BBOX_TRUNCATE Return coordinates in integer pixels. FT_GLYPH_BBOX_PIXELS Return grid-fitted pixel coordinates. FT_Glyph_Get_CBox \u00b6 Defined in FT_GLYPH_H (freetype/ftglyph.h). FT_EXPORT( void ) FT_Glyph_Get_CBox ( FT_Glyph glyph, FT_UInt bbox_mode, FT_BBox *acbox ); Return a glyph's \u2018control box\u2019. The control box encloses all the outline's points, including Bezier control points. Though it coincides with the exact bounding box for most glyphs, it can be slightly larger in some situations (like when rotating an outline that contains Bezier outside arcs). Computing the control box is very fast, while getting the bounding box can take much more time as it needs to walk over all segments and arcs in the outline. To get the latter, you can use the \u2018ftbbox\u2019 component, which is dedicated to this single task. input glyph A handle to the source glyph object. mode The mode that indicates how to interpret the returned bounding box values. output acbox The glyph coordinate bounding box. Coordinates are expressed in 1/64th of pixels if it is grid-fitted. note Coordinates are relative to the glyph origin, using the y upwards convention. If the glyph has been loaded with FT_LOAD_NO_SCALE , bbox_mode must be set to FT_GLYPH_BBOX_UNSCALED to get unscaled font units in 26.6 pixel format. The value FT_GLYPH_BBOX_SUBPIXELS is another name for this constant. If the font is tricky and the glyph has been loaded with FT_LOAD_NO_SCALE , the resulting CBox is meaningless. To get reasonable values for the CBox it is necessary to load the glyph at a large ppem value (so that the hinting instructions can properly shift and scale the subglyphs), then extracting the CBox, which can be eventually converted back to font units. Note that the maximum coordinates are exclusive, which means that one can compute the width and height of the glyph image (be it in integer or 26.6 pixels) as: width = bbox.xMax - bbox.xMin; height = bbox.yMax - bbox.yMin; Note also that for 26.6 coordinates, if bbox_mode is set to FT_GLYPH_BBOX_GRIDFIT , the coordinates will also be grid-fitted, which corresponds to: bbox.xMin = FLOOR(bbox.xMin); bbox.yMin = FLOOR(bbox.yMin); bbox.xMax = CEILING(bbox.xMax); bbox.yMax = CEILING(bbox.yMax); To get the bbox in pixel coordinates, set bbox_mode to FT_GLYPH_BBOX_TRUNCATE . To get the bbox in grid-fitted pixel coordinates, set bbox_mode to FT_GLYPH_BBOX_PIXELS . FT_Glyph_To_Bitmap \u00b6 Defined in FT_GLYPH_H (freetype/ftglyph.h). FT_EXPORT( FT_Error ) FT_Glyph_To_Bitmap ( FT_Glyph * the_glyph, FT_Render_Mode render_mode, const FT_Vector * origin, FT_Bool destroy ); Convert a given glyph object to a bitmap glyph object. inout the_glyph A pointer to a handle to the target glyph. input render_mode An enumeration that describes how the data is rendered. origin A pointer to a vector used to translate the glyph image before rendering. Can be 0 (if no translation). The origin is expressed in 26.6 pixels. destroy A boolean that indicates that the original glyph image should be destroyed by this function. It is never destroyed in case of error. return FreeType error code. 0 means success. note This function does nothing if the glyph format isn't scalable. The glyph image is translated with the origin vector before rendering. The first parameter is a pointer to an FT_Glyph handle, that will be replaced by this function (with newly allocated data). Typically, you would use (omitting error handling): FT_Glyph glyph; FT_BitmapGlyph glyph_bitmap; // load glyph error = FT_Load_Char( face, glyph_index, FT_LOAD_DEFAULT ); // extract glyph image error = FT_Get_Glyph( face->glyph, &glyph ); // convert to a bitmap (default render mode + destroying old) if ( glyph->format != FT_GLYPH_FORMAT_BITMAP ) { error = FT_Glyph_To_Bitmap( &glyph, FT_RENDER_MODE_NORMAL, 0, 1 ); if ( error ) // `glyph' unchanged ... } // access bitmap content by typecasting glyph_bitmap = (FT_BitmapGlyph)glyph; // do funny stuff with it, like blitting/drawing ... // discard glyph image (bitmap or not) FT_Done_Glyph( glyph ); Here is another example, again without error handling: FT_Glyph glyphs[MAX_GLYPHS] ... for ( idx = 0; i < MAX_GLYPHS; i++ ) error = FT_Load_Glyph( face, idx, FT_LOAD_DEFAULT ) || FT_Get_Glyph ( face->glyph, &glyphs[idx] ); ... for ( idx = 0; i < MAX_GLYPHS; i++ ) { FT_Glyph bitmap = glyphs[idx]; ... // after this call, `bitmap' no longer points into // the `glyphs' array (and the old value isn't destroyed) FT_Glyph_To_Bitmap( &bitmap, FT_RENDER_MODE_MONO, 0, 0 ); ... FT_Done_Glyph( bitmap ); } ... for ( idx = 0; i < MAX_GLYPHS; i++ ) FT_Done_Glyph( glyphs[idx] ); FT_Done_Glyph \u00b6 Defined in FT_GLYPH_H (freetype/ftglyph.h). FT_EXPORT( void ) FT_Done_Glyph ( FT_Glyph glyph ); Destroy a given glyph. input glyph A handle to the target glyph object.","title":"Glyph Management"},{"location":"ft2-glyph_management.html#glyph-management","text":"","title":"Glyph Management"},{"location":"ft2-glyph_management.html#synopsis","text":"This section contains definitions used to manage glyph data through generic FT_Glyph objects. Each of them can contain a bitmap, a vector outline, or even images in other formats. These objects are detached from FT_Face , contrary to FT_GlyphSlot .","title":"Synopsis"},{"location":"ft2-glyph_management.html#ft_glyph","text":"Defined in FT_GLYPH_H (freetype/ftglyph.h). typedef struct FT_GlyphRec_* FT_Glyph ; Handle to an object used to model generic glyph images. It is a pointer to the FT_GlyphRec structure and can contain a glyph bitmap or pointer.","title":"FT_Glyph"},{"location":"ft2-glyph_management.html#ft_glyphrec","text":"Defined in FT_GLYPH_H (freetype/ftglyph.h). typedef struct FT_GlyphRec_ { FT_Library library; const FT_Glyph_Class* clazz; FT_Glyph_Format format; FT_Vector advance; } FT_GlyphRec ; The root glyph structure contains a given glyph image plus its advance width in 16.16 fixed-point format.","title":"FT_GlyphRec"},{"location":"ft2-glyph_management.html#ft_bitmapglyph","text":"Defined in FT_GLYPH_H (freetype/ftglyph.h). typedef struct FT_BitmapGlyphRec_* FT_BitmapGlyph ; A handle to an object used to model a bitmap glyph image. This is a sub-class of FT_Glyph , and a pointer to FT_BitmapGlyphRec .","title":"FT_BitmapGlyph"},{"location":"ft2-glyph_management.html#ft_bitmapglyphrec","text":"Defined in FT_GLYPH_H (freetype/ftglyph.h). typedef struct FT_BitmapGlyphRec_ { FT_GlyphRec root; FT_Int left; FT_Int top; FT_Bitmap bitmap; } FT_BitmapGlyphRec ; A structure used for bitmap glyph images. This really is a \u2018sub-class\u2019 of FT_GlyphRec .","title":"FT_BitmapGlyphRec"},{"location":"ft2-glyph_management.html#ft_outlineglyph","text":"Defined in FT_GLYPH_H (freetype/ftglyph.h). typedef struct FT_OutlineGlyphRec_* FT_OutlineGlyph ; A handle to an object used to model an outline glyph image. This is a sub-class of FT_Glyph , and a pointer to FT_OutlineGlyphRec .","title":"FT_OutlineGlyph"},{"location":"ft2-glyph_management.html#ft_outlineglyphrec","text":"Defined in FT_GLYPH_H (freetype/ftglyph.h). typedef struct FT_OutlineGlyphRec_ { FT_GlyphRec root; FT_Outline outline; } FT_OutlineGlyphRec ; A structure used for outline (vectorial) glyph images. This really is a \u2018sub-class\u2019 of FT_GlyphRec .","title":"FT_OutlineGlyphRec"},{"location":"ft2-glyph_management.html#ft_new_glyph","text":"Defined in FT_GLYPH_H (freetype/ftglyph.h). FT_EXPORT( FT_Error ) FT_New_Glyph ( FT_Library library, FT_Glyph_Format format, FT_Glyph *aglyph ); A function used to create a new empty glyph image. Note that the created FT_Glyph object must be released with FT_Done_Glyph .","title":"FT_New_Glyph"},{"location":"ft2-glyph_management.html#ft_get_glyph","text":"Defined in FT_GLYPH_H (freetype/ftglyph.h). FT_EXPORT( FT_Error ) FT_Get_Glyph ( FT_GlyphSlot slot, FT_Glyph *aglyph ); A function used to extract a glyph image from a slot. Note that the created FT_Glyph object must be released with FT_Done_Glyph .","title":"FT_Get_Glyph"},{"location":"ft2-glyph_management.html#ft_glyph_copy","text":"Defined in FT_GLYPH_H (freetype/ftglyph.h). FT_EXPORT( FT_Error ) FT_Glyph_Copy ( FT_Glyph source, FT_Glyph *target ); A function used to copy a glyph image. Note that the created FT_Glyph object must be released with FT_Done_Glyph .","title":"FT_Glyph_Copy"},{"location":"ft2-glyph_management.html#ft_glyph_transform","text":"Defined in FT_GLYPH_H (freetype/ftglyph.h). FT_EXPORT( FT_Error ) FT_Glyph_Transform ( FT_Glyph glyph, const FT_Matrix * matrix, const FT_Vector * delta ); Transform a glyph image if its format is scalable.","title":"FT_Glyph_Transform"},{"location":"ft2-glyph_management.html#ft_glyph_bbox_mode","text":"Defined in FT_GLYPH_H (freetype/ftglyph.h). typedef enum FT_Glyph_BBox_Mode_ { FT_GLYPH_BBOX_UNSCALED = 0, FT_GLYPH_BBOX_SUBPIXELS = 0, FT_GLYPH_BBOX_GRIDFIT = 1, FT_GLYPH_BBOX_TRUNCATE = 2, FT_GLYPH_BBOX_PIXELS = 3 } FT_Glyph_BBox_Mode ; /* these constants are deprecated; use the corresponding */ /* ` FT_Glyph_BBox_Mode ` values instead */ # define ft_glyph_bbox_unscaled FT_GLYPH_BBOX_UNSCALED # define ft_glyph_bbox_subpixels FT_GLYPH_BBOX_SUBPIXELS # define ft_glyph_bbox_gridfit FT_GLYPH_BBOX_GRIDFIT # define ft_glyph_bbox_truncate FT_GLYPH_BBOX_TRUNCATE # define ft_glyph_bbox_pixels FT_GLYPH_BBOX_PIXELS The mode how the values of FT_Glyph_Get_CBox are returned.","title":"FT_Glyph_BBox_Mode"},{"location":"ft2-glyph_management.html#ft_glyph_get_cbox","text":"Defined in FT_GLYPH_H (freetype/ftglyph.h). FT_EXPORT( void ) FT_Glyph_Get_CBox ( FT_Glyph glyph, FT_UInt bbox_mode, FT_BBox *acbox ); Return a glyph's \u2018control box\u2019. The control box encloses all the outline's points, including Bezier control points. Though it coincides with the exact bounding box for most glyphs, it can be slightly larger in some situations (like when rotating an outline that contains Bezier outside arcs). Computing the control box is very fast, while getting the bounding box can take much more time as it needs to walk over all segments and arcs in the outline. To get the latter, you can use the \u2018ftbbox\u2019 component, which is dedicated to this single task.","title":"FT_Glyph_Get_CBox"},{"location":"ft2-glyph_management.html#ft_glyph_to_bitmap","text":"Defined in FT_GLYPH_H (freetype/ftglyph.h). FT_EXPORT( FT_Error ) FT_Glyph_To_Bitmap ( FT_Glyph * the_glyph, FT_Render_Mode render_mode, const FT_Vector * origin, FT_Bool destroy ); Convert a given glyph object to a bitmap glyph object.","title":"FT_Glyph_To_Bitmap"},{"location":"ft2-glyph_management.html#ft_done_glyph","text":"Defined in FT_GLYPH_H (freetype/ftglyph.h). FT_EXPORT( void ) FT_Done_Glyph ( FT_Glyph glyph ); Destroy a given glyph.","title":"FT_Done_Glyph"},{"location":"ft2-glyph_stroker.html","text":"FreeType \u00bb Docs \u00bb Support API \u00bb Glyph Stroker Glyph Stroker \u00b6 Synopsis \u00b6 This component generates stroked outlines of a given vectorial glyph. It also allows you to retrieve the \u2018outside\u2019 and/or the \u2018inside\u2019 borders of the stroke. This can be useful to generate \u2018bordered\u2019 glyph, i.e., glyphs displayed with a colored (and anti-aliased) border around their shape. FT_Stroker \u00b6 Defined in FT_STROKER_H (freetype/ftstroke.h). typedef struct FT_StrokerRec_* FT_Stroker ; Opaque handle to a path stroker object. FT_Stroker_LineJoin \u00b6 Defined in FT_STROKER_H (freetype/ftstroke.h). typedef enum FT_Stroker_LineJoin_ { FT_STROKER_LINEJOIN_ROUND = 0, FT_STROKER_LINEJOIN_BEVEL = 1, FT_STROKER_LINEJOIN_MITER_VARIABLE = 2, FT_STROKER_LINEJOIN_MITER = FT_STROKER_LINEJOIN_MITER_VARIABLE , FT_STROKER_LINEJOIN_MITER_FIXED = 3 } FT_Stroker_LineJoin ; These values determine how two joining lines are rendered in a stroker. values FT_STROKER_LINEJOIN_ROUND Used to render rounded line joins. Circular arcs are used to join two lines smoothly. FT_STROKER_LINEJOIN_BEVEL Used to render beveled line joins. The outer corner of the joined lines is filled by enclosing the triangular region of the corner with a straight line between the outer corners of each stroke. FT_STROKER_LINEJOIN_MITER_FIXED Used to render mitered line joins, with fixed bevels if the miter limit is exceeded. The outer edges of the strokes for the two segments are extended until they meet at an angle. A bevel join (see above) is used if the segments meet at too sharp an angle and the outer edges meet beyond a distance corresponding to the meter limit. This prevents long spikes being created. FT_STROKER_LINEJOIN_MITER_FIXED generates a miter line join as used in PostScript and PDF. FT_STROKER_LINEJOIN_MITER_VARIABLE FT_STROKER_LINEJOIN_MITER Used to render mitered line joins, with variable bevels if the miter limit is exceeded. The intersection of the strokes is clipped perpendicularly to the bisector, at a distance corresponding to the miter limit. This prevents long spikes being created. FT_STROKER_LINEJOIN_MITER_VARIABLE generates a mitered line join as used in XPS. FT_STROKER_LINEJOIN_MITER is an alias for FT_STROKER_LINEJOIN_MITER_VARIABLE , retained for backward compatibility. FT_Stroker_LineCap \u00b6 Defined in FT_STROKER_H (freetype/ftstroke.h). typedef enum FT_Stroker_LineCap_ { FT_STROKER_LINECAP_BUTT = 0, FT_STROKER_LINECAP_ROUND , FT_STROKER_LINECAP_SQUARE } FT_Stroker_LineCap ; These values determine how the end of opened sub-paths are rendered in a stroke. values FT_STROKER_LINECAP_BUTT The end of lines is rendered as a full stop on the last point itself. FT_STROKER_LINECAP_ROUND The end of lines is rendered as a half-circle around the last point. FT_STROKER_LINECAP_SQUARE The end of lines is rendered as a square around the last point. FT_StrokerBorder \u00b6 Defined in FT_STROKER_H (freetype/ftstroke.h). typedef enum FT_StrokerBorder_ { FT_STROKER_BORDER_LEFT = 0, FT_STROKER_BORDER_RIGHT } FT_StrokerBorder ; These values are used to select a given stroke border in FT_Stroker_GetBorderCounts and FT_Stroker_ExportBorder . values FT_STROKER_BORDER_LEFT Select the left border, relative to the drawing direction. FT_STROKER_BORDER_RIGHT Select the right border, relative to the drawing direction. note Applications are generally interested in the \u2018inside\u2019 and \u2018outside\u2019 borders. However, there is no direct mapping between these and the \u2018left\u2019 and \u2018right\u2019 ones, since this really depends on the glyph's drawing orientation, which varies between font formats. You can however use FT_Outline_GetInsideBorder and FT_Outline_GetOutsideBorder to get these. FT_Outline_GetInsideBorder \u00b6 Defined in FT_STROKER_H (freetype/ftstroke.h). FT_EXPORT( FT_StrokerBorder ) FT_Outline_GetInsideBorder ( FT_Outline * outline ); Retrieve the FT_StrokerBorder value corresponding to the \u2018inside\u2019 borders of a given outline. input outline The source outline handle. return The border index. FT_STROKER_BORDER_RIGHT for empty or invalid outlines. FT_Outline_GetOutsideBorder \u00b6 Defined in FT_STROKER_H (freetype/ftstroke.h). FT_EXPORT( FT_StrokerBorder ) FT_Outline_GetOutsideBorder ( FT_Outline * outline ); Retrieve the FT_StrokerBorder value corresponding to the \u2018outside\u2019 borders of a given outline. input outline The source outline handle. return The border index. FT_STROKER_BORDER_LEFT for empty or invalid outlines. FT_Glyph_Stroke \u00b6 Defined in FT_STROKER_H (freetype/ftstroke.h). FT_EXPORT( FT_Error ) FT_Glyph_Stroke ( FT_Glyph *pglyph, FT_Stroker stroker, FT_Bool destroy ); Stroke a given outline glyph object with a given stroker. inout pglyph Source glyph handle on input, new glyph handle on output. input stroker A stroker handle. destroy A Boolean. If 1, the source glyph object is destroyed on success. return FreeType error code. 0 means success. note The source glyph is untouched in case of error. Adding stroke may yield a significantly wider and taller glyph depending on how large of a radius was used to stroke the glyph. You may need to manually adjust horizontal and vertical advance amounts to account for this added size. FT_Glyph_StrokeBorder \u00b6 Defined in FT_STROKER_H (freetype/ftstroke.h). FT_EXPORT( FT_Error ) FT_Glyph_StrokeBorder ( FT_Glyph *pglyph, FT_Stroker stroker, FT_Bool inside, FT_Bool destroy ); Stroke a given outline glyph object with a given stroker, but only return either its inside or outside border. inout pglyph Source glyph handle on input, new glyph handle on output. input stroker A stroker handle. inside A Boolean. If 1, return the inside border, otherwise the outside border. destroy A Boolean. If 1, the source glyph object is destroyed on success. return FreeType error code. 0 means success. note The source glyph is untouched in case of error. Adding stroke may yield a significantly wider and taller glyph depending on how large of a radius was used to stroke the glyph. You may need to manually adjust horizontal and vertical advance amounts to account for this added size. FT_Stroker_New \u00b6 Defined in FT_STROKER_H (freetype/ftstroke.h). FT_EXPORT( FT_Error ) FT_Stroker_New ( FT_Library library, FT_Stroker *astroker ); Create a new stroker object. input library FreeType library handle. output astroker A new stroker object handle. NULL in case of error. return FreeType error code. 0 means success. FT_Stroker_Set \u00b6 Defined in FT_STROKER_H (freetype/ftstroke.h). FT_EXPORT( void ) FT_Stroker_Set ( FT_Stroker stroker, FT_Fixed radius, FT_Stroker_LineCap line_cap, FT_Stroker_LineJoin line_join, FT_Fixed miter_limit ); Reset a stroker object's attributes. input stroker The target stroker handle. radius The border radius. line_cap The line cap style. line_join The line join style. miter_limit The maximum reciprocal sine of half-angle at the miter join, expressed as 16.16 fixed point value. note The radius is expressed in the same units as the outline coordinates. The miter_limit multiplied by the radius gives the maximum size of a miter spike, at which it is clipped for FT_STROKER_LINEJOIN_MITER_VARIABLE or replaced with a bevel join for FT_STROKER_LINEJOIN_MITER_FIXED . This function calls FT_Stroker_Rewind automatically. FT_Stroker_Rewind \u00b6 Defined in FT_STROKER_H (freetype/ftstroke.h). FT_EXPORT( void ) FT_Stroker_Rewind ( FT_Stroker stroker ); Reset a stroker object without changing its attributes. You should call this function before beginning a new series of calls to FT_Stroker_BeginSubPath or FT_Stroker_EndSubPath . input stroker The target stroker handle. FT_Stroker_ParseOutline \u00b6 Defined in FT_STROKER_H (freetype/ftstroke.h). FT_EXPORT( FT_Error ) FT_Stroker_ParseOutline ( FT_Stroker stroker, FT_Outline * outline, FT_Bool opened ); A convenience function used to parse a whole outline with the stroker. The resulting outline(s) can be retrieved later by functions like FT_Stroker_GetCounts and FT_Stroker_Export . input stroker The target stroker handle. outline The source outline. opened A boolean. If 1, the outline is treated as an open path instead of a closed one. return FreeType error code. 0 means success. note If opened is 0 (the default), the outline is treated as a closed path, and the stroker generates two distinct \u2018border\u2019 outlines. If opened is 1, the outline is processed as an open path, and the stroker generates a single \u2018stroke\u2019 outline. This function calls FT_Stroker_Rewind automatically. FT_Stroker_Done \u00b6 Defined in FT_STROKER_H (freetype/ftstroke.h). FT_EXPORT( void ) FT_Stroker_Done ( FT_Stroker stroker ); Destroy a stroker object. input stroker A stroker handle. Can be NULL . FT_Stroker_BeginSubPath \u00b6 Defined in FT_STROKER_H (freetype/ftstroke.h). FT_EXPORT( FT_Error ) FT_Stroker_BeginSubPath ( FT_Stroker stroker, FT_Vector * to, FT_Bool open ); Start a new sub-path in the stroker. input stroker The target stroker handle. to A pointer to the start vector. open A boolean. If 1, the sub-path is treated as an open one. return FreeType error code. 0 means success. note This function is useful when you need to stroke a path that is not stored as an FT_Outline object. FT_Stroker_EndSubPath \u00b6 Defined in FT_STROKER_H (freetype/ftstroke.h). FT_EXPORT( FT_Error ) FT_Stroker_EndSubPath ( FT_Stroker stroker ); Close the current sub-path in the stroker. input stroker The target stroker handle. return FreeType error code. 0 means success. note You should call this function after FT_Stroker_BeginSubPath . If the subpath was not \u2018opened\u2019, this function \u2018draws\u2019 a single line segment to the start position when needed. FT_Stroker_LineTo \u00b6 Defined in FT_STROKER_H (freetype/ftstroke.h). FT_EXPORT( FT_Error ) FT_Stroker_LineTo ( FT_Stroker stroker, FT_Vector * to ); \u2018Draw\u2019 a single line segment in the stroker's current sub-path, from the last position. input stroker The target stroker handle. to A pointer to the destination point. return FreeType error code. 0 means success. note You should call this function between FT_Stroker_BeginSubPath and FT_Stroker_EndSubPath . FT_Stroker_ConicTo \u00b6 Defined in FT_STROKER_H (freetype/ftstroke.h). FT_EXPORT( FT_Error ) FT_Stroker_ConicTo ( FT_Stroker stroker, FT_Vector * control, FT_Vector * to ); \u2018Draw\u2019 a single quadratic Bezier in the stroker's current sub-path, from the last position. input stroker The target stroker handle. control A pointer to a Bezier control point. to A pointer to the destination point. return FreeType error code. 0 means success. note You should call this function between FT_Stroker_BeginSubPath and FT_Stroker_EndSubPath . FT_Stroker_CubicTo \u00b6 Defined in FT_STROKER_H (freetype/ftstroke.h). FT_EXPORT( FT_Error ) FT_Stroker_CubicTo ( FT_Stroker stroker, FT_Vector * control1, FT_Vector * control2, FT_Vector * to ); \u2018Draw\u2019 a single cubic Bezier in the stroker's current sub-path, from the last position. input stroker The target stroker handle. control1 A pointer to the first Bezier control point. control2 A pointer to second Bezier control point. to A pointer to the destination point. return FreeType error code. 0 means success. note You should call this function between FT_Stroker_BeginSubPath and FT_Stroker_EndSubPath . FT_Stroker_GetBorderCounts \u00b6 Defined in FT_STROKER_H (freetype/ftstroke.h). FT_EXPORT( FT_Error ) FT_Stroker_GetBorderCounts ( FT_Stroker stroker, FT_StrokerBorder border, FT_UInt *anum_points, FT_UInt *anum_contours ); Call this function once you have finished parsing your paths with the stroker. It returns the number of points and contours necessary to export one of the \u2018border\u2019 or \u2018stroke\u2019 outlines generated by the stroker. input stroker The target stroker handle. border The border index. output anum_points The number of points. anum_contours The number of contours. return FreeType error code. 0 means success. note When an outline, or a sub-path, is \u2018closed\u2019, the stroker generates two independent \u2018border\u2019 outlines, named \u2018left\u2019 and \u2018right\u2019. When the outline, or a sub-path, is \u2018opened\u2019, the stroker merges the \u2018border\u2019 outlines with caps. The \u2018left\u2019 border receives all points, while the \u2018right\u2019 border becomes empty. Use the function FT_Stroker_GetCounts instead if you want to retrieve the counts associated to both borders. FT_Stroker_ExportBorder \u00b6 Defined in FT_STROKER_H (freetype/ftstroke.h). FT_EXPORT( void ) FT_Stroker_ExportBorder ( FT_Stroker stroker, FT_StrokerBorder border, FT_Outline * outline ); Call this function after FT_Stroker_GetBorderCounts to export the corresponding border to your own FT_Outline structure. Note that this function appends the border points and contours to your outline, but does not try to resize its arrays. input stroker The target stroker handle. border The border index. outline The target outline handle. note Always call this function after FT_Stroker_GetBorderCounts to get sure that there is enough room in your FT_Outline object to receive all new data. When an outline, or a sub-path, is \u2018closed\u2019, the stroker generates two independent \u2018border\u2019 outlines, named \u2018left\u2019 and \u2018right\u2019. When the outline, or a sub-path, is \u2018opened\u2019, the stroker merges the \u2018border\u2019 outlines with caps. The \u2018left\u2019 border receives all points, while the \u2018right\u2019 border becomes empty. Use the function FT_Stroker_Export instead if you want to retrieve all borders at once. FT_Stroker_GetCounts \u00b6 Defined in FT_STROKER_H (freetype/ftstroke.h). FT_EXPORT( FT_Error ) FT_Stroker_GetCounts ( FT_Stroker stroker, FT_UInt *anum_points, FT_UInt *anum_contours ); Call this function once you have finished parsing your paths with the stroker. It returns the number of points and contours necessary to export all points/borders from the stroked outline/path. input stroker The target stroker handle. output anum_points The number of points. anum_contours The number of contours. return FreeType error code. 0 means success. FT_Stroker_Export \u00b6 Defined in FT_STROKER_H (freetype/ftstroke.h). FT_EXPORT( void ) FT_Stroker_Export ( FT_Stroker stroker, FT_Outline * outline ); Call this function after FT_Stroker_GetBorderCounts to export all borders to your own FT_Outline structure. Note that this function appends the border points and contours to your outline, but does not try to resize its arrays. input stroker The target stroker handle. outline The target outline handle.","title":"Glyph Stroker"},{"location":"ft2-glyph_stroker.html#glyph-stroker","text":"","title":"Glyph Stroker"},{"location":"ft2-glyph_stroker.html#synopsis","text":"This component generates stroked outlines of a given vectorial glyph. It also allows you to retrieve the \u2018outside\u2019 and/or the \u2018inside\u2019 borders of the stroke. This can be useful to generate \u2018bordered\u2019 glyph, i.e., glyphs displayed with a colored (and anti-aliased) border around their shape.","title":"Synopsis"},{"location":"ft2-glyph_stroker.html#ft_stroker","text":"Defined in FT_STROKER_H (freetype/ftstroke.h). typedef struct FT_StrokerRec_* FT_Stroker ; Opaque handle to a path stroker object.","title":"FT_Stroker"},{"location":"ft2-glyph_stroker.html#ft_stroker_linejoin","text":"Defined in FT_STROKER_H (freetype/ftstroke.h). typedef enum FT_Stroker_LineJoin_ { FT_STROKER_LINEJOIN_ROUND = 0, FT_STROKER_LINEJOIN_BEVEL = 1, FT_STROKER_LINEJOIN_MITER_VARIABLE = 2, FT_STROKER_LINEJOIN_MITER = FT_STROKER_LINEJOIN_MITER_VARIABLE , FT_STROKER_LINEJOIN_MITER_FIXED = 3 } FT_Stroker_LineJoin ; These values determine how two joining lines are rendered in a stroker.","title":"FT_Stroker_LineJoin"},{"location":"ft2-glyph_stroker.html#ft_stroker_linecap","text":"Defined in FT_STROKER_H (freetype/ftstroke.h). typedef enum FT_Stroker_LineCap_ { FT_STROKER_LINECAP_BUTT = 0, FT_STROKER_LINECAP_ROUND , FT_STROKER_LINECAP_SQUARE } FT_Stroker_LineCap ; These values determine how the end of opened sub-paths are rendered in a stroke.","title":"FT_Stroker_LineCap"},{"location":"ft2-glyph_stroker.html#ft_strokerborder","text":"Defined in FT_STROKER_H (freetype/ftstroke.h). typedef enum FT_StrokerBorder_ { FT_STROKER_BORDER_LEFT = 0, FT_STROKER_BORDER_RIGHT } FT_StrokerBorder ; These values are used to select a given stroke border in FT_Stroker_GetBorderCounts and FT_Stroker_ExportBorder .","title":"FT_StrokerBorder"},{"location":"ft2-glyph_stroker.html#ft_outline_getinsideborder","text":"Defined in FT_STROKER_H (freetype/ftstroke.h). FT_EXPORT( FT_StrokerBorder ) FT_Outline_GetInsideBorder ( FT_Outline * outline ); Retrieve the FT_StrokerBorder value corresponding to the \u2018inside\u2019 borders of a given outline.","title":"FT_Outline_GetInsideBorder"},{"location":"ft2-glyph_stroker.html#ft_outline_getoutsideborder","text":"Defined in FT_STROKER_H (freetype/ftstroke.h). FT_EXPORT( FT_StrokerBorder ) FT_Outline_GetOutsideBorder ( FT_Outline * outline ); Retrieve the FT_StrokerBorder value corresponding to the \u2018outside\u2019 borders of a given outline.","title":"FT_Outline_GetOutsideBorder"},{"location":"ft2-glyph_stroker.html#ft_glyph_stroke","text":"Defined in FT_STROKER_H (freetype/ftstroke.h). FT_EXPORT( FT_Error ) FT_Glyph_Stroke ( FT_Glyph *pglyph, FT_Stroker stroker, FT_Bool destroy ); Stroke a given outline glyph object with a given stroker.","title":"FT_Glyph_Stroke"},{"location":"ft2-glyph_stroker.html#ft_glyph_strokeborder","text":"Defined in FT_STROKER_H (freetype/ftstroke.h). FT_EXPORT( FT_Error ) FT_Glyph_StrokeBorder ( FT_Glyph *pglyph, FT_Stroker stroker, FT_Bool inside, FT_Bool destroy ); Stroke a given outline glyph object with a given stroker, but only return either its inside or outside border.","title":"FT_Glyph_StrokeBorder"},{"location":"ft2-glyph_stroker.html#ft_stroker_new","text":"Defined in FT_STROKER_H (freetype/ftstroke.h). FT_EXPORT( FT_Error ) FT_Stroker_New ( FT_Library library, FT_Stroker *astroker ); Create a new stroker object.","title":"FT_Stroker_New"},{"location":"ft2-glyph_stroker.html#ft_stroker_set","text":"Defined in FT_STROKER_H (freetype/ftstroke.h). FT_EXPORT( void ) FT_Stroker_Set ( FT_Stroker stroker, FT_Fixed radius, FT_Stroker_LineCap line_cap, FT_Stroker_LineJoin line_join, FT_Fixed miter_limit ); Reset a stroker object's attributes.","title":"FT_Stroker_Set"},{"location":"ft2-glyph_stroker.html#ft_stroker_rewind","text":"Defined in FT_STROKER_H (freetype/ftstroke.h). FT_EXPORT( void ) FT_Stroker_Rewind ( FT_Stroker stroker ); Reset a stroker object without changing its attributes. You should call this function before beginning a new series of calls to FT_Stroker_BeginSubPath or FT_Stroker_EndSubPath .","title":"FT_Stroker_Rewind"},{"location":"ft2-glyph_stroker.html#ft_stroker_parseoutline","text":"Defined in FT_STROKER_H (freetype/ftstroke.h). FT_EXPORT( FT_Error ) FT_Stroker_ParseOutline ( FT_Stroker stroker, FT_Outline * outline, FT_Bool opened ); A convenience function used to parse a whole outline with the stroker. The resulting outline(s) can be retrieved later by functions like FT_Stroker_GetCounts and FT_Stroker_Export .","title":"FT_Stroker_ParseOutline"},{"location":"ft2-glyph_stroker.html#ft_stroker_done","text":"Defined in FT_STROKER_H (freetype/ftstroke.h). FT_EXPORT( void ) FT_Stroker_Done ( FT_Stroker stroker ); Destroy a stroker object.","title":"FT_Stroker_Done"},{"location":"ft2-glyph_stroker.html#ft_stroker_beginsubpath","text":"Defined in FT_STROKER_H (freetype/ftstroke.h). FT_EXPORT( FT_Error ) FT_Stroker_BeginSubPath ( FT_Stroker stroker, FT_Vector * to, FT_Bool open ); Start a new sub-path in the stroker.","title":"FT_Stroker_BeginSubPath"},{"location":"ft2-glyph_stroker.html#ft_stroker_endsubpath","text":"Defined in FT_STROKER_H (freetype/ftstroke.h). FT_EXPORT( FT_Error ) FT_Stroker_EndSubPath ( FT_Stroker stroker ); Close the current sub-path in the stroker.","title":"FT_Stroker_EndSubPath"},{"location":"ft2-glyph_stroker.html#ft_stroker_lineto","text":"Defined in FT_STROKER_H (freetype/ftstroke.h). FT_EXPORT( FT_Error ) FT_Stroker_LineTo ( FT_Stroker stroker, FT_Vector * to ); \u2018Draw\u2019 a single line segment in the stroker's current sub-path, from the last position.","title":"FT_Stroker_LineTo"},{"location":"ft2-glyph_stroker.html#ft_stroker_conicto","text":"Defined in FT_STROKER_H (freetype/ftstroke.h). FT_EXPORT( FT_Error ) FT_Stroker_ConicTo ( FT_Stroker stroker, FT_Vector * control, FT_Vector * to ); \u2018Draw\u2019 a single quadratic Bezier in the stroker's current sub-path, from the last position.","title":"FT_Stroker_ConicTo"},{"location":"ft2-glyph_stroker.html#ft_stroker_cubicto","text":"Defined in FT_STROKER_H (freetype/ftstroke.h). FT_EXPORT( FT_Error ) FT_Stroker_CubicTo ( FT_Stroker stroker, FT_Vector * control1, FT_Vector * control2, FT_Vector * to ); \u2018Draw\u2019 a single cubic Bezier in the stroker's current sub-path, from the last position.","title":"FT_Stroker_CubicTo"},{"location":"ft2-glyph_stroker.html#ft_stroker_getbordercounts","text":"Defined in FT_STROKER_H (freetype/ftstroke.h). FT_EXPORT( FT_Error ) FT_Stroker_GetBorderCounts ( FT_Stroker stroker, FT_StrokerBorder border, FT_UInt *anum_points, FT_UInt *anum_contours ); Call this function once you have finished parsing your paths with the stroker. It returns the number of points and contours necessary to export one of the \u2018border\u2019 or \u2018stroke\u2019 outlines generated by the stroker.","title":"FT_Stroker_GetBorderCounts"},{"location":"ft2-glyph_stroker.html#ft_stroker_exportborder","text":"Defined in FT_STROKER_H (freetype/ftstroke.h). FT_EXPORT( void ) FT_Stroker_ExportBorder ( FT_Stroker stroker, FT_StrokerBorder border, FT_Outline * outline ); Call this function after FT_Stroker_GetBorderCounts to export the corresponding border to your own FT_Outline structure. Note that this function appends the border points and contours to your outline, but does not try to resize its arrays.","title":"FT_Stroker_ExportBorder"},{"location":"ft2-glyph_stroker.html#ft_stroker_getcounts","text":"Defined in FT_STROKER_H (freetype/ftstroke.h). FT_EXPORT( FT_Error ) FT_Stroker_GetCounts ( FT_Stroker stroker, FT_UInt *anum_points, FT_UInt *anum_contours ); Call this function once you have finished parsing your paths with the stroker. It returns the number of points and contours necessary to export all points/borders from the stroked outline/path.","title":"FT_Stroker_GetCounts"},{"location":"ft2-glyph_stroker.html#ft_stroker_export","text":"Defined in FT_STROKER_H (freetype/ftstroke.h). FT_EXPORT( void ) FT_Stroker_Export ( FT_Stroker stroker, FT_Outline * outline ); Call this function after FT_Stroker_GetBorderCounts to export all borders to your own FT_Outline structure. Note that this function appends the border points and contours to your outline, but does not try to resize its arrays.","title":"FT_Stroker_Export"},{"location":"ft2-glyph_variants.html","text":"FreeType \u00bb Docs \u00bb Core API \u00bb Unicode Variation Sequences Unicode Variation Sequences \u00b6 Synopsis \u00b6 Many characters, especially for CJK scripts, have variant forms. They are a sort of grey area somewhere between being totally irrelevant and semantically distinct; for this reason, the Unicode consortium decided to introduce Variation Sequences (VS), consisting of a Unicode base character and a variation selector instead of further extending the already huge number of characters. Unicode maintains two different sets, namely \u2018Standardized Variation Sequences\u2019 and registered \u2018Ideographic Variation Sequences\u2019 (IVS), collected in the \u2018Ideographic Variation Database\u2019 (IVD). https://unicode.org/Public/UCD/latest/ucd/StandardizedVariants.txt https://unicode.org/reports/tr37/ https://unicode.org/ivd/ To date (January 2017), the character with the most ideographic variations is U+9089, having 32 such IVS. Three Mongolian Variation Selectors have the values U+180B-U+180D; 256 generic Variation Selectors are encoded in the ranges U+FE00-U+FE0F and U+E0100-U+E01EF. IVS currently use Variation Selectors from the range U+E0100-U+E01EF only. A VS consists of the base character value followed by a single Variation Selector. For example, to get the first variation of U+9089, you have to write the character sequence U+9089 U+E0100 . Adobe and MS decided to support both standardized and ideographic VS with a new cmap subtable (format 14). It is an odd subtable because it is not a mapping of input code points to glyphs, but contains lists of all variations supported by the font. A variation may be either \u2018default\u2019 or \u2018non-default\u2019 for a given font. A default variation is the one you will get for that code point if you look it up in the standard Unicode cmap. A non-default variation is a different glyph. FT_Face_GetCharVariantIndex \u00b6 Defined in FT_FREETYPE_H (freetype/freetype.h). FT_EXPORT( FT_UInt ) FT_Face_GetCharVariantIndex ( FT_Face face, FT_ULong charcode, FT_ULong variantSelector ); Return the glyph index of a given character code as modified by the variation selector. input face A handle to the source face object. charcode The character code point in Unicode. variantSelector The Unicode code point of the variation selector. return The glyph index. 0 means either \u2018undefined character code\u2019, or \u2018undefined selector code\u2019, or \u2018no variation selector cmap subtable\u2019, or \u2018current CharMap is not Unicode\u2019. note If you use FreeType to manipulate the contents of font files directly, be aware that the glyph index returned by this function doesn't always correspond to the internal indices used within the file. This is done to ensure that value 0 always corresponds to the \u2018missing glyph\u2019. This function is only meaningful if a) the font has a variation selector cmap sub table, and b) the current charmap has a Unicode encoding. since 2.3.6 FT_Face_GetCharVariantIsDefault \u00b6 Defined in FT_FREETYPE_H (freetype/freetype.h). FT_EXPORT( FT_Int ) FT_Face_GetCharVariantIsDefault ( FT_Face face, FT_ULong charcode, FT_ULong variantSelector ); Check whether this variation of this Unicode character is the one to be found in the charmap. input face A handle to the source face object. charcode The character codepoint in Unicode. variantSelector The Unicode codepoint of the variation selector. return 1 if found in the standard (Unicode) cmap, 0 if found in the variation selector cmap, or -1 if it is not a variation. note This function is only meaningful if the font has a variation selector cmap subtable. since 2.3.6 FT_Face_GetVariantSelectors \u00b6 Defined in FT_FREETYPE_H (freetype/freetype.h). FT_EXPORT( FT_UInt32 * ) FT_Face_GetVariantSelectors ( FT_Face face ); Return a zero-terminated list of Unicode variation selectors found in the font. input face A handle to the source face object. return A pointer to an array of selector code points, or NULL if there is no valid variation selector cmap subtable. note The last item in the array is 0; the array is owned by the FT_Face object but can be overwritten or released on the next call to a FreeType function. since 2.3.6 FT_Face_GetVariantsOfChar \u00b6 Defined in FT_FREETYPE_H (freetype/freetype.h). FT_EXPORT( FT_UInt32 * ) FT_Face_GetVariantsOfChar ( FT_Face face, FT_ULong charcode ); Return a zero-terminated list of Unicode variation selectors found for the specified character code. input face A handle to the source face object. charcode The character codepoint in Unicode. return A pointer to an array of variation selector code points that are active for the given character, or NULL if the corresponding list is empty. note The last item in the array is 0; the array is owned by the FT_Face object but can be overwritten or released on the next call to a FreeType function. since 2.3.6 FT_Face_GetCharsOfVariant \u00b6 Defined in FT_FREETYPE_H (freetype/freetype.h). FT_EXPORT( FT_UInt32 * ) FT_Face_GetCharsOfVariant ( FT_Face face, FT_ULong variantSelector ); Return a zero-terminated list of Unicode character codes found for the specified variation selector. input face A handle to the source face object. variantSelector The variation selector code point in Unicode. return A list of all the code points that are specified by this selector (both default and non-default codes are returned) or NULL if there is no valid cmap or the variation selector is invalid. note The last item in the array is 0; the array is owned by the FT_Face object but can be overwritten or released on the next call to a FreeType function. since 2.3.6","title":"Unicode Variation Sequences"},{"location":"ft2-glyph_variants.html#unicode-variation-sequences","text":"","title":"Unicode Variation Sequences"},{"location":"ft2-glyph_variants.html#synopsis","text":"Many characters, especially for CJK scripts, have variant forms. They are a sort of grey area somewhere between being totally irrelevant and semantically distinct; for this reason, the Unicode consortium decided to introduce Variation Sequences (VS), consisting of a Unicode base character and a variation selector instead of further extending the already huge number of characters. Unicode maintains two different sets, namely \u2018Standardized Variation Sequences\u2019 and registered \u2018Ideographic Variation Sequences\u2019 (IVS), collected in the \u2018Ideographic Variation Database\u2019 (IVD). https://unicode.org/Public/UCD/latest/ucd/StandardizedVariants.txt https://unicode.org/reports/tr37/ https://unicode.org/ivd/ To date (January 2017), the character with the most ideographic variations is U+9089, having 32 such IVS. Three Mongolian Variation Selectors have the values U+180B-U+180D; 256 generic Variation Selectors are encoded in the ranges U+FE00-U+FE0F and U+E0100-U+E01EF. IVS currently use Variation Selectors from the range U+E0100-U+E01EF only. A VS consists of the base character value followed by a single Variation Selector. For example, to get the first variation of U+9089, you have to write the character sequence U+9089 U+E0100 . Adobe and MS decided to support both standardized and ideographic VS with a new cmap subtable (format 14). It is an odd subtable because it is not a mapping of input code points to glyphs, but contains lists of all variations supported by the font. A variation may be either \u2018default\u2019 or \u2018non-default\u2019 for a given font. A default variation is the one you will get for that code point if you look it up in the standard Unicode cmap. A non-default variation is a different glyph.","title":"Synopsis"},{"location":"ft2-glyph_variants.html#ft_face_getcharvariantindex","text":"Defined in FT_FREETYPE_H (freetype/freetype.h). FT_EXPORT( FT_UInt ) FT_Face_GetCharVariantIndex ( FT_Face face, FT_ULong charcode, FT_ULong variantSelector ); Return the glyph index of a given character code as modified by the variation selector.","title":"FT_Face_GetCharVariantIndex"},{"location":"ft2-glyph_variants.html#ft_face_getcharvariantisdefault","text":"Defined in FT_FREETYPE_H (freetype/freetype.h). FT_EXPORT( FT_Int ) FT_Face_GetCharVariantIsDefault ( FT_Face face, FT_ULong charcode, FT_ULong variantSelector ); Check whether this variation of this Unicode character is the one to be found in the charmap.","title":"FT_Face_GetCharVariantIsDefault"},{"location":"ft2-glyph_variants.html#ft_face_getvariantselectors","text":"Defined in FT_FREETYPE_H (freetype/freetype.h). FT_EXPORT( FT_UInt32 * ) FT_Face_GetVariantSelectors ( FT_Face face ); Return a zero-terminated list of Unicode variation selectors found in the font.","title":"FT_Face_GetVariantSelectors"},{"location":"ft2-glyph_variants.html#ft_face_getvariantsofchar","text":"Defined in FT_FREETYPE_H (freetype/freetype.h). FT_EXPORT( FT_UInt32 * ) FT_Face_GetVariantsOfChar ( FT_Face face, FT_ULong charcode ); Return a zero-terminated list of Unicode variation selectors found for the specified character code.","title":"FT_Face_GetVariantsOfChar"},{"location":"ft2-glyph_variants.html#ft_face_getcharsofvariant","text":"Defined in FT_FREETYPE_H (freetype/freetype.h). FT_EXPORT( FT_UInt32 * ) FT_Face_GetCharsOfVariant ( FT_Face face, FT_ULong variantSelector ); Return a zero-terminated list of Unicode character codes found for the specified variation selector.","title":"FT_Face_GetCharsOfVariant"},{"location":"ft2-gx_validation.html","text":"FreeType \u00bb Docs \u00bb Miscellaneous \u00bb TrueTypeGX/AAT Validation TrueTypeGX/AAT Validation \u00b6 Synopsis \u00b6 This section contains the declaration of functions to validate some TrueTypeGX tables (feat, mort, morx, bsln, just, kern, opbd, trak, prop, lcar). FT_TrueTypeGX_Validate \u00b6 Defined in FT_GX_VALIDATE_H (freetype/ftgxval.h). FT_EXPORT( FT_Error ) FT_TrueTypeGX_Validate ( FT_Face face, FT_UInt validation_flags, FT_Bytes tables[ FT_VALIDATE_GX_LENGTH ], FT_UInt table_length ); Validate various TrueTypeGX tables to assure that all offsets and indices are valid. The idea is that a higher-level library that actually does the text layout can access those tables without error checking (which can be quite time consuming). input face A handle to the input face. validation_flags A bit field that specifies the tables to be validated. See FT_VALIDATE_GXXXX for possible values. table_length The size of the tables array. Normally, FT_VALIDATE_GX_LENGTH should be passed. output tables The array where all validated sfnt tables are stored. The array itself must be allocated by a client. return FreeType error code. 0 means success. note This function only works with TrueTypeGX fonts, returning an error otherwise. After use, the application should deallocate the buffers pointed to by each tables element, by calling FT_TrueTypeGX_Free . A NULL value indicates that the table either doesn't exist in the font, the application hasn't asked for validation, or the validator doesn't have the ability to validate the sfnt table. FT_TrueTypeGX_Free \u00b6 Defined in FT_GX_VALIDATE_H (freetype/ftgxval.h). FT_EXPORT( void ) FT_TrueTypeGX_Free ( FT_Face face, FT_Bytes table ); Free the buffer allocated by TrueTypeGX validator. input face A handle to the input face. table The pointer to the buffer allocated by FT_TrueTypeGX_Validate . note This function must be used to free the buffer allocated by FT_TrueTypeGX_Validate only. FT_ClassicKern_Validate \u00b6 Defined in FT_GX_VALIDATE_H (freetype/ftgxval.h). FT_EXPORT( FT_Error ) FT_ClassicKern_Validate ( FT_Face face, FT_UInt validation_flags, FT_Bytes *ckern_table ); Validate classic (16-bit format) kern table to assure that the offsets and indices are valid. The idea is that a higher-level library that actually does the text layout can access those tables without error checking (which can be quite time consuming). The \u2018kern\u2019 table validator in FT_TrueTypeGX_Validate deals with both the new 32-bit format and the classic 16-bit format, while FT_ClassicKern_Validate only supports the classic 16-bit format. input face A handle to the input face. validation_flags A bit field that specifies the dialect to be validated. See FT_VALIDATE_CKERNXXX for possible values. output ckern_table A pointer to the kern table. return FreeType error code. 0 means success. note After use, the application should deallocate the buffers pointed to by ckern_table , by calling FT_ClassicKern_Free . A NULL value indicates that the table doesn't exist in the font. FT_ClassicKern_Free \u00b6 Defined in FT_GX_VALIDATE_H (freetype/ftgxval.h). FT_EXPORT( void ) FT_ClassicKern_Free ( FT_Face face, FT_Bytes table ); Free the buffer allocated by classic Kern validator. input face A handle to the input face. table The pointer to the buffer that is allocated by FT_ClassicKern_Validate . note This function must be used to free the buffer allocated by FT_ClassicKern_Validate only. FT_VALIDATE_GX_LENGTH \u00b6 Defined in FT_GX_VALIDATE_H (freetype/ftgxval.h). # define FT_VALIDATE_GX_LENGTH ( FT_VALIDATE_GX_LAST_INDEX + 1 ) The number of tables checked in this module. Use it as a parameter for the table-length argument of function FT_TrueTypeGX_Validate . FT_VALIDATE_GXXXX \u00b6 Defined in FT_GX_VALIDATE_H (freetype/ftgxval.h). # define FT_VALIDATE_feat FT_VALIDATE_GX_BITFIELD( feat ) # define FT_VALIDATE_mort FT_VALIDATE_GX_BITFIELD( mort ) # define FT_VALIDATE_morx FT_VALIDATE_GX_BITFIELD( morx ) # define FT_VALIDATE_bsln FT_VALIDATE_GX_BITFIELD( bsln ) # define FT_VALIDATE_just FT_VALIDATE_GX_BITFIELD( just ) # define FT_VALIDATE_kern FT_VALIDATE_GX_BITFIELD( kern ) # define FT_VALIDATE_opbd FT_VALIDATE_GX_BITFIELD( opbd ) # define FT_VALIDATE_trak FT_VALIDATE_GX_BITFIELD( trak ) # define FT_VALIDATE_prop FT_VALIDATE_GX_BITFIELD( prop ) # define FT_VALIDATE_lcar FT_VALIDATE_GX_BITFIELD( lcar ) # define FT_VALIDATE_GX ( FT_VALIDATE_feat | \\ FT_VALIDATE_mort | \\ FT_VALIDATE_morx | \\ FT_VALIDATE_bsln | \\ FT_VALIDATE_just | \\ FT_VALIDATE_kern | \\ FT_VALIDATE_opbd | \\ FT_VALIDATE_trak | \\ FT_VALIDATE_prop | \\ FT_VALIDATE_lcar ) A list of bit-field constants used with FT_TrueTypeGX_Validate to indicate which TrueTypeGX/AAT Type tables should be validated. values FT_VALIDATE_feat Validate \u2018feat\u2019 table. FT_VALIDATE_mort Validate \u2018mort\u2019 table. FT_VALIDATE_morx Validate \u2018morx\u2019 table. FT_VALIDATE_bsln Validate \u2018bsln\u2019 table. FT_VALIDATE_just Validate \u2018just\u2019 table. FT_VALIDATE_kern Validate \u2018kern\u2019 table. FT_VALIDATE_opbd Validate \u2018opbd\u2019 table. FT_VALIDATE_trak Validate \u2018trak\u2019 table. FT_VALIDATE_prop Validate \u2018prop\u2019 table. FT_VALIDATE_lcar Validate \u2018lcar\u2019 table. FT_VALIDATE_GX Validate all TrueTypeGX tables (feat, mort, morx, bsln, just, kern, opbd, trak, prop and lcar). FT_VALIDATE_CKERNXXX \u00b6 Defined in FT_GX_VALIDATE_H (freetype/ftgxval.h). # define FT_VALIDATE_MS ( FT_VALIDATE_GX_START << 0 ) # define FT_VALIDATE_APPLE ( FT_VALIDATE_GX_START << 1 ) # define FT_VALIDATE_CKERN ( FT_VALIDATE_MS | FT_VALIDATE_APPLE ) A list of bit-field constants used with FT_ClassicKern_Validate to indicate the classic kern dialect or dialects. If the selected type doesn't fit, FT_ClassicKern_Validate regards the table as invalid. values FT_VALIDATE_MS Handle the \u2018kern\u2019 table as a classic Microsoft kern table. FT_VALIDATE_APPLE Handle the \u2018kern\u2019 table as a classic Apple kern table. FT_VALIDATE_CKERN Handle the \u2018kern\u2019 as either classic Apple or Microsoft kern table.","title":"TrueTypeGX/AAT Validation"},{"location":"ft2-gx_validation.html#truetypegxaat-validation","text":"","title":"TrueTypeGX/AAT Validation"},{"location":"ft2-gx_validation.html#synopsis","text":"This section contains the declaration of functions to validate some TrueTypeGX tables (feat, mort, morx, bsln, just, kern, opbd, trak, prop, lcar).","title":"Synopsis"},{"location":"ft2-gx_validation.html#ft_truetypegx_validate","text":"Defined in FT_GX_VALIDATE_H (freetype/ftgxval.h). FT_EXPORT( FT_Error ) FT_TrueTypeGX_Validate ( FT_Face face, FT_UInt validation_flags, FT_Bytes tables[ FT_VALIDATE_GX_LENGTH ], FT_UInt table_length ); Validate various TrueTypeGX tables to assure that all offsets and indices are valid. The idea is that a higher-level library that actually does the text layout can access those tables without error checking (which can be quite time consuming).","title":"FT_TrueTypeGX_Validate"},{"location":"ft2-gx_validation.html#ft_truetypegx_free","text":"Defined in FT_GX_VALIDATE_H (freetype/ftgxval.h). FT_EXPORT( void ) FT_TrueTypeGX_Free ( FT_Face face, FT_Bytes table ); Free the buffer allocated by TrueTypeGX validator.","title":"FT_TrueTypeGX_Free"},{"location":"ft2-gx_validation.html#ft_classickern_validate","text":"Defined in FT_GX_VALIDATE_H (freetype/ftgxval.h). FT_EXPORT( FT_Error ) FT_ClassicKern_Validate ( FT_Face face, FT_UInt validation_flags, FT_Bytes *ckern_table ); Validate classic (16-bit format) kern table to assure that the offsets and indices are valid. The idea is that a higher-level library that actually does the text layout can access those tables without error checking (which can be quite time consuming). The \u2018kern\u2019 table validator in FT_TrueTypeGX_Validate deals with both the new 32-bit format and the classic 16-bit format, while FT_ClassicKern_Validate only supports the classic 16-bit format.","title":"FT_ClassicKern_Validate"},{"location":"ft2-gx_validation.html#ft_classickern_free","text":"Defined in FT_GX_VALIDATE_H (freetype/ftgxval.h). FT_EXPORT( void ) FT_ClassicKern_Free ( FT_Face face, FT_Bytes table ); Free the buffer allocated by classic Kern validator.","title":"FT_ClassicKern_Free"},{"location":"ft2-gx_validation.html#ft_validate_gx_length","text":"Defined in FT_GX_VALIDATE_H (freetype/ftgxval.h). # define FT_VALIDATE_GX_LENGTH ( FT_VALIDATE_GX_LAST_INDEX + 1 ) The number of tables checked in this module. Use it as a parameter for the table-length argument of function FT_TrueTypeGX_Validate .","title":"FT_VALIDATE_GX_LENGTH"},{"location":"ft2-gx_validation.html#ft_validate_gxxxx","text":"Defined in FT_GX_VALIDATE_H (freetype/ftgxval.h). # define FT_VALIDATE_feat FT_VALIDATE_GX_BITFIELD( feat ) # define FT_VALIDATE_mort FT_VALIDATE_GX_BITFIELD( mort ) # define FT_VALIDATE_morx FT_VALIDATE_GX_BITFIELD( morx ) # define FT_VALIDATE_bsln FT_VALIDATE_GX_BITFIELD( bsln ) # define FT_VALIDATE_just FT_VALIDATE_GX_BITFIELD( just ) # define FT_VALIDATE_kern FT_VALIDATE_GX_BITFIELD( kern ) # define FT_VALIDATE_opbd FT_VALIDATE_GX_BITFIELD( opbd ) # define FT_VALIDATE_trak FT_VALIDATE_GX_BITFIELD( trak ) # define FT_VALIDATE_prop FT_VALIDATE_GX_BITFIELD( prop ) # define FT_VALIDATE_lcar FT_VALIDATE_GX_BITFIELD( lcar ) # define FT_VALIDATE_GX ( FT_VALIDATE_feat | \\ FT_VALIDATE_mort | \\ FT_VALIDATE_morx | \\ FT_VALIDATE_bsln | \\ FT_VALIDATE_just | \\ FT_VALIDATE_kern | \\ FT_VALIDATE_opbd | \\ FT_VALIDATE_trak | \\ FT_VALIDATE_prop | \\ FT_VALIDATE_lcar ) A list of bit-field constants used with FT_TrueTypeGX_Validate to indicate which TrueTypeGX/AAT Type tables should be validated.","title":"FT_VALIDATE_GXXXX"},{"location":"ft2-gx_validation.html#ft_validate_ckernxxx","text":"Defined in FT_GX_VALIDATE_H (freetype/ftgxval.h). # define FT_VALIDATE_MS ( FT_VALIDATE_GX_START << 0 ) # define FT_VALIDATE_APPLE ( FT_VALIDATE_GX_START << 1 ) # define FT_VALIDATE_CKERN ( FT_VALIDATE_MS | FT_VALIDATE_APPLE ) A list of bit-field constants used with FT_ClassicKern_Validate to indicate the classic kern dialect or dialects. If the selected type doesn't fit, FT_ClassicKern_Validate regards the table as invalid.","title":"FT_VALIDATE_CKERNXXX"},{"location":"ft2-gzip.html","text":"FreeType \u00bb Docs \u00bb Support API \u00bb GZIP Streams GZIP Streams \u00b6 Synopsis \u00b6 In certain builds of the library, gzip compression recognition is automatically handled when calling FT_New_Face or FT_Open_Face . This means that if no font driver is capable of handling the raw compressed file, the library will try to open a gzipped stream from it and re-open the face with it. The stream implementation is very basic and resets the decompression process each time seeking backwards is needed within the stream, which significantly undermines the performance. This section contains the declaration of Gzip-specific functions. FT_Stream_OpenGzip \u00b6 Defined in FT_GZIP_H (freetype/ftgzip.h). FT_EXPORT( FT_Error ) FT_Stream_OpenGzip ( FT_Stream stream, FT_Stream source ); Open a new stream to parse gzip-compressed font files. This is mainly used to support the compressed *.pcf.gz fonts that come with XFree86. input stream The target embedding stream. source The source stream. return FreeType error code. 0 means success. note The source stream must be opened before calling this function. Calling the internal function FT_Stream_Close on the new stream will not call FT_Stream_Close on the source stream. None of the stream objects will be released to the heap. This function may return FT_Err_Unimplemented_Feature if your build of FreeType was not compiled with zlib support. FT_Gzip_Uncompress \u00b6 Defined in FT_GZIP_H (freetype/ftgzip.h). FT_EXPORT( FT_Error ) FT_Gzip_Uncompress ( FT_Memory memory, FT_Byte * output, FT_ULong * output_len, const FT_Byte * input, FT_ULong input_len ); Decompress a zipped input buffer into an output buffer. This function is modeled after zlib's uncompress function. input memory A FreeType memory handle. input The input buffer. input_len The length of the input buffer. output output The output buffer. inout output_len Before calling the function, this is the total size of the output buffer, which must be large enough to hold the entire uncompressed data (so the size of the uncompressed data must be known in advance). After calling the function, output_len is the size of the used data in output . return FreeType error code. 0 means success. note This function may return FT_Err_Unimplemented_Feature if your build of FreeType was not compiled with zlib support. since 2.5.1","title":"GZIP Streams"},{"location":"ft2-gzip.html#gzip-streams","text":"","title":"GZIP Streams"},{"location":"ft2-gzip.html#synopsis","text":"In certain builds of the library, gzip compression recognition is automatically handled when calling FT_New_Face or FT_Open_Face . This means that if no font driver is capable of handling the raw compressed file, the library will try to open a gzipped stream from it and re-open the face with it. The stream implementation is very basic and resets the decompression process each time seeking backwards is needed within the stream, which significantly undermines the performance. This section contains the declaration of Gzip-specific functions.","title":"Synopsis"},{"location":"ft2-gzip.html#ft_stream_opengzip","text":"Defined in FT_GZIP_H (freetype/ftgzip.h). FT_EXPORT( FT_Error ) FT_Stream_OpenGzip ( FT_Stream stream, FT_Stream source ); Open a new stream to parse gzip-compressed font files. This is mainly used to support the compressed *.pcf.gz fonts that come with XFree86.","title":"FT_Stream_OpenGzip"},{"location":"ft2-gzip.html#ft_gzip_uncompress","text":"Defined in FT_GZIP_H (freetype/ftgzip.h). FT_EXPORT( FT_Error ) FT_Gzip_Uncompress ( FT_Memory memory, FT_Byte * output, FT_ULong * output_len, const FT_Byte * input, FT_ULong input_len ); Decompress a zipped input buffer into an output buffer. This function is modeled after zlib's uncompress function.","title":"FT_Gzip_Uncompress"},{"location":"ft2-header_file_macros.html","text":"FreeType \u00bb Docs \u00bb Core API \u00bb Header File Macros Header File Macros \u00b6 Synopsis \u00b6 In addition to the normal scheme of including header files like #include <freetype/freetype.h> #include <freetype/ftmm.h> #include <freetype/ftglyph.h> it is possible to used named macros instead. They can be used directly in #include statements as in #include FT_FREETYPE_H #include FT_MULTIPLE_MASTERS_H #include FT_GLYPH_H These macros were introduced to overcome the infamous 8.3 naming rule required by DOS (and FT_MULTIPLE_MASTERS_H is a lot more meaningful than ftmm.h ). FT_CONFIG_CONFIG_H \u00b6 # ifndef FT_CONFIG_CONFIG_H # define FT_CONFIG_CONFIG_H <freetype/config/ftconfig.h> # endif A macro used in #include statements to name the file containing FreeType 2 configuration data. FT_CONFIG_STANDARD_LIBRARY_H \u00b6 # ifndef FT_CONFIG_STANDARD_LIBRARY_H # define FT_CONFIG_STANDARD_LIBRARY_H <freetype/config/ftstdlib.h> # endif A macro used in #include statements to name the file containing FreeType 2 interface to the standard C library functions. FT_CONFIG_OPTIONS_H \u00b6 # ifndef FT_CONFIG_OPTIONS_H # define FT_CONFIG_OPTIONS_H <freetype/config/ftoption.h> # endif A macro used in #include statements to name the file containing FreeType 2 project-specific configuration options. FT_CONFIG_MODULES_H \u00b6 # ifndef FT_CONFIG_MODULES_H # define FT_CONFIG_MODULES_H <freetype/config/ftmodule.h> # endif A macro used in #include statements to name the file containing the list of FreeType 2 modules that are statically linked to new library instances in FT_Init_FreeType . FT_FREETYPE_H \u00b6 # define FT_FREETYPE_H <freetype/freetype.h> A macro used in #include statements to name the file containing the base FreeType 2 API. FT_ERRORS_H \u00b6 # define FT_ERRORS_H <freetype/fterrors.h> A macro used in #include statements to name the file containing the list of FreeType 2 error codes (and messages). It is included by FT_FREETYPE_H . FT_MODULE_ERRORS_H \u00b6 # define FT_MODULE_ERRORS_H <freetype/ftmoderr.h> A macro used in #include statements to name the file containing the list of FreeType 2 module error offsets (and messages). FT_SYSTEM_H \u00b6 # define FT_SYSTEM_H <freetype/ftsystem.h> A macro used in #include statements to name the file containing the FreeType 2 interface to low-level operations (i.e., memory management and stream i/o). It is included by FT_FREETYPE_H . FT_IMAGE_H \u00b6 # define FT_IMAGE_H <freetype/ftimage.h> A macro used in #include statements to name the file containing type definitions related to glyph images (i.e., bitmaps, outlines, scan-converter parameters). It is included by FT_FREETYPE_H . FT_TYPES_H \u00b6 # define FT_TYPES_H <freetype/fttypes.h> A macro used in #include statements to name the file containing the basic data types defined by FreeType 2. It is included by FT_FREETYPE_H . FT_LIST_H \u00b6 # define FT_LIST_H <freetype/ftlist.h> A macro used in #include statements to name the file containing the list management API of FreeType 2. (Most applications will never need to include this file.) FT_OUTLINE_H \u00b6 # define FT_OUTLINE_H <freetype/ftoutln.h> A macro used in #include statements to name the file containing the scalable outline management API of FreeType 2. FT_SIZES_H \u00b6 # define FT_SIZES_H <freetype/ftsizes.h> A macro used in #include statements to name the file containing the API which manages multiple FT_Size objects per face. FT_MODULE_H \u00b6 # define FT_MODULE_H <freetype/ftmodapi.h> A macro used in #include statements to name the file containing the module management API of FreeType 2. FT_RENDER_H \u00b6 # define FT_RENDER_H <freetype/ftrender.h> A macro used in #include statements to name the file containing the renderer module management API of FreeType 2. FT_DRIVER_H \u00b6 # define FT_DRIVER_H <freetype/ftdriver.h> A macro used in #include statements to name the file containing structures and macros related to the driver modules. FT_AUTOHINTER_H \u00b6 # define FT_AUTOHINTER_H FT_DRIVER_H A macro used in #include statements to name the file containing structures and macros related to the auto-hinting module. Deprecated since version 2.9; use FT_DRIVER_H instead. FT_CFF_DRIVER_H \u00b6 # define FT_CFF_DRIVER_H FT_DRIVER_H A macro used in #include statements to name the file containing structures and macros related to the CFF driver module. Deprecated since version 2.9; use FT_DRIVER_H instead. FT_TRUETYPE_DRIVER_H \u00b6 # define FT_TRUETYPE_DRIVER_H FT_DRIVER_H A macro used in #include statements to name the file containing structures and macros related to the TrueType driver module. Deprecated since version 2.9; use FT_DRIVER_H instead. FT_PCF_DRIVER_H \u00b6 # define FT_PCF_DRIVER_H FT_DRIVER_H A macro used in #include statements to name the file containing structures and macros related to the PCF driver module. Deprecated since version 2.9; use FT_DRIVER_H instead. FT_TYPE1_TABLES_H \u00b6 # define FT_TYPE1_TABLES_H <freetype/t1tables.h> A macro used in #include statements to name the file containing the types and API specific to the Type 1 format. FT_TRUETYPE_IDS_H \u00b6 # define FT_TRUETYPE_IDS_H <freetype/ttnameid.h> A macro used in #include statements to name the file containing the enumeration values which identify name strings, languages, encodings, etc. This file really contains a large set of constant macro definitions, taken from the TrueType and OpenType specifications. FT_TRUETYPE_TABLES_H \u00b6 # define FT_TRUETYPE_TABLES_H <freetype/tttables.h> A macro used in #include statements to name the file containing the types and API specific to the TrueType (as well as OpenType) format. FT_TRUETYPE_TAGS_H \u00b6 # define FT_TRUETYPE_TAGS_H <freetype/tttags.h> A macro used in #include statements to name the file containing the definitions of TrueType four-byte \u2018tags\u2019 which identify blocks in SFNT-based font formats (i.e., TrueType and OpenType). FT_BDF_H \u00b6 # define FT_BDF_H <freetype/ftbdf.h> A macro used in #include statements to name the file containing the definitions of an API which accesses BDF-specific strings from a face. FT_CID_H \u00b6 # define FT_CID_H <freetype/ftcid.h> A macro used in #include statements to name the file containing the definitions of an API which access CID font information from a face. FT_GZIP_H \u00b6 # define FT_GZIP_H <freetype/ftgzip.h> A macro used in #include statements to name the file containing the definitions of an API which supports gzip-compressed files. FT_LZW_H \u00b6 # define FT_LZW_H <freetype/ftlzw.h> A macro used in #include statements to name the file containing the definitions of an API which supports LZW-compressed files. FT_BZIP2_H \u00b6 # define FT_BZIP2_H <freetype/ftbzip2.h> A macro used in #include statements to name the file containing the definitions of an API which supports bzip2-compressed files. FT_WINFONTS_H \u00b6 # define FT_WINFONTS_H <freetype/ftwinfnt.h> A macro used in #include statements to name the file containing the definitions of an API which supports Windows FNT files. FT_GLYPH_H \u00b6 # define FT_GLYPH_H <freetype/ftglyph.h> A macro used in #include statements to name the file containing the API of the optional glyph management component. FT_BITMAP_H \u00b6 # define FT_BITMAP_H <freetype/ftbitmap.h> A macro used in #include statements to name the file containing the API of the optional bitmap conversion component. FT_BBOX_H \u00b6 # define FT_BBOX_H <freetype/ftbbox.h> A macro used in #include statements to name the file containing the API of the optional exact bounding box computation routines. FT_CACHE_H \u00b6 # define FT_CACHE_H <freetype/ftcache.h> A macro used in #include statements to name the file containing the API of the optional FreeType 2 cache sub-system. FT_MAC_H \u00b6 # define FT_MAC_H <freetype/ftmac.h> A macro used in #include statements to name the file containing the Macintosh-specific FreeType 2 API. The latter is used to access fonts embedded in resource forks. This header file must be explicitly included by client applications compiled on the Mac (note that the base API still works though). FT_MULTIPLE_MASTERS_H \u00b6 # define FT_MULTIPLE_MASTERS_H <freetype/ftmm.h> A macro used in #include statements to name the file containing the optional multiple-masters management API of FreeType 2. FT_SFNT_NAMES_H \u00b6 # define FT_SFNT_NAMES_H <freetype/ftsnames.h> A macro used in #include statements to name the file containing the optional FreeType 2 API which accesses embedded \u2018name\u2019 strings in SFNT-based font formats (i.e., TrueType and OpenType). FT_OPENTYPE_VALIDATE_H \u00b6 # define FT_OPENTYPE_VALIDATE_H <freetype/ftotval.h> A macro used in #include statements to name the file containing the optional FreeType 2 API which validates OpenType tables (\u2018BASE\u2019, \u2018GDEF\u2019, \u2018GPOS\u2019, \u2018GSUB\u2019, \u2018JSTF\u2019). FT_GX_VALIDATE_H \u00b6 # define FT_GX_VALIDATE_H <freetype/ftgxval.h> A macro used in #include statements to name the file containing the optional FreeType 2 API which validates TrueTypeGX/AAT tables (\u2018feat\u2019, \u2018mort\u2019, \u2018morx\u2019, \u2018bsln\u2019, \u2018just\u2019, \u2018kern\u2019, \u2018opbd\u2019, \u2018trak\u2019, \u2018prop\u2019). FT_PFR_H \u00b6 # define FT_PFR_H <freetype/ftpfr.h> A macro used in #include statements to name the file containing the FreeType 2 API which accesses PFR-specific data. FT_STROKER_H \u00b6 # define FT_STROKER_H <freetype/ftstroke.h> A macro used in #include statements to name the file containing the FreeType 2 API which provides functions to stroke outline paths. FT_SYNTHESIS_H \u00b6 # define FT_SYNTHESIS_H <freetype/ftsynth.h> A macro used in #include statements to name the file containing the FreeType 2 API which performs artificial obliquing and emboldening. FT_FONT_FORMATS_H \u00b6 # define FT_FONT_FORMATS_H <freetype/ftfntfmt.h> /* deprecated */ # define FT_XFREE86_H FT_FONT_FORMATS_H A macro used in #include statements to name the file containing the FreeType 2 API which provides functions specific to font formats. FT_TRIGONOMETRY_H \u00b6 # define FT_TRIGONOMETRY_H <freetype/fttrigon.h> A macro used in #include statements to name the file containing the FreeType 2 API which performs trigonometric computations (e.g., cosines and arc tangents). FT_LCD_FILTER_H \u00b6 # define FT_LCD_FILTER_H <freetype/ftlcdfil.h> A macro used in #include statements to name the file containing the FreeType 2 API which performs color filtering for subpixel rendering. FT_INCREMENTAL_H \u00b6 # define FT_INCREMENTAL_H <freetype/ftincrem.h> A macro used in #include statements to name the file containing the FreeType 2 API which performs incremental glyph loading. FT_GASP_H \u00b6 # define FT_GASP_H <freetype/ftgasp.h> A macro used in #include statements to name the file containing the FreeType 2 API which returns entries from the TrueType GASP table. FT_ADVANCES_H \u00b6 # define FT_ADVANCES_H <freetype/ftadvanc.h> A macro used in #include statements to name the file containing the FreeType 2 API which returns individual and ranged glyph advances. FT_COLOR_H \u00b6 # define FT_COLOR_H <freetype/ftcolor.h> A macro used in #include statements to name the file containing the FreeType 2 API which handles the OpenType \u2018CPAL\u2019 table.","title":"Header File Macros"},{"location":"ft2-header_file_macros.html#header-file-macros","text":"","title":"Header File Macros"},{"location":"ft2-header_file_macros.html#synopsis","text":"In addition to the normal scheme of including header files like #include <freetype/freetype.h> #include <freetype/ftmm.h> #include <freetype/ftglyph.h> it is possible to used named macros instead. They can be used directly in #include statements as in #include FT_FREETYPE_H #include FT_MULTIPLE_MASTERS_H #include FT_GLYPH_H These macros were introduced to overcome the infamous 8.3 naming rule required by DOS (and FT_MULTIPLE_MASTERS_H is a lot more meaningful than ftmm.h ).","title":"Synopsis"},{"location":"ft2-header_file_macros.html#ft_config_config_h","text":"# ifndef FT_CONFIG_CONFIG_H # define FT_CONFIG_CONFIG_H <freetype/config/ftconfig.h> # endif A macro used in #include statements to name the file containing FreeType 2 configuration data.","title":"FT_CONFIG_CONFIG_H"},{"location":"ft2-header_file_macros.html#ft_config_standard_library_h","text":"# ifndef FT_CONFIG_STANDARD_LIBRARY_H # define FT_CONFIG_STANDARD_LIBRARY_H <freetype/config/ftstdlib.h> # endif A macro used in #include statements to name the file containing FreeType 2 interface to the standard C library functions.","title":"FT_CONFIG_STANDARD_LIBRARY_H"},{"location":"ft2-header_file_macros.html#ft_config_options_h","text":"# ifndef FT_CONFIG_OPTIONS_H # define FT_CONFIG_OPTIONS_H <freetype/config/ftoption.h> # endif A macro used in #include statements to name the file containing FreeType 2 project-specific configuration options.","title":"FT_CONFIG_OPTIONS_H"},{"location":"ft2-header_file_macros.html#ft_config_modules_h","text":"# ifndef FT_CONFIG_MODULES_H # define FT_CONFIG_MODULES_H <freetype/config/ftmodule.h> # endif A macro used in #include statements to name the file containing the list of FreeType 2 modules that are statically linked to new library instances in FT_Init_FreeType .","title":"FT_CONFIG_MODULES_H"},{"location":"ft2-header_file_macros.html#ft_freetype_h","text":"# define FT_FREETYPE_H <freetype/freetype.h> A macro used in #include statements to name the file containing the base FreeType 2 API.","title":"FT_FREETYPE_H"},{"location":"ft2-header_file_macros.html#ft_errors_h","text":"# define FT_ERRORS_H <freetype/fterrors.h> A macro used in #include statements to name the file containing the list of FreeType 2 error codes (and messages). It is included by FT_FREETYPE_H .","title":"FT_ERRORS_H"},{"location":"ft2-header_file_macros.html#ft_module_errors_h","text":"# define FT_MODULE_ERRORS_H <freetype/ftmoderr.h> A macro used in #include statements to name the file containing the list of FreeType 2 module error offsets (and messages).","title":"FT_MODULE_ERRORS_H"},{"location":"ft2-header_file_macros.html#ft_system_h","text":"# define FT_SYSTEM_H <freetype/ftsystem.h> A macro used in #include statements to name the file containing the FreeType 2 interface to low-level operations (i.e., memory management and stream i/o). It is included by FT_FREETYPE_H .","title":"FT_SYSTEM_H"},{"location":"ft2-header_file_macros.html#ft_image_h","text":"# define FT_IMAGE_H <freetype/ftimage.h> A macro used in #include statements to name the file containing type definitions related to glyph images (i.e., bitmaps, outlines, scan-converter parameters). It is included by FT_FREETYPE_H .","title":"FT_IMAGE_H"},{"location":"ft2-header_file_macros.html#ft_types_h","text":"# define FT_TYPES_H <freetype/fttypes.h> A macro used in #include statements to name the file containing the basic data types defined by FreeType 2. It is included by FT_FREETYPE_H .","title":"FT_TYPES_H"},{"location":"ft2-header_file_macros.html#ft_list_h","text":"# define FT_LIST_H <freetype/ftlist.h> A macro used in #include statements to name the file containing the list management API of FreeType 2. (Most applications will never need to include this file.)","title":"FT_LIST_H"},{"location":"ft2-header_file_macros.html#ft_outline_h","text":"# define FT_OUTLINE_H <freetype/ftoutln.h> A macro used in #include statements to name the file containing the scalable outline management API of FreeType 2.","title":"FT_OUTLINE_H"},{"location":"ft2-header_file_macros.html#ft_sizes_h","text":"# define FT_SIZES_H <freetype/ftsizes.h> A macro used in #include statements to name the file containing the API which manages multiple FT_Size objects per face.","title":"FT_SIZES_H"},{"location":"ft2-header_file_macros.html#ft_module_h","text":"# define FT_MODULE_H <freetype/ftmodapi.h> A macro used in #include statements to name the file containing the module management API of FreeType 2.","title":"FT_MODULE_H"},{"location":"ft2-header_file_macros.html#ft_render_h","text":"# define FT_RENDER_H <freetype/ftrender.h> A macro used in #include statements to name the file containing the renderer module management API of FreeType 2.","title":"FT_RENDER_H"},{"location":"ft2-header_file_macros.html#ft_driver_h","text":"# define FT_DRIVER_H <freetype/ftdriver.h> A macro used in #include statements to name the file containing structures and macros related to the driver modules.","title":"FT_DRIVER_H"},{"location":"ft2-header_file_macros.html#ft_autohinter_h","text":"# define FT_AUTOHINTER_H FT_DRIVER_H A macro used in #include statements to name the file containing structures and macros related to the auto-hinting module. Deprecated since version 2.9; use FT_DRIVER_H instead.","title":"FT_AUTOHINTER_H"},{"location":"ft2-header_file_macros.html#ft_cff_driver_h","text":"# define FT_CFF_DRIVER_H FT_DRIVER_H A macro used in #include statements to name the file containing structures and macros related to the CFF driver module. Deprecated since version 2.9; use FT_DRIVER_H instead.","title":"FT_CFF_DRIVER_H"},{"location":"ft2-header_file_macros.html#ft_truetype_driver_h","text":"# define FT_TRUETYPE_DRIVER_H FT_DRIVER_H A macro used in #include statements to name the file containing structures and macros related to the TrueType driver module. Deprecated since version 2.9; use FT_DRIVER_H instead.","title":"FT_TRUETYPE_DRIVER_H"},{"location":"ft2-header_file_macros.html#ft_pcf_driver_h","text":"# define FT_PCF_DRIVER_H FT_DRIVER_H A macro used in #include statements to name the file containing structures and macros related to the PCF driver module. Deprecated since version 2.9; use FT_DRIVER_H instead.","title":"FT_PCF_DRIVER_H"},{"location":"ft2-header_file_macros.html#ft_type1_tables_h","text":"# define FT_TYPE1_TABLES_H <freetype/t1tables.h> A macro used in #include statements to name the file containing the types and API specific to the Type 1 format.","title":"FT_TYPE1_TABLES_H"},{"location":"ft2-header_file_macros.html#ft_truetype_ids_h","text":"# define FT_TRUETYPE_IDS_H <freetype/ttnameid.h> A macro used in #include statements to name the file containing the enumeration values which identify name strings, languages, encodings, etc. This file really contains a large set of constant macro definitions, taken from the TrueType and OpenType specifications.","title":"FT_TRUETYPE_IDS_H"},{"location":"ft2-header_file_macros.html#ft_truetype_tables_h","text":"# define FT_TRUETYPE_TABLES_H <freetype/tttables.h> A macro used in #include statements to name the file containing the types and API specific to the TrueType (as well as OpenType) format.","title":"FT_TRUETYPE_TABLES_H"},{"location":"ft2-header_file_macros.html#ft_truetype_tags_h","text":"# define FT_TRUETYPE_TAGS_H <freetype/tttags.h> A macro used in #include statements to name the file containing the definitions of TrueType four-byte \u2018tags\u2019 which identify blocks in SFNT-based font formats (i.e., TrueType and OpenType).","title":"FT_TRUETYPE_TAGS_H"},{"location":"ft2-header_file_macros.html#ft_bdf_h","text":"# define FT_BDF_H <freetype/ftbdf.h> A macro used in #include statements to name the file containing the definitions of an API which accesses BDF-specific strings from a face.","title":"FT_BDF_H"},{"location":"ft2-header_file_macros.html#ft_cid_h","text":"# define FT_CID_H <freetype/ftcid.h> A macro used in #include statements to name the file containing the definitions of an API which access CID font information from a face.","title":"FT_CID_H"},{"location":"ft2-header_file_macros.html#ft_gzip_h","text":"# define FT_GZIP_H <freetype/ftgzip.h> A macro used in #include statements to name the file containing the definitions of an API which supports gzip-compressed files.","title":"FT_GZIP_H"},{"location":"ft2-header_file_macros.html#ft_lzw_h","text":"# define FT_LZW_H <freetype/ftlzw.h> A macro used in #include statements to name the file containing the definitions of an API which supports LZW-compressed files.","title":"FT_LZW_H"},{"location":"ft2-header_file_macros.html#ft_bzip2_h","text":"# define FT_BZIP2_H <freetype/ftbzip2.h> A macro used in #include statements to name the file containing the definitions of an API which supports bzip2-compressed files.","title":"FT_BZIP2_H"},{"location":"ft2-header_file_macros.html#ft_winfonts_h","text":"# define FT_WINFONTS_H <freetype/ftwinfnt.h> A macro used in #include statements to name the file containing the definitions of an API which supports Windows FNT files.","title":"FT_WINFONTS_H"},{"location":"ft2-header_file_macros.html#ft_glyph_h","text":"# define FT_GLYPH_H <freetype/ftglyph.h> A macro used in #include statements to name the file containing the API of the optional glyph management component.","title":"FT_GLYPH_H"},{"location":"ft2-header_file_macros.html#ft_bitmap_h","text":"# define FT_BITMAP_H <freetype/ftbitmap.h> A macro used in #include statements to name the file containing the API of the optional bitmap conversion component.","title":"FT_BITMAP_H"},{"location":"ft2-header_file_macros.html#ft_bbox_h","text":"# define FT_BBOX_H <freetype/ftbbox.h> A macro used in #include statements to name the file containing the API of the optional exact bounding box computation routines.","title":"FT_BBOX_H"},{"location":"ft2-header_file_macros.html#ft_cache_h","text":"# define FT_CACHE_H <freetype/ftcache.h> A macro used in #include statements to name the file containing the API of the optional FreeType 2 cache sub-system.","title":"FT_CACHE_H"},{"location":"ft2-header_file_macros.html#ft_mac_h","text":"# define FT_MAC_H <freetype/ftmac.h> A macro used in #include statements to name the file containing the Macintosh-specific FreeType 2 API. The latter is used to access fonts embedded in resource forks. This header file must be explicitly included by client applications compiled on the Mac (note that the base API still works though).","title":"FT_MAC_H"},{"location":"ft2-header_file_macros.html#ft_multiple_masters_h","text":"# define FT_MULTIPLE_MASTERS_H <freetype/ftmm.h> A macro used in #include statements to name the file containing the optional multiple-masters management API of FreeType 2.","title":"FT_MULTIPLE_MASTERS_H"},{"location":"ft2-header_file_macros.html#ft_sfnt_names_h","text":"# define FT_SFNT_NAMES_H <freetype/ftsnames.h> A macro used in #include statements to name the file containing the optional FreeType 2 API which accesses embedded \u2018name\u2019 strings in SFNT-based font formats (i.e., TrueType and OpenType).","title":"FT_SFNT_NAMES_H"},{"location":"ft2-header_file_macros.html#ft_opentype_validate_h","text":"# define FT_OPENTYPE_VALIDATE_H <freetype/ftotval.h> A macro used in #include statements to name the file containing the optional FreeType 2 API which validates OpenType tables (\u2018BASE\u2019, \u2018GDEF\u2019, \u2018GPOS\u2019, \u2018GSUB\u2019, \u2018JSTF\u2019).","title":"FT_OPENTYPE_VALIDATE_H"},{"location":"ft2-header_file_macros.html#ft_gx_validate_h","text":"# define FT_GX_VALIDATE_H <freetype/ftgxval.h> A macro used in #include statements to name the file containing the optional FreeType 2 API which validates TrueTypeGX/AAT tables (\u2018feat\u2019, \u2018mort\u2019, \u2018morx\u2019, \u2018bsln\u2019, \u2018just\u2019, \u2018kern\u2019, \u2018opbd\u2019, \u2018trak\u2019, \u2018prop\u2019).","title":"FT_GX_VALIDATE_H"},{"location":"ft2-header_file_macros.html#ft_pfr_h","text":"# define FT_PFR_H <freetype/ftpfr.h> A macro used in #include statements to name the file containing the FreeType 2 API which accesses PFR-specific data.","title":"FT_PFR_H"},{"location":"ft2-header_file_macros.html#ft_stroker_h","text":"# define FT_STROKER_H <freetype/ftstroke.h> A macro used in #include statements to name the file containing the FreeType 2 API which provides functions to stroke outline paths.","title":"FT_STROKER_H"},{"location":"ft2-header_file_macros.html#ft_synthesis_h","text":"# define FT_SYNTHESIS_H <freetype/ftsynth.h> A macro used in #include statements to name the file containing the FreeType 2 API which performs artificial obliquing and emboldening.","title":"FT_SYNTHESIS_H"},{"location":"ft2-header_file_macros.html#ft_font_formats_h","text":"# define FT_FONT_FORMATS_H <freetype/ftfntfmt.h> /* deprecated */ # define FT_XFREE86_H FT_FONT_FORMATS_H A macro used in #include statements to name the file containing the FreeType 2 API which provides functions specific to font formats.","title":"FT_FONT_FORMATS_H"},{"location":"ft2-header_file_macros.html#ft_trigonometry_h","text":"# define FT_TRIGONOMETRY_H <freetype/fttrigon.h> A macro used in #include statements to name the file containing the FreeType 2 API which performs trigonometric computations (e.g., cosines and arc tangents).","title":"FT_TRIGONOMETRY_H"},{"location":"ft2-header_file_macros.html#ft_lcd_filter_h","text":"# define FT_LCD_FILTER_H <freetype/ftlcdfil.h> A macro used in #include statements to name the file containing the FreeType 2 API which performs color filtering for subpixel rendering.","title":"FT_LCD_FILTER_H"},{"location":"ft2-header_file_macros.html#ft_incremental_h","text":"# define FT_INCREMENTAL_H <freetype/ftincrem.h> A macro used in #include statements to name the file containing the FreeType 2 API which performs incremental glyph loading.","title":"FT_INCREMENTAL_H"},{"location":"ft2-header_file_macros.html#ft_gasp_h","text":"# define FT_GASP_H <freetype/ftgasp.h> A macro used in #include statements to name the file containing the FreeType 2 API which returns entries from the TrueType GASP table.","title":"FT_GASP_H"},{"location":"ft2-header_file_macros.html#ft_advances_h","text":"# define FT_ADVANCES_H <freetype/ftadvanc.h> A macro used in #include statements to name the file containing the FreeType 2 API which returns individual and ranged glyph advances.","title":"FT_ADVANCES_H"},{"location":"ft2-header_file_macros.html#ft_color_h","text":"# define FT_COLOR_H <freetype/ftcolor.h> A macro used in #include statements to name the file containing the FreeType 2 API which handles the OpenType \u2018CPAL\u2019 table.","title":"FT_COLOR_H"},{"location":"ft2-header_inclusion.html","text":"FreeType \u00bb Docs \u00bb General Remarks \u00bb FreeType's header inclusion scheme FreeType's header inclusion scheme \u00b6 Synopsis \u00b6 To be as flexible as possible (and for historical reasons), you must load file ft2build.h first before other header files, for example #include <ft2build.h> #include <freetype/freetype.h> #include <freetype/ftoutln.h>","title":"FreeType's header inclusion scheme"},{"location":"ft2-header_inclusion.html#freetypes-header-inclusion-scheme","text":"","title":"FreeType's header inclusion scheme"},{"location":"ft2-header_inclusion.html#synopsis","text":"To be as flexible as possible (and for historical reasons), you must load file ft2build.h first before other header files, for example #include <ft2build.h> #include <freetype/freetype.h> #include <freetype/ftoutln.h>","title":"Synopsis"},{"location":"ft2-incremental.html","text":"FreeType \u00bb Docs \u00bb Miscellaneous \u00bb Incremental Loading Incremental Loading \u00b6 Synopsis \u00b6 This section contains various functions used to perform so-called \u2018incremental\u2019 glyph loading. This is a mode where all glyphs loaded from a given FT_Face are provided by the client application. Apart from that, all other tables are loaded normally from the font file. This mode is useful when FreeType is used within another engine, e.g., a PostScript Imaging Processor. To enable this mode, you must use FT_Open_Face , passing an FT_Parameter with the FT_PARAM_TAG_INCREMENTAL tag and an FT_Incremental_Interface value. See the comments for FT_Incremental_InterfaceRec for an example. FT_Incremental \u00b6 Defined in FT_INCREMENTAL_H (freetype/ftincrem.h). typedef struct FT_IncrementalRec_* FT_Incremental ; An opaque type describing a user-provided object used to implement \u2018incremental\u2019 glyph loading within FreeType. This is used to support embedded fonts in certain environments (e.g., PostScript interpreters), where the glyph data isn't in the font file, or must be overridden by different values. note It is up to client applications to create and implement FT_Incremental objects, as long as they provide implementations for the methods FT_Incremental_GetGlyphDataFunc , FT_Incremental_FreeGlyphDataFunc and FT_Incremental_GetGlyphMetricsFunc . See the description of FT_Incremental_InterfaceRec to understand how to use incremental objects with FreeType. FT_Incremental_MetricsRec \u00b6 Defined in FT_INCREMENTAL_H (freetype/ftincrem.h). typedef struct FT_Incremental_MetricsRec_ { FT_Long bearing_x; FT_Long bearing_y; FT_Long advance; FT_Long advance_v; /* since 2.3.12 */ } FT_Incremental_MetricsRec ; A small structure used to contain the basic glyph metrics returned by the FT_Incremental_GetGlyphMetricsFunc method. fields bearing_x Left bearing, in font units. bearing_y Top bearing, in font units. advance Horizontal component of glyph advance, in font units. advance_v Vertical component of glyph advance, in font units. note These correspond to horizontal or vertical metrics depending on the value of the vertical argument to the function FT_Incremental_GetGlyphMetricsFunc . FT_Incremental_Metrics \u00b6 Defined in FT_INCREMENTAL_H (freetype/ftincrem.h). typedef struct FT_Incremental_MetricsRec_* FT_Incremental_Metrics ; A handle to an FT_Incremental_MetricsRec structure. FT_Incremental_GetGlyphDataFunc \u00b6 Defined in FT_INCREMENTAL_H (freetype/ftincrem.h). typedef FT_Error (* FT_Incremental_GetGlyphDataFunc )( FT_Incremental incremental, FT_UInt glyph_index, FT_Data * adata ); A function called by FreeType to access a given glyph's data bytes during FT_Load_Glyph or FT_Load_Char if incremental loading is enabled. Note that the format of the glyph's data bytes depends on the font file format. For TrueType, it must correspond to the raw bytes within the \u2018glyf\u2019 table. For PostScript formats, it must correspond to the unencrypted charstring bytes, without any lenIV header. It is undefined for any other format. input incremental Handle to an opaque FT_Incremental handle provided by the client application. glyph_index Index of relevant glyph. output adata A structure describing the returned glyph data bytes (which will be accessed as a read-only byte block). return FreeType error code. 0 means success. note If this function returns successfully the method FT_Incremental_FreeGlyphDataFunc will be called later to release the data bytes. Nested calls to FT_Incremental_GetGlyphDataFunc can happen for compound glyphs. FT_Incremental_FreeGlyphDataFunc \u00b6 Defined in FT_INCREMENTAL_H (freetype/ftincrem.h). typedef void (* FT_Incremental_FreeGlyphDataFunc )( FT_Incremental incremental, FT_Data * data ); A function used to release the glyph data bytes returned by a successful call to FT_Incremental_GetGlyphDataFunc . input incremental A handle to an opaque FT_Incremental handle provided by the client application. data A structure describing the glyph data bytes (which will be accessed as a read-only byte block). FT_Incremental_GetGlyphMetricsFunc \u00b6 Defined in FT_INCREMENTAL_H (freetype/ftincrem.h). typedef FT_Error (* FT_Incremental_GetGlyphMetricsFunc ) ( FT_Incremental incremental, FT_UInt glyph_index, FT_Bool vertical, FT_Incremental_MetricsRec *ametrics ); A function used to retrieve the basic metrics of a given glyph index before accessing its data. This allows for handling font types such as PCL XL Format 1, Class 2 downloaded TrueType fonts, where the glyph metrics ( hmtx and vmtx tables) are permitted to be omitted from the font, and the relevant metrics included in the header of the glyph outline data. Importantly, this is not intended to allow custom glyph metrics (for example, Postscript Metrics dictionaries), because that conflicts with the requirements of outline hinting. Such custom metrics must be handled separately, by the calling application. input incremental A handle to an opaque FT_Incremental handle provided by the client application. glyph_index Index of relevant glyph. vertical If true, return vertical metrics. ametrics This parameter is used for both input and output. The original glyph metrics, if any, in font units. If metrics are not available all the values must be set to zero. output ametrics The glyph metrics in font units. FT_Incremental_FuncsRec \u00b6 Defined in FT_INCREMENTAL_H (freetype/ftincrem.h). typedef struct FT_Incremental_FuncsRec_ { FT_Incremental_GetGlyphDataFunc get_glyph_data; FT_Incremental_FreeGlyphDataFunc free_glyph_data; FT_Incremental_GetGlyphMetricsFunc get_glyph_metrics; } FT_Incremental_FuncsRec ; A table of functions for accessing fonts that load data incrementally. Used in FT_Incremental_InterfaceRec . fields get_glyph_data The function to get glyph data. Must not be null. free_glyph_data The function to release glyph data. Must not be null. get_glyph_metrics The function to get glyph metrics. May be null if the font does not require it. FT_Incremental_InterfaceRec \u00b6 Defined in FT_INCREMENTAL_H (freetype/ftincrem.h). typedef struct FT_Incremental_InterfaceRec_ { const FT_Incremental_FuncsRec * funcs; FT_Incremental object; } FT_Incremental_InterfaceRec ; A structure to be used with FT_Open_Face to indicate that the user wants to support incremental glyph loading. You should use it with FT_PARAM_TAG_INCREMENTAL as in the following example: FT_Incremental_InterfaceRec inc_int; FT_Parameter parameter; FT_Open_Args open_args; // set up incremental descriptor inc_int.funcs = my_funcs; inc_int.object = my_object; // set up optional parameter parameter.tag = FT_PARAM_TAG_INCREMENTAL; parameter.data = &inc_int; // set up FT_Open_Args structure open_args.flags = FT_OPEN_PATHNAME | FT_OPEN_PARAMS; open_args.pathname = my_font_pathname; open_args.num_params = 1; open_args.params = &parameter; // we use one optional argument // open the font error = FT_Open_Face( library, &open_args, index, &face ); ... FT_Incremental_Interface \u00b6 Defined in FT_INCREMENTAL_H (freetype/ftincrem.h). typedef FT_Incremental_InterfaceRec * FT_Incremental_Interface ; A pointer to an FT_Incremental_InterfaceRec structure.","title":"Incremental Loading"},{"location":"ft2-incremental.html#incremental-loading","text":"","title":"Incremental Loading"},{"location":"ft2-incremental.html#synopsis","text":"This section contains various functions used to perform so-called \u2018incremental\u2019 glyph loading. This is a mode where all glyphs loaded from a given FT_Face are provided by the client application. Apart from that, all other tables are loaded normally from the font file. This mode is useful when FreeType is used within another engine, e.g., a PostScript Imaging Processor. To enable this mode, you must use FT_Open_Face , passing an FT_Parameter with the FT_PARAM_TAG_INCREMENTAL tag and an FT_Incremental_Interface value. See the comments for FT_Incremental_InterfaceRec for an example.","title":"Synopsis"},{"location":"ft2-incremental.html#ft_incremental","text":"Defined in FT_INCREMENTAL_H (freetype/ftincrem.h). typedef struct FT_IncrementalRec_* FT_Incremental ; An opaque type describing a user-provided object used to implement \u2018incremental\u2019 glyph loading within FreeType. This is used to support embedded fonts in certain environments (e.g., PostScript interpreters), where the glyph data isn't in the font file, or must be overridden by different values.","title":"FT_Incremental"},{"location":"ft2-incremental.html#ft_incremental_metricsrec","text":"Defined in FT_INCREMENTAL_H (freetype/ftincrem.h). typedef struct FT_Incremental_MetricsRec_ { FT_Long bearing_x; FT_Long bearing_y; FT_Long advance; FT_Long advance_v; /* since 2.3.12 */ } FT_Incremental_MetricsRec ; A small structure used to contain the basic glyph metrics returned by the FT_Incremental_GetGlyphMetricsFunc method.","title":"FT_Incremental_MetricsRec"},{"location":"ft2-incremental.html#ft_incremental_metrics","text":"Defined in FT_INCREMENTAL_H (freetype/ftincrem.h). typedef struct FT_Incremental_MetricsRec_* FT_Incremental_Metrics ; A handle to an FT_Incremental_MetricsRec structure.","title":"FT_Incremental_Metrics"},{"location":"ft2-incremental.html#ft_incremental_getglyphdatafunc","text":"Defined in FT_INCREMENTAL_H (freetype/ftincrem.h). typedef FT_Error (* FT_Incremental_GetGlyphDataFunc )( FT_Incremental incremental, FT_UInt glyph_index, FT_Data * adata ); A function called by FreeType to access a given glyph's data bytes during FT_Load_Glyph or FT_Load_Char if incremental loading is enabled. Note that the format of the glyph's data bytes depends on the font file format. For TrueType, it must correspond to the raw bytes within the \u2018glyf\u2019 table. For PostScript formats, it must correspond to the unencrypted charstring bytes, without any lenIV header. It is undefined for any other format.","title":"FT_Incremental_GetGlyphDataFunc"},{"location":"ft2-incremental.html#ft_incremental_freeglyphdatafunc","text":"Defined in FT_INCREMENTAL_H (freetype/ftincrem.h). typedef void (* FT_Incremental_FreeGlyphDataFunc )( FT_Incremental incremental, FT_Data * data ); A function used to release the glyph data bytes returned by a successful call to FT_Incremental_GetGlyphDataFunc .","title":"FT_Incremental_FreeGlyphDataFunc"},{"location":"ft2-incremental.html#ft_incremental_getglyphmetricsfunc","text":"Defined in FT_INCREMENTAL_H (freetype/ftincrem.h). typedef FT_Error (* FT_Incremental_GetGlyphMetricsFunc ) ( FT_Incremental incremental, FT_UInt glyph_index, FT_Bool vertical, FT_Incremental_MetricsRec *ametrics ); A function used to retrieve the basic metrics of a given glyph index before accessing its data. This allows for handling font types such as PCL XL Format 1, Class 2 downloaded TrueType fonts, where the glyph metrics ( hmtx and vmtx tables) are permitted to be omitted from the font, and the relevant metrics included in the header of the glyph outline data. Importantly, this is not intended to allow custom glyph metrics (for example, Postscript Metrics dictionaries), because that conflicts with the requirements of outline hinting. Such custom metrics must be handled separately, by the calling application.","title":"FT_Incremental_GetGlyphMetricsFunc"},{"location":"ft2-incremental.html#ft_incremental_funcsrec","text":"Defined in FT_INCREMENTAL_H (freetype/ftincrem.h). typedef struct FT_Incremental_FuncsRec_ { FT_Incremental_GetGlyphDataFunc get_glyph_data; FT_Incremental_FreeGlyphDataFunc free_glyph_data; FT_Incremental_GetGlyphMetricsFunc get_glyph_metrics; } FT_Incremental_FuncsRec ; A table of functions for accessing fonts that load data incrementally. Used in FT_Incremental_InterfaceRec .","title":"FT_Incremental_FuncsRec"},{"location":"ft2-incremental.html#ft_incremental_interfacerec","text":"Defined in FT_INCREMENTAL_H (freetype/ftincrem.h). typedef struct FT_Incremental_InterfaceRec_ { const FT_Incremental_FuncsRec * funcs; FT_Incremental object; } FT_Incremental_InterfaceRec ; A structure to be used with FT_Open_Face to indicate that the user wants to support incremental glyph loading. You should use it with FT_PARAM_TAG_INCREMENTAL as in the following example: FT_Incremental_InterfaceRec inc_int; FT_Parameter parameter; FT_Open_Args open_args; // set up incremental descriptor inc_int.funcs = my_funcs; inc_int.object = my_object; // set up optional parameter parameter.tag = FT_PARAM_TAG_INCREMENTAL; parameter.data = &inc_int; // set up FT_Open_Args structure open_args.flags = FT_OPEN_PATHNAME | FT_OPEN_PARAMS; open_args.pathname = my_font_pathname; open_args.num_params = 1; open_args.params = &parameter; // we use one optional argument // open the font error = FT_Open_Face( library, &open_args, index, &face ); ...","title":"FT_Incremental_InterfaceRec"},{"location":"ft2-incremental.html#ft_incremental_interface","text":"Defined in FT_INCREMENTAL_H (freetype/ftincrem.h). typedef FT_Incremental_InterfaceRec * FT_Incremental_Interface ; A pointer to an FT_Incremental_InterfaceRec structure.","title":"FT_Incremental_Interface"},{"location":"ft2-index.html","text":"FreeType \u00bb Docs \u00bb Global Index FreeType-2.11.1 API Reference \u00b6 B \u00b6 BDF_Property BDF_PROPERTY_TYPE_ATOM BDF_PROPERTY_TYPE_CARDINAL BDF_PROPERTY_TYPE_INTEGER BDF_PROPERTY_TYPE_NONE BDF_PropertyRec BDF_PropertyType C \u00b6 CID_FaceDict CID_FaceDictRec CID_FaceInfo CID_FaceInfoRec CID_FontDict CID_Info D \u00b6 darkening-parameters default-script F \u00b6 fallback-script FREETYPE_MAJOR FREETYPE_MINOR FREETYPE_PATCH FREETYPE_XXX FT_Activate_Size FT_Add_Default_Modules FT_Add_Module FT_ADVANCE_FLAG_FAST_ONLY FT_ADVANCES_H FT_Affine23 FT_Alloc_Func FT_Angle FT_ANGLE_2PI FT_Angle_Diff FT_ANGLE_PI FT_ANGLE_PI2 FT_ANGLE_PI4 FT_Atan2 FT_Attach_File FT_Attach_Stream FT_AUTOHINTER_H FT_AUTOHINTER_SCRIPT_CJK FT_AUTOHINTER_SCRIPT_INDIC FT_AUTOHINTER_SCRIPT_LATIN FT_AUTOHINTER_SCRIPT_NONE FT_AUTOHINTER_SCRIPT_XXX FT_BBox FT_BBOX_H FT_BDF_H FT_Bitmap FT_Bitmap_Blend FT_Bitmap_Convert FT_Bitmap_Copy FT_Bitmap_Done FT_Bitmap_Embolden FT_BITMAP_H FT_Bitmap_Init FT_Bitmap_Size FT_BitmapGlyph FT_BitmapGlyphRec FT_Bool FT_Byte FT_Bytes FT_BZIP2_H FT_CACHE_H FT_CeilFix FT_CFF_DRIVER_H FT_Char FT_CharMap FT_CharMapRec FT_CID_H FT_ClassicKern_Free FT_ClassicKern_Validate FT_ClipBox FT_Color FT_COLOR_H FT_COLOR_INCLUDE_ROOT_TRANSFORM FT_COLOR_NO_ROOT_TRANSFORM FT_Color_Root_Transform FT_ColorIndex FT_ColorLine FT_ColorStop FT_ColorStopIterator FT_COLR_Paint FT_Composite_Mode FT_CONFIG_CONFIG_H FT_CONFIG_MODULES_H FT_CONFIG_OPTIONS_H FT_CONFIG_STANDARD_LIBRARY_H FT_Cos FT_Custom_Log_Handler FT_Data FT_DEBUG_HOOK_TRUETYPE FT_DEBUG_HOOK_XXX FT_DebugHook_Func FT_DivFix FT_Done_Face FT_Done_FreeType FT_Done_Glyph FT_Done_Library FT_Done_MM_Var FT_Done_Size FT_Driver FT_DRIVER_H FT_ENC_TAG FT_Encoding FT_ENCODING_ADOBE_CUSTOM FT_ENCODING_ADOBE_EXPERT FT_ENCODING_ADOBE_LATIN_1 FT_ENCODING_ADOBE_STANDARD FT_ENCODING_APPLE_ROMAN FT_ENCODING_BIG5 FT_ENCODING_JOHAB FT_ENCODING_MS_BIG5 FT_ENCODING_MS_GB2312 FT_ENCODING_MS_JOHAB FT_ENCODING_MS_SJIS FT_ENCODING_MS_SYMBOL FT_ENCODING_MS_WANSUNG FT_ENCODING_NONE FT_ENCODING_OLD_LATIN_2 FT_ENCODING_PRC FT_ENCODING_SJIS FT_ENCODING_UNICODE FT_ENCODING_WANSUNG FT_Err_XXX FT_Error FT_Error_String FT_ERRORS_H FT_F26Dot6 FT_F2Dot14 FT_Face FT_Face_CheckTrueTypePatents FT_FACE_DRIVER_NAME FT_FACE_FLAG_CID_KEYED FT_FACE_FLAG_COLOR FT_FACE_FLAG_EXTERNAL_STREAM FT_FACE_FLAG_FAST_GLYPHS FT_FACE_FLAG_FIXED_SIZES FT_FACE_FLAG_FIXED_WIDTH FT_FACE_FLAG_GLYPH_NAMES FT_FACE_FLAG_HINTER FT_FACE_FLAG_HORIZONTAL FT_FACE_FLAG_KERNING FT_FACE_FLAG_MULTIPLE_MASTERS FT_FACE_FLAG_SCALABLE FT_FACE_FLAG_SFNT FT_FACE_FLAG_TRICKY FT_FACE_FLAG_VARIATION FT_FACE_FLAG_VERTICAL FT_FACE_FLAG_XXX FT_Face_GetCharsOfVariant FT_Face_GetCharVariantIndex FT_Face_GetCharVariantIsDefault FT_Face_GetVariantSelectors FT_Face_GetVariantsOfChar FT_Face_Internal FT_Face_Properties FT_Face_SetUnpatentedHinting FT_FaceRec FT_Fixed FT_FloorFix FT_FONT_FORMATS_H FT_Free_Func FT_FREETYPE_H FT_FSTYPE_BITMAP_EMBEDDING_ONLY FT_FSTYPE_EDITABLE_EMBEDDING FT_FSTYPE_INSTALLABLE_EMBEDDING FT_FSTYPE_NO_SUBSETTING FT_FSTYPE_PREVIEW_AND_PRINT_EMBEDDING FT_FSTYPE_RESTRICTED_LICENSE_EMBEDDING FT_FSTYPE_XXX FT_FWord FT_GASP_DO_GRAY FT_GASP_DO_GRIDFIT FT_GASP_H FT_GASP_NO_TABLE FT_GASP_SYMMETRIC_GRIDFIT FT_GASP_SYMMETRIC_SMOOTHING FT_GASP_XXX FT_Generic FT_Generic_Finalizer FT_Get_Advance FT_Get_Advances FT_Get_BDF_Charset_ID FT_Get_BDF_Property FT_Get_Char_Index FT_Get_Charmap_Index FT_Get_CID_From_Glyph_Index FT_Get_CID_Is_Internally_CID_Keyed FT_Get_CID_Registry_Ordering_Supplement FT_Get_CMap_Format FT_Get_CMap_Language_ID FT_Get_Color_Glyph_ClipBox FT_Get_Color_Glyph_Layer FT_Get_Color_Glyph_Paint FT_Get_Colorline_Stops FT_Get_First_Char FT_Get_Font_Format FT_Get_FSType_Flags FT_Get_Gasp FT_Get_Glyph FT_Get_Glyph_Name FT_Get_Kerning FT_Get_MM_Blend_Coordinates FT_Get_MM_Var FT_Get_MM_WeightVector FT_Get_Module FT_Get_Multi_Master FT_Get_Name_Index FT_Get_Next_Char FT_Get_Paint FT_Get_Paint_Layers FT_Get_PFR_Advance FT_Get_PFR_Kerning FT_Get_PFR_Metrics FT_Get_Postscript_Name FT_Get_PS_Font_Info FT_Get_PS_Font_Private FT_Get_PS_Font_Value FT_Get_Renderer FT_Get_Sfnt_LangTag FT_Get_Sfnt_Name FT_Get_Sfnt_Name_Count FT_Get_Sfnt_Table FT_Get_SubGlyph_Info FT_Get_Track_Kerning FT_Get_Transform FT_Get_TrueType_Engine_Type FT_Get_Var_Axis_Flags FT_Get_Var_Blend_Coordinates FT_Get_Var_Design_Coordinates FT_Get_WinFNT_Header FT_GetFile_From_Mac_ATS_Name FT_GetFile_From_Mac_Name FT_GetFilePath_From_Mac_ATS_Name FT_Glyph FT_GLYPH_BBOX_GRIDFIT FT_Glyph_BBox_Mode FT_GLYPH_BBOX_PIXELS FT_GLYPH_BBOX_SUBPIXELS FT_GLYPH_BBOX_TRUNCATE FT_GLYPH_BBOX_UNSCALED FT_Glyph_Copy FT_Glyph_Format FT_GLYPH_FORMAT_BITMAP FT_GLYPH_FORMAT_COMPOSITE FT_GLYPH_FORMAT_NONE FT_GLYPH_FORMAT_OUTLINE FT_GLYPH_FORMAT_PLOTTER FT_Glyph_Get_CBox FT_GLYPH_H FT_Glyph_Metrics FT_Glyph_Stroke FT_Glyph_StrokeBorder FT_Glyph_To_Bitmap FT_Glyph_Transform FT_GlyphRec FT_GlyphSlot FT_GlyphSlot_Own_Bitmap FT_GlyphSlotRec FT_GX_VALIDATE_H FT_GZIP_H FT_Gzip_Uncompress FT_HAS_COLOR FT_HAS_FAST_GLYPHS FT_HAS_FIXED_SIZES FT_HAS_GLYPH_NAMES FT_HAS_HORIZONTAL FT_HAS_KERNING FT_HAS_MULTIPLE_MASTERS FT_Has_PS_Glyph_Names FT_HAS_VERTICAL FT_HINTING_ADOBE FT_HINTING_FREETYPE FT_HINTING_XXX FT_IMAGE_H FT_IMAGE_TAG FT_Incremental FT_Incremental_FreeGlyphDataFunc FT_Incremental_FuncsRec FT_Incremental_GetGlyphDataFunc FT_Incremental_GetGlyphMetricsFunc FT_INCREMENTAL_H FT_Incremental_Interface FT_Incremental_InterfaceRec FT_Incremental_Metrics FT_Incremental_MetricsRec FT_Init_FreeType FT_Int FT_Int16 FT_Int32 FT_Int64 FT_IS_CID_KEYED FT_IS_FIXED_WIDTH FT_IS_NAMED_INSTANCE FT_IS_SCALABLE FT_IS_SFNT FT_IS_TRICKY FT_IS_VARIATION FT_KERNING_DEFAULT FT_Kerning_Mode FT_KERNING_UNFITTED FT_KERNING_UNSCALED FT_LayerIterator FT_LCD_FILTER_DEFAULT FT_LCD_FILTER_H FT_LCD_FILTER_LEGACY FT_LCD_FILTER_LEGACY1 FT_LCD_FILTER_LIGHT FT_LCD_FILTER_NONE FT_LcdFilter FT_LcdFiveTapFilter FT_Library FT_Library_SetLcdFilter FT_Library_SetLcdFilterWeights FT_Library_SetLcdGeometry FT_Library_Version FT_List FT_List_Add FT_List_Destructor FT_List_Finalize FT_List_Find FT_LIST_H FT_List_Insert FT_List_Iterate FT_List_Iterator FT_List_Remove FT_List_Up FT_ListNode FT_ListNodeRec FT_ListRec FT_LOAD_BITMAP_METRICS_ONLY FT_Load_Char FT_LOAD_COLOR FT_LOAD_COMPUTE_METRICS FT_LOAD_CROP_BITMAP FT_LOAD_DEFAULT FT_LOAD_FORCE_AUTOHINT FT_Load_Glyph FT_LOAD_IGNORE_GLOBAL_ADVANCE_WIDTH FT_LOAD_IGNORE_TRANSFORM FT_LOAD_LINEAR_DESIGN FT_LOAD_MONOCHROME FT_LOAD_NO_AUTOHINT FT_LOAD_NO_BITMAP FT_LOAD_NO_HINTING FT_LOAD_NO_RECURSE FT_LOAD_NO_SCALE FT_LOAD_PEDANTIC FT_LOAD_RENDER FT_Load_Sfnt_Table FT_LOAD_TARGET_LCD FT_LOAD_TARGET_LCD_V FT_LOAD_TARGET_LIGHT FT_LOAD_TARGET_MODE FT_LOAD_TARGET_MONO FT_LOAD_TARGET_NORMAL FT_LOAD_TARGET_XXX FT_LOAD_VERTICAL_LAYOUT FT_LOAD_XXX FT_Long FT_LZW_H FT_MAC_H FT_MAKE_TAG FT_Matrix FT_Matrix_Invert FT_Matrix_Multiply FT_Memory FT_MemoryRec FT_MM_Axis FT_MM_Var FT_Module FT_Module_Class FT_Module_Constructor FT_Module_Destructor FT_MODULE_ERRORS_H FT_MODULE_H FT_Module_Requester FT_MulDiv FT_MulFix FT_Multi_Master FT_MULTIPLE_MASTERS_H FT_New_Face FT_New_Face_From_FOND FT_New_Face_From_FSRef FT_New_Face_From_FSSpec FT_New_Glyph FT_New_Library FT_New_Memory_Face FT_New_Size FT_Offset FT_OpaquePaint FT_Open_Args FT_OPEN_DRIVER FT_Open_Face FT_OPEN_MEMORY FT_OPEN_PARAMS FT_OPEN_PATHNAME FT_OPEN_STREAM FT_OPEN_XXX FT_OpenType_Free FT_OpenType_Validate FT_OPENTYPE_VALIDATE_H FT_Orientation FT_ORIENTATION_FILL_LEFT FT_ORIENTATION_FILL_RIGHT FT_ORIENTATION_NONE FT_ORIENTATION_POSTSCRIPT FT_ORIENTATION_TRUETYPE FT_Outline FT_Outline_Check FT_Outline_ConicToFunc FT_Outline_Copy FT_Outline_CubicToFunc FT_Outline_Decompose FT_Outline_Done FT_Outline_Embolden FT_Outline_EmboldenXY FT_OUTLINE_EVEN_ODD_FILL FT_Outline_Funcs FT_Outline_Get_BBox FT_Outline_Get_Bitmap FT_Outline_Get_CBox FT_Outline_Get_Orientation FT_Outline_GetInsideBorder FT_Outline_GetOutsideBorder FT_OUTLINE_H FT_OUTLINE_HIGH_PRECISION FT_OUTLINE_IGNORE_DROPOUTS FT_OUTLINE_INCLUDE_STUBS FT_Outline_LineToFunc FT_Outline_MoveToFunc FT_Outline_New FT_OUTLINE_NONE FT_OUTLINE_OVERLAP FT_OUTLINE_OWNER FT_Outline_Render FT_Outline_Reverse FT_OUTLINE_REVERSE_FILL FT_OUTLINE_SINGLE_PASS FT_OUTLINE_SMART_DROPOUTS FT_Outline_Transform FT_Outline_Translate FT_OUTLINE_XXX FT_OutlineGlyph FT_OutlineGlyphRec FT_PaintColrGlyph FT_PaintColrLayers FT_PaintComposite FT_PaintExtend FT_PaintFormat FT_PaintGlyph FT_PaintLinearGradient FT_PaintRadialGradient FT_PaintRotate FT_PaintScale FT_PaintSkew FT_PaintSolid FT_PaintSweepGradient FT_PaintTransform FT_PaintTranslate FT_Palette_Data FT_Palette_Data_Get FT_PALETTE_FOR_DARK_BACKGROUND FT_PALETTE_FOR_LIGHT_BACKGROUND FT_Palette_Select FT_Palette_Set_Foreground_Color FT_PALETTE_XXX FT_PARAM_TAG_IGNORE_TYPOGRAPHIC_FAMILY FT_PARAM_TAG_IGNORE_TYPOGRAPHIC_SUBFAMILY FT_PARAM_TAG_INCREMENTAL FT_PARAM_TAG_LCD_FILTER_WEIGHTS FT_PARAM_TAG_RANDOM_SEED FT_PARAM_TAG_STEM_DARKENING FT_PARAM_TAG_UNPATENTED_HINTING FT_Parameter FT_PCF_DRIVER_H FT_PFR_H FT_Pixel_Mode FT_PIXEL_MODE_BGRA FT_PIXEL_MODE_GRAY FT_PIXEL_MODE_GRAY2 FT_PIXEL_MODE_GRAY4 FT_PIXEL_MODE_LCD FT_PIXEL_MODE_LCD_V FT_PIXEL_MODE_MONO FT_PIXEL_MODE_NONE FT_Pointer FT_Pos FT_Prop_GlyphToScriptMap FT_Prop_IncreaseXHeight FT_Property_Get FT_Property_Set FT_PtrDist FT_Raster FT_Raster_BitSet_Func FT_Raster_BitTest_Func FT_Raster_DoneFunc FT_RASTER_FLAG_AA FT_RASTER_FLAG_CLIP FT_RASTER_FLAG_DEFAULT FT_RASTER_FLAG_DIRECT FT_RASTER_FLAG_SDF FT_RASTER_FLAG_XXX FT_Raster_Funcs FT_Raster_NewFunc FT_Raster_Params FT_Raster_RenderFunc FT_Raster_ResetFunc FT_Raster_SetModeFunc FT_Realloc_Func FT_Reference_Face FT_Reference_Library FT_Remove_Module FT_Render_Glyph FT_RENDER_H FT_Render_Mode FT_RENDER_MODE_LCD FT_RENDER_MODE_LCD_V FT_RENDER_MODE_LIGHT FT_RENDER_MODE_MONO FT_RENDER_MODE_NORMAL FT_RENDER_MODE_SDF FT_Renderer FT_Renderer_Class FT_Request_Size FT_RoundFix FT_Select_Charmap FT_Select_Size FT_Set_Char_Size FT_Set_Charmap FT_Set_Debug_Hook FT_Set_Default_Log_Handler FT_Set_Default_Properties FT_Set_Log_Handler FT_Set_MM_Blend_Coordinates FT_Set_MM_Design_Coordinates FT_Set_MM_WeightVector FT_Set_Named_Instance FT_Set_Pixel_Sizes FT_Set_Renderer FT_Set_Transform FT_Set_Var_Blend_Coordinates FT_Set_Var_Design_Coordinates FT_SFNT_HEAD FT_SFNT_HHEA FT_SFNT_MAXP FT_SFNT_NAMES_H FT_SFNT_OS2 FT_SFNT_PCLT FT_SFNT_POST FT_Sfnt_Table_Info FT_Sfnt_Tag FT_SFNT_VHEA FT_SfntLangTag FT_SfntName FT_Short FT_Sin FT_Size FT_Size_Internal FT_Size_Metrics FT_Size_Request FT_Size_Request_Type FT_SIZE_REQUEST_TYPE_BBOX FT_SIZE_REQUEST_TYPE_CELL FT_SIZE_REQUEST_TYPE_NOMINAL FT_SIZE_REQUEST_TYPE_REAL_DIM FT_SIZE_REQUEST_TYPE_SCALES FT_Size_RequestRec FT_SizeRec FT_SIZES_H FT_Slot_Internal FT_Span FT_SpanFunc FT_Stream FT_Stream_CloseFunc FT_Stream_IoFunc FT_Stream_OpenBzip2 FT_Stream_OpenGzip FT_Stream_OpenLZW FT_StreamDesc FT_StreamRec FT_String FT_Stroker FT_Stroker_BeginSubPath FT_STROKER_BORDER_LEFT FT_STROKER_BORDER_RIGHT FT_Stroker_ConicTo FT_Stroker_CubicTo FT_Stroker_Done FT_Stroker_EndSubPath FT_Stroker_Export FT_Stroker_ExportBorder FT_Stroker_GetBorderCounts FT_Stroker_GetCounts FT_STROKER_H FT_Stroker_LineCap FT_STROKER_LINECAP_BUTT FT_STROKER_LINECAP_ROUND FT_STROKER_LINECAP_SQUARE FT_Stroker_LineJoin FT_STROKER_LINEJOIN_BEVEL FT_STROKER_LINEJOIN_MITER FT_STROKER_LINEJOIN_MITER_FIXED FT_STROKER_LINEJOIN_MITER_VARIABLE FT_STROKER_LINEJOIN_ROUND FT_Stroker_LineTo FT_Stroker_New FT_Stroker_ParseOutline FT_Stroker_Rewind FT_Stroker_Set FT_StrokerBorder FT_STYLE_FLAG_BOLD FT_STYLE_FLAG_ITALIC FT_STYLE_FLAG_XXX FT_SubGlyph FT_SUBGLYPH_FLAG_2X2 FT_SUBGLYPH_FLAG_ARGS_ARE_WORDS FT_SUBGLYPH_FLAG_ARGS_ARE_XY_VALUES FT_SUBGLYPH_FLAG_ROUND_XY_TO_GRID FT_SUBGLYPH_FLAG_SCALE FT_SUBGLYPH_FLAG_USE_MY_METRICS FT_SUBGLYPH_FLAG_XXX FT_SUBGLYPH_FLAG_XY_SCALE FT_SYNTHESIS_H FT_SYSTEM_H FT_Tag FT_Tan FT_Trace_Set_Default_Level FT_Trace_Set_Level FT_TRIGONOMETRY_H FT_TRUETYPE_DRIVER_H FT_TRUETYPE_ENGINE_TYPE_NONE FT_TRUETYPE_ENGINE_TYPE_PATENTED FT_TRUETYPE_ENGINE_TYPE_UNPATENTED FT_TRUETYPE_IDS_H FT_TRUETYPE_TABLES_H FT_TRUETYPE_TAGS_H FT_TrueTypeEngineType FT_TrueTypeGX_Free FT_TrueTypeGX_Validate FT_TYPE1_TABLES_H FT_TYPES_H FT_UFWord FT_UInt FT_UInt16 FT_UInt32 FT_UInt64 FT_ULong FT_UnitVector FT_UShort FT_VALIDATE_APPLE FT_VALIDATE_BASE FT_VALIDATE_bsln FT_VALIDATE_CKERN FT_VALIDATE_CKERNXXX FT_VALIDATE_feat FT_VALIDATE_GDEF FT_VALIDATE_GPOS FT_VALIDATE_GSUB FT_VALIDATE_GX FT_VALIDATE_GX_LENGTH FT_VALIDATE_GXXXX FT_VALIDATE_JSTF FT_VALIDATE_just FT_VALIDATE_kern FT_VALIDATE_lcar FT_VALIDATE_MATH FT_VALIDATE_mort FT_VALIDATE_morx FT_VALIDATE_MS FT_VALIDATE_opbd FT_VALIDATE_OT FT_VALIDATE_OTXXX FT_VALIDATE_prop FT_VALIDATE_trak FT_Var_Axis FT_VAR_AXIS_FLAG_HIDDEN FT_VAR_AXIS_FLAG_XXX FT_Var_Named_Style FT_Vector FT_Vector_From_Polar FT_Vector_Length FT_Vector_Polarize FT_Vector_Rotate FT_Vector_Transform FT_Vector_Unit FT_WinFNT_Header FT_WinFNT_HeaderRec FT_WinFNT_ID_CP1250 FT_WinFNT_ID_CP1251 FT_WinFNT_ID_CP1252 FT_WinFNT_ID_CP1253 FT_WinFNT_ID_CP1254 FT_WinFNT_ID_CP1255 FT_WinFNT_ID_CP1256 FT_WinFNT_ID_CP1257 FT_WinFNT_ID_CP1258 FT_WinFNT_ID_CP1361 FT_WinFNT_ID_CP874 FT_WinFNT_ID_CP932 FT_WinFNT_ID_CP936 FT_WinFNT_ID_CP949 FT_WinFNT_ID_CP950 FT_WinFNT_ID_DEFAULT FT_WinFNT_ID_MAC FT_WinFNT_ID_OEM FT_WinFNT_ID_SYMBOL FT_WinFNT_ID_XXX FT_WINFONTS_H FTC_CMapCache FTC_CMapCache_Lookup FTC_CMapCache_New FTC_Face_Requester FTC_FaceID FTC_ImageCache FTC_ImageCache_Lookup FTC_ImageCache_LookupScaler FTC_ImageCache_New FTC_ImageType FTC_ImageTypeRec FTC_Manager FTC_Manager_Done FTC_Manager_LookupFace FTC_Manager_LookupSize FTC_Manager_New FTC_Manager_RemoveFaceID FTC_Manager_Reset FTC_Node FTC_Node_Unref FTC_SBit FTC_SBitCache FTC_SBitCache_Lookup FTC_SBitCache_LookupScaler FTC_SBitCache_New FTC_SBitRec FTC_Scaler FTC_ScalerRec G \u00b6 glyph-to-script-map H \u00b6 hinting-engine I \u00b6 increase-x-height interpreter-version N \u00b6 no-long-family-names no-stem-darkening P \u00b6 PS_DICT_BLUE_FUZZ PS_DICT_BLUE_SCALE PS_DICT_BLUE_SHIFT PS_DICT_BLUE_VALUE PS_DICT_CHAR_STRING PS_DICT_CHAR_STRING_KEY PS_DICT_ENCODING_ENTRY PS_DICT_ENCODING_TYPE PS_DICT_FAMILY_BLUE PS_DICT_FAMILY_NAME PS_DICT_FAMILY_OTHER_BLUE PS_DICT_FONT_BBOX PS_DICT_FONT_MATRIX PS_DICT_FONT_NAME PS_DICT_FONT_TYPE PS_DICT_FORCE_BOLD PS_DICT_FS_TYPE PS_DICT_FULL_NAME PS_DICT_IS_FIXED_PITCH PS_DICT_ITALIC_ANGLE PS_Dict_Keys PS_DICT_LANGUAGE_GROUP PS_DICT_LEN_IV PS_DICT_MIN_FEATURE PS_DICT_NOTICE PS_DICT_NUM_BLUE_VALUES PS_DICT_NUM_CHAR_STRINGS PS_DICT_NUM_FAMILY_BLUES PS_DICT_NUM_FAMILY_OTHER_BLUES PS_DICT_NUM_OTHER_BLUES PS_DICT_NUM_STEM_SNAP_H PS_DICT_NUM_STEM_SNAP_V PS_DICT_NUM_SUBRS PS_DICT_OTHER_BLUE PS_DICT_PAINT_TYPE PS_DICT_PASSWORD PS_DICT_RND_STEM_UP PS_DICT_STD_HW PS_DICT_STD_VW PS_DICT_STEM_SNAP_H PS_DICT_STEM_SNAP_V PS_DICT_SUBR PS_DICT_UNDERLINE_POSITION PS_DICT_UNDERLINE_THICKNESS PS_DICT_UNIQUE_ID PS_DICT_VERSION PS_DICT_WEIGHT PS_FontInfo PS_FontInfoRec PS_Private PS_PrivateRec R \u00b6 random-seed T \u00b6 T1_BLEND_BLUE_SCALE T1_BLEND_BLUE_SHIFT T1_BLEND_BLUE_VALUES T1_BLEND_FAMILY_BLUES T1_BLEND_FAMILY_OTHER_BLUES T1_Blend_Flags T1_BLEND_FORCE_BOLD T1_BLEND_ITALIC_ANGLE T1_BLEND_OTHER_BLUES T1_BLEND_STANDARD_HEIGHT T1_BLEND_STANDARD_WIDTH T1_BLEND_STEM_SNAP_HEIGHTS T1_BLEND_STEM_SNAP_WIDTHS T1_BLEND_UNDERLINE_POSITION T1_BLEND_UNDERLINE_THICKNESS T1_ENCODING_TYPE_ARRAY T1_ENCODING_TYPE_EXPERT T1_ENCODING_TYPE_ISOLATIN1 T1_ENCODING_TYPE_NONE T1_ENCODING_TYPE_STANDARD T1_EncodingType T1_FontInfo T1_Private TT_ADOBE_ID_CUSTOM TT_ADOBE_ID_EXPERT TT_ADOBE_ID_LATIN_1 TT_ADOBE_ID_STANDARD TT_ADOBE_ID_XXX TT_APPLE_ID_DEFAULT TT_APPLE_ID_FULL_UNICODE TT_APPLE_ID_ISO_10646 TT_APPLE_ID_UNICODE_1_1 TT_APPLE_ID_UNICODE_2_0 TT_APPLE_ID_UNICODE_32 TT_APPLE_ID_VARIANT_SELECTOR TT_APPLE_ID_XXX TT_Header TT_HoriHeader TT_INTERPRETER_VERSION_35 TT_INTERPRETER_VERSION_38 TT_INTERPRETER_VERSION_40 TT_INTERPRETER_VERSION_XXX TT_ISO_ID_10646 TT_ISO_ID_7BIT_ASCII TT_ISO_ID_8859_1 TT_ISO_ID_XXX TT_MAC_ID_XXX TT_MAC_LANGID_XXX TT_MaxProfile TT_MS_ID_BIG_5 TT_MS_ID_JOHAB TT_MS_ID_PRC TT_MS_ID_SJIS TT_MS_ID_SYMBOL_CS TT_MS_ID_UCS_4 TT_MS_ID_UNICODE_CS TT_MS_ID_WANSUNG TT_MS_ID_XXX TT_MS_LANGID_XXX TT_NAME_ID_XXX TT_OS2 TT_PCLT TT_PLATFORM_ADOBE TT_PLATFORM_APPLE_UNICODE TT_PLATFORM_CUSTOM TT_PLATFORM_ISO TT_PLATFORM_MACINTOSH TT_PLATFORM_MICROSOFT TT_PLATFORM_XXX TT_Postscript TT_UCR_XXX TT_VertHeader W \u00b6 warping generated on Thu Dec 2 12:36:11 2021 UTC","title":"Index"},{"location":"ft2-index.html#freetype-2111-api-reference","text":"","title":"FreeType-2.11.1 API Reference"},{"location":"ft2-index.html#b","text":"BDF_Property BDF_PROPERTY_TYPE_ATOM BDF_PROPERTY_TYPE_CARDINAL BDF_PROPERTY_TYPE_INTEGER BDF_PROPERTY_TYPE_NONE BDF_PropertyRec BDF_PropertyType","title":"B"},{"location":"ft2-index.html#c","text":"CID_FaceDict CID_FaceDictRec CID_FaceInfo CID_FaceInfoRec CID_FontDict CID_Info","title":"C"},{"location":"ft2-index.html#d","text":"darkening-parameters default-script","title":"D"},{"location":"ft2-index.html#f","text":"fallback-script FREETYPE_MAJOR FREETYPE_MINOR FREETYPE_PATCH FREETYPE_XXX FT_Activate_Size FT_Add_Default_Modules FT_Add_Module FT_ADVANCE_FLAG_FAST_ONLY FT_ADVANCES_H FT_Affine23 FT_Alloc_Func FT_Angle FT_ANGLE_2PI FT_Angle_Diff FT_ANGLE_PI FT_ANGLE_PI2 FT_ANGLE_PI4 FT_Atan2 FT_Attach_File FT_Attach_Stream FT_AUTOHINTER_H FT_AUTOHINTER_SCRIPT_CJK FT_AUTOHINTER_SCRIPT_INDIC FT_AUTOHINTER_SCRIPT_LATIN FT_AUTOHINTER_SCRIPT_NONE FT_AUTOHINTER_SCRIPT_XXX FT_BBox FT_BBOX_H FT_BDF_H FT_Bitmap FT_Bitmap_Blend FT_Bitmap_Convert FT_Bitmap_Copy FT_Bitmap_Done FT_Bitmap_Embolden FT_BITMAP_H FT_Bitmap_Init FT_Bitmap_Size FT_BitmapGlyph FT_BitmapGlyphRec FT_Bool FT_Byte FT_Bytes FT_BZIP2_H FT_CACHE_H FT_CeilFix FT_CFF_DRIVER_H FT_Char FT_CharMap FT_CharMapRec FT_CID_H FT_ClassicKern_Free FT_ClassicKern_Validate FT_ClipBox FT_Color FT_COLOR_H FT_COLOR_INCLUDE_ROOT_TRANSFORM FT_COLOR_NO_ROOT_TRANSFORM FT_Color_Root_Transform FT_ColorIndex FT_ColorLine FT_ColorStop FT_ColorStopIterator FT_COLR_Paint FT_Composite_Mode FT_CONFIG_CONFIG_H FT_CONFIG_MODULES_H FT_CONFIG_OPTIONS_H FT_CONFIG_STANDARD_LIBRARY_H FT_Cos FT_Custom_Log_Handler FT_Data FT_DEBUG_HOOK_TRUETYPE FT_DEBUG_HOOK_XXX FT_DebugHook_Func FT_DivFix FT_Done_Face FT_Done_FreeType FT_Done_Glyph FT_Done_Library FT_Done_MM_Var FT_Done_Size FT_Driver FT_DRIVER_H FT_ENC_TAG FT_Encoding FT_ENCODING_ADOBE_CUSTOM FT_ENCODING_ADOBE_EXPERT FT_ENCODING_ADOBE_LATIN_1 FT_ENCODING_ADOBE_STANDARD FT_ENCODING_APPLE_ROMAN FT_ENCODING_BIG5 FT_ENCODING_JOHAB FT_ENCODING_MS_BIG5 FT_ENCODING_MS_GB2312 FT_ENCODING_MS_JOHAB FT_ENCODING_MS_SJIS FT_ENCODING_MS_SYMBOL FT_ENCODING_MS_WANSUNG FT_ENCODING_NONE FT_ENCODING_OLD_LATIN_2 FT_ENCODING_PRC FT_ENCODING_SJIS FT_ENCODING_UNICODE FT_ENCODING_WANSUNG FT_Err_XXX FT_Error FT_Error_String FT_ERRORS_H FT_F26Dot6 FT_F2Dot14 FT_Face FT_Face_CheckTrueTypePatents FT_FACE_DRIVER_NAME FT_FACE_FLAG_CID_KEYED FT_FACE_FLAG_COLOR FT_FACE_FLAG_EXTERNAL_STREAM FT_FACE_FLAG_FAST_GLYPHS FT_FACE_FLAG_FIXED_SIZES FT_FACE_FLAG_FIXED_WIDTH FT_FACE_FLAG_GLYPH_NAMES FT_FACE_FLAG_HINTER FT_FACE_FLAG_HORIZONTAL FT_FACE_FLAG_KERNING FT_FACE_FLAG_MULTIPLE_MASTERS FT_FACE_FLAG_SCALABLE FT_FACE_FLAG_SFNT FT_FACE_FLAG_TRICKY FT_FACE_FLAG_VARIATION FT_FACE_FLAG_VERTICAL FT_FACE_FLAG_XXX FT_Face_GetCharsOfVariant FT_Face_GetCharVariantIndex FT_Face_GetCharVariantIsDefault FT_Face_GetVariantSelectors FT_Face_GetVariantsOfChar FT_Face_Internal FT_Face_Properties FT_Face_SetUnpatentedHinting FT_FaceRec FT_Fixed FT_FloorFix FT_FONT_FORMATS_H FT_Free_Func FT_FREETYPE_H FT_FSTYPE_BITMAP_EMBEDDING_ONLY FT_FSTYPE_EDITABLE_EMBEDDING FT_FSTYPE_INSTALLABLE_EMBEDDING FT_FSTYPE_NO_SUBSETTING FT_FSTYPE_PREVIEW_AND_PRINT_EMBEDDING FT_FSTYPE_RESTRICTED_LICENSE_EMBEDDING FT_FSTYPE_XXX FT_FWord FT_GASP_DO_GRAY FT_GASP_DO_GRIDFIT FT_GASP_H FT_GASP_NO_TABLE FT_GASP_SYMMETRIC_GRIDFIT FT_GASP_SYMMETRIC_SMOOTHING FT_GASP_XXX FT_Generic FT_Generic_Finalizer FT_Get_Advance FT_Get_Advances FT_Get_BDF_Charset_ID FT_Get_BDF_Property FT_Get_Char_Index FT_Get_Charmap_Index FT_Get_CID_From_Glyph_Index FT_Get_CID_Is_Internally_CID_Keyed FT_Get_CID_Registry_Ordering_Supplement FT_Get_CMap_Format FT_Get_CMap_Language_ID FT_Get_Color_Glyph_ClipBox FT_Get_Color_Glyph_Layer FT_Get_Color_Glyph_Paint FT_Get_Colorline_Stops FT_Get_First_Char FT_Get_Font_Format FT_Get_FSType_Flags FT_Get_Gasp FT_Get_Glyph FT_Get_Glyph_Name FT_Get_Kerning FT_Get_MM_Blend_Coordinates FT_Get_MM_Var FT_Get_MM_WeightVector FT_Get_Module FT_Get_Multi_Master FT_Get_Name_Index FT_Get_Next_Char FT_Get_Paint FT_Get_Paint_Layers FT_Get_PFR_Advance FT_Get_PFR_Kerning FT_Get_PFR_Metrics FT_Get_Postscript_Name FT_Get_PS_Font_Info FT_Get_PS_Font_Private FT_Get_PS_Font_Value FT_Get_Renderer FT_Get_Sfnt_LangTag FT_Get_Sfnt_Name FT_Get_Sfnt_Name_Count FT_Get_Sfnt_Table FT_Get_SubGlyph_Info FT_Get_Track_Kerning FT_Get_Transform FT_Get_TrueType_Engine_Type FT_Get_Var_Axis_Flags FT_Get_Var_Blend_Coordinates FT_Get_Var_Design_Coordinates FT_Get_WinFNT_Header FT_GetFile_From_Mac_ATS_Name FT_GetFile_From_Mac_Name FT_GetFilePath_From_Mac_ATS_Name FT_Glyph FT_GLYPH_BBOX_GRIDFIT FT_Glyph_BBox_Mode FT_GLYPH_BBOX_PIXELS FT_GLYPH_BBOX_SUBPIXELS FT_GLYPH_BBOX_TRUNCATE FT_GLYPH_BBOX_UNSCALED FT_Glyph_Copy FT_Glyph_Format FT_GLYPH_FORMAT_BITMAP FT_GLYPH_FORMAT_COMPOSITE FT_GLYPH_FORMAT_NONE FT_GLYPH_FORMAT_OUTLINE FT_GLYPH_FORMAT_PLOTTER FT_Glyph_Get_CBox FT_GLYPH_H FT_Glyph_Metrics FT_Glyph_Stroke FT_Glyph_StrokeBorder FT_Glyph_To_Bitmap FT_Glyph_Transform FT_GlyphRec FT_GlyphSlot FT_GlyphSlot_Own_Bitmap FT_GlyphSlotRec FT_GX_VALIDATE_H FT_GZIP_H FT_Gzip_Uncompress FT_HAS_COLOR FT_HAS_FAST_GLYPHS FT_HAS_FIXED_SIZES FT_HAS_GLYPH_NAMES FT_HAS_HORIZONTAL FT_HAS_KERNING FT_HAS_MULTIPLE_MASTERS FT_Has_PS_Glyph_Names FT_HAS_VERTICAL FT_HINTING_ADOBE FT_HINTING_FREETYPE FT_HINTING_XXX FT_IMAGE_H FT_IMAGE_TAG FT_Incremental FT_Incremental_FreeGlyphDataFunc FT_Incremental_FuncsRec FT_Incremental_GetGlyphDataFunc FT_Incremental_GetGlyphMetricsFunc FT_INCREMENTAL_H FT_Incremental_Interface FT_Incremental_InterfaceRec FT_Incremental_Metrics FT_Incremental_MetricsRec FT_Init_FreeType FT_Int FT_Int16 FT_Int32 FT_Int64 FT_IS_CID_KEYED FT_IS_FIXED_WIDTH FT_IS_NAMED_INSTANCE FT_IS_SCALABLE FT_IS_SFNT FT_IS_TRICKY FT_IS_VARIATION FT_KERNING_DEFAULT FT_Kerning_Mode FT_KERNING_UNFITTED FT_KERNING_UNSCALED FT_LayerIterator FT_LCD_FILTER_DEFAULT FT_LCD_FILTER_H FT_LCD_FILTER_LEGACY FT_LCD_FILTER_LEGACY1 FT_LCD_FILTER_LIGHT FT_LCD_FILTER_NONE FT_LcdFilter FT_LcdFiveTapFilter FT_Library FT_Library_SetLcdFilter FT_Library_SetLcdFilterWeights FT_Library_SetLcdGeometry FT_Library_Version FT_List FT_List_Add FT_List_Destructor FT_List_Finalize FT_List_Find FT_LIST_H FT_List_Insert FT_List_Iterate FT_List_Iterator FT_List_Remove FT_List_Up FT_ListNode FT_ListNodeRec FT_ListRec FT_LOAD_BITMAP_METRICS_ONLY FT_Load_Char FT_LOAD_COLOR FT_LOAD_COMPUTE_METRICS FT_LOAD_CROP_BITMAP FT_LOAD_DEFAULT FT_LOAD_FORCE_AUTOHINT FT_Load_Glyph FT_LOAD_IGNORE_GLOBAL_ADVANCE_WIDTH FT_LOAD_IGNORE_TRANSFORM FT_LOAD_LINEAR_DESIGN FT_LOAD_MONOCHROME FT_LOAD_NO_AUTOHINT FT_LOAD_NO_BITMAP FT_LOAD_NO_HINTING FT_LOAD_NO_RECURSE FT_LOAD_NO_SCALE FT_LOAD_PEDANTIC FT_LOAD_RENDER FT_Load_Sfnt_Table FT_LOAD_TARGET_LCD FT_LOAD_TARGET_LCD_V FT_LOAD_TARGET_LIGHT FT_LOAD_TARGET_MODE FT_LOAD_TARGET_MONO FT_LOAD_TARGET_NORMAL FT_LOAD_TARGET_XXX FT_LOAD_VERTICAL_LAYOUT FT_LOAD_XXX FT_Long FT_LZW_H FT_MAC_H FT_MAKE_TAG FT_Matrix FT_Matrix_Invert FT_Matrix_Multiply FT_Memory FT_MemoryRec FT_MM_Axis FT_MM_Var FT_Module FT_Module_Class FT_Module_Constructor FT_Module_Destructor FT_MODULE_ERRORS_H FT_MODULE_H FT_Module_Requester FT_MulDiv FT_MulFix FT_Multi_Master FT_MULTIPLE_MASTERS_H FT_New_Face FT_New_Face_From_FOND FT_New_Face_From_FSRef FT_New_Face_From_FSSpec FT_New_Glyph FT_New_Library FT_New_Memory_Face FT_New_Size FT_Offset FT_OpaquePaint FT_Open_Args FT_OPEN_DRIVER FT_Open_Face FT_OPEN_MEMORY FT_OPEN_PARAMS FT_OPEN_PATHNAME FT_OPEN_STREAM FT_OPEN_XXX FT_OpenType_Free FT_OpenType_Validate FT_OPENTYPE_VALIDATE_H FT_Orientation FT_ORIENTATION_FILL_LEFT FT_ORIENTATION_FILL_RIGHT FT_ORIENTATION_NONE FT_ORIENTATION_POSTSCRIPT FT_ORIENTATION_TRUETYPE FT_Outline FT_Outline_Check FT_Outline_ConicToFunc FT_Outline_Copy FT_Outline_CubicToFunc FT_Outline_Decompose FT_Outline_Done FT_Outline_Embolden FT_Outline_EmboldenXY FT_OUTLINE_EVEN_ODD_FILL FT_Outline_Funcs FT_Outline_Get_BBox FT_Outline_Get_Bitmap FT_Outline_Get_CBox FT_Outline_Get_Orientation FT_Outline_GetInsideBorder FT_Outline_GetOutsideBorder FT_OUTLINE_H FT_OUTLINE_HIGH_PRECISION FT_OUTLINE_IGNORE_DROPOUTS FT_OUTLINE_INCLUDE_STUBS FT_Outline_LineToFunc FT_Outline_MoveToFunc FT_Outline_New FT_OUTLINE_NONE FT_OUTLINE_OVERLAP FT_OUTLINE_OWNER FT_Outline_Render FT_Outline_Reverse FT_OUTLINE_REVERSE_FILL FT_OUTLINE_SINGLE_PASS FT_OUTLINE_SMART_DROPOUTS FT_Outline_Transform FT_Outline_Translate FT_OUTLINE_XXX FT_OutlineGlyph FT_OutlineGlyphRec FT_PaintColrGlyph FT_PaintColrLayers FT_PaintComposite FT_PaintExtend FT_PaintFormat FT_PaintGlyph FT_PaintLinearGradient FT_PaintRadialGradient FT_PaintRotate FT_PaintScale FT_PaintSkew FT_PaintSolid FT_PaintSweepGradient FT_PaintTransform FT_PaintTranslate FT_Palette_Data FT_Palette_Data_Get FT_PALETTE_FOR_DARK_BACKGROUND FT_PALETTE_FOR_LIGHT_BACKGROUND FT_Palette_Select FT_Palette_Set_Foreground_Color FT_PALETTE_XXX FT_PARAM_TAG_IGNORE_TYPOGRAPHIC_FAMILY FT_PARAM_TAG_IGNORE_TYPOGRAPHIC_SUBFAMILY FT_PARAM_TAG_INCREMENTAL FT_PARAM_TAG_LCD_FILTER_WEIGHTS FT_PARAM_TAG_RANDOM_SEED FT_PARAM_TAG_STEM_DARKENING FT_PARAM_TAG_UNPATENTED_HINTING FT_Parameter FT_PCF_DRIVER_H FT_PFR_H FT_Pixel_Mode FT_PIXEL_MODE_BGRA FT_PIXEL_MODE_GRAY FT_PIXEL_MODE_GRAY2 FT_PIXEL_MODE_GRAY4 FT_PIXEL_MODE_LCD FT_PIXEL_MODE_LCD_V FT_PIXEL_MODE_MONO FT_PIXEL_MODE_NONE FT_Pointer FT_Pos FT_Prop_GlyphToScriptMap FT_Prop_IncreaseXHeight FT_Property_Get FT_Property_Set FT_PtrDist FT_Raster FT_Raster_BitSet_Func FT_Raster_BitTest_Func FT_Raster_DoneFunc FT_RASTER_FLAG_AA FT_RASTER_FLAG_CLIP FT_RASTER_FLAG_DEFAULT FT_RASTER_FLAG_DIRECT FT_RASTER_FLAG_SDF FT_RASTER_FLAG_XXX FT_Raster_Funcs FT_Raster_NewFunc FT_Raster_Params FT_Raster_RenderFunc FT_Raster_ResetFunc FT_Raster_SetModeFunc FT_Realloc_Func FT_Reference_Face FT_Reference_Library FT_Remove_Module FT_Render_Glyph FT_RENDER_H FT_Render_Mode FT_RENDER_MODE_LCD FT_RENDER_MODE_LCD_V FT_RENDER_MODE_LIGHT FT_RENDER_MODE_MONO FT_RENDER_MODE_NORMAL FT_RENDER_MODE_SDF FT_Renderer FT_Renderer_Class FT_Request_Size FT_RoundFix FT_Select_Charmap FT_Select_Size FT_Set_Char_Size FT_Set_Charmap FT_Set_Debug_Hook FT_Set_Default_Log_Handler FT_Set_Default_Properties FT_Set_Log_Handler FT_Set_MM_Blend_Coordinates FT_Set_MM_Design_Coordinates FT_Set_MM_WeightVector FT_Set_Named_Instance FT_Set_Pixel_Sizes FT_Set_Renderer FT_Set_Transform FT_Set_Var_Blend_Coordinates FT_Set_Var_Design_Coordinates FT_SFNT_HEAD FT_SFNT_HHEA FT_SFNT_MAXP FT_SFNT_NAMES_H FT_SFNT_OS2 FT_SFNT_PCLT FT_SFNT_POST FT_Sfnt_Table_Info FT_Sfnt_Tag FT_SFNT_VHEA FT_SfntLangTag FT_SfntName FT_Short FT_Sin FT_Size FT_Size_Internal FT_Size_Metrics FT_Size_Request FT_Size_Request_Type FT_SIZE_REQUEST_TYPE_BBOX FT_SIZE_REQUEST_TYPE_CELL FT_SIZE_REQUEST_TYPE_NOMINAL FT_SIZE_REQUEST_TYPE_REAL_DIM FT_SIZE_REQUEST_TYPE_SCALES FT_Size_RequestRec FT_SizeRec FT_SIZES_H FT_Slot_Internal FT_Span FT_SpanFunc FT_Stream FT_Stream_CloseFunc FT_Stream_IoFunc FT_Stream_OpenBzip2 FT_Stream_OpenGzip FT_Stream_OpenLZW FT_StreamDesc FT_StreamRec FT_String FT_Stroker FT_Stroker_BeginSubPath FT_STROKER_BORDER_LEFT FT_STROKER_BORDER_RIGHT FT_Stroker_ConicTo FT_Stroker_CubicTo FT_Stroker_Done FT_Stroker_EndSubPath FT_Stroker_Export FT_Stroker_ExportBorder FT_Stroker_GetBorderCounts FT_Stroker_GetCounts FT_STROKER_H FT_Stroker_LineCap FT_STROKER_LINECAP_BUTT FT_STROKER_LINECAP_ROUND FT_STROKER_LINECAP_SQUARE FT_Stroker_LineJoin FT_STROKER_LINEJOIN_BEVEL FT_STROKER_LINEJOIN_MITER FT_STROKER_LINEJOIN_MITER_FIXED FT_STROKER_LINEJOIN_MITER_VARIABLE FT_STROKER_LINEJOIN_ROUND FT_Stroker_LineTo FT_Stroker_New FT_Stroker_ParseOutline FT_Stroker_Rewind FT_Stroker_Set FT_StrokerBorder FT_STYLE_FLAG_BOLD FT_STYLE_FLAG_ITALIC FT_STYLE_FLAG_XXX FT_SubGlyph FT_SUBGLYPH_FLAG_2X2 FT_SUBGLYPH_FLAG_ARGS_ARE_WORDS FT_SUBGLYPH_FLAG_ARGS_ARE_XY_VALUES FT_SUBGLYPH_FLAG_ROUND_XY_TO_GRID FT_SUBGLYPH_FLAG_SCALE FT_SUBGLYPH_FLAG_USE_MY_METRICS FT_SUBGLYPH_FLAG_XXX FT_SUBGLYPH_FLAG_XY_SCALE FT_SYNTHESIS_H FT_SYSTEM_H FT_Tag FT_Tan FT_Trace_Set_Default_Level FT_Trace_Set_Level FT_TRIGONOMETRY_H FT_TRUETYPE_DRIVER_H FT_TRUETYPE_ENGINE_TYPE_NONE FT_TRUETYPE_ENGINE_TYPE_PATENTED FT_TRUETYPE_ENGINE_TYPE_UNPATENTED FT_TRUETYPE_IDS_H FT_TRUETYPE_TABLES_H FT_TRUETYPE_TAGS_H FT_TrueTypeEngineType FT_TrueTypeGX_Free FT_TrueTypeGX_Validate FT_TYPE1_TABLES_H FT_TYPES_H FT_UFWord FT_UInt FT_UInt16 FT_UInt32 FT_UInt64 FT_ULong FT_UnitVector FT_UShort FT_VALIDATE_APPLE FT_VALIDATE_BASE FT_VALIDATE_bsln FT_VALIDATE_CKERN FT_VALIDATE_CKERNXXX FT_VALIDATE_feat FT_VALIDATE_GDEF FT_VALIDATE_GPOS FT_VALIDATE_GSUB FT_VALIDATE_GX FT_VALIDATE_GX_LENGTH FT_VALIDATE_GXXXX FT_VALIDATE_JSTF FT_VALIDATE_just FT_VALIDATE_kern FT_VALIDATE_lcar FT_VALIDATE_MATH FT_VALIDATE_mort FT_VALIDATE_morx FT_VALIDATE_MS FT_VALIDATE_opbd FT_VALIDATE_OT FT_VALIDATE_OTXXX FT_VALIDATE_prop FT_VALIDATE_trak FT_Var_Axis FT_VAR_AXIS_FLAG_HIDDEN FT_VAR_AXIS_FLAG_XXX FT_Var_Named_Style FT_Vector FT_Vector_From_Polar FT_Vector_Length FT_Vector_Polarize FT_Vector_Rotate FT_Vector_Transform FT_Vector_Unit FT_WinFNT_Header FT_WinFNT_HeaderRec FT_WinFNT_ID_CP1250 FT_WinFNT_ID_CP1251 FT_WinFNT_ID_CP1252 FT_WinFNT_ID_CP1253 FT_WinFNT_ID_CP1254 FT_WinFNT_ID_CP1255 FT_WinFNT_ID_CP1256 FT_WinFNT_ID_CP1257 FT_WinFNT_ID_CP1258 FT_WinFNT_ID_CP1361 FT_WinFNT_ID_CP874 FT_WinFNT_ID_CP932 FT_WinFNT_ID_CP936 FT_WinFNT_ID_CP949 FT_WinFNT_ID_CP950 FT_WinFNT_ID_DEFAULT FT_WinFNT_ID_MAC FT_WinFNT_ID_OEM FT_WinFNT_ID_SYMBOL FT_WinFNT_ID_XXX FT_WINFONTS_H FTC_CMapCache FTC_CMapCache_Lookup FTC_CMapCache_New FTC_Face_Requester FTC_FaceID FTC_ImageCache FTC_ImageCache_Lookup FTC_ImageCache_LookupScaler FTC_ImageCache_New FTC_ImageType FTC_ImageTypeRec FTC_Manager FTC_Manager_Done FTC_Manager_LookupFace FTC_Manager_LookupSize FTC_Manager_New FTC_Manager_RemoveFaceID FTC_Manager_Reset FTC_Node FTC_Node_Unref FTC_SBit FTC_SBitCache FTC_SBitCache_Lookup FTC_SBitCache_LookupScaler FTC_SBitCache_New FTC_SBitRec FTC_Scaler FTC_ScalerRec","title":"F"},{"location":"ft2-index.html#g","text":"glyph-to-script-map","title":"G"},{"location":"ft2-index.html#h","text":"hinting-engine","title":"H"},{"location":"ft2-index.html#i","text":"increase-x-height interpreter-version","title":"I"},{"location":"ft2-index.html#n","text":"no-long-family-names no-stem-darkening","title":"N"},{"location":"ft2-index.html#p","text":"PS_DICT_BLUE_FUZZ PS_DICT_BLUE_SCALE PS_DICT_BLUE_SHIFT PS_DICT_BLUE_VALUE PS_DICT_CHAR_STRING PS_DICT_CHAR_STRING_KEY PS_DICT_ENCODING_ENTRY PS_DICT_ENCODING_TYPE PS_DICT_FAMILY_BLUE PS_DICT_FAMILY_NAME PS_DICT_FAMILY_OTHER_BLUE PS_DICT_FONT_BBOX PS_DICT_FONT_MATRIX PS_DICT_FONT_NAME PS_DICT_FONT_TYPE PS_DICT_FORCE_BOLD PS_DICT_FS_TYPE PS_DICT_FULL_NAME PS_DICT_IS_FIXED_PITCH PS_DICT_ITALIC_ANGLE PS_Dict_Keys PS_DICT_LANGUAGE_GROUP PS_DICT_LEN_IV PS_DICT_MIN_FEATURE PS_DICT_NOTICE PS_DICT_NUM_BLUE_VALUES PS_DICT_NUM_CHAR_STRINGS PS_DICT_NUM_FAMILY_BLUES PS_DICT_NUM_FAMILY_OTHER_BLUES PS_DICT_NUM_OTHER_BLUES PS_DICT_NUM_STEM_SNAP_H PS_DICT_NUM_STEM_SNAP_V PS_DICT_NUM_SUBRS PS_DICT_OTHER_BLUE PS_DICT_PAINT_TYPE PS_DICT_PASSWORD PS_DICT_RND_STEM_UP PS_DICT_STD_HW PS_DICT_STD_VW PS_DICT_STEM_SNAP_H PS_DICT_STEM_SNAP_V PS_DICT_SUBR PS_DICT_UNDERLINE_POSITION PS_DICT_UNDERLINE_THICKNESS PS_DICT_UNIQUE_ID PS_DICT_VERSION PS_DICT_WEIGHT PS_FontInfo PS_FontInfoRec PS_Private PS_PrivateRec","title":"P"},{"location":"ft2-index.html#r","text":"random-seed","title":"R"},{"location":"ft2-index.html#t","text":"T1_BLEND_BLUE_SCALE T1_BLEND_BLUE_SHIFT T1_BLEND_BLUE_VALUES T1_BLEND_FAMILY_BLUES T1_BLEND_FAMILY_OTHER_BLUES T1_Blend_Flags T1_BLEND_FORCE_BOLD T1_BLEND_ITALIC_ANGLE T1_BLEND_OTHER_BLUES T1_BLEND_STANDARD_HEIGHT T1_BLEND_STANDARD_WIDTH T1_BLEND_STEM_SNAP_HEIGHTS T1_BLEND_STEM_SNAP_WIDTHS T1_BLEND_UNDERLINE_POSITION T1_BLEND_UNDERLINE_THICKNESS T1_ENCODING_TYPE_ARRAY T1_ENCODING_TYPE_EXPERT T1_ENCODING_TYPE_ISOLATIN1 T1_ENCODING_TYPE_NONE T1_ENCODING_TYPE_STANDARD T1_EncodingType T1_FontInfo T1_Private TT_ADOBE_ID_CUSTOM TT_ADOBE_ID_EXPERT TT_ADOBE_ID_LATIN_1 TT_ADOBE_ID_STANDARD TT_ADOBE_ID_XXX TT_APPLE_ID_DEFAULT TT_APPLE_ID_FULL_UNICODE TT_APPLE_ID_ISO_10646 TT_APPLE_ID_UNICODE_1_1 TT_APPLE_ID_UNICODE_2_0 TT_APPLE_ID_UNICODE_32 TT_APPLE_ID_VARIANT_SELECTOR TT_APPLE_ID_XXX TT_Header TT_HoriHeader TT_INTERPRETER_VERSION_35 TT_INTERPRETER_VERSION_38 TT_INTERPRETER_VERSION_40 TT_INTERPRETER_VERSION_XXX TT_ISO_ID_10646 TT_ISO_ID_7BIT_ASCII TT_ISO_ID_8859_1 TT_ISO_ID_XXX TT_MAC_ID_XXX TT_MAC_LANGID_XXX TT_MaxProfile TT_MS_ID_BIG_5 TT_MS_ID_JOHAB TT_MS_ID_PRC TT_MS_ID_SJIS TT_MS_ID_SYMBOL_CS TT_MS_ID_UCS_4 TT_MS_ID_UNICODE_CS TT_MS_ID_WANSUNG TT_MS_ID_XXX TT_MS_LANGID_XXX TT_NAME_ID_XXX TT_OS2 TT_PCLT TT_PLATFORM_ADOBE TT_PLATFORM_APPLE_UNICODE TT_PLATFORM_CUSTOM TT_PLATFORM_ISO TT_PLATFORM_MACINTOSH TT_PLATFORM_MICROSOFT TT_PLATFORM_XXX TT_Postscript TT_UCR_XXX TT_VertHeader","title":"T"},{"location":"ft2-index.html#w","text":"warping generated on Thu Dec 2 12:36:11 2021 UTC","title":"W"},{"location":"ft2-layer_management.html","text":"FreeType \u00bb Docs \u00bb Core API \u00bb Glyph Layer Management Glyph Layer Management \u00b6 Synopsis \u00b6 The functions described here allow access of colored glyph layer data in OpenType's \u2018COLR\u2019 tables. FT_LayerIterator \u00b6 Defined in FT_COLOR_H (freetype/ftcolor.h). typedef struct FT_LayerIterator_ { FT_UInt num_layers; FT_UInt layer; FT_Byte * p; } FT_LayerIterator ; This iterator object is needed for FT_Get_Color_Glyph_Layer . fields num_layers The number of glyph layers for the requested glyph index. Will be set by FT_Get_Color_Glyph_Layer . layer The current layer. Will be set by FT_Get_Color_Glyph_Layer . p An opaque pointer into \u2018COLR\u2019 table data. The caller must set this to NULL before the first call of FT_Get_Color_Glyph_Layer . FT_Get_Color_Glyph_Layer \u00b6 Defined in FT_COLOR_H (freetype/ftcolor.h). FT_EXPORT( FT_Bool ) FT_Get_Color_Glyph_Layer ( FT_Face face, FT_UInt base_glyph, FT_UInt *aglyph_index, FT_UInt *acolor_index, FT_LayerIterator * iterator ); This is an interface to the \u2018COLR\u2019 table in OpenType fonts to iteratively retrieve the colored glyph layers associated with the current glyph slot. https://docs.microsoft.com/en-us/typography/opentype/spec/colr The glyph layer data for a given glyph index, if present, provides an alternative, multi-color glyph representation: Instead of rendering the outline or bitmap with the given glyph index, glyphs with the indices and colors returned by this function are rendered layer by layer. The returned elements are ordered in the z direction from bottom to top; the 'n'th element should be rendered with the associated palette color and blended on top of the already rendered layers (elements 0, 1, \u2026, n-1). input face A handle to the parent face object. base_glyph The glyph index the colored glyph layers are associated with. inout iterator An FT_LayerIterator object. For the first call you should set iterator->p to NULL . For all following calls, simply use the same object again. output aglyph_index The glyph index of the current layer. acolor_index The color index into the font face's color palette of the current layer. The value 0xFFFF is special; it doesn't reference a palette entry but indicates that the text foreground color should be used instead (to be set up by the application outside of FreeType). The color palette can be retrieved with FT_Palette_Select . return Value 1 if everything is OK. If there are no more layers (or if there are no layers at all), value 0 gets returned. In case of an error, value 0 is returned also. note This function is necessary if you want to handle glyph layers by yourself. In particular, functions that operate with FT_GlyphRec objects (like FT_Get_Glyph or FT_Glyph_To_Bitmap ) don't have access to this information. Note that FT_Render_Glyph is able to handle colored glyph layers automatically if the FT_LOAD_COLOR flag is passed to a previous call to FT_Load_Glyph . [This is an experimental feature.] example FT_Color* palette; FT_LayerIterator iterator; FT_Bool have_layers; FT_UInt layer_glyph_index; FT_UInt layer_color_index; error = FT_Palette_Select( face, palette_index, &palette ); if ( error ) palette = NULL; iterator.p = NULL; have_layers = FT_Get_Color_Glyph_Layer( face, glyph_index, &layer_glyph_index, &layer_color_index, &iterator ); if ( palette && have_layers ) { do { FT_Color layer_color; if ( layer_color_index == 0xFFFF ) layer_color = text_foreground_color; else layer_color = palette[layer_color_index]; // Load and render glyph `layer_glyph_index', then // blend resulting pixmap (using color `layer_color') // with previously created pixmaps. } while ( FT_Get_Color_Glyph_Layer( face, glyph_index, &layer_glyph_index, &layer_color_index, &iterator ) ); } FT_PaintFormat \u00b6 Defined in FT_COLOR_H (freetype/ftcolor.h). typedef enum FT_PaintFormat_ { FT_COLR_PAINTFORMAT_COLR_LAYERS = 1, FT_COLR_PAINTFORMAT_SOLID = 2, FT_COLR_PAINTFORMAT_LINEAR_GRADIENT = 4, FT_COLR_PAINTFORMAT_RADIAL_GRADIENT = 6, FT_COLR_PAINTFORMAT_SWEEP_GRADIENT = 8, FT_COLR_PAINTFORMAT_GLYPH = 10, FT_COLR_PAINTFORMAT_COLR_GLYPH = 11, FT_COLR_PAINTFORMAT_TRANSFORM = 12, FT_COLR_PAINTFORMAT_TRANSLATE = 14, FT_COLR_PAINTFORMAT_SCALE = 16, FT_COLR_PAINTFORMAT_ROTATE = 24, FT_COLR_PAINTFORMAT_SKEW = 28, FT_COLR_PAINTFORMAT_COMPOSITE = 32, FT_COLR_PAINT_FORMAT_MAX = 33, FT_COLR_PAINTFORMAT_UNSUPPORTED = 255 } FT_PaintFormat ; Enumeration describing the different paint format types of the v1 extensions to the \u2018COLR\u2019 table, see \u2018 https://github.com/googlefonts/colr-gradients-spec \u2019. The enumeration values losely correspond with the format numbers of the specification: FreeType always returns a fully specified \u2018Paint\u2019 structure for the \u2018Transform\u2019, \u2018Translate\u2019, \u2018Scale\u2019, \u2018Rotate\u2019, and \u2018Skew\u2019 table types even though the specification has different formats depending on whether or not a center is specified, whether the scale is uniform in x and y direction or not, etc. Also, only non-variable format identifiers are listed in this enumeration; as soon as support for variable \u2018COLR\u2019 v1 fonts is implemented, interpolation is performed dependent on axis coordinates, which are configured on the FT_Face through FT_Set_Var_Design_Coordinates . This implies that always static, readily interpolated values are returned in the \u2018Paint\u2019 structures. since 2.11 \u2013 currently experimental only! There might be changes without retaining backward compatibility of both the API and ABI. FT_ColorStopIterator \u00b6 Defined in FT_COLOR_H (freetype/ftcolor.h). typedef struct FT_ColorStopIterator_ { FT_UInt num_color_stops; FT_UInt current_color_stop; FT_Byte * p; } FT_ColorStopIterator ; This iterator object is needed for FT_Get_Colorline_Stops . It keeps state while iterating over the stops of an FT_ColorLine , representing the ColorLine struct of the v1 extensions to \u2018COLR\u2019, see \u2018 https://github.com/googlefonts/colr-gradients-spec \u2019. fields num_color_stops The number of color stops for the requested glyph index. Set by FT_Get_Colorline_Stops . current_color_stop The current color stop. Set by FT_Get_Colorline_Stops . p An opaque pointer into \u2018COLR\u2019 table data. The caller must set this to NULL before the first call of FT_Get_Colorline_Stops . since 2.11 \u2013 currently experimental only! There might be changes without retaining backward compatibility of both the API and ABI. FT_ColorIndex \u00b6 Defined in FT_COLOR_H (freetype/ftcolor.h). typedef struct FT_ColorIndex_ { FT_UInt16 palette_index; FT_F2Dot14 alpha; } FT_ColorIndex ; A structure representing a ColorIndex value of the \u2018COLR\u2019 v1 extensions, see \u2018 https://github.com/googlefonts/colr-gradients-spec \u2019. fields palette_index The palette index into a \u2018CPAL\u2019 palette. alpha Alpha transparency value multiplied with the value from \u2018CPAL\u2019. since 2.11 \u2013 currently experimental only! There might be changes without retaining backward compatibility of both the API and ABI. FT_ColorStop \u00b6 Defined in FT_COLOR_H (freetype/ftcolor.h). typedef struct FT_ColorStop_ { FT_F2Dot14 stop_offset; FT_ColorIndex color; } FT_ColorStop ; A structure representing a ColorStop value of the \u2018COLR\u2019 v1 extensions, see \u2018 https://github.com/googlefonts/colr-gradients-spec \u2019. fields stop_offset The stop offset between 0 and 1 along the gradient. color The color information for this stop, see FT_ColorIndex . since 2.11 \u2013 currently experimental only! There might be changes without retaining backward compatibility of both the API and ABI. FT_PaintExtend \u00b6 Defined in FT_COLOR_H (freetype/ftcolor.h). typedef enum FT_PaintExtend_ { FT_COLR_PAINT_EXTEND_PAD = 0, FT_COLR_PAINT_EXTEND_REPEAT = 1, FT_COLR_PAINT_EXTEND_REFLECT = 2 } FT_PaintExtend ; An enumeration representing the \u2018Extend\u2019 mode of the \u2018COLR\u2019 v1 extensions, see \u2018 https://github.com/googlefonts/colr-gradients-spec \u2019. It describes how the gradient fill continues at the other boundaries. since 2.11 \u2013 currently experimental only! There might be changes without retaining backward compatibility of both the API and ABI. FT_ColorLine \u00b6 Defined in FT_COLOR_H (freetype/ftcolor.h). typedef struct FT_ColorLine_ { FT_PaintExtend extend; FT_ColorStopIterator color_stop_iterator; } FT_ColorLine ; A structure representing a ColorLine value of the \u2018COLR\u2019 v1 extensions, see \u2018 https://github.com/googlefonts/colr-gradients-spec \u2019. It describes a list of color stops along the defined gradient. fields extend The extend mode at the outer boundaries, see FT_PaintExtend . color_stop_iterator The FT_ColorStopIterator used to enumerate and retrieve the actual FT_ColorStop 's. since 2.11 \u2013 currently experimental only! There might be changes without retaining backward compatibility of both the API and ABI. FT_Affine23 \u00b6 Defined in FT_COLOR_H (freetype/ftcolor.h). typedef struct FT_Affine_23_ { FT_Fixed xx, xy, dx; FT_Fixed yx, yy, dy; } FT_Affine23 ; A structure used to store a 2x3 matrix. Coefficients are in 16.16 fixed-point format. The computation performed is x' = x*xx + y*xy + dx y' = x*yx + y*yy + dy fields xx Matrix coefficient. xy Matrix coefficient. dx x translation. yx Matrix coefficient. yy Matrix coefficient. dy y translation. since 2.11 \u2013 currently experimental only! There might be changes without retaining backward compatibility of both the API and ABI. FT_Composite_Mode \u00b6 Defined in FT_COLOR_H (freetype/ftcolor.h). typedef enum FT_Composite_Mode_ { FT_COLR_COMPOSITE_CLEAR = 0, FT_COLR_COMPOSITE_SRC = 1, FT_COLR_COMPOSITE_DEST = 2, FT_COLR_COMPOSITE_SRC_OVER = 3, FT_COLR_COMPOSITE_DEST_OVER = 4, FT_COLR_COMPOSITE_SRC_IN = 5, FT_COLR_COMPOSITE_DEST_IN = 6, FT_COLR_COMPOSITE_SRC_OUT = 7, FT_COLR_COMPOSITE_DEST_OUT = 8, FT_COLR_COMPOSITE_SRC_ATOP = 9, FT_COLR_COMPOSITE_DEST_ATOP = 10, FT_COLR_COMPOSITE_XOR = 11, FT_COLR_COMPOSITE_PLUS = 12, FT_COLR_COMPOSITE_SCREEN = 13, FT_COLR_COMPOSITE_OVERLAY = 14, FT_COLR_COMPOSITE_DARKEN = 15, FT_COLR_COMPOSITE_LIGHTEN = 16, FT_COLR_COMPOSITE_COLOR_DODGE = 17, FT_COLR_COMPOSITE_COLOR_BURN = 18, FT_COLR_COMPOSITE_HARD_LIGHT = 19, FT_COLR_COMPOSITE_SOFT_LIGHT = 20, FT_COLR_COMPOSITE_DIFFERENCE = 21, FT_COLR_COMPOSITE_EXCLUSION = 22, FT_COLR_COMPOSITE_MULTIPLY = 23, FT_COLR_COMPOSITE_HSL_HUE = 24, FT_COLR_COMPOSITE_HSL_SATURATION = 25, FT_COLR_COMPOSITE_HSL_COLOR = 26, FT_COLR_COMPOSITE_HSL_LUMINOSITY = 27, FT_COLR_COMPOSITE_MAX = 28 } FT_Composite_Mode ; An enumeration listing the \u2018COLR\u2019 v1 composite modes used in FT_PaintComposite . For more details on each paint mode, see \u2018 https://www.w3.org/TR/compositing-1/#porterduffcompositingoperators \u2019. since 2.11 \u2013 currently experimental only! There might be changes without retaining backward compatibility of both the API and ABI. FT_OpaquePaint \u00b6 Defined in FT_COLOR_H (freetype/ftcolor.h). typedef struct FT_Opaque_Paint_ { FT_Byte * p; FT_Bool insert_root_transform; } FT_OpaquePaint ; A structure representing an offset to a Paint value stored in any of the paint tables of a \u2018COLR\u2019 v1 font. Compare Offset<24> there. When \u2018COLR\u2019 v1 paint tables represented by FreeType objects such as FT_PaintColrLayers , FT_PaintComposite , or FT_PaintTransform reference downstream nested paint tables, we do not immediately retrieve them but encapsulate their location in this type. Use FT_Get_Paint to retrieve the actual FT_COLR_Paint object that describes the details of the respective paint table. fields p An internal offset to a Paint table, needs to be set to NULL before passing this struct as an argument to FT_Get_Paint . insert_root_transform An internal boolean to track whether an initial root transform is to be provided. Do not set this value. since 2.11 \u2013 currently experimental only! There might be changes without retaining backward compatibility of both the API and ABI. FT_PaintColrLayers \u00b6 Defined in FT_COLOR_H (freetype/ftcolor.h). typedef struct FT_PaintColrLayers_ { FT_LayerIterator layer_iterator; } FT_PaintColrLayers ; A structure representing a PaintColrLayers table of a \u2018COLR\u2019 v1 font. This table describes a set of layers that are to be composited with composite mode FT_COLR_COMPOSITE_SRC_OVER . The return value of this function is an FT_LayerIterator initialized so that it can be used with FT_Get_Paint_Layers to retrieve the FT_OpaquePaint objects as references to each layer. fields layer_iterator The layer iterator that describes the layers of this paint. since 2.11 \u2013 currently experimental only! There might be changes without retaining backward compatibility of both the API and ABI. FT_PaintSolid \u00b6 Defined in FT_COLOR_H (freetype/ftcolor.h). typedef struct FT_PaintSolid_ { FT_ColorIndex color; } FT_PaintSolid ; A structure representing a PaintSolid value of the \u2018COLR\u2019 v1 extensions, see \u2018 https://github.com/googlefonts/colr-gradients-spec \u2019. Using a PaintSolid value means that the glyph layer filled with this paint is solid-colored and does not contain a gradient. fields color The color information for this solid paint, see FT_ColorIndex . since 2.11 \u2013 currently experimental only! There might be changes without retaining backward compatibility of both the API and ABI. FT_PaintLinearGradient \u00b6 Defined in FT_COLOR_H (freetype/ftcolor.h). typedef struct FT_PaintLinearGradient_ { FT_ColorLine colorline; /* TODO: Potentially expose those as x0, y0 etc. */ FT_Vector p0; FT_Vector p1; FT_Vector p2; } FT_PaintLinearGradient ; A structure representing a PaintLinearGradient value of the \u2018COLR\u2019 v1 extensions, see \u2018 https://github.com/googlefonts/colr-gradients-spec \u2019. The glyph layer filled with this paint is drawn filled with a linear gradient. fields colorline The FT_ColorLine information for this paint, i.e., the list of color stops along the gradient. p0 The starting point of the gradient definition in font units represented as a 16.16 fixed-point FT_Vector . p1 The end point of the gradient definition in font units represented as a 16.16 fixed-point FT_Vector . p2 Optional point p2 to rotate the gradient in font units represented as a 16.16 fixed-point FT_Vector . Otherwise equal to p0. since 2.11 \u2013 currently experimental only! There might be changes without retaining backward compatibility of both the API and ABI. FT_PaintRadialGradient \u00b6 Defined in FT_COLOR_H (freetype/ftcolor.h). typedef struct FT_PaintRadialGradient_ { FT_ColorLine colorline; FT_Vector c0; FT_Pos r0; FT_Vector c1; FT_Pos r1; } FT_PaintRadialGradient ; A structure representing a PaintRadialGradient value of the \u2018COLR\u2019 v1 extensions, see \u2018 https://github.com/googlefonts/colr-gradients-spec \u2019. The glyph layer filled with this paint is drawn filled filled with a radial gradient. fields colorline The FT_ColorLine information for this paint, i.e., the list of color stops along the gradient. c0 The center of the starting point of the radial gradient in font units represented as a 16.16 fixed-point FT_Vector . r0 The radius of the starting circle of the radial gradient in font units represented as a 16.16 fixed-point value. c1 The center of the end point of the radial gradient in font units represented as a 16.16 fixed-point FT_Vector . r1 The radius of the end circle of the radial gradient in font units represented as a 16.16 fixed-point value. since 2.11 \u2013 currently experimental only! There might be changes without retaining backward compatibility of both the API and ABI. FT_PaintSweepGradient \u00b6 Defined in FT_COLOR_H (freetype/ftcolor.h). typedef struct FT_PaintSweepGradient_ { FT_ColorLine colorline; FT_Vector center; FT_Fixed start_angle; FT_Fixed end_angle; } FT_PaintSweepGradient ; A structure representing a PaintSweepGradient value of the \u2018COLR\u2019 v1 extensions, see \u2018 https://github.com/googlefonts/colr-gradients-spec \u2019. The glyph layer filled with this paint is drawn filled with a sweep gradient from start_angle to end_angle . fields colorline The FT_ColorLine information for this paint, i.e., the list of color stops along the gradient. center The center of the sweep gradient in font units represented as a vector of 16.16 fixed-point values. start_angle The start angle of the sweep gradient in 16.16 fixed-point format specifying degrees divided by 180.0 (as in the spec). Multiply by 180.0f to receive degrees value. Values are given counter-clockwise, starting from the (positive) y axis. end_angle The end angle of the sweep gradient in 16.16 fixed-point format specifying degrees divided by 180.0 (as in the spec). Multiply by 180.0f to receive degrees value. Values are given counter-clockwise, starting from the (positive) y axis. since 2.11 \u2013 currently experimental only! There might be changes without retaining backward compatibility of both the API and ABI. FT_PaintGlyph \u00b6 Defined in FT_COLOR_H (freetype/ftcolor.h). typedef struct FT_PaintGlyph_ { FT_OpaquePaint paint; FT_UInt glyphID; } FT_PaintGlyph ; A structure representing a \u2018COLR\u2019 v1 PaintGlyph paint table. fields paint An opaque paint object pointing to a Paint table that serves as the fill for the glyph ID. glyphID The glyph ID from the \u2018glyf\u2019 table, which serves as the contour information that is filled with paint. since 2.11 \u2013 currently experimental only! There might be changes without retaining backward compatibility of both the API and ABI. FT_PaintColrGlyph \u00b6 Defined in FT_COLOR_H (freetype/ftcolor.h). typedef struct FT_PaintColrGlyph_ { FT_UInt glyphID; } FT_PaintColrGlyph ; A structure representing a \u2018COLR\u2019 v1 PaintColorGlyph paint table. fields glyphID The glyph ID from the BaseGlyphV1List table that is drawn for this paint. since 2.11 \u2013 currently experimental only! There might be changes without retaining backward compatibility of both the API and ABI. FT_PaintTransform \u00b6 Defined in FT_COLOR_H (freetype/ftcolor.h). typedef struct FT_PaintTransform_ { FT_OpaquePaint paint; FT_Affine23 affine; } FT_PaintTransform ; A structure representing a \u2018COLR\u2019 v1 PaintTransform paint table. fields paint An opaque paint that is subject to being transformed. affine A 2x3 transformation matrix in FT_Affine23 format containing 16.16 fixed-point values. since 2.11 \u2013 currently experimental only! There might be changes without retaining backward compatibility of both the API and ABI. FT_PaintTranslate \u00b6 Defined in FT_COLOR_H (freetype/ftcolor.h). typedef struct FT_PaintTranslate_ { FT_OpaquePaint paint; FT_Fixed dx; FT_Fixed dy; } FT_PaintTranslate ; A structure representing a \u2018COLR\u2019 v1 PaintTranslate paint table. Used for translating downstream paints by a given x and y delta. fields paint An FT_OpaquePaint object referencing the paint that is to be rotated. dx Translation in x direction in font units represented as a 16.16 fixed-point value. dy Translation in y direction in font units represented as a 16.16 fixed-point value. since 2.11 \u2013 currently experimental only! There might be changes without retaining backward compatibility of both the API and ABI. FT_PaintScale \u00b6 Defined in FT_COLOR_H (freetype/ftcolor.h). typedef struct FT_PaintScale_ { FT_OpaquePaint paint; FT_Fixed scale_x; FT_Fixed scale_y; FT_Fixed center_x; FT_Fixed center_y; } FT_PaintScale ; A structure representing all of the \u2018COLR\u2019 v1 \u2018PaintScale*\u2019 paint tables. Used for scaling downstream paints by a given x and y scale, with a given center. This structure is used for all \u2018PaintScale*\u2019 types that are part of specification; fields of this structure are filled accordingly. If there is a center, the center values are set, otherwise they are set to the zero coordinate. If the source font file has \u2018PaintScaleUniform*\u2019 set, the scale values are set accordingly to the same value. fields paint An FT_OpaquePaint object referencing the paint that is to be scaled. scale_x Scale factor in x direction represented as a 16.16 fixed-point value. scale_y Scale factor in y direction represented as a 16.16 fixed-point value. center_x x coordinate of center point to scale from represented as a 16.16 fixed-point value. center_y y coordinate of center point to scale from represented as a 16.16 fixed-point value. since 2.11 \u2013 currently experimental only! There might be changes without retaining backward-compatibility of both the API and ABI. FT_PaintRotate \u00b6 Defined in FT_COLOR_H (freetype/ftcolor.h). typedef struct FT_PaintRotate_ { FT_OpaquePaint paint; FT_Fixed angle; FT_Fixed center_x; FT_Fixed center_y; } FT_PaintRotate ; A structure representing a \u2018COLR\u2019 v1 PaintRotate paint table. Used for rotating downstream paints with a given center and angle. fields paint An FT_OpaquePaint object referencing the paint that is to be rotated. angle The rotation angle that is to be applied in degrees divided by 180.0 (as in the spec) represented as a 16.16 fixed-point value. Multiply by 180.0f to receive degrees value. center_x The x coordinate of the pivot point of the rotation in font units) represented as a 16.16 fixed-point value. center_y The y coordinate of the pivot point of the rotation in font units represented as a 16.16 fixed-point value. since 2.11 \u2013 currently experimental only! There might be changes without retaining backward compatibility of both the API and ABI. FT_PaintSkew \u00b6 Defined in FT_COLOR_H (freetype/ftcolor.h). typedef struct FT_PaintSkew_ { FT_OpaquePaint paint; FT_Fixed x_skew_angle; FT_Fixed y_skew_angle; FT_Fixed center_x; FT_Fixed center_y; } FT_PaintSkew ; A structure representing a \u2018COLR\u2019 v1 PaintSkew paint table. Used for skewing or shearing downstream paints by a given center and angle. fields paint An FT_OpaquePaint object referencing the paint that is to be skewed. x_skew_angle The skewing angle in x direction in degrees divided by 180.0 (as in the spec) represented as a 16.16 fixed-point value. Multiply by 180.0f to receive degrees. y_skew_angle The skewing angle in y direction in degrees divided by 180.0 (as in the spec) represented as a 16.16 fixed-point value. Multiply by 180.0f to receive degrees. center_x The x coordinate of the pivot point of the skew in font units represented as a 16.16 fixed-point value. center_y The y coordinate of the pivot point of the skew in font units represented as a 16.16 fixed-point value. since 2.11 \u2013 currently experimental only! There might be changes without retaining backward compatibility of both the API and ABI. FT_PaintComposite \u00b6 Defined in FT_COLOR_H (freetype/ftcolor.h). typedef struct FT_PaintComposite_ { FT_OpaquePaint source_paint; FT_Composite_Mode composite_mode; FT_OpaquePaint backdrop_paint; } FT_PaintComposite ; A structure representing a \u2018COLR'v1 PaintComposite paint table. Used for compositing two paints in a 'COLR\u2019 v1 directed acycling graph. fields source_paint An FT_OpaquePaint object referencing the source that is to be composited. composite_mode An FT_Composite_Mode enum value determining the composition operation. backdrop_paint An FT_OpaquePaint object referencing the backdrop paint that source_paint is composited onto. since 2.11 \u2013 currently experimental only! There might be changes without retaining backward compatibility of both the API and ABI. FT_COLR_Paint \u00b6 Defined in FT_COLOR_H (freetype/ftcolor.h). typedef struct FT_COLR_Paint_ { FT_PaintFormat format; union { FT_PaintColrLayers colr_layers; FT_PaintGlyph glyph; FT_PaintSolid solid; FT_PaintLinearGradient linear_gradient; FT_PaintRadialGradient radial_gradient; FT_PaintSweepGradient sweep_gradient; FT_PaintTransform transform; FT_PaintTranslate translate; FT_PaintScale scale; FT_PaintRotate rotate; FT_PaintSkew skew; FT_PaintComposite composite; FT_PaintColrGlyph colr_glyph; } u; } FT_COLR_Paint ; A union object representing format and details of a paint table of a \u2018COLR\u2019 v1 font, see \u2018 https://github.com/googlefonts/colr-gradients-spec \u2019. Use FT_Get_Paint to retrieve a FT_COLR_Paint for an FT_OpaquePaint object. fields format The gradient format for this Paint structure. u Union of all paint table types: FT_PaintColrLayers FT_PaintGlyph FT_PaintSolid FT_PaintLinearGradient FT_PaintRadialGradient FT_PaintSweepGradient FT_PaintTransform FT_PaintTranslate FT_PaintRotate FT_PaintSkew FT_PaintComposite * FT_PaintColrGlyph since 2.11 \u2013 currently experimental only! There might be changes without retaining backward compatibility of both the API and ABI. FT_Color_Root_Transform \u00b6 Defined in FT_COLOR_H (freetype/ftcolor.h). typedef enum FT_Color_Root_Transform_ { FT_COLOR_INCLUDE_ROOT_TRANSFORM , FT_COLOR_NO_ROOT_TRANSFORM , FT_COLOR_ROOT_TRANSFORM_MAX } FT_Color_Root_Transform ; An enumeration to specify whether FT_Get_Color_Glyph_Paint is to return a root transform to configure the client's graphics context matrix. values FT_COLOR_INCLUDE_ROOT_TRANSFORM Do include the root transform as the initial FT_COLR_Paint object. FT_COLOR_NO_ROOT_TRANSFORM Do not output an initial root transform. since 2.11 \u2013 currently experimental only! There might be changes without retaining backward compatibility of both the API and ABI. FT_ClipBox \u00b6 Defined in FT_COLOR_H (freetype/ftcolor.h). typedef struct FT_ClipBox_ { FT_Vector bottom_left; FT_Vector top_left; FT_Vector top_right; FT_Vector bottom_right; } FT_ClipBox ; A structure representing a \u2018COLR\u2019 v1 \u2018ClipBox\u2019 table. \u2018COLR\u2019 v1 glyphs may optionally define a clip box for aiding allocation or defining a maximum drawable region. Use FT_Get_Color_Glyph_ClipBox to retrieve it. fields bottom_left The bottom left corner of the clip box as an FT_Vector with fixed-point coordinates in 26.6 format. top_left The top left corner of the clip box as an FT_Vector with fixed-point coordinates in 26.6 format. top_right The top right corner of the clip box as an FT_Vector with fixed-point coordinates in 26.6 format. bottom_right The bottom right corner of the clip box as an FT_Vector with fixed-point coordinates in 26.6 format. since 2.12 \u2013 currently experimental only! There might be changes without retaining backward compatibility of both the API and ABI. FT_Get_Color_Glyph_Paint \u00b6 Defined in FT_COLOR_H (freetype/ftcolor.h). FT_EXPORT( FT_Bool ) FT_Get_Color_Glyph_Paint ( FT_Face face, FT_UInt base_glyph, FT_Color_Root_Transform root_transform, FT_OpaquePaint * paint ); This is the starting point and interface to color gradient information in a \u2018COLR\u2019 v1 table in OpenType fonts to recursively retrieve the paint tables for the directed acyclic graph of a colored glyph, given a glyph ID. https://github.com/googlefonts/colr-gradients-spec In a \u2018COLR\u2019 v1 font, each color glyph defines a directed acyclic graph of nested paint tables, such as PaintGlyph , PaintSolid , PaintLinearGradient , PaintRadialGradient , and so on. Using this function and specifying a glyph ID, one retrieves the root paint table for this glyph ID. This function allows control whether an initial root transform is returned to configure scaling, transform, and translation correctly on the client's graphics context. The initial root transform is computed and returned according to the values configured for FT_Size and FT_Set_Transform on the FT_Face object, see below for details of the root_transform parameter. This has implications for a client \u2018COLR\u2019 v1 implementation: When this function returns an initially computed root transform, at the time of executing the FT_PaintGlyph operation, the contours should be retrieved using FT_Load_Glyph at unscaled, untransformed size. This is because the root transform applied to the graphics context will take care of correct scaling. Alternatively, to allow hinting of contours, at the time of executing FT_Load_Glyph , the current graphics context transformation matrix can be decomposed into a scaling matrix and a remainder, and FT_Load_Glyph can be used to retrieve the contours at scaled size. Care must then be taken to blit or clip to the graphics context with taking this remainder transformation into account. input face A handle to the parent face object. base_glyph The glyph index for which to retrieve the root paint table. root_transform Specifies whether an initially computed root is returned by the FT_PaintTransform operation to account for the activated size (see FT_Activate_Size ) and the configured transform and translate (see FT_Set_Transform ). This root transform is returned before nodes of the glyph graph of the font are returned. Subsequent FT_COLR_Paint structures contain unscaled and untransformed values. The inserted root transform enables the client application to apply an initial transform to its graphics context. When executing subsequent FT_COLR_Paint operations, values from FT_COLR_Paint operations will ultimately be correctly scaled because of the root transform applied to the graphics context. Use FT_COLOR_INCLUDE_ROOT_TRANSFORM to include the root transform, use FT_COLOR_NO_ROOT_TRANSFORM to not include it. The latter may be useful when traversing the \u2018COLR\u2019 v1 glyph graph and reaching a FT_PaintColrGlyph . When recursing into FT_PaintColrGlyph and painting that inline, no additional root transform is needed as it has already been applied to the graphics context at the beginning of drawing this glyph. output paint The FT_OpaquePaint object that references the actual paint table. The respective actual FT_COLR_Paint object is retrieved via FT_Get_Paint . return Value 1 if everything is OK. If no color glyph is found, or the root paint could not be retrieved, value 0 gets returned. In case of an error, value 0 is returned also. since 2.11 \u2013 currently experimental only! There might be changes without retaining backward compatibility of both the API and ABI. FT_Get_Color_Glyph_ClipBox \u00b6 Defined in FT_COLOR_H (freetype/ftcolor.h). FT_EXPORT( FT_Bool ) FT_Get_Color_Glyph_ClipBox ( FT_Face face, FT_UInt base_glyph, FT_ClipBox * clip_box ); Search for a \u2018COLR\u2019 v1 clip box for the specified base_glyph and fill the clip_box parameter with the \u2018COLR\u2019 v1 \u2018ClipBox\u2019 information if one is found. input face A handle to the parent face object. base_glyph The glyph index for which to retrieve the clip box. output clip_box The clip box for the requested base_glyph if one is found. The clip box is computed taking scale and transformations configured on the FT_Face into account. FT_ClipBox contains FT_Vector values in 26.6 format. return Value 1 if a clip box is found. If no clip box is found or an error occured, value 0 is returned. note To retrieve the clip box in font units, reset scale to units-per-em and remove transforms configured using FT_Set_Transform . since 2.12 \u2013 currently experimental only! There might be changes without retaining backward compatibility of both the API and ABI. FT_Get_Paint_Layers \u00b6 Defined in FT_COLOR_H (freetype/ftcolor.h). FT_EXPORT( FT_Bool ) FT_Get_Paint_Layers ( FT_Face face, FT_LayerIterator * iterator, FT_OpaquePaint * paint ); Access the layers of a PaintColrLayers table. If the root paint of a color glyph, or a nested paint of a \u2018COLR\u2019 glyph is a PaintColrLayers table, this function retrieves the layers of the PaintColrLayers table. The FT_PaintColrLayers object contains an FT_LayerIterator , which is used here to iterate over the layers. Each layer is returned as an FT_OpaquePaint object, which then can be used with FT_Get_Paint to retrieve the actual paint object. input face A handle to the parent face object. inout iterator The FT_LayerIterator from an FT_PaintColrLayers object, for which the layers are to be retrieved. The internal state of the iterator is incremented after one call to this function for retrieving one layer. output paint The FT_OpaquePaint object that references the actual paint table. The respective actual FT_COLR_Paint object is retrieved via FT_Get_Paint . return Value 1 if everything is OK. Value 0 gets returned when the paint object can not be retrieved or any other error occurs. since 2.11 \u2013 currently experimental only! There might be changes without retaining backward compatibility of both the API and ABI. FT_Get_Colorline_Stops \u00b6 Defined in FT_COLOR_H (freetype/ftcolor.h). FT_EXPORT( FT_Bool ) FT_Get_Colorline_Stops ( FT_Face face, FT_ColorStop * color_stop, FT_ColorStopIterator * iterator ); This is an interface to color gradient information in a \u2018COLR\u2019 v1 table in OpenType fonts to iteratively retrieve the gradient and solid fill information for colored glyph layers for a specified glyph ID. https://github.com/googlefonts/colr-gradients-spec input face A handle to the parent face object. inout iterator The retrieved FT_ColorStopIterator , configured on an FT_ColorLine , which in turn got retrieved via paint information in FT_PaintLinearGradient or FT_PaintRadialGradient . output color_stop Color index and alpha value for the retrieved color stop. return Value 1 if everything is OK. If there are no more color stops, value 0 gets returned. In case of an error, value 0 is returned also. since 2.11 \u2013 currently experimental only! There might be changes without retaining backward compatibility of both the API and ABI. FT_Get_Paint \u00b6 Defined in FT_COLOR_H (freetype/ftcolor.h). FT_EXPORT( FT_Bool ) FT_Get_Paint ( FT_Face face, FT_OpaquePaint opaque_paint, FT_COLR_Paint * paint ); Access the details of a paint using an FT_OpaquePaint opaque paint object, which internally stores the offset to the respective Paint object in the \u2018COLR\u2019 table. input face A handle to the parent face object. opaque_paint The opaque paint object for which the underlying FT_COLR_Paint data is to be retrieved. output paint The specific FT_COLR_Paint object containing information coming from one of the font's Paint* tables. return Value 1 if everything is OK. Value 0 if no details can be found for this paint or any other error occured. since 2.11 \u2013 currently experimental only! There might be changes without retaining backward compatibility of both the API and ABI.","title":"Glyph Layer Management"},{"location":"ft2-layer_management.html#glyph-layer-management","text":"","title":"Glyph Layer Management"},{"location":"ft2-layer_management.html#synopsis","text":"The functions described here allow access of colored glyph layer data in OpenType's \u2018COLR\u2019 tables.","title":"Synopsis"},{"location":"ft2-layer_management.html#ft_layeriterator","text":"Defined in FT_COLOR_H (freetype/ftcolor.h). typedef struct FT_LayerIterator_ { FT_UInt num_layers; FT_UInt layer; FT_Byte * p; } FT_LayerIterator ; This iterator object is needed for FT_Get_Color_Glyph_Layer .","title":"FT_LayerIterator"},{"location":"ft2-layer_management.html#ft_get_color_glyph_layer","text":"Defined in FT_COLOR_H (freetype/ftcolor.h). FT_EXPORT( FT_Bool ) FT_Get_Color_Glyph_Layer ( FT_Face face, FT_UInt base_glyph, FT_UInt *aglyph_index, FT_UInt *acolor_index, FT_LayerIterator * iterator ); This is an interface to the \u2018COLR\u2019 table in OpenType fonts to iteratively retrieve the colored glyph layers associated with the current glyph slot. https://docs.microsoft.com/en-us/typography/opentype/spec/colr The glyph layer data for a given glyph index, if present, provides an alternative, multi-color glyph representation: Instead of rendering the outline or bitmap with the given glyph index, glyphs with the indices and colors returned by this function are rendered layer by layer. The returned elements are ordered in the z direction from bottom to top; the 'n'th element should be rendered with the associated palette color and blended on top of the already rendered layers (elements 0, 1, \u2026, n-1).","title":"FT_Get_Color_Glyph_Layer"},{"location":"ft2-layer_management.html#ft_paintformat","text":"Defined in FT_COLOR_H (freetype/ftcolor.h). typedef enum FT_PaintFormat_ { FT_COLR_PAINTFORMAT_COLR_LAYERS = 1, FT_COLR_PAINTFORMAT_SOLID = 2, FT_COLR_PAINTFORMAT_LINEAR_GRADIENT = 4, FT_COLR_PAINTFORMAT_RADIAL_GRADIENT = 6, FT_COLR_PAINTFORMAT_SWEEP_GRADIENT = 8, FT_COLR_PAINTFORMAT_GLYPH = 10, FT_COLR_PAINTFORMAT_COLR_GLYPH = 11, FT_COLR_PAINTFORMAT_TRANSFORM = 12, FT_COLR_PAINTFORMAT_TRANSLATE = 14, FT_COLR_PAINTFORMAT_SCALE = 16, FT_COLR_PAINTFORMAT_ROTATE = 24, FT_COLR_PAINTFORMAT_SKEW = 28, FT_COLR_PAINTFORMAT_COMPOSITE = 32, FT_COLR_PAINT_FORMAT_MAX = 33, FT_COLR_PAINTFORMAT_UNSUPPORTED = 255 } FT_PaintFormat ; Enumeration describing the different paint format types of the v1 extensions to the \u2018COLR\u2019 table, see \u2018 https://github.com/googlefonts/colr-gradients-spec \u2019. The enumeration values losely correspond with the format numbers of the specification: FreeType always returns a fully specified \u2018Paint\u2019 structure for the \u2018Transform\u2019, \u2018Translate\u2019, \u2018Scale\u2019, \u2018Rotate\u2019, and \u2018Skew\u2019 table types even though the specification has different formats depending on whether or not a center is specified, whether the scale is uniform in x and y direction or not, etc. Also, only non-variable format identifiers are listed in this enumeration; as soon as support for variable \u2018COLR\u2019 v1 fonts is implemented, interpolation is performed dependent on axis coordinates, which are configured on the FT_Face through FT_Set_Var_Design_Coordinates . This implies that always static, readily interpolated values are returned in the \u2018Paint\u2019 structures.","title":"FT_PaintFormat"},{"location":"ft2-layer_management.html#ft_colorstopiterator","text":"Defined in FT_COLOR_H (freetype/ftcolor.h). typedef struct FT_ColorStopIterator_ { FT_UInt num_color_stops; FT_UInt current_color_stop; FT_Byte * p; } FT_ColorStopIterator ; This iterator object is needed for FT_Get_Colorline_Stops . It keeps state while iterating over the stops of an FT_ColorLine , representing the ColorLine struct of the v1 extensions to \u2018COLR\u2019, see \u2018 https://github.com/googlefonts/colr-gradients-spec \u2019.","title":"FT_ColorStopIterator"},{"location":"ft2-layer_management.html#ft_colorindex","text":"Defined in FT_COLOR_H (freetype/ftcolor.h). typedef struct FT_ColorIndex_ { FT_UInt16 palette_index; FT_F2Dot14 alpha; } FT_ColorIndex ; A structure representing a ColorIndex value of the \u2018COLR\u2019 v1 extensions, see \u2018 https://github.com/googlefonts/colr-gradients-spec \u2019.","title":"FT_ColorIndex"},{"location":"ft2-layer_management.html#ft_colorstop","text":"Defined in FT_COLOR_H (freetype/ftcolor.h). typedef struct FT_ColorStop_ { FT_F2Dot14 stop_offset; FT_ColorIndex color; } FT_ColorStop ; A structure representing a ColorStop value of the \u2018COLR\u2019 v1 extensions, see \u2018 https://github.com/googlefonts/colr-gradients-spec \u2019.","title":"FT_ColorStop"},{"location":"ft2-layer_management.html#ft_paintextend","text":"Defined in FT_COLOR_H (freetype/ftcolor.h). typedef enum FT_PaintExtend_ { FT_COLR_PAINT_EXTEND_PAD = 0, FT_COLR_PAINT_EXTEND_REPEAT = 1, FT_COLR_PAINT_EXTEND_REFLECT = 2 } FT_PaintExtend ; An enumeration representing the \u2018Extend\u2019 mode of the \u2018COLR\u2019 v1 extensions, see \u2018 https://github.com/googlefonts/colr-gradients-spec \u2019. It describes how the gradient fill continues at the other boundaries.","title":"FT_PaintExtend"},{"location":"ft2-layer_management.html#ft_colorline","text":"Defined in FT_COLOR_H (freetype/ftcolor.h). typedef struct FT_ColorLine_ { FT_PaintExtend extend; FT_ColorStopIterator color_stop_iterator; } FT_ColorLine ; A structure representing a ColorLine value of the \u2018COLR\u2019 v1 extensions, see \u2018 https://github.com/googlefonts/colr-gradients-spec \u2019. It describes a list of color stops along the defined gradient.","title":"FT_ColorLine"},{"location":"ft2-layer_management.html#ft_affine23","text":"Defined in FT_COLOR_H (freetype/ftcolor.h). typedef struct FT_Affine_23_ { FT_Fixed xx, xy, dx; FT_Fixed yx, yy, dy; } FT_Affine23 ; A structure used to store a 2x3 matrix. Coefficients are in 16.16 fixed-point format. The computation performed is x' = x*xx + y*xy + dx y' = x*yx + y*yy + dy","title":"FT_Affine23"},{"location":"ft2-layer_management.html#ft_composite_mode","text":"Defined in FT_COLOR_H (freetype/ftcolor.h). typedef enum FT_Composite_Mode_ { FT_COLR_COMPOSITE_CLEAR = 0, FT_COLR_COMPOSITE_SRC = 1, FT_COLR_COMPOSITE_DEST = 2, FT_COLR_COMPOSITE_SRC_OVER = 3, FT_COLR_COMPOSITE_DEST_OVER = 4, FT_COLR_COMPOSITE_SRC_IN = 5, FT_COLR_COMPOSITE_DEST_IN = 6, FT_COLR_COMPOSITE_SRC_OUT = 7, FT_COLR_COMPOSITE_DEST_OUT = 8, FT_COLR_COMPOSITE_SRC_ATOP = 9, FT_COLR_COMPOSITE_DEST_ATOP = 10, FT_COLR_COMPOSITE_XOR = 11, FT_COLR_COMPOSITE_PLUS = 12, FT_COLR_COMPOSITE_SCREEN = 13, FT_COLR_COMPOSITE_OVERLAY = 14, FT_COLR_COMPOSITE_DARKEN = 15, FT_COLR_COMPOSITE_LIGHTEN = 16, FT_COLR_COMPOSITE_COLOR_DODGE = 17, FT_COLR_COMPOSITE_COLOR_BURN = 18, FT_COLR_COMPOSITE_HARD_LIGHT = 19, FT_COLR_COMPOSITE_SOFT_LIGHT = 20, FT_COLR_COMPOSITE_DIFFERENCE = 21, FT_COLR_COMPOSITE_EXCLUSION = 22, FT_COLR_COMPOSITE_MULTIPLY = 23, FT_COLR_COMPOSITE_HSL_HUE = 24, FT_COLR_COMPOSITE_HSL_SATURATION = 25, FT_COLR_COMPOSITE_HSL_COLOR = 26, FT_COLR_COMPOSITE_HSL_LUMINOSITY = 27, FT_COLR_COMPOSITE_MAX = 28 } FT_Composite_Mode ; An enumeration listing the \u2018COLR\u2019 v1 composite modes used in FT_PaintComposite . For more details on each paint mode, see \u2018 https://www.w3.org/TR/compositing-1/#porterduffcompositingoperators \u2019.","title":"FT_Composite_Mode"},{"location":"ft2-layer_management.html#ft_opaquepaint","text":"Defined in FT_COLOR_H (freetype/ftcolor.h). typedef struct FT_Opaque_Paint_ { FT_Byte * p; FT_Bool insert_root_transform; } FT_OpaquePaint ; A structure representing an offset to a Paint value stored in any of the paint tables of a \u2018COLR\u2019 v1 font. Compare Offset<24> there. When \u2018COLR\u2019 v1 paint tables represented by FreeType objects such as FT_PaintColrLayers , FT_PaintComposite , or FT_PaintTransform reference downstream nested paint tables, we do not immediately retrieve them but encapsulate their location in this type. Use FT_Get_Paint to retrieve the actual FT_COLR_Paint object that describes the details of the respective paint table.","title":"FT_OpaquePaint"},{"location":"ft2-layer_management.html#ft_paintcolrlayers","text":"Defined in FT_COLOR_H (freetype/ftcolor.h). typedef struct FT_PaintColrLayers_ { FT_LayerIterator layer_iterator; } FT_PaintColrLayers ; A structure representing a PaintColrLayers table of a \u2018COLR\u2019 v1 font. This table describes a set of layers that are to be composited with composite mode FT_COLR_COMPOSITE_SRC_OVER . The return value of this function is an FT_LayerIterator initialized so that it can be used with FT_Get_Paint_Layers to retrieve the FT_OpaquePaint objects as references to each layer.","title":"FT_PaintColrLayers"},{"location":"ft2-layer_management.html#ft_paintsolid","text":"Defined in FT_COLOR_H (freetype/ftcolor.h). typedef struct FT_PaintSolid_ { FT_ColorIndex color; } FT_PaintSolid ; A structure representing a PaintSolid value of the \u2018COLR\u2019 v1 extensions, see \u2018 https://github.com/googlefonts/colr-gradients-spec \u2019. Using a PaintSolid value means that the glyph layer filled with this paint is solid-colored and does not contain a gradient.","title":"FT_PaintSolid"},{"location":"ft2-layer_management.html#ft_paintlineargradient","text":"Defined in FT_COLOR_H (freetype/ftcolor.h). typedef struct FT_PaintLinearGradient_ { FT_ColorLine colorline; /* TODO: Potentially expose those as x0, y0 etc. */ FT_Vector p0; FT_Vector p1; FT_Vector p2; } FT_PaintLinearGradient ; A structure representing a PaintLinearGradient value of the \u2018COLR\u2019 v1 extensions, see \u2018 https://github.com/googlefonts/colr-gradients-spec \u2019. The glyph layer filled with this paint is drawn filled with a linear gradient.","title":"FT_PaintLinearGradient"},{"location":"ft2-layer_management.html#ft_paintradialgradient","text":"Defined in FT_COLOR_H (freetype/ftcolor.h). typedef struct FT_PaintRadialGradient_ { FT_ColorLine colorline; FT_Vector c0; FT_Pos r0; FT_Vector c1; FT_Pos r1; } FT_PaintRadialGradient ; A structure representing a PaintRadialGradient value of the \u2018COLR\u2019 v1 extensions, see \u2018 https://github.com/googlefonts/colr-gradients-spec \u2019. The glyph layer filled with this paint is drawn filled filled with a radial gradient.","title":"FT_PaintRadialGradient"},{"location":"ft2-layer_management.html#ft_paintsweepgradient","text":"Defined in FT_COLOR_H (freetype/ftcolor.h). typedef struct FT_PaintSweepGradient_ { FT_ColorLine colorline; FT_Vector center; FT_Fixed start_angle; FT_Fixed end_angle; } FT_PaintSweepGradient ; A structure representing a PaintSweepGradient value of the \u2018COLR\u2019 v1 extensions, see \u2018 https://github.com/googlefonts/colr-gradients-spec \u2019. The glyph layer filled with this paint is drawn filled with a sweep gradient from start_angle to end_angle .","title":"FT_PaintSweepGradient"},{"location":"ft2-layer_management.html#ft_paintglyph","text":"Defined in FT_COLOR_H (freetype/ftcolor.h). typedef struct FT_PaintGlyph_ { FT_OpaquePaint paint; FT_UInt glyphID; } FT_PaintGlyph ; A structure representing a \u2018COLR\u2019 v1 PaintGlyph paint table.","title":"FT_PaintGlyph"},{"location":"ft2-layer_management.html#ft_paintcolrglyph","text":"Defined in FT_COLOR_H (freetype/ftcolor.h). typedef struct FT_PaintColrGlyph_ { FT_UInt glyphID; } FT_PaintColrGlyph ; A structure representing a \u2018COLR\u2019 v1 PaintColorGlyph paint table.","title":"FT_PaintColrGlyph"},{"location":"ft2-layer_management.html#ft_painttransform","text":"Defined in FT_COLOR_H (freetype/ftcolor.h). typedef struct FT_PaintTransform_ { FT_OpaquePaint paint; FT_Affine23 affine; } FT_PaintTransform ; A structure representing a \u2018COLR\u2019 v1 PaintTransform paint table.","title":"FT_PaintTransform"},{"location":"ft2-layer_management.html#ft_painttranslate","text":"Defined in FT_COLOR_H (freetype/ftcolor.h). typedef struct FT_PaintTranslate_ { FT_OpaquePaint paint; FT_Fixed dx; FT_Fixed dy; } FT_PaintTranslate ; A structure representing a \u2018COLR\u2019 v1 PaintTranslate paint table. Used for translating downstream paints by a given x and y delta.","title":"FT_PaintTranslate"},{"location":"ft2-layer_management.html#ft_paintscale","text":"Defined in FT_COLOR_H (freetype/ftcolor.h). typedef struct FT_PaintScale_ { FT_OpaquePaint paint; FT_Fixed scale_x; FT_Fixed scale_y; FT_Fixed center_x; FT_Fixed center_y; } FT_PaintScale ; A structure representing all of the \u2018COLR\u2019 v1 \u2018PaintScale*\u2019 paint tables. Used for scaling downstream paints by a given x and y scale, with a given center. This structure is used for all \u2018PaintScale*\u2019 types that are part of specification; fields of this structure are filled accordingly. If there is a center, the center values are set, otherwise they are set to the zero coordinate. If the source font file has \u2018PaintScaleUniform*\u2019 set, the scale values are set accordingly to the same value.","title":"FT_PaintScale"},{"location":"ft2-layer_management.html#ft_paintrotate","text":"Defined in FT_COLOR_H (freetype/ftcolor.h). typedef struct FT_PaintRotate_ { FT_OpaquePaint paint; FT_Fixed angle; FT_Fixed center_x; FT_Fixed center_y; } FT_PaintRotate ; A structure representing a \u2018COLR\u2019 v1 PaintRotate paint table. Used for rotating downstream paints with a given center and angle.","title":"FT_PaintRotate"},{"location":"ft2-layer_management.html#ft_paintskew","text":"Defined in FT_COLOR_H (freetype/ftcolor.h). typedef struct FT_PaintSkew_ { FT_OpaquePaint paint; FT_Fixed x_skew_angle; FT_Fixed y_skew_angle; FT_Fixed center_x; FT_Fixed center_y; } FT_PaintSkew ; A structure representing a \u2018COLR\u2019 v1 PaintSkew paint table. Used for skewing or shearing downstream paints by a given center and angle.","title":"FT_PaintSkew"},{"location":"ft2-layer_management.html#ft_paintcomposite","text":"Defined in FT_COLOR_H (freetype/ftcolor.h). typedef struct FT_PaintComposite_ { FT_OpaquePaint source_paint; FT_Composite_Mode composite_mode; FT_OpaquePaint backdrop_paint; } FT_PaintComposite ; A structure representing a \u2018COLR'v1 PaintComposite paint table. Used for compositing two paints in a 'COLR\u2019 v1 directed acycling graph.","title":"FT_PaintComposite"},{"location":"ft2-layer_management.html#ft_colr_paint","text":"Defined in FT_COLOR_H (freetype/ftcolor.h). typedef struct FT_COLR_Paint_ { FT_PaintFormat format; union { FT_PaintColrLayers colr_layers; FT_PaintGlyph glyph; FT_PaintSolid solid; FT_PaintLinearGradient linear_gradient; FT_PaintRadialGradient radial_gradient; FT_PaintSweepGradient sweep_gradient; FT_PaintTransform transform; FT_PaintTranslate translate; FT_PaintScale scale; FT_PaintRotate rotate; FT_PaintSkew skew; FT_PaintComposite composite; FT_PaintColrGlyph colr_glyph; } u; } FT_COLR_Paint ; A union object representing format and details of a paint table of a \u2018COLR\u2019 v1 font, see \u2018 https://github.com/googlefonts/colr-gradients-spec \u2019. Use FT_Get_Paint to retrieve a FT_COLR_Paint for an FT_OpaquePaint object.","title":"FT_COLR_Paint"},{"location":"ft2-layer_management.html#ft_color_root_transform","text":"Defined in FT_COLOR_H (freetype/ftcolor.h). typedef enum FT_Color_Root_Transform_ { FT_COLOR_INCLUDE_ROOT_TRANSFORM , FT_COLOR_NO_ROOT_TRANSFORM , FT_COLOR_ROOT_TRANSFORM_MAX } FT_Color_Root_Transform ; An enumeration to specify whether FT_Get_Color_Glyph_Paint is to return a root transform to configure the client's graphics context matrix.","title":"FT_Color_Root_Transform"},{"location":"ft2-layer_management.html#ft_clipbox","text":"Defined in FT_COLOR_H (freetype/ftcolor.h). typedef struct FT_ClipBox_ { FT_Vector bottom_left; FT_Vector top_left; FT_Vector top_right; FT_Vector bottom_right; } FT_ClipBox ; A structure representing a \u2018COLR\u2019 v1 \u2018ClipBox\u2019 table. \u2018COLR\u2019 v1 glyphs may optionally define a clip box for aiding allocation or defining a maximum drawable region. Use FT_Get_Color_Glyph_ClipBox to retrieve it.","title":"FT_ClipBox"},{"location":"ft2-layer_management.html#ft_get_color_glyph_paint","text":"Defined in FT_COLOR_H (freetype/ftcolor.h). FT_EXPORT( FT_Bool ) FT_Get_Color_Glyph_Paint ( FT_Face face, FT_UInt base_glyph, FT_Color_Root_Transform root_transform, FT_OpaquePaint * paint ); This is the starting point and interface to color gradient information in a \u2018COLR\u2019 v1 table in OpenType fonts to recursively retrieve the paint tables for the directed acyclic graph of a colored glyph, given a glyph ID. https://github.com/googlefonts/colr-gradients-spec In a \u2018COLR\u2019 v1 font, each color glyph defines a directed acyclic graph of nested paint tables, such as PaintGlyph , PaintSolid , PaintLinearGradient , PaintRadialGradient , and so on. Using this function and specifying a glyph ID, one retrieves the root paint table for this glyph ID. This function allows control whether an initial root transform is returned to configure scaling, transform, and translation correctly on the client's graphics context. The initial root transform is computed and returned according to the values configured for FT_Size and FT_Set_Transform on the FT_Face object, see below for details of the root_transform parameter. This has implications for a client \u2018COLR\u2019 v1 implementation: When this function returns an initially computed root transform, at the time of executing the FT_PaintGlyph operation, the contours should be retrieved using FT_Load_Glyph at unscaled, untransformed size. This is because the root transform applied to the graphics context will take care of correct scaling. Alternatively, to allow hinting of contours, at the time of executing FT_Load_Glyph , the current graphics context transformation matrix can be decomposed into a scaling matrix and a remainder, and FT_Load_Glyph can be used to retrieve the contours at scaled size. Care must then be taken to blit or clip to the graphics context with taking this remainder transformation into account.","title":"FT_Get_Color_Glyph_Paint"},{"location":"ft2-layer_management.html#ft_get_color_glyph_clipbox","text":"Defined in FT_COLOR_H (freetype/ftcolor.h). FT_EXPORT( FT_Bool ) FT_Get_Color_Glyph_ClipBox ( FT_Face face, FT_UInt base_glyph, FT_ClipBox * clip_box ); Search for a \u2018COLR\u2019 v1 clip box for the specified base_glyph and fill the clip_box parameter with the \u2018COLR\u2019 v1 \u2018ClipBox\u2019 information if one is found.","title":"FT_Get_Color_Glyph_ClipBox"},{"location":"ft2-layer_management.html#ft_get_paint_layers","text":"Defined in FT_COLOR_H (freetype/ftcolor.h). FT_EXPORT( FT_Bool ) FT_Get_Paint_Layers ( FT_Face face, FT_LayerIterator * iterator, FT_OpaquePaint * paint ); Access the layers of a PaintColrLayers table. If the root paint of a color glyph, or a nested paint of a \u2018COLR\u2019 glyph is a PaintColrLayers table, this function retrieves the layers of the PaintColrLayers table. The FT_PaintColrLayers object contains an FT_LayerIterator , which is used here to iterate over the layers. Each layer is returned as an FT_OpaquePaint object, which then can be used with FT_Get_Paint to retrieve the actual paint object.","title":"FT_Get_Paint_Layers"},{"location":"ft2-layer_management.html#ft_get_colorline_stops","text":"Defined in FT_COLOR_H (freetype/ftcolor.h). FT_EXPORT( FT_Bool ) FT_Get_Colorline_Stops ( FT_Face face, FT_ColorStop * color_stop, FT_ColorStopIterator * iterator ); This is an interface to color gradient information in a \u2018COLR\u2019 v1 table in OpenType fonts to iteratively retrieve the gradient and solid fill information for colored glyph layers for a specified glyph ID. https://github.com/googlefonts/colr-gradients-spec","title":"FT_Get_Colorline_Stops"},{"location":"ft2-layer_management.html#ft_get_paint","text":"Defined in FT_COLOR_H (freetype/ftcolor.h). FT_EXPORT( FT_Bool ) FT_Get_Paint ( FT_Face face, FT_OpaquePaint opaque_paint, FT_COLR_Paint * paint ); Access the details of a paint using an FT_OpaquePaint opaque paint object, which internally stores the offset to the respective Paint object in the \u2018COLR\u2019 table.","title":"FT_Get_Paint"},{"location":"ft2-lcd_rendering.html","text":"FreeType \u00bb Docs \u00bb Controlling FreeType Modules \u00bb Subpixel Rendering Subpixel Rendering \u00b6 Synopsis \u00b6 FreeType provides two alternative subpixel rendering technologies. Should you define FT_CONFIG_OPTION_SUBPIXEL_RENDERING in your ftoption.h file, this enables ClearType-style rendering. Otherwise, Harmony LCD rendering is enabled. These technologies are controlled differently and API described below, although always available, performs its function when appropriate method is enabled and does nothing otherwise. ClearType-style LCD rendering exploits the color-striped structure of LCD pixels, increasing the available resolution in the direction of the stripe (usually horizontal RGB) by a factor of 3. Using the subpixel coverages unfiltered can create severe color fringes especially when rendering thin features. Indeed, to produce black-on-white text, the nearby color subpixels must be dimmed evenly. Therefore, an equalizing 5-tap FIR filter should be applied to subpixel coverages regardless of pixel boundaries and should have these properties: It should be symmetrical, like { a, b, c, b, a }, to avoid any shifts in appearance. It should be color-balanced, meaning a + b = c, to reduce color fringes by distributing the computed coverage for one subpixel to all subpixels equally. It should be normalized, meaning 2a + 2b + c = 1.0 to maintain overall brightness. Boxy 3-tap filter {0, \u2153, \u2153, \u2153, 0} is sharper but is less forgiving of non-ideal gamma curves of a screen (and viewing angles), beveled filters are fuzzier but more tolerant. Use the FT_Library_SetLcdFilter or FT_Library_SetLcdFilterWeights API to specify a low-pass filter, which is then applied to subpixel-rendered bitmaps generated through FT_Render_Glyph . Harmony LCD rendering is suitable to panels with any regular subpixel structure, not just monitors with 3 color striped subpixels, as long as the color subpixels have fixed positions relative to the pixel center. In this case, each color channel can be rendered separately after shifting the outline opposite to the subpixel shift so that the coverage maps are aligned. This method is immune to color fringes because the shifts do not change integral coverage. The subpixel geometry must be specified by xy-coordinates for each subpixel. By convention they may come in the RGB order: {{-\u2153, 0}, {0, 0}, {\u2153, 0}} for standard RGB striped panel or {{-\u2159, \u00bc}, {-\u2159, -\u00bc}, {\u2153, 0}} for a certain PenTile panel. Use the FT_Library_SetLcdGeometry API to specify subpixel positions. If one follows the RGB order convention, the same order applies to the resulting FT_PIXEL_MODE_LCD and FT_PIXEL_MODE_LCD_V bitmaps. Note, however, that the coordinate frame for the latter must be rotated clockwise. Harmony with default LCD geometry is equivalent to ClearType with light filter. As a result of ClearType filtering or Harmony shifts, the resulting dimensions of LCD bitmaps can be slightly wider or taller than the dimensions the original outline with regard to the pixel grid. For example, for FT_RENDER_MODE_LCD , the filter adds 2 subpixels to the left, and 2 subpixels to the right. The bitmap offset values are adjusted accordingly, so clients shouldn't need to modify their layout and glyph positioning code when enabling the filter. The ClearType and Harmony rendering is applicable to glyph bitmaps rendered through FT_Render_Glyph , FT_Load_Glyph , FT_Load_Char , and FT_Glyph_To_Bitmap , when FT_RENDER_MODE_LCD or FT_RENDER_MODE_LCD_V is specified. This API does not control FT_Outline_Render and FT_Outline_Get_Bitmap . The described algorithms can completely remove color artefacts when combined with gamma-corrected alpha blending in linear space. Each of the 3 alpha values (subpixels) must by independently used to blend one color channel. That is, red alpha blends the red channel of the text color with the red channel of the background pixel. FT_LcdFilter \u00b6 Defined in FT_LCD_FILTER_H (freetype/ftlcdfil.h). typedef enum FT_LcdFilter_ { FT_LCD_FILTER_NONE = 0, FT_LCD_FILTER_DEFAULT = 1, FT_LCD_FILTER_LIGHT = 2, FT_LCD_FILTER_LEGACY1 = 3, FT_LCD_FILTER_LEGACY = 16, FT_LCD_FILTER_MAX /* do not remove */ } FT_LcdFilter ; A list of values to identify various types of LCD filters. values FT_LCD_FILTER_NONE Do not perform filtering. When used with subpixel rendering, this results in sometimes severe color fringes. FT_LCD_FILTER_DEFAULT This is a beveled, normalized, and color-balanced five-tap filter with weights of [0x08 0x4D 0x56 0x4D 0x08] in 1/256th units. FT_LCD_FILTER_LIGHT this is a boxy, normalized, and color-balanced three-tap filter with weights of [0x00 0x55 0x56 0x55 0x00] in 1/256th units. FT_LCD_FILTER_LEGACY FT_LCD_FILTER_LEGACY1 This filter corresponds to the original libXft color filter. It provides high contrast output but can exhibit really bad color fringes if glyphs are not extremely well hinted to the pixel grid. This filter is only provided for comparison purposes, and might be disabled or stay unsupported in the future. The second value is provided for compatibility with FontConfig, which historically used different enumeration, sometimes incorrectly forwarded to FreeType. since 2.3.0 ( FT_LCD_FILTER_LEGACY1 since 2.6.2) FT_Library_SetLcdFilter \u00b6 Defined in FT_LCD_FILTER_H (freetype/ftlcdfil.h). FT_EXPORT( FT_Error ) FT_Library_SetLcdFilter ( FT_Library library, FT_LcdFilter filter ); This function is used to change filter applied to LCD decimated bitmaps, like the ones used when calling FT_Render_Glyph with FT_RENDER_MODE_LCD or FT_RENDER_MODE_LCD_V . input library A handle to the target library instance. filter The filter type. You can use FT_LCD_FILTER_NONE here to disable this feature, or FT_LCD_FILTER_DEFAULT to use a default filter that should work well on most LCD screens. return FreeType error code. 0 means success. note Since 2.10.3 the LCD filtering is enabled with FT_LCD_FILTER_DEFAULT . It is no longer necessary to call this function explicitly except to choose a different filter or disable filtering altogether with FT_LCD_FILTER_NONE . This function does nothing but returns FT_Err_Unimplemented_Feature if the configuration macro FT_CONFIG_OPTION_SUBPIXEL_RENDERING is not defined in your build of the library. since 2.3.0 FT_Library_SetLcdFilterWeights \u00b6 Defined in FT_LCD_FILTER_H (freetype/ftlcdfil.h). FT_EXPORT( FT_Error ) FT_Library_SetLcdFilterWeights ( FT_Library library, unsigned char *weights ); This function can be used to enable LCD filter with custom weights, instead of using presets in FT_Library_SetLcdFilter . input library A handle to the target library instance. weights A pointer to an array; the function copies the first five bytes and uses them to specify the filter weights in 1/256th units. return FreeType error code. 0 means success. note This function does nothing but returns FT_Err_Unimplemented_Feature if the configuration macro FT_CONFIG_OPTION_SUBPIXEL_RENDERING is not defined in your build of the library. LCD filter weights can also be set per face using FT_Face_Properties with FT_PARAM_TAG_LCD_FILTER_WEIGHTS . since 2.4.0 FT_LcdFiveTapFilter \u00b6 Defined in FT_LCD_FILTER_H (freetype/ftlcdfil.h). # define FT_LCD_FILTER_FIVE_TAPS 5 typedef FT_Byte FT_LcdFiveTapFilter [FT_LCD_FILTER_FIVE_TAPS]; A typedef for passing the five LCD filter weights to FT_Face_Properties within an FT_Parameter structure. since 2.8 FT_Library_SetLcdGeometry \u00b6 Defined in FT_LCD_FILTER_H (freetype/ftlcdfil.h). FT_EXPORT( FT_Error ) FT_Library_SetLcdGeometry ( FT_Library library, FT_Vector sub[3] ); This function can be used to modify default positions of color subpixels, which controls Harmony LCD rendering. input library A handle to the target library instance. sub A pointer to an array of 3 vectors in 26.6 fractional pixel format; the function modifies the default values, see the note below. return FreeType error code. 0 means success. note Subpixel geometry examples: {{-21, 0}, {0, 0}, {21, 0}} is the default, corresponding to 3 color stripes shifted by a third of a pixel. This could be an RGB panel. {{21, 0}, {0, 0}, {-21, 0}} looks the same as the default but can specify a BGR panel instead, while keeping the bitmap in the same RGB888 format. {{0, 21}, {0, 0}, {0, -21}} is the vertical RGB, but the bitmap stays RGB888 as a result. {{-11, 16}, {-11, -16}, {22, 0}} is a certain PenTile arrangement. This function does nothing and returns FT_Err_Unimplemented_Feature in the context of ClearType-style subpixel rendering when FT_CONFIG_OPTION_SUBPIXEL_RENDERING is defined in your build of the library. since 2.10.0","title":"Subpixel Rendering"},{"location":"ft2-lcd_rendering.html#subpixel-rendering","text":"","title":"Subpixel Rendering"},{"location":"ft2-lcd_rendering.html#synopsis","text":"FreeType provides two alternative subpixel rendering technologies. Should you define FT_CONFIG_OPTION_SUBPIXEL_RENDERING in your ftoption.h file, this enables ClearType-style rendering. Otherwise, Harmony LCD rendering is enabled. These technologies are controlled differently and API described below, although always available, performs its function when appropriate method is enabled and does nothing otherwise. ClearType-style LCD rendering exploits the color-striped structure of LCD pixels, increasing the available resolution in the direction of the stripe (usually horizontal RGB) by a factor of 3. Using the subpixel coverages unfiltered can create severe color fringes especially when rendering thin features. Indeed, to produce black-on-white text, the nearby color subpixels must be dimmed evenly. Therefore, an equalizing 5-tap FIR filter should be applied to subpixel coverages regardless of pixel boundaries and should have these properties: It should be symmetrical, like { a, b, c, b, a }, to avoid any shifts in appearance. It should be color-balanced, meaning a + b = c, to reduce color fringes by distributing the computed coverage for one subpixel to all subpixels equally. It should be normalized, meaning 2a + 2b + c = 1.0 to maintain overall brightness. Boxy 3-tap filter {0, \u2153, \u2153, \u2153, 0} is sharper but is less forgiving of non-ideal gamma curves of a screen (and viewing angles), beveled filters are fuzzier but more tolerant. Use the FT_Library_SetLcdFilter or FT_Library_SetLcdFilterWeights API to specify a low-pass filter, which is then applied to subpixel-rendered bitmaps generated through FT_Render_Glyph . Harmony LCD rendering is suitable to panels with any regular subpixel structure, not just monitors with 3 color striped subpixels, as long as the color subpixels have fixed positions relative to the pixel center. In this case, each color channel can be rendered separately after shifting the outline opposite to the subpixel shift so that the coverage maps are aligned. This method is immune to color fringes because the shifts do not change integral coverage. The subpixel geometry must be specified by xy-coordinates for each subpixel. By convention they may come in the RGB order: {{-\u2153, 0}, {0, 0}, {\u2153, 0}} for standard RGB striped panel or {{-\u2159, \u00bc}, {-\u2159, -\u00bc}, {\u2153, 0}} for a certain PenTile panel. Use the FT_Library_SetLcdGeometry API to specify subpixel positions. If one follows the RGB order convention, the same order applies to the resulting FT_PIXEL_MODE_LCD and FT_PIXEL_MODE_LCD_V bitmaps. Note, however, that the coordinate frame for the latter must be rotated clockwise. Harmony with default LCD geometry is equivalent to ClearType with light filter. As a result of ClearType filtering or Harmony shifts, the resulting dimensions of LCD bitmaps can be slightly wider or taller than the dimensions the original outline with regard to the pixel grid. For example, for FT_RENDER_MODE_LCD , the filter adds 2 subpixels to the left, and 2 subpixels to the right. The bitmap offset values are adjusted accordingly, so clients shouldn't need to modify their layout and glyph positioning code when enabling the filter. The ClearType and Harmony rendering is applicable to glyph bitmaps rendered through FT_Render_Glyph , FT_Load_Glyph , FT_Load_Char , and FT_Glyph_To_Bitmap , when FT_RENDER_MODE_LCD or FT_RENDER_MODE_LCD_V is specified. This API does not control FT_Outline_Render and FT_Outline_Get_Bitmap . The described algorithms can completely remove color artefacts when combined with gamma-corrected alpha blending in linear space. Each of the 3 alpha values (subpixels) must by independently used to blend one color channel. That is, red alpha blends the red channel of the text color with the red channel of the background pixel.","title":"Synopsis"},{"location":"ft2-lcd_rendering.html#ft_lcdfilter","text":"Defined in FT_LCD_FILTER_H (freetype/ftlcdfil.h). typedef enum FT_LcdFilter_ { FT_LCD_FILTER_NONE = 0, FT_LCD_FILTER_DEFAULT = 1, FT_LCD_FILTER_LIGHT = 2, FT_LCD_FILTER_LEGACY1 = 3, FT_LCD_FILTER_LEGACY = 16, FT_LCD_FILTER_MAX /* do not remove */ } FT_LcdFilter ; A list of values to identify various types of LCD filters.","title":"FT_LcdFilter"},{"location":"ft2-lcd_rendering.html#ft_library_setlcdfilter","text":"Defined in FT_LCD_FILTER_H (freetype/ftlcdfil.h). FT_EXPORT( FT_Error ) FT_Library_SetLcdFilter ( FT_Library library, FT_LcdFilter filter ); This function is used to change filter applied to LCD decimated bitmaps, like the ones used when calling FT_Render_Glyph with FT_RENDER_MODE_LCD or FT_RENDER_MODE_LCD_V .","title":"FT_Library_SetLcdFilter"},{"location":"ft2-lcd_rendering.html#ft_library_setlcdfilterweights","text":"Defined in FT_LCD_FILTER_H (freetype/ftlcdfil.h). FT_EXPORT( FT_Error ) FT_Library_SetLcdFilterWeights ( FT_Library library, unsigned char *weights ); This function can be used to enable LCD filter with custom weights, instead of using presets in FT_Library_SetLcdFilter .","title":"FT_Library_SetLcdFilterWeights"},{"location":"ft2-lcd_rendering.html#ft_lcdfivetapfilter","text":"Defined in FT_LCD_FILTER_H (freetype/ftlcdfil.h). # define FT_LCD_FILTER_FIVE_TAPS 5 typedef FT_Byte FT_LcdFiveTapFilter [FT_LCD_FILTER_FIVE_TAPS]; A typedef for passing the five LCD filter weights to FT_Face_Properties within an FT_Parameter structure.","title":"FT_LcdFiveTapFilter"},{"location":"ft2-lcd_rendering.html#ft_library_setlcdgeometry","text":"Defined in FT_LCD_FILTER_H (freetype/ftlcdfil.h). FT_EXPORT( FT_Error ) FT_Library_SetLcdGeometry ( FT_Library library, FT_Vector sub[3] ); This function can be used to modify default positions of color subpixels, which controls Harmony LCD rendering.","title":"FT_Library_SetLcdGeometry"},{"location":"ft2-list_processing.html","text":"FreeType \u00bb Docs \u00bb Support API \u00bb List Processing List Processing \u00b6 Synopsis \u00b6 This section contains various definitions related to list processing using doubly-linked nodes. FT_List \u00b6 Defined in FT_TYPES_H (freetype/fttypes.h). typedef struct FT_ListRec_* FT_List ; A handle to a list record (see FT_ListRec ). FT_ListNode \u00b6 Defined in FT_TYPES_H (freetype/fttypes.h). typedef struct FT_ListNodeRec_* FT_ListNode ; Many elements and objects in FreeType are listed through an FT_List record (see FT_ListRec ). As its name suggests, an FT_ListNode is a handle to a single list element. FT_ListRec \u00b6 Defined in FT_TYPES_H (freetype/fttypes.h). typedef struct FT_ListRec_ { FT_ListNode head; FT_ListNode tail; } FT_ListRec ; A structure used to hold a simple doubly-linked list. These are used in many parts of FreeType. fields head The head (first element) of doubly-linked list. tail The tail (last element) of doubly-linked list. FT_ListNodeRec \u00b6 Defined in FT_TYPES_H (freetype/fttypes.h). typedef struct FT_ListNodeRec_ { FT_ListNode prev; FT_ListNode next; void * data; } FT_ListNodeRec ; A structure used to hold a single list element. fields prev The previous element in the list. NULL if first. next The next element in the list. NULL if last. data A typeless pointer to the listed object. FT_List_Add \u00b6 Defined in FT_LIST_H (freetype/ftlist.h). FT_EXPORT( void ) FT_List_Add ( FT_List list, FT_ListNode node ); Append an element to the end of a list. inout list A pointer to the parent list. node The node to append. FT_List_Insert \u00b6 Defined in FT_LIST_H (freetype/ftlist.h). FT_EXPORT( void ) FT_List_Insert ( FT_List list, FT_ListNode node ); Insert an element at the head of a list. inout list A pointer to parent list. node The node to insert. FT_List_Find \u00b6 Defined in FT_LIST_H (freetype/ftlist.h). FT_EXPORT( FT_ListNode ) FT_List_Find ( FT_List list, void * data ); Find the list node for a given listed object. input list A pointer to the parent list. data The address of the listed object. return List node. NULL if it wasn't found. FT_List_Remove \u00b6 Defined in FT_LIST_H (freetype/ftlist.h). FT_EXPORT( void ) FT_List_Remove ( FT_List list, FT_ListNode node ); Remove a node from a list. This function doesn't check whether the node is in the list! input node The node to remove. inout list A pointer to the parent list. FT_List_Up \u00b6 Defined in FT_LIST_H (freetype/ftlist.h). FT_EXPORT( void ) FT_List_Up ( FT_List list, FT_ListNode node ); Move a node to the head/top of a list. Used to maintain LRU lists. inout list A pointer to the parent list. node The node to move. FT_List_Iterate \u00b6 Defined in FT_LIST_H (freetype/ftlist.h). FT_EXPORT( FT_Error ) FT_List_Iterate ( FT_List list, FT_List_Iterator iterator, void * user ); Parse a list and calls a given iterator function on each element. Note that parsing is stopped as soon as one of the iterator calls returns a non-zero value. input list A handle to the list. iterator An iterator function, called on each node of the list. user A user-supplied field that is passed as the second argument to the iterator. return The result (a FreeType error code) of the last iterator call. FT_List_Iterator \u00b6 Defined in FT_LIST_H (freetype/ftlist.h). typedef FT_Error (* FT_List_Iterator )( FT_ListNode node, void * user ); An FT_List iterator function that is called during a list parse by FT_List_Iterate . input node The current iteration list node. user A typeless pointer passed to FT_List_Iterate . Can be used to point to the iteration's state. FT_List_Finalize \u00b6 Defined in FT_LIST_H (freetype/ftlist.h). FT_EXPORT( void ) FT_List_Finalize ( FT_List list, FT_List_Destructor destroy, FT_Memory memory, void * user ); Destroy all elements in the list as well as the list itself. input list A handle to the list. destroy A list destructor that will be applied to each element of the list. Set this to NULL if not needed. memory The current memory object that handles deallocation. user A user-supplied field that is passed as the last argument to the destructor. note This function expects that all nodes added by FT_List_Add or FT_List_Insert have been dynamically allocated. FT_List_Destructor \u00b6 Defined in FT_LIST_H (freetype/ftlist.h). typedef void (* FT_List_Destructor )( FT_Memory memory, void * data, void * user ); An FT_List iterator function that is called during a list finalization by FT_List_Finalize to destroy all elements in a given list. input system The current system object. data The current object to destroy. user A typeless pointer passed to FT_List_Iterate . It can be used to point to the iteration's state.","title":"List Processing"},{"location":"ft2-list_processing.html#list-processing","text":"","title":"List Processing"},{"location":"ft2-list_processing.html#synopsis","text":"This section contains various definitions related to list processing using doubly-linked nodes.","title":"Synopsis"},{"location":"ft2-list_processing.html#ft_list","text":"Defined in FT_TYPES_H (freetype/fttypes.h). typedef struct FT_ListRec_* FT_List ; A handle to a list record (see FT_ListRec ).","title":"FT_List"},{"location":"ft2-list_processing.html#ft_listnode","text":"Defined in FT_TYPES_H (freetype/fttypes.h). typedef struct FT_ListNodeRec_* FT_ListNode ; Many elements and objects in FreeType are listed through an FT_List record (see FT_ListRec ). As its name suggests, an FT_ListNode is a handle to a single list element.","title":"FT_ListNode"},{"location":"ft2-list_processing.html#ft_listrec","text":"Defined in FT_TYPES_H (freetype/fttypes.h). typedef struct FT_ListRec_ { FT_ListNode head; FT_ListNode tail; } FT_ListRec ; A structure used to hold a simple doubly-linked list. These are used in many parts of FreeType.","title":"FT_ListRec"},{"location":"ft2-list_processing.html#ft_listnoderec","text":"Defined in FT_TYPES_H (freetype/fttypes.h). typedef struct FT_ListNodeRec_ { FT_ListNode prev; FT_ListNode next; void * data; } FT_ListNodeRec ; A structure used to hold a single list element.","title":"FT_ListNodeRec"},{"location":"ft2-list_processing.html#ft_list_add","text":"Defined in FT_LIST_H (freetype/ftlist.h). FT_EXPORT( void ) FT_List_Add ( FT_List list, FT_ListNode node ); Append an element to the end of a list.","title":"FT_List_Add"},{"location":"ft2-list_processing.html#ft_list_insert","text":"Defined in FT_LIST_H (freetype/ftlist.h). FT_EXPORT( void ) FT_List_Insert ( FT_List list, FT_ListNode node ); Insert an element at the head of a list.","title":"FT_List_Insert"},{"location":"ft2-list_processing.html#ft_list_find","text":"Defined in FT_LIST_H (freetype/ftlist.h). FT_EXPORT( FT_ListNode ) FT_List_Find ( FT_List list, void * data ); Find the list node for a given listed object.","title":"FT_List_Find"},{"location":"ft2-list_processing.html#ft_list_remove","text":"Defined in FT_LIST_H (freetype/ftlist.h). FT_EXPORT( void ) FT_List_Remove ( FT_List list, FT_ListNode node ); Remove a node from a list. This function doesn't check whether the node is in the list!","title":"FT_List_Remove"},{"location":"ft2-list_processing.html#ft_list_up","text":"Defined in FT_LIST_H (freetype/ftlist.h). FT_EXPORT( void ) FT_List_Up ( FT_List list, FT_ListNode node ); Move a node to the head/top of a list. Used to maintain LRU lists.","title":"FT_List_Up"},{"location":"ft2-list_processing.html#ft_list_iterate","text":"Defined in FT_LIST_H (freetype/ftlist.h). FT_EXPORT( FT_Error ) FT_List_Iterate ( FT_List list, FT_List_Iterator iterator, void * user ); Parse a list and calls a given iterator function on each element. Note that parsing is stopped as soon as one of the iterator calls returns a non-zero value.","title":"FT_List_Iterate"},{"location":"ft2-list_processing.html#ft_list_iterator","text":"Defined in FT_LIST_H (freetype/ftlist.h). typedef FT_Error (* FT_List_Iterator )( FT_ListNode node, void * user ); An FT_List iterator function that is called during a list parse by FT_List_Iterate .","title":"FT_List_Iterator"},{"location":"ft2-list_processing.html#ft_list_finalize","text":"Defined in FT_LIST_H (freetype/ftlist.h). FT_EXPORT( void ) FT_List_Finalize ( FT_List list, FT_List_Destructor destroy, FT_Memory memory, void * user ); Destroy all elements in the list as well as the list itself.","title":"FT_List_Finalize"},{"location":"ft2-list_processing.html#ft_list_destructor","text":"Defined in FT_LIST_H (freetype/ftlist.h). typedef void (* FT_List_Destructor )( FT_Memory memory, void * data, void * user ); An FT_List iterator function that is called during a list finalization by FT_List_Finalize to destroy all elements in a given list.","title":"FT_List_Destructor"},{"location":"ft2-lzw.html","text":"FreeType \u00bb Docs \u00bb Support API \u00bb LZW Streams LZW Streams \u00b6 Synopsis \u00b6 In certain builds of the library, LZW compression recognition is automatically handled when calling FT_New_Face or FT_Open_Face . This means that if no font driver is capable of handling the raw compressed file, the library will try to open a LZW stream from it and re-open the face with it. The stream implementation is very basic and resets the decompression process each time seeking backwards is needed within the stream, which significantly undermines the performance. This section contains the declaration of LZW-specific functions. FT_Stream_OpenLZW \u00b6 Defined in FT_LZW_H (freetype/ftlzw.h). FT_EXPORT( FT_Error ) FT_Stream_OpenLZW ( FT_Stream stream, FT_Stream source ); Open a new stream to parse LZW-compressed font files. This is mainly used to support the compressed *.pcf.Z fonts that come with XFree86. input stream The target embedding stream. source The source stream. return FreeType error code. 0 means success. note The source stream must be opened before calling this function. Calling the internal function FT_Stream_Close on the new stream will not call FT_Stream_Close on the source stream. None of the stream objects will be released to the heap. This function may return FT_Err_Unimplemented_Feature if your build of FreeType was not compiled with LZW support.","title":"LZW Streams"},{"location":"ft2-lzw.html#lzw-streams","text":"","title":"LZW Streams"},{"location":"ft2-lzw.html#synopsis","text":"In certain builds of the library, LZW compression recognition is automatically handled when calling FT_New_Face or FT_Open_Face . This means that if no font driver is capable of handling the raw compressed file, the library will try to open a LZW stream from it and re-open the face with it. The stream implementation is very basic and resets the decompression process each time seeking backwards is needed within the stream, which significantly undermines the performance. This section contains the declaration of LZW-specific functions.","title":"Synopsis"},{"location":"ft2-lzw.html#ft_stream_openlzw","text":"Defined in FT_LZW_H (freetype/ftlzw.h). FT_EXPORT( FT_Error ) FT_Stream_OpenLZW ( FT_Stream stream, FT_Stream source ); Open a new stream to parse LZW-compressed font files. This is mainly used to support the compressed *.pcf.Z fonts that come with XFree86.","title":"FT_Stream_OpenLZW"},{"location":"ft2-mac_specific.html","text":"FreeType \u00bb Docs \u00bb Core API \u00bb Mac Specific Interface Mac Specific Interface \u00b6 Synopsis \u00b6 The following definitions are only available if FreeType is compiled on a Macintosh. FT_New_Face_From_FOND \u00b6 Defined in FT_MAC_H (freetype/ftmac.h). FT_EXPORT( FT_Error ) FT_New_Face_From_FOND ( FT_Library library, Handle fond, FT_Long face_index, FT_Face *aface ) FT_DEPRECATED_ATTRIBUTE; Create a new face object from a FOND resource. inout library A handle to the library resource. input fond A FOND resource. face_index Only supported for the -1 \u2018sanity check\u2019 special case. output aface A handle to a new face object. return FreeType error code. 0 means success. example This function can be used to create FT_Face objects from fonts that are installed in the system as follows. fond = GetResource( 'FOND', fontName ); error = FT_New_Face_From_FOND( library, fond, 0, &face ); FT_GetFile_From_Mac_Name \u00b6 Defined in FT_MAC_H (freetype/ftmac.h). FT_EXPORT( FT_Error ) FT_GetFile_From_Mac_Name ( const char * fontName, FSSpec* pathSpec, FT_Long * face_index ) FT_DEPRECATED_ATTRIBUTE; Return an FSSpec for the disk file containing the named font. input fontName Mac OS name of the font (e.g., Times New Roman Bold). output pathSpec FSSpec to the file. For passing to FT_New_Face_From_FSSpec . face_index Index of the face. For passing to FT_New_Face_From_FSSpec . return FreeType error code. 0 means success. FT_GetFile_From_Mac_ATS_Name \u00b6 Defined in FT_MAC_H (freetype/ftmac.h). FT_EXPORT( FT_Error ) FT_GetFile_From_Mac_ATS_Name ( const char * fontName, FSSpec* pathSpec, FT_Long * face_index ) FT_DEPRECATED_ATTRIBUTE; Return an FSSpec for the disk file containing the named font. input fontName Mac OS name of the font in ATS framework. output pathSpec FSSpec to the file. For passing to FT_New_Face_From_FSSpec . face_index Index of the face. For passing to FT_New_Face_From_FSSpec . return FreeType error code. 0 means success. FT_GetFilePath_From_Mac_ATS_Name \u00b6 Defined in FT_MAC_H (freetype/ftmac.h). FT_EXPORT( FT_Error ) FT_GetFilePath_From_Mac_ATS_Name ( const char * fontName, UInt8* path, UInt32 maxPathSize, FT_Long * face_index ) FT_DEPRECATED_ATTRIBUTE; Return a pathname of the disk file and face index for given font name that is handled by ATS framework. input fontName Mac OS name of the font in ATS framework. output path Buffer to store pathname of the file. For passing to FT_New_Face . The client must allocate this buffer before calling this function. maxPathSize Lengths of the buffer path that client allocated. face_index Index of the face. For passing to FT_New_Face . return FreeType error code. 0 means success. FT_New_Face_From_FSSpec \u00b6 Defined in FT_MAC_H (freetype/ftmac.h). FT_EXPORT( FT_Error ) FT_New_Face_From_FSSpec ( FT_Library library, const FSSpec *spec, FT_Long face_index, FT_Face *aface ) FT_DEPRECATED_ATTRIBUTE; Create a new face object from a given resource and typeface index using an FSSpec to the font file. inout library A handle to the library resource. input spec FSSpec to the font file. face_index The index of the face within the resource. The first face has index 0. output aface A handle to a new face object. return FreeType error code. 0 means success. note FT_New_Face_From_FSSpec is identical to FT_New_Face except it accepts an FSSpec instead of a path. FT_New_Face_From_FSRef \u00b6 Defined in FT_MAC_H (freetype/ftmac.h). FT_EXPORT( FT_Error ) FT_New_Face_From_FSRef ( FT_Library library, const FSRef *ref, FT_Long face_index, FT_Face *aface ) FT_DEPRECATED_ATTRIBUTE; Create a new face object from a given resource and typeface index using an FSRef to the font file. inout library A handle to the library resource. input spec FSRef to the font file. face_index The index of the face within the resource. The first face has index 0. output aface A handle to a new face object. return FreeType error code. 0 means success. note FT_New_Face_From_FSRef is identical to FT_New_Face except it accepts an FSRef instead of a path.","title":"Mac Specific Interface"},{"location":"ft2-mac_specific.html#mac-specific-interface","text":"","title":"Mac Specific Interface"},{"location":"ft2-mac_specific.html#synopsis","text":"The following definitions are only available if FreeType is compiled on a Macintosh.","title":"Synopsis"},{"location":"ft2-mac_specific.html#ft_new_face_from_fond","text":"Defined in FT_MAC_H (freetype/ftmac.h). FT_EXPORT( FT_Error ) FT_New_Face_From_FOND ( FT_Library library, Handle fond, FT_Long face_index, FT_Face *aface ) FT_DEPRECATED_ATTRIBUTE; Create a new face object from a FOND resource.","title":"FT_New_Face_From_FOND"},{"location":"ft2-mac_specific.html#ft_getfile_from_mac_name","text":"Defined in FT_MAC_H (freetype/ftmac.h). FT_EXPORT( FT_Error ) FT_GetFile_From_Mac_Name ( const char * fontName, FSSpec* pathSpec, FT_Long * face_index ) FT_DEPRECATED_ATTRIBUTE; Return an FSSpec for the disk file containing the named font.","title":"FT_GetFile_From_Mac_Name"},{"location":"ft2-mac_specific.html#ft_getfile_from_mac_ats_name","text":"Defined in FT_MAC_H (freetype/ftmac.h). FT_EXPORT( FT_Error ) FT_GetFile_From_Mac_ATS_Name ( const char * fontName, FSSpec* pathSpec, FT_Long * face_index ) FT_DEPRECATED_ATTRIBUTE; Return an FSSpec for the disk file containing the named font.","title":"FT_GetFile_From_Mac_ATS_Name"},{"location":"ft2-mac_specific.html#ft_getfilepath_from_mac_ats_name","text":"Defined in FT_MAC_H (freetype/ftmac.h). FT_EXPORT( FT_Error ) FT_GetFilePath_From_Mac_ATS_Name ( const char * fontName, UInt8* path, UInt32 maxPathSize, FT_Long * face_index ) FT_DEPRECATED_ATTRIBUTE; Return a pathname of the disk file and face index for given font name that is handled by ATS framework.","title":"FT_GetFilePath_From_Mac_ATS_Name"},{"location":"ft2-mac_specific.html#ft_new_face_from_fsspec","text":"Defined in FT_MAC_H (freetype/ftmac.h). FT_EXPORT( FT_Error ) FT_New_Face_From_FSSpec ( FT_Library library, const FSSpec *spec, FT_Long face_index, FT_Face *aface ) FT_DEPRECATED_ATTRIBUTE; Create a new face object from a given resource and typeface index using an FSSpec to the font file.","title":"FT_New_Face_From_FSSpec"},{"location":"ft2-mac_specific.html#ft_new_face_from_fsref","text":"Defined in FT_MAC_H (freetype/ftmac.h). FT_EXPORT( FT_Error ) FT_New_Face_From_FSRef ( FT_Library library, const FSRef *ref, FT_Long face_index, FT_Face *aface ) FT_DEPRECATED_ATTRIBUTE; Create a new face object from a given resource and typeface index using an FSRef to the font file.","title":"FT_New_Face_From_FSRef"},{"location":"ft2-module_management.html","text":"FreeType \u00bb Docs \u00bb Support API \u00bb Module Management Module Management \u00b6 Synopsis \u00b6 The definitions below are used to manage modules within FreeType. Internal and external modules can be added, upgraded, and removed at runtime. For example, an alternative renderer or proprietary font driver can be registered and prioritized. Additionally, some module properties can also be controlled. Here is a list of existing values of the module_name field in the FT_Module_Class structure. autofitter bdf cff gxvalid otvalid pcf pfr psaux pshinter psnames raster1 sfnt smooth truetype type1 type42 t1cid winfonts Note that the FreeType Cache sub-system is not a FreeType module. FT_Module \u00b6 Defined in FT_FREETYPE_H (freetype/freetype.h). typedef struct FT_ModuleRec_* FT_Module ; A handle to a given FreeType module object. A module can be a font driver, a renderer, or anything else that provides services to the former. FT_Module_Constructor \u00b6 Defined in FT_MODULE_H (freetype/ftmodapi.h). typedef FT_Error (* FT_Module_Constructor )( FT_Module module ); A function used to initialize (not create) a new module object. input module The module to initialize. FT_Module_Destructor \u00b6 Defined in FT_MODULE_H (freetype/ftmodapi.h). typedef void (* FT_Module_Destructor )( FT_Module module ); A function used to finalize (not destroy) a given module object. input module The module to finalize. FT_Module_Requester \u00b6 Defined in FT_MODULE_H (freetype/ftmodapi.h). typedef FT_Module_Interface (* FT_Module_Requester )( FT_Module module, const char * name ); A function used to query a given module for a specific interface. input module The module to be searched. name The name of the interface in the module. FT_Module_Class \u00b6 Defined in FT_MODULE_H (freetype/ftmodapi.h). typedef struct FT_Module_Class_ { FT_ULong module_flags; FT_Long module_size; const FT_String * module_name; FT_Fixed module_version; FT_Fixed module_requires; const void * module_interface; FT_Module_Constructor module_init; FT_Module_Destructor module_done; FT_Module_Requester get_interface; } FT_Module_Class ; The module class descriptor. While being a public structure necessary for FreeType's module bookkeeping, most of the fields are essentially internal, not to be used directly by an application. fields module_flags Bit flags describing the module. module_size The size of one module object/instance in bytes. module_name The name of the module. module_version The version, as a 16.16 fixed number (major.minor). module_requires The version of FreeType this module requires, as a 16.16 fixed number (major.minor). Starts at version 2.0, i.e., 0x20000. module_interface A typeless pointer to a structure (which varies between different modules) that holds the module's interface functions. This is essentially what get_interface returns. module_init The initializing function. module_done The finalizing function. get_interface The interface requesting function. FT_Add_Module \u00b6 Defined in FT_MODULE_H (freetype/ftmodapi.h). FT_EXPORT( FT_Error ) FT_Add_Module ( FT_Library library, const FT_Module_Class * clazz ); Add a new module to a given library instance. inout library A handle to the library object. input clazz A pointer to class descriptor for the module. return FreeType error code. 0 means success. note An error will be returned if a module already exists by that name, or if the module requires a version of FreeType that is too great. FT_Get_Module \u00b6 Defined in FT_MODULE_H (freetype/ftmodapi.h). FT_EXPORT( FT_Module ) FT_Get_Module ( FT_Library library, const char * module_name ); Find a module by its name. input library A handle to the library object. module_name The module's name (as an ASCII string). return A module handle. 0 if none was found. note FreeType's internal modules aren't documented very well, and you should look up the source code for details. FT_Remove_Module \u00b6 Defined in FT_MODULE_H (freetype/ftmodapi.h). FT_EXPORT( FT_Error ) FT_Remove_Module ( FT_Library library, FT_Module module ); Remove a given module from a library instance. inout library A handle to a library object. input module A handle to a module object. return FreeType error code. 0 means success. note The module object is destroyed by the function in case of success. FT_Add_Default_Modules \u00b6 Defined in FT_MODULE_H (freetype/ftmodapi.h). FT_EXPORT( void ) FT_Add_Default_Modules ( FT_Library library ); Add the set of default drivers to a given library object. This is only useful when you create a library object with FT_New_Library (usually to plug a custom memory manager). inout library A handle to a new library object. FT_FACE_DRIVER_NAME \u00b6 Defined in FT_MODULE_H (freetype/ftmodapi.h). # define FT_FACE_DRIVER_NAME ( face ) \\ ( ( *FT_REINTERPRET_CAST( FT_Module_Class **, \\ ( face )->driver ) )->module_name ) A macro that retrieves the name of a font driver from a face object. note The font driver name is a valid module_name for FT_Property_Set and FT_Property_Get . This is not the same as FT_Get_Font_Format . since 2.11 FT_Property_Set \u00b6 Defined in FT_MODULE_H (freetype/ftmodapi.h). FT_EXPORT( FT_Error ) FT_Property_Set ( FT_Library library, const FT_String * module_name, const FT_String * property_name, const void * value ); Set a property for a given module. input library A handle to the library the module is part of. module_name The module name. property_name The property name. Properties are described in section \u2018 Driver properties \u2019. Note that only a few modules have properties. value A generic pointer to a variable or structure that gives the new value of the property. The exact definition of value is dependent on the property; see section \u2018 Driver properties \u2019. return FreeType error code. 0 means success. note If module_name isn't a valid module name, or property_name doesn't specify a valid property, or if value doesn't represent a valid value for the given property, an error is returned. The following example sets property \u2018bar\u2019 (a simple integer) in module \u2018foo\u2019 to value 1. FT_UInt bar; bar = 1; FT_Property_Set( library, \"foo\", \"bar\", &bar ); Note that the FreeType Cache sub-system doesn't recognize module property changes. To avoid glyph lookup confusion within the cache you should call FTC_Manager_Reset to completely flush the cache if a module property gets changed after FTC_Manager_New has been called. It is not possible to set properties of the FreeType Cache sub-system itself with FT_Property_Set; use ?FTC_Property_Set? instead. since 2.4.11 FT_Property_Get \u00b6 Defined in FT_MODULE_H (freetype/ftmodapi.h). FT_EXPORT( FT_Error ) FT_Property_Get ( FT_Library library, const FT_String * module_name, const FT_String * property_name, void * value ); Get a module's property value. input library A handle to the library the module is part of. module_name The module name. property_name The property name. Properties are described in section \u2018 Driver properties \u2019. inout value A generic pointer to a variable or structure that gives the value of the property. The exact definition of value is dependent on the property; see section \u2018 Driver properties \u2019. return FreeType error code. 0 means success. note If module_name isn't a valid module name, or property_name doesn't specify a valid property, or if value doesn't represent a valid value for the given property, an error is returned. The following example gets property \u2018baz\u2019 (a range) in module \u2018foo\u2019. typedef range_ { FT_Int32 min; FT_Int32 max; } range; range baz; FT_Property_Get( library, \"foo\", \"baz\", &baz ); It is not possible to retrieve properties of the FreeType Cache sub-system with FT_Property_Get; use ?FTC_Property_Get? instead. since 2.4.11 FT_Set_Default_Properties \u00b6 Defined in FT_MODULE_H (freetype/ftmodapi.h). FT_EXPORT( void ) FT_Set_Default_Properties ( FT_Library library ); If compilation option FT_CONFIG_OPTION_ENVIRONMENT_PROPERTIES is set, this function reads the FREETYPE_PROPERTIES environment variable to control driver properties. See section \u2018 Driver properties \u2019 for more. If the compilation option is not set, this function does nothing. FREETYPE_PROPERTIES has the following syntax form (broken here into multiple lines for better readability). <optional whitespace> <module-name1> ':' <property-name1> '=' <property-value1> <whitespace> <module-name2> ':' <property-name2> '=' <property-value2> ... Example: FREETYPE_PROPERTIES=truetype:interpreter-version=35 \\ cff:no-stem-darkening=0 inout library A handle to a new library object. since 2.8 FT_New_Library \u00b6 Defined in FT_MODULE_H (freetype/ftmodapi.h). FT_EXPORT( FT_Error ) FT_New_Library ( FT_Memory memory, FT_Library *alibrary ); This function is used to create a new FreeType library instance from a given memory object. It is thus possible to use libraries with distinct memory allocators within the same program. Note, however, that the used FT_Memory structure is expected to remain valid for the life of the FT_Library object. Normally, you would call this function (followed by a call to FT_Add_Default_Modules or a series of calls to FT_Add_Module , and a call to FT_Set_Default_Properties ) instead of FT_Init_FreeType to initialize the FreeType library. Don't use FT_Done_FreeType but FT_Done_Library to destroy a library instance. input memory A handle to the original memory object. output alibrary A pointer to handle of a new library object. return FreeType error code. 0 means success. note See the discussion of reference counters in the description of FT_Reference_Library . FT_Done_Library \u00b6 Defined in FT_MODULE_H (freetype/ftmodapi.h). FT_EXPORT( FT_Error ) FT_Done_Library ( FT_Library library ); Discard a given library object. This closes all drivers and discards all resource objects. input library A handle to the target library. return FreeType error code. 0 means success. note See the discussion of reference counters in the description of FT_Reference_Library . FT_Reference_Library \u00b6 Defined in FT_MODULE_H (freetype/ftmodapi.h). FT_EXPORT( FT_Error ) FT_Reference_Library ( FT_Library library ); A counter gets initialized to 1 at the time an FT_Library structure is created. This function increments the counter. FT_Done_Library then only destroys a library if the counter is 1, otherwise it simply decrements the counter. This function helps in managing life-cycles of structures that reference FT_Library objects. input library A handle to a target library object. return FreeType error code. 0 means success. since 2.4.2 FT_Renderer \u00b6 Defined in FT_FREETYPE_H (freetype/freetype.h). typedef struct FT_RendererRec_* FT_Renderer ; A handle to a given FreeType renderer. A renderer is a module in charge of converting a glyph's outline image to a bitmap. It supports a single glyph image format, and one or more target surface depths. FT_Renderer_Class \u00b6 Defined in FT_RENDER_H (freetype/ftrender.h). typedef struct FT_Renderer_Class_ { FT_Module_Class root; FT_Glyph_Format glyph_format; FT_Renderer_RenderFunc render_glyph; FT_Renderer_TransformFunc transform_glyph; FT_Renderer_GetCBoxFunc get_glyph_cbox; FT_Renderer_SetModeFunc set_mode; FT_Raster_Funcs * raster_class; } FT_Renderer_Class ; The renderer module class descriptor. fields root The root FT_Module_Class fields. glyph_format The glyph image format this renderer handles. render_glyph A method used to render the image that is in a given glyph slot into a bitmap. transform_glyph A method used to transform the image that is in a given glyph slot. get_glyph_cbox A method used to access the glyph's cbox. set_mode A method used to pass additional parameters. raster_class For FT_GLYPH_FORMAT_OUTLINE renderers only. This is a pointer to its raster's class. FT_Get_Renderer \u00b6 Defined in FT_RENDER_H (freetype/ftrender.h). FT_EXPORT( FT_Renderer ) FT_Get_Renderer ( FT_Library library, FT_Glyph_Format format ); Retrieve the current renderer for a given glyph format. input library A handle to the library object. format The glyph format. return A renderer handle. 0 if none found. note An error will be returned if a module already exists by that name, or if the module requires a version of FreeType that is too great. To add a new renderer, simply use FT_Add_Module . To retrieve a renderer by its name, use FT_Get_Module . FT_Set_Renderer \u00b6 Defined in FT_RENDER_H (freetype/ftrender.h). FT_EXPORT( FT_Error ) FT_Set_Renderer ( FT_Library library, FT_Renderer renderer, FT_UInt num_params, FT_Parameter * parameters ); Set the current renderer to use, and set additional mode. inout library A handle to the library object. input renderer A handle to the renderer object. num_params The number of additional parameters. parameters Additional parameters. return FreeType error code. 0 means success. note In case of success, the renderer will be used to convert glyph images in the renderer's known format into bitmaps. This doesn't change the current renderer for other formats. Currently, no FreeType renderer module uses parameters ; you should thus always pass NULL as the value. FT_Set_Debug_Hook \u00b6 Defined in FT_MODULE_H (freetype/ftmodapi.h). FT_EXPORT( void ) FT_Set_Debug_Hook ( FT_Library library, FT_UInt hook_index, FT_DebugHook_Func debug_hook ); Set a debug hook function for debugging the interpreter of a font format. While this is a public API function, an application needs access to FreeType's internal header files to do something useful. Have a look at the source code of the ttdebug FreeType demo program for an example of its usage. inout library A handle to the library object. input hook_index The index of the debug hook. You should use defined enumeration macros like FT_DEBUG_HOOK_TRUETYPE . debug_hook The function used to debug the interpreter. note Currently, four debug hook slots are available, but only one (for the TrueType interpreter) is defined. FT_Driver \u00b6 Defined in FT_FREETYPE_H (freetype/freetype.h). typedef struct FT_DriverRec_* FT_Driver ; A handle to a given FreeType font driver object. A font driver is a module capable of creating faces from font files. FT_DebugHook_Func \u00b6 Defined in FT_MODULE_H (freetype/ftmodapi.h). typedef FT_Error (* FT_DebugHook_Func )( void * arg ); A drop-in replacement (or rather a wrapper) for the bytecode or charstring interpreter's main loop function. Its job is essentially to activate debug mode to enforce single-stepping, to call the main loop function to interpret the next opcode, and to show the changed context to the user. An example for such a main loop function is TT_RunIns (declared in FreeType's internal header file src/truetype/ttinterp.h ). Have a look at the source code of the ttdebug FreeType demo program for an example of a drop-in replacement. inout arg A typeless pointer, to be cast to the main loop function's data structure (which depends on the font module). For TrueType fonts it is bytecode interpreter's execution context, TT_ExecContext , which is declared in FreeType's internal header file tttypes.h . FT_DEBUG_HOOK_XXX \u00b6 Defined in FT_MODULE_H (freetype/ftmodapi.h). # define FT_DEBUG_HOOK_TRUETYPE 0 A list of named debug hook indices. values FT_DEBUG_HOOK_TRUETYPE This hook index identifies the TrueType bytecode debugger.","title":"Module Management"},{"location":"ft2-module_management.html#module-management","text":"","title":"Module Management"},{"location":"ft2-module_management.html#synopsis","text":"The definitions below are used to manage modules within FreeType. Internal and external modules can be added, upgraded, and removed at runtime. For example, an alternative renderer or proprietary font driver can be registered and prioritized. Additionally, some module properties can also be controlled. Here is a list of existing values of the module_name field in the FT_Module_Class structure. autofitter bdf cff gxvalid otvalid pcf pfr psaux pshinter psnames raster1 sfnt smooth truetype type1 type42 t1cid winfonts Note that the FreeType Cache sub-system is not a FreeType module.","title":"Synopsis"},{"location":"ft2-module_management.html#ft_module","text":"Defined in FT_FREETYPE_H (freetype/freetype.h). typedef struct FT_ModuleRec_* FT_Module ; A handle to a given FreeType module object. A module can be a font driver, a renderer, or anything else that provides services to the former.","title":"FT_Module"},{"location":"ft2-module_management.html#ft_module_constructor","text":"Defined in FT_MODULE_H (freetype/ftmodapi.h). typedef FT_Error (* FT_Module_Constructor )( FT_Module module ); A function used to initialize (not create) a new module object.","title":"FT_Module_Constructor"},{"location":"ft2-module_management.html#ft_module_destructor","text":"Defined in FT_MODULE_H (freetype/ftmodapi.h). typedef void (* FT_Module_Destructor )( FT_Module module ); A function used to finalize (not destroy) a given module object.","title":"FT_Module_Destructor"},{"location":"ft2-module_management.html#ft_module_requester","text":"Defined in FT_MODULE_H (freetype/ftmodapi.h). typedef FT_Module_Interface (* FT_Module_Requester )( FT_Module module, const char * name ); A function used to query a given module for a specific interface.","title":"FT_Module_Requester"},{"location":"ft2-module_management.html#ft_module_class","text":"Defined in FT_MODULE_H (freetype/ftmodapi.h). typedef struct FT_Module_Class_ { FT_ULong module_flags; FT_Long module_size; const FT_String * module_name; FT_Fixed module_version; FT_Fixed module_requires; const void * module_interface; FT_Module_Constructor module_init; FT_Module_Destructor module_done; FT_Module_Requester get_interface; } FT_Module_Class ; The module class descriptor. While being a public structure necessary for FreeType's module bookkeeping, most of the fields are essentially internal, not to be used directly by an application.","title":"FT_Module_Class"},{"location":"ft2-module_management.html#ft_add_module","text":"Defined in FT_MODULE_H (freetype/ftmodapi.h). FT_EXPORT( FT_Error ) FT_Add_Module ( FT_Library library, const FT_Module_Class * clazz ); Add a new module to a given library instance.","title":"FT_Add_Module"},{"location":"ft2-module_management.html#ft_get_module","text":"Defined in FT_MODULE_H (freetype/ftmodapi.h). FT_EXPORT( FT_Module ) FT_Get_Module ( FT_Library library, const char * module_name ); Find a module by its name.","title":"FT_Get_Module"},{"location":"ft2-module_management.html#ft_remove_module","text":"Defined in FT_MODULE_H (freetype/ftmodapi.h). FT_EXPORT( FT_Error ) FT_Remove_Module ( FT_Library library, FT_Module module ); Remove a given module from a library instance.","title":"FT_Remove_Module"},{"location":"ft2-module_management.html#ft_add_default_modules","text":"Defined in FT_MODULE_H (freetype/ftmodapi.h). FT_EXPORT( void ) FT_Add_Default_Modules ( FT_Library library ); Add the set of default drivers to a given library object. This is only useful when you create a library object with FT_New_Library (usually to plug a custom memory manager).","title":"FT_Add_Default_Modules"},{"location":"ft2-module_management.html#ft_face_driver_name","text":"Defined in FT_MODULE_H (freetype/ftmodapi.h). # define FT_FACE_DRIVER_NAME ( face ) \\ ( ( *FT_REINTERPRET_CAST( FT_Module_Class **, \\ ( face )->driver ) )->module_name ) A macro that retrieves the name of a font driver from a face object.","title":"FT_FACE_DRIVER_NAME"},{"location":"ft2-module_management.html#ft_property_set","text":"Defined in FT_MODULE_H (freetype/ftmodapi.h). FT_EXPORT( FT_Error ) FT_Property_Set ( FT_Library library, const FT_String * module_name, const FT_String * property_name, const void * value ); Set a property for a given module.","title":"FT_Property_Set"},{"location":"ft2-module_management.html#ft_property_get","text":"Defined in FT_MODULE_H (freetype/ftmodapi.h). FT_EXPORT( FT_Error ) FT_Property_Get ( FT_Library library, const FT_String * module_name, const FT_String * property_name, void * value ); Get a module's property value.","title":"FT_Property_Get"},{"location":"ft2-module_management.html#ft_set_default_properties","text":"Defined in FT_MODULE_H (freetype/ftmodapi.h). FT_EXPORT( void ) FT_Set_Default_Properties ( FT_Library library ); If compilation option FT_CONFIG_OPTION_ENVIRONMENT_PROPERTIES is set, this function reads the FREETYPE_PROPERTIES environment variable to control driver properties. See section \u2018 Driver properties \u2019 for more. If the compilation option is not set, this function does nothing. FREETYPE_PROPERTIES has the following syntax form (broken here into multiple lines for better readability). <optional whitespace> <module-name1> ':' <property-name1> '=' <property-value1> <whitespace> <module-name2> ':' <property-name2> '=' <property-value2> ... Example: FREETYPE_PROPERTIES=truetype:interpreter-version=35 \\ cff:no-stem-darkening=0","title":"FT_Set_Default_Properties"},{"location":"ft2-module_management.html#ft_new_library","text":"Defined in FT_MODULE_H (freetype/ftmodapi.h). FT_EXPORT( FT_Error ) FT_New_Library ( FT_Memory memory, FT_Library *alibrary ); This function is used to create a new FreeType library instance from a given memory object. It is thus possible to use libraries with distinct memory allocators within the same program. Note, however, that the used FT_Memory structure is expected to remain valid for the life of the FT_Library object. Normally, you would call this function (followed by a call to FT_Add_Default_Modules or a series of calls to FT_Add_Module , and a call to FT_Set_Default_Properties ) instead of FT_Init_FreeType to initialize the FreeType library. Don't use FT_Done_FreeType but FT_Done_Library to destroy a library instance.","title":"FT_New_Library"},{"location":"ft2-module_management.html#ft_done_library","text":"Defined in FT_MODULE_H (freetype/ftmodapi.h). FT_EXPORT( FT_Error ) FT_Done_Library ( FT_Library library ); Discard a given library object. This closes all drivers and discards all resource objects.","title":"FT_Done_Library"},{"location":"ft2-module_management.html#ft_reference_library","text":"Defined in FT_MODULE_H (freetype/ftmodapi.h). FT_EXPORT( FT_Error ) FT_Reference_Library ( FT_Library library ); A counter gets initialized to 1 at the time an FT_Library structure is created. This function increments the counter. FT_Done_Library then only destroys a library if the counter is 1, otherwise it simply decrements the counter. This function helps in managing life-cycles of structures that reference FT_Library objects.","title":"FT_Reference_Library"},{"location":"ft2-module_management.html#ft_renderer","text":"Defined in FT_FREETYPE_H (freetype/freetype.h). typedef struct FT_RendererRec_* FT_Renderer ; A handle to a given FreeType renderer. A renderer is a module in charge of converting a glyph's outline image to a bitmap. It supports a single glyph image format, and one or more target surface depths.","title":"FT_Renderer"},{"location":"ft2-module_management.html#ft_renderer_class","text":"Defined in FT_RENDER_H (freetype/ftrender.h). typedef struct FT_Renderer_Class_ { FT_Module_Class root; FT_Glyph_Format glyph_format; FT_Renderer_RenderFunc render_glyph; FT_Renderer_TransformFunc transform_glyph; FT_Renderer_GetCBoxFunc get_glyph_cbox; FT_Renderer_SetModeFunc set_mode; FT_Raster_Funcs * raster_class; } FT_Renderer_Class ; The renderer module class descriptor.","title":"FT_Renderer_Class"},{"location":"ft2-module_management.html#ft_get_renderer","text":"Defined in FT_RENDER_H (freetype/ftrender.h). FT_EXPORT( FT_Renderer ) FT_Get_Renderer ( FT_Library library, FT_Glyph_Format format ); Retrieve the current renderer for a given glyph format.","title":"FT_Get_Renderer"},{"location":"ft2-module_management.html#ft_set_renderer","text":"Defined in FT_RENDER_H (freetype/ftrender.h). FT_EXPORT( FT_Error ) FT_Set_Renderer ( FT_Library library, FT_Renderer renderer, FT_UInt num_params, FT_Parameter * parameters ); Set the current renderer to use, and set additional mode.","title":"FT_Set_Renderer"},{"location":"ft2-module_management.html#ft_set_debug_hook","text":"Defined in FT_MODULE_H (freetype/ftmodapi.h). FT_EXPORT( void ) FT_Set_Debug_Hook ( FT_Library library, FT_UInt hook_index, FT_DebugHook_Func debug_hook ); Set a debug hook function for debugging the interpreter of a font format. While this is a public API function, an application needs access to FreeType's internal header files to do something useful. Have a look at the source code of the ttdebug FreeType demo program for an example of its usage.","title":"FT_Set_Debug_Hook"},{"location":"ft2-module_management.html#ft_driver","text":"Defined in FT_FREETYPE_H (freetype/freetype.h). typedef struct FT_DriverRec_* FT_Driver ; A handle to a given FreeType font driver object. A font driver is a module capable of creating faces from font files.","title":"FT_Driver"},{"location":"ft2-module_management.html#ft_debughook_func","text":"Defined in FT_MODULE_H (freetype/ftmodapi.h). typedef FT_Error (* FT_DebugHook_Func )( void * arg ); A drop-in replacement (or rather a wrapper) for the bytecode or charstring interpreter's main loop function. Its job is essentially to activate debug mode to enforce single-stepping, to call the main loop function to interpret the next opcode, and to show the changed context to the user. An example for such a main loop function is TT_RunIns (declared in FreeType's internal header file src/truetype/ttinterp.h ). Have a look at the source code of the ttdebug FreeType demo program for an example of a drop-in replacement.","title":"FT_DebugHook_Func"},{"location":"ft2-module_management.html#ft_debug_hook_xxx","text":"Defined in FT_MODULE_H (freetype/ftmodapi.h). # define FT_DEBUG_HOOK_TRUETYPE 0 A list of named debug hook indices.","title":"FT_DEBUG_HOOK_XXX"},{"location":"ft2-multiple_masters.html","text":"FreeType \u00bb Docs \u00bb Format-Specific API \u00bb Multiple Masters Multiple Masters \u00b6 Synopsis \u00b6 The following types and functions are used to manage Multiple Master fonts, i.e., the selection of specific design instances by setting design axis coordinates. Besides Adobe MM fonts, the interface supports Apple's TrueType GX and OpenType variation fonts. Some of the routines only work with Adobe MM fonts, others will work with all three types. They are similar enough that a consistent interface makes sense. FT_MM_Axis \u00b6 Defined in FT_MULTIPLE_MASTERS_H (freetype/ftmm.h). typedef struct FT_MM_Axis_ { FT_String * name; FT_Long minimum; FT_Long maximum; } FT_MM_Axis ; A structure to model a given axis in design space for Multiple Masters fonts. This structure can't be used for TrueType GX or OpenType variation fonts. fields name The axis's name. minimum The axis's minimum design coordinate. maximum The axis's maximum design coordinate. FT_Multi_Master \u00b6 Defined in FT_MULTIPLE_MASTERS_H (freetype/ftmm.h). typedef struct FT_Multi_Master_ { FT_UInt num_axis; FT_UInt num_designs; FT_MM_Axis axis[T1_MAX_MM_AXIS]; } FT_Multi_Master ; A structure to model the axes and space of a Multiple Masters font. This structure can't be used for TrueType GX or OpenType variation fonts. fields num_axis Number of axes. Cannot exceed 4. num_designs Number of designs; should be normally 2^num_axis even though the Type 1 specification strangely allows for intermediate designs to be present. This number cannot exceed 16. axis A table of axis descriptors. FT_Var_Axis \u00b6 Defined in FT_MULTIPLE_MASTERS_H (freetype/ftmm.h). typedef struct FT_Var_Axis_ { FT_String * name; FT_Fixed minimum; FT_Fixed def; FT_Fixed maximum; FT_ULong tag; FT_UInt strid; } FT_Var_Axis ; A structure to model a given axis in design space for Multiple Masters, TrueType GX, and OpenType variation fonts. fields name The axis's name. Not always meaningful for TrueType GX or OpenType variation fonts. minimum The axis's minimum design coordinate. def The axis's default design coordinate. FreeType computes meaningful default values for Adobe MM fonts. maximum The axis's maximum design coordinate. tag The axis's tag (the equivalent to \u2018name\u2019 for TrueType GX and OpenType variation fonts). FreeType provides default values for Adobe MM fonts if possible. strid The axis name entry in the font's \u2018name\u2019 table. This is another (and often better) version of the \u2018name\u2019 field for TrueType GX or OpenType variation fonts. Not meaningful for Adobe MM fonts. note The fields minimum , def , and maximum are 16.16 fractional values for TrueType GX and OpenType variation fonts. For Adobe MM fonts, the values are integers. FT_Var_Named_Style \u00b6 Defined in FT_MULTIPLE_MASTERS_H (freetype/ftmm.h). typedef struct FT_Var_Named_Style_ { FT_Fixed * coords; FT_UInt strid; FT_UInt psid; /* since 2.7.1 */ } FT_Var_Named_Style ; A structure to model a named instance in a TrueType GX or OpenType variation font. This structure can't be used for Adobe MM fonts. fields coords The design coordinates for this instance. This is an array with one entry for each axis. strid The entry in \u2018name\u2019 table identifying this instance. psid The entry in \u2018name\u2019 table identifying a PostScript name for this instance. Value 0xFFFF indicates a missing entry. FT_MM_Var \u00b6 Defined in FT_MULTIPLE_MASTERS_H (freetype/ftmm.h). typedef struct FT_MM_Var_ { FT_UInt num_axis; FT_UInt num_designs; FT_UInt num_namedstyles; FT_Var_Axis * axis; FT_Var_Named_Style * namedstyle; } FT_MM_Var ; A structure to model the axes and space of an Adobe MM, TrueType GX, or OpenType variation font. Some fields are specific to one format and not to the others. fields num_axis The number of axes. The maximum value is 4 for Adobe MM fonts; no limit in TrueType GX or OpenType variation fonts. num_designs The number of designs; should be normally 2^num_axis for Adobe MM fonts. Not meaningful for TrueType GX or OpenType variation fonts (where every glyph could have a different number of designs). num_namedstyles The number of named styles; a \u2018named style\u2019 is a tuple of design coordinates that has a string ID (in the \u2018name\u2019 table) associated with it. The font can tell the user that, for example, [Weight=1.5,Width=1.1] is \u2018Bold\u2019. Another name for \u2018named style\u2019 is \u2018named instance\u2019. For Adobe Multiple Masters fonts, this value is always zero because the format does not support named styles. axis An axis descriptor table. TrueType GX and OpenType variation fonts contain slightly more data than Adobe MM fonts. Memory management of this pointer is done internally by FreeType. namedstyle A named style (instance) table. Only meaningful for TrueType GX and OpenType variation fonts. Memory management of this pointer is done internally by FreeType. FT_Get_Multi_Master \u00b6 Defined in FT_MULTIPLE_MASTERS_H (freetype/ftmm.h). FT_EXPORT( FT_Error ) FT_Get_Multi_Master ( FT_Face face, FT_Multi_Master *amaster ); Retrieve a variation descriptor of a given Adobe MM font. This function can't be used with TrueType GX or OpenType variation fonts. input face A handle to the source face. output amaster The Multiple Masters descriptor. return FreeType error code. 0 means success. FT_Get_MM_Var \u00b6 Defined in FT_MULTIPLE_MASTERS_H (freetype/ftmm.h). FT_EXPORT( FT_Error ) FT_Get_MM_Var ( FT_Face face, FT_MM_Var * *amaster ); Retrieve a variation descriptor for a given font. This function works with all supported variation formats. input face A handle to the source face. output amaster The variation descriptor. Allocates a data structure, which the user must deallocate with a call to FT_Done_MM_Var after use. return FreeType error code. 0 means success. FT_Done_MM_Var \u00b6 Defined in FT_MULTIPLE_MASTERS_H (freetype/ftmm.h). FT_EXPORT( FT_Error ) FT_Done_MM_Var ( FT_Library library, FT_MM_Var *amaster ); Free the memory allocated by FT_Get_MM_Var . input library A handle of the face's parent library object that was used in the call to FT_Get_MM_Var to create amaster . return FreeType error code. 0 means success. FT_Set_MM_Design_Coordinates \u00b6 Defined in FT_MULTIPLE_MASTERS_H (freetype/ftmm.h). FT_EXPORT( FT_Error ) FT_Set_MM_Design_Coordinates ( FT_Face face, FT_UInt num_coords, FT_Long * coords ); For Adobe MM fonts, choose an interpolated font design through design coordinates. This function can't be used with TrueType GX or OpenType variation fonts. inout face A handle to the source face. input num_coords The number of available design coordinates. If it is larger than the number of axes, ignore the excess values. If it is smaller than the number of axes, use default values for the remaining axes. coords An array of design coordinates. return FreeType error code. 0 means success. note [Since 2.8.1] To reset all axes to the default values, call the function with num_coords set to zero and coords set to NULL . [Since 2.9] If num_coords is larger than zero, this function sets the FT_FACE_FLAG_VARIATION bit in FT_Face 's face_flags field (i.e., FT_IS_VARIATION will return true). If num_coords is zero, this bit flag gets unset. FT_Set_Var_Design_Coordinates \u00b6 Defined in FT_MULTIPLE_MASTERS_H (freetype/ftmm.h). FT_EXPORT( FT_Error ) FT_Set_Var_Design_Coordinates ( FT_Face face, FT_UInt num_coords, FT_Fixed * coords ); Choose an interpolated font design through design coordinates. This function works with all supported variation formats. inout face A handle to the source face. input num_coords The number of available design coordinates. If it is larger than the number of axes, ignore the excess values. If it is smaller than the number of axes, use default values for the remaining axes. coords An array of design coordinates. return FreeType error code. 0 means success. note [Since 2.8.1] To reset all axes to the default values, call the function with num_coords set to zero and coords set to NULL . [Since 2.9] \u2018Default values\u2019 means the currently selected named instance (or the base font if no named instance is selected). [Since 2.9] If num_coords is larger than zero, this function sets the FT_FACE_FLAG_VARIATION bit in FT_Face 's face_flags field (i.e., FT_IS_VARIATION will return true). If num_coords is zero, this bit flag gets unset. FT_Get_Var_Design_Coordinates \u00b6 Defined in FT_MULTIPLE_MASTERS_H (freetype/ftmm.h). FT_EXPORT( FT_Error ) FT_Get_Var_Design_Coordinates ( FT_Face face, FT_UInt num_coords, FT_Fixed * coords ); Get the design coordinates of the currently selected interpolated font. This function works with all supported variation formats. input face A handle to the source face. num_coords The number of design coordinates to retrieve. If it is larger than the number of axes, set the excess values to 0. output coords The design coordinates array. return FreeType error code. 0 means success. since 2.7.1 FT_Set_MM_Blend_Coordinates \u00b6 Defined in FT_MULTIPLE_MASTERS_H (freetype/ftmm.h). FT_EXPORT( FT_Error ) FT_Set_MM_Blend_Coordinates ( FT_Face face, FT_UInt num_coords, FT_Fixed * coords ); Choose an interpolated font design through normalized blend coordinates. This function works with all supported variation formats. inout face A handle to the source face. input num_coords The number of available design coordinates. If it is larger than the number of axes, ignore the excess values. If it is smaller than the number of axes, use default values for the remaining axes. coords The design coordinates array (each element must be between 0 and 1.0 for Adobe MM fonts, and between -1.0 and 1.0 for TrueType GX and OpenType variation fonts). return FreeType error code. 0 means success. note [Since 2.8.1] To reset all axes to the default values, call the function with num_coords set to zero and coords set to NULL . [Since 2.9] \u2018Default values\u2019 means the currently selected named instance (or the base font if no named instance is selected). [Since 2.9] If num_coords is larger than zero, this function sets the FT_FACE_FLAG_VARIATION bit in FT_Face 's face_flags field (i.e., FT_IS_VARIATION will return true). If num_coords is zero, this bit flag gets unset. FT_Get_MM_Blend_Coordinates \u00b6 Defined in FT_MULTIPLE_MASTERS_H (freetype/ftmm.h). FT_EXPORT( FT_Error ) FT_Get_MM_Blend_Coordinates ( FT_Face face, FT_UInt num_coords, FT_Fixed * coords ); Get the normalized blend coordinates of the currently selected interpolated font. This function works with all supported variation formats. input face A handle to the source face. num_coords The number of normalized blend coordinates to retrieve. If it is larger than the number of axes, set the excess values to 0.5 for Adobe MM fonts, and to 0 for TrueType GX and OpenType variation fonts. output coords The normalized blend coordinates array. return FreeType error code. 0 means success. since 2.7.1 FT_Set_Var_Blend_Coordinates \u00b6 Defined in FT_MULTIPLE_MASTERS_H (freetype/ftmm.h). FT_EXPORT( FT_Error ) FT_Set_Var_Blend_Coordinates ( FT_Face face, FT_UInt num_coords, FT_Fixed * coords ); This is another name of FT_Set_MM_Blend_Coordinates . FT_Get_Var_Blend_Coordinates \u00b6 Defined in FT_MULTIPLE_MASTERS_H (freetype/ftmm.h). FT_EXPORT( FT_Error ) FT_Get_Var_Blend_Coordinates ( FT_Face face, FT_UInt num_coords, FT_Fixed * coords ); This is another name of FT_Get_MM_Blend_Coordinates . since 2.7.1 FT_Set_MM_WeightVector \u00b6 Defined in FT_MULTIPLE_MASTERS_H (freetype/ftmm.h). FT_EXPORT( FT_Error ) FT_Set_MM_WeightVector ( FT_Face face, FT_UInt len, FT_Fixed * weightvector ); For Adobe MM fonts, choose an interpolated font design by directly setting the weight vector. This function can't be used with TrueType GX or OpenType variation fonts. inout face A handle to the source face. input len The length of the weight vector array. If it is larger than the number of designs, the extra values are ignored. If it is less than the number of designs, the remaining values are set to zero. weightvector An array representing the weight vector. return FreeType error code. 0 means success. note Adobe Multiple Master fonts limit the number of designs, and thus the length of the weight vector to 16. If len is zero and weightvector is NULL , the weight vector array is reset to the default values. The Adobe documentation also states that the values in the WeightVector array must total 1.0 \u00b1 0.001. In practice this does not seem to be enforced, so is not enforced here, either. since 2.10 FT_Get_MM_WeightVector \u00b6 Defined in FT_MULTIPLE_MASTERS_H (freetype/ftmm.h). FT_EXPORT( FT_Error ) FT_Get_MM_WeightVector ( FT_Face face, FT_UInt * len, FT_Fixed * weightvector ); For Adobe MM fonts, retrieve the current weight vector of the font. This function can't be used with TrueType GX or OpenType variation fonts. inout face A handle to the source face. len A pointer to the size of the array to be filled. If the size of the array is less than the number of designs, FT_Err_Invalid_Argument is returned, and len is set to the required size (the number of designs). If the size of the array is greater than the number of designs, the remaining entries are set to 0. On successful completion, len is set to the number of designs (i.e., the number of values written to the array). output weightvector An array to be filled. return FreeType error code. 0 means success. note Adobe Multiple Master fonts limit the number of designs, and thus the length of the WeightVector to 16. since 2.10 FT_VAR_AXIS_FLAG_XXX \u00b6 Defined in FT_MULTIPLE_MASTERS_H (freetype/ftmm.h). # define FT_VAR_AXIS_FLAG_HIDDEN 1 A list of bit flags used in the return value of FT_Get_Var_Axis_Flags . values FT_VAR_AXIS_FLAG_HIDDEN The variation axis should not be exposed to user interfaces. since 2.8.1 FT_Get_Var_Axis_Flags \u00b6 Defined in FT_MULTIPLE_MASTERS_H (freetype/ftmm.h). FT_EXPORT( FT_Error ) FT_Get_Var_Axis_Flags ( FT_MM_Var * master, FT_UInt axis_index, FT_UInt * flags ); Get the \u2018flags\u2019 field of an OpenType Variation Axis Record. Not meaningful for Adobe MM fonts ( *flags is always zero). input master The variation descriptor. axis_index The index of the requested variation axis. output flags The \u2018flags\u2019 field. See FT_VAR_AXIS_FLAG_XXX for possible values. return FreeType error code. 0 means success. since 2.8.1 FT_Set_Named_Instance \u00b6 Defined in FT_MULTIPLE_MASTERS_H (freetype/ftmm.h). FT_EXPORT( FT_Error ) FT_Set_Named_Instance ( FT_Face face, FT_UInt instance_index ); Set or change the current named instance. input face A handle to the source face. instance_index The index of the requested instance, starting with value 1. If set to value 0, FreeType switches to font access without a named instance. return FreeType error code. 0 means success. note The function uses the value of instance_index to set bits 16-30 of the face's face_index field. It also resets any variation applied to the font, and the FT_FACE_FLAG_VARIATION bit of the face's face_flags field gets reset to zero (i.e., FT_IS_VARIATION will return false). For Adobe MM fonts (which don't have named instances) this function simply resets the current face to the default instance. since 2.9","title":"Multiple Masters"},{"location":"ft2-multiple_masters.html#multiple-masters","text":"","title":"Multiple Masters"},{"location":"ft2-multiple_masters.html#synopsis","text":"The following types and functions are used to manage Multiple Master fonts, i.e., the selection of specific design instances by setting design axis coordinates. Besides Adobe MM fonts, the interface supports Apple's TrueType GX and OpenType variation fonts. Some of the routines only work with Adobe MM fonts, others will work with all three types. They are similar enough that a consistent interface makes sense.","title":"Synopsis"},{"location":"ft2-multiple_masters.html#ft_mm_axis","text":"Defined in FT_MULTIPLE_MASTERS_H (freetype/ftmm.h). typedef struct FT_MM_Axis_ { FT_String * name; FT_Long minimum; FT_Long maximum; } FT_MM_Axis ; A structure to model a given axis in design space for Multiple Masters fonts. This structure can't be used for TrueType GX or OpenType variation fonts.","title":"FT_MM_Axis"},{"location":"ft2-multiple_masters.html#ft_multi_master","text":"Defined in FT_MULTIPLE_MASTERS_H (freetype/ftmm.h). typedef struct FT_Multi_Master_ { FT_UInt num_axis; FT_UInt num_designs; FT_MM_Axis axis[T1_MAX_MM_AXIS]; } FT_Multi_Master ; A structure to model the axes and space of a Multiple Masters font. This structure can't be used for TrueType GX or OpenType variation fonts.","title":"FT_Multi_Master"},{"location":"ft2-multiple_masters.html#ft_var_axis","text":"Defined in FT_MULTIPLE_MASTERS_H (freetype/ftmm.h). typedef struct FT_Var_Axis_ { FT_String * name; FT_Fixed minimum; FT_Fixed def; FT_Fixed maximum; FT_ULong tag; FT_UInt strid; } FT_Var_Axis ; A structure to model a given axis in design space for Multiple Masters, TrueType GX, and OpenType variation fonts.","title":"FT_Var_Axis"},{"location":"ft2-multiple_masters.html#ft_var_named_style","text":"Defined in FT_MULTIPLE_MASTERS_H (freetype/ftmm.h). typedef struct FT_Var_Named_Style_ { FT_Fixed * coords; FT_UInt strid; FT_UInt psid; /* since 2.7.1 */ } FT_Var_Named_Style ; A structure to model a named instance in a TrueType GX or OpenType variation font. This structure can't be used for Adobe MM fonts.","title":"FT_Var_Named_Style"},{"location":"ft2-multiple_masters.html#ft_mm_var","text":"Defined in FT_MULTIPLE_MASTERS_H (freetype/ftmm.h). typedef struct FT_MM_Var_ { FT_UInt num_axis; FT_UInt num_designs; FT_UInt num_namedstyles; FT_Var_Axis * axis; FT_Var_Named_Style * namedstyle; } FT_MM_Var ; A structure to model the axes and space of an Adobe MM, TrueType GX, or OpenType variation font. Some fields are specific to one format and not to the others.","title":"FT_MM_Var"},{"location":"ft2-multiple_masters.html#ft_get_multi_master","text":"Defined in FT_MULTIPLE_MASTERS_H (freetype/ftmm.h). FT_EXPORT( FT_Error ) FT_Get_Multi_Master ( FT_Face face, FT_Multi_Master *amaster ); Retrieve a variation descriptor of a given Adobe MM font. This function can't be used with TrueType GX or OpenType variation fonts.","title":"FT_Get_Multi_Master"},{"location":"ft2-multiple_masters.html#ft_get_mm_var","text":"Defined in FT_MULTIPLE_MASTERS_H (freetype/ftmm.h). FT_EXPORT( FT_Error ) FT_Get_MM_Var ( FT_Face face, FT_MM_Var * *amaster ); Retrieve a variation descriptor for a given font. This function works with all supported variation formats.","title":"FT_Get_MM_Var"},{"location":"ft2-multiple_masters.html#ft_done_mm_var","text":"Defined in FT_MULTIPLE_MASTERS_H (freetype/ftmm.h). FT_EXPORT( FT_Error ) FT_Done_MM_Var ( FT_Library library, FT_MM_Var *amaster ); Free the memory allocated by FT_Get_MM_Var .","title":"FT_Done_MM_Var"},{"location":"ft2-multiple_masters.html#ft_set_mm_design_coordinates","text":"Defined in FT_MULTIPLE_MASTERS_H (freetype/ftmm.h). FT_EXPORT( FT_Error ) FT_Set_MM_Design_Coordinates ( FT_Face face, FT_UInt num_coords, FT_Long * coords ); For Adobe MM fonts, choose an interpolated font design through design coordinates. This function can't be used with TrueType GX or OpenType variation fonts.","title":"FT_Set_MM_Design_Coordinates"},{"location":"ft2-multiple_masters.html#ft_set_var_design_coordinates","text":"Defined in FT_MULTIPLE_MASTERS_H (freetype/ftmm.h). FT_EXPORT( FT_Error ) FT_Set_Var_Design_Coordinates ( FT_Face face, FT_UInt num_coords, FT_Fixed * coords ); Choose an interpolated font design through design coordinates. This function works with all supported variation formats.","title":"FT_Set_Var_Design_Coordinates"},{"location":"ft2-multiple_masters.html#ft_get_var_design_coordinates","text":"Defined in FT_MULTIPLE_MASTERS_H (freetype/ftmm.h). FT_EXPORT( FT_Error ) FT_Get_Var_Design_Coordinates ( FT_Face face, FT_UInt num_coords, FT_Fixed * coords ); Get the design coordinates of the currently selected interpolated font. This function works with all supported variation formats.","title":"FT_Get_Var_Design_Coordinates"},{"location":"ft2-multiple_masters.html#ft_set_mm_blend_coordinates","text":"Defined in FT_MULTIPLE_MASTERS_H (freetype/ftmm.h). FT_EXPORT( FT_Error ) FT_Set_MM_Blend_Coordinates ( FT_Face face, FT_UInt num_coords, FT_Fixed * coords ); Choose an interpolated font design through normalized blend coordinates. This function works with all supported variation formats.","title":"FT_Set_MM_Blend_Coordinates"},{"location":"ft2-multiple_masters.html#ft_get_mm_blend_coordinates","text":"Defined in FT_MULTIPLE_MASTERS_H (freetype/ftmm.h). FT_EXPORT( FT_Error ) FT_Get_MM_Blend_Coordinates ( FT_Face face, FT_UInt num_coords, FT_Fixed * coords ); Get the normalized blend coordinates of the currently selected interpolated font. This function works with all supported variation formats.","title":"FT_Get_MM_Blend_Coordinates"},{"location":"ft2-multiple_masters.html#ft_set_var_blend_coordinates","text":"Defined in FT_MULTIPLE_MASTERS_H (freetype/ftmm.h). FT_EXPORT( FT_Error ) FT_Set_Var_Blend_Coordinates ( FT_Face face, FT_UInt num_coords, FT_Fixed * coords ); This is another name of FT_Set_MM_Blend_Coordinates .","title":"FT_Set_Var_Blend_Coordinates"},{"location":"ft2-multiple_masters.html#ft_get_var_blend_coordinates","text":"Defined in FT_MULTIPLE_MASTERS_H (freetype/ftmm.h). FT_EXPORT( FT_Error ) FT_Get_Var_Blend_Coordinates ( FT_Face face, FT_UInt num_coords, FT_Fixed * coords ); This is another name of FT_Get_MM_Blend_Coordinates .","title":"FT_Get_Var_Blend_Coordinates"},{"location":"ft2-multiple_masters.html#ft_set_mm_weightvector","text":"Defined in FT_MULTIPLE_MASTERS_H (freetype/ftmm.h). FT_EXPORT( FT_Error ) FT_Set_MM_WeightVector ( FT_Face face, FT_UInt len, FT_Fixed * weightvector ); For Adobe MM fonts, choose an interpolated font design by directly setting the weight vector. This function can't be used with TrueType GX or OpenType variation fonts.","title":"FT_Set_MM_WeightVector"},{"location":"ft2-multiple_masters.html#ft_get_mm_weightvector","text":"Defined in FT_MULTIPLE_MASTERS_H (freetype/ftmm.h). FT_EXPORT( FT_Error ) FT_Get_MM_WeightVector ( FT_Face face, FT_UInt * len, FT_Fixed * weightvector ); For Adobe MM fonts, retrieve the current weight vector of the font. This function can't be used with TrueType GX or OpenType variation fonts.","title":"FT_Get_MM_WeightVector"},{"location":"ft2-multiple_masters.html#ft_var_axis_flag_xxx","text":"Defined in FT_MULTIPLE_MASTERS_H (freetype/ftmm.h). # define FT_VAR_AXIS_FLAG_HIDDEN 1 A list of bit flags used in the return value of FT_Get_Var_Axis_Flags .","title":"FT_VAR_AXIS_FLAG_XXX"},{"location":"ft2-multiple_masters.html#ft_get_var_axis_flags","text":"Defined in FT_MULTIPLE_MASTERS_H (freetype/ftmm.h). FT_EXPORT( FT_Error ) FT_Get_Var_Axis_Flags ( FT_MM_Var * master, FT_UInt axis_index, FT_UInt * flags ); Get the \u2018flags\u2019 field of an OpenType Variation Axis Record. Not meaningful for Adobe MM fonts ( *flags is always zero).","title":"FT_Get_Var_Axis_Flags"},{"location":"ft2-multiple_masters.html#ft_set_named_instance","text":"Defined in FT_MULTIPLE_MASTERS_H (freetype/ftmm.h). FT_EXPORT( FT_Error ) FT_Set_Named_Instance ( FT_Face face, FT_UInt instance_index ); Set or change the current named instance.","title":"FT_Set_Named_Instance"},{"location":"ft2-ot_validation.html","text":"FreeType \u00bb Docs \u00bb Miscellaneous \u00bb OpenType Validation OpenType Validation \u00b6 Synopsis \u00b6 This section contains the declaration of functions to validate some OpenType tables (BASE, GDEF, GPOS, GSUB, JSTF, MATH). FT_OpenType_Validate \u00b6 Defined in FT_OPENTYPE_VALIDATE_H (freetype/ftotval.h). FT_EXPORT( FT_Error ) FT_OpenType_Validate ( FT_Face face, FT_UInt validation_flags, FT_Bytes *BASE_table, FT_Bytes *GDEF_table, FT_Bytes *GPOS_table, FT_Bytes *GSUB_table, FT_Bytes *JSTF_table ); Validate various OpenType tables to assure that all offsets and indices are valid. The idea is that a higher-level library that actually does the text layout can access those tables without error checking (which can be quite time consuming). input face A handle to the input face. validation_flags A bit field that specifies the tables to be validated. See FT_VALIDATE_OTXXX for possible values. output BASE_table A pointer to the BASE table. GDEF_table A pointer to the GDEF table. GPOS_table A pointer to the GPOS table. GSUB_table A pointer to the GSUB table. JSTF_table A pointer to the JSTF table. return FreeType error code. 0 means success. note This function only works with OpenType fonts, returning an error otherwise. After use, the application should deallocate the five tables with FT_OpenType_Free . A NULL value indicates that the table either doesn't exist in the font, or the application hasn't asked for validation. FT_OpenType_Free \u00b6 Defined in FT_OPENTYPE_VALIDATE_H (freetype/ftotval.h). FT_EXPORT( void ) FT_OpenType_Free ( FT_Face face, FT_Bytes table ); Free the buffer allocated by OpenType validator. input face A handle to the input face. table The pointer to the buffer that is allocated by FT_OpenType_Validate . note This function must be used to free the buffer allocated by FT_OpenType_Validate only. FT_VALIDATE_OTXXX \u00b6 Defined in FT_OPENTYPE_VALIDATE_H (freetype/ftotval.h). # define FT_VALIDATE_BASE 0x0100 # define FT_VALIDATE_GDEF 0x0200 # define FT_VALIDATE_GPOS 0x0400 # define FT_VALIDATE_GSUB 0x0800 # define FT_VALIDATE_JSTF 0x1000 # define FT_VALIDATE_MATH 0x2000 # define FT_VALIDATE_OT ( FT_VALIDATE_BASE | \\ FT_VALIDATE_GDEF | \\ FT_VALIDATE_GPOS | \\ FT_VALIDATE_GSUB | \\ FT_VALIDATE_JSTF | \\ FT_VALIDATE_MATH ) A list of bit-field constants used with FT_OpenType_Validate to indicate which OpenType tables should be validated. values FT_VALIDATE_BASE Validate BASE table. FT_VALIDATE_GDEF Validate GDEF table. FT_VALIDATE_GPOS Validate GPOS table. FT_VALIDATE_GSUB Validate GSUB table. FT_VALIDATE_JSTF Validate JSTF table. FT_VALIDATE_MATH Validate MATH table. FT_VALIDATE_OT Validate all OpenType tables (BASE, GDEF, GPOS, GSUB, JSTF, MATH).","title":"OpenType Validation"},{"location":"ft2-ot_validation.html#opentype-validation","text":"","title":"OpenType Validation"},{"location":"ft2-ot_validation.html#synopsis","text":"This section contains the declaration of functions to validate some OpenType tables (BASE, GDEF, GPOS, GSUB, JSTF, MATH).","title":"Synopsis"},{"location":"ft2-ot_validation.html#ft_opentype_validate","text":"Defined in FT_OPENTYPE_VALIDATE_H (freetype/ftotval.h). FT_EXPORT( FT_Error ) FT_OpenType_Validate ( FT_Face face, FT_UInt validation_flags, FT_Bytes *BASE_table, FT_Bytes *GDEF_table, FT_Bytes *GPOS_table, FT_Bytes *GSUB_table, FT_Bytes *JSTF_table ); Validate various OpenType tables to assure that all offsets and indices are valid. The idea is that a higher-level library that actually does the text layout can access those tables without error checking (which can be quite time consuming).","title":"FT_OpenType_Validate"},{"location":"ft2-ot_validation.html#ft_opentype_free","text":"Defined in FT_OPENTYPE_VALIDATE_H (freetype/ftotval.h). FT_EXPORT( void ) FT_OpenType_Free ( FT_Face face, FT_Bytes table ); Free the buffer allocated by OpenType validator.","title":"FT_OpenType_Free"},{"location":"ft2-ot_validation.html#ft_validate_otxxx","text":"Defined in FT_OPENTYPE_VALIDATE_H (freetype/ftotval.h). # define FT_VALIDATE_BASE 0x0100 # define FT_VALIDATE_GDEF 0x0200 # define FT_VALIDATE_GPOS 0x0400 # define FT_VALIDATE_GSUB 0x0800 # define FT_VALIDATE_JSTF 0x1000 # define FT_VALIDATE_MATH 0x2000 # define FT_VALIDATE_OT ( FT_VALIDATE_BASE | \\ FT_VALIDATE_GDEF | \\ FT_VALIDATE_GPOS | \\ FT_VALIDATE_GSUB | \\ FT_VALIDATE_JSTF | \\ FT_VALIDATE_MATH ) A list of bit-field constants used with FT_OpenType_Validate to indicate which OpenType tables should be validated.","title":"FT_VALIDATE_OTXXX"},{"location":"ft2-outline_processing.html","text":"FreeType \u00bb Docs \u00bb Support API \u00bb Outline Processing Outline Processing \u00b6 Synopsis \u00b6 This section contains routines used to create and destroy scalable glyph images known as \u2018outlines\u2019. These can also be measured, transformed, and converted into bitmaps and pixmaps. FT_Outline \u00b6 Defined in FT_IMAGE_H (freetype/ftimage.h). typedef struct FT_Outline_ { short n_contours; /* number of contours in glyph */ short n_points; /* number of points in the glyph */ FT_Vector * points; /* the outline's points */ char * tags; /* the points flags */ short * contours; /* the contour end points */ int flags; /* outline masks */ } FT_Outline ; This structure is used to describe an outline to the scan-line converter. fields n_contours The number of contours in the outline. n_points The number of points in the outline. points A pointer to an array of n_points FT_Vector elements, giving the outline's point coordinates. tags A pointer to an array of n_points chars, giving each outline point's type. If bit 0 is unset, the point is \u2018off\u2019 the curve, i.e., a Bezier control point, while it is \u2018on\u2019 if set. Bit 1 is meaningful for \u2018off\u2019 points only. If set, it indicates a third-order Bezier arc control point; and a second-order control point if unset. If bit 2 is set, bits 5-7 contain the drop-out mode (as defined in the OpenType specification; the value is the same as the argument to the \u2018SCANMODE\u2019 instruction). Bits 3 and 4 are reserved for internal purposes. contours An array of n_contours shorts, giving the end point of each contour within the outline. For example, the first contour is defined by the points \u20180\u2019 to contours[0] , the second one is defined by the points contours[0]+1 to contours[1] , etc. flags A set of bit flags used to characterize the outline and give hints to the scan-converter and hinter on how to convert/grid-fit it. See FT_OUTLINE_XXX . note The B/W rasterizer only checks bit 2 in the tags array for the first point of each contour. The drop-out mode as given with FT_OUTLINE_IGNORE_DROPOUTS , FT_OUTLINE_SMART_DROPOUTS , and FT_OUTLINE_INCLUDE_STUBS in flags is then overridden. FT_Outline_New \u00b6 Defined in FT_OUTLINE_H (freetype/ftoutln.h). FT_EXPORT( FT_Error ) FT_Outline_New ( FT_Library library, FT_UInt numPoints, FT_Int numContours, FT_Outline *anoutline ); Create a new outline of a given size. input library A handle to the library object from where the outline is allocated. Note however that the new outline will not necessarily be freed , when destroying the library, by FT_Done_FreeType . numPoints The maximum number of points within the outline. Must be smaller than or equal to 0xFFFF (65535). numContours The maximum number of contours within the outline. This value must be in the range 0 to numPoints . output anoutline A handle to the new outline. return FreeType error code. 0 means success. note The reason why this function takes a library parameter is simply to use the library's memory allocator. FT_Outline_Done \u00b6 Defined in FT_OUTLINE_H (freetype/ftoutln.h). FT_EXPORT( FT_Error ) FT_Outline_Done ( FT_Library library, FT_Outline * outline ); Destroy an outline created with FT_Outline_New . input library A handle of the library object used to allocate the outline. outline A pointer to the outline object to be discarded. return FreeType error code. 0 means success. note If the outline's \u2018owner\u2019 field is not set, only the outline descriptor will be released. FT_Outline_Copy \u00b6 Defined in FT_OUTLINE_H (freetype/ftoutln.h). FT_EXPORT( FT_Error ) FT_Outline_Copy ( const FT_Outline * source, FT_Outline *target ); Copy an outline into another one. Both objects must have the same sizes (number of points & number of contours) when this function is called. input source A handle to the source outline. output target A handle to the target outline. return FreeType error code. 0 means success. FT_Outline_Translate \u00b6 Defined in FT_OUTLINE_H (freetype/ftoutln.h). FT_EXPORT( void ) FT_Outline_Translate ( const FT_Outline * outline, FT_Pos xOffset, FT_Pos yOffset ); Apply a simple translation to the points of an outline. inout outline A pointer to the target outline descriptor. input xOffset The horizontal offset. yOffset The vertical offset. FT_Outline_Transform \u00b6 Defined in FT_OUTLINE_H (freetype/ftoutln.h). FT_EXPORT( void ) FT_Outline_Transform ( const FT_Outline * outline, const FT_Matrix * matrix ); Apply a simple 2x2 matrix to all of an outline's points. Useful for applying rotations, slanting, flipping, etc. inout outline A pointer to the target outline descriptor. input matrix A pointer to the transformation matrix. note You can use FT_Outline_Translate if you need to translate the outline's points. FT_Outline_Embolden \u00b6 Defined in FT_OUTLINE_H (freetype/ftoutln.h). FT_EXPORT( FT_Error ) FT_Outline_Embolden ( FT_Outline * outline, FT_Pos strength ); Embolden an outline. The new outline will be at most 4 times strength pixels wider and higher. You may think of the left and bottom borders as unchanged. Negative strength values to reduce the outline thickness are possible also. inout outline A handle to the target outline. input strength How strong the glyph is emboldened. Expressed in 26.6 pixel format. return FreeType error code. 0 means success. note The used algorithm to increase or decrease the thickness of the glyph doesn't change the number of points; this means that certain situations like acute angles or intersections are sometimes handled incorrectly. If you need \u2018better\u2019 metrics values you should call FT_Outline_Get_CBox or FT_Outline_Get_BBox . To get meaningful results, font scaling values must be set with functions like FT_Set_Char_Size before calling FT_Render_Glyph. example FT_Load_Glyph( face, index, FT_LOAD_DEFAULT ); if ( face->glyph->format == FT_GLYPH_FORMAT_OUTLINE ) FT_Outline_Embolden( &face->glyph->outline, strength ); FT_Outline_EmboldenXY \u00b6 Defined in FT_OUTLINE_H (freetype/ftoutln.h). FT_EXPORT( FT_Error ) FT_Outline_EmboldenXY ( FT_Outline * outline, FT_Pos xstrength, FT_Pos ystrength ); Embolden an outline. The new outline will be xstrength pixels wider and ystrength pixels higher. Otherwise, it is similar to FT_Outline_Embolden , which uses the same strength in both directions. since 2.4.10 FT_Outline_Reverse \u00b6 Defined in FT_OUTLINE_H (freetype/ftoutln.h). FT_EXPORT( void ) FT_Outline_Reverse ( FT_Outline * outline ); Reverse the drawing direction of an outline. This is used to ensure consistent fill conventions for mirrored glyphs. inout outline A pointer to the target outline descriptor. note This function toggles the bit flag FT_OUTLINE_REVERSE_FILL in the outline's flags field. It shouldn't be used by a normal client application, unless it knows what it is doing. FT_Outline_Check \u00b6 Defined in FT_OUTLINE_H (freetype/ftoutln.h). FT_EXPORT( FT_Error ) FT_Outline_Check ( FT_Outline * outline ); Check the contents of an outline descriptor. input outline A handle to a source outline. return FreeType error code. 0 means success. note An empty outline, or an outline with a single point only is also valid. FT_Outline_Get_CBox \u00b6 Defined in FT_OUTLINE_H (freetype/ftoutln.h). FT_EXPORT( void ) FT_Outline_Get_CBox ( const FT_Outline * outline, FT_BBox *acbox ); Return an outline's \u2018control box\u2019. The control box encloses all the outline's points, including Bezier control points. Though it coincides with the exact bounding box for most glyphs, it can be slightly larger in some situations (like when rotating an outline that contains Bezier outside arcs). Computing the control box is very fast, while getting the bounding box can take much more time as it needs to walk over all segments and arcs in the outline. To get the latter, you can use the \u2018ftbbox\u2019 component, which is dedicated to this single task. input outline A pointer to the source outline descriptor. output acbox The outline's control box. note See FT_Glyph_Get_CBox for a discussion of tricky fonts. FT_Outline_Get_BBox \u00b6 Defined in FT_BBOX_H (freetype/ftbbox.h). FT_EXPORT( FT_Error ) FT_Outline_Get_BBox ( FT_Outline * outline, FT_BBox *abbox ); Compute the exact bounding box of an outline. This is slower than computing the control box. However, it uses an advanced algorithm that returns very quickly when the two boxes coincide. Otherwise, the outline Bezier arcs are traversed to extract their extrema. input outline A pointer to the source outline. output abbox The outline's exact bounding box. return FreeType error code. 0 means success. note If the font is tricky and the glyph has been loaded with FT_LOAD_NO_SCALE , the resulting BBox is meaningless. To get reasonable values for the BBox it is necessary to load the glyph at a large ppem value (so that the hinting instructions can properly shift and scale the subglyphs), then extracting the BBox, which can be eventually converted back to font units. FT_Outline_Get_Bitmap \u00b6 Defined in FT_OUTLINE_H (freetype/ftoutln.h). FT_EXPORT( FT_Error ) FT_Outline_Get_Bitmap ( FT_Library library, FT_Outline * outline, const FT_Bitmap *abitmap ); Render an outline within a bitmap. The outline's image is simply OR-ed to the target bitmap. input library A handle to a FreeType library object. outline A pointer to the source outline descriptor. inout abitmap A pointer to the target bitmap descriptor. return FreeType error code. 0 means success. note This function does not create the bitmap, it only renders an outline image within the one you pass to it! Consequently, the various fields in abitmap should be set accordingly. It will use the raster corresponding to the default glyph format. The value of the num_grays field in abitmap is ignored. If you select the gray-level rasterizer, and you want less than 256 gray levels, you have to use FT_Outline_Render directly. FT_Outline_Render \u00b6 Defined in FT_OUTLINE_H (freetype/ftoutln.h). FT_EXPORT( FT_Error ) FT_Outline_Render ( FT_Library library, FT_Outline * outline, FT_Raster_Params * params ); Render an outline within a bitmap using the current scan-convert. input library A handle to a FreeType library object. outline A pointer to the source outline descriptor. inout params A pointer to an FT_Raster_Params structure used to describe the rendering operation. return FreeType error code. 0 means success. note This advanced function uses FT_Raster_Params as an argument. The field params.source will be set to outline before the scan converter is called, which means that the value you give to it is actually ignored. Either params.target must point to preallocated bitmap, or FT_RASTER_FLAG_DIRECT must be set in params.flags allowing FreeType rasterizer to be used for direct composition, translucency, etc. See FT_Raster_Params for more details. FT_Outline_Decompose \u00b6 Defined in FT_OUTLINE_H (freetype/ftoutln.h). FT_EXPORT( FT_Error ) FT_Outline_Decompose ( FT_Outline * outline, const FT_Outline_Funcs * func_interface, void * user ); Walk over an outline's structure to decompose it into individual segments and Bezier arcs. This function also emits \u2018move to\u2019 operations to indicate the start of new contours in the outline. input outline A pointer to the source target. func_interface A table of \u2018emitters\u2019, i.e., function pointers called during decomposition to indicate path operations. inout user A typeless pointer that is passed to each emitter during the decomposition. It can be used to store the state during the decomposition. return FreeType error code. 0 means success. note A contour that contains a single point only is represented by a \u2018move to\u2019 operation followed by \u2018line to\u2019 to the same point. In most cases, it is best to filter this out before using the outline for stroking purposes (otherwise it would result in a visible dot when round caps are used). Similarly, the function returns success for an empty outline also (doing nothing, this is, not calling any emitter); if necessary, you should filter this out, too. FT_Outline_Funcs \u00b6 Defined in FT_IMAGE_H (freetype/ftimage.h). typedef struct FT_Outline_Funcs_ { FT_Outline_MoveToFunc move_to; FT_Outline_LineToFunc line_to; FT_Outline_ConicToFunc conic_to; FT_Outline_CubicToFunc cubic_to; int shift; FT_Pos delta; } FT_Outline_Funcs ; A structure to hold various function pointers used during outline decomposition in order to emit segments, conic, and cubic Beziers. fields move_to The \u2018move to\u2019 emitter. line_to The segment emitter. conic_to The second-order Bezier arc emitter. cubic_to The third-order Bezier arc emitter. shift The shift that is applied to coordinates before they are sent to the emitter. delta The delta that is applied to coordinates before they are sent to the emitter, but after the shift. note The point coordinates sent to the emitters are the transformed version of the original coordinates (this is important for high accuracy during scan-conversion). The transformation is simple: x' = (x << shift) - delta y' = (y << shift) - delta Set the values of shift and delta to 0 to get the original point coordinates. FT_Outline_MoveToFunc \u00b6 Defined in FT_IMAGE_H (freetype/ftimage.h). typedef int (* FT_Outline_MoveToFunc )( const FT_Vector * to, void * user ); # define FT_Outline_MoveTo_Func FT_Outline_MoveToFunc A function pointer type used to describe the signature of a \u2018move to\u2019 function during outline walking/decomposition. A \u2018move to\u2019 is emitted to start a new contour in an outline. input to A pointer to the target point of the \u2018move to\u2019. user A typeless pointer, which is passed from the caller of the decomposition function. return Error code. 0 means success. FT_Outline_LineToFunc \u00b6 Defined in FT_IMAGE_H (freetype/ftimage.h). typedef int (* FT_Outline_LineToFunc )( const FT_Vector * to, void * user ); # define FT_Outline_LineTo_Func FT_Outline_LineToFunc A function pointer type used to describe the signature of a \u2018line to\u2019 function during outline walking/decomposition. A \u2018line to\u2019 is emitted to indicate a segment in the outline. input to A pointer to the target point of the \u2018line to\u2019. user A typeless pointer, which is passed from the caller of the decomposition function. return Error code. 0 means success. FT_Outline_ConicToFunc \u00b6 Defined in FT_IMAGE_H (freetype/ftimage.h). typedef int (* FT_Outline_ConicToFunc )( const FT_Vector * control, const FT_Vector * to, void * user ); # define FT_Outline_ConicTo_Func FT_Outline_ConicToFunc A function pointer type used to describe the signature of a \u2018conic to\u2019 function during outline walking or decomposition. A \u2018conic to\u2019 is emitted to indicate a second-order Bezier arc in the outline. input control An intermediate control point between the last position and the new target in to . to A pointer to the target end point of the conic arc. user A typeless pointer, which is passed from the caller of the decomposition function. return Error code. 0 means success. FT_Outline_CubicToFunc \u00b6 Defined in FT_IMAGE_H (freetype/ftimage.h). typedef int (* FT_Outline_CubicToFunc )( const FT_Vector * control1, const FT_Vector * control2, const FT_Vector * to, void * user ); # define FT_Outline_CubicTo_Func FT_Outline_CubicToFunc A function pointer type used to describe the signature of a \u2018cubic to\u2019 function during outline walking or decomposition. A \u2018cubic to\u2019 is emitted to indicate a third-order Bezier arc. input control1 A pointer to the first Bezier control point. control2 A pointer to the second Bezier control point. to A pointer to the target end point. user A typeless pointer, which is passed from the caller of the decomposition function. return Error code. 0 means success. FT_Orientation \u00b6 Defined in FT_OUTLINE_H (freetype/ftoutln.h). typedef enum FT_Orientation_ { FT_ORIENTATION_TRUETYPE = 0, FT_ORIENTATION_POSTSCRIPT = 1, FT_ORIENTATION_FILL_RIGHT = FT_ORIENTATION_TRUETYPE , FT_ORIENTATION_FILL_LEFT = FT_ORIENTATION_POSTSCRIPT , FT_ORIENTATION_NONE } FT_Orientation ; A list of values used to describe an outline's contour orientation. The TrueType and PostScript specifications use different conventions to determine whether outline contours should be filled or unfilled. values FT_ORIENTATION_TRUETYPE According to the TrueType specification, clockwise contours must be filled, and counter-clockwise ones must be unfilled. FT_ORIENTATION_POSTSCRIPT According to the PostScript specification, counter-clockwise contours must be filled, and clockwise ones must be unfilled. FT_ORIENTATION_FILL_RIGHT This is identical to FT_ORIENTATION_TRUETYPE , but is used to remember that in TrueType, everything that is to the right of the drawing direction of a contour must be filled. FT_ORIENTATION_FILL_LEFT This is identical to FT_ORIENTATION_POSTSCRIPT , but is used to remember that in PostScript, everything that is to the left of the drawing direction of a contour must be filled. FT_ORIENTATION_NONE The orientation cannot be determined. That is, different parts of the glyph have different orientation. FT_Outline_Get_Orientation \u00b6 Defined in FT_OUTLINE_H (freetype/ftoutln.h). FT_EXPORT( FT_Orientation ) FT_Outline_Get_Orientation ( FT_Outline * outline ); This function analyzes a glyph outline and tries to compute its fill orientation (see FT_Orientation ). This is done by integrating the total area covered by the outline. The positive integral corresponds to the clockwise orientation and FT_ORIENTATION_POSTSCRIPT is returned. The negative integral corresponds to the counter-clockwise orientation and FT_ORIENTATION_TRUETYPE is returned. Note that this will return FT_ORIENTATION_TRUETYPE for empty outlines. input outline A handle to the source outline. return The orientation. FT_OUTLINE_XXX \u00b6 Defined in FT_IMAGE_H (freetype/ftimage.h). # define FT_OUTLINE_NONE 0x0 # define FT_OUTLINE_OWNER 0x1 # define FT_OUTLINE_EVEN_ODD_FILL 0x2 # define FT_OUTLINE_REVERSE_FILL 0x4 # define FT_OUTLINE_IGNORE_DROPOUTS 0x8 # define FT_OUTLINE_SMART_DROPOUTS 0x10 # define FT_OUTLINE_INCLUDE_STUBS 0x20 # define FT_OUTLINE_OVERLAP 0x40 # define FT_OUTLINE_HIGH_PRECISION 0x100 # define FT_OUTLINE_SINGLE_PASS 0x200 /* these constants are deprecated; use the corresponding */ /* ` FT_OUTLINE_XXX ` values instead */ # define ft_outline_none FT_OUTLINE_NONE # define ft_outline_owner FT_OUTLINE_OWNER # define ft_outline_even_odd_fill FT_OUTLINE_EVEN_ODD_FILL # define ft_outline_reverse_fill FT_OUTLINE_REVERSE_FILL # define ft_outline_ignore_dropouts FT_OUTLINE_IGNORE_DROPOUTS # define ft_outline_high_precision FT_OUTLINE_HIGH_PRECISION # define ft_outline_single_pass FT_OUTLINE_SINGLE_PASS A list of bit-field constants used for the flags in an outline's flags field. values FT_OUTLINE_NONE Value 0 is reserved. FT_OUTLINE_OWNER If set, this flag indicates that the outline's field arrays (i.e., points , flags , and contours ) are \u2018owned\u2019 by the outline object, and should thus be freed when it is destroyed. FT_OUTLINE_EVEN_ODD_FILL By default, outlines are filled using the non-zero winding rule. If set to 1, the outline will be filled using the even-odd fill rule (only works with the smooth rasterizer). FT_OUTLINE_REVERSE_FILL By default, outside contours of an outline are oriented in clock-wise direction, as defined in the TrueType specification. This flag is set if the outline uses the opposite direction (typically for Type 1 fonts). This flag is ignored by the scan converter. FT_OUTLINE_IGNORE_DROPOUTS By default, the scan converter will try to detect drop-outs in an outline and correct the glyph bitmap to ensure consistent shape continuity. If set, this flag hints the scan-line converter to ignore such cases. See below for more information. FT_OUTLINE_SMART_DROPOUTS Select smart dropout control. If unset, use simple dropout control. Ignored if FT_OUTLINE_IGNORE_DROPOUTS is set. See below for more information. FT_OUTLINE_INCLUDE_STUBS If set, turn pixels on for \u2018stubs\u2019, otherwise exclude them. Ignored if FT_OUTLINE_IGNORE_DROPOUTS is set. See below for more information. FT_OUTLINE_OVERLAP This flag indicates that this outline contains overlapping contrours and the anti-aliased renderer should perform oversampling to mitigate possible artifacts. This flag should not be set for well designed glyphs without overlaps because it quadruples the rendering time. FT_OUTLINE_HIGH_PRECISION This flag indicates that the scan-line converter should try to convert this outline to bitmaps with the highest possible quality. It is typically set for small character sizes. Note that this is only a hint that might be completely ignored by a given scan-converter. FT_OUTLINE_SINGLE_PASS This flag is set to force a given scan-converter to only use a single pass over the outline to render a bitmap glyph image. Normally, it is set for very large character sizes. It is only a hint that might be completely ignored by a given scan-converter. note The flags FT_OUTLINE_IGNORE_DROPOUTS , FT_OUTLINE_SMART_DROPOUTS , and FT_OUTLINE_INCLUDE_STUBS are ignored by the smooth rasterizer. There exists a second mechanism to pass the drop-out mode to the B/W rasterizer; see the tags field in FT_Outline . Please refer to the description of the \u2018SCANTYPE\u2019 instruction in the OpenType specification (in file ttinst1.doc ) how simple drop-outs, smart drop-outs, and stubs are defined.","title":"Outline Processing"},{"location":"ft2-outline_processing.html#outline-processing","text":"","title":"Outline Processing"},{"location":"ft2-outline_processing.html#synopsis","text":"This section contains routines used to create and destroy scalable glyph images known as \u2018outlines\u2019. These can also be measured, transformed, and converted into bitmaps and pixmaps.","title":"Synopsis"},{"location":"ft2-outline_processing.html#ft_outline","text":"Defined in FT_IMAGE_H (freetype/ftimage.h). typedef struct FT_Outline_ { short n_contours; /* number of contours in glyph */ short n_points; /* number of points in the glyph */ FT_Vector * points; /* the outline's points */ char * tags; /* the points flags */ short * contours; /* the contour end points */ int flags; /* outline masks */ } FT_Outline ; This structure is used to describe an outline to the scan-line converter.","title":"FT_Outline"},{"location":"ft2-outline_processing.html#ft_outline_new","text":"Defined in FT_OUTLINE_H (freetype/ftoutln.h). FT_EXPORT( FT_Error ) FT_Outline_New ( FT_Library library, FT_UInt numPoints, FT_Int numContours, FT_Outline *anoutline ); Create a new outline of a given size.","title":"FT_Outline_New"},{"location":"ft2-outline_processing.html#ft_outline_done","text":"Defined in FT_OUTLINE_H (freetype/ftoutln.h). FT_EXPORT( FT_Error ) FT_Outline_Done ( FT_Library library, FT_Outline * outline ); Destroy an outline created with FT_Outline_New .","title":"FT_Outline_Done"},{"location":"ft2-outline_processing.html#ft_outline_copy","text":"Defined in FT_OUTLINE_H (freetype/ftoutln.h). FT_EXPORT( FT_Error ) FT_Outline_Copy ( const FT_Outline * source, FT_Outline *target ); Copy an outline into another one. Both objects must have the same sizes (number of points & number of contours) when this function is called.","title":"FT_Outline_Copy"},{"location":"ft2-outline_processing.html#ft_outline_translate","text":"Defined in FT_OUTLINE_H (freetype/ftoutln.h). FT_EXPORT( void ) FT_Outline_Translate ( const FT_Outline * outline, FT_Pos xOffset, FT_Pos yOffset ); Apply a simple translation to the points of an outline.","title":"FT_Outline_Translate"},{"location":"ft2-outline_processing.html#ft_outline_transform","text":"Defined in FT_OUTLINE_H (freetype/ftoutln.h). FT_EXPORT( void ) FT_Outline_Transform ( const FT_Outline * outline, const FT_Matrix * matrix ); Apply a simple 2x2 matrix to all of an outline's points. Useful for applying rotations, slanting, flipping, etc.","title":"FT_Outline_Transform"},{"location":"ft2-outline_processing.html#ft_outline_embolden","text":"Defined in FT_OUTLINE_H (freetype/ftoutln.h). FT_EXPORT( FT_Error ) FT_Outline_Embolden ( FT_Outline * outline, FT_Pos strength ); Embolden an outline. The new outline will be at most 4 times strength pixels wider and higher. You may think of the left and bottom borders as unchanged. Negative strength values to reduce the outline thickness are possible also.","title":"FT_Outline_Embolden"},{"location":"ft2-outline_processing.html#ft_outline_emboldenxy","text":"Defined in FT_OUTLINE_H (freetype/ftoutln.h). FT_EXPORT( FT_Error ) FT_Outline_EmboldenXY ( FT_Outline * outline, FT_Pos xstrength, FT_Pos ystrength ); Embolden an outline. The new outline will be xstrength pixels wider and ystrength pixels higher. Otherwise, it is similar to FT_Outline_Embolden , which uses the same strength in both directions.","title":"FT_Outline_EmboldenXY"},{"location":"ft2-outline_processing.html#ft_outline_reverse","text":"Defined in FT_OUTLINE_H (freetype/ftoutln.h). FT_EXPORT( void ) FT_Outline_Reverse ( FT_Outline * outline ); Reverse the drawing direction of an outline. This is used to ensure consistent fill conventions for mirrored glyphs.","title":"FT_Outline_Reverse"},{"location":"ft2-outline_processing.html#ft_outline_check","text":"Defined in FT_OUTLINE_H (freetype/ftoutln.h). FT_EXPORT( FT_Error ) FT_Outline_Check ( FT_Outline * outline ); Check the contents of an outline descriptor.","title":"FT_Outline_Check"},{"location":"ft2-outline_processing.html#ft_outline_get_cbox","text":"Defined in FT_OUTLINE_H (freetype/ftoutln.h). FT_EXPORT( void ) FT_Outline_Get_CBox ( const FT_Outline * outline, FT_BBox *acbox ); Return an outline's \u2018control box\u2019. The control box encloses all the outline's points, including Bezier control points. Though it coincides with the exact bounding box for most glyphs, it can be slightly larger in some situations (like when rotating an outline that contains Bezier outside arcs). Computing the control box is very fast, while getting the bounding box can take much more time as it needs to walk over all segments and arcs in the outline. To get the latter, you can use the \u2018ftbbox\u2019 component, which is dedicated to this single task.","title":"FT_Outline_Get_CBox"},{"location":"ft2-outline_processing.html#ft_outline_get_bbox","text":"Defined in FT_BBOX_H (freetype/ftbbox.h). FT_EXPORT( FT_Error ) FT_Outline_Get_BBox ( FT_Outline * outline, FT_BBox *abbox ); Compute the exact bounding box of an outline. This is slower than computing the control box. However, it uses an advanced algorithm that returns very quickly when the two boxes coincide. Otherwise, the outline Bezier arcs are traversed to extract their extrema.","title":"FT_Outline_Get_BBox"},{"location":"ft2-outline_processing.html#ft_outline_get_bitmap","text":"Defined in FT_OUTLINE_H (freetype/ftoutln.h). FT_EXPORT( FT_Error ) FT_Outline_Get_Bitmap ( FT_Library library, FT_Outline * outline, const FT_Bitmap *abitmap ); Render an outline within a bitmap. The outline's image is simply OR-ed to the target bitmap.","title":"FT_Outline_Get_Bitmap"},{"location":"ft2-outline_processing.html#ft_outline_render","text":"Defined in FT_OUTLINE_H (freetype/ftoutln.h). FT_EXPORT( FT_Error ) FT_Outline_Render ( FT_Library library, FT_Outline * outline, FT_Raster_Params * params ); Render an outline within a bitmap using the current scan-convert.","title":"FT_Outline_Render"},{"location":"ft2-outline_processing.html#ft_outline_decompose","text":"Defined in FT_OUTLINE_H (freetype/ftoutln.h). FT_EXPORT( FT_Error ) FT_Outline_Decompose ( FT_Outline * outline, const FT_Outline_Funcs * func_interface, void * user ); Walk over an outline's structure to decompose it into individual segments and Bezier arcs. This function also emits \u2018move to\u2019 operations to indicate the start of new contours in the outline.","title":"FT_Outline_Decompose"},{"location":"ft2-outline_processing.html#ft_outline_funcs","text":"Defined in FT_IMAGE_H (freetype/ftimage.h). typedef struct FT_Outline_Funcs_ { FT_Outline_MoveToFunc move_to; FT_Outline_LineToFunc line_to; FT_Outline_ConicToFunc conic_to; FT_Outline_CubicToFunc cubic_to; int shift; FT_Pos delta; } FT_Outline_Funcs ; A structure to hold various function pointers used during outline decomposition in order to emit segments, conic, and cubic Beziers.","title":"FT_Outline_Funcs"},{"location":"ft2-outline_processing.html#ft_outline_movetofunc","text":"Defined in FT_IMAGE_H (freetype/ftimage.h). typedef int (* FT_Outline_MoveToFunc )( const FT_Vector * to, void * user ); # define FT_Outline_MoveTo_Func FT_Outline_MoveToFunc A function pointer type used to describe the signature of a \u2018move to\u2019 function during outline walking/decomposition. A \u2018move to\u2019 is emitted to start a new contour in an outline.","title":"FT_Outline_MoveToFunc"},{"location":"ft2-outline_processing.html#ft_outline_linetofunc","text":"Defined in FT_IMAGE_H (freetype/ftimage.h). typedef int (* FT_Outline_LineToFunc )( const FT_Vector * to, void * user ); # define FT_Outline_LineTo_Func FT_Outline_LineToFunc A function pointer type used to describe the signature of a \u2018line to\u2019 function during outline walking/decomposition. A \u2018line to\u2019 is emitted to indicate a segment in the outline.","title":"FT_Outline_LineToFunc"},{"location":"ft2-outline_processing.html#ft_outline_conictofunc","text":"Defined in FT_IMAGE_H (freetype/ftimage.h). typedef int (* FT_Outline_ConicToFunc )( const FT_Vector * control, const FT_Vector * to, void * user ); # define FT_Outline_ConicTo_Func FT_Outline_ConicToFunc A function pointer type used to describe the signature of a \u2018conic to\u2019 function during outline walking or decomposition. A \u2018conic to\u2019 is emitted to indicate a second-order Bezier arc in the outline.","title":"FT_Outline_ConicToFunc"},{"location":"ft2-outline_processing.html#ft_outline_cubictofunc","text":"Defined in FT_IMAGE_H (freetype/ftimage.h). typedef int (* FT_Outline_CubicToFunc )( const FT_Vector * control1, const FT_Vector * control2, const FT_Vector * to, void * user ); # define FT_Outline_CubicTo_Func FT_Outline_CubicToFunc A function pointer type used to describe the signature of a \u2018cubic to\u2019 function during outline walking or decomposition. A \u2018cubic to\u2019 is emitted to indicate a third-order Bezier arc.","title":"FT_Outline_CubicToFunc"},{"location":"ft2-outline_processing.html#ft_orientation","text":"Defined in FT_OUTLINE_H (freetype/ftoutln.h). typedef enum FT_Orientation_ { FT_ORIENTATION_TRUETYPE = 0, FT_ORIENTATION_POSTSCRIPT = 1, FT_ORIENTATION_FILL_RIGHT = FT_ORIENTATION_TRUETYPE , FT_ORIENTATION_FILL_LEFT = FT_ORIENTATION_POSTSCRIPT , FT_ORIENTATION_NONE } FT_Orientation ; A list of values used to describe an outline's contour orientation. The TrueType and PostScript specifications use different conventions to determine whether outline contours should be filled or unfilled.","title":"FT_Orientation"},{"location":"ft2-outline_processing.html#ft_outline_get_orientation","text":"Defined in FT_OUTLINE_H (freetype/ftoutln.h). FT_EXPORT( FT_Orientation ) FT_Outline_Get_Orientation ( FT_Outline * outline ); This function analyzes a glyph outline and tries to compute its fill orientation (see FT_Orientation ). This is done by integrating the total area covered by the outline. The positive integral corresponds to the clockwise orientation and FT_ORIENTATION_POSTSCRIPT is returned. The negative integral corresponds to the counter-clockwise orientation and FT_ORIENTATION_TRUETYPE is returned. Note that this will return FT_ORIENTATION_TRUETYPE for empty outlines.","title":"FT_Outline_Get_Orientation"},{"location":"ft2-outline_processing.html#ft_outline_xxx","text":"Defined in FT_IMAGE_H (freetype/ftimage.h). # define FT_OUTLINE_NONE 0x0 # define FT_OUTLINE_OWNER 0x1 # define FT_OUTLINE_EVEN_ODD_FILL 0x2 # define FT_OUTLINE_REVERSE_FILL 0x4 # define FT_OUTLINE_IGNORE_DROPOUTS 0x8 # define FT_OUTLINE_SMART_DROPOUTS 0x10 # define FT_OUTLINE_INCLUDE_STUBS 0x20 # define FT_OUTLINE_OVERLAP 0x40 # define FT_OUTLINE_HIGH_PRECISION 0x100 # define FT_OUTLINE_SINGLE_PASS 0x200 /* these constants are deprecated; use the corresponding */ /* ` FT_OUTLINE_XXX ` values instead */ # define ft_outline_none FT_OUTLINE_NONE # define ft_outline_owner FT_OUTLINE_OWNER # define ft_outline_even_odd_fill FT_OUTLINE_EVEN_ODD_FILL # define ft_outline_reverse_fill FT_OUTLINE_REVERSE_FILL # define ft_outline_ignore_dropouts FT_OUTLINE_IGNORE_DROPOUTS # define ft_outline_high_precision FT_OUTLINE_HIGH_PRECISION # define ft_outline_single_pass FT_OUTLINE_SINGLE_PASS A list of bit-field constants used for the flags in an outline's flags field.","title":"FT_OUTLINE_XXX"},{"location":"ft2-parameter_tags.html","text":"FreeType \u00bb Docs \u00bb Controlling FreeType Modules \u00bb Parameter Tags Parameter Tags \u00b6 Synopsis \u00b6 This section contains macros for the FT_Parameter structure that are used with various functions to activate some special functionality or different behaviour of various components of FreeType. FT_PARAM_TAG_IGNORE_TYPOGRAPHIC_FAMILY \u00b6 # define FT_PARAM_TAG_IGNORE_TYPOGRAPHIC_FAMILY \\ FT_MAKE_TAG ( 'i', 'g', 'p', 'f' ) /* this constant is deprecated */ # define FT_PARAM_TAG_IGNORE_PREFERRED_FAMILY \\ FT_PARAM_TAG_IGNORE_TYPOGRAPHIC_FAMILY A tag for FT_Parameter to make FT_Open_Face ignore typographic family names in the \u2018name\u2019 table (introduced in OpenType version 1.4). Use this for backward compatibility with legacy systems that have a four-faces-per-family restriction. since 2.8 FT_PARAM_TAG_IGNORE_TYPOGRAPHIC_SUBFAMILY \u00b6 # define FT_PARAM_TAG_IGNORE_TYPOGRAPHIC_SUBFAMILY \\ FT_MAKE_TAG ( 'i', 'g', 'p', 's' ) /* this constant is deprecated */ # define FT_PARAM_TAG_IGNORE_PREFERRED_SUBFAMILY \\ FT_PARAM_TAG_IGNORE_TYPOGRAPHIC_SUBFAMILY A tag for FT_Parameter to make FT_Open_Face ignore typographic subfamily names in the \u2018name\u2019 table (introduced in OpenType version 1.4). Use this for backward compatibility with legacy systems that have a four-faces-per-family restriction. since 2.8 FT_PARAM_TAG_INCREMENTAL \u00b6 # define FT_PARAM_TAG_INCREMENTAL \\ FT_MAKE_TAG ( 'i', 'n', 'c', 'r' ) An FT_Parameter tag to be used with FT_Open_Face to indicate incremental glyph loading. FT_PARAM_TAG_LCD_FILTER_WEIGHTS \u00b6 # define FT_PARAM_TAG_LCD_FILTER_WEIGHTS \\ FT_MAKE_TAG ( 'l', 'c', 'd', 'f' ) An FT_Parameter tag to be used with FT_Face_Properties . The corresponding argument specifies the five LCD filter weights for a given face (if using FT_LOAD_TARGET_LCD , for example), overriding the global default values or the values set up with FT_Library_SetLcdFilterWeights . since 2.8 FT_PARAM_TAG_RANDOM_SEED \u00b6 # define FT_PARAM_TAG_RANDOM_SEED \\ FT_MAKE_TAG ( 's', 'e', 'e', 'd' ) An FT_Parameter tag to be used with FT_Face_Properties . The corresponding 32bit signed integer argument overrides the font driver's random seed value with a face-specific one; see random-seed . since 2.8 FT_PARAM_TAG_STEM_DARKENING \u00b6 # define FT_PARAM_TAG_STEM_DARKENING \\ FT_MAKE_TAG ( 'd', 'a', 'r', 'k' ) An FT_Parameter tag to be used with FT_Face_Properties . The corresponding Boolean argument specifies whether to apply stem darkening, overriding the global default values or the values set up with FT_Property_Set (see no-stem-darkening ). This is a passive setting that only takes effect if the font driver or autohinter honors it, which the CFF, Type 1, and CID drivers always do, but the autohinter only in \u2018light\u2019 hinting mode (as of version 2.9). since 2.8 FT_PARAM_TAG_UNPATENTED_HINTING \u00b6 # define FT_PARAM_TAG_UNPATENTED_HINTING \\ FT_MAKE_TAG ( 'u', 'n', 'p', 'a' ) Deprecated, no effect. Previously: A constant used as the tag of an FT_Parameter structure to indicate that unpatented methods only should be used by the TrueType bytecode interpreter for a typeface opened by FT_Open_Face .","title":"Parameter Tags"},{"location":"ft2-parameter_tags.html#parameter-tags","text":"","title":"Parameter Tags"},{"location":"ft2-parameter_tags.html#synopsis","text":"This section contains macros for the FT_Parameter structure that are used with various functions to activate some special functionality or different behaviour of various components of FreeType.","title":"Synopsis"},{"location":"ft2-parameter_tags.html#ft_param_tag_ignore_typographic_family","text":"# define FT_PARAM_TAG_IGNORE_TYPOGRAPHIC_FAMILY \\ FT_MAKE_TAG ( 'i', 'g', 'p', 'f' ) /* this constant is deprecated */ # define FT_PARAM_TAG_IGNORE_PREFERRED_FAMILY \\ FT_PARAM_TAG_IGNORE_TYPOGRAPHIC_FAMILY A tag for FT_Parameter to make FT_Open_Face ignore typographic family names in the \u2018name\u2019 table (introduced in OpenType version 1.4). Use this for backward compatibility with legacy systems that have a four-faces-per-family restriction.","title":"FT_PARAM_TAG_IGNORE_TYPOGRAPHIC_FAMILY"},{"location":"ft2-parameter_tags.html#ft_param_tag_ignore_typographic_subfamily","text":"# define FT_PARAM_TAG_IGNORE_TYPOGRAPHIC_SUBFAMILY \\ FT_MAKE_TAG ( 'i', 'g', 'p', 's' ) /* this constant is deprecated */ # define FT_PARAM_TAG_IGNORE_PREFERRED_SUBFAMILY \\ FT_PARAM_TAG_IGNORE_TYPOGRAPHIC_SUBFAMILY A tag for FT_Parameter to make FT_Open_Face ignore typographic subfamily names in the \u2018name\u2019 table (introduced in OpenType version 1.4). Use this for backward compatibility with legacy systems that have a four-faces-per-family restriction.","title":"FT_PARAM_TAG_IGNORE_TYPOGRAPHIC_SUBFAMILY"},{"location":"ft2-parameter_tags.html#ft_param_tag_incremental","text":"# define FT_PARAM_TAG_INCREMENTAL \\ FT_MAKE_TAG ( 'i', 'n', 'c', 'r' ) An FT_Parameter tag to be used with FT_Open_Face to indicate incremental glyph loading.","title":"FT_PARAM_TAG_INCREMENTAL"},{"location":"ft2-parameter_tags.html#ft_param_tag_lcd_filter_weights","text":"# define FT_PARAM_TAG_LCD_FILTER_WEIGHTS \\ FT_MAKE_TAG ( 'l', 'c', 'd', 'f' ) An FT_Parameter tag to be used with FT_Face_Properties . The corresponding argument specifies the five LCD filter weights for a given face (if using FT_LOAD_TARGET_LCD , for example), overriding the global default values or the values set up with FT_Library_SetLcdFilterWeights .","title":"FT_PARAM_TAG_LCD_FILTER_WEIGHTS"},{"location":"ft2-parameter_tags.html#ft_param_tag_random_seed","text":"# define FT_PARAM_TAG_RANDOM_SEED \\ FT_MAKE_TAG ( 's', 'e', 'e', 'd' ) An FT_Parameter tag to be used with FT_Face_Properties . The corresponding 32bit signed integer argument overrides the font driver's random seed value with a face-specific one; see random-seed .","title":"FT_PARAM_TAG_RANDOM_SEED"},{"location":"ft2-parameter_tags.html#ft_param_tag_stem_darkening","text":"# define FT_PARAM_TAG_STEM_DARKENING \\ FT_MAKE_TAG ( 'd', 'a', 'r', 'k' ) An FT_Parameter tag to be used with FT_Face_Properties . The corresponding Boolean argument specifies whether to apply stem darkening, overriding the global default values or the values set up with FT_Property_Set (see no-stem-darkening ). This is a passive setting that only takes effect if the font driver or autohinter honors it, which the CFF, Type 1, and CID drivers always do, but the autohinter only in \u2018light\u2019 hinting mode (as of version 2.9).","title":"FT_PARAM_TAG_STEM_DARKENING"},{"location":"ft2-parameter_tags.html#ft_param_tag_unpatented_hinting","text":"# define FT_PARAM_TAG_UNPATENTED_HINTING \\ FT_MAKE_TAG ( 'u', 'n', 'p', 'a' ) Deprecated, no effect. Previously: A constant used as the tag of an FT_Parameter structure to indicate that unpatented methods only should be used by the TrueType bytecode interpreter for a typeface opened by FT_Open_Face .","title":"FT_PARAM_TAG_UNPATENTED_HINTING"},{"location":"ft2-pcf_driver.html","text":"FreeType \u00bb Docs \u00bb Controlling FreeType Modules \u00bb The PCF driver The PCF driver \u00b6 Synopsis \u00b6 While FreeType's PCF driver doesn't expose API functions by itself, it is possible to control its behaviour with FT_Property_Set and FT_Property_Get . Right now, there is a single property no-long-family-names available if FreeType is compiled with PCF_CONFIG_OPTION_LONG_FAMILY_NAMES. The PCF driver's module name is \u2018pcf\u2019.","title":"The PCF driver"},{"location":"ft2-pcf_driver.html#the-pcf-driver","text":"","title":"The PCF driver"},{"location":"ft2-pcf_driver.html#synopsis","text":"While FreeType's PCF driver doesn't expose API functions by itself, it is possible to control its behaviour with FT_Property_Set and FT_Property_Get . Right now, there is a single property no-long-family-names available if FreeType is compiled with PCF_CONFIG_OPTION_LONG_FAMILY_NAMES. The PCF driver's module name is \u2018pcf\u2019.","title":"Synopsis"},{"location":"ft2-pfr_fonts.html","text":"FreeType \u00bb Docs \u00bb Format-Specific API \u00bb PFR Fonts PFR Fonts \u00b6 Synopsis \u00b6 This section contains the declaration of PFR-specific functions. FT_Get_PFR_Metrics \u00b6 Defined in FT_PFR_H (freetype/ftpfr.h). FT_EXPORT( FT_Error ) FT_Get_PFR_Metrics ( FT_Face face, FT_UInt *aoutline_resolution, FT_UInt *ametrics_resolution, FT_Fixed *ametrics_x_scale, FT_Fixed *ametrics_y_scale ); Return the outline and metrics resolutions of a given PFR face. input face Handle to the input face. It can be a non-PFR face. output aoutline_resolution Outline resolution. This is equivalent to face->units_per_EM for non-PFR fonts. Optional (parameter can be NULL ). ametrics_resolution Metrics resolution. This is equivalent to outline_resolution for non-PFR fonts. Optional (parameter can be NULL ). ametrics_x_scale A 16.16 fixed-point number used to scale distance expressed in metrics units to device subpixels. This is equivalent to face->size->x_scale , but for metrics only. Optional (parameter can be NULL ). ametrics_y_scale Same as ametrics_x_scale but for the vertical direction. optional (parameter can be NULL ). return FreeType error code. 0 means success. note If the input face is not a PFR, this function will return an error. However, in all cases, it will return valid values. FT_Get_PFR_Kerning \u00b6 Defined in FT_PFR_H (freetype/ftpfr.h). FT_EXPORT( FT_Error ) FT_Get_PFR_Kerning ( FT_Face face, FT_UInt left, FT_UInt right, FT_Vector *avector ); Return the kerning pair corresponding to two glyphs in a PFR face. The distance is expressed in metrics units, unlike the result of FT_Get_Kerning . input face A handle to the input face. left Index of the left glyph. right Index of the right glyph. output avector A kerning vector. return FreeType error code. 0 means success. note This function always return distances in original PFR metrics units. This is unlike FT_Get_Kerning with the FT_KERNING_UNSCALED mode, which always returns distances converted to outline units. You can use the value of the x_scale and y_scale parameters returned by FT_Get_PFR_Metrics to scale these to device subpixels. FT_Get_PFR_Advance \u00b6 Defined in FT_PFR_H (freetype/ftpfr.h). FT_EXPORT( FT_Error ) FT_Get_PFR_Advance ( FT_Face face, FT_UInt gindex, FT_Pos *aadvance ); Return a given glyph advance, expressed in original metrics units, from a PFR font. input face A handle to the input face. gindex The glyph index. output aadvance The glyph advance in metrics units. return FreeType error code. 0 means success. note You can use the x_scale or y_scale results of FT_Get_PFR_Metrics to convert the advance to device subpixels (i.e., 1/64 th of pixels).","title":"PFR Fonts"},{"location":"ft2-pfr_fonts.html#pfr-fonts","text":"","title":"PFR Fonts"},{"location":"ft2-pfr_fonts.html#synopsis","text":"This section contains the declaration of PFR-specific functions.","title":"Synopsis"},{"location":"ft2-pfr_fonts.html#ft_get_pfr_metrics","text":"Defined in FT_PFR_H (freetype/ftpfr.h). FT_EXPORT( FT_Error ) FT_Get_PFR_Metrics ( FT_Face face, FT_UInt *aoutline_resolution, FT_UInt *ametrics_resolution, FT_Fixed *ametrics_x_scale, FT_Fixed *ametrics_y_scale ); Return the outline and metrics resolutions of a given PFR face.","title":"FT_Get_PFR_Metrics"},{"location":"ft2-pfr_fonts.html#ft_get_pfr_kerning","text":"Defined in FT_PFR_H (freetype/ftpfr.h). FT_EXPORT( FT_Error ) FT_Get_PFR_Kerning ( FT_Face face, FT_UInt left, FT_UInt right, FT_Vector *avector ); Return the kerning pair corresponding to two glyphs in a PFR face. The distance is expressed in metrics units, unlike the result of FT_Get_Kerning .","title":"FT_Get_PFR_Kerning"},{"location":"ft2-pfr_fonts.html#ft_get_pfr_advance","text":"Defined in FT_PFR_H (freetype/ftpfr.h). FT_EXPORT( FT_Error ) FT_Get_PFR_Advance ( FT_Face face, FT_UInt gindex, FT_Pos *aadvance ); Return a given glyph advance, expressed in original metrics units, from a PFR font.","title":"FT_Get_PFR_Advance"},{"location":"ft2-preamble.html","text":"FreeType \u00bb Docs \u00bb General Remarks \u00bb Preamble Preamble \u00b6 Synopsis \u00b6 FreeType is a library that provides access to glyphs in font files. It scales the glyph images and their metrics to a requested size, and it rasterizes the glyph images to produce pixel or subpixel alpha coverage bitmaps. Note that FreeType is not a text layout engine. You have to use higher-level libraries like HarfBuzz, Pango, or ICU for that. Note also that FreeType does not perform alpha blending or compositing the resulting bitmaps or pixmaps by itself. Use your favourite graphics library (for example, Cairo or Skia) to further process FreeType's output.","title":"Preamble"},{"location":"ft2-preamble.html#preamble","text":"","title":"Preamble"},{"location":"ft2-preamble.html#synopsis","text":"FreeType is a library that provides access to glyphs in font files. It scales the glyph images and their metrics to a requested size, and it rasterizes the glyph images to produce pixel or subpixel alpha coverage bitmaps. Note that FreeType is not a text layout engine. You have to use higher-level libraries like HarfBuzz, Pango, or ICU for that. Note also that FreeType does not perform alpha blending or compositing the resulting bitmaps or pixmaps by itself. Use your favourite graphics library (for example, Cairo or Skia) to further process FreeType's output.","title":"Synopsis"},{"location":"ft2-properties.html","text":"FreeType \u00bb Docs \u00bb Controlling FreeType Modules \u00bb Driver properties Driver properties \u00b6 Synopsis \u00b6 Driver modules can be controlled by setting and unsetting properties, using the functions FT_Property_Set and FT_Property_Get . This section documents the available properties, together with auxiliary macros and structures. FT_HINTING_XXX \u00b6 Defined in FT_DRIVER_H (freetype/ftdriver.h). # define FT_HINTING_FREETYPE 0 # define FT_HINTING_ADOBE 1 /* these constants (introduced in 2.4.12) are deprecated */ # define FT_CFF_HINTING_FREETYPE FT_HINTING_FREETYPE # define FT_CFF_HINTING_ADOBE FT_HINTING_ADOBE A list of constants used for the hinting-engine property to select the hinting engine for CFF, Type 1, and CID fonts. values FT_HINTING_FREETYPE Use the old FreeType hinting engine. FT_HINTING_ADOBE Use the hinting engine contributed by Adobe. since 2.9 hinting-engine \u00b6 Thanks to Adobe, which contributed a new hinting (and parsing) engine, an application can select between \u2018freetype\u2019 and \u2018adobe\u2019 if compiled with CFF_CONFIG_OPTION_OLD_ENGINE . If this configuration macro isn't defined, \u2018hinting-engine\u2019 does nothing. The same holds for the Type 1 and CID modules if compiled with T1_CONFIG_OPTION_OLD_ENGINE . For the \u2018cff\u2019 module, the default engine is \u2018adobe\u2019. For both the \u2018type1\u2019 and \u2018t1cid\u2019 modules, the default engine is \u2018adobe\u2019, too. note This property can be used with FT_Property_Get also. This property can be set via the FREETYPE_PROPERTIES environment variable (using values \u2018adobe\u2019 or \u2018freetype\u2019). example The following example code demonstrates how to select Adobe's hinting engine for the \u2018cff\u2019 module (omitting the error handling). FT_Library library; FT_UInt hinting_engine = FT_HINTING_ADOBE; FT_Init_FreeType( &library ); FT_Property_Set( library, \"cff\", \"hinting-engine\", &hinting_engine ); since 2.4.12 (for \u2018cff\u2019 module) 2.9 (for \u2018type1\u2019 and \u2018t1cid\u2019 modules) no-stem-darkening \u00b6 All glyphs that pass through the auto-hinter will be emboldened unless this property is set to TRUE. The same is true for the CFF, Type 1, and CID font modules if the \u2018Adobe\u2019 engine is selected (which is the default). Stem darkening emboldens glyphs at smaller sizes to make them more readable on common low-DPI screens when using linear alpha blending and gamma correction, see FT_Render_Glyph . When not using linear alpha blending and gamma correction, glyphs will appear heavy and fuzzy! Gamma correction essentially lightens fonts since shades of grey are shifted to higher pixel values (= higher brightness) to match the original intention to the reality of our screens. The side-effect is that glyphs \u2018thin out\u2019. Mac OS X and Adobe's proprietary font rendering library implement a counter-measure: stem darkening at smaller sizes where shades of gray dominate. By emboldening a glyph slightly in relation to its pixel size, individual pixels get higher coverage of filled-in outlines and are therefore \u2018blacker\u2019. This counteracts the \u2018thinning out\u2019 of glyphs, making text remain readable at smaller sizes. For the auto-hinter, stem-darkening is experimental currently and thus switched off by default (this is, no-stem-darkening is set to TRUE by default). Total consistency with the CFF driver is not achieved right now because the emboldening method differs and glyphs must be scaled down on the Y-axis to keep outline points inside their precomputed blue zones. The smaller the size (especially 9ppem and down), the higher the loss of emboldening versus the CFF driver. Note that stem darkening is never applied if FT_LOAD_NO_SCALE is set. note This property can be used with FT_Property_Get also. This property can be set via the FREETYPE_PROPERTIES environment variable (using values 1 and 0 for \u2018on\u2019 and \u2018off\u2019, respectively). It can also be set per face using FT_Face_Properties with FT_PARAM_TAG_STEM_DARKENING . example FT_Library library; FT_Bool no_stem_darkening = TRUE; FT_Init_FreeType( &library ); FT_Property_Set( library, \"cff\", \"no-stem-darkening\", &no_stem_darkening ); since 2.4.12 (for \u2018cff\u2019 module) 2.6.2 (for \u2018autofitter\u2019 module) 2.9 (for \u2018type1\u2019 and \u2018t1cid\u2019 modules) darkening-parameters \u00b6 By default, the Adobe hinting engine, as used by the CFF, Type 1, and CID font drivers, darkens stems as follows (if the no-stem-darkening property isn't set): stem width <= 0.5px: darkening amount = 0.4px stem width = 1px: darkening amount = 0.275px stem width = 1.667px: darkening amount = 0.275px stem width >= 2.333px: darkening amount = 0px and piecewise linear in-between. At configuration time, these four control points can be set with the macro CFF_CONFIG_OPTION_DARKENING_PARAMETERS ; the CFF, Type 1, and CID drivers share these values. At runtime, the control points can be changed using the darkening-parameters property (see the example below that demonstrates this for the Type 1 driver). The x values give the stem width, and the y values the darkening amount. The unit is 1000 th of pixels. All coordinate values must be positive; the x values must be monotonically increasing; the y values must be monotonically decreasing and smaller than or equal to 500 (corresponding to half a pixel); the slope of each linear piece must be shallower than -1 (e.g., -.4). The auto-hinter provides this property, too, as an experimental feature. See no-stem-darkening for more. note This property can be used with FT_Property_Get also. This property can be set via the FREETYPE_PROPERTIES environment variable, using eight comma-separated integers without spaces. Here the above example, using \\ to break the line for readability. FREETYPE_PROPERTIES=\\ type1:darkening-parameters=500,300,1000,200,1500,100,2000,0 example FT_Library library; FT_Int darken_params[8] = { 500, 300, // x1, y1 1000, 200, // x2, y2 1500, 100, // x3, y3 2000, 0 }; // x4, y4 FT_Init_FreeType( &library ); FT_Property_Set( library, \"type1\", \"darkening-parameters\", darken_params ); since 2.5.1 (for \u2018cff\u2019 module) 2.6.2 (for \u2018autofitter\u2019 module) 2.9 (for \u2018type1\u2019 and \u2018t1cid\u2019 modules) random-seed \u00b6 By default, the seed value for the CFF \u2018random\u2019 operator and the similar \u20180 28 callothersubr pop\u2019 command for the Type 1 and CID drivers is set to a random value. However, mainly for debugging purposes, it is often necessary to use a known value as a seed so that the pseudo-random number sequences generated by \u2018random\u2019 are repeatable. The random-seed property does that. Its argument is a signed 32bit integer; if the value is zero or negative, the seed given by the intitialRandomSeed private DICT operator in a CFF file gets used (or a default value if there is no such operator). If the value is positive, use it instead of initialRandomSeed , which is consequently ignored. note This property can be set via the FREETYPE_PROPERTIES environment variable. It can also be set per face using FT_Face_Properties with FT_PARAM_TAG_RANDOM_SEED . since 2.8 (for \u2018cff\u2019 module) 2.9 (for \u2018type1\u2019 and \u2018t1cid\u2019 modules) no-long-family-names \u00b6 If PCF_CONFIG_OPTION_LONG_FAMILY_NAMES is active while compiling FreeType, the PCF driver constructs long family names. There are many PCF fonts just called \u2018Fixed\u2019 which look completely different, and which have nothing to do with each other. When selecting \u2018Fixed\u2019 in KDE or Gnome one gets results that appear rather random, the style changes often if one changes the size and one cannot select some fonts at all. The improve this situation, the PCF module prepends the foundry name (plus a space) to the family name. It also checks whether there are \u2018wide\u2019 characters; all put together, family names like \u2018Sony Fixed\u2019 or \u2018Misc Fixed Wide\u2019 are constructed. If no-long-family-names is set, this feature gets switched off. note This property can be used with FT_Property_Get also. This property can be set via the FREETYPE_PROPERTIES environment variable (using values 1 and 0 for \u2018on\u2019 and \u2018off\u2019, respectively). example FT_Library library; FT_Bool no_long_family_names = TRUE; FT_Init_FreeType( &library ); FT_Property_Set( library, \"pcf\", \"no-long-family-names\", &no_long_family_names ); since 2.8 TT_INTERPRETER_VERSION_XXX \u00b6 Defined in FT_DRIVER_H (freetype/ftdriver.h). # define TT_INTERPRETER_VERSION_35 35 # define TT_INTERPRETER_VERSION_38 38 # define TT_INTERPRETER_VERSION_40 40 A list of constants used for the interpreter-version property to select the hinting engine for Truetype fonts. The numeric value in the constant names represents the version number as returned by the \u2018GETINFO\u2019 bytecode instruction. values TT_INTERPRETER_VERSION_35 Version 35 corresponds to MS rasterizer v.1.7 as used e.g. in Windows 98; only grayscale and B/W rasterizing is supported. TT_INTERPRETER_VERSION_38 Version 38 corresponds to MS rasterizer v.1.9; it is roughly equivalent to the hinting provided by DirectWrite ClearType (as can be found, for example, in the Internet Explorer 9 running on Windows 7). It is used in FreeType to select the \u2018Infinality\u2019 subpixel hinting code. The code may be removed in a future version. TT_INTERPRETER_VERSION_40 Version 40 corresponds to MS rasterizer v.2.1; it is roughly equivalent to the hinting provided by DirectWrite ClearType (as can be found, for example, in Microsoft's Edge Browser on Windows 10). It is used in FreeType to select the \u2018minimal\u2019 subpixel hinting code, a stripped-down and higher performance version of the \u2018Infinality\u2019 code. note This property controls the behaviour of the bytecode interpreter and thus how outlines get hinted. It does not control how glyph get rasterized! In particular, it does not control subpixel color filtering. If FreeType has not been compiled with the configuration option TT_CONFIG_OPTION_SUBPIXEL_HINTING , selecting version 38 or 40 causes an FT_Err_Unimplemented_Feature error. Depending on the graphics framework, Microsoft uses different bytecode and rendering engines. As a consequence, the version numbers returned by a call to the \u2018GETINFO\u2019 bytecode instruction are more convoluted than desired. Here are two tables that try to shed some light on the possible values for the MS rasterizer engine, together with the additional features introduced by it. GETINFO framework version feature ------------------------------------------------------------------- 3 GDI (Win 3.1), v1.0 16-bit, first version TrueImage 33 GDI (Win NT 3.1), v1.5 32-bit HP Laserjet 34 GDI (Win 95) v1.6 font smoothing, new SCANTYPE opcode 35 GDI (Win 98/2000) v1.7 (UN)SCALED_COMPONENT_OFFSET bits in composite glyphs 36 MGDI (Win CE 2) v1.6+ classic ClearType 37 GDI (XP and later), v1.8 ClearType GDI+ old (before Vista) 38 GDI+ old (Vista, Win 7), v1.9 subpixel ClearType, WPF Y-direction ClearType, additional error checking 39 DWrite (before Win 8) v2.0 subpixel ClearType flags in GETINFO opcode, bug fixes 40 GDI+ (after Win 7), v2.1 Y-direction ClearType flag DWrite (Win 8) in GETINFO opcode, Gray ClearType The \u2018version\u2019 field gives a rough orientation only, since some applications provided certain features much earlier (as an example, Microsoft Reader used subpixel and Y-direction ClearType already in Windows 2000). Similarly, updates to a given framework might include improved hinting support. version sampling rendering comment x y x y -------------------------------------------------------------- v1.0 normal normal B/W B/W bi-level v1.6 high high gray gray grayscale v1.8 high normal color-filter B/W (GDI) ClearType v1.9 high high color-filter gray Color ClearType v2.1 high normal gray B/W Gray ClearType v2.1 high high gray gray Gray ClearType Color and Gray ClearType are the two available variants of \u2018Y-direction ClearType\u2019, meaning grayscale rasterization along the Y-direction; the name used in the TrueType specification for this feature is \u2018symmetric smoothing\u2019. \u2018Classic ClearType\u2019 is the original algorithm used before introducing a modified version in Win XP. Another name for v1.6's grayscale rendering is \u2018font smoothing\u2019, and \u2018Color ClearType\u2019 is sometimes also called \u2018DWrite ClearType\u2019. To differentiate between today's Color ClearType and the earlier ClearType variant with B/W rendering along the vertical axis, the latter is sometimes called \u2018GDI ClearType\u2019. \u2018Normal\u2019 and \u2018high\u2019 sampling describe the (virtual) resolution to access the rasterized outline after the hinting process. \u2018Normal\u2019 means 1 sample per grid line (i.e., B/W). In the current Microsoft implementation, \u2018high\u2019 means an extra virtual resolution of 16x16 (or 16x1) grid lines per pixel for bytecode instructions like \u2018MIRP\u2019. After hinting, these 16 grid lines are mapped to 6x5 (or 6x1) grid lines for color filtering if Color ClearType is activated. Note that \u2018Gray ClearType\u2019 is essentially the same as v1.6's grayscale rendering. However, the GETINFO instruction handles it differently: v1.6 returns bit 12 (hinting for grayscale), while v2.1 returns bits 13 (hinting for ClearType), 18 (symmetrical smoothing), and 19 (Gray ClearType). Also, this mode respects bits 2 and 3 for the version 1 gasp table exclusively (like Color ClearType), while v1.6 only respects the values of version 0 (bits 0 and 1). Keep in mind that the features of the above interpreter versions might not map exactly to FreeType features or behavior because it is a fundamentally different library with different internals. interpreter-version \u00b6 Currently, three versions are available, two representing the bytecode interpreter with subpixel hinting support (old \u2018Infinality\u2019 code and new stripped-down and higher performance \u2018minimal\u2019 code) and one without, respectively. The default is subpixel support if TT_CONFIG_OPTION_SUBPIXEL_HINTING is defined, and no subpixel support otherwise (since it isn't available then). If subpixel hinting is on, many TrueType bytecode instructions behave differently compared to B/W or grayscale rendering (except if \u2018native ClearType\u2019 is selected by the font). Microsoft's main idea is to render at a much increased horizontal resolution, then sampling down the created output to subpixel precision. However, many older fonts are not suited to this and must be specially taken care of by applying (hardcoded) tweaks in Microsoft's interpreter. Details on subpixel hinting and some of the necessary tweaks can be found in Greg Hitchcock's whitepaper at \u2018 https://www.microsoft.com/typography/cleartype/truetypecleartype.aspx \u2019. Note that FreeType currently doesn't really \u2018subpixel hint\u2019 (6x1, 6x2, or 6x5 supersampling) like discussed in the paper. Depending on the chosen interpreter, it simply ignores instructions on vertical stems to arrive at very similar results. note This property can be used with FT_Property_Get also. This property can be set via the FREETYPE_PROPERTIES environment variable (using values \u201835\u2019, \u201838\u2019, or \u201840\u2019). example The following example code demonstrates how to deactivate subpixel hinting (omitting the error handling). FT_Library library; FT_Face face; FT_UInt interpreter_version = TT_INTERPRETER_VERSION_35; FT_Init_FreeType( &library ); FT_Property_Set( library, \"truetype\", \"interpreter-version\", &interpreter_version ); since 2.5 glyph-to-script-map \u00b6 Experimental only The auto-hinter provides various script modules to hint glyphs. Examples of supported scripts are Latin or CJK. Before a glyph is auto-hinted, the Unicode character map of the font gets examined, and the script is then determined based on Unicode character ranges, see below. OpenType fonts, however, often provide much more glyphs than character codes (small caps, superscripts, ligatures, swashes, etc.), to be controlled by so-called \u2018features\u2019. Handling OpenType features can be quite complicated and thus needs a separate library on top of FreeType. The mapping between glyph indices and scripts (in the auto-hinter sense, see the FT_AUTOHINTER_SCRIPT_XXX values) is stored as an array with num_glyphs elements, as found in the font's FT_Face structure. The glyph-to-script-map property returns a pointer to this array, which can be modified as needed. Note that the modification should happen before the first glyph gets processed by the auto-hinter so that the global analysis of the font shapes actually uses the modified mapping. example The following example code demonstrates how to access it (omitting the error handling). FT_Library library; FT_Face face; FT_Prop_GlyphToScriptMap prop; FT_Init_FreeType( &library ); FT_New_Face( library, \"foo.ttf\", 0, &face ); prop.face = face; FT_Property_Get( library, \"autofitter\", \"glyph-to-script-map\", &prop ); // adjust `prop.map' as needed right here FT_Load_Glyph( face, ..., FT_LOAD_FORCE_AUTOHINT ); since 2.4.11 FT_AUTOHINTER_SCRIPT_XXX \u00b6 Defined in FT_DRIVER_H (freetype/ftdriver.h). # define FT_AUTOHINTER_SCRIPT_NONE 0 # define FT_AUTOHINTER_SCRIPT_LATIN 1 # define FT_AUTOHINTER_SCRIPT_CJK 2 # define FT_AUTOHINTER_SCRIPT_INDIC 3 Experimental only A list of constants used for the glyph-to-script-map property to specify the script submodule the auto-hinter should use for hinting a particular glyph. values FT_AUTOHINTER_SCRIPT_NONE Don't auto-hint this glyph. FT_AUTOHINTER_SCRIPT_LATIN Apply the latin auto-hinter. For the auto-hinter, \u2018latin\u2019 is a very broad term, including Cyrillic and Greek also since characters from those scripts share the same design constraints. By default, characters from the following Unicode ranges are assigned to this submodule. U+0020 - U+007F // Basic Latin (no control characters) U+00A0 - U+00FF // Latin-1 Supplement (no control characters) U+0100 - U+017F // Latin Extended-A U+0180 - U+024F // Latin Extended-B U+0250 - U+02AF // IPA Extensions U+02B0 - U+02FF // Spacing Modifier Letters U+0300 - U+036F // Combining Diacritical Marks U+0370 - U+03FF // Greek and Coptic U+0400 - U+04FF // Cyrillic U+0500 - U+052F // Cyrillic Supplement U+1D00 - U+1D7F // Phonetic Extensions U+1D80 - U+1DBF // Phonetic Extensions Supplement U+1DC0 - U+1DFF // Combining Diacritical Marks Supplement U+1E00 - U+1EFF // Latin Extended Additional U+1F00 - U+1FFF // Greek Extended U+2000 - U+206F // General Punctuation U+2070 - U+209F // Superscripts and Subscripts U+20A0 - U+20CF // Currency Symbols U+2150 - U+218F // Number Forms U+2460 - U+24FF // Enclosed Alphanumerics U+2C60 - U+2C7F // Latin Extended-C U+2DE0 - U+2DFF // Cyrillic Extended-A U+2E00 - U+2E7F // Supplemental Punctuation U+A640 - U+A69F // Cyrillic Extended-B U+A720 - U+A7FF // Latin Extended-D U+FB00 - U+FB06 // Alphab. Present. Forms (Latin Ligatures) U+1D400 - U+1D7FF // Mathematical Alphanumeric Symbols U+1F100 - U+1F1FF // Enclosed Alphanumeric Supplement FT_AUTOHINTER_SCRIPT_CJK Apply the CJK auto-hinter, covering Chinese, Japanese, Korean, old Vietnamese, and some other scripts. By default, characters from the following Unicode ranges are assigned to this submodule. U+1100 - U+11FF // Hangul Jamo U+2E80 - U+2EFF // CJK Radicals Supplement U+2F00 - U+2FDF // Kangxi Radicals U+2FF0 - U+2FFF // Ideographic Description Characters U+3000 - U+303F // CJK Symbols and Punctuation U+3040 - U+309F // Hiragana U+30A0 - U+30FF // Katakana U+3100 - U+312F // Bopomofo U+3130 - U+318F // Hangul Compatibility Jamo U+3190 - U+319F // Kanbun U+31A0 - U+31BF // Bopomofo Extended U+31C0 - U+31EF // CJK Strokes U+31F0 - U+31FF // Katakana Phonetic Extensions U+3200 - U+32FF // Enclosed CJK Letters and Months U+3300 - U+33FF // CJK Compatibility U+3400 - U+4DBF // CJK Unified Ideographs Extension A U+4DC0 - U+4DFF // Yijing Hexagram Symbols U+4E00 - U+9FFF // CJK Unified Ideographs U+A960 - U+A97F // Hangul Jamo Extended-A U+AC00 - U+D7AF // Hangul Syllables U+D7B0 - U+D7FF // Hangul Jamo Extended-B U+F900 - U+FAFF // CJK Compatibility Ideographs U+FE10 - U+FE1F // Vertical forms U+FE30 - U+FE4F // CJK Compatibility Forms U+FF00 - U+FFEF // Halfwidth and Fullwidth Forms U+1B000 - U+1B0FF // Kana Supplement U+1D300 - U+1D35F // Tai Xuan Hing Symbols U+1F200 - U+1F2FF // Enclosed Ideographic Supplement U+20000 - U+2A6DF // CJK Unified Ideographs Extension B U+2A700 - U+2B73F // CJK Unified Ideographs Extension C U+2B740 - U+2B81F // CJK Unified Ideographs Extension D U+2F800 - U+2FA1F // CJK Compatibility Ideographs Supplement FT_AUTOHINTER_SCRIPT_INDIC Apply the indic auto-hinter, covering all major scripts from the Indian sub-continent and some other related scripts like Thai, Lao, or Tibetan. By default, characters from the following Unicode ranges are assigned to this submodule. U+0900 - U+0DFF // Indic Range U+0F00 - U+0FFF // Tibetan U+1900 - U+194F // Limbu U+1B80 - U+1BBF // Sundanese U+A800 - U+A82F // Syloti Nagri U+ABC0 - U+ABFF // Meetei Mayek U+11800 - U+118DF // Sharada Note that currently Indic support is rudimentary only, missing blue zone support. since 2.4.11 FT_Prop_GlyphToScriptMap \u00b6 Defined in FT_DRIVER_H (freetype/ftdriver.h). typedef struct FT_Prop_GlyphToScriptMap_ { FT_Face face; FT_UShort * map; } FT_Prop_GlyphToScriptMap ; Experimental only The data exchange structure for the glyph-to-script-map property. since 2.4.11 fallback-script \u00b6 Experimental only If no auto-hinter script module can be assigned to a glyph, a fallback script gets assigned to it (see also the glyph-to-script-map property). By default, this is FT_AUTOHINTER_SCRIPT_CJK . Using the fallback-script property, this fallback value can be changed. note This property can be used with FT_Property_Get also. It's important to use the right timing for changing this value: The creation of the glyph-to-script map that eventually uses the fallback script value gets triggered either by setting or reading a face-specific property like glyph-to-script-map , or by auto-hinting any glyph from that face. In particular, if you have already created an FT_Face structure but not loaded any glyph (using the auto-hinter), a change of the fallback script will affect this face. example FT_Library library; FT_UInt fallback_script = FT_AUTOHINTER_SCRIPT_NONE; FT_Init_FreeType( &library ); FT_Property_Set( library, \"autofitter\", \"fallback-script\", &fallback_script ); since 2.4.11 default-script \u00b6 Experimental only If FreeType gets compiled with FT_CONFIG_OPTION_USE_HARFBUZZ to make the HarfBuzz library access OpenType features for getting better glyph coverages, this property sets the (auto-fitter) script to be used for the default (OpenType) script data of a font's GSUB table. Features for the default script are intended for all scripts not explicitly handled in GSUB; an example is a \u2018dlig\u2019 feature, containing the combination of the characters \u2018T\u2019, \u2018E\u2019, and \u2018L\u2019 to form a \u2018TEL\u2019 ligature. By default, this is FT_AUTOHINTER_SCRIPT_LATIN . Using the default-script property, this default value can be changed. note This property can be used with FT_Property_Get also. It's important to use the right timing for changing this value: The creation of the glyph-to-script map that eventually uses the default script value gets triggered either by setting or reading a face-specific property like glyph-to-script-map , or by auto-hinting any glyph from that face. In particular, if you have already created an FT_Face structure but not loaded any glyph (using the auto-hinter), a change of the default script will affect this face. example FT_Library library; FT_UInt default_script = FT_AUTOHINTER_SCRIPT_NONE; FT_Init_FreeType( &library ); FT_Property_Set( library, \"autofitter\", \"default-script\", &default_script ); since 2.5.3 increase-x-height \u00b6 For ppem values in the range 6 <= ppem <= increase-x-height , round up the font's x height much more often than normally. If the value is set to 0, which is the default, this feature is switched off. Use this property to improve the legibility of small font sizes if necessary. note This property can be used with FT_Property_Get also. Set this value right after calling FT_Set_Char_Size , but before loading any glyph (using the auto-hinter). example FT_Library library; FT_Face face; FT_Prop_IncreaseXHeight prop; FT_Init_FreeType( &library ); FT_New_Face( library, \"foo.ttf\", 0, &face ); FT_Set_Char_Size( face, 10 * 64, 0, 72, 0 ); prop.face = face; prop.limit = 14; FT_Property_Set( library, \"autofitter\", \"increase-x-height\", &prop ); since 2.4.11 FT_Prop_IncreaseXHeight \u00b6 Defined in FT_DRIVER_H (freetype/ftdriver.h). typedef struct FT_Prop_IncreaseXHeight_ { FT_Face face; FT_UInt limit; } FT_Prop_IncreaseXHeight ; The data exchange structure for the increase-x-height property. warping \u00b6 Obsolete This property was always experimental and probably never worked correctly. It was entirely removed from the FreeType 2 sources. This entry is only here for historical reference. Warping only worked in \u2018normal\u2019 auto-hinting mode replacing it. The idea of the code was to slightly scale and shift a glyph along the non-hinted dimension (which is usually the horizontal axis) so that as much of its segments were aligned (more or less) to the grid. To find out a glyph's optimal scaling and shifting value, various parameter combinations were tried and scored. since 2.6","title":"Driver properties"},{"location":"ft2-properties.html#driver-properties","text":"","title":"Driver properties"},{"location":"ft2-properties.html#synopsis","text":"Driver modules can be controlled by setting and unsetting properties, using the functions FT_Property_Set and FT_Property_Get . This section documents the available properties, together with auxiliary macros and structures.","title":"Synopsis"},{"location":"ft2-properties.html#ft_hinting_xxx","text":"Defined in FT_DRIVER_H (freetype/ftdriver.h). # define FT_HINTING_FREETYPE 0 # define FT_HINTING_ADOBE 1 /* these constants (introduced in 2.4.12) are deprecated */ # define FT_CFF_HINTING_FREETYPE FT_HINTING_FREETYPE # define FT_CFF_HINTING_ADOBE FT_HINTING_ADOBE A list of constants used for the hinting-engine property to select the hinting engine for CFF, Type 1, and CID fonts.","title":"FT_HINTING_XXX"},{"location":"ft2-properties.html#hinting-engine","text":"Thanks to Adobe, which contributed a new hinting (and parsing) engine, an application can select between \u2018freetype\u2019 and \u2018adobe\u2019 if compiled with CFF_CONFIG_OPTION_OLD_ENGINE . If this configuration macro isn't defined, \u2018hinting-engine\u2019 does nothing. The same holds for the Type 1 and CID modules if compiled with T1_CONFIG_OPTION_OLD_ENGINE . For the \u2018cff\u2019 module, the default engine is \u2018adobe\u2019. For both the \u2018type1\u2019 and \u2018t1cid\u2019 modules, the default engine is \u2018adobe\u2019, too.","title":"hinting-engine"},{"location":"ft2-properties.html#no-stem-darkening","text":"All glyphs that pass through the auto-hinter will be emboldened unless this property is set to TRUE. The same is true for the CFF, Type 1, and CID font modules if the \u2018Adobe\u2019 engine is selected (which is the default). Stem darkening emboldens glyphs at smaller sizes to make them more readable on common low-DPI screens when using linear alpha blending and gamma correction, see FT_Render_Glyph . When not using linear alpha blending and gamma correction, glyphs will appear heavy and fuzzy! Gamma correction essentially lightens fonts since shades of grey are shifted to higher pixel values (= higher brightness) to match the original intention to the reality of our screens. The side-effect is that glyphs \u2018thin out\u2019. Mac OS X and Adobe's proprietary font rendering library implement a counter-measure: stem darkening at smaller sizes where shades of gray dominate. By emboldening a glyph slightly in relation to its pixel size, individual pixels get higher coverage of filled-in outlines and are therefore \u2018blacker\u2019. This counteracts the \u2018thinning out\u2019 of glyphs, making text remain readable at smaller sizes. For the auto-hinter, stem-darkening is experimental currently and thus switched off by default (this is, no-stem-darkening is set to TRUE by default). Total consistency with the CFF driver is not achieved right now because the emboldening method differs and glyphs must be scaled down on the Y-axis to keep outline points inside their precomputed blue zones. The smaller the size (especially 9ppem and down), the higher the loss of emboldening versus the CFF driver. Note that stem darkening is never applied if FT_LOAD_NO_SCALE is set.","title":"no-stem-darkening"},{"location":"ft2-properties.html#darkening-parameters","text":"By default, the Adobe hinting engine, as used by the CFF, Type 1, and CID font drivers, darkens stems as follows (if the no-stem-darkening property isn't set): stem width <= 0.5px: darkening amount = 0.4px stem width = 1px: darkening amount = 0.275px stem width = 1.667px: darkening amount = 0.275px stem width >= 2.333px: darkening amount = 0px and piecewise linear in-between. At configuration time, these four control points can be set with the macro CFF_CONFIG_OPTION_DARKENING_PARAMETERS ; the CFF, Type 1, and CID drivers share these values. At runtime, the control points can be changed using the darkening-parameters property (see the example below that demonstrates this for the Type 1 driver). The x values give the stem width, and the y values the darkening amount. The unit is 1000 th of pixels. All coordinate values must be positive; the x values must be monotonically increasing; the y values must be monotonically decreasing and smaller than or equal to 500 (corresponding to half a pixel); the slope of each linear piece must be shallower than -1 (e.g., -.4). The auto-hinter provides this property, too, as an experimental feature. See no-stem-darkening for more.","title":"darkening-parameters"},{"location":"ft2-properties.html#random-seed","text":"By default, the seed value for the CFF \u2018random\u2019 operator and the similar \u20180 28 callothersubr pop\u2019 command for the Type 1 and CID drivers is set to a random value. However, mainly for debugging purposes, it is often necessary to use a known value as a seed so that the pseudo-random number sequences generated by \u2018random\u2019 are repeatable. The random-seed property does that. Its argument is a signed 32bit integer; if the value is zero or negative, the seed given by the intitialRandomSeed private DICT operator in a CFF file gets used (or a default value if there is no such operator). If the value is positive, use it instead of initialRandomSeed , which is consequently ignored.","title":"random-seed"},{"location":"ft2-properties.html#no-long-family-names","text":"If PCF_CONFIG_OPTION_LONG_FAMILY_NAMES is active while compiling FreeType, the PCF driver constructs long family names. There are many PCF fonts just called \u2018Fixed\u2019 which look completely different, and which have nothing to do with each other. When selecting \u2018Fixed\u2019 in KDE or Gnome one gets results that appear rather random, the style changes often if one changes the size and one cannot select some fonts at all. The improve this situation, the PCF module prepends the foundry name (plus a space) to the family name. It also checks whether there are \u2018wide\u2019 characters; all put together, family names like \u2018Sony Fixed\u2019 or \u2018Misc Fixed Wide\u2019 are constructed. If no-long-family-names is set, this feature gets switched off.","title":"no-long-family-names"},{"location":"ft2-properties.html#tt_interpreter_version_xxx","text":"Defined in FT_DRIVER_H (freetype/ftdriver.h). # define TT_INTERPRETER_VERSION_35 35 # define TT_INTERPRETER_VERSION_38 38 # define TT_INTERPRETER_VERSION_40 40 A list of constants used for the interpreter-version property to select the hinting engine for Truetype fonts. The numeric value in the constant names represents the version number as returned by the \u2018GETINFO\u2019 bytecode instruction.","title":"TT_INTERPRETER_VERSION_XXX"},{"location":"ft2-properties.html#interpreter-version","text":"Currently, three versions are available, two representing the bytecode interpreter with subpixel hinting support (old \u2018Infinality\u2019 code and new stripped-down and higher performance \u2018minimal\u2019 code) and one without, respectively. The default is subpixel support if TT_CONFIG_OPTION_SUBPIXEL_HINTING is defined, and no subpixel support otherwise (since it isn't available then). If subpixel hinting is on, many TrueType bytecode instructions behave differently compared to B/W or grayscale rendering (except if \u2018native ClearType\u2019 is selected by the font). Microsoft's main idea is to render at a much increased horizontal resolution, then sampling down the created output to subpixel precision. However, many older fonts are not suited to this and must be specially taken care of by applying (hardcoded) tweaks in Microsoft's interpreter. Details on subpixel hinting and some of the necessary tweaks can be found in Greg Hitchcock's whitepaper at \u2018 https://www.microsoft.com/typography/cleartype/truetypecleartype.aspx \u2019. Note that FreeType currently doesn't really \u2018subpixel hint\u2019 (6x1, 6x2, or 6x5 supersampling) like discussed in the paper. Depending on the chosen interpreter, it simply ignores instructions on vertical stems to arrive at very similar results.","title":"interpreter-version"},{"location":"ft2-properties.html#glyph-to-script-map","text":"Experimental only The auto-hinter provides various script modules to hint glyphs. Examples of supported scripts are Latin or CJK. Before a glyph is auto-hinted, the Unicode character map of the font gets examined, and the script is then determined based on Unicode character ranges, see below. OpenType fonts, however, often provide much more glyphs than character codes (small caps, superscripts, ligatures, swashes, etc.), to be controlled by so-called \u2018features\u2019. Handling OpenType features can be quite complicated and thus needs a separate library on top of FreeType. The mapping between glyph indices and scripts (in the auto-hinter sense, see the FT_AUTOHINTER_SCRIPT_XXX values) is stored as an array with num_glyphs elements, as found in the font's FT_Face structure. The glyph-to-script-map property returns a pointer to this array, which can be modified as needed. Note that the modification should happen before the first glyph gets processed by the auto-hinter so that the global analysis of the font shapes actually uses the modified mapping.","title":"glyph-to-script-map"},{"location":"ft2-properties.html#ft_autohinter_script_xxx","text":"Defined in FT_DRIVER_H (freetype/ftdriver.h). # define FT_AUTOHINTER_SCRIPT_NONE 0 # define FT_AUTOHINTER_SCRIPT_LATIN 1 # define FT_AUTOHINTER_SCRIPT_CJK 2 # define FT_AUTOHINTER_SCRIPT_INDIC 3 Experimental only A list of constants used for the glyph-to-script-map property to specify the script submodule the auto-hinter should use for hinting a particular glyph.","title":"FT_AUTOHINTER_SCRIPT_XXX"},{"location":"ft2-properties.html#ft_prop_glyphtoscriptmap","text":"Defined in FT_DRIVER_H (freetype/ftdriver.h). typedef struct FT_Prop_GlyphToScriptMap_ { FT_Face face; FT_UShort * map; } FT_Prop_GlyphToScriptMap ; Experimental only The data exchange structure for the glyph-to-script-map property.","title":"FT_Prop_GlyphToScriptMap"},{"location":"ft2-properties.html#fallback-script","text":"Experimental only If no auto-hinter script module can be assigned to a glyph, a fallback script gets assigned to it (see also the glyph-to-script-map property). By default, this is FT_AUTOHINTER_SCRIPT_CJK . Using the fallback-script property, this fallback value can be changed.","title":"fallback-script"},{"location":"ft2-properties.html#default-script","text":"Experimental only If FreeType gets compiled with FT_CONFIG_OPTION_USE_HARFBUZZ to make the HarfBuzz library access OpenType features for getting better glyph coverages, this property sets the (auto-fitter) script to be used for the default (OpenType) script data of a font's GSUB table. Features for the default script are intended for all scripts not explicitly handled in GSUB; an example is a \u2018dlig\u2019 feature, containing the combination of the characters \u2018T\u2019, \u2018E\u2019, and \u2018L\u2019 to form a \u2018TEL\u2019 ligature. By default, this is FT_AUTOHINTER_SCRIPT_LATIN . Using the default-script property, this default value can be changed.","title":"default-script"},{"location":"ft2-properties.html#increase-x-height","text":"For ppem values in the range 6 <= ppem <= increase-x-height , round up the font's x height much more often than normally. If the value is set to 0, which is the default, this feature is switched off. Use this property to improve the legibility of small font sizes if necessary.","title":"increase-x-height"},{"location":"ft2-properties.html#ft_prop_increasexheight","text":"Defined in FT_DRIVER_H (freetype/ftdriver.h). typedef struct FT_Prop_IncreaseXHeight_ { FT_Face face; FT_UInt limit; } FT_Prop_IncreaseXHeight ; The data exchange structure for the increase-x-height property.","title":"FT_Prop_IncreaseXHeight"},{"location":"ft2-properties.html#warping","text":"Obsolete This property was always experimental and probably never worked correctly. It was entirely removed from the FreeType 2 sources. This entry is only here for historical reference. Warping only worked in \u2018normal\u2019 auto-hinting mode replacing it. The idea of the code was to slightly scale and shift a glyph along the non-hinted dimension (which is usually the horizontal axis) so that as much of its segments were aligned (more or less) to the grid. To find out a glyph's optimal scaling and shifting value, various parameter combinations were tried and scored.","title":"warping"},{"location":"ft2-quick_advance.html","text":"FreeType \u00bb Docs \u00bb Support API \u00bb Quick retrieval of advance values Quick retrieval of advance values \u00b6 Synopsis \u00b6 This section contains functions to quickly extract advance values without handling glyph outlines, if possible. FT_Get_Advance \u00b6 Defined in FT_ADVANCES_H (freetype/ftadvanc.h). FT_EXPORT( FT_Error ) FT_Get_Advance ( FT_Face face, FT_UInt gindex, FT_Int32 load_flags, FT_Fixed *padvance ); Retrieve the advance value of a given glyph outline in an FT_Face . input face The source FT_Face handle. gindex The glyph index. load_flags A set of bit flags similar to those used when calling FT_Load_Glyph , used to determine what kind of advances you need. output padvance The advance value. If scaling is performed (based on the value of load_flags ), the advance value is in 16.16 format. Otherwise, it is in font units. If FT_LOAD_VERTICAL_LAYOUT is set, this is the vertical advance corresponding to a vertical layout. Otherwise, it is the horizontal advance in a horizontal layout. return FreeType error code. 0 means success. note This function may fail if you use FT_ADVANCE_FLAG_FAST_ONLY and if the corresponding font backend doesn't have a quick way to retrieve the advances. A scaled advance is returned in 16.16 format but isn't transformed by the affine transformation specified by FT_Set_Transform . FT_Get_Advances \u00b6 Defined in FT_ADVANCES_H (freetype/ftadvanc.h). FT_EXPORT( FT_Error ) FT_Get_Advances ( FT_Face face, FT_UInt start, FT_UInt count, FT_Int32 load_flags, FT_Fixed *padvances ); Retrieve the advance values of several glyph outlines in an FT_Face . input face The source FT_Face handle. start The first glyph index. count The number of advance values you want to retrieve. load_flags A set of bit flags similar to those used when calling FT_Load_Glyph . output padvance The advance values. This array, to be provided by the caller, must contain at least count elements. If scaling is performed (based on the value of load_flags ), the advance values are in 16.16 format. Otherwise, they are in font units. If FT_LOAD_VERTICAL_LAYOUT is set, these are the vertical advances corresponding to a vertical layout. Otherwise, they are the horizontal advances in a horizontal layout. return FreeType error code. 0 means success. note This function may fail if you use FT_ADVANCE_FLAG_FAST_ONLY and if the corresponding font backend doesn't have a quick way to retrieve the advances. Scaled advances are returned in 16.16 format but aren't transformed by the affine transformation specified by FT_Set_Transform . FT_ADVANCE_FLAG_FAST_ONLY \u00b6 Defined in FT_ADVANCES_H (freetype/ftadvanc.h). # define FT_ADVANCE_FLAG_FAST_ONLY 0x20000000L A bit-flag to be OR-ed with the flags parameter of the FT_Get_Advance and FT_Get_Advances functions. If set, it indicates that you want these functions to fail if the corresponding hinting mode or font driver doesn't allow for very quick advance computation. Typically, glyphs that are either unscaled, unhinted, bitmapped, or light-hinted can have their advance width computed very quickly. Normal and bytecode hinted modes that require loading, scaling, and hinting of the glyph outline, are extremely slow by comparison.","title":"Quick retrieval of advance values"},{"location":"ft2-quick_advance.html#quick-retrieval-of-advance-values","text":"","title":"Quick retrieval of advance values"},{"location":"ft2-quick_advance.html#synopsis","text":"This section contains functions to quickly extract advance values without handling glyph outlines, if possible.","title":"Synopsis"},{"location":"ft2-quick_advance.html#ft_get_advance","text":"Defined in FT_ADVANCES_H (freetype/ftadvanc.h). FT_EXPORT( FT_Error ) FT_Get_Advance ( FT_Face face, FT_UInt gindex, FT_Int32 load_flags, FT_Fixed *padvance ); Retrieve the advance value of a given glyph outline in an FT_Face .","title":"FT_Get_Advance"},{"location":"ft2-quick_advance.html#ft_get_advances","text":"Defined in FT_ADVANCES_H (freetype/ftadvanc.h). FT_EXPORT( FT_Error ) FT_Get_Advances ( FT_Face face, FT_UInt start, FT_UInt count, FT_Int32 load_flags, FT_Fixed *padvances ); Retrieve the advance values of several glyph outlines in an FT_Face .","title":"FT_Get_Advances"},{"location":"ft2-quick_advance.html#ft_advance_flag_fast_only","text":"Defined in FT_ADVANCES_H (freetype/ftadvanc.h). # define FT_ADVANCE_FLAG_FAST_ONLY 0x20000000L A bit-flag to be OR-ed with the flags parameter of the FT_Get_Advance and FT_Get_Advances functions. If set, it indicates that you want these functions to fail if the corresponding hinting mode or font driver doesn't allow for very quick advance computation. Typically, glyphs that are either unscaled, unhinted, bitmapped, or light-hinted can have their advance width computed very quickly. Normal and bytecode hinted modes that require loading, scaling, and hinting of the glyph outline, are extremely slow by comparison.","title":"FT_ADVANCE_FLAG_FAST_ONLY"},{"location":"ft2-raster.html","text":"FreeType \u00bb Docs \u00bb Support API \u00bb Scanline Converter Scanline Converter \u00b6 Synopsis \u00b6 A raster or a rasterizer is a scan converter in charge of producing a pixel coverage bitmap that can be used as an alpha channel when compositing a glyph with a background. FreeType comes with two rasterizers: bilevel raster1 and anti-aliased smooth are two separate modules. They are usually called from the high-level FT_Load_Glyph or FT_Render_Glyph functions and produce the entire coverage bitmap at once, while staying largely invisible to users. Instead of working with complete coverage bitmaps, it is also possible to intercept consecutive pixel runs on the same scanline with the same coverage, called spans , and process them individually. Only the smooth rasterizer permits this when calling FT_Outline_Render with FT_Raster_Params as described below. Working with either complete bitmaps or spans it is important to think of them as colorless coverage objects suitable as alpha channels to blend arbitrary colors with a background. For best results, it is recommended to use gamma correction, too. This section also describes the public API needed to set up alternative FT_Renderer modules. FT_Span \u00b6 Defined in FT_IMAGE_H (freetype/ftimage.h). typedef struct FT_Span_ { short x; unsigned short len; unsigned char coverage; } FT_Span ; A structure to model a single span of consecutive pixels when rendering an anti-aliased bitmap. fields x The span's horizontal start position. len The span's length in pixels. coverage The span color/coverage, ranging from 0 (background) to 255 (foreground). note This structure is used by the span drawing callback type named FT_SpanFunc that takes the y coordinate of the span as a parameter. The anti-aliased rasterizer produces coverage values from 0 to 255, this is, from completely transparent to completely opaque. FT_SpanFunc \u00b6 Defined in FT_IMAGE_H (freetype/ftimage.h). typedef void (* FT_SpanFunc )( int y, int count, const FT_Span * spans, void * user ); # define FT_Raster_Span_Func FT_SpanFunc A function used as a call-back by the anti-aliased renderer in order to let client applications draw themselves the pixel spans on each scan line. input y The scanline's upward y coordinate. count The number of spans to draw on this scanline. spans A table of count spans to draw on the scanline. user User-supplied data that is passed to the callback. note This callback allows client applications to directly render the spans of the anti-aliased bitmap to any kind of surfaces. This can be used to write anti-aliased outlines directly to a given background bitmap using alpha compositing. It can also be used for oversampling and averaging. FT_Raster_Params \u00b6 Defined in FT_IMAGE_H (freetype/ftimage.h). typedef struct FT_Raster_Params_ { const FT_Bitmap * target; const void * source; int flags; FT_SpanFunc gray_spans; FT_SpanFunc black_spans; /* unused */ FT_Raster_BitTest_Func bit_test; /* unused */ FT_Raster_BitSet_Func bit_set; /* unused */ void * user; FT_BBox clip_box; } FT_Raster_Params ; A structure to hold the parameters used by a raster's render function, passed as an argument to FT_Outline_Render . fields target The target bitmap. source A pointer to the source glyph image (e.g., an FT_Outline ). flags The rendering flags. gray_spans The gray span drawing callback. black_spans Unused. bit_test Unused. bit_set Unused. user User-supplied data that is passed to each drawing callback. clip_box An optional span clipping box expressed in integer pixels (not in 26.6 fixed-point units). note The FT_RASTER_FLAG_AA bit flag must be set in the flags to generate an anti-aliased glyph bitmap, otherwise a monochrome bitmap is generated. The target should have appropriate pixel mode and its dimensions define the clipping region. If both FT_RASTER_FLAG_AA and FT_RASTER_FLAG_DIRECT bit flags are set in flags , the raster calls an FT_SpanFunc callback gray_spans with user data as an argument ignoring target . This allows direct composition over a pre-existing user surface to perform the span drawing and composition. To optionally clip the spans, set the FT_RASTER_FLAG_CLIP flag and clip_box . The monochrome raster does not support the direct mode. The gray-level rasterizer always uses 256 gray levels. If you want fewer gray levels, you have to use FT_RASTER_FLAG_DIRECT and reduce the levels in the callback function. FT_RASTER_FLAG_XXX \u00b6 Defined in FT_IMAGE_H (freetype/ftimage.h). # define FT_RASTER_FLAG_DEFAULT 0x0 # define FT_RASTER_FLAG_AA 0x1 # define FT_RASTER_FLAG_DIRECT 0x2 # define FT_RASTER_FLAG_CLIP 0x4 # define FT_RASTER_FLAG_SDF 0x8 /* these constants are deprecated; use the corresponding */ /* ` FT_RASTER_FLAG_XXX ` values instead */ # define ft_raster_flag_default FT_RASTER_FLAG_DEFAULT # define ft_raster_flag_aa FT_RASTER_FLAG_AA # define ft_raster_flag_direct FT_RASTER_FLAG_DIRECT # define ft_raster_flag_clip FT_RASTER_FLAG_CLIP A list of bit flag constants as used in the flags field of a FT_Raster_Params structure. values FT_RASTER_FLAG_DEFAULT This value is 0. FT_RASTER_FLAG_AA This flag is set to indicate that an anti-aliased glyph image should be generated. Otherwise, it will be monochrome (1-bit). FT_RASTER_FLAG_DIRECT This flag is set to indicate direct rendering. In this mode, client applications must provide their own span callback. This lets them directly draw or compose over an existing bitmap. If this bit is not set, the target pixmap's buffer must be zeroed before rendering and the output will be clipped to its size. Direct rendering is only possible with anti-aliased glyphs. FT_RASTER_FLAG_CLIP This flag is only used in direct rendering mode. If set, the output will be clipped to a box specified in the clip_box field of the FT_Raster_Params structure. Otherwise, the clip_box is effectively set to the bounding box and all spans are generated. FT_RASTER_FLAG_SDF This flag is set to indicate that a signed distance field glyph image should be generated. This is only used while rendering with the FT_RENDER_MODE_SDF render mode. FT_Raster \u00b6 Defined in FT_IMAGE_H (freetype/ftimage.h). typedef struct FT_RasterRec_* FT_Raster ; An opaque handle (pointer) to a raster object. Each object can be used independently to convert an outline into a bitmap or pixmap. note In FreeType 2, all rasters are now encapsulated within specific FT_Renderer modules and only used in their context. FT_Raster_NewFunc \u00b6 Defined in FT_IMAGE_H (freetype/ftimage.h). typedef int (* FT_Raster_NewFunc )( void * memory, FT_Raster * raster ); # define FT_Raster_New_Func FT_Raster_NewFunc A function used to create a new raster object. input memory A handle to the memory allocator. output raster A handle to the new raster object. return Error code. 0 means success. note The memory parameter is a typeless pointer in order to avoid un-wanted dependencies on the rest of the FreeType code. In practice, it is an FT_Memory object, i.e., a handle to the standard FreeType memory allocator. However, this field can be completely ignored by a given raster implementation. FT_Raster_DoneFunc \u00b6 Defined in FT_IMAGE_H (freetype/ftimage.h). typedef void (* FT_Raster_DoneFunc )( FT_Raster raster ); # define FT_Raster_Done_Func FT_Raster_DoneFunc A function used to destroy a given raster object. input raster A handle to the raster object. FT_Raster_ResetFunc \u00b6 Defined in FT_IMAGE_H (freetype/ftimage.h). typedef void (* FT_Raster_ResetFunc )( FT_Raster raster, unsigned char * pool_base, unsigned long pool_size ); # define FT_Raster_Reset_Func FT_Raster_ResetFunc FreeType used to provide an area of memory called the \u2018render pool\u2019 available to all registered rasterizers. This was not thread safe, however, and now FreeType never allocates this pool. This function is called after a new raster object is created. input raster A handle to the new raster object. pool_base Previously, the address in memory of the render pool. Set this to NULL . pool_size Previously, the size in bytes of the render pool. Set this to 0. note Rasterizers should rely on dynamic or stack allocation if they want to (a handle to the memory allocator is passed to the rasterizer constructor). FT_Raster_SetModeFunc \u00b6 Defined in FT_IMAGE_H (freetype/ftimage.h). typedef int (* FT_Raster_SetModeFunc )( FT_Raster raster, unsigned long mode, void * args ); # define FT_Raster_Set_Mode_Func FT_Raster_SetModeFunc This function is a generic facility to change modes or attributes in a given raster. This can be used for debugging purposes, or simply to allow implementation-specific \u2018features\u2019 in a given raster module. input raster A handle to the new raster object. mode A 4-byte tag used to name the mode or property. args A pointer to the new mode/property to use. FT_Raster_RenderFunc \u00b6 Defined in FT_IMAGE_H (freetype/ftimage.h). typedef int (* FT_Raster_RenderFunc )( FT_Raster raster, const FT_Raster_Params * params ); # define FT_Raster_Render_Func FT_Raster_RenderFunc Invoke a given raster to scan-convert a given glyph image into a target bitmap. input raster A handle to the raster object. params A pointer to an FT_Raster_Params structure used to store the rendering parameters. return Error code. 0 means success. note The exact format of the source image depends on the raster's glyph format defined in its FT_Raster_Funcs structure. It can be an FT_Outline or anything else in order to support a large array of glyph formats. Note also that the render function can fail and return a FT_Err_Unimplemented_Feature error code if the raster used does not support direct composition. FT_Raster_Funcs \u00b6 Defined in FT_IMAGE_H (freetype/ftimage.h). typedef struct FT_Raster_Funcs_ { FT_Glyph_Format glyph_format; FT_Raster_NewFunc raster_new; FT_Raster_ResetFunc raster_reset; FT_Raster_SetModeFunc raster_set_mode; FT_Raster_RenderFunc raster_render; FT_Raster_DoneFunc raster_done; } FT_Raster_Funcs ; A structure used to describe a given raster class to the library. fields glyph_format The supported glyph format for this raster. raster_new The raster constructor. raster_reset Used to reset the render pool within the raster. raster_render A function to render a glyph into a given bitmap. raster_done The raster destructor. FT_Raster_BitTest_Func \u00b6 Defined in FT_IMAGE_H (freetype/ftimage.h). typedef int (* FT_Raster_BitTest_Func )( int y, int x, void * user ); Deprecated, unimplemented. FT_Raster_BitSet_Func \u00b6 Defined in FT_IMAGE_H (freetype/ftimage.h). typedef void (* FT_Raster_BitSet_Func )( int y, int x, void * user ); Deprecated, unimplemented.","title":"Scanline Converter"},{"location":"ft2-raster.html#scanline-converter","text":"","title":"Scanline Converter"},{"location":"ft2-raster.html#synopsis","text":"A raster or a rasterizer is a scan converter in charge of producing a pixel coverage bitmap that can be used as an alpha channel when compositing a glyph with a background. FreeType comes with two rasterizers: bilevel raster1 and anti-aliased smooth are two separate modules. They are usually called from the high-level FT_Load_Glyph or FT_Render_Glyph functions and produce the entire coverage bitmap at once, while staying largely invisible to users. Instead of working with complete coverage bitmaps, it is also possible to intercept consecutive pixel runs on the same scanline with the same coverage, called spans , and process them individually. Only the smooth rasterizer permits this when calling FT_Outline_Render with FT_Raster_Params as described below. Working with either complete bitmaps or spans it is important to think of them as colorless coverage objects suitable as alpha channels to blend arbitrary colors with a background. For best results, it is recommended to use gamma correction, too. This section also describes the public API needed to set up alternative FT_Renderer modules.","title":"Synopsis"},{"location":"ft2-raster.html#ft_span","text":"Defined in FT_IMAGE_H (freetype/ftimage.h). typedef struct FT_Span_ { short x; unsigned short len; unsigned char coverage; } FT_Span ; A structure to model a single span of consecutive pixels when rendering an anti-aliased bitmap.","title":"FT_Span"},{"location":"ft2-raster.html#ft_spanfunc","text":"Defined in FT_IMAGE_H (freetype/ftimage.h). typedef void (* FT_SpanFunc )( int y, int count, const FT_Span * spans, void * user ); # define FT_Raster_Span_Func FT_SpanFunc A function used as a call-back by the anti-aliased renderer in order to let client applications draw themselves the pixel spans on each scan line.","title":"FT_SpanFunc"},{"location":"ft2-raster.html#ft_raster_params","text":"Defined in FT_IMAGE_H (freetype/ftimage.h). typedef struct FT_Raster_Params_ { const FT_Bitmap * target; const void * source; int flags; FT_SpanFunc gray_spans; FT_SpanFunc black_spans; /* unused */ FT_Raster_BitTest_Func bit_test; /* unused */ FT_Raster_BitSet_Func bit_set; /* unused */ void * user; FT_BBox clip_box; } FT_Raster_Params ; A structure to hold the parameters used by a raster's render function, passed as an argument to FT_Outline_Render .","title":"FT_Raster_Params"},{"location":"ft2-raster.html#ft_raster_flag_xxx","text":"Defined in FT_IMAGE_H (freetype/ftimage.h). # define FT_RASTER_FLAG_DEFAULT 0x0 # define FT_RASTER_FLAG_AA 0x1 # define FT_RASTER_FLAG_DIRECT 0x2 # define FT_RASTER_FLAG_CLIP 0x4 # define FT_RASTER_FLAG_SDF 0x8 /* these constants are deprecated; use the corresponding */ /* ` FT_RASTER_FLAG_XXX ` values instead */ # define ft_raster_flag_default FT_RASTER_FLAG_DEFAULT # define ft_raster_flag_aa FT_RASTER_FLAG_AA # define ft_raster_flag_direct FT_RASTER_FLAG_DIRECT # define ft_raster_flag_clip FT_RASTER_FLAG_CLIP A list of bit flag constants as used in the flags field of a FT_Raster_Params structure.","title":"FT_RASTER_FLAG_XXX"},{"location":"ft2-raster.html#ft_raster","text":"Defined in FT_IMAGE_H (freetype/ftimage.h). typedef struct FT_RasterRec_* FT_Raster ; An opaque handle (pointer) to a raster object. Each object can be used independently to convert an outline into a bitmap or pixmap.","title":"FT_Raster"},{"location":"ft2-raster.html#ft_raster_newfunc","text":"Defined in FT_IMAGE_H (freetype/ftimage.h). typedef int (* FT_Raster_NewFunc )( void * memory, FT_Raster * raster ); # define FT_Raster_New_Func FT_Raster_NewFunc A function used to create a new raster object.","title":"FT_Raster_NewFunc"},{"location":"ft2-raster.html#ft_raster_donefunc","text":"Defined in FT_IMAGE_H (freetype/ftimage.h). typedef void (* FT_Raster_DoneFunc )( FT_Raster raster ); # define FT_Raster_Done_Func FT_Raster_DoneFunc A function used to destroy a given raster object.","title":"FT_Raster_DoneFunc"},{"location":"ft2-raster.html#ft_raster_resetfunc","text":"Defined in FT_IMAGE_H (freetype/ftimage.h). typedef void (* FT_Raster_ResetFunc )( FT_Raster raster, unsigned char * pool_base, unsigned long pool_size ); # define FT_Raster_Reset_Func FT_Raster_ResetFunc FreeType used to provide an area of memory called the \u2018render pool\u2019 available to all registered rasterizers. This was not thread safe, however, and now FreeType never allocates this pool. This function is called after a new raster object is created.","title":"FT_Raster_ResetFunc"},{"location":"ft2-raster.html#ft_raster_setmodefunc","text":"Defined in FT_IMAGE_H (freetype/ftimage.h). typedef int (* FT_Raster_SetModeFunc )( FT_Raster raster, unsigned long mode, void * args ); # define FT_Raster_Set_Mode_Func FT_Raster_SetModeFunc This function is a generic facility to change modes or attributes in a given raster. This can be used for debugging purposes, or simply to allow implementation-specific \u2018features\u2019 in a given raster module.","title":"FT_Raster_SetModeFunc"},{"location":"ft2-raster.html#ft_raster_renderfunc","text":"Defined in FT_IMAGE_H (freetype/ftimage.h). typedef int (* FT_Raster_RenderFunc )( FT_Raster raster, const FT_Raster_Params * params ); # define FT_Raster_Render_Func FT_Raster_RenderFunc Invoke a given raster to scan-convert a given glyph image into a target bitmap.","title":"FT_Raster_RenderFunc"},{"location":"ft2-raster.html#ft_raster_funcs","text":"Defined in FT_IMAGE_H (freetype/ftimage.h). typedef struct FT_Raster_Funcs_ { FT_Glyph_Format glyph_format; FT_Raster_NewFunc raster_new; FT_Raster_ResetFunc raster_reset; FT_Raster_SetModeFunc raster_set_mode; FT_Raster_RenderFunc raster_render; FT_Raster_DoneFunc raster_done; } FT_Raster_Funcs ; A structure used to describe a given raster class to the library.","title":"FT_Raster_Funcs"},{"location":"ft2-raster.html#ft_raster_bittest_func","text":"Defined in FT_IMAGE_H (freetype/ftimage.h). typedef int (* FT_Raster_BitTest_Func )( int y, int x, void * user ); Deprecated, unimplemented.","title":"FT_Raster_BitTest_Func"},{"location":"ft2-raster.html#ft_raster_bitset_func","text":"Defined in FT_IMAGE_H (freetype/ftimage.h). typedef void (* FT_Raster_BitSet_Func )( int y, int x, void * user ); Deprecated, unimplemented.","title":"FT_Raster_BitSet_Func"},{"location":"ft2-sfnt_names.html","text":"FreeType \u00bb Docs \u00bb Format-Specific API \u00bb SFNT Names SFNT Names \u00b6 Synopsis \u00b6 The TrueType and OpenType specifications allow the inclusion of a special names table (\u2018name\u2019) in font files. This table contains textual (and internationalized) information regarding the font, like family name, copyright, version, etc. The definitions below are used to access them if available. Note that this has nothing to do with glyph names! FT_SfntName \u00b6 Defined in FT_SFNT_NAMES_H (freetype/ftsnames.h). typedef struct FT_SfntName_ { FT_UShort platform_id; FT_UShort encoding_id; FT_UShort language_id; FT_UShort name_id; FT_Byte * string; /* this string is *not* null-terminated! */ FT_UInt string_len; /* in bytes */ } FT_SfntName ; A structure used to model an SFNT \u2018name\u2019 table entry. fields platform_id The platform ID for string . See TT_PLATFORM_XXX for possible values. encoding_id The encoding ID for string . See TT_APPLE_ID_XXX , TT_MAC_ID_XXX , TT_ISO_ID_XXX , TT_MS_ID_XXX , and TT_ADOBE_ID_XXX for possible values. language_id The language ID for string . See TT_MAC_LANGID_XXX and TT_MS_LANGID_XXX for possible values. Registered OpenType values for language_id are always smaller than 0x8000; values equal or larger than 0x8000 usually indicate a language tag string (introduced in OpenType version 1.6). Use function FT_Get_Sfnt_LangTag with language_id as its argument to retrieve the associated language tag. name_id An identifier for string . See TT_NAME_ID_XXX for possible values. string The \u2018name\u2019 string. Note that its format differs depending on the (platform,encoding) pair, being either a string of bytes (without a terminating NULL byte) or containing UTF-16BE entities. string_len The length of string in bytes. note Please refer to the TrueType or OpenType specification for more details. FT_Get_Sfnt_Name_Count \u00b6 Defined in FT_SFNT_NAMES_H (freetype/ftsnames.h). FT_EXPORT( FT_UInt ) FT_Get_Sfnt_Name_Count ( FT_Face face ); Retrieve the number of name strings in the SFNT \u2018name\u2019 table. input face A handle to the source face. return The number of strings in the \u2018name\u2019 table. note This function always returns an error if the config macro TT_CONFIG_OPTION_SFNT_NAMES is not defined in ftoption.h . FT_Get_Sfnt_Name \u00b6 Defined in FT_SFNT_NAMES_H (freetype/ftsnames.h). FT_EXPORT( FT_Error ) FT_Get_Sfnt_Name ( FT_Face face, FT_UInt idx, FT_SfntName *aname ); Retrieve a string of the SFNT \u2018name\u2019 table for a given index. input face A handle to the source face. idx The index of the \u2018name\u2019 string. output aname The indexed FT_SfntName structure. return FreeType error code. 0 means success. note The string array returned in the aname structure is not null-terminated. Note that you don't have to deallocate string by yourself; FreeType takes care of it if you call FT_Done_Face . Use FT_Get_Sfnt_Name_Count to get the total number of available \u2018name\u2019 table entries, then do a loop until you get the right platform, encoding, and name ID. \u2018name\u2019 table format 1 entries can use language tags also, see FT_Get_Sfnt_LangTag . This function always returns an error if the config macro TT_CONFIG_OPTION_SFNT_NAMES is not defined in ftoption.h . FT_SfntLangTag \u00b6 Defined in FT_SFNT_NAMES_H (freetype/ftsnames.h). typedef struct FT_SfntLangTag_ { FT_Byte * string; /* this string is *not* null-terminated! */ FT_UInt string_len; /* in bytes */ } FT_SfntLangTag ; A structure to model a language tag entry from an SFNT \u2018name\u2019 table. fields string The language tag string, encoded in UTF-16BE (without trailing NULL bytes). string_len The length of string in bytes . note Please refer to the TrueType or OpenType specification for more details. since 2.8 FT_Get_Sfnt_LangTag \u00b6 Defined in FT_SFNT_NAMES_H (freetype/ftsnames.h). FT_EXPORT( FT_Error ) FT_Get_Sfnt_LangTag ( FT_Face face, FT_UInt langID, FT_SfntLangTag *alangTag ); Retrieve the language tag associated with a language ID of an SFNT \u2018name\u2019 table entry. input face A handle to the source face. langID The language ID, as returned by FT_Get_Sfnt_Name . This is always a value larger than 0x8000. output alangTag The language tag associated with the \u2018name\u2019 table entry's language ID. return FreeType error code. 0 means success. note The string array returned in the alangTag structure is not null-terminated. Note that you don't have to deallocate string by yourself; FreeType takes care of it if you call FT_Done_Face . Only \u2018name\u2019 table format 1 supports language tags. For format 0 tables, this function always returns FT_Err_Invalid_Table. For invalid format 1 language ID values, FT_Err_Invalid_Argument is returned. This function always returns an error if the config macro TT_CONFIG_OPTION_SFNT_NAMES is not defined in ftoption.h . since 2.8","title":"SFNT Names"},{"location":"ft2-sfnt_names.html#sfnt-names","text":"","title":"SFNT Names"},{"location":"ft2-sfnt_names.html#synopsis","text":"The TrueType and OpenType specifications allow the inclusion of a special names table (\u2018name\u2019) in font files. This table contains textual (and internationalized) information regarding the font, like family name, copyright, version, etc. The definitions below are used to access them if available. Note that this has nothing to do with glyph names!","title":"Synopsis"},{"location":"ft2-sfnt_names.html#ft_sfntname","text":"Defined in FT_SFNT_NAMES_H (freetype/ftsnames.h). typedef struct FT_SfntName_ { FT_UShort platform_id; FT_UShort encoding_id; FT_UShort language_id; FT_UShort name_id; FT_Byte * string; /* this string is *not* null-terminated! */ FT_UInt string_len; /* in bytes */ } FT_SfntName ; A structure used to model an SFNT \u2018name\u2019 table entry.","title":"FT_SfntName"},{"location":"ft2-sfnt_names.html#ft_get_sfnt_name_count","text":"Defined in FT_SFNT_NAMES_H (freetype/ftsnames.h). FT_EXPORT( FT_UInt ) FT_Get_Sfnt_Name_Count ( FT_Face face ); Retrieve the number of name strings in the SFNT \u2018name\u2019 table.","title":"FT_Get_Sfnt_Name_Count"},{"location":"ft2-sfnt_names.html#ft_get_sfnt_name","text":"Defined in FT_SFNT_NAMES_H (freetype/ftsnames.h). FT_EXPORT( FT_Error ) FT_Get_Sfnt_Name ( FT_Face face, FT_UInt idx, FT_SfntName *aname ); Retrieve a string of the SFNT \u2018name\u2019 table for a given index.","title":"FT_Get_Sfnt_Name"},{"location":"ft2-sfnt_names.html#ft_sfntlangtag","text":"Defined in FT_SFNT_NAMES_H (freetype/ftsnames.h). typedef struct FT_SfntLangTag_ { FT_Byte * string; /* this string is *not* null-terminated! */ FT_UInt string_len; /* in bytes */ } FT_SfntLangTag ; A structure to model a language tag entry from an SFNT \u2018name\u2019 table.","title":"FT_SfntLangTag"},{"location":"ft2-sfnt_names.html#ft_get_sfnt_langtag","text":"Defined in FT_SFNT_NAMES_H (freetype/ftsnames.h). FT_EXPORT( FT_Error ) FT_Get_Sfnt_LangTag ( FT_Face face, FT_UInt langID, FT_SfntLangTag *alangTag ); Retrieve the language tag associated with a language ID of an SFNT \u2018name\u2019 table entry.","title":"FT_Get_Sfnt_LangTag"},{"location":"ft2-sizes_management.html","text":"FreeType \u00bb Docs \u00bb Core API \u00bb Size Management Size Management \u00b6 Synopsis \u00b6 When creating a new face object (e.g., with FT_New_Face ), an FT_Size object is automatically created and used to store all pixel-size dependent information, available in the face->size field. It is however possible to create more sizes for a given face, mostly in order to manage several character pixel sizes of the same font family and style. See FT_New_Size and FT_Done_Size . Note that FT_Set_Pixel_Sizes and FT_Set_Char_Size only modify the contents of the current \u2018active\u2019 size; you thus need to use FT_Activate_Size to change it. 99% of applications won't need the functions provided here, especially if they use the caching sub-system, so be cautious when using these. FT_New_Size \u00b6 Defined in FT_SIZES_H (freetype/ftsizes.h). FT_EXPORT( FT_Error ) FT_New_Size ( FT_Face face, FT_Size * size ); Create a new size object from a given face object. input face A handle to a parent face object. output asize A handle to a new size object. return FreeType error code. 0 means success. note You need to call FT_Activate_Size in order to select the new size for upcoming calls to FT_Set_Pixel_Sizes , FT_Set_Char_Size , FT_Load_Glyph , FT_Load_Char , etc. FT_Done_Size \u00b6 Defined in FT_SIZES_H (freetype/ftsizes.h). FT_EXPORT( FT_Error ) FT_Done_Size ( FT_Size size ); Discard a given size object. Note that FT_Done_Face automatically discards all size objects allocated with FT_New_Size . input size A handle to a target size object. return FreeType error code. 0 means success. FT_Activate_Size \u00b6 Defined in FT_SIZES_H (freetype/ftsizes.h). FT_EXPORT( FT_Error ) FT_Activate_Size ( FT_Size size ); Even though it is possible to create several size objects for a given face (see FT_New_Size for details), functions like FT_Load_Glyph or FT_Load_Char only use the one that has been activated last to determine the \u2018current character pixel size\u2019. This function can be used to \u2018activate\u2019 a previously created size object. input size A handle to a target size object. return FreeType error code. 0 means success. note If face is the size's parent face object, this function changes the value of face->size to the input size handle.","title":"Size Management"},{"location":"ft2-sizes_management.html#size-management","text":"","title":"Size Management"},{"location":"ft2-sizes_management.html#synopsis","text":"When creating a new face object (e.g., with FT_New_Face ), an FT_Size object is automatically created and used to store all pixel-size dependent information, available in the face->size field. It is however possible to create more sizes for a given face, mostly in order to manage several character pixel sizes of the same font family and style. See FT_New_Size and FT_Done_Size . Note that FT_Set_Pixel_Sizes and FT_Set_Char_Size only modify the contents of the current \u2018active\u2019 size; you thus need to use FT_Activate_Size to change it. 99% of applications won't need the functions provided here, especially if they use the caching sub-system, so be cautious when using these.","title":"Synopsis"},{"location":"ft2-sizes_management.html#ft_new_size","text":"Defined in FT_SIZES_H (freetype/ftsizes.h). FT_EXPORT( FT_Error ) FT_New_Size ( FT_Face face, FT_Size * size ); Create a new size object from a given face object.","title":"FT_New_Size"},{"location":"ft2-sizes_management.html#ft_done_size","text":"Defined in FT_SIZES_H (freetype/ftsizes.h). FT_EXPORT( FT_Error ) FT_Done_Size ( FT_Size size ); Discard a given size object. Note that FT_Done_Face automatically discards all size objects allocated with FT_New_Size .","title":"FT_Done_Size"},{"location":"ft2-sizes_management.html#ft_activate_size","text":"Defined in FT_SIZES_H (freetype/ftsizes.h). FT_EXPORT( FT_Error ) FT_Activate_Size ( FT_Size size ); Even though it is possible to create several size objects for a given face (see FT_New_Size for details), functions like FT_Load_Glyph or FT_Load_Char only use the one that has been activated last to determine the \u2018current character pixel size\u2019. This function can be used to \u2018activate\u2019 a previously created size object.","title":"FT_Activate_Size"},{"location":"ft2-system_interface.html","text":"FreeType \u00bb Docs \u00bb Support API \u00bb System Interface System Interface \u00b6 Synopsis \u00b6 This section contains various definitions related to memory management and i/o access. You need to understand this information if you want to use a custom memory manager or you own i/o streams. FT_Memory \u00b6 Defined in FT_SYSTEM_H (freetype/ftsystem.h). typedef struct FT_MemoryRec_* FT_Memory ; A handle to a given memory manager object, defined with an FT_MemoryRec structure. FT_Alloc_Func \u00b6 Defined in FT_SYSTEM_H (freetype/ftsystem.h). typedef void * (* FT_Alloc_Func )( FT_Memory memory, long size ); A function used to allocate size bytes from memory . input memory A handle to the source memory manager. size The size in bytes to allocate. return Address of new memory block. 0 in case of failure. FT_Free_Func \u00b6 Defined in FT_SYSTEM_H (freetype/ftsystem.h). typedef void (* FT_Free_Func )( FT_Memory memory, void * block ); A function used to release a given block of memory. input memory A handle to the source memory manager. block The address of the target memory block. FT_Realloc_Func \u00b6 Defined in FT_SYSTEM_H (freetype/ftsystem.h). typedef void * (* FT_Realloc_Func )( FT_Memory memory, long cur_size, long new_size, void * block ); A function used to re-allocate a given block of memory. input memory A handle to the source memory manager. cur_size The block's current size in bytes. new_size The block's requested new size. block The block's current address. return New block address. 0 in case of memory shortage. note In case of error, the old block must still be available. FT_MemoryRec \u00b6 Defined in FT_SYSTEM_H (freetype/ftsystem.h). struct FT_MemoryRec_ { void * user; FT_Alloc_Func alloc; FT_Free_Func free; FT_Realloc_Func realloc; }; A structure used to describe a given memory manager to FreeType 2. fields user A generic typeless pointer for user data. alloc A pointer type to an allocation function. free A pointer type to an memory freeing function. realloc A pointer type to a reallocation function. FT_Stream \u00b6 Defined in FT_SYSTEM_H (freetype/ftsystem.h). typedef struct FT_StreamRec_* FT_Stream ; A handle to an input stream. also See FT_StreamRec for the publicly accessible fields of a given stream object. FT_StreamDesc \u00b6 Defined in FT_SYSTEM_H (freetype/ftsystem.h). typedef union FT_StreamDesc_ { long value; void * pointer; } FT_StreamDesc ; A union type used to store either a long or a pointer. This is used to store a file descriptor or a FILE* in an input stream. FT_Stream_IoFunc \u00b6 Defined in FT_SYSTEM_H (freetype/ftsystem.h). typedef unsigned long (* FT_Stream_IoFunc )( FT_Stream stream, unsigned long offset, unsigned char * buffer, unsigned long count ); A function used to seek and read data from a given input stream. input stream A handle to the source stream. offset The offset of read in stream (always from start). buffer The address of the read buffer. count The number of bytes to read from the stream. return The number of bytes effectively read by the stream. note This function might be called to perform a seek or skip operation with a count of 0. A non-zero return value then indicates an error. FT_Stream_CloseFunc \u00b6 Defined in FT_SYSTEM_H (freetype/ftsystem.h). typedef void (* FT_Stream_CloseFunc )( FT_Stream stream ); A function used to close a given input stream. input stream A handle to the target stream. FT_StreamRec \u00b6 Defined in FT_SYSTEM_H (freetype/ftsystem.h). typedef struct FT_StreamRec_ { unsigned char * base; unsigned long size; unsigned long pos; FT_StreamDesc descriptor; FT_StreamDesc pathname; FT_Stream_IoFunc read; FT_Stream_CloseFunc close; FT_Memory memory; unsigned char * cursor; unsigned char * limit; } FT_StreamRec ; A structure used to describe an input stream. input base For memory-based streams, this is the address of the first stream byte in memory. This field should always be set to NULL for disk-based streams. size The stream size in bytes. In case of compressed streams where the size is unknown before actually doing the decompression, the value is set to 0x7FFFFFFF. (Note that this size value can occur for normal streams also; it is thus just a hint.) pos The current position within the stream. descriptor This field is a union that can hold an integer or a pointer. It is used by stream implementations to store file descriptors or FILE* pointers. pathname This field is completely ignored by FreeType. However, it is often useful during debugging to use it to store the stream's filename (where available). read The stream's input function. close The stream's close function. memory The memory manager to use to preload frames. This is set internally by FreeType and shouldn't be touched by stream implementations. cursor This field is set and used internally by FreeType when parsing frames. In particular, the FT_GET_XXX macros use this instead of the pos field. limit This field is set and used internally by FreeType when parsing frames.","title":"System Interface"},{"location":"ft2-system_interface.html#system-interface","text":"","title":"System Interface"},{"location":"ft2-system_interface.html#synopsis","text":"This section contains various definitions related to memory management and i/o access. You need to understand this information if you want to use a custom memory manager or you own i/o streams.","title":"Synopsis"},{"location":"ft2-system_interface.html#ft_memory","text":"Defined in FT_SYSTEM_H (freetype/ftsystem.h). typedef struct FT_MemoryRec_* FT_Memory ; A handle to a given memory manager object, defined with an FT_MemoryRec structure.","title":"FT_Memory"},{"location":"ft2-system_interface.html#ft_alloc_func","text":"Defined in FT_SYSTEM_H (freetype/ftsystem.h). typedef void * (* FT_Alloc_Func )( FT_Memory memory, long size ); A function used to allocate size bytes from memory .","title":"FT_Alloc_Func"},{"location":"ft2-system_interface.html#ft_free_func","text":"Defined in FT_SYSTEM_H (freetype/ftsystem.h). typedef void (* FT_Free_Func )( FT_Memory memory, void * block ); A function used to release a given block of memory.","title":"FT_Free_Func"},{"location":"ft2-system_interface.html#ft_realloc_func","text":"Defined in FT_SYSTEM_H (freetype/ftsystem.h). typedef void * (* FT_Realloc_Func )( FT_Memory memory, long cur_size, long new_size, void * block ); A function used to re-allocate a given block of memory.","title":"FT_Realloc_Func"},{"location":"ft2-system_interface.html#ft_memoryrec","text":"Defined in FT_SYSTEM_H (freetype/ftsystem.h). struct FT_MemoryRec_ { void * user; FT_Alloc_Func alloc; FT_Free_Func free; FT_Realloc_Func realloc; }; A structure used to describe a given memory manager to FreeType 2.","title":"FT_MemoryRec"},{"location":"ft2-system_interface.html#ft_stream","text":"Defined in FT_SYSTEM_H (freetype/ftsystem.h). typedef struct FT_StreamRec_* FT_Stream ; A handle to an input stream.","title":"FT_Stream"},{"location":"ft2-system_interface.html#ft_streamdesc","text":"Defined in FT_SYSTEM_H (freetype/ftsystem.h). typedef union FT_StreamDesc_ { long value; void * pointer; } FT_StreamDesc ; A union type used to store either a long or a pointer. This is used to store a file descriptor or a FILE* in an input stream.","title":"FT_StreamDesc"},{"location":"ft2-system_interface.html#ft_stream_iofunc","text":"Defined in FT_SYSTEM_H (freetype/ftsystem.h). typedef unsigned long (* FT_Stream_IoFunc )( FT_Stream stream, unsigned long offset, unsigned char * buffer, unsigned long count ); A function used to seek and read data from a given input stream.","title":"FT_Stream_IoFunc"},{"location":"ft2-system_interface.html#ft_stream_closefunc","text":"Defined in FT_SYSTEM_H (freetype/ftsystem.h). typedef void (* FT_Stream_CloseFunc )( FT_Stream stream ); A function used to close a given input stream.","title":"FT_Stream_CloseFunc"},{"location":"ft2-system_interface.html#ft_streamrec","text":"Defined in FT_SYSTEM_H (freetype/ftsystem.h). typedef struct FT_StreamRec_ { unsigned char * base; unsigned long size; unsigned long pos; FT_StreamDesc descriptor; FT_StreamDesc pathname; FT_Stream_IoFunc read; FT_Stream_CloseFunc close; FT_Memory memory; unsigned char * cursor; unsigned char * limit; } FT_StreamRec ; A structure used to describe an input stream.","title":"FT_StreamRec"},{"location":"ft2-t1_cid_driver.html","text":"FreeType \u00bb Docs \u00bb Controlling FreeType Modules \u00bb The Type 1 and CID drivers The Type 1 and CID drivers \u00b6 Synopsis \u00b6 It is possible to control the behaviour of FreeType's Type 1 and Type 1 CID drivers with FT_Property_Set and FT_Property_Get . Behind the scenes, both drivers use the Adobe CFF engine for hinting; however, the used properties must be specified separately. The Type 1 driver's module name is \u2018type1\u2019; the CID driver's module name is \u2018t1cid\u2019. Available properties are hinting-engine , no-stem-darkening , darkening-parameters , and random-seed , as documented in the \u2018 Driver properties \u2019 section. Please see the \u2018 The CFF driver \u2019 section for more details on the new hinting engine.","title":"The Type 1 and CID drivers"},{"location":"ft2-t1_cid_driver.html#the-type-1-and-cid-drivers","text":"","title":"The Type 1 and CID drivers"},{"location":"ft2-t1_cid_driver.html#synopsis","text":"It is possible to control the behaviour of FreeType's Type 1 and Type 1 CID drivers with FT_Property_Set and FT_Property_Get . Behind the scenes, both drivers use the Adobe CFF engine for hinting; however, the used properties must be specified separately. The Type 1 driver's module name is \u2018type1\u2019; the CID driver's module name is \u2018t1cid\u2019. Available properties are hinting-engine , no-stem-darkening , darkening-parameters , and random-seed , as documented in the \u2018 Driver properties \u2019 section. Please see the \u2018 The CFF driver \u2019 section for more details on the new hinting engine.","title":"Synopsis"},{"location":"ft2-truetype_engine.html","text":"FreeType \u00bb Docs \u00bb Miscellaneous \u00bb The TrueType Engine The TrueType Engine \u00b6 Synopsis \u00b6 This section contains a function used to query the level of TrueType bytecode support compiled in this version of the library. FT_TrueTypeEngineType \u00b6 Defined in FT_MODULE_H (freetype/ftmodapi.h). typedef enum FT_TrueTypeEngineType_ { FT_TRUETYPE_ENGINE_TYPE_NONE = 0, FT_TRUETYPE_ENGINE_TYPE_UNPATENTED , FT_TRUETYPE_ENGINE_TYPE_PATENTED } FT_TrueTypeEngineType ; A list of values describing which kind of TrueType bytecode engine is implemented in a given FT_Library instance. It is used by the FT_Get_TrueType_Engine_Type function. values FT_TRUETYPE_ENGINE_TYPE_NONE The library doesn't implement any kind of bytecode interpreter. FT_TRUETYPE_ENGINE_TYPE_UNPATENTED Deprecated and removed. FT_TRUETYPE_ENGINE_TYPE_PATENTED The library implements a bytecode interpreter that covers the full instruction set of the TrueType virtual machine (this was governed by patents until May 2010, hence the name). since 2.2 FT_Get_TrueType_Engine_Type \u00b6 Defined in FT_MODULE_H (freetype/ftmodapi.h). FT_EXPORT( FT_TrueTypeEngineType ) FT_Get_TrueType_Engine_Type ( FT_Library library ); Return an FT_TrueTypeEngineType value to indicate which level of the TrueType virtual machine a given library instance supports. input library A library instance. return A value indicating which level is supported. since 2.2","title":"The TrueType Engine"},{"location":"ft2-truetype_engine.html#the-truetype-engine","text":"","title":"The TrueType Engine"},{"location":"ft2-truetype_engine.html#synopsis","text":"This section contains a function used to query the level of TrueType bytecode support compiled in this version of the library.","title":"Synopsis"},{"location":"ft2-truetype_engine.html#ft_truetypeenginetype","text":"Defined in FT_MODULE_H (freetype/ftmodapi.h). typedef enum FT_TrueTypeEngineType_ { FT_TRUETYPE_ENGINE_TYPE_NONE = 0, FT_TRUETYPE_ENGINE_TYPE_UNPATENTED , FT_TRUETYPE_ENGINE_TYPE_PATENTED } FT_TrueTypeEngineType ; A list of values describing which kind of TrueType bytecode engine is implemented in a given FT_Library instance. It is used by the FT_Get_TrueType_Engine_Type function.","title":"FT_TrueTypeEngineType"},{"location":"ft2-truetype_engine.html#ft_get_truetype_engine_type","text":"Defined in FT_MODULE_H (freetype/ftmodapi.h). FT_EXPORT( FT_TrueTypeEngineType ) FT_Get_TrueType_Engine_Type ( FT_Library library ); Return an FT_TrueTypeEngineType value to indicate which level of the TrueType virtual machine a given library instance supports.","title":"FT_Get_TrueType_Engine_Type"},{"location":"ft2-truetype_tables.html","text":"FreeType \u00bb Docs \u00bb Format-Specific API \u00bb TrueType Tables TrueType Tables \u00b6 Synopsis \u00b6 This section contains definitions of some basic tables specific to TrueType and OpenType as well as some routines used to access and process them. TT_Header \u00b6 Defined in FT_TRUETYPE_TABLES_H (freetype/tttables.h). typedef struct TT_Header_ { FT_Fixed Table_Version; FT_Fixed Font_Revision; FT_Long CheckSum_Adjust; FT_Long Magic_Number; FT_UShort Flags; FT_UShort Units_Per_EM; FT_ULong Created [2]; FT_ULong Modified[2]; FT_Short xMin; FT_Short yMin; FT_Short xMax; FT_Short yMax; FT_UShort Mac_Style; FT_UShort Lowest_Rec_PPEM; FT_Short Font_Direction; FT_Short Index_To_Loc_Format; FT_Short Glyph_Data_Format; } TT_Header ; A structure to model a TrueType font header table. All fields follow the OpenType specification. The 64-bit timestamps are stored in two-element arrays Created and Modified , first the upper then the lower 32 bits. TT_HoriHeader \u00b6 Defined in FT_TRUETYPE_TABLES_H (freetype/tttables.h). typedef struct TT_HoriHeader_ { FT_Fixed Version; FT_Short Ascender; FT_Short Descender; FT_Short Line_Gap; FT_UShort advance_Width_Max; /* advance width maximum */ FT_Short min_Left_Side_Bearing; /* minimum left-sb */ FT_Short min_Right_Side_Bearing; /* minimum right-sb */ FT_Short xMax_Extent; /* xmax extents */ FT_Short caret_Slope_Rise; FT_Short caret_Slope_Run; FT_Short caret_Offset; FT_Short Reserved[4]; FT_Short metric_Data_Format; FT_UShort number_Of_HMetrics; /* The following fields are not defined by the OpenType specification */ /* but they are used to connect the metrics header to the relevant */ /* 'hmtx' table. */ void * long_metrics; void * short_metrics; } TT_HoriHeader ; A structure to model a TrueType horizontal header, the \u2018hhea\u2019 table, as well as the corresponding horizontal metrics table, \u2018hmtx\u2019. fields Version The table version. Ascender The font's ascender, i.e., the distance from the baseline to the top-most of all glyph points found in the font. This value is invalid in many fonts, as it is usually set by the font designer, and often reflects only a portion of the glyphs found in the font (maybe ASCII). You should use the sTypoAscender field of the \u2018OS/2\u2019 table instead if you want the correct one. Descender The font's descender, i.e., the distance from the baseline to the bottom-most of all glyph points found in the font. It is negative. This value is invalid in many fonts, as it is usually set by the font designer, and often reflects only a portion of the glyphs found in the font (maybe ASCII). You should use the sTypoDescender field of the \u2018OS/2\u2019 table instead if you want the correct one. Line_Gap The font's line gap, i.e., the distance to add to the ascender and descender to get the BTB, i.e., the baseline-to-baseline distance for the font. advance_Width_Max This field is the maximum of all advance widths found in the font. It can be used to compute the maximum width of an arbitrary string of text. min_Left_Side_Bearing The minimum left side bearing of all glyphs within the font. min_Right_Side_Bearing The minimum right side bearing of all glyphs within the font. xMax_Extent The maximum horizontal extent (i.e., the \u2018width\u2019 of a glyph's bounding box) for all glyphs in the font. caret_Slope_Rise The rise coefficient of the cursor's slope of the cursor (slope=rise/run). caret_Slope_Run The run coefficient of the cursor's slope. caret_Offset The cursor's offset for slanted fonts. Reserved 8 reserved bytes. metric_Data_Format Always 0. number_Of_HMetrics Number of HMetrics entries in the \u2018hmtx\u2019 table \u2013 this value can be smaller than the total number of glyphs in the font. long_metrics A pointer into the \u2018hmtx\u2019 table. short_metrics A pointer into the \u2018hmtx\u2019 table. note For an OpenType variation font, the values of the following fields can change after a call to FT_Set_Var_Design_Coordinates (and friends) if the font contains an \u2018MVAR\u2019 table: caret_Slope_Rise , caret_Slope_Run , and caret_Offset . TT_VertHeader \u00b6 Defined in FT_TRUETYPE_TABLES_H (freetype/tttables.h). typedef struct TT_VertHeader_ { FT_Fixed Version; FT_Short Ascender; FT_Short Descender; FT_Short Line_Gap; FT_UShort advance_Height_Max; /* advance height maximum */ FT_Short min_Top_Side_Bearing; /* minimum top-sb */ FT_Short min_Bottom_Side_Bearing; /* minimum bottom-sb */ FT_Short yMax_Extent; /* ymax extents */ FT_Short caret_Slope_Rise; FT_Short caret_Slope_Run; FT_Short caret_Offset; FT_Short Reserved[4]; FT_Short metric_Data_Format; FT_UShort number_Of_VMetrics; /* The following fields are not defined by the OpenType specification */ /* but they are used to connect the metrics header to the relevant */ /* 'vmtx' table. */ void * long_metrics; void * short_metrics; } TT_VertHeader ; A structure used to model a TrueType vertical header, the \u2018vhea\u2019 table, as well as the corresponding vertical metrics table, \u2018vmtx\u2019. fields Version The table version. Ascender The font's ascender, i.e., the distance from the baseline to the top-most of all glyph points found in the font. This value is invalid in many fonts, as it is usually set by the font designer, and often reflects only a portion of the glyphs found in the font (maybe ASCII). You should use the sTypoAscender field of the \u2018OS/2\u2019 table instead if you want the correct one. Descender The font's descender, i.e., the distance from the baseline to the bottom-most of all glyph points found in the font. It is negative. This value is invalid in many fonts, as it is usually set by the font designer, and often reflects only a portion of the glyphs found in the font (maybe ASCII). You should use the sTypoDescender field of the \u2018OS/2\u2019 table instead if you want the correct one. Line_Gap The font's line gap, i.e., the distance to add to the ascender and descender to get the BTB, i.e., the baseline-to-baseline distance for the font. advance_Height_Max This field is the maximum of all advance heights found in the font. It can be used to compute the maximum height of an arbitrary string of text. min_Top_Side_Bearing The minimum top side bearing of all glyphs within the font. min_Bottom_Side_Bearing The minimum bottom side bearing of all glyphs within the font. yMax_Extent The maximum vertical extent (i.e., the \u2018height\u2019 of a glyph's bounding box) for all glyphs in the font. caret_Slope_Rise The rise coefficient of the cursor's slope of the cursor (slope=rise/run). caret_Slope_Run The run coefficient of the cursor's slope. caret_Offset The cursor's offset for slanted fonts. Reserved 8 reserved bytes. metric_Data_Format Always 0. number_Of_VMetrics Number of VMetrics entries in the \u2018vmtx\u2019 table \u2013 this value can be smaller than the total number of glyphs in the font. long_metrics A pointer into the \u2018vmtx\u2019 table. short_metrics A pointer into the \u2018vmtx\u2019 table. note For an OpenType variation font, the values of the following fields can change after a call to FT_Set_Var_Design_Coordinates (and friends) if the font contains an \u2018MVAR\u2019 table: Ascender , Descender , Line_Gap , caret_Slope_Rise , caret_Slope_Run , and caret_Offset . TT_OS2 \u00b6 Defined in FT_TRUETYPE_TABLES_H (freetype/tttables.h). typedef struct TT_OS2_ { FT_UShort version; /* 0x0001 - more or 0xFFFF */ FT_Short xAvgCharWidth; FT_UShort usWeightClass; FT_UShort usWidthClass; FT_UShort fsType; FT_Short ySubscriptXSize; FT_Short ySubscriptYSize; FT_Short ySubscriptXOffset; FT_Short ySubscriptYOffset; FT_Short ySuperscriptXSize; FT_Short ySuperscriptYSize; FT_Short ySuperscriptXOffset; FT_Short ySuperscriptYOffset; FT_Short yStrikeoutSize; FT_Short yStrikeoutPosition; FT_Short sFamilyClass; FT_Byte panose[10]; FT_ULong ulUnicodeRange1; /* Bits 0-31 */ FT_ULong ulUnicodeRange2; /* Bits 32-63 */ FT_ULong ulUnicodeRange3; /* Bits 64-95 */ FT_ULong ulUnicodeRange4; /* Bits 96-127 */ FT_Char achVendID[4]; FT_UShort fsSelection; FT_UShort usFirstCharIndex; FT_UShort usLastCharIndex; FT_Short sTypoAscender; FT_Short sTypoDescender; FT_Short sTypoLineGap; FT_UShort usWinAscent; FT_UShort usWinDescent; /* only version 1 and higher: */ FT_ULong ulCodePageRange1; /* Bits 0-31 */ FT_ULong ulCodePageRange2; /* Bits 32-63 */ /* only version 2 and higher: */ FT_Short sxHeight; FT_Short sCapHeight; FT_UShort usDefaultChar; FT_UShort usBreakChar; FT_UShort usMaxContext; /* only version 5 and higher: */ FT_UShort usLowerOpticalPointSize; /* in twips (1/20th points) */ FT_UShort usUpperOpticalPointSize; /* in twips (1/20th points) */ } TT_OS2 ; A structure to model a TrueType \u2018OS/2\u2019 table. All fields comply to the OpenType specification. Note that we now support old Mac fonts that do not include an \u2018OS/2\u2019 table. In this case, the version field is always set to 0xFFFF. note For an OpenType variation font, the values of the following fields can change after a call to FT_Set_Var_Design_Coordinates (and friends) if the font contains an \u2018MVAR\u2019 table: sCapHeight , sTypoAscender , sTypoDescender , sTypoLineGap , sxHeight , usWinAscent , usWinDescent , yStrikeoutPosition , yStrikeoutSize , ySubscriptXOffset , ySubScriptXSize , ySubscriptYOffset , ySubscriptYSize , ySuperscriptXOffset , ySuperscriptXSize , ySuperscriptYOffset , and ySuperscriptYSize . Possible values for bits in the ulUnicodeRangeX fields are given by the TT_UCR_XXX macros. TT_Postscript \u00b6 Defined in FT_TRUETYPE_TABLES_H (freetype/tttables.h). typedef struct TT_Postscript_ { FT_Fixed FormatType; FT_Fixed italicAngle; FT_Short underlinePosition; FT_Short underlineThickness; FT_ULong isFixedPitch; FT_ULong minMemType42; FT_ULong maxMemType42; FT_ULong minMemType1; FT_ULong maxMemType1; /* Glyph names follow in the 'post' table, but we don't */ /* load them by default. */ } TT_Postscript ; A structure to model a TrueType \u2018post\u2019 table. All fields comply to the OpenType specification. This structure does not reference a font's PostScript glyph names; use FT_Get_Glyph_Name to retrieve them. note For an OpenType variation font, the values of the following fields can change after a call to FT_Set_Var_Design_Coordinates (and friends) if the font contains an \u2018MVAR\u2019 table: underlinePosition and underlineThickness . TT_PCLT \u00b6 Defined in FT_TRUETYPE_TABLES_H (freetype/tttables.h). typedef struct TT_PCLT_ { FT_Fixed Version; FT_ULong FontNumber; FT_UShort Pitch; FT_UShort xHeight; FT_UShort Style; FT_UShort TypeFamily; FT_UShort CapHeight; FT_UShort SymbolSet; FT_Char TypeFace[16]; FT_Char CharacterComplement[8]; FT_Char FileName[6]; FT_Char StrokeWeight; FT_Char WidthType; FT_Byte SerifStyle; FT_Byte Reserved; } TT_PCLT ; A structure to model a TrueType \u2018PCLT\u2019 table. All fields comply to the OpenType specification. TT_MaxProfile \u00b6 Defined in FT_TRUETYPE_TABLES_H (freetype/tttables.h). typedef struct TT_MaxProfile_ { FT_Fixed version; FT_UShort numGlyphs; FT_UShort maxPoints; FT_UShort maxContours; FT_UShort maxCompositePoints; FT_UShort maxCompositeContours; FT_UShort maxZones; FT_UShort maxTwilightPoints; FT_UShort maxStorage; FT_UShort maxFunctionDefs; FT_UShort maxInstructionDefs; FT_UShort maxStackElements; FT_UShort maxSizeOfInstructions; FT_UShort maxComponentElements; FT_UShort maxComponentDepth; } TT_MaxProfile ; The maximum profile (\u2018maxp\u2019) table contains many max values, which can be used to pre-allocate arrays for speeding up glyph loading and hinting. fields version The version number. numGlyphs The number of glyphs in this TrueType font. maxPoints The maximum number of points in a non-composite TrueType glyph. See also maxCompositePoints . maxContours The maximum number of contours in a non-composite TrueType glyph. See also maxCompositeContours . maxCompositePoints The maximum number of points in a composite TrueType glyph. See also maxPoints . maxCompositeContours The maximum number of contours in a composite TrueType glyph. See also maxContours . maxZones The maximum number of zones used for glyph hinting. maxTwilightPoints The maximum number of points in the twilight zone used for glyph hinting. maxStorage The maximum number of elements in the storage area used for glyph hinting. maxFunctionDefs The maximum number of function definitions in the TrueType bytecode for this font. maxInstructionDefs The maximum number of instruction definitions in the TrueType bytecode for this font. maxStackElements The maximum number of stack elements used during bytecode interpretation. maxSizeOfInstructions The maximum number of TrueType opcodes used for glyph hinting. maxComponentElements The maximum number of simple (i.e., non-composite) glyphs in a composite glyph. maxComponentDepth The maximum nesting depth of composite glyphs. note This structure is only used during font loading. FT_Sfnt_Tag \u00b6 Defined in FT_TRUETYPE_TABLES_H (freetype/tttables.h). typedef enum FT_Sfnt_Tag_ { FT_SFNT_HEAD , FT_SFNT_MAXP , FT_SFNT_OS2 , FT_SFNT_HHEA , FT_SFNT_VHEA , FT_SFNT_POST , FT_SFNT_PCLT , FT_SFNT_MAX } FT_Sfnt_Tag ; /* these constants are deprecated; use the corresponding ` FT_Sfnt_Tag ` */ /* values instead */ # define ft_sfnt_head FT_SFNT_HEAD # define ft_sfnt_maxp FT_SFNT_MAXP # define ft_sfnt_os2 FT_SFNT_OS2 # define ft_sfnt_hhea FT_SFNT_HHEA # define ft_sfnt_vhea FT_SFNT_VHEA # define ft_sfnt_post FT_SFNT_POST # define ft_sfnt_pclt FT_SFNT_PCLT An enumeration to specify indices of SFNT tables loaded and parsed by FreeType during initialization of an SFNT font. Used in the FT_Get_Sfnt_Table API function. values FT_SFNT_HEAD To access the font's TT_Header structure. FT_SFNT_MAXP To access the font's TT_MaxProfile structure. FT_SFNT_OS2 To access the font's TT_OS2 structure. FT_SFNT_HHEA To access the font's TT_HoriHeader structure. FT_SFNT_VHEA To access the font's TT_VertHeader structure. FT_SFNT_POST To access the font's TT_Postscript structure. FT_SFNT_PCLT To access the font's TT_PCLT structure. FT_Get_Sfnt_Table \u00b6 Defined in FT_TRUETYPE_TABLES_H (freetype/tttables.h). FT_EXPORT( void * ) FT_Get_Sfnt_Table ( FT_Face face, FT_Sfnt_Tag tag ); Return a pointer to a given SFNT table stored within a face. input face A handle to the source. tag The index of the SFNT table. return A type-less pointer to the table. This will be NULL in case of error, or if the corresponding table was not found OR loaded from the file. Use a typecast according to tag to access the structure elements. note The table is owned by the face object and disappears with it. This function is only useful to access SFNT tables that are loaded by the sfnt, truetype, and opentype drivers. See FT_Sfnt_Tag for a list. example Here is an example demonstrating access to the \u2018vhea\u2019 table. TT_VertHeader* vert_header; vert_header = (TT_VertHeader*)FT_Get_Sfnt_Table( face, FT_SFNT_VHEA ); FT_Load_Sfnt_Table \u00b6 Defined in FT_TRUETYPE_TABLES_H (freetype/tttables.h). FT_EXPORT( FT_Error ) FT_Load_Sfnt_Table ( FT_Face face, FT_ULong tag, FT_Long offset, FT_Byte * buffer, FT_ULong * length ); Load any SFNT font table into client memory. input face A handle to the source face. tag The four-byte tag of the table to load. Use value 0 if you want to access the whole font file. Otherwise, you can use one of the definitions found in the FT_TRUETYPE_TAGS_H file, or forge a new one with FT_MAKE_TAG . offset The starting offset in the table (or file if tag == 0). output buffer The target buffer address. The client must ensure that the memory array is big enough to hold the data. inout length If the length parameter is NULL , try to load the whole table. Return an error code if it fails. Else, if *length is 0, exit immediately while returning the table's (or file) full size in it. Else the number of bytes to read from the table or file, from the starting offset. return FreeType error code. 0 means success. note If you need to determine the table's length you should first call this function with *length set to 0, as in the following example: FT_ULong length = 0; error = FT_Load_Sfnt_Table( face, tag, 0, NULL, &length ); if ( error ) { ... table does not exist ... } buffer = malloc( length ); if ( buffer == NULL ) { ... not enough memory ... } error = FT_Load_Sfnt_Table( face, tag, 0, buffer, &length ); if ( error ) { ... could not load table ... } Note that structures like TT_Header or TT_OS2 can't be used with this function; they are limited to FT_Get_Sfnt_Table . Reason is that those structures depend on the processor architecture, with varying size (e.g. 32bit vs. 64bit) or order (big endian vs. little endian). FT_Sfnt_Table_Info \u00b6 Defined in FT_TRUETYPE_TABLES_H (freetype/tttables.h). FT_EXPORT( FT_Error ) FT_Sfnt_Table_Info ( FT_Face face, FT_UInt table_index, FT_ULong *tag, FT_ULong *length ); Return information on an SFNT table. input face A handle to the source face. table_index The index of an SFNT table. The function returns FT_Err_Table_Missing for an invalid value. inout tag The name tag of the SFNT table. If the value is NULL , table_index is ignored, and length returns the number of SFNT tables in the font. output length The length of the SFNT table (or the number of SFNT tables, depending on tag ). return FreeType error code. 0 means success. note While parsing fonts, FreeType handles SFNT tables with length zero as missing. FT_Get_CMap_Language_ID \u00b6 Defined in FT_TRUETYPE_TABLES_H (freetype/tttables.h). FT_EXPORT( FT_ULong ) FT_Get_CMap_Language_ID ( FT_CharMap charmap ); Return cmap language ID as specified in the OpenType standard. Definitions of language ID values are in file FT_TRUETYPE_IDS_H . input charmap The target charmap. return The language ID of charmap . If charmap doesn't belong to an SFNT face, just return 0 as the default value. For a format 14 cmap (to access Unicode IVS), the return value is 0xFFFFFFFF. FT_Get_CMap_Format \u00b6 Defined in FT_TRUETYPE_TABLES_H (freetype/tttables.h). FT_EXPORT( FT_Long ) FT_Get_CMap_Format ( FT_CharMap charmap ); Return the format of an SFNT \u2018cmap\u2019 table. input charmap The target charmap. return The format of charmap . If charmap doesn't belong to an SFNT face, return -1. FT_PARAM_TAG_UNPATENTED_HINTING \u00b6 # define FT_PARAM_TAG_UNPATENTED_HINTING \\ FT_MAKE_TAG ( 'u', 'n', 'p', 'a' ) Deprecated, no effect. Previously: A constant used as the tag of an FT_Parameter structure to indicate that unpatented methods only should be used by the TrueType bytecode interpreter for a typeface opened by FT_Open_Face . TT_PLATFORM_XXX \u00b6 Defined in FT_TRUETYPE_IDS_H (freetype/ttnameid.h). # define TT_PLATFORM_APPLE_UNICODE 0 # define TT_PLATFORM_MACINTOSH 1 # define TT_PLATFORM_ISO 2 /* deprecated */ # define TT_PLATFORM_MICROSOFT 3 # define TT_PLATFORM_CUSTOM 4 # define TT_PLATFORM_ADOBE 7 /* artificial */ A list of valid values for the platform_id identifier code in FT_CharMapRec and FT_SfntName structures. values TT_PLATFORM_APPLE_UNICODE Used by Apple to indicate a Unicode character map and/or name entry. See TT_APPLE_ID_XXX for corresponding encoding_id values. Note that name entries in this format are coded as big-endian UCS-2 character codes only . TT_PLATFORM_MACINTOSH Used by Apple to indicate a MacOS-specific charmap and/or name entry. See TT_MAC_ID_XXX for corresponding encoding_id values. Note that most TrueType fonts contain an Apple roman charmap to be usable on MacOS systems (even if they contain a Microsoft charmap as well). TT_PLATFORM_ISO This value was used to specify ISO/IEC 10646 charmaps. It is however now deprecated. See TT_ISO_ID_XXX for a list of corresponding encoding_id values. TT_PLATFORM_MICROSOFT Used by Microsoft to indicate Windows-specific charmaps. See TT_MS_ID_XXX for a list of corresponding encoding_id values. Note that most fonts contain a Unicode charmap using ( TT_PLATFORM_MICROSOFT , TT_MS_ID_UNICODE_CS ). TT_PLATFORM_CUSTOM Used to indicate application-specific charmaps. TT_PLATFORM_ADOBE This value isn't part of any font format specification, but is used by FreeType to report Adobe-specific charmaps in an FT_CharMapRec structure. See TT_ADOBE_ID_XXX . TT_APPLE_ID_XXX \u00b6 Defined in FT_TRUETYPE_IDS_H (freetype/ttnameid.h). # define TT_APPLE_ID_DEFAULT 0 /* Unicode 1.0 */ # define TT_APPLE_ID_UNICODE_1_1 1 /* specify Hangul at U+34xx */ # define TT_APPLE_ID_ISO_10646 2 /* deprecated */ # define TT_APPLE_ID_UNICODE_2_0 3 /* or later */ # define TT_APPLE_ID_UNICODE_32 4 /* 2.0 or later, full repertoire */ # define TT_APPLE_ID_VARIANT_SELECTOR 5 /* variation selector data */ # define TT_APPLE_ID_FULL_UNICODE 6 /* used with type 13 cmaps */ A list of valid values for the encoding_id for TT_PLATFORM_APPLE_UNICODE charmaps and name entries. values TT_APPLE_ID_DEFAULT Unicode version 1.0. TT_APPLE_ID_UNICODE_1_1 Unicode 1.1; specifies Hangul characters starting at U+34xx. TT_APPLE_ID_ISO_10646 Deprecated (identical to preceding). TT_APPLE_ID_UNICODE_2_0 Unicode 2.0 and beyond (UTF-16 BMP only). TT_APPLE_ID_UNICODE_32 Unicode 3.1 and beyond, using UTF-32. TT_APPLE_ID_VARIANT_SELECTOR From Adobe, not Apple. Not a normal cmap. Specifies variations on a real cmap. TT_APPLE_ID_FULL_UNICODE Used for fallback fonts that provide complete Unicode coverage with a type 13 cmap. TT_MAC_ID_XXX \u00b6 Defined in FT_TRUETYPE_IDS_H (freetype/ttnameid.h). # define TT_MAC_ID_ROMAN 0 # define TT_MAC_ID_JAPANESE 1 # define TT_MAC_ID_TRADITIONAL_CHINESE 2 # define TT_MAC_ID_KOREAN 3 # define TT_MAC_ID_ARABIC 4 # define TT_MAC_ID_HEBREW 5 # define TT_MAC_ID_GREEK 6 # define TT_MAC_ID_RUSSIAN 7 # define TT_MAC_ID_RSYMBOL 8 # define TT_MAC_ID_DEVANAGARI 9 # define TT_MAC_ID_GURMUKHI 10 # define TT_MAC_ID_GUJARATI 11 # define TT_MAC_ID_ORIYA 12 # define TT_MAC_ID_BENGALI 13 # define TT_MAC_ID_TAMIL 14 # define TT_MAC_ID_TELUGU 15 # define TT_MAC_ID_KANNADA 16 # define TT_MAC_ID_MALAYALAM 17 # define TT_MAC_ID_SINHALESE 18 # define TT_MAC_ID_BURMESE 19 # define TT_MAC_ID_KHMER 20 # define TT_MAC_ID_THAI 21 # define TT_MAC_ID_LAOTIAN 22 # define TT_MAC_ID_GEORGIAN 23 # define TT_MAC_ID_ARMENIAN 24 # define TT_MAC_ID_MALDIVIAN 25 # define TT_MAC_ID_SIMPLIFIED_CHINESE 25 # define TT_MAC_ID_TIBETAN 26 # define TT_MAC_ID_MONGOLIAN 27 # define TT_MAC_ID_GEEZ 28 # define TT_MAC_ID_SLAVIC 29 # define TT_MAC_ID_VIETNAMESE 30 # define TT_MAC_ID_SINDHI 31 # define TT_MAC_ID_UNINTERP 32 A list of valid values for the encoding_id for TT_PLATFORM_MACINTOSH charmaps and name entries. TT_ISO_ID_XXX \u00b6 Defined in FT_TRUETYPE_IDS_H (freetype/ttnameid.h). # define TT_ISO_ID_7BIT_ASCII 0 # define TT_ISO_ID_10646 1 # define TT_ISO_ID_8859_1 2 A list of valid values for the encoding_id for TT_PLATFORM_ISO charmaps and name entries. Their use is now deprecated. values TT_ISO_ID_7BIT_ASCII ASCII. TT_ISO_ID_10646 ISO/10646. TT_ISO_ID_8859_1 Also known as Latin-1. TT_MS_ID_XXX \u00b6 Defined in FT_TRUETYPE_IDS_H (freetype/ttnameid.h). # define TT_MS_ID_SYMBOL_CS 0 # define TT_MS_ID_UNICODE_CS 1 # define TT_MS_ID_SJIS 2 # define TT_MS_ID_PRC 3 # define TT_MS_ID_BIG_5 4 # define TT_MS_ID_WANSUNG 5 # define TT_MS_ID_JOHAB 6 # define TT_MS_ID_UCS_4 10 /* this value is deprecated */ # define TT_MS_ID_GB2312 TT_MS_ID_PRC A list of valid values for the encoding_id for TT_PLATFORM_MICROSOFT charmaps and name entries. values TT_MS_ID_SYMBOL_CS Microsoft symbol encoding. See FT_ENCODING_MS_SYMBOL . TT_MS_ID_UNICODE_CS Microsoft WGL4 charmap, matching Unicode. See FT_ENCODING_UNICODE . TT_MS_ID_SJIS Shift JIS Japanese encoding. See FT_ENCODING_SJIS . TT_MS_ID_PRC Chinese encodings as used in the People's Republic of China (PRC). This means the encodings GB 2312 and its supersets GBK and GB 18030. See FT_ENCODING_PRC . TT_MS_ID_BIG_5 Traditional Chinese as used in Taiwan and Hong Kong. See FT_ENCODING_BIG5 . TT_MS_ID_WANSUNG Korean Extended Wansung encoding. See FT_ENCODING_WANSUNG . TT_MS_ID_JOHAB Korean Johab encoding. See FT_ENCODING_JOHAB . TT_MS_ID_UCS_4 UCS-4 or UTF-32 charmaps. This has been added to the OpenType specification version 1.4 (mid-2001). TT_ADOBE_ID_XXX \u00b6 Defined in FT_TRUETYPE_IDS_H (freetype/ttnameid.h). # define TT_ADOBE_ID_STANDARD 0 # define TT_ADOBE_ID_EXPERT 1 # define TT_ADOBE_ID_CUSTOM 2 # define TT_ADOBE_ID_LATIN_1 3 A list of valid values for the encoding_id for TT_PLATFORM_ADOBE charmaps. This is a FreeType-specific extension! values TT_ADOBE_ID_STANDARD Adobe standard encoding. TT_ADOBE_ID_EXPERT Adobe expert encoding. TT_ADOBE_ID_CUSTOM Adobe custom encoding. TT_ADOBE_ID_LATIN_1 Adobe Latin 1 encoding. TT_MAC_LANGID_XXX \u00b6 Defined in FT_TRUETYPE_IDS_H (freetype/ttnameid.h). # define TT_MAC_LANGID_ENGLISH 0 # define TT_MAC_LANGID_FRENCH 1 # define TT_MAC_LANGID_GERMAN 2 # define TT_MAC_LANGID_ITALIAN 3 # define TT_MAC_LANGID_DUTCH 4 # define TT_MAC_LANGID_SWEDISH 5 # define TT_MAC_LANGID_SPANISH 6 # define TT_MAC_LANGID_DANISH 7 # define TT_MAC_LANGID_PORTUGUESE 8 # define TT_MAC_LANGID_NORWEGIAN 9 # define TT_MAC_LANGID_HEBREW 10 # define TT_MAC_LANGID_JAPANESE 11 # define TT_MAC_LANGID_ARABIC 12 # define TT_MAC_LANGID_FINNISH 13 # define TT_MAC_LANGID_GREEK 14 # define TT_MAC_LANGID_ICELANDIC 15 # define TT_MAC_LANGID_MALTESE 16 # define TT_MAC_LANGID_TURKISH 17 # define TT_MAC_LANGID_CROATIAN 18 # define TT_MAC_LANGID_CHINESE_TRADITIONAL 19 # define TT_MAC_LANGID_URDU 20 # define TT_MAC_LANGID_HINDI 21 # define TT_MAC_LANGID_THAI 22 # define TT_MAC_LANGID_KOREAN 23 # define TT_MAC_LANGID_LITHUANIAN 24 # define TT_MAC_LANGID_POLISH 25 # define TT_MAC_LANGID_HUNGARIAN 26 # define TT_MAC_LANGID_ESTONIAN 27 # define TT_MAC_LANGID_LETTISH 28 # define TT_MAC_LANGID_SAAMISK 29 # define TT_MAC_LANGID_FAEROESE 30 # define TT_MAC_LANGID_FARSI 31 # define TT_MAC_LANGID_RUSSIAN 32 # define TT_MAC_LANGID_CHINESE_SIMPLIFIED 33 # define TT_MAC_LANGID_FLEMISH 34 # define TT_MAC_LANGID_IRISH 35 # define TT_MAC_LANGID_ALBANIAN 36 # define TT_MAC_LANGID_ROMANIAN 37 # define TT_MAC_LANGID_CZECH 38 # define TT_MAC_LANGID_SLOVAK 39 # define TT_MAC_LANGID_SLOVENIAN 40 # define TT_MAC_LANGID_YIDDISH 41 # define TT_MAC_LANGID_SERBIAN 42 # define TT_MAC_LANGID_MACEDONIAN 43 # define TT_MAC_LANGID_BULGARIAN 44 # define TT_MAC_LANGID_UKRAINIAN 45 # define TT_MAC_LANGID_BYELORUSSIAN 46 # define TT_MAC_LANGID_UZBEK 47 # define TT_MAC_LANGID_KAZAKH 48 # define TT_MAC_LANGID_AZERBAIJANI 49 # define TT_MAC_LANGID_AZERBAIJANI_CYRILLIC_SCRIPT 49 # define TT_MAC_LANGID_AZERBAIJANI_ARABIC_SCRIPT 50 # define TT_MAC_LANGID_ARMENIAN 51 # define TT_MAC_LANGID_GEORGIAN 52 # define TT_MAC_LANGID_MOLDAVIAN 53 # define TT_MAC_LANGID_KIRGHIZ 54 # define TT_MAC_LANGID_TAJIKI 55 # define TT_MAC_LANGID_TURKMEN 56 # define TT_MAC_LANGID_MONGOLIAN 57 # define TT_MAC_LANGID_MONGOLIAN_MONGOLIAN_SCRIPT 57 # define TT_MAC_LANGID_MONGOLIAN_CYRILLIC_SCRIPT 58 # define TT_MAC_LANGID_PASHTO 59 # define TT_MAC_LANGID_KURDISH 60 # define TT_MAC_LANGID_KASHMIRI 61 # define TT_MAC_LANGID_SINDHI 62 # define TT_MAC_LANGID_TIBETAN 63 # define TT_MAC_LANGID_NEPALI 64 # define TT_MAC_LANGID_SANSKRIT 65 # define TT_MAC_LANGID_MARATHI 66 # define TT_MAC_LANGID_BENGALI 67 # define TT_MAC_LANGID_ASSAMESE 68 # define TT_MAC_LANGID_GUJARATI 69 # define TT_MAC_LANGID_PUNJABI 70 # define TT_MAC_LANGID_ORIYA 71 # define TT_MAC_LANGID_MALAYALAM 72 # define TT_MAC_LANGID_KANNADA 73 # define TT_MAC_LANGID_TAMIL 74 # define TT_MAC_LANGID_TELUGU 75 # define TT_MAC_LANGID_SINHALESE 76 # define TT_MAC_LANGID_BURMESE 77 # define TT_MAC_LANGID_KHMER 78 # define TT_MAC_LANGID_LAO 79 # define TT_MAC_LANGID_VIETNAMESE 80 # define TT_MAC_LANGID_INDONESIAN 81 # define TT_MAC_LANGID_TAGALOG 82 # define TT_MAC_LANGID_MALAY_ROMAN_SCRIPT 83 # define TT_MAC_LANGID_MALAY_ARABIC_SCRIPT 84 # define TT_MAC_LANGID_AMHARIC 85 # define TT_MAC_LANGID_TIGRINYA 86 # define TT_MAC_LANGID_GALLA 87 # define TT_MAC_LANGID_SOMALI 88 # define TT_MAC_LANGID_SWAHILI 89 # define TT_MAC_LANGID_RUANDA 90 # define TT_MAC_LANGID_RUNDI 91 # define TT_MAC_LANGID_CHEWA 92 # define TT_MAC_LANGID_MALAGASY 93 # define TT_MAC_LANGID_ESPERANTO 94 # define TT_MAC_LANGID_WELSH 128 # define TT_MAC_LANGID_BASQUE 129 # define TT_MAC_LANGID_CATALAN 130 # define TT_MAC_LANGID_LATIN 131 # define TT_MAC_LANGID_QUECHUA 132 # define TT_MAC_LANGID_GUARANI 133 # define TT_MAC_LANGID_AYMARA 134 # define TT_MAC_LANGID_TATAR 135 # define TT_MAC_LANGID_UIGHUR 136 # define TT_MAC_LANGID_DZONGKHA 137 # define TT_MAC_LANGID_JAVANESE 138 # define TT_MAC_LANGID_SUNDANESE 139 /* The following codes are new as of 2000-03-10 */ # define TT_MAC_LANGID_GALICIAN 140 # define TT_MAC_LANGID_AFRIKAANS 141 # define TT_MAC_LANGID_BRETON 142 # define TT_MAC_LANGID_INUKTITUT 143 # define TT_MAC_LANGID_SCOTTISH_GAELIC 144 # define TT_MAC_LANGID_MANX_GAELIC 145 # define TT_MAC_LANGID_IRISH_GAELIC 146 # define TT_MAC_LANGID_TONGAN 147 # define TT_MAC_LANGID_GREEK_POLYTONIC 148 # define TT_MAC_LANGID_GREELANDIC 149 # define TT_MAC_LANGID_AZERBAIJANI_ROMAN_SCRIPT 150 Possible values of the language identifier field in the name records of the SFNT \u2018name\u2019 table if the \u2018platform\u2019 identifier code is TT_PLATFORM_MACINTOSH . These values are also used as return values for function FT_Get_CMap_Language_ID . The canonical source for Apple's IDs is https://developer.apple.com/fonts/TrueType-Reference-Manual/RM06/Chap6name.html TT_MS_LANGID_XXX \u00b6 Defined in FT_TRUETYPE_IDS_H (freetype/ttnameid.h). # define TT_MS_LANGID_ARABIC_SAUDI_ARABIA 0x0401 # define TT_MS_LANGID_ARABIC_IRAQ 0x0801 # define TT_MS_LANGID_ARABIC_EGYPT 0x0C01 # define TT_MS_LANGID_ARABIC_LIBYA 0x1001 # define TT_MS_LANGID_ARABIC_ALGERIA 0x1401 # define TT_MS_LANGID_ARABIC_MOROCCO 0x1801 # define TT_MS_LANGID_ARABIC_TUNISIA 0x1C01 # define TT_MS_LANGID_ARABIC_OMAN 0x2001 # define TT_MS_LANGID_ARABIC_YEMEN 0x2401 # define TT_MS_LANGID_ARABIC_SYRIA 0x2801 # define TT_MS_LANGID_ARABIC_JORDAN 0x2C01 # define TT_MS_LANGID_ARABIC_LEBANON 0x3001 # define TT_MS_LANGID_ARABIC_KUWAIT 0x3401 # define TT_MS_LANGID_ARABIC_UAE 0x3801 # define TT_MS_LANGID_ARABIC_BAHRAIN 0x3C01 # define TT_MS_LANGID_ARABIC_QATAR 0x4001 # define TT_MS_LANGID_BULGARIAN_BULGARIA 0x0402 # define TT_MS_LANGID_CATALAN_CATALAN 0x0403 # define TT_MS_LANGID_CHINESE_TAIWAN 0x0404 # define TT_MS_LANGID_CHINESE_PRC 0x0804 # define TT_MS_LANGID_CHINESE_HONG_KONG 0x0C04 # define TT_MS_LANGID_CHINESE_SINGAPORE 0x1004 # define TT_MS_LANGID_CHINESE_MACAO 0x1404 # define TT_MS_LANGID_CZECH_CZECH_REPUBLIC 0x0405 # define TT_MS_LANGID_DANISH_DENMARK 0x0406 # define TT_MS_LANGID_GERMAN_GERMANY 0x0407 # define TT_MS_LANGID_GERMAN_SWITZERLAND 0x0807 # define TT_MS_LANGID_GERMAN_AUSTRIA 0x0C07 # define TT_MS_LANGID_GERMAN_LUXEMBOURG 0x1007 # define TT_MS_LANGID_GERMAN_LIECHTENSTEIN 0x1407 # define TT_MS_LANGID_GREEK_GREECE 0x0408 # define TT_MS_LANGID_ENGLISH_UNITED_STATES 0x0409 # define TT_MS_LANGID_ENGLISH_UNITED_KINGDOM 0x0809 # define TT_MS_LANGID_ENGLISH_AUSTRALIA 0x0C09 # define TT_MS_LANGID_ENGLISH_CANADA 0x1009 # define TT_MS_LANGID_ENGLISH_NEW_ZEALAND 0x1409 # define TT_MS_LANGID_ENGLISH_IRELAND 0x1809 # define TT_MS_LANGID_ENGLISH_SOUTH_AFRICA 0x1C09 # define TT_MS_LANGID_ENGLISH_JAMAICA 0x2009 # define TT_MS_LANGID_ENGLISH_CARIBBEAN 0x2409 # define TT_MS_LANGID_ENGLISH_BELIZE 0x2809 # define TT_MS_LANGID_ENGLISH_TRINIDAD 0x2C09 # define TT_MS_LANGID_ENGLISH_ZIMBABWE 0x3009 # define TT_MS_LANGID_ENGLISH_PHILIPPINES 0x3409 # define TT_MS_LANGID_ENGLISH_INDIA 0x4009 # define TT_MS_LANGID_ENGLISH_MALAYSIA 0x4409 # define TT_MS_LANGID_ENGLISH_SINGAPORE 0x4809 # define TT_MS_LANGID_SPANISH_SPAIN_TRADITIONAL_SORT 0x040A # define TT_MS_LANGID_SPANISH_MEXICO 0x080A # define TT_MS_LANGID_SPANISH_SPAIN_MODERN_SORT 0x0C0A # define TT_MS_LANGID_SPANISH_GUATEMALA 0x100A # define TT_MS_LANGID_SPANISH_COSTA_RICA 0x140A # define TT_MS_LANGID_SPANISH_PANAMA 0x180A # define TT_MS_LANGID_SPANISH_DOMINICAN_REPUBLIC 0x1C0A # define TT_MS_LANGID_SPANISH_VENEZUELA 0x200A # define TT_MS_LANGID_SPANISH_COLOMBIA 0x240A # define TT_MS_LANGID_SPANISH_PERU 0x280A # define TT_MS_LANGID_SPANISH_ARGENTINA 0x2C0A # define TT_MS_LANGID_SPANISH_ECUADOR 0x300A # define TT_MS_LANGID_SPANISH_CHILE 0x340A # define TT_MS_LANGID_SPANISH_URUGUAY 0x380A # define TT_MS_LANGID_SPANISH_PARAGUAY 0x3C0A # define TT_MS_LANGID_SPANISH_BOLIVIA 0x400A # define TT_MS_LANGID_SPANISH_EL_SALVADOR 0x440A # define TT_MS_LANGID_SPANISH_HONDURAS 0x480A # define TT_MS_LANGID_SPANISH_NICARAGUA 0x4C0A # define TT_MS_LANGID_SPANISH_PUERTO_RICO 0x500A # define TT_MS_LANGID_SPANISH_UNITED_STATES 0x540A # define TT_MS_LANGID_FINNISH_FINLAND 0x040B # define TT_MS_LANGID_FRENCH_FRANCE 0x040C # define TT_MS_LANGID_FRENCH_BELGIUM 0x080C # define TT_MS_LANGID_FRENCH_CANADA 0x0C0C # define TT_MS_LANGID_FRENCH_SWITZERLAND 0x100C # define TT_MS_LANGID_FRENCH_LUXEMBOURG 0x140C # define TT_MS_LANGID_FRENCH_MONACO 0x180C # define TT_MS_LANGID_HEBREW_ISRAEL 0x040D # define TT_MS_LANGID_HUNGARIAN_HUNGARY 0x040E # define TT_MS_LANGID_ICELANDIC_ICELAND 0x040F # define TT_MS_LANGID_ITALIAN_ITALY 0x0410 # define TT_MS_LANGID_ITALIAN_SWITZERLAND 0x0810 # define TT_MS_LANGID_JAPANESE_JAPAN 0x0411 # define TT_MS_LANGID_KOREAN_KOREA 0x0412 # define TT_MS_LANGID_DUTCH_NETHERLANDS 0x0413 # define TT_MS_LANGID_DUTCH_BELGIUM 0x0813 # define TT_MS_LANGID_NORWEGIAN_NORWAY_BOKMAL 0x0414 # define TT_MS_LANGID_NORWEGIAN_NORWAY_NYNORSK 0x0814 # define TT_MS_LANGID_POLISH_POLAND 0x0415 # define TT_MS_LANGID_PORTUGUESE_BRAZIL 0x0416 # define TT_MS_LANGID_PORTUGUESE_PORTUGAL 0x0816 # define TT_MS_LANGID_ROMANSH_SWITZERLAND 0x0417 # define TT_MS_LANGID_ROMANIAN_ROMANIA 0x0418 # define TT_MS_LANGID_RUSSIAN_RUSSIA 0x0419 # define TT_MS_LANGID_CROATIAN_CROATIA 0x041A # define TT_MS_LANGID_SERBIAN_SERBIA_LATIN 0x081A # define TT_MS_LANGID_SERBIAN_SERBIA_CYRILLIC 0x0C1A # define TT_MS_LANGID_CROATIAN_BOSNIA_HERZEGOVINA 0x101A # define TT_MS_LANGID_BOSNIAN_BOSNIA_HERZEGOVINA 0x141A # define TT_MS_LANGID_SERBIAN_BOSNIA_HERZ_LATIN 0x181A # define TT_MS_LANGID_SERBIAN_BOSNIA_HERZ_CYRILLIC 0x1C1A # define TT_MS_LANGID_BOSNIAN_BOSNIA_HERZ_CYRILLIC 0x201A # define TT_MS_LANGID_SLOVAK_SLOVAKIA 0x041B # define TT_MS_LANGID_ALBANIAN_ALBANIA 0x041C # define TT_MS_LANGID_SWEDISH_SWEDEN 0x041D # define TT_MS_LANGID_SWEDISH_FINLAND 0x081D # define TT_MS_LANGID_THAI_THAILAND 0x041E # define TT_MS_LANGID_TURKISH_TURKEY 0x041F # define TT_MS_LANGID_URDU_PAKISTAN 0x0420 # define TT_MS_LANGID_INDONESIAN_INDONESIA 0x0421 # define TT_MS_LANGID_UKRAINIAN_UKRAINE 0x0422 # define TT_MS_LANGID_BELARUSIAN_BELARUS 0x0423 # define TT_MS_LANGID_SLOVENIAN_SLOVENIA 0x0424 # define TT_MS_LANGID_ESTONIAN_ESTONIA 0x0425 # define TT_MS_LANGID_LATVIAN_LATVIA 0x0426 # define TT_MS_LANGID_LITHUANIAN_LITHUANIA 0x0427 # define TT_MS_LANGID_TAJIK_TAJIKISTAN 0x0428 # define TT_MS_LANGID_VIETNAMESE_VIET_NAM 0x042A # define TT_MS_LANGID_ARMENIAN_ARMENIA 0x042B # define TT_MS_LANGID_AZERI_AZERBAIJAN_LATIN 0x042C # define TT_MS_LANGID_AZERI_AZERBAIJAN_CYRILLIC 0x082C # define TT_MS_LANGID_BASQUE_BASQUE 0x042D # define TT_MS_LANGID_UPPER_SORBIAN_GERMANY 0x042E # define TT_MS_LANGID_LOWER_SORBIAN_GERMANY 0x082E # define TT_MS_LANGID_MACEDONIAN_MACEDONIA 0x042F # define TT_MS_LANGID_SETSWANA_SOUTH_AFRICA 0x0432 # define TT_MS_LANGID_ISIXHOSA_SOUTH_AFRICA 0x0434 # define TT_MS_LANGID_ISIZULU_SOUTH_AFRICA 0x0435 # define TT_MS_LANGID_AFRIKAANS_SOUTH_AFRICA 0x0436 # define TT_MS_LANGID_GEORGIAN_GEORGIA 0x0437 # define TT_MS_LANGID_FAEROESE_FAEROE_ISLANDS 0x0438 # define TT_MS_LANGID_HINDI_INDIA 0x0439 # define TT_MS_LANGID_MALTESE_MALTA 0x043A # define TT_MS_LANGID_SAMI_NORTHERN_NORWAY 0x043B # define TT_MS_LANGID_SAMI_NORTHERN_SWEDEN 0x083B # define TT_MS_LANGID_SAMI_NORTHERN_FINLAND 0x0C3B # define TT_MS_LANGID_SAMI_LULE_NORWAY 0x103B # define TT_MS_LANGID_SAMI_LULE_SWEDEN 0x143B # define TT_MS_LANGID_SAMI_SOUTHERN_NORWAY 0x183B # define TT_MS_LANGID_SAMI_SOUTHERN_SWEDEN 0x1C3B # define TT_MS_LANGID_SAMI_SKOLT_FINLAND 0x203B # define TT_MS_LANGID_SAMI_INARI_FINLAND 0x243B # define TT_MS_LANGID_IRISH_IRELAND 0x083C # define TT_MS_LANGID_MALAY_MALAYSIA 0x043E # define TT_MS_LANGID_MALAY_BRUNEI_DARUSSALAM 0x083E # define TT_MS_LANGID_KAZAKH_KAZAKHSTAN 0x043F # define TT_MS_LANGID_KYRGYZ_KYRGYZSTAN /* Cyrillic */ 0x0440 # define TT_MS_LANGID_KISWAHILI_KENYA 0x0441 # define TT_MS_LANGID_TURKMEN_TURKMENISTAN 0x0442 # define TT_MS_LANGID_UZBEK_UZBEKISTAN_LATIN 0x0443 # define TT_MS_LANGID_UZBEK_UZBEKISTAN_CYRILLIC 0x0843 # define TT_MS_LANGID_TATAR_RUSSIA 0x0444 # define TT_MS_LANGID_BENGALI_INDIA 0x0445 # define TT_MS_LANGID_BENGALI_BANGLADESH 0x0845 # define TT_MS_LANGID_PUNJABI_INDIA 0x0446 # define TT_MS_LANGID_GUJARATI_INDIA 0x0447 # define TT_MS_LANGID_ODIA_INDIA 0x0448 # define TT_MS_LANGID_TAMIL_INDIA 0x0449 # define TT_MS_LANGID_TELUGU_INDIA 0x044A # define TT_MS_LANGID_KANNADA_INDIA 0x044B # define TT_MS_LANGID_MALAYALAM_INDIA 0x044C # define TT_MS_LANGID_ASSAMESE_INDIA 0x044D # define TT_MS_LANGID_MARATHI_INDIA 0x044E # define TT_MS_LANGID_SANSKRIT_INDIA 0x044F # define TT_MS_LANGID_MONGOLIAN_MONGOLIA /* Cyrillic */ 0x0450 # define TT_MS_LANGID_MONGOLIAN_PRC 0x0850 # define TT_MS_LANGID_TIBETAN_PRC 0x0451 # define TT_MS_LANGID_WELSH_UNITED_KINGDOM 0x0452 # define TT_MS_LANGID_KHMER_CAMBODIA 0x0453 # define TT_MS_LANGID_LAO_LAOS 0x0454 # define TT_MS_LANGID_GALICIAN_GALICIAN 0x0456 # define TT_MS_LANGID_KONKANI_INDIA 0x0457 # define TT_MS_LANGID_SYRIAC_SYRIA 0x045A # define TT_MS_LANGID_SINHALA_SRI_LANKA 0x045B # define TT_MS_LANGID_INUKTITUT_CANADA 0x045D # define TT_MS_LANGID_INUKTITUT_CANADA_LATIN 0x085D # define TT_MS_LANGID_AMHARIC_ETHIOPIA 0x045E # define TT_MS_LANGID_TAMAZIGHT_ALGERIA 0x085F # define TT_MS_LANGID_NEPALI_NEPAL 0x0461 # define TT_MS_LANGID_FRISIAN_NETHERLANDS 0x0462 # define TT_MS_LANGID_PASHTO_AFGHANISTAN 0x0463 # define TT_MS_LANGID_FILIPINO_PHILIPPINES 0x0464 # define TT_MS_LANGID_DHIVEHI_MALDIVES 0x0465 # define TT_MS_LANGID_HAUSA_NIGERIA 0x0468 # define TT_MS_LANGID_YORUBA_NIGERIA 0x046A # define TT_MS_LANGID_QUECHUA_BOLIVIA 0x046B # define TT_MS_LANGID_QUECHUA_ECUADOR 0x086B # define TT_MS_LANGID_QUECHUA_PERU 0x0C6B # define TT_MS_LANGID_SESOTHO_SA_LEBOA_SOUTH_AFRICA 0x046C # define TT_MS_LANGID_BASHKIR_RUSSIA 0x046D # define TT_MS_LANGID_LUXEMBOURGISH_LUXEMBOURG 0x046E # define TT_MS_LANGID_GREENLANDIC_GREENLAND 0x046F # define TT_MS_LANGID_IGBO_NIGERIA 0x0470 # define TT_MS_LANGID_YI_PRC 0x0478 # define TT_MS_LANGID_MAPUDUNGUN_CHILE 0x047A # define TT_MS_LANGID_MOHAWK_MOHAWK 0x047C # define TT_MS_LANGID_BRETON_FRANCE 0x047E # define TT_MS_LANGID_UIGHUR_PRC 0x0480 # define TT_MS_LANGID_MAORI_NEW_ZEALAND 0x0481 # define TT_MS_LANGID_OCCITAN_FRANCE 0x0482 # define TT_MS_LANGID_CORSICAN_FRANCE 0x0483 # define TT_MS_LANGID_ALSATIAN_FRANCE 0x0484 # define TT_MS_LANGID_YAKUT_RUSSIA 0x0485 # define TT_MS_LANGID_KICHE_GUATEMALA 0x0486 # define TT_MS_LANGID_KINYARWANDA_RWANDA 0x0487 # define TT_MS_LANGID_WOLOF_SENEGAL 0x0488 # define TT_MS_LANGID_DARI_AFGHANISTAN 0x048C Possible values of the language identifier field in the name records of the SFNT \u2018name\u2019 table if the \u2018platform\u2019 identifier code is TT_PLATFORM_MICROSOFT . These values are also used as return values for function FT_Get_CMap_Language_ID . The canonical source for Microsoft's IDs is https://docs.microsoft.com/en-us/windows/desktop/Intl/language-identifier-constants-and-strings , however, we only provide macros for language identifiers present in the OpenType specification: Microsoft has abandoned the concept of LCIDs (language code identifiers), and format 1 of the \u2018name\u2019 table provides a better mechanism for languages not covered here. More legacy values not listed in the reference can be found in the FT_TRUETYPE_IDS_H header file. TT_NAME_ID_XXX \u00b6 Defined in FT_TRUETYPE_IDS_H (freetype/ttnameid.h). # define TT_NAME_ID_COPYRIGHT 0 # define TT_NAME_ID_FONT_FAMILY 1 # define TT_NAME_ID_FONT_SUBFAMILY 2 # define TT_NAME_ID_UNIQUE_ID 3 # define TT_NAME_ID_FULL_NAME 4 # define TT_NAME_ID_VERSION_STRING 5 # define TT_NAME_ID_PS_NAME 6 # define TT_NAME_ID_TRADEMARK 7 /* the following values are from the OpenType spec */ # define TT_NAME_ID_MANUFACTURER 8 # define TT_NAME_ID_DESIGNER 9 # define TT_NAME_ID_DESCRIPTION 10 # define TT_NAME_ID_VENDOR_URL 11 # define TT_NAME_ID_DESIGNER_URL 12 # define TT_NAME_ID_LICENSE 13 # define TT_NAME_ID_LICENSE_URL 14 /* number 15 is reserved */ # define TT_NAME_ID_TYPOGRAPHIC_FAMILY 16 # define TT_NAME_ID_TYPOGRAPHIC_SUBFAMILY 17 # define TT_NAME_ID_MAC_FULL_NAME 18 /* The following code is new as of 2000-01-21 */ # define TT_NAME_ID_SAMPLE_TEXT 19 /* This is new in OpenType 1.3 */ # define TT_NAME_ID_CID_FINDFONT_NAME 20 /* This is new in OpenType 1.5 */ # define TT_NAME_ID_WWS_FAMILY 21 # define TT_NAME_ID_WWS_SUBFAMILY 22 /* This is new in OpenType 1.7 */ # define TT_NAME_ID_LIGHT_BACKGROUND 23 # define TT_NAME_ID_DARK_BACKGROUND 24 /* This is new in OpenType 1.8 */ # define TT_NAME_ID_VARIATIONS_PREFIX 25 /* these two values are deprecated */ # define TT_NAME_ID_PREFERRED_FAMILY TT_NAME_ID_TYPOGRAPHIC_FAMILY # define TT_NAME_ID_PREFERRED_SUBFAMILY TT_NAME_ID_TYPOGRAPHIC_SUBFAMILY Possible values of the \u2018name\u2019 identifier field in the name records of an SFNT \u2018name\u2019 table. These values are platform independent. TT_UCR_XXX \u00b6 Defined in FT_TRUETYPE_IDS_H (freetype/ttnameid.h). /* ulUnicodeRange1 */ /* --------------- */ /* Bit 0 Basic Latin */ # define TT_UCR_BASIC_LATIN (1L << 0) /* U+0020-U+007E */ /* Bit 1 C1 Controls and Latin-1 Supplement */ # define TT_UCR_LATIN1_SUPPLEMENT (1L << 1) /* U+0080-U+00FF */ /* Bit 2 Latin Extended-A */ # define TT_UCR_LATIN_EXTENDED_A (1L << 2) /* U+0100-U+017F */ /* Bit 3 Latin Extended-B */ # define TT_UCR_LATIN_EXTENDED_B (1L << 3) /* U+0180-U+024F */ /* Bit 4 IPA Extensions */ /* Phonetic Extensions */ /* Phonetic Extensions Supplement */ # define TT_UCR_IPA_EXTENSIONS (1L << 4) /* U+0250-U+02AF */ /* U+1D00-U+1D7F */ /* U+1D80-U+1DBF */ /* Bit 5 Spacing Modifier Letters */ /* Modifier Tone Letters */ # define TT_UCR_SPACING_MODIFIER (1L << 5) /* U+02B0-U+02FF */ /* U+A700-U+A71F */ /* Bit 6 Combining Diacritical Marks */ /* Combining Diacritical Marks Supplement */ # define TT_UCR_COMBINING_DIACRITICAL_MARKS (1L << 6) /* U+0300-U+036F */ /* U+1DC0-U+1DFF */ /* Bit 7 Greek and Coptic */ # define TT_UCR_GREEK (1L << 7) /* U+0370-U+03FF */ /* Bit 8 Coptic */ # define TT_UCR_COPTIC (1L << 8) /* U+2C80-U+2CFF */ /* Bit 9 Cyrillic */ /* Cyrillic Supplement */ /* Cyrillic Extended-A */ /* Cyrillic Extended-B */ # define TT_UCR_CYRILLIC (1L << 9) /* U+0400-U+04FF */ /* U+0500-U+052F */ /* U+2DE0-U+2DFF */ /* U+A640-U+A69F */ /* Bit 10 Armenian */ # define TT_UCR_ARMENIAN (1L << 10) /* U+0530-U+058F */ /* Bit 11 Hebrew */ # define TT_UCR_HEBREW (1L << 11) /* U+0590-U+05FF */ /* Bit 12 Vai */ # define TT_UCR_VAI (1L << 12) /* U+A500-U+A63F */ /* Bit 13 Arabic */ /* Arabic Supplement */ # define TT_UCR_ARABIC (1L << 13) /* U+0600-U+06FF */ /* U+0750-U+077F */ /* Bit 14 NKo */ # define TT_UCR_NKO (1L << 14) /* U+07C0-U+07FF */ /* Bit 15 Devanagari */ # define TT_UCR_DEVANAGARI (1L << 15) /* U+0900-U+097F */ /* Bit 16 Bengali */ # define TT_UCR_BENGALI (1L << 16) /* U+0980-U+09FF */ /* Bit 17 Gurmukhi */ # define TT_UCR_GURMUKHI (1L << 17) /* U+0A00-U+0A7F */ /* Bit 18 Gujarati */ # define TT_UCR_GUJARATI (1L << 18) /* U+0A80-U+0AFF */ /* Bit 19 Oriya */ # define TT_UCR_ORIYA (1L << 19) /* U+0B00-U+0B7F */ /* Bit 20 Tamil */ # define TT_UCR_TAMIL (1L << 20) /* U+0B80-U+0BFF */ /* Bit 21 Telugu */ # define TT_UCR_TELUGU (1L << 21) /* U+0C00-U+0C7F */ /* Bit 22 Kannada */ # define TT_UCR_KANNADA (1L << 22) /* U+0C80-U+0CFF */ /* Bit 23 Malayalam */ # define TT_UCR_MALAYALAM (1L << 23) /* U+0D00-U+0D7F */ /* Bit 24 Thai */ # define TT_UCR_THAI (1L << 24) /* U+0E00-U+0E7F */ /* Bit 25 Lao */ # define TT_UCR_LAO (1L << 25) /* U+0E80-U+0EFF */ /* Bit 26 Georgian */ /* Georgian Supplement */ # define TT_UCR_GEORGIAN (1L << 26) /* U+10A0-U+10FF */ /* U+2D00-U+2D2F */ /* Bit 27 Balinese */ # define TT_UCR_BALINESE (1L << 27) /* U+1B00-U+1B7F */ /* Bit 28 Hangul Jamo */ # define TT_UCR_HANGUL_JAMO (1L << 28) /* U+1100-U+11FF */ /* Bit 29 Latin Extended Additional */ /* Latin Extended-C */ /* Latin Extended-D */ # define TT_UCR_LATIN_EXTENDED_ADDITIONAL (1L << 29) /* U+1E00-U+1EFF */ /* U+2C60-U+2C7F */ /* U+A720-U+A7FF */ /* Bit 30 Greek Extended */ # define TT_UCR_GREEK_EXTENDED (1L << 30) /* U+1F00-U+1FFF */ /* Bit 31 General Punctuation */ /* Supplemental Punctuation */ # define TT_UCR_GENERAL_PUNCTUATION (1L << 31) /* U+2000-U+206F */ /* U+2E00-U+2E7F */ /* ulUnicodeRange2 */ /* --------------- */ /* Bit 32 Superscripts And Subscripts */ # define TT_UCR_SUPERSCRIPTS_SUBSCRIPTS (1L << 0) /* U+2070-U+209F */ /* Bit 33 Currency Symbols */ # define TT_UCR_CURRENCY_SYMBOLS (1L << 1) /* U+20A0-U+20CF */ /* Bit 34 Combining Diacritical Marks For Symbols */ # define TT_UCR_COMBINING_DIACRITICAL_MARKS_SYMB \\ (1L << 2) /* U+20D0-U+20FF */ /* Bit 35 Letterlike Symbols */ # define TT_UCR_LETTERLIKE_SYMBOLS (1L << 3) /* U+2100-U+214F */ /* Bit 36 Number Forms */ # define TT_UCR_NUMBER_FORMS (1L << 4) /* U+2150-U+218F */ /* Bit 37 Arrows */ /* Supplemental Arrows-A */ /* Supplemental Arrows-B */ /* Miscellaneous Symbols and Arrows */ # define TT_UCR_ARROWS (1L << 5) /* U+2190-U+21FF */ /* U+27F0-U+27FF */ /* U+2900-U+297F */ /* U+2B00-U+2BFF */ /* Bit 38 Mathematical Operators */ /* Supplemental Mathematical Operators */ /* Miscellaneous Mathematical Symbols-A */ /* Miscellaneous Mathematical Symbols-B */ # define TT_UCR_MATHEMATICAL_OPERATORS (1L << 6) /* U+2200-U+22FF */ /* U+2A00-U+2AFF */ /* U+27C0-U+27EF */ /* U+2980-U+29FF */ /* Bit 39 Miscellaneous Technical */ # define TT_UCR_MISCELLANEOUS_TECHNICAL (1L << 7) /* U+2300-U+23FF */ /* Bit 40 Control Pictures */ # define TT_UCR_CONTROL_PICTURES (1L << 8) /* U+2400-U+243F */ /* Bit 41 Optical Character Recognition */ # define TT_UCR_OCR (1L << 9) /* U+2440-U+245F */ /* Bit 42 Enclosed Alphanumerics */ # define TT_UCR_ENCLOSED_ALPHANUMERICS (1L << 10) /* U+2460-U+24FF */ /* Bit 43 Box Drawing */ # define TT_UCR_BOX_DRAWING (1L << 11) /* U+2500-U+257F */ /* Bit 44 Block Elements */ # define TT_UCR_BLOCK_ELEMENTS (1L << 12) /* U+2580-U+259F */ /* Bit 45 Geometric Shapes */ # define TT_UCR_GEOMETRIC_SHAPES (1L << 13) /* U+25A0-U+25FF */ /* Bit 46 Miscellaneous Symbols */ # define TT_UCR_MISCELLANEOUS_SYMBOLS (1L << 14) /* U+2600-U+26FF */ /* Bit 47 Dingbats */ # define TT_UCR_DINGBATS (1L << 15) /* U+2700-U+27BF */ /* Bit 48 CJK Symbols and Punctuation */ # define TT_UCR_CJK_SYMBOLS (1L << 16) /* U+3000-U+303F */ /* Bit 49 Hiragana */ # define TT_UCR_HIRAGANA (1L << 17) /* U+3040-U+309F */ /* Bit 50 Katakana */ /* Katakana Phonetic Extensions */ # define TT_UCR_KATAKANA (1L << 18) /* U+30A0-U+30FF */ /* U+31F0-U+31FF */ /* Bit 51 Bopomofo */ /* Bopomofo Extended */ # define TT_UCR_BOPOMOFO (1L << 19) /* U+3100-U+312F */ /* U+31A0-U+31BF */ /* Bit 52 Hangul Compatibility Jamo */ # define TT_UCR_HANGUL_COMPATIBILITY_JAMO (1L << 20) /* U+3130-U+318F */ /* Bit 53 Phags-Pa */ # define TT_UCR_CJK_MISC (1L << 21) /* U+A840-U+A87F */ # define TT_UCR_KANBUN TT_UCR_CJK_MISC /* deprecated */ # define TT_UCR_PHAGSPA /* Bit 54 Enclosed CJK Letters and Months */ # define TT_UCR_ENCLOSED_CJK_LETTERS_MONTHS (1L << 22) /* U+3200-U+32FF */ /* Bit 55 CJK Compatibility */ # define TT_UCR_CJK_COMPATIBILITY (1L << 23) /* U+3300-U+33FF */ /* Bit 56 Hangul Syllables */ # define TT_UCR_HANGUL (1L << 24) /* U+AC00-U+D7A3 */ /* Bit 57 High Surrogates */ /* High Private Use Surrogates */ /* Low Surrogates */ /* According to OpenType specs v.1.3+, */ /* setting bit 57 implies that there is */ /* at least one codepoint beyond the */ /* Basic Multilingual Plane that is */ /* supported by this font. So it really */ /* means >= U+10000. */ # define TT_UCR_SURROGATES (1L << 25) /* U+D800-U+DB7F */ /* U+DB80-U+DBFF */ /* U+DC00-U+DFFF */ # define TT_UCR_NON_PLANE_0 TT_UCR_SURROGATES /* Bit 58 Phoenician */ # define TT_UCR_PHOENICIAN (1L << 26) /*U+10900-U+1091F*/ /* Bit 59 CJK Unified Ideographs */ /* CJK Radicals Supplement */ /* Kangxi Radicals */ /* Ideographic Description Characters */ /* CJK Unified Ideographs Extension A */ /* CJK Unified Ideographs Extension B */ /* Kanbun */ # define TT_UCR_CJK_UNIFIED_IDEOGRAPHS (1L << 27) /* U+4E00-U+9FFF */ /* U+2E80-U+2EFF */ /* U+2F00-U+2FDF */ /* U+2FF0-U+2FFF */ /* U+3400-U+4DB5 */ /*U+20000-U+2A6DF*/ /* U+3190-U+319F */ /* Bit 60 Private Use */ # define TT_UCR_PRIVATE_USE (1L << 28) /* U+E000-U+F8FF */ /* Bit 61 CJK Strokes */ /* CJK Compatibility Ideographs */ /* CJK Compatibility Ideographs Supplement */ # define TT_UCR_CJK_COMPATIBILITY_IDEOGRAPHS (1L << 29) /* U+31C0-U+31EF */ /* U+F900-U+FAFF */ /*U+2F800-U+2FA1F*/ /* Bit 62 Alphabetic Presentation Forms */ # define TT_UCR_ALPHABETIC_PRESENTATION_FORMS (1L << 30) /* U+FB00-U+FB4F */ /* Bit 63 Arabic Presentation Forms-A */ # define TT_UCR_ARABIC_PRESENTATION_FORMS_A (1L << 31) /* U+FB50-U+FDFF */ /* ulUnicodeRange3 */ /* --------------- */ /* Bit 64 Combining Half Marks */ # define TT_UCR_COMBINING_HALF_MARKS (1L << 0) /* U+FE20-U+FE2F */ /* Bit 65 Vertical forms */ /* CJK Compatibility Forms */ # define TT_UCR_CJK_COMPATIBILITY_FORMS (1L << 1) /* U+FE10-U+FE1F */ /* U+FE30-U+FE4F */ /* Bit 66 Small Form Variants */ # define TT_UCR_SMALL_FORM_VARIANTS (1L << 2) /* U+FE50-U+FE6F */ /* Bit 67 Arabic Presentation Forms-B */ # define TT_UCR_ARABIC_PRESENTATION_FORMS_B (1L << 3) /* U+FE70-U+FEFE */ /* Bit 68 Halfwidth and Fullwidth Forms */ # define TT_UCR_HALFWIDTH_FULLWIDTH_FORMS (1L << 4) /* U+FF00-U+FFEF */ /* Bit 69 Specials */ # define TT_UCR_SPECIALS (1L << 5) /* U+FFF0-U+FFFD */ /* Bit 70 Tibetan */ # define TT_UCR_TIBETAN (1L << 6) /* U+0F00-U+0FFF */ /* Bit 71 Syriac */ # define TT_UCR_SYRIAC (1L << 7) /* U+0700-U+074F */ /* Bit 72 Thaana */ # define TT_UCR_THAANA (1L << 8) /* U+0780-U+07BF */ /* Bit 73 Sinhala */ # define TT_UCR_SINHALA (1L << 9) /* U+0D80-U+0DFF */ /* Bit 74 Myanmar */ # define TT_UCR_MYANMAR (1L << 10) /* U+1000-U+109F */ /* Bit 75 Ethiopic */ /* Ethiopic Supplement */ /* Ethiopic Extended */ # define TT_UCR_ETHIOPIC (1L << 11) /* U+1200-U+137F */ /* U+1380-U+139F */ /* U+2D80-U+2DDF */ /* Bit 76 Cherokee */ # define TT_UCR_CHEROKEE (1L << 12) /* U+13A0-U+13FF */ /* Bit 77 Unified Canadian Aboriginal Syllabics */ # define TT_UCR_CANADIAN_ABORIGINAL_SYLLABICS (1L << 13) /* U+1400-U+167F */ /* Bit 78 Ogham */ # define TT_UCR_OGHAM (1L << 14) /* U+1680-U+169F */ /* Bit 79 Runic */ # define TT_UCR_RUNIC (1L << 15) /* U+16A0-U+16FF */ /* Bit 80 Khmer */ /* Khmer Symbols */ # define TT_UCR_KHMER (1L << 16) /* U+1780-U+17FF */ /* U+19E0-U+19FF */ /* Bit 81 Mongolian */ # define TT_UCR_MONGOLIAN (1L << 17) /* U+1800-U+18AF */ /* Bit 82 Braille Patterns */ # define TT_UCR_BRAILLE (1L << 18) /* U+2800-U+28FF */ /* Bit 83 Yi Syllables */ /* Yi Radicals */ # define TT_UCR_YI (1L << 19) /* U+A000-U+A48F */ /* U+A490-U+A4CF */ /* Bit 84 Tagalog */ /* Hanunoo */ /* Buhid */ /* Tagbanwa */ # define TT_UCR_PHILIPPINE (1L << 20) /* U+1700-U+171F */ /* U+1720-U+173F */ /* U+1740-U+175F */ /* U+1760-U+177F */ /* Bit 85 Old Italic */ # define TT_UCR_OLD_ITALIC (1L << 21) /*U+10300-U+1032F*/ /* Bit 86 Gothic */ # define TT_UCR_GOTHIC (1L << 22) /*U+10330-U+1034F*/ /* Bit 87 Deseret */ # define TT_UCR_DESERET (1L << 23) /*U+10400-U+1044F*/ /* Bit 88 Byzantine Musical Symbols */ /* Musical Symbols */ /* Ancient Greek Musical Notation */ # define TT_UCR_MUSICAL_SYMBOLS (1L << 24) /*U+1D000-U+1D0FF*/ /*U+1D100-U+1D1FF*/ /*U+1D200-U+1D24F*/ /* Bit 89 Mathematical Alphanumeric Symbols */ # define TT_UCR_MATH_ALPHANUMERIC_SYMBOLS (1L << 25) /*U+1D400-U+1D7FF*/ /* Bit 90 Private Use (plane 15) */ /* Private Use (plane 16) */ # define TT_UCR_PRIVATE_USE_SUPPLEMENTARY (1L << 26) /*U+F0000-U+FFFFD*/ /*U+100000-U+10FFFD*/ /* Bit 91 Variation Selectors */ /* Variation Selectors Supplement */ # define TT_UCR_VARIATION_SELECTORS (1L << 27) /* U+FE00-U+FE0F */ /*U+E0100-U+E01EF*/ /* Bit 92 Tags */ # define TT_UCR_TAGS (1L << 28) /*U+E0000-U+E007F*/ /* Bit 93 Limbu */ # define TT_UCR_LIMBU (1L << 29) /* U+1900-U+194F */ /* Bit 94 Tai Le */ # define TT_UCR_TAI_LE (1L << 30) /* U+1950-U+197F */ /* Bit 95 New Tai Lue */ # define TT_UCR_NEW_TAI_LUE (1L << 31) /* U+1980-U+19DF */ /* ulUnicodeRange4 */ /* --------------- */ /* Bit 96 Buginese */ # define TT_UCR_BUGINESE (1L << 0) /* U+1A00-U+1A1F */ /* Bit 97 Glagolitic */ # define TT_UCR_GLAGOLITIC (1L << 1) /* U+2C00-U+2C5F */ /* Bit 98 Tifinagh */ # define TT_UCR_TIFINAGH (1L << 2) /* U+2D30-U+2D7F */ /* Bit 99 Yijing Hexagram Symbols */ # define TT_UCR_YIJING (1L << 3) /* U+4DC0-U+4DFF */ /* Bit 100 Syloti Nagri */ # define TT_UCR_SYLOTI_NAGRI (1L << 4) /* U+A800-U+A82F */ /* Bit 101 Linear B Syllabary */ /* Linear B Ideograms */ /* Aegean Numbers */ # define TT_UCR_LINEAR_B (1L << 5) /*U+10000-U+1007F*/ /*U+10080-U+100FF*/ /*U+10100-U+1013F*/ /* Bit 102 Ancient Greek Numbers */ # define TT_UCR_ANCIENT_GREEK_NUMBERS (1L << 6) /*U+10140-U+1018F*/ /* Bit 103 Ugaritic */ # define TT_UCR_UGARITIC (1L << 7) /*U+10380-U+1039F*/ /* Bit 104 Old Persian */ # define TT_UCR_OLD_PERSIAN (1L << 8) /*U+103A0-U+103DF*/ /* Bit 105 Shavian */ # define TT_UCR_SHAVIAN (1L << 9) /*U+10450-U+1047F*/ /* Bit 106 Osmanya */ # define TT_UCR_OSMANYA (1L << 10) /*U+10480-U+104AF*/ /* Bit 107 Cypriot Syllabary */ # define TT_UCR_CYPRIOT_SYLLABARY (1L << 11) /*U+10800-U+1083F*/ /* Bit 108 Kharoshthi */ # define TT_UCR_KHAROSHTHI (1L << 12) /*U+10A00-U+10A5F*/ /* Bit 109 Tai Xuan Jing Symbols */ # define TT_UCR_TAI_XUAN_JING (1L << 13) /*U+1D300-U+1D35F*/ /* Bit 110 Cuneiform */ /* Cuneiform Numbers and Punctuation */ # define TT_UCR_CUNEIFORM (1L << 14) /*U+12000-U+123FF*/ /*U+12400-U+1247F*/ /* Bit 111 Counting Rod Numerals */ # define TT_UCR_COUNTING_ROD_NUMERALS (1L << 15) /*U+1D360-U+1D37F*/ /* Bit 112 Sundanese */ # define TT_UCR_SUNDANESE (1L << 16) /* U+1B80-U+1BBF */ /* Bit 113 Lepcha */ # define TT_UCR_LEPCHA (1L << 17) /* U+1C00-U+1C4F */ /* Bit 114 Ol Chiki */ # define TT_UCR_OL_CHIKI (1L << 18) /* U+1C50-U+1C7F */ /* Bit 115 Saurashtra */ # define TT_UCR_SAURASHTRA (1L << 19) /* U+A880-U+A8DF */ /* Bit 116 Kayah Li */ # define TT_UCR_KAYAH_LI (1L << 20) /* U+A900-U+A92F */ /* Bit 117 Rejang */ # define TT_UCR_REJANG (1L << 21) /* U+A930-U+A95F */ /* Bit 118 Cham */ # define TT_UCR_CHAM (1L << 22) /* U+AA00-U+AA5F */ /* Bit 119 Ancient Symbols */ # define TT_UCR_ANCIENT_SYMBOLS (1L << 23) /*U+10190-U+101CF*/ /* Bit 120 Phaistos Disc */ # define TT_UCR_PHAISTOS_DISC (1L << 24) /*U+101D0-U+101FF*/ /* Bit 121 Carian */ /* Lycian */ /* Lydian */ # define TT_UCR_OLD_ANATOLIAN (1L << 25) /*U+102A0-U+102DF*/ /*U+10280-U+1029F*/ /*U+10920-U+1093F*/ /* Bit 122 Domino Tiles */ /* Mahjong Tiles */ # define TT_UCR_GAME_TILES (1L << 26) /*U+1F030-U+1F09F*/ /*U+1F000-U+1F02F*/ /* Bit 123-127 Reserved for process-internal usage */ Possible bit mask values for the ulUnicodeRangeX fields in an SFNT \u2018OS/2\u2019 table.","title":"TrueType Tables"},{"location":"ft2-truetype_tables.html#truetype-tables","text":"","title":"TrueType Tables"},{"location":"ft2-truetype_tables.html#synopsis","text":"This section contains definitions of some basic tables specific to TrueType and OpenType as well as some routines used to access and process them.","title":"Synopsis"},{"location":"ft2-truetype_tables.html#tt_header","text":"Defined in FT_TRUETYPE_TABLES_H (freetype/tttables.h). typedef struct TT_Header_ { FT_Fixed Table_Version; FT_Fixed Font_Revision; FT_Long CheckSum_Adjust; FT_Long Magic_Number; FT_UShort Flags; FT_UShort Units_Per_EM; FT_ULong Created [2]; FT_ULong Modified[2]; FT_Short xMin; FT_Short yMin; FT_Short xMax; FT_Short yMax; FT_UShort Mac_Style; FT_UShort Lowest_Rec_PPEM; FT_Short Font_Direction; FT_Short Index_To_Loc_Format; FT_Short Glyph_Data_Format; } TT_Header ; A structure to model a TrueType font header table. All fields follow the OpenType specification. The 64-bit timestamps are stored in two-element arrays Created and Modified , first the upper then the lower 32 bits.","title":"TT_Header"},{"location":"ft2-truetype_tables.html#tt_horiheader","text":"Defined in FT_TRUETYPE_TABLES_H (freetype/tttables.h). typedef struct TT_HoriHeader_ { FT_Fixed Version; FT_Short Ascender; FT_Short Descender; FT_Short Line_Gap; FT_UShort advance_Width_Max; /* advance width maximum */ FT_Short min_Left_Side_Bearing; /* minimum left-sb */ FT_Short min_Right_Side_Bearing; /* minimum right-sb */ FT_Short xMax_Extent; /* xmax extents */ FT_Short caret_Slope_Rise; FT_Short caret_Slope_Run; FT_Short caret_Offset; FT_Short Reserved[4]; FT_Short metric_Data_Format; FT_UShort number_Of_HMetrics; /* The following fields are not defined by the OpenType specification */ /* but they are used to connect the metrics header to the relevant */ /* 'hmtx' table. */ void * long_metrics; void * short_metrics; } TT_HoriHeader ; A structure to model a TrueType horizontal header, the \u2018hhea\u2019 table, as well as the corresponding horizontal metrics table, \u2018hmtx\u2019.","title":"TT_HoriHeader"},{"location":"ft2-truetype_tables.html#tt_vertheader","text":"Defined in FT_TRUETYPE_TABLES_H (freetype/tttables.h). typedef struct TT_VertHeader_ { FT_Fixed Version; FT_Short Ascender; FT_Short Descender; FT_Short Line_Gap; FT_UShort advance_Height_Max; /* advance height maximum */ FT_Short min_Top_Side_Bearing; /* minimum top-sb */ FT_Short min_Bottom_Side_Bearing; /* minimum bottom-sb */ FT_Short yMax_Extent; /* ymax extents */ FT_Short caret_Slope_Rise; FT_Short caret_Slope_Run; FT_Short caret_Offset; FT_Short Reserved[4]; FT_Short metric_Data_Format; FT_UShort number_Of_VMetrics; /* The following fields are not defined by the OpenType specification */ /* but they are used to connect the metrics header to the relevant */ /* 'vmtx' table. */ void * long_metrics; void * short_metrics; } TT_VertHeader ; A structure used to model a TrueType vertical header, the \u2018vhea\u2019 table, as well as the corresponding vertical metrics table, \u2018vmtx\u2019.","title":"TT_VertHeader"},{"location":"ft2-truetype_tables.html#tt_os2","text":"Defined in FT_TRUETYPE_TABLES_H (freetype/tttables.h). typedef struct TT_OS2_ { FT_UShort version; /* 0x0001 - more or 0xFFFF */ FT_Short xAvgCharWidth; FT_UShort usWeightClass; FT_UShort usWidthClass; FT_UShort fsType; FT_Short ySubscriptXSize; FT_Short ySubscriptYSize; FT_Short ySubscriptXOffset; FT_Short ySubscriptYOffset; FT_Short ySuperscriptXSize; FT_Short ySuperscriptYSize; FT_Short ySuperscriptXOffset; FT_Short ySuperscriptYOffset; FT_Short yStrikeoutSize; FT_Short yStrikeoutPosition; FT_Short sFamilyClass; FT_Byte panose[10]; FT_ULong ulUnicodeRange1; /* Bits 0-31 */ FT_ULong ulUnicodeRange2; /* Bits 32-63 */ FT_ULong ulUnicodeRange3; /* Bits 64-95 */ FT_ULong ulUnicodeRange4; /* Bits 96-127 */ FT_Char achVendID[4]; FT_UShort fsSelection; FT_UShort usFirstCharIndex; FT_UShort usLastCharIndex; FT_Short sTypoAscender; FT_Short sTypoDescender; FT_Short sTypoLineGap; FT_UShort usWinAscent; FT_UShort usWinDescent; /* only version 1 and higher: */ FT_ULong ulCodePageRange1; /* Bits 0-31 */ FT_ULong ulCodePageRange2; /* Bits 32-63 */ /* only version 2 and higher: */ FT_Short sxHeight; FT_Short sCapHeight; FT_UShort usDefaultChar; FT_UShort usBreakChar; FT_UShort usMaxContext; /* only version 5 and higher: */ FT_UShort usLowerOpticalPointSize; /* in twips (1/20th points) */ FT_UShort usUpperOpticalPointSize; /* in twips (1/20th points) */ } TT_OS2 ; A structure to model a TrueType \u2018OS/2\u2019 table. All fields comply to the OpenType specification. Note that we now support old Mac fonts that do not include an \u2018OS/2\u2019 table. In this case, the version field is always set to 0xFFFF.","title":"TT_OS2"},{"location":"ft2-truetype_tables.html#tt_postscript","text":"Defined in FT_TRUETYPE_TABLES_H (freetype/tttables.h). typedef struct TT_Postscript_ { FT_Fixed FormatType; FT_Fixed italicAngle; FT_Short underlinePosition; FT_Short underlineThickness; FT_ULong isFixedPitch; FT_ULong minMemType42; FT_ULong maxMemType42; FT_ULong minMemType1; FT_ULong maxMemType1; /* Glyph names follow in the 'post' table, but we don't */ /* load them by default. */ } TT_Postscript ; A structure to model a TrueType \u2018post\u2019 table. All fields comply to the OpenType specification. This structure does not reference a font's PostScript glyph names; use FT_Get_Glyph_Name to retrieve them.","title":"TT_Postscript"},{"location":"ft2-truetype_tables.html#tt_pclt","text":"Defined in FT_TRUETYPE_TABLES_H (freetype/tttables.h). typedef struct TT_PCLT_ { FT_Fixed Version; FT_ULong FontNumber; FT_UShort Pitch; FT_UShort xHeight; FT_UShort Style; FT_UShort TypeFamily; FT_UShort CapHeight; FT_UShort SymbolSet; FT_Char TypeFace[16]; FT_Char CharacterComplement[8]; FT_Char FileName[6]; FT_Char StrokeWeight; FT_Char WidthType; FT_Byte SerifStyle; FT_Byte Reserved; } TT_PCLT ; A structure to model a TrueType \u2018PCLT\u2019 table. All fields comply to the OpenType specification.","title":"TT_PCLT"},{"location":"ft2-truetype_tables.html#tt_maxprofile","text":"Defined in FT_TRUETYPE_TABLES_H (freetype/tttables.h). typedef struct TT_MaxProfile_ { FT_Fixed version; FT_UShort numGlyphs; FT_UShort maxPoints; FT_UShort maxContours; FT_UShort maxCompositePoints; FT_UShort maxCompositeContours; FT_UShort maxZones; FT_UShort maxTwilightPoints; FT_UShort maxStorage; FT_UShort maxFunctionDefs; FT_UShort maxInstructionDefs; FT_UShort maxStackElements; FT_UShort maxSizeOfInstructions; FT_UShort maxComponentElements; FT_UShort maxComponentDepth; } TT_MaxProfile ; The maximum profile (\u2018maxp\u2019) table contains many max values, which can be used to pre-allocate arrays for speeding up glyph loading and hinting.","title":"TT_MaxProfile"},{"location":"ft2-truetype_tables.html#ft_sfnt_tag","text":"Defined in FT_TRUETYPE_TABLES_H (freetype/tttables.h). typedef enum FT_Sfnt_Tag_ { FT_SFNT_HEAD , FT_SFNT_MAXP , FT_SFNT_OS2 , FT_SFNT_HHEA , FT_SFNT_VHEA , FT_SFNT_POST , FT_SFNT_PCLT , FT_SFNT_MAX } FT_Sfnt_Tag ; /* these constants are deprecated; use the corresponding ` FT_Sfnt_Tag ` */ /* values instead */ # define ft_sfnt_head FT_SFNT_HEAD # define ft_sfnt_maxp FT_SFNT_MAXP # define ft_sfnt_os2 FT_SFNT_OS2 # define ft_sfnt_hhea FT_SFNT_HHEA # define ft_sfnt_vhea FT_SFNT_VHEA # define ft_sfnt_post FT_SFNT_POST # define ft_sfnt_pclt FT_SFNT_PCLT An enumeration to specify indices of SFNT tables loaded and parsed by FreeType during initialization of an SFNT font. Used in the FT_Get_Sfnt_Table API function.","title":"FT_Sfnt_Tag"},{"location":"ft2-truetype_tables.html#ft_get_sfnt_table","text":"Defined in FT_TRUETYPE_TABLES_H (freetype/tttables.h). FT_EXPORT( void * ) FT_Get_Sfnt_Table ( FT_Face face, FT_Sfnt_Tag tag ); Return a pointer to a given SFNT table stored within a face.","title":"FT_Get_Sfnt_Table"},{"location":"ft2-truetype_tables.html#ft_load_sfnt_table","text":"Defined in FT_TRUETYPE_TABLES_H (freetype/tttables.h). FT_EXPORT( FT_Error ) FT_Load_Sfnt_Table ( FT_Face face, FT_ULong tag, FT_Long offset, FT_Byte * buffer, FT_ULong * length ); Load any SFNT font table into client memory.","title":"FT_Load_Sfnt_Table"},{"location":"ft2-truetype_tables.html#ft_sfnt_table_info","text":"Defined in FT_TRUETYPE_TABLES_H (freetype/tttables.h). FT_EXPORT( FT_Error ) FT_Sfnt_Table_Info ( FT_Face face, FT_UInt table_index, FT_ULong *tag, FT_ULong *length ); Return information on an SFNT table.","title":"FT_Sfnt_Table_Info"},{"location":"ft2-truetype_tables.html#ft_get_cmap_language_id","text":"Defined in FT_TRUETYPE_TABLES_H (freetype/tttables.h). FT_EXPORT( FT_ULong ) FT_Get_CMap_Language_ID ( FT_CharMap charmap ); Return cmap language ID as specified in the OpenType standard. Definitions of language ID values are in file FT_TRUETYPE_IDS_H .","title":"FT_Get_CMap_Language_ID"},{"location":"ft2-truetype_tables.html#ft_get_cmap_format","text":"Defined in FT_TRUETYPE_TABLES_H (freetype/tttables.h). FT_EXPORT( FT_Long ) FT_Get_CMap_Format ( FT_CharMap charmap ); Return the format of an SFNT \u2018cmap\u2019 table.","title":"FT_Get_CMap_Format"},{"location":"ft2-truetype_tables.html#ft_param_tag_unpatented_hinting","text":"# define FT_PARAM_TAG_UNPATENTED_HINTING \\ FT_MAKE_TAG ( 'u', 'n', 'p', 'a' ) Deprecated, no effect. Previously: A constant used as the tag of an FT_Parameter structure to indicate that unpatented methods only should be used by the TrueType bytecode interpreter for a typeface opened by FT_Open_Face .","title":"FT_PARAM_TAG_UNPATENTED_HINTING"},{"location":"ft2-truetype_tables.html#tt_platform_xxx","text":"Defined in FT_TRUETYPE_IDS_H (freetype/ttnameid.h). # define TT_PLATFORM_APPLE_UNICODE 0 # define TT_PLATFORM_MACINTOSH 1 # define TT_PLATFORM_ISO 2 /* deprecated */ # define TT_PLATFORM_MICROSOFT 3 # define TT_PLATFORM_CUSTOM 4 # define TT_PLATFORM_ADOBE 7 /* artificial */ A list of valid values for the platform_id identifier code in FT_CharMapRec and FT_SfntName structures.","title":"TT_PLATFORM_XXX"},{"location":"ft2-truetype_tables.html#tt_apple_id_xxx","text":"Defined in FT_TRUETYPE_IDS_H (freetype/ttnameid.h). # define TT_APPLE_ID_DEFAULT 0 /* Unicode 1.0 */ # define TT_APPLE_ID_UNICODE_1_1 1 /* specify Hangul at U+34xx */ # define TT_APPLE_ID_ISO_10646 2 /* deprecated */ # define TT_APPLE_ID_UNICODE_2_0 3 /* or later */ # define TT_APPLE_ID_UNICODE_32 4 /* 2.0 or later, full repertoire */ # define TT_APPLE_ID_VARIANT_SELECTOR 5 /* variation selector data */ # define TT_APPLE_ID_FULL_UNICODE 6 /* used with type 13 cmaps */ A list of valid values for the encoding_id for TT_PLATFORM_APPLE_UNICODE charmaps and name entries.","title":"TT_APPLE_ID_XXX"},{"location":"ft2-truetype_tables.html#tt_mac_id_xxx","text":"Defined in FT_TRUETYPE_IDS_H (freetype/ttnameid.h). # define TT_MAC_ID_ROMAN 0 # define TT_MAC_ID_JAPANESE 1 # define TT_MAC_ID_TRADITIONAL_CHINESE 2 # define TT_MAC_ID_KOREAN 3 # define TT_MAC_ID_ARABIC 4 # define TT_MAC_ID_HEBREW 5 # define TT_MAC_ID_GREEK 6 # define TT_MAC_ID_RUSSIAN 7 # define TT_MAC_ID_RSYMBOL 8 # define TT_MAC_ID_DEVANAGARI 9 # define TT_MAC_ID_GURMUKHI 10 # define TT_MAC_ID_GUJARATI 11 # define TT_MAC_ID_ORIYA 12 # define TT_MAC_ID_BENGALI 13 # define TT_MAC_ID_TAMIL 14 # define TT_MAC_ID_TELUGU 15 # define TT_MAC_ID_KANNADA 16 # define TT_MAC_ID_MALAYALAM 17 # define TT_MAC_ID_SINHALESE 18 # define TT_MAC_ID_BURMESE 19 # define TT_MAC_ID_KHMER 20 # define TT_MAC_ID_THAI 21 # define TT_MAC_ID_LAOTIAN 22 # define TT_MAC_ID_GEORGIAN 23 # define TT_MAC_ID_ARMENIAN 24 # define TT_MAC_ID_MALDIVIAN 25 # define TT_MAC_ID_SIMPLIFIED_CHINESE 25 # define TT_MAC_ID_TIBETAN 26 # define TT_MAC_ID_MONGOLIAN 27 # define TT_MAC_ID_GEEZ 28 # define TT_MAC_ID_SLAVIC 29 # define TT_MAC_ID_VIETNAMESE 30 # define TT_MAC_ID_SINDHI 31 # define TT_MAC_ID_UNINTERP 32 A list of valid values for the encoding_id for TT_PLATFORM_MACINTOSH charmaps and name entries.","title":"TT_MAC_ID_XXX"},{"location":"ft2-truetype_tables.html#tt_iso_id_xxx","text":"Defined in FT_TRUETYPE_IDS_H (freetype/ttnameid.h). # define TT_ISO_ID_7BIT_ASCII 0 # define TT_ISO_ID_10646 1 # define TT_ISO_ID_8859_1 2 A list of valid values for the encoding_id for TT_PLATFORM_ISO charmaps and name entries. Their use is now deprecated.","title":"TT_ISO_ID_XXX"},{"location":"ft2-truetype_tables.html#tt_ms_id_xxx","text":"Defined in FT_TRUETYPE_IDS_H (freetype/ttnameid.h). # define TT_MS_ID_SYMBOL_CS 0 # define TT_MS_ID_UNICODE_CS 1 # define TT_MS_ID_SJIS 2 # define TT_MS_ID_PRC 3 # define TT_MS_ID_BIG_5 4 # define TT_MS_ID_WANSUNG 5 # define TT_MS_ID_JOHAB 6 # define TT_MS_ID_UCS_4 10 /* this value is deprecated */ # define TT_MS_ID_GB2312 TT_MS_ID_PRC A list of valid values for the encoding_id for TT_PLATFORM_MICROSOFT charmaps and name entries.","title":"TT_MS_ID_XXX"},{"location":"ft2-truetype_tables.html#tt_adobe_id_xxx","text":"Defined in FT_TRUETYPE_IDS_H (freetype/ttnameid.h). # define TT_ADOBE_ID_STANDARD 0 # define TT_ADOBE_ID_EXPERT 1 # define TT_ADOBE_ID_CUSTOM 2 # define TT_ADOBE_ID_LATIN_1 3 A list of valid values for the encoding_id for TT_PLATFORM_ADOBE charmaps. This is a FreeType-specific extension!","title":"TT_ADOBE_ID_XXX"},{"location":"ft2-truetype_tables.html#tt_mac_langid_xxx","text":"Defined in FT_TRUETYPE_IDS_H (freetype/ttnameid.h). # define TT_MAC_LANGID_ENGLISH 0 # define TT_MAC_LANGID_FRENCH 1 # define TT_MAC_LANGID_GERMAN 2 # define TT_MAC_LANGID_ITALIAN 3 # define TT_MAC_LANGID_DUTCH 4 # define TT_MAC_LANGID_SWEDISH 5 # define TT_MAC_LANGID_SPANISH 6 # define TT_MAC_LANGID_DANISH 7 # define TT_MAC_LANGID_PORTUGUESE 8 # define TT_MAC_LANGID_NORWEGIAN 9 # define TT_MAC_LANGID_HEBREW 10 # define TT_MAC_LANGID_JAPANESE 11 # define TT_MAC_LANGID_ARABIC 12 # define TT_MAC_LANGID_FINNISH 13 # define TT_MAC_LANGID_GREEK 14 # define TT_MAC_LANGID_ICELANDIC 15 # define TT_MAC_LANGID_MALTESE 16 # define TT_MAC_LANGID_TURKISH 17 # define TT_MAC_LANGID_CROATIAN 18 # define TT_MAC_LANGID_CHINESE_TRADITIONAL 19 # define TT_MAC_LANGID_URDU 20 # define TT_MAC_LANGID_HINDI 21 # define TT_MAC_LANGID_THAI 22 # define TT_MAC_LANGID_KOREAN 23 # define TT_MAC_LANGID_LITHUANIAN 24 # define TT_MAC_LANGID_POLISH 25 # define TT_MAC_LANGID_HUNGARIAN 26 # define TT_MAC_LANGID_ESTONIAN 27 # define TT_MAC_LANGID_LETTISH 28 # define TT_MAC_LANGID_SAAMISK 29 # define TT_MAC_LANGID_FAEROESE 30 # define TT_MAC_LANGID_FARSI 31 # define TT_MAC_LANGID_RUSSIAN 32 # define TT_MAC_LANGID_CHINESE_SIMPLIFIED 33 # define TT_MAC_LANGID_FLEMISH 34 # define TT_MAC_LANGID_IRISH 35 # define TT_MAC_LANGID_ALBANIAN 36 # define TT_MAC_LANGID_ROMANIAN 37 # define TT_MAC_LANGID_CZECH 38 # define TT_MAC_LANGID_SLOVAK 39 # define TT_MAC_LANGID_SLOVENIAN 40 # define TT_MAC_LANGID_YIDDISH 41 # define TT_MAC_LANGID_SERBIAN 42 # define TT_MAC_LANGID_MACEDONIAN 43 # define TT_MAC_LANGID_BULGARIAN 44 # define TT_MAC_LANGID_UKRAINIAN 45 # define TT_MAC_LANGID_BYELORUSSIAN 46 # define TT_MAC_LANGID_UZBEK 47 # define TT_MAC_LANGID_KAZAKH 48 # define TT_MAC_LANGID_AZERBAIJANI 49 # define TT_MAC_LANGID_AZERBAIJANI_CYRILLIC_SCRIPT 49 # define TT_MAC_LANGID_AZERBAIJANI_ARABIC_SCRIPT 50 # define TT_MAC_LANGID_ARMENIAN 51 # define TT_MAC_LANGID_GEORGIAN 52 # define TT_MAC_LANGID_MOLDAVIAN 53 # define TT_MAC_LANGID_KIRGHIZ 54 # define TT_MAC_LANGID_TAJIKI 55 # define TT_MAC_LANGID_TURKMEN 56 # define TT_MAC_LANGID_MONGOLIAN 57 # define TT_MAC_LANGID_MONGOLIAN_MONGOLIAN_SCRIPT 57 # define TT_MAC_LANGID_MONGOLIAN_CYRILLIC_SCRIPT 58 # define TT_MAC_LANGID_PASHTO 59 # define TT_MAC_LANGID_KURDISH 60 # define TT_MAC_LANGID_KASHMIRI 61 # define TT_MAC_LANGID_SINDHI 62 # define TT_MAC_LANGID_TIBETAN 63 # define TT_MAC_LANGID_NEPALI 64 # define TT_MAC_LANGID_SANSKRIT 65 # define TT_MAC_LANGID_MARATHI 66 # define TT_MAC_LANGID_BENGALI 67 # define TT_MAC_LANGID_ASSAMESE 68 # define TT_MAC_LANGID_GUJARATI 69 # define TT_MAC_LANGID_PUNJABI 70 # define TT_MAC_LANGID_ORIYA 71 # define TT_MAC_LANGID_MALAYALAM 72 # define TT_MAC_LANGID_KANNADA 73 # define TT_MAC_LANGID_TAMIL 74 # define TT_MAC_LANGID_TELUGU 75 # define TT_MAC_LANGID_SINHALESE 76 # define TT_MAC_LANGID_BURMESE 77 # define TT_MAC_LANGID_KHMER 78 # define TT_MAC_LANGID_LAO 79 # define TT_MAC_LANGID_VIETNAMESE 80 # define TT_MAC_LANGID_INDONESIAN 81 # define TT_MAC_LANGID_TAGALOG 82 # define TT_MAC_LANGID_MALAY_ROMAN_SCRIPT 83 # define TT_MAC_LANGID_MALAY_ARABIC_SCRIPT 84 # define TT_MAC_LANGID_AMHARIC 85 # define TT_MAC_LANGID_TIGRINYA 86 # define TT_MAC_LANGID_GALLA 87 # define TT_MAC_LANGID_SOMALI 88 # define TT_MAC_LANGID_SWAHILI 89 # define TT_MAC_LANGID_RUANDA 90 # define TT_MAC_LANGID_RUNDI 91 # define TT_MAC_LANGID_CHEWA 92 # define TT_MAC_LANGID_MALAGASY 93 # define TT_MAC_LANGID_ESPERANTO 94 # define TT_MAC_LANGID_WELSH 128 # define TT_MAC_LANGID_BASQUE 129 # define TT_MAC_LANGID_CATALAN 130 # define TT_MAC_LANGID_LATIN 131 # define TT_MAC_LANGID_QUECHUA 132 # define TT_MAC_LANGID_GUARANI 133 # define TT_MAC_LANGID_AYMARA 134 # define TT_MAC_LANGID_TATAR 135 # define TT_MAC_LANGID_UIGHUR 136 # define TT_MAC_LANGID_DZONGKHA 137 # define TT_MAC_LANGID_JAVANESE 138 # define TT_MAC_LANGID_SUNDANESE 139 /* The following codes are new as of 2000-03-10 */ # define TT_MAC_LANGID_GALICIAN 140 # define TT_MAC_LANGID_AFRIKAANS 141 # define TT_MAC_LANGID_BRETON 142 # define TT_MAC_LANGID_INUKTITUT 143 # define TT_MAC_LANGID_SCOTTISH_GAELIC 144 # define TT_MAC_LANGID_MANX_GAELIC 145 # define TT_MAC_LANGID_IRISH_GAELIC 146 # define TT_MAC_LANGID_TONGAN 147 # define TT_MAC_LANGID_GREEK_POLYTONIC 148 # define TT_MAC_LANGID_GREELANDIC 149 # define TT_MAC_LANGID_AZERBAIJANI_ROMAN_SCRIPT 150 Possible values of the language identifier field in the name records of the SFNT \u2018name\u2019 table if the \u2018platform\u2019 identifier code is TT_PLATFORM_MACINTOSH . These values are also used as return values for function FT_Get_CMap_Language_ID . The canonical source for Apple's IDs is https://developer.apple.com/fonts/TrueType-Reference-Manual/RM06/Chap6name.html","title":"TT_MAC_LANGID_XXX"},{"location":"ft2-truetype_tables.html#tt_ms_langid_xxx","text":"Defined in FT_TRUETYPE_IDS_H (freetype/ttnameid.h). # define TT_MS_LANGID_ARABIC_SAUDI_ARABIA 0x0401 # define TT_MS_LANGID_ARABIC_IRAQ 0x0801 # define TT_MS_LANGID_ARABIC_EGYPT 0x0C01 # define TT_MS_LANGID_ARABIC_LIBYA 0x1001 # define TT_MS_LANGID_ARABIC_ALGERIA 0x1401 # define TT_MS_LANGID_ARABIC_MOROCCO 0x1801 # define TT_MS_LANGID_ARABIC_TUNISIA 0x1C01 # define TT_MS_LANGID_ARABIC_OMAN 0x2001 # define TT_MS_LANGID_ARABIC_YEMEN 0x2401 # define TT_MS_LANGID_ARABIC_SYRIA 0x2801 # define TT_MS_LANGID_ARABIC_JORDAN 0x2C01 # define TT_MS_LANGID_ARABIC_LEBANON 0x3001 # define TT_MS_LANGID_ARABIC_KUWAIT 0x3401 # define TT_MS_LANGID_ARABIC_UAE 0x3801 # define TT_MS_LANGID_ARABIC_BAHRAIN 0x3C01 # define TT_MS_LANGID_ARABIC_QATAR 0x4001 # define TT_MS_LANGID_BULGARIAN_BULGARIA 0x0402 # define TT_MS_LANGID_CATALAN_CATALAN 0x0403 # define TT_MS_LANGID_CHINESE_TAIWAN 0x0404 # define TT_MS_LANGID_CHINESE_PRC 0x0804 # define TT_MS_LANGID_CHINESE_HONG_KONG 0x0C04 # define TT_MS_LANGID_CHINESE_SINGAPORE 0x1004 # define TT_MS_LANGID_CHINESE_MACAO 0x1404 # define TT_MS_LANGID_CZECH_CZECH_REPUBLIC 0x0405 # define TT_MS_LANGID_DANISH_DENMARK 0x0406 # define TT_MS_LANGID_GERMAN_GERMANY 0x0407 # define TT_MS_LANGID_GERMAN_SWITZERLAND 0x0807 # define TT_MS_LANGID_GERMAN_AUSTRIA 0x0C07 # define TT_MS_LANGID_GERMAN_LUXEMBOURG 0x1007 # define TT_MS_LANGID_GERMAN_LIECHTENSTEIN 0x1407 # define TT_MS_LANGID_GREEK_GREECE 0x0408 # define TT_MS_LANGID_ENGLISH_UNITED_STATES 0x0409 # define TT_MS_LANGID_ENGLISH_UNITED_KINGDOM 0x0809 # define TT_MS_LANGID_ENGLISH_AUSTRALIA 0x0C09 # define TT_MS_LANGID_ENGLISH_CANADA 0x1009 # define TT_MS_LANGID_ENGLISH_NEW_ZEALAND 0x1409 # define TT_MS_LANGID_ENGLISH_IRELAND 0x1809 # define TT_MS_LANGID_ENGLISH_SOUTH_AFRICA 0x1C09 # define TT_MS_LANGID_ENGLISH_JAMAICA 0x2009 # define TT_MS_LANGID_ENGLISH_CARIBBEAN 0x2409 # define TT_MS_LANGID_ENGLISH_BELIZE 0x2809 # define TT_MS_LANGID_ENGLISH_TRINIDAD 0x2C09 # define TT_MS_LANGID_ENGLISH_ZIMBABWE 0x3009 # define TT_MS_LANGID_ENGLISH_PHILIPPINES 0x3409 # define TT_MS_LANGID_ENGLISH_INDIA 0x4009 # define TT_MS_LANGID_ENGLISH_MALAYSIA 0x4409 # define TT_MS_LANGID_ENGLISH_SINGAPORE 0x4809 # define TT_MS_LANGID_SPANISH_SPAIN_TRADITIONAL_SORT 0x040A # define TT_MS_LANGID_SPANISH_MEXICO 0x080A # define TT_MS_LANGID_SPANISH_SPAIN_MODERN_SORT 0x0C0A # define TT_MS_LANGID_SPANISH_GUATEMALA 0x100A # define TT_MS_LANGID_SPANISH_COSTA_RICA 0x140A # define TT_MS_LANGID_SPANISH_PANAMA 0x180A # define TT_MS_LANGID_SPANISH_DOMINICAN_REPUBLIC 0x1C0A # define TT_MS_LANGID_SPANISH_VENEZUELA 0x200A # define TT_MS_LANGID_SPANISH_COLOMBIA 0x240A # define TT_MS_LANGID_SPANISH_PERU 0x280A # define TT_MS_LANGID_SPANISH_ARGENTINA 0x2C0A # define TT_MS_LANGID_SPANISH_ECUADOR 0x300A # define TT_MS_LANGID_SPANISH_CHILE 0x340A # define TT_MS_LANGID_SPANISH_URUGUAY 0x380A # define TT_MS_LANGID_SPANISH_PARAGUAY 0x3C0A # define TT_MS_LANGID_SPANISH_BOLIVIA 0x400A # define TT_MS_LANGID_SPANISH_EL_SALVADOR 0x440A # define TT_MS_LANGID_SPANISH_HONDURAS 0x480A # define TT_MS_LANGID_SPANISH_NICARAGUA 0x4C0A # define TT_MS_LANGID_SPANISH_PUERTO_RICO 0x500A # define TT_MS_LANGID_SPANISH_UNITED_STATES 0x540A # define TT_MS_LANGID_FINNISH_FINLAND 0x040B # define TT_MS_LANGID_FRENCH_FRANCE 0x040C # define TT_MS_LANGID_FRENCH_BELGIUM 0x080C # define TT_MS_LANGID_FRENCH_CANADA 0x0C0C # define TT_MS_LANGID_FRENCH_SWITZERLAND 0x100C # define TT_MS_LANGID_FRENCH_LUXEMBOURG 0x140C # define TT_MS_LANGID_FRENCH_MONACO 0x180C # define TT_MS_LANGID_HEBREW_ISRAEL 0x040D # define TT_MS_LANGID_HUNGARIAN_HUNGARY 0x040E # define TT_MS_LANGID_ICELANDIC_ICELAND 0x040F # define TT_MS_LANGID_ITALIAN_ITALY 0x0410 # define TT_MS_LANGID_ITALIAN_SWITZERLAND 0x0810 # define TT_MS_LANGID_JAPANESE_JAPAN 0x0411 # define TT_MS_LANGID_KOREAN_KOREA 0x0412 # define TT_MS_LANGID_DUTCH_NETHERLANDS 0x0413 # define TT_MS_LANGID_DUTCH_BELGIUM 0x0813 # define TT_MS_LANGID_NORWEGIAN_NORWAY_BOKMAL 0x0414 # define TT_MS_LANGID_NORWEGIAN_NORWAY_NYNORSK 0x0814 # define TT_MS_LANGID_POLISH_POLAND 0x0415 # define TT_MS_LANGID_PORTUGUESE_BRAZIL 0x0416 # define TT_MS_LANGID_PORTUGUESE_PORTUGAL 0x0816 # define TT_MS_LANGID_ROMANSH_SWITZERLAND 0x0417 # define TT_MS_LANGID_ROMANIAN_ROMANIA 0x0418 # define TT_MS_LANGID_RUSSIAN_RUSSIA 0x0419 # define TT_MS_LANGID_CROATIAN_CROATIA 0x041A # define TT_MS_LANGID_SERBIAN_SERBIA_LATIN 0x081A # define TT_MS_LANGID_SERBIAN_SERBIA_CYRILLIC 0x0C1A # define TT_MS_LANGID_CROATIAN_BOSNIA_HERZEGOVINA 0x101A # define TT_MS_LANGID_BOSNIAN_BOSNIA_HERZEGOVINA 0x141A # define TT_MS_LANGID_SERBIAN_BOSNIA_HERZ_LATIN 0x181A # define TT_MS_LANGID_SERBIAN_BOSNIA_HERZ_CYRILLIC 0x1C1A # define TT_MS_LANGID_BOSNIAN_BOSNIA_HERZ_CYRILLIC 0x201A # define TT_MS_LANGID_SLOVAK_SLOVAKIA 0x041B # define TT_MS_LANGID_ALBANIAN_ALBANIA 0x041C # define TT_MS_LANGID_SWEDISH_SWEDEN 0x041D # define TT_MS_LANGID_SWEDISH_FINLAND 0x081D # define TT_MS_LANGID_THAI_THAILAND 0x041E # define TT_MS_LANGID_TURKISH_TURKEY 0x041F # define TT_MS_LANGID_URDU_PAKISTAN 0x0420 # define TT_MS_LANGID_INDONESIAN_INDONESIA 0x0421 # define TT_MS_LANGID_UKRAINIAN_UKRAINE 0x0422 # define TT_MS_LANGID_BELARUSIAN_BELARUS 0x0423 # define TT_MS_LANGID_SLOVENIAN_SLOVENIA 0x0424 # define TT_MS_LANGID_ESTONIAN_ESTONIA 0x0425 # define TT_MS_LANGID_LATVIAN_LATVIA 0x0426 # define TT_MS_LANGID_LITHUANIAN_LITHUANIA 0x0427 # define TT_MS_LANGID_TAJIK_TAJIKISTAN 0x0428 # define TT_MS_LANGID_VIETNAMESE_VIET_NAM 0x042A # define TT_MS_LANGID_ARMENIAN_ARMENIA 0x042B # define TT_MS_LANGID_AZERI_AZERBAIJAN_LATIN 0x042C # define TT_MS_LANGID_AZERI_AZERBAIJAN_CYRILLIC 0x082C # define TT_MS_LANGID_BASQUE_BASQUE 0x042D # define TT_MS_LANGID_UPPER_SORBIAN_GERMANY 0x042E # define TT_MS_LANGID_LOWER_SORBIAN_GERMANY 0x082E # define TT_MS_LANGID_MACEDONIAN_MACEDONIA 0x042F # define TT_MS_LANGID_SETSWANA_SOUTH_AFRICA 0x0432 # define TT_MS_LANGID_ISIXHOSA_SOUTH_AFRICA 0x0434 # define TT_MS_LANGID_ISIZULU_SOUTH_AFRICA 0x0435 # define TT_MS_LANGID_AFRIKAANS_SOUTH_AFRICA 0x0436 # define TT_MS_LANGID_GEORGIAN_GEORGIA 0x0437 # define TT_MS_LANGID_FAEROESE_FAEROE_ISLANDS 0x0438 # define TT_MS_LANGID_HINDI_INDIA 0x0439 # define TT_MS_LANGID_MALTESE_MALTA 0x043A # define TT_MS_LANGID_SAMI_NORTHERN_NORWAY 0x043B # define TT_MS_LANGID_SAMI_NORTHERN_SWEDEN 0x083B # define TT_MS_LANGID_SAMI_NORTHERN_FINLAND 0x0C3B # define TT_MS_LANGID_SAMI_LULE_NORWAY 0x103B # define TT_MS_LANGID_SAMI_LULE_SWEDEN 0x143B # define TT_MS_LANGID_SAMI_SOUTHERN_NORWAY 0x183B # define TT_MS_LANGID_SAMI_SOUTHERN_SWEDEN 0x1C3B # define TT_MS_LANGID_SAMI_SKOLT_FINLAND 0x203B # define TT_MS_LANGID_SAMI_INARI_FINLAND 0x243B # define TT_MS_LANGID_IRISH_IRELAND 0x083C # define TT_MS_LANGID_MALAY_MALAYSIA 0x043E # define TT_MS_LANGID_MALAY_BRUNEI_DARUSSALAM 0x083E # define TT_MS_LANGID_KAZAKH_KAZAKHSTAN 0x043F # define TT_MS_LANGID_KYRGYZ_KYRGYZSTAN /* Cyrillic */ 0x0440 # define TT_MS_LANGID_KISWAHILI_KENYA 0x0441 # define TT_MS_LANGID_TURKMEN_TURKMENISTAN 0x0442 # define TT_MS_LANGID_UZBEK_UZBEKISTAN_LATIN 0x0443 # define TT_MS_LANGID_UZBEK_UZBEKISTAN_CYRILLIC 0x0843 # define TT_MS_LANGID_TATAR_RUSSIA 0x0444 # define TT_MS_LANGID_BENGALI_INDIA 0x0445 # define TT_MS_LANGID_BENGALI_BANGLADESH 0x0845 # define TT_MS_LANGID_PUNJABI_INDIA 0x0446 # define TT_MS_LANGID_GUJARATI_INDIA 0x0447 # define TT_MS_LANGID_ODIA_INDIA 0x0448 # define TT_MS_LANGID_TAMIL_INDIA 0x0449 # define TT_MS_LANGID_TELUGU_INDIA 0x044A # define TT_MS_LANGID_KANNADA_INDIA 0x044B # define TT_MS_LANGID_MALAYALAM_INDIA 0x044C # define TT_MS_LANGID_ASSAMESE_INDIA 0x044D # define TT_MS_LANGID_MARATHI_INDIA 0x044E # define TT_MS_LANGID_SANSKRIT_INDIA 0x044F # define TT_MS_LANGID_MONGOLIAN_MONGOLIA /* Cyrillic */ 0x0450 # define TT_MS_LANGID_MONGOLIAN_PRC 0x0850 # define TT_MS_LANGID_TIBETAN_PRC 0x0451 # define TT_MS_LANGID_WELSH_UNITED_KINGDOM 0x0452 # define TT_MS_LANGID_KHMER_CAMBODIA 0x0453 # define TT_MS_LANGID_LAO_LAOS 0x0454 # define TT_MS_LANGID_GALICIAN_GALICIAN 0x0456 # define TT_MS_LANGID_KONKANI_INDIA 0x0457 # define TT_MS_LANGID_SYRIAC_SYRIA 0x045A # define TT_MS_LANGID_SINHALA_SRI_LANKA 0x045B # define TT_MS_LANGID_INUKTITUT_CANADA 0x045D # define TT_MS_LANGID_INUKTITUT_CANADA_LATIN 0x085D # define TT_MS_LANGID_AMHARIC_ETHIOPIA 0x045E # define TT_MS_LANGID_TAMAZIGHT_ALGERIA 0x085F # define TT_MS_LANGID_NEPALI_NEPAL 0x0461 # define TT_MS_LANGID_FRISIAN_NETHERLANDS 0x0462 # define TT_MS_LANGID_PASHTO_AFGHANISTAN 0x0463 # define TT_MS_LANGID_FILIPINO_PHILIPPINES 0x0464 # define TT_MS_LANGID_DHIVEHI_MALDIVES 0x0465 # define TT_MS_LANGID_HAUSA_NIGERIA 0x0468 # define TT_MS_LANGID_YORUBA_NIGERIA 0x046A # define TT_MS_LANGID_QUECHUA_BOLIVIA 0x046B # define TT_MS_LANGID_QUECHUA_ECUADOR 0x086B # define TT_MS_LANGID_QUECHUA_PERU 0x0C6B # define TT_MS_LANGID_SESOTHO_SA_LEBOA_SOUTH_AFRICA 0x046C # define TT_MS_LANGID_BASHKIR_RUSSIA 0x046D # define TT_MS_LANGID_LUXEMBOURGISH_LUXEMBOURG 0x046E # define TT_MS_LANGID_GREENLANDIC_GREENLAND 0x046F # define TT_MS_LANGID_IGBO_NIGERIA 0x0470 # define TT_MS_LANGID_YI_PRC 0x0478 # define TT_MS_LANGID_MAPUDUNGUN_CHILE 0x047A # define TT_MS_LANGID_MOHAWK_MOHAWK 0x047C # define TT_MS_LANGID_BRETON_FRANCE 0x047E # define TT_MS_LANGID_UIGHUR_PRC 0x0480 # define TT_MS_LANGID_MAORI_NEW_ZEALAND 0x0481 # define TT_MS_LANGID_OCCITAN_FRANCE 0x0482 # define TT_MS_LANGID_CORSICAN_FRANCE 0x0483 # define TT_MS_LANGID_ALSATIAN_FRANCE 0x0484 # define TT_MS_LANGID_YAKUT_RUSSIA 0x0485 # define TT_MS_LANGID_KICHE_GUATEMALA 0x0486 # define TT_MS_LANGID_KINYARWANDA_RWANDA 0x0487 # define TT_MS_LANGID_WOLOF_SENEGAL 0x0488 # define TT_MS_LANGID_DARI_AFGHANISTAN 0x048C Possible values of the language identifier field in the name records of the SFNT \u2018name\u2019 table if the \u2018platform\u2019 identifier code is TT_PLATFORM_MICROSOFT . These values are also used as return values for function FT_Get_CMap_Language_ID . The canonical source for Microsoft's IDs is https://docs.microsoft.com/en-us/windows/desktop/Intl/language-identifier-constants-and-strings , however, we only provide macros for language identifiers present in the OpenType specification: Microsoft has abandoned the concept of LCIDs (language code identifiers), and format 1 of the \u2018name\u2019 table provides a better mechanism for languages not covered here. More legacy values not listed in the reference can be found in the FT_TRUETYPE_IDS_H header file.","title":"TT_MS_LANGID_XXX"},{"location":"ft2-truetype_tables.html#tt_name_id_xxx","text":"Defined in FT_TRUETYPE_IDS_H (freetype/ttnameid.h). # define TT_NAME_ID_COPYRIGHT 0 # define TT_NAME_ID_FONT_FAMILY 1 # define TT_NAME_ID_FONT_SUBFAMILY 2 # define TT_NAME_ID_UNIQUE_ID 3 # define TT_NAME_ID_FULL_NAME 4 # define TT_NAME_ID_VERSION_STRING 5 # define TT_NAME_ID_PS_NAME 6 # define TT_NAME_ID_TRADEMARK 7 /* the following values are from the OpenType spec */ # define TT_NAME_ID_MANUFACTURER 8 # define TT_NAME_ID_DESIGNER 9 # define TT_NAME_ID_DESCRIPTION 10 # define TT_NAME_ID_VENDOR_URL 11 # define TT_NAME_ID_DESIGNER_URL 12 # define TT_NAME_ID_LICENSE 13 # define TT_NAME_ID_LICENSE_URL 14 /* number 15 is reserved */ # define TT_NAME_ID_TYPOGRAPHIC_FAMILY 16 # define TT_NAME_ID_TYPOGRAPHIC_SUBFAMILY 17 # define TT_NAME_ID_MAC_FULL_NAME 18 /* The following code is new as of 2000-01-21 */ # define TT_NAME_ID_SAMPLE_TEXT 19 /* This is new in OpenType 1.3 */ # define TT_NAME_ID_CID_FINDFONT_NAME 20 /* This is new in OpenType 1.5 */ # define TT_NAME_ID_WWS_FAMILY 21 # define TT_NAME_ID_WWS_SUBFAMILY 22 /* This is new in OpenType 1.7 */ # define TT_NAME_ID_LIGHT_BACKGROUND 23 # define TT_NAME_ID_DARK_BACKGROUND 24 /* This is new in OpenType 1.8 */ # define TT_NAME_ID_VARIATIONS_PREFIX 25 /* these two values are deprecated */ # define TT_NAME_ID_PREFERRED_FAMILY TT_NAME_ID_TYPOGRAPHIC_FAMILY # define TT_NAME_ID_PREFERRED_SUBFAMILY TT_NAME_ID_TYPOGRAPHIC_SUBFAMILY Possible values of the \u2018name\u2019 identifier field in the name records of an SFNT \u2018name\u2019 table. These values are platform independent.","title":"TT_NAME_ID_XXX"},{"location":"ft2-truetype_tables.html#tt_ucr_xxx","text":"Defined in FT_TRUETYPE_IDS_H (freetype/ttnameid.h). /* ulUnicodeRange1 */ /* --------------- */ /* Bit 0 Basic Latin */ # define TT_UCR_BASIC_LATIN (1L << 0) /* U+0020-U+007E */ /* Bit 1 C1 Controls and Latin-1 Supplement */ # define TT_UCR_LATIN1_SUPPLEMENT (1L << 1) /* U+0080-U+00FF */ /* Bit 2 Latin Extended-A */ # define TT_UCR_LATIN_EXTENDED_A (1L << 2) /* U+0100-U+017F */ /* Bit 3 Latin Extended-B */ # define TT_UCR_LATIN_EXTENDED_B (1L << 3) /* U+0180-U+024F */ /* Bit 4 IPA Extensions */ /* Phonetic Extensions */ /* Phonetic Extensions Supplement */ # define TT_UCR_IPA_EXTENSIONS (1L << 4) /* U+0250-U+02AF */ /* U+1D00-U+1D7F */ /* U+1D80-U+1DBF */ /* Bit 5 Spacing Modifier Letters */ /* Modifier Tone Letters */ # define TT_UCR_SPACING_MODIFIER (1L << 5) /* U+02B0-U+02FF */ /* U+A700-U+A71F */ /* Bit 6 Combining Diacritical Marks */ /* Combining Diacritical Marks Supplement */ # define TT_UCR_COMBINING_DIACRITICAL_MARKS (1L << 6) /* U+0300-U+036F */ /* U+1DC0-U+1DFF */ /* Bit 7 Greek and Coptic */ # define TT_UCR_GREEK (1L << 7) /* U+0370-U+03FF */ /* Bit 8 Coptic */ # define TT_UCR_COPTIC (1L << 8) /* U+2C80-U+2CFF */ /* Bit 9 Cyrillic */ /* Cyrillic Supplement */ /* Cyrillic Extended-A */ /* Cyrillic Extended-B */ # define TT_UCR_CYRILLIC (1L << 9) /* U+0400-U+04FF */ /* U+0500-U+052F */ /* U+2DE0-U+2DFF */ /* U+A640-U+A69F */ /* Bit 10 Armenian */ # define TT_UCR_ARMENIAN (1L << 10) /* U+0530-U+058F */ /* Bit 11 Hebrew */ # define TT_UCR_HEBREW (1L << 11) /* U+0590-U+05FF */ /* Bit 12 Vai */ # define TT_UCR_VAI (1L << 12) /* U+A500-U+A63F */ /* Bit 13 Arabic */ /* Arabic Supplement */ # define TT_UCR_ARABIC (1L << 13) /* U+0600-U+06FF */ /* U+0750-U+077F */ /* Bit 14 NKo */ # define TT_UCR_NKO (1L << 14) /* U+07C0-U+07FF */ /* Bit 15 Devanagari */ # define TT_UCR_DEVANAGARI (1L << 15) /* U+0900-U+097F */ /* Bit 16 Bengali */ # define TT_UCR_BENGALI (1L << 16) /* U+0980-U+09FF */ /* Bit 17 Gurmukhi */ # define TT_UCR_GURMUKHI (1L << 17) /* U+0A00-U+0A7F */ /* Bit 18 Gujarati */ # define TT_UCR_GUJARATI (1L << 18) /* U+0A80-U+0AFF */ /* Bit 19 Oriya */ # define TT_UCR_ORIYA (1L << 19) /* U+0B00-U+0B7F */ /* Bit 20 Tamil */ # define TT_UCR_TAMIL (1L << 20) /* U+0B80-U+0BFF */ /* Bit 21 Telugu */ # define TT_UCR_TELUGU (1L << 21) /* U+0C00-U+0C7F */ /* Bit 22 Kannada */ # define TT_UCR_KANNADA (1L << 22) /* U+0C80-U+0CFF */ /* Bit 23 Malayalam */ # define TT_UCR_MALAYALAM (1L << 23) /* U+0D00-U+0D7F */ /* Bit 24 Thai */ # define TT_UCR_THAI (1L << 24) /* U+0E00-U+0E7F */ /* Bit 25 Lao */ # define TT_UCR_LAO (1L << 25) /* U+0E80-U+0EFF */ /* Bit 26 Georgian */ /* Georgian Supplement */ # define TT_UCR_GEORGIAN (1L << 26) /* U+10A0-U+10FF */ /* U+2D00-U+2D2F */ /* Bit 27 Balinese */ # define TT_UCR_BALINESE (1L << 27) /* U+1B00-U+1B7F */ /* Bit 28 Hangul Jamo */ # define TT_UCR_HANGUL_JAMO (1L << 28) /* U+1100-U+11FF */ /* Bit 29 Latin Extended Additional */ /* Latin Extended-C */ /* Latin Extended-D */ # define TT_UCR_LATIN_EXTENDED_ADDITIONAL (1L << 29) /* U+1E00-U+1EFF */ /* U+2C60-U+2C7F */ /* U+A720-U+A7FF */ /* Bit 30 Greek Extended */ # define TT_UCR_GREEK_EXTENDED (1L << 30) /* U+1F00-U+1FFF */ /* Bit 31 General Punctuation */ /* Supplemental Punctuation */ # define TT_UCR_GENERAL_PUNCTUATION (1L << 31) /* U+2000-U+206F */ /* U+2E00-U+2E7F */ /* ulUnicodeRange2 */ /* --------------- */ /* Bit 32 Superscripts And Subscripts */ # define TT_UCR_SUPERSCRIPTS_SUBSCRIPTS (1L << 0) /* U+2070-U+209F */ /* Bit 33 Currency Symbols */ # define TT_UCR_CURRENCY_SYMBOLS (1L << 1) /* U+20A0-U+20CF */ /* Bit 34 Combining Diacritical Marks For Symbols */ # define TT_UCR_COMBINING_DIACRITICAL_MARKS_SYMB \\ (1L << 2) /* U+20D0-U+20FF */ /* Bit 35 Letterlike Symbols */ # define TT_UCR_LETTERLIKE_SYMBOLS (1L << 3) /* U+2100-U+214F */ /* Bit 36 Number Forms */ # define TT_UCR_NUMBER_FORMS (1L << 4) /* U+2150-U+218F */ /* Bit 37 Arrows */ /* Supplemental Arrows-A */ /* Supplemental Arrows-B */ /* Miscellaneous Symbols and Arrows */ # define TT_UCR_ARROWS (1L << 5) /* U+2190-U+21FF */ /* U+27F0-U+27FF */ /* U+2900-U+297F */ /* U+2B00-U+2BFF */ /* Bit 38 Mathematical Operators */ /* Supplemental Mathematical Operators */ /* Miscellaneous Mathematical Symbols-A */ /* Miscellaneous Mathematical Symbols-B */ # define TT_UCR_MATHEMATICAL_OPERATORS (1L << 6) /* U+2200-U+22FF */ /* U+2A00-U+2AFF */ /* U+27C0-U+27EF */ /* U+2980-U+29FF */ /* Bit 39 Miscellaneous Technical */ # define TT_UCR_MISCELLANEOUS_TECHNICAL (1L << 7) /* U+2300-U+23FF */ /* Bit 40 Control Pictures */ # define TT_UCR_CONTROL_PICTURES (1L << 8) /* U+2400-U+243F */ /* Bit 41 Optical Character Recognition */ # define TT_UCR_OCR (1L << 9) /* U+2440-U+245F */ /* Bit 42 Enclosed Alphanumerics */ # define TT_UCR_ENCLOSED_ALPHANUMERICS (1L << 10) /* U+2460-U+24FF */ /* Bit 43 Box Drawing */ # define TT_UCR_BOX_DRAWING (1L << 11) /* U+2500-U+257F */ /* Bit 44 Block Elements */ # define TT_UCR_BLOCK_ELEMENTS (1L << 12) /* U+2580-U+259F */ /* Bit 45 Geometric Shapes */ # define TT_UCR_GEOMETRIC_SHAPES (1L << 13) /* U+25A0-U+25FF */ /* Bit 46 Miscellaneous Symbols */ # define TT_UCR_MISCELLANEOUS_SYMBOLS (1L << 14) /* U+2600-U+26FF */ /* Bit 47 Dingbats */ # define TT_UCR_DINGBATS (1L << 15) /* U+2700-U+27BF */ /* Bit 48 CJK Symbols and Punctuation */ # define TT_UCR_CJK_SYMBOLS (1L << 16) /* U+3000-U+303F */ /* Bit 49 Hiragana */ # define TT_UCR_HIRAGANA (1L << 17) /* U+3040-U+309F */ /* Bit 50 Katakana */ /* Katakana Phonetic Extensions */ # define TT_UCR_KATAKANA (1L << 18) /* U+30A0-U+30FF */ /* U+31F0-U+31FF */ /* Bit 51 Bopomofo */ /* Bopomofo Extended */ # define TT_UCR_BOPOMOFO (1L << 19) /* U+3100-U+312F */ /* U+31A0-U+31BF */ /* Bit 52 Hangul Compatibility Jamo */ # define TT_UCR_HANGUL_COMPATIBILITY_JAMO (1L << 20) /* U+3130-U+318F */ /* Bit 53 Phags-Pa */ # define TT_UCR_CJK_MISC (1L << 21) /* U+A840-U+A87F */ # define TT_UCR_KANBUN TT_UCR_CJK_MISC /* deprecated */ # define TT_UCR_PHAGSPA /* Bit 54 Enclosed CJK Letters and Months */ # define TT_UCR_ENCLOSED_CJK_LETTERS_MONTHS (1L << 22) /* U+3200-U+32FF */ /* Bit 55 CJK Compatibility */ # define TT_UCR_CJK_COMPATIBILITY (1L << 23) /* U+3300-U+33FF */ /* Bit 56 Hangul Syllables */ # define TT_UCR_HANGUL (1L << 24) /* U+AC00-U+D7A3 */ /* Bit 57 High Surrogates */ /* High Private Use Surrogates */ /* Low Surrogates */ /* According to OpenType specs v.1.3+, */ /* setting bit 57 implies that there is */ /* at least one codepoint beyond the */ /* Basic Multilingual Plane that is */ /* supported by this font. So it really */ /* means >= U+10000. */ # define TT_UCR_SURROGATES (1L << 25) /* U+D800-U+DB7F */ /* U+DB80-U+DBFF */ /* U+DC00-U+DFFF */ # define TT_UCR_NON_PLANE_0 TT_UCR_SURROGATES /* Bit 58 Phoenician */ # define TT_UCR_PHOENICIAN (1L << 26) /*U+10900-U+1091F*/ /* Bit 59 CJK Unified Ideographs */ /* CJK Radicals Supplement */ /* Kangxi Radicals */ /* Ideographic Description Characters */ /* CJK Unified Ideographs Extension A */ /* CJK Unified Ideographs Extension B */ /* Kanbun */ # define TT_UCR_CJK_UNIFIED_IDEOGRAPHS (1L << 27) /* U+4E00-U+9FFF */ /* U+2E80-U+2EFF */ /* U+2F00-U+2FDF */ /* U+2FF0-U+2FFF */ /* U+3400-U+4DB5 */ /*U+20000-U+2A6DF*/ /* U+3190-U+319F */ /* Bit 60 Private Use */ # define TT_UCR_PRIVATE_USE (1L << 28) /* U+E000-U+F8FF */ /* Bit 61 CJK Strokes */ /* CJK Compatibility Ideographs */ /* CJK Compatibility Ideographs Supplement */ # define TT_UCR_CJK_COMPATIBILITY_IDEOGRAPHS (1L << 29) /* U+31C0-U+31EF */ /* U+F900-U+FAFF */ /*U+2F800-U+2FA1F*/ /* Bit 62 Alphabetic Presentation Forms */ # define TT_UCR_ALPHABETIC_PRESENTATION_FORMS (1L << 30) /* U+FB00-U+FB4F */ /* Bit 63 Arabic Presentation Forms-A */ # define TT_UCR_ARABIC_PRESENTATION_FORMS_A (1L << 31) /* U+FB50-U+FDFF */ /* ulUnicodeRange3 */ /* --------------- */ /* Bit 64 Combining Half Marks */ # define TT_UCR_COMBINING_HALF_MARKS (1L << 0) /* U+FE20-U+FE2F */ /* Bit 65 Vertical forms */ /* CJK Compatibility Forms */ # define TT_UCR_CJK_COMPATIBILITY_FORMS (1L << 1) /* U+FE10-U+FE1F */ /* U+FE30-U+FE4F */ /* Bit 66 Small Form Variants */ # define TT_UCR_SMALL_FORM_VARIANTS (1L << 2) /* U+FE50-U+FE6F */ /* Bit 67 Arabic Presentation Forms-B */ # define TT_UCR_ARABIC_PRESENTATION_FORMS_B (1L << 3) /* U+FE70-U+FEFE */ /* Bit 68 Halfwidth and Fullwidth Forms */ # define TT_UCR_HALFWIDTH_FULLWIDTH_FORMS (1L << 4) /* U+FF00-U+FFEF */ /* Bit 69 Specials */ # define TT_UCR_SPECIALS (1L << 5) /* U+FFF0-U+FFFD */ /* Bit 70 Tibetan */ # define TT_UCR_TIBETAN (1L << 6) /* U+0F00-U+0FFF */ /* Bit 71 Syriac */ # define TT_UCR_SYRIAC (1L << 7) /* U+0700-U+074F */ /* Bit 72 Thaana */ # define TT_UCR_THAANA (1L << 8) /* U+0780-U+07BF */ /* Bit 73 Sinhala */ # define TT_UCR_SINHALA (1L << 9) /* U+0D80-U+0DFF */ /* Bit 74 Myanmar */ # define TT_UCR_MYANMAR (1L << 10) /* U+1000-U+109F */ /* Bit 75 Ethiopic */ /* Ethiopic Supplement */ /* Ethiopic Extended */ # define TT_UCR_ETHIOPIC (1L << 11) /* U+1200-U+137F */ /* U+1380-U+139F */ /* U+2D80-U+2DDF */ /* Bit 76 Cherokee */ # define TT_UCR_CHEROKEE (1L << 12) /* U+13A0-U+13FF */ /* Bit 77 Unified Canadian Aboriginal Syllabics */ # define TT_UCR_CANADIAN_ABORIGINAL_SYLLABICS (1L << 13) /* U+1400-U+167F */ /* Bit 78 Ogham */ # define TT_UCR_OGHAM (1L << 14) /* U+1680-U+169F */ /* Bit 79 Runic */ # define TT_UCR_RUNIC (1L << 15) /* U+16A0-U+16FF */ /* Bit 80 Khmer */ /* Khmer Symbols */ # define TT_UCR_KHMER (1L << 16) /* U+1780-U+17FF */ /* U+19E0-U+19FF */ /* Bit 81 Mongolian */ # define TT_UCR_MONGOLIAN (1L << 17) /* U+1800-U+18AF */ /* Bit 82 Braille Patterns */ # define TT_UCR_BRAILLE (1L << 18) /* U+2800-U+28FF */ /* Bit 83 Yi Syllables */ /* Yi Radicals */ # define TT_UCR_YI (1L << 19) /* U+A000-U+A48F */ /* U+A490-U+A4CF */ /* Bit 84 Tagalog */ /* Hanunoo */ /* Buhid */ /* Tagbanwa */ # define TT_UCR_PHILIPPINE (1L << 20) /* U+1700-U+171F */ /* U+1720-U+173F */ /* U+1740-U+175F */ /* U+1760-U+177F */ /* Bit 85 Old Italic */ # define TT_UCR_OLD_ITALIC (1L << 21) /*U+10300-U+1032F*/ /* Bit 86 Gothic */ # define TT_UCR_GOTHIC (1L << 22) /*U+10330-U+1034F*/ /* Bit 87 Deseret */ # define TT_UCR_DESERET (1L << 23) /*U+10400-U+1044F*/ /* Bit 88 Byzantine Musical Symbols */ /* Musical Symbols */ /* Ancient Greek Musical Notation */ # define TT_UCR_MUSICAL_SYMBOLS (1L << 24) /*U+1D000-U+1D0FF*/ /*U+1D100-U+1D1FF*/ /*U+1D200-U+1D24F*/ /* Bit 89 Mathematical Alphanumeric Symbols */ # define TT_UCR_MATH_ALPHANUMERIC_SYMBOLS (1L << 25) /*U+1D400-U+1D7FF*/ /* Bit 90 Private Use (plane 15) */ /* Private Use (plane 16) */ # define TT_UCR_PRIVATE_USE_SUPPLEMENTARY (1L << 26) /*U+F0000-U+FFFFD*/ /*U+100000-U+10FFFD*/ /* Bit 91 Variation Selectors */ /* Variation Selectors Supplement */ # define TT_UCR_VARIATION_SELECTORS (1L << 27) /* U+FE00-U+FE0F */ /*U+E0100-U+E01EF*/ /* Bit 92 Tags */ # define TT_UCR_TAGS (1L << 28) /*U+E0000-U+E007F*/ /* Bit 93 Limbu */ # define TT_UCR_LIMBU (1L << 29) /* U+1900-U+194F */ /* Bit 94 Tai Le */ # define TT_UCR_TAI_LE (1L << 30) /* U+1950-U+197F */ /* Bit 95 New Tai Lue */ # define TT_UCR_NEW_TAI_LUE (1L << 31) /* U+1980-U+19DF */ /* ulUnicodeRange4 */ /* --------------- */ /* Bit 96 Buginese */ # define TT_UCR_BUGINESE (1L << 0) /* U+1A00-U+1A1F */ /* Bit 97 Glagolitic */ # define TT_UCR_GLAGOLITIC (1L << 1) /* U+2C00-U+2C5F */ /* Bit 98 Tifinagh */ # define TT_UCR_TIFINAGH (1L << 2) /* U+2D30-U+2D7F */ /* Bit 99 Yijing Hexagram Symbols */ # define TT_UCR_YIJING (1L << 3) /* U+4DC0-U+4DFF */ /* Bit 100 Syloti Nagri */ # define TT_UCR_SYLOTI_NAGRI (1L << 4) /* U+A800-U+A82F */ /* Bit 101 Linear B Syllabary */ /* Linear B Ideograms */ /* Aegean Numbers */ # define TT_UCR_LINEAR_B (1L << 5) /*U+10000-U+1007F*/ /*U+10080-U+100FF*/ /*U+10100-U+1013F*/ /* Bit 102 Ancient Greek Numbers */ # define TT_UCR_ANCIENT_GREEK_NUMBERS (1L << 6) /*U+10140-U+1018F*/ /* Bit 103 Ugaritic */ # define TT_UCR_UGARITIC (1L << 7) /*U+10380-U+1039F*/ /* Bit 104 Old Persian */ # define TT_UCR_OLD_PERSIAN (1L << 8) /*U+103A0-U+103DF*/ /* Bit 105 Shavian */ # define TT_UCR_SHAVIAN (1L << 9) /*U+10450-U+1047F*/ /* Bit 106 Osmanya */ # define TT_UCR_OSMANYA (1L << 10) /*U+10480-U+104AF*/ /* Bit 107 Cypriot Syllabary */ # define TT_UCR_CYPRIOT_SYLLABARY (1L << 11) /*U+10800-U+1083F*/ /* Bit 108 Kharoshthi */ # define TT_UCR_KHAROSHTHI (1L << 12) /*U+10A00-U+10A5F*/ /* Bit 109 Tai Xuan Jing Symbols */ # define TT_UCR_TAI_XUAN_JING (1L << 13) /*U+1D300-U+1D35F*/ /* Bit 110 Cuneiform */ /* Cuneiform Numbers and Punctuation */ # define TT_UCR_CUNEIFORM (1L << 14) /*U+12000-U+123FF*/ /*U+12400-U+1247F*/ /* Bit 111 Counting Rod Numerals */ # define TT_UCR_COUNTING_ROD_NUMERALS (1L << 15) /*U+1D360-U+1D37F*/ /* Bit 112 Sundanese */ # define TT_UCR_SUNDANESE (1L << 16) /* U+1B80-U+1BBF */ /* Bit 113 Lepcha */ # define TT_UCR_LEPCHA (1L << 17) /* U+1C00-U+1C4F */ /* Bit 114 Ol Chiki */ # define TT_UCR_OL_CHIKI (1L << 18) /* U+1C50-U+1C7F */ /* Bit 115 Saurashtra */ # define TT_UCR_SAURASHTRA (1L << 19) /* U+A880-U+A8DF */ /* Bit 116 Kayah Li */ # define TT_UCR_KAYAH_LI (1L << 20) /* U+A900-U+A92F */ /* Bit 117 Rejang */ # define TT_UCR_REJANG (1L << 21) /* U+A930-U+A95F */ /* Bit 118 Cham */ # define TT_UCR_CHAM (1L << 22) /* U+AA00-U+AA5F */ /* Bit 119 Ancient Symbols */ # define TT_UCR_ANCIENT_SYMBOLS (1L << 23) /*U+10190-U+101CF*/ /* Bit 120 Phaistos Disc */ # define TT_UCR_PHAISTOS_DISC (1L << 24) /*U+101D0-U+101FF*/ /* Bit 121 Carian */ /* Lycian */ /* Lydian */ # define TT_UCR_OLD_ANATOLIAN (1L << 25) /*U+102A0-U+102DF*/ /*U+10280-U+1029F*/ /*U+10920-U+1093F*/ /* Bit 122 Domino Tiles */ /* Mahjong Tiles */ # define TT_UCR_GAME_TILES (1L << 26) /*U+1F030-U+1F09F*/ /*U+1F000-U+1F02F*/ /* Bit 123-127 Reserved for process-internal usage */ Possible bit mask values for the ulUnicodeRangeX fields in an SFNT \u2018OS/2\u2019 table.","title":"TT_UCR_XXX"},{"location":"ft2-tt_driver.html","text":"FreeType \u00bb Docs \u00bb Controlling FreeType Modules \u00bb The TrueType driver The TrueType driver \u00b6 Synopsis \u00b6 While FreeType's TrueType driver doesn't expose API functions by itself, it is possible to control its behaviour with FT_Property_Set and FT_Property_Get . The following lists the available properties together with the necessary macros and structures. The TrueType driver's module name is \u2018truetype\u2019. A single property interpreter-version is available, as documented in the \u2018 Driver properties \u2019 section. We start with a list of definitions, kindly provided by Greg Hitchcock. Bi-Level Rendering Monochromatic rendering, exclusively used in the early days of TrueType by both Apple and Microsoft. Microsoft's GDI interface supported hinting of the right-side bearing point, such that the advance width could be non-linear. Most often this was done to achieve some level of glyph symmetry. To enable reasonable performance (e.g., not having to run hinting on all glyphs just to get the widths) there was a bit in the head table indicating if the side bearing was hinted, and additional tables, \u2018hdmx\u2019 and \u2018LTSH\u2019, to cache hinting widths across multiple sizes and device aspect ratios. Font Smoothing Microsoft's GDI implementation of anti-aliasing. Not traditional anti-aliasing as the outlines were hinted before the sampling. The widths matched the bi-level rendering. ClearType Rendering Technique that uses physical subpixels to improve rendering on LCD (and other) displays. Because of the higher resolution, many methods of improving symmetry in glyphs through hinting the right-side bearing were no longer necessary. This lead to what GDI calls \u2018natural widths\u2019 ClearType, see http://rastertragedy.com/RTRCh4.htm#Sec21 . Since hinting has extra resolution, most non-linearity went away, but it is still possible for hints to change the advance widths in this mode. ClearType Compatible Widths One of the earliest challenges with ClearType was allowing the implementation in GDI to be selected without requiring all UI and documents to reflow. To address this, a compatible method of rendering ClearType was added where the font hints are executed once to determine the width in bi-level rendering, and then re-run in ClearType, with the difference in widths being absorbed in the font hints for ClearType (mostly in the white space of hints); see http://rastertragedy.com/RTRCh4.htm#Sec20 . Somewhat by definition, compatible width ClearType allows for non-linear widths, but only when the bi-level version has non-linear widths. ClearType Subpixel Positioning One of the nice benefits of ClearType is the ability to more crisply display fractional widths; unfortunately, the GDI model of integer bitmaps did not support this. However, the WPF and Direct Write frameworks do support fractional widths. DWrite calls this \u2018natural mode\u2019, not to be confused with GDI's \u2018natural widths\u2019. Subpixel positioning, in the current implementation of Direct Write, unfortunately does not support hinted advance widths, see http://rastertragedy.com/RTRCh4.htm#Sec22 . Note that the TrueType interpreter fully allows the advance width to be adjusted in this mode, just the DWrite client will ignore those changes. ClearType Backward Compatibility This is a set of exceptions made in the TrueType interpreter to minimize hinting techniques that were problematic with the extra resolution of ClearType; see http://rastertragedy.com/RTRCh4.htm#Sec1 and https://www.microsoft.com/typography/cleartype/truetypecleartype.aspx . This technique is not to be confused with ClearType compatible widths. ClearType backward compatibility has no direct impact on changing advance widths, but there might be an indirect impact on disabling some deltas. This could be worked around in backward compatibility mode. Native ClearType Mode (Not to be confused with \u2018natural widths\u2019.) This mode removes all the exceptions in the TrueType interpreter when running with ClearType. Any issues on widths would still apply, though.","title":"The TrueType driver"},{"location":"ft2-tt_driver.html#the-truetype-driver","text":"","title":"The TrueType driver"},{"location":"ft2-tt_driver.html#synopsis","text":"While FreeType's TrueType driver doesn't expose API functions by itself, it is possible to control its behaviour with FT_Property_Set and FT_Property_Get . The following lists the available properties together with the necessary macros and structures. The TrueType driver's module name is \u2018truetype\u2019. A single property interpreter-version is available, as documented in the \u2018 Driver properties \u2019 section. We start with a list of definitions, kindly provided by Greg Hitchcock. Bi-Level Rendering Monochromatic rendering, exclusively used in the early days of TrueType by both Apple and Microsoft. Microsoft's GDI interface supported hinting of the right-side bearing point, such that the advance width could be non-linear. Most often this was done to achieve some level of glyph symmetry. To enable reasonable performance (e.g., not having to run hinting on all glyphs just to get the widths) there was a bit in the head table indicating if the side bearing was hinted, and additional tables, \u2018hdmx\u2019 and \u2018LTSH\u2019, to cache hinting widths across multiple sizes and device aspect ratios. Font Smoothing Microsoft's GDI implementation of anti-aliasing. Not traditional anti-aliasing as the outlines were hinted before the sampling. The widths matched the bi-level rendering. ClearType Rendering Technique that uses physical subpixels to improve rendering on LCD (and other) displays. Because of the higher resolution, many methods of improving symmetry in glyphs through hinting the right-side bearing were no longer necessary. This lead to what GDI calls \u2018natural widths\u2019 ClearType, see http://rastertragedy.com/RTRCh4.htm#Sec21 . Since hinting has extra resolution, most non-linearity went away, but it is still possible for hints to change the advance widths in this mode. ClearType Compatible Widths One of the earliest challenges with ClearType was allowing the implementation in GDI to be selected without requiring all UI and documents to reflow. To address this, a compatible method of rendering ClearType was added where the font hints are executed once to determine the width in bi-level rendering, and then re-run in ClearType, with the difference in widths being absorbed in the font hints for ClearType (mostly in the white space of hints); see http://rastertragedy.com/RTRCh4.htm#Sec20 . Somewhat by definition, compatible width ClearType allows for non-linear widths, but only when the bi-level version has non-linear widths. ClearType Subpixel Positioning One of the nice benefits of ClearType is the ability to more crisply display fractional widths; unfortunately, the GDI model of integer bitmaps did not support this. However, the WPF and Direct Write frameworks do support fractional widths. DWrite calls this \u2018natural mode\u2019, not to be confused with GDI's \u2018natural widths\u2019. Subpixel positioning, in the current implementation of Direct Write, unfortunately does not support hinted advance widths, see http://rastertragedy.com/RTRCh4.htm#Sec22 . Note that the TrueType interpreter fully allows the advance width to be adjusted in this mode, just the DWrite client will ignore those changes. ClearType Backward Compatibility This is a set of exceptions made in the TrueType interpreter to minimize hinting techniques that were problematic with the extra resolution of ClearType; see http://rastertragedy.com/RTRCh4.htm#Sec1 and https://www.microsoft.com/typography/cleartype/truetypecleartype.aspx . This technique is not to be confused with ClearType compatible widths. ClearType backward compatibility has no direct impact on changing advance widths, but there might be an indirect impact on disabling some deltas. This could be worked around in backward compatibility mode. Native ClearType Mode (Not to be confused with \u2018natural widths\u2019.) This mode removes all the exceptions in the TrueType interpreter when running with ClearType. Any issues on widths would still apply, though.","title":"Synopsis"},{"location":"ft2-type1_tables.html","text":"FreeType \u00bb Docs \u00bb Format-Specific API \u00bb Type 1 Tables Type 1 Tables \u00b6 Synopsis \u00b6 This section contains the definition of Type 1-specific tables, including structures related to other PostScript font formats. PS_FontInfoRec \u00b6 Defined in FT_TYPE1_TABLES_H (freetype/t1tables.h). typedef struct PS_FontInfoRec_ { FT_String * version; FT_String * notice; FT_String * full_name; FT_String * family_name; FT_String * weight; FT_Long italic_angle; FT_Bool is_fixed_pitch; FT_Short underline_position; FT_UShort underline_thickness; } PS_FontInfoRec ; A structure used to model a Type 1 or Type 2 FontInfo dictionary. Note that for Multiple Master fonts, each instance has its own FontInfo dictionary. PS_FontInfo \u00b6 Defined in FT_TYPE1_TABLES_H (freetype/t1tables.h). typedef struct PS_FontInfoRec_* PS_FontInfo ; A handle to a PS_FontInfoRec structure. PS_PrivateRec \u00b6 Defined in FT_TYPE1_TABLES_H (freetype/t1tables.h). typedef struct PS_PrivateRec_ { FT_Int unique_id; FT_Int lenIV; FT_Byte num_blue_values; FT_Byte num_other_blues; FT_Byte num_family_blues; FT_Byte num_family_other_blues; FT_Short blue_values[14]; FT_Short other_blues[10]; FT_Short family_blues [14]; FT_Short family_other_blues[10]; FT_Fixed blue_scale; FT_Int blue_shift; FT_Int blue_fuzz; FT_UShort standard_width[1]; FT_UShort standard_height[1]; FT_Byte num_snap_widths; FT_Byte num_snap_heights; FT_Bool force_bold; FT_Bool round_stem_up; FT_Short snap_widths [13]; /* including std width */ FT_Short snap_heights[13]; /* including std height */ FT_Fixed expansion_factor; FT_Long language_group; FT_Long password; FT_Short min_feature[2]; } PS_PrivateRec ; A structure used to model a Type 1 or Type 2 private dictionary. Note that for Multiple Master fonts, each instance has its own Private dictionary. PS_Private \u00b6 Defined in FT_TYPE1_TABLES_H (freetype/t1tables.h). typedef struct PS_PrivateRec_* PS_Private ; A handle to a PS_PrivateRec structure. CID_FaceDictRec \u00b6 Defined in FT_TYPE1_TABLES_H (freetype/t1tables.h). typedef struct CID_FaceDictRec_ { PS_PrivateRec private_dict; FT_UInt len_buildchar; FT_Fixed forcebold_threshold; FT_Pos stroke_width; FT_Fixed expansion_factor; /* this is a duplicate of */ /* `private_dict->expansion_factor' */ FT_Byte paint_type; FT_Byte font_type; FT_Matrix font_matrix; FT_Vector font_offset; FT_UInt num_subrs; FT_ULong subrmap_offset; FT_UInt sd_bytes; } CID_FaceDictRec ; A structure used to represent data in a CID top-level dictionary. In most cases, they are part of the font's \u2018/FDArray\u2019 array. Within a CID font file, such (internal) subfont dictionaries are enclosed by \u2018%ADOBeginFontDict\u2019 and \u2018%ADOEndFontDict\u2019 comments. Note that CID_FaceDictRec misses a field for the \u2018/FontName\u2019 keyword, specifying the subfont's name (the top-level font name is given by the \u2018/CIDFontName\u2019 keyword). This is an oversight, but it doesn't limit the \u2018cid\u2019 font module's functionality because FreeType neither needs this entry nor gives access to CID subfonts. CID_FaceDict \u00b6 Defined in FT_TYPE1_TABLES_H (freetype/t1tables.h). typedef struct CID_FaceDictRec_* CID_FaceDict ; A handle to a CID_FaceDictRec structure. CID_FaceInfoRec \u00b6 Defined in FT_TYPE1_TABLES_H (freetype/t1tables.h). typedef struct CID_FaceInfoRec_ { FT_String * cid_font_name; FT_Fixed cid_version; FT_Int cid_font_type; FT_String * registry; FT_String * ordering; FT_Int supplement; PS_FontInfoRec font_info; FT_BBox font_bbox; FT_ULong uid_base; FT_Int num_xuid; FT_ULong xuid[16]; FT_ULong cidmap_offset; FT_UInt fd_bytes; FT_UInt gd_bytes; FT_ULong cid_count; FT_UInt num_dicts; CID_FaceDict font_dicts; FT_ULong data_offset; } CID_FaceInfoRec ; A structure used to represent CID Face information. CID_FaceInfo \u00b6 Defined in FT_TYPE1_TABLES_H (freetype/t1tables.h). typedef struct CID_FaceInfoRec_* CID_FaceInfo ; A handle to a CID_FaceInfoRec structure. FT_Has_PS_Glyph_Names \u00b6 Defined in FT_TYPE1_TABLES_H (freetype/t1tables.h). FT_EXPORT( FT_Int ) FT_Has_PS_Glyph_Names ( FT_Face face ); Return true if a given face provides reliable PostScript glyph names. This is similar to using the FT_HAS_GLYPH_NAMES macro, except that certain fonts (mostly TrueType) contain incorrect glyph name tables. When this function returns true, the caller is sure that the glyph names returned by FT_Get_Glyph_Name are reliable. input face face handle return Boolean. True if glyph names are reliable. FT_Get_PS_Font_Info \u00b6 Defined in FT_TYPE1_TABLES_H (freetype/t1tables.h). FT_EXPORT( FT_Error ) FT_Get_PS_Font_Info ( FT_Face face, PS_FontInfo afont_info ); Retrieve the PS_FontInfoRec structure corresponding to a given PostScript font. input face PostScript face handle. output afont_info Output font info structure pointer. return FreeType error code. 0 means success. note String pointers within the PS_FontInfoRec structure are owned by the face and don't need to be freed by the caller. Missing entries in the font's FontInfo dictionary are represented by NULL pointers. If the font's format is not PostScript-based, this function will return the FT_Err_Invalid_Argument error code. FT_Get_PS_Font_Private \u00b6 Defined in FT_TYPE1_TABLES_H (freetype/t1tables.h). FT_EXPORT( FT_Error ) FT_Get_PS_Font_Private ( FT_Face face, PS_Private afont_private ); Retrieve the PS_PrivateRec structure corresponding to a given PostScript font. input face PostScript face handle. output afont_private Output private dictionary structure pointer. return FreeType error code. 0 means success. note The string pointers within the PS_PrivateRec structure are owned by the face and don't need to be freed by the caller. If the font's format is not PostScript-based, this function returns the FT_Err_Invalid_Argument error code. FT_Get_PS_Font_Value \u00b6 Defined in FT_TYPE1_TABLES_H (freetype/t1tables.h). FT_EXPORT( FT_Long ) FT_Get_PS_Font_Value ( FT_Face face, PS_Dict_Keys key, FT_UInt idx, void *value, FT_Long value_len ); Retrieve the value for the supplied key from a PostScript font. input face PostScript face handle. key An enumeration value representing the dictionary key to retrieve. idx For array values, this specifies the index to be returned. value A pointer to memory into which to write the value. valen_len The size, in bytes, of the memory supplied for the value. output value The value matching the above key, if it exists. return The amount of memory (in bytes) required to hold the requested value (if it exists, -1 otherwise). note The values returned are not pointers into the internal structures of the face, but are \u2018fresh\u2019 copies, so that the memory containing them belongs to the calling application. This also enforces the \u2018read-only\u2019 nature of these values, i.e., this function cannot be used to manipulate the face. value is a void pointer because the values returned can be of various types. If either value is NULL or value_len is too small, just the required memory size for the requested entry is returned. The idx parameter is used, not only to retrieve elements of, for example, the FontMatrix or FontBBox, but also to retrieve name keys from the CharStrings dictionary, and the charstrings themselves. It is ignored for atomic values. PS_DICT_BLUE_SCALE returns a value that is scaled up by 1000. To get the value as in the font stream, you need to divide by 65536000.0 (to remove the FT_Fixed scale, and the x1000 scale). IMPORTANT: Only key/value pairs read by the FreeType interpreter can be retrieved. So, for example, PostScript procedures such as NP, ND, and RD are not available. Arbitrary keys are, obviously, not be available either. If the font's format is not PostScript-based, this function returns the FT_Err_Invalid_Argument error code. since 2.4.8 T1_Blend_Flags \u00b6 Defined in FT_TYPE1_TABLES_H (freetype/t1tables.h). typedef enum T1_Blend_Flags_ { /* required fields in a FontInfo blend dictionary */ T1_BLEND_UNDERLINE_POSITION = 0, T1_BLEND_UNDERLINE_THICKNESS , T1_BLEND_ITALIC_ANGLE , /* required fields in a Private blend dictionary */ T1_BLEND_BLUE_VALUES , T1_BLEND_OTHER_BLUES , T1_BLEND_STANDARD_WIDTH , T1_BLEND_STANDARD_HEIGHT , T1_BLEND_STEM_SNAP_WIDTHS , T1_BLEND_STEM_SNAP_HEIGHTS , T1_BLEND_BLUE_SCALE , T1_BLEND_BLUE_SHIFT , T1_BLEND_FAMILY_BLUES , T1_BLEND_FAMILY_OTHER_BLUES , T1_BLEND_FORCE_BOLD , T1_BLEND_MAX /* do not remove */ } T1_Blend_Flags ; /* these constants are deprecated; use the corresponding */ /* ` T1_Blend_Flags ` values instead */ # define t1_blend_underline_position T1_BLEND_UNDERLINE_POSITION # define t1_blend_underline_thickness T1_BLEND_UNDERLINE_THICKNESS # define t1_blend_italic_angle T1_BLEND_ITALIC_ANGLE # define t1_blend_blue_values T1_BLEND_BLUE_VALUES # define t1_blend_other_blues T1_BLEND_OTHER_BLUES # define t1_blend_standard_widths T1_BLEND_STANDARD_WIDTH # define t1_blend_standard_height T1_BLEND_STANDARD_HEIGHT # define t1_blend_stem_snap_widths T1_BLEND_STEM_SNAP_WIDTHS # define t1_blend_stem_snap_heights T1_BLEND_STEM_SNAP_HEIGHTS # define t1_blend_blue_scale T1_BLEND_BLUE_SCALE # define t1_blend_blue_shift T1_BLEND_BLUE_SHIFT # define t1_blend_family_blues T1_BLEND_FAMILY_BLUES # define t1_blend_family_other_blues T1_BLEND_FAMILY_OTHER_BLUES # define t1_blend_force_bold T1_BLEND_FORCE_BOLD # define t1_blend_max T1_BLEND_MAX A set of flags used to indicate which fields are present in a given blend dictionary (font info or private). Used to support Multiple Masters fonts. values T1_BLEND_UNDERLINE_POSITION T1_BLEND_UNDERLINE_THICKNESS T1_BLEND_ITALIC_ANGLE T1_BLEND_BLUE_VALUES T1_BLEND_OTHER_BLUES T1_BLEND_STANDARD_WIDTH T1_BLEND_STANDARD_HEIGHT T1_BLEND_STEM_SNAP_WIDTHS T1_BLEND_STEM_SNAP_HEIGHTS T1_BLEND_BLUE_SCALE T1_BLEND_BLUE_SHIFT T1_BLEND_FAMILY_BLUES T1_BLEND_FAMILY_OTHER_BLUES T1_BLEND_FORCE_BOLD T1_EncodingType \u00b6 Defined in FT_TYPE1_TABLES_H (freetype/t1tables.h). typedef enum T1_EncodingType_ { T1_ENCODING_TYPE_NONE = 0, T1_ENCODING_TYPE_ARRAY , T1_ENCODING_TYPE_STANDARD , T1_ENCODING_TYPE_ISOLATIN1 , T1_ENCODING_TYPE_EXPERT } T1_EncodingType ; An enumeration describing the \u2018Encoding\u2019 entry in a Type 1 dictionary. values T1_ENCODING_TYPE_NONE T1_ENCODING_TYPE_ARRAY T1_ENCODING_TYPE_STANDARD T1_ENCODING_TYPE_ISOLATIN1 T1_ENCODING_TYPE_EXPERT since 2.4.8 PS_Dict_Keys \u00b6 Defined in FT_TYPE1_TABLES_H (freetype/t1tables.h). typedef enum PS_Dict_Keys_ { /* conventionally in the font dictionary */ PS_DICT_FONT_TYPE , /* FT_Byte */ PS_DICT_FONT_MATRIX , /* FT_Fixed */ PS_DICT_FONT_BBOX , /* FT_Fixed */ PS_DICT_PAINT_TYPE , /* FT_Byte */ PS_DICT_FONT_NAME , /* FT_String * */ PS_DICT_UNIQUE_ID , /* FT_Int */ PS_DICT_NUM_CHAR_STRINGS , /* FT_Int */ PS_DICT_CHAR_STRING_KEY , /* FT_String * */ PS_DICT_CHAR_STRING , /* FT_String * */ PS_DICT_ENCODING_TYPE , /* T1_EncodingType */ PS_DICT_ENCODING_ENTRY , /* FT_String * */ /* conventionally in the font Private dictionary */ PS_DICT_NUM_SUBRS , /* FT_Int */ PS_DICT_SUBR , /* FT_String * */ PS_DICT_STD_HW , /* FT_UShort */ PS_DICT_STD_VW , /* FT_UShort */ PS_DICT_NUM_BLUE_VALUES , /* FT_Byte */ PS_DICT_BLUE_VALUE , /* FT_Short */ PS_DICT_BLUE_FUZZ , /* FT_Int */ PS_DICT_NUM_OTHER_BLUES , /* FT_Byte */ PS_DICT_OTHER_BLUE , /* FT_Short */ PS_DICT_NUM_FAMILY_BLUES , /* FT_Byte */ PS_DICT_FAMILY_BLUE , /* FT_Short */ PS_DICT_NUM_FAMILY_OTHER_BLUES , /* FT_Byte */ PS_DICT_FAMILY_OTHER_BLUE , /* FT_Short */ PS_DICT_BLUE_SCALE , /* FT_Fixed */ PS_DICT_BLUE_SHIFT , /* FT_Int */ PS_DICT_NUM_STEM_SNAP_H , /* FT_Byte */ PS_DICT_STEM_SNAP_H , /* FT_Short */ PS_DICT_NUM_STEM_SNAP_V , /* FT_Byte */ PS_DICT_STEM_SNAP_V , /* FT_Short */ PS_DICT_FORCE_BOLD , /* FT_Bool */ PS_DICT_RND_STEM_UP , /* FT_Bool */ PS_DICT_MIN_FEATURE , /* FT_Short */ PS_DICT_LEN_IV , /* FT_Int */ PS_DICT_PASSWORD , /* FT_Long */ PS_DICT_LANGUAGE_GROUP , /* FT_Long */ /* conventionally in the font FontInfo dictionary */ PS_DICT_VERSION , /* FT_String * */ PS_DICT_NOTICE , /* FT_String * */ PS_DICT_FULL_NAME , /* FT_String * */ PS_DICT_FAMILY_NAME , /* FT_String * */ PS_DICT_WEIGHT , /* FT_String * */ PS_DICT_IS_FIXED_PITCH , /* FT_Bool */ PS_DICT_UNDERLINE_POSITION , /* FT_Short */ PS_DICT_UNDERLINE_THICKNESS , /* FT_UShort */ PS_DICT_FS_TYPE , /* FT_UShort */ PS_DICT_ITALIC_ANGLE , /* FT_Long */ PS_DICT_MAX = PS_DICT_ITALIC_ANGLE } PS_Dict_Keys ; An enumeration used in calls to FT_Get_PS_Font_Value to identify the Type 1 dictionary entry to retrieve. values PS_DICT_FONT_TYPE PS_DICT_FONT_MATRIX PS_DICT_FONT_BBOX PS_DICT_PAINT_TYPE PS_DICT_FONT_NAME PS_DICT_UNIQUE_ID PS_DICT_NUM_CHAR_STRINGS PS_DICT_CHAR_STRING_KEY PS_DICT_CHAR_STRING PS_DICT_ENCODING_TYPE PS_DICT_ENCODING_ENTRY PS_DICT_NUM_SUBRS PS_DICT_SUBR PS_DICT_STD_HW PS_DICT_STD_VW PS_DICT_NUM_BLUE_VALUES PS_DICT_BLUE_VALUE PS_DICT_BLUE_FUZZ PS_DICT_NUM_OTHER_BLUES PS_DICT_OTHER_BLUE PS_DICT_NUM_FAMILY_BLUES PS_DICT_FAMILY_BLUE PS_DICT_NUM_FAMILY_OTHER_BLUES PS_DICT_FAMILY_OTHER_BLUE PS_DICT_BLUE_SCALE PS_DICT_BLUE_SHIFT PS_DICT_NUM_STEM_SNAP_H PS_DICT_STEM_SNAP_H PS_DICT_NUM_STEM_SNAP_V PS_DICT_STEM_SNAP_V PS_DICT_FORCE_BOLD PS_DICT_RND_STEM_UP PS_DICT_MIN_FEATURE PS_DICT_LEN_IV PS_DICT_PASSWORD PS_DICT_LANGUAGE_GROUP PS_DICT_VERSION PS_DICT_NOTICE PS_DICT_FULL_NAME PS_DICT_FAMILY_NAME PS_DICT_WEIGHT PS_DICT_IS_FIXED_PITCH PS_DICT_UNDERLINE_POSITION PS_DICT_UNDERLINE_THICKNESS PS_DICT_FS_TYPE PS_DICT_ITALIC_ANGLE since 2.4.8 T1_FontInfo \u00b6 Defined in FT_TYPE1_TABLES_H (freetype/t1tables.h). typedef PS_FontInfoRec T1_FontInfo ; This type is equivalent to PS_FontInfoRec . It is deprecated but kept to maintain source compatibility between various versions of FreeType. T1_Private \u00b6 Defined in FT_TYPE1_TABLES_H (freetype/t1tables.h). typedef PS_PrivateRec T1_Private ; This type is equivalent to PS_PrivateRec . It is deprecated but kept to maintain source compatibility between various versions of FreeType. CID_FontDict \u00b6 Defined in FT_TYPE1_TABLES_H (freetype/t1tables.h). typedef CID_FaceDictRec CID_FontDict ; This type is equivalent to CID_FaceDictRec . It is deprecated but kept to maintain source compatibility between various versions of FreeType. CID_Info \u00b6 Defined in FT_TYPE1_TABLES_H (freetype/t1tables.h). typedef CID_FaceInfoRec CID_Info ; This type is equivalent to CID_FaceInfoRec . It is deprecated but kept to maintain source compatibility between various versions of FreeType.","title":"Type 1 Tables"},{"location":"ft2-type1_tables.html#type-1-tables","text":"","title":"Type 1 Tables"},{"location":"ft2-type1_tables.html#synopsis","text":"This section contains the definition of Type 1-specific tables, including structures related to other PostScript font formats.","title":"Synopsis"},{"location":"ft2-type1_tables.html#ps_fontinforec","text":"Defined in FT_TYPE1_TABLES_H (freetype/t1tables.h). typedef struct PS_FontInfoRec_ { FT_String * version; FT_String * notice; FT_String * full_name; FT_String * family_name; FT_String * weight; FT_Long italic_angle; FT_Bool is_fixed_pitch; FT_Short underline_position; FT_UShort underline_thickness; } PS_FontInfoRec ; A structure used to model a Type 1 or Type 2 FontInfo dictionary. Note that for Multiple Master fonts, each instance has its own FontInfo dictionary.","title":"PS_FontInfoRec"},{"location":"ft2-type1_tables.html#ps_fontinfo","text":"Defined in FT_TYPE1_TABLES_H (freetype/t1tables.h). typedef struct PS_FontInfoRec_* PS_FontInfo ; A handle to a PS_FontInfoRec structure.","title":"PS_FontInfo"},{"location":"ft2-type1_tables.html#ps_privaterec","text":"Defined in FT_TYPE1_TABLES_H (freetype/t1tables.h). typedef struct PS_PrivateRec_ { FT_Int unique_id; FT_Int lenIV; FT_Byte num_blue_values; FT_Byte num_other_blues; FT_Byte num_family_blues; FT_Byte num_family_other_blues; FT_Short blue_values[14]; FT_Short other_blues[10]; FT_Short family_blues [14]; FT_Short family_other_blues[10]; FT_Fixed blue_scale; FT_Int blue_shift; FT_Int blue_fuzz; FT_UShort standard_width[1]; FT_UShort standard_height[1]; FT_Byte num_snap_widths; FT_Byte num_snap_heights; FT_Bool force_bold; FT_Bool round_stem_up; FT_Short snap_widths [13]; /* including std width */ FT_Short snap_heights[13]; /* including std height */ FT_Fixed expansion_factor; FT_Long language_group; FT_Long password; FT_Short min_feature[2]; } PS_PrivateRec ; A structure used to model a Type 1 or Type 2 private dictionary. Note that for Multiple Master fonts, each instance has its own Private dictionary.","title":"PS_PrivateRec"},{"location":"ft2-type1_tables.html#ps_private","text":"Defined in FT_TYPE1_TABLES_H (freetype/t1tables.h). typedef struct PS_PrivateRec_* PS_Private ; A handle to a PS_PrivateRec structure.","title":"PS_Private"},{"location":"ft2-type1_tables.html#cid_facedictrec","text":"Defined in FT_TYPE1_TABLES_H (freetype/t1tables.h). typedef struct CID_FaceDictRec_ { PS_PrivateRec private_dict; FT_UInt len_buildchar; FT_Fixed forcebold_threshold; FT_Pos stroke_width; FT_Fixed expansion_factor; /* this is a duplicate of */ /* `private_dict->expansion_factor' */ FT_Byte paint_type; FT_Byte font_type; FT_Matrix font_matrix; FT_Vector font_offset; FT_UInt num_subrs; FT_ULong subrmap_offset; FT_UInt sd_bytes; } CID_FaceDictRec ; A structure used to represent data in a CID top-level dictionary. In most cases, they are part of the font's \u2018/FDArray\u2019 array. Within a CID font file, such (internal) subfont dictionaries are enclosed by \u2018%ADOBeginFontDict\u2019 and \u2018%ADOEndFontDict\u2019 comments. Note that CID_FaceDictRec misses a field for the \u2018/FontName\u2019 keyword, specifying the subfont's name (the top-level font name is given by the \u2018/CIDFontName\u2019 keyword). This is an oversight, but it doesn't limit the \u2018cid\u2019 font module's functionality because FreeType neither needs this entry nor gives access to CID subfonts.","title":"CID_FaceDictRec"},{"location":"ft2-type1_tables.html#cid_facedict","text":"Defined in FT_TYPE1_TABLES_H (freetype/t1tables.h). typedef struct CID_FaceDictRec_* CID_FaceDict ; A handle to a CID_FaceDictRec structure.","title":"CID_FaceDict"},{"location":"ft2-type1_tables.html#cid_faceinforec","text":"Defined in FT_TYPE1_TABLES_H (freetype/t1tables.h). typedef struct CID_FaceInfoRec_ { FT_String * cid_font_name; FT_Fixed cid_version; FT_Int cid_font_type; FT_String * registry; FT_String * ordering; FT_Int supplement; PS_FontInfoRec font_info; FT_BBox font_bbox; FT_ULong uid_base; FT_Int num_xuid; FT_ULong xuid[16]; FT_ULong cidmap_offset; FT_UInt fd_bytes; FT_UInt gd_bytes; FT_ULong cid_count; FT_UInt num_dicts; CID_FaceDict font_dicts; FT_ULong data_offset; } CID_FaceInfoRec ; A structure used to represent CID Face information.","title":"CID_FaceInfoRec"},{"location":"ft2-type1_tables.html#cid_faceinfo","text":"Defined in FT_TYPE1_TABLES_H (freetype/t1tables.h). typedef struct CID_FaceInfoRec_* CID_FaceInfo ; A handle to a CID_FaceInfoRec structure.","title":"CID_FaceInfo"},{"location":"ft2-type1_tables.html#ft_has_ps_glyph_names","text":"Defined in FT_TYPE1_TABLES_H (freetype/t1tables.h). FT_EXPORT( FT_Int ) FT_Has_PS_Glyph_Names ( FT_Face face ); Return true if a given face provides reliable PostScript glyph names. This is similar to using the FT_HAS_GLYPH_NAMES macro, except that certain fonts (mostly TrueType) contain incorrect glyph name tables. When this function returns true, the caller is sure that the glyph names returned by FT_Get_Glyph_Name are reliable.","title":"FT_Has_PS_Glyph_Names"},{"location":"ft2-type1_tables.html#ft_get_ps_font_info","text":"Defined in FT_TYPE1_TABLES_H (freetype/t1tables.h). FT_EXPORT( FT_Error ) FT_Get_PS_Font_Info ( FT_Face face, PS_FontInfo afont_info ); Retrieve the PS_FontInfoRec structure corresponding to a given PostScript font.","title":"FT_Get_PS_Font_Info"},{"location":"ft2-type1_tables.html#ft_get_ps_font_private","text":"Defined in FT_TYPE1_TABLES_H (freetype/t1tables.h). FT_EXPORT( FT_Error ) FT_Get_PS_Font_Private ( FT_Face face, PS_Private afont_private ); Retrieve the PS_PrivateRec structure corresponding to a given PostScript font.","title":"FT_Get_PS_Font_Private"},{"location":"ft2-type1_tables.html#ft_get_ps_font_value","text":"Defined in FT_TYPE1_TABLES_H (freetype/t1tables.h). FT_EXPORT( FT_Long ) FT_Get_PS_Font_Value ( FT_Face face, PS_Dict_Keys key, FT_UInt idx, void *value, FT_Long value_len ); Retrieve the value for the supplied key from a PostScript font.","title":"FT_Get_PS_Font_Value"},{"location":"ft2-type1_tables.html#t1_blend_flags","text":"Defined in FT_TYPE1_TABLES_H (freetype/t1tables.h). typedef enum T1_Blend_Flags_ { /* required fields in a FontInfo blend dictionary */ T1_BLEND_UNDERLINE_POSITION = 0, T1_BLEND_UNDERLINE_THICKNESS , T1_BLEND_ITALIC_ANGLE , /* required fields in a Private blend dictionary */ T1_BLEND_BLUE_VALUES , T1_BLEND_OTHER_BLUES , T1_BLEND_STANDARD_WIDTH , T1_BLEND_STANDARD_HEIGHT , T1_BLEND_STEM_SNAP_WIDTHS , T1_BLEND_STEM_SNAP_HEIGHTS , T1_BLEND_BLUE_SCALE , T1_BLEND_BLUE_SHIFT , T1_BLEND_FAMILY_BLUES , T1_BLEND_FAMILY_OTHER_BLUES , T1_BLEND_FORCE_BOLD , T1_BLEND_MAX /* do not remove */ } T1_Blend_Flags ; /* these constants are deprecated; use the corresponding */ /* ` T1_Blend_Flags ` values instead */ # define t1_blend_underline_position T1_BLEND_UNDERLINE_POSITION # define t1_blend_underline_thickness T1_BLEND_UNDERLINE_THICKNESS # define t1_blend_italic_angle T1_BLEND_ITALIC_ANGLE # define t1_blend_blue_values T1_BLEND_BLUE_VALUES # define t1_blend_other_blues T1_BLEND_OTHER_BLUES # define t1_blend_standard_widths T1_BLEND_STANDARD_WIDTH # define t1_blend_standard_height T1_BLEND_STANDARD_HEIGHT # define t1_blend_stem_snap_widths T1_BLEND_STEM_SNAP_WIDTHS # define t1_blend_stem_snap_heights T1_BLEND_STEM_SNAP_HEIGHTS # define t1_blend_blue_scale T1_BLEND_BLUE_SCALE # define t1_blend_blue_shift T1_BLEND_BLUE_SHIFT # define t1_blend_family_blues T1_BLEND_FAMILY_BLUES # define t1_blend_family_other_blues T1_BLEND_FAMILY_OTHER_BLUES # define t1_blend_force_bold T1_BLEND_FORCE_BOLD # define t1_blend_max T1_BLEND_MAX A set of flags used to indicate which fields are present in a given blend dictionary (font info or private). Used to support Multiple Masters fonts.","title":"T1_Blend_Flags"},{"location":"ft2-type1_tables.html#t1_encodingtype","text":"Defined in FT_TYPE1_TABLES_H (freetype/t1tables.h). typedef enum T1_EncodingType_ { T1_ENCODING_TYPE_NONE = 0, T1_ENCODING_TYPE_ARRAY , T1_ENCODING_TYPE_STANDARD , T1_ENCODING_TYPE_ISOLATIN1 , T1_ENCODING_TYPE_EXPERT } T1_EncodingType ; An enumeration describing the \u2018Encoding\u2019 entry in a Type 1 dictionary.","title":"T1_EncodingType"},{"location":"ft2-type1_tables.html#ps_dict_keys","text":"Defined in FT_TYPE1_TABLES_H (freetype/t1tables.h). typedef enum PS_Dict_Keys_ { /* conventionally in the font dictionary */ PS_DICT_FONT_TYPE , /* FT_Byte */ PS_DICT_FONT_MATRIX , /* FT_Fixed */ PS_DICT_FONT_BBOX , /* FT_Fixed */ PS_DICT_PAINT_TYPE , /* FT_Byte */ PS_DICT_FONT_NAME , /* FT_String * */ PS_DICT_UNIQUE_ID , /* FT_Int */ PS_DICT_NUM_CHAR_STRINGS , /* FT_Int */ PS_DICT_CHAR_STRING_KEY , /* FT_String * */ PS_DICT_CHAR_STRING , /* FT_String * */ PS_DICT_ENCODING_TYPE , /* T1_EncodingType */ PS_DICT_ENCODING_ENTRY , /* FT_String * */ /* conventionally in the font Private dictionary */ PS_DICT_NUM_SUBRS , /* FT_Int */ PS_DICT_SUBR , /* FT_String * */ PS_DICT_STD_HW , /* FT_UShort */ PS_DICT_STD_VW , /* FT_UShort */ PS_DICT_NUM_BLUE_VALUES , /* FT_Byte */ PS_DICT_BLUE_VALUE , /* FT_Short */ PS_DICT_BLUE_FUZZ , /* FT_Int */ PS_DICT_NUM_OTHER_BLUES , /* FT_Byte */ PS_DICT_OTHER_BLUE , /* FT_Short */ PS_DICT_NUM_FAMILY_BLUES , /* FT_Byte */ PS_DICT_FAMILY_BLUE , /* FT_Short */ PS_DICT_NUM_FAMILY_OTHER_BLUES , /* FT_Byte */ PS_DICT_FAMILY_OTHER_BLUE , /* FT_Short */ PS_DICT_BLUE_SCALE , /* FT_Fixed */ PS_DICT_BLUE_SHIFT , /* FT_Int */ PS_DICT_NUM_STEM_SNAP_H , /* FT_Byte */ PS_DICT_STEM_SNAP_H , /* FT_Short */ PS_DICT_NUM_STEM_SNAP_V , /* FT_Byte */ PS_DICT_STEM_SNAP_V , /* FT_Short */ PS_DICT_FORCE_BOLD , /* FT_Bool */ PS_DICT_RND_STEM_UP , /* FT_Bool */ PS_DICT_MIN_FEATURE , /* FT_Short */ PS_DICT_LEN_IV , /* FT_Int */ PS_DICT_PASSWORD , /* FT_Long */ PS_DICT_LANGUAGE_GROUP , /* FT_Long */ /* conventionally in the font FontInfo dictionary */ PS_DICT_VERSION , /* FT_String * */ PS_DICT_NOTICE , /* FT_String * */ PS_DICT_FULL_NAME , /* FT_String * */ PS_DICT_FAMILY_NAME , /* FT_String * */ PS_DICT_WEIGHT , /* FT_String * */ PS_DICT_IS_FIXED_PITCH , /* FT_Bool */ PS_DICT_UNDERLINE_POSITION , /* FT_Short */ PS_DICT_UNDERLINE_THICKNESS , /* FT_UShort */ PS_DICT_FS_TYPE , /* FT_UShort */ PS_DICT_ITALIC_ANGLE , /* FT_Long */ PS_DICT_MAX = PS_DICT_ITALIC_ANGLE } PS_Dict_Keys ; An enumeration used in calls to FT_Get_PS_Font_Value to identify the Type 1 dictionary entry to retrieve.","title":"PS_Dict_Keys"},{"location":"ft2-type1_tables.html#t1_fontinfo","text":"Defined in FT_TYPE1_TABLES_H (freetype/t1tables.h). typedef PS_FontInfoRec T1_FontInfo ; This type is equivalent to PS_FontInfoRec . It is deprecated but kept to maintain source compatibility between various versions of FreeType.","title":"T1_FontInfo"},{"location":"ft2-type1_tables.html#t1_private","text":"Defined in FT_TYPE1_TABLES_H (freetype/t1tables.h). typedef PS_PrivateRec T1_Private ; This type is equivalent to PS_PrivateRec . It is deprecated but kept to maintain source compatibility between various versions of FreeType.","title":"T1_Private"},{"location":"ft2-type1_tables.html#cid_fontdict","text":"Defined in FT_TYPE1_TABLES_H (freetype/t1tables.h). typedef CID_FaceDictRec CID_FontDict ; This type is equivalent to CID_FaceDictRec . It is deprecated but kept to maintain source compatibility between various versions of FreeType.","title":"CID_FontDict"},{"location":"ft2-type1_tables.html#cid_info","text":"Defined in FT_TYPE1_TABLES_H (freetype/t1tables.h). typedef CID_FaceInfoRec CID_Info ; This type is equivalent to CID_FaceInfoRec . It is deprecated but kept to maintain source compatibility between various versions of FreeType.","title":"CID_Info"},{"location":"ft2-user_allocation.html","text":"FreeType \u00bb Docs \u00bb General Remarks \u00bb User allocation User allocation \u00b6 Synopsis \u00b6 FreeType assumes that structures allocated by the user and passed as arguments are zeroed out except for the actual data. In other words, it is recommended to use calloc (or variants of it) instead of malloc for allocation.","title":"User allocation"},{"location":"ft2-user_allocation.html#user-allocation","text":"","title":"User allocation"},{"location":"ft2-user_allocation.html#synopsis","text":"FreeType assumes that structures allocated by the user and passed as arguments are zeroed out except for the actual data. In other words, it is recommended to use calloc (or variants of it) instead of malloc for allocation.","title":"Synopsis"},{"location":"ft2-version.html","text":"FreeType \u00bb Docs \u00bb Core API \u00bb FreeType Version FreeType Version \u00b6 Synopsis \u00b6 Note that those functions and macros are of limited use because even a new release of FreeType with only documentation changes increases the version number. FT_Library_Version \u00b6 Defined in FT_FREETYPE_H (freetype/freetype.h). FT_EXPORT( void ) FT_Library_Version ( FT_Library library, FT_Int *amajor, FT_Int *aminor, FT_Int *apatch ); Return the version of the FreeType library being used. This is useful when dynamically linking to the library, since one cannot use the macros FREETYPE_MAJOR , FREETYPE_MINOR , and FREETYPE_PATCH . input library A source library handle. output amajor The major version number. aminor The minor version number. apatch The patch version number. note The reason why this function takes a library argument is because certain programs implement library initialization in a custom way that doesn't use FT_Init_FreeType . In such cases, the library version might not be available before the library object has been created. FT_Face_CheckTrueTypePatents \u00b6 Defined in FT_FREETYPE_H (freetype/freetype.h). FT_EXPORT( FT_Bool ) FT_Face_CheckTrueTypePatents ( FT_Face face ); Deprecated, does nothing. input face A face handle. return Always returns false. note Since May 2010, TrueType hinting is no longer patented. since 2.3.5 FT_Face_SetUnpatentedHinting \u00b6 Defined in FT_FREETYPE_H (freetype/freetype.h). FT_EXPORT( FT_Bool ) FT_Face_SetUnpatentedHinting ( FT_Face face, FT_Bool value ); Deprecated, does nothing. input face A face handle. value New boolean setting. return Always returns false. note Since May 2010, TrueType hinting is no longer patented. since 2.3.5 FREETYPE_XXX \u00b6 Defined in FT_FREETYPE_H (freetype/freetype.h). # define FREETYPE_MAJOR 2 # define FREETYPE_MINOR 11 # define FREETYPE_PATCH 1 These three macros identify the FreeType source code version. Use FT_Library_Version to access them at runtime. values FREETYPE_MAJOR The major version number. FREETYPE_MINOR The minor version number. FREETYPE_PATCH The patch level. note The version number of FreeType if built as a dynamic link library with the \u2018libtool\u2019 package is not controlled by these three macros.","title":"FreeType Version"},{"location":"ft2-version.html#freetype-version","text":"","title":"FreeType Version"},{"location":"ft2-version.html#synopsis","text":"Note that those functions and macros are of limited use because even a new release of FreeType with only documentation changes increases the version number.","title":"Synopsis"},{"location":"ft2-version.html#ft_library_version","text":"Defined in FT_FREETYPE_H (freetype/freetype.h). FT_EXPORT( void ) FT_Library_Version ( FT_Library library, FT_Int *amajor, FT_Int *aminor, FT_Int *apatch ); Return the version of the FreeType library being used. This is useful when dynamically linking to the library, since one cannot use the macros FREETYPE_MAJOR , FREETYPE_MINOR , and FREETYPE_PATCH .","title":"FT_Library_Version"},{"location":"ft2-version.html#ft_face_checktruetypepatents","text":"Defined in FT_FREETYPE_H (freetype/freetype.h). FT_EXPORT( FT_Bool ) FT_Face_CheckTrueTypePatents ( FT_Face face ); Deprecated, does nothing.","title":"FT_Face_CheckTrueTypePatents"},{"location":"ft2-version.html#ft_face_setunpatentedhinting","text":"Defined in FT_FREETYPE_H (freetype/freetype.h). FT_EXPORT( FT_Bool ) FT_Face_SetUnpatentedHinting ( FT_Face face, FT_Bool value ); Deprecated, does nothing.","title":"FT_Face_SetUnpatentedHinting"},{"location":"ft2-version.html#freetype_xxx","text":"Defined in FT_FREETYPE_H (freetype/freetype.h). # define FREETYPE_MAJOR 2 # define FREETYPE_MINOR 11 # define FREETYPE_PATCH 1 These three macros identify the FreeType source code version. Use FT_Library_Version to access them at runtime.","title":"FREETYPE_XXX"},{"location":"ft2-winfnt_fonts.html","text":"FreeType \u00bb Docs \u00bb Format-Specific API \u00bb Window FNT Files Window FNT Files \u00b6 Synopsis \u00b6 This section contains the declaration of Windows FNT-specific functions. FT_WinFNT_ID_XXX \u00b6 Defined in FT_WINFONTS_H (freetype/ftwinfnt.h). # define FT_WinFNT_ID_CP1252 0 # define FT_WinFNT_ID_DEFAULT 1 # define FT_WinFNT_ID_SYMBOL 2 # define FT_WinFNT_ID_MAC 77 # define FT_WinFNT_ID_CP932 128 # define FT_WinFNT_ID_CP949 129 # define FT_WinFNT_ID_CP1361 130 # define FT_WinFNT_ID_CP936 134 # define FT_WinFNT_ID_CP950 136 # define FT_WinFNT_ID_CP1253 161 # define FT_WinFNT_ID_CP1254 162 # define FT_WinFNT_ID_CP1258 163 # define FT_WinFNT_ID_CP1255 177 # define FT_WinFNT_ID_CP1256 178 # define FT_WinFNT_ID_CP1257 186 # define FT_WinFNT_ID_CP1251 204 # define FT_WinFNT_ID_CP874 222 # define FT_WinFNT_ID_CP1250 238 # define FT_WinFNT_ID_OEM 255 A list of valid values for the charset byte in FT_WinFNT_HeaderRec . Exact mapping tables for the various \u2018cpXXXX\u2019 encodings (except for \u2018cp1361\u2019) can be found at \u2018 ftp://ftp.unicode.org/Public/ \u2019 in the MAPPINGS/VENDORS/MICSFT/WINDOWS subdirectory. \u2018cp1361\u2019 is roughly a superset of MAPPINGS/OBSOLETE/EASTASIA/KSC/JOHAB.TXT . values FT_WinFNT_ID_DEFAULT This is used for font enumeration and font creation as a \u2018don't care\u2019 value. Valid font files don't contain this value. When querying for information about the character set of the font that is currently selected into a specified device context, this return value (of the related Windows API) simply denotes failure. FT_WinFNT_ID_SYMBOL There is no known mapping table available. FT_WinFNT_ID_MAC Mac Roman encoding. FT_WinFNT_ID_OEM From Michael Poettgen <michael@poettgen.de>: The \u2018Windows Font Mapping\u2019 article says that FT_WinFNT_ID_OEM is used for the charset of vector fonts, like modern.fon , roman.fon , and script.fon on Windows. The \u2018CreateFont\u2019 documentation says: The FT_WinFNT_ID_OEM value specifies a character set that is operating-system dependent. The \u2018IFIMETRICS\u2019 documentation from the \u2018Windows Driver Development Kit\u2019 says: This font supports an OEM-specific character set. The OEM character set is system dependent. In general OEM, as opposed to ANSI (i.e., \u2018cp1252\u2019), denotes the second default codepage that most international versions of Windows have. It is one of the OEM codepages from https://docs.microsoft.com/en-us/windows/desktop/intl/code-page-identifiers , and is used for the \u2018DOS boxes\u2019, to support legacy applications. A German Windows version for example usually uses ANSI codepage 1252 and OEM codepage 850. FT_WinFNT_ID_CP874 A superset of Thai TIS 620 and ISO 8859-11. FT_WinFNT_ID_CP932 A superset of Japanese Shift-JIS (with minor deviations). FT_WinFNT_ID_CP936 A superset of simplified Chinese GB 2312-1980 (with different ordering and minor deviations). FT_WinFNT_ID_CP949 A superset of Korean Hangul KS C 5601-1987 (with different ordering and minor deviations). FT_WinFNT_ID_CP950 A superset of traditional Chinese Big 5 ETen (with different ordering and minor deviations). FT_WinFNT_ID_CP1250 A superset of East European ISO 8859-2 (with slightly different ordering). FT_WinFNT_ID_CP1251 A superset of Russian ISO 8859-5 (with different ordering). FT_WinFNT_ID_CP1252 ANSI encoding. A superset of ISO 8859-1. FT_WinFNT_ID_CP1253 A superset of Greek ISO 8859-7 (with minor modifications). FT_WinFNT_ID_CP1254 A superset of Turkish ISO 8859-9. FT_WinFNT_ID_CP1255 A superset of Hebrew ISO 8859-8 (with some modifications). FT_WinFNT_ID_CP1256 A superset of Arabic ISO 8859-6 (with different ordering). FT_WinFNT_ID_CP1257 A superset of Baltic ISO 8859-13 (with some deviations). FT_WinFNT_ID_CP1258 For Vietnamese. This encoding doesn't cover all necessary characters. FT_WinFNT_ID_CP1361 Korean (Johab). FT_WinFNT_HeaderRec \u00b6 Defined in FT_WINFONTS_H (freetype/ftwinfnt.h). typedef struct FT_WinFNT_HeaderRec_ { FT_UShort version; FT_ULong file_size; FT_Byte copyright[60]; FT_UShort file_type; FT_UShort nominal_point_size; FT_UShort vertical_resolution; FT_UShort horizontal_resolution; FT_UShort ascent; FT_UShort internal_leading; FT_UShort external_leading; FT_Byte italic; FT_Byte underline; FT_Byte strike_out; FT_UShort weight; FT_Byte charset; FT_UShort pixel_width; FT_UShort pixel_height; FT_Byte pitch_and_family; FT_UShort avg_width; FT_UShort max_width; FT_Byte first_char; FT_Byte last_char; FT_Byte default_char; FT_Byte break_char; FT_UShort bytes_per_row; FT_ULong device_offset; FT_ULong face_name_offset; FT_ULong bits_pointer; FT_ULong bits_offset; FT_Byte reserved; FT_ULong flags; FT_UShort A_space; FT_UShort B_space; FT_UShort C_space; FT_UShort color_table_offset; FT_ULong reserved1[4]; } FT_WinFNT_HeaderRec ; Windows FNT Header info. FT_WinFNT_Header \u00b6 Defined in FT_WINFONTS_H (freetype/ftwinfnt.h). typedef struct FT_WinFNT_HeaderRec_* FT_WinFNT_Header ; A handle to an FT_WinFNT_HeaderRec structure. FT_Get_WinFNT_Header \u00b6 Defined in FT_WINFONTS_H (freetype/ftwinfnt.h). FT_EXPORT( FT_Error ) FT_Get_WinFNT_Header ( FT_Face face, FT_WinFNT_HeaderRec *aheader ); Retrieve a Windows FNT font info header. input face A handle to the input face. output aheader The WinFNT header. return FreeType error code. 0 means success. note This function only works with Windows FNT faces, returning an error otherwise.","title":"Window FNT Files"},{"location":"ft2-winfnt_fonts.html#window-fnt-files","text":"","title":"Window FNT Files"},{"location":"ft2-winfnt_fonts.html#synopsis","text":"This section contains the declaration of Windows FNT-specific functions.","title":"Synopsis"},{"location":"ft2-winfnt_fonts.html#ft_winfnt_id_xxx","text":"Defined in FT_WINFONTS_H (freetype/ftwinfnt.h). # define FT_WinFNT_ID_CP1252 0 # define FT_WinFNT_ID_DEFAULT 1 # define FT_WinFNT_ID_SYMBOL 2 # define FT_WinFNT_ID_MAC 77 # define FT_WinFNT_ID_CP932 128 # define FT_WinFNT_ID_CP949 129 # define FT_WinFNT_ID_CP1361 130 # define FT_WinFNT_ID_CP936 134 # define FT_WinFNT_ID_CP950 136 # define FT_WinFNT_ID_CP1253 161 # define FT_WinFNT_ID_CP1254 162 # define FT_WinFNT_ID_CP1258 163 # define FT_WinFNT_ID_CP1255 177 # define FT_WinFNT_ID_CP1256 178 # define FT_WinFNT_ID_CP1257 186 # define FT_WinFNT_ID_CP1251 204 # define FT_WinFNT_ID_CP874 222 # define FT_WinFNT_ID_CP1250 238 # define FT_WinFNT_ID_OEM 255 A list of valid values for the charset byte in FT_WinFNT_HeaderRec . Exact mapping tables for the various \u2018cpXXXX\u2019 encodings (except for \u2018cp1361\u2019) can be found at \u2018 ftp://ftp.unicode.org/Public/ \u2019 in the MAPPINGS/VENDORS/MICSFT/WINDOWS subdirectory. \u2018cp1361\u2019 is roughly a superset of MAPPINGS/OBSOLETE/EASTASIA/KSC/JOHAB.TXT .","title":"FT_WinFNT_ID_XXX"},{"location":"ft2-winfnt_fonts.html#ft_winfnt_headerrec","text":"Defined in FT_WINFONTS_H (freetype/ftwinfnt.h). typedef struct FT_WinFNT_HeaderRec_ { FT_UShort version; FT_ULong file_size; FT_Byte copyright[60]; FT_UShort file_type; FT_UShort nominal_point_size; FT_UShort vertical_resolution; FT_UShort horizontal_resolution; FT_UShort ascent; FT_UShort internal_leading; FT_UShort external_leading; FT_Byte italic; FT_Byte underline; FT_Byte strike_out; FT_UShort weight; FT_Byte charset; FT_UShort pixel_width; FT_UShort pixel_height; FT_Byte pitch_and_family; FT_UShort avg_width; FT_UShort max_width; FT_Byte first_char; FT_Byte last_char; FT_Byte default_char; FT_Byte break_char; FT_UShort bytes_per_row; FT_ULong device_offset; FT_ULong face_name_offset; FT_ULong bits_pointer; FT_ULong bits_offset; FT_Byte reserved; FT_ULong flags; FT_UShort A_space; FT_UShort B_space; FT_UShort C_space; FT_UShort color_table_offset; FT_ULong reserved1[4]; } FT_WinFNT_HeaderRec ; Windows FNT Header info.","title":"FT_WinFNT_HeaderRec"},{"location":"ft2-winfnt_fonts.html#ft_winfnt_header","text":"Defined in FT_WINFONTS_H (freetype/ftwinfnt.h). typedef struct FT_WinFNT_HeaderRec_* FT_WinFNT_Header ; A handle to an FT_WinFNT_HeaderRec structure.","title":"FT_WinFNT_Header"},{"location":"ft2-winfnt_fonts.html#ft_get_winfnt_header","text":"Defined in FT_WINFONTS_H (freetype/ftwinfnt.h). FT_EXPORT( FT_Error ) FT_Get_WinFNT_Header ( FT_Face face, FT_WinFNT_HeaderRec *aheader ); Retrieve a Windows FNT font info header.","title":"FT_Get_WinFNT_Header"}]} \ No newline at end of file
diff --git a/freetype/docs/reference/sitemap.xml b/freetype/docs/reference/sitemap.xml
index 11fea0b5..5a8744f2 100644
--- a/freetype/docs/reference/sitemap.xml
+++ b/freetype/docs/reference/sitemap.xml
@@ -1,207 +1,268 @@
<?xml version="1.0" encoding="UTF-8"?>
-<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"><url>
- <loc>None</loc>
- <lastmod>2020-10-20</lastmod>
- <changefreq>daily</changefreq>
- </url><url>
- <loc>None</loc>
- <lastmod>2020-10-20</lastmod>
- <changefreq>daily</changefreq>
- </url><url>
- <loc>None</loc>
- <lastmod>2020-10-20</lastmod>
- <changefreq>daily</changefreq>
- </url><url>
- <loc>None</loc>
- <lastmod>2020-10-20</lastmod>
- <changefreq>daily</changefreq>
- </url><url>
- <loc>None</loc>
- <lastmod>2020-10-20</lastmod>
- <changefreq>daily</changefreq>
- </url><url>
- <loc>None</loc>
- <lastmod>2020-10-20</lastmod>
- <changefreq>daily</changefreq>
- </url><url>
- <loc>None</loc>
- <lastmod>2020-10-20</lastmod>
- <changefreq>daily</changefreq>
- </url><url>
- <loc>None</loc>
- <lastmod>2020-10-20</lastmod>
- <changefreq>daily</changefreq>
- </url><url>
- <loc>None</loc>
- <lastmod>2020-10-20</lastmod>
- <changefreq>daily</changefreq>
- </url><url>
- <loc>None</loc>
- <lastmod>2020-10-20</lastmod>
- <changefreq>daily</changefreq>
- </url><url>
- <loc>None</loc>
- <lastmod>2020-10-20</lastmod>
- <changefreq>daily</changefreq>
- </url><url>
- <loc>None</loc>
- <lastmod>2020-10-20</lastmod>
- <changefreq>daily</changefreq>
- </url><url>
- <loc>None</loc>
- <lastmod>2020-10-20</lastmod>
- <changefreq>daily</changefreq>
- </url><url>
- <loc>None</loc>
- <lastmod>2020-10-20</lastmod>
- <changefreq>daily</changefreq>
- </url><url>
- <loc>None</loc>
- <lastmod>2020-10-20</lastmod>
- <changefreq>daily</changefreq>
- </url><url>
- <loc>None</loc>
- <lastmod>2020-10-20</lastmod>
- <changefreq>daily</changefreq>
- </url><url>
- <loc>None</loc>
- <lastmod>2020-10-20</lastmod>
- <changefreq>daily</changefreq>
- </url><url>
- <loc>None</loc>
- <lastmod>2020-10-20</lastmod>
- <changefreq>daily</changefreq>
- </url><url>
- <loc>None</loc>
- <lastmod>2020-10-20</lastmod>
- <changefreq>daily</changefreq>
- </url><url>
- <loc>None</loc>
- <lastmod>2020-10-20</lastmod>
- <changefreq>daily</changefreq>
- </url><url>
- <loc>None</loc>
- <lastmod>2020-10-20</lastmod>
- <changefreq>daily</changefreq>
- </url><url>
- <loc>None</loc>
- <lastmod>2020-10-20</lastmod>
- <changefreq>daily</changefreq>
- </url><url>
- <loc>None</loc>
- <lastmod>2020-10-20</lastmod>
- <changefreq>daily</changefreq>
- </url><url>
- <loc>None</loc>
- <lastmod>2020-10-20</lastmod>
- <changefreq>daily</changefreq>
- </url><url>
- <loc>None</loc>
- <lastmod>2020-10-20</lastmod>
- <changefreq>daily</changefreq>
- </url><url>
- <loc>None</loc>
- <lastmod>2020-10-20</lastmod>
- <changefreq>daily</changefreq>
- </url><url>
- <loc>None</loc>
- <lastmod>2020-10-20</lastmod>
- <changefreq>daily</changefreq>
- </url><url>
- <loc>None</loc>
- <lastmod>2020-10-20</lastmod>
- <changefreq>daily</changefreq>
- </url><url>
- <loc>None</loc>
- <lastmod>2020-10-20</lastmod>
- <changefreq>daily</changefreq>
- </url><url>
- <loc>None</loc>
- <lastmod>2020-10-20</lastmod>
- <changefreq>daily</changefreq>
- </url><url>
- <loc>None</loc>
- <lastmod>2020-10-20</lastmod>
- <changefreq>daily</changefreq>
- </url><url>
- <loc>None</loc>
- <lastmod>2020-10-20</lastmod>
- <changefreq>daily</changefreq>
- </url><url>
- <loc>None</loc>
- <lastmod>2020-10-20</lastmod>
- <changefreq>daily</changefreq>
- </url><url>
- <loc>None</loc>
- <lastmod>2020-10-20</lastmod>
- <changefreq>daily</changefreq>
- </url><url>
- <loc>None</loc>
- <lastmod>2020-10-20</lastmod>
- <changefreq>daily</changefreq>
- </url><url>
- <loc>None</loc>
- <lastmod>2020-10-20</lastmod>
- <changefreq>daily</changefreq>
- </url><url>
- <loc>None</loc>
- <lastmod>2020-10-20</lastmod>
- <changefreq>daily</changefreq>
- </url><url>
- <loc>None</loc>
- <lastmod>2020-10-20</lastmod>
- <changefreq>daily</changefreq>
- </url><url>
- <loc>None</loc>
- <lastmod>2020-10-20</lastmod>
- <changefreq>daily</changefreq>
- </url><url>
- <loc>None</loc>
- <lastmod>2020-10-20</lastmod>
- <changefreq>daily</changefreq>
- </url><url>
- <loc>None</loc>
- <lastmod>2020-10-20</lastmod>
- <changefreq>daily</changefreq>
- </url><url>
- <loc>None</loc>
- <lastmod>2020-10-20</lastmod>
- <changefreq>daily</changefreq>
- </url><url>
- <loc>None</loc>
- <lastmod>2020-10-20</lastmod>
- <changefreq>daily</changefreq>
- </url><url>
- <loc>None</loc>
- <lastmod>2020-10-20</lastmod>
- <changefreq>daily</changefreq>
- </url><url>
- <loc>None</loc>
- <lastmod>2020-10-20</lastmod>
- <changefreq>daily</changefreq>
- </url><url>
- <loc>None</loc>
- <lastmod>2020-10-20</lastmod>
- <changefreq>daily</changefreq>
- </url><url>
- <loc>None</loc>
- <lastmod>2020-10-20</lastmod>
- <changefreq>daily</changefreq>
- </url><url>
- <loc>None</loc>
- <lastmod>2020-10-20</lastmod>
- <changefreq>daily</changefreq>
- </url><url>
- <loc>None</loc>
- <lastmod>2020-10-20</lastmod>
- <changefreq>daily</changefreq>
- </url><url>
- <loc>None</loc>
- <lastmod>2020-10-20</lastmod>
- <changefreq>daily</changefreq>
- </url><url>
- <loc>None</loc>
- <lastmod>2020-10-20</lastmod>
- <changefreq>daily</changefreq>
+<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
+ <url>
+ <loc>None</loc>
+ <lastmod>2021-12-02</lastmod>
+ <changefreq>daily</changefreq>
+ </url>
+ <url>
+ <loc>None</loc>
+ <lastmod>2021-12-02</lastmod>
+ <changefreq>daily</changefreq>
+ </url>
+ <url>
+ <loc>None</loc>
+ <lastmod>2021-12-02</lastmod>
+ <changefreq>daily</changefreq>
+ </url>
+ <url>
+ <loc>None</loc>
+ <lastmod>2021-12-02</lastmod>
+ <changefreq>daily</changefreq>
+ </url>
+ <url>
+ <loc>None</loc>
+ <lastmod>2021-12-02</lastmod>
+ <changefreq>daily</changefreq>
+ </url>
+ <url>
+ <loc>None</loc>
+ <lastmod>2021-12-02</lastmod>
+ <changefreq>daily</changefreq>
+ </url>
+ <url>
+ <loc>None</loc>
+ <lastmod>2021-12-02</lastmod>
+ <changefreq>daily</changefreq>
+ </url>
+ <url>
+ <loc>None</loc>
+ <lastmod>2021-12-02</lastmod>
+ <changefreq>daily</changefreq>
+ </url>
+ <url>
+ <loc>None</loc>
+ <lastmod>2021-12-02</lastmod>
+ <changefreq>daily</changefreq>
+ </url>
+ <url>
+ <loc>None</loc>
+ <lastmod>2021-12-02</lastmod>
+ <changefreq>daily</changefreq>
+ </url>
+ <url>
+ <loc>None</loc>
+ <lastmod>2021-12-02</lastmod>
+ <changefreq>daily</changefreq>
+ </url>
+ <url>
+ <loc>None</loc>
+ <lastmod>2021-12-02</lastmod>
+ <changefreq>daily</changefreq>
+ </url>
+ <url>
+ <loc>None</loc>
+ <lastmod>2021-12-02</lastmod>
+ <changefreq>daily</changefreq>
+ </url>
+ <url>
+ <loc>None</loc>
+ <lastmod>2021-12-02</lastmod>
+ <changefreq>daily</changefreq>
+ </url>
+ <url>
+ <loc>None</loc>
+ <lastmod>2021-12-02</lastmod>
+ <changefreq>daily</changefreq>
+ </url>
+ <url>
+ <loc>None</loc>
+ <lastmod>2021-12-02</lastmod>
+ <changefreq>daily</changefreq>
+ </url>
+ <url>
+ <loc>None</loc>
+ <lastmod>2021-12-02</lastmod>
+ <changefreq>daily</changefreq>
+ </url>
+ <url>
+ <loc>None</loc>
+ <lastmod>2021-12-02</lastmod>
+ <changefreq>daily</changefreq>
+ </url>
+ <url>
+ <loc>None</loc>
+ <lastmod>2021-12-02</lastmod>
+ <changefreq>daily</changefreq>
+ </url>
+ <url>
+ <loc>None</loc>
+ <lastmod>2021-12-02</lastmod>
+ <changefreq>daily</changefreq>
+ </url>
+ <url>
+ <loc>None</loc>
+ <lastmod>2021-12-02</lastmod>
+ <changefreq>daily</changefreq>
+ </url>
+ <url>
+ <loc>None</loc>
+ <lastmod>2021-12-02</lastmod>
+ <changefreq>daily</changefreq>
+ </url>
+ <url>
+ <loc>None</loc>
+ <lastmod>2021-12-02</lastmod>
+ <changefreq>daily</changefreq>
+ </url>
+ <url>
+ <loc>None</loc>
+ <lastmod>2021-12-02</lastmod>
+ <changefreq>daily</changefreq>
+ </url>
+ <url>
+ <loc>None</loc>
+ <lastmod>2021-12-02</lastmod>
+ <changefreq>daily</changefreq>
+ </url>
+ <url>
+ <loc>None</loc>
+ <lastmod>2021-12-02</lastmod>
+ <changefreq>daily</changefreq>
+ </url>
+ <url>
+ <loc>None</loc>
+ <lastmod>2021-12-02</lastmod>
+ <changefreq>daily</changefreq>
+ </url>
+ <url>
+ <loc>None</loc>
+ <lastmod>2021-12-02</lastmod>
+ <changefreq>daily</changefreq>
+ </url>
+ <url>
+ <loc>None</loc>
+ <lastmod>2021-12-02</lastmod>
+ <changefreq>daily</changefreq>
+ </url>
+ <url>
+ <loc>None</loc>
+ <lastmod>2021-12-02</lastmod>
+ <changefreq>daily</changefreq>
+ </url>
+ <url>
+ <loc>None</loc>
+ <lastmod>2021-12-02</lastmod>
+ <changefreq>daily</changefreq>
+ </url>
+ <url>
+ <loc>None</loc>
+ <lastmod>2021-12-02</lastmod>
+ <changefreq>daily</changefreq>
+ </url>
+ <url>
+ <loc>None</loc>
+ <lastmod>2021-12-02</lastmod>
+ <changefreq>daily</changefreq>
+ </url>
+ <url>
+ <loc>None</loc>
+ <lastmod>2021-12-02</lastmod>
+ <changefreq>daily</changefreq>
+ </url>
+ <url>
+ <loc>None</loc>
+ <lastmod>2021-12-02</lastmod>
+ <changefreq>daily</changefreq>
+ </url>
+ <url>
+ <loc>None</loc>
+ <lastmod>2021-12-02</lastmod>
+ <changefreq>daily</changefreq>
+ </url>
+ <url>
+ <loc>None</loc>
+ <lastmod>2021-12-02</lastmod>
+ <changefreq>daily</changefreq>
+ </url>
+ <url>
+ <loc>None</loc>
+ <lastmod>2021-12-02</lastmod>
+ <changefreq>daily</changefreq>
+ </url>
+ <url>
+ <loc>None</loc>
+ <lastmod>2021-12-02</lastmod>
+ <changefreq>daily</changefreq>
+ </url>
+ <url>
+ <loc>None</loc>
+ <lastmod>2021-12-02</lastmod>
+ <changefreq>daily</changefreq>
+ </url>
+ <url>
+ <loc>None</loc>
+ <lastmod>2021-12-02</lastmod>
+ <changefreq>daily</changefreq>
+ </url>
+ <url>
+ <loc>None</loc>
+ <lastmod>2021-12-02</lastmod>
+ <changefreq>daily</changefreq>
+ </url>
+ <url>
+ <loc>None</loc>
+ <lastmod>2021-12-02</lastmod>
+ <changefreq>daily</changefreq>
+ </url>
+ <url>
+ <loc>None</loc>
+ <lastmod>2021-12-02</lastmod>
+ <changefreq>daily</changefreq>
+ </url>
+ <url>
+ <loc>None</loc>
+ <lastmod>2021-12-02</lastmod>
+ <changefreq>daily</changefreq>
+ </url>
+ <url>
+ <loc>None</loc>
+ <lastmod>2021-12-02</lastmod>
+ <changefreq>daily</changefreq>
+ </url>
+ <url>
+ <loc>None</loc>
+ <lastmod>2021-12-02</lastmod>
+ <changefreq>daily</changefreq>
+ </url>
+ <url>
+ <loc>None</loc>
+ <lastmod>2021-12-02</lastmod>
+ <changefreq>daily</changefreq>
+ </url>
+ <url>
+ <loc>None</loc>
+ <lastmod>2021-12-02</lastmod>
+ <changefreq>daily</changefreq>
+ </url>
+ <url>
+ <loc>None</loc>
+ <lastmod>2021-12-02</lastmod>
+ <changefreq>daily</changefreq>
+ </url>
+ <url>
+ <loc>None</loc>
+ <lastmod>2021-12-02</lastmod>
+ <changefreq>daily</changefreq>
+ </url>
+ <url>
+ <loc>None</loc>
+ <lastmod>2021-12-02</lastmod>
+ <changefreq>daily</changefreq>
+ </url>
+ <url>
+ <loc>None</loc>
+ <lastmod>2021-12-02</lastmod>
+ <changefreq>daily</changefreq>
</url>
</urlset> \ No newline at end of file
diff --git a/freetype/docs/reference/sitemap.xml.gz b/freetype/docs/reference/sitemap.xml.gz
index 8e781570..c6128b6d 100644
--- a/freetype/docs/reference/sitemap.xml.gz
+++ b/freetype/docs/reference/sitemap.xml.gz
Binary files differ
diff --git a/freetype/docs/reference/stylesheets/extra.css b/freetype/docs/reference/stylesheets/extra.css
index a99e77fb..5d999ed5 100644
--- a/freetype/docs/reference/stylesheets/extra.css
+++ b/freetype/docs/reference/stylesheets/extra.css
@@ -1,13 +1,7 @@
/* Body and page */
-.wy-nav-content {
- max-width: 90%;
-}
.md-grid {
max-width: 90%;
}
-.md-sidebar--secondary {
- margin-left: 90%;
-}
p {
text-align: justify;
}
diff --git a/freetype/docs/release b/freetype/docs/release
index 628dded2..05f730f9 100644
--- a/freetype/docs/release
+++ b/freetype/docs/release
@@ -1,26 +1,23 @@
How to prepare a new release
----------------------------
-. include/freetype/freetype.h: Update FREETYPE_MAJOR, FREETYPE_MINOR,
- and FREETYPE_PATCH.
+. include/freetype/freetype.h: Update `FREETYPE_MAJOR`,
+ `FREETYPE_MINOR`, and `FREETYPE_PATCH`.
. Update version numbers in all files where necessary (for example, do
- a grep for both `2.3.1' and `231' for release 2.3.1).
+ a grep for both '2.10.4' and '2104' for release 2.10.4).
-. builds/unix/configure.raw: Update `version_info'.
+. builds/unix/configure.raw: Update `version_info`.
. docs/CHANGES: Document differences to last release.
. README: Update.
-. docs/VERSIONS.TXT: Document changed `version_info'.
-
-. ChangeLog: Announce new release (both in the freetype2 and
- freetype2-demos modules).
+. docs/VERSIONS.TXT: Document changed `version_info`.
. Clone the git archive to another directory with
- git clone -l -s . ../freetype2.test
+ git clone -l -s . ../freetype.test
or something like this and run
@@ -35,14 +32,14 @@ How to prepare a new release
in the cloned repository to test compilation with both gcc and g++.
-. Test C++ compilation for freetype2-demos too (using `git clone' as
+. Test C++ compilation for 'freetype-demos' too (using `git clone` as
above).
-. Run src/tools/chktrcmp.py and check that there are no undefined
- trace_XXXX macros.
+. Run `src/tools/chktrcmp.py` and check that there are no undefined
+ `trace_XXXX` macros.
-. After pushing the new release, tag the git repositories (freetype2,
- freetype2-demos) with
+. After pushing the new release, tag the git repositories ('freetype',
+ 'freetype-demos') with
git tag VER-<version> -m "" -u <committer>
@@ -54,29 +51,29 @@ How to prepare a new release
git clean -ndx
- that the git directory is really clean (and remove extraneous files
+ that the git directory is really clean (and remove extraneous files
if necessary).
-. Say `make dist' in both the freetype2 and freetype2-demos modules
- to generate the .tar.gz, .tar.xz, and .zip files.
+. Say `make dist` in both the 'freetype' and 'freetype-demos'
+ repositories to generate the `.tar.gz`, `.tar.xz`, and `.zip` files.
-. Create the doc bundles (freetype-doc-<version>.tar.gz,
- freetype-doc-<version>.tar.xz, ftdoc<version>.zip). This is
+. Create the doc bundles (`freetype-doc-<version>.tar.gz`,
+ `freetype-doc-<version>.tar.xz`, `ftdoc<version>.zip`). This is
everything in
<freetype-web git repository>/freetype2/docs
- except the `reference' subdirectory. Do *not* use option `-l' from
+ except the `reference` subdirectory. Do *not* use option `-l` from
zip!
-. Run the following script (with updated `$VERSION', `$SAVANNAH_USER',
- and $SOURCEFORGE_USER variables) to sign and upload the bundles to
+. Run the following script (with updated `$VERSION`, `$SAVANNAH_USER`,
+ and `$SOURCEFORGE_USER` variables) to sign and upload the bundles to
both Savannah and SourceForge. The signing code has been taken from
- the `gnupload' script (part of the automake bundle).
+ the `gnupload` script (part of the 'automake' bundle).
#!/bin/sh
- VERSION=2.5.1
+ VERSION=2.10.4
SAVANNAH_USER=wl
SOURCEFORGE_USER=wlemb
@@ -155,12 +152,13 @@ How to prepare a new release
# EOF
-. Prepare a README for SourceForge and upload it with the following
- script (with updated `$VERSION' and $SOURCEFORGE_USER variables).
+. Prepare a `README` file for SourceForge and upload it with the
+ following script (with updated `$VERSION` and `$SOURCEFORGE_USER`
+ variables).
#!/bin/sh
- VERSION=2.5.1
+ VERSION=2.10.4
SOURCEFORGE_USER=wlemb
#####################################################################
@@ -170,26 +168,20 @@ How to prepare a new release
# EOF
-. On SourceForge, tag the just uploaded `ftXXX.zip' and
- `freetype-XXX.tar.xz' files as the default files to download for
- `Windows' and `Others', respectively.
-
-. Copy the reference files (generated by `make dist') to
-
- <freetype-web git repository>/freetype2/docs/reference
-
-. Update the `freetype-web' repository. `git push' then automatically
- triggers an update of the public web pages within ten minutes, due
- to a cron script (on wl@freedesktop.org) that rsyncs with
+. On SourceForge, tag the just uploaded `ftXXX.zip` and
+ `freetype-XXX.tar.xz` files as the default files to download for
+ 'Windows' and 'Others', respectively.
- freedesktop.org://srv/freetype.freedesktop.org/www
+. Trigger the automatic generation of the online API reference by
+ updating the `FT_VERSION` variable in file `.gitlab-ci.yml` of the
+ 'freetype-web' repository.
-. Announce new release on freetype-announce@nongnu.org and to relevant
- newsgroups.
+. Announce new release on 'freetype-announce@nongnu.org' and to
+ relevant newsgroups.
----------------------------------------------------------------------
-Copyright (C) 2003-2020 by
+Copyright (C) 2003-2021 by
David Turner, Robert Wilhelm, and Werner Lemberg.
This file is part of the FreeType project, and may only be used,
diff --git a/freetype/include/dlg/dlg.h b/freetype/include/dlg/dlg.h
new file mode 100644
index 00000000..3a7abf8f
--- /dev/null
+++ b/freetype/include/dlg/dlg.h
@@ -0,0 +1,270 @@
+// Copyright (c) 2019 nyorain
+// Distributed under the Boost Software License, Version 1.0.
+// See accompanying file LICENSE or copy at http://www.boost.org/LICENSE_1_0.txt
+
+#ifndef INC_DLG_DLG_H_
+#define INC_DLG_DLG_H_
+
+#include <stdbool.h>
+#include <stddef.h>
+#include <stdlib.h>
+#include <stdarg.h>
+#include <stdio.h>
+
+// Hosted at https://github.com/nyorain/dlg.
+// There are examples and documentation.
+// Issue reports and contributions appreciated.
+
+// - CONFIG -
+// Define this macro to make all dlg macros have no effect at all
+// #define DLG_DISABLE
+
+// the log/assertion levels below which logs/assertions are ignored
+// defaulted depending on the NDEBUG macro
+#ifndef DLG_LOG_LEVEL
+ #ifdef NDEBUG
+ #define DLG_LOG_LEVEL dlg_level_warn
+ #else
+ #define DLG_LOG_LEVEL dlg_level_trace
+ #endif
+#endif
+
+#ifndef DLG_ASSERT_LEVEL
+ #ifdef NDEBUG
+ #define DLG_ASSERT_LEVEL dlg_level_warn
+ #else
+ #define DLG_ASSERT_LEVEL dlg_level_trace
+ #endif
+#endif
+
+// the assert level of dlg_assert
+#ifndef DLG_DEFAULT_ASSERT
+ #define DLG_DEFAULT_ASSERT dlg_level_error
+#endif
+
+// evaluated to the 'file' member in dlg_origin
+#ifndef DLG_FILE
+ #define DLG_FILE dlg__strip_root_path(__FILE__, DLG_BASE_PATH)
+
+ // the base path stripped from __FILE__. If you don't override DLG_FILE set this to
+ // the project root to make 'main.c' from '/some/bullshit/main.c'
+ #ifndef DLG_BASE_PATH
+ #define DLG_BASE_PATH ""
+ #endif
+#endif
+
+// Default tags applied to all logs/assertions (in the defining file).
+// Must be in format ```#define DLG_DEFAULT_TAGS "tag1", "tag2"```
+// or just nothing (as defaulted here)
+#ifndef DLG_DEFAULT_TAGS
+ #define DLG_DEFAULT_TAGS_TERM NULL
+#else
+ #define DLG_DEFAULT_TAGS_TERM DLG_DEFAULT_TAGS, NULL
+#endif
+
+// The function used for formatting. Can have any signature, but must be callable with
+// the arguments the log/assertions macros are called with. Must return a const char*
+// that will not be freed by dlg, the formatting function must keep track of it.
+// The formatting function might use dlg_thread_buffer or a custom owned buffer.
+// The returned const char* has to be valid until the dlg log/assertion ends.
+// Usually a c function with ... (i.e. using va_list) or a variadic c++ template do
+// allow formatting.
+#ifndef DLG_FMT_FUNC
+ #define DLG_FMT_FUNC dlg__printf_format
+#endif
+
+// Only overwrite (i.e. predefine) this if you know what you are doing.
+// On windows this is used to add the dllimport specified.
+// If you are using the static version of dlg (on windows) define
+// DLG_STATIC before including dlg.h
+#ifndef DLG_API
+ #if (defined(_WIN32) || defined(__CYGWIN__)) && !defined(DLG_STATIC)
+ #define DLG_API __declspec(dllimport)
+ #else
+ #define DLG_API
+ #endif
+#endif
+
+// - utility -
+// two methods needed since cplusplus does not support compound literals
+// and c does not support uniform initialization/initializer lists
+#ifdef __cplusplus
+ #include <initializer_list>
+ #define DLG_CREATE_TAGS(...) std::initializer_list<const char*> \
+ {DLG_DEFAULT_TAGS_TERM, __VA_ARGS__, NULL}.begin()
+#else
+ #define DLG_CREATE_TAGS(...) (const char* const[]) {DLG_DEFAULT_TAGS_TERM, __VA_ARGS__, NULL}
+#endif
+
+#ifdef __GNUC__
+ #define DLG_PRINTF_ATTRIB(a, b) __attribute__ ((format (printf, a, b)))
+#else
+ #define DLG_PRINTF_ATTRIB(a, b)
+#endif
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+
+// Represents the importance of a log/assertion call.
+enum dlg_level {
+ dlg_level_trace = 0, // temporary used debug, e.g. to check if control reaches function
+ dlg_level_debug, // general debugging, prints e.g. all major events
+ dlg_level_info, // general useful information
+ dlg_level_warn, // warning, something went wrong but might have no (really bad) side effect
+ dlg_level_error, // something really went wrong; expect serious issues
+ dlg_level_fatal // critical error; application is likely to crash/exit
+};
+
+// Holds various information associated with a log/assertion call.
+// Forwarded to the output handler.
+struct dlg_origin {
+ const char* file;
+ unsigned int line;
+ const char* func;
+ enum dlg_level level;
+ const char** tags; // null-terminated
+ const char* expr; // assertion expression, otherwise null
+};
+
+// Type of the output handler, see dlg_set_handler.
+typedef void(*dlg_handler)(const struct dlg_origin* origin, const char* string, void* data);
+
+#ifdef DLG_DISABLE
+ // Tagged/Untagged logging with variable level
+ // Tags must always be in the format `("tag1", "tag2")` (including brackets)
+ #define dlg_log(level, ...)
+ #define dlg_logt(level, tags, ...)
+
+ // Dynamic level assert macros in various versions for additional arguments
+ #define dlg_assertl(level, expr) // assert without tags/message
+ #define dlg_assertlt(level, tags, expr) // assert with tags
+ #define dlg_assertlm(level, expr, ...) // assert with message
+ #define dlg_assertltm(level, tags, expr, ...) // assert with tags & message
+
+ // Sets the handler that is responsible for formatting and outputting log calls.
+ // This function is not thread safe and the handler is set globally.
+ // The handler itself must not change dlg tags or call a dlg macro (if it
+ // does so, the provided string or tags array in 'origin' might get invalid).
+ // The handler can also be used for various other things such as dealing
+ // with failed assertions or filtering calls based on the passed tags.
+ // The default handler is dlg_default_output (see its doc for more info).
+ // If using c++ make sure the registered handler cannot throw e.g. by
+ // wrapping everything into a try-catch blog.
+ inline void dlg_set_handler(dlg_handler handler, void* data) {
+ (void) handler;
+ (void) data;
+ }
+
+ // Returns the currently active dlg handler and sets `data` to
+ // its user data pointer. `data` must not be NULL.
+ // Useful to create handler chains.
+ // This function is not threadsafe, i.e. retrieving the handler while
+ // changing it from another thread is unsafe.
+ // See `dlg_set_handler`.
+ inline dlg_handler dlg_get_handler(void** data) {
+ *data = NULL;
+ return NULL;
+ }
+
+ // The default output handler.
+ // Only use this to reset the output handler, prefer to use
+ // dlg_generic_output (from output.h) which this function simply calls.
+ // It also flushes the stream used and correctly outputs even from multiple threads.
+ inline void dlg_default_output(const struct dlg_origin* o, const char* str, void* data) {
+ (void) o;
+ (void) str;
+ (void) data;
+ }
+
+ // Adds the given tag associated with the given function to the thread specific list.
+ // If func is not NULL the tag will only applied to calls from the same function.
+ // Remove the tag again calling dlg_remove_tag (with exactly the same pointers!).
+ // Does not check if the tag is already present.
+ inline void dlg_add_tag(const char* tag, const char* func) {
+ (void) tag;
+ (void) func;
+ }
+
+ // Removes a tag added with dlg_add_tag (has no effect for tags no present).
+ // The pointers must be exactly the same pointers that were supplied to dlg_add_tag,
+ // this function will not check using strcmp. When the same tag/func combination
+ // is added multiple times, this function remove exactly one candidate, it is
+ // undefined which. Returns whether a tag was found (and removed).
+ inline bool dlg_remove_tag(const char* tag, const char* func) {
+ (void) tag;
+ (void) func;
+ return true;
+ }
+
+ // Returns the thread-specific buffer and its size for dlg.
+ // The buffer should only be used by formatting functions.
+ // The buffer can be reallocated and the size changed, just make sure
+ // to update both values correctly.
+ inline char** dlg_thread_buffer(size_t** size) {
+ (void) size;
+ return NULL;
+ }
+
+#else // DLG_DISABLE
+ #define dlg_log(level, ...) if(level >= DLG_LOG_LEVEL) \
+ dlg__do_log(level, DLG_CREATE_TAGS(NULL), DLG_FILE, __LINE__, __func__, \
+ DLG_FMT_FUNC(__VA_ARGS__), NULL)
+ #define dlg_logt(level, tags, ...) if(level >= DLG_LOG_LEVEL) \
+ dlg__do_log(level, DLG_CREATE_TAGS tags, DLG_FILE, __LINE__, __func__, \
+ DLG_FMT_FUNC(__VA_ARGS__), NULL)
+
+ #define dlg_assertl(level, expr) if(level >= DLG_ASSERT_LEVEL && !(expr)) \
+ dlg__do_log(level, DLG_CREATE_TAGS(NULL), DLG_FILE, __LINE__, __func__, NULL, #expr)
+ #define dlg_assertlt(level, tags, expr) if(level >= DLG_ASSERT_LEVEL && !(expr)) \
+ dlg__do_log(level, DLG_CREATE_TAGS tags, DLG_FILE, __LINE__, __func__, NULL, #expr)
+ #define dlg_assertlm(level, expr, ...) if(level >= DLG_ASSERT_LEVEL && !(expr)) \
+ dlg__do_log(level, DLG_CREATE_TAGS(NULL), DLG_FILE, __LINE__, __func__, \
+ DLG_FMT_FUNC(__VA_ARGS__), #expr)
+ #define dlg_assertltm(level, tags, expr, ...) if(level >= DLG_ASSERT_LEVEL && !(expr)) \
+ dlg__do_log(level, DLG_CREATE_TAGS tags, DLG_FILE, __LINE__, \
+ __func__, DLG_FMT_FUNC(__VA_ARGS__), #expr)
+
+ DLG_API void dlg_set_handler(dlg_handler handler, void* data);
+ DLG_API dlg_handler dlg_get_handler(void** data);
+ DLG_API void dlg_default_output(const struct dlg_origin*, const char* string, void*);
+ DLG_API void dlg_add_tag(const char* tag, const char* func);
+ DLG_API bool dlg_remove_tag(const char* tag, const char* func);
+ DLG_API char** dlg_thread_buffer(size_t** size);
+
+ // - Private interface: not part of the abi/api but needed in macros -
+ // Formats the given format string and arguments as printf would, uses the thread buffer.
+ DLG_API const char* dlg__printf_format(const char* format, ...) DLG_PRINTF_ATTRIB(1, 2);
+ DLG_API void dlg__do_log(enum dlg_level lvl, const char* const*, const char*, int,
+ const char*, const char*, const char*);
+ DLG_API const char* dlg__strip_root_path(const char* file, const char* base);
+#endif // DLG_DISABLE
+
+// Untagged leveled logging
+#define dlg_trace(...) dlg_log(dlg_level_trace, __VA_ARGS__)
+#define dlg_debug(...) dlg_log(dlg_level_debug, __VA_ARGS__)
+#define dlg_info(...) dlg_log(dlg_level_info, __VA_ARGS__)
+#define dlg_warn(...) dlg_log(dlg_level_warn, __VA_ARGS__)
+#define dlg_error(...) dlg_log(dlg_level_error, __VA_ARGS__)
+#define dlg_fatal(...) dlg_log(dlg_level_fatal, __VA_ARGS__)
+
+// Tagged leveled logging
+#define dlg_tracet(tags, ...) dlg_logt(dlg_level_trace, tags, __VA_ARGS__)
+#define dlg_debugt(tags, ...) dlg_logt(dlg_level_debug, tags, __VA_ARGS__)
+#define dlg_infot(tags, ...) dlg_logt(dlg_level_info, tags, __VA_ARGS__)
+#define dlg_warnt(tags, ...) dlg_logt(dlg_level_warn, tags, __VA_ARGS__)
+#define dlg_errort(tags, ...) dlg_logt(dlg_level_error, tags, __VA_ARGS__)
+#define dlg_fatalt(tags, ...) dlg_logt(dlg_level_fatal, tags, __VA_ARGS__)
+
+// Assert macros useing DLG_DEFAULT_ASSERT as level
+#define dlg_assert(expr) dlg_assertl(DLG_DEFAULT_ASSERT, expr)
+#define dlg_assertt(tags, expr) dlg_assertlt(DLG_DEFAULT_ASSERT, tags, expr)
+#define dlg_assertm(expr, ...) dlg_assertlm(DLG_DEFAULT_ASSERT, expr, __VA_ARGS__)
+#define dlg_asserttm(tags, expr, ...) dlg_assertltm(DLG_DEFAULT_ASSERT, tags, expr, __VA_ARGS__)
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif // header guard
diff --git a/freetype/include/dlg/output.h b/freetype/include/dlg/output.h
new file mode 100644
index 00000000..453e4a56
--- /dev/null
+++ b/freetype/include/dlg/output.h
@@ -0,0 +1,172 @@
+// Copyright (c) 2019 nyorain
+// Distributed under the Boost Software License, Version 1.0.
+// See accompanying file LICENSE or copy at http://www.boost.org/LICENSE_1_0.txt
+
+#ifndef INC_DLG_OUTPUT_H_
+#define INC_DLG_OUTPUT_H_
+
+#include <dlg/dlg.h>
+#include <stdio.h>
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+// Text style
+enum dlg_text_style {
+ dlg_text_style_reset = 0,
+ dlg_text_style_bold = 1,
+ dlg_text_style_dim = 2,
+ dlg_text_style_italic = 3,
+ dlg_text_style_underline = 4,
+ dlg_text_style_blink = 5,
+ dlg_text_style_rblink = 6,
+ dlg_text_style_reversed = 7,
+ dlg_text_style_conceal = 8,
+ dlg_text_style_crossed = 9,
+ dlg_text_style_none,
+};
+
+// Text color
+enum dlg_color {
+ dlg_color_black = 0,
+ dlg_color_red,
+ dlg_color_green,
+ dlg_color_yellow,
+ dlg_color_blue,
+ dlg_color_magenta,
+ dlg_color_cyan,
+ dlg_color_gray,
+ dlg_color_reset = 9,
+
+ dlg_color_black2 = 60,
+ dlg_color_red2,
+ dlg_color_green2,
+ dlg_color_yellow2,
+ dlg_color_blue2,
+ dlg_color_magenta2,
+ dlg_color_cyan2,
+ dlg_color_gray2,
+
+ dlg_color_none = 69,
+};
+
+struct dlg_style {
+ enum dlg_text_style style;
+ enum dlg_color fg;
+ enum dlg_color bg;
+};
+
+// Like fprintf but fixes utf-8 output to console on windows.
+// On non-windows sytems just uses the corresponding standard library
+// functions. On windows, if dlg was compiled with the win_console option,
+// will first try to output it in a way that allows the default console
+// to display utf-8. If that fails, will fall back to the standard
+// library functions.
+DLG_API int dlg_fprintf(FILE* stream, const char* format, ...) DLG_PRINTF_ATTRIB(2, 3);
+DLG_API int dlg_vfprintf(FILE* stream, const char* format, va_list list);
+
+// Like dlg_printf, but also applies the given style to this output.
+// The style will always be applied (using escape sequences), independent of the given stream.
+// On windows escape sequences don't work out of the box, see dlg_win_init_ansi().
+DLG_API int dlg_styled_fprintf(FILE* stream, struct dlg_style style,
+ const char* format, ...) DLG_PRINTF_ATTRIB(3, 4);
+
+// Features to output from the generic output handler.
+// Some features might have only an effect in the specializations.
+enum dlg_output_feature {
+ dlg_output_tags = 1, // output tags list
+ dlg_output_time = 2, // output time of log call (hour:minute:second)
+ dlg_output_style = 4, // whether to use the supplied styles
+ dlg_output_func = 8, // output function
+ dlg_output_file_line = 16, // output file:line,
+ dlg_output_newline = 32, // output a newline at the end
+ dlg_output_threadsafe = 64, // locks stream before printing
+ dlg_output_time_msecs = 128 // output micro seconds (ms on windows)
+};
+
+// The default level-dependent output styles. The array values represent the styles
+// to be used for the associated level (i.e. [0] for trace level).
+DLG_API extern const struct dlg_style dlg_default_output_styles[6];
+
+// Generic output function. Used by the default output handler and might be useful
+// for custom output handlers (that don't want to manually format the output).
+// Will call the given output func with the given data (and format + args to print)
+// for everything it has to print in printf format.
+// See also the *_stream and *_buf specializations for common usage.
+// The given output function must not be NULL.
+typedef void(*dlg_generic_output_handler)(void* data, const char* format, ...);
+DLG_API void dlg_generic_output(dlg_generic_output_handler output, void* data,
+ unsigned int features, const struct dlg_origin* origin, const char* string,
+ const struct dlg_style styles[6]);
+
+// Generic output function, using a format string instead of feature flags.
+// Use following conversion characters:
+// %h - output the time in H:M:S format
+// %m - output the time in milliseconds
+// %t - output the full list of tags, comma separated
+// %f - output the function name noted in the origin
+// %o - output the file:line of the origin
+// %s - print the appropriate style escape sequence.
+// %r - print the escape sequence to reset the style.
+// %c - The content of the log/assert
+// %% - print the '%' character
+// Only the above specified conversion characters are valid, the rest are
+// written as it is.
+DLG_API void dlg_generic_outputf(dlg_generic_output_handler output, void* data,
+ const char* format_string, const struct dlg_origin* origin,
+ const char* string, const struct dlg_style styles[6]);
+
+// Generic output function. Used by the default output handler and might be useful
+// for custom output handlers (that don't want to manually format the output).
+// If stream is NULL uses stdout.
+// Automatically uses dlg_fprintf to assure correct utf-8 even on windows consoles.
+// Locks the stream (i.e. assures threadsafe access) when the associated feature
+// is passed (note that stdout/stderr might still mix from multiple threads).
+DLG_API void dlg_generic_output_stream(FILE* stream, unsigned int features,
+ const struct dlg_origin* origin, const char* string,
+ const struct dlg_style styles[6]);
+DLG_API void dlg_generic_outputf_stream(FILE* stream, const char* format_string,
+ const struct dlg_origin* origin, const char* string,
+ const struct dlg_style styles[6], bool lock_stream);
+
+// Generic output function (see dlg_generic_output) that uses a buffer instead of
+// a stream. buf must at least point to *size bytes. Will set *size to the number
+// of bytes written (capped to the given size), if buf == NULL will set *size
+// to the needed size. The size parameter must not be NULL.
+DLG_API void dlg_generic_output_buf(char* buf, size_t* size, unsigned int features,
+ const struct dlg_origin* origin, const char* string,
+ const struct dlg_style styles[6]);
+DLG_API void dlg_generic_outputf_buf(char* buf, size_t* size, const char* format_string,
+ const struct dlg_origin* origin, const char* string,
+ const struct dlg_style styles[6]);
+
+// Returns if the given stream is a tty. Useful for custom output handlers
+// e.g. to determine whether to use color.
+// NOTE: Due to windows limitations currently returns false for wsl ttys.
+DLG_API bool dlg_is_tty(FILE* stream);
+
+// Returns the null-terminated escape sequence for the given style into buf.
+// Undefined behvaiour if any member of style has a value outside its enum range (will
+// probably result in a buffer overflow or garbage being printed).
+// If all member of style are 'none' will simply nullterminate the first buf char.
+DLG_API void dlg_escape_sequence(struct dlg_style style, char buf[12]);
+
+// The reset style escape sequence.
+DLG_API extern const char* const dlg_reset_sequence;
+
+// Just returns true without other effect on non-windows systems or if dlg
+// was compiled without the win_console option.
+// On windows tries to set the console mode to ansi to make escape sequences work.
+// This works only on newer windows 10 versions. Returns false on error.
+// Only the first call to it will have an effect, following calls just return the result.
+// The function is threadsafe. Automatically called by the default output handler.
+// This will only be able to set the mode for the stdout and stderr consoles, so
+// other streams to consoles will still not work.
+DLG_API bool dlg_win_init_ansi(void);
+
+#ifdef __cplusplus
+} // extern "C"
+#endif
+
+#endif // header guard
diff --git a/freetype/include/freetype/config/ftconfig.h b/freetype/include/freetype/config/ftconfig.h
index b464e0b7..65effcbe 100644
--- a/freetype/include/freetype/config/ftconfig.h
+++ b/freetype/include/freetype/config/ftconfig.h
@@ -4,7 +4,7 @@
*
* ANSI-specific configuration file (specification only).
*
- * Copyright (C) 1996-2020 by
+ * Copyright (C) 1996-2021 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
diff --git a/freetype/include/freetype/config/ftheader.h b/freetype/include/freetype/config/ftheader.h
index 28b5cc60..e46d314e 100644
--- a/freetype/include/freetype/config/ftheader.h
+++ b/freetype/include/freetype/config/ftheader.h
@@ -4,7 +4,7 @@
*
* Build macros of the FreeType 2 library.
*
- * Copyright (C) 1996-2020 by
+ * Copyright (C) 1996-2021 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
diff --git a/freetype/include/freetype/config/ftmodule.h b/freetype/include/freetype/config/ftmodule.h
index b5c4b1ee..d4ba3f78 100644
--- a/freetype/include/freetype/config/ftmodule.h
+++ b/freetype/include/freetype/config/ftmodule.h
@@ -19,12 +19,14 @@ FT_USE_MODULE( FT_Driver_ClassRec, pfr_driver_class )
FT_USE_MODULE( FT_Driver_ClassRec, t42_driver_class )
FT_USE_MODULE( FT_Driver_ClassRec, winfnt_driver_class )
FT_USE_MODULE( FT_Driver_ClassRec, pcf_driver_class )
+FT_USE_MODULE( FT_Driver_ClassRec, bdf_driver_class )
FT_USE_MODULE( FT_Module_Class, psaux_module_class )
FT_USE_MODULE( FT_Module_Class, psnames_module_class )
FT_USE_MODULE( FT_Module_Class, pshinter_module_class )
-FT_USE_MODULE( FT_Renderer_Class, ft_raster1_renderer_class )
FT_USE_MODULE( FT_Module_Class, sfnt_module_class )
FT_USE_MODULE( FT_Renderer_Class, ft_smooth_renderer_class )
-FT_USE_MODULE( FT_Driver_ClassRec, bdf_driver_class )
+FT_USE_MODULE( FT_Renderer_Class, ft_raster1_renderer_class )
+FT_USE_MODULE( FT_Renderer_Class, ft_sdf_renderer_class )
+FT_USE_MODULE( FT_Renderer_Class, ft_bitmap_sdf_renderer_class )
/* EOF */
diff --git a/freetype/include/freetype/config/ftoption.h b/freetype/include/freetype/config/ftoption.h
index 097f19b8..4227fd37 100644
--- a/freetype/include/freetype/config/ftoption.h
+++ b/freetype/include/freetype/config/ftoption.h
@@ -4,7 +4,7 @@
*
* User-selectable configuration macros (specification only).
*
- * Copyright (C) 1996-2020 by
+ * Copyright (C) 1996-2021 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
@@ -105,8 +105,7 @@ FT_BEGIN_HEADER
*
* ```
* FREETYPE_PROPERTIES=truetype:interpreter-version=35 \
- * cff:no-stem-darkening=1 \
- * autofitter:warping=1
+ * cff:no-stem-darkening=1
* ```
*
*/
@@ -433,6 +432,23 @@ FT_BEGIN_HEADER
/**************************************************************************
*
+ * Logging
+ *
+ * Compiling FreeType in debug or trace mode makes FreeType write error
+ * and trace log messages to `stderr`. Enabling this macro
+ * automatically forces the `FT_DEBUG_LEVEL_ERROR` and
+ * `FT_DEBUG_LEVEL_TRACE` macros and allows FreeType to write error and
+ * trace log messages to a file instead of `stderr`. For writing logs
+ * to a file, FreeType uses an the external `dlg` library (the source
+ * code is in `src/dlg`).
+ *
+ * This option needs a C99 compiler.
+ */
+/* #define FT_DEBUG_LOGGING */
+
+
+ /**************************************************************************
+ *
* Autofitter debugging
*
* If `FT_DEBUG_AUTOFIT` is defined, FreeType provides some means to
@@ -894,24 +910,6 @@ FT_BEGIN_HEADER
/**************************************************************************
*
- * Compile 'autofit' module with warp hinting. The idea of the warping
- * code is to slightly scale and shift a glyph within a single dimension so
- * that as much of its segments are aligned (more or less) on the grid. To
- * find out the optimal scaling and shifting value, various parameter
- * combinations are tried and scored.
- *
- * You can switch warping on and off with the `warping` property of the
- * auto-hinter (see file `ftdriver.h` for more information; by default it
- * is switched off).
- *
- * This experimental option is not active if the rendering mode is
- * `FT_RENDER_MODE_LIGHT`.
- */
-#define AF_CONFIG_OPTION_USE_WARPER
-
-
- /**************************************************************************
- *
* Use TrueType-like size metrics for 'light' auto-hinting.
*
* It is strongly recommended to avoid this option, which exists only to
@@ -962,6 +960,21 @@ FT_BEGIN_HEADER
/*
+ * The TT_SUPPORT_COLRV1 macro is defined to indicate to clients that this
+ * version of FreeType has support for 'COLR' v1 API. This definition is
+ * useful to FreeType clients that want to build in support for 'COLR' v1
+ * depending on a tip-of-tree checkout before it is officially released in
+ * FreeType, and while the feature cannot yet be tested against using
+ * version macros. Don't change this macro. This may be removed once the
+ * feature is in a FreeType release version and version macros can be used
+ * to test for availability.
+ */
+#ifdef TT_CONFIG_OPTION_COLOR_LAYERS
+#define TT_SUPPORT_COLRV1
+#endif
+
+
+ /*
* Check CFF darkening parameters. The checks are the same as in function
* `cff_property_set` in file `cffdrivr.c`.
*/
diff --git a/freetype/include/freetype/config/ftstdlib.h b/freetype/include/freetype/config/ftstdlib.h
index d6091f8b..6ee412a0 100644
--- a/freetype/include/freetype/config/ftstdlib.h
+++ b/freetype/include/freetype/config/ftstdlib.h
@@ -5,7 +5,7 @@
* ANSI-specific library and header configuration file (specification
* only).
*
- * Copyright (C) 2002-2020 by
+ * Copyright (C) 2002-2021 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
@@ -43,7 +43,8 @@
*
* `UINT_MAX` and `ULONG_MAX` are used to automatically compute the size of
* `int` and `long` in bytes at compile-time. So far, this works for all
- * platforms the library has been tested on.
+ * platforms the library has been tested on. We also check `ULLONG_MAX`
+ * to see whether we can use 64-bit `long long` later on.
*
* Note that on the extremely rare platforms that do not provide integer
* types that are _exactly_ 16 and 32~bits wide (e.g., some old Crays where
@@ -66,6 +67,15 @@
#define FT_LONG_MIN LONG_MIN
#define FT_LONG_MAX LONG_MAX
#define FT_ULONG_MAX ULONG_MAX
+#ifdef LLONG_MAX
+#define FT_LLONG_MAX LLONG_MAX
+#endif
+#ifdef LLONG_MIN
+#define FT_LLONG_MIN LLONG_MIN
+#endif
+#ifdef ULLONG_MAX
+#define FT_ULLONG_MAX ULLONG_MAX
+#endif
/**************************************************************************
diff --git a/freetype/include/freetype/config/integer-types.h b/freetype/include/freetype/config/integer-types.h
index a0ca0c95..5ef09f19 100644
--- a/freetype/include/freetype/config/integer-types.h
+++ b/freetype/include/freetype/config/integer-types.h
@@ -4,7 +4,7 @@
*
* FreeType integer types definitions.
*
- * Copyright (C) 1996-2020 by
+ * Copyright (C) 1996-2021 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
@@ -60,6 +60,18 @@
#endif /* !defined(FT_SIZEOF_LONG) */
+#ifndef FT_SIZEOF_LONG_LONG
+
+ /* The size of a `long long` type if available */
+#if defined( FT_ULLONG_MAX ) && FT_ULLONG_MAX >= 0xFFFFFFFFFFFFFFFFULL
+#define FT_SIZEOF_LONG_LONG ( 64 / FT_CHAR_BIT )
+#else
+#define FT_SIZEOF_LONG_LONG 0
+#endif
+
+#endif /* !defined(FT_SIZEOF_LONG_LONG) */
+
+
/**************************************************************************
*
* @section:
@@ -174,15 +186,17 @@
#endif
- /* determine whether we have a 64-bit `int` type for platforms without */
- /* Autoconf */
+ /* determine whether we have a 64-bit integer type */
#if FT_SIZEOF_LONG == ( 64 / FT_CHAR_BIT )
- /* `FT_LONG64` must be defined if a 64-bit type is available */
-#define FT_LONG64
#define FT_INT64 long
#define FT_UINT64 unsigned long
+#elif FT_SIZEOF_LONG_LONG >= ( 64 / FT_CHAR_BIT )
+
+#define FT_INT64 long long int
+#define FT_UINT64 unsigned long long int
+
/**************************************************************************
*
* A 64-bit data type may create compilation problems if you compile in
@@ -192,16 +206,9 @@
*/
#elif !defined( __STDC__ ) || defined( FT_CONFIG_OPTION_FORCE_INT64 )
-#if defined( __STDC_VERSION__ ) && __STDC_VERSION__ >= 199901L
-
-#define FT_LONG64
-#define FT_INT64 long long int
-#define FT_UINT64 unsigned long long int
-
-#elif defined( _MSC_VER ) && _MSC_VER >= 900 /* Visual C++ (and Intel C++) */
+#if defined( _MSC_VER ) && _MSC_VER >= 900 /* Visual C++ (and Intel C++) */
/* this compiler provides the `__int64` type */
-#define FT_LONG64
#define FT_INT64 __int64
#define FT_UINT64 unsigned __int64
@@ -211,7 +218,6 @@
/* to test the compiler version. */
/* this compiler provides the `__int64` type */
-#define FT_LONG64
#define FT_INT64 __int64
#define FT_UINT64 unsigned __int64
@@ -221,22 +227,20 @@
#elif defined( __MWERKS__ ) /* Metrowerks CodeWarrior */
-#define FT_LONG64
#define FT_INT64 long long int
#define FT_UINT64 unsigned long long int
#elif defined( __GNUC__ )
/* GCC provides the `long long` type */
-#define FT_LONG64
#define FT_INT64 long long int
#define FT_UINT64 unsigned long long int
-#endif /* __STDC_VERSION__ >= 199901L */
+#endif /* !__STDC__ */
#endif /* FT_SIZEOF_LONG == (64 / FT_CHAR_BIT) */
-#ifdef FT_LONG64
+#ifdef FT_INT64
typedef FT_INT64 FT_Int64;
typedef FT_UINT64 FT_UInt64;
#endif
diff --git a/freetype/include/freetype/config/mac-support.h b/freetype/include/freetype/config/mac-support.h
index 94867088..ef58d8b3 100644
--- a/freetype/include/freetype/config/mac-support.h
+++ b/freetype/include/freetype/config/mac-support.h
@@ -4,7 +4,7 @@
*
* Mac/OS X support configuration header.
*
- * Copyright (C) 1996-2020 by
+ * Copyright (C) 1996-2021 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
diff --git a/freetype/include/freetype/config/public-macros.h b/freetype/include/freetype/config/public-macros.h
index 6aa673e8..9fbb3274 100644
--- a/freetype/include/freetype/config/public-macros.h
+++ b/freetype/include/freetype/config/public-macros.h
@@ -4,7 +4,7 @@
*
* Define a set of compiler macros used in public FreeType headers.
*
- * Copyright (C) 2020 by
+ * Copyright (C) 2020-2021 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
@@ -103,6 +103,7 @@ FT_BEGIN_HEADER
*/
#define FT_EXPORT( x ) FT_PUBLIC_FUNCTION_ATTRIBUTE extern x
+
/*
* `FT_UNUSED` indicates that a given parameter is not used -- this is
* only used to get rid of unpleasant compiler warnings.
@@ -115,6 +116,23 @@ FT_BEGIN_HEADER
#endif
+ /*
+ * Support for casts in both C and C++.
+ */
+#ifdef __cplusplus
+#define FT_STATIC_CAST( type, var ) static_cast<type>(var)
+#define FT_REINTERPRET_CAST( type, var ) reinterpret_cast<type>(var)
+
+#define FT_STATIC_BYTE_CAST( type, var ) \
+ static_cast<type>( static_cast<unsigned char>( var ) )
+#else
+#define FT_STATIC_CAST( type, var ) (type)(var)
+#define FT_REINTERPRET_CAST( type, var ) (type)(var)
+
+#define FT_STATIC_BYTE_CAST( type, var ) (type)(unsigned char)(var)
+#endif
+
+
FT_END_HEADER
#endif /* FREETYPE_CONFIG_PUBLIC_MACROS_H_ */
diff --git a/freetype/include/freetype/freetype.h b/freetype/include/freetype/freetype.h
index be191f5a..f6c66b94 100644
--- a/freetype/include/freetype/freetype.h
+++ b/freetype/include/freetype/freetype.h
@@ -4,7 +4,7 @@
*
* FreeType high-level API and common types (specification only).
*
- * Copyright (C) 1996-2020 by
+ * Copyright (C) 1996-2021 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
@@ -33,6 +33,34 @@ FT_BEGIN_HEADER
/**************************************************************************
*
* @section:
+ * preamble
+ *
+ * @title:
+ * Preamble
+ *
+ * @abstract:
+ * What FreeType is and isn't
+ *
+ * @description:
+ * FreeType is a library that provides access to glyphs in font files. It
+ * scales the glyph images and their metrics to a requested size, and it
+ * rasterizes the glyph images to produce pixel or subpixel alpha coverage
+ * bitmaps.
+ *
+ * Note that FreeType is _not_ a text layout engine. You have to use
+ * higher-level libraries like HarfBuzz, Pango, or ICU for that.
+ *
+ * Note also that FreeType does _not_ perform alpha blending or
+ * compositing the resulting bitmaps or pixmaps by itself. Use your
+ * favourite graphics library (for example, Cairo or Skia) to further
+ * process FreeType's output.
+ *
+ */
+
+
+ /**************************************************************************
+ *
+ * @section:
* header_inclusion
*
* @title:
@@ -176,6 +204,7 @@ FT_BEGIN_HEADER
* FT_Size_RequestRec
* FT_Size_Request
* FT_Set_Transform
+ * FT_Get_Transform
* FT_Load_Glyph
* FT_Get_Char_Index
* FT_Get_First_Char
@@ -587,11 +616,12 @@ FT_BEGIN_HEADER
*/
#ifndef FT_ENC_TAG
-#define FT_ENC_TAG( value, a, b, c, d ) \
- value = ( ( (FT_UInt32)(a) << 24 ) | \
- ( (FT_UInt32)(b) << 16 ) | \
- ( (FT_UInt32)(c) << 8 ) | \
- (FT_UInt32)(d) )
+
+#define FT_ENC_TAG( value, a, b, c, d ) \
+ value = ( ( FT_STATIC_BYTE_CAST( FT_UInt32, a ) << 24 ) | \
+ ( FT_STATIC_BYTE_CAST( FT_UInt32, b ) << 16 ) | \
+ ( FT_STATIC_BYTE_CAST( FT_UInt32, c ) << 8 ) | \
+ FT_STATIC_BYTE_CAST( FT_UInt32, d ) )
#endif /* FT_ENC_TAG */
@@ -701,11 +731,16 @@ FT_BEGIN_HEADER
* Same as FT_ENCODING_JOHAB. Deprecated.
*
* @note:
- * By default, FreeType enables a Unicode charmap and tags it with
- * `FT_ENCODING_UNICODE` when it is either provided or can be generated
- * from PostScript glyph name dictionaries in the font file. All other
- * encodings are considered legacy and tagged only if explicitly defined
- * in the font file. Otherwise, `FT_ENCODING_NONE` is used.
+ * When loading a font, FreeType makes a Unicode charmap active if
+ * possible (either if the font provides such a charmap, or if FreeType
+ * can synthesize one from PostScript glyph name dictionaries; in either
+ * case, the charmap is tagged with `FT_ENCODING_UNICODE`). If such a
+ * charmap is synthesized, it is placed at the first position of the
+ * charmap array.
+ *
+ * All other encodings are considered legacy and tagged only if
+ * explicitly defined in the font file. Otherwise, `FT_ENCODING_NONE` is
+ * used.
*
* `FT_ENCODING_NONE` is set by the BDF and PCF drivers if the charmap is
* neither Unicode nor ISO-8859-1 (otherwise it is set to
@@ -2065,7 +2100,8 @@ FT_BEGIN_HEADER
* The size in bytes of the file in memory.
*
* pathname ::
- * A pointer to an 8-bit file pathname. The pointer is not owned by
+ * A pointer to an 8-bit file pathname, which must be a C~string (i.e.,
+ * no null bytes except at the very end). The pointer is not owned by
* FreeType.
*
* stream ::
@@ -2084,8 +2120,7 @@ FT_BEGIN_HEADER
* Extra parameters passed to the font driver when opening a new face.
*
* @note:
- * The stream type is determined by the contents of `flags` that are
- * tested in the following order by @FT_Open_Face:
+ * The stream type is determined by the contents of `flags`:
*
* If the @FT_OPEN_MEMORY bit is set, assume that this is a memory file
* of `memory_size` bytes, located at `memory_address`. The data are not
@@ -2098,6 +2133,9 @@ FT_BEGIN_HEADER
* Otherwise, if the @FT_OPEN_PATHNAME bit is set, assume that this is a
* normal file and use `pathname` to open it.
*
+ * If none of the above bits are set or if multiple are set at the same
+ * time, the flags are invalid and @FT_Open_Face fails.
+ *
* If the @FT_OPEN_DRIVER bit is set, @FT_Open_Face only tries to open
* the file with the driver whose handler is in `driver`.
*
@@ -2150,6 +2188,13 @@ FT_BEGIN_HEADER
* FreeType error code. 0~means success.
*
* @note:
+ * The `pathname` string should be recognizable as such by a standard
+ * `fopen` call on your system; in particular, this means that `pathname`
+ * must not contain null bytes. If that is not sufficient to address all
+ * file name possibilities (for example, to handle wide character file
+ * names on Windows in UTF-16 encoding) you might use @FT_Open_Face to
+ * pass a memory array or a stream object instead.
+ *
* Use @FT_Done_Face to destroy the created @FT_Face object (along with
* its slot and sizes).
*/
@@ -2270,6 +2315,10 @@ FT_BEGIN_HEADER
* See the discussion of reference counters in the description of
* @FT_Reference_Face.
*
+ * If `FT_OPEN_STREAM` is set in `args->flags`, the stream in
+ * `args->stream` is automatically closed before this function returns
+ * any error (including `FT_Err_Invalid_Argument`).
+ *
* @example:
* To loop over all faces, use code similar to the following snippet
* (omitting the error handling).
@@ -2428,6 +2477,7 @@ FT_BEGIN_HEADER
*
* @since:
* 2.4.2
+ *
*/
FT_EXPORT( FT_Error )
FT_Reference_Face( FT_Face face );
@@ -2874,7 +2924,7 @@ FT_BEGIN_HEADER
*
* If the font is 'tricky' (see @FT_FACE_FLAG_TRICKY for more), using
* `FT_LOAD_NO_SCALE` usually yields meaningless outlines because the
- * subglyphs must be scaled and positioned with hinting instructions.
+ * subglyphs must be scaled and positioned with hinting instructions.
* This can be solved by loading the font without `FT_LOAD_NO_SCALE`
* and setting the character size to `font->units_per_EM`.
*
@@ -3132,7 +3182,7 @@ FT_BEGIN_HEADER
* necessary to empty the cache after a mode switch to avoid false hits.
*
*/
-#define FT_LOAD_TARGET_( x ) ( (FT_Int32)( (x) & 15 ) << 16 )
+#define FT_LOAD_TARGET_( x ) ( FT_STATIC_CAST( FT_Int32, (x) & 15 ) << 16 )
#define FT_LOAD_TARGET_NORMAL FT_LOAD_TARGET_( FT_RENDER_MODE_NORMAL )
#define FT_LOAD_TARGET_LIGHT FT_LOAD_TARGET_( FT_RENDER_MODE_LIGHT )
@@ -3151,7 +3201,8 @@ FT_BEGIN_HEADER
* @FT_LOAD_TARGET_XXX value.
*
*/
-#define FT_LOAD_TARGET_MODE( x ) ( (FT_Render_Mode)( ( (x) >> 16 ) & 15 ) )
+#define FT_LOAD_TARGET_MODE( x ) \
+ FT_STATIC_CAST( FT_Render_Mode, ( (x) >> 16 ) & 15 )
/**************************************************************************
@@ -3172,11 +3223,12 @@ FT_BEGIN_HEADER
* A pointer to the transformation's 2x2 matrix. Use `NULL` for the
* identity matrix.
* delta ::
- * A pointer to the translation vector. Use `NULL` for the null vector.
+ * A pointer to the translation vector. Use `NULL` for the null
+ * vector.
*
* @note:
* This function is provided as a convenience, but keep in mind that
- * @FT_Matrix coefficients are only 16.16 fixed point values, which can
+ * @FT_Matrix coefficients are only 16.16 fixed-point values, which can
* limit the accuracy of the results. Using floating-point computations
* to perform the transform directly in client code instead will always
* yield better numbers.
@@ -3197,6 +3249,39 @@ FT_BEGIN_HEADER
/**************************************************************************
*
+ * @function:
+ * FT_Get_Transform
+ *
+ * @description:
+ * Return the transformation that is applied to glyph images when they
+ * are loaded into a glyph slot through @FT_Load_Glyph. See
+ * @FT_Set_Transform for more details.
+ *
+ * @input:
+ * face ::
+ * A handle to the source face object.
+ *
+ * @output:
+ * matrix ::
+ * A pointer to a transformation's 2x2 matrix. Set this to NULL if you
+ * are not interested in the value.
+ *
+ * delta ::
+ * A pointer a translation vector. Set this to NULL if you are not
+ * interested in the value.
+ *
+ * @since:
+ * 2.11
+ *
+ */
+ FT_EXPORT( void )
+ FT_Get_Transform( FT_Face face,
+ FT_Matrix* matrix,
+ FT_Vector* delta );
+
+
+ /**************************************************************************
+ *
* @enum:
* FT_Render_Mode
*
@@ -3213,6 +3298,10 @@ FT_BEGIN_HEADER
* correction to correctly render non-monochrome glyph bitmaps onto a
* surface; see @FT_Render_Glyph.
*
+ * The @FT_RENDER_MODE_SDF is a special render mode that uses up to 256
+ * distance values, indicating the signed distance from the grid position
+ * to the nearest outline.
+ *
* @values:
* FT_RENDER_MODE_NORMAL ::
* Default render mode; it corresponds to 8-bit anti-aliased bitmaps.
@@ -3238,11 +3327,49 @@ FT_BEGIN_HEADER
* bitmaps that are 3~times the height of the original glyph outline in
* pixels and use the @FT_PIXEL_MODE_LCD_V mode.
*
+ * FT_RENDER_MODE_SDF ::
+ * This mode corresponds to 8-bit, single-channel signed distance field
+ * (SDF) bitmaps. Each pixel in the SDF grid is the value from the
+ * pixel's position to the nearest glyph's outline. The distances are
+ * calculated from the center of the pixel and are positive if they are
+ * filled by the outline (i.e., inside the outline) and negative
+ * otherwise. Check the note below on how to convert the output values
+ * to usable data.
+ *
* @note:
* The selected render mode only affects vector glyphs of a font.
* Embedded bitmaps often have a different pixel mode like
* @FT_PIXEL_MODE_MONO. You can use @FT_Bitmap_Convert to transform them
* into 8-bit pixmaps.
+ *
+ * For @FT_RENDER_MODE_SDF the output bitmap buffer contains normalized
+ * distances that are packed into unsigned 8-bit values. To get pixel
+ * values in floating point representation use the following pseudo-C
+ * code for the conversion.
+ *
+ * ```
+ * // Load glyph and render using FT_RENDER_MODE_SDF,
+ * // then use the output buffer as follows.
+ *
+ * ...
+ * FT_Byte buffer = glyph->bitmap->buffer;
+ *
+ *
+ * for pixel in buffer
+ * {
+ * // `sd` is the signed distance and `spread` is the current spread;
+ * // the default spread is 2 and can be changed.
+ *
+ * float sd = (float)pixel - 128.0f;
+ *
+ *
+ * // Convert to pixel values.
+ * sd = ( sd / 128.0f ) * spread;
+ *
+ * // Store `sd` in a buffer or use as required.
+ * }
+ *
+ * ```
*/
typedef enum FT_Render_Mode_
{
@@ -3251,6 +3378,7 @@ FT_BEGIN_HEADER
FT_RENDER_MODE_MONO,
FT_RENDER_MODE_LCD,
FT_RENDER_MODE_LCD_V,
+ FT_RENDER_MODE_SDF,
FT_RENDER_MODE_MAX
@@ -3338,7 +3466,8 @@ FT_BEGIN_HEADER
*
* which is known as the OVER operator.
*
- * To correctly composite an antialiased pixel of a glyph onto a surface,
+ * To correctly composite an anti-aliased pixel of a glyph onto a
+ * surface,
*
* 1. take the foreground and background colors (e.g., in sRGB space)
* and apply gamma to get them in a linear space,
@@ -4018,168 +4147,6 @@ FT_BEGIN_HEADER
/**************************************************************************
*
* @section:
- * layer_management
- *
- * @title:
- * Glyph Layer Management
- *
- * @abstract:
- * Retrieving and manipulating OpenType's 'COLR' table data.
- *
- * @description:
- * The functions described here allow access of colored glyph layer data
- * in OpenType's 'COLR' tables.
- */
-
-
- /**************************************************************************
- *
- * @struct:
- * FT_LayerIterator
- *
- * @description:
- * This iterator object is needed for @FT_Get_Color_Glyph_Layer.
- *
- * @fields:
- * num_layers ::
- * The number of glyph layers for the requested glyph index. Will be
- * set by @FT_Get_Color_Glyph_Layer.
- *
- * layer ::
- * The current layer. Will be set by @FT_Get_Color_Glyph_Layer.
- *
- * p ::
- * An opaque pointer into 'COLR' table data. The caller must set this
- * to `NULL` before the first call of @FT_Get_Color_Glyph_Layer.
- */
- typedef struct FT_LayerIterator_
- {
- FT_UInt num_layers;
- FT_UInt layer;
- FT_Byte* p;
-
- } FT_LayerIterator;
-
-
- /**************************************************************************
- *
- * @function:
- * FT_Get_Color_Glyph_Layer
- *
- * @description:
- * This is an interface to the 'COLR' table in OpenType fonts to
- * iteratively retrieve the colored glyph layers associated with the
- * current glyph slot.
- *
- * https://docs.microsoft.com/en-us/typography/opentype/spec/colr
- *
- * The glyph layer data for a given glyph index, if present, provides an
- * alternative, multi-color glyph representation: Instead of rendering
- * the outline or bitmap with the given glyph index, glyphs with the
- * indices and colors returned by this function are rendered layer by
- * layer.
- *
- * The returned elements are ordered in the z~direction from bottom to
- * top; the 'n'th element should be rendered with the associated palette
- * color and blended on top of the already rendered layers (elements 0,
- * 1, ..., n-1).
- *
- * @input:
- * face ::
- * A handle to the parent face object.
- *
- * base_glyph ::
- * The glyph index the colored glyph layers are associated with.
- *
- * @inout:
- * iterator ::
- * An @FT_LayerIterator object. For the first call you should set
- * `iterator->p` to `NULL`. For all following calls, simply use the
- * same object again.
- *
- * @output:
- * aglyph_index ::
- * The glyph index of the current layer.
- *
- * acolor_index ::
- * The color index into the font face's color palette of the current
- * layer. The value 0xFFFF is special; it doesn't reference a palette
- * entry but indicates that the text foreground color should be used
- * instead (to be set up by the application outside of FreeType).
- *
- * The color palette can be retrieved with @FT_Palette_Select.
- *
- * @return:
- * Value~1 if everything is OK. If there are no more layers (or if there
- * are no layers at all), value~0 gets returned. In case of an error,
- * value~0 is returned also.
- *
- * @note:
- * This function is necessary if you want to handle glyph layers by
- * yourself. In particular, functions that operate with @FT_GlyphRec
- * objects (like @FT_Get_Glyph or @FT_Glyph_To_Bitmap) don't have access
- * to this information.
- *
- * Note that @FT_Render_Glyph is able to handle colored glyph layers
- * automatically if the @FT_LOAD_COLOR flag is passed to a previous call
- * to @FT_Load_Glyph. [This is an experimental feature.]
- *
- * @example:
- * ```
- * FT_Color* palette;
- * FT_LayerIterator iterator;
- *
- * FT_Bool have_layers;
- * FT_UInt layer_glyph_index;
- * FT_UInt layer_color_index;
- *
- *
- * error = FT_Palette_Select( face, palette_index, &palette );
- * if ( error )
- * palette = NULL;
- *
- * iterator.p = NULL;
- * have_layers = FT_Get_Color_Glyph_Layer( face,
- * glyph_index,
- * &layer_glyph_index,
- * &layer_color_index,
- * &iterator );
- *
- * if ( palette && have_layers )
- * {
- * do
- * {
- * FT_Color layer_color;
- *
- *
- * if ( layer_color_index == 0xFFFF )
- * layer_color = text_foreground_color;
- * else
- * layer_color = palette[layer_color_index];
- *
- * // Load and render glyph `layer_glyph_index', then
- * // blend resulting pixmap (using color `layer_color')
- * // with previously created pixmaps.
- *
- * } while ( FT_Get_Color_Glyph_Layer( face,
- * glyph_index,
- * &layer_glyph_index,
- * &layer_color_index,
- * &iterator ) );
- * }
- * ```
- */
- FT_EXPORT( FT_Bool )
- FT_Get_Color_Glyph_Layer( FT_Face face,
- FT_UInt base_glyph,
- FT_UInt *aglyph_index,
- FT_UInt *acolor_index,
- FT_LayerIterator* iterator );
-
-
- /**************************************************************************
- *
- * @section:
* base_interface
*
*/
@@ -4267,6 +4234,7 @@ FT_BEGIN_HEADER
*
* @since:
* 2.3.8
+ *
*/
FT_EXPORT( FT_UShort )
FT_Get_FSType_Flags( FT_Face face );
@@ -4360,6 +4328,7 @@ FT_BEGIN_HEADER
*
* @since:
* 2.3.6
+ *
*/
FT_EXPORT( FT_UInt )
FT_Face_GetCharVariantIndex( FT_Face face,
@@ -4396,6 +4365,7 @@ FT_BEGIN_HEADER
*
* @since:
* 2.3.6
+ *
*/
FT_EXPORT( FT_Int )
FT_Face_GetCharVariantIsDefault( FT_Face face,
@@ -4427,6 +4397,7 @@ FT_BEGIN_HEADER
*
* @since:
* 2.3.6
+ *
*/
FT_EXPORT( FT_UInt32* )
FT_Face_GetVariantSelectors( FT_Face face );
@@ -4460,6 +4431,7 @@ FT_BEGIN_HEADER
*
* @since:
* 2.3.6
+ *
*/
FT_EXPORT( FT_UInt32* )
FT_Face_GetVariantsOfChar( FT_Face face,
@@ -4494,6 +4466,7 @@ FT_BEGIN_HEADER
*
* @since:
* 2.3.6
+ *
*/
FT_EXPORT( FT_UInt32* )
FT_Face_GetCharsOfVariant( FT_Face face,
@@ -4766,8 +4739,8 @@ FT_BEGIN_HEADER
*
*/
#define FREETYPE_MAJOR 2
-#define FREETYPE_MINOR 10
-#define FREETYPE_PATCH 4
+#define FREETYPE_MINOR 11
+#define FREETYPE_PATCH 1
/**************************************************************************
@@ -4829,6 +4802,7 @@ FT_BEGIN_HEADER
*
* @since:
* 2.3.5
+ *
*/
FT_EXPORT( FT_Bool )
FT_Face_CheckTrueTypePatents( FT_Face face );
@@ -4857,6 +4831,7 @@ FT_BEGIN_HEADER
*
* @since:
* 2.3.5
+ *
*/
FT_EXPORT( FT_Bool )
FT_Face_SetUnpatentedHinting( FT_Face face,
diff --git a/freetype/include/freetype/ftadvanc.h b/freetype/include/freetype/ftadvanc.h
index f166bc6f..3a13bd3d 100644
--- a/freetype/include/freetype/ftadvanc.h
+++ b/freetype/include/freetype/ftadvanc.h
@@ -4,7 +4,7 @@
*
* Quick computation of advance widths (specification only).
*
- * Copyright (C) 2008-2020 by
+ * Copyright (C) 2008-2021 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
diff --git a/freetype/include/freetype/ftbbox.h b/freetype/include/freetype/ftbbox.h
index fda1ad94..713aedb1 100644
--- a/freetype/include/freetype/ftbbox.h
+++ b/freetype/include/freetype/ftbbox.h
@@ -4,7 +4,7 @@
*
* FreeType exact bbox computation (specification).
*
- * Copyright (C) 1996-2020 by
+ * Copyright (C) 1996-2021 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
diff --git a/freetype/include/freetype/ftbdf.h b/freetype/include/freetype/ftbdf.h
index 2e1daeea..c4285064 100644
--- a/freetype/include/freetype/ftbdf.h
+++ b/freetype/include/freetype/ftbdf.h
@@ -4,7 +4,7 @@
*
* FreeType API for accessing BDF-specific strings (specification).
*
- * Copyright (C) 2002-2020 by
+ * Copyright (C) 2002-2021 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
diff --git a/freetype/include/freetype/ftbitmap.h b/freetype/include/freetype/ftbitmap.h
index 282c22e1..11c45b0e 100644
--- a/freetype/include/freetype/ftbitmap.h
+++ b/freetype/include/freetype/ftbitmap.h
@@ -4,7 +4,7 @@
*
* FreeType utility functions for bitmaps (specification).
*
- * Copyright (C) 2004-2020 by
+ * Copyright (C) 2004-2021 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
diff --git a/freetype/include/freetype/ftbzip2.h b/freetype/include/freetype/ftbzip2.h
index eb6a5a55..afd2a82a 100644
--- a/freetype/include/freetype/ftbzip2.h
+++ b/freetype/include/freetype/ftbzip2.h
@@ -4,7 +4,7 @@
*
* Bzip2-compressed stream support.
*
- * Copyright (C) 2010-2020 by
+ * Copyright (C) 2010-2021 by
* Joel Klinghed.
*
* This file is part of the FreeType project, and may only be used,
diff --git a/freetype/include/freetype/ftcache.h b/freetype/include/freetype/ftcache.h
index 60472752..70399a32 100644
--- a/freetype/include/freetype/ftcache.h
+++ b/freetype/include/freetype/ftcache.h
@@ -4,7 +4,7 @@
*
* FreeType Cache subsystem (specification).
*
- * Copyright (C) 1996-2020 by
+ * Copyright (C) 1996-2021 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
@@ -86,8 +86,8 @@ FT_BEGIN_HEADER
* later use @FTC_CMapCache_Lookup to perform the equivalent of
* @FT_Get_Char_Index, only much faster.
*
- * If you want to use the @FT_Glyph caching, call @FTC_ImageCache, then
- * later use @FTC_ImageCache_Lookup to retrieve the corresponding
+ * If you want to use the @FT_Glyph caching, call @FTC_ImageCache_New,
+ * then later use @FTC_ImageCache_Lookup to retrieve the corresponding
* @FT_Glyph objects from the cache.
*
* If you need lots of small bitmaps, it is much more memory efficient to
diff --git a/freetype/include/freetype/ftchapters.h b/freetype/include/freetype/ftchapters.h
index 2ee26973..4f32cc88 100644
--- a/freetype/include/freetype/ftchapters.h
+++ b/freetype/include/freetype/ftchapters.h
@@ -15,6 +15,7 @@
* General Remarks
*
* @sections:
+ * preamble
* header_inclusion
* user_allocation
*
@@ -123,6 +124,7 @@
* gzip
* lzw
* bzip2
+ * debugging_apis
*
*/
diff --git a/freetype/include/freetype/ftcid.h b/freetype/include/freetype/ftcid.h
index a29fb333..9a415bd9 100644
--- a/freetype/include/freetype/ftcid.h
+++ b/freetype/include/freetype/ftcid.h
@@ -4,7 +4,7 @@
*
* FreeType API for accessing CID font information (specification).
*
- * Copyright (C) 2007-2020 by
+ * Copyright (C) 2007-2021 by
* Dereg Clegg and Michael Toftdal.
*
* This file is part of the FreeType project, and may only be used,
diff --git a/freetype/include/freetype/ftcolor.h b/freetype/include/freetype/ftcolor.h
index ecc6485e..08dbac0c 100644
--- a/freetype/include/freetype/ftcolor.h
+++ b/freetype/include/freetype/ftcolor.h
@@ -4,7 +4,7 @@
*
* FreeType's glyph color management (specification).
*
- * Copyright (C) 2018-2020 by
+ * Copyright (C) 2018-2021 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
@@ -302,6 +302,1411 @@ FT_BEGIN_HEADER
FT_Palette_Set_Foreground_Color( FT_Face face,
FT_Color foreground_color );
+
+ /**************************************************************************
+ *
+ * @section:
+ * layer_management
+ *
+ * @title:
+ * Glyph Layer Management
+ *
+ * @abstract:
+ * Retrieving and manipulating OpenType's 'COLR' table data.
+ *
+ * @description:
+ * The functions described here allow access of colored glyph layer data
+ * in OpenType's 'COLR' tables.
+ */
+
+
+ /**************************************************************************
+ *
+ * @struct:
+ * FT_LayerIterator
+ *
+ * @description:
+ * This iterator object is needed for @FT_Get_Color_Glyph_Layer.
+ *
+ * @fields:
+ * num_layers ::
+ * The number of glyph layers for the requested glyph index. Will be
+ * set by @FT_Get_Color_Glyph_Layer.
+ *
+ * layer ::
+ * The current layer. Will be set by @FT_Get_Color_Glyph_Layer.
+ *
+ * p ::
+ * An opaque pointer into 'COLR' table data. The caller must set this
+ * to `NULL` before the first call of @FT_Get_Color_Glyph_Layer.
+ */
+ typedef struct FT_LayerIterator_
+ {
+ FT_UInt num_layers;
+ FT_UInt layer;
+ FT_Byte* p;
+
+ } FT_LayerIterator;
+
+
+ /**************************************************************************
+ *
+ * @function:
+ * FT_Get_Color_Glyph_Layer
+ *
+ * @description:
+ * This is an interface to the 'COLR' table in OpenType fonts to
+ * iteratively retrieve the colored glyph layers associated with the
+ * current glyph slot.
+ *
+ * https://docs.microsoft.com/en-us/typography/opentype/spec/colr
+ *
+ * The glyph layer data for a given glyph index, if present, provides an
+ * alternative, multi-color glyph representation: Instead of rendering
+ * the outline or bitmap with the given glyph index, glyphs with the
+ * indices and colors returned by this function are rendered layer by
+ * layer.
+ *
+ * The returned elements are ordered in the z~direction from bottom to
+ * top; the 'n'th element should be rendered with the associated palette
+ * color and blended on top of the already rendered layers (elements 0,
+ * 1, ..., n-1).
+ *
+ * @input:
+ * face ::
+ * A handle to the parent face object.
+ *
+ * base_glyph ::
+ * The glyph index the colored glyph layers are associated with.
+ *
+ * @inout:
+ * iterator ::
+ * An @FT_LayerIterator object. For the first call you should set
+ * `iterator->p` to `NULL`. For all following calls, simply use the
+ * same object again.
+ *
+ * @output:
+ * aglyph_index ::
+ * The glyph index of the current layer.
+ *
+ * acolor_index ::
+ * The color index into the font face's color palette of the current
+ * layer. The value 0xFFFF is special; it doesn't reference a palette
+ * entry but indicates that the text foreground color should be used
+ * instead (to be set up by the application outside of FreeType).
+ *
+ * The color palette can be retrieved with @FT_Palette_Select.
+ *
+ * @return:
+ * Value~1 if everything is OK. If there are no more layers (or if there
+ * are no layers at all), value~0 gets returned. In case of an error,
+ * value~0 is returned also.
+ *
+ * @note:
+ * This function is necessary if you want to handle glyph layers by
+ * yourself. In particular, functions that operate with @FT_GlyphRec
+ * objects (like @FT_Get_Glyph or @FT_Glyph_To_Bitmap) don't have access
+ * to this information.
+ *
+ * Note that @FT_Render_Glyph is able to handle colored glyph layers
+ * automatically if the @FT_LOAD_COLOR flag is passed to a previous call
+ * to @FT_Load_Glyph. [This is an experimental feature.]
+ *
+ * @example:
+ * ```
+ * FT_Color* palette;
+ * FT_LayerIterator iterator;
+ *
+ * FT_Bool have_layers;
+ * FT_UInt layer_glyph_index;
+ * FT_UInt layer_color_index;
+ *
+ *
+ * error = FT_Palette_Select( face, palette_index, &palette );
+ * if ( error )
+ * palette = NULL;
+ *
+ * iterator.p = NULL;
+ * have_layers = FT_Get_Color_Glyph_Layer( face,
+ * glyph_index,
+ * &layer_glyph_index,
+ * &layer_color_index,
+ * &iterator );
+ *
+ * if ( palette && have_layers )
+ * {
+ * do
+ * {
+ * FT_Color layer_color;
+ *
+ *
+ * if ( layer_color_index == 0xFFFF )
+ * layer_color = text_foreground_color;
+ * else
+ * layer_color = palette[layer_color_index];
+ *
+ * // Load and render glyph `layer_glyph_index', then
+ * // blend resulting pixmap (using color `layer_color')
+ * // with previously created pixmaps.
+ *
+ * } while ( FT_Get_Color_Glyph_Layer( face,
+ * glyph_index,
+ * &layer_glyph_index,
+ * &layer_color_index,
+ * &iterator ) );
+ * }
+ * ```
+ */
+ FT_EXPORT( FT_Bool )
+ FT_Get_Color_Glyph_Layer( FT_Face face,
+ FT_UInt base_glyph,
+ FT_UInt *aglyph_index,
+ FT_UInt *acolor_index,
+ FT_LayerIterator* iterator );
+
+
+ /**************************************************************************
+ *
+ * @enum:
+ * FT_PaintFormat
+ *
+ * @description:
+ * Enumeration describing the different paint format types of the v1
+ * extensions to the 'COLR' table, see
+ * 'https://github.com/googlefonts/colr-gradients-spec'.
+ *
+ * The enumeration values losely correspond with the format numbers of
+ * the specification: FreeType always returns a fully specified 'Paint'
+ * structure for the 'Transform', 'Translate', 'Scale', 'Rotate', and
+ * 'Skew' table types even though the specification has different formats
+ * depending on whether or not a center is specified, whether the scale
+ * is uniform in x and y~direction or not, etc. Also, only non-variable
+ * format identifiers are listed in this enumeration; as soon as support
+ * for variable 'COLR' v1 fonts is implemented, interpolation is
+ * performed dependent on axis coordinates, which are configured on the
+ * @FT_Face through @FT_Set_Var_Design_Coordinates. This implies that
+ * always static, readily interpolated values are returned in the 'Paint'
+ * structures.
+ *
+ * @since:
+ * 2.11 -- **currently experimental only!** There might be changes
+ * without retaining backward compatibility of both the API and ABI.
+ *
+ */
+ typedef enum FT_PaintFormat_
+ {
+ FT_COLR_PAINTFORMAT_COLR_LAYERS = 1,
+ FT_COLR_PAINTFORMAT_SOLID = 2,
+ FT_COLR_PAINTFORMAT_LINEAR_GRADIENT = 4,
+ FT_COLR_PAINTFORMAT_RADIAL_GRADIENT = 6,
+ FT_COLR_PAINTFORMAT_SWEEP_GRADIENT = 8,
+ FT_COLR_PAINTFORMAT_GLYPH = 10,
+ FT_COLR_PAINTFORMAT_COLR_GLYPH = 11,
+ FT_COLR_PAINTFORMAT_TRANSFORM = 12,
+ FT_COLR_PAINTFORMAT_TRANSLATE = 14,
+ FT_COLR_PAINTFORMAT_SCALE = 16,
+ FT_COLR_PAINTFORMAT_ROTATE = 24,
+ FT_COLR_PAINTFORMAT_SKEW = 28,
+ FT_COLR_PAINTFORMAT_COMPOSITE = 32,
+ FT_COLR_PAINT_FORMAT_MAX = 33,
+ FT_COLR_PAINTFORMAT_UNSUPPORTED = 255
+
+ } FT_PaintFormat;
+
+
+ /**************************************************************************
+ *
+ * @struct:
+ * FT_ColorStopIterator
+ *
+ * @description:
+ * This iterator object is needed for @FT_Get_Colorline_Stops. It keeps
+ * state while iterating over the stops of an @FT_ColorLine,
+ * representing the `ColorLine` struct of the v1 extensions to 'COLR',
+ * see 'https://github.com/googlefonts/colr-gradients-spec'.
+ *
+ * @fields:
+ * num_color_stops ::
+ * The number of color stops for the requested glyph index. Set by
+ * @FT_Get_Colorline_Stops.
+ *
+ * current_color_stop ::
+ * The current color stop. Set by @FT_Get_Colorline_Stops.
+ *
+ * p ::
+ * An opaque pointer into 'COLR' table data. The caller must set this
+ * to `NULL` before the first call of @FT_Get_Colorline_Stops.
+ *
+ * @since:
+ * 2.11 -- **currently experimental only!** There might be changes
+ * without retaining backward compatibility of both the API and ABI.
+ *
+ */
+ typedef struct FT_ColorStopIterator_
+ {
+ FT_UInt num_color_stops;
+ FT_UInt current_color_stop;
+
+ FT_Byte* p;
+
+ } FT_ColorStopIterator;
+
+
+ /**************************************************************************
+ *
+ * @struct:
+ * FT_ColorIndex
+ *
+ * @description:
+ * A structure representing a `ColorIndex` value of the 'COLR' v1
+ * extensions, see 'https://github.com/googlefonts/colr-gradients-spec'.
+ *
+ * @fields:
+ * palette_index ::
+ * The palette index into a 'CPAL' palette.
+ *
+ * alpha ::
+ * Alpha transparency value multiplied with the value from 'CPAL'.
+ *
+ * @since:
+ * 2.11 -- **currently experimental only!** There might be changes
+ * without retaining backward compatibility of both the API and ABI.
+ *
+ */
+ typedef struct FT_ColorIndex_
+ {
+ FT_UInt16 palette_index;
+ FT_F2Dot14 alpha;
+
+ } FT_ColorIndex;
+
+
+ /**************************************************************************
+ *
+ * @struct:
+ * FT_ColorStop
+ *
+ * @description:
+ * A structure representing a `ColorStop` value of the 'COLR' v1
+ * extensions, see 'https://github.com/googlefonts/colr-gradients-spec'.
+ *
+ * @fields:
+ * stop_offset ::
+ * The stop offset between 0 and 1 along the gradient.
+ *
+ * color ::
+ * The color information for this stop, see @FT_ColorIndex.
+ *
+ * @since:
+ * 2.11 -- **currently experimental only!** There might be changes
+ * without retaining backward compatibility of both the API and ABI.
+ *
+ */
+ typedef struct FT_ColorStop_
+ {
+ FT_F2Dot14 stop_offset;
+ FT_ColorIndex color;
+
+ } FT_ColorStop;
+
+
+ /**************************************************************************
+ *
+ * @enum:
+ * FT_PaintExtend
+ *
+ * @description:
+ * An enumeration representing the 'Extend' mode of the 'COLR' v1
+ * extensions, see 'https://github.com/googlefonts/colr-gradients-spec'.
+ * It describes how the gradient fill continues at the other boundaries.
+ *
+ * @since:
+ * 2.11 -- **currently experimental only!** There might be changes
+ * without retaining backward compatibility of both the API and ABI.
+ *
+ */
+ typedef enum FT_PaintExtend_
+ {
+ FT_COLR_PAINT_EXTEND_PAD = 0,
+ FT_COLR_PAINT_EXTEND_REPEAT = 1,
+ FT_COLR_PAINT_EXTEND_REFLECT = 2
+
+ } FT_PaintExtend;
+
+
+ /**************************************************************************
+ *
+ * @struct:
+ * FT_ColorLine
+ *
+ * @description:
+ * A structure representing a `ColorLine` value of the 'COLR' v1
+ * extensions, see 'https://github.com/googlefonts/colr-gradients-spec'.
+ * It describes a list of color stops along the defined gradient.
+ *
+ * @fields:
+ * extend ::
+ * The extend mode at the outer boundaries, see @FT_PaintExtend.
+ *
+ * color_stop_iterator ::
+ * The @FT_ColorStopIterator used to enumerate and retrieve the
+ * actual @FT_ColorStop's.
+ *
+ * @since:
+ * 2.11 -- **currently experimental only!** There might be changes
+ * without retaining backward compatibility of both the API and ABI.
+ *
+ */
+ typedef struct FT_ColorLine_
+ {
+ FT_PaintExtend extend;
+ FT_ColorStopIterator color_stop_iterator;
+
+ } FT_ColorLine;
+
+
+ /**************************************************************************
+ *
+ * @struct:
+ * FT_Affine23
+ *
+ * @description:
+ * A structure used to store a 2x3 matrix. Coefficients are in
+ * 16.16 fixed-point format. The computation performed is
+ *
+ * ```
+ * x' = x*xx + y*xy + dx
+ * y' = x*yx + y*yy + dy
+ * ```
+ *
+ * @fields:
+ * xx ::
+ * Matrix coefficient.
+ *
+ * xy ::
+ * Matrix coefficient.
+ *
+ * dx ::
+ * x translation.
+ *
+ * yx ::
+ * Matrix coefficient.
+ *
+ * yy ::
+ * Matrix coefficient.
+ *
+ * dy ::
+ * y translation.
+ *
+ * @since:
+ * 2.11 -- **currently experimental only!** There might be changes
+ * without retaining backward compatibility of both the API and ABI.
+ *
+ */
+ typedef struct FT_Affine_23_
+ {
+ FT_Fixed xx, xy, dx;
+ FT_Fixed yx, yy, dy;
+
+ } FT_Affine23;
+
+
+ /**************************************************************************
+ *
+ * @enum:
+ * FT_Composite_Mode
+ *
+ * @description:
+ * An enumeration listing the 'COLR' v1 composite modes used in
+ * @FT_PaintComposite. For more details on each paint mode, see
+ * 'https://www.w3.org/TR/compositing-1/#porterduffcompositingoperators'.
+ *
+ * @since:
+ * 2.11 -- **currently experimental only!** There might be changes
+ * without retaining backward compatibility of both the API and ABI.
+ *
+ */
+ typedef enum FT_Composite_Mode_
+ {
+ FT_COLR_COMPOSITE_CLEAR = 0,
+ FT_COLR_COMPOSITE_SRC = 1,
+ FT_COLR_COMPOSITE_DEST = 2,
+ FT_COLR_COMPOSITE_SRC_OVER = 3,
+ FT_COLR_COMPOSITE_DEST_OVER = 4,
+ FT_COLR_COMPOSITE_SRC_IN = 5,
+ FT_COLR_COMPOSITE_DEST_IN = 6,
+ FT_COLR_COMPOSITE_SRC_OUT = 7,
+ FT_COLR_COMPOSITE_DEST_OUT = 8,
+ FT_COLR_COMPOSITE_SRC_ATOP = 9,
+ FT_COLR_COMPOSITE_DEST_ATOP = 10,
+ FT_COLR_COMPOSITE_XOR = 11,
+ FT_COLR_COMPOSITE_PLUS = 12,
+ FT_COLR_COMPOSITE_SCREEN = 13,
+ FT_COLR_COMPOSITE_OVERLAY = 14,
+ FT_COLR_COMPOSITE_DARKEN = 15,
+ FT_COLR_COMPOSITE_LIGHTEN = 16,
+ FT_COLR_COMPOSITE_COLOR_DODGE = 17,
+ FT_COLR_COMPOSITE_COLOR_BURN = 18,
+ FT_COLR_COMPOSITE_HARD_LIGHT = 19,
+ FT_COLR_COMPOSITE_SOFT_LIGHT = 20,
+ FT_COLR_COMPOSITE_DIFFERENCE = 21,
+ FT_COLR_COMPOSITE_EXCLUSION = 22,
+ FT_COLR_COMPOSITE_MULTIPLY = 23,
+ FT_COLR_COMPOSITE_HSL_HUE = 24,
+ FT_COLR_COMPOSITE_HSL_SATURATION = 25,
+ FT_COLR_COMPOSITE_HSL_COLOR = 26,
+ FT_COLR_COMPOSITE_HSL_LUMINOSITY = 27,
+ FT_COLR_COMPOSITE_MAX = 28
+
+ } FT_Composite_Mode;
+
+
+ /**************************************************************************
+ *
+ * @struct:
+ * FT_OpaquePaint
+ *
+ * @description:
+ * A structure representing an offset to a `Paint` value stored in any
+ * of the paint tables of a 'COLR' v1 font. Compare Offset<24> there.
+ * When 'COLR' v1 paint tables represented by FreeType objects such as
+ * @FT_PaintColrLayers, @FT_PaintComposite, or @FT_PaintTransform
+ * reference downstream nested paint tables, we do not immediately
+ * retrieve them but encapsulate their location in this type. Use
+ * @FT_Get_Paint to retrieve the actual @FT_COLR_Paint object that
+ * describes the details of the respective paint table.
+ *
+ * @fields:
+ * p ::
+ * An internal offset to a Paint table, needs to be set to NULL before
+ * passing this struct as an argument to @FT_Get_Paint.
+ *
+ * insert_root_transform ::
+ * An internal boolean to track whether an initial root transform is
+ * to be provided. Do not set this value.
+ *
+ * @since:
+ * 2.11 -- **currently experimental only!** There might be changes
+ * without retaining backward compatibility of both the API and ABI.
+ *
+ */
+ typedef struct FT_Opaque_Paint_
+ {
+ FT_Byte* p;
+ FT_Bool insert_root_transform;
+ } FT_OpaquePaint;
+
+
+ /**************************************************************************
+ *
+ * @struct:
+ * FT_PaintColrLayers
+ *
+ * @description:
+ * A structure representing a `PaintColrLayers` table of a 'COLR' v1
+ * font. This table describes a set of layers that are to be composited
+ * with composite mode `FT_COLR_COMPOSITE_SRC_OVER`. The return value
+ * of this function is an @FT_LayerIterator initialized so that it can
+ * be used with @FT_Get_Paint_Layers to retrieve the @FT_OpaquePaint
+ * objects as references to each layer.
+ *
+ * @fields:
+ * layer_iterator ::
+ * The layer iterator that describes the layers of this paint.
+ *
+ * @since:
+ * 2.11 -- **currently experimental only!** There might be changes
+ * without retaining backward compatibility of both the API and ABI.
+ *
+ */
+ typedef struct FT_PaintColrLayers_
+ {
+ FT_LayerIterator layer_iterator;
+
+ } FT_PaintColrLayers;
+
+
+ /**************************************************************************
+ *
+ * @struct:
+ * FT_PaintSolid
+ *
+ * @description:
+ * A structure representing a `PaintSolid` value of the 'COLR' v1
+ * extensions, see 'https://github.com/googlefonts/colr-gradients-spec'.
+ * Using a `PaintSolid` value means that the glyph layer filled with
+ * this paint is solid-colored and does not contain a gradient.
+ *
+ * @fields:
+ * color ::
+ * The color information for this solid paint, see @FT_ColorIndex.
+ *
+ * @since:
+ * 2.11 -- **currently experimental only!** There might be changes
+ * without retaining backward compatibility of both the API and ABI.
+ *
+ */
+ typedef struct FT_PaintSolid_
+ {
+ FT_ColorIndex color;
+
+ } FT_PaintSolid;
+
+
+ /**************************************************************************
+ *
+ * @struct:
+ * FT_PaintLinearGradient
+ *
+ * @description:
+ * A structure representing a `PaintLinearGradient` value of the 'COLR'
+ * v1 extensions, see
+ * 'https://github.com/googlefonts/colr-gradients-spec'. The glyph
+ * layer filled with this paint is drawn filled with a linear gradient.
+ *
+ * @fields:
+ * colorline ::
+ * The @FT_ColorLine information for this paint, i.e., the list of
+ * color stops along the gradient.
+ *
+ * p0 ::
+ * The starting point of the gradient definition in font units
+ * represented as a 16.16 fixed-point `FT_Vector`.
+ *
+ * p1 ::
+ * The end point of the gradient definition in font units
+ * represented as a 16.16 fixed-point `FT_Vector`.
+ *
+ * p2 ::
+ * Optional point~p2 to rotate the gradient in font units
+ * represented as a 16.16 fixed-point `FT_Vector`.
+ * Otherwise equal to~p0.
+ *
+ * @since:
+ * 2.11 -- **currently experimental only!** There might be changes
+ * without retaining backward compatibility of both the API and ABI.
+ *
+ */
+ typedef struct FT_PaintLinearGradient_
+ {
+ FT_ColorLine colorline;
+
+ /* TODO: Potentially expose those as x0, y0 etc. */
+ FT_Vector p0;
+ FT_Vector p1;
+ FT_Vector p2;
+
+ } FT_PaintLinearGradient;
+
+
+ /**************************************************************************
+ *
+ * @struct:
+ * FT_PaintRadialGradient
+ *
+ * @description:
+ * A structure representing a `PaintRadialGradient` value of the 'COLR'
+ * v1 extensions, see
+ * 'https://github.com/googlefonts/colr-gradients-spec'. The glyph
+ * layer filled with this paint is drawn filled filled with a radial
+ * gradient.
+ *
+ * @fields:
+ * colorline ::
+ * The @FT_ColorLine information for this paint, i.e., the list of
+ * color stops along the gradient.
+ *
+ * c0 ::
+ * The center of the starting point of the radial gradient in font
+ * units represented as a 16.16 fixed-point `FT_Vector`.
+ *
+ * r0 ::
+ * The radius of the starting circle of the radial gradient in font
+ * units represented as a 16.16 fixed-point value.
+ *
+ * c1 ::
+ * The center of the end point of the radial gradient in font units
+ * represented as a 16.16 fixed-point `FT_Vector`.
+ *
+ * r1 ::
+ * The radius of the end circle of the radial gradient in font
+ * units represented as a 16.16 fixed-point value.
+ *
+ * @since:
+ * 2.11 -- **currently experimental only!** There might be changes
+ * without retaining backward compatibility of both the API and ABI.
+ *
+ */
+ typedef struct FT_PaintRadialGradient_
+ {
+ FT_ColorLine colorline;
+
+ FT_Vector c0;
+ FT_Pos r0;
+ FT_Vector c1;
+ FT_Pos r1;
+
+ } FT_PaintRadialGradient;
+
+
+ /**************************************************************************
+ *
+ * @struct:
+ * FT_PaintSweepGradient
+ *
+ * @description:
+ * A structure representing a `PaintSweepGradient` value of the 'COLR'
+ * v1 extensions, see
+ * 'https://github.com/googlefonts/colr-gradients-spec'. The glyph
+ * layer filled with this paint is drawn filled with a sweep gradient
+ * from `start_angle` to `end_angle`.
+ *
+ * @fields:
+ * colorline ::
+ * The @FT_ColorLine information for this paint, i.e., the list of
+ * color stops along the gradient.
+ *
+ * center ::
+ * The center of the sweep gradient in font units represented as a
+ * vector of 16.16 fixed-point values.
+ *
+ * start_angle ::
+ * The start angle of the sweep gradient in 16.16 fixed-point
+ * format specifying degrees divided by 180.0 (as in the
+ * spec). Multiply by 180.0f to receive degrees value. Values are
+ * given counter-clockwise, starting from the (positive) y~axis.
+ *
+ * end_angle ::
+ * The end angle of the sweep gradient in 16.16 fixed-point
+ * format specifying degrees divided by 180.0 (as in the
+ * spec). Multiply by 180.0f to receive degrees value. Values are
+ * given counter-clockwise, starting from the (positive) y~axis.
+ *
+ * @since:
+ * 2.11 -- **currently experimental only!** There might be changes
+ * without retaining backward compatibility of both the API and ABI.
+ *
+ */
+ typedef struct FT_PaintSweepGradient_
+ {
+ FT_ColorLine colorline;
+
+ FT_Vector center;
+ FT_Fixed start_angle;
+ FT_Fixed end_angle;
+
+ } FT_PaintSweepGradient;
+
+
+ /**************************************************************************
+ *
+ * @struct:
+ * FT_PaintGlyph
+ *
+ * @description:
+ * A structure representing a 'COLR' v1 `PaintGlyph` paint table.
+ *
+ * @fields:
+ * paint ::
+ * An opaque paint object pointing to a `Paint` table that serves as
+ * the fill for the glyph ID.
+ *
+ * glyphID ::
+ * The glyph ID from the 'glyf' table, which serves as the contour
+ * information that is filled with paint.
+ *
+ * @since:
+ * 2.11 -- **currently experimental only!** There might be changes
+ * without retaining backward compatibility of both the API and ABI.
+ *
+ */
+ typedef struct FT_PaintGlyph_
+ {
+ FT_OpaquePaint paint;
+ FT_UInt glyphID;
+
+ } FT_PaintGlyph;
+
+
+ /**************************************************************************
+ *
+ * @struct:
+ * FT_PaintColrGlyph
+ *
+ * @description:
+ * A structure representing a 'COLR' v1 `PaintColorGlyph` paint table.
+ *
+ * @fields:
+ * glyphID ::
+ * The glyph ID from the `BaseGlyphV1List` table that is drawn for
+ * this paint.
+ *
+ * @since:
+ * 2.11 -- **currently experimental only!** There might be changes
+ * without retaining backward compatibility of both the API and ABI.
+ *
+ */
+ typedef struct FT_PaintColrGlyph_
+ {
+ FT_UInt glyphID;
+
+ } FT_PaintColrGlyph;
+
+
+ /**************************************************************************
+ *
+ * @struct:
+ * FT_PaintTransform
+ *
+ * @description:
+ * A structure representing a 'COLR' v1 `PaintTransform` paint table.
+ *
+ * @fields:
+ * paint ::
+ * An opaque paint that is subject to being transformed.
+ *
+ * affine ::
+ * A 2x3 transformation matrix in @FT_Affine23 format containing
+ * 16.16 fixed-point values.
+ *
+ * @since:
+ * 2.11 -- **currently experimental only!** There might be changes
+ * without retaining backward compatibility of both the API and ABI.
+ *
+ */
+ typedef struct FT_PaintTransform_
+ {
+ FT_OpaquePaint paint;
+ FT_Affine23 affine;
+
+ } FT_PaintTransform;
+
+
+ /**************************************************************************
+ *
+ * @struct:
+ * FT_PaintTranslate
+ *
+ * @description:
+ * A structure representing a 'COLR' v1 `PaintTranslate` paint table.
+ * Used for translating downstream paints by a given x and y~delta.
+ *
+ * @fields:
+ * paint ::
+ * An @FT_OpaquePaint object referencing the paint that is to be
+ * rotated.
+ *
+ * dx ::
+ * Translation in x~direction in font units represented as a
+ * 16.16 fixed-point value.
+ *
+ * dy ::
+ * Translation in y~direction in font units represented as a
+ * 16.16 fixed-point value.
+ *
+ * @since:
+ * 2.11 -- **currently experimental only!** There might be changes
+ * without retaining backward compatibility of both the API and ABI.
+ *
+ */
+ typedef struct FT_PaintTranslate_
+ {
+ FT_OpaquePaint paint;
+
+ FT_Fixed dx;
+ FT_Fixed dy;
+
+ } FT_PaintTranslate;
+
+
+ /**************************************************************************
+ *
+ * @struct:
+ * FT_PaintScale
+ *
+ * @description:
+ * A structure representing all of the 'COLR' v1 'PaintScale*' paint
+ * tables. Used for scaling downstream paints by a given x and y~scale,
+ * with a given center. This structure is used for all 'PaintScale*'
+ * types that are part of specification; fields of this structure are
+ * filled accordingly. If there is a center, the center values are set,
+ * otherwise they are set to the zero coordinate. If the source font
+ * file has 'PaintScaleUniform*' set, the scale values are set
+ * accordingly to the same value.
+ *
+ * @fields:
+ * paint ::
+ * An @FT_OpaquePaint object referencing the paint that is to be
+ * scaled.
+ *
+ * scale_x ::
+ * Scale factor in x~direction represented as a
+ * 16.16 fixed-point value.
+ *
+ * scale_y ::
+ * Scale factor in y~direction represented as a
+ * 16.16 fixed-point value.
+ *
+ * center_x ::
+ * x~coordinate of center point to scale from represented as a
+ * 16.16 fixed-point value.
+ *
+ * center_y ::
+ * y~coordinate of center point to scale from represented as a
+ * 16.16 fixed-point value.
+ *
+ * @since:
+ * 2.11 -- **currently experimental only!** There might be changes
+ * without retaining backward-compatibility of both the API and ABI.
+ *
+ */
+ typedef struct FT_PaintScale_
+ {
+ FT_OpaquePaint paint;
+
+ FT_Fixed scale_x;
+ FT_Fixed scale_y;
+
+ FT_Fixed center_x;
+ FT_Fixed center_y;
+
+ } FT_PaintScale;
+
+
+ /**************************************************************************
+ *
+ * @struct:
+ * FT_PaintRotate
+ *
+ * @description:
+ * A structure representing a 'COLR' v1 `PaintRotate` paint table. Used
+ * for rotating downstream paints with a given center and angle.
+ *
+ * @fields:
+ * paint ::
+ * An @FT_OpaquePaint object referencing the paint that is to be
+ * rotated.
+ *
+ * angle ::
+ * The rotation angle that is to be applied in degrees divided by
+ * 180.0 (as in the spec) represented as a 16.16 fixed-point
+ * value. Multiply by 180.0f to receive degrees value.
+ *
+ * center_x ::
+ * The x~coordinate of the pivot point of the rotation in font
+ * units) represented as a 16.16 fixed-point value.
+ *
+ * center_y ::
+ * The y~coordinate of the pivot point of the rotation in font
+ * units represented as a 16.16 fixed-point value.
+ *
+ * @since:
+ * 2.11 -- **currently experimental only!** There might be changes
+ * without retaining backward compatibility of both the API and ABI.
+ *
+ */
+
+ typedef struct FT_PaintRotate_
+ {
+ FT_OpaquePaint paint;
+
+ FT_Fixed angle;
+
+ FT_Fixed center_x;
+ FT_Fixed center_y;
+
+ } FT_PaintRotate;
+
+
+ /**************************************************************************
+ *
+ * @struct:
+ * FT_PaintSkew
+ *
+ * @description:
+ * A structure representing a 'COLR' v1 `PaintSkew` paint table. Used
+ * for skewing or shearing downstream paints by a given center and
+ * angle.
+ *
+ * @fields:
+ * paint ::
+ * An @FT_OpaquePaint object referencing the paint that is to be
+ * skewed.
+ *
+ * x_skew_angle ::
+ * The skewing angle in x~direction in degrees divided by 180.0
+ * (as in the spec) represented as a 16.16 fixed-point
+ * value. Multiply by 180.0f to receive degrees.
+ *
+ * y_skew_angle ::
+ * The skewing angle in y~direction in degrees divided by 180.0
+ * (as in the spec) represented as a 16.16 fixed-point
+ * value. Multiply by 180.0f to receive degrees.
+ *
+ * center_x ::
+ * The x~coordinate of the pivot point of the skew in font units
+ * represented as a 16.16 fixed-point value.
+ *
+ * center_y ::
+ * The y~coordinate of the pivot point of the skew in font units
+ * represented as a 16.16 fixed-point value.
+ *
+ * @since:
+ * 2.11 -- **currently experimental only!** There might be changes
+ * without retaining backward compatibility of both the API and ABI.
+ *
+ */
+ typedef struct FT_PaintSkew_
+ {
+ FT_OpaquePaint paint;
+
+ FT_Fixed x_skew_angle;
+ FT_Fixed y_skew_angle;
+
+ FT_Fixed center_x;
+ FT_Fixed center_y;
+
+ } FT_PaintSkew;
+
+
+ /**************************************************************************
+ *
+ * @struct:
+ * FT_PaintComposite
+ *
+ * @description:
+ * A structure representing a 'COLR'v1 `PaintComposite` paint table.
+ * Used for compositing two paints in a 'COLR' v1 directed acycling
+ * graph.
+ *
+ * @fields:
+ * source_paint ::
+ * An @FT_OpaquePaint object referencing the source that is to be
+ * composited.
+ *
+ * composite_mode ::
+ * An @FT_Composite_Mode enum value determining the composition
+ * operation.
+ *
+ * backdrop_paint ::
+ * An @FT_OpaquePaint object referencing the backdrop paint that
+ * `source_paint` is composited onto.
+ *
+ * @since:
+ * 2.11 -- **currently experimental only!** There might be changes
+ * without retaining backward compatibility of both the API and ABI.
+ *
+ */
+ typedef struct FT_PaintComposite_
+ {
+ FT_OpaquePaint source_paint;
+ FT_Composite_Mode composite_mode;
+ FT_OpaquePaint backdrop_paint;
+
+ } FT_PaintComposite;
+
+
+ /**************************************************************************
+ *
+ * @union:
+ * FT_COLR_Paint
+ *
+ * @description:
+ * A union object representing format and details of a paint table of a
+ * 'COLR' v1 font, see
+ * 'https://github.com/googlefonts/colr-gradients-spec'. Use
+ * @FT_Get_Paint to retrieve a @FT_COLR_Paint for an @FT_OpaquePaint
+ * object.
+ *
+ * @fields:
+ * format ::
+ * The gradient format for this Paint structure.
+ *
+ * u ::
+ * Union of all paint table types:
+ *
+ * * @FT_PaintColrLayers
+ * * @FT_PaintGlyph
+ * * @FT_PaintSolid
+ * * @FT_PaintLinearGradient
+ * * @FT_PaintRadialGradient
+ * * @FT_PaintSweepGradient
+ * * @FT_PaintTransform
+ * * @FT_PaintTranslate
+ * * @FT_PaintRotate
+ * * @FT_PaintSkew
+ * * @FT_PaintComposite
+ * * @FT_PaintColrGlyph
+ *
+ * @since:
+ * 2.11 -- **currently experimental only!** There might be changes
+ * without retaining backward compatibility of both the API and ABI.
+ *
+ */
+ typedef struct FT_COLR_Paint_
+ {
+ FT_PaintFormat format;
+
+ union
+ {
+ FT_PaintColrLayers colr_layers;
+ FT_PaintGlyph glyph;
+ FT_PaintSolid solid;
+ FT_PaintLinearGradient linear_gradient;
+ FT_PaintRadialGradient radial_gradient;
+ FT_PaintSweepGradient sweep_gradient;
+ FT_PaintTransform transform;
+ FT_PaintTranslate translate;
+ FT_PaintScale scale;
+ FT_PaintRotate rotate;
+ FT_PaintSkew skew;
+ FT_PaintComposite composite;
+ FT_PaintColrGlyph colr_glyph;
+
+ } u;
+
+ } FT_COLR_Paint;
+
+
+ /**************************************************************************
+ *
+ * @enum:
+ * FT_Color_Root_Transform
+ *
+ * @description:
+ * An enumeration to specify whether @FT_Get_Color_Glyph_Paint is to
+ * return a root transform to configure the client's graphics context
+ * matrix.
+ *
+ * @values:
+ * FT_COLOR_INCLUDE_ROOT_TRANSFORM ::
+ * Do include the root transform as the initial @FT_COLR_Paint object.
+ *
+ * FT_COLOR_NO_ROOT_TRANSFORM ::
+ * Do not output an initial root transform.
+ *
+ * @since:
+ * 2.11 -- **currently experimental only!** There might be changes
+ * without retaining backward compatibility of both the API and ABI.
+ *
+ */
+ typedef enum FT_Color_Root_Transform_
+ {
+ FT_COLOR_INCLUDE_ROOT_TRANSFORM,
+ FT_COLOR_NO_ROOT_TRANSFORM,
+
+ FT_COLOR_ROOT_TRANSFORM_MAX
+
+ } FT_Color_Root_Transform;
+
+
+ /**************************************************************************
+ *
+ * @struct:
+ * FT_ClipBox
+ *
+ * @description:
+ * A structure representing a 'COLR' v1 'ClipBox' table. 'COLR' v1
+ * glyphs may optionally define a clip box for aiding allocation or
+ * defining a maximum drawable region. Use @FT_Get_Color_Glyph_ClipBox
+ * to retrieve it.
+ *
+ * @fields:
+ * bottom_left ::
+ * The bottom left corner of the clip box as an @FT_Vector with
+ * fixed-point coordinates in 26.6 format.
+ *
+ * top_left ::
+ * The top left corner of the clip box as an @FT_Vector with
+ * fixed-point coordinates in 26.6 format.
+ *
+ * top_right ::
+ * The top right corner of the clip box as an @FT_Vector with
+ * fixed-point coordinates in 26.6 format.
+ *
+ * bottom_right ::
+ * The bottom right corner of the clip box as an @FT_Vector with
+ * fixed-point coordinates in 26.6 format.
+ *
+ * @since:
+ * 2.12 -- **currently experimental only!** There might be changes
+ * without retaining backward compatibility of both the API and ABI.
+ *
+ */
+ typedef struct FT_ClipBox_
+ {
+ FT_Vector bottom_left;
+ FT_Vector top_left;
+ FT_Vector top_right;
+ FT_Vector bottom_right;
+
+ } FT_ClipBox;
+
+
+ /**************************************************************************
+ *
+ * @function:
+ * FT_Get_Color_Glyph_Paint
+ *
+ * @description:
+ * This is the starting point and interface to color gradient
+ * information in a 'COLR' v1 table in OpenType fonts to recursively
+ * retrieve the paint tables for the directed acyclic graph of a colored
+ * glyph, given a glyph ID.
+ *
+ * https://github.com/googlefonts/colr-gradients-spec
+ *
+ * In a 'COLR' v1 font, each color glyph defines a directed acyclic
+ * graph of nested paint tables, such as `PaintGlyph`, `PaintSolid`,
+ * `PaintLinearGradient`, `PaintRadialGradient`, and so on. Using this
+ * function and specifying a glyph ID, one retrieves the root paint
+ * table for this glyph ID.
+ *
+ * This function allows control whether an initial root transform is
+ * returned to configure scaling, transform, and translation correctly
+ * on the client's graphics context. The initial root transform is
+ * computed and returned according to the values configured for @FT_Size
+ * and @FT_Set_Transform on the @FT_Face object, see below for details
+ * of the `root_transform` parameter. This has implications for a
+ * client 'COLR' v1 implementation: When this function returns an
+ * initially computed root transform, at the time of executing the
+ * @FT_PaintGlyph operation, the contours should be retrieved using
+ * @FT_Load_Glyph at unscaled, untransformed size. This is because the
+ * root transform applied to the graphics context will take care of
+ * correct scaling.
+ *
+ * Alternatively, to allow hinting of contours, at the time of executing
+ * @FT_Load_Glyph, the current graphics context transformation matrix
+ * can be decomposed into a scaling matrix and a remainder, and
+ * @FT_Load_Glyph can be used to retrieve the contours at scaled size.
+ * Care must then be taken to blit or clip to the graphics context with
+ * taking this remainder transformation into account.
+ *
+ * @input:
+ * face ::
+ * A handle to the parent face object.
+ *
+ * base_glyph ::
+ * The glyph index for which to retrieve the root paint table.
+ *
+ * root_transform ::
+ * Specifies whether an initially computed root is returned by the
+ * @FT_PaintTransform operation to account for the activated size
+ * (see @FT_Activate_Size) and the configured transform and translate
+ * (see @FT_Set_Transform).
+ *
+ * This root transform is returned before nodes of the glyph graph of
+ * the font are returned. Subsequent @FT_COLR_Paint structures
+ * contain unscaled and untransformed values. The inserted root
+ * transform enables the client application to apply an initial
+ * transform to its graphics context. When executing subsequent
+ * FT_COLR_Paint operations, values from @FT_COLR_Paint operations
+ * will ultimately be correctly scaled because of the root transform
+ * applied to the graphics context. Use
+ * @FT_COLOR_INCLUDE_ROOT_TRANSFORM to include the root transform, use
+ * @FT_COLOR_NO_ROOT_TRANSFORM to not include it. The latter may be
+ * useful when traversing the 'COLR' v1 glyph graph and reaching a
+ * @FT_PaintColrGlyph. When recursing into @FT_PaintColrGlyph and
+ * painting that inline, no additional root transform is needed as it
+ * has already been applied to the graphics context at the beginning
+ * of drawing this glyph.
+ *
+ * @output:
+ * paint ::
+ * The @FT_OpaquePaint object that references the actual paint table.
+ *
+ * The respective actual @FT_COLR_Paint object is retrieved via
+ * @FT_Get_Paint.
+ *
+ * @return:
+ * Value~1 if everything is OK. If no color glyph is found, or the root
+ * paint could not be retrieved, value~0 gets returned. In case of an
+ * error, value~0 is returned also.
+ *
+ * @since:
+ * 2.11 -- **currently experimental only!** There might be changes
+ * without retaining backward compatibility of both the API and ABI.
+ *
+ */
+ FT_EXPORT( FT_Bool )
+ FT_Get_Color_Glyph_Paint( FT_Face face,
+ FT_UInt base_glyph,
+ FT_Color_Root_Transform root_transform,
+ FT_OpaquePaint* paint );
+
+
+ /**************************************************************************
+ *
+ * @function:
+ * FT_Get_Color_Glyph_ClipBox
+ *
+ * @description:
+ * Search for a 'COLR' v1 clip box for the specified `base_glyph` and
+ * fill the `clip_box` parameter with the 'COLR' v1 'ClipBox' information
+ * if one is found.
+ *
+ * @input:
+ * face ::
+ * A handle to the parent face object.
+ *
+ * base_glyph ::
+ * The glyph index for which to retrieve the clip box.
+ *
+ * @output:
+ * clip_box ::
+ * The clip box for the requested `base_glyph` if one is found. The
+ * clip box is computed taking scale and transformations configured on
+ * the @FT_Face into account. @FT_ClipBox contains @FT_Vector values
+ * in 26.6 format.
+ *
+ * @return:
+ * Value~1 if a clip box is found. If no clip box is found or an error
+ * occured, value~0 is returned.
+ *
+ * @note:
+ * To retrieve the clip box in font units, reset scale to units-per-em
+ * and remove transforms configured using @FT_Set_Transform.
+ *
+ * @since:
+ * 2.12 -- **currently experimental only!** There might be changes
+ * without retaining backward compatibility of both the API and ABI.
+ *
+ */
+ FT_EXPORT( FT_Bool )
+ FT_Get_Color_Glyph_ClipBox( FT_Face face,
+ FT_UInt base_glyph,
+ FT_ClipBox* clip_box );
+
+
+ /**************************************************************************
+ *
+ * @function:
+ * FT_Get_Paint_Layers
+ *
+ * @description:
+ * Access the layers of a `PaintColrLayers` table.
+ *
+ * If the root paint of a color glyph, or a nested paint of a 'COLR'
+ * glyph is a `PaintColrLayers` table, this function retrieves the
+ * layers of the `PaintColrLayers` table.
+ *
+ * The @FT_PaintColrLayers object contains an @FT_LayerIterator, which
+ * is used here to iterate over the layers. Each layer is returned as
+ * an @FT_OpaquePaint object, which then can be used with @FT_Get_Paint
+ * to retrieve the actual paint object.
+ *
+ * @input:
+ * face ::
+ * A handle to the parent face object.
+ *
+ * @inout:
+ * iterator ::
+ * The @FT_LayerIterator from an @FT_PaintColrLayers object, for which
+ * the layers are to be retrieved. The internal state of the iterator
+ * is incremented after one call to this function for retrieving one
+ * layer.
+ *
+ * @output:
+ * paint ::
+ * The @FT_OpaquePaint object that references the actual paint table.
+ * The respective actual @FT_COLR_Paint object is retrieved via
+ * @FT_Get_Paint.
+ *
+ * @return:
+ * Value~1 if everything is OK. Value~0 gets returned when the paint
+ * object can not be retrieved or any other error occurs.
+ *
+ * @since:
+ * 2.11 -- **currently experimental only!** There might be changes
+ * without retaining backward compatibility of both the API and ABI.
+ *
+ */
+ FT_EXPORT( FT_Bool )
+ FT_Get_Paint_Layers( FT_Face face,
+ FT_LayerIterator* iterator,
+ FT_OpaquePaint* paint );
+
+
+ /**************************************************************************
+ *
+ * @function:
+ * FT_Get_Colorline_Stops
+ *
+ * @description:
+ * This is an interface to color gradient information in a 'COLR' v1
+ * table in OpenType fonts to iteratively retrieve the gradient and
+ * solid fill information for colored glyph layers for a specified glyph
+ * ID.
+ *
+ * https://github.com/googlefonts/colr-gradients-spec
+ *
+ * @input:
+ * face ::
+ * A handle to the parent face object.
+ *
+ * @inout:
+ * iterator ::
+ * The retrieved @FT_ColorStopIterator, configured on an @FT_ColorLine,
+ * which in turn got retrieved via paint information in
+ * @FT_PaintLinearGradient or @FT_PaintRadialGradient.
+ *
+ * @output:
+ * color_stop ::
+ * Color index and alpha value for the retrieved color stop.
+ *
+ * @return:
+ * Value~1 if everything is OK. If there are no more color stops,
+ * value~0 gets returned. In case of an error, value~0 is returned
+ * also.
+ *
+ * @since:
+ * 2.11 -- **currently experimental only!** There might be changes
+ * without retaining backward compatibility of both the API and ABI.
+ *
+ */
+ FT_EXPORT( FT_Bool )
+ FT_Get_Colorline_Stops( FT_Face face,
+ FT_ColorStop* color_stop,
+ FT_ColorStopIterator* iterator );
+
+
+ /**************************************************************************
+ *
+ * @function:
+ * FT_Get_Paint
+ *
+ * @description:
+ * Access the details of a paint using an @FT_OpaquePaint opaque paint
+ * object, which internally stores the offset to the respective `Paint`
+ * object in the 'COLR' table.
+ *
+ * @input:
+ * face ::
+ * A handle to the parent face object.
+ *
+ * opaque_paint ::
+ * The opaque paint object for which the underlying @FT_COLR_Paint
+ * data is to be retrieved.
+ *
+ * @output:
+ * paint ::
+ * The specific @FT_COLR_Paint object containing information coming
+ * from one of the font's `Paint*` tables.
+ *
+ * @return:
+ * Value~1 if everything is OK. Value~0 if no details can be found for
+ * this paint or any other error occured.
+ *
+ * @since:
+ * 2.11 -- **currently experimental only!** There might be changes
+ * without retaining backward compatibility of both the API and ABI.
+ *
+ */
+ FT_EXPORT( FT_Bool )
+ FT_Get_Paint( FT_Face face,
+ FT_OpaquePaint opaque_paint,
+ FT_COLR_Paint* paint );
+
/* */
diff --git a/freetype/include/freetype/ftdriver.h b/freetype/include/freetype/ftdriver.h
index 804ec34a..49366390 100644
--- a/freetype/include/freetype/ftdriver.h
+++ b/freetype/include/freetype/ftdriver.h
@@ -4,7 +4,7 @@
*
* FreeType API for controlling driver modules (specification only).
*
- * Copyright (C) 2017-2020 by
+ * Copyright (C) 2017-2021 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
@@ -53,10 +53,10 @@ FT_BEGIN_HEADER
* reasons.
*
* Available properties are @increase-x-height, @no-stem-darkening
- * (experimental), @darkening-parameters (experimental), @warping
- * (experimental), @glyph-to-script-map (experimental), @fallback-script
- * (experimental), and @default-script (experimental), as documented in
- * the @properties section.
+ * (experimental), @darkening-parameters (experimental),
+ * @glyph-to-script-map (experimental), @fallback-script (experimental),
+ * and @default-script (experimental), as documented in the @properties
+ * section.
*
*/
@@ -84,15 +84,15 @@ FT_BEGIN_HEADER
* @properties section.
*
*
- * **Hinting and antialiasing principles of the new engine**
+ * **Hinting and anti-aliasing principles of the new engine**
*
* The rasterizer is positioning horizontal features (e.g., ascender
* height & x-height, or crossbars) on the pixel grid and minimizing the
- * amount of antialiasing applied to them, while placing vertical
+ * amount of anti-aliasing applied to them, while placing vertical
* features (vertical stems) on the pixel grid without hinting, thus
* representing the stem position and weight accurately. Sometimes the
* vertical stems may be only partially black. In this context,
- * 'antialiasing' means that stems are not positioned exactly on pixel
+ * 'anti-aliasing' means that stems are not positioned exactly on pixel
* borders, causing a fuzzy appearance.
*
* There are two principles behind this approach.
@@ -108,7 +108,7 @@ FT_BEGIN_HEADER
* sizes are comparable to kerning values and thus would be noticeable
* (and distracting) while reading if hinting were applied.
*
- * One of the reasons to not hint horizontally is antialiasing for LCD
+ * One of the reasons to not hint horizontally is anti-aliasing for LCD
* screens: The pixel geometry of modern displays supplies three vertical
* subpixels as the eye moves horizontally across each visible pixel. On
* devices where we can be certain this characteristic is present a
@@ -116,7 +116,7 @@ FT_BEGIN_HEADER
* weight. In Western writing systems this turns out to be the more
* critical direction anyway; the weights and spacing of vertical stems
* (see above) are central to Armenian, Cyrillic, Greek, and Latin type
- * designs. Even when the rasterizer uses greyscale antialiasing instead
+ * designs. Even when the rasterizer uses greyscale anti-aliasing instead
* of color (a necessary compromise when one doesn't know the screen
* characteristics), the unhinted vertical features preserve the design's
* weight and spacing much better than aliased type would.
@@ -362,12 +362,8 @@ FT_BEGIN_HEADER
* The same holds for the Type~1 and CID modules if compiled with
* `T1_CONFIG_OPTION_OLD_ENGINE`.
*
- * For the 'cff' module, the default engine is 'freetype' if
- * `CFF_CONFIG_OPTION_OLD_ENGINE` is defined, and 'adobe' otherwise.
- *
- * For both the 'type1' and 't1cid' modules, the default engine is
- * 'freetype' if `T1_CONFIG_OPTION_OLD_ENGINE` is defined, and 'adobe'
- * otherwise.
+ * For the 'cff' module, the default engine is 'adobe'. For both the
+ * 'type1' and 't1cid' modules, the default engine is 'adobe', too.
*
* @note:
* This property can be used with @FT_Property_Get also.
@@ -1166,48 +1162,18 @@ FT_BEGIN_HEADER
* warping
*
* @description:
- * **Experimental only**
+ * **Obsolete**
*
- * If FreeType gets compiled with option `AF_CONFIG_OPTION_USE_WARPER` to
- * activate the warp hinting code in the auto-hinter, this property
- * switches warping on and off.
+ * This property was always experimental and probably never worked
+ * correctly. It was entirely removed from the FreeType~2 sources. This
+ * entry is only here for historical reference.
*
- * Warping only works in 'normal' auto-hinting mode replacing it. The
- * idea of the code is to slightly scale and shift a glyph along the
+ * Warping only worked in 'normal' auto-hinting mode replacing it. The
+ * idea of the code was to slightly scale and shift a glyph along the
* non-hinted dimension (which is usually the horizontal axis) so that as
- * much of its segments are aligned (more or less) to the grid. To find
+ * much of its segments were aligned (more or less) to the grid. To find
* out a glyph's optimal scaling and shifting value, various parameter
- * combinations are tried and scored.
- *
- * By default, warping is off.
- *
- * @note:
- * This property can be used with @FT_Property_Get also.
- *
- * This property can be set via the `FREETYPE_PROPERTIES` environment
- * variable (using values 1 and 0 for 'on' and 'off', respectively).
- *
- * The warping code can also change advance widths. Have a look at the
- * `lsb_delta` and `rsb_delta` fields in the @FT_GlyphSlotRec structure
- * for details on improving inter-glyph distances while rendering.
- *
- * Since warping is a global property of the auto-hinter it is best to
- * change its value before rendering any face. Otherwise, you should
- * reload all faces that get auto-hinted in 'normal' hinting mode.
- *
- * @example:
- * This example shows how to switch on warping (omitting the error
- * handling).
- *
- * ```
- * FT_Library library;
- * FT_Bool warping = 1;
- *
- *
- * FT_Init_FreeType( &library );
- *
- * FT_Property_Set( library, "autofitter", "warping", &warping );
- * ```
+ * combinations were tried and scored.
*
* @since:
* 2.6
diff --git a/freetype/include/freetype/fterrdef.h b/freetype/include/freetype/fterrdef.h
index 895d2d4d..6e9c4ccb 100644
--- a/freetype/include/freetype/fterrdef.h
+++ b/freetype/include/freetype/fterrdef.h
@@ -4,7 +4,7 @@
*
* FreeType error codes (specification).
*
- * Copyright (C) 2002-2020 by
+ * Copyright (C) 2002-2021 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
diff --git a/freetype/include/freetype/fterrors.h b/freetype/include/freetype/fterrors.h
index 60a637c7..151941dd 100644
--- a/freetype/include/freetype/fterrors.h
+++ b/freetype/include/freetype/fterrors.h
@@ -4,7 +4,7 @@
*
* FreeType error code handling (specification).
*
- * Copyright (C) 1996-2020 by
+ * Copyright (C) 1996-2021 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
@@ -281,6 +281,8 @@ FT_BEGIN_HEADER
FT_EXPORT( const char* )
FT_Error_String( FT_Error error_code );
+ /* */
+
FT_END_HEADER
diff --git a/freetype/include/freetype/ftfntfmt.h b/freetype/include/freetype/ftfntfmt.h
index f803349c..8e68a4a3 100644
--- a/freetype/include/freetype/ftfntfmt.h
+++ b/freetype/include/freetype/ftfntfmt.h
@@ -4,7 +4,7 @@
*
* Support functions for font formats.
*
- * Copyright (C) 2002-2020 by
+ * Copyright (C) 2002-2021 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
diff --git a/freetype/include/freetype/ftgasp.h b/freetype/include/freetype/ftgasp.h
index 6b76882c..76c45eb3 100644
--- a/freetype/include/freetype/ftgasp.h
+++ b/freetype/include/freetype/ftgasp.h
@@ -4,7 +4,7 @@
*
* Access of TrueType's 'gasp' table (specification).
*
- * Copyright (C) 2007-2020 by
+ * Copyright (C) 2007-2021 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
diff --git a/freetype/include/freetype/ftglyph.h b/freetype/include/freetype/ftglyph.h
index 704619e3..26b32ed6 100644
--- a/freetype/include/freetype/ftglyph.h
+++ b/freetype/include/freetype/ftglyph.h
@@ -4,7 +4,7 @@
*
* FreeType convenience functions to handle glyphs (specification).
*
- * Copyright (C) 1996-2020 by
+ * Copyright (C) 1996-2021 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
@@ -337,9 +337,9 @@ FT_BEGIN_HEADER
* vector.
*/
FT_EXPORT( FT_Error )
- FT_Glyph_Transform( FT_Glyph glyph,
- FT_Matrix* matrix,
- FT_Vector* delta );
+ FT_Glyph_Transform( FT_Glyph glyph,
+ const FT_Matrix* matrix,
+ const FT_Vector* delta );
/**************************************************************************
@@ -569,10 +569,10 @@ FT_BEGIN_HEADER
* ```
*/
FT_EXPORT( FT_Error )
- FT_Glyph_To_Bitmap( FT_Glyph* the_glyph,
- FT_Render_Mode render_mode,
- FT_Vector* origin,
- FT_Bool destroy );
+ FT_Glyph_To_Bitmap( FT_Glyph* the_glyph,
+ FT_Render_Mode render_mode,
+ const FT_Vector* origin,
+ FT_Bool destroy );
/**************************************************************************
diff --git a/freetype/include/freetype/ftgxval.h b/freetype/include/freetype/ftgxval.h
index 354460a9..21bbbde2 100644
--- a/freetype/include/freetype/ftgxval.h
+++ b/freetype/include/freetype/ftgxval.h
@@ -4,7 +4,7 @@
*
* FreeType API for validating TrueTypeGX/AAT tables (specification).
*
- * Copyright (C) 2004-2020 by
+ * Copyright (C) 2004-2021 by
* Masatake YAMATO, Redhat K.K,
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
diff --git a/freetype/include/freetype/ftgzip.h b/freetype/include/freetype/ftgzip.h
index ec5939a1..ba82baba 100644
--- a/freetype/include/freetype/ftgzip.h
+++ b/freetype/include/freetype/ftgzip.h
@@ -4,7 +4,7 @@
*
* Gzip-compressed stream support.
*
- * Copyright (C) 2002-2020 by
+ * Copyright (C) 2002-2021 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
diff --git a/freetype/include/freetype/ftimage.h b/freetype/include/freetype/ftimage.h
index 74911620..88533b84 100644
--- a/freetype/include/freetype/ftimage.h
+++ b/freetype/include/freetype/ftimage.h
@@ -5,7 +5,7 @@
* FreeType glyph image formats and default raster interface
* (specification).
*
- * Copyright (C) 1996-2020 by
+ * Copyright (C) 1996-2021 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
@@ -28,11 +28,6 @@
#define FTIMAGE_H_
- /* STANDALONE_ is from ftgrays.c */
-#ifndef STANDALONE_
-#endif
-
-
FT_BEGIN_HEADER
@@ -201,6 +196,11 @@ FT_BEGIN_HEADER
#define ft_pixel_mode_pal2 FT_PIXEL_MODE_GRAY2
#define ft_pixel_mode_pal4 FT_PIXEL_MODE_GRAY4
+ /* */
+
+ /* For debugging, the @FT_Pixel_Mode enumeration must stay in sync */
+ /* with the `pixel_modes` array in file `ftobjs.c`. */
+
/**************************************************************************
*
@@ -695,11 +695,13 @@ FT_BEGIN_HEADER
* to get a simple enumeration without assigning special numbers.
*/
#ifndef FT_IMAGE_TAG
-#define FT_IMAGE_TAG( value, _x1, _x2, _x3, _x4 ) \
- value = ( ( (unsigned long)_x1 << 24 ) | \
- ( (unsigned long)_x2 << 16 ) | \
- ( (unsigned long)_x3 << 8 ) | \
- (unsigned long)_x4 )
+
+#define FT_IMAGE_TAG( value, _x1, _x2, _x3, _x4 ) \
+ value = ( ( FT_STATIC_BYTE_CAST( unsigned long, _x1 ) << 24 ) | \
+ ( FT_STATIC_BYTE_CAST( unsigned long, _x2 ) << 16 ) | \
+ ( FT_STATIC_BYTE_CAST( unsigned long, _x3 ) << 8 ) | \
+ FT_STATIC_BYTE_CAST( unsigned long, _x4 ) )
+
#endif /* FT_IMAGE_TAG */
@@ -772,17 +774,6 @@ FT_BEGIN_HEADER
/*************************************************************************/
- /**************************************************************************
- *
- * A raster is a scan converter, in charge of rendering an outline into a
- * bitmap. This section contains the public API for rasters.
- *
- * Note that in FreeType 2, all rasters are now encapsulated within
- * specific modules called 'renderers'. See `ftrender.h` for more details
- * on renderers.
- *
- */
-
/**************************************************************************
*
@@ -796,16 +787,35 @@ FT_BEGIN_HEADER
* How vectorial outlines are converted into bitmaps and pixmaps.
*
* @description:
- * This section contains technical definitions.
+ * A raster or a rasterizer is a scan converter in charge of producing a
+ * pixel coverage bitmap that can be used as an alpha channel when
+ * compositing a glyph with a background. FreeType comes with two
+ * rasterizers: bilevel `raster1` and anti-aliased `smooth` are two
+ * separate modules. They are usually called from the high-level
+ * @FT_Load_Glyph or @FT_Render_Glyph functions and produce the entire
+ * coverage bitmap at once, while staying largely invisible to users.
+ *
+ * Instead of working with complete coverage bitmaps, it is also possible
+ * to intercept consecutive pixel runs on the same scanline with the same
+ * coverage, called _spans_, and process them individually. Only the
+ * `smooth` rasterizer permits this when calling @FT_Outline_Render with
+ * @FT_Raster_Params as described below.
+ *
+ * Working with either complete bitmaps or spans it is important to think
+ * of them as colorless coverage objects suitable as alpha channels to
+ * blend arbitrary colors with a background. For best results, it is
+ * recommended to use gamma correction, too.
+ *
+ * This section also describes the public API needed to set up alternative
+ * @FT_Renderer modules.
*
* @order:
- * FT_Raster
* FT_Span
* FT_SpanFunc
- *
* FT_Raster_Params
* FT_RASTER_FLAG_XXX
*
+ * FT_Raster
* FT_Raster_NewFunc
* FT_Raster_DoneFunc
* FT_Raster_ResetFunc
@@ -818,24 +828,12 @@ FT_BEGIN_HEADER
/**************************************************************************
*
- * @type:
- * FT_Raster
- *
- * @description:
- * An opaque handle (pointer) to a raster object. Each object can be
- * used independently to convert an outline into a bitmap or pixmap.
- */
- typedef struct FT_RasterRec_* FT_Raster;
-
-
- /**************************************************************************
- *
* @struct:
* FT_Span
*
* @description:
- * A structure used to model a single span of gray pixels when rendering
- * an anti-aliased bitmap.
+ * A structure to model a single span of consecutive pixels when
+ * rendering an anti-aliased bitmap.
*
* @fields:
* x ::
@@ -852,8 +850,8 @@ FT_BEGIN_HEADER
* This structure is used by the span drawing callback type named
* @FT_SpanFunc that takes the y~coordinate of the span as a parameter.
*
- * The coverage value is always between 0 and 255. If you want less gray
- * values, the callback function has to reduce them.
+ * The anti-aliased rasterizer produces coverage values from 0 to 255,
+ * this is, from completely transparent to completely opaque.
*/
typedef struct FT_Span_
{
@@ -871,8 +869,8 @@ FT_BEGIN_HEADER
*
* @description:
* A function used as a call-back by the anti-aliased renderer in order
- * to let client applications draw themselves the gray pixel spans on
- * each scan line.
+ * to let client applications draw themselves the pixel spans on each
+ * scan line.
*
* @input:
* y ::
@@ -888,11 +886,12 @@ FT_BEGIN_HEADER
* User-supplied data that is passed to the callback.
*
* @note:
- * This callback allows client applications to directly render the gray
- * spans of the anti-aliased bitmap to any kind of surfaces.
+ * This callback allows client applications to directly render the spans
+ * of the anti-aliased bitmap to any kind of surfaces.
*
* This can be used to write anti-aliased outlines directly to a given
- * background bitmap, and even perform translucency.
+ * background bitmap using alpha compositing. It can also be used for
+ * oversampling and averaging.
*/
typedef void
(*FT_SpanFunc)( int y,
@@ -962,11 +961,17 @@ FT_BEGIN_HEADER
* will be clipped to a box specified in the `clip_box` field of the
* @FT_Raster_Params structure. Otherwise, the `clip_box` is
* effectively set to the bounding box and all spans are generated.
+ *
+ * FT_RASTER_FLAG_SDF ::
+ * This flag is set to indicate that a signed distance field glyph
+ * image should be generated. This is only used while rendering with
+ * the @FT_RENDER_MODE_SDF render mode.
*/
#define FT_RASTER_FLAG_DEFAULT 0x0
#define FT_RASTER_FLAG_AA 0x1
#define FT_RASTER_FLAG_DIRECT 0x2
#define FT_RASTER_FLAG_CLIP 0x4
+#define FT_RASTER_FLAG_SDF 0x8
/* these constants are deprecated; use the corresponding */
/* `FT_RASTER_FLAG_XXX` values instead */
@@ -1049,6 +1054,23 @@ FT_BEGIN_HEADER
/**************************************************************************
*
+ * @type:
+ * FT_Raster
+ *
+ * @description:
+ * An opaque handle (pointer) to a raster object. Each object can be
+ * used independently to convert an outline into a bitmap or pixmap.
+ *
+ * @note:
+ * In FreeType 2, all rasters are now encapsulated within specific
+ * @FT_Renderer modules and only used in their context.
+ *
+ */
+ typedef struct FT_RasterRec_* FT_Raster;
+
+
+ /**************************************************************************
+ *
* @functype:
* FT_Raster_NewFunc
*
diff --git a/freetype/include/freetype/ftincrem.h b/freetype/include/freetype/ftincrem.h
index f67655ed..229b947b 100644
--- a/freetype/include/freetype/ftincrem.h
+++ b/freetype/include/freetype/ftincrem.h
@@ -4,7 +4,7 @@
*
* FreeType incremental loading (specification).
*
- * Copyright (C) 2002-2020 by
+ * Copyright (C) 2002-2021 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
@@ -213,9 +213,14 @@ FT_BEGIN_HEADER
*
* @description:
* A function used to retrieve the basic metrics of a given glyph index
- * before accessing its data. This is necessary because, in certain
- * formats like TrueType, the metrics are stored in a different place
- * from the glyph images proper.
+ * before accessing its data. This allows for handling font types such
+ * as PCL~XL Format~1, Class~2 downloaded TrueType fonts, where the glyph
+ * metrics (`hmtx` and `vmtx` tables) are permitted to be omitted from
+ * the font, and the relevant metrics included in the header of the glyph
+ * outline data. Importantly, this is not intended to allow custom glyph
+ * metrics (for example, Postscript Metrics dictionaries), because that
+ * conflicts with the requirements of outline hinting. Such custom
+ * metrics must be handled separately, by the calling application.
*
* @input:
* incremental ::
@@ -235,7 +240,7 @@ FT_BEGIN_HEADER
*
* @output:
* ametrics ::
- * The replacement glyph metrics in font units.
+ * The glyph metrics in font units.
*
*/
typedef FT_Error
@@ -264,7 +269,7 @@ FT_BEGIN_HEADER
*
* get_glyph_metrics ::
* The function to get glyph metrics. May be null if the font does not
- * provide overriding glyph metrics.
+ * require it.
*
*/
typedef struct FT_Incremental_FuncsRec_
diff --git a/freetype/include/freetype/ftlcdfil.h b/freetype/include/freetype/ftlcdfil.h
index c6995f2f..18e25441 100644
--- a/freetype/include/freetype/ftlcdfil.h
+++ b/freetype/include/freetype/ftlcdfil.h
@@ -5,7 +5,7 @@
* FreeType API for color filtering of subpixel bitmap glyphs
* (specification).
*
- * Copyright (C) 2006-2020 by
+ * Copyright (C) 2006-2021 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
@@ -44,7 +44,7 @@ FT_BEGIN_HEADER
* API to control subpixel rendering.
*
* @description:
- * FreeType provides two alternative subpixel rendering technologies.
+ * FreeType provides two alternative subpixel rendering technologies.
* Should you define `FT_CONFIG_OPTION_SUBPIXEL_RENDERING` in your
* `ftoption.h` file, this enables ClearType-style rendering.
* Otherwise, Harmony LCD rendering is enabled. These technologies are
@@ -55,13 +55,12 @@ FT_BEGIN_HEADER
* ClearType-style LCD rendering exploits the color-striped structure of
* LCD pixels, increasing the available resolution in the direction of
* the stripe (usually horizontal RGB) by a factor of~3. Using the
- * subpixels coverages unfiltered can create severe color fringes
+ * subpixel coverages unfiltered can create severe color fringes
* especially when rendering thin features. Indeed, to produce
* black-on-white text, the nearby color subpixels must be dimmed
- * equally.
- *
- * A good 5-tap FIR filter should be applied to subpixel coverages
- * regardless of pixel boundaries and should have these properties:
+ * evenly. Therefore, an equalizing 5-tap FIR filter should be applied
+ * to subpixel coverages regardless of pixel boundaries and should have
+ * these properties:
*
* 1. It should be symmetrical, like {~a, b, c, b, a~}, to avoid
* any shifts in appearance.
@@ -84,7 +83,7 @@ FT_BEGIN_HEADER
* Harmony LCD rendering is suitable to panels with any regular subpixel
* structure, not just monitors with 3 color striped subpixels, as long
* as the color subpixels have fixed positions relative to the pixel
- * center. In this case, each color channel is then rendered separately
+ * center. In this case, each color channel can be rendered separately
* after shifting the outline opposite to the subpixel shift so that the
* coverage maps are aligned. This method is immune to color fringes
* because the shifts do not change integral coverage.
@@ -101,9 +100,9 @@ FT_BEGIN_HEADER
* clockwise. Harmony with default LCD geometry is equivalent to
* ClearType with light filter.
*
- * As a result of ClearType filtering or Harmony rendering, the
- * dimensions of LCD bitmaps can be either wider or taller than the
- * dimensions of the corresponding outline with regard to the pixel grid.
+ * As a result of ClearType filtering or Harmony shifts, the resulting
+ * dimensions of LCD bitmaps can be slightly wider or taller than the
+ * dimensions the original outline with regard to the pixel grid.
* For example, for @FT_RENDER_MODE_LCD, the filter adds 2~subpixels to
* the left, and 2~subpixels to the right. The bitmap offset values are
* adjusted accordingly, so clients shouldn't need to modify their layout
diff --git a/freetype/include/freetype/ftlist.h b/freetype/include/freetype/ftlist.h
index 45889227..55f01597 100644
--- a/freetype/include/freetype/ftlist.h
+++ b/freetype/include/freetype/ftlist.h
@@ -4,7 +4,7 @@
*
* Generic list support for FreeType (specification).
*
- * Copyright (C) 1996-2020 by
+ * Copyright (C) 1996-2021 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
diff --git a/freetype/include/freetype/ftlogging.h b/freetype/include/freetype/ftlogging.h
new file mode 100644
index 00000000..a558b85f
--- /dev/null
+++ b/freetype/include/freetype/ftlogging.h
@@ -0,0 +1,184 @@
+/****************************************************************************
+ *
+ * ftlogging.h
+ *
+ * Additional debugging APIs.
+ *
+ * Copyright (C) 2020-2021 by
+ * David Turner, Robert Wilhelm, and Werner Lemberg.
+ *
+ * This file is part of the FreeType project, and may only be used,
+ * modified, and distributed under the terms of the FreeType project
+ * license, LICENSE.TXT. By continuing to use, modify, or distribute
+ * this file you indicate that you have read the license and
+ * understand and accept it fully.
+ *
+ */
+
+
+#ifndef FTLOGGING_H_
+#define FTLOGGING_H_
+
+
+#include <ft2build.h>
+#include FT_CONFIG_CONFIG_H
+
+
+FT_BEGIN_HEADER
+
+
+ /**************************************************************************
+ *
+ * @section:
+ * debugging_apis
+ *
+ * @title:
+ * External Debugging APIs
+ *
+ * @abstract:
+ * Public APIs to control the `FT_DEBUG_LOGGING` macro.
+ *
+ * @description:
+ * This section contains the declarations of public functions that
+ * enables fine control of what the `FT_DEBUG_LOGGING` macro outputs.
+ *
+ */
+
+
+ /**************************************************************************
+ *
+ * @function:
+ * FT_Trace_Set_Level
+ *
+ * @description:
+ * Change the levels of tracing components of FreeType at run time.
+ *
+ * @input:
+ * tracing_level ::
+ * New tracing value.
+ *
+ * @example:
+ * The following call makes FreeType trace everything but the 'memory'
+ * component.
+ *
+ * ```
+ * FT_Trace_Set_Level( "any:7 memory:0 );
+ * ```
+ *
+ * @note:
+ * This function does nothing if compilation option `FT_DEBUG_LOGGING`
+ * isn't set.
+ *
+ * @since:
+ * 2.11
+ *
+ */
+ FT_EXPORT( void )
+ FT_Trace_Set_Level( const char* tracing_level );
+
+
+ /**************************************************************************
+ *
+ * @function:
+ * FT_Trace_Set_Default_Level
+ *
+ * @description:
+ * Reset tracing value of FreeType's components to the default value
+ * (i.e., to the value of the `FT2_DEBUG` environment value or to NULL
+ * if `FT2_DEBUG` is not set).
+ *
+ * @note:
+ * This function does nothing if compilation option `FT_DEBUG_LOGGING`
+ * isn't set.
+ *
+ * @since:
+ * 2.11
+ *
+ */
+ FT_EXPORT( void )
+ FT_Trace_Set_Default_Level( void );
+
+
+ /**************************************************************************
+ *
+ * @functype:
+ * FT_Custom_Log_Handler
+ *
+ * @description:
+ * A function typedef that is used to handle the logging of tracing and
+ * debug messages on a file system.
+ *
+ * @input:
+ * ft_component ::
+ * The name of `FT_COMPONENT` from which the current debug or error
+ * message is produced.
+ *
+ * fmt ::
+ * Actual debug or tracing message.
+ *
+ * args::
+ * Arguments of debug or tracing messages.
+ *
+ * @since:
+ * 2.11
+ *
+ */
+ typedef void
+ (*FT_Custom_Log_Handler)( const char* ft_component,
+ const char* fmt,
+ va_list args );
+
+
+ /**************************************************************************
+ *
+ * @function:
+ * FT_Set_Log_Handler
+ *
+ * @description:
+ * A function to set a custom log handler.
+ *
+ * @input:
+ * handler ::
+ * New logging function.
+ *
+ * @note:
+ * This function does nothing if compilation option `FT_DEBUG_LOGGING`
+ * isn't set.
+ *
+ * @since:
+ * 2.11
+ *
+ */
+ FT_EXPORT( void )
+ FT_Set_Log_Handler( FT_Custom_Log_Handler handler );
+
+
+ /**************************************************************************
+ *
+ * @function:
+ * FT_Set_Default_Log_Handler
+ *
+ * @description:
+ * A function to undo the effect of @FT_Set_Log_Handler, resetting the
+ * log handler to FreeType's built-in version.
+ *
+ * @note:
+ * This function does nothing if compilation option `FT_DEBUG_LOGGING`
+ * isn't set.
+ *
+ * @since:
+ * 2.11
+ *
+ */
+ FT_EXPORT( void )
+ FT_Set_Default_Log_Handler( void );
+
+ /* */
+
+
+FT_END_HEADER
+
+#endif /* FTLOGGING_H_ */
+
+
+/* END */
diff --git a/freetype/include/freetype/ftlzw.h b/freetype/include/freetype/ftlzw.h
index ae46ad60..fce1c9c4 100644
--- a/freetype/include/freetype/ftlzw.h
+++ b/freetype/include/freetype/ftlzw.h
@@ -4,7 +4,7 @@
*
* LZW-compressed stream support.
*
- * Copyright (C) 2004-2020 by
+ * Copyright (C) 2004-2021 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
diff --git a/freetype/include/freetype/ftmac.h b/freetype/include/freetype/ftmac.h
index c9de9818..607af9b5 100644
--- a/freetype/include/freetype/ftmac.h
+++ b/freetype/include/freetype/ftmac.h
@@ -4,7 +4,7 @@
*
* Additional Mac-specific API.
*
- * Copyright (C) 1996-2020 by
+ * Copyright (C) 1996-2021 by
* Just van Rossum, David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
diff --git a/freetype/include/freetype/ftmm.h b/freetype/include/freetype/ftmm.h
index d8781a82..32579e99 100644
--- a/freetype/include/freetype/ftmm.h
+++ b/freetype/include/freetype/ftmm.h
@@ -4,7 +4,7 @@
*
* FreeType Multiple Master font interface (specification).
*
- * Copyright (C) 1996-2020 by
+ * Copyright (C) 1996-2021 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
diff --git a/freetype/include/freetype/ftmodapi.h b/freetype/include/freetype/ftmodapi.h
index 3f7ae82b..b77d356d 100644
--- a/freetype/include/freetype/ftmodapi.h
+++ b/freetype/include/freetype/ftmodapi.h
@@ -4,7 +4,7 @@
*
* FreeType modules public interface (specification).
*
- * Copyright (C) 1996-2020 by
+ * Copyright (C) 1996-2021 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
@@ -45,10 +45,12 @@ FT_BEGIN_HEADER
*
* @description:
* The definitions below are used to manage modules within FreeType.
- * Modules can be added, upgraded, and removed at runtime. Additionally,
- * some module properties can be controlled also.
+ * Internal and external modules can be added, upgraded, and removed at
+ * runtime. For example, an alternative renderer or proprietary font
+ * driver can be registered and prioritized. Additionally, some module
+ * properties can also be controlled.
*
- * Here is a list of possible values of the `module_name` field in the
+ * Here is a list of existing values of the `module_name` field in the
* @FT_Module_Class structure.
*
* ```
@@ -86,6 +88,7 @@ FT_BEGIN_HEADER
* FT_Remove_Module
* FT_Add_Default_Modules
*
+ * FT_FACE_DRIVER_NAME
* FT_Property_Set
* FT_Property_Get
* FT_Set_Default_Properties
@@ -330,6 +333,27 @@ FT_BEGIN_HEADER
/**************************************************************************
*
+ * @macro:
+ * FT_FACE_DRIVER_NAME
+ *
+ * @description:
+ * A macro that retrieves the name of a font driver from a face object.
+ *
+ * @note:
+ * The font driver name is a valid `module_name` for @FT_Property_Set
+ * and @FT_Property_Get. This is not the same as @FT_Get_Font_Format.
+ *
+ * @since:
+ * 2.11
+ *
+ */
+#define FT_FACE_DRIVER_NAME( face ) \
+ ( ( *FT_REINTERPRET_CAST( FT_Module_Class**, \
+ ( face )->driver ) )->module_name )
+
+
+ /**************************************************************************
+ *
* @function:
* FT_Property_Set
*
@@ -485,8 +509,7 @@ FT_BEGIN_HEADER
*
* ```
* FREETYPE_PROPERTIES=truetype:interpreter-version=35 \
- * cff:no-stem-darkening=0 \
- * autofitter:warping=1
+ * cff:no-stem-darkening=0
* ```
*
* @inout:
diff --git a/freetype/include/freetype/ftmoderr.h b/freetype/include/freetype/ftmoderr.h
index f05fc53a..b417cd5a 100644
--- a/freetype/include/freetype/ftmoderr.h
+++ b/freetype/include/freetype/ftmoderr.h
@@ -4,7 +4,7 @@
*
* FreeType module error offsets (specification).
*
- * Copyright (C) 2001-2020 by
+ * Copyright (C) 2001-2021 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
@@ -171,6 +171,7 @@
FT_MODERRDEF( Type42, 0x1400, "Type 42 module" )
FT_MODERRDEF( Winfonts, 0x1500, "Windows FON/FNT module" )
FT_MODERRDEF( GXvalid, 0x1600, "GX validation module" )
+ FT_MODERRDEF( Sdf, 0x1700, "Signed distance field raster module" )
#ifdef FT_MODERR_END_LIST
diff --git a/freetype/include/freetype/ftotval.h b/freetype/include/freetype/ftotval.h
index 9c00ad30..00f97278 100644
--- a/freetype/include/freetype/ftotval.h
+++ b/freetype/include/freetype/ftotval.h
@@ -4,7 +4,7 @@
*
* FreeType API for validating OpenType tables (specification).
*
- * Copyright (C) 2004-2020 by
+ * Copyright (C) 2004-2021 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
diff --git a/freetype/include/freetype/ftoutln.h b/freetype/include/freetype/ftoutln.h
index 84e9b144..6bb5f809 100644
--- a/freetype/include/freetype/ftoutln.h
+++ b/freetype/include/freetype/ftoutln.h
@@ -5,7 +5,7 @@
* Support for the FT_Outline type used to store glyph shapes of
* most scalable font formats (specification).
*
- * Copyright (C) 1996-2020 by
+ * Copyright (C) 1996-2021 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
diff --git a/freetype/include/freetype/ftparams.h b/freetype/include/freetype/ftparams.h
index 55ea2a38..04a3f441 100644
--- a/freetype/include/freetype/ftparams.h
+++ b/freetype/include/freetype/ftparams.h
@@ -4,7 +4,7 @@
*
* FreeType API for possible FT_Parameter tags (specification only).
*
- * Copyright (C) 2017-2020 by
+ * Copyright (C) 2017-2021 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
diff --git a/freetype/include/freetype/ftpfr.h b/freetype/include/freetype/ftpfr.h
index 9a5383f9..fbdb14c2 100644
--- a/freetype/include/freetype/ftpfr.h
+++ b/freetype/include/freetype/ftpfr.h
@@ -4,7 +4,7 @@
*
* FreeType API for accessing PFR-specific data (specification only).
*
- * Copyright (C) 2002-2020 by
+ * Copyright (C) 2002-2021 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
diff --git a/freetype/include/freetype/ftrender.h b/freetype/include/freetype/ftrender.h
index 8007951b..48d489d4 100644
--- a/freetype/include/freetype/ftrender.h
+++ b/freetype/include/freetype/ftrender.h
@@ -4,7 +4,7 @@
*
* FreeType renderer modules public interface (specification).
*
- * Copyright (C) 1996-2020 by
+ * Copyright (C) 1996-2021 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
diff --git a/freetype/include/freetype/ftsizes.h b/freetype/include/freetype/ftsizes.h
index a8682a30..22366393 100644
--- a/freetype/include/freetype/ftsizes.h
+++ b/freetype/include/freetype/ftsizes.h
@@ -4,7 +4,7 @@
*
* FreeType size objects management (specification).
*
- * Copyright (C) 1996-2020 by
+ * Copyright (C) 1996-2021 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
diff --git a/freetype/include/freetype/ftsnames.h b/freetype/include/freetype/ftsnames.h
index 729e6ab0..c7f6581c 100644
--- a/freetype/include/freetype/ftsnames.h
+++ b/freetype/include/freetype/ftsnames.h
@@ -7,7 +7,7 @@
*
* This is _not_ used to retrieve glyph names!
*
- * Copyright (C) 1996-2020 by
+ * Copyright (C) 1996-2021 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
diff --git a/freetype/include/freetype/ftstroke.h b/freetype/include/freetype/ftstroke.h
index a759c94d..88b2a8a4 100644
--- a/freetype/include/freetype/ftstroke.h
+++ b/freetype/include/freetype/ftstroke.h
@@ -4,7 +4,7 @@
*
* FreeType path stroker (specification).
*
- * Copyright (C) 2002-2020 by
+ * Copyright (C) 2002-2021 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
diff --git a/freetype/include/freetype/ftsynth.h b/freetype/include/freetype/ftsynth.h
index bdb4c575..861dcb5a 100644
--- a/freetype/include/freetype/ftsynth.h
+++ b/freetype/include/freetype/ftsynth.h
@@ -5,7 +5,7 @@
* FreeType synthesizing code for emboldening and slanting
* (specification).
*
- * Copyright (C) 2000-2020 by
+ * Copyright (C) 2000-2021 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
diff --git a/freetype/include/freetype/ftsystem.h b/freetype/include/freetype/ftsystem.h
index 22aead71..e5abb85a 100644
--- a/freetype/include/freetype/ftsystem.h
+++ b/freetype/include/freetype/ftsystem.h
@@ -4,7 +4,7 @@
*
* FreeType low-level system interface definition (specification).
*
- * Copyright (C) 1996-2020 by
+ * Copyright (C) 1996-2021 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
diff --git a/freetype/include/freetype/fttrigon.h b/freetype/include/freetype/fttrigon.h
index 2ce6b324..dbe7b0d3 100644
--- a/freetype/include/freetype/fttrigon.h
+++ b/freetype/include/freetype/fttrigon.h
@@ -4,7 +4,7 @@
*
* FreeType trigonometric functions (specification).
*
- * Copyright (C) 2001-2020 by
+ * Copyright (C) 2001-2021 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
diff --git a/freetype/include/freetype/fttypes.h b/freetype/include/freetype/fttypes.h
index aaeb9e87..699bd003 100644
--- a/freetype/include/freetype/fttypes.h
+++ b/freetype/include/freetype/fttypes.h
@@ -4,7 +4,7 @@
*
* FreeType simple types definitions (specification only).
*
- * Copyright (C) 1996-2020 by
+ * Copyright (C) 1996-2021 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
@@ -413,7 +413,7 @@ FT_BEGIN_HEADER
typedef struct FT_Data_
{
const FT_Byte* pointer;
- FT_Int length;
+ FT_UInt length;
} FT_Data;
@@ -479,18 +479,17 @@ FT_BEGIN_HEADER
*
* @description:
* This macro converts four-letter tags that are used to label TrueType
- * tables into an unsigned long, to be used within FreeType.
+ * tables into an `FT_Tag` type, to be used within FreeType.
*
* @note:
* The produced values **must** be 32-bit integers. Don't redefine this
* macro.
*/
-#define FT_MAKE_TAG( _x1, _x2, _x3, _x4 ) \
- (FT_Tag) \
- ( ( (FT_ULong)_x1 << 24 ) | \
- ( (FT_ULong)_x2 << 16 ) | \
- ( (FT_ULong)_x3 << 8 ) | \
- (FT_ULong)_x4 )
+#define FT_MAKE_TAG( _x1, _x2, _x3, _x4 ) \
+ ( ( FT_STATIC_BYTE_CAST( FT_Tag, _x1 ) << 24 ) | \
+ ( FT_STATIC_BYTE_CAST( FT_Tag, _x2 ) << 16 ) | \
+ ( FT_STATIC_BYTE_CAST( FT_Tag, _x3 ) << 8 ) | \
+ FT_STATIC_BYTE_CAST( FT_Tag, _x4 ) )
/*************************************************************************/
@@ -588,7 +587,7 @@ FT_BEGIN_HEADER
#define FT_IS_EMPTY( list ) ( (list).head == 0 )
-#define FT_BOOL( x ) ( (FT_Bool)( (x) != 0 ) )
+#define FT_BOOL( x ) FT_STATIC_CAST( FT_Bool, (x) != 0 )
/* concatenate C tokens */
#define FT_ERR_XCAT( x, y ) x ## y
diff --git a/freetype/include/freetype/ftwinfnt.h b/freetype/include/freetype/ftwinfnt.h
index 786528c6..f30f447d 100644
--- a/freetype/include/freetype/ftwinfnt.h
+++ b/freetype/include/freetype/ftwinfnt.h
@@ -4,7 +4,7 @@
*
* FreeType API for accessing Windows fnt-specific data.
*
- * Copyright (C) 2003-2020 by
+ * Copyright (C) 2003-2021 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
@@ -55,7 +55,7 @@ FT_BEGIN_HEADER
* FT_WinFNT_ID_XXX
*
* @description:
- * A list of valid values for the `charset` byte in @FT_WinFNT_HeaderRec.
+ * A list of valid values for the `charset` byte in @FT_WinFNT_HeaderRec.
* Exact mapping tables for the various 'cpXXXX' encodings (except for
* 'cp1361') can be found at 'ftp://ftp.unicode.org/Public/' in the
* `MAPPINGS/VENDORS/MICSFT/WINDOWS` subdirectory. 'cp1361' is roughly a
diff --git a/freetype/include/freetype/internal/autohint.h b/freetype/include/freetype/internal/autohint.h
index 2a472e20..01585f5e 100644
--- a/freetype/include/freetype/internal/autohint.h
+++ b/freetype/include/freetype/internal/autohint.h
@@ -4,7 +4,7 @@
*
* High-level 'autohint' module-specific interface (specification).
*
- * Copyright (C) 1996-2020 by
+ * Copyright (C) 1996-2021 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
diff --git a/freetype/include/freetype/internal/cffotypes.h b/freetype/include/freetype/internal/cffotypes.h
index a316fd1f..a91dd556 100644
--- a/freetype/include/freetype/internal/cffotypes.h
+++ b/freetype/include/freetype/internal/cffotypes.h
@@ -4,7 +4,7 @@
*
* Basic OpenType/CFF object type definitions (specification).
*
- * Copyright (C) 2017-2020 by
+ * Copyright (C) 2017-2021 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
diff --git a/freetype/include/freetype/internal/cfftypes.h b/freetype/include/freetype/internal/cfftypes.h
index f21167b1..99e8d413 100644
--- a/freetype/include/freetype/internal/cfftypes.h
+++ b/freetype/include/freetype/internal/cfftypes.h
@@ -5,7 +5,7 @@
* Basic OpenType/CFF type definitions and interface (specification
* only).
*
- * Copyright (C) 1996-2020 by
+ * Copyright (C) 1996-2021 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
diff --git a/freetype/include/freetype/internal/compiler-macros.h b/freetype/include/freetype/internal/compiler-macros.h
index 97c18d3a..d8b61b3d 100644
--- a/freetype/include/freetype/internal/compiler-macros.h
+++ b/freetype/include/freetype/internal/compiler-macros.h
@@ -4,7 +4,7 @@
*
* Compiler-specific macro definitions used internally by FreeType.
*
- * Copyright (C) 2020 by
+ * Copyright (C) 2020-2021 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
@@ -71,12 +71,18 @@ FT_BEGIN_HEADER
*/
#define FT_DUMMY_STMNT FT_BEGIN_STMNT FT_END_STMNT
-#ifdef _WIN64
+#ifdef __UINTPTR_TYPE__
+ /*
+ * GCC and Clang both provide a `__UINTPTR_TYPE__` that can be used to
+ * avoid a dependency on `stdint.h`.
+ */
+# define FT_UINT_TO_POINTER( x ) (void *)(__UINTPTR_TYPE__)(x)
+#elif defined( _WIN64 )
/* only 64bit Windows uses the LLP64 data model, i.e., */
/* 32-bit integers, 64-bit pointers. */
-#define FT_UINT_TO_POINTER( x ) (void *)(unsigned __int64)(x)
+# define FT_UINT_TO_POINTER( x ) (void *)(unsigned __int64)(x)
#else
-#define FT_UINT_TO_POINTER( x ) (void *)(unsigned long)(x)
+# define FT_UINT_TO_POINTER( x ) (void *)(unsigned long)(x)
#endif
/*
@@ -216,79 +222,91 @@ FT_BEGIN_HEADER
#define FT_EXPORT_VAR( x ) FT_FUNCTION_DECLARATION( x )
#endif
- /* When compiling FreeType as a DLL or DSO with hidden visibility, */
- /* some systems/compilers need a special attribute in front OR after */
- /* the return type of function declarations. */
- /* */
- /* Two macros are used within the FreeType source code to define */
- /* exported library functions: `FT_EXPORT` and `FT_EXPORT_DEF`. */
- /* */
- /* - `FT_EXPORT( return_type )` */
- /* */
- /* is used in a function declaration, as in */
- /* */
- /* ``` */
- /* FT_EXPORT( FT_Error ) */
- /* FT_Init_FreeType( FT_Library* alibrary ); */
- /* ``` */
- /* */
- /* - `FT_EXPORT_DEF( return_type )` */
- /* */
- /* is used in a function definition, as in */
- /* */
- /* ``` */
- /* FT_EXPORT_DEF( FT_Error ) */
- /* FT_Init_FreeType( FT_Library* alibrary ) */
- /* { */
- /* ... some code ... */
- /* return FT_Err_Ok; */
- /* } */
- /* ``` */
- /* */
- /* You can provide your own implementation of `FT_EXPORT` and */
- /* `FT_EXPORT_DEF` here if you want. */
- /* */
- /* To export a variable, use `FT_EXPORT_VAR`. */
- /* */
+ /*
+ * When compiling FreeType as a DLL or DSO with hidden visibility,
+ * some systems/compilers need a special attribute in front OR after
+ * the return type of function declarations.
+ *
+ * Two macros are used within the FreeType source code to define
+ * exported library functions: `FT_EXPORT` and `FT_EXPORT_DEF`.
+ *
+ * - `FT_EXPORT( return_type )`
+ *
+ * is used in a function declaration, as in
+ *
+ * ```
+ * FT_EXPORT( FT_Error )
+ * FT_Init_FreeType( FT_Library* alibrary );
+ * ```
+ *
+ * - `FT_EXPORT_DEF( return_type )`
+ *
+ * is used in a function definition, as in
+ *
+ * ```
+ * FT_EXPORT_DEF( FT_Error )
+ * FT_Init_FreeType( FT_Library* alibrary )
+ * {
+ * ... some code ...
+ * return FT_Err_Ok;
+ * }
+ * ```
+ *
+ * You can provide your own implementation of `FT_EXPORT` and
+ * `FT_EXPORT_DEF` here if you want.
+ *
+ * To export a variable, use `FT_EXPORT_VAR`.
+ */
/* See `freetype/config/compiler_macros.h` for the `FT_EXPORT` definition */
#define FT_EXPORT_DEF( x ) FT_FUNCTION_DEFINITION( x )
- /* The following macros are needed to compile the library with a */
- /* C++ compiler and with 16bit compilers. */
- /* */
-
- /* This is special. Within C++, you must specify `extern "C"` for */
- /* functions which are used via function pointers, and you also */
- /* must do that for structures which contain function pointers to */
- /* assure C linkage -- it's not possible to have (local) anonymous */
- /* functions which are accessed by (global) function pointers. */
- /* */
- /* */
- /* FT_CALLBACK_DEF is used to _define_ a callback function, */
- /* located in the same source code file as the structure that uses */
- /* it. */
- /* */
- /* FT_BASE_CALLBACK and FT_BASE_CALLBACK_DEF are used to declare */
- /* and define a callback function, respectively, in a similar way */
- /* as FT_BASE and FT_BASE_DEF work. */
- /* */
- /* FT_CALLBACK_TABLE is used to _declare_ a constant variable that */
- /* contains pointers to callback functions. */
- /* */
- /* FT_CALLBACK_TABLE_DEF is used to _define_ a constant variable */
- /* that contains pointers to callback functions. */
- /* */
- /* */
- /* Some 16bit compilers have to redefine these macros to insert */
- /* the infamous `_cdecl` or `__fastcall` declarations. */
- /* */
+ /*
+ * The following macros are needed to compile the library with a
+ * C++ compiler and with 16bit compilers.
+ */
+
+ /*
+ * This is special. Within C++, you must specify `extern "C"` for
+ * functions which are used via function pointers, and you also
+ * must do that for structures which contain function pointers to
+ * assure C linkage -- it's not possible to have (local) anonymous
+ * functions which are accessed by (global) function pointers.
+ *
+ *
+ * FT_CALLBACK_DEF is used to _define_ a callback function,
+ * located in the same source code file as the structure that uses
+ * it. FT_COMPARE_DEF, in addition, ensures the `cdecl` calling
+ * convention on x86, required by the C library function `qsort`.
+ *
+ * FT_BASE_CALLBACK and FT_BASE_CALLBACK_DEF are used to declare
+ * and define a callback function, respectively, in a similar way
+ * as FT_BASE and FT_BASE_DEF work.
+ *
+ * FT_CALLBACK_TABLE is used to _declare_ a constant variable that
+ * contains pointers to callback functions.
+ *
+ * FT_CALLBACK_TABLE_DEF is used to _define_ a constant variable
+ * that contains pointers to callback functions.
+ *
+ *
+ * Some 16bit compilers have to redefine these macros to insert
+ * the infamous `_cdecl` or `__fastcall` declarations.
+ */
#ifdef __cplusplus
#define FT_CALLBACK_DEF( x ) extern "C" x
#else
#define FT_CALLBACK_DEF( x ) static x
#endif
+#if defined( __i386__ )
+#define FT_COMPARE_DEF( x ) FT_CALLBACK_DEF( x ) __attribute__(( cdecl ))
+#elif defined( _M_IX86 )
+#define FT_COMPARE_DEF( x ) FT_CALLBACK_DEF( x ) __cdecl
+#else
+#define FT_COMPARE_DEF( x ) FT_CALLBACK_DEF( x )
+#endif
+
#define FT_BASE_CALLBACK( x ) FT_FUNCTION_DECLARATION( x )
#define FT_BASE_CALLBACK_DEF( x ) FT_FUNCTION_DEFINITION( x )
diff --git a/freetype/include/freetype/internal/ftcalc.h b/freetype/include/freetype/internal/ftcalc.h
index c6530747..f88e0553 100644
--- a/freetype/include/freetype/internal/ftcalc.h
+++ b/freetype/include/freetype/internal/ftcalc.h
@@ -4,7 +4,7 @@
*
* Arithmetic computations (specification).
*
- * Copyright (C) 1996-2020 by
+ * Copyright (C) 1996-2021 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
@@ -359,8 +359,8 @@ FT_BEGIN_HEADER
#ifndef FT_CONFIG_OPTION_NO_ASSEMBLER
-#if defined( __GNUC__ ) && \
- ( __GNUC__ > 3 || ( __GNUC__ == 3 && __GNUC_MINOR__ >= 4 ) )
+#if defined( __clang__ ) || ( defined( __GNUC__ ) && \
+ ( __GNUC__ > 3 || ( __GNUC__ == 3 && __GNUC_MINOR__ >= 4 ) ) )
#if FT_SIZEOF_INT == 4
@@ -370,12 +370,25 @@ FT_BEGIN_HEADER
#define FT_MSB( x ) ( 31 - __builtin_clzl( x ) )
-#endif /* __GNUC__ */
+#endif
+#elif defined( _MSC_VER ) && _MSC_VER >= 1400
-#elif defined( _MSC_VER ) && ( _MSC_VER >= 1400 )
+#if defined( _WIN32_WCE )
-#if FT_SIZEOF_INT == 4
+#include <cmnintrin.h>
+#pragma intrinsic( _CountLeadingZeros )
+
+#define FT_MSB( x ) ( 31 - _CountLeadingZeros( x ) )
+
+#elif defined( _M_ARM64 ) || defined( _M_ARM )
+
+#include <intrin.h>
+#pragma intrinsic( _CountLeadingZeros )
+
+#define FT_MSB( x ) ( 31 - _CountLeadingZeros( x ) )
+
+#elif defined( _M_IX86 ) || defined( _M_AMD64 ) || defined( _M_IA64 )
#include <intrin.h>
#pragma intrinsic( _BitScanReverse )
@@ -391,15 +404,27 @@ FT_BEGIN_HEADER
return (FT_Int32)where;
}
-#define FT_MSB( x ) ( FT_MSB_i386( x ) )
+#define FT_MSB( x ) FT_MSB_i386( x )
#endif
-#endif /* _MSC_VER */
+#elif defined( __DECC ) || defined( __DECCXX )
+
+#include <builtins.h>
+
+#define FT_MSB( x ) (FT_Int)( 63 - _leadz( x ) )
+#elif defined( _CRAYC )
+
+#include <intrinsics.h>
+
+#define FT_MSB( x ) (FT_Int)( 31 - _leadz32( x ) )
+
+#endif /* FT_MSB macro definitions */
#endif /* !FT_CONFIG_OPTION_NO_ASSEMBLER */
+
#ifndef FT_MSB
FT_BASE( FT_Int )
@@ -487,7 +512,7 @@ FT_BEGIN_HEADER
#define NEG_INT32( a ) \
(FT_Int32)( (FT_UInt32)0 - (FT_UInt32)(a) )
-#ifdef FT_LONG64
+#ifdef FT_INT64
#define ADD_INT64( a, b ) \
(FT_Int64)( (FT_UInt64)(a) + (FT_UInt64)(b) )
@@ -498,7 +523,7 @@ FT_BEGIN_HEADER
#define NEG_INT64( a ) \
(FT_Int64)( (FT_UInt64)0 - (FT_UInt64)(a) )
-#endif /* FT_LONG64 */
+#endif /* FT_INT64 */
FT_END_HEADER
diff --git a/freetype/include/freetype/internal/ftdebug.h b/freetype/include/freetype/internal/ftdebug.h
index df5357ad..5e8d9294 100644
--- a/freetype/include/freetype/internal/ftdebug.h
+++ b/freetype/include/freetype/internal/ftdebug.h
@@ -4,7 +4,7 @@
*
* Debugging and logging component (specification).
*
- * Copyright (C) 1996-2020 by
+ * Copyright (C) 1996-2021 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
@@ -31,9 +31,24 @@
#include "compiler-macros.h"
+#ifdef FT_DEBUG_LOGGING
+#define DLG_STATIC
+#include <dlg/output.h>
+#include <dlg/dlg.h>
+
+#include <freetype/ftlogging.h>
+#endif /* FT_DEBUG_LOGGING */
+
FT_BEGIN_HEADER
+ /* force the definition of FT_DEBUG_LEVEL_TRACE if FT_DEBUG_LOGGING is */
+ /* already defined. */
+ /* */
+#ifdef FT_DEBUG_LOGGING
+#undef FT_DEBUG_LEVEL_TRACE
+#define FT_DEBUG_LEVEL_TRACE
+#endif
/* force the definition of FT_DEBUG_LEVEL_ERROR if FT_DEBUG_LEVEL_TRACE */
/* is already defined; this simplifies the following #ifdefs */
@@ -82,21 +97,67 @@ FT_BEGIN_HEADER
* Each component must define the macro FT_COMPONENT to a valid FT_Trace
* value before using any TRACE macro.
*
+ * To get consistent logging output, there should be no newline character
+ * (i.e., '\n') or a single trailing one in the message string of
+ * `FT_TRACEx` and `FT_ERROR`.
*/
-#ifdef FT_DEBUG_LEVEL_TRACE
- /* we need two macros here to make cpp expand `FT_COMPONENT' */
-#define FT_TRACE_COMP( x ) FT_TRACE_COMP_( x )
-#define FT_TRACE_COMP_( x ) trace_ ## x
+ /*************************************************************************
+ *
+ * If FT_DEBUG_LOGGING is enabled, tracing messages are sent to dlg's API.
+ * If FT_DEBUG_LOGGING is disabled, tracing messages are sent to
+ * `FT_Message` (defined in ftdebug.c).
+ */
+#ifdef FT_DEBUG_LOGGING
+
+ /* we need two macros to convert the names of `FT_COMPONENT` to a string */
+#define FT_LOGGING_TAG( x ) FT_LOGGING_TAG_( x )
+#define FT_LOGGING_TAG_( x ) #x
-#define FT_TRACE( level, varformat ) \
+ /* we need two macros to convert the component and the trace level */
+ /* to a string that combines them */
+#define FT_LOGGING_TAGX( x, y ) FT_LOGGING_TAGX_( x, y )
+#define FT_LOGGING_TAGX_( x, y ) #x ":" #y
+
+
+#define FT_LOG( level, varformat ) \
+ do \
+ { \
+ const char* dlg_tag = FT_LOGGING_TAGX( FT_COMPONENT, level ); \
+ \
+ \
+ ft_add_tag( dlg_tag ); \
+ if ( ft_trace_levels[FT_TRACE_COMP( FT_COMPONENT )] >= level ) \
+ { \
+ if ( custom_output_handler != NULL ) \
+ FT_Logging_Callback varformat; \
+ else \
+ dlg_trace varformat; \
+ } \
+ ft_remove_tag( dlg_tag ); \
+ } while( 0 )
+
+#else /* !FT_DEBUG_LOGGING */
+
+#define FT_LOG( level, varformat ) \
do \
{ \
if ( ft_trace_levels[FT_TRACE_COMP( FT_COMPONENT )] >= level ) \
FT_Message varformat; \
} while ( 0 )
+#endif /* !FT_DEBUG_LOGGING */
+
+
+#ifdef FT_DEBUG_LEVEL_TRACE
+
+ /* we need two macros here to make cpp expand `FT_COMPONENT' */
+#define FT_TRACE_COMP( x ) FT_TRACE_COMP_( x )
+#define FT_TRACE_COMP_( x ) trace_ ## x
+
+#define FT_TRACE( level, varformat ) FT_LOG( level, varformat )
+
#else /* !FT_DEBUG_LEVEL_TRACE */
#define FT_TRACE( level, varformat ) do { } while ( 0 ) /* nothing */
@@ -204,7 +265,32 @@ FT_BEGIN_HEADER
#ifdef FT_DEBUG_LEVEL_ERROR
-#define FT_ERROR( varformat ) FT_Message varformat
+ /**************************************************************************
+ *
+ * If FT_DEBUG_LOGGING is enabled, error messages are sent to dlg's API.
+ * If FT_DEBUG_LOGGING is disabled, error messages are sent to `FT_Message`
+ * (defined in ftdebug.c).
+ *
+ */
+#ifdef FT_DEBUG_LOGGING
+
+#define FT_ERROR( varformat ) \
+ do \
+ { \
+ const char* dlg_tag = FT_LOGGING_TAG( FT_COMPONENT ); \
+ \
+ \
+ ft_add_tag( dlg_tag ); \
+ dlg_trace varformat; \
+ ft_remove_tag( dlg_tag ); \
+ } while ( 0 )
+
+#else /* !FT_DEBUG_LOGGING */
+
+#define FT_ERROR( varformat ) FT_Message varformat
+
+#endif /* !FT_DEBUG_LOGGING */
+
#else /* !FT_DEBUG_LEVEL_ERROR */
@@ -277,6 +363,77 @@ FT_BEGIN_HEADER
FT_BASE( void )
ft_debug_init( void );
+
+#ifdef FT_DEBUG_LOGGING
+
+ /**************************************************************************
+ *
+ * 'dlg' uses output handlers to control how and where log messages are
+ * printed. Therefore we need to define a default output handler for
+ * FreeType.
+ */
+ FT_BASE( void )
+ ft_log_handler( const struct dlg_origin* origin,
+ const char* string,
+ void* data );
+
+
+ /**************************************************************************
+ *
+ * 1. `ft_default_log_handler` stores the function pointer that is used
+ * internally by FreeType to print logs to a file.
+ *
+ * 2. `custom_output_handler` stores the function pointer to the callback
+ * function provided by the user.
+ *
+ * It is defined in `ftdebug.c`.
+ */
+ extern dlg_handler ft_default_log_handler;
+ extern FT_Custom_Log_Handler custom_output_handler;
+
+
+ /**************************************************************************
+ *
+ * If FT_DEBUG_LOGGING macro is enabled, FreeType needs to initialize and
+ * un-initialize `FILE*`.
+ *
+ * These functions are defined in `ftdebug.c`.
+ */
+ FT_BASE( void )
+ ft_logging_init( void );
+
+ FT_BASE( void )
+ ft_logging_deinit( void );
+
+
+ /**************************************************************************
+ *
+ * For printing the name of `FT_COMPONENT` along with the actual log we
+ * need to add a tag with the name of `FT_COMPONENT`.
+ *
+ * These functions are defined in `ftdebug.c`.
+ */
+ FT_BASE( void )
+ ft_add_tag( const char* tag );
+
+ FT_BASE( void )
+ ft_remove_tag( const char* tag );
+
+
+ /**************************************************************************
+ *
+ * A function to print log data using a custom callback logging function
+ * (which is set using `FT_Set_Log_Handler`).
+ *
+ * This function is defined in `ftdebug.c`.
+ */
+ FT_BASE( void )
+ FT_Logging_Callback( const char* fmt,
+ ... );
+
+#endif /* FT_DEBUG_LOGGING */
+
+
FT_END_HEADER
#endif /* FTDEBUG_H_ */
diff --git a/freetype/include/freetype/internal/ftdrv.h b/freetype/include/freetype/internal/ftdrv.h
index 7f22710e..0db323d5 100644
--- a/freetype/include/freetype/internal/ftdrv.h
+++ b/freetype/include/freetype/internal/ftdrv.h
@@ -4,7 +4,7 @@
*
* FreeType internal font driver interface (specification).
*
- * Copyright (C) 1996-2020 by
+ * Copyright (C) 1996-2021 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
diff --git a/freetype/include/freetype/internal/ftgloadr.h b/freetype/include/freetype/internal/ftgloadr.h
index 27b8659f..fea931c3 100644
--- a/freetype/include/freetype/internal/ftgloadr.h
+++ b/freetype/include/freetype/internal/ftgloadr.h
@@ -4,7 +4,7 @@
*
* The FreeType glyph loader (specification).
*
- * Copyright (C) 2002-2020 by
+ * Copyright (C) 2002-2021 by
* David Turner, Robert Wilhelm, and Werner Lemberg
*
* This file is part of the FreeType project, and may only be used,
@@ -22,6 +22,7 @@
#include <freetype/freetype.h>
+#include "compiler-macros.h"
FT_BEGIN_HEADER
diff --git a/freetype/include/freetype/internal/ftmemory.h b/freetype/include/freetype/internal/ftmemory.h
index ddb18b05..e20d9496 100644
--- a/freetype/include/freetype/internal/ftmemory.h
+++ b/freetype/include/freetype/internal/ftmemory.h
@@ -4,7 +4,7 @@
*
* The FreeType memory management macros (specification).
*
- * Copyright (C) 1996-2020 by
+ * Copyright (C) 1996-2021 by
* David Turner, Robert Wilhelm, and Werner Lemberg
*
* This file is part of the FreeType project, and may only be used,
@@ -344,14 +344,13 @@ extern "C++"
#define FT_RENEW_ARRAY( ptr, curcnt, newcnt ) \
FT_MEM_SET_ERROR( FT_MEM_RENEW_ARRAY( ptr, curcnt, newcnt ) )
-#define FT_QNEW( ptr ) \
- FT_MEM_SET_ERROR( FT_MEM_QNEW( ptr ) )
+#define FT_QNEW( ptr ) FT_MEM_SET_ERROR( FT_MEM_QNEW( ptr ) )
-#define FT_QNEW_ARRAY( ptr, count ) \
- FT_MEM_SET_ERROR( FT_MEM_NEW_ARRAY( ptr, count ) )
+#define FT_QNEW_ARRAY( ptr, count ) \
+ FT_MEM_SET_ERROR( FT_MEM_QNEW_ARRAY( ptr, count ) )
-#define FT_QRENEW_ARRAY( ptr, curcnt, newcnt ) \
- FT_MEM_SET_ERROR( FT_MEM_RENEW_ARRAY( ptr, curcnt, newcnt ) )
+#define FT_QRENEW_ARRAY( ptr, curcnt, newcnt ) \
+ FT_MEM_SET_ERROR( FT_MEM_QRENEW_ARRAY( ptr, curcnt, newcnt ) )
FT_BASE( FT_Pointer )
diff --git a/freetype/include/freetype/internal/ftobjs.h b/freetype/include/freetype/internal/ftobjs.h
index 25db2c49..e52a26aa 100644
--- a/freetype/include/freetype/internal/ftobjs.h
+++ b/freetype/include/freetype/internal/ftobjs.h
@@ -4,7 +4,7 @@
*
* The FreeType private base classes (specification).
*
- * Copyright (C) 1996-2020 by
+ * Copyright (C) 1996-2021 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
@@ -673,7 +673,7 @@ FT_BEGIN_HEADER
/* Set the metrics according to a size request. */
- FT_BASE( void )
+ FT_BASE( FT_Error )
FT_Request_Metrics( FT_Face face,
FT_Size_Request req );
diff --git a/freetype/include/freetype/internal/ftpsprop.h b/freetype/include/freetype/internal/ftpsprop.h
index 81ec2915..d94d0d7e 100644
--- a/freetype/include/freetype/internal/ftpsprop.h
+++ b/freetype/include/freetype/internal/ftpsprop.h
@@ -4,7 +4,7 @@
*
* Get and set properties of PostScript drivers (specification).
*
- * Copyright (C) 2017-2020 by
+ * Copyright (C) 2017-2021 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
diff --git a/freetype/include/freetype/internal/ftrfork.h b/freetype/include/freetype/internal/ftrfork.h
index 1b7b25ac..1c56d6ce 100644
--- a/freetype/include/freetype/internal/ftrfork.h
+++ b/freetype/include/freetype/internal/ftrfork.h
@@ -4,7 +4,7 @@
*
* Embedded resource forks accessor (specification).
*
- * Copyright (C) 2004-2020 by
+ * Copyright (C) 2004-2021 by
* Masatake YAMATO and Redhat K.K.
*
* This file is part of the FreeType project, and may only be used,
diff --git a/freetype/include/freetype/internal/ftserv.h b/freetype/include/freetype/internal/ftserv.h
index 6e1a9472..fa82c31f 100644
--- a/freetype/include/freetype/internal/ftserv.h
+++ b/freetype/include/freetype/internal/ftserv.h
@@ -4,7 +4,7 @@
*
* The FreeType services (specification only).
*
- * Copyright (C) 2003-2020 by
+ * Copyright (C) 2003-2021 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
diff --git a/freetype/include/freetype/internal/ftstream.h b/freetype/include/freetype/internal/ftstream.h
index e7d92226..7f3af120 100644
--- a/freetype/include/freetype/internal/ftstream.h
+++ b/freetype/include/freetype/internal/ftstream.h
@@ -4,7 +4,7 @@
*
* Stream handling (specification).
*
- * Copyright (C) 1996-2020 by
+ * Copyright (C) 1996-2021 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
@@ -196,9 +196,9 @@ FT_BEGIN_HEADER
FT_BYTE_U32( p, 2, 8 ) | \
FT_BYTE_U32( p, 3, 0 ) )
-#define FT_PEEK_OFF3( p ) FT_INT32( FT_BYTE_U32( p, 0, 16 ) | \
- FT_BYTE_U32( p, 1, 8 ) | \
- FT_BYTE_U32( p, 2, 0 ) )
+#define FT_PEEK_OFF3( p ) ( FT_INT32( FT_BYTE_U32( p, 0, 24 ) | \
+ FT_BYTE_U32( p, 1, 16 ) | \
+ FT_BYTE_U32( p, 2, 8 ) ) >> 8 )
#define FT_PEEK_UOFF3( p ) FT_UINT32( FT_BYTE_U32( p, 0, 16 ) | \
FT_BYTE_U32( p, 1, 8 ) | \
@@ -220,9 +220,9 @@ FT_BEGIN_HEADER
FT_BYTE_U32( p, 1, 8 ) | \
FT_BYTE_U32( p, 0, 0 ) )
-#define FT_PEEK_OFF3_LE( p ) FT_INT32( FT_BYTE_U32( p, 2, 16 ) | \
- FT_BYTE_U32( p, 1, 8 ) | \
- FT_BYTE_U32( p, 0, 0 ) )
+#define FT_PEEK_OFF3_LE( p ) ( FT_INT32( FT_BYTE_U32( p, 2, 24 ) | \
+ FT_BYTE_U32( p, 1, 16 ) | \
+ FT_BYTE_U32( p, 0, 8 ) ) >> 8 )
#define FT_PEEK_UOFF3_LE( p ) FT_UINT32( FT_BYTE_U32( p, 2, 16 ) | \
FT_BYTE_U32( p, 1, 8 ) | \
@@ -305,11 +305,10 @@ FT_BEGIN_HEADER
#else
#define FT_GET_MACRO( func, type ) ( (type)func( stream ) )
-#define FT_GET_CHAR() FT_GET_MACRO( FT_Stream_GetChar, FT_Char )
-#define FT_GET_BYTE() FT_GET_MACRO( FT_Stream_GetChar, FT_Byte )
+#define FT_GET_CHAR() FT_GET_MACRO( FT_Stream_GetByte, FT_Char )
+#define FT_GET_BYTE() FT_GET_MACRO( FT_Stream_GetByte, FT_Byte )
#define FT_GET_SHORT() FT_GET_MACRO( FT_Stream_GetUShort, FT_Short )
#define FT_GET_USHORT() FT_GET_MACRO( FT_Stream_GetUShort, FT_UShort )
-#define FT_GET_OFF3() FT_GET_MACRO( FT_Stream_GetUOffset, FT_Long )
#define FT_GET_UOFF3() FT_GET_MACRO( FT_Stream_GetUOffset, FT_ULong )
#define FT_GET_LONG() FT_GET_MACRO( FT_Stream_GetULong, FT_Long )
#define FT_GET_ULONG() FT_GET_MACRO( FT_Stream_GetULong, FT_ULong )
@@ -333,11 +332,10 @@ FT_BEGIN_HEADER
* `FT_STREAM_POS'. They use the full machinery to check whether a read is
* valid.
*/
-#define FT_READ_BYTE( var ) FT_READ_MACRO( FT_Stream_ReadChar, FT_Byte, var )
-#define FT_READ_CHAR( var ) FT_READ_MACRO( FT_Stream_ReadChar, FT_Char, var )
+#define FT_READ_BYTE( var ) FT_READ_MACRO( FT_Stream_ReadByte, FT_Byte, var )
+#define FT_READ_CHAR( var ) FT_READ_MACRO( FT_Stream_ReadByte, FT_Char, var )
#define FT_READ_SHORT( var ) FT_READ_MACRO( FT_Stream_ReadUShort, FT_Short, var )
#define FT_READ_USHORT( var ) FT_READ_MACRO( FT_Stream_ReadUShort, FT_UShort, var )
-#define FT_READ_OFF3( var ) FT_READ_MACRO( FT_Stream_ReadUOffset, FT_Long, var )
#define FT_READ_UOFF3( var ) FT_READ_MACRO( FT_Stream_ReadUOffset, FT_ULong, var )
#define FT_READ_LONG( var ) FT_READ_MACRO( FT_Stream_ReadULong, FT_Long, var )
#define FT_READ_ULONG( var ) FT_READ_MACRO( FT_Stream_ReadULong, FT_ULong, var )
@@ -457,8 +455,8 @@ FT_BEGIN_HEADER
/* read a byte from an entered frame */
- FT_BASE( FT_Char )
- FT_Stream_GetChar( FT_Stream stream );
+ FT_BASE( FT_Byte )
+ FT_Stream_GetByte( FT_Stream stream );
/* read a 16-bit big-endian unsigned integer from an entered frame */
FT_BASE( FT_UShort )
@@ -482,8 +480,8 @@ FT_BEGIN_HEADER
/* read a byte from a stream */
- FT_BASE( FT_Char )
- FT_Stream_ReadChar( FT_Stream stream,
+ FT_BASE( FT_Byte )
+ FT_Stream_ReadByte( FT_Stream stream,
FT_Error* error );
/* read a 16-bit big-endian unsigned integer from a stream */
diff --git a/freetype/include/freetype/internal/fttrace.h b/freetype/include/freetype/internal/fttrace.h
index 58bd7741..3307556b 100644
--- a/freetype/include/freetype/internal/fttrace.h
+++ b/freetype/include/freetype/internal/fttrace.h
@@ -4,7 +4,7 @@
*
* Tracing handling (specification only).
*
- * Copyright (C) 2002-2020 by
+ * Copyright (C) 2002-2021 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
@@ -18,6 +18,11 @@
/* definitions of trace levels for FreeType 2 */
+ /* the maximum string length (if the argument to `FT_TRACE_DEF` */
+ /* gets used as a string) plus one charachter for ':' plus */
+ /* another one for the trace level */
+#define FT_MAX_TRACE_LEVEL_LENGTH (9 + 1 + 1)
+
/* the first level must always be `trace_any' */
FT_TRACE_DEF( any )
@@ -38,12 +43,14 @@ FT_TRACE_DEF( checksum ) /* bitmap checksum (ftobjs.c) */
FT_TRACE_DEF( mm ) /* MM interface (ftmm.c) */
FT_TRACE_DEF( psprops ) /* PS driver properties (ftpsprop.c) */
FT_TRACE_DEF( raccess ) /* resource fork accessor (ftrfork.c) */
+FT_TRACE_DEF( synth ) /* bold/slant synthesizer (ftsynth.c) */
+
+ /* rasterizers */
FT_TRACE_DEF( raster ) /* monochrome rasterizer (ftraster.c) */
FT_TRACE_DEF( smooth ) /* anti-aliasing raster (ftgrays.c) */
-FT_TRACE_DEF( synth ) /* bold/slant synthesizer (ftsynth.c) */
- /* Cache sub-system */
-FT_TRACE_DEF( cache ) /* cache sub-system (ftcache.c, etc.) */
+ /* cache sub-system */
+FT_TRACE_DEF( cache ) /* cache sub-system (ftcache.c, etc.) */
/* SFNT driver components */
FT_TRACE_DEF( sfdriver ) /* SFNT font driver (sfdriver.c) */
@@ -77,6 +84,7 @@ FT_TRACE_DEF( t1objs )
FT_TRACE_DEF( t1parse )
/* PostScript helper module `psaux' */
+FT_TRACE_DEF( afmparse )
FT_TRACE_DEF( cffdecode )
FT_TRACE_DEF( psconv )
FT_TRACE_DEF( psobjs )
@@ -151,8 +159,10 @@ FT_TRACE_DEF( afglobal )
FT_TRACE_DEF( afhints )
FT_TRACE_DEF( afmodule )
FT_TRACE_DEF( aflatin )
-FT_TRACE_DEF( aflatin2 )
FT_TRACE_DEF( afshaper )
-FT_TRACE_DEF( afwarp )
+
+ /* SDF components */
+FT_TRACE_DEF( sdf ) /* signed distance raster for outlines (ftsdf.c) */
+FT_TRACE_DEF( bsdf ) /* signed distance raster for bitmaps (ftbsdf.c) */
/* END */
diff --git a/freetype/include/freetype/internal/ftvalid.h b/freetype/include/freetype/internal/ftvalid.h
index a5bc6c9b..7bdfa62f 100644
--- a/freetype/include/freetype/internal/ftvalid.h
+++ b/freetype/include/freetype/internal/ftvalid.h
@@ -4,7 +4,7 @@
*
* FreeType validation support (specification).
*
- * Copyright (C) 2004-2020 by
+ * Copyright (C) 2004-2021 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
diff --git a/freetype/include/freetype/internal/psaux.h b/freetype/include/freetype/internal/psaux.h
index 8e0a262f..6c6399aa 100644
--- a/freetype/include/freetype/internal/psaux.h
+++ b/freetype/include/freetype/internal/psaux.h
@@ -5,7 +5,7 @@
* Auxiliary functions and data structures related to PostScript fonts
* (specification).
*
- * Copyright (C) 1996-2020 by
+ * Copyright (C) 1996-2021 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
diff --git a/freetype/include/freetype/internal/pshints.h b/freetype/include/freetype/internal/pshints.h
index 663e9d34..9dbb0776 100644
--- a/freetype/include/freetype/internal/pshints.h
+++ b/freetype/include/freetype/internal/pshints.h
@@ -6,7 +6,7 @@
* recorders (specification only). These are used to support native
* T1/T2 hints in the 'type1', 'cid', and 'cff' font drivers.
*
- * Copyright (C) 2001-2020 by
+ * Copyright (C) 2001-2021 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
diff --git a/freetype/include/freetype/internal/services/svbdf.h b/freetype/include/freetype/internal/services/svbdf.h
index 81f5a06b..879aa613 100644
--- a/freetype/include/freetype/internal/services/svbdf.h
+++ b/freetype/include/freetype/internal/services/svbdf.h
@@ -4,7 +4,7 @@
*
* The FreeType BDF services (specification).
*
- * Copyright (C) 2003-2020 by
+ * Copyright (C) 2003-2021 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
diff --git a/freetype/include/freetype/internal/services/svcfftl.h b/freetype/include/freetype/internal/services/svcfftl.h
index 1d2dbb6a..f6424e42 100644
--- a/freetype/include/freetype/internal/services/svcfftl.h
+++ b/freetype/include/freetype/internal/services/svcfftl.h
@@ -4,7 +4,7 @@
*
* The FreeType CFF tables loader service (specification).
*
- * Copyright (C) 2017-2020 by
+ * Copyright (C) 2017-2021 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
diff --git a/freetype/include/freetype/internal/services/svcid.h b/freetype/include/freetype/internal/services/svcid.h
index bd49f327..7ef5afd0 100644
--- a/freetype/include/freetype/internal/services/svcid.h
+++ b/freetype/include/freetype/internal/services/svcid.h
@@ -4,7 +4,7 @@
*
* The FreeType CID font services (specification).
*
- * Copyright (C) 2007-2020 by
+ * Copyright (C) 2007-2021 by
* Derek Clegg and Michael Toftdal.
*
* This file is part of the FreeType project, and may only be used,
diff --git a/freetype/include/freetype/internal/services/svfntfmt.h b/freetype/include/freetype/internal/services/svfntfmt.h
index 6114d638..cc87fc12 100644
--- a/freetype/include/freetype/internal/services/svfntfmt.h
+++ b/freetype/include/freetype/internal/services/svfntfmt.h
@@ -4,7 +4,7 @@
*
* The FreeType font format service (specification only).
*
- * Copyright (C) 2003-2020 by
+ * Copyright (C) 2003-2021 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
diff --git a/freetype/include/freetype/internal/services/svgldict.h b/freetype/include/freetype/internal/services/svgldict.h
index f9443e40..4256f14a 100644
--- a/freetype/include/freetype/internal/services/svgldict.h
+++ b/freetype/include/freetype/internal/services/svgldict.h
@@ -4,7 +4,7 @@
*
* The FreeType glyph dictionary services (specification).
*
- * Copyright (C) 2003-2020 by
+ * Copyright (C) 2003-2021 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
diff --git a/freetype/include/freetype/internal/services/svgxval.h b/freetype/include/freetype/internal/services/svgxval.h
index 83c2f26c..f36d5560 100644
--- a/freetype/include/freetype/internal/services/svgxval.h
+++ b/freetype/include/freetype/internal/services/svgxval.h
@@ -4,7 +4,7 @@
*
* FreeType API for validating TrueTypeGX/AAT tables (specification).
*
- * Copyright (C) 2004-2020 by
+ * Copyright (C) 2004-2021 by
* Masatake YAMATO, Red Hat K.K.,
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
diff --git a/freetype/include/freetype/internal/services/svkern.h b/freetype/include/freetype/internal/services/svkern.h
index 13cfb327..99dc2d97 100644
--- a/freetype/include/freetype/internal/services/svkern.h
+++ b/freetype/include/freetype/internal/services/svkern.h
@@ -4,7 +4,7 @@
*
* The FreeType Kerning service (specification).
*
- * Copyright (C) 2006-2020 by
+ * Copyright (C) 2006-2021 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
diff --git a/freetype/include/freetype/internal/services/svmetric.h b/freetype/include/freetype/internal/services/svmetric.h
index 2b30edaa..b9c95a7c 100644
--- a/freetype/include/freetype/internal/services/svmetric.h
+++ b/freetype/include/freetype/internal/services/svmetric.h
@@ -4,7 +4,7 @@
*
* The FreeType services for metrics variations (specification).
*
- * Copyright (C) 2016-2020 by
+ * Copyright (C) 2016-2021 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
diff --git a/freetype/include/freetype/internal/services/svmm.h b/freetype/include/freetype/internal/services/svmm.h
index 5a807636..8eac3a3f 100644
--- a/freetype/include/freetype/internal/services/svmm.h
+++ b/freetype/include/freetype/internal/services/svmm.h
@@ -4,7 +4,7 @@
*
* The FreeType Multiple Masters and GX var services (specification).
*
- * Copyright (C) 2003-2020 by
+ * Copyright (C) 2003-2021 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
diff --git a/freetype/include/freetype/internal/services/svotval.h b/freetype/include/freetype/internal/services/svotval.h
index 763fb2ef..7afb49e8 100644
--- a/freetype/include/freetype/internal/services/svotval.h
+++ b/freetype/include/freetype/internal/services/svotval.h
@@ -4,7 +4,7 @@
*
* The FreeType OpenType validation service (specification).
*
- * Copyright (C) 2004-2020 by
+ * Copyright (C) 2004-2021 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
diff --git a/freetype/include/freetype/internal/services/svpfr.h b/freetype/include/freetype/internal/services/svpfr.h
index bdeba078..98442bf8 100644
--- a/freetype/include/freetype/internal/services/svpfr.h
+++ b/freetype/include/freetype/internal/services/svpfr.h
@@ -4,7 +4,7 @@
*
* Internal PFR service functions (specification).
*
- * Copyright (C) 2003-2020 by
+ * Copyright (C) 2003-2021 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
diff --git a/freetype/include/freetype/internal/services/svpostnm.h b/freetype/include/freetype/internal/services/svpostnm.h
index 8ef62c5f..5a25c5a5 100644
--- a/freetype/include/freetype/internal/services/svpostnm.h
+++ b/freetype/include/freetype/internal/services/svpostnm.h
@@ -4,7 +4,7 @@
*
* The FreeType PostScript name services (specification).
*
- * Copyright (C) 2003-2020 by
+ * Copyright (C) 2003-2021 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
diff --git a/freetype/include/freetype/internal/services/svprop.h b/freetype/include/freetype/internal/services/svprop.h
index 8f755436..9b71000c 100644
--- a/freetype/include/freetype/internal/services/svprop.h
+++ b/freetype/include/freetype/internal/services/svprop.h
@@ -4,7 +4,7 @@
*
* The FreeType property service (specification).
*
- * Copyright (C) 2012-2020 by
+ * Copyright (C) 2012-2021 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
diff --git a/freetype/include/freetype/internal/services/svpscmap.h b/freetype/include/freetype/internal/services/svpscmap.h
index b4dcd807..346f5e2a 100644
--- a/freetype/include/freetype/internal/services/svpscmap.h
+++ b/freetype/include/freetype/internal/services/svpscmap.h
@@ -4,7 +4,7 @@
*
* The FreeType PostScript charmap service (specification).
*
- * Copyright (C) 2003-2020 by
+ * Copyright (C) 2003-2021 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
diff --git a/freetype/include/freetype/internal/services/svpsinfo.h b/freetype/include/freetype/internal/services/svpsinfo.h
index 1e7276ff..49aa4d56 100644
--- a/freetype/include/freetype/internal/services/svpsinfo.h
+++ b/freetype/include/freetype/internal/services/svpsinfo.h
@@ -4,7 +4,7 @@
*
* The FreeType PostScript info service (specification).
*
- * Copyright (C) 2003-2020 by
+ * Copyright (C) 2003-2021 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
diff --git a/freetype/include/freetype/internal/services/svsfnt.h b/freetype/include/freetype/internal/services/svsfnt.h
index 39c8b5e1..4306cbc1 100644
--- a/freetype/include/freetype/internal/services/svsfnt.h
+++ b/freetype/include/freetype/internal/services/svsfnt.h
@@ -4,7 +4,7 @@
*
* The FreeType SFNT table loading service (specification).
*
- * Copyright (C) 2003-2020 by
+ * Copyright (C) 2003-2021 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
diff --git a/freetype/include/freetype/internal/services/svttcmap.h b/freetype/include/freetype/internal/services/svttcmap.h
index c18bb233..775b6bcf 100644
--- a/freetype/include/freetype/internal/services/svttcmap.h
+++ b/freetype/include/freetype/internal/services/svttcmap.h
@@ -4,7 +4,7 @@
*
* The FreeType TrueType/sfnt cmap extra information service.
*
- * Copyright (C) 2003-2020 by
+ * Copyright (C) 2003-2021 by
* Masatake YAMATO, Redhat K.K.,
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
diff --git a/freetype/include/freetype/internal/services/svtteng.h b/freetype/include/freetype/internal/services/svtteng.h
index 7a17e4a7..96493428 100644
--- a/freetype/include/freetype/internal/services/svtteng.h
+++ b/freetype/include/freetype/internal/services/svtteng.h
@@ -4,7 +4,7 @@
*
* The FreeType TrueType engine query service (specification).
*
- * Copyright (C) 2006-2020 by
+ * Copyright (C) 2006-2021 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
diff --git a/freetype/include/freetype/internal/services/svttglyf.h b/freetype/include/freetype/internal/services/svttglyf.h
index 90a81dd4..4268467b 100644
--- a/freetype/include/freetype/internal/services/svttglyf.h
+++ b/freetype/include/freetype/internal/services/svttglyf.h
@@ -4,7 +4,7 @@
*
* The FreeType TrueType glyph service.
*
- * Copyright (C) 2007-2020 by
+ * Copyright (C) 2007-2021 by
* David Turner.
*
* This file is part of the FreeType project, and may only be used,
diff --git a/freetype/include/freetype/internal/services/svwinfnt.h b/freetype/include/freetype/internal/services/svwinfnt.h
index 8c915f52..aa70aa44 100644
--- a/freetype/include/freetype/internal/services/svwinfnt.h
+++ b/freetype/include/freetype/internal/services/svwinfnt.h
@@ -4,7 +4,7 @@
*
* The FreeType Windows FNT/FONT service (specification).
*
- * Copyright (C) 2003-2020 by
+ * Copyright (C) 2003-2021 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
diff --git a/freetype/include/freetype/internal/sfnt.h b/freetype/include/freetype/internal/sfnt.h
index b4c12dbb..bf4c7e09 100644
--- a/freetype/include/freetype/internal/sfnt.h
+++ b/freetype/include/freetype/internal/sfnt.h
@@ -4,7 +4,7 @@
*
* High-level 'sfnt' driver interface (specification).
*
- * Copyright (C) 1996-2020 by
+ * Copyright (C) 1996-2021 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
@@ -527,6 +527,170 @@ FT_BEGIN_HEADER
/**************************************************************************
*
* @functype:
+ * TT_Get_Color_Glyph_Paint_Func
+ *
+ * @description:
+ * Find the root @FT_OpaquePaint object for a given glyph ID.
+ *
+ * @input:
+ * face ::
+ * The target face object.
+ *
+ * base_glyph ::
+ * The glyph index the colored glyph layers are associated with.
+ *
+ * @output:
+ * paint ::
+ * The root @FT_OpaquePaint object.
+ *
+ * @return:
+ * Value~1 if everything is OK. If no color glyph is found, or the root
+ * paint could not be retrieved, value~0 gets returned. In case of an
+ * error, value~0 is returned also.
+ */
+ typedef FT_Bool
+ ( *TT_Get_Color_Glyph_Paint_Func )( TT_Face face,
+ FT_UInt base_glyph,
+ FT_Color_Root_Transform root_transform,
+ FT_OpaquePaint *paint );
+
+
+ /**************************************************************************
+ *
+ * @functype:
+ * TT_Get_Color_Glyph_ClipBox_Func
+ *
+ * @description:
+ * Search for a 'COLR' v1 clip box for the specified `base_glyph` and
+ * fill the `clip_box` parameter with the 'COLR' v1 'ClipBox' information
+ * if one is found.
+ *
+ * @input:
+ * face ::
+ * A handle to the parent face object.
+ *
+ * base_glyph ::
+ * The glyph index for which to retrieve the clip box.
+ *
+ * @output:
+ * clip_box ::
+ * The clip box for the requested `base_glyph` if one is found. The
+ * clip box is computed taking scale and transformations configured on
+ * the @FT_Face into account. @FT_ClipBox contains @FT_Vector values
+ * in 26.6 format.
+ *
+ * @note:
+ * To retrieve the clip box in font units, reset scale to units-per-em
+ * and remove transforms configured using @FT_Set_Transform.
+ *
+ * @return:
+ * Value~1 if a ClipBox is found. If no clip box is found or an
+ * error occured, value~0 is returned.
+ */
+ typedef FT_Bool
+ ( *TT_Get_Color_Glyph_ClipBox_Func )( TT_Face face,
+ FT_UInt base_glyph,
+ FT_ClipBox* clip_box );
+
+
+ /**************************************************************************
+ *
+ * @functype:
+ * TT_Get_Paint_Layers_Func
+ *
+ * @description:
+ * Access the layers of a `PaintColrLayers` table.
+ *
+ * @input:
+ * face ::
+ * The target face object.
+ *
+ * @inout:
+ * iterator ::
+ * The @FT_LayerIterator from an @FT_PaintColrLayers object, for which
+ * the layers are to be retrieved. The internal state of the iterator
+ * is incremented after one call to this function for retrieving one
+ * layer.
+ *
+ * @output:
+ * paint ::
+ * The root @FT_OpaquePaint object referencing the actual paint table.
+ *
+ * @return:
+ * Value~1 if everything is OK. Value~0 gets returned when the paint
+ * object can not be retrieved or any other error occurs.
+ */
+ typedef FT_Bool
+ ( *TT_Get_Paint_Layers_Func )( TT_Face face,
+ FT_LayerIterator* iterator,
+ FT_OpaquePaint *paint );
+
+
+ /**************************************************************************
+ *
+ * @functype:
+ * TT_Get_Colorline_Stops_Func
+ *
+ * @description:
+ * Get the gradient and solid fill information for a given glyph.
+ *
+ * @input:
+ * face ::
+ * The target face object.
+ *
+ * @inout:
+ * iterator ::
+ * An @FT_ColorStopIterator object. For the first call you should set
+ * `iterator->p` to `NULL`. For all following calls, simply use the
+ * same object again.
+ *
+ * @output:
+ * color_stop ::
+ * Color index and alpha value for the retrieved color stop.
+ *
+ * @return:
+ * Value~1 if everything is OK. If there are no more color stops,
+ * value~0 gets returned. In case of an error, value~0 is returned
+ * also.
+ */
+ typedef FT_Bool
+ ( *TT_Get_Colorline_Stops_Func )( TT_Face face,
+ FT_ColorStop *color_stop,
+ FT_ColorStopIterator* iterator );
+
+
+ /**************************************************************************
+ *
+ * @functype:
+ * TT_Get_Paint_Func
+ *
+ * @description:
+ * Get the paint details for a given @FT_OpaquePaint object.
+ *
+ * @input:
+ * face ::
+ * The target face object.
+ *
+ * opaque_paint ::
+ * The @FT_OpaquePaint object.
+ *
+ * @output:
+ * paint ::
+ * An @FT_COLR_Paint object holding the details on `opaque_paint`.
+ *
+ * @return:
+ * Value~1 if everything is OK. Value~0 if no details can be found for
+ * this paint or any other error occured.
+ */
+ typedef FT_Bool
+ ( *TT_Get_Paint_Func )( TT_Face face,
+ FT_OpaquePaint opaque_paint,
+ FT_COLR_Paint *paint );
+
+
+ /**************************************************************************
+ *
+ * @functype:
* TT_Blend_Colr_Func
*
* @description:
@@ -709,73 +873,78 @@ FT_BEGIN_HEADER
*/
typedef struct SFNT_Interface_
{
- TT_Loader_GotoTableFunc goto_table;
+ TT_Loader_GotoTableFunc goto_table;
- TT_Init_Face_Func init_face;
- TT_Load_Face_Func load_face;
- TT_Done_Face_Func done_face;
- FT_Module_Requester get_interface;
+ TT_Init_Face_Func init_face;
+ TT_Load_Face_Func load_face;
+ TT_Done_Face_Func done_face;
+ FT_Module_Requester get_interface;
- TT_Load_Any_Func load_any;
+ TT_Load_Any_Func load_any;
/* these functions are called by `load_face' but they can also */
/* be called from external modules, if there is a need to do so */
- TT_Load_Table_Func load_head;
- TT_Load_Metrics_Func load_hhea;
- TT_Load_Table_Func load_cmap;
- TT_Load_Table_Func load_maxp;
- TT_Load_Table_Func load_os2;
- TT_Load_Table_Func load_post;
+ TT_Load_Table_Func load_head;
+ TT_Load_Metrics_Func load_hhea;
+ TT_Load_Table_Func load_cmap;
+ TT_Load_Table_Func load_maxp;
+ TT_Load_Table_Func load_os2;
+ TT_Load_Table_Func load_post;
- TT_Load_Table_Func load_name;
- TT_Free_Table_Func free_name;
+ TT_Load_Table_Func load_name;
+ TT_Free_Table_Func free_name;
/* this field was called `load_kerning' up to version 2.1.10 */
- TT_Load_Table_Func load_kern;
+ TT_Load_Table_Func load_kern;
- TT_Load_Table_Func load_gasp;
- TT_Load_Table_Func load_pclt;
+ TT_Load_Table_Func load_gasp;
+ TT_Load_Table_Func load_pclt;
/* see `ttload.h'; this field was called `load_bitmap_header' up to */
/* version 2.1.10 */
- TT_Load_Table_Func load_bhed;
+ TT_Load_Table_Func load_bhed;
- TT_Load_SBit_Image_Func load_sbit_image;
+ TT_Load_SBit_Image_Func load_sbit_image;
/* see `ttpost.h' */
- TT_Get_PS_Name_Func get_psname;
- TT_Free_Table_Func free_psnames;
+ TT_Get_PS_Name_Func get_psname;
+ TT_Free_Table_Func free_psnames;
/* starting here, the structure differs from version 2.1.7 */
/* this field was introduced in version 2.1.8, named `get_psname' */
- TT_Face_GetKerningFunc get_kerning;
+ TT_Face_GetKerningFunc get_kerning;
/* new elements introduced after version 2.1.10 */
/* load the font directory, i.e., the offset table and */
/* the table directory */
- TT_Load_Table_Func load_font_dir;
- TT_Load_Metrics_Func load_hmtx;
+ TT_Load_Table_Func load_font_dir;
+ TT_Load_Metrics_Func load_hmtx;
- TT_Load_Table_Func load_eblc;
- TT_Free_Table_Func free_eblc;
+ TT_Load_Table_Func load_eblc;
+ TT_Free_Table_Func free_eblc;
TT_Set_SBit_Strike_Func set_sbit_strike;
TT_Load_Strike_Metrics_Func load_strike_metrics;
- TT_Load_Table_Func load_cpal;
- TT_Load_Table_Func load_colr;
- TT_Free_Table_Func free_cpal;
- TT_Free_Table_Func free_colr;
- TT_Set_Palette_Func set_palette;
- TT_Get_Colr_Layer_Func get_colr_layer;
- TT_Blend_Colr_Func colr_blend;
+ TT_Load_Table_Func load_cpal;
+ TT_Load_Table_Func load_colr;
+ TT_Free_Table_Func free_cpal;
+ TT_Free_Table_Func free_colr;
+ TT_Set_Palette_Func set_palette;
+ TT_Get_Colr_Layer_Func get_colr_layer;
+ TT_Get_Color_Glyph_Paint_Func get_colr_glyph_paint;
+ TT_Get_Color_Glyph_ClipBox_Func get_color_glyph_clipbox;
+ TT_Get_Paint_Layers_Func get_paint_layers;
+ TT_Get_Colorline_Stops_Func get_colorline_stops;
+ TT_Get_Paint_Func get_paint;
+ TT_Blend_Colr_Func colr_blend;
- TT_Get_Metrics_Func get_metrics;
+ TT_Get_Metrics_Func get_metrics;
- TT_Get_Name_Func get_name;
- TT_Get_Name_ID_Func get_name_id;
+ TT_Get_Name_Func get_name;
+ TT_Get_Name_ID_Func get_name_id;
} SFNT_Interface;
@@ -820,6 +989,11 @@ FT_BEGIN_HEADER
free_colr_, \
set_palette_, \
get_colr_layer_, \
+ get_colr_glyph_paint_, \
+ get_color_glyph_clipbox, \
+ get_paint_layers_, \
+ get_colorline_stops_, \
+ get_paint_, \
colr_blend_, \
get_metrics_, \
get_name_, \
@@ -860,6 +1034,11 @@ FT_BEGIN_HEADER
free_colr_, \
set_palette_, \
get_colr_layer_, \
+ get_colr_glyph_paint_, \
+ get_color_glyph_clipbox, \
+ get_paint_layers_, \
+ get_colorline_stops_, \
+ get_paint_, \
colr_blend_, \
get_metrics_, \
get_name_, \
diff --git a/freetype/include/freetype/internal/t1types.h b/freetype/include/freetype/internal/t1types.h
index 6a0fe5e9..023c5d08 100644
--- a/freetype/include/freetype/internal/t1types.h
+++ b/freetype/include/freetype/internal/t1types.h
@@ -5,7 +5,7 @@
* Basic Type1/Type2 type definitions and interface (specification
* only).
*
- * Copyright (C) 1996-2020 by
+ * Copyright (C) 1996-2021 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
diff --git a/freetype/include/freetype/internal/tttypes.h b/freetype/include/freetype/internal/tttypes.h
index c36342c9..651131c8 100644
--- a/freetype/include/freetype/internal/tttypes.h
+++ b/freetype/include/freetype/internal/tttypes.h
@@ -5,7 +5,7 @@
* Basic SFNT/TrueType type definitions and interface (specification
* only).
*
- * Copyright (C) 1996-2020 by
+ * Copyright (C) 1996-2021 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
@@ -1372,7 +1372,7 @@ FT_BEGIN_HEADER
*
* num_locations ::
* The number of glyph locations in this TrueType file. This should be
- * identical to the number of glyphs. Ignored for Type 2 fonts.
+ * one more than the number of glyphs. Ignored for Type 2 fonts.
*
* glyph_locations ::
* An array of longs. These are offsets to glyph data within the
@@ -1598,7 +1598,7 @@ FT_BEGIN_HEADER
FT_ULong horz_metrics_size;
FT_ULong vert_metrics_size;
- FT_ULong num_locations; /* in broken TTF, gid > 0xFFFF */
+ FT_ULong num_locations; /* up to 0xFFFF + 1 */
FT_Byte* glyph_locations;
FT_Byte* hdmx_table;
@@ -1734,7 +1734,7 @@ FT_BEGIN_HEADER
FT_UInt glyph_index;
FT_Stream stream;
- FT_Int byte_len;
+ FT_UInt byte_len;
FT_Short n_contours;
FT_BBox bbox;
diff --git a/freetype/include/freetype/internal/wofftypes.h b/freetype/include/freetype/internal/wofftypes.h
index 1874a138..c460107c 100644
--- a/freetype/include/freetype/internal/wofftypes.h
+++ b/freetype/include/freetype/internal/wofftypes.h
@@ -5,7 +5,7 @@
* Basic WOFF/WOFF2 type definitions and interface (specification
* only).
*
- * Copyright (C) 1996-2020 by
+ * Copyright (C) 1996-2021 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
@@ -92,7 +92,7 @@ FT_BEGIN_HEADER
*/
typedef struct WOFF_TableRec_
{
- FT_ULong Tag; /* table ID */
+ FT_Tag Tag; /* table ID */
FT_ULong Offset; /* table file offset */
FT_ULong CompLength; /* compressed table length */
FT_ULong OrigLength; /* uncompressed table length */
@@ -191,7 +191,7 @@ FT_BEGIN_HEADER
typedef struct WOFF2_TableRec_
{
FT_Byte FlagByte; /* table type and flags */
- FT_ULong Tag; /* table file offset */
+ FT_Tag Tag; /* table file offset */
FT_ULong dst_length; /* uncompressed table length */
FT_ULong TransformLength; /* transformed length */
diff --git a/freetype/include/freetype/t1tables.h b/freetype/include/freetype/t1tables.h
index 426e1402..a5f6ae72 100644
--- a/freetype/include/freetype/t1tables.h
+++ b/freetype/include/freetype/t1tables.h
@@ -5,7 +5,7 @@
* Basic Type 1/Type 2 tables definitions and interface (specification
* only).
*
- * Copyright (C) 1996-2020 by
+ * Copyright (C) 1996-2021 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
@@ -360,7 +360,7 @@ FT_BEGIN_HEADER
FT_UInt num_subrs;
FT_ULong subrmap_offset;
- FT_Int sd_bytes;
+ FT_UInt sd_bytes;
} CID_FaceDictRec;
@@ -415,11 +415,11 @@ FT_BEGIN_HEADER
FT_ULong xuid[16];
FT_ULong cidmap_offset;
- FT_Int fd_bytes;
- FT_Int gd_bytes;
+ FT_UInt fd_bytes;
+ FT_UInt gd_bytes;
FT_ULong cid_count;
- FT_Int num_dicts;
+ FT_UInt num_dicts;
CID_FaceDict font_dicts;
FT_ULong data_offset;
diff --git a/freetype/include/freetype/ttnameid.h b/freetype/include/freetype/ttnameid.h
index 2b2ed4c6..a09950f5 100644
--- a/freetype/include/freetype/ttnameid.h
+++ b/freetype/include/freetype/ttnameid.h
@@ -4,7 +4,7 @@
*
* TrueType name ID definitions (specification only).
*
- * Copyright (C) 1996-2020 by
+ * Copyright (C) 1996-2021 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
@@ -591,7 +591,7 @@ FT_BEGIN_HEADER
#define TT_MS_LANGID_MALAY_MALAYSIA 0x043E
#define TT_MS_LANGID_MALAY_BRUNEI_DARUSSALAM 0x083E
#define TT_MS_LANGID_KAZAKH_KAZAKHSTAN 0x043F
-#define TT_MS_LANGID_KYRGYZ_KYRGYZSTAN /* Cyrillic*/ 0x0440
+#define TT_MS_LANGID_KYRGYZ_KYRGYZSTAN /* Cyrillic */ 0x0440
#define TT_MS_LANGID_KISWAHILI_KENYA 0x0441
#define TT_MS_LANGID_TURKMEN_TURKMENISTAN 0x0442
#define TT_MS_LANGID_UZBEK_UZBEKISTAN_LATIN 0x0443
diff --git a/freetype/include/freetype/tttables.h b/freetype/include/freetype/tttables.h
index c8fa35ef..c33d9905 100644
--- a/freetype/include/freetype/tttables.h
+++ b/freetype/include/freetype/tttables.h
@@ -5,7 +5,7 @@
* Basic SFNT/TrueType tables definitions and interface
* (specification only).
*
- * Copyright (C) 1996-2020 by
+ * Copyright (C) 1996-2021 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
diff --git a/freetype/include/freetype/tttags.h b/freetype/include/freetype/tttags.h
index 3c9fbd59..47ccc6dd 100644
--- a/freetype/include/freetype/tttags.h
+++ b/freetype/include/freetype/tttags.h
@@ -4,7 +4,7 @@
*
* Tags for TrueType and OpenType tables (specification only).
*
- * Copyright (C) 1996-2020 by
+ * Copyright (C) 1996-2021 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
diff --git a/freetype/include/ft2build.h b/freetype/include/ft2build.h
index b4fd1f8c..62686b1b 100644
--- a/freetype/include/ft2build.h
+++ b/freetype/include/ft2build.h
@@ -4,7 +4,7 @@
*
* FreeType 2 build and setup macros.
*
- * Copyright (C) 1996-2020 by
+ * Copyright (C) 1996-2021 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
diff --git a/freetype/meson.build b/freetype/meson.build
index ea304954..9998848d 100644
--- a/freetype/meson.build
+++ b/freetype/meson.build
@@ -2,7 +2,7 @@
# Meson project file for FreeType 2
#
-# Copyright (C) 2020 by
+# Copyright (C) 2020-2021 by
# David Turner, Robert Wilhelm, and Werner Lemberg.
#
# This file is part of the FreeType project, and may only be used, modified,
@@ -11,34 +11,45 @@
# indicate that you have read the license and understand and accept it
# fully.
+#
+# Say
+#
+# meson configure
+#
+# to see all configuration options and their default values. For example,
+# to build only a shared version of FreeType, override the default value
+# with
+#
+# meson setup -Ddefault_library=shared
+#
project('freetype2', 'c',
meson_version: '>= 0.55.0',
default_options: ['default_library=both'],
+ version: run_command('builds/meson/extract_freetype_version.py',
+ 'include/freetype/freetype.h').stdout().strip(),
)
-#
-# Rules to compile the FreeType 2 library itself
-#
-
-# Apparently meson doesn't provide a read_file() function, so instead
-# running an external command is required.
+# Only meson >= 0.57 can read a file and assign its contents to a
+# variable; we thus use an external command to have this functionality
+# with older versions, too.
python = import('python')
python_exe = python.find_installation(required: true)
-ft2_version = run_command(python_exe,
- files('builds/meson/extract_freetype_version.py'),
- files('include/freetype/freetype.h')).stdout().strip()
-
-ft2_libtool_version = run_command(python_exe,
+ft2_so_version = run_command(python_exe,
files('builds/meson/extract_libtool_version.py'),
'--soversion',
files('builds/unix/configure.raw')).stdout().strip()
+ft2_pkgconfig_version = run_command(python_exe,
+ files('builds/meson/extract_libtool_version.py'),
+ files('builds/unix/configure.raw')).stdout().strip()
+
ft2_includes = include_directories('include')
+freetype_includedir = join_paths(get_option('includedir'), 'freetype2')
# Generate a custom `ftmodule.h` version based on the content of
# `modules.cfg`.
@@ -49,7 +60,7 @@ ftmodule_h = custom_target('ftmodule.h',
command: [python_exe, files('builds/meson/parse_modules_cfg.py'),
'--format=ftmodule.h', '@INPUT@', '--output', '@OUTPUT@'],
install: true,
- install_dir: 'include/freetype2/freetype/config',
+ install_dir: join_paths(freetype_includedir, 'freetype/config'),
)
ft2_sources = [ftmodule_h]
@@ -76,7 +87,7 @@ foreach mod: ft_main_modules
ft2_sources += 'src/@0@/@1@.c'.format(mod, source)
endforeach
-# NOTE: The `gzip` and `bzip2` aux modules are handled through options.
+# NOTE: The `bzip2` aux module is handled through options.
ft_aux_modules = run_command(python_exe,
files('builds/meson/parse_modules_cfg.py'),
'--format=aux-modules',
@@ -90,7 +101,9 @@ foreach auxmod: ft_aux_modules
source = 'ftcache'
elif auxmod == 'lzw'
source = 'ftlzw'
- elif auxmod == 'gzip' or auxmod == 'bzip2'
+ elif auxmod == 'gzip'
+ source = 'ftgzip'
+ elif auxmod == 'bzip2'
# Handled through options instead, see below.
continue
endif
@@ -99,7 +112,7 @@ endforeach
# FreeType 2 base extensions.
-# Normally configured through `modules.cfg`.
+# To be configured in `modules.cfg`.
base_extensions = run_command(python_exe,
files('builds/meson/parse_modules_cfg.py'),
@@ -122,6 +135,7 @@ ft2_public_headers = files([
'include/freetype/ftbzip2.h',
'include/freetype/ftcache.h',
'include/freetype/ftchapters.h',
+ 'include/freetype/ftcid.h',
'include/freetype/ftcolor.h',
'include/freetype/ftdriver.h',
'include/freetype/fterrdef.h',
@@ -168,7 +182,7 @@ ft2_config_headers = files([
'include/freetype/config/public-macros.h',
])
-ft2_defines = []
+ft2_defines = ['-DFT2_BUILD_LIBRARY=1']
# System support file.
@@ -180,24 +194,24 @@ has_unistd_h = cc.has_header('unistd.h')
has_fcntl_h = cc.has_header('fcntl.h')
has_sys_mman_h = cc.has_header('sys/mman.h')
-if has_unistd_h
- ft2_defines += ['-DHAVE_UNISTD_H=1']
-endif
-if has_fcntl_h
- ft2_defines += ['-DHAVE_FCNTL_H']
-endif
-
mmap_option = get_option('mmap')
-if mmap_option.auto()
- use_mmap = has_unistd_h and has_fcntl_h and has_sys_mman_h
-else
- use_mmap = mmap_option.enabled()
-endif
-if use_mmap
- # This version of ftsystem.c uses mmap() to read input font files.
- ft2_sources += files(['builds/unix/ftsystem.c',])
-else
+
+use_unix_ftsystem_c = false
+if mmap_option.disabled()
ft2_sources += files(['src/base/ftsystem.c',])
+elif host_machine.system() == 'windows'
+ ft2_sources += files(['builds/windows/ftsystem.c',])
+else
+ if has_unistd_h and has_fcntl_h and has_sys_mman_h
+ # This version of `ftsystem.c` uses `mmap` to read input font files.
+ ft2_sources += files(['builds/unix/ftsystem.c',])
+ use_unix_ftsystem_c = true
+ elif mmap_option.enabled()
+ error('mmap was enabled via options but is not available,'
+ + ' required headers were not found!')
+ else
+ ft2_sources += files(['src/base/ftsystem.c',])
+ endif
endif
@@ -205,53 +219,64 @@ endif
#
# NOTE: Some specialized versions exist for other platforms not supported by
# Meson. Most implementation differences are extremely minor, i.e., in the
-# implementation of FT_Message() and FT_Panic(), and getting the `FT2_DEBUG`
+# implementation of `FT_Message` and `FT_Panic`, and getting the `FT2_DEBUG`
# value from the environment, when this is supported. A smaller refactor
# might make these platform-specific files much smaller, and could be moved
# into `ftsystem.c` as well.
#
if host_machine.system() == 'windows'
- ft2_debug_src = 'builds/windows/ftdebug.c'
+ winmod = import('windows')
+ ft2_sources += [
+ 'builds/windows/ftdebug.c',
+ winmod.compile_resources('src/base/ftver.rc'),
+ ]
else
- ft2_debug_src = 'src/base/ftdebug.c'
+ ft2_sources += 'src/base/ftdebug.c'
endif
-ft2_sources += files([ft2_debug_src])
+
ft2_deps = []
+common_ldflags = []
+
+
+# Correct compatibility version for OS x.
+#
+# OSX sets the compatibility_version (aka libtools version) differently from
+# the library name.
+#
+if host_machine.system() == 'darwin'
+ # maintain compatibility with autotools on macOS
+ common_ldflags = [
+ '-compatibility_version', ft2_pkgconfig_version.split('.')[0],
+ '-current_version', ft2_pkgconfig_version
+ ]
+endif
# Generate `ftoption.h` based on available dependencies.
-ftoption_command = [python_exe,
+process_header_command = [python_exe,
files('builds/meson/process_ftoption_h.py'),
'@INPUT@', '--output=@OUTPUT@']
+ftoption_command = process_header_command
-# GZip support
-zlib_option = get_option('zlib')
-if zlib_option == 'disabled'
- ftoption_command += ['--disable=FT_CONFIG_OPTION_USE_ZLIB']
+
+# external GZip support
+zlib_dep = dependency('zlib',
+ required: get_option('zlib'),
+ fallback: 'zlib')
+
+if zlib_dep.found()
+ ftoption_command += ['--enable=FT_CONFIG_OPTION_SYSTEM_ZLIB']
+ ft2_deps += [zlib_dep]
else
- ftoption_command += ['--enable=FT_CONFIG_OPTION_USE_ZLIB']
- if zlib_option == 'builtin'
- ftoption_command += ['--disable=FT_CONFIG_OPTION_SYSTEM_ZLIB']
- else
- # Probe for the system version.
- zlib_system = dependency('zlib', required: zlib_option == 'system')
- ft2_deps += [zlib_system]
- ftoption_command += ['--enable=FT_CONFIG_OPTION_SYSTEM_ZLIB']
- endif
- ft2_sources += files(['src/gzip/ftgzip.c',])
+ ftoption_command += ['--disable=FT_CONFIG_OPTION_SYSTEM_ZLIB']
endif
# BZip2 support
-#
-# IMPORTANT NOTE: Without `static: false` here, Meson will find both the
-# static library version and the shared library version when they are
-# installed on the system, and will try to link them *both* to the final
-# library!
-bzip2_dep = meson.get_compiler('c').find_library('bz2',
- static: false,
- required: get_option('bzip2'))
+bzip2_dep = cc.find_library('bz2',
+ required: get_option('bzip2'))
+
if bzip2_dep.found()
ftoption_command += ['--enable=FT_CONFIG_OPTION_USE_BZIP2']
ft2_sources += files(['src/bzip2/ftbzip2.c',])
@@ -259,21 +284,33 @@ if bzip2_dep.found()
endif
# PNG support
-libpng_dep = dependency('libpng', required: get_option('png'))
-ftoption_command += ['--enable=FT_CONFIG_OPTION_USE_PNG']
-ft2_deps += [libpng_dep]
+libpng_dep = dependency('libpng',
+ required: get_option('png'),
+ fallback: 'libpng')
+
+if libpng_dep.found()
+ ftoption_command += ['--enable=FT_CONFIG_OPTION_USE_PNG']
+ ft2_deps += [libpng_dep]
+endif
# Harfbuzz support
harfbuzz_dep = dependency('harfbuzz',
- version: '>= 1.8.0',
- required: get_option('harfbuzz'))
-ftoption_command += ['--enable=FT_CONFIG_OPTION_USE_HARFBUZZ']
-ft2_deps += [harfbuzz_dep]
+ version: '>= 2.0.0',
+ required: get_option('harfbuzz'))
+
+if harfbuzz_dep.found()
+ ftoption_command += ['--enable=FT_CONFIG_OPTION_USE_HARFBUZZ']
+ ft2_deps += [harfbuzz_dep]
+endif
# Brotli decompression support
-brotli_dep = dependency('libbrotlidec', required: get_option('brotli'))
-ftoption_command += ['--enable=FT_CONFIG_OPTION_USE_BROTLI']
-ft2_deps += [brotli_dep]
+brotli_dep = dependency('libbrotlidec',
+ required: get_option('brotli'))
+
+if brotli_dep.found()
+ ftoption_command += ['--enable=FT_CONFIG_OPTION_USE_BROTLI']
+ ft2_deps += [brotli_dep]
+endif
# We can now generate `ftoption.h`.
ftoption_h = custom_target('ftoption.h',
@@ -281,75 +318,86 @@ ftoption_h = custom_target('ftoption.h',
output: 'ftoption.h',
command: ftoption_command,
install: true,
- install_dir: 'include/freetype2/freetype/config',
+ install_dir: join_paths(freetype_includedir, 'freetype/config'),
)
ft2_sources += ftoption_h
+ft2_defines += ['-DFT_CONFIG_OPTIONS_H=<ftoption.h>']
+if host_machine.system() == 'windows'
+ ft2_defines += ['-DDLL_EXPORT=1']
+endif
-# QUESTION: What if the compiler doesn't support `-D` but uses `/D` instead
-# as on Windows?
-#
-# Other build systems have something like c_defines to list defines in a
-# more portable way. For now assume the compiler supports `-D` (hint: Visual
-# Studio does).
-ft2_defines += ['-DFT2_BUILD_LIBRARY=1']
+# Generate `ftconfig.h`.
-# Ensure that the `ftoption.h` file generated above will be used to build
-# FreeType. Unfortunately, and very surprisingly, configure_file() does not
-# support putting the output file in a sub-directory, so we have to override
-# the default which is `<freetype/config/ftoption.h>`.
-#
-# It would be cleaner to generate the file directly into
-# `${MESON_BUILD_DIR}/freetype/config/ftoption.h`. See
-# 'https://github.com/mesonbuild/meson/issues/2320' for details.
-ft2_defines += ['-DFT_CONFIG_OPTIONS_H=<ftoption.h>']
+ftconfig_command = process_header_command
+if has_unistd_h
+ ftconfig_command += '--enable=HAVE_UNISTD_H'
+endif
+if has_fcntl_h
+ ftconfig_command += '--enable=HAVE_FCNTL_H'
+endif
-ft2_c_args = ft2_defines
-if cc.has_function_attribute('visibility:hidden')
- ft2_c_args += ['-fvisibility=hidden']
+if use_unix_ftsystem_c
+ ftconfig_h_in = files('builds/unix/ftconfig.h.in')
+ ftconfig_h = custom_target('ftconfig.h',
+ input: ftconfig_h_in,
+ output: 'ftconfig.h',
+ command: ftconfig_command,
+ install: true,
+ install_dir: join_paths(freetype_includedir, 'freetype/config'),
+ )
+ ft2_sources += ftconfig_h
+ ft2_defines += ['-DFT_CONFIG_CONFIG_H=<ftconfig.h>']
endif
+
ft2_lib = library('freetype',
sources: ft2_sources + [ftmodule_h],
- c_args: ft2_c_args,
+ c_args: ft2_defines,
+ gnu_symbol_visibility: 'hidden',
include_directories: ft2_includes,
dependencies: ft2_deps,
install: true,
- version: ft2_libtool_version,
+ version: ft2_so_version,
+ link_args: common_ldflags,
)
-# To be used by other projects including this one through subproject().
-freetype2_dep = declare_dependency(
+# To be used by other projects including this one through `subproject`.
+freetype_dep = declare_dependency(
include_directories: ft2_includes,
link_with: ft2_lib,
- version: ft2_libtool_version)
+ version: ft2_pkgconfig_version)
+
+meson.override_dependency('freetype2', freetype_dep)
# NOTE: Using both `install_dir` and `subdir` doesn't seem to work below,
# i.e., the subdir value seems to be ignored, contrary to examples in the
# Meson documentation.
install_headers('include/ft2build.h',
- install_dir: 'include/freetype2')
+ install_dir: freetype_includedir)
install_headers(ft2_public_headers,
- install_dir: 'include/freetype2/freetype')
+ install_dir: join_paths(freetype_includedir, 'freetype'))
install_headers(ft2_config_headers,
- install_dir: 'include/freetype2/freetype/config')
+ install_dir: join_paths(freetype_includedir, 'freetype/config'))
-# TODO(david): Declare_dependency() for using this in a Meson subproject
-#
pkgconfig = import('pkgconfig')
+
pkgconfig.generate(ft2_lib,
filebase: 'freetype2',
name: 'FreeType 2',
description: 'A free, high-quality, and portable font engine.',
url: 'https://freetype.org',
subdirs: 'freetype2',
- version: ft2_libtool_version,
+ version: ft2_pkgconfig_version,
)
+if get_option('tests').enabled()
+ subdir('tests')
+endif
# NOTE: Unlike the old `make refdoc` command, this generates the
# documentation under `$BUILD/docs/` since Meson doesn't support modifying
@@ -359,10 +407,21 @@ gen_docs = custom_target('freetype2 reference documentation',
input: ft2_public_headers + ft2_config_headers,
command: [python_exe,
files('builds/meson/generate_reference_docs.py'),
- '--version=' + ft2_version,
- '--input-dir=' + meson.source_root(),
+ '--version=' + meson.project_version(),
+ '--input-dir=' + meson.current_source_dir(),
'--output-dir=@OUTPUT@'
],
)
+
+summary({'OS': host_machine.system(),
+ }, section: 'Operating System')
+
+summary({'Zlib': zlib_dep.found() ? 'external' : 'internal',
+ 'Bzip2': bzip2_dep.found() ? 'yes' : 'no',
+ 'Png': libpng_dep.found() ? 'yes' : 'no',
+ 'Harfbuzz': harfbuzz_dep.found() ? 'yes' : 'no',
+ 'Brotli': brotli_dep.found() ? 'yes' : 'no',
+ }, section: 'Used Libraries')
+
# EOF
diff --git a/freetype/meson_options.txt b/freetype/meson_options.txt
index 74ed16ba..375eb714 100644
--- a/freetype/meson_options.txt
+++ b/freetype/meson_options.txt
@@ -2,7 +2,7 @@
# meson_options.txt
#
-# Copyright (C) 2020 by
+# Copyright (C) 2020-2021 by
# David Turner, Robert Wilhelm, and Werner Lemberg.
#
# This file is part of the FreeType project, and may only be used, modified,
@@ -12,36 +12,42 @@
# fully.
-option('zlib',
- type: 'combo',
- choices: ['disabled', 'auto', 'builtin', 'system'],
+option('brotli',
+ type: 'feature',
value: 'auto',
- description: 'Support reading gzip-compressed font files.')
+ description: 'Use Brotli library to support decompressing WOFF2 fonts')
option('bzip2',
type: 'feature',
value: 'auto',
- description: 'Support reading bzip2-compressed font files.')
+ description: 'Support reading bzip2-compressed font files')
-option('png',
+option('harfbuzz',
type: 'feature',
value: 'auto',
- description: 'Support color bitmap glyph formats in the PNG format.'
- + 'Requires libpng.')
+ description: 'Use Harfbuzz library to improve auto-hinting;'
+ + ' if available, many glyphs not directly addressable'
+ + ' by a font\'s character map will be hinted also')
-option('harfbuzz',
+option('mmap',
type: 'feature',
value: 'auto',
- description: 'Use Harfbuzz library to improve auto-hinting.'
- + ' If available, many glyphs not directly addressable'
- + ' by a font\'s character map will be hinted also.')
+ description: 'Use mmap() to open font files for faster parsing')
-option('brotli',
+option('png',
type: 'feature',
value: 'auto',
- description: 'Use Brotli library to support decompressing WOFF2 fonts.')
+ description: 'Support color bitmap glyph formats in the PNG format;'
+ + ' requires libpng')
-option('mmap',
+option('tests',
+ type: 'feature',
+ value: 'disabled',
+ description: 'Enable FreeType unit and regression tests')
+
+option('zlib',
type: 'feature',
value: 'auto',
- description: 'Use mmap() to open font files for faster parsing.')
+ description: 'Support reading gzip-compressed font files')
+
+# EOF
diff --git a/freetype/modules.cfg b/freetype/modules.cfg
index d6cdbe52..30f7fac4 100644
--- a/freetype/modules.cfg
+++ b/freetype/modules.cfg
@@ -1,6 +1,6 @@
# modules.cfg
#
-# Copyright (C) 2005-2020 by
+# Copyright (C) 2005-2021 by
# David Turner, Robert Wilhelm, and Werner Lemberg.
#
# This file is part of the FreeType project, and may only be used, modified,
@@ -93,11 +93,14 @@ HINTING_MODULES += pshinter
#### raster modules -- at least one is required for vector font formats
####
+# Anti-aliasing rasterizer.
+RASTER_MODULES += smooth
+
# Monochrome rasterizer.
RASTER_MODULES += raster
-# Anti-aliasing rasterizer.
-RASTER_MODULES += smooth
+# Signed distance field rasterizer.
+RASTER_MODULES += sdf
####
diff --git a/freetype/src/autofit/afblue.c b/freetype/src/autofit/afblue.c
index 9ebffdd0..c9e8045c 100644
--- a/freetype/src/autofit/afblue.c
+++ b/freetype/src/autofit/afblue.c
@@ -7,7 +7,7 @@
*
* Auto-fitter data for blue strings (body).
*
- * Copyright (C) 2013-2020 by
+ * Copyright (C) 2013-2021 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
diff --git a/freetype/src/autofit/afblue.cin b/freetype/src/autofit/afblue.cin
index c6a697fe..071e80b0 100644
--- a/freetype/src/autofit/afblue.cin
+++ b/freetype/src/autofit/afblue.cin
@@ -4,7 +4,7 @@
*
* Auto-fitter data for blue strings (body).
*
- * Copyright (C) 2013-2020 by
+ * Copyright (C) 2013-2021 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
diff --git a/freetype/src/autofit/afblue.dat b/freetype/src/autofit/afblue.dat
index b19b8df0..1aa9b26d 100644
--- a/freetype/src/autofit/afblue.dat
+++ b/freetype/src/autofit/afblue.dat
@@ -2,7 +2,7 @@
//
// Auto-fitter data for blue strings.
//
-// Copyright (C) 2013-2020 by
+// Copyright (C) 2013-2021 by
// David Turner, Robert Wilhelm, and Werner Lemberg.
//
// This file is part of the FreeType project, and may only be used,
diff --git a/freetype/src/autofit/afblue.h b/freetype/src/autofit/afblue.h
index 486d663b..311c9e3a 100644
--- a/freetype/src/autofit/afblue.h
+++ b/freetype/src/autofit/afblue.h
@@ -7,7 +7,7 @@
*
* Auto-fitter data for blue strings (specification).
*
- * Copyright (C) 2013-2020 by
+ * Copyright (C) 2013-2021 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
diff --git a/freetype/src/autofit/afblue.hin b/freetype/src/autofit/afblue.hin
index 39570270..51869149 100644
--- a/freetype/src/autofit/afblue.hin
+++ b/freetype/src/autofit/afblue.hin
@@ -4,7 +4,7 @@
*
* Auto-fitter data for blue strings (specification).
*
- * Copyright (C) 2013-2020 by
+ * Copyright (C) 2013-2021 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
diff --git a/freetype/src/autofit/afcjk.c b/freetype/src/autofit/afcjk.c
index 3b340cd5..7e46b6b1 100644
--- a/freetype/src/autofit/afcjk.c
+++ b/freetype/src/autofit/afcjk.c
@@ -4,7 +4,7 @@
*
* Auto-fitter hinting routines for CJK writing system (body).
*
- * Copyright (C) 2006-2020 by
+ * Copyright (C) 2006-2021 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
@@ -37,11 +37,6 @@
#include "aferrors.h"
-#ifdef AF_CONFIG_OPTION_USE_WARPER
-#include "afwarp.h"
-#endif
-
-
/**************************************************************************
*
* The macro FT_COMPONENT is used in trace mode. It is an implicit
@@ -72,11 +67,11 @@
AF_GlyphHintsRec hints[1];
- FT_TRACE5(( "\n"
- "cjk standard widths computation (style `%s')\n"
- "===================================================\n"
- "\n",
+ FT_TRACE5(( "\n" ));
+ FT_TRACE5(( "cjk standard widths computation (style `%s')\n",
af_style_names[metrics->root.style_class->style] ));
+ FT_TRACE5(( "===================================================\n" ));
+ FT_TRACE5(( "\n" ));
af_glyph_hints_init( hints, face->memory );
@@ -314,9 +309,9 @@
/* style's entry in the `af_blue_stringset' array, computing its */
/* extremum points (depending on the string properties) */
- FT_TRACE5(( "cjk blue zones computation\n"
- "==========================\n"
- "\n" ));
+ FT_TRACE5(( "cjk blue zones computation\n" ));
+ FT_TRACE5(( "==========================\n" ));
+ FT_TRACE5(( "\n" ));
#ifdef FT_CONFIG_OPTION_USE_HARFBUZZ
shaper_buf = af_shaper_buf_create( face );
@@ -555,9 +550,8 @@
if ( AF_CJK_IS_TOP_BLUE( bs ) )
blue->flags |= AF_CJK_BLUE_TOP;
- FT_TRACE5(( " -> reference = %ld\n"
- " overshoot = %ld\n",
- *blue_ref, *blue_shoot ));
+ FT_TRACE5(( " -> reference = %ld\n", *blue_ref ));
+ FT_TRACE5(( " overshoot = %ld\n", *blue_shoot ));
} /* end for loop */
@@ -743,12 +737,12 @@
blue->shoot.fit = blue->ref.fit - delta2;
- FT_TRACE5(( ">> active cjk blue zone %c%d[%ld/%ld]:\n"
- " ref: cur=%.2f fit=%.2f\n"
- " shoot: cur=%.2f fit=%.2f\n",
+ FT_TRACE5(( ">> active cjk blue zone %c%d[%ld/%ld]:\n",
( dim == AF_DIMENSION_HORZ ) ? 'H' : 'V',
- nn, blue->ref.org, blue->shoot.org,
- blue->ref.cur / 64.0, blue->ref.fit / 64.0,
+ nn, blue->ref.org, blue->shoot.org ));
+ FT_TRACE5(( " ref: cur=%.2f fit=%.2f\n",
+ blue->ref.cur / 64.0, blue->ref.fit / 64.0 ));
+ FT_TRACE5(( " shoot: cur=%.2f fit=%.2f\n",
blue->shoot.cur / 64.0, blue->shoot.fit / 64.0 ));
blue->flags |= AF_CJK_BLUE_ACTIVE;
@@ -1401,11 +1395,6 @@
/* compute flags depending on render mode, etc. */
mode = metrics->root.scaler.render_mode;
-#if 0 /* AF_CONFIG_OPTION_USE_WARPER */
- if ( mode == FT_RENDER_MODE_LCD || mode == FT_RENDER_MODE_LCD_V )
- metrics->root.scaler.render_mode = mode = FT_RENDER_MODE_NORMAL;
-#endif
-
scaler_flags = hints->scaler_flags;
other_flags = 0;
@@ -1434,12 +1423,6 @@
scaler_flags |= AF_SCALER_FLAG_NO_ADVANCE;
-#ifdef AF_CONFIG_OPTION_USE_WARPER
- /* get (global) warper flag */
- if ( !metrics->root.globals->module->warping )
- scaler_flags |= AF_SCALER_FLAG_NO_WARPER;
-#endif
-
hints->scaler_flags = scaler_flags;
hints->other_flags = other_flags;
@@ -2322,25 +2305,6 @@
if ( ( dim == AF_DIMENSION_HORZ && AF_HINTS_DO_HORIZONTAL( hints ) ) ||
( dim == AF_DIMENSION_VERT && AF_HINTS_DO_VERTICAL( hints ) ) )
{
-
-#ifdef AF_CONFIG_OPTION_USE_WARPER
- if ( dim == AF_DIMENSION_HORZ &&
- metrics->root.scaler.render_mode == FT_RENDER_MODE_NORMAL &&
- AF_HINTS_DO_WARP( hints ) )
- {
- AF_WarperRec warper;
- FT_Fixed scale;
- FT_Pos delta;
-
-
- af_warper_compute( &warper, hints, (AF_Dimension)dim,
- &scale, &delta );
- af_glyph_hints_scale_dim( hints, (AF_Dimension)dim,
- scale, delta );
- continue;
- }
-#endif /* AF_CONFIG_OPTION_USE_WARPER */
-
af_cjk_hint_edges( hints, (AF_Dimension)dim );
af_cjk_align_edge_points( hints, (AF_Dimension)dim );
af_glyph_hints_align_strong_points( hints, (AF_Dimension)dim );
diff --git a/freetype/src/autofit/afcjk.h b/freetype/src/autofit/afcjk.h
index fd0f451a..58aa298d 100644
--- a/freetype/src/autofit/afcjk.h
+++ b/freetype/src/autofit/afcjk.h
@@ -4,7 +4,7 @@
*
* Auto-fitter hinting routines for CJK writing system (specification).
*
- * Copyright (C) 2006-2020 by
+ * Copyright (C) 2006-2021 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
diff --git a/freetype/src/autofit/afcover.h b/freetype/src/autofit/afcover.h
index 03085ad0..c7ae1e9a 100644
--- a/freetype/src/autofit/afcover.h
+++ b/freetype/src/autofit/afcover.h
@@ -4,7 +4,7 @@
*
* Auto-fitter coverages (specification only).
*
- * Copyright (C) 2013-2020 by
+ * Copyright (C) 2013-2021 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
diff --git a/freetype/src/autofit/afdummy.c b/freetype/src/autofit/afdummy.c
index 77d31df9..a36b56f7 100644
--- a/freetype/src/autofit/afdummy.c
+++ b/freetype/src/autofit/afdummy.c
@@ -5,7 +5,7 @@
* Auto-fitter dummy routines to be used if no hinting should be
* performed (body).
*
- * Copyright (C) 2003-2020 by
+ * Copyright (C) 2003-2021 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
diff --git a/freetype/src/autofit/afdummy.h b/freetype/src/autofit/afdummy.h
index efd799e8..b58849fe 100644
--- a/freetype/src/autofit/afdummy.h
+++ b/freetype/src/autofit/afdummy.h
@@ -5,7 +5,7 @@
* Auto-fitter dummy routines to be used if no hinting should be
* performed (specification).
*
- * Copyright (C) 2003-2020 by
+ * Copyright (C) 2003-2021 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
diff --git a/freetype/src/autofit/aferrors.h b/freetype/src/autofit/aferrors.h
index f9089994..09bed663 100644
--- a/freetype/src/autofit/aferrors.h
+++ b/freetype/src/autofit/aferrors.h
@@ -4,7 +4,7 @@
*
* Autofitter error codes (specification only).
*
- * Copyright (C) 2005-2020 by
+ * Copyright (C) 2005-2021 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
diff --git a/freetype/src/autofit/afglobal.c b/freetype/src/autofit/afglobal.c
index d5129423..b805b3b0 100644
--- a/freetype/src/autofit/afglobal.c
+++ b/freetype/src/autofit/afglobal.c
@@ -4,7 +4,7 @@
*
* Auto-fitter routines to compute global hinting values (body).
*
- * Copyright (C) 2003-2020 by
+ * Copyright (C) 2003-2021 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
@@ -19,6 +19,7 @@
#include "afglobal.h"
#include "afranges.h"
#include "afshaper.h"
+#include "afws-decl.h"
#include <freetype/internal/ftdebug.h>
@@ -32,11 +33,6 @@
#define FT_COMPONENT afglobal
- /* get writing system specific header files */
-#undef WRITING_SYSTEM
-#define WRITING_SYSTEM( ws, WS ) /* empty */
-#include "afwrtsys.h"
-
#include "aferrors.h"
@@ -74,7 +70,7 @@
af_writing_system_classes[] =
{
-#include "afwrtsys.h"
+#include "afws-iter.h"
NULL /* do not remove */
};
@@ -285,10 +281,10 @@
#ifdef FT_DEBUG_LEVEL_TRACE
- FT_TRACE4(( "\n"
- "style coverage\n"
- "==============\n"
- "\n" ));
+ FT_TRACE4(( "\n" ));
+ FT_TRACE4(( "style coverage\n" ));
+ FT_TRACE4(( "==============\n" ));
+ FT_TRACE4(( "\n" ));
for ( ss = 0; af_style_classes[ss]; ss++ )
{
@@ -478,6 +474,10 @@
{
style = (AF_Style)( globals->glyph_styles[gindex] &
AF_STYLE_UNASSIGNED );
+ /* IMPORTANT: Clear the error code, see
+ * https://gitlab.freedesktop.org/freetype/freetype/-/issues/1063
+ */
+ error = FT_Err_Ok;
goto Again;
}
diff --git a/freetype/src/autofit/afglobal.h b/freetype/src/autofit/afglobal.h
index fecf7af9..cd97e716 100644
--- a/freetype/src/autofit/afglobal.h
+++ b/freetype/src/autofit/afglobal.h
@@ -5,7 +5,7 @@
* Auto-fitter routines to compute global hinting values
* (specification).
*
- * Copyright (C) 2003-2020 by
+ * Copyright (C) 2003-2021 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
diff --git a/freetype/src/autofit/afhints.c b/freetype/src/autofit/afhints.c
index a8e00890..5506afda 100644
--- a/freetype/src/autofit/afhints.c
+++ b/freetype/src/autofit/afhints.c
@@ -4,7 +4,7 @@
*
* Auto-fitter hinting routines (body).
*
- * Copyright (C) 2003-2020 by
+ * Copyright (C) 2003-2021 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
@@ -32,6 +32,104 @@
#define FT_COMPONENT afhints
+ FT_LOCAL_DEF( void )
+ af_sort_pos( FT_UInt count,
+ FT_Pos* table )
+ {
+ FT_UInt i, j;
+ FT_Pos swap;
+
+
+ for ( i = 1; i < count; i++ )
+ {
+ for ( j = i; j > 0; j-- )
+ {
+ if ( table[j] >= table[j - 1] )
+ break;
+
+ swap = table[j];
+ table[j] = table[j - 1];
+ table[j - 1] = swap;
+ }
+ }
+ }
+
+
+ FT_LOCAL_DEF( void )
+ af_sort_and_quantize_widths( FT_UInt* count,
+ AF_Width table,
+ FT_Pos threshold )
+ {
+ FT_UInt i, j;
+ FT_UInt cur_idx;
+ FT_Pos cur_val;
+ FT_Pos sum;
+ AF_WidthRec swap;
+
+
+ if ( *count == 1 )
+ return;
+
+ /* sort */
+ for ( i = 1; i < *count; i++ )
+ {
+ for ( j = i; j > 0; j-- )
+ {
+ if ( table[j].org >= table[j - 1].org )
+ break;
+
+ swap = table[j];
+ table[j] = table[j - 1];
+ table[j - 1] = swap;
+ }
+ }
+
+ cur_idx = 0;
+ cur_val = table[cur_idx].org;
+
+ /* compute and use mean values for clusters not larger than */
+ /* `threshold'; this is very primitive and might not yield */
+ /* the best result, but normally, using reference character */
+ /* `o', `*count' is 2, so the code below is fully sufficient */
+ for ( i = 1; i < *count; i++ )
+ {
+ if ( table[i].org - cur_val > threshold ||
+ i == *count - 1 )
+ {
+ sum = 0;
+
+ /* fix loop for end of array */
+ if ( table[i].org - cur_val <= threshold &&
+ i == *count - 1 )
+ i++;
+
+ for ( j = cur_idx; j < i; j++ )
+ {
+ sum += table[j].org;
+ table[j].org = 0;
+ }
+ table[cur_idx].org = sum / (FT_Pos)j;
+
+ if ( i < *count - 1 )
+ {
+ cur_idx = i + 1;
+ cur_val = table[cur_idx].org;
+ }
+ }
+ }
+
+ cur_idx = 1;
+
+ /* compress array to remove zero values */
+ for ( i = 1; i < *count; i++ )
+ {
+ if ( table[i].org )
+ table[cur_idx++] = table[i];
+ }
+
+ *count = cur_idx;
+ }
+
/* Get new segment for given axis. */
FT_LOCAL_DEF( FT_Error )
@@ -764,7 +862,7 @@
{
FT_Error error = FT_Err_Ok;
AF_Point points;
- FT_UInt old_max, new_max;
+ FT_Int old_max, new_max;
FT_Fixed x_scale = hints->x_scale;
FT_Fixed y_scale = hints->y_scale;
FT_Pos x_delta = hints->x_delta;
@@ -781,8 +879,8 @@
hints->axis[1].num_edges = 0;
/* first of all, reallocate the contours array if necessary */
- new_max = (FT_UInt)outline->n_contours;
- old_max = (FT_UInt)hints->max_contours;
+ new_max = outline->n_contours;
+ old_max = hints->max_contours;
if ( new_max <= AF_CONTOURS_EMBEDDED )
{
@@ -797,12 +895,12 @@
if ( hints->contours == hints->embedded.contours )
hints->contours = NULL;
- new_max = ( new_max + 3 ) & ~3U; /* round up to a multiple of 4 */
+ new_max = ( new_max + 3 ) & ~3; /* round up to a multiple of 4 */
if ( FT_RENEW_ARRAY( hints->contours, old_max, new_max ) )
goto Exit;
- hints->max_contours = (FT_Int)new_max;
+ hints->max_contours = new_max;
}
/*
@@ -810,8 +908,8 @@
* note that we reserve two additional point positions, used to
* hint metrics appropriately
*/
- new_max = (FT_UInt)( outline->n_points + 2 );
- old_max = (FT_UInt)hints->max_points;
+ new_max = outline->n_points + 2;
+ old_max = hints->max_points;
if ( new_max <= AF_POINTS_EMBEDDED )
{
@@ -826,12 +924,12 @@
if ( hints->points == hints->embedded.points )
hints->points = NULL;
- new_max = ( new_max + 2 + 7 ) & ~7U; /* round up to a multiple of 8 */
+ new_max = ( new_max + 2 + 7 ) & ~7; /* round up to a multiple of 8 */
if ( FT_RENEW_ARRAY( hints->points, old_max, new_max ) )
goto Exit;
- hints->max_points = (FT_Int)new_max;
+ hints->max_points = new_max;
}
hints->num_points = outline->n_points;
@@ -855,9 +953,6 @@
hints->x_delta = x_delta;
hints->y_delta = y_delta;
- hints->xmin_delta = 0;
- hints->xmax_delta = 0;
-
points = hints->points;
if ( hints->num_points == 0 )
goto Exit;
@@ -1688,33 +1783,4 @@
}
-#ifdef AF_CONFIG_OPTION_USE_WARPER
-
- /* Apply (small) warp scale and warp delta for given dimension. */
-
- FT_LOCAL_DEF( void )
- af_glyph_hints_scale_dim( AF_GlyphHints hints,
- AF_Dimension dim,
- FT_Fixed scale,
- FT_Pos delta )
- {
- AF_Point points = hints->points;
- AF_Point points_limit = points + hints->num_points;
- AF_Point point;
-
-
- if ( dim == AF_DIMENSION_HORZ )
- {
- for ( point = points; point < points_limit; point++ )
- point->x = FT_MulFix( point->fx, scale ) + delta;
- }
- else
- {
- for ( point = points; point < points_limit; point++ )
- point->y = FT_MulFix( point->fy, scale ) + delta;
- }
- }
-
-#endif /* AF_CONFIG_OPTION_USE_WARPER */
-
/* END */
diff --git a/freetype/src/autofit/afhints.h b/freetype/src/autofit/afhints.h
index 6397f098..38d2847d 100644
--- a/freetype/src/autofit/afhints.h
+++ b/freetype/src/autofit/afhints.h
@@ -4,7 +4,7 @@
*
* Auto-fitter hinting routines (specification).
*
- * Copyright (C) 2003-2020 by
+ * Copyright (C) 2003-2021 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
@@ -362,9 +362,6 @@ FT_BEGIN_HEADER
/* implementations */
AF_StyleMetrics metrics;
- FT_Pos xmin_delta; /* used for warping */
- FT_Pos xmax_delta;
-
/* Two arrays to avoid allocation penalty. */
/* The `embedded' structure must be the last element! */
struct
@@ -408,10 +405,6 @@ FT_BEGIN_HEADER
#define AF_HINTS_DO_ADVANCE( h ) \
!AF_HINTS_TEST_SCALER( h, AF_SCALER_FLAG_NO_ADVANCE )
-#define AF_HINTS_DO_WARP( h ) \
- !AF_HINTS_TEST_SCALER( h, AF_SCALER_FLAG_NO_WARPER )
-
-
FT_LOCAL( AF_Direction )
af_direction_compute( FT_Pos dx,
@@ -459,14 +452,6 @@ FT_BEGIN_HEADER
af_glyph_hints_align_weak_points( AF_GlyphHints hints,
AF_Dimension dim );
-#ifdef AF_CONFIG_OPTION_USE_WARPER
- FT_LOCAL( void )
- af_glyph_hints_scale_dim( AF_GlyphHints hints,
- AF_Dimension dim,
- FT_Fixed scale,
- FT_Pos delta );
-#endif
-
FT_LOCAL( void )
af_glyph_hints_done( AF_GlyphHints hints );
diff --git a/freetype/src/autofit/afindic.c b/freetype/src/autofit/afindic.c
index bc2837a2..064c300e 100644
--- a/freetype/src/autofit/afindic.c
+++ b/freetype/src/autofit/afindic.c
@@ -4,7 +4,7 @@
*
* Auto-fitter hinting routines for Indic writing system (body).
*
- * Copyright (C) 2007-2020 by
+ * Copyright (C) 2007-2021 by
* Rahul Bhalerao <rahul.bhalerao@redhat.com>, <b.rahul.pm@gmail.com>.
*
* This file is part of the FreeType project, and may only be used,
@@ -27,11 +27,6 @@
#include "aferrors.h"
-#ifdef AF_CONFIG_OPTION_USE_WARPER
-#include "afwarp.h"
-#endif
-
-
static FT_Error
af_indic_metrics_init( AF_CJKMetrics metrics,
FT_Face face )
diff --git a/freetype/src/autofit/afindic.h b/freetype/src/autofit/afindic.h
index 088b88b1..3e467241 100644
--- a/freetype/src/autofit/afindic.h
+++ b/freetype/src/autofit/afindic.h
@@ -5,7 +5,7 @@
* Auto-fitter hinting routines for Indic writing system
* (specification).
*
- * Copyright (C) 2007-2020 by
+ * Copyright (C) 2007-2021 by
* Rahul Bhalerao <rahul.bhalerao@redhat.com>, <b.rahul.pm@gmail.com>.
*
* This file is part of the FreeType project, and may only be used,
diff --git a/freetype/src/autofit/aflatin.c b/freetype/src/autofit/aflatin.c
index 21ec02eb..5e81d771 100644
--- a/freetype/src/autofit/aflatin.c
+++ b/freetype/src/autofit/aflatin.c
@@ -4,7 +4,7 @@
*
* Auto-fitter hinting routines for latin writing system (body).
*
- * Copyright (C) 2003-2020 by
+ * Copyright (C) 2003-2021 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
@@ -24,11 +24,6 @@
#include "aferrors.h"
-#ifdef AF_CONFIG_OPTION_USE_WARPER
-#include "afwarp.h"
-#endif
-
-
/**************************************************************************
*
* The macro FT_COMPONENT is used in trace mode. It is an implicit
@@ -63,11 +58,11 @@
AF_GlyphHintsRec hints[1];
- FT_TRACE5(( "\n"
- "latin standard widths computation (style `%s')\n"
- "=====================================================\n"
- "\n",
+ FT_TRACE5(( "\n" ));
+ FT_TRACE5(( "latin standard widths computation (style `%s')\n",
af_style_names[metrics->root.style_class->style] ));
+ FT_TRACE5(( "=====================================================\n" ));
+ FT_TRACE5(( "\n" ));
af_glyph_hints_init( hints, face->memory );
@@ -350,9 +345,9 @@
/* we walk over the blue character strings as specified in the */
/* style's entry in the `af_blue_stringset' array */
- FT_TRACE5(( "latin blue zones computation\n"
- "============================\n"
- "\n" ));
+ FT_TRACE5(( "latin blue zones computation\n" ));
+ FT_TRACE5(( "============================\n" ));
+ FT_TRACE5(( "\n" ));
#ifdef FT_CONFIG_OPTION_USE_HARFBUZZ
shaper_buf = af_shaper_buf_create( face );
@@ -976,9 +971,8 @@
if ( AF_LATIN_IS_X_HEIGHT_BLUE( bs ) )
blue->flags |= AF_LATIN_BLUE_ADJUSTMENT;
- FT_TRACE5(( " -> reference = %ld\n"
- " overshoot = %ld\n",
- *blue_ref, *blue_shoot ));
+ FT_TRACE5(( " -> reference = %ld\n", *blue_ref ));
+ FT_TRACE5(( " overshoot = %ld\n", *blue_shoot ));
} /* end for loop */
@@ -1275,29 +1269,28 @@
if ( dist == 0 )
{
- FT_TRACE5((
- "af_latin_metrics_scale_dim:"
- " x height alignment (style `%s'):\n"
- " "
- " vertical scaling changed from %.5f to %.5f (by %ld%%)\n"
- "\n",
- af_style_names[metrics->root.style_class->style],
- scale / 65536.0,
- new_scale / 65536.0,
- ( fitted - scaled ) * 100 / scaled ));
+ FT_TRACE5(( "af_latin_metrics_scale_dim:"
+ " x height alignment (style `%s'):\n",
+ af_style_names[metrics->root.style_class->style] ));
+ FT_TRACE5(( " "
+ " vertical scaling changed"
+ " from %.5f to %.5f (by %ld%%)\n",
+ scale / 65536.0,
+ new_scale / 65536.0,
+ ( fitted - scaled ) * 100 / scaled ));
+ FT_TRACE5(( "\n" ));
scale = new_scale;
}
#ifdef FT_DEBUG_LEVEL_TRACE
else
{
- FT_TRACE5((
- "af_latin_metrics_scale_dim:"
- " x height alignment (style `%s'):\n"
- " "
- " excessive vertical scaling abandoned\n"
- "\n",
- af_style_names[metrics->root.style_class->style] ));
+ FT_TRACE5(( "af_latin_metrics_scale_dim:"
+ " x height alignment (style `%s'):\n",
+ af_style_names[metrics->root.style_class->style] ));
+ FT_TRACE5(( " "
+ " excessive vertical scaling abandoned\n" ));
+ FT_TRACE5(( "\n" ));
}
#endif
}
@@ -1346,9 +1339,11 @@
#ifdef FT_DEBUG_LEVEL_TRACE
if ( axis->extra_light )
- FT_TRACE5(( "`%s' style is extra light (at current resolution)\n"
- "\n",
+ {
+ FT_TRACE5(( "`%s' style is extra light (at current resolution)\n",
af_style_names[metrics->root.style_class->style] ));
+ FT_TRACE5(( "\n" ));
+ }
#endif
if ( dim == AF_DIMENSION_VERT )
@@ -1473,13 +1468,13 @@
AF_LatinBlue blue = &axis->blues[nn];
- FT_TRACE5(( " reference %d: %ld scaled to %.2f%s\n"
- " overshoot %d: %ld scaled to %.2f%s\n",
+ FT_TRACE5(( " reference %d: %ld scaled to %.2f%s\n",
nn,
blue->ref.org,
blue->ref.fit / 64.0,
( blue->flags & AF_LATIN_BLUE_ACTIVE ) ? ""
- : " (inactive)",
+ : " (inactive)" ));
+ FT_TRACE5(( " overshoot %d: %ld scaled to %.2f%s\n",
nn,
blue->shoot.org,
blue->shoot.fit / 64.0,
@@ -1847,6 +1842,31 @@
( FT_ABS( point->out_dir ) == major_dir ||
point == point->prev ) )
{
+ /*
+ * For efficiency, we restrict the number of segments to 1000,
+ * which is a heuristic value: it is very unlikely that a glyph
+ * with so many segments can be hinted in a sensible way.
+ * Reasons:
+ *
+ * - The glyph has really 1000 segments; this implies that it has
+ * at least 2000 outline points. Assuming 'normal' fonts that
+ * have superfluous points optimized away, viewing such a glyph
+ * only makes sense at large magnifications where hinting
+ * isn't applied anyway.
+ *
+ * - We have a broken glyph. Hinting doesn't make sense in this
+ * case either.
+ */
+ if ( axis->num_segments > 1000 )
+ {
+ FT_TRACE0(( "af_latin_hints_compute_segments:"
+ " more than 1000 segments in this glyph;\n" ));
+ FT_TRACE0(( " "
+ " hinting is suppressed\n" ));
+ axis->num_segments = 0;
+ return FT_Err_Ok;
+ }
+
/* this is the start of a new segment! */
segment_dir = (AF_Direction)point->out_dir;
@@ -2089,7 +2109,7 @@
{
if ( seg2->link != seg1 )
{
- seg1->link = 0;
+ seg1->link = NULL;
seg1->serif = seg2->link;
}
}
@@ -2611,11 +2631,6 @@
/* compute flags depending on render mode, etc. */
mode = metrics->root.scaler.render_mode;
-#if 0 /* #ifdef AF_CONFIG_OPTION_USE_WARPER */
- if ( mode == FT_RENDER_MODE_LCD || mode == FT_RENDER_MODE_LCD_V )
- metrics->root.scaler.render_mode = mode = FT_RENDER_MODE_NORMAL;
-#endif
-
scaler_flags = hints->scaler_flags;
other_flags = 0;
@@ -2653,12 +2668,6 @@
( face->style_flags & FT_STYLE_FLAG_ITALIC ) != 0 )
scaler_flags |= AF_SCALER_FLAG_NO_HORIZONTAL;
-#ifdef AF_CONFIG_OPTION_USE_WARPER
- /* get (global) warper flag */
- if ( !metrics->root.globals->module->warping )
- scaler_flags |= AF_SCALER_FLAG_NO_WARPER;
-#endif
-
hints->scaler_flags = scaler_flags;
hints->other_flags = other_flags;
@@ -3575,24 +3584,6 @@
/* grid-fit the outline */
for ( dim = 0; dim < AF_DIMENSION_MAX; dim++ )
{
-#ifdef AF_CONFIG_OPTION_USE_WARPER
- if ( dim == AF_DIMENSION_HORZ &&
- metrics->root.scaler.render_mode == FT_RENDER_MODE_NORMAL &&
- AF_HINTS_DO_WARP( hints ) )
- {
- AF_WarperRec warper;
- FT_Fixed scale;
- FT_Pos delta;
-
-
- af_warper_compute( &warper, hints, (AF_Dimension)dim,
- &scale, &delta );
- af_glyph_hints_scale_dim( hints, (AF_Dimension)dim,
- scale, delta );
- continue;
- }
-#endif /* AF_CONFIG_OPTION_USE_WARPER */
-
if ( ( dim == AF_DIMENSION_HORZ && AF_HINTS_DO_HORIZONTAL( hints ) ) ||
( dim == AF_DIMENSION_VERT && AF_HINTS_DO_VERTICAL( hints ) ) )
{
diff --git a/freetype/src/autofit/aflatin.h b/freetype/src/autofit/aflatin.h
index 62bc4c8d..d6b919ef 100644
--- a/freetype/src/autofit/aflatin.h
+++ b/freetype/src/autofit/aflatin.h
@@ -5,7 +5,7 @@
* Auto-fitter hinting routines for latin writing system
* (specification).
*
- * Copyright (C) 2003-2020 by
+ * Copyright (C) 2003-2021 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
diff --git a/freetype/src/autofit/afloader.c b/freetype/src/autofit/afloader.c
index c35d85c4..a06d49ad 100644
--- a/freetype/src/autofit/afloader.c
+++ b/freetype/src/autofit/afloader.c
@@ -4,7 +4,7 @@
*
* Auto-fitter glyph loading routines (body).
*
- * Copyright (C) 2003-2020 by
+ * Copyright (C) 2003-2021 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
@@ -105,7 +105,6 @@
globals->stem_darkening_for_ppem;
FT_Fixed em_size = af_intToFixed( face->units_per_EM );
- FT_Fixed em_ratio = FT_DivFix( af_intToFixed( 1000 ), em_size );
FT_Matrix scale_down_matrix = { 0x10000L, 0, 0, 0x10000L };
@@ -142,12 +141,11 @@
darken_by_font_units_x =
- af_intToFixed( af_loader_compute_darkening( loader,
- face,
- stdVW ) );
- darken_x = FT_DivFix( FT_MulFix( darken_by_font_units_x,
- size_metrics->x_scale ),
- em_ratio );
+ af_loader_compute_darkening( loader,
+ face,
+ stdVW ) ;
+ darken_x = FT_MulFix( darken_by_font_units_x,
+ size_metrics->x_scale );
globals->standard_vertical_width = stdVW;
globals->stem_darkening_for_ppem = size_metrics->x_ppem;
@@ -161,12 +159,11 @@
darken_by_font_units_y =
- af_intToFixed( af_loader_compute_darkening( loader,
- face,
- stdHW ) );
- darken_y = FT_DivFix( FT_MulFix( darken_by_font_units_y,
- size_metrics->y_scale ),
- em_ratio );
+ af_loader_compute_darkening( loader,
+ face,
+ stdHW ) ;
+ darken_y = FT_MulFix( darken_by_font_units_y,
+ size_metrics->y_scale );
globals->standard_horizontal_width = stdHW;
globals->stem_darkening_for_ppem = size_metrics->x_ppem;
@@ -300,12 +297,6 @@
if ( error )
goto Exit;
-#ifdef FT_OPTION_AUTOFIT2
- /* XXX: undocumented hook to activate the latin2 writing system. */
- if ( load_flags & ( 1UL << 20 ) )
- style_options = AF_STYLE_LTN2_DFLT;
-#endif
-
/*
* Glyphs (really code points) are assigned to scripts. Script
* analysis is done lazily: For each glyph that passes through here,
@@ -482,8 +473,8 @@
FT_Pos pp2x = loader->pp2.x;
- loader->pp1.x = FT_PIX_ROUND( pp1x + hints->xmin_delta );
- loader->pp2.x = FT_PIX_ROUND( pp2x + hints->xmax_delta );
+ loader->pp1.x = FT_PIX_ROUND( pp1x );
+ loader->pp2.x = FT_PIX_ROUND( pp2x );
slot->lsb_delta = loader->pp1.x - pp1x;
slot->rsb_delta = loader->pp2.x - pp2x;
@@ -594,7 +585,7 @@
*
* XXX: Currently a crude adaption of the original algorithm. Do better?
*/
- FT_LOCAL_DEF( FT_Int32 )
+ FT_LOCAL_DEF( FT_Fixed )
af_loader_compute_darkening( AF_Loader loader,
FT_Face face,
FT_Pos standard_width )
@@ -713,7 +704,7 @@
}
/* Convert darken_amount from per 1000 em to true character space. */
- return af_fixedToInt( FT_DivFix( darken_amount, em_ratio ) );
+ return FT_DivFix( darken_amount, em_ratio );
}
diff --git a/freetype/src/autofit/afloader.h b/freetype/src/autofit/afloader.h
index 97282371..b4936a87 100644
--- a/freetype/src/autofit/afloader.h
+++ b/freetype/src/autofit/afloader.h
@@ -4,7 +4,7 @@
*
* Auto-fitter glyph loading routines (specification).
*
- * Copyright (C) 2003-2020 by
+ * Copyright (C) 2003-2021 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
@@ -75,7 +75,7 @@ FT_BEGIN_HEADER
FT_UInt gindex,
FT_Int32 load_flags );
- FT_LOCAL_DEF( FT_Int32 )
+ FT_LOCAL_DEF( FT_Fixed )
af_loader_compute_darkening( AF_Loader loader,
FT_Face face,
FT_Pos standard_width );
diff --git a/freetype/src/autofit/afmodule.c b/freetype/src/autofit/afmodule.c
index e1649446..76f9b373 100644
--- a/freetype/src/autofit/afmodule.c
+++ b/freetype/src/autofit/afmodule.c
@@ -4,7 +4,7 @@
*
* Auto-fitter module implementation (body).
*
- * Copyright (C) 2003-2020 by
+ * Copyright (C) 2003-2021 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
@@ -48,7 +48,7 @@
int _af_debug_disable_blue_hints;
/* we use a global object instead of a local one for debugging */
- AF_GlyphHintsRec _af_debug_hints_rec[1];
+ static AF_GlyphHintsRec _af_debug_hints_rec[1];
void* _af_debug_hints = _af_debug_hints_rec;
#endif
@@ -148,7 +148,7 @@
if ( !af_style_classes[ss] )
{
- FT_TRACE0(( "af_property_set: Invalid value %d for property `%s'\n",
+ FT_TRACE2(( "af_property_set: Invalid value %d for property `%s'\n",
*fallback_script, property_name ));
return FT_THROW( Invalid_Argument );
}
@@ -190,35 +190,6 @@
return error;
}
-#ifdef AF_CONFIG_OPTION_USE_WARPER
- else if ( !ft_strcmp( property_name, "warping" ) )
- {
-#ifdef FT_CONFIG_OPTION_ENVIRONMENT_PROPERTIES
- if ( value_is_string )
- {
- const char* s = (const char*)value;
- long w = ft_strtol( s, NULL, 10 );
-
-
- if ( w == 0 )
- module->warping = 0;
- else if ( w == 1 )
- module->warping = 1;
- else
- return FT_THROW( Invalid_Argument );
- }
- else
-#endif
- {
- FT_Bool* warping = (FT_Bool*)value;
-
-
- module->warping = *warping;
- }
-
- return error;
- }
-#endif /* AF_CONFIG_OPTION_USE_WARPER */
else if ( !ft_strcmp( property_name, "darkening-parameters" ) )
{
FT_Int* darken_params;
@@ -307,7 +278,7 @@
return error;
}
- FT_TRACE0(( "af_property_set: missing property `%s'\n",
+ FT_TRACE2(( "af_property_set: missing property `%s'\n",
property_name ));
return FT_THROW( Missing_Property );
}
@@ -322,9 +293,6 @@
AF_Module module = (AF_Module)ft_module;
FT_UInt fallback_style = module->fallback_style;
FT_UInt default_script = module->default_script;
-#ifdef AF_CONFIG_OPTION_USE_WARPER
- FT_Bool warping = module->warping;
-#endif
if ( !ft_strcmp( property_name, "glyph-to-script-map" ) )
@@ -371,17 +339,6 @@
return error;
}
-#ifdef AF_CONFIG_OPTION_USE_WARPER
- else if ( !ft_strcmp( property_name, "warping" ) )
- {
- FT_Bool* val = (FT_Bool*)value;
-
-
- *val = warping;
-
- return error;
- }
-#endif /* AF_CONFIG_OPTION_USE_WARPER */
else if ( !ft_strcmp( property_name, "darkening-parameters" ) )
{
FT_Int* darken_params = module->darken_params;
@@ -410,7 +367,7 @@
return error;
}
- FT_TRACE0(( "af_property_get: missing property `%s'\n",
+ FT_TRACE2(( "af_property_get: missing property `%s'\n",
property_name ));
return FT_THROW( Missing_Property );
}
@@ -447,9 +404,6 @@
module->fallback_style = AF_STYLE_FALLBACK;
module->default_script = AF_SCRIPT_DEFAULT;
-#ifdef AF_CONFIG_OPTION_USE_WARPER
- module->warping = 0;
-#endif
module->no_stem_darkening = TRUE;
module->darken_params[0] = CFF_CONFIG_OPTION_DARKENING_PARAMETER_X1;
diff --git a/freetype/src/autofit/afmodule.h b/freetype/src/autofit/afmodule.h
index e8fe4a93..c5bd4682 100644
--- a/freetype/src/autofit/afmodule.h
+++ b/freetype/src/autofit/afmodule.h
@@ -4,7 +4,7 @@
*
* Auto-fitter module implementation (specification).
*
- * Copyright (C) 2003-2020 by
+ * Copyright (C) 2003-2021 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
@@ -37,9 +37,6 @@ FT_BEGIN_HEADER
FT_UInt fallback_style;
FT_UInt default_script;
-#ifdef AF_CONFIG_OPTION_USE_WARPER
- FT_Bool warping;
-#endif
FT_Bool no_stem_darkening;
FT_Int darken_params[8];
diff --git a/freetype/src/autofit/afranges.c b/freetype/src/autofit/afranges.c
index c8ebf5e7..e06f182d 100644
--- a/freetype/src/autofit/afranges.c
+++ b/freetype/src/autofit/afranges.c
@@ -4,7 +4,7 @@
*
* Auto-fitter Unicode script ranges (body).
*
- * Copyright (C) 2013-2020 by
+ * Copyright (C) 2013-2021 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
diff --git a/freetype/src/autofit/afranges.h b/freetype/src/autofit/afranges.h
index c2ffda4b..841d630a 100644
--- a/freetype/src/autofit/afranges.h
+++ b/freetype/src/autofit/afranges.h
@@ -4,7 +4,7 @@
*
* Auto-fitter Unicode script ranges (specification).
*
- * Copyright (C) 2013-2020 by
+ * Copyright (C) 2013-2021 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
diff --git a/freetype/src/autofit/afscript.h b/freetype/src/autofit/afscript.h
index 4cf9cc19..af78d573 100644
--- a/freetype/src/autofit/afscript.h
+++ b/freetype/src/autofit/afscript.h
@@ -4,7 +4,7 @@
*
* Auto-fitter scripts (specification only).
*
- * Copyright (C) 2013-2020 by
+ * Copyright (C) 2013-2021 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
diff --git a/freetype/src/autofit/afshaper.c b/freetype/src/autofit/afshaper.c
index bbf7b6b1..5d078937 100644
--- a/freetype/src/autofit/afshaper.c
+++ b/freetype/src/autofit/afshaper.c
@@ -4,7 +4,7 @@
*
* HarfBuzz interface for accessing OpenType features (body).
*
- * Copyright (C) 2013-2020 by
+ * Copyright (C) 2013-2021 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
@@ -132,13 +132,24 @@
/* Convert a HarfBuzz script tag into the corresponding OpenType */
/* tag or tags -- some Indic scripts like Devanagari have an old */
/* and a new set of features. */
- hb_ot_tags_from_script( script,
- &script_tags[0],
- &script_tags[1] );
+ {
+ unsigned int tags_count = 3;
+ hb_tag_t tags[3];
+
+
+ hb_ot_tags_from_script_and_language( script,
+ HB_LANGUAGE_INVALID,
+ &tags_count,
+ tags,
+ NULL,
+ NULL );
+ script_tags[0] = tags_count > 0 ? tags[0] : HB_TAG_NONE;
+ script_tags[1] = tags_count > 1 ? tags[1] : HB_TAG_NONE;
+ script_tags[2] = tags_count > 2 ? tags[2] : HB_TAG_NONE;
+ }
- /* `hb_ot_tags_from_script' usually returns HB_OT_TAG_DEFAULT_SCRIPT */
- /* as the second tag. We change that to HB_TAG_NONE except for the */
- /* default script. */
+ /* If the second tag is HB_OT_TAG_DEFAULT_SCRIPT, change that to */
+ /* HB_TAG_NONE except for the default script. */
if ( default_script )
{
if ( script_tags[0] == HB_TAG_NONE )
@@ -157,9 +168,6 @@
/* HarfBuzz maps them to `DFLT', which we don't want to handle here */
if ( script_tags[0] == HB_OT_TAG_DEFAULT_SCRIPT )
goto Exit;
-
- if ( script_tags[1] == HB_OT_TAG_DEFAULT_SCRIPT )
- script_tags[1] = HB_TAG_NONE;
}
gsub_lookups = hb_set_create();
@@ -173,9 +181,9 @@
if ( hb_set_is_empty( gsub_lookups ) )
goto Exit; /* nothing to do */
- FT_TRACE4(( "GSUB lookups (style `%s'):\n"
- " ",
+ FT_TRACE4(( "GSUB lookups (style `%s'):\n",
af_style_names[style_class->style] ));
+ FT_TRACE4(( " " ));
#ifdef FT_DEBUG_LEVEL_TRACE
count = 0;
@@ -202,12 +210,13 @@
#ifdef FT_DEBUG_LEVEL_TRACE
if ( !count )
FT_TRACE4(( " (none)" ));
- FT_TRACE4(( "\n\n" ));
+ FT_TRACE4(( "\n" ));
+ FT_TRACE4(( "\n" ));
#endif
- FT_TRACE4(( "GPOS lookups (style `%s'):\n"
- " ",
+ FT_TRACE4(( "GPOS lookups (style `%s'):\n",
af_style_names[style_class->style] ));
+ FT_TRACE4(( " " ));
gpos_lookups = hb_set_create();
hb_ot_layout_collect_lookups( face,
@@ -242,7 +251,8 @@
#ifdef FT_DEBUG_LEVEL_TRACE
if ( !count )
FT_TRACE4(( " (none)" ));
- FT_TRACE4(( "\n\n" ));
+ FT_TRACE4(( "\n" ));
+ FT_TRACE4(( "\n" ));
#endif
/*
@@ -353,8 +363,10 @@
{
#ifdef FT_DEBUG_LEVEL_TRACE
if ( !( count % 10 ) )
- FT_TRACE4(( "\n"
- " " ));
+ {
+ FT_TRACE4(( "\n" ));
+ FT_TRACE4(( " " ));
+ }
FT_TRACE4(( " %d", idx ));
count++;
@@ -376,9 +388,12 @@
#ifdef FT_DEBUG_LEVEL_TRACE
if ( !count )
- FT_TRACE4(( "\n"
- " (none)" ));
- FT_TRACE4(( "\n\n" ));
+ {
+ FT_TRACE4(( "\n" ));
+ FT_TRACE4(( " (none)" ));
+ }
+ FT_TRACE4(( "\n" ));
+ FT_TRACE4(( "\n" ));
#endif
Exit:
diff --git a/freetype/src/autofit/afshaper.h b/freetype/src/autofit/afshaper.h
index 138c27b3..cf3f8134 100644
--- a/freetype/src/autofit/afshaper.h
+++ b/freetype/src/autofit/afshaper.h
@@ -4,7 +4,7 @@
*
* HarfBuzz interface for accessing OpenType features (specification).
*
- * Copyright (C) 2013-2020 by
+ * Copyright (C) 2013-2021 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
diff --git a/freetype/src/autofit/afstyles.h b/freetype/src/autofit/afstyles.h
index 9113ec45..64c808c5 100644
--- a/freetype/src/autofit/afstyles.h
+++ b/freetype/src/autofit/afstyles.h
@@ -4,7 +4,7 @@
*
* Auto-fitter styles (specification only).
*
- * Copyright (C) 2013-2020 by
+ * Copyright (C) 2013-2021 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
@@ -299,15 +299,6 @@
AF_BLUE_STRINGSET_LATP,
AF_COVERAGE_DEFAULT )
-#ifdef FT_OPTION_AUTOFIT2
- STYLE( ltn2_dflt, LTN2_DFLT,
- "Latin 2 default style",
- AF_WRITING_SYSTEM_LATIN2,
- AF_SCRIPT_LATN,
- AF_BLUE_STRINGSET_LATN,
- AF_COVERAGE_DEFAULT )
-#endif
-
STYLE( lisu_dflt, LISU_DFLT,
"Lisu default style",
AF_WRITING_SYSTEM_LATIN,
diff --git a/freetype/src/autofit/aftypes.h b/freetype/src/autofit/aftypes.h
index 5f040c6b..1d792b94 100644
--- a/freetype/src/autofit/aftypes.h
+++ b/freetype/src/autofit/aftypes.h
@@ -4,7 +4,7 @@
*
* Auto-fitter types (specification only).
*
- * Copyright (C) 2003-2020 by
+ * Copyright (C) 2003-2021 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
@@ -92,63 +92,6 @@ extern void* _af_debug_hints;
FT_Pos threshold );
- /*************************************************************************/
- /*************************************************************************/
- /***** *****/
- /***** A N G L E T Y P E S *****/
- /***** *****/
- /*************************************************************************/
- /*************************************************************************/
-
- /*
- * The auto-fitter doesn't need a very high angular accuracy;
- * this allows us to speed up some computations considerably with a
- * light Cordic algorithm (see afangles.c).
- */
-
- typedef FT_Int AF_Angle;
-
-
-#define AF_ANGLE_PI 256
-#define AF_ANGLE_2PI ( AF_ANGLE_PI * 2 )
-#define AF_ANGLE_PI2 ( AF_ANGLE_PI / 2 )
-#define AF_ANGLE_PI4 ( AF_ANGLE_PI / 4 )
-
-
-#if 0
- /*
- * compute the angle of a given 2-D vector
- */
- FT_LOCAL( AF_Angle )
- af_angle_atan( FT_Pos dx,
- FT_Pos dy );
-
-
- /*
- * compute `angle2 - angle1'; the result is always within
- * the range [-AF_ANGLE_PI .. AF_ANGLE_PI - 1]
- */
- FT_LOCAL( AF_Angle )
- af_angle_diff( AF_Angle angle1,
- AF_Angle angle2 );
-#endif /* 0 */
-
-
-#define AF_ANGLE_DIFF( result, angle1, angle2 ) \
- FT_BEGIN_STMNT \
- AF_Angle _delta = (angle2) - (angle1); \
- \
- \
- while ( _delta <= -AF_ANGLE_PI ) \
- _delta += AF_ANGLE_2PI; \
- \
- while ( _delta > AF_ANGLE_PI ) \
- _delta -= AF_ANGLE_2PI; \
- \
- result = _delta; \
- FT_END_STMNT
-
-
/*
* opaque handle to glyph-specific hints -- see `afhints.h' for more
* details
@@ -172,7 +115,6 @@ extern void* _af_debug_hints;
#define AF_SCALER_FLAG_NO_HORIZONTAL 1U /* disable horizontal hinting */
#define AF_SCALER_FLAG_NO_VERTICAL 2U /* disable vertical hinting */
#define AF_SCALER_FLAG_NO_ADVANCE 4U /* disable advance hinting */
-#define AF_SCALER_FLAG_NO_WARPER 8U /* disable warper */
typedef struct AF_ScalerRec_
@@ -256,7 +198,6 @@ extern void* _af_debug_hints;
* outline according to the results of the glyph analyzer.
*/
-#define AFWRTSYS_H_ /* don't load header files */
#undef WRITING_SYSTEM
#define WRITING_SYSTEM( ws, WS ) \
AF_WRITING_SYSTEM_ ## WS,
@@ -265,14 +206,12 @@ extern void* _af_debug_hints;
typedef enum AF_WritingSystem_
{
-#include "afwrtsys.h"
+#include "afws-iter.h"
AF_WRITING_SYSTEM_MAX /* do not remove */
} AF_WritingSystem;
-#undef AFWRTSYS_H_
-
typedef struct AF_WritingSystemClassRec_
{
diff --git a/freetype/src/autofit/afws-decl.h b/freetype/src/autofit/afws-decl.h
new file mode 100644
index 00000000..c10dd57e
--- /dev/null
+++ b/freetype/src/autofit/afws-decl.h
@@ -0,0 +1,33 @@
+/****************************************************************************
+ *
+ * afws-decl.h
+ *
+ * Auto-fitter writing system declarations (specification only).
+ *
+ * Copyright (C) 2013-2021 by
+ * David Turner, Robert Wilhelm, and Werner Lemberg.
+ *
+ * This file is part of the FreeType project, and may only be used,
+ * modified, and distributed under the terms of the FreeType project
+ * license, LICENSE.TXT. By continuing to use, modify, or distribute
+ * this file you indicate that you have read the license and
+ * understand and accept it fully.
+ *
+ */
+
+
+#ifndef AFWS_DECL_H_
+#define AFWS_DECL_H_
+
+ /* Since preprocessor directives can't create other preprocessor */
+ /* directives, we have to include the header files manually. */
+
+#include "afdummy.h"
+#include "aflatin.h"
+#include "afcjk.h"
+#include "afindic.h"
+
+#endif /* AFWS_DECL_H_ */
+
+
+/* END */
diff --git a/freetype/src/autofit/afws-iter.h b/freetype/src/autofit/afws-iter.h
new file mode 100644
index 00000000..55714203
--- /dev/null
+++ b/freetype/src/autofit/afws-iter.h
@@ -0,0 +1,31 @@
+/****************************************************************************
+ *
+ * afws-iter.h
+ *
+ * Auto-fitter writing systems iterator (specification only).
+ *
+ * Copyright (C) 2013-2021 by
+ * David Turner, Robert Wilhelm, and Werner Lemberg.
+ *
+ * This file is part of the FreeType project, and may only be used,
+ * modified, and distributed under the terms of the FreeType project
+ * license, LICENSE.TXT. By continuing to use, modify, or distribute
+ * this file you indicate that you have read the license and
+ * understand and accept it fully.
+ *
+ */
+
+ /* This header may be included multiple times. */
+ /* Define `WRITING_SYSTEM' as needed. */
+
+
+ /* Add new writing systems here. The arguments are the writing system */
+ /* name in lowercase and uppercase, respectively. */
+
+ WRITING_SYSTEM( dummy, DUMMY )
+ WRITING_SYSTEM( latin, LATIN )
+ WRITING_SYSTEM( cjk, CJK )
+ WRITING_SYSTEM( indic, INDIC )
+
+
+/* END */
diff --git a/freetype/src/autofit/autofit.c b/freetype/src/autofit/autofit.c
index ef5e7f14..7e692b4d 100644
--- a/freetype/src/autofit/autofit.c
+++ b/freetype/src/autofit/autofit.c
@@ -4,7 +4,7 @@
*
* Auto-fitter module (body).
*
- * Copyright (C) 2003-2020 by
+ * Copyright (C) 2003-2021 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
@@ -18,7 +18,6 @@
#define FT_MAKE_OPTION_SINGLE_OBJECT
-#include "afangles.c"
#include "afblue.c"
#include "afcjk.c"
#include "afdummy.c"
@@ -26,12 +25,10 @@
#include "afhints.c"
#include "afindic.c"
#include "aflatin.c"
-#include "aflatin2.c"
#include "afloader.c"
#include "afmodule.c"
#include "afranges.c"
#include "afshaper.c"
-#include "afwarp.c"
/* END */
diff --git a/freetype/src/autofit/module.mk b/freetype/src/autofit/module.mk
index c32781f4..fab3a6bd 100644
--- a/freetype/src/autofit/module.mk
+++ b/freetype/src/autofit/module.mk
@@ -3,7 +3,7 @@
#
-# Copyright (C) 2003-2020 by
+# Copyright (C) 2003-2021 by
# David Turner, Robert Wilhelm, and Werner Lemberg.
#
# This file is part of the FreeType project, and may only be used, modified,
diff --git a/freetype/src/autofit/rules.mk b/freetype/src/autofit/rules.mk
index 553ddce6..499c0e08 100644
--- a/freetype/src/autofit/rules.mk
+++ b/freetype/src/autofit/rules.mk
@@ -3,7 +3,7 @@
#
-# Copyright (C) 2003-2020 by
+# Copyright (C) 2003-2021 by
# David Turner, Robert Wilhelm, and Werner Lemberg.
#
# This file is part of the FreeType project, and may only be used, modified,
@@ -28,8 +28,7 @@ AUTOF_COMPILE := $(CC) $(ANSIFLAGS) \
# AUTOF driver sources (i.e., C files)
#
-AUTOF_DRV_SRC := $(AUTOF_DIR)/afangles.c \
- $(AUTOF_DIR)/afblue.c \
+AUTOF_DRV_SRC := $(AUTOF_DIR)/afblue.c \
$(AUTOF_DIR)/afcjk.c \
$(AUTOF_DIR)/afdummy.c \
$(AUTOF_DIR)/afglobal.c \
@@ -40,17 +39,17 @@ AUTOF_DRV_SRC := $(AUTOF_DIR)/afangles.c \
$(AUTOF_DIR)/afmodule.c \
$(AUTOF_DIR)/afranges.c \
$(AUTOF_DIR)/afshaper.c \
- $(AUTOF_DIR)/afwarp.c
# AUTOF driver headers
#
-AUTOF_DRV_H := $(AUTOF_DRV_SRC:%c=%h) \
- $(AUTOF_DIR)/afcover.h \
- $(AUTOF_DIR)/aferrors.h \
- $(AUTOF_DIR)/afscript.h \
- $(AUTOF_DIR)/afstyles.h \
- $(AUTOF_DIR)/aftypes.h \
- $(AUTOF_DIR)/afwrtsys.h
+AUTOF_DRV_H := $(AUTOF_DRV_SRC:%c=%h) \
+ $(AUTOF_DIR)/afcover.h \
+ $(AUTOF_DIR)/aferrors.h \
+ $(AUTOF_DIR)/afscript.h \
+ $(AUTOF_DIR)/afstyles.h \
+ $(AUTOF_DIR)/aftypes.h \
+ $(AUTOF_DIR)/afws-decl.h \
+ $(AUTOF_DIR)/afws-iter.h
# AUTOF driver object(s)
diff --git a/freetype/src/base/ftadvanc.c b/freetype/src/base/ftadvanc.c
index c689e6a1..f20b9928 100644
--- a/freetype/src/base/ftadvanc.c
+++ b/freetype/src/base/ftadvanc.c
@@ -4,7 +4,7 @@
*
* Quick computation of advance widths (body).
*
- * Copyright (C) 2008-2020 by
+ * Copyright (C) 2008-2021 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
diff --git a/freetype/src/base/ftbase.c b/freetype/src/base/ftbase.c
index bfbaffd6..7366bc46 100644
--- a/freetype/src/base/ftbase.c
+++ b/freetype/src/base/ftbase.c
@@ -4,7 +4,7 @@
*
* Single object library component (body only).
*
- * Copyright (C) 1996-2020 by
+ * Copyright (C) 1996-2021 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
diff --git a/freetype/src/base/ftbase.h b/freetype/src/base/ftbase.h
index 25afa9bc..963ff93d 100644
--- a/freetype/src/base/ftbase.h
+++ b/freetype/src/base/ftbase.h
@@ -4,7 +4,7 @@
*
* Private functions used in the `base' module (specification).
*
- * Copyright (C) 2008-2020 by
+ * Copyright (C) 2008-2021 by
* David Turner, Robert Wilhelm, Werner Lemberg, and suzuki toshiya.
*
* This file is part of the FreeType project, and may only be used,
diff --git a/freetype/src/base/ftbbox.c b/freetype/src/base/ftbbox.c
index 30a4eba0..4db29cbf 100644
--- a/freetype/src/base/ftbbox.c
+++ b/freetype/src/base/ftbbox.c
@@ -4,7 +4,7 @@
*
* FreeType bbox computation (body).
*
- * Copyright (C) 1996-2020 by
+ * Copyright (C) 1996-2021 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used
diff --git a/freetype/src/base/ftbdf.c b/freetype/src/base/ftbdf.c
index fc374c66..f93ca8eb 100644
--- a/freetype/src/base/ftbdf.c
+++ b/freetype/src/base/ftbdf.c
@@ -4,7 +4,7 @@
*
* FreeType API for accessing BDF-specific strings (body).
*
- * Copyright (C) 2002-2020 by
+ * Copyright (C) 2002-2021 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
diff --git a/freetype/src/base/ftbitmap.c b/freetype/src/base/ftbitmap.c
index 584213dd..2146d3e3 100644
--- a/freetype/src/base/ftbitmap.c
+++ b/freetype/src/base/ftbitmap.c
@@ -4,7 +4,7 @@
*
* FreeType utility functions for bitmaps (body).
*
- * Copyright (C) 2004-2020 by
+ * Copyright (C) 2004-2021 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
@@ -112,10 +112,10 @@
target_size = (FT_ULong)target_pitch * target->rows;
if ( target_size != size )
- (void)FT_QREALLOC( target->buffer, target_size, size );
+ FT_MEM_QREALLOC( target->buffer, target_size, size );
}
else
- (void)FT_QALLOC( target->buffer, size );
+ FT_MEM_QALLOC( target->buffer, size );
if ( !error )
{
@@ -907,8 +907,8 @@
final_rows = ( final_ury - final_lly ) >> 6;
#ifdef FT_DEBUG_LEVEL_TRACE
- FT_TRACE5(( "FT_Bitmap_Blend:\n"
- " source bitmap: (%ld, %ld) -- (%ld, %ld); %d x %d\n",
+ FT_TRACE5(( "FT_Bitmap_Blend:\n" ));
+ FT_TRACE5(( " source bitmap: (%ld, %ld) -- (%ld, %ld); %d x %d\n",
source_llx / 64, source_lly / 64,
source_urx / 64, source_ury / 64,
source_->width, source_->rows ));
diff --git a/freetype/src/base/ftcalc.c b/freetype/src/base/ftcalc.c
index b5258c85..9df8e401 100644
--- a/freetype/src/base/ftcalc.c
+++ b/freetype/src/base/ftcalc.c
@@ -4,7 +4,7 @@
*
* Arithmetic computations (body).
*
- * Copyright (C) 1996-2020 by
+ * Copyright (C) 1996-2021 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
@@ -45,7 +45,7 @@
/* we need to emulate a 64-bit data type if a real one isn't available */
-#ifndef FT_LONG64
+#ifndef FT_INT64
typedef struct FT_Int64_
{
@@ -54,7 +54,7 @@
} FT_Int64;
-#endif /* !FT_LONG64 */
+#endif /* !FT_INT64 */
/**************************************************************************
@@ -79,7 +79,7 @@
FT_END_STMNT
/* The following three functions are available regardless of whether */
- /* FT_LONG64 is defined. */
+ /* FT_INT64 is defined. */
/* documentation is in freetype.h */
@@ -109,7 +109,7 @@
#ifndef FT_MSB
- FT_BASE_DEF ( FT_Int )
+ FT_BASE_DEF( FT_Int )
FT_MSB( FT_UInt32 z )
{
FT_Int shift = 0;
@@ -164,7 +164,7 @@
}
-#ifdef FT_LONG64
+#ifdef FT_INT64
/* documentation is in freetype.h */
@@ -272,7 +272,7 @@
}
-#else /* !FT_LONG64 */
+#else /* !FT_INT64 */
static void
@@ -651,7 +651,7 @@
}
-#endif /* !FT_LONG64 */
+#endif /* !FT_INT64 */
/* documentation is in ftglyph.h */
@@ -985,7 +985,7 @@
/* we silently ignore overflow errors since such large values */
/* lead to even more (harmless) rendering errors later on */
-#ifdef FT_LONG64
+#ifdef FT_INT64
FT_Int64 delta = SUB_INT64( MUL_INT64( in_x, out_y ),
MUL_INT64( in_y, out_x ) );
diff --git a/freetype/src/base/ftcid.c b/freetype/src/base/ftcid.c
index ce8a876a..216ee2b3 100644
--- a/freetype/src/base/ftcid.c
+++ b/freetype/src/base/ftcid.c
@@ -4,7 +4,7 @@
*
* FreeType API for accessing CID font information.
*
- * Copyright (C) 2007-2020 by
+ * Copyright (C) 2007-2021 by
* Derek Clegg and Michael Toftdal.
*
* This file is part of the FreeType project, and may only be used,
diff --git a/freetype/src/base/ftcolor.c b/freetype/src/base/ftcolor.c
index a50d6800..3ef3256b 100644
--- a/freetype/src/base/ftcolor.c
+++ b/freetype/src/base/ftcolor.c
@@ -4,7 +4,7 @@
*
* FreeType's glyph color management (body).
*
- * Copyright (C) 2018-2020 by
+ * Copyright (C) 2018-2021 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
diff --git a/freetype/src/base/ftdbgmem.c b/freetype/src/base/ftdbgmem.c
index eb0d6516..4f5c1e76 100644
--- a/freetype/src/base/ftdbgmem.c
+++ b/freetype/src/base/ftdbgmem.c
@@ -4,7 +4,7 @@
*
* Memory debugger (body).
*
- * Copyright (C) 2001-2020 by
+ * Copyright (C) 2001-2021 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
@@ -302,46 +302,6 @@
}
- static FT_MemTable
- ft_mem_table_new( FT_Memory memory )
- {
- FT_MemTable table;
-
-
- table = (FT_MemTable)memory->alloc( memory, sizeof ( *table ) );
- if ( !table )
- goto Exit;
-
- FT_ZERO( table );
-
- table->size = FT_MEM_SIZE_MIN;
- table->nodes = 0;
-
- table->memory = memory;
-
- table->memory_user = memory->user;
-
- table->alloc = memory->alloc;
- table->realloc = memory->realloc;
- table->free = memory->free;
-
- table->buckets = (FT_MemNode *)
- memory->alloc(
- memory,
- table->size * (FT_Long)sizeof ( FT_MemNode ) );
- if ( table->buckets )
- FT_ARRAY_ZERO( table->buckets, table->size );
- else
- {
- memory->free( memory, table );
- table = NULL;
- }
-
- Exit:
- return table;
- }
-
-
static void
ft_mem_table_destroy( FT_MemTable table )
{
@@ -350,8 +310,6 @@
FT_Long leaks = 0;
- FT_DumpMemory( table->memory );
-
/* remove all blocks from the table, revealing leaked ones */
for ( i = 0; i < table->size; i++ )
{
@@ -413,8 +371,6 @@
printf( "FreeType: maximum memory footprint = %ld\n",
table->alloc_max );
- ft_mem_table_free( table, table );
-
if ( leak_count > 0 )
ft_mem_debug_panic(
"FreeType: %ld bytes of memory leaked in %ld blocks\n",
@@ -821,17 +777,30 @@
}
- extern FT_Int
+ extern void
ft_mem_debug_init( FT_Memory memory )
{
FT_MemTable table;
- FT_Int result = 0;
- if ( ft_getenv( "FT2_DEBUG_MEMORY" ) )
+ if ( !ft_getenv( "FT2_DEBUG_MEMORY" ) )
+ return;
+
+ table = (FT_MemTable)memory->alloc( memory, sizeof ( *table ) );
+
+ if ( table )
{
- table = ft_mem_table_new( memory );
- if ( table )
+ FT_ZERO( table );
+
+ table->memory = memory;
+ table->memory_user = memory->user;
+ table->alloc = memory->alloc;
+ table->realloc = memory->realloc;
+ table->free = memory->free;
+
+ ft_mem_table_resize( table );
+
+ if ( table->size )
{
const char* p;
@@ -876,28 +845,31 @@
if ( keep_alive > 0 )
table->keep_alive = 1;
}
-
- result = 1;
}
+ else
+ memory->free( memory, table );
}
- return result;
}
extern void
ft_mem_debug_done( FT_Memory memory )
{
- FT_MemTable table = (FT_MemTable)memory->user;
+ if ( memory->free == ft_mem_debug_free )
+ {
+ FT_MemTable table = (FT_MemTable)memory->user;
- if ( table )
- {
+ FT_DumpMemory( memory );
+
+ ft_mem_table_destroy( table );
+
memory->free = table->free;
memory->realloc = table->realloc;
memory->alloc = table->alloc;
+ memory->user = table->memory_user;
- ft_mem_table_destroy( table );
- memory->user = NULL;
+ memory->free( memory, table );
}
}
@@ -922,11 +894,9 @@
extern void
FT_DumpMemory( FT_Memory memory )
{
- FT_MemTable table = (FT_MemTable)memory->user;
-
-
- if ( table )
+ if ( memory->free == ft_mem_debug_free )
{
+ FT_MemTable table = (FT_MemTable)memory->user;
FT_MemSource* bucket = table->sources;
FT_MemSource* limit = bucket + FT_MEM_SOURCE_BUCKETS;
FT_MemSource* sources;
diff --git a/freetype/src/base/ftdebug.c b/freetype/src/base/ftdebug.c
index 62cf680b..34857913 100644
--- a/freetype/src/base/ftdebug.c
+++ b/freetype/src/base/ftdebug.c
@@ -4,7 +4,7 @@
*
* Debugging and logging component (body).
*
- * Copyright (C) 1996-2020 by
+ * Copyright (C) 1996-2021 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
@@ -42,7 +42,53 @@
#include <freetype/freetype.h>
+#include <freetype/ftlogging.h>
#include <freetype/internal/ftdebug.h>
+#include <freetype/internal/ftobjs.h>
+
+
+#ifdef FT_DEBUG_LOGGING
+
+ /**************************************************************************
+ *
+ * Variables used to control logging.
+ *
+ * 1. `ft_default_trace_level` stores the value of trace levels, which are
+ * provided to FreeType using the `FT2_DEBUG` environment variable.
+ *
+ * 2. `ft_fileptr` stores the `FILE*` handle.
+ *
+ * 3. `ft_component` is a string that holds the name of `FT_COMPONENT`.
+ *
+ * 4. The flag `ft_component_flag` prints the name of `FT_COMPONENT` along
+ * with the actual log message if set to true.
+ *
+ * 5. The flag `ft_timestamp_flag` prints time along with the actual log
+ * message if set to ture.
+ *
+ * 6. `ft_have_newline_char` is used to differentiate between a log
+ * message with and without a trailing newline character.
+ *
+ * 7. `ft_custom_trace_level` stores the custom trace level value, which
+ * is provided by the user at run-time.
+ *
+ * We use `static` to avoid 'unused variable' warnings.
+ *
+ */
+ static const char* ft_default_trace_level = NULL;
+ static FILE* ft_fileptr = NULL;
+ static const char* ft_component = NULL;
+ static FT_Bool ft_component_flag = FALSE;
+ static FT_Bool ft_timestamp_flag = FALSE;
+ static FT_Bool ft_have_newline_char = TRUE;
+ static const char* ft_custom_trace_level = NULL;
+
+ /* declared in ftdebug.h */
+
+ dlg_handler ft_default_log_handler = NULL;
+ FT_Custom_Log_Handler custom_output_handler = NULL;
+
+#endif /* FT_DEBUG_LOGGING */
#ifdef FT_DEBUG_LEVEL_ERROR
@@ -106,7 +152,6 @@
#endif /* FT_DEBUG_LEVEL_ERROR */
-
#ifdef FT_DEBUG_LEVEL_TRACE
/* array of trace levels, initialized to 0; */
@@ -195,8 +240,17 @@
FT_BASE_DEF( void )
ft_debug_init( void )
{
- const char* ft2_debug = ft_getenv( "FT2_DEBUG" );
+ const char* ft2_debug = NULL;
+
+#ifdef FT_DEBUG_LOGGING
+ if ( ft_custom_trace_level != NULL )
+ ft2_debug = ft_custom_trace_level;
+ else
+ ft2_debug = ft_default_trace_level;
+#else
+ ft2_debug = ft_getenv( "FT2_DEBUG" );
+#endif
if ( ft2_debug )
{
@@ -210,6 +264,49 @@
if ( *p == ' ' || *p == '\t' || *p == ',' || *p == ';' || *p == '=' )
continue;
+#ifdef FT_DEBUG_LOGGING
+
+ /* check extra arguments for logging */
+ if ( *p == '-' )
+ {
+ const char* r = ++p;
+
+
+ if ( *r == 'v' )
+ {
+ const char* s = ++r;
+
+
+ ft_component_flag = TRUE;
+
+ if ( *s == 't' )
+ {
+ ft_timestamp_flag = TRUE;
+ p++;
+ }
+
+ p++;
+ }
+
+ else if ( *r == 't' )
+ {
+ const char* s = ++r;
+
+
+ ft_timestamp_flag = TRUE;
+
+ if ( *s == 'v' )
+ {
+ ft_component_flag = TRUE;
+ p++;
+ }
+
+ p++;
+ }
+ }
+
+#endif /* FT_DEBUG_LOGGING */
+
/* read toggle name, followed by ':' */
q = p;
while ( *p && *p != ':' )
@@ -311,8 +408,237 @@
/* nothing */
}
-
#endif /* !FT_DEBUG_LEVEL_TRACE */
+#ifdef FT_DEBUG_LOGGING
+
+ /**************************************************************************
+ *
+ * Initialize and de-initialize 'dlg' library.
+ *
+ */
+
+ FT_BASE_DEF( void )
+ ft_logging_init( void )
+ {
+ ft_default_log_handler = ft_log_handler;
+ ft_default_trace_level = ft_getenv( "FT2_DEBUG" );
+
+ if ( ft_getenv( "FT_LOGGING_FILE" ) )
+ ft_fileptr = ft_fopen( ft_getenv( "FT_LOGGING_FILE" ), "w" );
+ else
+ ft_fileptr = stderr;
+
+ ft_debug_init();
+
+ /* Set the default output handler for 'dlg'. */
+ dlg_set_handler( ft_default_log_handler, NULL );
+ }
+
+
+ FT_BASE_DEF( void )
+ ft_logging_deinit( void )
+ {
+ if ( ft_fileptr != stderr )
+ ft_fclose( ft_fileptr );
+ }
+
+
+ /**************************************************************************
+ *
+ * An output log handler for FreeType.
+ *
+ */
+ FT_BASE_DEF( void )
+ ft_log_handler( const struct dlg_origin* origin,
+ const char* string,
+ void* data )
+ {
+ char features_buf[128];
+ char* bufp = features_buf;
+
+ FT_UNUSED( data );
+
+
+ if ( ft_have_newline_char )
+ {
+ const char* features = NULL;
+ size_t features_length = 0;
+
+
+#define FEATURES_TIMESTAMP "[%h:%m] "
+#define FEATURES_COMPONENT "[%t] "
+#define FEATURES_TIMESTAMP_COMPONENT "[%h:%m %t] "
+
+ if ( ft_timestamp_flag && ft_component_flag )
+ {
+ features = FEATURES_TIMESTAMP_COMPONENT;
+ features_length = sizeof ( FEATURES_TIMESTAMP_COMPONENT );
+ }
+ else if ( ft_timestamp_flag )
+ {
+ features = FEATURES_TIMESTAMP;
+ features_length = sizeof ( FEATURES_TIMESTAMP );
+ }
+ else if ( ft_component_flag )
+ {
+ features = FEATURES_COMPONENT;
+ features_length = sizeof ( FEATURES_COMPONENT );
+ }
+
+ if ( ft_component_flag || ft_timestamp_flag )
+ {
+ ft_strncpy( features_buf, features, features_length );
+ bufp += features_length - 1;
+ }
+
+ if ( ft_component_flag )
+ {
+ size_t tag_length = ft_strlen( *origin->tags );
+ size_t i;
+
+
+ /* To vertically align tracing messages we compensate the */
+ /* different FT_COMPONENT string lengths by inserting an */
+ /* appropriate amount of space characters. */
+ for ( i = 0;
+ i < FT_MAX_TRACE_LEVEL_LENGTH - tag_length;
+ i++ )
+ *bufp++ = ' ';
+ }
+ }
+
+ /* Finally add the format string for the tracing message. */
+ *bufp++ = '%';
+ *bufp++ = 'c';
+ *bufp = '\0';
+
+ dlg_generic_outputf_stream( ft_fileptr,
+ (const char*)features_buf,
+ origin,
+ string,
+ dlg_default_output_styles,
+ true );
+
+ if ( ft_strrchr( string, '\n' ) )
+ ft_have_newline_char = TRUE;
+ else
+ ft_have_newline_char = FALSE;
+ }
+
+
+ /* documentation is in ftdebug.h */
+ FT_BASE_DEF( void )
+ ft_add_tag( const char* tag )
+ {
+ ft_component = tag;
+
+ dlg_add_tag( tag, NULL );
+ }
+
+
+ /* documentation is in ftdebug.h */
+ FT_BASE_DEF( void )
+ ft_remove_tag( const char* tag )
+ {
+ dlg_remove_tag( tag, NULL );
+ }
+
+
+ /* documentation is in ftlogging.h */
+
+ FT_EXPORT_DEF( void )
+ FT_Trace_Set_Level( const char* level )
+ {
+ ft_component_flag = FALSE;
+ ft_timestamp_flag = FALSE;
+ ft_custom_trace_level = level;
+
+ ft_debug_init();
+ }
+
+
+ /* documentation is in ftlogging.h */
+
+ FT_EXPORT_DEF( void )
+ FT_Trace_Set_Default_Level( void )
+ {
+ ft_component_flag = FALSE;
+ ft_timestamp_flag = FALSE;
+ ft_custom_trace_level = NULL;
+
+ ft_debug_init();
+ }
+
+
+ /**************************************************************************
+ *
+ * Functions to handle a custom log handler.
+ *
+ */
+
+ /* documentation is in ftlogging.h */
+
+ FT_EXPORT_DEF( void )
+ FT_Set_Log_Handler( FT_Custom_Log_Handler handler )
+ {
+ custom_output_handler = handler;
+ }
+
+
+ /* documentation is in ftlogging.h */
+
+ FT_EXPORT_DEF( void )
+ FT_Set_Default_Log_Handler( void )
+ {
+ custom_output_handler = NULL;
+ }
+
+
+ /* documentation is in ftdebug.h */
+ FT_BASE_DEF( void )
+ FT_Logging_Callback( const char* fmt,
+ ... )
+ {
+ va_list ap;
+
+
+ va_start( ap, fmt );
+ custom_output_handler( ft_component, fmt, ap );
+ va_end( ap );
+ }
+
+#else /* !FT_DEBUG_LOGGING */
+
+ FT_EXPORT_DEF( void )
+ FT_Trace_Set_Level( const char* level )
+ {
+ FT_UNUSED( level );
+ }
+
+
+ FT_EXPORT_DEF( void )
+ FT_Trace_Set_Default_Level( void )
+ {
+ /* nothing */
+ }
+
+
+ FT_EXPORT_DEF( void )
+ FT_Set_Log_Handler( FT_Custom_Log_Handler handler )
+ {
+ FT_UNUSED( handler );
+ }
+
+
+ FT_EXPORT_DEF( void )
+ FT_Set_Default_Log_Handler( void )
+ {
+ /* nothing */
+ }
+
+#endif /* !FT_DEBUG_LOGGING */
+
+
/* END */
diff --git a/freetype/src/base/fterrors.c b/freetype/src/base/fterrors.c
index eba9e765..14649268 100644
--- a/freetype/src/base/fterrors.c
+++ b/freetype/src/base/fterrors.c
@@ -4,7 +4,7 @@
*
* FreeType API for error code handling.
*
- * Copyright (C) 2018-2020 by
+ * Copyright (C) 2018-2021 by
* Armin Hasitzka, David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
diff --git a/freetype/src/base/ftfntfmt.c b/freetype/src/base/ftfntfmt.c
index a45317e7..4e1b8301 100644
--- a/freetype/src/base/ftfntfmt.c
+++ b/freetype/src/base/ftfntfmt.c
@@ -4,7 +4,7 @@
*
* FreeType utility file for font formats (body).
*
- * Copyright (C) 2002-2020 by
+ * Copyright (C) 2002-2021 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
diff --git a/freetype/src/base/ftfstype.c b/freetype/src/base/ftfstype.c
index bca548fc..57e904d6 100644
--- a/freetype/src/base/ftfstype.c
+++ b/freetype/src/base/ftfstype.c
@@ -4,7 +4,7 @@
*
* FreeType utility file to access FSType data (body).
*
- * Copyright (C) 2008-2020 by
+ * Copyright (C) 2008-2021 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
diff --git a/freetype/src/base/ftgasp.c b/freetype/src/base/ftgasp.c
index eed05a32..b744f0a4 100644
--- a/freetype/src/base/ftgasp.c
+++ b/freetype/src/base/ftgasp.c
@@ -4,7 +4,7 @@
*
* Access of TrueType's `gasp' table (body).
*
- * Copyright (C) 2007-2020 by
+ * Copyright (C) 2007-2021 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
diff --git a/freetype/src/base/ftgloadr.c b/freetype/src/base/ftgloadr.c
index 05fc7692..83ce0660 100644
--- a/freetype/src/base/ftgloadr.c
+++ b/freetype/src/base/ftgloadr.c
@@ -4,7 +4,7 @@
*
* The FreeType glyph loader (body).
*
- * Copyright (C) 2002-2020 by
+ * Copyright (C) 2002-2021 by
* David Turner, Robert Wilhelm, and Werner Lemberg
*
* This file is part of the FreeType project, and may only be used,
diff --git a/freetype/src/base/ftglyph.c b/freetype/src/base/ftglyph.c
index 825eba2c..e2c6f73f 100644
--- a/freetype/src/base/ftglyph.c
+++ b/freetype/src/base/ftglyph.c
@@ -4,7 +4,7 @@
*
* FreeType convenience functions to handle glyphs (body).
*
- * Copyright (C) 1996-2020 by
+ * Copyright (C) 1996-2021 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
@@ -453,9 +453,9 @@
/* documentation is in ftglyph.h */
FT_EXPORT_DEF( FT_Error )
- FT_Glyph_Transform( FT_Glyph glyph,
- FT_Matrix* matrix,
- FT_Vector* delta )
+ FT_Glyph_Transform( FT_Glyph glyph,
+ const FT_Matrix* matrix,
+ const FT_Vector* delta )
{
FT_Error error = FT_Err_Ok;
@@ -533,10 +533,10 @@
/* documentation is in ftglyph.h */
FT_EXPORT_DEF( FT_Error )
- FT_Glyph_To_Bitmap( FT_Glyph* the_glyph,
- FT_Render_Mode render_mode,
- FT_Vector* origin,
- FT_Bool destroy )
+ FT_Glyph_To_Bitmap( FT_Glyph* the_glyph,
+ FT_Render_Mode render_mode,
+ const FT_Vector* origin,
+ FT_Bool destroy )
{
FT_GlyphSlotRec dummy;
FT_GlyphSlot_InternalRec dummy_internal;
@@ -585,7 +585,7 @@
#if 1
/* if `origin' is set, translate the glyph image */
if ( origin )
- FT_Glyph_Transform( glyph, 0, origin );
+ FT_Glyph_Transform( glyph, NULL, origin );
#else
FT_UNUSED( origin );
#endif
@@ -603,7 +603,7 @@
v.x = -origin->x;
v.y = -origin->y;
- FT_Glyph_Transform( glyph, 0, &v );
+ FT_Glyph_Transform( glyph, NULL, &v );
}
#endif
diff --git a/freetype/src/base/ftgxval.c b/freetype/src/base/ftgxval.c
index f04df145..e9567f77 100644
--- a/freetype/src/base/ftgxval.c
+++ b/freetype/src/base/ftgxval.c
@@ -4,7 +4,7 @@
*
* FreeType API for validating TrueTypeGX/AAT tables (body).
*
- * Copyright (C) 2004-2020 by
+ * Copyright (C) 2004-2021 by
* Masatake YAMATO, Redhat K.K,
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
diff --git a/freetype/src/base/ftinit.c b/freetype/src/base/ftinit.c
index 0acc75e4..a2d2b933 100644
--- a/freetype/src/base/ftinit.c
+++ b/freetype/src/base/ftinit.c
@@ -4,7 +4,7 @@
*
* FreeType initialization layer (body).
*
- * Copyright (C) 1996-2020 by
+ * Copyright (C) 1996-2021 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
@@ -202,6 +202,10 @@
FT_Memory memory;
+#ifdef FT_DEBUG_LOGGING
+ ft_logging_init();
+#endif
+
/* check of `alibrary' delayed to `FT_New_Library' */
/* First of all, allocate a new system object -- this function is part */
@@ -248,6 +252,10 @@
/* discard memory manager */
FT_Done_Memory( memory );
+#ifdef FT_DEBUG_LOGGING
+ ft_logging_deinit();
+#endif
+
return FT_Err_Ok;
}
diff --git a/freetype/src/base/ftlcdfil.c b/freetype/src/base/ftlcdfil.c
index 1e84dbc8..488b913e 100644
--- a/freetype/src/base/ftlcdfil.c
+++ b/freetype/src/base/ftlcdfil.c
@@ -4,7 +4,7 @@
*
* FreeType API for color filtering of subpixel bitmap glyphs (body).
*
- * Copyright (C) 2006-2020 by
+ * Copyright (C) 2006-2021 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
@@ -32,7 +32,7 @@
/* add padding according to filter weights */
- FT_BASE_DEF (void)
+ FT_BASE_DEF( void )
ft_lcd_padding( FT_BBox* cbox,
FT_GlyphSlot slot,
FT_Render_Mode mode )
@@ -357,7 +357,7 @@
FT_EXPORT_DEF( FT_Error )
FT_Library_SetLcdGeometry( FT_Library library,
- FT_Vector* sub )
+ FT_Vector sub[3] )
{
FT_UNUSED( library );
FT_UNUSED( sub );
@@ -368,7 +368,7 @@
#else /* !FT_CONFIG_OPTION_SUBPIXEL_RENDERING */
/* add padding to accommodate outline shifts */
- FT_BASE_DEF (void)
+ FT_BASE_DEF( void )
ft_lcd_padding( FT_BBox* cbox,
FT_GlyphSlot slot,
FT_Render_Mode mode )
@@ -428,7 +428,7 @@
ft_memcpy( library->lcd_geometry, sub, 3 * sizeof( FT_Vector ) );
- return FT_THROW( Unimplemented_Feature );
+ return FT_Err_Ok;
}
#endif /* !FT_CONFIG_OPTION_SUBPIXEL_RENDERING */
diff --git a/freetype/src/base/ftmac.c b/freetype/src/base/ftmac.c
index 55a631fd..36a86097 100644
--- a/freetype/src/base/ftmac.c
+++ b/freetype/src/base/ftmac.c
@@ -8,7 +8,7 @@
* This file is for Mac OS X only; see builds/mac/ftoldmac.c for
* classic platforms built by MPW.
*
- * Copyright (C) 1996-2020 by
+ * Copyright (C) 1996-2021 by
* Just van Rossum, David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
@@ -560,7 +560,7 @@
if ( lwfn_file_name[0] )
{
err = lookup_lwfn_by_fond( pathname, lwfn_file_name,
- buff, sizeof ( buff ) );
+ buff, sizeof ( buff ) );
if ( !err )
have_lwfn = 1;
}
@@ -631,7 +631,7 @@
old_total_size = total_size;
}
- if ( FT_ALLOC( buffer, (FT_Long)total_size ) )
+ if ( FT_QALLOC( buffer, (FT_Long)total_size ) )
goto Error;
/* Second pass: append all POST data to the buffer, add PFB fields. */
@@ -752,7 +752,7 @@
if ( FT_MAC_RFORK_MAX_LEN < sfnt_size )
return FT_THROW( Array_Too_Large );
- if ( FT_ALLOC( sfnt_data, (FT_Long)sfnt_size ) )
+ if ( FT_QALLOC( sfnt_data, (FT_Long)sfnt_size ) )
{
ReleaseResource( sfnt );
return error;
diff --git a/freetype/src/base/ftmm.c b/freetype/src/base/ftmm.c
index 9a702b99..fc5d4ecc 100644
--- a/freetype/src/base/ftmm.c
+++ b/freetype/src/base/ftmm.c
@@ -4,7 +4,7 @@
*
* Multiple Master font support (body).
*
- * Copyright (C) 1996-2020 by
+ * Copyright (C) 1996-2021 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
diff --git a/freetype/src/base/ftobjs.c b/freetype/src/base/ftobjs.c
index c060bbbc..883f1a89 100644
--- a/freetype/src/base/ftobjs.c
+++ b/freetype/src/base/ftobjs.c
@@ -4,7 +4,7 @@
*
* The FreeType private base classes (body).
*
- * Copyright (C) 1996-2020 by
+ * Copyright (C) 1996-2021 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
@@ -78,6 +78,9 @@
#pragma warning( pop )
#endif
+ /* This array must stay in sync with the @FT_Pixel_Mode enumeration */
+ /* (in file `ftimage.h`). */
+
static const char* const pixel_modes[] =
{
"none",
@@ -87,7 +90,8 @@
"gray 4-bit bitmap",
"LCD 8-bit bitmap",
"vertical LCD 8-bit bitmap",
- "BGRA 32-bit color image bitmap"
+ "BGRA 32-bit color image bitmap",
+ "SDF 8-bit bitmap"
};
#endif /* FT_DEBUG_LEVEL_TRACE */
@@ -193,6 +197,7 @@
FT_Error error;
FT_Memory memory;
FT_Stream stream = NULL;
+ FT_UInt mode;
*astream = NULL;
@@ -204,49 +209,56 @@
return FT_THROW( Invalid_Argument );
memory = library->memory;
+ mode = args->flags &
+ ( FT_OPEN_MEMORY | FT_OPEN_STREAM | FT_OPEN_PATHNAME );
- if ( FT_NEW( stream ) )
- goto Exit;
-
- stream->memory = memory;
-
- if ( args->flags & FT_OPEN_MEMORY )
+ if ( mode == FT_OPEN_MEMORY )
{
/* create a memory-based stream */
+ if ( FT_NEW( stream ) )
+ goto Exit;
+
FT_Stream_OpenMemory( stream,
(const FT_Byte*)args->memory_base,
(FT_ULong)args->memory_size );
+ stream->memory = memory;
}
#ifndef FT_CONFIG_OPTION_DISABLE_STREAM_SUPPORT
- else if ( args->flags & FT_OPEN_PATHNAME )
+ else if ( mode == FT_OPEN_PATHNAME )
{
/* create a normal system stream */
+ if ( FT_NEW( stream ) )
+ goto Exit;
+
+ stream->memory = memory;
error = FT_Stream_Open( stream, args->pathname );
- stream->pathname.pointer = args->pathname;
+ if ( error )
+ FT_FREE( stream );
}
- else if ( ( args->flags & FT_OPEN_STREAM ) && args->stream )
+ else if ( ( mode == FT_OPEN_STREAM ) && args->stream )
{
/* use an existing, user-provided stream */
/* in this case, we do not need to allocate a new stream object */
/* since the caller is responsible for closing it himself */
- FT_FREE( stream );
- stream = args->stream;
+ stream = args->stream;
+ stream->memory = memory;
+ error = FT_Err_Ok;
}
#endif
else
+ {
error = FT_THROW( Invalid_Argument );
+ if ( ( args->flags & FT_OPEN_STREAM ) && args->stream )
+ FT_Stream_Close( args->stream );
+ }
- if ( error )
- FT_FREE( stream );
- else
- stream->memory = memory; /* just to be certain */
-
- *astream = stream;
+ if ( !error )
+ *astream = stream;
Exit:
return error;
@@ -523,7 +535,7 @@
else
slot->internal->flags |= FT_GLYPH_OWN_BITMAP;
- (void)FT_ALLOC( slot->bitmap.buffer, size );
+ FT_MEM_ALLOC( slot->bitmap.buffer, size );
return error;
}
@@ -535,6 +547,8 @@
ft_glyphslot_free_bitmap( slot );
/* clear all public fields in the glyph slot */
+ slot->glyph_index = 0;
+
FT_ZERO( &slot->metrics );
FT_ZERO( &slot->outline );
@@ -555,6 +569,8 @@
slot->linearHoriAdvance = 0;
slot->linearVertAdvance = 0;
+ slot->advance.x = 0;
+ slot->advance.y = 0;
slot->lsb_delta = 0;
slot->rsb_delta = 0;
}
@@ -734,6 +750,29 @@
}
+ /* documentation is in freetype.h */
+
+ FT_EXPORT_DEF( void )
+ FT_Get_Transform( FT_Face face,
+ FT_Matrix* matrix,
+ FT_Vector* delta )
+ {
+ FT_Face_Internal internal;
+
+
+ if ( !face )
+ return;
+
+ internal = face->internal;
+
+ if ( matrix )
+ *matrix = internal->transform_matrix;
+
+ if ( delta )
+ *delta = internal->transform_delta;
+ }
+
+
static FT_Renderer
ft_lookup_glyph_renderer( FT_GlyphSlot slot );
@@ -1056,19 +1095,24 @@
#ifdef FT_DEBUG_LEVEL_TRACE
FT_TRACE5(( "FT_Load_Glyph: index %d, flags 0x%x\n",
glyph_index, load_flags ));
+ FT_TRACE5(( " bitmap %dx%d %s, %s (mode %d)\n",
+ slot->bitmap.width,
+ slot->bitmap.rows,
+ slot->outline.points ?
+ slot->bitmap.buffer ? "rendered"
+ : "preset"
+ :
+ slot->internal->flags & FT_GLYPH_OWN_BITMAP ? "owned"
+ : "unowned",
+ pixel_modes[slot->bitmap.pixel_mode],
+ slot->bitmap.pixel_mode ));
+ FT_TRACE5(( "\n" ));
FT_TRACE5(( " x advance: %f\n", slot->advance.x / 64.0 ));
FT_TRACE5(( " y advance: %f\n", slot->advance.y / 64.0 ));
FT_TRACE5(( " linear x advance: %f\n",
slot->linearHoriAdvance / 65536.0 ));
FT_TRACE5(( " linear y advance: %f\n",
slot->linearVertAdvance / 65536.0 ));
- FT_TRACE5(( "\n" ));
- FT_TRACE5(( " bitmap %dx%d, %s (mode %d)\n",
- slot->bitmap.width,
- slot->bitmap.rows,
- pixel_modes[slot->bitmap.pixel_mode],
- slot->bitmap.pixel_mode ));
- FT_TRACE5(( "\n" ));
{
FT_Glyph_Metrics* metrics = &slot->metrics;
@@ -1782,7 +1826,7 @@
if ( error )
goto Exit;
- if ( FT_ALLOC( sfnt_ps, (FT_Long)length ) )
+ if ( FT_QALLOC( sfnt_ps, (FT_Long)length ) )
goto Exit;
error = FT_Stream_Read( stream, (FT_Byte *)sfnt_ps, length );
@@ -1892,7 +1936,7 @@
goto Exit;
}
- if ( FT_ALLOC( pfb_data, (FT_Long)pfb_len + 2 ) )
+ if ( FT_QALLOC( pfb_data, (FT_Long)pfb_len + 2 ) )
goto Exit;
pfb_data[0] = 0x80;
@@ -1956,7 +2000,7 @@
{
FT_TRACE3(( " Write POST fragment #%d header (4-byte) to buffer"
" %p + 0x%08lx\n",
- i, pfb_data, pfb_lenpos ));
+ i, (void*)pfb_data, pfb_lenpos ));
if ( pfb_lenpos + 3 > pfb_len + 2 )
goto Exit2;
@@ -1971,7 +2015,7 @@
FT_TRACE3(( " Write POST fragment #%d header (6-byte) to buffer"
" %p + 0x%08lx\n",
- i, pfb_data, pfb_pos ));
+ i, (void*)pfb_data, pfb_pos ));
if ( pfb_pos + 6 > pfb_len + 2 )
goto Exit2;
@@ -1994,7 +2038,7 @@
FT_TRACE3(( " Load POST fragment #%d (%ld byte) to buffer"
" %p + 0x%08lx\n",
- i, rlen, pfb_data, pfb_pos ));
+ i, rlen, (void*)pfb_data, pfb_pos ));
error = FT_Stream_Read( stream, (FT_Byte *)pfb_data + pfb_pos, rlen );
if ( error )
@@ -2092,7 +2136,7 @@
if ( error )
goto Exit;
- if ( FT_ALLOC( sfnt_data, rlen ) )
+ if ( FT_QALLOC( sfnt_data, rlen ) )
return error;
error = FT_Stream_Read( stream, (FT_Byte *)sfnt_data, (FT_ULong)rlen );
if ( error ) {
@@ -2566,7 +2610,7 @@
FT_TRACE4(( "FT_Open_Face: New face object, adding to list\n" ));
/* add the face object to its driver's list */
- if ( FT_NEW( node ) )
+ if ( FT_QNEW( node ) )
goto Fail;
node->data = face;
@@ -2681,10 +2725,10 @@
#ifdef FT_DEBUG_LEVEL_TRACE
if ( !error && face_index < 0 )
{
- FT_TRACE3(( "FT_Open_Face: The font has %ld face%s\n"
- " and %ld named instance%s for face %ld\n",
+ FT_TRACE3(( "FT_Open_Face: The font has %ld face%s\n",
face->num_faces,
- face->num_faces == 1 ? "" : "s",
+ face->num_faces == 1 ? "" : "s" ));
+ FT_TRACE3(( " and %ld named instance%s for face %ld\n",
face->style_flags >> 16,
( face->style_flags >> 16 ) == 1 ? "" : "s",
-face_index - 1 ));
@@ -2851,7 +2895,7 @@
memory = face->memory;
/* Allocate new size object and perform basic initialisation */
- if ( FT_ALLOC( size, clazz->size_object_size ) || FT_NEW( node ) )
+ if ( FT_ALLOC( size, clazz->size_object_size ) || FT_QNEW( node ) )
goto Exit;
size->face = face;
@@ -3088,10 +3132,12 @@
}
- FT_BASE_DEF( void )
+ FT_BASE_DEF( FT_Error )
FT_Request_Metrics( FT_Face face,
FT_Size_Request req )
{
+ FT_Error error = FT_Err_Ok;
+
FT_Size_Metrics* metrics;
@@ -3182,8 +3228,18 @@
scaled_h = FT_MulFix( face->units_per_EM, metrics->y_scale );
}
- metrics->x_ppem = (FT_UShort)( ( scaled_w + 32 ) >> 6 );
- metrics->y_ppem = (FT_UShort)( ( scaled_h + 32 ) >> 6 );
+ scaled_w = ( scaled_w + 32 ) >> 6;
+ scaled_h = ( scaled_h + 32 ) >> 6;
+ if ( scaled_w > (FT_Long)FT_USHORT_MAX ||
+ scaled_h > (FT_Long)FT_USHORT_MAX )
+ {
+ FT_ERROR(( "FT_Request_Metrics: Resulting ppem size too large\n" ));
+ error = FT_ERR( Invalid_Pixel_Size );
+ goto Exit;
+ }
+
+ metrics->x_ppem = (FT_UShort)scaled_w;
+ metrics->y_ppem = (FT_UShort)scaled_h;
ft_recompute_scaled_metrics( face, metrics );
}
@@ -3193,6 +3249,9 @@
metrics->x_scale = 1L << 16;
metrics->y_scale = 1L << 16;
}
+
+ Exit:
+ return error;
}
@@ -3256,7 +3315,7 @@
FT_Request_Size( FT_Face face,
FT_Size_Request req )
{
- FT_Error error = FT_Err_Ok;
+ FT_Error error;
FT_Driver_Class clazz;
FT_ULong strike_index;
@@ -3292,13 +3351,15 @@
*/
error = FT_Match_Size( face, req, 0, &strike_index );
if ( error )
- return error;
+ goto Exit;
return FT_Select_Size( face, (FT_Int)strike_index );
}
else
{
- FT_Request_Metrics( face, req );
+ error = FT_Request_Metrics( face, req );
+ if ( error )
+ goto Exit;
FT_TRACE5(( "FT_Request_Size:\n" ));
}
@@ -3321,6 +3382,7 @@
}
#endif
+ Exit:
return error;
}
@@ -3645,9 +3707,9 @@
FT_CharMap last_charmap = face->charmaps[face->num_charmaps - 1];
- if ( FT_RENEW_ARRAY( face->charmaps,
- face->num_charmaps,
- face->num_charmaps - 1 ) )
+ if ( FT_QRENEW_ARRAY( face->charmaps,
+ face->num_charmaps,
+ face->num_charmaps - 1 ) )
return;
/* remove it from our list of charmaps */
@@ -3679,7 +3741,7 @@
FT_CharMap charmap,
FT_CMap *acmap )
{
- FT_Error error = FT_Err_Ok;
+ FT_Error error;
FT_Face face;
FT_Memory memory;
FT_CMap cmap = NULL;
@@ -3704,9 +3766,9 @@
}
/* add it to our list of charmaps */
- if ( FT_RENEW_ARRAY( face->charmaps,
- face->num_charmaps,
- face->num_charmaps + 1 ) )
+ if ( FT_QRENEW_ARRAY( face->charmaps,
+ face->num_charmaps,
+ face->num_charmaps + 1 ) )
goto Fail;
face->charmaps[face->num_charmaps++] = (FT_CharMap)cmap;
@@ -4400,7 +4462,7 @@
FT_ListNode node = NULL;
- if ( FT_NEW( node ) )
+ if ( FT_QNEW( node ) )
goto Exit;
{
@@ -4412,8 +4474,7 @@
render->glyph_format = clazz->glyph_format;
/* allocate raster object if needed */
- if ( clazz->glyph_format == FT_GLYPH_FORMAT_OUTLINE &&
- clazz->raster_class->raster_new )
+ if ( clazz->raster_class->raster_new )
{
error = clazz->raster_class->raster_new( memory, &render->raster );
if ( error )
@@ -4460,8 +4521,7 @@
/* release raster object, if any */
- if ( render->clazz->glyph_format == FT_GLYPH_FORMAT_OUTLINE &&
- render->raster )
+ if ( render->raster )
render->clazz->raster_class->raster_done( render->raster );
/* remove from list */
@@ -4556,9 +4616,6 @@
switch ( slot->format )
{
- case FT_GLYPH_FORMAT_BITMAP: /* already a bitmap, don't do anything */
- break;
-
default:
if ( slot->internal->load_flags & FT_LOAD_COLOR )
{
@@ -4646,7 +4703,7 @@
else
renderer = FT_Lookup_Renderer( library, slot->format, &node );
- error = FT_ERR( Unimplemented_Feature );
+ error = FT_ERR( Cannot_Render_Glyph );
while ( renderer )
{
error = renderer->render( renderer, slot, render_mode, NULL );
@@ -4662,6 +4719,11 @@
/* format. */
renderer = FT_Lookup_Renderer( library, slot->format, &node );
}
+
+ /* it is not an error if we cannot render a bitmap glyph */
+ if ( FT_ERR_EQ( error, Cannot_Render_Glyph ) &&
+ slot->format == FT_GLYPH_FORMAT_BITMAP )
+ error = FT_Err_Ok;
}
}
@@ -4734,11 +4796,11 @@
/* we use FT_TRACE7 in this block */
if ( !error &&
- ft_trace_levels[trace_checksum] >= 7 )
+ ft_trace_levels[trace_checksum] >= 7 &&
+ slot->bitmap.buffer )
{
if ( slot->bitmap.rows < 128U &&
- slot->bitmap.width < 128U &&
- slot->bitmap.buffer )
+ slot->bitmap.width < 128U )
{
int rows = (int)slot->bitmap.rows;
int width = (int)slot->bitmap.width;
@@ -5149,16 +5211,16 @@
if ( cur == limit )
{
- FT_ERROR(( "%s: can't find module `%s'\n",
- func_name, module_name ));
+ FT_TRACE2(( "%s: can't find module `%s'\n",
+ func_name, module_name ));
return FT_THROW( Missing_Module );
}
/* check whether we have a service interface */
if ( !cur[0]->clazz->get_interface )
{
- FT_ERROR(( "%s: module `%s' doesn't support properties\n",
- func_name, module_name ));
+ FT_TRACE2(( "%s: module `%s' doesn't support properties\n",
+ func_name, module_name ));
return FT_THROW( Unimplemented_Feature );
}
@@ -5167,8 +5229,8 @@
FT_SERVICE_ID_PROPERTIES );
if ( !interface )
{
- FT_ERROR(( "%s: module `%s' doesn't support properties\n",
- func_name, module_name ));
+ FT_TRACE2(( "%s: module `%s' doesn't support properties\n",
+ func_name, module_name ));
return FT_THROW( Unimplemented_Feature );
}
@@ -5181,8 +5243,8 @@
if ( missing_func )
{
- FT_ERROR(( "%s: property service of module `%s' is broken\n",
- func_name, module_name ));
+ FT_TRACE2(( "%s: property service of module `%s' is broken\n",
+ func_name, module_name ));
return FT_THROW( Unimplemented_Feature );
}
@@ -5292,10 +5354,12 @@
if ( !memory || !alibrary )
return FT_THROW( Invalid_Argument );
+#ifndef FT_DEBUG_LOGGING
#ifdef FT_DEBUG_LEVEL_ERROR
/* init debugging support */
ft_debug_init();
-#endif
+#endif /* FT_DEBUG_LEVEL_ERROR */
+#endif /* !FT_DEBUG_LOGGING */
/* first of all, allocate the library object */
if ( FT_NEW( library ) )
@@ -5567,4 +5631,145 @@
}
+ /* documentation is in freetype.h */
+
+ FT_EXPORT_DEF( FT_Bool )
+ FT_Get_Color_Glyph_Paint( FT_Face face,
+ FT_UInt base_glyph,
+ FT_Color_Root_Transform root_transform,
+ FT_OpaquePaint* paint )
+ {
+ TT_Face ttface;
+ SFNT_Service sfnt;
+
+
+ if ( !face || !paint )
+ return 0;
+
+ if ( !FT_IS_SFNT( face ) )
+ return 0;
+
+ ttface = (TT_Face)face;
+ sfnt = (SFNT_Service)ttface->sfnt;
+
+ if ( sfnt->get_colr_layer )
+ return sfnt->get_colr_glyph_paint( ttface,
+ base_glyph,
+ root_transform,
+ paint );
+ else
+ return 0;
+ }
+
+
+ /* documentation is in ftcolor.h */
+
+ FT_EXPORT_DEF( FT_Bool )
+ FT_Get_Color_Glyph_ClipBox( FT_Face face,
+ FT_UInt base_glyph,
+ FT_ClipBox* clip_box )
+ {
+ TT_Face ttface;
+ SFNT_Service sfnt;
+
+
+ if ( !face || !clip_box )
+ return 0;
+
+ if ( !FT_IS_SFNT( face ) )
+ return 0;
+
+ ttface = (TT_Face)face;
+ sfnt = (SFNT_Service)ttface->sfnt;
+
+ if ( sfnt->get_color_glyph_clipbox )
+ return sfnt->get_color_glyph_clipbox( ttface,
+ base_glyph,
+ clip_box );
+ else
+ return 0;
+ }
+
+
+ /* documentation is in freetype.h */
+
+ FT_EXPORT_DEF( FT_Bool )
+ FT_Get_Paint_Layers( FT_Face face,
+ FT_LayerIterator* layer_iterator,
+ FT_OpaquePaint* paint )
+ {
+ TT_Face ttface;
+ SFNT_Service sfnt;
+
+
+ if ( !face || !paint || !layer_iterator )
+ return 0;
+
+ if ( !FT_IS_SFNT( face ) )
+ return 0;
+
+ ttface = (TT_Face)face;
+ sfnt = (SFNT_Service)ttface->sfnt;
+
+ if ( sfnt->get_paint_layers )
+ return sfnt->get_paint_layers( ttface, layer_iterator, paint );
+ else
+ return 0;
+ }
+
+
+ /* documentation is in freetype.h */
+
+ FT_EXPORT_DEF( FT_Bool )
+ FT_Get_Paint( FT_Face face,
+ FT_OpaquePaint opaque_paint,
+ FT_COLR_Paint* paint )
+ {
+ TT_Face ttface;
+ SFNT_Service sfnt;
+
+
+ if ( !face || !paint || !paint )
+ return 0;
+
+ if ( !FT_IS_SFNT( face ) )
+ return 0;
+
+ ttface = (TT_Face)face;
+ sfnt = (SFNT_Service)ttface->sfnt;
+
+ if ( sfnt->get_paint )
+ return sfnt->get_paint( ttface, opaque_paint, paint );
+ else
+ return 0;
+ }
+
+
+ /* documentation is in freetype.h */
+
+ FT_EXPORT_DEF( FT_Bool )
+ FT_Get_Colorline_Stops ( FT_Face face,
+ FT_ColorStop * color_stop,
+ FT_ColorStopIterator *iterator )
+ {
+ TT_Face ttface;
+ SFNT_Service sfnt;
+
+
+ if ( !face || !color_stop || !iterator )
+ return 0;
+
+ if ( !FT_IS_SFNT( face ) )
+ return 0;
+
+ ttface = (TT_Face)face;
+ sfnt = (SFNT_Service)ttface->sfnt;
+
+ if ( sfnt->get_colorline_stops )
+ return sfnt->get_colorline_stops ( ttface, color_stop, iterator );
+ else
+ return 0;
+ }
+
+
/* END */
diff --git a/freetype/src/base/ftotval.c b/freetype/src/base/ftotval.c
index 90a5dd61..0f748d00 100644
--- a/freetype/src/base/ftotval.c
+++ b/freetype/src/base/ftotval.c
@@ -4,7 +4,7 @@
*
* FreeType API for validating OpenType tables (body).
*
- * Copyright (C) 2004-2020 by
+ * Copyright (C) 2004-2021 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
diff --git a/freetype/src/base/ftoutln.c b/freetype/src/base/ftoutln.c
index 311f098e..98c6ca16 100644
--- a/freetype/src/base/ftoutln.c
+++ b/freetype/src/base/ftoutln.c
@@ -4,7 +4,7 @@
*
* FreeType outline management (body).
*
- * Copyright (C) 1996-2020 by
+ * Copyright (C) 1996-2021 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
diff --git a/freetype/src/base/ftpatent.c b/freetype/src/base/ftpatent.c
index a02c636a..cd192d33 100644
--- a/freetype/src/base/ftpatent.c
+++ b/freetype/src/base/ftpatent.c
@@ -5,7 +5,7 @@
* FreeType API for checking patented TrueType bytecode instructions
* (body). Obsolete, retained for backward compatibility.
*
- * Copyright (C) 2007-2020 by
+ * Copyright (C) 2007-2021 by
* David Turner.
*
* This file is part of the FreeType project, and may only be used,
diff --git a/freetype/src/base/ftpfr.c b/freetype/src/base/ftpfr.c
index c656fcd9..5afd5a18 100644
--- a/freetype/src/base/ftpfr.c
+++ b/freetype/src/base/ftpfr.c
@@ -4,7 +4,7 @@
*
* FreeType API for accessing PFR-specific data (body).
*
- * Copyright (C) 2002-2020 by
+ * Copyright (C) 2002-2021 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
diff --git a/freetype/src/base/ftpsprop.c b/freetype/src/base/ftpsprop.c
index 8c29f50f..3655ae97 100644
--- a/freetype/src/base/ftpsprop.c
+++ b/freetype/src/base/ftpsprop.c
@@ -5,7 +5,7 @@
* Get and set properties of PostScript drivers (body).
* See `ftdriver.h' for available properties.
*
- * Copyright (C) 2017-2020 by
+ * Copyright (C) 2017-2021 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
@@ -220,7 +220,7 @@
return error;
}
- FT_TRACE0(( "ps_property_set: missing property `%s'\n",
+ FT_TRACE2(( "ps_property_set: missing property `%s'\n",
property_name ));
return FT_THROW( Missing_Property );
}
@@ -275,7 +275,7 @@
return error;
}
- FT_TRACE0(( "ps_property_get: missing property `%s'\n",
+ FT_TRACE2(( "ps_property_get: missing property `%s'\n",
property_name ));
return FT_THROW( Missing_Property );
}
diff --git a/freetype/src/base/ftrfork.c b/freetype/src/base/ftrfork.c
index f989be47..cb7e94dd 100644
--- a/freetype/src/base/ftrfork.c
+++ b/freetype/src/base/ftrfork.c
@@ -4,7 +4,7 @@
*
* Embedded resource forks accessor (body).
*
- * Copyright (C) 2004-2020 by
+ * Copyright (C) 2004-2021 by
* Masatake YAMATO and Redhat K.K.
*
* FT_Raccess_Get_HeaderInfo() and raccess_guess_darwin_hfsplus() are
@@ -167,16 +167,11 @@
}
- static int
- ft_raccess_sort_ref_by_id( FT_RFork_Ref* a,
- FT_RFork_Ref* b )
+ FT_COMPARE_DEF( int )
+ ft_raccess_sort_ref_by_id( const void* a,
+ const void* b )
{
- if ( a->res_id < b->res_id )
- return -1;
- else if ( a->res_id > b->res_id )
- return 1;
- else
- return 0;
+ return ( (FT_RFork_Ref*)a )->res_id - ( (FT_RFork_Ref*)b )->res_id;
}
@@ -256,7 +251,7 @@
if ( error )
return error;
- if ( FT_NEW_ARRAY( ref, *count ) )
+ if ( FT_QNEW_ARRAY( ref, *count ) )
return error;
for ( j = 0; j < *count; j++ )
@@ -294,8 +289,7 @@
ft_qsort( ref,
(size_t)*count,
sizeof ( FT_RFork_Ref ),
- ( int(*)(const void*,
- const void*) )ft_raccess_sort_ref_by_id );
+ ft_raccess_sort_ref_by_id );
FT_TRACE3(( " -- sort resources by their ids --\n" ));
@@ -305,7 +299,7 @@
j, ref[j].res_id, ref[j].offset ));
}
- if ( FT_NEW_ARRAY( offsets_internal, *count ) )
+ if ( FT_QNEW_ARRAY( offsets_internal, *count ) )
goto Exit;
/* XXX: duplicated reference ID,
@@ -608,7 +602,7 @@
if ( base_file_len + 6 > FT_INT_MAX )
return FT_THROW( Array_Too_Large );
- if ( FT_ALLOC( newpath, base_file_len + 6 ) )
+ if ( FT_QALLOC( newpath, base_file_len + 6 ) )
return error;
FT_MEM_COPY( newpath, base_file_name, base_file_len );
@@ -644,7 +638,7 @@
if ( base_file_len + 18 > FT_INT_MAX )
return FT_THROW( Array_Too_Large );
- if ( FT_ALLOC( newpath, base_file_len + 18 ) )
+ if ( FT_QALLOC( newpath, base_file_len + 18 ) )
return error;
FT_MEM_COPY( newpath, base_file_name, base_file_len );
@@ -880,7 +874,7 @@
new_length = ft_strlen( original_name ) + ft_strlen( insertion );
- if ( FT_ALLOC( new_name, new_length + 1 ) )
+ if ( FT_QALLOC( new_name, new_length + 1 ) )
return NULL;
tmp = ft_strrchr( original_name, '/' );
diff --git a/freetype/src/base/ftsnames.c b/freetype/src/base/ftsnames.c
index 8507f28d..44dba666 100644
--- a/freetype/src/base/ftsnames.c
+++ b/freetype/src/base/ftsnames.c
@@ -7,7 +7,7 @@
*
* This is _not_ used to retrieve glyph names!
*
- * Copyright (C) 1996-2020 by
+ * Copyright (C) 1996-2021 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
@@ -65,7 +65,7 @@
FT_Stream stream = face->stream;
- if ( FT_NEW_ARRAY ( entry->string, entry->stringLength ) ||
+ if ( FT_QNEW_ARRAY ( entry->string, entry->stringLength ) ||
FT_STREAM_SEEK( entry->stringOffset ) ||
FT_STREAM_READ( entry->string, entry->stringLength ) )
{
@@ -121,7 +121,7 @@
FT_Stream stream = face->stream;
- if ( FT_NEW_ARRAY ( entry->string, entry->stringLength ) ||
+ if ( FT_QNEW_ARRAY ( entry->string, entry->stringLength ) ||
FT_STREAM_SEEK( entry->stringOffset ) ||
FT_STREAM_READ( entry->string, entry->stringLength ) )
{
diff --git a/freetype/src/base/ftstream.c b/freetype/src/base/ftstream.c
index d940254d..5992998b 100644
--- a/freetype/src/base/ftstream.c
+++ b/freetype/src/base/ftstream.c
@@ -4,7 +4,7 @@
*
* I/O stream support (body).
*
- * Copyright (C) 2000-2020 by
+ * Copyright (C) 2000-2021 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
@@ -61,7 +61,7 @@
if ( stream->read )
{
- if ( stream->read( stream, pos, 0, 0 ) )
+ if ( stream->read( stream, pos, NULL, 0 ) )
{
FT_ERROR(( "FT_Stream_Seek:"
" invalid i/o; pos = 0x%lx, size = 0x%lx\n",
@@ -347,17 +347,17 @@
}
- FT_BASE_DEF( FT_Char )
- FT_Stream_GetChar( FT_Stream stream )
+ FT_BASE_DEF( FT_Byte )
+ FT_Stream_GetByte( FT_Stream stream )
{
- FT_Char result;
+ FT_Byte result;
FT_ASSERT( stream && stream->cursor );
result = 0;
if ( stream->cursor < stream->limit )
- result = (FT_Char)*stream->cursor++;
+ result = *stream->cursor++;
return result;
}
@@ -455,8 +455,8 @@
}
- FT_BASE_DEF( FT_Char )
- FT_Stream_ReadChar( FT_Stream stream,
+ FT_BASE_DEF( FT_Byte )
+ FT_Stream_ReadByte( FT_Stream stream,
FT_Error* error )
{
FT_Byte result = 0;
@@ -464,31 +464,32 @@
FT_ASSERT( stream );
- *error = FT_Err_Ok;
-
- if ( stream->read )
+ if ( stream->pos < stream->size )
{
- if ( stream->read( stream, stream->pos, &result, 1L ) != 1L )
- goto Fail;
- }
- else
- {
- if ( stream->pos < stream->size )
- result = stream->base[stream->pos];
+ if ( stream->read )
+ {
+ if ( stream->read( stream, stream->pos, &result, 1L ) != 1L )
+ goto Fail;
+ }
else
- goto Fail;
+ result = stream->base[stream->pos];
}
+ else
+ goto Fail;
+
stream->pos++;
- return (FT_Char)result;
+ *error = FT_Err_Ok;
+
+ return result;
Fail:
*error = FT_THROW( Invalid_Stream_Operation );
- FT_ERROR(( "FT_Stream_ReadChar:"
+ FT_ERROR(( "FT_Stream_ReadByte:"
" invalid i/o; pos = 0x%lx, size = 0x%lx\n",
stream->pos, stream->size ));
- return 0;
+ return result;
}
@@ -497,14 +498,12 @@
FT_Error* error )
{
FT_Byte reads[2];
- FT_Byte* p = 0;
+ FT_Byte* p;
FT_UShort result = 0;
FT_ASSERT( stream );
- *error = FT_Err_Ok;
-
if ( stream->pos + 1 < stream->size )
{
if ( stream->read )
@@ -525,6 +524,8 @@
stream->pos += 2;
+ *error = FT_Err_Ok;
+
return result;
Fail:
@@ -533,7 +534,7 @@
" invalid i/o; pos = 0x%lx, size = 0x%lx\n",
stream->pos, stream->size ));
- return 0;
+ return result;
}
@@ -542,14 +543,12 @@
FT_Error* error )
{
FT_Byte reads[2];
- FT_Byte* p = 0;
+ FT_Byte* p;
FT_UShort result = 0;
FT_ASSERT( stream );
- *error = FT_Err_Ok;
-
if ( stream->pos + 1 < stream->size )
{
if ( stream->read )
@@ -570,6 +569,8 @@
stream->pos += 2;
+ *error = FT_Err_Ok;
+
return result;
Fail:
@@ -578,7 +579,7 @@
" invalid i/o; pos = 0x%lx, size = 0x%lx\n",
stream->pos, stream->size ));
- return 0;
+ return result;
}
@@ -587,14 +588,12 @@
FT_Error* error )
{
FT_Byte reads[3];
- FT_Byte* p = 0;
+ FT_Byte* p;
FT_ULong result = 0;
FT_ASSERT( stream );
- *error = FT_Err_Ok;
-
if ( stream->pos + 2 < stream->size )
{
if ( stream->read )
@@ -615,6 +614,8 @@
stream->pos += 3;
+ *error = FT_Err_Ok;
+
return result;
Fail:
@@ -623,7 +624,7 @@
" invalid i/o; pos = 0x%lx, size = 0x%lx\n",
stream->pos, stream->size ));
- return 0;
+ return result;
}
@@ -632,14 +633,12 @@
FT_Error* error )
{
FT_Byte reads[4];
- FT_Byte* p = 0;
+ FT_Byte* p;
FT_ULong result = 0;
FT_ASSERT( stream );
- *error = FT_Err_Ok;
-
if ( stream->pos + 3 < stream->size )
{
if ( stream->read )
@@ -660,6 +659,8 @@
stream->pos += 4;
+ *error = FT_Err_Ok;
+
return result;
Fail:
@@ -668,7 +669,7 @@
" invalid i/o; pos = 0x%lx, size = 0x%lx\n",
stream->pos, stream->size ));
- return 0;
+ return result;
}
@@ -677,14 +678,12 @@
FT_Error* error )
{
FT_Byte reads[4];
- FT_Byte* p = 0;
+ FT_Byte* p;
FT_ULong result = 0;
FT_ASSERT( stream );
- *error = FT_Err_Ok;
-
if ( stream->pos + 3 < stream->size )
{
if ( stream->read )
@@ -705,6 +704,8 @@
stream->pos += 4;
+ *error = FT_Err_Ok;
+
return result;
Fail:
@@ -713,7 +714,7 @@
" invalid i/o; pos = 0x%lx, size = 0x%lx\n",
stream->pos, stream->size ));
- return 0;
+ return result;
}
diff --git a/freetype/src/base/ftstroke.c b/freetype/src/base/ftstroke.c
index 56f98e1d..37e96494 100644
--- a/freetype/src/base/ftstroke.c
+++ b/freetype/src/base/ftstroke.c
@@ -4,7 +4,7 @@
*
* FreeType path stroker (body).
*
- * Copyright (C) 2002-2020 by
+ * Copyright (C) 2002-2021 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
@@ -974,7 +974,8 @@
FT_StrokeBorder border = stroker->borders + side;
FT_Angle phi, theta, rotate;
FT_Fixed length;
- FT_Vector sigma, delta;
+ FT_Vector sigma = { 0, 0 };
+ FT_Vector delta;
FT_Error error = FT_Err_Ok;
FT_Bool intersect; /* use intersection of lines? */
@@ -1048,7 +1049,7 @@
{
/* this is a mitered (pointed) or beveled (truncated) corner */
FT_Fixed radius = stroker->radius;
- FT_Vector sigma;
+ FT_Vector sigma = { 0, 0 };
FT_Angle theta = 0, phi = 0;
FT_Bool bevel, fixed_bevel;
@@ -1528,7 +1529,8 @@
stroker->angle_in = angle_out;
}
- stroker->center = *to;
+ stroker->center = *to;
+ stroker->line_length = 0;
Exit:
return error;
@@ -1744,7 +1746,8 @@
stroker->angle_in = angle_out;
}
- stroker->center = *to;
+ stroker->center = *to;
+ stroker->line_length = 0;
Exit:
return error;
@@ -1897,13 +1900,9 @@
}
else
{
- FT_Angle turn;
- FT_Int inside_side;
-
-
/* close the path if needed */
- if ( stroker->center.x != stroker->subpath_start.x ||
- stroker->center.y != stroker->subpath_start.y )
+ if ( !FT_IS_SMALL( stroker->center.x - stroker->subpath_start.x ) ||
+ !FT_IS_SMALL( stroker->center.y - stroker->subpath_start.y ) )
{
error = FT_Stroker_LineTo( stroker, &stroker->subpath_start );
if ( error )
@@ -1912,29 +1911,11 @@
/* process the corner */
stroker->angle_out = stroker->subpath_angle;
- turn = FT_Angle_Diff( stroker->angle_in,
- stroker->angle_out );
-
- /* no specific corner processing is required if the turn is 0 */
- if ( turn != 0 )
- {
- /* when we turn to the right, the inside side is 0 */
- /* otherwise, the inside side is 1 */
- inside_side = ( turn < 0 );
- error = ft_stroker_inside( stroker,
- inside_side,
- stroker->subpath_line_length );
- if ( error )
- goto Exit;
-
- /* process the outside side */
- error = ft_stroker_outside( stroker,
- !inside_side,
- stroker->subpath_line_length );
- if ( error )
- goto Exit;
- }
+ error = ft_stroker_process_corner( stroker,
+ stroker->subpath_line_length );
+ if ( error )
+ goto Exit;
/* then end our two subpaths */
ft_stroke_border_close( stroker->borders + 0, FALSE );
diff --git a/freetype/src/base/ftsynth.c b/freetype/src/base/ftsynth.c
index a9119e2b..73565b13 100644
--- a/freetype/src/base/ftsynth.c
+++ b/freetype/src/base/ftsynth.c
@@ -4,7 +4,7 @@
*
* FreeType synthesizing code for emboldening and slanting (body).
*
- * Copyright (C) 2000-2020 by
+ * Copyright (C) 2000-2021 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
diff --git a/freetype/src/base/ftsystem.c b/freetype/src/base/ftsystem.c
index 3013cbda..9beb7e24 100644
--- a/freetype/src/base/ftsystem.c
+++ b/freetype/src/base/ftsystem.c
@@ -4,7 +4,7 @@
*
* ANSI-specific FreeType low-level system interface (body).
*
- * Copyright (C) 1996-2020 by
+ * Copyright (C) 1996-2021 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
@@ -275,7 +275,7 @@
stream->close = ft_ansi_stream_close;
FT_TRACE1(( "FT_Stream_Open:" ));
- FT_TRACE1(( " opened `%s' (%d bytes) successfully\n",
+ FT_TRACE1(( " opened `%s' (%ld bytes) successfully\n",
filepathname, stream->size ));
return FT_Err_Ok;
diff --git a/freetype/src/base/fttrigon.c b/freetype/src/base/fttrigon.c
index c6f027cf..0ca6d781 100644
--- a/freetype/src/base/fttrigon.c
+++ b/freetype/src/base/fttrigon.c
@@ -4,7 +4,7 @@
*
* FreeType trigonometric functions (body).
*
- * Copyright (C) 2001-2020 by
+ * Copyright (C) 2001-2021 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
@@ -53,7 +53,7 @@
};
-#ifdef FT_LONG64
+#ifdef FT_INT64
/* multiply a given value by the CORDIC shrink factor */
static FT_Fixed
@@ -76,7 +76,7 @@
return s < 0 ? -val : val;
}
-#else /* !FT_LONG64 */
+#else /* !FT_INT64 */
/* multiply a given value by the CORDIC shrink factor */
static FT_Fixed
@@ -125,7 +125,7 @@
return s < 0 ? -val : val;
}
-#endif /* !FT_LONG64 */
+#endif /* !FT_INT64 */
/* undefined and never called for zero vector */
diff --git a/freetype/src/base/fttype1.c b/freetype/src/base/fttype1.c
index be60ed6e..0d0afbce 100644
--- a/freetype/src/base/fttype1.c
+++ b/freetype/src/base/fttype1.c
@@ -4,7 +4,7 @@
*
* FreeType utility file for PS names support (body).
*
- * Copyright (C) 2002-2020 by
+ * Copyright (C) 2002-2021 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
diff --git a/freetype/src/base/ftutil.c b/freetype/src/base/ftutil.c
index d90cfbcd..3142faee 100644
--- a/freetype/src/base/ftutil.c
+++ b/freetype/src/base/ftutil.c
@@ -4,7 +4,7 @@
*
* FreeType utility file for memory and list management (body).
*
- * Copyright (C) 2002-2020 by
+ * Copyright (C) 2002-2021 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
diff --git a/freetype/src/base/ftver.rc b/freetype/src/base/ftver.rc
index 0b92e9b8..a3d05b37 100644
--- a/freetype/src/base/ftver.rc
+++ b/freetype/src/base/ftver.rc
@@ -4,7 +4,7 @@
/* */
/* FreeType VERSIONINFO resource for Windows DLLs. */
/* */
-/* Copyright (C) 2018-2020 by */
+/* Copyright (C) 2018-2021 by */
/* David Turner, Robert Wilhelm, and Werner Lemberg. */
/* */
/* This file is part of the FreeType project, and may only be used, */
@@ -18,8 +18,8 @@
#include<windows.h>
-#define FT_VERSION 2,10,4,0
-#define FT_VERSION_STR "2.10.4"
+#define FT_VERSION 2,11,1,0
+#define FT_VERSION_STR "2.11.1"
VS_VERSION_INFO VERSIONINFO
FILEVERSION FT_VERSION
@@ -45,7 +45,7 @@ BEGIN
VALUE "FileVersion", FT_VERSION_STR
VALUE "ProductName", "FreeType"
VALUE "ProductVersion", FT_VERSION_STR
- VALUE "LegalCopyright", "\251 2000-2020 The FreeType Project www.freetype.org. All rights reserved."
+ VALUE "LegalCopyright", "\251 2000-2021 The FreeType Project www.freetype.org. All rights reserved."
VALUE "InternalName", "freetype"
VALUE "OriginalFilename", FT_FILENAME
END
diff --git a/freetype/src/base/ftwinfnt.c b/freetype/src/base/ftwinfnt.c
index 699dc3d7..98f197af 100644
--- a/freetype/src/base/ftwinfnt.c
+++ b/freetype/src/base/ftwinfnt.c
@@ -4,7 +4,7 @@
*
* FreeType API for accessing Windows FNT specific info (body).
*
- * Copyright (C) 2003-2020 by
+ * Copyright (C) 2003-2021 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
diff --git a/freetype/src/base/rules.mk b/freetype/src/base/rules.mk
index 411c4c82..53289aee 100644
--- a/freetype/src/base/rules.mk
+++ b/freetype/src/base/rules.mk
@@ -3,7 +3,7 @@
#
-# Copyright (C) 1996-2020 by
+# Copyright (C) 1996-2021 by
# David Turner, Robert Wilhelm, and Werner Lemberg.
#
# This file is part of the FreeType project, and may only be used, modified,
diff --git a/freetype/src/bdf/bdfdrivr.c b/freetype/src/bdf/bdfdrivr.c
index d29188b9..eb73a7cf 100644
--- a/freetype/src/bdf/bdfdrivr.c
+++ b/freetype/src/bdf/bdfdrivr.c
@@ -276,7 +276,7 @@ THE SOFTWARE.
char* s;
- if ( FT_ALLOC( face->style_name, len ) )
+ if ( FT_QALLOC( face->style_name, len ) )
return error;
s = face->style_name;
@@ -442,7 +442,7 @@ THE SOFTWARE.
bdfface->num_glyphs = (FT_Long)( font->glyphs_size + 1 );
bdfface->num_fixed_sizes = 1;
- if ( FT_NEW_ARRAY( bdfface->available_sizes, 1 ) )
+ if ( FT_NEW( bdfface->available_sizes ) )
goto Exit;
{
@@ -451,8 +451,6 @@ THE SOFTWARE.
long value;
- FT_ZERO( bsize );
-
/* sanity checks */
if ( font->font_ascent > 0x7FFF || font->font_ascent < -0x7FFF )
{
@@ -489,7 +487,7 @@ THE SOFTWARE.
else
{
/* this is a heuristical value */
- bsize->width = (FT_Short)FT_MulDiv( bsize->height, 2, 3 );
+ bsize->width = ( bsize->height * 2 + 1 ) / 3;
}
prop = bdf_get_font_property( font, "POINT_SIZE" );
@@ -608,7 +606,7 @@ THE SOFTWARE.
unsigned long n;
- if ( FT_NEW_ARRAY( face->en_table, font->glyphs_size ) )
+ if ( FT_QNEW_ARRAY( face->en_table, font->glyphs_size ) )
goto Exit;
face->default_glyph = 0;
diff --git a/freetype/src/bdf/bdflib.c b/freetype/src/bdf/bdflib.c
index a4ddb9a1..b65c8a2f 100644
--- a/freetype/src/bdf/bdflib.c
+++ b/freetype/src/bdf/bdflib.c
@@ -170,7 +170,7 @@
/* An auxiliary macro to parse properties, to be used in conditionals. */
/* It behaves like `strncmp' but also tests the following character */
- /* whether it is a whitespace or NULL. */
+ /* whether it is a whitespace or null. */
/* `property' is a constant string of length `n' to compare with. */
#define _bdf_strncmp( name, property, n ) \
( ft_strncmp( name, property, n ) || \
@@ -185,12 +185,12 @@
"Added `FONT_ASCENT %hd'.\n"
#define ACMSG2 "FONT_DESCENT property missing. " \
"Added `FONT_DESCENT %hd'.\n"
-#define ACMSG3 "Font width != actual width. Old: %hd New: %hd.\n"
+#define ACMSG3 "Font width != actual width. Old: %d New: %d.\n"
#define ACMSG4 "Font left bearing != actual left bearing. " \
"Old: %hd New: %hd.\n"
#define ACMSG5 "Font ascent != actual ascent. Old: %hd New: %hd.\n"
-#define ACMSG6 "Font descent != actual descent. Old: %hd New: %hd.\n"
-#define ACMSG7 "Font height != actual height. Old: %hd New: %hd.\n"
+#define ACMSG6 "Font descent != actual descent. Old: %d New: %d.\n"
+#define ACMSG7 "Font height != actual height. Old: %d New: %d.\n"
#define ACMSG8 "Glyph scalable width (SWIDTH) adjustments made.\n"
#define ACMSG9 "SWIDTH field missing at line %ld. Set automatically.\n"
#define ACMSG10 "DWIDTH field missing at line %ld. Set to glyph width.\n"
@@ -328,7 +328,7 @@
else if ( newsize < oldsize || newsize > bigsize )
newsize = bigsize;
- if ( FT_RENEW_ARRAY( list->field, oldsize, newsize ) )
+ if ( FT_QRENEW_ARRAY( list->field, oldsize, newsize ) )
goto Exit;
list->size = newsize;
@@ -346,7 +346,7 @@
unsigned long i, u;
- if ( list == 0 || list->used == 0 || n == 0 )
+ if ( list == NULL || list->used == 0 || n == 0 )
return;
if ( n >= list->used )
@@ -377,7 +377,7 @@
*alen = 0;
- if ( list == 0 || list->used == 0 )
+ if ( list == NULL || list->used == 0 )
return 0;
dp = list->field[0];
@@ -436,7 +436,7 @@
/* In the original code, if the `separators' parameter is NULL or */
/* empty, the list is split into individual bytes. We don't need */
/* this, so an error is signaled. */
- if ( separators == 0 || *separators == 0 )
+ if ( separators == NULL || *separators == 0 )
{
error = FT_THROW( Invalid_Argument );
goto Exit;
@@ -504,7 +504,7 @@
if ( final_empty )
list->field[list->used++] = (char*)empty;
- list->field[list->used] = 0;
+ list->field[list->used] = NULL;
Exit:
return error;
@@ -529,7 +529,7 @@
FT_Error error = FT_Err_Ok;
- if ( callback == 0 )
+ if ( callback == NULL )
{
error = FT_THROW( Invalid_Argument );
goto Exit;
@@ -538,7 +538,7 @@
/* initial size and allocation of the input buffer */
buf_size = 1024;
- if ( FT_NEW_ARRAY( buf, buf_size ) )
+ if ( FT_QALLOC( buf, buf_size ) )
goto Exit;
cb = callback;
@@ -581,8 +581,14 @@
/* or even resizing it */
if ( end >= avail )
{
- if ( bytes == 0 ) /* last line in file doesn't end in \r or \n */
- break; /* ignore it then exit */
+ if ( bytes == 0 )
+ {
+ /* last line in file doesn't end in \r or \n; */
+ /* ignore it then exit */
+ if ( lineno == 1 )
+ error = FT_THROW( Missing_Startfont_Field );
+ break;
+ }
if ( start == 0 )
{
@@ -593,13 +599,18 @@
if ( buf_size >= 65536UL ) /* limit ourselves to 64KByte */
{
- FT_ERROR(( "_bdf_readstream: " ERRMSG6, lineno ));
- error = FT_THROW( Invalid_Argument );
+ if ( lineno == 1 )
+ error = FT_THROW( Missing_Startfont_Field );
+ else
+ {
+ FT_ERROR(( "_bdf_readstream: " ERRMSG6, lineno ));
+ error = FT_THROW( Invalid_Argument );
+ }
goto Exit;
}
new_size = buf_size * 2;
- if ( FT_RENEW_ARRAY( buf, buf_size, new_size ) )
+ if ( FT_QREALLOC( buf, buf_size, new_size ) )
goto Exit;
cursor = (ptrdiff_t)buf_size;
@@ -697,7 +708,7 @@
unsigned long v;
- if ( s == 0 || *s == 0 )
+ if ( s == NULL || *s == 0 )
return 0;
for ( v = 0; sbitset( ddigits, *s ); s++ )
@@ -722,7 +733,7 @@
long v, neg;
- if ( s == 0 || *s == 0 )
+ if ( s == NULL || *s == 0 )
return 0;
/* Check for a minus sign. */
@@ -755,7 +766,7 @@
unsigned short v;
- if ( s == 0 || *s == 0 )
+ if ( s == NULL || *s == 0 )
return 0;
for ( v = 0; sbitset( ddigits, *s ); s++ )
@@ -780,7 +791,7 @@
short v, neg;
- if ( s == 0 || *s == 0 )
+ if ( s == NULL || *s == 0 )
return 0;
/* Check for a minus. */
@@ -807,7 +818,7 @@
/* Routine to compare two glyphs by encoding so they can be sorted. */
- static int
+ FT_COMPARE_DEF( int )
by_encoding( const void* a,
const void* b )
{
@@ -844,25 +855,25 @@
if ( ft_hash_str_lookup( name, &(font->proptbl) ) )
goto Exit;
- if ( FT_RENEW_ARRAY( font->user_props,
- font->nuser_props,
- font->nuser_props + 1 ) )
+ if ( FT_QRENEW_ARRAY( font->user_props,
+ font->nuser_props,
+ font->nuser_props + 1 ) )
goto Exit;
p = font->user_props + font->nuser_props;
- FT_ZERO( p );
n = ft_strlen( name ) + 1;
- if ( n > FT_ULONG_MAX )
+ if ( n > FT_LONG_MAX )
return FT_THROW( Invalid_Argument );
- if ( FT_NEW_ARRAY( p->name, n ) )
+ if ( FT_QALLOC( p->name, n ) )
goto Exit;
FT_MEM_COPY( (char *)p->name, name, n );
- p->format = format;
- p->builtin = 0;
+ p->format = format;
+ p->builtin = 0;
+ p->value.atom = NULL; /* nothing is ever stored here */
n = _num_bdf_properties + font->nuser_props;
@@ -884,7 +895,7 @@
size_t* propid;
- if ( name == 0 || *name == 0 )
+ if ( name == NULL || *name == 0 )
return 0;
if ( ( propid = ft_hash_str_lookup( name, &(font->proptbl) ) ) == NULL )
@@ -942,15 +953,15 @@
FT_Error error = FT_Err_Ok;
- if ( FT_RENEW_ARRAY( font->comments,
- font->comments_len,
- font->comments_len + len + 1 ) )
+ if ( FT_QRENEW_ARRAY( font->comments,
+ font->comments_len,
+ font->comments_len + len + 1 ) )
goto Exit;
cp = font->comments + font->comments_len;
FT_MEM_COPY( cp, comment, len );
- cp[len] = '\n';
+ cp[len] = '\0';
font->comments_len += len + 1;
@@ -975,7 +986,7 @@
FT_UNUSED( lineno ); /* only used in debug mode */
- if ( font == 0 || font->name == 0 || font->name[0] == 0 )
+ if ( font == NULL || font->name == NULL || font->name[0] == 0 )
{
error = FT_THROW( Invalid_Argument );
goto Exit;
@@ -1159,21 +1170,12 @@
/* Allocate another property if this is overflowing. */
if ( font->props_used == font->props_size )
{
- if ( font->props_size == 0 )
- {
- if ( FT_NEW_ARRAY( font->props, 1 ) )
- goto Exit;
- }
- else
- {
- if ( FT_RENEW_ARRAY( font->props,
- font->props_size,
- font->props_size + 1 ) )
- goto Exit;
- }
+ if ( FT_QRENEW_ARRAY( font->props,
+ font->props_size,
+ font->props_size + 1 ) )
+ goto Exit;
fp = font->props + font->props_size;
- FT_ZERO( fp );
font->props_size++;
}
@@ -1191,8 +1193,8 @@
switch ( prop->format )
{
case BDF_ATOM:
- fp->value.atom = 0;
- if ( value != 0 && value[0] )
+ fp->value.atom = NULL;
+ if ( value && value[0] )
{
if ( FT_STRDUP( fp->value.atom, value ) )
goto Exit;
@@ -1314,15 +1316,18 @@
/* Check for a comment. */
if ( _bdf_strncmp( line, "COMMENT", 7 ) == 0 )
{
- linelen -= 7;
-
- s = line + 7;
- if ( *s != 0 )
+ if ( p->opts->keep_comments )
{
- s++;
- linelen--;
+ linelen -= 7;
+
+ s = line + 7;
+ if ( *s != 0 )
+ {
+ s++;
+ linelen--;
+ }
+ error = _bdf_add_comment( p->font, s, linelen );
}
- error = _bdf_add_comment( p->font, s, linelen );
goto Exit;
}
@@ -1438,7 +1443,7 @@
goto Exit;
}
- if ( FT_NEW_ARRAY( p->glyph_name, slen + 1 ) )
+ if ( FT_QALLOC( p->glyph_name, slen + 1 ) )
goto Exit;
FT_MEM_COPY( p->glyph_name, s, slen + 1 );
@@ -1506,7 +1511,7 @@
{
/* Unencoded glyph. Check whether it should */
/* be added or not. */
- if ( p->opts->keep_unencoded != 0 )
+ if ( p->opts->keep_unencoded )
{
/* Allocate the next unencoded glyph. */
if ( font->unencoded_used == font->unencoded_size )
@@ -1619,20 +1624,20 @@
if ( error )
goto Exit;
- glyph->swidth = (unsigned short)_bdf_atoul( p->list.field[1] );
+ glyph->swidth = _bdf_atous( p->list.field[1] );
p->flags |= BDF_SWIDTH_;
goto Exit;
}
- /* Expect the DWIDTH (scalable width) field next. */
+ /* Expect the DWIDTH (device width) field next. */
if ( _bdf_strncmp( line, "DWIDTH", 6 ) == 0 )
{
error = _bdf_list_split( &p->list, " +", line, linelen );
if ( error )
goto Exit;
- glyph->dwidth = (unsigned short)_bdf_atoul( p->list.field[1] );
+ glyph->dwidth = _bdf_atous( p->list.field[1] );
if ( !( p->flags & BDF_SWIDTH_ ) )
{
@@ -1687,7 +1692,7 @@
/* If the BDF_CORRECT_METRICS flag is set, then adjust the SWIDTH */
/* value if necessary. */
- if ( p->opts->correct_metrics != 0 )
+ if ( p->opts->correct_metrics )
{
/* Determine the point size of the glyph. */
unsigned short sw = (unsigned short)FT_MulDiv(
@@ -1735,7 +1740,7 @@
else
glyph->bytes = (unsigned short)bitmap_size;
- if ( FT_NEW_ARRAY( glyph->bitmap, glyph->bytes ) )
+ if ( FT_ALLOC( glyph->bitmap, glyph->bytes ) )
goto Exit;
p->row = 0;
@@ -1894,7 +1899,7 @@
/* comments before the STARTFONT line for some reason. */
if ( _bdf_strncmp( line, "COMMENT", 7 ) == 0 )
{
- if ( p->opts->keep_comments != 0 && p->font != 0 )
+ if ( p->opts->keep_comments && p->font )
{
linelen -= 7;
@@ -1904,13 +1909,8 @@
s++;
linelen--;
}
-
error = _bdf_add_comment( p->font, s, linelen );
- if ( error )
- goto Exit;
- /* here font is not defined! */
}
-
goto Exit;
}
@@ -1927,14 +1927,13 @@
}
p->flags = BDF_START_;
- font = p->font = 0;
+ font = p->font = NULL;
if ( FT_NEW( font ) )
goto Exit;
p->font = font;
font->memory = p->memory;
- p->memory = 0;
{ /* setup */
size_t i;
@@ -2055,7 +2054,7 @@
/* Allowing multiple `FONT' lines (which is invalid) doesn't hurt... */
FT_FREE( p->font->name );
- if ( FT_NEW_ARRAY( p->font->name, slen + 1 ) )
+ if ( FT_QALLOC( p->font->name, slen + 1 ) )
goto Exit;
FT_MEM_COPY( p->font->name, s, slen + 1 );
@@ -2095,7 +2094,7 @@
unsigned short bpp;
- bpp = (unsigned short)_bdf_atos( p->list.field[4] );
+ bpp = _bdf_atous( p->list.field[4] );
/* Only values 1, 2, 4, 8 are allowed for greymap fonts. */
if ( bpp > 4 )
@@ -2174,34 +2173,32 @@
FT_LOCAL_DEF( FT_Error )
bdf_load_font( FT_Stream stream,
- FT_Memory extmemory,
+ FT_Memory memory,
bdf_options_t* opts,
bdf_font_t* *font )
{
unsigned long lineno = 0; /* make compiler happy */
_bdf_parse_t *p = NULL;
- FT_Memory memory = extmemory; /* needed for FT_NEW */
- FT_Error error = FT_Err_Ok;
+ FT_Error error = FT_Err_Ok;
if ( FT_NEW( p ) )
goto Exit;
- memory = NULL;
- p->opts = (bdf_options_t*)( ( opts != 0 ) ? opts : &_bdf_opts );
+ p->opts = (bdf_options_t*)( opts ? opts : &_bdf_opts );
p->minlb = 32767;
p->size = stream->size;
- p->memory = extmemory; /* only during font creation */
+ p->memory = memory; /* only during font creation */
- _bdf_list_init( &p->list, extmemory );
+ _bdf_list_init( &p->list, memory );
error = _bdf_readstream( stream, _bdf_parse_start,
(void *)p, &lineno );
if ( error )
goto Fail;
- if ( p->font != 0 )
+ if ( p->font )
{
/* If the font is not proportional, set the font's monowidth */
/* field to the width of the font bounding box. */
@@ -2282,22 +2279,7 @@
}
}
- if ( p->font != 0 )
- {
- /* Make sure the comments are NULL terminated if they exist. */
- memory = p->font->memory;
-
- if ( p->font->comments_len > 0 )
- {
- if ( FT_RENEW_ARRAY( p->font->comments,
- p->font->comments_len,
- p->font->comments_len + 1 ) )
- goto Fail;
-
- p->font->comments[p->font->comments_len] = 0;
- }
- }
- else if ( !error )
+ if ( !p->font && !error )
error = FT_THROW( Invalid_File_Format );
*font = p->font;
@@ -2307,8 +2289,6 @@
{
_bdf_list_done( &p->list );
- memory = extmemory;
-
FT_FREE( p->glyph_name );
FT_FREE( p );
}
@@ -2318,8 +2298,6 @@
Fail:
bdf_free_font( p->font );
- memory = extmemory;
-
FT_FREE( p->font );
goto Exit;
@@ -2335,7 +2313,7 @@
FT_Memory memory;
- if ( font == 0 )
+ if ( font == NULL )
return;
memory = font->memory;
@@ -2385,11 +2363,7 @@
/* Free up the user defined properties. */
for ( prop = font->user_props, i = 0;
i < font->nuser_props; i++, prop++ )
- {
FT_FREE( prop->name );
- if ( prop->format == BDF_ATOM )
- FT_FREE( prop->value.atom );
- }
FT_FREE( font->user_props );
@@ -2404,7 +2378,7 @@
size_t* propid;
- if ( font == 0 || font->props_size == 0 || name == 0 || *name == 0 )
+ if ( font == NULL || font->props_size == 0 || name == NULL || *name == 0 )
return 0;
propid = ft_hash_str_lookup( name, (FT_Hash)font->internal );
diff --git a/freetype/src/bzip2/ftbzip2.c b/freetype/src/bzip2/ftbzip2.c
index 411c5d26..296cea08 100644
--- a/freetype/src/bzip2/ftbzip2.c
+++ b/freetype/src/bzip2/ftbzip2.c
@@ -8,7 +8,7 @@
* parse compressed PCF fonts, as found with many X11 server
* distributions.
*
- * Copyright (C) 2010-2020 by
+ * Copyright (C) 2010-2021 by
* Joel Klinghed.
*
* based on `src/gzip/ftgzip.c'
@@ -70,7 +70,7 @@
FT_Pointer p = NULL;
- (void)FT_ALLOC( p, sz );
+ FT_MEM_QALLOC( p, sz );
return p;
}
@@ -327,12 +327,13 @@
FT_ULong count )
{
FT_Error error = FT_Err_Ok;
- FT_ULong delta;
for (;;)
{
- delta = (FT_ULong)( zip->limit - zip->cursor );
+ FT_ULong delta = (FT_ULong)( zip->limit - zip->cursor );
+
+
if ( delta >= count )
delta = count;
@@ -494,7 +495,7 @@
stream->size = 0x7FFFFFFFL; /* don't know the real size! */
stream->pos = 0;
- stream->base = 0;
+ stream->base = NULL;
stream->read = ft_bzip2_stream_io;
stream->close = ft_bzip2_stream_close;
diff --git a/freetype/src/bzip2/rules.mk b/freetype/src/bzip2/rules.mk
index eed0f4ba..e584277b 100644
--- a/freetype/src/bzip2/rules.mk
+++ b/freetype/src/bzip2/rules.mk
@@ -2,7 +2,7 @@
# FreeType 2 BZIP2 support configuration rules
#
-# Copyright (C) 2010-2020 by
+# Copyright (C) 2010-2021 by
# Joel Klinghed.
#
# based on `src/lzw/rules.mk'
diff --git a/freetype/src/cache/ftcache.c b/freetype/src/cache/ftcache.c
index e90f4639..ddd3e43c 100644
--- a/freetype/src/cache/ftcache.c
+++ b/freetype/src/cache/ftcache.c
@@ -4,7 +4,7 @@
*
* The FreeType Caching sub-system (body only).
*
- * Copyright (C) 2000-2020 by
+ * Copyright (C) 2000-2021 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
diff --git a/freetype/src/cache/ftcbasic.c b/freetype/src/cache/ftcbasic.c
index 43ea314d..1760c5fb 100644
--- a/freetype/src/cache/ftcbasic.c
+++ b/freetype/src/cache/ftcbasic.c
@@ -4,7 +4,7 @@
*
* The FreeType basic cache interface (body).
*
- * Copyright (C) 2003-2020 by
+ * Copyright (C) 2003-2021 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
@@ -108,12 +108,16 @@
if ( error || !face )
return result;
+#ifdef FT_DEBUG_LEVEL_TRACE
if ( (FT_ULong)face->num_glyphs > FT_UINT_MAX || 0 > face->num_glyphs )
+ {
FT_TRACE1(( "ftc_basic_family_get_count:"
- " the number of glyphs in this face is %ld,\n"
- " "
- " which is too much and thus truncated\n",
+ " the number of glyphs in this face is %ld,\n",
face->num_glyphs ));
+ FT_TRACE1(( " "
+ " which is too much and thus truncated\n" ));
+ }
+#endif
if ( !error )
result = (FT_UInt)face->num_glyphs;
diff --git a/freetype/src/cache/ftccache.c b/freetype/src/cache/ftccache.c
index 1c8e0f32..5bbf3292 100644
--- a/freetype/src/cache/ftccache.c
+++ b/freetype/src/cache/ftccache.c
@@ -4,7 +4,7 @@
*
* The FreeType internal cache interface (body).
*
- * Copyright (C) 2000-2020 by
+ * Copyright (C) 2000-2021 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
@@ -90,15 +90,14 @@
ftc_get_top_node_for_hash( FTC_Cache cache,
FT_Offset hash )
{
- FTC_Node* pnode;
FT_Offset idx;
idx = hash & cache->mask;
if ( idx < cache->p )
idx = hash & ( 2 * cache->mask + 1 );
- pnode = cache->buckets + idx;
- return pnode;
+
+ return cache->buckets + idx;
}
#endif /* !FTC_INLINE */
@@ -119,7 +118,7 @@
FT_UFast count = mask + p + 1; /* number of buckets */
- /* do we need to shrink the buckets array? */
+ /* do we need to expand the buckets array? */
if ( cache->slack < 0 )
{
FTC_Node new_list = NULL;
@@ -172,7 +171,7 @@
cache->p = p + 1;
}
- /* do we need to expand the buckets array? */
+ /* do we need to shrink the buckets array? */
else if ( cache->slack > (FT_Long)count * FTC_HASH_SUB_LOAD )
{
FT_UFast old_index = p + mask;
@@ -189,7 +188,7 @@
/* if we can't shrink the array, leave immediately */
- if ( FT_RENEW_ARRAY( cache->buckets,
+ if ( FT_QRENEW_ARRAY( cache->buckets,
( mask + 1 ) * 2, mask + 1 ) )
break;
@@ -341,7 +340,7 @@
cache->mask = FTC_HASH_INITIAL_SIZE - 1;
cache->slack = FTC_HASH_INITIAL_SIZE * FTC_HASH_MAX_LOAD;
- (void)FT_NEW_ARRAY( cache->buckets, FTC_HASH_INITIAL_SIZE * 2 );
+ FT_MEM_NEW_ARRAY( cache->buckets, FTC_HASH_INITIAL_SIZE * 2 );
return error;
}
@@ -360,7 +359,7 @@
for ( i = 0; i < count; i++ )
{
- FTC_Node *pnode = cache->buckets + i, next, node = *pnode;
+ FTC_Node node = cache->buckets[i], next;
while ( node )
@@ -417,7 +416,7 @@
FTC_Node node )
{
node->hash = hash;
- node->cache_index = (FT_UInt16)cache->index;
+ node->cache_index = (FT_UShort)cache->index;
node->ref_count = 0;
ftc_node_hash_link( node, cache );
@@ -459,7 +458,7 @@
{
error = cache->clazz.node_new( &node, query, cache );
}
- FTC_CACHE_TRYLOOP_END( NULL );
+ FTC_CACHE_TRYLOOP_END( NULL )
if ( error )
node = NULL;
@@ -528,7 +527,7 @@
goto NewNode;
}
else
- pnode = &((*pnode)->link);
+ pnode = &(*pnode)->link;
}
}
@@ -571,8 +570,7 @@
count = cache->p + cache->mask + 1;
for ( i = 0; i < count; i++ )
{
- FTC_Node* bucket = cache->buckets + i;
- FTC_Node* pnode = bucket;
+ FTC_Node* pnode = cache->buckets + i;
for (;;)
diff --git a/freetype/src/cache/ftccache.h b/freetype/src/cache/ftccache.h
index 11698bb0..4849b923 100644
--- a/freetype/src/cache/ftccache.h
+++ b/freetype/src/cache/ftccache.h
@@ -4,7 +4,7 @@
*
* FreeType internal cache interface (specification).
*
- * Copyright (C) 2000-2020 by
+ * Copyright (C) 2000-2021 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
@@ -251,7 +251,7 @@ FT_BEGIN_HEADER
goto NewNode_; \
} \
else \
- _pnode = &((*_pnode)->link); \
+ _pnode = &(*_pnode)->link; \
} \
} \
\
diff --git a/freetype/src/cache/ftccback.h b/freetype/src/cache/ftccback.h
index 542acb15..8185fe37 100644
--- a/freetype/src/cache/ftccback.h
+++ b/freetype/src/cache/ftccback.h
@@ -4,7 +4,7 @@
*
* Callback functions of the caching sub-system (specification only).
*
- * Copyright (C) 2004-2020 by
+ * Copyright (C) 2004-2021 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
diff --git a/freetype/src/cache/ftccmap.c b/freetype/src/cache/ftccmap.c
index 468c008c..40b449b9 100644
--- a/freetype/src/cache/ftccmap.c
+++ b/freetype/src/cache/ftccmap.c
@@ -4,7 +4,7 @@
*
* FreeType CharMap cache (body)
*
- * Copyright (C) 2000-2020 by
+ * Copyright (C) 2000-2021 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
@@ -273,12 +273,11 @@
if ( error )
goto Exit;
- FT_ASSERT( (FT_UInt)( char_code - FTC_CMAP_NODE( node )->first ) <
- FTC_CMAP_INDICES_MAX );
+ FT_ASSERT( char_code - FTC_CMAP_NODE( node )->first <
+ FTC_CMAP_INDICES_MAX );
/* something rotten can happen with rogue clients */
- if ( (FT_UInt)( char_code - FTC_CMAP_NODE( node )->first >=
- FTC_CMAP_INDICES_MAX ) )
+ if ( char_code - FTC_CMAP_NODE( node )->first >= FTC_CMAP_INDICES_MAX )
return 0; /* XXX: should return appropriate error */
gindex = FTC_CMAP_NODE( node )->indices[char_code -
diff --git a/freetype/src/cache/ftcerror.h b/freetype/src/cache/ftcerror.h
index bedfd283..2c6faf65 100644
--- a/freetype/src/cache/ftcerror.h
+++ b/freetype/src/cache/ftcerror.h
@@ -4,7 +4,7 @@
*
* Caching sub-system error codes (specification only).
*
- * Copyright (C) 2001-2020 by
+ * Copyright (C) 2001-2021 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
diff --git a/freetype/src/cache/ftcglyph.c b/freetype/src/cache/ftcglyph.c
index 7f5438aa..52771c7a 100644
--- a/freetype/src/cache/ftcglyph.c
+++ b/freetype/src/cache/ftcglyph.c
@@ -4,7 +4,7 @@
*
* FreeType Glyph Image (FT_Glyph) cache (body).
*
- * Copyright (C) 2000-2020 by
+ * Copyright (C) 2000-2021 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
diff --git a/freetype/src/cache/ftcglyph.h b/freetype/src/cache/ftcglyph.h
index 5629545f..cf00cdc7 100644
--- a/freetype/src/cache/ftcglyph.h
+++ b/freetype/src/cache/ftcglyph.h
@@ -4,7 +4,7 @@
*
* FreeType abstract glyph cache (specification).
*
- * Copyright (C) 2000-2020 by
+ * Copyright (C) 2000-2021 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
diff --git a/freetype/src/cache/ftcimage.c b/freetype/src/cache/ftcimage.c
index 58ebad8c..3f12a654 100644
--- a/freetype/src/cache/ftcimage.c
+++ b/freetype/src/cache/ftcimage.c
@@ -4,7 +4,7 @@
*
* FreeType Image cache (body).
*
- * Copyright (C) 2000-2020 by
+ * Copyright (C) 2000-2021 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
diff --git a/freetype/src/cache/ftcimage.h b/freetype/src/cache/ftcimage.h
index a400788b..8b28d6f0 100644
--- a/freetype/src/cache/ftcimage.h
+++ b/freetype/src/cache/ftcimage.h
@@ -4,7 +4,7 @@
*
* FreeType Generic Image cache (specification)
*
- * Copyright (C) 2000-2020 by
+ * Copyright (C) 2000-2021 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
diff --git a/freetype/src/cache/ftcmanag.c b/freetype/src/cache/ftcmanag.c
index 436d41f3..512de8a3 100644
--- a/freetype/src/cache/ftcmanag.c
+++ b/freetype/src/cache/ftcmanag.c
@@ -4,7 +4,7 @@
*
* FreeType Cache Manager (body).
*
- * Copyright (C) 2000-2020 by
+ * Copyright (C) 2000-2021 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
@@ -357,7 +357,7 @@
{
FT_Error error;
FT_Memory memory;
- FTC_Manager manager = 0;
+ FTC_Manager manager = NULL;
if ( !library )
@@ -368,7 +368,7 @@
memory = library->memory;
- if ( FT_NEW( manager ) )
+ if ( FT_QNEW( manager ) )
goto Exit;
if ( max_faces == 0 )
@@ -399,6 +399,10 @@
manager,
memory );
+ manager->nodes_list = NULL;
+ manager->num_nodes = 0;
+ manager->num_caches = 0;
+
*amanager = manager;
Exit:
@@ -593,7 +597,7 @@
goto Exit;
}
- if ( !FT_ALLOC( cache, clazz->cache_size ) )
+ if ( !FT_QALLOC( cache, clazz->cache_size ) )
{
cache->manager = manager;
cache->memory = memory;
diff --git a/freetype/src/cache/ftcmanag.h b/freetype/src/cache/ftcmanag.h
index 6c6ec685..99aa9263 100644
--- a/freetype/src/cache/ftcmanag.h
+++ b/freetype/src/cache/ftcmanag.h
@@ -4,7 +4,7 @@
*
* FreeType Cache Manager (specification).
*
- * Copyright (C) 2000-2020 by
+ * Copyright (C) 2000-2021 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
diff --git a/freetype/src/cache/ftcmru.c b/freetype/src/cache/ftcmru.c
index 8feed45f..2cac6f9d 100644
--- a/freetype/src/cache/ftcmru.c
+++ b/freetype/src/cache/ftcmru.c
@@ -4,7 +4,7 @@
*
* FreeType MRU support (body).
*
- * Copyright (C) 2003-2020 by
+ * Copyright (C) 2003-2021 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
@@ -262,7 +262,7 @@
if ( list->clazz.node_done )
list->clazz.node_done( node, list->data );
}
- else if ( FT_ALLOC( node, list->clazz.node_size ) )
+ else if ( FT_QALLOC( node, list->clazz.node_size ) )
goto Exit;
error = list->clazz.node_init( node, key, list->data );
diff --git a/freetype/src/cache/ftcmru.h b/freetype/src/cache/ftcmru.h
index ac4f9b12..6befde30 100644
--- a/freetype/src/cache/ftcmru.h
+++ b/freetype/src/cache/ftcmru.h
@@ -4,7 +4,7 @@
*
* Simple MRU list-cache (specification).
*
- * Copyright (C) 2000-2020 by
+ * Copyright (C) 2000-2021 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
diff --git a/freetype/src/cache/ftcsbits.c b/freetype/src/cache/ftcsbits.c
index e0db930a..362999fc 100644
--- a/freetype/src/cache/ftcsbits.c
+++ b/freetype/src/cache/ftcsbits.c
@@ -4,7 +4,7 @@
*
* FreeType sbits manager (body).
*
- * Copyright (C) 2000-2020 by
+ * Copyright (C) 2000-2021 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
@@ -52,10 +52,8 @@
pitch = -pitch;
size = (FT_ULong)pitch * bitmap->rows;
- if ( !size )
- return FT_Err_Ok;
- if ( !FT_ALLOC( sbit->buffer, size ) )
+ if ( !FT_QALLOC( sbit->buffer, size ) )
FT_MEM_COPY( sbit->buffer, bitmap->buffer, size );
return error;
@@ -108,13 +106,12 @@
FT_Error error;
FTC_GNode gnode = FTC_GNODE( snode );
FTC_Family family = gnode->family;
- FT_Memory memory = manager->memory;
FT_Face face;
FTC_SBit sbit;
FTC_SFamilyClass clazz;
- if ( (FT_UInt)(gindex - gnode->gindex) >= snode->count )
+ if ( gindex - gnode->gindex >= snode->count )
{
FT_ERROR(( "ftc_snode_load: invalid glyph index" ));
return FT_THROW( Invalid_Argument );
@@ -123,8 +120,6 @@
sbit = snode->sbits + ( gindex - gnode->gindex );
clazz = (FTC_SFamilyClass)family->clazz;
- sbit->buffer = 0;
-
error = clazz->family_load_glyph( family, gindex, manager, &face );
if ( error )
goto BadGlyph;
@@ -143,12 +138,13 @@
goto BadGlyph;
}
- /* Check whether our values fit into 8-bit containers! */
+ /* Check whether our values fit into 8/16-bit containers! */
/* If this is not the case, our bitmap is too large */
/* and we will leave it as `missing' with sbit.buffer = 0 */
#define CHECK_CHAR( d ) ( temp = (FT_Char)d, (FT_Int) temp == (FT_Int) d )
#define CHECK_BYTE( d ) ( temp = (FT_Byte)d, (FT_UInt)temp == (FT_UInt)d )
+#define CHECK_SHRT( d ) ( temp = (FT_Short)d, (FT_Int)temp == (FT_Int) d )
/* horizontal advance in pixels */
xadvance = ( slot->advance.x + 32 ) >> 6;
@@ -156,7 +152,7 @@
if ( !CHECK_BYTE( bitmap->rows ) ||
!CHECK_BYTE( bitmap->width ) ||
- !CHECK_CHAR( bitmap->pitch ) ||
+ !CHECK_SHRT( bitmap->pitch ) ||
!CHECK_CHAR( slot->bitmap_left ) ||
!CHECK_CHAR( slot->bitmap_top ) ||
!CHECK_CHAR( xadvance ) ||
@@ -169,7 +165,7 @@
sbit->width = (FT_Byte)bitmap->width;
sbit->height = (FT_Byte)bitmap->rows;
- sbit->pitch = (FT_Char)bitmap->pitch;
+ sbit->pitch = (FT_Short)bitmap->pitch;
sbit->left = (FT_Char)slot->bitmap_left;
sbit->top = (FT_Char)slot->bitmap_top;
sbit->xadvance = (FT_Char)xadvance;
@@ -177,8 +173,17 @@
sbit->format = (FT_Byte)bitmap->pixel_mode;
sbit->max_grays = (FT_Byte)(bitmap->num_grays - 1);
- /* copy the bitmap into a new buffer -- ignore error */
- error = ftc_sbit_copy_bitmap( sbit, bitmap, memory );
+ if ( slot->internal->flags & FT_GLYPH_OWN_BITMAP )
+ {
+ /* take the bitmap ownership */
+ sbit->buffer = bitmap->buffer;
+ slot->internal->flags &= ~FT_GLYPH_OWN_BITMAP;
+ }
+ else
+ {
+ /* copy the bitmap into a new buffer -- ignore error */
+ error = ftc_sbit_copy_bitmap( sbit, bitmap, manager->memory );
+ }
/* now, compute size */
if ( asize )
@@ -337,8 +342,8 @@
if (list_changed)
*list_changed = FALSE;
- result = FT_BOOL( gnode->family == gquery->family &&
- (FT_UInt)( gindex - gnode->gindex ) < snode->count );
+ result = FT_BOOL( gnode->family == gquery->family &&
+ gindex - gnode->gindex < snode->count );
if ( result )
{
/* check if we need to load the glyph bitmap now */
@@ -390,7 +395,7 @@
{
error = ftc_snode_load( snode, cache->manager, gindex, &size );
}
- FTC_CACHE_TRYLOOP_END( list_changed );
+ FTC_CACHE_TRYLOOP_END( list_changed )
ftcsnode->ref_count--; /* unlock the node */
diff --git a/freetype/src/cache/ftcsbits.h b/freetype/src/cache/ftcsbits.h
index 46f797e7..9f2d5fb3 100644
--- a/freetype/src/cache/ftcsbits.h
+++ b/freetype/src/cache/ftcsbits.h
@@ -4,7 +4,7 @@
*
* A small-bitmap cache (specification).
*
- * Copyright (C) 2000-2020 by
+ * Copyright (C) 2000-2021 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
diff --git a/freetype/src/cache/rules.mk b/freetype/src/cache/rules.mk
index 4738b515..0abd216a 100644
--- a/freetype/src/cache/rules.mk
+++ b/freetype/src/cache/rules.mk
@@ -3,7 +3,7 @@
#
-# Copyright (C) 2000-2020 by
+# Copyright (C) 2000-2021 by
# David Turner, Robert Wilhelm, and Werner Lemberg.
#
# This file is part of the FreeType project, and may only be used, modified,
diff --git a/freetype/src/cff/cff.c b/freetype/src/cff/cff.c
index 0fa6c878..c2ffea3d 100644
--- a/freetype/src/cff/cff.c
+++ b/freetype/src/cff/cff.c
@@ -4,7 +4,7 @@
*
* FreeType OpenType driver component (body only).
*
- * Copyright (C) 1996-2020 by
+ * Copyright (C) 1996-2021 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
diff --git a/freetype/src/cff/cffcmap.c b/freetype/src/cff/cffcmap.c
index 6d16ed42..ff1aae69 100644
--- a/freetype/src/cff/cffcmap.c
+++ b/freetype/src/cff/cffcmap.c
@@ -4,7 +4,7 @@
*
* CFF character mapping table (cmap) support (body).
*
- * Copyright (C) 2002-2020 by
+ * Copyright (C) 2002-2021 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
diff --git a/freetype/src/cff/cffcmap.h b/freetype/src/cff/cffcmap.h
index 69fab8dc..221e255a 100644
--- a/freetype/src/cff/cffcmap.h
+++ b/freetype/src/cff/cffcmap.h
@@ -4,7 +4,7 @@
*
* CFF character mapping table (cmap) support (specification).
*
- * Copyright (C) 2002-2020 by
+ * Copyright (C) 2002-2021 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
diff --git a/freetype/src/cff/cffdrivr.c b/freetype/src/cff/cffdrivr.c
index 486ab242..59210f37 100644
--- a/freetype/src/cff/cffdrivr.c
+++ b/freetype/src/cff/cffdrivr.c
@@ -4,7 +4,7 @@
*
* OpenType font driver implementation (body).
*
- * Copyright (C) 1996-2020 by
+ * Copyright (C) 1996-2021 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
@@ -345,8 +345,8 @@
else
{
FT_ERROR(( "cff_get_glyph_name:"
- " cannot get glyph name from a CFF2 font\n"
- " "
+ " cannot get glyph name from a CFF2 font\n" ));
+ FT_ERROR(( " "
" without the `psnames' module\n" ));
error = FT_THROW( Missing_Module );
goto Exit;
@@ -356,8 +356,8 @@
if ( !font->psnames )
{
FT_ERROR(( "cff_get_glyph_name:"
- " cannot get glyph name from CFF & CEF fonts\n"
- " "
+ " cannot get glyph name from CFF & CEF fonts\n" ));
+ FT_ERROR(( " "
" without the `psnames' module\n" ));
error = FT_THROW( Missing_Module );
goto Exit;
@@ -412,8 +412,8 @@
else
{
FT_ERROR(( "cff_get_name_index:"
- " cannot get glyph index from a CFF2 font\n"
- " "
+ " cannot get glyph index from a CFF2 font\n" ));
+ FT_ERROR(( " "
" without the `psnames' module\n" ));
return 0;
}
@@ -474,11 +474,11 @@
if ( cff && !cff->font_info )
{
CFF_FontRecDict dict = &cff->top_font.font_dict;
- PS_FontInfoRec *font_info = NULL;
FT_Memory memory = face->root.memory;
+ PS_FontInfoRec* font_info = NULL;
- if ( FT_ALLOC( font_info, sizeof ( *font_info ) ) )
+ if ( FT_QNEW( font_info ) )
goto Fail;
font_info->version = cff_index_get_sid_string( cff,
@@ -515,15 +515,15 @@
FT_Error error = FT_Err_Ok;
- if ( cff && cff->font_extra == NULL )
+ if ( cff && !cff->font_extra )
{
CFF_FontRecDict dict = &cff->top_font.font_dict;
- PS_FontExtraRec* font_extra = NULL;
FT_Memory memory = face->root.memory;
+ PS_FontExtraRec* font_extra = NULL;
FT_String* embedded_postscript;
- if ( FT_ALLOC( font_extra, sizeof ( *font_extra ) ) )
+ if ( FT_QNEW( font_extra ) )
goto Fail;
font_extra->fs_type = 0U;
diff --git a/freetype/src/cff/cffdrivr.h b/freetype/src/cff/cffdrivr.h
index d198dd35..fce92bbb 100644
--- a/freetype/src/cff/cffdrivr.h
+++ b/freetype/src/cff/cffdrivr.h
@@ -4,7 +4,7 @@
*
* High-level OpenType driver interface (specification).
*
- * Copyright (C) 1996-2020 by
+ * Copyright (C) 1996-2021 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
diff --git a/freetype/src/cff/cfferrs.h b/freetype/src/cff/cfferrs.h
index 5b00a3f0..b507ec8b 100644
--- a/freetype/src/cff/cfferrs.h
+++ b/freetype/src/cff/cfferrs.h
@@ -4,7 +4,7 @@
*
* CFF error codes (specification only).
*
- * Copyright (C) 2001-2020 by
+ * Copyright (C) 2001-2021 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
diff --git a/freetype/src/cff/cffgload.c b/freetype/src/cff/cffgload.c
index feee38a4..97e8f9c1 100644
--- a/freetype/src/cff/cffgload.c
+++ b/freetype/src/cff/cffgload.c
@@ -4,7 +4,7 @@
*
* OpenType Glyph Loader (body).
*
- * Copyright (C) 1996-2020 by
+ * Copyright (C) 1996-2021 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
@@ -59,7 +59,7 @@
*pointer = (FT_Byte*)data.pointer;
- *length = (FT_ULong)data.length;
+ *length = data.length;
return error;
}
@@ -94,7 +94,7 @@
data.pointer = *pointer;
- data.length = (FT_Int)length;
+ data.length = (FT_UInt)length;
face->root.internal->incremental_interface->funcs->free_glyph_data(
face->root.internal->incremental_interface->object, &data );
diff --git a/freetype/src/cff/cffgload.h b/freetype/src/cff/cffgload.h
index 3b312f45..d0d6a6fa 100644
--- a/freetype/src/cff/cffgload.h
+++ b/freetype/src/cff/cffgload.h
@@ -4,7 +4,7 @@
*
* OpenType Glyph Loader (specification).
*
- * Copyright (C) 1996-2020 by
+ * Copyright (C) 1996-2021 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
diff --git a/freetype/src/cff/cffload.c b/freetype/src/cff/cffload.c
index 73d3eecd..3c3f6fe5 100644
--- a/freetype/src/cff/cffload.c
+++ b/freetype/src/cff/cffload.c
@@ -4,7 +4,7 @@
*
* OpenType and CFF data/program tables loader (body).
*
- * Copyright (C) 1996-2020 by
+ * Copyright (C) 1996-2021 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
@@ -356,9 +356,9 @@
data_size = (FT_ULong)( idx->count + 1 ) * offsize;
- if ( FT_NEW_ARRAY( idx->offsets, idx->count + 1 ) ||
- FT_STREAM_SEEK( idx->start + idx->hdr_size ) ||
- FT_FRAME_ENTER( data_size ) )
+ if ( FT_QNEW_ARRAY( idx->offsets, idx->count + 1 ) ||
+ FT_STREAM_SEEK( idx->start + idx->hdr_size ) ||
+ FT_FRAME_ENTER( data_size ) )
goto Exit;
poff = idx->offsets;
@@ -400,7 +400,7 @@
/* Allocate a table containing pointers to an index's elements. */
/* The `pool' argument makes this function convert the index */
- /* entries to C-style strings (this is, NULL-terminated). */
+ /* entries to C-style strings (this is, null-terminated). */
static FT_Error
cff_index_get_pointers( CFF_Index idx,
FT_Byte*** table,
@@ -427,7 +427,7 @@
new_size = idx->data_size + idx->count;
if ( idx->count > 0 &&
- !FT_NEW_ARRAY( tbl, idx->count + 1 ) &&
+ !FT_QNEW_ARRAY( tbl, idx->count + 1 ) &&
( !pool || !FT_ALLOC( new_bytes, new_size ) ) )
{
FT_ULong n, cur_offset;
@@ -622,7 +622,7 @@
FT_Byte* bytes;
FT_ULong byte_len;
FT_Error error;
- FT_String* name = 0;
+ FT_String* name = NULL;
if ( !idx->stream ) /* CFF2 does not include a name index */
@@ -634,10 +634,9 @@
if ( error )
goto Exit;
- if ( !FT_ALLOC( name, byte_len + 1 ) )
+ if ( !FT_QALLOC( name, byte_len + 1 ) )
{
- if ( byte_len )
- FT_MEM_COPY( name, bytes, byte_len );
+ FT_MEM_COPY( name, bytes, byte_len );
name[byte_len] = 0;
}
cff_index_forget_element( idx, &bytes );
@@ -772,8 +771,7 @@
case 3:
/* first, compare to the cache */
- if ( (FT_UInt)( glyph_index - fdselect->cache_first ) <
- fdselect->cache_count )
+ if ( glyph_index - fdselect->cache_first < fdselect->cache_count )
{
fd = fdselect->cache_fd;
break;
@@ -836,7 +834,6 @@
{
FT_Error error = FT_Err_Ok;
FT_UInt i;
- FT_Long j;
FT_UShort max_cid = 0;
@@ -854,9 +851,10 @@
/* When multiple GIDs map to the same CID, we choose the lowest */
/* GID. This is not described in any spec, but it matches the */
- /* behaviour of recent Acroread versions. */
- for ( j = (FT_Long)num_glyphs - 1; j >= 0; j-- )
- charset->cids[charset->sids[j]] = (FT_UShort)j;
+ /* behaviour of recent Acroread versions. The loop stops when */
+ /* the unsigned index wraps around after reaching zero. */
+ for ( i = num_glyphs - 1; i < num_glyphs; i-- )
+ charset->cids[charset->sids[i]] = (FT_UShort)i;
charset->max_cid = max_cid;
charset->num_glyphs = num_glyphs;
@@ -932,7 +930,7 @@
goto Exit;
/* Allocate memory for sids. */
- if ( FT_NEW_ARRAY( charset->sids, num_glyphs ) )
+ if ( FT_QNEW_ARRAY( charset->sids, num_glyphs ) )
goto Exit;
/* assign the .notdef glyph */
@@ -1018,14 +1016,14 @@
case 0:
if ( num_glyphs > 229 )
{
- FT_ERROR(( "cff_charset_load: implicit charset larger than\n"
- "predefined charset (Adobe ISO-Latin)\n" ));
+ FT_ERROR(( "cff_charset_load: implicit charset larger than\n" ));
+ FT_ERROR(( "predefined charset (Adobe ISO-Latin)\n" ));
error = FT_THROW( Invalid_File_Format );
goto Exit;
}
/* Allocate memory for sids. */
- if ( FT_NEW_ARRAY( charset->sids, num_glyphs ) )
+ if ( FT_QNEW_ARRAY( charset->sids, num_glyphs ) )
goto Exit;
/* Copy the predefined charset into the allocated memory. */
@@ -1036,14 +1034,14 @@
case 1:
if ( num_glyphs > 166 )
{
- FT_ERROR(( "cff_charset_load: implicit charset larger than\n"
- "predefined charset (Adobe Expert)\n" ));
+ FT_ERROR(( "cff_charset_load: implicit charset larger than\n" ));
+ FT_ERROR(( "predefined charset (Adobe Expert)\n" ));
error = FT_THROW( Invalid_File_Format );
goto Exit;
}
/* Allocate memory for sids. */
- if ( FT_NEW_ARRAY( charset->sids, num_glyphs ) )
+ if ( FT_QNEW_ARRAY( charset->sids, num_glyphs ) )
goto Exit;
/* Copy the predefined charset into the allocated memory. */
@@ -1054,14 +1052,14 @@
case 2:
if ( num_glyphs > 87 )
{
- FT_ERROR(( "cff_charset_load: implicit charset larger than\n"
- "predefined charset (Adobe Expert Subset)\n" ));
+ FT_ERROR(( "cff_charset_load: implicit charset larger than\n" ));
+ FT_ERROR(( "predefined charset (Adobe Expert Subset)\n" ));
error = FT_THROW( Invalid_File_Format );
goto Exit;
}
/* Allocate memory for sids. */
- if ( FT_NEW_ARRAY( charset->sids, num_glyphs ) )
+ if ( FT_QNEW_ARRAY( charset->sids, num_glyphs ) )
goto Exit;
/* Copy the predefined charset into the allocated memory. */
@@ -1087,7 +1085,6 @@
FT_FREE( charset->cids );
charset->format = 0;
charset->offset = 0;
- charset->sids = 0;
}
return error;
@@ -1141,6 +1138,8 @@
{
FT_UInt vsOffset;
FT_UInt format;
+ FT_UInt dataCount;
+ FT_UInt regionCount;
FT_ULong regionListOffset;
@@ -1163,16 +1162,16 @@
}
/* read top level fields */
- if ( FT_READ_ULONG( regionListOffset ) ||
- FT_READ_USHORT( vstore->dataCount ) )
+ if ( FT_READ_ULONG( regionListOffset ) ||
+ FT_READ_USHORT( dataCount ) )
goto Exit;
/* make temporary copy of item variation data offsets; */
/* we'll parse region list first, then come back */
- if ( FT_NEW_ARRAY( dataOffsetArray, vstore->dataCount ) )
+ if ( FT_QNEW_ARRAY( dataOffsetArray, dataCount ) )
goto Exit;
- for ( i = 0; i < vstore->dataCount; i++ )
+ for ( i = 0; i < dataCount; i++ )
{
if ( FT_READ_ULONG( dataOffsetArray[i] ) )
goto Exit;
@@ -1181,20 +1180,24 @@
/* parse regionList and axisLists */
if ( FT_STREAM_SEEK( vsOffset + regionListOffset ) ||
FT_READ_USHORT( vstore->axisCount ) ||
- FT_READ_USHORT( vstore->regionCount ) )
+ FT_READ_USHORT( regionCount ) )
goto Exit;
- if ( FT_NEW_ARRAY( vstore->varRegionList, vstore->regionCount ) )
+ vstore->regionCount = 0;
+ if ( FT_QNEW_ARRAY( vstore->varRegionList, regionCount ) )
goto Exit;
- for ( i = 0; i < vstore->regionCount; i++ )
+ for ( i = 0; i < regionCount; i++ )
{
CFF_VarRegion* region = &vstore->varRegionList[i];
- if ( FT_NEW_ARRAY( region->axisList, vstore->axisCount ) )
+ if ( FT_QNEW_ARRAY( region->axisList, vstore->axisCount ) )
goto Exit;
+ /* keep track of how many axisList to deallocate on error */
+ vstore->regionCount++;
+
for ( j = 0; j < vstore->axisCount; j++ )
{
CFF_AxisCoords* axis = &region->axisList[j];
@@ -1214,10 +1217,11 @@
}
/* use dataOffsetArray now to parse varData items */
- if ( FT_NEW_ARRAY( vstore->varData, vstore->dataCount ) )
+ vstore->dataCount = 0;
+ if ( FT_QNEW_ARRAY( vstore->varData, dataCount ) )
goto Exit;
- for ( i = 0; i < vstore->dataCount; i++ )
+ for ( i = 0; i < dataCount; i++ )
{
CFF_VarData* data = &vstore->varData[i];
@@ -1236,9 +1240,12 @@
if ( FT_READ_USHORT( data->regionIdxCount ) )
goto Exit;
- if ( FT_NEW_ARRAY( data->regionIndices, data->regionIdxCount ) )
+ if ( FT_QNEW_ARRAY( data->regionIndices, data->regionIdxCount ) )
goto Exit;
+ /* keep track of how many regionIndices to deallocate on error */
+ vstore->dataCount++;
+
for ( j = 0; j < data->regionIdxCount; j++ )
{
if ( FT_READ_USHORT( data->regionIndices[j] ) )
@@ -1322,9 +1329,9 @@
/* increase or allocate `blend_stack' and reset `blend_top'; */
/* prepare to append `numBlends' values to the buffer */
- if ( FT_REALLOC( subFont->blend_stack,
- subFont->blend_alloc,
- subFont->blend_alloc + size ) )
+ if ( FT_QREALLOC( subFont->blend_stack,
+ subFont->blend_alloc,
+ subFont->blend_alloc + size ) )
goto Exit;
subFont->blend_top = subFont->blend_stack + subFont->blend_used;
@@ -1437,9 +1444,7 @@
/* prepare buffer for the blend vector */
len = varData->regionIdxCount + 1; /* add 1 for default component */
- if ( FT_REALLOC( blend->BV,
- blend->lenBV * sizeof( *blend->BV ),
- len * sizeof( *blend->BV ) ) )
+ if ( FT_QRENEW_ARRAY( blend->BV, blend->lenBV, len ) )
goto Exit;
blend->lenBV = len;
@@ -1456,10 +1461,8 @@
if ( master == 0 )
{
blend->BV[master] = FT_FIXED_ONE;
- FT_TRACE4(( " build blend vector len %d\n"
- " [ %f ",
- len,
- blend->BV[master] / 65536.0 ));
+ FT_TRACE4(( " build blend vector len %d\n", len ));
+ FT_TRACE4(( " [ %f ", blend->BV[master] / 65536.0 ));
continue;
}
@@ -1543,9 +1546,7 @@
if ( lenNDV != 0 )
{
/* user has set a normalized vector */
- if ( FT_REALLOC( blend->lastNDV,
- blend->lenNDV * sizeof ( *NDV ),
- lenNDV * sizeof ( *NDV ) ) )
+ if ( FT_QRENEW_ARRAY( blend->lastNDV, blend->lenNDV, lenNDV ) )
goto Exit;
FT_MEM_COPY( blend->lastNDV,
@@ -1827,7 +1828,8 @@
/* Construct code to GID mapping from code to SID mapping */
/* and charset. */
- encoding->count = 0;
+ encoding->offset = offset; /* used in cff_face_init */
+ encoding->count = 0;
error = cff_charset_compute_cids( charset, num_glyphs,
stream->memory );
@@ -2363,8 +2365,8 @@
if ( font->name_index.count > 1 )
{
FT_ERROR(( "cff_font_load:"
- " invalid CFF font with multiple subfonts\n"
- " "
+ " invalid CFF font with multiple subfonts\n" ));
+ FT_ERROR(( " "
" in SFNT wrapper\n" ));
error = FT_THROW( Invalid_File_Format );
goto Exit;
diff --git a/freetype/src/cff/cffload.h b/freetype/src/cff/cffload.h
index fc998db2..20f9296c 100644
--- a/freetype/src/cff/cffload.h
+++ b/freetype/src/cff/cffload.h
@@ -4,7 +4,7 @@
*
* OpenType & CFF data/program tables loader (specification).
*
- * Copyright (C) 1996-2020 by
+ * Copyright (C) 1996-2021 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
diff --git a/freetype/src/cff/cffobjs.c b/freetype/src/cff/cffobjs.c
index d555d523..3a4d47db 100644
--- a/freetype/src/cff/cffobjs.c
+++ b/freetype/src/cff/cffobjs.c
@@ -4,7 +4,7 @@
*
* OpenType objects manager (body).
*
- * Copyright (C) 1996-2020 by
+ * Copyright (C) 1996-2021 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
@@ -283,6 +283,8 @@
cff_size_request( FT_Size size,
FT_Size_Request req )
{
+ FT_Error error;
+
CFF_Size cffsize = (CFF_Size)size;
PSH_Globals_Funcs funcs;
@@ -304,7 +306,9 @@
#endif /* TT_CONFIG_OPTION_EMBEDDED_BITMAPS */
- FT_Request_Metrics( size->face, req );
+ error = FT_Request_Metrics( size->face, req );
+ if ( error )
+ goto Exit;
funcs = cff_size_get_globals_funcs( cffsize );
@@ -345,7 +349,8 @@
}
}
- return FT_Err_Ok;
+ Exit:
+ return error;
}
@@ -659,8 +664,8 @@
if ( dict->cid_registry == 0xFFFFU && !psnames )
{
FT_ERROR(( "cff_face_init:"
- " cannot open CFF & CEF fonts\n"
- " "
+ " cannot open CFF & CEF fonts\n" ));
+ FT_ERROR(( " "
" without the `psnames' module\n" ));
error = FT_THROW( Missing_Module );
goto Exit;
@@ -684,13 +689,13 @@
/* In Multiple Master CFFs, two SIDs hold the Normalize Design */
/* Vector (NDV) and Convert Design Vector (CDV) charstrings, */
- /* which may contain NULL bytes in the middle of the data, too. */
+ /* which may contain null bytes in the middle of the data, too. */
/* We thus access `cff->strings' directly. */
for ( idx = 1; idx < cff->num_strings; idx++ )
{
FT_Byte* s1 = cff->strings[idx - 1];
FT_Byte* s2 = cff->strings[idx];
- FT_PtrDist s1len = s2 - s1 - 1; /* without the final NULL byte */
+ FT_PtrDist s1len = s2 - s1 - 1; /* without the final null byte */
FT_PtrDist l;
@@ -1049,11 +1054,11 @@
{
FT_CharMapRec cmaprec;
FT_CharMap cmap;
- FT_UInt nn;
+ FT_Int nn;
CFF_Encoding encoding = &cff->encoding;
- for ( nn = 0; nn < (FT_UInt)cffface->num_charmaps; nn++ )
+ for ( nn = 0; nn < cffface->num_charmaps; nn++ )
{
cmap = cffface->charmaps[nn];
@@ -1078,7 +1083,7 @@
cmaprec.encoding_id = TT_MS_ID_UNICODE_CS;
cmaprec.encoding = FT_ENCODING_UNICODE;
- nn = (FT_UInt)cffface->num_charmaps;
+ nn = cffface->num_charmaps;
error = FT_CMap_New( &cff_cmap_unicode_class_rec, NULL,
&cmaprec, NULL );
@@ -1089,7 +1094,7 @@
error = FT_Err_Ok;
/* if no Unicode charmap was previously selected, select this one */
- if ( !cffface->charmap && nn != (FT_UInt)cffface->num_charmaps )
+ if ( !cffface->charmap && nn != cffface->num_charmaps )
cffface->charmap = cffface->charmaps[nn];
Skip_Unicode:
@@ -1174,11 +1179,7 @@
/* set default property values, cf. `ftcffdrv.h' */
-#ifdef CFF_CONFIG_OPTION_OLD_ENGINE
- driver->hinting_engine = FT_HINTING_FREETYPE;
-#else
driver->hinting_engine = FT_HINTING_ADOBE;
-#endif
driver->no_stem_darkening = TRUE;
diff --git a/freetype/src/cff/cffobjs.h b/freetype/src/cff/cffobjs.h
index 845bd909..149a8a2f 100644
--- a/freetype/src/cff/cffobjs.h
+++ b/freetype/src/cff/cffobjs.h
@@ -4,7 +4,7 @@
*
* OpenType objects manager (specification).
*
- * Copyright (C) 1996-2020 by
+ * Copyright (C) 1996-2021 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
diff --git a/freetype/src/cff/cffparse.c b/freetype/src/cff/cffparse.c
index 69bcd5d9..dde55e95 100644
--- a/freetype/src/cff/cffparse.c
+++ b/freetype/src/cff/cffparse.c
@@ -4,7 +4,7 @@
*
* CFF token stream parser (body)
*
- * Copyright (C) 1996-2020 by
+ * Copyright (C) 1996-2021 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
@@ -62,7 +62,7 @@
parser->num_axes = num_axes;
/* allocate the stack buffer */
- if ( FT_NEW_ARRAY( parser->stack, stackSize ) )
+ if ( FT_QNEW_ARRAY( parser->stack, stackSize ) )
{
FT_FREE( parser->stack );
goto Exit;
@@ -713,9 +713,10 @@
( max_scaling - min_scaling ) > 9 )
{
FT_TRACE1(( "cff_parse_font_matrix:"
- " strange scaling values (minimum %ld, maximum %ld),\n"
- " "
- " using default matrix\n", min_scaling, max_scaling ));
+ " strange scaling values (minimum %ld, maximum %ld),\n",
+ min_scaling, max_scaling ));
+ FT_TRACE1(( " "
+ " using default matrix\n" ));
goto Unlikely;
}
@@ -1515,6 +1516,7 @@
case cff_kind_fixed_thousand:
FT_TRACE4(( " %f\n", (double)val / 65536 / 1000 ));
+ break;
default:
; /* never reached */
diff --git a/freetype/src/cff/cffparse.h b/freetype/src/cff/cffparse.h
index 6f3fbb37..a28ab522 100644
--- a/freetype/src/cff/cffparse.h
+++ b/freetype/src/cff/cffparse.h
@@ -4,7 +4,7 @@
*
* CFF token stream parser (specification)
*
- * Copyright (C) 1996-2020 by
+ * Copyright (C) 1996-2021 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
diff --git a/freetype/src/cff/cfftoken.h b/freetype/src/cff/cfftoken.h
index 4c6a53ee..eef30690 100644
--- a/freetype/src/cff/cfftoken.h
+++ b/freetype/src/cff/cfftoken.h
@@ -4,7 +4,7 @@
*
* CFF token definitions (specification only).
*
- * Copyright (C) 1996-2020 by
+ * Copyright (C) 1996-2021 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
diff --git a/freetype/src/cff/module.mk b/freetype/src/cff/module.mk
index bd728c6a..cfa444d8 100644
--- a/freetype/src/cff/module.mk
+++ b/freetype/src/cff/module.mk
@@ -3,7 +3,7 @@
#
-# Copyright (C) 1996-2020 by
+# Copyright (C) 1996-2021 by
# David Turner, Robert Wilhelm, and Werner Lemberg.
#
# This file is part of the FreeType project, and may only be used, modified,
diff --git a/freetype/src/cff/rules.mk b/freetype/src/cff/rules.mk
index 70bb92d5..e54614ff 100644
--- a/freetype/src/cff/rules.mk
+++ b/freetype/src/cff/rules.mk
@@ -3,7 +3,7 @@
#
-# Copyright (C) 1996-2020 by
+# Copyright (C) 1996-2021 by
# David Turner, Robert Wilhelm, and Werner Lemberg.
#
# This file is part of the FreeType project, and may only be used, modified,
diff --git a/freetype/src/cid/ciderrs.h b/freetype/src/cid/ciderrs.h
index f698bb22..2d762d9e 100644
--- a/freetype/src/cid/ciderrs.h
+++ b/freetype/src/cid/ciderrs.h
@@ -4,7 +4,7 @@
*
* CID error codes (specification only).
*
- * Copyright (C) 2001-2020 by
+ * Copyright (C) 2001-2021 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
diff --git a/freetype/src/cid/cidgload.c b/freetype/src/cid/cidgload.c
index 54aa62f8..a46d063d 100644
--- a/freetype/src/cid/cidgload.c
+++ b/freetype/src/cid/cidgload.c
@@ -4,7 +4,7 @@
*
* CID-keyed Type1 Glyph Loader (body).
*
- * Copyright (C) 1996-2020 by
+ * Copyright (C) 1996-2021 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
@@ -63,7 +63,7 @@
#endif
- FT_TRACE1(( "cid_load_glyph: glyph index %d\n", glyph_index ));
+ FT_TRACE1(( "cid_load_glyph: glyph index %u\n", glyph_index ));
#ifdef FT_CONFIG_OPTION_INCREMENTAL
@@ -76,20 +76,17 @@
error = inc->funcs->get_glyph_data( inc->object,
glyph_index, &glyph_data );
- if ( error )
+ if ( error || glyph_data.length < cid->fd_bytes )
goto Exit;
p = (FT_Byte*)glyph_data.pointer;
- fd_select = cid_get_offset( &p, (FT_Byte)cid->fd_bytes );
+ fd_select = cid_get_offset( &p, cid->fd_bytes );
- if ( glyph_data.length != 0 )
- {
- glyph_length = (FT_ULong)( glyph_data.length - cid->fd_bytes );
- (void)FT_ALLOC( charstring, glyph_length );
- if ( !error )
- ft_memcpy( charstring, glyph_data.pointer + cid->fd_bytes,
+ glyph_length = glyph_data.length - cid->fd_bytes;
+
+ if ( !FT_QALLOC( charstring, glyph_length ) )
+ FT_MEM_COPY( charstring, glyph_data.pointer + cid->fd_bytes,
glyph_length );
- }
inc->funcs->free_glyph_data( inc->object, &glyph_data );
@@ -104,7 +101,7 @@
/* For ordinary fonts read the CID font dictionary index */
/* and charstring offset from the CIDMap. */
{
- FT_UInt entry_len = (FT_UInt)( cid->fd_bytes + cid->gd_bytes );
+ FT_UInt entry_len = cid->fd_bytes + cid->gd_bytes;
FT_ULong off1, off2;
@@ -114,15 +111,15 @@
goto Exit;
p = (FT_Byte*)stream->cursor;
- fd_select = cid_get_offset( &p, (FT_Byte)cid->fd_bytes );
- off1 = cid_get_offset( &p, (FT_Byte)cid->gd_bytes );
+ fd_select = cid_get_offset( &p, cid->fd_bytes );
+ off1 = cid_get_offset( &p, cid->gd_bytes );
p += cid->fd_bytes;
- off2 = cid_get_offset( &p, (FT_Byte)cid->gd_bytes );
+ off2 = cid_get_offset( &p, cid->gd_bytes );
FT_FRAME_EXIT();
- if ( fd_select >= (FT_ULong)cid->num_dicts ||
- off2 > stream->size ||
- off1 > off2 )
+ if ( fd_select >= cid->num_dicts ||
+ off2 > stream->size ||
+ off1 > off2 )
{
FT_TRACE0(( "cid_load_glyph: invalid glyph stream offsets\n" ));
error = FT_THROW( Invalid_Offset );
@@ -130,11 +127,10 @@
}
glyph_length = off2 - off1;
- if ( glyph_length == 0 )
- goto Exit;
- if ( FT_ALLOC( charstring, glyph_length ) )
- goto Exit;
- if ( FT_STREAM_READ_AT( cid->data_offset + off1,
+
+ if ( glyph_length == 0 ||
+ FT_QALLOC( charstring, glyph_length ) ||
+ FT_STREAM_READ_AT( cid->data_offset + off1,
charstring, glyph_length ) )
goto Exit;
}
diff --git a/freetype/src/cid/cidgload.h b/freetype/src/cid/cidgload.h
index da36e37e..8b515efa 100644
--- a/freetype/src/cid/cidgload.h
+++ b/freetype/src/cid/cidgload.h
@@ -4,7 +4,7 @@
*
* OpenType Glyph Loader (specification).
*
- * Copyright (C) 1996-2020 by
+ * Copyright (C) 1996-2021 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
diff --git a/freetype/src/cid/cidload.c b/freetype/src/cid/cidload.c
index bb9136a3..496219de 100644
--- a/freetype/src/cid/cidload.c
+++ b/freetype/src/cid/cidload.c
@@ -4,7 +4,7 @@
*
* CID-keyed Type1 font loader (body).
*
- * Copyright (C) 1996-2020 by
+ * Copyright (C) 1996-2021 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
@@ -41,7 +41,7 @@
/* read a single offset */
FT_LOCAL_DEF( FT_ULong )
cid_get_offset( FT_Byte* *start,
- FT_Byte offsize )
+ FT_UInt offsize )
{
FT_ULong result;
FT_Byte* p = *start;
@@ -113,7 +113,7 @@
CID_FaceDict dict;
- if ( parser->num_dict < 0 || parser->num_dict >= cid->num_dicts )
+ if ( parser->num_dict >= cid->num_dicts )
{
FT_ERROR(( "cid_load_keyword: invalid use of `%s'\n",
keyword->ident ));
@@ -164,7 +164,7 @@
FT_Fixed temp_scale;
- if ( parser->num_dict >= 0 && parser->num_dict < face->cid.num_dicts )
+ if ( parser->num_dict < face->cid.num_dicts )
{
FT_Matrix* matrix;
FT_Vector* offset;
@@ -244,11 +244,11 @@
FT_Memory memory = face->root.memory;
FT_Stream stream = parser->stream;
FT_Error error = FT_Err_Ok;
- FT_Long num_dicts;
+ FT_Long num_dicts, max_dicts;
num_dicts = cid_parser_to_int( parser );
- if ( num_dicts < 0 )
+ if ( num_dicts < 0 || num_dicts > FT_INT_MAX )
{
FT_ERROR(( "parse_fd_array: invalid number of dictionaries\n" ));
goto Exit;
@@ -272,18 +272,18 @@
* need a `dup X' at the very beginning and a `put' at the end, so a
* rough guess using 100 bytes as the minimum is justified.
*/
- if ( (FT_ULong)num_dicts > stream->size / 100 )
+ max_dicts = (FT_Long)( stream->size / 100 );
+ if ( num_dicts > max_dicts )
{
FT_TRACE0(( "parse_fd_array: adjusting FDArray size"
" (from %ld to %ld)\n",
- num_dicts,
- stream->size / 100 ));
- num_dicts = (FT_Long)( stream->size / 100 );
+ num_dicts, max_dicts ));
+ num_dicts = max_dicts;
}
if ( !cid->font_dicts )
{
- FT_Int n;
+ FT_UInt n;
if ( FT_NEW_ARRAY( cid->font_dicts, num_dicts ) )
@@ -322,7 +322,7 @@
CID_FaceDict dict;
- if ( parser->num_dict >= 0 && parser->num_dict < face->cid.num_dicts )
+ if ( parser->num_dict < face->cid.num_dicts )
{
dict = face->cid.font_dicts + parser->num_dict;
@@ -345,7 +345,7 @@
CID_Parser* parser )
{
#ifdef FT_DEBUG_LEVEL_TRACE
- if ( parser->num_dict >= 0 && parser->num_dict < face->cid.num_dicts )
+ if ( parser->num_dict < face->cid.num_dicts )
{
T1_TokenRec token;
FT_UInt len;
@@ -427,7 +427,7 @@
parser->num_dict++;
#ifdef FT_DEBUG_LEVEL_TRACE
- FT_TRACE4(( " FontDict %d", parser->num_dict ));
+ FT_TRACE4(( " FontDict %u", parser->num_dict ));
if ( parser->num_dict > face->cid.num_dicts )
FT_TRACE4(( " (ignored)" ));
FT_TRACE4(( "\n" ));
@@ -517,7 +517,7 @@
FT_Memory memory = face->root.memory;
FT_Stream stream = face->cid_stream;
FT_Error error;
- FT_Int n;
+ FT_UInt n;
CID_Subrs subr;
FT_UInt max_offsets = 0;
FT_ULong* offsets = NULL;
@@ -552,20 +552,20 @@
goto Fail;
}
- if ( FT_RENEW_ARRAY( offsets, max_offsets, new_max ) )
+ if ( FT_QRENEW_ARRAY( offsets, max_offsets, new_max ) )
goto Fail;
max_offsets = new_max;
}
/* read the subrmap's offsets */
- if ( FT_STREAM_SEEK( cid->data_offset + dict->subrmap_offset ) ||
- FT_FRAME_ENTER( ( num_subrs + 1 ) * (FT_UInt)dict->sd_bytes ) )
+ if ( FT_STREAM_SEEK( cid->data_offset + dict->subrmap_offset ) ||
+ FT_FRAME_ENTER( ( num_subrs + 1 ) * dict->sd_bytes ) )
goto Fail;
p = (FT_Byte*)stream->cursor;
for ( count = 0; count <= num_subrs; count++ )
- offsets[count] = cid_get_offset( &p, (FT_Byte)dict->sd_bytes );
+ offsets[count] = cid_get_offset( &p, dict->sd_bytes );
FT_FRAME_EXIT();
@@ -589,12 +589,12 @@
/* allocate, and read them */
data_len = offsets[num_subrs] - offsets[0];
- if ( FT_NEW_ARRAY( subr->code, num_subrs + 1 ) ||
- FT_ALLOC( subr->code[0], data_len ) )
+ if ( FT_QNEW_ARRAY( subr->code, num_subrs + 1 ) ||
+ FT_QALLOC( subr->code[0], data_len ) )
goto Fail;
if ( FT_STREAM_SEEK( cid->data_offset + offsets[0] ) ||
- FT_STREAM_READ( subr->code[0], data_len ) )
+ FT_STREAM_READ( subr->code[0], data_len ) )
goto Fail;
/* set up pointers */
@@ -665,17 +665,18 @@
static FT_Error
- cid_hex_to_binary( FT_Byte* data,
- FT_ULong data_len,
- FT_ULong offset,
- CID_Face face )
+ cid_hex_to_binary( FT_Byte* data,
+ FT_ULong data_len,
+ FT_ULong offset,
+ CID_Face face,
+ FT_ULong* data_written )
{
FT_Stream stream = face->root.stream;
FT_Error error;
FT_Byte buffer[256];
FT_Byte *p, *plimit;
- FT_Byte *d, *dlimit;
+ FT_Byte *d = data, *dlimit;
FT_Byte val;
FT_Bool upper_nibble, done;
@@ -684,7 +685,6 @@
if ( FT_STREAM_SEEK( offset ) )
goto Exit;
- d = data;
dlimit = d + data_len;
p = buffer;
plimit = p;
@@ -758,6 +758,7 @@
error = FT_Err_Ok;
Exit:
+ *data_written = (FT_ULong)( d - data );
return error;
}
@@ -770,12 +771,11 @@
CID_Parser* parser;
FT_Memory memory = face->root.memory;
FT_Error error;
- FT_Int n;
+ FT_UInt n;
CID_FaceInfo cid = &face->cid;
FT_ULong binary_length;
- FT_ULong entry_len;
cid_init_loader( &loader, face );
@@ -803,8 +803,8 @@
if ( parser->binary_length >
face->root.stream->size - parser->data_offset )
{
- FT_TRACE0(( "cid_face_open: adjusting length of binary data\n"
- " (from %ld to %ld bytes)\n",
+ FT_TRACE0(( "cid_face_open: adjusting length of binary data\n" ));
+ FT_TRACE0(( " (from %lu to %lu bytes)\n",
parser->binary_length,
face->root.stream->size - parser->data_offset ));
parser->binary_length = face->root.stream->size -
@@ -812,15 +812,16 @@
}
/* we must convert the data section from hexadecimal to binary */
- if ( FT_ALLOC( face->binary_data, parser->binary_length ) ||
+ if ( FT_QALLOC( face->binary_data, parser->binary_length ) ||
FT_SET_ERROR( cid_hex_to_binary( face->binary_data,
parser->binary_length,
parser->data_offset,
- face ) ) )
+ face,
+ &binary_length ) ) )
goto Exit;
FT_Stream_OpenMemory( face->cid_stream,
- face->binary_data, parser->binary_length );
+ face->binary_data, binary_length );
cid->data_offset = 0;
}
else
@@ -831,10 +832,10 @@
/* sanity tests */
- if ( cid->fd_bytes < 0 || cid->gd_bytes < 1 )
+ if ( cid->gd_bytes == 0 )
{
FT_ERROR(( "cid_face_open:"
- " Invalid `FDBytes' or `GDBytes' value\n" ));
+ " Invalid `GDBytes' value\n" ));
error = FT_THROW( Invalid_File_Format );
goto Exit;
}
@@ -843,15 +844,32 @@
if ( cid->fd_bytes > 4 || cid->gd_bytes > 4 )
{
FT_ERROR(( "cid_face_open:"
- " Values of `FDBytes' or `GDBytes' larger than 4\n"
- " "
+ " Values of `FDBytes' or `GDBytes' larger than 4\n" ));
+ FT_ERROR(( " "
" are not supported\n" ));
error = FT_THROW( Invalid_File_Format );
goto Exit;
}
binary_length = face->cid_stream->size - cid->data_offset;
- entry_len = (FT_ULong)( cid->fd_bytes + cid->gd_bytes );
+
+ if ( cid->cidmap_offset > binary_length )
+ {
+ FT_ERROR(( "cid_face_open: Invalid `CIDMapOffset' value\n" ));
+ error = FT_THROW( Invalid_File_Format );
+ goto Exit;
+ }
+
+ /* the initial pre-check prevents the multiplication overflow */
+ if ( cid->cid_count > FT_ULONG_MAX / 8 ||
+ cid->cid_count * ( cid->fd_bytes + cid->gd_bytes ) >
+ binary_length - cid->cidmap_offset )
+ {
+ FT_ERROR(( "cid_face_open: Invalid `CIDCount' value\n" ));
+ error = FT_THROW( Invalid_File_Format );
+ goto Exit;
+ }
+
for ( n = 0; n < cid->num_dicts; n++ )
{
@@ -877,8 +895,7 @@
dict->private_dict.blue_fuzz = 1;
}
- if ( dict->sd_bytes < 0 ||
- ( dict->num_subrs && dict->sd_bytes < 1 ) )
+ if ( dict->num_subrs && dict->sd_bytes == 0 )
{
FT_ERROR(( "cid_face_open: Invalid `SDBytes' value\n" ));
error = FT_THROW( Invalid_File_Format );
@@ -901,11 +918,10 @@
goto Exit;
}
- /* `num_subrs' is scanned as a signed integer */
- if ( (FT_Int)dict->num_subrs < 0 ||
- ( dict->sd_bytes &&
- dict->num_subrs > ( binary_length - dict->subrmap_offset ) /
- (FT_UInt)dict->sd_bytes ) )
+ /* the initial pre-check prevents the multiplication overflow */
+ if ( dict->num_subrs > FT_UINT_MAX / 4 ||
+ dict->num_subrs * dict->sd_bytes >
+ binary_length - dict->subrmap_offset )
{
FT_ERROR(( "cid_face_open: Invalid `SubrCount' value\n" ));
error = FT_THROW( Invalid_File_Format );
@@ -913,22 +929,6 @@
}
}
- if ( cid->cidmap_offset > binary_length )
- {
- FT_ERROR(( "cid_face_open: Invalid `CIDMapOffset' value\n" ));
- error = FT_THROW( Invalid_File_Format );
- goto Exit;
- }
-
- if ( entry_len &&
- cid->cid_count >
- ( binary_length - cid->cidmap_offset ) / entry_len )
- {
- FT_ERROR(( "cid_face_open: Invalid `CIDCount' value\n" ));
- error = FT_THROW( Invalid_File_Format );
- goto Exit;
- }
-
/* we can now safely proceed */
error = cid_read_subrs( face );
diff --git a/freetype/src/cid/cidload.h b/freetype/src/cid/cidload.h
index 06fb9ef4..ee1d4865 100644
--- a/freetype/src/cid/cidload.h
+++ b/freetype/src/cid/cidload.h
@@ -4,7 +4,7 @@
*
* CID-keyed Type1 font loader (specification).
*
- * Copyright (C) 1996-2020 by
+ * Copyright (C) 1996-2021 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
@@ -37,7 +37,7 @@ FT_BEGIN_HEADER
FT_LOCAL( FT_ULong )
cid_get_offset( FT_Byte** start,
- FT_Byte offsize );
+ FT_UInt offsize );
FT_LOCAL( FT_Error )
cid_face_open( CID_Face face,
diff --git a/freetype/src/cid/cidobjs.c b/freetype/src/cid/cidobjs.c
index 04b295eb..e3c29c22 100644
--- a/freetype/src/cid/cidobjs.c
+++ b/freetype/src/cid/cidobjs.c
@@ -4,7 +4,7 @@
*
* CID objects manager (body).
*
- * Copyright (C) 1996-2020 by
+ * Copyright (C) 1996-2021 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
@@ -157,10 +157,14 @@
cid_size_request( FT_Size size,
FT_Size_Request req )
{
+ FT_Error error;
+
PSH_Globals_Funcs funcs;
- FT_Request_Metrics( size->face, req );
+ error = FT_Request_Metrics( size->face, req );
+ if ( error )
+ goto Exit;
funcs = cid_size_get_globals_funcs( (CID_Size)size );
@@ -170,7 +174,8 @@
size->metrics.y_scale,
0, 0 );
- return FT_Err_Ok;
+ Exit:
+ return error;
}
@@ -211,7 +216,7 @@
/* release subrs */
if ( face->subrs )
{
- FT_Int n;
+ FT_UInt n;
for ( n = 0; n < cid->num_dicts; n++ )
@@ -479,11 +484,7 @@
/* set default property values, cf. `ftt1drv.h' */
-#ifdef T1_CONFIG_OPTION_OLD_ENGINE
- driver->hinting_engine = FT_HINTING_FREETYPE;
-#else
driver->hinting_engine = FT_HINTING_ADOBE;
-#endif
driver->no_stem_darkening = TRUE;
diff --git a/freetype/src/cid/cidobjs.h b/freetype/src/cid/cidobjs.h
index 6ae30613..32f59cbc 100644
--- a/freetype/src/cid/cidobjs.h
+++ b/freetype/src/cid/cidobjs.h
@@ -4,7 +4,7 @@
*
* CID objects manager (specification).
*
- * Copyright (C) 1996-2020 by
+ * Copyright (C) 1996-2021 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
diff --git a/freetype/src/cid/cidparse.c b/freetype/src/cid/cidparse.c
index 1fc098b4..852c9b6b 100644
--- a/freetype/src/cid/cidparse.c
+++ b/freetype/src/cid/cidparse.c
@@ -4,7 +4,7 @@
*
* CID-keyed Type1 parser (body).
*
- * Copyright (C) 1996-2020 by
+ * Copyright (C) 1996-2021 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
@@ -73,7 +73,11 @@
/* first of all, check the font format in the header */
if ( FT_FRAME_ENTER( 31 ) )
+ {
+ FT_TRACE2(( " not a CID-keyed font\n" ));
+ error = FT_THROW( Unknown_File_Format );
goto Exit;
+ }
if ( ft_strncmp( (char *)stream->cursor,
"%!PS-Adobe-3.0 Resource-CIDFont", 31 ) )
@@ -181,7 +185,7 @@
parser->root.base = parser->postscript;
parser->root.cursor = parser->postscript;
parser->root.limit = parser->root.cursor + ps_len;
- parser->num_dict = -1;
+ parser->num_dict = FT_UINT_MAX;
/* Finally, we check whether `StartData' or `/sfnts' was real -- */
/* it could be in a comment or string. We also get the arguments */
diff --git a/freetype/src/cid/cidparse.h b/freetype/src/cid/cidparse.h
index 0b49bebf..fbc437bc 100644
--- a/freetype/src/cid/cidparse.h
+++ b/freetype/src/cid/cidparse.h
@@ -4,7 +4,7 @@
*
* CID-keyed Type1 parser (specification).
*
- * Copyright (C) 1996-2020 by
+ * Copyright (C) 1996-2021 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
@@ -78,7 +78,7 @@ FT_BEGIN_HEADER
FT_ULong binary_length;
CID_FaceInfo cid;
- FT_Int num_dict;
+ FT_UInt num_dict;
} CID_Parser;
diff --git a/freetype/src/cid/cidriver.c b/freetype/src/cid/cidriver.c
index d08cea1d..a0898dfa 100644
--- a/freetype/src/cid/cidriver.c
+++ b/freetype/src/cid/cidriver.c
@@ -4,7 +4,7 @@
*
* CID driver interface (body).
*
- * Copyright (C) 1996-2020 by
+ * Copyright (C) 1996-2021 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
diff --git a/freetype/src/cid/cidriver.h b/freetype/src/cid/cidriver.h
index 0fc8ed37..3ff5f78e 100644
--- a/freetype/src/cid/cidriver.h
+++ b/freetype/src/cid/cidriver.h
@@ -4,7 +4,7 @@
*
* High-level CID driver interface (specification).
*
- * Copyright (C) 1996-2020 by
+ * Copyright (C) 1996-2021 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
diff --git a/freetype/src/cid/cidtoken.h b/freetype/src/cid/cidtoken.h
index e9f068bb..84c82580 100644
--- a/freetype/src/cid/cidtoken.h
+++ b/freetype/src/cid/cidtoken.h
@@ -4,7 +4,7 @@
*
* CID token definitions (specification only).
*
- * Copyright (C) 1996-2020 by
+ * Copyright (C) 1996-2021 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
diff --git a/freetype/src/cid/module.mk b/freetype/src/cid/module.mk
index 9fb02235..2e16262b 100644
--- a/freetype/src/cid/module.mk
+++ b/freetype/src/cid/module.mk
@@ -3,7 +3,7 @@
#
-# Copyright (C) 1996-2020 by
+# Copyright (C) 1996-2021 by
# David Turner, Robert Wilhelm, and Werner Lemberg.
#
# This file is part of the FreeType project, and may only be used, modified,
diff --git a/freetype/src/cid/rules.mk b/freetype/src/cid/rules.mk
index 94f663c8..933b2daf 100644
--- a/freetype/src/cid/rules.mk
+++ b/freetype/src/cid/rules.mk
@@ -3,7 +3,7 @@
#
-# Copyright (C) 1996-2020 by
+# Copyright (C) 1996-2021 by
# David Turner, Robert Wilhelm, and Werner Lemberg.
#
# This file is part of the FreeType project, and may only be used, modified,
diff --git a/freetype/src/cid/type1cid.c b/freetype/src/cid/type1cid.c
index 082e8bfe..5405ecff 100644
--- a/freetype/src/cid/type1cid.c
+++ b/freetype/src/cid/type1cid.c
@@ -4,7 +4,7 @@
*
* FreeType OpenType driver component (body only).
*
- * Copyright (C) 1996-2020 by
+ * Copyright (C) 1996-2021 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
diff --git a/freetype/src/dlg/dlg.c b/freetype/src/dlg/dlg.c
new file mode 100644
index 00000000..0e6bc74b
--- /dev/null
+++ b/freetype/src/dlg/dlg.c
@@ -0,0 +1,803 @@
+// Copyright (c) 2019 nyorain
+// Distributed under the Boost Software License, Version 1.0.
+// See accompanying file LICENSE or copy at http://www.boost.org/LICENSE_1_0.txt
+
+#define _XOPEN_SOURCE 600
+#define _POSIX_C_SOURCE 200809L
+#define _WIN32_WINNT 0x0600
+
+// Needed on windows so that we can use sprintf without warning.
+#define _CRT_SECURE_NO_WARNINGS
+
+#include <dlg/output.h>
+#include <dlg/dlg.h>
+#include <wchar.h>
+#include <time.h>
+#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
+
+const char* const dlg_reset_sequence = "\033[0m";
+const struct dlg_style dlg_default_output_styles[] = {
+ {dlg_text_style_italic, dlg_color_green, dlg_color_none},
+ {dlg_text_style_dim, dlg_color_gray, dlg_color_none},
+ {dlg_text_style_none, dlg_color_cyan, dlg_color_none},
+ {dlg_text_style_none, dlg_color_yellow, dlg_color_none},
+ {dlg_text_style_none, dlg_color_red, dlg_color_none},
+ {dlg_text_style_bold, dlg_color_red, dlg_color_none}
+};
+
+static void* xalloc(size_t size) {
+ void* ret = calloc(size, 1);
+ if(!ret) fprintf(stderr, "dlg: calloc returned NULL, probably crashing (size: %zu)\n", size);
+ return ret;
+}
+
+static void* xrealloc(void* ptr, size_t size) {
+ void* ret = realloc(ptr, size);
+ if(!ret) fprintf(stderr, "dlg: realloc returned NULL, probably crashing (size: %zu)\n", size);
+ return ret;
+}
+
+struct dlg_tag_func_pair {
+ const char* tag;
+ const char* func;
+};
+
+struct dlg_data {
+ const char** tags; // vec
+ struct dlg_tag_func_pair* pairs; // vec
+ char* buffer;
+ size_t buffer_size;
+};
+
+static dlg_handler g_handler = dlg_default_output;
+static void* g_data = NULL;
+
+static void dlg_free_data(void* data);
+static struct dlg_data* dlg_create_data(void);
+
+// platform-specific
+#if defined(__unix__) || defined(__unix) || defined(__linux__) || defined(__APPLE__) || defined(__MACH__)
+ #define DLG_OS_UNIX
+ #include <unistd.h>
+ #include <pthread.h>
+ #include <sys/time.h>
+
+ static pthread_key_t dlg_data_key;
+
+ static void dlg_main_cleanup(void) {
+ void* data = pthread_getspecific(dlg_data_key);
+ if(data) {
+ dlg_free_data(data);
+ pthread_setspecific(dlg_data_key, NULL);
+ }
+ }
+
+ static void init_data_key(void) {
+ pthread_key_create(&dlg_data_key, dlg_free_data);
+ atexit(dlg_main_cleanup);
+ }
+
+ static struct dlg_data* dlg_data(void) {
+ static pthread_once_t key_once = PTHREAD_ONCE_INIT;
+ pthread_once(&key_once, init_data_key);
+
+ void* data = pthread_getspecific(dlg_data_key);
+ if(!data) {
+ data = dlg_create_data();
+ pthread_setspecific(dlg_data_key, data);
+ }
+
+ return (struct dlg_data*) data;
+ }
+
+ static void lock_file(FILE* file) {
+ flockfile(file);
+ }
+
+ static void unlock_file(FILE* file) {
+ funlockfile(file);
+ }
+
+ bool dlg_is_tty(FILE* stream) {
+ return isatty(fileno(stream));
+ }
+
+ static unsigned get_msecs(void) {
+ struct timeval tv;
+ gettimeofday(&tv, NULL);
+ return tv.tv_usec;
+ }
+
+// platform switch -- end unix
+#elif defined(WIN32) || defined(_WIN32) || defined(_WIN64)
+ #define DLG_OS_WIN
+ #define WIN32_LEAN_AND_MEAN
+ #define DEFINE_CONSOLEV2_PROPERTIES
+ #include <windows.h>
+ #include <io.h>
+
+ // thanks for nothing, microsoft
+ #ifndef ENABLE_VIRTUAL_TERMINAL_PROCESSING
+ #define ENABLE_VIRTUAL_TERMINAL_PROCESSING 0x0004
+ #endif
+
+ // the max buffer size we will convert on the stack
+ #define DLG_MAX_STACK_BUF_SIZE 1024
+
+ static void WINAPI dlg_fls_destructor(void* data) {
+ dlg_free_data(data);
+ }
+
+ // TODO: error handling
+ static BOOL CALLBACK dlg_init_fls(PINIT_ONCE io, void* param, void** lpContext) {
+ (void) io;
+ (void) param;
+ **((DWORD**) lpContext) = FlsAlloc(dlg_fls_destructor);
+ return true;
+ }
+
+ static struct dlg_data* dlg_data(void) {
+ static INIT_ONCE init_once = INIT_ONCE_STATIC_INIT;
+ static DWORD fls = 0;
+ void* flsp = (void*) &fls;
+ InitOnceExecuteOnce(&init_once, dlg_init_fls, NULL, &flsp);
+ void* data = FlsGetValue(fls);
+ if(!data) {
+ data = dlg_create_data();
+ FlsSetValue(fls, data);
+ }
+
+ return (struct dlg_data*) data;
+ }
+
+ static void lock_file(FILE* file) {
+ _lock_file(file);
+ }
+
+ static void unlock_file(FILE* file) {
+ _unlock_file(file);
+ }
+
+ bool dlg_is_tty(FILE* stream) {
+ return _isatty(_fileno(stream));
+ }
+
+#ifdef DLG_WIN_CONSOLE
+ static bool init_ansi_console(void) {
+ HANDLE out = GetStdHandle(STD_OUTPUT_HANDLE);
+ HANDLE err = GetStdHandle(STD_ERROR_HANDLE);
+ if(out == INVALID_HANDLE_VALUE || err == INVALID_HANDLE_VALUE)
+ return false;
+
+ DWORD outMode, errMode;
+ if(!GetConsoleMode(out, &outMode) || !GetConsoleMode(err, &errMode))
+ return false;
+
+ outMode |= ENABLE_VIRTUAL_TERMINAL_PROCESSING;
+ errMode |= ENABLE_VIRTUAL_TERMINAL_PROCESSING;
+ if(!SetConsoleMode(out, outMode) || !SetConsoleMode(out, errMode))
+ return false;
+
+ return true;
+ }
+
+ static bool win_write_heap(void* handle, int needed, const char* format, va_list args) {
+ char* buf1 = xalloc(3 * needed + 3 + (needed % 2));
+ wchar_t* buf2 = (wchar_t*) (buf1 + needed + 1 + (needed % 2));
+ vsnprintf(buf1, needed + 1, format, args);
+ needed = MultiByteToWideChar(CP_UTF8, 0, buf1, needed, buf2, needed + 1);
+ bool ret = (needed != 0 && WriteConsoleW(handle, buf2, needed, NULL, NULL) != 0);
+ free(buf1);
+ return ret;
+ }
+
+ static bool win_write_stack(void* handle, int needed, const char* format, va_list args) {
+ char buf1[DLG_MAX_STACK_BUF_SIZE];
+ wchar_t buf2[DLG_MAX_STACK_BUF_SIZE];
+ vsnprintf(buf1, needed + 1, format, args);
+ needed = MultiByteToWideChar(CP_UTF8, 0, buf1, needed, buf2, needed + 1);
+ return (needed != 0 && WriteConsoleW(handle, buf2, needed, NULL, NULL) != 0);
+ }
+#endif // DLG_WIN_CONSOLE
+
+ static unsigned get_msecs() {
+ SYSTEMTIME st;
+ GetSystemTime(&st);
+ return st.wMilliseconds;
+ }
+
+#else // platform switch -- end windows
+ #error Cannot determine platform (needed for color and utf-8 and stuff)
+#endif
+
+// general
+void dlg_escape_sequence(struct dlg_style style, char buf[12]) {
+ int nums[3];
+ unsigned int count = 0;
+
+ if(style.fg != dlg_color_none) {
+ nums[count++] = style.fg + 30;
+ }
+
+ if(style.bg != dlg_color_none) {
+ nums[count++] = style.fg + 40;
+ }
+
+ if(style.style != dlg_text_style_none) {
+ nums[count++] = style.style;
+ }
+
+ switch(count) {
+ case 1: snprintf(buf, 12, "\033[%dm", nums[0]); break;
+ case 2: snprintf(buf, 12, "\033[%d;%dm", nums[0], nums[1]); break;
+ case 3: snprintf(buf, 12, "\033[%d;%d;%dm", nums[0], nums[1], nums[2]); break;
+ default: buf[0] = '\0'; break;
+ }
+}
+
+int dlg_vfprintf(FILE* stream, const char* format, va_list args) {
+#if defined(DLG_OS_WIN) && defined(DLG_WIN_CONSOLE)
+ void* handle = NULL;
+ if(stream == stdout) {
+ handle = GetStdHandle(STD_OUTPUT_HANDLE);
+ } else if(stream == stderr) {
+ handle = GetStdHandle(STD_ERROR_HANDLE);
+ }
+
+ if(handle) {
+ va_list args_copy;
+ va_copy(args_copy, args);
+ int needed = vsnprintf(NULL, 0, format, args_copy);
+ va_end(args_copy);
+
+ if(needed < 0) {
+ return needed;
+ }
+
+ // We don't allocate too much on the stack
+ // but we also don't want to call alloc every logging call
+ // or use another cached buffer
+ if(needed >= DLG_MAX_STACK_BUF_SIZE) {
+ if(win_write_heap(handle, needed, format, args)) {
+ return needed;
+ }
+ } else {
+ if(win_write_stack(handle, needed, format, args)) {
+ return needed;
+ }
+ }
+ }
+#endif
+
+ return vfprintf(stream, format, args);
+}
+
+int dlg_fprintf(FILE* stream, const char* format, ...) {
+ va_list args;
+ va_start(args, format);
+ int ret = dlg_vfprintf(stream, format, args);
+ va_end(args);
+ return ret;
+}
+
+int dlg_styled_fprintf(FILE* stream, struct dlg_style style, const char* format, ...) {
+ char buf[12];
+ dlg_escape_sequence(style, buf);
+
+ fprintf(stream, "%s", buf);
+ va_list args;
+ va_start(args, format);
+ int ret = dlg_vfprintf(stream, format, args);
+ va_end(args);
+ fprintf(stream, "%s", dlg_reset_sequence);
+ return ret;
+}
+
+void dlg_generic_output(dlg_generic_output_handler output, void* data,
+ unsigned int features, const struct dlg_origin* origin, const char* string,
+ const struct dlg_style styles[6]) {
+ // We never print any dynamic content below so we can be sure at compile
+ // time that a buffer of size 64 is large enough.
+ char format_buf[64];
+ char* format = format_buf;
+
+ if(features & dlg_output_style) {
+ format += sprintf(format, "%%s");
+ }
+
+ if(features & (dlg_output_time | dlg_output_file_line | dlg_output_tags | dlg_output_func)) {
+ format += sprintf(format, "[");
+ }
+
+ bool first_meta = true;
+ if(features & dlg_output_time) {
+ format += sprintf(format, "%%h");
+ first_meta = false;
+ }
+
+ if(features & dlg_output_time_msecs) {
+ if(!first_meta) {
+ format += sprintf(format, ":");
+ }
+
+ format += sprintf(format, "%%m");
+ first_meta = false;
+ }
+
+ if(features & dlg_output_file_line) {
+ if(!first_meta) {
+ format += sprintf(format, " ");
+ }
+
+ format += sprintf(format, "%%o");
+ first_meta = false;
+ }
+
+ if(features & dlg_output_func) {
+ if(!first_meta) {
+ format += sprintf(format, " ");
+ }
+
+ format += sprintf(format, "%%f");
+ first_meta = false;
+ }
+
+ if(features & dlg_output_tags) {
+ if(!first_meta) {
+ format += sprintf(format, " ");
+ }
+
+ format += sprintf(format, "{%%t}");
+ first_meta = false;
+ }
+
+ if(features & (dlg_output_time | dlg_output_file_line | dlg_output_tags | dlg_output_func)) {
+ format += sprintf(format, "] ");
+ }
+
+ format += sprintf(format, "%%c");
+
+ if(features & dlg_output_newline) {
+ format += sprintf(format, "\n");
+ }
+
+ *format = '\0';
+ dlg_generic_outputf(output, data, format_buf, origin, string, styles);
+}
+
+void dlg_generic_outputf(dlg_generic_output_handler output, void* data,
+ const char* format_string, const struct dlg_origin* origin, const char* string,
+ const struct dlg_style styles[6]) {
+ bool reset_style = false;
+ for(const char* it = format_string; *it; it++) {
+ if(*it != '%') {
+ output(data, "%c", *it);
+ continue;
+ }
+
+ char next = *(it + 1); // must be valid since *it is not '\0'
+ if(next == 'h') {
+ time_t t = time(NULL);
+ struct tm tm_info;
+
+ #ifdef DLG_OS_WIN
+ if(localtime_s(&tm_info, &t)) {
+ #else
+ if(!localtime_r(&t, &tm_info)) {
+ #endif
+ output(data, "<DATE ERROR>");
+ } else {
+ char timebuf[32];
+ strftime(timebuf, sizeof(timebuf), "%H:%M:%S", &tm_info);
+ output(data, "%s", timebuf);
+ }
+ it++;
+ } else if(next == 'm') {
+ output(data, "%06d", get_msecs());
+ it++;
+ } else if(next == 't') {
+ bool first_tag = true;
+ for(const char** tags = origin->tags; *tags; ++tags) {
+ if(!first_tag) {
+ output(data, ", ");
+ }
+
+ output(data, "%s", *tags);
+ first_tag = false;
+ }
+ ++it;
+ } else if(next == 'f') {
+ output(data, "%s", origin->func);
+ ++it;
+ } else if(next == 'o') {
+ output(data, "%s:%u", origin->file, origin->line);
+ ++it;
+ } else if(next == 's') {
+ char buf[12];
+ dlg_escape_sequence(styles[origin->level], buf);
+ output(data, "%s", buf);
+ reset_style = true;
+ ++it;
+ } else if(next == 'r') {
+ output(data, "%s", dlg_reset_sequence);
+ reset_style = false;
+ ++it;
+ } else if(next == 'c') {
+ if(origin->expr && string) {
+ output(data, "assertion '%s' failed: '%s'", origin->expr, string);
+ } else if(origin->expr) {
+ output(data, "assertion '%s' failed", origin->expr);
+ } else if(string) {
+ output(data, "%s", string);
+ }
+ ++it;
+ } else if(next == '%') {
+ output(data, "%s", "%");
+ ++it;
+ } else {
+ // in this case it's a '%' without known format specifier following
+ output(data, "%s", "%");
+ }
+ }
+
+ if(reset_style) {
+ output(data, "%s", dlg_reset_sequence);
+ }
+}
+
+struct buf {
+ char* buf;
+ size_t* size;
+};
+
+static void print_size(void* size, const char* format, ...) {
+ va_list args;
+ va_start(args, format);
+
+ int ret = vsnprintf(NULL, 0, format, args);
+ va_end(args);
+
+ if(ret > 0) {
+ *((size_t*) size) += ret;
+ }
+}
+
+static void print_buf(void* dbuf, const char* format, ...) {
+ struct buf* buf = (struct buf*) dbuf;
+ va_list args;
+ va_start(args, format);
+
+ int printed = vsnprintf(buf->buf, *buf->size, format, args);
+ va_end(args);
+
+ if(printed > 0) {
+ *buf->size -= printed;
+ buf->buf += printed;
+ }
+}
+
+void dlg_generic_output_buf(char* buf, size_t* size, unsigned int features,
+ const struct dlg_origin* origin, const char* string,
+ const struct dlg_style styles[6]) {
+ if(buf) {
+ struct buf mbuf;
+ mbuf.buf = buf;
+ mbuf.size = size;
+ dlg_generic_output(print_buf, &mbuf, features, origin, string, styles);
+ } else {
+ *size = 0;
+ dlg_generic_output(print_size, size, features, origin, string, styles);
+ }
+}
+
+void dlg_generic_outputf_buf(char* buf, size_t* size, const char* format_string,
+ const struct dlg_origin* origin, const char* string,
+ const struct dlg_style styles[6]) {
+ if(buf) {
+ struct buf mbuf;
+ mbuf.buf = buf;
+ mbuf.size = size;
+ dlg_generic_outputf(print_buf, &mbuf, format_string, origin, string, styles);
+ } else {
+ *size = 0;
+ dlg_generic_outputf(print_size, size, format_string, origin, string, styles);
+ }
+}
+
+static void print_stream(void* stream, const char* format, ...) {
+ va_list args;
+ va_start(args, format);
+ dlg_vfprintf((FILE*) stream, format, args);
+ va_end(args);
+}
+
+void dlg_generic_output_stream(FILE* stream, unsigned int features,
+ const struct dlg_origin* origin, const char* string,
+ const struct dlg_style styles[6]) {
+ stream = stream ? stream : stdout;
+ if(features & dlg_output_threadsafe) {
+ lock_file(stream);
+ }
+
+ dlg_generic_output(print_stream, stream, features, origin, string, styles);
+ if(features & dlg_output_threadsafe) {
+ unlock_file(stream);
+ }
+}
+
+void dlg_generic_outputf_stream(FILE* stream, const char* format_string,
+ const struct dlg_origin* origin, const char* string,
+ const struct dlg_style styles[6], bool lock_stream) {
+ stream = stream ? stream : stdout;
+ if(lock_stream) {
+ lock_file(stream);
+ }
+
+ dlg_generic_outputf(print_stream, stream, format_string, origin, string, styles);
+ if(lock_stream) {
+ unlock_file(stream);
+ }
+}
+
+void dlg_default_output(const struct dlg_origin* origin, const char* string, void* data) {
+ FILE* stream = data ? (FILE*) data : stdout;
+ unsigned int features = dlg_output_file_line |
+ dlg_output_newline |
+ dlg_output_threadsafe;
+
+#ifdef DLG_DEFAULT_OUTPUT_ALWAYS_COLOR
+ dlg_win_init_ansi();
+ features |= dlg_output_style;
+#else
+ if(dlg_is_tty(stream) && dlg_win_init_ansi()) {
+ features |= dlg_output_style;
+ }
+#endif
+
+ dlg_generic_output_stream(stream, features, origin, string, dlg_default_output_styles);
+ fflush(stream);
+}
+
+bool dlg_win_init_ansi(void) {
+#if defined(DLG_OS_WIN) && defined(DLG_WIN_CONSOLE)
+ // TODO: use init once
+ static volatile LONG status = 0;
+ LONG res = InterlockedCompareExchange(&status, 1, 0);
+ if(res == 0) { // not initialized
+ InterlockedExchange(&status, 3 + init_ansi_console());
+ }
+
+ while(status == 1); // currently initialized in another thread, spinlock
+ return (status == 4);
+#else
+ return true;
+#endif
+}
+
+// small dynamic vec/array implementation
+// Since the macros vec_init and vec_add[c]/vec_push might
+// change the pointers value it must not be referenced somewhere else.
+#define vec__raw(vec) (((unsigned int*) vec) - 2)
+
+static void* vec_do_create(unsigned int typesize, unsigned int cap, unsigned int size) {
+ unsigned long a = (size > cap) ? size : cap;
+ void* ptr = xalloc(2 * sizeof(unsigned int) + a * typesize);
+ unsigned int* begin = (unsigned int*) ptr;
+ begin[0] = size * typesize;
+ begin[1] = a * typesize;
+ return begin + 2;
+}
+
+// NOTE: can be more efficient if we are allowed to reorder vector
+static void vec_do_erase(void* vec, unsigned int pos, unsigned int size) {
+ unsigned int* begin = vec__raw(vec);
+ begin[0] -= size;
+ char* buf = (char*) vec;
+ memcpy(buf + pos, buf + pos + size, size);
+}
+
+static void* vec_do_add(void** vec, unsigned int size) {
+ unsigned int* begin = vec__raw(*vec);
+ unsigned int needed = begin[0] + size;
+ if(needed >= begin[1]) {
+ void* ptr = xrealloc(begin, sizeof(unsigned int) * 2 + needed * 2);
+ begin = (unsigned int*) ptr;
+ begin[1] = needed * 2;
+ (*vec) = begin + 2;
+ }
+
+ void* ptr = ((char*) (*vec)) + begin[0];
+ begin[0] += size;
+ return ptr;
+}
+
+#define vec_create(type, size) (type*) vec_do_create(sizeof(type), size * 2, size)
+#define vec_create_reserve(type, size, capacity) (type*) vec_do_create(sizeof(type), capcity, size)
+#define vec_init(array, size) array = vec_do_create(sizeof(*array), size * 2, size)
+#define vec_init_reserve(array, size, capacity) *((void**) &array) = vec_do_create(sizeof(*array), capacity, size)
+#define vec_free(vec) (free((vec) ? vec__raw(vec) : NULL), vec = NULL)
+#define vec_erase_range(vec, pos, count) vec_do_erase(vec, pos * sizeof(*vec), count * sizeof(*vec))
+#define vec_erase(vec, pos) vec_do_erase(vec, pos * sizeof(*vec), sizeof(*vec))
+#define vec_size(vec) (vec__raw(vec)[0] / sizeof(*vec))
+#define vec_capacity(vec) (vec_raw(vec)[1] / sizeof(*vec))
+#define vec_add(vec) vec_do_add((void**) &vec, sizeof(*vec))
+#define vec_addc(vec, count) (vec_do_add((void**) &vec, sizeof(*vec) * count))
+#define vec_push(vec, value) (vec_do_add((void**) &vec, sizeof(*vec)), vec_last(vec) = (value))
+#define vec_pop(vec) (vec__raw(vec)[0] -= sizeof(*vec))
+#define vec_popc(vec, count) (vec__raw(vec)[0] -= sizeof(*vec) * count)
+#define vec_clear(vec) (vec__raw(vec)[0] = 0)
+#define vec_last(vec) (vec[vec_size(vec) - 1])
+
+static struct dlg_data* dlg_create_data(void) {
+ struct dlg_data* data = (struct dlg_data*) xalloc(sizeof(struct dlg_data));
+ vec_init_reserve(data->tags, 0, 20);
+ vec_init_reserve(data->pairs, 0, 20);
+ data->buffer_size = 100;
+ data->buffer = (char*) xalloc(data->buffer_size);
+ return data;
+}
+
+static void dlg_free_data(void* ddata) {
+ struct dlg_data* data = (struct dlg_data*) ddata;
+ if(data) {
+ vec_free(data->pairs);
+ vec_free(data->tags);
+ free(data->buffer);
+ free(data);
+ }
+}
+
+void dlg_add_tag(const char* tag, const char* func) {
+ struct dlg_data* data = dlg_data();
+ struct dlg_tag_func_pair* pair =
+ (struct dlg_tag_func_pair*) vec_add(data->pairs);
+ pair->tag = tag;
+ pair->func = func;
+}
+
+bool dlg_remove_tag(const char* tag, const char* func) {
+ struct dlg_data* data = dlg_data();
+ for(unsigned int i = 0; i < vec_size(data->pairs); ++i) {
+ if(data->pairs[i].func == func && data->pairs[i].tag == tag) {
+ vec_erase(data->pairs, i);
+ return true;
+ }
+ }
+
+ return false;
+}
+
+char** dlg_thread_buffer(size_t** size) {
+ struct dlg_data* data = dlg_data();
+ if(size) {
+ *size = &data->buffer_size;
+ }
+ return &data->buffer;
+}
+
+void dlg_set_handler(dlg_handler handler, void* data) {
+ g_handler = handler;
+ g_data = data;
+}
+
+dlg_handler dlg_get_handler(void** data) {
+ *data = g_data;
+ return g_handler;
+}
+
+const char* dlg__printf_format(const char* str, ...) {
+ va_list vlist;
+ va_start(vlist, str);
+
+ va_list vlistcopy;
+ va_copy(vlistcopy, vlist);
+ int needed = vsnprintf(NULL, 0, str, vlist);
+ if(needed < 0) {
+ printf("dlg__printf_format: invalid format given\n");
+ va_end(vlist);
+ va_end(vlistcopy);
+ return NULL;
+ }
+
+ va_end(vlist);
+
+ size_t* buf_size;
+ char** buf = dlg_thread_buffer(&buf_size);
+ if(*buf_size <= (unsigned int) needed) {
+ *buf_size = (needed + 1) * 2;
+ *buf = (char*) xrealloc(*buf, *buf_size);
+ }
+
+ vsnprintf(*buf, *buf_size, str, vlistcopy);
+ va_end(vlistcopy);
+
+ return *buf;
+}
+
+void dlg__do_log(enum dlg_level lvl, const char* const* tags, const char* file, int line,
+ const char* func, const char* string, const char* expr) {
+ struct dlg_data* data = dlg_data();
+ unsigned int tag_count = 0;
+
+ // push default tags
+ while(tags[tag_count]) {
+ vec_push(data->tags, tags[tag_count++]);
+ }
+
+ // push current global tags
+ for(size_t i = 0; i < vec_size(data->pairs); ++i) {
+ const struct dlg_tag_func_pair pair = data->pairs[i];
+ if(pair.func == NULL || !strcmp(pair.func, func)) {
+ vec_push(data->tags, pair.tag);
+ }
+ }
+
+ // push call-specific tags, skip first terminating NULL
+ ++tag_count;
+ while(tags[tag_count]) {
+ vec_push(data->tags, tags[tag_count++]);
+ }
+
+ vec_push(data->tags, NULL); // terminating NULL
+ struct dlg_origin origin;
+ origin.level = lvl;
+ origin.file = file;
+ origin.line = line;
+ origin.func = func;
+ origin.expr = expr;
+ origin.tags = data->tags;
+
+ g_handler(&origin, string, g_data);
+ vec_clear(data->tags);
+}
+
+#ifdef _MSC_VER
+// shitty msvc compatbility
+// meson gives us sane paths (separated by '/') while on MSVC,
+// __FILE__ contains a '\\' separator.
+static bool path_same(char a, char b) {
+ return (a == b) ||
+ (a == '/' && b == '\\') ||
+ (a == '\\' && b == '/');
+}
+#else
+
+static inline bool path_same(char a, char b) {
+ return a == b;
+}
+
+#endif
+
+const char* dlg__strip_root_path(const char* file, const char* base) {
+ if(!file) {
+ return NULL;
+ }
+
+ const char* saved = file;
+ if(*file == '.') { // relative path detected
+ while(*(++file) == '.' || *file == '/' || *file == '\\');
+ if(*file == '\0') { // weird case: purely relative path without file
+ return saved;
+ }
+
+ return file;
+ }
+
+ // strip base from file if it is given
+ if(base) {
+ char fn = *file;
+ char bn = *base;
+ while(bn != '\0' && path_same(fn, bn)) {
+ fn = *(++file);
+ bn = *(++base);
+ }
+
+ if(fn == '\0' || bn != '\0') { // weird case: base isn't prefix of file
+ return saved;
+ }
+ }
+
+ return file;
+}
diff --git a/freetype/src/dlg/dlgwrap.c b/freetype/src/dlg/dlgwrap.c
new file mode 100644
index 00000000..e0b9a8d2
--- /dev/null
+++ b/freetype/src/dlg/dlgwrap.c
@@ -0,0 +1,32 @@
+/****************************************************************************
+ *
+ * dlgwrap.c
+ *
+ * Wrapper file for the 'dlg' library (body only)
+ *
+ * Copyright (C) 2020-2021 by
+ * David Turner, Robert Wilhelm, and Werner Lemberg.
+ *
+ * This file is part of the FreeType project, and may only be used,
+ * modified, and distributed under the terms of the FreeType project
+ * license, LICENSE.TXT. By continuing to use, modify, or distribute
+ * this file you indicate that you have read the license and
+ * understand and accept it fully.
+ *
+ */
+
+
+#include <ft2build.h>
+#include FT_CONFIG_OPTIONS_H
+
+
+#ifdef FT_DEBUG_LOGGING
+#define DLG_STATIC
+#include "dlg.c"
+#else
+ /* ANSI C doesn't like empty source files */
+ typedef int _dlg_dummy;
+#endif
+
+
+/* END */
diff --git a/freetype/src/dlg/rules.mk b/freetype/src/dlg/rules.mk
new file mode 100644
index 00000000..a56dee6c
--- /dev/null
+++ b/freetype/src/dlg/rules.mk
@@ -0,0 +1,70 @@
+#
+# FreeType 2 dlg logging library configuration rules
+#
+
+
+# Copyright (C) 2020-2021 by
+# David Turner, Robert Wilhelm, and Werner Lemberg.
+#
+# This file is part of the FreeType project, and may only be used, modified,
+# and distributed under the terms of the FreeType project license,
+# LICENSE.TXT. By continuing to use, modify, or distribute this file you
+# indicate that you have read the license and understand and accept it
+# fully.
+
+
+# dlg logging library directory
+#
+DLG_DIR := $(SRC_DIR)/dlg
+
+
+# compilation flags for the library
+#
+DLG_COMPILE := $(CC) $(ANSIFLAGS) \
+ $I$(subst /,$(COMPILER_SEP),$(DLG_DIR)) \
+ $(INCLUDE_FLAGS) \
+ $(FT_CFLAGS)
+
+
+# dlg logging library sources (i.e., C files)
+#
+DLG_SRC := $(DLG_DIR)/dlgwrap.c
+
+# dlg logging library headers
+#
+DLG_H := $(TOP_DIR)/include/dlg/dlg.h \
+ $(TOP_DIR)/include/dlg/output.h
+
+
+# dlg logging library object(s)
+#
+# DLG_OBJ_M is used during `multi' builds
+# DLG_OBJ_S is used during `single' builds
+#
+DLG_OBJ_M := $(DLG_SRC:$(DLG_DIR)/%.c=$(OBJ_DIR)/%.$O)
+DLG_OBJ_S := $(OBJ_DIR)/dlg.$O
+
+# dlg logging library source file for single build
+#
+DLG_SRC_S := $(DLG_DIR)/dlgwrap.c
+
+
+# dlg logging library - single object
+#
+$(DLG_OBJ_S): $(DLG_SRC_S) $(DLG_SRC) $(FREETYPE_H) $(DLG_H)
+ $(DLG_COMPILE) $T$(subst /,$(COMPILER_SEP),$@ $(DLG_SRC_S))
+
+
+# dlg logging library - multiple objects
+#
+$(OBJ_DIR)/%.$O: $(DLG_DIR)/%.c $(FREETYPE_H) $(DLG_H)
+ $(DLG_COMPILE) $T$(subst /,$(COMPILER_SEP),$@ $<)
+
+
+# update main object lists
+#
+DLG_OBJS_S += $(DLG_OBJ_S)
+DLG_OBJS_M += $(DLG_OBJ_M)
+
+
+# EOF
diff --git a/freetype/src/gxvalid/README b/freetype/src/gxvalid/README
index 2a32bab2..7fb02962 100644
--- a/freetype/src/gxvalid/README
+++ b/freetype/src/gxvalid/README
@@ -518,7 +518,7 @@ gxvalid: TrueType GX validator
------------------------------------------------------------------------
-Copyright (C) 2004-2020 by
+Copyright (C) 2004-2021 by
suzuki toshiya, Masatake YAMATO, Red hat K.K.,
David Turner, Robert Wilhelm, and Werner Lemberg.
diff --git a/freetype/src/gxvalid/gxvalid.c b/freetype/src/gxvalid/gxvalid.c
index 683b8a69..309d5174 100644
--- a/freetype/src/gxvalid/gxvalid.c
+++ b/freetype/src/gxvalid/gxvalid.c
@@ -4,7 +4,7 @@
*
* FreeType validator for TrueTypeGX/AAT tables (body only).
*
- * Copyright (C) 2005-2020 by
+ * Copyright (C) 2005-2021 by
* suzuki toshiya, Masatake YAMATO, Red Hat K.K.,
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
diff --git a/freetype/src/gxvalid/gxvalid.h b/freetype/src/gxvalid/gxvalid.h
index ff2812da..2c41c286 100644
--- a/freetype/src/gxvalid/gxvalid.h
+++ b/freetype/src/gxvalid/gxvalid.h
@@ -4,7 +4,7 @@
*
* TrueTypeGX/AAT table validation (specification only).
*
- * Copyright (C) 2005-2020 by
+ * Copyright (C) 2005-2021 by
* suzuki toshiya, Masatake YAMATO, Red Hat K.K.,
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
diff --git a/freetype/src/gxvalid/gxvbsln.c b/freetype/src/gxvalid/gxvbsln.c
index ac58d461..af69cb51 100644
--- a/freetype/src/gxvalid/gxvbsln.c
+++ b/freetype/src/gxvalid/gxvbsln.c
@@ -4,7 +4,7 @@
*
* TrueTypeGX/AAT bsln table validation (body).
*
- * Copyright (C) 2004-2020 by
+ * Copyright (C) 2004-2021 by
* suzuki toshiya, Masatake YAMATO, Red Hat K.K.,
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
diff --git a/freetype/src/gxvalid/gxvcommn.c b/freetype/src/gxvalid/gxvcommn.c
index ead0f24c..18e42b0c 100644
--- a/freetype/src/gxvalid/gxvcommn.c
+++ b/freetype/src/gxvalid/gxvcommn.c
@@ -4,7 +4,7 @@
*
* TrueTypeGX/AAT common tables validation (body).
*
- * Copyright (C) 2004-2020 by
+ * Copyright (C) 2004-2021 by
* suzuki toshiya, Masatake YAMATO, Red Hat K.K.,
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
@@ -46,16 +46,11 @@
/*************************************************************************/
/*************************************************************************/
- static int
- gxv_compare_ushort_offset( FT_UShort* a,
- FT_UShort* b )
+ FT_COMPARE_DEF( int )
+ gxv_compare_ushort_offset( const void* a,
+ const void* b )
{
- if ( *a < *b )
- return -1;
- else if ( *a > *b )
- return 1;
- else
- return 0;
+ return *(FT_UShort*)a - *(FT_UShort*)b;
}
@@ -78,7 +73,7 @@
buff[nmemb] = limit;
ft_qsort( buff, ( nmemb + 1 ), sizeof ( FT_UShort ),
- ( int(*)(const void*, const void*) )gxv_compare_ushort_offset );
+ gxv_compare_ushort_offset );
if ( buff[nmemb] > limit )
FT_INVALID_OFFSET;
@@ -111,13 +106,17 @@
/*************************************************************************/
/*************************************************************************/
- static int
- gxv_compare_ulong_offset( FT_ULong* a,
- FT_ULong* b )
+ FT_COMPARE_DEF( int )
+ gxv_compare_ulong_offset( const void* a,
+ const void* b )
{
- if ( *a < *b )
+ FT_ULong a_ = *(FT_ULong*)a;
+ FT_ULong b_ = *(FT_ULong*)b;
+
+
+ if ( a_ < b_ )
return -1;
- else if ( *a > *b )
+ else if ( a_ > b_ )
return 1;
else
return 0;
@@ -143,7 +142,7 @@
buff[nmemb] = limit;
ft_qsort( buff, ( nmemb + 1 ), sizeof ( FT_ULong ),
- ( int(*)(const void*, const void*) )gxv_compare_ulong_offset );
+ gxv_compare_ulong_offset );
if ( buff[nmemb] > limit )
FT_INVALID_OFFSET;
@@ -439,7 +438,7 @@
GXV_LIMIT_CHECK( 2 );
if ( p + 2 >= limit ) /* some fonts have too-short fmt0 array */
{
- GXV_TRACE(( "too short, glyphs %d - %d are missing\n",
+ GXV_TRACE(( "too short, glyphs %d - %ld are missing\n",
i, gxvalid->face->num_glyphs ));
GXV_SET_ERR_IF_PARANOID( FT_INVALID_GLYPH_ID );
break;
@@ -534,7 +533,7 @@
if ( lastGlyph < firstGlyph )
{
- GXV_TRACE(( "reverse ordered range specification at unit %d:",
+ GXV_TRACE(( "reverse ordered range specification at unit %d:"
" lastGlyph %d < firstGlyph %d ",
unit, lastGlyph, firstGlyph ));
GXV_SET_ERR_IF_PARANOID( FT_INVALID_GLYPH_ID );
@@ -605,7 +604,7 @@
if ( lastGlyph < firstGlyph )
{
- GXV_TRACE(( "reverse ordered range specification at unit %d:",
+ GXV_TRACE(( "reverse ordered range specification at unit %d:"
" lastGlyph %d < firstGlyph %d ",
unit, lastGlyph, firstGlyph ));
GXV_SET_ERR_IF_PARANOID( FT_INVALID_GLYPH_ID );
@@ -825,7 +824,7 @@
face = gxvalid->face;
if ( face->num_glyphs < gid )
{
- GXV_TRACE(( " gxv_glyphid_check() gid overflow: num_glyphs %d < %d\n",
+ GXV_TRACE(( " gxv_glyphid_check() gid overflow: num_glyphs %ld < %d\n",
face->num_glyphs, gid ));
GXV_SET_ERR_IF_PARANOID( FT_INVALID_GLYPH_ID );
}
@@ -1419,7 +1418,7 @@
GXV_NAME_ENTER( "XStateArray" );
GXV_TRACE(( "parse % 3d bytes by stateSize=% 3d maxClassID=% 3d\n",
- (int)(*length_p), stateSize, (int)(maxClassID) ));
+ (int)(*length_p), (int)stateSize, (int)(maxClassID) ));
/*
* 2 states are predefined and must be described:
@@ -1493,9 +1492,11 @@
state = (FT_UShort)( newState_idx / ( 1 + maxClassID ) );
if ( 0 != ( newState_idx % ( 1 + maxClassID ) ) )
{
- FT_TRACE4(( "-> new state = %d (supposed)\n"
- "but newState index 0x%04x is not aligned to %d-classes\n",
- state, newState_idx, 1 + maxClassID ));
+ FT_TRACE4(( "-> new state = %d (supposed)\n",
+ state ));
+ FT_TRACE4(( "but newState index 0x%04x"
+ " is not aligned to %d-classes\n",
+ newState_idx, 1 + maxClassID ));
GXV_SET_ERR_IF_PARANOID( FT_INVALID_OFFSET );
}
@@ -1581,10 +1582,10 @@
stateArray = FT_NEXT_ULONG( p );
entryTable = FT_NEXT_ULONG( p );
- GXV_TRACE(( "nClasses =0x%08x\n", gxvalid->xstatetable.nClasses ));
- GXV_TRACE(( "offset to classTable=0x%08x\n", classTable ));
- GXV_TRACE(( "offset to stateArray=0x%08x\n", stateArray ));
- GXV_TRACE(( "offset to entryTable=0x%08x\n", entryTable ));
+ GXV_TRACE(( "nClasses =0x%08lx\n", gxvalid->xstatetable.nClasses ));
+ GXV_TRACE(( "offset to classTable=0x%08lx\n", classTable ));
+ GXV_TRACE(( "offset to stateArray=0x%08lx\n", stateArray ));
+ GXV_TRACE(( "offset to entryTable=0x%08lx\n", entryTable ));
if ( gxvalid->xstatetable.nClasses > 0xFFFFU )
FT_INVALID_DATA;
diff --git a/freetype/src/gxvalid/gxvcommn.h b/freetype/src/gxvalid/gxvcommn.h
index 59d14921..b79b6411 100644
--- a/freetype/src/gxvalid/gxvcommn.h
+++ b/freetype/src/gxvalid/gxvcommn.h
@@ -4,7 +4,7 @@
*
* TrueTypeGX/AAT common tables validation (specification).
*
- * Copyright (C) 2004-2020 by
+ * Copyright (C) 2004-2021 by
* suzuki toshiya, Masatake YAMATO, Red Hat K.K.,
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
@@ -61,8 +61,11 @@ FT_BEGIN_HEADER
#undef GXV_LOAD_UNUSED_VARS /* debug purpose */
-#define IS_PARANOID_VALIDATION ( gxvalid->root->level >= FT_VALIDATE_PARANOID )
-#define GXV_SET_ERR_IF_PARANOID( err ) { if ( IS_PARANOID_VALIDATION ) ( err ); }
+#define IS_PARANOID_VALIDATION \
+ ( gxvalid->root->level >= FT_VALIDATE_PARANOID )
+#define GXV_SET_ERR_IF_PARANOID( err ) \
+ do { if ( IS_PARANOID_VALIDATION ) ( err ); } while ( 0 )
+
/*************************************************************************/
/*************************************************************************/
@@ -261,17 +264,17 @@ FT_BEGIN_HEADER
} GXV_ValidatorRec;
-#define GXV_TABLE_DATA( tag, field ) \
+#define GXV_TABLE_DATA( tag, field ) \
( ( (GXV_ ## tag ## _Data)gxvalid->table_data )->field )
#undef FT_INVALID_
-#define FT_INVALID_( _error ) \
+#define FT_INVALID_( _error ) \
ft_validator_error( gxvalid->root, FT_THROW( _error ) )
-#define GXV_LIMIT_CHECK( _count ) \
- FT_BEGIN_STMNT \
+#define GXV_LIMIT_CHECK( _count ) \
+ FT_BEGIN_STMNT \
if ( p + _count > ( limit? limit : gxvalid->root->limit ) ) \
- FT_INVALID_TOO_SHORT; \
+ FT_INVALID_TOO_SHORT; \
FT_END_STMNT
@@ -279,19 +282,19 @@ FT_BEGIN_HEADER
#define GXV_INIT gxvalid->debug_indent = 0
-#define GXV_NAME_ENTER( name ) \
- FT_BEGIN_STMNT \
- gxvalid->debug_indent += 2; \
- FT_TRACE4(( "%*.s", gxvalid->debug_indent, 0 )); \
- FT_TRACE4(( "%s table\n", name )); \
+#define GXV_NAME_ENTER( name ) \
+ FT_BEGIN_STMNT \
+ gxvalid->debug_indent += 2; \
+ FT_TRACE4(( "%*.s", gxvalid->debug_indent, "" )); \
+ FT_TRACE4(( "%s table\n", name )); \
FT_END_STMNT
#define GXV_EXIT gxvalid->debug_indent -= 2
-#define GXV_TRACE( s ) \
- FT_BEGIN_STMNT \
- FT_TRACE4(( "%*.s", gxvalid->debug_indent, 0 )); \
- FT_TRACE4( s ); \
+#define GXV_TRACE( s ) \
+ FT_BEGIN_STMNT \
+ FT_TRACE4(( "%*.s", gxvalid->debug_indent, "" )); \
+ FT_TRACE4( s ); \
FT_END_STMNT
#else /* !FT_DEBUG_LEVEL_TRACE */
diff --git a/freetype/src/gxvalid/gxverror.h b/freetype/src/gxvalid/gxverror.h
index 5d8f0b68..d20d3956 100644
--- a/freetype/src/gxvalid/gxverror.h
+++ b/freetype/src/gxvalid/gxverror.h
@@ -4,7 +4,7 @@
*
* TrueTypeGX/AAT validation module error codes (specification only).
*
- * Copyright (C) 2004-2020 by
+ * Copyright (C) 2004-2021 by
* suzuki toshiya, Masatake YAMATO, Red Hat K.K.,
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
diff --git a/freetype/src/gxvalid/gxvfeat.c b/freetype/src/gxvalid/gxvfeat.c
index 400ec8a3..0a8e2f20 100644
--- a/freetype/src/gxvalid/gxvfeat.c
+++ b/freetype/src/gxvalid/gxvfeat.c
@@ -4,7 +4,7 @@
*
* TrueTypeGX/AAT feat table validation (body).
*
- * Copyright (C) 2004-2020 by
+ * Copyright (C) 2004-2021 by
* suzuki toshiya, Masatake YAMATO, Red Hat K.K.,
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
@@ -90,7 +90,7 @@
if ( feature >= gxv_feat_registry_length )
{
- GXV_TRACE(( "feature number %d is out of range %d\n",
+ GXV_TRACE(( "feature number %d is out of range %lu\n",
feature, gxv_feat_registry_length ));
GXV_SET_ERR_IF_PARANOID( FT_INVALID_DATA );
goto Exit;
diff --git a/freetype/src/gxvalid/gxvfeat.h b/freetype/src/gxvalid/gxvfeat.h
index 435dcefb..f6d28fa7 100644
--- a/freetype/src/gxvalid/gxvfeat.h
+++ b/freetype/src/gxvalid/gxvfeat.h
@@ -4,7 +4,7 @@
*
* TrueTypeGX/AAT feat table validation (specification).
*
- * Copyright (C) 2004-2020 by
+ * Copyright (C) 2004-2021 by
* suzuki toshiya, Masatake YAMATO, Red Hat K.K.,
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
diff --git a/freetype/src/gxvalid/gxvfgen.c b/freetype/src/gxvalid/gxvfgen.c
index fe05a6f3..b47cd0f7 100644
--- a/freetype/src/gxvalid/gxvfgen.c
+++ b/freetype/src/gxvalid/gxvfgen.c
@@ -5,7 +5,7 @@
* Generate feature registry data for gxv `feat' validator.
* This program is derived from gxfeatreg.c in gxlayout.
*
- * Copyright (C) 2004-2020 by
+ * Copyright (C) 2004-2021 by
* Masatake YAMATO and Redhat K.K.
*
* This file may only be used,
diff --git a/freetype/src/gxvalid/gxvjust.c b/freetype/src/gxvalid/gxvjust.c
index 3c7f1f95..ec289b8e 100644
--- a/freetype/src/gxvalid/gxvjust.c
+++ b/freetype/src/gxvalid/gxvjust.c
@@ -4,7 +4,7 @@
*
* TrueTypeGX/AAT just table validation (body).
*
- * Copyright (C) 2005-2020 by
+ * Copyright (C) 2005-2021 by
* suzuki toshiya, Masatake YAMATO, Red Hat K.K.,
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
@@ -78,7 +78,7 @@
return;
GXV_TRACE(( "just table includes too large %s"
- " GID=%d > %d (in maxp)\n",
+ " GID=%d > %ld (in maxp)\n",
msg_tag, gid, gxvalid->face->num_glyphs ));
GXV_SET_ERR_IF_PARANOID( FT_INVALID_GLYPH_ID );
}
@@ -140,7 +140,7 @@
count = FT_NEXT_ULONG( p );
for ( i = 0; i < count; i++ )
{
- GXV_TRACE(( "validating wdc pair %d/%d\n", i + 1, count ));
+ GXV_TRACE(( "validating wdc pair %lu/%lu\n", i + 1, count ));
gxv_just_wdp_entry_validate( p, limit, gxvalid );
p += gxvalid->subtable_length;
}
@@ -206,7 +206,8 @@
if ( lowerLimit >= upperLimit )
{
GXV_TRACE(( "just table includes invalid range spec:"
- " lowerLimit(%d) > upperLimit(%d)\n" ));
+ " lowerLimit(%ld) > upperLimit(%ld)\n",
+ lowerLimit, upperLimit ));
GXV_SET_ERR_IF_PARANOID( FT_INVALID_DATA );
}
@@ -294,14 +295,14 @@
gxvalid->subtable_length = (FT_ULong)( p - table );
if ( variantsAxis != 0x64756374L ) /* 'duct' */
- GXV_TRACE(( "variantsAxis 0x%08x is non default value",
+ GXV_TRACE(( "variantsAxis 0x%08lx is non default value",
variantsAxis ));
if ( minimumLimit > noStretchValue )
- GXV_TRACE(( "type4:minimumLimit 0x%08x > noStretchValue 0x%08x\n",
+ GXV_TRACE(( "type4:minimumLimit 0x%08lx > noStretchValue 0x%08lx\n",
minimumLimit, noStretchValue ));
else if ( noStretchValue > maximumLimit )
- GXV_TRACE(( "type4:noStretchValue 0x%08x > maximumLimit 0x%08x\n",
+ GXV_TRACE(( "type4:noStretchValue 0x%08lx > maximumLimit 0x%08lx\n",
noStretchValue, maximumLimit ));
else if ( !IS_PARANOID_VALIDATION )
return;
@@ -389,7 +390,7 @@
GXV_LIMIT_CHECK( 4 );
actionCount = FT_NEXT_ULONG( p );
- GXV_TRACE(( "actionCount = %d\n", actionCount ));
+ GXV_TRACE(( "actionCount = %lu\n", actionCount ));
for ( i = 0; i < actionCount; i++ )
{
@@ -514,14 +515,14 @@
coverage = FT_NEXT_USHORT( p );
subFeatureFlags = FT_NEXT_ULONG( p );
- GXV_TRACE(( " justClassTable: coverage = 0x%04x (%s) ", coverage ));
+ GXV_TRACE(( " justClassTable: coverage = 0x%04x ", coverage ));
if ( ( coverage & 0x4000 ) == 0 )
GXV_TRACE(( "ascending\n" ));
else
GXV_TRACE(( "descending\n" ));
if ( subFeatureFlags )
- GXV_TRACE(( " justClassTable: nonzero value (0x%08x)"
+ GXV_TRACE(( " justClassTable: nonzero value (0x%08lx)"
" in unused subFeatureFlags\n", subFeatureFlags ));
gxvalid->statetable.optdata = NULL;
@@ -684,7 +685,7 @@
/* Version 1.0 (always:2000) */
- GXV_TRACE(( " (version = 0x%08x)\n", version ));
+ GXV_TRACE(( " (version = 0x%08lx)\n", version ));
if ( version != 0x00010000UL )
FT_INVALID_FORMAT;
diff --git a/freetype/src/gxvalid/gxvkern.c b/freetype/src/gxvalid/gxvkern.c
index cc0b3dfc..542e8bc0 100644
--- a/freetype/src/gxvalid/gxvkern.c
+++ b/freetype/src/gxvalid/gxvkern.c
@@ -4,7 +4,7 @@
*
* TrueTypeGX/AAT kern table validation (body).
*
- * Copyright (C) 2004-2020 by
+ * Copyright (C) 2004-2021 by
* suzuki toshiya, Masatake YAMATO, Red Hat K.K.,
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
@@ -487,7 +487,7 @@
if ( gxvalid->face->num_glyphs != glyphCount )
{
- GXV_TRACE(( "maxGID=%d, but glyphCount=%d\n",
+ GXV_TRACE(( "maxGID=%ld, but glyphCount=%d\n",
gxvalid->face->num_glyphs, glyphCount ));
GXV_SET_ERR_IF_PARANOID( FT_INVALID_GLYPH_ID );
}
@@ -745,7 +745,7 @@
#ifdef GXV_LOAD_TRACE_VARS
FT_UShort version = 0; /* MS only: subtable version, unused */
#endif
- FT_ULong length; /* MS: 16bit, Apple: 32bit*/
+ FT_ULong length; /* MS: 16bit, Apple: 32bit */
FT_UShort coverage;
#ifdef GXV_LOAD_TRACE_VARS
FT_UShort tupleIndex = 0; /* Apple only */
@@ -772,7 +772,7 @@
tupleIndex = 0;
#endif
GXV_TRACE(( "Subtable version = %d\n", version ));
- GXV_TRACE(( "Subtable length = %d\n", length ));
+ GXV_TRACE(( "Subtable length = %lu\n", length ));
break;
case KERN_DIALECT_APPLE:
@@ -783,7 +783,7 @@
#ifdef GXV_LOAD_TRACE_VARS
tupleIndex = 0;
#endif
- GXV_TRACE(( "Subtable length = %d\n", length ));
+ GXV_TRACE(( "Subtable length = %lu\n", length ));
if ( KERN_IS_NEW( gxvalid ) )
{
@@ -800,7 +800,7 @@
default:
length = u16[1];
GXV_TRACE(( "cannot detect subtable dialect, "
- "just skip %d byte\n", length ));
+ "just skip %lu byte\n", length ));
goto Exit;
}
@@ -884,7 +884,7 @@
for ( i = 0; i < nTables; i++ )
{
- GXV_TRACE(( "validating subtable %d/%d\n", i, nTables ));
+ GXV_TRACE(( "validating subtable %d/%lu\n", i, nTables ));
/* p should be 32bit-aligned? */
gxv_kern_subtable_validate( p, 0, gxvalid );
p += gxvalid->subtable_length;
diff --git a/freetype/src/gxvalid/gxvlcar.c b/freetype/src/gxvalid/gxvlcar.c
index 82ac1907..9db839ba 100644
--- a/freetype/src/gxvalid/gxvlcar.c
+++ b/freetype/src/gxvalid/gxvlcar.c
@@ -4,7 +4,7 @@
*
* TrueTypeGX/AAT lcar table validation (body).
*
- * Copyright (C) 2004-2020 by
+ * Copyright (C) 2004-2021 by
* suzuki toshiya, Masatake YAMATO, Red Hat K.K.,
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
diff --git a/freetype/src/gxvalid/gxvmod.c b/freetype/src/gxvalid/gxvmod.c
index a467e871..1a11426c 100644
--- a/freetype/src/gxvalid/gxvmod.c
+++ b/freetype/src/gxvalid/gxvmod.c
@@ -4,7 +4,7 @@
*
* FreeType's TrueTypeGX/AAT validation module implementation (body).
*
- * Copyright (C) 2004-2020 by
+ * Copyright (C) 2004-2021 by
* suzuki toshiya, Masatake YAMATO, Red Hat K.K.,
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
@@ -62,7 +62,7 @@
if ( error )
goto Exit;
- if ( FT_ALLOC( *table, *table_len ) )
+ if ( FT_QALLOC( *table, *table_len ) )
goto Exit;
error = FT_Load_Sfnt_Table( face, tag, 0, *table, table_len );
@@ -76,27 +76,31 @@
FT_Byte* volatile _sfnt = NULL; \
FT_ULong len_ ## _sfnt = 0
-#define GXV_TABLE_LOAD( _sfnt ) \
- if ( ( FT_VALIDATE_ ## _sfnt ## _INDEX < table_count ) && \
- ( gx_flags & FT_VALIDATE_ ## _sfnt ) ) \
- { \
- error = gxv_load_table( face, TTAG_ ## _sfnt, \
- &_sfnt, &len_ ## _sfnt ); \
- if ( error ) \
- goto Exit; \
- }
-
-#define GXV_TABLE_VALIDATE( _sfnt ) \
- if ( _sfnt ) \
- { \
- ft_validator_init( &valid, _sfnt, _sfnt + len_ ## _sfnt, \
- FT_VALIDATE_DEFAULT ); \
- if ( ft_setjmp( valid.jump_buffer ) == 0 ) \
- gxv_ ## _sfnt ## _validate( _sfnt, face, &valid ); \
- error = valid.error; \
- if ( error ) \
- goto Exit; \
- }
+#define GXV_TABLE_LOAD( _sfnt ) \
+ FT_BEGIN_STMNT \
+ if ( ( FT_VALIDATE_ ## _sfnt ## _INDEX < table_count ) && \
+ ( gx_flags & FT_VALIDATE_ ## _sfnt ) ) \
+ { \
+ error = gxv_load_table( face, TTAG_ ## _sfnt, \
+ &_sfnt, &len_ ## _sfnt ); \
+ if ( error ) \
+ goto Exit; \
+ } \
+ FT_END_STMNT
+
+#define GXV_TABLE_VALIDATE( _sfnt ) \
+ FT_BEGIN_STMNT \
+ if ( _sfnt ) \
+ { \
+ ft_validator_init( &valid, _sfnt, _sfnt + len_ ## _sfnt, \
+ FT_VALIDATE_DEFAULT ); \
+ if ( ft_setjmp( valid.jump_buffer ) == 0 ) \
+ gxv_ ## _sfnt ## _validate( _sfnt, face, &valid ); \
+ error = valid.error; \
+ if ( error ) \
+ goto Exit; \
+ } \
+ FT_END_STMNT
#define GXV_TABLE_SET( _sfnt ) \
if ( FT_VALIDATE_ ## _sfnt ## _INDEX < table_count ) \
diff --git a/freetype/src/gxvalid/gxvmod.h b/freetype/src/gxvalid/gxvmod.h
index f2982c96..90e0c10a 100644
--- a/freetype/src/gxvalid/gxvmod.h
+++ b/freetype/src/gxvalid/gxvmod.h
@@ -5,7 +5,7 @@
* FreeType's TrueTypeGX/AAT validation module implementation
* (specification).
*
- * Copyright (C) 2004-2020 by
+ * Copyright (C) 2004-2021 by
* suzuki toshiya, Masatake YAMATO, Red Hat K.K.,
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
diff --git a/freetype/src/gxvalid/gxvmort.c b/freetype/src/gxvalid/gxvmort.c
index aae7f01a..d0db7f4d 100644
--- a/freetype/src/gxvalid/gxvmort.c
+++ b/freetype/src/gxvalid/gxvmort.c
@@ -4,7 +4,7 @@
*
* TrueTypeGX/AAT mort table validation (body).
*
- * Copyright (C) 2005-2020 by
+ * Copyright (C) 2005-2021 by
* suzuki toshiya, Masatake YAMATO, Red Hat K.K.,
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
@@ -288,7 +288,7 @@
for ( i = 0; i < nChains; i++ )
{
- GXV_TRACE(( "validating chain %d/%d\n", i + 1, nChains ));
+ GXV_TRACE(( "validating chain %lu/%lu\n", i + 1, nChains ));
GXV_32BIT_ALIGNMENT_VALIDATE( p - table );
gxv_mort_chain_validate( p, limit, gxvalid );
p += gxvalid->subtable_length;
diff --git a/freetype/src/gxvalid/gxvmort.h b/freetype/src/gxvalid/gxvmort.h
index 7237c582..de5ab4ef 100644
--- a/freetype/src/gxvalid/gxvmort.h
+++ b/freetype/src/gxvalid/gxvmort.h
@@ -4,7 +4,7 @@
*
* TrueTypeGX/AAT common definition for mort table (specification).
*
- * Copyright (C) 2004-2020 by
+ * Copyright (C) 2004-2021 by
* suzuki toshiya, Masatake YAMATO, Red Hat K.K.,
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
diff --git a/freetype/src/gxvalid/gxvmort0.c b/freetype/src/gxvalid/gxvmort0.c
index d452c1cc..0c695aa4 100644
--- a/freetype/src/gxvalid/gxvmort0.c
+++ b/freetype/src/gxvalid/gxvmort0.c
@@ -5,7 +5,7 @@
* TrueTypeGX/AAT mort table validation
* body for type0 (Indic Script Rearrangement) subtable.
*
- * Copyright (C) 2005-2020 by
+ * Copyright (C) 2005-2021 by
* suzuki toshiya, Masatake YAMATO, Red Hat K.K.,
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
diff --git a/freetype/src/gxvalid/gxvmort1.c b/freetype/src/gxvalid/gxvmort1.c
index d743f89f..0af22362 100644
--- a/freetype/src/gxvalid/gxvmort1.c
+++ b/freetype/src/gxvalid/gxvmort1.c
@@ -5,7 +5,7 @@
* TrueTypeGX/AAT mort table validation
* body for type1 (Contextual Substitution) subtable.
*
- * Copyright (C) 2005-2020 by
+ * Copyright (C) 2005-2021 by
* suzuki toshiya, Masatake YAMATO, Red Hat K.K.,
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
diff --git a/freetype/src/gxvalid/gxvmort2.c b/freetype/src/gxvalid/gxvmort2.c
index 9e69e126..73f418ea 100644
--- a/freetype/src/gxvalid/gxvmort2.c
+++ b/freetype/src/gxvalid/gxvmort2.c
@@ -5,7 +5,7 @@
* TrueTypeGX/AAT mort table validation
* body for type2 (Ligature Substitution) subtable.
*
- * Copyright (C) 2005-2020 by
+ * Copyright (C) 2005-2021 by
* suzuki toshiya, Masatake YAMATO, Red Hat K.K.,
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
@@ -152,7 +152,7 @@
GXV_32BIT_ALIGNMENT_VALIDATE( ligActionOffset );
if ( p < lat_base )
{
- GXV_TRACE(( "too short offset 0x%04x: p < lat_base (%d byte rewind)\n",
+ GXV_TRACE(( "too short offset 0x%04x: p < lat_base (%ld byte rewind)\n",
ligActionOffset, lat_base - p ));
/* FontValidator, ftxvalidator, ftxdumperfuser warn but continue */
@@ -160,7 +160,7 @@
}
else if ( lat_limit < p )
{
- GXV_TRACE(( "too large offset 0x%04x: lat_limit < p (%d byte overrun)\n",
+ GXV_TRACE(( "too large offset 0x%04x: lat_limit < p (%ld byte overrun)\n",
ligActionOffset, p - lat_limit ));
/* FontValidator, ftxvalidator, ftxdumperfuser warn but continue */
@@ -187,17 +187,17 @@
offset = lig_action & 0x3FFFFFFFUL;
if ( offset * 2 < optdata->ligatureTable )
{
- GXV_TRACE(( "too short offset 0x%08x:"
- " 2 x offset < ligatureTable (%d byte rewind)\n",
+ GXV_TRACE(( "too short offset 0x%08lx:"
+ " 2 x offset < ligatureTable (%lu byte rewind)\n",
offset, optdata->ligatureTable - offset * 2 ));
GXV_SET_ERR_IF_PARANOID( FT_INVALID_OFFSET );
} else if ( offset * 2 >
optdata->ligatureTable + optdata->ligatureTable_length )
{
- GXV_TRACE(( "too long offset 0x%08x:"
+ GXV_TRACE(( "too long offset 0x%08lx:"
" 2 x offset > ligatureTable + ligatureTable_length"
- " (%d byte overrun)\n",
+ " (%lu byte overrun)\n",
offset,
optdata->ligatureTable + optdata->ligatureTable_length
- offset * 2 ));
diff --git a/freetype/src/gxvalid/gxvmort4.c b/freetype/src/gxvalid/gxvmort4.c
index 4584d204..1b0dd3ed 100644
--- a/freetype/src/gxvalid/gxvmort4.c
+++ b/freetype/src/gxvalid/gxvmort4.c
@@ -5,7 +5,7 @@
* TrueTypeGX/AAT mort table validation
* body for type4 (Non-Contextual Glyph Substitution) subtable.
*
- * Copyright (C) 2005-2020 by
+ * Copyright (C) 2005-2021 by
* suzuki toshiya, Masatake YAMATO, Red Hat K.K.,
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
diff --git a/freetype/src/gxvalid/gxvmort5.c b/freetype/src/gxvalid/gxvmort5.c
index a15a24fe..cfbf3120 100644
--- a/freetype/src/gxvalid/gxvmort5.c
+++ b/freetype/src/gxvalid/gxvmort5.c
@@ -5,7 +5,7 @@
* TrueTypeGX/AAT mort table validation
* body for type5 (Contextual Glyph Insertion) subtable.
*
- * Copyright (C) 2005-2020 by
+ * Copyright (C) 2005-2021 by
* suzuki toshiya, Masatake YAMATO, Red Hat K.K.,
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
@@ -63,7 +63,7 @@
*GXV_mort_subtable_type5_StateOptRecData;
- FT_LOCAL_DEF( void )
+ static void
gxv_mort_subtable_type5_subtable_setup( FT_UShort table_size,
FT_UShort classTable,
FT_UShort stateArray,
diff --git a/freetype/src/gxvalid/gxvmorx.c b/freetype/src/gxvalid/gxvmorx.c
index 754d9f8b..babff518 100644
--- a/freetype/src/gxvalid/gxvmorx.c
+++ b/freetype/src/gxvalid/gxvmorx.c
@@ -4,7 +4,7 @@
*
* TrueTypeGX/AAT morx table validation (body).
*
- * Copyright (C) 2005-2020 by
+ * Copyright (C) 2005-2021 by
* suzuki toshiya, Masatake YAMATO, Red Hat K.K.,
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
@@ -84,7 +84,7 @@
p += 4;
#endif
- GXV_TRACE(( "validating chain subtable %d/%d (%d bytes)\n",
+ GXV_TRACE(( "validating chain subtable %d/%d (%lu bytes)\n",
i + 1, nSubtables, length ));
type = coverage & 0x0007;
@@ -99,7 +99,7 @@
func = fmt_funcs_table[type];
if ( !func )
- GXV_TRACE(( "morx type %d is reserved\n", type ));
+ GXV_TRACE(( "morx type %lu is reserved\n", type ));
func( p, p + rest, gxvalid );
@@ -186,7 +186,7 @@
for ( i = 0; i < nChains; i++ )
{
- GXV_TRACE(( "validating chain %d/%d\n", i + 1, nChains ));
+ GXV_TRACE(( "validating chain %lu/%lu\n", i + 1, nChains ));
GXV_32BIT_ALIGNMENT_VALIDATE( p - table );
gxv_morx_chain_validate( p, limit, gxvalid );
p += gxvalid->subtable_length;
diff --git a/freetype/src/gxvalid/gxvmorx.h b/freetype/src/gxvalid/gxvmorx.h
index f747b1d6..f155f184 100644
--- a/freetype/src/gxvalid/gxvmorx.h
+++ b/freetype/src/gxvalid/gxvmorx.h
@@ -4,7 +4,7 @@
*
* TrueTypeGX/AAT common definition for morx table (specification).
*
- * Copyright (C) 2005-2020 by
+ * Copyright (C) 2005-2021 by
* suzuki toshiya, Masatake YAMATO, Red Hat K.K.,
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
diff --git a/freetype/src/gxvalid/gxvmorx0.c b/freetype/src/gxvalid/gxvmorx0.c
index 5a42e552..e93cea9c 100644
--- a/freetype/src/gxvalid/gxvmorx0.c
+++ b/freetype/src/gxvalid/gxvmorx0.c
@@ -5,7 +5,7 @@
* TrueTypeGX/AAT morx table validation
* body for type0 (Indic Script Rearrangement) subtable.
*
- * Copyright (C) 2005-2020 by
+ * Copyright (C) 2005-2021 by
* suzuki toshiya, Masatake YAMATO, Red Hat K.K.,
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
diff --git a/freetype/src/gxvalid/gxvmorx1.c b/freetype/src/gxvalid/gxvmorx1.c
index 9f8b6906..d380f8d1 100644
--- a/freetype/src/gxvalid/gxvmorx1.c
+++ b/freetype/src/gxvalid/gxvmorx1.c
@@ -5,7 +5,7 @@
* TrueTypeGX/AAT morx table validation
* body for type1 (Contextual Substitution) subtable.
*
- * Copyright (C) 2005-2020 by
+ * Copyright (C) 2005-2021 by
* suzuki toshiya, Masatake YAMATO, Red Hat K.K.,
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
diff --git a/freetype/src/gxvalid/gxvmorx2.c b/freetype/src/gxvalid/gxvmorx2.c
index 98b5c49c..e7e008f0 100644
--- a/freetype/src/gxvalid/gxvmorx2.c
+++ b/freetype/src/gxvalid/gxvmorx2.c
@@ -5,7 +5,7 @@
* TrueTypeGX/AAT morx table validation
* body for type2 (Ligature Substitution) subtable.
*
- * Copyright (C) 2005-2020 by
+ * Copyright (C) 2005-2021 by
* suzuki toshiya, Masatake YAMATO, Red Hat K.K.,
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
@@ -72,11 +72,11 @@
optdata->componentTable = FT_NEXT_ULONG( p );
optdata->ligatureTable = FT_NEXT_ULONG( p );
- GXV_TRACE(( "offset to ligActionTable=0x%08x\n",
+ GXV_TRACE(( "offset to ligActionTable=0x%08lx\n",
optdata->ligActionTable ));
- GXV_TRACE(( "offset to componentTable=0x%08x\n",
+ GXV_TRACE(( "offset to componentTable=0x%08lx\n",
optdata->componentTable ));
- GXV_TRACE(( "offset to ligatureTable=0x%08x\n",
+ GXV_TRACE(( "offset to ligatureTable=0x%08lx\n",
optdata->ligatureTable ));
}
@@ -116,19 +116,19 @@
gxv_set_length_by_ulong_offset( o, l, buff, 6, table_size, gxvalid );
- GXV_TRACE(( "classTable: offset=0x%08x length=0x%08x\n",
+ GXV_TRACE(( "classTable: offset=0x%08lx length=0x%08lx\n",
classTable, *classTable_length_p ));
- GXV_TRACE(( "stateArray: offset=0x%08x length=0x%08x\n",
+ GXV_TRACE(( "stateArray: offset=0x%08lx length=0x%08lx\n",
stateArray, *stateArray_length_p ));
- GXV_TRACE(( "entryTable: offset=0x%08x length=0x%08x\n",
+ GXV_TRACE(( "entryTable: offset=0x%08lx length=0x%08lx\n",
entryTable, *entryTable_length_p ));
- GXV_TRACE(( "ligActionTable: offset=0x%08x length=0x%08x\n",
+ GXV_TRACE(( "ligActionTable: offset=0x%08lx length=0x%08lx\n",
optdata->ligActionTable,
optdata->ligActionTable_length ));
- GXV_TRACE(( "componentTable: offset=0x%08x length=0x%08x\n",
+ GXV_TRACE(( "componentTable: offset=0x%08lx length=0x%08lx\n",
optdata->componentTable,
optdata->componentTable_length ));
- GXV_TRACE(( "ligatureTable: offset=0x%08x length=0x%08x\n",
+ GXV_TRACE(( "ligatureTable: offset=0x%08lx length=0x%08lx\n",
optdata->ligatureTable,
optdata->ligatureTable_length ));
@@ -157,12 +157,12 @@
if ( p < lat_base )
{
- GXV_TRACE(( "p < lat_base (%d byte rewind)\n", lat_base - p ));
+ GXV_TRACE(( "p < lat_base (%ld byte rewind)\n", lat_base - p ));
FT_INVALID_OFFSET;
}
else if ( lat_limit < p )
{
- GXV_TRACE(( "lat_limit < p (%d byte overrun)\n", p - lat_limit ));
+ GXV_TRACE(( "lat_limit < p (%ld byte overrun)\n", p - lat_limit ));
FT_INVALID_OFFSET;
}
@@ -196,7 +196,7 @@
GXV_TRACE(( "ligature action table includes"
" too negative offset moving all GID"
- " below defined range: 0x%04x\n",
+ " below defined range: 0x%04lx\n",
offset & 0xFFFFU ));
GXV_SET_ERR_IF_PARANOID( FT_INVALID_OFFSET );
}
@@ -207,14 +207,14 @@
GXV_TRACE(( "ligature action table includes"
" too large offset moving all GID"
- " over defined range: 0x%04x\n",
+ " over defined range: 0x%04lx\n",
offset & 0xFFFFU ));
GXV_SET_ERR_IF_PARANOID( FT_INVALID_OFFSET );
}
GXV_TRACE(( "ligature action table includes"
" invalid offset to add to 16-bit GID:"
- " 0x%08x\n", offset ));
+ " 0x%08lx\n", offset ));
GXV_SET_ERR_IF_PARANOID( FT_INVALID_OFFSET );
}
}
diff --git a/freetype/src/gxvalid/gxvmorx4.c b/freetype/src/gxvalid/gxvmorx4.c
index 857e4d4e..e632e8d4 100644
--- a/freetype/src/gxvalid/gxvmorx4.c
+++ b/freetype/src/gxvalid/gxvmorx4.c
@@ -5,7 +5,7 @@
* TrueTypeGX/AAT morx table validation
* body for "morx" type4 (Non-Contextual Glyph Substitution) subtable.
*
- * Copyright (C) 2005-2020 by
+ * Copyright (C) 2005-2021 by
* suzuki toshiya, Masatake YAMATO, Red Hat K.K.,
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
diff --git a/freetype/src/gxvalid/gxvmorx5.c b/freetype/src/gxvalid/gxvmorx5.c
index 7ceba077..5ad33976 100644
--- a/freetype/src/gxvalid/gxvmorx5.c
+++ b/freetype/src/gxvalid/gxvmorx5.c
@@ -5,7 +5,7 @@
* TrueTypeGX/AAT morx table validation
* body for type5 (Contextual Glyph Insertion) subtable.
*
- * Copyright (C) 2005-2020 by
+ * Copyright (C) 2005-2021 by
* suzuki toshiya, Masatake YAMATO, Red Hat K.K.,
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
diff --git a/freetype/src/gxvalid/gxvopbd.c b/freetype/src/gxvalid/gxvopbd.c
index a398fe09..7a2feab4 100644
--- a/freetype/src/gxvalid/gxvopbd.c
+++ b/freetype/src/gxvalid/gxvopbd.c
@@ -4,7 +4,7 @@
*
* TrueTypeGX/AAT opbd table validation (body).
*
- * Copyright (C) 2004-2020 by
+ * Copyright (C) 2004-2021 by
* suzuki toshiya, Masatake YAMATO, Red Hat K.K.,
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
@@ -188,7 +188,7 @@
/* only 0x00010000 is defined (1996) */
- GXV_TRACE(( "(version=0x%08x)\n", version ));
+ GXV_TRACE(( "(version=0x%08lx)\n", version ));
if ( 0x00010000UL != version )
FT_INVALID_FORMAT;
diff --git a/freetype/src/gxvalid/gxvprop.c b/freetype/src/gxvalid/gxvprop.c
index bee8bab9..98cd3688 100644
--- a/freetype/src/gxvalid/gxvprop.c
+++ b/freetype/src/gxvalid/gxvprop.c
@@ -4,7 +4,7 @@
*
* TrueTypeGX/AAT prop table validation (body).
*
- * Copyright (C) 2004-2020 by
+ * Copyright (C) 2004-2021 by
* suzuki toshiya, Masatake YAMATO, Red Hat K.K.,
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
@@ -283,7 +283,7 @@
format = FT_NEXT_USHORT( p );
defaultProp = FT_NEXT_USHORT( p );
- GXV_TRACE(( " version 0x%08x\n", version ));
+ GXV_TRACE(( " version 0x%08lx\n", version ));
GXV_TRACE(( " format 0x%04x\n", format ));
GXV_TRACE(( " defaultProp 0x%04x\n", defaultProp ));
@@ -309,7 +309,7 @@
if ( format == 0 )
{
FT_TRACE3(( "(format 0, no per-glyph properties, "
- "remaining %d bytes are skipped)", limit - p ));
+ "remaining %ld bytes are skipped)", limit - p ));
goto Exit;
}
diff --git a/freetype/src/gxvalid/gxvtrak.c b/freetype/src/gxvalid/gxvtrak.c
index 58a631c9..c1ed9287 100644
--- a/freetype/src/gxvalid/gxvtrak.c
+++ b/freetype/src/gxvalid/gxvtrak.c
@@ -4,7 +4,7 @@
*
* TrueTypeGX/AAT trak table validation (body).
*
- * Copyright (C) 2004-2020 by
+ * Copyright (C) 2004-2021 by
* suzuki toshiya, Masatake YAMATO, Red Hat K.K.,
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
@@ -130,7 +130,7 @@
p = table + j * ( 4 + 2 + 2 );
t = FT_NEXT_LONG( p );
if ( t == track )
- GXV_TRACE(( "duplicated entries found for track value 0x%x\n",
+ GXV_TRACE(( "duplicated entries found for track value 0x%lx\n",
track ));
}
}
@@ -243,7 +243,7 @@
vertOffset = FT_NEXT_USHORT( p );
reserved = FT_NEXT_USHORT( p );
- GXV_TRACE(( " (version = 0x%08x)\n", version ));
+ GXV_TRACE(( " (version = 0x%08lx)\n", version ));
GXV_TRACE(( " (format = 0x%04x)\n", format ));
GXV_TRACE(( " (horizOffset = 0x%04x)\n", horizOffset ));
GXV_TRACE(( " (vertOffset = 0x%04x)\n", vertOffset ));
diff --git a/freetype/src/gxvalid/module.mk b/freetype/src/gxvalid/module.mk
index e7d408df..efb9c929 100644
--- a/freetype/src/gxvalid/module.mk
+++ b/freetype/src/gxvalid/module.mk
@@ -2,7 +2,7 @@
# FreeType 2 gxvalid module definition
#
-# Copyright (C) 2004-2020 by
+# Copyright (C) 2004-2021 by
# suzuki toshiya, Masatake YAMATO, Red Hat K.K.,
# David Turner, Robert Wilhelm, and Werner Lemberg.
#
diff --git a/freetype/src/gxvalid/rules.mk b/freetype/src/gxvalid/rules.mk
index d55a4935..8e0b4534 100644
--- a/freetype/src/gxvalid/rules.mk
+++ b/freetype/src/gxvalid/rules.mk
@@ -3,7 +3,7 @@
#
-# Copyright (C) 2004-2020 by
+# Copyright (C) 2004-2021 by
# suzuki toshiya, Masatake YAMATO, Red Hat K.K.,
# David Turner, Robert Wilhelm, and Werner Lemberg.
#
diff --git a/freetype/src/gzip/ftgzip.c b/freetype/src/gzip/ftgzip.c
index de7d0fdd..8f98a7d1 100644
--- a/freetype/src/gzip/ftgzip.c
+++ b/freetype/src/gzip/ftgzip.c
@@ -8,7 +8,7 @@
* parse compressed PCF fonts, as found with many X11 server
* distributions.
*
- * Copyright (C) 2002-2020 by
+ * Copyright (C) 2002-2021 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
@@ -121,24 +121,29 @@
'malloc/free' */
static voidpf
- ft_gzip_alloc( FT_Memory memory,
- uInt items,
- uInt size )
+ ft_gzip_alloc( voidpf opaque,
+ uInt items,
+ uInt size )
{
- FT_ULong sz = (FT_ULong)size * items;
+ FT_Memory memory = (FT_Memory)opaque;
+ FT_ULong sz = (FT_ULong)size * items;
FT_Error error;
- FT_Pointer p = NULL;
+ FT_Pointer p = NULL;
- (void)FT_ALLOC( p, sz );
+ /* allocate and zero out */
+ FT_MEM_ALLOC( p, sz );
return p;
}
static void
- ft_gzip_free( FT_Memory memory,
- voidpf address )
+ ft_gzip_free( voidpf opaque,
+ voidpf address )
{
+ FT_Memory memory = (FT_Memory)opaque;
+
+
FT_MEM_FREE( address );
}
@@ -150,14 +155,14 @@
unsigned items,
unsigned size )
{
- return ft_gzip_alloc( (FT_Memory)opaque, items, size );
+ return ft_gzip_alloc( opaque, items, size );
}
local void
zcfree( voidpf opaque,
voidpf ptr )
{
- ft_gzip_free( (FT_Memory)opaque, ptr );
+ ft_gzip_free( opaque, ptr );
}
#endif /* !SYSTEM_ZLIB && !USE_ZLIB_ZCALLOC */
@@ -304,8 +309,8 @@
}
/* initialize zlib -- there is no zlib header in the compressed stream */
- zstream->zalloc = (alloc_func)ft_gzip_alloc;
- zstream->zfree = (free_func) ft_gzip_free;
+ zstream->zalloc = ft_gzip_alloc;
+ zstream->zfree = ft_gzip_free;
zstream->opaque = stream->memory;
zstream->avail_in = 0;
@@ -462,12 +467,13 @@
FT_ULong count )
{
FT_Error error = FT_Err_Ok;
- FT_ULong delta;
for (;;)
{
- delta = (FT_ULong)( zip->limit - zip->cursor );
+ FT_ULong delta = (FT_ULong)( zip->limit - zip->cursor );
+
+
if ( delta >= count )
delta = count;
@@ -671,7 +677,7 @@
FT_Byte* zip_buff = NULL;
- if ( !FT_ALLOC( zip_buff, zip_size ) )
+ if ( !FT_QALLOC( zip_buff, zip_size ) )
{
FT_ULong count;
@@ -741,8 +747,8 @@
stream.next_out = output;
stream.avail_out = (uInt)*output_len;
- stream.zalloc = (alloc_func)ft_gzip_alloc;
- stream.zfree = (free_func) ft_gzip_free;
+ stream.zalloc = ft_gzip_alloc;
+ stream.zfree = ft_gzip_free;
stream.opaque = memory;
/* This is a temporary fix and will be removed once the internal
diff --git a/freetype/src/gzip/rules.mk b/freetype/src/gzip/rules.mk
index 4ea823f8..1a90ae8f 100644
--- a/freetype/src/gzip/rules.mk
+++ b/freetype/src/gzip/rules.mk
@@ -3,7 +3,7 @@
#
-# Copyright (C) 2002-2020 by
+# Copyright (C) 2002-2021 by
# David Turner, Robert Wilhelm, and Werner Lemberg.
#
# This file is part of the FreeType project, and may only be used, modified,
diff --git a/freetype/src/lzw/ftlzw.c b/freetype/src/lzw/ftlzw.c
index ddb81e6e..e112418a 100644
--- a/freetype/src/lzw/ftlzw.c
+++ b/freetype/src/lzw/ftlzw.c
@@ -8,7 +8,7 @@
* be used to parse compressed PCF fonts, as found with many X11 server
* distributions.
*
- * Copyright (C) 2004-2020 by
+ * Copyright (C) 2004-2021 by
* Albert Chin-A-Young.
*
* based on code in `src/gzip/ftgzip.c'
@@ -383,7 +383,7 @@
stream->size = 0x7FFFFFFFL; /* don't know the real size! */
stream->pos = 0;
- stream->base = 0;
+ stream->base = NULL;
stream->read = ft_lzw_stream_io;
stream->close = ft_lzw_stream_close;
diff --git a/freetype/src/lzw/ftzopen.c b/freetype/src/lzw/ftzopen.c
index 884d2ec7..8b5b357f 100644
--- a/freetype/src/lzw/ftzopen.c
+++ b/freetype/src/lzw/ftzopen.c
@@ -8,7 +8,7 @@
* be used to parse compressed PCF fonts, as found with many X11 server
* distributions.
*
- * Copyright (C) 2005-2020 by
+ * Copyright (C) 2005-2021 by
* David Turner.
*
* This file is part of the FreeType project, and may only be used,
@@ -127,6 +127,7 @@
new_size = new_size + ( new_size >> 1 ) + 4;
+ /* if relocating to heap */
if ( state->stack == state->stack_0 )
{
state->stack = NULL;
@@ -142,9 +143,13 @@
return -1;
}
- if ( FT_RENEW_ARRAY( state->stack, old_size, new_size ) )
+ if ( FT_QRENEW_ARRAY( state->stack, old_size, new_size ) )
return -1;
+ /* if relocating to heap */
+ if ( old_size == 0 )
+ FT_MEM_COPY( state->stack, state->stack_0, FT_LZW_DEFAULT_STACK_SIZE );
+
state->stack_size = new_size;
}
return 0;
diff --git a/freetype/src/lzw/ftzopen.h b/freetype/src/lzw/ftzopen.h
index d8768f7b..9ada742c 100644
--- a/freetype/src/lzw/ftzopen.h
+++ b/freetype/src/lzw/ftzopen.h
@@ -8,7 +8,7 @@
* be used to parse compressed PCF fonts, as found with many X11 server
* distributions.
*
- * Copyright (C) 2005-2020 by
+ * Copyright (C) 2005-2021 by
* David Turner.
*
* This file is part of the FreeType project, and may only be used,
diff --git a/freetype/src/lzw/rules.mk b/freetype/src/lzw/rules.mk
index 3468ee02..747cbdcc 100644
--- a/freetype/src/lzw/rules.mk
+++ b/freetype/src/lzw/rules.mk
@@ -3,7 +3,7 @@
#
-# Copyright (C) 2004-2020 by
+# Copyright (C) 2004-2021 by
# Albert Chin-A-Young.
#
# based on `src/lzw/rules.mk'
diff --git a/freetype/src/otvalid/module.mk b/freetype/src/otvalid/module.mk
index 67b9820d..30093492 100644
--- a/freetype/src/otvalid/module.mk
+++ b/freetype/src/otvalid/module.mk
@@ -3,7 +3,7 @@
#
-# Copyright (C) 2004-2020 by
+# Copyright (C) 2004-2021 by
# David Turner, Robert Wilhelm, and Werner Lemberg.
#
# This file is part of the FreeType project, and may only be used, modified,
diff --git a/freetype/src/otvalid/otvalid.c b/freetype/src/otvalid/otvalid.c
index d640209f..869233ce 100644
--- a/freetype/src/otvalid/otvalid.c
+++ b/freetype/src/otvalid/otvalid.c
@@ -4,7 +4,7 @@
*
* FreeType validator for OpenType tables (body only).
*
- * Copyright (C) 2004-2020 by
+ * Copyright (C) 2004-2021 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
diff --git a/freetype/src/otvalid/otvalid.h b/freetype/src/otvalid/otvalid.h
index 8208ff01..f8ca454d 100644
--- a/freetype/src/otvalid/otvalid.h
+++ b/freetype/src/otvalid/otvalid.h
@@ -4,7 +4,7 @@
*
* OpenType table validation (specification only).
*
- * Copyright (C) 2004-2020 by
+ * Copyright (C) 2004-2021 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
diff --git a/freetype/src/otvalid/otvbase.c b/freetype/src/otvalid/otvbase.c
index 250ae98a..83f998cd 100644
--- a/freetype/src/otvalid/otvbase.c
+++ b/freetype/src/otvalid/otvbase.c
@@ -4,7 +4,7 @@
*
* OpenType BASE table validation (body).
*
- * Copyright (C) 2004-2020 by
+ * Copyright (C) 2004-2021 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
diff --git a/freetype/src/otvalid/otvcommn.c b/freetype/src/otvalid/otvcommn.c
index faaa8468..40624bb1 100644
--- a/freetype/src/otvalid/otvcommn.c
+++ b/freetype/src/otvalid/otvcommn.c
@@ -4,7 +4,7 @@
*
* OpenType common tables validation (body).
*
- * Copyright (C) 2004-2020 by
+ * Copyright (C) 2004-2021 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
diff --git a/freetype/src/otvalid/otvcommn.h b/freetype/src/otvalid/otvcommn.h
index f9926034..3b096ecc 100644
--- a/freetype/src/otvalid/otvcommn.h
+++ b/freetype/src/otvalid/otvcommn.h
@@ -4,7 +4,7 @@
*
* OpenType common tables validation (specification).
*
- * Copyright (C) 2004-2020 by
+ * Copyright (C) 2004-2021 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
@@ -105,10 +105,11 @@ FT_BEGIN_HEADER
FT_Byte* pp = (FT_Byte*)_size ## _p; \
\
\
- FT_TRACE3(( "\n" \
- "Invalid offset to optional table `%s'" \
- " set to zero.\n" \
- "\n", #_size )); \
+ FT_TRACE3(( "\n" )); \
+ FT_TRACE3(( "Invalid offset to optional table `%s'" \
+ " set to zero.\n", \
+ #_size )); \
+ FT_TRACE3(( "\n" )); \
\
_size = pp[0] = pp[1] = 0; \
} \
@@ -127,10 +128,11 @@ FT_BEGIN_HEADER
FT_Byte* pp = (FT_Byte*)_size ## _p; \
\
\
- FT_TRACE3(( "\n" \
- "Invalid offset to optional table `%s'" \
- " set to zero.\n" \
- "\n", #_size )); \
+ FT_TRACE3(( "\n" )); \
+ FT_TRACE3(( "Invalid offset to optional table `%s'" \
+ " set to zero.\n", \
+ #_size )); \
+ FT_TRACE3(( "\n" )); \
\
_size = pp[0] = pp[1] = pp[2] = pp[3] = 0; \
} \
@@ -178,24 +180,24 @@ FT_BEGIN_HEADER
#define OTV_ENTER \
FT_BEGIN_STMNT \
otvalid->debug_indent += 2; \
- FT_TRACE4(( "%*.s", otvalid->debug_indent, 0 )); \
+ FT_TRACE4(( "%*.s", otvalid->debug_indent, "" )); \
FT_TRACE4(( "%s table\n", \
otvalid->debug_function_name[otvalid->nesting_level] )); \
FT_END_STMNT
-#define OTV_NAME_ENTER( name ) \
- FT_BEGIN_STMNT \
- otvalid->debug_indent += 2; \
- FT_TRACE4(( "%*.s", otvalid->debug_indent, 0 )); \
- FT_TRACE4(( "%s table\n", name )); \
+#define OTV_NAME_ENTER( name ) \
+ FT_BEGIN_STMNT \
+ otvalid->debug_indent += 2; \
+ FT_TRACE4(( "%*.s", otvalid->debug_indent, "" )); \
+ FT_TRACE4(( "%s table\n", name )); \
FT_END_STMNT
#define OTV_EXIT otvalid->debug_indent -= 2
-#define OTV_TRACE( s ) \
- FT_BEGIN_STMNT \
- FT_TRACE4(( "%*.s", otvalid->debug_indent, 0 )); \
- FT_TRACE4( s ); \
+#define OTV_TRACE( s ) \
+ FT_BEGIN_STMNT \
+ FT_TRACE4(( "%*.s", otvalid->debug_indent, "" )); \
+ FT_TRACE4( s ); \
FT_END_STMNT
#else /* !FT_DEBUG_LEVEL_TRACE */
diff --git a/freetype/src/otvalid/otverror.h b/freetype/src/otvalid/otverror.h
index 979e9cbd..3e23234f 100644
--- a/freetype/src/otvalid/otverror.h
+++ b/freetype/src/otvalid/otverror.h
@@ -4,7 +4,7 @@
*
* OpenType validation module error codes (specification only).
*
- * Copyright (C) 2004-2020 by
+ * Copyright (C) 2004-2021 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
diff --git a/freetype/src/otvalid/otvgdef.c b/freetype/src/otvalid/otvgdef.c
index 88874b84..5a160a41 100644
--- a/freetype/src/otvalid/otvgdef.c
+++ b/freetype/src/otvalid/otvgdef.c
@@ -4,7 +4,7 @@
*
* OpenType GDEF table validation (body).
*
- * Copyright (C) 2004-2020 by
+ * Copyright (C) 2004-2021 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
diff --git a/freetype/src/otvalid/otvgpos.c b/freetype/src/otvalid/otvgpos.c
index 29d56f91..e0d4e420 100644
--- a/freetype/src/otvalid/otvgpos.c
+++ b/freetype/src/otvalid/otvgpos.c
@@ -4,7 +4,7 @@
*
* OpenType GPOS table validation (body).
*
- * Copyright (C) 2002-2020 by
+ * Copyright (C) 2002-2021 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
diff --git a/freetype/src/otvalid/otvgpos.h b/freetype/src/otvalid/otvgpos.h
index 06a03a0e..176a6888 100644
--- a/freetype/src/otvalid/otvgpos.h
+++ b/freetype/src/otvalid/otvgpos.h
@@ -4,7 +4,7 @@
*
* OpenType GPOS table validator (specification).
*
- * Copyright (C) 2004-2020 by
+ * Copyright (C) 2004-2021 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
diff --git a/freetype/src/otvalid/otvgsub.c b/freetype/src/otvalid/otvgsub.c
index f0d563ba..b426a174 100644
--- a/freetype/src/otvalid/otvgsub.c
+++ b/freetype/src/otvalid/otvgsub.c
@@ -4,7 +4,7 @@
*
* OpenType GSUB table validation (body).
*
- * Copyright (C) 2004-2020 by
+ * Copyright (C) 2004-2021 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
diff --git a/freetype/src/otvalid/otvjstf.c b/freetype/src/otvalid/otvjstf.c
index 79de7b80..404dda88 100644
--- a/freetype/src/otvalid/otvjstf.c
+++ b/freetype/src/otvalid/otvjstf.c
@@ -4,7 +4,7 @@
*
* OpenType JSTF table validation (body).
*
- * Copyright (C) 2004-2020 by
+ * Copyright (C) 2004-2021 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
diff --git a/freetype/src/otvalid/otvmath.c b/freetype/src/otvalid/otvmath.c
index dfdeaaba..b4bfabb6 100644
--- a/freetype/src/otvalid/otvmath.c
+++ b/freetype/src/otvalid/otvmath.c
@@ -4,7 +4,7 @@
*
* OpenType MATH table validation (body).
*
- * Copyright (C) 2007-2020 by
+ * Copyright (C) 2007-2021 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* Written by George Williams.
@@ -141,7 +141,7 @@
OTV_OPTIONAL_TABLE( DeviceTableOffset );
- /* OTV_NAME_ENTER( "MathKern" );*/
+ /* OTV_NAME_ENTER( "MathKern" ); */
OTV_LIMIT_CHECK( 2 );
diff --git a/freetype/src/otvalid/otvmod.c b/freetype/src/otvalid/otvmod.c
index 0188b270..b7d674b5 100644
--- a/freetype/src/otvalid/otvmod.c
+++ b/freetype/src/otvalid/otvmod.c
@@ -4,7 +4,7 @@
*
* FreeType's OpenType validation module implementation (body).
*
- * Copyright (C) 2004-2020 by
+ * Copyright (C) 2004-2021 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
@@ -53,7 +53,7 @@
if ( error )
goto Exit;
- if ( FT_ALLOC( *table, *table_len ) )
+ if ( FT_QALLOC( *table, *table_len ) )
goto Exit;
error = FT_Load_Sfnt_Table( face, tag, 0, *table, table_len );
@@ -94,7 +94,7 @@
*/
if ( face->num_glyphs > 0xFFFFL )
{
- FT_TRACE1(( "otv_validate: Invalid glyphs index (0x0000FFFF - 0x%08x) ",
+ FT_TRACE1(( "otv_validate: Invalid glyphs index (0x0000FFFF - 0x%08lx) ",
face->num_glyphs ));
FT_TRACE1(( "are not handled by OpenType tables\n" ));
num_glyphs = 0xFFFF;
diff --git a/freetype/src/otvalid/otvmod.h b/freetype/src/otvalid/otvmod.h
index efd6da03..37c20e00 100644
--- a/freetype/src/otvalid/otvmod.h
+++ b/freetype/src/otvalid/otvmod.h
@@ -5,7 +5,7 @@
* FreeType's OpenType validation module implementation
* (specification).
*
- * Copyright (C) 2004-2020 by
+ * Copyright (C) 2004-2021 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
diff --git a/freetype/src/otvalid/rules.mk b/freetype/src/otvalid/rules.mk
index 7f0169fd..634a3506 100644
--- a/freetype/src/otvalid/rules.mk
+++ b/freetype/src/otvalid/rules.mk
@@ -3,7 +3,7 @@
#
-# Copyright (C) 2004-2020 by
+# Copyright (C) 2004-2021 by
# David Turner, Robert Wilhelm, and Werner Lemberg.
#
# This file is part of the FreeType project, and may only be used, modified,
diff --git a/freetype/src/pcf/pcfdrivr.c b/freetype/src/pcf/pcfdrivr.c
index e9dd5175..2a40af9e 100644
--- a/freetype/src/pcf/pcfdrivr.c
+++ b/freetype/src/pcf/pcfdrivr.c
@@ -606,7 +606,7 @@ THE SOFTWARE.
if ( prop->value.l > 0x7FFFFFFFL ||
prop->value.l < ( -1 - 0x7FFFFFFFL ) )
{
- FT_TRACE1(( "pcf_get_bdf_property:"
+ FT_TRACE2(( "pcf_get_bdf_property:"
" too large integer 0x%lx is truncated\n",
prop->value.l ));
}
@@ -705,7 +705,7 @@ THE SOFTWARE.
#endif /* !PCF_CONFIG_OPTION_LONG_FAMILY_NAMES */
- FT_TRACE0(( "pcf_property_set: missing property `%s'\n",
+ FT_TRACE2(( "pcf_property_set: missing property `%s'\n",
property_name ));
return FT_THROW( Missing_Property );
}
@@ -743,7 +743,7 @@ THE SOFTWARE.
#endif /* !PCF_CONFIG_OPTION_LONG_FAMILY_NAMES */
- FT_TRACE0(( "pcf_property_get: missing property `%s'\n",
+ FT_TRACE2(( "pcf_property_get: missing property `%s'\n",
property_name ));
return FT_THROW( Missing_Property );
}
diff --git a/freetype/src/pcf/pcfread.c b/freetype/src/pcf/pcfread.c
index 8817682c..e60a0a51 100644
--- a/freetype/src/pcf/pcfread.c
+++ b/freetype/src/pcf/pcfread.c
@@ -127,7 +127,7 @@ THE SOFTWARE.
toc->count = FT_MIN( stream->size >> 4, 9 );
}
- if ( FT_NEW_ARRAY( face->toc.tables, toc->count ) )
+ if ( FT_QNEW_ARRAY( face->toc.tables, toc->count ) )
return error;
tables = face->toc.tables;
@@ -238,7 +238,7 @@ THE SOFTWARE.
{
for ( j = 0; j < sizeof ( tableNames ) / sizeof ( tableNames[0] );
j++ )
- if ( tables[i].type == (FT_UInt)( 1 << j ) )
+ if ( tables[i].type == 1UL << j )
name = tableNames[j];
FT_TRACE4(( " %d: type=%s, format=0x%lX,"
@@ -501,8 +501,8 @@ THE SOFTWARE.
if ( FT_READ_ULONG_LE( format ) )
goto Bail;
- FT_TRACE4(( "pcf_get_properties:\n"
- " format: 0x%lX (%s)\n",
+ FT_TRACE4(( "pcf_get_properties:\n" ));
+ FT_TRACE4(( " format: 0x%lX (%s)\n",
format,
PCF_BYTE_ORDER( format ) == MSBFirst ? "MSB" : "LSB" ));
@@ -540,7 +540,7 @@ THE SOFTWARE.
face->nprops = (int)nprops;
- if ( FT_NEW_ARRAY( props, nprops ) )
+ if ( FT_QNEW_ARRAY( props, nprops ) )
goto Bail;
for ( i = 0; i < nprops; i++ )
@@ -607,13 +607,13 @@ THE SOFTWARE.
}
/* allocate one more byte so that we have a final null byte */
- if ( FT_NEW_ARRAY( strings, string_size + 1 ) )
+ if ( FT_QALLOC( strings, string_size + 1 ) ||
+ FT_STREAM_READ( strings, string_size ) )
goto Bail;
- error = FT_Stream_Read( stream, (FT_Byte*)strings, string_size );
- if ( error )
- goto Bail;
+ strings[string_size] = '\0';
+ /* zero out in case of failure */
if ( FT_NEW_ARRAY( properties, nprops ) )
goto Bail;
@@ -697,8 +697,8 @@ THE SOFTWARE.
if ( FT_READ_ULONG_LE( format ) )
goto Bail;
- FT_TRACE4(( "pcf_get_metrics:\n"
- " format: 0x%lX (%s, %s)\n",
+ FT_TRACE4(( "pcf_get_metrics:\n" ));
+ FT_TRACE4(( " format: 0x%lX (%s, %s)\n",
format,
PCF_BYTE_ORDER( format ) == MSBFirst ? "MSB" : "LSB",
PCF_FORMAT_MATCH( format, PCF_COMPRESSED_METRICS ) ?
@@ -767,7 +767,7 @@ THE SOFTWARE.
face->nmetrics = nmetrics + 1;
- if ( FT_NEW_ARRAY( face->metrics, face->nmetrics ) )
+ if ( FT_QNEW_ARRAY( face->metrics, face->nmetrics ) )
return error;
/* we handle glyph index 0 later on */
@@ -840,17 +840,16 @@ THE SOFTWARE.
FT_Stream_ExitFrame( stream );
- FT_TRACE4(( "pcf_get_bitmaps:\n"
- " format: 0x%lX\n"
- " (%s, %s,\n"
- " padding=%d bit%s, scanning=%d bit%s)\n",
- format,
+ FT_TRACE4(( "pcf_get_bitmaps:\n" ));
+ FT_TRACE4(( " format: 0x%lX\n", format ));
+ FT_TRACE4(( " (%s, %s,\n",
PCF_BYTE_ORDER( format ) == MSBFirst
? "most significant byte first"
: "least significant byte first",
PCF_BIT_ORDER( format ) == MSBFirst
? "most significant bit first"
- : "least significant bit first",
+ : "least significant bit first" ));
+ FT_TRACE4(( " padding=%d bit%s, scanning=%d bit%s)\n",
8 << PCF_GLYPH_PAD_INDEX( format ),
( 8 << PCF_GLYPH_PAD_INDEX( format ) ) == 1 ? "" : "s",
8 << PCF_SCAN_UNIT_INDEX( format ),
@@ -1001,8 +1000,8 @@ THE SOFTWARE.
if ( FT_READ_ULONG_LE( format ) )
goto Bail;
- FT_TRACE4(( "pcf_get_encodings:\n"
- " format: 0x%lX (%s)\n",
+ FT_TRACE4(( "pcf_get_encodings:\n" ));
+ FT_TRACE4(( " format: 0x%lX (%s)\n",
format,
PCF_BYTE_ORDER( format ) == MSBFirst ? "MSB" : "LSB" ));
@@ -1021,11 +1020,11 @@ THE SOFTWARE.
goto Bail;
}
- FT_TRACE4(( " firstCol 0x%X, lastCol 0x%X\n"
- " firstRow 0x%X, lastRow 0x%X\n"
- " defaultChar 0x%X\n",
- enc->firstCol, enc->lastCol,
- enc->firstRow, enc->lastRow,
+ FT_TRACE4(( " firstCol 0x%X, lastCol 0x%X\n",
+ enc->firstCol, enc->lastCol ));
+ FT_TRACE4(( " firstRow 0x%X, lastRow 0x%X\n",
+ enc->firstRow, enc->lastRow ));
+ FT_TRACE4(( " defaultChar 0x%X\n",
enc->defaultChar ));
/* sanity checks; we limit numbers of rows and columns to 256 */
@@ -1088,8 +1087,8 @@ THE SOFTWARE.
if ( defaultCharEncodingOffset == 0xFFFF )
{
FT_TRACE0(( "pcf_get_encodings:"
- " No glyph for default character,\n"
- " "
+ " No glyph for default character,\n" ));
+ FT_TRACE0(( " "
" setting it to the first glyph of the font\n" ));
defaultCharEncodingOffset = 1;
}
@@ -1100,8 +1099,8 @@ THE SOFTWARE.
if ( defaultCharEncodingOffset >= face->nmetrics )
{
FT_TRACE0(( "pcf_get_encodings:"
- " Invalid glyph index for default character,\n"
- " "
+ " Invalid glyph index for default character,\n" ));
+ FT_TRACE0(( " "
" setting it to the first glyph of the font\n" ));
defaultCharEncodingOffset = 1;
}
@@ -1208,10 +1207,10 @@ THE SOFTWARE.
if ( FT_READ_ULONG_LE( format ) )
goto Bail;
- FT_TRACE4(( "pcf_get_accel%s:\n"
- " format: 0x%lX (%s, %s)\n",
+ FT_TRACE4(( "pcf_get_accel%s:\n",
type == PCF_BDF_ACCELERATORS ? " (getting BDF accelerators)"
- : "",
+ : "" ));
+ FT_TRACE4(( " format: 0x%lX (%s, %s)\n",
format,
PCF_BYTE_ORDER( format ) == MSBFirst ? "MSB" : "LSB",
PCF_FORMAT_MATCH( format, PCF_ACCEL_W_INKBOUNDS ) ?
@@ -1233,16 +1232,16 @@ THE SOFTWARE.
}
FT_TRACE5(( " noOverlap=%s, constantMetrics=%s,"
- " terminalFont=%s, constantWidth=%s\n"
- " inkInside=%s, inkMetrics=%s, drawDirection=%s\n"
- " fontAscent=%ld, fontDescent=%ld, maxOverlap=%ld\n",
+ " terminalFont=%s, constantWidth=%s\n",
accel->noOverlap ? "yes" : "no",
accel->constantMetrics ? "yes" : "no",
accel->terminalFont ? "yes" : "no",
- accel->constantWidth ? "yes" : "no",
+ accel->constantWidth ? "yes" : "no" ));
+ FT_TRACE5(( " inkInside=%s, inkMetrics=%s, drawDirection=%s\n",
accel->inkInside ? "yes" : "no",
accel->inkMetrics ? "yes" : "no",
- accel->drawDirection ? "RTL" : "LTR",
+ accel->drawDirection ? "RTL" : "LTR" ));
+ FT_TRACE5(( " fontAscent=%ld, fontDescent=%ld, maxOverlap=%ld\n",
accel->fontAscent,
accel->fontDescent,
accel->maxOverlap ));
@@ -1369,7 +1368,7 @@ THE SOFTWARE.
char* s;
- if ( FT_ALLOC( face->style_name, len ) )
+ if ( FT_QALLOC( face->style_name, len ) )
return error;
s = face->style_name;
@@ -1533,7 +1532,7 @@ THE SOFTWARE.
{
l += ft_strlen( foundry_prop->value.atom ) + 1;
- if ( FT_NEW_ARRAY( root->family_name, l ) )
+ if ( FT_QALLOC( root->family_name, l ) )
goto Exit;
ft_strcpy( root->family_name, foundry_prop->value.atom );
@@ -1542,7 +1541,7 @@ THE SOFTWARE.
}
else
{
- if ( FT_NEW_ARRAY( root->family_name, l ) )
+ if ( FT_QALLOC( root->family_name, l ) )
goto Exit;
ft_strcpy( root->family_name, prop->value.atom );
@@ -1566,7 +1565,7 @@ THE SOFTWARE.
root->num_glyphs = (FT_Long)face->nmetrics;
root->num_fixed_sizes = 1;
- if ( FT_NEW_ARRAY( root->available_sizes, 1 ) )
+ if ( FT_NEW( root->available_sizes ) )
goto Exit;
{
@@ -1574,8 +1573,6 @@ THE SOFTWARE.
FT_Short resolution_x = 0, resolution_y = 0;
- FT_ZERO( bsize );
-
/* for simplicity, we take absolute values of integer properties */
#if 0
@@ -1616,7 +1613,7 @@ THE SOFTWARE.
else
{
/* this is a heuristical value */
- bsize->width = (FT_Short)FT_MulDiv( bsize->height, 2, 3 );
+ bsize->width = ( bsize->height * 2 + 1 ) / 3;
}
prop = pcf_find_property( face, "POINT_SIZE" );
diff --git a/freetype/src/pfr/module.mk b/freetype/src/pfr/module.mk
index 762353dd..4f49e12d 100644
--- a/freetype/src/pfr/module.mk
+++ b/freetype/src/pfr/module.mk
@@ -3,7 +3,7 @@
#
-# Copyright (C) 2002-2020 by
+# Copyright (C) 2002-2021 by
# David Turner, Robert Wilhelm, and Werner Lemberg.
#
# This file is part of the FreeType project, and may only be used, modified,
diff --git a/freetype/src/pfr/pfr.c b/freetype/src/pfr/pfr.c
index 9264c77d..4058ad56 100644
--- a/freetype/src/pfr/pfr.c
+++ b/freetype/src/pfr/pfr.c
@@ -4,7 +4,7 @@
*
* FreeType PFR driver component.
*
- * Copyright (C) 2002-2020 by
+ * Copyright (C) 2002-2021 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
diff --git a/freetype/src/pfr/pfrcmap.c b/freetype/src/pfr/pfrcmap.c
index ebc7b843..6a7f5735 100644
--- a/freetype/src/pfr/pfrcmap.c
+++ b/freetype/src/pfr/pfrcmap.c
@@ -4,7 +4,7 @@
*
* FreeType PFR cmap handling (body).
*
- * Copyright (C) 2002-2020 by
+ * Copyright (C) 2002-2021 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
diff --git a/freetype/src/pfr/pfrcmap.h b/freetype/src/pfr/pfrcmap.h
index a6d920c3..17c02a2b 100644
--- a/freetype/src/pfr/pfrcmap.h
+++ b/freetype/src/pfr/pfrcmap.h
@@ -4,7 +4,7 @@
*
* FreeType PFR cmap handling (specification).
*
- * Copyright (C) 2002-2020 by
+ * Copyright (C) 2002-2021 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
diff --git a/freetype/src/pfr/pfrdrivr.c b/freetype/src/pfr/pfrdrivr.c
index b1432087..16b8f794 100644
--- a/freetype/src/pfr/pfrdrivr.c
+++ b/freetype/src/pfr/pfrdrivr.c
@@ -4,7 +4,7 @@
*
* FreeType PFR driver interface (body).
*
- * Copyright (C) 2002-2020 by
+ * Copyright (C) 2002-2021 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
diff --git a/freetype/src/pfr/pfrdrivr.h b/freetype/src/pfr/pfrdrivr.h
index 7646b4d1..6ff16fea 100644
--- a/freetype/src/pfr/pfrdrivr.h
+++ b/freetype/src/pfr/pfrdrivr.h
@@ -4,7 +4,7 @@
*
* High-level Type PFR driver interface (specification).
*
- * Copyright (C) 2002-2020 by
+ * Copyright (C) 2002-2021 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
diff --git a/freetype/src/pfr/pfrerror.h b/freetype/src/pfr/pfrerror.h
index 33460ef4..255696ef 100644
--- a/freetype/src/pfr/pfrerror.h
+++ b/freetype/src/pfr/pfrerror.h
@@ -4,7 +4,7 @@
*
* PFR error codes (specification only).
*
- * Copyright (C) 2002-2020 by
+ * Copyright (C) 2002-2021 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
diff --git a/freetype/src/pfr/pfrgload.c b/freetype/src/pfr/pfrgload.c
index aa640c3b..b400042a 100644
--- a/freetype/src/pfr/pfrgload.c
+++ b/freetype/src/pfr/pfrgload.c
@@ -4,7 +4,7 @@
*
* FreeType PFR glyph loader (body).
*
- * Copyright (C) 2002-2020 by
+ * Copyright (C) 2002-2021 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
diff --git a/freetype/src/pfr/pfrgload.h b/freetype/src/pfr/pfrgload.h
index f356b4c7..b726d564 100644
--- a/freetype/src/pfr/pfrgload.h
+++ b/freetype/src/pfr/pfrgload.h
@@ -4,7 +4,7 @@
*
* FreeType PFR glyph loader (specification).
*
- * Copyright (C) 2002-2020 by
+ * Copyright (C) 2002-2021 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
diff --git a/freetype/src/pfr/pfrload.c b/freetype/src/pfr/pfrload.c
index a2832e55..a9c1e283 100644
--- a/freetype/src/pfr/pfrload.c
+++ b/freetype/src/pfr/pfrload.c
@@ -4,7 +4,7 @@
*
* FreeType PFR loader (body).
*
- * Copyright (C) 2002-2020 by
+ * Copyright (C) 2002-2021 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
@@ -565,7 +565,7 @@
if ( phy_font->font_id )
goto Exit;
- if ( FT_ALLOC( phy_font->font_id, len + 1 ) )
+ if ( FT_QALLOC( phy_font->font_id, len + 1 ) )
goto Exit;
/* copy font ID name, and terminate it for safety */
@@ -601,7 +601,7 @@
PFR_CHECK( count * 2 );
- if ( FT_NEW_ARRAY( snaps, count ) )
+ if ( FT_QNEW_ARRAY( snaps, count ) )
goto Exit;
phy_font->vertical.stem_snaps = snaps;
@@ -761,7 +761,7 @@
if ( ok )
{
- if ( FT_ALLOC( result, len + 1 ) )
+ if ( FT_QALLOC( result, len + 1 ) )
goto Exit;
FT_MEM_COPY( result, p, len );
@@ -953,7 +953,7 @@
PFR_CHECK( count * 2 );
- if ( FT_NEW_ARRAY( phy_font->blue_values, count ) )
+ if ( FT_QNEW_ARRAY( phy_font->blue_values, count ) )
goto Fail;
for ( n = 0; n < count; n++ )
diff --git a/freetype/src/pfr/pfrload.h b/freetype/src/pfr/pfrload.h
index 7615b9ce..4f467d1b 100644
--- a/freetype/src/pfr/pfrload.h
+++ b/freetype/src/pfr/pfrload.h
@@ -4,7 +4,7 @@
*
* FreeType PFR loader (specification).
*
- * Copyright (C) 2002-2020 by
+ * Copyright (C) 2002-2021 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
diff --git a/freetype/src/pfr/pfrobjs.c b/freetype/src/pfr/pfrobjs.c
index 918e7fd4..3080cb65 100644
--- a/freetype/src/pfr/pfrobjs.c
+++ b/freetype/src/pfr/pfrobjs.c
@@ -4,7 +4,7 @@
*
* FreeType PFR object methods (body).
*
- * Copyright (C) 2002-2020 by
+ * Copyright (C) 2002-2021 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
@@ -83,7 +83,11 @@
/* load the header and check it */
error = pfr_header_load( &face->header, stream );
if ( error )
+ {
+ FT_TRACE2(( " not a PFR font\n" ));
+ error = FT_THROW( Unknown_File_Format );
goto Exit;
+ }
if ( !pfr_header_check( &face->header ) )
{
@@ -213,7 +217,7 @@
FT_Memory memory = pfrface->stream->memory;
- if ( FT_NEW_ARRAY( pfrface->available_sizes, count ) )
+ if ( FT_QNEW_ARRAY( pfrface->available_sizes, count ) )
goto Exit;
size = pfrface->available_sizes;
diff --git a/freetype/src/pfr/pfrobjs.h b/freetype/src/pfr/pfrobjs.h
index 808822f1..70b05395 100644
--- a/freetype/src/pfr/pfrobjs.h
+++ b/freetype/src/pfr/pfrobjs.h
@@ -4,7 +4,7 @@
*
* FreeType PFR object methods (specification).
*
- * Copyright (C) 2002-2020 by
+ * Copyright (C) 2002-2021 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
diff --git a/freetype/src/pfr/pfrsbit.c b/freetype/src/pfr/pfrsbit.c
index a6691e6d..255fd587 100644
--- a/freetype/src/pfr/pfrsbit.c
+++ b/freetype/src/pfr/pfrsbit.c
@@ -4,7 +4,7 @@
*
* FreeType PFR bitmap loader (body).
*
- * Copyright (C) 2002-2020 by
+ * Copyright (C) 2002-2021 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
@@ -310,8 +310,8 @@
if ( lim > limit )
{
FT_TRACE0(( "pfr_lookup_bitmap_data:"
- " number of bitmap records too large,\n"
- " "
+ " number of bitmap records too large,\n" ));
+ FT_TRACE0(( " "
" thus ignoring all bitmaps in this strike\n" ));
*flags &= ~PFR_BITMAP_VALID_CHARCODES;
}
@@ -328,8 +328,8 @@
if ( (FT_Long)code <= prev_code )
{
FT_TRACE0(( "pfr_lookup_bitmap_data:"
- " bitmap records are not sorted,\n"
- " "
+ " bitmap records are not sorted,\n" ));
+ FT_TRACE0(( " "
" thus ignoring all bitmaps in this strike\n" ));
*flags &= ~PFR_BITMAP_VALID_CHARCODES;
break;
diff --git a/freetype/src/pfr/pfrsbit.h b/freetype/src/pfr/pfrsbit.h
index 8cb0de0d..f50d8013 100644
--- a/freetype/src/pfr/pfrsbit.h
+++ b/freetype/src/pfr/pfrsbit.h
@@ -4,7 +4,7 @@
*
* FreeType PFR bitmap loader (specification).
*
- * Copyright (C) 2002-2020 by
+ * Copyright (C) 2002-2021 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
diff --git a/freetype/src/pfr/pfrtypes.h b/freetype/src/pfr/pfrtypes.h
index 06fb82d5..dc4fead7 100644
--- a/freetype/src/pfr/pfrtypes.h
+++ b/freetype/src/pfr/pfrtypes.h
@@ -4,7 +4,7 @@
*
* FreeType PFR data structures (specification only).
*
- * Copyright (C) 2002-2020 by
+ * Copyright (C) 2002-2021 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
@@ -109,7 +109,7 @@ FT_BEGIN_HEADER
#define PFR_BITMAP_2BYTE_SIZE 0x02U
#define PFR_BITMAP_3BYTE_OFFSET 0x04U
- /*not part of the specification but used for implementation */
+ /* not part of the specification but used for implementation */
#define PFR_BITMAP_CHARCODES_VALIDATED 0x40U
#define PFR_BITMAP_VALID_CHARCODES 0x80U
diff --git a/freetype/src/pfr/rules.mk b/freetype/src/pfr/rules.mk
index a1fe82ba..00c791f1 100644
--- a/freetype/src/pfr/rules.mk
+++ b/freetype/src/pfr/rules.mk
@@ -3,7 +3,7 @@
#
-# Copyright (C) 2002-2020 by
+# Copyright (C) 2002-2021 by
# David Turner, Robert Wilhelm, and Werner Lemberg.
#
# This file is part of the FreeType project, and may only be used, modified,
diff --git a/freetype/src/psaux/afmparse.c b/freetype/src/psaux/afmparse.c
index 2d6a0d9a..0ad17605 100644
--- a/freetype/src/psaux/afmparse.c
+++ b/freetype/src/psaux/afmparse.c
@@ -4,7 +4,7 @@
*
* AFM parser (body).
*
- * Copyright (C) 2006-2020 by
+ * Copyright (C) 2006-2021 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
@@ -29,6 +29,16 @@
/**************************************************************************
*
+ * The macro FT_COMPONENT is used in trace mode. It is an implicit
+ * parameter of the FT_TRACE() and FT_ERROR() macros, used to print/log
+ * messages during execution.
+ */
+#undef FT_COMPONENT
+#define FT_COMPONENT afmparse
+
+
+ /**************************************************************************
+ *
* AFM_Stream
*
* The use of AFM_Stream is largely inspired by parseAFM.[ch] from t1lib.
@@ -586,21 +596,39 @@
static FT_Error
afm_parse_track_kern( AFM_Parser parser )
{
- AFM_FontInfo fi = parser->FontInfo;
+ AFM_FontInfo fi = parser->FontInfo;
+ AFM_Stream stream = parser->stream;
AFM_TrackKern tk;
- char* key;
- FT_Offset len;
- int n = -1;
- FT_Int tmp;
+
+ char* key;
+ FT_Offset len;
+ int n = -1;
+ FT_Int tmp;
if ( afm_parser_read_int( parser, &tmp ) )
goto Fail;
if ( tmp < 0 )
+ {
+ FT_ERROR(( "afm_parse_track_kern: invalid number of track kerns\n" ));
goto Fail;
+ }
fi->NumTrackKern = (FT_UInt)tmp;
+ FT_TRACE3(( "afm_parse_track_kern: %u track kern%s expected\n",
+ fi->NumTrackKern,
+ fi->NumTrackKern == 1 ? "" : "s" ));
+
+ /* Rough sanity check: The minimum line length of the `TrackKern` */
+ /* command is 20 characters (including the EOL character). */
+ if ( (FT_ULong)( stream->limit - stream->cursor ) / 20 <
+ fi->NumTrackKern )
+ {
+ FT_ERROR(( "afm_parse_track_kern:"
+ " number of track kern entries exceeds stream size\n" ));
+ goto Fail;
+ }
if ( fi->NumTrackKern )
{
@@ -623,7 +651,10 @@
n++;
if ( n >= (int)fi->NumTrackKern )
- goto Fail;
+ {
+ FT_ERROR(( "afm_parse_track_kern: too many track kern data\n" ));
+ goto Fail;
+ }
tk = fi->TrackKerns + n;
@@ -633,7 +664,12 @@
shared_vals[3].type = AFM_VALUE_TYPE_FIXED;
shared_vals[4].type = AFM_VALUE_TYPE_FIXED;
if ( afm_parser_read_vals( parser, shared_vals, 5 ) != 5 )
+ {
+ FT_ERROR(( "afm_parse_track_kern:"
+ " insufficient number of parameters for entry %d\n",
+ n ));
goto Fail;
+ }
tk->degree = shared_vals[0].u.i;
tk->min_ptsize = shared_vals[1].u.f;
@@ -646,7 +682,19 @@
case AFM_TOKEN_ENDTRACKKERN:
case AFM_TOKEN_ENDKERNDATA:
case AFM_TOKEN_ENDFONTMETRICS:
- fi->NumTrackKern = (FT_UInt)( n + 1 );
+ tmp = n + 1;
+ if ( (FT_UInt)tmp != fi->NumTrackKern )
+ {
+ FT_TRACE1(( "afm_parse_track_kern: %s%d track kern entr%s seen\n",
+ tmp == 0 ? "" : "only ",
+ tmp,
+ tmp == 1 ? "y" : "ies" ));
+ fi->NumTrackKern = (FT_UInt)tmp;
+ }
+ else
+ FT_TRACE3(( "afm_parse_track_kern: %d track kern entr%s seen\n",
+ tmp,
+ tmp == 1 ? "y" : "ies" ));
return FT_Err_Ok;
case AFM_TOKEN_UNKNOWN:
@@ -667,7 +715,7 @@
/* compare two kerning pairs */
- FT_CALLBACK_DEF( int )
+ FT_COMPARE_DEF( int )
afm_compare_kern_pairs( const void* a,
const void* b )
{
@@ -690,7 +738,8 @@
static FT_Error
afm_parse_kern_pairs( AFM_Parser parser )
{
- AFM_FontInfo fi = parser->FontInfo;
+ AFM_FontInfo fi = parser->FontInfo;
+ AFM_Stream stream = parser->stream;
AFM_KernPair kp;
char* key;
FT_Offset len;
@@ -702,9 +751,26 @@
goto Fail;
if ( tmp < 0 )
+ {
+ FT_ERROR(( "afm_parse_kern_pairs: invalid number of kern pairs\n" ));
goto Fail;
+ }
fi->NumKernPair = (FT_UInt)tmp;
+ FT_TRACE3(( "afm_parse_kern_pairs: %u kern pair%s expected\n",
+ fi->NumKernPair,
+ fi->NumKernPair == 1 ? "" : "s" ));
+
+ /* Rough sanity check: The minimum line length of the `KP`, */
+ /* `KPH`,`KPX`, and `KPY` commands is 10 characters (including */
+ /* the EOL character). */
+ if ( (FT_ULong)( stream->limit - stream->cursor ) / 10 <
+ fi->NumKernPair )
+ {
+ FT_ERROR(( "afm_parse_kern_pairs:"
+ " number of kern pairs exceeds stream size\n" ));
+ goto Fail;
+ }
if ( fi->NumKernPair )
{
@@ -734,7 +800,10 @@
n++;
if ( n >= (int)fi->NumKernPair )
+ {
+ FT_ERROR(( "afm_parse_kern_pairs: too many kern pairs\n" ));
goto Fail;
+ }
kp = fi->KernPairs + n;
@@ -744,7 +813,12 @@
shared_vals[3].type = AFM_VALUE_TYPE_INTEGER;
r = afm_parser_read_vals( parser, shared_vals, 4 );
if ( r < 3 )
+ {
+ FT_ERROR(( "afm_parse_kern_pairs:"
+ " insufficient number of parameters for entry %d\n",
+ n ));
goto Fail;
+ }
/* index values can't be negative */
kp->index1 = shared_vals[0].u.u;
@@ -766,7 +840,20 @@
case AFM_TOKEN_ENDKERNPAIRS:
case AFM_TOKEN_ENDKERNDATA:
case AFM_TOKEN_ENDFONTMETRICS:
- fi->NumKernPair = (FT_UInt)( n + 1 );
+ tmp = n + 1;
+ if ( (FT_UInt)tmp != fi->NumKernPair )
+ {
+ FT_TRACE1(( "afm_parse_kern_pairs: %s%d kern pair%s seen\n",
+ tmp == 0 ? "" : "only ",
+ tmp,
+ tmp == 1 ? "" : "s" ));
+ fi->NumKernPair = (FT_UInt)tmp;
+ }
+ else
+ FT_TRACE3(( "afm_parse_kern_pairs: %d kern pair%s seen\n",
+ tmp,
+ tmp == 1 ? "" : "s" ));
+
ft_qsort( fi->KernPairs, fi->NumKernPair,
sizeof ( AFM_KernPairRec ),
afm_compare_kern_pairs );
@@ -792,22 +879,43 @@
char* key;
FT_Offset len;
+ int have_trackkern = 0;
+ int have_kernpairs = 0;
+
while ( ( key = afm_parser_next_key( parser, 1, &len ) ) != 0 )
{
switch ( afm_tokenize( key, len ) )
{
case AFM_TOKEN_STARTTRACKKERN:
+ if ( have_trackkern )
+ {
+ FT_ERROR(( "afm_parse_kern_data:"
+ " invalid second horizontal track kern section\n" ));
+ goto Fail;
+ }
+
error = afm_parse_track_kern( parser );
if ( error )
return error;
+
+ have_trackkern = 1;
break;
case AFM_TOKEN_STARTKERNPAIRS:
case AFM_TOKEN_STARTKERNPAIRS0:
+ if ( have_kernpairs )
+ {
+ FT_ERROR(( "afm_parse_kern_data:"
+ " invalid second horizontal kern pair section\n" ));
+ goto Fail;
+ }
+
error = afm_parse_kern_pairs( parser );
if ( error )
return error;
+
+ have_kernpairs = 1;
break;
case AFM_TOKEN_ENDKERNDATA:
diff --git a/freetype/src/psaux/afmparse.h b/freetype/src/psaux/afmparse.h
index 16a3a3e9..44b05b2c 100644
--- a/freetype/src/psaux/afmparse.h
+++ b/freetype/src/psaux/afmparse.h
@@ -4,7 +4,7 @@
*
* AFM parser (specification).
*
- * Copyright (C) 2006-2020 by
+ * Copyright (C) 2006-2021 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
diff --git a/freetype/src/psaux/cffdecode.c b/freetype/src/psaux/cffdecode.c
index 3d2da1e0..29b68a8e 100644
--- a/freetype/src/psaux/cffdecode.c
+++ b/freetype/src/psaux/cffdecode.c
@@ -4,7 +4,7 @@
*
* PostScript CFF (Type 2) decoding routines (body).
*
- * Copyright (C) 2017-2020 by
+ * Copyright (C) 2017-2021 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
@@ -1871,7 +1871,7 @@
case cff_op_put:
{
FT_Fixed val = args[0];
- FT_Int idx = (FT_Int)( args[1] >> 16 );
+ FT_UInt idx = (FT_UInt)( args[1] >> 16 );
FT_TRACE4(( " put\n" ));
@@ -1880,20 +1880,20 @@
/* didn't give a hard-coded size limit of the temporary */
/* storage array; instead, an argument of the */
/* `MultipleMaster' operator set the size */
- if ( idx >= 0 && idx < CFF_MAX_TRANS_ELEMENTS )
+ if ( idx < CFF_MAX_TRANS_ELEMENTS )
decoder->buildchar[idx] = val;
}
break;
case cff_op_get:
{
- FT_Int idx = (FT_Int)( args[0] >> 16 );
+ FT_UInt idx = (FT_UInt)( args[0] >> 16 );
FT_Fixed val = 0;
FT_TRACE4(( " get\n" ));
- if ( idx >= 0 && idx < CFF_MAX_TRANS_ELEMENTS )
+ if ( idx < CFF_MAX_TRANS_ELEMENTS )
val = decoder->buildchar[idx];
args[0] = val;
@@ -1914,9 +1914,9 @@
/* this operator was removed from the Type2 specification */
/* in version 16-March-2000 */
{
- FT_Int reg_idx = (FT_Int)args[0];
- FT_Int idx = (FT_Int)args[1];
- FT_Int count = (FT_Int)args[2];
+ FT_UInt reg_idx = (FT_UInt)args[0];
+ FT_UInt idx = (FT_UInt)args[1];
+ FT_UInt count = (FT_UInt)args[2];
FT_TRACE4(( " load\n" ));
@@ -1924,11 +1924,11 @@
/* since we currently don't handle interpolation of multiple */
/* master fonts, we store a vector [1 0 0 ...] in the */
/* temporary storage array regardless of the Registry index */
- if ( reg_idx >= 0 && reg_idx <= 2 &&
- idx >= 0 && idx < CFF_MAX_TRANS_ELEMENTS &&
- count >= 0 && count <= num_axes )
+ if ( reg_idx <= 2 &&
+ idx < CFF_MAX_TRANS_ELEMENTS &&
+ count <= num_axes )
{
- FT_Int end, i;
+ FT_UInt end, i;
end = FT_MIN( idx + count, CFF_MAX_TRANS_ELEMENTS );
@@ -2153,7 +2153,7 @@
decoder->locals_bias );
- FT_TRACE4(( " callsubr (idx %d, entering level %d)\n",
+ FT_TRACE4(( " callsubr (idx %d, entering level %ld)\n",
idx,
zone - decoder->zones + 1 ));
@@ -2197,7 +2197,7 @@
decoder->globals_bias );
- FT_TRACE4(( " callgsubr (idx %d, entering level %d)\n",
+ FT_TRACE4(( " callgsubr (idx %d, entering level %ld)\n",
idx,
zone - decoder->zones + 1 ));
@@ -2236,7 +2236,7 @@
break;
case cff_op_return:
- FT_TRACE4(( " return (leaving level %d)\n",
+ FT_TRACE4(( " return (leaving level %ld)\n",
decoder->zone - decoder->zones ));
if ( decoder->zone <= decoder->zones )
@@ -2271,7 +2271,8 @@
} /* while ip < limit */
- FT_TRACE4(( "..end..\n\n" ));
+ FT_TRACE4(( "..end..\n" ));
+ FT_TRACE4(( "\n" ));
Fail:
return error;
diff --git a/freetype/src/psaux/cffdecode.h b/freetype/src/psaux/cffdecode.h
index 77a49626..b1314ed1 100644
--- a/freetype/src/psaux/cffdecode.h
+++ b/freetype/src/psaux/cffdecode.h
@@ -4,7 +4,7 @@
*
* PostScript CFF (Type 2) decoding routines (specification).
*
- * Copyright (C) 2017-2020 by
+ * Copyright (C) 2017-2021 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
diff --git a/freetype/src/psaux/module.mk b/freetype/src/psaux/module.mk
index 651db014..06f7e72c 100644
--- a/freetype/src/psaux/module.mk
+++ b/freetype/src/psaux/module.mk
@@ -3,7 +3,7 @@
#
-# Copyright (C) 1996-2020 by
+# Copyright (C) 1996-2021 by
# David Turner, Robert Wilhelm, and Werner Lemberg.
#
# This file is part of the FreeType project, and may only be used, modified,
diff --git a/freetype/src/psaux/psarrst.c b/freetype/src/psaux/psarrst.c
index 8751d275..70313d28 100644
--- a/freetype/src/psaux/psarrst.c
+++ b/freetype/src/psaux/psarrst.c
@@ -65,7 +65,6 @@
arrstack->error = error;
arrstack->sizeItem = sizeItem;
arrstack->allocated = 0;
- arrstack->chunk = 10; /* chunks of 10 items */
arrstack->count = 0;
arrstack->totalSize = 0;
arrstack->ptr = NULL;
@@ -110,7 +109,7 @@
FT_ASSERT( newSize > 0 ); /* avoid realloc with zero size */
- if ( !FT_REALLOC( arrstack->ptr, arrstack->totalSize, newSize ) )
+ if ( !FT_QREALLOC( arrstack->ptr, arrstack->totalSize, newSize ) )
{
arrstack->allocated = numElements;
arrstack->totalSize = newSize;
@@ -216,9 +215,9 @@
if ( arrstack->count == arrstack->allocated )
{
- /* grow the buffer by one chunk */
+ /* increase the buffer size */
if ( !cf2_arrstack_setNumElements(
- arrstack, arrstack->allocated + arrstack->chunk ) )
+ arrstack, arrstack->allocated * 2 + 16 ) )
{
/* on error, ignore the push */
return;
diff --git a/freetype/src/psaux/psarrst.h b/freetype/src/psaux/psarrst.h
index 098617b2..31e5330c 100644
--- a/freetype/src/psaux/psarrst.h
+++ b/freetype/src/psaux/psarrst.h
@@ -55,7 +55,6 @@ FT_BEGIN_HEADER
size_t sizeItem; /* bytes per element */
size_t allocated; /* items allocated */
- size_t chunk; /* allocation increment in items */
size_t count; /* number of elements allocated */
size_t totalSize; /* total bytes allocated */
diff --git a/freetype/src/psaux/psaux.c b/freetype/src/psaux/psaux.c
index f4282222..2960c8b6 100644
--- a/freetype/src/psaux/psaux.c
+++ b/freetype/src/psaux/psaux.c
@@ -4,7 +4,7 @@
*
* FreeType auxiliary PostScript driver component (body only).
*
- * Copyright (C) 1996-2020 by
+ * Copyright (C) 1996-2021 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
diff --git a/freetype/src/psaux/psauxerr.h b/freetype/src/psaux/psauxerr.h
index 8b9a958a..e8ee2916 100644
--- a/freetype/src/psaux/psauxerr.h
+++ b/freetype/src/psaux/psauxerr.h
@@ -4,7 +4,7 @@
*
* PS auxiliary module error codes (specification only).
*
- * Copyright (C) 2001-2020 by
+ * Copyright (C) 2001-2021 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
diff --git a/freetype/src/psaux/psauxmod.c b/freetype/src/psaux/psauxmod.c
index e73ba224..52da2336 100644
--- a/freetype/src/psaux/psauxmod.c
+++ b/freetype/src/psaux/psauxmod.c
@@ -4,7 +4,7 @@
*
* FreeType auxiliary PostScript module implementation (body).
*
- * Copyright (C) 2000-2020 by
+ * Copyright (C) 2000-2021 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
diff --git a/freetype/src/psaux/psauxmod.h b/freetype/src/psaux/psauxmod.h
index a6bebe4b..e3e80632 100644
--- a/freetype/src/psaux/psauxmod.h
+++ b/freetype/src/psaux/psauxmod.h
@@ -4,7 +4,7 @@
*
* FreeType auxiliary PostScript module implementation (specification).
*
- * Copyright (C) 2000-2020 by
+ * Copyright (C) 2000-2021 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
diff --git a/freetype/src/psaux/psblues.c b/freetype/src/psaux/psblues.c
index 3878e9bd..f9c864fe 100644
--- a/freetype/src/psaux/psblues.c
+++ b/freetype/src/psaux/psblues.c
@@ -506,7 +506,8 @@
/* guarantee minimum of 1 pixel overshoot */
dsNew = FT_MIN(
cf2_fixedRound( bottomHintEdge->dsCoord ),
- blues->zone[i].dsFlatEdge - cf2_intToFixed( 1 ) );
+ SUB_INT32( blues->zone[i].dsFlatEdge,
+ cf2_intToFixed( 1 ) ) );
}
else
diff --git a/freetype/src/psaux/psconv.c b/freetype/src/psaux/psconv.c
index 4cf5cd5d..c28d65df 100644
--- a/freetype/src/psaux/psconv.c
+++ b/freetype/src/psaux/psconv.c
@@ -4,7 +4,7 @@
*
* Some convenience conversions (body).
*
- * Copyright (C) 2006-2020 by
+ * Copyright (C) 2006-2021 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
diff --git a/freetype/src/psaux/psconv.h b/freetype/src/psaux/psconv.h
index 833e8273..cd91a7bb 100644
--- a/freetype/src/psaux/psconv.h
+++ b/freetype/src/psaux/psconv.h
@@ -4,7 +4,7 @@
*
* Some convenience conversions (specification).
*
- * Copyright (C) 2006-2020 by
+ * Copyright (C) 2006-2021 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
diff --git a/freetype/src/psaux/psft.c b/freetype/src/psaux/psft.c
index 41c16542..ac72d825 100644
--- a/freetype/src/psaux/psft.c
+++ b/freetype/src/psaux/psft.c
@@ -742,13 +742,13 @@
/* For ordinary fonts get the character data stored in the face record. */
{
glyph_data.pointer = type1->charstrings[glyph_index];
- glyph_data.length = (FT_Int)type1->charstrings_len[glyph_index];
+ glyph_data.length = type1->charstrings_len[glyph_index];
}
if ( !error )
{
FT_Byte* charstring_base = (FT_Byte*)glyph_data.pointer;
- FT_ULong charstring_len = (FT_ULong)glyph_data.length;
+ FT_ULong charstring_len = glyph_data.length;
FT_ASSERT( charstring_base + charstring_len >= charstring_base );
@@ -778,7 +778,7 @@
face = (T1_Face)decoder->builder.face;
data.pointer = buf->start;
- data.length = (FT_Int)( buf->end - buf->start );
+ data.length = (FT_UInt)( buf->end - buf->start );
if ( face->root.internal->incremental_interface )
face->root.internal->incremental_interface->funcs->free_glyph_data(
diff --git a/freetype/src/psaux/pshints.c b/freetype/src/psaux/pshints.c
index ce8cfca7..ad472c98 100644
--- a/freetype/src/psaux/pshints.c
+++ b/freetype/src/psaux/pshints.c
@@ -412,6 +412,12 @@
{
FT_Bool isPair = cf2_hint_isPair( &hintmap->edge[i] );
+ /* final amount to move edge or edge pair */
+ CF2_Fixed move = 0;
+
+ CF2_Fixed dsCoord_i;
+ CF2_Fixed dsCoord_j;
+
/* index of upper edge (same value for ghost hint) */
j = isPair ? i + 1 : i;
@@ -422,11 +428,14 @@
FT_ASSERT( cf2_hint_isLocked( &hintmap->edge[i] ) ==
cf2_hint_isLocked( &hintmap->edge[j] ) );
+ dsCoord_i = hintmap->edge[i].dsCoord;
+ dsCoord_j = hintmap->edge[j].dsCoord;
+
if ( !cf2_hint_isLocked( &hintmap->edge[i] ) )
{
/* hint edge is not locked, we can adjust it */
- CF2_Fixed fracDown = cf2_fixedFraction( hintmap->edge[i].dsCoord );
- CF2_Fixed fracUp = cf2_fixedFraction( hintmap->edge[j].dsCoord );
+ CF2_Fixed fracDown = cf2_fixedFraction( dsCoord_i );
+ CF2_Fixed fracUp = cf2_fixedFraction( dsCoord_j );
/* calculate all four possibilities; moves down are negative */
CF2_Fixed downMoveDown = 0 - fracDown;
@@ -443,9 +452,6 @@
/* smallest move down */
CF2_Fixed moveDown = FT_MAX( downMoveDown, upMoveDown );
- /* final amount to move edge or edge pair */
- CF2_Fixed move;
-
CF2_Fixed downMinCounter = CF2_MIN_COUNTER;
CF2_Fixed upMinCounter = CF2_MIN_COUNTER;
FT_Bool saveEdge = FALSE;
@@ -467,16 +473,14 @@
/* is there room to move up? */
/* there is if we are at top of array or the next edge is at or */
/* beyond proposed move up? */
- if ( j >= hintmap->count - 1 ||
+ if ( j >= hintmap->count - 1 ||
hintmap->edge[j + 1].dsCoord >=
- ADD_INT32( hintmap->edge[j].dsCoord,
- moveUp + upMinCounter ) )
+ ADD_INT32( dsCoord_j, moveUp + upMinCounter ) )
{
/* there is room to move up; is there also room to move down? */
- if ( i == 0 ||
+ if ( i == 0 ||
hintmap->edge[i - 1].dsCoord <=
- ADD_INT32( hintmap->edge[i].dsCoord,
- moveDown - downMinCounter ) )
+ ADD_INT32( dsCoord_i, moveDown - downMinCounter ) )
{
/* move smaller absolute amount */
move = ( -moveDown < moveUp ) ? moveDown : moveUp; /* optimum */
@@ -487,10 +491,9 @@
else
{
/* is there room to move down? */
- if ( i == 0 ||
+ if ( i == 0 ||
hintmap->edge[i - 1].dsCoord <=
- ADD_INT32( hintmap->edge[i].dsCoord,
- moveDown - downMinCounter ) )
+ ADD_INT32( dsCoord_i, moveDown - downMinCounter ) )
{
move = moveDown;
/* true if non-optimum move */
@@ -524,17 +527,21 @@
}
/* move the edge(s) */
- hintmap->edge[i].dsCoord = ADD_INT32( hintmap->edge[i].dsCoord,
- move );
+ hintmap->edge[i].dsCoord = ADD_INT32( dsCoord_i, move );
if ( isPair )
- hintmap->edge[j].dsCoord = ADD_INT32( hintmap->edge[j].dsCoord,
- move );
+ hintmap->edge[j].dsCoord = ADD_INT32( dsCoord_j, move );
}
- /* assert there are no overlaps in device space */
+ /* assert there are no overlaps in device space; */
+ /* ignore tests if there was overflow (that is, if */
+ /* operands have the same sign but the sum does not) */
FT_ASSERT( i == 0 ||
+ ( ( dsCoord_i ^ move ) >= 0 &&
+ ( dsCoord_i ^ hintmap->edge[i].dsCoord ) < 0 ) ||
hintmap->edge[i - 1].dsCoord <= hintmap->edge[i].dsCoord );
FT_ASSERT( i < j ||
+ ( ( dsCoord_j ^ move ) >= 0 &&
+ ( dsCoord_j ^ hintmap->edge[j].dsCoord ) < 0 ) ||
hintmap->edge[i].dsCoord <= hintmap->edge[j].dsCoord );
/* adjust the scales, avoiding divide by zero */
@@ -1022,10 +1029,17 @@
}
}
- FT_TRACE6(( "%s\n", initialMap ? "flags: [p]air [g]host [t]op"
- " [b]ottom [L]ocked [S]ynthetic\n"
- "Initial hintmap"
- : "Hints:" ));
+#ifdef FT_DEBUG_LEVEL_TRACE
+ if ( initialMap )
+ {
+ FT_TRACE6(( "flags: [p]air [g]host [t]op"
+ " [b]ottom [L]ocked [S]ynthetic\n" ));
+ FT_TRACE6(( "Initial hintmap" ));
+ }
+ else
+ FT_TRACE6(( "Hints:" ));
+#endif
+
cf2_hintmap_dump( hintmap );
/*
diff --git a/freetype/src/psaux/psintrp.c b/freetype/src/psaux/psintrp.c
index 519c6944..c550533a 100644
--- a/freetype/src/psaux/psintrp.c
+++ b/freetype/src/psaux/psintrp.c
@@ -469,7 +469,7 @@
*/
FT_LOCAL_DEF( void )
cf2_interpT2CharString( CF2_Font font,
- CF2_Buffer buf,
+ const CF2_Buffer buf,
CF2_OutlineCallbacks callbacks,
const FT_Vector* translation,
FT_Bool doingSeac,
@@ -1340,9 +1340,9 @@
if ( decoder->glyph_names == 0 )
#endif /* FT_CONFIG_OPTION_INCREMENTAL */
{
- FT_ERROR((
- "cf2_interpT2CharString: (Type 1 seac)"
- " glyph names table not available in this font\n" ));
+ FT_ERROR(( "cf2_interpT2CharString:\n" ));
+ FT_ERROR(( " (Type 1 seac) glyph names table"
+ " not available in this font\n" ));
lastError = FT_THROW( Invalid_Glyph_Format );
goto exit;
}
@@ -1368,9 +1368,9 @@
if ( bchar_index < 0 || achar_index < 0 )
{
- FT_ERROR((
- "cf2_interpT2CharString: (Type 1 seac)"
- " invalid seac character code arguments\n" ));
+ FT_ERROR(( "cf2_interpT2CharString:\n" ));
+ FT_ERROR(( " (Type 1 seac) invalid"
+ " seac character code arguments\n" ));
lastError = FT_THROW( Invalid_Glyph_Format );
goto exit;
}
@@ -1670,7 +1670,13 @@
*/
count = cf2_stack_count( opStack );
- FT_ASSERT( (CF2_UInt)arg_cnt <= count );
+ if ( (CF2_UInt)arg_cnt > count )
+ {
+ FT_ERROR(( "cf2_interpT2CharString (Type 1 mode):"
+ " stack underflow\n" ));
+ lastError = FT_THROW( Invalid_Glyph_Format );
+ goto exit;
+ }
opIdx += count - (CF2_UInt)arg_cnt;
@@ -1893,18 +1899,17 @@
/* cvi( <idx> ) of BuildCharArray with */
/* WeightVector */
{
- FT_Int idx;
+ FT_UInt idx;
PS_Blend blend = decoder->blend;
if ( arg_cnt != 1 || !blend )
goto Unexpected_OtherSubr;
- idx = cf2_stack_popInt( opStack );
+ idx = (FT_UInt)cf2_stack_popInt( opStack );
- if ( idx < 0 ||
- (FT_UInt)idx + blend->num_designs >
- decoder->len_buildchar )
+ if ( idx + blend->num_designs >
+ decoder->len_buildchar )
goto Unexpected_OtherSubr;
ft_memcpy( &decoder->buildchar[idx],
@@ -2004,17 +2009,16 @@
/* <val> <idx> 2 24 callothersubr */
/* ==> set BuildCharArray[cvi( <idx> )] = <val> */
{
- CF2_Int idx;
+ CF2_UInt idx;
PS_Blend blend = decoder->blend;
if ( arg_cnt != 2 || !blend )
goto Unexpected_OtherSubr;
- idx = cf2_stack_popInt( opStack );
+ idx = (CF2_UInt)cf2_stack_popInt( opStack );
- if ( idx < 0 ||
- (FT_UInt)idx >= decoder->len_buildchar )
+ if ( idx >= decoder->len_buildchar )
goto Unexpected_OtherSubr;
decoder->buildchar[idx] =
@@ -2027,17 +2031,16 @@
/* ==> push BuildCharArray[cvi( idx )] */
/* onto T1 stack */
{
- CF2_Int idx;
+ CF2_UInt idx;
PS_Blend blend = decoder->blend;
if ( arg_cnt != 1 || !blend )
goto Unexpected_OtherSubr;
- idx = cf2_stack_popInt( opStack );
+ idx = (CF2_UInt)cf2_stack_popInt( opStack );
- if ( idx < 0 ||
- (FT_UInt)idx >= decoder->len_buildchar )
+ if ( idx >= decoder->len_buildchar )
goto Unexpected_OtherSubr;
cf2_stack_pushFixed( opStack,
@@ -2179,29 +2182,29 @@
case cf2_escPUT:
{
CF2_F16Dot16 val;
- CF2_Int idx;
+ CF2_UInt idx;
FT_TRACE4(( " put\n" ));
- idx = cf2_stack_popInt( opStack );
+ idx = (CF2_UInt)cf2_stack_popInt( opStack );
val = cf2_stack_popFixed( opStack );
- if ( idx >= 0 && idx < CF2_STORAGE_SIZE )
+ if ( idx < CF2_STORAGE_SIZE )
storage[idx] = val;
}
continue; /* do not clear the stack */
case cf2_escGET:
{
- CF2_Int idx;
+ CF2_UInt idx;
FT_TRACE4(( " get\n" ));
- idx = cf2_stack_popInt( opStack );
+ idx = (CF2_UInt)cf2_stack_popInt( opStack );
- if ( idx >= 0 && idx < CF2_STORAGE_SIZE )
+ if ( idx < CF2_STORAGE_SIZE )
cf2_stack_pushFixed( opStack, storage[idx] );
}
continue; /* do not clear the stack */
diff --git a/freetype/src/psaux/psintrp.h b/freetype/src/psaux/psintrp.h
index 669c09c0..d8b9342e 100644
--- a/freetype/src/psaux/psintrp.h
+++ b/freetype/src/psaux/psintrp.h
@@ -65,7 +65,7 @@ FT_BEGIN_HEADER
FT_LOCAL( void )
cf2_interpT2CharString( CF2_Font font,
- CF2_Buffer charstring,
+ const CF2_Buffer buf,
CF2_OutlineCallbacks callbacks,
const FT_Vector* translation,
FT_Bool doingSeac,
diff --git a/freetype/src/psaux/psobjs.c b/freetype/src/psaux/psobjs.c
index defc4d4f..30f50191 100644
--- a/freetype/src/psaux/psobjs.c
+++ b/freetype/src/psaux/psobjs.c
@@ -4,7 +4,7 @@
*
* Auxiliary functions for PostScript fonts (body).
*
- * Copyright (C) 1996-2020 by
+ * Copyright (C) 1996-2021 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
@@ -251,7 +251,7 @@
if ( !old_base )
return;
- if ( FT_ALLOC( table->block, table->cursor ) )
+ if ( FT_QALLOC( table->block, table->cursor ) )
return;
FT_MEM_COPY( table->block, old_base, table->cursor );
shift_elements( table, old_base );
@@ -595,10 +595,10 @@
if ( cur < limit && cur == parser->cursor )
{
FT_ERROR(( "ps_parser_skip_PS_token:"
- " current token is `%c' which is self-delimiting\n"
- " "
- " but invalid at this point\n",
+ " current token is `%c' which is self-delimiting\n",
*cur ));
+ FT_ERROR(( " "
+ " but invalid at this point\n" ));
error = FT_THROW( Invalid_File_Format );
}
@@ -979,7 +979,7 @@
}
len = (FT_UInt)( cur - *cursor );
- if ( cur >= limit || FT_ALLOC( result, len + 1 ) )
+ if ( cur >= limit || FT_QALLOC( result, len + 1 ) )
return 0;
/* now copy the string */
@@ -1175,8 +1175,8 @@
else
{
FT_ERROR(( "ps_parser_load_field:"
- " expected a name or string\n"
- " "
+ " expected a name or string\n" ));
+ FT_ERROR(( " "
" but found token of type %d instead\n",
token.type ));
error = FT_THROW( Invalid_File_Format );
@@ -1193,7 +1193,7 @@
*(FT_String**)q = NULL;
}
- if ( FT_ALLOC( string, len + 1 ) )
+ if ( FT_QALLOC( string, len + 1 ) )
goto Exit;
FT_MEM_COPY( string, cur, len );
@@ -1248,7 +1248,7 @@
FT_UInt i;
- if ( FT_NEW_ARRAY( temp, max_objects * 4 ) )
+ if ( FT_QNEW_ARRAY( temp, max_objects * 4 ) )
goto Exit;
for ( i = 0; i < 4; i++ )
@@ -1258,14 +1258,14 @@
if ( result < 0 || (FT_UInt)result < max_objects )
{
FT_ERROR(( "ps_parser_load_field:"
- " expected %d integer%s in the %s subarray\n"
- " "
- " of /FontBBox in the /Blend dictionary\n",
+ " expected %d integer%s in the %s subarray\n",
max_objects, max_objects > 1 ? "s" : "",
i == 0 ? "first"
: ( i == 1 ? "second"
: ( i == 2 ? "third"
: "fourth" ) ) ));
+ FT_ERROR(( " "
+ " of /FontBBox in the /Blend dictionary\n" ));
error = FT_THROW( Invalid_File_Format );
FT_FREE( temp );
diff --git a/freetype/src/psaux/psobjs.h b/freetype/src/psaux/psobjs.h
index fdad672b..99d16959 100644
--- a/freetype/src/psaux/psobjs.h
+++ b/freetype/src/psaux/psobjs.h
@@ -4,7 +4,7 @@
*
* Auxiliary functions for PostScript fonts (specification).
*
- * Copyright (C) 1996-2020 by
+ * Copyright (C) 1996-2021 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
diff --git a/freetype/src/psaux/psstack.c b/freetype/src/psaux/psstack.c
index 7ae5256e..79748658 100644
--- a/freetype/src/psaux/psstack.c
+++ b/freetype/src/psaux/psstack.c
@@ -54,20 +54,18 @@
FT_Error* e,
FT_UInt stackSize )
{
- FT_Error error = FT_Err_Ok; /* for FT_NEW */
-
+ FT_Error error; /* for FT_QNEW */
CF2_Stack stack = NULL;
- if ( FT_NEW( stack ) )
+ if ( FT_QNEW( stack ) )
return NULL;
- /* initialize the structure; FT_NEW zeroes it */
stack->memory = memory;
stack->error = e;
/* allocate the stack buffer */
- if ( FT_NEW_ARRAY( stack->buffer, stackSize ) )
+ if ( FT_QNEW_ARRAY( stack->buffer, stackSize ) )
{
FT_FREE( stack );
return NULL;
diff --git a/freetype/src/psaux/rules.mk b/freetype/src/psaux/rules.mk
index f49aecbc..05439120 100644
--- a/freetype/src/psaux/rules.mk
+++ b/freetype/src/psaux/rules.mk
@@ -3,7 +3,7 @@
#
-# Copyright (C) 1996-2020 by
+# Copyright (C) 1996-2021 by
# David Turner, Robert Wilhelm, and Werner Lemberg.
#
# This file is part of the FreeType project, and may only be used, modified,
diff --git a/freetype/src/psaux/t1cmap.c b/freetype/src/psaux/t1cmap.c
index e21e93ca..3e7c577a 100644
--- a/freetype/src/psaux/t1cmap.c
+++ b/freetype/src/psaux/t1cmap.c
@@ -4,7 +4,7 @@
*
* Type 1 character map support (body).
*
- * Copyright (C) 2002-2020 by
+ * Copyright (C) 2002-2021 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
diff --git a/freetype/src/psaux/t1cmap.h b/freetype/src/psaux/t1cmap.h
index 03179651..8f69600c 100644
--- a/freetype/src/psaux/t1cmap.h
+++ b/freetype/src/psaux/t1cmap.h
@@ -4,7 +4,7 @@
*
* Type 1 character map support (specification).
*
- * Copyright (C) 2002-2020 by
+ * Copyright (C) 2002-2021 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
diff --git a/freetype/src/psaux/t1decode.c b/freetype/src/psaux/t1decode.c
index 2ed27ca1..7e65bde6 100644
--- a/freetype/src/psaux/t1decode.c
+++ b/freetype/src/psaux/t1decode.c
@@ -4,7 +4,7 @@
*
* PostScript Type 1 decoding routines (body).
*
- * Copyright (C) 2000-2020 by
+ * Copyright (C) 2000-2021 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
@@ -27,8 +27,11 @@
#include "psauxerr.h"
+
/* ensure proper sign extension */
-#define Fix2Int( f ) ( (FT_Int)(FT_Short)( (f) >> 16 ) )
+#define Fix2Int( f ) ( (FT_Int) (FT_Short)( (f) >> 16 ) )
+#define Fix2UInt( f ) ( (FT_UInt)(FT_Short)( (f) >> 16 ) )
+
/**************************************************************************
*
@@ -517,7 +520,7 @@
#ifdef FT_DEBUG_LEVEL_TRACE
if ( bol )
{
- FT_TRACE5(( " (%d)", decoder->top - decoder->stack ));
+ FT_TRACE5(( " (%ld)", decoder->top - decoder->stack ));
bol = FALSE;
}
#endif
@@ -1025,16 +1028,16 @@
/* <val> <idx> 2 24 callothersubr */
/* ==> set BuildCharArray[cvi( <idx> )] = <val> */
{
- FT_Int idx;
+ FT_UInt idx;
PS_Blend blend = decoder->blend;
if ( arg_cnt != 2 || !blend )
goto Unexpected_OtherSubr;
- idx = Fix2Int( top[1] );
+ idx = Fix2UInt( top[1] );
- if ( idx < 0 || (FT_UInt) idx >= decoder->len_buildchar )
+ if ( idx >= decoder->len_buildchar )
goto Unexpected_OtherSubr;
decoder->buildchar[idx] = top[0];
@@ -1046,16 +1049,16 @@
/* ==> push BuildCharArray[cvi( idx )] */
/* onto T1 stack */
{
- FT_Int idx;
+ FT_UInt idx;
PS_Blend blend = decoder->blend;
if ( arg_cnt != 1 || !blend )
goto Unexpected_OtherSubr;
- idx = Fix2Int( top[0] );
+ idx = Fix2UInt( top[0] );
- if ( idx < 0 || (FT_UInt) idx >= decoder->len_buildchar )
+ if ( idx >= decoder->len_buildchar )
goto Unexpected_OtherSubr;
top[0] = decoder->buildchar[idx];
@@ -1162,9 +1165,9 @@
if ( top - decoder->stack != num_args )
FT_TRACE0(( "t1_decoder_parse_charstrings:"
" too much operands on the stack"
- " (seen %d, expected %d)\n",
+ " (seen %ld, expected %d)\n",
top - decoder->stack, num_args ));
- break;
+ break;
}
#endif /* FT_DEBUG_LEVEL_TRACE */
@@ -1209,7 +1212,7 @@
FT_TRACE4(( "BuildCharArray = [ " ));
for ( i = 0; i < decoder->len_buildchar; i++ )
- FT_TRACE4(( "%d ", decoder->buildchar[i] ));
+ FT_TRACE4(( "%ld ", decoder->buildchar[i] ));
FT_TRACE4(( "]\n" ));
}
@@ -1650,7 +1653,8 @@
} /* while ip < limit */
- FT_TRACE4(( "..end..\n\n" ));
+ FT_TRACE4(( "..end..\n" ));
+ FT_TRACE4(( "\n" ));
Fail:
return error;
@@ -2070,7 +2074,8 @@
} /* while ip < limit */
- FT_TRACE4(( "..end..\n\n" ));
+ FT_TRACE4(( "..end..\n" ));
+ FT_TRACE4(( "\n" ));
No_Width:
FT_ERROR(( "t1_decoder_parse_metrics:"
diff --git a/freetype/src/psaux/t1decode.h b/freetype/src/psaux/t1decode.h
index b793504a..eea9d34b 100644
--- a/freetype/src/psaux/t1decode.h
+++ b/freetype/src/psaux/t1decode.h
@@ -4,7 +4,7 @@
*
* PostScript Type 1 decoding routines (specification).
*
- * Copyright (C) 2000-2020 by
+ * Copyright (C) 2000-2021 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
diff --git a/freetype/src/pshinter/module.mk b/freetype/src/pshinter/module.mk
index b440d2e7..ca181ee6 100644
--- a/freetype/src/pshinter/module.mk
+++ b/freetype/src/pshinter/module.mk
@@ -3,7 +3,7 @@
#
-# Copyright (C) 1996-2020 by
+# Copyright (C) 1996-2021 by
# David Turner, Robert Wilhelm, and Werner Lemberg.
#
# This file is part of the FreeType project, and may only be used, modified,
diff --git a/freetype/src/pshinter/pshalgo.c b/freetype/src/pshinter/pshalgo.c
index 920b9a74..227caeae 100644
--- a/freetype/src/pshinter/pshalgo.c
+++ b/freetype/src/pshinter/pshalgo.c
@@ -4,7 +4,7 @@
*
* PostScript hinting algorithm (body).
*
- * Copyright (C) 2001-2020 by
+ * Copyright (C) 2001-2021 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used
@@ -305,17 +305,18 @@
/* now, sort the hints; they are guaranteed to not overlap */
/* so we can compare their "org_pos" field directly */
{
- FT_Int i1, i2;
+ FT_UInt i1, i2;
PSH_Hint hint1, hint2;
PSH_Hint* sort = table->sort;
/* a simple bubble sort will do, since in 99% of cases, the hints */
/* will be already sorted -- and the sort will be linear */
- for ( i1 = 1; i1 < (FT_Int)count; i1++ )
+ for ( i1 = 1; i1 < count; i1++ )
{
hint1 = sort[i1];
- for ( i2 = i1 - 1; i2 >= 0; i2-- )
+ /* this loop stops when i2 wraps around after reaching 0 */
+ for ( i2 = i1 - 1; i2 < i1; i2-- )
{
hint2 = sort[i2];
@@ -869,7 +870,7 @@
return;
}
-#endif /* DEBUG_HINTER*/
+#endif /* DEBUG_HINTER */
hint = table->hints;
count = table->max_hints;
@@ -1049,12 +1050,12 @@
}
- static int
+ static PSH_Dir
psh_compute_dir( FT_Pos dx,
FT_Pos dy )
{
- FT_Pos ax, ay;
- int result = PSH_DIR_NONE;
+ FT_Pos ax, ay;
+ PSH_Dir result = PSH_DIR_NONE;
ax = FT_ABS( dx );
@@ -1233,12 +1234,12 @@
dxi = vec[n].x - vec[n_prev].x;
dyi = vec[n].y - vec[n_prev].y;
- point->dir_in = (FT_Char)psh_compute_dir( dxi, dyi );
+ point->dir_in = psh_compute_dir( dxi, dyi );
dxo = vec[n_next].x - vec[n].x;
dyo = vec[n_next].y - vec[n].y;
- point->dir_out = (FT_Char)psh_compute_dir( dxo, dyo );
+ point->dir_out = psh_compute_dir( dxo, dyo );
/* detect smooth points */
if ( point->flags & PSH_POINT_OFF )
@@ -1403,16 +1404,13 @@
}
- /* major_dir is the direction for points on the bottom/left of the stem; */
- /* Points on the top/right of the stem will have a direction of */
- /* -major_dir. */
-
+ /* the min and max are based on contour orientation and fill rule */
static void
psh_hint_table_find_strong_points( PSH_Hint_Table table,
PSH_Point point,
FT_UInt count,
FT_Int threshold,
- FT_Int major_dir )
+ PSH_Dir major_dir )
{
PSH_Hint* sort = table->sort;
FT_UInt num_hints = table->num_hints;
@@ -1420,59 +1418,53 @@
for ( ; count > 0; count--, point++ )
{
- FT_Int point_dir = 0;
- FT_Pos org_u = point->org_u;
+ PSH_Dir point_dir;
+ FT_Pos org_u = point->org_u;
if ( psh_point_is_strong( point ) )
continue;
- if ( PSH_DIR_COMPARE( point->dir_in, major_dir ) )
- point_dir = point->dir_in;
-
- else if ( PSH_DIR_COMPARE( point->dir_out, major_dir ) )
- point_dir = point->dir_out;
+ point_dir =
+ (PSH_Dir)( ( point->dir_in | point->dir_out ) & major_dir );
- if ( point_dir )
+ if ( point_dir & ( PSH_DIR_DOWN | PSH_DIR_RIGHT ) )
{
- if ( point_dir == major_dir )
- {
- FT_UInt nn;
+ FT_UInt nn;
- for ( nn = 0; nn < num_hints; nn++ )
- {
- PSH_Hint hint = sort[nn];
- FT_Pos d = org_u - hint->org_pos;
+ for ( nn = 0; nn < num_hints; nn++ )
+ {
+ PSH_Hint hint = sort[nn];
+ FT_Pos d = org_u - hint->org_pos;
- if ( d < threshold && -d < threshold )
- {
- psh_point_set_strong( point );
- point->flags2 |= PSH_POINT_EDGE_MIN;
- point->hint = hint;
- break;
- }
+ if ( d < threshold && -d < threshold )
+ {
+ psh_point_set_strong( point );
+ point->flags2 |= PSH_POINT_EDGE_MIN;
+ point->hint = hint;
+ break;
}
}
- else if ( point_dir == -major_dir )
- {
- FT_UInt nn;
+ }
+ else if ( point_dir & ( PSH_DIR_UP | PSH_DIR_LEFT ) )
+ {
+ FT_UInt nn;
- for ( nn = 0; nn < num_hints; nn++ )
- {
- PSH_Hint hint = sort[nn];
- FT_Pos d = org_u - hint->org_pos - hint->org_len;
+ for ( nn = 0; nn < num_hints; nn++ )
+ {
+ PSH_Hint hint = sort[nn];
+ FT_Pos d = org_u - hint->org_pos - hint->org_len;
- if ( d < threshold && -d < threshold )
- {
- psh_point_set_strong( point );
- point->flags2 |= PSH_POINT_EDGE_MAX;
- point->hint = hint;
- break;
- }
+ if ( d < threshold && -d < threshold )
+ {
+ psh_point_set_strong( point );
+ point->flags2 |= PSH_POINT_EDGE_MAX;
+ point->hint = hint;
+ break;
}
}
}
@@ -1571,7 +1563,7 @@
PS_Mask mask = table->hint_masks->masks;
FT_UInt num_masks = table->hint_masks->num_masks;
FT_UInt first = 0;
- FT_Int major_dir = ( dimension == 0 ) ? PSH_DIR_VERTICAL
+ PSH_Dir major_dir = ( dimension == 0 ) ? PSH_DIR_VERTICAL
: PSH_DIR_HORIZONTAL;
PSH_Dimension dim = &glyph->globals->dimension[dimension];
FT_Fixed scale = dim->scale_mult;
@@ -1656,8 +1648,8 @@
/* check tangents */
- if ( !PSH_DIR_COMPARE( point->dir_in, PSH_DIR_HORIZONTAL ) &&
- !PSH_DIR_COMPARE( point->dir_out, PSH_DIR_HORIZONTAL ) )
+ if ( !( point->dir_in & PSH_DIR_HORIZONTAL ) &&
+ !( point->dir_out & PSH_DIR_HORIZONTAL ) )
continue;
/* skip strong points */
diff --git a/freetype/src/pshinter/pshalgo.h b/freetype/src/pshinter/pshalgo.h
index 5367a5d1..999c6019 100644
--- a/freetype/src/pshinter/pshalgo.h
+++ b/freetype/src/pshinter/pshalgo.h
@@ -4,7 +4,7 @@
*
* PostScript hinting algorithm (specification).
*
- * Copyright (C) 2001-2020 by
+ * Copyright (C) 2001-2021 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
@@ -93,21 +93,17 @@ FT_BEGIN_HEADER
typedef struct PSH_PointRec_* PSH_Point;
typedef struct PSH_ContourRec_* PSH_Contour;
- enum
+ typedef enum PSH_Dir_
{
- PSH_DIR_NONE = 4,
- PSH_DIR_UP = -1,
- PSH_DIR_DOWN = 1,
- PSH_DIR_LEFT = -2,
- PSH_DIR_RIGHT = 2
- };
+ PSH_DIR_NONE = 0,
+ PSH_DIR_UP = 1,
+ PSH_DIR_DOWN = 2,
+ PSH_DIR_VERTICAL = 1 | 2,
+ PSH_DIR_LEFT = 4,
+ PSH_DIR_RIGHT = 8,
+ PSH_DIR_HORIZONTAL = 4 | 8
-#define PSH_DIR_HORIZONTAL 2
-#define PSH_DIR_VERTICAL 1
-
-#define PSH_DIR_COMPARE( d1, d2 ) ( (d1) == (d2) || (d1) == -(d2) )
-#define PSH_DIR_IS_HORIZONTAL( d ) PSH_DIR_COMPARE( d, PSH_DIR_HORIZONTAL )
-#define PSH_DIR_IS_VERTICAL( d ) PSH_DIR_COMPARE( d, PSH_DIR_VERTICAL )
+ } PSH_Dir;
/* the following bit-flags are computed once by the glyph */
@@ -160,8 +156,8 @@ FT_BEGIN_HEADER
PSH_Contour contour;
FT_UInt flags;
FT_UInt flags2;
- FT_Char dir_in;
- FT_Char dir_out;
+ PSH_Dir dir_in;
+ PSH_Dir dir_out;
PSH_Hint hint;
FT_Pos org_u;
FT_Pos org_v;
@@ -199,10 +195,6 @@ FT_BEGIN_HEADER
PSH_Globals globals;
PSH_Hint_TableRec hint_tables[2];
- FT_Bool vertical;
- FT_Int major_dir;
- FT_Int minor_dir;
-
FT_Bool do_horz_hints;
FT_Bool do_vert_hints;
FT_Bool do_horz_snapping;
diff --git a/freetype/src/pshinter/pshglob.c b/freetype/src/pshinter/pshglob.c
index cdc1c3af..2ca0f665 100644
--- a/freetype/src/pshinter/pshglob.c
+++ b/freetype/src/pshinter/pshglob.c
@@ -5,7 +5,7 @@
* PostScript hinter global hinting management (body).
* Inspired by the new auto-hinter module.
*
- * Copyright (C) 2001-2020 by
+ * Copyright (C) 2001-2021 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used
diff --git a/freetype/src/pshinter/pshglob.h b/freetype/src/pshinter/pshglob.h
index 8181324e..a8f9953f 100644
--- a/freetype/src/pshinter/pshglob.h
+++ b/freetype/src/pshinter/pshglob.h
@@ -4,7 +4,7 @@
*
* PostScript hinter global hinting management.
*
- * Copyright (C) 2001-2020 by
+ * Copyright (C) 2001-2021 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
diff --git a/freetype/src/pshinter/pshinter.c b/freetype/src/pshinter/pshinter.c
index 3cca0ad7..705143dc 100644
--- a/freetype/src/pshinter/pshinter.c
+++ b/freetype/src/pshinter/pshinter.c
@@ -4,7 +4,7 @@
*
* FreeType PostScript Hinting module
*
- * Copyright (C) 2001-2020 by
+ * Copyright (C) 2001-2021 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
diff --git a/freetype/src/pshinter/pshmod.c b/freetype/src/pshinter/pshmod.c
index e0abd386..6674041f 100644
--- a/freetype/src/pshinter/pshmod.c
+++ b/freetype/src/pshinter/pshmod.c
@@ -4,7 +4,7 @@
*
* FreeType PostScript hinter module implementation (body).
*
- * Copyright (C) 2001-2020 by
+ * Copyright (C) 2001-2021 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
diff --git a/freetype/src/pshinter/pshmod.h b/freetype/src/pshinter/pshmod.h
index 2a6eb1c4..8b229bb0 100644
--- a/freetype/src/pshinter/pshmod.h
+++ b/freetype/src/pshinter/pshmod.h
@@ -4,7 +4,7 @@
*
* PostScript hinter module interface (specification).
*
- * Copyright (C) 2001-2020 by
+ * Copyright (C) 2001-2021 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
diff --git a/freetype/src/pshinter/pshnterr.h b/freetype/src/pshinter/pshnterr.h
index d67955c4..567d7651 100644
--- a/freetype/src/pshinter/pshnterr.h
+++ b/freetype/src/pshinter/pshnterr.h
@@ -4,7 +4,7 @@
*
* PS Hinter error codes (specification only).
*
- * Copyright (C) 2003-2020 by
+ * Copyright (C) 2003-2021 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
diff --git a/freetype/src/pshinter/pshrec.c b/freetype/src/pshinter/pshrec.c
index bddccf2a..1faabdaa 100644
--- a/freetype/src/pshinter/pshrec.c
+++ b/freetype/src/pshinter/pshrec.c
@@ -4,7 +4,7 @@
*
* FreeType PostScript hints recorder (body).
*
- * Copyright (C) 2001-2020 by
+ * Copyright (C) 2001-2021 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
@@ -499,23 +499,18 @@
ps_mask_table_merge_all( PS_Mask_Table table,
FT_Memory memory )
{
- FT_Int index1, index2;
+ FT_UInt index1, index2;
FT_Error error = FT_Err_Ok;
- /* both loops go down to 0, thus FT_Int for index1 and index2 */
- for ( index1 = (FT_Int)table->num_masks - 1; index1 > 0; index1-- )
+ /* the loops stop when unsigned indices wrap around after 0 */
+ for ( index1 = table->num_masks - 1; index1 < table->num_masks; index1-- )
{
- for ( index2 = index1 - 1; index2 >= 0; index2-- )
+ for ( index2 = index1 - 1; index2 < index1; index2-- )
{
- if ( ps_mask_table_test_intersect( table,
- (FT_UInt)index1,
- (FT_UInt)index2 ) )
+ if ( ps_mask_table_test_intersect( table, index1, index2 ) )
{
- error = ps_mask_table_merge( table,
- (FT_UInt)index2,
- (FT_UInt)index1,
- memory );
+ error = ps_mask_table_merge( table, index2, index1, memory );
if ( error )
goto Exit;
diff --git a/freetype/src/pshinter/pshrec.h b/freetype/src/pshinter/pshrec.h
index b13c7be1..e483981d 100644
--- a/freetype/src/pshinter/pshrec.h
+++ b/freetype/src/pshinter/pshrec.h
@@ -4,7 +4,7 @@
*
* Postscript (Type1/Type2) hints recorder (specification).
*
- * Copyright (C) 2001-2020 by
+ * Copyright (C) 2001-2021 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
diff --git a/freetype/src/pshinter/rules.mk b/freetype/src/pshinter/rules.mk
index c845c255..3c5a59a8 100644
--- a/freetype/src/pshinter/rules.mk
+++ b/freetype/src/pshinter/rules.mk
@@ -3,7 +3,7 @@
#
-# Copyright (C) 2001-2020 by
+# Copyright (C) 2001-2021 by
# David Turner, Robert Wilhelm, and Werner Lemberg.
#
# This file is part of the FreeType project, and may only be used, modified,
diff --git a/freetype/src/psnames/module.mk b/freetype/src/psnames/module.mk
index 675bb371..abfb54ff 100644
--- a/freetype/src/psnames/module.mk
+++ b/freetype/src/psnames/module.mk
@@ -3,7 +3,7 @@
#
-# Copyright (C) 1996-2020 by
+# Copyright (C) 1996-2021 by
# David Turner, Robert Wilhelm, and Werner Lemberg.
#
# This file is part of the FreeType project, and may only be used, modified,
diff --git a/freetype/src/psnames/psmodule.c b/freetype/src/psnames/psmodule.c
index b38f9d3b..74adefa1 100644
--- a/freetype/src/psnames/psmodule.c
+++ b/freetype/src/psnames/psmodule.c
@@ -4,7 +4,7 @@
*
* psnames module implementation (body).
*
- * Copyright (C) 1996-2020 by
+ * Copyright (C) 1996-2021 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
@@ -155,31 +155,30 @@
/* Look for a non-initial dot in the glyph name in order to */
/* find variants like `A.swash', `e.final', etc. */
{
- const char* p = glyph_name;
- const char* dot = NULL;
+ FT_UInt32 value = 0;
+ const char* p = glyph_name;
+
+ for ( ; *p && *p != '.'; p++ )
+ ;
- for ( ; *p; p++ )
+ /* now look up the glyph in the Adobe Glyph List; */
+ /* `.notdef', `.null' and the empty name are short cut */
+ if ( p > glyph_name )
{
- if ( *p == '.' && p > glyph_name )
- {
- dot = p;
- break;
- }
+ value = (FT_UInt32)ft_get_adobe_glyph_index( glyph_name, p );
+
+ if ( *p == '.' )
+ value |= (FT_UInt32)VARIANT_BIT;
}
- /* now look up the glyph in the Adobe Glyph List */
- if ( !dot )
- return (FT_UInt32)ft_get_adobe_glyph_index( glyph_name, p );
- else
- return (FT_UInt32)( ft_get_adobe_glyph_index( glyph_name, dot ) |
- VARIANT_BIT );
+ return value;
}
}
/* ft_qsort callback to sort the unicode map */
- FT_CALLBACK_DEF( int )
+ FT_COMPARE_DEF( int )
compare_uni_maps( const void* a,
const void* b )
{
@@ -326,9 +325,8 @@
/* we first allocate the table */
table->num_maps = 0;
- table->maps = NULL;
- if ( !FT_NEW_ARRAY( table->maps, num_glyphs + EXTRA_GLYPH_LIST_SIZE ) )
+ if ( !FT_QNEW_ARRAY( table->maps, num_glyphs + EXTRA_GLYPH_LIST_SIZE ) )
{
FT_UInt n;
FT_UInt count;
@@ -343,7 +341,7 @@
const char* gname = get_glyph_name( glyph_data, n );
- if ( gname )
+ if ( gname && *gname )
{
ps_check_extra_glyph_name( gname, n,
extra_glyphs, extra_glyph_list_states );
@@ -391,9 +389,9 @@
/* Reallocate if the number of used entries is much smaller. */
if ( count < num_glyphs / 2 )
{
- (void)FT_RENEW_ARRAY( table->maps,
- num_glyphs + EXTRA_GLYPH_LIST_SIZE,
- count );
+ FT_MEM_QRENEW_ARRAY( table->maps,
+ num_glyphs + EXTRA_GLYPH_LIST_SIZE,
+ count );
error = FT_Err_Ok;
}
diff --git a/freetype/src/psnames/psmodule.h b/freetype/src/psnames/psmodule.h
index c85a9eca..e92a975e 100644
--- a/freetype/src/psnames/psmodule.h
+++ b/freetype/src/psnames/psmodule.h
@@ -4,7 +4,7 @@
*
* High-level psnames module interface (specification).
*
- * Copyright (C) 1996-2020 by
+ * Copyright (C) 1996-2021 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
diff --git a/freetype/src/psnames/psnamerr.h b/freetype/src/psnames/psnamerr.h
index 154c701d..888b76c4 100644
--- a/freetype/src/psnames/psnamerr.h
+++ b/freetype/src/psnames/psnamerr.h
@@ -4,7 +4,7 @@
*
* PS names module error codes (specification only).
*
- * Copyright (C) 2001-2020 by
+ * Copyright (C) 2001-2021 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
diff --git a/freetype/src/psnames/psnames.c b/freetype/src/psnames/psnames.c
index cff36851..e7be6707 100644
--- a/freetype/src/psnames/psnames.c
+++ b/freetype/src/psnames/psnames.c
@@ -4,7 +4,7 @@
*
* FreeType psnames module component (body only).
*
- * Copyright (C) 1996-2020 by
+ * Copyright (C) 1996-2021 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
diff --git a/freetype/src/psnames/pstables.h b/freetype/src/psnames/pstables.h
index c215f16f..0bcadca9 100644
--- a/freetype/src/psnames/pstables.h
+++ b/freetype/src/psnames/pstables.h
@@ -4,7 +4,7 @@
*
* PostScript glyph names.
*
- * Copyright (C) 2005-2020 by
+ * Copyright (C) 2005-2021 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
diff --git a/freetype/src/psnames/rules.mk b/freetype/src/psnames/rules.mk
index 14cdda3a..6694f4eb 100644
--- a/freetype/src/psnames/rules.mk
+++ b/freetype/src/psnames/rules.mk
@@ -3,7 +3,7 @@
#
-# Copyright (C) 1996-2020 by
+# Copyright (C) 1996-2021 by
# David Turner, Robert Wilhelm, and Werner Lemberg.
#
# This file is part of the FreeType project, and may only be used, modified,
diff --git a/freetype/src/raster/ftmisc.h b/freetype/src/raster/ftmisc.h
index 6efe4a9a..b12a0512 100644
--- a/freetype/src/raster/ftmisc.h
+++ b/freetype/src/raster/ftmisc.h
@@ -5,7 +5,7 @@
* Miscellaneous macros for stand-alone rasterizer (specification
* only).
*
- * Copyright (C) 2005-2020 by
+ * Copyright (C) 2005-2021 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used
@@ -47,11 +47,8 @@
typedef signed long FT_F26Dot6;
typedef int FT_Error;
-#define FT_MAKE_TAG( _x1, _x2, _x3, _x4 ) \
- ( ( (FT_ULong)_x1 << 24 ) | \
- ( (FT_ULong)_x2 << 16 ) | \
- ( (FT_ULong)_x3 << 8 ) | \
- (FT_ULong)_x4 )
+
+#define FT_STATIC_BYTE_CAST( type, var ) (type)(FT_Byte)(var)
/* from include/freetype/ftsystem.h */
diff --git a/freetype/src/raster/ftraster.c b/freetype/src/raster/ftraster.c
index 9f0a7976..bfc059c1 100644
--- a/freetype/src/raster/ftraster.c
+++ b/freetype/src/raster/ftraster.c
@@ -4,7 +4,7 @@
*
* The FreeType glyph rasterizer (body).
*
- * Copyright (C) 1996-2020 by
+ * Copyright (C) 1996-2021 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
@@ -149,9 +149,6 @@
/*************************************************************************/
/*************************************************************************/
- /* define DEBUG_RASTER if you want to compile a debugging version */
-/* #define DEBUG_RASTER */
-
/*************************************************************************/
/*************************************************************************/
@@ -200,12 +197,13 @@
#define FT_THROW( e ) FT_ERR_CAT( Raster_Err_, e )
#endif
-#define Raster_Err_None 0
-#define Raster_Err_Not_Ini -1
-#define Raster_Err_Overflow -2
-#define Raster_Err_Neg_Height -3
-#define Raster_Err_Invalid -4
-#define Raster_Err_Unsupported -5
+#define Raster_Err_Ok 0
+#define Raster_Err_Invalid_Outline -1
+#define Raster_Err_Cannot_Render_Glyph -2
+#define Raster_Err_Invalid_Argument -3
+#define Raster_Err_Raster_Overflow -4
+#define Raster_Err_Raster_Uninitialized -5
+#define Raster_Err_Raster_Negative_Height -6
#define ft_memset memset
@@ -230,13 +228,6 @@
#include "rasterrs.h"
-#define Raster_Err_None FT_Err_Ok
-#define Raster_Err_Not_Ini Raster_Err_Raster_Uninitialized
-#define Raster_Err_Overflow Raster_Err_Raster_Overflow
-#define Raster_Err_Neg_Height Raster_Err_Raster_Negative_Height
-#define Raster_Err_Invalid Raster_Err_Invalid_Outline
-#define Raster_Err_Unsupported Raster_Err_Cannot_Render_Glyph
-
#endif /* !STANDALONE_ */
@@ -375,16 +366,6 @@
typedef PProfile* PProfileList;
- /* Simple record used to implement a stack of bands, required */
- /* by the sub-banding mechanism */
- typedef struct black_TBand_
- {
- Short y_min; /* band's minimum */
- Short y_max; /* band's maximum */
-
- } black_TBand;
-
-
#define AlignProfileSize \
( ( sizeof ( TProfile ) + sizeof ( Alignment ) - 1 ) / sizeof ( Long ) )
@@ -426,8 +407,8 @@
/* prototypes used for sweep function dispatch */
typedef void
- Function_Sweep_Init( RAS_ARGS Short* min,
- Short* max );
+ Function_Sweep_Init( RAS_ARGS Short min,
+ Short max );
typedef void
Function_Sweep_Span( RAS_ARGS Short y,
@@ -492,10 +473,11 @@
Int numTurns; /* number of Y-turns in outline */
- TPoint* arc; /* current Bezier arc pointer */
+ Byte dropOutControl; /* current drop_out control method */
UShort bWidth; /* target bitmap width */
PByte bOrigin; /* target bitmap bottom-left origin */
+ PByte bLine; /* target bitmap current line */
Long lastX, lastY;
Long minY, maxY;
@@ -517,9 +499,6 @@
FT_Bitmap target; /* description of target bit/pixmap */
FT_Outline outline;
- Long traceOfs; /* current offset in target bitmap */
- Short traceIncr; /* sweep's increment in target bitmap */
-
/* dispatch variables */
Function_Sweep_Init* Proc_Sweep_Init;
@@ -527,18 +506,6 @@
Function_Sweep_Span* Proc_Sweep_Drop;
Function_Sweep_Step* Proc_Sweep_Step;
- Byte dropOutControl; /* current drop_out control method */
-
- Bool second_pass; /* indicates whether a horizontal pass */
- /* should be performed to control */
- /* drop-out accurately when calling */
- /* Render_Glyph. */
-
- TPoint arcs[3 * MaxBezier + 1]; /* The Bezier stack */
-
- black_TBand band_stack[16]; /* band stack used for sub-banding */
- Int band_top; /* band stack top */
-
};
@@ -660,7 +627,7 @@
if ( ras.top >= ras.maxBuff )
{
- ras.error = FT_THROW( Overflow );
+ ras.error = FT_THROW( Raster_Overflow );
return FAILURE;
}
@@ -689,7 +656,7 @@
default:
FT_ERROR(( "New_Profile: invalid profile direction\n" ));
- ras.error = FT_THROW( Invalid );
+ ras.error = FT_THROW( Invalid_Outline );
return FAILURE;
}
@@ -731,7 +698,7 @@
if ( h < 0 )
{
FT_ERROR(( "End_Profile: negative height encountered\n" ));
- ras.error = FT_THROW( Neg_Height );
+ ras.error = FT_THROW( Raster_Negative_Height );
return FAILURE;
}
@@ -767,7 +734,7 @@
if ( ras.top >= ras.maxBuff )
{
FT_TRACE1(( "overflow in End_Profile\n" ));
- ras.error = FT_THROW( Overflow );
+ ras.error = FT_THROW( Raster_Overflow );
return FAILURE;
}
@@ -822,7 +789,7 @@
ras.maxBuff--;
if ( ras.maxBuff <= ras.top )
{
- ras.error = FT_THROW( Overflow );
+ ras.error = FT_THROW( Raster_Overflow );
return FAILURE;
}
ras.numTurns++;
@@ -1086,7 +1053,7 @@
size = e2 - e1 + 1;
if ( ras.top + size >= ras.maxBuff )
{
- ras.error = FT_THROW( Overflow );
+ ras.error = FT_THROW( Raster_Overflow );
return FAILURE;
}
@@ -1209,6 +1176,7 @@
*/
static Bool
Bezier_Up( RAS_ARGS Int degree,
+ TPoint* arc,
TSplitter splitter,
Long miny,
Long maxy )
@@ -1216,13 +1184,11 @@
Long y1, y2, e, e2, e0;
Short f1;
- TPoint* arc;
TPoint* start_arc;
PLong top;
- arc = ras.arc;
y1 = arc[degree].y;
y2 = arc[0].y;
top = ras.top;
@@ -1271,7 +1237,7 @@
if ( ( top + TRUNC( e2 - e ) + 1 ) >= ras.maxBuff )
{
ras.top = top;
- ras.error = FT_THROW( Overflow );
+ ras.error = FT_THROW( Raster_Overflow );
return FAILURE;
}
@@ -1314,7 +1280,6 @@
Fin:
ras.top = top;
- ras.arc -= degree;
return SUCCESS;
}
@@ -1346,11 +1311,11 @@
*/
static Bool
Bezier_Down( RAS_ARGS Int degree,
+ TPoint* arc,
TSplitter splitter,
Long miny,
Long maxy )
{
- TPoint* arc = ras.arc;
Bool result, fresh;
@@ -1362,7 +1327,7 @@
fresh = ras.fresh;
- result = Bezier_Up( RAS_VARS degree, splitter, -maxy, -miny );
+ result = Bezier_Up( RAS_VARS degree, arc, splitter, -maxy, -miny );
if ( fresh && !ras.fresh )
ras.cProfile->start = -ras.cProfile->start;
@@ -1503,22 +1468,24 @@
{
Long y1, y2, y3, x3, ymin, ymax;
TStates state_bez;
+ TPoint arcs[2 * MaxBezier + 1]; /* The Bezier stack */
+ TPoint* arc; /* current Bezier arc pointer */
- ras.arc = ras.arcs;
- ras.arc[2].x = ras.lastX;
- ras.arc[2].y = ras.lastY;
- ras.arc[1].x = cx;
- ras.arc[1].y = cy;
- ras.arc[0].x = x;
- ras.arc[0].y = y;
+ arc = arcs;
+ arc[2].x = ras.lastX;
+ arc[2].y = ras.lastY;
+ arc[1].x = cx;
+ arc[1].y = cy;
+ arc[0].x = x;
+ arc[0].y = y;
do
{
- y1 = ras.arc[2].y;
- y2 = ras.arc[1].y;
- y3 = ras.arc[0].y;
- x3 = ras.arc[0].x;
+ y1 = arc[2].y;
+ y2 = arc[1].y;
+ y3 = arc[0].y;
+ x3 = arc[0].x;
/* first, categorize the Bezier arc */
@@ -1536,13 +1503,13 @@
if ( y2 < ymin || y2 > ymax )
{
/* this arc has no given direction, split it! */
- Split_Conic( ras.arc );
- ras.arc += 2;
+ Split_Conic( arc );
+ arc += 2;
}
else if ( y1 == y3 )
{
/* this arc is flat, ignore it and pop it from the Bezier stack */
- ras.arc -= 2;
+ arc -= 2;
}
else
{
@@ -1569,15 +1536,18 @@
/* now call the appropriate routine */
if ( state_bez == Ascending_State )
{
- if ( Bezier_Up( RAS_VARS 2, Split_Conic, ras.minY, ras.maxY ) )
+ if ( Bezier_Up( RAS_VARS 2, arc, Split_Conic,
+ ras.minY, ras.maxY ) )
goto Fail;
}
else
- if ( Bezier_Down( RAS_VARS 2, Split_Conic, ras.minY, ras.maxY ) )
+ if ( Bezier_Down( RAS_VARS 2, arc, Split_Conic,
+ ras.minY, ras.maxY ) )
goto Fail;
+ arc -= 2;
}
- } while ( ras.arc >= ras.arcs );
+ } while ( arc >= arcs );
ras.lastX = x3;
ras.lastY = y3;
@@ -1632,25 +1602,27 @@
{
Long y1, y2, y3, y4, x4, ymin1, ymax1, ymin2, ymax2;
TStates state_bez;
+ TPoint arcs[3 * MaxBezier + 1]; /* The Bezier stack */
+ TPoint* arc; /* current Bezier arc pointer */
- ras.arc = ras.arcs;
- ras.arc[3].x = ras.lastX;
- ras.arc[3].y = ras.lastY;
- ras.arc[2].x = cx1;
- ras.arc[2].y = cy1;
- ras.arc[1].x = cx2;
- ras.arc[1].y = cy2;
- ras.arc[0].x = x;
- ras.arc[0].y = y;
+ arc = arcs;
+ arc[3].x = ras.lastX;
+ arc[3].y = ras.lastY;
+ arc[2].x = cx1;
+ arc[2].y = cy1;
+ arc[1].x = cx2;
+ arc[1].y = cy2;
+ arc[0].x = x;
+ arc[0].y = y;
do
{
- y1 = ras.arc[3].y;
- y2 = ras.arc[2].y;
- y3 = ras.arc[1].y;
- y4 = ras.arc[0].y;
- x4 = ras.arc[0].x;
+ y1 = arc[3].y;
+ y2 = arc[2].y;
+ y3 = arc[1].y;
+ y4 = arc[0].y;
+ x4 = arc[0].x;
/* first, categorize the Bezier arc */
@@ -1679,13 +1651,13 @@
if ( ymin2 < ymin1 || ymax2 > ymax1 )
{
/* this arc has no given direction, split it! */
- Split_Cubic( ras.arc );
- ras.arc += 3;
+ Split_Cubic( arc );
+ arc += 3;
}
else if ( y1 == y4 )
{
/* this arc is flat, ignore it and pop it from the Bezier stack */
- ras.arc -= 3;
+ arc -= 3;
}
else
{
@@ -1711,15 +1683,18 @@
/* compute intersections */
if ( state_bez == Ascending_State )
{
- if ( Bezier_Up( RAS_VARS 3, Split_Cubic, ras.minY, ras.maxY ) )
+ if ( Bezier_Up( RAS_VARS 3, arc, Split_Cubic,
+ ras.minY, ras.maxY ) )
goto Fail;
}
else
- if ( Bezier_Down( RAS_VARS 3, Split_Cubic, ras.minY, ras.maxY ) )
+ if ( Bezier_Down( RAS_VARS 3, arc, Split_Cubic,
+ ras.minY, ras.maxY ) )
goto Fail;
+ arc -= 3;
}
- } while ( ras.arc >= ras.arcs );
+ } while ( arc >= arcs );
ras.lastX = x4;
ras.lastY = y4;
@@ -1967,7 +1942,7 @@
return SUCCESS;
Invalid_Outline:
- ras.error = FT_THROW( Invalid );
+ ras.error = FT_THROW( Invalid_Outline );
Fail:
return FAILURE;
@@ -2120,8 +2095,8 @@
* Removes an old profile from a linked list.
*/
static void
- DelOld( PProfileList list,
- PProfile profile )
+ DelOld( PProfileList list,
+ const PProfile profile )
{
PProfile *old, current;
@@ -2214,16 +2189,13 @@
*/
static void
- Vertical_Sweep_Init( RAS_ARGS Short* min,
- Short* max )
+ Vertical_Sweep_Init( RAS_ARGS Short min,
+ Short max )
{
- Long pitch = ras.target.pitch;
-
FT_UNUSED( max );
- ras.traceIncr = (Short)-pitch;
- ras.traceOfs = -*min * pitch;
+ ras.bLine = ras.bOrigin - min * ras.target.pitch;
}
@@ -2234,8 +2206,7 @@
PProfile left,
PProfile right )
{
- Long e1, e2;
- Byte* target;
+ Long e1, e2;
Int dropOutControl = left->flags & 7;
@@ -2268,6 +2239,8 @@
if ( e2 >= 0 && e1 < ras.bWidth )
{
+ Byte* target;
+
Int c1, c2;
Byte f1, f2;
@@ -2285,7 +2258,7 @@
f1 = (Byte) ( 0xFF >> ( e1 & 7 ) );
f2 = (Byte) ~( 0x7F >> ( e2 & 7 ) );
- target = ras.bOrigin + ras.traceOfs + c1;
+ target = ras.bLine + c1;
c2 -= c1;
if ( c2 > 0 )
@@ -2437,8 +2410,8 @@
c1 = (Short)( e1 >> 3 );
f1 = (Short)( e1 & 7 );
- if ( e1 >= 0 && e1 < ras.bWidth &&
- ras.bOrigin[ras.traceOfs + c1] & ( 0x80 >> f1 ) )
+ if ( e1 >= 0 && e1 < ras.bWidth &&
+ ras.bLine[c1] & ( 0x80 >> f1 ) )
goto Exit;
}
else
@@ -2454,7 +2427,7 @@
c1 = (Short)( e1 >> 3 );
f1 = (Short)( e1 & 7 );
- ras.bOrigin[ras.traceOfs + c1] |= (char)( 0x80 >> f1 );
+ ras.bLine[c1] |= (char)( 0x80 >> f1 );
}
Exit:
@@ -2465,7 +2438,7 @@
static void
Vertical_Sweep_Step( RAS_ARG )
{
- ras.traceOfs += ras.traceIncr;
+ ras.bLine -= ras.target.pitch;
}
@@ -2479,8 +2452,8 @@
*/
static void
- Horizontal_Sweep_Init( RAS_ARGS Short* min,
- Short* max )
+ Horizontal_Sweep_Init( RAS_ARGS Short min,
+ Short max )
{
/* nothing, really */
FT_UNUSED_RASTER;
@@ -2744,13 +2717,13 @@
/* check the Y-turns */
if ( ras.numTurns == 0 )
{
- ras.error = FT_THROW( Invalid );
+ ras.error = FT_THROW( Invalid_Outline );
return FAILURE;
}
/* now initialize the sweep */
- ras.Proc_Sweep_Init( RAS_VARS &min_Y, &max_Y );
+ ras.Proc_Sweep_Init( RAS_VARS min_Y, max_Y );
/* then compute the distance of each profile from min_Y */
@@ -2977,11 +2950,11 @@
FT_Outline_Get_CBox( const FT_Outline* outline,
FT_BBox *acbox )
{
- Long xMin, yMin, xMax, yMax;
-
-
if ( outline && acbox )
{
+ Long xMin, yMin, xMax, yMax;
+
+
if ( outline->n_points == 0 )
{
xMin = 0;
@@ -3039,63 +3012,54 @@
* Renderer error code.
*/
static int
- Render_Single_Pass( RAS_ARGS Bool flipped )
+ Render_Single_Pass( RAS_ARGS Bool flipped,
+ Int y_min,
+ Int y_max )
{
- Short i, j, k;
+ Int y_mid;
+ Int band_top = 0;
+ Int band_stack[32]; /* enough to bisect 32-bit int bands */
- while ( ras.band_top >= 0 )
+ while ( 1 )
{
- ras.maxY = (Long)ras.band_stack[ras.band_top].y_max * ras.precision;
- ras.minY = (Long)ras.band_stack[ras.band_top].y_min * ras.precision;
+ ras.minY = (Long)y_min * ras.precision;
+ ras.maxY = (Long)y_max * ras.precision;
ras.top = ras.buff;
- ras.error = Raster_Err_None;
+ ras.error = Raster_Err_Ok;
if ( Convert_Glyph( RAS_VARS flipped ) )
{
- if ( ras.error != Raster_Err_Overflow )
- return FAILURE;
-
- ras.error = Raster_Err_None;
+ if ( ras.error != Raster_Err_Raster_Overflow )
+ return ras.error;
/* sub-banding */
-#ifdef DEBUG_RASTER
- ClearBand( RAS_VARS TRUNC( ras.minY ), TRUNC( ras.maxY ) );
-#endif
+ if ( y_min == y_max )
+ return ras.error; /* still Raster_Overflow */
- i = ras.band_stack[ras.band_top].y_min;
- j = ras.band_stack[ras.band_top].y_max;
+ y_mid = ( y_min + y_max ) >> 1;
- k = (Short)( ( i + j ) / 2 );
-
- if ( ras.band_top >= 7 || k < i )
- {
- ras.band_top = 0;
- ras.error = FT_THROW( Invalid );
-
- return ras.error;
- }
-
- ras.band_stack[ras.band_top + 1].y_min = k;
- ras.band_stack[ras.band_top + 1].y_max = j;
-
- ras.band_stack[ras.band_top].y_max = (Short)( k - 1 );
-
- ras.band_top++;
+ band_stack[band_top++] = y_min;
+ y_min = y_mid + 1;
}
else
{
if ( ras.fProfile )
if ( Draw_Sweep( RAS_VAR ) )
return ras.error;
- ras.band_top--;
+
+ if ( --band_top < 0 )
+ break;
+
+ y_max = y_min - 1;
+ y_min = band_stack[band_top];
}
}
- return SUCCESS;
+ return Raster_Err_Ok;
}
@@ -3132,9 +3096,6 @@
ras.dropOutControl += 1;
}
- ras.second_pass = (Bool)( !( ras.outline.flags &
- FT_OUTLINE_SINGLE_PASS ) );
-
/* Vertical Sweep */
FT_TRACE7(( "Vertical pass (ftraster)\n" ));
@@ -3143,21 +3104,18 @@
ras.Proc_Sweep_Drop = Vertical_Sweep_Drop;
ras.Proc_Sweep_Step = Vertical_Sweep_Step;
- ras.band_top = 0;
- ras.band_stack[0].y_min = 0;
- ras.band_stack[0].y_max = (Short)( ras.target.rows - 1 );
-
ras.bWidth = (UShort)ras.target.width;
ras.bOrigin = (Byte*)ras.target.buffer;
if ( ras.target.pitch > 0 )
ras.bOrigin += (Long)( ras.target.rows - 1 ) * ras.target.pitch;
- if ( ( error = Render_Single_Pass( RAS_VARS 0 ) ) != 0 )
+ error = Render_Single_Pass( RAS_VARS 0, 0, (Int)ras.target.rows - 1 );
+ if ( error )
return error;
/* Horizontal Sweep */
- if ( ras.second_pass && ras.dropOutControl != 2 )
+ if ( !( ras.outline.flags & FT_OUTLINE_SINGLE_PASS ) )
{
FT_TRACE7(( "Horizontal pass (ftraster)\n" ));
@@ -3166,22 +3124,12 @@
ras.Proc_Sweep_Drop = Horizontal_Sweep_Drop;
ras.Proc_Sweep_Step = Horizontal_Sweep_Step;
- ras.band_top = 0;
- ras.band_stack[0].y_min = 0;
- ras.band_stack[0].y_max = (Short)( ras.target.width - 1 );
-
- if ( ( error = Render_Single_Pass( RAS_VARS 1 ) ) != 0 )
+ error = Render_Single_Pass( RAS_VARS 1, 0, (Int)ras.target.width - 1 );
+ if ( error )
return error;
}
- return Raster_Err_None;
- }
-
-
- static void
- ft_black_init( black_PRaster raster )
- {
- FT_UNUSED( raster );
+ return Raster_Err_Ok;
}
@@ -3202,7 +3150,6 @@
*araster = (FT_Raster)&the_raster;
FT_ZERO( &the_raster );
- ft_black_init( &the_raster );
return 0;
}
@@ -3227,14 +3174,10 @@
black_PRaster raster = NULL;
- *araster = 0;
if ( !FT_NEW( raster ) )
- {
raster->memory = memory;
- ft_black_init( raster );
- *araster = raster;
- }
+ *araster = raster;
return error;
}
@@ -3292,38 +3235,36 @@
if ( !raster )
- return FT_THROW( Not_Ini );
+ return FT_THROW( Raster_Uninitialized );
if ( !outline )
- return FT_THROW( Invalid );
+ return FT_THROW( Invalid_Outline );
/* return immediately if the outline is empty */
if ( outline->n_points == 0 || outline->n_contours <= 0 )
- return Raster_Err_None;
+ return Raster_Err_Ok;
if ( !outline->contours || !outline->points )
- return FT_THROW( Invalid );
+ return FT_THROW( Invalid_Outline );
if ( outline->n_points !=
outline->contours[outline->n_contours - 1] + 1 )
- return FT_THROW( Invalid );
+ return FT_THROW( Invalid_Outline );
/* this version of the raster does not support direct rendering, sorry */
- if ( params->flags & FT_RASTER_FLAG_DIRECT )
- return FT_THROW( Unsupported );
-
- if ( params->flags & FT_RASTER_FLAG_AA )
- return FT_THROW( Unsupported );
+ if ( params->flags & FT_RASTER_FLAG_DIRECT ||
+ params->flags & FT_RASTER_FLAG_AA )
+ return FT_THROW( Cannot_Render_Glyph );
if ( !target_map )
- return FT_THROW( Invalid );
+ return FT_THROW( Invalid_Argument );
/* nothing to do */
if ( !target_map->width || !target_map->rows )
- return Raster_Err_None;
+ return Raster_Err_Ok;
if ( !target_map->buffer )
- return FT_THROW( Invalid );
+ return FT_THROW( Invalid_Argument );
ras.outline = *outline;
ras.target = *target_map;
diff --git a/freetype/src/raster/ftraster.h b/freetype/src/raster/ftraster.h
index 1b2ee3c0..4affd48b 100644
--- a/freetype/src/raster/ftraster.h
+++ b/freetype/src/raster/ftraster.h
@@ -4,7 +4,7 @@
*
* The FreeType glyph rasterizer (specification).
*
- * Copyright (C) 1996-2020 by
+ * Copyright (C) 1996-2021 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used
diff --git a/freetype/src/raster/ftrend1.c b/freetype/src/raster/ftrend1.c
index 57fed9bc..236a8daf 100644
--- a/freetype/src/raster/ftrend1.c
+++ b/freetype/src/raster/ftrend1.c
@@ -4,7 +4,7 @@
*
* The FreeType glyph rasterizer interface (body).
*
- * Copyright (C) 1996-2020 by
+ * Copyright (C) 1996-2021 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
diff --git a/freetype/src/raster/ftrend1.h b/freetype/src/raster/ftrend1.h
index 3f6be536..e4cea537 100644
--- a/freetype/src/raster/ftrend1.h
+++ b/freetype/src/raster/ftrend1.h
@@ -4,7 +4,7 @@
*
* The FreeType glyph rasterizer interface (specification).
*
- * Copyright (C) 1996-2020 by
+ * Copyright (C) 1996-2021 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
diff --git a/freetype/src/raster/module.mk b/freetype/src/raster/module.mk
index 3600732b..fbc1d64e 100644
--- a/freetype/src/raster/module.mk
+++ b/freetype/src/raster/module.mk
@@ -3,7 +3,7 @@
#
-# Copyright (C) 1996-2020 by
+# Copyright (C) 1996-2021 by
# David Turner, Robert Wilhelm, and Werner Lemberg.
#
# This file is part of the FreeType project, and may only be used, modified,
diff --git a/freetype/src/raster/raster.c b/freetype/src/raster/raster.c
index cd37943b..ad81a394 100644
--- a/freetype/src/raster/raster.c
+++ b/freetype/src/raster/raster.c
@@ -4,7 +4,7 @@
*
* FreeType monochrome rasterer module component (body only).
*
- * Copyright (C) 1996-2020 by
+ * Copyright (C) 1996-2021 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
diff --git a/freetype/src/raster/rasterrs.h b/freetype/src/raster/rasterrs.h
index a29651a6..852dd5bc 100644
--- a/freetype/src/raster/rasterrs.h
+++ b/freetype/src/raster/rasterrs.h
@@ -4,7 +4,7 @@
*
* monochrome renderer error codes (specification only).
*
- * Copyright (C) 2001-2020 by
+ * Copyright (C) 2001-2021 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
diff --git a/freetype/src/raster/rules.mk b/freetype/src/raster/rules.mk
index 3e949d77..7ffda772 100644
--- a/freetype/src/raster/rules.mk
+++ b/freetype/src/raster/rules.mk
@@ -3,7 +3,7 @@
#
-# Copyright (C) 1996-2020 by
+# Copyright (C) 1996-2021 by
# David Turner, Robert Wilhelm, and Werner Lemberg.
#
# This file is part of the FreeType project, and may only be used, modified,
diff --git a/freetype/src/sdf/ftbsdf.c b/freetype/src/sdf/ftbsdf.c
new file mode 100644
index 00000000..8da5c9d9
--- /dev/null
+++ b/freetype/src/sdf/ftbsdf.c
@@ -0,0 +1,1347 @@
+/****************************************************************************
+ *
+ * ftbsdf.c
+ *
+ * Signed Distance Field support for bitmap fonts (body only).
+ *
+ * Copyright (C) 2020-2021 by
+ * David Turner, Robert Wilhelm, and Werner Lemberg.
+ *
+ * Written by Anuj Verma.
+ *
+ * This file is part of the FreeType project, and may only be used,
+ * modified, and distributed under the terms of the FreeType project
+ * license, LICENSE.TXT. By continuing to use, modify, or distribute
+ * this file you indicate that you have read the license and
+ * understand and accept it fully.
+ *
+ */
+
+
+#include <freetype/internal/ftobjs.h>
+#include <freetype/internal/ftdebug.h>
+#include <freetype/internal/ftmemory.h>
+#include <freetype/fttrigon.h>
+
+#include "ftsdf.h"
+#include "ftsdferrs.h"
+#include "ftsdfcommon.h"
+
+
+ /**************************************************************************
+ *
+ * A brief technical overview of how the BSDF rasterizer works
+ * -----------------------------------------------------------
+ *
+ * [Notes]:
+ * * SDF stands for Signed Distance Field everywhere.
+ *
+ * * BSDF stands for Bitmap to Signed Distance Field rasterizer.
+ *
+ * * This renderer converts rasterized bitmaps to SDF. There is another
+ * renderer called 'sdf', which generates SDF directly from outlines;
+ * see file `ftsdf.c` for more.
+ *
+ * * The idea of generating SDF from bitmaps is taken from two research
+ * papers, where one is dependent on the other:
+ *
+ * - Per-Erik Danielsson: Euclidean Distance Mapping
+ * http://webstaff.itn.liu.se/~stegu/JFA/Danielsson.pdf
+ *
+ * From this paper we use the eight-point sequential Euclidean
+ * distance mapping (8SED). This is the heart of the process used
+ * in this rasterizer.
+ *
+ * - Stefan Gustavson, Robin Strand: Anti-aliased Euclidean distance transform.
+ * http://weber.itn.liu.se/~stegu/aadist/edtaa_preprint.pdf
+ *
+ * The original 8SED algorithm discards the pixels' alpha values,
+ * which can contain information about the actual outline of the
+ * glyph. This paper takes advantage of those alpha values and
+ * approximates outline pretty accurately.
+ *
+ * * This rasterizer also works for monochrome bitmaps. However, the
+ * result is not as accurate since we don't have any way to
+ * approximate outlines from binary bitmaps.
+ *
+ * ========================================================================
+ *
+ * Generating SDF from bitmap is done in several steps.
+ *
+ * (1) The only information we have is the bitmap itself. It can
+ * be monochrome or anti-aliased. If it is anti-aliased, pixel values
+ * are nothing but coverage values. These coverage values can be used
+ * to extract information about the outline of the image. For
+ * example, if the pixel's alpha value is 0.5, then we can safely
+ * assume that the outline passes through the center of the pixel.
+ *
+ * (2) Find edge pixels in the bitmap (see `bsdf_is_edge` for more). For
+ * all edge pixels we use the Anti-aliased Euclidean distance
+ * transform algorithm and compute approximate edge distances (see
+ * `compute_edge_distance` and/or the second paper for more).
+ *
+ * (3) Now that we have computed approximate distances for edge pixels we
+ * use the 8SED algorithm to basically sweep the entire bitmap and
+ * compute distances for the rest of the pixels. (Since the algorithm
+ * is pretty convoluted it is only explained briefly in a comment to
+ * function `edt8`. To see the actual algorithm refer to the first
+ * paper.)
+ *
+ * (4) Finally, compute the sign for each pixel. This is done in function
+ * `finalize_sdf`. The basic idea is that if a pixel's original
+ * alpha/coverage value is greater than 0.5 then it is 'inside' (and
+ * 'outside' otherwise).
+ *
+ * Pseudo Code:
+ *
+ * ```
+ * b = source bitmap;
+ * t = target bitmap;
+ * dm = list of distances; // dimension equal to b
+ *
+ * foreach grid_point (x, y) in b:
+ * {
+ * if (is_edge(x, y)):
+ * dm = approximate_edge_distance(b, x, y);
+ *
+ * // do the 8SED on the distances
+ * edt8(dm);
+ *
+ * // determine the signs
+ * determine_signs(dm):
+ *
+ * // copy SDF data to the target bitmap
+ * copy(dm to t);
+ * }
+ *
+ */
+
+
+ /**************************************************************************
+ *
+ * The macro FT_COMPONENT is used in trace mode. It is an implicit
+ * parameter of the FT_TRACE() and FT_ERROR() macros, used to print/log
+ * messages during execution.
+ */
+#undef FT_COMPONENT
+#define FT_COMPONENT bsdf
+
+
+ /**************************************************************************
+ *
+ * useful macros
+ *
+ */
+
+#define ONE 65536 /* 1 in 16.16 */
+
+
+ /**************************************************************************
+ *
+ * structs
+ *
+ */
+
+
+ /**************************************************************************
+ *
+ * @Struct:
+ * BSDF_TRaster
+ *
+ * @Description:
+ * This struct is used in place of @FT_Raster and is stored within the
+ * internal FreeType renderer struct. While rasterizing this is passed
+ * to the @FT_Raster_RenderFunc function, which then can be used however
+ * we want.
+ *
+ * @Fields:
+ * memory ::
+ * Used internally to allocate intermediate memory while raterizing.
+ *
+ */
+ typedef struct BSDF_TRaster_
+ {
+ FT_Memory memory;
+
+ } BSDF_TRaster, *BSDF_PRaster;
+
+
+ /**************************************************************************
+ *
+ * @Struct:
+ * ED
+ *
+ * @Description:
+ * Euclidean distance. It gets used for Euclidean distance transforms;
+ * it can also be interpreted as an edge distance.
+ *
+ * @Fields:
+ * dist ::
+ * Vector length of the `near` parameter. Can be squared or absolute
+ * depending on the `USE_SQUARED_DISTANCES` macro defined in file
+ * `ftsdfcommon.h`.
+ *
+ * near ::
+ * Vector to the nearest edge. Can also be interpreted as shortest
+ * distance of a point.
+ *
+ * alpha ::
+ * Alpha value of the original bitmap from which we generate SDF.
+ * Needed for computing the gradient and determining the proper sign
+ * of a pixel.
+ *
+ */
+ typedef struct ED_
+ {
+ FT_16D16 dist;
+ FT_16D16_Vec near;
+ FT_Byte alpha;
+
+ } ED;
+
+
+ /**************************************************************************
+ *
+ * @Struct:
+ * BSDF_Worker
+ *
+ * @Description:
+ * A convenience struct that is passed to functions while generating
+ * SDF; most of those functions require the same parameters.
+ *
+ * @Fields:
+ * distance_map ::
+ * A one-dimensional array that gets interpreted as two-dimensional
+ * one. It contains the Euclidean distances of all points of the
+ * bitmap.
+ *
+ * width ::
+ * Width of the above `distance_map`.
+ *
+ * rows ::
+ * Number of rows in the above `distance_map`.
+ *
+ * params ::
+ * Internal parameters and properties required by the rasterizer. See
+ * file `ftsdf.h` for more.
+ *
+ */
+ typedef struct BSDF_Worker_
+ {
+ ED* distance_map;
+
+ FT_Int width;
+ FT_Int rows;
+
+ SDF_Raster_Params params;
+
+ } BSDF_Worker;
+
+
+ /**************************************************************************
+ *
+ * initializer
+ *
+ */
+
+ static const ED zero_ed = { 0, { 0, 0 }, 0 };
+
+
+ /**************************************************************************
+ *
+ * rasterizer functions
+ *
+ */
+
+ /**************************************************************************
+ *
+ * @Function:
+ * bsdf_is_edge
+ *
+ * @Description:
+ * Check whether a pixel is an edge pixel, i.e., whether it is
+ * surrounded by a completely black pixel (zero alpha), and the current
+ * pixel is not a completely black pixel.
+ *
+ * @Input:
+ * dm ::
+ * Array of distances. The parameter must point to the current
+ * pixel, i.e., the pixel that is to be checked for being an edge.
+ *
+ * x ::
+ * The x position of the current pixel.
+ *
+ * y ::
+ * The y position of the current pixel.
+ *
+ * w ::
+ * Width of the bitmap.
+ *
+ * r ::
+ * Number of rows in the bitmap.
+ *
+ * @Return:
+ * 1~if the current pixel is an edge pixel, 0~otherwise.
+ *
+ */
+
+#ifdef CHECK_NEIGHBOR
+#undef CHECK_NEIGHBOR
+#endif
+
+#define CHECK_NEIGHBOR( x_offset, y_offset ) \
+ do \
+ { \
+ if ( x + x_offset >= 0 && x + x_offset < w && \
+ y + y_offset >= 0 && y + y_offset < r ) \
+ { \
+ num_neighbors++; \
+ \
+ to_check = dm + y_offset * w + x_offset; \
+ if ( to_check->alpha == 0 ) \
+ { \
+ is_edge = 1; \
+ goto Done; \
+ } \
+ } \
+ } while ( 0 )
+
+ static FT_Bool
+ bsdf_is_edge( ED* dm, /* distance map */
+ FT_Int x, /* x index of point to check */
+ FT_Int y, /* y index of point to check */
+ FT_Int w, /* width */
+ FT_Int r ) /* rows */
+ {
+ FT_Bool is_edge = 0;
+ ED* to_check = NULL;
+ FT_Int num_neighbors = 0;
+
+
+ if ( dm->alpha == 0 )
+ goto Done;
+
+ if ( dm->alpha > 0 && dm->alpha < 255 )
+ {
+ is_edge = 1;
+ goto Done;
+ }
+
+ /* up */
+ CHECK_NEIGHBOR( 0, -1 );
+
+ /* down */
+ CHECK_NEIGHBOR( 0, 1 );
+
+ /* left */
+ CHECK_NEIGHBOR( -1, 0 );
+
+ /* right */
+ CHECK_NEIGHBOR( 1, 0 );
+
+ /* up left */
+ CHECK_NEIGHBOR( -1, -1 );
+
+ /* up right */
+ CHECK_NEIGHBOR( 1, -1 );
+
+ /* down left */
+ CHECK_NEIGHBOR( -1, 1 );
+
+ /* down right */
+ CHECK_NEIGHBOR( 1, 1 );
+
+ if ( num_neighbors != 8 )
+ is_edge = 1;
+
+ Done:
+ return is_edge;
+ }
+
+#undef CHECK_NEIGHBOR
+
+
+ /**************************************************************************
+ *
+ * @Function:
+ * compute_edge_distance
+ *
+ * @Description:
+ * Approximate the outline and compute the distance from `current`
+ * to the approximated outline.
+ *
+ * @Input:
+ * current ::
+ * Array of Euclidean distances. `current` must point to the position
+ * for which the distance is to be caculated. We treat this array as
+ * a two-dimensional array mapped to a one-dimensional array.
+ *
+ * x ::
+ * The x coordinate of the `current` parameter in the array.
+ *
+ * y ::
+ * The y coordinate of the `current` parameter in the array.
+ *
+ * w ::
+ * The width of the distances array.
+ *
+ * r ::
+ * Number of rows in the distances array.
+ *
+ * @Return:
+ * A vector pointing to the approximate edge distance.
+ *
+ * @Note:
+ * This is a computationally expensive function. Try to reduce the
+ * number of calls to this function. Moreover, this must only be used
+ * for edge pixel positions.
+ *
+ */
+ static FT_16D16_Vec
+ compute_edge_distance( ED* current,
+ FT_Int x,
+ FT_Int y,
+ FT_Int w,
+ FT_Int r )
+ {
+ /*
+ * This function, based on the paper presented by Stefan Gustavson and
+ * Robin Strand, gets used to approximate edge distances from
+ * anti-aliased bitmaps.
+ *
+ * The algorithm is as follows.
+ *
+ * (1) In anti-aliased images, the pixel's alpha value is the coverage
+ * of the pixel by the outline. For example, if the alpha value is
+ * 0.5f we can assume that the outline passes through the center of
+ * the pixel.
+ *
+ * (2) For this reason we can use that alpha value to approximate the real
+ * distance of the pixel to edge pretty accurately. A simple
+ * approximation is `(0.5f - alpha)`, assuming that the outline is
+ * parallel to the x or y~axis. However, in this algorithm we use a
+ * different approximation which is quite accurate even for
+ * non-axis-aligned edges.
+ *
+ * (3) The only remaining piece of information that we cannot
+ * approximate directly from the alpha is the direction of the edge.
+ * This is where we use Sobel's operator to compute the gradient of
+ * the pixel. The gradient give us a pretty good approximation of
+ * the edge direction. We use a 3x3 kernel filter to compute the
+ * gradient.
+ *
+ * (4) After the above two steps we have both the direction and the
+ * distance to the edge which is used to generate the Signed
+ * Distance Field.
+ *
+ * References:
+ *
+ * - Anti-Aliased Euclidean Distance Transform:
+ * http://weber.itn.liu.se/~stegu/aadist/edtaa_preprint.pdf
+ * - Sobel Operator:
+ * https://en.wikipedia.org/wiki/Sobel_operator
+ */
+
+ FT_16D16_Vec g = { 0, 0 };
+ FT_16D16 dist, current_alpha;
+ FT_16D16 a1, temp;
+ FT_16D16 gx, gy;
+ FT_16D16 alphas[9];
+
+
+ /* Since our spread cannot be 0, this condition */
+ /* can never be true. */
+ if ( x <= 0 || x >= w - 1 ||
+ y <= 0 || y >= r - 1 )
+ return g;
+
+ /* initialize the alphas */
+ alphas[0] = 256 * (FT_16D16)current[-w - 1].alpha;
+ alphas[1] = 256 * (FT_16D16)current[-w ].alpha;
+ alphas[2] = 256 * (FT_16D16)current[-w + 1].alpha;
+ alphas[3] = 256 * (FT_16D16)current[ -1].alpha;
+ alphas[4] = 256 * (FT_16D16)current[ 0].alpha;
+ alphas[5] = 256 * (FT_16D16)current[ 1].alpha;
+ alphas[6] = 256 * (FT_16D16)current[ w - 1].alpha;
+ alphas[7] = 256 * (FT_16D16)current[ w ].alpha;
+ alphas[8] = 256 * (FT_16D16)current[ w + 1].alpha;
+
+ current_alpha = alphas[4];
+
+ /* Compute the gradient using the Sobel operator. */
+ /* In this case we use the following 3x3 filters: */
+ /* */
+ /* For x: | -1 0 -1 | */
+ /* | -root(2) 0 root(2) | */
+ /* | -1 0 1 | */
+ /* */
+ /* For y: | -1 -root(2) -1 | */
+ /* | 0 0 0 | */
+ /* | 1 root(2) 1 | */
+ /* */
+ /* [Note]: 92681 is root(2) in 16.16 format. */
+ g.x = -alphas[0] -
+ FT_MulFix( alphas[3], 92681 ) -
+ alphas[6] +
+ alphas[2] +
+ FT_MulFix( alphas[5], 92681 ) +
+ alphas[8];
+
+ g.y = -alphas[0] -
+ FT_MulFix( alphas[1], 92681 ) -
+ alphas[2] +
+ alphas[6] +
+ FT_MulFix( alphas[7], 92681 ) +
+ alphas[8];
+
+ FT_Vector_NormLen( &g );
+
+ /* The gradient gives us the direction of the */
+ /* edge for the current pixel. Once we have the */
+ /* approximate direction of the edge, we can */
+ /* approximate the edge distance much better. */
+
+ if ( g.x == 0 || g.y == 0 )
+ dist = ONE / 2 - alphas[4];
+ else
+ {
+ gx = g.x;
+ gy = g.y;
+
+ gx = FT_ABS( gx );
+ gy = FT_ABS( gy );
+
+ if ( gx < gy )
+ {
+ temp = gx;
+ gx = gy;
+ gy = temp;
+ }
+
+ a1 = FT_DivFix( gy, gx ) / 2;
+
+ if ( current_alpha < a1 )
+ dist = ( gx + gy ) / 2 -
+ square_root( 2 * FT_MulFix( gx,
+ FT_MulFix( gy,
+ current_alpha ) ) );
+
+ else if ( current_alpha < ( ONE - a1 ) )
+ dist = FT_MulFix( ONE / 2 - current_alpha, gx );
+
+ else
+ dist = -( gx + gy ) / 2 +
+ square_root( 2 * FT_MulFix( gx,
+ FT_MulFix( gy,
+ ONE - current_alpha ) ) );
+ }
+
+ g.x = FT_MulFix( g.x, dist );
+ g.y = FT_MulFix( g.y, dist );
+
+ return g;
+ }
+
+
+ /**************************************************************************
+ *
+ * @Function:
+ * bsdf_approximate_edge
+ *
+ * @Description:
+ * Loops over all the pixels and call `compute_edge_distance` only for
+ * edge pixels. This maked the process a lot faster since
+ * `compute_edge_distance` uses functions such as `FT_Vector_NormLen',
+ * which are quite slow.
+ *
+ * @InOut:
+ * worker ::
+ * Contains the distance map as well as all the relevant parameters
+ * required by the function.
+ *
+ * @Return:
+ * FreeType error, 0 means success.
+ *
+ * @Note:
+ * The function directly manipulates `worker->distance_map`.
+ *
+ */
+ static FT_Error
+ bsdf_approximate_edge( BSDF_Worker* worker )
+ {
+ FT_Error error = FT_Err_Ok;
+ FT_Int i, j;
+ FT_Int index;
+ ED* ed;
+
+
+ if ( !worker || !worker->distance_map )
+ {
+ error = FT_THROW( Invalid_Argument );
+ goto Exit;
+ }
+
+ ed = worker->distance_map;
+
+ for ( j = 0; j < worker->rows; j++ )
+ {
+ for ( i = 0; i < worker->width; i++ )
+ {
+ index = j * worker->width + i;
+
+ if ( bsdf_is_edge( worker->distance_map + index,
+ i, j,
+ worker->width,
+ worker->rows ) )
+ {
+ /* approximate the edge distance for edge pixels */
+ ed[index].near = compute_edge_distance( ed + index,
+ i, j,
+ worker->width,
+ worker->rows );
+ ed[index].dist = VECTOR_LENGTH_16D16( ed[index].near );
+ }
+ else
+ {
+ /* for non-edge pixels assign far away distances */
+ ed[index].dist = 400 * ONE;
+ ed[index].near.x = 200 * ONE;
+ ed[index].near.y = 200 * ONE;
+ }
+ }
+ }
+
+ Exit:
+ return error;
+ }
+
+
+ /**************************************************************************
+ *
+ * @Function:
+ * bsdf_init_distance_map
+ *
+ * @Description:
+ * Initialize the distance map according to the '8-point sequential
+ * Euclidean distance mapping' (8SED) algorithm. Basically it copies
+ * the `source` bitmap alpha values to the `distance_map->alpha`
+ * parameter of `worker`.
+ *
+ * @Input:
+ * source ::
+ * Source bitmap to copy the data from.
+ *
+ * @Output:
+ * worker ::
+ * Target distance map to copy the data to.
+ *
+ * @Return:
+ * FreeType error, 0 means success.
+ *
+ */
+ static FT_Error
+ bsdf_init_distance_map( const FT_Bitmap* source,
+ BSDF_Worker* worker )
+ {
+ FT_Error error = FT_Err_Ok;
+
+ FT_Int x_diff, y_diff;
+ FT_Int t_i, t_j, s_i, s_j;
+ FT_Byte* s;
+ ED* t;
+
+
+ /* again check the parameters (probably unnecessary) */
+ if ( !source || !worker )
+ {
+ error = FT_THROW( Invalid_Argument );
+ goto Exit;
+ }
+
+ /* Because of the way we convert a bitmap to SDF, */
+ /* i.e., aligning the source to the center of the */
+ /* target, the target's width and rows must be */
+ /* checked before copying. */
+ if ( worker->width < (FT_Int)source->width ||
+ worker->rows < (FT_Int)source->rows )
+ {
+ error = FT_THROW( Invalid_Argument );
+ goto Exit;
+ }
+
+ /* check pixel mode */
+ if ( source->pixel_mode == FT_PIXEL_MODE_NONE )
+ {
+ FT_ERROR(( "bsdf_copy_source_to_target:"
+ " Invalid pixel mode of source bitmap" ));
+ error = FT_THROW( Invalid_Argument );
+ goto Exit;
+ }
+
+#ifdef FT_DEBUG_LEVEL_TRACE
+ if ( source->pixel_mode == FT_PIXEL_MODE_MONO )
+ {
+ FT_TRACE0(( "bsdf_copy_source_to_target:"
+ " The `bsdf' renderer can convert monochrome\n" ));
+ FT_TRACE0(( " "
+ " bitmaps to SDF but the results are not perfect\n" ));
+ FT_TRACE0(( " "
+ " because there is no way to approximate actual\n" ));
+ FT_TRACE0(( " "
+ " outlines from monochrome bitmaps. Consider\n" ));
+ FT_TRACE0(( " "
+ " using an anti-aliased bitmap instead.\n" ));
+ }
+#endif
+
+ /* Calculate the width and row differences */
+ /* between target and source. */
+ x_diff = worker->width - (int)source->width;
+ y_diff = worker->rows - (int)source->rows;
+
+ x_diff /= 2;
+ y_diff /= 2;
+
+ t = (ED*)worker->distance_map;
+ s = source->buffer;
+
+ /* For now we only support pixel mode `FT_PIXEL_MODE_MONO` */
+ /* and `FT_PIXEL_MODE_GRAY`. More will be added later. */
+ /* */
+ /* [NOTE]: We can also use @FT_Bitmap_Convert to convert */
+ /* bitmap to 8bpp. To avoid extra allocation and */
+ /* since the target bitmap can be 16bpp we manually */
+ /* convert the source bitmap to the desired bpp. */
+
+ switch ( source->pixel_mode )
+ {
+ case FT_PIXEL_MODE_MONO:
+ {
+ FT_Int t_width = worker->width;
+ FT_Int t_rows = worker->rows;
+ FT_Int s_width = (int)source->width;
+ FT_Int s_rows = (int)source->rows;
+
+
+ for ( t_j = 0; t_j < t_rows; t_j++ )
+ {
+ for ( t_i = 0; t_i < t_width; t_i++ )
+ {
+ FT_Int t_index = t_j * t_width + t_i;
+ FT_Int s_index;
+ FT_Int div, mod;
+ FT_Byte pixel, byte;
+
+
+ t[t_index] = zero_ed;
+
+ s_i = t_i - x_diff;
+ s_j = t_j - y_diff;
+
+ /* Assign 0 to padding similar to */
+ /* the source bitmap. */
+ if ( s_i < 0 || s_i >= s_width ||
+ s_j < 0 || s_j >= s_rows )
+ continue;
+
+ if ( worker->params.flip_y )
+ s_index = ( s_rows - s_j - 1 ) * source->pitch;
+ else
+ s_index = s_j * source->pitch;
+
+ div = s_index + s_i / 8;
+ mod = 7 - s_i % 8;
+
+ pixel = s[div];
+ byte = (FT_Byte)( 1 << mod );
+
+ t[t_index].alpha = pixel & byte ? 255 : 0;
+
+ pixel = 0;
+ }
+ }
+ }
+ break;
+
+ case FT_PIXEL_MODE_GRAY:
+ {
+ FT_Int t_width = worker->width;
+ FT_Int t_rows = worker->rows;
+ FT_Int s_width = (int)source->width;
+ FT_Int s_rows = (int)source->rows;
+
+
+ /* loop over all pixels and assign pixel values from source */
+ for ( t_j = 0; t_j < t_rows; t_j++ )
+ {
+ for ( t_i = 0; t_i < t_width; t_i++ )
+ {
+ FT_Int t_index = t_j * t_width + t_i;
+ FT_Int s_index;
+
+
+ t[t_index] = zero_ed;
+
+ s_i = t_i - x_diff;
+ s_j = t_j - y_diff;
+
+ /* Assign 0 to padding similar to */
+ /* the source bitmap. */
+ if ( s_i < 0 || s_i >= s_width ||
+ s_j < 0 || s_j >= s_rows )
+ continue;
+
+ if ( worker->params.flip_y )
+ s_index = ( s_rows - s_j - 1 ) * s_width + s_i;
+ else
+ s_index = s_j * s_width + s_i;
+
+ /* simply copy the alpha values */
+ t[t_index].alpha = s[s_index];
+ }
+ }
+ }
+ break;
+
+ default:
+ FT_ERROR(( "bsdf_copy_source_to_target:"
+ " unsopported pixel mode of source bitmap\n" ));
+
+ error = FT_THROW( Unimplemented_Feature );
+ break;
+ }
+
+ Exit:
+ return error;
+ }
+
+
+ /**************************************************************************
+ *
+ * @Function:
+ * compare_neighbor
+ *
+ * @Description:
+ * Compare neighbor pixel (which is defined by the offset) and update
+ * `current` distance if the new distance is shorter than the original.
+ *
+ * @Input:
+ * x_offset ::
+ * X offset of the neighbor to be checked. The offset is relative to
+ * the `current`.
+ *
+ * y_offset ::
+ * Y offset of the neighbor to be checked. The offset is relative to
+ * the `current`.
+ *
+ * width ::
+ * Width of the `current` array.
+ *
+ * @InOut:
+ * current ::
+ * Pointer into array of distances. This parameter must point to the
+ * position whose neighbor is to be checked. The array is treated as
+ * a two-dimensional array.
+ *
+ */
+ static void
+ compare_neighbor( ED* current,
+ FT_Int x_offset,
+ FT_Int y_offset,
+ FT_Int width )
+ {
+ ED* to_check;
+ FT_16D16 dist;
+ FT_16D16_Vec dist_vec;
+
+
+ to_check = current + ( y_offset * width ) + x_offset;
+
+ /*
+ * While checking for the nearest point we first approximate the
+ * distance of `current` by adding the deviation (which is sqrt(2) at
+ * most). Only if the new value is less than the current value we
+ * calculate the actual distances using `FT_Vector_Length`. This last
+ * step can be omitted by using squared distances.
+ */
+
+ /*
+ * Approximate the distance. We subtract 1 to avoid precision errors,
+ * which could happen because the two directions can be opposite.
+ */
+ dist = to_check->dist - ONE;
+
+ if ( dist < current->dist )
+ {
+ dist_vec = to_check->near;
+
+ dist_vec.x += x_offset * ONE;
+ dist_vec.y += y_offset * ONE;
+ dist = VECTOR_LENGTH_16D16( dist_vec );
+
+ if ( dist < current->dist )
+ {
+ current->dist = dist;
+ current->near = dist_vec;
+ }
+ }
+ }
+
+
+ /**************************************************************************
+ *
+ * @Function:
+ * first_pass
+ *
+ * @Description:
+ * First pass of the 8SED algorithm. Loop over the bitmap from top to
+ * bottom and scan each row left to right, updating the distances in
+ * `worker->distance_map`.
+ *
+ * @InOut:
+ * worker::
+ * Contains all the relevant parameters.
+ *
+ */
+ static void
+ first_pass( BSDF_Worker* worker )
+ {
+ FT_Int i, j; /* iterators */
+ FT_Int w, r; /* width, rows */
+ ED* dm; /* distance map */
+
+
+ dm = worker->distance_map;
+ w = worker->width;
+ r = worker->rows;
+
+ /* Start scanning from top to bottom and sweep each */
+ /* row back and forth comparing the distances of the */
+ /* neighborhood. Leave the first row as it has no top */
+ /* neighbor; it will be covered in the second scan of */
+ /* the image (from bottom to top). */
+ for ( j = 1; j < r; j++ )
+ {
+ FT_Int index;
+ ED* current;
+
+
+ /* Forward pass of rows (left -> right). Leave the first */
+ /* column, which gets covered in the backward pass. */
+ for ( i = 1; i < w - 1; i++ )
+ {
+ index = j * w + i;
+ current = dm + index;
+
+ /* left-up */
+ compare_neighbor( current, -1, -1, w );
+ /* up */
+ compare_neighbor( current, 0, -1, w );
+ /* up-right */
+ compare_neighbor( current, 1, -1, w );
+ /* left */
+ compare_neighbor( current, -1, 0, w );
+ }
+
+ /* Backward pass of rows (right -> left). Leave the last */
+ /* column, which was already covered in the forward pass. */
+ for ( i = w - 2; i >= 0; i-- )
+ {
+ index = j * w + i;
+ current = dm + index;
+
+ /* right */
+ compare_neighbor( current, 1, 0, w );
+ }
+ }
+ }
+
+
+ /**************************************************************************
+ *
+ * @Function:
+ * second_pass
+ *
+ * @Description:
+ * Second pass of the 8SED algorithm. Loop over the bitmap from bottom
+ * to top and scan each row left to right, updating the distances in
+ * `worker->distance_map`.
+ *
+ * @InOut:
+ * worker::
+ * Contains all the relevant parameters.
+ *
+ */
+ static void
+ second_pass( BSDF_Worker* worker )
+ {
+ FT_Int i, j; /* iterators */
+ FT_Int w, r; /* width, rows */
+ ED* dm; /* distance map */
+
+
+ dm = worker->distance_map;
+ w = worker->width;
+ r = worker->rows;
+
+ /* Start scanning from bottom to top and sweep each */
+ /* row back and forth comparing the distances of the */
+ /* neighborhood. Leave the last row as it has no down */
+ /* neighbor; it is already covered in the first scan */
+ /* of the image (from top to bottom). */
+ for ( j = r - 2; j >= 0; j-- )
+ {
+ FT_Int index;
+ ED* current;
+
+
+ /* Forward pass of rows (left -> right). Leave the first */
+ /* column, which gets covered in the backward pass. */
+ for ( i = 1; i < w - 1; i++ )
+ {
+ index = j * w + i;
+ current = dm + index;
+
+ /* left-up */
+ compare_neighbor( current, -1, 1, w );
+ /* up */
+ compare_neighbor( current, 0, 1, w );
+ /* up-right */
+ compare_neighbor( current, 1, 1, w );
+ /* left */
+ compare_neighbor( current, -1, 0, w );
+ }
+
+ /* Backward pass of rows (right -> left). Leave the last */
+ /* column, which was already covered in the forward pass. */
+ for ( i = w - 2; i >= 0; i-- )
+ {
+ index = j * w + i;
+ current = dm + index;
+
+ /* right */
+ compare_neighbor( current, 1, 0, w );
+ }
+ }
+ }
+
+
+ /**************************************************************************
+ *
+ * @Function:
+ * edt8
+ *
+ * @Description:
+ * Compute the distance map of the a bitmap. Execute both first and
+ * second pass of the 8SED algorithm.
+ *
+ * @InOut:
+ * worker::
+ * Contains all the relevant parameters.
+ *
+ * @Return:
+ * FreeType error, 0 means success.
+ *
+ */
+ static FT_Error
+ edt8( BSDF_Worker* worker )
+ {
+ FT_Error error = FT_Err_Ok;
+
+
+ if ( !worker || !worker->distance_map )
+ {
+ error = FT_THROW( Invalid_Argument );
+ goto Exit;
+ }
+
+ /* first scan of the image */
+ first_pass( worker );
+
+ /* second scan of the image */
+ second_pass( worker );
+
+ Exit:
+ return error;
+ }
+
+
+ /**************************************************************************
+ *
+ * @Function:
+ * finalize_sdf
+ *
+ * @Description:
+ * Copy the SDF data from `worker->distance_map` to the `target` bitmap.
+ * Also transform the data to output format, (which is 6.10 fixed-point
+ * format at the moment).
+ *
+ * @Input:
+ * worker ::
+ * Contains source distance map and other SDF data.
+ *
+ * @Output:
+ * target ::
+ * Target bitmap to which the SDF data is copied to.
+ *
+ * @Return:
+ * FreeType error, 0 means success.
+ *
+ */
+ static FT_Error
+ finalize_sdf( BSDF_Worker* worker,
+ const FT_Bitmap* target )
+ {
+ FT_Error error = FT_Err_Ok;
+
+ FT_Int w, r;
+ FT_Int i, j;
+
+ FT_SDFFormat* t_buffer;
+ FT_16D16 spread;
+
+
+ if ( !worker || !target )
+ {
+ error = FT_THROW( Invalid_Argument );
+ goto Exit;
+ }
+
+ w = (int)target->width;
+ r = (int)target->rows;
+ t_buffer = (FT_SDFFormat*)target->buffer;
+
+ if ( w != worker->width ||
+ r != worker->rows )
+ {
+ error = FT_THROW( Invalid_Argument );
+ goto Exit;
+ }
+
+#if USE_SQUARED_DISTANCES
+ spread = FT_INT_16D16( worker->params.spread *
+ worker->params.spread );
+#else
+ spread = FT_INT_16D16( worker->params.spread );
+#endif
+
+ for ( j = 0; j < r; j++ )
+ {
+ for ( i = 0; i < w; i++ )
+ {
+ FT_Int index;
+ FT_16D16 dist;
+ FT_SDFFormat final_dist;
+ FT_Char sign;
+
+
+ index = j * w + i;
+ dist = worker->distance_map[index].dist;
+
+ if ( dist < 0 || dist > spread )
+ dist = spread;
+
+#if USE_SQUARED_DISTANCES
+ dist = square_root( dist );
+#endif
+
+ /* We assume that if the pixel is inside a contour */
+ /* its coverage value must be > 127. */
+ sign = worker->distance_map[index].alpha < 127 ? -1 : 1;
+
+ /* flip the sign according to the property */
+ if ( worker->params.flip_sign )
+ sign = -sign;
+
+ /* concatenate from 16.16 to appropriate format */
+ final_dist = map_fixed_to_sdf( dist * sign, spread );
+
+ t_buffer[index] = final_dist;
+ }
+ }
+
+ Exit:
+ return error;
+ }
+
+
+ /**************************************************************************
+ *
+ * interface functions
+ *
+ */
+
+ /* called when adding a new module through @FT_Add_Module */
+ static FT_Error
+ bsdf_raster_new( FT_Memory memory,
+ BSDF_PRaster* araster )
+ {
+ FT_Error error;
+ BSDF_PRaster raster = NULL;
+
+
+ if ( !FT_NEW( raster ) )
+ raster->memory = memory;
+
+ *araster = raster;
+
+ return error;
+ }
+
+
+ /* unused */
+ static void
+ bsdf_raster_reset( FT_Raster raster,
+ unsigned char* pool_base,
+ unsigned long pool_size )
+ {
+ FT_UNUSED( raster );
+ FT_UNUSED( pool_base );
+ FT_UNUSED( pool_size );
+ }
+
+
+ /* unused */
+ static FT_Error
+ bsdf_raster_set_mode( FT_Raster raster,
+ unsigned long mode,
+ void* args )
+ {
+ FT_UNUSED( raster );
+ FT_UNUSED( mode );
+ FT_UNUSED( args );
+
+ return FT_Err_Ok;
+ }
+
+
+ /* called while rendering through @FT_Render_Glyph */
+ static FT_Error
+ bsdf_raster_render( FT_Raster raster,
+ const FT_Raster_Params* params )
+ {
+ FT_Error error = FT_Err_Ok;
+ FT_Memory memory = NULL;
+
+ const FT_Bitmap* source = NULL;
+ const FT_Bitmap* target = NULL;
+
+ BSDF_TRaster* bsdf_raster = (BSDF_TRaster*)raster;
+ BSDF_Worker worker;
+
+ const SDF_Raster_Params* sdf_params = (const SDF_Raster_Params*)params;
+
+
+ worker.distance_map = NULL;
+
+ /* check for valid parameters */
+ if ( !raster || !params )
+ {
+ error = FT_THROW( Invalid_Argument );
+ goto Exit;
+ }
+
+ /* check whether the flag is set */
+ if ( sdf_params->root.flags != FT_RASTER_FLAG_SDF )
+ {
+ error = FT_THROW( Raster_Corrupted );
+ goto Exit;
+ }
+
+ source = (const FT_Bitmap*)sdf_params->root.source;
+ target = (const FT_Bitmap*)sdf_params->root.target;
+
+ /* check source and target bitmap */
+ if ( !source || !target )
+ {
+ error = FT_THROW( Invalid_Argument );
+ goto Exit;
+ }
+
+ memory = bsdf_raster->memory;
+ if ( !memory )
+ {
+ FT_TRACE0(( "bsdf_raster_render: Raster not set up properly,\n" ));
+ FT_TRACE0(( " unable to find memory handle.\n" ));
+
+ error = FT_THROW( Invalid_Handle );
+ goto Exit;
+ }
+
+ /* check whether spread is set properly */
+ if ( sdf_params->spread > MAX_SPREAD ||
+ sdf_params->spread < MIN_SPREAD )
+ {
+ FT_TRACE0(( "bsdf_raster_render:"
+ " The `spread' field of `SDF_Raster_Params'\n" ));
+ FT_TRACE0(( " "
+ " is invalid; the value of this field must be\n" ));
+ FT_TRACE0(( " "
+ " within [%d, %d].\n",
+ MIN_SPREAD, MAX_SPREAD ));
+ FT_TRACE0(( " "
+ " Also, you must pass `SDF_Raster_Params'\n" ));
+ FT_TRACE0(( " "
+ " instead of the default `FT_Raster_Params'\n" ));
+ FT_TRACE0(( " "
+ " while calling this function and set the fields\n" ));
+ FT_TRACE0(( " "
+ " accordingly.\n" ));
+
+ error = FT_THROW( Invalid_Argument );
+ goto Exit;
+ }
+
+ /* set up the worker */
+
+ /* allocate the distance map */
+ if ( FT_QALLOC_MULT( worker.distance_map, target->rows,
+ target->width * sizeof ( *worker.distance_map ) ) )
+ goto Exit;
+
+ worker.width = (int)target->width;
+ worker.rows = (int)target->rows;
+ worker.params = *sdf_params;
+
+ FT_CALL( bsdf_init_distance_map( source, &worker ) );
+ FT_CALL( bsdf_approximate_edge( &worker ) );
+ FT_CALL( edt8( &worker ) );
+ FT_CALL( finalize_sdf( &worker, target ) );
+
+ FT_TRACE0(( "bsdf_raster_render: Total memory used = %ld\n",
+ worker.width * worker.rows *
+ (long)sizeof ( *worker.distance_map ) ));
+
+ Exit:
+ if ( worker.distance_map )
+ FT_FREE( worker.distance_map );
+
+ return error;
+ }
+
+
+ /* called while deleting `FT_Library` only if the module is added */
+ static void
+ bsdf_raster_done( FT_Raster raster )
+ {
+ FT_Memory memory = (FT_Memory)((BSDF_TRaster*)raster)->memory;
+
+
+ FT_FREE( raster );
+ }
+
+
+ FT_DEFINE_RASTER_FUNCS(
+ ft_bitmap_sdf_raster,
+
+ FT_GLYPH_FORMAT_BITMAP,
+
+ (FT_Raster_New_Func) bsdf_raster_new, /* raster_new */
+ (FT_Raster_Reset_Func) bsdf_raster_reset, /* raster_reset */
+ (FT_Raster_Set_Mode_Func)bsdf_raster_set_mode, /* raster_set_mode */
+ (FT_Raster_Render_Func) bsdf_raster_render, /* raster_render */
+ (FT_Raster_Done_Func) bsdf_raster_done /* raster_done */
+ )
+
+
+/* END */
diff --git a/freetype/src/sdf/ftsdf.c b/freetype/src/sdf/ftsdf.c
new file mode 100644
index 00000000..f69cf49b
--- /dev/null
+++ b/freetype/src/sdf/ftsdf.c
@@ -0,0 +1,3872 @@
+/****************************************************************************
+ *
+ * ftsdf.c
+ *
+ * Signed Distance Field support for outline fonts (body).
+ *
+ * Copyright (C) 2020-2021 by
+ * David Turner, Robert Wilhelm, and Werner Lemberg.
+ *
+ * Written by Anuj Verma.
+ *
+ * This file is part of the FreeType project, and may only be used,
+ * modified, and distributed under the terms of the FreeType project
+ * license, LICENSE.TXT. By continuing to use, modify, or distribute
+ * this file you indicate that you have read the license and
+ * understand and accept it fully.
+ *
+ */
+
+
+#include <freetype/internal/ftobjs.h>
+#include <freetype/internal/ftdebug.h>
+#include <freetype/ftoutln.h>
+#include <freetype/fttrigon.h>
+#include <freetype/ftbitmap.h>
+#include "ftsdf.h"
+
+#include "ftsdferrs.h"
+
+
+ /**************************************************************************
+ *
+ * A brief technical overview of how the SDF rasterizer works
+ * ----------------------------------------------------------
+ *
+ * [Notes]:
+ * * SDF stands for Signed Distance Field everywhere.
+ *
+ * * This renderer generates SDF directly from outlines. There is
+ * another renderer called 'bsdf', which converts bitmaps to SDF; see
+ * file `ftbsdf.c` for more.
+ *
+ * * The basic idea of generating the SDF is taken from Viktor Chlumsky's
+ * research paper. The paper explains both single and multi-channel
+ * SDF, however, this implementation only generates single-channel SDF.
+ *
+ * Chlumsky, Viktor: Shape Decomposition for Multi-channel Distance
+ * Fields. Master's thesis. Czech Technical University in Prague,
+ * Faculty of InformationTechnology, 2015.
+ *
+ * For more information: https://github.com/Chlumsky/msdfgen
+ *
+ * ========================================================================
+ *
+ * Generating SDF from outlines is pretty straightforward.
+ *
+ * (1) We have a set of contours that make the outline of a shape/glyph.
+ * Each contour comprises of several edges, with three types of edges.
+ *
+ * * line segments
+ * * conic Bezier curves
+ * * cubic Bezier curves
+ *
+ * (2) Apart from the outlines we also have a two-dimensional grid, namely
+ * the bitmap that is used to represent the final SDF data.
+ *
+ * (3) In order to generate SDF, our task is to find shortest signed
+ * distance from each grid point to the outline. The 'signed
+ * distance' means that if the grid point is filled by any contour
+ * then its sign is positive, otherwise it is negative. The pseudo
+ * code is as follows.
+ *
+ * ```
+ * foreach grid_point (x, y):
+ * {
+ * int min_dist = INT_MAX;
+ *
+ * foreach contour in outline:
+ * {
+ * foreach edge in contour:
+ * {
+ * // get shortest distance from point (x, y) to the edge
+ * d = get_min_dist(x, y, edge);
+ *
+ * if (d < min_dist)
+ * min_dist = d;
+ * }
+ *
+ * bitmap[x, y] = min_dist;
+ * }
+ * }
+ * ```
+ *
+ * (4) After running this algorithm the bitmap contains information about
+ * the shortest distance from each point to the outline of the shape.
+ * Of course, while this is the most straightforward way of generating
+ * SDF, we use various optimizations in our implementation. See the
+ * `sdf_generate_*' functions in this file for all details.
+ *
+ * The optimization currently used by default is subdivision; see
+ * function `sdf_generate_subdivision` for more.
+ *
+ * Also, to see how we compute the shortest distance from a point to
+ * each type of edge, check out the `get_min_distance_*' functions.
+ *
+ */
+
+
+ /**************************************************************************
+ *
+ * The macro FT_COMPONENT is used in trace mode. It is an implicit
+ * parameter of the FT_TRACE() and FT_ERROR() macros, used to print/log
+ * messages during execution.
+ */
+#undef FT_COMPONENT
+#define FT_COMPONENT sdf
+
+
+ /**************************************************************************
+ *
+ * definitions
+ *
+ */
+
+ /*
+ * If set to 1, the rasterizer uses Newton-Raphson's method for finding
+ * the shortest distance from a point to a conic curve.
+ *
+ * If set to 0, an analytical method gets used instead, which computes the
+ * roots of a cubic polynomial to find the shortest distance. However,
+ * the analytical method can currently underflow; we thus use Newton's
+ * method by default.
+ */
+#ifndef USE_NEWTON_FOR_CONIC
+#define USE_NEWTON_FOR_CONIC 1
+#endif
+
+ /*
+ * The number of intervals a Bezier curve gets sampled and checked to find
+ * the shortest distance.
+ */
+#define MAX_NEWTON_DIVISIONS 4
+
+ /*
+ * The number of steps of Newton's iterations in each interval of the
+ * Bezier curve. Basically, we run Newton's approximation
+ *
+ * x -= Q(t) / Q'(t)
+ *
+ * for each division to get the shortest distance.
+ */
+#define MAX_NEWTON_STEPS 4
+
+ /*
+ * The epsilon distance (in 16.16 fractional units) used for corner
+ * resolving. If the difference of two distances is less than this value
+ * they will be checked for a corner if they are ambiguous.
+ */
+#define CORNER_CHECK_EPSILON 32
+
+#if 0
+ /*
+ * Coarse grid dimension. Will probably be removed in the future because
+ * coarse grid optimization is the slowest algorithm.
+ */
+#define CG_DIMEN 8
+#endif
+
+
+ /**************************************************************************
+ *
+ * macros
+ *
+ */
+
+#define MUL_26D6( a, b ) ( ( ( a ) * ( b ) ) / 64 )
+#define VEC_26D6_DOT( p, q ) ( MUL_26D6( p.x, q.x ) + \
+ MUL_26D6( p.y, q.y ) )
+
+
+ /**************************************************************************
+ *
+ * structures and enums
+ *
+ */
+
+ /**************************************************************************
+ *
+ * @Struct:
+ * SDF_TRaster
+ *
+ * @Description:
+ * This struct is used in place of @FT_Raster and is stored within the
+ * internal FreeType renderer struct. While rasterizing it is passed to
+ * the @FT_Raster_RenderFunc function, which then can be used however we
+ * want.
+ *
+ * @Fields:
+ * memory ::
+ * Used internally to allocate intermediate memory while raterizing.
+ *
+ */
+ typedef struct SDF_TRaster_
+ {
+ FT_Memory memory;
+
+ } SDF_TRaster, *SDF_PRaster;
+
+
+ /**************************************************************************
+ *
+ * @Enum:
+ * SDF_Edge_Type
+ *
+ * @Description:
+ * Enumeration of all curve types present in fonts.
+ *
+ * @Fields:
+ * SDF_EDGE_UNDEFINED ::
+ * Undefined edge, simply used to initialize and detect errors.
+ *
+ * SDF_EDGE_LINE ::
+ * Line segment with start and end point.
+ *
+ * SDF_EDGE_CONIC ::
+ * A conic/quadratic Bezier curve with start, end, and one control
+ * point.
+ *
+ * SDF_EDGE_CUBIC ::
+ * A cubic Bezier curve with start, end, and two control points.
+ *
+ */
+ typedef enum SDF_Edge_Type_
+ {
+ SDF_EDGE_UNDEFINED = 0,
+ SDF_EDGE_LINE = 1,
+ SDF_EDGE_CONIC = 2,
+ SDF_EDGE_CUBIC = 3
+
+ } SDF_Edge_Type;
+
+
+ /**************************************************************************
+ *
+ * @Enum:
+ * SDF_Contour_Orientation
+ *
+ * @Description:
+ * Enumeration of all orientation values of a contour. We determine the
+ * orientation by calculating the area covered by a contour. Contrary
+ * to values returned by @FT_Outline_Get_Orientation,
+ * `SDF_Contour_Orientation` is independent of the fill rule, which can
+ * be different for different font formats.
+ *
+ * @Fields:
+ * SDF_ORIENTATION_NONE ::
+ * Undefined orientation, used for initialization and error detection.
+ *
+ * SDF_ORIENTATION_CW ::
+ * Clockwise orientation (positive area covered).
+ *
+ * SDF_ORIENTATION_CCW ::
+ * Counter-clockwise orientation (negative area covered).
+ *
+ * @Note:
+ * See @FT_Outline_Get_Orientation for more details.
+ *
+ */
+ typedef enum SDF_Contour_Orientation_
+ {
+ SDF_ORIENTATION_NONE = 0,
+ SDF_ORIENTATION_CW = 1,
+ SDF_ORIENTATION_CCW = 2
+
+ } SDF_Contour_Orientation;
+
+
+ /**************************************************************************
+ *
+ * @Struct:
+ * SDF_Edge
+ *
+ * @Description:
+ * Represent an edge of a contour.
+ *
+ * @Fields:
+ * start_pos ::
+ * Start position of an edge. Valid for all types of edges.
+ *
+ * end_pos ::
+ * Etart position of an edge. Valid for all types of edges.
+ *
+ * control_a ::
+ * A control point of the edge. Valid only for `SDF_EDGE_CONIC`
+ * and `SDF_EDGE_CUBIC`.
+ *
+ * control_b ::
+ * Another control point of the edge. Valid only for
+ * `SDF_EDGE_CONIC`.
+ *
+ * edge_type ::
+ * Type of the edge, see @SDF_Edge_Type for all possible edge types.
+ *
+ * next ::
+ * Used to create a singly linked list, which can be interpreted
+ * as a contour.
+ *
+ */
+ typedef struct SDF_Edge_
+ {
+ FT_26D6_Vec start_pos;
+ FT_26D6_Vec end_pos;
+ FT_26D6_Vec control_a;
+ FT_26D6_Vec control_b;
+
+ SDF_Edge_Type edge_type;
+
+ struct SDF_Edge_* next;
+
+ } SDF_Edge;
+
+
+ /**************************************************************************
+ *
+ * @Struct:
+ * SDF_Contour
+ *
+ * @Description:
+ * Represent a complete contour, which contains a list of edges.
+ *
+ * @Fields:
+ * last_pos ::
+ * Contains the value of `end_pos' of the last edge in the list of
+ * edges. Useful while decomposing the outline with
+ * @FT_Outline_Decompose.
+ *
+ * edges ::
+ * Linked list of all the edges that make the contour.
+ *
+ * next ::
+ * Used to create a singly linked list, which can be interpreted as a
+ * complete shape or @FT_Outline.
+ *
+ */
+ typedef struct SDF_Contour_
+ {
+ FT_26D6_Vec last_pos;
+ SDF_Edge* edges;
+
+ struct SDF_Contour_* next;
+
+ } SDF_Contour;
+
+
+ /**************************************************************************
+ *
+ * @Struct:
+ * SDF_Shape
+ *
+ * @Description:
+ * Represent a complete shape, which is the decomposition of
+ * @FT_Outline.
+ *
+ * @Fields:
+ * memory ::
+ * Used internally to allocate memory.
+ *
+ * contours ::
+ * Linked list of all the contours that make the shape.
+ *
+ */
+ typedef struct SDF_Shape_
+ {
+ FT_Memory memory;
+ SDF_Contour* contours;
+
+ } SDF_Shape;
+
+
+ /**************************************************************************
+ *
+ * @Struct:
+ * SDF_Signed_Distance
+ *
+ * @Description:
+ * Represent signed distance of a point, i.e., the distance of the edge
+ * nearest to the point.
+ *
+ * @Fields:
+ * distance ::
+ * Distance of the point from the nearest edge. Can be squared or
+ * absolute depending on the `USE_SQUARED_DISTANCES` macro defined in
+ * file `ftsdfcommon.h`.
+ *
+ * cross ::
+ * Cross product of the shortest distance vector (i.e., the vector
+ * from the point to the nearest edge) and the direction of the edge
+ * at the nearest point. This is used to resolve ambiguities of
+ * `sign`.
+ *
+ * sign ::
+ * A value used to indicate whether the distance vector is outside or
+ * inside the contour corresponding to the edge.
+ *
+ * @Note:
+ * `sign` may or may not be correct, therefore it must be checked
+ * properly in case there is an ambiguity.
+ *
+ */
+ typedef struct SDF_Signed_Distance_
+ {
+ FT_16D16 distance;
+ FT_16D16 cross;
+ FT_Char sign;
+
+ } SDF_Signed_Distance;
+
+
+ /**************************************************************************
+ *
+ * @Struct:
+ * SDF_Params
+ *
+ * @Description:
+ * Yet another internal parameters required by the rasterizer.
+ *
+ * @Fields:
+ * orientation ::
+ * This is not the @SDF_Contour_Orientation value but @FT_Orientation,
+ * which determines whether clockwise-oriented outlines are to be
+ * filled or counter-clockwise-oriented ones.
+ *
+ * flip_sign ::
+ * If set to true, flip the sign. By default the points filled by the
+ * outline are positive.
+ *
+ * flip_y ::
+ * If set to true the output bitmap is upside-down. Can be useful
+ * because OpenGL and DirectX use different coordinate systems for
+ * textures.
+ *
+ * overload_sign ::
+ * In the subdivision and bounding box optimization, the default
+ * outside sign is taken as -1. This parameter can be used to modify
+ * that behaviour. For example, while generating SDF for a single
+ * counter-clockwise contour, the outside sign should be 1.
+ *
+ */
+ typedef struct SDF_Params_
+ {
+ FT_Orientation orientation;
+ FT_Bool flip_sign;
+ FT_Bool flip_y;
+
+ FT_Int overload_sign;
+
+ } SDF_Params;
+
+
+ /**************************************************************************
+ *
+ * constants, initializer, and destructor
+ *
+ */
+
+ static
+ const FT_Vector zero_vector = { 0, 0 };
+
+ static
+ const SDF_Edge null_edge = { { 0, 0 }, { 0, 0 },
+ { 0, 0 }, { 0, 0 },
+ SDF_EDGE_UNDEFINED, NULL };
+
+ static
+ const SDF_Contour null_contour = { { 0, 0 }, NULL, NULL };
+
+ static
+ const SDF_Shape null_shape = { NULL, NULL };
+
+ static
+ const SDF_Signed_Distance max_sdf = { INT_MAX, 0, 0 };
+
+
+ /* Create a new @SDF_Edge on the heap and assigns the `edge` */
+ /* pointer to the newly allocated memory. */
+ static FT_Error
+ sdf_edge_new( FT_Memory memory,
+ SDF_Edge** edge )
+ {
+ FT_Error error = FT_Err_Ok;
+ SDF_Edge* ptr = NULL;
+
+
+ if ( !memory || !edge )
+ {
+ error = FT_THROW( Invalid_Argument );
+ goto Exit;
+ }
+
+ if ( !FT_QALLOC( ptr, sizeof ( *ptr ) ) )
+ {
+ *ptr = null_edge;
+ *edge = ptr;
+ }
+
+ Exit:
+ return error;
+ }
+
+
+ /* Free the allocated `edge` variable. */
+ static void
+ sdf_edge_done( FT_Memory memory,
+ SDF_Edge** edge )
+ {
+ if ( !memory || !edge || !*edge )
+ return;
+
+ FT_FREE( *edge );
+ }
+
+
+ /* Create a new @SDF_Contour on the heap and assign */
+ /* the `contour` pointer to the newly allocated memory. */
+ static FT_Error
+ sdf_contour_new( FT_Memory memory,
+ SDF_Contour** contour )
+ {
+ FT_Error error = FT_Err_Ok;
+ SDF_Contour* ptr = NULL;
+
+
+ if ( !memory || !contour )
+ {
+ error = FT_THROW( Invalid_Argument );
+ goto Exit;
+ }
+
+ if ( !FT_QALLOC( ptr, sizeof ( *ptr ) ) )
+ {
+ *ptr = null_contour;
+ *contour = ptr;
+ }
+
+ Exit:
+ return error;
+ }
+
+
+ /* Free the allocated `contour` variable. */
+ /* Also free the list of edges. */
+ static void
+ sdf_contour_done( FT_Memory memory,
+ SDF_Contour** contour )
+ {
+ SDF_Edge* edges;
+ SDF_Edge* temp;
+
+
+ if ( !memory || !contour || !*contour )
+ return;
+
+ edges = (*contour)->edges;
+
+ /* release all edges */
+ while ( edges )
+ {
+ temp = edges;
+ edges = edges->next;
+
+ sdf_edge_done( memory, &temp );
+ }
+
+ FT_FREE( *contour );
+ }
+
+
+ /* Create a new @SDF_Shape on the heap and assign */
+ /* the `shape` pointer to the newly allocated memory. */
+ static FT_Error
+ sdf_shape_new( FT_Memory memory,
+ SDF_Shape** shape )
+ {
+ FT_Error error = FT_Err_Ok;
+ SDF_Shape* ptr = NULL;
+
+
+ if ( !memory || !shape )
+ {
+ error = FT_THROW( Invalid_Argument );
+ goto Exit;
+ }
+
+ if ( !FT_QALLOC( ptr, sizeof ( *ptr ) ) )
+ {
+ *ptr = null_shape;
+ ptr->memory = memory;
+ *shape = ptr;
+ }
+
+ Exit:
+ return error;
+ }
+
+
+ /* Free the allocated `shape` variable. */
+ /* Also free the list of contours. */
+ static void
+ sdf_shape_done( SDF_Shape** shape )
+ {
+ FT_Memory memory;
+ SDF_Contour* contours;
+ SDF_Contour* temp;
+
+
+ if ( !shape || !*shape )
+ return;
+
+ memory = (*shape)->memory;
+ contours = (*shape)->contours;
+
+ if ( !memory )
+ return;
+
+ /* release all contours */
+ while ( contours )
+ {
+ temp = contours;
+ contours = contours->next;
+
+ sdf_contour_done( memory, &temp );
+ }
+
+ /* release the allocated shape struct */
+ FT_FREE( *shape );
+ }
+
+
+ /**************************************************************************
+ *
+ * shape decomposition functions
+ *
+ */
+
+ /* This function is called when starting a new contour at `to`, */
+ /* which gets added to the shape's list. */
+ static FT_Error
+ sdf_move_to( const FT_26D6_Vec* to,
+ void* user )
+ {
+ SDF_Shape* shape = ( SDF_Shape* )user;
+ SDF_Contour* contour = NULL;
+
+ FT_Error error = FT_Err_Ok;
+ FT_Memory memory = shape->memory;
+
+
+ if ( !to || !user )
+ {
+ error = FT_THROW( Invalid_Argument );
+ goto Exit;
+ }
+
+ FT_CALL( sdf_contour_new( memory, &contour ) );
+
+ contour->last_pos = *to;
+ contour->next = shape->contours;
+ shape->contours = contour;
+
+ Exit:
+ return error;
+ }
+
+
+ /* This function is called when there is a line in the */
+ /* contour. The line starts at the previous edge point and */
+ /* stops at `to`. */
+ static FT_Error
+ sdf_line_to( const FT_26D6_Vec* to,
+ void* user )
+ {
+ SDF_Shape* shape = ( SDF_Shape* )user;
+ SDF_Edge* edge = NULL;
+ SDF_Contour* contour = NULL;
+
+ FT_Error error = FT_Err_Ok;
+ FT_Memory memory = shape->memory;
+
+
+ if ( !to || !user )
+ {
+ error = FT_THROW( Invalid_Argument );
+ goto Exit;
+ }
+
+ contour = shape->contours;
+
+ if ( contour->last_pos.x == to->x &&
+ contour->last_pos.y == to->y )
+ goto Exit;
+
+ FT_CALL( sdf_edge_new( memory, &edge ) );
+
+ edge->edge_type = SDF_EDGE_LINE;
+ edge->start_pos = contour->last_pos;
+ edge->end_pos = *to;
+
+ edge->next = contour->edges;
+ contour->edges = edge;
+ contour->last_pos = *to;
+
+ Exit:
+ return error;
+ }
+
+
+ /* This function is called when there is a conic Bezier curve */
+ /* in the contour. The curve starts at the previous edge point */
+ /* and stops at `to`, with control point `control_1`. */
+ static FT_Error
+ sdf_conic_to( const FT_26D6_Vec* control_1,
+ const FT_26D6_Vec* to,
+ void* user )
+ {
+ SDF_Shape* shape = ( SDF_Shape* )user;
+ SDF_Edge* edge = NULL;
+ SDF_Contour* contour = NULL;
+
+ FT_Error error = FT_Err_Ok;
+ FT_Memory memory = shape->memory;
+
+
+ if ( !control_1 || !to || !user )
+ {
+ error = FT_THROW( Invalid_Argument );
+ goto Exit;
+ }
+
+ contour = shape->contours;
+
+ FT_CALL( sdf_edge_new( memory, &edge ) );
+
+ edge->edge_type = SDF_EDGE_CONIC;
+ edge->start_pos = contour->last_pos;
+ edge->control_a = *control_1;
+ edge->end_pos = *to;
+
+ edge->next = contour->edges;
+ contour->edges = edge;
+ contour->last_pos = *to;
+
+ Exit:
+ return error;
+ }
+
+
+ /* This function is called when there is a cubic Bezier curve */
+ /* in the contour. The curve starts at the previous edge point */
+ /* and stops at `to`, with two control points `control_1` and */
+ /* `control_2`. */
+ static FT_Error
+ sdf_cubic_to( const FT_26D6_Vec* control_1,
+ const FT_26D6_Vec* control_2,
+ const FT_26D6_Vec* to,
+ void* user )
+ {
+ SDF_Shape* shape = ( SDF_Shape* )user;
+ SDF_Edge* edge = NULL;
+ SDF_Contour* contour = NULL;
+
+ FT_Error error = FT_Err_Ok;
+ FT_Memory memory = shape->memory;
+
+
+ if ( !control_2 || !control_1 || !to || !user )
+ {
+ error = FT_THROW( Invalid_Argument );
+ goto Exit;
+ }
+
+ contour = shape->contours;
+
+ FT_CALL( sdf_edge_new( memory, &edge ) );
+
+ edge->edge_type = SDF_EDGE_CUBIC;
+ edge->start_pos = contour->last_pos;
+ edge->control_a = *control_1;
+ edge->control_b = *control_2;
+ edge->end_pos = *to;
+
+ edge->next = contour->edges;
+ contour->edges = edge;
+ contour->last_pos = *to;
+
+ Exit:
+ return error;
+ }
+
+
+ /* Construct the structure to hold all four outline */
+ /* decomposition functions. */
+ FT_DEFINE_OUTLINE_FUNCS(
+ sdf_decompose_funcs,
+
+ (FT_Outline_MoveTo_Func) sdf_move_to, /* move_to */
+ (FT_Outline_LineTo_Func) sdf_line_to, /* line_to */
+ (FT_Outline_ConicTo_Func)sdf_conic_to, /* conic_to */
+ (FT_Outline_CubicTo_Func)sdf_cubic_to, /* cubic_to */
+
+ 0, /* shift */
+ 0 /* delta */
+ )
+
+
+ /* Decompose `outline` and put it into the `shape` structure. */
+ static FT_Error
+ sdf_outline_decompose( FT_Outline* outline,
+ SDF_Shape* shape )
+ {
+ FT_Error error = FT_Err_Ok;
+
+
+ if ( !outline || !shape )
+ {
+ error = FT_THROW( Invalid_Argument );
+ goto Exit;
+ }
+
+ error = FT_Outline_Decompose( outline,
+ &sdf_decompose_funcs,
+ (void*)shape );
+
+ Exit:
+ return error;
+ }
+
+
+ /**************************************************************************
+ *
+ * utility functions
+ *
+ */
+
+ /* Return the control box of an edge. The control box is a rectangle */
+ /* in which all the control points can fit tightly. */
+ static FT_CBox
+ get_control_box( SDF_Edge edge )
+ {
+ FT_CBox cbox = { 0, 0, 0, 0 };
+ FT_Bool is_set = 0;
+
+
+ switch ( edge.edge_type )
+ {
+ case SDF_EDGE_CUBIC:
+ cbox.xMin = edge.control_b.x;
+ cbox.xMax = edge.control_b.x;
+ cbox.yMin = edge.control_b.y;
+ cbox.yMax = edge.control_b.y;
+
+ is_set = 1;
+ /* fall through */
+
+ case SDF_EDGE_CONIC:
+ if ( is_set )
+ {
+ cbox.xMin = edge.control_a.x < cbox.xMin
+ ? edge.control_a.x
+ : cbox.xMin;
+ cbox.xMax = edge.control_a.x > cbox.xMax
+ ? edge.control_a.x
+ : cbox.xMax;
+
+ cbox.yMin = edge.control_a.y < cbox.yMin
+ ? edge.control_a.y
+ : cbox.yMin;
+ cbox.yMax = edge.control_a.y > cbox.yMax
+ ? edge.control_a.y
+ : cbox.yMax;
+ }
+ else
+ {
+ cbox.xMin = edge.control_a.x;
+ cbox.xMax = edge.control_a.x;
+ cbox.yMin = edge.control_a.y;
+ cbox.yMax = edge.control_a.y;
+
+ is_set = 1;
+ }
+ /* fall through */
+
+ case SDF_EDGE_LINE:
+ if ( is_set )
+ {
+ cbox.xMin = edge.start_pos.x < cbox.xMin
+ ? edge.start_pos.x
+ : cbox.xMin;
+ cbox.xMax = edge.start_pos.x > cbox.xMax
+ ? edge.start_pos.x
+ : cbox.xMax;
+
+ cbox.yMin = edge.start_pos.y < cbox.yMin
+ ? edge.start_pos.y
+ : cbox.yMin;
+ cbox.yMax = edge.start_pos.y > cbox.yMax
+ ? edge.start_pos.y
+ : cbox.yMax;
+ }
+ else
+ {
+ cbox.xMin = edge.start_pos.x;
+ cbox.xMax = edge.start_pos.x;
+ cbox.yMin = edge.start_pos.y;
+ cbox.yMax = edge.start_pos.y;
+ }
+
+ cbox.xMin = edge.end_pos.x < cbox.xMin
+ ? edge.end_pos.x
+ : cbox.xMin;
+ cbox.xMax = edge.end_pos.x > cbox.xMax
+ ? edge.end_pos.x
+ : cbox.xMax;
+
+ cbox.yMin = edge.end_pos.y < cbox.yMin
+ ? edge.end_pos.y
+ : cbox.yMin;
+ cbox.yMax = edge.end_pos.y > cbox.yMax
+ ? edge.end_pos.y
+ : cbox.yMax;
+
+ break;
+
+ default:
+ break;
+ }
+
+ return cbox;
+ }
+
+
+ /* Return orientation of a single contour. */
+ /* Note that the orientation is independent of the fill rule! */
+ /* So, for TTF a clockwise-oriented contour has to be filled */
+ /* and the opposite for OTF fonts. */
+ static SDF_Contour_Orientation
+ get_contour_orientation ( SDF_Contour* contour )
+ {
+ SDF_Edge* head = NULL;
+ FT_26D6 area = 0;
+
+
+ /* return none if invalid parameters */
+ if ( !contour || !contour->edges )
+ return SDF_ORIENTATION_NONE;
+
+ head = contour->edges;
+
+ /* Calculate the area of the control box for all edges. */
+ while ( head )
+ {
+ switch ( head->edge_type )
+ {
+ case SDF_EDGE_LINE:
+ area += MUL_26D6( ( head->end_pos.x - head->start_pos.x ),
+ ( head->end_pos.y + head->start_pos.y ) );
+ break;
+
+ case SDF_EDGE_CONIC:
+ area += MUL_26D6( head->control_a.x - head->start_pos.x,
+ head->control_a.y + head->start_pos.y );
+ area += MUL_26D6( head->end_pos.x - head->control_a.x,
+ head->end_pos.y + head->control_a.y );
+ break;
+
+ case SDF_EDGE_CUBIC:
+ area += MUL_26D6( head->control_a.x - head->start_pos.x,
+ head->control_a.y + head->start_pos.y );
+ area += MUL_26D6( head->control_b.x - head->control_a.x,
+ head->control_b.y + head->control_a.y );
+ area += MUL_26D6( head->end_pos.x - head->control_b.x,
+ head->end_pos.y + head->control_b.y );
+ break;
+
+ default:
+ return SDF_ORIENTATION_NONE;
+ }
+
+ head = head->next;
+ }
+
+ /* Clockwise contours cover a positive area, and counter-clockwise */
+ /* contours cover a negative area. */
+ if ( area > 0 )
+ return SDF_ORIENTATION_CW;
+ else
+ return SDF_ORIENTATION_CCW;
+ }
+
+
+ /* This function is exactly the same as the one */
+ /* in the smooth renderer. It splits a conic */
+ /* into two conics exactly half way at t = 0.5. */
+ static void
+ split_conic( FT_26D6_Vec* base )
+ {
+ FT_26D6 a, b;
+
+
+ base[4].x = base[2].x;
+ a = base[0].x + base[1].x;
+ b = base[1].x + base[2].x;
+ base[3].x = b / 2;
+ base[2].x = ( a + b ) / 4;
+ base[1].x = a / 2;
+
+ base[4].y = base[2].y;
+ a = base[0].y + base[1].y;
+ b = base[1].y + base[2].y;
+ base[3].y = b / 2;
+ base[2].y = ( a + b ) / 4;
+ base[1].y = a / 2;
+ }
+
+
+ /* This function is exactly the same as the one */
+ /* in the smooth renderer. It splits a cubic */
+ /* into two cubics exactly half way at t = 0.5. */
+ static void
+ split_cubic( FT_26D6_Vec* base )
+ {
+ FT_26D6 a, b, c;
+
+
+ base[6].x = base[3].x;
+ a = base[0].x + base[1].x;
+ b = base[1].x + base[2].x;
+ c = base[2].x + base[3].x;
+ base[5].x = c / 2;
+ c += b;
+ base[4].x = c / 4;
+ base[1].x = a / 2;
+ a += b;
+ base[2].x = a / 4;
+ base[3].x = ( a + c ) / 8;
+
+ base[6].y = base[3].y;
+ a = base[0].y + base[1].y;
+ b = base[1].y + base[2].y;
+ c = base[2].y + base[3].y;
+ base[5].y = c / 2;
+ c += b;
+ base[4].y = c / 4;
+ base[1].y = a / 2;
+ a += b;
+ base[2].y = a / 4;
+ base[3].y = ( a + c ) / 8;
+ }
+
+
+ /* Split a conic Bezier curve into a number of lines */
+ /* and add them to `out'. */
+ /* */
+ /* This function uses recursion; we thus need */
+ /* parameter `max_splits' for stopping. */
+ static FT_Error
+ split_sdf_conic( FT_Memory memory,
+ FT_26D6_Vec* control_points,
+ FT_Int max_splits,
+ SDF_Edge** out )
+ {
+ FT_Error error = FT_Err_Ok;
+ FT_26D6_Vec cpos[5];
+ SDF_Edge* left,* right;
+
+
+ if ( !memory || !out )
+ {
+ error = FT_THROW( Invalid_Argument );
+ goto Exit;
+ }
+
+ /* split conic outline */
+ cpos[0] = control_points[0];
+ cpos[1] = control_points[1];
+ cpos[2] = control_points[2];
+
+ split_conic( cpos );
+
+ /* If max number of splits is done */
+ /* then stop and add the lines to */
+ /* the list. */
+ if ( max_splits <= 2 )
+ goto Append;
+
+ /* Otherwise keep splitting. */
+ FT_CALL( split_sdf_conic( memory, &cpos[0], max_splits / 2, out ) );
+ FT_CALL( split_sdf_conic( memory, &cpos[2], max_splits / 2, out ) );
+
+ /* [NOTE]: This is not an efficient way of */
+ /* splitting the curve. Check the deviation */
+ /* instead and stop if the deviation is less */
+ /* than a pixel. */
+
+ goto Exit;
+
+ Append:
+ /* Do allocation and add the lines to the list. */
+
+ FT_CALL( sdf_edge_new( memory, &left ) );
+ FT_CALL( sdf_edge_new( memory, &right ) );
+
+ left->start_pos = cpos[0];
+ left->end_pos = cpos[2];
+ left->edge_type = SDF_EDGE_LINE;
+
+ right->start_pos = cpos[2];
+ right->end_pos = cpos[4];
+ right->edge_type = SDF_EDGE_LINE;
+
+ left->next = right;
+ right->next = (*out);
+ *out = left;
+
+ Exit:
+ return error;
+ }
+
+
+ /* Split a cubic Bezier curve into a number of lines */
+ /* and add them to `out`. */
+ /* */
+ /* This function uses recursion; we thus need */
+ /* parameter `max_splits' for stopping. */
+ static FT_Error
+ split_sdf_cubic( FT_Memory memory,
+ FT_26D6_Vec* control_points,
+ FT_Int max_splits,
+ SDF_Edge** out )
+ {
+ FT_Error error = FT_Err_Ok;
+ FT_26D6_Vec cpos[7];
+ SDF_Edge* left,* right;
+
+
+ if ( !memory || !out )
+ {
+ error = FT_THROW( Invalid_Argument );
+ goto Exit;
+ }
+
+ /* split the conic */
+ cpos[0] = control_points[0];
+ cpos[1] = control_points[1];
+ cpos[2] = control_points[2];
+ cpos[3] = control_points[3];
+
+ split_cubic( cpos );
+
+ /* If max number of splits is done */
+ /* then stop and add the lines to */
+ /* the list. */
+ if ( max_splits <= 2 )
+ goto Append;
+
+ /* Otherwise keep splitting. */
+ FT_CALL( split_sdf_cubic( memory, &cpos[0], max_splits / 2, out ) );
+ FT_CALL( split_sdf_cubic( memory, &cpos[3], max_splits / 2, out ) );
+
+ /* [NOTE]: This is not an efficient way of */
+ /* splitting the curve. Check the deviation */
+ /* instead and stop if the deviation is less */
+ /* than a pixel. */
+
+ goto Exit;
+
+ Append:
+ /* Do allocation and add the lines to the list. */
+
+ FT_CALL( sdf_edge_new( memory, &left) );
+ FT_CALL( sdf_edge_new( memory, &right) );
+
+ left->start_pos = cpos[0];
+ left->end_pos = cpos[3];
+ left->edge_type = SDF_EDGE_LINE;
+
+ right->start_pos = cpos[3];
+ right->end_pos = cpos[6];
+ right->edge_type = SDF_EDGE_LINE;
+
+ left->next = right;
+ right->next = (*out);
+ *out = left;
+
+ Exit:
+ return error;
+ }
+
+
+ /* Subdivide an entire shape into line segments */
+ /* such that it doesn't look visually different */
+ /* from the original curve. */
+ static FT_Error
+ split_sdf_shape( SDF_Shape* shape )
+ {
+ FT_Error error = FT_Err_Ok;
+ FT_Memory memory;
+
+ SDF_Contour* contours;
+ SDF_Contour* new_contours = NULL;
+
+
+ if ( !shape || !shape->memory )
+ {
+ error = FT_THROW( Invalid_Argument );
+ goto Exit;
+ }
+
+ contours = shape->contours;
+ memory = shape->memory;
+
+ /* for each contour */
+ while ( contours )
+ {
+ SDF_Edge* edges = contours->edges;
+ SDF_Edge* new_edges = NULL;
+
+ SDF_Contour* tempc;
+
+
+ /* for each edge */
+ while ( edges )
+ {
+ SDF_Edge* edge = edges;
+ SDF_Edge* temp;
+
+ switch ( edge->edge_type )
+ {
+ case SDF_EDGE_LINE:
+ /* Just create a duplicate edge in case */
+ /* it is a line. We can use the same edge. */
+ FT_CALL( sdf_edge_new( memory, &temp ) );
+
+ ft_memcpy( temp, edge, sizeof ( *edge ) );
+
+ temp->next = new_edges;
+ new_edges = temp;
+ break;
+
+ case SDF_EDGE_CONIC:
+ /* Subdivide the curve and add it to the list. */
+ {
+ FT_26D6_Vec ctrls[3];
+
+
+ ctrls[0] = edge->start_pos;
+ ctrls[1] = edge->control_a;
+ ctrls[2] = edge->end_pos;
+
+ error = split_sdf_conic( memory, ctrls, 32, &new_edges );
+ }
+ break;
+
+ case SDF_EDGE_CUBIC:
+ /* Subdivide the curve and add it to the list. */
+ {
+ FT_26D6_Vec ctrls[4];
+
+
+ ctrls[0] = edge->start_pos;
+ ctrls[1] = edge->control_a;
+ ctrls[2] = edge->control_b;
+ ctrls[3] = edge->end_pos;
+
+ error = split_sdf_cubic( memory, ctrls, 32, &new_edges );
+ }
+ break;
+
+ default:
+ error = FT_THROW( Invalid_Argument );
+ goto Exit;
+ }
+
+ edges = edges->next;
+ }
+
+ /* add to the contours list */
+ FT_CALL( sdf_contour_new( memory, &tempc ) );
+
+ tempc->next = new_contours;
+ tempc->edges = new_edges;
+ new_contours = tempc;
+ new_edges = NULL;
+
+ /* deallocate the contour */
+ tempc = contours;
+ contours = contours->next;
+
+ sdf_contour_done( memory, &tempc );
+ }
+
+ shape->contours = new_contours;
+
+ Exit:
+ return error;
+ }
+
+
+ /**************************************************************************
+ *
+ * for debugging
+ *
+ */
+
+#ifdef FT_DEBUG_LEVEL_TRACE
+
+ static void
+ sdf_shape_dump( SDF_Shape* shape )
+ {
+ FT_UInt num_contours = 0;
+
+ FT_UInt total_edges = 0;
+ FT_UInt total_lines = 0;
+ FT_UInt total_conic = 0;
+ FT_UInt total_cubic = 0;
+
+ SDF_Contour* contour_list;
+
+
+ if ( !shape )
+ {
+ FT_TRACE5(( "sdf_shape_dump: null shape\n" ));
+ return;
+ }
+
+ contour_list = shape->contours;
+
+ FT_TRACE5(( "sdf_shape_dump (values are in 26.6 format):\n" ));
+
+ while ( contour_list )
+ {
+ FT_UInt num_edges = 0;
+ SDF_Edge* edge_list;
+ SDF_Contour* contour = contour_list;
+
+
+ FT_TRACE5(( " Contour %d\n", num_contours ));
+
+ edge_list = contour->edges;
+
+ while ( edge_list )
+ {
+ SDF_Edge* edge = edge_list;
+
+
+ FT_TRACE5(( " %3d: ", num_edges ));
+
+ switch ( edge->edge_type )
+ {
+ case SDF_EDGE_LINE:
+ FT_TRACE5(( "Line: (%ld, %ld) -- (%ld, %ld)\n",
+ edge->start_pos.x, edge->start_pos.y,
+ edge->end_pos.x, edge->end_pos.y ));
+ total_lines++;
+ break;
+
+ case SDF_EDGE_CONIC:
+ FT_TRACE5(( "Conic: (%ld, %ld) .. (%ld, %ld) .. (%ld, %ld)\n",
+ edge->start_pos.x, edge->start_pos.y,
+ edge->control_a.x, edge->control_a.y,
+ edge->end_pos.x, edge->end_pos.y ));
+ total_conic++;
+ break;
+
+ case SDF_EDGE_CUBIC:
+ FT_TRACE5(( "Cubic: (%ld, %ld) .. (%ld, %ld)"
+ " .. (%ld, %ld) .. (%ld %ld)\n",
+ edge->start_pos.x, edge->start_pos.y,
+ edge->control_a.x, edge->control_a.y,
+ edge->control_b.x, edge->control_b.y,
+ edge->end_pos.x, edge->end_pos.y ));
+ total_cubic++;
+ break;
+
+ default:
+ break;
+ }
+
+ num_edges++;
+ total_edges++;
+ edge_list = edge_list->next;
+ }
+
+ num_contours++;
+ contour_list = contour_list->next;
+ }
+
+ FT_TRACE5(( "\n" ));
+ FT_TRACE5(( " total number of contours = %d\n", num_contours ));
+ FT_TRACE5(( " total number of edges = %d\n", total_edges ));
+ FT_TRACE5(( " |__lines = %d\n", total_lines ));
+ FT_TRACE5(( " |__conic = %d\n", total_conic ));
+ FT_TRACE5(( " |__cubic = %d\n", total_cubic ));
+ }
+
+#endif /* FT_DEBUG_LEVEL_TRACE */
+
+
+ /**************************************************************************
+ *
+ * math functions
+ *
+ */
+
+#if !USE_NEWTON_FOR_CONIC
+
+ /* [NOTE]: All the functions below down until rasterizer */
+ /* can be avoided if we decide to subdivide the */
+ /* curve into lines. */
+
+ /* This function uses Newton's iteration to find */
+ /* the cube root of a fixed-point integer. */
+ static FT_16D16
+ cube_root( FT_16D16 val )
+ {
+ /* [IMPORTANT]: This function is not good as it may */
+ /* not break, so use a lookup table instead. Or we */
+ /* can use an algorithm similar to `square_root`. */
+
+ FT_Int v, g, c;
+
+
+ if ( val == 0 ||
+ val == -FT_INT_16D16( 1 ) ||
+ val == FT_INT_16D16( 1 ) )
+ return val;
+
+ v = val < 0 ? -val : val;
+ g = square_root( v );
+ c = 0;
+
+ while ( 1 )
+ {
+ c = FT_MulFix( FT_MulFix( g, g ), g ) - v;
+ c = FT_DivFix( c, 3 * FT_MulFix( g, g ) );
+
+ g -= c;
+
+ if ( ( c < 0 ? -c : c ) < 30 )
+ break;
+ }
+
+ return val < 0 ? -g : g;
+ }
+
+
+ /* Calculate the perpendicular by using '1 - base^2'. */
+ /* Then use arctan to compute the angle. */
+ static FT_16D16
+ arc_cos( FT_16D16 val )
+ {
+ FT_16D16 p;
+ FT_16D16 b = val;
+ FT_16D16 one = FT_INT_16D16( 1 );
+
+
+ if ( b > one )
+ b = one;
+ if ( b < -one )
+ b = -one;
+
+ p = one - FT_MulFix( b, b );
+ p = square_root( p );
+
+ return FT_Atan2( b, p );
+ }
+
+
+ /* Compute roots of a quadratic polynomial, assign them to `out`, */
+ /* and return number of real roots. */
+ /* */
+ /* The procedure can be found at */
+ /* */
+ /* https://mathworld.wolfram.com/QuadraticFormula.html */
+ static FT_UShort
+ solve_quadratic_equation( FT_26D6 a,
+ FT_26D6 b,
+ FT_26D6 c,
+ FT_16D16 out[2] )
+ {
+ FT_16D16 discriminant = 0;
+
+
+ a = FT_26D6_16D16( a );
+ b = FT_26D6_16D16( b );
+ c = FT_26D6_16D16( c );
+
+ if ( a == 0 )
+ {
+ if ( b == 0 )
+ return 0;
+ else
+ {
+ out[0] = FT_DivFix( -c, b );
+
+ return 1;
+ }
+ }
+
+ discriminant = FT_MulFix( b, b ) - 4 * FT_MulFix( a, c );
+
+ if ( discriminant < 0 )
+ return 0;
+ else if ( discriminant == 0 )
+ {
+ out[0] = FT_DivFix( -b, 2 * a );
+
+ return 1;
+ }
+ else
+ {
+ discriminant = square_root( discriminant );
+
+ out[0] = FT_DivFix( -b + discriminant, 2 * a );
+ out[1] = FT_DivFix( -b - discriminant, 2 * a );
+
+ return 2;
+ }
+ }
+
+
+ /* Compute roots of a cubic polynomial, assign them to `out`, */
+ /* and return number of real roots. */
+ /* */
+ /* The procedure can be found at */
+ /* */
+ /* https://mathworld.wolfram.com/CubicFormula.html */
+ static FT_UShort
+ solve_cubic_equation( FT_26D6 a,
+ FT_26D6 b,
+ FT_26D6 c,
+ FT_26D6 d,
+ FT_16D16 out[3] )
+ {
+ FT_16D16 q = 0; /* intermediate */
+ FT_16D16 r = 0; /* intermediate */
+
+ FT_16D16 a2 = b; /* x^2 coefficients */
+ FT_16D16 a1 = c; /* x coefficients */
+ FT_16D16 a0 = d; /* constant */
+
+ FT_16D16 q3 = 0;
+ FT_16D16 r2 = 0;
+ FT_16D16 a23 = 0;
+ FT_16D16 a22 = 0;
+ FT_16D16 a1x2 = 0;
+
+
+ /* cutoff value for `a` to be a cubic, otherwise solve quadratic */
+ if ( a == 0 || FT_ABS( a ) < 16 )
+ return solve_quadratic_equation( b, c, d, out );
+
+ if ( d == 0 )
+ {
+ out[0] = 0;
+
+ return solve_quadratic_equation( a, b, c, out + 1 ) + 1;
+ }
+
+ /* normalize the coefficients; this also makes them 16.16 */
+ a2 = FT_DivFix( a2, a );
+ a1 = FT_DivFix( a1, a );
+ a0 = FT_DivFix( a0, a );
+
+ /* compute intermediates */
+ a1x2 = FT_MulFix( a1, a2 );
+ a22 = FT_MulFix( a2, a2 );
+ a23 = FT_MulFix( a22, a2 );
+
+ q = ( 3 * a1 - a22 ) / 9;
+ r = ( 9 * a1x2 - 27 * a0 - 2 * a23 ) / 54;
+
+ /* [BUG]: `q3` and `r2` still cause underflow. */
+
+ q3 = FT_MulFix( q, q );
+ q3 = FT_MulFix( q3, q );
+
+ r2 = FT_MulFix( r, r );
+
+ if ( q3 < 0 && r2 < -q3 )
+ {
+ FT_16D16 t = 0;
+
+
+ q3 = square_root( -q3 );
+ t = FT_DivFix( r, q3 );
+
+ if ( t > ( 1 << 16 ) )
+ t = ( 1 << 16 );
+ if ( t < -( 1 << 16 ) )
+ t = -( 1 << 16 );
+
+ t = arc_cos( t );
+ a2 /= 3;
+ q = 2 * square_root( -q );
+
+ out[0] = FT_MulFix( q, FT_Cos( t / 3 ) ) - a2;
+ out[1] = FT_MulFix( q, FT_Cos( ( t + FT_ANGLE_PI * 2 ) / 3 ) ) - a2;
+ out[2] = FT_MulFix( q, FT_Cos( ( t + FT_ANGLE_PI * 4 ) / 3 ) ) - a2;
+
+ return 3;
+ }
+
+ else if ( r2 == -q3 )
+ {
+ FT_16D16 s = 0;
+
+
+ s = cube_root( r );
+ a2 /= -3;
+
+ out[0] = a2 + ( 2 * s );
+ out[1] = a2 - s;
+
+ return 2;
+ }
+
+ else
+ {
+ FT_16D16 s = 0;
+ FT_16D16 t = 0;
+ FT_16D16 dis = 0;
+
+
+ if ( q3 == 0 )
+ dis = FT_ABS( r );
+ else
+ dis = square_root( q3 + r2 );
+
+ s = cube_root( r + dis );
+ t = cube_root( r - dis );
+ a2 /= -3;
+ out[0] = ( a2 + ( s + t ) );
+
+ return 1;
+ }
+ }
+
+#endif /* !USE_NEWTON_FOR_CONIC */
+
+
+ /*************************************************************************/
+ /*************************************************************************/
+ /** **/
+ /** RASTERIZER **/
+ /** **/
+ /*************************************************************************/
+ /*************************************************************************/
+
+ /**************************************************************************
+ *
+ * @Function:
+ * resolve_corner
+ *
+ * @Description:
+ * At some places on the grid two edges can give opposite directions;
+ * this happens when the closest point is on one of the endpoint. In
+ * that case we need to check the proper sign.
+ *
+ * This can be visualized by an example:
+ *
+ * ```
+ * x
+ *
+ * o
+ * ^ \
+ * / \
+ * / \
+ * (a) / \ (b)
+ * / \
+ * / \
+ * / v
+ * ```
+ *
+ * Suppose `x` is the point whose shortest distance from an arbitrary
+ * contour we want to find out. It is clear that `o` is the nearest
+ * point on the contour. Now to determine the sign we do a cross
+ * product of the shortest distance vector and the edge direction, i.e.,
+ *
+ * ```
+ * => sign = cross(x - o, direction(a))
+ * ```
+ *
+ * Using the right hand thumb rule we can see that the sign will be
+ * positive.
+ *
+ * If we use `b', however, we have
+ *
+ * ```
+ * => sign = cross(x - o, direction(b))
+ * ```
+ *
+ * In this case the sign will be negative. To determine the correct
+ * sign we thus divide the plane in two halves and check which plane the
+ * point lies in.
+ *
+ * ```
+ * |
+ * x |
+ * |
+ * o
+ * ^|\
+ * / | \
+ * / | \
+ * (a) / | \ (b)
+ * / | \
+ * / \
+ * / v
+ * ```
+ *
+ * We can see that `x` lies in the plane of `a`, so we take the sign
+ * determined by `a`. This test can be easily done by calculating the
+ * orthogonality and taking the greater one.
+ *
+ * The orthogonality is simply the sinus of the two vectors (i.e.,
+ * x - o) and the corresponding direction. We efficiently pre-compute
+ * the orthogonality with the corresponding `get_min_distance_*`
+ * functions.
+ *
+ * @Input:
+ * sdf1 ::
+ * First signed distance (can be any of `a` or `b`).
+ *
+ * sdf1 ::
+ * Second signed distance (can be any of `a` or `b`).
+ *
+ * @Return:
+ * The correct signed distance, which is computed by using the above
+ * algorithm.
+ *
+ * @Note:
+ * The function does not care about the actual distance, it simply
+ * returns the signed distance which has a larger cross product. As a
+ * consequence, this function should not be used if the two distances
+ * are fairly apart. In that case simply use the signed distance with
+ * a shorter absolute distance.
+ *
+ */
+ static SDF_Signed_Distance
+ resolve_corner( SDF_Signed_Distance sdf1,
+ SDF_Signed_Distance sdf2 )
+ {
+ return FT_ABS( sdf1.cross ) > FT_ABS( sdf2.cross ) ? sdf1 : sdf2;
+ }
+
+
+ /**************************************************************************
+ *
+ * @Function:
+ * get_min_distance_line
+ *
+ * @Description:
+ * Find the shortest distance from the `line` segment to a given `point`
+ * and assign it to `out`. Use it for line segments only.
+ *
+ * @Input:
+ * line ::
+ * The line segment to which the shortest distance is to be computed.
+ *
+ * point ::
+ * Point from which the shortest distance is to be computed.
+ *
+ * @Output:
+ * out ::
+ * Signed distance from `point` to `line`.
+ *
+ * @Return:
+ * FreeType error, 0 means success.
+ *
+ * @Note:
+ * The `line' parameter must have an edge type of `SDF_EDGE_LINE`.
+ *
+ */
+ static FT_Error
+ get_min_distance_line( SDF_Edge* line,
+ FT_26D6_Vec point,
+ SDF_Signed_Distance* out )
+ {
+ /*
+ * In order to calculate the shortest distance from a point to
+ * a line segment, we do the following. Let's assume that
+ *
+ * ```
+ * a = start point of the line segment
+ * b = end point of the line segment
+ * p = point from which shortest distance is to be calculated
+ * ```
+ *
+ * (1) Write the parametric equation of the line.
+ *
+ * ```
+ * point_on_line = a + (b - a) * t (t is the factor)
+ * ```
+ *
+ * (2) Find the projection of point `p` on the line. The projection
+ * will be perpendicular to the line, which allows us to get the
+ * solution by making the dot product zero.
+ *
+ * ```
+ * (point_on_line - a) . (p - point_on_line) = 0
+ *
+ * (point_on_line)
+ * (a) x-------o----------------x (b)
+ * |_|
+ * |
+ * |
+ * (p)
+ * ```
+ *
+ * (3) Simplification of the above equation yields the factor of
+ * `point_on_line`:
+ *
+ * ```
+ * t = ((p - a) . (b - a)) / |b - a|^2
+ * ```
+ *
+ * (4) We clamp factor `t` between [0.0f, 1.0f] because `point_on_line`
+ * can be outside of the line segment:
+ *
+ * ```
+ * (point_on_line)
+ * (a) x------------------------x (b) -----o---
+ * |_|
+ * |
+ * |
+ * (p)
+ * ```
+ *
+ * (5) Finally, the distance we are interested in is
+ *
+ * ```
+ * |point_on_line - p|
+ * ```
+ */
+
+ FT_Error error = FT_Err_Ok;
+
+ FT_Vector a; /* start position */
+ FT_Vector b; /* end position */
+ FT_Vector p; /* current point */
+
+ FT_26D6_Vec line_segment; /* `b` - `a` */
+ FT_26D6_Vec p_sub_a; /* `p` - `a` */
+
+ FT_26D6 sq_line_length; /* squared length of `line_segment` */
+ FT_16D16 factor; /* factor of the nearest point */
+ FT_26D6 cross; /* used to determine sign */
+
+ FT_16D16_Vec nearest_point; /* `point_on_line` */
+ FT_16D16_Vec nearest_vector; /* `p` - `nearest_point` */
+
+
+ if ( !line || !out )
+ {
+ error = FT_THROW( Invalid_Argument );
+ goto Exit;
+ }
+
+ if ( line->edge_type != SDF_EDGE_LINE )
+ {
+ error = FT_THROW( Invalid_Argument );
+ goto Exit;
+ }
+
+ a = line->start_pos;
+ b = line->end_pos;
+ p = point;
+
+ line_segment.x = b.x - a.x;
+ line_segment.y = b.y - a.y;
+
+ p_sub_a.x = p.x - a.x;
+ p_sub_a.y = p.y - a.y;
+
+ sq_line_length = ( line_segment.x * line_segment.x ) / 64 +
+ ( line_segment.y * line_segment.y ) / 64;
+
+ /* currently factor is 26.6 */
+ factor = ( p_sub_a.x * line_segment.x ) / 64 +
+ ( p_sub_a.y * line_segment.y ) / 64;
+
+ /* now factor is 16.16 */
+ factor = FT_DivFix( factor, sq_line_length );
+
+ /* clamp the factor between 0.0 and 1.0 in fixed point */
+ if ( factor > FT_INT_16D16( 1 ) )
+ factor = FT_INT_16D16( 1 );
+ if ( factor < 0 )
+ factor = 0;
+
+ nearest_point.x = FT_MulFix( FT_26D6_16D16( line_segment.x ),
+ factor );
+ nearest_point.y = FT_MulFix( FT_26D6_16D16( line_segment.y ),
+ factor );
+
+ nearest_point.x = FT_26D6_16D16( a.x ) + nearest_point.x;
+ nearest_point.y = FT_26D6_16D16( a.y ) + nearest_point.y;
+
+ nearest_vector.x = nearest_point.x - FT_26D6_16D16( p.x );
+ nearest_vector.y = nearest_point.y - FT_26D6_16D16( p.y );
+
+ cross = FT_MulFix( nearest_vector.x, line_segment.y ) -
+ FT_MulFix( nearest_vector.y, line_segment.x );
+
+ /* assign the output */
+ out->sign = cross < 0 ? 1 : -1;
+ out->distance = VECTOR_LENGTH_16D16( nearest_vector );
+
+ /* Instead of finding `cross` for checking corner we */
+ /* directly set it here. This is more efficient */
+ /* because if the distance is perpendicular we can */
+ /* directly set it to 1. */
+ if ( factor != 0 && factor != FT_INT_16D16( 1 ) )
+ out->cross = FT_INT_16D16( 1 );
+ else
+ {
+ /* [OPTIMIZATION]: Pre-compute this direction. */
+ /* If not perpendicular then compute `cross`. */
+ FT_Vector_NormLen( &line_segment );
+ FT_Vector_NormLen( &nearest_vector );
+
+ out->cross = FT_MulFix( line_segment.x, nearest_vector.y ) -
+ FT_MulFix( line_segment.y, nearest_vector.x );
+ }
+
+ Exit:
+ return error;
+ }
+
+
+ /**************************************************************************
+ *
+ * @Function:
+ * get_min_distance_conic
+ *
+ * @Description:
+ * Find the shortest distance from the `conic` Bezier curve to a given
+ * `point` and assign it to `out`. Use it for conic/quadratic curves
+ * only.
+ *
+ * @Input:
+ * conic ::
+ * The conic Bezier curve to which the shortest distance is to be
+ * computed.
+ *
+ * point ::
+ * Point from which the shortest distance is to be computed.
+ *
+ * @Output:
+ * out ::
+ * Signed distance from `point` to `conic`.
+ *
+ * @Return:
+ * FreeType error, 0 means success.
+ *
+ * @Note:
+ * The `conic` parameter must have an edge type of `SDF_EDGE_CONIC`.
+ *
+ */
+
+#if !USE_NEWTON_FOR_CONIC
+
+ /*
+ * The function uses an analytical method to find the shortest distance
+ * which is faster than the Newton-Raphson method, but has underflows at
+ * the moment. Use Newton's method if you can see artifacts in the SDF.
+ */
+ static FT_Error
+ get_min_distance_conic( SDF_Edge* conic,
+ FT_26D6_Vec point,
+ SDF_Signed_Distance* out )
+ {
+ /*
+ * The procedure to find the shortest distance from a point to a
+ * quadratic Bezier curve is similar to the line segment algorithm. The
+ * shortest distance is perpendicular to the Bezier curve; the only
+ * difference from line is that there can be more than one
+ * perpendicular, and we also have to check the endpoints, because the
+ * perpendicular may not be the shortest.
+ *
+ * Let's assume that
+ * ```
+ * p0 = first endpoint
+ * p1 = control point
+ * p2 = second endpoint
+ * p = point from which shortest distance is to be calculated
+ * ```
+ *
+ * (1) The equation of a quadratic Bezier curve can be written as
+ *
+ * ```
+ * B(t) = (1 - t)^2 * p0 + 2(1 - t)t * p1 + t^2 * p2
+ * ```
+ *
+ * with `t` a factor in the range [0.0f, 1.0f]. This equation can
+ * be rewritten as
+ *
+ * ```
+ * B(t) = t^2 * (p0 - 2p1 + p2) + 2t * (p1 - p0) + p0
+ * ```
+ *
+ * With
+ *
+ * ```
+ * A = p0 - 2p1 + p2
+ * B = p1 - p0
+ * ```
+ *
+ * we have
+ *
+ * ```
+ * B(t) = t^2 * A + 2t * B + p0
+ * ```
+ *
+ * (2) The derivative of the last equation above is
+ *
+ * ```
+ * B'(t) = 2 *(tA + B)
+ * ```
+ *
+ * (3) To find the shortest distance from `p` to `B(t)` we find the
+ * point on the curve at which the shortest distance vector (i.e.,
+ * `B(t) - p`) and the direction (i.e., `B'(t)`) make 90 degrees.
+ * In other words, we make the dot product zero.
+ *
+ * ```
+ * (B(t) - p) . (B'(t)) = 0
+ * (t^2 * A + 2t * B + p0 - p) . (2 * (tA + B)) = 0
+ * ```
+ *
+ * After simplifying we get a cubic equation
+ *
+ * ```
+ * at^3 + bt^2 + ct + d = 0
+ * ```
+ *
+ * with
+ *
+ * ```
+ * a = A.A
+ * b = 3A.B
+ * c = 2B.B + A.p0 - A.p
+ * d = p0.B - p.B
+ * ```
+ *
+ * (4) Now the roots of the equation can be computed using 'Cardano's
+ * Cubic formula'; we clamp the roots in the range [0.0f, 1.0f].
+ *
+ * [note]: `B` and `B(t)` are different in the above equations.
+ */
+
+ FT_Error error = FT_Err_Ok;
+
+ FT_26D6_Vec aA, bB; /* A, B in the above comment */
+ FT_26D6_Vec nearest_point; /* point on curve nearest to `point` */
+ FT_26D6_Vec direction; /* direction of curve at `nearest_point` */
+
+ FT_26D6_Vec p0, p1, p2; /* control points of a conic curve */
+ FT_26D6_Vec p; /* `point` to which shortest distance */
+
+ FT_26D6 a, b, c, d; /* cubic coefficients */
+
+ FT_16D16 roots[3] = { 0, 0, 0 }; /* real roots of the cubic eq. */
+ FT_16D16 min_factor; /* factor at `nearest_point` */
+ FT_16D16 cross; /* to determine the sign */
+ FT_16D16 min = FT_INT_MAX; /* shortest squared distance */
+
+ FT_UShort num_roots; /* number of real roots of cubic */
+ FT_UShort i;
+
+
+ if ( !conic || !out )
+ {
+ error = FT_THROW( Invalid_Argument );
+ goto Exit;
+ }
+
+ if ( conic->edge_type != SDF_EDGE_CONIC )
+ {
+ error = FT_THROW( Invalid_Argument );
+ goto Exit;
+ }
+
+ p0 = conic->start_pos;
+ p1 = conic->control_a;
+ p2 = conic->end_pos;
+ p = point;
+
+ /* compute substitution coefficients */
+ aA.x = p0.x - 2 * p1.x + p2.x;
+ aA.y = p0.y - 2 * p1.y + p2.y;
+
+ bB.x = p1.x - p0.x;
+ bB.y = p1.y - p0.y;
+
+ /* compute cubic coefficients */
+ a = VEC_26D6_DOT( aA, aA );
+
+ b = 3 * VEC_26D6_DOT( aA, bB );
+
+ c = 2 * VEC_26D6_DOT( bB, bB ) +
+ VEC_26D6_DOT( aA, p0 ) -
+ VEC_26D6_DOT( aA, p );
+
+ d = VEC_26D6_DOT( p0, bB ) -
+ VEC_26D6_DOT( p, bB );
+
+ /* find the roots */
+ num_roots = solve_cubic_equation( a, b, c, d, roots );
+
+ if ( num_roots == 0 )
+ {
+ roots[0] = 0;
+ roots[1] = FT_INT_16D16( 1 );
+ num_roots = 2;
+ }
+
+ /* [OPTIMIZATION]: Check the roots, clamp them and discard */
+ /* duplicate roots. */
+
+ /* convert these values to 16.16 for further computation */
+ aA.x = FT_26D6_16D16( aA.x );
+ aA.y = FT_26D6_16D16( aA.y );
+
+ bB.x = FT_26D6_16D16( bB.x );
+ bB.y = FT_26D6_16D16( bB.y );
+
+ p0.x = FT_26D6_16D16( p0.x );
+ p0.y = FT_26D6_16D16( p0.y );
+
+ p.x = FT_26D6_16D16( p.x );
+ p.y = FT_26D6_16D16( p.y );
+
+ for ( i = 0; i < num_roots; i++ )
+ {
+ FT_16D16 t = roots[i];
+ FT_16D16 t2 = 0;
+ FT_16D16 dist = 0;
+
+ FT_16D16_Vec curve_point;
+ FT_16D16_Vec dist_vector;
+
+ /*
+ * Ideally we should discard the roots which are outside the range
+ * [0.0, 1.0] and check the endpoints of the Bezier curve, but Behdad
+ * Esfahbod proved the following lemma.
+ *
+ * Lemma:
+ *
+ * (1) If the closest point on the curve [0, 1] is to the endpoint at
+ * `t` = 1 and the cubic has no real roots at `t` = 1 then the
+ * cubic must have a real root at some `t` > 1.
+ *
+ * (2) Similarly, if the closest point on the curve [0, 1] is to the
+ * endpoint at `t` = 0 and the cubic has no real roots at `t` = 0
+ * then the cubic must have a real root at some `t` < 0.
+ *
+ * Now because of this lemma we only need to clamp the roots and that
+ * will take care of the endpoints.
+ *
+ * For more details see
+ *
+ * https://lists.nongnu.org/archive/html/freetype-devel/2020-06/msg00147.html
+ */
+
+ if ( t < 0 )
+ t = 0;
+ if ( t > FT_INT_16D16( 1 ) )
+ t = FT_INT_16D16( 1 );
+
+ t2 = FT_MulFix( t, t );
+
+ /* B(t) = t^2 * A + 2t * B + p0 - p */
+ curve_point.x = FT_MulFix( aA.x, t2 ) +
+ 2 * FT_MulFix( bB.x, t ) + p0.x;
+ curve_point.y = FT_MulFix( aA.y, t2 ) +
+ 2 * FT_MulFix( bB.y, t ) + p0.y;
+
+ /* `curve_point` - `p` */
+ dist_vector.x = curve_point.x - p.x;
+ dist_vector.y = curve_point.y - p.y;
+
+ dist = VECTOR_LENGTH_16D16( dist_vector );
+
+ if ( dist < min )
+ {
+ min = dist;
+ nearest_point = curve_point;
+ min_factor = t;
+ }
+ }
+
+ /* B'(t) = 2 * (tA + B) */
+ direction.x = 2 * FT_MulFix( aA.x, min_factor ) + 2 * bB.x;
+ direction.y = 2 * FT_MulFix( aA.y, min_factor ) + 2 * bB.y;
+
+ /* determine the sign */
+ cross = FT_MulFix( nearest_point.x - p.x, direction.y ) -
+ FT_MulFix( nearest_point.y - p.y, direction.x );
+
+ /* assign the values */
+ out->distance = min;
+ out->sign = cross < 0 ? 1 : -1;
+
+ if ( min_factor != 0 && min_factor != FT_INT_16D16( 1 ) )
+ out->cross = FT_INT_16D16( 1 ); /* the two are perpendicular */
+ else
+ {
+ /* convert to nearest vector */
+ nearest_point.x -= FT_26D6_16D16( p.x );
+ nearest_point.y -= FT_26D6_16D16( p.y );
+
+ /* compute `cross` if not perpendicular */
+ FT_Vector_NormLen( &direction );
+ FT_Vector_NormLen( &nearest_point );
+
+ out->cross = FT_MulFix( direction.x, nearest_point.y ) -
+ FT_MulFix( direction.y, nearest_point.x );
+ }
+
+ Exit:
+ return error;
+ }
+
+#else /* USE_NEWTON_FOR_CONIC */
+
+ /*
+ * The function uses Newton's approximation to find the shortest distance,
+ * which is a bit slower than the analytical method but doesn't cause
+ * underflow.
+ */
+ static FT_Error
+ get_min_distance_conic( SDF_Edge* conic,
+ FT_26D6_Vec point,
+ SDF_Signed_Distance* out )
+ {
+ /*
+ * This method uses Newton-Raphson's approximation to find the shortest
+ * distance from a point to a conic curve. It does not involve solving
+ * any cubic equation, that is why there is no risk of underflow.
+ *
+ * Let's assume that
+ *
+ * ```
+ * p0 = first endpoint
+ * p1 = control point
+ * p3 = second endpoint
+ * p = point from which shortest distance is to be calculated
+ * ```
+ *
+ * (1) The equation of a quadratic Bezier curve can be written as
+ *
+ * ```
+ * B(t) = (1 - t)^2 * p0 + 2(1 - t)t * p1 + t^2 * p2
+ * ```
+ *
+ * with `t` the factor in the range [0.0f, 1.0f]. The above
+ * equation can be rewritten as
+ *
+ * ```
+ * B(t) = t^2 * (p0 - 2p1 + p2) + 2t * (p1 - p0) + p0
+ * ```
+ *
+ * With
+ *
+ * ```
+ * A = p0 - 2p1 + p2
+ * B = 2 * (p1 - p0)
+ * ```
+ *
+ * we have
+ *
+ * ```
+ * B(t) = t^2 * A + t * B + p0
+ * ```
+ *
+ * (2) The derivative of the above equation is
+ *
+ * ```
+ * B'(t) = 2t * A + B
+ * ```
+ *
+ * (3) The second derivative of the above equation is
+ *
+ * ```
+ * B''(t) = 2A
+ * ```
+ *
+ * (4) The equation `P(t)` of the distance from point `p` to the curve
+ * can be written as
+ *
+ * ```
+ * P(t) = t^2 * A + t^2 * B + p0 - p
+ * ```
+ *
+ * With
+ *
+ * ```
+ * C = p0 - p
+ * ```
+ *
+ * we have
+ *
+ * ```
+ * P(t) = t^2 * A + t * B + C
+ * ```
+ *
+ * (5) Finally, the equation of the angle between `B(t)` and `P(t)` can
+ * be written as
+ *
+ * ```
+ * Q(t) = P(t) . B'(t)
+ * ```
+ *
+ * (6) Our task is to find a value of `t` such that the above equation
+ * `Q(t)` becomes zero, this is, the point-to-curve vector makes
+ * 90~degrees with the curve. We solve this with the Newton-Raphson
+ * method.
+ *
+ * (7) We first assume an arbitary value of factor `t`, which we then
+ * improve.
+ *
+ * ```
+ * t := Q(t) / Q'(t)
+ * ```
+ *
+ * Putting the value of `Q(t)` from the above equation gives
+ *
+ * ```
+ * t := P(t) . B'(t) / derivative(P(t) . B'(t))
+ * t := P(t) . B'(t) /
+ * (P'(t) . B'(t) + P(t) . B''(t))
+ * ```
+ *
+ * Note that `P'(t)` is the same as `B'(t)` because the constant is
+ * gone due to the derivative.
+ *
+ * (8) Finally we get the equation to improve the factor as
+ *
+ * ```
+ * t := P(t) . B'(t) /
+ * (B'(t) . B'(t) + P(t) . B''(t))
+ * ```
+ *
+ * [note]: `B` and `B(t)` are different in the above equations.
+ */
+
+ FT_Error error = FT_Err_Ok;
+
+ FT_26D6_Vec aA, bB, cC; /* A, B, C in the above comment */
+ FT_26D6_Vec nearest_point; /* point on curve nearest to `point` */
+ FT_26D6_Vec direction; /* direction of curve at `nearest_point` */
+
+ FT_26D6_Vec p0, p1, p2; /* control points of a conic curve */
+ FT_26D6_Vec p; /* `point` to which shortest distance */
+
+ FT_16D16 min_factor = 0; /* factor at `nearest_point' */
+ FT_16D16 cross; /* to determine the sign */
+ FT_16D16 min = FT_INT_MAX; /* shortest squared distance */
+
+ FT_UShort iterations;
+ FT_UShort steps;
+
+
+ if ( !conic || !out )
+ {
+ error = FT_THROW( Invalid_Argument );
+ goto Exit;
+ }
+
+ if ( conic->edge_type != SDF_EDGE_CONIC )
+ {
+ error = FT_THROW( Invalid_Argument );
+ goto Exit;
+ }
+
+ p0 = conic->start_pos;
+ p1 = conic->control_a;
+ p2 = conic->end_pos;
+ p = point;
+
+ /* compute substitution coefficients */
+ aA.x = p0.x - 2 * p1.x + p2.x;
+ aA.y = p0.y - 2 * p1.y + p2.y;
+
+ bB.x = 2 * ( p1.x - p0.x );
+ bB.y = 2 * ( p1.y - p0.y );
+
+ cC.x = p0.x;
+ cC.y = p0.y;
+
+ /* do Newton's iterations */
+ for ( iterations = 0; iterations <= MAX_NEWTON_DIVISIONS; iterations++ )
+ {
+ FT_16D16 factor = FT_INT_16D16( iterations ) / MAX_NEWTON_DIVISIONS;
+ FT_16D16 factor2;
+ FT_16D16 length;
+
+ FT_16D16_Vec curve_point; /* point on the curve */
+ FT_16D16_Vec dist_vector; /* `curve_point` - `p` */
+
+ FT_26D6_Vec d1; /* first derivative */
+ FT_26D6_Vec d2; /* second derivative */
+
+ FT_16D16 temp1;
+ FT_16D16 temp2;
+
+
+ for ( steps = 0; steps < MAX_NEWTON_STEPS; steps++ )
+ {
+ factor2 = FT_MulFix( factor, factor );
+
+ /* B(t) = t^2 * A + t * B + p0 */
+ curve_point.x = FT_MulFix( aA.x, factor2 ) +
+ FT_MulFix( bB.x, factor ) + cC.x;
+ curve_point.y = FT_MulFix( aA.y, factor2 ) +
+ FT_MulFix( bB.y, factor ) + cC.y;
+
+ /* convert to 16.16 */
+ curve_point.x = FT_26D6_16D16( curve_point.x );
+ curve_point.y = FT_26D6_16D16( curve_point.y );
+
+ /* P(t) in the comment */
+ dist_vector.x = curve_point.x - FT_26D6_16D16( p.x );
+ dist_vector.y = curve_point.y - FT_26D6_16D16( p.y );
+
+ length = VECTOR_LENGTH_16D16( dist_vector );
+
+ if ( length < min )
+ {
+ min = length;
+ min_factor = factor;
+ nearest_point = curve_point;
+ }
+
+ /* This is Newton's approximation. */
+ /* */
+ /* t := P(t) . B'(t) / */
+ /* (B'(t) . B'(t) + P(t) . B''(t)) */
+
+ /* B'(t) = 2tA + B */
+ d1.x = FT_MulFix( aA.x, 2 * factor ) + bB.x;
+ d1.y = FT_MulFix( aA.y, 2 * factor ) + bB.y;
+
+ /* B''(t) = 2A */
+ d2.x = 2 * aA.x;
+ d2.y = 2 * aA.y;
+
+ dist_vector.x /= 1024;
+ dist_vector.y /= 1024;
+
+ /* temp1 = P(t) . B'(t) */
+ temp1 = VEC_26D6_DOT( dist_vector, d1 );
+
+ /* temp2 = B'(t) . B'(t) + P(t) . B''(t) */
+ temp2 = VEC_26D6_DOT( d1, d1 ) +
+ VEC_26D6_DOT( dist_vector, d2 );
+
+ factor -= FT_DivFix( temp1, temp2 );
+
+ if ( factor < 0 || factor > FT_INT_16D16( 1 ) )
+ break;
+ }
+ }
+
+ /* B'(t) = 2t * A + B */
+ direction.x = 2 * FT_MulFix( aA.x, min_factor ) + bB.x;
+ direction.y = 2 * FT_MulFix( aA.y, min_factor ) + bB.y;
+
+ /* determine the sign */
+ cross = FT_MulFix( nearest_point.x - FT_26D6_16D16( p.x ),
+ direction.y ) -
+ FT_MulFix( nearest_point.y - FT_26D6_16D16( p.y ),
+ direction.x );
+
+ /* assign the values */
+ out->distance = min;
+ out->sign = cross < 0 ? 1 : -1;
+
+ if ( min_factor != 0 && min_factor != FT_INT_16D16( 1 ) )
+ out->cross = FT_INT_16D16( 1 ); /* the two are perpendicular */
+ else
+ {
+ /* convert to nearest vector */
+ nearest_point.x -= FT_26D6_16D16( p.x );
+ nearest_point.y -= FT_26D6_16D16( p.y );
+
+ /* compute `cross` if not perpendicular */
+ FT_Vector_NormLen( &direction );
+ FT_Vector_NormLen( &nearest_point );
+
+ out->cross = FT_MulFix( direction.x, nearest_point.y ) -
+ FT_MulFix( direction.y, nearest_point.x );
+ }
+
+ Exit:
+ return error;
+ }
+
+
+#endif /* USE_NEWTON_FOR_CONIC */
+
+
+ /**************************************************************************
+ *
+ * @Function:
+ * get_min_distance_cubic
+ *
+ * @Description:
+ * Find the shortest distance from the `cubic` Bezier curve to a given
+ * `point` and assigns it to `out`. Use it for cubic curves only.
+ *
+ * @Input:
+ * cubic ::
+ * The cubic Bezier curve to which the shortest distance is to be
+ * computed.
+ *
+ * point ::
+ * Point from which the shortest distance is to be computed.
+ *
+ * @Output:
+ * out ::
+ * Signed distance from `point` to `cubic`.
+ *
+ * @Return:
+ * FreeType error, 0 means success.
+ *
+ * @Note:
+ * The function uses Newton's approximation to find the shortest
+ * distance. Another way would be to divide the cubic into conic or
+ * subdivide the curve into lines, but that is not implemented.
+ *
+ * The `cubic` parameter must have an edge type of `SDF_EDGE_CUBIC`.
+ *
+ */
+ static FT_Error
+ get_min_distance_cubic( SDF_Edge* cubic,
+ FT_26D6_Vec point,
+ SDF_Signed_Distance* out )
+ {
+ /*
+ * The procedure to find the shortest distance from a point to a cubic
+ * Bezier curve is similar to quadratic curve algorithm. The only
+ * difference is that while calculating factor `t`, instead of a cubic
+ * polynomial equation we have to find the roots of a 5th degree
+ * polynomial equation. Solving this would require a significant amount
+ * of time, and still the results may not be accurate. We are thus
+ * going to directly approximate the value of `t` using the Newton-Raphson
+ * method.
+ *
+ * Let's assume that
+ *
+ * ```
+ * p0 = first endpoint
+ * p1 = first control point
+ * p2 = second control point
+ * p3 = second endpoint
+ * p = point from which shortest distance is to be calculated
+ * ```
+ *
+ * (1) The equation of a cubic Bezier curve can be written as
+ *
+ * ```
+ * B(t) = (1 - t)^3 * p0 + 3(1 - t)^2 t * p1 +
+ * 3(1 - t)t^2 * p2 + t^3 * p3
+ * ```
+ *
+ * The equation can be expanded and written as
+ *
+ * ```
+ * B(t) = t^3 * (-p0 + 3p1 - 3p2 + p3) +
+ * 3t^2 * (p0 - 2p1 + p2) + 3t * (-p0 + p1) + p0
+ * ```
+ *
+ * With
+ *
+ * ```
+ * A = -p0 + 3p1 - 3p2 + p3
+ * B = 3(p0 - 2p1 + p2)
+ * C = 3(-p0 + p1)
+ * ```
+ *
+ * we have
+ *
+ * ```
+ * B(t) = t^3 * A + t^2 * B + t * C + p0
+ * ```
+ *
+ * (2) The derivative of the above equation is
+ *
+ * ```
+ * B'(t) = 3t^2 * A + 2t * B + C
+ * ```
+ *
+ * (3) The second derivative of the above equation is
+ *
+ * ```
+ * B''(t) = 6t * A + 2B
+ * ```
+ *
+ * (4) The equation `P(t)` of the distance from point `p` to the curve
+ * can be written as
+ *
+ * ```
+ * P(t) = t^3 * A + t^2 * B + t * C + p0 - p
+ * ```
+ *
+ * With
+ *
+ * ```
+ * D = p0 - p
+ * ```
+ *
+ * we have
+ *
+ * ```
+ * P(t) = t^3 * A + t^2 * B + t * C + D
+ * ```
+ *
+ * (5) Finally the equation of the angle between `B(t)` and `P(t)` can
+ * be written as
+ *
+ * ```
+ * Q(t) = P(t) . B'(t)
+ * ```
+ *
+ * (6) Our task is to find a value of `t` such that the above equation
+ * `Q(t)` becomes zero, this is, the point-to-curve vector makes
+ * 90~degree with curve. We solve this with the Newton-Raphson
+ * method.
+ *
+ * (7) We first assume an arbitary value of factor `t`, which we then
+ * improve.
+ *
+ * ```
+ * t := Q(t) / Q'(t)
+ * ```
+ *
+ * Putting the value of `Q(t)` from the above equation gives
+ *
+ * ```
+ * t := P(t) . B'(t) / derivative(P(t) . B'(t))
+ * t := P(t) . B'(t) /
+ * (P'(t) . B'(t) + P(t) . B''(t))
+ * ```
+ *
+ * Note that `P'(t)` is the same as `B'(t)` because the constant is
+ * gone due to the derivative.
+ *
+ * (8) Finally we get the equation to improve the factor as
+ *
+ * ```
+ * t := P(t) . B'(t) /
+ * (B'(t) . B'( t ) + P(t) . B''(t))
+ * ```
+ *
+ * [note]: `B` and `B(t)` are different in the above equations.
+ */
+
+ FT_Error error = FT_Err_Ok;
+
+ FT_26D6_Vec aA, bB, cC, dD; /* A, B, C in the above comment */
+ FT_16D16_Vec nearest_point; /* point on curve nearest to `point` */
+ FT_16D16_Vec direction; /* direction of curve at `nearest_point` */
+
+ FT_26D6_Vec p0, p1, p2, p3; /* control points of a cubic curve */
+ FT_26D6_Vec p; /* `point` to which shortest distance */
+
+ FT_16D16 min_factor = 0; /* factor at shortest distance */
+ FT_16D16 min_factor_sq = 0; /* factor at shortest distance */
+ FT_16D16 cross; /* to determine the sign */
+ FT_16D16 min = FT_INT_MAX; /* shortest distance */
+
+ FT_UShort iterations;
+ FT_UShort steps;
+
+
+ if ( !cubic || !out )
+ {
+ error = FT_THROW( Invalid_Argument );
+ goto Exit;
+ }
+
+ if ( cubic->edge_type != SDF_EDGE_CUBIC )
+ {
+ error = FT_THROW( Invalid_Argument );
+ goto Exit;
+ }
+
+ p0 = cubic->start_pos;
+ p1 = cubic->control_a;
+ p2 = cubic->control_b;
+ p3 = cubic->end_pos;
+ p = point;
+
+ /* compute substitution coefficients */
+ aA.x = -p0.x + 3 * ( p1.x - p2.x ) + p3.x;
+ aA.y = -p0.y + 3 * ( p1.y - p2.y ) + p3.y;
+
+ bB.x = 3 * ( p0.x - 2 * p1.x + p2.x );
+ bB.y = 3 * ( p0.y - 2 * p1.y + p2.y );
+
+ cC.x = 3 * ( p1.x - p0.x );
+ cC.y = 3 * ( p1.y - p0.y );
+
+ dD.x = p0.x;
+ dD.y = p0.y;
+
+ for ( iterations = 0; iterations <= MAX_NEWTON_DIVISIONS; iterations++ )
+ {
+ FT_16D16 factor = FT_INT_16D16( iterations ) / MAX_NEWTON_DIVISIONS;
+
+ FT_16D16 factor2; /* factor^2 */
+ FT_16D16 factor3; /* factor^3 */
+ FT_16D16 length;
+
+ FT_16D16_Vec curve_point; /* point on the curve */
+ FT_16D16_Vec dist_vector; /* `curve_point' - `p' */
+
+ FT_26D6_Vec d1; /* first derivative */
+ FT_26D6_Vec d2; /* second derivative */
+
+ FT_16D16 temp1;
+ FT_16D16 temp2;
+
+
+ for ( steps = 0; steps < MAX_NEWTON_STEPS; steps++ )
+ {
+ factor2 = FT_MulFix( factor, factor );
+ factor3 = FT_MulFix( factor2, factor );
+
+ /* B(t) = t^3 * A + t^2 * B + t * C + D */
+ curve_point.x = FT_MulFix( aA.x, factor3 ) +
+ FT_MulFix( bB.x, factor2 ) +
+ FT_MulFix( cC.x, factor ) + dD.x;
+ curve_point.y = FT_MulFix( aA.y, factor3 ) +
+ FT_MulFix( bB.y, factor2 ) +
+ FT_MulFix( cC.y, factor ) + dD.y;
+
+ /* convert to 16.16 */
+ curve_point.x = FT_26D6_16D16( curve_point.x );
+ curve_point.y = FT_26D6_16D16( curve_point.y );
+
+ /* P(t) in the comment */
+ dist_vector.x = curve_point.x - FT_26D6_16D16( p.x );
+ dist_vector.y = curve_point.y - FT_26D6_16D16( p.y );
+
+ length = VECTOR_LENGTH_16D16( dist_vector );
+
+ if ( length < min )
+ {
+ min = length;
+ min_factor = factor;
+ min_factor_sq = factor2;
+ nearest_point = curve_point;
+ }
+
+ /* This the Newton's approximation. */
+ /* */
+ /* t := P(t) . B'(t) / */
+ /* (B'(t) . B'(t) + P(t) . B''(t)) */
+
+ /* B'(t) = 3t^2 * A + 2t * B + C */
+ d1.x = FT_MulFix( aA.x, 3 * factor2 ) +
+ FT_MulFix( bB.x, 2 * factor ) + cC.x;
+ d1.y = FT_MulFix( aA.y, 3 * factor2 ) +
+ FT_MulFix( bB.y, 2 * factor ) + cC.y;
+
+ /* B''(t) = 6t * A + 2B */
+ d2.x = FT_MulFix( aA.x, 6 * factor ) + 2 * bB.x;
+ d2.y = FT_MulFix( aA.y, 6 * factor ) + 2 * bB.y;
+
+ dist_vector.x /= 1024;
+ dist_vector.y /= 1024;
+
+ /* temp1 = P(t) . B'(t) */
+ temp1 = VEC_26D6_DOT( dist_vector, d1 );
+
+ /* temp2 = B'(t) . B'(t) + P(t) . B''(t) */
+ temp2 = VEC_26D6_DOT( d1, d1 ) +
+ VEC_26D6_DOT( dist_vector, d2 );
+
+ factor -= FT_DivFix( temp1, temp2 );
+
+ if ( factor < 0 || factor > FT_INT_16D16( 1 ) )
+ break;
+ }
+ }
+
+ /* B'(t) = 3t^2 * A + 2t * B + C */
+ direction.x = FT_MulFix( aA.x, 3 * min_factor_sq ) +
+ FT_MulFix( bB.x, 2 * min_factor ) + cC.x;
+ direction.y = FT_MulFix( aA.y, 3 * min_factor_sq ) +
+ FT_MulFix( bB.y, 2 * min_factor ) + cC.y;
+
+ /* determine the sign */
+ cross = FT_MulFix( nearest_point.x - FT_26D6_16D16( p.x ),
+ direction.y ) -
+ FT_MulFix( nearest_point.y - FT_26D6_16D16( p.y ),
+ direction.x );
+
+ /* assign the values */
+ out->distance = min;
+ out->sign = cross < 0 ? 1 : -1;
+
+ if ( min_factor != 0 && min_factor != FT_INT_16D16( 1 ) )
+ out->cross = FT_INT_16D16( 1 ); /* the two are perpendicular */
+ else
+ {
+ /* convert to nearest vector */
+ nearest_point.x -= FT_26D6_16D16( p.x );
+ nearest_point.y -= FT_26D6_16D16( p.y );
+
+ /* compute `cross` if not perpendicular */
+ FT_Vector_NormLen( &direction );
+ FT_Vector_NormLen( &nearest_point );
+
+ out->cross = FT_MulFix( direction.x, nearest_point.y ) -
+ FT_MulFix( direction.y, nearest_point.x );
+ }
+
+ Exit:
+ return error;
+ }
+
+
+ /**************************************************************************
+ *
+ * @Function:
+ * sdf_edge_get_min_distance
+ *
+ * @Description:
+ * Find shortest distance from `point` to any type of `edge`. It checks
+ * the edge type and then calls the relevant `get_min_distance_*`
+ * function.
+ *
+ * @Input:
+ * edge ::
+ * An edge to which the shortest distance is to be computed.
+ *
+ * point ::
+ * Point from which the shortest distance is to be computed.
+ *
+ * @Output:
+ * out ::
+ * Signed distance from `point` to `edge`.
+ *
+ * @Return:
+ * FreeType error, 0 means success.
+ *
+ */
+ static FT_Error
+ sdf_edge_get_min_distance( SDF_Edge* edge,
+ FT_26D6_Vec point,
+ SDF_Signed_Distance* out )
+ {
+ FT_Error error = FT_Err_Ok;
+
+
+ if ( !edge || !out )
+ {
+ error = FT_THROW( Invalid_Argument );
+ goto Exit;
+ }
+
+ /* edge-specific distance calculation */
+ switch ( edge->edge_type )
+ {
+ case SDF_EDGE_LINE:
+ get_min_distance_line( edge, point, out );
+ break;
+
+ case SDF_EDGE_CONIC:
+ get_min_distance_conic( edge, point, out );
+ break;
+
+ case SDF_EDGE_CUBIC:
+ get_min_distance_cubic( edge, point, out );
+ break;
+
+ default:
+ error = FT_THROW( Invalid_Argument );
+ }
+
+ Exit:
+ return error;
+ }
+
+
+ /* `sdf_generate' is not used at the moment */
+#if 0
+
+ #error "DO NOT USE THIS!"
+ #error "The function still outputs 16-bit data, which might cause memory"
+ #error "corruption. If required I will add this later."
+
+ /**************************************************************************
+ *
+ * @Function:
+ * sdf_contour_get_min_distance
+ *
+ * @Description:
+ * Iterate over all edges that make up the contour, find the shortest
+ * distance from a point to this contour, and assigns result to `out`.
+ *
+ * @Input:
+ * contour ::
+ * A contour to which the shortest distance is to be computed.
+ *
+ * point ::
+ * Point from which the shortest distance is to be computed.
+ *
+ * @Output:
+ * out ::
+ * Signed distance from the `point' to the `contour'.
+ *
+ * @Return:
+ * FreeType error, 0 means success.
+ *
+ * @Note:
+ * The function does not return a signed distance for each edge which
+ * makes up the contour, it simply returns the shortest of all the
+ * edges.
+ *
+ */
+ static FT_Error
+ sdf_contour_get_min_distance( SDF_Contour* contour,
+ FT_26D6_Vec point,
+ SDF_Signed_Distance* out )
+ {
+ FT_Error error = FT_Err_Ok;
+ SDF_Signed_Distance min_dist = max_sdf;
+ SDF_Edge* edge_list;
+
+
+ if ( !contour || !out )
+ {
+ error = FT_THROW( Invalid_Argument );
+ goto Exit;
+ }
+
+ edge_list = contour->edges;
+
+ /* iterate over all the edges manually */
+ while ( edge_list )
+ {
+ SDF_Signed_Distance current_dist = max_sdf;
+ FT_16D16 diff;
+
+
+ FT_CALL( sdf_edge_get_min_distance( edge_list,
+ point,
+ &current_dist ) );
+
+ if ( current_dist.distance >= 0 )
+ {
+ diff = current_dist.distance - min_dist.distance;
+
+
+ if ( FT_ABS(diff ) < CORNER_CHECK_EPSILON )
+ min_dist = resolve_corner( min_dist, current_dist );
+ else if ( diff < 0 )
+ min_dist = current_dist;
+ }
+ else
+ FT_TRACE0(( "sdf_contour_get_min_distance: Overflow.\n" ));
+
+ edge_list = edge_list->next;
+ }
+
+ *out = min_dist;
+
+ Exit:
+ return error;
+ }
+
+
+ /**************************************************************************
+ *
+ * @Function:
+ * sdf_generate
+ *
+ * @Description:
+ * This is the main function that is responsible for generating signed
+ * distance fields. The function does not align or compute the size of
+ * `bitmap`; therefore the calling application must set up `bitmap`
+ * properly and transform the `shape' appropriately in advance.
+ *
+ * Currently we check all pixels against all contours and all edges.
+ *
+ * @Input:
+ * internal_params ::
+ * Internal parameters and properties required by the rasterizer. See
+ * @SDF_Params for more.
+ *
+ * shape ::
+ * A complete shape which is used to generate SDF.
+ *
+ * spread ::
+ * Maximum distances to be allowed in the output bitmap.
+ *
+ * @Output:
+ * bitmap ::
+ * The output bitmap which will contain the SDF information.
+ *
+ * @Return:
+ * FreeType error, 0 means success.
+ *
+ */
+ static FT_Error
+ sdf_generate( const SDF_Params internal_params,
+ const SDF_Shape* shape,
+ FT_UInt spread,
+ const FT_Bitmap* bitmap )
+ {
+ FT_Error error = FT_Err_Ok;
+
+ FT_UInt width = 0;
+ FT_UInt rows = 0;
+ FT_UInt x = 0; /* used to loop in x direction, i.e., width */
+ FT_UInt y = 0; /* used to loop in y direction, i.e., rows */
+ FT_UInt sp_sq = 0; /* `spread` [* `spread`] as a 16.16 fixed value */
+
+ FT_Short* buffer;
+
+
+ if ( !shape || !bitmap )
+ {
+ error = FT_THROW( Invalid_Argument );
+ goto Exit;
+ }
+
+ if ( spread < MIN_SPREAD || spread > MAX_SPREAD )
+ {
+ error = FT_THROW( Invalid_Argument );
+ goto Exit;
+ }
+
+ width = bitmap->width;
+ rows = bitmap->rows;
+ buffer = (FT_Short*)bitmap->buffer;
+
+ if ( USE_SQUARED_DISTANCES )
+ sp_sq = FT_INT_16D16( spread * spread );
+ else
+ sp_sq = FT_INT_16D16( spread );
+
+ if ( width == 0 || rows == 0 )
+ {
+ FT_TRACE0(( "sdf_generate:"
+ " Cannot render glyph with width/height == 0\n" ));
+ FT_TRACE0(( " "
+ " (width, height provided [%d, %d])\n",
+ width, rows ));
+
+ error = FT_THROW( Cannot_Render_Glyph );
+ goto Exit;
+ }
+
+ /* loop over all rows */
+ for ( y = 0; y < rows; y++ )
+ {
+ /* loop over all pixels of a row */
+ for ( x = 0; x < width; x++ )
+ {
+ /* `grid_point` is the current pixel position; */
+ /* our task is to find the shortest distance */
+ /* from this point to the entire shape. */
+ FT_26D6_Vec grid_point = zero_vector;
+ SDF_Signed_Distance min_dist = max_sdf;
+ SDF_Contour* contour_list;
+
+ FT_UInt index;
+ FT_Short value;
+
+
+ grid_point.x = FT_INT_26D6( x );
+ grid_point.y = FT_INT_26D6( y );
+
+ /* This `grid_point' is at the corner, but we */
+ /* use the center of the pixel. */
+ grid_point.x += FT_INT_26D6( 1 ) / 2;
+ grid_point.y += FT_INT_26D6( 1 ) / 2;
+
+ contour_list = shape->contours;
+
+ /* iterate over all contours manually */
+ while ( contour_list )
+ {
+ SDF_Signed_Distance current_dist = max_sdf;
+
+
+ FT_CALL( sdf_contour_get_min_distance( contour_list,
+ grid_point,
+ &current_dist ) );
+
+ if ( current_dist.distance < min_dist.distance )
+ min_dist = current_dist;
+
+ contour_list = contour_list->next;
+ }
+
+ /* [OPTIMIZATION]: if (min_dist > sp_sq) then simply clamp */
+ /* the value to spread to avoid square_root */
+
+ /* clamp the values to spread */
+ if ( min_dist.distance > sp_sq )
+ min_dist.distance = sp_sq;
+
+ /* square_root the values and fit in a 6.10 fixed point */
+ if ( USE_SQUARED_DISTANCES )
+ min_dist.distance = square_root( min_dist.distance );
+
+ if ( internal_params.orientation == FT_ORIENTATION_FILL_LEFT )
+ min_dist.sign = -min_dist.sign;
+ if ( internal_params.flip_sign )
+ min_dist.sign = -min_dist.sign;
+
+ min_dist.distance /= 64; /* convert from 16.16 to 22.10 */
+
+ value = min_dist.distance & 0x0000FFFF; /* truncate to 6.10 */
+ value *= min_dist.sign;
+
+ if ( internal_params.flip_y )
+ index = y * width + x;
+ else
+ index = ( rows - y - 1 ) * width + x;
+
+ buffer[index] = value;
+ }
+ }
+
+ Exit:
+ return error;
+ }
+
+#endif /* 0 */
+
+
+ /**************************************************************************
+ *
+ * @Function:
+ * sdf_generate_bounding_box
+ *
+ * @Description:
+ * This function does basically the same thing as `sdf_generate` above
+ * but more efficiently.
+ *
+ * Instead of checking all pixels against all edges, we loop over all
+ * edges and only check pixels around the control box of the edge; the
+ * control box is increased by the spread in all directions. Anything
+ * outside of the control box that exceeds `spread` doesn't need to be
+ * computed.
+ *
+ * Lastly, to determine the sign of unchecked pixels, we do a single
+ * pass of all rows starting with a '+' sign and flipping when we come
+ * across a '-' sign and continue. This also eliminates the possibility
+ * of overflow because we only check the proximity of the curve.
+ * Therefore we can use squared distanced safely.
+ *
+ * @Input:
+ * internal_params ::
+ * Internal parameters and properties required by the rasterizer.
+ * See @SDF_Params for more.
+ *
+ * shape ::
+ * A complete shape which is used to generate SDF.
+ *
+ * spread ::
+ * Maximum distances to be allowed in the output bitmap.
+ *
+ * @Output:
+ * bitmap ::
+ * The output bitmap which will contain the SDF information.
+ *
+ * @Return:
+ * FreeType error, 0 means success.
+ *
+ */
+ static FT_Error
+ sdf_generate_bounding_box( const SDF_Params internal_params,
+ const SDF_Shape* shape,
+ FT_UInt spread,
+ const FT_Bitmap* bitmap )
+ {
+ FT_Error error = FT_Err_Ok;
+ FT_Memory memory = NULL;
+
+ FT_Int width, rows, i, j;
+ FT_Int sp_sq; /* max value to check */
+
+ SDF_Contour* contours; /* list of all contours */
+ FT_SDFFormat* buffer; /* the bitmap buffer */
+
+ /* This buffer has the same size in indices as the */
+ /* bitmap buffer. When we check a pixel position for */
+ /* a shortest distance we keep it in this buffer. */
+ /* This way we can find out which pixel is set, */
+ /* and also determine the signs properly. */
+ SDF_Signed_Distance* dists = NULL;
+
+ const FT_16D16 fixed_spread = FT_INT_16D16( spread );
+
+
+ if ( !shape || !bitmap )
+ {
+ error = FT_THROW( Invalid_Argument );
+ goto Exit;
+ }
+
+ if ( spread < MIN_SPREAD || spread > MAX_SPREAD )
+ {
+ error = FT_THROW( Invalid_Argument );
+ goto Exit;
+ }
+
+ memory = shape->memory;
+ if ( !memory )
+ {
+ error = FT_THROW( Invalid_Argument );
+ goto Exit;
+ }
+
+ if ( FT_ALLOC( dists,
+ bitmap->width * bitmap->rows * sizeof ( *dists ) ) )
+ goto Exit;
+
+ contours = shape->contours;
+ width = (FT_Int)bitmap->width;
+ rows = (FT_Int)bitmap->rows;
+ buffer = (FT_SDFFormat*)bitmap->buffer;
+
+ if ( USE_SQUARED_DISTANCES )
+ sp_sq = fixed_spread * fixed_spread;
+ else
+ sp_sq = fixed_spread;
+
+ if ( width == 0 || rows == 0 )
+ {
+ FT_TRACE0(( "sdf_generate:"
+ " Cannot render glyph with width/height == 0\n" ));
+ FT_TRACE0(( " "
+ " (width, height provided [%d, %d])", width, rows ));
+
+ error = FT_THROW( Cannot_Render_Glyph );
+ goto Exit;
+ }
+
+ /* loop over all contours */
+ while ( contours )
+ {
+ SDF_Edge* edges = contours->edges;
+
+
+ /* loop over all edges */
+ while ( edges )
+ {
+ FT_CBox cbox;
+ FT_Int x, y;
+
+
+ /* get the control box and increase it by `spread' */
+ cbox = get_control_box( *edges );
+
+ cbox.xMin = ( cbox.xMin - 63 ) / 64 - ( FT_Pos )spread;
+ cbox.xMax = ( cbox.xMax + 63 ) / 64 + ( FT_Pos )spread;
+ cbox.yMin = ( cbox.yMin - 63 ) / 64 - ( FT_Pos )spread;
+ cbox.yMax = ( cbox.yMax + 63 ) / 64 + ( FT_Pos )spread;
+
+ /* now loop over the pixels in the control box. */
+ for ( y = cbox.yMin; y < cbox.yMax; y++ )
+ {
+ for ( x = cbox.xMin; x < cbox.xMax; x++ )
+ {
+ FT_26D6_Vec grid_point = zero_vector;
+ SDF_Signed_Distance dist = max_sdf;
+ FT_UInt index = 0;
+
+
+ if ( x < 0 || x >= width )
+ continue;
+ if ( y < 0 || y >= rows )
+ continue;
+
+ grid_point.x = FT_INT_26D6( x );
+ grid_point.y = FT_INT_26D6( y );
+
+ /* This `grid_point` is at the corner, but we */
+ /* use the center of the pixel. */
+ grid_point.x += FT_INT_26D6( 1 ) / 2;
+ grid_point.y += FT_INT_26D6( 1 ) / 2;
+
+ FT_CALL( sdf_edge_get_min_distance( edges,
+ grid_point,
+ &dist ) );
+
+ if ( internal_params.orientation == FT_ORIENTATION_FILL_LEFT )
+ dist.sign = -dist.sign;
+
+ /* ignore if the distance is greater than spread; */
+ /* otherwise it creates artifacts due to the wrong sign */
+ if ( dist.distance > sp_sq )
+ continue;
+
+ /* square_root the values and fit in a 6.10 fixed-point */
+ if ( USE_SQUARED_DISTANCES )
+ dist.distance = square_root( dist.distance );
+
+ if ( internal_params.flip_y )
+ index = (FT_UInt)( y * width + x );
+ else
+ index = (FT_UInt)( ( rows - y - 1 ) * width + x );
+
+ /* check whether the pixel is set or not */
+ if ( dists[index].sign == 0 )
+ dists[index] = dist;
+ else if ( dists[index].distance > dist.distance )
+ dists[index] = dist;
+ else if ( FT_ABS( dists[index].distance - dist.distance )
+ < CORNER_CHECK_EPSILON )
+ dists[index] = resolve_corner( dists[index], dist );
+ }
+ }
+
+ edges = edges->next;
+ }
+
+ contours = contours->next;
+ }
+
+ /* final pass */
+ for ( j = 0; j < rows; j++ )
+ {
+ /* We assume the starting pixel of each row is outside. */
+ FT_Char current_sign = -1;
+ FT_UInt index;
+
+
+ if ( internal_params.overload_sign != 0 )
+ current_sign = internal_params.overload_sign < 0 ? -1 : 1;
+
+ for ( i = 0; i < width; i++ )
+ {
+ index = (FT_UInt)( j * width + i );
+
+ /* if the pixel is not set */
+ /* its shortest distance is more than `spread` */
+ if ( dists[index].sign == 0 )
+ dists[index].distance = fixed_spread;
+ else
+ current_sign = dists[index].sign;
+
+ /* clamp the values */
+ if ( dists[index].distance > fixed_spread )
+ dists[index].distance = fixed_spread;
+
+ /* flip sign if required */
+ dists[index].distance *= internal_params.flip_sign ? -current_sign
+ : current_sign;
+
+ /* concatenate to appropriate format */
+ buffer[index] = map_fixed_to_sdf( dists[index].distance,
+ fixed_spread );
+ }
+ }
+
+ Exit:
+ FT_FREE( dists );
+ return error;
+ }
+
+
+ /**************************************************************************
+ *
+ * @Function:
+ * sdf_generate_subdivision
+ *
+ * @Description:
+ * Subdivide the shape into a number of straight lines, then use the
+ * above `sdf_generate_bounding_box` function to generate the SDF.
+ *
+ * Note: After calling this function `shape` no longer has the original
+ * edges, it only contains lines.
+ *
+ * @Input:
+ * internal_params ::
+ * Internal parameters and properties required by the rasterizer.
+ * See @SDF_Params for more.
+ *
+ * shape ::
+ * A complete shape which is used to generate SDF.
+ *
+ * spread ::
+ * Maximum distances to be allowed inthe output bitmap.
+ *
+ * @Output:
+ * bitmap ::
+ * The output bitmap which will contain the SDF information.
+ *
+ * @Return:
+ * FreeType error, 0 means success.
+ *
+ */
+ static FT_Error
+ sdf_generate_subdivision( const SDF_Params internal_params,
+ SDF_Shape* shape,
+ FT_UInt spread,
+ const FT_Bitmap* bitmap )
+ {
+ /*
+ * Thanks to Alexei for providing the idea of this optimization.
+ *
+ * We take advantage of two facts.
+ *
+ * (1) Computing the shortest distance from a point to a line segment is
+ * very fast.
+ * (2) We don't have to compute the shortest distance for the entire
+ * two-dimensional grid.
+ *
+ * Both ideas lead to the following optimization.
+ *
+ * (1) Split the outlines into a number of line segments.
+ *
+ * (2) For each line segment, only process its neighborhood.
+ *
+ * (3) Compute the closest distance to the line only for neighborhood
+ * grid points.
+ *
+ * This greatly reduces the number of grid points to check.
+ */
+
+ FT_Error error = FT_Err_Ok;
+
+
+ FT_CALL( split_sdf_shape( shape ) );
+ FT_CALL( sdf_generate_bounding_box( internal_params,
+ shape, spread, bitmap ) );
+
+ Exit:
+ return error;
+ }
+
+
+ /**************************************************************************
+ *
+ * @Function:
+ * sdf_generate_with_overlaps
+ *
+ * @Description:
+ * This function can be used to generate SDF for glyphs with overlapping
+ * contours. The function generates SDF for contours separately on
+ * separate bitmaps (to generate SDF it uses
+ * `sdf_generate_subdivision`). At the end it simply combines all the
+ * SDF into the output bitmap; this fixes all the signs and removes
+ * overlaps.
+ *
+ * @Input:
+ * internal_params ::
+ * Internal parameters and properties required by the rasterizer. See
+ * @SDF_Params for more.
+ *
+ * shape ::
+ * A complete shape which is used to generate SDF.
+ *
+ * spread ::
+ * Maximum distances to be allowed in the output bitmap.
+ *
+ * @Output:
+ * bitmap ::
+ * The output bitmap which will contain the SDF information.
+ *
+ * @Return:
+ * FreeType error, 0 means success.
+ *
+ * @Note:
+ * The function cannot generate a proper SDF for glyphs with
+ * self-intersecting contours because we cannot separate them into two
+ * separate bitmaps. In case of self-intersecting contours it is
+ * necessary to remove the overlaps before generating the SDF.
+ *
+ */
+ static FT_Error
+ sdf_generate_with_overlaps( SDF_Params internal_params,
+ SDF_Shape* shape,
+ FT_UInt spread,
+ const FT_Bitmap* bitmap )
+ {
+ FT_Error error = FT_Err_Ok;
+
+ FT_Int num_contours; /* total number of contours */
+ FT_Int i, j; /* iterators */
+ FT_Int width, rows; /* width and rows of the bitmap */
+ FT_Bitmap* bitmaps; /* separate bitmaps for contours */
+
+ SDF_Contour* contour; /* temporary variable to iterate */
+ SDF_Contour* temp_contour; /* temporary contour */
+ SDF_Contour* head; /* head of the contour list */
+ SDF_Shape temp_shape; /* temporary shape */
+
+ FT_Memory memory; /* to allocate memory */
+ FT_SDFFormat* t; /* target bitmap buffer */
+ FT_Bool flip_sign; /* flip sign? */
+
+ /* orientation of all the separate contours */
+ SDF_Contour_Orientation* orientations;
+
+
+ bitmaps = NULL;
+ orientations = NULL;
+ head = NULL;
+
+ if ( !shape || !bitmap || !shape->memory )
+ return FT_THROW( Invalid_Argument );
+
+ /* Disable `flip_sign` to avoid extra complication */
+ /* during the combination phase. */
+ flip_sign = internal_params.flip_sign;
+ internal_params.flip_sign = 0;
+
+ contour = shape->contours;
+ memory = shape->memory;
+ temp_shape.memory = memory;
+ width = (FT_Int)bitmap->width;
+ rows = (FT_Int)bitmap->rows;
+ num_contours = 0;
+
+ /* find the number of contours in the shape */
+ while ( contour )
+ {
+ num_contours++;
+ contour = contour->next;
+ }
+
+ /* allocate the bitmaps to generate SDF for separate contours */
+ if ( FT_ALLOC( bitmaps,
+ (FT_UInt)num_contours * sizeof ( *bitmaps ) ) )
+ goto Exit;
+
+ /* allocate array to hold orientation for all contours */
+ if ( FT_ALLOC( orientations,
+ (FT_UInt)num_contours * sizeof ( *orientations ) ) )
+ goto Exit;
+
+ contour = shape->contours;
+
+ /* Iterate over all contours and generate SDF separately. */
+ for ( i = 0; i < num_contours; i++ )
+ {
+ /* initialize the corresponding bitmap */
+ FT_Bitmap_Init( &bitmaps[i] );
+
+ bitmaps[i].width = bitmap->width;
+ bitmaps[i].rows = bitmap->rows;
+ bitmaps[i].pitch = bitmap->pitch;
+ bitmaps[i].num_grays = bitmap->num_grays;
+ bitmaps[i].pixel_mode = bitmap->pixel_mode;
+
+ /* allocate memory for the buffer */
+ if ( FT_ALLOC( bitmaps[i].buffer,
+ bitmap->rows * (FT_UInt)bitmap->pitch ) )
+ goto Exit;
+
+ /* determine the orientation */
+ orientations[i] = get_contour_orientation( contour );
+
+ /* The `overload_sign` property is specific to */
+ /* `sdf_generate_bounding_box`. This basically */
+ /* overloads the default sign of the outside */
+ /* pixels, which is necessary for */
+ /* counter-clockwise contours. */
+ if ( orientations[i] == SDF_ORIENTATION_CCW &&
+ internal_params.orientation == FT_ORIENTATION_FILL_RIGHT )
+ internal_params.overload_sign = 1;
+ else if ( orientations[i] == SDF_ORIENTATION_CW &&
+ internal_params.orientation == FT_ORIENTATION_FILL_LEFT )
+ internal_params.overload_sign = 1;
+ else
+ internal_params.overload_sign = 0;
+
+ /* Make `contour->next` NULL so that there is */
+ /* one contour in the list. Also hold the next */
+ /* contour in a temporary variable so as to */
+ /* restore the original value. */
+ temp_contour = contour->next;
+ contour->next = NULL;
+
+ /* Use `temp_shape` to hold the new contour. */
+ /* Now, `temp_shape` has only one contour. */
+ temp_shape.contours = contour;
+
+ /* finally generate the SDF */
+ FT_CALL( sdf_generate_subdivision( internal_params,
+ &temp_shape,
+ spread,
+ &bitmaps[i] ) );
+
+ /* Restore the original `next` variable. */
+ contour->next = temp_contour;
+
+ /* Since `split_sdf_shape` deallocated the original */
+ /* contours list we need to assign the new value to */
+ /* the shape's contour. */
+ temp_shape.contours->next = head;
+ head = temp_shape.contours;
+
+ /* Simply flip the orientation in case of post-script fonts */
+ /* so as to avoid modificatons in the combining phase. */
+ if ( internal_params.orientation == FT_ORIENTATION_FILL_LEFT )
+ {
+ if ( orientations[i] == SDF_ORIENTATION_CW )
+ orientations[i] = SDF_ORIENTATION_CCW;
+ else if ( orientations[i] == SDF_ORIENTATION_CCW )
+ orientations[i] = SDF_ORIENTATION_CW;
+ }
+
+ contour = contour->next;
+ }
+
+ /* assign the new contour list to `shape->contours` */
+ shape->contours = head;
+
+ /* cast the output bitmap buffer */
+ t = (FT_SDFFormat*)bitmap->buffer;
+
+ /* Iterate over all pixels and combine all separate */
+ /* contours. These are the rules for combining: */
+ /* */
+ /* (1) For all clockwise contours, compute the largest */
+ /* value. Name this as `val_c`. */
+ /* (2) For all counter-clockwise contours, compute the */
+ /* smallest value. Name this as `val_ac`. */
+ /* (3) Now, finally use the smaller value of `val_c' */
+ /* and `val_ac'. */
+ for ( j = 0; j < rows; j++ )
+ {
+ for ( i = 0; i < width; i++ )
+ {
+ FT_Int id = j * width + i; /* index of current pixel */
+ FT_Int c; /* contour iterator */
+
+ FT_SDFFormat val_c = 0; /* max clockwise value */
+ FT_SDFFormat val_ac = UCHAR_MAX; /* min counter-clockwise val */
+
+
+ /* iterate through all the contours */
+ for ( c = 0; c < num_contours; c++ )
+ {
+ /* current contour value */
+ FT_SDFFormat temp = ( (FT_SDFFormat*)bitmaps[c].buffer )[id];
+
+
+ if ( orientations[c] == SDF_ORIENTATION_CW )
+ val_c = FT_MAX( val_c, temp ); /* clockwise */
+ else
+ val_ac = FT_MIN( val_ac, temp ); /* counter-clockwise */
+ }
+
+ /* Finally find the smaller of the two and assign to output. */
+ /* Also apply `flip_sign` if set. */
+ t[id] = FT_MIN( val_c, val_ac );
+
+ if ( flip_sign )
+ t[id] = invert_sign( t[id] );
+ }
+ }
+
+ Exit:
+ /* deallocate orientations array */
+ if ( orientations )
+ FT_FREE( orientations );
+
+ /* deallocate temporary bitmaps */
+ if ( bitmaps )
+ {
+ if ( num_contours == 0 )
+ error = FT_THROW( Raster_Corrupted );
+ else
+ {
+ for ( i = 0; i < num_contours; i++ )
+ FT_FREE( bitmaps[i].buffer );
+
+ FT_FREE( bitmaps );
+ }
+ }
+
+ /* restore the `flip_sign` property */
+ internal_params.flip_sign = flip_sign;
+
+ return error;
+ }
+
+
+ /**************************************************************************
+ *
+ * interface functions
+ *
+ */
+
+ static FT_Error
+ sdf_raster_new( FT_Memory memory,
+ SDF_PRaster* araster )
+ {
+ FT_Error error;
+ SDF_PRaster raster = NULL;
+
+
+ if ( !FT_NEW( raster ) )
+ raster->memory = memory;
+
+ *araster = raster;
+
+ return error;
+ }
+
+
+ static void
+ sdf_raster_reset( FT_Raster raster,
+ unsigned char* pool_base,
+ unsigned long pool_size )
+ {
+ FT_UNUSED( raster );
+ FT_UNUSED( pool_base );
+ FT_UNUSED( pool_size );
+ }
+
+
+ static FT_Error
+ sdf_raster_set_mode( FT_Raster raster,
+ unsigned long mode,
+ void* args )
+ {
+ FT_UNUSED( raster );
+ FT_UNUSED( mode );
+ FT_UNUSED( args );
+
+ return FT_Err_Ok;
+ }
+
+
+ static FT_Error
+ sdf_raster_render( FT_Raster raster,
+ const FT_Raster_Params* params )
+ {
+ FT_Error error = FT_Err_Ok;
+ SDF_TRaster* sdf_raster = (SDF_TRaster*)raster;
+ FT_Outline* outline = NULL;
+ const SDF_Raster_Params* sdf_params = (const SDF_Raster_Params*)params;
+
+ FT_Memory memory = NULL;
+ SDF_Shape* shape = NULL;
+ SDF_Params internal_params;
+
+
+ /* check for valid arguments */
+ if ( !sdf_raster || !sdf_params )
+ {
+ error = FT_THROW( Invalid_Argument );
+ goto Exit;
+ }
+
+ outline = (FT_Outline*)sdf_params->root.source;
+
+ /* check whether outline is valid */
+ if ( !outline )
+ {
+ error = FT_THROW( Invalid_Outline );
+ goto Exit;
+ }
+
+ /* if the outline is empty, return */
+ if ( outline->n_points <= 0 || outline->n_contours <= 0 )
+ goto Exit;
+
+ /* check whether the outline has valid fields */
+ if ( !outline->contours || !outline->points )
+ {
+ error = FT_THROW( Invalid_Outline );
+ goto Exit;
+ }
+
+ /* check whether spread is set properly */
+ if ( sdf_params->spread > MAX_SPREAD ||
+ sdf_params->spread < MIN_SPREAD )
+ {
+ FT_TRACE0(( "sdf_raster_render:"
+ " The `spread' field of `SDF_Raster_Params' is invalid,\n" ));
+ FT_TRACE0(( " "
+ " the value of this field must be within [%d, %d].\n",
+ MIN_SPREAD, MAX_SPREAD ));
+ FT_TRACE0(( " "
+ " Also, you must pass `SDF_Raster_Params' instead of\n" ));
+ FT_TRACE0(( " "
+ " the default `FT_Raster_Params' while calling\n" ));
+ FT_TRACE0(( " "
+ " this function and set the fields properly.\n" ));
+
+ error = FT_THROW( Invalid_Argument );
+ goto Exit;
+ }
+
+ memory = sdf_raster->memory;
+ if ( !memory )
+ {
+ FT_TRACE0(( "sdf_raster_render:"
+ " Raster not setup properly,\n" ));
+ FT_TRACE0(( " "
+ " unable to find memory handle.\n" ));
+
+ error = FT_THROW( Invalid_Handle );
+ goto Exit;
+ }
+
+ /* set up the parameters */
+ internal_params.orientation = FT_Outline_Get_Orientation( outline );
+ internal_params.flip_sign = sdf_params->flip_sign;
+ internal_params.flip_y = sdf_params->flip_y;
+ internal_params.overload_sign = 0;
+
+ FT_CALL( sdf_shape_new( memory, &shape ) );
+
+ FT_CALL( sdf_outline_decompose( outline, shape ) );
+
+ if ( sdf_params->overlaps )
+ FT_CALL( sdf_generate_with_overlaps( internal_params,
+ shape, sdf_params->spread,
+ sdf_params->root.target ) );
+ else
+ FT_CALL( sdf_generate_subdivision( internal_params,
+ shape, sdf_params->spread,
+ sdf_params->root.target ) );
+
+ if ( shape )
+ sdf_shape_done( &shape );
+
+ Exit:
+ return error;
+ }
+
+
+ static void
+ sdf_raster_done( FT_Raster raster )
+ {
+ FT_Memory memory = (FT_Memory)((SDF_TRaster*)raster)->memory;
+
+
+ FT_FREE( raster );
+ }
+
+
+ FT_DEFINE_RASTER_FUNCS(
+ ft_sdf_raster,
+
+ FT_GLYPH_FORMAT_OUTLINE,
+
+ (FT_Raster_New_Func) sdf_raster_new, /* raster_new */
+ (FT_Raster_Reset_Func) sdf_raster_reset, /* raster_reset */
+ (FT_Raster_Set_Mode_Func)sdf_raster_set_mode, /* raster_set_mode */
+ (FT_Raster_Render_Func) sdf_raster_render, /* raster_render */
+ (FT_Raster_Done_Func) sdf_raster_done /* raster_done */
+ )
+
+
+/* END */
diff --git a/freetype/src/sdf/ftsdf.h b/freetype/src/sdf/ftsdf.h
new file mode 100644
index 00000000..187b418a
--- /dev/null
+++ b/freetype/src/sdf/ftsdf.h
@@ -0,0 +1,97 @@
+/****************************************************************************
+ *
+ * ftsdf.h
+ *
+ * Signed Distance Field support (specification).
+ *
+ * Copyright (C) 2020-2021 by
+ * David Turner, Robert Wilhelm, and Werner Lemberg.
+ *
+ * Written by Anuj Verma.
+ *
+ * This file is part of the FreeType project, and may only be used,
+ * modified, and distributed under the terms of the FreeType project
+ * license, LICENSE.TXT. By continuing to use, modify, or distribute
+ * this file you indicate that you have read the license and
+ * understand and accept it fully.
+ *
+ */
+
+
+#ifndef FTSDF_H_
+#define FTSDF_H_
+
+#include <ft2build.h>
+#include FT_CONFIG_CONFIG_H
+#include <freetype/ftimage.h>
+
+/* common properties and function */
+#include "ftsdfcommon.h"
+
+FT_BEGIN_HEADER
+
+ /**************************************************************************
+ *
+ * @struct:
+ * SDF_Raster_Params
+ *
+ * @description:
+ * This struct must be passed to the raster render function
+ * @FT_Raster_RenderFunc instead of @FT_Raster_Params because the
+ * rasterizer requires some additional information to render properly.
+ *
+ * @fields:
+ * root ::
+ * The native raster parameters structure.
+ *
+ * spread ::
+ * This is an essential parameter/property required by the renderer.
+ * `spread` defines the maximum unsigned value that is present in the
+ * final SDF output. For the default value check file
+ * `ftsdfcommon.h`.
+ *
+ * flip_sign ::
+ * By default positive values indicate positions inside of contours,
+ * i.e., filled by a contour. If this property is true then that
+ * output will be the opposite of the default, i.e., negative values
+ * indicate positions inside of contours.
+ *
+ * flip_y ::
+ * Setting this parameter to true maked the output image flipped
+ * along the y-axis.
+ *
+ * overlaps ::
+ * Set this to true to generate SDF for glyphs having overlapping
+ * contours. The overlapping support is limited to glyphs that do not
+ * have self-intersecting contours. Also, removing overlaps require a
+ * considerable amount of extra memory; additionally, it will not work
+ * if generating SDF from bitmap.
+ *
+ * @note:
+ * All properties are valid for both the 'sdf' and 'bsdf' renderers; the
+ * exception is `overlaps`, which gets ignored by the 'bsdf' renderer.
+ *
+ */
+ typedef struct SDF_Raster_Params_
+ {
+ FT_Raster_Params root;
+ FT_UInt spread;
+ FT_Bool flip_sign;
+ FT_Bool flip_y;
+ FT_Bool overlaps;
+
+ } SDF_Raster_Params;
+
+
+ /* rasterizer to convert outline to SDF */
+ FT_EXPORT_VAR( const FT_Raster_Funcs ) ft_sdf_raster;
+
+ /* rasterizer to convert bitmap to SDF */
+ FT_EXPORT_VAR( const FT_Raster_Funcs ) ft_bitmap_sdf_raster;
+
+FT_END_HEADER
+
+#endif /* FTSDF_H_ */
+
+
+/* END */
diff --git a/freetype/src/sdf/ftsdfcommon.c b/freetype/src/sdf/ftsdfcommon.c
new file mode 100644
index 00000000..91aa521b
--- /dev/null
+++ b/freetype/src/sdf/ftsdfcommon.c
@@ -0,0 +1,147 @@
+/****************************************************************************
+ *
+ * ftsdfcommon.c
+ *
+ * Auxiliary data for Signed Distance Field support (body).
+ *
+ * Copyright (C) 2020-2021 by
+ * David Turner, Robert Wilhelm, and Werner Lemberg.
+ *
+ * Written by Anuj Verma.
+ *
+ * This file is part of the FreeType project, and may only be used,
+ * modified, and distributed under the terms of the FreeType project
+ * license, LICENSE.TXT. By continuing to use, modify, or distribute
+ * this file you indicate that you have read the license and
+ * understand and accept it fully.
+ *
+ */
+
+
+#include "ftsdf.h"
+#include "ftsdfcommon.h"
+
+
+ /**************************************************************************
+ *
+ * common functions
+ *
+ */
+
+ /*
+ * Original algorithm:
+ *
+ * https://github.com/chmike/fpsqrt
+ *
+ * Use this to compute the square root of a 16.16 fixed point number.
+ */
+ FT_LOCAL_DEF( FT_16D16 )
+ square_root( FT_16D16 val )
+ {
+ FT_ULong t, q, b, r;
+
+
+ r = (FT_ULong)val;
+ b = 0x40000000L;
+ q = 0;
+
+ while ( b > 0x40L )
+ {
+ t = q + b;
+
+ if ( r >= t )
+ {
+ r -= t;
+ q = t + b;
+ }
+
+ r <<= 1;
+ b >>= 1;
+ }
+
+ q >>= 8;
+
+ return (FT_16D16)q;
+ }
+
+
+ /**************************************************************************
+ *
+ * format and sign manipulating functions
+ *
+ */
+
+ /*
+ * Convert 16.16 fixed point values to the desired output format.
+ * In this case we reduce 16.16 fixed point values to normalized
+ * 8-bit values.
+ *
+ * The `max_value` in the parameter is the maximum value in the
+ * distance field map and is equal to the spread. We normalize
+ * the distances using this value instead of computing the maximum
+ * value for the entire bitmap.
+ *
+ * You can use this function to map the 16.16 signed values to any
+ * format required. Do note that the output buffer is 8-bit, so only
+ * use an 8-bit format for `FT_SDFFormat`, or increase the buffer size in
+ * `ftsdfrend.c`.
+ */
+ FT_LOCAL_DEF( FT_SDFFormat )
+ map_fixed_to_sdf( FT_16D16 dist,
+ FT_16D16 max_value )
+ {
+ FT_SDFFormat out;
+ FT_16D16 udist;
+
+
+ /* normalize the distance values */
+ dist = FT_DivFix( dist, max_value );
+
+ udist = dist < 0 ? -dist : dist;
+
+ /* Reduce the distance values to 8 bits. */
+ /* */
+ /* Since +1/-1 in 16.16 takes the 16th bit, we right-shift */
+ /* the number by 9 to make it fit into the 7-bit range. */
+ /* */
+ /* One bit is reserved for the sign. */
+ udist >>= 9;
+
+ /* Since `char` can only store a maximum positive value */
+ /* of 127 we need to make sure it does not wrap around and */
+ /* give a negative value. */
+ if ( dist > 0 && udist > 127 )
+ udist = 127;
+ if ( dist < 0 && udist > 128 )
+ udist = 128;
+
+ /* Output the data; negative values are from [0, 127] and positive */
+ /* from [128, 255]. One important thing is that negative values */
+ /* are inverted here, that means [0, 128] maps to [-128, 0] linearly. */
+ /* More on that in `freetype.h` near the documentation of */
+ /* `FT_RENDER_MODE_SDF`. */
+ out = dist < 0 ? 128 - (FT_SDFFormat)udist
+ : (FT_SDFFormat)udist + 128;
+
+ return out;
+ }
+
+
+ /*
+ * Invert the signed distance packed into the corresponding format.
+ * So if the values are negative they will become positive in the
+ * chosen format.
+ *
+ * [Note]: This function should only be used after converting the
+ * 16.16 signed distance values to `FT_SDFFormat`. If that
+ * conversion has not been done, then simply invert the sign
+ * and use the above function to pack the values.
+ */
+ FT_LOCAL_DEF( FT_SDFFormat )
+ invert_sign( FT_SDFFormat dist )
+ {
+ return 255 - dist;
+ }
+
+
+/* END */
diff --git a/freetype/src/sdf/ftsdfcommon.h b/freetype/src/sdf/ftsdfcommon.h
new file mode 100644
index 00000000..44f6bba5
--- /dev/null
+++ b/freetype/src/sdf/ftsdfcommon.h
@@ -0,0 +1,139 @@
+/****************************************************************************
+ *
+ * ftsdfcommon.h
+ *
+ * Auxiliary data for Signed Distance Field support (specification).
+ *
+ * Copyright (C) 2020-2021 by
+ * David Turner, Robert Wilhelm, and Werner Lemberg.
+ *
+ * Written by Anuj Verma.
+ *
+ * This file is part of the FreeType project, and may only be used,
+ * modified, and distributed under the terms of the FreeType project
+ * license, LICENSE.TXT. By continuing to use, modify, or distribute
+ * this file you indicate that you have read the license and
+ * understand and accept it fully.
+ *
+ */
+
+
+ /****************************************************
+ *
+ * This file contains common functions and properties
+ * for both the 'sdf' and 'bsdf' renderers.
+ *
+ */
+
+#ifndef FTSDFCOMMON_H_
+#define FTSDFCOMMON_H_
+
+#include <ft2build.h>
+#include FT_CONFIG_CONFIG_H
+#include <freetype/internal/ftobjs.h>
+
+
+FT_BEGIN_HEADER
+
+
+ /**************************************************************************
+ *
+ * default values (cannot be set individually for each renderer)
+ *
+ */
+
+ /* default spread value */
+#define DEFAULT_SPREAD 8
+ /* minimum spread supported by the renderer */
+#define MIN_SPREAD 2
+ /* maximum spread supported by the renderer */
+#define MAX_SPREAD 32
+
+
+ /**************************************************************************
+ *
+ * common definitions (cannot be set individually for each renderer)
+ *
+ */
+
+ /* If this macro is set to 1 the rasterizer uses squared distances for */
+ /* computation. It can greatly improve the performance but there is a */
+ /* chance of overflow and artifacts. You can safely use it up to a */
+ /* pixel size of 128. */
+#ifndef USE_SQUARED_DISTANCES
+#define USE_SQUARED_DISTANCES 0
+#endif
+
+
+ /**************************************************************************
+ *
+ * common macros
+ *
+ */
+
+ /* convert int to 26.6 fixed-point */
+#define FT_INT_26D6( x ) ( x * 64 )
+ /* convert int to 16.16 fixed-point */
+#define FT_INT_16D16( x ) ( x * 65536 )
+ /* convert 26.6 to 16.16 fixed-point */
+#define FT_26D6_16D16( x ) ( x * 1024 )
+
+
+ /* Convenience macro to call a function; it */
+ /* jumps to label `Exit` if an error occurs. */
+#define FT_CALL( x ) do \
+ { \
+ error = ( x ); \
+ if ( error != FT_Err_Ok ) \
+ goto Exit; \
+ } while ( 0 )
+
+
+ /*
+ * The macro `VECTOR_LENGTH_16D16` computes either squared distances or
+ * actual distances, depending on the value of `USE_SQUARED_DISTANCES`.
+ *
+ * By using squared distances the performance can be greatly improved but
+ * there is a risk of overflow.
+ */
+#if USE_SQUARED_DISTANCES
+#define VECTOR_LENGTH_16D16( v ) ( FT_MulFix( v.x, v.x ) + \
+ FT_MulFix( v.y, v.y ) )
+#else
+#define VECTOR_LENGTH_16D16( v ) FT_Vector_Length( &v )
+#endif
+
+
+ /**************************************************************************
+ *
+ * common typedefs
+ *
+ */
+
+ typedef FT_Vector FT_26D6_Vec; /* with 26.6 fixed-point components */
+ typedef FT_Vector FT_16D16_Vec; /* with 16.16 fixed-point components */
+
+ typedef FT_Fixed FT_16D16; /* 16.16 fixed-point representation */
+ typedef FT_Fixed FT_26D6; /* 26.6 fixed-point representation */
+ typedef FT_Byte FT_SDFFormat; /* format to represent SDF data */
+
+ typedef FT_BBox FT_CBox; /* control box of a curve */
+
+
+ FT_LOCAL( FT_16D16 )
+ square_root( FT_16D16 val );
+
+ FT_LOCAL( FT_SDFFormat )
+ map_fixed_to_sdf( FT_16D16 dist,
+ FT_16D16 max_value );
+
+ FT_LOCAL( FT_SDFFormat )
+ invert_sign( FT_SDFFormat dist );
+
+
+FT_END_HEADER
+
+#endif /* FTSDFCOMMON_H_ */
+
+
+/* END */
diff --git a/freetype/src/sdf/ftsdferrs.h b/freetype/src/sdf/ftsdferrs.h
new file mode 100644
index 00000000..dbb113d5
--- /dev/null
+++ b/freetype/src/sdf/ftsdferrs.h
@@ -0,0 +1,37 @@
+/****************************************************************************
+ *
+ * ftsdferrs.h
+ *
+ * Signed Distance Field error codes (specification only).
+ *
+ * Copyright (C) 2020-2021 by
+ * David Turner, Robert Wilhelm, and Werner Lemberg.
+ *
+ * Written by Anuj Verma.
+ *
+ * This file is part of the FreeType project, and may only be used,
+ * modified, and distributed under the terms of the FreeType project
+ * license, LICENSE.TXT. By continuing to use, modify, or distribute
+ * this file you indicate that you have read the license and
+ * understand and accept it fully.
+ *
+ */
+
+
+#ifndef FTSDFERRS_H_
+#define FTSDFERRS_H_
+
+#include <freetype/ftmoderr.h>
+
+#undef FTERRORS_H_
+
+#undef FT_ERR_PREFIX
+#define FT_ERR_PREFIX Sdf_Err_
+#define FT_ERR_BASE FT_Mod_Err_Sdf
+
+#include <freetype/fterrors.h>
+
+#endif /* FTSDFERRS_H_ */
+
+
+/* END */
diff --git a/freetype/src/sdf/ftsdfrend.c b/freetype/src/sdf/ftsdfrend.c
new file mode 100644
index 00000000..30f2e62a
--- /dev/null
+++ b/freetype/src/sdf/ftsdfrend.c
@@ -0,0 +1,614 @@
+/****************************************************************************
+ *
+ * ftsdfrend.c
+ *
+ * Signed Distance Field renderer interface (body).
+ *
+ * Copyright (C) 2020-2021 by
+ * David Turner, Robert Wilhelm, and Werner Lemberg.
+ *
+ * Written by Anuj Verma.
+ *
+ * This file is part of the FreeType project, and may only be used,
+ * modified, and distributed under the terms of the FreeType project
+ * license, LICENSE.TXT. By continuing to use, modify, or distribute
+ * this file you indicate that you have read the license and
+ * understand and accept it fully.
+ *
+ */
+
+
+#include <freetype/internal/ftdebug.h>
+#include <freetype/internal/ftobjs.h>
+#include <freetype/internal/services/svprop.h>
+#include <freetype/ftoutln.h>
+#include <freetype/ftbitmap.h>
+#include "ftsdfrend.h"
+#include "ftsdf.h"
+
+#include "ftsdferrs.h"
+
+
+ /**************************************************************************
+ *
+ * The macro FT_COMPONENT is used in trace mode. It is an implicit
+ * parameter of the FT_TRACE() and FT_ERROR() macros, used to print/log
+ * messages during execution.
+ */
+#undef FT_COMPONENT
+#define FT_COMPONENT sdf
+
+
+ /**************************************************************************
+ *
+ * macros and default property values
+ *
+ */
+#define SDF_RENDERER( rend ) ( (SDF_Renderer)rend )
+
+
+ /**************************************************************************
+ *
+ * for setting properties
+ *
+ */
+
+ /* property setter function */
+ static FT_Error
+ sdf_property_set( FT_Module module,
+ const char* property_name,
+ const void* value,
+ FT_Bool value_is_string )
+ {
+ FT_Error error = FT_Err_Ok;
+ SDF_Renderer render = SDF_RENDERER( FT_RENDERER( module ) );
+
+ FT_UNUSED( value_is_string );
+
+
+ if ( ft_strcmp( property_name, "spread" ) == 0 )
+ {
+ FT_Int val = *(const FT_Int*)value;
+
+
+ if ( val > MAX_SPREAD || val < MIN_SPREAD )
+ {
+ FT_TRACE0(( "[sdf] sdf_property_set:"
+ " the `spread' property can have a value\n" ));
+ FT_TRACE0(( " "
+ " within range [%d, %d] (value provided: %d)\n",
+ MIN_SPREAD, MAX_SPREAD, val ));
+
+ error = FT_THROW( Invalid_Argument );
+ goto Exit;
+ }
+
+ render->spread = (FT_UInt)val;
+ FT_TRACE7(( "[sdf] sdf_property_set:"
+ " updated property `spread' to %d\n", val ));
+ }
+
+ else if ( ft_strcmp( property_name, "flip_sign" ) == 0 )
+ {
+ FT_Int val = *(const FT_Int*)value;
+
+
+ render->flip_sign = val ? 1 : 0;
+ FT_TRACE7(( "[sdf] sdf_property_set:"
+ " updated property `flip_sign' to %d\n", val ));
+ }
+
+ else if ( ft_strcmp( property_name, "flip_y" ) == 0 )
+ {
+ FT_Int val = *(const FT_Int*)value;
+
+
+ render->flip_y = val ? 1 : 0;
+ FT_TRACE7(( "[sdf] sdf_property_set:"
+ " updated property `flip_y' to %d\n", val ));
+ }
+
+ else if ( ft_strcmp( property_name, "overlaps" ) == 0 )
+ {
+ FT_Bool val = *(const FT_Bool*)value;
+
+
+ render->overlaps = val;
+ FT_TRACE7(( "[sdf] sdf_property_set:"
+ " updated property `overlaps' to %d\n", val ));
+ }
+
+ else
+ {
+ FT_TRACE0(( "[sdf] sdf_property_set:"
+ " missing property `%s'\n", property_name ));
+ error = FT_THROW( Missing_Property );
+ }
+
+ Exit:
+ return error;
+ }
+
+
+ /* property getter function */
+ static FT_Error
+ sdf_property_get( FT_Module module,
+ const char* property_name,
+ void* value )
+ {
+ FT_Error error = FT_Err_Ok;
+ SDF_Renderer render = SDF_RENDERER( FT_RENDERER( module ) );
+
+
+ if ( ft_strcmp( property_name, "spread" ) == 0 )
+ {
+ FT_UInt* val = (FT_UInt*)value;
+
+
+ *val = render->spread;
+ }
+
+ else if ( ft_strcmp( property_name, "flip_sign" ) == 0 )
+ {
+ FT_Int* val = (FT_Int*)value;
+
+
+ *val = render->flip_sign;
+ }
+
+ else if ( ft_strcmp( property_name, "flip_y" ) == 0 )
+ {
+ FT_Int* val = (FT_Int*)value;
+
+
+ *val = render->flip_y;
+ }
+
+ else if ( ft_strcmp( property_name, "overlaps" ) == 0 )
+ {
+ FT_Int* val = (FT_Int*)value;
+
+
+ *val = render->overlaps;
+ }
+
+ else
+ {
+ FT_TRACE0(( "[sdf] sdf_property_get:"
+ " missing property `%s'\n", property_name ));
+ error = FT_THROW( Missing_Property );
+ }
+
+ return error;
+ }
+
+
+ FT_DEFINE_SERVICE_PROPERTIESREC(
+ sdf_service_properties,
+
+ (FT_Properties_SetFunc)sdf_property_set, /* set_property */
+ (FT_Properties_GetFunc)sdf_property_get ) /* get_property */
+
+
+ FT_DEFINE_SERVICEDESCREC1(
+ sdf_services,
+
+ FT_SERVICE_ID_PROPERTIES, &sdf_service_properties )
+
+
+ static FT_Module_Interface
+ ft_sdf_requester( FT_Renderer render,
+ const char* module_interface )
+ {
+ FT_UNUSED( render );
+
+ return ft_service_list_lookup( sdf_services, module_interface );
+ }
+
+
+ /*************************************************************************/
+ /*************************************************************************/
+ /** **/
+ /** OUTLINE TO SDF CONVERTER **/
+ /** **/
+ /*************************************************************************/
+ /*************************************************************************/
+
+ /**************************************************************************
+ *
+ * interface functions
+ *
+ */
+
+ static FT_Error
+ ft_sdf_init( FT_Renderer render )
+ {
+ SDF_Renderer sdf_render = SDF_RENDERER( render );
+
+
+ sdf_render->spread = DEFAULT_SPREAD;
+ sdf_render->flip_sign = 0;
+ sdf_render->flip_y = 0;
+ sdf_render->overlaps = 0;
+
+ return FT_Err_Ok;
+ }
+
+
+ static void
+ ft_sdf_done( FT_Renderer render )
+ {
+ FT_UNUSED( render );
+ }
+
+
+ /* generate signed distance field from a glyph's slot image */
+ static FT_Error
+ ft_sdf_render( FT_Renderer module,
+ FT_GlyphSlot slot,
+ FT_Render_Mode mode,
+ const FT_Vector* origin )
+ {
+ FT_Error error = FT_Err_Ok;
+ FT_Outline* outline = &slot->outline;
+ FT_Bitmap* bitmap = &slot->bitmap;
+ FT_Memory memory = NULL;
+ FT_Renderer render = NULL;
+
+ FT_Pos x_shift = 0;
+ FT_Pos y_shift = 0;
+
+ FT_Pos x_pad = 0;
+ FT_Pos y_pad = 0;
+
+ SDF_Raster_Params params;
+ SDF_Renderer sdf_module = SDF_RENDERER( module );
+
+
+ render = &sdf_module->root;
+ memory = render->root.memory;
+
+ /* check whether slot format is correct before rendering */
+ if ( slot->format != render->glyph_format )
+ {
+ error = FT_THROW( Invalid_Glyph_Format );
+ goto Exit;
+ }
+
+ /* check whether render mode is correct */
+ if ( mode != FT_RENDER_MODE_SDF )
+ {
+ error = FT_THROW( Cannot_Render_Glyph );
+ goto Exit;
+ }
+
+ /* deallocate the previously allocated bitmap */
+ if ( slot->internal->flags & FT_GLYPH_OWN_BITMAP )
+ {
+ FT_FREE( bitmap->buffer );
+ slot->internal->flags &= ~FT_GLYPH_OWN_BITMAP;
+ }
+
+ /* preset the bitmap using the glyph's outline; */
+ /* the sdf bitmap is similar to an anti-aliased bitmap */
+ /* with a slightly bigger size and different pixel mode */
+ if ( ft_glyphslot_preset_bitmap( slot, FT_RENDER_MODE_NORMAL, origin ) )
+ {
+ error = FT_THROW( Raster_Overflow );
+ goto Exit;
+ }
+
+ /* the rows and pitch must be valid after presetting the */
+ /* bitmap using outline */
+ if ( !bitmap->rows || !bitmap->pitch )
+ {
+ FT_ERROR(( "ft_sdf_render: failed to preset bitmap\n" ));
+
+ error = FT_THROW( Cannot_Render_Glyph );
+ goto Exit;
+ }
+
+ /* the padding will simply be equal to the `spread' */
+ x_pad = sdf_module->spread;
+ y_pad = sdf_module->spread;
+
+ /* apply the padding; will be in all the directions */
+ bitmap->rows += y_pad * 2;
+ bitmap->width += x_pad * 2;
+
+ /* ignore the pitch, pixel mode and set custom */
+ bitmap->pixel_mode = FT_PIXEL_MODE_GRAY;
+ bitmap->pitch = (int)( bitmap->width );
+ bitmap->num_grays = 255;
+
+ /* allocate new buffer */
+ if ( FT_ALLOC_MULT( bitmap->buffer, bitmap->rows, bitmap->pitch ) )
+ goto Exit;
+
+ slot->internal->flags |= FT_GLYPH_OWN_BITMAP;
+
+ slot->bitmap_top += y_pad;
+ slot->bitmap_left -= x_pad;
+
+ x_shift = 64 * -slot->bitmap_left;
+ y_shift = 64 * -slot->bitmap_top;
+ y_shift += 64 * (FT_Int)bitmap->rows;
+
+ if ( origin )
+ {
+ x_shift += origin->x;
+ y_shift += origin->y;
+ }
+
+ /* translate outline to render it into the bitmap */
+ if ( x_shift || y_shift )
+ FT_Outline_Translate( outline, x_shift, y_shift );
+
+ /* set up parameters */
+ params.root.target = bitmap;
+ params.root.source = outline;
+ params.root.flags = FT_RASTER_FLAG_SDF;
+ params.spread = sdf_module->spread;
+ params.flip_sign = sdf_module->flip_sign;
+ params.flip_y = sdf_module->flip_y;
+ params.overlaps = sdf_module->overlaps;
+
+ /* render the outline */
+ error = render->raster_render( render->raster,
+ (const FT_Raster_Params*)&params );
+
+ /* transform the outline back to the original state */
+ if ( x_shift || y_shift )
+ FT_Outline_Translate( outline, -x_shift, -y_shift );
+
+ Exit:
+ if ( !error )
+ {
+ /* the glyph is successfully rendered to a bitmap */
+ slot->format = FT_GLYPH_FORMAT_BITMAP;
+ }
+ else if ( slot->internal->flags & FT_GLYPH_OWN_BITMAP )
+ {
+ FT_FREE( bitmap->buffer );
+ slot->internal->flags &= ~FT_GLYPH_OWN_BITMAP;
+ }
+
+ return error;
+ }
+
+
+ /* transform the glyph using matrix and/or delta */
+ static FT_Error
+ ft_sdf_transform( FT_Renderer render,
+ FT_GlyphSlot slot,
+ const FT_Matrix* matrix,
+ const FT_Vector* delta )
+ {
+ FT_Error error = FT_Err_Ok;
+
+
+ if ( slot->format != render->glyph_format )
+ {
+ error = FT_THROW( Invalid_Argument );
+ goto Exit;
+ }
+
+ if ( matrix )
+ FT_Outline_Transform( &slot->outline, matrix );
+
+ if ( delta )
+ FT_Outline_Translate( &slot->outline, delta->x, delta->y );
+
+ Exit:
+ return error;
+ }
+
+
+ /* return the control box of a glyph's outline */
+ static void
+ ft_sdf_get_cbox( FT_Renderer render,
+ FT_GlyphSlot slot,
+ FT_BBox* cbox )
+ {
+ FT_ZERO( cbox );
+
+ if ( slot->format == render->glyph_format )
+ FT_Outline_Get_CBox( &slot->outline, cbox );
+ }
+
+
+ /* set render specific modes or attributes */
+ static FT_Error
+ ft_sdf_set_mode( FT_Renderer render,
+ FT_ULong mode_tag,
+ FT_Pointer data )
+ {
+ /* pass it to the rasterizer */
+ return render->clazz->raster_class->raster_set_mode( render->raster,
+ mode_tag,
+ data );
+ }
+
+
+ FT_DEFINE_RENDERER(
+ ft_sdf_renderer_class,
+
+ FT_MODULE_RENDERER,
+ sizeof ( SDF_Renderer_Module ),
+
+ "sdf",
+ 0x10000L,
+ 0x20000L,
+
+ NULL,
+
+ (FT_Module_Constructor)ft_sdf_init,
+ (FT_Module_Destructor) ft_sdf_done,
+ (FT_Module_Requester) ft_sdf_requester,
+
+ FT_GLYPH_FORMAT_OUTLINE,
+
+ (FT_Renderer_RenderFunc) ft_sdf_render, /* render_glyph */
+ (FT_Renderer_TransformFunc)ft_sdf_transform, /* transform_glyph */
+ (FT_Renderer_GetCBoxFunc) ft_sdf_get_cbox, /* get_glyph_cbox */
+ (FT_Renderer_SetModeFunc) ft_sdf_set_mode, /* set_mode */
+
+ (FT_Raster_Funcs*)&ft_sdf_raster /* raster_class */
+ )
+
+
+ /*************************************************************************/
+ /*************************************************************************/
+ /** **/
+ /** BITMAP TO SDF CONVERTER **/
+ /** **/
+ /*************************************************************************/
+ /*************************************************************************/
+
+ /* generate signed distance field from glyph's bitmap */
+ static FT_Error
+ ft_bsdf_render( FT_Renderer module,
+ FT_GlyphSlot slot,
+ FT_Render_Mode mode,
+ const FT_Vector* origin )
+ {
+ FT_Error error = FT_Err_Ok;
+ FT_Memory memory = NULL;
+
+ FT_Bitmap* bitmap = &slot->bitmap;
+ FT_Renderer render = NULL;
+ FT_Bitmap target;
+
+ FT_Pos x_pad = 0;
+ FT_Pos y_pad = 0;
+
+ SDF_Raster_Params params;
+ SDF_Renderer sdf_module = SDF_RENDERER( module );
+
+
+ /* initialize the bitmap in case any error occurs */
+ FT_Bitmap_Init( &target );
+
+ render = &sdf_module->root;
+ memory = render->root.memory;
+
+ /* check whether slot format is correct before rendering */
+ if ( slot->format != render->glyph_format )
+ {
+ error = FT_THROW( Invalid_Glyph_Format );
+ goto Exit;
+ }
+
+ /* check whether render mode is correct */
+ if ( mode != FT_RENDER_MODE_SDF )
+ {
+ error = FT_THROW( Cannot_Render_Glyph );
+ goto Exit;
+ }
+
+ if ( origin )
+ {
+ FT_ERROR(( "ft_bsdf_render: can't translate the bitmap\n" ));
+
+ error = FT_THROW( Unimplemented_Feature );
+ goto Exit;
+ }
+
+ /* Do not generate SDF if the bitmap is not owned by the */
+ /* glyph: it might be that the source buffer is already freed. */
+ if ( !( slot->internal->flags & FT_GLYPH_OWN_BITMAP ) )
+ {
+ FT_ERROR(( "ft_bsdf_render: can't generate SDF from"
+ " unowned source bitmap\n" ));
+
+ error = FT_THROW( Invalid_Argument );
+ goto Exit;
+ }
+
+ if ( !bitmap->rows || !bitmap->pitch )
+ {
+ FT_ERROR(( "ft_bsdf_render: invalid bitmap size\n" ));
+
+ error = FT_THROW( Invalid_Argument );
+ goto Exit;
+ }
+
+ FT_Bitmap_New( &target );
+
+ /* padding will simply be equal to `spread` */
+ x_pad = sdf_module->spread;
+ y_pad = sdf_module->spread;
+
+ /* apply padding, which extends to all directions */
+ target.rows = bitmap->rows + y_pad * 2;
+ target.width = bitmap->width + x_pad * 2;
+
+ /* set up the target bitmap */
+ target.pixel_mode = FT_PIXEL_MODE_GRAY;
+ target.pitch = (int)( target.width );
+ target.num_grays = 255;
+
+ if ( FT_ALLOC_MULT( target.buffer, target.rows, target.pitch ) )
+ goto Exit;
+
+ /* set up parameters */
+ params.root.target = &target;
+ params.root.source = bitmap;
+ params.root.flags = FT_RASTER_FLAG_SDF;
+ params.spread = sdf_module->spread;
+ params.flip_sign = sdf_module->flip_sign;
+ params.flip_y = sdf_module->flip_y;
+
+ error = render->raster_render( render->raster,
+ (const FT_Raster_Params*)&params );
+
+ Exit:
+ if ( !error )
+ {
+ /* the glyph is successfully converted to a SDF */
+ if ( slot->internal->flags & FT_GLYPH_OWN_BITMAP )
+ {
+ FT_FREE( bitmap->buffer );
+ slot->internal->flags &= ~FT_GLYPH_OWN_BITMAP;
+ }
+
+ slot->bitmap = target;
+ slot->bitmap_top += y_pad;
+ slot->bitmap_left -= x_pad;
+ slot->internal->flags |= FT_GLYPH_OWN_BITMAP;
+ }
+ else if ( target.buffer )
+ FT_FREE( target.buffer );
+
+ return error;
+ }
+
+
+ FT_DEFINE_RENDERER(
+ ft_bitmap_sdf_renderer_class,
+
+ FT_MODULE_RENDERER,
+ sizeof ( SDF_Renderer_Module ),
+
+ "bsdf",
+ 0x10000L,
+ 0x20000L,
+
+ NULL,
+
+ (FT_Module_Constructor)ft_sdf_init,
+ (FT_Module_Destructor) ft_sdf_done,
+ (FT_Module_Requester) ft_sdf_requester,
+
+ FT_GLYPH_FORMAT_BITMAP,
+
+ (FT_Renderer_RenderFunc) ft_bsdf_render, /* render_glyph */
+ (FT_Renderer_TransformFunc)ft_sdf_transform, /* transform_glyph */
+ (FT_Renderer_GetCBoxFunc) ft_sdf_get_cbox, /* get_glyph_cbox */
+ (FT_Renderer_SetModeFunc) ft_sdf_set_mode, /* set_mode */
+
+ (FT_Raster_Funcs*)&ft_bitmap_sdf_raster /* raster_class */
+ )
+
+
+/* END */
diff --git a/freetype/src/sdf/ftsdfrend.h b/freetype/src/sdf/ftsdfrend.h
new file mode 100644
index 00000000..bc88707e
--- /dev/null
+++ b/freetype/src/sdf/ftsdfrend.h
@@ -0,0 +1,118 @@
+/****************************************************************************
+ *
+ * ftsdfrend.h
+ *
+ * Signed Distance Field renderer interface (specification).
+ *
+ * Copyright (C) 2020-2021 by
+ * David Turner, Robert Wilhelm, and Werner Lemberg.
+ *
+ * Written by Anuj Verma.
+ *
+ * This file is part of the FreeType project, and may only be used,
+ * modified, and distributed under the terms of the FreeType project
+ * license, LICENSE.TXT. By continuing to use, modify, or distribute
+ * this file you indicate that you have read the license and
+ * understand and accept it fully.
+ *
+ */
+
+
+#ifndef FTSDFREND_H_
+#define FTSDFREND_H_
+
+#include <freetype/ftrender.h>
+#include <freetype/ftmodapi.h>
+#include <freetype/internal/ftobjs.h>
+
+FT_BEGIN_HEADER
+
+
+ /**************************************************************************
+ *
+ * @struct:
+ * SDF_Renderer_Module
+ *
+ * @description:
+ * This struct extends the native renderer struct `FT_RendererRec`. It
+ * is basically used to store various parameters required by the
+ * renderer and some additional parameters that can be used to tweak the
+ * output of the renderer.
+ *
+ * @fields:
+ * root ::
+ * The native rendere struct.
+ *
+ * spread ::
+ * This is an essential parameter/property required by the renderer.
+ * `spread` defines the maximum unsigned value that is present in the
+ * final SDF output. For the default value check file
+ * `ftsdfcommon.h`.
+ *
+ * flip_sign ::
+ * By default positive values indicate positions inside of contours,
+ * i.e., filled by a contour. If this property is true then that
+ * output will be the opposite of the default, i.e., negative values
+ * indicate positions inside of contours.
+ *
+ * flip_y ::
+ * Setting this parameter to true makes the output image flipped
+ * along the y-axis.
+ *
+ * overlaps ::
+ * Set this to true to generate SDF for glyphs having overlapping
+ * contours. The overlapping support is limited to glyphs that do not
+ * have self-intersecting contours. Also, removing overlaps require a
+ * considerable amount of extra memory; additionally, it will not work
+ * if generating SDF from bitmap.
+ *
+ * @note:
+ * All properties except `overlaps` are valid for both the 'sdf' and
+ * 'bsdf' renderers.
+ *
+ */
+ typedef struct SDF_Renderer_Module_
+ {
+ FT_RendererRec root;
+ FT_UInt spread;
+ FT_Bool flip_sign;
+ FT_Bool flip_y;
+ FT_Bool overlaps;
+
+ } SDF_Renderer_Module, *SDF_Renderer;
+
+
+ /**************************************************************************
+ *
+ * @renderer:
+ * ft_sdf_renderer_class
+ *
+ * @description:
+ * Renderer to convert @FT_Outline to signed distance fields.
+ *
+ */
+ FT_DECLARE_RENDERER( ft_sdf_renderer_class )
+
+
+ /**************************************************************************
+ *
+ * @renderer:
+ * ft_bitmap_sdf_renderer_class
+ *
+ * @description:
+ * This is not exactly a renderer; it is just a converter that
+ * transforms bitmaps to signed distance fields.
+ *
+ * @note:
+ * This is not a separate module, it is part of the 'sdf' module.
+ *
+ */
+ FT_DECLARE_RENDERER( ft_bitmap_sdf_renderer_class )
+
+
+FT_END_HEADER
+
+#endif /* FTSDFREND_H_ */
+
+
+/* END */
diff --git a/freetype/src/sdf/module.mk b/freetype/src/sdf/module.mk
new file mode 100644
index 00000000..6be4b0c6
--- /dev/null
+++ b/freetype/src/sdf/module.mk
@@ -0,0 +1,29 @@
+#
+# FreeType 2 Signed Distance Field module definition
+#
+
+
+# Copyright (C) 2020-2021 by
+# David Turner, Robert Wilhelm, and Werner Lemberg.
+#
+# This file is part of the FreeType project, and may only be used, modified,
+# and distributed under the terms of the FreeType project license,
+# LICENSE.TXT. By continuing to use, modify, or distribute this file you
+# indicate that you have read the license and understand and accept it
+# fully.
+
+
+FTMODULE_H_COMMANDS += SDF_RENDERER
+FTMODULE_H_COMMANDS += BSDF_RENDERER
+
+define SDF_RENDERER
+$(OPEN_DRIVER) FT_Renderer_Class, ft_sdf_renderer_class $(CLOSE_DRIVER)
+$(ECHO_DRIVER)sdf $(ECHO_DRIVER_DESC)signed distance field renderer$(ECHO_DRIVER_DONE)
+endef
+
+define BSDF_RENDERER
+$(OPEN_DRIVER) FT_Renderer_Class, ft_bitmap_sdf_renderer_class $(CLOSE_DRIVER)
+$(ECHO_DRIVER)bsdf $(ECHO_DRIVER_DESC)bitmap to signed distance field converter$(ECHO_DRIVER_DONE)
+endef
+
+#EOF
diff --git a/freetype/src/sdf/rules.mk b/freetype/src/sdf/rules.mk
new file mode 100644
index 00000000..7e7e4fbe
--- /dev/null
+++ b/freetype/src/sdf/rules.mk
@@ -0,0 +1,78 @@
+#
+# FreeType 2 Signed Distance Field driver configuration rules
+#
+
+
+# Copyright (C) 2020-2021 by
+# David Turner, Robert Wilhelm, and Werner Lemberg.
+#
+# This file is part of the FreeType project, and may only be used, modified,
+# and distributed under the terms of the FreeType project license,
+# LICENSE.TXT. By continuing to use, modify, or distribute this file you
+# indicate that you have read the license and understand and accept it
+# fully.
+
+
+# sdf driver directory
+#
+SDF_DIR := $(SRC_DIR)/sdf
+
+
+# compilation flags for the driver
+#
+SDF_COMPILE := $(CC) $(ANSIFLAGS) \
+ $I$(subst /,$(COMPILER_SEP),$(SDF_DIR)) \
+ $(INCLUDE_FLAGS) \
+ $(FT_CFLAGS)
+
+
+# sdf driver sources (i.e., C files)
+#
+SDF_DRV_SRC := $(SDF_DIR)/ftsdfrend.c \
+ $(SDF_DIR)/ftsdf.c \
+ $(SDF_DIR)/ftbsdf.c \
+ $(SDF_DIR)/ftsdfcommon.c
+
+
+# sdf driver headers
+#
+SDF_DRV_H := $(SDF_DIR)/ftsdfrend.h \
+ $(SDF_DIR)/ftsdf.h \
+ $(SDF_DIR)/ftsdferrs.h \
+ $(SDF_DIR)/ftsdfcommon.h
+
+
+# sdf driver object(s)
+#
+# SDF_DRV_OBJ_M is used during `multi' builds.
+# SDF_DRV_OBJ_S is used during `single' builds.
+#
+SDF_DRV_OBJ_M := $(SDF_DRV_SRC:$(SDF_DIR)/%.c=$(OBJ_DIR)/%.$O)
+SDF_DRV_OBJ_S := $(OBJ_DIR)/sdf.$O
+
+
+# sdf driver source file for single build
+#
+SDF_DRV_SRC_S := $(SDF_DIR)/sdf.c
+
+
+# sdf driver - single object
+#
+$(SDF_DRV_OBJ_S): $(SDF_DRV_SRC_S) $(SDF_DRV_SRC) \
+ $(FREETYPE_H) $(SDF_DRV_H)
+ $(SDF_COMPILE) $T$(subst /,$(COMPILER_SEP),$@ $(SDF_DRV_SRC_S))
+
+
+# sdf driver - multiple objects
+#
+$(OBJ_DIR)/%.$O: $(SDF_DIR)/%.c $(FREETYPE_H) $(SDF_DRV_H)
+ $(SDF_COMPILE) $T$(subst /,$(COMPILER_SEP),$@ $<)
+
+
+# update main driver list
+#
+DRV_OBJS_S += $(SDF_DRV_OBJ_S)
+DRV_OBJS_M += $(SDF_DRV_OBJ_M)
+
+
+# EOF
diff --git a/freetype/src/sdf/sdf.c b/freetype/src/sdf/sdf.c
new file mode 100644
index 00000000..1bc3fc38
--- /dev/null
+++ b/freetype/src/sdf/sdf.c
@@ -0,0 +1,29 @@
+/****************************************************************************
+ *
+ * sdf.c
+ *
+ * FreeType Signed Distance Field renderer module component (body only).
+ *
+ * Copyright (C) 2020-2021 by
+ * David Turner, Robert Wilhelm, and Werner Lemberg.
+ *
+ * Written by Anuj Verma.
+ *
+ * This file is part of the FreeType project, and may only be used,
+ * modified, and distributed under the terms of the FreeType project
+ * license, LICENSE.TXT. By continuing to use, modify, or distribute
+ * this file you indicate that you have read the license and
+ * understand and accept it fully.
+ *
+ */
+
+
+#define FT_MAKE_OPTION_SINGLE_OBJECT
+
+#include "ftsdfrend.c"
+#include "ftsdfcommon.c"
+#include "ftbsdf.c"
+#include "ftsdf.c"
+
+
+/* END */
diff --git a/freetype/src/sfnt/module.mk b/freetype/src/sfnt/module.mk
index 0f459d84..eabd48f6 100644
--- a/freetype/src/sfnt/module.mk
+++ b/freetype/src/sfnt/module.mk
@@ -3,7 +3,7 @@
#
-# Copyright (C) 1996-2020 by
+# Copyright (C) 1996-2021 by
# David Turner, Robert Wilhelm, and Werner Lemberg.
#
# This file is part of the FreeType project, and may only be used, modified,
diff --git a/freetype/src/sfnt/pngshim.c b/freetype/src/sfnt/pngshim.c
index f5501612..02fe3744 100644
--- a/freetype/src/sfnt/pngshim.c
+++ b/freetype/src/sfnt/pngshim.c
@@ -4,7 +4,7 @@
*
* PNG Bitmap glyph support.
*
- * Copyright (C) 2013-2020 by
+ * Copyright (C) 2013-2021 by
* Google, Inc.
* Written by Stuart Gill and Behdad Esfahbod.
*
@@ -270,7 +270,10 @@
int bitdepth, color_type, interlace;
FT_Int i;
- png_byte* *rows = NULL; /* pacify compiler */
+
+ /* `rows` gets modified within a 'setjmp' scope; */
+ /* we thus need the `volatile` keyword. */
+ png_byte* *volatile rows = NULL;
if ( x_offset < 0 ||
@@ -427,7 +430,7 @@
goto DestroyExit;
}
- if ( FT_NEW_ARRAY( rows, imgHeight ) )
+ if ( FT_QNEW_ARRAY( rows, imgHeight ) )
{
error = FT_THROW( Out_Of_Memory );
goto DestroyExit;
@@ -438,11 +441,11 @@
png_read_image( png, rows );
- FT_FREE( rows );
-
png_read_end( png, info );
DestroyExit:
+ /* even if reading fails with longjmp, rows must be freed */
+ FT_FREE( rows );
png_destroy_read_struct( &png, &info, NULL );
FT_Stream_Close( &stream );
diff --git a/freetype/src/sfnt/pngshim.h b/freetype/src/sfnt/pngshim.h
index 2d6e83d6..89efd275 100644
--- a/freetype/src/sfnt/pngshim.h
+++ b/freetype/src/sfnt/pngshim.h
@@ -4,7 +4,7 @@
*
* PNG Bitmap glyph support.
*
- * Copyright (C) 2013-2020 by
+ * Copyright (C) 2013-2021 by
* Google, Inc.
* Written by Stuart Gill and Behdad Esfahbod.
*
diff --git a/freetype/src/sfnt/rules.mk b/freetype/src/sfnt/rules.mk
index f56ef060..d41305c0 100644
--- a/freetype/src/sfnt/rules.mk
+++ b/freetype/src/sfnt/rules.mk
@@ -3,7 +3,7 @@
#
-# Copyright (C) 1996-2020 by
+# Copyright (C) 1996-2021 by
# David Turner, Robert Wilhelm, and Werner Lemberg.
#
# This file is part of the FreeType project, and may only be used, modified,
diff --git a/freetype/src/sfnt/sfdriver.c b/freetype/src/sfnt/sfdriver.c
index 0460339a..d1d01c99 100644
--- a/freetype/src/sfnt/sfdriver.c
+++ b/freetype/src/sfnt/sfdriver.c
@@ -4,7 +4,7 @@
*
* High-level SFNT driver interface (body).
*
- * Copyright (C) 1996-2020 by
+ * Copyright (C) 1996-2021 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
@@ -501,7 +501,7 @@
FT_UNUSED( error );
- if ( FT_ALLOC( result, entry->stringLength / 2 + 1 ) )
+ if ( FT_QALLOC( result, entry->stringLength / 2 + 1 ) )
return NULL;
if ( FT_STREAM_SEEK( entry->stringOffset ) ||
@@ -560,7 +560,7 @@
FT_UNUSED( error );
- if ( FT_ALLOC( result, entry->stringLength + 1 ) )
+ if ( FT_QALLOC( result, entry->stringLength + 1 ) )
return NULL;
if ( FT_STREAM_SEEK( entry->stringOffset ) ||
@@ -868,8 +868,8 @@
result[len] = '\0';
FT_TRACE0(( "sfnt_get_var_ps_name:"
- " Shortening variation PS name prefix\n"
- " "
+ " Shortening variation PS name prefix\n" ));
+ FT_TRACE0(( " "
" to %d characters\n", len ));
}
@@ -920,16 +920,16 @@
if ( !subfamily_name )
{
FT_TRACE1(( "sfnt_get_var_ps_name:"
- " can't construct named instance PS name;\n"
- " "
+ " can't construct named instance PS name;\n" ));
+ FT_TRACE1(( " "
" trying to construct normal instance PS name\n" ));
goto construct_instance_name;
}
/* after the prefix we have character `-' followed by the */
/* subfamily name (using only characters a-z, A-Z, and 0-9) */
- if ( FT_ALLOC( result, face->var_postscript_prefix_len +
- 1 + ft_strlen( subfamily_name ) + 1 ) )
+ if ( FT_QALLOC( result, face->var_postscript_prefix_len +
+ 1 + ft_strlen( subfamily_name ) + 1 ) )
return NULL;
ft_strcpy( result, face->var_postscript_prefix );
@@ -957,9 +957,9 @@
construct_instance_name:
axis = mm_var->axis;
- if ( FT_ALLOC( result,
- face->var_postscript_prefix_len +
- num_coords * MAX_VALUE_DESCRIPTOR_LEN + 1 ) )
+ if ( FT_QALLOC( result,
+ face->var_postscript_prefix_len +
+ num_coords * MAX_VALUE_DESCRIPTOR_LEN + 1 ) )
return NULL;
p = result;
@@ -993,6 +993,7 @@
if ( t != ' ' && ft_isalnum( t ) )
*p++ = t;
}
+ *p++ = '\0';
}
check_length:
@@ -1213,6 +1214,8 @@
#define PUT_COLOR_LAYERS( a ) NULL
#endif
+#define PUT_COLOR_LAYERS_V1( a ) PUT_COLOR_LAYERS( a )
+
#ifdef TT_CONFIG_OPTION_POSTSCRIPT_NAMES
#define PUT_PS_NAMES( a ) a
#else
@@ -1271,9 +1274,9 @@
/* TT_Free_Table_Func free_eblc */
PUT_EMBEDDED_BITMAPS( tt_face_set_sbit_strike ),
- /* TT_Set_SBit_Strike_Func set_sbit_strike */
+ /* TT_Set_SBit_Strike_Func set_sbit_strike */
PUT_EMBEDDED_BITMAPS( tt_face_load_strike_metrics ),
- /* TT_Load_Strike_Metrics_Func load_strike_metrics */
+ /* TT_Load_Strike_Metrics_Func load_strike_metrics */
PUT_COLOR_LAYERS( tt_face_load_cpal ),
/* TT_Load_Table_Func load_cpal */
@@ -1287,6 +1290,18 @@
/* TT_Set_Palette_Func set_palette */
PUT_COLOR_LAYERS( tt_face_get_colr_layer ),
/* TT_Get_Colr_Layer_Func get_colr_layer */
+
+ PUT_COLOR_LAYERS_V1( tt_face_get_colr_glyph_paint ),
+ /* TT_Get_Color_Glyph_Paint_Func get_colr_glyph_paint */
+ PUT_COLOR_LAYERS_V1( tt_face_get_color_glyph_clipbox ),
+ /* TT_Get_Color_Glyph_ClipBox_Func get_clipbox */
+ PUT_COLOR_LAYERS_V1( tt_face_get_paint_layers ),
+ /* TT_Get_Paint_Layers_Func get_paint_layers */
+ PUT_COLOR_LAYERS_V1( tt_face_get_colorline_stops ),
+ /* TT_Get_Paint get_paint */
+ PUT_COLOR_LAYERS_V1( tt_face_get_paint ),
+ /* TT_Get_Colorline_Stops_Func get_colorline_stops */
+
PUT_COLOR_LAYERS( tt_face_colr_blend_layer ),
/* TT_Blend_Colr_Func colr_blend */
diff --git a/freetype/src/sfnt/sfdriver.h b/freetype/src/sfnt/sfdriver.h
index 1ac27063..8d5b5ce3 100644
--- a/freetype/src/sfnt/sfdriver.h
+++ b/freetype/src/sfnt/sfdriver.h
@@ -4,7 +4,7 @@
*
* High-level SFNT driver interface (specification).
*
- * Copyright (C) 1996-2020 by
+ * Copyright (C) 1996-2021 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
diff --git a/freetype/src/sfnt/sferrors.h b/freetype/src/sfnt/sferrors.h
index 55c3e76b..78e6f035 100644
--- a/freetype/src/sfnt/sferrors.h
+++ b/freetype/src/sfnt/sferrors.h
@@ -4,7 +4,7 @@
*
* SFNT error codes (specification only).
*
- * Copyright (C) 2001-2020 by
+ * Copyright (C) 2001-2021 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
diff --git a/freetype/src/sfnt/sfnt.c b/freetype/src/sfnt/sfnt.c
index 471239ff..97692cdf 100644
--- a/freetype/src/sfnt/sfnt.c
+++ b/freetype/src/sfnt/sfnt.c
@@ -4,7 +4,7 @@
*
* Single object library component.
*
- * Copyright (C) 1996-2020 by
+ * Copyright (C) 1996-2021 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
diff --git a/freetype/src/sfnt/sfobjs.c b/freetype/src/sfnt/sfobjs.c
index 39460be2..78910247 100644
--- a/freetype/src/sfnt/sfobjs.c
+++ b/freetype/src/sfnt/sfobjs.c
@@ -4,7 +4,7 @@
*
* SFNT object management (base).
*
- * Copyright (C) 1996-2020 by
+ * Copyright (C) 1996-2021 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
@@ -65,7 +65,7 @@
len = (FT_UInt)entry->stringLength / 2;
- if ( FT_NEW_ARRAY( string, len + 1 ) )
+ if ( FT_QNEW_ARRAY( string, len + 1 ) )
return NULL;
for ( n = 0; n < len; n++ )
@@ -100,7 +100,7 @@
len = (FT_UInt)entry->stringLength;
- if ( FT_NEW_ARRAY( string, len + 1 ) )
+ if ( FT_QNEW_ARRAY( string, len + 1 ) )
return NULL;
for ( n = 0; n < len; n++ )
@@ -360,17 +360,27 @@
FT_FRAME_END
};
+#ifndef FT_CONFIG_OPTION_USE_BROTLI
+ FT_UNUSED( face_instance_index );
+ FT_UNUSED( woff2_num_faces );
+#endif
+
face->ttc_header.tag = 0;
face->ttc_header.version = 0;
face->ttc_header.count = 0;
+#if defined( FT_CONFIG_OPTION_USE_ZLIB ) || \
+ defined( FT_CONFIG_OPTION_USE_BROTLI )
retry:
+#endif
+
offset = FT_STREAM_POS();
if ( FT_READ_ULONG( tag ) )
return error;
+#ifdef FT_CONFIG_OPTION_USE_ZLIB
if ( tag == TTAG_wOFF )
{
FT_TRACE2(( "sfnt_open_font: file is a WOFF; synthesizing SFNT\n" ));
@@ -386,7 +396,9 @@
stream = face->root.stream;
goto retry;
}
+#endif
+#ifdef FT_CONFIG_OPTION_USE_BROTLI
if ( tag == TTAG_wOF2 )
{
FT_TRACE2(( "sfnt_open_font: file is a WOFF2; synthesizing SFNT\n" ));
@@ -405,6 +417,7 @@
stream = face->root.stream;
goto retry;
}
+#endif
if ( tag != 0x00010000UL &&
tag != TTAG_ttcf &&
@@ -446,7 +459,7 @@
return FT_THROW( Array_Too_Large );
/* now read the offsets of each font in the file */
- if ( FT_NEW_ARRAY( face->ttc_header.offsets, face->ttc_header.count ) )
+ if ( FT_QNEW_ARRAY( face->ttc_header.offsets, face->ttc_header.count ) )
return error;
if ( FT_FRAME_ENTER( face->ttc_header.count * 4L ) )
@@ -464,7 +477,7 @@
face->ttc_header.version = 1 << 16;
face->ttc_header.count = 1;
- if ( FT_NEW( face->ttc_header.offsets ) )
+ if ( FT_QNEW( face->ttc_header.offsets ) )
return error;
face->ttc_header.offsets[0] = offset;
@@ -643,8 +656,8 @@
*/
if ( ( face->variation_support & TT_FACE_FLAG_VAR_FVAR ) &&
- !( FT_ALLOC( default_values, num_axes * 4 ) ||
- FT_ALLOC( instance_values, num_axes * 4 ) ) )
+ !( FT_QALLOC( default_values, num_axes * 4 ) ||
+ FT_QALLOC( instance_values, num_axes * 4 ) ) )
{
/* the current stream position is 16 bytes after the table start */
FT_ULong array_start = FT_STREAM_POS() - 16 + offset;
@@ -820,7 +833,8 @@
/* it doesn't contain outlines. */
/* */
- FT_TRACE2(( "sfnt_load_face: %p\n\n", (void *)face ));
+ FT_TRACE2(( "sfnt_load_face: %p\n", (void *)face ));
+ FT_TRACE2(( "\n" ));
/* do we have outlines in there? */
#ifdef FT_CONFIG_OPTION_INCREMENTAL
@@ -1149,9 +1163,10 @@
}
/* synthesize Unicode charmap if one is missing */
- if ( !has_unicode )
+ if ( !has_unicode &&
+ root->face_flags & FT_FACE_FLAG_GLYPH_NAMES )
{
- FT_CharMapRec cmaprec;
+ FT_CharMapRec cmaprec;
cmaprec.face = root;
@@ -1207,7 +1222,7 @@
/* of `FT_Face', we map `available_sizes' indices to strike */
/* indices */
if ( FT_NEW_ARRAY( root->available_sizes, count ) ||
- FT_NEW_ARRAY( sbit_strike_map, count ) )
+ FT_QNEW_ARRAY( sbit_strike_map, count ) )
goto Exit;
bsize_idx = 0;
@@ -1236,7 +1251,7 @@
}
/* reduce array size to the actually used elements */
- (void)FT_RENEW_ARRAY( sbit_strike_map, count, bsize_idx );
+ FT_MEM_QRENEW_ARRAY( sbit_strike_map, count, bsize_idx );
/* from now on, all strike indices are mapped */
/* using `sbit_strike_map' */
diff --git a/freetype/src/sfnt/sfobjs.h b/freetype/src/sfnt/sfobjs.h
index e8e30420..172c47eb 100644
--- a/freetype/src/sfnt/sfobjs.h
+++ b/freetype/src/sfnt/sfobjs.h
@@ -4,7 +4,7 @@
*
* SFNT object management (specification).
*
- * Copyright (C) 1996-2020 by
+ * Copyright (C) 1996-2021 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
diff --git a/freetype/src/sfnt/sfwoff.c b/freetype/src/sfnt/sfwoff.c
index f0a32e1e..422c816a 100644
--- a/freetype/src/sfnt/sfwoff.c
+++ b/freetype/src/sfnt/sfwoff.c
@@ -4,7 +4,7 @@
*
* WOFF format management (base).
*
- * Copyright (C) 1996-2020 by
+ * Copyright (C) 1996-2021 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
@@ -23,6 +23,9 @@
#include <freetype/ftgzip.h>
+#ifdef FT_CONFIG_OPTION_USE_ZLIB
+
+
/**************************************************************************
*
* The macro FT_COMPONENT is used in trace mode. It is an implicit
@@ -66,7 +69,7 @@
}
- FT_CALLBACK_DEF( int )
+ FT_COMPARE_DEF( int )
compare_offsets( const void* a,
const void* b )
{
@@ -109,7 +112,7 @@
FT_ULong sfnt_offset;
FT_Int nn;
- FT_ULong old_tag = 0;
+ FT_Tag old_tag = 0;
static const FT_Frame_Field woff_header_fields[] =
{
@@ -160,8 +163,8 @@
}
/* Don't trust `totalSfntSize' before thorough checks. */
- if ( FT_ALLOC( sfnt, 12 + woff.num_tables * 16UL ) ||
- FT_NEW( sfnt_stream ) )
+ if ( FT_QALLOC( sfnt, 12 + woff.num_tables * 16UL ) ||
+ FT_NEW( sfnt_stream ) )
goto Exit;
sfnt_header = sfnt;
@@ -198,9 +201,9 @@
FT_NEW_ARRAY( indices, woff.num_tables ) )
goto Exit;
- FT_TRACE2(( "\n"
- " tag offset compLen origLen checksum\n"
- " -------------------------------------------\n" ));
+ FT_TRACE2(( "\n" ));
+ FT_TRACE2(( " tag offset compLen origLen checksum\n" ));
+ FT_TRACE2(( " -------------------------------------------\n" ));
if ( FT_FRAME_ENTER( 20L * woff.num_tables ) )
goto Exit;
@@ -360,8 +363,6 @@
}
else
{
-#ifdef FT_CONFIG_OPTION_USE_ZLIB
-
/* Uncompress with zlib. */
FT_ULong output_len = table->OrigLength;
@@ -377,13 +378,6 @@
error = FT_THROW( Invalid_Table );
goto Exit1;
}
-
-#else /* !FT_CONFIG_OPTION_USE_ZLIB */
-
- error = FT_THROW( Unimplemented_Feature );
- goto Exit1;
-
-#endif /* !FT_CONFIG_OPTION_USE_ZLIB */
}
FT_FRAME_EXIT();
@@ -433,5 +427,12 @@
#undef WRITE_USHORT
#undef WRITE_ULONG
+#else /* !FT_CONFIG_OPTION_USE_ZLIB */
+
+ /* ANSI C doesn't like empty source files */
+ typedef int _sfwoff_dummy;
+
+#endif /* !FT_CONFIG_OPTION_USE_ZLIB */
+
/* END */
diff --git a/freetype/src/sfnt/sfwoff.h b/freetype/src/sfnt/sfwoff.h
index d177ab11..3fbdac0f 100644
--- a/freetype/src/sfnt/sfwoff.h
+++ b/freetype/src/sfnt/sfwoff.h
@@ -4,7 +4,7 @@
*
* WOFFF format management (specification).
*
- * Copyright (C) 1996-2020 by
+ * Copyright (C) 1996-2021 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
@@ -26,12 +26,15 @@
FT_BEGIN_HEADER
+#ifdef FT_CONFIG_OPTION_USE_ZLIB
FT_LOCAL( FT_Error )
woff_open_font( FT_Stream stream,
TT_Face face );
+#endif
+
FT_END_HEADER
#endif /* SFWOFF_H_ */
diff --git a/freetype/src/sfnt/sfwoff2.c b/freetype/src/sfnt/sfwoff2.c
index 5c8202f8..5ee8dea2 100644
--- a/freetype/src/sfnt/sfwoff2.c
+++ b/freetype/src/sfnt/sfwoff2.c
@@ -4,7 +4,7 @@
*
* WOFF2 format management (base).
*
- * Copyright (C) 2019-2020 by
+ * Copyright (C) 2019-2021 by
* Nikhil Ramakrishnan, David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
@@ -26,8 +26,6 @@
#include <brotli/decode.h>
-#endif
-
/**************************************************************************
*
@@ -101,15 +99,15 @@
}
- FT_CALLBACK_DEF( int )
+ FT_COMPARE_DEF( int )
compare_tags( const void* a,
const void* b )
{
WOFF2_Table table1 = *(WOFF2_Table*)a;
WOFF2_Table table2 = *(WOFF2_Table*)b;
- FT_ULong tag1 = table1->Tag;
- FT_ULong tag2 = table2->Tag;
+ FT_Tag tag1 = table1->Tag;
+ FT_Tag tag2 = table2->Tag;
if ( tag1 > tag2 )
@@ -316,8 +314,6 @@
const FT_Byte* src,
FT_ULong src_size )
{
-#ifdef FT_CONFIG_OPTION_USE_BROTLI
-
/* this cast is only of importance on 32bit systems; */
/* we don't validate it */
FT_Offset uncompressed_size = (FT_Offset)dst_size;
@@ -338,20 +334,13 @@
FT_TRACE2(( "woff2_decompress: Brotli stream decompressed.\n" ));
return FT_Err_Ok;
-
-#else /* !FT_CONFIG_OPTION_USE_BROTLI */
-
- FT_ERROR(( "woff2_decompress: Brotli support not available.\n" ));
- return FT_THROW( Unimplemented_Feature );
-
-#endif /* !FT_CONFIG_OPTION_USE_BROTLI */
}
static WOFF2_Table
find_table( WOFF2_Table* tables,
FT_UShort num_tables,
- FT_ULong tag )
+ FT_Tag tag )
{
FT_Int i;
@@ -790,7 +779,7 @@
goto Fail;
loca_buf_size = loca_values_size * offset_size;
- if ( FT_NEW_ARRAY( loca_buf, loca_buf_size ) )
+ if ( FT_QNEW_ARRAY( loca_buf, loca_buf_size ) )
goto Fail;
dst = loca_buf;
@@ -1852,11 +1841,10 @@
FT_NEW_ARRAY( indices, woff2.num_tables ) )
goto Exit;
- FT_TRACE2((
- "\n"
- " tag flags transform origLen transformLen offset\n"
- " -----------------------------------------------------------\n" ));
- /* " XXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX" */
+ FT_TRACE2(( "\n" ));
+ FT_TRACE2(( " tag flags transform origLen transformLen offset\n" ));
+ FT_TRACE2(( " -----------------------------------------------------------\n" ));
+ /* " XXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX" */
for ( nn = 0; nn < woff2.num_tables; nn++ )
{
@@ -2119,8 +2107,8 @@
/* Create a temporary array. */
- if ( FT_NEW_ARRAY( temp_indices,
- ttc_font->num_tables ) )
+ if ( FT_QNEW_ARRAY( temp_indices,
+ ttc_font->num_tables ) )
goto Exit;
FT_TRACE4(( "Storing tables for TTC face index %d.\n", face_index ));
@@ -2128,9 +2116,9 @@
temp_indices[nn] = indices[ttc_font->table_indices[nn]];
/* Resize array to required size. */
- if ( FT_RENEW_ARRAY( indices,
- woff2.num_tables,
- ttc_font->num_tables ) )
+ if ( FT_QRENEW_ARRAY( indices,
+ woff2.num_tables,
+ ttc_font->num_tables ) )
goto Exit;
for ( nn = 0; nn < ttc_font->num_tables; nn++ )
@@ -2170,8 +2158,8 @@
}
/* Write sfnt header. */
- if ( FT_ALLOC( sfnt, sfnt_size ) ||
- FT_NEW( sfnt_stream ) )
+ if ( FT_QALLOC( sfnt, sfnt_size ) ||
+ FT_NEW( sfnt_stream ) )
goto Exit;
sfnt_header = sfnt;
@@ -2209,6 +2197,25 @@
sizeof ( WOFF2_Table ),
compare_tags );
+ /* reject fonts that have multiple tables with the same tag */
+ for ( nn = 1; nn < woff2.num_tables; nn++ )
+ {
+ FT_Tag tag = indices[nn]->Tag;
+
+
+ if ( tag == indices[nn - 1]->Tag )
+ {
+ FT_ERROR(( "woff2_open_font:"
+ " multiple tables with tag `%c%c%c%c'.\n",
+ (FT_Char)( tag >> 24 ),
+ (FT_Char)( tag >> 16 ),
+ (FT_Char)( tag >> 8 ),
+ (FT_Char)( tag ) ));
+ error = FT_THROW( Invalid_Table );
+ goto Exit;
+ }
+ }
+
if ( woff2.uncompressed_size < 1 )
{
error = FT_THROW( Invalid_Table );
@@ -2223,8 +2230,8 @@
}
/* Allocate memory for uncompressed table data. */
- if ( FT_ALLOC( uncompressed_buf, woff2.uncompressed_size ) ||
- FT_FRAME_ENTER( woff2.totalCompressedSize ) )
+ if ( FT_QALLOC( uncompressed_buf, woff2.uncompressed_size ) ||
+ FT_FRAME_ENTER( woff2.totalCompressedSize ) )
goto Exit;
/* Uncompress the stream. */
@@ -2333,5 +2340,12 @@
#undef BBOX_STREAM
#undef INSTRUCTION_STREAM
+#else /* !FT_CONFIG_OPTION_USE_BROTLI */
+
+ /* ANSI C doesn't like empty source files */
+ typedef int _sfwoff2_dummy;
+
+#endif /* !FT_CONFIG_OPTION_USE_BROTLI */
+
/* END */
diff --git a/freetype/src/sfnt/sfwoff2.h b/freetype/src/sfnt/sfwoff2.h
index 798f66bd..fa78b024 100644
--- a/freetype/src/sfnt/sfwoff2.h
+++ b/freetype/src/sfnt/sfwoff2.h
@@ -4,7 +4,7 @@
*
* WOFFF2 format management (specification).
*
- * Copyright (C) 2019-2020 by
+ * Copyright (C) 2019-2021 by
* Nikhil Ramakrishnan, David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
@@ -26,6 +26,7 @@
FT_BEGIN_HEADER
+#ifdef FT_CONFIG_OPTION_USE_BROTLI
/* Leave the first byte open to store `flag_byte'. */
#define WOFF2_FLAGS_TRANSFORM 1 << 8
@@ -66,6 +67,7 @@ FT_BEGIN_HEADER
FT_Int* face_index,
FT_Long* num_faces );
+#endif /* FT_CONFIG_OPTION_USE_BROTLI */
FT_END_HEADER
diff --git a/freetype/src/sfnt/ttbdf.c b/freetype/src/sfnt/ttbdf.c
index a287d3af..b8d9473a 100644
--- a/freetype/src/sfnt/ttbdf.c
+++ b/freetype/src/sfnt/ttbdf.c
@@ -4,7 +4,7 @@
*
* TrueType and OpenType embedded BDF properties (body).
*
- * Copyright (C) 2005-2020 by
+ * Copyright (C) 2005-2021 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
diff --git a/freetype/src/sfnt/ttbdf.h b/freetype/src/sfnt/ttbdf.h
index e60c01cb..91271d91 100644
--- a/freetype/src/sfnt/ttbdf.h
+++ b/freetype/src/sfnt/ttbdf.h
@@ -4,7 +4,7 @@
*
* TrueType and OpenType embedded BDF properties (specification).
*
- * Copyright (C) 2005-2020 by
+ * Copyright (C) 2005-2021 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
diff --git a/freetype/src/sfnt/ttcmap.c b/freetype/src/sfnt/ttcmap.c
index 556a7121..b369d837 100644
--- a/freetype/src/sfnt/ttcmap.c
+++ b/freetype/src/sfnt/ttcmap.c
@@ -4,7 +4,7 @@
*
* TrueType character mapping table (cmap) support (body).
*
- * Copyright (C) 2002-2020 by
+ * Copyright (C) 2002-2021 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
@@ -916,6 +916,16 @@
length = (FT_UInt)( valid->limit - table );
}
+ /* it also happens that the `length' field is too small; */
+ /* this is easy to correct */
+ if ( length < (FT_UInt)( valid->limit - table ) )
+ {
+ if ( valid->level >= FT_VALIDATE_PARANOID )
+ FT_INVALID_DATA;
+
+ length = (FT_UInt)( valid->limit - table );
+ }
+
if ( length < 16 )
FT_INVALID_TOO_SHORT;
diff --git a/freetype/src/sfnt/ttcmap.h b/freetype/src/sfnt/ttcmap.h
index c7d7c21d..504fc951 100644
--- a/freetype/src/sfnt/ttcmap.h
+++ b/freetype/src/sfnt/ttcmap.h
@@ -4,7 +4,7 @@
*
* TrueType character mapping table (cmap) support (specification).
*
- * Copyright (C) 2002-2020 by
+ * Copyright (C) 2002-2021 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
diff --git a/freetype/src/sfnt/ttcmapc.h b/freetype/src/sfnt/ttcmapc.h
index 2e4ce507..4e6cd46b 100644
--- a/freetype/src/sfnt/ttcmapc.h
+++ b/freetype/src/sfnt/ttcmapc.h
@@ -4,7 +4,7 @@
*
* TT CMAP classes definitions (specification only).
*
- * Copyright (C) 2009-2020 by
+ * Copyright (C) 2009-2021 by
* Oran Agra and Mickey Gabel.
*
* This file is part of the FreeType project, and may only be used,
diff --git a/freetype/src/sfnt/ttcolr.c b/freetype/src/sfnt/ttcolr.c
index 9025e356..8f5cc8bc 100644
--- a/freetype/src/sfnt/ttcolr.c
+++ b/freetype/src/sfnt/ttcolr.c
@@ -4,8 +4,8 @@
*
* TrueType and OpenType colored glyph layer support (body).
*
- * Copyright (C) 2018-2020 by
- * David Turner, Robert Wilhelm, and Werner Lemberg.
+ * Copyright (C) 2018-2021 by
+ * David Turner, Robert Wilhelm, Dominik Röttsches, and Werner Lemberg.
*
* Originally written by Shao Yu Zhang <shaozhang@fb.com>.
*
@@ -27,10 +27,12 @@
*/
+#include <freetype/internal/ftcalc.h>
#include <freetype/internal/ftdebug.h>
#include <freetype/internal/ftstream.h>
#include <freetype/tttags.h>
#include <freetype/ftcolor.h>
+#include <freetype/config/integer-types.h>
#ifdef TT_CONFIG_OPTION_COLOR_LAYERS
@@ -39,12 +41,27 @@
/* NOTE: These are the table sizes calculated through the specs. */
-#define BASE_GLYPH_SIZE 6U
-#define LAYER_SIZE 4U
-#define COLR_HEADER_SIZE 14U
+#define BASE_GLYPH_SIZE 6U
+#define BASE_GLYPH_PAINT_RECORD_SIZE 6U
+#define LAYER_V1_LIST_PAINT_OFFSET_SIZE 4U
+#define LAYER_V1_LIST_NUM_LAYERS_SIZE 4U
+#define COLOR_STOP_SIZE 6U
+#define LAYER_SIZE 4U
+#define COLR_HEADER_SIZE 14U
- typedef struct BaseGlyphRecord_
+ typedef enum FT_PaintFormat_Internal_
+ {
+ FT_COLR_PAINTFORMAT_INTERNAL_SCALE_CENTER = 18,
+ FT_COLR_PAINTFORMAT_INTERNAL_SCALE_UNIFORM = 20,
+ FT_COLR_PAINTFORMAT_INTERNAL_SCALE_UNIFORM_CENTER = 22,
+ FT_COLR_PAINTFORMAT_INTERNAL_ROTATE_CENTER = 26,
+ FT_COLR_PAINTFORMAT_INTERNAL_SKEW_CENTER = 30
+
+ } FT_PaintFormat_Internal;
+
+
+ typedef struct BaseGlyphRecord_
{
FT_UShort gid;
FT_UShort first_layer_index;
@@ -53,7 +70,16 @@
} BaseGlyphRecord;
- typedef struct Colr_
+ typedef struct BaseGlyphV1Record_
+ {
+ FT_UShort gid;
+ /* Offset from start of BaseGlyphV1List, i.e., from base_glyphs_v1. */
+ FT_ULong paint_offset;
+
+ } BaseGlyphV1Record;
+
+
+ typedef struct Colr_
{
FT_UShort version;
FT_UShort num_base_glyphs;
@@ -62,7 +88,23 @@
FT_Byte* base_glyphs;
FT_Byte* layers;
- /* The memory which backs up the `COLR' table. */
+ FT_ULong num_base_glyphs_v1;
+ /* Points at beginning of BaseGlyphV1List. */
+ FT_Byte* base_glyphs_v1;
+
+ FT_ULong num_layers_v1;
+ FT_Byte* layers_v1;
+
+ FT_Byte* clip_list;
+
+ /*
+ * Paint tables start at the minimum of the end of the LayerList and the
+ * end of the BaseGlyphList. Record this location in a field here for
+ * safety checks when accessing paint tables.
+ */
+ FT_Byte* paints_start_v1;
+
+ /* The memory that backs up the `COLR' table. */
void* table;
FT_ULong table_size;
@@ -88,10 +130,14 @@
FT_Byte* table = NULL;
FT_Byte* p = NULL;
+ /* Needed for reading array lengths in referenced tables. */
+ FT_Byte* p1 = NULL;
Colr* colr = NULL;
FT_ULong base_glyph_offset, layer_offset;
+ FT_ULong base_glyphs_offset_v1, num_base_glyphs_v1;
+ FT_ULong layer_offset_v1, num_layers_v1, clip_list_offset;
FT_ULong table_size;
@@ -115,7 +161,7 @@
goto NoColr;
colr->version = FT_NEXT_USHORT( p );
- if ( colr->version != 0 )
+ if ( colr->version != 0 && colr->version != 1 )
goto InvalidTable;
colr->num_base_glyphs = FT_NEXT_USHORT( p );
@@ -135,6 +181,66 @@
if ( colr->num_layers * LAYER_SIZE > table_size - layer_offset )
goto InvalidTable;
+ if ( colr->version == 1 )
+ {
+ base_glyphs_offset_v1 = FT_NEXT_ULONG( p );
+
+ if ( base_glyphs_offset_v1 >= table_size )
+ goto InvalidTable;
+
+ p1 = (FT_Byte*)( table + base_glyphs_offset_v1 );
+ num_base_glyphs_v1 = FT_PEEK_ULONG( p1 );
+
+ if ( num_base_glyphs_v1 * BASE_GLYPH_PAINT_RECORD_SIZE >
+ table_size - base_glyphs_offset_v1 )
+ goto InvalidTable;
+
+ colr->num_base_glyphs_v1 = num_base_glyphs_v1;
+ colr->base_glyphs_v1 = p1;
+
+ layer_offset_v1 = FT_NEXT_ULONG( p );
+
+ if ( layer_offset_v1 >= table_size )
+ goto InvalidTable;
+
+ if ( layer_offset_v1 )
+ {
+ p1 = (FT_Byte*)( table + layer_offset_v1 );
+ num_layers_v1 = FT_PEEK_ULONG( p1 );
+
+ if ( num_layers_v1 * LAYER_V1_LIST_PAINT_OFFSET_SIZE >
+ table_size - layer_offset_v1 )
+ goto InvalidTable;
+
+ colr->num_layers_v1 = num_layers_v1;
+ colr->layers_v1 = p1;
+
+ colr->paints_start_v1 =
+ FT_MIN( colr->base_glyphs_v1 +
+ colr->num_base_glyphs_v1 * BASE_GLYPH_PAINT_RECORD_SIZE,
+ colr->layers_v1 +
+ colr->num_layers_v1 * LAYER_V1_LIST_PAINT_OFFSET_SIZE );
+ }
+ else
+ {
+ colr->num_layers_v1 = 0;
+ colr->layers_v1 = 0;
+ colr->paints_start_v1 =
+ colr->base_glyphs_v1 +
+ colr->num_base_glyphs_v1 * BASE_GLYPH_PAINT_RECORD_SIZE;
+ }
+
+ clip_list_offset = FT_NEXT_ULONG( p );
+
+ if ( clip_list_offset >= table_size )
+ goto InvalidTable;
+
+ if ( clip_list_offset )
+ colr->clip_list = (FT_Byte*)( table + clip_list_offset );
+ else
+ colr->clip_list = 0;
+ }
+
colr->base_glyphs = (FT_Byte*)( table + base_glyph_offset );
colr->layers = (FT_Byte*)( table + layer_offset );
colr->table = table;
@@ -174,17 +280,17 @@
static FT_Bool
find_base_glyph_record( FT_Byte* base_glyph_begin,
- FT_Int num_base_glyph,
+ FT_UInt num_base_glyph,
FT_UInt glyph_id,
BaseGlyphRecord* record )
{
- FT_Int min = 0;
- FT_Int max = num_base_glyph - 1;
+ FT_UInt min = 0;
+ FT_UInt max = num_base_glyph;
- while ( min <= max )
+ while ( min < max )
{
- FT_Int mid = min + ( max - min ) / 2;
+ FT_UInt mid = min + ( max - min ) / 2;
FT_Byte* p = base_glyph_begin + mid * BASE_GLYPH_SIZE;
FT_UShort gid = FT_NEXT_USHORT( p );
@@ -193,7 +299,7 @@
if ( gid < glyph_id )
min = mid + 1;
else if (gid > glyph_id )
- max = mid - 1;
+ max = mid;
else
{
record->gid = gid;
@@ -265,6 +371,747 @@
}
+ static FT_Bool
+ read_color_line( FT_Byte* color_line_p,
+ FT_ColorLine *colorline )
+ {
+ FT_Byte* p = color_line_p;
+ FT_PaintExtend paint_extend;
+
+
+ paint_extend = (FT_PaintExtend)FT_NEXT_BYTE( p );
+ if ( paint_extend > FT_COLR_PAINT_EXTEND_REFLECT )
+ return 0;
+
+ colorline->extend = paint_extend;
+
+ colorline->color_stop_iterator.num_color_stops = FT_NEXT_USHORT( p );
+ colorline->color_stop_iterator.p = p;
+ colorline->color_stop_iterator.current_color_stop = 0;
+
+ return 1;
+ }
+
+
+ /*
+ * Read a paint offset for `FT_Paint*` objects that have them and check
+ * whether it is within reasonable limits within the font and the COLR
+ * table.
+ *
+ * Return 1 on success, 0 on failure.
+ */
+ static FT_Bool
+ get_child_table_pointer ( Colr* colr,
+ FT_Byte* paint_base,
+ FT_Byte** p,
+ FT_Byte** child_table_pointer )
+ {
+ FT_UInt32 paint_offset;
+ FT_Byte* child_table_p;
+
+
+ if ( !child_table_pointer )
+ return 0;
+
+ paint_offset = FT_NEXT_UOFF3( *p );
+ if ( !paint_offset )
+ return 0;
+
+ child_table_p = (FT_Byte*)( paint_base + paint_offset );
+
+ if ( child_table_p < colr->paints_start_v1 ||
+ child_table_p >= ( (FT_Byte*)colr->table + colr->table_size ) )
+ return 0;
+
+ *child_table_pointer = child_table_p;
+ return 1;
+ }
+
+
+ static FT_Bool
+ read_paint( Colr* colr,
+ FT_Byte* p,
+ FT_COLR_Paint* apaint )
+ {
+ FT_Byte* paint_base = p;
+ FT_Byte* child_table_p = NULL;
+
+
+ if ( !p || !colr || !colr->table )
+ return 0;
+
+ if ( p < colr->paints_start_v1 ||
+ p >= ( (FT_Byte*)colr->table + colr->table_size ) )
+ return 0;
+
+ apaint->format = (FT_PaintFormat)FT_NEXT_BYTE( p );
+
+ if ( apaint->format >= FT_COLR_PAINT_FORMAT_MAX )
+ return 0;
+
+ if ( apaint->format == FT_COLR_PAINTFORMAT_COLR_LAYERS )
+ {
+ /* Initialize layer iterator/ */
+ FT_Byte num_layers;
+ FT_UInt32 first_layer_index;
+
+
+ num_layers = FT_NEXT_BYTE( p );
+ if ( num_layers > colr->num_layers_v1 )
+ return 0;
+
+ first_layer_index = FT_NEXT_ULONG( p );
+ if ( first_layer_index + num_layers > colr->num_layers_v1 )
+ return 0;
+
+ apaint->u.colr_layers.layer_iterator.num_layers = num_layers;
+ apaint->u.colr_layers.layer_iterator.layer = 0;
+ /* TODO: Check whether pointer is outside colr? */
+ apaint->u.colr_layers.layer_iterator.p =
+ colr->layers_v1 +
+ LAYER_V1_LIST_NUM_LAYERS_SIZE +
+ LAYER_V1_LIST_PAINT_OFFSET_SIZE * first_layer_index;
+
+ return 1;
+ }
+
+ else if ( apaint->format == FT_COLR_PAINTFORMAT_SOLID )
+ {
+ apaint->u.solid.color.palette_index = FT_NEXT_USHORT( p );
+ apaint->u.solid.color.alpha = FT_NEXT_SHORT( p );
+
+ return 1;
+ }
+
+ else if ( apaint->format == FT_COLR_PAINTFORMAT_COLR_GLYPH )
+ {
+ apaint->u.colr_glyph.glyphID = FT_NEXT_USHORT( p );
+
+ return 1;
+ }
+
+ /*
+ * Grouped below here are all paint formats that have an offset to a
+ * child paint table as the first entry (for example, a color line or a
+ * child paint table). Retrieve that and determine whether that paint
+ * offset is valid first.
+ */
+
+ if ( !get_child_table_pointer( colr, paint_base, &p, &child_table_p ) )
+ return 0;
+
+ if ( apaint->format == FT_COLR_PAINTFORMAT_LINEAR_GRADIENT )
+ {
+ if ( !read_color_line( child_table_p,
+ &apaint->u.linear_gradient.colorline ) )
+ return 0;
+
+ /*
+ * In order to support variations expose these as FT_Fixed 16.16 values so
+ * that we can support fractional values after interpolation.
+ */
+ apaint->u.linear_gradient.p0.x = INT_TO_FIXED( FT_NEXT_SHORT( p ) );
+ apaint->u.linear_gradient.p0.y = INT_TO_FIXED( FT_NEXT_SHORT( p ) );
+ apaint->u.linear_gradient.p1.x = INT_TO_FIXED( FT_NEXT_SHORT( p ) );
+ apaint->u.linear_gradient.p1.y = INT_TO_FIXED( FT_NEXT_SHORT( p ) );
+ apaint->u.linear_gradient.p2.x = INT_TO_FIXED( FT_NEXT_SHORT( p ) );
+ apaint->u.linear_gradient.p2.y = INT_TO_FIXED( FT_NEXT_SHORT( p ) );
+
+ return 1;
+ }
+
+ else if ( apaint->format == FT_COLR_PAINTFORMAT_RADIAL_GRADIENT )
+ {
+ if ( !read_color_line( child_table_p,
+ &apaint->u.radial_gradient.colorline ) )
+ return 0;
+
+ apaint->u.radial_gradient.c0.x = INT_TO_FIXED( FT_NEXT_SHORT( p ) );
+ apaint->u.radial_gradient.c0.y = INT_TO_FIXED( FT_NEXT_SHORT( p ) );
+
+ apaint->u.radial_gradient.r0 = FT_NEXT_USHORT( p ) << 16;
+
+ apaint->u.radial_gradient.c1.x = INT_TO_FIXED( FT_NEXT_SHORT( p ) );
+ apaint->u.radial_gradient.c1.y = INT_TO_FIXED( FT_NEXT_SHORT( p ) );
+
+ apaint->u.radial_gradient.r1 = FT_NEXT_USHORT( p ) << 16;
+
+ return 1;
+ }
+
+ else if ( apaint->format == FT_COLR_PAINTFORMAT_SWEEP_GRADIENT )
+ {
+ if ( !read_color_line( child_table_p,
+ &apaint->u.sweep_gradient.colorline ) )
+ return 0;
+
+ apaint->u.sweep_gradient.center.x =
+ INT_TO_FIXED( FT_NEXT_SHORT( p ) );
+ apaint->u.sweep_gradient.center.y =
+ INT_TO_FIXED( FT_NEXT_SHORT( p ) );
+
+ apaint->u.sweep_gradient.start_angle =
+ F2DOT14_TO_FIXED( FT_NEXT_SHORT( p ) );
+ apaint->u.sweep_gradient.end_angle =
+ F2DOT14_TO_FIXED( FT_NEXT_SHORT( p ) );
+
+ return 1;
+ }
+
+ if ( apaint->format == FT_COLR_PAINTFORMAT_GLYPH )
+ {
+ apaint->u.glyph.paint.p = child_table_p;
+ apaint->u.glyph.paint.insert_root_transform = 0;
+ apaint->u.glyph.glyphID = FT_NEXT_USHORT( p );
+
+ return 1;
+ }
+
+ else if ( apaint->format == FT_COLR_PAINTFORMAT_TRANSFORM )
+ {
+ apaint->u.transform.paint.p = child_table_p;
+ apaint->u.transform.paint.insert_root_transform = 0;
+
+ if ( !get_child_table_pointer( colr, paint_base, &p, &child_table_p ) )
+ return 0;
+
+ p = child_table_p;
+
+ /*
+ * The following matrix coefficients are encoded as
+ * OpenType 16.16 fixed-point values.
+ */
+ apaint->u.transform.affine.xx = FT_NEXT_LONG( p );
+ apaint->u.transform.affine.yx = FT_NEXT_LONG( p );
+ apaint->u.transform.affine.xy = FT_NEXT_LONG( p );
+ apaint->u.transform.affine.yy = FT_NEXT_LONG( p );
+ apaint->u.transform.affine.dx = FT_NEXT_LONG( p );
+ apaint->u.transform.affine.dy = FT_NEXT_LONG( p );
+
+ return 1;
+ }
+
+ else if ( apaint->format == FT_COLR_PAINTFORMAT_TRANSLATE )
+ {
+ apaint->u.translate.paint.p = child_table_p;
+ apaint->u.translate.paint.insert_root_transform = 0;
+
+ apaint->u.translate.dx = INT_TO_FIXED( FT_NEXT_SHORT( p ) );
+ apaint->u.translate.dy = INT_TO_FIXED( FT_NEXT_SHORT( p ) );
+
+ return 1;
+ }
+
+ else if ( apaint->format ==
+ FT_COLR_PAINTFORMAT_SCALE ||
+ (FT_PaintFormat_Internal)apaint->format ==
+ FT_COLR_PAINTFORMAT_INTERNAL_SCALE_CENTER ||
+ (FT_PaintFormat_Internal)apaint->format ==
+ FT_COLR_PAINTFORMAT_INTERNAL_SCALE_UNIFORM ||
+ (FT_PaintFormat_Internal)apaint->format ==
+ FT_COLR_PAINTFORMAT_INTERNAL_SCALE_UNIFORM_CENTER )
+ {
+ apaint->u.scale.paint.p = child_table_p;
+ apaint->u.scale.paint.insert_root_transform = 0;
+
+ /* All scale paints get at least one scale value. */
+ apaint->u.scale.scale_x = F2DOT14_TO_FIXED( FT_NEXT_SHORT( p ) );
+
+ /* Non-uniform ones read an extra y value. */
+ if ( apaint->format ==
+ FT_COLR_PAINTFORMAT_SCALE ||
+ (FT_PaintFormat_Internal)apaint->format ==
+ FT_COLR_PAINTFORMAT_INTERNAL_SCALE_CENTER )
+ apaint->u.scale.scale_y = F2DOT14_TO_FIXED( FT_NEXT_SHORT( p ) );
+ else
+ apaint->u.scale.scale_y = apaint->u.scale.scale_x;
+
+ /* Scale paints that have a center read center coordinates, */
+ /* otherwise the center is (0,0). */
+ if ( (FT_PaintFormat_Internal)apaint->format ==
+ FT_COLR_PAINTFORMAT_INTERNAL_SCALE_CENTER ||
+ (FT_PaintFormat_Internal)apaint->format ==
+ FT_COLR_PAINTFORMAT_INTERNAL_SCALE_UNIFORM_CENTER )
+ {
+ apaint->u.scale.center_x = INT_TO_FIXED( FT_NEXT_SHORT ( p ) );
+ apaint->u.scale.center_y = INT_TO_FIXED( FT_NEXT_SHORT ( p ) );
+ }
+ else
+ {
+ apaint->u.scale.center_x = 0;
+ apaint->u.scale.center_y = 0;
+ }
+
+ /* FT 'COLR' v1 API output format always returns fully defined */
+ /* structs; we thus set the format to the public API value. */
+ apaint->format = FT_COLR_PAINTFORMAT_SCALE;
+
+ return 1;
+ }
+
+ else if ( apaint->format == FT_COLR_PAINTFORMAT_ROTATE ||
+ (FT_PaintFormat_Internal)apaint->format ==
+ FT_COLR_PAINTFORMAT_INTERNAL_ROTATE_CENTER )
+ {
+ apaint->u.rotate.paint.p = child_table_p;
+ apaint->u.rotate.paint.insert_root_transform = 0;
+
+ apaint->u.rotate.angle = F2DOT14_TO_FIXED( FT_NEXT_SHORT( p ) );
+
+ if ( (FT_PaintFormat_Internal)apaint->format ==
+ FT_COLR_PAINTFORMAT_INTERNAL_ROTATE_CENTER )
+ {
+ apaint->u.rotate.center_x = INT_TO_FIXED( FT_NEXT_SHORT( p ) );
+ apaint->u.rotate.center_y = INT_TO_FIXED( FT_NEXT_SHORT( p ) );
+ }
+ else
+ {
+ apaint->u.rotate.center_x = 0;
+ apaint->u.rotate.center_y = 0;
+ }
+
+ apaint->format = FT_COLR_PAINTFORMAT_ROTATE;
+
+ return 1;
+ }
+
+ else if ( apaint->format == FT_COLR_PAINTFORMAT_SKEW ||
+ (FT_PaintFormat_Internal)apaint->format ==
+ FT_COLR_PAINTFORMAT_INTERNAL_SKEW_CENTER )
+ {
+ apaint->u.skew.paint.p = child_table_p;
+ apaint->u.skew.paint.insert_root_transform = 0;
+
+ apaint->u.skew.x_skew_angle = F2DOT14_TO_FIXED( FT_NEXT_SHORT( p ) );
+ apaint->u.skew.y_skew_angle = F2DOT14_TO_FIXED( FT_NEXT_SHORT( p ) );
+
+ if ( (FT_PaintFormat_Internal)apaint->format ==
+ FT_COLR_PAINTFORMAT_INTERNAL_SKEW_CENTER )
+ {
+ apaint->u.skew.center_x = INT_TO_FIXED( FT_NEXT_SHORT( p ) );
+ apaint->u.skew.center_y = INT_TO_FIXED( FT_NEXT_SHORT( p ) );
+ }
+ else
+ {
+ apaint->u.skew.center_x = 0;
+ apaint->u.skew.center_y = 0;
+ }
+
+ apaint->format = FT_COLR_PAINTFORMAT_SKEW;
+
+ return 1;
+ }
+
+ else if ( apaint->format == FT_COLR_PAINTFORMAT_COMPOSITE )
+ {
+ FT_UInt composite_mode;
+
+
+ apaint->u.composite.source_paint.p = child_table_p;
+ apaint->u.composite.source_paint.insert_root_transform = 0;
+
+ composite_mode = FT_NEXT_BYTE( p );
+ if ( composite_mode >= FT_COLR_COMPOSITE_MAX )
+ return 0;
+
+ apaint->u.composite.composite_mode = (FT_Composite_Mode)composite_mode;
+
+ if ( !get_child_table_pointer( colr, paint_base, &p, &child_table_p ) )
+ return 0;
+
+ apaint->u.composite.backdrop_paint.p =
+ child_table_p;
+ apaint->u.composite.backdrop_paint.insert_root_transform =
+ 0;
+
+ return 1;
+ }
+
+ return 0;
+ }
+
+
+ static FT_Bool
+ find_base_glyph_v1_record( FT_Byte * base_glyph_begin,
+ FT_UInt num_base_glyph,
+ FT_UInt glyph_id,
+ BaseGlyphV1Record *record )
+ {
+ FT_UInt min = 0;
+ FT_UInt max = num_base_glyph;
+
+
+ while ( min < max )
+ {
+ FT_UInt mid = min + ( max - min ) / 2;
+
+ /*
+ * `base_glyph_begin` is the beginning of `BaseGlyphV1List`;
+ * skip `numBaseGlyphV1Records` by adding 4 to start binary search
+ * in the array of `BaseGlyphV1Record`.
+ */
+ FT_Byte *p = base_glyph_begin + 4 + mid * BASE_GLYPH_PAINT_RECORD_SIZE;
+
+ FT_UShort gid = FT_NEXT_USHORT( p );
+
+
+ if ( gid < glyph_id )
+ min = mid + 1;
+ else if (gid > glyph_id )
+ max = mid;
+ else
+ {
+ record->gid = gid;
+ record->paint_offset = FT_NEXT_ULONG ( p );
+ return 1;
+ }
+ }
+
+ return 0;
+ }
+
+
+ FT_LOCAL_DEF( FT_Bool )
+ tt_face_get_colr_glyph_paint( TT_Face face,
+ FT_UInt base_glyph,
+ FT_Color_Root_Transform root_transform,
+ FT_OpaquePaint* opaque_paint )
+ {
+ Colr* colr = (Colr*)face->colr;
+ BaseGlyphV1Record base_glyph_v1_record;
+ FT_Byte* p;
+
+ if ( !colr || !colr->table )
+ return 0;
+
+ if ( colr->version < 1 || !colr->num_base_glyphs_v1 ||
+ !colr->base_glyphs_v1 )
+ return 0;
+
+ if ( opaque_paint->p )
+ return 0;
+
+ if ( !find_base_glyph_v1_record( colr->base_glyphs_v1,
+ colr->num_base_glyphs_v1,
+ base_glyph,
+ &base_glyph_v1_record ) )
+ return 0;
+
+ if ( !base_glyph_v1_record.paint_offset ||
+ base_glyph_v1_record.paint_offset > colr->table_size )
+ return 0;
+
+ p = (FT_Byte*)( colr->base_glyphs_v1 +
+ base_glyph_v1_record.paint_offset );
+ if ( p >= ( (FT_Byte*)colr->table + colr->table_size ) )
+ return 0;
+
+ opaque_paint->p = p;
+
+ if ( root_transform == FT_COLOR_INCLUDE_ROOT_TRANSFORM )
+ opaque_paint->insert_root_transform = 1;
+ else
+ opaque_paint->insert_root_transform = 0;
+
+ return 1;
+ }
+
+
+ FT_LOCAL_DEF( FT_Bool )
+ tt_face_get_color_glyph_clipbox( TT_Face face,
+ FT_UInt base_glyph,
+ FT_ClipBox* clip_box )
+ {
+ Colr* colr;
+
+ FT_Byte *p, *p1, *clip_base;
+
+ FT_Byte clip_list_format;
+ FT_ULong num_clip_boxes, i;
+ FT_UShort gid_start, gid_end;
+ FT_UInt32 clip_box_offset;
+ FT_Byte format;
+
+ const FT_Byte num_corners = 4;
+ FT_Vector corners[4];
+ FT_Byte j;
+ FT_BBox font_clip_box;
+
+
+ colr = (Colr*)face->colr;
+ if ( !colr )
+ return 0;
+
+ if ( !colr->clip_list )
+ return 0;
+
+ p = colr->clip_list;
+
+ clip_base = p;
+ clip_list_format = FT_NEXT_BYTE ( p );
+
+ /* Format byte used here to be able to upgrade ClipList for >16bit */
+ /* glyph ids; for now we can expect it to be 0. */
+ if ( !( clip_list_format == 1 ) )
+ return 0;
+
+ num_clip_boxes = FT_NEXT_ULONG( p );
+
+ for ( i = 0; i < num_clip_boxes; ++i )
+ {
+ gid_start = FT_NEXT_USHORT( p );
+ gid_end = FT_NEXT_USHORT( p );
+ clip_box_offset = FT_NEXT_UOFF3( p );
+
+ if ( base_glyph >= gid_start && base_glyph <= gid_end )
+ {
+ p1 = (FT_Byte*)( clip_base + clip_box_offset );
+
+ if ( p1 >= ( (FT_Byte*)colr->table + colr->table_size ) )
+ return 0;
+
+ format = FT_NEXT_BYTE( p1 );
+
+ if ( format > 1 )
+ return 0;
+
+ /* `face->root.size->metrics.x_scale` and `y_scale` are factors */
+ /* that scale a font unit value in integers to a 26.6 fixed value */
+ /* according to the requested size, see for example */
+ /* `ft_recompute_scaled_metrics`. */
+ font_clip_box.xMin = FT_MulFix( FT_NEXT_SHORT( p1 ),
+ face->root.size->metrics.x_scale );
+ font_clip_box.yMin = FT_MulFix( FT_NEXT_SHORT( p1 ),
+ face->root.size->metrics.x_scale );
+ font_clip_box.xMax = FT_MulFix( FT_NEXT_SHORT( p1 ),
+ face->root.size->metrics.x_scale );
+ font_clip_box.yMax = FT_MulFix( FT_NEXT_SHORT( p1 ),
+ face->root.size->metrics.x_scale );
+
+ /* Make 4 corner points (xMin, yMin), (xMax, yMax) and transform */
+ /* them. If we we would only transform two corner points and */
+ /* span a rectangle based on those, the rectangle may become too */
+ /* small to cover the glyph. */
+ corners[0].x = font_clip_box.xMin;
+ corners[1].x = font_clip_box.xMin;
+ corners[2].x = font_clip_box.xMax;
+ corners[3].x = font_clip_box.xMax;
+
+ corners[0].y = font_clip_box.yMin;
+ corners[1].y = font_clip_box.yMax;
+ corners[2].y = font_clip_box.yMax;
+ corners[3].y = font_clip_box.yMin;
+
+ for ( j = 0; j < num_corners; ++j )
+ {
+ if ( face->root.internal->transform_flags & 1 )
+ FT_Vector_Transform( &corners[j],
+ &face->root.internal->transform_matrix );
+
+ if ( face->root.internal->transform_flags & 2 )
+ {
+ corners[j].x += face->root.internal->transform_delta.x;
+ corners[j].y += face->root.internal->transform_delta.y;
+ }
+ }
+
+ clip_box->bottom_left = corners[0];
+ clip_box->top_left = corners[1];
+ clip_box->top_right = corners[2];
+ clip_box->bottom_right = corners[3];
+
+ return 1;
+ }
+ }
+
+ return 0;
+ }
+
+
+ FT_LOCAL_DEF( FT_Bool )
+ tt_face_get_paint_layers( TT_Face face,
+ FT_LayerIterator* iterator,
+ FT_OpaquePaint* opaque_paint )
+ {
+ FT_Byte* p = NULL;
+ FT_Byte* p_first_layer = NULL;
+ FT_Byte* p_paint = NULL;
+ FT_UInt32 paint_offset;
+
+ Colr* colr;
+
+
+ if ( iterator->layer == iterator->num_layers )
+ return 0;
+
+ colr = (Colr*)face->colr;
+ if ( !colr )
+ return 0;
+
+ /*
+ * We have an iterator pointing at a paint offset as part of the
+ * `paintOffset` array in `LayerV1List`.
+ */
+ p = iterator->p;
+
+ /*
+ * First ensure that p is within COLRv1.
+ */
+ if ( p < colr->layers_v1 ||
+ p >= ( (FT_Byte*)colr->table + colr->table_size ) )
+ return 0;
+
+ /*
+ * Do a cursor sanity check of the iterator. Counting backwards from
+ * where it stands, we need to end up at a position after the beginning
+ * of the `LayerV1List` table and not after the end of the
+ * `LayerV1List`.
+ */
+ p_first_layer = p -
+ iterator->layer * LAYER_V1_LIST_PAINT_OFFSET_SIZE -
+ LAYER_V1_LIST_NUM_LAYERS_SIZE;
+ if ( p_first_layer < (FT_Byte*)colr->layers_v1 )
+ return 0;
+ if ( p_first_layer >= (FT_Byte*)(
+ colr->layers_v1 + LAYER_V1_LIST_NUM_LAYERS_SIZE +
+ colr->num_layers_v1 * LAYER_V1_LIST_PAINT_OFFSET_SIZE ) )
+ return 0;
+
+ paint_offset =
+ FT_NEXT_ULONG( p );
+ opaque_paint->insert_root_transform =
+ 0;
+
+ p_paint = (FT_Byte*)( colr->layers_v1 + paint_offset );
+
+ if ( p_paint < colr->paints_start_v1 ||
+ p_paint >= ( (FT_Byte*)colr->table + colr->table_size ) )
+ return 0;
+
+ opaque_paint->p = p_paint;
+
+ iterator->p = p;
+
+ iterator->layer++;
+
+ return 1;
+ }
+
+
+ FT_LOCAL_DEF( FT_Bool )
+ tt_face_get_colorline_stops( TT_Face face,
+ FT_ColorStop* color_stop,
+ FT_ColorStopIterator *iterator )
+ {
+ Colr* colr = (Colr*)face->colr;
+
+ FT_Byte* p;
+
+
+ if ( !colr || !colr->table )
+ return 0;
+
+ if ( iterator->current_color_stop >= iterator->num_color_stops )
+ return 0;
+
+ if ( iterator->p +
+ ( ( iterator->num_color_stops - iterator->current_color_stop ) *
+ COLOR_STOP_SIZE ) >
+ ( (FT_Byte *)colr->table + colr->table_size ) )
+ return 0;
+
+ /* Iterator points at first `ColorStop` of `ColorLine`. */
+ p = iterator->p;
+
+ color_stop->stop_offset = FT_NEXT_SHORT( p );
+
+ color_stop->color.palette_index = FT_NEXT_USHORT( p );
+
+ color_stop->color.alpha = FT_NEXT_SHORT( p );
+
+ iterator->p = p;
+ iterator->current_color_stop++;
+
+ return 1;
+ }
+
+
+ FT_LOCAL_DEF( FT_Bool )
+ tt_face_get_paint( TT_Face face,
+ FT_OpaquePaint opaque_paint,
+ FT_COLR_Paint* paint )
+ {
+ Colr* colr = (Colr*)face->colr;
+ FT_OpaquePaint next_paint;
+ FT_Matrix ft_root_scale;
+
+ if ( !colr || !colr->base_glyphs_v1 || !colr->table )
+ return 0;
+
+ if ( opaque_paint.insert_root_transform )
+ {
+ /* 'COLR' v1 glyph information is returned in unscaled coordinates,
+ * i.e., `FT_Size` is not applied or multiplied into the values. When
+ * client applications draw color glyphs, they can request to include
+ * a top-level transform, which includes the active `x_scale` and
+ * `y_scale` information for scaling the glyph, as well the additional
+ * transform and translate configured through `FT_Set_Transform`.
+ * This allows client applications to apply this top-level transform
+ * to the graphics context first and only once, then have gradient and
+ * contour scaling applied correctly when performing the additional
+ * drawing operations for subsequenct paints. Prepare this initial
+ * transform here.
+ */
+ paint->format = FT_COLR_PAINTFORMAT_TRANSFORM;
+
+ next_paint.p = opaque_paint.p;
+ next_paint.insert_root_transform = 0;
+ paint->u.transform.paint = next_paint;
+
+ /* `x_scale` and `y_scale` are in 26.6 format, representing the scale
+ * factor to get from font units to requested size. However, expected
+ * return values are in 16.16, so we shift accordingly with rounding.
+ */
+ ft_root_scale.xx = ( face->root.size->metrics.x_scale + 32 ) >> 6;
+ ft_root_scale.xy = 0;
+ ft_root_scale.yx = 0;
+ ft_root_scale.yy = ( face->root.size->metrics.y_scale + 32 ) >> 6;
+
+ if ( face->root.internal->transform_flags & 1 )
+ FT_Matrix_Multiply( &face->root.internal->transform_matrix,
+ &ft_root_scale );
+
+ paint->u.transform.affine.xx = ft_root_scale.xx;
+ paint->u.transform.affine.xy = ft_root_scale.xy;
+ paint->u.transform.affine.yx = ft_root_scale.yx;
+ paint->u.transform.affine.yy = ft_root_scale.yy;
+
+ /* The translation is specified in 26.6 format and, according to the
+ * documentation of `FT_Set_Translate`, is performed on the character
+ * size given in the last call to `FT_Set_Char_Size`. The
+ * 'PaintTransform' paint table's `FT_Affine23` format expects
+ * values in 16.16 format, thus we need to shift by 10 bits.
+ */
+ if ( face->root.internal->transform_flags & 2 )
+ {
+ paint->u.transform.affine.dx =
+ face->root.internal->transform_delta.x * ( 1 << 10 );
+ paint->u.transform.affine.dy =
+ face->root.internal->transform_delta.y * ( 1 << 10 );
+ }
+ else
+ {
+ paint->u.transform.affine.dx = 0;
+ paint->u.transform.affine.dy = 0;
+ }
+
+ return 1;
+ }
+
+ return read_paint( colr, opaque_paint.p, paint );
+ }
+
+
FT_LOCAL_DEF( FT_Error )
tt_face_colr_blend_layer( TT_Face face,
FT_UInt color_index,
diff --git a/freetype/src/sfnt/ttcolr.h b/freetype/src/sfnt/ttcolr.h
index 64121626..b81e4cb9 100644
--- a/freetype/src/sfnt/ttcolr.h
+++ b/freetype/src/sfnt/ttcolr.h
@@ -4,7 +4,7 @@
*
* TrueType and OpenType colored glyph layer support (specification).
*
- * Copyright (C) 2018-2020 by
+ * Copyright (C) 2018-2021 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* Originally written by Shao Yu Zhang <shaozhang@fb.com>.
@@ -42,6 +42,32 @@ FT_BEGIN_HEADER
FT_UInt *acolor_index,
FT_LayerIterator* iterator );
+ FT_LOCAL( FT_Bool )
+ tt_face_get_colr_glyph_paint( TT_Face face,
+ FT_UInt base_glyph,
+ FT_Color_Root_Transform root_transform,
+ FT_OpaquePaint* paint );
+
+ FT_LOCAL( FT_Bool )
+ tt_face_get_color_glyph_clipbox( TT_Face face,
+ FT_UInt base_glyph,
+ FT_ClipBox* clip_box );
+
+ FT_LOCAL( FT_Bool )
+ tt_face_get_paint_layers( TT_Face face,
+ FT_LayerIterator* iterator,
+ FT_OpaquePaint* paint );
+
+ FT_LOCAL( FT_Bool )
+ tt_face_get_colorline_stops( TT_Face face,
+ FT_ColorStop* color_stop,
+ FT_ColorStopIterator* iterator );
+
+ FT_LOCAL( FT_Bool )
+ tt_face_get_paint( TT_Face face,
+ FT_OpaquePaint opaque_paint,
+ FT_COLR_Paint* paint );
+
FT_LOCAL( FT_Error )
tt_face_colr_blend_layer( TT_Face face,
FT_UInt color_index,
diff --git a/freetype/src/sfnt/ttcpal.c b/freetype/src/sfnt/ttcpal.c
index 9c514baf..a0d84bca 100644
--- a/freetype/src/sfnt/ttcpal.c
+++ b/freetype/src/sfnt/ttcpal.c
@@ -4,7 +4,7 @@
*
* TrueType and OpenType color palette support (body).
*
- * Copyright (C) 2018-2020 by
+ * Copyright (C) 2018-2021 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* Originally written by Shao Yu Zhang <shaozhang@fb.com>.
diff --git a/freetype/src/sfnt/ttcpal.h b/freetype/src/sfnt/ttcpal.h
index b544be69..1c558685 100644
--- a/freetype/src/sfnt/ttcpal.h
+++ b/freetype/src/sfnt/ttcpal.h
@@ -4,7 +4,7 @@
*
* TrueType and OpenType color palette support (specification).
*
- * Copyright (C) 2018-2020 by
+ * Copyright (C) 2018-2021 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* Originally written by Shao Yu Zhang <shaozhang@fb.com>.
diff --git a/freetype/src/sfnt/ttkern.c b/freetype/src/sfnt/ttkern.c
index d4a70c78..bb1922ca 100644
--- a/freetype/src/sfnt/ttkern.c
+++ b/freetype/src/sfnt/ttkern.c
@@ -5,7 +5,7 @@
* Load the basic TrueType kerning table. This doesn't handle
* kerning data within the GPOS table at the moment.
*
- * Copyright (C) 1996-2020 by
+ * Copyright (C) 1996-2021 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
diff --git a/freetype/src/sfnt/ttkern.h b/freetype/src/sfnt/ttkern.h
index f44b5bde..3d8f1e83 100644
--- a/freetype/src/sfnt/ttkern.h
+++ b/freetype/src/sfnt/ttkern.h
@@ -5,7 +5,7 @@
* Load the basic TrueType kerning table. This doesn't handle
* kerning data within the GPOS table at the moment.
*
- * Copyright (C) 1996-2020 by
+ * Copyright (C) 1996-2021 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
diff --git a/freetype/src/sfnt/ttload.c b/freetype/src/sfnt/ttload.c
index 4b46f413..51416d80 100644
--- a/freetype/src/sfnt/ttload.c
+++ b/freetype/src/sfnt/ttload.c
@@ -5,7 +5,7 @@
* Load the basic TrueType tables, i.e., tables that can be either in
* TTF or OTF fonts (body).
*
- * Copyright (C) 1996-2020 by
+ * Copyright (C) 1996-2021 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
@@ -416,9 +416,9 @@
FT_FRAME_ENTER( sfnt.num_tables * 16L ) )
goto Exit;
- FT_TRACE2(( "\n"
- " tag offset length checksum\n"
- " ----------------------------------\n" ));
+ FT_TRACE2(( "\n" ));
+ FT_TRACE2(( " tag offset length checksum\n" ));
+ FT_TRACE2(( " ----------------------------------\n" ));
valid_entries = 0;
for ( nn = 0; nn < sfnt.num_tables; nn++ )
@@ -505,7 +505,8 @@
FT_FRAME_EXIT();
- FT_TRACE2(( "table directory loaded\n\n" ));
+ FT_TRACE2(( "table directory loaded\n" ));
+ FT_TRACE2(( "\n" ));
Exit:
return error;
@@ -794,8 +795,8 @@
if ( maxProfile->maxTwilightPoints > ( 0xFFFFU - 4 ) )
{
FT_TRACE0(( "tt_face_load_maxp:"
- " too much twilight points in `maxp' table;\n"
- " "
+ " too much twilight points in `maxp' table;\n" ));
+ FT_TRACE0(( " "
" some glyphs might be rendered incorrectly\n" ));
maxProfile->maxTwilightPoints = 0xFFFFU - 4;
@@ -836,6 +837,8 @@
FT_ULong table_pos, table_len;
FT_ULong storage_start, storage_limit;
TT_NameTable table;
+ TT_Name names = NULL;
+ TT_LangTag langTags = NULL;
static const FT_Frame_Field name_table_fields[] =
{
@@ -916,13 +919,13 @@
storage_start += 2 + 4 * table->numLangTagRecords;
/* allocate language tag records array */
- if ( FT_NEW_ARRAY( table->langTags, table->numLangTagRecords ) ||
- FT_FRAME_ENTER( table->numLangTagRecords * 4 ) )
+ if ( FT_QNEW_ARRAY( langTags, table->numLangTagRecords ) ||
+ FT_FRAME_ENTER( table->numLangTagRecords * 4 ) )
goto Exit;
/* load language tags */
{
- TT_LangTag entry = table->langTags;
+ TT_LangTag entry = langTags;
TT_LangTag limit = FT_OFFSET( entry, table->numLangTagRecords );
@@ -938,7 +941,13 @@
/* invalid entry; ignore it */
entry->stringLength = 0;
}
+
+ /* mark the string as not yet loaded */
+ entry->string = NULL;
}
+
+ table->langTags = langTags;
+ langTags = NULL;
}
FT_FRAME_EXIT();
@@ -947,14 +956,15 @@
}
/* allocate name records array */
- if ( FT_NEW_ARRAY( table->names, table->numNameRecords ) ||
- FT_FRAME_ENTER( table->numNameRecords * 12 ) )
+ if ( FT_QNEW_ARRAY( names, table->numNameRecords ) ||
+ FT_FRAME_ENTER( table->numNameRecords * 12 ) )
goto Exit;
/* load name records */
{
- TT_Name entry = table->names;
+ TT_Name entry = names;
FT_UInt count = table->numNameRecords;
+ FT_UInt valid = 0;
for ( ; count > 0; count-- )
@@ -987,15 +997,20 @@
}
}
+ /* mark the string as not yet converted */
+ entry->string = NULL;
+
+ valid++;
entry++;
}
/* reduce array size to the actually used elements */
- count = (FT_UInt)( entry - table->names );
- (void)FT_RENEW_ARRAY( table->names,
- table->numNameRecords,
- count );
- table->numNameRecords = count;
+ FT_MEM_QRENEW_ARRAY( names,
+ table->numNameRecords,
+ valid );
+ table->names = names;
+ names = NULL;
+ table->numNameRecords = valid;
}
FT_FRAME_EXIT();
@@ -1004,6 +1019,8 @@
face->num_names = (FT_UShort)table->numNameRecords;
Exit:
+ FT_FREE( names );
+ FT_FREE( langTags );
return error;
}
@@ -1311,6 +1328,12 @@
if ( FT_STREAM_READ_FIELDS( post_fields, post ) )
return error;
+ if ( post->FormatType != 0x00030000L &&
+ post->FormatType != 0x00025000L &&
+ post->FormatType != 0x00020000L &&
+ post->FormatType != 0x00010000L )
+ return FT_THROW( Invalid_Post_Table_Format );
+
/* we don't load the glyph names, we do that in another */
/* module (ttpost). */
@@ -1410,8 +1433,8 @@
FT_Error error;
FT_Memory memory = stream->memory;
- FT_UInt j,num_ranges;
- TT_GaspRange gaspranges = NULL;
+ FT_UShort j, num_ranges;
+ TT_GaspRange gasp_ranges = NULL;
/* the gasp table is optional */
@@ -1422,8 +1445,8 @@
if ( FT_FRAME_ENTER( 4L ) )
goto Exit;
- face->gasp.version = FT_GET_USHORT();
- face->gasp.numRanges = FT_GET_USHORT();
+ face->gasp.version = FT_GET_USHORT();
+ num_ranges = FT_GET_USHORT();
FT_FRAME_EXIT();
@@ -1435,29 +1458,31 @@
goto Exit;
}
- num_ranges = face->gasp.numRanges;
- FT_TRACE3(( "numRanges: %u\n", num_ranges ));
+ FT_TRACE3(( "numRanges: %hu\n", num_ranges ));
- if ( FT_QNEW_ARRAY( face->gasp.gaspRanges, num_ranges ) ||
- FT_FRAME_ENTER( num_ranges * 4L ) )
+ if ( FT_QNEW_ARRAY( gasp_ranges, num_ranges ) ||
+ FT_FRAME_ENTER( num_ranges * 4L ) )
goto Exit;
- gaspranges = face->gasp.gaspRanges;
-
for ( j = 0; j < num_ranges; j++ )
{
- gaspranges[j].maxPPEM = FT_GET_USHORT();
- gaspranges[j].gaspFlag = FT_GET_USHORT();
+ gasp_ranges[j].maxPPEM = FT_GET_USHORT();
+ gasp_ranges[j].gaspFlag = FT_GET_USHORT();
FT_TRACE3(( "gaspRange %d: rangeMaxPPEM %5d, rangeGaspBehavior 0x%x\n",
j,
- gaspranges[j].maxPPEM,
- gaspranges[j].gaspFlag ));
+ gasp_ranges[j].maxPPEM,
+ gasp_ranges[j].gaspFlag ));
}
+ face->gasp.gaspRanges = gasp_ranges;
+ gasp_ranges = NULL;
+ face->gasp.numRanges = num_ranges;
+
FT_FRAME_EXIT();
Exit:
+ FT_FREE( gasp_ranges );
return error;
}
diff --git a/freetype/src/sfnt/ttload.h b/freetype/src/sfnt/ttload.h
index 4e53d8b7..cab15cd2 100644
--- a/freetype/src/sfnt/ttload.h
+++ b/freetype/src/sfnt/ttload.h
@@ -5,7 +5,7 @@
* Load the basic TrueType tables, i.e., tables that can be either in
* TTF or OTF fonts (specification).
*
- * Copyright (C) 1996-2020 by
+ * Copyright (C) 1996-2021 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
diff --git a/freetype/src/sfnt/ttmtx.c b/freetype/src/sfnt/ttmtx.c
index 02112333..7aece36f 100644
--- a/freetype/src/sfnt/ttmtx.c
+++ b/freetype/src/sfnt/ttmtx.c
@@ -4,7 +4,7 @@
*
* Load the metrics tables common to TTF and OTF fonts (body).
*
- * Copyright (C) 2006-2020 by
+ * Copyright (C) 2006-2021 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
diff --git a/freetype/src/sfnt/ttmtx.h b/freetype/src/sfnt/ttmtx.h
index dba65ca9..270170d4 100644
--- a/freetype/src/sfnt/ttmtx.h
+++ b/freetype/src/sfnt/ttmtx.h
@@ -4,7 +4,7 @@
*
* Load the metrics tables common to TTF and OTF fonts (specification).
*
- * Copyright (C) 2006-2020 by
+ * Copyright (C) 2006-2021 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
diff --git a/freetype/src/sfnt/ttpost.c b/freetype/src/sfnt/ttpost.c
index e93a4bf1..b92ca5db 100644
--- a/freetype/src/sfnt/ttpost.c
+++ b/freetype/src/sfnt/ttpost.c
@@ -5,7 +5,7 @@
* PostScript name table processing for TrueType and OpenType fonts
* (body).
*
- * Copyright (C) 1996-2020 by
+ * Copyright (C) 1996-2021 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
@@ -158,7 +158,7 @@
static FT_Error
load_format_20( TT_Face face,
FT_Stream stream,
- FT_ULong post_limit )
+ FT_ULong post_len )
{
FT_Memory memory = stream->memory;
FT_Error error;
@@ -168,6 +168,7 @@
FT_UShort* glyph_indices = NULL;
FT_Char** name_strings = NULL;
+ FT_Byte* strings = NULL;
if ( FT_READ_USHORT( num_glyphs ) )
@@ -179,7 +180,8 @@
/* There already exist fonts which have more than 32768 glyph names */
/* in this table, so the test for this threshold has been dropped. */
- if ( num_glyphs > face->max_profile.numGlyphs )
+ if ( num_glyphs > face->max_profile.numGlyphs ||
+ (FT_ULong)num_glyphs * 2UL > post_len - 2 )
{
error = FT_THROW( Invalid_File_Format );
goto Exit;
@@ -190,7 +192,7 @@
FT_Int n;
- if ( FT_NEW_ARRAY ( glyph_indices, num_glyphs ) ||
+ if ( FT_QNEW_ARRAY( glyph_indices, num_glyphs ) ||
FT_FRAME_ENTER( num_glyphs * 2L ) )
goto Fail;
@@ -223,60 +225,56 @@
}
/* now load the name strings */
+ if ( num_names )
{
FT_UShort n;
+ FT_ULong p;
- if ( FT_NEW_ARRAY( name_strings, num_names ) )
+ post_len -= (FT_ULong)num_glyphs * 2UL + 2;
+
+ if ( FT_QALLOC( strings, post_len + 1 ) ||
+ FT_STREAM_READ( strings, post_len ) ||
+ FT_QNEW_ARRAY( name_strings, num_names ) )
goto Fail;
- for ( n = 0; n < num_names; n++ )
+ /* convert from Pascal- to C-strings and set pointers */
+ for ( p = 0, n = 0; p < post_len && n < num_names; n++ )
{
- FT_UInt len;
+ FT_UInt len = strings[p];
- if ( FT_STREAM_POS() >= post_limit )
- break;
- else
+ if ( len > 63U )
{
- FT_TRACE6(( "load_format_20: %ld byte left in post table\n",
- post_limit - FT_STREAM_POS() ));
-
- if ( FT_READ_BYTE( len ) )
- goto Fail1;
- }
-
- if ( len > post_limit ||
- FT_STREAM_POS() > post_limit - len )
- {
- FT_Int d = (FT_Int)post_limit - (FT_Int)FT_STREAM_POS();
-
-
- FT_ERROR(( "load_format_20:"
- " exceeding string length (%d),"
- " truncating at end of post table (%d byte left)\n",
- len, d ));
- len = (FT_UInt)FT_MAX( 0, d );
+ error = FT_THROW( Invalid_File_Format );
+ goto Fail;
}
- if ( FT_NEW_ARRAY( name_strings[n], len + 1 ) ||
- FT_STREAM_READ( name_strings[n], len ) )
- goto Fail1;
-
- name_strings[n][len] = '\0';
+ strings[p] = 0;
+ name_strings[n] = (FT_Char*)strings + p + 1;
+ p += len + 1;
}
+ strings[post_len] = 0;
+ /* deal with missing or insufficient string data */
if ( n < num_names )
{
+ if ( post_len == 0 )
+ {
+ /* fake empty string */
+ if ( FT_QREALLOC( strings, 1, 2 ) )
+ goto Fail;
+
+ post_len = 1;
+ strings[post_len] = 0;
+ }
+
FT_ERROR(( "load_format_20:"
" all entries in post table are already parsed,"
" using NULL names for gid %d - %d\n",
n, num_names - 1 ));
for ( ; n < num_names; n++ )
- if ( FT_NEW_ARRAY( name_strings[n], 1 ) )
- goto Fail1;
- else
- name_strings[n][0] = '\0';
+ name_strings[n] = (FT_Char*)strings + post_len;
}
}
@@ -292,17 +290,9 @@
}
return FT_Err_Ok;
- Fail1:
- {
- FT_UShort n;
-
-
- for ( n = 0; n < num_names; n++ )
- FT_FREE( name_strings[n] );
- }
-
Fail:
FT_FREE( name_strings );
+ FT_FREE( strings );
FT_FREE( glyph_indices );
Exit:
@@ -313,7 +303,7 @@
static FT_Error
load_format_25( TT_Face face,
FT_Stream stream,
- FT_ULong post_limit )
+ FT_ULong post_len )
{
FT_Memory memory = stream->memory;
FT_Error error;
@@ -321,7 +311,7 @@
FT_Int num_glyphs;
FT_Char* offset_table = NULL;
- FT_UNUSED( post_limit );
+ FT_UNUSED( post_len );
if ( FT_READ_USHORT( num_glyphs ) )
@@ -336,7 +326,7 @@
goto Exit;
}
- if ( FT_NEW_ARRAY( offset_table, num_glyphs ) ||
+ if ( FT_QNEW_ARRAY( offset_table, num_glyphs ) ||
FT_STREAM_READ( offset_table, num_glyphs ) )
goto Fail;
@@ -384,7 +374,6 @@
FT_Error error;
FT_Fixed format;
FT_ULong post_len;
- FT_ULong post_limit;
/* get a stream for the face's resource */
@@ -395,8 +384,6 @@
if ( error )
goto Exit;
- post_limit = FT_STREAM_POS() + post_len;
-
format = face->postscript.FormatType;
/* go to beginning of subtable */
@@ -404,10 +391,10 @@
goto Exit;
/* now read postscript table */
- if ( format == 0x00020000L )
- error = load_format_20( face, stream, post_limit );
- else if ( format == 0x00025000L )
- error = load_format_25( face, stream, post_limit );
+ if ( format == 0x00020000L && post_len >= 34 )
+ error = load_format_20( face, stream, post_len - 32 );
+ else if ( format == 0x00025000L && post_len >= 34 )
+ error = load_format_25( face, stream, post_len - 32 );
else
error = FT_THROW( Invalid_File_Format );
@@ -433,17 +420,19 @@
if ( format == 0x00020000L )
{
TT_Post_20 table = &names->names.format_20;
- FT_UShort n;
FT_FREE( table->glyph_indices );
table->num_glyphs = 0;
- for ( n = 0; n < table->num_names; n++ )
- FT_FREE( table->glyph_names[n] );
+ if ( table->num_names )
+ {
+ table->glyph_names[0]--;
+ FT_FREE( table->glyph_names[0] );
- FT_FREE( table->glyph_names );
- table->num_names = 0;
+ FT_FREE( table->glyph_names );
+ table->num_names = 0;
+ }
}
else if ( format == 0x00025000L )
{
diff --git a/freetype/src/sfnt/ttpost.h b/freetype/src/sfnt/ttpost.h
index 94c7d168..6d65b576 100644
--- a/freetype/src/sfnt/ttpost.h
+++ b/freetype/src/sfnt/ttpost.h
@@ -5,7 +5,7 @@
* PostScript name table processing for TrueType and OpenType fonts
* (specification).
*
- * Copyright (C) 1996-2020 by
+ * Copyright (C) 1996-2021 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
diff --git a/freetype/src/sfnt/ttsbit.c b/freetype/src/sfnt/ttsbit.c
index 9dd44197..e9ba697d 100644
--- a/freetype/src/sfnt/ttsbit.c
+++ b/freetype/src/sfnt/ttsbit.c
@@ -4,7 +4,7 @@
*
* TrueType and OpenType embedded bitmap support (body).
*
- * Copyright (C) 2005-2020 by
+ * Copyright (C) 2005-2021 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* Copyright 2013 by Google, Inc.
@@ -172,13 +172,17 @@
goto Exit;
}
+#ifdef FT_DEBUG_LEVEL_TRACE
/* we currently don't support bit 1; however, it is better to */
/* draw at least something... */
if ( flags == 3 )
+ {
FT_TRACE1(( "tt_face_load_sbit_strikes:"
- " sbix overlay not supported yet\n"
- " "
+ " sbix overlay not supported yet\n" ));
+ FT_TRACE1(( " "
" expect bad rendering results\n" ));
+ }
+#endif
/*
* Count the number of strikes available in the table. We are a bit
@@ -240,8 +244,8 @@
if ( !face->ebdt_size )
{
FT_TRACE2(( "tt_face_load_sbit_strikes:"
- " no embedded bitmap data table found;\n"
- " "
+ " no embedded bitmap data table found;\n" ));
+ FT_TRACE2(( " "
" resetting number of strikes to zero\n" ));
face->sbit_num_strikes = 0;
}
@@ -345,8 +349,8 @@
if ( metrics->ascender == 0 )
{
FT_TRACE2(( "tt_face_load_strike_metrics:"
- " sanitizing invalid ascender and descender\n"
- " "
+ " sanitizing invalid ascender and descender\n" ));
+ FT_TRACE2(( " "
" values for strike %ld (%dppem, %dppem)\n",
strike_index,
metrics->x_ppem, metrics->y_ppem ));
@@ -374,8 +378,8 @@
if ( metrics->height == 0 )
{
FT_TRACE2(( "tt_face_load_strike_metrics:"
- " sanitizing invalid height value\n"
- " "
+ " sanitizing invalid height value\n" ));
+ FT_TRACE2(( " "
" for strike (%d, %d)\n",
metrics->x_ppem, metrics->y_ppem ));
metrics->height = metrics->y_ppem * 64;
diff --git a/freetype/src/sfnt/ttsbit.h b/freetype/src/sfnt/ttsbit.h
index b867e43a..7a0ed92e 100644
--- a/freetype/src/sfnt/ttsbit.h
+++ b/freetype/src/sfnt/ttsbit.h
@@ -4,7 +4,7 @@
*
* TrueType and OpenType embedded bitmap support (specification).
*
- * Copyright (C) 1996-2020 by
+ * Copyright (C) 1996-2021 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
diff --git a/freetype/src/sfnt/woff2tags.c b/freetype/src/sfnt/woff2tags.c
index fd9f2e6c..fe8f5cf7 100644
--- a/freetype/src/sfnt/woff2tags.c
+++ b/freetype/src/sfnt/woff2tags.c
@@ -4,7 +4,7 @@
*
* WOFF2 Font table tags (base).
*
- * Copyright (C) 2019-2020 by
+ * Copyright (C) 2019-2021 by
* Nikhil Ramakrishnan, David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
@@ -17,6 +17,9 @@
#include <freetype/tttags.h>
+
+#ifdef FT_CONFIG_OPTION_USE_BROTLI
+
#include "woff2tags.h"
/*
@@ -28,10 +31,10 @@
*
* for details.
*/
- FT_LOCAL_DEF( FT_ULong )
+ FT_LOCAL_DEF( FT_Tag )
woff2_known_tags( FT_Byte index )
{
- const FT_ULong known_tags[63] =
+ static const FT_Tag known_tags[63] =
{
FT_MAKE_TAG('c', 'm', 'a', 'p'), /* 0 */
FT_MAKE_TAG('h', 'e', 'a', 'd'), /* 1 */
@@ -105,5 +108,12 @@
return known_tags[index];
}
+#else /* !FT_CONFIG_OPTION_USE_BROTLI */
+
+ /* ANSI C doesn't like empty source files */
+ typedef int _woff2tags_dummy;
+
+#endif /* !FT_CONFIG_OPTION_USE_BROTLI */
+
/* END */
diff --git a/freetype/src/sfnt/woff2tags.h b/freetype/src/sfnt/woff2tags.h
index c437c77a..4ef0a651 100644
--- a/freetype/src/sfnt/woff2tags.h
+++ b/freetype/src/sfnt/woff2tags.h
@@ -2,9 +2,9 @@
*
* woff2tags.h
*
- * WOFFF2 Font table tags (specification).
+ * WOFF2 Font table tags (specification).
*
- * Copyright (C) 2019-2020 by
+ * Copyright (C) 2019-2021 by
* Nikhil Ramakrishnan, David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
@@ -26,10 +26,12 @@
FT_BEGIN_HEADER
+#ifdef FT_CONFIG_OPTION_USE_BROTLI
- FT_LOCAL( FT_ULong )
+ FT_LOCAL( FT_Tag )
woff2_known_tags( FT_Byte index );
+#endif
FT_END_HEADER
diff --git a/freetype/src/smooth/ftgrays.c b/freetype/src/smooth/ftgrays.c
index 681900fd..d982c282 100644
--- a/freetype/src/smooth/ftgrays.c
+++ b/freetype/src/smooth/ftgrays.c
@@ -4,7 +4,7 @@
*
* A new `perfect' anti-aliasing renderer (body).
*
- * Copyright (C) 2000-2020 by
+ * Copyright (C) 2000-2021 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
@@ -149,14 +149,10 @@
#define FT_INT_MAX INT_MAX
#define FT_ULONG_MAX ULONG_MAX
-#define ADD_LONG( a, b ) \
- (long)( (unsigned long)(a) + (unsigned long)(b) )
-#define SUB_LONG( a, b ) \
- (long)( (unsigned long)(a) - (unsigned long)(b) )
-#define MUL_LONG( a, b ) \
- (long)( (unsigned long)(a) * (unsigned long)(b) )
-#define NEG_LONG( a ) \
- (long)( -(unsigned long)(a) )
+#define ADD_INT( a, b ) \
+ (int)( (unsigned int)(a) + (unsigned int)(b) )
+
+#define FT_STATIC_BYTE_CAST( type, var ) (type)(unsigned char)(var)
#define ft_memset memset
@@ -168,10 +164,11 @@
typedef ptrdiff_t FT_PtrDist;
-#define ErrRaster_Invalid_Mode -2
-#define ErrRaster_Invalid_Outline -1
-#define ErrRaster_Invalid_Argument -3
-#define ErrRaster_Memory_Overflow -4
+#define Smooth_Err_Ok 0
+#define Smooth_Err_Invalid_Outline -1
+#define Smooth_Err_Cannot_Render_Glyph -2
+#define Smooth_Err_Invalid_Argument -3
+#define Smooth_Err_Raster_Overflow -4
#define FT_BEGIN_HEADER
#define FT_END_HEADER
@@ -229,23 +226,26 @@ typedef ptrdiff_t FT_PtrDist;
#define FT_ERROR( varformat ) FT_Message varformat
#endif
-#define FT_THROW( e ) \
- ( FT_Throw( FT_ERR_CAT( ErrRaster_, e ), \
- __LINE__, \
- __FILE__ ) | \
- FT_ERR_CAT( ErrRaster_, e ) )
+#define FT_THROW( e ) \
+ ( FT_Throw( FT_ERR_CAT( Smooth_Err_, e ), \
+ __LINE__, \
+ __FILE__ ) | \
+ FT_ERR_CAT( Smooth_Err_, e ) )
#else /* !FT_DEBUG_LEVEL_TRACE */
#define FT_TRACE5( x ) do { } while ( 0 ) /* nothing */
#define FT_TRACE7( x ) do { } while ( 0 ) /* nothing */
#define FT_ERROR( x ) do { } while ( 0 ) /* nothing */
-#define FT_THROW( e ) FT_ERR_CAT( ErrRaster_, e )
-
+#define FT_THROW( e ) FT_ERR_CAT( Smooth_Err_, e )
#endif /* !FT_DEBUG_LEVEL_TRACE */
+#define FT_Trace_Enable() do { } while ( 0 ) /* nothing */
+#define FT_Trace_Disable() do { } while ( 0 ) /* nothing */
+
+
#define FT_DEFINE_OUTLINE_FUNCS( class_, \
move_to_, line_to_, \
conic_to_, cubic_to_, \
@@ -278,6 +278,8 @@ typedef ptrdiff_t FT_PtrDist;
#else /* !STANDALONE_ */
+#include <ft2build.h>
+#include FT_CONFIG_CONFIG_H
#include "ftgrays.h"
#include <freetype/internal/ftobjs.h>
#include <freetype/internal/ftdebug.h>
@@ -286,10 +288,6 @@ typedef ptrdiff_t FT_PtrDist;
#include "ftsmerrs.h"
-#define Smooth_Err_Invalid_Mode Smooth_Err_Cannot_Render_Glyph
-#define Smooth_Err_Memory_Overflow Smooth_Err_Out_Of_Memory
-#define ErrRaster_Memory_Overflow Smooth_Err_Out_Of_Memory
-
#endif /* !STANDALONE_ */
@@ -362,7 +360,7 @@ typedef ptrdiff_t FT_PtrDist;
} \
FT_END_STMNT
-#ifdef __arm__
+#if defined( __GNUC__ ) && __GNUC__ < 7 && defined( __arm__ )
/* Work around a bug specific to GCC which make the compiler fail to */
/* optimize a division and modulo operation on the same parameters */
/* into a single call to `__aeabi_idivmod'. See */
@@ -382,14 +380,58 @@ typedef ptrdiff_t FT_PtrDist;
#endif /* __arm__ */
- /* These macros speed up repetitive divisions by replacing them */
- /* with multiplications and right shifts. */
-#define FT_UDIVPREP( c, b ) \
- long b ## _r = c ? (long)( FT_ULONG_MAX >> PIXEL_BITS ) / ( b ) \
- : 0
-#define FT_UDIV( a, b ) \
- (TCoord)( ( (unsigned long)( a ) * (unsigned long)( b ## _r ) ) >> \
- ( sizeof( long ) * FT_CHAR_BIT - PIXEL_BITS ) )
+ /* Calculating coverages for a slanted line requires a division each */
+ /* time the line crosses from cell to cell. These macros speed up */
+ /* the repetitive divisions by replacing them with multiplications */
+ /* and right shifts so that at most two divisions are performed for */
+ /* each slanted line. Nevertheless, these divisions are noticeable */
+ /* in the overall performance because flattened curves produce a */
+ /* very large number of slanted lines. */
+ /* */
+ /* The division results here are always within ONE_PIXEL. Therefore */
+ /* the shift magnitude should be at least PIXEL_BITS wider than the */
+ /* divisors to provide sufficient accuracy of the multiply-shift. */
+ /* It should not exceed (64 - PIXEL_BITS) to prevent overflowing and */
+ /* leave enough room for 64-bit unsigned multiplication however. */
+#define FT_UDIVPREP( c, b ) \
+ FT_Int64 b ## _r = c ? (FT_Int64)0xFFFFFFFF / ( b ) : 0
+#define FT_UDIV( a, b ) \
+ (TCoord)( ( (FT_UInt64)( a ) * (FT_UInt64)( b ## _r ) ) >> 32 )
+
+
+ /* Scale area and apply fill rule to calculate the coverage byte. */
+ /* The top fill bit is used for the non-zero rule. The eighth */
+ /* fill bit is used for the even-odd rule. The higher coverage */
+ /* bytes are either clamped for the non-zero-rule or discarded */
+ /* later for the even-odd rule. */
+#define FT_FILL_RULE( coverage, area, fill ) \
+ FT_BEGIN_STMNT \
+ coverage = (int)( area >> ( PIXEL_BITS * 2 + 1 - 8 ) ); \
+ if ( coverage & fill ) \
+ coverage = ~coverage; \
+ if ( coverage > 255 && fill & INT_MIN ) \
+ coverage = 255; \
+ FT_END_STMNT
+
+
+ /* It is faster to write small spans byte-by-byte than calling */
+ /* `memset'. This is mainly due to the cost of the function call. */
+#define FT_GRAY_SET( d, s, count ) \
+ FT_BEGIN_STMNT \
+ unsigned char* q = d; \
+ switch ( count ) \
+ { \
+ case 7: *q++ = (unsigned char)s; /* fall through */ \
+ case 6: *q++ = (unsigned char)s; /* fall through */ \
+ case 5: *q++ = (unsigned char)s; /* fall through */ \
+ case 4: *q++ = (unsigned char)s; /* fall through */ \
+ case 3: *q++ = (unsigned char)s; /* fall through */ \
+ case 2: *q++ = (unsigned char)s; /* fall through */ \
+ case 1: *q = (unsigned char)s; /* fall through */ \
+ case 0: break; \
+ default: FT_MEM_SET( d, s, count ); \
+ } \
+ FT_END_STMNT
/**************************************************************************
@@ -432,7 +474,7 @@ typedef ptrdiff_t FT_PtrDist;
#endif
/* FT_Span buffer size for direct rendering only */
-#define FT_MAX_GRAY_SPANS 10
+#define FT_MAX_GRAY_SPANS 16
#if defined( _MSC_VER ) /* Visual C++ (and Intel C++) */
@@ -447,28 +489,24 @@ typedef ptrdiff_t FT_PtrDist;
{
ft_jmp_buf jump_buffer;
- TCoord ex, ey;
- TCoord min_ex, max_ex;
+ TCoord min_ex, max_ex; /* min and max integer pixel coordinates */
TCoord min_ey, max_ey;
+ TCoord count_ey; /* same as (max_ey - min_ey) */
- TArea area;
- TCoord cover;
- int invalid;
+ PCell cell; /* current cell */
+ PCell cell_free; /* call allocation next free slot */
+ PCell cell_null; /* last cell, used as dumpster and limit */
- PCell* ycells;
- PCell cells;
- FT_PtrDist max_cells;
- FT_PtrDist num_cells;
+ PCell* ycells; /* array of cell linked-lists; one per */
+ /* vertical coordinate in the current band */
- TPos x, y;
+ TPos x, y; /* last point position */
- FT_Outline outline;
- TPixmap target;
+ FT_Outline outline; /* input outline */
+ TPixmap target; /* target pixmap */
FT_Raster_Span_Func render_span;
void* render_span_data;
- FT_Span spans[FT_MAX_GRAY_SPANS];
- int num_spans;
} gray_TWorker, *gray_PWorker;
@@ -476,17 +514,25 @@ typedef ptrdiff_t FT_PtrDist;
#pragma warning( pop )
#endif
-
#ifndef FT_STATIC_RASTER
#define ras (*worker)
#else
static gray_TWorker ras;
#endif
+ /* The |x| value of the null cell. Must be the largest possible */
+ /* integer value stored in a `TCell.x` field. */
+#define CELL_MAX_X_VALUE INT_MAX
+
+
+#define FT_INTEGRATE( ras, a, b ) \
+ ras.cell->cover = ADD_INT( ras.cell->cover, a ), \
+ ras.cell->area = ADD_INT( ras.cell->area, (a) * (TArea)(b) )
+
typedef struct gray_TRaster_
{
- void* memory;
+ void* memory;
} gray_TRaster, *gray_PRaster;
@@ -508,7 +554,7 @@ typedef ptrdiff_t FT_PtrDist;
printf( "%3d:", y );
- for ( ; cell != NULL; cell = cell->next )
+ for ( ; cell != ras.cell_null; cell = cell->next )
printf( " (%3d, c:%4d, a:%6d)",
cell->x, cell->cover, cell->area );
printf( "\n" );
@@ -520,81 +566,67 @@ typedef ptrdiff_t FT_PtrDist;
/**************************************************************************
*
- * Record the current cell in the linked list.
+ * Set the current cell to a new position.
*/
static void
- gray_record_cell( RAS_ARG )
+ gray_set_cell( RAS_ARG_ TCoord ex,
+ TCoord ey )
{
- PCell *pcell, cell;
- TCoord x = ras.ex;
-
+ /* Move the cell pointer to a new position in the linked list. We use */
+ /* a dumpster null cell for everything outside of the clipping region */
+ /* during the render phase. This means that: */
+ /* */
+ /* . the new vertical position must be within min_ey..max_ey-1. */
+ /* . the new horizontal position must be strictly less than max_ex */
+ /* */
+ /* Note that if a cell is to the left of the clipping region, it is */
+ /* actually set to the (min_ex-1) horizontal position. */
- pcell = &ras.ycells[ras.ey - ras.min_ey];
- while ( ( cell = *pcell ) )
- {
- if ( cell->x > x )
- break;
+ TCoord ey_index = ey - ras.min_ey;
- if ( cell->x == x )
- goto Found;
- pcell = &cell->next;
- }
+ if ( ey_index < 0 || ey_index >= ras.count_ey || ex >= ras.max_ex )
+ ras.cell = ras.cell_null;
+ else
+ {
+ PCell* pcell = ras.ycells + ey_index;
+ PCell cell;
- if ( ras.num_cells >= ras.max_cells )
- ft_longjmp( ras.jump_buffer, 1 );
- /* insert new cell */
- cell = ras.cells + ras.num_cells++;
- cell->x = x;
- cell->area = ras.area;
- cell->cover = ras.cover;
+ ex = FT_MAX( ex, ras.min_ex - 1 );
- cell->next = *pcell;
- *pcell = cell;
+ while ( 1 )
+ {
+ cell = *pcell;
- return;
+ if ( cell->x > ex )
+ break;
- Found:
- /* update old cell */
- cell->area += ras.area;
- cell->cover += ras.cover;
- }
+ if ( cell->x == ex )
+ goto Found;
+ pcell = &cell->next;
+ }
- /**************************************************************************
- *
- * Set the current cell to a new position.
- */
- static void
- gray_set_cell( RAS_ARG_ TCoord ex,
- TCoord ey )
- {
- /* Move the cell pointer to a new position. We set the `invalid' */
- /* flag to indicate that the cell isn't part of those we're interested */
- /* in during the render phase. This means that: */
- /* */
- /* . the new vertical position must be within min_ey..max_ey-1. */
- /* . the new horizontal position must be strictly less than max_ex */
- /* */
- /* Note that if a cell is to the left of the clipping region, it is */
- /* actually set to the (min_ex-1) horizontal position. */
+ /* insert new cell */
+ cell = ras.cell_free++;
+ if ( cell >= ras.cell_null )
+ ft_longjmp( ras.jump_buffer, 1 );
- /* record the current one if it is valid and substantial */
- if ( !ras.invalid && ( ras.area || ras.cover ) )
- gray_record_cell( RAS_VAR );
+ cell->x = ex;
+ cell->area = 0;
+ cell->cover = 0;
- ras.area = 0;
- ras.cover = 0;
- ras.ex = FT_MAX( ex, ras.min_ex - 1 );
- ras.ey = ey;
+ cell->next = *pcell;
+ *pcell = cell;
- ras.invalid = ( ey >= ras.max_ey || ey < ras.min_ey ||
- ex >= ras.max_ex );
+ Found:
+ ras.cell = cell;
+ }
}
-#ifndef FT_LONG64
+#ifndef FT_INT64
/**************************************************************************
*
@@ -622,8 +654,8 @@ typedef ptrdiff_t FT_PtrDist;
return;
}
- fx1 = FRACT( x1 );
- fx2 = FRACT( x2 );
+ fx1 = FRACT( x1 );
+ fx2 = FRACT( x2 );
/* everything is located in a single cell. That is easy! */
/* */
@@ -655,10 +687,9 @@ typedef ptrdiff_t FT_PtrDist;
/* XXX: y-delta and x-delta below should be related. */
FT_DIV_MOD( TCoord, p, dx, delta, mod );
- ras.area += (TArea)( ( fx1 + first ) * delta );
- ras.cover += delta;
- y1 += delta;
- ex1 += incr;
+ FT_INTEGRATE( ras, delta, fx1 + first );
+ y1 += delta;
+ ex1 += incr;
gray_set_cell( RAS_VAR_ ex1, ey );
if ( ex1 != ex2 )
@@ -679,10 +710,9 @@ typedef ptrdiff_t FT_PtrDist;
delta++;
}
- ras.area += (TArea)( ONE_PIXEL * delta );
- ras.cover += delta;
- y1 += delta;
- ex1 += incr;
+ FT_INTEGRATE( ras, delta, ONE_PIXEL );
+ y1 += delta;
+ ex1 += incr;
gray_set_cell( RAS_VAR_ ex1, ey );
} while ( ex1 != ex2 );
}
@@ -690,10 +720,7 @@ typedef ptrdiff_t FT_PtrDist;
fx1 = ONE_PIXEL - first;
End:
- dy = y2 - y1;
-
- ras.area += (TArea)( ( fx1 + fx2 ) * dy );
- ras.cover += dy;
+ FT_INTEGRATE( ras, y2 - y1, fx1 + fx2 );
}
@@ -736,7 +763,6 @@ typedef ptrdiff_t FT_PtrDist;
{
TCoord ex = TRUNC( ras.x );
TCoord two_fx = FRACT( ras.x ) << 1;
- TArea area;
if ( dy > 0)
@@ -750,27 +776,23 @@ typedef ptrdiff_t FT_PtrDist;
incr = -1;
}
- delta = first - fy1;
- ras.area += (TArea)two_fx * delta;
- ras.cover += delta;
- ey1 += incr;
+ delta = first - fy1;
+ FT_INTEGRATE( ras, delta, two_fx);
+ ey1 += incr;
gray_set_cell( RAS_VAR_ ex, ey1 );
delta = first + first - ONE_PIXEL;
- area = (TArea)two_fx * delta;
while ( ey1 != ey2 )
{
- ras.area += area;
- ras.cover += delta;
- ey1 += incr;
+ FT_INTEGRATE( ras, delta, two_fx);
+ ey1 += incr;
gray_set_cell( RAS_VAR_ ex, ey1 );
}
- delta = fy2 - ONE_PIXEL + first;
- ras.area += (TArea)two_fx * delta;
- ras.cover += delta;
+ delta = fy2 - ONE_PIXEL + first;
+ FT_INTEGRATE( ras, delta, two_fx);
goto End;
}
@@ -883,8 +905,7 @@ typedef ptrdiff_t FT_PtrDist;
do
{
fy2 = ONE_PIXEL;
- ras.cover += ( fy2 - fy1 );
- ras.area += ( fy2 - fy1 ) * fx1 * 2;
+ FT_INTEGRATE( ras, fy2 - fy1, fx1 * 2 );
fy1 = 0;
ey1++;
gray_set_cell( RAS_VAR_ ex1, ey1 );
@@ -893,8 +914,7 @@ typedef ptrdiff_t FT_PtrDist;
do
{
fy2 = 0;
- ras.cover += ( fy2 - fy1 );
- ras.area += ( fy2 - fy1 ) * fx1 * 2;
+ FT_INTEGRATE( ras, fy2 - fy1, fx1 * 2 );
fy1 = ONE_PIXEL;
ey1--;
gray_set_cell( RAS_VAR_ ex1, ey1 );
@@ -902,7 +922,7 @@ typedef ptrdiff_t FT_PtrDist;
}
else /* any other line */
{
- TPos prod = dx * (TPos)fy1 - dy * (TPos)fx1;
+ FT_Int64 prod = dx * (FT_Int64)fy1 - dy * (FT_Int64)fx1;
FT_UDIVPREP( ex1 != ex2, dx );
FT_UDIVPREP( ey1 != ey2, dy );
@@ -912,72 +932,308 @@ typedef ptrdiff_t FT_PtrDist;
/* also easily updated when moving from one cell to the next. */
do
{
- if ( prod <= 0 &&
- prod - dx * ONE_PIXEL > 0 ) /* left */
+ if ( prod - dx * ONE_PIXEL > 0 &&
+ prod <= 0 ) /* left */
{
fx2 = 0;
fy2 = FT_UDIV( -prod, -dx );
prod -= dy * ONE_PIXEL;
- ras.cover += ( fy2 - fy1 );
- ras.area += ( fy2 - fy1 ) * ( fx1 + fx2 );
+ FT_INTEGRATE( ras, fy2 - fy1, fx1 + fx2 );
fx1 = ONE_PIXEL;
fy1 = fy2;
ex1--;
}
- else if ( prod - dx * ONE_PIXEL <= 0 &&
- prod - dx * ONE_PIXEL + dy * ONE_PIXEL > 0 ) /* up */
+ else if ( prod - dx * ONE_PIXEL + dy * ONE_PIXEL > 0 &&
+ prod - dx * ONE_PIXEL <= 0 ) /* up */
{
prod -= dx * ONE_PIXEL;
fx2 = FT_UDIV( -prod, dy );
fy2 = ONE_PIXEL;
- ras.cover += ( fy2 - fy1 );
- ras.area += ( fy2 - fy1 ) * ( fx1 + fx2 );
+ FT_INTEGRATE( ras, fy2 - fy1, fx1 + fx2 );
fx1 = fx2;
fy1 = 0;
ey1++;
}
- else if ( prod - dx * ONE_PIXEL + dy * ONE_PIXEL <= 0 &&
- prod + dy * ONE_PIXEL >= 0 ) /* right */
+ else if ( prod + dy * ONE_PIXEL >= 0 &&
+ prod - dx * ONE_PIXEL + dy * ONE_PIXEL <= 0 ) /* right */
{
prod += dy * ONE_PIXEL;
fx2 = ONE_PIXEL;
fy2 = FT_UDIV( prod, dx );
- ras.cover += ( fy2 - fy1 );
- ras.area += ( fy2 - fy1 ) * ( fx1 + fx2 );
+ FT_INTEGRATE( ras, fy2 - fy1, fx1 + fx2 );
fx1 = 0;
fy1 = fy2;
ex1++;
}
- else /* ( prod + dy * ONE_PIXEL < 0 &&
- prod > 0 ) down */
+ else /* ( prod > 0 &&
+ prod + dy * ONE_PIXEL < 0 ) down */
{
fx2 = FT_UDIV( prod, -dy );
fy2 = 0;
prod += dx * ONE_PIXEL;
- ras.cover += ( fy2 - fy1 );
- ras.area += ( fy2 - fy1 ) * ( fx1 + fx2 );
+ FT_INTEGRATE( ras, fy2 - fy1, fx1 + fx2 );
fx1 = fx2;
fy1 = ONE_PIXEL;
ey1--;
}
gray_set_cell( RAS_VAR_ ex1, ey1 );
+
} while ( ex1 != ex2 || ey1 != ey2 );
}
fx2 = FRACT( to_x );
fy2 = FRACT( to_y );
- ras.cover += ( fy2 - fy1 );
- ras.area += ( fy2 - fy1 ) * ( fx1 + fx2 );
+ FT_INTEGRATE( ras, fy2 - fy1, fx1 + fx2 );
End:
- ras.x = to_x;
- ras.y = to_y;
+ ras.x = to_x;
+ ras.y = to_y;
}
#endif
+ /*
+ * Benchmarking shows that using DDA to flatten the quadratic Bézier arcs
+ * is slightly faster in the following cases:
+ *
+ * - When the host CPU is 64-bit.
+ * - When SSE2 SIMD registers and instructions are available (even on
+ * x86).
+ *
+ * For other cases, using binary splits is actually slightly faster.
+ */
+#if defined( __SSE2__ ) || \
+ defined( __x86_64__ ) || \
+ defined( _M_AMD64 ) || \
+ ( defined( _M_IX86_FP ) && _M_IX86_FP >= 2 )
+# define FT_SSE2 1
+#else
+# define FT_SSE2 0
+#endif
+
+#if FT_SSE2 || \
+ defined( __aarch64__ ) || \
+ defined( _M_ARM64 )
+# define BEZIER_USE_DDA 1
+#else
+# define BEZIER_USE_DDA 0
+#endif
+
+ /*
+ * For now, the code that depends on `BEZIER_USE_DDA` requires `FT_Int64`
+ * to be defined. If `FT_INT64` is not defined, meaning there is no
+ * 64-bit type available, disable it to avoid compilation errors. See for
+ * example https://gitlab.freedesktop.org/freetype/freetype/-/issues/1071.
+ */
+#if !defined( FT_INT64 )
+# undef BEZIER_USE_DDA
+# define BEZIER_USE_DDA 0
+#endif
+
+#if BEZIER_USE_DDA
+
+#if FT_SSE2
+# include <emmintrin.h>
+#endif
+
+#define LEFT_SHIFT( a, b ) (FT_Int64)( (FT_UInt64)(a) << (b) )
+
+
+ static void
+ gray_render_conic( RAS_ARG_ const FT_Vector* control,
+ const FT_Vector* to )
+ {
+ FT_Vector p0, p1, p2;
+ TPos ax, ay, bx, by, dx, dy;
+ int shift;
+
+ FT_Int64 rx, ry;
+ FT_Int64 qx, qy;
+ FT_Int64 px, py;
+
+ FT_UInt count;
+
+
+ p0.x = ras.x;
+ p0.y = ras.y;
+ p1.x = UPSCALE( control->x );
+ p1.y = UPSCALE( control->y );
+ p2.x = UPSCALE( to->x );
+ p2.y = UPSCALE( to->y );
+
+ /* short-cut the arc that crosses the current band */
+ if ( ( TRUNC( p0.y ) >= ras.max_ey &&
+ TRUNC( p1.y ) >= ras.max_ey &&
+ TRUNC( p2.y ) >= ras.max_ey ) ||
+ ( TRUNC( p0.y ) < ras.min_ey &&
+ TRUNC( p1.y ) < ras.min_ey &&
+ TRUNC( p2.y ) < ras.min_ey ) )
+ {
+ ras.x = p2.x;
+ ras.y = p2.y;
+ return;
+ }
+
+ bx = p1.x - p0.x;
+ by = p1.y - p0.y;
+ ax = p2.x - p1.x - bx; /* p0.x + p2.x - 2 * p1.x */
+ ay = p2.y - p1.y - by; /* p0.y + p2.y - 2 * p1.y */
+
+ dx = FT_ABS( ax );
+ dy = FT_ABS( ay );
+ if ( dx < dy )
+ dx = dy;
+
+ if ( dx <= ONE_PIXEL / 4 )
+ {
+ gray_render_line( RAS_VAR_ p2.x, p2.y );
+ return;
+ }
+
+ /* We can calculate the number of necessary bisections because */
+ /* each bisection predictably reduces deviation exactly 4-fold. */
+ /* Even 32-bit deviation would vanish after 16 bisections. */
+ shift = 0;
+ do
+ {
+ dx >>= 2;
+ shift += 1;
+
+ } while ( dx > ONE_PIXEL / 4 );
+
+ /*
+ * The (P0,P1,P2) arc equation, for t in [0,1] range:
+ *
+ * P(t) = P0*(1-t)^2 + P1*2*t*(1-t) + P2*t^2
+ *
+ * P(t) = P0 + 2*(P1-P0)*t + (P0+P2-2*P1)*t^2
+ * = P0 + 2*B*t + A*t^2
+ *
+ * for A = P0 + P2 - 2*P1
+ * and B = P1 - P0
+ *
+ * Let's consider the difference when advancing by a small
+ * parameter h:
+ *
+ * Q(h,t) = P(t+h) - P(t) = 2*B*h + A*h^2 + 2*A*h*t
+ *
+ * And then its own difference:
+ *
+ * R(h,t) = Q(h,t+h) - Q(h,t) = 2*A*h*h = R (constant)
+ *
+ * Since R is always a constant, it is possible to compute
+ * successive positions with:
+ *
+ * P = P0
+ * Q = Q(h,0) = 2*B*h + A*h*h
+ * R = 2*A*h*h
+ *
+ * loop:
+ * P += Q
+ * Q += R
+ * EMIT(P)
+ *
+ * To ensure accurate results, perform computations on 64-bit
+ * values, after scaling them by 2^32.
+ *
+ * h = 1 / 2^N
+ *
+ * R << 32 = 2 * A << (32 - N - N)
+ * = A << (33 - 2*N)
+ *
+ * Q << 32 = (2 * B << (32 - N)) + (A << (32 - N - N))
+ * = (B << (33 - N)) + (A << (32 - 2*N))
+ */
+
+#if FT_SSE2
+ /* Experience shows that for small shift values, */
+ /* SSE2 is actually slower. */
+ if ( shift > 2 )
+ {
+ union
+ {
+ struct { FT_Int64 ax, ay, bx, by; } i;
+ struct { __m128i a, b; } vec;
+
+ } u;
+
+ union
+ {
+ struct { FT_Int32 px_lo, px_hi, py_lo, py_hi; } i;
+ __m128i vec;
+
+ } v;
+
+ __m128i a, b;
+ __m128i r, q, q2;
+ __m128i p;
+
+
+ u.i.ax = ax;
+ u.i.ay = ay;
+ u.i.bx = bx;
+ u.i.by = by;
+
+ a = _mm_load_si128( &u.vec.a );
+ b = _mm_load_si128( &u.vec.b );
+
+ r = _mm_slli_epi64( a, 33 - 2 * shift );
+ q = _mm_slli_epi64( b, 33 - shift );
+ q2 = _mm_slli_epi64( a, 32 - 2 * shift );
+
+ q = _mm_add_epi64( q2, q );
+
+ v.i.px_lo = 0;
+ v.i.px_hi = p0.x;
+ v.i.py_lo = 0;
+ v.i.py_hi = p0.y;
+
+ p = _mm_load_si128( &v.vec );
+
+ for ( count = 1U << shift; count > 0; count-- )
+ {
+ p = _mm_add_epi64( p, q );
+ q = _mm_add_epi64( q, r );
+
+ _mm_store_si128( &v.vec, p );
+
+ gray_render_line( RAS_VAR_ v.i.px_hi, v.i.py_hi );
+ }
+
+ return;
+ }
+#endif /* FT_SSE2 */
+
+ rx = LEFT_SHIFT( ax, 33 - 2 * shift );
+ ry = LEFT_SHIFT( ay, 33 - 2 * shift );
+
+ qx = LEFT_SHIFT( bx, 33 - shift ) + LEFT_SHIFT( ax, 32 - 2 * shift );
+ qy = LEFT_SHIFT( by, 33 - shift ) + LEFT_SHIFT( ay, 32 - 2 * shift );
+
+ px = LEFT_SHIFT( p0.x, 32 );
+ py = LEFT_SHIFT( p0.y, 32 );
+
+ for ( count = 1U << shift; count > 0; count-- )
+ {
+ px += qx;
+ py += qy;
+ qx += rx;
+ qy += ry;
+
+ gray_render_line( RAS_VAR_ (FT_Pos)( px >> 32 ),
+ (FT_Pos)( py >> 32 ) );
+ }
+ }
+
+#else /* !BEZIER_USE_DDA */
+
+ /*
+ * Note that multiple attempts to speed up the function below
+ * with SSE2 intrinsics, using various data layouts, have turned
+ * out to be slower than the non-SIMD code below.
+ */
static void
gray_split_conic( FT_Vector* base )
{
@@ -1007,7 +1263,7 @@ typedef ptrdiff_t FT_PtrDist;
FT_Vector bez_stack[16 * 2 + 1]; /* enough to accommodate bisections */
FT_Vector* arc = bez_stack;
TPos dx, dy;
- int draw, split;
+ int draw;
arc[0].x = UPSCALE( to->x );
@@ -1050,7 +1306,9 @@ typedef ptrdiff_t FT_PtrDist;
/* many times as there are trailing zeros in the counter. */
do
{
- split = draw & ( -draw ); /* isolate the rightmost 1-bit */
+ int split = draw & ( -draw ); /* isolate the rightmost 1-bit */
+
+
while ( ( split >>= 1 ) )
{
gray_split_conic( arc );
@@ -1063,7 +1321,17 @@ typedef ptrdiff_t FT_PtrDist;
} while ( --draw );
}
+#endif /* !BEZIER_USE_DDA */
+
+ /*
+ * For cubic Bézier, binary splits are still faster than DDA
+ * because the splits are adaptive to how quickly each sub-arc
+ * approaches their chord trisection points.
+ *
+ * It might be useful to experiment with SSE2 to speed up
+ * `gray_split_cubic`, though.
+ */
static void
gray_split_cubic( FT_Vector* base )
{
@@ -1205,125 +1473,133 @@ typedef ptrdiff_t FT_PtrDist;
static void
- gray_hline( RAS_ARG_ TCoord x,
- TCoord y,
- TArea coverage,
- TCoord acount )
+ gray_sweep( RAS_ARG )
{
- /* scale the coverage from 0..(ONE_PIXEL*ONE_PIXEL*2) to 0..256 */
- coverage >>= PIXEL_BITS * 2 + 1 - 8;
+ int fill = ( ras.outline.flags & FT_OUTLINE_EVEN_ODD_FILL ) ? 0x100
+ : INT_MIN;
+ int coverage;
+ int y;
- /* compute the line's coverage depending on the outline fill rule */
- if ( ras.outline.flags & FT_OUTLINE_EVEN_ODD_FILL )
- {
- coverage &= 511;
- if ( coverage >= 256 )
- coverage = 511 - coverage;
- }
- else /* default non-zero winding rule */
+ for ( y = ras.min_ey; y < ras.max_ey; y++ )
{
- if ( coverage < 0 )
- coverage = ~coverage; /* the same as -coverage - 1 */
+ PCell cell = ras.ycells[y - ras.min_ey];
+ TCoord x = ras.min_ex;
+ TArea cover = 0;
- if ( coverage >= 256 )
- coverage = 255;
- }
+ unsigned char* line = ras.target.origin - ras.target.pitch * y;
- if ( ras.num_spans >= 0 ) /* for FT_RASTER_FLAG_DIRECT only */
- {
- FT_Span* span = ras.spans + ras.num_spans++;
+
+ for ( ; cell != ras.cell_null; cell = cell->next )
+ {
+ TArea area;
- span->x = (short)x;
- span->len = (unsigned short)acount;
- span->coverage = (unsigned char)coverage;
+ if ( cover != 0 && cell->x > x )
+ {
+ FT_FILL_RULE( coverage, cover, fill );
+ FT_GRAY_SET( line + x, coverage, cell->x - x );
+ }
- if ( ras.num_spans == FT_MAX_GRAY_SPANS )
- {
- /* flush the span buffer and reset the count */
- ras.render_span( y, ras.num_spans, ras.spans, ras.render_span_data );
- ras.num_spans = 0;
- }
- }
- else
- {
- unsigned char* q = ras.target.origin - ras.target.pitch * y + x;
- unsigned char c = (unsigned char)coverage;
+ cover += (TArea)cell->cover * ( ONE_PIXEL * 2 );
+ area = cover - cell->area;
+ if ( area != 0 && cell->x >= ras.min_ex )
+ {
+ FT_FILL_RULE( coverage, area, fill );
+ line[cell->x] = (unsigned char)coverage;
+ }
+
+ x = cell->x + 1;
+ }
- /* For small-spans it is faster to do it by ourselves than
- * calling `memset'. This is mainly due to the cost of the
- * function call.
- */
- switch ( acount )
+ if ( cover != 0 ) /* only if cropped */
{
- case 7:
- *q++ = c;
- /* fall through */
- case 6:
- *q++ = c;
- /* fall through */
- case 5:
- *q++ = c;
- /* fall through */
- case 4:
- *q++ = c;
- /* fall through */
- case 3:
- *q++ = c;
- /* fall through */
- case 2:
- *q++ = c;
- /* fall through */
- case 1:
- *q = c;
- /* fall through */
- case 0:
- break;
- default:
- FT_MEM_SET( q, c, acount );
+ FT_FILL_RULE( coverage, cover, fill );
+ FT_GRAY_SET( line + x, coverage, ras.max_ex - x );
}
}
}
static void
- gray_sweep( RAS_ARG )
+ gray_sweep_direct( RAS_ARG )
{
+ int fill = ( ras.outline.flags & FT_OUTLINE_EVEN_ODD_FILL ) ? 0x100
+ : INT_MIN;
+ int coverage;
int y;
+ FT_Span span[FT_MAX_GRAY_SPANS];
+ int n = 0;
+
for ( y = ras.min_ey; y < ras.max_ey; y++ )
{
PCell cell = ras.ycells[y - ras.min_ey];
TCoord x = ras.min_ex;
TArea cover = 0;
- TArea area;
- for ( ; cell != NULL; cell = cell->next )
+ for ( ; cell != ras.cell_null; cell = cell->next )
{
+ TArea area;
+
+
if ( cover != 0 && cell->x > x )
- gray_hline( RAS_VAR_ x, y, cover, cell->x - x );
+ {
+ FT_FILL_RULE( coverage, cover, fill );
+
+ span[n].coverage = (unsigned char)coverage;
+ span[n].x = (short)x;
+ span[n].len = (unsigned short)( cell->x - x );
+
+ if ( ++n == FT_MAX_GRAY_SPANS )
+ {
+ /* flush the span buffer and reset the count */
+ ras.render_span( y, n, span, ras.render_span_data );
+ n = 0;
+ }
+ }
cover += (TArea)cell->cover * ( ONE_PIXEL * 2 );
area = cover - cell->area;
if ( area != 0 && cell->x >= ras.min_ex )
- gray_hline( RAS_VAR_ cell->x, y, area, 1 );
+ {
+ FT_FILL_RULE( coverage, area, fill );
+
+ span[n].coverage = (unsigned char)coverage;
+ span[n].x = (short)cell->x;
+ span[n].len = 1;
+
+ if ( ++n == FT_MAX_GRAY_SPANS )
+ {
+ /* flush the span buffer and reset the count */
+ ras.render_span( y, n, span, ras.render_span_data );
+ n = 0;
+ }
+ }
x = cell->x + 1;
}
- if ( cover != 0 )
- gray_hline( RAS_VAR_ x, y, cover, ras.max_ex - x );
+ if ( cover != 0 ) /* only if cropped */
+ {
+ FT_FILL_RULE( coverage, cover, fill );
+
+ span[n].coverage = (unsigned char)coverage;
+ span[n].x = (short)x;
+ span[n].len = (unsigned short)( ras.max_ex - x );
+
+ ++n;
+ }
- if ( ras.num_spans > 0 ) /* for FT_RASTER_FLAG_DIRECT only */
+ if ( n )
{
/* flush the span buffer and reset the count */
- ras.render_span( y, ras.num_spans, ras.spans, ras.render_span_data );
- ras.num_spans = 0;
+ ras.render_span( y, n, span, ras.render_span_data );
+ n = 0;
}
}
}
@@ -1604,7 +1880,7 @@ typedef ptrdiff_t FT_PtrDist;
}
FT_TRACE5(( "FT_Outline_Decompose: Done\n", n ));
- return 0;
+ return Smooth_Err_Ok;
Exit:
FT_TRACE5(( "FT_Outline_Decompose: Error 0x%x\n", error ));
@@ -1645,18 +1921,15 @@ typedef ptrdiff_t FT_PtrDist;
if ( continued )
FT_Trace_Enable();
- if ( !ras.invalid )
- gray_record_cell( RAS_VAR );
-
- FT_TRACE7(( "band [%d..%d]: %ld cell%s\n",
+ FT_TRACE7(( "band [%d..%d]: %ld cell%s remaining/\n",
ras.min_ey,
ras.max_ey,
- ras.num_cells,
- ras.num_cells == 1 ? "" : "s" ));
+ ras.cell_null - ras.cell_free,
+ ras.cell_null - ras.cell_free == 1 ? "" : "s" ));
}
else
{
- error = FT_THROW( Memory_Overflow );
+ error = FT_THROW( Raster_Overflow );
FT_TRACE7(( "band [%d..%d]: to be bisected\n",
ras.min_ey, ras.max_ey ));
@@ -1682,7 +1955,16 @@ typedef ptrdiff_t FT_PtrDist;
int continued = 0;
+ /* Initialize the null cell at the end of the poll. */
+ ras.cell_null = buffer + FT_MAX_GRAY_POOL - 1;
+ ras.cell_null->x = CELL_MAX_X_VALUE;
+ ras.cell_null->area = 0;
+ ras.cell_null->cover = 0;
+ ras.cell_null->next = NULL;
+
/* set up vertical bands */
+ ras.ycells = (PCell*)buffer;
+
if ( height > n )
{
/* two divisions rounded up */
@@ -1690,13 +1972,6 @@ typedef ptrdiff_t FT_PtrDist;
height = ( height + n - 1 ) / n;
}
- /* memory management */
- n = ( height * sizeof ( PCell ) + sizeof ( TCell ) - 1 ) / sizeof ( TCell );
-
- ras.cells = buffer + n;
- ras.max_cells = (FT_PtrDist)( FT_MAX_GRAY_POOL - n );
- ras.ycells = (PCell*)buffer;
-
for ( y = yMin; y < yMax; )
{
ras.min_ey = y;
@@ -1710,27 +1985,37 @@ typedef ptrdiff_t FT_PtrDist;
do
{
TCoord width = band[0] - band[1];
+ TCoord w;
int error;
- FT_MEM_ZERO( ras.ycells, height * sizeof ( PCell ) );
+ for ( w = 0; w < width; ++w )
+ ras.ycells[w] = ras.cell_null;
- ras.num_cells = 0;
- ras.invalid = 1;
+ /* memory management: skip ycells */
+ n = ( (size_t)width * sizeof ( PCell ) + sizeof ( TCell ) - 1 ) /
+ sizeof ( TCell );
+
+ ras.cell_free = buffer + n;
+ ras.cell = ras.cell_null;
ras.min_ey = band[1];
ras.max_ey = band[0];
+ ras.count_ey = width;
error = gray_convert_glyph_inner( RAS_VAR, continued );
continued = 1;
if ( !error )
{
- gray_sweep( RAS_VAR );
+ if ( ras.render_span ) /* for FT_RASTER_FLAG_DIRECT only */
+ gray_sweep_direct( RAS_VAR );
+ else
+ gray_sweep( RAS_VAR );
band--;
continue;
}
- else if ( error != ErrRaster_Memory_Overflow )
- return 1;
+ else if ( error != Smooth_Err_Raster_Overflow )
+ return error;
/* render pool overflow; we will reduce the render band by half */
width >>= 1;
@@ -1739,7 +2024,7 @@ typedef ptrdiff_t FT_PtrDist;
if ( width == 0 )
{
FT_TRACE7(( "gray_convert_glyph: rotten glyph\n" ));
- return 1;
+ return FT_THROW( Raster_Overflow );
}
band++;
@@ -1748,7 +2033,7 @@ typedef ptrdiff_t FT_PtrDist;
} while ( band >= bands );
}
- return 0;
+ return Smooth_Err_Ok;
}
@@ -1769,14 +2054,14 @@ typedef ptrdiff_t FT_PtrDist;
/* this version does not support monochrome rendering */
if ( !( params->flags & FT_RASTER_FLAG_AA ) )
- return FT_THROW( Invalid_Mode );
+ return FT_THROW( Cannot_Render_Glyph );
if ( !outline )
return FT_THROW( Invalid_Outline );
/* return immediately if the outline is empty */
if ( outline->n_points == 0 || outline->n_contours <= 0 )
- return 0;
+ return Smooth_Err_Ok;
if ( !outline->contours || !outline->points )
return FT_THROW( Invalid_Outline );
@@ -1790,11 +2075,10 @@ typedef ptrdiff_t FT_PtrDist;
if ( params->flags & FT_RASTER_FLAG_DIRECT )
{
if ( !params->gray_spans )
- return 0;
+ return Smooth_Err_Ok;
ras.render_span = (FT_Raster_Span_Func)params->gray_spans;
ras.render_span_data = params->user;
- ras.num_spans = 0;
ras.min_ex = params->clip_box.xMin;
ras.min_ey = params->clip_box.yMin;
@@ -1809,7 +2093,7 @@ typedef ptrdiff_t FT_PtrDist;
/* nothing to do */
if ( !target_map->width || !target_map->rows )
- return 0;
+ return Smooth_Err_Ok;
if ( !target_map->buffer )
return FT_THROW( Invalid_Argument );
@@ -1824,7 +2108,6 @@ typedef ptrdiff_t FT_PtrDist;
ras.render_span = (FT_Raster_Span_Func)NULL;
ras.render_span_data = NULL;
- ras.num_spans = -1; /* invalid */
ras.min_ex = 0;
ras.min_ey = 0;
@@ -1834,7 +2117,7 @@ typedef ptrdiff_t FT_PtrDist;
/* exit if nothing to do */
if ( ras.max_ex <= ras.min_ex || ras.max_ey <= ras.min_ey )
- return 0;
+ return Smooth_Err_Ok;
return gray_convert_glyph( RAS_VAR );
}
@@ -1871,19 +2154,17 @@ typedef ptrdiff_t FT_PtrDist;
#else /* !STANDALONE_ */
static int
- gray_raster_new( FT_Memory memory,
- FT_Raster* araster )
+ gray_raster_new( FT_Memory memory,
+ gray_PRaster* araster )
{
FT_Error error;
gray_PRaster raster = NULL;
- *araster = 0;
- if ( !FT_ALLOC( raster, sizeof ( gray_TRaster ) ) )
- {
+ if ( !FT_NEW( raster ) )
raster->memory = memory;
- *araster = (FT_Raster)raster;
- }
+
+ *araster = raster;
return error;
}
diff --git a/freetype/src/smooth/ftgrays.h b/freetype/src/smooth/ftgrays.h
index caba6328..3dad0498 100644
--- a/freetype/src/smooth/ftgrays.h
+++ b/freetype/src/smooth/ftgrays.h
@@ -4,7 +4,7 @@
*
* FreeType smooth renderer declaration
*
- * Copyright (C) 1996-2020 by
+ * Copyright (C) 1996-2021 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
diff --git a/freetype/src/smooth/ftsmerrs.h b/freetype/src/smooth/ftsmerrs.h
index e93f3df9..dc2c40cc 100644
--- a/freetype/src/smooth/ftsmerrs.h
+++ b/freetype/src/smooth/ftsmerrs.h
@@ -4,7 +4,7 @@
*
* smooth renderer error codes (specification only).
*
- * Copyright (C) 2001-2020 by
+ * Copyright (C) 2001-2021 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
diff --git a/freetype/src/smooth/ftsmooth.c b/freetype/src/smooth/ftsmooth.c
index 5d66bd6f..bea3b4a8 100644
--- a/freetype/src/smooth/ftsmooth.c
+++ b/freetype/src/smooth/ftsmooth.c
@@ -4,7 +4,7 @@
*
* Anti-aliasing renderer interface (body).
*
- * Copyright (C) 2000-2020 by
+ * Copyright (C) 2000-2021 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
diff --git a/freetype/src/smooth/ftsmooth.h b/freetype/src/smooth/ftsmooth.h
index 22a88d54..2dd81e84 100644
--- a/freetype/src/smooth/ftsmooth.h
+++ b/freetype/src/smooth/ftsmooth.h
@@ -4,7 +4,7 @@
*
* Anti-aliasing renderer interface (specification).
*
- * Copyright (C) 1996-2020 by
+ * Copyright (C) 1996-2021 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
diff --git a/freetype/src/smooth/module.mk b/freetype/src/smooth/module.mk
index 9b1507f1..ec6537f1 100644
--- a/freetype/src/smooth/module.mk
+++ b/freetype/src/smooth/module.mk
@@ -3,7 +3,7 @@
#
-# Copyright (C) 1996-2020 by
+# Copyright (C) 1996-2021 by
# David Turner, Robert Wilhelm, and Werner Lemberg.
#
# This file is part of the FreeType project, and may only be used, modified,
diff --git a/freetype/src/smooth/rules.mk b/freetype/src/smooth/rules.mk
index b08056fa..de701d91 100644
--- a/freetype/src/smooth/rules.mk
+++ b/freetype/src/smooth/rules.mk
@@ -3,7 +3,7 @@
#
-# Copyright (C) 1996-2020 by
+# Copyright (C) 1996-2021 by
# David Turner, Robert Wilhelm, and Werner Lemberg.
#
# This file is part of the FreeType project, and may only be used, modified,
diff --git a/freetype/src/smooth/smooth.c b/freetype/src/smooth/smooth.c
index 04b531c0..9e254406 100644
--- a/freetype/src/smooth/smooth.c
+++ b/freetype/src/smooth/smooth.c
@@ -4,7 +4,7 @@
*
* FreeType anti-aliasing rasterer module component (body only).
*
- * Copyright (C) 1996-2020 by
+ * Copyright (C) 1996-2021 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
diff --git a/freetype/src/tools/afblue.pl b/freetype/src/tools/afblue.pl
index bbc4f472..95481627 100644
--- a/freetype/src/tools/afblue.pl
+++ b/freetype/src/tools/afblue.pl
@@ -5,7 +5,7 @@
#
# Process a blue zone character data file.
#
-# Copyright (C) 2013-2020 by
+# Copyright (C) 2013-2021 by
# David Turner, Robert Wilhelm, and Werner Lemberg.
#
# This file is part of the FreeType project, and may only be used,
diff --git a/freetype/src/tools/apinames.c b/freetype/src/tools/apinames.c
index aeecf88d..8a8b0822 100644
--- a/freetype/src/tools/apinames.c
+++ b/freetype/src/tools/apinames.c
@@ -22,7 +22,7 @@
#include <ctype.h>
#define PROGRAM_NAME "apinames"
-#define PROGRAM_VERSION "0.3"
+#define PROGRAM_VERSION "0.4"
#define LINEBUFF_SIZE 1024
@@ -33,6 +33,7 @@ typedef enum OutputFormat_
OUTPUT_WINDOWS_DEF, /* output a Windows .DEF file for Visual C++ or Mingw */
OUTPUT_BORLAND_DEF, /* output a Windows .DEF file for Borland C++ */
OUTPUT_WATCOM_LBC, /* output a Watcom Linker Command File */
+ OUTPUT_VMS_OPT, /* output an OpenVMS Linker Option File */
OUTPUT_NETWARE_IMP, /* output a NetWare ImportFile */
OUTPUT_GNU_VERMAP /* output a version map for GNU or Solaris linker */
@@ -167,7 +168,6 @@ names_dump( FILE* out,
case OUTPUT_WATCOM_LBC:
{
const char* dot;
- char temp[512];
if ( !dll_name )
@@ -181,7 +181,8 @@ names_dump( FILE* out,
dot = strchr( dll_name, '.' );
if ( dot )
{
- int len = dot - dll_name;
+ char temp[512];
+ int len = dot - dll_name;
if ( len > (int)( sizeof ( temp ) - 1 ) )
@@ -200,6 +201,16 @@ names_dump( FILE* out,
break;
+ case OUTPUT_VMS_OPT:
+ fprintf( out, "GSMATCH=LEQUAL,2,0\n"
+ "CASE_SENSITIVE=YES\n"
+ "SYMBOL_VECTOR=(-\n" );
+ for ( nn = 0; nn < num_names - 1; nn++ )
+ fprintf( out, " %s=PROCEDURE,-\n", the_names[nn].name );
+ fprintf( out, " %s=PROCEDURE)\n", the_names[num_names - 1].name );
+
+ break;
+
case OUTPUT_NETWARE_IMP:
if ( dll_name )
fprintf( out, " (%s)\n", dll_name );
@@ -352,6 +363,7 @@ usage( void )
" -w output .DEF file for Visual C++ and Mingw\n"
" -wB output .DEF file for Borland C++\n"
" -wW output Watcom Linker Response File\n"
+ " -wV output OpenVMS Linker Options File\n"
" -wN output NetWare Import File\n"
" -wL output version map for GNU or Solaris linker\n"
"\n";
@@ -445,6 +457,10 @@ main( int argc,
format = OUTPUT_WATCOM_LBC;
break;
+ case 'V':
+ format = OUTPUT_VMS_OPT;
+ break;
+
case 'N':
format = OUTPUT_NETWARE_IMP;
break;
diff --git a/freetype/src/tools/chktrcmp.py b/freetype/src/tools/chktrcmp.py
index 4c40bdaf..244a24a6 100755
--- a/freetype/src/tools/chktrcmp.py
+++ b/freetype/src/tools/chktrcmp.py
@@ -1,7 +1,7 @@
#!/usr/bin/env python
#
# Check trace components in FreeType 2 source.
-# Author: suzuki toshiya, 2009, 2013
+# Author: suzuki toshiya, 2009, 2013, 2020
#
# This code is explicitly into the public domain.
@@ -50,7 +50,7 @@ for i in range( 1, len( sys.argv ) ):
#
c_pathname_pat = re.compile( '^.*\.[ch]$', re.IGNORECASE )
-trace_use_pat = re.compile( '^[ \t]*#define[ \t]+FT_COMPONENT[ \t]+trace_' )
+trace_use_pat = re.compile( '^[ \t]*#define[ \t]+FT_COMPONENT[ \t]+' )
for d in SRC_FILE_DIRS:
for ( p, dlst, flst ) in os.walk( d ):
diff --git a/freetype/src/tools/ftrandom/ftrandom.c b/freetype/src/tools/ftrandom/ftrandom.c
index ab624297..4f912cd2 100644
--- a/freetype/src/tools/ftrandom/ftrandom.c
+++ b/freetype/src/tools/ftrandom/ftrandom.c
@@ -29,7 +29,7 @@
/* This file is now part of the FreeType library */
-#define _XOPEN_SOURCE 500 /* for `kill', `strdup', `random', and `srandom' */
+#define _XOPEN_SOURCE 600 /* for `kill', `strdup', `random', and `srandom' */
#include <stdio.h>
diff --git a/freetype/src/tools/glnames.py b/freetype/src/tools/glnames.py
index a19ce178..c6f2f278 100644
--- a/freetype/src/tools/glnames.py
+++ b/freetype/src/tools/glnames.py
@@ -6,7 +6,7 @@
#
-# Copyright (C) 1996-2020 by
+# Copyright (C) 1996-2021 by
# David Turner, Robert Wilhelm, and Werner Lemberg.
#
# This file is part of the FreeType project, and may only be used, modified,
diff --git a/freetype/src/tools/no-copyright b/freetype/src/tools/no-copyright
index d639aa4a..1eaa6309 100644
--- a/freetype/src/tools/no-copyright
+++ b/freetype/src/tools/no-copyright
@@ -7,8 +7,6 @@
#
# Don't put empty lines into this file!
#
-.gitignore
-#
builds/unix/pkg.m4
#
docs/FTL.TXT
@@ -62,4 +60,6 @@ src/gzip/zutil.h
src/tools/apinames.c
src/tools/ftrandom/ftrandom.c
#
+subprojects/dlg
+#
# EOF
diff --git a/freetype/src/tools/update-copyright-year b/freetype/src/tools/update-copyright-year
index c659bbaf..69d63b60 100755
--- a/freetype/src/tools/update-copyright-year
+++ b/freetype/src/tools/update-copyright-year
@@ -2,7 +2,7 @@ eval '(exit $?0)' && eval 'exec perl -wS -i "$0" ${1+"$@"}'
& eval 'exec perl -wS -i "$0" $argv:q'
if 0;
-# Copyright (C) 2015-2020 by
+# Copyright (C) 2015-2021 by
# Werner Lemberg.
#
# This file is part of the FreeType project, and may only be used, modified,
@@ -28,20 +28,20 @@ eval '(exit $?0)' && eval 'exec perl -wS -i "$0" ${1+"$@"}'
#
# or
#
-# /* Copyright 2000, 2001, 2004-2007 by */
-# /* foobar */
+# /* Copyright (c) 2000, 2001, 2004-2007 by */
+# /* foobar */
#
# and replaces them uniformly with
#
-# Copyright 2000-2015
+# Copyright (C) 2000-2021
# foobar
#
# and
#
-# /* Copyright 2000-2015 by */
-# /* foobar */
+# /* Copyright (C) 2000-2021 by */
+# /* foobar */
#
-# (assuming that the current year is 2015). As can be seen, the line length
+# (assuming that the current year is 2021). As can be seen, the line length
# is retained if there is non-whitespace after the word `by' on the same
# line.
@@ -80,11 +80,11 @@ while (<>)
{
# Fill line to the same length (if appropriate); we skip the middle
# part but insert `(C)', three spaces, and `-'.
- my $space = length($+{space1}) - 1
- + length($+{middle}) - 1
- + length($+{space2}) - 1
+ my $space = length($+{space1})
+ + length($+{middle})
+ + length($+{space2})
+ length($+{space3})
- - (length("(C)") + 1);
+ - (length("(C)") + 3 + 1);
print "$+{begin}";
print "Copyright\ (C)\ $+{first}-$year\ by";
@@ -106,19 +106,38 @@ while (<>)
(?<end>.*)
}
{
- # Fill line to the same length (if appropriate); we insert three
- # spaces, a `-', and the current year.
- my $space = length($+{space1}) - 1
- + length($+{space2}) - 1
- + length($+{space3})
- - (length($year) + 1);
+ if ($+{first} < $year)
+ {
+ # Fill line to the same length (if appropriate); we insert three
+ # spaces, the string `(C)', a `-', and the current year.
+ my $space = length($+{space1})
+ + length($+{space2})
+ + length($+{space3})
+ - (length($year) + length("(C)") + 3 + 1);
- print "$+{begin}";
- print "Copyright\ (C)\ $+{first}-$year\ by";
- # If $space is negative this inserts nothing.
- print ' ' x $space if length($+{end});
- print "$+{end}\n";
- $replaced = 1;
+ print "$+{begin}";
+ print "Copyright\ (C)\ $+{first}-$year\ by";
+ # If $space is negative this inserts nothing.
+ print ' ' x $space if length($+{end});
+ print "$+{end}\n";
+ $replaced = 1;
+ }
+ else
+ {
+ # Fill line to the same length (if appropriate); we insert three
+ # spaces and the string `(C)'.
+ my $space = length($+{space1})
+ + length($+{space2})
+ + length($+{space3})
+ - (length("(C)") + 3);
+
+ print "$+{begin}";
+ print "Copyright\ (C)\ $+{first}\ by";
+ # If $space is negative this inserts nothing.
+ print ' ' x $space if length($+{end});
+ print "$+{end}\n";
+ $replaced = 1;
+ }
}ex
||
# Otherwise print line unaltered.
diff --git a/freetype/src/truetype/module.mk b/freetype/src/truetype/module.mk
index 2d8d39d1..485ef05c 100644
--- a/freetype/src/truetype/module.mk
+++ b/freetype/src/truetype/module.mk
@@ -3,7 +3,7 @@
#
-# Copyright (C) 1996-2020 by
+# Copyright (C) 1996-2021 by
# David Turner, Robert Wilhelm, and Werner Lemberg.
#
# This file is part of the FreeType project, and may only be used, modified,
diff --git a/freetype/src/truetype/rules.mk b/freetype/src/truetype/rules.mk
index 2f6fecfc..cfd6b3b2 100644
--- a/freetype/src/truetype/rules.mk
+++ b/freetype/src/truetype/rules.mk
@@ -3,7 +3,7 @@
#
-# Copyright (C) 1996-2020 by
+# Copyright (C) 1996-2021 by
# David Turner, Robert Wilhelm, and Werner Lemberg.
#
# This file is part of the FreeType project, and may only be used, modified,
diff --git a/freetype/src/truetype/truetype.c b/freetype/src/truetype/truetype.c
index 41b6808a..4232aca6 100644
--- a/freetype/src/truetype/truetype.c
+++ b/freetype/src/truetype/truetype.c
@@ -4,7 +4,7 @@
*
* FreeType TrueType driver component (body only).
*
- * Copyright (C) 1996-2020 by
+ * Copyright (C) 1996-2021 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
diff --git a/freetype/src/truetype/ttdriver.c b/freetype/src/truetype/ttdriver.c
index bf830b14..6fcfdb23 100644
--- a/freetype/src/truetype/ttdriver.c
+++ b/freetype/src/truetype/ttdriver.c
@@ -4,7 +4,7 @@
*
* TrueType font driver implementation (body).
*
- * Copyright (C) 1996-2020 by
+ * Copyright (C) 1996-2021 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
@@ -108,7 +108,7 @@
return error;
}
- FT_TRACE0(( "tt_property_set: missing property `%s'\n",
+ FT_TRACE2(( "tt_property_set: missing property `%s'\n",
property_name ));
return FT_THROW( Missing_Property );
}
@@ -135,7 +135,7 @@
return error;
}
- FT_TRACE0(( "tt_property_get: missing property `%s'\n",
+ FT_TRACE2(( "tt_property_get: missing property `%s'\n",
property_name ));
return FT_THROW( Missing_Property );
}
@@ -354,7 +354,16 @@
#endif /* TT_CONFIG_OPTION_EMBEDDED_BITMAPS */
- FT_Request_Metrics( size->face, req );
+ {
+ FT_Error err = FT_Request_Metrics( size->face, req );
+
+
+ if ( err )
+ {
+ error = err;
+ goto Exit;
+ }
+ }
if ( FT_IS_SCALABLE( size->face ) )
{
@@ -382,6 +391,7 @@
#endif
}
+ Exit:
return error;
}
diff --git a/freetype/src/truetype/ttdriver.h b/freetype/src/truetype/ttdriver.h
index ee1438eb..4e6d52d2 100644
--- a/freetype/src/truetype/ttdriver.h
+++ b/freetype/src/truetype/ttdriver.h
@@ -4,7 +4,7 @@
*
* High-level TrueType driver interface (specification).
*
- * Copyright (C) 1996-2020 by
+ * Copyright (C) 1996-2021 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
diff --git a/freetype/src/truetype/tterrors.h b/freetype/src/truetype/tterrors.h
index efeafd3a..0ce247e3 100644
--- a/freetype/src/truetype/tterrors.h
+++ b/freetype/src/truetype/tterrors.h
@@ -4,7 +4,7 @@
*
* TrueType error codes (specification only).
*
- * Copyright (C) 2001-2020 by
+ * Copyright (C) 2001-2021 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
diff --git a/freetype/src/truetype/ttgload.c b/freetype/src/truetype/ttgload.c
index 1dd319dc..11968f6f 100644
--- a/freetype/src/truetype/ttgload.c
+++ b/freetype/src/truetype/ttgload.c
@@ -4,7 +4,7 @@
*
* TrueType Glyph Loader (body).
*
- * Copyright (C) 1996-2020 by
+ * Copyright (C) 1996-2021 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
@@ -197,10 +197,17 @@
}
#endif /* TT_SUPPORT_SUBPIXEL_HINTING_INFINALITY */
- if ( !loader->linear_def )
+#ifdef FT_CONFIG_OPTION_INCREMENTAL
+ /* With the incremental interface, these values are set by */
+ /* a call to `tt_get_metrics_incremental'. */
+ if ( face->root.internal->incremental_interface == NULL )
+#endif
{
- loader->linear_def = 1;
- loader->linear = advance_width;
+ if ( !loader->linear_def )
+ {
+ loader->linear_def = 1;
+ loader->linear = advance_width;
+ }
}
return FT_Err_Ok;
@@ -210,8 +217,8 @@
#ifdef FT_CONFIG_OPTION_INCREMENTAL
static void
- tt_get_metrics_incr_overrides( TT_Loader loader,
- FT_UInt glyph_index )
+ tt_get_metrics_incremental( TT_Loader loader,
+ FT_UInt glyph_index )
{
TT_Face face = loader->face;
@@ -451,7 +458,7 @@
(void*)&load->exec->glyphIns,
n_ins );
- load->exec->glyphSize = (FT_UShort)tmp;
+ load->exec->glyphSize = (FT_UInt)tmp;
if ( error )
return error;
@@ -736,12 +743,14 @@
subglyph->transform.xx / 65536.0,
subglyph->transform.yy / 65536.0 ));
else if ( subglyph->flags & WE_HAVE_A_2X2 )
- FT_TRACE7(( " scaling: xx=%f, yx=%f\n"
- " xy=%f, yy=%f\n",
+ {
+ FT_TRACE7(( " scaling: xx=%f, yx=%f\n",
subglyph->transform.xx / 65536.0,
- subglyph->transform.yx / 65536.0,
+ subglyph->transform.yx / 65536.0 ));
+ FT_TRACE7(( " xy=%f, yy=%f\n",
subglyph->transform.xy / 65536.0,
subglyph->transform.yy / 65536.0 ));
+ }
subglyph++;
}
@@ -1383,7 +1392,7 @@
FT_READ_USHORT( n_ins ) )
return error;
- FT_TRACE5(( " Instructions size = %d\n", n_ins ));
+ FT_TRACE5(( " Instructions size = %hu\n", n_ins ));
/* check it */
max_ins = loader->face->max_profile.maxSizeOfInstructions;
@@ -1391,10 +1400,10 @@
{
/* don't trust `maxSizeOfInstructions'; */
/* only do a rough safety check */
- if ( (FT_Int)n_ins > loader->byte_len )
+ if ( n_ins > loader->byte_len )
{
FT_TRACE1(( "TT_Process_Composite_Glyph:"
- " too many instructions (%d) for glyph with length %d\n",
+ " too many instructions (%hu) for glyph with length %u\n",
n_ins, loader->byte_len ));
return FT_THROW( Too_Many_Hints );
}
@@ -1677,7 +1686,7 @@
FT_ZERO( &inc_stream );
FT_Stream_OpenMemory( &inc_stream,
glyph_data.pointer,
- (FT_ULong)glyph_data.length );
+ glyph_data.length );
loader->stream = &inc_stream;
}
@@ -1685,8 +1694,7 @@
#endif /* FT_CONFIG_OPTION_INCREMENTAL */
- offset = tt_face_get_location( face, glyph_index,
- (FT_UInt*)&loader->byte_len );
+ offset = tt_face_get_location( face, glyph_index, &loader->byte_len );
if ( loader->byte_len > 0 )
{
@@ -1705,7 +1713,7 @@
error = face->access_glyph_frame( loader, glyph_index,
face->glyf_offset + offset,
- (FT_UInt)loader->byte_len );
+ loader->byte_len );
if ( error )
goto Exit;
@@ -1739,13 +1747,11 @@
if ( loader->byte_len == 0 || loader->n_contours == 0 )
{
- /* must initialize points before (possibly) overriding */
- /* glyph metrics from the incremental interface */
- tt_loader_set_pp( loader );
-
#ifdef FT_CONFIG_OPTION_INCREMENTAL
- tt_get_metrics_incr_overrides( loader, glyph_index );
+ tt_get_metrics_incremental( loader, glyph_index );
#endif
+ tt_loader_set_pp( loader );
+
#ifdef TT_CONFIG_OPTION_GX_VAR_SUPPORT
@@ -1828,13 +1834,11 @@
goto Exit;
}
- /* must initialize phantom points before (possibly) overriding */
- /* glyph metrics from the incremental interface */
- tt_loader_set_pp( loader );
-
#ifdef FT_CONFIG_OPTION_INCREMENTAL
- tt_get_metrics_incr_overrides( loader, glyph_index );
+ tt_get_metrics_incremental( loader, glyph_index );
#endif
+ tt_loader_set_pp( loader );
+
/***********************************************************************/
/***********************************************************************/
@@ -1844,7 +1848,7 @@
/* (which consists of 10 bytes) */
error = face->access_glyph_frame( loader, glyph_index,
face->glyf_offset + offset + 10,
- (FT_UInt)loader->byte_len - 10 );
+ loader->byte_len - 10 );
if ( error )
goto Exit;
@@ -1898,7 +1902,7 @@
/* clear the nodes filled by sibling chains */
node = ft_list_get_node_at( &loader->composites, recurse_count );
for ( node2 = node; node2; node2 = node2->next )
- node2->data = (void*)FT_ULONG_MAX;
+ node2->data = (void*)-1;
/* check whether we already have a composite glyph with this index */
if ( FT_List_Find( &loader->composites,
@@ -1915,7 +1919,7 @@
else
{
- if ( FT_NEW( node ) )
+ if ( FT_QNEW( node ) )
goto Exit;
node->data = FT_UINT_TO_POINTER( glyph_index );
FT_List_Add( &loader->composites, node );
@@ -2100,7 +2104,7 @@
FT_UInt num_base_subgs = gloader->base.num_subglyphs;
FT_Stream old_stream = loader->stream;
- FT_Int old_byte_len = loader->byte_len;
+ FT_UInt old_byte_len = loader->byte_len;
FT_GlyphLoader_Add( gloader );
@@ -2713,6 +2717,9 @@
error = tt_size_run_prep( size, pedantic );
if ( error )
return error;
+ error = TT_Load_Context( exec, face, size );
+ if ( error )
+ return error;
}
/* check whether the cvt program has disabled hinting */
diff --git a/freetype/src/truetype/ttgload.h b/freetype/src/truetype/ttgload.h
index 8f72cd55..78fdeaa7 100644
--- a/freetype/src/truetype/ttgload.h
+++ b/freetype/src/truetype/ttgload.h
@@ -4,7 +4,7 @@
*
* TrueType Glyph Loader (specification).
*
- * Copyright (C) 1996-2020 by
+ * Copyright (C) 1996-2021 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
diff --git a/freetype/src/truetype/ttgxvar.c b/freetype/src/truetype/ttgxvar.c
index b462263d..7f2db0cb 100644
--- a/freetype/src/truetype/ttgxvar.c
+++ b/freetype/src/truetype/ttgxvar.c
@@ -4,7 +4,7 @@
*
* TrueType GX Font Variation loader
*
- * Copyright (C) 2004-2020 by
+ * Copyright (C) 2004-2021 by
* David Turner, Robert Wilhelm, Werner Lemberg, and George Williams.
*
* This file is part of the FreeType project, and may only be used,
@@ -178,7 +178,7 @@
/* in the nested loops below we increase `i' twice; */
/* it is faster to simply allocate one more slot */
/* than to add another test within the loop */
- if ( FT_NEW_ARRAY( points, n + 1 ) )
+ if ( FT_QNEW_ARRAY( points, n + 1 ) )
return NULL;
*point_cnt = n;
@@ -264,55 +264,80 @@
FT_Fixed *deltas = NULL;
FT_UInt runcnt, cnt;
FT_UInt i, j;
+ FT_UInt bytes_used;
FT_Memory memory = stream->memory;
FT_Error error = FT_Err_Ok;
FT_UNUSED( error );
- if ( delta_cnt > size )
- {
- FT_TRACE1(( "ft_var_readpackeddeltas: number of points too large\n" ));
+ if ( FT_QNEW_ARRAY( deltas, delta_cnt ) )
return NULL;
- }
- if ( FT_NEW_ARRAY( deltas, delta_cnt ) )
- return NULL;
+ i = 0;
+ bytes_used = 0;
- i = 0;
- while ( i < delta_cnt )
+ while ( i < delta_cnt && bytes_used < size )
{
runcnt = FT_GET_BYTE();
cnt = runcnt & GX_DT_DELTA_RUN_COUNT_MASK;
+ bytes_used++;
+
if ( runcnt & GX_DT_DELTAS_ARE_ZERO )
{
- /* `runcnt' zeroes get added */
+ /* `cnt` + 1 zeroes get added */
for ( j = 0; j <= cnt && i < delta_cnt; j++ )
deltas[i++] = 0;
}
else if ( runcnt & GX_DT_DELTAS_ARE_WORDS )
{
- /* `runcnt' shorts from the stack */
+ /* `cnt` + 1 shorts from the stack */
+ bytes_used += 2 * ( cnt + 1 );
+ if ( bytes_used > size )
+ {
+ FT_TRACE1(( "ft_var_readpackeddeltas:"
+ " number of short deltas too large\n" ));
+ goto Fail;
+ }
+
for ( j = 0; j <= cnt && i < delta_cnt; j++ )
deltas[i++] = FT_intToFixed( FT_GET_SHORT() );
}
else
{
- /* `runcnt' signed bytes from the stack */
+ /* `cnt` + 1 signed bytes from the stack */
+ bytes_used += cnt + 1;
+ if ( bytes_used > size )
+ {
+ FT_TRACE1(( "ft_var_readpackeddeltas:"
+ " number of byte deltas too large\n" ));
+ goto Fail;
+ }
+
for ( j = 0; j <= cnt && i < delta_cnt; j++ )
deltas[i++] = FT_intToFixed( FT_GET_CHAR() );
}
if ( j <= cnt )
{
- /* bad format */
- FT_FREE( deltas );
- return NULL;
+ FT_TRACE1(( "ft_var_readpackeddeltas:"
+ " number of deltas too large\n" ));
+ goto Fail;
}
}
+ if ( i < delta_cnt )
+ {
+ FT_TRACE1(( "ft_var_readpackeddeltas: not enough deltas\n" ));
+ goto Fail;
+ }
+
return deltas;
+
+ Fail:
+ FT_FREE( deltas );
+ return NULL;
}
@@ -371,12 +396,13 @@
if ( axisCount != (FT_Long)blend->mmvar->num_axis )
{
- FT_TRACE2(( "ft_var_load_avar: number of axes in `avar' and `fvar'\n"
- " table are different\n" ));
+ FT_TRACE2(( "ft_var_load_avar:"
+ " number of axes in `avar' and `fvar'\n" ));
+ FT_TRACE2(( " table are different\n" ));
goto Exit;
}
- if ( FT_NEW_ARRAY( blend->avar_segment, axisCount ) )
+ if ( FT_QNEW_ARRAY( blend->avar_segment, axisCount ) )
goto Exit;
segment = &blend->avar_segment[0];
@@ -385,8 +411,8 @@
FT_TRACE5(( " axis %d:\n", i ));
segment->pairCount = FT_GET_USHORT();
- if ( (FT_ULong)segment->pairCount * 4 > table_len ||
- FT_NEW_ARRAY( segment->correspondence, segment->pairCount ) )
+ if ( (FT_ULong)segment->pairCount * 4 > table_len ||
+ FT_QNEW_ARRAY( segment->correspondence, segment->pairCount ) )
{
/* Failure. Free everything we have done so far. We must do */
/* it right now since loading the `avar' table is optional. */
@@ -431,7 +457,8 @@
FT_UShort format;
FT_ULong region_offset;
FT_UInt i, j, k;
- FT_UInt shortDeltaCount;
+ FT_UInt wordDeltaCount;
+ FT_Bool long_words;
GX_Blend blend = face->blend;
GX_ItemVarData varData;
@@ -466,7 +493,7 @@
/* make temporary copy of item variation data offsets; */
/* we will parse region list first, then come back */
- if ( FT_NEW_ARRAY( dataOffsetArray, itemStore->dataCount ) )
+ if ( FT_QNEW_ARRAY( dataOffsetArray, itemStore->dataCount ) )
goto Exit;
for ( i = 0; i < itemStore->dataCount; i++ )
@@ -486,13 +513,22 @@
if ( itemStore->axisCount != (FT_Long)blend->mmvar->num_axis )
{
FT_TRACE2(( "ft_var_load_item_variation_store:"
- " number of axes in item variation store\n"
- " "
+ " number of axes in item variation store\n" ));
+ FT_TRACE2(( " "
" and `fvar' table are different\n" ));
error = FT_THROW( Invalid_Table );
goto Exit;
}
+ /* new constraint in OpenType 1.8.4 */
+ if ( itemStore->regionCount >= 32768U )
+ {
+ FT_TRACE2(( "ft_var_load_item_variation_store:"
+ " too many variation region tables\n" ));
+ error = FT_THROW( Invalid_Table );
+ goto Exit;
+ }
+
if ( FT_NEW_ARRAY( itemStore->varRegionList, itemStore->regionCount ) )
goto Exit;
@@ -537,15 +573,18 @@
goto Exit;
if ( FT_READ_USHORT( varData->itemCount ) ||
- FT_READ_USHORT( shortDeltaCount ) ||
+ FT_READ_USHORT( wordDeltaCount ) ||
FT_READ_USHORT( varData->regionIdxCount ) )
goto Exit;
+ long_words = !!( wordDeltaCount & 0x8000 );
+ wordDeltaCount &= 0x7FFF;
+
/* check some data consistency */
- if ( shortDeltaCount > varData->regionIdxCount )
+ if ( wordDeltaCount > varData->regionIdxCount )
{
FT_TRACE2(( "bad short count %d or region count %d\n",
- shortDeltaCount,
+ wordDeltaCount,
varData->regionIdxCount ));
error = FT_THROW( Invalid_Table );
goto Exit;
@@ -581,39 +620,52 @@
/* Parse delta set. */
/* */
- /* On input, deltas are (shortDeltaCount + regionIdxCount) bytes */
- /* each; on output, deltas are expanded to `regionIdxCount' shorts */
- /* each. */
+ /* On input, deltas are (wordDeltaCount + regionIdxCount) bytes */
+ /* each if `long_words` isn't set, and twice as much otherwise. */
+ /* */
+ /* On output, deltas are expanded to `regionIdxCount` shorts each. */
if ( FT_NEW_ARRAY( varData->deltaSet,
varData->regionIdxCount * varData->itemCount ) )
goto Exit;
- /* the delta set is stored as a 2-dimensional array of shorts; */
- /* sign-extend signed bytes to signed shorts */
- for ( j = 0; j < varData->itemCount * varData->regionIdxCount; )
+ /* the delta set is stored as a 2-dimensional array of shorts */
+ if ( long_words )
+ {
+ /* new in OpenType 1.9, currently for 'COLR' table only; */
+ /* the deltas are interpreted as 16.16 fixed-point scaling values */
+
+ /* not supported yet */
+
+ error = FT_THROW( Invalid_Table );
+ goto Exit;
+ }
+ else
{
- for ( k = 0; k < shortDeltaCount; k++, j++ )
+ for ( j = 0; j < varData->itemCount * varData->regionIdxCount; )
{
- /* read the short deltas */
- FT_Short delta;
+ for ( k = 0; k < wordDeltaCount; k++, j++ )
+ {
+ /* read the short deltas */
+ FT_Short delta;
- if ( FT_READ_SHORT( delta ) )
- goto Exit;
+ if ( FT_READ_SHORT( delta ) )
+ goto Exit;
- varData->deltaSet[j] = delta;
- }
+ varData->deltaSet[j] = delta;
+ }
- for ( ; k < varData->regionIdxCount; k++, j++ )
- {
- /* read the (signed) byte deltas */
- FT_Char delta;
+ for ( ; k < varData->regionIdxCount; k++, j++ )
+ {
+ /* read the (signed) byte deltas */
+ FT_Char delta;
- if ( FT_READ_CHAR( delta ) )
- goto Exit;
+ if ( FT_READ_CHAR( delta ) )
+ goto Exit;
- varData->deltaSet[j] = delta;
+ varData->deltaSet[j] = delta;
+ }
}
}
}
@@ -629,37 +681,66 @@
ft_var_load_delta_set_index_mapping( TT_Face face,
FT_ULong offset,
GX_DeltaSetIdxMap map,
- GX_ItemVarStore itemStore )
+ GX_ItemVarStore itemStore,
+ FT_ULong table_len )
{
FT_Stream stream = FT_FACE_STREAM( face );
FT_Memory memory = stream->memory;
- FT_Error error;
+ FT_Error error;
- FT_UShort format;
- FT_UInt entrySize;
- FT_UInt innerBitCount;
- FT_UInt innerIndexMask;
- FT_UInt i, j;
+ FT_Byte format;
+ FT_Byte entryFormat;
+ FT_UInt entrySize;
+ FT_UInt innerBitCount;
+ FT_UInt innerIndexMask;
+ FT_ULong i;
+ FT_UInt j;
- if ( FT_STREAM_SEEK( offset ) ||
- FT_READ_USHORT( format ) ||
- FT_READ_USHORT( map->mapCount ) )
+ if ( FT_STREAM_SEEK( offset ) ||
+ FT_READ_BYTE( format ) ||
+ FT_READ_BYTE( entryFormat ) )
goto Exit;
- if ( format & 0xFFC0 )
+ if ( format == 0 )
+ {
+ if ( FT_READ_USHORT( map->mapCount ) )
+ goto Exit;
+ }
+ else if ( format == 1 ) /* new in OpenType 1.9 */
+ {
+ if ( FT_READ_ULONG( map->mapCount ) )
+ goto Exit;
+ }
+ else
{
FT_TRACE2(( "bad map format %d\n", format ));
error = FT_THROW( Invalid_Table );
goto Exit;
}
+ if ( entryFormat & 0xC0 )
+ {
+ FT_TRACE2(( "bad entry format %d\n", format ));
+ error = FT_THROW( Invalid_Table );
+ goto Exit;
+ }
+
/* bytes per entry: 1, 2, 3, or 4 */
- entrySize = ( ( format & 0x0030 ) >> 4 ) + 1;
- innerBitCount = ( format & 0x000F ) + 1;
+ entrySize = ( ( entryFormat & 0x30 ) >> 4 ) + 1;
+ innerBitCount = ( entryFormat & 0x0F ) + 1;
innerIndexMask = ( 1 << innerBitCount ) - 1;
+ /* rough sanity check */
+ if ( map->mapCount * entrySize > table_len )
+ {
+ FT_TRACE1(( "ft_var_load_delta_set_index_mapping:"
+ " invalid number of delta-set index mappings\n" ));
+ error = FT_THROW( Invalid_Table );
+ goto Exit;
+ }
+
if ( FT_NEW_ARRAY( map->innerIndex, map->mapCount ) )
goto Exit;
@@ -688,7 +769,7 @@
if ( outerIndex >= itemStore->dataCount )
{
- FT_TRACE2(( "outerIndex[%d] == %d out of range\n",
+ FT_TRACE2(( "outerIndex[%ld] == %d out of range\n",
i,
outerIndex ));
error = FT_THROW( Invalid_Table );
@@ -701,7 +782,7 @@
if ( innerIndex >= itemStore->varData[outerIndex].itemCount )
{
- FT_TRACE2(( "innerIndex[%d] == %d out of range\n",
+ FT_TRACE2(( "innerIndex[%ld] == %d out of range\n",
i,
innerIndex ));
error = FT_THROW( Invalid_Table );
@@ -826,7 +907,8 @@
face,
table_offset + widthMap_offset,
&table->widthMap,
- &table->itemStore );
+ &table->itemStore,
+ table_len );
if ( error )
goto Exit;
}
@@ -1515,8 +1597,9 @@
if ( gvar_head.axisCount != (FT_UShort)blend->mmvar->num_axis )
{
- FT_TRACE1(( "ft_var_load_gvar: number of axes in `gvar' and `cvar'\n"
- " table are different\n" ));
+ FT_TRACE1(( "ft_var_load_gvar:"
+ " number of axes in `gvar' and `cvar'\n" ));
+ FT_TRACE1(( " table are different\n" ));
error = FT_THROW( Invalid_Table );
goto Exit;
}
@@ -1558,7 +1641,7 @@
goto Exit;
/* offsets (one more offset than glyphs, to mark size of last) */
- if ( FT_NEW_ARRAY( blend->glyphoffsets, gvar_head.glyphCount + 1 ) )
+ if ( FT_QNEW_ARRAY( blend->glyphoffsets, gvar_head.glyphCount + 1 ) )
goto Fail2;
if ( gvar_head.flags & 1 )
@@ -1637,8 +1720,8 @@
goto Fail;
}
- if ( FT_NEW_ARRAY( blend->tuplecoords,
- gvar_head.axisCount * gvar_head.globalCoordCount ) )
+ if ( FT_QNEW_ARRAY( blend->tuplecoords,
+ gvar_head.axisCount * gvar_head.globalCoordCount ) )
goto Fail2;
for ( i = 0; i < gvar_head.globalCoordCount; i++ )
@@ -1841,25 +1924,22 @@
FT_TRACE5(( " %d: %.5f\n", i, coord / 65536.0 ));
if ( coord > a->maximum || coord < a->minimum )
{
- FT_TRACE1((
- "ft_var_to_normalized: design coordinate %.5f\n"
- " is out of range [%.5f;%.5f]; clamping\n",
- coord / 65536.0,
- a->minimum / 65536.0,
- a->maximum / 65536.0 ));
-
- if ( coord > a->maximum )
- coord = a->maximum;
- else
- coord = a->minimum;
+ FT_TRACE1(( "ft_var_to_normalized: design coordinate %.5f\n",
+ coord / 65536.0 ));
+ FT_TRACE1(( " is out of range [%.5f;%.5f];"
+ " clamping\n",
+ a->minimum / 65536.0,
+ a->maximum / 65536.0 ));
}
- if ( coord < a->def )
- normalized[i] = -FT_DivFix( SUB_LONG( coord, a->def ),
- SUB_LONG( a->minimum, a->def ) );
- else if ( coord > a->def )
- normalized[i] = FT_DivFix( SUB_LONG( coord, a->def ),
+ if ( coord > a->def )
+ normalized[i] = coord >= a->maximum ? 0x10000L :
+ FT_DivFix( SUB_LONG( coord, a->def ),
SUB_LONG( a->maximum, a->def ) );
+ else if ( coord < a->def )
+ normalized[i] = coord <= a->minimum ? -0x10000L :
+ FT_DivFix( SUB_LONG( coord, a->def ),
+ SUB_LONG( a->def, a->minimum ) );
else
normalized[i] = 0;
}
@@ -2049,7 +2129,7 @@
FT_Var_Axis* a;
FT_Fixed* c;
FT_Var_Named_Style* ns;
- GX_FVar_Head fvar_head;
+ GX_FVar_Head fvar_head = { 0, 0, 0, 0, 0, 0 };
FT_Bool usePsName = 0;
FT_UInt num_instances;
FT_UInt num_axes;
@@ -2115,8 +2195,8 @@
if ( FT_SET_ERROR( face->goto_table( face, TTAG_CFF2,
stream, &table_len ) ) )
{
- FT_TRACE1(( "\n"
- "TT_Get_MM_Var: `gvar' or `CFF2' table is missing\n" ));
+ FT_TRACE1(( "\n" ));
+ FT_TRACE1(( "TT_Get_MM_Var: `gvar' or `CFF2' table is missing\n" ));
goto Exit;
}
}
@@ -2544,17 +2624,17 @@
num_coords = mmvar->num_axis;
}
- FT_TRACE5(( "TT_Set_MM_Blend:\n"
- " normalized design coordinates:\n" ));
+ FT_TRACE5(( "TT_Set_MM_Blend:\n" ));
+ FT_TRACE5(( " normalized design coordinates:\n" ));
for ( i = 0; i < num_coords; i++ )
{
FT_TRACE5(( " %.5f\n", coords[i] / 65536.0 ));
if ( coords[i] < -0x00010000L || coords[i] > 0x00010000L )
{
- FT_TRACE1(( "TT_Set_MM_Blend: normalized design coordinate %.5f\n"
- " is out of range [-1;1]\n",
+ FT_TRACE1(( "TT_Set_MM_Blend: normalized design coordinate %.5f\n",
coords[i] / 65536.0 ));
+ FT_TRACE1(( " is out of range [-1;1]\n" ));
error = FT_THROW( Invalid_Argument );
goto Exit;
}
@@ -2652,9 +2732,10 @@
}
blend->num_axis = mmvar->num_axis;
- FT_MEM_COPY( blend->normalizedcoords,
- coords,
- num_coords * sizeof ( FT_Fixed ) );
+ if ( coords )
+ FT_MEM_COPY( blend->normalizedcoords,
+ coords,
+ num_coords * sizeof ( FT_Fixed ) );
if ( set_design_coords )
ft_var_to_design( face,
@@ -2952,8 +3033,8 @@
if ( !face->blend->avar_loaded )
ft_var_load_avar( face );
- FT_TRACE5(( "TT_Set_Var_Design:\n"
- " normalized design coordinates:\n" ));
+ FT_TRACE5(( "TT_Set_Var_Design:\n" ));
+ FT_TRACE5(( " normalized design coordinates:\n" ));
ft_var_to_normalized( face, num_coords, blend->coords, normalized );
error = tt_set_mm_blend( face, mmvar->num_axis, normalized, 0 );
@@ -3152,6 +3233,8 @@
/*************************************************************************/
+#ifdef TT_CONFIG_OPTION_BYTECODE_INTERPRETER
+
static FT_Error
tt_cvt_ready_iterator( FT_ListNode node,
void* user )
@@ -3166,6 +3249,9 @@
return FT_Err_Ok;
}
+#endif /* TT_CONFIG_OPTION_BYTECODE_INTERPRETER */
+
+
/**************************************************************************
*
@@ -3194,6 +3280,8 @@
tt_face_vary_cvt( TT_Face face,
FT_Stream stream )
{
+#ifdef TT_CONFIG_OPTION_BYTECODE_INTERPRETER
+
FT_Error error;
FT_Memory memory = stream->memory;
@@ -3229,16 +3317,16 @@
if ( !blend )
{
- FT_TRACE2(( "\n"
- "tt_face_vary_cvt: no blend specified\n" ));
+ FT_TRACE2(( "\n" ));
+ FT_TRACE2(( "tt_face_vary_cvt: no blend specified\n" ));
error = FT_Err_Ok;
goto Exit;
}
if ( !face->cvt )
{
- FT_TRACE2(( "\n"
- "tt_face_vary_cvt: no `cvt ' table\n" ));
+ FT_TRACE2(( "\n" ));
+ FT_TRACE2(( "tt_face_vary_cvt: no `cvt ' table\n" ));
error = FT_Err_Ok;
goto Exit;
}
@@ -3397,9 +3485,7 @@
point_count == 0 ? face->cvt_size
: point_count );
- if ( !points ||
- !deltas ||
- ( localpoints == ALL_POINTS && point_count != face->cvt_size ) )
+ if ( !points || !deltas )
; /* failure, ignore it */
else if ( localpoints == ALL_POINTS )
@@ -3514,6 +3600,16 @@
NULL );
return error;
+
+#else /* !TT_CONFIG_OPTION_BYTECODE_INTERPRETER */
+
+ FT_UNUSED( face );
+ FT_UNUSED( stream );
+
+ return FT_Err_Ok;
+
+#endif /* !TT_CONFIG_OPTION_BYTECODE_INTERPRETER */
+
}
diff --git a/freetype/src/truetype/ttgxvar.h b/freetype/src/truetype/ttgxvar.h
index 26e89bcf..ded9ea1d 100644
--- a/freetype/src/truetype/ttgxvar.h
+++ b/freetype/src/truetype/ttgxvar.h
@@ -4,7 +4,7 @@
*
* TrueType GX Font Variation loader (specification)
*
- * Copyright (C) 2004-2020 by
+ * Copyright (C) 2004-2021 by
* David Turner, Robert Wilhelm, Werner Lemberg and George Williams.
*
* This file is part of the FreeType project, and may only be used,
@@ -106,9 +106,9 @@ FT_BEGIN_HEADER
typedef struct GX_DeltaSetIdxMapRec_
{
- FT_UInt mapCount;
- FT_UInt* outerIndex; /* indices to item var data */
- FT_UInt* innerIndex; /* indices to delta set */
+ FT_ULong mapCount;
+ FT_UInt* outerIndex; /* indices to item var data */
+ FT_UInt* innerIndex; /* indices to delta set */
} GX_DeltaSetIdxMapRec, *GX_DeltaSetIdxMap;
diff --git a/freetype/src/truetype/ttinterp.c b/freetype/src/truetype/ttinterp.c
index 0c3cb10a..731095ed 100644
--- a/freetype/src/truetype/ttinterp.c
+++ b/freetype/src/truetype/ttinterp.c
@@ -4,7 +4,7 @@
*
* TrueType bytecode interpreter (body).
*
- * Copyright (C) 1996-2020 by
+ * Copyright (C) 1996-2021 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
@@ -251,6 +251,14 @@
FT_FREE( exec->stack );
exec->stackSize = 0;
+ /* free glyf cvt working area */
+ FT_FREE( exec->glyfCvt );
+ exec->glyfCvtSize = 0;
+
+ /* free glyf storage working area */
+ FT_FREE( exec->glyfStorage );
+ exec->glyfStoreSize = 0;
+
/* free call stack */
FT_FREE( exec->callStack );
exec->callSize = 0;
@@ -270,64 +278,6 @@
/**************************************************************************
*
* @Function:
- * Init_Context
- *
- * @Description:
- * Initializes a context object.
- *
- * @Input:
- * memory ::
- * A handle to the parent memory object.
- *
- * @InOut:
- * exec ::
- * A handle to the target execution context.
- *
- * @Return:
- * FreeType error code. 0 means success.
- */
- static FT_Error
- Init_Context( TT_ExecContext exec,
- FT_Memory memory )
- {
- FT_Error error;
-
-
- FT_TRACE1(( "Init_Context: new object at %p\n", (void *)exec ));
-
- exec->memory = memory;
- exec->callSize = 32;
-
- if ( FT_NEW_ARRAY( exec->callStack, exec->callSize ) )
- goto Fail_Memory;
-
- /* all values in the context are set to 0 already, but this is */
- /* here as a remainder */
- exec->maxPoints = 0;
- exec->maxContours = 0;
-
- exec->stackSize = 0;
- exec->glyphSize = 0;
-
- exec->stack = NULL;
- exec->glyphIns = NULL;
-
- exec->face = NULL;
- exec->size = NULL;
-
- return FT_Err_Ok;
-
- Fail_Memory:
- FT_ERROR(( "Init_Context: not enough memory for %p\n", (void *)exec ));
- TT_Done_Context( exec );
-
- return error;
- }
-
-
- /**************************************************************************
- *
- * @Function:
* Update_Max
*
* @Description:
@@ -367,7 +317,7 @@
if ( *size < new_max )
{
- if ( FT_REALLOC( *pbuff, *size * multiplier, new_max * multiplier ) )
+ if ( FT_QREALLOC( *pbuff, *size * multiplier, new_max * multiplier ) )
return error;
*size = new_max;
}
@@ -400,6 +350,8 @@
*
* @Note:
* Only the glyph loader and debugger should call this function.
+ *
+ * Note that not all members of `TT_ExecContext` get initialized.
*/
FT_LOCAL_DEF( FT_Error )
TT_Load_Context( TT_ExecContext exec,
@@ -464,13 +416,13 @@
if ( error )
return error;
- tmp = exec->glyphSize;
+ tmp = (FT_ULong)exec->glyphSize;
error = Update_Max( exec->memory,
&tmp,
sizeof ( FT_Byte ),
(void*)&exec->glyphIns,
maxp->maxSizeOfInstructions );
- exec->glyphSize = (FT_UShort)tmp;
+ exec->glyphSize = (FT_UInt)tmp;
if ( error )
return error;
@@ -609,19 +561,19 @@
memory = driver->root.root.memory;
- /* allocate object */
+ /* allocate object and zero everything inside */
if ( FT_NEW( exec ) )
goto Fail;
- /* initialize it; in case of error this deallocates `exec' too */
- error = Init_Context( exec, memory );
- if ( error )
- goto Fail;
+ /* create callStack here, other allocations delayed */
+ exec->memory = memory;
+ exec->callSize = 32;
- return exec;
+ if ( FT_QNEW_ARRAY( exec->callStack, exec->callSize ) )
+ FT_FREE( exec );
Fail:
- return NULL;
+ return exec;
}
@@ -1572,11 +1524,36 @@
}
+ static void
+ Modify_CVT_Check( TT_ExecContext exc )
+ {
+ /* TT_RunIns sets origCvt and restores cvt to origCvt when done. */
+ if ( exc->iniRange == tt_coderange_glyph &&
+ exc->cvt == exc->origCvt )
+ {
+ exc->error = Update_Max( exc->memory,
+ &exc->glyfCvtSize,
+ sizeof ( FT_Long ),
+ (void*)&exc->glyfCvt,
+ exc->cvtSize );
+ if ( exc->error )
+ return;
+
+ FT_ARRAY_COPY( exc->glyfCvt, exc->cvt, exc->glyfCvtSize );
+ exc->cvt = exc->glyfCvt;
+ }
+ }
+
+
FT_CALLBACK_DEF( void )
Write_CVT( TT_ExecContext exc,
FT_ULong idx,
FT_F26Dot6 value )
{
+ Modify_CVT_Check( exc );
+ if ( exc->error )
+ return;
+
exc->cvt[idx] = value;
}
@@ -1586,6 +1563,10 @@
FT_ULong idx,
FT_F26Dot6 value )
{
+ Modify_CVT_Check( exc );
+ if ( exc->error )
+ return;
+
exc->cvt[idx] = FT_DivFix( value, Current_Ratio( exc ) );
}
@@ -1595,6 +1576,10 @@
FT_ULong idx,
FT_F26Dot6 value )
{
+ Modify_CVT_Check( exc );
+ if ( exc->error )
+ return;
+
exc->cvt[idx] = ADD_LONG( exc->cvt[idx], value );
}
@@ -1604,6 +1589,10 @@
FT_ULong idx,
FT_F26Dot6 value )
{
+ Modify_CVT_Check( exc );
+ if ( exc->error )
+ return;
+
exc->cvt[idx] = ADD_LONG( exc->cvt[idx],
FT_DivFix( value, Current_Ratio( exc ) ) );
}
@@ -3125,7 +3114,30 @@
ARRAY_BOUND_ERROR;
}
else
+ {
+ /* TT_RunIns sets origStorage and restores storage to origStorage */
+ /* when done. */
+ if ( exc->iniRange == tt_coderange_glyph &&
+ exc->storage == exc->origStorage )
+ {
+ FT_ULong tmp = (FT_ULong)exc->glyfStoreSize;
+
+
+ exc->error = Update_Max( exc->memory,
+ &tmp,
+ sizeof ( FT_Long ),
+ (void*)&exc->glyfStorage,
+ exc->storeSize );
+ exc->glyfStoreSize = (FT_UShort)tmp;
+ if ( exc->error )
+ return;
+
+ FT_ARRAY_COPY( exc->glyfStorage, exc->storage, exc->glyfStoreSize );
+ exc->storage = exc->glyfStorage;
+ }
+
exc->storage[I] = args[1];
+ }
}
@@ -3525,7 +3537,7 @@
return;
}
- exc->IP += args[0];
+ exc->IP = ADD_LONG( exc->IP, args[0] );
if ( exc->IP < 0 ||
( exc->callTop > 0 &&
exc->IP > exc->callStack[exc->callTop - 1].Def->end ) )
@@ -3697,7 +3709,7 @@
/* FDEF is only allowed in `prep' or `fpgm' */
- if ( exc->curRange == tt_coderange_glyph )
+ if ( exc->iniRange == tt_coderange_glyph )
{
exc->error = FT_THROW( DEF_In_Glyf_Bytecode );
return;
@@ -3771,7 +3783,7 @@
if ( opcode_pointer[i] == opcode_size[i] )
{
- FT_TRACE6(( "sph: Function %d, opcode ptrn: %d, %s %s\n",
+ FT_TRACE6(( "sph: Function %d, opcode ptrn: %ld, %s %s\n",
i, n,
exc->face->root.family_name,
exc->face->root.style_name ));
@@ -4133,7 +4145,7 @@
/* we enable IDEF only in `prep' or `fpgm' */
- if ( exc->curRange == tt_coderange_glyph )
+ if ( exc->iniRange == tt_coderange_glyph )
{
exc->error = FT_THROW( DEF_In_Glyf_Bytecode );
return;
@@ -4362,7 +4374,7 @@
if ( ( opcode & 1 ) != 0 )
{
- C = B; /* counter clockwise rotation */
+ C = B; /* counter-clockwise rotation */
B = A;
A = NEG_LONG( C );
}
@@ -4991,9 +5003,9 @@
#ifdef TT_SUPPORT_SUBPIXEL_HINTING_INFINALITY
/* Disable Type 2 Vacuform Rounds - e.g. Arial Narrow */
- if ( SUBPIXEL_HINTING_INFINALITY &&
- exc->ignore_x_mode &&
- FT_ABS( D ) == 64 )
+ if ( SUBPIXEL_HINTING_INFINALITY &&
+ exc->ignore_x_mode &&
+ ( D < 0 ? NEG_LONG( D ) : D ) == 64 )
D += 1;
#endif /* TT_SUPPORT_SUBPIXEL_HINTING_INFINALITY */
@@ -5050,7 +5062,7 @@
if ( ( opcode & 1 ) != 0 )
{
- C = B; /* counter clockwise rotation */
+ C = B; /* counter-clockwise rotation */
B = A;
A = NEG_LONG( C );
}
@@ -5074,7 +5086,7 @@
if ( ( opcode & 1 ) != 0 )
{
- C = B; /* counter clockwise rotation */
+ C = B; /* counter-clockwise rotation */
B = A;
A = NEG_LONG( C );
}
@@ -7781,8 +7793,8 @@
if ( num_twilight_points > 0xFFFFU )
num_twilight_points = 0xFFFFU;
- FT_TRACE5(( "TT_RunIns: Resetting number of twilight points\n"
- " from %d to the more reasonable value %ld\n",
+ FT_TRACE5(( "TT_RunIns: Resetting number of twilight points\n" ));
+ FT_TRACE5(( " from %d to the more reasonable value %ld\n",
exc->twilight.n_points,
num_twilight_points ));
exc->twilight.n_points = (FT_UShort)num_twilight_points;
@@ -7842,6 +7854,10 @@
exc->func_move_cvt = Move_CVT;
}
+ exc->origCvt = exc->cvt;
+ exc->origStorage = exc->storage;
+ exc->iniRange = exc->curRange;
+
Compute_Funcs( exc );
Compute_Round( exc, (FT_Byte)exc->GS.round_state );
@@ -7850,6 +7866,7 @@
exc->opcode = exc->code[exc->IP];
#ifdef FT_DEBUG_LEVEL_TRACE
+ if ( ft_trace_levels[trace_ttinterp] >= 6 )
{
FT_Long cnt = FT_MIN( 8, exc->top );
FT_Long n;
@@ -8566,8 +8583,10 @@
/* increment instruction counter and check if we didn't */
/* run this program for too long (e.g. infinite loops). */
- if ( ++ins_counter > TT_CONFIG_OPTION_MAX_RUNNABLE_OPCODES )
- return FT_THROW( Execution_Too_Long );
+ if ( ++ins_counter > TT_CONFIG_OPTION_MAX_RUNNABLE_OPCODES ) {
+ exc->error = FT_THROW( Execution_Too_Long );
+ goto LErrorLabel_;
+ }
LSuiteLabel_:
if ( exc->IP >= exc->codeSize )
@@ -8586,6 +8605,10 @@
FT_TRACE4(( " %ld instruction%s executed\n",
ins_counter,
ins_counter == 1 ? "" : "s" ));
+
+ exc->cvt = exc->origCvt;
+ exc->storage = exc->origStorage;
+
return FT_Err_Ok;
LErrorCodeOverflow_:
@@ -8595,6 +8618,9 @@
if ( exc->error && !exc->instruction_trap )
FT_TRACE1(( " The interpreter returned error 0x%x\n", exc->error ));
+ exc->cvt = exc->origCvt;
+ exc->storage = exc->origStorage;
+
return exc->error;
}
diff --git a/freetype/src/truetype/ttinterp.h b/freetype/src/truetype/ttinterp.h
index 6a83705a..9c01ec83 100644
--- a/freetype/src/truetype/ttinterp.h
+++ b/freetype/src/truetype/ttinterp.h
@@ -4,7 +4,7 @@
*
* TrueType bytecode interpreter (specification).
*
- * Copyright (C) 1996-2020 by
+ * Copyright (C) 1996-2021 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
@@ -144,37 +144,41 @@ FT_BEGIN_HEADER
*
* The main structure for the interpreter which collects all necessary
* variables and states.
+ *
+ * Members that are initialized by `TT_Load_Context` are marked with '!'.
+ * Members that are initialized by `TT_Run_Context` are marked with '@'.
*/
typedef struct TT_ExecContextRec_
{
- TT_Face face;
- TT_Size size;
+ TT_Face face; /* ! */
+ TT_Size size; /* ! */
FT_Memory memory;
/* instructions state */
FT_Error error; /* last execution error */
- FT_Long top; /* top of exec. stack */
+ FT_Long top; /* @ top of exec. stack */
- FT_Long stackSize; /* size of exec. stack */
- FT_Long* stack; /* current exec. stack */
+ FT_Long stackSize; /* ! size of exec. stack */
+ FT_Long* stack; /* ! current exec. stack */
FT_Long args;
- FT_Long new_top; /* new top after exec. */
+ FT_Long new_top; /* new top after exec. */
- TT_GlyphZoneRec zp0, /* zone records */
- zp1,
- zp2,
- pts,
- twilight;
+ TT_GlyphZoneRec zp0, /* @! zone records */
+ zp1, /* @! */
+ zp2, /* @! */
+ pts, /* ! */
+ twilight; /* ! */
- FT_Long pointSize; /* in 26.6 format */
- FT_Size_Metrics metrics;
- TT_Size_Metrics tt_metrics; /* size metrics */
+ FT_Long pointSize; /* ! in 26.6 format */
+ FT_Size_Metrics metrics; /* ! */
+ TT_Size_Metrics tt_metrics; /* ! size metrics */
- TT_GraphicsState GS; /* current graphics state */
+ TT_GraphicsState GS; /* !@ current graphics state */
+ FT_Int iniRange; /* initial code range number */
FT_Int curRange; /* current code range number */
FT_Byte* code; /* current code range */
FT_Long IP; /* current instruction pointer */
@@ -185,43 +189,49 @@ FT_BEGIN_HEADER
FT_Bool step_ins; /* true if the interpreter must */
/* increment IP after ins. exec */
- FT_ULong cvtSize;
- FT_Long* cvt;
+ FT_ULong cvtSize; /* ! */
+ FT_Long* cvt; /* ! */
+ FT_ULong glyfCvtSize;
+ FT_Long* glyfCvt; /* cvt working copy for glyph */
+ FT_Long* origCvt;
- FT_UInt glyphSize; /* glyph instructions buffer size */
- FT_Byte* glyphIns; /* glyph instructions buffer */
+ FT_UInt glyphSize; /* ! glyph instructions buffer size */
+ FT_Byte* glyphIns; /* ! glyph instructions buffer */
- FT_UInt numFDefs; /* number of function defs */
- FT_UInt maxFDefs; /* maximum number of function defs */
- TT_DefArray FDefs; /* table of FDefs entries */
+ FT_UInt numFDefs; /* ! number of function defs */
+ FT_UInt maxFDefs; /* ! maximum number of function defs */
+ TT_DefArray FDefs; /* table of FDefs entries */
- FT_UInt numIDefs; /* number of instruction defs */
- FT_UInt maxIDefs; /* maximum number of ins defs */
- TT_DefArray IDefs; /* table of IDefs entries */
+ FT_UInt numIDefs; /* ! number of instruction defs */
+ FT_UInt maxIDefs; /* ! maximum number of ins defs */
+ TT_DefArray IDefs; /* table of IDefs entries */
- FT_UInt maxFunc; /* maximum function index */
- FT_UInt maxIns; /* maximum instruction index */
+ FT_UInt maxFunc; /* ! maximum function index */
+ FT_UInt maxIns; /* ! maximum instruction index */
- FT_Int callTop, /* top of call stack during execution */
- callSize; /* size of call stack */
- TT_CallStack callStack; /* call stack */
+ FT_Int callTop, /* @ top of call stack during execution */
+ callSize; /* size of call stack */
+ TT_CallStack callStack; /* call stack */
FT_UShort maxPoints; /* capacity of this context's `pts' */
FT_Short maxContours; /* record, expressed in points and */
/* contours. */
- TT_CodeRangeTable codeRangeTable; /* table of valid code ranges */
- /* useful for the debugger */
+ TT_CodeRangeTable codeRangeTable; /* ! table of valid code ranges */
+ /* useful for the debugger */
- FT_UShort storeSize; /* size of current storage */
- FT_Long* storage; /* storage area */
+ FT_UShort storeSize; /* ! size of current storage */
+ FT_Long* storage; /* ! storage area */
+ FT_UShort glyfStoreSize;
+ FT_Long* glyfStorage; /* storage working copy for glyph */
+ FT_Long* origStorage;
FT_F26Dot6 period; /* values used for the */
FT_F26Dot6 phase; /* `SuperRounding' */
FT_F26Dot6 threshold;
- FT_Bool instruction_trap; /* If `True', the interpreter will */
- /* exit after each instruction */
+ FT_Bool instruction_trap; /* ! If `True', the interpreter */
+ /* exits after each instruction */
TT_GraphicsState default_GS; /* graphics state resulting from */
/* the prep program */
@@ -238,7 +248,7 @@ FT_BEGIN_HEADER
func_dualproj, /* current dual proj. function */
func_freeProj; /* current freedom proj. func */
- TT_Move_Func func_move; /* current point move function */
+ TT_Move_Func func_move; /* current point move function */
TT_Move_Func func_move_orig; /* move original position function */
TT_Cur_Ppem_Func func_cur_ppem; /* get current proj. ppem value */
@@ -469,16 +479,15 @@ FT_BEGIN_HEADER
* TT_New_Context
*
* @Description:
- * Queries the face context for a given font. Note that there is
- * now a _single_ execution context in the TrueType driver which is
- * shared among faces.
+ * Create a `TT_ExecContext`. Note that there is now an execution
+ * context per `TT_Size` that is not shared among faces.
*
* @Input:
- * face ::
- * A handle to the source face object.
+ * driver ::
+ * A handle to the driver, used for memory allocation.
*
* @Return:
- * A handle to the execution context. Initialized for `face'.
+ * A handle to a new empty execution context.
*
* @Note:
* Only the glyph loader and debugger should call this function.
diff --git a/freetype/src/truetype/ttobjs.c b/freetype/src/truetype/ttobjs.c
index 06d45695..93fc5484 100644
--- a/freetype/src/truetype/ttobjs.c
+++ b/freetype/src/truetype/ttobjs.c
@@ -4,7 +4,7 @@
*
* Objects manager (body).
*
- * Copyright (C) 1996-2020 by
+ * Copyright (C) 1996-2021 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
@@ -140,7 +140,31 @@
return error;
}
-#endif /* TT_USE_BYTECODE_INTERPRETER */
+
+
+ /*
+ * Fonts embedded in PDFs are made unique by prepending randomization
+ * prefixes to their names: as defined in Section 5.5.3, 'Font Subsets',
+ * of the PDF Reference, they consist of 6 uppercase letters followed by
+ * the `+` sign. For safety, we do not skip prefixes violating this rule.
+ */
+
+ static const FT_String*
+ tt_skip_pdffont_random_tag( const FT_String* name )
+ {
+ unsigned int i;
+
+
+ if ( ft_strlen( name ) < 8 || name[6] != '+' )
+ return name;
+
+ for ( i = 0; i < 6; i++ )
+ if ( !ft_isupper( name[i] ) )
+ return name;
+
+ FT_TRACE7(( "name without randomization tag: %s\n", name + 7 ));
+ return name + 7;
+ }
/* Compare the face with a list of well-known `tricky' fonts. */
@@ -151,7 +175,7 @@
{
#define TRICK_NAMES_MAX_CHARACTERS 19
-#define TRICK_NAMES_COUNT 26
+#define TRICK_NAMES_COUNT 20
static const char trick_names[TRICK_NAMES_COUNT]
[TRICK_NAMES_MAX_CHARACTERS + 1] =
@@ -171,22 +195,28 @@
"DFGirl-W6-WIN-BF", /* dftt-h6.ttf; version 1.00, 1993 */
"DFGothic-EB", /* DynaLab Inc. 1992-1995 */
"DFGyoSho-Lt", /* DynaLab Inc. 1992-1995 */
- "DFHei-Md-HK-BF", /* maybe DynaLab Inc. */
+ "DFHei", /* DynaLab Inc. 1992-1995 [DFHei-Bd-WIN-HK-BF] */
+ /* covers "DFHei-Md-HK-BF", maybe DynaLab Inc. */
+
"DFHSGothic-W5", /* DynaLab Inc. 1992-1995 */
"DFHSMincho-W3", /* DynaLab Inc. 1992-1995 */
"DFHSMincho-W7", /* DynaLab Inc. 1992-1995 */
"DFKaiSho-SB", /* dfkaisb.ttf */
- "DFKaiShu",
- "DFKaiShu-Md-HK-BF", /* maybe DynaLab Inc. */
+ "DFKaiShu", /* covers "DFKaiShu-Md-HK-BF", maybe DynaLab Inc. */
"DFKai-SB", /* kaiu.ttf; version 3.00, 1998 [DFKaiShu-SB-Estd-BF] */
- "DFMing-Bd-HK-BF", /* maybe DynaLab Inc. */
+
+ "DFMing", /* DynaLab Inc. 1992-1995 [DFMing-Md-WIN-HK-BF] */
+ /* covers "DFMing-Bd-HK-BF", maybe DynaLab Inc. */
+
"DLC", /* dftt-m7.ttf; version 1.00, 1993 [DLCMingBold] */
/* dftt-f5.ttf; version 1.00, 1993 [DLCFongSung] */
- "DLCHayMedium", /* dftt-b5.ttf; version 1.00, 1993 */
- "DLCHayBold", /* dftt-b7.ttf; version 1.00, 1993 */
- "DLCKaiMedium", /* dftt-k5.ttf; version 1.00, 1992 */
- "DLCLiShu", /* dftt-l5.ttf; version 1.00, 1992 */
- "DLCRoundBold", /* dftt-r7.ttf; version 1.00, 1993 */
+ /* covers following */
+ /* "DLCHayMedium", dftt-b5.ttf; version 1.00, 1993 */
+ /* "DLCHayBold", dftt-b7.ttf; version 1.00, 1993 */
+ /* "DLCKaiMedium", dftt-k5.ttf; version 1.00, 1992 */
+ /* "DLCLiShu", dftt-l5.ttf; version 1.00, 1992 */
+ /* "DLCRoundBold", dftt-r7.ttf; version 1.00, 1993 */
+
"HuaTianKaiTi?", /* htkt2.ttf */
"HuaTianSongTi?", /* htst3.ttf */
"Ming(for ISO10646)", /* hkscsiic.ttf; version 0.12, 2007 [Ming] */
@@ -199,10 +229,12 @@
};
int nn;
+ const FT_String* name_without_tag;
+ name_without_tag = tt_skip_pdffont_random_tag( name );
for ( nn = 0; nn < TRICK_NAMES_COUNT; nn++ )
- if ( ft_strstr( name, trick_names[nn] ) )
+ if ( ft_strstr( name_without_tag, trick_names[nn] ) )
return TRUE;
return FALSE;
@@ -277,7 +309,7 @@
tt_check_trickyness_sfnt_ids( TT_Face face )
{
#define TRICK_SFNT_IDS_PER_FACE 3
-#define TRICK_SFNT_IDS_NUM_FACES 29
+#define TRICK_SFNT_IDS_NUM_FACES 31
static const tt_sfnt_id_rec sfnt_id[TRICK_SFNT_IDS_NUM_FACES]
[TRICK_SFNT_IDS_PER_FACE] = {
@@ -430,6 +462,16 @@
{ 0x00170003UL, 0x00000060UL }, /* cvt */
{ 0xDBB4306EUL, 0x000058AAUL }, /* fpgm */
{ 0xD643482AUL, 0x00000035UL } /* prep */
+ },
+ { /* DFHei-Bd-WIN-HK-BF, issue #1087 */
+ { 0x1269EB58UL, 0x00000350UL }, /* cvt */
+ { 0x5CD5957AUL, 0x00006A4EUL }, /* fpgm */
+ { 0xF758323AUL, 0x00000380UL } /* prep */
+ },
+ { /* DFMing-Md-WIN-HK-BF, issue #1087 */
+ { 0x122FEB0BUL, 0x00000350UL }, /* cvt */
+ { 0x7F10919AUL, 0x000070A9UL }, /* fpgm */
+ { 0x7CD7E7B7UL, 0x0000025CUL } /* prep */
}
};
@@ -510,17 +552,27 @@
/* For first, check the face name for quick check. */
if ( face->family_name &&
tt_check_trickyness_family( face->family_name ) )
+ {
+ FT_TRACE3(( "found as a tricky font"
+ " by its family name: %s\n", face->family_name ));
return TRUE;
+ }
/* Type42 fonts may lack `name' tables, we thus try to identify */
/* tricky fonts by checking the checksums of Type42-persistent */
/* sfnt tables (`cvt', `fpgm', and `prep'). */
if ( tt_check_trickyness_sfnt_ids( (TT_Face)face ) )
+ {
+ FT_TRACE3(( "found as a tricky font"
+ " by its cvt/fpgm/prep table checksum\n" ));
return TRUE;
+ }
return FALSE;
}
+#endif /* TT_USE_BYTECODE_INTERPRETER */
+
/* Check whether `.notdef' is the only glyph in the `loca' table. */
static FT_Bool
@@ -666,8 +718,10 @@
if ( error )
goto Exit;
+#ifdef TT_USE_BYTECODE_INTERPRETER
if ( tt_check_trickyness( ttface ) )
ttface->face_flags |= FT_FACE_FLAG_TRICKY;
+#endif
error = tt_face_load_hdmx( face, stream );
if ( error )
@@ -712,8 +766,8 @@
tt_check_single_notdef( ttface ) )
{
FT_TRACE5(( "tt_face_init:"
- " Only the `.notdef' glyph has an outline.\n"
- " "
+ " Only the `.notdef' glyph has an outline.\n" ));
+ FT_TRACE5(( " "
" Resetting scalable flag to FALSE.\n" ));
ttface->face_flags &= ~FT_FACE_FLAG_SCALABLE;
@@ -1190,11 +1244,11 @@
/* rescale CVT when needed */
if ( size->cvt_ready < 0 )
{
- FT_UInt i;
+ FT_UShort i;
/* all twilight points are originally zero */
- for ( i = 0; i < (FT_UInt)size->twilight.n_points; i++ )
+ for ( i = 0; i < size->twilight.n_points; i++ )
{
size->twilight.org[i].x = 0;
size->twilight.org[i].y = 0;
@@ -1203,7 +1257,7 @@
}
/* clear storage area */
- for ( i = 0; i < (FT_UInt)size->storage_size; i++ )
+ for ( i = 0; i < size->storage_size; i++ )
size->storage[i] = 0;
size->GS = tt_default_graphics_state;
diff --git a/freetype/src/truetype/ttobjs.h b/freetype/src/truetype/ttobjs.h
index d986deab..fd723787 100644
--- a/freetype/src/truetype/ttobjs.h
+++ b/freetype/src/truetype/ttobjs.h
@@ -4,7 +4,7 @@
*
* Objects manager (specification).
*
- * Copyright (C) 1996-2020 by
+ * Copyright (C) 1996-2021 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
diff --git a/freetype/src/truetype/ttpload.c b/freetype/src/truetype/ttpload.c
index b1255b88..71db75ae 100644
--- a/freetype/src/truetype/ttpload.c
+++ b/freetype/src/truetype/ttpload.c
@@ -4,7 +4,7 @@
*
* TrueType-specific tables loader (body).
*
- * Copyright (C) 1996-2020 by
+ * Copyright (C) 1996-2021 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
@@ -98,36 +98,23 @@
goto Exit;
}
- if ( face->header.Index_To_Loc_Format != 0 )
- {
- shift = 2;
+ shift = face->header.Index_To_Loc_Format != 0 ? 2 : 1;
- if ( table_len >= 0x40000L )
- {
- FT_TRACE2(( "table too large\n" ));
- table_len = 0x3FFFFL;
- }
- face->num_locations = table_len >> shift;
- }
- else
+ if ( table_len > 0x10000UL << shift )
{
- shift = 1;
-
- if ( table_len >= 0x20000L )
- {
- FT_TRACE2(( "table too large\n" ));
- table_len = 0x1FFFFL;
- }
- face->num_locations = table_len >> shift;
+ FT_TRACE2(( "table too large\n" ));
+ table_len = 0x10000UL << shift;
}
+ face->num_locations = table_len >> shift;
+
if ( face->num_locations != (FT_ULong)face->root.num_glyphs + 1 )
{
FT_TRACE2(( "glyph count mismatch! loca: %ld, maxp: %ld\n",
face->num_locations - 1, face->root.num_glyphs ));
/* we only handle the case where `maxp' gives a larger value */
- if ( face->num_locations <= (FT_ULong)face->root.num_glyphs )
+ if ( face->num_locations < (FT_ULong)face->root.num_glyphs + 1 )
{
FT_ULong new_loca_len =
( (FT_ULong)face->root.num_glyphs + 1 ) << shift;
@@ -237,10 +224,11 @@
if ( pos1 > face->glyf_len )
{
FT_TRACE1(( "tt_face_get_location:"
- " too large offset (0x%08lx) found for glyph index %d,\n"
- " "
+ " too large offset (0x%08lx) found for glyph index %d,\n",
+ pos1, gindex ));
+ FT_TRACE1(( " "
" exceeding the end of `glyf' table (0x%08lx)\n",
- pos1, gindex, face->glyf_len ));
+ face->glyf_len ));
*asize = 0;
return 0;
}
@@ -251,19 +239,21 @@
if ( gindex == face->num_locations - 2 )
{
FT_TRACE1(( "tt_face_get_location:"
- " too large size (%ld bytes) found for glyph index %d,\n"
- " "
+ " too large size (%ld bytes) found for glyph index %d,\n",
+ pos2 - pos1, gindex ));
+ FT_TRACE1(( " "
" truncating at the end of `glyf' table to %ld bytes\n",
- pos2 - pos1, gindex, face->glyf_len - pos1 ));
+ face->glyf_len - pos1 ));
pos2 = face->glyf_len;
}
else
{
FT_TRACE1(( "tt_face_get_location:"
- " too large offset (0x%08lx) found for glyph index %d,\n"
- " "
+ " too large offset (0x%08lx) found for glyph index %d,\n",
+ pos2, gindex + 1 ));
+ FT_TRACE1(( " "
" exceeding the end of `glyf' table (0x%08lx)\n",
- pos2, gindex + 1, face->glyf_len ));
+ face->glyf_len ));
*asize = 0;
return 0;
}
@@ -344,7 +334,7 @@
face->cvt_size = table_len / 2;
- if ( FT_NEW_ARRAY( face->cvt, face->cvt_size ) )
+ if ( FT_QNEW_ARRAY( face->cvt, face->cvt_size ) )
goto Exit;
if ( FT_FRAME_ENTER( face->cvt_size * 2L ) )
@@ -557,12 +547,6 @@
num_records = FT_NEXT_USHORT( p );
record_size = FT_NEXT_ULONG( p );
- /* The maximum number of bytes in an hdmx device record is the */
- /* maximum number of glyphs + 2; this is 0xFFFF + 2, thus */
- /* explaining why `record_size' is a long (which we read as */
- /* unsigned long for convenience). In practice, two bytes are */
- /* sufficient to hold the size value. */
- /* */
/* There are at least two fonts, HANNOM-A and HANNOM-B version */
/* 2.0 (2005), which get this wrong: The upper two bytes of */
/* the size value are set to 0xFF instead of 0x00. We catch */
@@ -571,19 +555,30 @@
if ( record_size >= 0xFFFF0000UL )
record_size &= 0xFFFFU;
+ FT_TRACE2(( "Hdmx " ));
+
/* The limit for `num_records' is a heuristic value. */
- if ( num_records > 255 ||
- ( num_records > 0 &&
- ( record_size > 0x10001L ||
- record_size < 4 ) ) )
+ if ( num_records > 255 || num_records == 0 )
{
- error = FT_THROW( Invalid_File_Format );
+ FT_TRACE2(( "with unreasonable %u records rejected\n", num_records ));
goto Fail;
}
- if ( FT_NEW_ARRAY( face->hdmx_record_sizes, num_records ) )
+ /* Out-of-spec tables are rejected. The record size must be */
+ /* equal to the number of glyphs + 2 + 32-bit padding. */
+ if ( (FT_Long)record_size != ( ( face->root.num_glyphs + 2 + 3 ) & ~3 ) )
+ {
+ FT_TRACE2(( "with record size off by %ld bytes rejected\n",
+ (FT_Long)record_size -
+ ( ( face->root.num_glyphs + 2 + 3 ) & ~3 ) ));
goto Fail;
+ }
+ if ( FT_QNEW_ARRAY( face->hdmx_record_sizes, num_records ) )
+ goto Fail;
+
+ /* XXX: We do not check if the records are sorted by ppem */
+ /* and cannot use binary search later. */
for ( nn = 0; nn < num_records; nn++ )
{
if ( p + record_size > limit )
@@ -597,6 +592,8 @@
face->hdmx_table_size = table_size;
face->hdmx_record_size = record_size;
+ FT_TRACE2(( "%ux%lu loaded\n", num_records, record_size ));
+
Exit:
return error;
diff --git a/freetype/src/truetype/ttpload.h b/freetype/src/truetype/ttpload.h
index bb669e02..84c42cda 100644
--- a/freetype/src/truetype/ttpload.h
+++ b/freetype/src/truetype/ttpload.h
@@ -4,7 +4,7 @@
*
* TrueType-specific tables loader (specification).
*
- * Copyright (C) 1996-2020 by
+ * Copyright (C) 1996-2021 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
diff --git a/freetype/src/truetype/ttsubpix.c b/freetype/src/truetype/ttsubpix.c
index 56667dea..c484665b 100644
--- a/freetype/src/truetype/ttsubpix.c
+++ b/freetype/src/truetype/ttsubpix.c
@@ -4,7 +4,7 @@
*
* TrueType Subpixel Hinting.
*
- * Copyright (C) 2010-2020 by
+ * Copyright (C) 2010-2021 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
@@ -315,7 +315,7 @@
static const SPH_TweakRule SKIP_NONPIXEL_Y_MOVES_Rules
[SKIP_NONPIXEL_Y_MOVES_RULES_SIZE] =
{
- /* fix vwxyz thinness*/
+ /* fix vwxyz thinness */
{ "Consolas", 0, "", 0 },
/* Fix thin middle stems */
{ "Core MS Legacy Fonts", 0, "Regular", 0 },
@@ -891,12 +891,12 @@
#define TWEAK_RULES( x ) \
if ( sph_test_tweak( face, family, ppem, style, glyph_index, \
x##_Rules, x##_RULES_SIZE ) ) \
- loader->exec->sph_tweak_flags |= SPH_TWEAK_##x;
+ loader->exec->sph_tweak_flags |= SPH_TWEAK_##x
#define TWEAK_RULES_EXCEPTIONS( x ) \
if ( sph_test_tweak( face, family, ppem, style, glyph_index, \
x##_Rules_Exceptions, x##_RULES_EXCEPTIONS_SIZE ) ) \
- loader->exec->sph_tweak_flags &= ~SPH_TWEAK_##x;
+ loader->exec->sph_tweak_flags &= ~SPH_TWEAK_##x
FT_LOCAL_DEF( void )
diff --git a/freetype/src/truetype/ttsubpix.h b/freetype/src/truetype/ttsubpix.h
index 229a6cf0..762b7c98 100644
--- a/freetype/src/truetype/ttsubpix.h
+++ b/freetype/src/truetype/ttsubpix.h
@@ -4,7 +4,7 @@
*
* TrueType Subpixel Hinting.
*
- * Copyright (C) 2010-2020 by
+ * Copyright (C) 2010-2021 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
diff --git a/freetype/src/type1/module.mk b/freetype/src/type1/module.mk
index cffb774b..5da4716f 100644
--- a/freetype/src/type1/module.mk
+++ b/freetype/src/type1/module.mk
@@ -3,7 +3,7 @@
#
-# Copyright (C) 1996-2020 by
+# Copyright (C) 1996-2021 by
# David Turner, Robert Wilhelm, and Werner Lemberg.
#
# This file is part of the FreeType project, and may only be used, modified,
diff --git a/freetype/src/type1/rules.mk b/freetype/src/type1/rules.mk
index 213e6192..985248d3 100644
--- a/freetype/src/type1/rules.mk
+++ b/freetype/src/type1/rules.mk
@@ -3,7 +3,7 @@
#
-# Copyright (C) 1996-2020 by
+# Copyright (C) 1996-2021 by
# David Turner, Robert Wilhelm, and Werner Lemberg.
#
# This file is part of the FreeType project, and may only be used, modified,
diff --git a/freetype/src/type1/t1afm.c b/freetype/src/type1/t1afm.c
index b9cd66b0..4c18ed19 100644
--- a/freetype/src/type1/t1afm.c
+++ b/freetype/src/type1/t1afm.c
@@ -4,7 +4,7 @@
*
* AFM support for Type 1 fonts (body).
*
- * Copyright (C) 1996-2020 by
+ * Copyright (C) 1996-2021 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
@@ -83,7 +83,7 @@
/* compare two kerning pairs */
- FT_CALLBACK_DEF( int )
+ FT_COMPARE_DEF( int )
compare_kern_pairs( const void* a,
const void* b )
{
diff --git a/freetype/src/type1/t1afm.h b/freetype/src/type1/t1afm.h
index edf919c7..86fe45ea 100644
--- a/freetype/src/type1/t1afm.h
+++ b/freetype/src/type1/t1afm.h
@@ -4,7 +4,7 @@
*
* AFM support for Type 1 fonts (specification).
*
- * Copyright (C) 1996-2020 by
+ * Copyright (C) 1996-2021 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
diff --git a/freetype/src/type1/t1driver.c b/freetype/src/type1/t1driver.c
index b786a878..f4d7a089 100644
--- a/freetype/src/type1/t1driver.c
+++ b/freetype/src/type1/t1driver.c
@@ -4,7 +4,7 @@
*
* Type 1 driver interface (body).
*
- * Copyright (C) 1996-2020 by
+ * Copyright (C) 1996-2021 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
diff --git a/freetype/src/type1/t1driver.h b/freetype/src/type1/t1driver.h
index e7eae0b8..20a827f8 100644
--- a/freetype/src/type1/t1driver.h
+++ b/freetype/src/type1/t1driver.h
@@ -4,7 +4,7 @@
*
* High-level Type 1 driver interface (specification).
*
- * Copyright (C) 1996-2020 by
+ * Copyright (C) 1996-2021 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
diff --git a/freetype/src/type1/t1errors.h b/freetype/src/type1/t1errors.h
index ad03a3d3..18ef7545 100644
--- a/freetype/src/type1/t1errors.h
+++ b/freetype/src/type1/t1errors.h
@@ -4,7 +4,7 @@
*
* Type 1 error codes (specification only).
*
- * Copyright (C) 2001-2020 by
+ * Copyright (C) 2001-2021 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
diff --git a/freetype/src/type1/t1gload.c b/freetype/src/type1/t1gload.c
index d16b81f2..86649edf 100644
--- a/freetype/src/type1/t1gload.c
+++ b/freetype/src/type1/t1gload.c
@@ -4,7 +4,7 @@
*
* Type 1 Glyph Loader (body).
*
- * Copyright (C) 1996-2020 by
+ * Copyright (C) 1996-2021 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
@@ -79,7 +79,7 @@
/* For ordinary fonts get the character data stored in the face record. */
{
char_string->pointer = type1->charstrings[glyph_index];
- char_string->length = (FT_Int)type1->charstrings_len[glyph_index];
+ char_string->length = type1->charstrings_len[glyph_index];
}
if ( !error )
diff --git a/freetype/src/type1/t1gload.h b/freetype/src/type1/t1gload.h
index 9947507c..a924d551 100644
--- a/freetype/src/type1/t1gload.h
+++ b/freetype/src/type1/t1gload.h
@@ -4,7 +4,7 @@
*
* Type 1 Glyph Loader (specification).
*
- * Copyright (C) 1996-2020 by
+ * Copyright (C) 1996-2021 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
diff --git a/freetype/src/type1/t1load.c b/freetype/src/type1/t1load.c
index 84986007..bb62c799 100644
--- a/freetype/src/type1/t1load.c
+++ b/freetype/src/type1/t1load.c
@@ -4,7 +4,7 @@
*
* Type 1 font loader (body).
*
- * Copyright (C) 1996-2020 by
+ * Copyright (C) 1996-2021 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
@@ -117,6 +117,9 @@
goto Exit;
blend->num_default_design_vector = 0;
+ blend->weight_vector = NULL;
+ blend->default_weight_vector = NULL;
+ blend->design_pos[0] = NULL;
face->blend = blend;
}
@@ -130,14 +133,11 @@
/* allocate the blend `private' and `font_info' dictionaries */
- if ( FT_NEW_ARRAY( blend->font_infos[1], num_designs ) ||
- FT_NEW_ARRAY( blend->privates [1], num_designs ) ||
- FT_NEW_ARRAY( blend->bboxes [1], num_designs ) ||
- FT_NEW_ARRAY( blend->weight_vector, num_designs * 2 ) )
+ if ( FT_NEW_ARRAY( blend->font_infos[1], num_designs ) ||
+ FT_NEW_ARRAY( blend->privates [1], num_designs ) ||
+ FT_NEW_ARRAY( blend->bboxes [1], num_designs ) )
goto Exit;
- blend->default_weight_vector = blend->weight_vector + num_designs;
-
blend->font_infos[0] = &face->type1.font_info;
blend->privates [0] = &face->type1.private_dict;
blend->bboxes [0] = &face->type1.font_bbox;
@@ -164,21 +164,6 @@
blend->num_axis = num_axis;
}
- /* allocate the blend design pos table if needed */
- num_designs = blend->num_designs;
- num_axis = blend->num_axis;
- if ( num_designs && num_axis && blend->design_pos[0] == 0 )
- {
- FT_UInt n;
-
-
- if ( FT_NEW_ARRAY( blend->design_pos[0], num_designs * num_axis ) )
- goto Exit;
-
- for ( n = 1; n < num_designs; n++ )
- blend->design_pos[n] = blend->design_pos[0] + num_axis * n;
- }
-
Exit:
return error;
@@ -580,7 +565,7 @@
{
FT_Error error;
PS_Blend blend = face->blend;
- FT_UInt n, p;
+ FT_UInt n;
FT_Fixed final_blends[T1_MAX_MM_DESIGNS];
@@ -599,7 +584,7 @@
PS_DesignMap map = blend->design_map + n;
FT_Long* designs = map->design_points;
FT_Fixed* blends = map->blend_points;
- FT_Int before = -1, after = -1;
+ FT_Int p, before = -1, after = -1;
/* use a default value if we don't have a coordinate */
@@ -608,7 +593,7 @@
else
design = ( designs[map->num_points - 1] - designs[0] ) / 2;
- for ( p = 0; p < (FT_UInt)map->num_points; p++ )
+ for ( p = 0; p < (FT_Int)map->num_points; p++ )
{
FT_Long p_design = designs[p];
@@ -622,11 +607,11 @@
if ( design < p_design )
{
- after = (FT_Int)p;
+ after = p;
break;
}
- before = (FT_Int)p;
+ before = p;
}
/* now interpolate if necessary */
@@ -851,7 +836,7 @@
FT_FREE( name );
}
- if ( FT_ALLOC( blend->axis_names[n], len + 1 ) )
+ if ( FT_QALLOC( blend->axis_names[n], len + 1 ) )
goto Exit;
name = (FT_Byte*)blend->axis_names[n];
@@ -872,12 +857,14 @@
{
T1_TokenRec design_tokens[T1_MAX_MM_DESIGNS];
FT_Int num_designs;
- FT_Int num_axis;
- T1_Parser parser = &loader->parser;
+ FT_Int num_axis = 0; /* make compiler happy */
+ T1_Parser parser = &loader->parser;
+ FT_Memory memory = face->root.memory;
+ FT_Error error = FT_Err_Ok;
+ FT_Fixed* design_pos[T1_MAX_MM_DESIGNS];
- FT_Error error = FT_Err_Ok;
- PS_Blend blend;
+ design_pos[0] = NULL;
/* get the array of design tokens -- compute number of designs */
T1_ToTokenArray( parser, design_tokens,
@@ -899,12 +886,10 @@
{
FT_Byte* old_cursor = parser->root.cursor;
FT_Byte* old_limit = parser->root.limit;
- FT_Int n;
+ FT_Int n, nn;
+ PS_Blend blend;
- blend = face->blend;
- num_axis = 0; /* make compiler happy */
-
FT_TRACE4(( " [" ));
for ( n = 0; n < num_designs; n++ )
@@ -937,7 +922,13 @@
(FT_UInt)num_axis );
if ( error )
goto Exit;
- blend = face->blend;
+
+ /* allocate a blend design pos table */
+ if ( FT_QNEW_ARRAY( design_pos[0], num_designs * num_axis ) )
+ goto Exit;
+
+ for ( nn = 1; nn < num_designs; nn++ )
+ design_pos[nn] = design_pos[0] + num_axis * nn;
}
else if ( n_axis != num_axis )
{
@@ -955,8 +946,8 @@
parser->root.cursor = token2->start;
parser->root.limit = token2->limit;
- blend->design_pos[n][axis] = T1_ToFixed( parser, 0 );
- FT_TRACE4(( " %f", (double)blend->design_pos[n][axis] / 65536 ));
+ design_pos[n][axis] = T1_ToFixed( parser, 0 );
+ FT_TRACE4(( " %f", (double)design_pos[n][axis] / 65536 ));
}
FT_TRACE4(( "]" )) ;
}
@@ -965,9 +956,21 @@
loader->parser.root.cursor = old_cursor;
loader->parser.root.limit = old_limit;
+
+ /* a valid BlendDesignPosition has been parsed */
+ blend = face->blend;
+ if ( blend->design_pos[0] )
+ FT_FREE( blend->design_pos[0] );
+
+ for ( n = 0; n < num_designs; n++ )
+ {
+ blend->design_pos[n] = design_pos[n];
+ design_pos[n] = NULL;
+ }
}
Exit:
+ FT_FREE( design_pos[0] );
loader->parser.root.error = error;
}
@@ -1044,7 +1047,7 @@
}
/* allocate design map data */
- if ( FT_NEW_ARRAY( map->design_points, num_points * 2 ) )
+ if ( FT_QNEW_ARRAY( map->design_points, num_points * 2 ) )
goto Exit;
map->blend_points = map->design_points + num_points;
map->num_points = (FT_Byte)num_points;
@@ -1088,6 +1091,7 @@
T1_TokenRec design_tokens[T1_MAX_MM_DESIGNS];
FT_Int num_designs;
FT_Error error = FT_Err_Ok;
+ FT_Memory memory = face->root.memory;
T1_Parser parser = &loader->parser;
PS_Blend blend = face->blend;
T1_Token token;
@@ -1122,13 +1126,19 @@
else if ( blend->num_designs != (FT_UInt)num_designs )
{
FT_ERROR(( "parse_weight_vector:"
- " /BlendDesignPosition and /WeightVector have\n"
- " "
+ " /BlendDesignPosition and /WeightVector have\n" ));
+ FT_ERROR(( " "
" different number of elements\n" ));
error = FT_THROW( Invalid_File_Format );
goto Exit;
}
+ if ( !blend->weight_vector )
+ if ( FT_QNEW_ARRAY( blend->weight_vector, num_designs * 2 ) )
+ goto Exit;
+
+ blend->default_weight_vector = blend->weight_vector + num_designs;
+
old_cursor = parser->root.cursor;
old_limit = parser->root.limit;
@@ -1307,9 +1317,9 @@
else
{
FT_TRACE1(( "t1_load_keyword: ignoring keyword `%s'"
- " which is not valid at this point\n"
- " (probably due to missing keywords)\n",
+ " which is not valid at this point\n",
field->ident ));
+ FT_TRACE1(( " (probably due to missing keywords)\n" ));
error = FT_Err_Ok;
}
@@ -1858,7 +1868,7 @@
}
/* t1_decrypt() shouldn't write to base -- make temporary copy */
- if ( FT_ALLOC( temp, size ) )
+ if ( FT_QALLOC( temp, size ) )
goto Fail;
FT_MEM_COPY( temp, base, size );
psaux->t1_decrypt( temp, size, 4330 );
@@ -2068,7 +2078,7 @@
}
/* t1_decrypt() shouldn't write to base -- make temporary copy */
- if ( FT_ALLOC( temp, size ) )
+ if ( FT_QALLOC( temp, size ) )
goto Fail;
FT_MEM_COPY( temp, base, size );
psaux->t1_decrypt( temp, size, 4330 );
@@ -2578,7 +2588,15 @@
( !face->blend->num_designs || !face->blend->num_axis ) )
T1_Done_Blend( face );
- /* another safety check */
+ /* the font may have no valid WeightVector */
+ if ( face->blend && !face->blend->weight_vector )
+ T1_Done_Blend( face );
+
+ /* the font may have no valid BlendDesignPositions */
+ if ( face->blend && !face->blend->design_pos[0] )
+ T1_Done_Blend( face );
+
+ /* the font may have no valid BlendDesignMap */
if ( face->blend )
{
FT_UInt i;
diff --git a/freetype/src/type1/t1load.h b/freetype/src/type1/t1load.h
index 4396415c..ba19adb1 100644
--- a/freetype/src/type1/t1load.h
+++ b/freetype/src/type1/t1load.h
@@ -4,7 +4,7 @@
*
* Type 1 font loader (specification).
*
- * Copyright (C) 1996-2020 by
+ * Copyright (C) 1996-2021 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
diff --git a/freetype/src/type1/t1objs.c b/freetype/src/type1/t1objs.c
index 3b918b73..50dad038 100644
--- a/freetype/src/type1/t1objs.c
+++ b/freetype/src/type1/t1objs.c
@@ -4,7 +4,7 @@
*
* Type 1 objects manager (body).
*
- * Copyright (C) 1996-2020 by
+ * Copyright (C) 1996-2021 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
@@ -116,11 +116,15 @@
T1_Size_Request( FT_Size t1size, /* T1_Size */
FT_Size_Request req )
{
+ FT_Error error;
+
T1_Size size = (T1_Size)t1size;
PSH_Globals_Funcs funcs = T1_Size_Get_Globals_Funcs( size );
- FT_Request_Metrics( size->root.face, req );
+ error = FT_Request_Metrics( size->root.face, req );
+ if ( error )
+ goto Exit;
if ( funcs )
funcs->set_scale( (PSH_Globals)t1size->internal->module_data,
@@ -128,7 +132,8 @@
size->root.metrics.y_scale,
0, 0 );
- return FT_Err_Ok;
+ Exit:
+ return error;
}
@@ -217,7 +222,6 @@
{
FT_FREE( face->buildchar );
- face->buildchar = NULL;
face->len_buildchar = 0;
}
@@ -598,11 +602,7 @@
/* set default property values, cf. `ftt1drv.h' */
-#ifdef T1_CONFIG_OPTION_OLD_ENGINE
- driver->hinting_engine = FT_HINTING_FREETYPE;
-#else
driver->hinting_engine = FT_HINTING_ADOBE;
-#endif
driver->no_stem_darkening = TRUE;
diff --git a/freetype/src/type1/t1objs.h b/freetype/src/type1/t1objs.h
index 536be8ba..5f103b50 100644
--- a/freetype/src/type1/t1objs.h
+++ b/freetype/src/type1/t1objs.h
@@ -4,7 +4,7 @@
*
* Type 1 objects manager (specification).
*
- * Copyright (C) 1996-2020 by
+ * Copyright (C) 1996-2021 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
diff --git a/freetype/src/type1/t1parse.c b/freetype/src/type1/t1parse.c
index 74cf38bd..9f226296 100644
--- a/freetype/src/type1/t1parse.c
+++ b/freetype/src/type1/t1parse.c
@@ -4,7 +4,7 @@
*
* Type 1 parser (body).
*
- * Copyright (C) 1996-2020 by
+ * Copyright (C) 1996-2021 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
@@ -221,7 +221,7 @@
else
{
/* read segment in memory -- this is clumsy, but so does the format */
- if ( FT_ALLOC( parser->base_dict, size ) ||
+ if ( FT_QALLOC( parser->base_dict, size ) ||
FT_STREAM_READ( parser->base_dict, size ) )
goto Exit;
parser->base_len = size;
@@ -302,8 +302,8 @@
goto Fail;
}
- if ( FT_STREAM_SEEK( start_pos ) ||
- FT_ALLOC( parser->private_dict, parser->private_len ) )
+ if ( FT_STREAM_SEEK( start_pos ) ||
+ FT_QALLOC( parser->private_dict, parser->private_len ) )
goto Fail;
parser->private_len = 0;
@@ -450,7 +450,7 @@
if ( parser->in_memory )
{
/* note that we allocate one more byte to put a terminating `0' */
- if ( FT_ALLOC( parser->private_dict, size + 1 ) )
+ if ( FT_QALLOC( parser->private_dict, size + 1 ) )
goto Fail;
parser->private_len = size;
}
diff --git a/freetype/src/type1/t1parse.h b/freetype/src/type1/t1parse.h
index 1ea0110b..247ff73b 100644
--- a/freetype/src/type1/t1parse.h
+++ b/freetype/src/type1/t1parse.h
@@ -4,7 +4,7 @@
*
* Type 1 parser (specification).
*
- * Copyright (C) 1996-2020 by
+ * Copyright (C) 1996-2021 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
diff --git a/freetype/src/type1/t1tokens.h b/freetype/src/type1/t1tokens.h
index c0942035..13ac8ac1 100644
--- a/freetype/src/type1/t1tokens.h
+++ b/freetype/src/type1/t1tokens.h
@@ -4,7 +4,7 @@
*
* Type 1 tokenizer (specification).
*
- * Copyright (C) 1996-2020 by
+ * Copyright (C) 1996-2021 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
diff --git a/freetype/src/type1/type1.c b/freetype/src/type1/type1.c
index cadee789..003b78cb 100644
--- a/freetype/src/type1/type1.c
+++ b/freetype/src/type1/type1.c
@@ -4,7 +4,7 @@
*
* FreeType Type 1 driver component (body only).
*
- * Copyright (C) 1996-2020 by
+ * Copyright (C) 1996-2021 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
diff --git a/freetype/src/type42/module.mk b/freetype/src/type42/module.mk
index 6ef3a95e..ec3214cd 100644
--- a/freetype/src/type42/module.mk
+++ b/freetype/src/type42/module.mk
@@ -3,7 +3,7 @@
#
-# Copyright (C) 2002-2020 by
+# Copyright (C) 2002-2021 by
# David Turner, Robert Wilhelm, and Werner Lemberg.
#
# This file is part of the FreeType project, and may only be used, modified,
diff --git a/freetype/src/type42/rules.mk b/freetype/src/type42/rules.mk
index f4ce91a3..9821943e 100644
--- a/freetype/src/type42/rules.mk
+++ b/freetype/src/type42/rules.mk
@@ -3,7 +3,7 @@
#
-# Copyright (C) 2002-2020 by
+# Copyright (C) 2002-2021 by
# David Turner, Robert Wilhelm, and Werner Lemberg.
#
# This file is part of the FreeType project, and may only be used, modified,
diff --git a/freetype/src/type42/t42drivr.c b/freetype/src/type42/t42drivr.c
index 90898b43..e74ba1de 100644
--- a/freetype/src/type42/t42drivr.c
+++ b/freetype/src/type42/t42drivr.c
@@ -4,7 +4,7 @@
*
* High-level Type 42 driver interface (body).
*
- * Copyright (C) 2002-2020 by
+ * Copyright (C) 2002-2021 by
* Roberto Alameda.
*
* This file is part of the FreeType project, and may only be used,
diff --git a/freetype/src/type42/t42drivr.h b/freetype/src/type42/t42drivr.h
index 8bf2afc7..c6d8a440 100644
--- a/freetype/src/type42/t42drivr.h
+++ b/freetype/src/type42/t42drivr.h
@@ -4,7 +4,7 @@
*
* High-level Type 42 driver interface (specification).
*
- * Copyright (C) 2002-2020 by
+ * Copyright (C) 2002-2021 by
* Roberto Alameda.
*
* This file is part of the FreeType project, and may only be used,
diff --git a/freetype/src/type42/t42error.h b/freetype/src/type42/t42error.h
index e48132ec..470f5189 100644
--- a/freetype/src/type42/t42error.h
+++ b/freetype/src/type42/t42error.h
@@ -4,7 +4,7 @@
*
* Type 42 error codes (specification only).
*
- * Copyright (C) 2002-2020 by
+ * Copyright (C) 2002-2021 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
diff --git a/freetype/src/type42/t42objs.c b/freetype/src/type42/t42objs.c
index 6acfcdf4..03955e94 100644
--- a/freetype/src/type42/t42objs.c
+++ b/freetype/src/type42/t42objs.c
@@ -4,7 +4,7 @@
*
* Type 42 objects manager (body).
*
- * Copyright (C) 2002-2020 by
+ * Copyright (C) 2002-2021 by
* Roberto Alameda.
*
* This file is part of the FreeType project, and may only be used,
@@ -44,7 +44,7 @@
parser = &loader.parser;
- if ( FT_ALLOC( face->ttf_data, 12 ) )
+ if ( FT_QALLOC( face->ttf_data, 12 ) )
goto Exit;
/* while parsing the font we always update `face->ttf_size' so that */
@@ -510,7 +510,8 @@
error = FT_New_Size( t42face->ttf_face, &ttsize );
- t42size->ttsize = ttsize;
+ if ( !error )
+ t42size->ttsize = ttsize;
FT_Activate_Size( ttsize );
@@ -582,6 +583,7 @@
FT_Face face = t42slot->face;
T42_Face t42face = (T42_Face)face;
FT_GlyphSlot ttslot;
+ FT_Memory memory = face->memory;
FT_Error error = FT_Err_Ok;
@@ -593,9 +595,15 @@
else
{
error = FT_New_GlyphSlot( t42face->ttf_face, &ttslot );
- slot->ttslot = ttslot;
+ if ( !error )
+ slot->ttslot = ttslot;
}
+ /* share the loader so that the autohinter can see it */
+ FT_GlyphLoader_Done( slot->ttslot->internal->loader );
+ FT_FREE( slot->ttslot->internal );
+ slot->ttslot->internal = t42slot->internal;
+
return error;
}
@@ -606,6 +614,8 @@
T42_GlyphSlot slot = (T42_GlyphSlot)t42slot;
+ /* do not destroy the inherited internal structure just yet */
+ slot->ttslot->internal = NULL;
FT_Done_GlyphSlot( slot->ttslot );
}
diff --git a/freetype/src/type42/t42objs.h b/freetype/src/type42/t42objs.h
index 69f5cffd..cbd344ff 100644
--- a/freetype/src/type42/t42objs.h
+++ b/freetype/src/type42/t42objs.h
@@ -4,7 +4,7 @@
*
* Type 42 objects manager (specification).
*
- * Copyright (C) 2002-2020 by
+ * Copyright (C) 2002-2021 by
* Roberto Alameda.
*
* This file is part of the FreeType project, and may only be used,
diff --git a/freetype/src/type42/t42parse.c b/freetype/src/type42/t42parse.c
index 98507699..ea2c5198 100644
--- a/freetype/src/type42/t42parse.c
+++ b/freetype/src/type42/t42parse.c
@@ -4,7 +4,7 @@
*
* Type 42 font parser (body).
*
- * Copyright (C) 2002-2020 by
+ * Copyright (C) 2002-2021 by
* Roberto Alameda.
*
* This file is part of the FreeType project, and may only be used,
@@ -197,7 +197,7 @@
else
{
/* read segment in memory */
- if ( FT_ALLOC( parser->base_dict, size ) ||
+ if ( FT_QALLOC( parser->base_dict, size ) ||
FT_STREAM_READ( parser->base_dict, size ) )
goto Exit;
@@ -576,6 +576,9 @@
old_string_size = 0;
count = 0;
+ FT_TRACE2(( "\n" ));
+ FT_TRACE2(( "t42_parse_sfnts:\n" ));
+
while ( parser->root.cursor < limit )
{
FT_ULong size;
@@ -611,7 +614,7 @@
error = FT_THROW( Invalid_File_Format );
goto Fail;
}
- if ( FT_REALLOC( string_buf, old_string_size, string_size ) )
+ if ( FT_QREALLOC( string_buf, old_string_size, string_size ) )
goto Fail;
allocated = 1;
@@ -680,6 +683,9 @@
goto Fail;
}
+ FT_TRACE2(( " PS string size %5lu bytes, offset 0x%08lx (%lu)\n",
+ string_size, count, count ));
+
/* The whole TTF is now loaded into `string_buf'. We are */
/* checking its contents while copying it to `ttf_data'. */
@@ -702,6 +708,9 @@
status = BEFORE_TABLE_DIR;
face->ttf_size = 12 + 16 * num_tables;
+ FT_TRACE2(( " SFNT directory contains %d tables\n",
+ num_tables ));
+
if ( (FT_Long)size < face->ttf_size )
{
FT_ERROR(( "t42_parse_sfnts: invalid data in sfnts array\n" ));
@@ -709,7 +718,7 @@
goto Fail;
}
- if ( FT_REALLOC( face->ttf_data, 12, face->ttf_size ) )
+ if ( FT_QREALLOC( face->ttf_data, 12, face->ttf_size ) )
goto Fail;
}
/* fall through */
@@ -727,12 +736,18 @@
FT_ULong len;
+ FT_TRACE2(( "\n" ));
+ FT_TRACE2(( " table length\n" ));
+ FT_TRACE2(( " ------------------------------\n" ));
+
for ( i = 0; i < num_tables; i++ )
{
FT_Byte* p = face->ttf_data + 12 + 16 * i + 12;
len = FT_PEEK_ULONG( p );
+ FT_TRACE2(( " %4i 0x%08lx (%lu)\n", i, len, len ));
+
if ( len > size ||
face->ttf_size > (FT_Long)( size - len ) )
{
@@ -748,8 +763,12 @@
status = OTHER_TABLES;
- if ( FT_REALLOC( face->ttf_data, 12 + 16 * num_tables,
- face->ttf_size + 1 ) )
+ FT_TRACE2(( "\n" ));
+ FT_TRACE2(( " allocating %ld bytes\n", face->ttf_size + 1 ));
+ FT_TRACE2(( "\n" ));
+
+ if ( FT_QREALLOC( face->ttf_data, 12 + 16 * num_tables,
+ face->ttf_size + 1 ) )
goto Fail;
}
/* fall through */
diff --git a/freetype/src/type42/t42parse.h b/freetype/src/type42/t42parse.h
index 2ccf052d..0fbd2b5e 100644
--- a/freetype/src/type42/t42parse.h
+++ b/freetype/src/type42/t42parse.h
@@ -4,7 +4,7 @@
*
* Type 42 font parser (specification).
*
- * Copyright (C) 2002-2020 by
+ * Copyright (C) 2002-2021 by
* Roberto Alameda.
*
* This file is part of the FreeType project, and may only be used,
diff --git a/freetype/src/type42/t42types.h b/freetype/src/type42/t42types.h
index ba0cc214..ea2f03e8 100644
--- a/freetype/src/type42/t42types.h
+++ b/freetype/src/type42/t42types.h
@@ -4,7 +4,7 @@
*
* Type 42 font data types (specification only).
*
- * Copyright (C) 2002-2020 by
+ * Copyright (C) 2002-2021 by
* Roberto Alameda.
*
* This file is part of the FreeType project, and may only be used,
diff --git a/freetype/src/type42/type42.c b/freetype/src/type42/type42.c
index 012559e2..d8d3936b 100644
--- a/freetype/src/type42/type42.c
+++ b/freetype/src/type42/type42.c
@@ -4,7 +4,7 @@
*
* FreeType Type 42 driver component.
*
- * Copyright (C) 2002-2020 by
+ * Copyright (C) 2002-2021 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
diff --git a/freetype/src/winfonts/fnterrs.h b/freetype/src/winfonts/fnterrs.h
index 550de386..d582a9b9 100644
--- a/freetype/src/winfonts/fnterrs.h
+++ b/freetype/src/winfonts/fnterrs.h
@@ -4,7 +4,7 @@
*
* Win FNT/FON error codes (specification only).
*
- * Copyright (C) 2001-2020 by
+ * Copyright (C) 2001-2021 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
diff --git a/freetype/src/winfonts/module.mk b/freetype/src/winfonts/module.mk
index 4614c55f..4a8580ca 100644
--- a/freetype/src/winfonts/module.mk
+++ b/freetype/src/winfonts/module.mk
@@ -3,7 +3,7 @@
#
-# Copyright (C) 1996-2020 by
+# Copyright (C) 1996-2021 by
# David Turner, Robert Wilhelm, and Werner Lemberg.
#
# This file is part of the FreeType project, and may only be used, modified,
diff --git a/freetype/src/winfonts/rules.mk b/freetype/src/winfonts/rules.mk
index e73ef5ea..1384f23b 100644
--- a/freetype/src/winfonts/rules.mk
+++ b/freetype/src/winfonts/rules.mk
@@ -3,7 +3,7 @@
#
-# Copyright (C) 1996-2020 by
+# Copyright (C) 1996-2021 by
# David Turner, Robert Wilhelm, and Werner Lemberg.
#
# This file is part of the FreeType project, and may only be used, modified,
diff --git a/freetype/src/winfonts/winfnt.c b/freetype/src/winfonts/winfnt.c
index e83312d1..b4fabad2 100644
--- a/freetype/src/winfonts/winfnt.c
+++ b/freetype/src/winfonts/winfnt.c
@@ -4,7 +4,7 @@
*
* FreeType font driver for Windows FNT/FON files
*
- * Copyright (C) 1996-2020 by
+ * Copyright (C) 1996-2021 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
* Copyright 2003 Huw D M Davies for Codeweavers
* Copyright 2007 Dmitry Timoshkov for Codeweavers
@@ -217,7 +217,11 @@
/* first of all, read the FNT header */
if ( FT_STREAM_SEEK( font->offset ) ||
FT_STREAM_READ_FIELDS( winfnt_header_fields, header ) )
+ {
+ FT_TRACE2(( " not a Windows FNT file\n" ));
+ error = FT_THROW( Unknown_File_Format );
goto Exit;
+ }
/* check header */
if ( header->version != 0x200 &&
@@ -284,7 +288,10 @@
/* does it begin with an MZ header? */
if ( FT_STREAM_SEEK( 0 ) ||
FT_STREAM_READ_FIELDS( winmz_header_fields, &mz_header ) )
+ {
+ error = FT_ERR( Unknown_File_Format );
goto Exit;
+ }
error = FT_ERR( Unknown_File_Format );
if ( mz_header.magic == WINFNT_MZ_MAGIC )
@@ -420,12 +427,12 @@
goto Exit;
FT_TRACE2(( "magic %04lx, machine %02x, number_of_sections %u, "
- "size_of_optional_header %02x\n"
- "magic32 %02x, rsrc_virtual_address %04lx, "
- "rsrc_size %04lx\n",
+ "size_of_optional_header %02x\n",
pe32_header.magic, pe32_header.machine,
pe32_header.number_of_sections,
- pe32_header.size_of_optional_header,
+ pe32_header.size_of_optional_header ));
+ FT_TRACE2(( "magic32 %02x, rsrc_virtual_address %04lx, "
+ "rsrc_size %04lx\n",
pe32_header.magic32, pe32_header.rsrc_virtual_address,
pe32_header.rsrc_size ));
@@ -793,7 +800,7 @@
root->style_flags |= FT_STYLE_FLAG_BOLD;
/* set up the `fixed_sizes' array */
- if ( FT_NEW_ARRAY( root->available_sizes, 1 ) )
+ if ( FT_QNEW( root->available_sizes ) )
goto Fail;
root->num_fixed_sizes = 1;
@@ -885,10 +892,10 @@
}
family_size = font->header.file_size - font->header.face_name_offset;
/* Some broken fonts don't delimit the face name with a final */
- /* NULL byte -- the frame is erroneously one byte too small. */
+ /* null byte -- the frame is erroneously one byte too small. */
/* We thus allocate one more byte, setting it explicitly to */
/* zero. */
- if ( FT_ALLOC( font->family_name, family_size + 1 ) )
+ if ( FT_QALLOC( font->family_name, family_size + 1 ) )
goto Fail;
FT_MEM_COPY( font->family_name,
@@ -897,9 +904,10 @@
font->family_name[family_size] = '\0';
- if ( FT_REALLOC( font->family_name,
- family_size,
- ft_strlen( font->family_name ) + 1 ) )
+ /* shrink it to the actual length */
+ if ( FT_QREALLOC( font->family_name,
+ family_size + 1,
+ ft_strlen( font->family_name ) + 1 ) )
goto Fail;
root->family_name = font->family_name;
@@ -1094,7 +1102,7 @@
/* note: since glyphs are stored in columns and not in rows we */
/* can't use ft_glyphslot_set_bitmap */
- if ( FT_ALLOC_MULT( bitmap->buffer, bitmap->rows, pitch ) )
+ if ( FT_QALLOC_MULT( bitmap->buffer, bitmap->rows, pitch ) )
goto Exit;
column = (FT_Byte*)bitmap->buffer;
diff --git a/freetype/src/winfonts/winfnt.h b/freetype/src/winfonts/winfnt.h
index 3367c771..a7134abd 100644
--- a/freetype/src/winfonts/winfnt.h
+++ b/freetype/src/winfonts/winfnt.h
@@ -4,7 +4,7 @@
*
* FreeType font driver for Windows FNT/FON files
*
- * Copyright (C) 1996-2020 by
+ * Copyright (C) 1996-2021 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
* Copyright 2007 Dmitry Timoshkov for Codeweavers
*
diff --git a/freetype/tests/README.md b/freetype/tests/README.md
new file mode 100644
index 00000000..0d0b99aa
--- /dev/null
+++ b/freetype/tests/README.md
@@ -0,0 +1,22 @@
+# Unit and regression tests for the FreeType library
+
+## Quick Start
+
+### Download test fonts
+
+Run the `tests/scripts/download-fonts.py` script, which will
+download test fonts to the `tests/data/` directory first.
+
+### Build the test programs
+
+The tests are only built with the Meson build system, and
+are disabled by default, enable the 'tests' option to compile
+them, as in:
+
+ meson setup out -Dtests=enabled
+ meson compile -C out
+
+### Run the test programs
+
+ meson test -C out
+
diff --git a/freetype/tests/issue-1063/main.c b/freetype/tests/issue-1063/main.c
new file mode 100644
index 00000000..fd5404eb
--- /dev/null
+++ b/freetype/tests/issue-1063/main.c
@@ -0,0 +1,48 @@
+#include <stdio.h>
+
+#include <freetype/freetype.h>
+#include <ft2build.h>
+
+
+int
+main( void )
+{
+ FT_Library library;
+ FT_Face face = NULL;
+
+ /*
+ * We assume that `FREETYPE_TESTS_DATA_DIR` was set by `meson test`.
+ * Otherwise we default to `../tests/data`.
+ *
+ * TODO (David): Rewrite this to pass the test directory through the
+ * command-line.
+ */
+ const char* testdata_dir = getenv( "FREETYPE_TESTS_DATA_DIR" );
+ char filepath[FILENAME_MAX];
+
+
+ snprintf( filepath, sizeof( filepath ), "%s/%s",
+ testdata_dir ? testdata_dir : "../tests/data",
+ "As.I.Lay.Dying.ttf" );
+
+ FT_Init_FreeType( &library );
+ if ( FT_New_Face( library, filepath, 0, &face ) != 0 )
+ {
+ fprintf( stderr, "Could not open file: %s\n", filepath );
+ return 1;
+ }
+
+ for ( FT_ULong i = 59; i < 171; i++ )
+ {
+ FT_UInt gid = FT_Get_Char_Index( face, i );
+ FT_Error code = FT_Load_Glyph( face, gid, FT_LOAD_DEFAULT );
+
+
+ if ( code )
+ printf( "unknown %d for char %lu, gid %u\n", code, i, gid );
+ }
+
+ return 0;
+}
+
+/* EOF */
diff --git a/freetype/tests/meson.build b/freetype/tests/meson.build
new file mode 100644
index 00000000..527998ff
--- /dev/null
+++ b/freetype/tests/meson.build
@@ -0,0 +1,14 @@
+test_issue_1063 = executable('issue-1063',
+ files([ 'issue-1063/main.c' ]),
+ dependencies: freetype_dep,
+)
+
+test_env = ['FREETYPE_TESTS_DATA_DIR='
+ + join_paths(meson.current_source_dir(), 'data')]
+
+test('issue-1063',
+ test_issue_1063,
+ env: test_env,
+ suite: 'regression')
+
+# EOF
diff --git a/freetype/tests/scripts/download-test-fonts.py b/freetype/tests/scripts/download-test-fonts.py
new file mode 100755
index 00000000..52b742e2
--- /dev/null
+++ b/freetype/tests/scripts/download-test-fonts.py
@@ -0,0 +1,302 @@
+#!/usr/bin/env python3
+
+"""Download test fonts used by the FreeType regression test programs. These
+will be copied to $FREETYPE/tests/data/ by default."""
+
+import argparse
+import collections
+import hashlib
+import io
+import os
+import requests
+import sys
+import zipfile
+
+from typing import Callable, List, Optional, Tuple
+
+# The list of download items describing the font files to install. Each
+# download item is a dictionary with one of the following schemas:
+#
+# - File item:
+#
+# file_url
+# Type: URL string.
+# Required: Yes.
+# Description: URL to download the file from.
+#
+# install_name
+# Type: file name string
+# Required: No
+# Description: Installation name for the font file, only provided if
+# it must be different from the original URL's basename.
+#
+# hex_digest
+# Type: hexadecimal string
+# Required: No
+# Description: Digest of the input font file.
+#
+# - Zip items:
+#
+# These items correspond to one or more font files that are embedded in a
+# remote zip archive. Each entry has the following fields:
+#
+# zip_url
+# Type: URL string.
+# Required: Yes.
+# Description: URL to download the zip archive from.
+#
+# zip_files
+# Type: List of file entries (see below)
+# Required: Yes
+# Description: A list of entries describing a single font file to be
+# extracted from the archive
+#
+# Apart from that, some schemas are used for dictionaries used inside
+# download items:
+#
+# - File entries:
+#
+# These are dictionaries describing a single font file to extract from an
+# archive.
+#
+# filename
+# Type: file path string
+# Required: Yes
+# Description: Path of source file, relative to the archive's
+# top-level directory.
+#
+# install_name
+# Type: file name string
+# Required: No
+# Description: Installation name for the font file; only provided if
+# it must be different from the original filename value.
+#
+# hex_digest
+# Type: hexadecimal string
+# Required: No
+# Description: Digest of the input source file
+#
+_DOWNLOAD_ITEMS = [
+ {
+ "zip_url": "https://github.com/python-pillow/Pillow/files/6622147/As.I.Lay.Dying.zip",
+ "zip_files": [
+ {
+ "filename": "As I Lay Dying.ttf",
+ "install_name": "As.I.Lay.Dying.ttf",
+ "hex_digest": "ef146bbc2673b387",
+ },
+ ],
+ },
+]
+
+
+def digest_data(data: bytes):
+ """Compute the digest of a given input byte string, which are the first
+ 8 bytes of its sha256 hash."""
+ m = hashlib.sha256()
+ m.update(data)
+ return m.digest()[:8]
+
+
+def check_existing(path: str, hex_digest: str):
+ """Return True if |path| exists and matches |hex_digest|."""
+ if not os.path.exists(path) or hex_digest is None:
+ return False
+
+ with open(path, "rb") as f:
+ existing_content = f.read()
+
+ return bytes.fromhex(hex_digest) == digest_data(existing_content)
+
+
+def install_file(content: bytes, dest_path: str):
+ """Write a byte string to a given destination file.
+
+ Args:
+ content: Input data, as a byte string
+ dest_path: Installation path
+ """
+ parent_path = os.path.dirname(dest_path)
+ if not os.path.exists(parent_path):
+ os.makedirs(parent_path)
+
+ with open(dest_path, "wb") as f:
+ f.write(content)
+
+
+def download_file(url: str, expected_digest: Optional[bytes] = None):
+ """Download a file from a given URL.
+
+ Args:
+ url: Input URL
+ expected_digest: Optional digest of the file
+ as a byte string
+ Returns:
+ URL content as binary string.
+ """
+ r = requests.get(url, allow_redirects=True)
+ content = r.content
+ if expected_digest is not None:
+ digest = digest_data(r.content)
+ if digest != expected_digest:
+ raise ValueError(
+ "%s has invalid digest %s (expected %s)"
+ % (url, digest.hex(), expected_digest.hex())
+ )
+
+ return content
+
+
+def extract_file_from_zip_archive(
+ archive: zipfile.ZipFile,
+ archive_name: str,
+ filepath: str,
+ expected_digest: Optional[bytes] = None,
+):
+ """Extract a file from a given zipfile.ZipFile archive.
+
+ Args:
+ archive: Input ZipFile objec.
+ archive_name: Archive name or URL, only used to generate a
+ human-readable error message.
+
+ filepath: Input filepath in archive.
+ expected_digest: Optional digest for the file.
+ Returns:
+ A new File instance corresponding to the extract file.
+ Raises:
+ ValueError if expected_digest is not None and does not match the
+ extracted file.
+ """
+ file = archive.open(filepath)
+ if expected_digest is not None:
+ digest = digest_data(archive.open(filepath).read())
+ if digest != expected_digest:
+ raise ValueError(
+ "%s in zip archive at %s has invalid digest %s (expected %s)"
+ % (filepath, archive_name, digest.hex(), expected_digest.hex())
+ )
+ return file.read()
+
+
+def _get_and_install_file(
+ install_path: str,
+ hex_digest: Optional[str],
+ force_download: bool,
+ get_content: Callable[[], bytes],
+) -> bool:
+ if not force_download and hex_digest is not None \
+ and os.path.exists(install_path):
+ with open(install_path, "rb") as f:
+ content: bytes = f.read()
+ if bytes.fromhex(hex_digest) == digest_data(content):
+ return False
+
+ content = get_content()
+ install_file(content, install_path)
+ return True
+
+
+def download_and_install_item(
+ item: dict, install_dir: str, force_download: bool
+) -> List[Tuple[str, bool]]:
+ """Download and install one item.
+
+ Args:
+ item: Download item as a dictionary, see above for schema.
+ install_dir: Installation directory.
+ force_download: Set to True to force download and installation, even
+ if the font file is already installed with the right content.
+
+ Returns:
+ A list of (install_name, status) tuples, where 'install_name' is the
+ file's installation name under 'install_dir', and 'status' is a
+ boolean that is True to indicate that the file was downloaded and
+ installed, or False to indicate that the file is already installed
+ with the right content.
+ """
+ if "file_url" in item:
+ file_url = item["file_url"]
+ install_name = item.get("install_name", os.path.basename(file_url))
+ install_path = os.path.join(install_dir, install_name)
+ hex_digest = item.get("hex_digest")
+
+ def get_content():
+ return download_file(file_url, hex_digest)
+
+ status = _get_and_install_file(
+ install_path, hex_digest, force_download, get_content
+ )
+ return [(install_name, status)]
+
+ if "zip_url" in item:
+ # One or more files from a zip archive.
+ archive_url = item["zip_url"]
+ archive = zipfile.ZipFile(io.BytesIO(download_file(archive_url)))
+
+ result = []
+ for f in item["zip_files"]:
+ filename = f["filename"]
+ install_name = f.get("install_name", filename)
+ hex_digest = f.get("hex_digest")
+
+ def get_content():
+ return extract_file_from_zip_archive(
+ archive,
+ archive_url,
+ filename,
+ bytes.fromhex(hex_digest) if hex_digest else None,
+ )
+
+ status = _get_and_install_file(
+ os.path.join(install_dir, install_name),
+ hex_digest,
+ force_download,
+ get_content,
+ )
+ result.append((install_name, status))
+
+ return result
+
+ else:
+ raise ValueError("Unknown download item schema: %s" % item)
+
+
+def main():
+ parser = argparse.ArgumentParser(description=__doc__)
+
+ # Assume this script is under tests/scripts/ and tests/data/
+ # is the default installation directory.
+ install_dir = os.path.normpath(
+ os.path.join(os.path.dirname(__file__), "..", "data")
+ )
+
+ parser.add_argument(
+ "--force",
+ action="store_true",
+ default=False,
+ help="Force download and installation of font files",
+ )
+
+ parser.add_argument(
+ "--install-dir",
+ default=install_dir,
+ help="Specify installation directory [%s]" % install_dir,
+ )
+
+ args = parser.parse_args()
+
+ for item in _DOWNLOAD_ITEMS:
+ for install_name, status in download_and_install_item(
+ item, args.install_dir, args.force
+ ):
+ print("%s %s" % (install_name,
+ "INSTALLED" if status else "UP-TO-DATE"))
+
+ return 0
+
+
+if __name__ == "__main__":
+ sys.exit(main())
+
+# EOF
diff --git a/freetype/vms_make.com b/freetype/vms_make.com
index d0f4909c..6e6337d2 100644
--- a/freetype/vms_make.com
+++ b/freetype/vms_make.com
@@ -1,6 +1,6 @@
$! make FreeType 2 under OpenVMS
$!
-$! Copyright (C) 2003-2020 by
+$! Copyright (C) 2003-2021 by
$! David Turner, Robert Wilhelm, and Werner Lemberg.
$!
$! This file is part of the FreeType project, and may only be used, modified,
diff --git a/lib/gslp.ps b/lib/gslp.ps
index 9a3a2f3e..b2cb80df 100644
--- a/lib/gslp.ps
+++ b/lib/gslp.ps
@@ -411,6 +411,15 @@ lpdict begin
/prevHFont null def
/lpfirst { % - lpfirst -
+ % If writing to file we need to emit the definition of 'encoding' or it will
+ % produce non-working PostScript. If we are executing directly then encoding is
+ % already defined. This defines encoding as an array instead of a name, but it will work OK
+ % and avoids changing the /RE procedure.
+ OutFile null eq not {
+ OutFile (/encoding /) writestring
+ OutFile encoding 256 string cvs writestring
+ OutFile ( /Encoding findresource def\n) writestring
+ } if
% Define some abbreviating procedures.
/B {save 3 1 roll translate /X 0 def} lpdef
/BL {save 3 1 roll 90 rotate translate /X 0 def} lpdef
@@ -610,7 +619,16 @@ lpdict begin
/--duplex { /Duplex {Landscape} def } def
/--duplex-long-edge { /Duplex false def } def
/--duplex-short-edge { /Duplex true def } def
-/--encoding { cvn /encoding exch def } def
+/--encoding {
+ cvn /encoding exch def
+ %% If we changed the encoding, then we need to remake the default fonts with the correct encoding
+ /defaultBodyFontPortrait
+ /Courier find-latin-font 10 scalefont def
+ /defaultBodyFontLandscape
+ /Courier find-latin-font 7 scalefont def
+ /defaultBodyFont
+ { Landscape { defaultBodyFontLandscape } { defaultBodyFontPortrait } ifelse } def
+} def
/--first-page { cvi /PageFirst exch def } def
/--footing-center { /FootingCenter exch def /Footers true def } def
/--footing-left { /FootingLeft exch def /Footers true def } def
diff --git a/lib/gssetgs.bat b/lib/gssetgs.bat
index 7c0b8000..8317261a 100644
--- a/lib/gssetgs.bat
+++ b/lib/gssetgs.bat
@@ -12,6 +12,6 @@ if %GS/==/ set GS=gswin32
if NOT %GSC%/==/ goto :gscset
if EXIST %~dp0..\bin\gswin32c.exe set GSC=%~dp0..\bin\gswin32c
-if EXIST %~dp0..\bin\gswin64c.exe set GS=%~dp0..\bin\gswin64c
+if EXIST %~dp0..\bin\gswin64c.exe set GSC=%~dp0..\bin\gswin64c
if %GSC%/==/ set GSC=gswin32c
:gscset
diff --git a/lib/viewjpeg.ps b/lib/viewjpeg.ps
index 554048df..71cb5d44 100644
--- a/lib/viewjpeg.ps
+++ b/lib/viewjpeg.ps
@@ -157,7 +157,7 @@ end % JPEGdict
} bind def
% This lets you do stuff on the command line like:
-% gs -sDEVICE=pdfwrite -o stuff%03d.pdf viewjpeg.ps -c "(image.jpg) << /PageSize 2 index viewJPEGgetsize 2 array astore >> setpagedevice viewJPEG"
+% gs -sDEVICE=pdfwrite -o stuff%03d.pdf viewjpeg.ps -c "(image.jpg) << /PageSize 2 index viewJPEGgetsize 2 array astore /HWResolution [ 72 72 ] >> setpagedevice viewJPEG"
% so the output size matches the original image.
/viewJPEGgetsize { % <file|string> ==> width height
save
diff --git a/man/dvipdf.1 b/man/dvipdf.1
index ad5e144a..a1ff49c9 100644
--- a/man/dvipdf.1
+++ b/man/dvipdf.1
@@ -1,4 +1,4 @@
-.TH DVIPDF 1 "27 September 2021" 9.55.0 Ghostscript \" -*- nroff -*-
+.TH DVIPDF 1 "29 March 2022" 9.56.0 Ghostscript \" -*- nroff -*-
.SH NAME
dvipdf \- Convert TeX DVI file to PDF using ghostscript and dvips
.SH SYNOPSIS
@@ -21,7 +21,7 @@ and any options from the command-line.
.SH SEE ALSO
gs(1), dvips(1)
.SH VERSION
-This document was last revised for Ghostscript version 9.55.0.
+This document was last revised for Ghostscript version 9.56.0.
.SH AUTHOR
Artifex Software, Inc. are the
primary maintainers of Ghostscript.
diff --git a/man/gs.1 b/man/gs.1
index 360ba121..76116447 100644
--- a/man/gs.1
+++ b/man/gs.1
@@ -1,4 +1,4 @@
-.TH GS 1 "27 September 2021" 9.55.0 Ghostscript \" -*- nroff -*-
+.TH GS 1 "29 March 2022" 9.56.0 Ghostscript \" -*- nroff -*-
.SH NAME
gs \- Ghostscript (PostScript and PDF language interpreter and previewer)
.SH SYNOPSIS
@@ -423,7 +423,7 @@ The various Ghostscript document files (above), especially \fBUse.htm\fR.
See http://bugs.ghostscript.com/ and the Usenet news group
comp.lang.postscript.
.SH VERSION
-This document was last revised for Ghostscript version 9.55.0.
+This document was last revised for Ghostscript version 9.56.0.
.SH AUTHOR
Artifex Software, Inc. are the primary maintainers
of Ghostscript.
diff --git a/man/gslp.1 b/man/gslp.1
index 1c9ae921..f36fc02a 100644
--- a/man/gslp.1
+++ b/man/gslp.1
@@ -1,4 +1,4 @@
-.TH GSLP 1 "27 September 2021" 9.55.0 Ghostscript \" -*- nroff -*-
+.TH GSLP 1 "29 March 2022" 9.56.0 Ghostscript \" -*- nroff -*-
.SH NAME
gslp \- Format and print text using ghostscript
.br
@@ -92,7 +92,7 @@ Also, the string %# in a heading or footing is replaced with the page #.
.SH SEE ALSO
gs(1)
.SH VERSION
-This document was last revised for Ghostscript version 9.55.0.
+This document was last revised for Ghostscript version 9.56.0.
.SH AUTHOR
Artifex Software, Inc. are the
primary maintainers of Ghostscript.
diff --git a/man/gsnd.1 b/man/gsnd.1
index 52739970..0f438e6a 100644
--- a/man/gsnd.1
+++ b/man/gsnd.1
@@ -1,4 +1,4 @@
-.TH GSND 1 "27 September 2021" 9.55.0 Ghostscript \" -*- nroff -*-
+.TH GSND 1 "29 March 2022" 9.56.0 Ghostscript \" -*- nroff -*-
.SH NAME
gsnd \- Run ghostscript (PostScript and PDF engine) without display
.SH SYNOPSIS
@@ -12,7 +12,7 @@ flag, followed by any other arguments from the command-line.
.SH SEE ALSO
gs(1)
.SH VERSION
-This document was last revised for Ghostscript version 9.55.0.
+This document was last revised for Ghostscript version 9.56.0.
.SH AUTHOR
Artifex Software, Inc. are the
primary maintainers of Ghostscript.
diff --git a/man/pdf2dsc.1 b/man/pdf2dsc.1
index 0ad19035..90425ecd 100644
--- a/man/pdf2dsc.1
+++ b/man/pdf2dsc.1
@@ -1,4 +1,4 @@
-.TH PDF2DSC 1 "27 September 2021" 9.55.0 "Ghostscript Tools" \" -*- nroff -*-
+.TH PDF2DSC 1 "29 March 2022" 9.56.0 "Ghostscript Tools" \" -*- nroff -*-
.SH NAME
pdf2dsc \- generate a PostScript page list of a PDF document
.SH SYNOPSIS
@@ -28,6 +28,6 @@ Ghostscript since release 3.53.
.SH SEE ALSO
gs(1), ghostview(1)
.SH VERSION
-This document was last revised for Ghostscript version 9.55.0.
+This document was last revised for Ghostscript version 9.56.0.
.SH AUTHOR
Yves Arrouye <yves.arrouye@usa.net> and Russell Lang gsview at ghostgum.com.au
diff --git a/man/pdf2ps.1 b/man/pdf2ps.1
index 1e40e3f4..3875ed94 100644
--- a/man/pdf2ps.1
+++ b/man/pdf2ps.1
@@ -1,4 +1,4 @@
-.TH PDF2PS 1 "27 September 2021" 9.55.0 "Ghostscript Tools" \" -*- nroff -*-
+.TH PDF2PS 1 "29 March 2022" 9.56.0 "Ghostscript Tools" \" -*- nroff -*-
.SH NAME
pdf2ps \- Ghostscript PDF to PostScript translator
.SH SYNOPSIS
@@ -14,7 +14,7 @@ LanguageLevel 3 in the output.
Run "\fBgs -h\fR" to find the location of Ghostscript documentation on your
system, from which you can get more details.
.SH VERSION
-This document was last revised for Ghostscript version 9.55.0.
+This document was last revised for Ghostscript version 9.56.0.
.SH AUTHOR
Artifex Software, Inc. are the
primary maintainers of Ghostscript.
diff --git a/man/pf2afm.1 b/man/pf2afm.1
index 65e2be5a..942051c6 100644
--- a/man/pf2afm.1
+++ b/man/pf2afm.1
@@ -1,4 +1,4 @@
-.TH PF2AFM 1 "27 September 2021" 9.55.0 Ghostscript \" -*- nroff -*-
+.TH PF2AFM 1 "29 March 2022" 9.56.0 Ghostscript \" -*- nroff -*-
.SH NAME
pf2afm \- Make an AFM file from Postscript (PFB/PFA/PFM) font files using ghostscript
.SH SYNOPSIS
@@ -15,7 +15,7 @@ gs(1)
.br
pf2afm.ps in the Ghostscript lib directory.
.SH VERSION
-This document was last revised for Ghostscript version 9.55.0.
+This document was last revised for Ghostscript version 9.56.0.
.SH AUTHOR
Artifex Software, Inc. are the
primary maintainers of Ghostscript.
diff --git a/man/pfbtopfa.1 b/man/pfbtopfa.1
index 0979113e..64f0d9b6 100644
--- a/man/pfbtopfa.1
+++ b/man/pfbtopfa.1
@@ -1,4 +1,4 @@
-.TH PFBTOPFA 1 "27 September 2021" 9.55.0 Ghostscript \" -*- nroff -*-
+.TH PFBTOPFA 1 "29 March 2022" 9.56.0 Ghostscript \" -*- nroff -*-
.SH NAME
pfbtopfa \- Convert Postscript .pfb fonts to .pfa format using ghostscript
.SH SYNOPSIS
@@ -10,7 +10,7 @@ to convert a .pfb file into a .pfa file.
.SH SEE ALSO
gs(1)
.SH VERSION
-This document was last revised for Ghostscript version 9.55.0.
+This document was last revised for Ghostscript version 9.56.0.
.SH AUTHOR
Artifex Software, Inc. are the
primary maintainers of Ghostscript.
diff --git a/man/printafm.1 b/man/printafm.1
index 95030353..ce3433be 100644
--- a/man/printafm.1
+++ b/man/printafm.1
@@ -1,4 +1,4 @@
-.TH PRINTAFM 1 "27 September 2021" 9.55.0 Ghostscript \" -*- nroff -*-
+.TH PRINTAFM 1 "29 March 2022" 9.56.0 Ghostscript \" -*- nroff -*-
.SH NAME
printafm \- Print the metrics from a Postscript font in AFM format using ghostscript
.SH SYNOPSIS
@@ -11,7 +11,7 @@ Output goes to stdout.
.SH SEE ALSO
gs(1)
.SH VERSION
-This document was last revised for Ghostscript version 9.55.0.
+This document was last revised for Ghostscript version 9.56.0.
.SH AUTHOR
Artifex Software, Inc. are the
primary maintainers of Ghostscript.
diff --git a/man/ps2ascii.1 b/man/ps2ascii.1
index 670d541a..fe5ed7e6 100644
--- a/man/ps2ascii.1
+++ b/man/ps2ascii.1
@@ -1,4 +1,4 @@
-.TH PS2ASCII 1 "27 September 2021" 9.55.0 "Ghostscript Tools" \" -*- nroff -*-
+.TH PS2ASCII 1 "29 March 2022" 9.56.0 "Ghostscript Tools" \" -*- nroff -*-
.SH NAME
ps2ascii \- Ghostscript translator from PostScript or PDF to ASCII
.SH SYNOPSIS
@@ -22,7 +22,7 @@ system, from which you can get more details.
.SH SEE ALSO
pstotext(1), http://www.research.digital.com/SRC/virtualpaper/pstotext.html
.SH VERSION
-This document was last revised for Ghostscript version 9.55.0.
+This document was last revised for Ghostscript version 9.56.0.
.SH AUTHOR
Artifex Software, Inc. are the
primary maintainers of Ghostscript.
diff --git a/man/ps2epsi.1 b/man/ps2epsi.1
index ff8a1f12..0b369f06 100644
--- a/man/ps2epsi.1
+++ b/man/ps2epsi.1
@@ -1,4 +1,4 @@
-.TH PS2EPSI 1 "27 September 2021" 9.55.0 "Ghostscript Tools" \" -*- nroff -*-
+.TH PS2EPSI 1 "29 March 2022" 9.56.0 "Ghostscript Tools" \" -*- nroff -*-
.SH NAME
ps2epsi \- generate conforming Encapsulated PostScript
.SH SYNOPSIS
@@ -59,7 +59,7 @@ ps2epsi.ps>the Ghostscript program which does the work
.SH SEE ALSO
gs (1)
.SH VERSION
-This document was last revised for Ghostscript version 9.55.0.
+This document was last revised for Ghostscript version 9.56.0.
However, the content may be obsolete, or inconsistent with ps2epsi.txt.
.SH AUTHOR
George Cameron
diff --git a/man/ps2pdf.1 b/man/ps2pdf.1
index a1187200..afe43e1a 100644
--- a/man/ps2pdf.1
+++ b/man/ps2pdf.1
@@ -1,4 +1,4 @@
-.TH PS2PDF 1 "27 September 2021" 9.55.0 Ghostscript \" -*- nroff -*-
+.TH PS2PDF 1 "29 March 2022" 9.56.0 Ghostscript \" -*- nroff -*-
.SH NAME
ps2pdf \- Convert PostScript to PDF using ghostscript
.br
@@ -89,7 +89,7 @@ VectorDevices.htm in the Ghostscript documentation
See http://bugs.ghostscript.com/ and the Usenet news group
comp.lang.postscript.
.SH VERSION
-This document was last revised for Ghostscript version 9.55.0.
+This document was last revised for Ghostscript version 9.56.0.
.SH AUTHOR
Artifex Software, Inc. are the
primary maintainers of Ghostscript.
diff --git a/man/ps2pdfwr.1 b/man/ps2pdfwr.1
index b59c2ca3..0798717b 100644
--- a/man/ps2pdfwr.1
+++ b/man/ps2pdfwr.1
@@ -1,4 +1,4 @@
-.TH PS2PDFWR 1 "27 September 2021" 9.55.0 Ghostscript \" -*- nroff -*-
+.TH PS2PDFWR 1 "29 March 2022" 9.56.0 Ghostscript \" -*- nroff -*-
.SH NAME
ps2pdfwr \- Convert PostScript to PDF without specifying CompatibilityLevel, using ghostscript
.SH SYNOPSIS
@@ -24,7 +24,7 @@ scripts all invoke this one with the addition of the respective compatibility le
.SH SEE ALSO
gs(1), ps2pdf(1)
.SH VERSION
-This document was last revised for Ghostscript version 9.55.0.
+This document was last revised for Ghostscript version 9.56.0.
.SH AUTHOR
Artifex Software, Inc. are the
primary maintainers of Ghostscript.
diff --git a/man/ps2ps.1 b/man/ps2ps.1
index b76556aa..b4636872 100644
--- a/man/ps2ps.1
+++ b/man/ps2ps.1
@@ -1,4 +1,4 @@
-.TH PS2PS 1 "27 September 2021" 9.55.0 "Ghostscript Tools" \" -*- nroff -*-
+.TH PS2PS 1 "29 March 2022" 9.56.0 "Ghostscript Tools" \" -*- nroff -*-
.SH NAME
ps2ps, eps2eps \- Ghostscript PostScript "distiller"
.SH SYNOPSIS
@@ -22,7 +22,7 @@ system, from which you can get more details.
.SH SEE ALSO
ps2pdf(1), ps2ascii(1), ps2epsi(1)
.SH VERSION
-This document was last revised for Ghostscript version 9.55.0.
+This document was last revised for Ghostscript version 9.56.0.
.SH AUTHOR
Artifex Software, Inc. are the
primary maintainers of Ghostscript.
diff --git a/pdf/ghostpdf.c b/pdf/ghostpdf.c
index 5080a839..8d88b090 100644
--- a/pdf/ghostpdf.c
+++ b/pdf/ghostpdf.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 2018-2021 Artifex Software, Inc.
+/* Copyright (C) 2018-2022 Artifex Software, Inc.
All Rights Reserved.
This software is provided AS-IS with no warranty, either express or
@@ -24,6 +24,7 @@
#include "pdf_file.h"
#include "pdf_loop_detect.h"
#include "pdf_trans.h"
+#include "pdf_font_types.h"
#include "pdf_gstate.h"
#include "stream.h"
#include "strmio.h"
@@ -303,82 +304,15 @@ static int pdfi_output_page_info(pdf_context *ctx, uint64_t page_num)
* 'unknown' message.
*/
const char *pdf_error_strings[] = {
- "no error",
- "no header detected",
- "header lacks a version number",
- "no startxref token found",
- "startxref offset invalid",
- "couldn't read hybrid file's XrefStm",
- "error in xref table",
- "too few entries in xref table",
- "content stream lacks endstream",
- "request for unknown filter",
- "missing white space after number",
- "malformed number",
- "invalid unescaped character '(' in string",
- "invalid object number",
- "object lacks an endobj",
- "error executing PDF token",
- "potential token is too long",
- "Page object doe snot have /Page type",
- "circular reference to indirect object",
- "couldn't repair PDF file",
- "PDF file was repaired",
- "error reading a stream",
- "obj token missing",
- "error in Page dictionary",
- "out of memory",
- "error reading page dictionary",
- "stack underflow",
- "error in stream dictionary",
- "stream inherited a resource",
- "counting down reference to freed object",
- "error in transparency XObject",
- "object lacks a required Subtype",
- "error in image colour",
- "" /* last error, should not be used */
+#define PARAM(A,B) B
+#include "pdf_errors.h"
+ "" /* last error, should not be used */
};
const char *pdf_warning_strings[] = {
- "no warning",
- "incorrect xref size",
- "used inline filter name inappropriately",
- "used inline colour space inappropriately",
- "used inline image key inappropriately",
- "recoverable image error",
- "recoverable error in image dictionary",
- "encountered more Q than q",
- "encountered more q than Q",
- "garbage left on stack",
- "stack underflow",
- "error in group definition",
- "invalid operator used in text block",
- "used invalid operator in CharProc",
- "BT found inside a text block",
- "ET found outside text block",
- "text operator outside text block",
- "degenerate text matrix",
- "bad ICC colour profile, using alternate",
- "bad ICC vs number components, using components",
- "bad value for text rendering mode",
- "error in shading",
- "error in pattern",
- "non standard operator found - ignoring",
- "number uses illegal exponent form",
- "Stream has inappropriate /Contents entry",
- "bad DecodeParms",
- "error in Mask",
- "error in annotation Appearance",
- "badly escaped name",
- "typecheck error",
- "bad trailer dictionary",
- "error in annotation",
- "failed to create ICC profile link",
- "overflowed a real reading a number, assuming 0",
- "failed to read a valid number, assuming 0",
- "A DeviceN space used the /All ink name.",
- "Couldn't retrieve MediaBox for page, using current media size",
- "" /* Last warning shuld not be used */
+#define PARAM(A,B) B
+#include "pdf_warnings.h"
+ "" /* Last warning should not be used */
};
const char *gs_error_strings[] = {
@@ -521,6 +455,37 @@ void pdfi_verbose_warning(pdf_context *ctx, int gs_error, const char *gs_lib_fun
}
}
+void pdfi_set_error_var(pdf_context *ctx, int gs_error, const char *gs_lib_function, pdf_error pdfi_error, const char *pdfi_function_name, const char *fmt, ...)
+{
+ if (pdfi_error != 0)
+ ctx->pdf_errors[pdfi_error / (sizeof(char) * 8)] |= 1 << pdfi_error % (sizeof(char) * 8);
+ if (ctx->args.verbose_errors) {
+ char extra_info[gp_file_name_sizeof];
+ va_list args;
+
+ va_start(args, fmt);
+ (void)vsnprintf(extra_info, sizeof(extra_info), fmt, args);
+ va_end(args);
+
+ pdfi_verbose_error(ctx, gs_error, gs_lib_function, pdfi_error, pdfi_function_name, extra_info);
+ }
+}
+
+void pdfi_set_warning_var(pdf_context *ctx, int gs_error, const char *gs_lib_function, pdf_warning pdfi_warning, const char *pdfi_function_name, const char *fmt, ...)
+{
+ ctx->pdf_warnings[pdfi_warning / (sizeof(char) * 8)] |= 1 << pdfi_warning % (sizeof(char) * 8);
+ if (ctx->args.verbose_warnings) {
+ char extra_info[gp_file_name_sizeof];
+ va_list args;
+
+ va_start(args, fmt);
+ (void)vsnprintf(extra_info, sizeof(extra_info), fmt, args);
+ va_end(args);
+
+ pdfi_verbose_warning(ctx, gs_error, gs_lib_function, pdfi_warning, pdfi_function_name, extra_info);
+ }
+}
+
void pdfi_log_info(pdf_context *ctx, const char *pdfi_function, const char *info)
{
#ifdef DEBUG
@@ -529,7 +494,7 @@ void pdfi_log_info(pdf_context *ctx, const char *pdfi_function, const char *info
#endif
}
-static void
+void
pdfi_report_errors(pdf_context *ctx)
{
int code, i, j;
@@ -872,7 +837,7 @@ int pdfi_prep_collection(pdf_context *ctx, uint64_t *TotalFiles, char ***names_a
/* Start by setting up the file to be read. Apply a SubFileDecode so that, if the input stream
* is not compressed we will stop reading when we get to the end of the stream.
*/
- if (pdfi_dict_knownget_number(ctx, stream_dict, "Length", &L)) {
+ if (pdfi_dict_knownget_number(ctx, stream_dict, "Length", &L) > 0) {
code = pdfi_apply_SubFileDecode_filter(ctx, (int)L, NULL, ctx->main_stream, &SubFile_stream, false);
if (code >= 0)
@@ -1063,7 +1028,12 @@ static int pdfi_init_file(pdf_context *ctx)
}
if (ctx->Trailer) {
- code = pdfi_dict_get(ctx, ctx->Trailer, "Encrypt", &o);
+ /* See comment in pdfi_read_Root() (pdf_doc.c) for details */
+ pdf_dict *d = ctx->Trailer;
+
+ pdfi_countup(d);
+ code = pdfi_dict_get(ctx, d, "Encrypt", &o);
+ pdfi_countdown(d);
if (code < 0 && code != gs_error_undefined)
goto exit;
if (code == 0) {
@@ -1204,9 +1174,9 @@ int pdfi_set_input_stream(pdf_context *ctx, stream *stm)
char extra_info[gp_file_name_sizeof];
if (ctx->filename)
- gs_sprintf(extra_info, "%% File %s does not appear to be a PDF file (no %%PDF in first 2Kb of file)\n", ctx->filename);
+ gs_snprintf(extra_info, sizeof(extra_info), "%% File %s does not appear to be a PDF file (no %%PDF in first 2Kb of file)\n", ctx->filename);
else
- gs_sprintf(extra_info, "%% File does not appear to be a PDF stream (no %%PDF in first 2Kb of stream)\n");
+ gs_snprintf(extra_info, sizeof(extra_info), "%% File does not appear to be a PDF stream (no %%PDF in first 2Kb of stream)\n");
pdfi_set_error(ctx, 0, NULL, E_PDF_NOHEADER, "pdfi_set_input_stream", extra_info);
} else {
@@ -1281,7 +1251,7 @@ int pdfi_set_input_stream(pdf_context *ctx, stream *stm)
byte *b = Buffer + read;
/* Success! stop now */
- if(sscanf((char *)b, " %ld", &ctx->startxref) != 1) {
+ if(sscanf((char *)b, " %"PRIdOFFSET"", &ctx->startxref) != 1) {
dmprintf(ctx->memory, "Unable to read offset of xref from PDF file\n");
}
break;
@@ -1298,7 +1268,7 @@ int pdfi_set_input_stream(pdf_context *ctx, stream *stm)
*/
if (last_lineend) {
leftover = last_lineend - Buffer;
- memcpy(Buffer + bytes - leftover, last_lineend, leftover);
+ memmove(Buffer + bytes - leftover, last_lineend, leftover);
bytes -= leftover;
} else
leftover = 0;
@@ -1362,7 +1332,7 @@ static size_t pdfi_grdir_path_string_match(const byte *str, size_t sl0, byte *pa
int pdfi_add_paths_to_search_paths(pdf_context *ctx, const char *ppath, int l, bool fontpath)
{
- int i, slen, npaths = (l > 0);
+ int i, slen, npaths = (l > 0) ? 1 : 0;
const char *p = ppath;
char *ps;
const char *pe = p + l + 1;
@@ -1500,6 +1470,64 @@ static void pdfi_free_search_paths(pdf_context *ctx)
}
gs_free_object(ctx->memory, (byte *)ctx->search_paths.resource_paths, "array of paths");
gs_free_object(ctx->memory, (byte *)ctx->search_paths.font_paths, "array of font paths");
+
+ if (ctx->search_paths.genericresourcedir.persistent == false)
+ gs_free_object(ctx->memory, (byte *)ctx->search_paths.genericresourcedir.data, "generic resource directory");
+}
+
+static void pdfi_free_fontmapfiles(pdf_context *ctx)
+{
+ int i;
+ for (i = 0; i < ctx->num_fontmapfiles; i++) {
+ gs_free_object(ctx->memory, ctx->fontmapfiles[i].data, "fontmapfiles string body");
+ }
+ gs_free_object(ctx->memory, ctx->fontmapfiles, "fontmapfiles array");
+}
+
+/* The fontmap file list doesn't extend, later settings in the command line override earlier ones
+ (Unlike the "-I" search paths above).
+ */
+int pdfi_add_fontmapfiles(pdf_context *ctx, const char *ppath, int l)
+{
+ int i, nfilenames = (l > 0) ? 1 : 0;
+ const char *p = ppath;
+ char *ps;
+ const char *pe = p + l + 1;
+ int code = 0;
+
+ pdfi_free_fontmapfiles(ctx);
+
+ for (ps = (char *)p; ps < pe; ps++) {
+ if (*ps == gp_file_name_list_separator)
+ nfilenames++;
+ }
+ if (nfilenames > 0) {
+ ctx->fontmapfiles = (gs_string *)gs_alloc_bytes(ctx->memory, sizeof(gs_string) * nfilenames, "array of fontmap files");
+ if (ctx->fontmapfiles == NULL) {
+ return_error(gs_error_VMerror);
+ }
+ else {
+ memset(ctx->fontmapfiles, 0x00, sizeof(gs_string) * nfilenames);
+ ctx->num_fontmapfiles = nfilenames;
+
+ for (i = 0; i < nfilenames; i++) {
+ for (ps = (char *)p; ps < pe; ps++) {
+ if (*ps == gp_file_name_list_separator)
+ break;
+ }
+ ctx->fontmapfiles[i].data = gs_alloc_bytes(ctx->memory, ps - p, "fontmap file name body");
+ if (ctx->fontmapfiles[i].data == NULL) {
+ code = gs_note_error(gs_error_VMerror);
+ goto done;
+ }
+ memcpy(ctx->fontmapfiles[i].data, p, ps - p);
+ ctx->fontmapfiles[i].size = ps - p;
+ p = ps + 1;
+ }
+ }
+ }
+done:
+ return code;
}
/***********************************************************************************/
@@ -1527,10 +1555,6 @@ pdf_context *pdfi_create_context(gs_memory_t *mem)
ctx = (pdf_context *) gs_alloc_bytes(pmem, sizeof(pdf_context), "pdf_create_context");
-#if PDFI_LEAK_CHECK
- ctx->memstat = mstat;
-#endif
-
pgs = gs_gstate_alloc(pmem);
if (!ctx || !pgs)
@@ -1544,6 +1568,14 @@ pdf_context *pdfi_create_context(gs_memory_t *mem)
memset(ctx, 0, sizeof(pdf_context));
ctx->memory = pmem;
+ ctx->type = PDF_CTX;
+ ctx->flags = 0;
+ ctx->refcnt = 1;
+ ctx->ctx = ctx;
+
+#if PDFI_LEAK_CHECK
+ ctx->memstat = mstat;
+#endif
ctx->stack_bot = (pdf_obj **)gs_alloc_bytes(ctx->memory, INITIAL_STACK_SIZE * sizeof (pdf_obj *), "pdf_imp_allocate_interp_stack");
if (ctx->stack_bot == NULL) {
@@ -1575,7 +1607,20 @@ pdf_context *pdfi_create_context(gs_memory_t *mem)
}
ctx->pgs = pgs;
- pdfi_gstate_set_client(ctx, pgs);
+ code = pdfi_gstate_set_client(ctx, pgs);
+ if (code < 0) {
+ gs_free_object(ctx->memory, ctx->font_dir, "pdf_create_context");
+ gs_free_object(pmem, ctx->stack_bot, "pdf_create_context");
+ gs_free_object(pmem, ctx, "pdf_create_context");
+ gs_gstate_free(pgs);
+ return NULL;
+ }
+
+ /* Some (but not all) path construction operations can either return
+ * an error or clamp values when out of range. In order to match Ghostscript's
+ * PDF interpreter written in PostScript, we need to clamp them.
+ */
+ gs_setlimitclamp(pgs, true);
/* Declare PDL client support for high level patterns, for the benefit
* of pdfwrite and other high-level devices
@@ -1606,6 +1651,13 @@ pdf_context *pdfi_create_context(gs_memory_t *mem)
* grestore back to the initial state, it immediately saves another one.
*/
code = gs_gsave(ctx->pgs);
+ if (code < 0) {
+ gs_free_object(ctx->memory, ctx->font_dir, "pdf_create_context");
+ gs_free_object(pmem, ctx->stack_bot, "pdf_create_context");
+ gs_gstate_free(ctx->pgs);
+ gs_free_object(pmem, ctx, "pdf_create_context");
+ return NULL;
+ }
#if REFCNT_DEBUG
ctx->UID = 1;
#endif
@@ -1734,6 +1786,16 @@ int pdfi_clear_context(pdf_context *ctx)
ctx->PagesTree = NULL;
}
+ if (ctx->args.cidsubstpath.data != NULL) {
+ gs_free_object(ctx->memory, ctx->args.cidsubstpath.data, "cidsubstpath.data");
+ ctx->args.cidsubstpath.data = NULL;
+ }
+
+ if (ctx->args.cidsubstfont.data != NULL) {
+ gs_free_object(ctx->memory, ctx->args.cidsubstfont.data, "cidsubstpath.data");
+ ctx->args.cidsubstfont.data = NULL;
+ }
+
pdfi_free_cstring_array(ctx, &ctx->args.showannottypes);
pdfi_free_cstring_array(ctx, &ctx->args.preserveannottypes);
@@ -1859,6 +1921,8 @@ int pdfi_clear_context(pdf_context *ctx)
pdfi_countdown(ctx->pdffontmap);
ctx->pdffontmap = NULL;
+ pdfi_countdown(ctx->pdfnativefontmap);
+ ctx->pdfnativefontmap = NULL;
return 0;
}
@@ -1895,7 +1959,16 @@ int pdfi_free_context(pdf_context *ctx)
}
pdfi_free_search_paths(ctx);
+ pdfi_free_fontmapfiles(ctx);
+ if (ctx->pdfcidfmap != NULL) {
+ pdfi_countdown(ctx->pdfcidfmap);
+ ctx->pdfcidfmap = NULL;
+ }
+ if (ctx->pdffontmap != NULL) {
+ pdfi_countdown(ctx->pdffontmap);
+ ctx->pdffontmap = NULL;
+ }
gs_free_object(ctx->memory, ctx, "pdfi_free_context");
#if PDFI_LEAK_CHECK
gs_memory_status(mem, &mstat);
@@ -1918,21 +1991,39 @@ int pdfi_free_context(pdf_context *ctx)
* it seems to be what happens, so we can't rely on grestore to put back the interpreter context, but must
* do so ourselves.
*
- * Hence the 'from_PS' routine fills in pointers with the current context and procs, wit the expectation that
+ * Hence the 'from_PS' routine fills in pointers with the current context and procs, with the expectation that
* these will be saved and used to restore the data in the 'to_PS' routine.
*/
-void pdfi_gstate_from_PS(pdf_context *ctx, gs_gstate *pgs, void **saved_client_data, gs_gstate_client_procs *saved_procs)
+/* NOTE see the comments in zpdfops.c just under the declaration of the pdfi_switch_t strcuture regarding
+ * complications with the ICC profile cache.
+ */
+
+int pdfi_gstate_from_PS(pdf_context *ctx, gs_gstate *pgs, pdfi_switch_t *i_switch, gsicc_profile_cache_t *profile_cache)
{
- *saved_client_data = pgs->client_data;
- *saved_procs = pgs->client_procs;
- pdfi_gstate_set_client(ctx, pgs);
- return;
+ int code;
+ i_switch->pgs = ctx->pgs;
+ i_switch->procs = pgs->client_procs;
+ i_switch->client_data = (void *)pgs->client_data;
+ i_switch->profile_cache = pgs->icc_profile_cache;
+ code = pdfi_gstate_set_client(ctx, pgs);
+ if (code < 0)
+ return code;
+ i_switch->psfont = pgs->font;
+ pgs->icc_profile_cache = profile_cache;
+ rc_increment(pgs->icc_profile_cache);
+ pgs->font = NULL;
+ ctx->pgs = pgs;
+ return code;
}
-void pdfi_gstate_to_PS(pdf_context *ctx, gs_gstate *pgs, void *client_data, const gs_gstate_client_procs *procs)
+void pdfi_gstate_to_PS(pdf_context *ctx, gs_gstate *pgs, pdfi_switch_t *i_switch)
{
pgs->client_procs.free(pgs->client_data, pgs->memory, pgs);
pgs->client_data = NULL;
- gs_gstate_set_client(pgs, client_data, procs, true);
- return;
+ rc_decrement(pgs->icc_profile_cache, "pdfi_gstate_to_PS");
+ pgs->icc_profile_cache = i_switch->profile_cache;
+ gs_gstate_set_client(pgs, i_switch->client_data, &i_switch->procs, true);
+ ctx->pgs->font = NULL;
+ ctx->pgs = i_switch->pgs;
+ pgs->font = i_switch->psfont;
}
diff --git a/pdf/ghostpdf.h b/pdf/ghostpdf.h
index 3cc1b8cd..49c91808 100644
--- a/pdf/ghostpdf.h
+++ b/pdf/ghostpdf.h
@@ -1,4 +1,4 @@
-/* Copyright (C) 2018-2021 Artifex Software, Inc.
+/* Copyright (C) 2018-2022 Artifex Software, Inc.
All Rights Reserved.
This software is provided AS-IS with no warranty, either express or
@@ -32,6 +32,18 @@
#define PDFI_LEAK_CHECK 0
#endif
+/* A structure for setting/resetting the interpreter graphics state
+ * and some graphics state content when switching between Ghostscript
+ * and pdfi, when running under GS.
+ */
+typedef struct pdf_context_switch {
+ gs_gstate *pgs;
+ gs_font *psfont;
+ gs_gstate_client_procs procs;
+ void *client_data;
+ void *profile_cache;
+} pdfi_switch_t;
+
/*
* The interpreter context.
*/
@@ -42,82 +54,13 @@
* how to deal with this.
*/
typedef enum pdf_error_e {
- E_PDF_NOERROR,
- E_PDF_NOHEADER,
- E_PDF_NOHEADERVERSION,
- E_PDF_NOSTARTXREF,
- E_PDF_BADSTARTXREF,
- E_PDF_BADXREFSTREAM,
- E_PDF_BADXREF,
- E_PDF_SHORTXREF,
- E_PDF_MISSINGENDSTREAM,
- E_PDF_UNKNOWNFILTER,
- E_PDF_MISSINGWHITESPACE,
- E_PDF_MALFORMEDNUMBER,
- E_PDF_UNESCAPEDSTRING,
- E_PDF_BADOBJNUMBER,
- E_PDF_MISSINGENDOBJ,
- E_PDF_TOKENERROR,
- E_PDF_KEYWORDTOOLONG,
- E_PDF_BADPAGETYPE,
- E_PDF_CIRCULARREF,
- E_PDF_UNREPAIRABLE,
- E_PDF_REPAIRED,
- E_PDF_BADSTREAM,
- E_PDF_MISSINGOBJ,
- E_PDF_BADPAGEDICT,
- E_PDF_OUTOFMEMORY,
- E_PDF_PAGEDICTERROR,
- E_PDF_STACKUNDERFLOWERROR,
- E_PDF_BADSTREAMDICT,
- E_PDF_INHERITED_STREAM_RESOURCE,
- E_PDF_DEREF_FREE_OBJ,
- E_PDF_INVALID_TRANS_XOBJECT,
- E_PDF_NO_SUBTYPE,
- E_PDF_IMAGECOLOR_ERROR,
- E_PDF_MAX_ERROR /* Must be last entry, add new errors immediately before this and update pdf_error_strings in ghostpdf.c */
+#include "pdf_errors.h"
+ E_PDF_MAX_ERROR /* last entry */
}pdf_error;
typedef enum pdf_warning_e {
- W_PDF_NOWARNING,
- W_PDF_BAD_XREF_SIZE,
- W_PDF_BAD_INLINEFILTER,
- W_PDF_BAD_INLINECOLORSPACE,
- W_PDF_BAD_INLINEIMAGEKEY,
- W_PDF_IMAGE_ERROR,
- W_PDF_BAD_IMAGEDICT,
- W_PDF_TOOMANYQ,
- W_PDF_TOOMANYq,
- W_PDF_STACKGARBAGE,
- W_PDF_STACKUNDERFLOW,
- W_PDF_GROUPERROR,
- W_PDF_OPINVALIDINTEXT,
- W_PDF_NOTINCHARPROC,
- W_PDF_NESTEDTEXTBLOCK,
- W_PDF_ETNOTEXTBLOCK,
- W_PDF_TEXTOPNOBT,
- W_PDF_DEGENERATETM,
- W_PDF_BADICC_USE_ALT,
- W_PDF_BADICC_USECOMPS,
- W_PDF_BADTRSWITCH,
- W_PDF_BADSHADING,
- W_PDF_BADPATTERN,
- W_PDF_NONSTANDARD_OP,
- W_PDF_NUM_EXPONENT,
- W_PDF_STREAM_HAS_CONTENTS,
- W_PDF_STREAM_BAD_DECODEPARMS,
- W_PDF_MASK_ERROR,
- W_PDF_ANNOT_AP_ERROR,
- W_PDF_BAD_NAME_ESCAPE,
- W_PDF_TYPECHECK,
- W_PDF_BAD_TRAILER,
- W_PDF_ANNOT_ERROR,
- W_PDF_BAD_ICC_PROFILE_LINK,
- W_PDF_OVERFLOW_REAL,
- W_PDF_INVALID_REAL,
- W_PDF_DEVICEN_USES_ALL,
- W_PDF_BAD_MEDIABOX,
- W_PDF_MAX_WARNING /* Must be last entry, add new warnings immediately before this and update pdf_warning_strings in ghostpdf.c */
+#include "pdf_warnings.h"
+ W_PDF_MAX_WARNING /* last entry */
} pdf_warning;
#define PDF_ERROR_BYTE_SIZE ((E_PDF_MAX_ERROR - 1) / (sizeof(char) * 8) + 1)
@@ -132,12 +75,11 @@ typedef enum pdf_crypt_filter_e {
CRYPT_AESV3, /* 256-bit AES */
} pdf_crypt_filter;
-
-typedef enum pdf_overprint_control_e {
- PDF_OVERPRINT_ENABLE = 0,/* Default */
- PDF_OVERPRINT_DISABLE,
- PDF_OVERPRINT_SIMULATE
-} pdf_overprint_control_t;
+typedef enum pdf_type3_d_type_e {
+ pdf_type3_d_none,
+ pdf_type3_d0,
+ pdf_type3_d1
+} pdf_type3_d_type;
#define INITIAL_STACK_SIZE 32
#define MAX_STACK_SIZE 524288
@@ -188,6 +130,7 @@ typedef struct cmd_args_s {
bool dopdfmarks;
bool preserveannots;
char **preserveannottypes; /* Null terminated array of strings, NULL if none */
+ bool preservemarkedcontent;
bool nouserunit;
bool renderttnotdef;
bool pdfinfo;
@@ -196,11 +139,14 @@ typedef struct cmd_args_s {
bool ditherppi;
int PDFX3Profile_num;
char *UseOutputIntent;
- pdf_overprint_control_t overprint_control; /* Overprint -- enabled, disabled, simulated */
char *PageList;
bool QUIET;
bool verbose_errors;
bool verbose_warnings;
+ gs_string cidsubstpath;
+ gs_string cidsubstfont;
+ bool ignoretounicode;
+ bool nonativefontmap;
} cmd_args_t;
typedef struct encryption_state_s {
@@ -285,8 +231,14 @@ typedef struct text_state_s {
/* We need to know if we're in a type 3 CharProc which has executed a 'd1' operator.
* Colour operators are technically invalid if we are in a 'd1' context and we must
* ignore them.
+ * OSS-fuzz #45320 has a type 3 font with a BuildChar which has a 'RG' before the
+ * d1. This is (obviously) illegal because the spec says the first operation must
+ * be either a d0 or d1, in addition because of the graphics state depth hackery
+ * (see comments in pdf_d0() in pdf_font.c) this messes up the reference counting
+ * of the colour spaces, leading to a crash. So what was a boolean flag is now an
+ * enumerated type; pdf_type3_d_none, pdf_type3_d0 or pdf_type3_d1.
*/
- bool CharProc_is_d1;
+ pdf_type3_d_type CharProc_d_type;
/* If there is no current point when we do a BT we start by doing a 0 0 moveto in order
* to establish an initial point. However, this also starts a path. When we finish
* off with a BT we need to clear that path by doing a newpath, otherwise we might
@@ -342,6 +294,7 @@ typedef struct search_paths_s
typedef struct pdf_context_s
{
+ pdf_obj_common;
void *instance;
gs_memory_t *memory;
@@ -376,6 +329,7 @@ typedef struct pdf_context_s
/* Optional/Marked Content stuff */
void *OFFlevels;
uint64_t BMClevel;
+ bool BDCWasOC;
/* Bitfields recording whether any errors or warnings were encountered */
char pdf_errors[PDF_ERROR_BYTE_SIZE];
@@ -424,6 +378,9 @@ typedef struct pdf_context_s
/* Document level PDF objects */
xref_table_t *xref_table;
+ /* Warning! Do not use ctx->Trailer directly as it may be replaced if the file is repaired.
+ * See pdf_doc.c, pdf_read_Root()
+ */
pdf_dict *Trailer;
pdf_dict *Root;
pdf_dict *Info;
@@ -433,9 +390,6 @@ typedef struct pdf_context_s
pdf_dict *AcroForm;
bool NeedAppearances; /* From AcroForm, if any */
-
- /* Interpreter level PDF objects */
-
/* The interpreter operand stack */
uint32_t stack_size;
pdf_obj **stack_bot;
@@ -463,8 +417,13 @@ typedef struct pdf_context_s
/* A name table :-( */
pdfi_name_entry_t *name_table;
+ gs_string *fontmapfiles;
+ int num_fontmapfiles;
+
search_paths_t search_paths;
pdf_dict *pdffontmap;
+ pdf_dict *pdfnativefontmap; /* Explicit mappings take precedence, hence we need separate dictionaries */
+ pdf_dict *pdfcidfmap;
/* These function pointers can be replaced by ones intended to replicate
* PostScript functionality when running inside the Ghostscript PostScript
@@ -475,7 +434,7 @@ typedef struct pdf_context_s
int (*get_glyph_index)(gs_font *font, byte *str, uint size, uint *glyph);
#if REFCNT_DEBUG
- uint64_t UID;
+ uint64_t ref_UID;
#endif
#if CACHE_STATISTICS
uint64_t hits;
@@ -493,6 +452,7 @@ typedef struct pdf_context_s
int pdfi_add_paths_to_search_paths(pdf_context *ctx, const char *ppath, int l, bool fontpath);
int pdfi_add_initial_paths_to_search_paths(pdf_context *ctx, const char *ppath, int l);
+int pdfi_add_fontmapfiles(pdf_context *ctx, const char *ppath, int l);
pdf_context *pdfi_create_context(gs_memory_t *pmem);
int pdfi_clear_context(pdf_context *ctx);
@@ -506,9 +466,10 @@ int pdfi_set_input_stream(pdf_context *ctx, stream *stm);
int pdfi_process_pdf_file(pdf_context *ctx, char *filename);
int pdfi_prep_collection(pdf_context *ctx, uint64_t *TotalFiles, char ***names_array);
int pdfi_close_pdf_file(pdf_context *ctx);
-void pdfi_gstate_from_PS(pdf_context *ctx, gs_gstate *pgs, void **saved_client_data, gs_gstate_client_procs *saved_procs);
-void pdfi_gstate_to_PS(pdf_context *ctx, gs_gstate *pgs, void *client_data, const gs_gstate_client_procs *procs);
+int pdfi_gstate_from_PS(pdf_context *ctx, gs_gstate *pgs, pdfi_switch_t *i_switch, gsicc_profile_cache_t *profile_cache);
+void pdfi_gstate_to_PS(pdf_context *ctx, gs_gstate *pgs, pdfi_switch_t *i_switch);
+void pdfi_report_errors(pdf_context *ctx);
void pdfi_verbose_error(pdf_context *ctx, int gs_error, const char *gs_lib_function, int pdfi_error, const char *pdfi_function_name, const char *extra_info);
void pdfi_verbose_warning(pdf_context *ctx, int gs_error, const char *gs_lib_function, int pdfi_warning, const char *pdfi_function_name, const char *extra_info);
void pdfi_log_info(pdf_context *ctx, const char *pdfi_function, const char *info);
@@ -528,6 +489,10 @@ static inline void pdfi_set_warning(pdf_context *ctx, int gs_error, const char *
pdfi_verbose_warning(ctx, gs_error, gs_lib_function, pdfi_warning, pdfi_function_name, extra_info);
}
+/* Variants of the above that work in a printf style. */
+void pdfi_set_error_var(pdf_context *ctx, int gs_error, const char *gs_lib_function, pdf_error pdfi_error, const char *pdfi_function_name, const char *fmt, ...);
+void pdfi_set_warning_var(pdf_context *ctx, int gs_error, const char *gs_lib_function, pdf_warning pdfi_warning, const char *pdfi_function_name, const char *fmt, ...);
+
#define PURGE_CACHE_PER_PAGE 0
#if PURGE_CACHE_PER_PAGE
diff --git a/pdf/pdf.mak b/pdf/pdf.mak
index ccb70916..7040a72e 100644
--- a/pdf/pdf.mak
+++ b/pdf/pdf.mak
@@ -1,4 +1,4 @@
-# Copyright (C) 2018-2021 Artifex Software, Inc.
+# Copyright (C) 2018-2022 Artifex Software, Inc.
# All Rights Reserved.
#
# This software is provided AS-IS with no warranty, either express or
@@ -60,7 +60,7 @@ PDFINCLUDES=$(PDFSRC)*.h $(GLGEN)arch.h $(strmio_h) $(stream_h) $(gsmatrix_h) $(
$(jpeglib__h) $(sdct_h) $(spdiffx_h)
$(PDFOBJ)ghostpdf.$(OBJ): $(PDFSRC)ghostpdf.c $(PDFINCLUDES) $(plmain_h) $(stream_h) $(strmio_h) \
- $(gsmchunk_h) $(PDF_MAK) $(MAKEDIRS)
+ $(gsmchunk_h) $(gsstate_h) $(gsicc_manage_h) $(PDF_MAK) $(MAKEDIRS)
$(PDFCCC) $(PDFSRC)ghostpdf.c $(PDFO_)ghostpdf.$(OBJ)
$(PDFOBJ)pdf_dict.$(OBJ): $(PDFSRC)pdf_dict.c $(PDFINCLUDES) $(PDF_MAK) $(MAKEDIRS)
@@ -73,18 +73,18 @@ $(PDFOBJ)pdf_xref.$(OBJ): $(PDFSRC)pdf_xref.c $(PDFINCLUDES) $(PDF_MAK) $(MAKEDI
$(PDFCCC) $(PDFSRC)pdf_xref.c $(PDFO_)pdf_xref.$(OBJ)
$(PDFOBJ)pdf_fapi.$(OBJ): $(PDFSRC)pdf_fapi.c $(PDFINCLUDES) \
- $(memory__h) $(gsmemory_h) $(gserrors_h) $(gxdevice_h) $(gxfont_h) $(gxfcid_h) \
- $(gzstate_h) $(gxchar_h) $(gdebug_h) $(gxfapi_h) $(gscoord_h) $(gspath_h) $(gscencs_h) \
- $(gsagl_h) \
- $(PDF_MAK) $(MAKEDIRS)
+ $(memory__h) $(gsmemory_h) $(gserrors_h) $(gxdevice_h) $(gxfont_h) $(gxfont0_h) \
+ $(gxfcid_h) $(gzstate_h) $(gxchar_h) $(gdebug_h) $(gxfapi_h) $(gscoord_h) \
+ $(gspath_h) $(gscencs_h) $(gsagl_h) $(gxfont1_h) $(gscrypt1_h) \
+ $(PDF_MAK) $(MAKEDIRS)
$(PDFCCC) $(PDFSRC)pdf_fapi.c $(PDFO_)pdf_fapi.$(OBJ)
$(PDFOBJ)pdf_font.$(OBJ): $(PDFSRC)pdf_font.c $(PDFINCLUDES) $(PDF_MAK) \
- $(gscencs_h) $(stream_h) $(strmio_h) $(MAKEDIRS)
+ $(gscencs_h) $(stream_h) $(strmio_h) $(gsstate_h) $(MAKEDIRS)
$(PDFCCC) $(PDFSRC)pdf_font.c $(PDFO_)pdf_font.$(OBJ)
$(PDFOBJ)pdf_font0.$(OBJ): $(PDFSRC)pdf_font0.c $(PDFINCLUDES) $(PDF_MAK) \
- $(gxfont_h) $(gxfont0_h) $(MAKEDIRS)
+ $(gxfont_h) $(gxfont0_h) $(gsutil_h) $(MAKEDIRS)
$(PDFCCC) $(PDFSRC)pdf_font0.c $(PDFO_)pdf_font0.$(OBJ)
$(PDFOBJ)pdf_ciddec.$(OBJ): $(PDFSRC)pdf_ciddec.c $(PDFINCLUDES) $(MAKEDIRS)
@@ -92,11 +92,12 @@ $(PDFOBJ)pdf_ciddec.$(OBJ): $(PDFSRC)pdf_ciddec.c $(PDFINCLUDES) $(MAKEDIRS)
$(PDFOBJ)pdf_font1.$(OBJ): $(PDFSRC)pdf_font1.c $(PDFINCLUDES) \
$(gsgdata_h) $(gstype1_h) $(gscencs_h) $(strmio_h) $(strimpl_h) $(stream_h) \
- $(sfilter_h) $(PDF_MAK) $(MAKEDIRS)
+ $(sfilter_h) $(gxtype1_h) $(gsutil_h) $(PDF_MAK) $(MAKEDIRS)
$(PDFCCC) $(PDFSRC)pdf_font1.c $(PDFO_)pdf_font1.$(OBJ)
$(PDFOBJ)pdf_font1C.$(OBJ): $(PDFSRC)pdf_font1C.c $(PDFINCLUDES) \
$(gscedata_h) $(gscencs_h) $(gxfont0_h) $(gxfcid_h) \
+ $(gxtype1_h) $(gsutil_h) \
$(PDF_MAK) $(MAKEDIRS)
$(PDFCCC) $(PDFSRC)pdf_font1C.c $(PDFO_)pdf_font1C.$(OBJ)
@@ -105,63 +106,66 @@ $(PDFOBJ)pdf_fontps.$(OBJ): $(PDFSRC)pdf_fontps.c $(PDFINCLUDES) \
$(PDFCCC) $(PDFSRC)pdf_fontps.c $(PDFO_)pdf_fontps.$(OBJ)
$(PDFOBJ)pdf_font3.$(OBJ): $(PDFSRC)pdf_font3.c $(PDFINCLUDES) \
- $(gscencs_h) $(gscedata_h) $(gsccode_h) $(gsuid_h) \
+ $(gscencs_h) $(gscedata_h) $(gsccode_h) $(gsuid_h) $(gsutil_h) \
$(PDF_MAK) $(MAKEDIRS)
$(PDFCCC) $(PDFSRC)pdf_font3.c $(PDFO_)pdf_font3.$(OBJ)
$(PDFOBJ)pdf_fontTT.$(OBJ): $(PDFSRC)pdf_fontTT.c $(PDFINCLUDES) \
- $(gxfont42_h) $(gscencs_h) $(gsagl_h) $(PDF_MAK) $(MAKEDIRS)
+ $(gxfont42_h) $(gscencs_h) $(gsagl_h) $(gsutil_h) $(PDF_MAK) $(MAKEDIRS)
$(PDFCCC) $(PDFSRC)pdf_fontTT.c $(PDFO_)pdf_fontTT.$(OBJ)
$(PDFOBJ)pdf_font9.$(OBJ): $(PDFSRC)pdf_font9.c $(PDFINCLUDES) $(PDF_MAK) $(MAKEDIRS)
$(PDFCCC) $(PDFSRC)pdf_font9.c $(PDFO_)pdf_font9.$(OBJ)
$(PDFOBJ)pdf_font11.$(OBJ): $(PDFSRC)pdf_font11.c $(PDFINCLUDES) $(gxfont42_h) \
- $(gxfcid_h) $(PDF_MAK) $(MAKEDIRS)
+ $(gxfcid_h) $(gsutil_h) $(PDF_MAK) $(MAKEDIRS)
$(PDFCCC) $(PDFSRC)pdf_font11.c $(PDFO_)pdf_font11.$(OBJ)
$(PDFOBJ)pdf_cmap.$(OBJ): $(PDFSRC)pdf_cmap.c $(PDFINCLUDES) \
- $(strmio_h) $(stream_h) $(scanchar_h) $(PDF_MAK) $(MAKEDIRS)
+ $(strmio_h) $(stream_h) $(scanchar_h) $(PDF_MAK) $(MAKEDIRS)
$(PDFCCC) $(PDFSRC)pdf_cmap.c $(PDFO_)pdf_cmap.$(OBJ)
$(PDFOBJ)pdf_fmap.$(OBJ): $(PDFSRC)pdf_fmap.c $(PDFINCLUDES) \
- $(strmio_h) $(stream_h) $(scanchar_h) $(PDF_MAK) $(MAKEDIRS)
+ $(strmio_h) $(stream_h) $(scanchar_h) $(PDF_MAK) $(MAKEDIRS)
$(PDFCCC) $(PDFSRC)pdf_fmap.c $(PDFO_)pdf_fmap.$(OBJ)
$(PDFOBJ)pdf_text.$(OBJ): $(PDFSRC)pdf_text.c $(PDFINCLUDES) \
- $(gsstate_h) $(gsmatrix_h) $(gdevbbox_h) \
- $(PDF_MAK) $(MAKEDIRS)
+ $(gsstate_h) $(gsmatrix_h) $(gdevbbox_h) $(gspaint_h) \
+ $(gscoord_h) $(PDF_MAK) $(MAKEDIRS)
$(PDFCCC) $(PDFSRC)pdf_text.c $(PDFO_)pdf_text.$(OBJ)
$(PDFOBJ)pdf_shading.$(OBJ): $(PDFSRC)pdf_shading.c $(PDFINCLUDES) \
- $(gxshade_h) $(gsptype2_h) $(gsfunc0_h) \
- $(PDF_MAK) $(MAKEDIRS)
+ $(gsfunc3_h) $(gxshade_h) $(gsptype2_h) $(gsfunc0_h) \
+ $(gscolor3_h) $(gsstate_h) $(PDF_MAK) $(MAKEDIRS)
$(PDFCCC) $(PDFSRC)pdf_shading.c $(PDFO_)pdf_shading.$(OBJ)
$(PDFOBJ)pdf_func.$(OBJ): $(PDFSRC)pdf_func.c $(PDFINCLUDES) \
- $(gsdsrc_h) $(gsfunc0_h) $(gsfunc3_h) $(gsfunc4_h) $(stream_h) \
- $(PDF_MAK) $(MAKEDIRS)
+ $(gsdsrc_h) $(gsfunc0_h) $(gsfunc3_h) $(gsfunc4_h) $(stream_h) \
+ $(PDF_MAK) $(MAKEDIRS)
$(PDFCCC) $(PDFSRC)pdf_func.c $(PDFO_)pdf_func.$(OBJ)
$(PDFOBJ)pdf_image.$(OBJ): $(PDFSRC)pdf_image.c $(PDFINCLUDES) \
- $(stream_h) $(gspath2_h) $(gsiparm4_h) $(gsiparm3_h) $(gsiparm3x_h) \
- $(gsform1_h) $(gstrans_h) \
+ $(stream_h) $(gsicc_cache_h) $(gspath2_h) $(gsiparm4_h) $(gsiparm3_h) $(gsiparm3x_h) \
+ $(gsform1_h) $(gstrans_h) $(gxdevsop_h) $(gspath_h) $(gsstate_h) $(gscoord_h) \
$(PDF_MAK) $(MAKEDIRS)
$(PDFCCC) $(PDFSRC)pdf_image.c $(PDFO_)pdf_image.$(OBJ)
-$(PDFOBJ)pdf_page.$(OBJ): $(PDFSRC)pdf_page.c $(PDFINCLUDES) $(PDF_MAK) $(MAKEDIRS)
+$(PDFOBJ)pdf_page.$(OBJ): $(PDFSRC)pdf_page.c $(PDFINCLUDES) \
+ $(gscoord_h) $(gspaint_h) $(gsstate_h) $(gspath2_h) $(PDF_MAK) $(MAKEDIRS)
$(PDFCCC) $(PDFSRC)pdf_page.c $(PDFO_)pdf_page.$(OBJ)
$(PDFOBJ)pdf_annot.$(OBJ): $(PDFSRC)pdf_annot.c $(PDFINCLUDES) $(gspath2_h) $(gxfarith_h) \
- $(PDF_MAK) $(MAKEDIRS)
+ $(gxdevsop_h) $(gsstrtok_h) $(gscoord_h) $(gsline_h) $(gsutil_h) \
+ $(gspaint_h) $(PDF_MAK) $(MAKEDIRS)
$(PDFCCC) $(PDFSRC)pdf_annot.c $(PDFO_)pdf_annot.$(OBJ)
-$(PDFOBJ)pdf_mark.$(OBJ): $(PDFSRC)pdf_mark.c $(PDFINCLUDES) $(PDF_MAK) $(MAKEDIRS)
+$(PDFOBJ)pdf_mark.$(OBJ): $(PDFSRC)pdf_mark.c $(PDFINCLUDES) $(gscoord_h) \
+ $(PDF_MAK) $(MAKEDIRS)
$(PDFCCC) $(PDFSRC)pdf_mark.c $(PDFO_)pdf_mark.$(OBJ)
$(PDFOBJ)pdf_sec.$(OBJ): $(PDFSRC)pdf_sec.c $(PDFINCLUDES) \
- $(strmio_h) $(smd5_h) $(sarc4_h) $(aes_h) $(sha2_h) \
- $(PDF_MAK) $(MAKEDIRS)
+ $(strmio_h) $(smd5_h) $(sarc4_h) $(aes_h) $(sha2_h) \
+ $(PDF_MAK) $(MAKEDIRS)
$(PDFCCC) $(PDFSRC)pdf_sec.c $(PDFO_)pdf_sec.$(OBJ)
$(PDFOBJ)pdf_utf8_mswin32_.$(OBJ): $(PDFSRC)pdf_utf8.c $(PDFINCLUDES) $(PDF_MAK) $(MAKEDIRS)
@@ -182,72 +186,79 @@ $(PDFOBJ)pdf_utf8.$(OBJ): $(PDFOBJ)pdf_utf8_$(GSPLATFORM).$(OBJ) $(PDF_MAK) $(MA
$(PDFOBJ)pdf_stack.$(OBJ): $(PDFSRC)pdf_stack.c $(PDFINCLUDES) $(PDF_MAK) $(MAKEDIRS)
$(PDFCCC) $(PDFSRC)pdf_stack.c $(PDFO_)pdf_stack.$(OBJ)
-$(PDFOBJ)pdf_gstate.$(OBJ): $(PDFSRC)pdf_gstate.c $(PDFINCLUDES) \
- $(gsmatrix_h) $(gslparam_h) $(gstparam_h) $(gxdht_h) $(gxht_h) $(gzht_h) $(gsht_h) \
- $(PDF_MAK) $(MAKEDIRS)
+$(PDFOBJ)pdf_gstate.$(OBJ): $(PDFSRC)pdf_gstate.c $(PDFINCLUDES) $(gsstate_h) \
+ $(gsmatrix_h) $(gslparam_h) $(gstparam_h) $(gxdht_h) $(gxht_h) $(gzht_h) $(gsht_h) \
+ $(gscoord_h) $(gsutil_h) $(gscolor3_h) $(PDF_MAK) $(MAKEDIRS)
$(PDFCCC) $(PDFSRC)pdf_gstate.c $(PDFO_)pdf_gstate.$(OBJ)
$(PDFOBJ)pdf_colour.$(OBJ): $(PDFSRC)pdf_colour.c $(PDFINCLUDES) \
- $(gsicc_manage_h) $(gsicc_create_h) $(gsptype2_h) $(gscsepr_h) \
- $(stream_h) $(strmio_h) $(gscdevn_h) $(gxcdevn_h) $(PDF_MAK) $(MAKEDIRS)
+ $(gsicc_manage_h) $(gsicc_profilecache_h) $(gsicc_create_h) $(gsicc_cache_h) $(gsptype2_h) $(gscsepr_h) \
+ $(stream_h) $(strmio_h) $(gscdevn_h) $(gxcdevn_h) $(gscolor_h) $(gsicc_h) $(gsstate_h) \
+ $(PDF_MAK) $(MAKEDIRS)
$(PDFCCC) $(PDFSRC)pdf_colour.c $(PDFO_)pdf_colour.$(OBJ)
$(PDFOBJ)pdf_pattern.$(OBJ): $(PDFSRC)pdf_pattern.c $(PDFINCLUDES) \
- $(gsicc_manage_h) $(gsicc_profilecache_h) $(gsicc_create_h) $(gscsepr_h) \
- $(stream_h) $(strmio_h) $(gscdevn_h) \
- $(PDF_MAK) $(MAKEDIRS)
+ $(gsicc_manage_h) $(gsicc_profilecache_h) $(gsicc_create_h) $(gsptype2_h) \
+ $(gxdevsop_h) $(gscsepr_h) $(stream_h) $(strmio_h) $(gscdevn_h) $(gscoord_h) \
+ $(PDF_MAK) $(MAKEDIRS)
$(PDFCCC) $(PDFSRC)pdf_pattern.c $(PDFO_)pdf_pattern.$(OBJ)
-$(PDFOBJ)pdf_path.$(OBJ): $(PDFSRC)pdf_path.c $(PDFINCLUDES) $(gstypes_h) $(PDF_MAK) $(MAKEDIRS)
+$(PDFOBJ)pdf_path.$(OBJ): $(PDFSRC)pdf_path.c $(PDFINCLUDES) $(gstypes_h) \
+ $(gspath_h) $(gspaint_h) $(PDF_MAK) $(MAKEDIRS)
$(PDFCCC) $(PDFSRC)pdf_path.c $(PDFO_)pdf_path.$(OBJ)
$(PDFOBJ)pdf_loop_detect.$(OBJ): $(PDFSRC)pdf_loop_detect.c $(PDFINCLUDES) $(PDF_MAK) $(MAKEDIRS)
$(PDFCCC) $(PDFSRC)pdf_loop_detect.c $(PDFO_)pdf_loop_detect.$(OBJ)
$(PDFOBJ)pdf_int.$(OBJ): $(PDFSRC)pdf_int.c $(PDFINCLUDES) $(plmain_h) \
- $(stream_h) $(strmio_h) $(PDF_MAK) $(MAKEDIRS)
+ $(stream_h) $(strmio_h) $(gsgstate_h) $(PDF_MAK) $(MAKEDIRS)
$(PDFCCC) $(PDFSRC)pdf_int.c $(PDFO_)pdf_int.$(OBJ)
$(PDFOBJ)pdf_file_luratech.$(OBJ): $(PDFSRC)pdf_file.c $(sjpeg_h) $(stream_h) $(strimpl_h) \
- $(strmio_h) $(gpmisc_h) $(simscale_h) $(szlibx_h) $(spngx_h) $(spdiffx_h) $(slzw_h) $(sstring_h) \
- $(sa85d_h) $(scfx_h) $(srlx_h) $(jpeglib__h) $(sdct_h) $(sjpeg_h) $(sfilter_h) $(sarc4_h) \
- $(saes_h) $(ssha2_h) $(sjbig2_luratech_h) $(sjpx_luratech_h) \
+ $(strmio_h) $(gpmisc_h) $(simscale_h) $(szlibx_h) $(spngx_h) $(spdiffx_h) $(slzw_h) \
+ $(sstring_h) $(sa85d_h) $(scfx_h) $(srlx_h) $(jpeglib__h) $(sdct_h) $(sjpeg_h) \
+ $(sfilter_h) $(sarc4_h) $(saes_h) $(ssha2_h) $(gxdevsop_h) \
+ $(sjbig2_luratech_h) $(sjpx_luratech_h) \
$(PDFINCLUDES) $(PDF_MAK) $(MAKEDIRS)
$(PDFLURCC) $(PDFSRC)pdf_file.c $(PDFO_)pdf_file_luratech.$(OBJ)
$(PDFOBJ)pdf_file_jbig2dec.$(OBJ): $(PDFSRC)pdf_file.c $(sjpeg_h) $(stream_h) $(strimpl_h) \
- $(strmio_h) $(simscale_h) $(szlibx_h) $(spngx_h) $(spdiffx_h) $(slzw_h) $(sstring_h) \
- $(sa85d_h) $(scfx_h) $(srlx_h) $(jpeglib__h) $(sdct_h) $(sjpeg_h) $(sfilter_h) $(sarc4_h) \
- $(saes_h) $(ssha2_h) $(sjbig2_h) $(sjpx_openjpeg_h) \
+ $(strmio_h) $(gpmisc_h) $(simscale_h) $(szlibx_h) $(spngx_h) $(spdiffx_h) $(slzw_h) \
+ $(sstring_h) $(sa85d_h) $(scfx_h) $(srlx_h) $(jpeglib__h) $(sdct_h) $(sjpeg_h) \
+ $(sfilter_h) $(sarc4_h) $(saes_h) $(ssha2_h) $(gxdevsop_h) \
+ $(sjpx_openjpeg_h) \
$(PDFINCLUDES) $(PDF_MAK) $(MAKEDIRS)
$(PDFJB2CC) $(PDFSRC)pdf_file.c $(PDFO_)pdf_file_jbig2dec.$(OBJ)
$(PDFOBJ)pdf_file.$(OBJ): $(PDFOBJ)pdf_file_$(JBIG2_LIB).$(OBJ)
$(CP_) $(PDFOBJ)pdf_file_$(JBIG2_LIB).$(OBJ) $(PDFOBJ)pdf_file.$(OBJ)
-$(PDFOBJ)pdf_trans.$(OBJ): $(PDFSRC)pdf_trans.c $(PDFINCLUDES) $(gstparam_h) $(PDF_MAK) $(MAKEDIRS)
+$(PDFOBJ)pdf_trans.$(OBJ): $(PDFSRC)pdf_trans.c $(PDFINCLUDES) $(gstparam_h) \
+ $(gsicc_manage_h) $(gscoord_h) $(gsstate_h) $(gspath_h) $(PDF_MAK) $(MAKEDIRS)
$(PDFCCC) $(PDFSRC)pdf_trans.c $(PDFO_)pdf_trans.$(OBJ)
-$(PDFOBJ)pdf_device.$(OBJ): $(PDFSRC)pdf_device.c $(PDFINCLUDES) $(gdevvec_h) \
- $(PDF_MAK) $(MAKEDIRS)
+$(PDFOBJ)pdf_device.$(OBJ): $(PDFSRC)pdf_device.c $(PDFINCLUDES) $(gsdevice_h) $(gspaint_h) \
+ $(gdevvec_h) $(gxdevsop_h) $(PDF_MAK) $(MAKEDIRS)
$(PDFCCC) $(PDFSRC)pdf_device.c $(PDFO_)pdf_device.$(OBJ)
-$(PDFOBJ)pdf_misc.$(OBJ): $(PDFSRC)pdf_misc.c $(PDFINCLUDES) $(PDF_MAK) $(MAKEDIRS)
+$(PDFOBJ)pdf_misc.$(OBJ): $(PDFSRC)pdf_misc.c $(PDFINCLUDES) $(gspath_h) $(gspaint_h) \
+ $(gsicc_manage_h) $(gsstate_h) $(PDF_MAK) $(MAKEDIRS)
$(PDFCCC) $(PDFSRC)pdf_misc.c $(PDFO_)pdf_misc.$(OBJ)
$(PDFOBJ)pdf_optcontent.$(OBJ): $(PDFSRC)pdf_optcontent.c $(PDFINCLUDES) $(PDF_MAK) $(MAKEDIRS)
$(PDFCCC) $(PDFSRC)pdf_optcontent.c $(PDFO_)pdf_optcontent.$(OBJ)
-$(PDFOBJ)pdf_check.$(OBJ): $(PDFSRC)pdf_check.c $(PDFINCLUDES) $(PDF_MAK) $(MAKEDIRS)
+$(PDFOBJ)pdf_check.$(OBJ): $(PDFSRC)pdf_check.c $(PDFINCLUDES) $(gsdevice_h) $(gspaint_h) \
+ $(PDF_MAK) $(MAKEDIRS)
$(PDFCCC) $(PDFSRC)pdf_check.c $(PDFO_)pdf_check.$(OBJ)
$(PDFOBJ)pdf_deref.$(OBJ): $(PDFSRC)pdf_deref.c $(PDFINCLUDES) $(strmio_h) $(stream_h) \
- $(PDF_MAK) $(MAKEDIRS)
+ $(PDF_MAK) $(MAKEDIRS)
$(PDFCCC) $(PDFSRC)pdf_deref.c $(PDFO_)pdf_deref.$(OBJ)
$(PDFOBJ)pdf_repair.$(OBJ): $(PDFSRC)pdf_repair.c $(PDFINCLUDES) \
- $(strmio_h) $(stream_h) \
- $(PDF_MAK) $(MAKEDIRS)
+ $(strmio_h) $(stream_h) \
+ $(PDF_MAK) $(MAKEDIRS)
$(PDFCCC) $(PDFSRC)pdf_repair.c $(PDFO_)pdf_repair.$(OBJ)
$(PDFOBJ)pdf_obj.$(OBJ): $(PDFSRC)pdf_obj.c $(PDFINCLUDES) $(PDF_MAK) $(MAKEDIRS)
diff --git a/pdf/pdf_annot.c b/pdf/pdf_annot.c
index 116081c2..7b96be1c 100644
--- a/pdf/pdf_annot.c
+++ b/pdf/pdf_annot.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 2019-2021 Artifex Software, Inc.
+/* Copyright (C) 2019-2022 Artifex Software, Inc.
All Rights Reserved.
This software is provided AS-IS with no warranty, either express or
@@ -24,6 +24,7 @@
#include "pdf_loop_detect.h"
#include "pdf_colour.h"
#include "pdf_trans.h"
+#include "pdf_font_types.h"
#include "pdf_gstate.h"
#include "pdf_misc.h"
#include "pdf_optcontent.h"
@@ -1076,8 +1077,7 @@ pdfi_annot_display_formatted_text(pdf_context *ctx, pdf_dict *annot,
code = pdfi_string_bbox(ctx, temp_string, &bbox, &awidth, false);
if (code < 0) goto exit;
- if (linestart || ((x + awidth.x) <= x_max)) {
- } else {
+ if (!linestart && ((x + awidth.x) > x_max)) {
x = x_start;
linestart = true;
}
@@ -1447,8 +1447,8 @@ static int pdfi_annot_draw_LE_one(pdf_context *ctx, pdf_dict *annot, pdf_name *L
}
if (!dispatch_ptr->name) {
char str[100];
- memcpy(str, (const char *)LE->data, LE->length);
- str[LE->length] = '\0';
+ memcpy(str, (const char *)LE->data, LE->length < 100 ? LE->length : 99);
+ str[LE->length < 100 ? LE->length : 99] = '\0';
dbgmprintf1(ctx->memory, "ANNOT: WARNING No handler for LE %s\n", str);
}
@@ -3091,6 +3091,11 @@ static int pdfi_annot_draw_PolyLine(pdf_context *ctx, pdf_dict *annot, pdf_obj *
code = pdfi_dict_knownget_type(ctx, annot, "Vertices", PDF_ARRAY, (pdf_obj **)&Vertices);
if (code < 0) goto exit;
+ if (code == 0) {
+ code = gs_note_error(gs_error_undefined);
+ goto exit;
+ }
+
size = pdfi_array_size(Vertices);
if (size == 0) {
code = 0;
@@ -3155,7 +3160,7 @@ static int pdfi_annot_draw_Polygon(pdf_context *ctx, pdf_dict *annot, pdf_obj *N
if (code < 0) goto exit1;
code = pdfi_dict_knownget_type(ctx, annot, "Vertices", PDF_ARRAY, (pdf_obj **)&Vertices);
- if (code < 0) goto exit;
+ if (code <= 0) goto exit;
code = pdfi_annot_path_array(ctx, annot, Vertices);
if (code < 0) goto exit1;
@@ -3708,8 +3713,8 @@ static int pdfi_annot_draw_NotImplemented(pdf_context *ctx, pdf_dict *annot, pdf
code = pdfi_dict_get_type(ctx, annot, "Subtype", PDF_NAME, (pdf_obj **)&Subtype);
if (code < 0) goto exit;
- memcpy(str, (const char *)Subtype->data, Subtype->length);
- str[Subtype->length] = '\0';
+ memcpy(str, (const char *)Subtype->data, Subtype->length < 100 ? Subtype->length : 99);
+ str[Subtype->length < 100 ? Subtype->length : 99] = '\0';
dbgmprintf1(ctx->memory, "ANNOT: No AP, default appearance for Subtype %s Not Implemented\n", str);
exit:
@@ -3880,8 +3885,8 @@ static int pdfi_annot_draw(pdf_context *ctx, pdf_dict *annot, pdf_name *subtype)
}
if (!dispatch_ptr->subtype) {
char str[100];
- memcpy(str, (const char *)subtype->data, subtype->length);
- str[subtype->length] = '\0';
+ memcpy(str, (const char *)subtype->data, subtype->length < 100 ? subtype->length : 99);
+ str[subtype->length < 100 ? subtype->length : 99] = '\0';
dbgmprintf1(ctx->memory, "ANNOT: No handler for subtype %s\n", str);
/* Not necessarily an error? We can just render the AP if there is one */
@@ -4107,6 +4112,117 @@ static int pdfi_annot_preserve_modAP(pdf_context *ctx, pdf_dict *annot, pdf_name
/* Make a temporary copy of the annotation dict with some fields left out or
* modified, then do a pdfmark on it
*/
+
+const char *PermittedKeys[] = {
+ /* These keys are valid for all annotation types, we specifically do not allow /P or /Parent */
+ "Type",
+ "Subtype",
+ "Rect",
+ "Contents",
+ "NM",
+ "M",
+ "F",
+ "AP",
+ "AS",
+ "Border",
+ "C",
+ "StructParent",
+ "OC",
+ "AF",
+ "ca",
+ "CA",
+ "BM",
+ "Lang",
+ /* Keys by annotation type (some are common to more than one type, only one entry per key) */
+ /* Markup Annotations we specifically do not permit RT, IRT or Popup */
+ "T",
+ "RC",
+ "CreationDate",
+ "Subj",
+ "IT",
+ "ExData",
+ /* Text annotations */
+ "Open",
+ "Name",
+ "State",
+ "StateModel",
+ /* This isn't specified as being allowed, but Acrobat does something with it, so we need to preserve it */
+ "Rotate",
+ /* Link annotations */
+ "A",
+ "Dest",
+ "H",
+ "PA",
+ "QuadPoints",
+ /* FreeText annotations */
+ "DA",
+ "Q",
+ "DS",
+ "CL",
+ "IT",
+ "BE",
+ "RD",
+ "BS",
+ "LE",
+ /* Line Annotations */
+ "L",
+ "LE",
+ "IC",
+ "LL",
+ "LLE",
+ "Cap",
+ "LLO",
+ "CP",
+ "Measure",
+ "CO",
+ /* Square and Circle annotations */
+ "Path",
+ /* Polygon and PolyLine annotations */
+ "Vertices",
+ /* Text Markup annotations */
+ /* Caret annotations */
+ "Sy",
+ /* Rubber Stamp annotations */
+ /* Ink annotations */
+ "InkList",
+ /* Popup annotations */
+ "Open",
+ /* File attachment annotation */
+ "FS",
+ /* Sound annotations */
+ "Sound",
+ /* Movie annotations */
+ "Movie",
+ /* Screen annotations */
+ "MK",
+ "AA",
+ /* We don't handle Widget annotations as annotations, we draw them */
+ /* Printer's Mark annotations */
+ /* Trap Network annotations */
+ /* Watermark annotations */
+ "FixedPrint",
+ "Matrix",
+ "H",
+ "V",
+ /* Redaction annotations */
+ "RO",
+ "OverlayText",
+ "Repeat",
+ /* Projection annotations */
+ /* 3D and RichMedia annotations */
+};
+
+static int isKnownKey(pdf_context *ctx, pdf_name *Key)
+{
+ int i = 0;
+
+ for (i = 0; i < sizeof(PermittedKeys) / sizeof (const char *); i++) {
+ if (pdfi_name_is(Key, PermittedKeys[i]))
+ return 1;
+ }
+ return 0;
+}
+
static int pdfi_annot_preserve_mark(pdf_context *ctx, pdf_dict *annot, pdf_name *subtype)
{
int code = 0;
@@ -4136,51 +4252,44 @@ static int pdfi_annot_preserve_mark(pdf_context *ctx, pdf_dict *annot, pdf_name
while (code >= 0) {
resolve = false;
- if (pdfi_name_is(Key, "Popup") || pdfi_name_is(Key, "IRT") || pdfi_name_is(Key, "RT") ||
- pdfi_name_is(Key, "P") || pdfi_name_is(Key, "Parent")) {
- /* Delete some keys
- * These would not be handled correctly and are optional.
- * (see pdf_draw.ps/loadannot())
- * TODO: Could probably handle some of these since they are typically
- * just references, and we do have a way to handle references?
- * Look into it later...
- */
+ if (!isKnownKey(ctx, Key)) {
code = pdfi_dict_delete_pair(ctx, tempdict, Key);
if (code < 0) goto exit;
- } else if (pdfi_name_is(Key, "AP")) {
- /* Special handling for AP -- have fun! */
- code = pdfi_annot_preserve_modAP(ctx, tempdict, Key);
- if (code < 0) goto exit;
- } else if (pdfi_name_is(Key, "QuadPoints")) {
- code = pdfi_annot_preserve_modQP(ctx, tempdict, Key);
- if (code < 0) goto exit;
- } else if (pdfi_name_is(Key, "A")) {
- code = pdfi_mark_modA(ctx, tempdict);
- if (code < 0) goto exit;
- } else if (pdfi_name_is(Key, "Dest")) {
- if (ctx->args.no_pdfmark_dests) {
- /* If omitting dests, such as for multi-page output, then omit this whole annotation */
- code = 0;
- goto exit;
- }
- code = pdfi_mark_modDest(ctx, tempdict);
- if (code < 0) goto exit;
- } else if (pdfi_name_is(Key, "StructTreeRoot")) {
- /* TODO: Bug691785 has Link annots with /StructTreeRoot
- * It is super-circular, and causes issues.
- * GS code only adds in certain values for Link so it doesn't
- * run into a problem. I am just going to delete it.
- * There should be a better solution to handle circular stuff
- * generically.
- */
- code = pdfi_dict_delete_pair(ctx, tempdict, Key);
- if (code < 0) goto exit;
- } else if (pdfi_name_is(Key, "Sound") || pdfi_name_is(Key, "Movie")) {
- resolve = false;
} else {
- resolve = true;
+ if (pdfi_name_is(Key, "AP")) {
+ /* Special handling for AP -- have fun! */
+ code = pdfi_annot_preserve_modAP(ctx, tempdict, Key);
+ if (code < 0) goto exit;
+ } else if (pdfi_name_is(Key, "QuadPoints")) {
+ code = pdfi_annot_preserve_modQP(ctx, tempdict, Key);
+ if (code < 0) goto exit;
+ } else if (pdfi_name_is(Key, "A")) {
+ code = pdfi_pdfmark_modA(ctx, tempdict);
+ if (code < 0) goto exit;
+ } else if (pdfi_name_is(Key, "Dest")) {
+ if (ctx->args.no_pdfmark_dests) {
+ /* If omitting dests, such as for multi-page output, then omit this whole annotation */
+ code = 0;
+ goto exit;
+ }
+ code = pdfi_pdfmark_modDest(ctx, tempdict);
+ if (code < 0) goto exit;
+ } else if (pdfi_name_is(Key, "StructTreeRoot")) {
+ /* TODO: Bug691785 has Link annots with /StructTreeRoot
+ * It is super-circular, and causes issues.
+ * GS code only adds in certain values for Link so it doesn't
+ * run into a problem. I am just going to delete it.
+ * There should be a better solution to handle circular stuff
+ * generically.
+ */
+ code = pdfi_dict_delete_pair(ctx, tempdict, Key);
+ if (code < 0) goto exit;
+ } else if (pdfi_name_is(Key, "Sound") || pdfi_name_is(Key, "Movie")) {
+ resolve = false;
+ } else {
+ resolve = true;
+ }
}
-
if (resolve) {
code = pdfi_dict_get_by_key(ctx, annot, (const pdf_name *)Key, &Value);
if (code < 0) goto exit;
@@ -4212,9 +4321,9 @@ static int pdfi_annot_preserve_mark(pdf_context *ctx, pdf_dict *annot, pdf_name
gs_currentmatrix(ctx->pgs, &ctm);
if (pdfi_name_is(subtype, "Link"))
- code = pdfi_mark_from_dict(ctx, tempdict, &ctm, "LNK");
+ code = pdfi_pdfmark_from_dict(ctx, tempdict, &ctm, "LNK");
else
- code = pdfi_mark_from_dict(ctx, tempdict, &ctm, "ANN");
+ code = pdfi_pdfmark_from_dict(ctx, tempdict, &ctm, "ANN");
if (code < 0) goto exit;
exit:
diff --git a/pdf/pdf_array.c b/pdf/pdf_array.c
index 07a90812..5f269fe5 100644
--- a/pdf/pdf_array.c
+++ b/pdf/pdf_array.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 2018-2021 Artifex Software, Inc.
+/* Copyright (C) 2018-2022 Artifex Software, Inc.
All Rights Reserved.
This software is provided AS-IS with no warranty, either express or
@@ -53,7 +53,7 @@ int pdfi_array_alloc(pdf_context *ctx, uint64_t size, pdf_array **a)
/* Make a null object */
code = pdfi_object_alloc(ctx, PDF_NULL, 1, &n);
if (code < 0) {
- pdfi_countdown(*a);
+ pdfi_free_object((pdf_obj *)(*a));
*a = NULL;
return code;
}
@@ -121,7 +121,7 @@ int pdfi_array_from_stack(pdf_context *ctx, uint32_t indirect_num, uint32_t indi
/* Fetch object from array, resolving indirect reference if needed
* setref -- indicates whether to replace indirect ref with the object
*/
-static int pdfi_array_fetch(pdf_context *ctx, pdf_array *a, uint64_t index, pdf_obj **o, bool setref)
+int pdfi_array_fetch(pdf_context *ctx, pdf_array *a, uint64_t index, pdf_obj **o, bool setref, bool cache)
{
int code;
pdf_obj *obj;
@@ -139,7 +139,13 @@ static int pdfi_array_fetch(pdf_context *ctx, pdf_array *a, uint64_t index, pdf_
pdf_obj *o1 = NULL;
pdf_indirect_ref *r = (pdf_indirect_ref *)obj;
- code = pdfi_deref_loop_detect(ctx, r->ref_object_num, r->ref_generation_num, &o1);
+ if (r->ref_object_num == a->object_num)
+ return_error(gs_error_circular_reference);
+
+ if (cache)
+ code = pdfi_deref_loop_detect(ctx, r->ref_object_num, r->ref_generation_num, &o1);
+ else
+ code = pdfi_deref_loop_detect_nocache(ctx, r->ref_object_num, r->ref_generation_num, &o1);
if (code < 0)
return code;
@@ -154,19 +160,6 @@ static int pdfi_array_fetch(pdf_context *ctx, pdf_array *a, uint64_t index, pdf_
return 0;
}
-/* The object returned by pdfi_array_get has its reference count incremented by 1 to
- * indicate the reference now held by the caller, in **o.
- */
-int pdfi_array_get(pdf_context *ctx, pdf_array *a, uint64_t index, pdf_obj **o)
-{
- int code;
-
- code = pdfi_array_fetch(ctx, a, index, o, true);
- if (code < 0) return code;
-
- return 0;
-}
-
/* Get element from array without resolving PDF_INDIRECT dereferences.
* It looks to me like some usages need to do the checking themselves to
* avoid circular references? Can remove this if not really needed.
@@ -190,7 +183,7 @@ int pdfi_array_get_no_store_R(pdf_context *ctx, pdf_array *a, uint64_t index, pd
{
int code;
- code = pdfi_array_fetch(ctx, a, index, o, false);
+ code = pdfi_array_fetch(ctx, a, index, o, false, false);
if (code < 0) return code;
return 0;
@@ -267,7 +260,7 @@ bool pdfi_array_known(pdf_context *ctx, pdf_array *a, pdf_obj *o, int *index)
pdf_obj *val;
int code;
- code = pdfi_array_fetch(ctx, a, i, &val, true);
+ code = pdfi_array_fetch(ctx, a, i, &val, true, true);
if (code < 0)
continue;
if (val->object_num == o->object_num) {
diff --git a/pdf/pdf_array.h b/pdf/pdf_array.h
index f118737e..37097aaa 100644
--- a/pdf/pdf_array.h
+++ b/pdf/pdf_array.h
@@ -1,4 +1,4 @@
-/* Copyright (C) 2018-2021 Artifex Software, Inc.
+/* Copyright (C) 2018-2022 Artifex Software, Inc.
All Rights Reserved.
This software is provided AS-IS with no warranty, either express or
@@ -20,12 +20,25 @@
static inline uint64_t pdfi_array_size(pdf_array *a) { return a->size; }
+int pdfi_array_fetch(pdf_context *ctx, pdf_array *a, uint64_t index, pdf_obj **o, bool setref, bool cache);
+/* The object returned by pdfi_array_get has its reference count incremented by 1 to
+ * indicate the reference now held by the caller, in **o.
+ */
+static int inline pdfi_array_get(pdf_context *ctx, pdf_array *a, uint64_t index, pdf_obj **o)
+{
+ return pdfi_array_fetch(ctx, a, index, o, true, true);
+}
+
+static int inline pdfi_array_get_nocache(pdf_context *ctx, pdf_array *a, uint64_t index, pdf_obj **o)
+{
+ return pdfi_array_fetch(ctx, a, index, o, true, false);
+}
+
void pdfi_free_array(pdf_obj *o);
int pdfi_array_alloc(pdf_context *ctx, uint64_t size, pdf_array **a);
int pdfi_array_from_stack(pdf_context *ctx, uint32_t indirect_num, uint32_t indirect_gen);
int pdfi_array_get_no_deref(pdf_context *ctx, pdf_array *a, uint64_t index, pdf_obj **o);
int pdfi_array_get_no_store_R(pdf_context *ctx, pdf_array *a, uint64_t index, pdf_obj **o);
-int pdfi_array_get(pdf_context *ctx, pdf_array *a, uint64_t index, pdf_obj **o);
int pdfi_array_get_type(pdf_context *ctx, pdf_array *a, uint64_t index, pdf_obj_type t, pdf_obj **o);
int pdfi_array_get_int(pdf_context *ctx, pdf_array *a, uint64_t index, int64_t *i);
int pdfi_array_get_number(pdf_context *ctx, pdf_array *a, uint64_t index, double *f);
diff --git a/pdf/pdf_check.c b/pdf/pdf_check.c
index 13d974cb..00933bdf 100644
--- a/pdf/pdf_check.c
+++ b/pdf/pdf_check.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 2019-2021 Artifex Software, Inc.
+/* Copyright (C) 2019-2022 Artifex Software, Inc.
All Rights Reserved.
This software is provided AS-IS with no warranty, either express or
@@ -24,10 +24,12 @@
#include "pdf_loop_detect.h"
#include "pdf_colour.h"
#include "pdf_trans.h"
+#include "pdf_font_types.h"
#include "pdf_gstate.h"
#include "pdf_misc.h"
#include "pdf_check.h"
#include "pdf_device.h"
+#include "gsdevice.h" /* For gs_setdevice_no_erase */
#include "gspaint.h" /* For gs_erasepage() */
/* For performance and resource reasons we do not want to install the transparency blending
@@ -133,7 +135,8 @@ pdfi_check_init_tracker(pdf_context *ctx, pdfi_check_tracker_t *tracker)
memset(tracker->CheckedResources, 0x00, tracker->size);
- if (ctx->device_state.spot_capable || ctx->args.overprint_control == PDF_OVERPRINT_SIMULATE) {
+ if (ctx->device_state.spot_capable ||
+ (ctx->pgs->device->icc_struct->overprint_control) == gs_overprint_control_simulate) {
code = pdfi_dict_alloc(ctx, 32, &tracker->spot_dict);
if (code < 0)
goto cleanup;
@@ -1143,6 +1146,8 @@ int pdfi_check_page(pdf_context *ctx, pdf_dict *page_dict, bool do_setup)
*/
pdfi_device_set_flags(ctx);
code = pdfi_check_init_tracker(ctx, &tracker);
+ if (code < 0)
+ goto exit;
/* Check for spots and transparency in this page */
code = pdfi_check_page_inner(ctx, page_dict, &tracker);
@@ -1156,20 +1161,88 @@ int pdfi_check_page(pdf_context *ctx, pdf_dict *page_dict, bool do_setup)
/* If setup requested, tell the device about spots and transparency */
if (do_setup) {
gs_c_param_list list;
+ int a = 0;
+ pdf_name *Key = NULL;
+ pdf_obj *Value = NULL;
+ uint64_t index = 0;
gs_c_param_list_write(&list, ctx->memory);
/* If there are spot colours (and by inference, the device renders spot plates) then
* send the number of Spots to the device, so it can setup correctly.
*/
- if (tracker.spot_dict)
- param_write_int((gs_param_list *)&list, "PageSpotColors", &spots);
+ if (tracker.spot_dict) {
+ /* There is some awkwardness here. If the SeparationColorNames setting
+ * fails, we want to ignore it (this can mean that we exceeded the maximum
+ * number of colourants and some will be converted to CMYK). But if that happens,
+ * any other parameters in the same list which haven't already been prcoessed
+ * will be lost. So we need to send two lists, the SeparationColorNames and
+ * 'everything else'.
+ */
+ if (spots > 0) {
+ gs_param_string_array sa;
+ gs_param_string *table = NULL;
+
+ table = (gs_param_string *)gs_alloc_byte_array(ctx->memory, spots, sizeof(gs_param_string), "SeparationNames");
+ if (table != NULL)
+ {
+ memset(table, 0x00, spots * sizeof(gs_param_string));
+
+ code = pdfi_dict_first(ctx, tracker.spot_dict, (pdf_obj **)&Key, &Value, &index);
+ while (code >= 0)
+ {
+ if (Key->type == PDF_NAME) {
+ table[a].data = ((pdf_string *)Key)->data;
+ table[a].size = ((pdf_string *)Key)->length;
+ table[a++].persistent = false;
+ }
+ /* Although we count down the returned PDF objects here, the pointers
+ * to the name data remain valid and won't move. Provided we don't
+ * retain the pointers after we free the tracker dictionary this is
+ * safe to do.
+ */
+ pdfi_countdown(Key);
+ Key = NULL;
+ pdfi_countdown(Value);
+ Value = NULL;
+ code = pdfi_dict_next(ctx, tracker.spot_dict, (pdf_obj **)&Key, &Value, &index);
+ }
+ sa.data = table;
+ sa.size = spots;
+ sa.persistent = false;
+
+ (void)param_write_string_array((gs_param_list *)&list, "SeparationColorNames", &sa);
+ gs_c_param_list_read(&list);
+ code = gs_putdeviceparams(ctx->pgs->device, (gs_param_list *)&list);
+ gs_c_param_list_release(&list);
- code = param_write_bool((gs_param_list *)&list, "PageUsesTransparency",
- &tracker.transparent);
+ gs_free_object(ctx->memory, table, "SeparationNames");
+ if (code > 0) {
+ /* The device was closed, we need to reopen it */
+ code = gs_setdevice_no_erase(ctx->pgs, ctx->pgs->device);
+ if (code < 0)
+ goto exit;
+ gs_erasepage(ctx->pgs);
+ }
+
+ /* Reset the list back to being writeable */
+ gs_c_param_list_write(&list, ctx->memory);
+ }
+ else {
+ code = gs_note_error(gs_error_VMerror);
+ goto exit;
+ }
+ }
+ /* Update the number of spots */
+ param_write_int((gs_param_list *)&list, "PageSpotColors", &spots);
+ }
+ /* Update the page transparency */
+ (void)param_write_bool((gs_param_list *)&list, "PageUsesTransparency",
+ &tracker.transparent);
gs_c_param_list_read(&list);
code = gs_putdeviceparams(ctx->pgs->device, (gs_param_list *)&list);
gs_c_param_list_release(&list);
+
if (code > 0) {
/* The device was closed, we need to reopen it */
code = gs_setdevice_no_erase(ctx->pgs, ctx->pgs->device);
@@ -1180,10 +1253,15 @@ int pdfi_check_page(pdf_context *ctx, pdf_dict *page_dict, bool do_setup)
}
/* Set our values in the context, for caller */
- ctx->page.has_transparency = tracker.transparent;
+ if (!ctx->args.notransparency)
+ ctx->page.has_transparency = tracker.transparent;
ctx->page.num_spots = spots;
ctx->page.has_OP = tracker.has_overprint;
+ /* High level devices do not render overprint */
+ if (ctx->device_state.HighLevelDevice)
+ ctx->page.has_OP = false;
+
exit:
(void)pdfi_check_free_tracker(ctx, &tracker);
return code;
diff --git a/pdf/pdf_cmap.c b/pdf/pdf_cmap.c
index fcf363ff..d7198e24 100644
--- a/pdf/pdf_cmap.c
+++ b/pdf/pdf_cmap.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 2020-2021 Artifex Software, Inc.
+/* Copyright (C) 2020-2022 Artifex Software, Inc.
All Rights Reserved.
This software is provided AS-IS with no warranty, either express or
@@ -33,6 +33,7 @@ static int cmap_usecmap_func(gs_memory_t *mem, pdf_ps_ctx_t *s, byte *buf, byte
pdf_cmap *pdficmap = (pdf_cmap *)s->client_data;
pdf_name *n = NULL;
pdf_cmap *upcmap = NULL;
+ int code = 0;
if (pdf_ps_stack_count(s) < 1)
return_error(gs_error_stackunderflow);
@@ -40,7 +41,7 @@ static int cmap_usecmap_func(gs_memory_t *mem, pdf_ps_ctx_t *s, byte *buf, byte
/* If we've already got some definitions, ignore the usecmap op */
if (pdficmap->code_space.num_ranges == 0) {
byte *nstr = NULL;
- int code, len = s->cur[0].size;
+ int len = s->cur[0].size;
if (pdf_ps_obj_has_type(&(s->cur[0]), PDF_PS_OBJ_NAME)) {
nstr = s->cur[0].val.name;
@@ -49,9 +50,10 @@ static int cmap_usecmap_func(gs_memory_t *mem, pdf_ps_ctx_t *s, byte *buf, byte
nstr = s->cur[0].val.string;
}
else {
- return_error(gs_error_typecheck);
+ code = gs_note_error(gs_error_typecheck);
}
- code = pdfi_name_alloc(pdficmap->ctx, nstr, len, (pdf_obj **)&n);
+ if (code >= 0)
+ code = pdfi_name_alloc(pdficmap->ctx, nstr, len, (pdf_obj **)&n);
if (code >= 0) {
pdfi_countup(n);
code = pdfi_read_cmap(pdficmap->ctx, (pdf_obj *)n, &upcmap);
@@ -77,10 +79,13 @@ static int cmap_usecmap_func(gs_memory_t *mem, pdf_ps_ctx_t *s, byte *buf, byte
}
}
}
-
}
pdfi_countdown(upcmap);
pdfi_countdown(n);
+ if (code < 0) {
+ (void)pdf_ps_stack_pop(s, 1);
+ return code;
+ }
return pdf_ps_stack_pop(s, 1);
}
@@ -103,23 +108,38 @@ static int cmap_endcodespacerange_func(gs_memory_t *mem, pdf_ps_ctx_t *s, byte *
/* increment to_pop to cover the mark object */
numranges = to_pop++;
while (numranges % 2) numranges--;
+ if (numranges > 200) {
+ (void)pdf_ps_stack_pop(s, to_pop);
+ return_error(gs_error_syntaxerror);
+ }
- if (numranges > 0 && pdf_ps_obj_has_type(&(s->cur[0]), PDF_PS_OBJ_STRING) &&
- pdf_ps_obj_has_type(&(s->cur[-1]), PDF_PS_OBJ_STRING)) {
+ if (numranges > 0
+ && pdf_ps_obj_has_type(&(s->cur[0]), PDF_PS_OBJ_STRING) && s->cur[0].size <= MAX_CMAP_CODE_SIZE
+ && pdf_ps_obj_has_type(&(s->cur[-1]), PDF_PS_OBJ_STRING) && s->cur[-1].size <= MAX_CMAP_CODE_SIZE) {
code_space->num_ranges += numranges >> 1;
code_space->ranges = (gx_code_space_range_t *)gs_alloc_byte_array(mem, code_space->num_ranges,
sizeof(gx_code_space_range_t), "cmap_endcodespacerange_func(ranges)");
- if (nr > 0) {
- memcpy(code_space->ranges, gcsr, nr);
- gs_free_object(mem, gcsr, "cmap_endcodespacerange_func(gcsr");
- }
+ if (code_space->ranges != NULL) {
+ if (nr > 0) {
+ memcpy(code_space->ranges, gcsr, nr);
+ gs_free_object(mem, gcsr, "cmap_endcodespacerange_func(gcsr");
+ }
- for (i = nr; i < code_space->num_ranges; i++) {
- memcpy(code_space->ranges[i].first, s->cur[-((i * 2) + 1)].val.string, s->cur[-((i * 2) + 1)].size);
- memcpy(code_space->ranges[i].last, s->cur[-(i * 2)].val.string, s->cur[-(i * 2)].size);
- code_space->ranges[i].size = s->cur[-(i * 2)].size;
+ for (i = nr; i < code_space->num_ranges; i++) {
+ int si = i - nr;
+ int s1 = s->cur[-((si * 2) + 1)].size < MAX_CMAP_CODE_SIZE ? s->cur[-((si * 2) + 1)].size : MAX_CMAP_CODE_SIZE;
+ int s2 = s->cur[-(si * 2)].size < MAX_CMAP_CODE_SIZE ? s->cur[-(si * 2)].size : MAX_CMAP_CODE_SIZE;
+
+ memcpy(code_space->ranges[i].first, s->cur[-((si * 2) + 1)].val.string, s1);
+ memcpy(code_space->ranges[i].last, s->cur[-(si * 2)].val.string, s2);
+ code_space->ranges[i].size = s->cur[-(si * 2)].size;
+ }
+ }
+ else {
+ (void)pdf_ps_stack_pop(s, to_pop);
+ return_error(gs_error_VMerror);
}
}
return pdf_ps_stack_pop(s, to_pop);
@@ -151,6 +171,10 @@ static int general_endcidrange_func(gs_memory_t *mem, pdf_ps_ctx_t *s, pdf_cmap
* startcode, endcode and basecid
*/
while (ncodemaps % 3) ncodemaps--;
+ if (ncodemaps > 300) {
+ (void)pdf_ps_stack_pop(s, to_pop);
+ return_error(gs_error_syntaxerror);
+ }
stobj = &s->cur[-ncodemaps] + 1;
@@ -173,6 +197,12 @@ static int general_endcidrange_func(gs_memory_t *mem, pdf_ps_ctx_t *s, pdf_cmap
preflen = 1;
}
+ if (preflen > MAX_CMAP_CODE_SIZE || stobj[i].size - preflen > MAX_CMAP_CODE_SIZE || stobj[i + 1].size - preflen > MAX_CMAP_CODE_SIZE
+ || stobj[i].size - preflen < 0 || stobj[i + 1].size - preflen < 0) {
+ (void)pdf_ps_stack_pop(s, to_pop);
+ return_error(gs_error_syntaxerror);
+ }
+
/* Find how many bytes we need for the cidbase value */
/* We always store at least two bytes for the cidbase value */
for (valuelen = 16; valuelen < 32 && (cidbase >> valuelen) > 0; valuelen += 1)
@@ -214,7 +244,8 @@ static int general_endcidrange_func(gs_memory_t *mem, pdf_ps_ctx_t *s, pdf_cmap
if (cmap_insert_map(cmap_range, pdfir) < 0) break;
}
else {
- break;
+ (void)pdf_ps_stack_pop(s, to_pop);
+ return_error(gs_error_VMerror);
}
}
}
@@ -247,6 +278,11 @@ static int cmap_endfbrange_func(gs_memory_t *mem, pdf_ps_ctx_t *s, byte *buf, by
*/
while (ncodemaps % 3) ncodemaps--;
+ if (ncodemaps > 300) {
+ (void)pdf_ps_stack_pop(s, to_pop);
+ return_error(gs_error_syntaxerror);
+ }
+
stobj = &s->cur[-ncodemaps] + 1;
for (i = 0; i < ncodemaps; i += 3) {
/* Lazy: to make the loop below simpler, put single
@@ -256,6 +292,7 @@ static int cmap_endfbrange_func(gs_memory_t *mem, pdf_ps_ctx_t *s, byte *buf, by
pdf_ps_stack_object_t *arr;
arr = (pdf_ps_stack_object_t *) gs_alloc_bytes(mem, sizeof(pdf_ps_stack_object_t), "cmap_endfbrange_func(pdf_ps_stack_object_t");
if (arr == NULL) {
+ (void)pdf_ps_stack_pop(s, to_pop);
return_error(gs_error_VMerror);
}
else {
@@ -355,7 +392,8 @@ static int cmap_endfbrange_func(gs_memory_t *mem, pdf_ps_ctx_t *s, byte *buf, by
if (cmap_insert_map(&(pdficmap->cmap_range), pdfir) < 0) break;
}
else {
- break;
+ (void)pdf_ps_stack_pop(s, to_pop);
+ return_error(gs_error_VMerror);
}
}
}
@@ -377,6 +415,11 @@ static int general_endcidchar_func(gs_memory_t *mem, pdf_ps_ctx_t *s, pdf_cmap *
*/
while (ncodemaps % 2) ncodemaps--;
+ if (ncodemaps > 200) {
+ (void)pdf_ps_stack_pop(s, to_pop);
+ return_error(gs_error_syntaxerror);
+ }
+
stobj = &s->cur[-ncodemaps] + 1;
for (i = 0; i < ncodemaps; i += 2) {
@@ -428,7 +471,8 @@ static int general_endcidchar_func(gs_memory_t *mem, pdf_ps_ctx_t *s, pdf_cmap *
if (cmap_insert_map(cmap_range, pdfir) < 0) break;
}
else {
- break;
+ (void)pdf_ps_stack_pop(s, to_pop);
+ return_error(gs_error_VMerror);
}
}
}
@@ -454,6 +498,11 @@ static int cmap_endbfchar_func(gs_memory_t *mem, pdf_ps_ctx_t *s, byte *buf, byt
pdf_ps_stack_object_t *stobj;
int i, j;
+ if (ncodemaps > 200) {
+ (void)pdf_ps_stack_pop(s, ncodemaps);
+ return_error(gs_error_syntaxerror);
+ }
+
stobj = &s->cur[-ncodemaps] + 1;
for (i = 0; i < ncodemaps; i += 2) {
@@ -554,7 +603,7 @@ static int cmap_def_func(gs_memory_t *mem, pdf_ps_ctx_t *s, byte *buf, byte *buf
pdficmap->cmaptype = s->cur[0].val.i;
}
else {
- pdficmap->type = 1;
+ pdficmap->cmaptype = 1;
}
}
else if (!memcmp(s->cur[-1].val.name, CMAP_NAME_AND_LEN("XUID"))) {
@@ -638,6 +687,9 @@ pdf_cmap_open_file(pdf_context *ctx, gs_string *cmap_name, byte **buf, int64_t *
const char *path_pfx = "CMap/";
fname[0] = '\0';
+ if (strlen(path_pfx) + cmap_name->size >= gp_file_name_sizeof)
+ return_error(gs_error_rangecheck);
+
strncat(fname, path_pfx, strlen(path_pfx));
strncat(fname, (char *)cmap_name->data, cmap_name->size);
code = pdfi_open_resource_file(ctx, (const char *)fname, (const int)strlen(fname), &s);
@@ -831,6 +883,9 @@ pdfi_read_cmap(pdf_context *ctx, pdf_obj *cmap, pdf_cmap **pcmap)
}
}
}
+ else {
+ goto error_out;
+ }
return 0;
error_out:
diff --git a/pdf/pdf_colour.c b/pdf/pdf_colour.c
index e6061db1..dcc3ebf0 100644
--- a/pdf/pdf_colour.c
+++ b/pdf/pdf_colour.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 2018-2021 Artifex Software, Inc.
+/* Copyright (C) 2018-2022 Artifex Software, Inc.
All Rights Reserved.
This software is provided AS-IS with no warranty, either express or
@@ -24,9 +24,12 @@
#include "pdf_misc.h"
#include "gsicc_manage.h"
#include "gsicc_profilecache.h"
+#include "gsicc_cache.h"
+
#include "gsicc_create.h"
#include "gsptype2.h"
+
#include "pdf_file.h"
#include "pdf_dict.h"
#include "pdf_loop_detect.h"
@@ -189,7 +192,7 @@ static int pdfi_check_for_spots_by_array(pdf_context *ctx, pdf_array *color_arra
if (code < 0)
goto exit;
- code = pdfi_dict_put_obj(ctx, spot_dict, name, dummy);
+ code = pdfi_dict_put_obj(ctx, spot_dict, name, dummy, true);
pdfi_countdown(name);
if (code < 0)
break;
@@ -216,7 +219,7 @@ static int pdfi_check_for_spots_by_array(pdf_context *ctx, pdf_array *color_arra
if (code < 0)
goto exit;
- code = pdfi_dict_put_obj(ctx, spot_dict, (pdf_obj *)space, dummy);
+ code = pdfi_dict_put_obj(ctx, spot_dict, (pdf_obj *)space, dummy, true);
goto exit;
} else {
code = pdfi_find_resource(ctx, (unsigned char *)"ColorSpace",
@@ -305,9 +308,15 @@ int pdfi_ri(pdf_context *ctx)
static void pdfi_cspace_free_callback(gs_memory_t * mem, void *cs)
{
gs_color_space *pcs = (gs_color_space *)cs;
- pdf_context *ctx = (pdf_context *)pcs->interpreter_data;
+ pdf_obj *o = (pdf_obj *)pcs->interpreter_data;
+ pdf_context *ctx = NULL;
gs_function_t *pfn;
+ if (o == NULL)
+ return;
+
+ ctx = o->ctx;
+
if (gs_color_space_get_index(pcs) == gs_color_space_index_Separation) {
/* Handle cleanup of Separation functions if applicable */
pfn = gs_cspace_get_sepr_function(pcs);
@@ -321,6 +330,10 @@ static void pdfi_cspace_free_callback(gs_memory_t * mem, void *cs)
if (pfn)
pdfi_free_function(ctx, pfn);
}
+ if (o->type != PDF_CTX) {
+ pdfi_countdown(o);
+ pcs->interpreter_data = NULL;
+ }
}
int pdfi_gs_setgray(pdf_context *ctx, double d)
@@ -328,7 +341,7 @@ int pdfi_gs_setgray(pdf_context *ctx, double d)
int code = 0;
/* PDF Reference 1.7 p423, any colour operators in a CharProc, following a d1, should be ignored */
- if (ctx->text.inside_CharProc && ctx->text.CharProc_is_d1)
+ if (ctx->text.inside_CharProc && ctx->text.CharProc_d_type != pdf_type3_d0)
return 0;
if (ctx->page.DefaultGray_cs != NULL) {
@@ -337,15 +350,15 @@ int pdfi_gs_setgray(pdf_context *ctx, double d)
code = gs_setcolorspace(ctx->pgs, ctx->page.DefaultGray_cs);
if (code < 0)
return code;
- pdfi_set_colour_callback(ctx->pgs->color[0].color_space, ctx, NULL);
cc.paint.values[0] = d;
+ cc.pattern = 0;
return gs_setcolor(ctx->pgs, &cc);
} else {
code = gs_setgray(ctx->pgs, d);
if (code < 0)
return code;
- pdfi_set_colour_callback(ctx->pgs->color[0].color_space, ctx, pdfi_cspace_free_callback);
}
+ pdfi_set_colour_callback(ctx->pgs->color[0].color_space, ctx, pdfi_cspace_free_callback);
return 0;
}
@@ -354,7 +367,7 @@ int pdfi_gs_setrgbcolor(pdf_context *ctx, double r, double g, double b)
int code = 0;
/* PDF Reference 1.7 p423, any colour operators in a CharProc, following a d1, should be ignored */
- if (ctx->text.inside_CharProc && ctx->text.CharProc_is_d1)
+ if (ctx->text.inside_CharProc && ctx->text.CharProc_d_type != pdf_type3_d0)
return 0;
if (ctx->page.DefaultRGB_cs != NULL) {
@@ -367,6 +380,7 @@ int pdfi_gs_setrgbcolor(pdf_context *ctx, double r, double g, double b)
cc.paint.values[0] = r;
cc.paint.values[1] = g;
cc.paint.values[2] = b;
+ cc.pattern = 0;
return gs_setcolor(ctx->pgs, &cc);
} else {
code = gs_setrgbcolor(ctx->pgs, r, g, b);
@@ -382,7 +396,7 @@ static int pdfi_gs_setcmykcolor(pdf_context *ctx, double c, double m, double y,
int code = 0;
/* PDF Reference 1.7 p423, any colour operators in a CharProc, following a d1, should be ignored */
- if (ctx->text.inside_CharProc && ctx->text.CharProc_is_d1)
+ if (ctx->text.inside_CharProc && ctx->text.CharProc_d_type != pdf_type3_d0)
return 0;
if (ctx->page.DefaultCMYK_cs != NULL) {
@@ -391,18 +405,18 @@ static int pdfi_gs_setcmykcolor(pdf_context *ctx, double c, double m, double y,
code = gs_setcolorspace(ctx->pgs, ctx->page.DefaultCMYK_cs);
if (code < 0)
return code;
- pdfi_set_colour_callback(ctx->pgs->color[0].color_space, ctx, NULL);
cc.paint.values[0] = c;
cc.paint.values[1] = m;
cc.paint.values[2] = y;
cc.paint.values[3] = k;
+ cc.pattern = 0;
return gs_setcolor(ctx->pgs, &cc);
} else {
code = gs_setcmykcolor(ctx->pgs, c, m, y, k);
if (code < 0)
return code;
- pdfi_set_colour_callback(ctx->pgs->color[0].color_space, ctx, pdfi_cspace_free_callback);
}
+ pdfi_set_colour_callback(ctx->pgs->color[0].color_space, ctx, pdfi_cspace_free_callback);
return 0;
}
@@ -413,7 +427,7 @@ int pdfi_gs_setcolorspace(pdf_context *ctx, gs_color_space *pcs)
*/
if (ctx->pgs->color[0].color_space->id != pcs->id) {
/* PDF Reference 1.7 p423, any colour operators in a CharProc, following a d1, should be ignored */
- if (ctx->text.inside_CharProc && ctx->text.CharProc_is_d1)
+ if (ctx->text.inside_CharProc && ctx->text.CharProc_d_type != pdf_type3_d0)
return 0;
pdfi_set_colour_callback(pcs, ctx, pdfi_cspace_free_callback);
@@ -699,9 +713,14 @@ int pdfi_setstrokecolor(pdf_context *ctx)
int ncomps, code;
gs_client_color cc;
+ cc.pattern = 0;
gs_swapcolors_quick(ctx->pgs);
pcs = gs_currentcolorspace(ctx->pgs);
ncomps = cs_num_components(pcs);
+ if (ncomps < 1) {
+ gs_swapcolors_quick(ctx->pgs);
+ return_error(gs_error_syntaxerror);
+ }
code = pdfi_get_color_from_stack(ctx, &cc, ncomps);
if (code == 0) {
code = gs_setcolor(ctx->pgs, &cc);
@@ -716,7 +735,10 @@ int pdfi_setfillcolor(pdf_context *ctx)
int ncomps, code;
gs_client_color cc;
+ cc.pattern = 0;
ncomps = cs_num_components(pcs);
+ if (ncomps < 1)
+ return_error(gs_error_syntaxerror);
code = pdfi_get_color_from_stack(ctx, &cc, ncomps);
if (code == 0) {
code = gs_setcolor(ctx->pgs, &cc);
@@ -750,16 +772,18 @@ pdfi_setcolorN(pdf_context *ctx, pdf_dict *stream_dict, pdf_dict *page_dict, boo
if (pdfi_count_stack(ctx) < 1) {
code = gs_note_error(gs_error_stackunderflow);
- goto cleanupExit;
+ goto cleanupExit1;
}
+ memset(&cc, 0x00, sizeof(gs_client_color));
+
if (pcs->type == &gs_color_space_type_Pattern)
is_pattern = true;
if (is_pattern) {
if (ctx->stack_top[-1]->type != PDF_NAME) {
pdfi_clearstack(ctx);
code = gs_note_error(gs_error_syntaxerror);
- goto cleanupExit;
+ goto cleanupExit0;
}
base_space = pcs->base_space;
code = pdfi_pattern_set(ctx, stream_dict, page_dict, (pdf_name *)ctx->stack_top[-1], &cc);
@@ -768,23 +792,27 @@ pdfi_setcolorN(pdf_context *ctx, pdf_dict *stream_dict, pdf_dict *page_dict, boo
/* Ignore the pattern if we failed to set it */
pdfi_set_warning(ctx, 0, NULL, W_PDF_BADPATTERN, "pdfi_setcolorN", (char *)"PATTERN: Error setting pattern");
code = 0;
- goto cleanupExit;
+ goto cleanupExit1;
}
if (base_space && pattern_instance_uses_base_space(cc.pattern))
ncomps = cs_num_components(base_space);
else
ncomps = 0;
- } else {
+ } else
ncomps = cs_num_components(pcs);
- cc.pattern = NULL;
- }
- if (ncomps > 0)
+ if (ncomps > 0) {
code = pdfi_get_color_from_stack(ctx, &cc, ncomps);
- if (code < 0)
- goto cleanupExit;
+ if (code < 0)
+ goto cleanupExit1;
+ }
if (pcs->type == &gs_color_space_type_Indexed) {
+ if (ncomps <= 0)
+ {
+ code = gs_note_error(gs_error_rangecheck);
+ goto cleanupExit1;
+ }
if (cc.paint.values[0] < 0)
cc.paint.values[0] = 0.0;
else
@@ -806,6 +834,7 @@ pdfi_setcolorN(pdf_context *ctx, pdf_dict *stream_dict, pdf_dict *page_dict, boo
code = gs_setcolor(ctx->pgs, &cc);
+cleanupExit1:
if (is_pattern)
/* cc is a local scope variable, holding a reference to a pattern.
* We need to count the refrence down before the variable goes out of scope
@@ -813,7 +842,7 @@ pdfi_setcolorN(pdf_context *ctx, pdf_dict *stream_dict, pdf_dict *page_dict, boo
*/
rc_decrement(cc.pattern, "pdfi_setcolorN");
-cleanupExit:
+cleanupExit0:
if (!is_fill)
gs_swapcolors_quick(ctx->pgs);
return code;
@@ -824,7 +853,7 @@ cleanupExit:
/* Starting with the ICCBased colour space */
/* This routine is mostly a copy of seticc() in zicc.c */
-static int pdfi_create_icc(pdf_context *ctx, char *Name, stream *s, int ncomps, int *icc_N, float *range_buff, gs_color_space **ppcs)
+static int pdfi_create_icc(pdf_context *ctx, char *Name, stream *s, int ncomps, int *icc_N, float *range_buff, ulong dictkey, gs_color_space **ppcs)
{
int code, k;
gs_color_space * pcs;
@@ -981,13 +1010,16 @@ static int pdfi_create_icc(pdf_context *ctx, char *Name, stream *s, int ncomps,
rc_adjust(picc_profile, -2, "pdfi_create_icc");
rc_increment(pcs->cmm_icc_profile_data);
}
+ /* Add the color space to the profile cache */
+ if (dictkey != 0)
+ gsicc_add_cs(ctx->pgs, pcs, dictkey);
if (ppcs!= NULL){
*ppcs = pcs;
pdfi_set_colour_callback(pcs, ctx, pdfi_cspace_free_callback);
} else {
code = pdfi_gs_setcolorspace(ctx, pcs);
- rc_decrement_only_cs(pcs, "pdfi_seticc_cal");
+ rc_decrement_only_cs(pcs, "pdfi_create_icc");
}
/* The context has taken a reference to the colorspace. We no longer need
@@ -1003,6 +1035,34 @@ static int pdfi_create_iccprofile(pdf_context *ctx, pdf_stream *ICC_obj, char *c
byte *profile_buffer;
gs_offset_t savedoffset;
int code, code1;
+ ulong dictkey = 0;
+
+ /* See if the color space is in the profile cache */
+ /* NOTE! 0 indicates a named colour space for JPX images, do not attempt to
+ * find a cached space for this. Conveniently should we somehow manage to get
+ * here from an array or other object which is not an indirect reference then we will
+ * again not attempt to cache the space or lookup the cache.
+ */
+ if (!gs_currentoverrideicc(ctx->pgs)) {
+ if (ICC_obj->object_num != 0) {
+ gs_color_space *pcs = NULL;
+
+ pcs = gsicc_find_cs(ICC_obj->object_num, ctx->pgs);
+ if (pcs != NULL) {
+ if (ppcs!= NULL){
+ *ppcs = pcs;
+ } else {
+ code = pdfi_gs_setcolorspace(ctx, pcs);
+ rc_decrement_only_cs(pcs, "pdfi_create_iccprofile");
+ }
+ *icc_N = gs_color_space_num_components(pcs);
+ /* We're passing back a new reference, increment the count */
+ rc_adjust_only(pcs, 1, "pdfi_create_iccprofile, return cached ICC profile");
+ return 0;
+ }
+ dictkey = ICC_obj->object_num;
+ }
+ }
/* Save the current stream position, and move to the start of the profile stream */
savedoffset = pdfi_tell(ctx->main_stream);
@@ -1022,7 +1082,7 @@ static int pdfi_create_iccprofile(pdf_context *ctx, pdf_stream *ICC_obj, char *c
}
/* Now, finally, we can call the code to create and set the profile */
- code = pdfi_create_icc(ctx, cname, profile_stream->s, (int)N, icc_N, range, ppcs);
+ code = pdfi_create_icc(ctx, cname, profile_stream->s, (int)N, icc_N, range, dictkey, ppcs);
code1 = pdfi_close_memory_stream(ctx, profile_buffer, profile_stream);
@@ -1059,6 +1119,10 @@ static int pdfi_create_iccbased(pdf_context *ctx, pdf_array *color_array, int in
code = pdfi_dict_get_int(ctx, dict, "N", &N);
if (code < 0)
goto done;
+ if (N != 1 && N != 3 && N != 4) {
+ code = gs_note_error(gs_error_rangecheck);
+ goto done;
+ }
code = pdfi_dict_knownget(ctx, dict, "Name", &Name);
if (code > 0) {
if(Name->type == PDF_STRING || Name->type == PDF_NAME) {
@@ -1186,8 +1250,11 @@ static int pdfi_create_iccbased(pdf_context *ctx, pdf_array *color_array, int in
break;
}
}
- if (ppcs!= NULL)
+ if (ppcs!= NULL) {
*ppcs = pcs;
+ if (pcs != NULL)
+ pdfi_set_colour_callback(pcs, ctx, pdfi_cspace_free_callback);
+ }
else {
if (pcs != NULL) {
code = pdfi_gs_setcolorspace(ctx, pcs);
@@ -1351,6 +1418,7 @@ pdfi_seticc_cal(pdf_context *ctx, float *white, float *black, float *gamma,
if (ppcs!= NULL){
*ppcs = pcs;
+ pdfi_set_colour_callback(pcs, ctx, pdfi_cspace_free_callback);
} else {
code = pdfi_gs_setcolorspace(ctx, pcs);
rc_decrement_only_cs(pcs, "pdfi_seticc_cal");
@@ -1404,7 +1472,7 @@ static int pdfi_create_CalGray(pdf_context *ctx, pdf_array *color_array, int ind
goto exit;
}
- if (pdfi_dict_knownget_type(ctx, CalGray_dict, "BlackPoint", PDF_ARRAY, (pdf_obj **)&PDFArray)) {
+ if (pdfi_dict_knownget_type(ctx, CalGray_dict, "BlackPoint", PDF_ARRAY, (pdf_obj **)&PDFArray) > 0) {
if (pdfi_array_size(PDFArray) != 3){
code = gs_note_error(gs_error_rangecheck);
goto exit;
@@ -1426,7 +1494,7 @@ static int pdfi_create_CalGray(pdf_context *ctx, pdf_array *color_array, int ind
PDFArray = NULL;
}
- if (pdfi_dict_knownget_number(ctx, CalGray_dict, "Gamma", &f))
+ if (pdfi_dict_knownget_number(ctx, CalGray_dict, "Gamma", &f) > 0)
Gamma = (float)f;
/* The PDF 1.7 reference states that Gamma
* (if present) must be positive.
@@ -1487,7 +1555,7 @@ static int pdfi_create_CalRGB(pdf_context *ctx, pdf_array *color_array, int inde
goto exit;
}
- if (pdfi_dict_knownget_type(ctx, CalRGB_dict, "BlackPoint", PDF_ARRAY, (pdf_obj **)&PDFArray)) {
+ if (pdfi_dict_knownget_type(ctx, CalRGB_dict, "BlackPoint", PDF_ARRAY, (pdf_obj **)&PDFArray) > 0) {
if (pdfi_array_size(PDFArray) != 3){
code = gs_note_error(gs_error_rangecheck);
goto exit;
@@ -1509,7 +1577,7 @@ static int pdfi_create_CalRGB(pdf_context *ctx, pdf_array *color_array, int inde
PDFArray = NULL;
}
- if (pdfi_dict_knownget_type(ctx, CalRGB_dict, "Gamma", PDF_ARRAY, (pdf_obj **)&PDFArray)) {
+ if (pdfi_dict_knownget_type(ctx, CalRGB_dict, "Gamma", PDF_ARRAY, (pdf_obj **)&PDFArray) > 0) {
if (pdfi_array_size(PDFArray) != 3){
code = gs_note_error(gs_error_rangecheck);
goto exit;
@@ -1524,7 +1592,7 @@ static int pdfi_create_CalRGB(pdf_context *ctx, pdf_array *color_array, int inde
PDFArray = NULL;
}
- if (pdfi_dict_knownget_type(ctx, CalRGB_dict, "Matrix", PDF_ARRAY, (pdf_obj **)&PDFArray)) {
+ if (pdfi_dict_knownget_type(ctx, CalRGB_dict, "Matrix", PDF_ARRAY, (pdf_obj **)&PDFArray) > 0) {
if (pdfi_array_size(PDFArray) != 9){
code = gs_note_error(gs_error_rangecheck);
goto exit;
@@ -1603,6 +1671,7 @@ static int pdfi_create_Separation(pdf_context *ctx, pdf_array *color_array, int
goto pdfi_separation_error;
rc_decrement(pcs_alt, "pdfi_create_Separation");
+ pcs_alt = NULL;
pcs->params.separation.mem = ctx->memory;
pcs->params.separation.sep_type = sep_type;
pcs->params.separation.sep_name = (char *)gs_alloc_bytes(ctx->memory->non_gc_memory, name->length + 1, "pdfi_setseparationspace(ink)");
@@ -1621,6 +1690,7 @@ static int pdfi_create_Separation(pdf_context *ctx, pdf_array *color_array, int
*/
code = pdfi_gs_setcolorspace(ctx, pcs);
*ppcs = pcs;
+ pdfi_set_colour_callback(pcs, ctx, pdfi_cspace_free_callback);
} else {
code = pdfi_gs_setcolorspace(ctx, pcs);
/* release reference from construction */
@@ -1754,10 +1824,12 @@ all_error:
if (o->type == PDF_ARRAY) {
ArrayAlternate = (pdf_array *)o;
code = pdfi_create_colorspace_by_array(ctx, ArrayAlternate, 0, stream_dict, page_dict, &pcs_alt, inline_image);
- if (code < 0) {
- pdfi_countdown(o);
+ if (code < 0)
+ /* OSS-fuzz error 42973; we don't need to count down 'o' here because
+ * we have assigned it to ArrayAlternate and both the success and error
+ * paths count down ArrayAlternate.
+ */
goto pdfi_devicen_error;
- }
}
else {
code = gs_error_typecheck;
@@ -2066,7 +2138,7 @@ pdfi_create_indexed(pdf_context *ctx, pdf_array *color_array, int index,
num_values = (hival+1) * cs_num_components(pcs_base);
if (num_values > lookup_length) {
- dmprintf2(ctx->memory, "WARNING: pdfi_create_indexed() got %ld values, expected at least %d values\n",
+ dmprintf2(ctx->memory, "WARNING: pdfi_create_indexed() got %"PRIi64" values, expected at least %d values\n",
lookup_length, num_values);
code = gs_note_error(gs_error_rangecheck);
goto exit;
@@ -2201,7 +2273,7 @@ static int pdfi_create_JPX_space(pdf_context *ctx, const char *name, int num_com
int code, icc_N;
float range_buff[6] = {0.0f, 1.0f, 0.0f, 1.0f, 0.0f, 1.0f};
- code = pdfi_create_icc(ctx, (char *)name, NULL, num_components, &icc_N, range_buff, ppcs);
+ code = pdfi_create_icc(ctx, (char *)name, NULL, num_components, &icc_N, range_buff, 0, ppcs);
return code;
}
@@ -2272,7 +2344,10 @@ pdfi_create_colorspace_by_array(pdf_context *ctx, pdf_array *color_array, int in
} else if (pdfi_name_is(space, "Separation")) {
code = pdfi_create_Separation(ctx, color_array, index, stream_dict, page_dict, ppcs, inline_image);
} else {
- code = pdfi_find_resource(ctx, (unsigned char *)"ColorSpace",
+ if (stream_dict == NULL)
+ code = gs_note_error(gs_error_syntaxerror);
+ else
+ code = pdfi_find_resource(ctx, (unsigned char *)"ColorSpace",
space, (pdf_dict *)stream_dict, page_dict, (pdf_obj **)&a);
if (code < 0)
goto exit;
@@ -2332,13 +2407,32 @@ pdfi_create_colorspace_by_name(pdf_context *ctx, pdf_name *name,
code = pdfi_create_JPX_space(ctx, "sgray", 1, ppcs);
} else {
pdf_obj *ref_space = NULL;
+
+ if (ppcs == NULL && check_same_current_space(ctx, name) == 1)
+ return 0;
+
code = pdfi_find_resource(ctx, (unsigned char *)"ColorSpace", name, (pdf_dict *)stream_dict,
page_dict, &ref_space);
if (code < 0)
return code;
+ if (ref_space->type == PDF_NAME) {
+ if (ref_space->object_num != 0 && ref_space->object_num == name->object_num) {
+ pdfi_countdown(ref_space);
+ return_error(gs_error_circular_reference);
+ }
+ }
+
/* recursion */
code = pdfi_create_colorspace(ctx, ref_space, stream_dict, page_dict, ppcs, inline_image);
+
+ if (code >= 0) {
+ if (ppcs != NULL)
+ pdfi_set_colourspace_name(ctx, *ppcs, name);
+ else
+ pdfi_set_colourspace_name(ctx, ctx->pgs->color[0].color_space, name);
+ }
+
pdfi_countdown(ref_space);
return code;
}
@@ -2357,7 +2451,7 @@ pdfi_create_colorspace_by_name(pdf_context *ctx, pdf_name *name,
*/
int
pdfi_create_icc_colorspace_from_stream(pdf_context *ctx, pdf_c_stream *stream, gs_offset_t offset,
- unsigned int length, int comps, int *icc_N, gs_color_space **ppcs)
+ unsigned int length, int comps, int *icc_N, ulong dictkey, gs_color_space **ppcs)
{
pdf_c_stream *profile_stream = NULL;
byte *profile_buffer;
@@ -2380,7 +2474,7 @@ pdfi_create_icc_colorspace_from_stream(pdf_context *ctx, pdf_c_stream *stream, g
}
/* Now, finally, we can call the code to create and set the profile */
- code = pdfi_create_icc(ctx, NULL, profile_stream->s, comps, icc_N, range, ppcs);
+ code = pdfi_create_icc(ctx, NULL, profile_stream->s, comps, icc_N, range, dictkey, ppcs);
code1 = pdfi_close_memory_stream(ctx, profile_buffer, profile_stream);
@@ -2408,7 +2502,7 @@ int pdfi_create_colorspace(pdf_context *ctx, pdf_obj *space, pdf_dict *stream_di
return_error(gs_error_typecheck);
}
}
- if (ppcs && *ppcs && code >= 0)
+ if (code >= 0 && ppcs && *ppcs)
(void)(*ppcs)->type->install_cspace(*ppcs, ctx->pgs);
(void)pdfi_loop_detector_cleartomark(ctx);
@@ -2569,32 +2663,47 @@ static int pdfi_device_setoutputintent(pdf_context *ctx, pdf_dict *profile_dict,
Finally, we will use the output intent profile for the default profile
of the proper Device profile in the icc manager, again, unless someone
has explicitly set this default profile.
+
+ All of this is skipped if we are forcing oveprint simulation with
+ the output intent set, in which case we will push the pdf14 device
+ to render directly to the the output intent color space and then
+ do a final transform to the target color space.
*/
dev_comps = dev_profile->device_profile[GS_DEFAULT_DEVICE_PROFILE]->num_comps;
index = gsicc_get_default_type(dev_profile->device_profile[GS_DEFAULT_DEVICE_PROFILE]);
- if (ncomps == dev_comps && index < gs_color_space_index_DevicePixel) {
- /* The OI profile is the same type as the profile for the device and a
- "default" profile for the device was not externally set. So we go
- ahead and use the OI profile as the device profile. Care needs to be
- taken here to keep from screwing up any device parameters. We will
- use a keyword of OIProfile for the user/device parameter to indicate
- its usage. Also, note conflicts if one is setting object dependent
- color management */
- dev_profile->device_profile[GS_DEFAULT_DEVICE_PROFILE] = picc_profile;
- rc_increment(picc_profile);
- if_debug0m(gs_debug_flag_icc, ctx->memory, "[icc] OutputIntent used for device profile\n");
- } else {
- if (dev_profile->proof_profile == NULL) {
- /* This means that we should use the OI profile as the proofing
- profile. Note that if someone already has specified a
- proofing profile it is unclear what they are trying to do
- with the output intent. In this case, we will use it
- just for the source data below */
- dev_profile->proof_profile = picc_profile;
+
+ /* If we are doing simulate overprint and the output intent is different than
+ what the device profile is the we will end up pushing the pdf14 device
+ and doing a rendering to the output intent color space. Keep the device
+ profile as is, and do not do a proofing profile */
+
+ if (!(ctx->pgs->device->icc_struct->overprint_control == gs_overprint_control_simulate &&
+ !gsicc_profiles_equal(dev_profile->oi_profile, dev_profile->device_profile[GS_DEFAULT_DEVICE_PROFILE]))) {
+ if (ncomps == dev_comps && index < gs_color_space_index_DevicePixel) {
+ /* The OI profile is the same type as the profile for the device and a
+ "default" profile for the device was not externally set. So we go
+ ahead and use the OI profile as the device profile. Care needs to be
+ taken here to keep from screwing up any device parameters. We will
+ use a keyword of OIProfile for the user/device parameter to indicate
+ its usage. Also, note conflicts if one is setting object dependent
+ color management */
+ dev_profile->device_profile[GS_DEFAULT_DEVICE_PROFILE] = picc_profile;
rc_increment(picc_profile);
- if_debug0m(gs_debug_flag_icc, ctx->memory, "[icc] OutputIntent used for proof profile\n");
+ if_debug0m(gs_debug_flag_icc, ctx->memory, "[icc] OutputIntent used for device profile\n");
+ } else {
+ if (dev_profile->proof_profile == NULL) {
+ /* This means that we should use the OI profile as the proofing
+ profile. Note that if someone already has specified a
+ proofing profile it is unclear what they are trying to do
+ with the output intent. In this case, we will use it
+ just for the source data below */
+ dev_profile->proof_profile = picc_profile;
+ rc_increment(picc_profile);
+ if_debug0m(gs_debug_flag_icc, ctx->memory, "[icc] OutputIntent used for proof profile\n");
+ }
}
}
+
/* Now the source colors. See which source color space needs to use the
output intent ICC profile */
index = gsicc_get_default_type(source_profile);
@@ -2674,3 +2783,171 @@ int pdfi_color_setoutputintent(pdf_context *ctx, pdf_dict *intent_dict, pdf_stre
pdfi_seek(ctx, ctx->main_stream, savedoffset, SEEK_SET);
return code;
}
+
+static int Check_Default_Space(pdf_context *ctx, pdf_obj *space, pdf_dict *source_dict, int num_components)
+{
+ pdf_obj *primary = NULL;
+ pdf_obj *ref_space = NULL;
+ int code = 0;
+
+ if (space->type == PDF_NAME)
+ {
+ if (pdfi_name_is((const pdf_name *)space, "DeviceGray"))
+ return (num_components == 1 ? 0 : gs_error_rangecheck);
+ if (pdfi_name_is((const pdf_name *)space, "DeviceCMYK"))
+ return (num_components == 4 ? 0 : gs_error_rangecheck);
+ if (pdfi_name_is((const pdf_name *)space, "DeviceRGB"))
+ return (num_components == 3 ? 0 : gs_error_rangecheck);
+
+ code = pdfi_find_resource(ctx, (unsigned char *)"ColorSpace", (pdf_name *)space, (pdf_dict *)source_dict,
+ NULL, &ref_space);
+ if (code < 0)
+ return code;
+
+ if (ref_space->type == PDF_NAME) {
+ if (ref_space->object_num != 0 && ref_space->object_num == space->object_num) {
+ pdfi_countdown(ref_space);
+ return_error(gs_error_circular_reference);
+ }
+ if (pdfi_name_is((const pdf_name *)ref_space, "DeviceGray")) {
+ pdfi_countdown(ref_space);
+ return (num_components == 1 ? 0 : gs_error_rangecheck);
+ }
+ if (pdfi_name_is((const pdf_name *)ref_space, "DeviceCMYK")) {
+ pdfi_countdown(ref_space);
+ return (num_components == 4 ? 0 : gs_error_rangecheck);
+ }
+ if (pdfi_name_is((const pdf_name *)ref_space, "DeviceRGB")) {
+ pdfi_countdown(ref_space);
+ return (num_components == 3 ? 0 : gs_error_rangecheck);
+ }
+ pdfi_countdown(ref_space);
+ return_error(gs_error_typecheck);
+ }
+ space = ref_space;
+ }
+
+ if (space->type == PDF_ARRAY) {
+ code = pdfi_array_get(ctx, (pdf_array *)space, 0, &primary);
+ if (code < 0)
+ goto exit;
+
+ if (primary->type == PDF_NAME) {
+ if (pdfi_name_is((pdf_name *)primary, "Lab")) {
+ code = gs_note_error(gs_error_typecheck);
+ goto exit;
+ }
+ if (pdfi_name_is((pdf_name *)primary, "Pattern")) {
+ code = gs_note_error(gs_error_typecheck);
+ goto exit;
+ }
+ if (pdfi_name_is((pdf_name *)primary, "Indexed")) {
+ code = gs_note_error(gs_error_typecheck);
+ goto exit;
+ }
+ }
+ } else
+ code = gs_note_error(gs_error_typecheck);
+
+exit:
+ pdfi_countdown(primary);
+ pdfi_countdown(ref_space);
+ return code;
+}
+
+int pdfi_setup_DefaultSpaces(pdf_context *ctx, pdf_dict *source_dict)
+{
+ int code = 0;
+ pdf_dict *resources_dict = NULL, *colorspaces_dict = NULL;
+ pdf_obj *DefaultSpace = NULL;
+
+ if (ctx->args.NOSUBSTDEVICECOLORS)
+ return 0;
+
+ /* Create any required DefaultGray, DefaultRGB or DefaultCMYK
+ * spaces.
+ */
+ code = pdfi_dict_knownget(ctx, source_dict, "Resources", (pdf_obj **)&resources_dict);
+ if (code > 0) {
+ code = pdfi_dict_knownget(ctx, resources_dict, "ColorSpace", (pdf_obj **)&colorspaces_dict);
+ if (code > 0) {
+ code = pdfi_dict_knownget(ctx, colorspaces_dict, "DefaultGray", &DefaultSpace);
+ if (code > 0) {
+ gs_color_space *pcs;
+
+ code = Check_Default_Space(ctx, DefaultSpace, source_dict, 1);
+ if (code >= 0) {
+ code = pdfi_create_colorspace(ctx, DefaultSpace, NULL, source_dict, &pcs, false);
+ /* If any given Default* space fails simply ignore it, we wil then use the Device
+ * space instead, this is as per the spec.
+ */
+ if (code >= 0) {
+ if (gs_color_space_num_components(pcs) == 1) {
+ ctx->page.DefaultGray_cs = pcs;
+ pdfi_set_colour_callback(pcs, ctx, NULL);
+ } else {
+ pdfi_set_warning(ctx, 0, NULL, W_PDF_INVALID_DEFAULTSPACE, "pdfi_setup_DefaultSpaces", NULL);
+ rc_decrement(pcs, "setup_DefautSpaces");
+ }
+ }
+ } else
+ pdfi_set_warning(ctx, 0, NULL, W_PDF_INVALID_DEFAULTSPACE, "pdfi_setup_DefaultSpaces", NULL);
+ }
+ pdfi_countdown(DefaultSpace);
+ DefaultSpace = NULL;
+ code = pdfi_dict_knownget(ctx, colorspaces_dict, "DefaultRGB", &DefaultSpace);
+ if (code > 0) {
+ gs_color_space *pcs;
+
+ code = Check_Default_Space(ctx, DefaultSpace, source_dict, 1);
+ if (code >= 0) {
+ code = pdfi_create_colorspace(ctx, DefaultSpace, NULL, source_dict, &pcs, false);
+ /* If any given Default* space fails simply ignore it, we wil then use the Device
+ * space instead, this is as per the spec.
+ */
+ if (code >= 0) {
+ if (gs_color_space_num_components(pcs) == 3) {
+ ctx->page.DefaultRGB_cs = pcs;
+ pdfi_set_colour_callback(pcs, ctx, NULL);
+ } else {
+ rc_decrement(pcs, "setup_DefautSpaces");
+ pdfi_set_warning(ctx, 0, NULL, W_PDF_INVALID_DEFAULTSPACE, "pdfi_setup_DefaultSpaces", NULL);
+ }
+ }
+ } else
+ pdfi_set_warning(ctx, 0, NULL, W_PDF_INVALID_DEFAULTSPACE, "pdfi_setup_DefaultSpaces", NULL);
+ }
+ pdfi_countdown(DefaultSpace);
+ DefaultSpace = NULL;
+ code = pdfi_dict_knownget(ctx, colorspaces_dict, "DefaultCMYK", &DefaultSpace);
+ if (code > 0) {
+ gs_color_space *pcs;
+
+ code = Check_Default_Space(ctx, DefaultSpace, source_dict, 1);
+ if (code >= 0) {
+ code = pdfi_create_colorspace(ctx, DefaultSpace, NULL, source_dict, &pcs, false);
+ /* If any given Default* space fails simply ignore it, we wil then use the Device
+ * space instead, this is as per the spec.
+ */
+ if (code >= 0) {
+ if (gs_color_space_num_components(pcs) == 4) {
+ ctx->page.DefaultCMYK_cs = pcs;
+ pdfi_set_colour_callback(pcs, ctx, NULL);
+ } else {
+ pdfi_set_warning(ctx, 0, NULL, W_PDF_INVALID_DEFAULTSPACE, "pdfi_setup_DefaultSpaces", NULL);
+ rc_decrement(pcs, "setup_DefautSpaces");
+ }
+ }
+ } else
+ pdfi_set_warning(ctx, 0, NULL, W_PDF_INVALID_DEFAULTSPACE, "pdfi_setup_DefaultSpaces", NULL);
+ }
+ pdfi_countdown(DefaultSpace);
+ DefaultSpace = NULL;
+ }
+ }
+
+ pdfi_countdown(DefaultSpace);
+ pdfi_countdown(resources_dict);
+ pdfi_countdown(colorspaces_dict);
+ return 0;
+}
diff --git a/pdf/pdf_colour.h b/pdf/pdf_colour.h
index 5cc9f0eb..263c3d9d 100644
--- a/pdf/pdf_colour.h
+++ b/pdf/pdf_colour.h
@@ -1,4 +1,4 @@
-/* Copyright (C) 2018-2021 Artifex Software, Inc.
+/* Copyright (C) 2018-2022 Artifex Software, Inc.
All Rights Reserved.
This software is provided AS-IS with no warranty, either express or
@@ -20,13 +20,49 @@
#include "gscolor1.h"
#include "gscspace.h"
+#include "pdf_stack.h" /* for pdfi_countup/countdown */
+#include "pdf_misc.h" /* for pdf_name_cmp */
+
+static inline void pdfi_set_colourspace_name(pdf_context *ctx, gs_color_space *pcs, pdf_name *n)
+{
+ if (pcs->interpreter_data != NULL) {
+ pdf_obj *o = (pdf_obj *)(pcs->interpreter_data);
+ if (o != NULL && o->type == PDF_NAME) {
+ pdfi_countdown(o);
+ pcs->interpreter_data = NULL;
+ }
+ }
+
+ if (n != NULL) {
+ pcs->interpreter_data = n;
+ pdfi_countup(n);
+ } else {
+ if (pcs->interpreter_data == NULL)
+ pcs->interpreter_data = ctx;
+ }
+}
static inline void pdfi_set_colour_callback(gs_color_space *pcs, pdf_context *ctx, gs_cspace_free_proc_t pdfi_cspace_free_callback)
{
- pcs->interpreter_data = ctx;
+ if (pcs->interpreter_data == NULL)
+ pcs->interpreter_data = ctx;
pcs->interpreter_free_cspace_proc = pdfi_cspace_free_callback;
}
+static inline int check_same_current_space(pdf_context *ctx, pdf_name *n)
+{
+ pdf_obj *o = (pdf_obj *)(ctx->pgs->color[0].color_space->interpreter_data);
+
+ if (o == NULL || o->type != PDF_NAME)
+ return 0;
+
+ if (pdfi_name_cmp(n, (pdf_name *)o) == 0) {
+ if (n->object_num == o->object_num && n->indirect_num == o->indirect_num)
+ return 1;
+ }
+ return 0;
+}
+
int pdfi_setgraystroke(pdf_context *ctx);
int pdfi_setgrayfill(pdf_context *ctx);
int pdfi_setrgbstroke(pdf_context *ctx);
@@ -50,11 +86,14 @@ int pdfi_gs_setcolorspace(pdf_context *ctx, gs_color_space *pcs);
int pdfi_setcolorspace(pdf_context *ctx, pdf_obj *space, pdf_dict *stream_dict, pdf_dict *page_dict);
int pdfi_create_colorspace(pdf_context *ctx, pdf_obj *space, pdf_dict *stream_dict, pdf_dict *page_dict, gs_color_space **ppcs, bool inline_image);
int pdfi_create_icc_colorspace_from_stream(pdf_context *ctx, pdf_c_stream *stream, gs_offset_t offset,
- unsigned int length, int comps, int *icc_N, gs_color_space **ppcs);
+ unsigned int length, int comps, int *icc_N, ulong dictkey, gs_color_space **ppcs);
/* Page level spot colour detection and enumeration */
int pdfi_check_ColorSpace_for_spots(pdf_context *ctx, pdf_obj *space, pdf_dict *parent_dict, pdf_dict *page_dict, pdf_dict *spot_dict);
int pdfi_color_setoutputintent(pdf_context *ctx, pdf_dict *intent_dict, pdf_stream *profile);
+/* Sets up the DefaultRGB, DefaultCMYK and DefaultGray colour spaces if present */
+int pdfi_setup_DefaultSpaces(pdf_context *ctx, pdf_dict *source_dict);
+
#endif
diff --git a/pdf/pdf_deref.c b/pdf/pdf_deref.c
index fb3ce67b..91d77f63 100644
--- a/pdf/pdf_deref.c
+++ b/pdf/pdf_deref.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 2020-2021 Artifex Software, Inc.
+/* Copyright (C) 2020-2022 Artifex Software, Inc.
All Rights Reserved.
This software is provided AS-IS with no warranty, either express or
@@ -240,12 +240,33 @@ static int pdfi_read_stream_object(pdf_context *ctx, pdf_c_stream *s, gs_offset_
pdfi_pop(ctx, 1);
dict = NULL;
pdfi_push(ctx, (pdf_obj *)stream_obj);
- pdfi_countdown(stream_obj); /* get rid of extra ref */
stream_obj->stream_dict->indirect_num = stream_obj->stream_dict->object_num = objnum;
stream_obj->stream_dict->indirect_gen = stream_obj->stream_dict->generation_num = gen;
stream_obj->stream_offset = offset;
+ /* Exceptional code. Normally we do not need to worry about detecting circular references
+ * when reading objects, because we do not dereference any indirect objects. However streams
+ * are a slight exception in that we do get the Length from the stream dictionay and if that
+ * is an indirect reference, then we dereference it.
+ * OSS-fuzz bug 43247 has a stream where the value associated iwht the /Length is an indirect
+ * reference to the same stream object, and leads to infinite recursion. So deal with that
+ * possibility here.
+ */
+ code = pdfi_loop_detector_mark(ctx);
+ if (code < 0) {
+ pdfi_countdown(stream_obj); /* get rid of extra ref */
+ return code;
+ }
+ if (pdfi_loop_detector_check_object(ctx, stream_obj->object_num))
+ return_error(gs_error_circular_reference);
+
+ code = pdfi_loop_detector_add_object(ctx, stream_obj->object_num);
+ if (code < 0) {
+ pdfi_countdown(stream_obj); /* get rid of extra ref */
+ return code;
+ }
+
/* This code may be a performance overhead, it simply skips over the stream contents
* and checks that the stream ends with a 'endstream endobj' pair. We could add a
* 'go faster' flag for users who are certain their PDF files are well-formed. This
@@ -256,20 +277,28 @@ static int pdfi_read_stream_object(pdf_context *ctx, pdf_c_stream *s, gs_offset_
if (code < 0) {
char extra_info[gp_file_name_sizeof];
- gs_sprintf(extra_info, "Stream object %u missing mandatory keyword /Length, unable to verify the stream length.\n", objnum);
+ (void)pdfi_loop_detector_cleartomark(ctx);
+ gs_snprintf(extra_info, sizeof(extra_info), "Stream object %u missing mandatory keyword /Length, unable to verify the stream length.\n", objnum);
pdfi_set_error(ctx, 0, NULL, E_PDF_BADSTREAM, "pdfi_read_stream_object", extra_info);
+ pdfi_countdown(stream_obj); /* get rid of extra ref */
return 0;
}
+ code = pdfi_loop_detector_cleartomark(ctx);
+ if (code < 0) {
+ pdfi_countdown(stream_obj); /* get rid of extra ref */
+ return code;
+ }
if (i < 0 || (i + offset)> ctx->main_stream_length) {
char extra_info[gp_file_name_sizeof];
- gs_sprintf(extra_info, "Stream object %u has /Length which, when added to offset of object, exceeds file size.\n", objnum);
+ gs_snprintf(extra_info, sizeof(extra_info), "Stream object %u has /Length which, when added to offset of object, exceeds file size.\n", objnum);
pdfi_set_error(ctx, 0, NULL, E_PDF_BADSTREAM, "pdfi_read_stream_object", extra_info);
} else {
code = pdfi_seek(ctx, ctx->main_stream, i, SEEK_CUR);
if (code < 0) {
pdfi_pop(ctx, 1);
+ pdfi_countdown(stream_obj); /* get rid of extra ref */
return code;
}
@@ -280,21 +309,28 @@ static int pdfi_read_stream_object(pdf_context *ctx, pdf_c_stream *s, gs_offset_
if (code < 0 || pdfi_count_stack(ctx) < 2) {
char extra_info[gp_file_name_sizeof];
- gs_sprintf(extra_info, "Failed to find a valid object at end of stream object %u.\n", objnum);
+ gs_snprintf(extra_info, sizeof(extra_info), "Failed to find a valid object at end of stream object %u.\n", objnum);
pdfi_log_info(ctx, "pdfi_read_stream_object", extra_info);
+ /* It is possible for pdfi_read_token to clear the stack, losing the stream object. If that
+ * happens give up.
+ */
+ if (pdfi_count_stack(ctx) == 0) {
+ pdfi_countdown(stream_obj); /* get rid of extra ref */
+ return code;
+ }
}
else {
if (((pdf_obj *)ctx->stack_top[-1])->type != PDF_KEYWORD) {
char extra_info[gp_file_name_sizeof];
- gs_sprintf(extra_info, "Failed to find 'endstream' keyword at end of stream object %u.\n", objnum);
+ gs_snprintf(extra_info, sizeof(extra_info), "Failed to find 'endstream' keyword at end of stream object %u.\n", objnum);
pdfi_set_error(ctx, 0, NULL, E_PDF_MISSINGENDOBJ, "pdfi_read_stream_object", extra_info);
} else {
keyword = ((pdf_keyword *)ctx->stack_top[-1]);
if (keyword->key != TOKEN_ENDSTREAM) {
char extra_info[gp_file_name_sizeof];
- gs_sprintf(extra_info, "Stream object %u has an incorrect /Length of %"PRIu64"\n", objnum, i);
+ gs_snprintf(extra_info, sizeof(extra_info), "Stream object %u has an incorrect /Length of %"PRIu64"\n", objnum, i);
pdfi_log_info(ctx, "pdfi_read_stream_object", extra_info);
} else {
/* Cache the Length in the stream object and mark it valid */
@@ -316,17 +352,21 @@ static int pdfi_read_stream_object(pdf_context *ctx, pdf_c_stream *s, gs_offset_
*/
if (stream_obj->length_valid != true) {
char Buffer[10];
- unsigned int loop, bytes, total = 0;
+ unsigned int bytes, total = 0;
+ int c = 0;
code = pdfi_seek(ctx, ctx->main_stream, stream_obj->stream_offset, SEEK_SET);
if (code < 0) {
+ pdfi_countdown(stream_obj); /* get rid of extra ref */
pdfi_pop(ctx, 1);
return code;
}
memset(Buffer, 0x00, 10);
bytes = pdfi_read_bytes(ctx, (byte *)Buffer, 1, 9, ctx->main_stream);
- if (bytes < 9)
+ if (bytes < 9) {
+ pdfi_countdown(stream_obj); /* get rid of extra ref */
return_error(gs_error_ioerror);
+ }
total = bytes;
do {
@@ -340,19 +380,22 @@ static int pdfi_read_stream_object(pdf_context *ctx, pdf_c_stream *s, gs_offset_
stream_obj->length_valid = true;
break;
}
- for (loop = 0;loop < 9;loop++){
- Buffer[loop] = Buffer[loop + 1];
- }
- bytes = pdfi_read_bytes(ctx, (byte *)&Buffer[9], 1, 1, ctx->main_stream);
- total += bytes;
- } while(bytes);
- if (bytes <= 0)
+ memmove(Buffer, Buffer+1, 9);
+ c = pdfi_read_byte(ctx, ctx->main_stream);
+ if (c < 0)
+ break;
+ Buffer[9] = (byte)c;
+ total++;
+ } while(1);
+ pdfi_countdown(stream_obj); /* get rid of extra ref */
+ if (c < 0)
return_error(gs_error_ioerror);
return 0;
}
code = pdfi_read_token(ctx, ctx->main_stream, objnum, gen);
if (code < 0) {
+ pdfi_countdown(stream_obj); /* get rid of extra ref */
if (ctx->args.pdfstoponerror)
return code;
else
@@ -363,10 +406,13 @@ static int pdfi_read_stream_object(pdf_context *ctx, pdf_c_stream *s, gs_offset_
return 0;
}
- if (pdfi_count_stack(ctx) < 2)
+ if (pdfi_count_stack(ctx) < 2) {
+ pdfi_countdown(stream_obj); /* get rid of extra ref */
return_error(gs_error_stackunderflow);
+ }
if (((pdf_obj *)ctx->stack_top[-1])->type != PDF_KEYWORD) {
+ pdfi_countdown(stream_obj); /* get rid of extra ref */
pdfi_pop(ctx, 1);
if (ctx->args.pdfstoponerror)
return_error(gs_error_typecheck);
@@ -376,6 +422,8 @@ static int pdfi_read_stream_object(pdf_context *ctx, pdf_c_stream *s, gs_offset_
*/
return 0;
}
+ pdfi_countdown(stream_obj); /* get rid of extra ref */
+
keyword = ((pdf_keyword *)ctx->stack_top[-1]);
if (keyword->key != TOKEN_ENDOBJ) {
pdfi_pop(ctx, 2);
@@ -402,11 +450,15 @@ int pdfi_read_bare_object(pdf_context *ctx, pdf_c_stream *s, gs_offset_t stream_
if (code < 0)
return code;
+ if (code == 0)
+ /* failed to read a token */
+ return_error(gs_error_syntaxerror);
+
do {
/* move all the saved offsets up by one */
saved_offset[0] = saved_offset[1];
saved_offset[1] = saved_offset[2];
- saved_offset[2] = pdfi_unread_tell(ctx);;
+ saved_offset[2] = pdfi_unread_tell(ctx);
code = pdfi_read_token(ctx, s, objnum, gen);
if (code < 0) {
@@ -415,6 +467,7 @@ int pdfi_read_bare_object(pdf_context *ctx, pdf_c_stream *s, gs_offset_t stream_
}
if (s->eof)
return_error(gs_error_syntaxerror);
+ code = 0;
}while (ctx->stack_top[-1]->type != PDF_KEYWORD);
keyword = ((pdf_keyword *)ctx->stack_top[-1]);
@@ -494,6 +547,9 @@ static int pdfi_read_object(pdf_context *ctx, pdf_c_stream *s, gs_offset_t strea
code = pdfi_read_token(ctx, s, 0, 0);
if (code < 0)
return code;
+ if (code == 0)
+ return_error(gs_error_syntaxerror);
+
if (stack_size >= pdfi_count_stack(ctx))
return gs_note_error(gs_error_ioerror);
if (((pdf_obj *)ctx->stack_top[-1])->type != PDF_INT) {
@@ -506,6 +562,9 @@ static int pdfi_read_object(pdf_context *ctx, pdf_c_stream *s, gs_offset_t strea
code = pdfi_read_token(ctx, s, 0, 0);
if (code < 0)
return code;
+ if (code == 0)
+ return_error(gs_error_syntaxerror);
+
if (stack_size >= pdfi_count_stack(ctx))
return gs_note_error(gs_error_ioerror);
if (((pdf_obj *)ctx->stack_top[-1])->type != PDF_INT) {
@@ -535,14 +594,13 @@ static int pdfi_read_object(pdf_context *ctx, pdf_c_stream *s, gs_offset_t strea
}
static int pdfi_deref_compressed(pdf_context *ctx, uint64_t obj, uint64_t gen, pdf_obj **object,
- const xref_entry *entry)
+ const xref_entry *entry, bool cache)
{
int code = 0;
- xref_entry *compressed_entry = &ctx->xref_table->xref[entry->u.compressed.compressed_stream_num];
+ xref_entry *compressed_entry;
pdf_c_stream *compressed_stream = NULL;
pdf_c_stream *SubFile_stream = NULL;
pdf_c_stream *Object_stream = NULL;
- char Buffer[256];
int i = 0, object_length = 0;
int64_t num_entries, found_object;
int64_t Length;
@@ -552,6 +610,11 @@ static int pdfi_deref_compressed(pdf_context *ctx, uint64_t obj, uint64_t gen, p
pdf_name *Type = NULL;
pdf_obj *temp_obj;
+ if (entry->u.compressed.compressed_stream_num > ctx->xref_table->xref_size - 1)
+ return_error(gs_error_undefined);
+
+ compressed_entry = &ctx->xref_table->xref[entry->u.compressed.compressed_stream_num];
+
if (ctx->args.pdfdebug) {
dmprintf1(ctx->memory, "%% Reading compressed object (%"PRIi64" 0 obj)", obj);
dmprintf1(ctx->memory, " from ObjStm with object number %"PRIi64"\n", compressed_entry->object_num);
@@ -569,6 +632,11 @@ static int pdfi_deref_compressed(pdf_context *ctx, uint64_t obj, uint64_t gen, p
if (code < 0)
goto exit;
+ if (pdfi_count_stack(ctx) < 1) {
+ code = gs_note_error(gs_error_stackunderflow);
+ goto exit;
+ }
+
if ((ctx->stack_top[-1])->type != PDF_STREAM) {
pdfi_pop(ctx, 1);
code = gs_note_error(gs_error_typecheck);
@@ -639,6 +707,10 @@ static int pdfi_deref_compressed(pdf_context *ctx, uint64_t obj, uint64_t gen, p
code = pdfi_read_token(ctx, compressed_stream, obj, gen);
if (code < 0)
goto exit;
+ if (code == 0) {
+ code = gs_note_error(gs_error_syntaxerror);
+ goto exit;
+ }
temp_obj = ctx->stack_top[-1];
if (temp_obj->type != PDF_INT) {
code = gs_note_error(gs_error_typecheck);
@@ -650,9 +722,14 @@ static int pdfi_deref_compressed(pdf_context *ctx, uint64_t obj, uint64_t gen, p
code = pdfi_read_token(ctx, compressed_stream, obj, gen);
if (code < 0)
goto exit;
+ if (code == 0) {
+ code = gs_note_error(gs_error_syntaxerror);
+ goto exit;
+ }
temp_obj = ctx->stack_top[-1];
if (temp_obj->type != PDF_INT) {
pdfi_pop(ctx, 1);
+ code = gs_note_error(gs_error_typecheck);
goto exit;
}
if (i == entry->u.compressed.object_index) {
@@ -671,8 +748,8 @@ static int pdfi_deref_compressed(pdf_context *ctx, uint64_t obj, uint64_t gen, p
/* Skip to the offset of the object we want to read */
for (i=0;i < offset;i++)
{
- code = pdfi_read_bytes(ctx, (byte *)&Buffer[0], 1, 1, compressed_stream);
- if (code <= 0) {
+ int c = pdfi_read_byte(ctx, compressed_stream);
+ if (c < 0) {
code = gs_note_error(gs_error_ioerror);
goto exit;
}
@@ -696,6 +773,10 @@ static int pdfi_deref_compressed(pdf_context *ctx, uint64_t obj, uint64_t gen, p
code = pdfi_read_token(ctx, Object_stream, obj, gen);
if (code < 0)
goto exit;
+ if (code == 0) {
+ code = gs_note_error(gs_error_syntaxerror);
+ goto exit;
+ }
if (ctx->stack_top[-1]->type == PDF_ARRAY_MARK || ctx->stack_top[-1]->type == PDF_DICT_MARK) {
int start_depth = pdfi_count_stack(ctx);
@@ -704,6 +785,10 @@ static int pdfi_deref_compressed(pdf_context *ctx, uint64_t obj, uint64_t gen, p
code = pdfi_read_token(ctx, Object_stream, obj, gen);
if (code < 0)
goto exit;
+ if (code == 0) {
+ code = gs_note_error(gs_error_syntaxerror);
+ goto exit;
+ }
if (compressed_stream->eof == true) {
code = gs_note_error(gs_error_ioerror);
goto exit;
@@ -720,10 +805,12 @@ static int pdfi_deref_compressed(pdf_context *ctx, uint64_t obj, uint64_t gen, p
pdfi_countup(*object);
pdfi_pop(ctx, 1);
- code = pdfi_add_to_cache(ctx, *object);
- if (code < 0) {
- pdfi_countdown(*object);
- goto exit;
+ if (cache) {
+ code = pdfi_add_to_cache(ctx, *object);
+ if (code < 0) {
+ pdfi_countdown(*object);
+ goto exit;
+ }
}
exit:
@@ -742,7 +829,7 @@ static int pdfi_deref_compressed(pdf_context *ctx, uint64_t obj, uint64_t gen, p
/* pdf_dereference returns an object with a reference count of at least 1, this represents the
* reference being held by the caller (in **object) when we return from this function.
*/
-int pdfi_dereference(pdf_context *ctx, uint64_t obj, uint64_t gen, pdf_obj **object)
+static int pdfi_dereference_main(pdf_context *ctx, uint64_t obj, uint64_t gen, pdf_obj **object, bool cache)
{
xref_entry *entry;
int code, stack_depth = pdfi_count_stack(ctx);
@@ -757,7 +844,7 @@ int pdfi_dereference(pdf_context *ctx, uint64_t obj, uint64_t gen, pdf_obj **obj
if (obj >= ctx->xref_table->xref_size) {
char extra_info[gp_file_name_sizeof];
- gs_sprintf(extra_info, "Error, attempted to dereference object %"PRIu64", which is not present in the xref table\n", obj);
+ gs_snprintf(extra_info, sizeof(extra_info), "Error, attempted to dereference object %"PRIu64", which is not present in the xref table\n", obj);
pdfi_set_error(ctx, 0, NULL, E_PDF_BADOBJNUMBER, "pdfi_dereference", extra_info);
if(ctx->args.pdfstoponerror)
@@ -777,13 +864,18 @@ int pdfi_dereference(pdf_context *ctx, uint64_t obj, uint64_t gen, pdf_obj **obj
if (entry->free) {
char extra_info[gp_file_name_sizeof];
- gs_sprintf(extra_info, "Attempt to dereference free object %"PRIu64", trying next object number as offset.\n", entry->object_num);
+ gs_snprintf(extra_info, sizeof(extra_info), "Attempt to dereference free object %"PRIu64", trying next object number as offset.\n", entry->object_num);
pdfi_set_error(ctx, 0, NULL, E_PDF_DEREF_FREE_OBJ, "pdfi_dereference", extra_info);
}
if (ctx->loop_detection) {
if (pdfi_loop_detector_check_object(ctx, obj) == true)
return_error(gs_error_circular_reference);
+ if (entry->free) {
+ code = pdfi_loop_detector_add_object(ctx, obj);
+ if (code < 0)
+ return code;
+ }
}
if (entry->cache != NULL){
pdf_obj_cache_entry *cache_entry = entry->cache;
@@ -802,12 +894,11 @@ int pdfi_dereference(pdf_context *ctx, uint64_t obj, uint64_t gen, pdf_obj **obj
/* This is an object in a compressed object stream */
ctx->encryption.decrypt_strings = false;
- code = pdfi_deref_compressed(ctx, obj, gen, object, entry);
+ code = pdfi_deref_compressed(ctx, obj, gen, object, entry, cache);
if (code < 0 || *object == NULL)
goto error;
} else {
pdf_c_stream *SubFile_stream = NULL;
- pdf_string *EODString;
#if CACHE_STATISTICS
ctx->misses++;
#endif
@@ -817,20 +908,17 @@ int pdfi_dereference(pdf_context *ctx, uint64_t obj, uint64_t gen, pdf_obj **obj
if (code < 0)
goto error;
- code = pdfi_name_alloc(ctx, (byte *)"trailer", 6, (pdf_obj **)&EODString);
+ code = pdfi_apply_SubFileDecode_filter(ctx, 0, "trailer", ctx->main_stream, &SubFile_stream, false);
if (code < 0)
goto error;
- pdfi_countup(EODString);
-
- code = pdfi_apply_SubFileDecode_filter(ctx, 0, EODString, ctx->main_stream, &SubFile_stream, false);
- if (code < 0) {
- pdfi_countdown(EODString);
- goto error;
- }
code = pdfi_read_object(ctx, SubFile_stream, entry->u.uncompressed.offset);
- pdfi_countdown(EODString);
+ /* pdfi_read_object() could do a repair, which would invalidate the xref and rebuild it.
+ * reload the xref entry to be certain it is valid.
+ */
+ entry = &ctx->xref_table->xref[obj];
+
pdfi_close_file(ctx, SubFile_stream);
if (code < 0) {
int code1 = 0;
@@ -848,7 +936,7 @@ int pdfi_dereference(pdf_context *ctx, uint64_t obj, uint64_t gen, pdf_obj **obj
code1 = pdfi_repair_file(ctx);
if (code1 == 0)
- return pdfi_dereference(ctx, obj, gen, object);
+ return pdfi_dereference_main(ctx, obj, gen, object, cache);
/* Repair failed, just give up and return an error */
return code;
}
@@ -857,10 +945,12 @@ int pdfi_dereference(pdf_context *ctx, uint64_t obj, uint64_t gen, pdf_obj **obj
*object = ctx->stack_top[-1];
pdfi_countup(*object);
pdfi_pop(ctx, 1);
- code = pdfi_add_to_cache(ctx, *object);
- if (code < 0) {
- pdfi_countdown(*object);
- goto error;
+ if (cache) {
+ code = pdfi_add_to_cache(ctx, *object);
+ if (code < 0) {
+ pdfi_countdown(*object);
+ goto error;
+ }
}
} else {
pdfi_pop(ctx, 1);
@@ -897,6 +987,16 @@ error:
return code;
}
+int pdfi_dereference(pdf_context *ctx, uint64_t obj, uint64_t gen, pdf_obj **object)
+{
+ return pdfi_dereference_main(ctx, obj, gen, object, true);
+}
+
+int pdfi_dereference_nocache(pdf_context *ctx, uint64_t obj, uint64_t gen, pdf_obj **object)
+{
+ return pdfi_dereference_main(ctx, obj, gen, object, false);
+}
+
/* do a derefence with loop detection */
int pdfi_deref_loop_detect(pdf_context *ctx, uint64_t obj, uint64_t gen, pdf_obj **object)
{
@@ -911,6 +1011,18 @@ int pdfi_deref_loop_detect(pdf_context *ctx, uint64_t obj, uint64_t gen, pdf_obj
return code;
}
+int pdfi_deref_loop_detect_nocache(pdf_context *ctx, uint64_t obj, uint64_t gen, pdf_obj **object)
+{
+ int code;
+
+ code = pdfi_loop_detector_mark(ctx);
+ if (code < 0)
+ return code;
+
+ code = pdfi_dereference_nocache(ctx, obj, gen, object);
+ (void)pdfi_loop_detector_cleartomark(ctx);
+ return code;
+}
static int pdfi_resolve_indirect_array(pdf_context *ctx, pdf_obj *obj, bool recurse)
{
@@ -921,7 +1033,20 @@ static int pdfi_resolve_indirect_array(pdf_context *ctx, pdf_obj *obj, bool recu
arraysize = pdfi_array_size(array);
for (index = 0; index < arraysize; index++) {
+ if (ctx->loop_detection != NULL) {
+ code = pdfi_loop_detector_mark(ctx);
+ if (code < 0)
+ return code;
+ }
+
code = pdfi_array_get_no_store_R(ctx, array, index, &object);
+
+ if (ctx->loop_detection != NULL) {
+ int code1 = pdfi_loop_detector_cleartomark(ctx);
+ if (code1 < 0)
+ return code1;
+ }
+
if (code == gs_error_circular_reference) {
/* Just leave as an indirect ref */
code = 0;
@@ -931,7 +1056,7 @@ static int pdfi_resolve_indirect_array(pdf_context *ctx, pdf_obj *obj, bool recu
if (object->type != PDF_STREAM)
code = pdfi_array_put(ctx, array, index, object);
if (recurse)
- code = pdfi_resolve_indirect(ctx, object, recurse);
+ code = pdfi_resolve_indirect_loop_detect(ctx, NULL, object, recurse);
}
if (code < 0) goto exit;
@@ -958,8 +1083,24 @@ static int pdfi_resolve_indirect_dict(pdf_context *ctx, pdf_obj *obj, bool recur
* circular references.
*/
for (index=0; index<dictsize; index ++) {
- Key = (pdf_name *)dict->keys[index];
+ Key = (pdf_name *)dict->list[index].key;
+ if (pdfi_name_is(Key, "Parent"))
+ continue;
+
+ if (ctx->loop_detection != NULL) {
+ code = pdfi_loop_detector_mark(ctx);
+ if (code < 0)
+ return code;
+ }
+
code = pdfi_dict_get_no_store_R_key(ctx, dict, Key, &Value);
+
+ if (ctx->loop_detection != NULL) {
+ int code1 = pdfi_loop_detector_cleartomark(ctx);
+ if (code1 < 0)
+ return code1;
+ }
+
if (code == gs_error_circular_reference) {
/* Just leave as an indirect ref */
code = 0;
@@ -967,9 +1108,9 @@ static int pdfi_resolve_indirect_dict(pdf_context *ctx, pdf_obj *obj, bool recur
if (code < 0) goto exit;
/* don't store the object if it's a stream (leave as a ref) */
if (Value->type != PDF_STREAM)
- pdfi_dict_put_obj(ctx, dict, (pdf_obj *)Key, Value);
+ pdfi_dict_put_obj(ctx, dict, (pdf_obj *)Key, Value, true);
if (recurse)
- code = pdfi_resolve_indirect(ctx, Value, recurse);
+ code = pdfi_resolve_indirect_loop_detect(ctx, NULL, Value, recurse);
}
if (code < 0) goto exit;
@@ -1016,11 +1157,16 @@ int pdfi_resolve_indirect_loop_detect(pdf_context *ctx, pdf_obj *parent, pdf_obj
code = pdfi_loop_detector_add_object(ctx, parent->object_num);
if (code < 0) goto exit;
}
+
if (value->object_num != 0) {
+ if (pdfi_loop_detector_check_object(ctx, value->object_num)) {
+ code = gs_note_error(gs_error_circular_reference);
+ goto exit;
+ }
code = pdfi_loop_detector_add_object(ctx, value->object_num);
if (code < 0) goto exit;
}
- code = pdfi_resolve_indirect(ctx, value, false);
+ code = pdfi_resolve_indirect(ctx, value, recurse);
exit:
(void)pdfi_loop_detector_cleartomark(ctx); /* Clear to the mark for the current loop */
diff --git a/pdf/pdf_deref.h b/pdf/pdf_deref.h
index 132be7dd..71d89168 100644
--- a/pdf/pdf_deref.h
+++ b/pdf/pdf_deref.h
@@ -1,4 +1,4 @@
-/* Copyright (C) 2020-2021 Artifex Software, Inc.
+/* Copyright (C) 2020-2022 Artifex Software, Inc.
All Rights Reserved.
This software is provided AS-IS with no warranty, either express or
@@ -19,7 +19,9 @@
int replace_cache_entry(pdf_context *ctx, pdf_obj *o);
int is_compressed_object(pdf_context *ctx, uint32_t obj, uint32_t gen);
int pdfi_dereference(pdf_context *ctx, uint64_t obj, uint64_t gen, pdf_obj **object);
+int pdfi_dereference_nocache(pdf_context *ctx, uint64_t obj, uint64_t gen, pdf_obj **object);
int pdfi_deref_loop_detect(pdf_context *ctx, uint64_t obj, uint64_t gen, pdf_obj **object);
+int pdfi_deref_loop_detect_nocache(pdf_context *ctx, uint64_t obj, uint64_t gen, pdf_obj **object);
int pdfi_read_bare_object(pdf_context *ctx, pdf_c_stream *s, gs_offset_t stream_offset, uint32_t objnum, uint32_t gen);
int pdfi_resolve_indirect(pdf_context *ctx, pdf_obj *value, bool recurse);
int pdfi_resolve_indirect_loop_detect(pdf_context *ctx, pdf_obj *parent, pdf_obj *value, bool recurse);
diff --git a/pdf/pdf_device.c b/pdf/pdf_device.c
index 6d7547e2..9ed97133 100644
--- a/pdf/pdf_device.c
+++ b/pdf/pdf_device.c
@@ -18,8 +18,10 @@
#include "pdf_int.h"
#include "pdf_stack.h"
#include "pdf_device.h"
-#include "gdevvec.h" /* for gs_device_vector */
-#include "gxdevsop.h" /* For special ops : dev_param_req_t */
+#include "gsdevice.h" /* For gs_setdevice_no_erase */
+#include "gspaint.h" /* For gs_erasepage */
+#include "gdevvec.h" /* for gs_device_vector */
+#include "gxdevsop.h" /* For special ops : dev_param_req_t */
int pdfi_device_check_param(gx_device *dev, const char *param, gs_c_param_list *list)
{
diff --git a/pdf/pdf_dict.c b/pdf/pdf_dict.c
index 4b65404e..34356dfe 100644
--- a/pdf/pdf_dict.c
+++ b/pdf/pdf_dict.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 2018-2021 Artifex Software, Inc.
+/* Copyright (C) 2018-2022 Artifex Software, Inc.
All Rights Reserved.
This software is provided AS-IS with no warranty, either express or
@@ -24,6 +24,9 @@
#include "pdf_loop_detect.h"
#include "pdf_misc.h"
+static int pdfi_dict_find(pdf_context *ctx, pdf_dict *d, const char *Key, bool sort);
+static int pdfi_dict_find_key(pdf_context *ctx, pdf_dict *d, const pdf_name *Key, bool sort);
+
void pdfi_free_dict(pdf_obj *o)
{
pdf_dict *d = (pdf_dict *)o;
@@ -34,15 +37,14 @@ void pdfi_free_dict(pdf_obj *o)
for (i=0;i < d->entries;i++) {
#if DEBUG_DICT
- name = (pdf_name *)d->keys[i];
+ name = (pdf_name *)d->list[i].key;
#endif
- if (d->values[i] != NULL)
- pdfi_countdown(d->values[i]);
- if (d->keys[i] != NULL)
- pdfi_countdown(d->keys[i]);
+ if (d->list[i].value != NULL)
+ pdfi_countdown(d->list[i].value);
+ if (d->list[i].key != NULL)
+ pdfi_countdown(d->list[i].key);
}
- gs_free_object(OBJ_MEMORY(d), d->keys, "pdf interpreter free dictionary keys");
- gs_free_object(OBJ_MEMORY(d), d->values, "pdf interpreter free dictioanry values");
+ gs_free_object(OBJ_MEMORY(d), d->list, "pdf interpreter free dictionary key/values");
gs_free_object(OBJ_MEMORY(d), d, "pdf interpreter free dictionary");
}
@@ -55,31 +57,22 @@ static int pdfi_dict_delete_inner(pdf_context *ctx, pdf_dict *d, pdf_name *n, co
pdf_name *name;
#endif
- for (i=0;i < d->entries;i++) {
-#if DEBUG_DICT
- name = (pdf_name *)d->keys[i];
-#endif
- if (n != NULL) {
- if (pdfi_name_cmp(n, (pdf_name *)d->keys[i]) == 0)
- break;
- } else {
- if (pdfi_name_is((pdf_name *)d->keys[i], str))
- break;
- }
+ if (n != NULL)
+ i = pdfi_dict_find_key(ctx, d, (const pdf_name *)n, false);
+ else
+ i = pdfi_dict_find(ctx, d, str, false);
- }
- if (i >= d->entries)
- return_error(gs_error_undefined);
-
- pdfi_countdown(d->keys[i]);
- pdfi_countdown(d->values[i]);
- for( ;i < d->entries - 1;i++) {
- d->keys[i] = d->keys[i + 1];
- d->values[i] = d->values[i + 1];
- }
- d->keys[i] = NULL;
- d->values[i] = NULL;
+ if (i < 0)
+ return i;
+
+ pdfi_countdown(d->list[i].key);
+ pdfi_countdown(d->list[i].value);
d->entries--;
+ if (i != d->entries)
+ memmove(&d->list[i], &d->list[i+1], (d->entries - i) * sizeof(d->list[0]));
+ d->list[d->entries].key = NULL;
+ d->list[d->entries].value = NULL;
+ d->is_sorted = false;
return 0;
}
@@ -104,7 +97,17 @@ int pdfi_dict_alloc(pdf_context *ctx, uint64_t size, pdf_dict **d)
return pdfi_object_alloc(ctx, PDF_DICT, size, (pdf_obj **)d);
}
-int pdfi_dict_from_stack(pdf_context *ctx, uint32_t indirect_num, uint32_t indirect_gen)
+static int pdfi_dict_name_from_string(pdf_context *ctx, pdf_string *s, pdf_name **n)
+{
+ int code = pdfi_object_alloc(ctx, PDF_NAME, s->length, (pdf_obj **)n);
+ if (code >= 0) {
+ memcpy((*n)->data, s->data, s->length);
+ pdfi_countup(*n);
+ }
+ return code;
+}
+
+int pdfi_dict_from_stack(pdf_context *ctx, uint32_t indirect_num, uint32_t indirect_gen, bool convert_string_keys)
{
uint64_t index = 0;
pdf_dict *d = NULL;
@@ -138,17 +141,31 @@ int pdfi_dict_from_stack(pdf_context *ctx, uint32_t indirect_num, uint32_t indir
/* In PDF keys are *required* to be names, so we ought to check that here */
if (((pdf_obj *)ctx->stack_top[-2])->type == PDF_NAME) {
- d->keys[i] = ctx->stack_top[-2];
- pdfi_countup(d->keys[i]);
+ d->list[i].key = ctx->stack_top[-2];
+ pdfi_countup(d->list[i].key);
#if DEBUG_DICT
- key = (pdf_name *)d->keys[i];
+ key = (pdf_name *)d->list[i].key;
#endif
- d->values[i] = ctx->stack_top[-1];
- pdfi_countup(d->values[i]);
+ d->list[i].value = ctx->stack_top[-1];
+ pdfi_countup(d->list[i].value);
} else {
- pdfi_free_dict((pdf_obj *)d);
- pdfi_clear_to_mark(ctx);
- return_error(gs_error_typecheck);
+ if (convert_string_keys && ((pdf_obj *)ctx->stack_top[-2])->type == PDF_STRING) {
+ pdf_name *n;
+ code = pdfi_dict_name_from_string(ctx, (pdf_string *)ctx->stack_top[-2], &n);
+ if (code < 0) {
+ pdfi_free_dict((pdf_obj *)d);
+ pdfi_clear_to_mark(ctx);
+ return_error(gs_error_typecheck);
+ }
+ d->list[i].key = (pdf_obj *)n; /* pdfi_dict_name_from_string() sets refcnt to 1 */
+ d->list[i].value = ctx->stack_top[-1];
+ pdfi_countup(d->list[i].value);
+ }
+ else {
+ pdfi_free_dict((pdf_obj *)d);
+ pdfi_clear_to_mark(ctx);
+ return_error(gs_error_typecheck);
+ }
}
pdfi_pop(ctx, 2);
@@ -187,40 +204,155 @@ pdfi_dict_get2(pdf_context *ctx, pdf_dict *d, const char *Key1,
return code;
}
+static int pdfi_dict_compare_entry(const void *a, const void *b)
+{
+ pdf_name *key_a = (pdf_name *)((pdf_dict_entry *)a)->key, *key_b = (pdf_name *)((pdf_dict_entry *)b)->key;
+
+ if (key_a == NULL) {
+ if (key_b == NULL)
+ return 0;
+ else
+ return 1;
+ }
+
+ if (key_b == NULL)
+ return -1;
+
+ if (key_a->length != key_b->length)
+ return key_a->length - key_b->length;
+
+ return strncmp((const char *)key_a->data, (const char *)key_b->data, key_a->length);
+}
+
+static int pdfi_dict_find_sorted(pdf_context *ctx, pdf_dict *d, const char *Key)
+{
+ int start = 0, end = d->size - 1, middle = 0, keylen = strlen(Key);
+ pdf_name *test_key;
+
+ while (start <= end) {
+ middle = start + (end - start) / 2;
+ test_key = (pdf_name *)d->list[middle].key;
+
+ /* Sorting pushes unused key/values (NULL) to the end of the dictionary */
+ if (test_key == NULL) {
+ end = middle - 1;
+ continue;
+ }
+
+ if (test_key->length == keylen) {
+ int result = strncmp((const char *)test_key->data, Key, keylen);
+
+ if (result == 0)
+ return middle;
+ if (result < 0)
+ start = middle + 1;
+ else
+ end = middle - 1;
+ } else {
+ if (test_key->length < keylen)
+ start = middle + 1;
+ else
+ end = middle -1;
+ }
+ }
+ return gs_note_error(gs_error_undefined);
+}
+
+static int pdfi_dict_find_unsorted(pdf_context *ctx, pdf_dict *d, const char *Key)
+{
+ int i;
+ pdf_name *t;
+
+ for (i=0;i< d->entries;i++) {
+ t = (pdf_name *)d->list[i].key;
+
+ if (t && t->type == PDF_NAME) {
+ if (pdfi_name_is((pdf_name *)t, Key)) {
+ return i;
+ }
+ }
+ }
+ return_error(gs_error_undefined);
+}
+
+static int pdfi_dict_find(pdf_context *ctx, pdf_dict *d, const char *Key, bool sort)
+{
+ if (!d->is_sorted) {
+ if (d->entries > 32 && sort) {
+ qsort(d->list, d->size, sizeof(pdf_dict_entry), pdfi_dict_compare_entry);
+ d->is_sorted = true;
+ return pdfi_dict_find_sorted(ctx, d, Key);
+ } else
+ return pdfi_dict_find_unsorted(ctx, d, Key);
+ } else
+ return pdfi_dict_find_sorted(ctx, d, Key);
+}
+
+static int pdfi_dict_find_key(pdf_context *ctx, pdf_dict *d, const pdf_name *Key, bool sort)
+{
+ char *Test = NULL;
+ int index = 0;
+
+ Test = (char *)gs_alloc_bytes(ctx->memory, Key->length + 1, "pdfi_dict_find_key");
+ if (Test == NULL)
+ return_error(gs_error_VMerror);
+
+ memcpy(Test, Key->data, Key->length);
+ Test[Key->length] = 0x00;
+
+ index = pdfi_dict_find(ctx, d, Test, sort);
+
+ gs_free_object(ctx->memory, Test, "pdfi_dict_find_key");
+ return index;
+}
+
/* The object returned by pdfi_dict_get has its reference count incremented by 1 to
* indicate the reference now held by the caller, in **o.
*/
-int pdfi_dict_get(pdf_context *ctx, pdf_dict *d, const char *Key, pdf_obj **o)
+int pdfi_dict_get_common(pdf_context *ctx, pdf_dict *d, const char *Key, pdf_obj **o, bool cache)
{
- int i=0, code;
- pdf_name *t;
+ int index = 0, code = 0;
*o = NULL;
if (d->type != PDF_DICT)
return_error(gs_error_typecheck);
- for (i=0;i< d->entries;i++) {
- t = (pdf_name *)d->keys[i];
+ index = pdfi_dict_find(ctx, d, Key, true);
+ if (index < 0)
+ return index;
- if (t && t->type == PDF_NAME) {
- if (pdfi_name_is((pdf_name *)t, Key)) {
- if (d->values[i]->type == PDF_INDIRECT) {
- pdf_indirect_ref *r = (pdf_indirect_ref *)d->values[i];
-
- code = pdfi_deref_loop_detect(ctx, r->ref_object_num, r->ref_generation_num, o);
- if (code < 0)
- return code;
- pdfi_countdown(d->values[i]);
- d->values[i] = *o;
- }
- *o = d->values[i];
- pdfi_countup(*o);
- return 0;
- }
+ if (d->list[index].value->type == PDF_INDIRECT) {
+ pdf_indirect_ref *r = (pdf_indirect_ref *)d->list[index].value;
+
+ if (r->ref_object_num == d->object_num)
+ return_error(gs_error_circular_reference);
+
+ if (cache)
+ code = pdfi_deref_loop_detect(ctx, r->ref_object_num, r->ref_generation_num, o);
+ else
+ code = pdfi_deref_loop_detect_nocache(ctx, r->ref_object_num, r->ref_generation_num, o);
+ if (code < 0)
+ return code;
+ /* The file Bug690138.pdf has font dictionaries which contain ToUnicode keys where
+ * the value is an indirect reference to the same font object. If we replace the
+ * indirect reference in the dictionary with the font dictionary it becomes self
+ * referencing and never counts down to 0, leading to a memory leak.
+ * This is clearly an error, so flag it and don't replace the indirect reference.
+ */
+ if ((*o)->object_num == 0 || (*o)->object_num != d->object_num)
+ {
+ pdfi_countdown(d->list[index].value);
+ d->list[index].value = *o;
+ } else {
+ pdfi_set_error(ctx, 0, NULL, E_DICT_SELF_REFERENCE, "pdfi_dict_get", NULL);
+ return 0;
}
}
- return_error(gs_error_undefined);
+ *o = d->list[index].value;
+ pdfi_countup(*o);
+
+ return code;
}
/* Get object from dict without resolving indirect references
@@ -228,26 +360,20 @@ int pdfi_dict_get(pdf_context *ctx, pdf_dict *d, const char *Key, pdf_obj **o)
*/
int pdfi_dict_get_no_deref(pdf_context *ctx, pdf_dict *d, const pdf_name *Key, pdf_obj **o)
{
- int i=0;
- pdf_name *t;
+ int index=0;
*o = NULL;
if (d->type != PDF_DICT)
return_error(gs_error_typecheck);
- for (i=0;i< d->entries;i++) {
- t = (pdf_name *)d->keys[i];
+ index = pdfi_dict_find_key(ctx, d, Key, true);
+ if (index < 0)
+ return index;
- if (t && t->type == PDF_NAME) {
- if (pdfi_name_cmp((pdf_name *)t, Key)== 0) {
- *o = d->values[i];
- pdfi_countup(*o);
- return 0;
- }
- }
- }
- return_error(gs_error_undefined);
+ *o = d->list[index].value;
+ pdfi_countup(*o);
+ return 0;
}
/* Get by pdf_name rather than by char *
@@ -256,64 +382,52 @@ int pdfi_dict_get_no_deref(pdf_context *ctx, pdf_dict *d, const pdf_name *Key, p
*/
int pdfi_dict_get_by_key(pdf_context *ctx, pdf_dict *d, const pdf_name *Key, pdf_obj **o)
{
- int i=0, code;
- pdf_name *t;
+ int index=0, code = 0;
*o = NULL;
if (d->type != PDF_DICT)
return_error(gs_error_typecheck);
- for (i=0;i< d->entries;i++) {
- t = (pdf_name *)d->keys[i];
+ index = pdfi_dict_find_key(ctx, d, Key, true);
+ if (index < 0)
+ return index;
- if (t && t->type == PDF_NAME) {
- if (pdfi_name_cmp((pdf_name *)t, Key)== 0) {
- if (d->values[i]->type == PDF_INDIRECT) {
- pdf_indirect_ref *r = (pdf_indirect_ref *)d->values[i];
-
- code = pdfi_deref_loop_detect(ctx, r->ref_object_num, r->ref_generation_num, o);
- if (code < 0)
- return code;
- pdfi_countdown(d->values[i]);
- d->values[i] = *o;
- }
- *o = d->values[i];
- pdfi_countup(*o);
- return 0;
- }
- }
+ if (d->list[index].value->type == PDF_INDIRECT) {
+ pdf_indirect_ref *r = (pdf_indirect_ref *)d->list[index].value;
+
+ code = pdfi_deref_loop_detect(ctx, r->ref_object_num, r->ref_generation_num, o);
+ if (code < 0)
+ return code;
+ pdfi_countdown(d->list[index].value);
+ d->list[index].value = *o;
}
- return_error(gs_error_undefined);
+ *o = d->list[index].value;
+ pdfi_countup(*o);
+ return 0;
}
/* Get indirect reference without de-referencing it */
int pdfi_dict_get_ref(pdf_context *ctx, pdf_dict *d, const char *Key, pdf_indirect_ref **o)
{
- int i=0;
- pdf_name *t;
+ int index=0;
*o = NULL;
if (d->type != PDF_DICT)
return_error(gs_error_typecheck);
- for (i=0;i< d->entries;i++) {
- t = (pdf_name *)d->keys[i];
+ index = pdfi_dict_find(ctx, d, Key, true);
+ if (index < 0)
+ return index;
- if (t && t->type == PDF_NAME) {
- if (pdfi_name_is((pdf_name *)t, Key)) {
- if (d->values[i]->type == PDF_INDIRECT) {
- *o = (pdf_indirect_ref *)d->values[i];
- pdfi_countup(*o);
- return 0;
- } else {
- return_error(gs_error_typecheck);
- }
- }
- }
+ if (d->list[index].value->type == PDF_INDIRECT) {
+ *o = (pdf_indirect_ref *)d->list[index].value;
+ pdfi_countup(*o);
+ return 0;
+ } else {
+ return_error(gs_error_typecheck);
}
- return_error(gs_error_undefined);
}
/* As per pdfi_dict_get(), but doesn't replace an indirect reference in a dictionary with a
@@ -326,42 +440,32 @@ int pdfi_dict_get_ref(pdf_context *ctx, pdf_dict *d, const char *Key, pdf_indire
static int pdfi_dict_get_no_store_R_inner(pdf_context *ctx, pdf_dict *d, const char *strKey,
const pdf_name *nameKey, pdf_obj **o)
{
- int i=0, code;
- pdf_name *t;
- bool match = false;
+ int index=0, code = 0;
*o = NULL;
if (d->type != PDF_DICT)
return_error(gs_error_typecheck);
- for (i=0;i< d->entries;i++) {
- t = (pdf_name *)d->keys[i];
+ if (strKey == NULL)
+ index = pdfi_dict_find_key(ctx, d, nameKey, true);
+ else
+ index = pdfi_dict_find(ctx, d, strKey, true);
- if (t && t->type == PDF_NAME) {
- if (strKey != NULL) {
- if (pdfi_name_is(t, strKey))
- match = true;
- } else {
- if (!pdfi_name_cmp(t, nameKey))
- match = true;
- }
- if (match) {
- if (d->values[i]->type == PDF_INDIRECT) {
- pdf_indirect_ref *r = (pdf_indirect_ref *)d->values[i];
-
- code = pdfi_dereference(ctx, r->ref_object_num, r->ref_generation_num, o);
- if (code < 0)
- return code;
- } else {
- *o = d->values[i];
- pdfi_countup(*o);
- }
- return 0;
- }
- }
+ if (index < 0)
+ return index;
+
+ if (d->list[index].value->type == PDF_INDIRECT) {
+ pdf_indirect_ref *r = (pdf_indirect_ref *)d->list[index].value;
+
+ code = pdfi_dereference(ctx, r->ref_object_num, r->ref_generation_num, o);
+ if (code < 0)
+ return code;
+ } else {
+ *o = d->list[index].value;
+ pdfi_countup(*o);
}
- return_error(gs_error_undefined);
+ return 0;
}
/* Wrapper to pdfi_dict_no_store_R_inner(), takes a char * as Key */
@@ -715,12 +819,14 @@ int pdfi_make_int_array_from_dict(pdf_context *ctx, int **parray, pdf_dict *dict
return array_size;
}
-/* Put into dictionary with key as object */
-int pdfi_dict_put_obj(pdf_context *ctx, pdf_dict *d, pdf_obj *Key, pdf_obj *value)
+/* Put into dictionary with key as object -
+ If the key already exists, we'll only replace it
+ if "replace" is true.
+*/
+int pdfi_dict_put_obj(pdf_context *ctx, pdf_dict *d, pdf_obj *Key, pdf_obj *value, bool replace)
{
- uint64_t i;
- pdf_obj **new_keys, **new_values;
- pdf_name *n;
+ int i;
+ pdf_dict_entry *new_list;
if (d->type != PDF_DICT)
return_error(gs_error_typecheck);
@@ -729,29 +835,27 @@ int pdfi_dict_put_obj(pdf_context *ctx, pdf_dict *d, pdf_obj *Key, pdf_obj *valu
return_error(gs_error_typecheck);
/* First, do we have a Key/value pair already ? */
- for (i=0;i< d->entries;i++) {
- n = (pdf_name *)d->keys[i];
- if (n && n->type == PDF_NAME) {
- if (pdfi_name_cmp((pdf_name *)Key, n) == 0) {
- if (d->values[i] == value)
- /* We already have this value stored with this key.... */
- return 0;
- pdfi_countdown(d->values[i]);
- d->values[i] = value;
- pdfi_countup(value);
- return 0;
- }
- }
+ i = pdfi_dict_find_key(ctx, d, (pdf_name *)Key, false);
+ if (i >= 0) {
+ if (d->list[i].value == value || replace == false)
+ /* We already have this value stored with this key.... */
+ return 0;
+ pdfi_countdown(d->list[i].value);
+ d->list[i].value = value;
+ pdfi_countup(value);
+ return 0;
}
+ d->is_sorted = false;
+
/* Nope, its a new Key */
if (d->size > d->entries) {
/* We have a hole, find and use it */
for (i=0;i< d->size;i++) {
- if (d->keys[i] == NULL) {
- d->keys[i] = Key;
+ if (d->list[i].key == NULL) {
+ d->list[i].key = Key;
pdfi_countup(Key);
- d->values[i] = value;
+ d->list[i].value = value;
pdfi_countup(value);
d->entries++;
return 0;
@@ -759,24 +863,18 @@ int pdfi_dict_put_obj(pdf_context *ctx, pdf_dict *d, pdf_obj *Key, pdf_obj *valu
}
}
- new_keys = (pdf_obj **)gs_alloc_bytes(ctx->memory, (d->size + 1) * sizeof(pdf_obj *), "pdfi_dict_put reallocate dictionary keys");
- new_values = (pdf_obj **)gs_alloc_bytes(ctx->memory, (d->size + 1) * sizeof(pdf_obj *), "pdfi_dict_put reallocate dictionary values");
- if (new_keys == NULL || new_values == NULL){
- gs_free_object(ctx->memory, new_keys, "pdfi_dict_put memory allocation failure");
- gs_free_object(ctx->memory, new_values, "pdfi_dict_put memory allocation failure");
+ new_list = (pdf_dict_entry *)gs_alloc_bytes(ctx->memory, (d->size + 1) * sizeof(pdf_dict_entry), "pdfi_dict_put reallocate dictionary key/values");
+ if (new_list == NULL) {
return_error(gs_error_VMerror);
}
- memcpy(new_keys, d->keys, d->size * sizeof(pdf_obj *));
- memcpy(new_values, d->values, d->size * sizeof(pdf_obj *));
+ memcpy(new_list, d->list, d->size * sizeof(pdf_dict_entry));
- gs_free_object(ctx->memory, d->keys, "pdfi_dict_put key reallocation");
- gs_free_object(ctx->memory, d->values, "pdfi_dict_put value reallocation");
+ gs_free_object(ctx->memory, d->list, "pdfi_dict_put key/value reallocation");
- d->keys = new_keys;
- d->values = new_values;
+ d->list = new_list;
- d->keys[d->size] = Key;
- d->values[d->size] = value;
+ d->list[d->size].key = Key;
+ d->list[d->size].value = value;
d->size++;
d->entries++;
pdfi_countup(Key);
@@ -796,7 +894,7 @@ int pdfi_dict_put(pdf_context *ctx, pdf_dict *d, const char *Key, pdf_obj *value
return code;
pdfi_countup(key);
- code = pdfi_dict_put_obj(ctx, d, key, value);
+ code = pdfi_dict_put_obj(ctx, d, key, value, true);
pdfi_countdown(key); /* get rid of extra ref */
return code;
}
@@ -847,9 +945,10 @@ int pdfi_dict_copy(pdf_context *ctx, pdf_dict *target, pdf_dict *source)
int i=0, code = 0;
for (i=0;i< source->entries;i++) {
- code = pdfi_dict_put_obj(ctx, target, source->keys[i], source->values[i]);
+ code = pdfi_dict_put_obj(ctx, target, source->list[i].key, source->list[i].value, true);
if (code < 0)
return code;
+ target->is_sorted = source->is_sorted;
}
return 0;
}
@@ -857,26 +956,34 @@ int pdfi_dict_copy(pdf_context *ctx, pdf_dict *target, pdf_dict *source)
int pdfi_dict_known(pdf_context *ctx, pdf_dict *d, const char *Key, bool *known)
{
int i;
- pdf_name *t;
if (d->type != PDF_DICT)
return_error(gs_error_typecheck);
*known = false;
- for (i=0;i< d->entries;i++) {
- t = (pdf_name *)d->keys[i];
+ i = pdfi_dict_find(ctx, d, Key, true);
+ if (i >= 0)
+ *known = true;
- if (t && t->type == PDF_NAME) {
- if (pdfi_name_is(t, Key)) {
- *known = true;
- break;
- }
- }
- }
return 0;
}
-/* Tests if a Key is present in the dictionary, if it is, retrieves the value associted with the
+int pdfi_dict_known_by_key(pdf_context *ctx, pdf_dict *d, pdf_name *Key, bool *known)
+{
+ int i;
+
+ if (d->type != PDF_DICT)
+ return_error(gs_error_typecheck);
+
+ *known = false;
+ i = pdfi_dict_find_key(ctx, d, Key, true);
+ if (i >= 0)
+ *known = true;
+
+ return 0;
+}
+
+/* Tests if a Key is present in the dictionary, if it is, retrieves the value associated with the
* key. Returns < 0 for error, 0 if the key is not found > 0 if the key is present, and initialises
* the value in the arguments. Since this uses pdf_dict_get(), the returned value has its
* reference count incremented by 1, just like pdfi_dict_get().
@@ -944,28 +1051,6 @@ int pdfi_dict_knownget_number(pdf_context *ctx, pdf_dict *d, const char *Key, do
return 1;
}
-int pdfi_dict_known_by_key(pdf_context *ctx, pdf_dict *d, pdf_name *Key, bool *known)
-{
- int i;
- pdf_obj *t;
-
- if (d->type != PDF_DICT)
- return_error(gs_error_typecheck);
-
- *known = false;
- for (i=0;i< d->entries;i++) {
- t = d->keys[i];
-
- if (t && t->type == PDF_NAME) {
- if (pdfi_name_cmp((pdf_name *)t, Key) == 0) {
- *known = true;
- break;
- }
- }
- }
- return 0;
-}
-
int pdfi_dict_next(pdf_context *ctx, pdf_dict *d, pdf_obj **Key, pdf_obj **Value, uint64_t *index)
{
int code;
@@ -987,14 +1072,14 @@ int pdfi_dict_next(pdf_context *ctx, pdf_dict *d, pdf_obj **Key, pdf_obj **Value
* dictionary somehow ends up with NULL keys in the allocated
* section.
*/
- *Key = d->keys[*index];
+ *Key = d->list[*index].key;
if (*Key == NULL) {
(*index)++;
continue;
}
- if (d->values[*index]->type == PDF_INDIRECT) {
- pdf_indirect_ref *r = (pdf_indirect_ref *)d->values[*index];
+ if (d->list[*index].value->type == PDF_INDIRECT) {
+ pdf_indirect_ref *r = (pdf_indirect_ref *)d->list[*index].value;
pdf_obj *o;
code = pdfi_dereference(ctx, r->ref_object_num, r->ref_generation_num, &o);
@@ -1005,7 +1090,7 @@ int pdfi_dict_next(pdf_context *ctx, pdf_dict *d, pdf_obj **Key, pdf_obj **Value
*Value = o;
break;
} else {
- *Value = d->values[*index];
+ *Value = d->list[*index].value;
pdfi_countup(*Value);
break;
}
@@ -1037,7 +1122,7 @@ int pdfi_dict_key_next(pdf_context *ctx, pdf_dict *d, pdf_obj **Key, uint64_t *i
return gs_error_undefined;
}
- *Key = d->keys[*i];
+ *Key = d->list[*i].key;
if (*Key == NULL) {
(*i)++;
continue;
@@ -1063,15 +1148,16 @@ int pdfi_merge_dicts(pdf_context *ctx, pdf_dict *target, pdf_dict *source)
bool known = false;
for (i=0;i< source->entries;i++) {
- code = pdfi_dict_known_by_key(ctx, target, (pdf_name *)source->keys[i], &known);
+ code = pdfi_dict_known_by_key(ctx, target, (pdf_name *)source->list[i].key, &known);
if (code < 0)
return code;
if (!known) {
- code = pdfi_dict_put_obj(ctx, target, source->keys[i], source->values[i]);
+ code = pdfi_dict_put_obj(ctx, target, source->list[i].key, source->list[i].value, true);
if (code < 0)
return code;
}
}
+ target->is_sorted = false;
return 0;
}
diff --git a/pdf/pdf_dict.h b/pdf/pdf_dict.h
index 269f6be5..c5a8743b 100644
--- a/pdf/pdf_dict.h
+++ b/pdf/pdf_dict.h
@@ -1,4 +1,4 @@
-/* Copyright (C) 2018-2021 Artifex Software, Inc.
+/* Copyright (C) 2018-2022 Artifex Software, Inc.
All Rights Reserved.
This software is provided AS-IS with no warranty, either express or
@@ -20,24 +20,35 @@
static inline uint64_t pdfi_dict_entries(pdf_dict *d) { return d->entries; }
+int pdfi_dict_get_common(pdf_context *ctx, pdf_dict *d, const char *Key, pdf_obj **o, bool cache);
+static inline int pdfi_dict_get(pdf_context *ctx, pdf_dict *d, const char *Key, pdf_obj **o)
+{
+ return pdfi_dict_get_common(ctx, d, Key, o, true);
+}
+
+static inline int pdfi_dict_get_nocache(pdf_context *ctx, pdf_dict *d, const char *Key, pdf_obj **o)
+{
+ return pdfi_dict_get_common(ctx, d, Key, o, true);
+}
+
+
void pdfi_free_dict(pdf_obj *o);
int pdfi_dict_delete_pair(pdf_context *ctx, pdf_dict *d, pdf_name *n);
int pdfi_dict_delete(pdf_context *ctx, pdf_dict *d, const char *str);
int pdfi_dict_alloc(pdf_context *ctx, uint64_t size, pdf_dict **d);
-int pdfi_dict_from_stack(pdf_context *ctx, uint32_t indirect_num, uint32_t indirect_gen);
+int pdfi_dict_from_stack(pdf_context *ctx, uint32_t indirect_num, uint32_t indirect_gen, bool convert_string_keys);
int pdfi_dict_known(pdf_context *ctx, pdf_dict *d, const char *Key, bool *known);
int pdfi_dict_known_by_key(pdf_context *ctx, pdf_dict *d, pdf_name *Key, bool *known);
int pdfi_dict_knownget(pdf_context *ctx, pdf_dict *d, const char *Key, pdf_obj **o);
int pdfi_dict_knownget_type(pdf_context *ctx, pdf_dict *d, const char *Key, pdf_obj_type type, pdf_obj **o);
int pdfi_dict_knownget_number(pdf_context *ctx, pdf_dict *d, const char *Key, double *f);
int pdfi_merge_dicts(pdf_context *ctx, pdf_dict *target, pdf_dict *source);
-int pdfi_dict_put_obj(pdf_context *ctx, pdf_dict *d, pdf_obj *Key, pdf_obj *value);
+int pdfi_dict_put_obj(pdf_context *ctx, pdf_dict *d, pdf_obj *Key, pdf_obj *value, bool replace);
int pdfi_dict_put(pdf_context *ctx, pdf_dict *d, const char *Key, pdf_obj *value);
int pdfi_dict_put_int(pdf_context *ctx, pdf_dict *d, const char *Key, int64_t value);
int pdfi_dict_put_bool(pdf_context *ctx, pdf_dict *d, const char *Key, bool value);
int pdfi_dict_put_name(pdf_context *ctx, pdf_dict *d, const char *Key, const char *name);
int pdfi_dict_get2(pdf_context *ctx, pdf_dict *d, const char *Key1, const char *Key2, pdf_obj **o);
-int pdfi_dict_get(pdf_context *ctx, pdf_dict *d, const char *Key, pdf_obj **o);
int pdfi_dict_get_no_deref(pdf_context *ctx, pdf_dict *d, const pdf_name *Key, pdf_obj **o);
int pdfi_dict_get_by_key(pdf_context *ctx, pdf_dict *d, const pdf_name *Key, pdf_obj **o);
int pdfi_dict_get_no_store_R_key(pdf_context *ctx, pdf_dict *d, const pdf_name *Key, pdf_obj **o);
diff --git a/pdf/pdf_doc.c b/pdf/pdf_doc.c
index 5f87d079..be71dfcb 100644
--- a/pdf/pdf_doc.c
+++ b/pdf/pdf_doc.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 2020-2021 Artifex Software, Inc.
+/* Copyright (C) 2020-2022 Artifex Software, Inc.
All Rights Reserved.
This software is provided AS-IS with no warranty, either express or
@@ -105,11 +105,16 @@ int pdfi_read_Info(pdf_context *ctx)
{
pdf_dict *Info;
int code;
+ pdf_dict *d;
if (ctx->args.pdfdebug)
dmprintf(ctx->memory, "%% Reading Info dictionary\n");
+ /* See comment in pdfi_read_Root() for details */
+ d = ctx->Trailer;
+ pdfi_countup(d);
code = pdfi_dict_get_type(ctx, ctx->Trailer, "Info", PDF_DICT, (pdf_obj **)&Info);
+ pdfi_countdown(d);
if (code < 0)
return code;
@@ -117,7 +122,7 @@ int pdfi_read_Info(pdf_context *ctx)
dmprintf(ctx->memory, "\n");
pdfi_device_set_flags(ctx);
- pdfi_write_docinfo_pdfmark(ctx, Info);
+ pdfi_pdfmark_write_docinfo(ctx, Info);
/* We don't pdfi_countdown(Info) now, because we've transferred our
* reference to the pointer in the pdf_context structure.
@@ -330,7 +335,7 @@ static int pdfi_get_child(pdf_context *ctx, pdf_array *Kids, int i, pdf_dict **p
goto errorExit;
pdfi_countup(Key);
- code = pdfi_dict_put_obj(ctx, leaf_dict, (pdf_obj *)Key, (pdf_obj *)node);
+ code = pdfi_dict_put_obj(ctx, leaf_dict, (pdf_obj *)Key, (pdf_obj *)node, true);
if (code < 0)
goto errorExit;
code = pdfi_dict_put(ctx, leaf_dict, "Type", (pdf_obj *)Key);
@@ -339,8 +344,15 @@ static int pdfi_get_child(pdf_context *ctx, pdf_array *Kids, int i, pdf_dict **p
code = pdfi_array_put(ctx, Kids, i, (pdf_obj *)leaf_dict);
if (code < 0)
goto errorExit;
+ leaf_dict = NULL;
}
} else {
+ if (ctx->loop_detection != NULL) {
+ if (node->object_num != 0 && pdfi_loop_detector_check_object(ctx, node->object_num)) {
+ code = gs_note_error(gs_error_circular_reference);
+ goto errorExit;
+ }
+ }
child = (pdf_dict *)node;
pdfi_countup(child);
}
@@ -349,6 +361,7 @@ static int pdfi_get_child(pdf_context *ctx, pdf_array *Kids, int i, pdf_dict **p
child = NULL;
errorExit:
+ pdfi_free_object((pdf_obj *)leaf_dict);
pdfi_countdown(child);
pdfi_countdown(node);
pdfi_countdown(Type);
@@ -496,15 +509,15 @@ int pdfi_get_page_dict(pdf_context *ctx, pdf_dict *d, uint64_t page_num, uint64_
} else {
if (pdfi_name_is(Type, "PageRef")) {
if ((*page_offset) == page_num) {
- pdf_dict *d = NULL;
+ pdf_dict *page_dict = NULL;
- code = pdfi_dict_get(ctx, child, "PageRef", (pdf_obj **)&d);
+ code = pdfi_dict_get(ctx, child, "PageRef", (pdf_obj **)&page_dict);
if (code < 0)
goto exit;
- code = pdfi_merge_dicts(ctx, d, inheritable);
- *target = d;
+ code = pdfi_merge_dicts(ctx, page_dict, inheritable);
+ *target = page_dict;
pdfi_countup(*target);
- pdfi_countdown(d);
+ pdfi_countdown(page_dict);
goto exit;
} else {
*page_offset += 1;
@@ -590,30 +603,45 @@ int pdfi_find_resource(pdf_context *ctx, unsigned char *Type, pdf_name *name,
*o = NULL;
- /* Check the provided dict */
- code = pdfi_resource_knownget_typedict(ctx, Type, dict, &typedict);
- if (code < 0)
- goto exit;
- if (code > 0) {
- code = pdfi_dict_get_no_store_R_key(ctx, typedict, name, o);
- if (code != gs_error_undefined)
+ /* Check the provided dict, stream_dict can be NULL if we are trying to find a Default* ColorSpace */
+ if (dict != NULL) {
+ code = pdfi_resource_knownget_typedict(ctx, Type, dict, &typedict);
+ if (code < 0)
goto exit;
- }
-
- /* Check the Parents, if any */
- code = pdfi_dict_knownget_type(ctx, dict, "Parent", PDF_DICT, (pdf_obj **)&Parent);
- if (code < 0)
- goto exit;
- if (code > 0) {
- if (Parent->object_num != ctx->page.CurrentPageDict->object_num) {
- code = pdfi_find_resource(ctx, Type, name, Parent, page_dict, o);
+ if (code > 0) {
+ code = pdfi_dict_get_no_store_R_key(ctx, typedict, name, o);
if (code != gs_error_undefined)
goto exit;
}
- }
- pdfi_countdown(typedict);
- typedict = NULL;
+ /* Check the Parents, if any */
+ code = pdfi_dict_knownget_type(ctx, dict, "Parent", PDF_DICT, (pdf_obj **)&Parent);
+ if (code < 0)
+ goto exit;
+ if (code > 0) {
+ if (Parent->object_num != ctx->page.CurrentPageDict->object_num) {
+ if (pdfi_loop_detector_check_object(ctx, Parent->object_num) == true)
+ return_error(gs_error_circular_reference);
+
+ code = pdfi_loop_detector_mark(ctx);
+ if (code < 0)
+ return code;
+
+ code = pdfi_loop_detector_add_object(ctx, dict->object_num);
+ if (code < 0) {
+ (void)pdfi_loop_detector_cleartomark(ctx);
+ return code;
+ }
+ code = pdfi_find_resource(ctx, Type, name, Parent, page_dict, o);
+ (void)pdfi_loop_detector_cleartomark(ctx);
+ if (code != gs_error_undefined)
+ goto exit;
+ }
+ }
+
+ pdfi_countdown(typedict);
+ typedict = NULL;
+ }
/* Normally page_dict can't be (or shouldn't be) NULL. However, if we are processing
* a TYpe 3 font, then the 'page dict' is the Resources dictionary of that font. If
@@ -682,68 +710,10 @@ exit:
return code;
}
-/* Count how many children an outline entry has
- * This is separate just to keep the code from getting cluttered.
- */
-static int pdfi_doc_outline_count(pdf_context *ctx, pdf_dict *outline, int64_t *count)
-{
- int code = 0;
- pdf_dict *child = NULL;
- pdf_dict *Next = NULL;
-
- /* Handle this outline entry */
- code = pdfi_loop_detector_mark(ctx);
- if (code < 0)
- goto exit1;
-
- /* Count the children (don't deref them, we don't want to leave them hanging around) */
- code = pdfi_dict_get_no_store_R(ctx, outline, "First", (pdf_obj **)&child);
- if (code < 0 || child->type != PDF_DICT) {
- /* TODO: flag a warning? */
- code = 0;
- goto exit;
- }
-
- if (child->object_num != 0) {
- code = pdfi_loop_detector_add_object(ctx, child->object_num);
- if (code < 0)
- goto exit;
- }
-
- do {
- (*count) ++;
-
- code = pdfi_dict_get_no_store_R(ctx, child, "Next", (pdf_obj **)&Next);
- if (code == gs_error_circular_reference) {
- code = 0;
- goto exit;
- }
- if (code == gs_error_undefined) {
- code = 0;
- break;
- }
-
- if (code < 0 || Next->type != PDF_DICT)
- goto exit;
-
- pdfi_countdown(child);
- child = Next;
- } while (true);
-
- exit:
- (void)pdfi_loop_detector_cleartomark(ctx);
- exit1:
- pdfi_countdown(child);
- pdfi_countdown(Next);
- return code;
-}
-
/* Mark the actual outline */
static int pdfi_doc_mark_the_outline(pdf_context *ctx, pdf_dict *outline)
{
int code = 0;
- int64_t count = 0;
- int64_t numkids = 0;
pdf_dict *tempdict = NULL;
uint64_t dictsize;
uint64_t index;
@@ -752,19 +722,6 @@ static int pdfi_doc_mark_the_outline(pdf_context *ctx, pdf_dict *outline)
/* Basically we only do /Count, /Title, /A, /C, /F
* The /First, /Last, /Next, /Parent get written magically by pdfwrite
*/
- /* Count how many kids there are */
- code = pdfi_doc_outline_count(ctx, outline, &numkids);
-
- /* If no kids, see if there is a Count */
- if (numkids == 0) {
- code = pdfi_dict_get_int(ctx, outline, "Count", &count);
- if (code < 0 && code != gs_error_undefined)
- goto exit;
- if (count < 0)
- count = -count;
- } else {
- count = numkids;
- }
/* Make a temporary copy of the outline dict */
dictsize = pdfi_dict_entries(outline);
@@ -792,14 +749,9 @@ static int pdfi_doc_mark_the_outline(pdf_context *ctx, pdf_dict *outline)
*/
code = pdfi_dict_delete_pair(ctx, tempdict, Key);
} else if (pdfi_name_is(Key, "A")) {
- code = pdfi_mark_modA(ctx, tempdict);
+ code = pdfi_pdfmark_modA(ctx, tempdict);
} else if (pdfi_name_is(Key, "Dest")) {
- code = pdfi_mark_modDest(ctx, tempdict);
- } else if (pdfi_name_is(Key, "Count")) {
- /* Delete any count we find in the dict
- * We will use our value below
- */
- code = pdfi_dict_delete_pair(ctx, tempdict, Key);
+ code = pdfi_pdfmark_modDest(ctx, tempdict);
}
if (code < 0)
goto exit;
@@ -815,15 +767,8 @@ static int pdfi_doc_mark_the_outline(pdf_context *ctx, pdf_dict *outline)
}
if (code < 0) goto exit;
- /* If count is non-zero, put in dictionary */
- if (count != 0) {
- code = pdfi_dict_put_int(ctx, tempdict, "Count", count);
- if (code < 0)
- goto exit;
- }
-
/* Write the pdfmark */
- code = pdfi_mark_from_dict(ctx, tempdict, NULL, "OUT");
+ code = pdfi_pdfmark_from_dict(ctx, tempdict, NULL, "OUT");
if (code < 0)
goto exit;
@@ -976,14 +921,18 @@ static int pdfi_doc_Outlines(pdf_context *ctx)
static int pdfi_doc_Info(pdf_context *ctx)
{
int code = 0;
- pdf_dict *Info = NULL;
+ pdf_dict *Info = NULL, *d = NULL;
pdf_dict *tempdict = NULL;
uint64_t dictsize;
uint64_t index;
pdf_name *Key = NULL;
pdf_obj *Value = NULL;
- code = pdfi_dict_knownget_type(ctx, ctx->Trailer, "Info", PDF_DICT, (pdf_obj **)&Info);
+ /* See comment in pdfi_read_Root() for details */
+ d = ctx->Trailer;
+ pdfi_countup(d);
+ code = pdfi_dict_knownget_type(ctx, d, "Info", PDF_DICT, (pdf_obj **)&Info);
+ pdfi_countdown(d);
if (code <= 0) {
/* TODO: flag a warning */
goto exit;
@@ -1003,7 +952,7 @@ static int pdfi_doc_Info(pdf_context *ctx)
if (pdfi_name_is(Key, "Author") || pdfi_name_is(Key, "Creator") ||
pdfi_name_is(Key, "Title") || pdfi_name_is(Key, "Subject") ||
pdfi_name_is(Key, "Keywords")) {
- code = pdfi_dict_put_obj(ctx, tempdict, (pdf_obj *)Key, Value);
+ code = pdfi_dict_put_obj(ctx, tempdict, (pdf_obj *)Key, Value, true);
if (code < 0)
goto exit;
}
@@ -1021,7 +970,7 @@ static int pdfi_doc_Info(pdf_context *ctx)
if (code < 0) goto exit;
/* Write the pdfmark */
- code = pdfi_mark_from_dict(ctx, tempdict, NULL, "DOCINFO");
+ code = pdfi_pdfmark_from_dict(ctx, tempdict, NULL, "DOCINFO");
exit:
pdfi_countdown(Key);
@@ -1037,14 +986,28 @@ static int pdfi_doc_PageLabels(pdf_context *ctx)
int code;
pdf_dict *PageLabels = NULL;
+ if (ctx->loop_detection) {
+ code = pdfi_loop_detector_mark(ctx);
+ if (code < 0)
+ return code;
+ }
+
code = pdfi_dict_knownget_type(ctx, ctx->Root, "PageLabels", PDF_DICT, (pdf_obj **)&PageLabels);
if (code <= 0) {
+ if (ctx->loop_detection)
+ (void)pdfi_loop_detector_cleartomark(ctx);
/* TODO: flag a warning */
goto exit;
}
+ if (ctx->loop_detection) {
+ code = pdfi_loop_detector_cleartomark(ctx);
+ if (code < 0)
+ goto exit;
+ }
+
/* This will send the PageLabels object as a 'pdfpagelabels' setdeviceparams */
- code = pdfi_mark_object(ctx, (pdf_obj *)PageLabels, "pdfpagelabels");
+ code = pdfi_pdfmark_object(ctx, (pdf_obj *)PageLabels, "pdfpagelabels");
if (code < 0)
goto exit;
@@ -1175,7 +1138,7 @@ static int pdfi_doc_EmbeddedFiles_Names(pdf_context *ctx, pdf_array *names)
code = pdfi_array_get_type(ctx, names, index+1, PDF_DICT, (pdf_obj **)&filespec);
if (code < 0) goto exit;
- code = pdfi_mark_embed_filespec(ctx, name, filespec);
+ code = pdfi_pdfmark_embed_filespec(ctx, name, filespec);
if (code < 0) goto exit;
pdfi_countdown(name);
diff --git a/pdf/pdf_errors.h b/pdf/pdf_errors.h
new file mode 100644
index 00000000..e52a6c74
--- /dev/null
+++ b/pdf/pdf_errors.h
@@ -0,0 +1,56 @@
+/* Copyright (C) 2022 Artifex Software, Inc.
+ All Rights Reserved.
+
+ This software is provided AS-IS with no warranty, either express or
+ implied.
+
+ This software is distributed under license and may not be copied,
+ modified or distributed except as expressly authorized under the terms
+ of the license contained in the file LICENSE in this distribution.
+
+ Refer to licensing information at http://www.artifex.com or contact
+ Artifex Software, Inc., 1305 Grant Avenue - Suite 200, Novato,
+ CA 94945, U.S.A., +1(415)492-9861, for further information.
+*/
+
+#ifndef PARAM
+#define PARAM(A,B) A
+#endif
+PARAM(E_PDF_NOERROR, "no error"),
+PARAM(E_PDF_NOHEADER, "no header detected"),
+PARAM(E_PDF_NOHEADERVERSION, "header lacks a version number"),
+PARAM(E_PDF_NOSTARTXREF, "no startxref token found"),
+PARAM(E_PDF_BADSTARTXREF, "startxref offset invalid"),
+PARAM(E_PDF_BADXREFSTREAM, "couldn't read hybrid file's XrefStm"),
+PARAM(E_PDF_BADXREF, "error in xref table"),
+PARAM(E_PDF_SHORTXREF, "too few entries in xref table"),
+PARAM(E_PDF_MISSINGENDSTREAM, "content stream lacks endstream"),
+PARAM(E_PDF_UNKNOWNFILTER, "request for unknown filter"),
+PARAM(E_PDF_MISSINGWHITESPACE, "missing white space after number"),
+PARAM(E_PDF_MALFORMEDNUMBER, "malformed number"),
+PARAM(E_PDF_UNESCAPEDSTRING, "unbalanced or unescaped character '(' in string"),
+PARAM(E_PDF_BADOBJNUMBER, "invalid object number"),
+PARAM(E_PDF_MISSINGENDOBJ, "object lacks an endobj"),
+PARAM(E_PDF_TOKENERROR, "error executing PDF token"),
+PARAM(E_PDF_KEYWORDTOOLONG, "potential token is too long"),
+PARAM(E_PDF_BADPAGETYPE, "Page object doe snot have /Page type"),
+PARAM(E_PDF_CIRCULARREF, "circular reference to indirect object"),
+PARAM(E_PDF_UNREPAIRABLE, "couldn't repair PDF file"),
+PARAM(E_PDF_REPAIRED, "PDF file was repaired"),
+PARAM(E_PDF_BADSTREAM, "error reading a stream"),
+PARAM(E_PDF_MISSINGOBJ, "obj token missing"),
+PARAM(E_PDF_BADPAGEDICT, "error in Page dictionary"),
+PARAM(E_PDF_OUTOFMEMORY, "out of memory"),
+PARAM(E_PDF_PAGEDICTERROR, "error reading page dictionary"),
+PARAM(E_PDF_STACKUNDERFLOWERROR, "stack underflow"),
+PARAM(E_PDF_BADSTREAMDICT, "error in stream dictionary"),
+PARAM(E_PDF_INHERITED_STREAM_RESOURCE, "stream inherited a resource"),
+PARAM(E_PDF_DEREF_FREE_OBJ, "counting down reference to freed object"),
+PARAM(E_PDF_INVALID_TRANS_XOBJECT, "error in transparency XObject"),
+PARAM(E_PDF_NO_SUBTYPE, "object lacks a required Subtype"),
+PARAM(E_PDF_IMAGECOLOR_ERROR, "error in image colour"),
+PARAM(E_DICT_SELF_REFERENCE, "dictionary contains a key which (indirectly) references the dictionary."),
+PARAM(E_IMAGE_MASKWITHCOLOR, "Image has both ImageMask and ColorSpace keys."),
+PARAM(E_PDF_INVALID_DECRYPT_LEN, "Invalid /Length in Encryption dictionary (not in range 40-128 or not a multiple of 8)."),
+
+#undef PARAM
diff --git a/pdf/pdf_fapi.c b/pdf/pdf_fapi.c
index df92acc4..3e4420c4 100644
--- a/pdf/pdf_fapi.c
+++ b/pdf/pdf_fapi.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 2019-2021 Artifex Software, Inc.
+/* Copyright (C) 2019-2022 Artifex Software, Inc.
All Rights Reserved.
This software is provided AS-IS with no warranty, either express or
@@ -550,7 +550,7 @@ pdfi_fapi_get_float(gs_fapi_font *ff, gs_fapi_font_feature var_id, int index, fl
break;
}
if (v->type == PDF_INT) {
- *ret = v->value.i;
+ *ret = (float)v->value.i;
}
else {
*ret = (float)v->value.d;
@@ -688,19 +688,24 @@ pdfi_fapi_get_gsubr(gs_fapi_font *ff, int index, byte *buf, int buf_length)
}
else {
int leniv = (pfont->data.lenIV > 0 ? pfont->data.lenIV : 0);
- pdf_string *subrstring;
+ pdf_string *subrstring = NULL;
code = pdfi_array_get(pdffont2->ctx, pdffont2->GlobalSubrs, index, (pdf_obj **)&subrstring);
if (code >= 0) {
- code = subrstring->length - leniv;
- if (buf && buf_length >= code) {
- if (ff->need_decrypt && pfont->data.lenIV >= 0) {
- decode_bytes(buf, subrstring->data, code + leniv, pfont->data.lenIV);
- }
- else {
- memcpy(buf, subrstring->data, code);
+ if (subrstring->type == PDF_STRING) {
+ code = subrstring->length - leniv;
+ if (buf && buf_length >= code) {
+ if (ff->need_decrypt && pfont->data.lenIV >= 0) {
+ decode_bytes(buf, subrstring->data, code + leniv, pfont->data.lenIV);
+ }
+ else {
+ memcpy(buf, subrstring->data, code);
+ }
}
}
+ else {
+ code = gs_note_error(gs_error_invalidfont);
+ }
pdfi_countdown(subrstring);
}
}
@@ -746,19 +751,27 @@ pdfi_fapi_get_subr(gs_fapi_font *ff, int index, byte *buf, int buf_length)
int leniv = (pfont->data.lenIV > 0 ? pfont->data.lenIV : 0);
pdf_string *subrstring;
- code = pdfi_array_get(pdffont2->ctx, pdffont2->Subrs, index, (pdf_obj **)&subrstring);
+ if (pdffont2->Subrs == NULL)
+ code = gs_note_error(gs_error_invalidfont);
+ else
+ code = pdfi_array_get(pdffont2->ctx, pdffont2->Subrs, index, (pdf_obj **)&subrstring);
if (code >= 0) {
- if (subrstring->length > 0) {
- code = subrstring->length - leniv;
- if (buf && buf_length >= code) {
- if (ff->need_decrypt && pfont->data.lenIV >= 0) {
- decode_bytes(buf, subrstring->data, code + leniv, pfont->data.lenIV);
- }
- else {
- memcpy(buf, subrstring->data, code);
+ if (subrstring->type == PDF_STRING) {
+ if (subrstring->length > 0) {
+ code = subrstring->length - leniv;
+ if (buf && buf_length >= code) {
+ if (ff->need_decrypt && pfont->data.lenIV >= 0) {
+ decode_bytes(buf, subrstring->data, code + leniv, pfont->data.lenIV);
+ }
+ else {
+ memcpy(buf, subrstring->data, code);
+ }
}
}
}
+ else {
+ code = gs_note_error(gs_error_invalidfont);
+ }
pdfi_countdown(subrstring);
}
}
@@ -914,7 +927,7 @@ pdfi_fapi_get_glyphname_or_cid(gs_text_enum_t *penum, gs_font_base * pbfont, gs_
else if (pbfont->FontType == ft_encrypted2) {
pdf_font_cff *cfffont = (pdf_font_cff *)pbfont->client_data;
pdf_name *glyphname = NULL;
- pdf_string *charstring = NULL;
+ pdf_string *charstr = NULL;
gs_const_string gname;
code = (*ctx->get_glyph_name)((gs_font *)pbfont, ccode, &gname);
@@ -928,22 +941,22 @@ pdfi_fapi_get_glyphname_or_cid(gs_text_enum_t *penum, gs_font_base * pbfont, gs_
pdfi_countdown(glyphname);
return code;
}
- code = pdfi_dict_get_by_key(cfffont->ctx, cfffont->CharStrings, glyphname, (pdf_obj **)&charstring);
+ code = pdfi_dict_get_by_key(cfffont->ctx, cfffont->CharStrings, glyphname, (pdf_obj **)&charstr);
pdfi_countdown(glyphname);
if (code < 0) {
- code = pdfi_dict_get(cfffont->ctx, cfffont->CharStrings, ".notdef", (pdf_obj **)&charstring);
+ code = pdfi_dict_get(cfffont->ctx, cfffont->CharStrings, ".notdef", (pdf_obj **)&charstr);
}
if (code < 0)
return code;
- I->ff.char_data = charstring->data;
- I->ff.char_data_len = charstring->length;
+ I->ff.char_data = charstr->data;
+ I->ff.char_data_len = charstr->length;
cr->client_char_code = 0;
cr->char_codes[0] = 0;
cr->is_glyph_index = true;
- pdfi_countdown(charstring);
+ pdfi_countdown(charstr);
return code;
}
else if (pbfont->FontType == ft_TrueType) {
@@ -1184,8 +1197,6 @@ pdfi_fapi_get_glyph(gs_fapi_font * ff, gs_glyph char_code, byte * buf, int buf_l
cstrlen = I->ff.char_data_len - leniv;
if (buf && buf_length >= cstrlen) {
- memcpy(buf, I->ff.char_data, I->ff.char_data_len);
-
if (ff->need_decrypt && pfont->data.lenIV >= 0)
decode_bytes(buf, I->ff.char_data, cstrlen + leniv, leniv);
else
@@ -1364,7 +1375,7 @@ static int
pdfi_fapi_build_char(gs_show_enum * penum, gs_gstate * pgs, gs_font * pfont,
gs_char chr, gs_glyph glyph)
{
- int code;
+ int code = 0;
gs_font_base *pbfont1;
gs_fapi_server *I;
@@ -1382,9 +1393,16 @@ pdfi_fapi_build_char(gs_show_enum * penum, gs_gstate * pgs, gs_font * pfont,
I->ff.client_font_data2 = cidpfont;
}
}
+ /* If between the font's creation and now another interpreter has driven FAPI (i.e. in a Postscript Begin/EndPage
+ context, the FAPI server data may end up set appropriately for the other interpreter, if that's happened, put
+ ours back before trying to interpret the glyph.
+ */
+ if (((gs_fapi_server *)pbfont1->FAPI)->ff.get_glyphname_or_cid != pdfi_fapi_get_glyphname_or_cid) {
+ code = pdfi_fapi_passfont((pdf_font *)pbfont1->client_data, 0, NULL, NULL, NULL, 0);
+ }
- code = gs_fapi_do_char((gs_font *)pbfont1, pgs, (gs_text_enum_t *) penum, NULL, false,
- NULL, NULL, chr, glyph, 0);
+ if (code >= 0)
+ code = gs_fapi_do_char((gs_font *)pbfont1, pgs, (gs_text_enum_t *) penum, NULL, false, NULL, NULL, chr, glyph, 0);
return (code);
}
@@ -1452,9 +1470,7 @@ pdfi_fapi_passfont(pdf_font *font, int subfont, char *fapi_request,
/* doesn't really matter for non-ttf */
*local_pdf_ff_stub.ttf_cmap_req = *nonsymbolic_req;
}
- /* The plfont should contain everything we need, but setting the client data for the server
- * to pbfont makes as much sense as setting it to NULL.
- */
+
gs_fapi_set_servers_client_data(pbfont->memory,
(const gs_fapi_font *)&local_pdf_ff_stub,
(gs_font *)pbfont);
diff --git a/pdf/pdf_file.c b/pdf/pdf_file.c
index 214d448d..5698866e 100644
--- a/pdf/pdf_file.c
+++ b/pdf/pdf_file.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 2018-2021 Artifex Software, Inc.
+/* Copyright (C) 2018-2022 Artifex Software, Inc.
All Rights Reserved.
This software is provided AS-IS with no warranty, either express or
@@ -57,6 +57,8 @@
# include "sjpx.h"
#endif
+extern const uint file_default_buffer_size;
+
static void pdfi_close_filter_chain(pdf_context *ctx, stream *s, stream *target);
/* Utility routine to create a pdf_c_stream object */
@@ -102,6 +104,9 @@ pdfi_filter_open(uint buffer_size,
if (sst == NULL)
return_error(gs_error_VMerror);
}
+ if (buffer_size < 128)
+ buffer_size = file_default_buffer_size;
+
code = file_open_stream((char *)0, 0, "r", buffer_size, &s,
(gx_io_device *)0, (iodev_proc_fopen_t)0, mem);
if (code < 0) {
@@ -232,7 +237,7 @@ int pdfi_apply_Arc4_filter(pdf_context *ctx, pdf_string *Key, pdf_c_stream *sour
stream *new_s;
int min_size = 2048;
- s_arcfour_set_key(&state, (const unsigned char *)Key->data, Key->length);
+ s_arcfour_set_key(&state, (const unsigned char *)Key->data, Key->length); /* lgtm [cpp/weak-cryptographic-algorithm] */
code = pdfi_filter_open(min_size, &s_filter_read_procs, (const stream_template *)&s_arcfour_template, (const stream_state *)&state, ctx->memory->non_gc_memory, &new_s);
if (code < 0)
@@ -315,6 +320,7 @@ static int pdfi_Flate_filter(pdf_context *ctx, pdf_dict *d, stream *source, stre
stream_zlib_state zls;
uint min_size = 2048;
int code;
+ stream *Flate_source = NULL;
memset(&zls, 0, sizeof(zls));
@@ -329,9 +335,10 @@ static int pdfi_Flate_filter(pdf_context *ctx, pdf_dict *d, stream *source, stre
source = *new_stream;
if (d && d->type == PDF_DICT) {
+ Flate_source = (*new_stream)->strm;
code = pdfi_Predictor_filter(ctx, d, source, new_stream);
if (code < 0)
- pdfi_close_filter_chain(ctx, source, NULL);
+ pdfi_close_filter_chain(ctx, source, Flate_source);
}
return code;
}
@@ -344,7 +351,7 @@ pdfi_JBIG2Decode_filter(pdf_context *ctx, pdf_dict *dict, pdf_dict *decode,
uint min_size = s_jbig2decode_template.min_out_size;
int code;
pdf_stream *Globals = NULL;
- byte *buf;
+ byte *buf = NULL;
int64_t buflen;
void *globalctx;
@@ -367,8 +374,6 @@ pdfi_JBIG2Decode_filter(pdf_context *ctx, pdf_dict *dict, pdf_dict *decode,
goto cleanupExit;
s_jbig2decode_set_global_data((stream_state*)&state, NULL, globalctx);
-
- gs_free_object(ctx->memory, buf, "pdfi_JBIG2Decode_filter (Globals buf)");
}
}
}
@@ -383,6 +388,7 @@ pdfi_JBIG2Decode_filter(pdf_context *ctx, pdf_dict *dict, pdf_dict *decode,
code = 0;
cleanupExit:
+ gs_free_object(ctx->memory, buf, "pdfi_JBIG2Decode_filter (Globals buf)");
pdfi_countdown(Globals);
return code;
}
@@ -1058,6 +1064,9 @@ int pdfi_filter(pdf_context *ctx, pdf_stream *stream_obj, pdf_c_stream *source,
if (ctx->encryption.is_encrypted && !inline_image) {
int64_t Length;
+ if (ctx->encryption.StmF == CRYPT_IDENTITY)
+ return pdfi_filter_no_decryption(ctx, stream_obj, source, new_stream, inline_image);
+
code = pdfi_dict_get_type(ctx, stream_dict, "StreamKey", PDF_STRING, (pdf_obj **)&StreamKey);
if (code == gs_error_undefined) {
code = pdfi_compute_objkey(ctx, (pdf_obj *)stream_dict, &StreamKey);
@@ -1084,7 +1093,7 @@ int pdfi_filter(pdf_context *ctx, pdf_stream *stream_obj, pdf_c_stream *source,
*/
Length = pdfi_stream_length(ctx, stream_obj);
- if (Length <= 0 || ctx->encryption.StrF == CRYPT_IDENTITY) {
+ if (Length <= 0) {
/* Don't treat as an encrypted stream if Length is 0 */
pdfi_countdown(StreamKey);
return pdfi_filter_no_decryption(ctx, stream_obj, source, new_stream, inline_image);
@@ -1146,7 +1155,7 @@ error:
* NB! The EODString can't be tracked by the stream code. The caller is responsible for
* managing the lifetime of this object. It must remain valid until the filter is closed.
*/
-int pdfi_apply_SubFileDecode_filter(pdf_context *ctx, int EODCount, pdf_string *EODString, pdf_c_stream *source, pdf_c_stream **new_stream, bool inline_image)
+int pdfi_apply_SubFileDecode_filter(pdf_context *ctx, int EODCount, const char *EODString, pdf_c_stream *source, pdf_c_stream **new_stream, bool inline_image)
{
int code;
stream_SFD_state state;
@@ -1161,9 +1170,8 @@ int pdfi_apply_SubFileDecode_filter(pdf_context *ctx, int EODCount, pdf_string *
s_SFD_template.set_defaults((stream_state *)&state);
if (EODString != NULL) {
- state.eod.data = EODString->data;
- state.eod.size = EODString->length;
- min_size = EODString->length;
+ state.eod.data = (const byte *)EODString;
+ state.eod.size = strlen(EODString);
}
if (EODCount > 0)
@@ -1176,6 +1184,12 @@ int pdfi_apply_SubFileDecode_filter(pdf_context *ctx, int EODCount, pdf_string *
return code;
code = pdfi_alloc_stream(ctx, new_s, source->s, new_stream);
+ if (code < 0) {
+ gs_free_object(ctx->memory->non_gc_memory, new_s->state, "pdfi_apply_SubFileDecode_filter");
+ gs_free_object(ctx->memory->non_gc_memory, new_s->cbuf, "pdfi_apply_SubFileDecode_filter");
+ gs_free_object(ctx->memory->non_gc_memory, new_s, "pdfi_apply_SubFileDecode_filter");
+ return code;
+ }
new_s->strm = source->s;
if (source->unread_size != 0) {
(*new_stream)->unread_size = source->unread_size;
@@ -1277,17 +1291,18 @@ int pdfi_open_memory_stream_from_filtered_stream(pdf_context *ctx, pdf_stream *s
code = pdfi_filter(ctx, stream_obj, compressed_stream, &decompressed_stream, false);
if (code < 0) {
pdfi_close_memory_stream(ctx, *Buffer, *new_pdf_stream);
- gs_free_object(ctx->memory, *Buffer, "pdfi_open_memory_stream_from_filtered_stream");
*Buffer = NULL;
*new_pdf_stream = NULL;
return code;
}
do {
- byte b;
- code = pdfi_read_bytes(ctx, &b, 1, 1, decompressed_stream);
+ byte b[512];
+ code = pdfi_read_bytes(ctx, (byte *)&b, 1, 512, decompressed_stream);
if (code <= 0)
break;
- decompressed_length++;
+ decompressed_length+=code;
+ if (code < 512)
+ break;
} while (true);
pdfi_close_file(ctx, decompressed_stream);
@@ -1359,10 +1374,14 @@ int pdfi_open_memory_stream_from_memory(pdf_context *ctx, unsigned int size, byt
int pdfi_close_memory_stream(pdf_context *ctx, byte *Buffer, pdf_c_stream *source)
{
- sclose(source->s);
gs_free_object(ctx->memory, Buffer, "open memory stream(buffer)");
- gs_free_object(ctx->memory, source->s, "open memory stream(stream)");
- gs_free_object(ctx->memory, source, "open memory stream(pdf_stream)");
+ if (source != NULL) {
+ if (source->s != NULL) {
+ sclose(source->s);
+ gs_free_object(ctx->memory, source->s, "open memory stream(stream)");
+ }
+ gs_free_object(ctx->memory, source, "open memory stream(pdf_stream)");
+ }
return 0;
}
@@ -1418,25 +1437,58 @@ gs_offset_t pdfi_tell(pdf_c_stream *s)
return stell(s->s);
}
+int pdfi_unread_byte(pdf_context *ctx, pdf_c_stream *s, char c)
+{
+ if (s->unread_size == UNREAD_BUFFER_SIZE)
+ return_error(gs_error_ioerror);
+
+ s->unget_buffer[s->unread_size++] = c;
+
+ return 0;
+}
+
int pdfi_unread(pdf_context *ctx, pdf_c_stream *s, byte *Buffer, uint32_t size)
{
if (size + s->unread_size > UNREAD_BUFFER_SIZE)
return_error(gs_error_ioerror);
- if (s->unread_size) {
- uint32_t index = s->unread_size - 1;
-
- do {
- s->unget_buffer[size + index] = s->unget_buffer[index];
- } while(index--);
+ Buffer += size;
+ while (size) {
+ s->unget_buffer[s->unread_size++] = *--Buffer;
+ size--;
}
- memcpy(s->unget_buffer, Buffer, size);
- s->unread_size += size;
-
return 0;
}
+int pdfi_read_byte(pdf_context *ctx, pdf_c_stream *s)
+{
+ int32_t code;
+
+ if (s->eof && s->unread_size == 0)
+ return EOFC;
+
+ if (s->unread_size)
+ return (byte)s->unget_buffer[--s->unread_size];
+
+ /* TODO the Ghostscript code uses sbufptr(s) to avoid a memcpy
+ * at some point we should modify this code to do so as well.
+ */
+ code = spgetc(s->s);
+ if (code == EOFC) {
+ s->eof = true;
+ return EOFC;
+ } else if (code == gs_error_ioerror) {
+ pdfi_set_error(ctx, code, "sgets", E_PDF_BADSTREAM, "pdfi_read_bytes", NULL);
+ s->eof = true;
+ return EOFC;
+ } else if(code == ERRC) {
+ return ERRC;
+ }
+ return (int)code;
+}
+
+
int pdfi_read_bytes(pdf_context *ctx, byte *Buffer, uint32_t size, uint32_t count, pdf_c_stream *s)
{
uint32_t i = 0, total = size * count;
@@ -1447,38 +1499,32 @@ int pdfi_read_bytes(pdf_context *ctx, byte *Buffer, uint32_t size, uint32_t coun
return 0;
if (s->unread_size) {
- if (s->unread_size >= total) {
- memcpy(Buffer, s->unget_buffer, total);
- for(i=0;i < s->unread_size - total;i++) {
- s->unget_buffer[i] = s->unget_buffer[i + total];
- }
- s->unread_size -= total;
- return total;
- } else {
- memcpy(Buffer, s->unget_buffer, s->unread_size);
- total -= s->unread_size;
- Buffer += s->unread_size;
- i = s->unread_size;
- s->unread_size = 0;
- if (s->eof)
- return i;
+ i = s->unread_size;
+ if (i >= total)
+ i = total;
+ bytes = i;
+ while (bytes) {
+ *Buffer++ = s->unget_buffer[--s->unread_size];
+ bytes--;
}
+ total -= i;
+ if (total == 0 || s->eof)
+ return i;
}
- if (total) {
- /* TODO the Ghostscript code uses sbufptr(s) to avoid a memcpy
- * at some point we should modify this code to do so as well.
- */
- code = sgets(s->s, Buffer, total, &bytes);
- if (code == EOFC) {
- s->eof = true;
- } else if (code == gs_error_ioerror) {
- pdfi_set_error(ctx, code, "sgets", E_PDF_BADSTREAM, "pdfi_read_bytes", NULL);
- s->eof = true;
- } else if(code == ERRC) {
- bytes = ERRC;
- } else {
- bytes = bytes + i;
- }
+
+ /* TODO the Ghostscript code uses sbufptr(s) to avoid a memcpy
+ * at some point we should modify this code to do so as well.
+ */
+ code = sgets(s->s, Buffer, total, &bytes);
+ if (code == EOFC) {
+ s->eof = true;
+ } else if (code == gs_error_ioerror) {
+ pdfi_set_error(ctx, code, "sgets", E_PDF_BADSTREAM, "pdfi_read_bytes", NULL);
+ s->eof = true;
+ } else if(code == ERRC) {
+ bytes = ERRC;
+ } else {
+ bytes = bytes + i;
}
return bytes;
@@ -1495,8 +1541,6 @@ pdfi_stream_to_buffer(pdf_context *ctx, pdf_stream *stream_obj, byte **buf, int6
byte *Buffer = NULL;
int code = 0;
int64_t buflen = 0;
- int bytes;
- char c;
gs_offset_t savedoffset;
pdf_c_stream *stream;
bool filtered;
@@ -1526,12 +1570,11 @@ pdfi_stream_to_buffer(pdf_context *ctx, pdf_stream *stream_obj, byte **buf, int6
if (code < 0) {
goto exit;
}
- /* Find out how big it is */
- do {
- bytes = sfread(&c, 1, 1, stream->s);
- if (bytes > 0)
- buflen++;
- } while (bytes >= 0);
+ while (seofp(stream->s) != true && serrorp(stream->s) != true) {
+ (void)sbufskip(stream->s, sbufavailable(stream->s));
+ s_process_read_buf(stream->s);
+ buflen += sbufavailable(stream->s);
+ }
pdfi_close_file(ctx, stream);
} else {
buflen = pdfi_stream_length(ctx, stream_obj);
@@ -1548,6 +1591,8 @@ pdfi_stream_to_buffer(pdf_context *ctx, pdf_stream *stream_obj, byte **buf, int6
goto exit;
if (filtered || ctx->encryption.is_encrypted) {
code = pdfi_filter(ctx, stream_obj, ctx->main_stream, &stream, false);
+ if (code < 0)
+ goto exit;
sfread(Buffer, 1, buflen, stream->s);
pdfi_close_file(ctx, stream);
} else {
diff --git a/pdf/pdf_file.h b/pdf/pdf_file.h
index a02d7f75..d1fafbb6 100644
--- a/pdf/pdf_file.h
+++ b/pdf/pdf_file.h
@@ -1,4 +1,4 @@
-/* Copyright (C) 2018-2021 Artifex Software, Inc.
+/* Copyright (C) 2018-2022 Artifex Software, Inc.
All Rights Reserved.
This software is provided AS-IS with no warranty, either express or
@@ -85,12 +85,14 @@ int pdfi_filter(pdf_context *ctx, pdf_stream *stream_obj, pdf_c_stream *source,
int pdfi_filter_no_decryption(pdf_context *ctx, pdf_stream *d, pdf_c_stream *source, pdf_c_stream **new_stream, bool inline_image);
void pdfi_close_file(pdf_context *ctx, pdf_c_stream *s);
int pdfi_read_bytes(pdf_context *ctx, byte *Buffer, uint32_t size, uint32_t count, pdf_c_stream *s);
+int pdfi_read_byte(pdf_context *ctx, pdf_c_stream *s);
int pdfi_unread(pdf_context *ctx, pdf_c_stream *s, byte *Buffer, uint32_t size);
+int pdfi_unread_byte(pdf_context *ctx, pdf_c_stream *s, char c);
int pdfi_seek(pdf_context *ctx, pdf_c_stream *s, gs_offset_t offset, uint32_t origin);
gs_offset_t pdfi_unread_tell(pdf_context *ctx);
gs_offset_t pdfi_tell(pdf_c_stream *s);
-int pdfi_apply_SubFileDecode_filter(pdf_context *ctx, int EODCount, pdf_string *EODString, pdf_c_stream *source, pdf_c_stream **new_stream, bool inline_image);
+int pdfi_apply_SubFileDecode_filter(pdf_context *ctx, int EODCount, const char *EODString, pdf_c_stream *source, pdf_c_stream **new_stream, bool inline_image);
int pdfi_open_memory_stream(pdf_context *ctx, unsigned int size, byte **Buffer, pdf_c_stream *source, pdf_c_stream **new_stream);
int pdfi_close_memory_stream(pdf_context *ctx, byte *Buffer, pdf_c_stream *source);
int pdfi_open_memory_stream_from_stream(pdf_context *ctx, unsigned int size, byte **Buffer, pdf_c_stream *source, pdf_c_stream **new_pdf_stream, bool retain_ownership);
diff --git a/pdf/pdf_fmap.c b/pdf/pdf_fmap.c
index 8fabb757..ee05af1c 100644
--- a/pdf/pdf_fmap.c
+++ b/pdf/pdf_fmap.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 2020-2021 Artifex Software, Inc.
+/* Copyright (C) 2020-2022 Artifex Software, Inc.
All Rights Reserved.
This software is provided AS-IS with no warranty, either express or
@@ -20,9 +20,11 @@
#include "pdf_int.h"
#include "pdf_types.h"
+#include "pdf_array.h"
#include "pdf_dict.h"
#include "pdf_stack.h"
#include "pdf_file.h"
+#include "pdf_misc.h"
#include "pdf_fmap.h"
typedef struct
@@ -31,33 +33,44 @@ typedef struct
const char *mappedname;
} pdfi_custom_fmap_entry;
-pdfi_custom_fmap_entry pdfi_custom_fmap_enties[] =
+pdfi_custom_fmap_entry pdfi_custom_fmap_entries[] =
{
{"Helv", "Helvetica"},
{NULL, NULL}
};
+static inline bool pdfi_fmap_file_exists(pdf_context *ctx, pdf_string *fname)
+{
+ char nm[gp_file_name_sizeof];
+ struct stat buf;
+ int code = gs_error_invalidfileaccess;
+
+ if (fname->length < gp_file_name_sizeof) {
+ memcpy(nm, fname->data, fname->length);
+ nm[fname->length] = '\0';
+ code = gp_stat(ctx->memory, (const char *)nm, &buf);
+ }
+ return code >= 0;
+}
+
static int
-pdf_fontmap_open_file(pdf_context *ctx, byte **buf, int *buflen)
+pdf_fontmap_open_file(pdf_context *ctx, const char *mapfilename, byte **buf, int *buflen)
{
int code = 0;
stream *s;
char fname[gp_file_name_sizeof];
const char *path_pfx = "Init/";
- const char *fmap_default = "Fontmap.GS";
- const char *prestring = "<<\n";
- const char *poststring = ">>\nendstream\n";
- const int prestringlen = strlen(prestring);
+ const char *poststring = "\nendstream";
const int poststringlen = strlen(poststring);
fname[0] = '\0';
- if (strlen(path_pfx) + strlen(fmap_default) + 1 > gp_file_name_sizeof)
+ if (strlen(path_pfx) + strlen(mapfilename) + 1 > gp_file_name_sizeof)
return_error(gs_error_invalidfileaccess);
- code = pdfi_open_resource_file(ctx, fmap_default, strlen(fmap_default), &s);
+ code = pdfi_open_resource_file(ctx, mapfilename, strlen(mapfilename), &s);
if (code < 0) {
strncat(fname, path_pfx, strlen(path_pfx));
- strncat(fname, (char *)fmap_default, strlen(fmap_default));
+ strncat(fname, (char *)mapfilename, strlen(mapfilename));
code = pdfi_open_resource_file(ctx, fname, strlen(fname), &s);
}
@@ -66,14 +79,14 @@ pdf_fontmap_open_file(pdf_context *ctx, byte **buf, int *buflen)
sfseek(s, 0, SEEK_END);
*buflen = sftell(s);
sfseek(s, 0, SEEK_SET);
- *buf = gs_alloc_bytes(ctx->memory, *buflen + prestringlen + poststringlen, "pdf_cmap_open_file(buf)");
+ *buf = gs_alloc_bytes(ctx->memory, *buflen + poststringlen, "pdf_cmap_open_file(buf)");
if (*buf != NULL) {
- memcpy(*buf, prestring, prestringlen);
- sfread((*buf) + prestringlen, 1, *buflen, s);
- memcpy((*buf) + *buflen + prestringlen, poststring, poststringlen);
- *buflen += prestringlen + poststringlen;
+ sfread((*buf), 1, *buflen, s);
+ memcpy((*buf) + *buflen, poststring, poststringlen);
+ *buflen += poststringlen;
/* This is naff, but works for now
When parsing Fontmap in PS, ";" is defined as "def"
+ We don't need either, because the dictionary is built from the stack.
*/
for (i = 0; i < *buflen - 1; i++) {
if ((*buf)[i] == ';') {
@@ -90,53 +103,95 @@ pdf_fontmap_open_file(pdf_context *ctx, byte **buf, int *buflen)
}
static int
-pdf_make_fontmap(pdf_context *ctx)
+pdf_make_fontmap(pdf_context *ctx, const char *default_fmapname, int cidfmap)
{
byte *fmapbuf = NULL;
int code, fmapbuflen;
pdf_c_stream *fmapstr = NULL;
pdf_stream fakedict = {0};
- pdfi_custom_fmap_entry *pcfe = pdfi_custom_fmap_enties;
- int i;
-
+ pdfi_custom_fmap_entry *pcfe = pdfi_custom_fmap_entries;
+ int i, j = 0;
+ char fmapname[gp_file_name_sizeof];
pdf_c_stream fakemainstream = {0};
+ int stacksize = pdfi_count_stack(ctx);
+
+ strncpy(fmapname, default_fmapname, strlen(default_fmapname) + 1);
- code = pdf_fontmap_open_file(ctx, &fmapbuf, &fmapbuflen);
+ code = pdfi_mark_stack(ctx, PDF_DICT_MARK);
if (code < 0)
- return code;
+ goto done;
- code = pdfi_open_memory_stream_from_memory(ctx, fmapbuflen, fmapbuf, &fmapstr, true);
- if (code >= 0) {
- int stacksize = pdfi_count_stack(ctx);
+ do {
+ if (j < ctx->num_fontmapfiles) {
+ memcpy(fmapname, ctx->fontmapfiles[j].data, ctx->fontmapfiles[j].size);
+ fmapname[ctx->fontmapfiles[j].size] = '\0';
+ }
- if (ctx->main_stream == NULL) {
- ctx->main_stream = &fakemainstream;
+ code = pdf_fontmap_open_file(ctx, (const char *)fmapname, &fmapbuf, &fmapbuflen);
+ if (code < 0) {
+ if (ctx->args.QUIET != true) {
+ (void)outwrite(ctx->memory, "Warning: ", 9);
+ if (cidfmap)
+ (void)outwrite(ctx->memory, "cidfmap file ", 13);
+ else
+ (void)outwrite(ctx->memory, "Fontmap file \"", 14);
+ (void)outwrite(ctx->memory, fmapname, strlen(fmapname));
+ (void)outwrite(ctx->memory, "\" not found.\n", 13);
+ code = 0;
+ }
}
- code = pdfi_interpret_content_stream(ctx, fmapstr, &fakedict, NULL);
- if (ctx->main_stream == &fakemainstream) {
- ctx->main_stream = NULL;
+ else {
+ code = pdfi_open_memory_stream_from_memory(ctx, fmapbuflen, fmapbuf, &fmapstr, true);
+ if (code >= 0) {
+
+ if (ctx->main_stream == NULL) {
+ ctx->main_stream = &fakemainstream;
+ }
+
+ code = pdfi_interpret_content_stream(ctx, fmapstr, &fakedict, NULL);
+ if (ctx->main_stream == &fakemainstream) {
+ ctx->main_stream = NULL;
+ }
+ gs_free_object(ctx->memory, fmapbuf, "pdf_make_fontmap(fmapbuf)");
+ }
}
- if (pdfi_count_stack(ctx) > stacksize && ctx->stack_top[-1]->type == PDF_DICT) {
- ctx->pdffontmap = (pdf_dict *)ctx->stack_top[-1];
- pdfi_countup(ctx->pdffontmap);
+ j++;
+ } while(j < ctx->num_fontmapfiles && cidfmap == false && code >= 0);
+
+ if (code >= 0) {
+ if (pdfi_count_stack(ctx) > stacksize) {
+ code = pdfi_dict_from_stack(ctx, 0, 0, true);
+ if (code < 0)
+ goto done;
+
+ if (cidfmap == true) {
+ ctx->pdfcidfmap = (pdf_dict *)ctx->stack_top[-1];
+ pdfi_countup(ctx->pdfcidfmap);
+ }
+ else {
+ ctx->pdffontmap = (pdf_dict *)ctx->stack_top[-1];
+ pdfi_countup(ctx->pdffontmap);
+ }
pdfi_pop(ctx, 1);
code = 0;
/* Add our internal aliases to the fontmap. */
- for (i = 0; pcfe[i].keyname != NULL; i++) {
- pdf_obj *value;
- bool k;
-
- /* We don't want to *replace* entries */
- if (pdfi_dict_known(ctx, ctx->pdffontmap, pcfe[i].keyname, &k) >= 0
- && k != true) {
- code = pdfi_name_alloc(ctx, (byte *)pcfe[i].mappedname, strlen(pcfe[i].mappedname), &value);
- if (code < 0)
- continue;
- pdfi_countup(value);
- /* If dict_put throws an error, we just carry on - hence the (void) */
- (void)pdfi_dict_put(ctx, ctx->pdffontmap, pcfe[i].keyname, value);
- pdfi_countdown(value);
+ if (cidfmap == false) {
+ for (i = 0; pcfe[i].keyname != NULL; i++) {
+ pdf_obj *value;
+ bool k;
+
+ /* We don't want to *replace* entries */
+ if (pdfi_dict_known(ctx, ctx->pdffontmap, pcfe[i].keyname, &k) >= 0
+ && k != true) {
+ code = pdfi_name_alloc(ctx, (byte *)pcfe[i].mappedname, strlen(pcfe[i].mappedname), &value);
+ if (code < 0)
+ continue;
+ pdfi_countup(value);
+ /* If dict_put throws an error, we just carry on - hence the (void) */
+ (void)pdfi_dict_put(ctx, ctx->pdffontmap, pcfe[i].keyname, value);
+ pdfi_countdown(value);
+ }
}
}
}
@@ -144,38 +199,821 @@ pdf_make_fontmap(pdf_context *ctx)
code = gs_note_error(gs_error_syntaxerror);
}
}
- gs_free_object(ctx->memory, fmapbuf, "pdf_make_fontmap(fmapbuf)");
+done:
+ /* We always want to leave here with a valid map dictionary
+ even if it's empty
+ */
+ if (cidfmap == true) {
+ if (ctx->pdfcidfmap == NULL) {
+ code = pdfi_dict_alloc(ctx, 0, &ctx->pdfcidfmap);
+ pdfi_countup(ctx->pdfcidfmap);
+ }
+ }
+ else {
+ if (ctx->pdffontmap == NULL) {
+ code = pdfi_dict_alloc(ctx, 0, &ctx->pdffontmap);
+ pdfi_countup(ctx->pdffontmap);
+ }
+ }
+ pdfi_clearstack(ctx);
+ return code;
+}
+
+enum {
+ no_type_font = -1,
+ type0_font = 0,
+ type1_font = 1,
+ cff_font = 2,
+ type3_font = 3,
+ tt_font = 42
+};
+
+/* For font file scanning we want to treat OTTO as TTF (rather than, for "normal"
+ font loading, treat OTTO as CFF, hence we need a different type picker.
+ */
+static int pdfi_font_scan_type_picker(byte *buf, int64_t buflen)
+{
+#define MAKEMAGIC(a, b, c, d) (((a) << 24) | ((b) << 16) | ((c) << 8) | (d))
+
+ if (buflen >= 4) {
+ if (MAKEMAGIC(buf[0], buf[1], buf[2], buf[3]) == MAKEMAGIC(0, 1, 0, 0)
+ || MAKEMAGIC(buf[0], buf[1], buf[2], buf[3]) == MAKEMAGIC('t', 'r', 'u', 'e')
+ || MAKEMAGIC(buf[0], buf[1], buf[2], buf[3]) == MAKEMAGIC('t', 't', 'c', 'f')) {
+ return tt_font;
+ }
+ else if (MAKEMAGIC(buf[0], buf[1], buf[2], buf[3]) == MAKEMAGIC('O', 'T', 'T', 'O')) {
+ return tt_font;
+ }
+ else if (MAKEMAGIC(buf[0], buf[1], buf[2], 0) == MAKEMAGIC('%', '!', 'P', 0)) {
+ return type1_font; /* pfa */
+ }
+ else if (MAKEMAGIC(buf[0], buf[1], buf[2], 0) == MAKEMAGIC(1, 0, 4, 0)) {
+ return cff_font; /* 1C/CFF */
+ }
+ else if (MAKEMAGIC(buf[0], buf[1], 0, 0) == MAKEMAGIC(128, 1, 0, 0)) {
+ return type1_font; /* pfb */
+ }
+ }
+ return no_type_font;
+#undef MAKEMAGIC
+}
+
+static int pdfi_add__to_native_fontmap(pdf_context *ctx, const char *fontname, const char *filepath, const int index)
+{
+ int code;
+ pdf_string *fpstr;
+
+ if (ctx->pdfnativefontmap == NULL) {
+ /* 32 is just an arbitrary starting point */
+ code = pdfi_dict_alloc(ctx, 32, &ctx->pdfnativefontmap);
+ if (code < 0)
+ return code;
+ pdfi_countup(ctx->pdfnativefontmap);
+ }
+ /* index == -1 is a file with a single font in it */
+ if (index == -1) {
+ code = pdfi_object_alloc(ctx, PDF_STRING, strlen(filepath), (pdf_obj **)&fpstr);
+ if (code < 0)
+ return code;
+ pdfi_countup(fpstr);
+ memcpy(fpstr->data, filepath, fpstr->length);
+ code = pdfi_dict_put(ctx, ctx->pdfnativefontmap, fontname, (pdf_obj *)fpstr);
+ pdfi_countdown(fpstr);
+ }
+ else {
+ pdf_dict *recdict;
+ pdf_num *ind;
+
+ code = pdfi_object_alloc(ctx, PDF_DICT, 2, (pdf_obj **)&recdict);
+ if (code < 0)
+ return code;
+ pdfi_countup(recdict);
+
+ code = pdfi_object_alloc(ctx, PDF_STRING, strlen(filepath), (pdf_obj **)&fpstr);
+ if (code < 0) {
+ pdfi_countdown(recdict);
+ return code;
+ }
+ pdfi_countup(fpstr);
+ memcpy(fpstr->data, filepath, fpstr->length);
+ code = pdfi_dict_put(ctx, recdict, "Path", (pdf_obj *)fpstr);
+ pdfi_countdown(fpstr);
+ if (code < 0) {
+ pdfi_countdown(recdict);
+ return code;
+ }
+
+ code = pdfi_object_alloc(ctx, PDF_INT, 0, (pdf_obj **)&ind);
+ if (code < 0) {
+ pdfi_countdown(recdict);
+ return code;
+ }
+ ind->value.i = index;
+ pdfi_countup(ind);
+ code = pdfi_dict_put(ctx, recdict, "Index", (pdf_obj *)ind);
+ pdfi_countdown(ind);
+ if (code < 0) {
+ pdfi_countdown(recdict);
+ return code;
+ }
+ code = pdfi_dict_put(ctx, ctx->pdfnativefontmap, fontname, (pdf_obj *)recdict);
+ pdfi_countdown(recdict);
+ }
+
return code;
}
+static inline int
+pdfi_end_ps_token(int c)
+{
+ return (c == 0x20) || (c == 0x9) || (c == 0xD) || (c == 0xA) || (c == '/') || (c == '\0');
+}
+
+/* Naive way to find a Type 1 /FontName key */
+static int pdfi_type1_add_to_native_map(pdf_context *ctx, stream *f, char *fname, char *pname, int pname_size)
+{
+ gs_string buf;
+ uint count = 0;
+ int code = gs_error_undefined;
+ char *namestr = NULL, *enamestr;
+ char *typestr;
+ bool pin_eol = false; /* initialised just to placate coverity */
+ int type = -1;
+ buf.data = (byte *)pname;
+ buf.size = pname_size;
+
+ /* It's not an absolute requirement, but it is a de facto standard that
+ /FontType and /FontName keys start in column 0 of their lines
+ */
+ while ((code = sreadline(f, NULL, NULL, NULL, &buf, NULL, &count, &pin_eol, NULL)) >= 0) {
+ if (buf.size > 9 && memcmp(buf.data, "/FontName", 9) == 0) {
+ namestr = (char *)buf.data + 9;
+ while (pdfi_end_ps_token(*namestr))
+ namestr++;
+ if (*namestr != '\0') {
+ while(*namestr == 0x20 || *namestr == 0x9)
+ namestr++;
+ if (*namestr == '/')
+ namestr++;
+ enamestr = namestr;
+ while(!pdfi_end_ps_token((int)*enamestr))
+ enamestr++;
+ count = enamestr - namestr > pname_size - 1 ? pname_size - 1 : enamestr - namestr;
+ memcpy(pname, namestr, count);
+ pname[count] = '\0';
+ buf.data += count + 1;
+ buf.size -= count + 1;
+ if (type == 1)
+ break;
+ }
+ }
+ else if (buf.size > 9 && memcmp(buf.data, "/FontType", 9) == 0) {
+ typestr = (char *)buf.data + 9;
+ while (pdfi_end_ps_token(*typestr))
+ typestr++;
+ if (*typestr != '\0') {
+ while(*typestr == 0x20 || *typestr == 0x9)
+ namestr++;
+ if (*typestr == '/')
+ typestr++;
+ enamestr = typestr;
+ while(!pdfi_end_ps_token((int)*enamestr))
+ enamestr++;
+ count = enamestr - typestr > pname_size - 1 ? pname_size - 1 : enamestr - typestr;
+ if (count == 1 && *typestr == '1') {
+ type = 1;
+ if (namestr != NULL)
+ break;
+ }
+ }
+ }
+ else if (buf.size >= 17 && memcmp(buf.data, "currentfile eexec", 17) == 0)
+ break;
+ count = 0;
+ }
+ if (type == 1 && namestr != NULL) {
+ code = pdfi_add__to_native_fontmap(ctx, (const char *)pname, (const char *)fname, -1);
+ }
+ return code < 0 ? code : gs_error_handled;
+}
+
+static inline int
+u16(const byte *p)
+{
+ return (p[0] << 8) | p[1];
+}
+
+static inline int
+sru16(stream *s)
+{
+ byte p[2];
+ int code = sfread(p, 1, 2, s);
+
+ if (code < 0)
+ return 0;
+
+ return u16(p);
+}
+
+static inline int
+u32(const byte *p)
+{
+ return (p[0] << 24) | (p[1] << 16) | (p[2] << 8) | p[3];
+}
+
+static inline int
+sru32(stream *s)
+{
+ byte p[4];
+ int code = sfread(p, 1, 4, s);
+ if (code < 0)
+ return 0;
+
+ return u32(p);
+}
+
+static int pdfi_ttf_add_to_native_map(pdf_context *ctx, stream *f, byte magic[4], char *fname, char *pname, int pname_size)
+{
+ int ntables, i, j, k, code2, code = gs_error_undefined;
+ char table[4];
+ int nte, storageOffset;
+ bool include_index = false;
+ uint32_t nfonts = 1, tableoffs;
+ int findex;
+ gs_offset_t l;
+
+ code2 = sfseek(f, 0, SEEK_END);
+ if (code2 < 0)
+ return code;
+ l = stell(f);
+ /* 4 to skip the magic number */
+ code2 = sfseek(f, 4, SEEK_SET);
+ if (code2 < 0)
+ return code;
+
+ if (memcmp(magic, "ttcf", 4) == 0) {
+ uint32_t ver;
+ include_index = true;
+ ver = sru32(f);
+ if (ver != 0x00010000 && ver !=0x00020000) {
+ dmprintf1(ctx->memory, "Unknown TTC header version %08X.\n", ver);
+ return_error(gs_error_invalidaccess);
+ }
+ nfonts = sru32(f);
+ /* There isn't a specific limit on the number of fonts,
+ freetype limits to 255, so we'll do the same here
+ */
+ if (nfonts > 255)
+ return_error(gs_error_invalidfont);
+ }
+
+ for (findex = 0; findex < nfonts; findex++) {
+ if (include_index == true ) {
+ if (findex * 4 > l)
+ break;
+ code2 = sfseek(f, findex * 4, SEEK_CUR);
+ if (code2 < 0)
+ return code2;
+
+ tableoffs = sru32(f);
+ if (tableoffs + 4 > l)
+ break;
+ code2 = sfseek(f, tableoffs + 4, SEEK_SET);
+ if (code2 < 0)
+ return code2;
+ }
+
+ ntables = sru16(f);
+ /* Similar to above - no spec limit, but we do the same
+ as freetype
+ */
+ if (ntables > 255)
+ continue;
+
+ /* Skip the remainder of the invariant header bytes */
+ (void)sru16(f);
+ (void)sru32(f);
+
+ for (i = 0, code2 = 0; i < ntables && code2 >= 0; i++) {
+ if (stell(f) + 4 > l) {
+ code2 = gs_error_ioerror;
+ continue;
+ }
+ code2 = sfread(table, 1, 4, f);
+ if (code2 < 0)
+ return code2;
+ if (!memcmp(table, "name", 4)) {
+ uint table_pos, table_len;
+ byte *namet;
+ (void)sru32(f); /* skip checksum */
+
+ table_pos = sru32(f);
+ table_len = sru32(f);
+ if (table_pos + table_len > l) {
+ code2 = gs_error_ioerror;
+ continue;
+ }
+
+ code2 = sfseek(f, table_pos, SEEK_SET);
+ if (code2 < 0)
+ continue;
+
+ namet = (byte *)gs_alloc_bytes(ctx->memory, table_len, "pdfi_ttf_add_to_native_map");
+ if (namet == NULL)
+ return_error(gs_error_VMerror);
+ code2 = sfread(namet, 1, table_len, f);
+ if (code2 < 0) {
+ gs_free_object(ctx->memory, namet,"pdfi_ttf_add_to_native_map");
+ continue;
+ }
+ nte = u16(namet + 2);
+ /* Again, arbitrary limit... */
+ if (nte > 255) {
+ gs_free_object(ctx->memory, namet,"pdfi_ttf_add_to_native_map");
+ continue;
+ }
+ storageOffset = u16(namet + 4);
+
+ for (j = 0; j < nte; j++) {
+ byte *rec = namet + 6 + j * 12;
+ if (u16(rec + 6) == 6) {
+ int nl = u16(rec + 8);
+ int noffs = u16(rec + 10);
+ if (nl + noffs + storageOffset > table_len) {
+ break;
+ }
+ memcpy(pname, namet + storageOffset + noffs, nl);
+ pname[nl] = '\0';
+ for (k = 0; k < nl; k++)
+ if (pname[k] < 32 || pname[k] > 126) /* is it a valid name? */
+ break;
+ if (k == nl) {
+ code = 0;
+ break;
+ }
+ }
+ }
+ if (code == gs_error_undefined) {
+ for (j = 0; j < nte; j++) {
+ byte *rec = namet + 6 + j * 12;
+ if (u16(rec + 6) == 4) {
+ int nl = u16(rec + 8);
+ int noffs = u16(rec + 10);
+ if (nl + noffs + storageOffset > table_len) {
+ break;
+ }
+ memcpy(pname, namet + storageOffset + noffs, nl);
+ pname[nl] = '\0';
+ for (k = 0; k < nl; k++)
+ if (pname[k] < 32 || pname[k] > 126) /* is it a valid name? */
+ break;
+ if (k == nl)
+ code = 0;
+ break;
+ }
+ }
+ }
+ gs_free_object(ctx->memory, namet, "pdfi_ttf_add_to_native_map");
+ break;
+ }
+ else {
+ sfseek(f, 12, SEEK_CUR);
+ }
+ }
+ if (code >= 0)
+ code = pdfi_add__to_native_fontmap(ctx, (const char *)pname, (const char *)fname, (include_index == true ? findex : -1));
+ }
+ return code;
+}
+
+static const char *font_scan_skip_list[] = {
+ ".afm",
+ ".bat",
+ ".c",
+ ".cmd",
+ ".com",
+ ".dir",
+ ".dll",
+ ".doc",
+ ".drv",
+ ".exe",
+ ".fon",
+ ".fot",
+ ".h",
+ ".o",
+ ".obj",
+ ".pfm",
+ ".pss",
+ ".txt",
+ ".gz",
+ ".pcf"
+};
+
+static bool font_scan_skip_file(char *fname)
+{
+ size_t l2, l = strlen(fname);
+ bool skip = false;
+ int i;
+
+ for (i = 0; i < (sizeof(font_scan_skip_list)/sizeof(*font_scan_skip_list)); i++) {
+ l2 = strlen(font_scan_skip_list[i]);
+ if (memcmp(font_scan_skip_list[i], fname + l - l2, l2) == 0) {
+ skip = true;
+ break;
+ }
+ }
+ return skip;
+}
+
+static int pdfi_generate_native_fontmap(pdf_context *ctx)
+{
+ file_enum *fe;
+ int i;
+ char *patrn= NULL;
+ char *result = NULL;
+ char *working = NULL;
+ byte magic[4]; /* We only (currently) use up to 4 bytes for type guessing */
+ stream *sf;
+ int code = 0, l;
+ uint nread;
+
+ if (ctx->pdfnativefontmap != NULL) /* Only run this once */
+ return 0;
+ if (ctx->args.nonativefontmap == true) {
+ /* Basically create an empty dictionary */
+ code = pdfi_dict_alloc(ctx, 1, &ctx->pdfnativefontmap);
+ if (code < 0)
+ return code;
+ pdfi_countup(ctx->pdfnativefontmap);
+ return 0;
+ }
+
+ patrn = (char *)gs_alloc_bytes(ctx->memory, gp_file_name_sizeof, "pdfi_generate_native_fontmap");
+ result = (char *)gs_alloc_bytes(ctx->memory, gp_file_name_sizeof, "pdfi_generate_native_fontmap");
+ working = (char *)gs_alloc_bytes(ctx->memory, gp_file_name_sizeof, "pdfi_generate_native_fontmap");
+ if (patrn == NULL || result == NULL || working == NULL) {
+ gs_free_object(ctx->memory, patrn, "pdfi_generate_native_fontmap");
+ gs_free_object(ctx->memory, result, "pdfi_generate_native_fontmap");
+ gs_free_object(ctx->memory, working, "pdfi_generate_native_fontmap");
+ return_error(gs_error_VMerror);
+ }
+
+ for (i = 0; i < ctx->search_paths.num_font_paths; i++) {
+
+ memcpy(patrn, ctx->search_paths.font_paths[i].data, ctx->search_paths.font_paths[i].size);
+ memcpy(patrn + ctx->search_paths.font_paths[i].size, "/*", 2);
+ patrn[ctx->search_paths.font_paths[i].size + 2] = '\0';
+
+ fe = gp_enumerate_files_init(ctx->memory, (const char *)patrn, strlen(patrn));
+ while ((l = gp_enumerate_files_next(ctx->memory, fe, result, gp_file_name_sizeof - 1)) != ~(uint) 0) {
+ int type;
+ result[l] = '\0';
+
+ if (font_scan_skip_file(result))
+ continue;
+
+ sf = sfopen(result, "r", ctx->memory);
+ code = sgets(sf, magic, 4, &nread);
+ if (code < 0 || nread < 4) {
+ sfclose(sf);
+ continue;
+ }
+
+ code = sfseek(sf, 0, SEEK_SET);
+ if (code < 0) {
+ sfclose(sf);
+ continue;
+ }
+ /* Slightly naff: in this one case, we want to treat OTTO fonts
+ as Truetype, so we lookup the TTF 'name' table - it's more efficient
+ than decoding the CFF, and probably will give more expected results
+ */
+ if (memcmp(magic, "OTTO", 4) == 0 || memcmp(magic, "ttcf", 4) == 0) {
+ type = tt_font;
+ }
+ else {
+ type = pdfi_font_scan_type_picker((byte *)magic, 4);
+ }
+ switch(type) {
+ case tt_font:
+ code = pdfi_ttf_add_to_native_map(ctx, sf, magic, result, working, gp_file_name_sizeof);
+ break;
+ case cff_font:
+ code = gs_error_undefined;
+ break;
+ case type1_font:
+ default:
+ code = pdfi_type1_add_to_native_map(ctx, sf, result, working, gp_file_name_sizeof);
+ break;
+ }
+ sfclose(sf);
+ /* We ignore most errors, on the basis it probably means it wasn't a valid font file */
+ if (code == gs_error_VMerror)
+ break;
+ code = 0;
+ }
+ /* We only need to explicitly destroy the enumerator if we exit before enumeration is complete */
+ if (code < 0)
+ gp_enumerate_files_close(ctx->memory, fe);
+ }
+
+#if 0
+ if (ctx->pdfnativefontmap != NULL) {
+ uint64_t ind;
+ int find = -1;
+ pdf_name *key = NULL;
+ pdf_obj *v = NULL;
+ pdf_string *val = NULL;
+ (void)pdfi_dict_key_first(ctx, ctx->pdfnativefontmap, (pdf_obj **) &key, &ind);
+ (void)pdfi_dict_get_by_key(ctx, ctx->pdfnativefontmap, key, (pdf_obj **)&v);
+ for (j = 0; j < key->length; j++)
+ dprintf1("%c", key->data[j]);
+ if (v->type == PDF_DICT) {
+ pdf_num *n;
+ pdf_string *val2;
+ code = pdfi_dict_get(ctx, (pdf_dict *)v, "Index", (pdf_obj **)&n);
+ if (code >= 0 && n->type == PDF_INT)
+ find = n->value.i;
+ else
+ code = 0;
+ (void)pdfi_dict_get(ctx, (pdf_dict *)v, "Path", (pdf_obj **)&val2);
+ val = val2;
+ }
+ else {
+ val = (pdf_string *)v;
+ }
+ dprintf(" ");
+ for (j = 0; j < val->length; j++)
+ dprintf1("%c", val->data[j]);
+ if (find != -1) {
+ dprintf1(" Index = %d", find);
+ find = -1;
+ }
+
+ dprintf("\n");
+ pdfi_countdown(key);
+ pdfi_countdown(val);
+
+ while (pdfi_dict_key_next(ctx, ctx->pdfnativefontmap, (pdf_obj **) &key, &ind) >= 0 && ind > 0) {
+ (void)pdfi_dict_get_by_key(ctx, ctx->pdfnativefontmap, key, (pdf_obj **)&v);
+ for (j = 0; j < key->length; j++)
+ dprintf1("%c", key->data[j]);
+ if (v->type == PDF_DICT) {
+ pdf_num *n;
+ pdf_string *val2;
+ code = pdfi_dict_get(ctx, (pdf_dict *)v, "Index", (pdf_obj **)&n);
+ if (code >= 0 && n->type == PDF_INT)
+ find = n->value.i;
+ else
+ code = 0;
+ (void)pdfi_dict_get(ctx, (pdf_dict *)v, "Path", (pdf_obj **)&val2);
+ val = val2;
+ }
+ else {
+ val = (pdf_string *)v;
+ }
+ dprintf(" ");
+ for (j = 0; j < val->length; j++)
+ dprintf1("%c", val->data[j]);
+ if (find != -1) {
+ dprintf1(" Index = %d", find);
+ find = -1;
+ }
+ pdfi_countdown(key);
+ pdfi_countdown(val);
+ dprintf("\n");
+ }
+ }
+#endif
+
+ gs_free_object(ctx->memory, patrn, "pdfi_generate_native_fontmap");
+ gs_free_object(ctx->memory, result, "pdfi_generate_native_fontmap");
+ gs_free_object(ctx->memory, working, "pdfi_generate_native_fontmap");
+ return 0;
+}
int
-pdf_fontmap_lookup_font(pdf_context *ctx, pdf_name *fname, pdf_obj **mapname)
+pdf_fontmap_lookup_font(pdf_context *ctx, pdf_name *fname, pdf_obj **mapname, int *findex)
{
- int code = 0;
+ int code;
pdf_obj *mname;
+ *findex = -1;
+
if (ctx->pdffontmap == NULL) {
- code = pdf_make_fontmap(ctx);
+ const char *fmap_default = "Fontmap.GS";
+ char *fmapname = (char *)fmap_default;
+ code = pdf_make_fontmap(ctx, fmapname, false);
if (code < 0) {
return code;
}
}
+ if (ctx->pdfnativefontmap == NULL) {
+ code = pdfi_generate_native_fontmap(ctx);
+ if (code < 0)
+ return code;
+ }
+
code = pdfi_dict_get_by_key(ctx, ctx->pdffontmap, fname, &mname);
+ if (code >= 0) {
+ /* Fontmap can map in multiple "jump" i.e.
+ name -> substitute name
+ subsitute name -> file name
+ So we want to loop until we no more hits.
+ */
+ while(1) {
+ pdf_obj *mname2;
+ code = pdfi_dict_get_by_key(ctx, ctx->pdffontmap, (pdf_name *)mname, &mname2);
+ if (code < 0) break;
+ pdfi_countdown(mname);
+ mname = mname2;
+ }
+ }
+ else if (ctx->pdfnativefontmap != NULL) {
+ pdf_obj *record;
+ code = pdfi_dict_get_by_key(ctx, ctx->pdfnativefontmap, fname, &record);
+ if (code < 0)
+ return code;
+ if (record->type == PDF_STRING) {
+ mname = record;
+ }
+ else {
+ pdf_num *ind;
+ code = pdfi_dict_get(ctx, (pdf_dict *)record, "Path", &mname);
+ if (code < 0) {
+ pdfi_countdown(record);
+ return code;
+ }
+ code = pdfi_dict_get(ctx, (pdf_dict *)record, "Index", (pdf_obj **)&ind);
+ if (code >= 0 && ind->type == PDF_INT) {
+ *findex = ind->value.i;
+ }
+ }
+ }
+
+ if (mname != NULL && mname->type == PDF_STRING && pdfi_fmap_file_exists(ctx, (pdf_string *)mname)) {
+ *mapname = mname;
+ code = 0;
+ }
+ else if (mname != NULL && mname->type == PDF_NAME) { /* If we map to a name, we assume (for now) we have the font as a "built-in" */
+ *mapname = mname;
+ code = 0;
+ }
+ else {
+ pdfi_countdown(mname);
+ code = gs_note_error(gs_error_undefined);
+ }
+ return code;
+}
+
+int
+pdf_fontmap_lookup_cidfont(pdf_context *ctx, pdf_dict *font_dict, pdf_name *name, pdf_obj **mapname, int *findex)
+{
+ int code = 0;
+ pdf_obj *cidname = NULL;
+ pdf_obj *mname;
+
+ if (ctx->pdfcidfmap == NULL) {
+ const char *cidfmap_default = "cidfmap";
+ char *cidfmapname = (char *)cidfmap_default;
+ code = pdf_make_fontmap(ctx, cidfmapname, true);
+ if (code < 0) {
+ return code;
+ }
+ }
+ if (name == NULL || name->type != PDF_NAME) {
+ code = pdfi_dict_get(ctx, font_dict, "BaseFont", &cidname);
+ if (code < 0 || cidname->type != PDF_NAME) {
+ pdfi_countdown(cidname);
+ return_error(gs_error_undefined);
+ }
+
+ }
+ else {
+ cidname = (pdf_obj *)name;
+ pdfi_countup(cidname);
+ }
+
+ code = pdfi_dict_get_by_key(ctx, ctx->pdfcidfmap, (pdf_name *)cidname, &mname);
+ pdfi_countdown(cidname);
if (code < 0)
return code;
- /* Fontmap can map in multiple "jump" i.e.
+ /* As above cidfmap can map in multiple "jump" i.e.
name -> substitute name
- subsitute name -> file name
+ subsitute name -> "record"
So we want to loop until we no more hits.
*/
while(1) {
pdf_obj *mname2;
- code = pdfi_dict_get_by_key(ctx, ctx->pdffontmap, (pdf_name *)mname, &mname2);
+ code = pdfi_dict_get_by_key(ctx, ctx->pdfcidfmap, (pdf_name *)mname, &mname2);
if (code < 0) break;
pdfi_countdown(mname);
mname = mname2;
}
- *mapname = mname;
- return 0;
+ if (mname->type == PDF_DICT) {
+ pdf_dict *rec = (pdf_dict *)mname;
+ pdf_name *filetype;
+ pdf_name *path = NULL;
+ pdf_num *ind = NULL;
+ pdf_array *mcsi = NULL;
+ pdf_dict *ocsi = NULL;
+ pdf_string *ord1 = NULL, *ord2 = NULL;
+ pdf_num *sup1, *sup2;
+
+ code = pdfi_dict_get(ctx, rec, "FileType", (pdf_obj **)&filetype);
+ /* We only handle TTF files, just now */
+ if (code < 0 || filetype->type != PDF_NAME || filetype->length != 8 || memcmp(filetype->data, "TrueType", 8) != 0) {
+ pdfi_countdown(filetype);
+ pdfi_countdown(rec);
+ return_error(gs_error_undefined);
+ }
+ pdfi_countdown(filetype);
+
+ code = pdfi_dict_get(ctx, rec, "CSI", (pdf_obj **)&mcsi);
+ if (code < 0 || mcsi->type != PDF_ARRAY) {
+ pdfi_countdown(mcsi);
+ pdfi_countdown(rec);
+ return_error(gs_error_undefined);
+ }
+
+ code = pdfi_dict_get(ctx, font_dict, "CIDSystemInfo", (pdf_obj **)&ocsi);
+ if (code < 0 || ocsi->type != PDF_DICT) {
+ pdfi_countdown(ocsi);
+ pdfi_countdown(mcsi);
+ pdfi_countdown(rec);
+ return_error(gs_error_undefined);
+ }
+ code = pdfi_dict_get(ctx, ocsi, "Ordering", (pdf_obj **)&ord1);
+ if (code < 0 || ord1->type != PDF_STRING) {
+ pdfi_countdown(ord1);
+ pdfi_countdown(ocsi);
+ pdfi_countdown(mcsi);
+ pdfi_countdown(rec);
+ return_error(gs_error_undefined);
+ }
+ code = pdfi_array_get(ctx, mcsi, 0, (pdf_obj **)&ord2);
+ if (code < 0 || ord2->type != PDF_STRING) {
+ pdfi_countdown(ord1);
+ pdfi_countdown(ord2);
+ pdfi_countdown(ocsi);
+ pdfi_countdown(mcsi);
+ pdfi_countdown(rec);
+ return_error(gs_error_undefined);
+ }
+ if (pdfi_string_cmp(ord1, ord2) != 0) {
+ pdfi_countdown(ord1);
+ pdfi_countdown(ord2);
+ pdfi_countdown(ocsi);
+ pdfi_countdown(mcsi);
+ pdfi_countdown(rec);
+ return_error(gs_error_undefined);
+ }
+ pdfi_countdown(ord1);
+ pdfi_countdown(ord2);
+ code = pdfi_dict_get(ctx, ocsi, "Supplement", (pdf_obj **)&sup1);
+ if (code < 0 || sup1->type != PDF_INT) {
+ pdfi_countdown(ord1);
+ pdfi_countdown(ocsi);
+ pdfi_countdown(mcsi);
+ pdfi_countdown(rec);
+ return_error(gs_error_undefined);
+ }
+ code = pdfi_array_get(ctx, mcsi, 1, (pdf_obj **)&sup2);
+ if (code < 0 || sup2->type != PDF_INT || sup1->value.i != sup2->value.i) {
+ pdfi_countdown(sup1);
+ pdfi_countdown(sup2);
+ pdfi_countdown(ocsi);
+ pdfi_countdown(mcsi);
+ pdfi_countdown(rec);
+ return_error(gs_error_undefined);
+ }
+ pdfi_countdown(sup1);
+ pdfi_countdown(sup2);
+ pdfi_countdown(ocsi);
+ pdfi_countdown(mcsi);
+
+ code = pdfi_dict_get(ctx, rec, "Path", (pdf_obj **)&path);
+ if (code < 0 || path->type != PDF_STRING || !pdfi_fmap_file_exists(ctx, (pdf_string *)path)) {
+ pdfi_countdown(rec);
+ return_error(gs_error_undefined);
+ }
+
+ *mapname = (pdf_obj *)path;
+ code = pdfi_dict_get(ctx, rec, "Index", (pdf_obj **)&ind);
+ if (code >= 0 && ind->type != PDF_INT) {
+ *findex = ind->value.i;
+ }
+ else {
+ *findex = 0;
+ }
+ pdfi_countdown(ind);
+ code = 0;
+
+ }
+ else {
+ *mapname = (pdf_obj *)mname;
+ code = 0;
+ }
+
+ return code;
}
diff --git a/pdf/pdf_fmap.h b/pdf/pdf_fmap.h
index 602bb0cf..c7650203 100644
--- a/pdf/pdf_fmap.h
+++ b/pdf/pdf_fmap.h
@@ -17,4 +17,10 @@
or might be a string.
*/
int
-pdf_fontmap_lookup_font(pdf_context *ctx, pdf_name *fname, pdf_obj **mapname);
+pdf_fontmap_lookup_font(pdf_context *ctx, pdf_name *fname, pdf_obj **mapname, int *findex);
+
+/* The name parameter is to allow for internally derived font names to be looked up,
+ like, for example, /Adobe-Japan1
+ */
+int
+pdf_fontmap_lookup_cidfont(pdf_context *ctx, pdf_dict *font_dict, pdf_name *name, pdf_obj **mapname, int *findex);
diff --git a/pdf/pdf_font.c b/pdf/pdf_font.c
index 7fa8a427..fa716056 100644
--- a/pdf/pdf_font.c
+++ b/pdf/pdf_font.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 2018-2021 Artifex Software, Inc.
+/* Copyright (C) 2018-2022 Artifex Software, Inc.
All Rights Reserved.
This software is provided AS-IS with no warranty, either express or
@@ -16,6 +16,8 @@
/* Font operations for the PDF interpreter */
#include "pdf_int.h"
+#include "pdf_font_types.h"
+#include "pdf_gstate.h"
#include "pdf_file.h"
#include "pdf_dict.h"
#include "pdf_loop_detect.h"
@@ -24,7 +26,6 @@
#include "pdf_stack.h"
#include "pdf_misc.h"
#include "pdf_doc.h"
-#include "pdf_font_types.h"
#include "pdf_font0.h"
#include "pdf_font1.h"
#include "pdf_font1C.h"
@@ -41,12 +42,15 @@
static int pdfi_gs_setfont(pdf_context *ctx, gs_font *pfont)
{
int code = 0;
- pdf_font *old_font = pdfi_get_current_pdf_font(ctx);
+ pdfi_int_gstate *igs = (pdfi_int_gstate *)ctx->pgs->client_data;
+ pdf_font *old_font = igs->current_font;
code = gs_setfont(ctx->pgs, pfont);
- if (code >= 0)
+ if (code >= 0) {
+ igs->current_font = (pdf_font *)pfont->client_data;
+ pdfi_countup(igs->current_font);
pdfi_countdown(old_font);
-
+ }
return code;
}
@@ -145,6 +149,19 @@ pdfi_font_match_glyph_widths(pdf_font *pdfont)
return code;
}
+/* Print a name object to stdout */
+static void pdfi_print_font_name(pdf_context *ctx, pdf_name *n)
+{
+ if (ctx->args.QUIET != true)
+ (void)outwrite(ctx->memory, (const char *)n->data, n->length);
+}
+
+/* Print a null terminated string to stdout */
+static void pdfi_print_string(pdf_context *ctx, const char *str)
+{
+ if (ctx->args.QUIET != true)
+ (void)outwrite(ctx->memory, str, strlen(str));
+}
/* Call with a CIDFont name to try to find the CIDFont on disk
call if with ffname NULL to load the default fallback CIDFont
@@ -152,25 +169,179 @@ pdfi_font_match_glyph_widths(pdf_font *pdfont)
Currently only loads subsitute - DroidSansFallback
*/
static int
-pdfi_open_CIDFont_substitute_file(pdf_context * ctx, pdf_dict *font_dict, pdf_dict *fontdesc, bool fallback, byte ** buf, int64_t * buflen)
+pdfi_open_CIDFont_substitute_file(pdf_context * ctx, pdf_dict *font_dict, pdf_dict *fontdesc, bool fallback, byte ** buf, int64_t * buflen, int *findex)
{
- int code = gs_error_invalidfont;
+ int code = 0;
+ char fontfname[gp_file_name_sizeof];
+ stream *s;
+ pdf_name *cidname = NULL;
+ gs_const_string fname;
+
+ (void)pdfi_dict_get(ctx, font_dict, "BaseFont", (pdf_obj **)&cidname);
if (fallback == true) {
- char fontfname[gp_file_name_sizeof];
- const char *fsprefix = "CIDFSubst/";
+ pdf_string *mname = NULL;
+ pdf_dict *csi = NULL;
+
+ code = pdfi_dict_get(ctx, font_dict, "CIDSystemInfo", (pdf_obj **)&csi);
+ if (code >= 0 && csi->type == PDF_DICT) {
+ pdf_string *csi_reg = NULL, *csi_ord = NULL;
+
+ if (pdfi_dict_get(ctx, csi, "Registry", (pdf_obj **)&csi_reg) >= 0
+ && pdfi_dict_get(ctx, csi, "Ordering", (pdf_obj **)&csi_ord) >= 0
+ && csi_reg->type == PDF_STRING && csi_ord->type == PDF_STRING
+ && csi_reg->length + csi_ord->length + 1 < gp_file_name_sizeof - 1) {
+ pdf_name *reg_ord;
+ memcpy(fontfname, csi_reg->data, csi_reg->length);
+ memcpy(fontfname + csi_reg->length, "-", 1);
+ memcpy(fontfname + csi_reg->length + 1, csi_ord->data, csi_ord->length);
+ fontfname[csi_reg->length + csi_ord->length + 1] = '\0';
+
+ code = pdfi_name_alloc(ctx, (byte *)fontfname, strlen(fontfname), (pdf_obj **) &reg_ord);
+ if (code >= 0) {
+ pdfi_countup(reg_ord);
+ code = pdf_fontmap_lookup_cidfont(ctx, font_dict, reg_ord, (pdf_obj **)&mname, findex);
+ pdfi_countdown(reg_ord);
+ }
+ }
+ pdfi_countdown(csi_reg);
+ pdfi_countdown(csi_ord);
+ }
+ pdfi_countdown(csi);
+
+ if (mname == NULL || mname->type != PDF_STRING)
+ code = pdf_fontmap_lookup_cidfont(ctx, font_dict, NULL, (pdf_obj **)&mname, findex);
+
+ if (code < 0 || mname->type != PDF_STRING) {
+ const char *fsprefix = "CIDFSubst/";
+ int fsprefixlen = strlen(fsprefix);
+ const char *defcidfallack = "DroidSansFallback.ttf";
+ int defcidfallacklen = strlen(defcidfallack);
+
+ pdfi_countdown(mname);
+
+ if (ctx->args.nocidfallback == true) {
+ code = gs_note_error(gs_error_invalidfont);
+ }
+ else {
+ if (ctx->args.cidsubstpath.data == NULL) {
+ memcpy(fontfname, fsprefix, fsprefixlen);
+ }
+ else {
+ memcpy(fontfname, ctx->args.cidsubstpath.data, ctx->args.cidsubstpath.size);
+ fsprefixlen = ctx->args.cidsubstpath.size;
+ }
+
+ if (ctx->args.cidsubstfont.data == NULL) {
+ int len = 0;
+ if (gp_getenv("CIDSUBSTFONT", (char *)0, &len) < 0 && len + fsprefixlen + 1 < gp_file_name_sizeof) {
+ (void)gp_getenv("CIDSUBSTFONT", (char *)(fontfname + fsprefixlen), &defcidfallacklen);
+ }
+ else {
+ memcpy(fontfname + fsprefixlen, defcidfallack, defcidfallacklen);
+ }
+ }
+ else {
+ memcpy(fontfname, ctx->args.cidsubstfont.data, ctx->args.cidsubstfont.size);
+ defcidfallacklen = ctx->args.cidsubstfont.size;
+ }
+ fontfname[fsprefixlen + defcidfallacklen] = '\0';
+
+ code = pdfi_open_resource_file(ctx, fontfname, strlen(fontfname), &s);
+ if (code < 0) {
+ code = gs_note_error(gs_error_invalidfont);
+ }
+ else {
+ if (cidname) {
+ pdfi_print_string(ctx, "Loading CIDFont ");
+ pdfi_print_font_name(ctx, (pdf_name *)cidname);
+ pdfi_print_string(ctx, " substitute from ");
+ }
+ else {
+ pdfi_print_string(ctx, "Loading nameless CIDFont from ");
+ }
+ sfilename(s, &fname);
+ if (fname.size < gp_file_name_sizeof) {
+ memcpy(fontfname, fname.data, fname.size);
+ fontfname[fname.size] = '\0';
+ }
+ else {
+ strcpy(fontfname, "unnamed file");
+ }
+ pdfi_print_string(ctx, fontfname);
+ pdfi_print_string(ctx, "\n");
+
+
+ sfseek(s, 0, SEEK_END);
+ *buflen = sftell(s);
+ sfseek(s, 0, SEEK_SET);
+ *buf = gs_alloc_bytes(ctx->memory, *buflen, "pdfi_open_CIDFont_file(buf)");
+ if (*buf != NULL) {
+ sfread(*buf, 1, *buflen, s);
+ }
+ else {
+ code = gs_note_error(gs_error_VMerror);
+ }
+ sfclose(s);
+ }
+ }
+ }
+ else {
+ code = pdfi_open_resource_file(ctx, (const char *)mname->data, mname->length, &s);
+ pdfi_countdown(mname);
+ if (code < 0) {
+ code = gs_note_error(gs_error_invalidfont);
+ }
+ else {
+ if (cidname) {
+ pdfi_print_string(ctx, "Loading CIDFont ");
+ pdfi_print_font_name(ctx, (pdf_name *)cidname);
+ pdfi_print_string(ctx, " (or substitute) from ");
+ }
+ else {
+ pdfi_print_string(ctx, "Loading nameless CIDFont from ");
+ }
+ sfilename(s, &fname);
+ if (fname.size < gp_file_name_sizeof) {
+ memcpy(fontfname, fname.data, fname.size);
+ fontfname[fname.size] = '\0';
+ }
+ else {
+ strcpy(fontfname, "unnamed file");
+ }
+ pdfi_print_string(ctx, fontfname);
+ pdfi_print_string(ctx, "\n");
+ sfseek(s, 0, SEEK_END);
+ *buflen = sftell(s);
+ sfseek(s, 0, SEEK_SET);
+ *buf = gs_alloc_bytes(ctx->memory, *buflen, "pdfi_open_CIDFont_file(buf)");
+ if (*buf != NULL) {
+ sfread(*buf, 1, *buflen, s);
+ }
+ else {
+ code = gs_note_error(gs_error_VMerror);
+ }
+ sfclose(s);
+ }
+ }
+ }
+ else {
+ const char *fsprefix = "CIDFont/";
const int fsprefixlen = strlen(fsprefix);
- const char *defcidfallack = "DroidSansFallback.ttf";
- const int defcidfallacklen = strlen(defcidfallack);
- stream *s;
- code = 0;
+
+ if (cidname == NULL || cidname->type != PDF_NAME
+ || fsprefixlen + cidname->length >= gp_file_name_sizeof)
+ goto exit;
memcpy(fontfname, fsprefix, fsprefixlen);
- memcpy(fontfname + fsprefixlen, defcidfallack, defcidfallacklen);
- fontfname[fsprefixlen + defcidfallacklen] = '\0';
+ memcpy(fontfname + fsprefixlen, cidname->data, cidname->length);
+ fontfname[fsprefixlen + cidname->length] = '\0';
code = pdfi_open_resource_file(ctx, fontfname, strlen(fontfname), &s);
- if (code >= 0) {
+ if (code < 0) {
+ code = gs_note_error(gs_error_invalidfont);
+ }
+ else {
sfseek(s, 0, SEEK_END);
*buflen = sftell(s);
sfseek(s, 0, SEEK_SET);
@@ -179,14 +350,15 @@ pdfi_open_CIDFont_substitute_file(pdf_context * ctx, pdf_dict *font_dict, pdf_di
sfread(*buf, 1, *buflen, s);
}
else {
- code = gs_note_error(gs_error_VMerror);
+ code = gs_note_error(gs_error_invalidfont);
}
sfclose(s);
}
}
- else {
- code = gs_error_invalidfont;
- }
+
+exit:
+ if (cidname != NULL)
+ pdfi_countdown(cidname);
return code;
}
@@ -316,16 +488,44 @@ static const char *pdfi_font_substitute_by_flags(unsigned int flags)
return "Helvetica"; /* Really shouldn't ever happen */
}
-static void pdfi_emprint_font_name(pdf_context *ctx, pdf_name *n)
+enum {
+ no_type_font = -1,
+ type0_font = 0,
+ type1_font = 1,
+ cff_font = 2,
+ type3_font = 3,
+ tt_font = 42
+};
+
+static int pdfi_fonttype_picker(byte *buf, int64_t buflen)
{
- int i;
- for (i = 0; i < n->length; i++) {
- dmprintf1(ctx->memory, "%c", n->data[i]);
+#define MAKEMAGIC(a, b, c, d) (((a) << 24) | ((b) << 16) | ((c) << 8) | (d))
+
+ if (buflen >= 4) {
+ if (MAKEMAGIC(buf[0], buf[1], buf[2], buf[3]) == MAKEMAGIC(0, 1, 0, 0)
+ || MAKEMAGIC(buf[0], buf[1], buf[2], buf[3]) == MAKEMAGIC('t', 'r', 'u', 'e')
+ || MAKEMAGIC(buf[0], buf[1], buf[2], buf[3]) == MAKEMAGIC('t', 't', 'c', 'f')) {
+ return tt_font;
+ }
+ else if (MAKEMAGIC(buf[0], buf[1], buf[2], buf[3]) == MAKEMAGIC('O', 'T', 'T', 'O')) {
+ return cff_font; /* OTTO will end up as CFF */
+ }
+ else if (MAKEMAGIC(buf[0], buf[1], buf[2], 0) == MAKEMAGIC('%', '!', 'P', 0)) {
+ return type1_font; /* pfa */
+ }
+ else if (MAKEMAGIC(buf[0], buf[1], buf[2], 0) == MAKEMAGIC(1, 0, 4, 0)) {
+ return cff_font; /* 1C/CFF */
+ }
+ else if (MAKEMAGIC(buf[0], buf[1], 0, 0) == MAKEMAGIC(128, 1, 0, 0)) {
+ return type1_font; /* pfb */
+ }
}
+ return no_type_font;
+#undef MAKEMAGIC
}
static int
-pdfi_open_font_substitute_file(pdf_context *ctx, pdf_dict *font_dict, pdf_dict *fontdesc, bool fallback, byte **buf, int64_t *buflen)
+pdfi_open_font_substitute_file(pdf_context *ctx, pdf_dict *font_dict, pdf_dict *fontdesc, bool fallback, byte **buf, int64_t *buflen, int *findex)
{
int code;
char fontfname[gp_file_name_sizeof];
@@ -335,7 +535,7 @@ pdfi_open_font_substitute_file(pdf_context *ctx, pdf_dict *font_dict, pdf_dict *
const char *fn;
code = pdfi_dict_knownget_type(ctx, font_dict, "BaseFont", PDF_NAME, &basefont);
- if (code < 0 || ((pdf_name *)basefont)->length == 0)
+ if (code < 0 || basefont == NULL || ((pdf_name *)basefont)->length == 0)
fallback = true;
if (fallback == true) {
@@ -368,40 +568,51 @@ pdfi_open_font_substitute_file(pdf_context *ctx, pdf_dict *font_dict, pdf_dict *
pdfi_countup(fontname);
}
}
- code = pdf_fontmap_lookup_font(ctx, (pdf_name *) fontname, &mapname);
+ code = pdf_fontmap_lookup_font(ctx, (pdf_name *) fontname, &mapname, findex);
if (code < 0) {
mapname = fontname;
pdfi_countup(mapname);
code = 0;
}
- if (mapname->type == PDF_NAME) {
+ if (mapname->type == PDF_NAME || mapname->type == PDF_STRING) {
pdf_name *mname = (pdf_name *) mapname;
if (mname->length + 1 < gp_file_name_sizeof) {
memcpy(fontfname, mname->data, mname->length);
fontfname[mname->length] = '\0';
}
else {
+ pdfi_countdown(mapname);
+ pdfi_countdown(fontname);
return_error(gs_error_invalidfileaccess);
}
}
+ else {
+ pdfi_countdown(mapname);
+ pdfi_countdown(fontname);
+ return_error(gs_error_invalidfileaccess);
+ }
code = pdfi_open_font_file(ctx, fontfname, strlen(fontfname), &s);
if (code >= 0) {
gs_const_string fname;
if (basefont) {
- dmprintf(ctx->memory, "Loading font ");
- pdfi_emprint_font_name(ctx, (pdf_name *)basefont);
- dmprintf(ctx->memory, " (or substitute) from ");
+ pdfi_print_string(ctx, "Loading font ");
+ pdfi_print_font_name(ctx, (pdf_name *)basefont);
+ pdfi_print_string(ctx, " (or substitute) from ");
}
else {
- dmprintf(ctx->memory, "Loading nameless font from ");
+ pdfi_print_string(ctx, "Loading nameless font from ");
}
sfilename(s, &fname);
if (fname.size < gp_file_name_sizeof) {
memcpy(fontfname, fname.data, fname.size);
fontfname[fname.size] = '\0';
}
- dmprintf1(ctx->memory, "%s.\n", fontfname);
+ else {
+ strcpy(fontfname, "unnamed file");
+ }
+ pdfi_print_string(ctx, fontfname);
+ pdfi_print_string(ctx, "\n");
sfseek(s, 0, SEEK_END);
*buflen = sftell(s);
@@ -423,42 +634,6 @@ pdfi_open_font_substitute_file(pdf_context *ctx, pdf_dict *font_dict, pdf_dict *
}
enum {
- no_type_font = -1,
- type0_font = 0,
- type1_font = 1,
- cff_font = 2,
- type3_font = 3,
- tt_font = 42
-};
-
-static int pdfi_fonttype_picker(byte *buf, int64_t buflen)
-{
-#define MAKEMAGIC(a, b, c, d) (((a) << 24) | ((b) << 16) | ((c) << 8) | (d))
-
- if (buflen >= 4) {
- if (MAKEMAGIC(buf[0], buf[1], buf[2], buf[3]) == MAKEMAGIC(0, 1, 0, 0)
- || MAKEMAGIC(buf[0], buf[1], buf[2], buf[3]) == MAKEMAGIC('t', 'r', 'u', 'e')
- || MAKEMAGIC(buf[0], buf[1], buf[2], buf[3]) == MAKEMAGIC('t', 't', 'c', 'f')) {
- return tt_font;
- }
- else if (MAKEMAGIC(buf[0], buf[1], buf[2], buf[3]) == MAKEMAGIC('O', 'T', 'T', 'O')) {
- return cff_font; /* OTTO will end up as CFF */
- }
- else if (MAKEMAGIC(buf[0], buf[1], buf[2], 0) == MAKEMAGIC('%', '!', 'P', 0)) {
- return type1_font; /* pfa */
- }
- else if (MAKEMAGIC(buf[0], buf[1], buf[2], 0) == MAKEMAGIC(1, 0, 4, 0)) {
- return cff_font; /* 1C/CFF */
- }
- else if (MAKEMAGIC(buf[0], buf[1], 0, 0) == MAKEMAGIC(128, 1, 0, 0)) {
- return type1_font; /* pfb */
- }
- }
- return no_type_font;
-#undef MAKEMAGIC
-}
-
-enum {
font_embedded = 0,
font_from_file = 1,
font_substitute = 2
@@ -477,6 +652,7 @@ int pdfi_load_font(pdf_context *ctx, pdf_dict *stream_dict, pdf_dict *page_dict,
byte *fbuf = NULL;
int64_t fbuflen;
int substitute = font_embedded;
+ int findex = -1;
code = pdfi_dict_get_type(ctx, font_dict, "Type", PDF_NAME, (pdf_obj **)&Type);
if (code < 0)
@@ -489,7 +665,12 @@ int pdfi_load_font(pdf_context *ctx, pdf_dict *stream_dict, pdf_dict *page_dict,
/* Beyond Type 0 and Type 3, there is no point trusting the Subtype key */
if (code >= 0 && pdfi_name_is(Subtype, "Type0")) {
- code = pdfi_read_type0_font(ctx, (pdf_dict *)font_dict, stream_dict, page_dict, &ppdffont);
+ if (cidfont == true) {
+ code = gs_note_error(gs_error_invalidfont);
+ }
+ else {
+ code = pdfi_read_type0_font(ctx, (pdf_dict *)font_dict, stream_dict, page_dict, &ppdffont);
+ }
}
else if (code >= 0 && pdfi_name_is(Subtype, "Type3")) {
code = pdfi_read_type3_font(ctx, (pdf_dict *)font_dict, stream_dict, page_dict, &ppdffont);
@@ -549,7 +730,8 @@ int pdfi_load_font(pdf_context *ctx, pdf_dict *stream_dict, pdf_dict *page_dict,
if (fftype != no_type_font)
sftype = fftype;
else {
- if (pdfi_name_is(Subtype, "Type1") || pdfi_name_is(Subtype, "MMType1"))
+ /* If we don't have a Subtype, can't work it out, try Type 1 */
+ if (Subtype == NULL || pdfi_name_is(Subtype, "Type1") || pdfi_name_is(Subtype, "MMType1"))
sftype = type1_font;
else if (pdfi_name_is(Subtype, "Type1C"))
sftype = cff_font;
@@ -570,18 +752,22 @@ int pdfi_load_font(pdf_context *ctx, pdf_dict *stream_dict, pdf_dict *page_dict,
case tt_font:
{
if (cidfont)
- code = pdfi_read_cidtype2_font(ctx, font_dict, stream_dict, page_dict, fbuf, fbuflen, &ppdffont);
+ code = pdfi_read_cidtype2_font(ctx, font_dict, stream_dict, page_dict, fbuf, fbuflen, findex, &ppdffont);
else
- code = pdfi_read_truetype_font(ctx, font_dict, stream_dict, page_dict, fbuf, fbuflen, &ppdffont);
+ code = pdfi_read_truetype_font(ctx, font_dict, stream_dict, page_dict, fbuf, fbuflen, findex, &ppdffont);
fbuf = NULL;
}
break;
default:
code = gs_note_error(gs_error_invalidfont);
}
+
if (code < 0 && substitute == font_embedded) {
- dmprintf2(ctx->memory, "**** Error: can't process embedded stream for font object %d %d.\n", font_dict->object_num, font_dict->generation_num);
- dmprintf(ctx->memory, "**** Attempting to load substitute font.\n");
+ char obj[129];
+ pdfi_print_string(ctx, "**** Warning: cannot process embedded stream for font object ");
+ gs_snprintf(obj, 128, "%d %d\n", (int)font_dict->object_num, (int)font_dict->generation_num);
+ pdfi_print_string(ctx, obj);
+ pdfi_print_string(ctx, "**** Attempting to load a substitute font.\n");
}
}
@@ -594,9 +780,9 @@ int pdfi_load_font(pdf_context *ctx, pdf_dict *stream_dict, pdf_dict *page_dict,
substitute = font_from_file;
if (cidfont == true) {
- code = pdfi_open_CIDFont_substitute_file(ctx, font_dict, fontdesc, false, &fbuf, &fbuflen);
+ code = pdfi_open_CIDFont_substitute_file(ctx, font_dict, fontdesc, false, &fbuf, &fbuflen, &findex);
if (code < 0) {
- code = pdfi_open_CIDFont_substitute_file(ctx, font_dict, fontdesc, true, &fbuf, &fbuflen);
+ code = pdfi_open_CIDFont_substitute_file(ctx, font_dict, fontdesc, true, &fbuf, &fbuflen, &findex);
substitute |= font_substitute;
}
@@ -604,9 +790,9 @@ int pdfi_load_font(pdf_context *ctx, pdf_dict *stream_dict, pdf_dict *page_dict,
goto exit;
}
else {
- code = pdfi_open_font_substitute_file(ctx, font_dict, fontdesc, false, &fbuf, &fbuflen);
+ code = pdfi_open_font_substitute_file(ctx, font_dict, fontdesc, false, &fbuf, &fbuflen, &findex);
if (code < 0) {
- code = pdfi_open_font_substitute_file(ctx, font_dict, fontdesc, true, &fbuf, &fbuflen);
+ code = pdfi_open_font_substitute_file(ctx, font_dict, fontdesc, true, &fbuf, &fbuflen, &findex);
substitute |= font_substitute;
}
@@ -646,6 +832,7 @@ int pdfi_load_dict_font(pdf_context *ctx, pdf_dict *stream_dict, pdf_dict *page_
{
int code;
gs_font *pfont;
+ pdf_font *pdfif;
if (font_dict->type == PDF_FONT) {
pdfi_countup(font_dict);
@@ -666,10 +853,8 @@ int pdfi_load_dict_font(pdf_context *ctx, pdf_dict *stream_dict, pdf_dict *page_
if (pfont != ctx->pgs->font) {
code = pdfi_gs_setfont(ctx, pfont);
}
- else {
- pdf_font *pdfif = (pdf_font *)pfont->client_data;
- pdfi_countdown(pdfif);
- }
+ pdfif = (pdf_font *)pfont->client_data;
+ pdfi_countdown(pdfif);
if (code < 0)
goto exit;
@@ -984,6 +1169,8 @@ int pdfi_d0(pdf_context *ctx)
if (ctx->text.inside_CharProc == false)
pdfi_set_warning(ctx, 0, NULL, W_PDF_NOTINCHARPROC, "pdfi_d0", NULL);
+ ctx->text.CharProc_d_type = pdf_type3_d0;
+
if (pdfi_count_stack(ctx) < 2) {
code = gs_note_error(gs_error_stackunderflow);
goto d0_error;
@@ -1064,9 +1251,9 @@ int pdfi_d1(pdf_context *ctx)
if (ctx->text.inside_CharProc == false)
pdfi_set_warning(ctx, 0, NULL, W_PDF_NOTINCHARPROC, "pdfi_d1", NULL);
- ctx->text.CharProc_is_d1 = true;
+ ctx->text.CharProc_d_type = pdf_type3_d1;
- if (pdfi_count_stack(ctx) < 2) {
+ if (pdfi_count_stack(ctx) < 6) {
code = gs_note_error(gs_error_stackunderflow);
goto d1_error;
}
@@ -1188,6 +1375,29 @@ int pdfi_free_font(pdf_obj *font)
return 0;
}
+static inline int pdfi_encoding_name_to_index(pdf_name *name)
+{
+ int ind = gs_error_undefined;
+ if (name->type == PDF_NAME) {
+ if (pdfi_name_is(name, "StandardEncoding")) {
+ ind = ENCODING_INDEX_STANDARD;
+ } else {
+ if (pdfi_name_is(name, "WinAnsiEncoding")){
+ ind = ENCODING_INDEX_WINANSI;
+ } else {
+ if (pdfi_name_is(name, "MacRomanEncoding")){
+ ind = ENCODING_INDEX_MACROMAN;
+ } else {
+ if (pdfi_name_is(name, "MacExpertEncoding")){
+ ind = ENCODING_INDEX_MACEXPERT;
+ }
+ }
+ }
+ }
+ }
+ return ind;
+}
+
/*
* Routine to fill in an array with each of the glyph names from a given
* 'standard' Encoding.
@@ -1203,25 +1413,13 @@ static int pdfi_build_Encoding(pdf_context *ctx, pdf_name *name, pdf_array *Enco
if (pdfi_array_size(Encoding) < 256)
return gs_note_error(gs_error_rangecheck);
- if (pdfi_name_is(name, "StandardEncoding")) {
- gs_encoding = ENCODING_INDEX_STANDARD;
- } else {
- if (pdfi_name_is(name, "WinAnsiEncoding")){
- gs_encoding = ENCODING_INDEX_WINANSI;
- } else {
- if (pdfi_name_is(name, "MacRomanEncoding")){
- gs_encoding = ENCODING_INDEX_MACROMAN;
- } else {
- if (pdfi_name_is(name, "MacExpertEncoding")){
- gs_encoding = ENCODING_INDEX_MACEXPERT;
- } else {
- return_error(gs_error_undefined);
- }
- }
- }
- }
- i = 0;
- for (i=0;i<256;i++) {
+ code = pdfi_encoding_name_to_index(name);
+ if (code < 0)
+ return code;
+ gs_encoding = (unsigned char)code;
+ code = 0;
+
+ for (i = 0;i<256;i++) {
temp = gs_c_known_encode(i, gs_encoding);
gs_c_glyph_name(temp, &str);
code = pdfi_name_alloc(ctx, (byte *)str.data, str.size, (pdf_obj **)&n);
@@ -1284,6 +1482,18 @@ int pdfi_create_Encoding(pdf_context *ctx, pdf_obj *pdf_Encoding, pdf_obj *font_
}
else {
code = pdfi_dict_get(ctx, (pdf_dict *)pdf_Encoding, "BaseEncoding", (pdf_obj **)&n);
+ if (code >= 0) {
+ if (pdfi_encoding_name_to_index(n) < 0) {
+ pdfi_set_warning(ctx, 0, NULL, W_PDF_INVALID_FONT_BASEENC, "pdfi_create_Encoding", NULL);
+ pdfi_countdown(n);
+ n = NULL;
+ code = gs_error_undefined;
+ }
+ else if (pdfi_name_is(n, "StandardEncoding") == true) {
+ pdfi_set_warning(ctx, 0, NULL, W_PDF_INVALID_FONT_BASEENC, "pdfi_create_Encoding", NULL);
+ }
+ }
+
if (code < 0) {
code = pdfi_name_alloc(ctx, (byte *)"StandardEncoding", 16, (pdf_obj **)&n);
if (code < 0) {
@@ -1293,6 +1503,7 @@ int pdfi_create_Encoding(pdf_context *ctx, pdf_obj *pdf_Encoding, pdf_obj *font_
}
pdfi_countup(n);
}
+
code = pdfi_build_Encoding(ctx, n, (pdf_array *)*Encoding);
if (code < 0) {
pdfi_countdown(*Encoding);
@@ -1375,11 +1586,81 @@ gs_glyph pdfi_encode_char(gs_font * pfont, gs_char chr, gs_glyph_space_t not_use
return g;
}
+int pdfi_tounicode_char_to_unicode(pdf_context *ctx, pdf_cmap *tounicode, gs_glyph glyph, int ch, ushort *unicode_return, unsigned int length)
+{
+ int i, l = 0;
+ int code = gs_error_undefined;
+ unsigned char *ucode = (unsigned char *)unicode_return;
+
+ if (tounicode != NULL) {
+ gs_cmap_lookups_enum_t lenum;
+ gs_cmap_lookups_enum_init((const gs_cmap_t *)tounicode->gscmap, 0, &lenum);
+ while (l == 0 && (code = gs_cmap_enum_next_lookup(ctx->memory, &lenum)) == 0) {
+ gs_cmap_lookups_enum_t counter = lenum;
+ while (l == 0 && (code = gs_cmap_enum_next_entry(&counter) == 0)) {
+ if (counter.entry.value_type == CODE_VALUE_CID) {
+ unsigned int v = 0;
+ for (i = 0; i < counter.entry.key_size; i++) {
+ v |= (counter.entry.key[0][counter.entry.key_size - i - 1]) << (i * 8);
+ }
+ if (ch == v) {
+ if (counter.entry.value.size == 1) {
+ l = 2;
+ if (ucode != NULL && length >= l) {
+ ucode[0] = counter.entry.value.data[0];
+ ucode[1] = counter.entry.value.data[1];
+ }
+ }
+ else if (counter.entry.value.size == 2) {
+ l = 2;
+ if (ucode != NULL && length >= l) {
+ ucode[0] = counter.entry.value.data[0];
+ ucode[1] = counter.entry.value.data[1];
+ }
+ }
+ else if (counter.entry.value.size == 3) {
+ l = 4;
+ if (ucode != NULL && length >= l) {
+ ucode[0] = counter.entry.value.data[0];
+ ucode[1] = counter.entry.value.data[1];
+ ucode[2] = counter.entry.value.data[2];
+ ucode[3] = 0;
+ }
+ }
+ else {
+ l = 4;
+ if (ucode != NULL && length >= l) {
+ ucode[0] = counter.entry.value.data[0];
+ ucode[1] = counter.entry.value.data[1];
+ ucode[2] = counter.entry.value.data[1];
+ ucode[3] = counter.entry.value.data[3];
+ }
+ }
+ }
+ }
+ }
+ }
+ if (l > 0)
+ code = l;
+ }
+
+ return code;
+}
+
/* Get the unicode valude for a glyph FIXME - not written yet
*/
int pdfi_decode_glyph(gs_font * font, gs_glyph glyph, int ch, ushort *unicode_return, unsigned int length)
{
- return 0;
+ pdf_font *pdffont = (pdf_font *)font->client_data;
+ int code = 0;
+
+ if (pdffont->pdfi_font_type != e_pdf_cidfont_type0 && pdffont->pdfi_font_type != e_pdf_cidfont_type1
+ && pdffont->pdfi_font_type != e_pdf_cidfont_type2 && pdffont->pdfi_font_type != e_pdf_cidfont_type4) {
+ code = pdfi_tounicode_char_to_unicode(pdffont->ctx, (pdf_cmap *)pdffont->ToUnicode, glyph, ch, unicode_return, length);
+ }
+ if (code < 0) code = 0;
+
+ return code;
}
int pdfi_glyph_index(gs_font *pfont, byte *str, uint size, uint *glyph)
@@ -1562,8 +1843,7 @@ static int pdfi_font_set_internal_inner(pdf_context *ctx, const byte *fontname,
code = pdfi_set_font_internal(ctx, font, point_size);
exit:
- if (code < 0)
- pdfi_countdown(font); /* Keep the ref if succeeded */
+ pdfi_countdown(font);
return code;
}
diff --git a/pdf/pdf_font.h b/pdf/pdf_font.h
index 381ba729..da76aeb8 100644
--- a/pdf/pdf_font.h
+++ b/pdf/pdf_font.h
@@ -61,6 +61,7 @@ int pdfi_create_Encoding(pdf_context *ctx, pdf_obj *pdf_Encoding, pdf_obj *font_
gs_glyph pdfi_encode_char(gs_font * pfont, gs_char chr, gs_glyph_space_t not_used);
int pdfi_glyph_index(gs_font *pfont, byte *str, uint size, uint *glyph);
int pdfi_glyph_name(gs_font * pfont, gs_glyph glyph, gs_const_string * pstr);
+int pdfi_tounicode_char_to_unicode(pdf_context *ctx, pdf_cmap *tounicode, gs_glyph glyph, int ch, ushort *unicode_return, unsigned int length);
int pdfi_decode_glyph(gs_font * font, gs_glyph glyph, int ch, ushort *unicode_return, unsigned int length);
/* This is in pdf_fapi.c, but since it is the only exported function
diff --git a/pdf/pdf_font0.c b/pdf/pdf_font0.c
index 86baec8d..a322bfb4 100644
--- a/pdf/pdf_font0.c
+++ b/pdf/pdf_font0.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 2019-2021 Artifex Software, Inc.
+/* Copyright (C) 2019-2022 Artifex Software, Inc.
All Rights Reserved.
This software is provided AS-IS with no warranty, either express or
@@ -77,7 +77,6 @@ pdfi_font0_map_glyph_to_unicode(gs_font *font, gs_glyph glyph, int ch, ushort *u
int code = gs_error_undefined, i;
uchar *unicode_return = (uchar *)u;
pdf_cidfont_type2 *decfont = NULL;
- pdf_cmap *tounicode = (pdf_cmap *)pt0font->ToUnicode;
pdfi_cid_subst_nwp_table_t *substnwp = pt0font->substnwp;
code = pdfi_array_get(pt0font->ctx, pt0font->DescendantFonts, 0, (pdf_obj **)&decfont);
@@ -89,63 +88,7 @@ pdfi_font0_map_glyph_to_unicode(gs_font *font, gs_glyph glyph, int ch, ushort *u
code = gs_error_undefined;
while (1) { /* Loop to make retrying with a substitute CID easier */
/* Favour the ToUnicode if one exists */
- if (tounicode) {
- int l = 0;
- gs_cmap_lookups_enum_t lenum;
- gs_cmap_lookups_enum_init((const gs_cmap_t *)tounicode->gscmap, 0, &lenum);
- while (l == 0 && (code = gs_cmap_enum_next_lookup(font->memory, &lenum)) == 0) {
- gs_cmap_lookups_enum_t counter = lenum;
- while (l == 0 && (code = gs_cmap_enum_next_entry(&counter) == 0)) {
- if (counter.entry.value_type == CODE_VALUE_CID) {
- unsigned int v = 0;
- for (i = 0; i < counter.entry.key_size; i++) {
- v |= (counter.entry.key[0][counter.entry.key_size - i - 1]) << (i * 8);
- }
- if (ch == v) {
- if (counter.entry.value.size == 1) {
- l = 2;
- if (unicode_return != NULL && length >= l) {
- unicode_return[0] = counter.entry.value.data[0];
- unicode_return[1] = counter.entry.value.data[1];
- }
- }
- else if (counter.entry.value.size == 2) {
- l = 2;
- if (unicode_return != NULL && length >= l) {
- unicode_return[0] = counter.entry.value.data[0];
- unicode_return[1] = counter.entry.value.data[1];
- }
- }
- else if (counter.entry.value.size == 3) {
- l = 4;
- if (unicode_return != NULL && length >= l) {
- unicode_return[0] = counter.entry.value.data[0];
- unicode_return[1] = counter.entry.value.data[1];
- unicode_return[2] = counter.entry.value.data[2];
- unicode_return[3] = 0;
- }
- }
- else {
- l = 4;
- if (unicode_return != NULL && length >= l) {
- unicode_return[0] = counter.entry.value.data[0];
- unicode_return[1] = counter.entry.value.data[1];
- unicode_return[2] = counter.entry.value.data[1];
- unicode_return[3] = counter.entry.value.data[3];
- }
- }
- }
- }
- else {
- l = 0;
- }
- }
- }
- if (l > 0)
- code = l;
- else
- code = gs_error_undefined;
- }
+ code = pdfi_tounicode_char_to_unicode(pt0font->ctx, (pdf_cmap *)pt0font->ToUnicode, glyph, ch, u, length);
if (code == gs_error_undefined && pt0font->decoding) {
const int *n;
@@ -310,17 +253,22 @@ int pdfi_read_type0_font(pdf_context *ctx, pdf_dict *font_dict, pdf_dict *stream
basefont = NULL;
}
- code = pdfi_dict_get(ctx, font_dict, "ToUnicode", (pdf_obj **)&tounicode);
- if (code >= 0 && tounicode->type == PDF_STREAM) {
- pdf_cmap *tu = NULL;
- code = pdfi_read_cmap(ctx, tounicode, &tu);
- pdfi_countdown(tounicode);
- tounicode = (pdf_obj *)tu;
+ if (ctx->args.ignoretounicode != true) {
+ code = pdfi_dict_get(ctx, font_dict, "ToUnicode", (pdf_obj **)&tounicode);
+ if (code >= 0 && tounicode->type == PDF_STREAM) {
+ pdf_cmap *tu = NULL;
+ code = pdfi_read_cmap(ctx, tounicode, &tu);
+ pdfi_countdown(tounicode);
+ tounicode = (pdf_obj *)tu;
+ }
+ if (code < 0 || (tounicode != NULL && tounicode->type != PDF_CMAP)) {
+ pdfi_countdown(tounicode);
+ tounicode = NULL;
+ code = 0;
+ }
}
- if (code < 0 || (tounicode != NULL && tounicode->type != PDF_CMAP)) {
- pdfi_countdown(tounicode);
+ else {
tounicode = NULL;
- code = 0;
}
if (descpfont == NULL) {
@@ -332,6 +280,11 @@ int pdfi_read_type0_font(pdf_context *ctx, pdf_dict *font_dict, pdf_dict *stream
descpfont = (pdf_font *)pf->client_data;
}
+ if (descpfont->pdfi_font_type < e_pdf_cidfont_type0 || descpfont->pdfi_font_type > e_pdf_cidfont_type4) {
+ code = gs_note_error(gs_error_invalidfont);
+ goto error;
+ }
+
if (descpfont != NULL && ((pdf_cidfont_t *)descpfont)->substitute) {
pdf_obj *csi = NULL;
pdf_string *reg = NULL, *ord = NULL;
@@ -342,7 +295,8 @@ int pdfi_read_type0_font(pdf_context *ctx, pdf_dict *font_dict, pdf_dict *stream
if (code >= 0) {
(void)pdfi_dict_get(ctx, (pdf_dict *)csi, "Registry", (pdf_obj **)&reg);
(void)pdfi_dict_get(ctx, (pdf_dict *)csi, "Ordering", (pdf_obj **)&ord);
- if (reg != NULL && ord != NULL) {
+ if (reg != NULL && reg->type == PDF_STRING
+ && ord != NULL && ord->type == PDF_STRING) {
r = (char *)reg->data;
rlen = reg->length;
o = (char *)ord->data;
@@ -404,6 +358,7 @@ int pdfi_read_type0_font(pdf_context *ctx, pdf_dict *font_dict, pdf_dict *stream
pdft0->indirect_gen = font_dict->indirect_gen;
pdft0->Encoding = (pdf_obj *)pcmap;
pdft0->ToUnicode = tounicode;
+ tounicode = NULL;
pdft0->DescendantFonts = arr;
pdft0->PDF_font = font_dict;
pdfi_countup(font_dict);
@@ -537,12 +492,7 @@ int pdfi_read_type0_font(pdf_context *ctx, pdf_dict *font_dict, pdf_dict *stream
/* object_num can be zero if the dictionary was defined inline */
if (pdft0->object_num != 0) {
- code = replace_cache_entry(ctx, (pdf_obj *)pdft0);
- if (code < 0) {
- gs_free_object(ctx->memory, pfont0, "pdfi_read_type0_font(pfont0)");
- code = gs_note_error(gs_error_VMerror);
- goto error;
- }
+ (void)replace_cache_entry(ctx, (pdf_obj *)pdft0);
}
*ppdffont = (pdf_font *)pdft0;
diff --git a/pdf/pdf_font0.h b/pdf/pdf_font0.h
index a8a76c60..f033fbf5 100644
--- a/pdf/pdf_font0.h
+++ b/pdf/pdf_font0.h
@@ -26,7 +26,7 @@
int pdfi_read_type0_font(pdf_context *ctx, pdf_dict *font_dict, pdf_dict *stream_dict, pdf_dict *page_dict, pdf_font **ppdffont);
int pdfi_free_font_type0(pdf_obj *font);
-int pdfi_read_cidtype2_font(pdf_context *ctx, pdf_dict *font_dict, pdf_dict *stream_dict, pdf_dict *page_dict, byte *buf, int64_t buflen, pdf_font **ppfont);
+int pdfi_read_cidtype2_font(pdf_context *ctx, pdf_dict *font_dict, pdf_dict *stream_dict, pdf_dict *page_dict, byte *buf, int64_t buflen, int findex, pdf_font **ppfont);
int pdfi_free_font_cidtype2(pdf_obj *font);
diff --git a/pdf/pdf_font1.c b/pdf/pdf_font1.c
index 6586d891..87ba858b 100644
--- a/pdf/pdf_font1.c
+++ b/pdf/pdf_font1.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 2019-2021 Artifex Software, Inc.
+/* Copyright (C) 2019-2022 Artifex Software, Inc.
All Rights Reserved.
This software is provided AS-IS with no warranty, either express or
@@ -506,6 +506,7 @@ pdfi_read_type1_font(pdf_context *ctx, pdf_dict *font_dict, pdf_dict *stream_dic
pdf_obj *mapname = NULL;
pdf_obj *tmp = NULL;
pdf_font_type1 *t1f = NULL;
+ pdf_obj *tounicode = NULL;
ps_font_interp_private fpriv = { 0 };
(void)pdfi_dict_knownget_type(ctx, font_dict, "FontDescriptor", PDF_DICT, &fontdesc);
@@ -556,6 +557,9 @@ pdfi_read_type1_font(pdf_context *ctx, pdf_dict *font_dict, pdf_dict *stream_dic
t1f->object_num = font_dict->object_num;
t1f->generation_num = font_dict->generation_num;
+ t1f->indirect_num = font_dict->indirect_num;
+ t1f->indirect_gen = font_dict->indirect_gen;
+
t1f->PDF_font = font_dict;
pdfi_countup(font_dict);
t1f->BaseFont = basefont;
@@ -584,6 +588,26 @@ pdfi_read_type1_font(pdf_context *ctx, pdf_dict *font_dict, pdf_dict *stream_dic
t1f->descflags |= 4;
}
+ if (ctx->args.ignoretounicode != true) {
+ code = pdfi_dict_get(ctx, font_dict, "ToUnicode", (pdf_obj **)&tounicode);
+ if (code >= 0 && tounicode->type == PDF_STREAM) {
+ pdf_cmap *tu = NULL;
+ code = pdfi_read_cmap(ctx, tounicode, &tu);
+ pdfi_countdown(tounicode);
+ tounicode = (pdf_obj *)tu;
+ }
+ if (code < 0 || (tounicode != NULL && tounicode->type != PDF_CMAP)) {
+ pdfi_countdown(tounicode);
+ tounicode = NULL;
+ code = 0;
+ }
+ }
+ else {
+ tounicode = NULL;
+ }
+ t1f->ToUnicode = tounicode;
+ tounicode = NULL;
+
code = pdfi_dict_knownget_type(ctx, font_dict, "FirstChar", PDF_INT, &tmp);
if (code == 1) {
t1f->FirstChar = ((pdf_num *) tmp)->value.i;
@@ -683,14 +707,6 @@ pdfi_read_type1_font(pdf_context *ctx, pdf_dict *font_dict, pdf_dict *stream_dic
pdfi_countup(t1f->Encoding);
}
- code = pdfi_dict_knownget(ctx, font_dict, "ToUnicode", &tmp);
- if (code == 1) {
- t1f->ToUnicode = tmp;
- tmp = NULL;
- }
- else {
- t1f->ToUnicode = NULL;
- }
t1f->CharStrings = fpriv.u.t1.CharStrings;
pdfi_countup(t1f->CharStrings);
pdfi_patch_charstrings_dict(t1f->CharStrings);
@@ -719,9 +735,7 @@ pdfi_read_type1_font(pdf_context *ctx, pdf_dict *font_dict, pdf_dict *stream_dic
}
/* object_num can be zero if the dictionary was defined inline */
if (t1f->object_num != 0) {
- code = replace_cache_entry(ctx, (pdf_obj *) t1f);
- if (code < 0)
- goto error;
+ (void)replace_cache_entry(ctx, (pdf_obj *) t1f);
}
*ppdffont = (pdf_font *) t1f;
}
@@ -730,6 +744,7 @@ pdfi_read_type1_font(pdf_context *ctx, pdf_dict *font_dict, pdf_dict *stream_dic
error:
pdfi_countdown(fontdesc);
pdfi_countdown(basefont);
+ pdfi_countdown(tounicode);
pdfi_countdown(mapname);
pdfi_countdown(tmp);
pdfi_countdown(fpriv.u.t1.Encoding);
@@ -761,9 +776,6 @@ pdfi_free_font_type1(pdf_obj *font)
pdf_font_type1 *t1f = (pdf_font_type1 *) font;
int i;
- if (t1f->pfont->UID.xvalues != NULL) {
- gs_free_object(OBJ_MEMORY(font), t1f->pfont->UID.xvalues, "pdfi_free_font_type1(xuid)");
- }
gs_free_object(OBJ_MEMORY(font), t1f->pfont, "Free Type 1 gs_font");
pdfi_countdown(t1f->PDF_font);
diff --git a/pdf/pdf_font11.c b/pdf/pdf_font11.c
index ebe0cd21..09712f60 100644
--- a/pdf/pdf_font11.c
+++ b/pdf/pdf_font11.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 2020-2021 Artifex Software, Inc.
+/* Copyright (C) 2020-2022 Artifex Software, Inc.
All Rights Reserved.
This software is provided AS-IS with no warranty, either express or
@@ -276,7 +276,7 @@ pdfi_alloc_cidtype2_font(pdf_context *ctx, pdf_cidfont_type2 **font, bool is_cid
return 0;
}
-int pdfi_read_cidtype2_font(pdf_context *ctx, pdf_dict *font_dict, pdf_dict *stream_dict, pdf_dict *page_dict, byte *buf, int64_t buflen, pdf_font **ppfont)
+int pdfi_read_cidtype2_font(pdf_context *ctx, pdf_dict *font_dict, pdf_dict *stream_dict, pdf_dict *page_dict, byte *buf, int64_t buflen, int findex, pdf_font **ppfont)
{
pdf_cidfont_type2 *font;
int code = 0;
@@ -306,6 +306,9 @@ int pdfi_read_cidtype2_font(pdf_context *ctx, pdf_dict *font_dict, pdf_dict *str
pdfi_countup(font_dict);
font->object_num = font_dict->object_num;
font->generation_num = font_dict->generation_num;
+ font->indirect_num = font_dict->indirect_num;
+ font->indirect_gen = font_dict->indirect_gen;
+
font->FontDescriptor = (pdf_dict *)fontdesc;
fontdesc = NULL;
@@ -382,6 +385,48 @@ int pdfi_read_cidtype2_font(pdf_context *ctx, pdf_dict *font_dict, pdf_dict *str
obj = NULL;
}
+ cid2 = (gs_font_cid2 *)font->pfont;
+
+ code = pdfi_dict_knownget_type(ctx, font_dict, "CIDSystemInfo", PDF_DICT, (pdf_obj **)&obj);
+ if (code <= 0) {
+ cid2->cidata.common.CIDSystemInfo.Registry.data = NULL;
+ cid2->cidata.common.CIDSystemInfo.Registry.size = 0;
+ cid2->cidata.common.CIDSystemInfo.Ordering.data = NULL;
+ cid2->cidata.common.CIDSystemInfo.Ordering.size = 0;
+ }
+ else {
+ pdf_num *suppl = NULL;
+
+ code = pdfi_dict_knownget_type(ctx, (pdf_dict *)obj, "Registry", PDF_STRING, (pdf_obj **)&font->registry);
+ if (code <= 0) {
+ cid2->cidata.common.CIDSystemInfo.Registry.data = NULL;
+ cid2->cidata.common.CIDSystemInfo.Registry.size = 0;
+ }
+ else {
+ cid2->cidata.common.CIDSystemInfo.Registry.data = font->registry->data;
+ cid2->cidata.common.CIDSystemInfo.Registry.size = font->registry->length;
+ }
+ code = pdfi_dict_knownget_type(ctx, (pdf_dict *)obj, "Ordering", PDF_STRING, (pdf_obj **)&font->ordering);
+ if (code <= 0) {
+ cid2->cidata.common.CIDSystemInfo.Ordering.data = NULL;
+ cid2->cidata.common.CIDSystemInfo.Ordering.size = 0;
+ }
+ else {
+ cid2->cidata.common.CIDSystemInfo.Ordering.data = font->ordering->data;
+ cid2->cidata.common.CIDSystemInfo.Ordering.size = font->ordering->length;
+ }
+ code = pdfi_dict_knownget_type(ctx, (pdf_dict *)obj, "Supplement", PDF_INT, (pdf_obj **)&suppl);
+ if (code <= 0) {
+ cid2->cidata.common.CIDSystemInfo.Supplement = font->supplement = 0;
+ }
+ else {
+ cid2->cidata.common.CIDSystemInfo.Supplement = font->supplement = suppl->value.i;
+ }
+ pdfi_countdown(suppl);
+ }
+ pdfi_countdown(obj);
+ obj = NULL;
+
code = gs_type42_font_init((gs_font_type42 *)font->pfont, 0);
if (code < 0) {
goto error;
@@ -390,7 +435,6 @@ int pdfi_read_cidtype2_font(pdf_context *ctx, pdf_dict *font_dict, pdf_dict *str
font->pfont->procs.glyph_info = pdfi_cidtype2_glyph_info;
font->pfont->procs.enumerate_glyph = pdfi_cidtype2_enumerate_glyph;
- cid2 = (gs_font_cid2 *)font->pfont;
if (font->cidtogidmap.size > 0) {
gs_font_cid2 *cid2 = (gs_font_cid2 *)font->pfont;
if (cid2->data.numGlyphs > font->cidtogidmap.size >> 1)
@@ -425,9 +469,7 @@ int pdfi_read_cidtype2_font(pdf_context *ctx, pdf_dict *font_dict, pdf_dict *str
/* object_num can be zero if the dictionary was defined inline */
if (font->object_num != 0) {
- code = replace_cache_entry(ctx, (pdf_obj *)font);
- if (code < 0)
- goto error;
+ (void)replace_cache_entry(ctx, (pdf_obj *)font);
}
*ppfont = (pdf_font *)font;
@@ -454,6 +496,8 @@ int pdfi_free_font_cidtype2(pdf_obj *font)
pdfi_countdown(pdfcidf->W);
pdfi_countdown(pdfcidf->DW2);
pdfi_countdown(pdfcidf->W2);
+ pdfi_countdown(pdfcidf->registry);
+ pdfi_countdown(pdfcidf->ordering);
gs_free_object(OBJ_MEMORY(pdfcidf), pdfcidf, "pdfi_free_font_cidtype2(pdfcidf)");
return 0;
diff --git a/pdf/pdf_font1C.c b/pdf/pdf_font1C.c
index 10570912..f4788845 100644
--- a/pdf/pdf_font1C.c
+++ b/pdf/pdf_font1C.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 2019-2021 Artifex Software, Inc.
+/* Copyright (C) 2019-2022 Artifex Software, Inc.
All Rights Reserved.
This software is provided AS-IS with no warranty, either express or
@@ -128,7 +128,7 @@ pdfi_cff_glyph_data(gs_font_type1 *pfont, gs_glyph glyph, gs_glyph_data_t *pgd)
*/
if (cfffont->Encoding == NULL) {
char indstring[33];
- int l = gs_snprintf(indstring, 32, "%u", (unsigned int)glyph);
+ int l = gs_snprintf(indstring, sizeof(indstring), "%u", (unsigned int)glyph);
code = pdfi_name_alloc(ctx, (byte *) indstring, l, (pdf_obj **) &glyphname);
if (code >= 0)
@@ -431,18 +431,21 @@ pdfi_cff_cid_glyph_data(gs_font_base *pbfont, gs_glyph glyph, gs_glyph_data_t *p
gid = pdffont9->cidtogidmap.data[gid << 1] << 8 | pdffont9->cidtogidmap.data[(gid << 1) + 1];
}
- l = snprintf(nbuf, 64, "%" PRId64, gid);
+ l = gs_snprintf(nbuf, sizeof(nbuf), "%" PRId64, gid);
code = pdfi_name_alloc(pdffont9->ctx, (byte *) nbuf, l, (pdf_obj **) &glyphname);
if (code >= 0) {
pdfi_countup(glyphname);
code = pdfi_dict_get_by_key(pdffont9->ctx, pdffont9->CharStrings, glyphname, (pdf_obj **) &charstring);
- if (code >= 0 && charstring->length > 1) {
- if (gscidfont->cidata.FDBytes == 0)
- *pfidx = 0;
- else
- *pfidx = (int)charstring->data[0];
- if (pgd)
+ if (code >= 0 && charstring->length >= gscidfont->cidata.FDBytes) {
+ if (gscidfont->cidata.FDBytes != 0) {
+ if ((int)charstring->data[0] > gscidfont->cidata.FDArray_size)
+ code = gs_note_error(gs_error_invalidfont);
+ else
+ *pfidx = (int)charstring->data[0];
+ }
+
+ if (code >= 0 && pgd && ((int64_t)charstring->length - (int64_t)gscidfont->cidata.FDBytes) >= 0)
gs_glyph_data_from_bytes(pgd, charstring->data + gscidfont->cidata.FDBytes, 0, charstring->length - gscidfont->cidata.FDBytes, NULL);
}
}
@@ -452,6 +455,7 @@ pdfi_cff_cid_glyph_data(gs_font_base *pbfont, gs_glyph glyph, gs_glyph_data_t *p
return code;
}
+
static int
pdfi_cff_cidfont_glyph_info(gs_font *font, gs_glyph glyph, const gs_matrix *pmat,
int members, gs_glyph_info_t *info)
@@ -541,7 +545,6 @@ u32(const byte *p)
}
-
static int
subrbias(int count)
{
@@ -787,15 +790,17 @@ pdfi_read_cff_integer(byte *p, byte *e, int b0, int *val)
return p;
}
+#define PDFI_CFF_STACK_SIZE 48
+
static int
-pdfi_read_cff_dict(byte *p, byte *e, pdfi_gs_cff_font_priv *ptpriv, cff_font_offsets *offsets)
+pdfi_read_cff_dict(byte *p, byte *e, pdfi_gs_cff_font_priv *ptpriv, cff_font_offsets *offsets, bool topdict)
{
pdfi_cff_font_priv *font = &ptpriv->pdfcffpriv;
struct
{
int ival;
float fval;
- } args[48];
+ } args[PDFI_CFF_STACK_SIZE];
int offset;
int b0, n;
double f;
@@ -808,7 +813,7 @@ pdfi_read_cff_dict(byte *p, byte *e, pdfi_gs_cff_font_priv *ptpriv, cff_font_off
offset = p - font->cffdata;
n = 0;
- while (p < e) {
+ while (p < e && code >= 0) {
b0 = *p++;
switch (b0) {
@@ -832,186 +837,288 @@ pdfi_read_cff_dict(byte *p, byte *e, pdfi_gs_cff_font_priv *ptpriv, cff_font_off
}
b0 = 0x100 | *p++;
}
- if (b0 == 13) { /* UniqueID */
- }
-
- if (b0 == 14) { /* XUID */
- }
+ switch (b0) {
+ case 13: /* UniqueID */
+ break;
- if (b0 == 15) {
- offsets->charset_off = args[0].ival;
- }
+ case 14:
+ break; /* XUID */
- if (b0 == 16) {
- offsets->encoding_off = args[0].ival;
- }
+ /* some CFF file offsets */
+ case 15:
+ {
+ if (args[0].ival < 0) {
+ code = gs_note_error(gs_error_invalidfont);
+ break;
+ }
+ offsets->charset_off = args[0].ival;
+ break;
+ }
+ case 16:
+ {
+ if (args[0].ival < 0) {
+ code = gs_note_error(gs_error_invalidfont);
+ break;
+ }
+ offsets->encoding_off = args[0].ival;
+ break;
+ }
+ case 17:
+ {
+ if (args[0].ival < 0) {
+ code = gs_note_error(gs_error_invalidfont);
+ break;
+ }
+ font->charstrings = font->cffdata + args[0].ival;
+ break;
+ }
- /* some CFF file offsets */
+ case 18:
+ {
+ offsets->private_size = args[0].ival;
+ if (args[1].ival < 0) {
+ code = gs_note_error(gs_error_invalidfont);
+ break;
+ }
+ offsets->private_off = args[1].ival;
+ /* Catch a broken font with a self referencing Private dict */
+ if (topdict == true)
+ do_priv = offsets->private_size > 0 ? true : false;
+ else {
+ do_priv = false;
+ code = gs_error_invalidfont;
+ break;
+ }
+ break;
+ }
- if (b0 == 17) {
- font->charstrings = font->cffdata + args[0].ival;
- }
+ case 19:
+ {
+ if (args[0].ival < 0) {
+ code = gs_note_error(gs_error_invalidfont);
+ break;
+ }
+ font->subrs = font->cffdata + offset + args[0].ival;
+ break;
+ }
- if (b0 == 18) {
- offsets->private_size = args[0].ival;
- offsets->private_off = args[1].ival;
- do_priv = offsets->private_size > 0 ? true : false;
- }
+ case 256 | 30:
+ {
+ code = pdfi_make_string_from_sid(font->ctx, (pdf_obj **) &font->registry, font, offsets, args[0].ival);
+ if (code < 0)
+ break;
+ code = pdfi_make_string_from_sid(font->ctx, (pdf_obj **) &font->ordering, font, offsets, args[1].ival);
+ if (code < 0)
+ break;
+ font->supplement = args[2].ival;
+ offsets->have_ros = true;
+ ptpriv->FontType = ft_CID_encrypted;
+ break;
+ }
- if (b0 == 19) {
- font->subrs = font->cffdata + offset + args[0].ival;
- }
+ case 256 | 34:
+ {
+ font->cidcount = args[0].ival;
+ break;
+ }
- if (b0 == (256 | 30)) {
- code = pdfi_make_string_from_sid(font->ctx, (pdf_obj **) &font->registry, font, offsets, args[0].ival);
- if (code < 0)
- return code;
- code = pdfi_make_string_from_sid(font->ctx, (pdf_obj **) &font->ordering, font, offsets, args[1].ival);
- if (code < 0)
- return code;
- font->supplement = args[2].ival;
- offsets->have_ros = true;
- ptpriv->FontType = ft_CID_encrypted;
- }
+ case 256 | 35:
+ {
+ font->uidbase = args[0].ival;
+ break;
+ }
- if (b0 == (256 | 34)) {
- font->cidcount = args[0].ival;
- }
+ case 256 | 36:
+ {
+ offsets->fdarray_off = args[0].ival;
+ break;
+ }
- if (b0 == (256 | 35)) {
- font->uidbase = args[0].ival;
- }
+ case 256 | 37:
+ {
+ offsets->fdselect_off = args[0].ival;
+ break;
+ }
- if (b0 == (256 | 36)) {
- offsets->fdarray_off = args[0].ival;
- }
+ case 256 | 38:
+ {
+ pdf_string *fnamestr = NULL;
- if (b0 == (256 | 37)) {
- offsets->fdselect_off = args[0].ival;
- }
+ code = pdfi_make_string_from_sid(font->ctx, (pdf_obj **) &fnamestr, font, offsets, args[0].ival);
+ if (code >= 0) {
+ memcpy(ptpriv->font_name.chars, fnamestr->data, fnamestr->length);
+ memcpy(ptpriv->key_name.chars, fnamestr->data, fnamestr->length);
+ ptpriv->font_name.size = ptpriv->key_name.size = fnamestr->length;
+ pdfi_countdown(fnamestr);
+ }
+ break;
+ }
- if (b0 == (256 | 38)) {
- pdf_string *fnamestr = NULL;
+ /* Type1 stuff that need to be set for the ptpriv struct */
- code = pdfi_make_string_from_sid(font->ctx, (pdf_obj **) &fnamestr, font, offsets, args[0].ival);
- if (code >= 0) {
- memcpy(ptpriv->font_name.chars, fnamestr->data, fnamestr->length);
- memcpy(ptpriv->key_name.chars, fnamestr->data, fnamestr->length);
- ptpriv->font_name.size = ptpriv->key_name.size = fnamestr->length;
- pdfi_countdown(fnamestr);
+ case 256 | 6:
+ {
+ if (args[0].ival == 1) {
+ ptpriv->type1data.interpret = gs_type1_interpret;
+ ptpriv->type1data.lenIV = -1; /* FIXME */
+ }
+ break;
}
- }
- /* Type1 stuff that need to be set for the ptpriv struct */
+ case 256 | 7:
+ {
+ ptpriv->FontMatrix.xx = args[0].fval;
+ ptpriv->FontMatrix.xy = args[1].fval;
+ ptpriv->FontMatrix.yx = args[2].fval;
+ ptpriv->FontMatrix.yy = args[3].fval;
+ ptpriv->FontMatrix.tx = args[4].fval;
+ ptpriv->FontMatrix.ty = args[5].fval;
+ offsets->have_matrix = true;
+ break;
+ }
+ case 5:
+ {
+ ptpriv->FontBBox.p.x = args[0].fval;
+ ptpriv->FontBBox.p.y = args[1].fval;
+ ptpriv->FontBBox.q.x = args[2].fval;
+ ptpriv->FontBBox.q.y = args[3].fval;
+ break;
+ }
- if (b0 == (256 | 6)) {
- if (args[0].ival == 1) {
- ptpriv->type1data.interpret = gs_type1_interpret;
- ptpriv->type1data.lenIV = -1; /* FIXME */
+ case 20:
+ {
+ ptpriv->type1data.defaultWidthX = float2fixed(args[0].fval);
+ break;
}
- }
- if (b0 == (256 | 7)) {
- ptpriv->FontMatrix.xx = args[0].fval;
- ptpriv->FontMatrix.xy = args[1].fval;
- ptpriv->FontMatrix.yx = args[2].fval;
- ptpriv->FontMatrix.yy = args[3].fval;
- ptpriv->FontMatrix.tx = args[4].fval;
- ptpriv->FontMatrix.ty = args[5].fval;
- offsets->have_matrix = true;
- }
+ case 21:
+ {
+ ptpriv->type1data.nominalWidthX = float2fixed(args[0].fval);
+ break;
+ }
- if (b0 == 5) {
- ptpriv->FontBBox.p.x = args[0].fval;
- ptpriv->FontBBox.p.y = args[1].fval;
- ptpriv->FontBBox.q.x = args[2].fval;
- ptpriv->FontBBox.q.y = args[3].fval;
- }
+ case 256 | 19:
+ {
+ ptpriv->type1data.initialRandomSeed = args[0].ival;
+ break;
+ }
- if (b0 == 20)
- ptpriv->type1data.defaultWidthX = float2fixed(args[0].fval);
+ case 6:
+ {
+ if (n > max_BlueValues * 2) n = max_BlueValues * 2;
+ ptpriv->type1data.BlueValues.count = n;
+ ptpriv->type1data.BlueValues.values[0] = args[0].fval;
+ for (i = 1; i < n; i++) {
+ ptpriv->type1data.BlueValues.values[i] = ptpriv->type1data.BlueValues.values[i - 1] + args[i].fval;
+ }
+ break;
+ }
- if (b0 == 21)
- ptpriv->type1data.nominalWidthX = float2fixed(args[0].fval);
+ case 7:
+ {
+ if (n > max_OtherBlues * 2) n = max_OtherBlues * 2;
+ ptpriv->type1data.OtherBlues.count = n;
+ ptpriv->type1data.OtherBlues.values[0] = args[0].fval;
+ for (i = 1; i < n; i++) {
+ ptpriv->type1data.OtherBlues.values[i] = ptpriv->type1data.OtherBlues.values[i - 1] + args[i].fval;
+ }
+ break;
+ }
- if (b0 == (256 | 19))
- ptpriv->type1data.initialRandomSeed = args[0].ival;
+ case 8:
+ {
+ if (n > max_FamilyBlues * 2) n = max_FamilyBlues * 2;
+ ptpriv->type1data.FamilyBlues.count = n;
+ ptpriv->type1data.FamilyBlues.values[0] = args[0].fval;
+ for (i = 1; i < n; i++) {
+ ptpriv->type1data.FamilyBlues.values[i] = ptpriv->type1data.FamilyBlues.values[i - 1] + args[i].fval;
+ }
+ break;
+ }
- if (b0 == 6) {
- ptpriv->type1data.BlueValues.count = n;
- ptpriv->type1data.BlueValues.values[0] = args[0].fval;
- for (i = 1; i < n; i++) {
- ptpriv->type1data.BlueValues.values[i] = ptpriv->type1data.BlueValues.values[i - 1] + args[i].fval;
+ case 9:
+ {
+ if (n > max_FamilyOtherBlues * 2) n = max_FamilyOtherBlues * 2;
+ ptpriv->type1data.FamilyOtherBlues.count = n;
+ ptpriv->type1data.FamilyOtherBlues.values[0] = args[0].fval;
+ for (i = 1; i < n; i++) {
+ ptpriv->type1data.FamilyOtherBlues.values[i] = ptpriv->type1data.FamilyOtherBlues.values[i - 1] + args[i].fval;
+ }
+ break;
}
- }
- if (b0 == 7) {
- ptpriv->type1data.OtherBlues.count = n;
- ptpriv->type1data.OtherBlues.values[0] = args[0].fval;
- for (i = 1; i < n; i++) {
- ptpriv->type1data.OtherBlues.values[i] = ptpriv->type1data.OtherBlues.values[i - 1] + args[i].fval;
+ case 10:
+ {
+ ptpriv->type1data.StdHW.count = 1;
+ ptpriv->type1data.StdHW.values[0] = args[0].fval;
+ break;
}
- }
- if (b0 == 8) {
- ptpriv->type1data.FamilyBlues.count = n;
- ptpriv->type1data.FamilyBlues.values[0] = args[0].fval;
- for (i = 1; i < n; i++) {
- ptpriv->type1data.FamilyBlues.values[i] = ptpriv->type1data.FamilyBlues.values[i - 1] + args[i].fval;
+ case 11:
+ {
+ ptpriv->type1data.StdVW.count = 1;
+ ptpriv->type1data.StdVW.values[0] = args[0].fval;
+ break;
}
- }
- if (b0 == 9) {
- ptpriv->type1data.FamilyOtherBlues.count = n;
- ptpriv->type1data.FamilyOtherBlues.values[0] = args[0].fval;
- for (i = 1; i < n; i++) {
- ptpriv->type1data.FamilyOtherBlues.values[i] = ptpriv->type1data.FamilyOtherBlues.values[i - 1] + args[i].fval;
+ case 256 | 9:
+ {
+ ptpriv->type1data.BlueScale = args[0].fval;
+ break;
}
- }
- if (b0 == 10) {
- ptpriv->type1data.StdHW.count = 1;
- ptpriv->type1data.StdHW.values[0] = args[0].fval;
- }
+ case 256 | 10:
+ {
+ ptpriv->type1data.BlueShift = args[0].fval;
+ break;
+ }
- if (b0 == 11) {
- ptpriv->type1data.StdVW.count = 1;
- ptpriv->type1data.StdVW.values[0] = args[0].fval;
- }
+ case 256 | 11:
+ {
+ ptpriv->type1data.BlueFuzz = (int)args[0].fval;
+ break;
+ }
- if (b0 == (256 | 9))
- ptpriv->type1data.BlueScale = args[0].fval;
+ case 256 | 12:
+ {
+ if (n > max_StemSnap) n = max_StemSnap;
+ ptpriv->type1data.StemSnapH.count = n;
+ for (f = 0, i = 0; i < n; f += args[i].fval, i++)
+ ptpriv->type1data.StemSnapH.values[i] = f;
+ break;
+ }
- if (b0 == (256 | 10))
- ptpriv->type1data.BlueShift = args[0].fval;
+ case 256 | 13:
+ {
+ if (n > max_StemSnap) n = max_StemSnap;
+ ptpriv->type1data.StemSnapV.count = n;
+ for (f = 0, i = 0; i < n; f += args[i].fval, i++)
+ ptpriv->type1data.StemSnapV.values[i] = f;
+ break;
+ }
- if (b0 == (256 | 11))
- ptpriv->type1data.BlueFuzz = (int)args[0].fval;
+ case 256 | 14:
+ {
+ ptpriv->type1data.ForceBold = args[0].ival;
+ break;
+ }
- if (b0 == (256 | 12)) {
- ptpriv->type1data.StemSnapH.count = n;
- for (f = 0, i = 0; i < n; f += args[i].fval, i++)
- ptpriv->type1data.StemSnapH.values[i] = f;
- }
+ case 256 | 17:
+ {
+ ptpriv->type1data.LanguageGroup = args[0].ival;
+ break;
+ }
- if (b0 == (256 | 13)) {
- ptpriv->type1data.StemSnapV.count = n;
- for (f = 0, i = 0; i < n; f += args[i].fval, i++)
- ptpriv->type1data.StemSnapV.values[i] = f;
+ case 256 | 18:
+ {
+ ptpriv->type1data.ExpansionFactor = args[0].fval;
+ break;
+ }
+ default:
+ break;
}
-
- if (b0 == (256 | 14))
- ptpriv->type1data.ForceBold = args[0].ival;
-
- if (b0 == (256 | 17))
- ptpriv->type1data.LanguageGroup = args[0].ival;
-
- if (b0 == (256 | 18))
- ptpriv->type1data.ExpansionFactor = args[0].fval;
-
n = 0;
}
-
else {
if (b0 == 30) {
p = pdfi_read_cff_real(p, e, &args[n].fval);
@@ -1041,6 +1148,10 @@ pdfi_read_cff_dict(byte *p, byte *e, pdfi_gs_cff_font_priv *ptpriv, cff_font_off
dmprintf1(ptpriv->memory, "CFF: corrupt dictionary operand (b0 = %d)", b0);
}
}
+ if (n >= PDFI_CFF_STACK_SIZE) {
+ code = gs_error_invalidfont;
+ break;
+ }
}
/* recurse for the private dictionary */
@@ -1053,7 +1164,7 @@ pdfi_read_cff_dict(byte *p, byte *e, pdfi_gs_cff_font_priv *ptpriv, cff_font_off
if (p == NULL)
code = gs_error_invalidfont;
else
- code = pdfi_read_cff_dict(font->cffdata + offsets->private_off, dend, ptpriv, offsets);
+ code = pdfi_read_cff_dict(font->cffdata + offsets->private_off, dend, ptpriv, offsets, false);
if (code < 0)
dmprintf(ptpriv->memory, "CFF: cannot read private dictionary");
@@ -1101,6 +1212,11 @@ pdfi_count_cff_index(byte *p, byte *e, int *countp)
p += offsize;
p--; /* stupid offsets */
+ if (last < 0) {
+ gs_throw(-1, "corrupt index");
+ return 0;
+ }
+
if (p + last > e) {
gs_throw(-1, "not enough data for index data");
return 0;
@@ -1268,79 +1384,84 @@ pdfi_cff_build_encoding(pdf_context *ctx, pdfi_gs_cff_font_priv *ptpriv, cff_fon
}
}
else {
- code = pdfi_object_alloc(ctx, PDF_ARRAY, 256, (pdf_obj **) &font->Encoding);
- if (code < 0)
- return code;
+ if (font->cffdata + offsets->encoding_off > font->cffend) {
+ code = gs_note_error(gs_error_invalidfont);
+ }
+ else {
+ code = pdfi_object_alloc(ctx, PDF_ARRAY, 256, (pdf_obj **) &font->Encoding);
+ if (code < 0)
+ return code;
- code = pdfi_name_alloc(ctx, (byte *) ".notdef", 7, (pdf_obj **) &ndname);
- if (code < 0)
- return code;
+ code = pdfi_name_alloc(ctx, (byte *) ".notdef", 7, (pdf_obj **) &ndname);
+ if (code < 0)
+ return code;
- pdfi_countup(font->Encoding);
- pdfi_countup(ndname);
- code = 0;
- /* Prepopulate with notdefs */
- for (i = 0; i < 256 && code >= 0; i++) {
- code = pdfi_array_put(ctx, font->Encoding, (uint64_t) i, (pdf_obj *) ndname);
- }
+ pdfi_countup(font->Encoding);
+ pdfi_countup(ndname);
+ code = 0;
+ /* Prepopulate with notdefs */
+ for (i = 0; i < 256 && code >= 0; i++) {
+ code = pdfi_array_put(ctx, font->Encoding, (uint64_t) i, (pdf_obj *) ndname);
+ }
- if (code >= 0) {
- byte *p = font->cffdata + offsets->encoding_off;
+ if (code >= 0) {
+ byte *p = font->cffdata + offsets->encoding_off;
- enc_format = p[0];
+ enc_format = p[0];
- lp = pdfi_find_cff_index(font->charstrings, font->cffend, 0, &s, &e);
- if (lp == NULL) {
- code = gs_note_error(gs_error_rangecheck);
- goto done;
- }
- code = pdfi_object_alloc(ctx, PDF_STRING, e - s, (pdf_obj **) &pstr);
- if (code < 0)
- goto done;
- memcpy(pstr->data, s, e - s);
- pdfi_countup(pstr);
- code =
- pdfi_dict_put_obj(ctx, font->CharStrings, (pdf_obj *) ndname, (pdf_obj *) pstr);
- pdfi_countdown(pstr);
- if (code < 0) {
- goto done;
- }
- pdfi_countdown(ndname);
- ndname = NULL; /* just to avoid bad things! */
+ lp = pdfi_find_cff_index(font->charstrings, font->cffend, 0, &s, &e);
+ if (lp == NULL) {
+ code = gs_note_error(gs_error_rangecheck);
+ goto done;
+ }
+ code = pdfi_object_alloc(ctx, PDF_STRING, e - s, (pdf_obj **) &pstr);
+ if (code < 0)
+ goto done;
+ memcpy(pstr->data, s, e - s);
+ pdfi_countup(pstr);
+ code =
+ pdfi_dict_put_obj(ctx, font->CharStrings, (pdf_obj *) ndname, (pdf_obj *) pstr, true);
+ pdfi_countdown(pstr);
+ if (code < 0) {
+ goto done;
+ }
+ pdfi_countdown(ndname);
+ ndname = NULL; /* just to avoid bad things! */
+
+ if ((enc_format &0x7f) == 0) {
+ unsigned int n_codes = p[1];
- if ((enc_format &0x7f) == 0) {
- unsigned int n_codes = p[1];
+ if (p + 2 + n_codes > font->cffend) {
+ return_error(gs_error_invalidfont);
+ }
+ gid2char[0] = 0;
+ for (i = 0; i < n_codes; i++) {
+ gid2char[i + 1] = p[2 + i];
+ }
+ memset(gid2char + n_codes + 1, 0, sizeof(gid2char) - n_codes - 1);
+ supp_enc_offset = 2 + n_codes;
+ }
+ else if ((enc_format &0x7f) == 1) {
+ unsigned int n_ranges = p[1];
+ unsigned int first, left, j, k = 1;
- if (p + 2 + n_codes > font->cffend) {
- return_error(gs_error_invalidfont);
+ if (p + 2 + 2 * n_ranges > font->cffend) {
+ return_error(gs_error_invalidfont);
+ }
+ gid2char[0] = 0;
+ for (i = 0; i < n_ranges; i++) {
+ first = p[2 + 2 * i];
+ left = p[3 + 2 * i];
+ for (j = 0; j <= left && k < 256; j++)
+ gid2char[k++] = first + j;
+ }
+ memset(gid2char + k, 0, sizeof(gid2char) - k);
+ supp_enc_offset = 2 * n_ranges + 2;
}
- gid2char[0] = 0;
- for (i = 0; i < n_codes; i++) {
- gid2char[i + 1] = p[2 + i];
+ else {
+ return_error(gs_error_rangecheck);
}
- memset(gid2char + n_codes + 1, 0, sizeof(gid2char) - n_codes - 1);
- supp_enc_offset = 2 + n_codes;
- }
- else if ((enc_format &0x7f) == 1) {
- unsigned int n_ranges = p[1];
- unsigned int first, left, j, k = 1;
-
- if (p + 2 + 2 * n_ranges > font->cffend) {
- return_error(gs_error_invalidfont);
- }
- gid2char[0] = 0;
- for (i = 0; i < n_ranges; i++) {
- first = p[2 + 2 * i];
- left = p[3 + 2 * i];
- for (j = 0; j <= left && k < 256; j++)
- gid2char[k++] = first + j;
- }
- memset(gid2char + k, 0, sizeof(gid2char) - k);
- supp_enc_offset = 2 * n_ranges + 2;
- }
- else {
- return_error(gs_error_rangecheck);
}
}
}
@@ -1361,7 +1482,7 @@ pdfi_cff_build_encoding(pdf_context *ctx, pdfi_gs_cff_font_priv *ptpriv, cff_fon
pdfi_countup(pstr);
if (ptpriv->forcecid) {
char buf[40];
- int len = gs_sprintf(buf, "%d", 0);
+ int len = gs_snprintf(buf, sizeof(buf), "%d", 0);
code = pdfi_name_alloc(ctx, (byte *) buf, len, &gname);
if (code < 0) {
@@ -1378,7 +1499,7 @@ pdfi_cff_build_encoding(pdf_context *ctx, pdfi_gs_cff_font_priv *ptpriv, cff_fon
}
pdfi_countup(gname);
}
- code = pdfi_dict_put_obj(ctx, font->CharStrings, gname, (pdf_obj *) pstr);
+ code = pdfi_dict_put_obj(ctx, font->CharStrings, gname, (pdf_obj *) pstr, true);
pdfi_countdown(pstr);
pdfi_countdown(gname);
if (code < 0)
@@ -1399,7 +1520,7 @@ pdfi_cff_build_encoding(pdf_context *ctx, pdfi_gs_cff_font_priv *ptpriv, cff_fon
if (ptpriv->forcecid) {
char buf[40];
- int len = gs_sprintf(buf, "%d", gid);
+ int len = gs_snprintf(buf, sizeof(buf), "%d", gid);
code = pdfi_name_alloc(ctx, (byte *) buf, len, &gname);
if (code < 0) {
@@ -1415,7 +1536,7 @@ pdfi_cff_build_encoding(pdf_context *ctx, pdfi_gs_cff_font_priv *ptpriv, cff_fon
}
if ((code = pdfi_make_name_from_sid(ctx, &gname, font, offsets, sid)) < 0) {
char buf[40];
- int len = gs_sprintf(buf, "sid-%d", sid);
+ int len = gs_snprintf(buf, sizeof(buf), "sid-%d", sid);
code = pdfi_name_alloc(ctx, (byte *) buf, len, &gname);
if (code < 0) {
@@ -1425,7 +1546,7 @@ pdfi_cff_build_encoding(pdf_context *ctx, pdfi_gs_cff_font_priv *ptpriv, cff_fon
}
}
pdfi_countup(gname);
- code = pdfi_dict_put_obj(ctx, font->CharStrings, gname, (pdf_obj *) pstr);
+ code = pdfi_dict_put_obj(ctx, font->CharStrings, gname, (pdf_obj *) pstr, true);
pdfi_countdown(pstr);
if (code < 0) {
pdfi_countdown(gname);
@@ -1437,7 +1558,7 @@ pdfi_cff_build_encoding(pdf_context *ctx, pdfi_gs_cff_font_priv *ptpriv, cff_fon
pdfi_countdown(gname);
}
- if (offsets->encoding_off > 1 && (enc_format &0x80)) {
+ if (offsets->encoding_off > 1 && (enc_format & 0x80)) {
unsigned int n_supp, charcode, sid;
byte *p = font->cffdata + offsets->encoding_off + supp_enc_offset;
pdf_obj *gname;
@@ -1450,7 +1571,7 @@ pdfi_cff_build_encoding(pdf_context *ctx, pdfi_gs_cff_font_priv *ptpriv, cff_fon
if ((code = pdfi_make_name_from_sid(ctx, &gname, font, offsets, sid)) < 0) {
char buf[40];
- int len = gs_sprintf(buf, "sid-%d", sid);
+ int len = gs_snprintf(buf, sizeof(buf), "sid-%d", sid);
if (len > 0)
code = pdfi_name_alloc(ctx, (byte *) buf, len, &gname);
@@ -1534,6 +1655,7 @@ pdfi_read_cff(pdf_context *ctx, pdfi_gs_cff_font_priv *ptpriv)
/* String index */
pstore = p;
p = pdfi_find_cff_index(p, e, 0, &strp, &stre);
+
offsets.strings_off = pstore - font->cffdata;
p = pdfi_count_cff_index(pstore, e, &count);
@@ -1550,7 +1672,7 @@ pdfi_read_cff(pdf_context *ctx, pdfi_gs_cff_font_priv *ptpriv)
font->NumGlobalSubrs = 0;
}
/* Read the top and private dictionaries */
- code = pdfi_read_cff_dict(dictp, dicte, ptpriv, &offsets);
+ code = pdfi_read_cff_dict(dictp, dicte, ptpriv, &offsets, true);
if (code < 0)
return gs_rethrow(code, "cannot read top dictionary");
@@ -1576,6 +1698,7 @@ pdfi_read_cff(pdf_context *ctx, pdfi_gs_cff_font_priv *ptpriv)
font->GlobalSubrs->refcnt = 1;
for (i = 0; i < font->NumGlobalSubrs; i++) {
pdf_string *gsubrstr;
+ pdf_obj *nullobj = NULL;
p = pdfi_find_cff_index(font->gsubrs, font->cffend, i, &strp, &stre);
if (p) {
@@ -1591,6 +1714,17 @@ pdfi_read_cff(pdf_context *ctx, pdfi_gs_cff_font_priv *ptpriv)
}
}
}
+ else {
+ code = 0;
+ if (nullobj == NULL)
+ code = pdfi_object_alloc(ctx, PDF_NULL, 1, (pdf_obj **) &nullobj);
+ if (code >= 0)
+ code = pdfi_array_put(ctx, font->GlobalSubrs, (uint64_t) i, (pdf_obj *) nullobj);
+ if (code < 0) {
+ pdfi_countdown(font->GlobalSubrs);
+ font->GlobalSubrs = NULL;
+ }
+ }
}
}
}
@@ -1598,10 +1732,11 @@ pdfi_read_cff(pdf_context *ctx, pdfi_gs_cff_font_priv *ptpriv)
font->Subrs = NULL;
if (font->NumSubrs > 0) {
code = pdfi_object_alloc(ctx, PDF_ARRAY, font->NumSubrs, (pdf_obj **) &font->Subrs);
- if (code >= 0) {
+ if (code >= 0 && font->Subrs != NULL) {
font->Subrs->refcnt = 1;
for (i = 0; i < font->NumSubrs; i++) {
pdf_string *subrstr;
+ pdf_obj *nullobj = NULL;
p = pdfi_find_cff_index(font->subrs, font->cffend, i, &strp, &stre);
if (p) {
@@ -1615,6 +1750,19 @@ pdfi_read_cff(pdf_context *ctx, pdfi_gs_cff_font_priv *ptpriv)
}
}
}
+ else {
+ code = 0;
+ if (nullobj == NULL)
+ code = pdfi_object_alloc(ctx, PDF_NULL, 1, (pdf_obj **) &nullobj);
+ if (code >= 0)
+ code = pdfi_array_put(ctx, font->Subrs, (uint64_t) i, (pdf_obj *) nullobj);
+ if (code < 0) {
+ pdfi_countdown(font->Subrs);
+ font->Subrs = NULL;
+ font->NumSubrs = 0;
+ break;
+ }
+ }
}
}
}
@@ -1641,6 +1789,9 @@ pdfi_read_cff(pdf_context *ctx, pdfi_gs_cff_font_priv *ptpriv)
charset_proc = expert_subset_charset_proc;
break;
default:{
+ if (font->cffdata + offsets.charset_off >= font->cffend)
+ return_error(gs_error_rangecheck);
+
switch ((int)font->cffdata[offsets.charset_off]) {
case 0:
charset_proc = format0_charset_proc;
@@ -1663,7 +1814,7 @@ pdfi_read_cff(pdf_context *ctx, pdfi_gs_cff_font_priv *ptpriv)
int (*fdselect_proc)(const byte *p, const byte *pe, unsigned int i);
p = pdfi_count_cff_index(font->cffdata + offsets.fdarray_off, e, &fdarray_size);
- if (!p)
+ if (!p || fdarray_size < 1 || fdarray_size > 64) /* 64 is arbitrary, but seems a reasonable upper limit */
return gs_rethrow(-1, "cannot read charstrings index");
ptpriv->cidata.FDBytes = 1; /* Basically, always 1 just now */
@@ -1700,7 +1851,7 @@ pdfi_read_cff(pdf_context *ctx, pdfi_gs_cff_font_priv *ptpriv)
if (fddicte > font->cffend)
fddicte = font->cffend;
- code = pdfi_read_cff_dict(fddictp, fddicte, &fdptpriv, &offsets);
+ code = pdfi_read_cff_dict(fddictp, fddicte, &fdptpriv, &offsets, true);
if (code < 0) {
ptpriv->cidata.FDArray[i] = NULL;
code = gs_note_error(gs_error_invalidfont);
@@ -1782,6 +1933,9 @@ pdfi_read_cff(pdf_context *ctx, pdfi_gs_cff_font_priv *ptpriv)
}
}
else {
+ if (font->cffdata + offsets.fdselect_off > font->cffend)
+ return_error(gs_error_rangecheck);
+
switch ((int)font->cffdata[offsets.fdselect_off]) {
case 0:
fdselect_proc = format0_fdselect_proc;
@@ -2124,17 +2278,16 @@ pdfi_read_cff_font(pdf_context *ctx, pdf_dict *font_dict, pdf_dict *stream_dict,
/* Vestigial magic number check - we can't check the third byte, as we have out of
spec fonts that have a head size > 4
*/
- if (fbuf[0] == 1 && fbuf[1] == 0) {
+ if (fbuf[0] == 1 && fbuf[1] == 0 && code >= 0) {
pdfi_gs_cff_font_priv cffpriv;
- if (code >= 0) {
- pdfi_init_cff_font_priv(ctx, &cffpriv, fbuf, fbuflen, false);
- cffpriv.forcecid = forcecid;
- code = pdfi_read_cff(ctx, &cffpriv);
- }
+ pdfi_init_cff_font_priv(ctx, &cffpriv, fbuf, fbuflen, false);
+ cffpriv.forcecid = forcecid;
+ code = pdfi_read_cff(ctx, &cffpriv);
+
if (code >= 0) {
if (cffpriv.FontType == ft_CID_encrypted) {
- pdf_obj *obj;
+ pdf_obj *obj = NULL;
pdf_cidfont_type0 *cffcid;
gs_font_cid0 *pfont;
@@ -2155,9 +2308,50 @@ pdfi_read_cff_font(pdf_context *ctx, pdf_dict *font_dict, pdf_dict *stream_dict,
pfont->FAPI = NULL;
pfont->base = (gs_font *) cffcid->pfont;
- cffcid->registry = cffpriv.pdfcffpriv.registry;
- cffcid->ordering = cffpriv.pdfcffpriv.ordering;
- cffcid->supplement = cffpriv.pdfcffpriv.supplement;
+ code = pdfi_dict_knownget_type(ctx, font_dict, "CIDSystemInfo", PDF_DICT, (pdf_obj **)&obj);
+ if (code <= 0) {
+ cffcid->registry = cffpriv.pdfcffpriv.registry;
+ cffcid->ordering = cffpriv.pdfcffpriv.ordering;
+ cffcid->supplement = cffpriv.pdfcffpriv.supplement;
+ }
+ else {
+ pdf_num *suppl = NULL;
+
+ code = pdfi_dict_knownget_type(ctx, (pdf_dict *)obj, "Registry", PDF_STRING, (pdf_obj **)&cffcid->registry);
+ if (code <= 0) {
+ cffcid->registry = cffpriv.pdfcffpriv.registry;
+ }
+ else {
+ pdfi_countdown(cffpriv.pdfcffpriv.registry);
+ cffpriv.pdfcffpriv.registry = NULL;
+ }
+
+ code = pdfi_dict_knownget_type(ctx, (pdf_dict *)obj, "Ordering", PDF_STRING, (pdf_obj **)&cffcid->ordering);
+ if (code <= 0) {
+ cffcid->ordering = cffpriv.pdfcffpriv.ordering;
+ }
+ else {
+ pdfi_countdown(cffpriv.pdfcffpriv.ordering);
+ cffpriv.pdfcffpriv.ordering = NULL;
+ }
+ code = pdfi_dict_knownget_type(ctx, (pdf_dict *)obj, "Supplement", PDF_INT, (pdf_obj **)&suppl);
+ if (code <= 0 || suppl->type != PDF_INT) {
+ cffcid->supplement = cffpriv.pdfcffpriv.supplement;
+ }
+ else {
+ cffcid->supplement = suppl->value.i;
+ }
+ pdfi_countdown(suppl);
+ }
+ pdfi_countdown(obj);
+ obj = NULL;
+
+ pfont->cidata.common.CIDSystemInfo.Registry.data = cffcid->registry->data;
+ pfont->cidata.common.CIDSystemInfo.Registry.size = cffcid->registry->length;
+ pfont->cidata.common.CIDSystemInfo.Ordering.data = cffcid->ordering->data;
+ pfont->cidata.common.CIDSystemInfo.Ordering.size = cffcid->ordering->length;
+ pfont->cidata.common.CIDSystemInfo.Supplement = cffcid->supplement;
+
cffcid->FontDescriptor = (pdf_dict *) fontdesc;
fontdesc = NULL;
@@ -2167,19 +2361,13 @@ pdfi_read_cff_font(pdf_context *ctx, pdf_dict *font_dict, pdf_dict *stream_dict,
cffcid->cidtogidmap.data = NULL;
cffcid->cidtogidmap.size = 0;
- pfont->cidata.common.CIDSystemInfo.Registry.data = cffcid->registry->data;
- pfont->cidata.common.CIDSystemInfo.Registry.size = cffcid->registry->length;
- pfont->cidata.common.CIDSystemInfo.Ordering.data = cffcid->ordering->data;
- pfont->cidata.common.CIDSystemInfo.Ordering.size = cffcid->ordering->length;
- pfont->cidata.common.CIDSystemInfo.Supplement = cffcid->supplement;
pfont->client_data = cffcid;
cffcid->object_num = font_dict->object_num;
cffcid->generation_num = font_dict->generation_num;
cffcid->indirect_num = font_dict->indirect_num;
cffcid->indirect_gen = font_dict->indirect_gen;
- cffcid->PDF_font = font_dict;
- pdfi_countup(font_dict);
+
cffcid->CharStrings = cffpriv.pdfcffpriv.CharStrings;
cffpriv.pdfcffpriv.CharStrings = NULL;
@@ -2253,6 +2441,7 @@ pdfi_read_cff_font(pdf_context *ctx, pdf_dict *font_dict, pdf_dict *stream_dict,
code = pdfi_font_generate_pseudo_XUID(ctx, font_dict, (gs_font_base *)cffcid->pfont);
if (code < 0)
uid_set_invalid(&cffcid->pfont->UID);
+
}
else if (forcecid) {
pdf_obj *obj;
@@ -2329,8 +2518,7 @@ pdfi_read_cff_font(pdf_context *ctx, pdf_dict *font_dict, pdf_dict *stream_dict,
fdcfffont->object_num = 0;
fdcfffont->generation_num = 0;
- fdcfffont->PDF_font = font_dict;
- pdfi_countup(font_dict);
+
(void)pdfi_dict_knownget_type(ctx, font_dict, "BaseFont", PDF_NAME, &basefont);
fdcfffont->BaseFont = basefont;
fdcfffont->Name = basefont;
@@ -2340,9 +2528,12 @@ pdfi_read_cff_font(pdf_context *ctx, pdf_dict *font_dict, pdf_dict *stream_dict,
cffpriv.pdfcffpriv.Encoding = NULL;
fdcfffont->CharStrings = cffpriv.pdfcffpriv.CharStrings;
+ cffpriv.pdfcffpriv.CharStrings = NULL;
fdcfffont->Subrs = cffpriv.pdfcffpriv.Subrs;
+ cffpriv.pdfcffpriv.Subrs = NULL;
fdcfffont->NumSubrs = cffpriv.pdfcffpriv.NumSubrs;
fdcfffont->GlobalSubrs = cffpriv.pdfcffpriv.GlobalSubrs;
+ cffpriv.pdfcffpriv.GlobalSubrs = NULL;
fdcfffont->NumGlobalSubrs = cffpriv.pdfcffpriv.NumGlobalSubrs;
cffcid->CharStrings = fdcfffont->CharStrings;
@@ -2356,9 +2547,6 @@ pdfi_read_cff_font(pdf_context *ctx, pdf_dict *font_dict, pdf_dict *stream_dict,
cffcid->FontDescriptor = (pdf_dict *) fontdesc;
fontdesc = NULL;
- cffcid->PDF_font = font_dict;
- pdfi_countup(font_dict);
-
cffcid->registry = registry;
cffcid->ordering = ordering;
registry = ordering = NULL;
@@ -2389,11 +2577,9 @@ pdfi_read_cff_font(pdf_context *ctx, pdf_dict *font_dict, pdf_dict *stream_dict,
cffcid->generation_num = font_dict->generation_num;
cffcid->indirect_num = font_dict->indirect_num;
cffcid->indirect_gen = font_dict->indirect_gen;
+
cffcid->PDF_font = font_dict;
pdfi_countup(font_dict);
- cffcid->CharStrings = cffpriv.pdfcffpriv.CharStrings;
- cffcid->Subrs = cffpriv.pdfcffpriv.Subrs;
- cffcid->GlobalSubrs = cffpriv.pdfcffpriv.GlobalSubrs;
cffcid->cidtogidmap.data = NULL;
cffcid->cidtogidmap.size = 0;
@@ -2457,6 +2643,7 @@ pdfi_read_cff_font(pdf_context *ctx, pdf_dict *font_dict, pdf_dict *stream_dict,
else {
pdf_font_cff *cfffont;
gs_font_type1 *pfont = NULL;
+ pdf_obj *tounicode = NULL;
code = pdfi_alloc_cff_font(ctx, &cfffont, font_dict->object_num, false);
pfont = (gs_font_type1 *) cfffont->pfont;
@@ -2472,8 +2659,9 @@ pdfi_read_cff_font(pdf_context *ctx, pdf_dict *font_dict, pdf_dict *stream_dict,
cfffont->object_num = font_dict->object_num;
cfffont->generation_num = font_dict->generation_num;
- cfffont->PDF_font = font_dict;
- pdfi_countup(font_dict);
+ cfffont->indirect_num = font_dict->indirect_num;
+ cfffont->indirect_gen = font_dict->indirect_gen;
+
(void)pdfi_dict_knownget_type(ctx, font_dict, "BaseFont", PDF_NAME, &basefont);
cfffont->BaseFont = basefont;
cfffont->Name = basefont;
@@ -2604,18 +2792,28 @@ pdfi_read_cff_font(pdf_context *ctx, pdf_dict *font_dict, pdf_dict *stream_dict,
cfffont->Encoding = cffpriv.pdfcffpriv.Encoding;
cffpriv.pdfcffpriv.Encoding = NULL;
}
-
- code = pdfi_dict_knownget(ctx, font_dict, "ToUnicode", &tmp);
- if (code == 1) {
- cfffont->ToUnicode = tmp;
- tmp = NULL;
+ if (ctx->args.ignoretounicode != true) {
+ code = pdfi_dict_get(ctx, font_dict, "ToUnicode", (pdf_obj **)&tounicode);
+ if (code >= 0 && tounicode->type == PDF_STREAM) {
+ pdf_cmap *tu = NULL;
+ code = pdfi_read_cmap(ctx, tounicode, &tu);
+ pdfi_countdown(tounicode);
+ tounicode = (pdf_obj *)tu;
+ }
+ if (code < 0 || (tounicode != NULL && tounicode->type != PDF_CMAP)) {
+ pdfi_countdown(tounicode);
+ tounicode = NULL;
+ code = 0;
+ }
}
else {
- cfffont->ToUnicode = NULL;
+ tounicode = NULL;
}
+ cfffont->ToUnicode = tounicode;
+ tounicode = NULL;
}
}
- error:
+error:
if (code < 0) {
pdfi_countdown(cffpriv.pdfcffpriv.Subrs);
pdfi_countdown(cffpriv.pdfcffpriv.GlobalSubrs);
@@ -2632,24 +2830,20 @@ pdfi_read_cff_font(pdf_context *ctx, pdf_dict *font_dict, pdf_dict *stream_dict,
gs_free_object(ctx->memory, cffpriv.cidata.FDArray, "pdfi_read_cff_font(gs_font FDArray, error)");
}
}
- if (code >= 0) {
+ else {
code = gs_definefont(ctx->font_dir, (gs_font *) ppdfont->pfont);
- if (code < 0) {
- goto error;
- }
- code = pdfi_fapi_passfont((pdf_font *) ppdfont, 0, NULL, NULL, NULL, 0);
- if (code < 0) {
- goto error;
- }
+ if (code >= 0)
+ code = pdfi_fapi_passfont((pdf_font *) ppdfont, 0, NULL, NULL, NULL, 0);
+
/* object_num can be zero if the dictionary was defined inline */
- if (ppdfont->object_num != 0) {
- code = replace_cache_entry(ctx, (pdf_obj *) ppdfont);
- if (code < 0)
- goto error;
+ if (code >= 0 && ppdfont->object_num != 0) {
+ (void)replace_cache_entry(ctx, (pdf_obj *) ppdfont);
+ }
+ if (code >= 0) {
+ *ppdffont = (pdf_font *) ppdfont;
+ ppdfont = NULL;
}
- *ppdffont = (pdf_font *) ppdfont;
- ppdfont = NULL;
}
}
gs_free_object(ctx->memory, pfbuf, "pdfi_read_cff_font(fbuf)");
diff --git a/pdf/pdf_font3.c b/pdf/pdf_font3.c
index 155d8be5..7ecd3bff 100644
--- a/pdf/pdf_font3.c
+++ b/pdf/pdf_font3.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 2019-2021 Artifex Software, Inc.
+/* Copyright (C) 2019-2022 Artifex Software, Inc.
All Rights Reserved.
This software is provided AS-IS with no warranty, either express or
@@ -19,10 +19,10 @@
#include "pdf_stack.h"
#include "pdf_array.h"
#include "pdf_dict.h"
+#include "pdf_font_types.h"
#include "pdf_gstate.h"
#include "pdf_font.h"
#include "pdf_font3.h"
-#include "pdf_font_types.h"
#include "pdf_deref.h"
#include "gscencs.h"
#include "gscedata.h" /* For the encoding arrays */
@@ -81,7 +81,7 @@ pdfi_type3_build_char(gs_show_enum * penum, gs_gstate * pgs, gs_font * pfont,
OBJ_CTX(font)->text.BlockDepth = 0;
OBJ_CTX(font)->text.inside_CharProc = true;
- OBJ_CTX(font)->text.CharProc_is_d1 = false;
+ OBJ_CTX(font)->text.CharProc_d_type = pdf_type3_d_none;
{
/* It turns out that if a type 3 font uses a stroke to draw, and does not
@@ -110,9 +110,11 @@ pdfi_type3_build_char(gs_show_enum * penum, gs_gstate * pgs, gs_font * pfont,
/* Use the utility routine above to copy the fill colour to the stroke colour */
pdfi_type3_copy_color(&OBJ_CTX(font)->pgs->color[0], &OBJ_CTX(font)->pgs->color[1]);
- pdfi_gsave(OBJ_CTX(font));
- pdfi_run_context(OBJ_CTX(font), CharProc, font->PDF_font, true, "CharProc");
- pdfi_grestore(OBJ_CTX(font));
+ code = pdfi_gsave(OBJ_CTX(font));
+ if (code >= 0) {
+ code = pdfi_run_context(OBJ_CTX(font), CharProc, font->PDF_font, true, "CharProc");
+ (void)pdfi_grestore(OBJ_CTX(font));
+ }
/* Use the utility routine above to copy the temporary copy to the stroke colour */
pdfi_type3_copy_color(&tmp_color, &OBJ_CTX(font)->pgs->color[1]);
@@ -120,7 +122,7 @@ pdfi_type3_build_char(gs_show_enum * penum, gs_gstate * pgs, gs_font * pfont,
}
OBJ_CTX(font)->text.inside_CharProc = false;
- OBJ_CTX(font)->text.CharProc_is_d1 = false;
+ OBJ_CTX(font)->text.CharProc_d_type = pdf_type3_d_none;
OBJ_CTX(font)->text.BlockDepth = SavedTextBlockDepth;
build_char_error:
@@ -220,6 +222,7 @@ int pdfi_free_font_type3(pdf_obj *font)
pdfi_countdown(t3font->FontDescriptor);
pdfi_countdown(t3font->CharProcs);
pdfi_countdown(t3font->Encoding);
+ pdfi_countdown(t3font->ToUnicode);
gs_free_object(OBJ_MEMORY(font), font, "Free type 3 font");
return 0;
}
@@ -231,6 +234,7 @@ int pdfi_read_type3_font(pdf_context *ctx, pdf_dict *font_dict, pdf_dict *stream
pdf_font_type3 *font = NULL;
pdf_obj *obj = NULL;
double f;
+ pdf_obj *tounicode = NULL;
*ppdffont = NULL;
code = alloc_type3_font(ctx, &font);
@@ -238,6 +242,9 @@ int pdfi_read_type3_font(pdf_context *ctx, pdf_dict *font_dict, pdf_dict *stream
return code;
font->object_num = font_dict->object_num;
+ font->generation_num = font_dict->generation_num;
+ font->indirect_num = font_dict->indirect_num;
+ font->indirect_gen = font_dict->indirect_gen;
code = pdfi_dict_get_type(ctx, font_dict, "FontBBox", PDF_ARRAY, &obj);
if (code < 0)
@@ -315,6 +322,27 @@ int pdfi_read_type3_font(pdf_context *ctx, pdf_dict *font_dict, pdf_dict *stream
font->PDF_font = font_dict;
pdfi_countup(font_dict);
+ if (ctx->args.ignoretounicode != true) {
+ code = pdfi_dict_get(ctx, font_dict, "ToUnicode", (pdf_obj **)&tounicode);
+ if (code >= 0 && tounicode->type == PDF_STREAM) {
+ pdf_cmap *tu = NULL;
+ code = pdfi_read_cmap(ctx, tounicode, &tu);
+ pdfi_countdown(tounicode);
+ tounicode = (pdf_obj *)tu;
+ }
+ if (code < 0 || (tounicode != NULL && tounicode->type != PDF_CMAP)) {
+ pdfi_countdown(tounicode);
+ tounicode = NULL;
+ code = 0;
+ }
+ }
+ else {
+ tounicode = NULL;
+ }
+
+ font->ToUnicode = tounicode;
+ tounicode = NULL;
+
code = replace_cache_entry(ctx, (pdf_obj *)font);
if (code < 0)
goto font3_error;
diff --git a/pdf/pdf_fontTT.c b/pdf/pdf_fontTT.c
index 44f3799e..aec3ee7b 100644
--- a/pdf/pdf_fontTT.c
+++ b/pdf/pdf_fontTT.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 2019-2021 Artifex Software, Inc.
+/* Copyright (C) 2019-2022 Artifex Software, Inc.
All Rights Reserved.
This software is provided AS-IS with no warranty, either express or
@@ -61,7 +61,7 @@ static gs_glyph pdfi_ttf_encode_char(gs_font *pfont, gs_char chr, gs_glyph_space
uint ID;
int code;
- if ((ttfont->descflags & 4) != 0) {
+ if ((ttfont->descflags & 4) != 0 || sp == GLYPH_SPACE_INDEX) {
int code = pdfi_fapi_check_cmap_for_GID(pfont, (uint)chr, &ID);
if (code < 0 || ID == 0)
code = pdfi_fapi_check_cmap_for_GID(pfont, (uint)(chr | 0xf0 << 8), &ID);
@@ -94,11 +94,8 @@ static uint pdfi_type42_get_glyph_index(gs_font_type42 *pfont, gs_glyph glyph)
uint cc = 0;
int i, code = 0;
- if (glyph >= GS_MIN_GLYPH_INDEX)
- glyph -= GS_MIN_GLYPH_INDEX;
-
- if ((ttfont->descflags & 4) != 0) {
- gind = (uint)glyph;
+ if ((ttfont->descflags & 4) != 0 || glyph >= GS_MIN_GLYPH_INDEX) {
+ gind = (uint)glyph < GS_MIN_GLYPH_INDEX ? glyph : glyph - GS_MIN_GLYPH_INDEX;
}
else {
pdf_context *ctx = (pdf_context *)ttfont->ctx;
@@ -247,7 +244,7 @@ static int pdfi_ttf_glyph_name(gs_font *pfont, gs_glyph glyph, gs_const_string *
if (code < 0) {
char buf[64];
int l;
- l = gs_sprintf(buf, "~gs~gName~%04x", (uint)glyph);
+ l = gs_snprintf(buf, sizeof(buf), "~gs~gName~%04x", (uint)glyph);
code = (*ctx->get_glyph_index)(pfont, (byte *)buf, l, &ID);
}
else {
@@ -356,7 +353,7 @@ static int pdfi_set_type42_data_procs(gs_font_type42 *pfont)
return 0;
}
-int pdfi_read_truetype_font(pdf_context *ctx, pdf_dict *font_dict, pdf_dict *stream_dict, pdf_dict *page_dict, byte *buf, int64_t buflen, pdf_font **ppdffont)
+int pdfi_read_truetype_font(pdf_context *ctx, pdf_dict *font_dict, pdf_dict *stream_dict, pdf_dict *page_dict, byte *buf, int64_t buflen, int findex, pdf_font **ppdffont)
{
pdf_font_truetype *font = NULL;
int code = 0, num_chars = 0, i;
@@ -367,6 +364,7 @@ int pdfi_read_truetype_font(pdf_context *ctx, pdf_dict *font_dict, pdf_dict *str
int64_t descflags;
bool encoding_known = false;
bool forced_symbolic = false;
+ pdf_obj *tounicode = NULL;
if (ppdffont == NULL)
return_error(gs_error_invalidaccess);
@@ -383,6 +381,10 @@ int pdfi_read_truetype_font(pdf_context *ctx, pdf_dict *font_dict, pdf_dict *str
code = gs_note_error(gs_error_invalidfont);
goto error;
}
+ font->object_num = font_dict->object_num;
+ font->generation_num = font_dict->generation_num;
+ font->indirect_num = font_dict->indirect_num;
+ font->indirect_gen = font_dict->indirect_gen;
font->FontDescriptor = (pdf_dict *)fontdesc;
fontdesc = NULL;
@@ -450,6 +452,26 @@ int pdfi_read_truetype_font(pdf_context *ctx, pdf_dict *font_dict, pdf_dict *str
pdfi_countdown(obj);
obj = NULL;
+ if (ctx->args.ignoretounicode != true) {
+ code = pdfi_dict_get(ctx, font_dict, "ToUnicode", (pdf_obj **)&tounicode);
+ if (code >= 0 && tounicode->type == PDF_STREAM) {
+ pdf_cmap *tu = NULL;
+ code = pdfi_read_cmap(ctx, tounicode, &tu);
+ pdfi_countdown(tounicode);
+ tounicode = (pdf_obj *)tu;
+ }
+ if (code < 0 || (tounicode != NULL && tounicode->type != PDF_CMAP)) {
+ pdfi_countdown(tounicode);
+ tounicode = NULL;
+ code = 0;
+ }
+ }
+ else {
+ tounicode = NULL;
+ }
+ font->ToUnicode = tounicode;
+ tounicode = NULL;
+
code = pdfi_dict_get_int(ctx, font->FontDescriptor, "Flags", &descflags);
if (code < 0)
descflags = 0;
@@ -576,9 +598,7 @@ int pdfi_read_truetype_font(pdf_context *ctx, pdf_dict *font_dict, pdf_dict *str
/* object_num can be zero if the dictionary was defined inline */
if (font->object_num != 0) {
- code = replace_cache_entry(ctx, (pdf_obj *)font);
- if (code < 0)
- goto error;
+ (void)replace_cache_entry(ctx, (pdf_obj *)font);
}
*ppdffont = (pdf_font *)font;
@@ -615,6 +635,8 @@ int pdfi_free_font_truetype(pdf_obj *font)
pdfi_countdown(ttfont->FontDescriptor);
pdfi_countdown(ttfont->Encoding);
pdfi_countdown(ttfont->BaseFont);
+ pdfi_countdown(ttfont->PDF_font);
+ pdfi_countdown(ttfont->ToUnicode);
gs_free_object(OBJ_MEMORY(ttfont), ttfont, "Free TrueType font");
return 0;
diff --git a/pdf/pdf_fontTT.h b/pdf/pdf_fontTT.h
index 1ce4cf8b..90e4086e 100644
--- a/pdf/pdf_fontTT.h
+++ b/pdf/pdf_fontTT.h
@@ -18,7 +18,7 @@
#ifndef PDF_TRUETYPE_FONT
#define PDF_TRUETYPE_FONT
-int pdfi_read_truetype_font(pdf_context *ctx, pdf_dict *font_dict, pdf_dict *stream_dict, pdf_dict *page_dict, byte *buf, int64_t buflen, pdf_font **ppdffont);
+int pdfi_read_truetype_font(pdf_context *ctx, pdf_dict *font_dict, pdf_dict *stream_dict, pdf_dict *page_dict, byte *buf, int64_t buflen, int findex, pdf_font **ppdffont);
int pdfi_free_font_truetype(pdf_obj *font);
#endif
diff --git a/pdf/pdf_fontps.c b/pdf/pdf_fontps.c
index 7ee9d2f0..3ab399b9 100644
--- a/pdf/pdf_fontps.c
+++ b/pdf/pdf_fontps.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 2020-2021 Artifex Software, Inc.
+/* Copyright (C) 2020-2022 Artifex Software, Inc.
All Rights Reserved.
This software is provided AS-IS with no warranty, either express or
@@ -178,7 +178,7 @@ pdfi_pscript_interpret(pdf_ps_ctx_t *cs, byte *pdfpsbuf, int64_t buflen)
*pdfpsbuf != char_CR)
pdfpsbuf++;
- if (*pdfpsbuf == char_EOL)
+ if (pdfpsbuf < buflim && *pdfpsbuf == char_EOL)
pdfpsbuf++;
}
break;
@@ -376,6 +376,29 @@ pdfi_pscript_interpret(pdf_ps_ctx_t *cs, byte *pdfpsbuf, int64_t buflen)
return code;
}
+static inline bool pdf_ps_name_cmp(pdf_ps_stack_object_t *obj, const char *namestr)
+{
+ byte *d = NULL;
+ int l1, l2;
+
+ if (namestr) {
+ l2 = strlen(namestr);
+ }
+
+ if (obj->type == PDF_PS_OBJ_NAME) {
+ d = obj->val.name;
+ l1 = obj->size;
+ }
+ else if (obj->type == PDF_PS_OBJ_STRING) {
+ d = obj->val.name;
+ l1 = obj->size;
+ }
+ if (d != NULL && namestr != NULL && l1 == l2) {
+ return memcmp(d, namestr, l1) == 0 ? true : false;
+ }
+ return false;
+}
+
static int
ps_font_def_func(gs_memory_t *mem, pdf_ps_ctx_t *s, byte *buf, byte *bufend)
{
@@ -387,464 +410,494 @@ ps_font_def_func(gs_memory_t *mem, pdf_ps_ctx_t *s, byte *buf, byte *bufend)
}
if (pdf_ps_obj_has_type(&s->cur[-1], PDF_PS_OBJ_NAME)) {
- if (!memcmp(s->cur[-1].val.name, PDF_PS_OPER_NAME_AND_LEN("FontName"))) {
- int fnlen = 0;
- char *pname = NULL;
-
- if (pdf_ps_obj_has_type(&s->cur[0], PDF_PS_OBJ_NAME)) {
- fnlen = s->cur[0].size > gs_font_name_max ? gs_font_name_max : s->cur[0].size;
- pname = (char *)s->cur[0].val.name;
- }
- else if (pdf_ps_obj_has_type(&s->cur[0], PDF_PS_OBJ_STRING)) {
- fnlen = s->cur[0].size > gs_font_name_max ? gs_font_name_max : s->cur[0].size;
- pname = (char *)s->cur[0].val.string;
- }
- if (pname) {
- memcpy(priv->gsu.gst1.key_name.chars, pname, fnlen);
- priv->gsu.gst1.key_name.chars[fnlen] = '\0';
- priv->gsu.gst1.key_name.size = fnlen;
-
- memcpy(priv->gsu.gst1.font_name.chars, pname, fnlen);
- priv->gsu.gst1.font_name.chars[fnlen] = '\0';
- priv->gsu.gst1.font_name.size = fnlen;
- }
- }
- else if (!memcmp(s->cur[-1].val.name, PDF_PS_OPER_NAME_AND_LEN("PaintType"))) {
- if (pdf_ps_obj_has_type(&s->cur[0], PDF_PS_OBJ_INTEGER)) {
- priv->gsu.gst1.PaintType = s->cur[0].val.i;
- }
- }
- else if (!memcmp(s->cur[-1].val.name, PDF_PS_OPER_NAME_AND_LEN("StrokeWidth"))) {
- if (pdf_ps_obj_has_type(&s->cur[0], PDF_PS_OBJ_FLOAT)) {
- priv->gsu.gst1.StrokeWidth = s->cur[0].val.f;
- }
- else if (pdf_ps_obj_has_type(&s->cur[0], PDF_PS_OBJ_INTEGER)) {
- priv->gsu.gst1.StrokeWidth = (float)s->cur[0].val.i;
- }
- }
- else if (!memcmp(s->cur[-1].val.name, PDF_PS_OPER_NAME_AND_LEN("WMode"))) {
- if (pdf_ps_obj_has_type(&s->cur[0], PDF_PS_OBJ_INTEGER)) {
- priv->gsu.gst1.WMode = s->cur[0].val.i;
- }
- }
- else if (!memcmp(s->cur[-1].val.name, PDF_PS_OPER_NAME_AND_LEN("lenIV"))) {
- if (pdf_ps_obj_has_type(&s->cur[0], PDF_PS_OBJ_INTEGER)) {
- priv->gsu.gst1.data.lenIV = s->cur[0].val.i;
- }
- }
- else if (!memcmp(s->cur[-1].val.name, PDF_PS_OPER_NAME_AND_LEN("UniqueID"))) {
- /* Ignore UniqueID if we already have a XUID */
- if (priv->gsu.gst1.UID.id >= 0) {
- if (pdf_ps_obj_has_type(&s->cur[0], PDF_PS_OBJ_INTEGER)) {
- uid_set_UniqueID(&priv->gsu.gst1.UID, s->cur[0].val.i);
- }
- }
- }
- else if (!memcmp(s->cur[-1].val.name, PDF_PS_OPER_NAME_AND_LEN("XUID"))) {
- if (pdf_ps_obj_has_type(&s->cur[0], PDF_PS_OBJ_ARRAY)) {
- int i, size = s->cur[0].size;
- long *xvals = (long *)gs_alloc_bytes(mem, size *sizeof(long), "ps_font_def_func(xuid vals)");
-
- if (xvals != NULL) {
- for (i = 0; i < size; i++) {
- if (pdf_ps_obj_has_type(&s->cur[0].val.arr[i], PDF_PS_OBJ_INTEGER)) {
- xvals[i] = s->cur[0].val.arr[i].val.i;
- }
- else {
- gs_free_object(mem, xvals, "ps_font_def_func(xuid vals)");
- xvals = NULL;
- break;
- }
- }
- }
- if (xvals != NULL) {
- if (priv->gsu.gst1.UID.xvalues != NULL)
- gs_free_object(mem, priv->gsu.gst1.UID.xvalues, "ps_font_def_func(old xuid vals)");
- uid_set_XUID(&priv->gsu.gst1.UID, xvals, size);
- }
- }
- }
- else if (!memcmp(s->cur[-1].val.name, PDF_PS_OPER_NAME_AND_LEN("FontBBox"))) {
- if (pdf_ps_obj_has_type(&s->cur[0], PDF_PS_OBJ_ARRAY)) {
- int i, j;
- double bbox[4] = { 0, 0, 1000, 1000 };
- if (pdf_ps_obj_has_type(&s->cur[0].val.arr[0], PDF_PS_OBJ_ARRAY)) { /* This is (probably) a Blend/FontBBox entry */
- code = pdfi_array_alloc(s->pdfi_ctx, s->cur[0].size, &priv->u.t1.blendfontbbox);
- if (code >= 0) {
- pdfi_countup(priv->u.t1.blendfontbbox);
- for (i = 0; i < s->cur[0].size; i++) {
- pdf_ps_stack_object_t *arr = &s->cur[0].val.arr[i];
- pdf_array *parr;
- pdf_num *n;
- if (pdf_ps_obj_has_type(arr, PDF_PS_OBJ_ARRAY)) {
- code = pdfi_array_alloc(s->pdfi_ctx, arr->size, &parr);
- if (code < 0)
- break;
- pdfi_countup(parr);
-
- for (j = 0; j < arr->size; j++) {
- if (pdf_ps_obj_has_type(&arr->val.arr[j], PDF_PS_OBJ_INTEGER)) {
- code = pdfi_object_alloc(s->pdfi_ctx, PDF_INT, 0, (pdf_obj **)&n);
- if (code >= 0)
- n->value.i = arr->val.arr[j].val.i;
- }
- else if (pdf_ps_obj_has_type(&arr->val.arr[j], PDF_PS_OBJ_FLOAT)) {
- code = pdfi_object_alloc(s->pdfi_ctx, PDF_REAL, 0, (pdf_obj **)&n);
- if (code >= 0)
- n->value.d = arr->val.arr[j].val.f;
- }
- else {
- code = pdfi_object_alloc(s->pdfi_ctx, PDF_INT, 0, (pdf_obj **)&n);
- if (code >= 0)
- n->value.i = 0;
- }
- if (code < 0)
- break;
- pdfi_countup(n);
- code = pdfi_array_put(s->pdfi_ctx, parr, j, (pdf_obj *)n);
- pdfi_countdown(n);
- if (code < 0) break;
- }
- }
- if (code >= 0)
- code = pdfi_array_put(s->pdfi_ctx, priv->u.t1.blendfontbbox, i, (pdf_obj *)parr);
- pdfi_countdown(parr);
- }
- }
- }
- else if (s->cur[0].size >= 4) {
- for (i = 0; i < 4; i++) {
- if (pdf_ps_obj_has_type(&s->cur[0].val.arr[i], PDF_PS_OBJ_INTEGER)) {
- bbox[i] = (double)s->cur[0].val.arr[i].val.i;
- }
- else if (pdf_ps_obj_has_type(&s->cur[0].val.arr[i], PDF_PS_OBJ_FLOAT)) {
- bbox[i] = (double)s->cur[0].val.arr[i].val.f;
- }
- }
- priv->gsu.gst1.FontBBox.p.x = bbox[0];
- priv->gsu.gst1.FontBBox.p.y = bbox[1];
- priv->gsu.gst1.FontBBox.q.x = bbox[2];
- priv->gsu.gst1.FontBBox.q.y = bbox[3];
- }
- }
- }
- else if (!memcmp(s->cur[-1].val.name, PDF_PS_OPER_NAME_AND_LEN("FontType"))) {
- if (pdf_ps_obj_has_type(&s->cur[0], PDF_PS_OBJ_INTEGER)) {
- priv->gsu.gst1.FontType = s->cur[0].val.i;
- priv->u.t1.pdfi_font_type = s->cur[0].val.i == 1 ? e_pdf_font_type1 : e_pdf_cidfont_type0;
- }
- else {
- priv->gsu.gst1.FontType = 1;
- priv->u.t1.pdfi_font_type = e_pdf_font_type1;
- }
- }
- else if (!memcmp(s->cur[-1].val.name, PDF_PS_OPER_NAME_AND_LEN("FontMatrix"))) {
- if (pdf_ps_obj_has_type(&s->cur[0], PDF_PS_OBJ_ARRAY) && s->cur[0].size >= 6) {
- int i;
- double fmat[6] = { 0.001, 0, 0, 0.001, 0, 0 };
- for (i = 0; i < 6; i++) {
- if (pdf_ps_obj_has_type(&s->cur[0].val.arr[i], PDF_PS_OBJ_INTEGER)) {
- fmat[i] = (double)s->cur[0].val.arr[i].val.i;
- }
- else if (pdf_ps_obj_has_type(&s->cur[0].val.arr[i], PDF_PS_OBJ_FLOAT)) {
- fmat[i] = (double)s->cur[0].val.arr[i].val.f;
- }
- }
- priv->gsu.gst1.FontMatrix.xx = fmat[0];
- priv->gsu.gst1.FontMatrix.xy = fmat[1];
- priv->gsu.gst1.FontMatrix.yx = fmat[2];
- priv->gsu.gst1.FontMatrix.yy = fmat[3];
- priv->gsu.gst1.FontMatrix.tx = fmat[4];
- priv->gsu.gst1.FontMatrix.ty = fmat[5];
- priv->gsu.gst1.orig_FontMatrix = priv->gsu.gst1.FontMatrix;
- }
- }
- else if (!memcmp(s->cur[-1].val.name, PDF_PS_OPER_NAME_AND_LEN("BlueValues"))) {
- if (pdf_ps_obj_has_type(&s->cur[0], PDF_PS_OBJ_ARRAY)) {
- int i, size = s->cur[0].size < 14 ? s->cur[0].size : 14;
-
- for (i = 0; i < size; i++) {
- if (pdf_ps_obj_has_type(&s->cur[0].val.arr[i], PDF_PS_OBJ_INTEGER)) {
- priv->gsu.gst1.data.BlueValues.values[i] =
- (float)s->cur[0].val.arr[i].val.i;
- }
- else if (pdf_ps_obj_has_type(&s->cur[0].val.arr[i], PDF_PS_OBJ_FLOAT)) {
- priv->gsu.gst1.data.BlueValues.values[i] = s->cur[0].val.arr[i].val.f;
- }
- else {
- if (i == 0)
- priv->gsu.gst1.data.BlueValues.values[i] = 0;
- else
- priv->gsu.gst1.data.BlueValues.values[i] = priv->gsu.gst1.data.BlueValues.values[i - 1] + 1;
- }
- }
- priv->gsu.gst1.data.BlueValues.count = size;
- }
- }
- else if (!memcmp(s->cur[-1].val.name, PDF_PS_OPER_NAME_AND_LEN("BlueScale"))) {
- if (pdf_ps_obj_has_type(&s->cur[0], PDF_PS_OBJ_INTEGER)) {
- priv->gsu.gst1.data.BlueScale = (float)s->cur[0].val.i;
- }
- else if (pdf_ps_obj_has_type(&s->cur[0], PDF_PS_OBJ_FLOAT)) {
- priv->gsu.gst1.data.BlueScale = (float)s->cur[0].val.f;
- }
- }
- else if (!memcmp(s->cur[-1].val.name, PDF_PS_OPER_NAME_AND_LEN("StdHW"))) {
- if (pdf_ps_obj_has_type(&s->cur[0], PDF_PS_OBJ_ARRAY)) {
- if (pdf_ps_obj_has_type(&s->cur[0].val.arr[0], PDF_PS_OBJ_INTEGER)) {
- priv->gsu.gst1.data.StdHW.values[0] = (float)s->cur[0].val.arr[0].val.i;
- priv->gsu.gst1.data.StdHW.count = 1;
- }
- else if (pdf_ps_obj_has_type(&s->cur[0].val.arr[0], PDF_PS_OBJ_FLOAT)) {
- priv->gsu.gst1.data.StdHW.values[0] = s->cur[0].val.arr[0].val.f;
- priv->gsu.gst1.data.StdHW.count = 1;
- }
- }
- }
- else if (!memcmp(s->cur[-1].val.name, PDF_PS_OPER_NAME_AND_LEN("StdVW"))) {
- if (pdf_ps_obj_has_type(&s->cur[0], PDF_PS_OBJ_ARRAY)) {
- if (pdf_ps_obj_has_type(&s->cur[0].val.arr[0], PDF_PS_OBJ_INTEGER)) {
- priv->gsu.gst1.data.StdVW.values[0] = (float)s->cur[0].val.arr[0].val.i;
- priv->gsu.gst1.data.StdVW.count = 1;
- }
- else if (pdf_ps_obj_has_type(&s->cur[0].val.arr[0], PDF_PS_OBJ_FLOAT)) {
- priv->gsu.gst1.data.StdVW.values[0] = s->cur[0].val.arr[0].val.f;
- priv->gsu.gst1.data.StdVW.count = 1;
- }
- }
- }
- else if (!memcmp(s->cur[-1].val.name, PDF_PS_OPER_NAME_AND_LEN("StemSnapH"))) {
- if (pdf_ps_obj_has_type(&s->cur[0], PDF_PS_OBJ_ARRAY)) {
- int i, size = s->cur[0].size > 12 ? 12 : s->cur[0].size;
-
- for (i = 0; i < size; i++) {
- if (pdf_ps_obj_has_type(&s->cur[0].val.arr[i], PDF_PS_OBJ_INTEGER)) {
- priv->gsu.gst1.data.StemSnapH.values[i] = (float)s->cur[0].val.arr[i].val.i;
- }
- else if (pdf_ps_obj_has_type(&s->cur[0].val.arr[i], PDF_PS_OBJ_FLOAT)) {
- priv->gsu.gst1.data.StemSnapH.values[i] = s->cur[0].val.arr[i].val.f;
- }
- }
- priv->gsu.gst1.data.StemSnapH.count = size;
- }
- }
- else if (!memcmp(s->cur[-1].val.name, PDF_PS_OPER_NAME_AND_LEN("StemSnapV"))) {
- if (pdf_ps_obj_has_type(&s->cur[0], PDF_PS_OBJ_ARRAY)) {
- int i, size = s->cur[0].size > 12 ? 12 : s->cur[0].size;
-
- for (i = 0; i < size; i++) {
- if (pdf_ps_obj_has_type(&s->cur[0].val.arr[i], PDF_PS_OBJ_INTEGER)) {
- priv->gsu.gst1.data.StemSnapV.values[i] = (float)s->cur[0].val.arr[i].val.i;
- }
- else if (pdf_ps_obj_has_type(&s->cur[0].val.arr[i], PDF_PS_OBJ_FLOAT)) {
- priv->gsu.gst1.data.StemSnapV.values[i] = s->cur[0].val.arr[i].val.f;
- }
- }
- priv->gsu.gst1.data.StemSnapH.count = size;
- }
- }
- else if (!memcmp(s->cur[-1].val.name, PDF_PS_OPER_NAME_AND_LEN("Encoding"))) {
- pdf_array *new_enc = NULL;
-
- if (pdf_ps_obj_has_type(&s->cur[0], PDF_PS_OBJ_NAME)) {
- pdf_name *pname;
-
- code = pdfi_name_alloc(s->pdfi_ctx, (byte *) s->cur[0].val.name, s->cur[0].size, (pdf_obj **) &pname);
- if (code >= 0) {
- pdfi_countup(pname);
-
- code = pdfi_create_Encoding(s->pdfi_ctx, (pdf_obj *) pname, NULL, (pdf_obj **) &new_enc);
- if (code >= 0) {
- pdfi_countdown(priv->u.t1.Encoding);
- priv->u.t1.Encoding = new_enc;
- }
- pdfi_countdown(pname);
- }
- }
- else if (pdf_ps_obj_has_type(&s->cur[0], PDF_PS_OBJ_ARRAY)) {
- int i;
-
- code = pdfi_array_alloc(s->pdfi_ctx, s->cur[0].size, &new_enc);
- if (code >= 0) {
- pdfi_countup(new_enc);
- for (i = 0; i < s->cur[0].size; i++) {
- pdf_name *n = NULL;
- byte *nm = (byte *) s->cur[0].val.arr[i].val.name;
- int nlen = s->cur[0].val.arr[i].size;
-
- code = pdfi_name_alloc(s->pdfi_ctx, (byte *) nm, nlen, (pdf_obj **) &n);
- if (code < 0)
- break;
- pdfi_countup(n);
- code = pdfi_array_put(s->pdfi_ctx, new_enc, (uint64_t) i, (pdf_obj *) n);
- pdfi_countdown(n);
- if (code < 0)
- break;
- }
- if (code < 0) {
- pdfi_countdown(new_enc);
- }
- else {
- pdfi_countdown(priv->u.t1.Encoding);
- priv->u.t1.Encoding = new_enc;
- new_enc = NULL;
- }
- }
- }
- }
- else if (!memcmp(s->cur[-1].val.name, PDF_PS_OPER_NAME_AND_LEN("BlendDesignPositions"))) {
- if (pdf_ps_obj_has_type(&s->cur[0], PDF_PS_OBJ_ARRAY)) {
- code = pdfi_array_alloc(s->pdfi_ctx, s->cur[0].size, &priv->u.t1.blenddesignpositions);
- if (code >= 0) {
- int i, j;
- pdfi_countup(priv->u.t1.blenddesignpositions);
-
- for (i = 0; i < s->cur[0].size && code >= 0; i++) {
- pdf_ps_stack_object_t *so = &s->cur[0].val.arr[i];
-
- if (pdf_ps_obj_has_type(so, PDF_PS_OBJ_ARRAY)) {
- pdf_array *sa;
- code = pdfi_array_alloc(s->pdfi_ctx, so->size, &sa);
- if (code >= 0) {
- pdfi_countup(sa);
- for (j = 0; j < so->size; j++) {
- pdf_num *n;
- if (pdf_ps_obj_has_type(&so->val.arr[j], PDF_PS_OBJ_INTEGER)) {
- code = pdfi_object_alloc(s->pdfi_ctx, PDF_INT, 0, (pdf_obj **)&n);
- if (code >= 0)
- n->value.i = so->val.arr[j].val.i;
- }
- else if (pdf_ps_obj_has_type(&so->val.arr[j], PDF_PS_OBJ_FLOAT)) {
- code = pdfi_object_alloc(s->pdfi_ctx, PDF_REAL, 0, (pdf_obj **)&n);
- if (code >= 0)
- n->value.d = so->val.arr[j].val.f;
- }
- else {
- code = pdfi_object_alloc(s->pdfi_ctx, PDF_INT, 0, (pdf_obj **)&n);
- if (code >= 0)
- n->value.i = 0;
- }
- if (code < 0)
- break;
- pdfi_countup(n);
- code = pdfi_array_put(s->pdfi_ctx, sa, j, (pdf_obj *)n);
- pdfi_countdown(n);
- if (code < 0) break;
- }
- }
- if (code >= 0) {
- pdfi_array_put(s->pdfi_ctx, priv->u.t1.blenddesignpositions, i, (pdf_obj *)sa);
- }
- pdfi_countdown(sa);
- }
- }
- }
-
- }
- }
- else if (!memcmp(s->cur[-1].val.name, PDF_PS_OPER_NAME_AND_LEN("BlendAxisTypes"))) {
- if (pdf_ps_obj_has_type(&s->cur[0], PDF_PS_OBJ_ARRAY)) {
- int i;
- code = pdfi_array_alloc(s->pdfi_ctx, s->cur[0].size, &priv->u.t1.blendaxistypes);
- if (code >= 0) {
- pdfi_countup(priv->u.t1.blendaxistypes);
- for (i = 0; i < s->cur[0].size; i++) {
- pdf_ps_stack_object_t *so = &s->cur[0].val.arr[i];
- pdf_name *n;
- if (pdf_ps_obj_has_type(so, PDF_PS_OBJ_NAME)) {
- code = pdfi_object_alloc(s->pdfi_ctx, PDF_NAME, so->size, (pdf_obj **)&n);
- if (code >= 0) {
- pdfi_countup(n);
- memcpy(n->data, so->val.name, so->size);
- n->length = so->size;
- code = pdfi_array_put(s->pdfi_ctx, priv->u.t1.blendaxistypes, i, (pdf_obj *)n);
- pdfi_countdown(n);
- }
- }
- if (code < 0)
- break;
- }
- }
- }
- }
- else if (!memcmp(s->cur[-1].val.name, PDF_PS_OPER_NAME_AND_LEN("BlendDesignMap"))) {
- if (pdf_ps_obj_has_type(&s->cur[0], PDF_PS_OBJ_ARRAY)) {
- int i, j, k;
- pdf_ps_stack_object_t *arr1 = &s->cur[0], *arr2, *arr3;
- pdf_array *parr2, *parr3;
- code = pdfi_array_alloc(s->pdfi_ctx, arr1->size, &priv->u.t1.blenddesignmap);
- if (code >= 0) {
- pdfi_countup(priv->u.t1.blenddesignmap);
- for (i = 0; i < arr1->size && code >= 0; i++) {
- if (pdf_ps_obj_has_type(&arr1->val.arr[i], PDF_PS_OBJ_ARRAY)) {
- arr2 = &arr1->val.arr[i];
- code = pdfi_array_alloc(s->pdfi_ctx, arr2->size, &parr2);
- if (code < 0)
- break;
- for (j = 0; j < arr2->size; j++) {
- pdf_num *n;
-
- arr3 = &arr2->val.arr[j];
- code = pdfi_array_alloc(s->pdfi_ctx, arr3->size, &parr3);
- if (code < 0)
- break;
-
- for (k = 0; k < arr3->size; k++) {
- if (pdf_ps_obj_has_type(&arr3->val.arr[k], PDF_PS_OBJ_INTEGER)) {
- code = pdfi_object_alloc(s->pdfi_ctx, PDF_INT, 0, (pdf_obj **)&n);
- if (code >= 0)
- n->value.i = arr3->val.arr[k].val.i;
- }
- else if (pdf_ps_obj_has_type(&arr1->val.arr[i], PDF_PS_OBJ_FLOAT)) {
- code = pdfi_object_alloc(s->pdfi_ctx, PDF_REAL, 0, (pdf_obj **)&n);
- if (code >= 0)
- n->value.d = arr3->val.arr[k].val.f;
- }
- else {
- code = pdfi_object_alloc(s->pdfi_ctx, PDF_INT, 0, (pdf_obj **)&n);
- if (code >= 0)
- n->value.i = 0;
- }
- if (code < 0)
- break;
- pdfi_countup(n);
- code = pdfi_array_put(s->pdfi_ctx, parr3, k, (pdf_obj *)n);
- pdfi_countdown(n);
- if (code < 0)
- break;
- }
- if (code < 0)
- break;
- pdfi_countup(parr3);
- code = pdfi_array_put(s->pdfi_ctx, parr2, j, (pdf_obj *)parr3);
- pdfi_countdown(parr3);
- }
- if (code < 0)
- break;
- pdfi_countup(parr2);
- code = pdfi_array_put(s->pdfi_ctx, priv->u.t1.blenddesignmap, i, (pdf_obj *)parr2);
- pdfi_countdown(parr2);
- }
- }
- }
- }
- }
- else if (!memcmp(s->cur[-1].val.name, PDF_PS_OPER_NAME_AND_LEN("WeightVector"))) {
- if (pdf_ps_obj_has_type(&s->cur[0], PDF_PS_OBJ_ARRAY)) {
- int i;
- for (i = 0; i < s->cur[0].size; i++) {
- if (pdf_ps_obj_has_type(&s->cur[0].val.arr[i], PDF_PS_OBJ_INTEGER)) {
- priv->gsu.gst1.data.WeightVector.values[i] = s->cur[0].val.arr[i].val.i;
- }
- else if (pdf_ps_obj_has_type(&s->cur[0].val.arr[i], PDF_PS_OBJ_FLOAT)) {
- priv->gsu.gst1.data.WeightVector.values[i] = s->cur[0].val.arr[i].val.f;
- }
- else {
- priv->gsu.gst1.data.WeightVector.values[i] = 0;
- }
- }
- priv->gsu.gst1.data.WeightVector.count = s->cur[0].size;
- }
+ switch (s->cur[-1].size) {
+
+ case 4:
+ if (pdf_ps_name_cmp(&s->cur[-1], "XUID")) {
+ if (pdf_ps_obj_has_type(&s->cur[0], PDF_PS_OBJ_ARRAY)) {
+ int i, size = s->cur[0].size;
+ long *xvals = (long *)gs_alloc_bytes(mem, size *sizeof(long), "ps_font_def_func(xuid vals)");
+
+ if (xvals != NULL) {
+ for (i = 0; i < size; i++) {
+ if (pdf_ps_obj_has_type(&s->cur[0].val.arr[i], PDF_PS_OBJ_INTEGER)) {
+ xvals[i] = s->cur[0].val.arr[i].val.i;
+ }
+ else {
+ gs_free_object(mem, xvals, "ps_font_def_func(xuid vals)");
+ xvals = NULL;
+ break;
+ }
+ }
+ }
+ if (xvals != NULL) {
+ if (priv->gsu.gst1.UID.xvalues != NULL)
+ gs_free_object(mem, priv->gsu.gst1.UID.xvalues, "ps_font_def_func(old xuid vals)");
+ uid_set_XUID(&priv->gsu.gst1.UID, xvals, size);
+ }
+ }
+ }
+ break;
+
+ case 5:
+ if (pdf_ps_name_cmp(&s->cur[-1], "StdHW")) {
+ if (pdf_ps_obj_has_type(&s->cur[0], PDF_PS_OBJ_ARRAY) && s->cur[0].size > 0) {
+ if (pdf_ps_obj_has_type(&s->cur[0].val.arr[0], PDF_PS_OBJ_INTEGER)) {
+ priv->gsu.gst1.data.StdHW.values[0] = (float)s->cur[0].val.arr[0].val.i;
+ priv->gsu.gst1.data.StdHW.count = 1;
+ }
+ else if (pdf_ps_obj_has_type(&s->cur[0].val.arr[0], PDF_PS_OBJ_FLOAT)) {
+ priv->gsu.gst1.data.StdHW.values[0] = s->cur[0].val.arr[0].val.f;
+ priv->gsu.gst1.data.StdHW.count = 1;
+ }
+ }
+ }
+ else if (pdf_ps_name_cmp(&s->cur[-1], "StdVW")) {
+ if (pdf_ps_obj_has_type(&s->cur[0], PDF_PS_OBJ_ARRAY) && s->cur[0].size > 0) {
+ if (pdf_ps_obj_has_type(&s->cur[0].val.arr[0], PDF_PS_OBJ_INTEGER)) {
+ priv->gsu.gst1.data.StdVW.values[0] = (float)s->cur[0].val.arr[0].val.i;
+ priv->gsu.gst1.data.StdVW.count = 1;
+ }
+ else if (pdf_ps_obj_has_type(&s->cur[0].val.arr[0], PDF_PS_OBJ_FLOAT)) {
+ priv->gsu.gst1.data.StdVW.values[0] = s->cur[0].val.arr[0].val.f;
+ priv->gsu.gst1.data.StdVW.count = 1;
+ }
+ }
+ }
+ else if (pdf_ps_name_cmp(&s->cur[-1], "WMode")) {
+ if (pdf_ps_obj_has_type(&s->cur[0], PDF_PS_OBJ_INTEGER)) {
+ priv->gsu.gst1.WMode = s->cur[0].val.i;
+ }
+ }
+ else if (pdf_ps_name_cmp(&s->cur[-1], "lenIV")) {
+ if (pdf_ps_obj_has_type(&s->cur[0], PDF_PS_OBJ_INTEGER)) {
+ priv->gsu.gst1.data.lenIV = s->cur[0].val.i;
+ }
+ }
+ break;
+
+ case 8:
+ if (pdf_ps_name_cmp(&s->cur[-1], "FontName")) {
+ int fnlen = 0;
+ char *pname = NULL;
+
+ if (pdf_ps_obj_has_type(&s->cur[0], PDF_PS_OBJ_NAME)) {
+ fnlen = s->cur[0].size > gs_font_name_max ? gs_font_name_max : s->cur[0].size;
+ pname = (char *)s->cur[0].val.name;
+ }
+ else if (pdf_ps_obj_has_type(&s->cur[0], PDF_PS_OBJ_STRING)) {
+ fnlen = s->cur[0].size > gs_font_name_max ? gs_font_name_max : s->cur[0].size;
+ pname = (char *)s->cur[0].val.string;
+ }
+ if (pname) {
+ memcpy(priv->gsu.gst1.key_name.chars, pname, fnlen);
+ priv->gsu.gst1.key_name.chars[fnlen] = '\0';
+ priv->gsu.gst1.key_name.size = fnlen;
+
+ memcpy(priv->gsu.gst1.font_name.chars, pname, fnlen);
+ priv->gsu.gst1.font_name.chars[fnlen] = '\0';
+ priv->gsu.gst1.font_name.size = fnlen;
+ }
+ }
+ else if (pdf_ps_name_cmp(&s->cur[-1], "FontBBox")) {
+ if (s->cur[0].size > 0 && pdf_ps_obj_has_type(&s->cur[0], PDF_PS_OBJ_ARRAY)) {
+ int i, j;
+ double bbox[4] = { 0, 0, 1000, 1000 };
+ if (pdf_ps_obj_has_type(&s->cur[0].val.arr[0], PDF_PS_OBJ_ARRAY)) { /* This is (probably) a Blend/FontBBox entry */
+ code = pdfi_array_alloc(s->pdfi_ctx, s->cur[0].size, &priv->u.t1.blendfontbbox);
+ if (code >= 0) {
+ pdfi_countup(priv->u.t1.blendfontbbox);
+ for (i = 0; i < s->cur[0].size; i++) {
+ pdf_ps_stack_object_t *arr = &s->cur[0].val.arr[i];
+ pdf_array *parr = NULL;
+ pdf_num *n;
+ if (pdf_ps_obj_has_type(arr, PDF_PS_OBJ_ARRAY)) {
+ code = pdfi_array_alloc(s->pdfi_ctx, arr->size, &parr);
+ if (code < 0)
+ break;
+ pdfi_countup(parr);
+
+ for (j = 0; j < arr->size; j++) {
+ if (pdf_ps_obj_has_type(&arr->val.arr[j], PDF_PS_OBJ_INTEGER)) {
+ code = pdfi_object_alloc(s->pdfi_ctx, PDF_INT, 0, (pdf_obj **)&n);
+ if (code >= 0)
+ n->value.i = arr->val.arr[j].val.i;
+ }
+ else if (pdf_ps_obj_has_type(&arr->val.arr[j], PDF_PS_OBJ_FLOAT)) {
+ code = pdfi_object_alloc(s->pdfi_ctx, PDF_REAL, 0, (pdf_obj **)&n);
+ if (code >= 0)
+ n->value.d = arr->val.arr[j].val.f;
+ }
+ else {
+ code = pdfi_object_alloc(s->pdfi_ctx, PDF_INT, 0, (pdf_obj **)&n);
+ if (code >= 0)
+ n->value.i = 0;
+ }
+ if (code < 0)
+ break;
+ pdfi_countup(n);
+ code = pdfi_array_put(s->pdfi_ctx, parr, j, (pdf_obj *)n);
+ pdfi_countdown(n);
+ if (code < 0) break;
+ }
+ }
+ if (code >= 0)
+ code = pdfi_array_put(s->pdfi_ctx, priv->u.t1.blendfontbbox, i, (pdf_obj *)parr);
+ pdfi_countdown(parr);
+ }
+ }
+ }
+ else if (s->cur[0].size >= 4) {
+ for (i = 0; i < 4; i++) {
+ if (pdf_ps_obj_has_type(&s->cur[0].val.arr[i], PDF_PS_OBJ_INTEGER)) {
+ bbox[i] = (double)s->cur[0].val.arr[i].val.i;
+ }
+ else if (pdf_ps_obj_has_type(&s->cur[0].val.arr[i], PDF_PS_OBJ_FLOAT)) {
+ bbox[i] = (double)s->cur[0].val.arr[i].val.f;
+ }
+ }
+ priv->gsu.gst1.FontBBox.p.x = bbox[0];
+ priv->gsu.gst1.FontBBox.p.y = bbox[1];
+ priv->gsu.gst1.FontBBox.q.x = bbox[2];
+ priv->gsu.gst1.FontBBox.q.y = bbox[3];
+ }
+ }
+ }
+ else if (pdf_ps_name_cmp(&s->cur[-1], "FontType")) {
+ if (pdf_ps_obj_has_type(&s->cur[0], PDF_PS_OBJ_INTEGER)) {
+ priv->gsu.gst1.FontType = s->cur[0].val.i;
+ priv->u.t1.pdfi_font_type = s->cur[0].val.i == 1 ? e_pdf_font_type1 : e_pdf_cidfont_type0;
+ }
+ else {
+ priv->gsu.gst1.FontType = 1;
+ priv->u.t1.pdfi_font_type = e_pdf_font_type1;
+ }
+ }
+ else if (pdf_ps_name_cmp(&s->cur[-1], "Encoding")) {
+ pdf_array *new_enc = NULL;
+
+ if (pdf_ps_obj_has_type(&s->cur[0], PDF_PS_OBJ_NAME)) {
+ pdf_name *pname;
+
+ code = pdfi_name_alloc(s->pdfi_ctx, (byte *) s->cur[0].val.name, s->cur[0].size, (pdf_obj **) &pname);
+ if (code >= 0) {
+ pdfi_countup(pname);
+
+ code = pdfi_create_Encoding(s->pdfi_ctx, (pdf_obj *) pname, NULL, (pdf_obj **) &new_enc);
+ if (code >= 0) {
+ pdfi_countdown(priv->u.t1.Encoding);
+ priv->u.t1.Encoding = new_enc;
+ }
+ pdfi_countdown(pname);
+ }
+ }
+ else if (pdf_ps_obj_has_type(&s->cur[0], PDF_PS_OBJ_ARRAY)) {
+ int i;
+
+ code = pdfi_array_alloc(s->pdfi_ctx, s->cur[0].size, &new_enc);
+ if (code >= 0) {
+ pdfi_countup(new_enc);
+ for (i = 0; i < s->cur[0].size; i++) {
+ pdf_name *n = NULL;
+ byte *nm = (byte *) s->cur[0].val.arr[i].val.name;
+ int nlen = s->cur[0].val.arr[i].size;
+
+ code = pdfi_name_alloc(s->pdfi_ctx, (byte *) nm, nlen, (pdf_obj **) &n);
+ if (code < 0)
+ break;
+ pdfi_countup(n);
+ code = pdfi_array_put(s->pdfi_ctx, new_enc, (uint64_t) i, (pdf_obj *) n);
+ pdfi_countdown(n);
+ if (code < 0)
+ break;
+ }
+ if (code < 0) {
+ pdfi_countdown(new_enc);
+ }
+ else {
+ pdfi_countdown(priv->u.t1.Encoding);
+ priv->u.t1.Encoding = new_enc;
+ new_enc = NULL;
+ }
+ }
+ }
+ }
+ else if (pdf_ps_name_cmp(&s->cur[-1], "UniqueID")) {
+ /* Ignore UniqueID if we already have a XUID */
+ if (priv->gsu.gst1.UID.id >= 0) {
+ if (pdf_ps_obj_has_type(&s->cur[0], PDF_PS_OBJ_INTEGER)) {
+ uid_set_UniqueID(&priv->gsu.gst1.UID, s->cur[0].val.i);
+ }
+ }
+ }
+ break;
+
+ case 9:
+ if (pdf_ps_name_cmp(&s->cur[-1], "PaintType")) {
+ if (pdf_ps_obj_has_type(&s->cur[0], PDF_PS_OBJ_INTEGER)) {
+ priv->gsu.gst1.PaintType = s->cur[0].val.i;
+ }
+ }
+ else if (pdf_ps_name_cmp(&s->cur[-1], "StemSnapH")) {
+ if (pdf_ps_obj_has_type(&s->cur[0], PDF_PS_OBJ_ARRAY)) {
+ int i, size = s->cur[0].size > 12 ? 12 : s->cur[0].size;
+
+ for (i = 0; i < size; i++) {
+ if (pdf_ps_obj_has_type(&s->cur[0].val.arr[i], PDF_PS_OBJ_INTEGER)) {
+ priv->gsu.gst1.data.StemSnapH.values[i] = (float)s->cur[0].val.arr[i].val.i;
+ }
+ else if (pdf_ps_obj_has_type(&s->cur[0].val.arr[i], PDF_PS_OBJ_FLOAT)) {
+ priv->gsu.gst1.data.StemSnapH.values[i] = s->cur[0].val.arr[i].val.f;
+ }
+ }
+ priv->gsu.gst1.data.StemSnapH.count = size;
+ }
+ }
+ else if (pdf_ps_name_cmp(&s->cur[-1], "StemSnapV")) {
+ if (pdf_ps_obj_has_type(&s->cur[0], PDF_PS_OBJ_ARRAY)) {
+ int i, size = s->cur[0].size > 12 ? 12 : s->cur[0].size;
+
+ for (i = 0; i < size; i++) {
+ if (pdf_ps_obj_has_type(&s->cur[0].val.arr[i], PDF_PS_OBJ_INTEGER)) {
+ priv->gsu.gst1.data.StemSnapV.values[i] = (float)s->cur[0].val.arr[i].val.i;
+ }
+ else if (pdf_ps_obj_has_type(&s->cur[0].val.arr[i], PDF_PS_OBJ_FLOAT)) {
+ priv->gsu.gst1.data.StemSnapV.values[i] = s->cur[0].val.arr[i].val.f;
+ }
+ }
+ priv->gsu.gst1.data.StemSnapH.count = size;
+ }
+ }
+ else if (pdf_ps_name_cmp(&s->cur[-1], "BlueScale")) {
+ if (pdf_ps_obj_has_type(&s->cur[0], PDF_PS_OBJ_INTEGER)) {
+ priv->gsu.gst1.data.BlueScale = (float)s->cur[0].val.i;
+ }
+ else if (pdf_ps_obj_has_type(&s->cur[0], PDF_PS_OBJ_FLOAT)) {
+ priv->gsu.gst1.data.BlueScale = (float)s->cur[0].val.f;
+ }
+ }
+ break;
+
+ case 10:
+ if (pdf_ps_name_cmp(&s->cur[-1], "FontMatrix")) {
+ if (pdf_ps_obj_has_type(&s->cur[0], PDF_PS_OBJ_ARRAY) && s->cur[0].size >= 6) {
+ int i;
+ double fmat[6] = { 0.001, 0, 0, 0.001, 0, 0 };
+ for (i = 0; i < 6; i++) {
+ if (pdf_ps_obj_has_type(&s->cur[0].val.arr[i], PDF_PS_OBJ_INTEGER)) {
+ fmat[i] = (double)s->cur[0].val.arr[i].val.i;
+ }
+ else if (pdf_ps_obj_has_type(&s->cur[0].val.arr[i], PDF_PS_OBJ_FLOAT)) {
+ fmat[i] = (double)s->cur[0].val.arr[i].val.f;
+ }
+ }
+ priv->gsu.gst1.FontMatrix.xx = fmat[0];
+ priv->gsu.gst1.FontMatrix.xy = fmat[1];
+ priv->gsu.gst1.FontMatrix.yx = fmat[2];
+ priv->gsu.gst1.FontMatrix.yy = fmat[3];
+ priv->gsu.gst1.FontMatrix.tx = fmat[4];
+ priv->gsu.gst1.FontMatrix.ty = fmat[5];
+ priv->gsu.gst1.orig_FontMatrix = priv->gsu.gst1.FontMatrix;
+ }
+ }
+ else if (pdf_ps_name_cmp(&s->cur[-1], "BlueValues")) {
+ if (pdf_ps_obj_has_type(&s->cur[0], PDF_PS_OBJ_ARRAY)) {
+ int i, size = s->cur[0].size < 14 ? s->cur[0].size : 14;
+
+ for (i = 0; i < size; i++) {
+ if (pdf_ps_obj_has_type(&s->cur[0].val.arr[i], PDF_PS_OBJ_INTEGER)) {
+ priv->gsu.gst1.data.BlueValues.values[i] =
+ (float)s->cur[0].val.arr[i].val.i;
+ }
+ else if (pdf_ps_obj_has_type(&s->cur[0].val.arr[i], PDF_PS_OBJ_FLOAT)) {
+ priv->gsu.gst1.data.BlueValues.values[i] = s->cur[0].val.arr[i].val.f;
+ }
+ else {
+ if (i == 0)
+ priv->gsu.gst1.data.BlueValues.values[i] = 0;
+ else
+ priv->gsu.gst1.data.BlueValues.values[i] = priv->gsu.gst1.data.BlueValues.values[i - 1] + 1;
+ }
+ }
+ priv->gsu.gst1.data.BlueValues.count = size;
+ }
+ }
+ break;
+
+ case 11:
+ if (pdf_ps_name_cmp(&s->cur[-1], "StrokeWidth")) {
+ if (pdf_ps_obj_has_type(&s->cur[0], PDF_PS_OBJ_FLOAT)) {
+ priv->gsu.gst1.StrokeWidth = s->cur[0].val.f;
+ }
+ else if (pdf_ps_obj_has_type(&s->cur[0], PDF_PS_OBJ_INTEGER)) {
+ priv->gsu.gst1.StrokeWidth = (float)s->cur[0].val.i;
+ }
+ }
+ break;
+ case 12:
+ if (pdf_ps_name_cmp(&s->cur[-1], "WeightVector")) {
+ if (pdf_ps_obj_has_type(&s->cur[0], PDF_PS_OBJ_ARRAY)) {
+ int i;
+ for (i = 0; i < s->cur[0].size; i++) {
+ if (pdf_ps_obj_has_type(&s->cur[0].val.arr[i], PDF_PS_OBJ_INTEGER)) {
+ priv->gsu.gst1.data.WeightVector.values[i] = (float)s->cur[0].val.arr[i].val.i;
+ }
+ else if (pdf_ps_obj_has_type(&s->cur[0].val.arr[i], PDF_PS_OBJ_FLOAT)) {
+ priv->gsu.gst1.data.WeightVector.values[i] = s->cur[0].val.arr[i].val.f;
+ }
+ else {
+ priv->gsu.gst1.data.WeightVector.values[i] = 0;
+ }
+ }
+ priv->gsu.gst1.data.WeightVector.count = s->cur[0].size;
+ }
+ }
+ break;
+ case 14:
+ if (pdf_ps_name_cmp(&s->cur[-1], "BlendAxisTypes")) {
+ if (pdf_ps_obj_has_type(&s->cur[0], PDF_PS_OBJ_ARRAY)) {
+ int i;
+ code = pdfi_array_alloc(s->pdfi_ctx, s->cur[0].size, &priv->u.t1.blendaxistypes);
+ if (code >= 0) {
+ pdfi_countup(priv->u.t1.blendaxistypes);
+ for (i = 0; i < s->cur[0].size; i++) {
+ pdf_ps_stack_object_t *so = &s->cur[0].val.arr[i];
+ pdf_name *n;
+ if (pdf_ps_obj_has_type(so, PDF_PS_OBJ_NAME)) {
+ code = pdfi_object_alloc(s->pdfi_ctx, PDF_NAME, so->size, (pdf_obj **)&n);
+ if (code >= 0) {
+ pdfi_countup(n);
+ memcpy(n->data, so->val.name, so->size);
+ n->length = so->size;
+ code = pdfi_array_put(s->pdfi_ctx, priv->u.t1.blendaxistypes, i, (pdf_obj *)n);
+ pdfi_countdown(n);
+ }
+ }
+ if (code < 0)
+ break;
+ }
+ }
+ }
+ }
+ else if (pdf_ps_name_cmp(&s->cur[-1], "BlendDesignMap")) {
+ if (pdf_ps_obj_has_type(&s->cur[0], PDF_PS_OBJ_ARRAY)) {
+ int i, j, k;
+ pdf_ps_stack_object_t *arr1 = &s->cur[0], *arr2, *arr3;
+ pdf_array *parr2, *parr3;
+ code = pdfi_array_alloc(s->pdfi_ctx, arr1->size, &priv->u.t1.blenddesignmap);
+ if (code >= 0) {
+ pdfi_countup(priv->u.t1.blenddesignmap);
+ for (i = 0; i < arr1->size && code >= 0; i++) {
+ if (pdf_ps_obj_has_type(&arr1->val.arr[i], PDF_PS_OBJ_ARRAY)) {
+ arr2 = &arr1->val.arr[i];
+ code = pdfi_array_alloc(s->pdfi_ctx, arr2->size, &parr2);
+ if (code < 0)
+ break;
+ for (j = 0; j < arr2->size; j++) {
+ pdf_num *n;
+
+ arr3 = &arr2->val.arr[j];
+ code = pdfi_array_alloc(s->pdfi_ctx, arr3->size, &parr3);
+ if (code < 0)
+ break;
+
+ for (k = 0; k < arr3->size; k++) {
+ if (pdf_ps_obj_has_type(&arr3->val.arr[k], PDF_PS_OBJ_INTEGER)) {
+ code = pdfi_object_alloc(s->pdfi_ctx, PDF_INT, 0, (pdf_obj **)&n);
+ if (code >= 0)
+ n->value.i = arr3->val.arr[k].val.i;
+ }
+ else if (pdf_ps_obj_has_type(&arr1->val.arr[i], PDF_PS_OBJ_FLOAT)) {
+ code = pdfi_object_alloc(s->pdfi_ctx, PDF_REAL, 0, (pdf_obj **)&n);
+ if (code >= 0)
+ n->value.d = arr3->val.arr[k].val.f;
+ }
+ else {
+ code = pdfi_object_alloc(s->pdfi_ctx, PDF_INT, 0, (pdf_obj **)&n);
+ if (code >= 0)
+ n->value.i = 0;
+ }
+ if (code < 0)
+ break;
+ pdfi_countup(n);
+ code = pdfi_array_put(s->pdfi_ctx, parr3, k, (pdf_obj *)n);
+ pdfi_countdown(n);
+ if (code < 0)
+ break;
+ }
+ if (code < 0)
+ break;
+ pdfi_countup(parr3);
+ code = pdfi_array_put(s->pdfi_ctx, parr2, j, (pdf_obj *)parr3);
+ pdfi_countdown(parr3);
+ }
+ if (code < 0)
+ break;
+ pdfi_countup(parr2);
+ code = pdfi_array_put(s->pdfi_ctx, priv->u.t1.blenddesignmap, i, (pdf_obj *)parr2);
+ pdfi_countdown(parr2);
+ }
+ }
+ }
+ }
+ }
+ break;
+
+ case 20:
+ if (pdf_ps_name_cmp(&s->cur[-1], "BlendDesignPositions")) {
+ if (pdf_ps_obj_has_type(&s->cur[0], PDF_PS_OBJ_ARRAY)) {
+ code = pdfi_array_alloc(s->pdfi_ctx, s->cur[0].size, &priv->u.t1.blenddesignpositions);
+ if (code >= 0) {
+ int i, j;
+ pdfi_countup(priv->u.t1.blenddesignpositions);
+
+ for (i = 0; i < s->cur[0].size && code >= 0; i++) {
+ pdf_ps_stack_object_t *so = &s->cur[0].val.arr[i];
+
+ if (pdf_ps_obj_has_type(so, PDF_PS_OBJ_ARRAY)) {
+ pdf_array *sa;
+ code = pdfi_array_alloc(s->pdfi_ctx, so->size, &sa);
+ if (code >= 0) {
+ pdfi_countup(sa);
+ for (j = 0; j < so->size; j++) {
+ pdf_num *n;
+ if (pdf_ps_obj_has_type(&so->val.arr[j], PDF_PS_OBJ_INTEGER)) {
+ code = pdfi_object_alloc(s->pdfi_ctx, PDF_INT, 0, (pdf_obj **)&n);
+ if (code >= 0)
+ n->value.i = so->val.arr[j].val.i;
+ }
+ else if (pdf_ps_obj_has_type(&so->val.arr[j], PDF_PS_OBJ_FLOAT)) {
+ code = pdfi_object_alloc(s->pdfi_ctx, PDF_REAL, 0, (pdf_obj **)&n);
+ if (code >= 0)
+ n->value.d = so->val.arr[j].val.f;
+ }
+ else {
+ code = pdfi_object_alloc(s->pdfi_ctx, PDF_INT, 0, (pdf_obj **)&n);
+ if (code >= 0)
+ n->value.i = 0;
+ }
+ if (code < 0)
+ break;
+ pdfi_countup(n);
+ code = pdfi_array_put(s->pdfi_ctx, sa, j, (pdf_obj *)n);
+ pdfi_countdown(n);
+ if (code < 0) break;
+ }
+ }
+ if (code >= 0) {
+ pdfi_array_put(s->pdfi_ctx, priv->u.t1.blenddesignpositions, i, (pdf_obj *)sa);
+ }
+ pdfi_countdown(sa);
+ }
+ }
+ }
+
+ }
+ }
+ break;
+
+ default:
+ break;
}
}
@@ -956,6 +1009,10 @@ ps_font_eexec_func(gs_memory_t *mem, pdf_ps_ctx_t *s, byte *buf, byte *bufend)
stream *strm;
int c;
+ if (bufend <= buf) {
+ return_error(gs_error_invalidfont);
+ }
+
strm = push_eexec_filter(mem, buf, bufend);
while (1) {
c = sgetc(strm);
@@ -1121,7 +1178,6 @@ pdf_ps_RD_oper_func(gs_memory_t *mem, pdf_ps_ctx_t *s, byte *buf, byte *bufend)
pdf_ps_obj_has_type(&s->cur[-1], PDF_PS_OBJ_NAME)) {
pdf_string *str = NULL;
pdf_obj *key = NULL;
- bool key_known;
size = s->cur[0].val.i;
buf++;
@@ -1133,24 +1189,21 @@ pdf_ps_RD_oper_func(gs_memory_t *mem, pdf_ps_ctx_t *s, byte *buf, byte *bufend)
pdfi_countup(key);
if (buf + size < bufend) {
- code = pdfi_dict_known_by_key(s->pdfi_ctx, priv->u.t1.CharStrings, (pdf_name *)key, &key_known);
- if (code >=0 && key_known != true) {
- code = pdfi_object_alloc(s->pdfi_ctx, PDF_STRING, size, (pdf_obj **) &str);
- if (code < 0) {
- pdfi_countdown(key);
- (void)pdf_ps_stack_pop(s, 2);
- return code;
- }
- pdfi_countup(str);
- memcpy(str->data, buf, size);
-
- code = pdfi_dict_put_obj(s->pdfi_ctx, priv->u.t1.CharStrings, key, (pdf_obj *) str);
- if (code < 0) {
- pdfi_countdown(str);
- pdfi_countdown(key);
- (void)pdf_ps_stack_pop(s, 2);
- return code;
- }
+ code = pdfi_object_alloc(s->pdfi_ctx, PDF_STRING, size, (pdf_obj **) &str);
+ if (code < 0) {
+ pdfi_countdown(key);
+ (void)pdf_ps_stack_pop(s, 2);
+ return code;
+ }
+ pdfi_countup(str);
+ memcpy(str->data, buf, size);
+
+ code = pdfi_dict_put_obj(s->pdfi_ctx, priv->u.t1.CharStrings, key, (pdf_obj *) str, false);
+ if (code < 0) {
+ pdfi_countdown(str);
+ pdfi_countdown(key);
+ (void)pdf_ps_stack_pop(s, 2);
+ return code;
}
}
pdfi_countdown(str);
@@ -1177,7 +1230,7 @@ pdf_ps_put_oper_func(gs_memory_t *mem, pdf_ps_ctx_t *s, byte *buf, byte *bufend)
pdf_ps_obj_has_type(&s->cur[-2], PDF_PS_OBJ_ARRAY) &&
pdf_ps_obj_has_type(&s->cur[-1], PDF_PS_OBJ_INTEGER) &&
pdf_ps_obj_has_type(&s->cur[0], PDF_PS_OBJ_NAME)) {
- if (s->cur[-1].val.i < s->cur[-2].size) {
+ if (s->cur[-1].val.i >= 0 && s->cur[-1].val.i < s->cur[-2].size) {
pdf_ps_make_name(&s->cur[-2].val.arr[s->cur[-1].val.i], s->cur[0].val.name, s->cur[0].size);
}
}
diff --git a/pdf/pdf_fontps.h b/pdf/pdf_fontps.h
index 45810a28..835f0066 100644
--- a/pdf/pdf_fontps.h
+++ b/pdf/pdf_fontps.h
@@ -1,4 +1,4 @@
-/* Copyright (C) 2020-2021 Artifex Software, Inc.
+/* Copyright (C) 2020-2022 Artifex Software, Inc.
All Rights Reserved.
This software is provided AS-IS with no warranty, either express or
@@ -201,6 +201,9 @@ static inline int pdf_ps_stack_push(pdf_ps_ctx_t *s)
s->cur = s->stack + currsize - 1;
s->toplim = s->stack + newsize - PDF_PS_STACK_GROW_SIZE;
}
+ else {
+ return_error(gs_error_VMerror);
+ }
}
}
s->cur++;
diff --git a/pdf/pdf_func.c b/pdf/pdf_func.c
index 9b7d5bb7..9537152e 100644
--- a/pdf/pdf_func.c
+++ b/pdf/pdf_func.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 2018-2021 Artifex Software, Inc.
+/* Copyright (C) 2018-2022 Artifex Software, Inc.
All Rights Reserved.
This software is provided AS-IS with no warranty, either express or
@@ -146,15 +146,15 @@ static int
pdfi_parse_type4_func_stream(pdf_context *ctx, pdf_c_stream *function_stream, int depth, byte *ops, unsigned int *size)
{
int code;
- byte c;
+ int c;
char TokenBuffer[17];
unsigned int Size, IsReal;
byte *clause = NULL;
byte *p = (ops ? ops + *size : NULL);
- do {
- code = pdfi_read_bytes(ctx, &c, 1, 1, function_stream);
- if (code < 0)
+ while (1) {
+ c = pdfi_read_byte(ctx, function_stream);
+ if (c < 0)
break;
switch(c) {
case 0x20:
@@ -202,32 +202,30 @@ pdfi_parse_type4_func_stream(pdf_context *ctx, pdf_c_stream *function_stream, in
IsReal = 1;
else
IsReal = 0;
- TokenBuffer[0] = c;
- do {
- code = pdfi_read_bytes(ctx, &c, 1, 1, function_stream);
- if (code < 0)
- return code;
- if (code == 0)
+ TokenBuffer[0] = (byte)c;
+ while (1) {
+ c = pdfi_read_byte(ctx, function_stream);
+ if (c < 0)
return_error(gs_error_syntaxerror);
if (c == '.'){
if (IsReal == 1)
- code = gs_error_syntaxerror;
+ return_error(gs_error_syntaxerror);
else {
- TokenBuffer[Size++] = c;
+ TokenBuffer[Size++] = (byte)c;
IsReal = 1;
}
} else {
if (c >= '0' && c <= '9') {
- TokenBuffer[Size++] = c;
+ TokenBuffer[Size++] = (byte)c;
} else
break;
}
if (Size > NUMBERTOKENSIZE)
return_error(gs_error_syntaxerror);
- } while (code >= 0);
+ }
TokenBuffer[Size] = 0x00;
- pdfi_unread(ctx, function_stream, &c, 1);
+ pdfi_unread_byte(ctx, function_stream, (byte)c);
if (IsReal == 1) {
*size += put_float(&p, atof(TokenBuffer));
} else {
@@ -239,21 +237,19 @@ pdfi_parse_type4_func_stream(pdf_context *ctx, pdf_c_stream *function_stream, in
/* parse an operator */
Size = 1;
- TokenBuffer[0] = c;
- do {
- code = pdfi_read_bytes(ctx, &c, 1, 1, function_stream);
- if (code < 0)
- return code;
- if (code == 0)
+ TokenBuffer[0] = (byte)c;
+ while (1) {
+ c = pdfi_read_byte(ctx, function_stream);
+ if (c < 0)
return_error(gs_error_syntaxerror);
if (c == 0x20 || c == 0x09 || c == 0x0a || c == 0x0d || c == '{' || c == '}')
break;
- TokenBuffer[Size++] = c;
+ TokenBuffer[Size++] = (byte)c;
if (Size > OPTOKENSIZE)
return_error(gs_error_syntaxerror);
- } while(code >= 0);
+ }
TokenBuffer[Size] = 0x00;
- pdfi_unread(ctx, function_stream, &c, 1);
+ pdfi_unread_byte(ctx, function_stream, (byte)c);
for (i=0;i < NumOps;i++) {
Op = (op_struct_t *)&ops_table[i];
if (Op->length < Size)
@@ -278,9 +274,9 @@ pdfi_parse_type4_func_stream(pdf_context *ctx, pdf_c_stream *function_stream, in
}
break;
}
- } while (code >= 0);
+ }
- return code;
+ return 0;
}
static int
@@ -335,12 +331,13 @@ pdfi_build_function_4(pdf_context *ctx, gs_function_params_t * mnDR,
ops[size] = PtCr_return;
code = pdfi_close_memory_stream(ctx, data_source_buffer, function_stream);
- if (code < 0) {
- function_stream = NULL;
+ function_stream = NULL;
+ if (code < 0)
goto function_4_error;
- }
params.ops.data = (const byte *)ops;
+ /* ops will now be freed with the function params, NULL ops now to avoid double free on error */
+ ops = NULL;
params.ops.size = size + 1;
code = gs_function_PtCr_init(ppfn, &params, ctx->memory);
if (code < 0)
@@ -459,7 +456,7 @@ pdfi_build_function_0(pdf_context *ctx, gs_function_params_t * mnDR,
for (i=0;i<params.m;i++) {
inputs *= params.Size[i];
}
- samples = params.n * params.BitsPerSample;
+ samples = params.n * (uint64_t)params.BitsPerSample;
samples *= inputs;
samples = samples >> 3;
if (samples > Length) {
@@ -566,7 +563,18 @@ pdfi_build_function_3(pdf_context *ctx, gs_function_params_t * mnDR,
for (i = 0; i < params.k; ++i) {
pdf_obj * rsubfn = NULL;
- code = pdfi_array_get(ctx, (pdf_array *)Functions, (int64_t)i, &rsubfn);
+ /* This is basically hacky. The test file /tests_private/pdf/pdf_1.7_ATS/WWTW61EC_file.pdf
+ * has a number of shadings on page 2. Although there are numerous shadings, they each use one
+ * of four functions. However, these functions are themselves type 3 functions with 255
+ * sub-functions. Because our cache only has 200 entries (at this moment), this overfills
+ * the cache, ejecting all the cached objects (and then some). Which means that we throw
+ * out any previous shadings or functions, meaning that on every use we have to reread them. This is,
+ * obviously, slow. So in the hope that reuse of *sub_functions* is unlikely, we choose to
+ * read the subfunction without caching. This means the main shadings, and the functions,
+ * remain cached so we can reuse them saving an enormous amount of time. If we ever find a file
+ * which significantly reuses sub-functions we may need to revisit this.
+ */
+ code = pdfi_array_get_nocache(ctx, (pdf_array *)Functions, (int64_t)i, &rsubfn);
if (code < 0)
goto function_3_error;
diff --git a/pdf/pdf_gstate.c b/pdf/pdf_gstate.c
index 7544aa48..c1444b4b 100644
--- a/pdf/pdf_gstate.c
+++ b/pdf/pdf_gstate.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 2018-2021 Artifex Software, Inc.
+/* Copyright (C) 2018-2022 Artifex Software, Inc.
All Rights Reserved.
This software is provided AS-IS with no warranty, either express or
@@ -17,6 +17,7 @@
#include "pdf_int.h"
#include "pdf_doc.h"
+#include "pdf_font_types.h"
#include "pdf_gstate.h"
#include "pdf_stack.h"
#include "pdf_dict.h"
@@ -113,7 +114,9 @@ pdfi_gstate_copy_cb(void *to, const void *from)
*/
if (igs_to != NULL) {
pdfi_gstate_smask_free(igs_to);
+ pdfi_countdown(igs_to->current_font);
*(pdfi_int_gstate *) igs_to = *igs_from;
+ pdfi_countup(igs_to->current_font);
pdfi_gstate_smask_install(igs_to, igs_from->memory, igs_from->SMask, igs_from->GroupGState);
}
return 0;
@@ -127,6 +130,7 @@ pdfi_gstate_free_cb(void *old, gs_memory_t * mem, gs_gstate *pgs)
if (old == NULL)
return;
pdfi_gstate_smask_free(igs);
+ pdfi_countdown(igs->current_font);
/* We need to use the graphics state memory, in case we are running under Ghostscript. */
gs_free_object(pgs->memory, igs, "pdfi_gstate_free");
}
@@ -145,6 +149,8 @@ pdfi_gstate_set_client(pdf_context *ctx, gs_gstate *pgs)
/* We need to use the graphics state memory, in case we are running under Ghostscript. */
igs = pdfi_gstate_alloc_cb(pgs->memory);
+ if (igs == NULL)
+ return_error(gs_error_VMerror);
igs->ctx = ctx;
gs_gstate_set_client(pgs, igs, &pdfi_gstate_procs, true /* TODO: client_has_pattern_streams ? */);
return 0;
@@ -252,93 +258,38 @@ int pdfi_op_Q(pdf_context *ctx)
return code;
}
+/* We want pdfi_grestore() so we can track and warn of "too many Qs"
+ * in the interests of symmetry, we also have pdfi_gsave()
+ */
int pdfi_gsave(pdf_context *ctx)
{
- int code;
-
- code = gs_gsave(ctx->pgs);
-
- if(code < 0)
- return code;
- else {
- pdfi_countup_current_font(ctx);
- return 0;
- }
+ return gs_gsave(ctx->pgs);
}
int pdfi_grestore(pdf_context *ctx)
{
- int code;
- pdf_font *font = NULL, *font1 = NULL;
+ int code = 0;
/* Make sure we have encountered as many gsave operations in this
* stream as grestores. If not, log an error
*/
if (ctx->pgs->level > ctx->current_stream_save.gsave_level) {
- font = pdfi_get_current_pdf_font(ctx);
-
code = gs_grestore(ctx->pgs);
-
- font1 = pdfi_get_current_pdf_font(ctx);
- if (font != NULL && (font != font1 || ((pdf_obj *)font)->refcnt > 1)) {
- /* TODO: This countdown might have been causing memory corruption (dangling pointer)
- * but seems to be okay now. Maybe was fixed by other memory issue. 8-28-19
- * If you come upon this comment in the future and it all seems fine, feel free to
- * clean this up... (delete comment, remove the commented out warning message, etc)
- */
-#if REFCNT_DEBUG
- dbgmprintf2(ctx->memory, "pdfi_grestore() counting down font UID %ld, refcnt %d\n",
- font->UID, font->refcnt);
-#endif
- // dbgmprintf(ctx->memory, "WARNING pdfi_grestore() DISABLED pdfi_countdown (FIXME!)\n");
- pdfi_countdown(font);
- }
-
- return code;
} else {
/* We don't throw an error here, we just ignore it and continue */
pdfi_set_warning(ctx, 0, NULL, W_PDF_TOOMANYQ, "pdfi_grestore", (char *)"ignoring q");
}
- return 0;
+ return code;
}
-/* gs_setgstate is somewhat unpleasant from our point of view, because it replaces
- * the content of the graphics state, without going through our pdfi_gsave/pdfi_grestore
- * functionaltiy. In particular we replace the current font in the graphics state when
- * we call it, and this means we *don't* count down the PDF_font object reference count
- * which leads to an incorrect count and either memory leaks or early freeing.
- * This function *requires* that the calling function will do a pdfi_gsave *before*
- * calling pdfi_setgstate, and a pdfi_grestore *after* calling pdfi_gs_setgstate.
- * it correctly increments/decrements the font reference counts for that condition
- * and no other.
- */
int pdfi_gs_setgstate(gs_gstate * pgs, const gs_gstate * pfrom)
{
- pdf_font *font = NULL;
int code = 0;
- /* We are going to release a reference to the font from the graphics state
- * (if there is one) so count it down to keep things straight.
- */
- if (pgs->font) {
- font = (pdf_font *)pgs->font->client_data;
- if (font)
- pdfi_countdown(font);
- }
-
code = gs_setgstate(pgs, pfrom);
if (code < 0)
return code;
- /* The copied gstate may have contained a font, and we expect to do a
- * pdfi_grestore on exit from here, which will count down the font
- * so count it up now in preparation.
- */
- if (pgs->font) {
- font = (pdf_font *)pgs->font->client_data;
- if (font)
- pdfi_countup(font);
- }
return code;
}
@@ -924,6 +875,11 @@ static int pdfi_set_all_transfers(pdf_context *ctx, pdf_array *a, pdf_dict *page
pdfi_countdown(o);
goto exit;
}
+ if (pfn[i]->params.m != 1 || pfn[i]->params.n != 1) {
+ pdfi_countdown(o);
+ code = gs_note_error(gs_error_rangecheck);
+ goto exit;
+ }
} else {
pdfi_countdown(o);
code = gs_note_error(gs_error_typecheck);
@@ -987,7 +943,6 @@ static int pdfi_set_all_transfers(pdf_context *ctx, pdf_array *a, pdf_dict *page
}
}
exit:
-// (void)pdfi_seek(ctx, ctx->main_stream, saved_stream_offset, SEEK_SET);
for (i = 0; i < 4; i++) {
pdfi_free_function(ctx, pfn[i]);
}
@@ -1006,6 +961,11 @@ static int pdfi_set_gray_transfer(pdf_context *ctx, pdf_obj *tr_obj, pdf_dict *p
if (code < 0)
return code;
+ if (pfn->params.m != 1 || pfn->params.n != 1) {
+ (void)pdfi_free_function(ctx, pfn);
+ return_error(gs_error_rangecheck);
+ }
+
gs_settransfer_remap(ctx->pgs, gs_mapped_transfer, false);
for (i = 0; i < transfer_map_size; i++) {
float v, f;
@@ -1206,6 +1166,7 @@ static int build_type1_halftone(pdf_context *ctx, pdf_dict *halftone_dict, pdf_d
gs_screen_enum *penum = NULL;
gs_point pt;
gx_transfer_map *pmap = NULL;
+ bool as;
code = pdfi_dict_get_number(ctx, halftone_dict, "Frequency", &f);
if (code < 0)
@@ -1219,6 +1180,12 @@ static int build_type1_halftone(pdf_context *ctx, pdf_dict *halftone_dict, pdf_d
if (code < 0)
return code;
+ code = pdfi_dict_get_bool(ctx, halftone_dict, "AccurateScreens", &as);
+ if (code == gs_error_undefined)
+ as = 0;
+ else if (code < 0)
+ return code;
+
order = (gx_ht_order *)gs_alloc_bytes(ctx->memory, sizeof(gx_ht_order), "build_type1_halftone");
if (order == NULL) {
code = gs_note_error(gs_error_VMerror);
@@ -1275,6 +1242,7 @@ static int build_type1_halftone(pdf_context *ctx, pdf_dict *halftone_dict, pdf_d
phtc->params.spot.transfer = (code > 0 ? (gs_mapping_proc) 0 : gs_mapped_transfer);
phtc->params.spot.transfer_closure.proc = 0;
phtc->params.spot.transfer_closure.data = 0;
+ phtc->params.spot.accurate_screens = as;
phtc->type = ht_type_spot;
code = pdfi_get_name_index(ctx, name, len, (unsigned int *)&phtc->cname);
if (code < 0)
@@ -2199,6 +2167,16 @@ static int GS_CA(pdf_context *ctx, pdf_dict *GS, pdf_dict *stream_dict, pdf_dict
if (code < 0)
return code;
+ if (d1 > 1.0) {
+ pdfi_set_warning(ctx, 0, NULL, W_PDF_CA_OUTOFRANGE, "GS_CA", NULL);
+ d1 = 1.0;
+ }
+
+ if (d1 < 0.0) {
+ pdfi_set_warning(ctx, 0, NULL, W_PDF_CA_OUTOFRANGE, "GS_CA", NULL);
+ d1 = 0.0;
+ }
+
code = gs_setstrokeconstantalpha(ctx->pgs, d1);
return code;
}
@@ -2212,6 +2190,16 @@ static int GS_ca(pdf_context *ctx, pdf_dict *GS, pdf_dict *stream_dict, pdf_dict
if (code < 0)
return code;
+ if (d1 > 1.0) {
+ pdfi_set_warning(ctx, 0, NULL, W_PDF_CA_OUTOFRANGE, "GS_ca", NULL);
+ d1 = 1.0;
+ }
+
+ if (d1 < 0.0) {
+ pdfi_set_warning(ctx, 0, NULL, W_PDF_CA_OUTOFRANGE, "GS_ca", NULL);
+ d1 = 0.0;
+ }
+
code = gs_setfillconstantalpha(ctx->pgs, d1);
return code;
}
diff --git a/pdf/pdf_gstate.h b/pdf/pdf_gstate.h
index 37bc55a9..2b314971 100644
--- a/pdf/pdf_gstate.h
+++ b/pdf/pdf_gstate.h
@@ -1,4 +1,4 @@
-/* Copyright (C) 2018-2021 Artifex Software, Inc.
+/* Copyright (C) 2018-2022 Artifex Software, Inc.
All Rights Reserved.
This software is provided AS-IS with no warranty, either express or
@@ -23,6 +23,7 @@ typedef struct int_gstate_s {
pdf_context *ctx;
pdf_dict *SMask; /* PDF only, null | dictionary | true */
gs_gstate *GroupGState; /* gstate associated with the SMask */
+ pdf_font *current_font; /* This is the pdfi font pointed at by the "client_data" pointer in the gs_font in the gs_gstate */
gs_memory_t *memory;
} pdfi_int_gstate;
diff --git a/pdf/pdf_image.c b/pdf/pdf_image.c
index a52e5e8e..554cc344 100644
--- a/pdf/pdf_image.c
+++ b/pdf/pdf_image.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 2018-2021 Artifex Software, Inc.
+/* Copyright (C) 2018-2022 Artifex Software, Inc.
All Rights Reserved.
This software is provided AS-IS with no warranty, either express or
@@ -17,6 +17,7 @@
#include "pdf_int.h"
#include "pdf_stack.h"
+#include "pdf_font_types.h"
#include "pdf_gstate.h"
#include "pdf_doc.h"
#include "pdf_page.h"
@@ -470,6 +471,14 @@ pdfi_get_image_info(pdf_context *ctx, pdf_stream *image_obj,
goto errorExit;
}
}
+ if (info->Height < 0) {
+ pdfi_set_warning(ctx, 0, NULL, W_PDF_BAD_IMAGEDICT, "pdfi_get_image_info", NULL);
+ if (ctx->args.pdfstoponwarning) {
+ code = gs_note_error(gs_error_rangecheck);
+ goto errorExit;
+ }
+ info->Height = 0;
+ }
/* Required */
code = pdfi_dict_get_number2(ctx, image_dict, "Width", "W", &temp_f);
@@ -483,6 +492,14 @@ pdfi_get_image_info(pdf_context *ctx, pdf_stream *image_obj,
goto errorExit;
}
}
+ if (info->Width < 0) {
+ pdfi_set_warning(ctx, 0, NULL, W_PDF_BAD_IMAGEDICT, "pdfi_get_image_info", NULL);
+ if (ctx->args.pdfstoponwarning) {
+ code = gs_note_error(gs_error_rangecheck);
+ goto errorExit;
+ }
+ info->Width = 0;
+ }
/* Optional, default false */
code = pdfi_dict_get_bool2(ctx, image_dict, "ImageMask", "IM", &info->ImageMask);
@@ -699,13 +716,13 @@ pdfi_render_image(pdf_context *ctx, gs_pixel_image_t *pim, pdf_c_stream *image_s
{
int code;
gs_image_enum *penum = NULL;
- byte *buffer = NULL;
- uint64_t linelen, bytes_left;
+ uint64_t bytes_left;
uint64_t bytes_used = 0;
uint64_t bytes_avail = 0;
gs_const_string plane_data[GS_IMAGE_MAX_COMPONENTS];
int main_plane=0, mask_plane=0;
bool no_progress = false;
+ int min_left;
#if DEBUG_IMAGES
dbgmprintf(ctx->memory, "pdfi_render_image BEGIN\n");
@@ -715,8 +732,9 @@ pdfi_render_image(pdf_context *ctx, gs_pixel_image_t *pim, pdf_c_stream *image_s
if (code < 0)
return code;
- /* Disable overprint mode for images */
- gs_setoverprintmode(ctx->pgs, 0);
+ /* Disable overprint mode for images that are not a mask */
+ if (!ImageMask)
+ gs_setoverprintmode(ctx->pgs, 0);
penum = gs_image_enum_alloc(ctx->memory, "pdfi_render_image (gs_image_enum_alloc)");
if (!penum) {
@@ -761,37 +779,36 @@ pdfi_render_image(pdf_context *ctx, gs_pixel_image_t *pim, pdf_c_stream *image_s
main_plane = 0;
}
- /* Going to feed the data one line at a time.
- * This isn't required by gs_image_next_planes(), but it might make things simpler.
- */
- linelen = pdfi_get_image_line_size((gs_data_image_t *)pim, comps);
bytes_left = pdfi_get_image_data_size((gs_data_image_t *)pim, comps);
- buffer = gs_alloc_bytes(ctx->memory, linelen, "pdfi_render_image (buffer)");
- if (!buffer) {
- code = gs_note_error(gs_error_VMerror);
- goto cleanupExit;
- }
while (bytes_left > 0) {
uint used[GS_IMAGE_MAX_COMPONENTS];
- if (bytes_avail == 0) {
- code = pdfi_read_bytes(ctx, buffer, 1, linelen, image_stream);
- if (code < 0) {
- dmprintf3(ctx->memory,
- "WARNING: Image data error (pdfi_read_bytes) bytes_left=%ld, linelen=%ld, code=%d\n",
- bytes_left, linelen, code);
- goto cleanupExit;
- }
- if (code != linelen) {
- dmprintf3(ctx->memory, "WARNING: Image data mismatch, bytes_left=%ld, linelen=%ld, code=%d\n",
- bytes_left, linelen, code);
- code = gs_note_error(gs_error_limitcheck);
+ while ((bytes_avail = sbufavailable(image_stream->s)) <= (min_left = sbuf_min_left(image_stream->s))) {
+ switch (image_stream->s->end_status) {
+ case 0:
+ s_process_read_buf(image_stream->s);
+ continue;
+ case EOFC:
+ case INTC:
+ case CALLC:
+ break;
+ default:
+ /* case ERRC: */
+ code = gs_note_error(gs_error_ioerror);
goto cleanupExit;
}
+ break; /* for EOFC */
}
- plane_data[main_plane].data = buffer + bytes_used;
- plane_data[main_plane].size = linelen - bytes_used;
+ /*
+ * Note that in the EOF case, we can get here with no data
+ * available.
+ */
+ if (bytes_avail >= min_left)
+ bytes_avail = (bytes_avail - min_left); /* may be 0 */
+
+ plane_data[main_plane].data = sbufptr(image_stream->s);
+ plane_data[main_plane].size = bytes_avail;
code = gs_image_next_planes(penum, plane_data, used);
if (code < 0) {
@@ -810,6 +827,8 @@ pdfi_render_image(pdf_context *ctx, gs_pixel_image_t *pim, pdf_c_stream *image_s
no_progress = false;
}
+ (void)sbufskip(image_stream->s, used[main_plane]);
+
/* It might not always consume all the data, but so far the only case
* I have seen with that was one that had mask data.
* In that case, it used all of plane 0, and none of plane 1 on the first pass.
@@ -820,14 +839,12 @@ pdfi_render_image(pdf_context *ctx, gs_pixel_image_t *pim, pdf_c_stream *image_s
*/
bytes_used = used[main_plane];
bytes_left -= bytes_used;
- bytes_avail = linelen - bytes_used;
+ bytes_avail -= bytes_used;
}
code = 0;
cleanupExit:
- if (buffer)
- gs_free_object(ctx->memory, buffer, "pdfi_render_image (buffer)");
if (penum)
gs_image_cleanup_and_free_enum(penum, ctx->pgs);
pdfi_grestore(ctx);
@@ -876,7 +893,8 @@ pdfi_data_image_params(pdf_context *ctx, pdfi_image_info_t *info,
float minval, maxval;
/* TODO: Is there a less hacky way to identify Indexed case? */
- if (pcs && pcs->type == &gs_color_space_type_Indexed) {
+ if (pcs && (pcs->type == &gs_color_space_type_Indexed ||
+ pcs->type == &gs_color_space_type_Indexed_Named)) {
/* Default value is [0,N], where N=2^n-1, our hival (which depends on BPC)*/
minval = 0.0;
maxval = (float)((1 << info->BPC) - 1);
@@ -1230,7 +1248,7 @@ static int pdfi_create_JPX_Lab(pdf_context *ctx, pdf_obj **ColorSpace)
}
num = NULL;
- code = pdfi_dict_put_obj(ctx, Params, (pdf_obj *)WhitePointName, (pdf_obj *)WhitePoint);
+ code = pdfi_dict_put_obj(ctx, Params, (pdf_obj *)WhitePointName, (pdf_obj *)WhitePoint, true);
if (code < 0)
goto cleanupExit;
@@ -1268,7 +1286,7 @@ cleanupExit:
static int
pdfi_image_get_color(pdf_context *ctx, pdf_c_stream *source, pdfi_image_info_t *image_info,
- int *comps, gs_color_space **pcs)
+ int *comps, ulong dictkey, gs_color_space **pcs)
{
int code = 0;
pdfi_jpx_info_t *jpx_info = &image_info->jpx_info;
@@ -1276,11 +1294,33 @@ pdfi_image_get_color(pdf_context *ctx, pdf_c_stream *source, pdfi_image_info_t *
char *backup_color_name = NULL;
bool using_enum_cs = false;
- /* NOTE: Spec says ImageMask and ColorSpace mutually exclusive */
+ /* NOTE: Spec says ImageMask and ColorSpace mutually exclusive
+ * We need to make sure we do not have both set or we could end up treating
+ * an image as a mask or vice versa and trying to use a non-existent colour space.
+ */
if (image_info->ImageMask) {
- *comps = 1;
- *pcs = NULL;
- return 0;
+ if (image_info->ColorSpace == NULL) {
+ *comps = 1;
+ *pcs = NULL;
+ if (image_info->Mask) {
+ pdfi_countdown(image_info->Mask);
+ image_info->Mask = NULL;
+ }
+ return 0;
+ } else {
+ if (image_info->BPC != 1 || image_info->Mask != NULL) {
+ pdfi_set_error(ctx, 0, NULL, E_IMAGE_MASKWITHCOLOR, "pdfi_image_get_color", "BitsPerComonent is not 1, so treating as an image");
+ image_info->ImageMask = 0;
+ }
+ else {
+ pdfi_set_error(ctx, 0, NULL, E_IMAGE_MASKWITHCOLOR, "pdfi_image_get_color", "BitsPerComonent is 1, so treating as a mask");
+ pdfi_countdown(image_info->ColorSpace);
+ image_info->ColorSpace = NULL;
+ *comps = 1;
+ *pcs = NULL;
+ return 0;
+ }
+ }
}
ColorSpace = image_info->ColorSpace;
@@ -1303,7 +1343,7 @@ pdfi_image_get_color(pdf_context *ctx, pdf_c_stream *source, pdfi_image_info_t *
code = pdfi_create_icc_colorspace_from_stream(ctx, source, jpx_info->icc_offset,
jpx_info->icc_length, jpx_info->comps, &dummy,
- pcs);
+ dictkey, pcs);
if (code < 0) {
dmprintf2(ctx->memory,
"WARNING JPXDecode: Error setting icc colorspace (offset=%d,len=%d)\n",
@@ -1356,8 +1396,9 @@ pdfi_image_get_color(pdf_context *ctx, pdf_c_stream *source, pdfi_image_info_t *
{
char extra_info[gp_file_name_sizeof];
/* TODO: Could try DeviceRGB instead of erroring out? */
- gs_sprintf(extra_info, "**** Error: JPXDecode: Unsupported EnumCS %d\n", jpx_info->cs_enum);
+ gs_snprintf(extra_info, sizeof(extra_info), "**** Error: JPXDecode: Unsupported EnumCS %d\n", jpx_info->cs_enum);
pdfi_set_error(ctx, 0, NULL, E_PDF_IMAGECOLOR_ERROR, "pdfi_image_get_color", extra_info);
+ code = gs_note_error(gs_error_rangecheck);
goto cleanupExit;
}
}
@@ -1396,9 +1437,16 @@ pdfi_image_get_color(pdf_context *ctx, pdf_c_stream *source, pdfi_image_info_t *
if (ColorSpace->type == PDF_NAME) {
pdf_name *name = (pdf_name *)ColorSpace;
char str[100];
- memcpy(str, (const char *)name->data, name->length);
- str[name->length] = '\0';
- dmprintf1(ctx->memory, "NAME:%s\n", str);
+ int length = name->length;
+
+ if (length > 0) {
+ if (length > 99)
+ length = 99;
+
+ memcpy(str, (const char *)name->data, length);
+ str[length] = '\0';
+ dmprintf1(ctx->memory, "NAME:%s\n", str);
+ }
} else {
dmprintf(ctx->memory, "(not a name)\n");
}
@@ -1540,7 +1588,7 @@ static int
pdfi_do_image(pdf_context *ctx, pdf_dict *page_dict, pdf_dict *stream_dict, pdf_stream *image_stream,
pdf_c_stream *source, bool inline_image)
{
- pdf_c_stream *new_stream = NULL;
+ pdf_c_stream *new_stream = NULL, *SFD_stream = NULL;
int code = 0, code1 = 0;
int comps = 0;
gs_color_space *pcs = NULL;
@@ -1558,12 +1606,15 @@ pdfi_do_image(pdf_context *ctx, pdf_dict *page_dict, pdf_dict *stream_dict, pdf_
uint64_t mask_size = 0;
pdfi_int_gstate *igs = (pdfi_int_gstate *)ctx->pgs->client_data;
bool transparency_group = false;
+ bool op_blend_mode = false;
+ int blend_mode;
bool need_smask_cleanup = false;
bool maybe_jpxdecode = false;
pdfi_trans_state_t trans_state;
int saved_intent;
gs_offset_t stream_offset;
float save_strokeconstantalpha = 0.0f, save_fillconstantalpha = 0.0f;
+ int trans_required;
#if DEBUG_IMAGES
dbgmprintf(ctx->memory, "pdfi_do_image BEGIN\n");
@@ -1660,7 +1711,7 @@ pdfi_do_image(pdf_context *ctx, pdf_dict *page_dict, pdf_dict *stream_dict, pdf_
}
/* Get the color for this image */
- code = pdfi_image_get_color(ctx, source, &image_info, &comps, &pcs);
+ code = pdfi_image_get_color(ctx, source, &image_info, &comps, image_stream->object_num, &pcs);
if (code < 0)
goto cleanupExit;
@@ -1742,9 +1793,22 @@ pdfi_do_image(pdf_context *ctx, pdf_dict *page_dict, pdf_dict *stream_dict, pdf_
code = pdfi_gs_setcolorspace(ctx, pcs);
if (code < 0)
goto cleanupExit;
+
+ /* Try to set the device color again as that failure
+ is why we are here. If it fails again, something
+ is very wrong */
+ code = gx_set_dev_color(ctx->pgs);
+ if (code < 0)
+ goto cleanupExit;
}
}
}
+ else {
+ if (image_info.ImageMask == 0) {
+ code = gs_note_error(gs_error_undefined);
+ goto cleanupExit;
+ }
+ }
/* Make a fake SMask dict if needed for JPXDecode */
if (ctx->page.has_transparency && image_info.is_JPXDecode && image_info.SMaskInData != 0) {
@@ -1765,6 +1829,21 @@ pdfi_do_image(pdf_context *ctx, pdf_dict *page_dict, pdf_dict *stream_dict, pdf_
goto cleanupExit;
need_smask_cleanup = true;
}
+
+ /* If we are in an overprint situation this group will need
+ to have its blend mode set to compatible overprint. */
+ if (ctx->page.needs_OP) {
+ if (pdfi_trans_okOPcs(ctx)) {
+ if (gs_currentfilloverprint(ctx->pgs)) {
+ blend_mode = gs_currentblendmode(ctx->pgs);
+ code = gs_setblendmode(ctx->pgs, BLEND_MODE_CompatibleOverprint);
+ op_blend_mode = true;
+ if (code < 0)
+ goto cleanupExit;
+ }
+ }
+ }
+
if (has_Matte)
code = pdfi_trans_begin_isolated_group(ctx, true, pcs);
else
@@ -1887,8 +1966,15 @@ pdfi_do_image(pdf_context *ctx, pdf_dict *page_dict, pdf_dict *stream_dict, pdf_
}
/* Setup the data stream for the image data */
- if (!inline_image)
+ if (!inline_image) {
pdfi_seek(ctx, source, stream_offset, SEEK_SET);
+
+ code = pdfi_apply_SubFileDecode_filter(ctx, 0, "endstream", source, &SFD_stream, false);
+ if (code < 0)
+ goto cleanupExit;
+ source = SFD_stream;
+ }
+
code = pdfi_filter(ctx, image_stream, source, &new_stream, inline_image);
if (code < 0)
goto cleanupExit;
@@ -1936,7 +2022,18 @@ pdfi_do_image(pdf_context *ctx, pdf_dict *page_dict, pdf_dict *stream_dict, pdf_
code = pdfi_apply_imscale_filter(ctx, 0, image_info.Width, image_info.Height, s, &new_stream);
if (code < 0)
goto cleanupExit;
+ /* This adds the filter to the 'chain' of filter we created. When we close this filter
+ * it closes all the filters in the chain, back to either the SubFileDecode filter or the
+ * original main stream. If we don't patch this up then we leak memory for any filters
+ * applied in pdfi_filter above.
+ */
+ new_stream->original = s->original;
+ /* We'e created a new 'new_stream', which is a C stream, to hold the filter chain
+ * but we still need to free the original C stream 'wrapper' we created with pdfi_filter()
+ * Do that now.
+ */
+ gs_free_object(ctx->memory, s, "free stream replaced by adding image scaling filter");
image_info.Width *= 4;
image_info.Height *= 4;
pim->Width *= 4;
@@ -1947,9 +2044,13 @@ pdfi_do_image(pdf_context *ctx, pdf_dict *page_dict, pdf_dict *stream_dict, pdf_
}
}
- code = pdfi_image_setup_trans(ctx, &trans_state);
- if (code < 0)
- goto cleanupExit;
+ trans_required = pdfi_trans_required(ctx);
+
+ if (trans_required) {
+ code = pdfi_image_setup_trans(ctx, &trans_state);
+ if (code < 0)
+ goto cleanupExit;
+ }
/* Render the image */
code = pdfi_render_image(ctx, pim, new_stream,
@@ -1960,9 +2061,11 @@ pdfi_do_image(pdf_context *ctx, pdf_dict *page_dict, pdf_dict *stream_dict, pdf_
dmprintf1(ctx->memory, "WARNING: pdfi_do_image: error %d from pdfi_render_image\n", code);
}
- code1 = pdfi_trans_teardown(ctx, &trans_state);
- if (code == 0)
- code = code1;
+ if (trans_required) {
+ code1 = pdfi_trans_teardown(ctx, &trans_state);
+ if (code == 0)
+ code = code1;
+ }
cleanupExit:
if (code < 0)
@@ -1980,8 +2083,14 @@ pdfi_do_image(pdf_context *ctx, pdf_dict *page_dict, pdf_dict *stream_dict, pdf_
pdfi_trans_end_smask_notify(ctx);
}
+ if (op_blend_mode) {
+ code = gs_setblendmode(ctx->pgs, blend_mode);
+ }
+
if (new_stream)
pdfi_close_file(ctx, new_stream);
+ if (SFD_stream)
+ pdfi_close_file(ctx, SFD_stream);
if (mask_buffer)
gs_free_object(ctx->memory, mask_buffer, "pdfi_do_image (mask_buffer)");
@@ -2017,7 +2126,7 @@ int pdfi_ID(pdf_context *ctx, pdf_dict *stream_dict, pdf_dict *page_dict, pdf_c_
* been decrypted, we don't need to decrypt any strings contained in the
* inline dictionary.
*/
- code = pdfi_dict_from_stack(ctx, 0, 0);
+ code = pdfi_dict_from_stack(ctx, 0, 0, false);
if (code < 0)
/* pdfi_dict_from_stack cleans up the stack so we don't need to in case of an error */
return code;
@@ -2200,6 +2309,8 @@ static int pdfi_form_stream_hack(pdf_context *ctx, pdf_dict *form_dict, pdf_stre
return 0;
if (!ctx->args.pdfstoponerror) {
+ pdf_obj *Parent = NULL;
+ pdf_dict *d = NULL;
pdf_dict *stream_dict = NULL;
code = pdfi_dict_knownget_type(ctx, form_dict, "Contents", PDF_STREAM,
@@ -2209,6 +2320,27 @@ static int pdfi_form_stream_hack(pdf_context *ctx, pdf_dict *form_dict, pdf_stre
code = gs_note_error(gs_error_typecheck);
goto exit;
}
+
+ d = form_dict;
+ pdfi_countup(d);
+ do {
+ code = pdfi_dict_knownget(ctx, d, "Parent", (pdf_obj **)&Parent);
+ if (code > 0) {
+ if (Parent->object_num == stream_obj->object_num) {
+ pdfi_countdown(d);
+ pdfi_countdown(Parent);
+ pdfi_set_error(ctx, 0, NULL, E_PDF_BADSTREAMDICT, "pdfi_form_stream_hack", NULL);
+ code = gs_note_error(gs_error_undefined);
+ goto exit;
+ }
+ pdfi_countdown(d);
+ d = (pdf_dict *)Parent;
+ } else {
+ pdfi_countdown(d);
+ break;
+ }
+ } while (1);
+
code = pdfi_dict_from_obj(ctx, (pdf_obj *)stream_obj, &stream_dict);
if (code < 0) {
pdfi_set_error(ctx, 0, NULL, E_PDF_BADSTREAMDICT, "pdfi_form_stream_hack", NULL);
@@ -2402,7 +2534,7 @@ int pdfi_do_image_or_form(pdf_context *ctx, pdf_dict *stream_dict,
gs_offset_t savedoffset;
if (xobject_obj->type != PDF_STREAM) {
- gs_note_error(gs_error_typecheck);
+ code = gs_note_error(gs_error_typecheck);
goto exit;
}
savedoffset = pdfi_tell(ctx->main_stream);
@@ -2480,6 +2612,7 @@ int pdfi_Do(pdf_context *ctx, pdf_dict *stream_dict, pdf_dict *page_dict)
goto exit;
}
+ code = pdfi_loop_detector_cleartomark(ctx);
/* NOTE: Used to have a pdfi_gsave/pdfi_grestore around this, but it actually makes
* things render incorrectly (and isn't in the PS code).
* It also causes demo.ai.pdf to crash.
@@ -2494,14 +2627,12 @@ int pdfi_Do(pdf_context *ctx, pdf_dict *stream_dict, pdf_dict *page_dict)
// pdfi_gsave(ctx);
code = pdfi_do_image_or_form(ctx, stream_dict, page_dict, o);
// pdfi_grestore(ctx);
- if (code < 0)
- goto exit;
+ pdfi_countdown(o);
+ pdfi_pop(ctx, 1);
+ return code;
- exit:
- if (code < 0)
- (void)pdfi_loop_detector_cleartomark(ctx);
- else
- code = pdfi_loop_detector_cleartomark(ctx);
+exit:
+ (void)pdfi_loop_detector_cleartomark(ctx);
exit1:
/* No need to countdown 'n' because that points to the stack object, and we're going to pop that */
pdfi_countdown(o);
diff --git a/pdf/pdf_int.c b/pdf/pdf_int.c
index 555653b6..9493922b 100644
--- a/pdf/pdf_int.c
+++ b/pdf/pdf_int.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 2018-2021 Artifex Software, Inc.
+/* Copyright (C) 2018-2022 Artifex Software, Inc.
All Rights Reserved.
This software is provided AS-IS with no warranty, either express or
@@ -25,7 +25,7 @@
#include "pdf_image.h"
#include "pdf_shading.h"
#include "pdf_font.h"
-#include "pdf_font.h"
+#include "pdf_font_types.h"
#include "pdf_cmap.h"
#include "pdf_text.h"
#include "pdf_gstate.h"
@@ -37,6 +37,8 @@
#include "pdf_optcontent.h"
#include "pdf_sec.h"
+#include "gsstate.h" /* for gs_gstate_free */
+
/* we use -ve returns for error, 0 for success and +ve for 'take an action' */
/* Defining tis return so we do not need to define a new error */
#define REPAIRED_KEYWORD 1
@@ -106,83 +108,114 @@ static int fromhex(char c)
*/
int pdfi_skip_white(pdf_context *ctx, pdf_c_stream *s)
{
- uint32_t read = 0;
- int32_t bytes = 0;
- byte c;
+ int c;
do {
- bytes = pdfi_read_bytes(ctx, &c, 1, 1, s);
- if (bytes < 0)
- return_error(gs_error_ioerror);
- if (bytes == 0)
+ c = pdfi_read_byte(ctx, s);
+ if (c < 0)
return 0;
- read += bytes;
- } while (bytes != 0 && iswhite(c));
+ } while (iswhite(c));
- if (read > 0)
- pdfi_unread(ctx, s, &c, 1);
+ pdfi_unread_byte(ctx, s, (byte)c);
return 0;
}
int pdfi_skip_eol(pdf_context *ctx, pdf_c_stream *s)
{
- uint32_t read = 0;
- int32_t bytes = 0;
- byte c;
+ int c;
do {
- bytes = pdfi_read_bytes(ctx, &c, 1, 1, s);
- if (bytes == 0)
- return 0;
- if (read) {
- if (c == 0x0A)
- return 0;
- pdfi_unread(ctx, s, &c, 1);
+ c = pdfi_read_byte(ctx, s);
+ if (c < 0 || c == 0x0a)
return 0;
- }
- if (c == 0x0D)
- read++;
- } while (c != 0x0A);
+ } while (c != 0x0d);
+ c = pdfi_read_byte(ctx, s);
+ if (c == 0x0a)
+ return 0;
+ if (c >= 0)
+ pdfi_unread_byte(ctx, s, (byte)c);
return 0;
}
+/* Fast(ish) but inaccurate strtof, with Adobe overflow handling,
+ * lifted from MuPDF. */
+static float acrobat_compatible_atof(char *s)
+{
+ int neg = 0;
+ int i = 0;
+
+ while (*s == '-') {
+ neg = 1;
+ ++s;
+ }
+ while (*s == '+') {
+ ++s;
+ }
+
+ while (*s >= '0' && *s <= '9') {
+ /* We deliberately ignore overflow here.
+ * Tests show that Acrobat handles * overflows in exactly the same way we do:
+ * 123450000000000000000678 is read as 678.
+ */
+ i = i * 10 + (*s - '0');
+ ++s;
+ }
+
+ if (*s == '.') {
+ float v = (float)i;
+ float n = 0;
+ float d = 1;
+ ++s;
+ while (*s >= '0' && *s <= '9') {
+ n = 10 * n + (*s - '0');
+ d = 10 * d;
+ ++s;
+ }
+ v += n / d;
+ return neg ? -v : v;
+ } else {
+ return (float)(neg ? -i : i);
+ }
+}
+
static int pdfi_read_num(pdf_context *ctx, pdf_c_stream *s, uint32_t indirect_num, uint32_t indirect_gen)
{
byte Buffer[256];
- char Max[256];
- int MaxLen = 0;
unsigned short index = 0;
- short bytes;
bool real = false;
bool has_decimal_point = false;
bool has_exponent = false;
unsigned short exponent_index = 0;
pdf_num *num;
- int code = 0, malformed = false, doubleneg = false, recovered = false;
+ int code = 0, malformed = false, doubleneg = false, recovered = false, negative = false;
+ int int_val = 0;
pdfi_skip_white(ctx, s);
do {
- bytes = pdfi_read_bytes(ctx, (byte *)&Buffer[index], 1, 1, s);
- if (bytes == 0 && s->eof) {
+ int c = pdfi_read_byte(ctx, s);
+ if (c == EOFC) {
Buffer[index] = 0x00;
break;
}
- if (bytes <= 0)
+ if (c < 0)
return_error(gs_error_ioerror);
- if (iswhite((char)Buffer[index])) {
+ if (iswhite(c)) {
+ Buffer[index] = 0x00;
+ break;
+ } else if (isdelimiter(c)) {
+ pdfi_unread_byte(ctx, s, (byte)c);
Buffer[index] = 0x00;
break;
- } else {
- if (isdelimiter((char)Buffer[index])) {
- pdfi_unread(ctx, s, (byte *)&Buffer[index], 1);
- Buffer[index] = 0x00;
- break;
- }
}
- if (Buffer[index] == '.') {
+ Buffer[index] = (byte)c;
+
+ if (c >= '0' && c <= '9') {
+ if (!(malformed && recovered))
+ int_val = int_val*10 + c - '0';
+ } else if (c == '.') {
if (has_decimal_point == true) {
if (ctx->args.pdfstoponerror)
return_error(gs_error_syntaxerror);
@@ -191,7 +224,7 @@ static int pdfi_read_num(pdf_context *ctx, pdf_c_stream *s, uint32_t indirect_nu
has_decimal_point = true;
real = true;
}
- } else if (Buffer[index] == 'e' || Buffer[index] == 'E') {
+ } else if (c == 'e' || c == 'E') {
/* TODO: technically scientific notation isn't in PDF spec,
* but gs seems to accept it, so we should also?
*/
@@ -205,32 +238,47 @@ static int pdfi_read_num(pdf_context *ctx, pdf_c_stream *s, uint32_t indirect_nu
exponent_index = index;
real = true;
}
- } else if (Buffer[index] == '-' || Buffer[index] == '+') {
+ } else if (c == '-') {
+ /* Any - sign not at the start of the string, or just after an exponent
+ * indicates a malformed number. */
if (!(index == 0 || (has_exponent && index == exponent_index+1))) {
+ pdfi_set_error(ctx, 0, NULL, E_PDF_MALFORMEDNUMBER, "pdfi_read_num", NULL);
if (ctx->args.pdfstoponerror)
return_error(gs_error_syntaxerror);
- /* Acrobat weirdness. We need to know if a number starts with two - signs
- * because Acrobat treats real and integers defined this way differently!
- * Double-negated integers are treated as 0, and reals are treated as if
- * they had one negative sign. We can't tell whether the number is a real
- * or not yet, we do that below.
- */
- pdfi_set_error(ctx, 0, NULL, E_PDF_MALFORMEDNUMBER, "pdfi_read_num", NULL);
- if (Buffer[index - 1] == '-') {
- doubleneg = true;
- index -= 1;
+ if (Buffer[index - 1] != '-') {
+ /* We are parsing a number line 123-56. We should continue parsing, but
+ * ignore anything from the second -. */
+ malformed = true;
+ Buffer[index] = 0;
+ recovered = true;
}
- else {
+ }
+ if (!has_exponent && !(malformed && recovered)) {
+ doubleneg = negative;
+ negative = 1;
+ }
+ } else if (c == '+') {
+ if (index == 0 || (has_exponent && index == exponent_index+1)) {
+ /* Just drop the + it's pointless, and it'll get in the way
+ * of our negation handling for floats. */
+ index--;
+ } else {
+ pdfi_set_error(ctx, 0, NULL, E_PDF_MALFORMEDNUMBER, "pdfi_read_num", NULL);
+ if (ctx->args.pdfstoponerror)
+ return_error(gs_error_syntaxerror);
+ if (Buffer[index - 1] != '-') {
+ /* We are parsing a number line 123-56. We should continue parsing, but
+ * ignore anything from the second -. */
malformed = true;
- Buffer[index] = 0x00;
+ Buffer[index] = 0;
recovered = true;
}
}
- } else if (Buffer[index] < 0x30 || Buffer[index] > 0x39) {
+ } else {
pdfi_set_error(ctx, 0, NULL, E_PDF_MISSINGWHITESPACE, "pdfi_read_num", (char *)"Ignoring missing white space while parsing number");
if (ctx->args.pdfstoponerror)
return_error(gs_error_syntaxerror);
- pdfi_unread(ctx, s, (byte *)&Buffer[index], 1);
+ pdfi_unread_byte(ctx, s, (byte)c);
Buffer[index] = 0x00;
break;
}
@@ -238,38 +286,6 @@ static int pdfi_read_num(pdf_context *ctx, pdf_c_stream *s, uint32_t indirect_nu
return_error(gs_error_syntaxerror);
} while(1);
- if (!real && index > 7) {
- /* Check for integer overflow, represent as real if so */
- gs_sprintf(Max, "%d", (max_uint >> 1));
- MaxLen = strlen((const char *)Max);
-
- if (index >= MaxLen) {
- int j = 0;
-
- if (Buffer[j] == '-')
- j++;
-
- while (Buffer[j] == '0')
- j++;
-
- if (index - j > MaxLen)
- real = true;
-
- if (index - j == MaxLen)
- {
- real = false;
-
- for (;j< MaxLen; j++) {
- if (Buffer[j] == Max[j])
- continue;
- if (Buffer[j] > Max[j])
- real=true;
- break;
- }
- }
- }
- }
-
if (real && (!malformed || (malformed && recovered)))
code = pdfi_object_alloc(ctx, PDF_REAL, 0, (pdf_obj **)&num);
else
@@ -278,67 +294,21 @@ static int pdfi_read_num(pdf_context *ctx, pdf_c_stream *s, uint32_t indirect_nu
return code;
if ((malformed && !recovered) || (!real && doubleneg)) {
- char extra_info[gp_file_name_sizeof];
-
- gs_sprintf(extra_info, "Treating malformed number %s as 0", Buffer);
- pdfi_set_error(ctx, 0, NULL, E_PDF_MALFORMEDNUMBER, "pdfi_read_num", extra_info);
+ pdfi_set_error_var(ctx, 0, NULL, E_PDF_MALFORMEDNUMBER, "pdfi_read_num", "Treating malformed number %s as 0", Buffer);
num->value.i = 0;
- } else {
- if (real) {
- float tempf;
- char *dot = NULL, mfloat[256]; /* We limit numbers to 255 above so it can't exceed this */
-
- /* Check for overflow */
- gs_sprintf(mfloat, "%f", MAX_FLOAT);
- dot = strstr(mfloat, ".");
- *dot = 0x00;
-
- dot = strstr((char *)Buffer, ".");
- if (dot != NULL)
- *dot = 0x00;
- if (strlen((char *)Buffer) > strlen(mfloat)) {
- if (dot != NULL)
- *dot = '.';
- if (ctx->args.pdfdebug)
- dmprintf1(ctx->memory, "overflow reading real number : %s\n", Buffer);
- pdfi_set_warning(ctx, 0, NULL, W_PDF_OVERFLOW_REAL, "pdfi_read_num", NULL);
- num->value.d = 0.0;
- }
- else {
- if (strlen((char *)Buffer) == strlen(mfloat)) {
- int fi = 0;
-
- for (fi = 0;fi < strlen((const char *)Buffer);fi++) {
- if (Buffer[fi] > mfloat[fi]) {
- if (dot != NULL)
- *dot = '.';
- if (ctx->args.pdfdebug)
- dmprintf1(ctx->memory, "overflow reading real number : %s\n", Buffer);
- pdfi_set_warning(ctx, 0, NULL, W_PDF_OVERFLOW_REAL, "pdfi_read_num", NULL);
- num->value.d = 0.0;
- }
- }
- }
- if (dot != NULL)
- *dot = '.';
- if (sscanf((const char *)Buffer, "%f", &tempf) == 0) {
- if (ctx->args.pdfdebug)
- dmprintf1(ctx->memory, "failed to read real number : %s\n", Buffer);
- pdfi_set_warning(ctx, 0, NULL, W_PDF_INVALID_REAL, "pdfi_read_num", NULL);
- num->value.d = 0.0;
- }
- num->value.d = tempf;
- }
+ } else if (has_exponent) {
+ float f;
+ if (sscanf((char *)Buffer, "%g", &f) == 1) {
+ num->value.d = f;
} else {
- int tempi;
- if (sscanf((const char *)Buffer, "%d", &tempi) == 0) {
- if (ctx->args.pdfdebug)
- dmprintf1(ctx->memory, "failed to read integer : %s\n", Buffer);
- gs_free_object(OBJ_MEMORY(num), num, "pdfi_read_num error");
- return_error(gs_error_syntaxerror);
- }
- num->value.i = tempi;
+ pdfi_set_error_var(ctx, 0, NULL, E_PDF_MALFORMEDNUMBER, "pdfi_read_num", "Treating malformed float %s as 0", Buffer);
+ num->value.d = 0;
}
+ } else if (real) {
+ num->value.d = acrobat_compatible_atof((char *)Buffer);
+ } else {
+ /* The doubleneg case is taken care of above. */
+ num->value.i = negative ? -int_val : int_val;
}
if (ctx->args.pdfdebug) {
if (real)
@@ -371,31 +341,29 @@ static int pdfi_read_name(pdf_context *ctx, pdf_c_stream *s, uint32_t indirect_n
return_error(gs_error_VMerror);
do {
- bytes = pdfi_read_bytes(ctx, (byte *)&Buffer[index], 1, 1, s);
- if (bytes == 0 && s->eof)
+ int c = pdfi_read_byte(ctx, s);
+ if (c < 0)
break;
- if (bytes <= 0)
- return_error(gs_error_ioerror);
- if (iswhite((char)Buffer[index])) {
+ if (iswhite((char)c)) {
+ Buffer[index] = 0x00;
+ break;
+ } else if (isdelimiter((char)c)) {
+ pdfi_unread_byte(ctx, s, (char)c);
Buffer[index] = 0x00;
break;
- } else {
- if (isdelimiter((char)Buffer[index])) {
- pdfi_unread(ctx, s, (byte *)&Buffer[index], 1);
- Buffer[index] = 0x00;
- break;
- }
}
+ Buffer[index] = (char)c;
/* Check for and convert escaped name characters */
- if (Buffer[index] == '#') {
+ if (c == '#') {
byte NumBuf[2];
bytes = pdfi_read_bytes(ctx, (byte *)&NumBuf, 1, 2, s);
if (bytes < 2 || (!ishex(NumBuf[0]) || !ishex(NumBuf[1]))) {
pdfi_set_warning(ctx, 0, NULL, W_PDF_BAD_NAME_ESCAPE, "pdfi_read_name", NULL);
pdfi_unread(ctx, s, (byte *)NumBuf, bytes);
+ /* This leaves the name buffer with a # in it, rather than anything sane! */
}
else
Buffer[index] = (fromhex(NumBuf[0]) << 4) + fromhex(NumBuf[1]);
@@ -439,12 +407,11 @@ static int pdfi_read_name(pdf_context *ctx, pdf_c_stream *s, uint32_t indirect_n
static int pdfi_read_hexstring(pdf_context *ctx, pdf_c_stream *s, uint32_t indirect_num, uint32_t indirect_gen)
{
- char *Buffer, *NewBuf = NULL, HexBuf[2];
+ char *Buffer, *NewBuf = NULL;
unsigned short index = 0;
- short bytes = 0;
uint32_t size = 256;
pdf_string *string = NULL;
- int code;
+ int code, hex0, hex1;
Buffer = (char *)gs_alloc_bytes(ctx->memory, size, "pdfi_read_hexstring");
if (Buffer == NULL)
@@ -455,44 +422,36 @@ static int pdfi_read_hexstring(pdf_context *ctx, pdf_c_stream *s, uint32_t indir
do {
do {
- bytes = pdfi_read_bytes(ctx, (byte *)HexBuf, 1, 1, s);
- if (bytes == 0 && s->eof)
+ hex0 = pdfi_read_byte(ctx, s);
+ if (hex0 < 0)
break;
- if (bytes <= 0) {
- code = gs_note_error(gs_error_ioerror);
- goto exit;
- }
- } while(iswhite(HexBuf[0]));
- if (bytes == 0 && s->eof)
+ } while(iswhite(hex0));
+ if (hex0 < 0)
break;
- if (HexBuf[0] == '>')
+ if (hex0 == '>')
break;
if (ctx->args.pdfdebug)
- dmprintf1(ctx->memory, "%c", HexBuf[0]);
+ dmprintf1(ctx->memory, "%c", (char)hex0);
do {
- bytes = pdfi_read_bytes(ctx, (byte *)&HexBuf[1], 1, 1, s);
- if (bytes == 0 && s->eof)
+ hex1 = pdfi_read_byte(ctx, s);
+ if (hex1 < 0)
break;
- if (bytes <= 0) {
- code = gs_note_error(gs_error_ioerror);
- goto exit;
- }
- } while(iswhite(HexBuf[1]));
- if (bytes == 0 && s->eof)
+ } while(iswhite(hex1));
+ if (hex1 < 0)
break;
- if (!ishex(HexBuf[0]) || !ishex(HexBuf[1])) {
+ if (!ishex(hex0) || !ishex(hex1)) {
code = gs_note_error(gs_error_syntaxerror);
goto exit;
}
if (ctx->args.pdfdebug)
- dmprintf1(ctx->memory, "%c", HexBuf[1]);
+ dmprintf1(ctx->memory, "%c", (char)hex1);
- Buffer[index] = (fromhex(HexBuf[0]) << 4) + fromhex(HexBuf[1]);
+ Buffer[index] = (fromhex(hex0) << 4) + fromhex(hex1);
if (index++ >= size - 1) {
NewBuf = (char *)gs_alloc_bytes(ctx->memory, size + 256, "pdfi_read_hexstring");
@@ -534,12 +493,11 @@ static int pdfi_read_hexstring(pdf_context *ctx, pdf_c_stream *s, uint32_t indir
static int pdfi_read_string(pdf_context *ctx, pdf_c_stream *s, uint32_t indirect_num, uint32_t indirect_gen)
{
- char *Buffer, *NewBuf = NULL, octal[3];
+ char *Buffer, *NewBuf = NULL;
unsigned short index = 0;
- short bytes = 0;
uint32_t size = 256;
pdf_string *string = NULL;
- int code, octal_index = 0, nesting = 0;
+ int c, code, nesting = 0;
bool escape = false, skip_eol = false, exit_loop = false;
Buffer = (char *)gs_alloc_bytes(ctx->memory, size, "pdfi_read_string");
@@ -559,140 +517,109 @@ static int pdfi_read_string(pdf_context *ctx, pdf_c_stream *s, uint32_t indirect
size += 256;
}
- bytes = pdfi_read_bytes(ctx, (byte *)&Buffer[index], 1, 1, s);
+ c = pdfi_read_byte(ctx, s);
- if (bytes == 0 && s->eof)
- break;
- if (bytes <= 0) {
+ if (c < 0) {
+ if (nesting > 0)
+ pdfi_set_error(ctx, 0, NULL, E_PDF_UNESCAPEDSTRING, "pdfi_read_string", NULL);
Buffer[index] = 0x00;
break;
}
if (skip_eol) {
- if (Buffer[index] == 0x0a || Buffer[index] == 0x0d)
+ if (c == 0x0a || c == 0x0d)
continue;
skip_eol = false;
}
+ Buffer[index] = (char)c;
if (escape) {
escape = false;
- if (Buffer[index] == 0x0a || Buffer[index] == 0x0d) {
- skip_eol = true;
- continue;
- }
- if (octal_index) {
- byte dummy[2];
- dummy[0] = '\\';
- dummy[1] = Buffer[index];
- code = pdfi_unread(ctx, s, dummy, 2);
- if (code < 0) {
- gs_free_object(ctx->memory, Buffer, "pdfi_read_string");
- return code;
- }
- Buffer[index] = octal[0];
- if (octal_index == 2)
- Buffer[index] = (Buffer[index] * 8) + octal[1];
- octal_index = 0;
- } else {
- switch (Buffer[index]) {
- case 'n':
- Buffer[index] = 0x0a;
- break;
- case 'r':
- Buffer[index] = 0x0d;
- break;
- case 't':
- Buffer[index] = 0x09;
- break;
- case 'b':
- Buffer[index] = 0x08;
- break;
- case 'f':
- Buffer[index] = 0x0c;
- break;
- case '(':
- case ')':
- case '\\':
- break;
- default:
- if (Buffer[index] >= 0x30 && Buffer[index] <= 0x37) {
- octal[octal_index] = Buffer[index] - 0x30;
- octal_index++;
- continue;
- }
- /* PDF Reference, literal strings, if the character following a
- * escape \ character is not recognised, then it is ignored.
- */
- escape = false;
- index++;
- continue;
- }
- }
- } else {
- switch(Buffer[index]) {
+ switch (Buffer[index]) {
case 0x0a:
case 0x0d:
- if (octal_index != 0) {
- code = pdfi_unread(ctx, s, (byte *)&Buffer[index], 1);
- if (code < 0) {
- gs_free_object(ctx->memory, Buffer, "pdfi_read_string");
- return code;
- }
- Buffer[index] = octal[0];
- if (octal_index == 2)
- Buffer[index] = (Buffer[index] * 8) + octal[1];
- octal_index = 0;
- } else {
- Buffer[index] = 0x0a;
- skip_eol = true;
- }
+ skip_eol = true;
+ continue;
+ case 'n':
+ Buffer[index] = 0x0a;
+ break;
+ case 'r':
+ Buffer[index] = 0x0d;
+ break;
+ case 't':
+ Buffer[index] = 0x09;
+ break;
+ case 'b':
+ Buffer[index] = 0x08;
break;
+ case 'f':
+ Buffer[index] = 0x0c;
+ break;
+ case '(':
case ')':
- if (octal_index != 0) {
- code = pdfi_unread(ctx, s, (byte *)&Buffer[index], 1);
- if (code < 0) {
- gs_free_object(ctx->memory, Buffer, "pdfi_read_string");
- return code;
- }
- Buffer[index] = octal[0];
- if (octal_index == 2)
- Buffer[index] = (Buffer[index] * 8) + octal[1];
- octal_index = 0;
+ case '\\':
+ break;
+ case '0':
+ case '1':
+ case '2':
+ case '3':
+ case '4':
+ case '5':
+ case '6':
+ case '7':
+ {
+ /* Octal chars can be 1, 2 or 3 chars in length, terminated either
+ * by being 3 chars long, EOFC, or a non-octal char. We do not allow
+ * line breaks in the middle of octal chars. */
+ int c1 = pdfi_read_byte(ctx, s);
+ c -= '0';
+ if (c1 < 0) {
+ /* Nothing to do, or unread */
+ } else if (c1 < '0' || c1 > '7') {
+ pdfi_unread_byte(ctx, s, (char)c1);
} else {
- if (nesting == 0) {
- Buffer[index] = 0x00;
- exit_loop = true;
+ c = c*8 + c1 - '0';
+ c1 = pdfi_read_byte(ctx, s);
+ if (c1 < 0) {
+ /* Nothing to do, or unread */
+ } else if (c1 < '0' || c1 > '7') {
+ pdfi_unread_byte(ctx, s, (char)c1);
} else
- nesting--;
+ c = c*8 + c1 - '0';
}
+ Buffer[index] = c;
+ break;
+ }
+ default:
+ /* PDF Reference, literal strings, if the character following a
+ * escape \ character is not recognised, then it is ignored.
+ */
+ escape = false;
+ index++;
+ continue;
+ }
+ } else {
+ switch(Buffer[index]) {
+ case 0x0d:
+ Buffer[index] = 0x0a;
+ /*fallthrough*/
+ case 0x0a:
+ skip_eol = true;
+ break;
+ case ')':
+ if (nesting == 0) {
+ Buffer[index] = 0x00;
+ exit_loop = true;
+ } else
+ nesting--;
break;
case '\\':
escape = true;
continue;
case '(':
- pdfi_set_error(ctx, 0, NULL, E_PDF_UNESCAPEDSTRING, "pdfi_read_string", NULL);
nesting++;
break;
default:
- if (octal_index) {
- if (Buffer[index] >= 0x30 && Buffer[index] <= 0x37) {
- octal[octal_index] = Buffer[index] - 0x30;
- if (++octal_index < 3)
- continue;
- Buffer[index] = (octal[0] * 64) + (octal[1] * 8) + octal[2];
- octal_index = 0;
- } else {
- code = pdfi_unread(ctx, s, (byte *)&Buffer[index], 1);
- if (code < 0) {
- gs_free_object(ctx->memory, Buffer, "pdfi_read_string");
- return code;
- }
- Buffer[index] = octal[0];
- if (octal_index == 2)
- Buffer[index] = (Buffer[index] * 8) + octal[1];
- octal_index = 0;
- }
- }
break;
}
}
@@ -744,6 +671,9 @@ int pdfi_read_dict(pdf_context *ctx, pdf_c_stream *s, uint32_t indirect_num, uin
code = pdfi_read_token(ctx, s, indirect_num, indirect_gen);
if (code < 0)
return code;
+ if (code == 0)
+ return_error(gs_error_syntaxerror);
+
if (ctx->stack_top[-1]->type != PDF_DICT_MARK)
return_error(gs_error_typecheck);
depth = pdfi_count_stack(ctx);
@@ -752,32 +682,29 @@ int pdfi_read_dict(pdf_context *ctx, pdf_c_stream *s, uint32_t indirect_num, uin
code = pdfi_read_token(ctx, s, indirect_num, indirect_gen);
if (code < 0)
return code;
+ if (code == 0)
+ return_error(gs_error_syntaxerror);
} while(pdfi_count_stack(ctx) > depth);
return 0;
}
int pdfi_skip_comment(pdf_context *ctx, pdf_c_stream *s)
{
- byte Buffer;
- short bytes = 0;
+ int c;
if (ctx->args.pdfdebug)
dmprintf (ctx->memory, " %%");
do {
- bytes = pdfi_read_bytes(ctx, (byte *)&Buffer, 1, 1, s);
- if (bytes < 0)
- return_error(gs_error_ioerror);
+ c = pdfi_read_byte(ctx, s);
+ if (c < 0)
+ break;
- if (bytes > 0) {
- if (ctx->args.pdfdebug)
- dmprintf1 (ctx->memory, " %c", Buffer);
+ if (ctx->args.pdfdebug)
+ dmprintf1 (ctx->memory, " %c", (char)c);
+
+ } while (c != 0x0a && c != 0x0d);
- if ((Buffer == 0x0A) || (Buffer == 0x0D)) {
- break;
- }
- }
- } while (bytes);
return 0;
}
@@ -791,30 +718,23 @@ static int pdfi_read_keyword(pdf_context *ctx, pdf_c_stream *s, uint32_t indirec
{
byte Buffer[256];
unsigned short index = 0;
- short bytes = 0;
- int code;
+ int c, code;
pdf_keyword *keyword;
pdfi_skip_white(ctx, s);
do {
- bytes = pdfi_read_bytes(ctx, (byte *)&Buffer[index], 1, 1, s);
- if (bytes < 0)
- return_error(gs_error_ioerror);
+ c = pdfi_read_byte(ctx, s);
+ if (c < 0)
+ break;
- if (bytes > 0) {
- if (iswhite(Buffer[index])) {
- pdfi_unread(ctx, s, (byte *)&Buffer[index], 1);
- break;
- } else {
- if (isdelimiter(Buffer[index])) {
- pdfi_unread(ctx, s, (byte *)&Buffer[index], 1);
- break;
- }
- }
- index++;
+ if (iswhite(c) || isdelimiter(c)) {
+ pdfi_unread_byte(ctx, s, (byte)c);
+ break;
}
- } while (bytes && index < 255);
+ Buffer[index] = (byte)c;
+ index++;
+ } while (index < 255);
if (index >= 255 || index == 0) {
if (ctx->args.pdfstoponerror)
@@ -990,19 +910,18 @@ static int pdfi_read_keyword(pdf_context *ctx, pdf_c_stream *s, uint32_t indirec
*/
int pdfi_read_token(pdf_context *ctx, pdf_c_stream *s, uint32_t indirect_num, uint32_t indirect_gen)
{
- int32_t bytes = 0;
- char Buffer[256];
- int code;
+ int c, code;
+rescan:
pdfi_skip_white(ctx, s);
- bytes = pdfi_read_bytes(ctx, (byte *)Buffer, 1, 1, s);
- if (bytes < 0)
- return (gs_error_ioerror);
- if (bytes == 0 && s->eof)
+ c = pdfi_read_byte(ctx, s);
+ if (c == EOFC)
return 0;
+ if (c < 0)
+ return_error(gs_error_ioerror);
- switch(Buffer[0]) {
+ switch(c) {
case 0x30:
case 0x31:
case 0x32:
@@ -1016,94 +935,112 @@ int pdfi_read_token(pdf_context *ctx, pdf_c_stream *s, uint32_t indirect_num, ui
case '+':
case '-':
case '.':
- pdfi_unread(ctx, s, (byte *)&Buffer[0], 1);
+ pdfi_unread_byte(ctx, s, (byte)c);
code = pdfi_read_num(ctx, s, indirect_num, indirect_gen);
if (code < 0)
return code;
break;
case '/':
- return pdfi_read_name(ctx, s, indirect_num, indirect_gen);
+ code = pdfi_read_name(ctx, s, indirect_num, indirect_gen);
+ if (code < 0)
+ return code;
+ return 1;
break;
case '<':
- bytes = pdfi_read_bytes(ctx, (byte *)&Buffer[1], 1, 1, s);
- if (bytes <= 0)
+ c = pdfi_read_byte(ctx, s);
+ if (c < 0)
return (gs_error_ioerror);
- if (iswhite(Buffer[1])) {
+ if (iswhite(c)) {
code = pdfi_skip_white(ctx, s);
if (code < 0)
return code;
- bytes = pdfi_read_bytes(ctx, (byte *)&Buffer[1], 1, 1, s);
+ c = pdfi_read_byte(ctx, s);
}
- if (Buffer[1] == '<') {
+ if (c == '<') {
if (ctx->args.pdfdebug)
dmprintf (ctx->memory, " <<\n");
- return pdfi_mark_stack(ctx, PDF_DICT_MARK);
- } else {
- if (Buffer[1] == '>') {
- pdfi_unread(ctx, s, (byte *)&Buffer[1], 1);
- return pdfi_read_hexstring(ctx, s, indirect_num, indirect_gen);
- } else {
- if (ishex(Buffer[1])) {
- pdfi_unread(ctx, s, (byte *)&Buffer[1], 1);
- return pdfi_read_hexstring(ctx, s, indirect_num, indirect_gen);
- }
- else
- return_error(gs_error_syntaxerror);
- }
+ code = pdfi_mark_stack(ctx, PDF_DICT_MARK);
+ if (code < 0)
+ return code;
+ return 1;
+ } else if (c == '>') {
+ pdfi_unread_byte(ctx, s, (byte)c);
+ code = pdfi_read_hexstring(ctx, s, indirect_num, indirect_gen);
+ if (code < 0)
+ return code;
+ return 1;
+ } else if (ishex(c)) {
+ pdfi_unread_byte(ctx, s, (byte)c);
+ code = pdfi_read_hexstring(ctx, s, indirect_num, indirect_gen);
+ if (code < 0)
+ return code;
}
+ else
+ return_error(gs_error_syntaxerror);
break;
case '>':
- bytes = pdfi_read_bytes(ctx, (byte *)&Buffer[1], 1, 1, s);
- if (bytes <= 0)
+ c = pdfi_read_byte(ctx, s);
+ if (c < 0)
return (gs_error_ioerror);
- if (Buffer[1] == '>')
- return pdfi_dict_from_stack(ctx, indirect_num, indirect_gen);
- else {
- pdfi_unread(ctx, s, (byte *)&Buffer[1], 1);
+ if (c == '>') {
+ code = pdfi_dict_from_stack(ctx, indirect_num, indirect_gen, false);
+ if (code < 0)
+ return code;
+ return 1;
+ } else {
+ pdfi_unread_byte(ctx, s, (byte)c);
return_error(gs_error_syntaxerror);
}
break;
case '(':
- return pdfi_read_string(ctx, s, indirect_num, indirect_gen);
+ code = pdfi_read_string(ctx, s, indirect_num, indirect_gen);
+ if (code < 0)
+ return code;
+ return 1;
break;
case '[':
if (ctx->args.pdfdebug)
dmprintf (ctx->memory, "[");
- return pdfi_mark_stack(ctx, PDF_ARRAY_MARK);
+ code = pdfi_mark_stack(ctx, PDF_ARRAY_MARK);
+ if (code < 0)
+ return code;
+ return 1;
break;
case ']':
code = pdfi_array_from_stack(ctx, indirect_num, indirect_gen);
- if (code < 0) {
- if (code == gs_error_VMerror || code == gs_error_ioerror || ctx->args.pdfstoponerror)
- return code;
- pdfi_clearstack(ctx);
- return pdfi_read_token(ctx, s, indirect_num, indirect_gen);
- }
+ if (code < 0)
+ return code;
break;
case '{':
if (ctx->args.pdfdebug)
dmprintf (ctx->memory, "{");
- return pdfi_mark_stack(ctx, PDF_PROC_MARK);
+ code = pdfi_mark_stack(ctx, PDF_PROC_MARK);
+ if (code < 0)
+ return code;
+ return 1;
break;
case '}':
pdfi_clear_to_mark(ctx);
- return pdfi_read_token(ctx, s, indirect_num, indirect_gen);
+ goto rescan;
break;
case '%':
pdfi_skip_comment(ctx, s);
- return pdfi_read_token(ctx, s, indirect_num, indirect_gen);
+ goto rescan;
break;
default:
- if (isdelimiter(Buffer[0])) {
+ if (isdelimiter(c)) {
if (ctx->args.pdfstoponerror)
return_error(gs_error_syntaxerror);
- return pdfi_read_token(ctx, s, indirect_num, indirect_gen);
+ goto rescan;
}
- pdfi_unread(ctx, s, (byte *)&Buffer[0], 1);
- return pdfi_read_keyword(ctx, s, indirect_num, indirect_gen);
+ pdfi_unread_byte(ctx, s, (byte)c);
+ code = pdfi_read_keyword(ctx, s, indirect_num, indirect_gen);
+ if (code < 0)
+ return code;
+ return 1;
break;
}
- return 0;
+ return 1;
}
/* In contrast to the 'read' functions, the 'make' functions create an object with a
@@ -1183,7 +1120,7 @@ static int search_table_1(pdf_context *ctx, unsigned char *str, pdf_keyword **ke
{
int i, code = 0;
- for (i = 0; i < 39; i++) {
+ for (i = 0; i < 27; i++) {
if (memcmp(str, op_table_1[i], 1) == 0) {
code = pdfi_object_alloc(ctx, PDF_KEYWORD, 1, (pdf_obj **)key);
if (code < 0)
@@ -1316,29 +1253,21 @@ static int split_bogus_operator(pdf_context *ctx, pdf_c_stream *source, pdf_dict
if (code <= 0)
goto error_exit;
- if (code > 0) {
- switch(keyword->length - 1) {
- case 1:
- code = search_table_1(ctx, &keyword->data[key1->length], &key2);
- break;
- case 2:
- code = search_table_1(ctx, &keyword->data[key1->length], &key2);
- break;
- case 3:
- code = search_table_1(ctx, &keyword->data[key1->length], &key2);
- break;
- default:
- goto error_exit;
- }
- if (code <= 0)
+ switch(keyword->length - 1) {
+ case 1:
+ code = search_table_1(ctx, &keyword->data[key1->length], &key2);
+ break;
+ case 2:
+ code = search_table_1(ctx, &keyword->data[key1->length], &key2);
+ break;
+ case 3:
+ code = search_table_1(ctx, &keyword->data[key1->length], &key2);
+ break;
+ default:
goto error_exit;
- if (code > 0)
- goto match;
}
- pdfi_countdown(key1);
- pdfi_countdown(key2);
- key1 = NULL;
- key2 = NULL;
+ if (code <= 0)
+ goto error_exit;
match:
/* If we get here, we have two PDF_KEYWORD objects. We push them on the stack
@@ -1448,10 +1377,6 @@ static int pdfi_interpret_stream_operator(pdf_context *ctx, pdf_c_stream *source
pdfi_pop(ctx, 1);
code = pdfi_setdash(ctx);
break;
- case K2('E','I'): /* end inline image */
- pdfi_pop(ctx, 1);
- code = pdfi_EI(ctx);
- break;
case K2('d','0'): /* set type 3 font glyph width */
pdfi_pop(ctx, 1);
code = pdfi_d0(ctx);
@@ -1466,10 +1391,11 @@ static int pdfi_interpret_stream_operator(pdf_context *ctx, pdf_c_stream *source
break;
case K2('D','P'): /* define marked content point with property list */
pdfi_pop(ctx, 1);
- if (pdfi_count_stack(ctx) >= 2) {
- pdfi_pop(ctx, 2);
- } else
- pdfi_clearstack(ctx);
+ code = pdfi_op_DP(ctx, stream_dict, page_dict);
+ break;
+ case K2('E','I'): /* end inline image */
+ pdfi_pop(ctx, 1);
+ code = pdfi_EI(ctx);
break;
case K2('E','T'): /* end text */
pdfi_pop(ctx, 1);
@@ -1548,8 +1474,7 @@ static int pdfi_interpret_stream_operator(pdf_context *ctx, pdf_c_stream *source
break;
case K2('M','P'): /* define marked content point */
pdfi_pop(ctx, 1);
- if (pdfi_count_stack(ctx) >= 1)
- pdfi_pop(ctx, 1);
+ code = pdfi_op_MP(ctx);
break;
case K1('n'): /* newpath */
pdfi_pop(ctx, 1);
@@ -1763,86 +1688,12 @@ void initialise_stream_save(pdf_context *ctx)
ctx->current_stream_save.stack_count = pdfi_count_total_stack(ctx);
}
-static int setup_stream_DefaultSpaces(pdf_context *ctx, pdf_dict *stream_dict)
-{
- int code = 0;
- pdf_dict *resources_dict = NULL, *colorspaces_dict = NULL;
- pdf_obj *DefaultSpace = NULL;
-
- /* Create any required DefaultGray, DefaultRGB or DefaultCMYK
- * spaces.
- */
-
- if (ctx->args.NOSUBSTDEVICECOLORS)
- return 0;
-
- code = pdfi_dict_knownget(ctx, stream_dict, "Resources", (pdf_obj **)&resources_dict);
- if (code > 0) {
- code = pdfi_dict_knownget(ctx, resources_dict, "ColorSpace", (pdf_obj **)&colorspaces_dict);
- if (code > 0) {
- code = pdfi_dict_knownget(ctx, colorspaces_dict, "DefaultGray", &DefaultSpace);
- if (code > 0) {
- gs_color_space *pcs;
- code = pdfi_create_colorspace(ctx, DefaultSpace, NULL, stream_dict, &pcs, false);
- /* If any given Default* space fails simply ignore it, we wil then use the Device
- * space (or page level Default) instead, this is as per the spec.
- */
- if (code >= 0) {
- if (ctx->page.DefaultGray_cs)
- rc_decrement_only(ctx->page.DefaultGray_cs, "setup_stream_DefaultSpaces");
- ctx->page.DefaultGray_cs = pcs;
- pdfi_set_colour_callback(pcs, ctx, NULL);
- }
- }
- pdfi_countdown(DefaultSpace);
- DefaultSpace = NULL;
- code = pdfi_dict_knownget(ctx, colorspaces_dict, "DefaultRGB", &DefaultSpace);
- if (code > 0) {
- gs_color_space *pcs;
- code = pdfi_create_colorspace(ctx, DefaultSpace, NULL, stream_dict, &pcs, false);
- /* If any given Default* space fails simply ignore it, we wil then use the Device
- * space (or page level Default) instead, this is as per the spec.
- */
- if (code >= 0) {
- if (ctx->page.DefaultRGB_cs)
- rc_decrement_only(ctx->page.DefaultRGB_cs, "setup_stream_DefaultSpaces");
- ctx->page.DefaultRGB_cs = pcs;
- pdfi_set_colour_callback(pcs, ctx, NULL);
- }
- }
- pdfi_countdown(DefaultSpace);
- DefaultSpace = NULL;
- code = pdfi_dict_knownget(ctx, colorspaces_dict, "DefaultCMYK", &DefaultSpace);
- if (code > 0) {
- gs_color_space *pcs;
- code = pdfi_create_colorspace(ctx, DefaultSpace, NULL, stream_dict, &pcs, false);
- /* If any given Default* space fails simply ignore it, we wil then use the Device
- * space (or page level Default) instead, this is as per the spec.
- */
- if (code >= 0) {
- if (ctx->page.DefaultCMYK_cs)
- rc_decrement_only(ctx->page.DefaultCMYK_cs, "setup_stream_DefaultSpaces");
- ctx->page.DefaultCMYK_cs = pcs;
- pdfi_set_colour_callback(pcs, ctx, NULL);
- }
- }
- pdfi_countdown(DefaultSpace);
- DefaultSpace = NULL;
- }
- }
-
- pdfi_countdown(DefaultSpace);
- pdfi_countdown(resources_dict);
- pdfi_countdown(colorspaces_dict);
- return 0;
-}
-
/* Run a stream in a sub-context (saves/restores DefaultQState) */
int pdfi_run_context(pdf_context *ctx, pdf_stream *stream_obj,
pdf_dict *page_dict, bool stoponerror, const char *desc)
{
- int code;
- gs_gstate *DefaultQState;
+ int code = 0, code1 = 0;
+ gs_gstate *DefaultQState = NULL;
/* Save any existing Default* colour spaces */
gs_color_space *PageDefaultGray = ctx->page.DefaultGray_cs;
gs_color_space *PageDefaultRGB = ctx->page.DefaultRGB_cs;
@@ -1859,12 +1710,29 @@ int pdfi_run_context(pdf_context *ctx, pdf_stream *stream_obj,
/* If the stream has any Default* colour spaces, replace the page level ones.
* This will derement the reference counts to the current spaces if they are replaced.
*/
- setup_stream_DefaultSpaces(ctx, stream_obj->stream_dict);
+ code = pdfi_setup_DefaultSpaces(ctx, stream_obj->stream_dict);
+ if (code < 0)
+ goto exit;
+
+ code = pdfi_copy_DefaultQState(ctx, &DefaultQState);
+ if (code < 0)
+ goto exit;
+
+ code = pdfi_set_DefaultQState(ctx, ctx->pgs);
+ if (code < 0)
+ goto exit;
- pdfi_copy_DefaultQState(ctx, &DefaultQState);
- pdfi_set_DefaultQState(ctx, ctx->pgs);
code = pdfi_interpret_inner_content_stream(ctx, stream_obj, page_dict, stoponerror, desc);
- pdfi_restore_DefaultQState(ctx, &DefaultQState);
+
+ code1 = pdfi_restore_DefaultQState(ctx, &DefaultQState);
+ if (code >= 0)
+ code = code1;
+
+exit:
+ if (DefaultQState != NULL) {
+ gs_gstate_free(DefaultQState);
+ DefaultQState = NULL;
+ }
/* Count down any Default* colour spaces */
rc_decrement(ctx->page.DefaultGray_cs, "pdfi_run_context");
@@ -2031,6 +1899,24 @@ pdfi_interpret_content_stream(pdf_context *ctx, pdf_c_stream *content_stream,
int code;
pdf_c_stream *stream;
pdf_keyword *keyword;
+ pdf_stream *s = ctx->current_stream;
+
+ /* Check this stream, and all the streams currently being executed, to see
+ * if the stream we've been given is already in train. If it is, then we
+ * have encountered recursion. This can happen if a non-page stream such
+ * as a Form or Pattern uses a Resource, but does not declare it in it's
+ * Resources, and instead inherits it from the parent. We cannot detect that
+ * before the Resource is used, so all we can do is check here.
+ */
+ while (s != NULL && s->type == PDF_STREAM) {
+ if (s->object_num > 0) {
+ if (s->object_num == stream_obj->object_num) {
+ pdfi_set_error(ctx, 0, NULL, E_PDF_CIRCULARREF, "pdfi_interpret_content_stream", "Aborting stream");
+ return_error(gs_error_circular_reference);
+ }
+ }
+ s = (pdf_stream *)s->parent_obj;
+ }
if (content_stream != NULL) {
stream = content_stream;
diff --git a/pdf/pdf_loop_detect.c b/pdf/pdf_loop_detect.c
index 7d08b182..7ba05987 100644
--- a/pdf/pdf_loop_detect.c
+++ b/pdf/pdf_loop_detect.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 2018-2021 Artifex Software, Inc.
+/* Copyright (C) 2018-2022 Artifex Software, Inc.
All Rights Reserved.
This software is provided AS-IS with no warranty, either express or
@@ -84,7 +84,7 @@ bool pdfi_loop_detector_check_object(pdf_context *ctx, uint64_t object)
for (i=0;i < ctx->loop_detection_entries;i++) {
if (ctx->loop_detection[i] == object) {
char info_string[256];
- gs_sprintf(info_string, "Error! circular reference to object %"PRIu64" detected.\n", object);
+ gs_snprintf(info_string, sizeof(info_string), "Error! circular reference to object %"PRIu64" detected.\n", object);
pdfi_set_error(ctx, 0, NULL, E_PDF_CIRCULARREF, "pdfi_loop_detector_check_object", info_string);
return true;
}
diff --git a/pdf/pdf_mark.c b/pdf/pdf_mark.c
index 4f678f10..d625e34a 100644
--- a/pdf/pdf_mark.c
+++ b/pdf/pdf_mark.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 2020-2021 Artifex Software, Inc.
+/* Copyright (C) 2020-2022 Artifex Software, Inc.
All Rights Reserved.
This software is provided AS-IS with no warranty, either express or
@@ -29,7 +29,7 @@
#include "gscoord.h" /* For gs_currentmatrix */
-static int pdfi_mark_setparam_obj(pdf_context *ctx, pdf_obj *obj, gs_param_string *entry)
+static int pdfi_pdfmark_setparam_obj(pdf_context *ctx, pdf_obj *obj, gs_param_string *entry)
{
int code = 0;
byte *data = NULL;
@@ -44,7 +44,7 @@ static int pdfi_mark_setparam_obj(pdf_context *ctx, pdf_obj *obj, gs_param_strin
return 0;
}
-static int pdfi_mark_setparam_pair(pdf_context *ctx, pdf_name *Key, pdf_obj *Value,
+static int pdfi_pdfmark_setparam_pair(pdf_context *ctx, pdf_name *Key, pdf_obj *Value,
gs_param_string *entry)
{
int code = 0;
@@ -55,11 +55,11 @@ static int pdfi_mark_setparam_pair(pdf_context *ctx, pdf_name *Key, pdf_obj *Val
goto exit;
}
- code = pdfi_mark_setparam_obj(ctx, (pdf_obj *)Key, entry);
+ code = pdfi_pdfmark_setparam_obj(ctx, (pdf_obj *)Key, entry);
if (code < 0)
goto exit;
- code = pdfi_mark_setparam_obj(ctx, Value, entry+1);
+ code = pdfi_pdfmark_setparam_obj(ctx, Value, entry+1);
if (code < 0)
goto exit;
@@ -69,12 +69,12 @@ static int pdfi_mark_setparam_pair(pdf_context *ctx, pdf_name *Key, pdf_obj *Val
/* Note: this isn't part of the obj_to_string() stuff */
-static int pdfi_mark_ctm_str(pdf_context *ctx, gs_matrix *ctm, byte **data, int *len)
+static int pdfi_pdfmark_ctm_str(pdf_context *ctx, gs_matrix *ctm, byte **data, int *len)
{
int size = 100;
char *buf;
- buf = (char *)gs_alloc_bytes(ctx->memory, size, "pdfi_mark_ctm_str(data)");
+ buf = (char *)gs_alloc_bytes(ctx->memory, size, "pdfi_pdfmark_ctm_str(data)");
if (buf == NULL)
return_error(gs_error_VMerror);
snprintf(buf, size, "[%.4f %.4f %.4f %.4f %.4f %.4f]",
@@ -85,7 +85,7 @@ static int pdfi_mark_ctm_str(pdf_context *ctx, gs_matrix *ctm, byte **data, int
}
/* Write an string array command to the device (e.g. pdfmark) */
-static int pdfi_mark_write_array(pdf_context *ctx, gs_param_string_array *array_list, const char *command)
+static int pdfi_pdfmark_write_array(pdf_context *ctx, gs_param_string_array *array_list, const char *command)
{
gs_c_param_list list;
int code;
@@ -117,7 +117,7 @@ static int pdfi_mark_write_array(pdf_context *ctx, gs_param_string_array *array_
}
/* Write an string array command to the device (e.g. pdfmark) */
-static int pdfi_mark_write_string(pdf_context *ctx, gs_param_string *param_string, const char *command)
+static int pdfi_pdfmark_write_string(pdf_context *ctx, gs_param_string *param_string, const char *command)
{
gs_c_param_list list;
int code;
@@ -162,7 +162,7 @@ static int pdfi_mark_write_string(pdf_context *ctx, gs_param_string *param_strin
See plparams.c/process_pdfmark()
*/
-static int pdfi_mark_from_dict_withlabel(pdf_context *ctx, pdf_indirect_ref *label,
+static int pdfi_pdfmark_from_dict_withlabel(pdf_context *ctx, pdf_indirect_ref *label,
pdf_dict *dict, gs_matrix *ctm, const char *type)
{
int code = 0;
@@ -193,7 +193,7 @@ static int pdfi_mark_from_dict_withlabel(pdf_context *ctx, pdf_indirect_ref *lab
size += 1;
parray = (gs_param_string *)gs_alloc_bytes(ctx->memory, size*sizeof(gs_param_string),
- "pdfi_mark_from_dict(parray)");
+ "pdfi_pdfmark_from_dict(parray)");
if (parray == NULL) {
code = gs_note_error(gs_error_VMerror);
goto exit;
@@ -201,7 +201,7 @@ static int pdfi_mark_from_dict_withlabel(pdf_context *ctx, pdf_indirect_ref *lab
memset(parray, 0, size*sizeof(gs_param_string));
if (label) {
- code = pdfi_mark_setparam_obj(ctx, (pdf_obj *)label, parray+0);
+ code = pdfi_pdfmark_setparam_obj(ctx, (pdf_obj *)label, parray+0);
offset += 1;
}
@@ -212,7 +212,7 @@ static int pdfi_mark_from_dict_withlabel(pdf_context *ctx, pdf_indirect_ref *lab
code = pdfi_dict_get_no_deref(ctx, dict, Key, &Value);
if (code < 0) goto exit;
- code = pdfi_mark_setparam_pair(ctx, Key, Value, parray+offset+(keynum*2));
+ code = pdfi_pdfmark_setparam_pair(ctx, Key, Value, parray+offset+(keynum*2));
if (code < 0) goto exit;
pdfi_countdown(Key);
@@ -233,7 +233,7 @@ static int pdfi_mark_from_dict_withlabel(pdf_context *ctx, pdf_indirect_ref *lab
if (code < 0) goto exit;
/* CTM */
- code = pdfi_mark_ctm_str(ctx, ctm, &ctm_data, &ctm_len);
+ code = pdfi_pdfmark_ctm_str(ctx, ctm, &ctm_data, &ctm_len);
if (code < 0) goto exit;
parray[size-2].data = ctm_data;
parray[size-2].size = ctm_len;
@@ -246,7 +246,7 @@ static int pdfi_mark_from_dict_withlabel(pdf_context *ctx, pdf_indirect_ref *lab
array_list.persistent = false;
array_list.size = size;
- code = pdfi_mark_write_array(ctx, &array_list, "pdfmark");
+ code = pdfi_pdfmark_write_array(ctx, &array_list, "pdfmark");
exit:
pdfi_countdown(Key);
@@ -256,25 +256,25 @@ static int pdfi_mark_from_dict_withlabel(pdf_context *ctx, pdf_indirect_ref *lab
/* Free the param data except the last two which are handled separately */
for (i=0; i<size-2; i++) {
if (parray[i].data)
- gs_free_object(ctx->memory, (byte *)parray[i].data, "pdfi_mark_from_dict(parray)");
+ gs_free_object(ctx->memory, (byte *)parray[i].data, "pdfi_pdfmark_from_dict(parray)");
}
}
if (ctm_data)
- gs_free_object(ctx->memory, ctm_data, "pdfi_mark_from_dict(ctm_data)");
- gs_free_object(ctx->memory, parray, "pdfi_mark_from_dict(parray)");
+ gs_free_object(ctx->memory, ctm_data, "pdfi_pdfmark_from_dict(ctm_data)");
+ gs_free_object(ctx->memory, parray, "pdfi_pdfmark_from_dict(parray)");
return code;
}
/* Do a pdfmark from a dictionary */
-int pdfi_mark_from_dict(pdf_context *ctx, pdf_dict *dict, gs_matrix *ctm, const char *type)
+int pdfi_pdfmark_from_dict(pdf_context *ctx, pdf_dict *dict, gs_matrix *ctm, const char *type)
{
- return pdfi_mark_from_dict_withlabel(ctx, NULL, dict, ctm, type);
+ return pdfi_pdfmark_from_dict_withlabel(ctx, NULL, dict, ctm, type);
}
/* Does a pdfmark, from a c-array of pdf_obj's
* This will put in a dummy ctm if none provided
*/
-static int pdfi_mark_from_objarray(pdf_context *ctx, pdf_obj **objarray, int len,
+int pdfi_pdfmark_from_objarray(pdf_context *ctx, pdf_obj **objarray, int len,
gs_matrix *ctm, const char *type)
{
int code = 0;
@@ -295,7 +295,7 @@ static int pdfi_mark_from_objarray(pdf_context *ctx, pdf_obj **objarray, int len
size = len + 2; /* data + CTM + type */
parray = (gs_param_string *)gs_alloc_bytes(ctx->memory, size*sizeof(gs_param_string),
- "pdfi_mark_from_objarray(parray)");
+ "pdfi_pdfmark_from_objarray(parray)");
if (parray == NULL) {
code = gs_note_error(gs_error_VMerror);
goto exit;
@@ -303,12 +303,12 @@ static int pdfi_mark_from_objarray(pdf_context *ctx, pdf_obj **objarray, int len
memset(parray, 0, size *sizeof(gs_param_string));
for (i=0; i<len; i++) {
- code = pdfi_mark_setparam_obj(ctx, objarray[i], parray+i);
+ code = pdfi_pdfmark_setparam_obj(ctx, objarray[i], parray+i);
if (code < 0) goto exit;
}
/* CTM */
- code = pdfi_mark_ctm_str(ctx, ctm, &ctm_data, &ctm_len);
+ code = pdfi_pdfmark_ctm_str(ctx, ctm, &ctm_data, &ctm_len);
if (code < 0) goto exit;
parray[len].data = ctm_data;
parray[len].size = ctm_len;
@@ -321,24 +321,24 @@ static int pdfi_mark_from_objarray(pdf_context *ctx, pdf_obj **objarray, int len
array_list.persistent = false;
array_list.size = size;
- code = pdfi_mark_write_array(ctx, &array_list, "pdfmark");
+ code = pdfi_pdfmark_write_array(ctx, &array_list, "pdfmark");
exit:
if (parray != NULL) {
for (i=0; i<len; i++) {
- gs_free_object(ctx->memory, (byte *)parray[i].data, "pdfi_mark_from_objarray(parray)");
+ gs_free_object(ctx->memory, (byte *)parray[i].data, "pdfi_pdfmark_from_objarray(parray)");
}
}
if (ctm_data)
- gs_free_object(ctx->memory, ctm_data, "pdfi_mark_from_objarray(ctm_data)");
- gs_free_object(ctx->memory, parray, "pdfi_mark_from_objarray(parray)");
+ gs_free_object(ctx->memory, ctm_data, "pdfi_pdfmark_from_objarray(ctm_data)");
+ gs_free_object(ctx->memory, parray, "pdfi_pdfmark_from_objarray(parray)");
return code;
}
/* Send an arbitrary object as a string, with command 'cmd'
* This is not a pdfmark, has no ctm.
*/
-int pdfi_mark_object(pdf_context *ctx, pdf_obj *object, const char *cmd)
+int pdfi_pdfmark_object(pdf_context *ctx, pdf_obj *object, const char *cmd)
{
gs_param_string param_string;
int code = 0;
@@ -348,27 +348,21 @@ int pdfi_mark_object(pdf_context *ctx, pdf_obj *object, const char *cmd)
code = pdfi_loop_detector_mark(ctx);
if (code < 0)
goto exit;
- if (object->object_num != 0) {
- code = pdfi_loop_detector_add_object(ctx, object->object_num);
- if (code < 0) {
- (void)pdfi_loop_detector_cleartomark(ctx);
- goto exit;
- }
- }
- code = pdfi_resolve_indirect(ctx, object, true);
+
+ code = pdfi_resolve_indirect_loop_detect(ctx, NULL, object, true);
(void)pdfi_loop_detector_cleartomark(ctx);
if (code < 0)
goto exit;
- code = pdfi_mark_setparam_obj(ctx, object, &param_string);
+ code = pdfi_pdfmark_setparam_obj(ctx, object, &param_string);
if (code < 0)
goto exit;
- code = pdfi_mark_write_string(ctx, &param_string, cmd);
+ code = pdfi_pdfmark_write_string(ctx, &param_string, cmd);
exit:
if (param_string.data != NULL)
- gs_free_object(ctx->memory, (byte *)param_string.data, "free data transferred to param_string in pdfi_mark_object\n");
+ gs_free_object(ctx->memory, (byte *)param_string.data, "free data transferred to param_string in pdfi_pdfmark_object\n");
return code;
}
@@ -380,7 +374,7 @@ exit:
* Removes /Dest and inserts two key pairs: /Page N and /View <view_info>
* N is the page number, which starts at 1, not 0.
*/
-static int pdfi_mark_add_Page_View(pdf_context *ctx, pdf_dict *link_dict, pdf_array *dest_array)
+static int pdfi_pdfmark_add_Page_View(pdf_context *ctx, pdf_dict *link_dict, pdf_array *dest_array)
{
int code = 0;
int i;
@@ -437,7 +431,7 @@ static int pdfi_mark_add_Page_View(pdf_context *ctx, pdf_dict *link_dict, pdf_ar
}
/* Lookup a Dest string(or name) in the Names array and try to resolve it */
-static int pdfi_mark_handle_dest_names(pdf_context *ctx, pdf_dict *link_dict,
+static int pdfi_pdfmark_handle_dest_names(pdf_context *ctx, pdf_dict *link_dict,
pdf_obj *dest, pdf_array *Names)
{
int code = 0;
@@ -484,21 +478,26 @@ static int pdfi_mark_handle_dest_names(pdf_context *ctx, pdf_dict *link_dict,
goto exit;
}
- /* Next entry is supposed to be a dict */
+ /* Next entry is either a dictionary (with a /D key) or an array */
code = pdfi_array_get(ctx, Names, i+1, (pdf_obj **)&D_dict);
if (code < 0) goto exit;
- if (D_dict->type != PDF_DICT) {
- /* TODO: flag a warning? */
- code = 0;
- goto exit;
- }
- /* Dict is supposed to contain key "D" with Dest array */
- code = pdfi_dict_knownget_type(ctx, D_dict, "D", PDF_ARRAY, (pdf_obj **)&dest_array);
- if (code <= 0) goto exit;
+ if (D_dict->type == PDF_DICT) {
+ /* Dict is supposed to contain key "D" with Dest array */
+ code = pdfi_dict_knownget_type(ctx, D_dict, "D", PDF_ARRAY, (pdf_obj **)&dest_array);
+ if (code <= 0) goto exit;
+ } else {
+ if (D_dict->type == PDF_ARRAY) {
+ dest_array = (pdf_array *)D_dict;
+ D_dict = NULL;
+ } else {
+ code = gs_note_error(gs_error_typecheck);
+ goto exit;
+ }
+ }
/* Process the dest_array to replace with /Page /View */
- code = pdfi_mark_add_Page_View(ctx, link_dict, dest_array);
+ code = pdfi_pdfmark_add_Page_View(ctx, link_dict, dest_array);
if (code < 0) goto exit;
exit:
@@ -511,7 +510,7 @@ static int pdfi_mark_handle_dest_names(pdf_context *ctx, pdf_dict *link_dict,
/* Special handling for "Dest" in Links
* Will replace /Dest with /Page /View in link_dict (for pdfwrite)
*/
-int pdfi_mark_modDest(pdf_context *ctx, pdf_dict *link_dict)
+int pdfi_pdfmark_modDest(pdf_context *ctx, pdf_dict *link_dict)
{
int code = 0;
pdf_dict *Dests = NULL;
@@ -532,7 +531,7 @@ int pdfi_mark_modDest(pdf_context *ctx, pdf_dict *link_dict)
switch (Dest->type) {
case PDF_ARRAY:
- code = pdfi_mark_add_Page_View(ctx, link_dict, (pdf_array *)Dest);
+ code = pdfi_pdfmark_add_Page_View(ctx, link_dict, (pdf_array *)Dest);
if (code < 0) goto exit;
break;
case PDF_NAME:
@@ -550,7 +549,7 @@ int pdfi_mark_modDest(pdf_context *ctx, pdf_dict *link_dict)
code = gs_note_error(gs_error_typecheck);
goto exit;
}
- code = pdfi_mark_add_Page_View(ctx, link_dict, dest_array);
+ code = pdfi_pdfmark_add_Page_View(ctx, link_dict, dest_array);
if (code < 0) goto exit;
} else if (Names_dict != NULL) {
/* Looking in Catalog(Root) for /Names<</Dests<</Names [name dict array]>>>> */
@@ -567,7 +566,7 @@ int pdfi_mark_modDest(pdf_context *ctx, pdf_dict *link_dict)
/* TODO: Not found -- not sure if there is another case here or not */
goto exit;
}
- code = pdfi_mark_handle_dest_names(ctx, link_dict, Dest, Names);
+ code = pdfi_pdfmark_handle_dest_names(ctx, link_dict, Dest, Names);
if (code < 0) goto exit;
} else {
/* TODO: Ignore it -- flag a warning? */
@@ -595,7 +594,7 @@ int pdfi_mark_modDest(pdf_context *ctx, pdf_dict *link_dict)
/* Special handling for "A" in Link annotations and Outlines
* Will delete A if handled and if A_key is provided.
*/
-int pdfi_mark_modA(pdf_context *ctx, pdf_dict *dict)
+int pdfi_pdfmark_modA(pdf_context *ctx, pdf_dict *dict)
{
int code = 0;
pdf_dict *A_dict = NULL;
@@ -620,7 +619,7 @@ int pdfi_mark_modA(pdf_context *ctx, pdf_dict *dict)
code = pdfi_dict_known(ctx, A_dict, "URI", &known);
if (code < 0) goto exit;
if (known) {
- code = pdfi_resolve_indirect_loop_detect(ctx, (pdf_obj *)NULL, (pdf_obj *)dict, true);
+ code = pdfi_resolve_indirect_loop_detect(ctx, (pdf_obj *)NULL, (pdf_obj *)A_dict, true);
goto exit;
}
@@ -646,7 +645,7 @@ int pdfi_mark_modA(pdf_context *ctx, pdf_dict *dict)
goto exit;
}
/* Process the D array to replace with /Page /View */
- code = pdfi_mark_add_Page_View(ctx, dict, D_array);
+ code = pdfi_pdfmark_add_Page_View(ctx, dict, D_array);
if (code < 0) goto exit;
delete_A = true;
} else if (pdfi_name_is(S_name, "GoToR") || pdfi_name_is(S_name, "Launch")) {
@@ -713,7 +712,6 @@ int pdfi_mark_modA(pdf_context *ctx, pdf_dict *dict)
} else if (deref_A) {
pdfi_countdown(A_dict);
A_dict = NULL;
- code = pdfi_dict_get(ctx, dict, "A", (pdf_obj **)&A_dict);
}
pdfi_countdown(A_dict);
pdfi_countdown(S_name);
@@ -725,7 +723,7 @@ int pdfi_mark_modA(pdf_context *ctx, pdf_dict *dict)
* Send an OBJ (_objdef) command
* (_objdef) (<label>) (/type) (/<type>) OBJ
*/
-static int pdfi_mark_objdef_begin(pdf_context *ctx, pdf_indirect_ref *label, const char *type)
+static int pdfi_pdfmark_objdef_begin(pdf_context *ctx, pdf_indirect_ref *label, const char *type)
{
int code;
pdf_obj *objarray[4];
@@ -746,7 +744,7 @@ static int pdfi_mark_objdef_begin(pdf_context *ctx, pdf_indirect_ref *label, con
code = pdfi_obj_charstr_to_name(ctx, type, (pdf_name **)&objarray[3]);
if (code < 0) goto exit;
- code = pdfi_mark_from_objarray(ctx, objarray, num_objects, NULL, "OBJ");
+ code = pdfi_pdfmark_from_objarray(ctx, objarray, num_objects, NULL, "OBJ");
if (code < 0) goto exit;
exit:
@@ -759,7 +757,7 @@ static int pdfi_mark_objdef_begin(pdf_context *ctx, pdf_indirect_ref *label, con
* Send a CLOSE command
* (<label>) CLOSE
*/
-static int pdfi_mark_objdef_close(pdf_context *ctx, pdf_indirect_ref *label)
+static int pdfi_pdfmark_objdef_close(pdf_context *ctx, pdf_indirect_ref *label)
{
int code;
pdf_obj *objarray[1];
@@ -771,7 +769,7 @@ static int pdfi_mark_objdef_close(pdf_context *ctx, pdf_indirect_ref *label)
objarray[0] = (pdf_obj *)label;
pdfi_countup(label);
- code = pdfi_mark_from_objarray(ctx, objarray, num_objects, NULL, "CLOSE");
+ code = pdfi_pdfmark_from_objarray(ctx, objarray, num_objects, NULL, "CLOSE");
if (code < 0) goto exit;
exit:
@@ -780,7 +778,7 @@ static int pdfi_mark_objdef_close(pdf_context *ctx, pdf_indirect_ref *label)
return code;
}
-static int pdfi_mark_stream_contents(pdf_context *ctx, pdf_indirect_ref *label, pdf_stream *stream)
+static int pdfi_pdfmark_stream_contents(pdf_context *ctx, pdf_indirect_ref *label, pdf_stream *stream)
{
int code;
pdf_obj *objarray[2];
@@ -794,7 +792,7 @@ static int pdfi_mark_stream_contents(pdf_context *ctx, pdf_indirect_ref *label,
pdfi_countup(stream);
stream->is_marking = true;
- code = pdfi_mark_from_objarray(ctx, objarray, num_objects, NULL, ".PUTSTREAM");
+ code = pdfi_pdfmark_from_objarray(ctx, objarray, num_objects, NULL, ".PUTSTREAM");
if (code < 0) goto exit;
exit:
@@ -805,7 +803,7 @@ static int pdfi_mark_stream_contents(pdf_context *ctx, pdf_indirect_ref *label,
}
/* Mark a stream object */
-int pdfi_mark_stream(pdf_context *ctx, pdf_stream *stream)
+int pdfi_pdfmark_stream(pdf_context *ctx, pdf_stream *stream)
{
int code;
pdf_dict *streamdict = NULL;
@@ -858,16 +856,16 @@ int pdfi_mark_stream(pdf_context *ctx, pdf_stream *stream)
}
if (code < 0) goto exit;
- code = pdfi_mark_objdef_begin(ctx, streamref, "stream");
+ code = pdfi_pdfmark_objdef_begin(ctx, streamref, "stream");
if (code < 0) goto exit;
- code = pdfi_mark_from_dict_withlabel(ctx, streamref, tempdict, NULL, ".PUTDICT");
+ code = pdfi_pdfmark_from_dict_withlabel(ctx, streamref, tempdict, NULL, ".PUTDICT");
if (code < 0) goto exit;
- code = pdfi_mark_stream_contents(ctx, streamref, stream);
+ code = pdfi_pdfmark_stream_contents(ctx, streamref, stream);
if (code < 0) goto exit;
- code = pdfi_mark_objdef_close(ctx, streamref);
+ code = pdfi_pdfmark_objdef_close(ctx, streamref);
if (code < 0) goto exit;
exit:
@@ -877,7 +875,7 @@ int pdfi_mark_stream(pdf_context *ctx, pdf_stream *stream)
}
/* Mark a dict object */
-int pdfi_mark_dict(pdf_context *ctx, pdf_dict *dict)
+int pdfi_pdfmark_dict(pdf_context *ctx, pdf_dict *dict)
{
int code;
pdf_indirect_ref *dictref = NULL;
@@ -898,10 +896,10 @@ int pdfi_mark_dict(pdf_context *ctx, pdf_dict *dict)
dictref->ref_generation_num = dict->generation_num;
dictref->is_marking = true;
- code = pdfi_mark_objdef_begin(ctx, dictref, "dict");
+ code = pdfi_pdfmark_objdef_begin(ctx, dictref, "dict");
if (code < 0) goto exit;
- code = pdfi_mark_from_dict_withlabel(ctx, dictref, dict, NULL, ".PUTDICT");
+ code = pdfi_pdfmark_from_dict_withlabel(ctx, dictref, dict, NULL, ".PUTDICT");
if (code < 0) goto exit;
exit:
@@ -909,7 +907,7 @@ int pdfi_mark_dict(pdf_context *ctx, pdf_dict *dict)
return code;
}
-static int pdfi_mark_filespec(pdf_context *ctx, pdf_string *name, pdf_dict *filespec)
+static int pdfi_pdfmark_filespec(pdf_context *ctx, pdf_string *name, pdf_dict *filespec)
{
int code;
pdf_dict *tempdict = NULL;
@@ -928,7 +926,7 @@ static int pdfi_mark_filespec(pdf_context *ctx, pdf_string *name, pdf_dict *file
code = pdfi_dict_put(ctx, tempdict, "FS", (pdf_obj *)filespec);
if (code < 0) goto exit;
- code = pdfi_mark_from_dict(ctx, tempdict, NULL, "EMBED");
+ code = pdfi_pdfmark_from_dict(ctx, tempdict, NULL, "EMBED");
if (code < 0) goto exit;
exit:
@@ -937,11 +935,11 @@ static int pdfi_mark_filespec(pdf_context *ctx, pdf_string *name, pdf_dict *file
}
/* embed a file */
-int pdfi_mark_embed_filespec(pdf_context *ctx, pdf_string *name, pdf_dict *filespec)
+int pdfi_pdfmark_embed_filespec(pdf_context *ctx, pdf_string *name, pdf_dict *filespec)
{
int code;
- code = pdfi_mark_filespec(ctx, name, filespec);
+ code = pdfi_pdfmark_filespec(ctx, name, filespec);
if (code < 0) goto exit;
exit:
@@ -952,7 +950,7 @@ int pdfi_mark_embed_filespec(pdf_context *ctx, pdf_string *name, pdf_dict *files
* Create and emit a /DOCINFO pdfmark for any and all of Title,
* Author, Subject, Keywords and Creator
*/
-void pdfi_write_docinfo_pdfmark(pdf_context *ctx, pdf_dict *info_dict)
+void pdfi_pdfmark_write_docinfo(pdf_context *ctx, pdf_dict *info_dict)
{
int i, code = 0;
pdf_dict *Info = NULL;
@@ -972,14 +970,14 @@ void pdfi_write_docinfo_pdfmark(pdf_context *ctx, pdf_dict *info_dict)
for (i=0;i<5;i++)
{
- if (pdfi_dict_knownget(ctx, info_dict, KeyNames[i], &o))
+ if (pdfi_dict_knownget(ctx, info_dict, KeyNames[i], &o) > 0)
{
(void)pdfi_dict_put(ctx, Info, KeyNames[i], (pdf_obj *)o);
pdfi_countdown(o);
}
}
- code = pdfi_mark_from_dict(ctx, Info, NULL, "DOCINFO");
+ code = pdfi_pdfmark_from_dict(ctx, Info, NULL, "DOCINFO");
exit:
pdfi_countdown(Info);
return;
@@ -996,7 +994,7 @@ exit:
* to adjust the various Box entries (note this routine must be called
* early!).
*/
-void pdfi_write_boxes_pdfmark(pdf_context *ctx, pdf_dict *page_dict)
+void pdfi_pdfmark_write_boxes(pdf_context *ctx, pdf_dict *page_dict)
{
int i, code = 0;
pdf_dict *BoxDict = NULL;
@@ -1040,7 +1038,7 @@ void pdfi_write_boxes_pdfmark(pdf_context *ctx, pdf_dict *page_dict)
for (i=0;i<4;i++)
{
/* Check each Bos name in turn */
- if (pdfi_dict_knownget(ctx, page_dict, BoxNames[i], &o)){
+ if (pdfi_dict_knownget(ctx, page_dict, BoxNames[i], &o) > 0){
gs_rect box;
pdf_array *new_array = NULL;
@@ -1076,7 +1074,7 @@ void pdfi_write_boxes_pdfmark(pdf_context *ctx, pdf_dict *page_dict)
}
/* Send all the Box entries to the device */
- (void)pdfi_mark_from_dict(ctx, BoxDict, NULL, "PAGE");
+ (void)pdfi_pdfmark_from_dict(ctx, BoxDict, NULL, "PAGE");
exit:
pdfi_countdown(BoxDict);
diff --git a/pdf/pdf_mark.h b/pdf/pdf_mark.h
index b732d190..653eafb7 100644
--- a/pdf/pdf_mark.h
+++ b/pdf/pdf_mark.h
@@ -1,4 +1,4 @@
-/* Copyright (C) 2020-2021 Artifex Software, Inc.
+/* Copyright (C) 2020-2022 Artifex Software, Inc.
All Rights Reserved.
This software is provided AS-IS with no warranty, either express or
@@ -18,15 +18,16 @@
#ifndef PDF_MARK
#define PDF_MARK
-int pdfi_mark_from_dict(pdf_context *ctx, pdf_dict *dict, gs_matrix *ctm, const char *type);
-int pdfi_mark_object(pdf_context *ctx, pdf_obj *object, const char *label);
-int pdfi_mark_modDest(pdf_context *ctx, pdf_dict *dict);
-int pdfi_mark_modA(pdf_context *ctx, pdf_dict *dict);
-int pdfi_mark_stream(pdf_context *ctx, pdf_stream *stream);
-int pdfi_mark_dict(pdf_context *ctx, pdf_dict *dict);
-int pdfi_mark_embed_filespec(pdf_context *ctx, pdf_string *name, pdf_dict *filespec);
-int pdfi_mark_get_objlabel(pdf_context *ctx, pdf_obj *obj, char **label);
-void pdfi_write_boxes_pdfmark(pdf_context *ctx, pdf_dict *page_dict);
-void pdfi_write_docinfo_pdfmark(pdf_context *ctx, pdf_dict *info_dict);
+int pdfi_pdfmark_from_dict(pdf_context *ctx, pdf_dict *dict, gs_matrix *ctm, const char *type);
+int pdfi_pdfmark_from_objarray(pdf_context *ctx, pdf_obj **objarray, int len, gs_matrix *ctm, const char *type);
+int pdfi_pdfmark_object(pdf_context *ctx, pdf_obj *object, const char *label);
+int pdfi_pdfmark_modDest(pdf_context *ctx, pdf_dict *dict);
+int pdfi_pdfmark_modA(pdf_context *ctx, pdf_dict *dict);
+int pdfi_pdfmark_stream(pdf_context *ctx, pdf_stream *stream);
+int pdfi_pdfmark_dict(pdf_context *ctx, pdf_dict *dict);
+int pdfi_pdfmark_embed_filespec(pdf_context *ctx, pdf_string *name, pdf_dict *filespec);
+int pdfi_pdfmark_get_objlabel(pdf_context *ctx, pdf_obj *obj, char **label);
+void pdfi_pdfmark_write_boxes(pdf_context *ctx, pdf_dict *page_dict);
+void pdfi_pdfmark_write_docinfo(pdf_context *ctx, pdf_dict *info_dict);
#endif
diff --git a/pdf/pdf_misc.c b/pdf/pdf_misc.c
index 1240d5bc..11c5dde5 100644
--- a/pdf/pdf_misc.c
+++ b/pdf/pdf_misc.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 2019-2021 Artifex Software, Inc.
+/* Copyright (C) 2019-2022 Artifex Software, Inc.
All Rights Reserved.
This software is provided AS-IS with no warranty, either express or
@@ -18,8 +18,10 @@
#include "pdf_int.h"
#include "pdf_stack.h"
#include "pdf_misc.h"
+#include "pdf_font_types.h"
#include "pdf_gstate.h"
#include "gspath.h" /* For gs_strokepath() */
+#include "gspaint.h" /* For gs_erasepage() */
#include "gsicc_manage.h" /* For gsicc_get_default_type() */
#include "gsstate.h" /* for gs_setrenderingintent() */
diff --git a/pdf/pdf_obj.c b/pdf/pdf_obj.c
index 931f2137..58bd59b0 100644
--- a/pdf/pdf_obj.c
+++ b/pdf/pdf_obj.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 2020-2021 Artifex Software, Inc.
+/* Copyright (C) 2020-2022 Artifex Software, Inc.
All Rights Reserved.
This software is provided AS-IS with no warranty, either express or
@@ -23,6 +23,7 @@
#include "pdf_deref.h" /* for replace_cache_entry() */
#include "pdf_mark.h"
#include "pdf_file.h" /* for pdfi_stream_to_buffer() */
+#include "pdf_loop_detect.h"
/***********************************************************************************/
/* Functions to create the various kinds of 'PDF objects', Created objects have a */
@@ -49,7 +50,7 @@ int pdfi_object_alloc(pdf_context *ctx, pdf_obj_type type, unsigned int size, pd
break;
case PDF_STRING:
case PDF_NAME:
- bytes = sizeof(pdf_string);
+ bytes = sizeof(pdf_string) + size - sizeof(PDF_NAME_DECLARED_LENGTH);
break;
case PDF_ARRAY:
bytes = sizeof(pdf_array);
@@ -64,7 +65,7 @@ int pdfi_object_alloc(pdf_context *ctx, pdf_obj_type type, unsigned int size, pd
bytes = sizeof(pdf_bool);
break;
case PDF_KEYWORD:
- bytes = sizeof(pdf_keyword);
+ bytes = sizeof(pdf_keyword) + size - sizeof(PDF_NAME_DECLARED_LENGTH);
break;
/* The following aren't PDF object types, but are objects we either want to
* reference count, or store on the stack.
@@ -99,17 +100,7 @@ int pdfi_object_alloc(pdf_context *ctx, pdf_obj_type type, unsigned int size, pd
case PDF_KEYWORD:
case PDF_STRING:
case PDF_NAME:
- {
- unsigned char *data = NULL;
- data = (unsigned char *)gs_alloc_bytes(ctx->memory, size, "pdfi_object_alloc");
- if (data == NULL) {
- gs_free_object(ctx->memory, *obj, "pdfi_object_alloc");
- *obj = NULL;
- return_error(gs_error_VMerror);
- }
- ((pdf_string *)*obj)->data = data;
- ((pdf_string *)*obj)->length = size;
- }
+ ((pdf_string *)*obj)->length = size;
break;
case PDF_ARRAY:
{
@@ -131,23 +122,18 @@ int pdfi_object_alloc(pdf_context *ctx, pdf_obj_type type, unsigned int size, pd
break;
case PDF_DICT:
{
- pdf_obj **keys = NULL, **values = NULL;
+ pdf_dict_entry *entries = NULL;
((pdf_dict *)*obj)->size = size;
if (size > 0) {
- keys = (pdf_obj **)gs_alloc_bytes(ctx->memory, size * sizeof(pdf_obj *), "pdfi_object_alloc");
- values = (pdf_obj **)gs_alloc_bytes(ctx->memory, size * sizeof(pdf_obj *), "pdfi_object_alloc");
- if (keys == NULL || values == NULL) {
+ entries = (pdf_dict_entry *)gs_alloc_bytes(ctx->memory, size * sizeof(pdf_dict_entry), "pdfi_object_alloc");
+ if (entries == NULL) {
gs_free_object(ctx->memory, *obj, "pdfi_object_alloc");
- gs_free_object(ctx->memory, keys, "pdfi_object_alloc");
- gs_free_object(ctx->memory, values, "pdfi_object_alloc");
*obj = NULL;
return_error(gs_error_VMerror);
}
- ((pdf_dict *)*obj)->values = values;
- ((pdf_dict *)*obj)->keys = keys;
- memset(((pdf_dict *)*obj)->values, 0x00, size * sizeof(pdf_obj *));
- memset(((pdf_dict *)*obj)->keys, 0x00, size * sizeof(pdf_obj *));
+ ((pdf_dict *)*obj)->list = entries;
+ memset(((pdf_dict *)*obj)->list, 0x00, size * sizeof(pdf_dict_entry));
}
}
break;
@@ -160,7 +146,7 @@ int pdfi_object_alloc(pdf_context *ctx, pdf_obj_type type, unsigned int size, pd
break;
}
#if REFCNT_DEBUG
- (*obj)->UID = ctx->UID++;
+ (*obj)->UID = ctx->ref_UID++;
dmprintf2(ctx->memory, "Allocated object of type %c with UID %"PRIi64"\n", (*obj)->type, (*obj)->UID);
#endif
return 0;
@@ -205,18 +191,13 @@ static void pdfi_free_namestring(pdf_obj *o)
/* Currently names and strings are the same, so a single cast is OK */
pdf_name *n = (pdf_name *)o;
- if (n->data != NULL)
- gs_free_object(OBJ_MEMORY(n), n->data, "pdf interpreter free name or string data");
gs_free_object(OBJ_MEMORY(n), n, "pdf interpreter free name or string");
}
static void pdfi_free_keyword(pdf_obj *o)
{
- /* Currently names and strings are the same, so a single cast is OK */
pdf_keyword *k = (pdf_keyword *)o;
- if (k->data != NULL)
- gs_free_object(OBJ_MEMORY(k), k->data, "pdf interpreter free keyword data");
gs_free_object(OBJ_MEMORY(k), k, "pdf interpreter free keyword");
}
@@ -238,6 +219,8 @@ static void pdfi_free_stream(pdf_obj *o)
void pdfi_free_object(pdf_obj *o)
{
+ if (o == NULL)
+ return;
switch(o->type) {
case PDF_ARRAY_MARK:
case PDF_DICT_MARK:
@@ -540,7 +523,7 @@ static int pdfi_obj_int_str(pdf_context *ctx, pdf_obj *obj, byte **data, int *le
buf = (char *)gs_alloc_bytes(ctx->memory, size, "pdfi_obj_int_str(data)");
if (buf == NULL)
return_error(gs_error_VMerror);
- snprintf(buf, size, "%ld", number->value.i);
+ snprintf(buf, size, "%"PRId64"", number->value.i);
*data = (byte *)buf;
*len = strlen(buf);
return code;
@@ -554,7 +537,7 @@ static int pdfi_obj_getrefstr(pdf_context *ctx, uint64_t object_num, uint32_t ge
buf = (char *)gs_alloc_bytes(ctx->memory, size, "pdfi_obj_getrefstr(data)");
if (buf == NULL)
return_error(gs_error_VMerror);
- snprintf(buf, size, "%ld %d R", object_num, generation);
+ snprintf(buf, size, "%"PRId64" %d R", object_num, generation);
*data = (byte *)buf;
*len = strlen(buf);
return 0;
@@ -573,7 +556,7 @@ static int pdfi_obj_indirect_str(pdf_context *ctx, pdf_obj *obj, byte **data, in
ref->is_highlevelform = false;
} else {
if (!ref->is_marking) {
- code = pdfi_dereference(ctx, ref->ref_object_num, ref->ref_generation_num, &object);
+ code = pdfi_deref_loop_detect(ctx, ref->ref_object_num, ref->ref_generation_num, &object);
if (code == gs_error_undefined) {
/* Do something sensible for undefined reference (this would be a broken file) */
/* TODO: Flag an error? */
@@ -584,10 +567,10 @@ static int pdfi_obj_indirect_str(pdf_context *ctx, pdf_obj *obj, byte **data, in
goto exit;
if (code == 0) {
if (object->type == PDF_STREAM) {
- code = pdfi_mark_stream(ctx, (pdf_stream *)object);
+ code = pdfi_pdfmark_stream(ctx, (pdf_stream *)object);
if (code < 0) goto exit;
} else if (object->type == PDF_DICT) {
- code = pdfi_mark_dict(ctx, (pdf_dict *)object);
+ code = pdfi_pdfmark_dict(ctx, (pdf_dict *)object);
if (code < 0) goto exit;
} else {
code = pdfi_obj_to_string(ctx, object, data, len);
@@ -833,6 +816,10 @@ static int pdfi_obj_dict_str(pdf_context *ctx, pdf_obj *obj, byte **data, int *l
uint64_t index, dictsize;
uint64_t itemnum = 0;
+ code = pdfi_loop_detector_mark(ctx);
+ if (code < 0)
+ return code;
+
code = pdfi_bufstream_init(ctx, &bufstream);
if (code < 0) goto exit;
@@ -851,6 +838,18 @@ static int pdfi_obj_dict_str(pdf_context *ctx, pdf_obj *obj, byte **data, int *l
/* Note: We specifically fetch without dereferencing, so there will be no circular
* references to handle here.
*/
+ /* Wrong.... */
+
+ if (dict->object_num !=0 ) {
+ if (pdfi_loop_detector_check_object(ctx, dict->object_num)) {
+ code = gs_note_error(gs_error_circular_reference);
+ goto exit;
+ }
+ code = pdfi_loop_detector_add_object(ctx, dict->object_num);
+ if (code < 0)
+ goto exit;
+ }
+
/* Get each (key,val) pair from dict and setup param for it */
code = pdfi_dict_key_first(ctx, dict, (pdf_obj **)&Key, &index);
while (code >= 0) {
@@ -914,6 +913,10 @@ static int pdfi_obj_dict_str(pdf_context *ctx, pdf_obj *obj, byte **data, int *l
pdfi_countdown(Key);
pdfi_countdown(Value);
pdfi_bufstream_free(ctx, &bufstream);
+ if (code < 0)
+ (void)pdfi_loop_detector_cleartomark(ctx);
+ else
+ code = pdfi_loop_detector_cleartomark(ctx);
return code;
}
diff --git a/pdf/pdf_optcontent.c b/pdf/pdf_optcontent.c
index d0dab6c6..484d72c9 100644
--- a/pdf/pdf_optcontent.c
+++ b/pdf/pdf_optcontent.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 2019-2021 Artifex Software, Inc.
+/* Copyright (C) 2019-2022 Artifex Software, Inc.
All Rights Reserved.
This software is provided AS-IS with no warranty, either express or
@@ -18,10 +18,12 @@
#include "pdf_int.h"
#include "pdf_stack.h"
#include "pdf_misc.h"
+#include "pdf_font_types.h"
#include "pdf_gstate.h"
#include "pdf_dict.h"
#include "pdf_array.h"
#include "pdf_doc.h"
+#include "pdf_mark.h"
#include "pdf_optcontent.h"
@@ -301,8 +303,8 @@ pdfi_oc_is_ocg_visible(pdf_context *ctx, pdf_dict *ocdict)
is_visible = pdfi_oc_check_OCG_usage(ctx, ocdict);
} else {
char str[100];
- memcpy(str, (const char *)type->data, type->length);
- str[type->length] = '\0';
+ memcpy(str, (const char *)type->data, type->length < 100 ? type->length : 99);
+ str[type->length < 100 ? type->length : 99] = '\0';
dmprintf1(ctx->memory, "WARNING: OC dict type is %s, expected OCG or OCMD\n", str);
}
@@ -432,20 +434,116 @@ int pdfi_oc_free(pdf_context *ctx)
return code;
}
+int pdfi_op_MP(pdf_context *ctx)
+{
+ pdf_obj *o = NULL;
+ int code = 0;
+
+ if (pdfi_count_stack(ctx) < 1)
+ return_error(gs_error_stackunderflow);
+
+ if (!ctx->device_state.writepdfmarks || !ctx->args.preservemarkedcontent)
+ goto exit;
+
+ o = ctx->stack_top[-1];
+ if (o->type != PDF_NAME) {
+ pdfi_pop(ctx, 1);
+ return_error(gs_error_typecheck);
+ }
+
+ code = pdfi_pdfmark_from_objarray(ctx, &o, 1, NULL, "MP");
+ ctx->BMClevel ++;
+
+exit:
+ pdfi_pop(ctx, 1);
+ return code;
+}
+
+int pdfi_op_DP(pdf_context *ctx, pdf_dict *stream_dict, pdf_dict *page_dict)
+{
+ pdf_name *properties = NULL;
+ int code = 0;
+ pdf_obj **objarray = NULL;
+
+ if (pdfi_count_stack(ctx) < 2) {
+ pdfi_clearstack(ctx);
+ return gs_note_error(gs_error_stackunderflow);
+ }
+
+ if (!ctx->device_state.writepdfmarks || !ctx->args.preservemarkedcontent)
+ goto exit;
+
+ if ((ctx->stack_top[-2])->type != PDF_NAME) {
+ code = gs_note_error(gs_error_typecheck);
+ goto exit;
+ }
+
+ objarray = (pdf_obj **)gs_alloc_bytes(ctx->memory, 2 * sizeof(pdf_obj *), "pdfi_op_DP");
+ if (objarray == NULL) {
+ code = gs_note_error(gs_error_VMerror);
+ goto exit;
+ }
+
+ objarray[0] = ctx->stack_top[-2];
+
+ if ((ctx->stack_top[-1])->type == PDF_NAME) {
+ code = pdfi_find_resource(ctx, (unsigned char *)"Properties", (pdf_name *)ctx->stack_top[-1], stream_dict, page_dict, (pdf_obj **)&properties);
+ if(code < 0)
+ goto exit;
+ if (properties->type != PDF_DICT) {
+ code = gs_note_error(gs_error_typecheck);
+ goto exit;
+ }
+ objarray[1] = (pdf_obj *)properties;
+ } else {
+ if ((ctx->stack_top[-1])->type != PDF_DICT) {
+ code = gs_note_error(gs_error_VMerror);
+ goto exit;
+ }
+ objarray[1] = ctx->stack_top[-1];
+ }
+
+ code = pdfi_pdfmark_from_objarray(ctx, objarray, 2, NULL, "DP");
+
+ exit:
+ if (objarray != NULL)
+ gs_free_object(ctx->memory, objarray, "free pdfi_op_DP");
+ pdfi_pop(ctx, 2); /* pop args */
+ pdfi_countdown(properties);
+ return code;
+}
+
/* begin marked content sequence */
-/* TODO: Incomplete implementation, it is ignoring the argument */
int pdfi_op_BMC(pdf_context *ctx)
{
- if (pdfi_count_stack(ctx) >= 1) {
+ pdf_obj *o = NULL;
+ int code = 0;
+
+ /* This will also prevent us writing out an EMC if the BMC is in any way invalid */
+ ctx->BDCWasOC = true;
+
+ if (pdfi_count_stack(ctx) < 1)
+ return_error(gs_error_stackunderflow);
+
+ if (!ctx->device_state.writepdfmarks || !ctx->args.preservemarkedcontent)
+ goto exit;
+
+ o = ctx->stack_top[-1];
+ if (o->type != PDF_NAME) {
pdfi_pop(ctx, 1);
- } else
- pdfi_clearstack(ctx);
+ return_error(gs_error_typecheck);
+ }
+
+ ctx->BDCWasOC = false;
+ code = pdfi_pdfmark_from_objarray(ctx, &o, 1, NULL, "BMC");
ctx->BMClevel ++;
- return 0;
+
+exit:
+ pdfi_pop(ctx, 1);
+ return code;
}
/* begin marked content sequence with property list */
-/* TODO: Incomplete implementation, only tries to do something sensible for OC */
int pdfi_op_BDC(pdf_context *ctx, pdf_dict *stream_dict, pdf_dict *page_dict)
{
pdf_name *tag = NULL;
@@ -453,28 +551,62 @@ int pdfi_op_BDC(pdf_context *ctx, pdf_dict *stream_dict, pdf_dict *page_dict)
pdf_dict *oc_dict = NULL;
int code = 0;
bool ocg_is_visible;
+ pdf_obj **objarray = NULL;
+
+ /* This will also prevent us writing out an EMC if the BDC is in any way invalid */
+ ctx->BDCWasOC = true;
if (pdfi_count_stack(ctx) < 2) {
- /* TODO: Flag error? */
pdfi_clearstack(ctx);
- return 0;
+ return gs_note_error(gs_error_stackunderflow);
}
ctx->BMClevel ++;
- /* Check if second arg is OC and handle it if so */
tag = (pdf_name *)ctx->stack_top[-2];
if (tag->type != PDF_NAME)
goto exit;
- if (!pdfi_name_is(tag, "OC"))
+
+ if (!pdfi_name_is(tag, "OC")) {
+ ctx->BDCWasOC = false;
+ if (!ctx->device_state.writepdfmarks || !ctx->args.preservemarkedcontent)
+ goto exit;
+
+ objarray = (pdf_obj **)gs_alloc_bytes(ctx->memory, 2 * sizeof(pdf_obj *), "pdfi_op_BDC");
+ if (objarray == NULL) {
+ code = gs_note_error(gs_error_VMerror);
+ goto exit;
+ }
+
+ objarray[0] = ctx->stack_top[-2];
+
+ if ((ctx->stack_top[-1])->type == PDF_NAME) {
+ code = pdfi_find_resource(ctx, (unsigned char *)"Properties", (pdf_name *)ctx->stack_top[-1], stream_dict, page_dict, (pdf_obj **)&oc_dict);
+ if(code < 0)
+ goto exit;
+ if (oc_dict->type != PDF_DICT) {
+ code = gs_note_error(gs_error_typecheck);
+ goto exit;
+ }
+ objarray[1] = (pdf_obj *)oc_dict;
+ } else {
+ if ((ctx->stack_top[-1])->type != PDF_DICT) {
+ code = gs_note_error(gs_error_VMerror);
+ goto exit;
+ }
+ objarray[1] = ctx->stack_top[-1];
+ }
+
+ code = pdfi_pdfmark_from_objarray(ctx, objarray, 2, NULL, "BDC");
goto exit;
+ }
/* Check if first arg is a name and handle it if so */
/* TODO: spec says it could also be an inline dict that we should be able to handle,
* but I am just matching what gs does for now, and it doesn't handle that case.
*/
properties = (pdf_name *)ctx->stack_top[-1];
- if (tag->type != PDF_NAME)
+ if (properties->type != PDF_NAME)
goto exit;
/* If it's a name, look it up in Properties */
@@ -491,6 +623,8 @@ int pdfi_op_BDC(pdf_context *ctx, pdf_dict *stream_dict, pdf_dict *page_dict)
code = pdfi_oc_levels_set(ctx, ctx->OFFlevels, ctx->BMClevel);
exit:
+ if (objarray != NULL)
+ gs_free_object(ctx->memory, objarray, "free pdfi_op_BDC");
pdfi_pop(ctx, 2); /* pop args */
pdfi_countdown(oc_dict);
return code;
@@ -499,9 +633,14 @@ int pdfi_op_BDC(pdf_context *ctx, pdf_dict *stream_dict, pdf_dict *page_dict)
/* end marked content sequence */
int pdfi_op_EMC(pdf_context *ctx)
{
- int code;
+ int code, code1 = 0;
+
+ if (ctx->device_state.writepdfmarks && ctx->args.preservemarkedcontent && !ctx->BDCWasOC)
+ code1 = pdfi_pdfmark_from_objarray(ctx, NULL, 0, NULL, "EMC");
code = pdfi_oc_levels_clear(ctx, ctx->OFFlevels, ctx->BMClevel);
+ if (code == 0)
+ code = code1;
/* TODO: Should we flag error on too many EMC? */
if (ctx->BMClevel > 0)
diff --git a/pdf/pdf_optcontent.h b/pdf/pdf_optcontent.h
index aa25b017..375da5d7 100644
--- a/pdf/pdf_optcontent.h
+++ b/pdf/pdf_optcontent.h
@@ -21,6 +21,8 @@ bool pdfi_oc_is_ocg_visible(pdf_context *ctx, pdf_dict *ocdict);
int pdfi_oc_init(pdf_context *ctx);
int pdfi_oc_free(pdf_context *ctx);
bool pdfi_oc_is_off(pdf_context *ctx);
+int pdfi_op_MP(pdf_context *ctx);
+int pdfi_op_DP(pdf_context *ctx, pdf_dict *stream_dict, pdf_dict *page_dict);
int pdfi_op_BMC(pdf_context *ctx);
int pdfi_op_BDC(pdf_context *ctx, pdf_dict *stream_dict, pdf_dict *page_dict);
int pdfi_op_EMC(pdf_context *ctx);
diff --git a/pdf/pdf_page.c b/pdf/pdf_page.c
index 58833076..f2389fea 100644
--- a/pdf/pdf_page.c
+++ b/pdf/pdf_page.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 2019-2021 Artifex Software, Inc.
+/* Copyright (C) 2019-2022 Artifex Software, Inc.
All Rights Reserved.
This software is provided AS-IS with no warranty, either express or
@@ -26,6 +26,7 @@
#include "pdf_loop_detect.h"
#include "pdf_colour.h"
#include "pdf_trans.h"
+#include "pdf_font_types.h"
#include "pdf_gstate.h"
#include "pdf_misc.h"
#include "pdf_optcontent.h"
@@ -677,72 +678,10 @@ static void release_page_DefaultSpaces(pdf_context *ctx)
static int setup_page_DefaultSpaces(pdf_context *ctx, pdf_dict *page_dict)
{
- int code = 0;
- pdf_dict *resources_dict = NULL, *colorspaces_dict = NULL;
- pdf_obj *DefaultSpace = NULL;
-
/* First off, discard any dangling Default* colour spaces, just in case. */
release_page_DefaultSpaces(ctx);
- if (ctx->args.NOSUBSTDEVICECOLORS)
- return 0;
-
- /* Create any required DefaultGray, DefaultRGB or DefaultCMYK
- * spaces.
- */
- code = pdfi_dict_knownget(ctx, page_dict, "Resources", (pdf_obj **)&resources_dict);
- if (code > 0) {
- code = pdfi_dict_knownget(ctx, resources_dict, "ColorSpace", (pdf_obj **)&colorspaces_dict);
- if (code > 0) {
- code = pdfi_dict_knownget(ctx, colorspaces_dict, "DefaultGray", &DefaultSpace);
- if (code > 0) {
- gs_color_space *pcs;
- code = pdfi_create_colorspace(ctx, DefaultSpace, NULL, page_dict, &pcs, false);
- /* If any given Default* space fails simply ignore it, we wil then use the Device
- * space instead, this is as per the spec.
- */
- if (code >= 0) {
- ctx->page.DefaultGray_cs = pcs;
- pdfi_set_colour_callback(pcs, ctx, NULL);
- }
- }
- pdfi_countdown(DefaultSpace);
- DefaultSpace = NULL;
- code = pdfi_dict_knownget(ctx, colorspaces_dict, "DefaultRGB", &DefaultSpace);
- if (code > 0) {
- gs_color_space *pcs;
- code = pdfi_create_colorspace(ctx, DefaultSpace, NULL, page_dict, &pcs, false);
- /* If any given Default* space fails simply ignore it, we wil then use the Device
- * space instead, this is as per the spec.
- */
- if (code >= 0) {
- ctx->page.DefaultRGB_cs = pcs;
- pdfi_set_colour_callback(pcs, ctx, NULL);
- }
- }
- pdfi_countdown(DefaultSpace);
- DefaultSpace = NULL;
- code = pdfi_dict_knownget(ctx, colorspaces_dict, "DefaultCMYK", &DefaultSpace);
- if (code > 0) {
- gs_color_space *pcs;
- code = pdfi_create_colorspace(ctx, DefaultSpace, NULL, page_dict, &pcs, false);
- /* If any given Default* space fails simply ignore it, we wil then use the Device
- * space instead, this is as per the spec.
- */
- if (code >= 0) {
- ctx->page.DefaultCMYK_cs = pcs;
- pdfi_set_colour_callback(pcs, ctx, NULL);
- }
- }
- pdfi_countdown(DefaultSpace);
- DefaultSpace = NULL;
- }
- }
-
- pdfi_countdown(DefaultSpace);
- pdfi_countdown(resources_dict);
- pdfi_countdown(colorspaces_dict);
- return 0;
+ return(pdfi_setup_DefaultSpaces(ctx, page_dict));
}
int pdfi_page_render(pdf_context *ctx, uint64_t page_num, bool init_graphics)
@@ -766,18 +705,18 @@ int pdfi_page_render(pdf_context *ctx, uint64_t page_num, bool init_graphics)
char extra_info[256];
page_dict_error = true;
- gs_sprintf(extra_info, "*** ERROR: Page %ld has invalid Page dict, skipping\n", page_num+1);
+ gs_snprintf(extra_info, sizeof(extra_info), "*** ERROR: Page %ld has invalid Page dict, skipping\n", page_num+1);
pdfi_set_error(ctx, 0, NULL, E_PDF_PAGEDICTERROR, "pdfi_page_render", extra_info);
if (code != gs_error_VMerror && !ctx->args.pdfstoponerror)
code = 0;
- goto exit2;
+ goto exit3;
}
pdfi_device_set_flags(ctx);
code = pdfi_check_page(ctx, page_dict, init_graphics);
if (code < 0)
- goto exit2;
+ goto exit3;
if (ctx->args.pdfdebug) {
dbgmprintf2(ctx->memory, "Current page %ld transparency setting is %d", page_num+1,
@@ -791,7 +730,7 @@ int pdfi_page_render(pdf_context *ctx, uint64_t page_num, bool init_graphics)
code = pdfi_dict_knownget_type(ctx, page_dict, "Group", PDF_DICT, (pdf_obj **)&group_dict);
if (code < 0)
- goto exit2;
+ goto exit3;
if (group_dict != NULL)
page_group_known = true;
@@ -829,7 +768,7 @@ int pdfi_page_render(pdf_context *ctx, uint64_t page_num, bool init_graphics)
}
/* Write the various CropBox, TrimBox etc to the device */
- pdfi_write_boxes_pdfmark(ctx, page_dict);
+ pdfi_pdfmark_write_boxes(ctx, page_dict);
code = setup_page_DefaultSpaces(ctx, page_dict);
if (code < 0)
@@ -866,7 +805,7 @@ int pdfi_page_render(pdf_context *ctx, uint64_t page_num, bool init_graphics)
/* We don't retain the PDF14 device */
code = gs_push_pdf14trans_device(ctx->pgs, false, false, trans_depth, ctx->page.num_spots);
if (code >= 0) {
- if (page_group_known) {
+ if (ctx->page.has_transparency && page_group_known) {
code = pdfi_trans_begin_page_group(ctx, page_dict, group_dict);
/* If setting the page group failed for some reason, abandon the page group,
* but continue with the page
@@ -889,18 +828,19 @@ int pdfi_page_render(pdf_context *ctx, uint64_t page_num, bool init_graphics)
pdfi_set_DefaultQState(ctx, ctx->pgs);
/* Render one page (including annotations) */
+ if (!ctx->args.QUIET)
+ outprintf(ctx->memory, "Page %"PRId64"\n", page_num + 1);
+
code = pdfi_process_one_page(ctx, page_dict);
- if (ctx->page.has_transparency && page_group_known) {
+ if (need_pdf14 && ctx->page.has_transparency && page_group_known) {
code1 = pdfi_trans_end_group(ctx);
}
- pdfi_countdown(ctx->page.CurrentPageDict);
- ctx->page.CurrentPageDict = NULL;
-
if (need_pdf14) {
if (code1 < 0) {
(void)gs_abort_pdf14trans_device(ctx->pgs);
+ code = code1;
goto exit1;
}
@@ -910,10 +850,15 @@ int pdfi_page_render(pdf_context *ctx, uint64_t page_num, bool init_graphics)
}
}
- exit1:
+exit1:
pdfi_free_DefaultQState(ctx);
pdfi_grestore(ctx);
- exit2:
+
+exit2:
+ pdfi_countdown(ctx->page.CurrentPageDict);
+ ctx->page.CurrentPageDict = NULL;
+
+exit3:
pdfi_countdown(page_dict);
pdfi_countdown(group_dict);
diff --git a/pdf/pdf_path.c b/pdf/pdf_path.c
index ef6f1328..a9724def 100644
--- a/pdf/pdf_path.c
+++ b/pdf/pdf_path.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 2018-2021 Artifex Software, Inc.
+/* Copyright (C) 2018-2022 Artifex Software, Inc.
All Rights Reserved.
This software is provided AS-IS with no warranty, either express or
@@ -16,6 +16,7 @@
/* Path operations for the PDF interpreter */
#include "pdf_int.h"
+#include "pdf_font_types.h"
#include "pdf_gstate.h"
#include "pdf_path.h"
#include "pdf_stack.h"
@@ -120,22 +121,28 @@ static int pdfi_fill_inner(pdf_context *ctx, bool use_eofill)
if (pdfi_oc_is_off(ctx))
goto exit;
- code = pdfi_gsave(ctx);
- if (code < 0) goto exit;
-
code = pdfi_trans_setup(ctx, &state, NULL, TRANSPARENCY_Caller_Fill);
if (code == 0) {
+ /* If we don't gsave/grestore round the fill, then the file
+ * /tests_private/pdf/sumatra/954_-_dashed_lines_hardly_visible.pdf renders
+ * incorrectly. However we must not gsave/grestore round the trans_setup
+ * trans_teardown, because that might set pgs->soft_mask_id and if we restore
+ * back to a point where that is not set then pdfwrite doesn't work properly.
+ */
+ code = pdfi_gsave(ctx);
+ if (code < 0) goto exit;
+
if (use_eofill)
code = gs_eofill(ctx->pgs);
else
code = gs_fill(ctx->pgs);
+ code1 = pdfi_grestore(ctx);
+ if (code == 0) code = code1;
+
code1 = pdfi_trans_teardown(ctx, &state);
if (code == 0) code = code1;
}
- code1 = pdfi_grestore(ctx);
- if (code == 0) code = code1;
-
exit:
code1 = pdfi_newpath(ctx);
if (code == 0) code = code1;
@@ -164,20 +171,27 @@ int pdfi_stroke(pdf_context *ctx)
if (pdfi_oc_is_off(ctx))
goto exit;
- code = pdfi_gsave(ctx);
- if (code < 0) goto exit;
+/* code = pdfi_gsave(ctx);
+ if (code < 0) goto exit;*/
gs_swapcolors_quick(ctx->pgs);
code = pdfi_trans_setup(ctx, &state, NULL, TRANSPARENCY_Caller_Stroke);
if (code == 0) {
+ code = pdfi_gsave(ctx);
+ if (code < 0) goto exit;
+
code = gs_stroke(ctx->pgs);
+
+ code1 = pdfi_grestore(ctx);
+ if (code == 0) code = code1;
+
code1 = pdfi_trans_teardown(ctx, &state);
if (code == 0) code = code1;
}
gs_swapcolors_quick(ctx->pgs);
- code1 = pdfi_grestore(ctx);
- if (code == 0) code = code1;
+/* code1 = pdfi_grestore(ctx);
+ if (code == 0) code = code1;*/
exit:
code1 = pdfi_newpath(ctx);
@@ -378,22 +392,23 @@ static int pdfi_B_inner(pdf_context *ctx, bool use_eofill)
if (pdfi_oc_is_off(ctx))
goto exit;
- code = pdfi_gsave(ctx);
- if (code < 0) goto exit;
-
code = pdfi_trans_setup(ctx, &state, NULL, TRANSPARENCY_Caller_FillStroke);
if (code == 0) {
+ code = pdfi_gsave(ctx);
+ if (code < 0) goto exit;
+
if (use_eofill)
code = gs_eofillstroke(ctx->pgs, &code1);
else
code = gs_fillstroke(ctx->pgs, &code1);
+
+ code1 = pdfi_grestore(ctx);
+ if (code == 0) code = code1;
+
code1 = pdfi_trans_teardown(ctx, &state);
if (code >= 0) code = code1;
}
- code1 = pdfi_grestore(ctx);
- if (code == 0) code = code1;
-
exit:
code1 = pdfi_newpath(ctx);
if (code == 0) code = code1;
diff --git a/pdf/pdf_pattern.c b/pdf/pdf_pattern.c
index 9d4f9eaa..57a16449 100644
--- a/pdf/pdf_pattern.c
+++ b/pdf/pdf_pattern.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 2019-2021 Artifex Software, Inc.
+/* Copyright (C) 2019-2022 Artifex Software, Inc.
All Rights Reserved.
This software is provided AS-IS with no warranty, either express or
@@ -21,6 +21,7 @@
#include "pdf_pattern.h"
#include "pdf_stack.h"
#include "pdf_array.h"
+#include "pdf_font_types.h"
#include "pdf_gstate.h"
#include "pdf_file.h"
#include "pdf_dict.h"
@@ -116,8 +117,7 @@ static void pdfi_free_pattern_context(pdf_pattern_context_t *context)
static bool
pdfi_pattern_purge_proc(gx_color_tile * ctile, void *proc_data)
{
- gs_id id = (gs_id)proc_data;
- if (ctile->id == id)
+ if (ctile->id == *((gx_bitmap_id *)proc_data))
return true;
return false;
}
@@ -138,7 +138,7 @@ void pdfi_pattern_cleanup(gs_memory_t * mem, void *p)
context->shading == NULL && context->ctx->pgs->pattern_cache != NULL
&& gx_pattern_cache_get_entry(context->ctx->pgs, pinst->id, &pctile) == 0
&& gx_pattern_tile_is_clist(pctile)) {
- gx_pattern_cache_winnow(gstate_pattern_cache(context->ctx->pgs), pdfi_pattern_purge_proc, (void *)(pctile->id));
+ gx_pattern_cache_winnow(gstate_pattern_cache(context->ctx->pgs), pdfi_pattern_purge_proc, (void *)(&pctile->id));
}
if (context != NULL) {
@@ -240,10 +240,6 @@ pdfi_pattern_paint_high_level(const gs_client_color *pcc, gs_gstate *pgs_ignore)
gx_device_color *pdc = gs_currentdevicecolor_inline(pgs);
pattern_accum_param_s param;
- code = gx_pattern_cache_add_dummy_entry(pgs, pinst, pgs->device->color_info.depth);
- if (code < 0)
- return code;
-
code = pdfi_gsave(ctx);
if (code < 0)
return code;
@@ -293,6 +289,17 @@ pdfi_pattern_paint_high_level(const gs_client_color *pcc, gs_gstate *pgs_ignore)
code = pdfi_grestore(ctx);
if (code < 0)
return code;
+
+ /* We create the dummy cache entry last, after we've executed the Pattern PaintProc. This is because
+ * if we ran another Pattern during the PaintProc, and that pattern has an id which happens to
+ * collide with the id of this pattern, it would overwrite the entry in the pattern cache.
+ * Deferring the entry in the cache until we are complete prevents this happening.
+ * For an example see Bug693422.pdf.
+ */
+ code = gx_pattern_cache_add_dummy_entry(pgs, pinst, pgs->device->color_info.depth);
+ if (code < 0)
+ return code;
+
return gs_error_handled;
errorExit:
@@ -439,6 +446,14 @@ pdfi_setpattern_type1(pdf_context *ctx, pdf_dict *stream_dict, pdf_dict *page_di
if (code < 0)
goto exit;
+ /* The pattern instance holds the pattern step as floats, make sure they
+ * will fit.
+ */
+ if (XStep < -MAX_FLOAT || XStep > MAX_FLOAT || YStep < -MAX_FLOAT || YStep > MAX_FLOAT) {
+ code = gs_note_error(gs_error_rangecheck);
+ goto exit;
+ }
+
/* The spec says Resources are required, but in fact this doesn't seem to be true.
* (tests_private/pdf/sumatra/infinite_pattern_recursion.pdf)
*/
@@ -468,11 +483,15 @@ pdfi_setpattern_type1(pdf_context *ctx, pdf_dict *stream_dict, pdf_dict *page_di
goto exit;
}
- /* See if pattern uses transparency */
- if (ctx->page.has_transparency) {
- code = pdfi_check_Pattern_transparency(ctx, pdict, page_dict, &transparency);
- if (code < 0)
- goto exit;
+ /* See if pattern uses transparency, or if we are in an overprint
+ simulation situation */
+ if (ctx->page.simulate_op)
+ transparency = true;
+ else
+ if (ctx->page.has_transparency) {
+ code = pdfi_check_Pattern_transparency(ctx, pdict, page_dict, &transparency);
+ if (code < 0)
+ goto exit;
}
/* TODO: Resources? Maybe I should check that they are all valid before proceeding, or something? */
@@ -512,7 +531,7 @@ pdfi_setpattern_type1(pdf_context *ctx, pdf_dict *stream_dict, pdf_dict *page_di
if (code < 0)
goto exit;
exit:
- pdfi_countdown(context);
+ gs_free_object(ctx->memory, context, "pdfi_setpattern_type1(context)");
pdfi_countdown(Resources);
pdfi_countdown(Matrix);
pdfi_countdown(BBox);
diff --git a/pdf/pdf_repair.c b/pdf/pdf_repair.c
index dafcd4c0..2c2badf2 100644
--- a/pdf/pdf_repair.c
+++ b/pdf/pdf_repair.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 2020-2021 Artifex Software, Inc.
+/* Copyright (C) 2020-2022 Artifex Software, Inc.
All Rights Reserved.
This software is provided AS-IS with no warranty, either express or
@@ -52,7 +52,7 @@ static int pdfi_repair_add_object(pdf_context *ctx, uint64_t obj, uint64_t gen,
ctx->xref_table->type = PDF_XREF_TABLE;
ctx->xref_table->xref_size = obj + 1;
#if REFCNT_DEBUG
- ctx->xref_table->UID = ctx->UID++;
+ ctx->xref_table->UID = ctx->ref_UID++;
dmprintf1(ctx->memory, "Allocated xref table with UID %"PRIi64"\n", ctx->xref_table->UID);
#endif
pdfi_countup(ctx->xref_table);
@@ -109,24 +109,24 @@ int pdfi_repair_file(pdf_context *ctx)
*/
pdfi_seek(ctx, ctx->main_stream, 0, SEEK_SET);
{
- char Buffer[10], test[] = "%PDF";
+ static const char test[] = "%PDF";
int index = 0;
do {
- code = pdfi_read_bytes(ctx, (byte *)&Buffer[index], 1, 1, ctx->main_stream);
- if (code < 0)
+ int c = pdfi_read_byte(ctx, ctx->main_stream);
+ if (c < 0)
goto exit;
- if (Buffer[index] == test[index])
+ if (c == test[index])
index++;
else
index = 0;
- } while (index < 4 && ctx->main_stream->eof == false);
- if (memcmp(Buffer, test, 4) != 0) {
+ } while (index < 4);
+ if (index != 4) {
code = gs_note_error(gs_error_undefined);
goto exit;
}
- pdfi_unread(ctx, ctx->main_stream, (byte *)Buffer, 4);
+ pdfi_unread(ctx, ctx->main_stream, (byte *)test, 4);
pdfi_skip_comment(ctx, ctx->main_stream);
}
if (ctx->main_stream->eof == true) {
@@ -188,7 +188,7 @@ int pdfi_repair_file(pdf_context *ctx)
/* move all the saved offsets up by one */
saved_offset[0] = saved_offset[1];
saved_offset[1] = saved_offset[2];
- saved_offset[2] = pdfi_unread_tell(ctx);;
+ saved_offset[2] = pdfi_unread_tell(ctx);
code = pdfi_read_token(ctx, ctx->main_stream, 0, 0);
if (code < 0) {
@@ -228,21 +228,22 @@ int pdfi_repair_file(pdf_context *ctx)
break;
} else {
if (k->key == TOKEN_STREAM) {
- char Buffer[10], test[] = "endstream";
+ static const char test[] = "endstream";
int index = 0;
do {
- code = pdfi_read_bytes(ctx, (byte *)&Buffer[index], 1, 1, ctx->main_stream);
- if (code < 0) {
- if (code != gs_error_VMerror && code != gs_error_ioerror)
- continue;
+ int c = pdfi_read_byte(ctx, ctx->main_stream);
+ if (c == EOFC)
+ break;
+ if (c < 0)
goto exit;
- }
- if (Buffer[index] == test[index])
+ if (c == test[index])
index++;
+ else if (c == test[0]) /* Pesky 'e' appears twice */
+ index = 1;
else
index = 0;
- } while (index < 9 && ctx->main_stream->eof == false);
+ } while (index < 9);
do {
code = pdfi_read_token(ctx, ctx->main_stream, 0, 0);
if (code < 0) {
@@ -250,16 +251,18 @@ int pdfi_repair_file(pdf_context *ctx)
continue;
goto exit;
}
- if (ctx->stack_top[-1]->type == PDF_KEYWORD){
- pdf_keyword *k = (pdf_keyword *)ctx->stack_top[-1];
- if (k->key == TOKEN_ENDOBJ) {
- code = pdfi_repair_add_object(ctx, object_num, generation_num, offset);
- if (code < 0) {
- if (code != gs_error_VMerror && code != gs_error_ioerror)
- break;
- goto exit;
+ if (code > 0) {
+ if (ctx->stack_top[-1]->type == PDF_KEYWORD){
+ pdf_keyword *k = (pdf_keyword *)ctx->stack_top[-1];
+ if (k->key == TOKEN_ENDOBJ) {
+ code = pdfi_repair_add_object(ctx, object_num, generation_num, offset);
+ if (code < 0) {
+ if (code != gs_error_VMerror && code != gs_error_ioerror)
+ break;
+ goto exit;
+ }
+ break;
}
- break;
}
}
}while(ctx->main_stream->eof == false);
@@ -287,7 +290,7 @@ int pdfi_repair_file(pdf_context *ctx)
} else {
if (k->key == TOKEN_TRAILER) {
code = pdfi_read_bare_object(ctx, ctx->main_stream, 0, 0, 0);
- if (code == 0 && ctx->stack_top[-1]->type == PDF_DICT) {
+ if (code == 0 && pdfi_count_stack(ctx) > 0 && ctx->stack_top[-1]->type == PDF_DICT) {
if (ctx->Trailer) {
pdf_dict *d = (pdf_dict *)ctx->stack_top[-1];
bool known = false;
@@ -420,13 +423,15 @@ int pdfi_repair_file(pdf_context *ctx)
if (code == 0) {
for (j=0;j < N; j++) {
code = pdfi_read_token(ctx, compressed_stream, 0, 0);
- if (code == 0) {
+ if (code == 0)
+ break;
+ if (code > 0) {
o = ctx->stack_top[-1];
if (((pdf_obj *)o)->type == PDF_INT) {
obj_num = ((pdf_num *)o)->value.i;
pdfi_pop(ctx, 1);
code = pdfi_read_token(ctx, compressed_stream, 0, 0);
- if (code == 0) {
+ if (code > 0) {
o = ctx->stack_top[-1];
if (((pdf_obj *)o)->type == PDF_INT) {
offset = ((pdf_num *)o)->value.i;
@@ -436,11 +441,16 @@ int pdfi_repair_file(pdf_context *ctx)
code = gs_note_error(gs_error_rangecheck);
goto exit;
}
- ctx->xref_table->xref[obj_num].compressed = true;
- ctx->xref_table->xref[obj_num].free = false;
- ctx->xref_table->xref[obj_num].object_num = obj_num;
- ctx->xref_table->xref[obj_num].u.compressed.compressed_stream_num = i;
- ctx->xref_table->xref[obj_num].u.compressed.object_index = j;
+ if (obj_num >= ctx->xref_table->xref_size)
+ code = pdfi_repair_add_object(ctx, obj_num, 0, 0);
+
+ if (code >= 0) {
+ ctx->xref_table->xref[obj_num].compressed = true;
+ ctx->xref_table->xref[obj_num].free = false;
+ ctx->xref_table->xref[obj_num].object_num = obj_num;
+ ctx->xref_table->xref[obj_num].u.compressed.compressed_stream_num = i;
+ ctx->xref_table->xref[obj_num].u.compressed.object_index = j;
+ }
}
}
}
diff --git a/pdf/pdf_sec.c b/pdf/pdf_sec.c
index ff608052..fa7131f8 100644
--- a/pdf/pdf_sec.c
+++ b/pdf/pdf_sec.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 2020-2021 Artifex Software, Inc.
+/* Copyright (C) 2020-2022 Artifex Software, Inc.
All Rights Reserved.
This software is provided AS-IS with no warranty, either express or
@@ -57,6 +57,7 @@ static int pdf_compute_encryption_key_preR5(pdf_context *ctx, char *Password, in
gs_md5_state_t md5;
pdf_array *a = NULL;
pdf_string *s = NULL;
+ pdf_dict *d = NULL;
*EKey = NULL;
/* Algorithm 3.2 */
@@ -86,7 +87,11 @@ static int pdf_compute_encryption_key_preR5(pdf_context *ctx, char *Password, in
gs_md5_append(&md5, (gs_md5_byte_t *)P, 4);
/* 5. Pass the first element of the file's file identifier array */
- code = pdfi_dict_get_type(ctx, ctx->Trailer, "ID", PDF_ARRAY, (pdf_obj **)&a);
+ /* See comment in pdfi_read_Root() for details of why we indirect through 'd' */
+ d = ctx->Trailer;
+ pdfi_countup(d);
+ code = pdfi_dict_get_type(ctx, d, "ID", PDF_ARRAY, (pdf_obj **)&a);
+ pdfi_countdown(d);
if (code < 0) {
if (code == gs_error_undefined) {
emprintf(ctx->memory, "\n **** Error: ID key in the trailer is required for encrypted files.\n");
@@ -430,6 +435,7 @@ static int check_user_password_preR5(pdf_context *ctx, char *Password, int Len,
gs_md5_state_t md5;
pdf_string *s = NULL;
pdf_array *a = NULL;
+ pdf_dict *d = NULL;
/* Algorithm 3.6, step 1
* perform all but the last step of Algorithm 3,4 (Revision 2)
@@ -482,7 +488,11 @@ static int check_user_password_preR5(pdf_context *ctx, char *Password, int Len,
* Pass the 32 byte padding string from step 1 of Algorithm 3.2 to an MD5 hash */
gs_md5_init(&md5);
gs_md5_append(&md5, (gs_md5_byte_t *)PadString, 32);
- code = pdfi_dict_get_type(ctx, ctx->Trailer, "ID", PDF_ARRAY, (pdf_obj **)&a);
+ /* See comment in pdfi_read_Root() for details of why we indirect through 'd' */
+ d = ctx->Trailer;
+ pdfi_countup(d);
+ code = pdfi_dict_get_type(ctx, d, "ID", PDF_ARRAY, (pdf_obj **)&a);
+ pdfi_countdown(d);
if (code < 0) {
if (code == gs_error_undefined) {
emprintf(ctx->memory, "\n **** Error: ID key in the trailer is required for encrypted files.\n");
@@ -918,6 +928,9 @@ int pdfi_decrypt_string(pdf_context *ctx, pdf_string *string)
pdf_string *EKey = NULL;
char *Buffer = NULL;
+ if (ctx->encryption.StrF == CRYPT_IDENTITY)
+ return 0;
+
if (!is_compressed_object(ctx, string->indirect_num, string->indirect_gen)) {
Buffer = (char *)gs_alloc_bytes(ctx->memory, string->length, "pdfi_decrypt_string");
if (Buffer == NULL)
@@ -978,7 +991,7 @@ static int pdfi_read_Encrypt_dict(pdf_context *ctx, int *KeyLen)
{
int code = 0;
pdf_dict *CF_dict = NULL, *StdCF_dict = NULL;
- pdf_dict *d = NULL;
+ pdf_dict *d = NULL, *d1 = NULL;
pdf_obj *o = NULL;
pdf_string *s = NULL;
int64_t i64;
@@ -987,7 +1000,12 @@ static int pdfi_read_Encrypt_dict(pdf_context *ctx, int *KeyLen)
if (ctx->args.pdfdebug)
dmprintf(ctx->memory, "%% Checking for Encrypt dictionary\n");
- code = pdfi_dict_get(ctx, ctx->Trailer, "Encrypt", (pdf_obj **)&d);
+ /* See comment in pdfi_read_Root() for details of why we indirect through 'd' */
+ d1 = ctx->Trailer;
+ pdfi_countup(d1);
+ code = pdfi_dict_get(ctx, d1, "Encrypt", (pdf_obj **)&d);
+ pdfi_countdown(d1);
+ d1 = NULL;
/* Undefined is acceptable here, it just means the PDF file is not ostensibly encrypted */
/* NB pdfi_process_pdf_file() always checks for the Encrypt dictionary before we
@@ -1122,6 +1140,10 @@ static int pdfi_read_Encrypt_dict(pdf_context *ctx, int *KeyLen)
code = pdfi_dict_knownget_type(ctx, d, "StrF", PDF_NAME, &o);
if (code < 0)
goto done;
+ if (code == 0) {
+ code = gs_note_error(gs_error_undefined);
+ goto done;
+ }
if (!pdfi_name_is((pdf_name *)o, "StdCF")) {
if (pdfi_name_is((pdf_name *)o, "Identity")) {
ctx->encryption.StrF = CRYPT_IDENTITY;
@@ -1236,6 +1258,8 @@ static int check_password_R5(pdf_context *ctx, char *Password, int PasswordLen,
int code;
if (PasswordLen != 0) {
+ pdf_string *P = NULL, *P_UTF8 = NULL;
+
code = check_user_password_R5(ctx, Password, PasswordLen, KeyLen);
if (code >= 0)
return 0;
@@ -1247,33 +1271,28 @@ static int check_password_R5(pdf_context *ctx, char *Password, int PasswordLen,
/* If the supplied Password fails as the user *and* owner password, maybe its in
* the locale, not UTF-8, try converting to UTF-8
*/
+ code = pdfi_object_alloc(ctx, PDF_STRING, strlen(ctx->encryption.Password), (pdf_obj **)&P);
+ if (code < 0)
+ return code;
+ memcpy(P->data, Password, PasswordLen);
+ pdfi_countup(P);
+ code = locale_to_utf8(ctx, P, &P_UTF8);
if (code < 0) {
- pdf_string *P = NULL, *P_UTF8 = NULL;
-
- code = pdfi_object_alloc(ctx, PDF_STRING, strlen(ctx->encryption.Password), (pdf_obj **)&P);
- if (code < 0) {
- return code;
- }
- memcpy(P->data, Password, PasswordLen);
- pdfi_countup(P);
- code = locale_to_utf8(ctx, P, &P_UTF8);
- if (code < 0) {
- pdfi_countdown(P);
- return code;
- }
- code = check_user_password_R5(ctx, (char *)P_UTF8->data, P_UTF8->length, KeyLen);
- if (code >= 0) {
- pdfi_countdown(P);
- pdfi_countdown(P_UTF8);
- return code;
- }
-
- code = check_owner_password_R5(ctx, (char *)P_UTF8->data, P_UTF8->length, KeyLen);
+ pdfi_countdown(P);
+ return code;
+ }
+ code = check_user_password_R5(ctx, (char *)P_UTF8->data, P_UTF8->length, KeyLen);
+ if (code >= 0) {
pdfi_countdown(P);
pdfi_countdown(P_UTF8);
- if (code >= 0)
- return code;
+ return code;
}
+
+ code = check_owner_password_R5(ctx, (char *)P_UTF8->data, P_UTF8->length, KeyLen);
+ pdfi_countdown(P);
+ pdfi_countdown(P_UTF8);
+ if (code >= 0)
+ return code;
}
code = check_user_password_R5(ctx, (char *)"", 0, KeyLen);
if (code >= 0)
@@ -1287,6 +1306,8 @@ static int check_password_R6(pdf_context *ctx, char *Password, int PasswordLen,
int code;
if (PasswordLen != 0) {
+ pdf_string *P = NULL, *P_UTF8 = NULL;
+
code = check_user_password_R6(ctx, Password, PasswordLen, KeyLen);
if (code >= 0)
return 0;
@@ -1297,32 +1318,28 @@ static int check_password_R6(pdf_context *ctx, char *Password, int PasswordLen,
/* If the supplied Password fails as the user *and* owner password, maybe its in
* the locale, not UTF-8, try converting to UTF-8
*/
+ code = pdfi_object_alloc(ctx, PDF_STRING, strlen(ctx->encryption.Password), (pdf_obj **)&P);
+ if (code < 0)
+ return code;
+ memcpy(P->data, Password, PasswordLen);
+ pdfi_countup(P);
+ code = locale_to_utf8(ctx, P, &P_UTF8);
if (code < 0) {
- pdf_string *P = NULL, *P_UTF8 = NULL;
-
- code = pdfi_object_alloc(ctx, PDF_STRING, strlen(ctx->encryption.Password), (pdf_obj **)&P);
- if (code < 0)
- return code;
- memcpy(P->data, Password, PasswordLen);
- pdfi_countup(P);
- code = locale_to_utf8(ctx, P, &P_UTF8);
- if (code < 0) {
- pdfi_countdown(P);
- return code;
- }
- code = check_user_password_R5(ctx, (char *)P_UTF8->data, P_UTF8->length, KeyLen);
- if (code >= 0) {
- pdfi_countdown(P);
- pdfi_countdown(P_UTF8);
- return code;
- }
-
- code = check_owner_password_R5(ctx, (char *)P_UTF8->data, P_UTF8->length, KeyLen);
+ pdfi_countdown(P);
+ return code;
+ }
+ code = check_user_password_R5(ctx, (char *)P_UTF8->data, P_UTF8->length, KeyLen);
+ if (code >= 0) {
pdfi_countdown(P);
pdfi_countdown(P_UTF8);
- if (code >= 0)
- return code;
+ return code;
}
+
+ code = check_owner_password_R5(ctx, (char *)P_UTF8->data, P_UTF8->length, KeyLen);
+ pdfi_countdown(P);
+ pdfi_countdown(P_UTF8);
+ if (code >= 0)
+ return code;
}
code = check_user_password_R6(ctx, (char *)"", 0, KeyLen);
if (code >= 0)
@@ -1352,6 +1369,10 @@ int pdfi_initialise_Decryption(pdf_context *ctx)
case 2:
/* Set up the defaults if not already set */
/* Revision 2 is always 40-bit RC4 */
+ if (KeyLen != 0 && (KeyLen < 40 || KeyLen > 128 || KeyLen % 8 != 0)) {
+ pdfi_set_error(ctx, 0, NULL, E_PDF_INVALID_DECRYPT_LEN, "pdfi_initialise_Decryption", NULL);
+ return_error(gs_error_rangecheck);
+ }
if (KeyLen == 0)
KeyLen = 40;
if (ctx->encryption.StmF == CRYPT_NONE)
@@ -1363,8 +1384,9 @@ int pdfi_initialise_Decryption(pdf_context *ctx)
case 3:
/* Set up the defaults if not already set */
/* Revision 3 is always 128-bit RC4 */
- if (KeyLen == 0)
- KeyLen = 128;
+ if (KeyLen != 0 && KeyLen != 128)
+ pdfi_set_warning(ctx, 0, NULL, W_PDF_INVALID_DECRYPT_LEN, "pdfi_initialise_Decryption", NULL);
+ KeyLen = 128;
if (ctx->encryption.StmF == CRYPT_NONE)
ctx->encryption.StmF = CRYPT_V2;
if (ctx->encryption.StrF == CRYPT_NONE)
@@ -1372,16 +1394,20 @@ int pdfi_initialise_Decryption(pdf_context *ctx)
code = check_password_preR5(ctx, ctx->encryption.Password, ctx->encryption.PasswordLen, KeyLen, 3);
break;
case 4:
- /* Revision 4 is either AES or RC4, but its always 128-bits */
- if (KeyLen == 0)
+ if (ctx->encryption.StrF != CRYPT_IDENTITY || ctx->encryption.StmF != CRYPT_IDENTITY) {
+ /* Revision 4 is either AES or RC4, but its always 128-bits */
+ if (KeyLen != 0)
+ pdfi_set_warning(ctx, 0, NULL, W_PDF_INVALID_DECRYPT_LEN, "pdfi_initialise_Decryption", NULL);
KeyLen = 128;
- /* We can't set the encryption filter, so we have to hope the PDF file did */
- code = check_password_preR5(ctx, ctx->encryption.Password, ctx->encryption.PasswordLen, KeyLen, 4);
+ /* We can't set the encryption filter, so we have to hope the PDF file did */
+ code = check_password_preR5(ctx, ctx->encryption.Password, ctx->encryption.PasswordLen, KeyLen, 4);
+ }
break;
case 5:
/* Set up the defaults if not already set */
- if (KeyLen == 0)
- KeyLen = 256;
+ if (KeyLen != 0)
+ pdfi_set_warning(ctx, 0, NULL, W_PDF_INVALID_DECRYPT_LEN, "pdfi_initialise_Decryption", NULL);
+ KeyLen = 256;
if (ctx->encryption.StmF == CRYPT_NONE)
ctx->encryption.StmF = CRYPT_AESV2;
if (ctx->encryption.StrF == CRYPT_NONE)
@@ -1391,8 +1417,9 @@ int pdfi_initialise_Decryption(pdf_context *ctx)
case 6:
/* Set up the defaults if not already set */
/* Revision 6 is always 256-bit AES */
- if (KeyLen == 0)
- KeyLen = 256;
+ if (KeyLen != 0)
+ pdfi_set_warning(ctx, 0, NULL, W_PDF_INVALID_DECRYPT_LEN, "pdfi_initialise_Decryption", NULL);
+ KeyLen = 256;
if (ctx->encryption.StmF == CRYPT_NONE)
ctx->encryption.StmF = CRYPT_AESV3;
if (ctx->encryption.StrF == CRYPT_NONE)
diff --git a/pdf/pdf_shading.c b/pdf/pdf_shading.c
index 01a2d0e1..c4e93e88 100644
--- a/pdf/pdf_shading.c
+++ b/pdf/pdf_shading.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 2018-2021 Artifex Software, Inc.
+/* Copyright (C) 2018-2022 Artifex Software, Inc.
All Rights Reserved.
This software is provided AS-IS with no warranty, either express or
@@ -17,6 +17,7 @@
#include "pdf_int.h"
#include "pdf_stack.h"
+#include "pdf_font_types.h"
#include "pdf_gstate.h"
#include "pdf_shading.h"
#include "pdf_dict.h"
@@ -35,6 +36,7 @@
#include "gsptype2.h"
#include "gsfunc0.h" /* For gs_function */
#include "gscolor3.h" /* For gs_shfill() */
+#include "gsstate.h" /* For gs_setoverprintmode */
static int pdfi_build_shading_function(pdf_context *ctx, gs_function_t **ppfn, const float *shading_domain, int num_inputs, pdf_dict *shading_dict, pdf_dict *page_dict)
{
@@ -705,8 +707,7 @@ pdfi_shading_build(pdf_context *ctx, pdf_dict *stream_dict, pdf_dict *page_dict,
goto shading_error;
pdfi_countdown(cspace);
- if (code >= 0)
- *ppsh = psh;
+ *ppsh = psh;
return code;
shading_error:
@@ -810,7 +811,7 @@ pdfi_shading_setup_trans(pdf_context *ctx, pdfi_trans_state_t *state, pdf_obj *S
/* If we didn't get a BBox for the shading, then we need to create one, in order to
* pass it to the transparency setup, which (potentially, at least, uses it to set
* up a transparency group.
- * In the basence of anything better, we take the currnet clip, turn that into a path
+ * In the absence of anything better, we take the current clip, turn that into a path
* and then get the bounding box of that path. Obviously we don't want to disturb the
* current path in the graphics state, so we do a gsave/grestore round it.
*/
@@ -852,6 +853,7 @@ int pdfi_shading(pdf_context *ctx, pdf_dict *stream_dict, pdf_dict *page_dict)
gs_shading_t *psh = NULL;
gs_offset_t savedoffset;
pdfi_trans_state_t trans_state;
+ int trans_required;
if (pdfi_count_stack(ctx) < 1)
return_error(gs_error_stackunderflow);
@@ -889,11 +891,18 @@ int pdfi_shading(pdf_context *ctx, pdf_dict *stream_dict, pdf_dict *page_dict)
if (code < 0)
goto exit2;
+ /* Shadings fills can't use overprint mode */
+ code = gs_setoverprintmode(ctx->pgs, 0);
+ if (code < 0)
+ goto exit2;
+
code = pdfi_shading_build(ctx, stream_dict, page_dict, Shading, &psh);
if (code < 0)
goto exit2;
- if (ctx->page.has_transparency) {
+ trans_required = pdfi_trans_required(ctx);
+
+ if (trans_required) {
code = pdfi_shading_setup_trans(ctx, &trans_state, Shading);
if (code < 0)
goto exit2;
@@ -905,7 +914,7 @@ int pdfi_shading(pdf_context *ctx, pdf_dict *stream_dict, pdf_dict *page_dict)
code = 0;
}
- if (ctx->page.has_transparency) {
+ if (trans_required) {
code1 = pdfi_trans_teardown(ctx, &trans_state);
if (code == 0)
code = code1;
diff --git a/pdf/pdf_text.c b/pdf/pdf_text.c
index 4bc6d907..e6345d0f 100644
--- a/pdf/pdf_text.c
+++ b/pdf/pdf_text.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 2018-2021 Artifex Software, Inc.
+/* Copyright (C) 2018-2022 Artifex Software, Inc.
All Rights Reserved.
This software is provided AS-IS with no warranty, either express or
@@ -21,9 +21,9 @@
#include "pdf_image.h"
#include "pdf_colour.h"
#include "pdf_stack.h"
-#include "pdf_gstate.h"
#include "pdf_font.h"
#include "pdf_font_types.h"
+#include "pdf_gstate.h"
#include "pdf_trans.h"
#include "pdf_optcontent.h"
@@ -486,6 +486,11 @@ static int pdfi_show_set_params(pdf_context *ctx, pdf_string *s, gs_text_params_
}
text->size = s->length;
}
+ else {
+ code = gs_note_error(gs_error_invalidfont);
+ goto text_params_error;
+ }
+
return 0;
text_params_error:
@@ -1081,6 +1086,13 @@ int pdfi_Tj(pdf_context *ctx)
if (s->type != PDF_STRING)
return_error(gs_error_typecheck);
+ /* We can't rely on the stack reference because an error during
+ the text operation (i.e. retrieving objects for glyph metrics
+ may cause the stack to be cleared.
+ */
+ pdfi_countup(s);
+ pdfi_pop(ctx, 1);
+
/* Save the CTM for later restoration */
saved = ctm_only(ctx->pgs);
gs_currentpoint(ctx->pgs, &initial_point);
@@ -1155,7 +1167,7 @@ Tj_error:
ctx->pgs->line_params.half_width = linewidth;
exit:
- pdfi_pop(ctx, 1);
+ pdfi_countdown(s);
return code;
}
@@ -1190,6 +1202,8 @@ int pdfi_TJ(pdf_context *ctx)
pdfi_pop(ctx, 1);
return gs_note_error(gs_error_typecheck);
}
+ pdfi_countup(a);
+ pdfi_pop(ctx, 1);
/* Save the CTM for later restoration */
saved = ctm_only(ctx->pgs);
@@ -1301,7 +1315,7 @@ TJ_error:
ctx->pgs->line_params.half_width = linewidth;
exit:
- pdfi_pop(ctx, 1);
+ pdfi_countdown(a);
return code;
}
@@ -1449,9 +1463,13 @@ int pdfi_Tr(pdf_context *ctx)
* accumulated text to a clip, then set the text rendering mode
* to the non-clip mode, and perform an implicit BT.
*/
- pdfi_ET(ctx);
+ code = pdfi_ET(ctx);
+ if (code < 0)
+ return code;
gs_settextrenderingmode(ctx->pgs, mode);
- pdfi_BT(ctx);
+ code = pdfi_BT(ctx);
+ if (code < 0)
+ return code;
}
else
gs_settextrenderingmode(ctx->pgs, mode);
diff --git a/pdf/pdf_trans.c b/pdf/pdf_trans.c
index 93ab8a6c..df0194d7 100644
--- a/pdf/pdf_trans.c
+++ b/pdf/pdf_trans.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 2019-2021 Artifex Software, Inc.
+/* Copyright (C) 2019-2022 Artifex Software, Inc.
All Rights Reserved.
This software is provided AS-IS with no warranty, either express or
@@ -20,6 +20,7 @@
#include "pdf_trans.h"
#include "pdf_dict.h"
#include "pdf_colour.h"
+#include "pdf_font_types.h"
#include "pdf_gstate.h"
#include "pdf_array.h"
#include "pdf_image.h"
@@ -32,6 +33,7 @@
#include "gscoord.h" /* For gs_setmatrix()*/
#include "gsstate.h" /* For gs_currentstrokeoverprint() and others */
#include "gspath.h" /* For gs_clippath() */
+#include "gsicc_cache.h" /* For gsicc_profiles_equal() */
/* Implement the TransferFunction using a Function. */
static int
@@ -156,13 +158,15 @@ static int pdfi_trans_set_mask(pdf_context *ctx, pdfi_int_gstate *igs, int color
code = pdfi_dict_knownget_type(ctx, SMask, "S", PDF_NAME, (pdf_obj **)&S);
if (code <= 0) {
dmprintf(ctx->memory, "WARNING: Missing 'S' in SMask (defaulting to Luminosity)\n");
+ subtype = TRANSPARENCY_MASK_Luminosity;
}
- if (pdfi_name_is(S, "Luminosity")) {
+ else if (pdfi_name_is(S, "Luminosity")) {
subtype = TRANSPARENCY_MASK_Luminosity;
} else if (pdfi_name_is(S, "Alpha")) {
subtype = TRANSPARENCY_MASK_Alpha;
} else {
dmprintf(ctx->memory, "WARNING: Unknown subtype 'S' in SMask (defaulting to Luminosity)\n");
+ subtype = TRANSPARENCY_MASK_Luminosity;
}
/* TR is transfer function (Optional) */
@@ -172,6 +176,11 @@ static int pdfi_trans_set_mask(pdf_context *ctx, pdfi_int_gstate *igs, int color
code = pdfi_build_function(ctx, &gsfunc, NULL, 1, TR, NULL);
if (code < 0)
goto exit;
+ if (gsfunc->params.m != 1 || gsfunc->params.n != 1) {
+ pdfi_free_function(ctx, gsfunc);
+ gsfunc = NULL;
+ dmprintf(ctx->memory, "WARNING: Ignoring invalid TR (number of inpuits or outputs not 1) in SMask\n");
+ }
} else if (TR->type == PDF_NAME) {
if (!pdfi_name_is((pdf_name *)TR, "Identity")) {
dmprintf(ctx->memory, "WARNING: Unknown TR in SMask\n");
@@ -401,6 +410,32 @@ static int pdfi_transparency_group_common(pdf_context *ctx, pdf_dict *page_dict,
return pdfi_gs_begin_transparency_group(ctx->pgs, &params, (const gs_rect *)bbox, group_type);
}
+static bool pdfi_outputprofile_matches_oiprofile(pdf_context *ctx)
+{
+ cmm_dev_profile_t *profile_struct;
+ int code;
+ int k;
+
+ code = dev_proc(ctx->pgs->device, get_profile)(ctx->pgs->device, &profile_struct);
+ if (code < 0)
+ return true; /* Assume they match by default and in error condition */
+
+ if (profile_struct->oi_profile == NULL)
+ return true; /* no OI profile so no special case to worry about */
+ else {
+ /* Check the device profile(s). If any of them do not match, then
+ we assume there is not a match and it may be necessary to
+ use the pdf14 device to prerender to the OI profile */
+ for (k = 0; k < NUM_DEVICE_PROFILES; k++) {
+ if (profile_struct->device_profile[k] != NULL) {
+ if (!gsicc_profiles_equal(profile_struct->oi_profile, profile_struct->device_profile[k]))
+ return false;
+ }
+ }
+ return true;
+ }
+}
+
/* Begin a simple group
* pathbbox -- bbox to use, but can be NULL
*/
@@ -591,14 +626,19 @@ void pdfi_trans_set_needs_OP(pdf_context *ctx)
ctx->page.needs_OP = false;
ctx->page.simulate_op = false;
- switch(ctx->args.overprint_control) {
- case PDF_OVERPRINT_DISABLE:
+ switch(ctx->pgs->device->icc_struct->overprint_control) {
+ case gs_overprint_control_disable:
/* Use defaults */
break;
- case PDF_OVERPRINT_SIMULATE:
+ case gs_overprint_control_simulate:
if (!device_transparency && ctx->page.has_OP) {
if (is_cmyk) {
- if (ctx->page.num_spots > 0) {
+ /* If the page has spots and the device is not spot capable OR
+ if the output intent profile is to be used, but we have
+ a device output profile that is different, then we will be
+ doing simulation with the pdf14 device buffer */
+ if ((ctx->page.num_spots > 0 && !ctx->device_state.spot_capable) ||
+ !pdfi_outputprofile_matches_oiprofile(ctx)) {
ctx->page.needs_OP = true;
ctx->page.simulate_op = true;
}
@@ -608,7 +648,7 @@ void pdfi_trans_set_needs_OP(pdf_context *ctx)
}
}
break;
- case PDF_OVERPRINT_ENABLE:
+ case gs_overprint_control_enable:
default:
if (!is_cmyk || device_transparency)
ctx->page.needs_OP = false;
@@ -624,7 +664,7 @@ void pdfi_trans_set_needs_OP(pdf_context *ctx)
}
/* Figures out if current colorspace is okay for Overprint (see pdf_ops.ps/okOPcs and setupOPtrans) */
-static bool pdfi_trans_okOPcs(pdf_context *ctx)
+bool pdfi_trans_okOPcs(pdf_context *ctx)
{
gs_color_space_index csi;
@@ -707,11 +747,22 @@ int pdfi_trans_setup(pdf_context *ctx, pdfi_trans_state_t *state, gs_rect *bbox,
/* TODO: error handling... */
if (need_group) {
+ bool isolated = false;
+ mode = gs_currentblendmode(ctx->pgs);
+
stroked_bbox = (caller == TRANSPARENCY_Caller_Stroke || caller == TRANSPARENCY_Caller_FillStroke);
+
/* When changing to compatible overprint bm, the group pushed must be non-isolated. The exception
- is if we have a softmask. See /setupOPtrans in pdf_ops.ps */
- code = pdfi_trans_begin_simple_group(ctx, bbox, stroked_bbox, igs->SMask != NULL, false);
- state->GroupPushed = true;
+ is if we have a softmask AND the blend mode is not normal and not compatible.
+ See /setupOPtrans in pdf_ops.ps */
+ if (igs->SMask != NULL && mode != BLEND_MODE_Normal && mode != BLEND_MODE_Compatible)
+ isolated = true;
+ code = pdfi_trans_begin_simple_group(ctx, bbox, stroked_bbox, isolated, false);
+
+ /* Group was not pushed if error */
+ if (code >= 0)
+ state->GroupPushed = true;
+
state->saveStrokeAlpha = gs_getstrokeconstantalpha(ctx->pgs);
state->saveFillAlpha = gs_getfillconstantalpha(ctx->pgs);
code = gs_setfillconstantalpha(ctx->pgs, 1.0);
@@ -725,12 +776,33 @@ int pdfi_trans_setup(pdf_context *ctx, pdfi_trans_state_t *state, gs_rect *bbox,
return code;
}
+int pdfi_trans_required(pdf_context *ctx)
+{
+ gs_blend_mode_t mode;
+
+ if (!ctx->page.has_transparency)
+ return 0;
+
+ mode = gs_currentblendmode(ctx->pgs);
+ if ((mode == BLEND_MODE_Normal || mode == BLEND_MODE_Compatible) &&
+ ctx->pgs->fillconstantalpha == 1 &&
+ ctx->pgs->strokeconstantalpha == 1 &&
+ ((pdfi_int_gstate *)ctx->pgs->client_data)->SMask == NULL)
+ return 0;
+
+ return 1;
+}
+
int pdfi_trans_setup_text(pdf_context *ctx, pdfi_trans_state_t *state, bool is_show)
{
- int Trmode = gs_currenttextrenderingmode(ctx->pgs);
+ int Trmode;
int code, code1;
gs_rect bbox;
+ if (!pdfi_trans_required(ctx))
+ return 0;
+
+ Trmode = gs_currenttextrenderingmode(ctx->pgs);
code = gs_gsave(ctx->pgs);
if (code < 0) goto exit;
@@ -766,11 +838,10 @@ int pdfi_trans_setup_text(pdf_context *ctx, pdfi_trans_state_t *state, bool is_s
int pdfi_trans_teardown_text(pdf_context *ctx, pdfi_trans_state_t *state)
{
- int code = 0;
+ if (!pdfi_trans_required(ctx))
+ return 0;
- code = pdfi_trans_teardown(ctx, state);
-
- return code;
+ return pdfi_trans_teardown(ctx, state);
}
int pdfi_trans_teardown(pdf_context *ctx, pdfi_trans_state_t *state)
diff --git a/pdf/pdf_trans.h b/pdf/pdf_trans.h
index e0057b74..3b71001d 100644
--- a/pdf/pdf_trans.h
+++ b/pdf/pdf_trans.h
@@ -1,4 +1,4 @@
-/* Copyright (C) 2019-2021 Artifex Software, Inc.
+/* Copyright (C) 2019-2022 Artifex Software, Inc.
All Rights Reserved.
This software is provided AS-IS with no warranty, either express or
@@ -33,6 +33,8 @@ typedef enum {
TRANSPARENCY_Caller_FillStroke /* Also includes EOFillStroke */
} pdfi_transparency_caller_t;
+bool pdfi_trans_okOPcs(pdf_context* ctx);
+int pdfi_trans_required(pdf_context *ctx);
int pdfi_trans_setup_text(pdf_context *ctx, pdfi_trans_state_t *state, bool is_show);
int pdfi_trans_teardown_text(pdf_context *ctx, pdfi_trans_state_t *state);
int pdfi_trans_setup(pdf_context *ctx, pdfi_trans_state_t *state, gs_rect *bbox, pdfi_transparency_caller_t caller);
diff --git a/pdf/pdf_types.h b/pdf/pdf_types.h
index 9b4a9519..b8213e0b 100644
--- a/pdf/pdf_types.h
+++ b/pdf/pdf_types.h
@@ -1,4 +1,4 @@
-/* Copyright (C) 2018-2021 Artifex Software, Inc.
+/* Copyright (C) 2018-2022 Artifex Software, Inc.
All Rights Reserved.
This software is provided AS-IS with no warranty, either express or
@@ -56,7 +56,13 @@ typedef enum pdf_obj_type_e {
PDF_ARRAY_MARK = '[',
PDF_DICT_MARK = '<',
PDF_PROC_MARK = '{',
- PDF_CMAP = 'C'
+ PDF_CMAP = 'C',
+ /* Lastly, for the benefit of duplicate colour space identification, we store either
+ * a name for a colour space, or if there is no name, the context (we can get the
+ * context from the name object if there is one). We need to be able to tell if a
+ * pdf_obj is a name or a context.
+ */
+ PDF_CTX = 'c'
} pdf_obj_type;
#if REFCNT_DEBUG
@@ -103,6 +109,8 @@ typedef enum pdf_obj_type_e {
uint16_t indirect_gen
#endif
+#define PDF_NAME_DECLARED_LENGTH 4096
+
typedef struct pdf_obj_s {
pdf_obj_common;
} pdf_obj;
@@ -124,13 +132,13 @@ typedef struct pdf_num_s {
typedef struct pdf_string_s {
pdf_obj_common;
uint32_t length;
- unsigned char *data;
+ unsigned char data[PDF_NAME_DECLARED_LENGTH];
} pdf_string;
typedef struct pdf_name_s {
pdf_obj_common;
uint32_t length;
- unsigned char *data;
+ unsigned char data[PDF_NAME_DECLARED_LENGTH];
} pdf_name;
typedef enum pdf_key_e {
@@ -143,13 +151,13 @@ typedef enum pdf_key_e {
TOKEN_STARTXREF,
TOKEN_TRAILER,
TOKEN_INVALID_KEY,
-}pdf_key;
+} pdf_key;
typedef struct pdf_keyword_s {
pdf_obj_common;
uint32_t length;
- unsigned char *data;
pdf_key key;
+ unsigned char data[PDF_NAME_DECLARED_LENGTH];
} pdf_keyword;
typedef struct pdf_array_s {
@@ -158,13 +166,18 @@ typedef struct pdf_array_s {
pdf_obj **values;
} pdf_array;
+typedef struct pdf_dict_entry_s {
+ pdf_obj *key;
+ pdf_obj *value;
+} pdf_dict_entry;
+
typedef struct pdf_dict_s {
pdf_obj_common;
uint64_t size;
uint64_t entries;
- pdf_obj **keys;
- pdf_obj **values;
- bool dict_written; /* Has dict been written (for pdfwrite) */
+ pdf_dict_entry *list;
+ bool dict_written; /* Has dict been written (for pdfwrite) */
+ bool is_sorted; /* true if the dictionary has been sorted by Key, for faster searching */
} pdf_dict;
typedef struct pdf_stream_s {
diff --git a/pdf/pdf_warnings.h b/pdf/pdf_warnings.h
new file mode 100644
index 00000000..21b2403f
--- /dev/null
+++ b/pdf/pdf_warnings.h
@@ -0,0 +1,62 @@
+/* Copyright (C) 2022 Artifex Software, Inc.
+ All Rights Reserved.
+
+ This software is provided AS-IS with no warranty, either express or
+ implied.
+
+ This software is distributed under license and may not be copied,
+ modified or distributed except as expressly authorized under the terms
+ of the license contained in the file LICENSE in this distribution.
+
+ Refer to licensing information at http://www.artifex.com or contact
+ Artifex Software, Inc., 1305 Grant Avenue - Suite 200, Novato,
+ CA 94945, U.S.A., +1(415)492-9861, for further information.
+*/
+
+#ifndef PARAM
+#define PARAM(A,B) A
+#endif
+PARAM(W_PDF_NOWARNING, "no warning"),
+PARAM(W_PDF_BAD_XREF_SIZE, "incorrect xref size"),
+PARAM(W_PDF_BAD_INLINEFILTER, "used inline filter name inappropriately"),
+PARAM(W_PDF_BAD_INLINECOLORSPACE, "used inline colour space inappropriately"),
+PARAM(W_PDF_BAD_INLINEIMAGEKEY, "used inline image key inappropriately"),
+PARAM(W_PDF_IMAGE_ERROR, "recoverable image error"),
+PARAM(W_PDF_BAD_IMAGEDICT, "recoverable error in image dictionary"),
+PARAM(W_PDF_TOOMANYQ, "encountered more Q than q"),
+PARAM(W_PDF_TOOMANYq, "encountered more q than Q"),
+PARAM(W_PDF_STACKGARBAGE, "garbage left on stack"),
+PARAM(W_PDF_STACKUNDERFLOW, "stack underflow"),
+PARAM(W_PDF_GROUPERROR, "error in group definition"),
+PARAM(W_PDF_OPINVALIDINTEXT, "invalid operator used in text block"),
+PARAM(W_PDF_NOTINCHARPROC, "used invalid operator in CharProc"),
+PARAM(W_PDF_NESTEDTEXTBLOCK, "BT found inside a text block"),
+PARAM(W_PDF_ETNOTEXTBLOCK, "ET found outside text block"),
+PARAM(W_PDF_TEXTOPNOBT, "text operator outside text block"),
+PARAM(W_PDF_DEGENERATETM, "degenerate text matrix"),
+PARAM(W_PDF_BADICC_USE_ALT, "bad ICC colour profile, using alternate"),
+PARAM(W_PDF_BADICC_USECOMPS, "bad ICC vs number components, using components"),
+PARAM(W_PDF_BADTRSWITCH, "bad value for text rendering mode"),
+PARAM(W_PDF_BADSHADING, "error in shading"),
+PARAM(W_PDF_BADPATTERN, "error in pattern"),
+PARAM(W_PDF_NONSTANDARD_OP, "non standard operator found - ignoring"),
+PARAM(W_PDF_NUM_EXPONENT, "number uses illegal exponent form"),
+PARAM(W_PDF_STREAM_HAS_CONTENTS, "Stream has inappropriate /Contents entry"),
+PARAM(W_PDF_STREAM_BAD_DECODEPARMS, "bad DecodeParms"),
+PARAM(W_PDF_MASK_ERROR, "error in Mask"),
+PARAM(W_PDF_ANNOT_AP_ERROR, "error in annotation Appearance"),
+PARAM(W_PDF_BAD_NAME_ESCAPE, "badly escaped name"),
+PARAM(W_PDF_TYPECHECK, "typecheck error"),
+PARAM(W_PDF_BAD_TRAILER, "bad trailer dictionary"),
+PARAM(W_PDF_ANNOT_ERROR, "error in annotation"),
+PARAM(W_PDF_BAD_ICC_PROFILE_LINK, "failed to create ICC profile link"),
+PARAM(W_PDF_OVERFLOW_REAL, "overflowed a real reading a number, assuming 0"),
+PARAM(W_PDF_INVALID_REAL, "failed to read a valid number, assuming 0"),
+PARAM(W_PDF_DEVICEN_USES_ALL, "A DeviceN space used the /All ink name."),
+PARAM(W_PDF_BAD_MEDIABOX, "Couldn't retrieve MediaBox for page, using current media size"),
+PARAM(W_PDF_CA_OUTOFRANGE, "CA or ca value not in range 0.0 to 1.0, clamped to range."),
+PARAM(W_PDF_INVALID_DEFAULTSPACE, "Invalid DefaultGray, DefaultRGB or DefaultCMYK space specified, ignored."),
+PARAM(W_PDF_INVALID_DECRYPT_LEN, "Invalid /Length supplied in Encryption dictionary."),
+PARAM(W_PDF_INVALID_FONT_BASEENC, "Ignoring invalid BaseEncoding name in font"),
+
+#undef PARAM
diff --git a/pdf/pdf_xref.c b/pdf/pdf_xref.c
index 27c1501e..7e611130 100644
--- a/pdf/pdf_xref.c
+++ b/pdf/pdf_xref.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 2018-2021 Artifex Software, Inc.
+/* Copyright (C) 2018-2022 Artifex Software, Inc.
All Rights Reserved.
This software is provided AS-IS with no warranty, either express or
@@ -175,8 +175,10 @@ static int pdfi_process_xref_stream(pdf_context *ctx, pdf_stream *stream_obj, pd
code = pdfi_dict_get_int(ctx, sdict, "Size", &size);
if (code < 0)
return code;
+ if (size < 1)
+ return 0;
- if (size < 0)
+ if (size < 0 || size > floor((double)ARCH_MAX_SIZE_T / (double)sizeof(xref_entry)))
return_error(gs_error_rangecheck);
/* If this is the first xref stream then allocate the xref table and store the trailer */
@@ -197,7 +199,7 @@ static int pdfi_process_xref_stream(pdf_context *ctx, pdf_stream *stream_obj, pd
ctx->xref_table->type = PDF_XREF_TABLE;
ctx->xref_table->xref_size = size;
#if REFCNT_DEBUG
- ctx->xref_table->UID = ctx->UID++;
+ ctx->xref_table->UID = ctx->ref_UID++;
dmprintf1(ctx->memory, "Allocated xref table with UID %"PRIi64"\n", ctx->xref_table->UID);
#endif
pdfi_countup(ctx->xref_table);
@@ -205,6 +207,9 @@ static int pdfi_process_xref_stream(pdf_context *ctx, pdf_stream *stream_obj, pd
ctx->Trailer = sdict;
pdfi_countup(sdict);
} else {
+ if (size > ctx->xref_table->xref_size)
+ return_error(gs_error_rangecheck);
+
code = pdfi_merge_dicts(ctx, ctx->Trailer, sdict);
if (code < 0) {
if (code == gs_error_VMerror || ctx->args.pdfstoponerror)
@@ -321,7 +326,7 @@ static int pdfi_process_xref_stream(pdf_context *ctx, pdf_stream *stream_obj, pd
for (i=0;i < pdfi_array_size(a);i+=2){
code = pdfi_array_get_int(ctx, a, (uint64_t)i, &start);
- if (code < 0) {
+ if (code < 0 || start < 0) {
pdfi_countdown(a);
pdfi_close_file(ctx, XRefStrm);
pdfi_countdown(ctx->xref_table);
@@ -332,7 +337,6 @@ static int pdfi_process_xref_stream(pdf_context *ctx, pdf_stream *stream_obj, pd
code = pdfi_array_get_int(ctx, a, (uint64_t)i+1, &end);
if (code < 0) {
pdfi_countdown(a);
- pdfi_countdown(start);
pdfi_close_file(ctx, XRefStrm);
pdfi_countdown(ctx->xref_table);
ctx->xref_table = NULL;
@@ -390,6 +394,8 @@ static int pdfi_process_xref_stream(pdf_context *ctx, pdf_stream *stream_obj, pd
code = pdfi_read_token(ctx, ctx->main_stream, 0, 0);
if (code < 0)
return code;
+ if (code == 0)
+ return_error(gs_error_syntaxerror);
if (((pdf_obj *)ctx->stack_top[-1])->type == PDF_KEYWORD && ((pdf_keyword *)ctx->stack_top[-1])->key == TOKEN_XREF) {
/* Read old-style xref table */
@@ -412,7 +418,7 @@ static int pdfi_read_xref_stream_dict(pdf_context *ctx, pdf_c_stream *s)
/* Its an integer, lets try for index gen obj as a XRef stream */
code = pdfi_read_token(ctx, ctx->main_stream, 0, 0);
- if (code < 0)
+ if (code <= 0)
return(pdfi_repair_file(ctx));
if (((pdf_obj *)ctx->stack_top[-1])->type != PDF_INT) {
@@ -426,6 +432,10 @@ static int pdfi_read_xref_stream_dict(pdf_context *ctx, pdf_c_stream *s)
pdfi_pop(ctx, 1);
return code;
}
+ if (code == 0) {
+ pdfi_pop(ctx, 1);
+ return_error(gs_error_syntaxerror);
+ }
if (((pdf_obj *)ctx->stack_top[-1])->type != PDF_KEYWORD) {
/* Second element is not an integer, not a valid xref */
@@ -449,10 +459,10 @@ static int pdfi_read_xref_stream_dict(pdf_context *ctx, pdf_c_stream *s)
do {
code = pdfi_read_token(ctx, ctx->main_stream, obj_num, gen_num);
- if (code < 0)
+ if (code <= 0)
return pdfi_repair_file(ctx);
- if (((pdf_obj *)ctx->stack_top[-1])->type == PDF_KEYWORD) {
+ if (pdfi_count_stack(ctx) >= 2 && ((pdf_obj *)ctx->stack_top[-1])->type == PDF_KEYWORD) {
keyword = (pdf_keyword *)ctx->stack_top[-1];
if (keyword->key == TOKEN_STREAM) {
pdf_dict *dict;
@@ -491,7 +501,7 @@ static int pdfi_read_xref_stream_dict(pdf_context *ctx, pdf_c_stream *s)
/* TODO: Not positive this will actually have a length -- just use 0 */
char extra_info[gp_file_name_sizeof];
- gs_sprintf(extra_info, "Xref Stream object %u missing mandatory keyword /Length\n", obj_num);
+ gs_snprintf(extra_info, sizeof(extra_info), "Xref Stream object %u missing mandatory keyword /Length\n", obj_num);
pdfi_set_error(ctx, 0, NULL, E_PDF_BADSTREAM, "pdfi_read_xref_stream_dict", extra_info);
code = 0;
Length = 0;
@@ -525,36 +535,49 @@ static int pdfi_read_xref_stream_dict(pdf_context *ctx, pdf_c_stream *s)
static int skip_to_digit(pdf_context *ctx, pdf_c_stream *s, unsigned int limit)
{
- byte c;
- int bytes, read = 0;
+ int c, read = 0;
do {
- bytes = pdfi_read_bytes(ctx, &c, 1, 1, s);
- if (bytes == 0)
+ c = pdfi_read_byte(ctx, s);
+ if (c < 0)
return_error(gs_error_ioerror);
- if (c >= 0x30 && c <= 0x39) {
- pdfi_unread(ctx, s, &c, 1);
- break;
+ if (c >= '0' && c <= '9') {
+ pdfi_unread_byte(ctx, s, (byte)c);
+ return read;
}
- read += bytes;
- }while (read < limit);
+ read++;
+ } while (read < limit);
+
return read;
}
-static int read_digits(pdf_context *ctx, pdf_c_stream *s, byte *Buffer, unsigned int limit)
+static int read_digits(pdf_context *ctx, pdf_c_stream *s, byte *Buffer, int limit)
{
- int bytes, read = 0;
+ int c, read = 0;
+
+ /* Since the "limit" is a value calculated by the caller,
+ it's easier to check it in one place (here) than before
+ every call.
+ */
+ if (limit <= 0)
+ return_error(gs_error_syntaxerror);
+
+ /* We assume that Buffer always has limit+1 bytes available, so we can
+ * safely terminate it. */
do {
- bytes = pdfi_read_bytes(ctx, &Buffer[read], 1, 1, s);
- if (bytes == 0)
+ c = pdfi_read_byte(ctx, s);
+ if (c < 0)
return_error(gs_error_ioerror);
- if (Buffer[read] < 0x30 || Buffer[read] > 0x39) {
- pdfi_unread(ctx, s, &Buffer[read], 1);
+ if (c < '0' || c > '9') {
+ pdfi_unread_byte(ctx, s, c);
break;
}
- read += bytes;
- }while (read < limit);
+ *Buffer++ = (byte)c;
+ read++;
+ } while (read < limit);
+ *Buffer = 0;
+
return read;
}
@@ -562,9 +585,8 @@ static int read_digits(pdf_context *ctx, pdf_c_stream *s, byte *Buffer, unsigned
static int read_xref_entry_slow(pdf_context *ctx, pdf_c_stream *s, gs_offset_t *offset, uint32_t *generation_num, unsigned char *free)
{
byte Buffer[20];
- int code, read = 0, bytes;
+ int c, code, read = 0;
- memset(Buffer, 0x00, 20);
/* First off, find a number. If we don't find one, and read 20 bytes, throw an error */
code = skip_to_digit(ctx, s, 20);
if (code < 0)
@@ -575,7 +597,6 @@ static int read_xref_entry_slow(pdf_context *ctx, pdf_c_stream *s, gs_offset_t *
code = read_digits(ctx, s, (byte *)&Buffer, (read > 10 ? 20 - read : 10));
if (code < 0)
return code;
- Buffer[code] = 0x00;
read += code;
*offset = atol((const char *)Buffer);
@@ -587,23 +608,22 @@ static int read_xref_entry_slow(pdf_context *ctx, pdf_c_stream *s, gs_offset_t *
read += code;
/* and read it */
- code = read_digits(ctx, s, (byte *)&Buffer, (read > 15 ? 20 - read : 5));
+ code = read_digits(ctx, s, (byte *)&Buffer, (read > 15 ? 20 - read : 5));
if (code < 0)
return code;
- Buffer[code] = 0x00;
read += code;
*generation_num = atol((const char *)Buffer);
do {
- bytes = pdfi_read_bytes(ctx, &Buffer[0], 1, 1, s);
- if (bytes == 0)
+ c = pdfi_read_byte(ctx, s);
+ if (c < 0)
return_error(gs_error_ioerror);
- read += bytes;
- if (Buffer[0] == 0x09 || Buffer[0] == 0x20)
+ read ++;
+ if (c == 0x09 || c == 0x20)
continue;
- if (Buffer[0] == 'n' || Buffer[0] == 'f') {
- *free = Buffer[0];
+ if (c == 'n' || c == 'f') {
+ *free = (unsigned char)c;
break;
} else {
return_error(gs_error_syntaxerror);
@@ -613,9 +633,11 @@ static int read_xref_entry_slow(pdf_context *ctx, pdf_c_stream *s, gs_offset_t *
return_error(gs_error_syntaxerror);
do {
- bytes = pdfi_read_bytes(ctx, &Buffer[0], 1, 1, s);
- read += bytes;
- if (Buffer[0] == 0x20 || Buffer[0] == 0x09 || Buffer[0] == 0x0d || Buffer[0] == 0x0a)
+ c = pdfi_read_byte(ctx, s);
+ if (c < 0)
+ return_error(gs_error_syntaxerror);
+ read++;
+ if (c == 0x20 || c == 0x09 || c == 0x0d || c == 0x0a)
continue;
} while (read < 20);
return 0;
@@ -626,7 +648,7 @@ static int write_offset(byte *B, gs_offset_t o, unsigned int g, unsigned char fr
byte b[20], *ptr = B;
int index = 0;
- gs_sprintf((char *)b, "%"PRId64"", o);
+ gs_snprintf((char *)b, sizeof(b), "%"PRIdOFFSET"", o);
if (strlen((const char *)b) > 10)
return_error(gs_error_rangecheck);
for(index=0;index < 10 - strlen((const char *)b); index++) {
@@ -636,7 +658,7 @@ static int write_offset(byte *B, gs_offset_t o, unsigned int g, unsigned char fr
ptr += strlen((const char *)b);
*ptr++ = 0x20;
- gs_sprintf((char *)b, "%d", g);
+ gs_snprintf((char *)b, sizeof(b), "%d", g);
if (strlen((const char *)b) > 5)
return_error(gs_error_rangecheck);
for(index=0;index < 5 - strlen((const char *)b);index++) {
@@ -682,6 +704,11 @@ static int read_xref_section(pdf_context *ctx, pdf_c_stream *s, uint64_t *sectio
return_error(gs_error_typecheck);
}
+ if (((pdf_num *)o)->value.i < 0) {
+ pdfi_pop(ctx, 1);
+ return_error(gs_error_rangecheck);
+ }
+
*section_start = start = ((pdf_num *)o)->value.i;
code = pdfi_read_token(ctx, ctx->main_stream, 0, 0);
@@ -689,6 +716,10 @@ static int read_xref_section(pdf_context *ctx, pdf_c_stream *s, uint64_t *sectio
pdfi_pop(ctx, 1);
return code;
}
+ if (code == 0) {
+ pdfi_pop(ctx, 1);
+ return_error(gs_error_syntaxerror);
+ }
o = ctx->stack_top[-1];
if (o->type != PDF_INT) {
@@ -696,6 +727,14 @@ static int read_xref_section(pdf_context *ctx, pdf_c_stream *s, uint64_t *sectio
pdfi_pop(ctx, 2);
return_error(gs_error_typecheck);
}
+
+ /* Zero sized xref sections are valid; see the file attached to
+ * bug 704947 for an example. */
+ if (((pdf_num *)o)->value.i < 0) {
+ pdfi_pop(ctx, 2);
+ return_error(gs_error_rangecheck);
+ }
+
*section_size = size = ((pdf_num *)o)->value.i;
pdfi_pop(ctx, 2);
@@ -716,7 +755,7 @@ static int read_xref_section(pdf_context *ctx, pdf_c_stream *s, uint64_t *sectio
return_error(gs_error_VMerror);
}
#if REFCNT_DEBUG
- ctx->xref_table->UID = ctx->UID++;
+ ctx->xref_table->UID = ctx->ref_UID++;
dmprintf1(ctx->memory, "Allocated xref table with UID %"PRIi64"\n", ctx->xref_table->UID);
#endif
@@ -746,7 +785,7 @@ static int read_xref_section(pdf_context *ctx, pdf_c_stream *s, uint64_t *sectio
return_error(gs_error_ioerror);
j = 19;
while (Buffer[j] != 0x0D && Buffer[j] != 0x0A) {
- pdfi_unread(ctx, s, (byte *)&Buffer[j], 1);
+ pdfi_unread_byte(ctx, s, (byte)Buffer[j]);
if (--j < 0) {
dmprintf(ctx->memory, "Invalid xref entry, line terminator missing.\n");
code = read_xref_entry_slow(ctx, s, &off, &gen, &free);
@@ -755,6 +794,7 @@ static int read_xref_section(pdf_context *ctx, pdf_c_stream *s, uint64_t *sectio
code = write_offset((byte *)Buffer, off, gen, free);
if (code < 0)
return code;
+ j = 19;
break;
}
}
@@ -762,7 +802,7 @@ static int read_xref_section(pdf_context *ctx, pdf_c_stream *s, uint64_t *sectio
if (entry->object_num != 0)
continue;
- if (sscanf(Buffer, "%ld %d %c", &entry->u.uncompressed.offset, &entry->u.uncompressed.generation_num, &free) != 3) {
+ if (sscanf(Buffer, "%"PRIdOFFSET" %d %c", &entry->u.uncompressed.offset, &entry->u.uncompressed.generation_num, &free) != 3) {
dmprintf(ctx->memory, "Invalid xref entry, incorrect format.\n");
pdfi_unread(ctx, s, (byte *)Buffer, 20);
code = read_xref_entry_slow(ctx, s, &off, &gen, &free);
@@ -801,8 +841,8 @@ static int read_xref(pdf_context *ctx, pdf_c_stream *s)
if (code < 0)
return code;
- if (section_start + section_size > max_obj)
- max_obj = section_start + section_size;
+ if (section_size > 0 && section_start + section_size - 1 > max_obj)
+ max_obj = section_start + section_size - 1;
if (ctx->stack_top - o > 0) {
k = (pdf_keyword *)ctx->stack_top[-1];
@@ -850,7 +890,7 @@ static int read_xref(pdf_context *ctx, pdf_c_stream *s)
pdfi_pop(ctx, 1);
return code;
}
- if (size < 0) {
+ if (size < 0 || size > floor((double)ARCH_MAX_SIZE_T / (double)sizeof(xref_entry))) {
pdfi_pop(ctx, 1);
return_error(gs_error_rangecheck);
}
@@ -862,7 +902,7 @@ static int read_xref(pdf_context *ctx, pdf_c_stream *s)
}
memset(ctx->xref_table, 0x00, sizeof(xref_table_t));
#if REFCNT_DEBUG
- ctx->xref_table->UID = ctx->UID++;
+ ctx->xref_table->UID = ctx->ref_UID++;
dmprintf1(ctx->memory, "Allocated xref table with UID %"PRIi64"\n", ctx->xref_table->UID);
#endif
@@ -931,6 +971,10 @@ static int read_xref(pdf_context *ctx, pdf_c_stream *s)
return code;
}
+ /* This can happen if pdfi_read_xref_stream tries to repair a broken PDF file */
+ if (d != ctx->Trailer)
+ d = ctx->Trailer;
+
pdfi_loop_detector_cleartomark(ctx);
}
@@ -976,6 +1020,8 @@ static int read_xref(pdf_context *ctx, pdf_c_stream *s)
code = pdfi_read_token(ctx, ctx->main_stream, 0, 0);
if (code < 0)
return(code);
+ if (code == 0)
+ return_error(gs_error_syntaxerror);
if (((pdf_obj *)ctx->stack_top[-1])->type == PDF_KEYWORD && ((pdf_keyword *)ctx->stack_top[-1])->key == TOKEN_XREF) {
/* Read old-style xref table */
@@ -1057,21 +1103,21 @@ int pdfi_read_xref(pdf_context *ctx)
entry = &ctx->xref_table->xref[i];
if(entry->compressed) {
dmprintf(ctx->memory, "*");
- gs_sprintf(Buffer, "%ld", entry->object_num);
+ gs_snprintf(Buffer, sizeof(Buffer), "%"PRId64"", entry->object_num);
j = 10 - strlen(Buffer);
while(j--) {
dmprintf(ctx->memory, " ");
}
dmprintf1(ctx->memory, "%s ", Buffer);
- gs_sprintf(Buffer, "%ld", entry->u.compressed.compressed_stream_num);
+ gs_snprintf(Buffer, sizeof(Buffer), "%ld", entry->u.compressed.compressed_stream_num);
j = 10 - strlen(Buffer);
while(j--) {
dmprintf(ctx->memory, " ");
}
dmprintf1(ctx->memory, "%s ", Buffer);
- gs_sprintf(Buffer, "%ld", entry->u.compressed.object_index);
+ gs_snprintf(Buffer, sizeof(Buffer), "%ld", entry->u.compressed.object_index);
j = 10 - strlen(Buffer);
while(j--) {
dmprintf(ctx->memory, " ");
@@ -1081,21 +1127,21 @@ int pdfi_read_xref(pdf_context *ctx)
else {
dmprintf(ctx->memory, " ");
- gs_sprintf(Buffer, "%ld", entry->object_num);
+ gs_snprintf(Buffer, sizeof(Buffer), "%ld", entry->object_num);
j = 10 - strlen(Buffer);
while(j--) {
dmprintf(ctx->memory, " ");
}
dmprintf1(ctx->memory, "%s ", Buffer);
- gs_sprintf(Buffer, "%ld", entry->u.uncompressed.offset);
+ gs_snprintf(Buffer, sizeof(Buffer), "%"PRIdOFFSET"", entry->u.uncompressed.offset);
j = 10 - strlen(Buffer);
while(j--) {
dmprintf(ctx->memory, " ");
}
dmprintf1(ctx->memory, "%s ", Buffer);
- gs_sprintf(Buffer, "%ld", entry->u.uncompressed.generation_num);
+ gs_snprintf(Buffer, sizeof(Buffer), "%ld", entry->u.uncompressed.generation_num);
j = 10 - strlen(Buffer);
while(j--) {
dmprintf(ctx->memory, " ");
diff --git a/pdf/pdfromfs.mak b/pdf/pdfromfs.mak
index bc01a590..527d43c2 100644
--- a/pdf/pdfromfs.mak
+++ b/pdf/pdfromfs.mak
@@ -20,4 +20,4 @@ PDF_FONT_ROMFS_ARGS=
# The -C turns "compaction" on, -B off. For debugging convenience
# it's off just now.
# PDF_ROMFS_ARGS=-d Resource/ -P $(PSRESDIR)$(D) -C CMap$(D)*
-PDF_ROMFS_ARGS=-d Resource/ -P $(PSRESDIR)$(D) -C CMap$(D)* -B Font$(D)* CIDFSubst$(D)* -C Init$(D)Fontmap.GS
+PDF_ROMFS_ARGS=-d Resource/ -P $(PSRESDIR)$(D) -C CMap$(D)* -B Font$(D)* CIDFSubst$(D)* -C Init$(D)Fontmap.GS Init$(D)cidfmap
diff --git a/pdf/pdftop.c b/pdf/pdftop.c
index 6dbe1817..5e147cdd 100644
--- a/pdf/pdftop.c
+++ b/pdf/pdftop.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 2018-2021 Artifex Software, Inc.
+/* Copyright (C) 2018-2022 Artifex Software, Inc.
All Rights Reserved.
This software is provided AS-IS with no warranty, either express or
@@ -62,7 +62,7 @@ pdf_detect_language(const char *s, int len)
{
if (len < 5)
return 1;
- return memcmp(s, "%!PDF", 2);
+ return memcmp(s, "%!PDF", 5);
}
static const pl_interp_characteristics_t *
@@ -368,6 +368,7 @@ pdf_impl_report_errors(pl_interp_implementation_t *impl,
return 0;
}
+#if 0
/*
* Get the allocator with which to allocate a device
*/
@@ -379,6 +380,7 @@ pdf_impl_get_device_memory(pl_interp_implementation_t *impl)
return ctx->memory;
}
+#endif
static int plist_value_get_int64(gs_param_typed_value *pvalue, int64_t *pint)
{
@@ -469,31 +471,6 @@ static int plist_value_get_bool(gs_param_typed_value *pvalue, bool *pbool)
return_error(gs_error_typecheck);
}
-/* Get the Overprint value and translate it to a numeric value */
-static int
-pdfi_get_overprint_param(pdf_context *ctx, gs_param_typed_value *pvalue)
-{
- char *val = NULL;
- int len;
- int code;
-
- code = plist_value_get_string_or_name(ctx, pvalue, &val, &len);
- if (code < 0)
- return code;
-
- ctx->args.overprint_control = PDF_OVERPRINT_ENABLE;
- if (val != NULL && !strncmp(val, "disable", len)) {
- ctx->args.overprint_control = PDF_OVERPRINT_DISABLE;
- }
- if (val != NULL && !strncmp(val, "simulate", len)) {
- ctx->args.overprint_control = PDF_OVERPRINT_SIMULATE;
- }
-
- if (val)
- gs_free_object(ctx->memory, val, "Transparency param");
- return code;
-}
-
static int
pdf_impl_set_param(pl_interp_implementation_t *impl,
gs_param_list *plist)
@@ -567,7 +544,7 @@ pdf_impl_set_param(pl_interp_implementation_t *impl,
if (code < 0)
return code;
}
- if (!strncmp(param, "NOCIDFALLBACK", 13)) {
+ if (!strncmp(param, "PDFNOCIDFALLBACK", 13)) {
code = plist_value_get_bool(&pvalue, &ctx->args.nocidfallback);
if (code < 0)
return code;
@@ -642,6 +619,11 @@ pdf_impl_set_param(pl_interp_implementation_t *impl,
if (code < 0)
return code;
}
+ if (!strncmp(param, "PreserveMarkedContent", 21)) {
+ code = plist_value_get_bool(&pvalue, &ctx->args.preservemarkedcontent);
+ if (code < 0)
+ return code;
+ }
if (!strncmp(param, "NoUserUnit", 10)) {
code = plist_value_get_bool(&pvalue, &ctx->args.nouserunit);
if (code < 0)
@@ -667,11 +649,6 @@ pdf_impl_set_param(pl_interp_implementation_t *impl,
if (code < 0)
return code;
}
- if (!strncmp(param, "Overprint", 9)) {
- code = pdfi_get_overprint_param(ctx, &pvalue);
- if (code < 0)
- return code;
- }
if (!strncmp(param, "UsePDFX3Profile", strlen("UsePDFX3Profile"))) {
/* This is a weird one because it can be either a bool or an int.
* If it's a bool=true, then it defaults to PDFX3Profile_num = 0
@@ -705,6 +682,31 @@ pdf_impl_set_param(pl_interp_implementation_t *impl,
if (code < 0)
return code;
code = pdfi_add_paths_to_search_paths(ctx, (const char *)s, slen, true);
+ gs_free_object(ctx->memory, s, "FONTPATH param string");
+ }
+ if (!strncmp(param, "FONTMAP", 7)) {
+ char *s = NULL;
+ int slen;
+ code = plist_value_get_string_or_name(ctx, &pvalue, &s, &slen);
+ if (code < 0)
+ return code;
+ code = pdfi_add_fontmapfiles(ctx, (const char *)s, slen);
+ gs_free_object(ctx->memory, s, "FONTMAP param string");
+ }
+ if (!strncmp(param, "CIDSubstPath", 12)) {
+ code = plist_value_get_string_or_name(ctx, &pvalue, (char **)&ctx->args.cidsubstpath.data, (int *)&ctx->args.cidsubstpath.size);
+ if (code < 0)
+ return code;
+ }
+ if (!strncmp(param, "CIDSubstFont", 12)) {
+ code = plist_value_get_string_or_name(ctx, &pvalue, (char **)&ctx->args.cidsubstfont.data, (int *)&ctx->args.cidsubstfont.size);
+ if (code < 0)
+ return code;
+ }
+ if (!strncmp(param, "IgnoreToUnicode", 15)) {
+ code = plist_value_get_bool(&pvalue, &ctx->args.ignoretounicode);
+ if (code < 0)
+ return code;
}
}
@@ -776,7 +778,7 @@ pl_interp_implementation_t pdf_implementation =
{
pdf_impl_characteristics,
pdf_impl_allocate_interp_instance,
- pdf_impl_get_device_memory,
+ NULL, /* pdf_impl_get_device_memory, */
pdf_impl_set_param,
pdf_impl_add_path,
pdf_impl_post_args_init,
@@ -843,6 +845,7 @@ pdfi_install_halftone(pdf_context *ctx, gx_device *pdevice)
if (gx_device_must_halftone(pdevice))
{
+ memset(&ht.rc, 0x00, sizeof(ht.rc));
ht.type = ht_type_threshold;
ht.objtype = HT_OBJTYPE_DEFAULT;
ht.params.threshold.width = width;
diff --git a/psi/bfont.h b/psi/bfont.h
index 184c11f7..3e340e53 100644
--- a/psi/bfont.h
+++ b/psi/bfont.h
@@ -85,6 +85,6 @@ gs_glyph zfont_encode_char(gs_font *pfont, gs_char chr, gs_glyph_space_t ignored
int gs_font_map_glyph_to_unicode(gs_font *font, gs_glyph glyph, int ch, unsigned short *unicode_return, unsigned int length);
const ref *zfont_get_to_unicode_map(gs_font_dir *dir);
void get_GlyphNames2Unicode(i_ctx_t *i_ctx_p, gs_font *pfont, ref *pdref);
-void get_zfont_glyph_name( void **proc);
+void get_zfont_glyph_name(int (**proc)(gs_font *font, gs_glyph glyph, gs_const_string *pstr) );
#endif /* bfont_INCLUDED */
diff --git a/psi/dmmain.c b/psi/dmmain.c
index 1af0d787..7fee9157 100644
--- a/psi/dmmain.c
+++ b/psi/dmmain.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 2001-2021 Artifex Software, Inc.
+/* Copyright (C) 2001-2022 Artifex Software, Inc.
All Rights Reserved.
This software is provided AS-IS with no warranty, either express or
@@ -640,8 +640,8 @@ void main(void)
argv[1] = ddevice;
argv[2] = dformat;
- gs_sprintf(ddevice, "-sDEVICE=display");
- gs_sprintf(dformat, "-dDisplayFormat=%d", display_format);
+ gs_snprintf(ddevice, sizeof(ddevice), "-sDEVICE=display");
+ gs_snprintf(dformat, sizeof(dformat), "-dDisplayFormat=%d", display_format);
/* Run Ghostscript */
if (gsapi_new_instance(&instance, NULL) < 0)
diff --git a/psi/dpmain.c b/psi/dpmain.c
index e862f378..50d39486 100644
--- a/psi/dpmain.c
+++ b/psi/dpmain.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 2001-2021 Artifex Software, Inc.
+/* Copyright (C) 2001-2022 Artifex Software, Inc.
All Rights Reserved.
This software is provided AS-IS with no warranty, either express or
@@ -116,9 +116,9 @@ gs_free_dll(void)
return TRUE;
rc = DosFreeModule(gsdll.hmodule);
if (rc) {
- gs_sprintf(buf, "DosFreeModule returns %d\n", rc);
+ gs_snprintf(buf, sizeof(buf), "DosFreeModule returns %d\n", rc);
gs_addmess(buf);
- gs_sprintf(buf, "Unloaded GSDLL\n\n");
+ gs_snprintf(buf, sizeof(buf), "Unloaded GSDLL\n\n");
gs_addmess(buf);
}
return !rc;
@@ -166,7 +166,7 @@ gs_load_dll(void)
dllname = szDllName;
#ifdef DEBUG
if (debug) {
- gs_sprintf(buf, "Trying to load %s\n", dllname);
+ gs_snprintf(buf, sizeof(buf), "Trying to load %s\n", dllname);
gs_addmess(buf);
}
#endif
@@ -188,7 +188,7 @@ gs_load_dll(void)
dllname = fullname;
#ifdef DEBUG
if (debug) {
- gs_sprintf(buf, "Trying to load %s\n", dllname);
+ gs_snprintf(buf, sizeof(buf), "Trying to load %s\n", dllname);
gs_addmess(buf);
}
#endif
@@ -199,7 +199,7 @@ gs_load_dll(void)
dllname = shortname;
#ifdef DEBUG
if (debug) {
- gs_sprintf(buf, "Trying to load %s\n", dllname);
+ gs_snprintf(buf, sizeof(buf), "Trying to load %s\n", dllname);
gs_addmess(buf);
}
#endif
@@ -213,21 +213,21 @@ gs_load_dll(void)
#endif
if ((rc = DosQueryProcAddr(gsdll.hmodule, 0, "GSAPI_REVISION",
(PFN *) (&gsdll.revision))) != 0) {
- gs_sprintf(buf, "Can't find GSAPI_REVISION, rc = %d\n", rc);
+ gs_snprintf(buf, sizeof(buf), "Can't find GSAPI_REVISION, rc = %d\n", rc);
gs_addmess(buf);
gs_load_dll_cleanup();
return FALSE;
}
/* check DLL version */
if (gsdll.revision(&rv, sizeof(rv)) != 0) {
- gs_sprintf(buf, "Unable to identify Ghostscript DLL revision - it must be newer than needed.\n");
+ gs_snprintf(buf, sizeof(buf), "Unable to identify Ghostscript DLL revision - it must be newer than needed.\n");
gs_addmess(buf);
gs_load_dll_cleanup();
return FALSE;
}
if (rv.revision != GS_REVISION) {
- gs_sprintf(buf, "Wrong version of DLL found.\n Found version %ld\n Need version %ld\n", rv.revision, (long)GS_REVISION);
+ gs_snprintf(buf, sizeof(buf), "Wrong version of DLL found.\n Found version %ld\n Need version %ld\n", rv.revision, (long)GS_REVISION);
gs_addmess(buf);
gs_load_dll_cleanup();
return FALSE;
@@ -235,35 +235,35 @@ gs_load_dll(void)
if ((rc = DosQueryProcAddr(gsdll.hmodule, 0, "GSAPI_NEW_INSTANCE",
(PFN *) (&gsdll.new_instance))) != 0) {
- gs_sprintf(buf, "Can't find GSAPI_NEW_INSTANCE, rc = %d\n", rc);
+ gs_snprintf(buf, sizeof(buf), "Can't find GSAPI_NEW_INSTANCE, rc = %d\n", rc);
gs_addmess(buf);
gs_load_dll_cleanup();
return FALSE;
}
if ((rc = DosQueryProcAddr(gsdll.hmodule, 0, "GSAPI_DELETE_INSTANCE",
(PFN *) (&gsdll.delete_instance))) != 0) {
- gs_sprintf(buf, "Can't find GSAPI_DELETE_INSTANCE, rc = %d\n", rc);
+ gs_snprintf(buf, sizeof(buf), "Can't find GSAPI_DELETE_INSTANCE, rc = %d\n", rc);
gs_addmess(buf);
gs_load_dll_cleanup();
return FALSE;
}
if ((rc = DosQueryProcAddr(gsdll.hmodule, 0, "GSAPI_SET_STDIO",
(PFN *) (&gsdll.set_stdio))) != 0) {
- gs_sprintf(buf, "Can't find GSAPI_SET_STDIO, rc = %d\n", rc);
+ gs_snprintf(buf, sizeof(buf), "Can't find GSAPI_SET_STDIO, rc = %d\n", rc);
gs_addmess(buf);
gs_load_dll_cleanup();
return FALSE;
}
if ((rc = DosQueryProcAddr(gsdll.hmodule, 0, "GSAPI_SET_DISPLAY_CALLBACK",
(PFN *) (&gsdll.set_display_callback))) != 0) {
- gs_sprintf(buf, "Can't find GSAPI_SET_DISPLAY_CALLBACK, rc = %d\n", rc);
+ gs_snprintf(buf, sizeof(buf), "Can't find GSAPI_SET_DISPLAY_CALLBACK, rc = %d\n", rc);
gs_addmess(buf);
gs_load_dll_cleanup();
return FALSE;
}
if ((rc = DosQueryProcAddr(gsdll.hmodule, 0, "GSAPI_SET_POLL",
(PFN *) (&gsdll.set_poll))) != 0) {
- gs_sprintf(buf, "Can't find GSAPI_SET_POLL, rc = %d\n", rc);
+ gs_snprintf(buf, sizeof(buf), "Can't find GSAPI_SET_POLL, rc = %d\n", rc);
gs_addmess(buf);
gs_load_dll_cleanup();
return FALSE;
@@ -271,27 +271,27 @@ gs_load_dll(void)
if ((rc = DosQueryProcAddr(gsdll.hmodule, 0,
"GSAPI_INIT_WITH_ARGS",
(PFN *) (&gsdll.init_with_args))) != 0) {
- gs_sprintf(buf, "Can't find GSAPI_INIT_WITH_ARGS, rc = %d\n", rc);
+ gs_snprintf(buf, sizeof(buf), "Can't find GSAPI_INIT_WITH_ARGS, rc = %d\n", rc);
gs_addmess(buf);
gs_load_dll_cleanup();
return FALSE;
}
if ((rc = DosQueryProcAddr(gsdll.hmodule, 0, "GSAPI_RUN_STRING",
(PFN *) (&gsdll.run_string))) != 0) {
- gs_sprintf(buf, "Can't find GSAPI_RUN_STRING, rc = %d\n", rc);
+ gs_snprintf(buf, sizeof(buf), "Can't find GSAPI_RUN_STRING, rc = %d\n", rc);
gs_addmess(buf);
gs_load_dll_cleanup();
return FALSE;
}
if ((rc = DosQueryProcAddr(gsdll.hmodule, 0, "GSAPI_EXIT",
(PFN *) (&gsdll.exit))) != 0) {
- gs_sprintf(buf, "Can't find GSAPI_EXIT, rc = %d\n", rc);
+ gs_snprintf(buf, sizeof(buf), "Can't find GSAPI_EXIT, rc = %d\n", rc);
gs_addmess(buf);
gs_load_dll_cleanup();
return FALSE;
}
} else {
- gs_sprintf(buf, "Can't load Ghostscript DLL %s \nDosLoadModule rc = %d\n",
+ gs_snprintf(buf, sizeof(buf), "Can't load Ghostscript DLL %s \nDosLoadModule rc = %d\n",
szDllName, rc);
gs_addmess(buf);
gs_load_dll_cleanup();
@@ -389,10 +389,10 @@ static int run_gspmdrv(IMAGE *img)
if (debug)
fprintf(stdout, "run_gspmdrv: starting\n");
#endif
- gs_sprintf(id, ID_NAME, img->pid, (ULONG)img->device);
+ gs_snprintf(id, sizeof(id), ID_NAME, img->pid, (ULONG)img->device);
/* Create termination queue - used to find out when gspmdrv terminates */
- gs_sprintf(term_queue_name, "\\QUEUES\\TERMQ_%s", id);
+ gs_snprintf(term_queue_name, sizeof(term_queue_name), "\\QUEUES\\TERMQ_%s", id);
if (DosCreateQueue(&(img->term_queue), QUE_FIFO, term_queue_name)) {
fprintf(stdout, "run_gspmdrv: failed to create termination queue\n");
return gs_error_limitcheck;
@@ -420,7 +420,7 @@ static int run_gspmdrv(IMAGE *img)
/* arguments are: */
/* (1) -d (display) option */
/* (2) id string */
- gs_sprintf(arg, "-d %s", id);
+ gs_snprintf(arg, sizeof(arg), "-d %s", id);
/* because gspmdrv.exe is a different EXE type to gs.exe,
* we must use start session not DosExecPgm() */
@@ -608,17 +608,17 @@ int display_open(void *handle, void *device)
return gs_error_limitcheck;
}
img->pid = pppib->pib_ulppid; /* use parent (CMD.EXE) pid */
- gs_sprintf(id, ID_NAME, img->pid, (ULONG) img->device);
+ gs_snprintf(id, sizeof(id), ID_NAME, img->pid, (ULONG) img->device);
/* Create update event semaphore */
- gs_sprintf(name, SYNC_NAME, id);
+ gs_snprintf(name, sizeof(name), SYNC_NAME, id);
if (DosCreateEventSem(name, &(img->sync_event), 0, FALSE)) {
fprintf(stdout, "display_open: failed to create event semaphore %s\n", name);
return gs_error_limitcheck;
}
/* Create mutex - used for preventing gspmdrv from accessing */
/* bitmap while we are changing the bitmap size. Initially unowned. */
- gs_sprintf(name, MUTEX_NAME, id);
+ gs_snprintf(name, sizeof(name), MUTEX_NAME, id);
if (DosCreateMutexSem(name, &(img->bmp_mutex), 0, FALSE)) {
DosCloseEventSem(img->sync_event);
fprintf(stdout, "display_open: failed to create mutex semaphore %s\n", name);
@@ -628,7 +628,7 @@ int display_open(void *handle, void *device)
/* Shared memory is common to all processes so we don't want to
* allocate too much.
*/
- gs_sprintf(name, SHARED_NAME, id);
+ gs_snprintf(name, sizeof(name), SHARED_NAME, id);
if (DosAllocSharedMem((PPVOID) & img->bitmap, name,
13 * 1024 * 1024, PAG_READ | PAG_WRITE)) {
fprintf(stdout, "display_open: failed allocating shared BMP memory %s\n", name);
@@ -1036,7 +1036,7 @@ main(int argc, char *argv[])
else if (depth >= 4)
format = DISPLAY_COLORS_NATIVE | DISPLAY_ALPHA_NONE |
DISPLAY_DEPTH_4 | DISPLAY_LITTLEENDIAN | DISPLAY_BOTTOMFIRST;
- gs_sprintf(dformat, "-dDisplayFormat=%d", format);
+ gs_snprintf(dformat, sizeof(dformat), "-dDisplayFormat=%d", format);
}
nargc = argc + 1;
diff --git a/psi/dscparse.c b/psi/dscparse.c
index 630ab415..2de653d1 100644
--- a/psi/dscparse.c
+++ b/psi/dscparse.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 2001-2021 Artifex Software, Inc.
+/* Copyright (C) 2001-2022 Artifex Software, Inc.
All Rights Reserved.
This software is provided AS-IS with no warranty, either express or
@@ -584,7 +584,7 @@ dsc_fixup(CDSC *dsc)
/* make sure all pages have a label */
for (i=0; i<dsc->page_count; i++) {
if (strlen(dsc->page[i].label) == 0) {
- gs_sprintf(buf, "%d", i+1);
+ gs_snprintf(buf, sizeof(buf), "%d", i+1);
if ((dsc->page[i].label = dsc_alloc_string(dsc, buf, (int)strlen(buf)))
== (char *)NULL)
return CDSC_ERROR; /* no memory */
@@ -1178,7 +1178,7 @@ dsc_unknown(CDSC *dsc)
if (dsc->debug_print_fn) {
char line[DSC_LINE_LENGTH];
unsigned int length = min(DSC_LINE_LENGTH-1, dsc->line_length);
- gs_sprintf(line, "Unknown in %s section at line %d:\n ",
+ gs_snprintf(line, DSC_LINE_LENGTH, "Unknown in %s section at line %d:\n ",
dsc_scan_section_name[dsc->scan_section], dsc->line_count);
dsc_debug_print(dsc, line);
strncpy(line, dsc->line, length);
@@ -2674,7 +2674,7 @@ dsc_check_match_prompt(CDSC *dsc, const char *str, int count)
if (dsc->line_length < (unsigned int)(sizeof(buf)/2-1))
strncpy(buf, dsc->line, dsc->line_length);
- gs_sprintf(buf+strlen(buf), "\n%%%%Begin%.40s: / %%%%End%.40s\n", str, str);
+ gs_snprintf(buf+strlen(buf), MAXSTR + MAXSTR - strlen(buf), "\n%%%%Begin%.40s: / %%%%End%.40s\n", str, str);
return dsc_error(dsc, CDSC_MESSAGE_BEGIN_END, buf, (int)strlen(buf));
}
return CDSC_RESPONSE_CANCEL;
diff --git a/psi/iapi.c b/psi/iapi.c
index a172a6c7..7ca1b42c 100644
--- a/psi/iapi.c
+++ b/psi/iapi.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 2001-2021 Artifex Software, Inc.
+/* Copyright (C) 2001-2022 Artifex Software, Inc.
All Rights Reserved.
This software is provided AS-IS with no warranty, either express or
@@ -74,6 +74,9 @@ gsapi_new_instance(void **pinstance, void *caller_handle)
GSDLLEXPORT void GSDLLAPI
gsapi_delete_instance(void *instance)
{
+ if (instance == NULL)
+ return;
+ gp_set_debug_mem_ptr(((gs_lib_ctx_t *)instance)->memory);
psapi_delete_instance(instance);
}
@@ -167,6 +170,7 @@ gsapi_set_display_callback(void *instance, display_callback *callback)
int code;
if (instance == NULL)
return gs_error_Fatal;
+ gp_set_debug_mem_ptr(ctx->memory);
minst = get_minst_from_memory(ctx->memory);
if (minst->display == NULL && callback != NULL) {
/* First registration. */
@@ -193,6 +197,7 @@ gsapi_register_callout(void *instance, gs_callout fn, void *handle)
gs_lib_ctx_t *ctx = (gs_lib_ctx_t *)instance;
if (instance == NULL)
return gs_error_Fatal;
+ gp_set_debug_mem_ptr(ctx->memory);
return gs_lib_ctx_register_callout(ctx->memory, fn, handle);
}
@@ -202,6 +207,7 @@ gsapi_deregister_callout(void *instance, gs_callout fn, void *handle)
gs_lib_ctx_t *ctx = (gs_lib_ctx_t *)instance;
if (instance == NULL)
return;
+ gp_set_debug_mem_ptr(ctx->memory);
gs_lib_ctx_deregister_callout(ctx->memory, fn, handle);
}
@@ -212,6 +218,7 @@ gsapi_set_default_device_list(void *instance, const char *list, int listlen)
gs_lib_ctx_t *ctx = (gs_lib_ctx_t *)instance;
if (instance == NULL)
return gs_error_Fatal;
+ gp_set_debug_mem_ptr(ctx->memory);
return gs_lib_ctx_set_default_device_list(ctx->memory, list, listlen);
}
@@ -221,6 +228,7 @@ gsapi_get_default_device_list(void *instance, char **list, int *listlen)
gs_lib_ctx_t *ctx = (gs_lib_ctx_t *)instance;
if (instance == NULL)
return gs_error_Fatal;
+ gp_set_debug_mem_ptr(ctx->memory);
return gs_lib_ctx_get_default_device_list(ctx->memory, list, listlen);
}
@@ -229,6 +237,9 @@ GSDLLEXPORT int GSDLLAPI
gsapi_set_arg_encoding(void *instance, int encoding)
{
gs_lib_ctx_t *ctx = (gs_lib_ctx_t *)instance;
+ if (instance == NULL)
+ return gs_error_Fatal;
+ gp_set_debug_mem_ptr(ctx->memory);
return psapi_set_arg_encoding(ctx, encoding);
}
@@ -236,6 +247,9 @@ GSDLLEXPORT int GSDLLAPI
gsapi_init_with_args(void *instance, int argc, char **argv)
{
gs_lib_ctx_t *ctx = (gs_lib_ctx_t *)instance;
+ if (instance == NULL)
+ return gs_error_Fatal;
+ gp_set_debug_mem_ptr(ctx->memory);
return psapi_init_with_args(ctx, argc, argv);
}
@@ -251,6 +265,9 @@ gsapi_run_string_begin(void *instance,
int *pexit_code)
{
gs_lib_ctx_t *ctx = (gs_lib_ctx_t *)instance;
+ if (instance == NULL)
+ return gs_error_Fatal;
+ gp_set_debug_mem_ptr(ctx->memory);
return psapi_run_string_begin(ctx, user_errors, pexit_code);
}
@@ -262,6 +279,9 @@ gsapi_run_string_continue(void *instance,
int *pexit_code)
{
gs_lib_ctx_t *ctx = (gs_lib_ctx_t *)instance;
+ if (instance == NULL)
+ return gs_error_Fatal;
+ gp_set_debug_mem_ptr(ctx->memory);
return psapi_run_string_continue(ctx, str, length, user_errors, pexit_code);
}
@@ -271,6 +291,9 @@ gsapi_run_string_end(void *instance,
int *pexit_code)
{
gs_lib_ctx_t *ctx = (gs_lib_ctx_t *)instance;
+ if (instance == NULL)
+ return gs_error_Fatal;
+ gp_set_debug_mem_ptr(ctx->memory);
return psapi_run_string_end(ctx, user_errors, pexit_code);
}
@@ -282,6 +305,9 @@ gsapi_run_string_with_length(void *instance,
int *pexit_code)
{
gs_lib_ctx_t *ctx = (gs_lib_ctx_t *)instance;
+ if (instance == NULL)
+ return gs_error_Fatal;
+ gp_set_debug_mem_ptr(ctx->memory);
return psapi_run_string_with_length(ctx, str, length, user_errors, pexit_code);
}
@@ -292,6 +318,9 @@ gsapi_run_string(void *instance,
int *pexit_code)
{
gs_lib_ctx_t *ctx = (gs_lib_ctx_t *)instance;
+ if (instance == NULL)
+ return gs_error_Fatal;
+ gp_set_debug_mem_ptr(ctx->memory);
return psapi_run_string_with_length(ctx,
str,
(unsigned int)strlen(str),
@@ -306,6 +335,9 @@ gsapi_run_file(void *instance,
int *pexit_code)
{
gs_lib_ctx_t *ctx = (gs_lib_ctx_t *)instance;
+ if (instance == NULL)
+ return gs_error_Fatal;
+ gp_set_debug_mem_ptr(ctx->memory);
return psapi_run_file(ctx, file_name, user_errors, pexit_code);
}
@@ -321,6 +353,7 @@ gsapi_init_with_argsW(void *instance,
if (instance == NULL)
return gs_error_Fatal;
+ gp_set_debug_mem_ptr(ctx->memory);
old = gs_main_inst_get_arg_decode(get_minst_from_memory(ctx->memory));
code = psapi_set_arg_encoding(ctx, PS_ARG_ENCODING_UTF16LE);
if (code != 0)
@@ -341,6 +374,7 @@ gsapi_init_with_argsA(void *instance,
if (instance == NULL)
return gs_error_Fatal;
+ gp_set_debug_mem_ptr(ctx->memory);
old = gs_main_inst_get_arg_decode(get_minst_from_memory(ctx->memory));
code = psapi_set_arg_encoding(ctx, PS_ARG_ENCODING_LOCAL);
if (code != 0)
@@ -362,6 +396,7 @@ gsapi_run_fileW(void *instance,
if (instance == NULL)
return gs_error_Fatal;
+ gp_set_debug_mem_ptr(ctx->memory);
old = gs_main_inst_get_arg_decode(get_minst_from_memory(ctx->memory));
code = psapi_set_arg_encoding(ctx, PS_ARG_ENCODING_UTF16LE);
if (code != 0)
@@ -383,6 +418,7 @@ gsapi_run_fileA(void *instance,
if (instance == NULL)
return gs_error_Fatal;
+ gp_set_debug_mem_ptr(ctx->memory);
old = gs_main_inst_get_arg_decode(get_minst_from_memory(ctx->memory));
code = psapi_set_arg_encoding(ctx, PS_ARG_ENCODING_LOCAL);
if (code != 0)
@@ -398,6 +434,9 @@ GSDLLEXPORT int GSDLLAPI
gsapi_exit(void *instance)
{
gs_lib_ctx_t *ctx = (gs_lib_ctx_t *)instance;
+ if (instance == NULL)
+ return gs_error_Fatal;
+ gp_set_debug_mem_ptr(ctx->memory);
return psapi_exit(ctx);
}
@@ -414,6 +453,7 @@ gsapi_set_param(void *lib, const char *param, const void *value, gs_set_param_ty
if (lib == NULL)
return gs_error_Fatal;
+ gp_set_debug_mem_ptr(ctx->memory);
minst = get_minst_from_memory(ctx->memory);
/* First off, ensure we have a param list to work with. */
@@ -518,6 +558,7 @@ gsapi_get_param(void *lib, const char *param, void *value, gs_set_param_type typ
if (lib == NULL)
return gs_error_Fatal;
+ gp_set_debug_mem_ptr(ctx->memory);
gs_c_param_list_write(&params, ctx->memory);
/* Should never be set, but clear the more to come bit anyway in case. */
@@ -673,6 +714,7 @@ gsapi_enumerate_params(void *instance, void **iter, const char **key, gs_set_par
if (ctx == NULL)
return gs_error_Fatal;
+ gp_set_debug_mem_ptr(ctx->memory);
minst = get_minst_from_memory(ctx->memory);
params = &minst->enum_params;
@@ -780,6 +822,7 @@ gsapi_add_control_path(void *instance, int type, const char *path)
gs_lib_ctx_t *ctx = (gs_lib_ctx_t *)instance;
if (ctx == NULL)
return gs_error_Fatal;
+ gp_set_debug_mem_ptr(ctx->memory);
return gs_add_control_path(ctx->memory, type, path);
}
@@ -789,6 +832,7 @@ gsapi_remove_control_path(void *instance, int type, const char *path)
gs_lib_ctx_t *ctx = (gs_lib_ctx_t *)instance;
if (ctx == NULL)
return gs_error_Fatal;
+ gp_set_debug_mem_ptr(ctx->memory);
return gs_remove_control_path(ctx->memory, type, path);
}
@@ -798,6 +842,7 @@ gsapi_purge_control_paths(void *instance, int type)
gs_lib_ctx_t *ctx = (gs_lib_ctx_t *)instance;
if (ctx == NULL)
return;
+ gp_set_debug_mem_ptr(ctx->memory);
gs_purge_control_paths(ctx->memory, type);
}
@@ -807,6 +852,7 @@ gsapi_activate_path_control(void *instance, int enable)
gs_lib_ctx_t *ctx = (gs_lib_ctx_t *)instance;
if (ctx == NULL)
return;
+ gp_set_debug_mem_ptr(ctx->memory);
gs_activate_path_control(ctx->memory, enable);
}
@@ -816,6 +862,7 @@ gsapi_is_path_control_active(void *instance)
gs_lib_ctx_t *ctx = (gs_lib_ctx_t *)instance;
if (ctx == NULL)
return 0;
+ gp_set_debug_mem_ptr(ctx->memory);
return gs_is_path_control_active(ctx->memory);
}
@@ -825,6 +872,7 @@ gsapi_add_fs(void *instance, gsapi_fs_t *fs, void *secret)
gs_lib_ctx_t *ctx = (gs_lib_ctx_t *)instance;
if (ctx == NULL)
return 0;
+ gp_set_debug_mem_ptr(ctx->memory);
return gs_add_fs(ctx->memory, (gs_fs_t *)fs, secret);
}
@@ -834,6 +882,7 @@ gsapi_remove_fs(void *instance, gsapi_fs_t *fs, void *secret)
gs_lib_ctx_t *ctx = (gs_lib_ctx_t *)instance;
if (ctx == NULL)
return;
+ gp_set_debug_mem_ptr(ctx->memory);
gs_remove_fs(ctx->memory, (gs_fs_t *)fs, secret);
}
diff --git a/psi/iapi.h b/psi/iapi.h
index 70033fa3..2c72a229 100644
--- a/psi/iapi.h
+++ b/psi/iapi.h
@@ -153,10 +153,10 @@ gsapi_revision(gsapi_revision_t *pr, int len);
/*
* WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING
- * Ghostscript supports only one instance.
- * The current implementation uses a global static instance
- * counter to make sure that only a single instance is used.
- * If you try to create two instances, the second attempt
+ * On non-threading capable platforms, Ghostscript supports only
+ * one instance. The current implementation uses a global static
+ * instance counter to make sure that only a single instance is
+ * used. If you try to create two instances, the second attempt
* will return < 0 and set pinstance to NULL.
* WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING
*/
@@ -170,9 +170,10 @@ gsapi_new_instance(void **pinstance, void *caller_handle);
/*
* WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING
- * Ghostscript supports only one instance.
- * The current implementation uses a global static instance
- * counter to make sure that only a single instance is used.
+ * On non-threading capable platforms, Ghostscript supports only
+ * one instance. The current implementation uses a global static
+ * instance counter to make sure that only a single instance is
+ * used.
* WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING
*/
/* Destroy an instance of Ghostscript
diff --git a/psi/idebug.c b/psi/idebug.c
index 796b5371..c1ce062c 100644
--- a/psi/idebug.c
+++ b/psi/idebug.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 2001-2021 Artifex Software, Inc.
+/* Copyright (C) 2001-2022 Artifex Software, Inc.
All Rights Reserved.
This software is provided AS-IS with no warranty, either express or
@@ -74,7 +74,7 @@ debug_print_full_ref(const gs_memory_t *mem, const ref * pref)
dmprintf1(mem, "boolean %x", pref->value.boolval);
break;
case t_device:
- dmprintf1(mem, "device "PRI_INTPTR, (intptr_t) pref->value.pdevice);
+ dmprintf1(mem, "device "PRI_INTPTR, (intptr_t) pref->value.pdevice->device);
break;
case t_dictionary:
dmprintf3(mem, "dict(%u/%u)"PRI_INTPTR,
diff --git a/psi/idict.c b/psi/idict.c
index 1078dff7..d15c9b11 100644
--- a/psi/idict.c
+++ b/psi/idict.c
@@ -75,7 +75,9 @@ enum {
static int dict_create_contents(uint size, const ref * pdref, bool pack);
/* Debugging statistics - uses a static, so not threadsafe. */
-#if defined(DEBUG) && !defined(GS_THREADSAFE)
+/* #define COLLECT_STATS_IDICT */
+
+#ifdef COLLECT_STATS_IDICT
struct stats_dict_s {
long lookups; /* total lookups */
long probe1; /* successful lookups on only 1 probe */
diff --git a/psi/idstack.c b/psi/idstack.c
index e43673c3..701cd8d0 100644
--- a/psi/idstack.c
+++ b/psi/idstack.c
@@ -30,7 +30,9 @@
*/
/* Debugging statistics */
-#if defined(DEBUG) && !defined(GS_THREADSAFE)
+/* #define COLLECT_STATS_IDSTACK */
+
+#ifdef COLLECT_STATS_IDSTACK
#include "idebug.h"
#define MAX_STATS_DEPTH 6
struct stats_dstack_s {
@@ -43,7 +45,7 @@ struct stats_dstack_s {
# define INCR(v) DO_NOTHING
#endif
-#if defined(DEBUG) && !defined(GS_THREADSAFE)
+#ifdef COLLECT_STATS_IDSTACK
/* Wrapper for dstack_find_name_by_index */
ref *real_dstack_find_name_by_index(dict_stack_t * pds, uint nidx);
ref *
diff --git a/psi/igc.c b/psi/igc.c
index 420a013a..373cdcc3 100644
--- a/psi/igc.c
+++ b/psi/igc.c
@@ -786,7 +786,8 @@ gc_trace_clump(const gs_memory_t *mem, clump_t * cp, gc_state_t * pstate, gc_mar
/* 1 if we completed and marked some new objects. */
static int gc_extend_stack(gc_mark_stack *, gc_state_t *);
static int
-gc_trace(gs_gc_root_t * rp, gc_state_t * pstate, gc_mark_stack * pmstack)
+gc_trace(gs_gc_root_t * rp, /* lgtm [cpp/use-of-goto] */
+ gc_state_t * pstate, gc_mark_stack * pmstack)
{
int min_trace = pstate->min_collect;
gc_mark_stack *pms = pmstack;
diff --git a/psi/igcstr.c b/psi/igcstr.c
index 4c4baf3c..0e10f74b 100644
--- a/psi/igcstr.c
+++ b/psi/igcstr.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 2001-2021 Artifex Software, Inc.
+/* Copyright (C) 2001-2022 Artifex Software, Inc.
All Rights Reserved.
This software is provided AS-IS with no warranty, either express or
@@ -35,7 +35,7 @@ gc_strings_set_marks(clump_t * cp, bool mark)
(intptr_t)cp->smark, cp->smark_size, (int)mark);
memset(cp->smark, 0, cp->smark_size);
if (mark)
- gc_mark_string(cp->sbase + HDR_ID_OFFSET, (cp->climit - cp->sbase) - HDR_ID_OFFSET, true, cp);
+ gc_mark_string(cp->sbase, (cp->climit - cp->sbase), true, cp);
}
}
@@ -63,11 +63,11 @@ typedef string_mark_unit bword;
static bool
gc_mark_string(const byte * ptr, uint size, bool set, const clump_t * cp)
{
- uint offset = (ptr - HDR_ID_OFFSET) - cp->sbase;
+ uint offset = ptr - cp->sbase;
bword *bp = (bword *) (cp->smark + ((offset & -bword_bits) >> 3));
uint bn = offset & (bword_bits - 1);
bword m = bword_1s << bn;
- uint left = size + HDR_ID_OFFSET;
+ uint left = size;
bword marks = 0;
bword_swap_bytes(m);
@@ -136,12 +136,12 @@ gc_string_mark(const byte * ptr, uint size, bool set, gc_state_t * gcst)
if (size == 0)
return false;
#define dmprintstr(mem)\
- dmputc(mem, '('); dmfwrite(mem, ptr - HDR_ID_OFFSET, min(size, 20));\
+ dmputc(mem, '('); dmfwrite(mem, ptr, min(size, 20));\
dmputs(mem, (size <= 20 ? ")" : "...)"))
- if (!(cp = gc_locate(ptr - HDR_ID_OFFSET, gcst))) { /* not in a clump */
+ if (!(cp = gc_locate(ptr, gcst))) { /* not in a clump */
#ifdef DEBUG
if (gs_debug_c('5')) {
- dmlprintf2(gcst->heap, "[5]"PRI_INTPTR"[%u]", (intptr_t)ptr - HDR_ID_OFFSET, size);
+ dmlprintf2(gcst->heap, "[5]"PRI_INTPTR"[%u]", (intptr_t)ptr, size);
dmprintstr(gcst->heap);
dmputs(gcst->heap, " not in a clump\n");
}
@@ -151,9 +151,9 @@ gc_string_mark(const byte * ptr, uint size, bool set, gc_state_t * gcst)
if (cp->smark == 0) /* not marking strings */
return false;
#ifdef DEBUG
- if (ptr - HDR_ID_OFFSET < cp->ctop) {
+ if (ptr < cp->ctop) {
lprintf4("String pointer "PRI_INTPTR"[%u] outside ["PRI_INTPTR".."PRI_INTPTR")\n",
- (intptr_t)ptr - HDR_ID_OFFSET, size, (intptr_t)cp->ctop, (intptr_t)cp->climit);
+ (intptr_t)ptr, size, (intptr_t)cp->ctop, (intptr_t)cp->climit);
return false;
} else if (ptr + size > cp->climit) { /*
* If this is the bottommost string in a clump that has
@@ -168,11 +168,11 @@ gc_string_mark(const byte * ptr, uint size, bool set, gc_state_t * gcst)
*/
const clump_t *scp = cp;
- while (ptr - HDR_ID_OFFSET == scp->climit && scp->outer != 0)
+ while (ptr == scp->climit && scp->outer != 0)
scp = scp->outer;
- if (ptr - HDR_ID_OFFSET + size > scp->climit) {
+ if (ptr + size > scp->climit) {
lprintf4("String pointer "PRI_INTPTR"[%u] outside ["PRI_INTPTR".."PRI_INTPTR")\n",
- (intptr_t)ptr - HDR_ID_OFFSET, size,
+ (intptr_t)ptr, size,
(intptr_t)scp->ctop, (intptr_t)scp->climit);
return false;
}
@@ -183,7 +183,7 @@ gc_string_mark(const byte * ptr, uint size, bool set, gc_state_t * gcst)
if (gs_debug_c('5')) {
dmlprintf4(gcst->heap, "[5]%s%smarked "PRI_INTPTR"[%u]",
(marks ? "" : "already "), (set ? "" : "un"),
- (intptr_t)ptr - HDR_ID_OFFSET, size);
+ (intptr_t)ptr, size);
dmprintstr(gcst->heap);
dmputc(gcst->heap, '\n');
}
@@ -291,7 +291,6 @@ igc_reloc_string(gs_string * sptr, gc_state_t * gcst)
return;
}
ptr = sptr->data;
- ptr -= HDR_ID_OFFSET;
if (!(cp = gc_locate(ptr, gcst))) /* not in a clump */
return;
@@ -322,7 +321,7 @@ igc_reloc_string(gs_string * sptr, gc_state_t * gcst)
reloc -= byte_count_one_bits(byt);
if_debug2('5', "[5]relocate string "PRI_INTPTR" to 0x%lx\n",
(intptr_t)ptr, (intptr_t)(cp->sdest - reloc));
- sptr->data = (cp->sdest - reloc) + HDR_ID_OFFSET;
+ sptr->data = (cp->sdest - reloc);
}
void
igc_reloc_const_string(gs_const_string * sptr, gc_state_t * gcst)
diff --git a/psi/imain.c b/psi/imain.c
index 72064aba..26585932 100644
--- a/psi/imain.c
+++ b/psi/imain.c
@@ -531,7 +531,7 @@ gs_main_init2(gs_main_instance * minst)
if (code >= 0) {
if (gs_debug_c(':'))
print_resource_usage(minst, &gs_imemory, "Start");
- gp_readline_init(&minst->readline_data, minst->heap);
+ gp_readline_init(&minst->readline_data, minst->heap); /* lgtm [cpp/useless-expression] */
}
fail:
diff --git a/psi/imainarg.c b/psi/imainarg.c
index f5fe1f3e..aaf41b6b 100644
--- a/psi/imainarg.c
+++ b/psi/imainarg.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 2001-2021 Artifex Software, Inc.
+/* Copyright (C) 2001-2022 Artifex Software, Inc.
All Rights Reserved.
This software is provided AS-IS with no warranty, either express or
@@ -833,7 +833,10 @@ run_stdin:
if (strlen(adef) == 10 && strncmp(adef, "OutputFile", 10) == 0 && strlen(eqp) > 0) {
code = gs_add_outputfile_control_path(minst->heap, eqp);
- if (code < 0) return code;
+ if (code < 0) {
+ arg_free((char *)adef, minst->heap);
+ return code;
+ }
}
ialloc_set_space(idmemory, avm_system);
diff --git a/psi/interp.c b/psi/interp.c
index 2cf9d4a6..b577f129 100644
--- a/psi/interp.c
+++ b/psi/interp.c
@@ -116,7 +116,9 @@ do_call_operator_verbose(op_proc_t op_proc, i_ctx_t *i_ctx_p)
#endif
/* Define debugging statistics (not threadsafe as uses globals) */
-#if defined(DEBUG) && !defined(GS_THREADSAFE)
+/* #define COLLECT_STATS_IDSTACK */
+
+#ifdef COLLECT_STATS_INTERP
struct stats_interp_s {
long top;
long lit, lit_array, exec_array, exec_operator, exec_name;
@@ -910,7 +912,8 @@ gs_errorinfo_put_string(i_ctx_t *i_ctx_p, const char *str)
/* If an error occurs, leave the current object in *perror_object */
/* and return a (negative) error code. */
static int
-interp(i_ctx_t **pi_ctx_p /* context for execution, updated if resched */,
+interp(/* lgtm [cpp/use-of-goto] */
+ i_ctx_t **pi_ctx_p /* context for execution, updated if resched */,
const ref * pref /* object to interpret */,
ref * perror_object)
{
diff --git a/psi/iparam.c b/psi/iparam.c
index 7fe1cb0d..c35b516e 100644
--- a/psi/iparam.c
+++ b/psi/iparam.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 2001-2021 Artifex Software, Inc.
+/* Copyright (C) 2001-2022 Artifex Software, Inc.
All Rights Reserved.
This software is provided AS-IS with no warranty, either express or
@@ -65,7 +65,7 @@ ref_to_key(const ref * pref, gs_param_key_t * key, iparam_list *plist)
int len;
byte *buf;
- gs_sprintf(istr, "%"PRIpsint, pref->value.intval);
+ gs_snprintf(istr, sizeof(istr), "%"PRIpsint, pref->value.intval);
len = strlen(istr);
/* GC will take care of freeing this: */
buf = gs_alloc_string(plist->memory, len, "ref_to_key");
diff --git a/psi/iref.h b/psi/iref.h
index 099ff93b..85cc97cf 100644
--- a/psi/iref.h
+++ b/psi/iref.h
@@ -1,4 +1,4 @@
-/* Copyright (C) 2001-2021 Artifex Software, Inc.
+/* Copyright (C) 2001-2022 Artifex Software, Inc.
All Rights Reserved.
This software is provided AS-IS with no warranty, either express or
@@ -405,6 +405,10 @@ typedef int (*op_proc_t)(i_ctx_t *i_ctx_p);
/* real_opproc is a holdover.... */
#define real_opproc(pref) ((pref)->value.opproc)
+typedef struct psi_device_ref_s {
+ struct gx_device_s *device;
+} psi_device_ref;
+
/* Object reference */
/*
* Note that because of the way packed arrays are represented,
@@ -446,7 +450,7 @@ struct ref_s {
ref_packed *writable_packed;
op_proc_t opproc;
struct stream_s *pfile;
- struct gx_device_s *pdevice;
+ struct psi_device_ref_s *pdevice;
obj_header_t *pstruct;
uint64_t dummy; /* force 16-byte ref on 32-bit platforms */
} value;
diff --git a/psi/iscan.c b/psi/iscan.c
index 11947354..3fc14af4 100644
--- a/psi/iscan.c
+++ b/psi/iscan.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 2001-2021 Artifex Software, Inc.
+/* Copyright (C) 2001-2022 Artifex Software, Inc.
All Rights Reserved.
This software is provided AS-IS with no warranty, either express or
@@ -44,16 +44,6 @@
#include "store.h"
#include "scanchar.h"
-/* Procedure for handling DSC comments if desired. */
-/* Set at initialization if a DSC handling module is included. */
-int (*gs_scan_dsc_proc) (const byte *, uint) = NULL;
-
-/* Procedure for handling all comments if desired. */
-/* Set at initialization if a comment handling module is included. */
-/* If both gs_scan_comment_proc and gs_scan_dsc_proc are set, */
-/* scan_comment_proc is called only for non-DSC comments. */
-int (*gs_scan_comment_proc) (const byte *, uint) = NULL;
-
/*
* Level 2 includes some changes in the scanner:
* - \ is always recognized in strings, regardless of the data source;
@@ -127,10 +117,11 @@ dynamic_grow(da_ptr pda, byte * next, uint max_size)
pda->next = next;
if (old_size >= max_size)
return_error(gs_error_limitcheck);
- while ((code = dynamic_resize(pda, new_size)) < 0 &&
- new_size > old_size
- ) { /* Try trimming down the requested new size. */
+ while ((code = dynamic_resize(pda, new_size)) < 0) {
+ /* Try trimming down the requested new size. */
new_size -= (new_size - old_size + 1) >> 1;
+ if (new_size <= old_size)
+ break;
}
return code;
}
@@ -355,10 +346,6 @@ scan_comment(i_ctx_t *i_ctx_p, ref *pref, scanner_state *pstate,
dmputs(imemory, "\n");
}
#endif
- if (gs_scan_dsc_proc != NULL) {
- code = gs_scan_dsc_proc(base, len);
- return (code < 0 ? code : 0);
- }
if (pstate->s_options & SCAN_PROCESS_DSC_COMMENTS) {
code = scan_DSC_Comment;
goto comment;
@@ -374,10 +361,6 @@ scan_comment(i_ctx_t *i_ctx_p, ref *pref, scanner_state *pstate,
}
}
#endif
- if (gs_scan_comment_proc != NULL) {
- code = gs_scan_comment_proc(base, len);
- return (code < 0 ? code : 0);
- }
if (pstate->s_options & SCAN_PROCESS_COMMENTS) {
code = scan_Comment;
goto comment;
diff --git a/psi/iscan.h b/psi/iscan.h
index 343239df..b23845d1 100644
--- a/psi/iscan.h
+++ b/psi/iscan.h
@@ -1,4 +1,4 @@
-/* Copyright (C) 2001-2021 Artifex Software, Inc.
+/* Copyright (C) 2001-2022 Artifex Software, Inc.
All Rights Reserved.
This software is provided AS-IS with no warranty, either express or
@@ -188,18 +188,4 @@ int gs_scanner_error_object(i_ctx_t *i_ctx_p, const scanner_state *pstate,
int gs_scan_handle_refill(i_ctx_t *i_ctx_p, scanner_state * pstate,
bool save, op_proc_t cont);
-/*
- * Define the procedure "hook" for parsing DSC comments. If not NULL,
- * this procedure is called for every DSC comment seen by the scanner.
- */
-extern int (*gs_scan_dsc_proc) (const byte *, uint);
-
-/*
- * Define the procedure "hook" for parsing general comments. If not NULL,
- * this procedure is called for every comment seen by the scanner.
- * If both gs_scan_dsc_proc and gs_scan_comment_proc are set,
- * gs_scan_comment_proc is called only for non-DSC comments.
- */
-extern int (*gs_scan_comment_proc) (const byte *, uint);
-
#endif /* iscan_INCLUDED */
diff --git a/psi/iutil.c b/psi/iutil.c
index ea582e6e..39a0a316 100644
--- a/psi/iutil.c
+++ b/psi/iutil.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 2001-2021 Artifex Software, Inc.
+/* Copyright (C) 2001-2022 Artifex Software, Inc.
All Rights Reserved.
This software is provided AS-IS with no warranty, either express or
@@ -176,7 +176,7 @@ obj_eq(const gs_memory_t *mem, const ref * pref1, const ref * pref2)
return (!bytes_compare(pref1->value.bytes, r_size(pref1),
pref2->value.bytes, r_size(pref2)));
case t_device:
- return (pref1->value.pdevice == pref2->value.pdevice);
+ return (pref1->value.pdevice->device == pref2->value.pdevice->device);
case t_struct:
case t_astruct:
case t_pdfctx:
@@ -304,7 +304,7 @@ obj_string_data(const gs_memory_t *mem, const ref *op, const byte **pchars, uint
* repeatedly to print on a stream, which may require suspending at any
* point to handle stream callouts.
*/
-static void ensure_dot(char *);
+static void ensure_dot(char *, size_t);
int
obj_cvp(const ref * op, byte * str, uint len, uint * prlen,
int full_print, uint start_pos, const gs_memory_t *mem, bool restart)
@@ -340,15 +340,15 @@ obj_cvp(const ref * op, byte * str, uint len, uint * prlen,
*/
float value = op->value.realval;
float scanned;
- code = gs_sprintf(buf, "%g", value);
+ code = gs_snprintf(buf, sizeof(buf), "%g", value);
if (code <= 0)
return_error(gs_error_undefinedresult);
code = sscanf(buf, "%f", &scanned);
if (code <= 0)
return_error(gs_error_undefinedresult);
if (scanned != value)
- gs_sprintf(buf, "%.9g", value);
- ensure_dot(buf);
+ gs_snprintf(buf, sizeof(buf), "%.9g", value);
+ ensure_dot(buf, 256);
goto rs;
}
case t_operator:
@@ -502,7 +502,7 @@ other:
data = (const byte *)(op->value.boolval ? "true" : "false");
break;
case t_integer:
- gs_sprintf(buf, "%"PRIpsint, op->value.intval);
+ gs_snprintf(buf, sizeof(buf), "%"PRIpsint, op->value.intval);
break;
case t_string:
check_read(*op);
@@ -537,7 +537,7 @@ other:
break;
}
/* Internal operator, no name. */
- gs_sprintf(buf, "@"PRI_INTPTR, (intptr_t) op->value.opproc);
+ gs_snprintf(buf, sizeof(buf), "@"PRI_INTPTR, (intptr_t) op->value.opproc);
break;
}
case t_real:
@@ -548,11 +548,11 @@ other:
* library implementation. Work around this here.
*/
if (op->value.realval == (float)0.0001) {
- strcpy(buf, "0.0001");
+ strncpy(buf, "0.0001", 256);
} else {
- gs_sprintf(buf, "%g", op->value.realval);
+ gs_snprintf(buf, sizeof(buf), "%g", op->value.realval);
}
- ensure_dot(buf);
+ ensure_dot(buf, 256);
break;
default:
data = (const byte *)"--nostringval--";
@@ -573,17 +573,18 @@ nl: if (size < start_pos)
* Re-format the exponent to satisfy Genoa CET test.
*/
static void
-ensure_dot(char *buf)
+ensure_dot(char *buf, size_t buflen)
{
char *pe = strchr(buf, 'e');
if (pe) {
int i;
(void)sscanf(pe + 1, "%d", &i);
+ buflen -= (size_t)(pe - buf);
/* MSVC .net 2005 express doesn't support "%+02d" */
if (i >= 0)
- gs_sprintf(pe + 1, "+%02d", i);
+ gs_snprintf(pe + 1, buflen, "+%02d", i);
else
- gs_sprintf(pe + 1, "-%02d", -i);
+ gs_snprintf(pe + 1, buflen, "-%02d", -i);
} else if (strchr(buf, '.') == NULL) {
strcat(buf, ".0");
}
diff --git a/psi/iutil2.c b/psi/iutil2.c
index 77b09918..46a752f2 100644
--- a/psi/iutil2.c
+++ b/psi/iutil2.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 2001-2021 Artifex Software, Inc.
+/* Copyright (C) 2001-2022 Artifex Software, Inc.
All Rights Reserved.
This software is provided AS-IS with no warranty, either express or
@@ -56,7 +56,7 @@ param_read_password(gs_param_list * plist, const char *kstr, password * ppass)
code = param_read_long(plist, kstr, &ipass);
if (code != 0) /* error or missing */
return code;
- gs_sprintf((char *)ppass->data, "%ld", ipass);
+ gs_snprintf((char *)ppass->data, MAX_PASSWORD, "%ld", ipass);
ppass->size = strlen((char *)ppass->data);
return 0;
}
diff --git a/psi/msvc.mak b/psi/msvc.mak
index 478972b2..cdf30fa7 100644
--- a/psi/msvc.mak
+++ b/psi/msvc.mak
@@ -1,4 +1,4 @@
-# Copyright (C) 2001-2021 Artifex Software, Inc.
+# Copyright (C) 2001-2022 Artifex Software, Inc.
# All Rights Reserved.
#
# This software is provided AS-IS with no warranty, either express or
@@ -48,7 +48,7 @@ DEBUGSYM=1
DEBUG=0
!endif
!ifndef TDEBUG
-TDEBUG=1
+TDEBUG=0
!endif
!ifndef DEBUGSYM
DEBUGSYM=1
@@ -829,6 +829,10 @@ LCUPSBUILDTYPE=win
CUPS_CC=$(CC) $(CFLAGS) -DWIN32
!endif
+!ifndef LIBCUPSSRCDIR
+LIBCUPSSRCDIR=cups
+!endif
+
!ifndef LCUPSISRCDIR
SHARE_LCUPSI=0
LCUPSI_NAME=
@@ -1031,6 +1035,11 @@ MSVC_VERSION=14
MSVC_VERSION=15
MS_TOOLSET_VERSION=14.16.27034
!endif
+!if "$(_NMAKE_VER)" == "14.16.27043.0"
+# VS2017 or VS2019 (Toolset v141)
+MSVC_VERSION=15
+MS_TOOLSET_VERSION=14.16.27034
+!endif
!if "$(_NMAKE_VER)" == "14.24.28314.0"
# VS2019 (Toolset v142)
MSVC_VERSION=16
@@ -1121,6 +1130,26 @@ MS_TOOLSET_VERSION=14.29.30037
MSVC_VERSION=16
MS_TOOLSET_VERSION=14.29.30133
!endif
+!if "$(_NMAKE_VER)" == "14.29.30136.0"
+# VS2019 (Toolset v142)
+MSVC_VERSION=16
+MS_TOOLSET_VERSION=14.29.30133
+!endif
+!if "$(_NMAKE_VER)" == "14.29.30137.0"
+# VS2019 (Toolset v142)
+MSVC_VERSION=16
+MS_TOOLSET_VERSION=14.29.30133
+!endif
+!if "$(_NMAKE_VER)" == "14.29.30139.0"
+# VS2019 (Toolset v142)
+MSVC_VERSION=16
+MS_TOOLSET_VERSION=14.29.30133
+!endif
+!if "$(_NMAKE_VER)" == "14.29.30140.0"
+# VS2019 (Toolset v142)
+MSVC_VERSION=16
+MS_TOOLSET_VERSION=14.29.30133
+!endif
!endif
!ifndef MSVC_VERSION
@@ -1756,8 +1785,8 @@ DEVICE_DEVS9=$(DD)pbm.dev $(DD)pbmraw.dev $(DD)pgm.dev $(DD)pgmraw.dev $(DD)pgnm
DEVICE_DEVS10=$(DD)tiffcrle.dev $(DD)tiffg3.dev $(DD)tiffg32d.dev $(DD)tiffg4.dev $(DD)tifflzw.dev $(DD)tiffpack.dev
DEVICE_DEVS11=$(DD)bmpmono.dev $(DD)bmpgray.dev $(DD)bmp16.dev $(DD)bmp256.dev $(DD)bmp16m.dev $(DD)tiff12nc.dev $(DD)tiff24nc.dev $(DD)tiff48nc.dev $(DD)tiffgray.dev $(DD)tiff32nc.dev $(DD)tiff64nc.dev $(DD)tiffsep.dev $(DD)tiffsep1.dev $(DD)tiffscaled.dev $(DD)tiffscaled8.dev $(DD)tiffscaled24.dev $(DD)tiffscaled32.dev $(DD)tiffscaled4.dev
DEVICE_DEVS12=$(DD)bit.dev $(DD)bitrgb.dev $(DD)bitcmyk.dev $(DD)bitrgbtags.dev $(DD)chameleon.dev
-DEVICE_DEVS13=$(DD)pngmono.dev $(DD)pngmonod.dev $(DD)pnggray.dev $(DD)png16.dev $(DD)png256.dev $(DD)png48.dev $(DD)png16m.dev $(DD)pngalpha.dev $(DD)fpng.dev $(DD)psdcmykog.dev
-DEVICE_DEVS14=$(DD)jpeg.dev $(DD)jpeggray.dev $(DD)jpegcmyk.dev $(DD)pdfimage8.dev $(DD)pdfimage24.dev $(DD)pdfimage32.dev $(DD)PCLm.dev $(DD)imagen.dev
+DEVICE_DEVS13=$(DD)pngmono.dev $(DD)pngmonod.dev $(DD)pnggray.dev $(DD)png16.dev $(DD)png256.dev $(DD)png48.dev $(DD)png16m.dev $(DD)pngalpha.dev $(DD)png16malpha.dev $(DD)fpng.dev $(DD)psdcmykog.dev
+DEVICE_DEVS14=$(DD)jpeg.dev $(DD)jpeggray.dev $(DD)jpegcmyk.dev $(DD)pdfimage8.dev $(DD)pdfimage24.dev $(DD)pdfimage32.dev $(DD)PCLm.dev $(DD)PCLm8.dev $(DD)imagen.dev
DEVICE_DEVS15=$(DD)pdfwrite.dev $(DD)ps2write.dev $(DD)eps2write.dev $(DD)txtwrite.dev $(DD)pxlmono.dev $(DD)pxlcolor.dev $(DD)xpswrite.dev $(DD)inkcov.dev $(DD)ink_cov.dev $(EXTRACT_DEVS)
DEVICE_DEVS16=$(DD)bbox.dev $(DD)plib.dev $(DD)plibg.dev $(DD)plibm.dev $(DD)plibc.dev $(DD)plibk.dev $(DD)plan.dev $(DD)plang.dev $(DD)planm.dev $(DD)planc.dev $(DD)plank.dev $(DD)planr.dev
!if "$(WITH_CUPS)" == "1"
@@ -1775,7 +1804,7 @@ DEVICE_DEVS17=$(DD)ljet3.dev $(DD)ljet3d.dev $(DD)ljet4pjl.dev $(DD)ljet4.dev $(
DEVICE_DEVS18=$(DD)pj.dev $(DD)pjxl.dev $(DD)pjxl300.dev $(DD)jetp3852.dev $(DD)r4081.dev
DEVICE_DEVS19=$(DD)lbp8.dev $(DD)m8510.dev $(DD)necp6.dev $(DD)bjc600.dev $(DD)bjc800.dev
DEVICE_DEVS20=$(DD)pnm.dev $(DD)pnmraw.dev $(DD)ppm.dev $(DD)ppmraw.dev $(DD)pamcmyk32.dev $(DD)pamcmyk4.dev $(DD)pnmcmyk.dev $(DD)pam.dev
-DEVICE_DEVS21=$(DD)spotcmyk.dev $(DD)devicen.dev $(DD)bmpsep1.dev $(DD)bmpsep8.dev $(DD)bmp16m.dev $(DD)bmp32b.dev $(DD)psdcmyk.dev $(DD)psdrgb.dev $(DD)psdcmyk16.dev $(DD)psdrgb16.dev
+DEVICE_DEVS21=$(DD)spotcmyk.dev $(DD)devicen.dev $(DD)bmpsep1.dev $(DD)bmpsep8.dev $(DD)bmp16m.dev $(DD)bmp32b.dev $(DD)psdcmyk.dev $(DD)psdrgb.dev $(DD)psdcmyk16.dev $(DD)psdrgb16.dev $(DD)psdcmyktags.dev $(DD)psdcmyktags16.dev
!endif
CONTRIB_DEVS=$(DD)pcl3.dev $(DD)hpdjplus.dev $(DD)hpdjportable.dev $(DD)hpdj310.dev $(DD)hpdj320.dev $(DD)hpdj340.dev $(DD)hpdj400.dev $(DD)hpdj500.dev $(DD)hpdj500c.dev $(DD)hpdj510.dev $(DD)hpdj520.dev $(DD)hpdj540.dev $(DD)hpdj550c.dev $(DD)hpdj560c.dev $(DD)hpdj600.dev $(DD)hpdj660c.dev $(DD)hpdj670c.dev $(DD)hpdj680c.dev $(DD)hpdj690c.dev $(DD)hpdj850c.dev $(DD)hpdj855c.dev $(DD)hpdj870c.dev $(DD)hpdj890c.dev $(DD)hpdj1120c.dev $(DD)cdj670.dev $(DD)cdj850.dev $(DD)cdj880.dev $(DD)cdj890.dev $(DD)cdj970.dev $(DD)cdj1600.dev $(DD)cdnj500.dev $(DD)chp2200.dev $(DD)lips3.dev $(DD)lxm5700m.dev $(DD)lxm3200.dev $(DD)lex2050.dev $(DD)lxm3200.dev $(DD)lex5700.dev $(DD)lex7000.dev $(DD)okiibm.dev $(DD)oki182.dev $(DD)oki4w.dev $(DD)gdi.dev $(DD)samsunggdi.dev $(DD)dl2100.dev $(DD)la50.dev $(DD)la70.dev $(DD)la75.dev $(DD)la75plus.dev $(DD)ln03.dev $(DD)xes.dev $(DD)md2k.dev $(DD)md5k.dev $(DD)lips4.dev $(DD)lips4v.dev $(DD)bj10v.dev $(DD)bj10vh.dev $(DD)md50Mono.dev $(DD)md50Eco.dev $(DD)md1xMono.dev $(DD)lp2000.dev $(DD)escpage.dev $(DD)ap3250.dev $(DD)npdl.dev $(DD)rpdl.dev $(DD)fmpr.dev $(DD)fmlbp.dev $(DD)ml600.dev $(DD)jj100.dev $(DD)lbp310.dev $(DD)lbp320.dev $(DD)mj700v2c.dev $(DD)mj500c.dev $(DD)mj6000c.dev $(DD)mj8000c.dev $(DD)pr201.dev $(DD)pr150.dev $(DD)pr1000.dev $(DD)pr1000_4.dev $(DD)lips2p.dev $(DD)bjc880j.dev $(DD)bjcmono.dev $(DD)bjcgray.dev $(DD)bjccmyk.dev $(DD)bjccolor.dev $(DD)escp.dev $(DD)lp8000.dev $(DD)lq850.dev $(DD)photoex.dev $(DD)st800.dev $(DD)stcolor.dev $(DD)alc1900.dev $(DD)alc2000.dev $(DD)alc4000.dev $(DD)alc4100.dev $(DD)alc8500.dev $(DD)alc8600.dev $(DD)alc9100.dev $(DD)lp3000c.dev $(DD)lp8000c.dev $(DD)lp8200c.dev $(DD)lp8300c.dev $(DD)lp8500c.dev $(DD)lp8800c.dev $(DD)lp9000c.dev $(DD)lp9200c.dev $(DD)lp9500c.dev $(DD)lp9800c.dev $(DD)lps6500.dev $(DD)epl2050.dev $(DD)epl2050p.dev $(DD)epl2120.dev $(DD)epl2500.dev $(DD)epl2750.dev $(DD)epl5800.dev $(DD)epl5900.dev $(DD)epl6100.dev $(DD)epl6200.dev $(DD)lp1800.dev $(DD)lp1900.dev $(DD)lp2200.dev $(DD)lp2400.dev $(DD)lp2500.dev $(DD)lp7500.dev $(DD)lp7700.dev $(DD)lp7900.dev $(DD)lp8100.dev $(DD)lp8300f.dev $(DD)lp8400f.dev $(DD)lp8600.dev $(DD)lp8600f.dev $(DD)lp8700.dev $(DD)lp8900.dev $(DD)lp9000b.dev $(DD)lp9100.dev $(DD)lp9200b.dev $(DD)lp9300.dev $(DD)lp9400.dev $(DD)lp9600.dev $(DD)lp9600s.dev $(DD)lps4500.dev $(DD)eplcolor.dev $(DD)eplmono.dev $(DD)hl7x0.dev $(DD)hl1240.dev $(DD)hl1250.dev $(DD)appledmp.dev $(DD)iwhi.dev $(DD)iwlo.dev $(DD)iwlq.dev $(DD)atx23.dev $(DD)atx24.dev $(DD)atx38.dev $(DD)itk24i.dev $(DD)itk38.dev $(DD)coslw2p.dev $(DD)coslwxl.dev $(DD)ccr.dev $(DD)cif.dev $(DD)inferno.dev $(DD)mgr4.dev $(DD)mgr8.dev $(DD)mgrgray2.dev $(DD)mgrgray4.dev $(DD)mgrgray8.dev $(DD)mgrmono.dev $(DD)miff24.dev $(DD)plan9bm.dev $(DD)xcf.dev
@@ -1863,109 +1892,31 @@ INT_ARCHIVE_ALL=$(PSOBJ)imainarg.$(OBJ) $(PSOBJ)imain.$(OBJ) $(GLOBJ)iconfig.$(O
$(INT_ARCHIVE_SOME)
!if $(TDEBUG) != 0
-$(PSGEN)lib.rsp: $(TOP_MAKEFILES)
- echo /NODEFAULTLIB:LIBC.lib > $(PSGEN)lib.rsp
- echo /NODEFAULTLIB:LIBCMT.lib >> $(PSGEN)lib.rsp
+WIN_LIBS=
!ifdef METRO
- echo kernel32.lib runtimeobject.lib rpcrt4.lib >> $(PSGEN)lib.rsp
-!else
- echo LIBCMTD.lib >> $(PSGEN)lib.rsp
+WIN_LIBS=$(WIN_LIBS) kernel32.lib runtimeobject.lib rpcrt4.lib
!endif
!else
-$(PSGEN)lib.rsp: $(TOP_MAKEFILES)
- echo /NODEFAULTLIB:LIBC.lib > $(PSGEN)lib.rsp
- echo /NODEFAULTLIB:LIBCMTD.lib >> $(PSGEN)lib.rsp
+WIN_LIBS=
!ifdef METRO
- echo kernel32.lib runtimeobject.lib rpcrt4.lib >> $(PSGEN)lib.rsp
-!else
- echo LIBCMT.lib >> $(PSGEN)lib.rsp
+WIN_LIBS=$(WIN_LIBS) kernel32.lib runtimeobject.lib rpcrt4.lib
!endif
!endif
-# a bit naff - find some way to combine above and this....
-!if $(TDEBUG) != 0
-$(PCLGEN)pcllib.rsp: $(TOP_MAKEFILES)
- echo /NODEFAULTLIB:LIBC.lib > $(PCLGEN)pcllib.rsp
- echo /NODEFAULTLIB:LIBCMT.lib >> $(PCLGEN)pcllib.rsp
-!ifdef METRO
- echo kernel32.lib runtimeobject.lib rpcrt4.lib >> $(PCLGEN)pcllib.rsp
-!else
- echo LIBCMTD.lib >> $(PCLGEN)pcllib.rsp
-!endif
-!else
-$(PCLGEN)pcllib.rsp: $(TOP_MAKEFILES)
- echo /NODEFAULTLIB:LIBC.lib > $(PCLGEN)pcllib.rsp
- echo /NODEFAULTLIB:LIBCMTD.lib >> $(PCLGEN)pcllib.rsp
-!ifdef METRO
- echo kernel32.lib runtimeobject.lib rpcrt4.lib >> $(PCLGEN)pcllib.rsp
-!else
- echo LIBCMT.lib >> $(PCLGEN)pcllib.rsp
-!endif
-!endif
+$(PSGEN)lib.rsp: $(TOP_MAKEFILES)
+ echo "$(WIN_LIBS)" > $(PSGEN)lib.rsp
-!if $(TDEBUG) != 0
+$(PCLGEN)pcllib.rsp: $(TOP_MAKEFILES)
+ echo "$(WIN_LIBS)" > $(PCLGEN)pcllib.rsp
$(XPSGEN)xpslib.rsp: $(TOP_MAKEFILES)
- echo /NODEFAULTLIB:LIBC.lib > $(XPSGEN)xpslib.rsp
- echo /NODEFAULTLIB:LIBCMT.lib >> $(XPSGEN)xpslib.rsp
-!ifdef METRO
- echo kernel32.lib runtimeobject.lib rpcrt4.lib >> $(XPSGEN)xpslib.rsp
-!else
- echo LIBCMTD.lib >> $(XPSGEN)xpslib.rsp
-!endif
-!else
-$(XPSGEN)xpslib.rsp: $(TOP_MAKEFILES)
- echo /NODEFAULTLIB:LIBC.lib > $(XPSGEN)xpslib.rsp
- echo /NODEFAULTLIB:LIBCMTD.lib >> $(XPSGEN)xpslib.rsp
-!ifdef METRO
- echo kernel32.lib runtimeobject.lib rpcrt4.lib >> $(XPSGEN)xpslib.rsp
-!else
- echo LIBCMT.lib >> $(XPSGEN)xpslib.rsp
-!endif
-!endif
-
-!if $(TDEBUG) != 0
+ echo "$(WIN_LIBS)" > $(XPSGEN)xpslib.rsp
$(PDFGEN)pdflib.rsp: $(TOP_MAKEFILES)
- echo /NODEFAULTLIB:LIBC.lib > $(PDFGEN)pdflib.rsp
- echo /NODEFAULTLIB:LIBCMT.lib >> $(PDFGEN)pdflib.rsp
-!ifdef METRO
- echo kernel32.lib runtimeobject.lib rpcrt4.lib >> $(PDFGEN)pdflib.rsp
-!else
- echo LIBCMTD.lib >> $(PDFGEN)pdflib.rsp
-!endif
-!else
-$(PDFGEN)pdflib.rsp: $(TOP_MAKEFILES)
- echo /NODEFAULTLIB:LIBC.lib > $(PDFGEN)pdflib.rsp
- echo /NODEFAULTLIB:LIBCMTD.lib >> $(PDFGEN)pdflib.rsp
-!ifdef METRO
- echo kernel32.lib runtimeobject.lib rpcrt4.lib >> $(PDFGEN)pdflib.rsp
-!else
- echo LIBCMT.lib >> $(PDFGEN)pdflib.rsp
-!endif
-!endif
-
-!if $(TDEBUG) != 0
+ echo "$(WIN_LIBS)" > $(PDFGEN)pdflib.rsp
$(GPDLGEN)gpdllib.rsp: $(TOP_MAKEFILES)
- echo /NODEFAULTLIB:LIBC.lib > $(XPSGEN)gpdllib.rsp
- echo /NODEFAULTLIB:LIBCMT.lib >> $(XPSGEN)gpdllib.rsp
-!ifdef METRO
- echo kernel32.lib runtimeobject.lib rpcrt4.lib >> $(XPSGEN)gpdllib.rsp
-!else
- echo LIBCMTD.lib >> $(XPSGEN)gpdllib.rsp
-!endif
-!else
-$(GPDLGEN)gpdllib.rsp: $(TOP_MAKEFILES)
- echo /NODEFAULTLIB:LIBC.lib > $(XPSGEN)gpdllib.rsp
- echo /NODEFAULTLIB:LIBCMTD.lib >> $(XPSGEN)gpdllib.rsp
-!ifdef METRO
- echo kernel32.lib runtimeobject.lib rpcrt4.lib >> $(XPSGEN)gpdllib.rsp
-!else
- echo LIBCMT.lib >> $(XPSGEN)gpdllib.rsp
-!endif
-!endif
-
+ echo "$(WIN_LIBS)" > $(GPDLGEN)gpdllib.rsp
!if $(MAKEDLL)
# The graphical small EXE loader
@@ -2120,7 +2071,8 @@ $(GPDF_XE): $(GPDFDLL_DLL) $(DWMAINOBJS) $(GS_OBJ).res $(TOP_MAKEFILES)
del $(PDFGEN)gpdfwin.rsp
-$(GPDLDLL_DLL): $(ECHOGS_XE) $(GSDLL_OBJ).res $(LIBCTR) $(LIB_ALL) $(PCL_DEVS_ALL) $(XPS_DEVS_ALL) $(GS_ALL) \
+$(GPDLDLL_DLL): $(ECHOGS_XE) $(GSDLL_OBJ).res $(LIBCTR) $(LIB_ALL) $(PCL_DEVS_ALL) $(XPS_DEVS_ALL) $(PDF_DEVS_ALL) \
+ $(GS_ALL) \
$(GPDLGEN)gpdllib.rsp \
$(GPDLOBJ)pdlromfs$(COMPILE_INITS).$(OBJ) \
$(GPDLOBJ)pdlromfs$(COMPILE_INITS)c0.$(OBJ) \
@@ -2128,11 +2080,11 @@ $(GPDLDLL_DLL): $(ECHOGS_XE) $(GSDLL_OBJ).res $(LIBCTR) $(LIB_ALL) $(PCL_DEVS_AL
$(GPDLOBJ)pdlromfs$(COMPILE_INITS)c2.$(OBJ) \
$(GPDLOBJ)pdlromfs$(COMPILE_INITS)c3.$(OBJ) \
$(ld_tr) $(gpdl_tr) $(MAIN_OBJ) $(XPS_TOP_OBJS) \
- $(GPDL_PSI_TOP_OBJS) $(PCL_PXL_TOP_OBJS) $(PSI_TOP_OBJ) $(XPS_TOP_OBJ) \
+ $(GPDL_PSI_TOP_OBJS) $(PCL_PXL_TOP_OBJS) $(PSI_TOP_OBJ) $(XPS_TOP_OBJ) $(PDF_TOP_OBJ) \
$(REALMAIN_OBJ) $(MAIN_OBJ) $(XOBJS) $(INT_ARCHIVE_SOME) $(TOP_MAKEFILES)
echo Linking $(GPDLDLL) $(GPDLDLL_DLL) $(METRO)
copy $(gpdlld_tr) $(GPDLGEN)gpdlwin.tr
- echo $(MAIN_OBJ) $(GPDL_PSI_TOP_OBJS) $(PCL_PXL_TOP_OBJS) $(PSI_TOP_OBJ) $(XPS_TOP_OBJ) $(XOBJS) >> $(GPDLGEN)gpdlwin.tr
+ echo $(MAIN_OBJ) $(GPDL_PSI_TOP_OBJS) $(PCL_PXL_TOP_OBJS) $(PSI_TOP_OBJ) $(XPS_TOP_OBJ) $(PDF_TOP_OBJ) $(XOBJS) >> $(GPDLGEN)gpdlwin.tr
echo $(PCLOBJ)pdlromfs$(COMPILE_INITS).$(OBJ) >> $(GPDLGEN)gpdlwin.tr
echo $(PCLOBJ)pdlromfs$(COMPILE_INITS)c0.$(OBJ) >> $(GPDLGEN)gpdlwin.tr
echo $(PCLOBJ)pdlromfs$(COMPILE_INITS)c1.$(OBJ) >> $(GPDLGEN)gpdlwin.tr
@@ -2263,13 +2215,14 @@ $(GPDF_XE): $(ECHOGS_XE) $(LIBCTR) $(LIB_ALL) $(WINMAINOBJS) $(PDF_DEVS_ALL) $(P
del $(XPSGEN)pdfwin.rsp
del $(XPSGEN)gpdfwin.tr
-$(GPDL_XE): $(ECHOGS_XE) $(ld_tr) $(gpdl_tr) $(LIBCTR) $(LIB_ALL) $(WINMAINOBJS) $(XPS_DEVS_ALL) $(PCL_DEVS_ALL) $(GS_ALL) \
+$(GPDL_XE): $(ECHOGS_XE) $(ld_tr) $(gpdl_tr) $(LIBCTR) $(LIB_ALL) $(WINMAINOBJS) $(XPS_DEVS_ALL) $(PCL_DEVS_ALL) $(PDF_DEVS_ALL) \
+ $(GS_ALL) \
$(GPDLGEN)gpdllib.rsp $(GPDLOBJ)pdlromfs$(COMPILE_INITS).$(OBJ) \
- $(GPDL_PSI_TOP_OBJS) $(PCL_PXL_TOP_OBJS) $(PSI_TOP_OBJ) $(XPS_TOP_OBJ) \
+ $(GPDL_PSI_TOP_OBJS) $(PCL_PXL_TOP_OBJS) $(PSI_TOP_OBJ) $(XPS_TOP_OBJ) $(PDF_TOP_OBJ) \
$(MAIN_OBJ) $(XOBJS) $(INT_ARCHIVE_SOME) \
$(TOP_MAKEFILES)
copy $(gpdlld_tr) $(GPDLGEN)gpdlwin.tr
- echo $(WINMAINOBJS) $(MAIN_OBJ) $(GPDL_PSI_TOP_OBJS) $(PCL_PXL_TOP_OBJS) $(PSI_TOP_OBJ) $(XPS_TOP_OBJ) $(XOBJS) >> $(GPDLGEN)gpdlwin.tr
+ echo $(WINMAINOBJS) $(MAIN_OBJ) $(GPDL_PSI_TOP_OBJS) $(PCL_PXL_TOP_OBJS) $(PSI_TOP_OBJ) $(XPS_TOP_OBJ) $(PDF_TOP_OBJ) $(XOBJS) >> $(GPDLGEN)gpdlwin.tr
echo $(PCLOBJ)pdlromfs$(COMPILE_INITS).$(OBJ) >> $(GPDLGEN)gpdlwin.tr
echo /SUBSYSTEM:CONSOLE$(SUBSUBSYS) > $(GPDLGEN)gpdlwin.rsp
!if "$(PROFILE)"=="1"
diff --git a/psi/nsisinst.nsi b/psi/nsisinst.nsi
index cd983927..404747b5 100644
--- a/psi/nsisinst.nsi
+++ b/psi/nsisinst.nsi
@@ -30,9 +30,19 @@
; hand, it removes the short-cuts on Uninstall (which the Winzipse-based
; installer doesn't do) and also does not leave behind empty directories.
+; Requirements:
+; NSIS 3.0+
+; EnVar plug-in from https://nsis.sourceforge.io/EnVar_plug-in
+
; Newer nsis releases deprecate ansi encoding, require Unicode
Unicode True
+!include 'LogicLib.nsh'
+
+SetCompressor /SOLID /FINAL lzma
+XPStyle on
+CRCCheck on
+
; the following is from: http://nsis.sourceforge.net/StrRep
!define StrRep "!insertmacro StrRep"
!macro StrRep output string old new
@@ -100,6 +110,16 @@ Unicode True
!macroend
!insertmacro Func_StrRep ""
+Function WritePath
+ EnVar::SetHKLM
+ EnVar::AddValue "PATH" "$INSTDIR\bin"
+FunctionEnd
+
+Function un.WritePath
+ EnVar::SetHKLM
+ EnVar::DeleteValue "PATH" "$INSTDIR\bin"
+FunctionEnd
+
!ifndef TARGET
!define TARGET gs899w32
!endif
@@ -113,10 +133,6 @@ Unicode True
!define COMPILE_INITS 0
!endif
-SetCompressor /SOLID /FINAL lzma
-XPStyle on
-CRCCheck on
-
!include "MUI2.nsh"
; for detecting if running on x64 machine.
!include "x64.nsh"
@@ -201,11 +217,11 @@ Section "" ; (default section)
SetOutPath "$INSTDIR"
CreateDirectory "$INSTDIR\bin"
; add files / whatever that need to be installed here.
-File /r /x arch /x base /x cups /x contrib /x devices /x expat /x freetype /x gpdl /x ijs /x ios /x jbig2dec /x jpeg /x jpegxr /x lcms2mt /x lib /x libpng /x man /x obj /x openjpeg /x pcl /x psi /x tiff /x toolbin /x windows /x xps /x zlib doc
-File /r /x arch /x base /x cups /x contrib /x devices /x expat /x freetype /x gpdl /x ijs /x ios /x jbig2dec /x jpeg /x jpegxr /x lcms2mt /x lib /x libpng /x man /x obj /x openjpeg /x pcl /x psi /x tiff /x toolbin /x windows /x xps /x zlib examples
-File /r /x arch /x base /x cups /x contrib /x devices /x expat /x freetype /x gpdl /x ijs /x ios /x jbig2dec /x jpeg /x jpegxr /x lcms2mt /x libpng /x man /x obj /x openjpeg /x pcl /x psi /x tiff /x toolbin /x windows /x xps /x zlib /x lib/gssetgs.bat lib
-File /r /x arch /x base /x cups /x contrib /x devices /x expat /x freetype /x gpdl /x ijs /x ios /x jbig2dec /x jpeg /x jpegxr /x lcms2mt /x lib /x libpng /x man /x obj /x openjpeg /x pcl /x psi /x tiff /x toolbin /x windows /x xps /x zlib Resource
-File /r /x arch /x base /x cups /x contrib /x devices /x expat /x freetype /x gpdl /x ijs /x ios /x jbig2dec /x jpeg /x jpegxr /x lcms2mt /x lib /x libpng /x man /x obj /x openjpeg /x pcl /x psi /x tiff /x toolbin /x windows /x xps /x zlib iccprofiles
+File /r /x arch /x base /x cups /x contrib /x devices /x expat /x freetype /x gpdl /x ijs /x ios /x jbig2dec /x jpeg /x jpegxr /x lcms2mt /x lib /x libpng /x man /x obj /x openjpeg /x pcl /x psi /x tiff /x toolbin /x windows /x xps /x zlib /x tesseract /x leptonica /x extract /x cal doc
+File /r /x arch /x base /x cups /x contrib /x devices /x expat /x freetype /x gpdl /x ijs /x ios /x jbig2dec /x jpeg /x jpegxr /x lcms2mt /x lib /x libpng /x man /x obj /x openjpeg /x pcl /x psi /x tiff /x toolbin /x windows /x xps /x zlib /x tesseract /x leptonica /x extract /x cal examples
+File /r /x arch /x base /x cups /x contrib /x devices /x expat /x freetype /x gpdl /x ijs /x ios /x jbig2dec /x jpeg /x jpegxr /x lcms2mt /x libpng /x man /x obj /x openjpeg /x pcl /x psi /x tiff /x toolbin /x windows /x xps /x zlib /x tesseract /x leptonica /x extract /x cal /x lib/gssetgs.bat lib
+File /r /x arch /x base /x cups /x contrib /x devices /x expat /x freetype /x gpdl /x ijs /x ios /x jbig2dec /x jpeg /x jpegxr /x lcms2mt /x lib /x libpng /x man /x obj /x openjpeg /x pcl /x psi /x tiff /x toolbin /x windows /x xps /x zlib /x tesseract /x leptonica /x extract /x cal Resource
+File /r /x arch /x base /x cups /x contrib /x devices /x expat /x freetype /x gpdl /x ijs /x ios /x jbig2dec /x jpeg /x jpegxr /x lcms2mt /x lib /x libpng /x man /x obj /x openjpeg /x pcl /x psi /x tiff /x toolbin /x windows /x xps /x zlib /x tesseract /x leptonica /x extract /x cal iccprofiles
File /oname=lib\gssetgs.bat .\lib\gssetgs${WINTYPE}.bat
@@ -235,11 +251,13 @@ WriteRegStr HKEY_LOCAL_MACHINE "Software\Microsoft\Windows\CurrentVersion\Uninst
WriteRegStr HKEY_LOCAL_MACHINE "Software\Microsoft\Windows\CurrentVersion\Uninstall\GPL Ghostscript ${VERSION}" "DisplayVersion" "${VERSION}"
WriteRegDWORD HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\GPL Ghostscript ${VERSION}" "NoModify" "1"
WriteRegDWORD HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\GPL Ghostscript ${VERSION}" "NoRepair" "1"
+
; write out uninstaller
WriteUninstaller "$INSTDIR\uninstgs.exe"
SectionEnd ; end of default section
Function .onInstSuccess
+ Call WritePath
SetShellVarContext all
CreateDirectory "$SMPROGRAMS\Ghostscript"
CreateShortCut "$SMPROGRAMS\Ghostscript\Ghostscript ${VERSION}.LNK" "$INSTDIR\bin\gswin${WINTYPE}.exe" '"-I$INSTDIR\lib;$INSTDIR\..\fonts"'
@@ -309,6 +327,7 @@ RMDir "$PROGRAMFILES64\gs"
!else
RMDir "$PROGRAMFILES\gs"
!endif
+Call un.WritePath
SectionEnd ; end of uninstall section
; eof
diff --git a/psi/os2.mak b/psi/os2.mak
index b58b90bf..d276ec7a 100644
--- a/psi/os2.mak
+++ b/psi/os2.mak
@@ -1,4 +1,4 @@
-# Copyright (C) 2001-2021 Artifex Software, Inc.
+# Copyright (C) 2001-2022 Artifex Software, Inc.
# All Rights Reserved.
#
# This software is provided AS-IS with no warranty, either express or
@@ -422,7 +422,7 @@ DEVICE_DEVS12=$(DD)bit.dev $(DD)bitrgb.dev $(DD)bitcmyk.dev
DEVICE_DEVS13=$(DD)pngmono.dev $(DD)pngmonod.dev $(DD)pnggray.dev $(DD)png16.dev $(DD)png256.dev $(DD)png16m.dev $(DD)pngalpha.dev
DEVICE_DEVS14=$(DD)jpeg.dev $(DD)jpeggray.dev $(DD)jpegcmyk.dev
DEVICE_DEVS15=$(DD)pdfwrite.dev $(DD)ps2write.dev $(DD)eps2write.dev $(DD)txtwrite.dev $(DD)pxlmono.dev $(DD)pxlcolor.dev
-DEVICE_DEVS16=$(DD)bbox.dev $(DD)pdfimage8.dev $(DD)pdfimage24.dev $(DD)pdfimage32.dev $(DD)PCLm.dev
+DEVICE_DEVS16=$(DD)bbox.dev $(DD)pdfimage8.dev $(DD)pdfimage24.dev $(DD)pdfimage32.dev $(DD)PCLm.dev $(DD)PCLm8.dev
# Overflow for DEVS3,4,5,6,9
DEVICE_DEVS17=$(DD)ljet3.dev $(DD)ljet3d.dev $(DD)ljet4.dev $(DD)ljet4d.dev
DEVICE_DEVS18=$(DD)pj.dev $(DD)pjxl.dev $(DD)pjxl300.dev $(DD)jetp3852.dev $(DD)r4081.dev
diff --git a/psi/psapi.c b/psi/psapi.c
index ae5796f5..9321f34a 100644
--- a/psi/psapi.c
+++ b/psi/psapi.c
@@ -39,13 +39,12 @@
#include "interp.h"
#include "gxgstate.h"
-#ifndef GS_THREADSAFE
-/* Number of threads to allow per process. Unless GS_THREADSAFE is defined
- * more than 1 is guaranteed to fail.
+/* This is the fallback for the number of threads to allow per process; i.e. just one.
+ * This is only ever used if the gp_get_globals function returns 0 (i.e. only for
+ * platforms that don't support threading).
*/
static int gsapi_instance_counter = 0;
static const int gsapi_instance_max = 1;
-#endif
#ifdef METRO
@@ -83,12 +82,15 @@ psapi_new_instance(gs_lib_ctx_t **pinstance,
if (pinstance == NULL)
return gs_error_Fatal;
-#ifndef GS_THREADSAFE
- /* limited to 1 instance, till it works :) */
- if ( gsapi_instance_counter >= gsapi_instance_max )
- return gs_error_Fatal;
- ++gsapi_instance_counter;
-#endif
+ if (gp_get_globals() == NULL) {
+ /* This platform does not support the thread safe instance
+ * handling. We'll drop back to the old mechanism we've used
+ * to handle limiting ourselves to 1 instance in the past,
+ * despite this being thread-unsafe itself. */
+ if ( gsapi_instance_counter >= gsapi_instance_max )
+ return gs_error_Fatal;
+ ++gsapi_instance_counter;
+ }
mem = gs_malloc_init_with_context(*pinstance);
if (mem == NULL)
@@ -159,9 +161,8 @@ psapi_delete_instance(gs_lib_ctx_t *ctx)
/* Release the memory (frees up everything) */
gs_malloc_release(mem);
-#ifndef GS_THREADSAFE
- --gsapi_instance_counter;
-#endif
+ if (gp_get_globals() == NULL)
+ --gsapi_instance_counter;
}
static int utf16le_get_codepoint(gp_file *file, const char **astr)
diff --git a/psi/winint.mak b/psi/winint.mak
index 6d74f80f..d6234089 100644
--- a/psi/winint.mak
+++ b/psi/winint.mak
@@ -26,9 +26,9 @@
# Define the location of the NSIS makensis installer utility
!ifndef MAKENSIS_XE
!if $(BUILD_SYSTEM) == 64
-MAKENSIS_XE="C:\Program Files (x86)\NSIS\makensis.exe"
+MAKENSIS_XE="C:\Program Files (x86)\NSIS-3.0\makensis.exe"
!else
-MAKENSIS_XE="C:\Program Files\NSIS\makensis.exe"
+MAKENSIS_XE="C:\Program Files\NSIS-3.0\makensis.exe"
!endif
!endif
diff --git a/psi/zbfont.c b/psi/zbfont.c
index 09589159..044f58a1 100644
--- a/psi/zbfont.c
+++ b/psi/zbfont.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 2001-2021 Artifex Software, Inc.
+/* Copyright (C) 2001-2022 Artifex Software, Inc.
All Rights Reserved.
This software is provided AS-IS with no warranty, either express or
@@ -109,7 +109,7 @@ zfont_encode_char(gs_font *pfont, gs_char chr, gs_glyph_space_t gspace)
if (gspace == GLYPH_SPACE_NOGEN)
return GS_NO_GLYPH;
- gs_sprintf(buf, "j%ld", chr); /* 'j' is arbutrary. */
+ gs_snprintf(buf, sizeof(buf), "j%ld", chr); /* 'j' is arbutrary. */
code = name_ref(pfont->memory, (const byte *)buf, strlen(buf), &tname, 1);
if (code < 0) {
/* Can't propagate the error due to interface limitation,
@@ -131,7 +131,7 @@ zfont_glyph_name(gs_font *font, gs_glyph index, gs_const_string *pstr)
char cid_name[sizeof(gs_glyph) * 3 + 1];
int code;
- gs_sprintf(cid_name, "%lu", (ulong) index);
+ gs_snprintf(cid_name, sizeof(cid_name), "%lu", (ulong) index);
code = name_ref(font->memory, (const byte *)cid_name, strlen(cid_name),
&nref, 1);
if (code < 0)
@@ -144,10 +144,7 @@ zfont_glyph_name(gs_font *font, gs_glyph index, gs_const_string *pstr)
return 0;
}
-#define font_proc_glyph_name1\
- int (gs_font *font, gs_glyph glyph, gs_const_string *pstr)
-
-void get_zfont_glyph_name( void **proc)
+void get_zfont_glyph_name( int (**proc)(gs_font *font, gs_glyph glyph, gs_const_string *pstr) )
{
*proc = zfont_glyph_name;
}
diff --git a/psi/zcolor.c b/psi/zcolor.c
index 64e0b8d0..c0d73c28 100644
--- a/psi/zcolor.c
+++ b/psi/zcolor.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 2001-2021 Artifex Software, Inc.
+/* Copyright (C) 2001-2022 Artifex Software, Inc.
All Rights Reserved.
This software is provided AS-IS with no warranty, either express or
@@ -307,6 +307,7 @@ zsetcolor(i_ctx_t * i_ctx_p)
n_numeric_comps = n_comps;
/* gather the numeric operands */
+ check_op(num_offset + n_numeric_comps);
code = float_params(op - num_offset, n_numeric_comps, cc.paint.values);
if (code < 0)
return code;
diff --git a/psi/zdevice.c b/psi/zdevice.c
index b119a768..99beaff7 100644
--- a/psi/zdevice.c
+++ b/psi/zdevice.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 2001-2021 Artifex Software, Inc.
+/* Copyright (C) 2001-2022 Artifex Software, Inc.
All Rights Reserved.
This software is provided AS-IS with no warranty, either express or
@@ -36,6 +36,47 @@
#include "gsicc_manage.h"
#include "gxdevsop.h"
+struct_proc_finalize(psi_device_ref_finalize);
+
+static
+ENUM_PTRS_WITH(psi_device_ref_enum_ptrs, psi_device_ref *devref)
+ {
+ return 0;
+ }
+ case 0:
+ {
+ if (devref->device->memory != NULL) {
+ ENUM_RETURN(gx_device_enum_ptr(devref->device));
+ }
+ return 0;
+ }
+ENUM_PTRS_END
+
+static
+RELOC_PTRS_WITH(psi_device_ref_reloc_ptrs, psi_device_ref *devref)
+ if (devref->device->memory != NULL) {
+ devref->device = gx_device_reloc_ptr(devref->device, gcst);
+ }
+RELOC_PTRS_END
+
+gs_private_st_composite_use_final(st_psi_device_ref, psi_device_ref, "psi_device_ref_t",
+ psi_device_ref_enum_ptrs, psi_device_ref_reloc_ptrs, psi_device_ref_finalize);
+
+void
+psi_device_ref_finalize(const gs_memory_t *cmem, void *vptr)
+{
+ psi_device_ref *pdref = (psi_device_ref *)vptr;
+ (void)cmem;
+
+ /* pdref->device->memory == NULL indicates either a device prototype
+ or a device allocated on the stack rather than the heap
+ */
+ if (pdref->device->memory != NULL)
+ rc_decrement(pdref->device, "psi_device_ref_finalize");
+
+ pdref->device = NULL;
+}
+
/* <device> <keep_open> .copydevice2 <newdevice> */
static int
zcopydevice2(i_ctx_t *i_ctx_p)
@@ -43,6 +84,7 @@ zcopydevice2(i_ctx_t *i_ctx_p)
os_ptr op = osp;
gx_device *new_dev;
int code;
+ psi_device_ref *psdev;
check_read_type(op[-1], t_device);
check_type(*op, t_boolean);
@@ -50,12 +92,20 @@ zcopydevice2(i_ctx_t *i_ctx_p)
/* This can happen if we invalidated devices on the stack by calling nulldevice after they were pushed */
return_error(gs_error_undefined);
- code = gs_copydevice2(&new_dev, op[-1].value.pdevice, op->value.boolval,
+ code = gs_copydevice2(&new_dev, op[-1].value.pdevice->device, op->value.boolval,
imemory);
if (code < 0)
return code;
new_dev->memory = imemory;
- make_tav(op - 1, t_device, icurrent_space | a_all, pdevice, new_dev);
+
+ psdev = gs_alloc_struct(imemory, psi_device_ref, &st_psi_device_ref, "zcopydevice2");
+ if (!psdev) {
+ rc_decrement(new_dev, "zcopydevice2");
+ return_error(gs_error_VMerror);
+ }
+ psdev->device = new_dev;
+
+ make_tav(op - 1, t_device, icurrent_space | a_all, pdevice, psdev);
pop(1);
return 0;
}
@@ -68,11 +118,17 @@ zcurrentdevice(i_ctx_t *i_ctx_p)
os_ptr op = osp;
gx_device *dev = gs_currentdevice(igs);
gs_ref_memory_t *mem = (gs_ref_memory_t *) dev->memory;
+ psi_device_ref *psdev;
+
+ psdev = gs_alloc_struct(dev->memory, psi_device_ref, &st_psi_device_ref, "zcurrentdevice");
+ if (!psdev) {
+ return_error(gs_error_VMerror);
+ }
+ psdev->device = dev;
+ rc_increment(dev);
push(1);
- make_tav(op, t_device,
- (mem == 0 ? avm_foreign : imemory_space(mem)) | a_all,
- pdevice, dev);
+ make_tav(op, t_device, imemory_space(mem) | a_all, pdevice, psdev);
return 0;
}
@@ -91,16 +147,22 @@ zcurrentoutputdevice(i_ctx_t *i_ctx_p)
{
os_ptr op = osp;
gx_device *odev = NULL, *dev = gs_currentdevice(igs);
+ psi_device_ref *psdev;
gs_ref_memory_t *mem = (gs_ref_memory_t *) dev->memory;
int code = dev_proc(dev, dev_spec_op)(dev,
gxdso_current_output_device, (void *)&odev, 0);
if (code < 0)
return code;
+ psdev = gs_alloc_struct(dev->memory, psi_device_ref, &st_psi_device_ref, "zcurrentdevice");
+ if (!psdev) {
+ return_error(gs_error_VMerror);
+ }
+ psdev->device = odev;
+ rc_increment(odev);
+
push(1);
- make_tav(op, t_device,
- (mem == 0 ? avm_foreign : imemory_space(mem)) | a_all,
- pdevice, odev);
+ make_tav(op, t_device, imemory_space(mem) | a_all, pdevice, psdev);
return 0;
}
@@ -116,7 +178,7 @@ zdevicename(i_ctx_t *i_ctx_p)
/* This can happen if we invalidated devices on the stack by calling nulldevice after they were pushed */
return_error(gs_error_undefined);
- dname = op->value.pdevice->dname;
+ dname = op->value.pdevice->device->dname;
make_const_string(op, avm_foreign | a_readonly, strlen(dname),
(const byte *)dname);
return 0;
@@ -164,11 +226,12 @@ zgetbitsrect(i_ctx_t *i_ctx_p)
int code;
check_read_type(op[-7], t_device);
- dev = op[-7].value.pdevice;
- if (dev == NULL)
+ if (op[-7].value.pdevice == NULL)
/* This can happen if we invalidated devices on the stack by calling nulldevice after they were pushed */
return_error(gs_error_undefined);
+ dev = op[-7].value.pdevice->device;
+
check_int_leu(op[-6], dev->width);
rect.p.x = op[-6].value.intval;
check_int_leu(op[-5], dev->height);
@@ -238,6 +301,7 @@ zgetdevice(i_ctx_t *i_ctx_p)
{
os_ptr op = osp;
const gx_device *dev;
+ psi_device_ref *psdev;
check_type(*op, t_integer);
if (op->value.intval != (int)(op->value.intval))
@@ -245,10 +309,16 @@ zgetdevice(i_ctx_t *i_ctx_p)
dev = gs_getdevice((int)(op->value.intval));
if (dev == 0) /* index out of range */
return_error(gs_error_rangecheck);
+
+ psdev = gs_alloc_struct(imemory, psi_device_ref, &st_psi_device_ref, "zgetdevice");
+ if (!psdev) {
+ return_error(gs_error_VMerror);
+ }
+ /* gs_getdevice() returns a device prototype, so no reference counting required */
+ psdev->device = (gx_device *)dev;
+
/* Device prototypes are read-only; */
- /* the cast is logically unnecessary. */
- make_tav(op, t_device, avm_foreign | a_readonly, pdevice,
- (gx_device *) dev);
+ make_tav(op, t_device, imemory_space(iimemory) | a_readonly, pdevice, psdev);
return 0;
}
@@ -258,13 +328,21 @@ zgetdefaultdevice(i_ctx_t *i_ctx_p)
{
os_ptr op = osp;
const gx_device *dev;
+ psi_device_ref *psdev;
dev = gs_getdefaultlibdevice(imemory);
if (dev == 0) /* couldn't find a default device */
return_error(gs_error_unknownerror);
+
+ psdev = gs_alloc_struct(imemory, psi_device_ref, &st_psi_device_ref, "zgetdefaultdevice");
+ if (!psdev) {
+ return_error(gs_error_VMerror);
+ }
+ /* gs_getdefaultlibdevice() returns a device prototype, so no reference counting required */
+ psdev->device = (gx_device *)dev;
+
push(1);
- make_tav(op, t_device, avm_foreign | a_readonly, pdevice,
- (gx_device *) dev);
+ make_tav(op, t_device, imemory_space(iimemory) | a_readonly, pdevice, psdev);
return 0;
}
@@ -285,10 +363,12 @@ zget_device_params(i_ctx_t *i_ctx_p, bool is_hardware)
check_type(*op, t_dictionary);
}
rkeys = *op;
- dev = op[-1].value.pdevice;
if (op[-1].value.pdevice == NULL)
/* This can happen if we invalidated devices on the stack by calling nulldevice after they were pushed */
return_error(gs_error_undefined);
+
+ dev = op[-1].value.pdevice->device;
+
ref_stack_pop(&o_stack, 1);
stack_param_list_write(&list, &o_stack, &rkeys, iimemory);
code = gs_get_device_or_hardware_params(dev, (gs_param_list *) & list,
@@ -333,6 +413,7 @@ zmakewordimagedevice(i_ctx_t *i_ctx_p)
const byte *colors;
int colors_size;
int code;
+ psi_device_ref *psdev;
check_int_leu(op[-3], max_uint >> 1); /* width */
check_int_leu(op[-2], max_uint >> 1); /* height */
@@ -368,30 +449,25 @@ zmakewordimagedevice(i_ctx_t *i_ctx_p)
op->value.boolval, true, imemory);
if (code == 0) {
new_dev->memory = imemory;
- make_tav(op - 4, t_device, imemory_space(iimemory) | a_all,
- pdevice, new_dev);
+
+ psdev = gs_alloc_struct(imemory, psi_device_ref, &st_psi_device_ref, "zcurrentdevice");
+ if (!psdev) {
+ rc_decrement(new_dev, "zmakewordimagedevice");
+ return_error(gs_error_VMerror);
+ }
+ psdev->device = new_dev;
+ make_tav(op - 4, t_device, imemory_space(iimemory) | a_all, pdevice, psdev);
pop(4);
}
return code;
}
-static void invalidate_stack_devices(i_ctx_t *i_ctx_p)
-{
- os_ptr op = osbot;
- while (op != ostop) {
- if (r_has_type(op, t_device))
- op->value.pdevice = 0;
- op++;
- }
-}
-
/* - nulldevice - */
/* Note that nulldevice clears the current pagedevice. */
static int
znulldevice(i_ctx_t *i_ctx_p)
{
int code = gs_nulldevice(igs);
- invalidate_stack_devices(i_ctx_p);
clear_pagedevice(istate);
return code;
}
@@ -457,7 +533,7 @@ zputdeviceparams(i_ctx_t *i_ctx_p)
return_error(gs_error_stackunderflow);
check_type_only(*prequire_all, t_boolean);
check_write_type_only(*pdev, t_device);
- dev = pdev->value.pdevice;
+ dev = pdev->value.pdevice->device;
if (dev == NULL)
/* This can happen if we invalidated devices on the stack by calling nulldevice after they were pushed */
return_error(gs_error_undefined);
@@ -509,11 +585,8 @@ zputdeviceparams(i_ctx_t *i_ctx_p)
int
zsetdevice_no_safer(i_ctx_t *i_ctx_p, gx_device *new_dev)
{
- gx_device *dev = gs_currentdevice(igs);
int code;
- dev->ShowpageCount = 0;
-
if (new_dev == NULL)
return gs_note_error(gs_error_undefined);
@@ -521,7 +594,6 @@ zsetdevice_no_safer(i_ctx_t *i_ctx_p, gx_device *new_dev)
if (code < 0)
return code;
- invalidate_stack_devices(i_ctx_p);
clear_pagedevice(istate);
return code;
}
@@ -548,10 +620,10 @@ zsetdevice(i_ctx_t *i_ctx_p)
* it's procs initialised, at this point - but we need to check
* whether we're being asked to change the device here
*/
- if (dev_proc((op->value.pdevice), dev_spec_op) == NULL)
- ndev = op->value.pdevice;
+ if (dev_proc((op->value.pdevice->device), dev_spec_op) == NULL)
+ ndev = op->value.pdevice->device;
else
- code = dev_proc((op->value.pdevice), dev_spec_op)(op->value.pdevice,
+ code = dev_proc((op->value.pdevice->device), dev_spec_op)(op->value.pdevice->device,
gxdso_current_output_device, (void *)&ndev, 0);
if (code < 0)
@@ -561,7 +633,7 @@ zsetdevice(i_ctx_t *i_ctx_p)
if(ndev != odev) /* don't allow a different device */
return_error(gs_error_invalidaccess);
}
- code = zsetdevice_no_safer(i_ctx_p, op->value.pdevice);
+ code = zsetdevice_no_safer(i_ctx_p, op->value.pdevice->device);
make_bool(op, code != 0); /* erase page if 1 */
return code;
}
diff --git a/psi/zdouble.c b/psi/zdouble.c
index e6e7bad6..ae439811 100644
--- a/psi/zdouble.c
+++ b/psi/zdouble.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 2001-2021 Artifex Software, Inc.
+/* Copyright (C) 2001-2022 Artifex Software, Inc.
All Rights Reserved.
This software is provided AS-IS with no warranty, either express or
@@ -323,7 +323,7 @@ zcvsd(i_ctx_t *i_ctx_p)
len = r_size(op - 1);
if (len > MAX_CHARS)
return_error(gs_error_limitcheck);
- gs_sprintf(buf, "%f", 1.5);
+ gs_snprintf(buf, sizeof(buf), "%f", 1.5);
dot = buf[1]; /* locale-dependent */
memcpy(str, op[-1].value.bytes, len);
/*
@@ -406,7 +406,7 @@ zdcvs(i_ctx_t *i_ctx_p)
if (code < 0)
return code;
check_write_type(*op, t_string);
- gs_sprintf(str, "%f", 1.5);
+ gs_snprintf(str, sizeof(str), "%f", 1.5);
dot = str[1]; /* locale-dependent */
/*
* To get fully accurate output results for IEEE double-
@@ -420,10 +420,10 @@ zdcvs(i_ctx_t *i_ctx_p)
{
double scanned;
- gs_sprintf(str, "%g", num);
+ gs_snprintf(str, sizeof(str), "%g", num);
sscanf(str, "%lf", &scanned);
if (scanned != num)
- gs_sprintf(str, "%.16g", num);
+ gs_snprintf(str, sizeof(str), "%.16g", num);
}
len = strlen(str);
if (len > r_size(op))
diff --git a/psi/zfapi.c b/psi/zfapi.c
index 0b3ab1cf..6927e60e 100644
--- a/psi/zfapi.c
+++ b/psi/zfapi.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 2001-2021 Artifex Software, Inc.
+/* Copyright (C) 2001-2022 Artifex Software, Inc.
All Rights Reserved.
This software is provided AS-IS with no warranty, either express or
@@ -189,8 +189,9 @@ sfnts_reader_seek(sfnts_reader *r, ulong pos)
}
static void
-sfnts_reader_init(sfnts_reader *r, ref *pdr)
+sfnts_reader_init(const gs_memory_t *mem, sfnts_reader *r, ref *pdr)
{
+ r->memory = mem;
r->rbyte = sfnts_reader_rbyte;
r->rword = sfnts_reader_rword;
r->rlong = sfnts_reader_rlong;
@@ -381,11 +382,11 @@ sfnts_copy_except_glyf(sfnts_reader *r, sfnts_writer *w)
}
static int
-true_type_size(ref *pdr, unsigned long int *length)
+true_type_size(const gs_memory_t *mem, ref *pdr, unsigned long int *length)
{
sfnts_reader r;
- sfnts_reader_init(&r, pdr);
+ sfnts_reader_init(mem, &r, pdr);
*length = sfnts_copy_except_glyf(&r, 0);
return r.error;
@@ -400,7 +401,7 @@ FAPI_FF_serialize_tt_font(gs_fapi_font *ff, void *buf, int buf_size)
w.buf_size = buf_size;
w.buf = w.p = buf;
- sfnts_reader_init(&r, pdr);
+ sfnts_reader_init(ff->memory, &r, pdr);
return sfnts_copy_except_glyf(&r, &w);
}
@@ -691,11 +692,11 @@ FAPI_FF_get_word(gs_fapi_font *ff, gs_fapi_font_feature var_id, int index, unsig
length += r_size(&string) + 1;
break;
case t_real:
- gs_sprintf(Buffer, "%f", Element.value.realval);
+ gs_snprintf(Buffer, sizeof(Buffer), "%f", Element.value.realval);
length += strlen(Buffer) + 1;
break;
case t_integer:
- gs_sprintf(Buffer, "%"PRIpsint, Element.value.intval);
+ gs_snprintf(Buffer, sizeof(Buffer), "%"PRIpsint, Element.value.intval);
length += strlen(Buffer) + 1;
break;
case t_operator:
@@ -1409,7 +1410,7 @@ FAPI_FF_get_long(gs_fapi_font *ff, gs_fapi_font_feature var_id, int index, unsig
}
break;
case gs_fapi_font_feature_TT_size:
- code = true_type_size(pdr, ret);
+ code = true_type_size(ff->memory, pdr, ret);
break;
}
return code;
@@ -1657,12 +1658,12 @@ FAPI_FF_get_proc(gs_fapi_font *ff, gs_fapi_font_feature var_id, int index,
ptr += r_size(&string);
break;
case t_real:
- gs_sprintf(Buf, "%f", Element.value.realval);
+ gs_snprintf(Buf, sizeof(Buf), "%f", Element.value.realval);
strcpy(ptr, Buf);
ptr += strlen(Buf);
break;
case t_integer:
- gs_sprintf(Buf, "%"PRIpsint, Element.value.intval);
+ gs_snprintf(Buf, sizeof(Buf), "%"PRIpsint, Element.value.intval);
strcpy(ptr, Buf);
ptr += strlen(Buf);
break;
@@ -1902,7 +1903,7 @@ sfnt_get_glyph_offset(ref *pdr, gs_font_type42 *pfont42, int index,
ulong fullsize;
if (index < pfont42->data.trueNumGlyphs) {
- sfnts_reader_init(&r, pdr);
+ sfnts_reader_init(pfont42->memory, &r, pdr);
r.seek(&r, pfont42->data.loca + index * (ulong)glyf_elem_size);
*offset0 =
pfont42->data.glyf + (glyf_elem_size ==
@@ -2156,7 +2157,7 @@ FAPI_FF_get_glyph(gs_fapi_font *ff, gs_glyph char_code, byte *buf, int buf_lengt
if (buf != 0 && !error) {
sfnts_reader r;
- sfnts_reader_init(&r, pdr);
+ sfnts_reader_init(pfont42->memory, &r, pdr);
r.seek(&r, offset0);
length_read =
diff --git a/psi/zfarc4.c b/psi/zfarc4.c
index bbefe36d..0f41d592 100644
--- a/psi/zfarc4.c
+++ b/psi/zfarc4.c
@@ -51,7 +51,8 @@ z_arcfour_d(i_ctx_t * i_ctx_p)
if (!r_has_type(sop, t_string))
return_error(gs_error_typecheck);
- if ((code = s_arcfour_set_key(&state, sop->value.const_bytes, r_size(sop))) < 0)
+ code = s_arcfour_set_key(&state, sop->value.const_bytes, r_size(sop)); /* lgtm [cpp/weak-cryptographic-algorithm] */
+ if (code < 0)
return code;
/* we pass npop=0, since we've no arguments left to consume */
diff --git a/psi/zfile.c b/psi/zfile.c
index 46040701..fe3f7e9f 100644
--- a/psi/zfile.c
+++ b/psi/zfile.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 2001-2021 Artifex Software, Inc.
+/* Copyright (C) 2001-2022 Artifex Software, Inc.
All Rights Reserved.
This software is provided AS-IS with no warranty, either express or
@@ -1285,6 +1285,7 @@ lib_fopen(const gs_file_path_ptr pfpath, const gs_memory_t *mem, const char *fna
uint fnamelen;
ref obj;
int code;
+ stream *s;
/* open the usual 'stream', then if successful, return the file */
code = lib_file_open(pfpath, mem, NULL, fname, strlen(fname),
@@ -1292,7 +1293,19 @@ lib_fopen(const gs_file_path_ptr pfpath, const gs_memory_t *mem, const char *fna
if (code < 0)
return NULL;
- file = ((stream *)(obj.value.pfile))->file;
+
+ /* This all seems a bit grotty. The above code has generated us a stream
+ * that wraps a file. We actually want the file. So we reach in, and steal
+ * the file pointer. Nasty. */
+ s = ((stream *)(obj.value.pfile));
+ file = s->file;
+ /* Historically we've then just abandoned the stream, resulting in blocks
+ * leaking. Let's free the leaked blocks (in rather hacky style). First,
+ * we clear the file reference, and then drop the stream. */
+ s->file = NULL;
+ sclose(s);
+ /* Then free the stream block itself. */
+ gs_free_object(s->memory, s, "lib_fopen");
return file;
}
diff --git a/psi/zfont2.c b/psi/zfont2.c
index ae5d29d0..2be4279a 100644
--- a/psi/zfont2.c
+++ b/psi/zfont2.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 2001-2021 Artifex Software, Inc.
+/* Copyright (C) 2001-2022 Artifex Software, Inc.
All Rights Reserved.
This software is provided AS-IS with no warranty, either express or
@@ -2705,7 +2705,7 @@ parse_font(i_ctx_t *i_ctx_p, ref *topdict,
return sid;
if ((code = make_name_from_sid(i_ctx_p, &name, strings, data, sid)) < 0) {
char buf[40];
- int len = gs_sprintf(buf, "sid-%d", sid);
+ int len = gs_snprintf(buf, sizeof(buf), "sid-%d", sid);
if ((code = name_ref(imemory, (unsigned char *)buf, len, &name, 1)) < 0)
return code;
diff --git a/psi/zht.c b/psi/zht.c
index f1cc8d94..96af0348 100644
--- a/psi/zht.c
+++ b/psi/zht.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 2001-2021 Artifex Software, Inc.
+/* Copyright (C) 2001-2022 Artifex Software, Inc.
All Rights Reserved.
This software is provided AS-IS with no warranty, either express or
@@ -126,7 +126,7 @@ static int
zsetscreen(i_ctx_t *i_ctx_p)
{
os_ptr op = osp;
- gs_screen_halftone screen;
+ gs_screen_halftone screen = { 0 };
gx_ht_order order;
int code = zscreen_params(op, &screen);
gs_memory_t *mem;
diff --git a/psi/zpcolor.c b/psi/zpcolor.c
index 81a94ddf..93d6050a 100644
--- a/psi/zpcolor.c
+++ b/psi/zpcolor.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 2001-2021 Artifex Software, Inc.
+/* Copyright (C) 2001-2022 Artifex Software, Inc.
All Rights Reserved.
This software is provided AS-IS with no warranty, either express or
@@ -245,7 +245,7 @@ pattern_paint_prepare(i_ctx_t *i_ctx_p)
gs_setdevice_no_init(pgs, (gx_device *)pdev);
if (pinst->templat.uses_transparency) {
if_debug0m('v', imemory, " pushing the pdf14 compositor device into this graphics state\n");
- if ((code = gs_push_pdf14trans_device(pgs, true, true, 0, 0)) < 0) /* FIXME: do we need spot_color_count ??? */
+ if ((code = gs_push_pdf14trans_device(pgs, true, true, 0, 0)) < 0) /* spot color count found from pdf14 target */
return code;
} else { /* not transparent */
if (pinst->templat.PaintType == 1 && !(pinst->is_clist)
diff --git a/psi/zpdfops.c b/psi/zpdfops.c
index 4c01de03..45bd7803 100644
--- a/psi/zpdfops.c
+++ b/psi/zpdfops.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 2001-2021 Artifex Software, Inc.
+/* Copyright (C) 2001-2022 Artifex Software, Inc.
All Rights Reserved.
This software is provided AS-IS with no warranty, either express or
@@ -25,6 +25,7 @@
#include "iminst.h"
#include "dstack.h"
+#include "gsicc_profilecache.h"
#endif
#include "ghost.h"
@@ -272,51 +273,123 @@ zsaslprep(i_ctx_t *i_ctx_p)
#if defined(BUILD_PDF) && BUILD_PDF == 1
-/*
- This cannot fail. If gs doesn't have these settings it will never reach here.
- Because the lives of the string values here are all tied to the Postscript
- context, and the Postscript context *must* outlast the pdfi context, we can
- safely just take references, marking the strings as "persistent" so destroying
- the pdfi context doesn't try to free the string bodies.
- */
-static void zpdfi_populate_search_paths(i_ctx_t *i_ctx_p, pdf_context *ctx)
+static int zpdfi_populate_search_paths(i_ctx_t *i_ctx_p, pdf_context *ctx)
{
+ int code = 0;
/* This should only be called once per pdfi context
if the paths are already populated, just skip it.
*/
if (ctx->search_paths.resource_paths == NULL) {
ref *l2dictref, *grdref, *fpathref;
- int code, i;
+ int i;
const gs_file_path *pfpath = i_ctx_p->lib_path;
gs_main_instance *minst = get_minst_from_memory(imemory);
code = dict_find_string(systemdict, "pssystemparams", &l2dictref);
if (code >= 0 && r_has_type(l2dictref, t_dictionary)) {
code = dict_find_string(l2dictref, "GenericResourceDir", &grdref);
if (code >= 0 && r_has_type(grdref, t_string)) {
- ctx->search_paths.genericresourcedir.data = grdref->value.const_bytes;
+ ctx->search_paths.genericresourcedir.data = gs_alloc_bytes(ctx->memory, r_size(grdref), "zpdfi_populate_search_paths");
+ if (ctx->search_paths.genericresourcedir.data == NULL) {
+ code = gs_note_error(gs_error_VMerror);
+ goto done;
+ }
+ memcpy((char *)ctx->search_paths.genericresourcedir.data, grdref->value.const_bytes, r_size(grdref));
ctx->search_paths.genericresourcedir.size = r_size(grdref);
- ctx->search_paths.genericresourcedir.persistent = true;
+ ctx->search_paths.genericresourcedir.persistent = false;
}
}
+
ctx->search_paths.resource_paths = (gs_param_string *)gs_alloc_bytes(ctx->memory, sizeof(gs_param_string) * r_size(&pfpath->list), "array of paths");
+ if (ctx->search_paths.resource_paths == NULL) {
+ code = gs_note_error(gs_error_VMerror);
+ goto done;
+ }
+ memset(ctx->search_paths.resource_paths, 0x00, sizeof(gs_param_string) * r_size(&pfpath->list));
+
ctx->search_paths.num_resource_paths = r_size(&pfpath->list);
for (i = 0; i < r_size(&pfpath->list); i++) {
const ref *prdir = pfpath->list.value.refs + i; /* By nature, this cannot be a short/mixed array, only a "normal" array */
- ctx->search_paths.resource_paths[i].data = prdir->value.const_bytes;
+ ctx->search_paths.resource_paths[i].data = gs_alloc_bytes(ctx->memory, r_size(prdir), "zpdfi_populate_search_paths");
+ if (ctx->search_paths.resource_paths[i].data == NULL) {
+ code = gs_note_error(gs_error_VMerror);
+ goto done;
+ }
+ memcpy((char *)ctx->search_paths.resource_paths[i].data, prdir->value.const_bytes, r_size(prdir));
ctx->search_paths.resource_paths[i].size = r_size(prdir);
- ctx->search_paths.resource_paths[i].persistent = true;
+ ctx->search_paths.resource_paths[i].persistent = false;
}
code = dict_find_string(systemdict, "FONTPATH", &fpathref);
- ctx->search_paths.font_paths = (gs_param_string *)gs_alloc_bytes(ctx->memory, sizeof(gs_param_string) * r_size(fpathref), "array of font paths");
- ctx->search_paths.num_font_paths = r_size(fpathref);
- for (i = 0; i < r_size(fpathref); i++) {
- const ref *prdir = pfpath->list.value.refs + i; /* By nature, this cannot be a short/mixed array, only a "normal" array */
- ctx->search_paths.resource_paths[i].data = prdir->value.const_bytes;
- ctx->search_paths.resource_paths[i].size = r_size(prdir);
- ctx->search_paths.resource_paths[i].persistent = true;
+ if (code >= 0 && r_has_type(fpathref, t_array)) {
+ ctx->search_paths.font_paths = (gs_param_string *)gs_alloc_bytes(ctx->memory, sizeof(gs_param_string) * r_size(fpathref), "array of font paths");
+ memset(ctx->search_paths.font_paths, 0x00, sizeof(gs_param_string) * r_size(fpathref));
+
+ ctx->search_paths.num_font_paths = r_size(fpathref);
+ for (i = 0; i < r_size(fpathref); i++) {
+ const ref *prdir = fpathref->value.refs + i; /* By nature, this cannot be a short/mixed array, only a "normal" array */
+ ctx->search_paths.font_paths[i].data = gs_alloc_bytes(ctx->memory, r_size(prdir), "zpdfi_populate_search_paths");
+ if (ctx->search_paths.font_paths[i].data == NULL) {
+ code = gs_note_error(gs_error_VMerror);
+ goto done;
+ }
+ memcpy((char *)ctx->search_paths.font_paths[i].data, prdir->value.const_bytes, r_size(prdir));
+ ctx->search_paths.font_paths[i].size = r_size(prdir);
+ ctx->search_paths.font_paths[i].persistent = false;
+ }
}
ctx->search_paths.search_here_first = minst->search_here_first;
}
+done:
+ return code >= 0 ? 0 : code;
+}
+
+static int zpdfi_populate_fontmap_files(i_ctx_t *i_ctx_p, pdf_context *ctx)
+{
+ int code, i;
+ ref *fontmaps;
+
+ code = dict_find_string(systemdict, "FONTMAP", &fontmaps);
+ if (code >= 0 && r_has_type(fontmaps, t_array)) {
+ ctx->fontmapfiles = (gs_string *)gs_alloc_bytes(ctx->memory, sizeof(gs_string) * r_size(fontmaps), "array of fontmap files");
+ if (ctx->fontmapfiles != 0) {
+ memset(ctx->fontmapfiles, 0x00, sizeof(gs_string) * r_size(fontmaps));
+ ctx->num_fontmapfiles = r_size(fontmaps);
+ for (i = 0; i < r_size(fontmaps); i++) {
+ const ref *fmapfile = fontmaps->value.refs + i; /* By nature, this cannot be a short/mixed array, only a "normal" array */
+ ctx->fontmapfiles[i].data = gs_alloc_bytes(ctx->memory, r_size(fmapfile), "zpdfi_populate_fontmap_files");
+ if (ctx->fontmapfiles[i].data == NULL) {
+ code = gs_note_error(gs_error_VMerror);
+ goto done;
+ }
+ memcpy((char *)ctx->fontmapfiles[i].data, fmapfile->value.const_bytes, r_size(fmapfile));
+ ctx->fontmapfiles[i].size = r_size(fmapfile);
+ }
+ }
+ else {
+ code = gs_note_error(gs_error_VMerror);
+ goto done;
+ }
+ }
+ else if (code >= 0 && r_has_type(fontmaps, t_string)) {
+ ctx->fontmapfiles = (gs_string *)gs_alloc_bytes(ctx->memory, sizeof(gs_string), "array of fontmap files");
+ if (ctx->fontmapfiles != 0) {
+ ctx->num_fontmapfiles = 1;
+ ctx->fontmapfiles[0].data = gs_alloc_bytes(ctx->memory, r_size(fontmaps), "zpdfi_populate_fontmap_files");
+ if (ctx->fontmapfiles[0].data == NULL) {
+ code = gs_note_error(gs_error_VMerror);
+ goto done;
+ }
+ memcpy((char *)ctx->fontmapfiles[0].data, fontmaps->value.const_bytes, r_size(fontmaps));
+ ctx->fontmapfiles[0].size = r_size(fontmaps);
+ }
+ else {
+ code = gs_note_error(gs_error_VMerror);
+ goto done;
+ }
+ }
+ else
+ code = 0;
+done:
+ return code;
}
/*
@@ -329,8 +402,44 @@ typedef struct pdfctx_s {
gs_memory_t *pdf_memory; /* The 'wrapped' memory allocator used by the PDF interpreter. Not exposed to garbager */
gs_memory_t *pdf_stream_memory; /* The memory allocator used to copy the PostScript stream to pdf_stream. Not exposed to garbager */
stream *pdf_stream;
+ gsicc_profile_cache_t *profile_cache;
+ gs_memory_t *cache_memory; /* The memory allocator used to allocate the working (GC'ed) profile cache */
} pdfctx_t;
+/* There is some unfortunately necessary complication in the structure above regarding the ICC profile cache.
+ * Initially the problem was due to adding the colour space name to the 'interpreter data' part of the colour
+ * space, in order to be able to identify the case where we switch to the current colour space.
+ *
+ * This caused problems with ICC spaces, because these maintain a reference to the colour space. If the profile
+ * was stored in the PostScript profile cache (which it would be, because the profile cache is stored in the
+ * grapchis state, which we inherit from the PostScript interpreter) then it would outlive the PDF interpreter,
+ * and when we came to free the cache it would try to free the colour space, which would try to free the PDF
+ * name object, which had already been freed.
+ *
+ * To work around this we replaced the profile cache in the graphics state with the profile cache from the PDF
+ * interpreter. Now when we free the PDF profile cache, it frees the colour spaces, and the PDF names, while they
+ * are still valid.
+ *
+ * However, we then discovered that the garbage collector could reclaim the colour spaces. This happens because
+ * no GC-visible object declares it has a reference to the colour space. It doesn't matter that the colour
+ * space has been counted up, the GC frees it. Now the profile cache in pdfi is pointing to a colour space which
+ * has gone away....
+ *
+ * To get round this, we create a brand-new profile cache, using GC'ed memory (well actually the interpreter
+ * allocator, which is GC'ed for Ghostscript). When we switch to pdfi we replace the graphics state pdfi is
+ * using with the one from the PostScript environment, and at the same time we swap out the profile cache
+ * being used by that graphics state, so it uses our new one. On return to PostScript we swap them back.
+ * This allows the lifetime of the profiles in the profile cache to be correct, because they are visible to the
+ * garbage collector (the PDF context is a GC-visible object and enumerates it's member profile cache)
+ * When we finalize the PDF context we count down the profile cache which dereferences all its entries. This
+ * effectively frees the colour space (the memory may not be reclaimed yet) which calls the interpreter
+ * specific cleanup, which frees the (still valid at this point) PDF name object and sets the pointer to NULL.
+ *
+ * The net result is that we have the profiles visible to the garbage collector during their lifetime, but
+ * still have control over the cache, so we can empty it of the profiles created for pdfi when we close the
+ * PDF interpreter.
+ */
+
/* Structure descriptors */
static void pdfctx_finalize(const gs_memory_t *cmem, void *vptr);
@@ -339,11 +448,11 @@ gs_private_st_composite_final(st_pdfctx_t, pdfctx_t, "pdfctx_struct",\
static
ENUM_PTRS_BEGIN(pdfctx_enum_ptrs) return 0;
-ENUM_PTR2(0, pdfctx_t, ps_stream, pdf_stream);
+ENUM_PTR3(0, pdfctx_t, ps_stream, pdf_stream, profile_cache);
ENUM_PTRS_END
static RELOC_PTRS_BEGIN(pdfctx_reloc_ptrs);
-RELOC_PTR2(pdfctx_t, ps_stream, pdf_stream);
+RELOC_PTR3(pdfctx_t, ps_stream, pdf_stream, profile_cache);
RELOC_PTRS_END
static void
@@ -354,6 +463,10 @@ pdfctx_finalize(const gs_memory_t *cmem, void *vptr)
* on the same object - hence we null the entries.
*/
+ if (pdfctx->profile_cache != NULL) {
+ rc_decrement(pdfctx->profile_cache, "free the working profile cache");
+ pdfctx->profile_cache = NULL;
+ }
if (cmem != NULL) {
if (pdfctx->ctx != NULL) {
if (pdfctx->pdf_stream) {
@@ -385,9 +498,7 @@ static int zPDFstream(i_ctx_t *i_ctx_p)
int code = 0;
stream *s;
pdfctx_t *pdfctx;
- gs_gstate *pgs = NULL;
- gs_gstate_client_procs procs;
- void *client_data;
+ pdfi_switch_t i_switch;
check_op(2);
@@ -409,20 +520,13 @@ static int zPDFstream(i_ctx_t *i_ctx_p)
*(pdfctx->pdf_stream) = *(pdfctx->ps_stream);
- pgs = pdfctx->ctx->pgs;
- procs = igs->client_procs;
- client_data = igs->client_data;
- pdfi_gstate_from_PS(pdfctx->ctx, igs, &client_data, &procs);
- pdfctx->ctx->pgs = igs;
+ code = pdfi_gstate_from_PS(pdfctx->ctx, igs, &i_switch, pdfctx->profile_cache);
- code = pdfi_set_input_stream(pdfctx->ctx, pdfctx->pdf_stream);
+ if (code >= 0) {
+ code = pdfi_set_input_stream(pdfctx->ctx, pdfctx->pdf_stream);
- pdfi_gstate_to_PS(pdfctx->ctx, igs, client_data, &procs);
- if (code == 0)
- code = gs_grestore(igs);
- else
- (void)gs_grestore(igs);
- pdfctx->ctx->pgs = pgs;
+ pdfi_gstate_to_PS(pdfctx->ctx, igs, &i_switch);
+ }
if (code < 0) {
memset(pdfctx->pdf_stream, 0x00, sizeof(stream));
@@ -445,9 +549,7 @@ static int zPDFfile(i_ctx_t *i_ctx_p)
pdfctx_t *pdfctx;
char pdffilename[gp_file_name_sizeof];
int code = 0;
- gs_gstate *pgs = NULL;
- gs_gstate_client_procs procs;
- void *client_data;
+ pdfi_switch_t i_switch;
check_op(2);
@@ -467,20 +569,13 @@ static int zPDFfile(i_ctx_t *i_ctx_p)
memcpy(pdffilename, (op - 1)->value.bytes, r_size(op - 1));
pdffilename[r_size(op - 1)] = 0;
- pgs = pdfctx->ctx->pgs;
- procs = igs->client_procs;
- client_data = igs->client_data;
- pdfi_gstate_from_PS(pdfctx->ctx, igs, &client_data, &procs);
- pdfctx->ctx->pgs = igs;
+ code = pdfi_gstate_from_PS(pdfctx->ctx, igs, &i_switch, pdfctx->profile_cache);
- code = pdfi_open_pdf_file(pdfctx->ctx, pdffilename);
+ if (code >= 0) {
+ code = pdfi_open_pdf_file(pdfctx->ctx, pdffilename);
- pdfi_gstate_to_PS(pdfctx->ctx, igs, client_data, &procs);
- if (code == 0)
- code = gs_grestore(igs);
- else
- (void)gs_grestore(igs);
- pdfctx->ctx->pgs = pgs;
+ pdfi_gstate_to_PS(pdfctx->ctx, igs, &i_switch);
+ }
if (code < 0)
return code;
@@ -500,12 +595,18 @@ static int zPDFclose(i_ctx_t *i_ctx_p)
check_type(*op, t_pdfctx);
pdfctx = r_ptr(op, pdfctx_t);
+ if (pdfctx->profile_cache != NULL) {
+ rc_decrement(pdfctx->profile_cache, "free the working profile cache");
+ pdfctx->profile_cache = NULL;
+ }
+
if (pdfctx->ctx != NULL) {
+ pdfi_report_errors(pdfctx->ctx);
if (pdfctx->ps_stream) {
/* Detach the PostScript stream from the PDF context, otherwise the
* close code will close the main stream
*/
- pdfctx->ctx->main_stream = NULL;
+ pdfctx->ctx->main_stream->s = NULL;
}
code = pdfi_free_context(pdfctx->ctx);
pdfctx->ctx = NULL;
@@ -533,75 +634,79 @@ static int zPDFinfo(i_ctx_t *i_ctx_p)
check_type(*(op), t_pdfctx);
pdfctx = r_ptr(op, pdfctx_t);
- code = dict_create(4, op);
- if (code < 0)
- return code;
-
- code = names_ref(imemory->gs_lib_ctx->gs_name_table, (const byte *)"NumPages", 8, &nameref, 1);
- if (code < 0)
- return code;
-
- make_int(&intref, pdfctx->ctx->num_pages);
+ if (pdfctx->pdf_stream != NULL) {
+ code = dict_create(4, op);
+ if (code < 0)
+ return code;
- code = dict_put(op, &nameref, &intref, &i_ctx_p->dict_stack);
- if (code < 0)
- return code;
+ code = names_ref(imemory->gs_lib_ctx->gs_name_table, (const byte *)"NumPages", 8, &nameref, 1);
+ if (code < 0)
+ return code;
- /* Code to process Collections. The pdfi_prep_collection() function returns an
- * array of descriptions and filenames. Because the descriptions can contain
- * UTF16-BE encoded data we can't sue a NULL terminated string, so the description
- * strings are terminated with a triple-NULL sequence of bytes.
- * We copy the contents into a PostScript array, which we store in the info
- * dictionary using the /Collection key.
- */
- if (pdfctx->ctx->Collection != NULL) {
- code = pdfi_prep_collection(pdfctx->ctx, &TotalFiles, &names_array);
- if (code >= 0 && TotalFiles > 0) {
- uint size;
- ref collection, stringref;
+ make_int(&intref, pdfctx->ctx->num_pages);
- code = ialloc_ref_array(&collection, a_all, TotalFiles * 2, "names array");
- if (code < 0)
- goto error;
+ code = dict_put(op, &nameref, &intref, &i_ctx_p->dict_stack);
+ if (code < 0)
+ return code;
- code = names_ref(imemory->gs_lib_ctx->gs_name_table, (const byte *)"Collection", 10, &nameref, 1);
- if (code < 0)
- goto error;
+ /* Code to process Collections. The pdfi_prep_collection() function returns an
+ * array of descriptions and filenames. Because the descriptions can contain
+ * UTF16-BE encoded data we can't sue a NULL terminated string, so the description
+ * strings are terminated with a triple-NULL sequence of bytes.
+ * We copy the contents into a PostScript array, which we store in the info
+ * dictionary using the /Collection key.
+ */
+ if (pdfctx->ctx->Collection != NULL) {
+ code = pdfi_prep_collection(pdfctx->ctx, &TotalFiles, &names_array);
+ if (code >= 0 && TotalFiles > 0) {
+ uint size;
+ ref collection, stringref;
+
+ code = ialloc_ref_array(&collection, a_all, TotalFiles * 2, "names array");
+ if (code < 0)
+ goto error;
- code = dict_put(op, &nameref, &collection, &i_ctx_p->dict_stack);
- if (code < 0)
- goto error;
+ code = names_ref(imemory->gs_lib_ctx->gs_name_table, (const byte *)"Collection", 10, &nameref, 1);
+ if (code < 0)
+ goto error;
- for (ix=0; ix < TotalFiles * 2; ix++) {
- char *ptr = names_array[ix];
- byte *sbody;
- ref *pelement;
-
- size = 0;
- do {
- if (ptr[0] == 0x00 && ptr[1] == 0x00 && ptr[2] == 0x00)
- break;
- ptr++;
- size++;
- } while (1);
- sbody = ialloc_string(size, "string");
- if (sbody == 0) {
- code = gs_error_VMerror;
+ code = dict_put(op, &nameref, &collection, &i_ctx_p->dict_stack);
+ if (code < 0)
goto error;
+
+ for (ix=0; ix < TotalFiles * 2; ix++) {
+ char *ptr = names_array[ix];
+ byte *sbody;
+ ref *pelement;
+
+ size = 0;
+ do {
+ if (ptr[0] == 0x00 && ptr[1] == 0x00 && ptr[2] == 0x00)
+ break;
+ ptr++;
+ size++;
+ } while (1);
+ sbody = ialloc_string(size, "string");
+ if (sbody == 0) {
+ code = gs_error_VMerror;
+ goto error;
+ }
+ make_string(&stringref, a_all | icurrent_space, size, sbody);
+ memset(sbody, 0x00, size);
+ memcpy(sbody, names_array[ix], size);
+ gs_free_object(pdfctx->ctx->memory, names_array[ix], "free collection temporary filenames");
+ names_array[ix] = NULL;
+ pelement = collection.value.refs + ix;
+ ref_assign_old(&collection, pelement, &stringref, "put names string");
}
- make_string(&stringref, a_all | icurrent_space, size, sbody);
- memset(sbody, 0x00, size);
- memcpy(sbody, names_array[ix], size);
- gs_free_object(pdfctx->ctx->memory, names_array[ix], "free collection temporary filenames");
- names_array[ix] = NULL;
- pelement = collection.value.refs + ix;
- ref_assign_old(&collection, pelement, &stringref, "put names string");
}
+ gs_free_object(pdfctx->ctx->memory, names_array, "free collection temporary filenames");
+ code = 0;
}
- gs_free_object(pdfctx->ctx->memory, names_array, "free collection temporary filenames");
- code = 0;
}
-
+ else {
+ return_error(gs_error_ioerror);
+ }
return code;
error:
@@ -618,9 +723,7 @@ static int zPDFpageinfo(i_ctx_t *i_ctx_p)
int page = 0, code = 0, i;
pdfctx_t *pdfctx;
pdf_info_t info;
- gs_gstate *pgs = NULL;
- gs_gstate_client_procs procs;
- void *client_data;
+ pdfi_switch_t i_switch;
check_op(2);
@@ -630,163 +733,160 @@ static int zPDFpageinfo(i_ctx_t *i_ctx_p)
check_type(*(op - 1), t_pdfctx);
pdfctx = r_ptr(op - 1, pdfctx_t);
- pgs = pdfctx->ctx->pgs;
- procs = igs->client_procs;
- client_data = igs->client_data;
- pdfi_gstate_from_PS(pdfctx->ctx, igs, &client_data, &procs);
- pdfctx->ctx->pgs = igs;
-
- code = pdfi_page_info(pdfctx->ctx, (uint64_t)page, &info);
-
- pdfi_gstate_to_PS(pdfctx->ctx, igs, client_data, &procs);
- if (code == 0)
- code = gs_grestore(igs);
- else
- (void)gs_grestore(igs);
- pdfctx->ctx->pgs = pgs;
+ if (pdfctx->pdf_stream != NULL) {
+ code = pdfi_gstate_from_PS(pdfctx->ctx, igs, &i_switch, pdfctx->profile_cache);
- if (code < 0)
- return code;
+ if (code >= 0) {
+ code = pdfi_page_info(pdfctx->ctx, (uint64_t)page, &info);
- pop(1);
- op = osp;
-
- code = dict_create(4, op);
- if (code < 0)
- return code;
-
- code = names_ref(imemory->gs_lib_ctx->gs_name_table, (const byte *)"HasAnnots", 9, &nameref, 1);
- if (code < 0)
- return code;
- make_bool(&boolref, false);
- code = dict_put(op, &nameref, &boolref, &i_ctx_p->dict_stack);
- if (code < 0)
- return code;
+ pdfi_gstate_to_PS(pdfctx->ctx, igs, &i_switch);
+ }
- code = names_ref(imemory->gs_lib_ctx->gs_name_table, (const byte *)"UsesTransparency", 16, &nameref, 1);
- if (code < 0)
- return code;
- make_bool(&boolref, info.HasTransparency);
- code = dict_put(op, &nameref, &boolref, &i_ctx_p->dict_stack);
- if (code < 0)
- return code;
+ if (code < 0)
+ return code;
- code = names_ref(imemory->gs_lib_ctx->gs_name_table, (const byte *)"NumSpots", 8, &nameref, 1);
- if (code < 0)
- return code;
- make_int(&numref, info.NumSpots);
- code = dict_put(op, &nameref, &numref, &i_ctx_p->dict_stack);
- if (code < 0)
- return code;
+ pop(1);
+ op = osp;
- if (info.boxes & MEDIA_BOX) {
- code = names_ref(imemory->gs_lib_ctx->gs_name_table, (const byte *)"MediaBox", 8, &nameref, 1);
+ code = dict_create(4, op);
if (code < 0)
return code;
- code = ialloc_ref_array(&aref, a_all, 4, "array");
+
+ code = names_ref(imemory->gs_lib_ctx->gs_name_table, (const byte *)"HasAnnots", 9, &nameref, 1);
if (code < 0)
return code;
- refset_null(aref.value.refs, 4);
- for (i=0;i < 4;i++) {
- make_real(&numref, info.MediaBox[i]);
- eltp = aref.value.refs + i;
- ref_assign_old(&aref, eltp, &numref, "put");
- }
- code = dict_put(op, &nameref, &aref, &i_ctx_p->dict_stack);
+ make_bool(&boolref, false);
+ code = dict_put(op, &nameref, &boolref, &i_ctx_p->dict_stack);
if (code < 0)
return code;
- }
- if (info.boxes & CROP_BOX) {
- code = names_ref(imemory->gs_lib_ctx->gs_name_table, (const byte *)"CropBox", 7, &nameref, 1);
+ code = names_ref(imemory->gs_lib_ctx->gs_name_table, (const byte *)"UsesTransparency", 16, &nameref, 1);
if (code < 0)
return code;
- code = ialloc_ref_array(&aref, a_all, 4, "array");
+ make_bool(&boolref, info.HasTransparency);
+ code = dict_put(op, &nameref, &boolref, &i_ctx_p->dict_stack);
if (code < 0)
return code;
- refset_null(aref.value.refs, 4);
- for (i=0;i < 4;i++) {
- make_real(&numref, info.CropBox[i]);
- eltp = aref.value.refs + i;
- ref_assign_old(&aref, eltp, &numref, "put");
- }
- code = dict_put(op, &nameref, &aref, &i_ctx_p->dict_stack);
- if (code < 0)
- return code;
- }
- if (info.boxes & TRIM_BOX) {
- code = names_ref(imemory->gs_lib_ctx->gs_name_table, (const byte *)"TrimBox", 7, &nameref, 1);
+ code = names_ref(imemory->gs_lib_ctx->gs_name_table, (const byte *)"NumSpots", 8, &nameref, 1);
if (code < 0)
return code;
- code = ialloc_ref_array(&aref, a_all, 4, "array");
+ make_int(&numref, info.NumSpots);
+ code = dict_put(op, &nameref, &numref, &i_ctx_p->dict_stack);
if (code < 0)
return code;
- refset_null(aref.value.refs, 4);
- for (i=0;i < 4;i++) {
- make_real(&numref, info.TrimBox[i]);
- eltp = aref.value.refs + i;
- ref_assign_old(&aref, eltp, &numref, "put");
+
+ if (info.boxes & MEDIA_BOX) {
+ code = names_ref(imemory->gs_lib_ctx->gs_name_table, (const byte *)"MediaBox", 8, &nameref, 1);
+ if (code < 0)
+ return code;
+ code = ialloc_ref_array(&aref, a_all, 4, "array");
+ if (code < 0)
+ return code;
+ refset_null(aref.value.refs, 4);
+ for (i=0;i < 4;i++) {
+ make_real(&numref, info.MediaBox[i]);
+ eltp = aref.value.refs + i;
+ ref_assign_old(&aref, eltp, &numref, "put");
+ }
+ code = dict_put(op, &nameref, &aref, &i_ctx_p->dict_stack);
+ if (code < 0)
+ return code;
}
- code = dict_put(op, &nameref, &aref, &i_ctx_p->dict_stack);
- if (code < 0)
- return code;
- }
- if (info.boxes & ART_BOX) {
- code = names_ref(imemory->gs_lib_ctx->gs_name_table, (const byte *)"ArtBox", 6, &nameref, 1);
- if (code < 0)
- return code;
- code = ialloc_ref_array(&aref, a_all, 4, "array");
- if (code < 0)
- return code;
- refset_null(aref.value.refs, 4);
- for (i=0;i < 4;i++) {
- make_real(&numref, info.ArtBox[i]);
- eltp = aref.value.refs + i;
- ref_assign_old(&aref, eltp, &numref, "put");
+ if (info.boxes & CROP_BOX) {
+ code = names_ref(imemory->gs_lib_ctx->gs_name_table, (const byte *)"CropBox", 7, &nameref, 1);
+ if (code < 0)
+ return code;
+ code = ialloc_ref_array(&aref, a_all, 4, "array");
+ if (code < 0)
+ return code;
+ refset_null(aref.value.refs, 4);
+ for (i=0;i < 4;i++) {
+ make_real(&numref, info.CropBox[i]);
+ eltp = aref.value.refs + i;
+ ref_assign_old(&aref, eltp, &numref, "put");
+ }
+ code = dict_put(op, &nameref, &aref, &i_ctx_p->dict_stack);
+ if (code < 0)
+ return code;
}
- code = dict_put(op, &nameref, &aref, &i_ctx_p->dict_stack);
- if (code < 0)
- return code;
- }
- if (info.boxes & BLEED_BOX) {
- code = names_ref(imemory->gs_lib_ctx->gs_name_table, (const byte *)"BleedBox", 8, &nameref, 1);
- if (code < 0)
- return code;
- code = ialloc_ref_array(&aref, a_all, 4, "array");
- if (code < 0)
- return code;
- refset_null(aref.value.refs, 4);
- for (i=0;i < 4;i++) {
- make_real(&numref, info.BleedBox[i]);
- eltp = aref.value.refs + i;
- ref_assign_old(&aref, eltp, &numref, "put");
+ if (info.boxes & TRIM_BOX) {
+ code = names_ref(imemory->gs_lib_ctx->gs_name_table, (const byte *)"TrimBox", 7, &nameref, 1);
+ if (code < 0)
+ return code;
+ code = ialloc_ref_array(&aref, a_all, 4, "array");
+ if (code < 0)
+ return code;
+ refset_null(aref.value.refs, 4);
+ for (i=0;i < 4;i++) {
+ make_real(&numref, info.TrimBox[i]);
+ eltp = aref.value.refs + i;
+ ref_assign_old(&aref, eltp, &numref, "put");
+ }
+ code = dict_put(op, &nameref, &aref, &i_ctx_p->dict_stack);
+ if (code < 0)
+ return code;
}
- code = dict_put(op, &nameref, &aref, &i_ctx_p->dict_stack);
- if (code < 0)
- return code;
- }
- code = names_ref(imemory->gs_lib_ctx->gs_name_table, (const byte *)"Rotate", 6, &nameref, 1);
- if (code < 0)
- return code;
- make_real(&numref, info.Rotate);
- code = dict_put(op, &nameref, &numref, &i_ctx_p->dict_stack);
- if (code < 0)
- return code;
+ if (info.boxes & ART_BOX) {
+ code = names_ref(imemory->gs_lib_ctx->gs_name_table, (const byte *)"ArtBox", 6, &nameref, 1);
+ if (code < 0)
+ return code;
+ code = ialloc_ref_array(&aref, a_all, 4, "array");
+ if (code < 0)
+ return code;
+ refset_null(aref.value.refs, 4);
+ for (i=0;i < 4;i++) {
+ make_real(&numref, info.ArtBox[i]);
+ eltp = aref.value.refs + i;
+ ref_assign_old(&aref, eltp, &numref, "put");
+ }
+ code = dict_put(op, &nameref, &aref, &i_ctx_p->dict_stack);
+ if (code < 0)
+ return code;
+ }
- if (info.UserUnit != 1) {
- code = names_ref(imemory->gs_lib_ctx->gs_name_table, (const byte *)"UserUnit", 8, &nameref, 1);
+ if (info.boxes & BLEED_BOX) {
+ code = names_ref(imemory->gs_lib_ctx->gs_name_table, (const byte *)"BleedBox", 8, &nameref, 1);
+ if (code < 0)
+ return code;
+ code = ialloc_ref_array(&aref, a_all, 4, "array");
+ if (code < 0)
+ return code;
+ refset_null(aref.value.refs, 4);
+ for (i=0;i < 4;i++) {
+ make_real(&numref, info.BleedBox[i]);
+ eltp = aref.value.refs + i;
+ ref_assign_old(&aref, eltp, &numref, "put");
+ }
+ code = dict_put(op, &nameref, &aref, &i_ctx_p->dict_stack);
+ if (code < 0)
+ return code;
+ }
+
+ code = names_ref(imemory->gs_lib_ctx->gs_name_table, (const byte *)"Rotate", 6, &nameref, 1);
if (code < 0)
return code;
- make_real(&numref, info.UserUnit);
+ make_real(&numref, info.Rotate);
code = dict_put(op, &nameref, &numref, &i_ctx_p->dict_stack);
if (code < 0)
return code;
- }
+ if (info.UserUnit != 1) {
+ code = names_ref(imemory->gs_lib_ctx->gs_name_table, (const byte *)"UserUnit", 8, &nameref, 1);
+ if (code < 0)
+ return code;
+ make_real(&numref, info.UserUnit);
+ code = dict_put(op, &nameref, &numref, &i_ctx_p->dict_stack);
+ if (code < 0)
+ return code;
+ }
+ }
+ else {
+ return_error(gs_error_ioerror);
+ }
return 0;
}
@@ -809,9 +909,7 @@ static int zPDFdrawpage(i_ctx_t *i_ctx_p)
int code = 0;
uint64_t page = 0;
pdfctx_t *pdfctx;
- gs_gstate *pgs = NULL;
- gs_gstate_client_procs procs;
- void *client_data;
+ pdfi_switch_t i_switch;
check_op(2);
@@ -821,27 +919,28 @@ static int zPDFdrawpage(i_ctx_t *i_ctx_p)
check_type(*(op - 1), t_pdfctx);
pdfctx = r_ptr(op - 1, pdfctx_t);
- code = gs_gsave(igs);
- if (code < 0)
- return code;
-
- pgs = pdfctx->ctx->pgs;
- procs = igs->client_procs;
- client_data = igs->client_data;
- pdfi_gstate_from_PS(pdfctx->ctx, igs, &client_data, &procs);
- pdfctx->ctx->pgs = igs;
+ if (pdfctx->pdf_stream != NULL) {
+ code = gs_gsave(igs);
+ if (code < 0)
+ return code;
- code = pdfi_page_render(pdfctx->ctx, page, false);
- if (code >= 0)
- pop(2);
+ code = pdfi_gstate_from_PS(pdfctx->ctx, igs, &i_switch, pdfctx->profile_cache);
- pdfi_gstate_to_PS(pdfctx->ctx, igs, client_data, &procs);
- if (code == 0)
- code = gs_grestore(igs);
- else
- (void)gs_grestore(igs);
- pdfctx->ctx->pgs = pgs;
+ if (code >= 0) {
+ code = pdfi_page_render(pdfctx->ctx, page, false);
+ if (code >= 0)
+ pop(2);
+ pdfi_gstate_to_PS(pdfctx->ctx, igs, &i_switch);
+ }
+ if (code == 0)
+ code = gs_grestore(igs);
+ else
+ (void)gs_grestore(igs);
+ }
+ else {
+ return_error(gs_error_ioerror);
+ }
return code;
}
@@ -906,6 +1005,12 @@ static int zPDFInit(i_ctx_t *i_ctx_p)
pdfctx->ps_stream = NULL;
pdfctx->pdf_stream = NULL;
pdfctx->pdf_stream_memory = NULL;
+ pdfctx->profile_cache = gsicc_profilecache_new(imemory);
+ if (pdfctx->profile_cache == NULL) {
+ code = gs_note_error(gs_error_VMerror);
+ goto error;
+ }
+ pdfctx->cache_memory = imemory;
ctx = pdfi_create_context(cmem);
if (ctx == NULL) {
@@ -914,7 +1019,7 @@ static int zPDFInit(i_ctx_t *i_ctx_p)
}
pdfctx->ctx = ctx;
- get_zfont_glyph_name((void **)&pdfctx->ctx->get_glyph_name);
+ get_zfont_glyph_name(&pdfctx->ctx->get_glyph_name);
pdfctx->ctx->get_glyph_index = zpdfi_glyph_index;
if (ref_stack_count(&o_stack) > 0 && r_has_type(op, t_dictionary)) {
@@ -984,7 +1089,7 @@ static int zPDFInit(i_ctx_t *i_ctx_p)
pdfctx->ctx->args.last_page = pvalueref->value.intval;
}
- if (dict_find_string(pdictref, "NOCIDFALLBACK", &pvalueref) > 0) {
+ if (dict_find_string(pdictref, "PDFNOCIDFALLBACK", &pvalueref) > 0) {
if (!r_has_type(pvalueref, t_boolean))
goto error;
pdfctx->ctx->args.nocidfallback = pvalueref->value.boolval;
@@ -996,6 +1101,21 @@ static int zPDFInit(i_ctx_t *i_ctx_p)
pdfctx->ctx->args.no_pdfmark_outlines = pvalueref->value.boolval;
}
+ /* This one can be a boolean OR an integer */
+ if (dict_find_string(pdictref, "UsePDFX3Profile", &pvalueref) > 0) {
+ if (!r_has_type(pvalueref, t_boolean)) {
+ if (!r_has_type(pvalueref, t_integer))
+ goto error;
+ else {
+ pdfctx->ctx->args.UsePDFX3Profile = true;
+ pdfctx->ctx->args.PDFX3Profile_num = pvalueref->value.intval;
+ }
+ } else {
+ pdfctx->ctx->args.UsePDFX3Profile = pvalueref->value.boolval;
+ pdfctx->ctx->args.PDFX3Profile_num = 0;
+ }
+ }
+
if (dict_find_string(pdictref, "NO_PDFMARK_DESTS", &pvalueref) > 0) {
if (!r_has_type(pvalueref, t_boolean))
goto error;
@@ -1056,6 +1176,12 @@ static int zPDFInit(i_ctx_t *i_ctx_p)
pdfctx->ctx->args.preserveannots = pvalueref->value.boolval;
}
+ if (dict_find_string(pdictref, "PreserveMarkedContent", &pvalueref) > 0) {
+ if (!r_has_type(pvalueref, t_boolean))
+ goto error;
+ pdfctx->ctx->args.preservemarkedcontent = pvalueref->value.boolval;
+ }
+
if (dict_find_string(pdictref, "NoUserUnit", &pvalueref) > 0) {
if (!r_has_type(pvalueref, t_boolean))
goto error;
@@ -1091,21 +1217,57 @@ static int zPDFInit(i_ctx_t *i_ctx_p)
if (code < 0)
goto error;
}
+ if (dict_find_string(pdictref, "CIDSubstPath", &pvalueref) > 0) {
+ if (!r_has_type(pvalueref, t_string))
+ goto error;
+ pdfctx->ctx->args.cidsubstpath.data = (byte *)gs_alloc_bytes(pdfctx->ctx->memory, r_size(pvalueref) + 1, "PDF CIDSubstPath from zpdfops");
+ memcpy(pdfctx->ctx->args.cidsubstpath.data, pvalueref->value.const_bytes, r_size(pvalueref));
+ pdfctx->ctx->args.cidsubstpath.size = r_size(pvalueref);
+ }
+ if (dict_find_string(pdictref, "CIDSubstFont", &pvalueref) > 0) {
+ if (!r_has_type(pvalueref, t_string))
+ goto error;
+ pdfctx->ctx->args.cidsubstfont.data = (byte *)gs_alloc_bytes(pdfctx->ctx->memory, r_size(pvalueref) + 1, "PDF CIDSubstPath from zpdfops");
+ memcpy(pdfctx->ctx->args.cidsubstfont.data, pvalueref->value.const_bytes, r_size(pvalueref));
+ pdfctx->ctx->args.cidsubstfont.size = r_size(pvalueref);
+ }
+ if (dict_find_string(pdictref, "IgnoreToUnicode", &pvalueref) > 0) {
+ if (!r_has_type(pvalueref, t_boolean))
+ goto error;
+ pdfctx->ctx->args.ignoretounicode = pvalueref->value.boolval;
+ }
+ if (dict_find_string(pdictref, "NONATIVEFONTMAP", &pvalueref) > 0) {
+ if (!r_has_type(pvalueref, t_boolean))
+ goto error;
+ pdfctx->ctx->args.nonativefontmap = pvalueref->value.boolval;
+ }
code = 0;
pop(1);
}
- zpdfi_populate_search_paths(i_ctx_p, ctx);
+ code = zpdfi_populate_search_paths(i_ctx_p, ctx);
+ if (code < 0)
+ goto error;
+
+ code = zpdfi_populate_fontmap_files(i_ctx_p, ctx);
+ if (code < 0)
+ goto error;
+
op = osp;
push(1);
make_tav(op, t_pdfctx, icurrent_space | a_all, pstruct, (obj_header_t *)(pdfctx));
return 0;
error:
- if (ctx)
+ if (ctx != NULL)
pdfi_free_context(ctx);
/* gs_memory_chunk_unwrap() returns the "wrapped" allocator, which we don't need */
(void)gs_memory_chunk_unwrap(cmem);
- if (pdfctx) {
+ if (pdfctx != NULL) {
+ pdfctx->ctx = NULL; /* Freed already above! */
+ if (pdfctx->profile_cache != NULL) {
+ gs_free_object(imemory, pdfctx->profile_cache, "discard temporary profile cache");
+ pdfctx->profile_cache = NULL;
+ }
pdfctx->pdf_memory = NULL;
gs_free_object(imemory, pdfctx, "PDFcontext");
}
diff --git a/toolbin/bmpcmp.c b/toolbin/bmpcmp.c
index 6bd905bf..31f2284c 100644
--- a/toolbin/bmpcmp.c
+++ b/toolbin/bmpcmp.c
@@ -80,6 +80,8 @@ typedef struct
int exhaustive;
int basenum;
int maxdiffs;
+ int numdiffs;
+ int score;
char *filename1;
char *filename2;
char *outroot;
@@ -105,12 +107,12 @@ typedef struct
int bpp;
int cmyk;
void *lab;
- /* Below are the entries for handling spot colors and the */
- /* CMYK equivalents (only used for PSD images currently). */
+ /* Below are the entries for handling spot colors and the */
+ /* CMYK equivalents (only used for PSD images currently). */
int *num_spots;
unsigned char *spots;
- /* used to map the second file colors to the same colorants */
- /* as the first and issue a warning if they did not match. */
+ /* used to map the second file colors to the same colorants */
+ /* as the first and issue a warning if they did not match. */
int *color_map;
} Image;
@@ -1423,8 +1425,8 @@ static void *psd_read(ImageReader *im,
{
int data_len;
- if (ir_len < 12) /* enough for "8BIM", short data_type (0x3ef), 2-byte pad, int data_len */
- break; /* not enough data */
+ if (ir_len < 12) /* enough for "8BIM", short data_type (0x3ef), 2-byte pad, int data_len */
+ break; /* not enough data */
c = get_int(im->file, 1);
/* c == 8BIM */
c = get_short(im->file, 1);
@@ -1439,7 +1441,7 @@ static void *psd_read(ImageReader *im,
while (data_len > 0) {
unsigned char spot[4];
- if (ir_len < 14) /* enough for short colorspace, and CMYK data */
+ if (ir_len < 14) /* enough for short colorspace, and CMYK data */
break;
/* Read the colorspace */
c = get_short(im->file, 1);
@@ -1450,14 +1452,14 @@ static void *psd_read(ImageReader *im,
}
/* c == 2 = COLORSPACE = CMYK */
/* 16 bits C, 16 bits M, 16 bits Y, 16 bits K, ignore the low byte */
- spot[0] = 0xff - fgetc(im->file); /* high byte of Cyan */
- (void)fgetc(im->file); /* ignore low byte */
- spot[1] = 0xff - fgetc(im->file); /* high byte of Magenta */
- (void)fgetc(im->file); /* ignore low byte */
- spot[2] = 0xff - fgetc(im->file); /* high byte of Yellow */
- (void)fgetc(im->file); /* ignore low byte */
- spot[3] = 0xff - fgetc(im->file); /* high byte of Black */
- (void)fgetc(im->file); /* ignore low byte */
+ spot[0] = 0xff - fgetc(im->file); /* high byte of Cyan */
+ (void)fgetc(im->file); /* ignore low byte */
+ spot[1] = 0xff - fgetc(im->file); /* high byte of Magenta */
+ (void)fgetc(im->file); /* ignore low byte */
+ spot[2] = 0xff - fgetc(im->file); /* high byte of Yellow */
+ (void)fgetc(im->file); /* ignore low byte */
+ spot[3] = 0xff - fgetc(im->file); /* high byte of Black */
+ (void)fgetc(im->file); /* ignore low byte */
/* 2 bytes opacity (always seems to be 0) */
(void)get_short(im->file, 1);
/* 1 byte 'kind' (0 = selected, 1 = protected) */
@@ -1467,15 +1469,15 @@ static void *psd_read(ImageReader *im,
data_len -= 14;
ir_len -= 14;
- /* Check if the spot colorants were filled in by the first image and */
- /* if so, fill in the color_map with the matching spot number. */
- if (*(img->num_spots) == 0) { /* num_spots not updated until finished with this file */
+ /* Check if the spot colorants were filled in by the first image and */
+ /* if so, fill in the color_map with the matching spot number. */
+ if (*(img->num_spots) == 0) { /* num_spots not updated until finished with this file */
/* Spots not seen, this must be the first image */
img->spots[spotnum*4 + 0] = spot[0];
img->spots[spotnum*4 + 1] = spot[1];
img->spots[spotnum*4 + 2] = spot[2];
img->spots[spotnum*4 + 3] = spot[3];
- img->color_map[spotnum + 4] = spotnum + 4; /* default, map to self */
+ img->color_map[spotnum + 4] = spotnum + 4; /* default, map to self */
} else {
/* spots were set by the first file. See if the colorant order matches */
if (img->spots[spotnum*4 + 0] != spot[0] || img->spots[spotnum*4 + 1] != spot[1] ||
@@ -1500,7 +1502,7 @@ static void *psd_read(ImageReader *im,
}
spotnum++;
}
- *(img->num_spots) = spotnum; /* save for the next image file */
+ *(img->num_spots) = spotnum; /* save for the next image file */
#ifdef VERBOSE
fprintf(stderr, "color map:");
for (i=0; i < 4+nimg->um_spots; i++)
@@ -1661,7 +1663,7 @@ static void *psd_read(ImageReader *im,
for (x = 0; x < w; x++)
{
*ptr = 255 - *line++;
- line++; /* skip the low byte of data */
+ line++; /* skip the low byte of data */
ptr += n;
}
ptr -= w*n + span;
@@ -1776,7 +1778,9 @@ static void simple_diff_int(unsigned char *bmp,
{
for (x = 0; x < w; x++)
{
- if (*isrc++ != *isrc2++)
+ int s0 = *isrc++;
+ int s1 = *isrc2++;
+ if (s0 != s1)
{
if (x < bbox.xmin)
bbox.xmin = x;
@@ -1786,6 +1790,18 @@ static void simple_diff_int(unsigned char *bmp,
bbox.ymin = y;
if (y > bbox.ymax)
bbox.ymax = y;
+ if (params->outroot == NULL) {
+ int s;
+ params->numdiffs++;
+ s = (s0 && 0xff) - (s1 & 0xff);
+ params->score += (s > 0 ? s : -s);
+ s = ((s0>>8) && 0xff) - ((s1>>8) & 0xff);
+ params->score += (s > 0 ? s : -s);
+ s = ((s0>>16) && 0xff) - ((s1>>16) & 0xff);
+ params->score += (s > 0 ? s : -s);
+ s = ((s0>>24) && 0xff) - ((s1>>24) & 0xff);
+ params->score += (s > 0 ? s : -s);
+ }
*map++ = 1;
}
else
@@ -1825,10 +1841,12 @@ static void simple_diff_n(unsigned char *bmp,
{
for (x = 0; x < w; x++)
{
+ int score = 0;
*map = 0;
for (z = 0; z < n; z++)
{
- if (*src++ != *src2++)
+ int s = *src++ - *src2++;
+ if (s)
{
if (x < bbox.xmin)
bbox.xmin = x;
@@ -1839,8 +1857,10 @@ static void simple_diff_n(unsigned char *bmp,
if (y > bbox.ymax)
bbox.ymax = y;
*map = 1;
+ score += (s > 0 ? s : -s);
}
}
+ params->score += score;
map++;
}
src += span;
@@ -3069,7 +3089,7 @@ static void uncmyk_bmp(unsigned char *bmp,
y = *bmp++;
k = *bmp++;
#if BETTER_CMYK
- lookup(c,m,y,k,&r,&g,&b);
+ lookup(c,m,y,k,&r,&g,&b);
#else
r = (255-c-k);
if (r < 0)
@@ -3377,6 +3397,7 @@ png_cleanup:
static void syntax(void)
{
fprintf(stderr, "Syntax: bmpcmp [options] <file1> <file2> <outfile_root> [<basenum>] [<maxdiffs>]\n");
+ fprintf(stderr, " or: bmpcmp [options] <file1> <file2>\n");
fprintf(stderr, " -w <window> or -w<window> window size (default=1)\n");
fprintf(stderr, " (good values = 1, 3, 5, 7, etc)\n");
fprintf(stderr, " -t <threshold> or -t<threshold> threshold (default=0)\n");
@@ -3492,7 +3513,7 @@ static void parseArgs(int argc, char *argv[], Params *params)
i++;
}
- if (arg < 3)
+ if (arg < 2)
{
syntax();
}
@@ -3716,7 +3737,7 @@ int main(int argc, char *argv[])
/* The following is for CMYK+spots (currently only PSD */
int num_spots = 0;
- unsigned char spots[256*4] = { 0 }; /* shared between both images */
+ unsigned char spots[256*4] = { 0 }; /* shared between both images */
int color_map[256] = { 0, 1, 2, 3, 0 };
im1.spots = (unsigned char *)&spots;
@@ -3806,6 +3827,8 @@ int main(int argc, char *argv[])
params.height = h;
params.span = s;
params.bpp = bpp;
+ params.numdiffs = 0;
+ params.score = 0;
if (params.lab) {
(*diffFn)(lab1, lab2, map, &bbox, &params);
@@ -3813,7 +3836,13 @@ int main(int argc, char *argv[])
(*diffFn)(bmp, bmp2, map, &bbox, &params);
}
- if ((bbox.xmin <= bbox.xmax) && (bbox.ymin <= bbox.ymax))
+ if (params.outroot == NULL) {
+ /* Counting mode. Just output the score. */
+ fprintf(stderr, "NumDiffPixels=%d\n", params.numdiffs);
+ fprintf(stderr, "Score=%d\n", params.score);
+ noDifferences = 0;
+ }
+ else if ((bbox.xmin <= bbox.xmax) && (bbox.ymin <= bbox.ymax))
{
/* Make the bbox sensibly exclusive */
bbox.xmax++;
diff --git a/toolbin/encs2c.ps b/toolbin/encs2c.ps
index 773b8a80..72a27de7 100644
--- a/toolbin/encs2c.ps
+++ b/toolbin/encs2c.ps
@@ -20,6 +20,11 @@
% for reference. It reads in the known Encodings and pseudo-Encodings
% (see the definition of /encfiles below) and generates C files that
% represent them in a compact format described in src/gscencs.c.
+%
+% If this file does need to be run again (and it has been in December 2020) you
+% should generate all 4 files (gscedata.[c,h] and gdevpdtv.[c,h] by running this
+% program 4 times, once for each output file.
+%
% The generated files are named gscedata.[ch] and are included in the
% source distribution in the src directory. The canonical invocation is
% gs -dNOSAFER -Ilib -dNODISPLAY -q -SO=gscedata.h toolbin/encs2c.ps > src/gscedata.h
@@ -324,20 +329,24 @@ estrs readonly pop
dup 1 eq { exit } if exch 1 add exch -1 bitshift
} loop pop def
+
+
% Write the initial boilerplate.
(/* Copyright (C) 2001-2021 Artifex Software, Inc.) =
( All Rights Reserved.) =
-( ) =
+() =
( This software is provided AS-IS with no warranty, either express or) =
( implied.) =
() =
-( This software is distributed under license and may not be copied, modified) =
-( or distributed except as expressly authorized under the terms of that) =
-( license. Refer to licensing information at http://www.artifex.com/) =
-( or contact Artifex Software, Inc., 1305 Grant Avenue - Suite 200,) =
-( Novato, CA 94945, U.S.A., +1(415)492-9861, for further information.) =
+( This software is distributed under license and may not be copied,) =
+( modified or distributed except as expressly authorized under the terms) =
+( of the license contained in the file LICENSE in this distribution.) =
+() =
+( Refer to licensing information at http://www.artifex.com or contact) =
+( Artifex Software, Inc., 1305 Grant Avenue - Suite 200, Novato,) =
+( CA 94945, U.S.A., +1(415)492-9861, for further information.) =
+
(*/) =
-(/* $) print (Id: ) print O print ( $) print ( */) =
(/*) =
( * This file contains substantial parts of toolbin/encs2c.ps,) =
( * which generated the remainder of the file mechanically from) =
@@ -348,6 +357,9 @@ encfiles {
( * This source file is maintained manually under source code control,) =
( * however its content should be regenerated by using encs2c.ps) =
( * if changes are required.) =
+( * You should not manually alter this file! If you regenerate it using) =
+( * encs2c.ps you must regenerate all 4 files; base/gscedata.[c|h]) =
+( * and devices/vector/gdevpdtv.[c|h]) =
( */) =
() =
diff --git a/toolbin/localcluster/clusterpush.pl b/toolbin/localcluster/clusterpush.pl
index 2f251551..7d998e7e 100755
--- a/toolbin/localcluster/clusterpush.pl
+++ b/toolbin/localcluster/clusterpush.pl
@@ -7,8 +7,9 @@ use Data::Dumper;
my $verbose=0;
-# bmpcmp usage: [gs] [pcl] [xps] [mupdf] [mujstest] [murun] [mudrawpy] [runtests] [extract] [extractmu] [extractgs] [bmpcmp] [arm] [lowres] [highres] [32] [pdfwrite] [ps2write] [xpswrite] [nopdfwrite] [relaxtimeout] [extended] [smoke] [cull] [avx2] [$user] | abort
-
+# bmpcmp usage: [-L] [gs] [pcl] [xps] [mupdf] [mujstest] [murun] [mudrawpy] [runtests] [extract] [extractmu] [extractgs] [bmpcmp] [arm] [lowres] [highres] [32] [pdfwrite] [ps2write] [xpswrite] [nopdfwrite] [relaxtimeout] [extended] [smoke] [cull] [avx2] [$user] | abort
+#
+# -L passes -L to rsync, which expands softlinks.
my %products=('abort' =>1,
@@ -31,6 +32,7 @@ my %products=('abort' =>1,
'muwasm'=>1,
'extractgs'=>1);
+my $rsync_L = "";
my $user;
my $product="";
my $filters="";
@@ -85,6 +87,8 @@ while ($t1=shift) {
$nopdfwrite="nopdfwrite";
} elsif ($t1 eq "timeout" || $t1 eq "relaxtimeout") {
$relaxTimeout="relaxTimeout";
+ } elsif ($t1 eq "-L") {
+ $rsync_L="L";
} elsif ($t1=~m/^-/ || $t1=~m/^\d/) {
$command.=$t1.' ';
} elsif ($t1 =~ m/ifilter=.*/) {
@@ -213,7 +217,7 @@ if ($msys) {
$hostpath="regression:$dir/$user/$directory";
}
-my $cmd="rsync -axcz";
+my $cmd="rsync -axcz" . $rsync_L;
if ($product eq "extractgs") {
$cmd .= "L"; # expand links.
diff --git a/windows/ghostpdf.vcproj b/windows/ghostpdf.vcproj
index 23c0c3a5..f8dc7bdf 100644
--- a/windows/ghostpdf.vcproj
+++ b/windows/ghostpdf.vcproj
@@ -29,7 +29,7 @@
BuildCommandLine="cd .. &amp;&amp; nmake -f psi\msvc32.mak SBR=1 DEVSTUDIO= gpdfdebug &amp;&amp; nmake -f psi\msvc32.mak DEVSTUDIO= debugbsc"
ReBuildCommandLine="cd .. &amp;&amp; nmake -f psi\msvc32.mak DEVSTUDIO= debugclean &amp;&amp; nmake -f psi\msvc32.mak SBR=1 DEVSTUDIO= gpdfdebug &amp;&amp; nmake -f psi\msvc32.mak DEVSTUDIO= debugbsc"
CleanCommandLine="cd .. &amp;&amp; nmake -f psi\msvc32.mak DEVSTUDIO= debugclean"
- Output="$(ProjectDir)\..\debugbin\gpdfwin32c.exe"
+ Output="$(ProjectDir)\..\debugbin\gpdfwin32.exe"
PreprocessorDefinitions="WIN32;_DEBUG;DEBUG=1;TDEBUG=1;HAVE_SSE2=1"
IncludeSearchPath=""
ForcedIncludes=""
@@ -49,7 +49,7 @@
BuildCommandLine="cd .. &amp;&amp; nmake -f psi\msvc32.mak WIN64= SBR=1 DEVSTUDIO= gpdfdebug &amp;&amp; nmake -f psi\msvc32.mak WIN64= DEVSTUDIO= debugbsc"
ReBuildCommandLine="cd .. &amp;&amp; nmake -f psi\msvc32.mak WIN64= DEVSTUDIO= debugclean &amp;&amp; nmake -f psi\msvc32.mak WIN64= SBR=1 DEVSTUDIO= gpdfdebug &amp;&amp; nmake -f psi\msvc32.mak WIN64= DEVSTUDIO= debugbsc"
CleanCommandLine="cd .. &amp;&amp; nmake -f psi\msvc32.mak WIN64= DEVSTUDIO= debugclean"
- Output="$(ProjectDir)\..\debugbin\gpdfwin64c.exe"
+ Output="$(ProjectDir)\..\debugbin\gpdfwin64.exe"
PreprocessorDefinitions="WIN64;_DEBUG;DEBUG=1;TDEBUG=1"
IncludeSearchPath=""
ForcedIncludes=""
@@ -69,7 +69,7 @@
BuildCommandLine="cd .. &amp;&amp; nmake -f psi\msvc32.mak SBR=1 DEVSTUDIO= gpdf &amp;&amp; nmake -f psi\msvc32.mak DEVSTUDIO= bsc"
ReBuildCommandLine="cd .. &amp;&amp; nmake -f psi\msvc32.mak DEVSTUDIO= clean &amp;&amp; nmake -f psi\msvc32.mak SBR=1 DEVSTUDIO= gpdf &amp;&amp; nmake -f psi\msvc32.mak DEVSTUDIO= bsc"
CleanCommandLine="cd .. &amp;&amp; nmake -f psi\msvc32.mak DEVSTUDIO= clean"
- Output="$(ProjectDir)\..\bin\gpdfwin32c.exe"
+ Output="$(ProjectDir)\..\bin\gpdfwin32.exe"
PreprocessorDefinitions="WIN32;NDEBUG;HAVE_SSE2=1"
IncludeSearchPath=""
ForcedIncludes=""
@@ -89,7 +89,7 @@
BuildCommandLine="cd .. &amp;&amp; nmake -f psi\msvc32.mak WIN64= SBR=1 DEVSTUDIO= gpdf &amp;&amp; nmake -f psi\msvc32.mak WIN64= DEVSTUDIO= bsc"
ReBuildCommandLine="cd .. &amp;&amp; nmake -f psi\msvc32.mak WIN64= DEVSTUDIO= clean &amp;&amp; nmake -f psi\msvc32.mak WIN64= SBR=1 DEVSTUDIO= gpdf &amp;&amp; nmake -f psi\msvc32.mak WIN64= DEVSTUDIO= bsc"
CleanCommandLine="cd .. &amp;&amp; nmake -f psi\msvc32.mak WIN64= DEVSTUDIO= clean"
- Output="$(ProjectDir)\..\bin\gpdfwin64c.exe"
+ Output="$(ProjectDir)\..\bin\gpdfwin64.exe"
PreprocessorDefinitions="WIN32;NDEBUG;"
IncludeSearchPath=""
ForcedIncludes=""
@@ -109,7 +109,7 @@
BuildCommandLine="cd .. &amp;&amp; nmake -f psi\msvc32.mak SBR=1 DEVSTUDIO= gpdfprofile &amp;&amp; nmake -f psi\msvc32.mak DEVSTUDIO= profilebsc"
ReBuildCommandLine="cd .. &amp;&amp; nmake -f psi\msvc32.mak DEVSTUDIO= profileclean &amp;&amp; nmake -f psi\msvc32.mak SBR=1 DEVSTUDIO= gpdfprofile &amp;&amp; nmake -f psi\msvc32.mak DEVSTUDIO= profilebsc"
CleanCommandLine="cd .. &amp;&amp; nmake -f psi\msvc32.mak DEVSTUDIO= profileclean"
- Output="$(ProjectDir)\..\profbin\gpdfwin32c.exe"
+ Output="$(ProjectDir)\..\profbin\gpdfwin32.exe"
PreprocessorDefinitions="WIN32;NDEBUG;DEBUG=0;TDEBUG=0;DEBUGSYM=1;HAVE_SSE2=1"
IncludeSearchPath=""
ForcedIncludes=""
@@ -129,7 +129,7 @@
BuildCommandLine="cd .. &amp;&amp; nmake -f psi\msvc32.mak WIN64= SBR=1 DEVSTUDIO= gpdfprofile &amp;&amp; nmake -f psi\msvc32.mak WIN64= DEVSTUDIO= profilebsc"
ReBuildCommandLine="cd .. &amp;&amp; nmake -f psi\msvc32.mak WIN64= DEVSTUDIO= profileclean &amp;&amp; nmake -f psi\msvc32.mak WIN64= SBR=1 DEVSTUDIO= gpdfprofile &amp;&amp; nmake -f psi\msvc32.mak WIN64= DEVSTUDIO= profilebsc"
CleanCommandLine="cd .. &amp;&amp; nmake -f psi\msvc32.mak WIN64= DEVSTUDIO= profileclean"
- Output="$(ProjectDir)\..\profbin\gpdfwin64c.exe"
+ Output="$(ProjectDir)\..\profbin\gpdfwin64.exe"
PreprocessorDefinitions="WIN64;_DEBUG;DEBUG=1;TDEBUG=1"
IncludeSearchPath=""
ForcedIncludes=""
@@ -149,7 +149,7 @@
BuildCommandLine="cd .. &amp;&amp; nmake -f psi\msvc32.mak SBR=1 DEVSTUDIO= gpdfmemento &amp;&amp; nmake -f psi\msvc32.mak DEVSTUDIO= mementobsc"
ReBuildCommandLine="cd .. &amp;&amp; nmake -f psi\msvc32.mak DEVSTUDIO= mementoclean &amp;&amp; nmake -f psi\msvc32.mak SBR=1 DEVSTUDIO= gpdfmemento &amp;&amp; nmake -f psi\msvc32.mak DEVSTUDIO= mementobsc"
CleanCommandLine="cd .. &amp;&amp; nmake -f psi\msvc32.mak DEVSTUDIO= mementoclean"
- Output="$(ProjectDir)\..\membin\gpdfwin32c.exe"
+ Output="$(ProjectDir)\..\membin\gpdfwin32.exe"
PreprocessorDefinitions="WIN32;_DEBUG;DEBUG=1;TDEBUG=1;HAVE_SSE2=1;MEMENTO=1"
IncludeSearchPath=""
ForcedIncludes=""
@@ -169,7 +169,7 @@
BuildCommandLine="cd .. &amp;&amp; nmake -f psi\msvc32.mak WIN64= SBR=1 DEVSTUDIO= gpdfmemento &amp;&amp; nmake -f psi\msvc32.mak WIN64= DEVSTUDIO= mementobsc"
ReBuildCommandLine="cd .. &amp;&amp; nmake -f psi\msvc32.mak WIN64= DEVSTUDIO= mementoclean &amp;&amp; nmake -f psi\msvc32.mak WIN64= SBR=1 DEVSTUDIO= gpdfmemento &amp;&amp; nmake -f psi\msvc32.mak WIN64= DEVSTUDIO= mementobsc"
CleanCommandLine="cd .. &amp;&amp; nmake -f psi\msvc32.mak WIN64= DEVSTUDIO= mementoclean"
- Output="$(ProjectDir)\..\membin\gpdfwin64c.exe"
+ Output="$(ProjectDir)\..\membin\gpdfwin64.exe"
PreprocessorDefinitions="WIN64;_DEBUG;DEBUG=1;TDEBUG=1"
IncludeSearchPath=""
ForcedIncludes=""
@@ -189,7 +189,7 @@
BuildCommandLine="cd .. &amp;&amp; nmake -f psi\msvc32.mak SBR=1 DEVSTUDIO= WITH_CUPS=1 gpdfdebug &amp;&amp; nmake -f psi\msvc32.mak DEVSTUDIO= WITH_CUPS=1 debugbsc"
ReBuildCommandLine="cd .. &amp;&amp; nmake -f psi\msvc32.mak DEVSTUDIO= WITH_CUPS=1 debugclean &amp;&amp; nmake -f psi\msvc32.mak SBR=1 DEVSTUDIO= WITH_CUPS=1 gpdfdebug &amp;&amp; nmake -f psi\msvc32.mak DEVSTUDIO= WITH_CUPS=1 debugbsc"
CleanCommandLine="cd .. &amp;&amp; nmake -f psi\msvc32.mak DEVSTUDIO= WITH_CUPS=1 debugclean"
- Output="$(ProjectDir)\..\debugbin\gpdfwin32c.exe"
+ Output="$(ProjectDir)\..\debugbin\gpdfwin32.exe"
PreprocessorDefinitions="WIN32;_DEBUG;DEBUG=1;TDEBUG=1;HAVE_SSE2=1"
IncludeSearchPath=""
ForcedIncludes=""
@@ -209,7 +209,7 @@
BuildCommandLine="cd .. &amp;&amp; nmake -f psi\msvc32.mak WIN64= SBR=1 DEVSTUDIO= WITH_CUPS=1 gpdfdebug &amp;&amp; nmake -f psi\msvc32.mak WIN64= DEVSTUDIO= WITH_CUPS=1 debugbsc"
ReBuildCommandLine="cd .. &amp;&amp; nmake -f psi\msvc32.mak WIN64= DEVSTUDIO= WITH_CUPS=1 debugclean &amp;&amp; nmake -f psi\msvc32.mak WIN64= SBR=1 DEVSTUDIO= WITH_CUPS=1 gpdfdebug &amp;&amp; nmake -f psi\msvc32.mak WIN64= DEVSTUDIO= WITH_CUPS=1 debugbsc"
CleanCommandLine="cd .. &amp;&amp; nmake -f psi\msvc32.mak WIN64= DEVSTUDIO= debugclean"
- Output="$(ProjectDir)\..\debugbin\gpdfwin64c.exe"
+ Output="$(ProjectDir)\..\debugbin\gpdfwin64.exe"
PreprocessorDefinitions="WIN64;_DEBUG;DEBUG=1;TDEBUG=1"
IncludeSearchPath=""
ForcedIncludes=""
@@ -229,7 +229,7 @@
BuildCommandLine="cd .. &amp;&amp; nmake -f psi\msvc32.mak SBR=1 DEVSTUDIO= WITH_CONTRIB=1 gpdfdebug &amp;&amp; nmake -f psi\msvc32.mak DEVSTUDIO= WITH_CONTRIB=1 debugbsc"
ReBuildCommandLine="cd .. &amp;&amp; nmake -f psi\msvc32.mak DEVSTUDIO= WITH_CONTRIB=1 debugclean &amp;&amp; nmake -f psi\msvc32.mak SBR=1 DEVSTUDIO= WITH_CUPS=1 gpdfdebug &amp;&amp; nmake -f psi\msvc32.mak DEVSTUDIO= WITH_CONTRIB=1 debugbsc"
CleanCommandLine="cd .. &amp;&amp; nmake -f psi\msvc32.mak DEVSTUDIO= WITH_CONTRIB=1 debugclean"
- Output="$(ProjectDir)\..\debugbin\gpdfwin32c.exe"
+ Output="$(ProjectDir)\..\debugbin\gpdfwin32.exe"
PreprocessorDefinitions="WIN32;_DEBUG;DEBUG=1;TDEBUG=1;HAVE_SSE2=1"
IncludeSearchPath=""
ForcedIncludes=""
@@ -249,7 +249,7 @@
BuildCommandLine="cd .. &amp;&amp; nmake -f psi\msvc32.mak WIN64= SBR=1 DEVSTUDIO= WITH_CUPS=1 gpdfdebug &amp;&amp; nmake -f psi\msvc32.mak WIN64= DEVSTUDIO= WITH_CUPS=1 debugbsc"
ReBuildCommandLine="cd .. &amp;&amp; nmake -f psi\msvc32.mak WIN64= DEVSTUDIO= WITH_CUPS=1 debugclean &amp;&amp; nmake -f psi\msvc32.mak WIN64= SBR=1 DEVSTUDIO= WITH_CUPS=1 gpdfdebug &amp;&amp; nmake -f psi\msvc32.mak WIN64= DEVSTUDIO= WITH_CUPS=1 debugbsc"
CleanCommandLine="cd .. &amp;&amp; nmake -f psi\msvc32.mak WIN64= DEVSTUDIO= debugclean"
- Output="$(ProjectDir)\..\debugbin\gpdfwin64c.exe"
+ Output="$(ProjectDir)\..\debugbin\gpdfwin64.exe"
PreprocessorDefinitions="WIN64;_DEBUG;DEBUG=1;TDEBUG=1"
IncludeSearchPath=""
ForcedIncludes=""
@@ -269,7 +269,7 @@
BuildCommandLine="cd .. &amp;&amp; nmake -f psi\msvc32.mak SBR=1 DEVSTUDIO= gpdf &amp;&amp; nmake -f psi\msvc32.mak DEVSTUDIO= bsc"
ReBuildCommandLine="cd .. &amp;&amp; nmake -f psi\msvc32.mak DEVSTUDIO= clean &amp;&amp; nmake -f psi\msvc32.mak SBR=1 DEVSTUDIO= gpdf &amp;&amp; nmake -f psi\msvc32.mak DEVSTUDIO= bsc"
CleanCommandLine="cd .. &amp;&amp; nmake -f psi\msvc32.mak DEVSTUDIO= clean"
- Output="$(ProjectDir)\..\bin\gpdfwin32c.exe"
+ Output="$(ProjectDir)\..\bin\gpdfwin32.exe"
PreprocessorDefinitions="WIN32;NDEBUG;HAVE_SSE2=1"
IncludeSearchPath=""
ForcedIncludes=""
@@ -289,7 +289,7 @@
BuildCommandLine="cd .. &amp;&amp; nmake -f psi\msvc32.mak WIN64= WITH_CONTRIB=1 SBR=1 DEVSTUDIO= WITH_CONTRIB=1 gpdf &amp;&amp; nmake -f psi\msvc32.mak WIN64= WITH_CONTRIB=1 DEVSTUDIO= bsc"
ReBuildCommandLine="cd .. &amp;&amp; nmake -f psi\msvc32.mak WIN64= WITH_CONTRIB=1 DEVSTUDIO= clean &amp;&amp; nmake -f psi\msvc32.mak WIN64= SBR=1 WITH_CONTRIB=1 DEVSTUDIO= gpdf &amp;&amp; nmake -f psi\msvc32.mak WIN64= WITH_CONTRIB=1 DEVSTUDIO= bsc"
CleanCommandLine="cd .. &amp;&amp; nmake -f psi\msvc32.mak WIN64= WITH_CONTRIB=1 DEVSTUDIO= clean"
- Output="$(ProjectDir)\..\bin\gpdfwin64c.exe"
+ Output="$(ProjectDir)\..\bin\gpdfwin64.exe"
PreprocessorDefinitions="WIN32;NDEBUG;"
IncludeSearchPath=""
ForcedIncludes=""
diff --git a/windows/ghostpdf.vcxproj b/windows/ghostpdf.vcxproj
index cfcce87e..1fb003b3 100644
--- a/windows/ghostpdf.vcxproj
+++ b/windows/ghostpdf.vcxproj
@@ -175,7 +175,7 @@
<NMakeBuildCommandLine>cd .. &amp;&amp; nmake -f psi\msvc32.mak SBR=1 DEVSTUDIO= gpdfdebug &amp;&amp; nmake -f psi\msvc32.mak DEVSTUDIO= debugbsc</NMakeBuildCommandLine>
<NMakeReBuildCommandLine>cd .. &amp;&amp; nmake -f psi\msvc32.mak DEVSTUDIO= debugclean &amp;&amp; nmake -f psi\msvc32.mak SBR=1 DEVSTUDIO= gpdfdebug &amp;&amp; nmake -f psi\msvc32.mak DEVSTUDIO= debugbsc</NMakeReBuildCommandLine>
<NMakeCleanCommandLine>cd .. &amp;&amp; nmake -f psi\msvc32.mak DEVSTUDIO= debugclean</NMakeCleanCommandLine>
- <NMakeOutput>$(ProjectDir)\..\debugbin\gpdfwin32c.exe</NMakeOutput>
+ <NMakeOutput>$(ProjectDir)\..\debugbin\gpdfwin32.exe</NMakeOutput>
<NMakePreprocessorDefinitions>WIN32;_DEBUG;DEBUG=1;TDEBUG=1;HAVE_SSE2=1;$(NMakePreprocessorDefinitions)</NMakePreprocessorDefinitions>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
@@ -184,7 +184,7 @@
<NMakeBuildCommandLine>cd .. &amp;&amp; nmake -f psi\msvc32.mak WIN64= SBR=1 DEVSTUDIO= gpdfdebug &amp;&amp; nmake -f psi\msvc32.mak WIN64= DEVSTUDIO= debugbsc</NMakeBuildCommandLine>
<NMakeReBuildCommandLine>cd .. &amp;&amp; nmake -f psi\msvc32.mak WIN64= DEVSTUDIO= debugclean &amp;&amp; nmake -f psi\msvc32.mak WIN64= SBR=1 DEVSTUDIO= gpdfdebug &amp;&amp; nmake -f psi\msvc32.mak WIN64= DEVSTUDIO= debugbsc</NMakeReBuildCommandLine>
<NMakeCleanCommandLine>cd .. &amp;&amp; nmake -f psi\msvc32.mak WIN64= DEVSTUDIO= debugclean</NMakeCleanCommandLine>
- <NMakeOutput>$(ProjectDir)\..\debugbin\gpdfwin64c.exe</NMakeOutput>
+ <NMakeOutput>$(ProjectDir)\..\debugbin\gpdfwin64.exe</NMakeOutput>
<NMakePreprocessorDefinitions>WIN64;_DEBUG;DEBUG=1;TDEBUG=1;$(NMakePreprocessorDefinitions)</NMakePreprocessorDefinitions>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
@@ -193,7 +193,7 @@
<NMakeBuildCommandLine>cd .. &amp;&amp; nmake -f psi\msvc32.mak SBR=1 DEVSTUDIO= gpdf &amp;&amp; nmake -f psi\msvc32.mak DEVSTUDIO= bsc</NMakeBuildCommandLine>
<NMakeReBuildCommandLine>cd .. &amp;&amp; nmake -f psi\msvc32.mak DEVSTUDIO= clean &amp;&amp; nmake -f psi\msvc32.mak SBR=1 DEVSTUDIO= gpdf &amp;&amp; nmake -f psi\msvc32.mak DEVSTUDIO= bsc</NMakeReBuildCommandLine>
<NMakeCleanCommandLine>cd .. &amp;&amp; nmake -f psi\msvc32.mak DEVSTUDIO= clean</NMakeCleanCommandLine>
- <NMakeOutput>$(ProjectDir)\..\bin\gpdfwin32c.exe</NMakeOutput>
+ <NMakeOutput>$(ProjectDir)\..\bin\gpdfwin32.exe</NMakeOutput>
<NMakePreprocessorDefinitions>WIN32;NDEBUG;HAVE_SSE2=1;$(NMakePreprocessorDefinitions)</NMakePreprocessorDefinitions>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
@@ -202,7 +202,7 @@
<NMakeBuildCommandLine>cd .. &amp;&amp; nmake -f psi\msvc32.mak WIN64= SBR=1 DEVSTUDIO= gpdf &amp;&amp; nmake -f psi\msvc32.mak WIN64= DEVSTUDIO= bsc</NMakeBuildCommandLine>
<NMakeReBuildCommandLine>cd .. &amp;&amp; nmake -f psi\msvc32.mak WIN64= DEVSTUDIO= clean &amp;&amp; nmake -f psi\msvc32.mak WIN64= SBR=1 DEVSTUDIO= gpdf &amp;&amp; nmake -f psi\msvc32.mak WIN64= DEVSTUDIO= bsc</NMakeReBuildCommandLine>
<NMakeCleanCommandLine>cd .. &amp;&amp; nmake -f psi\msvc32.mak WIN64= DEVSTUDIO= clean</NMakeCleanCommandLine>
- <NMakeOutput>$(ProjectDir)\..\bin\gpdfwin64c.exe</NMakeOutput>
+ <NMakeOutput>$(ProjectDir)\..\bin\gpdfwin64.exe</NMakeOutput>
<NMakePreprocessorDefinitions>WIN32;NDEBUG;$(NMakePreprocessorDefinitions)</NMakePreprocessorDefinitions>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Profile|Win32'">
@@ -211,7 +211,7 @@
<NMakeBuildCommandLine>cd .. &amp;&amp; nmake -f psi\msvc32.mak SBR=1 DEVSTUDIO= gpdfprofile &amp;&amp; nmake -f psi\msvc32.mak DEVSTUDIO= profilebsc</NMakeBuildCommandLine>
<NMakeReBuildCommandLine>cd .. &amp;&amp; nmake -f psi\msvc32.mak DEVSTUDIO= profileclean &amp;&amp; nmake -f psi\msvc32.mak SBR=1 DEVSTUDIO= gpdfprofile &amp;&amp; nmake -f psi\msvc32.mak DEVSTUDIO= profilebsc</NMakeReBuildCommandLine>
<NMakeCleanCommandLine>cd .. &amp;&amp; nmake -f psi\msvc32.mak DEVSTUDIO= profileclean</NMakeCleanCommandLine>
- <NMakeOutput>$(ProjectDir)\..\profbin\gpdfwin32c.exe</NMakeOutput>
+ <NMakeOutput>$(ProjectDir)\..\profbin\gpdfwin32.exe</NMakeOutput>
<NMakePreprocessorDefinitions>WIN32;NDEBUG;DEBUG=0;TDEBUG=0;DEBUGSYM=1;HAVE_SSE2=1;$(NMakePreprocessorDefinitions)</NMakePreprocessorDefinitions>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Profile|x64'">
@@ -220,7 +220,7 @@
<NMakeBuildCommandLine>cd .. &amp;&amp; nmake -f psi\msvc32.mak WIN64= SBR=1 DEVSTUDIO= gpdfprofile &amp;&amp; nmake -f psi\msvc32.mak WIN64= DEVSTUDIO= profilebsc</NMakeBuildCommandLine>
<NMakeReBuildCommandLine>cd .. &amp;&amp; nmake -f psi\msvc32.mak WIN64= DEVSTUDIO= profileclean &amp;&amp; nmake -f psi\msvc32.mak WIN64= SBR=1 DEVSTUDIO= gpdfprofile &amp;&amp; nmake -f psi\msvc32.mak WIN64= DEVSTUDIO= profilebsc</NMakeReBuildCommandLine>
<NMakeCleanCommandLine>cd .. &amp;&amp; nmake -f psi\msvc32.mak WIN64= DEVSTUDIO= profileclean</NMakeCleanCommandLine>
- <NMakeOutput>$(ProjectDir)\..\profbin\gpdfwin64c.exe</NMakeOutput>
+ <NMakeOutput>$(ProjectDir)\..\profbin\gpdfwin64.exe</NMakeOutput>
<NMakePreprocessorDefinitions>WIN64;_DEBUG;DEBUG=1;TDEBUG=1;$(NMakePreprocessorDefinitions)</NMakePreprocessorDefinitions>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Memento|Win32'">
@@ -229,7 +229,7 @@
<NMakeBuildCommandLine>cd .. &amp;&amp; nmake -f psi\msvc32.mak SBR=1 DEVSTUDIO= gpdfmemento &amp;&amp; nmake -f psi\msvc32.mak DEVSTUDIO= mementobsc</NMakeBuildCommandLine>
<NMakeReBuildCommandLine>cd .. &amp;&amp; nmake -f psi\msvc32.mak DEVSTUDIO= mementoclean &amp;&amp; nmake -f psi\msvc32.mak SBR=1 DEVSTUDIO= gpdfmemento &amp;&amp; nmake -f psi\msvc32.mak DEVSTUDIO= mementobsc</NMakeReBuildCommandLine>
<NMakeCleanCommandLine>cd .. &amp;&amp; nmake -f psi\msvc32.mak DEVSTUDIO= mementoclean</NMakeCleanCommandLine>
- <NMakeOutput>$(ProjectDir)\..\membin\gpdfwin32c.exe</NMakeOutput>
+ <NMakeOutput>$(ProjectDir)\..\membin\gpdfwin32.exe</NMakeOutput>
<NMakePreprocessorDefinitions>WIN32;_DEBUG;DEBUG=1;TDEBUG=1;HAVE_SSE2=1;MEMENTO=1;$(NMakePreprocessorDefinitions)</NMakePreprocessorDefinitions>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Memento|x64'">
@@ -238,7 +238,7 @@
<NMakeBuildCommandLine>cd .. &amp;&amp; nmake -f psi\msvc32.mak WIN64= SBR=1 DEVSTUDIO= gpdfmemento &amp;&amp; nmake -f psi\msvc32.mak WIN64= DEVSTUDIO= mementobsc</NMakeBuildCommandLine>
<NMakeReBuildCommandLine>cd .. &amp;&amp; nmake -f psi\msvc32.mak WIN64= DEVSTUDIO= mementoclean &amp;&amp; nmake -f psi\msvc32.mak WIN64= SBR=1 DEVSTUDIO= gpdfmemento &amp;&amp; nmake -f psi\msvc32.mak WIN64= DEVSTUDIO= mementobsc</NMakeReBuildCommandLine>
<NMakeCleanCommandLine>cd .. &amp;&amp; nmake -f psi\msvc32.mak WIN64= DEVSTUDIO= mementoclean</NMakeCleanCommandLine>
- <NMakeOutput>$(ProjectDir)\..\membin\gpdfwin64c.exe</NMakeOutput>
+ <NMakeOutput>$(ProjectDir)\..\membin\gpdfwin64.exe</NMakeOutput>
<NMakePreprocessorDefinitions>WIN64;_DEBUG;DEBUG=1;TDEBUG=1;$(NMakePreprocessorDefinitions)</NMakePreprocessorDefinitions>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug-cups|Win32'">
@@ -247,7 +247,7 @@
<NMakeBuildCommandLine>cd .. &amp;&amp; nmake -f psi\msvc32.mak SBR=1 DEVSTUDIO= WITH_CUPS=1 gpdfdebug &amp;&amp; nmake -f psi\msvc32.mak DEVSTUDIO= WITH_CUPS=1 debugbsc</NMakeBuildCommandLine>
<NMakeReBuildCommandLine>cd .. &amp;&amp; nmake -f psi\msvc32.mak DEVSTUDIO= WITH_CUPS=1 debugclean &amp;&amp; nmake -f psi\msvc32.mak SBR=1 DEVSTUDIO= WITH_CUPS=1 gpdfdebug &amp;&amp; nmake -f psi\msvc32.mak DEVSTUDIO= WITH_CUPS=1 debugbsc</NMakeReBuildCommandLine>
<NMakeCleanCommandLine>cd .. &amp;&amp; nmake -f psi\msvc32.mak DEVSTUDIO= WITH_CUPS=1 debugclean</NMakeCleanCommandLine>
- <NMakeOutput>$(ProjectDir)\..\debugbin\gpdfwin32c.exe</NMakeOutput>
+ <NMakeOutput>$(ProjectDir)\..\debugbin\gpdfwin32.exe</NMakeOutput>
<NMakePreprocessorDefinitions>WIN32;_DEBUG;DEBUG=1;TDEBUG=1;HAVE_SSE2=1;$(NMakePreprocessorDefinitions)</NMakePreprocessorDefinitions>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug-cups|x64'">
@@ -256,7 +256,7 @@
<NMakeBuildCommandLine>cd .. &amp;&amp; nmake -f psi\msvc32.mak WIN64= SBR=1 DEVSTUDIO= WITH_CUPS=1 gpdfdebug &amp;&amp; nmake -f psi\msvc32.mak WIN64= DEVSTUDIO= WITH_CUPS=1 debugbsc</NMakeBuildCommandLine>
<NMakeReBuildCommandLine>cd .. &amp;&amp; nmake -f psi\msvc32.mak WIN64= DEVSTUDIO= WITH_CUPS=1 debugclean &amp;&amp; nmake -f psi\msvc32.mak WIN64= SBR=1 DEVSTUDIO= WITH_CUPS=1 gpdfdebug &amp;&amp; nmake -f psi\msvc32.mak WIN64= DEVSTUDIO= WITH_CUPS=1 debugbsc</NMakeReBuildCommandLine>
<NMakeCleanCommandLine>cd .. &amp;&amp; nmake -f psi\msvc32.mak WIN64= DEVSTUDIO= debugclean</NMakeCleanCommandLine>
- <NMakeOutput>$(ProjectDir)\..\debugbin\gpdfwin64c.exe</NMakeOutput>
+ <NMakeOutput>$(ProjectDir)\..\debugbin\gpdfwin64.exe</NMakeOutput>
<NMakePreprocessorDefinitions>WIN64;_DEBUG;DEBUG=1;TDEBUG=1;$(NMakePreprocessorDefinitions)</NMakePreprocessorDefinitions>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug-contrib|Win32'">
@@ -265,7 +265,7 @@
<NMakeBuildCommandLine>cd .. &amp;&amp; nmake -f psi\msvc32.mak SBR=1 DEVSTUDIO= WITH_CONTRIB=1 gpdfdebug &amp;&amp; nmake -f psi\msvc32.mak DEVSTUDIO= WITH_CONTRIB=1 debugbsc</NMakeBuildCommandLine>
<NMakeReBuildCommandLine>cd .. &amp;&amp; nmake -f psi\msvc32.mak DEVSTUDIO= WITH_CONTRIB=1 debugclean &amp;&amp; nmake -f psi\msvc32.mak SBR=1 DEVSTUDIO= WITH_CUPS=1 gpdfdebug &amp;&amp; nmake -f psi\msvc32.mak DEVSTUDIO= WITH_CONTRIB=1 debugbsc</NMakeReBuildCommandLine>
<NMakeCleanCommandLine>cd .. &amp;&amp; nmake -f psi\msvc32.mak DEVSTUDIO= WITH_CONTRIB=1 debugclean</NMakeCleanCommandLine>
- <NMakeOutput>$(ProjectDir)\..\debugbin\gpdfwin32c.exe</NMakeOutput>
+ <NMakeOutput>$(ProjectDir)\..\debugbin\gpdfwin32.exe</NMakeOutput>
<NMakePreprocessorDefinitions>WIN32;_DEBUG;DEBUG=1;TDEBUG=1;HAVE_SSE2=1;$(NMakePreprocessorDefinitions)</NMakePreprocessorDefinitions>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug-contrib|x64'">
@@ -274,7 +274,7 @@
<NMakeBuildCommandLine>cd .. &amp;&amp; nmake -f psi\msvc32.mak WIN64= SBR=1 DEVSTUDIO= WITH_CUPS=1 gpdfdebug &amp;&amp; nmake -f psi\msvc32.mak WIN64= DEVSTUDIO= WITH_CUPS=1 debugbsc</NMakeBuildCommandLine>
<NMakeReBuildCommandLine>cd .. &amp;&amp; nmake -f psi\msvc32.mak WIN64= DEVSTUDIO= WITH_CUPS=1 debugclean &amp;&amp; nmake -f psi\msvc32.mak WIN64= SBR=1 DEVSTUDIO= WITH_CUPS=1 gpdfdebug &amp;&amp; nmake -f psi\msvc32.mak WIN64= DEVSTUDIO= WITH_CUPS=1 debugbsc</NMakeReBuildCommandLine>
<NMakeCleanCommandLine>cd .. &amp;&amp; nmake -f psi\msvc32.mak WIN64= DEVSTUDIO= debugclean</NMakeCleanCommandLine>
- <NMakeOutput>$(ProjectDir)\..\debugbin\gpdfwin64c.exe</NMakeOutput>
+ <NMakeOutput>$(ProjectDir)\..\debugbin\gpdfwin64.exe</NMakeOutput>
<NMakePreprocessorDefinitions>WIN64;_DEBUG;DEBUG=1;TDEBUG=1;$(NMakePreprocessorDefinitions)</NMakePreprocessorDefinitions>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release-contrib|Win32'">
@@ -283,7 +283,7 @@
<NMakeBuildCommandLine>cd .. &amp;&amp; nmake -f psi\msvc32.mak SBR=1 DEVSTUDIO= gpdf &amp;&amp; nmake -f psi\msvc32.mak DEVSTUDIO= bsc</NMakeBuildCommandLine>
<NMakeReBuildCommandLine>cd .. &amp;&amp; nmake -f psi\msvc32.mak DEVSTUDIO= clean &amp;&amp; nmake -f psi\msvc32.mak SBR=1 DEVSTUDIO= gpdf &amp;&amp; nmake -f psi\msvc32.mak DEVSTUDIO= bsc</NMakeReBuildCommandLine>
<NMakeCleanCommandLine>cd .. &amp;&amp; nmake -f psi\msvc32.mak DEVSTUDIO= clean</NMakeCleanCommandLine>
- <NMakeOutput>$(ProjectDir)\..\bin\gpdfwin32c.exe</NMakeOutput>
+ <NMakeOutput>$(ProjectDir)\..\bin\gpdfwin32.exe</NMakeOutput>
<NMakePreprocessorDefinitions>WIN32;NDEBUG;HAVE_SSE2=1;$(NMakePreprocessorDefinitions)</NMakePreprocessorDefinitions>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release-contrib|x64'">
@@ -292,7 +292,7 @@
<NMakeBuildCommandLine>cd .. &amp;&amp; nmake -f psi\msvc32.mak WIN64= WITH_CONTRIB=1 SBR=1 DEVSTUDIO= WITH_CONTRIB=1 gpdf &amp;&amp; nmake -f psi\msvc32.mak WIN64= WITH_CONTRIB=1 DEVSTUDIO= bsc</NMakeBuildCommandLine>
<NMakeReBuildCommandLine>cd .. &amp;&amp; nmake -f psi\msvc32.mak WIN64= WITH_CONTRIB=1 DEVSTUDIO= clean &amp;&amp; nmake -f psi\msvc32.mak WIN64= SBR=1 WITH_CONTRIB=1 DEVSTUDIO= gpdf &amp;&amp; nmake -f psi\msvc32.mak WIN64= WITH_CONTRIB=1 DEVSTUDIO= bsc</NMakeReBuildCommandLine>
<NMakeCleanCommandLine>cd .. &amp;&amp; nmake -f psi\msvc32.mak WIN64= WITH_CONTRIB=1 DEVSTUDIO= clean</NMakeCleanCommandLine>
- <NMakeOutput>$(ProjectDir)\..\bin\gpdfwin64c.exe</NMakeOutput>
+ <NMakeOutput>$(ProjectDir)\..\bin\gpdfwin64.exe</NMakeOutput>
<NMakePreprocessorDefinitions>WIN32;NDEBUG;$(NMakePreprocessorDefinitions)</NMakePreprocessorDefinitions>
</PropertyGroup>
<ItemDefinitionGroup>
@@ -356,6 +356,7 @@
<ClInclude Include="..\pdf\pdf_device.h" />
<ClInclude Include="..\pdf\pdf_dict.h" />
<ClInclude Include="..\pdf\pdf_doc.h" />
+ <ClInclude Include="..\pdf\pdf_errors.h" />
<ClInclude Include="..\pdf\pdf_file.h" />
<ClInclude Include="..\pdf\pdf_fmap.h" />
<ClInclude Include="..\pdf\pdf_font.h" />
@@ -383,9 +384,11 @@
<ClInclude Include="..\pdf\pdf_shading.h" />
<ClInclude Include="..\pdf\pdf_stack.h" />
<ClInclude Include="..\pdf\pdf_text.h" />
+ <ClInclude Include="..\pdf\pdf_tokens.h" />
<ClInclude Include="..\pdf\pdf_trans.h" />
<ClInclude Include="..\pdf\pdf_types.h" />
<ClInclude Include="..\pdf\pdf_utf8.h" />
+ <ClInclude Include="..\pdf\pdf_warnings.h" />
<ClInclude Include="..\pdf\pdf_xref.h" />
</ItemGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
diff --git a/windows/ghostpdf.vcxproj.filters b/windows/ghostpdf.vcxproj.filters
index 3a43e928..3e8bfb0e 100644
--- a/windows/ghostpdf.vcxproj.filters
+++ b/windows/ghostpdf.vcxproj.filters
@@ -272,5 +272,14 @@
<ClInclude Include="..\pdf\pdf_utf8.h">
<Filter>pdf %28%2a.h%29</Filter>
</ClInclude>
+ <ClInclude Include="..\pdf\pdf_errors.h">
+ <Filter>pdf %28%2a.h%29</Filter>
+ </ClInclude>
+ <ClInclude Include="..\pdf\pdf_warnings.h">
+ <Filter>pdf %28%2a.h%29</Filter>
+ </ClInclude>
+ <ClInclude Include="..\pdf\pdf_tokens.h">
+ <Filter>pdf %28%2a.h%29</Filter>
+ </ClInclude>
</ItemGroup>
</Project> \ No newline at end of file
diff --git a/windows/ghostscript.vcxproj b/windows/ghostscript.vcxproj
index 1f274ccc..2597594d 100644
--- a/windows/ghostscript.vcxproj
+++ b/windows/ghostscript.vcxproj
@@ -1161,6 +1161,7 @@
<ClCompile Include="..\base\gsroptab.c" />
<ClCompile Include="..\base\gsserial.c" />
<ClCompile Include="..\base\gsshade.c" />
+ <ClCompile Include="..\base\gssprintf.c" />
<ClCompile Include="..\base\gsstate.c" />
<ClCompile Include="..\base\gsstrl.c" />
<ClCompile Include="..\base\gstext.c" />
@@ -2706,6 +2707,7 @@
<ClInclude Include="..\base\gdevsclass.h" />
<ClInclude Include="..\base\gdevvec.h" />
<ClInclude Include="..\base\gen_ordered.h" />
+ <ClInclude Include="..\base\globals.h" />
<ClInclude Include="..\base\gp.h" />
<ClInclude Include="..\base\gpcheck.h" />
<ClInclude Include="..\base\gpgetenv.h" />
@@ -2824,6 +2826,7 @@
<ClInclude Include="..\base\gsropt.h" />
<ClInclude Include="..\base\gsserial.h" />
<ClInclude Include="..\base\gsshade.h" />
+ <ClInclude Include="..\base\gssprintf.h" />
<ClInclude Include="..\base\gsstate.h" />
<ClInclude Include="..\base\gsstrl.h" />
<ClInclude Include="..\base\gsstruct.h" />
@@ -3805,4 +3808,4 @@
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
<ImportGroup Label="ExtensionTargets">
</ImportGroup>
-</Project>
+</Project> \ No newline at end of file
diff --git a/windows/ghostscript.vcxproj.filters b/windows/ghostscript.vcxproj.filters
index 9dfe0583..2679dcee 100644
--- a/windows/ghostscript.vcxproj.filters
+++ b/windows/ghostscript.vcxproj.filters
@@ -2441,7 +2441,6 @@
<ClCompile Include="..\base\gdevdevn.c">
<Filter>base\color</Filter>
</ClCompile>
-
<ClCompile Include="..\base\gscdevn.c">
<Filter>base\color</Filter>
</ClCompile>
@@ -6654,6 +6653,9 @@
<ClCompile Include="..\extract\src\zip-test.c">
<Filter>extract</Filter>
</ClCompile>
+ <ClCompile Include="..\base\gssprintf.c">
+ <Filter>base</Filter>
+ </ClCompile>
</ItemGroup>
<ItemGroup>
<ClInclude Include="..\base\aes.h">
@@ -6746,12 +6748,6 @@
<ClInclude Include="..\base\gs_mro_e.h">
<Filter>base %28.h%29</Filter>
</ClInclude>
- <ClInclude Include="..\devices\vector\gsagl.h">
- <Filter>base %28.h%29</Filter>
- </ClInclude>
- <ClInclude Include="..\base\a">
- <Filter>base %28.h%29</Filter>
- </ClInclude>
<ClInclude Include="..\base\gsargs.h">
<Filter>base %28.h%29</Filter>
</ClInclude>
@@ -10028,6 +10024,18 @@
<ClInclude Include="..\devices\vector\doc_common.h">
<Filter>devices\vector</Filter>
</ClInclude>
+ <ClInclude Include="..\base\globals.h">
+ <Filter>base %28.h%29</Filter>
+ </ClInclude>
+ <ClInclude Include="..\base\gsagl.h">
+ <Filter>devices\vector</Filter>
+ </ClInclude>
+ <ClInclude Include="..\base\gsalloc.h">
+ <Filter>base %28.h%29</Filter>
+ </ClInclude>
+ <ClInclude Include="..\base\gssprintf.h">
+ <Filter>base %28.h%29</Filter>
+ </ClInclude>
</ItemGroup>
<ItemGroup>
<ResourceCompile Include="..\base\gspmdrv.rc">